1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c2e5b0ad-0de2-245e-6afe-6f768559b6cb")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,687607,e=>{"use strict";var n=e.i(299749),r=e.i(120786),t=e.i(92808),s=e.i(233027),a=e.i(651682),o=e.i(271645),i=e.i(981140),l=e.i(30030),c=e.i(369340),d=e.i(934620),u=e.i(820783),h=e.i(248425),f=e.i(296626),m=e.i(610772),x=e.i(843476),p=Object.defineProperty,b=function(e,n){return p(e,"name",{value:n,configurable:!0})},v="Collapsible",g=(0,a._)((0,l.createContextScope)(v),2),j=g[0],y=g[1],_=(0,a._)(j(v),2),w=_[0],N=_[1],k=o.forwardRef(b(function(e,n){var i=e.__scopeCollapsible,l=e.open,d=e.defaultOpen,u=e.disabled,f=e.onOpenChange,p=(0,s._)(e,["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"]),b=(0,a._)((0,c.useControllableState)({prop:l,defaultProp:null!=d&&d,onChange:f,caller:v}),2),g=b[0],j=b[1];return(0,x.jsx)(w,{scope:i,disabled:u,contentId:(0,m.useId)(),open:g,onOpenToggle:o.useCallback(function(){return j(function(e){return!e})},[j]),children:(0,x.jsx)(h.Primitive.div,(0,t._)((0,r._)({"data-state":M(g),"data-disabled":u?"":void 0},p),{ref:n}))})},"Collapsible")),C=o.forwardRef(b(function(e,n){var a=e.__scopeCollapsible,o=(0,s._)(e,["__scopeCollapsible"]),l=N("CollapsibleTrigger",a);return(0,x.jsx)(h.Primitive.button,(0,t._)((0,r._)({type:"button","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open||!1,"data-state":M(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled},o),{ref:n,onClick:(0,i.composeEventHandlers)(e.onClick,l.onOpenToggle)}))},"CollapsibleTrigger")),A="CollapsibleContent",S=o.forwardRef(b(function(e,n){var a=e.forceMount,o=(0,s._)(e,["forceMount"]),i=N(A,e.__scopeCollapsible);return(0,x.jsx)(f.Presence,{present:a||i.open,children:function(e){var s=e.present;return(0,x.jsx)(R,(0,t._)((0,r._)({},o),{ref:n,present:s}))}})},"CollapsibleContent")),R=o.forwardRef(b(function(e,i){var l,c=e.__scopeCollapsible,f=e.present,m=e.children,p=(0,s._)(e,["__scopeCollapsible","present","children"]),b=N(A,c),v=(0,a._)(o.useState(f),2),g=v[0],j=v[1],y=o.useRef(null),_=(0,u.useComposedRefs)(i,y),w=o.useRef(0),k=w.current,C=o.useRef(0),S=C.current,R=b.open||g,I=o.useRef(R),H=o.useRef(void 0);return o.useEffect(function(){var e=requestAnimationFrame(function(){return I.current=!1});return function(){return cancelAnimationFrame(e)}},[]),(0,d.useLayoutEffect)(function(){var e=y.current;if(e){H.current=H.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";var n=e.getBoundingClientRect();w.current=n.height,C.current=n.width,I.current||(e.style.transitionDuration=H.current.transitionDuration,e.style.animationName=H.current.animationName),j(f)}},[b.open,f]),(0,x.jsx)(h.Primitive.div,(0,t._)((0,r._)({"data-state":M(b.open),"data-disabled":b.disabled?"":void 0,id:b.contentId,hidden:!R},p),{ref:_,style:(0,r._)((l={},(0,n._)(l,"--radix-collapsible-content-height",k?"".concat(k,"px"):void 0),(0,n._)(l,"--radix-collapsible-content-width",S?"".concat(S,"px"):void 0),l),e.style),children:R&&m}))},"CollapsibleContentImpl"));function M(e){return e?"open":"closed"}b(M,"getState"),e.s(["Content",0,S,"Root",0,k,"Trigger",0,C,"createCollapsibleScope",0,y])},826970,e=>{"use strict";var n=(0,e.i(456420).default)("hard-hat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]]);e.s(["HardHat",0,n],826970)},621008,956094,e=>{"use strict";var n=e.i(456420),r=(0,n.default)("heart-pulse",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]);e.s(["HeartPulse",0,r],621008);var t=(0,n.default)("utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}
2],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);e.s(["Utensils",0,t],956094)},593583,e=>{"use strict";var n=(0,e.i(456420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,n],593583)},575387,e=>{"use strict";var n=(0,e.i(456420).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["Phone",0,n],575387)},584026,e=>{"use strict";var n=(0,e.i(456420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,n],584026)},263448,e=>{"use strict";var n=(0,e.i(456420).default)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);e.s(["ShoppingBag",0,n],263448)},765649,e=>{"use strict";var n=(0,e.i(456420).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",0,n],765649)},171588,e=>{"use strict";var n=e.i(12264),r=e.i(179243),t=e.i(120786),s=e.i(92808),a=e.i(233027),o=e.i(843476),i=e.i(271645),l=e.i(651682),c=e.i(540316),d=e.i(30030),u=e.i(75830),h=e.i(820783),f=e.i(981140),m=e.i(369340),x=e.i(248425),p=e.i(687607),b=e.i(610772),v=e.i(586318),g=Object.defineProperty,j=function(e,n){return g(e,"name",{value:n,configurable:!0})},y="Accordion",_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],w=(0,l._)((0,u.createCollection)(y),3),N=w[0],k=w[1],C=w[2],A=(0,l._)((0,d.createContextScope)(y,[C,p.createCollapsibleScope]),2),S=A[0];A[1];var R=(0,p.createCollapsibleScope)(),M=i.forwardRef(j(function(e,n){var r=e.type,i=(0,a._)(e,["type"]);return(0,o.jsx)(N.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,o.jsx)(O,(0,s._)((0,t._)({},i),{ref:n})):(0,o.jsx)(E,(0,s._)((0,t._)({},i),{ref:n}))})},"Accordion")),I=(0,l._)(S(y),2),H=I[0],L=I[1],P=(0,l._)(S(y,{collapsible:!1}),2),T=P[0],D=P[1],E=i.forwardRef(j(function(e,n){var r=e.value,c=e.defaultValue,d=e.onValueChange,u=void 0===d?j(function(){},"onValueChange"):d,h=e.collapsible,f=void 0!==h&&h,x=(0,a._)(e,["value","defaultValue","onValueChange","collapsible"]),p=(0,l._)((0,m.useControllableState)({prop:r,defaultProp:null!=c?c:"",onCh
2ange:u,caller:y}),2),b=p[0],v=p[1];return(0,o.jsx)(H,{scope:e.__scopeAccordion,value:i.useMemo(function(){return b?[b]:[]},[b]),onItemOpen:v,onItemClose:i.useCallback(function(){return f&&v("")},[f,v]),children:(0,o.jsx)(T,{scope:e.__scopeAccordion,collapsible:f,children:(0,o.jsx)(z,(0,s._)((0,t._)({},x),{ref:n}))})})},"AccordionImplSingle")),O=i.forwardRef(j(function(e,n){var r=e.value,d=e.defaultValue,u=e.onValueChange,h=void 0===u?j(function(){},"onValueChange"):u,f=(0,a._)(e,["value","defaultValue","onValueChange"]),x=(0,l._)((0,m.useControllableState)({prop:r,defaultProp:null!=d?d:[],onChange:h,caller:y}),2),p=x[0],b=x[1],v=i.useCallback(function(e){return b(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,c._)(n).concat([e])})},[b]),g=i.useCallback(function(e){return b(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.filter(function(n){return n!==e})})},[b]);return(0,o.jsx)(H,{scope:e.__scopeAccordion,value:p,onItemOpen:v,onItemClose:g,children:(0,o.jsx)(T,{scope:e.__scopeAccordion,collapsible:!0,children:(0,o.jsx)(z,(0,s._)((0,t._)({},f),{ref:n}))})})},"AccordionImplMultiple")),V=(0,l._)(S(y),2),B=V[0],U=V[1],z=i.forwardRef(j(function(e,n){var r=e.__scopeAccordion,l=e.disabled,c=e.dir,d=e.orientation,u=void 0===d?"vertical":d,m=(0,a._)(e,["__scopeAccordion","disabled","dir","orientation"]),p=i.useRef(null),b=(0,h.useComposedRefs)(p,n),g=k(r),y="ltr"===(0,v.useDirection)(c),w=(0,f.composeEventHandlers)(e.onKeyDown,function(e){if(_.includes(e.key)){var n,r=e.target,t=g().filter(function(e){var n;return!(null==(n=e.ref.current)?void 0:n.disabled)}),s=t.findIndex(function(e){return e.ref.current===r}),a=t.length;if(-1!==s){e.preventDefault();var o=s,i=a-1,l=j(function(){(o=s+1)>i&&(o=0)},"moveNext"),c=j(function(){(o=s-1)<0&&(o=i)},"movePrev");switch(e.key){case"Home":o=0;break;case"End":o=i;break;case"ArrowRight":"horizontal"===u&&(y?l():c());break;case"ArrowDown":"vertical"===u&&l();break;case"ArrowLeft":"horizontal"===u&&(y?c():l());break;case"ArrowUp":"vertical"===u&&c()}null==(n=t[o%a].ref.current)||n.focus()}}});return(0,o.jsx)(B,{scope:r,disabled:l,direction:c,orientation:u,children:(0,o.jsx)(N.Slot,{scope:r,children:(0,o.jsx)(x.Primitive.div,(0,s._)((0,t._)({},m),{"data-orientation":u,ref:b,onKeyDown:l?void 0:w}))})})},"AccordionImpl")),F="AccordionItem",G=(0,l._)(S(F),2),W=G[0],q=G[1],K=i.forwardRef(j(function(e,n){var r=e.__scopeAccordion,i=e.value,l=(0,a._)(e,["__scopeAccordion","value"]),c=U(F,r),d=L(F,r),u=R(r),h=(0,b.useId)(),f=i&&d.value.includes(i)||!1,m=c.disabled||e.disabled;return(0,o.jsx)(W,{scope:r,open:f,disabled:m,triggerId:h,children:(0,o.jsx)(p.Root,(0,s._)((0,t._)({"data-orientation":c.orientation,"data-state":J(f)},u,l),{ref:n,disabled:m,open:f,onOpenChange:function(e){e?d.onItemOpen(i):d.onItemClose(i)}}))})},"AccordionItem")),X=i.forwardRef(j(function(e,n){var r=e.__scopeAccordion,i=(0,a._)(e,["__scopeAccordion"]),l=U(y,r),c=q("AccordionHeader",r);return(0,o.jsx)(x.Primitive.h3,(0,s._)((0,t._)({"data-orientation":l.orientation,"data-state":J(c.open),"data-disabled":c.disabled?"":void 0},i),{ref:n}))},"AccordionHeader")),Y="AccordionTrigger",Q=i.forwardRef(j(function(e,n){var r=e.__scopeAccordion,i=(0,a._)(e,["__scopeAccordion"]),l=U(y,r),c=q(Y,r),d=D(Y,r),u=R(r);return(0,o.jsx)(N.ItemSlot,{scope:r,children:(0,o.jsx)(p.Trigger,(0,s._)((0,t._)({"aria-disabled":c.open&&!d.collapsible||void 0,"data-orientation":l.orientation,id:c.triggerId},u,i),{ref:n}))})},"AccordionTrigger")),Z=i.forwardRef(j(function(e,n){var r=e.__scopeAccordion,i=(0,a._)(e,["__scopeAccordion"]),l=U(y,r),c=q("AccordionContent",r),d=R(r);return(0,o.jsx)(p.Content,(0,s._)((0,t._)({role:"region","aria-labelledby":c.triggerId,"data-orientation":l.orientation},d,i),{ref:n,style:(0,t._)({"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)"},e.style)}))},"AccordionContent"));function J(e){return e?"open":"closed"}j(J,"getState");var $=e.i(503636),ee=e.i(380064);e.s(["Accordion",0,function(e){(0,r._)(e);var s=(0,n._)({},e);return(0,o.jsx)(M,(0,t._)({"data-slot":"accordion"},s))},"AccordionContent",0,function(e){var n=e.className,r=e.children,i=(0,a._)(e,["className","children"]);return(0,o.jsx)(Z,(0,s._)((0,t._)({"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"},i),{children:(0,o.jsx)("div",{className:(0,ee.cn)("pb-4 pt-0",n),children:r})}))},"AccordionItem",0,function(e){var n=e.className,r=(0,a._)(e,["className"]);return(0,o.jsx)(K,(0,t._)({"data-slot":"accordion-item",className:(0,ee.cn)("border-b",n)},r))},"AccordionTrigger",0,function(e){var n=e.className,r=e.children,i=(0,a._)(e,["className","children"]);return(0,o.jsx)(X,{className:"flex",children:(0,o.jsxs)(Q,(0,s._)((0,t._)({"data-slot":"accordion-trigger",className:(0,ee.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n)},i),{children:[r,(0,o.jsx)($.ChevronDownIcon,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]}))})}],171588)},495738,e=>{"use strict";var n=e.i(843476),r=e.i(217255);e.s(["default",0,function(e){var t=e.children;return(0,n.jsx)(r.SessionProvider,{baseUrl:"/frontend",children:t})}])},519895,e=>{"use strict";var n=e.i(991865),r=e.i(651682),t=e.i(513935),s=e.i(843476),a=e.i(271645),o=e.i(174080),i=e.i(770703),l=e.i(522016),c=e.i(618566),d=e.i(566595),u=e.i(263448),h=e.i(575387),f=e.i(716327),m=e.i(593583),x=e.i(263676),p=e.i(576248),b=e.i(765649),v=e.i(856423),g=e.i(584026),j=e.i(826970),y=e.i(621008),_=e.i(956094),w=e.i(823482),N=e.i(6
256902),k=e.i(587167),C=e.i(588463),A=e.i(332866),S=e.i(171588),R=e.i(940600),M=e.i(983964),I=(0,i.default)(function(){return e.A(993216)},{loadableGenerated:{modules:[350606]},ssr:!1}),H=(0,i.default)(function(){return e.A(910239)},{loadableGenerated:{modules:[700979]},ssr:!1}),L=(0,i.default)(function(){return e.A(248249)},{loadableGenerated:{modules:[645914]},ssr:!1}),P=(0,i.default)(function(){return e.A(714854)},{loadableGenerated:{modules:[170030]},ssr:!1}),T=(0,i.default)(function(){return e.A(505277)},{loadableGenerated:{modules:[819412]},ssr:!1}),D=(0,i.default)(function(){return e.A(849060)},{loadableGenerated:{modules:[246737]},ssr:!1}),E=(0,i.default)(function(){return e.A(674721)},{loadableGenerated:{modules:[622084]},ssr:!1}),O=(0,i.default)(function(){return e.A(964028)},{loadableGenerated:{modules:[92398]},ssr:!1}),V=function(e){var i,V,B=e.onOpenSearch,U=e.onSelectCourse,z=e.menuData,F=(0,c.useRouter)(),G=(0,c.usePathname)(),W=(0,r._)((0,a.useState)(null),2),q=W[0],K=W[1],X=(0,r._)((0,a.useState)(!1),2),Y=X[0],Q=X[1],Z=(0,r._)((0,a.useState)(!1),2),J=Z[0],$=Z[1],ee=(0,r._)((0,a.useState)(null),2),en=ee[0],er=ee[1],et=(0,r._)((0,a.useState)(null),2),es=et[0],ea=et[1],eo=(0,r._)((0,a.useState)(!1),2),ei=eo[0],el=eo[1],ec=(0,r._)((0,a.useState)(!0),2),ed=ec[0],eu=ec[1],eh=(0,r._)((0,a.useState)(!1),2),ef=eh[0],em=eh[1],ex=(0,r._)((0,a.useState)(!1),2),ep=ex[0],eb=ex[1],ev=(0,r._)((0,a.useState)(!1),2);ev[0],ev[1];var eg=(0,r._)((0,a.useState)(null),2);eg[0],eg[1];var ej=(0,r._)((0,a.useState)(!1),2),ey=ej[0],e_=ej[1],ew=(0,R.useCart)().cartItems,eN=(0,M.useUser)(),ek=eN.User,eC=eN.UserTokenLoading,eA=eN.UserType,eS=eN.isAuthenticated,eR=(0,a.useRef)(null),eM=(0,a.useRef)(null),eI=(0,a.useRef)(0),eH=(0,a.useRef)(null),eL=(0,a.useRef)(0),eP=(0,a.useRef)(null),eT=(0,r._)((0,a.useState)(void 0===z?null:z),2),eD=eT[0],eE=eT[1],eO=(0,a.useCallback)(function(){return(0,n._)(function(){return(0,t._)(this,function(e){return eD?[2,eD]:(eP.current||(eP.current=fetch("/api/navigation-menu",{cache:"force-cache"}).then(function(e){return(0,n._)(function(){var n;return(0,t._)(this,function(r){switch(r.label){case 0:if(!e.ok)throw Error("Navigation menu request failed: ".concat(e.status));return[4,e.json()];case 1:return eE(n=r.sent()),[2,n]}})})()}).catch(function(e){return console.error("[Header] Failed to lazy-load navigation menu:",e),null}).finally(function(){eP.current=null})),[2,eP.current])})})()},[eD]),eV="/hurak-business"===G||G.startsWith("/hurak-business/")?"businesses":"/advertise-your-courses-hurak"===G||G.startsWith("/advertise-your-courses-hurak/")?"providers":"individuals";(0,a.useEffect)(function(){em(!0);var e,n=window.matchMedia("(min-width: 1024px)"),r=function(){return eb(n.matches)};return r(),null==(e=n.addEventListener)||e.call(n,"change",r),function(){var e;null==(e=n.removeEventListener)||e.call(n,"change",r)}},[]);var eB=(null==eD?void 0:eD.categories)||[],eU=(null==eD?void 0:eD.licenceCategories)||[],ez=(null==eD?void 0:eD.Location)||[],eF=[{label:"Courses",href:"/courses",hasDropdown:!0,type:"courses"},{label:"Licences & Cards",hasDropdown:!0,type:"licences"},{label:"Locations",hasDropdown:!0,type:"locations"},{label:"Resources",hasDropdown:!0,type:"resources"}],eG=function(e){eO(),eR.current&&(clearTimeout(eR.current),eR.current=null),K(e)},eW=function(){eR.current&&clearTimeout(eR.current),eR.current=setTimeout(function(){K(null)},220)},eq=function(){eR.current&&(clearTimeout(eR.current),eR.current=null),K(null)},eK=function(e){if(!e.defaultPrevented){var n,r;(null==(n=(r=e.target).closest)?void 0:n.call(r,"a[href]"))&&eq()}};(0,a.useEffect)(function(){eI.current=window.scrollY;var e=function(){var e=Math.max(0,window.scrollY),n=e-eI.current;if(el(e>10),e<=12){eu(!0),eH.current=null,eL.current=0,eI.current=e;return}if(0!==n){var r=n>0?"down":"up";if(eH.current!==r&&(eH.current=r,eL.current=0),eL.current+=Math.abs(n),eL.current>=8){var t="up"===r;eu(t),t||K(null),eL.current=0}eI.current=e}},n=function(e){var n=e.target;eM.current&&!eM.current.contains(n)&&eq()};return window.addEventListener("scroll",e,{passive:!0}),document.addEventListener("mousedown",n),function(){window.removeEventListener("scroll",e),document.removeEventListener("mousedown",n),eR.current&&clearTimeout(eR.current)}},[]),(0,a.useEffect)(function(){(q||Y||J||ey)&&eu(!0)},[q,Y,J,ey]);var eX=function(){Q(!1)},eY=function(){eO(),Q(!1),$(!0)},eQ=function(){$(!1)},eZ=function(e){$(!1);var n=(null==e?void 0:e.category_url)||(null==e?void 0:e.slug)||(null==e?void 0:e.url_slug)||"",r=(null==e?void 0:e.href)||(null==e?void 0:e.url)||(n?n.startsWith("/")?n:"/courses/".concat(n):"/courses");F.push(r)};(0,a.useEffect)(function(){if(J){var e=document.body.style.overflow;document.body.style.overflow="hidden";var n=function(e){"Escape"===e.key&&$(!1)};return window.addEventListener("keydown",n),function(){document.body.style.overflow=e,window.removeEventListener("keydown",n)}}},[J]);var eJ=eB.slice(0,6),e$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=String(e).toLowerCase();return n.includes("security")||n.includes("sia")?g.ShieldCheck:n.includes("first aid")?y.HeartPulse:n.includes("construction")||n.includes("cscs")||n.includes("site")?j.HardHat:n.includes("hospital
2ity")||n.includes("food")?_.Utensils:n.includes("teaching")||n.includes("assess")||n.includes("education")?w.GraduationCap:v.BookOpen};return(0,s.jsxs)("header",{ref:eM,className:"newhome-header sticky top-0 z-[50] w-full border-b border-border/70 transition-transform duration-200 ease-out motion-reduce:transition-none will-change-transform ".concat(ed?"translate-y-0":"-translate-y-full"," ").concat(ei?"shadow-[0_2px_10px_-4px_rgba(0,0,0,0.05)]":""),children:[(0,s.jsx)("div",{className:"hidden w-full border-b border-border/80 bg-muted md:sticky md:top-0 md:z-1 md:block",children:(0,s.jsx)("div",{className:"mx-auto flex h-8 max-w-[1400px] items-center px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("nav",{className:"flex items-center gap-7 text-[13px]","aria-label":"Audience navigation",children:[(0,s.jsx)(l.default,{href:"/","aria-current":"individuals"===eV?"page":void 0,className:"inline-flex items-center h-8 font-medium transition-colors border-b-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand ".concat("individuals"===eV?" font-semibold border-brand":"text-text-secondary hover: border-transparent"),children:"For Individuals"}),(0,s.jsx)(l.default,{href:"/hurak-business","aria-current":"businesses"===eV?"page":void 0,className:"inline-flex items-center h-8 font-medium transition-colors border-b-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand ".concat("businesses"===eV?" font-semibold border-brand":"text-text-secondary hover: border-transparent"),children:"For Businesses"}),(0,s.jsx)(l.default,{href:"/advertise-your-courses-hurak","aria-current":"providers"===eV?"page":void 0,className:"inline-flex items-center h-8 font-medium transition-colors border-b-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand ".concat("providers"===eV?" font-semibold border-brand":"text-text-secondary hover: border-transparent"),children:"For Training Providers"})]})})}),(0,s.jsxs)("div",{className:"w-full bg-card",children:[(0,s.jsxs)("div",{className:"mx-auto flex h-14 max-w-[1400px] items-center justify-between px-4 sm:px-6 lg:h-[66px] lg:px-8",children:[(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-4 xl:gap-8",children:[(0,s.jsx)(l.default,{href:"/",className:"group flex shrink-0 select-none items-center gap-2 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2","aria-label":"Hurak Homepage",children:(0,s.jsx)("div",{className:"flex h-8 w-[62px] shrink-0 items-center",children:(0,s.jsx)(C.AssetsImage,{src:"logo/hurak-logo.webp",alt:"Hurak",width:62,height:16,priority:!0,className:"h-4 w-[62px] object-contain"})})}),(0,s.jsx)("nav",{className:"hidden shrink-0 items-center gap-0.5 lg:flex xl:gap-1.5","aria-label":"Main Navigation",children:eF.map(function(e){var n=q===e.label;return(0,s.jsx)("div",{className:"shrink-0",onMouseEnter:function(){return e.hasDropdown&&eG(e.label)},onMouseLeave:function(){return e.hasDropdown&&eW()},children:(0,s.jsxs)("button",{type:"button",className:"group inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-lg px-2.5 py-2 text-[14px] font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-brand xl:px-3 ".concat(n?"bg-muted/80 ":" hover:bg-muted hover: "),"aria-expanded":n,"aria-haspopup":"true",children:[(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(f.ChevronDown,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary transition-transform duration-200 group-hover: ".concat(n?"rotate-180 ":"")})]})},e.label)})})]}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 lg:hidden",children:[(0,s.jsx)("button",{type:"button",onClick:eY,className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md transition-colors hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Search courses",children:(0,s.jsx)(d.Search,{className:"h-[18px] w-[18px]"})}),(0,s.jsxs)(l.default,{href:"/shop-cart",className:"relative flex h-9 w-9 shrink-0 items-center justify-center rounded-md transition-colors hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Shopping basket with ".concat(null!=(i=null==ew?void 0:e
2w.length)?i:0," item"),children:[(0,s.jsx)(u.ShoppingBag,{className:"h-[19px] w-[19px]"}),ef&&(null==ew?void 0:ew.length)>0&&(0,s.jsx)(k.Badge,{className:"absolute right-0.5 top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full border-0 bg-foreground px-1 text-[9px] font-bold leading-none text-white ring-2 ring-card hover:bg-foreground",children:ew.length>9?"9+":ew.length})]}),(0,s.jsx)("a",{href:"tel:0333 344 1293",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md transition-colors hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Call Hurak on 0333 344 1293",children:(0,s.jsx)(h.Phone,{className:"h-[19px] w-[19px]"})}),!eC&&eS&&(0,s.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(D,{compact:!0})}),(0,s.jsx)(N.Button,{type:"button",onClick:function(){eO(),Q(function(e){return!e})},variant:"ghost",size:"icon",className:"h-9 w-9 shrink-0 rounded-md hover:bg-muted focus-visible:ring-2 focus-visible:ring-brand","aria-label":Y?"Close mobile menu":"Open mobile menu","aria-expanded":Y,children:Y?(0,s.jsx)(x.X,{className:"h-[22px] w-[22px]"}):(0,s.jsx)(m.Menu,{className:"h-[22px] w-[22px]"})})]}),(0,s.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,s.jsxs)("a",{href:"tel:0333 344 1293",className:"hidden shrink-0 items-center gap-1 whitespace-nowrap rounded-md px-2 py-1.5 text-[13px] font-medium text-text-secondary transition-colors hover:bg-muted hover: lg:flex",children:[(0,s.jsx)(p.HelpCircle,{className:"h-3.5 w-3.5 shrink-0 text-body"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"hidden xl:inline",children:"Need help? "}),(0,s.jsxs)("strong",{className:"font-semibold text-foreground",children:["0333 344 1293"," "]})]})]}),ep?(0,s.jsx)(T,{onSelectCourse:U,onOpenSearch:B}):(0,s.jsx)("div",{className:"h-10 w-44","aria-hidden":"true"}),(0,s.jsxs)(l.default,{href:"/shop-cart",className:"relative flex h-10 w-10 shrink-0 items-center justify-center rounded-lg transition-colors hover:bg-muted/80 hover: focus:outline-none focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Shopping basket with ".concat(null!=(V=null==ew?void 0:ew.length)?V:0," item"),children:[(0,s.jsx)(u.ShoppingBag,{className:"h-5 w-5 shrink-0 "}),ef&&(null==ew?void 0:ew.length)>0&&(0,s.jsx)(k.Badge,{className:"absolute right-1.5 top-1.5 flex h-4 w-4 items-center justify-center rounded-full border-0 bg-foreground p-0 text-[10px] font-bold text-white ring-2 ring-card hover:bg-foreground",children:ew.length})]}),!eC&&eS&&(0,s.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,s.jsx)(D,{compact:!0})}),eC?(0,s.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,s.jsx)("div",{className:"h-8 w-8 animate-pulse rounded-full bg-muted"})}):eS?(0,s.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,s.jsx)(E,{})}):(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(N.Button,{asChild:!0,type:"button",variant:"ghost",className:"h-9 gap-1.5 border-none px-3 text-xs font-semibold",children:(0,s.jsxs)(l.default,{href:"/log-in",children:[(0,s.jsx)(b.UserRound,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Sign in"})]})}),(0,s.jsx)(N.Button,{asChild:!0,type:"button",variant:"outline",children:(0,s.jsx)(l.default,{href:"/sign-up",children:(0,s.jsx)("span",{children:"Sign up"})})})]})]})]}),"Courses"===q&&(0,s.jsx)("div",{className:"absolute left-1/2 top-full z-50 w-full max-w-[1280px] -translate-x-1/2",onMouseEnter:function(){return eG("Courses")},onMouseLeave:eq,onClick:eK,children:(0,s.jsx)(I,{data:eB,menuData:eD,onClose:eq,onOpenSearch:B})}),"Licences & Cards"===q&&(0,s.jsx)("div",{className:"absolute left-1/2 top-full z-50 w-full max-w-[1280px] -translate-x-1/2",onMouseEnter:function(){return eG("Licences & Cards")},onMouseLeave:eq,onClick:eK,children:(0,s.jsx)(H,{data:eU,menuData:eD,onClose:eq,onOpenSearch:B})}),"Locations"===q&&(0,s.jsx)("div",{className:"absolute left-1/2 top-full z-50 w-full max-w-[1280px] -translate-x-1/2",onMouseEnter:function(){return eG("Locations")},onMouseLeave:eq,onClick:eK,children:(0,s.jsx)(L,{data:ez,menuData:eD,onClose:eq})}),"Resources"===q&&(0,s.jsx)("div",{className:"absolute left-1/2 top-full z-50 w-full max-w-[1280px] -translate-x-1/2",onMouseEnter:function(){return eG("Resources")},onMouseLeave:eq,onClick:eK,children:(0,s.jsx)(P,{menuData:eD,onClose:eq,onOpenSearch:B})}),(0,s.jsx)(A.Sheet,{open:Y,onOpenChange:function(e){e||eX()},children:(0,s.jsxs)(A.SheetContent,{side:"left",overlayClassName:"lg:hidden bg-foreground
2/20 backdrop-blur-sm",className:"lg:hidden h-dvh w-full max-w-full border-r-0 bg-card p-0 sm:max-w-full [&>button]:hidden",children:[(0,s.jsx)(A.SheetTitle,{className:"sr-only",children:"Mobile navigation"}),(0,s.jsx)(A.SheetDescription,{className:"sr-only",children:"Browse courses, licences, locations and resources"}),(0,s.jsxs)("div",{className:"flex h-full flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border/70 px-4 sm:px-6",children:[(0,s.jsx)(l.default,{href:"/",onClick:eX,className:"flex h-9 items-center rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2","aria-label":"Hurak Homepage",children:(0,s.jsx)(C.AssetsImage,{src:"logo/hurak-logo.webp",alt:"Hurak",width:62,height:16,priority:!0,className:"h-4 w-[62px] object-contain"})}),(0,s.jsx)(A.SheetClose,{asChild:!0,children:(0,s.jsx)(N.Button,{type:"button",variant:"ghost",size:"icon-lg",className:"shrink-0 rounded-md hover:bg-muted focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Close mobile menu",children:(0,s.jsx)(x.X,{className:"h-[22px] w-[22px]"})})})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto px-4 sm:px-6 py-4 space-y-5",children:[!eC&&eS&&"null"!=eA&&(0,s.jsxs)("button",{type:"button",onClick:function(){e_(!0)},className:"flex w-full items-center gap-3 rounded-xl border border-border bg-muted/40 p-3 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-brand",children:[(0,s.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-primary text-xl font-semibold text-white",children:(null==ek?void 0:ek.enduser_short_name)||"U"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"truncate text-sm font-semibold ",children:[null==ek?void 0:ek.enduser_fname," ",null==ek?void 0:ek.enduser_lname]}),(0,s.jsx)("p",{className:"truncate text-xs",children:null==ek?void 0:ek.enduser_email}),(0,s.jsx)("p",{className:"truncate text-xs text-text-secondary",children:null==ek?void 0:ek.enduser_level}),(0,s.jsxs)("p",{className:"text-xs",children:[eA&&"null"!==eA&&"user"!==eA?eA.charAt(0).toUpperCase()+eA.slice(1):"Student"," ","Account"]})]}),(0,s.jsx)(f.ChevronDown,{className:"h-4 w-4 shrink-0 -rotate-90 text-text-secondary"})]}),(0,s.jsxs)("div",{className:"pb-4 border-b border-border",children:[(0,s.jsx)("span",{className:"block text-[11px] font-semibold text-text-secondary uppercase tracking-wider mb-2",children:"Browse Hurak for"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,s.jsx)(l.default,{href:"/",onClick:eX,"aria-current":"individuals"===eV?"page":void 0,className:"px-3 py-2 rounded-lg text-sm font-semibold transition-colors ".concat("individuals"===eV?"bg-brand/10 text-brand":" hover:bg-muted"),children:"For Individuals"}),(0,s.jsx)(l.default,{href:"/hurak-business",onClick:eX,"aria-current":"businesses"===eV?"page":void 0,className:"px-3 py-2 rounded-lg text-sm font-semibold transition-colors ".concat("businesses"===eV?"bg-brand/10 text-brand":" hover:bg-muted"),children:"For Businesses"}),(0,s.jsx)(l.default,{href:"/advertise-your-courses-hurak",onClick:eX,"aria-current":"providers"===eV?"page":void 0,className:"px-3 py-2 rounded-lg text-sm font-semibold transition-colors ".concat("providers"===eV?"bg-brand/10 text-brand":" hover:bg-muted"),children:"For Training Providers"})]})]}),(0,s.jsxs)(N.Button,{type:"button",onClick:eY,variant:"ghost",className:"flex h-auto w-full min-w-0 items-center justify-start gap-3 overflow-hidden rounded-xl border border-border bg-muted p-3.5 text-sm font-normal text-text-secondary hover:bg-muted hover:text-text-secondary",children:[(0,s.jsx)(d.Search,{className:"h-4 w-4 shrink-0 text-text-secondary"}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-left",children:"Search for a course, qualification or subject..."})]}),(0,s.jsx)(S.Accordion,{type:"single",collapsible:!0,className:"w-full",value:en,onValueChange:function(e){return er(e||null)},children:eF.map(function(e){return(0,s.jsxs)(S.AccordionItem,{value:e.label,className:"border-border",children:[(0,s.jsx)(S.AccordionTrigger,{className:"px-1 text-sm font-semibold hover:no-underline sm:text-base",children:e.label}),(0,s.jsx)(S.AccordionContent,{children:(0,s.jsxs)("div",{className:"pl-2.5 border-l-2 border-border my-1 space-y-1",children:["courses"===e.type&&eB.length>0&&eB.map(function(e,n){var r=e.category_url||e.slug||e.url_slug||"",t=e.href||e.url||(r?r.startsWith("/")?r:"/courses/".concat(r):"/courses"),a=e.category_name||e.name||e.title||e.label,o=(Array.isArray(e.pop_courses)&&e.pop_courses.length>0?e.pop_courses:Array.isArray(e.sub_categories)?e.sub_categories:[])||[],i="courses:".concat(n);return(0,s.jsx)(S.Accordion,{type:"single",collapsible:!0,className:"w-full",value:es===i?i:"",onValueChange:function(e){return ea(e||null)},children:(0,s.jsxs)(S.AccordionItem,{value:i,className:"border-0",children:[(0,s.jsx)(S.AccordionTrigger,{className:"px-2 py-1.5 text-xs font-semibold hover:no-underline sm:text-sm",children:a}),(0,s.jsx)(S.AccordionContent,{children:(0,s.jsx)("div",{className:"pl-3 border-l border-border/80 ml-5 my-0.5 space-y-0.5",children:o.map(function(e,r){var a,o,i,c=e.course_url||e.sub_category_url||e.slug||e.url||"",d=e.href||(c?c.startsWith("/")?c:e.course_url?"/course/".concat(c):"/courses/".concat(c):t),u=e.course_title||e.sub_category_name||e.title||e.name||e.label;return(0,s.jsx)(l.default,{href:d,onClick:eX,className:"flex items-center justify-between py-1.5 px-2 rounded-md text-xs font-medium text-text-secondary hover:text-brand hover:bg-brand/5 transition-colors min-h-[34px]",children:(0,s.jsx)("span",{className:"truncate",children:u})},null!=(a=null!=(o=null!=(i=e.course_id)?i:e.sub_cat_id)?o:e.id)?a:"".concat(n,"-").concat(r))})})})]})},i)}),"licences"===e.type&&eU.length>0&&eU.map(function(e,n){var r=e.licence_category_url||e.category_url||e.slug||"",t=e.href||e.url||(r?r.startsWith("/")?r:"/lice
2nces/".concat(r):"/licences"),a=e.licence_category_title||e.category_name||e.name||e.title||e.label,o=(Array.isArray(e.licenceSub_categories)&&e.licenceSub_categories.length>0?e.licenceSub_categories:Array.isArray(e.sub_categories)?e.sub_categories:[])||[],i="licences:".concat(n);return(0,s.jsx)(S.Accordion,{type:"single",collapsible:!0,className:"w-full",value:es===i?i:"",onValueChange:function(e){return ea(e||null)},children:(0,s.jsxs)(S.AccordionItem,{value:i,className:"border-0",children:[(0,s.jsx)(S.AccordionTrigger,{className:"px-2 py-1.5 text-xs font-semibold hover:no-underline sm:text-sm",children:a}),(0,s.jsx)(S.AccordionContent,{children:(0,s.jsx)("div",{className:"pl-3 border-l border-border/80 ml-5 my-0.5 space-y-0.5",children:o.map(function(e,r){var a,o,i,c=e.licence_url||e.sub_category_url||e.slug||e.url||"",d=e.href||(c?c.startsWith("/")?c:"/licences/".concat(c):t),u=e.licence_title||e.sub_category_name||e.title||e.name||e.label;return(0,s.jsx)(l.default,{href:d,onClick:eX,className:"flex items-center justify-between py-1.5 px-2 rounded-md text-xs font-medium text-text-secondary hover:text-brand hover:bg-brand/5 transition-colors min-h-[34px]",children:(0,s.jsx)("span",{className:"truncate",children:u})},null!=(a=null!=(o=null!=(i=e.licence_id)?i:e.sub_cat_id)?o:e.id)?a:"".concat(n,"-").concat(r))})})})]})},i)}),"locations"===e.type&&ez.length>0&&ez.map(function(e,n){var r=e.url_link||e.href||e.url||(e.slug?"/locations/".concat(e.slug):"/locations"),t=e.name||e.title||e.label,a=(Array.isArray(e.subChild)?e.subChild:[])||[],o="locations:".concat(n);return(0,s.jsx)(S.Accordion,{type:"single",collapsible:!0,className:"w-full",value:es===o?o:"",onValueChange:function(e){return ea(e||null)},children:(0,s.jsxs)(S.AccordionItem,{value:o,className:"border-0",children:[(0,s.jsx)(S.AccordionTrigger,{className:"px-2 py-1.5 text-xs font-semibold hover:no-underline sm:text-sm",children:t}),(0,s.jsx)(S.AccordionContent,{children:(0,s.jsx)("div",{className:"pl-3 border-l border-border/80 ml-5 my-0.5 space-y-0.5",children:a.map(function(e,t){var a,o,i=e.url_link||e.href||e.url||(e.slug?"/locations/".concat(e.slug):r),c=e.title||e.name||e.label;return(0,s.jsx)(l.default,{href:i,onClick:eX,className:"flex items-center justify-between py-1.5 px-2 rounded-md text-xs font-medium text-text-secondary hover:text-brand hover:bg-brand/5 transition-colors min-h-[34px]",children:(0,s.jsx)("span",{className:"truncate",children:c})},null!=(a=null!=(o=e.id)?o:e.main_menu_id)?a:"".concat(n,"-").concat(t))})})})]})},o)}),"resources"===e.type&&(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)("span",{className:"block px-1 py-1 text-[10px] font-semibold uppercase tracking-wider text-text-secondary",children:"Prepare & Learn"}),(0,s.jsx)(l.default,{href:"/test-prep",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"Test Prep & Mock Exams"}),(0,s.jsx)(l.default,{href:"/blog",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"Blog & Industry Guides"})]}),(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)("span",{className:"block px-1 py-1 text-[10px] font-semibold uppercase tracking-wider text-text-secondary",children:"Help & Information"}),(0,s.jsx)(l.default,{href:"https://support.hurak.com/portal/en/home",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"Help Centre & FAQs"}),(0,s.jsx)(l.default,{href:"/certificate-checker",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"Certificate Verification"}),(0,s.jsx)(l.default,{href:"/providers",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"Customer Reviews"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"block px-1 py-1 text-[10px] font-semibold uppercase tracking-wider text-text-secondary",children:"From Hurak"}),(0,s.jsx)(l.default,{href:"/about-us",onClick:eX,className:"block py-1.5 text-sm text-text-secondary hover: ",children:"About Hurak"})]})]})]})})]},e.label)})})]}),(0,s.jsxs)("div",{className:"shrink-0 p-4 sm:p-5 border-t border-border/80 bg-card space-y-3",children:[!eC&&!eS&&(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2.5",children:[(0,s.jsx)(N.Button,{asChild:!0,type:"button",variant:"ghost",className:"h-11 gap-1.5 rounded-xl border-border bg-muted text-xs font-semibold hover:bg-muted hover: ",children:(0,s.jsxs)(l.default,{href:"/log-in",onClick:eX,children:[(0,s.jsx)(b.UserRound,{className:"h-4 w-4 text-text-secondary"}),(0,s.jsx)("span",{children:"Sign in"})]})}),(0,s.jsx)(N.Button,{asChild:!0,type:"button",variant:"ghost",className:"h-11 gap-1.5 rounded-xl border border-border/80 bg-card text-xs font-medium hover:border-border hover:text-brand hover:bg-card",children:(0,s.jsx)(l.default,{href:"/sign-up",onClick:eX,children:(0,s.jsx)("span",{children:"Sign up"})})})]}),(0,s.jsxs)("div",{className:"text-center text-xs text-text-secondary pt-1",children:["Need help booking? Call"," ",(0,s.jsx)("strong",{className:" ",children:"0333 344 1293"})]})]})]})]})}),J&&"u">typeof document&&(0,o.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-[50] lg:hidden",role:"dialog","aria-modal":"true","aria-labelledby":"mobile-course-search-title",children:[(0,s.jsx)("button",{type:"button","aria-label":"Close course search",onClick:eQ,className:"absolute inset-0 h-full w-full bg-black/35 backdrop-blur-[1px]"}),(0,s.jsxs)("div",{className:"absolute inset-x-0 bottom-0 mx-auto max-h-[88dvh] w-full overflow-hidden rounded-t-[22px] border border-border bg-card shadow-2xl",children:[(0,s.jsx)("div",{className:"flex justify-center pb-1 pt-2.5",children:(0,s.jsx)("span",{className:"h-1 w-12 rounded-full bg-muted-foreground
2/30"})}),(0,s.jsxs)("div",{className:"max-h-[calc(88dvh-14px)] overflow-y-auto overscroll-contain px-5 pb-7 pt-2",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{id:"mobile-course-search-title",className:"text-[17px] font-semibold leading-6",children:"Find course options"}),(0,s.jsx)("p",{className:"mt-1 text-[12px] leading-5 text-text-secondary",children:"Search for your course or start by choosing a subject."})]}),(0,s.jsx)("button",{type:"button",onClick:eQ,className:"-mr-1 flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-text-secondary transition-colors hover:bg-muted hover: focus:outline-none focus-visible:ring-2 focus-visible:ring-brand","aria-label":"Close search",children:(0,s.jsx)(x.X,{className:"h-4 w-4"})})]}),(0,s.jsxs)("div",{className:"mt-5",children:[(0,s.jsx)("label",{className:"mb-2 block text-[12px] font-semibold ",children:"Course, qualification or subject"}),(0,s.jsx)(T,{forceVisible:!0,onSelectCourse:function(e){if($(!1),"string"==typeof e&&e.trim()){var n=new URLSearchParams({search:e.trim()});F.push("/courses?".concat(n.toString()));return}null==U||U(e)},onOpenSearch:B})]}),eJ.length>0&&(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)("div",{className:"mb-2.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-text-secondary",children:"Or browse by subject"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2.5",children:eJ.map(function(e,n){var r,t,a,o=(null==e?void 0:e.category_name)||(null==e?void 0:e.name)||(null==e?void 0:e.title)||(null==e?void 0:e.label)||"Courses",i=e$(o);return(0,s.jsxs)("button",{type:"button",onClick:function(){return eZ(e)},className:"flex min-h-14 items-center gap-2.5 rounded-xl border border-border bg-card px-3 py-2.5 text-left text-[12px] font-medium shadow-sm transition-colors hover:border-brand/40 hover:bg-muted/40 focu
2s:outline-none focus-visible:ring-2 focus-visible:ring-brand",children:[(0,s.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-lg bg-brand/10 text-brand",children:(0,s.jsx)(i,{className:"h-3.5 w-3.5"})}),(0,s.jsx)("span",{className:"line-clamp-2 leading-4",children:o})]},null!=(r=null!=(t=null!=(a=null==e?void 0:e.id)?a:null==e?void 0:e.slug)?t:null==e?void 0:e.name)?r:n)})})]}),0===eJ.length&&(0,s.jsxs)("div",{className:"mt-4 rounded-xl border border-border bg-muted/40 p-3 text-[12px] leading-5 text-text-secondary",children:["Subject shortcuts will appear here when category data is available from"," ",(0,s.jsx)("span",{className:"font-medium",children:"menuData.categories"}),". Your main course search above still uses the existing HeaderSearch integration."]})]})]})]}),document.body),ey&&(0,s.jsx)(O,{showModal:ey,setShowModal:e_,toggleSidebar:function(){e_(!1),eX()},fullWidth:!0})]})]})};e.s(["Header",0,V,"default",0,V])}]); 3 4//# debugId=c2e5b0ad-0de2-245e-6afe-6f768559b6cb
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.