1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7993],{614:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/reviews/lesson/[id]",function(){return n(13926)}])},83316:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var r=n(85893),l=n(83321),s=n(86010);function c(e){let{title:t,icon:n,size:c,buttonType:o,disabled:a,bgOnHover:i,onClick:x,variant:u="text",borderType:d="none",fontSizeCustom:p="text-16-24",height:m="",paddingCustom:f="px-[12px] py-[8px]",classCustom:h}=e,b=(0,s.Z)({sx:"p-[6px]",mini:"p-[8px]",s:"px-[12px] py-[8px]",l:"px-[16px] py-[8px]",xl:"py-[12px] px-[24px]"}[c||"xl"]),v=(0,s.Z)({secondary:"bg-secondaryV3 text-white",primary:"bg-button-primary text-white",gray:"bg-gray-1 text-white","secondary-border":"bg-white text-secondaryV3 border border-2 border-secondaryV3","primary-border":"bg-white border border-button-primary border-2 text-button-primary",red:"bg-red-error text-white"}[o||"primary"]);return(0,s.Z)({sx:"text-[14px]",mini:"text-[14px]",s:"text-[14px]",l:"text-16-24",xl:"text-16-24"}[c||"xl"]),(0,r.jsx)(l.Z,{startIcon:n,variant:u,sx:{border:d,"&.MuiButton-root:hover":{background:i,border:d}},className:(0,s.Z)("inline-flex items-center disabled:bg-[#E5E5E5] justify-center rounded-[4px] normal-case w-full md:w-auto lg:px-[16px] lg:py-[8px]",b,v,f,m,h),disabled:a,onClick:x,children:(0,r.jsx)("span",{className:"font-inter-500 ".concat("gray"===o?"text-white":""," whitespace-nowrap text-14-20 lg:").concat(p),children:t})})}},76878:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(85893),l=n(68725),s=n(67294),c=n(86010),o=n(11163),a=n(41664),i=n.n(a),x=n(16410);let u=[{route:"/account/calendar",name:"Lá»ch"},{parent:"/account/my-courses",route:"/account/my-courses/all",name:"Lá»p há»c cá»§a t\xf4i"},{parent:"/account/study",route:"/account/study/progress",name:"Há»c táºp"},{route:"/account/chat",name:"Tin nhắn"},{route:"/account/community",name:"Cá»ng Äá»ng"}],d=()=>{let{profile:e}=(0,x.C)(e=>e.common),t=(0,o.useRouter)();return(0,s.useEffect)(()=>{let e=document.getElementById("box".concat(t.pathname));e&&e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},[]),(0,r.jsx)("div",{className:(0,c.Z)("w-full h-[40px]","flex flex-row px-[16px] xl:px-[112px] bg-blueGray space-x-3 md:space-x-10 overflow-auto hidden-scroll-bar"),children:u.map((e,n)=>{let l=t.pathname.includes(e.route)||e.parent&&t.pathname.includes(e.parent);return(0,r.jsx)(i(),{href:"".concat(e.route),children:(0,r.jsx)("div",{id:"box".concat(e.route),className:"".concat(l?"border-white":""," pt-2 pb-1.5 border-b-2 border-blueGray hover:border-white whitespace-nowrap cursor-pointer"),children:(0,r.jsx)("p",{className:"text-14-20 md:text-16-24 font-inter-500 text-white m-0 hover:font-inter-700",children:e.name})},n)},n)})})};var p=n(25675),m=n.n(p),f=n(75954);let h=e=>{let{menuSettings:t}=e,{profile:n,isMasterAccount:a}=(0,x.C)(e=>e.common),i=(0,o.useRouter)(),{asPath:u}
1=i,[d,p]=(0,s.useState)([]),h=e=>{i.push(e)};return(0,s.useEffect)(()=>{let e=-1;(e=u.includes("/account/my-courses/tutors")?1:u.includes("/account/my-courses/events")?2:t.findIndex(e=>u.includes(e.url)))>-1&&p([...d,e])},[]),(0,r.jsx)("div",{className:"flex flex-col gap-[4px]",children:t.map((e,t)=>{var n;let s=u.includes(e.url)&&"/"!==e.url,o=d.includes(t),i=e.url.includes("/account/master-account")&&!a;return i?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)("div",{className:(0,c.Z)("text-16-24 font-inter-700 cursor-pointer py-[8px] rounded-[4px] text-black",s&&(0,l.xb)(null==e?void 0:e.subMenu)?"bg-[#DDE9FF]":""),onClick:()=>(0,l.xb)(null==e?void 0:e.subMenu)&&h(e.url),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between cursor-pointer gap-2",onClick:()=>{(0,l.xb)(null==e?void 0:e.subMenu)||(o?p([...d].filter(e=>e!==t)):p([...d,t]))},children:[(0,r.jsx)("span",{className:(0,c.Z)(s&&(0,l.xb)(null==e?void 0:e.subMenu)?"text-primary":"text-black","whitespace-nowrap"),children:e.name}),!(0,l.xb)(null==e?void 0:e.subMenu)&&(0,r.jsx)("div",{className:"cursor-pointer min-w-[16px]",children:(0,r.jsx)(m(),{src:f.Z,alt:"icon",width:16,height:16,className:o?"rotate-180":""})})]}),!(0,l.xb)(null==e?void 0:e.subMenu)&&o&&(0,r.jsx)("div",{className:"flex flex-col gap-2 pt-4",children:null==e?void 0:null===(n=e.subMenu)||void 0===n?void 0:n.map((e,t)=>{let n=u.includes(e.url)&&"/"!==e.url;return(0,r.jsx)("div",{className:(0,c.Z)("p-2 cursor-pointer rounded-[4px]",n&&(0,l.xb)(null==e?void 0:e.subMenu)?"bg-[#DDE9FF]":""),onClick:t=>{t.stopPropagation(),h(null==e?void 0:e.url)},children:(0,r.jsx)("div",{className:(0,c.Z)("font-inter-500 text-16-24",n&&(0,l.xb)(null==e?void 0:e.subMenu)?"text-primary":"text-black"),children:e.name})},t)})})]},t)})})};var b=n(18952),v=n(93720);let w=e=>{let{children:t,noFooter:n,hiddenLeftMenu:o,hiddenPx:a,hiddenPy:i,menuSettings:x,isChat:u,subHeader:p}=e,[m,f]=(0,s.useState)(""),[w,y]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{y((0,l.s2)(m))},[m]),(0,s.useEffect)(()=>{f(navigator.userAgent||"")},[]),u)?(0,r.jsx)("div",{className:"h-full",children:(0,r.jsxs)("div",{className:"flex flex-col flex-1 font-inter-400 h-full",children:[(0,r.jsxs)("div",{className:"lg:sticky z-50 top-0",children:[(0,r.jsx)(v.ZP,{openApp:w}),(0,r.jsx)(d,{})]}),(0,r.jsx)("div",{className:"flex-1 flex flex-col bg-[#EDEEF0] overflow-auto",children:(0,r.jsx)("div",{className:(0,c.Z)(o?"w-full flex-1 flex !overflow-hidden":"md:w-5/6 w-full flex-1 flex !overflow-hidden"),children:t})})]})}):(0,r.jsxs)("div",{className:"flex flex-col flex-1 min-h-screen font-inter-400",children:[(0,r.jsxs)("div",{className:"lg:sticky z-50 top-0",children:[(0,r.jsx)(v.ZP,{openApp:w}),(0,r.jsx)(d,{}),p]}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col auto bg-[#EDEEF0]",children:[(0,r.jsxs)("div",{className:(0,c.Z)("flex flex-1 gap-4",a?"":"px-4 md:px-[32px] xl:px-[112px]",i?"":"py-4 md:py-[24px]",n?"":"border-b border-1 border-gray-1"),children:[!o&&(0,r.jsx)("div",{className:"hidden md:flex md:w-[212px] md:min-w-[212px] flex-col h-full",children:(0,r.jsx)(h,{menuSettings:null!=x?x:[]})}),(0,r.jsx)("div",{className:(0,c.Z)("w-full"),children:t})]}),!n&&(0,r.jsx)("div",{className:"py-3 lg:px-0 px-6",children:(0,r.jsx)(b.Z,{noBg:!0})})]})]})};var y=w},13926:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return o}});var r=n(85893),l=n(76878),s=n(33395);let c=()=>(0,r.jsx)(l.Z,{hiddenLeftMenu:!0,noBg:!0,children:(0,r.jsx)(s.Z,{})});var o=!0;t.default=c}},function(e){e.O(0,[8283,3395,9774,2888,179],function(){return e(e.s=614)}),_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.