1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8136],{32900:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(10253),o=t(85893),r=(t(67294),t(48583)),l=t(20118),s=t(41664),a=t.n(s),c=t(67814),d=t(59417),u=t(35739);function h(e){var n=e.label,t=(0,i.Z)((0,r.KO)(l.cY),1)[0];return(0,o.jsx)(a(),{href:"/cart",children:(0,o.jsxs)(u.z,{variant:"secondary",size:n?"default":"icon",className:"relative ".concat(n&&"justify-start w-full"),children:[(0,o.jsx)(c.G,{size:"lg",icon:d.yYj}),n,t.length>0&&(0,o.jsx)("span",{className:"absolute font-regular -top-2 -right-2 px-[8px] py-[2px] bg-destructive text-destructive-foreground rounded-full text-xs",children:t.length})]})})}},68136:function(e,n,t){t.r(n),t.d(n,{default:function(){return _}});var i=t(85893),o=t(67294),r=t(41664),l=t.n(r),s=t(9008),a=t.n(s),c=t(11163),d=t(47041),u=t(96486),h=t(89885),f=t(69875),p=t(7386),x=t(93520),g=t(29823),m=t(71248),b=t(67814),F=t(59417),v=t(73524),y=t(32900),w="#4F8CFF",j="#121A2F",k="#0B1020",C="linear-gradient(90deg, #4F8CFF 0%, #4980E7 100%)",N="'Outfit', sans-serif",S="rounded-xl border-[#4F8CFF]/40 bg-[#121A2F] text-white shadow-[0_8px_32px_rgba(0,0,0,0.45)]";function _(e){var n,t,r,s=(0,o.useContext)(h.Z),_=s.toggleAuthModal,T=s.setIsLogin,E=s.setIsPayment,R=s.hasSession,z=s.appConfig,L=s.currentUser,W=s.lastTestPassCheck,A=s.isTestPassPurchased,G=s.setIsTestPassPurchased,B=e.appCategories,I=(0,c.useRouter)(),X=I.asPath,Y=I.pathname,O=(0,o.useState)(""),P=O[0],q=O[1],D=(0,o.useState)(!1),H=D[0],M=D[1],U=(0,d.getCookie)(g.Lo),Z=U?null===B||void 0===B?void 0:B.find((function(e){return e.id==U})):null,$=null===B||void 0===B?void 0:B.find((function(e){var n;return"all"===(null===(n=e.name)||void 0===n?void 0:n.toLowerCase())})),K=function(e){T(e),null===E||void 0===E||E(!1),_()},J=(0,o.useMemo)((function(){return"/search"===I.pathname||(0,x.hb)(null===z||void 0===z?void 0:z.web_disableSearch)}),[null===z||void 0===z?void 0:z.web_disableSearch,I.pathname]),Q=function(){I.push("/search?query="+P)},V=(0,u.some)(null===z||void 0===z?void 0:z.web_menuitems,{type:"TEST_PASS"}),ee=(0,x.hb)(null===z||void 0===z?void 0:z.web_testpasscompulsory),ne=V&&(!ee||!L||A),te=(0,m.rT)(z,ne,R);te=(0,m.eK)(te,z,ne);var ie=(0,m.ud)(z,f.TX);ie=(0,m.qn)(ie,z);var oe="0"!=(null===z||void 0===z?void 0:z.web_enablemenuhome)||(0,u.isEmpty)(null===z||void 0===z?void 0:z.web_landingpage)?"/":z.web_landingpage,re=function(e){var n=e.as||e.href;return!!n&&("/"===n?"/"===Y||"/"===X:e.as?X.includes(e.as):Y.includes(e.href))};(0,o.useEffect)((function(){var e=function(){document.body.style.backgroundColor=window.innerWidth<768?k:""};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,o.useEffect)((function(){return document.body.style.overflow=H?"hidden":"auto",function(){document.body.style.overflow="auto"}}),[H]),(0,o.useEffect)((function(){var e=function(){return M(!1)};return I.events.on("routeChangeStart",e),function(){return I.events.off("routeChangeStart",e)}}),[I.events]),(0,o.useEffect)((function(){R&&V&&!A&&(!(null===W||void 0===W?void 0:W.current)||W.current&&W.current.getTime()<(new Date).getTime()-3e5)&&(W.current=new Date,(0,p.bJ)(z.web_apiurl).then((function(e){if(e.data.length>0){var n=e.data[0];n&&G((0,x.hb)(n.is_paid))}})).catch((function(e){return console.error(e)})))}),[W,R,A,V,null===z||void 0===z?void 0:z.web_apiurl,G]);var le=(null===B||void 0===B?void 0:B.length)>0&&"1"==(null===z||void 0===z?void 0:z.web_enableappcategories),se=te.slice(0,6),ae=te.slice(6),ce=(0,i.jsx)("button",{onClick:function(){return K(!0)},style:{height:46,padding:"0 26px",borderRadius:44,background:C,border:"none",fontWeight:500,fontSize:18,lineHeight:"150%",color:"#FFFFFF",cursor:"pointer",fontFamily:N,flexShrink:0},children:"Login"}),de=function(){return(0,i.jsxs)(v.AW,{align:"end",className:S,children:["1"==(null===z||void 0===z?void 0:z.web_enablecart)&&(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focus:text-white",children:(0,i.jsx)(y.Z,{label:"Cart"})}),ie.filter((function(e){return e.isShown})).map((function(e){return(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focu
1s:text-white",onClick:"Logout"===e.label?f.TX:e.onClick,children:e.href?(0,i.jsx)(l(),{href:e.href,as:e.as||e.href,children:(0,i.jsxs)("a",{className:"w-full no-underline text-white flex items-center gap-2",children:[e.icon&&(0,i.jsx)(b.G,{icon:e.icon,className:"text-[#4F8CFF]"}),e.label]})}):(0,i.jsxs)("span",{className:"w-full flex items-center gap-2 text-white",children:[e.icon&&(0,i.jsx)(b.G,{icon:e.icon,className:"text-[#4F8CFF]"}),e.label]})},"".concat(e.label,"-").concat(e.type))}))]})},ue=(0,i.jsxs)(v.h_,{children:[(0,i.jsx)(v.$F,{asChild:!0,children:(0,i.jsxs)("button",{className:"flex items-center gap-2",style:{height:46,padding:"0 18px",borderRadius:44,background:"transparent",border:"1px solid ".concat(w),fontWeight:600,fontSize:15,color:w,cursor:"pointer",fontFamily:N,whiteSpace:"nowrap"},children:[(0,u.isEmpty)(null===L||void 0===L?void 0:L.photo)?null:(0,i.jsx)("img",{src:L.photo,alt:null===L||void 0===L?void 0:L.name,style:{width:26,height:26,borderRadius:"50%",objectFit:"cover"}}),"Hi, ",(null===L||void 0===L||null===(n=L.name)||void 0===n?void 0:n.split(" ")[0])||"User",(0,i.jsx)(b.G,{icon:F.ptq,className:"h-3 w-3"})]})}),de()]}),he=(0,i.jsxs)(v.h_,{children:[(0,i.jsx)(v.$F,{asChild:!0,children:(0,i.jsxs)("button",{className:"flex items-center gap-1.5",style:{height:29.53,padding:"0 8px",borderRadius:28.25,background:"transparent",border:"1px solid ".concat(w),color:w,cursor:"pointer",fontFamily:N,flexShrink:0},children:[(0,u.isEmpty)(null===L||void 0===L?void 0:L.photo)?(0,i.jsx)("span",{style:{fontWeight:700,fontSize:12.5},children:(null===(r=null===L||void 0===L||null===(t=L.name)||void 0===t?void 0:t.charAt(0))||void 0===r?void 0:r.toUpperCase())||"U"}):(0,i.jsx)("img",{src:L.photo,alt:null===L||void 0===L?void 0:L.name,style:{width:20,height:20,borderRadius:"50%",objectFit:"cover"}}),(0,i.jsx)(b.G,{icon:F.ptq,className:"h-3 w-3"})]})}),de()]}),fe=le&&(0,i.jsxs)(v.h_,{children:[(0,i.jsx)(v.$F,{asChild:!0,children:(0,i.jsxs)("button",{className:"flex items-center gap-2",style:{height:40,padding:"0 14px",borderRadius:44,background:"transparent",border:"1px solid ".concat(w),fontWeight:500,fontSize:15,color:"#FFFFFF",cursor:"pointer",fontFamily:N,whiteSpace:"nowrap"},children:[(null===Z||void 0===Z?void 0:Z.name)||"All",(0,i.jsx)(b.G,{icon:F.ptq,className:"h-3 w-3"})]})}),(0,i.jsxs)(v.AW,{className:S,children:[$?(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focus:text-white",onClick:e.toggleCategoryModal,children:$.name},$.id):(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focus:text-white",onClick:function(){localStorage.removeItem(g.dA.SELECTED_CATEGORY_HEADER),(0,d.setCookie)(g.Lo,""),window.location.reload()},children:"All"},"all"),null===B||void 0===B?void 0:B.filter((function(e){return!$||e.id!==$.id})).map((function(n){return(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focus:text-white",onClick:e.toggleCategoryModal,children:n.name},n.id)}))]})]}),pe=function(e){return{height:40,padding:"10px 8px",borderBottom:e?"2px solid ".concat(w):"none",fontWeight:e?700:500,fontSize:16,lineHeight:"100%",color:e?w:"#FFFFFF",whiteSpace:"nowrap",transition:"color 0.2s, border-color 0.2s",fontFamily:N}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a(),{children:[(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap",rel:"stylesheet"}),(0,i.jsx)("style",{children:"\n @keyframes supriya-drawer-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n }\n "})]}),H&&(0,i.jsx)("div",{className:"md:hidden",onClick:function(){return M(!1)},style:{position:"fixed",inset:0,zIndex:48,background:"rgba(0, 0, 0, 0.45)"}}),(0,i.jsxs)("header",{className:"sticky top-0 z-50 w-full px-4 md:px-[30px] py-[10px]",style:{fontFamily:N,background:k},children:[(0,i.jsxs)("div",{className:"hidden md:flex items-center justify-between w-full px-[40px] gap-6",style:{background:j,border:"1px solid ".concat(w),borderRadius:"10px",height:"81px",paddingTop:"10px",paddingBottom:"8px"},children:[(0,i.jsx)("a",{href:oe,className:"flex-shrink-0",children:(0,i.jsx)("img",{src:(null===z||void 0===z?void 0:z.web_logo)||"/logo.png",alt:(null===z||void 0===z?void 0:z.web_app_name)||"Supriya Tech Talks",style:{width:59,height:58,borderRadius:"4.83px",objectFit:"cover"}})}),(0,i.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1 justify-center",children:[se.map((function(e){var n=re(e);return(0,i.jsx)(l(),{href:e.href,as:e.as||e.href,children:(0,i.jsx)("a",{className:"no-underline flex items-center justify-center",style:pe(n),children:e.label})},e.label)})),ae.length>0&&(0,i.jsxs)(v.h_,{children:[(0,i.jsxs)(v.$F,{className:"flex items-center gap-1 no-underline",style:pe(!1),children:["More",(0,i.jsx)(b.G,{icon:F.ptq,className:"h-3 w-3"})]}),(0,i.jsx)(v.AW,{className:"max-h-[80vh] ".concat(S),children:ae.map((function(e,n){return(0,i.jsx)(l(),{href:e.href,as:e.as||e.href,children:(0,i.jsx)(v.Xi,{className:"focus:bg-[#4F8CFF]/15 focu
1s:text-white",children:(0,i.jsxs)("a",{className:"flex items-center gap-2 no-underline text-white w-full",style:{fontFamily:N},children:[e.icon&&(0,i.jsx)(b.G,{icon:e.icon,className:"text-[#4F8CFF]"}),e.label]})})},n)}))})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[fe,R?ue:ce]})]}),(0,i.jsx)("div",{className:"md:hidden",children:(0,i.jsx)("div",{style:{background:j,border:"0.64px solid ".concat(w),borderRadius:6.42,height:52,paddingTop:6.42,paddingBottom:5.14,paddingLeft:13,paddingRight:13,display:"flex",alignItems:"center"},children:(0,i.jsxs)("div",{style:{width:"100%",height:37.3,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)("a",{href:oe,style:{display:"flex",alignItems:"center",gap:14.12,flexShrink:0},children:(0,i.jsx)("img",{src:(null===z||void 0===z?void 0:z.web_logo)||"/logo.png",alt:(null===z||void 0===z?void 0:z.web_app_name)||"Supriya Tech Talks",style:{width:37.8,height:37.3,borderRadius:3.1,objectFit:"cover"}})}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14},children:[R?he:(0,i.jsx)("button",{onClick:function(){return K(!0)},style:{width:78.32,height:29.53,borderRadius:28.25,background:C,border:"none",fontWeight:500,fontSize:11.56,lineHeight:"150%",color:"#FFFFFF",cursor:"pointer",fontFamily:N,flexShrink:0},children:"Login"}),(0,i.jsx)("button",{onClick:function(){return M((function(e){return!e}))},"aria-label":"Toggle menu",style:{width:25,height:20,background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",flexShrink:0},children:[{w:25,openTransform:"translateY(9px) rotate(45deg)"},{w:20,openOpacity:!0},{w:15,openTransform:"translateY(-9px) rotate(-45deg)"}].map((function(e,n){return(0,i.jsx)("span",{style:{display:"block",width:H?25:e.w,height:0,border:"1px solid #FFFFFF",borderRadius:1.5,transition:"transform 0.25s ease, opacity 0.25s ease, width 0.25s ease",transform:H&&e.openTransform?e.openTransform:"none",opacity:H&&e.openOpacity?0:1}},n)}))})]})]})})})]}),H&&(0,i.jsxs)("div",{className:"md:hidden flex flex-col",style:{position:"fixed",top:72,left:16,right:16,zIndex:49,maxHeight:"calc(100vh - 96px)",overflowY:"auto",background:"rgba(18, 26, 47, 0.82)",backdropFilter:"blur(24px)",WebkitBackdropFilter:"blur(24px)",border:"1px solid rgba(79, 140, 255, 0.35)",borderRadius:"0 0 16px 16px",padding:"8px 20px 24px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.45)",animation:"supriya-drawer-in 0.2s ease both"},children:[!J&&(0,i.jsxs)("div",{className:"flex items-center gap-2",style:{padding:"10px 0 6px"},children:[(0,i.jsx)("input",{placeholder:"Search...",value:P,onChange:function(e){return q(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&(Q(),M(!1))},style:{flex:1,height:40,borderRadius:10,border:"1px solid ".concat(w,"55"),background:"rgba(255,255,255,0.06)",color:"#FFFFFF",padding:"0 14px",fontFamily:N,fontSize:14,outline:"none"}}),(0,i.jsx)("button",{onClick:function(){Q(),M(!1)},"aria-label":"Search",style:{width:40,height:40,borderRadius:10,border:"none",background:C,color:"#FFFFFF",cursor:"pointer",flexShrink:0},children:(0,i.jsx)(b.G,{icon:F.wn1})})]}),te.map((function(e){var n=re(e);return(0,i.jsx)(l(),{href:e.href,as:e.as||e.href,children:(0,i.jsxs)("a",{onClick:function(){return M(!1)},className:"no-underline flex items-center gap-3",style:{padding:"14px 8px",fontWeight:n?700:500,fontSize:16,color:n?w:"#FFFFFF",borderBottom:n?"2px solid ".concat(w):"1px solid rgba(79,140,255,0.15)",fontFamily:N},children:[e.icon&&(0,i.jsx)(b.G,{icon:e.icon,style:{color:w,width:16}}),e.label]})},e.label)})),R&&ie.filter((function(e){return e.isShown})).map((function(e){return(0,i.jsxs)("a",{href:e.href||void 0,onClick:function(){var n;"Logout"===e.label?(0,f.TX)():null===(n=e.onClick)||void 0===n||n.call(e),M(!1)},className:"no-underline flex items-center gap-3",style:{padding:"14px 8px",fontWeight:500,fontSize:16,color:"Logout"===e.label?"#FF6B6B":"#FFFFFF",borderBottom:"1px solid rgba(79,140,255,0.15)",fontFamily:N,cursor:"pointer"},children:[e.icon&&(0,i.jsx)(b.G,{icon:e.icon,style:{color:"Logout"===e.label?"#FF6B6B":w,width:16}}),e.label]},"".concat(e.label,"-").concat(e.type))})),!R&&(0,i.jsx)("button",{onClick:function(){K(!0),M(!1)},style:{marginTop:16,height:46,borderRadius:44,background:C,border:"none",fontWeight:500,fontSize:16,color:"#FFFFFF",cursor:"pointer",fontFamily:N},children:"Login"})]})]})}},20118:function(e,n,t){t.d(n,{Tm:function(){return r},cY:function(){return o},hn:function(){return l}});var i=t(95495),o=(0,i.O4)("cart",[]),r=(0,i.O4)("cart_added_at",null),l=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.