1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86,121],{747:(e,t,r)=>{"use strict";r.d(t,{default:()=>N});var s=r(5155),a=r(63),n=r(2115),i=r(368),l=r(7937),o=r(7772),c=r(2821),d=r(5889);function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,d.QP)((0,c.$)(t))}var h=r(6673);let p=(0,r(3101).F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}});n.forwardRef((e,t)=>{let{className:r,variant:a,size:n,asChild:i=!1,...l}=e,o=i?h.DX:"button";return(0,s.jsx)(o,{className:u(p({variant:a,size:n,className:r})),ref:t,...l})}).displayName="Button";let m=e=>{let{className:t,...r}=e;return(0,s.jsx)("nav",{role:"navigation","aria-label":"pagination",className:u("mx-auto flex w-full justify-center",t),...r})};m.displayName="Pagination";let x=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("ul",{ref:t,className:u("flex flex-row items-center gap-1",r),...a})});x.displayName="PaginationContent";let f=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("li",{ref:t,className:u("",r),...a})});f.displayName="PaginationItem";let g=e=>{let{className:t,isActive:r,size:a="icon",...n}=e;return(0,s.jsx)("a",{"aria-current":r?"page":void 0,className:u(p({variant:r?"outline":"ghost",size:a}),t),...n})};g.displayName="PaginationLink";let v=e=>{let{className:t,...r}=e;return(0,s.jsx)(g,{"aria-label":"Go to previous page",size:"default",className:u("gap-1 pl-2.5",t),...r,children:(0,s.jsx)(i.A,{className:"h-6 w-6"})})};v.displayName="PaginationPrevious";let b=e=>{let{className:t,...r}=e;return(0,s.jsx)(g,{"aria-label":"Go to next page",size:"default",className:u("gap-1 pr-2.5",t),...r,children:(0,s.jsx)(l.A,{className:"h-6 w-6"})})};b.displayName="PaginationNext";let y=e=>{let{className:t,...r}=e;return(0,s.jsxs)("span",{"aria-hidden":!0,className:u("flex h-9 w-9 items-center justify-center",t),...r,children:[(0,s.jsx)(o.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"More pages"})]})};function j(e){let{totalPages:t,maxVisiblePages:r=5}=e,i=(0,a.useRouter)(),l=(0,a.useSearchParams)(),[o,c]=(0,n.useState)(!1),d=parseInt(l.get("page")||"1"),u=(()=>{let e=[];
1if(t<=r)for(let r=1;r<=t;r++)e.push(r);else if(d<=3){for(let t=1;t<=3;t++)e.push(t);t>4&&e.push("ellipsis"),e.push(t)}else if(d>=t-2){e.push(1),t>4&&e.push("ellipsis");for(let r=t-2;r<=t;r++)e.push(r)}else e.push(1),e.push("ellipsis"),e.push(d-1),e.push(d),e.push(d+1),e.push("ellipsis"),e.push(t);return e})(),h=async e=>{if(e>=1&&e<=t&&e!==d&&!o){c(!0);try{let t=new URLSearchParams(l.toString());t.set("page",e.toString()),await i.push("?".concat(t.toString()))}finally{setTimeout(()=>c(!1),300)}}},p=async()=>{if(d>1&&!o){c(!0);try{let e=new URLSearchParams(l.toString());e.set("page",(d-1).toString()),await i.push("?".concat(e.toString()))}finally{setTimeout(()=>c(!1),300)}}},j=async()=>{if(d<t&&!o){c(!0);try{let e=new URLSearchParams(l.toString());e.set("page",(d+1).toString()),await i.push("?".concat(e.toString()))}finally{setTimeout(()=>c(!1),300)}}};return t<=1?null:(0,s.jsxs)("div",{children:[(0,s.jsx)(m,{children:(0,s.jsxs)(x,{children:[(0,s.jsx)(f,{children:(0,s.jsx)(v,{href:"#",onClick:e=>{e.preventDefault(),p()},className:"".concat(d<=1||o?"pointer-events-none opacity-50":"cursor-pointer")})}),u.map((e,t)=>(0,s.jsx)(f,{className:"border-none",children:"ellipsis"===e?(0,s.jsx)(y,{}):(0,s.jsx)(g,{href:"#",onClick:t=>{t.preventDefault(),h(e)},isActive:e===d,className:"cursor-pointer rounded-md text-[#4b5563] ".concat(e===d?"bg-[#3b82f6] text-white":""," ").concat(o?"opacity-50 pointer-events-none":""),children:e})},t)),(0,s.jsx)(f,{children:(0,s.jsx)(b,{href:"#",onClick:e=>{e.preventDefault(),j()},className:"".concat(d>=t||o?"pointer-events-none opacity-50":"cursor-pointer")})})]})}),o&&(0,s.jsx)("div",{className:"flex justify-center mt-4",children:(0,s.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600"})})]})}function N(e){let{totalPages:t,maxVisiblePages:r=5}=e;return(0,s.jsx)(j,{totalPages:t,maxVisiblePages:r})}y.displayName="PaginationEllipsis"},2075:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(5155);r(2115);var a=r(8955);function n(e){let{error:t,resetError:r,title:n,message:i,showRetry:l=!0}=e,o=(0,a.c3)("errors");return(0,s.jsx)("div",{className:"min-h-[400px] flex items-center justify-center px-4",children:(0,s.jsxs)("div",{className:"text-center max-w-md mx-auto",children:[(0,s.jsx)("div",{className:"mb-6",children:(0,s.jsx)("div",{className:"w-20 h-20 mx-auto bg-red-100 rounded-full flex items-center justify-center",children:(0,s.jsx)("svg",{className:"w-10 h-10 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.268 19.5c-.77.833.192 2.5 1.732 2.5z"})})})}),(0,s.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:n||o("title")}),(0,s.jsx)("p",{className:"text-gray-600 mb-6 leading-relaxed",children:i||o("message")}),!1,(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[l&&(0,s.jsx)("button",{onClick:()=>{r?r():window.location.reload()},className:"px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium",children:o("retry")}),(0,s.jsx)("button",{onClick:()=>window.history.back(),className:"px-6 py-3 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition-colors font-medium",children:o("goBack")})]})]})})}},3695:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var s=r(5155),a=r(2115),n=r(2075);class i extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t)}render(){return this.state.hasError?this.props.fallback||(0,s.jsx)(n.default,{error:this.state.error}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}let l=i},6541:(e,t,r)=>{"use strict";r.d(t,{DT:()=>n,N_:()=>i,a8:()=>o,rd:()=>c});var s=r(4497),a=r(5251);let n=(0,s.A)({locales:["ko","vi"],defaultLocale:"ko",localePrefix:"always"}),{Link:i,redirect:l,usePathname:o,useRouter:c,getPathname:d}=(0,a.A)(n)},7258:(e,t,r)=>{Promise.resolve().then(r.bind(r,7088)),Promise.resolve().then(r.bind(r,9429)),Promise.resolve().then(r.bind(r,3695)),Promise.resolve().then(r.bind(r,2075)),Promise.resolve().then(r.bind(r,747))},9429:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(5155),a=r(6541),n=r(8955),i=r(63);function l(){let e=(0,n.c3)(""),t=(0,i.usePathname)(),r=t.includes("notice"),l=t.includes("news");return(0,s.jsxs)("div",{className:"flex gap-4 mt-4 px-4 md:px-0",children:[(0,s.jsx)(a.N_,{prefetch:!0,className:"text-sm md:text-base text-gray-500 flex px-5 py-1 rounded-lg border border-gray-200 hover:opacity-80 ".concat(r?"!bg-blue-500 text-white":""),href:"/notice",children:e("notice.title")}),(0,s.jsx)(a.N_,{prefetch:!0,className:"text-sm md:text-base flex px-5 py-1 rounded-lg border border-gray-200 hover:opacity-80 ".concat(l?"!bg-blue-500 text-white":""),href:"/news",children:e("news.title")})]})}}},e=>{e.O(0,[707,983,441,255,358],()=>e(e.s=7258)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.