1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a0cfebb-d1d2-46d1-9568-121bad4d69ad",e._sentryDebugIdIdentifier="sentry-dbid-6a0cfebb-d1d2-46d1-9568-121bad4d69ad")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6750],{2604:(e,t,s)=>{"use strict";s.d(t,{m:()=>u,A:()=>f});var l,a=s(95155),n=s(59384),r=s(52987),i=s(27937);let o=null!==(l="https://platform.setupinsaudi.com".replace(/\/$/,""))&&void 0!==l?l:"",c=o?"/get-started":"#",d=o?"".concat(o,"/pricing"):"#",u="business-support",m={desktop:{card:"mb-4 grid grid-cols-12 items-start border-gray-200",icon:"col-span-2 mr-4 rounded-md bg-[#f0f4ff]",body:"col-span-10",title:"mb-1 font-medium",description:"text-sm text-gray-500"},mobile:{card:"flex items-start gap-3 border-gray-100",icon:"",body:"min-w-0 flex-1",title:"truncate font-medium",description:"line-clamp-2 text-sm text-gray-500"}};function x(e){e.preventDefault()}function h(e,t){return"#"===e?{href:e,onClick:x}:{href:e,target:"_blank",rel:"noopener noreferrer",onClick:t}}function f(e){let{layout:t,onLinkClick:s}=e,l=m[t];return(0,a.jsxs)("div",{className:"relative rounded-lg border bg-white p-4 hover:border-[#335cff] hover:bg-gray-50 ".concat(l.card),children:[(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center ".concat(l.icon),children:(0,a.jsx)(n.A,{className:"h-5 w-5 text-[#335cff]","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:l.body,children:[(0,a.jsx)("h4",{className:l.title,children:(0,a.jsx)("a",{...h(c,s),className:"after:absolute after:inset-0",children:"AstroLabs Platform"})}),(0,a.jsx)("p",{className:l.description,children:"Trusted company management platform for your business in Saudi"}),(0,a.jsxs)("a",{...h(d,s),className:"relative z-10 mt-2 inline-flex items-center text-sm font-medium text-[#335cff] hover:underline",children:["Pricing",(0,a.jsx)(r.A,{className:"ml-1 h-4 w-4","aria-hidden":"true"})]})]}),"mobile"===t&&(0,a.jsx)(i.A,{className:"h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"})]})}},6801:(e,t,s)=>{"use strict";s.d(t,{default:()=>r});var l=s(95155),a=s(26302),n=s(48625);function r(e){let{trackingEvent:t,...s}=e,r=(0,a.sf)();return(0,l.jsx)("span",{onClick:()=>{t&&(null==r||r.capture(t))},className:"inline-flex",children:(0,l.jsx)(n.A,{...s})})}},13496:(e,t,s)=>{"use strict";s.d(t,{Accordion:()=>i,AccordionContent:()=>d,AccordionItem:()=>o,AccordionTrigger:()=>c});var l=s(95155),a=s(12115),n=s(77476),r=s(64269);let i=n.bL,o=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)(n.q7,{ref:t,className:(0,r.cn)("border-b",s),...a})});o.displayName="AccordionItem";let c=a.forwardRef((e,t)=>{let{className:s,children:a,...i}=e;return(0,l.jsx)(n.Y9,{className:"flex w-full",children:(0,l.jsxs)(n.l9,{ref:t,className:(0,r.cn)("group flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline",s),...i,children:[(0,l.jsx)("span",{className:"hover:underline",children:a}),(0,l.jsxs)("span",{className:"relative ml-2 inline-block h-6 w-6 text-[24px] font-normal text-[#335CFF]",children:[(0,l.jsx)("span",{className:"absolute inset-0 opacity-100 transition-opacity duration-200 group-data-[state=open]:opacity-0",children:"+"}),(0,l.jsx)("span",{className:"absolute inset-0 opacity-0 transition-opacity duration-200 group-data-[state=open]:opacity-100",children:"-"})]})]})})});c.displayName=n.l9.displayName;let d=a.forwardRef((e,t)=>{let{className:s,children:a,...i}=e;return(0,l.jsx)(n.UC,{ref:t,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,l.jsx)("div",{className:(0,r.cn)("pb-4 pt-0",s),children:a})})});d.displayName=n.UC.displayName},18003:(e,t,s)=>{"use strict";s.d(t,{default:()=>P});var l=s(95155),a=s(12115),n=s(27937),r=s(35626),i=s(24033),o=s(9540),c=s(3998),d=s(48625),u=s(97141),m=s(92885),x=s(65229),h=s(64269);let f=u.bL,p=u.l9;u.bm;let g=u.ZL,v=a.forwardRef((e,t)=>
1{let{className:s,...a}=e;return(0,l.jsx)(u.hJ,{className:(0,h.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t})});v.displayName=u.hJ.displayName;let b=(0,m.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),y=a.forwardRef((e,t)=>{let{side:s="right",className:a,children:n,...r}=e;return(0,l.jsxs)(g,{children:[(0,l.jsx)(v,{}),(0,l.jsxs)(u.UC,{ref:t,className:(0,h.cn)(b({side:s}),a),...r,children:[n,(0,l.jsxs)(u.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,l.jsx)(x.A,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});y.displayName=u.UC.displayName;let j=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)(u.hE,{ref:t,className:(0,h.cn)("text-lg font-semibold text-foreground",s),...a})});j.displayName=u.hE.displayName,a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)(u.VY,{ref:t,className:(0,h.cn)("text-sm text-muted-foreground",s),...a})}).displayName=u.VY.displayName;var N=s(5484);let w=N.bL,k=N.R6,C=N.Ke;var _=s(52619),A=s.n(_),D=s(15239),L=s(86329),S=s(99265),E=s.n(S),I=s(23685),F=s(2604);function P(e){var t,s,u,m,x,h,g,v,b,N,_,S,P,T,R,B,M,U,z,H,O,q,J,V,$,X,Y,Q,K,W,Z,G;let{data:ee}=e,[et,es]=(0,a.useState)(!1),[el,ea]=(0,a.useState)("main"),[en,er]=(0,a.useState)((null==ee||null==(u=ee.products)||null==(s=u[0])||null==(t=s.country)?void 0:t.code)||null),[ei,eo]=(0,a.useState)([]),ec=e=>{eo(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},ed=e=>{ea(e),eo([])},eu=()=>{ea("main"),eo([])},em=()=>{es(!1),ea("main"),eo([])},ex=(0,a.useMemo)(()=>{var e,t;return null!=(t=(null!=(e=ee.products)?e:[]).find(e=>{var t;return(null==(t=e.country)?void 0:t.code)===en}))?t:null},[ee.products,en]),eh=null!=(m=null==ex?void 0:ex.productsByCategory)?m:[];return(0,l.jsxs)(f,{open:et,onOpenChange:es,children:[(0,l.jsx)(p,{asChild:!0,children:(0,l.jsxs)(c.$,{variant:"ghost",size:"icon",className:"lg:hidden",children:[(0,l.jsx)(o.A,{className:"h-6 w-6"}),(0,l.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,l.jsxs)(y,{side:"left",className:"w-full p-0","aria-describedby":void 0,children:[(0,l.jsx)(j,{className:"sr-only",children:"Menu"}),(0,l.jsxs)("div",{className:"relative h-full overflow-hidden",children:[(0,l.jsx)("div",{className:"absolute inset-0 transition-transform duration-300 ".concat("main"===el?"translate-x-0":"-translate-x-full"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col",children:[(0,l.jsx)("div",{className:"flex items-center justify-between border-b p-4",children:(0,l.jsx)("h2",{className:"text-lg font-semibold",children:"Menu"})}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:(0,l.jsxs)("nav",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("button",{onClick:()=>{var e;return ed((null==(e=ee.productsDisplayName)?void 0:e.toLocaleLowerCase())||"products")},className:"flex w-full items-center justify-between rounded-lg p-4 text-left hover:bg-gray-50",children:[(0,l.jsx)("span",{className:"text-lg font-medium",children:ee.productsDisplayName}),(0,l.jsx)(n.A,{className:"h-5 w-5 text-gray-400"})]}),(0,l.jsxs)("button",{onClick:()=>{var e;return ed((null==(e=ee.solutionsDisplayName)?void 0:e.toLocaleLowerCase())||"solutions")},className:"flex w-full items-center justify-between rounded-lg p-4 text-left hover:bg-gray-50",children:[(0,l.jsx)("span",{className:"text-lg font-medium",children:ee.solutionsDisplayName}),(0,l.jsx)(n.A,{className:"h-5 w-5 text-gray-400"})]}),(0,l.jsxs)("button",{onClick:()=>{var e;return ed((null==(e=ee.companyDisplayName)?void 0:e.toLocaleLowerCase())||"company")},className:"flex w-full items-center justify-between rounded-lg p-4 text-left hover:bg-gray-50",children:[(0,l.jsx)("span",{className:"text-lg font-medium",children:ee.companyDisplayName}),(0,l.jsx)(n.A,{className:"h-5 w-5 text-gray-400"})]})]}),(0,l.jsx)("div",{className:"flex flex-col border-t border-t-neutral-200 pt-4",children:null==(x=ee.mobileSpecificLinks)?void 0:x.map(e=>(0,l.jsx)(A(),{href:e.link||"#",onClick:em,className:"".concat(E().className," p-4 text-lg text-[#525866]"),children:(0,l.jsx)("span",{className:"text-lg",children:e.text})},e._key))})]})}),(0,l.jsx)("div",{className:"space-y-3 border-t p-4",children:null==(h=ee.callToActionButtons)?void 0:h.map(e=>(0,l.jsx)(d.A,{text:e.text||"Enquire Now",variant:"primary",behavior:e.behavior,formVersion:e.formVersion,portalId:e.portalId,formId:e.formId,link:e.link||"",className:"w-full"},e._key))})]})}),(0,l.jsx)("div",{className:"absolute inset-0 transition-transform duration-300 ".concat("products"===el?"translate-x-0":"translate-x-full"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center border-b p-4",children:[(0,l.jsx)(c.$,{variant:"ghost",size:"icon",onClick:eu,className:"mr-2",children:(0,l.jsx)(r.A,{className:"h-5 w-5"})}),(0,l.jsx)("h2",{className:"text-lg font-semibold",children:ee.productsDisplayName})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"grid grid-cols-2 gap-3",children:(null!=(g=ee.products)?g:[]).map(e=>{var t,s,a,n,r,i;return(0,l.jsxs)("button",{onClick:()=>{var t,s;return er(null!=(s=null==(t=e.country)?void 0:t.code)?s:null)},className:"flex items-center justify-center gap-2 rounded-lg border p-3 text-sm ".concat(en===(null==(t=e.country)?void 0:t.code)?"border-[#335CFF] bg-blue-50":"border-gray-200 hover:border-gray-300"),children:[(null==(n=e.country)||null==(a=n.flag)||null==(s=a.asset)?void 0:s._ref)&&(0,l.jsx)(D.default,{src:(0,L.d)(e.country.flag.asset._ref).url(),alt:e.country.flag.alt||"Country Flag",width:20,height:20,className:"h-5 w-5 rounded-full"}),(0,l.jsx)("span",{className:"font-medium uppercase",children:null==(r=e.country)?void 0:r.code})]},null==(i=e.country)?void 0:i._id)})})}),(0,l.jsx)("div",{className:"space-y-3",children:eh.map(e=>{var t,s,a,r;return(0,l.jsxs)(w,{open:ei.includes(e._key),onOpenChange:()=>ec(e._key),children:[(0,l.jsxs)(k,{className:"flex w-full items-center justify-between rounded-lg border p-4 text-left hover:bg-gray-50",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(null==(s=e.icon)||null==(t=s.asset)?void 0:t._ref)&&(0,l.jsx)(D.default,{src:(0,L.d)(e.icon.asset._ref).url(),alt:e.icon.alt||"Category Icon",width:20,height:20,className:"h-5 w-5"}),(0,l.jsx)("span",{className:"font-medium",children:e.categoryName})]}),(0,l.jsx)(i.A,{className:"h-5 w-5 transition-transform ".concat(ei.includes(e._key)?"rotate-180":"")})]}),(0,l.jsxs)(C,{className:"mt-3 space-y-2 pl-4 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:slide-in-from-top-1",children:[(null!=(r=e.products)?r:[]).map(e=>{var t,s,a,r,i,o;return(0,l.jsxs)(A(),{href:"/".concat(null==(t=e.slug)?void 0:t.current)||0,onClick:em,className:"flex items-start gap-3 rounded-lg border border-gray-100 p-4 hover:border-[#335cff] hover:bg-gray-50",children:[(0,l.jsx)("div",{className:"flex h-8 w-8 items-center justify-center",children:(null==(r=e.navigationData)||null==(a=r.icon)||null==(s=a.asset)?void 0:s._ref)&&(0,l.jsx)(D.default,{src:(0,L.d)(e.navigationData.icon.asset._ref).url(),alt:e.navigationData.icon.alt||"Product Icon",width:20,height:20,className:"h-5 w-5"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("h4",{className:"truncate font-medium",children:(null==(i=e.navigationData)?void 0:i.title)||e.name}),(0,l.jsx)("p",{className:"line-clamp-2 text-sm text-gray-500",children:null==(o=e.navigationData)?void 0:o.description})]}),(0,l.jsx)(n.A,{className:"h-5 w-5 flex-shrink-0 text-gray-400"})]},e._id)}),(null==(a=e.slug)?void 0:a.current)===F.m&&(0,l.jsx)(F.A,{layout:"mobile",onLinkClick:em})]})]},e._key)})}),(0,l.jsx)("div",{className:"rounded-lg bg-[#f0f4ff] p-4",children:eh.length>0?(()=>{let e=eh[0],t=null==e?void 0:e.promoSection,s=Array.isArray(t)?t:t?[t]:[],a=[...(null==e?void 0:e.promoSectionQuiz)?[e.promoSectionQuiz]:[],...s];return a.length>0?(0,l.jsx)("div",{className:"max-h-[320px] space-y-4 overflow-y-auto pr-1",children:a.map((e,t)=>{var s,a,r,i,o;let c=null==e||null==(a=e.image)||null==(s=a.asset)?void 0:s._ref,d=c?(0,L.d)(c).url():"";return(0,l.jsxs)("div",{className:"rounded-lg bg-white p-4",children:[d&&(0,l.jsx)(D.default,{src:d,alt:(null==e||null==(r=e.image)?void 0:r.alt)||(null==e?void 0:e.title)||"Promo Image",width:300,height:140,className:"h-24 w-full rounded object-cover"}),(null==e?void 0:e.title)&&(0,l.jsx)("h4",{className:"mt-3 font-medium",children:e.title}),(null==e||null==(i=e.link)?void 0:i.url)&&(0,l.jsxs)(A(),{href:e.link.url,onClick:em,className:"mt-3 flex items-center text-sm font-medium text-[#335cff]",children:[e.link.text||"Learn More",(0,l.jsx)(n.A,{className:"ml-1 h-4 w-4"})]})]},null!=(o=e._key)?o:"promo-".concat(t))})}):(0,l.jsx)("div",{className:"rounded-lg bg-white p-6 text-center text-sm text-gray-600",children:"No featured content for this category."})})():null})]})})]})}),(0,l.jsx)("div",{className:"absolute inset-0 transition-transform duration-300 ".concat("solutions"===el?"translate-x-0":"translate-x-full"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center border-b p-4",children:[(0,l.jsx)(c.$,{variant:"ghost",size:"icon",onClick:eu,className:"mr-2",children:(0,l.jsx)(r.A,{className:"h-5 w-5"})}),(0,l.jsx)("h2",{className:"text-lg font-semibold",children:ee.solutionsDisplayName})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:(0,l.jsxs)("div",{className:"space-y-4",children:[null==(v=ee.solutions)?void 0:v.map(e=>{var t;return(0,l.jsxs)(w,{open:ei.includes(e._key),onOpenChange:()=>ec(e._key),children:[(0,l.jsxs)(k,{className:"flex w-full items-center justify-between rounded-lg border p-4 text-left hover:bg-gray-50",children:[(0,l.jsx)("span",{className:"font-medium text-[#022650
1]",children:e.categoryName}),(0,l.jsx)(i.A,{className:"h-5 w-5 transition-transform ".concat(ei.includes(e._key)?"rotate-180":"")})]}),(0,l.jsx)(C,{className:"mt-3 space-y-2 pl-4 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:slide-in-from-top-1",children:null==e||null==(t=e.solutionsByCategory)?void 0:t.map(e=>{var t,s,a,r;let i=(0,I.m)(e);return i?(0,l.jsxs)(A(),{href:i,onClick:em,className:"flex items-center justify-between rounded-lg border border-gray-100 p-4 hover:border-[#335cff] hover:bg-gray-50",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"truncate font-medium text-[#022650]",children:null!=(r=null!=(a=null==(t=e.navigationData)?void 0:t.title)?a:e.name)?r:"Unnamed"}),(0,l.jsx)("p",{className:"line-clamp-2 text-sm text-[#525866]",children:null==(s=e.navigationData)?void 0:s.description})]}),(0,l.jsx)(n.A,{className:"h-5 w-5 flex-shrink-0 text-gray-400"})]},e._id):null})})]},e._key)}),(null==(b=ee.solutionsBanner)?void 0:b.title)&&(0,l.jsxs)("div",{className:"rounded-lg border bg-white p-4",children:[(0,l.jsx)("h4",{className:"font-medium",children:ee.solutionsBanner.title}),(0,l.jsxs)(A(),{href:(null==(N=ee.solutionsBanner.link)?void 0:N.url)||"#",onClick:em,className:"mt-3 flex items-center text-sm font-medium text-[#335cff]",children:[(null==(_=ee.solutionsBanner.link)?void 0:_.text)||"Learn More",(0,l.jsx)(n.A,{className:"ml-1 h-4 w-4"})]})]})]})})]})}),(0,l.jsx)("div",{className:"absolute inset-0 transition-transform duration-300 ".concat("company"===el?"translate-x-0":"translate-x-full"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center border-b p-4",children:[(0,l.jsx)(c.$,{variant:"ghost",size:"icon",onClick:eu,className:"mr-2",children:(0,l.jsx)(r.A,{className:"h-5 w-5"})}),(0,l.jsx)("h2",{className:"text-lg font-semibold",children:ee.companyDisplayName})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:(0,l.jsxs)("div",{className:"space-y-3",children:[null==(P=ee.company)||null==(S=P.navigationItems)?void 0:S.map(e=>{var t;return(0,l.jsxs)(A(),{href:"/".concat(null==(t=e.slug)?void 0:t.current)||0,onClick:em,className:"flex items-center justify-between rounded-lg border border-gray-100 p-4 hover:border-[#335cff] hover:bg-gray-50",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"truncate font-medium text-[#022650]",children:e.title}),(0,l.jsx)("p",{className:"line-clamp-2 text-sm text-[#525866]",children:e.description})]}),(0,l.jsx)(n.A,{className:"h-5 w-5 flex-shrink-0 text-gray-400"})]},e._key)}),(0,l.jsxs)("div",{className:"rounded-lg border bg-white p-4",children:[(null==(M=ee.company)||null==(B=M.banner)||null==(R=B.image)||null==(T=R.asset)?void 0:T._ref)&&(0,l.jsx)(D.default,{src:(0,L.d)(null==(O=ee.company)||null==(H=O.banner)||null==(z=H.image)||null==(U=z.asset)?void 0:U._ref).url(),alt:(null==(V=ee.company)||null==(J=V.banner)||null==(q=J.image)?void 0:q.alt)||"Company Banner",width:300,height:140,className:"h-24 w-full rounded object-cover"}),(0,l.jsx)("h4",{className:"mt-3 font-medium",children:null==(X=ee.company)||null==($=X.banner)?void 0:$.title}),(0,l.jsxs)(A(),{href:(null==(K=ee.company)||null==(Q=K.banner)||null==(Y=Q.link)?void 0:Y.url)||"#",onClick:em,className:"mt-3 flex items-center text-sm font-medium text-[#335cff]",children:[(null==(G=ee.company)||null==(Z=G.banner)||null==(W=Z.link)?void 0:W.text)||"Learn More",(0,l.jsx)(n.A,{className:"ml-1 h-4 w-4"})]})]})]})})]})})]})]})]})}},22573:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>i});var l=s(95155),a=s(12115),n=s(99265),r=s.n(n);function i(e){let{formId:t,portalId:s,delayMs:n=1e3}=e,[i,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(n<=0);(0,a.useEffect)(()=>{if(n<=0)return;let e=setTimeout(()=>{d(!0)},n);return()=>clearTimeout(e)},[n]),(0,a.useEffect)(()=>{if(!c)return;let e=document.createElement("script");return e.src="//js.hsforms.net/forms/v2.js",e.async=!0,e.onload=()=>{window.hbspt&&window.hbspt.forms.create({region:"na1",portalId:s,formId:t,target:"#hubspot-form-".concat(t),onFormReady:()=>o(!0)})},document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}},[c,t,s]);let u=()=>(0,l.jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-4 w-1/4 rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-10 rounded border border-gray-200 bg-gray-100"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-4 w-1/3 rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-10 rounded border border-gray-200 bg-gray-100"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-4 w-1/5 rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-32 rounded border border-gray-200 bg-gray-100"})]}),(0,l.jsx)("div",{className:"flex h-12 items-center justify-center rounded border border-blue-200 bg-blue-100",children:(0,l.jsx)("div",{className:"h-4 w-16 rounded bg-blue-200"})})]});return(0,l.jsxs)("div",{className:"relative",children:[!c&&(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("div",{className:"".concat(r().className," text-center text-sm text-gray-500"),children:"Loading form..."}),(0,l.jsx)(u,{})]}),c&&!i&&(0,l.jsx)(u,{}),(0,l.jsx)("div",{id:"hubspot-form-".concat(t),className:i?"block":"hidden"})]})}},23685:(e,t,s)=>{"use strict";function l(e){return e.slug?"products"===e._type?"/".concat(e.slug):"SaudiBusinessSetup"===e._type?"/saudi-business-setup/".concat(e.slug):e.solutionType?"/solutions/".concat(e.solutionType,"/").concat(e.slug):null:null}s.d(t,{m:()=>l})},24014:(e,t,s)=>{Promise.resolve().then(s.bind(s,68332)),Promise.resolve().then(s.bind(s,98202)),Promise.resolve().then(s.bind(s,57445)),Promise.resolve().then(s.bind(s,45082)),Promise.resolve().then(s.bind(s,95028)),Promise.resolve().then(s.bind(s,98061)),Promise.resolve().then(s.t.bind(s,52619,23)),Promise.resolve().then(s.t.bind(s,81356,23)),Promise.resolve().then(s.t.bind(s,41402,23)),Promise.resolve().then(s.t.bind(s,99265,23)),Promise.resolve().then(s.t.bind(s,91036,23)),Promise.resolve().then(s.t.bind(s,21887,23)),Promise.resolve().then(s.bind(s,18720)),Promise.resolve().then(s.bind(s,43189)),Promise.resolve().then(s.bind(s,64767)),Promise.resolve().then(s.bind(s,6801)),Promise.resolve().then(s.bind(s,18003)),Promise.resolve().then(s.bind(s,54332)),Promise.resolve().then(s.bind(s,47298)),Promise.resolve().then(s.bind(s,94979)),Promise.resolve().then(s.bind(s,13496))},28141:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var l=s(95155),a=s(12115),n=s(78214);let r=()=>(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-3 w-1/4 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-gray-200"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-3 w-1/4 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-gray-200"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"h-3 w-1/3 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-gray-200"})]}),(0,l.jsx)("div",{className:"h-10 w-full animate-pulse rounded bg-gray-200"})]}),i=e=>{let{formId:t,portalId:s,hiddenFields:i,splitAtField:o}=e,[c,d]=(0,a.useState)(null),[u,m]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=!1;return(async()=>{try{let s=await fetch("/api/forms/config/".concat(t));if(!s.ok){e||m("Unable to load form. Please try again later.");return}let l=n.z.safeParse(await s.json());if(e)return;if(!l.success){console.error("HubSpot form JSON did not match sc
1hema",l.error.format()),m("Form configuration is invalid. Please try again later.");return}d(l.data)}catch(t){console.error("Error loading native HubSpot form:",t),e||m("Unable to load form. Please try again later.")}})(),()=>{e=!0}},[t]),u)?(0,l.jsx)("p",{className:"text-sm text-red-600",children:u}):c?(0,l.jsx)(n.ClientForm,{fieldsFromFormJson:c,formId:t,portalId:s||"7653727",hiddenFields:i,splitAtField:o}):(0,l.jsx)(r,{})}},43189:(e,t,s)=>{"use strict";s.d(t,{BreadcrumbsClient:()=>h});var l=s(95155),a=s(12115),n=s(20063),r=s(27937),i=s(10630),o=s(52619),c=s.n(o),d=s(35008),u=s.n(d);let m=new Set(["Profile","Industry","Service"]);function x(e){let{items:t,currentPath:s}=e,a=t||(s?function(e){if(!e||"/"===e)return[{label:"Home",href:"/"}];let t=e.split("#")[0].split("?")[0].split("/").filter(Boolean).filter(e=>"index"!==e.toLowerCase()),s=[{label:"Home",href:"/"}],l="";return t.forEach((e,a)=>{let n=function(e){try{return decodeURIComponent(e)}catch(t){return e}}(e),r=encodeURIComponent(n);l+="/".concat(r);let i=a===t.length-1,o=function(e){let t=new Set(["and","or","but","nor","for","so","yet","in","on","at","by","to","of","the","a","an","with","without","through","over","under","above","below","from","into","onto","upon","within"]),s={astrolabs:"AstroLabs"},l=new Set(["ksa","uae","usa","uk","eu","gcc","mena","hr","pro","gro","faq"]);return e.replace(/--/g," & ").replace(/-/g," ").split(" ").map((e,a)=>{let n=e.toLowerCase();return s[n]?s[n]:l.has(n)?e.toUpperCase():0===a?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():t.has(n)?n:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" ")}(n),c=i?void 0:l;m.has(o)||s.push({label:o,href:c})}),s}(s):[]);return(0,l.jsx)("div",{className:"mb-8 border-b to-blue-50 py-6","data-breadcrumbs":t?"explicit":"auto",children:(0,l.jsx)("div",{className:"mx-auto flex max-w-7xl items-center gap-2 px-4",children:a.map((e,t)=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[0===t&&e.href?(0,l.jsxs)(c(),{href:e.href,className:"text-blue-500 ".concat(u().className," flex items-center gap-1 text-sm font-medium transition-colors hover:text-blue-600"),children:[(0,l.jsx)(i.FjD,{size:16}),e.label]}):(0,l.jsxs)("span",{className:"".concat(0===t&&"text-blue-500"," ").concat(t!==a.length-1&&0!==t?"text-neutral-400":0!==t&&"text-neutral-950"," ").concat(u().className," flex items-center gap-1 text-sm font-medium"),children:[0===t&&(0,l.jsx)(i.FjD,{size:16}),e.label]}),t!==a.length-1&&(0,l.jsx)(r.A,{className:"text-neutral-400"})]},e.label))})})}function h(){let e=(0,n.usePathname)(),[t,s]=(0,a.useState)(null);return((0,a.useEffect)(()=>{s(!!document.querySelector('[data-breadcrumbs="explicit"]'))},[e]),"/"===e||""===e||null===t||t)?null:(0,l.jsx)(x,{currentPath:e})}},47298:(e,t,s)=>{"use strict";s.d(t,{SearchBar:()=>k});var l=s(95155),a=s(12115),n=s(86651),r=s(26302),i=s(34604),o=s(89715),c=s(80021),d=s(16485),u=s(65229),m=s(78874),x=s(51834),h=s(52619),f=s.n(h),p=s(27937),g=s(64269);function v(e){let{results:t,onClose:s,getTypeIcon:a,header:n}=e,r=t.results;return(0,l.jsxs)("div",{children:[n,0===r.length?(0,l.jsx)("div",{className:"p-6 text-center text-sm text-gray-500",children:"No items"}):(0,l.jsx)("div",{role:"list","aria-label":"Search results",className:"grid gap-y-3 px-4 py-3 sm:px-6",children:r.slice(0,20).map(e=>(0,l.jsx)(y,{result:e,onClick:s,getTypeIcon:a},e.hit.id))})]})}function b(e){let{titleHTML:t,preview:s,result:a}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-1 overflow-hidden",children:[(0,l.jsx)("h4",{className:(0,g.cn)("text-sm font-semibold text-gray-900 group-hover:text-gray-900 sm:text-base","[&_em]:rounded [&_em]:bg-[#D5E2FF] [&_em]:px-1 [&_em]:text-blue-800","[&_mark]:bg-[#D5E2FF] [&_mark]:text-gray-900"),dangerouslySetInnerHTML:{__html:t}}),s.html&&(0,l.jsxs)("div",{children:[s.foundIn&&(0,l.jsx)("p",{className:"pt-1 text-[10px] font-medium text-blue-600 sm:text-xs",children:s.foundIn}),(0,l.jsx)("p",{className:(0,g.cn)("pt-1 text-xs text-gray-600 sm:text-sm","line-clamp-2 max-w-full sm:w-[600px]","[&_em]:rounded [&_em]:bg-[#D5E2FF] [&_em]:px-1 [&_em]:text-blue-800","[&_mark]:bg-[#D5E2FF] [&_mark]:text-gray-800"),dangerouslySetInnerHTML:{__html:s.html}})]}),(0,l.jsx)("p",{className:"truncate pt-2 text-[11px] text-gray-400 sm:text-xs",children:function(e,t){var s,l;
1try{let l=window.location.origin,a=new URL(e,l).pathname.replace(/\/+$/,"").split("/").filter(Boolean),n=(null==(s=a[a.length-1])?void 0:s.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()))||"",r=(t||"").trim()||n||"Page";return"Home > ".concat(r)}catch(r){let s=e.replace(/^https?:\/\/[^/]+/i,"").replace(/\/+$/,"").split("/").filter(Boolean),a=(null==(l=s[s.length-1])?void 0:l.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()))||"",n=(t||"").trim()||a||"Page";return"Home > ".concat(n)}}(a.hit.url,a.hit.title)})]}),(0,l.jsx)(p.A,{className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-blue-600 opacity-0 transition-opacity group-hover:opacity-100 sm:right-4"})]})}function y(e){var t;let{result:s,onClick:a,getTypeIcon:n}=e,r=(null==(t=s.highlight)?void 0:t.title)||s.hit.title,i=function(e){var t,s,l;let{highlight:a,hit:n}=e,r=null==a||null==(t=a.title)?void 0:t.includes("<mark>"),i=null==a||null==(s=a.description)?void 0:s.includes("<mark>"),o=null==a||null==(l=a.content)?void 0:l.includes("<mark>");return r?{html:(null==a?void 0:a.description)||n.description}:i&&(null==a?void 0:a.description)?{html:a.description}:o&&(null==a?void 0:a.content)?{html:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,s=e.indexOf("<mark>");if(-1===s)return e.substring(0,t);let l=Math.max(0,s-t/2),a=Math.min(e.length,s+t/2),n=e.substring(l,a);return l>0&&(n="..."+n),a<e.length&&(n+="..."),n}(a.content),foundIn:"Found in page content",matchedTerm:function(e){let t=e.indexOf("<mark>"),s=e.indexOf("</mark>");return -1===t||-1===s?"":e.substring(t+6,s)}(a.content)}:{html:n.description}}(s),o=i.matchedTerm?"".concat(s.hit.url,"#:~:text=").concat(encodeURIComponent(i.matchedTerm)):s.hit.url,c=!!i.matchedTerm,d=(0,g.cn)("group relative flex items-start gap-3 rounded-xl border border-gray-200 bg-white p-3 sm:p-4","transition-colors hover:border-blue-300 hover:bg-blue-50");return c?(0,l.jsx)("a",{href:o,onClick:a,className:d,children:(0,l.jsx)(b,{titleHTML:r,preview:i,result:s})}):(0,l.jsx)(f(),{href:o,onClick:a,className:d,children:(0,l.jsx)(b,{titleHTML:r,preview:i,result:s})})}let j={products:{label:"Products",key:"services",icon:(0,l.jsx)(i.A,{className:"h-4 w-4"})},solutions:{label:"Solutions",key:"pages",icon:(0,l.jsx)(o.A,{className:"h-4 w-4"})},resources:{label:"Resources",key:"content",icon:(0,l.jsx)(c.A,{className:"h-4 w-4"})},company:{label:"Company",key:"events",icon:(0,l.jsx)(d.A,{className:"h-4 w-4"})}};function N(e){var t,s,r,h,f,p,b,y,N,w,k;let{isOpen:C,onClose:_}=e,[A,D]=(0,a.useState)(""),[L,S]=(0,a.useState)(null),[E,I]=(0,a.useState)(!1),[F,P]=(0,a.useState)(null),[T,R]=(0,a.useState)("products"),B=(0,a.useRef)(null),M=function(e,t){let[s,l]=(0,a.useState)(e);return(0,a.useEffect)(()=>{let t=setTimeout(()=>{l(e)},350);return()=>{clearTimeout(t)}},[e,350]),s}(A,350);(0,a.useEffect)(()=>{C&&setTimeout(()=>{var e;return null==(e=B.current)?void 0:e.focus()},80)},[C]),(0,a.useEffect)(()=>{C||(D(""),S(null),P(null),I(!1),R("products"))},[C]),(0,a.useEffect)(()=>{if(!M.trim()){S(null),P(null),I(!1);return}let e=!1;return(async()=>{try{I(!0),P(null);let t=await fetch("/api/search?q=".concat(encodeURIComponent(M)));if(!t.ok)throw Error("Search failed");let s=await t.json();e||S(s)}catch(t){e||P("Failed to search. Please try again."),console.error(t)}finally{e||I(!1)}})(),()=>{e=!0}},[M]);let U=(0,a.useMemo)(()=>{let e={};return((null==L?void 0:L.results)||[]).forEach(t=>{var s;null!=e[s=t.hit.type]||(e[s]=[]),e[t.hit.type].push(t)}),e},[L]),z={products:null!=(p=null==(t=U[j.products.key])?void 0:t.length)?p:0,solutions:null!=(b=null==(s=U[j.solutions.key])?void 0:s.length)?b:0,resources:null!=(y=null==(r=U[j.resources.key])?void 0:r.length)?y:0,company:null!=(N=null==(h=U[j.company.key])?void 0:h.length)?N:0},H=null!=(w=null==L?void 0:L.totalHits)?w:0,O=!A.trim()&&!L&&!E&&!F,q=A.trim()&&!E&&0===H;return(0,l.jsx)(x.Dialog,{open:C,onOpenChange:e=>!e&&_(),children:(0,l.jsxs)(x.DialogContent,{className:"flex h-[80vh] max-w-3xl flex-col overflow-hidden rounded-sm p-0 [&>button:last-child]:hidden",children:[(0,l.jsxs)("div",{className:"relative flex shrink-0 items-center gap-3 border-b px-4 py-4 sm:px-6 sm:py-6",children:[(0,l.jsx)(n.A,{className:"h-5 w-5 text-gray-400"}),(0,l.jsx)("input",{ref:B,type:"text",value:A,onChange:e=>D(e.target.value),placeholder:"What are you looking for?",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-400 sm:text-base",autoComplete:"off"}),(0,l.jsx)("button",{type:"button",onClick:_,"aria-label":"Close search",className:"absolute right-3 top-1/2 inline-flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded-md bg-blue-50 text-blue-600 shadow-sm ring-1 ring-blue-100 transition-colors hover:bg-blue-100 hover:text-blue-700",children:(0,l.jsx)(u.A,{className:"h-4 w-4"})})]}),A&&(0,l.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b bg-[#F5F7FA] px-4 py-2 text-xs sm:px-6 sm:py-3 sm:text-sm",children:[(0,l.jsxs)("span",{className:"text-gray-600",children:["Results for"," ",(0,l.jsxs)("span",{className:"font-medium text-gray-800",children:["â",A,"â"]})]}),(0,l.jsx)("span",{className:"text-[#335CFF]",children:E?"Searchingâ¦":"".concat(H," found")})]}),(0,l.jsx)("div",{className:"shrink-0 border-b",children:(0,l.jsx)("div",{className:"flex snap-x snap-mandatory gap-2 overflow-x-auto px-2 py-2 [-ms-overflow-style:none] [scrollbar-width:none] sm:grid sm:grid-cols-4 sm:gap-0 sm:px-0 sm:py-0 [&::-webkit-scrollbar]:hidden",children:Object.keys(j).map(e=>{let t=T===e;return(0,l.jsxs)("button",{onClick:()=>R(e),className:(0,g.cn)("relative h-10 shrink-0 snap-center rounded-sm px-3 text-center text-xs font-medium transition-colors",t?"bg-blue-600 text-white":"text-gray-600 hover:text-gray-800","sm:h-11 sm:flex-1 sm:rounded-none sm:bg-transparent sm:px-0 sm:text-sm",t&&"sm:text-[#0E121B]"),children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[j[e].label,(0,l.jsx)("span",{className:(0,g.cn)("rounded-full px-1 py-[1px] text-[10px] leading-[14px]",t?"bg-white text-blue-600 sm:bg-blue-50 sm:text-blue-600":"bg-gray-100 text-gray-600"),children:z[e]})]}
1),(0,l.jsx)("span",{"aria-hidden":!0,className:(0,g.cn)("hidden sm:pointer-events-none sm:absolute sm:bottom-0 sm:left-1/2 sm:block sm:h-0.5 sm:w-28 sm:-translate-x-1/2 sm:rounded-full sm:bg-blue-600 sm:transition-opacity",t?"sm:opacity-100":"sm:opacity-0")})]},e)})})}),(0,l.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[O&&(0,l.jsxs)("div",{className:"grid place-items-center py-16 pt-24 text-center sm:pt-32",children:[(0,l.jsx)(n.A,{className:"h-12 w-12 pb-4 text-gray-300 sm:h-16 sm:w-16"}),(0,l.jsx)("p",{className:"text-sm font-medium text-gray-800 sm:text-base",children:"Search anything"}),(0,l.jsx)("p",{className:"pt-1 text-xs text-gray-500 sm:text-sm",children:"Find pages, resources, products, and more"})]}),F&&(0,l.jsxs)("div",{className:"flex items-center justify-center gap-2 py-8 text-sm text-red-600",children:[(0,l.jsx)(m.A,{className:"h-4 w-4"})," ",F]}),E&&!L&&(0,l.jsx)("div",{className:"grid gap-y-3 p-4 sm:p-6",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,l.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,l.jsx)("div",{className:"h-4 w-1/3 animate-pulse rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-3 w-2/3 animate-pulse rounded bg-gray-100 pt-2"})]},t))}),q&&(0,l.jsxs)("div",{className:"grid place-items-center py-16 pt-24 text-center sm:pt-28",children:[(0,l.jsx)(m.A,{className:"h-12 w-12 pb-4 text-gray-300 sm:h-16 sm:w-16"}),(0,l.jsx)("p",{className:"text-sm font-medium text-gray-800 sm:text-base",children:"No results found"}),(0,l.jsx)("p",{className:"pt-1 text-xs text-gray-500 sm:text-sm",children:"We canât find any item matching your search"})]}),L&&H>0&&(0,l.jsx)(v,{results:{...L,results:null!=(k=null==(f=U[j[T].key])?void 0:f.map(e=>e))?k:[]},onClose:_,getTypeIcon:e=>{switch(e){case"services":return(0,l.jsx)(i.A,{className:"h-4 w-4"});case"content":return(0,l.jsx)(c.A,{className:"h-4 w-4"});case"events":return(0,l.jsx)(d.A,{className:"h-4 w-4"});default:return(0,l.jsx)(o.A,{className:"h-4 w-4"})}}})]})]})})}var w=s(3998);function k(){let[e,t]=(0,a.useState)(!1),s=(0,r.Tp)("Search_Enabled"),i=(0,r.sf)();(0,a.useEffect)(()=>{if(!s)return;let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),t(!0))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,!0]);let o=(0,a.useCallback)(()=>t(!1),[]);return s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(w.$,{variant:"ghost",size:"icon","aria-label":"Search",onClick:()=>{null==i||i.capture("header_search_click"),t(!0)},className:"text-gray-900 hover:text-blue-500",children:(0,l.jsx)(n.A,{className:"h-5 w-5"})}),(0,l.jsx)(N,{isOpen:e,onClose:o})]}):null}},48625:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var l=s(95155),a=s(52619),n=s.n(a);s(12115);var r=s(99265),i=s.n(r),o=s(22573),c=s(28141),d=s(51834);function u(e){let{buttonText:t,title:s,children:a,formLink:n,variant:r="primary",className:o,icon:c}=e;return(0,l.jsxs)(d.Dialog,{children:[(0,l.jsx)(d.DialogTrigger,{asChild:!0,children:(0,l.jsxs)("button",{className:"".concat(i().className," ").concat("primary"===r?"bg-blue-500 text-white border border-blue-500 font-medium hover:bg-blue-600 hover:border-blue-600":"tertiary"===r?"bg-transparent text-gray-900 font-medium hover:text-blue-500":"transparent"===r?"bg-transparent text-blue-500":"bg-white text-blue-500 border border-blue-500 font-medium hover:bg-blue-50"," flex items-center justify-center rounded-full px-4 py-2 text-center text-base ").concat(c?"gap-2":""," ").concat(o||""),children:[c&&(0,l.jsx)("span",{className:"flex-shrink-0",children:c}),(0,l.jsx)("span",{children:t})]})}),(0,l.jsxs)(d.DialogContent,{className:"max-h-[85vh] min-h-[400px] max-w-[90%] overflow-y-auto sm:max-w-xl",children:[(0,l.jsx)(d.DialogHeader,{className:"sticky top-0 z-10 bg-background pb-4 pt-6",children:(0,l.jsx)(d.DialogTitle,{className:"text-center",children:s})}),(0,l.jsx)("div",{className:"px-6 pb-6",children:a})]})]})}function m(e){var t;let{variant:s,text:a,link:r,behavior:d,portalId:m,formId:x,formVersion:h="legacy",className:f,icon:p,onClick:g,openInNewTab:v=!1}=e,b=()=>{let e="tertiary"===s;return"".concat(i().className," ").concat((()=>{switch(s){case"primary":return"bg-blue-500 text-white border border-blue-500 font-medium hover:bg-blue-600 hover:border-blue-600";case"secondary":return"bg-white text-blue-500 border border-blue-500 font-medium hover:bg-blue-50";case"tertiary":return"bg-transparent text-gray-900 font-medium hover:text-blue-500";case"transparent":return"bg-transparent text-blue-500";default:return"bg-white text-blue-500 border border-blue-500"}})()," flex items-center justify-center text-center ").concat(e?"rounded-none p-0 text-base":"rounded-full px-4 py-2 text-base"," ").concat(p?"gap-2":""," ").concat(f||"")},y=()=>(0,l.jsxs)(l.Fragment,{children:[p&&(0,l.jsx)("span",{className:"flex-shrink-0",children:p}),(0,l.jsx)("span",{children:a})]});return"form"===d?g?(0,l.jsx)("button",{type:"button",className:b(),onClick:g,children:y()}):(0,l.jsx)(u,{className:f,buttonText:a,title:a,formLink:"#",variant:s,icon:p,children:m&&x?"legacy"===h?(0,l.jsx)(o.default,{portalId:m,formId:x,delayMs:0}):(0,l.jsx)(c.default,{portalId:m,formId:x}):(0,l.jsxs)("div",{className:"p-4 text-red-500",children:["Missing form configuration: portalId=",m,", formId=",x]})}):null!=(t=null==r?void 0:r.startsWith("https"))&&t||v&&r&&"#"!==r?(0,l.jsx)("a",{className:b(),href:r,target:"_blank",rel:"noopener noreferrer",children:y()}):(0,l.jsx)(n(),{className:b(),href:r||"#",children:y()})}},51834:(e,t,s)=>{"use strict";s.d(t,{Dialog:()=>o,DialogContent:()=>m,DialogHeader:()=>x,DialogTitle:()=>h,DialogTrigger:()=>c});var l=s(95155),a=s(12115),n=s(97141),r=s(65229),i=s(64269);let o=n.bL,c=n.l9,d=n.ZL;n.bm;let u=a.forwardRef((e,t)=>
1{let{className:s,...a}=e;return(0,l.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a})});u.displayName=n.hJ.displayName;let m=a.forwardRef((e,t)=>{let{className:s,children:a,...o}=e;return(0,l.jsxs)(d,{children:[(0,l.jsx)(u,{}),(0,l.jsxs)(n.UC,{ref:t,className:(0,i.cn)("fixed left-1/2 top-1/2 z-50 max-h-[80vh] w-[min(900px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 border bg-background p-0 shadow-lg sm:rounded-xl",s),...o,children:[a,(0,l.jsxs)(n.bm,{className:"data-[state=open]:bg-accent absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(r.A,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=n.UC.displayName;let x=e=>{let{className:t,...s}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};x.displayName="DialogHeader";let h=a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",s),...a})});h.displayName=n.hE.displayName,a.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,l.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",s),...a})}).displayName=n.VY.displayName},54332:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var l=s(95155),a=s(6801);function n(e){let{ctas:t}=e,s=t[0];return s?(0,l.jsx)("div",{className:"fixed bottom-4 right-4 z-40 lg:hidden",children:(0,l.jsx)(a.default,{text:s.text||"Enquire Now",variant:"primary",behavior:s.behavior,formVersion:s.formVersion,portalId:s.portalId,formId:s.formId,link:s.link||"",className:"shadow-lg",trackingEvent:"mobile_sticky_enquire_click"})}):null}},64767:(e,t,s)=>{"use strict";s.d(t,{default:()=>p});var l=s(95155),a=s(12115),n=s(24033),r=s(52619),i=s.n(r),o=s(15239),c=s(52987),d=s(86329),u=s(2604);function m(e){var t,s,n,r,m,x,h,f;let{data:p,displayName:g,onLinkClick:v}=e,[b,y]=(0,a.useState)((null==p||null==(t=p[0])?void 0:t.country)||null),[j,N]=(0,a.useState)((null==p||null==(n=p[0])||null==(s=n.productsByCategory)?void 0:s[0])||null),w=(0,a.useMemo)(()=>{if(!j)return[];let e=Array.isArray(j.promoSection)?j.promoSection:j.promoSection?[j.promoSection]:[];return[...j.promoSectionQuiz?[j.promoSectionQuiz]:[],...e]},[j]);if(!p)return null;let k=(null==j||null==(r=j.slug)?void 0:r.current)===u.m;return(0,l.jsxs)("div",{className:"relative z-50 mx-auto my-4 max-w-7xl overflow-visible rounded-[16px] border border-[#D5E2FF] bg-white",children:[(0,l.jsx)("div",{className:"absolute -top-[9px] left-[170px] z-10 h-4 w-4 rotate-45 transform border-l border-t border-[#D5E2FF] bg-white"}),(0,l.jsxs)("div",{className:"grid min-h-[700px] grid-cols-12 bg-white p-4",children:[(0,l.jsxs)("div",{className:"col-span-4 border-r pr-4",children:[(0,l.jsx)("div",{className:"mb-6 flex justify-evenly space-x-2 rounded-[10px] bg-blue-50 p-1",children:p.map(e=>{var t,s,a,n,r,i;return(0,l.jsxs)("button",{className:"".concat(e.country===b&&"bg-white"," flex w-full items-center justify-center gap-1 rounded-[10px] p-1"),onClick:()=>{var t,s,l;y(t=e.country),N((null==p||null==(l=p.find(e=>e.country===t))||null==(s=l.productsByCategory)?void 0:s[0])||null)},children:[(null==(t=e.country)?void 0:t.flag)&&(0,l.jsx)(o.default,{src:(0,d.d)(null==(s=e.country)?void 0:s.flag).url(),alt:(null==(n=e.country)||null==(a=n.flag)?void 0:a.alt)||"Country Flag",width:20,height:20,className:"h-5 w-5 rounded-full"}),(0,l.jsx)("p",{className:"text-sm uppercase",children:null==(r=e.country)?void 0:r.code})]},null==(i=e.country)?void 0:i.name)})}),(0,l.jsx)("div",{className:"max-h-[min(70vh,520px)] space-y-4 overflow-y-auto pr-1",children:p.filter(e=>e.country===b).length>0&&(null==(m=p.filter(e=>e.country===b)[0].productsByCategory)?void 0:m.map(e=>{var t,s,a,n,r;return(0,l.jsxs)("button",{className:"".concat(j===e?"border-[#335CFF]":"border-transparent"," group flex w-full items-center justify-between rounded-lg border bg-white p-3 hover:border-[#335CFF] hover:bg-gray-50"),onMouseEnter:()=>N(e),children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:(null==(s=e.icon)||null==(t=s.asset)?void 0:t._ref)&&(0,l.jsx)(o.default,{src:(0,d.d)(null==(n=e.icon)||null==(a=n.asset)?void 0:a._ref).url(),alt:(null==(r=e.icon)?void 0:r.alt)||"Category Icon",width:20,height:20})}),(0,l.jsx)("span",{className:"font-medium",children:e.categoryName})]}),(0,l.jsx)(c.A,{className:"h-4 w-4 pr-5 opacity-0 duration-100 group-hover:pr-0 group-hover:opacity-100"})]},e._key)}
1))})]}),(0,l.jsxs)("div",{className:"col-span-4 flex flex-1 flex-col px-8 py-4",children:[(0,l.jsx)("h3",{className:"mb-6 shrink-0 text-xl font-medium text-gray-700",children:(null==j?void 0:j.categoryName)||g}),(0,l.jsxs)("div",{className:"max-h-[min(70vh,520px)] min-h-0 overflow-y-auto pr-2",children:[(null!=(f=null==j||null==(x=j.products)?void 0:x.length)?f:0)>0?null==j||null==(h=j.products)?void 0:h.map(e=>{var t,s,a,n,r,c,u,m;return(0,l.jsxs)(i(),{href:"/".concat(null==(t=e.slug)?void 0:t.current)||0,className:"mb-4 grid grid-cols-12 items-start rounded-lg border border-gray-200 bg-white p-4 hover:border-[#335cff] hover:bg-gray-50",onClick:v,children:[(0,l.jsx)("div",{className:"col-span-2 mr-4 flex h-8 w-8 items-center justify-center rounded-md bg-[#f0f4ff]",children:(null==(n=e.navigationData)||null==(a=n.icon)||null==(s=a.asset)?void 0:s._ref)&&(0,l.jsx)(o.default,{src:(0,d.d)(null==(c=e.navigationData.icon)||null==(r=c.asset)?void 0:r._ref).url(),alt:(null==(u=e.navigationData.icon)?void 0:u.alt)||"Product Icon",width:20,height:20})}),(0,l.jsxs)("div",{className:"col-span-10",children:[(0,l.jsx)("h4",{className:"mb-1 font-medium",children:e.name}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:(null==(m=e.navigationData)?void 0:m.description)||"Explore this product for more details."})]})]},e._id)}):k?null:(0,l.jsx)("p",{className:"text-gray-500",children:"No products available in this category."}),k&&(0,l.jsx)(u.A,{layout:"desktop",onLinkClick:v})]})]}),(0,l.jsx)("div",{className:"col-span-4",children:(0,l.jsx)("div",{className:"h-full rounded-lg bg-[#f0f4ff] p-4",children:(0,l.jsx)("div",{className:"h-[600px] space-y-4 overflow-y-auto pr-2",children:w.length>0?w.slice(0,1).map((e,t)=>{var s,a,n,r,u,m;return(0,l.jsx)("div",{className:"overflow-hidden rounded-lg bg-white",children:(0,l.jsxs)("div",{className:"p-4",children:[(null==e||null==(a=e.image)||null==(s=a.asset)?void 0:s._ref)&&(0,l.jsx)(o.default,{src:(0,d.d)(e.image.asset._ref).url(),alt:(null==e||null==(n=e.image)?void 0:n.alt)||(null==e?void 0:e.title)||"Featured",className:"h-auto w-full rounded-md",width:320,height:180}),(null==e?void 0:e.title)&&(0,l.jsx)("h4",{className:"mt-4 text-lg font-medium",children:e.title}),(null==e||null==(r=e.link)?void 0:r.url)&&(0,l.jsxs)(i(),{href:e.link.url,className:"mt-4 inline-flex items-center text-sm font-medium text-[#335cff]",onClick:v,children:[(null==e||null==(u=e.link)?void 0:u.text)||"Learn more",(0,l.jsx)(c.A,{className:"ml-1 h-4 w-4"})]})]})},null!=(m=e._key)?m:t)}):(0,l.jsx)("p",{className:"px-1 text-sm text-gray-600",children:"No featured content for this category."})})})})]})]})}var x=s(23685);function h(e){var t,s;let{data:a,displayName:n,onLinkClick:r,banner:o}=e;return a?(0,l.jsxs)("div",{className:"relative mx-auto my-4 max-w-7xl overflow-visible rounded-[16px] border border-[#D5E2FF]",children:[(0,l.jsx)("div",{className:"absolute -top-[9px] left-[290px] z-50 h-4 w-4 rotate-45 transform border-l border-t border-[#D5E2FF] bg-white"}),(0,l.jsxs)("div",{className:"flex max-h-[calc(100vh-6rem)] flex-col gap-5 bg-white p-6",children:[(0,l.jsx)("div",{className:"grid min-h-0 auto-cols-fr grid-flow-col gap-8 overflow-y-auto",children:a.map(e=>{var t;return(0,l.jsxs)("div",{className:"flex flex-col items-start space-y-2",children:[(0,l.jsx)("h3",{className:"px-2 text-lg font-semibold text-[#022650]",children:e.categoryName}),(0,l.jsx)("div",{children:(0,l.jsx)("ul",{className:"flex w-full flex-col text-[#022650]",children:null==(t=e.solutionsByCategory)?void 0:t.map(e=>{var t,s,a,n,o,c;let d=(0,x.m)(e),u="solutions"===e._type?null==(t=e.navigationData)?void 0:t.titleExplanation:void 0;return(0,l.jsx)("li",{className:"w-full",children:d?(0,l.jsxs)(i(),{href:d,className:"flex w-full flex-col justify-center gap-1 rounded-lg p-2 duration-100 hover:bg-blue-50",onClick:r,children:[(0,l.jsxs)("p",{children:[(0,l.jsxs)("span",{children:[" ",null!=(o=null!=(n=null==(s=e.navigationData)?void 0:s.title)?n:e.name)?o:"Unnamed"]}),u&&(0,l.jsxs)("span",{children:[" ","("+u+")"]})]}),(0,l.jsx)("p",{className:"text-xs text-[#525866]",children:null==(a=e.navigationData)?void 0:a.description})]}):(0,l.jsx)("span",{className:"text-gray-400",children:null!=(c=e.name)?c:"Unnamed"})},e._id)})})})]},e._key)})}),(0,l.jsxs)("div",{className:"w-full shrink-0 rounded-2xl bg-blue-50 p-6",children:[(0,l.jsxs)("p",{className:"text-2xl text-[#141757]",children:[" ",null==o?void 0:o.title]}),(0,l.jsx)(i(),{className:"text-sm text-blue-500",href:(null==o||null==(t=o.link)?void 0:t.url)||"#",onClick:r,children:(null==o||null==(s=o.link)?void 0:s.text)||"Learn More"})]})]})]}):null}function f(e){var t,s,a,n,r,u,m,x,h,f;let{data:p,displayName:g,onLinkClick:v}=e;return p?(0,l.jsxs)("div",{className:"relative mx-auto my-4 w-auto max-w-7xl overflow-visible rounded-[16px] border border-[#D5E2FF]",children:[(0,l.jsx)("div",{className:"absolute -top-[9px] left-[410px] z-10 h-4 w-4 rotate-45 transform border-l border-t border-[#D5E2FF] bg-white"}),(0,l.jsx)("div",{className:"bg-white p-6",children:(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-8",children:[(0,l.jsx)("div",{children:(0,l.jsx)("ul",{className:"flex w-full flex-col text-[#022650
1]",children:null==(t=p.navigationItems)?void 0:t.map(e=>{var t;return(0,l.jsx)("li",{className:"w-full",children:(null==(t=e.slug)?void 0:t.current)?(0,l.jsx)(i(),{href:"/".concat(e.slug.current),className:"flex w-full flex-col justify-center gap-1 rounded-lg p-2 duration-100 hover:bg-blue-50",onClick:v,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:null==e?void 0:e.title}),(0,l.jsx)("p",{className:"text-xs text-[#525866]",children:e.description})]})}):(0,l.jsx)("span",{className:"text-gray-400",children:e.title})},e._key)})})}),(0,l.jsx)("div",{className:"overflow-hidden rounded-lg bg-[#f0f4ff] p-4",children:(0,l.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white p-4",children:[(null==(n=p.banner)||null==(a=n.image)||null==(s=a.asset)?void 0:s._ref)&&(0,l.jsx)(o.default,{src:(0,d.d)(p.banner.image.asset._ref).url(),alt:"HR Compliance Guide",width:320,height:180}),(0,l.jsx)("h4",{className:"mt-4 text-lg font-medium",children:null==(r=p.banner)?void 0:r.title}),(0,l.jsxs)(i(),{href:"string"==typeof(null==(u=p.banner)?void 0:u.link)?p.banner.link:(null==(x=p.banner)||null==(m=x.link)?void 0:m.url)||"#",className:"mt-4 flex items-center text-sm font-medium text-[#335cff]",onClick:v,children:[null==(f=p.banner)||null==(h=f.link)?void 0:h.text,(0,l.jsx)(c.A,{className:"ml-1 h-4 w-4"})]})]})})]})})]}):null}function p(e){var t,s,r,i,o,c,d,u,x;let{data:p}=e,[g,v]=(0,a.useState)(null),b=(0,a.useRef)(null),y=(0,a.useRef)(null),j=(0,a.useRef)(null),N=()=>{b.current=window.setTimeout(()=>{v(null)},100)},w=()=>{b.current&&(clearTimeout(b.current),b.current=null),v(null)},k=(0,a.useCallback)(e=>{if(!g||!y.current||!j.current)return;let t=j.current.querySelector(".max-w-7xl");if(!t)return;let s=y.current.getBoundingClientRect(),l=t.getBoundingClientRect(),a=Math.min(s.left,l.left),n=Math.max(s.right,l.right);(e.clientX<a||e.clientX>n)&&v(null)},[g]);(0,a.useEffect)(()=>{if(g)return document.addEventListener("mousemove",k),()=>{document.removeEventListener("mousemove",k)}},[g,k]);let C=e=>({onMouseEnter:()=>{b.current&&(clearTimeout(b.current),b.current=null),v(e)},onMouseLeave:N});return p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{ref:y,className:"flex items-center justify-start space-x-8 text-base font-medium",children:[(0,l.jsx)("div",{className:"relative",...C("products"),children:(0,l.jsxs)("button",{className:"flex items-center space-x-1 ".concat(g===(null==(t=p.productsDisplayName)?void 0:t.toLocaleLowerCase())?"text-[#335cff]":"text-gray-800"),children:[(0,l.jsx)("span",{children:p.productsDisplayName}),(0,l.jsx)(n.A,{className:"h-4 w-4 transition-transform duration-200 ".concat(g===(null==(s=p.productsDisplayName)?void 0:s.toLocaleLowerCase())?"rotate-180 text-[#335cff]":"")})]})}),(0,l.jsx)("div",{className:"relative",...C("solutions"),children:(0,l.jsxs)("button",{className:"flex items-center space-x-1 ".concat(g===(null==(r=p.solutionsDisplayName)?void 0:r.toLocaleLowerCase())?"text-[#335cff]":"text-gray-800"),children:[(0,l.jsx)("span",{children:p.solutionsDisplayName}),(0,l.jsx)(n.A,{className:"h-4 w-4 transition-transform duration-200 ".concat(g===(null==(i=p.solutionsDisplayName)?void 0:i.toLocaleLowerCase())?"rotate-180 text-[#335cff]":"")})]})}),(0,l.jsx)("div",{className:"relative",...C("company"),children:(0,l.jsxs)("button",{className:"flex items-center space-x-1 ".concat(g===(null==(o=p.companyDisplayName)?void 0:o.toLocaleLowerCase())?"text-[#335cff]":"text-gray-800"),children:[(0,l.jsx)("span",{children:p.companyDisplayName}),(0,l.jsx)(n.A,{className:"h-4 w-4 transition-transform duration-200 ".concat(g===(null==(c=p.companyDisplayName)?void 0:c.toLocaleLowerCase())?"rotate-180 text-[#335cff]":"")})]})})]}),g&&(0,l.jsxs)("div",{ref:j,className:"absolute left-0 top-[calc(100%-16px)] z-50 w-full bg-transparent",...C(g),children:[g===(null==(d=p.productsDisplayName)?void 0:d.toLocaleLowerCase())&&(0,l.jsx)(m,{displayName:p.productsDisplayName,data:p.products,onLinkClick:w}),g===(null==(u=p.solutionsDisplayName)?void 0:u.toLocaleLowerCase())&&(0,l.jsx)(h,{displayName:p.solutionsDisplayName,data:p.solutions,onLinkClick:w,banner:p.solutionsBanner}),g===(null==(x=p.companyDisplayName)?void 0:x.toLocaleLowerCase())&&(0,l.jsx)(f,{displayName:p.companyDisplayName,data:p.company,onLinkClick:w})]})]}):null}},81475:(e,t,s)=>{"use strict";s.d(t,{Q:()=>a});var l=s(30926);let a=(0,l.createServerReference)("7f57ed9aa786cd7c7f03a05a4ac26b0958682901fb",l.callServer,void 0,l.findSourceMapURL,"revalidateSyncTags")},86329:(e,t,s)=>{"use strict";s.d(t,{d:()=>c});var l=s(39781),a=s.n(l);s(87358).env.NEXT_PUBLIC_SANITY_API_VERSION;let n=i("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),r=i("732yszuw","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");function i(e,t){if(void 0===e)throw Error(t);return e}let o=a()({projectId:r,dataset:n}),c=e=>o.image(e)},94979:(e,t,s)=>{"use strict";s.d(t,{PostHogProvider:()=>d});var l=s(95155),a=s(26614),n=s(26302),r=s(12115),i=s(20063);function o(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),s=(0,n.sf)();return(0,r.useEffect)(()=>
1{if(!s||!e)return;let l=t.toString(),a=l?"".concat(window.location.origin).concat(e,"?").concat(l):"".concat(window.location.origin).concat(e);s.capture("$pageview",{$current_url:a})},[e,t,s]),null}function c(){return(0,l.jsx)(r.Suspense,{fallback:null,children:(0,l.jsx)(o,{})})}function d(e){let{children:t}=e;return(0,r.useEffect)(()=>{a.Ay.init("phc_fI9SJejL3dgjDUBqboxiRB6WaqwJMXcXGZZXxnae8KJ",{api_host:"https://us.i.posthog.com",capture_pageview:!1})},[]),(0,l.jsxs)(n.so,{client:a.Ay,children:[(0,l.jsx)(c,{}),t]})}}},e=>{e.O(0,[904,6293,2626,9204,8229,8478,3276,2619,1356,9628,465,9781,8334,4628,8142,4151,6097,8214,8441,9779,7358],()=>e(e.s=24014)),_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.