1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63185],{67602:function(e,t,o){Promise.resolve().then(o.bind(o,6188)),Promise.resolve().then(o.bind(o,41274)),Promise.resolve().then(o.t.bind(o,51346,23)),Promise.resolve().then(o.t.bind(o,80527,23)),Promise.resolve().then(o.t.bind(o,57285,23)),Promise.resolve().then(o.t.bind(o,87610,23)),Promise.resolve().then(o.t.bind(o,34674,23)),Promise.resolve().then(o.t.bind(o,48510,23)),Promise.resolve().then(o.t.bind(o,71549,23)),Promise.resolve().then(o.t.bind(o,73424,23)),Promise.resolve().then(o.t.bind(o,96045,23))},6188:function(e,t,o){"use strict";o.d(t,{default:function(){return oW}});var r=o(27573),a=o(625),n=o(7653),i=o(63074),l=o.n(i),c=o(79491),d=o.n(c),s=o(87145),u=o(31567),p=o(22850),x=o(47196),g=o(52160);let h={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},m={common:{black:"#000000",white:"#FFFFFF"},primary:{lighter:"#80a4cc",light:"rgba(0, 78, 152, 0.8)",main:"#004e98",dark:"#4a4a4a",darker:"#001c3a",contrastText:"#ffffff"},secondary:{lighter:"#ffa833",light:"#ff6b00",main:"#ff6700",dark:"#ff4100",darker:"#27097A",contrastText:"#ff1f00"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#ffffff"},success:{lighter:"#D3FCD2",light:"#77ED8B",main:"#22C55E",dark:"#118D57",darker:"#065E49",contrastText:"#ffffff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:h[800]},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#FFFFFF"},grey:h,divider:(0,g.Fq)(h[500],.2),action:{hover:(0,g.Fq)(h[500],.08),selected:(0,g.Fq)(h[500],.16),disabled:(0,g.Fq)(h[500],.8),disabledBackground:(0,g.Fq)(h[500],.24),focus:(0,g.Fq)(h[500],.24),hoverOpacity:.08,disabledOpacity:.48}},y={primaryColor:"var(--primary-color)",backgroundColor:"var(--background-color)",accentColor:"var(--accent-color)",accentSecondaryColor:"var(--accent-secondary-color)",backgroundLightColor:"var(--background-light-color)",backgroundShadeColor:"var(--background-shade-color)",backgroundAlternateShadeColor:"var(--background-alternate-shade-color)",headerBackgroundColor:"var(--header-background-color)",modulesBackgroundColor:"var(--modules-background-color)",customCircleColor:"var(--custom-circle-color)",footerBackgroundColor:"var(--footer-background-color)",headingColor:"var(--heading-color)",componentBackgroundColor:"var(--component-background-color)",componentHoverBackgroundColor:"var(--component-hover-background-color)",navbarBackgroundColor:"var(--navbar-background-color)",textColor:"var(--text-color)",secondaryTextColor:"var(--secondary-text-color)",tertiaryTextColor:"var(--tertiary-text-color)",disabledTextColor:"var(--disabled-text-color)",borderColor:"var(--border-color)",secondaryBorderColor:"var(--secondary-border-color)",sectionBorderColor:"var(--section-border-color)",pricingTextColor:"var(--pricing-text-color)",linkColor:"var(--link-color)",primaryBoxShadow:"var(--primary-box-shadow)",secondaryBoxShadow:"var(--secondary-box-shadow)",listItemColor:"var(--list-item-color)",pricingBoxBackground:"var(--pricing-box-background)",pricingButtonBackground:"var(--pricing-button-background)",coursePlayerAccentColorDark:"var(--courseplayer-accent-color-dark)",coursePlayerPastsubmissionsBackgroundColor:"var(--courseplayer-pastsubmissions-background-color)",coursePlayerBackgroundColor:"var(--courseplayer-background-color)",coursePlayerFormulaeColor:"var(--courseplayer-formulae-color)",coursePlayerTableBackgroundColor:"var(--courseplayer-table-background-color)",coursePlayerContentBackgroundColor:"var(--courseplayer-content-background-color)",coursePlayerLayoutBackgroundColor:"var(--courseplayer-layout-background-color)",coursePlayerSectionsBackgroundColor:"var(--courseplayer-sections-background-color)",coursePlayerSvgBackgroundColor:"var(--courseplayer-svg-background-color)",coursePlayerComponentBackgroundColor:"var(--courseplayer-component-background-color)",coursePlayerItemBackgroun
1dColor:"var(--courseplayer-item-background-color)",coursePlayerBorderColor:"var(--courseplayer-border-color)",coursePlayerLeftPanelIconColor:"var(--courseplayer-left-panel-icon-color)",coursePlayerScrollbarThumbColor:"var(--courseplayer-scrollbar-thumb-color)",coursePlayerLeftPanelProgressColor:"var(--courseplayer-left-panel-progress-color)",coursePlayerActiveDocColor:"var(--courseplayer-active-doc-color)",coursePlayerTextColor:"var(--courseplayer-text-color)",coursePlayerHeadingColor:"var(--courseplayer-heading-color)",coursePlayerHeadingBorderColor:"var(--courseplayer-heading-border-color)",coursePlayerAccentColor:"var(--courseplayer-accent-color)",coursePlayerInnerShadow:"var(--courseplayer-inner-shadow)",coursePlayerCodeBackgroundColor:"var(--courseplayer-code-background-color)",coursePlayerPrimaryShadow:"var(--courseplayer-primary-shadow)",coursePlayerSecondaryShadow:"var(--courseplayer-secondary-shadow)",codeExerciseBorderColor:"var(--code-exercise-border-color)",courseEnrollCardBackgroundColor:"var(--course-enroll-card-background-color)",courseEnrollButtonBackgroundColor:"var(--course-enroll-button-background-color)",courseEnrollPricingButtonBorderColor:"var(--pricing-btn-border-color)",resumeReviewBackgroundColor:"var(--resume-review-background-color)",resumeReviewBgOriginalContent:"var(--resume-review-bg-original-content)",resumeReviewBgSuggestedImprovements:"var(--resume-review-bg-suggested-improvements)",resumeReviewBgImprovedVersion:"var(--resume-review-bg-improved-version)",flashCardPrimaryColor:"var(--flash-card-primary-color)"};function b(e){let t={...m,...y,mode:"light",text:{primary:m.common.black,secondary:h[600],disabled:h[500]},main:"#004e98",contrastText:"white",background:{paper:"#FFFFFF",default:"#FFFFFF",neutral:h[200]},action:{...m.action,active:h[600]}},o={...m,...y,mode:"dark",text:{primary:h[300],secondary:h[500],disabled:h[600]},background:{paper:h[800],default:h[900],neutral:(0,g.Fq)(h[500],.12)},action:{...m.action,active:h[500]}};return"light"===e?t:o}let f=b("light"),v=f.grey[500],C=f.common.black;function k(e){let t=(0,g.Fq)(e,.2),o=(0,g.Fq)(e,.14),r=(0,g.Fq)(e,.12);return["none","0px 2px 1px -1px ".concat(t,",0px 1px 1px 0px ").concat(o,",0px 1px 3px 0px ").concat(r),"0px 3px 1px -2px ".concat(t,",0px 2px 2px 0px ").concat(o,",0px 1px 5px 0px ").concat(r),"0px 3px 3px -2px ".concat(t,",0px 3px 4px 0px ").concat(o,",0px 1px 8px 0px ").concat(r),"0px 2px 4px -1px ".concat(t,",0px 4px 5px 0px ").concat(o,",0px 1px 10px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 5px 8px 0px ").concat(o,",0px 1px 14px 0px ").concat(r),"0px 3px 5px -1px ".concat(t,",0px 6px 10px 0px ").concat(o,",0px 1px 18px 0px ").concat(r),"0px 4px 5px -2px ".concat(t,",0px 7px 10px 1px ").concat(o,",0px 2px 16px 1px ").concat(r),"0px 5px 5px -3px ".concat(t,",0px 8px 10px 1px ").concat(o,",0px 3px 14px 2px ").concat(r),"0px 5px 6px -3px ".concat(t,",0px 9px 12px 1px ").concat(o,",0px 3px 16px 2px ").concat(r),"0px 6px 6px -3px ".concat(t,",0px 10px 14px 1px ").concat(o,",0px 4px 18px 3px ").concat(r),"0px 6px 7px -4px ".concat(t,",0px 11px 15px 1px ").concat(o,",0px 4px 20px 3px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 12px 17px 2px ").concat(o,",0px 5px 22px 4px ").concat(r),"0px 7px 8px -4px ".concat(t,",0px 13px 19px 2px ").concat(o,",0px 5px 24px 4px ").concat(r),"0px 7px 9px -4px ".concat(t,",0px 14px 21px 2px ").concat(o,",0px 5px 26px 4px ").concat(r),"0px 8px 9px -5px ".concat(t,",0px 15px 22px 2px ").concat(o,",0px 6px 28px 5px ").concat(r),"0px 8px 10px -5px ".concat(t,",0px 16px 24px 2px ").concat(o,",0px 6px 30px 5px ").concat(r),"0px 8px 11px -5px ".concat(t,",0px 17px 26px 2px ").concat(o,",0px 6px 32px 5px ").concat(r),"0px 9px 11px -5px ".concat(t,",0px 18px 28px 2px ").concat(o,",0px 7px 34px 6px ").concat(r),"0px 9px 12px -6px ".concat(t,",0px 19px 29px 2px ").concat(o,",0px 7px 36px 6px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 20px 31px 3px ").concat(o,",0px 8px 38px 7px ").concat(r),"0px 10px 13px -6px ".concat(t,",0px 21px 33px 3px ").concat(o,",0px 8px 40px 7px ").concat(r),"0px 10px 14px -6px ".concat(t,",0px 22px 35px 3px ").concat(o,",0px 8px 42px 7px ").concat(r),"0px 11px 14px -7px ".concat(t,",0px 23px 36px 3px ").concat(o,",0px 9px 44px 8px ").concat(r),"0px 11px 15px -7px ".concat(t,",0px 24px 38px 3px ").concat(o,",0px 9px 46px 8px ").concat(r)]}function w(e){return"light"===e?k(v):k(C)}var P=o(44109);let j=b("light"),Z=j.grey[500],S=j.common.black;function F(e){let t=(0,g.Fq)(e,.16);return{primaryShadow:"rgba(50, 50, 93, 0.2) 0px 2px 4px 0px",secondarySh
1adow:"rgba(0, 0, 0, 0.4) 0px 0px 10px 0px",tertiaryShadow:"0 7px 15px 0 rgba(0, 0, 0, 0.13),0 1px 4px 0 rgba(0, 0, 0, 0.11)",z1:"0 1px 2px 0 ".concat(t),z4:"0 4px 8px 0 ".concat(t),z8:"0 8px 16px 0 ".concat(t),z12:"0 12px 24px -4px ".concat(t),z16:"0 16px 32px -4px ".concat(t),z20:"0 20px 40px -4px ".concat(t),z24:"0 24px 48px 0 ".concat(t),card:"0 0 2px 0 ".concat((0,g.Fq)(e,.2),", 0 12px 24px -4px ").concat((0,g.Fq)(e,.12)),dropdown:"0 0 2px 0 ".concat((0,g.Fq)(e,.24),", -20px 20px 40px -4px ").concat((0,g.Fq)(e,.24)),dialog:"-40px 40px 80px -8px ".concat((0,g.Fq)(j.common.black,.24)),primary:"0 8px 16px 0 ".concat((0,g.Fq)(j.primary.main,.24)),info:"0 8px 16px 0 ".concat((0,g.Fq)(j.info.main,.24)),secondary:"0 8px 16px 0 ".concat((0,g.Fq)(j.secondary.main,.24)),success:"0 8px 16px 0 ".concat((0,g.Fq)(j.success.main,.24)),warning:"0 8px 16px 0 ".concat((0,g.Fq)(j.warning.main,.24)),error:"0 8px 16px 0 ".concat((0,g.Fq)(j.error.main,.24))}}function _(e){return"light"===e?F(Z):F(S)}var T=o(83550),A=o(80440);let M=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})}),L=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})}),I=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})}),B=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})}),D=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})}),R=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})}),O=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})}),q=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12
1C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})}),E=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})}),z=e=>(0,r.jsx)(T.Z,{...e,children:(0,r.jsx)("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})});var W=o(86955);let H=["primary","secondary","info","success","warning","error"];var N=o(69426);let U=["primary","secondary","info","success","warning","error"];var G=o(18441),J=o(10514),Y=o(50138),V=o(11145),K=o(33643);let X=["info","success","warning","error"];var $=o(64604),Q=o(47965),ee=o(16830);let et=["default","primary","secondary","info","success","warning","error"],eo=e=>{let t=e.charAt(0);return["A","C","F"].includes(t)?"primary":["E","D","H"].includes(t)?"secondary":["I","K","L"].includes(t)?"info":["M","N","P"].includes(t)?"success":["Q","S","T"].includes(t)?"warning":["V","X","Y"].includes(t)?"error":"default"};var er=o(62199),ea=o(25497),en=o(66109),ei=o(94801);let el=["primary","secondary","info","success","warning","error"];var ec=o(74690),ed=o(18563),es=o(73464);let eu=["primary","secondary","info","success","warning","error"];var ep=o(36112),ex=o(36669),eg=o(571),eh=o(6187),em=o(43906),ey=o(62346),eb=o(77589),ef=o(57941),ev=o(47402),eC=o(7643),ek=o(81550);let ew=["primary","secondary","info","success","warning","error"],eP=()=>(0,r.jsx)(A.Z,{icon:"eva:chevron-down-fill",width:24}),ej=()=>(0,r.jsx)(A.Z,{icon:"eva:arrow-ios-back-fill",width:24}),eZ=()=>(0,r.jsx)(A.Z,{icon:"eva:arrow-ios-forward-fill",width:24}),eS=()=>(0,r.jsx)(A.Z,{icon:"solar:calendar-mark-bold-duotone",width:24}),eF=()=>(0,r.jsx)(A.Z,{icon:"solar:clock-circle-outline",width:24}),e_=["DatePicker","DateTimePicker","StaticDatePicker","DesktopDatePicker","DesktopDateTimePicker","MobileDatePicker","MobileDateTimePicker"].reduce((e,t)=>(e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:eS,leftArrowIcon:ej,rightArrowIcon:eZ,switchViewIcon:eP}}},e),{}),eT=["TimePicker","MobileTimePicker","StaticTimePicker","DesktopTimePicker"].reduce((e,t)=>(e["Mui".concat(t)]={defaultProps:{slots:{openPickerIcon:eF,rightArrowIcon:eZ,switchViewIcon:eP}}},e),{});var eA=o(87311);let eM=["primary","secondary","info","success","warning","error"];var eL=o(99455),eI=o(61581);let eB=["primary","secondary","info","success","warning","error"];var eD=o(46863);let eR=b("light"),eO=[{name:"default",...eR.primary},{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",dar
1ker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:eR.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}];var eq=o(9784),eE=o(47311),ez=o(23439);function eW(e){let{children:t,themeDirection:o}=e;(0,n.useEffect)(()=>{document.dir=o},[o]);let a=(0,eE.Z)({key:"rtl",prepend:!0,stylisPlugins:[eq.Z]});return"rtl"===o?(0,r.jsx)(ez.C,{value:a,children:t}):(0,r.jsx)(r.Fragment,{children:t})}let eH=e=>{var t,o,a,n,i;let l={palette:b(t=e.themeMode),shadows:w(t),customShadows:_(t)},c=function(e){let t=eO.find(t=>t.name===e);return{palette:{primary:t},customShadows:{primary:"0 8px 16px 0 ".concat((0,g.Fq)("".concat(null==t?void 0:t.main),.24))}}}(e.themeColorPresets),s=(o="bold"===e.themeContrast,a=e.themeMode,{theme:{...o&&"light"===a&&{palette:{background:{default:b(a).grey[100]}}}},components:{...o&&{MuiCard:{styleOverrides:{root:{boxShadow:_(a).z4}}}}}}),p={direction:e.themeDirection},x={palette:b("dark"===e.themeMode?"dark":"light"),shadows:w(e.themeMode),customShadows:_(e.themeMode),typography:P.cp,shape:{borderRadius:8}
1,transitions:{duration:{enteringScreen:500,leavingScreen:300}},cssVariables:!0},h=d()(x,p,l,c,s.theme),m=(0,u.Z)(h);return m.components=d()((n=m,d()({MuiAlert:{defaultProps:{iconMapping:{error:(0,r.jsx)(A.Z,{icon:"solar:danger-bold",width:24}),info:(0,r.jsx)(A.Z,{icon:"eva:info-fill",width:24}),success:(0,r.jsx)(A.Z,{icon:"eva:checkmark-circle-2-fill",width:24}),warning:(0,r.jsx)(A.Z,{icon:"eva:alert-triangle-fill",width:24})}}},MuiStack:{defaultProps:{useFlexGap:!0}},MuiAppBar:{defaultProps:{color:"transparent"}},MuiAvatarGroup:{defaultProps:{max:4}},MuiButtonGroup:{defaultProps:{disableElevation:!0}},MuiButton:{defaultProps:{color:"inherit",disableElevation:!0}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:n.spacing(.5)}}},MuiChip:{defaultProps:{deleteIcon:(0,r.jsx)(A.Z,{icon:"solar:close-circle-bold"})}},MuiDialogActions:{defaultProps:{disableSpacing:!0}},MuiFab:{defaultProps:{color:"primary"}},MuiLink:{defaultProps:{underline:"hover"}},MuiListItemText:{defaultProps:{primaryTypographyProps:{typography:"subtitle2"},secondaryTypographyProps:{component:"span"}}},MuiPaper:{defaultProps:{elevation:0}},MuiSkeleton:{defaultProps:{animation:"wave",variant:"rounded"}},MuiFilledInput:{defaultProps:{disableUnderline:!0}},MuiFormHelperText:{defaultProps:{component:"div"}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"}},MuiTabs:{defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}}},MuiSlider:{defaultProps:{size:"small"}},MuiAutocomplete:{defaultProps:{popupIcon:(0,r.jsx)(M,{})}},MuiSelect:{defaultProps:{IconComponent:M}},MuiNativeSelect:{defaultProps:{IconComponent:M}},MuiCheckbox:{defaultProps:{size:"small",icon:(0,r.jsx)(L,{}),checkedIcon:(0,r.jsx)(I,{}),indeterminateIcon:(0,r.jsx)(B,{})}},MuiRadio:{defaultProps:{size:"small",icon:(0,r.jsx)(D,{}),checkedIcon:(0,r.jsx)(R,{})}},MuiRating:{defaultProps:{emptyIcon:(0,r.jsx)(O,{}),icon:(0,r.jsx)(O,{})}},MuiTreeView:{defaultProps:{defaultCollapseIcon:(0,r.jsx)(q,{}),defaultExpandIcon:(0,r.jsx)(E,{}),defaultEndIcon:(0,r.jsx)(z,{})}}},function(e){let t="light"===e.palette.mode,o=o=>{let r="default"===o.color,a="inherit"===o.color,n="circular"===o.variant,i="extended"===o.variant,l="outlined"===o.variant,c="outlinedExtended"===o.variant,d="soft"===o.variant,s="softExtended"===o.variant,u={"&:hover, &:active":{boxShadow:"none"},...(n||i)&&{...(r||a)&&{boxShadow:e.customShadows.z8},...a&&{backgroundColor:e.palette.text.primary,color:t?e.palette.common.white:e.palette.grey[800],"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}}},...(l||c)&&{boxShadow:"none",backgroundColor:"transparent",...(r||a)&&{border:"solid 1px ".concat((0,g.Fq)(e.palette.grey[500],.32))},...r&&{...!t&&{color:e.palette.text.secondary}},"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor",backgroundColor:e.palette.action.hover}},...(d||s)&&{boxShadow:"none",...r&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...a&&{backgroundColor:(0,g.Fq)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,g.Fq)(e.palette.grey[500],.24)}}}};return[u,...H.map(r=>({...o.color===r&&{...(n||i)&&{boxShadow:e.customShadows[r],"&:hover":{backgroundColor:e.palette[r].dark}},...(l||c)&&{color:e.palette[r].main,border:"solid 1px ".concat((0,g.Fq)(e.palette[r].main,.48)),"&:hover":{backgroundColor:(0,g.Fq)(e.palette[r].main,.08)}},...(d||s)&&{color:e.palette[r][t?"dark":"light"],backgroundColor:(0,g.Fq)(e.palette[r].main,.16),"&:hover":{backgroundColor:(0,g.Fq)(e.palette[r].main,.32)}}}})),{["&.".concat(W.Z.disabled)]:{...(l||c)&&{backgroundColor:"transparent",border:"solid 1px ".concat(e.palette.action.disabledBackground)}}},{...(i||c||s)&&{width:"auto","& svg":{marginRight:e.spacing(1)},..."small"===o.size&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},..."medium"===o.size&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},..."large"===o.size&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}}]};return{MuiFab:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)}}}}}(n),{MuiTabs:{styleOverrides:{indicator:{backgroundColor:n.palette.text.primary},scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{styleOverrides:{root:{opacity:1,minWidth:48,minHeight:48,fontWeight:n.typography.fontWeightSemiBold,"& .MuiTab-iconWrapper":{marginRight:0},["&:not(.".concat(G.Z.selected,")")]:{color:n.palette.text.primary}}}}},function(e){let t="light"===e.palette.mode,o=o=>{let r="default"===o.color,a="filled"===o.variant,n="outlined"===o.variant,i="soft"===o.variant;return[{["& .".concat(N.Z.deleteIcon)]:{opacity:.48,color:"currentColor","&:hover":{opacity:1,color:"currentColor"}},...r&&{["& .".concat(N.Z.avatar)]:{color:e.palette.text.primary},...a&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]},["& .".concat(N.Z.icon)]:{color:t?e.palette.common.white:e.palette.grey[800]}},...n&&{border:"solid 1px ".concat((0,g.Fq)(e.palette.grey[500],.32))},...i&&{color:e.palette.text.primary,backgroundColor:(0,g.Fq)(e.palette.grey[500],.16),"&:hover":{backgroundColor:(0,g.Fq)(e.palette.grey[500],.32)}}}},...U.map(r=>({...o.color===r&&{["& .".concat(N.Z.avatar)]:{color:e.palette[r].lighter,backgroundColor:e.palette[r].dark},...i&&{color:e.palette[r][t?"dark":"light"],backgroundColor:(0,g.Fq)(e.palette[r].main,.16),"&:hover":{backgroundColor:(0,g.Fq)(e.palette[r].main,.32)}}}})),{["&.".concat(N.Z.disabled)]:{opacity:1,color:e.palette.action.disabled,["& .".concat(N.Z.icon)]:{color:e.palette.action.disabled},["& .".concat(N.Z.avatar)]:{color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackgroun
1d},...a&&{backgroundColor:e.palette.action.disabledBackground},...n&&{borderColor:e.palette.action.disabledBackground},...i&&{backgroundColor:e.palette.action.disabledBackground}}},{fontWeight:500,borderRadius:e.shape.borderRadius}]};return{MuiChip:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)}}}}}(n),{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:n.customShadows.card,borderRadius:2*n.shape.borderRadius,zIndex:0}}},MuiCardHeader:{styleOverrides:{root:{padding:n.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:n.spacing(3)}}}},{MuiMenuItem:{styleOverrides:{root:{...(0,J.D9)(n)}}}},{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:n.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:n.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{margin:0},multiline:{margin:0}}}},{MuiBadge:{styleOverrides:{dot:{borderRadius:"50%"},root:e=>{let{ownerState:t}=e,o="alway"===t.variant,r="online"===t.variant,a="busy"===t.variant,i="offline"===t.variant,l="invisible"===t.variant,c={["&.".concat($.Z.invisible)]:{transform:"unset"},width:10,zIndex:9,padding:0,height:10,minWidth:"auto","&:before, &:after":{content:"''",borderRadius:1,backgroundColor:n.palette.common.white}};return{...r&&{["& .".concat($.Z.badge)]:{...c,backgroundColor:n.palette.success.main}},...a&&{["& .".concat($.Z.badge)]:{...c,backgroundColor:n.palette.error.main,"&:before":{width:6,height:2}}},...i&&{["& .".concat($.Z.badge)]:{...c,backgroundColor:n.palette.text.disabled,"&:before":{width:6,height:6,borderRadius:"50%"}}},...o&&{["& .".concat($.Z.badge)]:{...c,backgroundColor:n.palette.warning.main,"&:before":{width:2,height:4,transform:"translateX(1px) translateY(-1px)"},"&:after":{width:2,height:4,transform:"translateY(1px) rotate(125deg)"}}},...l&&{["& .".concat($.Z.badge)]:{display:"none"}}}}}}},{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{["&.".concat(V.Z.selected)]:{backgroundColor:(0,g.Fq)(n.palette.primary.dark,.04),"&:hover":{backgroundColor:(0,g.Fq)(n.palette.primary.dark,.08)}},"&:last-of-type":{["& .".concat(Y.Z.root)]:{borderColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{borderBottomStyle:"dashed"},head:{fontSize:14,color:n.palette.text.secondary,fontWeight:n.typography.fontWeightSemiBold,backgroundColor:n.palette.background.neutral},stickyHeader:{backgroundColor:n.palette.background.paper,backgroundImage:"linear-gradient(to bottom, ".concat(n.palette.background.neutral," 0%, ").concat(n.palette.background.neutral," 100%)")},paddingCheckbox:{paddingLeft:n.spacing(1)}}},MuiTablePagination:{styleOverrides:{root:{width:"100%"},toolbar:{height:64},actions:{marginRight:8},select:{paddingLeft:8,"&:focus":{borderRadius:n.shape.borderRadius}},selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}}},{MuiPaper:{styleOverrides:{root:{backgroundImage:"none"},outlined:{borderColor:(0,g.Fq)(n.palette.grey[500],.16)}}}},function(e){let t="light"===e.palette.mode,o=o=>{let r="standard"===o.variant,a="filled"===o.variant,n="outlined"===o.variant;return[...X.map(i=>({...o.severity===i&&{...r&&{color:e.palette[i][t?"darker":"lighter"],backgroundColor:e.palette[i][t?"lighter":"darker"],["& .".concat(K.Z.icon)]:{color:e.palette[i][t?"main":"light"]}},...a&&{color:e.palette[i].contrastText,backgroundColor:e.palette[i].main},...n&&{backgroundColor:(0,g.Fq)(e.palette[i].main,.08),color:e.palette[i][t?"dark":"light"],border:"solid 1px ".concat((0,g.Fq)(e.palette[i].main,.16)),["& .".concat(K.Z.icon)]:{color:e.palette[i].main}}}}))]};return{MuiAlert:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)},icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5),fontWeight:e.typography.fontWeightSemiBold}}}}}(n),{MuiFormControlLabel:{styleOverrides:{label:{...n.typography.body2}}},MuiRadio:{styleOverrides:{root:{padding:n.spacing(1)}}}},{MuiSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}},MuiNativeSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:"calc(50% - 9px)"}}}},function(e){let t="light"===e.palette.mode,o=o=>{let r="inherit"===o.color,a="contained"===o.variant,n="outlined"===o.variant,i="text"===o.variant,l="soft"===o.variant,c="gradient"===o.variant,d="small"===o.size,s="medium"===o.size,u="large"===o.size,p={...r&&{...a&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:t?e.palette.primary.main:e.palette.common.white,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[400]}},...n&&{borderColor:(0,g.Fq)(e.palette.grey[500],.32),"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{"&:hover":{backgroundColor:e.palette.action.hover}}
1,...l&&{color:e.palette.text.primary,backgroundColor:(0,g.Fq)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,g.Fq)(e.palette.grey[500],.24)}},...c&&{color:"white",fontSize:"18px !important",backgroundColor:"#0093e9",backgroundImage:"linear-gradient(315deg, #0093e9 0%, #004e98 100%)",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.1)",transition:"all 0.3s ease","&:hover":{backgroundImage:"linear-gradient(315deg, #0080c6 0%, #003d7a 100%)",boxShadow:"0px 6px 16px rgba(0, 0, 0, 0.2)"}}},...n&&{"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"}}};return[p,...el.map(r=>({...o.color===r&&{...a&&{"&:hover":{boxShadow:e.customShadows[r]}},...l&&{color:e.palette[r][t?"dark":"light"],backgroundColor:(0,g.Fq)(e.palette[r].main,.16),"&:hover":{backgroundColor:(0,g.Fq)(e.palette[r].main,.32)}}}})),{["&.".concat(ei.Z.disabled)]:{...l&&{backgroundColor:e.palette.action.disabledBackground}}},{...d&&{height:30,fontSize:13,paddingLeft:8,paddingRight:8,...i&&{paddingLeft:4,paddingRight:4}},...s&&{paddingLeft:12,paddingRight:12,...i&&{paddingLeft:8,paddingRight:8}},...u&&{height:48,fontSize:15,paddingLeft:16,paddingRight:16,...i&&{paddingLeft:10,paddingRight:10}}}]};return{MuiButton:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)}}}}}(n),{MuiRating:{styleOverrides:{root:{["&.".concat(er.Z.disabled)]:{opacity:.48}},iconEmpty:{color:(0,g.Fq)(n.palette.grey[500],.48)},sizeSmall:{["& .".concat(ea.Z.root)]:{width:20,height:20}},sizeMedium:{["& .".concat(ea.Z.root)]:{width:24,height:24}},sizeLarge:{["& .".concat(ea.Z.root)]:{width:28,height:28}}}}},{MuiDialog:{styleOverrides:{paper:e=>{let{ownerState:t}=e;return{boxShadow:i.customShadows.dialog,borderRadius:2*i.shape.borderRadius,...!t.fullScreen&&{margin:i.spacing(2)}}},paperFullScreen:{borderRadius:0}}},MuiDialogTitle:{styleOverrides:{root:{padding:(i=n).spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:i.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:i.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{padding:i.spacing(3),"& >
1 :not(:first-of-type)":{marginLeft:i.spacing(1.5)}}}}},{MuiAppBar:{styleOverrides:{root:{boxShadow:"none"}}}},{MuiAvatar:{variants:et.map(e=>"default"===e?{props:{color:"default"},style:{color:n.palette.text.secondary,backgroundColor:(0,g.Fq)(n.palette.grey[500],.24)}}:{props:{color:e},style:{color:n.palette[e].contrastText,backgroundColor:n.palette[e].main}}),styleOverrides:{rounded:{borderRadius:1.5*n.shape.borderRadius},colorDefault:e=>{let{ownerState:t}=e,o=eo("".concat(t.alt));return{...!!t.alt&&{..."default"!==o?{color:n.palette[o].contrastText,backgroundColor:n.palette[o].main}:{color:n.palette.text.secondary,backgroundColor:(0,g.Fq)(n.palette.grey[500],.24)}}}}}},MuiAvatarGroup:{styleOverrides:{root:e=>{let{ownerState:t}=e;return{justifyContent:"flex-end",..."compact"===t.variant&&{width:40,height:40,position:"relative",["& .".concat(ee.Z.avatar)]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}},avatar:{fontSize:16,fontWeight:n.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:n.palette.primary.dark,backgroundColor:n.palette.primary.lighter}}}}},function(e){let t="light"===e.palette.mode;return{MuiSlider:{styleOverrides:{root:{["&.".concat(en.Z.disabled)]:{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}(n),function(e){let t="light"===e.palette.mode;return{MuiDrawer:{styleOverrides:{root:o=>{let{ownerState:r}=o;return{..."temporary"===r.variant&&{["& .".concat(Q.Z.paper)]:{...(0,J.uS)({theme:e}),..."left"===r.anchor&&{boxShadow:"40px 40px 80px -8px ".concat((0,g.Fq)(t?e.palette.grey[500]:e.palette.common.black,.24))},..."right"===r.anchor&&{boxShadow:"-40px 40px 80px -8px ".concat((0,g.Fq)(t?e.palette.grey[500]:e.palette.common.black,.24))}}}}}}}}}(n),{MuiStepConnector:{styleOverrides:{line:{borderColor:n.palette.divider}}}},function(e){let t="light"===e.palette.mode;return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}(n),{MuiPopover:{styleOverrides:{paper:{...(0,J.uS)({theme:n,dropdown:!0}),["& .".concat(ed.Z.root)]:{paddingTop:0,paddingBottom:0}}}}},{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}},function(e){let t="light"===e.palette.mode,o=o=>({padding:"9px 13px 9px 12px",width:58,height:38,..."small"===o.size&&{padding:"4px 8px 4px 7px",width:40,height:24},["& .".concat(ec.Z.thumb)]:{width:14,height:14,boxShadow:"none",color:e.palette.common.white,..."small"===o.size&&{width:10,height:10}},["& .".concat(ec.Z.track)]:{opacity:1,borderRadius:14,backgroundColor:(0,g.Fq)(e.palette.grey[500],.48)},["& .".concat(ec.Z.switchBase)]:{left:3,padding:12,..."small"===o.size&&{padding:7},["&.".concat(ec.Z.checked)]:{transform:"translateX(13px)",["&+.".concat(ec.Z.track)]:{opacity:1},..."small"===o.size&&{transform:"translateX(9px)"}},["&.".concat(ec.Z.disabled)]:{["& .".concat(ec.Z.thumb)]:{opacity:t?1:.48},["&+.".concat(ec.Z.track)]:{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)}}}}}(n),{MuiCheckbox:{styleOverrides:{root:{padding:n.spacing(1)}}}},function(e){let t=(0,J.uS)({theme:e,dropdown:!0});return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,borderWidth:0,["& .".concat(eg.Z.root)]:{borderTop:0},["& .".concat(eg.Z.toolbar)]:{height:"auto"}},cell:{borderBottom:"1px dashed ".concat(e.palette.divider)},selectedRowCount:{whiteSpace:"nowrap"},columnSeparator:{color:e.palette.divider},toolbarContainer:{padding:e.spacing(2),borderBottom:"1px dashed ".concat(e.palette.divider),backgroundColor:e.palette.background.neutral},paper:{...t,padding:0},menu:{["& .".concat(ep.Z.root)]:{...t},["& .".concat(ed.Z.root)]:{padding:0,["& .".concat(ex.Z.root)]:{minWidth:0,marginRight:e.spacing(2)}}},columnHeaders:{borderRadius:0,backgroundColor:e.palette.background.neutral},panelHeader:{padding:e.spacing(2)},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:"dashed 1px ".concat(e.palette.divider),["& .".concat(ei.Z.root)]:{"&:first-of-type":{border:"solid 1px ".concat((0,g.Fq)(e.palette.grey[500],.24))},"&:last-of-type":{marginLeft:e.spacing(1.5),color:e.palette.background.paper,backgroundColor:e.palette.text.primary}}},filterForm:{padding:e.spacing(2)},filterFormValueInput:{marginLeft:e.spacing(2)}
1,filterFormColumnInput:{marginLeft:e.spacing(2)},filterFormOperatorInput:{marginLeft:e.spacing(2)}}}}}(n),{MuiSkeleton:{styleOverrides:{root:{backgroundColor:n.palette.background.neutral},rounded:{borderRadius:2*n.shape.borderRadius}}}},{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:n.palette.divider}}}},{MuiTreeItem:{styleOverrides:{label:{...n.typography.body2},iconContainer:{width:"auto"}}}},{MuiBackdrop:{styleOverrides:{root:{backgroundColor:(0,g.Fq)(n.palette.grey[900],.8)},invisible:{background:"transparent"}}}},function(e){let t=t=>{let o="buffer"===t.variant;return[{borderRadius:4,["& .".concat(es.Z.bar)]:{borderRadius:4},...o&&{backgroundColor:"transparent"}},...eu.map(o=>({...t.color===o&&{backgroundColor:(0,g.Fq)(e.palette[o].main,.24)}}))]};return{MuiLinearProgress:{styleOverrides:{root:e=>{let{ownerState:o}=e;return t(o)}}}}}(n),function(e){let t={focused:e.palette.text.primary,active:e.palette.text.secondary,placeholder:e.palette.text.disabled},o={label:e.typography.body1,value:e.typography.body2};return{MuiFormHelperText:{styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{...o.value,color:t.focused,["&.".concat(em.Z.shrink)]:{...o.label,fontWeight:600,color:t.focused,["&.".concat(em.Z.focused)]:{color:t.focused},["&.".concat(em.Z.error)]:{color:e.palette.error.main},["&.".concat(em.Z.disabled)]:{color:e.palette.text.disabled},["&.".concat(em.Z.filled)]:{transform:"translate(12px, 6px) scale(0.75)"}}}}},MuiInputBase:{styleOverrides:{root:{["&.".concat(eh.Z.disabled)]:{"& svg":{color:e.palette.text.disabled}}},input:{...o.value,"&::placeholder":{opacity:1,color:t.placeholder},"&::-webkit-search-cancel-button":{WebkitAppearance:"none"}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:(0,g.Fq)(e.palette.grey[500],.32)},"&:after":{borderBottomColor:t.focused}}}},MuiOutlinedInput:{styleOverrides:{root:{["&.".concat(eb.Z.focused)]:{["& .".concat(eb.Z.notchedOutline)]:{borderColor:t.focused}},["&.".concat(eb.Z.error)]:{["& .".concat(eb.Z.notchedOutline)]:{borderColor:e.palette.error.main}},["&.".concat(eb.Z.disabled)]:{["& .".concat(eb.Z.notchedOutline)]:{borderColor:e.palette.action.disabledBackground}}},notchedOutline:{borderColor:(0,g.Fq)(e.palette.grey[600],.8),transition:e.transitions.create(["border-color"],{duration:e.transitions.duration.shortest})}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:(0,g.Fq)(e.palette.grey[500],.08),"&:hover":{backgroundColor:(0,g.Fq)(e.palette.grey[500],.16)},["&.".concat(ey.Z.focused)]:{backgroundColor:(0,g.Fq)(e.palette.grey[500],.16)},["&.".concat(ey.Z.error)]:{backgroundColor:(0,g.Fq)(e.palette.error.main,.08),["&.".concat(ey.Z.focused)]:{backgroundColor:(0,g.Fq)(e.palette.error.main,.16)}},["&.".concat(ey.Z.disabled)]:{backgroundColor:e.palette.action.disabledBackground}}}}}}(n),{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent",["&.".concat(ev.Z.expanded)]:{boxShadow:n.customShadows.z8,borderRadius:n.shape.borderRadius,backgroundColor:n.palette.background.paper},["&.".concat(ev.Z.disabled)]:{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:n.spacing(2),paddingRight:n.spacing(1),["&.".concat(eC.Z.disabled)]:{opacity:1,color:n.palette.action.disabled,["& .".concat(ef.Z.root)]:{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}},{MuiTypography:{styleOverrides:{paragraph:{marginBottom:n.spacing(2)},gutterBottom:{marginBottom:n.spacing(1)}}}},function(e){let t="light"===e.palette.mode,o=o=>{let r="standard"===o.color,a="text"===o.variant,n="outlined"===o.variant,i="soft"===o.variant;return[{["& .".concat(ek.Z.root)]:{...n&&{borderColor:(0,g.Fq)(e.palette.grey[500],.24)},["&.".concat(ek.Z.selected)]:{fontWeight:e.typography.fontWeightSemiBold,...n&&{borderColor:"currentColor"},...r&&{backgroundColor:(0,g.Fq)(e.palette.grey[500],.08),...a&&{color:t?e.palette.common.white:e.palette.grey[800],backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:t?e.palette.grey[700]:e.palette.grey[100]}}}}}},...ew.map(r=>({...o.color===r&&{["& .".concat(ek.Z.root)]:{["&.".concat(ek.Z.selected)]:{...o.color===r&&{...i&&{color:e.palette[r][t?"dark":"light"],backgroundColor:(0,g.Fq)(e.palette[r].main,.08),"&:hover":{backgroundColor:(0,g.Fq)(e.palette[r].main,.16)}}}}}}}))]};return{MuiPagination:{styleOverrides:{root:e=>{let{ownerState:t}=e;return o(t)}}}}}(n),{MuiPickersLayout:{styleOverrides:{root:{"& .MuiPickersLayout-actionBar":{["& .".concat(ei.Z.root,":last-of-type")]:{backgroundColor:n.palette.text.primary,color:"light"===n.palette.mode?n.palette.common.white:n.palette.grey[800]}}}}},...e_,...eT},function(e){let t=t=>{let o="inherit"===t.color,r="contained"===t.variant,a="outlined"===t.variant,n="text"===t.variant,i="soft"===t.variant,l="horizontal"===t.orientation,c="vertical"===t.orientation;return[{["& .".concat(eA.Z.grouped)]:{"&:not(:last-of-type)":{...!a&&{borderStyle:"solid",...o&&{borderColor:(0,g.Fq)(e.palette.grey[500],.32)},...l&&{borderWidth:"0px 1px 0px 0px"},...c&&{borderWidth:"0px 0px 1px 0px"}}}}},...eM.map(o=>({["& .".concat(eA.Z.grouped)]:{"&:not(:last-of-type)":{...!a&&{...t.color===o&&{...r&&{borderColor:(0,g.Fq)(e.palette[o].dark,.48)},...n&&{borderColor:(0,g.Fq)(e.palette[o].main,.48)},...i&&{borderColor:(0,g.Fq)(e.palette[o].dark,.24)}}}}}})),{["& .".concat(eA.Z.grouped)]:{["&.".concat(eA.Z.disabled)]:{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackgroun
1d}}}}]};return{MuiButtonGroup:{styleOverrides:{root:e=>{let{ownerState:o}=e;return t(o)}}}}}(n),{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:n.spacing(2),marginRight:n.spacing(2)},li:{display:"inline-flex",margin:n.spacing(.25,0),"& > *":{...n.typography.body2}}}}},{MuiCssBaseline:{styleOverrides:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%"},"#root, #__next":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},img:{maxWidth:"100%",display:"inline-block",verticalAlign:"bottom"}}}},{MuiAutocomplete:{styleOverrides:{root:{["& span.".concat(eL.Z.tag)]:{...n.typography.subtitle2,height:24,minWidth:24,lineHeight:"24px",textAlign:"center",padding:n.spacing(0,.75),color:n.palette.text.secondary,borderRadius:n.shape.borderRadius,backgroundColor:(0,g.Fq)(n.palette.grey[500],.16)}},paper:{...(0,J.uS)({theme:n,dropdown:!0})},listbox:{padding:0,["& .".concat(eL.Z.option)]:{...(0,J.D9)(n)}},endAdornment:{["& .".concat(ea.Z.root)]:{width:18,height:18}}}}},function(e){let t=t=>[{["&.".concat(eI.Z.selected)]:{borderColor:"currentColor",boxShadow:"0 0 0 0.5px currentColor"}},...eB.map(o=>({...t.color===o&&{"&:hover":{borderColor:(0,g.Fq)(e.palette[o].main,.48),backgroundColor:(0,g.Fq)(e.palette[o].main,e.palette.action.hoverOpacity)}}})),{["&.".concat(eI.Z.disabled)]:{["&.".concat(eI.Z.selected)]:{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}}];return{MuiToggleButton:{styleOverrides:{root:e=>{let{ownerState:o}=e;return t(o)}}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"solid 1px ".concat((0,g.Fq)(e.palette.grey[500],.08))},grouped:{margin:4,["&.".concat(eI.Z.selected)]:{boxShadow:"none"},"&:not(:first-of-type), &:not(:last-of-type)":{borderRadius:e.shape.borderRadius,borderColor:"transparent"}}}}}}(n),{MuiLoadingButton:{styleOverrides:{root:e=>{let{ownerState:t}=e;return{..."soft"===t.variant&&{["& .".concat(eD.Z.loadingIndicatorStart)]:{left:10},["& .".concat(eD.Z.loadingIndicatorEnd)]:{right:14},..."small"===t.size&&{["& .".concat(eD.Z.loadingIndicatorStart)]:{left:10},["& .".concat(eD.Z.loadingIndicatorEnd)]:{right:10}}}}}}}})),s.components),m};function eN(e){let{children:t}=e,o=(0,x.K$)(),[a,i]=(0,n.useState)(eH({...o,themeMode:"light"}));return(0,n.useEffect)(()=>{i(eH(o))},[o.themeMode,o.themeColorPresets,o.themeContrast,o.themeDirection]),(0,r.jsx)(p.Z,{theme:a,children:(0,r.jsxs)(eW,{themeDirection:o.themeDirection,children:[(0,r.jsx)(s.ZP,{}),t]})})}eN.propTypes={children:l().node};var eU=o(96515),eG=o(48488);let eJ=()=>Promise.all([o.e(80887),o.e(38929),o.e(80862)]).then(o.bind(o,80862)).then(e=>e.default);var eY=function(e){let{children:t}=e;return(0,r.jsx)(eU.X,{strict:!0,features:eJ,children:(0,r.jsxs)(eG.m.div,{style:{height:"100%"},children:[" ",t," "]})})},eV=o(6246),eK=o(81695),eX=o(97502),e$=o(60089),eQ=o(55991),e0=o(69381),e1=o(22357),e2=o(11287),e5=o(80831),e4=o(44097),e8=o(50294),e3=o(17388),e7=o(35453),e6=o(11885),e9=o(34729),te=o(86773),tt=o(63488),to=o(16031),tr=o(58616),ta=o(31323),tn=o(19202),ti=o(33566),tl=o(19146),tc=o(1121),td=o(29800),ts=o(86268),tu=o(98952),tp=o(62251),tx=o(55046),tg=o(64257),th=o(90292),tm=o(93722),ty=o(41181),tb=o(95362),tf=o(67624),tv=o(34410),tC=o(52519);let tk=(0,tf.ZP)(tC.Z,{shouldForwardProp:e=>"active"!==e})(e=>{let{active:t,open:o,depth:r,config:a,theme:n}=e,i=1!==r,l={root:{color:"light"===n.palette.mode?n.palette.primary.main:n.palette.primary.light,backgroundColor:(0,g.Fq)(n.palette.primary.main,.08),"&:hover":{backgroundColor:(0,g.Fq)(n.palette.primary.main,.16)}},sub:{color:n.palette.text.primary,backgroundColor:n.palette.action.selected,"&:hover":{backgroundColor:n.palette.action.hover}}};return{flexDirection:"column",justifyContent:"center",borderRadius:a.itemRadius,minHeight:a.itemRootHeight,color:n.palette.text.secondary,margin:"0 ".concat(a.itemGap,"px ").concat(a.itemGap,"px ").concat(a.itemGap,"px"),...a.hiddenLabel&&!i&&{padding:a.itemPadding},...t&&{...l.root},...i&&{margin:0,flexDirection:"row",padding:n.spacing(0,1),minHeight:a.itemSubHeight,...t&&{...l.sub}},...o&&!t&&{color:n.palette.text.primary,backgroundColor:n.palette.action.hover}}}),tw=(0,tf.ZP)(tv.Z)(e=>{let{size:t}=e;return{width:t,height:t,marginRight:0}});var tP=o(72902);(0,n.forwardRef)((e,t)=>{let{item:o,depth:a,open:n,active:i,externalLink:l,config:c,...d}=e,s=(0,eX.Z)(),{title:u,path:p,icon:x,children:g,disabled:h,caption:m,roles:y}=o,b=1!==a,f=(0,r.jsxs)(tk,{disableGutters:!0,ref:t,open:n,depth:a,active:i,disabled:h,config:c,...d,children:[x&&(0,r.jsx)(tw,{size:c.iconSize,sx:{...b&&{mr:1.5}},children:x}),!(c.hiddenLabel&&!b)&&(0,r.jsx)(tb.Z,{sx:{width:1,flex:"unset",...!b&&{px:.5,mt:.5}},primary:u,primaryTypographyProps:{noWrap:!0,fontSize:10,lineHeight:"16px",textAlign:"center",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightSemiBold",...b&&{textAlign:"unset",fontSize:s.typography.body2.fontSize,lineHeight:s.typography.body2.lineHeight,fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"}}}),m&&(0,r.jsx)(ty.Z,{title:m,arrow:!0,placement:"right",children:(0,r.jsx)(A.Z,{width:16,icon:"eva:info-outline",sx:{color:"text.disabled",...!b&&{top:11,left:6,position:"absolute"}}})}),!!g&&(0,r.jsx)(A.Z,{width:16,icon:"eva:arrow-ios-forward-fill",sx:{top:11,right:6,position:"absolute"}})]});return y&&!(0,tP.H)(c.currentRole,y)?null:l?(0,r.jsx)(e0.Z,{href:p,target:"_blank",rel:"noopener",underline:"none",sx:{width:1,...h&&{cursor:"default"}},children:f}):(0,r.jsx)(e0.Z,{component:e9.r,href:p,underline:"none",sx:{width:1,...h&&{cursor:"default"}},children:f})}).displayName="NavItem";let tj=e=>({itemGap:(null==e?void 0:e.itemGap)||4,iconSize:(null==e?void 0:e.iconSize)||24,currentRole:null==e?void 0:e.currentRole,itemRootHeight:(null==e?void 0:e.itemRootHeight)||44,itemSubHeight:(null==e?void 0:e.itemSubHeight)||36,itemPadding:(null==e?void 0:e.itemPadding)||"4px 8px 4px 12px",itemRadius:(null==e?void 0:e.itemRadius)||8,hiddenLabel:(null==e?void 0:e.hiddenLabel)||!1});var tZ=o(74744);let tS=(0,tf.ZP)(tC.Z,{shouldForwardProp:e=>"active"!==e})(e=>{let{active:t,depth:o,config:r,theme:a}=e,n=1!==o,i=o>2,l={root:{color:"light"===a.palette.mode?a.palette.primary.main:a.palette.primary.light,backgroundColor:(0,g.Fq)(a.palette.primary.main,.08),"&:hover":{backgroundColor:(0,g.Fq)(a.palette.primary.main,.16)}},sub:{color:a.palette.text.primary,backgroundColor:"transparent","&:hover":{backgroundColor:a.palette.action.hover}}};return{padding:r.itemPadding,marginBottom:r.itemGap,borderRadius:r.itemRadius,minHeight:r.itemRootHeight,color:a.palette.text.secondary,...t&&{...l.root},...n&&{minHeight:r.itemSubHeight,...t&&{...l.sub}},...i&&{paddingLeft:a.spacing(o)}}}),tF=(0,tf.ZP)(tv.Z)(e=>{let{size:t}=e;return{width:t,height:t,alignItems:"center",justifyContent:"center"}}),t_=(0,tf.ZP)("span")(e=>{let{active:t,theme:o}=e;return{width:4,height:4,borderRadius:"50%",backgroundColor:o.palette.text.disabled,transition:o.transitions.create(["transform"],{duration:o.transitions.duration.shorter}),...t&&{transform:"scale(2)",backgroundColor:o.palette.primary.main}}}),tT=(0,tf.ZP)(tZ.Z)(e=>{let{config:t,theme:o}=e;return{...o.typography.overline,fontSize:11,cursor:"pointer",display:"inline-flex",padding:t.itemPadding,paddingTop:o.spacing(2),marginBottom:t.itemGap,paddingBottom:o.spacing(1),color:o.palette.text.primary,transition:o.transitions.create(["color"],{duration:o.transitions.duration.shortest}),"&:hover":{color:o.palette.text.primary}}});function tA(e){let{item:t,open:o,depth:a,active:n,config:i,externalLink:l,...c}=e,{title:d,path:s,icon:u,info:p,children:x,disabled:g,caption:h,roles:m}=t,y=1!==a,b=(0,r.jsxs)(tS,{disableGutters:!0,disabled:g,active:n,depth:a,config:i,...c,children:[(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(tF,{size:i.iconSize,children:u}),y&&(0,r.jsx)(tF,{size:i.iconSize,children:(0,r.jsx)(t_,{active:n})})]}),!(i.hiddenLabel&&!y)&&(0,r.jsx)(tb.Z,{primary:d,secondary:h?(0,r.jsx)(ty.Z,{title:h,placement:"top-start",children:(0,r.jsx)("span",{children:h})}
1):null,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:n?"fontWeightSemiBold":"fontWeightMedium"},secondaryTypographyProps:{noWrap:!0,component:"span",typography:"caption",color:"text.disabled"}}),p&&(0,r.jsx)(eQ.Z,{component:"span",sx:{ml:1,lineHeight:0},children:p}),!!x&&(0,r.jsx)(A.Z,{width:16,icon:o?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return m&&!(0,tP.H)(i.currentRole,m)?null:l?(0,r.jsx)(e0.Z,{href:s,target:"_blank",rel:"noopener",underline:"none",color:"inherit",sx:{...g&&{cursor:"default"}},children:b}):x?b:(0,r.jsx)(e0.Z,{component:e9.r,href:s,underline:"none",color:"inherit",sx:{...g&&{cursor:"default"}},children:b})}function tM(e){let{data:t,depth:o,hasChild:a,config:i}=e,l=(0,tp.j)(),c=(0,tm.X)(t.path,a),d=t.path.includes("http"),[s,u]=(0,n.useState)(c);(0,n.useEffect)(()=>{c||x()},[l]);let p=(0,n.useCallback)(()=>{u(e=>!e)},[]),x=(0,n.useCallback)(()=>{u(!1)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tA,{item:t,depth:o,open:s,active:c,externalLink:d,onClick:p,config:i}),a&&(0,r.jsx)(tg.Z,{in:s,unmountOnExit:!0,children:(0,r.jsx)(tL,{data:t.children,depth:o,config:i})})]})}function tL(e){let{data:t,depth:o,config:a}=e;return(0,r.jsx)(r.Fragment,{children:t.map(e=>(0,r.jsx)(tM,{data:e,depth:o+1,hasChild:!!e.children,config:a},e.title+e.path))})}var tI=(0,n.memo)(function(e){let{data:t,config:o,sx:a,...n}=e;return(0,r.jsx)(e1.Z,{sx:a,...n,children:t.map((e,t)=>(0,r.jsx)(tB,{subheader:e.subheader,items:e.items,config:tj(o)},e.subheader||t))})});function tB(e){let{subheader:t,items:o,config:a}
1=e,[i,l]=(0,n.useState)(!0),c=(0,n.useCallback)(()=>{l(e=>!e)},[]),d=o.map(e=>(0,r.jsx)(tM,{data:e,depth:1,hasChild:!!e.children,config:a},e.title+e.path));return(0,r.jsx)(tl.Z,{disablePadding:!0,sx:{px:2},children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tT,{disableGutters:!0,disableSticky:!0,onClick:c,config:a,children:t}),(0,r.jsx)(tg.Z,{in:i,children:d})]}):d})}let tD=(0,tf.ZP)(tC.Z,{shouldForwardProp:e=>"active"!==e})(e=>{let{active:t,open:o,depth:r,config:a,theme:n}=e,i={color:n.palette.text.primary,backgroundColor:n.palette.action.selected};return{flexShrink:0,padding:a.itemPadding,marginRight:a.itemGap,borderRadius:a.itemRadius,minHeight:a.itemRootHeight,color:n.palette.text.secondary,...t&&{...i},...1!==r&&{margin:0,padding:n.spacing(0,1),minHeight:a.itemSubHeight},...o&&!t&&{color:n.palette.text.primary,backgroundColor:n.palette.action.hover}}}),tR=(0,tf.ZP)(tv.Z)(e=>{let{size:t}=e;return{width:t,height:t,flexShrink:0,marginRight:0}});(0,n.forwardRef)((e,t)=>{let{item:o,depth:a,open:n,active:i,externalLink:l,config:c,...d}=e,{title:s,path:u,icon:p,info:x,children:g,disabled:h,caption:m,roles:y}=o,b=1!==a,f=(0,r.jsxs)(tD,{disableGutters:!0,ref:t,open:n,depth:a,active:i,disabled:h,config:c,...d,children:[p&&(0,r.jsx)(tR,{size:c.iconSize,sx:{...b&&{mr:1.5}},children:p}),!(c.hiddenLabel&&!b)&&(0,r.jsx)(tb.Z,{sx:{...!b&&{ml:1}},primary:s,primaryTypographyProps:{noWrap:!0,typography:"body2",textTransform:"capitalize",fontWeight:i?"fontWeightBold":"fontWeightMedium",...b&&{fontWeight:i?"fontWeightSemiBold":"fontWeightMedium"}}}),x&&(0,r.jsx)(eQ.Z,{component:"span",sx:{ml:.5,lineHeight:0},children:x}),m&&(0,r.jsx)(ty.Z,{title:m,arrow:!0,children:(0,r.jsx)(A.Z,{width:16,icon:"eva:info-outline",sx:{ml:.5,color:"text.disabled"}})}),!!g&&(0,r.jsx)(A.Z,{icon:b?"eva:arrow-ios-forward-fill":"eva:arrow-ios-downward-fill",width:16,sx:{flexShrink:0,ml:.5}})]});return y&&!(0,tP.H)(c.currentRole,y)?null:l?(0,r.jsx)(e0.Z,{href:u,target:"_blank",rel:"noopener",underline:"none",sx:{...h&&{cursor:"default"}},children:f}):(0,r.jsx)(e0.Z,{component:e9.r,href:u,underline:"none",sx:{...h&&{cursor:"default"}},children:f})}).displayName="NavItem";var tO=o(46404);let tq=(0,tf.ZP)(tC.Z,{shouldForwardProp:e=>"active"!==e})(e=>{let{active:t,theme:o}=e;return{...o.typography.body2,color:o.palette.text.secondary,height:48,...t&&{color:o.palette.primary.main,...o.typography.subtitle2,backgroundColor:(0,g.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}}});function tE(e){let{item:t,open:o,active:a,externalLink:n,...i}=e,l=(0,eX.Z)(),{title:c,path:d,icon:s,children:u,badge:p}=t,x="object"==typeof p&&null!==p?p.label:p,h="object"==typeof p&&null!==p?p["dark"===l.palette.mode?"dark":"light"]:null,m=x?{backgroundColor:(null==h?void 0:h.background)||("dark"===l.palette.mode?(0,g.Fq)(l.palette.secondary.main,.24):(0,g.Fq)(l.palette.secondary.main,.16)),color:(null==h?void 0:h.color)||("dark"===l.palette.mode?l.palette.secondary.light:l.palette.secondary.darker)}:null,y=(0,r.jsxs)(tq,{active:a,...i,children:[(0,r.jsxs)(tv.Z,{children:[" ",s," "]}),(0,r.jsx)(tb.Z,{disableTypography:!0,primary:(0,r.jsxs)(eQ.Z,{component:"span",sx:{position:"relative",display:"inline-block",lineHeight:1.2,paddingRight:x?.5:0},children:[x&&(0,r.jsx)(eQ.Z,{component:"span",sx:{position:"absolute",top:"-14px",right:0,px:.6,py:.15,borderRadius:6,fontSize:9,fontWeight:700,lineHeight:1,letterSpacing:.4,textTransform:"uppercase",...m||{}},children:x}),(0,r.jsx)(eQ.Z,{component:"span",children:c})]})}),!!u&&(0,r.jsx)(tO.Z,{width:16,icon:o?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1}})]});return n?(0,r.jsx)(e0.Z,{href:d,target:"_blank",rel:"noopener",underline:"none",children:y}):u?y:(0,r.jsx)(e0.Z,{component:e9.r,href:d,underline:"none",children:y})}function tz(e){let{item:t}=e,o=(0,tp.j)(),{path:a,children:n,dataCy:i}=t,l=a.includes("http"),c=(0,tu.k)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tE,{"data-cy":i,item:t,open:c.value,onClick:c.onToggle,active:o===a,externalLink:l}),!!n&&(0,r.jsx)(tg.Z,{in:c.value,unmountOnExit:!0,children:(0,r.jsx)(tI,{data:n,sx:{["& .".concat(ed.Z.root)]:{"&:last-of-type":{["& .".concat(th.Z.root)]:{height:20,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}}}})})]})}function tW(e){let{offsetTop:t,data:o,loggedIn:a}=e,i=(0,tp.j)(),l=(0,tu.k)(),c=o.filter(e=>!(null==e?void 0:e.loggedIn)||a);return(0,n.useEffect)(()=>{l.value&&l.onFalse()},[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ts.Z,{onClick:l.onTrue,"aria-label":"Menu",sx:{ml:0,...t&&{color:"primary"}},children:(0,r.jsx)(tc.Z,{color:"primary",sx:{fontSize:"35px"}})}),(0,r.jsx)(td.ZP,{open:l.value,onClose:l.onFalse,PaperProps:{sx:{pb:5,width:260}},children:(0,r.jsx)(tx.Z,{children:(0,r.jsx)(tl.Z,{component:"nav",disablePadding:!0,children:c.map(e=>(0,r.jsx)(tz,{item:e},e.title))})})})]})}var tH=o(75698),tN=o(43510),tU=o(75435),tG=o(69769);function tJ(e){let{sx:t,...o}=e;return(0,r.jsx)(eQ.Z,{sx:{left:0,right:0,bottom:0,m:"auto",height:24,zIndex:-1,opacity:.48,borderRadius:"50%",position:"absolute",width:"calc(100% - 48px)",boxShadow:e=>e.customShadows.z8,...t},...o})}var tY=o(42958),tV=o(72449),tK=o(1249),tX=o(50997),t$=o(89416),tQ=o(50952),t0=o(18986),t1=o(88901),t2=o(9878),t5=o(4744),t4=o(57067),t8=o(43245),t3=o(61025);let t7=()=>{let e=(0,eK.useRouter)(),t=(0,tr.F)("custom");return(0,r.jsx)(t4.Z,{variant:"contained","aria-label":"Basic button group",children:(0,r.jsx)(e5.Z,{variant:"contained",color:"primary",size:t?"medium":"small",sx:e6.Z.button,onClick:()=>{e.push(tt.Hb.dashboard.root)},children:"Dashboard"})})},t6=()=>{let e=(0,eK.usePathname)()===te.H.myHome;return(0,r.jsx)(ty.Z,{title:"My Home",placement:"bottom",children:(0,r.jsx)(ts.Z,{component:e9.r,href:te.H.myHome,"aria-label":"My Home","data-cy":"goto-homepage-btn",sx:{width:40,height:40,color:e?"#006CB0":"action.active"},children:(0,r.jsx)(e7.Z,{size:20,strokeWidth:1.6})})})},t9=()=>{let{user:{creditAmount:e},loggedIn:t}=(0,tK.n)();(0,eK.useRouter)();let o=(0,t$.dl)(tQ.Y.ENABLE_CREDIT_SYSTEM);return t&&!0===o?(0,r.jsx)(e0.Z,{component:e9.r,href:te.H.credits,style:{textDecoration:"none"},children:(0,r.jsxs)(eQ.Z,{sx:{display:"flex",alignItems:"center",gap:.5,padding:"4px 8px",backgroundColor:e=>e.palette.success.main+"20",borderRadius:1,minWidth:"fit-content",marginRight:1},children:[(0,r.jsx)(t1.Z,{sx:{fontSize:"16px",color:"success.main"}}),(0,r.jsxs)(t2.Z,{variant:"body2",sx:{color:"success.main",fontWeight:600,whiteSpace:"nowrap"},children:["$",(0,t5.r)(e||0)]})]})}):null},oe=e=>{let{visible:t}=e,o=(0,eX.Z)(),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,{scrollY:o}
1=(0,to.v)(t),[r,a]=(0,n.useState)(!1),i=(0,n.useCallback)(()=>{o.on("change",t=>{t>e?a(!0):a(!1)})},[o,e]);return(0,n.useEffect)(()=>{i()},[i]),(0,n.useMemo)(()=>r,[r])}(tU.y.H_DESKTOP),i=(0,tr.F)("custom"),l=(0,tr.F)("down","sm"),c=(0,e$.Z)("(max-width:420px)"),{user:{userType:d,additionalRoles:s},loggedIn:u,stateLoaded:p,handleEntryType:x}=(0,tK.n)(),g=(0,tP.b)({userType:d,additionalRoles:s}),h=(0,t$.dl)(tQ.Y.ENABLE_USER_NOTIFICATIONS),[m,y]=(0,n.useState)(!1),b=e=>{y(e)};return(0,r.jsx)(r.Fragment,{children:t?(0,r.jsxs)(e2.Z,{children:[(0,r.jsx)(e4.Z,{disableGutters:!0,sx:{height:{xs:tU.y.H_MOBILE,lg:tU.y.H_DESKTOP},transition:o.transitions.create(["height"],{easing:o.transitions.easing.easeInOut,duration:o.transitions.duration.shorter}),background:o.palette.backgroundColor,...a&&{height:{lg:tU.y.H_DESKTOP_OFFSET}}},children:(0,r.jsxs)(e3.Z,{maxWidth:!1,sx:e6.Z.container,children:[(0,r.jsxs)(eQ.Z,{sx:e6.Z.navMobile,children:[(0,r.jsx)(eQ.Z,{sx:{display:"inline-flex",alignItems:"center","@media (min-width:1200px)":{display:"none"}},children:(0,r.jsx)(tW,{loggedIn:u||d,offsetTop:a,data:tN.K})}),(0,r.jsxs)(e0.Z,{component:e9.r,prefetch:!1,href:"/",sx:{display:"inline-flex",alignItems:"center"},children:[(0,r.jsx)(eQ.Z,{sx:{display:"inline-flex","@media (min-width:1200px)":{display:"none"}},children:(0,r.jsx)(e8.default,{style:{height:"22px",width:"auto"},src:ti.Z,priority:!0,alt:"Design Gurus Logo"})}),(0,r.jsx)(eQ.Z,{sx:{display:"none","@media (min-width:1200px)":{display:"inline-flex"}},children:(0,r.jsx)(e8.default,{style:{height:"35px",width:"auto"},src:"dark"===o.palette.mode?tn.Z:ta.Z,priority:!0,alt:"Design Gurus Logo"})})]})]}),(0,r.jsx)(eQ.Z,{sx:{...e6.Z.navDesktop,display:"none","@media (min-width:1200px)":{display:"flex"}},children:(0,r.jsx)(tH.Z,{loggedIn:u||d,offsetTop:a,data:tN.K})}),(0,r.jsxs)(e1.Z,{alignItems:"center",direction:{xs:"row"},spacing:c?.5:1,children:[(0,r.jsx)(t6,{}),!u&&!d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eQ.Z,{sx:{display:"none","@media (min-width:1200px)":{display:"inline-flex"}},children:(0,r.jsx)(ty.Z,{title:"Contact Us",children:(0,r.jsx)(ts.Z,{"aria-label":"Contact Us",sx:e6.Z.contactUsBtn,onClick:()=>b(!0),children:(0,r.jsx)(t3.Z,{size:20,strokeWidth:1.6})})})}),(0,r.jsx)(tG.Z,{}),d?null:p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t0.Z,{}),(0,r.jsx)(e5.Z,{variant:"outlined",color:"dark"===o.palette.mode?"inherit":"primary",size:i?"medium":"small",sx:e6.Z.button,onClick:()=>x("signin"),"data-cy":"nav-login-btn",children:"Log In"}),(0,r.jsx)(e5.Z,{sx:{fontSize:{xs:"12px !important",sm:"16px !important"}},onClick:()=>x("signup"),size:"medium",variant:"gradient","data-cy":"nav-signup-btn",children:c?"Join":"Join For Free"})]}):(0,r.jsx)(t8.Z,{width:l?210:234,height:30,variant:"rounded"})]}),(u||d)&&(0,r.jsxs)(r.Fragment,{children:[g.userHasAnyRole(["Admin","Content-Manager","Support","Interviewer"])&&(0,r.jsx)(t7,{}),(0,r.jsx)(t0.Z,{}),(0,r.jsx)(eQ.Z,{sx:{display:"none","@media (min-width:1200px)":{display:"inline-flex"}},children:(0,r.jsx)(ty.Z,{title:"Contact Us",children:(0,r.jsx)(ts.Z,{"aria-label":"Contact Us",sx:e6.Z.contactUsBtn,onClick:()=>b(!0),children:(0,r.jsx)(t3.Z,{size:20,strokeWidth:1.6})})})}),(0,r.jsx)(tG.Z,{}),(h||g.userIsAdmin)&&(0,r.jsx)(tV.Z,{}),(0,r.jsx)(t9,{}),(0,r.jsx)(tY.Z,{})]}),m&&(0,r.jsx)(tX.default,{isLoggedIn:u,courseTitle:"None - General question",openDialog:m,closeDialog:b})]})]})}),a&&(0,r.jsx)(tJ,{})]}):(0,r.jsx)(r.Fragment,{})})};var ot=(0,eV.default)(()=>Promise.resolve(oe),{ssr:!1}),oo=e=>{let{children:t,isMaintenanceStart:o=!1,disableNavigation:a=!1}=e,i=(0,eK.usePathname)(),l=(0,x.K$)(),{user:{preferences:c},stateLoaded:d}=(0,tK.n)();(0,n.useEffect)(()=>{if(d){let e=null==c?void 0:c.theme.toLowerCase();e&&l.themeMode!==e&&l.onUpdate("themeMode",e)}},[d]);let s=(0,n.useMemo)(()=>!((null==i?void 0:i.includes("/course-play"))||(null==i?void 0:i.includes("/interview-prep/"))||(null==i?void 0:i.includes("/user-dashboard"))||"/learn"===i||(null==i?void 0:i.startsWith("/learn/"))||(null==i?void 0:i.includes("/mock/schedule"))||(null==i?void 0:i.includes("/1-on-1/schedule"))||(null==i?void 0:i.includes("/admin-course-play"))||"/assessment"===i||"/problem"===i||(null==i?void 0:i.startsWith("/problem/"))||(null==i?void 0:i.includes("/viewer"))||(null==i?void 0:i.includes("/mock-interviews/ai-interview"))||(null==i?void 0:i.includes("/daily-learning/coding-exercise"))||(null==i?void 0:i.includes("/system-design-question"))||(null==i?void 0:i.includes("/knowledge-evaluation"))||(null==i?void 0:i.includes("/sd-practice"))||(null==i?void 0:i.includes("/dashboard_v2"))||(null==i?void 0:i.startsWith("/profile"))||o&&a),[i,o,a]);return(0,r.jsxs)(eQ.Z,{sx:e6.Z.layout,children:[(0,r.jsx)(ot,{visible:s}),(0,r.jsx)(eQ.Z,{component:"main",sx:{flexGrow:1,...s&&{pt:{xs:8,md:10}}},children:t})]})},or=o(73949),oa=o(48182),on=o(49362),oi=o(66696),ol=o(26560),oc=o(59150),od=o(53779);let os=["/dashboard","/user-dashboard","/learn","/profile","/course-composer/","/course-play","/interview-prep/","/admin-course-play/","/blog/","/viewer/","/problem/","/mock/schedule","/ai-interview/","/certificate/","/jobs","/daily-learning/coding-exercise","/1-on-1/schedule","/knowledge-evaluation"],ou=()=>{let e=(0,eK.usePathname)();return os.some(t=>e.includes(t))?null:(0,r.jsx)(eQ.Z,{sx:{...oc.b.adBanner,minHeight:{xs:"95.5px",sm:"95.5
1px",md:"48px",lg:"48px"}}})},op=e=>{let{children:t}=e,{bannerCoupon:o,showCouponBanner:a,couponLoading:i}=(0,ol.S)(),[l,c]=(0,n.useState)(!1),[d,s]=(0,n.useState)(!0),u=(0,eK.usePathname)(),{user:{purchases:p},stateLoaded:x}=(0,tK.n)(),g=(0,eK.useRouter)();if((0,n.useEffect)(()=>{if(os.some(e=>u.includes(e)))s(!1);else if(x){if(null==p?void 0:p.hasAccessToAllCourse)s(!1);else{let e=localStorage.getItem(od.tt);s(!e||Date.now()>=Number(e))}}},[u,x,null==p?void 0:p.hasAccessToAllCourse]),l)return null;let h=!i&&x;return(0,r.jsx)(r.Fragment,{children:a&&d&&h?(0,r.jsx)(eQ.Z,{sx:oc.b.adBannerContainer,children:(0,r.jsxs)(eQ.Z,{sx:oc.b.adBanner,children:[(0,r.jsxs)(eQ.Z,{sx:oc.b.textWrapper,children:[(0,r.jsx)(eQ.Z,{component:"p",sx:oc.b.text,dangerouslySetInnerHTML:{__html:o.bannerText}}),(0,r.jsxs)(eQ.Z,{sx:oc.b.textBtnWrapper,children:[(null==o?void 0:o.expiration)&&(0,r.jsx)(oi.Z,{setShowBanner:s,coupon:o,targetDate:o.expiration}),t,(0,r.jsx)(e5.Z,{onClick:()=>g.push("/pricing"),sx:oc.b.button,children:"Buy now"})]})]}),(0,r.jsx)(on.Z,{onClick:()=>{c(!0);let e=Date.now()+864e5*od.FW;localStorage.setItem(od.tt,e.toString())},sx:oc.b.closeIcon})]})}):d&&!h?(0,r.jsx)(ou,{}):null})};var ox=(0,eV.default)(()=>Promise.resolve(op),{ssr:!1,loading:()=>(0,r.jsx)(ou,{})}),og=o(17450),oh=o(42449),om=o(99240);let oy=()=>{(0,om.lN)(),(0,om.t5)()};var ob=o(97709),of=o(53481),ov=o(17852),oC=o(27522),ok=o(32142);let ow={Judge0Private:2,Judge0Private_B:3,Judge0Private_Dev:4,Corex_A:5,Corex_Staging:6,Corex_Standalone_Testing:7};Object.freeze(ow),ow.Judge0Private,ow.Judge0Private_B,ow.Judge0Private_Dev,ow.Corex_A,ow.Corex_Staging,ow.Corex_Standalone_Testing;let oP="phc_ByGhSiXbIWfzdqlzKFWnmZYomA2PCc8O4fJwXj1QFwo";if(!oP)throw Error("PostHog key is not defined");let oj=async e=>{let t=null;try{let o=new ok.A(oP,{host:"https://us.i.posthog.com"}),r=await o.getFeatureFlagPayload(e,e);oh.k.info("PostHogConfig - Refreshing: ".concat(e),r),t=r,await o.shutdown()}catch(t){oh.k.error("PostHogConfig - Error in refreshCache for key ".concat(e,": ").concat(t.message))}return t};var oZ=o(35661),oS=o.n(oZ),oF=e=>{let t=(0,eK.usePathname)();(0,n.useEffect)(()=>{t&&e&&(console.log("Navigated to:",t),(0,or.Kz)(e,"page_view",{page_location:location.href}))},[t,e])},o_=o(97464),oT=o(38),oA=o(84170),oM=o(12515),oL=o(58349),oI=o(71590),oB=()=>{let{themeMode:e}=(0,x.K$)();return(0,n.useEffect)(()=>{document.documentElement.setAttribute("data-theme",e)},[e]),null},oD=o(21940);let oR=(0,eV.default)(()=>o.e(28706).then(o.bind(o,28706)),{loadableGenerated:{webpack:()=>[28706]}}),oO=(0,eV.default)(()=>Promise.all([o.e(4387),o.e(78902)]).then(o.bind(o,78902)),{loadableGenerated:{webpack:()=>[78902]}}),oq=e=>{let{children:t}=e,o=(0,n.useRef)(),a=(0,eK.usePathname)(),i=(0,eK.useRouter)(),[l,c]=(0,n.useState)(),[d,s]=(0,n.useState)(!1),u=(0,t$.dl)(tQ.Y.ENABLE_SCHEDULED_MAINTENANCE);(0,n.useEffect)(()=>{let e=!1;try{e=localStorage.getItem("isCookiePolicyAccepted")}catch(e){oh.k.error("cookiePolicyAccepted",e)}e?c(!1):c(!0)},[l]),(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("aff");if(e)try{sessionStorage.setItem("affiliateId",e)}catch(e){oh.k.error("affiliateId not set",e)}o.current||(o.current=(0,or.IH)())},[]),(0,n.useEffect)(()=>{oy()},[a]),oF(o.current),(0,n.useEffect)(()=>{let e=window.dataLayer||[];function t(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];e.push(o)}window.dataLayer=e,t("js",new Date),t("config","AW-855963434")},[]);let[p,x]=(0,n.useState)(null),[g,h]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!1),b=async()=>{y(!0);let e=await oj(tQ.Y.ENABLE_SCHEDULED_MAINTENANCE);if(!e){s(!1),y(!1);return}let t=oS()(null==e?void 0:e.maintenanceStartTime),o=t.clone().add(null==e?void 0:e.maintenanceDurationMins,"minutes");x({disableNavigation:null==e?void 0:e.disableNavigation,beforeMaintenanceText:null==e?void 0:e.beforeMaintenanceText,maintenanceText:null==e?void 0:e.maintenanceText,disableExpiry:e.disableExpiry,maintenanceStartTime:t,maintenanceDurationMins:null==e?void 0:e.maintenanceDurationMins,maintenanceEndTime:o});let r=sessionStorage.getItem("showMaintenanceBanner"),n=oS()(),i=(null==e?void 0:e.showBannerBeforeHrs)||24,l=n.isBetween(t.clone().subtract(i,"hours"),o)||(null==e?void 0:e.disableExpiry);a.includes("/dashboard")||a.includes("/learn")||a.includes("/profile")||a.includes("/course-composer/")||a.includes("/course-play")||a.includes("/admin-course-play/")||a.includes("/blog/")||a.includes("/certificate/")||!1===l||!1===r?s(!1):s(l),y(!1)};(0,n.useEffect)(()=>{u&&b()},[u]),(0,n.useEffect)(()=>
1{if(u){let e=oS()(),t=(null==p?void 0:p.disableExpiry)||e.isBetween(null==p?void 0:p.maintenanceStartTime,null==p?void 0:p.maintenanceEndTime);t?(h(!0),s(!0)):h(!1),(null==p?void 0:p.disableNavigation)&&t&&"/"!==a&&i.push("/")}},[u,p,a]);let f=u&&p&&g;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oC.default,{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=AW-855963434"}),(0,r.jsx)(eY,{children:(0,r.jsxs)(oo,{isMaintenanceStart:d&&f&&!m,disableNavigation:null==p?void 0:p.disableNavigation,children:[(0,r.jsx)(ox,{}),u&&d&&p?(0,r.jsx)(oO,{setShowMaintenanceBanner:s,maintenanceData:p,isMaintenanceStart:g}):(0,r.jsx)(r.Fragment,{}),!0===l?(0,r.jsx)(oR,{handleShowCookiePopUp:()=>{try{localStorage.setItem("isCookiePolicyAccepted",!0)}catch(e){oh.k.error("isCookiePolicyAccepted not set",e)}c(!1)}}):(0,r.jsx)(r.Fragment,{}),t]})})]})},oE={disable_session_recording:!0,autocapture:!1,persistence:"localStorage"},oz=e=>(0,r.jsx)(t$.zf,{apiKey:"phc_ByGhSiXbIWfzdqlzKFWnmZYomA2PCc8O4fJwXj1QFwo",options:oE,children:e.children});var oW=e=>{let{children:t}=e;return(0,r.jsx)(x.mu,{defaultSettings:{themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"vertical",themeColorPresets:"default",themeStretch:!1},children:(0,r.jsxs)(o_.w,{LogoFull:oM.Z,Logo:oL.Z,logo:oI.Z,logoFull:ta.Z,children:[(0,r.jsx)(of.c,{}),(0,r.jsx)(oD.B,{children:(0,r.jsx)(oz,{children:(0,r.jsx)(oa.a,{children:(0,r.jsx)(a.Z,{injectFirst:!0,children:(0,r.jsxs)(eN,{children:[(0,r.jsx)(oB,{}),(0,r.jsx)(ol.R,{children:(0,r.jsx)(og.u,{children:(0,r.jsx)(tK.d,{children:(0,r.jsx)(ob.Z,{children:(0,r.jsx)(ov.J,{children:(0,r.jsxs)(oq,{children:[(0,r.jsx)(x.b$,{primaryPresets:eO}),(0,r.jsx)(oT.J,{CourseCard:oA.Z,children:t})]})})})})})})]})})})})})]})})}},50997:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return P}});var r=o(27573),a=o(7653),n=o(29273),i=o(55991),l=o(80831),c=o(49362),d=o(59255),s=o(10052),u=o(24769),p={src:"/_next/static/media/msgSent.73301121.svg",height:306,width:406,blurWidth:0,blurHeight:0},x=o(17450),g=o(81695),h=o(50294),m=o(9812),y=o.n(m),b=o(42449);let f={askAuthor:{display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center",zIndex:200001},askAuthor__content:{position:"relative",display:"flex",flexFlow:"column",alignItems:"center",justifyContent:"center",backgroundColor:e=>e.palette.componentBackgroundColor,borderRadius:"4px",padding:"30px",marginTop:"30px",boxShadow:e=>e.customShadows.secondaryShadow},askAuthor__closeIcon:{position:"absolute",top:"15px",right:"15px",cursor:"pointer",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center",color:"grey"},askAuthor__title:{fontSize:"24px",fontWeight:"800",marginBottom:"5px",color:e=>e.palette.textColor},askAuthor__formWrapper:{marginBottom:"10px"},askAuthor__label:{fontWeight:"800",color:e=>e.palette.textColor},askAuthor__input:{display:"flex",flexFlow:"row",alignItems:"center",color:e=>e.palette.textColor,border:e=>"1px solid ".concat(e.palette.borderColor)},askAuthor__input:{"&::file-selector-button":{border:"none",backgroundColor:e=>e.palette.main,borderRadius:"4px",color:"white",padding:"5px 10px",marginTop:"-10px",cursor:"pointer","&:hover":{backgroundColor:"rgba(0,78,152, 0.9)"}}},askAuthor__text:{fontSize:"16px",fontWeight:"500",color:e=>e.palette.textColor},askAuthor__imageContainer:{position:"relative",height:"300px",width:"400px",margin:"10px 0px"},askAuthor__sentSuccess:{display:"flex",flexFlow:"column",alignItems:"center",justifyContent:"center",backgroundColor:e=>e.palette.componentBackgroundColor,borderRadius:"4px",minHeight:"450px",minWidth:"600px"},askAuthor__successText:{marginTop:"-30px",fontSize:"18px",fontWeight:"700",color:e=>e.palette.main,marginBottom:"30px"},askAuthor__button:{padding:"10px",fontSize:"16px",fontWeight:"700",borderRadius:"4px"},askAuthor__input:{color:e=>e.palette.textColor,backgroundColor:e=>e.palette.componentBackgroundColor,border:e=>"1px solid ".concat(e.palette.sectionBorderColor," ")}};var v=o(97502),C=o(78929),k=o(87834),w=o(53779),P=e=>{let{openDialog:t,closeDialog:o,courseTitle:P,documentTitle:j,isLoggedIn:Z}=e,S=(0,v.Z)(),F=(0,g.usePathname)(),{showAlert:_}=(0,x.V)(),T=(0,m.useTurnstile)(),[A,M]=(0,a.useState)(void 0),[L,I]=(0,a.useState)(!1),[B,D]=(0,a.useState)(""),[R,O]=(0,a.useState)(!1),[q,E]=(0,a.useState)(!1),[z,W]=(0,a.useState)(!1),H=F.includes("course-play"),{values:N,errors:U,touched:G,handleChange:J,handleBlur:Y,handleSubmit:V,setFieldValue:K}=(0,C.TA)({validationSchema:k.Ry({subject:k.Z_().required("Subject is required").max(w._F,w.jj),email:k.Z_().email("Invalid email address").when("isLoggedIn",{is:!1,then:e=>e.required("Email is required.")}),message:k.Z_().required("Message is required").max(w.kJ,w.gX),isLoggedIn:k.O7()}),initialValues:{email:"",message:"",subject:"",isLoggedIn:Z},onSubmit:async e=>{var t,r,a,n,i,l,c;let{email:d,message:s,subject:p}=e;if(A&&A.size>w.Ef){_({type:"error",open:!0,message:w.cN});return}let x=await T.getResponse(),g=new FormData;P&&g.append("courseTitle",P),j&&g.append("documentTitle",j),B&&g.append("courseUrl",B),s&&g.append("message",s),p&&g.append("subject",p),d&&g.append("email",d),A&&g.append("attachment",A,A.name),x&&g.append("turnstileToken",x),E(!0);try{let e=await (0,u.k_)(u.bl.ASK_AUTHOR,"POST",{data:g});(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)?(E(!1),_({type:"success",open:!0,message:"Message was sent successfully"}),O(!0),o(!1)):_({type:"error",open:!0,message:"Message sending failed, Try again!"})}catch(e){T.reset(),b.k.log("FAILED: ",(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(a=n.data)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.message)||(null==e?void 0:e.message)),_({type:"error",open:!0,message:(null==e?void 0:null===(c=e.response)||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:i.message)||"Message sending failed, Try again!"})}finally{E(!1)}}});(0,a.useEffect)(()=>{!0===Z&&H&&D("".concat(location.origin,"/").concat(F))},[]);let X=async()=>{},$=e=>{W(!1)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Z,{open:t,onClose:()=>o(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",sx:f.askAuthor,children:!0===R?(0,r.jsxs)(i.Z,{sx:f.askAuthor__sentSuccess,children:[(0,r.jsx)(i.Z,{sx:f.askAuthor__imageContainer,children:(0,r.jsx)(h.default,{priority:!0,alt:"Image",src:p,objectFit:"contain",layout:"fill"})}),(0,r.jsx)(i.Z,{sx:f.askAuthor__successText,children:"Message sent successfully!"}),(0,r.jsx)(l.Z,{"data-cy":"cp-ask-author-close-btn",sx:f.askAuthor__button,autoFocus:!0,onClick:()=>o(!1),children:"Close"})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i.Z,{"data-cy":"cp-ask-author-dialog",sx:f.askAuthor__content,children:[(0,r.jsx)(i.Z,{"data-cy":"cp-ask-author-close-btn",onClick:()=>o(!1),sx:f.askAuthor__closeIcon,children:(0,r.jsx)(c.Z,{})}),(0,r.jsx)(i.Z,{sx:f.askAuthor__title,children:!0===H?"Ask Author":"Contact Us"}),(0,r.jsxs)(i.Z,{sx:f.askAuthor__formWrapper,children:[(0,r.jsx)(i.Z,{sx:f.askAuthor__text,children:"Send your message here and we will get back to you as soon as possible."}),(0,r.jsxs)(i.Z,{sx:{paddingTop:"10px"},children:[(0,r.jsx)(d.Z,{value:Z,onChange:()=>K("isLoggedIn",Z),style:{display:"none"}}),!1===Z&&(0,r.jsxs)(i.Z,{sx:{paddingTop:"10px"},children:[(0,r.jsx)("h5",{sx:f.askAuthor__label,children:"Your Email"}),(0,r.jsx)(d.Z,{InputProps:{sx:f.askAuthor__input},autoFocus:!0,margin:"dense",id:"subject",name:"email",autoComplete:"email",fullWidth:!0,onChange:J,required:!0,error:G.email&&!!U.email,helperText:G.email&&U.email})]}),(0,r.jsxs)(i.Z,{sx:{paddingTop:"10px"},children:[(0,r.jsx)("h5",{sx:f.askAuthor__label,children:"Subject"}),(0,r.jsx)(d.Z,{InputProps:{sx:f.askAuthor__input},"data-cy":"cp-ask-author-subject-input",autoFocus:!0,margin:"dense",name:"subject",fullWidth:!0,onChange:J,required:!0,error:G.subject&&!!U.subject,helperText:G.subject&&U.subject})]})]}),(0,r.jsxs)(i.Z,{sx:{paddingTop:"10px"},children:[(0,r.jsx)("h5",{sx:f.askAuthor__label,children:"Message"}),(0,r.jsx)(d.Z,{InputProps:{sx:f.askAuthor__input},"data-cy":"cp-ask-author-message-input",margin:"dense",id:"message",inputProps:{maxLength:w.kJ},fullWidth:!0,multiline:!0,minRows:5,maxRows:15,onChange:J,required:!0,error:G.message&&!!U.message,helperText:G.message&&U.message})]}),(0,r.jsxs)(i.Z,{sx:{paddingTop:"10px"},children:[(0,r.jsx)("h5",{sx:f.askAuthor__label,children:"Attachment (optional)"}),(0,r.jsx)(d.Z,{autoFocus:!0,margin:"dense",id:"attachment",fullWidth:!0,onChange:e=>{var t,o;return M(null===(o=e.target)||void 0===o?void 0:null===(t=o.files)||void 0===t?void 0:t[0])},type:"file",error:L,helperText:L?"File size should not exceed 5MB limit.":"",InputProps:{sx:f.askAuthor__input}})]}),(0,r.jsx)(i.Z,{sx:{paddingTop:"10px"},children:(0,r.jsx)(y(),{sitekey:"0x4AAAAAAATNYeZXDb1I1PsX",theme:S.palette.mode,fixedSize:!0})})]}),(0,r.jsx)(i.Z,{children:(0,r.jsxs)(l.Z,{"data-cy":"cp-ask-author-send-btn",sx:f.askAuthor__button,onClick:V,color:"primary",variant:"contained",autoFocus:!0,disabled:q,children:[q&&(0,r.jsx)(s.Z,{sx:{marginRight:"4px"},size:20}),q?"Sending...":"Send Message"]})})]})})}),(0,r.jsx)(n.Z,{open:z,onClose:$,children:(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(i.Z,{children:"Send empty message?"}),(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(l.Z,{onClick:X,sx:f.askAuthor__button,children:"Yes"}),(0,r.jsx)(l.Z,{onClick:$,sx:f.askAuthor__button,children:"No"})]})]})})]})}},97709:function(e,t,o){"use strict";o.d(t,{A:function(){return m},Z:function(){return y}});var r=o(27573),a=o(7653),n=o(81695),i=o(88788),l=o(1249),c=o(24769),d=o(3310),s=o(26560),u=o(42449),p=o(37874),x=o(89382);let g=(0,a.createContext)(),h={allProducts:[],subscriptionProduct:[],customProduct:{},checkoutProduct:{}
1,includedProducts:[],selectedProduct:[],allCoursesProduct:null,payingAmount:0,discountAmount:0,bundleDiscount:0,countryDiscountAmount:0,countryDiscountPercent:0,bundleDiscountPercentage:0,totalOriginalPrice:0,payingAmountBeforeCoupon:0,hasCountryDiscount:!1,coupon:"",lifeTimeProductCategory:"",isAllCoursesProduct:!1,summaryProducts:[],couponDiscount:0,upgradeDiscount:0,couponDiscountPercent:0,allowCoupon:!0,newUserEmail:null,allCoursesAdded:!1,trial:null,gift:{status:!1,email:"",message:""},skipSelectProduct:!1,cartLoaded:!1,selectedTime:null,subscriptionDiscountForInterviews:0,subscriptionDiscountForInterviewsPercentage:0,interviewUserPremiumPurchaseDiscount:0,premiumUserFirstInterviewDiscount:0,premiumUserFirstInterviewDiscountPercentage:0,creditDiscount:0,creditApplied:!1,addOnsDiscount:0,addOnsDiscountPercentage:0};function m(){return(0,a.useContext)(g)}function y(e){let{children:t}=e,o=(0,n.useRouter)(),m=(0,n.usePathname)(),{country:y,countryDiscount:b,user:f}=(0,l.n)(),{purchases:v}=f,{bannerDiscount:C,bannerCoupon:k,loadBannerData:w,couponLoading:P}=(0,s.S)(),[j,Z]=(0,a.useState)(h),[S,F]=(0,a.useState)(""),[_,T]=(0,a.useState)(),[A,M]=(0,a.useState)(null),L=(0,a.useRef)(null),I=(0,a.useRef)(null),B=(0,a.useRef)(!1),D=(0,a.useRef)(null),R=(0,a.useRef)(null),O=(0,a.useRef)(null),q=async()=>(O.current||(O.current=(0,c.k_)(c.bl.PRODUCT,"GET").then(e=>(O.current=null,e.data.data)).catch(e=>{O.current=null})),O.current),E=e=>{let{newCart:t,cartCheckoutProductType:o=_,cartValidity:r=A}=e;try{localStorage.setItem("cart",JSON.stringify(t))}catch(e){}o!=_&&localStorage.setItem("cartCheckoutProductType",JSON.stringify(o)),r!=A&&localStorage.setItem("cartValidity",JSON.stringify(r))},z=async()=>D.current?D.current:(R.current||(R.current=(0,c.k_)(c.bl.PRODUCT_SLUG,"GET",{id:"all-courses"}).then(e=>{let t=e.data.data;return D.current=t,R.current=null,t})),R.current),W=async e=>{var t,o,r;let a=(null===(t=e.selectedProduct)||void 0===t?void 0:t.length)>0,n=(null===(o=e.allProducts)||void 0===o?void 0:o.length)>0,i=(null===(r=e.subscriptionProduct)||void 0===r?void 0:r.length)>0;if(a||n||i)try{let t=await q();if(!(null==t?void 0:t.length))return;let o={};if(a){let r=new Map(e.selectedProduct.map(e=>[e._id,e.quantity||1])),a=X(e.selectedProduct,t);o.selectedProduct=a.map(e=>({...e,quantity:r.get(e._id)||1}))}n&&(o.allProducts=X(e.allProducts,t)),i&&(o.subscriptionProduct=X(e.subscriptionProduct,t)),Z(e=>{let t={...e,...o};return E({newCart:t}),t})}catch(e){u.k.error("Failed to refresh cart products from API",e)}},H=()=>{let e=localStorage.getItem("cart");if(e){let t=JSON.parse(e);t.cartLoaded=!0,t.creditApplied=!1,t.creditDiscount=0,Z(t)}else Z(e=>({...e,cartLoaded:!0}));let t=localStorage.getItem("cartCheckoutProductType");t&&T(JSON.parse(t));let o=localStorage.getItem("cartValidity");o&&M(JSON.parse(o))},N=async e=>{var t,o,r,a;let n=(null==j?void 0:null===(t=j.selectedProduct)||void 0===t?void 0:t.some(e=>"SingleCourse"===e.type))?await z():null;if((null==j?void 0:null===(o=j.selectedProduct)||void 0===o?void 0:o.length)>0){let{payingAmount:t,discountAmount:o,couponDiscount:l,bundleDiscount:c,bundleDiscountPercentage:d,totalOriginalPrice:s,payingAmountBeforeCredits:u,hasCountryDiscount:p,countryDiscountAmount:x,isAllCoursesProduct:g,countryDiscountPercent:h,upgradeDiscount:m,subscriptionDiscountForInterviews:v,subscriptionDiscountForInterviewsPercentage:C,interviewUserPremiumPurchaseDiscount:k,premiumUserFirstInterviewDiscount:w,premiumUserFirstInterviewDiscountPercentage:P,creditDiscount:S,addOnsDiscount:F,addOnsDiscountPercentage:_}=(0,i.FB)({tier:null==j?void 0:null===(a=j.selectedTime)||void 0===a?void 0:null===(r=a.meetingPreference)||void 0===r?void 0:r.tier,products:j.selectedProduct,couponDiscountPercent:j.couponDiscountPercent,country:y,countryDiscount:b,allCoursesProduct:n,purchases:{...e,...j.creditApplied&&{creditAmount:null==f?void 0:f.creditAmount}},gift:j.gift});Z(e=>{let r={...e,payingAmount:t,creditDiscount:S,discountAmount:o,couponDiscount:l,bundleDiscount:c,bundleDiscountPercentage:d,totalOriginalPrice:s,payingAmou
1ntBeforeCoupon:u,hasCountryDiscount:p,countryDiscountAmount:x,countryDiscountPercent:h,allCoursesProduct:n,upgradeDiscount:m,summaryProducts:g?[n]:j.selectedProduct,isAllCoursesProduct:g,subscriptionDiscountForInterviews:v,subscriptionDiscountForInterviewsPercentage:C,interviewUserPremiumPurchaseDiscount:k,premiumUserFirstInterviewDiscount:w,premiumUserFirstInterviewDiscountPercentage:P,addOnsDiscount:F,addOnsDiscountPercentage:_};return E({newCart:r}),r})}else Z(e=>{let t={...e,payingAmount:0,discountAmount:0,couponDiscount:0,bundleDiscount:0,bundleDiscountPercentage:0,totalOriginalPrice:0,payingAmountBeforeCoupon:0,countryDiscountAmount:0,countryDiscountPercent:0,upgradeDiscount:0,hasCountryDiscount:!1,isAllCoursesProduct:!1,summaryProducts:[],allCoursesProduct:n,subscriptionDiscountForInterviews:0,subscriptionDiscountForInterviewsPercentage:0,interviewUserPremiumPurchaseDiscount:0,premiumUserFirstInterviewDiscount:0,premiumUserFirstInterviewDiscountPercentage:0,creditDiscount:0,creditApplied:!1,addOnsDiscount:0,addOnsDiscountPercentage:0};return E({newCart:t}),t})},U=async(e,t)=>{try{if(f.email){var o,r,a,n,i,l,d;let s=e=>({_id:e._id,title:e.title,slug:e.slug,originalPrice:e.originalPrice}),u=null===(o=e.includedProducts)||void 0===o?void 0:o.map(s),p=null===(r=e.subscriptionProduct)||void 0===r?void 0:r.map(s),x=null===(a=e.allProducts)||void 0===a?void 0:a.map(s),g=null===(i=e.allCoursesProduct)||void 0===i?void 0:null===(n=i.map)||void 0===n?void 0:n.call(i,s),h=null===(l=e.summaryProducts)||void 0===l?void 0:l.map(s),m=null===(d=e.selectedProduct)||void 0===d?void 0:d.map(s),y={...e,includedProducts:u,allCoursesProduct:g,summaryProducts:h,allProducts:x,subscriptionProduct:p,selectedProduct:m};await (0,c.k_)(c.bl.CART_ACTIVITY,"POST",{data:{cart:y,status:t||"cart"}})}}catch(e){console.error("error",e)}},G=(0,x.y1)(U,2e3),J=async e=>{I.current=null,B.current=!1;let{allInterviewProducts:t=[],singleCourseProduct:r=[],subscriptionProduct:a=[],checkoutProduct:n,customProduct:i,lifeTimeProductCategory:l,includedProducts:c=[],gift:s=!1,skipSelectProduct:x=!1,allowTrial:g=!1,selectedTime:m=null,allowCoupon:y=!0}=await $(e),b=null;g&&(b=(0,p.xh)(f,null==n?void 0:n.validity,g));let v={...h,allProducts:[...t,...r],subscriptionProduct:a.slice().reverse(),checkoutProduct:n,lifeTimeProductCategory:l,customProduct:i,cartLoaded:!0,allCoursesAdded:"all-courses"==n.slug,trial:b,gift:{status:s,email:"",message:""},skipSelectProduct:x,selectedTime:m,allowCoupon:y};Z(v),T(null==n?void 0:n.type),M(n.validity),u.k.log({1:null==n?void 0:n.type});let C=null==n?void 0:n.type;if(F(null),(null==n?void 0:n.type)&&(n.type===d.q8?Y({product:c,action:"Bundle",initialProduct:!0,gift:v.gift}):n.type===d.yX?Y({product:c,action:"Path",initialProduct:!0,gift:v.gift}):Y({product:n,action:"Add",initialProduct:!0,gift:v.gift})),t.length>0){var k;Y({product:n[0],action:"Add",initialProduct:!0,gift:v.gift}),T(C=null===(k=t[0])||void 0===k?void 0:k.type)}E({newCart:v,cartCheckoutProductType:C,cartValidity:n.validity}),o.push("/checkout")},Y=async e=>{let{product:t,action:o,initialProduct:r,gift:a=j.gift}=e;B.current||(I.current=null);let n=r;if((null==n?void 0:n.length)>0){let{newIncludedProduct:e}=(0,p._e)({includedProducts:n,singleCourseProduct:n,purchases:v,gift:a});n=e}switch(u.k.log("UpdateSelectedProduct",t,o),o){case"Bundle":case"Path":case"Select All":let{newIncludedProduct:i}=(0,p._e)({includedProducts:t,singleCourseProduct:t,purchases:v,gift:a}),l=i.map(e=>({...e,quantity:1}));Z(e=>{let t={...e,selectedProduct:l,creditApplied:!1,creditDiscount:0};return E({newCart:t}),t});break;case"Add":Z(e=>{let o={...e,selectedProduct:n?[{...t,quantity:1}]:[...j.selectedProduct,{...t,quantity:1}],creditApplied:!1,creditDiscount:0};return E({newCart:o}),o});break;case"Remove":if(j.selectedProduct.findIndex(e=>e._id===t._id)>=0){let e=j.selectedProduct.filter(e=>e._id!=t._id);Z(t=>{let o={...t,selectedProduct:e,creditApplied:!1,creditDiscount:0};return E({newCart:o}),o})}break;case"Remove All":Z(e=>{let t={...e,selectedProduct:[],creditApplied:!1,creditDiscount:0};return E({newCart:t}),t});break;case"Replace":Z(e=>{var o,r;let a={...e,trial:(null===(o=j.gift)||void 0===o?void 0:o.status)==!1&&(null===(r=j.trial)||void 0===r?void 0:r.applicable)==!0?(0,p.xh)(f,t.validity,j.trial.allowTrial):null,selectedProduct:[t],creditApplied:!1,creditDiscount:0};return E({newCart:a}),a}),M(t.validity)}r&&Z(e=>{let t={...e,coupon:"",couponDiscount:0,couponDiscountPercent:0};return E({newCart:t}),t})};(0,a.useEffect)(()=>
1{if(!S&&!1!=j.allowCoupon&&!P&&(!k||j.coupon!==k.code||j.couponDiscountPercent!==k.discountPercent)){if(j.coupon&&I.current!==j.coupon)K(j.coupon);else{if(j.coupon&&I.current===j.coupon)return;C(...j.selectedProduct.map(e=>e._id))&&k&&Z(e=>{let t={...e,couponDiscountPercent:k.discountPercent,coupon:k.code};return E({newCart:t}),t})}}},[k,j.selectedProduct,S,P]);let V=e=>!!k&&!!j&&j.coupon===k.code&&j.couponDiscountPercent!==e,K=async e=>{var t;let o=e.trim();if((null===(t=L.current)||void 0===t?void 0:t.code)===o)return L.current.promise;let r=(async()=>{try{var e,t;let r=await (0,c.k_)(c.bl.COUPON_VERIFY,"GET",{params:{code:o,productIds:j.selectedProduct.map(e=>e._id)}});if((null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.valid)==!0){let e=r.data.data.discountPercent;Z(t=>{let r={...t,couponDiscountPercent:e,coupon:o};return E({newCart:r}),r}),V(e)&&w(!0),F(null),I.current=o,B.current=r.data.data.appliesToAll||!1}else F("Invalid Coupon"),B.current=!1,Z(e=>{let t={...e,couponDiscount:0,couponDiscountPercent:0,coupon:""};return E({newCart:t}),t})}finally{L.current=null}})();return L.current={code:o,promise:r},r};(0,a.useEffect)(()=>{H()},[]),(0,a.useEffect)(()=>{(null==m?void 0:m.includes("/checkout"))&&j.cartLoaded&&W(j)},[m,j.cartLoaded]);let X=(e,t)=>(null==e?void 0:e.map(e=>t.find(t=>t._id===e._id)).filter(Boolean).map(e=>({_id:e._id,title:e.title,originalPrice:e.originalPrice,slug:e.slug,discountPercent:e.discountPercent,finalPrice:e.finalPrice,category:e.category,accessToAllCourses:e.accessToAllCourses,validity:e.validity,type:e.type,courses:e.courses,coverImageUrl:e.coverImageUrl,countryDiscountType:e.countryDiscountType,tiers:e.tiers,minimumPrice:e.minimumPrice,jobType:e.jobType,products:e.products,catalogCategoryId:e.catalogCategoryId,catalogSortOrder:e.catalogSortOrder,newArrivalSortOrder:e.newArrivalSortOrder})))||[],$=async e=>{var t;let o=await q(),r=["subscriptionProduct","includedProducts","singleCourseProduct","allInterviewProducts"].reduce((t,r)=>(e[r]&&(t[r]=X(e[r],o)),t),{});return{...e,...(null==e?void 0:null===(t=e.checkoutProduct)||void 0===t?void 0:t.type)&&{checkoutProduct:X([e.checkoutProduct],o)[0]},...r}};return(0,r.jsx)(g.Provider,{value:{cart:j,country:y,countryDiscount:b,couponError:S,checkoutProductType:_,validity:A,setCheckoutProductType:T,AddProduct:J,UpdateSelectedProduct:Y,UpdateSelectedProductQuantity:e=>{let{product:t,action:o}=e;switch(o){case"Increment":Z(e=>{let o={...e,selectedProduct:e.selectedProduct.map(e=>{if(e._id!==t._id)return e;{let o=e.quantity>0?e.quantity+1:1;return{...e,quantity:o,originalPrice:t.originalPrice*o}}}),creditApplied:!1,creditDiscount:0};return E({newCart:o}),o});break;case"Decrement":Z(e=>{let o={...e,selectedProduct:e.selectedProduct.map(e=>{if(e._id!==t._id)return e;{let o=e.quantity>1?e.quantity-1:1;return{...e,quantity:o,originalPrice:t.originalPrice*o}}}),creditApplied:!1,creditDiscount:0};return E({newCart:o}),o})}},ApplyCoupon:K,SetNewUserEmail:e=>{Z(t=>{let o={...t,newUserEmail:e};return E({newCart:o}),o})},UpdateGiftDetails:e=>{let{email:t,message:o}=e;Z(e=>{let r={...e,gift:{...e.gift,...t&&{email:t},...o&&{message:o}}};return E({newCart:r}),r})},CalculateAmounts:N,GetCartFromLocalStorage:H,RemovePurchaseProductFromSelectedProduct:e=>{let{newSingleCourseProduct:t}=(0,p._e)({includedProducts:[],singleCourseProduct:j.selectedProduct,purchases:e,gift:j.gift});Z(e=>{let o={...e,selectedProduct:t};return E({newCart:o}),o})},debouncedSaveCartActivity:G,ApplyCredits:()=>{Z(e=>{let t=Math.min((null==f?void 0:f.creditAmount)||0,e.payingAmount),o={...e,creditApplied:!0,creditDiscount:t,payingAmount:Math.max(0,e.payingAmount-t)};return E({newCart:o}),o})},RemoveCredits:()=>{Z(e=>{let t={...e,creditApplied:!1,creditDiscount:0,payingAmount:e.payingAmount+e.creditDiscount};return E({newCart:t}),t})}},children:t})}},66696:function(e,t,o){"use strict";var r=o(27573),a=o(361),n=o.n(a),i=o(7653);t.Z=function(e){let{setShowBanner:t,targetDate:o,coupon:a,showDaysAndHours:l=!0}=e,[c,d]=(0,i.useState)(s());function s(){let e=new Date().getTime(),r=new Date(o).getTime()-e;if(r<0)return(t(!1),l)?{days:"00",hours:"00",minutes:"00",seconds:"00",timeDifference:0}:{minutes:"00",seconds:"00",timeDifference:0};let a=Math.floor(r/864e5).toString().padStart(2,"0"),n=Math.floor(r%864e5/36e5).toString().padStart(2,"0"),i=Math.floor(r%36e5/6e4).toString().padStart(2,"0"),c=Math.floor(r%6e4/1e3).toString().padStart(2,"0");return l?{days:a,hours:n,minutes:i,seconds:c,timeDifference:r}:{minutes:i,seconds:c,timeDifference:r}}return(0,i.useEffect)(()=>{let e=setTimeout(()=>{d(s())},1e3);return()=>clearTimeout(e)}
1,[c]),(0,r.jsxs)("div",{className:n().countdownTimer,children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:n().countdownTimer__timerItemStyle,children:[(0,r.jsx)("div",{className:n().countdownTimer__valueStyle,children:c.days}),(0,r.jsx)("div",{className:n().countdownTimer__labelStyle,children:"Days"})]}),(0,r.jsx)("div",{className:n().countdownTimer__colonStyle,children:":"}),(0,r.jsxs)("div",{className:n().countdownTimer__timerItemStyle,children:[(0,r.jsx)("div",{className:n().countdownTimer__valueStyle,children:c.hours}),(0,r.jsx)("div",{className:n().countdownTimer__labelStyle,children:"Hours"})]}),(0,r.jsx)("div",{className:n().countdownTimer__colonStyle,children:":"})]}),(0,r.jsxs)("div",{className:n().countdownTimer__timerItemStyle,children:[(0,r.jsx)("div",{className:n().countdownTimer__valueStyle,children:c.minutes}),(0,r.jsx)("div",{className:n().countdownTimer__labelStyle,children:"Minutes"})]}),(0,r.jsx)("div",{className:n().countdownTimer__colonStyle,children:":"}),(0,r.jsxs)("div",{className:n().countdownTimer__timerItemStyle,children:[(0,r.jsx)("div",{className:n().countdownTimer__valueStyle,children:c.seconds}),(0,r.jsx)("div",{className:n().countdownTimer__labelStyle,children:"Seconds"})]})]})}},59150:function(e,t,o){"use strict";o.d(t,{b:function(){return r},c:function(){return a}});let r={adBanner:{padding:"5px 15px 0px 15px",minHeight:"45px",backgroundImage:"linear-gradient(135deg, #5c2c06 0%, #a9491d 45%, #f0a73c 100%)",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"space-between",width:"100%",zIndex:999,boxShadow:e=>e.customShadows.primaryShadow},closeIcon:{color:"#ffe8c2",cursor:"pointer"},textWrapper:{width:"100%",textAlign:"center",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center",color:"#fff5e6 !important","@media (min-width: 320px) and (max-width: 740px)":{padding:"10px 0px",flexFlow:"column"}},text:{color:"#fff5e6 !important","@media (min-width: 320px) and (max-width: 768px)":{fontSize:"15px"}},textBtnWrapper:{display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center","@media (min-width: 320px) and (max-width: 740px)":{marginTop:"5px"}},button:{padding:"2.5px 10px",fontSize:"14px",fontWeight:700,textTransform:"capitalize",textAlign:"center",outline:"none",border:"none",borderRadius:"2.5px",boxShadow:e=>e.customShadows.primaryShadow,backgroundColor:"#8b1e3f",color:"#fff5e6",transition:"all 0.5s ease",width:"83px",minWidth:"83px",maxWidth:"83px",margin:"0px 5px","&:hover":{transform:"translateY(-2px)",transition:"all 0.5s ease",backgroundColor:"#701632"}},adBannerContainer:{display:"flex"}},a={adBanner:{padding:"5px 15px 0px 15px",minHeight:"45px",backgroundImage:"linear-gradient(134.6deg, rgba(201, 37, 107, 1) 15.4%, rgba(116, 16, 124, 1) 74.7%)",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"space-between",width:"100%",zIndex:999,boxShadow:e=>e.customShadows.primaryShadow},closeIcon:{color:"white",cursor:"pointer"},textWrapper:{width:"100%",textAlign:"center",display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"center",color:"white !important","@media (min-width: 320px) and (max-width: 740px)":{padding:"10px 0px",flexFlow:"column"}},text:{color:"white","@media (min-width: 320px) and (max-width: 768px)":{fontSize:"15px"}},textBtnWrapper:{display:"flex",flexFlow:{xs:"column",sm:"column",md:"row"},alignItems:"center",justifyContent:"center","@media (min-width: 320px) and (max-width: 740px)":{marginTop:"5px"}},adBannerContainer:{display:"flex",marginTop:"5px"}}},21940:function(e,t,o){"use strict";o.d(t,{B:function(){return l},j:function(){return c}});var r=o(27573),a=o(81695),n=o(7653);let i=(0,n.createContext)(void 0),l=e=>{let{children:t}=e,o=(0,a.usePathname)(),l=(0,a.useRouter)(),[c,d]=(0,n.useState)([]),s=(0,n.useRef)(null);(0,n.useEffect)(()=>{o&&s.current!==o&&!o.includes("/course-play")&&(d(e=>[...e.slice(-9),o]),s.current=o)},[o]);let u=c.length>1,p=c[c.length-1];return(0,r.jsx)(i.Provider,{value:{history:c,canGoBack:u,smartBack:e=>{u&&p?l.push(p):l.push(e)}},children:t})},c=()=>{let e=(0,n.useContext)(i);if(!e)throw Error("useNavigationHistory must be used within NavigationHistoryProvi
1der");return e}},38:function(e,t,o){"use strict";o.d(t,{J:function(){return l},u:function(){return i}});var r=o(27573),a=o(7653);let n=(0,a.createContext)({});function i(){return(0,a.useContext)(n)}function l(e){let{children:t,CourseCard:o}=e;return(0,r.jsx)(n.Provider,{value:{CourseCard:o},children:t})}},96045:function(){},361:function(e){e.exports={primary:"#004e98",coursePlayerAccentColor:"#0556f3",textColor:"#fff",secondaryFont:"var(--nunito-font)",countdownTimer:"countdownTimer_countdownTimer__AsVb7",countdownTimer__timerItemStyle:"countdownTimer_countdownTimer__timerItemStyle__cs7TM",countdownTimer__valueStyle:"countdownTimer_countdownTimer__valueStyle__f8g8A",countdownTimer__labelStyle:"countdownTimer_countdownTimer__labelStyle__eAYjh",countdownTimer__colonStyle:"countdownTimer_countdownTimer__colonStyle___Beqc"}}},function(e){e.O(0,[98666,15694,97521,66474,65551,59981,29488,37909,55991,27523,51565,49703,52739,10419,67239,11400,21690,45948,83183,50294,97533,88146,52780,59385,96267,62579,87834,31361,84634,78929,63733,4165,96392,22288,1249,57450,91726,2969,48744,81293,31362,35702,1744],function(){return e(e.s=67602)}),_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.