1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5314],{45314:function(e,n,s){s.r(n),s.d(n,{default:function(){return _}});var t=s(29815),l=s(85893),i=s(67294),r=s(9008),o=s.n(r),a=s(41664),c=s.n(a),h=s(11163),d=s(96486),x=s(67814),m=s(59417),u=s(89885),f=s(69875),p=s(93520),g=s(35739),j=s(73524),w=s(62461),b=s(71248),v="rgba(125, 187, 255, 0.12)",y="#AACCEE",N="#3B82F6",k="'Inter', ui-sans-serif, system-ui, sans-serif",C="/new-courses/2-ai-automation-agency-masterclass-from-0-to-your-first-client";function _(e){var n,s=(0,i.useContext)(u.Z),r=s.toggleAuthModal,a=s.setIsLogin,_=s.setIsPayment,E=s.hasSession,A=s.appConfig,G=s.currentUser,z=s.isTestPassPurchased,I=(0,h.useRouter)().pathname,S=(0,d.some)(A.web_menuitems,{type:"TEST_PASS"}),F=(0,p.hb)(A.web_testpasscompulsory),L=S&&(!F||!G||z),P=(0,b.rT)(A,L,E);(P=(0,b.eK)(P,A,L)).some((function(e){return"HOME_PAGE"===e.type}))||(P=[{label:"Home",href:"/",type:"HOME_PAGE"}].concat((0,t.Z)(P)));var T=P.slice(0,6),B=P.slice(6),M=(0,b.ud)(A);M=(0,b.qn)(M,A);var O=function(e){a(e),_(!1),r()},X=function(){return e.toggleSideBar()},Z="0"!=A.web_enablemenuhome||(0,d.isEmpty)(A.web_landingpage)?"/":A.web_landingpage,H=function(e){return"/"===e?"/"===I:I.includes(e)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o(),{children:(0,l.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap"})}),(0,l.jsx)("header",{style:{fontFamily:k,backgroundColor:"#0D1B3E",borderBottom:"1px solid ".concat(v)},className:"sticky top-0 z-50",children:(0,l.jsxs)("div",{className:"mx-auto flex min-h-16 max-w-7xl items-center gap-4 px-4 py-3 sm:px-6 lg:gap-6 lg:px-8",children:[(0,l.jsxs)("div",{className:"mr-auto flex min-w-0 items-center gap-2.5",children:[(0,l.jsx)("button",{"aria-label":"Open menu",onClick:X,className:"shrink-0 rounded-xl p-2 text-white hover:bg-white/5 focus:outline-none lg:hidden",children:(0,l.jsx)(x.G,{icon:m.xiG,className:"h-5 w-5"})}),(0,l.jsxs)("a",{href:Z,className:"flex min-w-0 items-center gap-3",children:[(0,d.isEmpty)(A.web_logo)?(0,l.jsx)("div",{className:"h-9 w-9 shrink-0 rounded-lg bg-white/10 sm:h-10 sm:w-10"}):(0,l.jsx)("img",{src:A.web_logo,className:"h-9 w-9 shrink-0 rounded-lg object-cover sm:h-10 sm:w-10",alt:A.web_clientname||"Ali AI Automation"}),(0,l.jsx)("span",{className:"hidden truncate text-[15px] font-bold text-white sm:inline sm:text-[17px]",children:A.web_clientname||"Ali AI Automation"})]})]}),(0,l.jsxs)("nav",{className:"hidden shrink-0 items-center gap-6 lg:flex",children:[T.map((function(e){return(0,l.jsx)(c(),{href:e.href,children:(0,l.jsx)("a",{style:{color:y},className:(0,w.cn)("whitespace-nowrap text-[15px] font-medium no-underline transition-colors hover:text-white",H(e.href)&&"text-white"),children:e.label})},e.label)})),B.length>0&&(0,l.jsxs)(j.h_,{children:[(0,l.jsxs)(j.$F,{style:{color:y},className:"flex shrink-0 items-center gap-1 whitespace-nowrap text-[15px] font-medium no-underline transition-colors hover:text-white focus:outline-none",children:["More",(0,l.jsx)(x.G,{icon:m.ptq,className:"h-3 w-3"})]}),(0,l.jsx)(j.AW,{className:"max-h-[80vh]",children:B.map((function(e){return(0,l.jsx)(j.Xi,{className:"p-0 focus:bg-transparent",children:(0,l.jsx)(c(),{href:e.href,as:e.as||e.href,children:(0,l.jsxs)("a",{className:(0,w.cn)("flex h-11 w-full items-center gap-2 rounded-lg px-3 text-sm font-medium text-neutral-700 no-underline transition-colors hover:bg-neutral-100",H(e.href)&&"text-blue-600"),children:[e.icon&&(0,l.jsx)(x.G,{icon:e.icon}),e.label]})})},e.label)}))})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(c(),{href:C,children:(0,l.jsx)("a",{style:{backgroundColor:N},className:"flex h-10 shrink-0 items-center whitespace-nowrap rounded-lg px-4 text-[14px] font-semibold text-white no-underline transition-opacity hover:opacity-90",children:"Enroll Now"})}),E?(0,l.jsxs)(j.h_,{children:[(0,l.jsx)(j.$F,{asChild:!0,children:(0,l.jsx)(g.z,{id:"user-menu-trigger",size:"icon",style:{backgroundColor:N},className:"shrink-0 overflow-hidden rounded-full",children:(0,d.isEmpty)(null===G||void 0===G?void 0:G.photo)?(0,l.jsx)("span",{className:"text-xl font-medium text-white",children:null===G||void 0===G||null===(n=G.name)||void 0===n?void 0:n.charAt(0)}):(0,l.jsx)("img",{src:G.photo,className:"h-10 w-10 object-cover",alt:null===G||void 0===G?void 0:G.name})})}),(0,l.jsx)(j.AW,{children:M.filter((function(e){return e.isShown})).map((function(e){return(0,l.jsx)(j.Xi,{children:e.href?(0,l.jsx)(c(),{href:e.href,as:e.as||e.href,className:"w-full no-underline",children:(0,l.jsxs)(g.z,{variant:"secondary",className:"flex w-full items-center justify-start gap-2",onClick:e.onClick,children:[(0,l.jsx)(x.G,{icon:e.icon}),e.label]})}):(0,l.jsxs)(g.z,{variant:"secondary",className:"flex w-full items-center justify-start gap-2",onClick:"Logout"==e.label?f.TX:e.onClick,children:[(0,l.jsx)(x.G,{icon:e.icon}),e.label]})},"".concat(e.label,"-").concat(e.type))}))})]}):(0,l.jsxs)("button",{id:"login",onClick:function(){return O(!0)},className:"hidden h-10 shrink-0 items-center gap-2 whitespace-nowrap rounded-lg px-4 text-[14px] font-semibold text-white transition-colors hover:bg-white/5 sm:flex",
1style:{border:"1px solid ".concat(v)},children:[(0,l.jsx)(x.G,{icon:m.ZhI}),(0,l.jsx)("span",{children:"Login"})]})]})]})}),(0,l.jsxs)("aside",{style:{fontFamily:k,backgroundColor:"#0D1B3E"},className:(0,w.cn)("fixed left-0 top-0 z-50 flex h-full w-full max-w-[300px] flex-col gap-6 p-4 transition-transform duration-300 ease-in-out lg:hidden",e.isOpen?"translate-x-0":"-translate-x-full"),children:[(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("div",{}),(0,l.jsx)(g.z,{variant:"ghost",size:"icon",onClick:X,children:(0,l.jsx)(x.G,{icon:m.g82,className:"text-4xl text-white"})})]})}),(0,l.jsxs)("div",{className:"no-scrollbar flex flex-col gap-4 overflow-y-auto pb-32",children:[P.map((function(e){return(0,l.jsx)("a",{href:e.href,children:(0,l.jsxs)("div",{style:H(e.href)?void 0:{color:y},className:(0,w.cn)("flex h-11 items-center rounded-lg px-3 text-[15px] font-medium no-underline transition-colors",H(e.href)?"text-white":"hover:bg-white/5"),children:[e.icon&&(0,l.jsx)(x.G,{icon:e.icon,size:"sm"}),(0,l.jsx)("div",{className:"ml-2 text-start no-underline",children:e.label})]})},e.label)})),(0,l.jsx)("a",{href:C,onClick:X,children:(0,l.jsx)("div",{style:{backgroundColor:N},className:"flex h-11 items-center justify-center rounded-lg px-3 text-[15px] font-semibold text-white no-underline",children:"Enroll Now"})}),E?M.filter((function(e){return e.isShown})).map((function(e){return(0,l.jsx)("a",{href:e.href,children:(0,l.jsxs)(g.z,{variant:"Logout"==e.label?"destructive":H(e.href)?"default":"outline",className:"w-full justify-start",onClick:"Logout"==e.label?f.TX:e.onClick,children:[(0,l.jsx)(x.G,{icon:e.icon,size:"sm"}),(0,l.jsx)("div",{className:"text-start no-underline",children:e.label})]})},"".concat(e.label,"-").concat(e.type))})):(0,l.jsxs)("button",{id:"login-mobile",onClick:function(){O(!0),X()},className:"flex h-11 items-center gap-2 rounded-lg px-3 text-[15px] font-medium text-white",style:{border:"1px solid ".concat(v)},children:[(0,l.jsx)(x.G,{icon:m.ZhI}),(0,l.jsx)("span",{children:"Login"})]})]})]})]})}}}]);
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.