1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{32900:function(e,n,s){s.d(n,{Z:function(){return x}});var t=s(10253),l=s(85893),i=(s(67294),s(48583)),a=s(20118),r=s(41664),o=s.n(r),c=s(67814),d=s(59417),u=s(35739);function x(e){var n=e.label,s=(0,t.Z)((0,i.KO)(a.cY),1)[0];return(0,l.jsx)(o(),{href:"/cart",children:(0,l.jsxs)(u.z,{variant:"secondary",size:n?"default":"icon",className:"relative ".concat(n&&"justify-start w-full"),children:[(0,l.jsx)(c.G,{size:"lg",icon:d.yYj}),n,s.length>0&&(0,l.jsx)("span",{className:"absolute font-regular -top-2 -right-2 px-[8px] py-[2px] bg-destructive text-destructive-foreground rounded-full text-xs",children:s.length})]})})}},72685:function(e,n,s){s.d(n,{I:function(){return o}});var t=s(26042),l=s(99534),i=s(85893),a=s(67294),r=s(62461),o=a.forwardRef((function(e,n){var s=e.className,a=e.type,o=(0,l.Z)(e,["className","type"]);return(0,i.jsx)("input",(0,t.Z)({type:a,className:(0,r.cn)("flex h-10 w-full rounded-md border border-foreground/50 bg-background px-3 py-2 text-base text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-[13px]",s),ref:n},o))}));o.displayName="Input"},70893:function(e,n,s){s.r(n),s.d(n,{default:function(){return _}});var t=s(85893),l=s(67294),i=s(9008),a=s.n(i),r=s(41664),o=s.n(r),c=s(89885),d=s(47041),u=s(96076),x=s(67814),f=s(59417),h=s(69875),m=s(7386),p=s(11163),g=s(96486),j=s(93520),b=s(35739),v=s(73524),w=s(62461),y=s(72685),N=s(71248),C=s(32900),k="#E11D48";function _(e){var n,s=(0,l.useContext)(c.Z),i=s.toggleAuthModal,r=s.setIsLogin,_=s.setIsPayment,E=s.hasSession,z=s.appConfig,A=s.currentUser,T=s.lastTestPassCheck,F=s.isTestPassPurchased,L=s.setIsTestPassPurchased,G=e.appCategories,P=(0,p.useRouter)(),S=(0,d.getCookie)(u.Lo),D=S?null===G||void 0===G?void 0:G.find((function(e){return e.id==S})):null,I=null===G||void 0===G?void 0:G.find((function(e){var n;return"all"===(null===(n=e.name)||void 0===n?void 0:n.toLowerCase())})),X=P.asPath,M=P.pathname,Z=(0,l.useState)(""),O=Z[0],q=Z[1],R=(0,l.useState)(!1),W=R[0],Y=R[1],K=function(e){r(e),_(!1),i()},$=(0,l.useMemo)((function(){return"/search"===P.pathname||(0,j.hb)(z.web_disableSearch)}),[z.web_disableSearch,P.pathname]),B=(0,g.some)(z.web_menuitems,{type:"TEST_PASS"}),U=(0,j.hb)(z.web_testpasscompulsory),H=B&&(!U||!A||F),J=(0,N.rT)(z,H);J=(0,N.eK)(J,z,H);var Q=(0,N.ud)(z);Q=(0,N.qn)(Q,z);var V=function(){e.toggleSideBar()},ee=function(){P.push("/search?query="+O)};(0,l.useEffect)((function(){var e=function(){Y(window.innerWidth<=992)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,l.useEffect)((function(){E&&B&&!F&&(!(null===T||void 0===T?void 0:T.current)||T.current&&T.current.getTime()<(new Date).getTime()-3e5)&&(T.current=new Date,(0,m.bJ)(z.web_apiurl).then((function(e){if(e.data.length>0){var n=e.data[0];n&&L((0,j.hb)(n.is_paid))}})).catch((function(e){console.error(e)})))}),[T,E,F,B,z.web_apiurl,L]);var ne="0"!=z.web_enablemenuhome||(0,g.isEmpty)(z.web_landingpage)?"/":z.web_landingpage,se="text-[#475569] hover:text-[#E11D48] transition-colors";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a(),{children:(0,t.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Lato:wght@400;700&family=Poppins:wght@400;600;700&display=swap"})}),(0,t.jsx)("nav",{id:"header",style:{fontFamily:"'Inter', ui-sans-serif, system-ui, sans-serif"},className:"sticky top-0 z-50 w-full bg-white border-b border-gray-100 shadow-sm",children:(0,t.jsxs)("div",{className:"max-w-[1500px] mx-auto flex items-center justify-between w-full gap-2 lg:gap-4 px-4 md:px-6 h-[72px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[e.toggleSideBar&&(0,t.jsx)(b.z,{onClick:V,id:"navbarToggler",variant:"ghost",size:"icon",className:"lg:hidden",children:(0,t.jsx)(x.G,{size:"lg",icon:f.xiG,className:"text-[#0F172A]"})}),(0,t.jsx)("a",{id:"headerLogo",href:ne,className:"flex items-center gap-2.5 no-underline shrink-0",children:(0,g.isEmpty)(z.
1web_logo)?(0,t.jsx)("div",{className:"w-[44px] h-[44px] lg:w-[59px] lg:h-[58.38px] rounded-full bg-white border-2 border-[#E11D48]/20 flex items-center justify-center text-[#E11D48] font-extrabold text-[16px]",children:"P"}):(0,t.jsx)("div",{className:"w-[44px] h-[44px] lg:w-[59px] lg:h-[58.38px] rounded-full bg-white flex items-center justify-center overflow-hidden",children:(0,t.jsx)("img",{src:z.web_logo,className:"object-contain w-full h-full mix-blend-multiply",alt:"Parmar Academy"})})}),!W&&(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-1 ml-4",children:[J.slice(0,5).map((function(e){var n=e.as?"/"===e.as?"/"===X:X.includes(e.as):"/"===e.href?"/"===M:M.includes(e.href);return(0,t.jsx)(o(),{href:e.href,as:e.as||e.href,children:(0,t.jsx)("a",{className:(0,w.cn)("flex h-10 items-center px-3 xl:px-4 text-[15px] font-medium no-underline",se,n&&"text-[#E11D48] font-semibold"),children:e.label})},e.label)})),J.length>5&&(0,t.jsxs)(v.h_,{children:[(0,t.jsxs)(v.$F,{className:(0,w.cn)("flex h-10 items-center px-3 xl:px-4 text-[15px] font-medium no-underline gap-1",se),children:["More",(0,t.jsx)(x.G,{icon:f.ptq,className:"h-3 w-3"})]}),(0,t.jsx)(v.AW,{className:"max-h-[80vh] rounded-xl",children:J.slice(5).map((function(e,n){var s=e.as?"/"===e.as?"/"===X:X.includes(e.as):"/"===e.href?"/"===M:M.includes(e.href);return(0,t.jsx)(o(),{href:e.href,as:e.as||e.href,children:(0,t.jsx)(v.Xi,{children:(0,t.jsxs)("a",{className:(0,w.cn)("flex items-center rounded-lg px-3 font-medium transition-colors h-10 hover:bg-[#FFF1F4] no-underline gap-2 text-sm w-full text-[#475569]",s&&"text-[#E11D48] font-semibold"),children:[e.icon&&(0,t.jsx)(x.G,{icon:e.icon,className:"text-[#E11D48]"}),e.label]})})},n)}))})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 justify-end min-w-0",children:[(null===G||void 0===G?void 0:G.length)>0&&"1"==z.web_enableappcategories&&(0,t.jsxs)(v.h_,{children:[(0,t.jsx)(v.$F,{asChild:!0,children:(0,t.jsxs)(b.z,{variant:"ghost",className:"hidden md:flex items-center gap-2 text-[#1f2937]",children:[(null===D||void 0===D?void 0:D.name)||"All",(0,t.jsx)(x.G,{icon:f.ptq,className:"h-4 w-4"})]})}),(0,t.jsxs)(v.AW,{children:[I?(0,t.jsx)(v.Xi,{onClick:e.toggleCategoryModal,children:I.name},I.id):(0,t.jsx)(v.Xi,{onClick:function(){localStorage.removeItem(u.dA.SELECTED_CATEGORY_HEADER),(0,d.setCookie)(u.Lo,""),window.location.reload()},children:"All"},"all"),G.filter((function(e){return!I||e.id!==I.id})).map((function(n){return(0,t.jsx)(v.Xi,{onClick:e.toggleCategoryModal,children:n.name},n.id)}))]})]}),E?(0,t.jsxs)(v.h_,{children:[(0,t.jsx)(v.$F,{asChild:!0,children:(0,t.jsx)(b.z,{id:"user-menu-trigger",size:"icon",style:{backgroundColor:k},className:"overflow-hidden rounded-full",onClick:function(){var n;return null===(n=e.toggleUserMenu)||void 0===n?void 0:n.call(e)},children:(0,g.isEmpty)(null===A||void 0===A?void 0:A.photo)?(0,t.jsx)("span",{className:"text-xl font-medium text-white",children:null===A||void 0===A||null===(n=A.name)||void 0===n?void 0:n.charAt(0)}):(0,t.jsx)("img",{src:A.photo,className:"h-10 w-10 object-cover",alt:null===A||void 0===A?void 0:A.name})})}),(0,t.jsxs)(v.AW,{children:[(0,t.jsx)(v.Xi,{children:"1"==z.web_enablecart&&(0,t.jsx)(C.Z,{label:"Cart"})}),Q.filter((function(e){return e.isShown})).map((function(e){return(0,t.jsx)(v.Xi,{children:e.href?(0,t.jsx)(o(),{href:e.href,as:e.as||e.href,className:"w-full no-underline",children:(0,t.jsxs)(b.z,{variant:"secondary",className:"justify-start flex items-center gap-2 w-full",onClick:e.onClick,children:[(0,t.jsx)(x.G,{icon:e.icon}),e.label]})}):(0,t.jsxs)(b.z,{variant:"secondary",className:"justify-start flex items-center gap-2 w-full",onClick:"Logout"==e.label?h.TX:e.onClick,children:[(0,t.jsx)(x.G,{icon:e.icon}),e.label]})},"".concat(e.label,"-").concat(e.type))}))]})]}):(0,t.jsx)("button",{id:"login",onClick:function(){return K(!0)},style:{backgroundColor:"#E62063",fontFamily:"'Poppins', sans-serif"},className:"shrink-0 whitespace-nowrap flex items-center justify-center py-[10px] px-[14px] sm:w-[165px] sm:h-[46px] sm:px-[24px] rounded-lg text-[14px] sm:text-[20px] font-semibold leading-[1.3] tracking-normal uppercase text-white hover:opacity-90 transition-opacity shadow-[0px_1px_108.6px_0px_#F4C02E42]",children:"Login Now"})]})]})}),W?(0,t.jsxs)("aside",{className:(0,w.cn)("fixed top-0 left-0 h-full w-full bg-white z-50 max-w-[300px] transition-transform duration-300 ease-in-out p-[16px] flex lg:hidden flex-col gap-6",e.isOpen?"transform translate-x-0":"transform -translate-x-full"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[16px]",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"font-extrabold text-[16px] text-[#0F172A]",children:"Parmar Academy"}),(0,t.jsx)(b.z,{variant:"ghost",size:"icon",onClick:V,children:(0,t.jsx)(x.G,{icon:f.g82,className:"text-3xl text-[#0F172A]"})})]}),!$&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(y.I,{placeholder:"Type here to search..",value:O,onChange:function(e){return q(e.target.value)},onKeyDown:function(e){"Enter"==e.key&&(ee(),V())},className:"flex-1"}),(0,t.jsx)(b.z,{size:"icon",onClick:function(){ee(),V()},className:"shrink-0",variant:"secondary",children:(0,t.jsx)(x.G,{icon:f.wn1})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[12px] overflow-y-auto no-scrollbar pb-32",children:[J.map((function(e){var n=e.as?"/"===e.as?"/"===X:X.includes(e.as):"/"===e.href?"/"===M:M.includes(e.href);return(0,t.jsx)("a",{href:e.href,children:(0,t.jsxs)(b.z,{variant:n?"default":"outline",style:n?{backgroundColor:k}:void 0,className:(0,w.cn)("justify-start w-full gap-2",n&&"text-white border-0"),children:[e.icon&&(0,t.jsx)(x.G,{icon:e.icon,size:"sm"}),(0,t.jsx)("div",{className:"no-underline text-start",children:e.label})]})},e.label)})),!E&&(0,t.jsx)(b.z,{onClick:function(){K(!0),V()},style:{backgroundColor:k},className:"justify-start w-full text-white border-0",children:"Login Now"}),E&&Q.map((function(e){var n=e.as?"/"===e.as?"/"===X:X.includes(e.as):"/"===e.href?"/"===M:M.includes(e.href);return(0,t.jsx)("a",{href:e.href,children:(0,t.jsxs)(b.z,{variant:"Logout"==e.label?"destructive":n?"default":"outline",className:"justify-start w-full gap-2",onClick:"Logout"==e.label?h.TX:e.onClick,children:[(0,t.jsx)(x.G,{icon:e.icon,size:"sm"}),(0,t.jsx)("div",{className:"no-underline text-start",children:e.label})]})},e.label)}))]})]}):null]})}},20118:function(e,n,s){s.d(n,{Tm:function(){return i},cY:function(){return l},hn:function(){return a}});var t=s(95495),l=(0,t.O4)("cart",[]),i=(0,t.O4)("cart_added_at",null),a=2592e5}}]);
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.