1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7428],{52540:function(e,t,i){i.d(t,{lL:function(){return a},lU:function(){return c}});var n=i(85893),r=i(36822),l=i(15861);i(67294);var s=i(74144),o=i(69661);let a=e=>{let{size:t}=e,i=(0,s.TV)();return"sm"==t?(0,n.jsxs)(r.Z,{sx:{display:"flex",width:"100%",height:"40px",alignItems:"center",justifyContent:"center",flexDirection:"row"},children:[(0,n.jsx)(o.Z,{sx:{width:"33px",height:"33px",backgroundColor:i.secondary[500]},children:(0,n.jsx)("img",{src:"/logo.svg",style:{width:"15px",height:"22px"}})}),(0,n.jsxs)(r.Z,{sx:{display:"flex",marginLeft:"10px",alignItems:"start",justifyItems:"start",flexDirection:"column"},children:[(0,n.jsx)(l.Z,{color:"#ffffff",sx:{fontSize:"16px",fontWeight:"800",letterSpacing:"2px",lineHeight:"100%",textTransform:"uppercase"},children:"Plus"}),(0,n.jsx)(l.Z,{color:"#ffffff",sx:{fontSize:"8px",fontWeight:"400",lineHeight:"100%",textTransform:"uppercase"},children:"Educenter"})]})]}):"md"==t||void 0==t?(0,n.jsxs)(r.Z,{sx:{display:"flex",width:"100%",height:"80px",alignItems:"center",justifyContent:"center",flexDirection:"row"},children:[(0,n.jsx)(o.Z,{sx:{width:"65px",height:"65px",backgroundColor:i.secondary[500]},children:(0,n.jsx)("img",{src:"/logo.svg",style:{width:"30px",height:"43px"}})}),(0,n.jsxs)(r.Z,{sx:{display:"flex",marginLeft:"10px",alignItems:"start",justifyItems:"center",flexDirection:"column"},children:[(0,n.jsx)(l.Z,{color:"#ffffff",sx:{fontSize:"31px",fontWeight:"800",letterSpacing:"2px",lineHeight:"100%",textTransform:"uppercase"},children:"Plus"}),(0,n.jsx)(l.Z,{color:"#ffffff",sx:{fontSize:"15px",fontWeight:"400",lineHeight:"100%",textTransform:"uppercase"},children:"Educenter"})]})]}):void 0},c=e=>{let{size:t}=e;return(0,s.TV)(),(0,n.jsx)(x,{size:t})},x=e=>{let{size:t}=e,i=(0,s.TV)();return"sm"==t?(0,n.jsxs)(r.Z,{sx:{display:"flex",width:"100%",height:"40px",alignItems:"center",justifyContent:"center",flexDirection:"row"},children:[(0,n.jsx)(o.Z,{sx:{width:"33px",height:"33px",backgroundColor:i.primary[500]},children:(0,n.jsx)("img",{src:"/logo.svg",style:{width:"15px",height:"22px"}})}),(0,n.jsxs)(r.Z,{sx:{display:"flex",marginLeft:"10px",alignItems:"start",justifyItems:"start",flexDirection:"column"},children:[(0,n.jsx)(l.Z,{color:"#000000",sx:{fontSize:"16px",fontWeight:"800",letterSpacing:"2px",lineHeight:"100%",textTransform:"uppercase"},children:"Plus"}),(0,n.jsx)(l.Z,{color:"#000000",sx:{fontSize:"8px",fontWeight:"400",lineHeight:"100%",textTransform:"uppercase"},children:"Educenter"})]})]}):"md"==t||void 0==t?(0,n.jsxs)(r.Z,{sx:{display:"flex",width:"100%",height:"80px",alignItems:"center",justifyContent:"start",flexDirection:"row"},children:[(0,n.jsx)(o.Z,{sx:{width:"65px",height:"65px",backgroundColor:i.primary[500]},children:(0,n.jsx)("img",{src:"/logo.svg",style:{width:"30px",height:"43px"}})}),(0,n.jsxs)(r.Z,{sx:{display:"flex",marginLeft:"10px",alignItems:"start",justifyItems:"center",flexDirection:"column"},children:[(0,n.jsx)(l.Z,{color:"#000000",sx:{fontSize:"31px",fontWeight:"800",letterSpacing:"2px",lineHeight:"100%",textTransform:"uppercase"},children:"Plus"}),(0,n.jsx)(l.Z,{color:"#000000",sx:{fontSize:"15px",fontWeight:"400",lineHeight:"100%",textTransform:"uppercase"},children:"Educenter"})]})]}):void 0}},52377:function(e,t,i){i.d(t,{L:function(){return o}});var n=i(7297),r=i(84096),l=i(90948);function s(){let e=(0,n.Z)([""]);return s=function(){return e},e}let o=(0,l.ZP)(r.Z)(s())},93385:function(e,t,i){i.d(t,{I:function(){return x}});var n=i(85893),r=i(67294),l=i(11163),s=i(45697),o=i.n(s),a=i(72662);let c=e=>{let{children:t}=e,i=(0,l.useRouter)(),n=(0,r.useRef)(!1),[s,o]=(0,r.useState)(!1),{auth:c}=(0,a.Z)();return((0,r.useEffect)(()=>{i.isReady&&!n.current&&(n.current=!0,null==c?(console.log("Not authenticated, redirecting"),i.replace({pathname:"/administrator/login",query:"/"!==i.asPath?{continueUrl:i.asPath}:void 0}).catch(console.error)):o(!0))},[i.isReady]),s)?t:null};c.propTypes={children:o().node};let x=e=>t=>(0,n.jsx)(c,{children:(0,n.jsx)(e,{...t})})},84845:function(e,t,i){i.d(t,{b:function(){return l}});var n=i(67294),r=i(7750);let l=()=>(0,n.useContext)(r.R)},49797:function(e,t,i){i.d(t,{S:function(){return r}});var n=i(67294);
1function r(){let e=(0,n.useRef)(null),[t,i]=(0,n.useState)(!1),r=(0,n.useCallback)(()=>{i(!0)},[]),l=(0,n.useCallback)(()=>{i(!1)},[]),s=(0,n.useCallback)(()=>{i(e=>!e)},[]);return{anchorRef:e,handleClose:l,handleOpen:r,handleToggle:s,open:t}}},30507:function(e,t,i){i(85893),i(67294)},43536:function(e,t,i){i.d(t,{x:function(){return f}});var n=i(85893),r=i(67294),l=i(39332),s=i(45697),o=i.n(s),a=i(14564),c=i(36822),x=i(15861),d=i(67720),h=i(84118),p=i(18972),m=i(72662);let f=e=>{let{anchorEl:t,onClose:i,open:s}=e,o=(0,l.useRouter)(),f=(0,m.Z)(),u=(0,r.useCallback)(()=>{null==i||i(),f.signOut(),o.push("/administrator/login")},[i,f,o]);return(0,n.jsxs)(a.ZP,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},onClose:i,open:s,PaperProps:{sx:{width:200}},children:[(0,n.jsxs)(c.Z,{sx:{py:1.5,px:2},children:[(0,n.jsx)(x.Z,{variant:"overline",children:"Account"}),(0,n.jsx)(x.Z,{color:"text.secondary",variant:"body2",children:"Anika Visser"})]}),(0,n.jsx)(d.Z,{}),(0,n.jsx)(h.Z,{disablePadding:!0,dense:!0,sx:{p:"8px","& > *":{borderRadius:1}},children:(0,n.jsx)(p.Z,{onClick:u,children:"Sign out"})})]})};f.propTypes={anchorEl:o().any,onClose:o().func,open:o().bool.isRequired}},47428:function(e,t,i){i.d(t,{A:function(){return ed}});var n=i(85893),r=i(67294),l=i(39332),s=i(90948),o=i(93385),a=i(41664),c=i.n(a),x=i(45697),d=i.n(x),h=i(98396),p=i(36822),m=i(67720),f=i(16216),u=i(15861),j=i(58826),Z=i(52540),g=i(52377),y=i(93290),S=i(20687),b=i(66787),z=i(28849),v=i(84691),k=i(47748),w=i(75108),C=i(72413),I=i(30990),P=i(17422),T=i(91234),E=i(76755),H=i(46070),L=i(59584),R=i(64361),D=i(30843),N=i(10749),A=i(25709),W=i(62885),q=i(73397),F=i(33293),M=i(51384),O=i(47621),G=i(65755),_=i(93623),V=i(53219);let B=[{title:"Home",childs:[{title:"Dashbord",path:"/administrator",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(A.Z,{})})}]},{title:"รายà¸à¸²à¸£à¸ªà¸±à¹à¸à¸à¸·à¹à¸",childs:[{title:"รายà¸à¸²à¸£à¸ªà¸±à¹à¸à¸à¸·à¹à¸à¸à¸à¸£à¹à¸ª",path:"/administrator/paymenttrx",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(G.Z,{})})}]},{title:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸à¸£à¹à¸ª",childs:[{title:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸²à¸à¸²à¸£à¸¢à¹",path:"/administrator/tutor",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(N.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸à¸£à¹à¸ª",path:"/administrator/course",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(M.Z,{})})},{title:"upload file à¸à¸à¸£à¹à¸ª",path:"/administrator/lecture",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(q.Z,{})})},{title:"zoom recording",path:"/administrator/zoomrecording",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(R.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ brochure",path:"/administrator/brochure",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(D.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ video",path:"/administrator/video",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(O.Z,{})})}]},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ Mock & Exam",childs:[{title:"รายà¸à¸²à¸£à¸à¹à¸à¸¡à¸¹à¸¥à¸ªà¸¡à¸±à¸à¸£ Mock",path:"/administrator/mockreport/verify",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(y.Z,{})})},{title:"à¸à¸£à¸°à¸à¸²à¸¨à¸à¸¥à¸ªà¸à¸ Mock",path:"/administrator/mockreport",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(y.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ Mock",path:"/administrator/mock",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(F.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ Exam",path:"/administrator/exam",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(S.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ Pretest",path:"/administrator/pretest",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(b.Z,{})})}]},{title:"Inquiry",childs:[{title:"inquiry à¸à¸±à¸à¹à¸£à¸µà¸¢à¸",path:"/administrator/inquirystudent",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(W.Z,{})})}]},{title:"Promotion",childs:[{title:"à¸à¹à¸à¸¡à¸¹à¸¥ package",path:"/administrator/package",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(H.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ campaign",path:"/administrator/campaign",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(L.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥ coupon",path:"/administrator/coupon",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(z.Z,{})})},{title:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸£à¸°à¹à¸ ภcoupon",path:"/administrator/coupontype",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(v.Z,{})})}]},{title:"Marketing",childs:[{title:"สรà¹à¸²à¸ Blog",path:"/administrator/blog",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(k.Z,{})})}]},{title:"Report Operation",childs:[{title:"รายà¸à¸²à¸à¸¢à¸à¸à¸à¸²à¸¢",path:"/administrator/reportoperation/payment",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(E.Z,{})})},{title:"รายà¸à¸²à¸à¸à¸à¸£à¹à¸ª",path:"/administrator/reportoperation/course",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(T.Z,{})})}]},{title:"Report Account",childs:[{title:"รายà¸à¸²à¸¢à¸¢à¸à¸à¸à¸²à¸¢à¸§à¸µà¸à¸µà¹à¸",path:"/administrator/reportaccount/paymentvideo",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(E.Z,{})})},{title:"รายà¸à¸²à¸¢à¸¢à¸à¸à¸à¸²à¸¢ Live",path:"/administrator/reportaccount/paymentlive",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(T.Z,{})})},{title:"รายà¸à¸²à¸¢à¸¢à¸à¸à¸à¸²à¸¢ Plus",path:"/administrator/reportaccount/paymentplus",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(_.Z,{})})},{title:"รายà¸à¸²à¸à¸¥à¸¹à¸à¸à¹à¸² E-TAX",path:"/administrator/reportaccount/paymentcontactetax",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(w.Z,{})})},{title:"รายà¸à¸²à¸à¸¢à¸à¸à¸à¸²à¸¢ E-TAX",path:"/administrator/reportaccount/paymenttrxetax",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(C.Z,{})})}]},{title:"Master",childs:[{title:"รายà¸à¸·à¹à¸à¸ªà¸à¸²à¸¡à¸ªà¸à¸",path:"/administrator/master/competitive",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(I.Z,{})})}]},{title:"à¸à¹à¸à¸¡à¸¹à¸¥à¸£à¸°à¸à¸",childs:[{title:"รูà¸à¸ าà¸",path:"/administrator/systemimage",icon:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(P.Z,{})})}]}];var U=i(49990);let X=e=>{let{active:t=!1,disabled:i,external:r,icon:l,path:s,title:o}=e,a=s?r?{component:"a",href:s,target:"_blank"}:{component:c(),href:s}:{};return(0,n.jsx)("li",{children:(0,n.jsxs)(U.Z,{sx:{alignItems:"center",borderRadius:1,display:"flex",justifyContent:"flex-start",pl:"16px",pr:"16px",py:"6px",textAlign:"left",width:"100%",...t&&{backgroundColor:"secondary.main"},"&:hover":{backgroundColor:"secondary.main"}},...a,children:[l&&(0,n.jsx)(p.Z,{component:"span",sx:{alignItems:"center",color:"neutral.300",display:"inline-flex",justifyContent:"center",mr:2,...t&&{color:"common.white"}},children:l}),(0,n.jsx)(p.Z,{component:"span",sx:{color:"neutral.300",flexGrow:1,fontFamily:e=>e.typography.fontFamily,fontSize:14,fontWeight:500,lineHeight:"24px",whiteSpace:"nowrap",...t&&{color:"common.white"},...i&&{color:"neutral.500"}},children:o})]})})};X.propTypes={active:d().bool,disabled:d().bool,external:d().bool,icon:d().node,path:d().string,title:d().string.isRequired};let J=e=>{let{open:t,onClose:i}=e,r=(0,l.usePathname)(),s=(0,h.Z)(e=>e.breakpoints.up("lg")),o=(0,n.jsx)(g.L,{sx:{height:"100%","& .simplebar-content":{height:"100%"},"& .simplebar-scrollbar:before":{background:"neutral.400"}},children:(0,n.jsxs)(p.Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,n.jsx)(p.Z,{sx:{p:2},children:(0,n.jsx)(p.Z,{component:c(),href:"/administrator",sx:{dis
1play:"inline-flex",textDecoration:"none"},children:(0,n.jsx)(Z.lL,{size:"sm"})})}),(0,n.jsx)(m.Z,{sx:{borderColor:"neutral.300"}}),(0,n.jsx)(p.Z,{component:"nav",sx:{flexGrow:1,px:2,py:3},children:(0,n.jsx)(f.Z,{component:"ul",spacing:.5,sx:{listStyle:"none",p:0,m:0},children:B.map(e=>(0,n.jsxs)(p.Z,{children:[(0,n.jsx)(p.Z,{mb:1,children:(0,n.jsx)(u.Z,{variant:"h5",children:e.title})}),(0,n.jsx)(p.Z,{mb:1,children:e.childs.map(e=>{let t=!!e.path&&r===e.path;return(0,n.jsx)(X,{active:t,disabled:e.disabled,external:e.external,icon:e.icon,path:e.path,title:e.title},e.title)})})]}))})})]})});return s?(0,n.jsx)(j.ZP,{anchor:"left",open:!0,PaperProps:{sx:{backgroundColor:"primary.main",color:"common.white",width:280}},variant:"permanent",children:o}):(0,n.jsx)(j.ZP,{anchor:"left",onClose:i,open:t,PaperProps:{sx:{backgroundColor:"primary.main",color:"common.white",width:280}},sx:{zIndex:e=>e.zIndex.appBar+100},variant:"temporary",children:o})};J.propTypes={onClose:d().func,open:d().bool};var K=i(93806),Q=i(44149),Y=i(93946),$=i(34386),ee=i(67564),et=i(49425),ei=i(69661),en=i(94581),er=i(49797),el=i(43536),es=i(38586),eo=i(84845);i(30507);let ea=e=>{let{onNavOpen:t}=e,i=(0,h.Z)(e=>e.breakpoints.up("lg")),r=(0,er.S)(),{locale:l,setLocale:s}=(0,eo.b)(),o=()=>{l==es.l.THAILAND?s(es.l.ENGLISH):l==es.l.ENGLISH&&s(es.l.THAILAND)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{component:"header",sx:{backdropFilter:"blur(6px)",backgroundColor:e=>(0,en.Fq)(e.palette.background.default,.8),position:"sticky",left:{lg:"".concat(280,"px")},top:0,width:{lg:"calc(100% - ".concat(280,"px)")}
1,zIndex:e=>e.zIndex.appBar},children:(0,n.jsxs)(f.Z,{alignItems:"center",direction:"row",justifyContent:"space-between",spacing:2,sx:{minHeight:64,px:2},children:[(0,n.jsx)(f.Z,{alignItems:"center",direction:"row",spacing:2,children:!i&&(0,n.jsx)(Y.Z,{onClick:t,children:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(Q.Z,{})})})}),(0,n.jsxs)(f.Z,{alignItems:"center",direction:"row",spacing:2,children:[(0,n.jsx)($.Z,{title:"Language",children:(0,n.jsx)(Y.Z,{onClick:e=>o(),children:l===es.l.ENGLISH?(0,n.jsx)(ee.Z,{sx:{width:"1.5em"},children:"EN"}):(0,n.jsx)(ee.Z,{sx:{width:"1.5em"},children:"TH"})})}),(0,n.jsx)($.Z,{title:"Notifications",children:(0,n.jsx)(Y.Z,{children:(0,n.jsx)(et.Z,{badgeContent:4,color:"success",variant:"dot",children:(0,n.jsx)(V.Z,{fontSize:"small",children:(0,n.jsx)(K.Z,{})})})})}),(0,n.jsx)(ei.Z,{onClick:r.handleOpen,ref:r.anchorRef,sx:{cursor:"pointer",height:40,width:40},src:"/assets/avatars/avatar-anika-visser.png"})]})]})}),(0,n.jsx)(el.x,{anchorEl:r.anchorRef.current,open:r.open,onClose:r.handleClose})]})};ea.propTypes={onNavOpen:d().func};let ec=(0,s.ZP)("div")(e=>{let{theme:t}=e;return{display:"flex",flex:"1 1 auto",maxWidth:"100%",[t.breakpoints.up("lg")]:{paddingLeft:280}}}),ex=(0,s.ZP)("div")({display:"flex",flex:"1 1 auto",flexDirection:"column",width:"100%"}),ed=(0,o.I)(e=>{let{children:t}=e,i=(0,l.usePathname)(),[s,o]=(0,r.useState)(!1),a=(0,r.useCallback)(()=>{s&&o(!1)},[s]);return(0,r.useEffect)(()=>{a()},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ea,{onNavOpen:()=>o(!0)}),(0,n.jsx)(J,{onClose:()=>o(!1),open:s}),(0,n.jsx)(ec,{children:(0,n.jsx)(ex,{children:t})})]})})}}]);
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.