1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,576919,e=>{e.v({className:"playfair_display_5c3e331d-module__ks0O7G__className"})},474480,e=>{e.v({className:"dm_sans_562cc871-module__40UTuq__className"})},963478,e=>{e.v({chip:"AiAssistant-module__jlkMnW__chip",chipsRow:"AiAssistant-module__jlkMnW__chipsRow",chipsSection:"AiAssistant-module__jlkMnW__chipsSection",ctaBanner:"AiAssistant-module__jlkMnW__ctaBanner",ctaBtn:"AiAssistant-module__jlkMnW__ctaBtn",ctaContent:"AiAssistant-module__jlkMnW__ctaContent",ctaInner:"AiAssistant-module__jlkMnW__ctaInner",ctaKicker:"AiAssistant-module__jlkMnW__ctaKicker",ctaSection:"AiAssistant-module__jlkMnW__ctaSection",ctaSubtitle:"AiAssistant-module__jlkMnW__ctaSubtitle",ctaTitle:"AiAssistant-module__jlkMnW__ctaTitle",hero:"AiAssistant-module__jlkMnW__hero",heroBgBase:"AiAssistant-module__jlkMnW__heroBgBase",heroBgWash:"AiAssistant-module__jlkMnW__heroBgWash",heroBlobBlur36:"AiAssistant-module__jlkMnW__heroBlobBlur36",heroBlobBlur36Inner:"AiAssistant-module__jlkMnW__heroBlobBlur36Inner",heroBlobBlur56:"AiAssistant-module__jlkMnW__heroBlobBlur56",heroBlobBlur56Inner:"AiAssistant-module__jlkMnW__heroBlobBlur56Inner",heroBlobField:"AiAssistant-module__jlkMnW__heroBlobField",heroBlobOuterA:"AiAssistant-module__jlkMnW__heroBlobOuterA",heroBlobOuterB:"AiAssistant-module__jlkMnW__heroBlobOuterB",heroBlobOuterC:"AiAssistant-module__jlkMnW__heroBlobOuterC",heroBlobShapeA:"AiAssistant-module__jlkMnW__heroBlobShapeA",heroBlobShapeB:"AiAssistant-module__jlkMnW__heroBlobShapeB",heroBlobShapeC:"AiAssistant-module__jlkMnW__heroBlobShapeC",heroElasticWrap:"AiAssistant-module__jlkMnW__heroElasticWrap",heroEmbedded:"AiAssistant-module__jlkMnW__heroEmbedded",heroEyebrowDot:"AiAssistant-module__jlkMnW__heroEyebrowDot",heroEyebrowLabel:"AiAssistant-module__jlkMnW__heroEyebrowLabel",heroEyebrowLine:"AiAssistant-module__jlkMnW__heroEyebrowLine",heroEyebrowRow:"AiAssistant-module__jlkMnW__heroEyebrowRow",heroHeading:"AiAssistant-module__jlkMnW__heroHeading",heroHeadingAccentDark:"AiAssistant-module__jlkMnW__heroHeadingAccentDark",heroHeadingAccentLight:"AiAssistant-module__jlkMnW__heroHeadingAccentLight",heroInner:"AiAssistant-module__jlkMnW__heroInner",heroLineMove:"AiAssistant-module__jlkMnW__heroLineMove",heroSub:"AiAssistant-module__jlkMnW__heroSub",heroText:"AiAssistant-module__jlkMnW__heroText",heroVeilA:"AiAssistant-module__jlkMnW__heroVeilA",heroVeilBottom:"AiAssistant-module__jlkMnW__heroVeilBottom",heroVeilTop:"AiAssistant-module__jlkMnW__heroVeilTop",inputBox:"AiAssistant-module__jlkMnW__inputBox",inputSendBtn:"AiAssistant-module__jlkMnW__inputSendBtn",inputSendBtnLoading:"AiAssistant-module__jlkMnW__inputSendBtnLoading",inputTextarea:"AiAssistant-module__jlkMnW__inputTextarea",inputToolbar:"AiAssistant-module__jlkMnW__inputToolbar",inputToolbarBtn:"AiAssistant-module__jlkMnW__inputToolbarBtn",inputToolbarLeft:"AiAssistant-module__jlkMnW__inputToolbarLeft",inputToolbarRight:"AiAssistant-module__jlkMnW__inputToolbarRight",inputWrap:"AiAssistant-module__jlkMnW__inputWrap",sendSpinner:"AiAssistant-module__jlkMnW__sendSpinner",spin:"AiAssistant-module__jlkMnW__spin",trustIcon:"AiAssistant-module__jlkMnW__trustIcon",trustItem:"AiAssistant-module__jlkMnW__trustItem",trustLabel:"AiAssistant-module__jlkMnW__trustLabel",trustRow:"AiAssistant-module__jlkMnW__trustRow",trustStatsSection:"AiAssistant-module__jlkMnW__trustStatsSection",trustSub:"AiAssistant-module__jlkMnW__trustSub",trustText:"AiAssistant-module__jlkMnW__trustText",v4ElasticA:"AiAssistant-module__jlkMnW__v4ElasticA",v4ElasticB:"AiAssistant-module__jlkMnW__v4ElasticB",v4ElasticC:"AiAssistant-module__jlkMnW__v4ElasticC"})},821542,e=>{e.v({guideArticleBackLink:"guide-article-module__Hp9Zsa__guideArticleBackLink",guideArticleBackWrap:"guide-article-module__Hp9Zsa__guideArticleBackWrap",guideArticleBody:"guide-article-module__Hp9Zsa__guideArticleBody",guideArticleBodyCard:"guide-article-module__Hp9Zsa__guideArticleBodyCard",guideArticleBreadcrumb:"guide-article-module__Hp9Zsa__guideArticleBreadcrumb",guideArticleBreadcrumbInner:"guide-article-module__Hp9Zsa__guideArticleBreadcrumbInner",guideArticleBreadcrumbNav:"guide-article-module__Hp9Zsa__guideArticleBreadcrumbNav",guideArticleBreadcrumbSep:"guide
1-article-module__Hp9Zsa__guideArticleBreadcrumbSep",guideArticleContentCol:"guide-article-module__Hp9Zsa__guideArticleContentCol",guideArticleFaqAnswer:"guide-article-module__Hp9Zsa__guideArticleFaqAnswer",guideArticleFaqAnswerOpen:"guide-article-module__Hp9Zsa__guideArticleFaqAnswerOpen",guideArticleFaqIcon:"guide-article-module__Hp9Zsa__guideArticleFaqIcon",guideArticleFaqIconOpen:"guide-article-module__Hp9Zsa__guideArticleFaqIconOpen",guideArticleFaqItem:"guide-article-module__Hp9Zsa__guideArticleFaqItem",guideArticleFaqItemOpen:"guide-article-module__Hp9Zsa__guideArticleFaqItemOpen",guideArticleFaqList:"guide-article-module__Hp9Zsa__guideArticleFaqList",guideArticleFaqQuestion:"guide-article-module__Hp9Zsa__guideArticleFaqQuestion",guideArticleFaqSection:"guide-article-module__Hp9Zsa__guideArticleFaqSection",guideArticleFaqTitle:"guide-article-module__Hp9Zsa__guideArticleFaqTitle",guideArticleHero:"guide-article-module__Hp9Zsa__guideArticleHero",guideArticleHeroCategory:"guide-article-module__Hp9Zsa__guideArticleHeroCategory",guideArticleHeroContent:"guide-article-module__Hp9Zsa__guideArticleHeroContent",guideArticleHeroContentInner:"guide-article-module__Hp9Zsa__guideArticleHeroContentInner",guideArticleHeroDescription:"guide-article-module__Hp9Zsa__guideArticleHeroDescription",guideArticleHeroImage:"guide-article-module__Hp9Zsa__guideArticleHeroImage",guideArticleHeroImageOverlay:"guide-article-module__Hp9Zsa__guideArticleHeroImageOverlay",guideArticleHeroImageWrap:"guide-article-module__Hp9Zsa__guideArticleHeroImageWrap",guideArticleHeroTitle:"guide-article-module__Hp9Zsa__guideArticleHeroTitle",guideArticleHeroTitleGradient:"guide-article-module__Hp9Zsa__guideArticleHeroTitleGradient",guideArticleKeyCard:"guide-article-module__Hp9Zsa__guideArticleKeyCard",guideArticleKeyCardList:"guide-article-module__Hp9Zsa__guideArticleKeyCardList",guideArticleKeyCardMeta:"guide-article-module__Hp9Zsa__guideArticleKeyCardMeta",guideArticleKeyCardSummary:"guide-article-module__Hp9Zsa__guideArticleKeyCardSummary",guideArticleKeyCardTitle:"guide-article-module__Hp9Zsa__guideArticleKeyCardTitle",guideArticleMain:"guide-article-module__Hp9Zsa__guideArticleMain",guideArticleMeta:"guide-article-module__Hp9Zsa__guideArticleMeta",guideArticleMetaAvatar:"guide-article-module__Hp9Zsa__guideArticleMetaAvatar",guideArticleMetaExpert:"guide-article-module__Hp9Zsa__guideArticleMetaExpert",guideArticleMetaExpertLabel:"guide-article-module__Hp9Zsa__guideArticleMetaExpertLabel",guideArticleMetaExpertName:"guide-article-module__Hp9Zsa__guideArticleMetaExpertName",guideArticleMetaUpdated:"guide-article-module__Hp9Zsa__guideArticleMetaUpdated",guideArticlePage:"guide-article-module__Hp9Zsa__guideArticlePage",guideArticleRelatedCard:"guide-article-module__Hp9Zsa__guideArticleRelatedCard",guideArticleRelatedCardTitle:"guide-article-module__Hp9Zsa__guideArticleRelatedCardTitle",guideArticleRelatedIcon:"guide-article-module__Hp9Zsa__guideArticleRelatedIcon",guideArticleRelatedList:"guide-article-module__Hp9Zsa__guideArticleRelatedList",guideArticleSidebar:"guide-article-module__Hp9Zsa__guideArticleSidebar",guideArticleSidebarSticky:"guide-article-module__Hp9Zsa__guideArticleSidebarSticky","text-primary":"guide-article-module__Hp9Zsa__text-primary"})},273235,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function i(e){let{children:a,className:i=""}=e??{};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("main",{className:`bg-white ${i}`,children:a})})}var r=e.i(543863),n=e.i(522016),s=e.i(463059);function l({guides:e}){return e&&0!==e.length?(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-2xl border border-zinc-200/80 bg-white shadow-sm p-4 sm:p-6",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gold-500/60"}),(0,t.jsx)("h3",{className:"text-lg sm:text-xl font-medium text-zinc-900 mb-4",children:"Related Guides"}),(0,t.jsx)("nav",{className:"flex flex-col","aria-label":"Related guides",children:e.map((e,a)=>{let i=e.href||e.url||"#";return(0,t.jsxs)(n.default,{prefetch:!1,href:i,...i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},className:"flex items-start gap-2.5 py-3.5 text-sm text-zinc-600 border-b border-zinc-100 last:border-b-0 last:pb-0 transition-colors hover:text-amber-600",children:[(0,t.jsx)(s.ChevronRight,{className:"w-3.5 h-3.5 mt-0.5 shrink-0 text-zinc-400","aria-hidden":!0}),(0,t.jsx)("span",{children:e.title})]},a)})})]}):null}function o({children:e,className:i=""}){let r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=r.current;if(!e)return;let t=e.parentElement,a=t?.firstElementChild;if(!t||!a)return;let i=!1,n=0,s=0,l=0,o=0,d=0,c=0,p=()=>{e.style.position="",e.style.top="",e.style.left="",e.style.width="",e.style.zIndex=""},u=()=>{if(i=!1,window.innerWidth<1024)return void p();let t=window.scrollY||window.pageYOffset,a=e.offsetHeight,r=o+c-a-96;if(t<n-96)return void p();if(t>=r){e.style.position="absolute",e.style.top=`${Math.max(0,c-a)}px`,e.style.left=`${s-d}px`,e.style.width=`${l}px`,e.style.zIndex="10";return}e.style.position="fixed",e.style.top="96px",e.style.left=`${s}px`,e.style.width=`${l}px`,e.style.zIndex="10"},m=()=>{i||(i=!0,window.requestAnimationFrame(u))},h=()=>{let i,r,u,h;p(),i=window.scrollY||window.pageYOffset,r=e.getBoundingClientRect(),u=t.getBoundingClientRect(),h=a.getBoundingClientRect(),n=r.top+i,s=r.left,l=r.width,o=u.top+i,d=u.left,c=h.height,m()};return h(),window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",m),window.removeEventListener("resize",h),p()}},[]),(0,t.jsx)("aside",{ref:r,className:`mt-0 lg:self-start ${i}`,children:e})}var d=e.i(664659);function c({content:e,maxHeight:i="1300px",className:r="",defaultExpanded:n=!1}
1){let[s,l]=(0,a.useState)(n),[o,c]=(0,a.useState)(!1),p=(0,a.useRef)(null),u=(0,a.useRef)(null);if((0,a.useEffect)(()=>{let e=()=>{if(p.current&&u.current){let e=u.current.style.maxHeight;u.current.style.maxHeight="none";let t=p.current.scrollHeight;u.current.style.maxHeight=e,c(t>parseInt(i.replace("px","")))}};e();let t=setTimeout(e,100);return()=>clearTimeout(t)},[e,i]),!e)return null;let m=n||s;return(0,t.jsxs)("div",{className:`relative min-w-0 overflow-x-hidden ${r}`,children:[(0,t.jsxs)("div",{ref:u,className:`overflow-hidden transition-all duration-500 ease-in-out relative min-w-0 ${m?"animate-[expandContent_0.5s_ease-out_forwards]":"animate-[collapseContent_0.4s_ease-in_forwards]"}`,style:{maxHeight:m?"none":i},children:[(0,t.jsx)("div",{ref:p,className:"page-content min-w-0",dangerouslySetInnerHTML:{__html:e}}),!n&&!m&&o&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-linear-to-t from-white via-white/95 to-transparent pointer-events-none transition-opacity duration-300"})]}),!n&&o&&(0,t.jsx)("div",{className:`mt-4 flex justify-center transition-all duration-300 ${m?"opacity-0 pointer-events-none h-0 mt-0 overflow-hidden":"opacity-100 h-auto"}`,children:(0,t.jsxs)("button",{onClick:()=>l(!0),className:"group flex items-center gap-2 px-5 py-2.5 text-sm font-medium text-emerald-600 bg-emerald-50 border border-emerald-200 rounded-lg hover:bg-emerald-100 transition-all duration-200 hover:scale-105 cursor-pointer",children:[(0,t.jsx)("span",{children:"Read Full Content"}),(0,t.jsx)(d.ChevronDown,{className:"h-4 w-4 transition-transform group-hover:translate-y-0.5"})]})}),!n&&m&&o&&(0,t.jsx)("div",{className:"mt-4 flex justify-center animate-[fadeIn_0.3s_ease-out]",children:(0,t.jsxs)("button",{onClick:()=>l(!1),className:"group flex items-center gap-2 px-5 py-2.5 text-sm font-medium text-zinc-600 bg-zinc-50 border border-zinc-200 rounded-lg hover:bg-zinc-100 transition-colors duration-200 cursor-pointer",children:[(0,t.jsx)("span",{children:"Show Less"}),(0,t.jsx)(d.ChevronDown,{className:"h-4 w-4 rotate-180 transition-transform group-hover:-translate-y-0.5"})]})})]})}var p=e.i(437902),u=e.i(604299),m=e.i(221691);let h=[{label:"LLC",value:"Limited Liability Company"},{label:"C Corp",value:"C-Corporation"},{label:"S Corp",value:"S-Corporation"},{label:"Nonprofit",value:"Nonprofit Corporation"}],g=h[0].value,x="Delaware",f=e=>e.trim().toLowerCase(),b=e=>({"business setup - llc":"LLC","business setup - c corp":"C Corp","business setup - s corp":"S Corp","business setup - nonprofit":"Nonprofit","usa tax compliance":"Tax Compliance","usa incorporation + tax compliance":"Incorporation + Tax Compliance"})[e?.trim().toLowerCase()??""]??e?.trim()??"",y=(e,t)=>{let a=b(e.service_name),i=e.variant_name?.trim();return a||i||(null!=t?`Plan ${t+1}`:"Package")},v=e=>{let t=e?.trim()??"";return t?t.split(" - ")[0].trim():""},w=(e,t)=>v(e.variant_name).toLowerCase()===t.trim().toLowerCase(),j=["business setup - llc","business setup - c corp","business setup - s corp","business setup - nonprofit"],N=["basic compliance","bookkeeping & compliance"],_=new Set(j),k=new Set(N),S=e=>e.service_name?.trim().toLowerCase()??"",C=e=>e.variant_name?.trim().toLowerCase()??"",A=e=>{let t=S(e);return _.has(t)},z=e=>k.has(C(e)),E=(e,t)=>"existing"===t?L(e):e.filter(A).sort((e,t)=>j.indexOf(S(e))-j.indexOf(S(t))),L=e=>{let t=new Set;return e.filter(z).filter(e=>{let a=C(e)||S(e)||String(e.id);return!t.has(a)&&(t.add(a),!0)}).sort((e,t)=>{let a=C(e),i=C(t),r=N.indexOf(a),n=N.indexOf(i),s=-1===r?Number.MAX_SAFE_INTEGER:r,l=-1===n?Number.MAX_SAFE_INTEGER:n;return s!==l?s-l:a.localeCompare(i)})},T=(e,t)=>{let a=v(t),i=new Set,r=[];for(let t of e){if(!w(t,a))continue;let e=t.service_name?.trim();!e||i.has(e)||(i.add(e),r.push(t))}return r};function I(e){if(null==e)return null;let t="string"==typeof e?parseInt(e,10):e;return Number.isFinite(t)?t:null}function M(e,t){return t<=0?0:Math.min(+("existing"===e),t-1)}function B(e,t){if(0===e.length)return null;let a=t?.popularCatalogId??null;if(null!=a){let t=e.find(e=>e.id===a);if(t)return t}let i=M(t?.businessStage??"new",e.length);return e[i]??e[0]}function $(e){return e.toUpperCase()}function F({name:e,label:i,placeholder:r,value:n,onChange:s,onBlur:l,required:o,error:d,maxLength:c,inputMode:p,uppercase:u=!1,locked:m=!1,onLockedClick:h}){let[g,x]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:e,name:e,type:"text",value:n,onMouseDown:e=>{m&&(e.preventDefault(),h?.())},onChange:e=>{m||s(u?$(e.target.value):e.target.value)},onFocus:()=>{m?h?.():x(!0)},onBlur:()=>{x(!1),m||l()},required:o,readOnly:m,maxLength:c,inputMode:p,placeholder:(g||n)&&!n?r:"",autoComplete:"off",autoCapitalize:u?"characters":"off",autoCorrect:"off",spellCheck:"false","data-1p-ignore":"true","data-lpignore":"true","data-google-autocomplete":"false","aria-invalid":!!d,"aria-describedby":d?`${e}_error`:void 0,className:`w-full px-3.5 py-2.5 text-base font-light text-[#12023B] border-2 rounded-md bg-white transition-all outline-none border-gray-200 focus:border-gold-500 focus:ring-4 focus:ring-gold-500/10 hover:border-gray-300 placeholder:text-gray-400 invalid:border-gray-200 invalid:focus:border-gold-500 ${m?"curs
1or-pointer":""} ${u?"uppercase":"normal-case"}`}),(0,t.jsxs)("label",{htmlFor:e,className:`absolute left-3.5 transition-all duration-200 bg-white px-1 z-10 origin-left pointer-events-none ${n||g?"-top-2 text-xs font-medium text-gold-600 ":"top-2.5 text-[0.9375rem] font-normal text-gray-500 "}`,children:[i," ",o&&(0,t.jsx)("span",{className:"text-red-500 ",children:"*"})]}),d?(0,t.jsx)("p",{id:`${e}_error`,className:"mt-1 text-[11px] text-red-600 normal-case",children:d}):null]})}function P({catalogResponse:e,most_popular_card:i,mostPopularIndex:r=1,heading:n,headingHighlight:s,heading_highlight:l,description:o,note:d,buttonText:c,button_text:j}){var N,_;let[k,S]=(0,a.useState)(new Set),[C,z]=(0,a.useState)(null),[P,R]=(0,a.useState)(!1),[D,W]=(0,a.useState)(0),[H,O]=(0,a.useState)(null),[q,U]=(0,a.useState)(!1),[G,Z]=(0,a.useState)(""),[V,Y]=(0,a.useState)(!1),[J,K]=(0,a.useState)("new"),X=(0,a.useRef)("new"),Q=(0,a.useRef)(()=>{}),[ee,et]=(0,a.useState)(""),[ea,ei]=(0,a.useState)(void 0),[er,en]=(0,a.useState)(""),[es,el]=(0,a.useState)(void 0),[eo,ed]=(0,a.useState)(g),[ec,ep]=(0,a.useState)(null),eu=(0,a.useRef)(null),em=(0,a.useRef)(null),eh=(0,a.useRef)(!1),{isAuthenticated:eg,user:ex}=(0,u.useSession)(),{onAuthOpen:ef}=(0,u.useMiddleware)(),eb=eg&&!!ex,ey=(0,a.useCallback)(()=>{ef?ef("login"):window.__authOpen?.("login")},[ef]),ev=(0,a.useCallback)(()=>{let e=new URLSearchParams(window.location.search);return e.has("campaign")||e.has("utm_campaign")||e.has("gad_campaignid")||e.has("utm_source")||e.has("utm_medium")},[]),ew=(0,a.useCallback)(()=>{let e=window.innerWidth<768,t=window,a=t.desktop_spam_modal?.value==="1",i=t.mobile_spam_modal?.value==="1";return e?i:a},[]),ej=(0,a.useCallback)(()=>{if(window.innerWidth<640)return void window.dispatchEvent(new CustomEvent("filings:open-journey-drawer"));let e=document.getElementById("journey-form-section")||document.querySelector("[data-journey-form]");e?(e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{let t=e.querySelector("#journey_form_name, input:not([type=hidden])");t?.focus()},600)):window.scrollTo({top:0,behavior:"smooth"})},[]),eN=(0,a.useCallback)(()=>{let e=document.querySelector("#journey-form-section form, [data-journey-form] form");return!!e&&(e.requestSubmit(),!0)},[]),e_=(0,a.useCallback)(()=>{let e={usa_business_stage:J};if(H?.trim()&&(e.state=H.trim()),"new"===J){let t=ee.trim();t&&(e.proposed_name=$(t))}else{let t,a=ee.trim();a&&(e.business_name=$(a)),er.trim()&&(e.ein=9===(t=er.replace(/\D/g,"")).length?`${t.slice(0,2)}-${t.slice(2)}`:er.trim()),eo&&(e.business_type=eo)}return JSON.stringify(e)},[J,H,ee,er,eo]),ek=(0,a.useCallback)(e=>{z(e.id);let t=window;t.CONFIG=t.CONFIG||{},t.CONFIG.REDIRECTVALUES={catalog_id:e.id,service_id:e.service_id||0,catalog_name:e.variant_name||e.service_name||"",price:e.price,currency:e.currency||"USD",smart_form:e_(),state:H||v(e.variant_name),usa_business_stage:J}},[e_,J,H]),eS=void 0===n?"Simple packages. Transparent pricing.":n?.trim()||null,eC=void 0===n?"pricing":l?.trim()||s?.trim()||"",eA=void 0===o?"Registration fees are charged at cost. Upgrade or add services anytime.":o?.trim()||null,ez=d?.trim()?d.trim():null;j?.trim()||c?.trim();let eE=(0,a.useMemo)(()=>{if(!eS||!eC)return eS;let e=eC.toLowerCase(),a=eS.toLowerCase().indexOf(e);if(-1===a)return eS;let i=a>0?eS.substring(0,a):"",r=eS.substring(a,a+eC.length),n=a+eC.length<eS.length?eS.substring(a+eC.length):"";return(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsx)("span",{children:i}),(0,t.jsx)("span",{className:"bg-gradient-to-r from-[#6A49FF] to-[#EA5FD6] bg-clip-text text-transparent",children:r}),n&&(0,t.jsx)("span",{children:n})]})},[eS,eC]),eL=(0,a.useMemo)(()=>{if(!e?.catalog)return[];let t=e.catalog,a=t.filter(e=>{let t=e.service_name?.trim()??"",a=e.page_url?.trim()??"";return"USD"===e.currency||/usa/i.test(t)||/filings\.us/i.test(a)}),i=a.length>0?a:t;return i.some(e=>!!e.variant_name?.trim())?[...i]:[...i].sort((e,t)=>(e.price??0)-(t.price??0))},[e?.catalog]),eT=1===eL.length,eI=(0,a.useMemo)(()=>eL.some(e=>!!e.variant_name?.trim()),[eL]),eM=(0,a.useMemo)(()=>eI||eL.length>3?eL:eL.slice(0,3),[eL,eI]);(0,a.useEffect)(()=>
1{if(!eI||0===eL.length||H)return;let e=eL.some(e=>A(e)&&w(e,x))?x:"",t=v(eL.find(e=>A(e)&&e.variant_name?.trim())?.variant_name),a=e||t;a&&O(a)},[eI,eL,H]);let eB=(0,a.useMemo)(()=>{if(!eI||0===eL.length)return[];if("existing"===J)return L(eL);let e=H?.trim()||v(eL.find(e=>A(e)&&e.variant_name?.trim())?.variant_name);return e?E(T(eL,e),J):eL},[eI,eL,H,J]),e$=(0,a.useMemo)(()=>{if(void 0!==i){let e="string"==typeof i?parseInt(i,10):i,t=eM.findIndex(t=>t.id===e);if(-1!==t)return t}return r},[eM,i,r]),eF=e=>{S(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},eP=(e,t="USD")=>{let a="USD"===t;return null!=e&&Number.isFinite(e)?new Intl.NumberFormat(a?"en-US":"en-IN",{style:"currency",currency:a?"USD":"INR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e):a?"$0":"â¹0"},eR=e=>{if("USD"===e.currency)return e.unit?.trim()||"All inclusive";let t=P&&Number(e.government_fee_amount)>0?" | Govt. fee included":"";return`+ GST${t}`},eD=e=>e?e.includes(" * ")?e.split(" * ").map(e=>e.replace(/^\*\s*/,"").trim()).filter(e=>""!==e):e.split("\n").map(e=>e.replace(/^\*\s*/,"").trim()).filter(e=>""!==e):[];(0,a.useEffect)(()=>{R(!0)},[]),(0,a.useEffect)(()=>{if(0===eM.length||eh.current)return;eh.current=!0;let e=null,t=I(i);if(eI){let a=eL.some(e=>A(e)&&w(e,x))?x:v(eL.find(e=>A(e)&&e.variant_name?.trim())?.variant_name);a&&O(a);let i="existing"===J?L(eL):a?E(T(eL,a),J):[];e=B(i,{businessStage:J,popularCatalogId:t})??i[0]??null}else e=(null!=t?eL.find(e=>e.id===t):null)??eL[e$]??eL[0]??null;if(e&&(ek(e),eI&&A(e))){let t=v(e.variant_name);t&&O(t)}},[eL,J,eM.length,eI,e$,i,ek]),(0,a.useEffect)(()=>{if(eI)return;let e=em.current;if(!e)return;let t=null,a=()=>{null!==t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{W((e=>{let t=Array.from(e.querySelectorAll('[data-carousel-card="true"]'));if(0===t.length)return 0;let a=e.scrollLeft+e.clientWidth/2,i=0,r=1/0;return t.forEach((e,t)=>{let n=Math.abs(e.offsetLeft+e.offsetWidth/2-a);n<r&&(r=n,i=t)}),i})(e))})};return a(),e.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{null!==t&&window.cancelAnimationFrame(t),e.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[eI,eM.length]);let eW=(0,a.useMemo)(()=>{let e=new Set,t=[];for(let a of eL){if(!A(a))continue;let i=v(a.variant_name);i&&!e.has(i)&&(e.add(i),t.push(i))}return t},[eL]),eH=(0,a.useMemo)(()=>{if(!G.trim())return eW;let e=G.toLowerCase().trim();return eW.filter(t=>t.toLowerCase().includes(e))},[eW,G]),eO=(0,a.useMemo)(()=>h.find(e=>e.value===eo)??h[0],[eo]);(0,a.useEffect)(()=>{if(!C||0===eL.length||"existing"===J)return;let e=eL.find(e=>e.id===C);!e||A(e)&&O(v(e.variant_name)||null)},[C,eL,J]);let eq=(e,t=!1)=>{let a=t?$(e.trim()):$(e);t&&a!==ee&&et(a);let i=eL.find(e=>e.id===C);i&&ek(i)},eU=()=>{let e=eL.find(e=>e.id===C);e&&ek(e)},eG=e=>{let t=e.trim();return t?t.length<3?"Please enter at least 3 characters":t.length>200?"Business name must be at most 200 characters":void 0:"Business name is required"},eZ=()=>{let e=eL.find(e=>e.id===C);e&&ek(e)},eV=e=>{let t=e.replace(/\D/g,"");return t?9!==t.length?"EIN must be 9 digits (format XX-XXXXXXX)":void 0:"EIN is required"},eY=e=>{X.current=e,K(e),"new"===e?(en(""),el(void 0)):(et(""),ei(void 0),ed(g));let t=H?.trim()||v(eL.find(e=>A(e)&&e.variant_name?.trim())?.variant_name),a="existing"===e?L(eL):t?E(T(eL,t),e):[],r=B(a,{businessStage:e,popularCatalogId:I(i)})??a[0]??null;r&&ek(r)};X.current=J,Q.current=eY,(0,a.useEffect)(()=>{q&&eu.current&&eu.current.focus()},[q]);let eJ=(0,a.useMemo)(()=>{if(0===eB.length)return[];let e=[],t=new Set;for(let a of eB)for(let i of eD(a.about)){let a=i.trim();if(!a)continue;let r=f(a);t.has(r)||(t.add(r),e.push(a))}return e},[eB]),eK=(0,a.useMemo)(()=>I(i),[i]),eX=(0,a.useMemo)(()=>{if(null!=eK){let e=eB.findIndex(e=>e.id===eK);if(e>=0)return e}return M(J,eB.length)},[eB,eK,J]),eQ=(0,a.useMemo)(()=>B(eB,{businessStage:J,popularCatalogId:eK}),[eB,J,eK]),e0=eB.length>0&&eB.length<=2,e1=e0?58:36,e2=eB.length>0?(100-e1)/eB.length:0,e5=e0?Math.max(720,150*eB.length+420):Math.max(940,150*eB.length+360),e6=(0,a.useMemo)(()=>0===eB.length||null!=C&&eB.some(e=>e.id===C)?C:eQ?.id??eB[0].id,[eB,C,eQ]),e4=(0,a.useMemo)(()=>{let e=eB.find(e=>e.id===e6)??eQ??eB[0]??null;if(!e)return null;let t=(e.price??0)+0;return{item:e,pkg:t,total:t,title:"existing"===J&&e.variant_name?.trim()||y(e)}},[J,eB,e6,eQ]),e8=(0,a.useCallback)(async e=>{if(ek(e),!eb){{let t=Number(e.price),a=Number.isFinite(t)&&t>0?Math.round(.1*t*100)/100:void 0,i=window,r=window.location.href||"",n=String(i.lead_source??"OG"),s=(0,m.generateSignupInfo)({lead_url:r,lead_source:n,catalog_id:e.id,service_id:e.service_id||null,service_name:e.variant_name||e.service_name||"",login_lead:"1",conversion_amount:a,currency:e.currency||"USD",smart_form:e_()});s&&(i.signup_info=s)}ey();return}if(ev()||ew())return void ej();ep(e.id);try{var t;
1let a,i,r=window,n=r.leadData||{},s=ex?.gid||n.customer_id||n.cus_gid||n.gid||"",l=ex?.name||n.name||"",o=ex?.email||n.email||"",d=(ex?.ccode||n.country_code||"1").toString().replace(/\D/g,""),c=(ex?.mobile||n.phone||n.mobile||"").toString().replace(/\D/g,""),p=d&&c.startsWith(d)&&c.length>d.length?c.slice(d.length):c,u=e_(),m=(a=new URLSearchParams(window.location.search),i={},a.forEach((e,t)=>{i[t]=e}),Object.keys(i).length>0?i:{param:"0"}),h=window.innerWidth<768?"Mobile":"Desktop",x=String(r.lead_source??"Pricing"),f=`AE-Login-${h}-Journey-V4-${e.id}-${x}`,b=(e=>{try{let t=JSON.parse(e);return t&&"object"==typeof t&&!Array.isArray(t)?t:{}}catch{return{}}})(u),y="new"===J?(t=e.service_name,(({"business setup - llc":"Limited Liability Company","business setup - c corp":"C-Corporation","business setup - s corp":"S-Corporation","business setup - nonprofit":"Nonprofit Corporation"})[t?.trim().toLowerCase()??""]??"")||g):b.business_type||eo||g;b.business_type=y;let w={name:l,email:o,phone:p,mobile:p,country_code:d,catalog_id:e.id,service_name:e.variant_name||e.service_name||"USA Pricing",lead_source:f,url:window.location.href,queryParam:m,ad_tracking:m,smart_info:JSON.stringify(b),state:H||v(e.variant_name)},j=b.business_name||b.proposed_name||"";j&&(w.business_name=j);let N=await fetch("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)}),_=N.ok?await N.json().catch(()=>({})):{},k=_.customer_id||_.response?.customer_id||_.potentialID||_.potential_id||_.uid||"",S=_.response||{},C=_.call_request_id||S.call_request_id||_.callRequestId||S.callRequestId||"",A=_.bid||S.bid||"",z=_.ledgers_id||S.ledgers_id||ex?.gid||"";r.leadData={...n,...w,...k?{customer_id:k}:{}};let E=s||k,L={gid:E,usa_business_stage:J,business_name:"",business_type:"",ein:"",state:H||v(e.variant_name),source:"Journey",created_by:E};"new"===J?L.proposed_name=b.proposed_name||j:(L.business_name=b.business_name||j,L.ein=b.ein),L.business_type=y;let T=await fetch("/api/journey/common_api/create-usa-open-application",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)}),I=await T.json().catch(()=>({}));if(!T.ok||!1===I.status)throw Error(I.message||"Failed to create USA open application");let M=I.application_id||I.applicationId||I.data?.application_id||"";if(C&&M){let e=await fetch("/api/journey/common_api/link-application-to-potential",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({call_request_id:C,call_request_type:"link_potential",bid:A,application_id:Number(M),ledgers_id:z})}),t=await e.json().catch(()=>({}));if(!e.ok||!1===t.status)throw Error(t.message||"Failed to link USA open application to lead")}r.leadData={...r.leadData,...M?{open_application_id:M}:{},...C?{call_request_id:C}:{}};let B={cus_gid:s||k,cin_gstin:"",cus_name:l,cus_email:o,cus_mobile:`${d}-${p}`,utoken:"",eng_id:"",pot_id:"",partner_id:"",multi:[{catalog_id:e.id,service_id:e.service_id||0,qty:"1",amount:0,engagement:" "}],other_info:{...M?{open_application_id:M}:{},usa_business_stage:J,smart_form:u},udf:{...M?{open_application_id:M}:{}},operation:"Website"},$=await fetch("/api/getdata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generator:B,action:"create_checkout"})});if($.ok){let e=await $.json().catch(()=>({})),t=e?.estimate_id||e?.data?.estimate_id||e?.estimateId||"";if(t){window.location.href=`/checkout?generator=${t}`;return}}}catch{}finally{ep(null)}eN()||ej()},[e_,J,ev,eb,ew,eo,ej,H,ek,eN,ex,ey]),e3=e=>{ek(e)},e9=e=>{let t=e??e4?.item??eB.find(e=>e.id===e6)??eB[0]??null;if(t){if(e3(t),!eb){ei(void 0),el(void 0),e8(t);return}(!eI||(()=>{if(!eI)return!0;if("new"===J){let e=eG(ee);return e?(ei(e),!1):(ei(void 0),eq(ee,!0),!0)}let e=eG(ee);if(e)return ei(e),!1;ei(void 0);let t=eV(er);return t?(el(t),!1):(el(void 0),eU(),eq(ee,!0),eZ(),!0)})())&&e8(t)}},e7=()=>(0,t.jsx)("div",{className:"flex min-h-[260px] w-full items-center justify-center px-6 py-12 text-center",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900 ",children:"No service available"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-gray-500 ",children:"Please choose another state or business type."})]})});return eT?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.default,{id:"206f66d97f1c928c",children:".shimmer-animate.jsx-206f66d97f1c928c{animation:2s infinite shimmer}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.pricing-card.jsx-206f66d97f1c928c{position:relative;overflow:visible}.pricing-card-wrap.jsx-206f66d97f1c928c{scroll-snap-stop:always;transition:transform .2s;overflow:visible}.pricing-carousel.jsx-206f66d97f1c928c{scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}.pricing-carousel.jsx-206f66d97f1c928c::-webkit-scrollbar{display:none}@media (hover:hover) and (pointer:fine){.pricing-card-wrap.jsx-206f66d97f1c928c:hover{transform:translateY(-4px)}}.pricing-card-wrap.selected.jsx-206f66d97f1c928c{transform:translateY(-2px)}@media (width<=1023px){.pricing-card-wrap.selected.jsx-206f66d97f1c928c{transform:none}}@media (width<=639px){.pricing-carousel.jsx-206f66d97f1c928c .pricing-card-wrap.jsx-206f66d97f1c928c{flex:0 0 calc(100% - 1.25rem)!important;width:calc(100% - 1.25rem)!important;max-width:calc(100% - 1.25rem)!important}}@media (width>=1024px){.pricing-usa-layout.jsx-206f66d97f1c928c{flex-direction:row;justify-content:center;align-items:flex-start;gap:2rem;display:flex}.pricing-usa-table-panel.jsx-206f66d97f1c928c{flex:auto;min-width:0;max-width:calc(100% - 352px)}.pricing-usa-table-panel--compact.jsx-206f66d97f1c928c{flex:none;width:fit-content}.pricing-usa-summary-panel.jsx-206f66d97f1c928c{flex:0 0 320px;width:320px;position:sticky;top:6rem}}.pricing-usa-comparison-table{border-collapse:separate!important;border-spacing:0!important;border-color:#e2e8f0!important}.pricing-usa-table-panel{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.pricing-usa-comparison-table th,.pricing-usa-comparison-table td{border-color:#e2e8f0!important}.pricing-usa-comparison-table tbody tr{border-bottom:0!important}.pricing-usa-comparison-table thead tr:first-child th{border-bottom-color:#0000!important}.pricing-usa-comparison-table thead tr:first-child th:not([data-selected-col=true]){border-top-color:#0000!important;border-left-color:#0000!important;border-right-color:#0000!important}.pricing-usa-comparison-table [data-selected-col=true]{background-color:#c8924b14!important;border-left:2px solid #c8924b!important;border-right:2px solid #c8924b!important}.pricing-usa-comparison-table [data-selected-col-top=true]{border-top:2px solid #c8924b!important}.pricing-usa-comparison-table [data-selected-col-bottom=true]{overflow:hidden;border-bottom:2px solid #c8924b!important;border-bottom-right-radius:1rem!important;border-bottom-left-radius:1rem!important}.pricing-usa-comparison-table [data-soft-row-border=true]{border-bottom-color:#f1f5f9!important}"}),(0,t.jsx)("section",{"data-section":"pricing",id:"pricing-section","aria-labelledby":"pricing-heading",className:"jsx-206f66d97f1c928c relative overflow-hidden",children:(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c relative mx-auto max-w-[1600px] px-4 py-8 sm:p-8",children:[(eS||eA||ez)&&(0,t.jsxs)("header",{className:"jsx-206f66d97f1c928c text-center mb-5 sm:mb-8",children:[eS&&(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c relative inline-block",children:(0,t.jsxs)("h2",{id:"pricing-heading",className:"jsx-206f66d97f1c928c text-2xl sm:text-3xl md:text-4xl lg:text-[35px] mb-2 sm:mb-3 md:mb-4 font-medium text-black relative",children:[eE,(0,t.jsx)("div",{"aria-hidden":"true",className:"jsx-206f66d97f1c928c mx-auto h-[2px] w-14 roun
1ded-full bg-gradient-to-r from-[#5C3BFF] via-[#7052FF] to-[#FF4ED0] mt-1"})]})}),eA&&(0,t.jsx)("p",{className:"jsx-206f66d97f1c928c text-sm sm:text-base px-4 sm:px-0 max-w-2xl mx-auto text-black leading-relaxed tracking-tight",children:eA}),ez&&(0,t.jsx)("p",{className:"jsx-206f66d97f1c928c pricing-note-text !font-semibold text-xs sm:text-sm px-4 mt-2 sm:px-0",children:ez})]}),eI?(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c max-w-[1400px] mx-auto mb-6 sm:mb-8 md:mb-10",children:[q&&(0,t.jsx)("div",{onClick:()=>{U(!1),Z("")},"aria-hidden":"true",className:"jsx-206f66d97f1c928c fixed inset-0 z-40"}),(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c mb-8 lg:mb-10 space-y-4",children:[(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c relative z-50 mx-auto w-full max-w-md",children:[(0,t.jsxs)("button",{type:"button",id:"pricing-variant-select",onClick:()=>{Z(""),U(e=>!e)},className:`jsx-206f66d97f1c928c w-full px-3.5 pr-9 py-2.5 text-[0.9375rem] font-light border-2 rounded-md bg-white transition-all outline-none flex items-center text-left cursor-pointer hover:border-gray-300 relative ${q?"border-gold-500 ring-4 ring-gold-500/10 ":"border-gray-200 "}`,children:[H?(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-gray-900 font-light truncate",children:H}):(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-gray-400 ",children:"Select state"}),(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",className:`jsx-206f66d97f1c928c w-5 h-5 text-gray-400 transition-transform duration-200 shrink-0 absolute right-3 top-1/2 -translate-y-1/2 ${q?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M19 9l-7 7-7-7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-206f66d97f1c928c"})})]}),(0,t.jsx)("label",{htmlFor:"pricing-variant-select",className:`jsx-206f66d97f1c928c absolute left-3.5 transition-all duration-200 bg-white px-1 z-10 origin-left pointer-events-none ${H||q?"-top-2 text-xs font-medium text-gold-600 opacity-100":"-top-2 text-xs font-medium text-gray-500 opacity-0"}`,children:"State"}),q&&(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c absolute z-50 w-full mt-2 bg-white border-2 border-gray-200 rounded-lg shadow-xl max-h-[50vh] sm:max-h-80 overflow-hidden",children:[eW.length>5&&(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c p-1.5 sm:p-2 border-b border-gray-200 ",children:(0,t.jsx)("input",{ref:eu,type:"text",value:G,onChange:e=>Z(e.target.value),placeholder:"Search stateâ¦",className:"jsx-206f66d97f1c928c w-full px-2.5 sm:px-3 py-1.5 sm:py-2 border border-gray-300 rounded-md bg-white text-gray-900 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gold-500 text-xs sm:text-sm"})}),(0,t.jsx)("div",{onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),className:"jsx-206f66d97f1c928c max-h-[calc(50vh-6rem)] sm:max-h-64 overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-track]:rounded-lg [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-thumb]:rounded-lg [&::-webkit-scrollbar-thumb]:hover:bg-gray-400 ",children:eH.length>0?eH.map(e=>{let a=H===e;return(0,t.jsx)("button",{type:"button",onClick:()=>(e=>{U(!1),Z(""),O(e);let t=I(i);if("existing"===J){let e=L(eL);e.length>0&&!e.some(e=>e.id===C)&&e3(B(e,{businessStage:"existing",popularCatalogId:t})??e[0]);return}let a=E(T(eL,e),J);0===a.length||e3(B(a,{businessStage:"new",popularCatalogId:t})??a[0])})(e),className:`jsx-206f66d97f1c928c w-full px-3 sm:px-4 py-2 sm:py-2.5 text-left transition-all duration-200 text-xs sm:text-sm cursor-pointer flex items-center gap-2 ${a?"bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] text-white font-medium shadow-sm":"text-gray-700 hover:bg-gold-50 active:bg-gold-100 "}`,children:(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c truncate font-medium",children:e})},e)}):(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c px-4 py-3 text-center text-sm text-gray-500",children:"No results"})})]})]}),(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c relative z-30 mx-auto flex w-full max-w-md flex-col",children:(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c flex flex-1 rounded-xl border-2 border-gray-200 bg-slate-50/80 p-1 shadow-sm",children:[(0,t.jsx)("button",{type:"button",onClick:()=>eY("new"),className:`jsx-206f66d97f1c928c flex-1 cursor-pointer rounded-lg py-2.5 px-3 text-sm font-semibold transition ${"new"===J?"bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] text-white shadow-md shadow-gold-500/25":"text-gray-600 hover:text-gray-900 "}`,children:"Startup"}),(0,t.jsx)("button",{type:"button",onClick:()=>eY("existing"),className:`jsx-206f66d97f1c928c flex-1 cursor-pointer rounded-lg py-2.5 px-3 text-sm font-semibold transition ${"existing"===J?"bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] text-white shadow-md shadow-gold-500/25":"text-gray-600 hover:text-gray-900 "}`,children:"File Taxes"})]})})]}),(0,t.jsxs)("div",{className:`jsx-206f66d97f1c928c pricing-usa-layout flex w-full flex-col items-start gap-8 ${e0?"lg:flex-row lg:justify-center lg:gap-8":"xl:flex-row xl:gap-10"}`,children:[(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c w-full md:hidden",children:0===eB.length?e7():(0,t.jsxs)("div",{className:"space-y-4 md:hidden",children:[(0,t.jsxs)("div",{className:"px-1",children:[(0,t.jsx)("h3",{className:"text-base font-medium text-gray-900 ",children:"Features"}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-gold-200 bg-gold-50 px-2.5 py-1 text-[11px] font-medium text-gold-700 ",children:[(0,t.jsx)("svg",{className:"h-3.5 w-3.5 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,
1children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 21h18M5 21V7l8-4v18M19 21V11l-6-3M9 9h1M9 13h1M9 17h1M14 13h1M14 17h1"})}),"new"===J?"New entity":"Existing entity"]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-gold-200 bg-gold-50 px-2.5 py-1 text-[11px] font-medium text-gold-700 ",children:[(0,t.jsxs)("svg",{className:"h-3.5 w-3.5 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21s7-4.35 7-11a7 7 0 10-14 0c0 6.65 7 11 7 11z"}),(0,t.jsx)("circle",{cx:"12",cy:"10",r:"2.5"})]}),H??"Selected state"]})]})]}),eB.map((e,a)=>{let i=e6===e.id,r=a===eX,n="existing"===J&&e.variant_name?.trim()||y(e,a),s=eD(e.about).filter(e=>""!==e.trim()).slice(0,4),l=e.government_fee_amount??0;return(0,t.jsxs)("article",{className:`relative rounded-2xl border bg-white p-4 shadow-sm transition ${i?"border-2 border-gold-500 bg-gold-50/60 shadow-gold-500/10 ":"border-slate-200 "}`,onClick:()=>e3(e),children:[r&&(0,t.jsx)("div",{className:"absolute right-4 top-0 -translate-y-1/2 rounded-full bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] px-3 py-1 text-[10px] font-bold uppercase tracking-wide text-white shadow",children:"Recommended"}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h4",{className:"text-base font-medium leading-snug text-gray-950 ",children:n}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500 ",children:eR(e)})]}),(0,t.jsxs)("div",{className:"shrink-0 text-right",children:[(0,t.jsx)("div",{className:"text-xl font-semibold text-gray-950 ",children:eP(e.price??0,e.currency)}),l>0&&(0,t.jsxs)("div",{className:"mt-0.5 text-[11px] text-gray-500 ",children:["+ ",eP(l,e.currency)," fee"]})]})]}),s.length>0&&(0,t.jsx)("ul",{className:"mt-4 space-y-2 border-t border-slate-100 pt-4 ",children:s.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-sm text-gray-700 ",children:[(0,t.jsx)("svg",{className:"mt-0.5 h-4 w-4 shrink-0 text-gold-500 ",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":!0,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 6L9 17l-5-5"})}),(0,t.jsx)("span",{children:e})]},f(e)))}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),eb?e9(e):(e3(e),ey())},className:`mt-4 w-full cursor-pointer rounded-xl px-4 py-3 text-sm font-semibold transition ${i?"bg-gold-500 text-white shadow-md shadow-gold-500/20 hover:bg-gold-600":"bg-gold-50 text-gold-700 hover:bg-gold-100 "}`,children:"Checkout"})]},`mobile-usa-${e.id}`)})]})}),(0,t.jsx)("div",{className:`jsx-206f66d97f1c928c pricing-usa-table-panel ${e0?"pricing-usa-table-panel--compact":""} hidden min-w-0 overflow-x-auto overflow-y-visible rounded-2xl border border-slate-200/90 bg-white pt-4 shadow-[0_4px_24px_rgba(0,0,0,0.06)] md:block ${e0?"w-full md:w-fit md:max-w-full lg:shrink-0":"w-full xl:flex-1"}`,children:0===eB.length?e7():(0,t.jsxs)("table",{style:{width:e0?`${e5}px`:"100%",minWidth:`${e5}px`},className:`jsx-206f66d97f1c928c pricing-usa-comparison-table relative z-10 text-left border-separate border-spacing-0 rounded-2xl ${e0?"mx-auto":"w-full"}`,children:[(0,t.jsxs)("colgroup",{className:"jsx-206f66d97f1c928c",children:[(0,t.jsx)("col",{style:{width:`${e1}%`},className:"jsx-206f66d97f1c928c"}),eB.map(e=>(0,t.jsx)("col",{style:{width:`${e2}%`},className:"jsx-206f66d97f1c928c"},`col-${e.id}`))]}),(0,t.jsxs)("thead",{className:"jsx-206f66d97f1c928c",children:[(0,t.jsxs)("tr",{className:"jsx-206f66d97f1c928c border-b border-slate-200 ",children:[(0,t.jsxs)("th",{scope:"col",className:"jsx-206f66d97f1c928c p-4 sm:p-5 align-bottom min-w-[240px] rounded-tl-2xl border-b border-slate-200 ",children:[(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c text-sm sm:text-base font-medium text-gray-900 leading-snug",children:"Features"}),(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c mt-2 flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("span",{className:"jsx-206f66d97f1c928c inline-flex items-center gap-1.5 rounded-full border border-gold-200 bg-gold-50 px-2.5 py-1 text-[11px] font-medium text-gold-700 ",children:[(0,t.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,
1className:"jsx-206f66d97f1c928c h-3.5 w-3.5 shrink-0",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 21h18M5 21V7l8-4v18M19 21V11l-6-3M9 9h1M9 13h1M9 17h1M14 13h1M14 17h1",className:"jsx-206f66d97f1c928c"})}),"new"===J?"Startup":"File Taxes"]}),(0,t.jsxs)("span",{className:"jsx-206f66d97f1c928c inline-flex items-center gap-1.5 rounded-full border border-gold-200 bg-gold-50 px-2.5 py-1 text-[11px] font-medium text-gold-700 ",children:[(0,t.jsxs)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,className:"jsx-206f66d97f1c928c h-3.5 w-3.5 shrink-0",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21s7-4.35 7-11a7 7 0 10-14 0c0 6.65 7 11 7 11z",className:"jsx-206f66d97f1c928c"}),(0,t.jsx)("circle",{cx:"12",cy:"10",r:"2.5",className:"jsx-206f66d97f1c928c"})]}),H??"Selected state"]})]})]}),eB.map((e,a)=>{let i=e6===e.id,r=a===eX,n="existing"===J&&e.variant_name?.trim()||y(e,a),s=a===eB.length-1;return(0,t.jsxs)("th",{scope:"col","data-selected-col":i?"true":void 0,"data-selected-col-top":i?"true":void 0,onClick:()=>e3(e),className:`jsx-206f66d97f1c928c p-3 sm:p-4 align-bottom text-center relative cursor-pointer transition-colors ${i?"z-30 bg-transparent border-l-2 border-r-2 border-t-2 border-b border-l-gold-500 border-r-gold-500 border-t-gold-500 border-b-slate-200 rounded-t-2xl pt-7 overflow-visible":"border-l border-r border-b border-transparent border-b-slate-200 "} ${s?"rounded-tr-2xl":""}`,children:[i&&(0,t.jsx)("span",{"aria-hidden":"true",className:"jsx-206f66d97f1c928c pointer-events-none absolute inset-0 rounded-t-2xl bg-gold-50/70 "}),r&&(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c absolute top-0 left-1/2 z-[80] -translate-x-1/2 -translate-y-[55%] whitespace-nowrap rounded-t-xl rounded-b-md bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] px-7 py-1 text-[10px] font-bold uppercase tracking-wide text-white shadow",children:"Recommended"}),(0,t.jsx)("div",{className:`jsx-206f66d97f1c928c relative z-10 mt-2 inline-block rounded-lg border px-3 py-2 text-sm font-medium ${i?"border-gold-500 text-gray-900 bg-white ":"border-gray-200 text-gray-800 "}`,children:n})]},e.id)})]}),(0,t.jsxs)("tr",{className:"jsx-206f66d97f1c928c bg-slate-50/50 ",children:[(0,t.jsx)("td",{className:"jsx-206f66d97f1c928c p-4 sm:p-5 text-xs font-medium text-gray-500 uppercase tracking-wide border-b border-slate-200 ",children:"Price & Fees"}),eB.map(e=>{let a=e6===e.id,i=e.government_fee_amount??0;return(0,t.jsx)("td",{"data-selected-col":a?"true":void 0,onClick:()=>e3(e),className:`jsx-206f66d97f1c928c p-3 sm:p-4 text-center border-b ${a?"bg-gold-50/70 border-l-2 border-r-2 border-l-gold-500 border-r-gold-500 border-b-slate-200 ":"border-slate-200 "}`,children:(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c space-y-2 cursor-pointer",children:(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c text-base sm:text-lg font-medium text-gray-900 ",children:[(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c",children:eP(e.price??0,e.currency)}),i>0&&(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c mt-1 text-xs font-normal text-gray-600 ",children:[eP(i,e.currency)," state fee included"]})]})})},`price-${e.id}`)})]})]}),(0,t.jsx)("tbody",{className:"jsx-206f66d97f1c928c",children:0===eJ.length?(0,t.jsx)("tr",{className:"jsx-206f66d97f1c928c",children:(0,t.jsx)("td",{colSpan:eB.length+1,className:"jsx-206f66d97f1c928c p-6 text-center text-sm text-gray-500",children:"Feature details will appear here when available for these packages."})}):eJ.map((e,a)=>{let i=a===eJ.length-1;return(0,t.jsxs)("tr",{className:"jsx-206f66d97f1c928c",children:[(0,t.jsx)("th",{scope:"row","data-soft-row-border":i?void 0:"true",className:`jsx-206f66d97f1c928c p-4 sm:p-5 text-sm font-medium text-gray-800 text-left align-top pr-3 ${i?"rounded-bl-2xl":"border-b border-slate-100 "}`,children:(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c leading-snug",children:e})}),eB.map((a,r)=>{let n=(e=>{let t=new Set;for(let a of eD(e.about)){let e=a.trim();e&&t.add(f(e))}return t})(a).has(f(e)),s=e6===a.id,l=r===eB.length-1;return(0,t.jsx)("td",{"data-selected-col":s?"true":void 0,"data-selected-col-bottom":s&&i?"true":void 0,"data-soft-row-border":i?void 0:"true",onClick:()=>e3(a),className:`jsx-206f66d97f1c928c p-3 sm:p-4 text-center align-middle ${i&&l?"rounded-br-2xl":""} ${s?`bg-gold-50/70 border-l-2 border-r-2 border-l-gold-500 border-r-gold-500 ${i?"border-b-2 border-b-gold-500 rounded-b-2xl overflow-hidden":"border-b border-b-slate-100 "}`:`${i?"":"border-b border-b-slate-100 "}`}`,children:n?(0,t.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":!0,
1className:"jsx-206f66d97f1c928c w-5 h-5 mx-auto text-gold-500 ",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20 6L9 17l-5-5",className:"jsx-206f66d97f1c928c"})}):(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-gray-300 ",children:"â"})},`${a.id}-${f(e)}`)})]},f(e))})})]})}),(0,t.jsx)("aside",{className:`jsx-206f66d97f1c928c pricing-usa-summary-panel w-full shrink-0 ${e0?"lg:sticky lg:top-24 lg:w-[320px]":"xl:sticky xl:top-24 xl:w-[320px]"}`,children:(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c rounded-2xl border border-slate-200/90 bg-white p-6 shadow-[0_4px_24px_rgba(0,0,0,0.06)] ",children:[(0,t.jsx)("h3",{className:"jsx-206f66d97f1c928c text-lg font-semibold text-gray-900 mb-5",children:"Order summary"}),e4?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("ul",{className:"jsx-206f66d97f1c928c mb-4 space-y-3 border-b border-slate-100 pb-4 text-sm ",children:["new"===J?(0,t.jsx)("li",{className:"jsx-206f66d97f1c928c block list-none py-1",children:(0,t.jsx)(F,{name:"usa_order_summary_proposed_name",label:"Business name",placeholder:"",uppercase:!0,value:ee,onChange:e=>{et(e),eq(e),ei(void 0)},onBlur:()=>{ei(eG(ee)),eq(ee,!0)},required:!0,locked:!eb,onLockedClick:ey,error:ea,maxLength:200})}):null,"existing"===J?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"jsx-206f66d97f1c928c block list-none py-1",children:(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c relative z-50",children:[V&&(0,t.jsx)("div",{onClick:()=>Y(!1),"aria-hidden":"true",className:"jsx-206f66d97f1c928c fixed inset-0 z-40"}),(0,t.jsxs)("button",{type:"button",id:"usa_order_summary_business_type",onClick:()=>{eb?Y(e=>!e):ey()},className:`jsx-206f66d97f1c928c relative z-50 flex w-full cursor-pointer items-center rounded-md border-2 bg-white px-3.5 py-2.5 pr-9 text-left text-base font-light text-[#12023B] outline-none transition hover:border-gray-300 ${V?"border-gold-500 ring-4 ring-gold-500/10 ":"border-gray-200 "}`,children:[(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c truncate text-gray-900 ",children:eO.label}),(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:`jsx-206f66d97f1c928c absolute right-3 top-1/2 h-5 w-5 -translate-y-1/2 shrink-0 text-gray-400 transition-transform duration-200 ${V?"rotate-180":""}`,children:(0,t.jsx)("path",{d:"M19 9l-7 7-7-7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-206f66d97f1c928c"})})]}),(0,t.jsxs)("label",{htmlFor:"usa_order_summary_business_type",className:`jsx-206f66d97f1c928c absolute left-3.5 z-50 origin-left bg-white px-1 text-xs font-medium text-gold-600 transition-all duration-200 ${eo||V?"-top-2 opacity-100":"-top-2 opacity-0"}`,children:["Entity type ",(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-red-500 ",children:"*"})]}),V&&(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c absolute z-50 mt-2 w-full overflow-hidden rounded-lg border-2 border-gray-200 bg-white shadow-xl ",children:(0,t.jsx)("div",{className:"jsx-206f66d97f1c928c max-h-64 overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-lg [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:rounded-lg [&::-webkit-scrollbar-track]:bg-gray-100 ",children:h.map(e=>{let a=e.value===eo;return(0,t.jsx)("button",{type:"button",onClick:()=>{ed(e.value),eU(),Y(!1)},className:`jsx-206f66d97f1c928c flex w-full cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-all duration-200 ${a?"bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] font-medium text-white shadow-sm ":"text-gray-700 hover:bg-gold-50 active:bg-gold-100 "}`,children:(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c truncate font-medium",children:e.label})},e.value)})})})]})}),(0,t.jsx)("li",{className:"jsx-206f66d97f1c928c block list-none py-1",children:(0,t.jsx)(F,{name:"usa_order_summary_business_name",label:"Business name",placeholder:"",uppercase:!0,value:ee,onChange:e=>{et(e),eq(e),ei(void 0)},onBlur:()=>{ei(eG(ee)),eq(ee,!0)},required:!0,locked:!eb,onLockedClick:ey,error:ea,maxLength:200})}),(0,t.jsx)("li",{className:"jsx-206f66d97f1c928c block list-none py-1",children:(0,t.jsx)(F,{name:"usa_order_summary_ein",label:"EIN number",placeholder:"XX-XXXXXXX",value:er,inputMode:"numeric",onChange:e=>{let t;en((t=e.replace(/\D/g,"").slice(0,9)).length<=2?t:`${t.slice(0,2)}-${t.slice(2)}`),eZ(),el(void 0)},onBlur:()=>{el(eV(er))},required:!0,locked:!eb,onLockedClick:ey,error:es,maxLength:10})})]}):null,(0,t.jsxs)("li",{className:"jsx-206f66d97f1c928c flex justify-between gap-3 text-gray-700 ",children:[(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c",children:"existing"===J?"Package":"Entity type"}),(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-right font-medium text-gray-900 ",children:"existing"===J?e4.item.variant_name?.trim()||e4.title:b(e4.item.service_name)||e4.title})]}),(0,t.jsxs)("li",{className:"jsx-206f66d97f1c928c flex justify-between gap-3 text-gray-700 ",children:[(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c",children:"State"}),(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-right font-medium text-gray-900 ",children:H??"Selected state"})]}),(0,t.jsxs)("li",{className:"jsx-206f66d97f1c928c flex justify-between gap-3 text-gray-700 ",children:[(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c",children:"Price"}),(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-right font-medium text-gray-900 tabular-nums",children:eP(e4.pkg,e4.item.currency)})]})]}),(0,t.jsxs)("div",{className:"jsx-206f66d97f1c928c mb-6 flex items-baseline justify-between rounded-xl bg-gold-50 px-3 py-3 ",children:[(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-base font-medium text-gray-900 ",children:"Total"}),(0,t.jsx)("span",{className:"jsx-206f66d97f1c928c text-xl font-medium text-gray-900 tabular-nums",children:eP(e4.total,e4.item.currency)})]})]}):(0,t.jsx)("p",{className:"jsx-206f66d97f1c928c text-sm text-gray-500 mb-6",children:"Select a package to see your total."}),(0,t.jsx)("button",{type:"button",onClick:()=>{e9(e4?.item??eB[0])},disabled:!e4?.item&&0===eB.length||null!=ec,"aria-busy":null!=ec,className:"jsx-206f66d97f1c928c w-full cursor-pointer rounded-xl py-3.5 px-4 text-base font-semibold text-white transition hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-50 shadow-md shadow-gold-500/20 bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)]",children:null!=ec?"Processing...":"Checkout"})]})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:em,role:"region","aria-roledescription":"carousel","aria-label":"Pricing plans",className:"jsx-206f66d97f1c928c pricing-carousel flex flex-nowrap sm:flex-wrap justify-start sm:justify-center items-stretch gap-3 sm:gap-7 lg:gap-8 overflow-x-auto sm:overflow-visible snap-x snap-mandatory sm:snap-none px-2 sm:px-0 pt-3 sm:pt-0 pb-2 sm:pb-0 max-w-[1200px] mx-auto mb-6 sm:mb-8 md:mb-10",children:0===eM.length||0===eM.length?e7():eM.map((e,a)=>{let i=eD(e.about),r=e.description&&e.description.trim()?e.description.trim():"",n=y(e,a),s=a===e$,l=k.has(a),o=C===e.id,d=(r?r.length:0)>120;return(0,t.jsx)("article",{"data-carousel-card":"true",className:`pricing-card-wrap w-full max-w-full sm:w-[calc(50%-0.625rem)] lg:w-[calc(33.333%-1.333rem)] sm:max-w-sm shrink-0 sm:shrink flex snap-center cursor-pointer ${o?"selected":""}`,onClick:()=>e3(e),children:(0,t.jsxs)("div",{className:`pricing-card flex flex-col p-5 sm:p-7 rounded-2xl shadow-[0_1px_3px_rgba(0,0,0,0.03),0_4px_8px_rgba(0,0,0,0.04),0_12px_24px_rgba(0,0,0,0.05)] border w-full h-full relative transition-all duration-200 ${o?"border-gold-500 bg-white shadow-lg shadow-gold-500/20 ":"border-slate-200/80 bg-white "}`,children:[s&&(0,t.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10",children:(0,t.jsx)("div",{className:"bg-black text-white px-3 py-1 sm:px-3 sm:py-1.5 rounded-full text-[11px] sm:text-xs font-semibold shadow-md border border-white/10 ",children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),"Popular"]})})}),(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("div",{className:"text-left h-[50px] flex items-center justify-start overflow-hidden",children:(0,t.jsx)("h3",{className:"text-lg sm:text-xl md:text-2xl font-medium text-[#000000] line-clamp-2 w-full",children:n})}),(0,t.jsx)("div",{className:"text-left py-2 sm:py-1 min-h-[80px] relative",children:r&&(0,t.jsx)("div",{className:"relative",children:!l&&d?(0,t.jsxs)("div",{className:"relative overflow-hidden",children:[(0,t.jsx)("p",{className:"text-xs sm:text-sm text-gray-700 leading-relaxed line-clamp-3",children:r}),(0,t.jsxs)("button",{onClick:e=>{e.stopPropagation(),eF(a)},className:"absolute bottom-0 right-0 bg-white pl-1 text-xs font-semibold text-blue-600 hover:text-blue-700 transition-colors duration-200 cursor-pointer inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-black ",children:"â¦"}),"Read more",(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}):(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"text-xs sm:text-sm text-gray-700 leading-relaxed",children:[r,d&&(0,t.jsxs)("button",{onClick:e=>{e.stopPropagation(),eF(a)},className:"ml-1 text-xs font-semibold text-blue-600 hover:text-blue-700 transition-colors duration-200 inline-flex items-center gap-1 cursor-pointer",children:["Read less",(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 15l7-7 7 7"})})]})]})})})}),e.price&&e.price>0&&(0,t.jsx)("div",{className:"text-left py-2 sm:py-3 h-[80px] flex items-center overflow-hidden",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-[24px] sm:text-[26px] font-normal text-gray-900 leading-none truncate",children:eP(e.price,e.currency)}),(0,t.jsx)("span",{className:"text-xs text-gray-600 mt-1",children:eR(e)})]})}),(0,t.jsx)("div",{className:"flex-grow mb-4 sm:mb-5 pt-1 overflow-hidden",children:i.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"text-sm sm:text-md font-semibold mb-2 sm:mb-3 md:mb-3.5 text-gray-700 truncate",children:"What's included:"}),(0,t.jsx)("ul",{className:"space-y-1",children:i.filter(e=>""!==e.trim()).map((e,a)=>(0,t.jsxs)("li",{className:"feature-item flex items-start gap-3 text-gray-700 mb-2 text-sm",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-circle-check h-4 w-4 text-gold-500 flex-shrink-0 mt-0.5","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"m9 12 2 2 4-4"})]}),(0,t.jsx)("span",{className:"break-words overflow-hidden",children:e})]},a))})]})}),(0,t.jsx)("div",{className:"mt-auto text-left",children:(0,t.jsx)("button",{"aria-label":`Get started with ${n} plan`,disabled:ec===e.id,onClick:t=>{t.stopPropagation(),e8(e)},className:`common-btn w-full py-2.5 sm:py-3 px-4 sm:px-6 rounded-lg text-xs sm:text-sm md:text-base font-semibold transition-all duration-150 cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed ${o?"text-white bg-gold-500 border border-gold-500 hover:bg-gold-600 ":"text-gold-700 bg-gold-50 border border-gold-300 hover:bg-gold-100 "}`,children:ec===e.id?"Processing...":"Checkout"})})]})]})},e.id||a)})}),(N=eM.length||3,_=e=>((e,t)=>{let a=e.current;if(!a)return;let i=Array.from(a.querySelectorAll('[data-carousel-card="true"]'))[t];if(!i)return;let r=i.offsetLeft-(a.clientWidth-i.offsetWidth)/2;a.scrollTo({left:Math.max(0,r),behavior:"smooth"})})(em,e),N<=1?null:(0,t.jsx)("div",{className:"sm:hidden mt-5 flex items-center justify-center gap-2",children:Array.from({length:N}).map((e,a)=>(0,t.jsx)("button",{type:"button",onClick:()=>_(a),"aria-label":`Go to plan ${a+1}`,"aria-current":a===D?"true":void 0,className:`h-1.5 rounded-full transition-all duration-200 ${a===D?"w-5 bg-gold-500 ":"w-1.5 bg-slate-300 "}`},`pricing-standard-${a}`))}))]})]})})]})}var R=e.i(178583),D=e.i(209912),W=e.i(248256),H=e.i(581418),O=e.i(475254);let q=(0,O.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);var U=e.i(607486);let G=(0,O.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);var Z=e.i(217923),V=e.i(862468),V=V,Y=e.i(283086);let J={monitor:G,digital:G,chart:Z.BarChart3,dashboard:Z.BarChart3,rocket:D.Rocket,fast:D.Rocket,user:V.default,support:q,headset:q,headphones:q,shield:H.ShieldCheck,secure:H.ShieldCheck,compliant:H.ShieldCheck,document:R.FileText,file:R.FileText,license:R.FileText,globe:W.Globe,ownership:W.Globe,building:U.Building2,company:U.Building2},K=[{icon:"monitor",title:"Digital Process",desc:"Online setup with seamless workflow and instant processing"},{icon:"chart",title:"Incorporation Dashboard",desc:"Track progress and monitor all stages in one place"},{icon:"rocket",title:"Super Fast Service",desc:"Quick incorporation with efficie
1nt, streamlined delivery"},{icon:"user",title:"Expert Support",desc:"Dedicated help from our experienced business team"},{icon:"shield",title:"Secure & Confidential",desc:"Your data protected with industry-standard security"}];function X(e){return!(!e||"object"!=typeof e||Array.isArray(e))&&("show"in e||"title"in e||"title_highlight"in e||"description"in e||"feature_title"in e||"feature_description"in e||"features"in e)}function Q(e){if(!e||"object"!=typeof e)return null;if(Array.isArray(e)){let t=e[0];return t&&"object"==typeof t&&!Array.isArray(t)?t:null}if(null!=e.journey){if(Array.isArray(e.journey)){let t=e.journey[0];return t&&"object"==typeof t&&!Array.isArray(t)?t:null}if("object"==typeof e.journey)return X(e.journey)?e.journey:null}return X(e)?e:null}let ee="mt-1.5 text-[11px] font-semibold tracking-wide text-red-500",et=` 2 @keyframes fzSheen { 0%{transform:translateX(-60%) skewX(-12deg)} 100%{transform:translateX(320%) skewX(-12deg)} } 3 @keyframes fzArrow { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5px)} } 4 @keyframes fzFadeUp { 0%{opacity:0;transform:translateY(16px)} 100%{opacity:1;transform:translateY(0)} } 5 @keyframes fzFloatX { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,-6px)} } 6 .fz-arrow{animation:fzArrow 1.2s ease-in-out infinite;will-change:transform} 7 .fz-sheen{animation:fzSheen 9s linear infinite;will-change:transform} 8 .fz-fade{opacity:0;animation:fzFadeUp .7s cubic-bezier(.22,.61,.36,1) both} 9 .fz-float-x{animation:fzFloatX 4.5s ease-in-out infinite;will-change:transform} 10 @media (prefers-reduced-motion: reduce){.fz-sheen,.fz-arrow,.fz-fade,.fz-float-x{animation:none;opacity:1}} 11`,ea=` 12 /* Journey phone: flag + dial, then a short gap, then digits (match Email proximity). */ 13 .journey-phone-field .iti__flag-container, 14 .journey-phone-field .iti__country-container { 15 left: 0 !important; 16 padding: 0 0 0 14px !important; 17 min-width: 0 !important; 18 width: max-content !important; 19 } 20 .journey-phone-field .iti__selected-flag { 21 margin-left: 0 !important; 22 padding: 0 6px 0 0 !important; 23 border-right: 1px solid #d1d5db !important; 24 } 25 .journey-phone-field .iti__selected-country { 26 margin-left: 0 !important; 27 gap: 6px !important; 28 } 29 .journey-phone-field .iti__selected-country-primary { 30 gap: 4px !important; 31 padding: 0 !important; 32 margin: 0 !important; 33 } 34 .journey-phone-field .iti__selected-dial-code { 35 margin: 0 !important; 36 padding: 0 10px 0 0 !important; 37 font-size: 14.5px !important; 38 font-weight: 500 !important; 39 color: #071638 !important; 40 line-height: normal !important; 41 } 42 /* Scope to the tel field only â .iti input also matches the country search box. */ 43 .journey-phone-field .iti input.iti__tel-input, 44 .journey-phone-field .iti input[type="tel"] { 45 /* 14 + flag/arrow/+971 + ~10px gap â not 124px */ 46 padding-left: 100px !important; 47 font-size: 14.5px !important; 48 font-weight: 500 !important; 49 color: #071638 !important; 50 line-height: normal !important; 51 } 52 .journey-phone-field .iti input.iti__tel-input::placeholder, 53 .journey-phone-field .iti input[type="tel"]::placeholder { 54 font-size: 14.5px !important; 55 color: #a1a1aa !important; 56 opacity: 1 !important; 57 } 58 .journey-phone-field .iti__search-input { 59 padding: 6px 10px !important; 60 padding-left: 10px !important; 61 padding-right: 28px !important; 62 text-align: left !important; 63 direction: ltr !important; 64 } 65 @media (max-width: 768px) { 66 .journey-phone-field .iti__flag-container, 67 .journey-phone-field .iti__country-container { 68 padding-left: 10px !important; 69 min-width: 0 !important; 70 width: max-content !important; 71 } 72 .journey-phone-field .iti__selected-flag { 73 margin-left: 0 !important; 74 padding-right: 6px !important; 75 } 76 .journey-phone-field .iti__selected-country { 77 gap: 4px !important; 78 margin-left: 0 !important; 79 } 80 .journey-phone-field .iti__selected-dial-code { 81 padding-right: 8px !important; 82 font-size: 14px !important; 83 } 84 .journey-phone-field .iti input.iti__tel-input, 85 .journey-phone-field .iti input[type="tel"] { 86 padding-left: 96px !important; 87 font-size: 14px !important; 88 } 89 .journey-phone-field .iti input.iti__tel-input::placeholder, 90 .journey-phone-field .iti input[type="tel"]::placeholder { 91 font-size: 14px !important; 92 } 93 @media (max-height: 760px) { 94 .pmdc-small-mobile-scroll-root { 95 overflow-y: auto; 96 -webkit-overflow-scrolling: touch; 97 overscroll-behavior: contain; 98 padding-top: max(8px, env(safe-area-inset-top)); 99 } 100 .pmdc-small-mobile-scroll-body { 101 overflow-y: auto !important; 102 -webkit-overflow-scrolling: touch; 103 } 104 } 105 body[data-pmdc-helpcrunch-open="true"] [id*="helpcrunch"], 106 body[data-pmdc-helpcrunch-open="true"] [class*="helpcrunch"], 107 body[data-pmdc-helpcrunch-open="true"] iframe[src*="helpcrunch"] { 108 bottom: max(8px, env(safe-area-inset-bottom)) !important; 109 } 110 } 111`;var ei=e.i(174080),er=e.i(972520),V=V,en=e.i(263488);let es=(0,O.default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var el=e.i(643531),eo=e.i(523934),ed=e.i(678903);let ec=["United Arab Emirates","India","Pakistan","Bangladesh","Philippines","Egypt","United Kingdom","United States","Saudi Arabia","China"],ep=[...ec,...["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Ivory Coast","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Puerto Rico","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","S
111amoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"].filter(e=>!ec.includes(e))],eu={Afghanistan:"af",Albania:"al",Algeria:"dz",Andorra:"ad",Angola:"ao","Antigua and Barbuda":"ag",Argentina:"ar",Armenia:"am",Australia:"au",Austria:"at",Azerbaijan:"az",Bahamas:"bs",Bahrain:"bh",Bangladesh:"bd",Barbados:"bb",Belarus:"by",Belgium:"be",Belize:"bz",Benin:"bj",Bhutan:"bt",Bolivia:"bo","Bosnia and Herzegovina":"ba",Botswana:"bw",Brazil:"br",Brunei:"bn",Bulgaria:"bg","Burkina Faso":"bf",Burundi:"bi","Cabo Verde":"cv",Cambodia:"kh",Cameroon:"cm",Canada:"ca","Central African Republic":"cf",Chad:"td",Chile:"cl",China:"cn",Colombia:"co",Comoros:"km",Congo:"cg","Costa Rica":"cr",Croatia:"hr",Cuba:"cu",Cyprus:"cy","Czech Republic":"cz","Democratic Republic of the Congo":"cd",Denmark:"dk",Djibouti:"dj",Dominica:"dm","Dominican Republic":"do",Ecuador:"ec",Egypt:"eg","El Salvador":"sv","Equatorial Guinea":"gq",Eritrea:"er",Estonia:"ee",Eswatini:"sz",Ethiopia:"et",Fiji:"fj",Finland:"fi",France:"fr",Gabon:"ga",Gambia:"gm",Georgia:"ge",Germany:"de",Ghana:"gh",Greece:"gr",Grenada:"gd",Guatemala:"gt",Guinea:"gn","Guinea-Bissau":"gw",Guyana:"gy",Haiti:"ht",Honduras:"hn","Hong Kong":"hk",Hungary:"hu",Iceland:"is",India:"in",Indonesia:"id",Iran:"ir",Iraq:"iq",Ireland:"ie",Israel:"il",Italy:"it","Ivory Coast":"ci",Jamaica:"jm",Japan:"jp",Jordan:"jo",Kazakhstan:"kz",Kenya:"ke",Kiribati:"ki",Kosovo:"xk",Kuwait:"kw",Kyrgyzstan:"kg",Laos:"la",Latvia:"lv",Lebanon:"lb",Lesotho:"ls",Liberia:"lr",Libya:"ly",Liechtenstein:"li",Lithuania:"lt",Luxembourg:"lu",Macau:"mo",Madagascar:"mg",Malawi:"mw",Malaysia:"my",Maldives:"mv",Mali:"ml",Malta:"mt","Marshall Islands":"mh",Mauritania:"mr",Mauritius:"mu",Mexico:"mx",Micronesia:"fm",Moldova:"md",Monaco:"mc",Mongolia:"mn",Montenegro:"me",Morocco:"ma",Mozambique:"mz",Myanmar:"mm",Namibia:"na",Nauru:"nr",Nepal:"np",Netherlands:"nl","New Zealand":"nz",Nicaragua:"ni",Niger:"ne",Nigeria:"ng","North Korea":"kp","North Macedonia":"mk",Norway:"no",Oman:"om",Pakistan:"pk",Palau:"pw",Palestine:"ps",Panama:"pa","Papua New Guinea":"pg",Paraguay:"py",Peru:"pe",Philippines:"ph",Poland:"pl",Portugal:"pt","Puerto Rico":"pr",Qatar:"qa",Romania:"ro",Russia:"ru",Rwanda:"rw","Saint Kitts and Nevis":"kn","Saint Lucia":"lc","Saint Vincent and the Grenadines":"vc",Samoa:"ws","San Marino":"sm","Sao Tome and Principe":"st","Saudi Arabia":"sa",Senegal:"sn",Serbia:"rs",Seychelles:"sc","Sierra Leone":"sl",Singapore:"sg",Slovakia:"sk",Slovenia:"si","Solomon Islands":"sb",Somalia:"so","South Africa":"za","South Korea":"kr","South Sudan":"ss",Spain:"es","Sri Lanka":"lk",Sudan:"sd",Suriname:"sr",Sweden:"se",Switzerland:"ch",Syria:"sy",Taiwan:"tw",Tajikistan:"tj",Tanzania:"tz",Thailand:"th","Timor-Leste":"tl",Togo:"tg",Tonga:"to","Trinidad and Tobago":"tt",Tunisia:"tn",Turkey:"tr",Turkmenistan:"tm",Tuvalu:"tv",Uganda:"ug",Ukraine:"ua","United Arab Emirates":"ae","United Kingdom":"gb","United States":"us",Uruguay:"uy",Uzbekistan:"uz",Vanuatu:"vu","Vatican City":"va",Venezuela:"ve",Vietnam:"vn",Yemen:"ye",Zambia:"zm",Zimbabwe:"zw"};function em(e){let t=eu[e];return t?`https://flagcdn.com/w40/${t}.png`:null}var eh=e.i(32956),eg=e.i(274647);let ex=(0,a.forwardRef)(function({basePlaceholder:e,value:i,onChange:r,...n},s){let[l,o]=(0,a.useState)(""),[d,c]=(0,a.useState)(0),[p,u]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(i||p){if(l!==e){let t=setTimeout(()=>o(e),0);return()=>clearTimeout(t)}return}if(d>=e.length)return;let t=setTimeout(()=>{o(e.slice(0,d+1)),c(e=>e+1)},70);return()=>clearTimeout(t)},[e,i,p,d,l]),(0,t.jsx)("input",{ref:s,...n,value:i,onChange:r,placeholder:p||i?e:l,onFocus:e=>{u(!0),n.onFocus?.(e)},onBlur:e=>{u(!1),n.onBlur?.(e)},className:`${n.className??""} transition-all duration-300 ease-in-out`})});function ef({label:e,error:i,required:r,className:n,leadingIcon:s,...l}){let[o,d]=(0,a.useState)(!!l.autoFocus),c=o||!!l.value,p=`${e}${r?" *":""}`;return(0,t.jsxs)("div",{className:"group/field relative",children:[s&&(0,t.jsx)("span",{className:["pointer-events-none absolute left-3.5 to
111p-1/2 z-[1] -translate-y-1/2 transition-colors duration-200",o?"text-[#c8924b]":"text-zinc-400"].join(" "),"aria-hidden":"true",children:(0,t.jsx)(s,{className:"h-[18px] w-[18px]",strokeWidth:1.8})}),(0,t.jsx)("input",{...l,placeholder:c?" ":p,onFocus:e=>{d(!0),l.onFocus?.(e)},onBlur:e=>{d(!1),l.onBlur?.(e)},className:["peer min-h-11 w-full rounded-[10px] border bg-white/75 py-2 pr-4 text-[14.5px] leading-tight text-[#071638] outline-none transition-all duration-200",s?"pl-11":"pl-4",i?"border-red-400 shadow-[0_0_0_3px_rgba(239,68,68,0.10)] bg-red-50/30":"border-[#d9deea] hover:border-[#c8924b]/55 focus:border-[#c8924b] focus:bg-white focus:shadow-[0_0_0_4px_rgba(200,146,75,0.12)]",n??""].join(" ")}),(0,t.jsxs)("label",{className:["pointer-events-none absolute -top-2 left-3 select-none bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200",c?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"].join(" "),children:[e,r&&(0,t.jsx)("span",{className:"ml-0.5 text-[#D8A93C]",children:"*"})]})]})}function eb(e,t,a){if(a<=0||e<=0)return 0;let i=0,r=0;for(let n=0;n<a;n++){let s=t[n]??0;if(s<=0)break;let l=i+4*(r>0)+s;if(0==a-(n+1)){l<=e&&(r+=1);break}if(l+4+36<=e){i=l,r+=1;continue}break}return Math.max(1,Math.min(r||1,a))}function ey({items:e,renderChip:i,chipClassName:r="inline-flex max-w-[150px] shrink-0 items-center gap-1 truncate rounded-full bg-[#f6f0e6] px-2 py-0.5 text-[12px] font-medium leading-none text-[#8a6a35]",moreClassName:n="inline-flex shrink-0 items-center rounded-full bg-[#f6f0e6] px-1.5 py-0.5 text-[12px] font-semibold leading-none text-[#8a6a35]",className:s="relative flex min-w-0 flex-1 items-center gap-1 overflow-hidden"}){let l=(0,a.useRef)(null),o=(0,a.useRef)(null),[d,c]=(0,a.useState)(()=>Math.min(e.length,2)),p=(0,a.useCallback)(()=>{let t=l.current,a=o.current;if(!t||!a||0===e.length)return void c(e.length);let i=Math.max(0,t.clientWidth-8);if(i<=0)return;let r=Array.from(a.querySelectorAll("[data-journey-measure-chip]")).map(e=>e.getBoundingClientRect().width);0===r.length||r.every(e=>e<=0)?requestAnimationFrame(()=>{let t=Array.from(a.querySelectorAll("[data-journey-measure-chip]")).map(e=>e.getBoundingClientRect().width);t.some(e=>e>0)&&c(eb(i,t,e.length))}):c(eb(i,r,e.length))},[e]);if((0,a.useLayoutEffect)(()=>{p()},[p,e]),(0,a.useEffect)(()=>{let e=l.current;if(!e||"u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{requestAnimationFrame(p)});return t.observe(e),()=>t.disconnect()},[p]),(0,a.useEffect)(()=>{c(t=>Math.min(t,Math.max(e.length,0)))},[e.length]),0===e.length)return null;let u=Math.min(d,e.length),m=e.slice(0,u),h=e.length-u;return(0,t.jsxs)("span",{className:s,ref:l,children:[(0,t.jsxs)("span",{ref:o,"aria-hidden":"true",className:"pointer-events-none absolute left-[-10000px] top-0 flex items-center gap-1 whitespace-nowrap",children:[e.map(e=>(0,t.jsx)("span",{className:r,"data-journey-measure-chip":!0,children:i(e)},`m-${e}`)),(0,t.jsx)("span",{className:n,"data-journey-measure-more":!0,children:"+99"})]}),m.map(e=>(0,t.jsx)("span",{className:r,children:i(e)},e)),h>0&&(0,t.jsxs)("span",{className:n,children:["+",h]})]})}let ev=(0,O.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);var ew=e.i(555436),ej=e.i(37727);let eN=["Consulting & professional services","Trading & general trading","E-commerce","Information technology & software","Marketing & advertising","Real estate services","Logistics & freight","Manufacturing & industrial","Education & training","Healthcare services","Media & production","Financial services","Hospitality & tourism","Construction & contracting","Import & export","Food & beverage"];function e_({value:e,onChange:i,error:r,required:n=!0}){let s=e??[],l=(0,a.useRef)(null),o=(0,a.useRef)(null),c=(0,a.useRef)(null),[p,u]=(0,a.useState)(!1),[m,h]=(0,a.useState)(""),[g,x]=(0,a.useState)(null),f=p||s.length>0,b=(0,a.useMemo)(()=>{let e=m.trim().toLowerCase();return e?eN.filter(t=>t.toLowerCase().includes(e)):eN},[m]);(0,a.useEffect)(()=>
111{if(!p)return void x(null);let e=()=>{let e=l.current;if(!e)return;let t=e.getBoundingClientRect();x({top:t.bottom+6,left:t.left,width:t.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[p]),(0,a.useEffect)(()=>{if(!p)return;let e=e=>{let t=e.target;l.current?.contains(t)||o.current?.contains(t)||(u(!1),h(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[p]);let y=e=>{i(s.includes(e)?s.filter(t=>t!==e):[...s,e])};return(0,t.jsxs)("div",{className:"relative",ref:l,children:[(0,t.jsxs)("label",{className:["pointer-events-none absolute -top-2 left-3 z-[1] bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200",f?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"].join(" "),children:["Business activity",n?(0,t.jsx)("span",{className:"ml-0.5 text-[#D8A93C]",children:"*"}):null]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{u(e=>!e),h("")},"aria-expanded":p,"aria-haspopup":"listbox","aria-invalid":!!r,className:["relative flex min-h-11 w-full appearance-none cursor-pointer items-center gap-1.5 rounded-[10px] border border-solid bg-white/75 py-2 pl-11 pr-9 text-left text-[14.5px] leading-tight text-[#071638] shadow-none outline-none transition-all duration-200",r?"border-red-400 bg-red-50/30 shadow-[0_0_0_3px_rgba(239,68,68,0.10)]":p?"border-[#c8924b] bg-white shadow-[0_0_0_4px_rgba(200,146,75,0.12)]":"border-[#d9deea] hover:border-[#c8924b]/55"].join(" "),children:[(0,t.jsx)("span",{className:["pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 transition-colors duration-200",p?"text-[#c8924b]":"text-zinc-400"].join(" "),"aria-hidden":"true",children:(0,t.jsx)(ev,{className:"h-[18px] w-[18px]",strokeWidth:1.8})}),0===s.length?(0,t.jsx)("span",{className:"text-zinc-400",children:"Select one or more activities"}):(0,t.jsx)("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 overflow-hidden",children:s.map(e=>(0,t.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1 rounded-md border border-[#ece6db] bg-[#faf5ec] px-2 py-0.5 text-[12px] font-medium text-[#071638]",children:[(0,t.jsx)("span",{className:"truncate",children:e}),(0,t.jsx)("span",{role:"button",tabIndex:0,"aria-label":`Remove ${e}`,onClick:t=>{t.stopPropagation(),y(e)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),t.stopPropagation(),y(e))},className:"text-zinc-400 hover:text-[#071638]",children:(0,t.jsx)(ej.X,{className:"h-3 w-3"})})]},e))}),(0,t.jsx)(d.ChevronDown,{className:`absolute right-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400 transition-transform duration-200 ${p?"rotate-180":""}`})]}),r?(0,t.jsx)("p",{className:"mt-1.5 text-[11px] font-semibold text-red-500",children:r}):null,p&&g&&"u">typeof document?(0,ei.createPortal)((0,t.jsxs)("div",{ref:o,"data-lenis-prevent":!0,className:"fixed z-[10050] flex max-h-[min(320px,70vh)] flex-col overflow-hidden rounded-[12px] border border-[#e5e7eb] bg-white shadow-[0_18px_40px_rgba(15,23,42,0.14)]",style:{top:g.top,left:g.left,width:g.width},onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"shrink-0 border-b border-[#eef0f4] p-2",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(ew.Search,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-zinc-400","aria-hidden":"true"}),(0,t.jsx)("input",{type:"search",value:m,autoFocus:!0,placeholder:"Search activity...","aria-label":"Search activity",onChange:e=>h(e.target.value),className:"w-full rounded-[8px] border border-[#e5e7eb] py-1.5 pl-8 pr-3 text-[13.5px] text-[#071638] outline-none placeholder:text-zinc-400 focus:border-[#c8924b]"})]})}),(0,t.jsx)("div",{ref:c,"data-lenis-prevent":!0,className:"grid min-h-0 grid-cols-2 gap-x-1 overflow-y-scroll overscroll-contain py-1 [scrollbar-gutter:stable]",style:{maxHeight:228},onWheel:e=>{let t=c.current;t&&(t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation())},children:0===b.length?(0,t.jsx)("p",{className:"col-span-2 flex min-h-[96px] items-center justify-center px-3 py-4 text-center text-[13px] text-zinc-400",children:"No results found"}):b.map(e=>{let a=s.includes(e);return(0,t.jsxs)("button",{type:"button",onClick:()=>y(e),className:`flex w-full items-center gap-2.5 px-3 py-2 text-left text-[13.5px] transition-colors ${a?"bg-[#faf5ec]":"hover:bg-zinc-50"}`,children:[(0,t.jsx)("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border ${a?"border-[#c8924b] bg-[#c8924b]":"border-zinc-300"}`,children:a?(0,t.jsx)(el.Check,{className:"h-3 w-3 text-white",strokeWidth:3}):null}),(0,t.jsx)("span",{className:"min-w-0 leading-snug text-[#071638]",children:e})]},e)})})]}),document.body):null]})}let ek="journey:tax-select-open";function eS({id:e,label:i,value:r,options:n,error:s,icon:l,onChange:o,disabled:c=!1,loading:p=!1,searchable:u=!1,searchPlaceholder:m="Search",noResultsText:h="No matching options foun
111d",loadingText:g="Loading optionsâ¦",variant:x="desktop"}){let[f,b]=(0,a.useState)(!1),[y,v]=(0,a.useState)(""),[w,j]=(0,a.useState)(!1),[N,_]=(0,a.useState)(null),k=(0,a.useRef)(null),S=(0,a.useRef)(null),C=(0,a.useRef)(null),A="desktop"===x,z=(0,a.useMemo)(()=>{let e=y.trim().toLowerCase();return u&&e?n.filter(t=>t.toLowerCase().includes(e)):n},[n,y,u]);(0,a.useEffect)(()=>{j(!0)},[]),(0,a.useEffect)(()=>{f&&window.dispatchEvent(new CustomEvent(ek,{detail:{id:e}}))},[f,e]),(0,a.useEffect)(()=>{let t=t=>{let a=t.detail;a?.id!==e&&b(!1)};return window.addEventListener(ek,t),()=>window.removeEventListener(ek,t)},[e]),(0,a.useLayoutEffect)(()=>{if(!f)return void _(null);let e=()=>{let e=k.current;if(!e)return;let t=e.getBoundingClientRect();_({top:t.bottom+6,left:t.left,width:t.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[f]),(0,a.useEffect)(()=>{if(!f)return;let e=e=>{let t=e.target;k.current?.contains(t)||S.current?.contains(t)||b(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f]),(0,a.useEffect)(()=>{(c||p)&&b(!1)},[c,p]),(0,a.useEffect)(()=>{if(!f)return void v("");if(!u)return;let e=window.setTimeout(()=>C.current?.focus(),50);return()=>window.clearTimeout(e)},[f,u]);let E=A?["relative flex min-h-11 w-full items-center rounded-[10px] border bg-white transition-all duration-200",c||p?"cursor-not-allowed border-[#e5e7eb] bg-zinc-50 opacity-70":f?"border-[#c8924b] bg-white shadow-[0_0_0_4px_rgba(200,146,75,0.12)]":s?"border-red-400 bg-red-50/30 shadow-[0_0_0_3px_rgba(239,68,68,0.10)]":"border-[#d9deea] hover:border-[#c8924b]/55"].join(" "):["relative flex w-full items-center rounded-lg border-2 bg-white transition-all",c||p?"cursor-not-allowed border-gray-200 bg-zinc-50 opacity-70":f?"border-[#c8924b] ring-4 ring-[#c8924b]/10":s?"border-red-400":"border-gray-200 hover:border-gray-300 focus-within:border-[#c8924b] focus-within:ring-4 focus-within:ring-[#c8924b]/10"].join(" "),L=r?A?"font-normal text-[#071638]":"font-light text-[#12023B]":A?"font-normal text-zinc-400":"font-light text-gray-500",T=p?g:r||`${i} *`,I=f&&!c&&!p&&w&&N?(0,ei.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0",style:{zIndex:100009},"aria-hidden":"true",onMouseDown:()=>b(!1)}),(0,t.jsxs)("div",{ref:S,role:"listbox","aria-label":i,className:"fixed isolate overflow-hidden rounded-xl border border-[#e5e7eb] bg-white shadow-[0_18px_40px_rgba(15,23,42,0.14)]",style:{top:N.top,left
111:N.left,width:N.width,zIndex:100010},children:[u&&(0,t.jsx)("div",{className:"border-b border-[#eef0f4] bg-white p-2",children:(0,t.jsx)("input",{ref:C,value:y,onChange:e=>v(e.target.value),placeholder:m,autoComplete:"off",className:"w-full rounded-[8px] border border-[#e5e7eb] bg-white px-3 py-1.5 text-[13.5px] outline-none focus:border-[#c8924b]"})}),(0,t.jsx)("div",{"data-lenis-prevent":!0,className:"overflow-y-auto overscroll-contain bg-white py-1 [scrollbar-color:#ded8cf_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[#DED8CF] [&::-webkit-scrollbar-track]:bg-transparent",style:{maxHeight:160},onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:z.length>0?z.map(e=>{let a=e===r;return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":a,onClick:()=>{o(e),b(!1)},className:["flex min-h-[40px] w-full cursor-pointer items-center justify-between gap-3 bg-white px-3 py-2.5 text-left transition-colors",A?"text-[14px]":"text-[15px]",a?"bg-[#faf5ec] font-medium text-[#071638]":"font-normal text-[#334155] hover:bg-slate-50"].join(" "),children:[(0,t.jsx)("span",{className:"truncate",children:e}),a&&(0,t.jsx)(el.Check,{className:"h-4 w-4 shrink-0 text-[#c8924b]",strokeWidth:2.5,"aria-hidden":"true"})]},e)}):(0,t.jsx)("div",{className:"bg-white px-3 py-4 text-center text-sm text-zinc-400",children:h})})]})]}),document.body):null;return(0,t.jsxs)("div",{className:f?"relative z-[100]":"relative",ref:k,children:[(0,t.jsxs)("label",{htmlFor:e,className:["pointer-events-none absolute -top-2 left-3 z-[1] bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200",r||f?A?"translate-y-0 text-[#c8924b] opacity-100":"-top-2 text-xs font-medium text-[#c8924b] opacity-100":A?"translate-y-2 text-zinc-500 opacity-0":"opacity-0"].join(" "),children:[i," ",(0,t.jsx)("span",{className:A?"text-[#D8A93C]":"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:E,children:[(0,t.jsx)(l,{className:["pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-zinc-400 h-[18px] w-[18px]",f&&!c&&!p?"text-[#c8924b]":""].join(" "),strokeWidth:1.8}),(0,t.jsxs)("button",{id:e,type:"button",disabled:c||p,"aria-haspopup":"listbox","aria-expanded":f,"aria-invalid":!!s,onClick:()=>{c||p||b(e=>!e)},className:["flex min-w-0 flex-1 items-center justify-between text-left outline-none",A?"h-11 rounded-[10px] bg-transparent pl-11 pr-9 text-[14.5px]":"w-full rounded-lg bg-transparent py-3 pl-10 pr-10 text-base",c||p?"cursor-not-allowed":"cursor-pointer"].join(" "),children:[(0,t.jsx)("span",{className:`block truncate ${L}`,children:T}),(0,t.jsx)(d.ChevronDown,{className:["pointer-events-none absolute right-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400 transition-transform duration-200",f&&!c&&!p?"rotate-180 text-[#c8924b]":""].join(" ")})]})]}),I,s&&(0,t.jsx)("p",{className:A?ee:"mt-1 text-[11px] text-red-600",children:s})]})}function eC({formRef:e,handleSubmit:a,formTitleContent:i,formData:r,setFormData:n,errors:s,setErrors:l,shouldHideEmailField:o,isPhoneFocused:c,setIsPhoneFocused:p,phoneData:u,setPhoneData:m,phonePrefillKey:h,geoCountry:g,nationalityWrapRef:x,nationalityOpen:f,setNationalityOpen:b,nationalitySearch:y,setNationalitySearch:v,nationalityPortalReady:w,nationalityPanelBox:j,nationalityPanelRef:N,pmdcIsOpen:_,filteredNationalities:k,toggleNationality:S,isPmaxCampaign:C,isTaxPage:A,hideBusinessNameField:z,taxEmirateOptions:E,taxFreezoneOptions:L,taxLocationOptionsLoading:T,showSpamFilter:I,spamQuery:M,setSpamQuery:B,spamFilterFailed:$,submitNotice:F,isSubmitting:P}){return(0,t.jsx)("div",{id:"journey-desktop-form-card","data-journey-desktop-form":!0,className:"fz-fade order-2 hidden w-full max-w-[560px] justify-self-end sm:block md:col-start-2 md:order-2 md:ml-auto",style:{animationDelay:"260ms"},children:(0,t.jsx)("div",{className:"relative rounded-[28px] border border-white/70 bg-white/90 px-6 pb-[34px] pt-[34px] text-[#071638] shadow-[0_28px_70px_rgba(21,34,68,0.10)] backdrop-blur-[18px] sm:px-[45px]",children:(0,t.jsxs)("form",{ref:e,onSubmit:a,noValidate:!0,children:[(0,t.jsxs)("h2",{className:"text-[27px] font-bold tracking-tight text-[#071638]",children:[i.before,(0,t.jsx)("span",{className:"text-[#c8924b]",children:i.highlight})]}),(0,t.jsx)("p",{className:"mt-1.5 text-[14px] text-[#7b8499]",children:"Tell us about your plans and get an instant quote"}),(0,t.jsxs)("div",{className:"mt-5 grid gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(ef,{id:"journey_form_name",name:"name",label:"Name",leadingIcon:V.default,required:!0,autoFocus:!0,autoComplete:"off",autoCapitalize:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:100,value:r.name,onChange:e=>{let t=e.target.value.replace(/^\s+/,"");
111n(e=>({...e,name:t})),s.name&&l(e=>{let t={...e};return delete t.name,t})},"aria-invalid":!!s.name,error:!!s.name}),s.name&&(0,t.jsx)("p",{className:ee,children:s.name})]}),o?(0,t.jsx)("input",{type:"hidden",name:"email",value:r.email}):(0,t.jsxs)("div",{children:[(0,t.jsx)(ef,{id:"journey_form_email",type:"email",name:"email",label:"Email",leadingIcon:en.Mail,required:!0,autoComplete:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:150,value:r.email,onChange:e=>{n(t=>({...t,email:e.target.value.replace(/\s/g,"")})),s.email&&l(e=>{let t={...e};return delete t.email,t})},onKeyDown:e=>{" "===e.key&&e.preventDefault()},"aria-invalid":!!s.email,error:!!s.email}),s.email&&(0,t.jsx)("p",{className:ee,children:s.email})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("label",{className:["pointer-events-none absolute -top-2 left-3 z-[1] bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200",c||u.nationalNumber?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"].join(" "),children:["Phone Number ",(0,t.jsx)("span",{className:"text-[#D8A93C]",children:"*"})]}),(0,t.jsx)("div",{className:`journey-phone-field relative rounded-[10px] border bg-white/75 transition-all duration-200 hover:border-[#c8924b]/55 focus-within:border-[#c8924b] focus-within:bg-white focus-within:shadow-[0_0_0_4px_rgba(200,146,75,0.12)] ${s.phone?"border-red-400 shadow-[0_0_0_3px_rgba(239,68,68,0.10)]":"border-[#d9deea]"}`,children:(0,t.jsx)(ed.default,{name:"phone",defaultCountry:g,value:u.nationalNumber,countryCode:u.countryCode,placeholder:c||u.nationalNumber?"":"Phone Number *",variant:"bare",onFocus:()=>p(!0),onBlur:()=>p(!1),onChange:e=>{m(e),s.phone&&l(e=>{let t={...e};return delete t.phone,t})},className:"h-11 text-[14.5px] font-medium text-[#071638] placeholder:text-zinc-400"},h)}),s.phone&&(0,t.jsx)("p",{className:ee,children:s.phone})]}),A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS,{id:"journey_tax_support_timeline",label:"When do you need support?",value:r.supportTimeline,options:eh.TAX_SUPPORT_TIMELINE_OPTIONS,error:s.supportTimeline,icon:eo.Clock3,onChange:e=>{n(t=>({...t,supportTimeline:e})),s.supportTimeline&&l(e=>{let t={...e};return delete t.supportTimeline,t})}}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 [&>*]:min-w-0",children:[(0,t.jsx)(eS,{id:"journey_tax_emirate",label:"Select emirate",value:r.emirate,options:E,error:s.emirate,icon:U.Building2,loading:T,searchable:!0,searchPlaceholder:"Search emirate",noResultsText:"No matching emirate found",onChange:e=>{n(t=>({...t,emirate:e,freezone:""})),s.emirate&&l(e=>{let t={...e};return delete t.emirate,t}),s.freezone&&l(e=>{let t={...e};return delete t.freezone,t})}}),(0,t.jsx)(eS,{id:"journey_tax_freezone",label:r.emirate?"Select free zone":"Select emirate first",value:r.freezone,options:L,error:s.freezone,icon:U.Building2,disabled:!r.emirate,loading:T,searchable:!0,searchPlaceholder:"Search free zone",noResultsText:"No matching free zone found",onChange:e=>{n(t=>({...t,freezone:e})),s.freezone&&l(e=>{let t={...e};return delete t.freezone,t})}})]})]}):(0,t.jsxs)("div",{className:"relative",ref:x,children:[(0,t.jsxs)("label",{className:["pointer-events-none absolute -top-2 left-3 z-[1] bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200",f||r.nationality.length>0?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"].join(" "),children:["Nationality ",(0,t.jsx)("span",{className:"text-[#D8A93C]",children:"*"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>b(e=>!e),"aria-invalid":!!s.nationality,className:["relative flex min-h-11 w-full cursor-pointer items-center gap-1.5 rounded-[10px] border bg-white/75 py-2 pl-11 pr-9 text-left text-[14.5px] leading-tight text-[#071638] outline-none transition-all duration-200",s.nationality?"border-red-400 shadow-[0_0_0_3px_rgba(239,68,68,0.10)] bg-red-50/30":f?"border-[#c8924b] bg-white shadow-[0_0_0_4px_rgba(200,146,75,0.12)]":"border-[#d9deea] hover:border-[#c8924b]/55"].join(" "),children:[(0,t.jsx)("span",{className:["pointer-events-none absolute left-3.5 to
111p-1/2 -translate-y-1/2 transition-colors duration-200",f?"text-[#c8924b]":"text-zinc-400"].join(" "),"aria-hidden":"true",children:(0,t.jsx)(W.Globe,{className:"h-[18px] w-[18px]",strokeWidth:1.8})}),0===r.nationality.length?(0,t.jsx)("span",{className:"text-zinc-400",children:"Nationality *"}):(0,t.jsx)(ey,{items:r.nationality,renderChip:e=>{let a=em(e);return(0,t.jsxs)(t.Fragment,{children:[a&&(0,t.jsx)("img",{src:a,alt:"",width:14,height:10,className:"shrink-0 rounded-[2px]"}),(0,t.jsx)("span",{className:"truncate",children:e})]})}}),(0,t.jsx)(d.ChevronDown,{className:`absolute right-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400 transition-transform duration-200 ${f?"rotate-180":""}`})]}),f&&!_&&w&&j&&(0,ei.createPortal)((0,t.jsxs)("div",{ref:N,className:"fixed z-[10050] overflow-hidden rounded-[12px] border border-[#e5e7eb] bg-white shadow-[0_18px_40px_rgba(15,23,42,0.14)]",style:{top:j.top,left:j.left,width:j.width},children:[(0,t.jsx)("div",{className:"border-b border-[#eef0f4] p-2",children:(0,t.jsx)("input",{type:"text",value:y,onChange:e=>v(e.target.value),placeholder:"Search nationalityâ¦",autoFocus:!0,className:"w-full rounded-[8px] border border-[#e5e7eb] px-3 py-1.5 text-[13.5px] outline-none focus:border-[#c8924b]"})}),(0,t.jsx)("div",{className:"max-h-[132px] overflow-y-scroll py-1","data-lenis-prevent":!0,onWheel:e=>{let t=e.currentTarget;t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation()},children:0===k.length?(0,t.jsx)("div",{className:"flex min-h-[96px] items-center justify-center px-3 py-4 text-center text-[13px] text-zinc-400",children:"No Results found"}):k.map(e=>{let a=r.nationality.includes(e),i=em(e);return(0,t.jsxs)("button",{type:"button",onClick:()=>S(e),className:`flex w-full cursor-pointer items-center gap-2.5 px-3 py-2 text-left text-[13.5px] transition-colors ${a?"bg-[#faf5ec]":"hover:bg-zinc-50"}`,children:[(0,t.jsx)("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border ${a?"border-[#c8924b] bg-[#c8924b]":"border-zinc-300"}`,children:a&&(0,t.jsx)(el.Check,{className:"h-3 w-3 text-white",strokeWidth:3})}),i&&(0,t.jsx)("img",{src:i,alt:"",width:18,height:12,className:"rounded-[2px]"}),(0,t.jsx)("span",{className:"text-[#071638]",children:e})]},e)})})]}),document.body),s.nationality&&(0,t.jsx)("p",{className:ee,children:s.nationality})]}),!z&&(0,t.jsx)("div",{children:A?(0,t.jsx)(e_,{value:r.activities??[],error:s.businessName,onChange:e=>{n(t=>({...t,activities:e,businessName:e.join(", ")})),s.businessName&&l(e=>{let t={...e};return delete t.businessName,t})}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ef,{id:"journey_form_business_name",name:"businessName",label:C?"Proposed Business Name":"Proposed Business Name (Optional)",required:C,leadingIcon:es,autoComplete:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:150,value:r.businessName,onChange:e=>{n(t=>({...t,businessName:(0,eg.sanitizeBusinessNameInput)(e.target.value)})),s.businessName&&l(e=>{let t={...e};return delete t.businessName,t})},"aria-invalid":!!s.businessName,error:!!s.businessName}),s.businessName&&(0,t.jsx)("p",{className:ee,children:s.businessName})]})}),I&&(0,t.jsxs)("div",{children:[(0,t.jsx)(ef,{id:"journey_spam_query",name:"spamQuery",label:"How can we help you?",required:!0,maxLength:500,value:M,onChange:e=>{!$&&(B(e.target.value),s.spamQuery&&l(e=>{let t={...e};return delete t.spamQuery,t}))},"aria-invalid":!!s.spamQuery,error:!!s.spamQuery}),s.spamQuery&&(0,t.jsx)("p",{className:ee,children:s.spamQuery})]})]}),F&&(0,t.jsx)("div",{className:"mt-4 rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-center text-[11px] text-emerald-700 shadow-sm",children:F}),(0,t.jsx)("button",{type:"submit",disabled:P||$||!!F,className:"mt-6 flex h-11 w-full cursor-pointer items-center justify-center gap-4.5 rounded-[9px] border border-[#C8924B] bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] px-5 text-[16px] font-bold tracking-wide text-white shadow-[0_14px_30px_rgba(200,146,75,0.24)] transition-all duration-200 hover:-translate-y-0.5 hover:border-[#BD873E] hover:brightness-105 disabled:opacity-60 disabled:cursor-not-allowed disabled:hover:translate-y-0",children:P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"h-4 w-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):(0,t.jsxs)(t.Fragment,{children:["Get a Quote ",(0,t.jsx)(er.ArrowRight,{className:"h-4 w-4 fz-arrow"})]})}),(0,t.jsx)("p",{className:"mt-[17px] text-center text-[12px] text-[#8a92a4]",children:"Share your details and we'll send you a personalized quote."})]})})})}var eA=e.i(657688);function ez({isGlobalCategoryPage:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{children:et}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(110deg,#fffaf5_0%,#fff_48%,#f5f8ff_100%)]"}),!e&&(0,t.jsx)("div",{className:"fz-skyline-img pointer-events-none absolute inset-x-0 -bottom-24 h-[68%] overflow-hidden",style:{opacity:.55,WebkitMaskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)",maskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)"},"aria-hidden":"true",children:(0,t.jsx)(eA.default,{src:"/images/dubai-skyline.png",alt:"",width:1024,height:682,sizes:"100vw",priority:!0,fetchPriority:"high",className:"absolute inset-x-0 bottom-0 h-auto w-full"})}),e&&(0,t.jsx)("div",{className:"fz-skyline-img pointer-events-none absolute inset-x-0 -bottom-24 h-[68%] overflow-hidden",style:{opacity:.55,WebkitMaskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)",maskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)"},"aria-hidden":"true",children:(0,t.jsx)(eA.default,{src:"/images/global-map.png",alt:"",width:1916,height:821,sizes:"100vw",priority:!0,fetchPriority:"high",className:"absolute inset-x-0 bottom-0 h-auto w-full"})}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,rgba(255,255,255,0.5)_0%,rgba(255,255,255,0.1)_40%,rgba(255,255,255,0)_72%)]"}),(0,t.jsx)("div",{className:"fz-sheen pointer-events-none absolute inset-y-0 -left-1/3 w-1/4 bg-[linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)]"})]})}function eE({isGlobalCategoryPage:e,HeroTag:a,heroTitleFontSize:i,featureTitleContent:r,featureSectionDescription:n,features:s}){return(0,t.jsxs)("div",{className:"order-1 flex flex-col lg:order-1",children:[(0,t.jsx)("div",{className:"fz-fade mb-[35px] inline-flex w-fit items-center gap-2 rounded-full border border-[#efe7dc] bg-white/75 px-[13px] py-2 text-[11px] font-bold uppercase tracking-[0.1em] text-[#b7833f] shadow-sm",style:{animationDelay:"60ms"},children:e?"Expand Your Business Globally":"Setup your business in UAE"}),(0,t.jsx)(a,{className:"fz-fade max-w-[720px] font-extrabold! leading-[1.15]! tracking-[-0.045em] text-[#071638] text-balance",style:{margin:0,animationDelay:"140ms",fontFamily:"'Inter', system-ui, sans-serif",textShadow:"none",fontSize:i},children:r}),n&&(0,t.jsx)("p",{className:"fz-fade mt-[25px] max-w-[540px] text-[15px] leading-[1.55] text-[#23314d]",style:{animationDelay:"220ms"},children:n}),(0,t.jsx)("ul",{className:"mt-[35px] grid max-w-[640px] grid-cols-1 gap-x-12 gap-y-3.5 sm:grid-cols-2",role:"list","aria-label":"Key features",children:s.map((e,a)=>{let i=function(e){let t=(e.icon||"").toLowerCase().trim();if(t&&J[t])return J[t];let a=`${e.icon} ${e.title}`.toLowerCase();for(let[e,t]of Object.entries(J))if(a.includes(e))return t;return Y.Sparkles}(e);return(0,t.jsxs)("li",{className:"fz-fade group relative flex items-center gap-[15px] text-[#071638]",style:{animationDelay:`${300+80*a}ms`},children:[(0,t.jsx)("span",{className:"grid h-10 w-10 shrink-0 place-items-center rounded-[13px] bg-white/80 text-[#c58e43] shadow-[0_10px_28px_rgba(31,45,78,0.08)] transition-all duration-300 ease-out group-hover:-translate-y-0.5 group-hover:text-[#101A3A] group-hover:shadow-[0_14px_32px_rgba(31,45,78,0.14)]",children:(0,t.jsx)(i,{className:"h-4.25 w-4.25",strokeWidth:1.9})}),(0,t.jsxs)("span",{className:"flex-1 min-w-0 transition duration-300 group-hover:translate-x-0.5",children:[(0,t.jsx)("span",{className:"block text-[13px] font-bold leading-snug",children:e.title}),e.desc&&(0,t.jsx)("span",{className:"mt-[5px] block text-[12px] leading-[1.5] text-[#65708a]",children:e.desc})]})]},a)})})]})}function eL(){return(0,t.jsx)("div",{className:"relative z-10 mx-auto hidden max-w-[1000px] px-4 pb-6 sm:block",children:(0,t.jsx)("div",{className:"fz-fade grid grid-cols-3 rounded-[22px] border border-white/70 bg-white/90 px-[26px] py-[17px] shadow-[0_22px_60px_-38px_rgba(15,23,42,0.4)] backdrop-blur-[18px]",style:{animationDelay:"420ms"},children:[["100% Secure Process","Your data is protected"],["Govt. approved agent","Licensed Service Provider"],["Team based in Dubai","On-Ground Support"]].map(([e,a],i)=>(0,t.jsxs)("div",{className:`flex items-center gap-4 px-7 ${i>0?"border-l border-[#e0e4ec]":""}`,children:[(0,t.jsx)("span",{className:"shrink-0 text-[#071638]",children:(0,t.jsxs)("svg",{className:"h-[26px] w-[26px]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:0===i?"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z":1===i?"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z":"M12 2 22 12 12 22 2 12 12 2Z"}),1===i&&(0,t.jsx)("path",{d:"M14 2v6h6M8 13h8M8 17h5"})]})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block text-[13px] font-bold leading-tight text-[#071638]",children:e}),(0,t.jsx)("span",{className:"mt-1 block text-[12px] leading-tight text-[#6e7890]",children:a})]})]},e))})})}function eT({pmdcPortalReady:e,firstCatalog:a,pmdcIsOpen:i,setPmdcIsOpen:r,pmdcHasHelpCrunch:n,handlePmdcHeaderTouchStart:s,handlePmdcHeaderTouchEnd:l,formTitleContent:o,handleSubmit:c,formData:p,setFormData:u,errors:m,setErrors:h,pmdcNameInputRef:g,isNameFocused:x,setIsNameFocused:f,shouldHideEmailField:b,isEmailFocused:y,setIsEmailFocused:v,phoneData:w,setPhoneData:j,phonePrefillKey:N,geoCountry:_,isPhoneFocused:k,setIsPhoneFocused:S,nationalityWrapRef:C,nationalityPanelRef:A,nationalityOpen:z,setNationalityOpen:E,nationalitySearch:L,setNationalitySearch:T,filteredNationalities:I,toggleNationality:M,isBusinessNameFocused:B,setIsBusinessNameFocused:$,isPmaxCampaign:F,isTaxPage:P,hideBusinessNameField:R,taxEmirateOptions:D,taxFreezoneOptions:H,taxLocationOptionsLoading:O,showSpamFilter:q,spamQuery:G,setSpamQuery:Z,spamFilterFailed:V,isSpamFocused:Y,setIsSpamFocused:J,submitNotice:K,isSubmitting:X}){return e&&a&&i?(0,ei.createPortal)((0,t.jsx)("div",{className:"box-border sm:hidden fixed inset-0 z-[10050] flex flex-col overscroll-none bg-zinc-950 pmdc-drawer-root pmdc-small-mobile-scroll-root",style:{boxSizing:"border-box",height:"100dvh",maxHeight:"100dvh",minHeight:"100dvh",paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:"env(safe-area-inset-bottom, 0px)"},role:"dialog","aria-modal":"true","aria-label":"Get Started form",children:(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-none pmdc-drawer-sheet pmdc-small-mobile-scroll-sheet ${n?"pmdc-helpcrunch-aware-sheet":""}
111`,style:{boxShadow:"0 -8px 40px rgba(7,22,56,0.14), 0 -2px 0 rgba(200,146,75,0.3)"},children:[(0,t.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-t-3xl px-4 pb-3 pt-2 touch-pan-y",style:{background:"linear-gradient(100deg, #BD873E 0%, #C8924B 55%, #D3A35F 100%)"},onTouchStart:s,onTouchEnd:l,children:[(0,t.jsx)("button",{type:"button",className:"mb-2 flex w-full cursor-pointer justify-center rounded-md py-0.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/40","aria-label":"Close form",onClick:()=>r(!1),children:(0,t.jsx)("span",{className:"block h-1 w-8 rounded-full bg-white/40"})}),(0,t.jsxs)("div",{className:"relative flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsxs)("span",{className:"truncate text-sm font-semibold leading-tight text-white",children:[o.before,o.highlight]}),(0,t.jsx)("span",{className:"truncate text-[11px] leading-tight text-white/80",children:"Tell us about your plans and get an instant quote"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>r(!1),className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-white/20 transition-colors focus:outline-none hover:bg-white/30 active:scale-95","aria-label":"Close",children:(0,t.jsx)("svg",{className:"h-4 w-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,t.jsx)("div",{className:`flex-1 min-h-0 overflow-y-auto overscroll-y-contain px-5 pt-4 pmdc-small-mobile-scroll-body ${n?"pb-24":"pb-5"} `,style:{background:"linear-gradient(160deg, #fffaf5 0%, #ffffff 50%, #f5f8ff 100%)"},children:(0,t.jsxs)("form",{onSubmit:c,noValidate:!0,className:"space-y-5",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(ex,{ref:g,id:"pmdc_name",type:"text",name:"name",basePlaceholder:"Name",value:p.name,onChange:e=>{let t=e.target.value.replace(/^\s+/,"");u(e=>({...e,name:t})),m.name&&h(e=>{let t={...e};return delete t.name,t})},onFocus:()=>f(!0),onBlur:()=>f(!1),autoComplete:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:100,"aria-invalid":!!m.name,className:`w-full px-3.5 py-3 text-base font-light text-[#12023B] border-2 rounded-lg bg-white transition-all outline-none hover:border-gray-300 focus:ring-4 focus:ring-[#c8924b]/10 ${m.name?"border-red-400 focus:border-red-400":"border-gray-200 focus:border-[#c8924b]"}`}),(0,t.jsxs)("label",{htmlFor:"pmdc_name",className:`absolute left-3.5 transition-all duration-200 bg-white px-1 pointer-events-none ${p.name||x?"-top-2 text-xs font-medium text-[#c8924b] opacity-100":"top-3 text-[0.9375rem] font-normal text-gray-500 opacity-0"}`,children:["Name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),m.name&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.name})]}),b?(0,t.jsx)("input",{type:"hidden",name:"email",value:p.email}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"pmdc_email",type:"email",name:"email",value:p.email,onChange:e=>{u(t=>({...t,email:e.target.value.replace(/\s/g,"")})),m.email&&h(e=>{let t={...e};return delete t.email,t})},onKeyDown:e=>{" "===e.key&&e.preventDefault()},onFocus:()=>v(!0),onBlur:()=>v(!1),autoComplete:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:150,"aria-invalid":!!m.email,className:`w-full px-3.5 py-3 text-base font-light text-[#12023B] border-2 rounded-lg bg-white transition-all outline-none hover:border-gray-300 focus:ring-4 focus:ring-[#c8924b]/10 ${m.email?"border-red-400 focus:border-red-400":"border-gray-200 focus:border-[#c8924b]"}`}),(0,t.jsxs)("label",{htmlFor:"pmdc_email",className:`absolute left-3.5 transition-all duration-200 bg-white px-1 pointer-events-none ${p.email||y?"-top-2 text-xs font-medium text-[#c8924b] ":"top-3 text-[0.9375rem] font-normal text-gray-500 "}`,children:["Email ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),m.email&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.email})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:`journey-phone-field relative w-full border-2 rounded-lg bg-white px-3.5 transition-all focus-within:ring-4 focus-within:ring-[#c8924b]/10 hover:border-gray-300 ${m.phone?"border-red-400 focus-within:border-red-400":"border-gray-200 focus-within:border-[#c8924b]"}`,children:(0,t.jsx)(ed.default,{name:"pmdc_phone",placeholder:k&&!w.nationalNumber?"Enter your phone number":"",defaultCountry:_,variant:"bare",value:w.nationalNumber,countryCode:w.countryCode,className:"text-base font-light text-[#12023B]",onChange:e=>{j(e),m.phone&&h(e=>{let t={...e};return delete t.phone,t})},onFocus:()=>S(!0),onBlur:()=>S(!1)},N)}),(0,t.jsxs)("label",{className:`absolute transition-all duration-200 bg-white px-1 pointer-events-none ${w.nationalNumber||k?"left-3.5 -top-2 text-xs font-medium text-[#c8924b] ":"left-[6.5rem] top-2.5 text-[0.9375rem] font-normal text-gray-500 "}`,children:["Phone Number ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),m.phone&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.phone})]}),P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS,{variant:"mobile",id:"pmdc_tax_support_timeline",label:"When do you need support?",value:p.supportTimeline,options:eh.TAX_SUPPORT_TIMELINE_OPTIONS,error:m.supportTimeline,icon:eo.Clock3,onChange:e=>{u(t=>({...t,supportTimeline:e})),m.supportTimeline&&h(e=>{let t={...e};return delete t.supportTimeline,t})}}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 [&>*]:min-w-0",children:[(0,t.jsx)(eS,{variant:"mobile",id:"pmdc_tax_emirate",label:"Select emirate",value:p.emirate,options:D,error:m.emirate,icon:U.Building2,loading:O,searchable:!0,searchPlaceholder:"Search emirate",noResultsText:"No matching emirate found",onChange:e=>{u(t=>({...t,emirate:e,freezone:""})),m.emirate&&h(e=>{let t={...e};return delete t.emirate,t}),m.freezone&&h(e=>{let t={...e};return delete t.freezone,t})}}),(0,t.jsx)(eS,{variant:"mobile",id:"pmdc_tax_freezone",label:p.emirate?"Select free zone":"Select emirate first",value:p.freezone,options:H,error:m.freezone,icon:U.Building2,disabled:!p.emirate,loading:O,searchable:!0,searchPlaceholder:"Search free zone",noResultsText:"No matching free zone found",onChange:e=>{u(t=>({...t,freezone:e})),m.freezone&&h(e=>{let t={...e};return delete t.freezone,t})}})]})]}):(0,t.jsxs)("div",{className:"relative",ref:C,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>E(e=>!e),"aria-invalid":!!m.nationality,className:`relative flex w-full cursor-pointer items-center gap-2 rounded-lg border-2 bg-white px-3.5 py-3 text-left text-base font-light text-[#12023B] transition-all outline-none hover:border-gray-300 focus:ring-4 focus:ring-[#c8924b]/10 ${m.nationality?"border-red-400 focus:border-red-400":z?"border-[#c8924b]":"border-gray-200 focus:border-[#c8924b]"}`,children:[(0,t.jsx)(W.Globe,{className:`h-[18px] w-[18px] shrink-0 ${z?"text-[#c8924b]":"text-zinc-400"}`,strokeWidth:1.8,"aria-hidden":"true"}),0===p.nationality.length?(0,t.jsx)("span",{className:"text-gray-500",children:"Nationality *"}):(0,t.jsx)(ey,{items:p.nationality,className:"relative flex min-w-0 flex-1 items-center gap-1 overflow-hidden",chipClassName:"inline-flex max-w-[140px] shrink-0 items-center gap-1 truncate rounded-full bg-[#f6f0e6] px-2 py-0.5 text-[12px] font-medium leading-none text-[#8a6a35]",renderChip:e=>{let a=em(e);return(0,t.jsxs)(t.Fragment,{children:[a&&(0,t.jsx)("img",{src:a,alt:"",width:14,height:10,className:"shrink-0 rounded-[2px]"}),(0,t.jsx)("span",{className:"truncate",children:e})]})}}
111),(0,t.jsx)(d.ChevronDown,{className:`ml-auto h-4 w-4 shrink-0 text-zinc-400 transition-transform ${z?"rotate-180":""}`})]}),(0,t.jsxs)("label",{className:`absolute left-3.5 bg-white px-1 pointer-events-none transition-all duration-200 ${p.nationality.length>0||z?"-top-2 text-xs font-medium text-[#c8924b]":"opacity-0"}`,children:["Nationality ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),z&&(0,t.jsxs)("div",{ref:A,className:"absolute left-0 right-0 top-full z-20 mt-1 overflow-hidden rounded-lg border border-gray-200 bg-white shadow-lg",children:[(0,t.jsx)("div",{className:"border-b border-gray-100 p-2",children:(0,t.jsx)("input",{type:"text",value:L,onChange:e=>T(e.target.value),placeholder:"Search nationalityâ¦",autoFocus:!0,className:"w-full rounded-md border border-gray-200 px-3 py-2 text-base outline-none focus:border-[#c8924b]"})}),(0,t.jsx)("div",{className:"max-h-[160px] overflow-y-scroll py-1","data-lenis-prevent":!0,children:0===I.length?(0,t.jsx)("div",{className:"flex min-h-[96px] items-center justify-center px-3 py-4 text-center text-[13px] text-zinc-400",children:"No Results found"}):I.map(e=>{let a=p.nationality.includes(e),i=em(e);return(0,t.jsxs)("button",{type:"button",onClick:()=>M(e),className:`flex w-full cursor-pointer items-center gap-2.5 px-3 py-2.5 text-left text-[15px] ${a?"bg-[#faf5ec]":"hover:bg-zinc-50"}`,children:[(0,t.jsx)("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border ${a?"border-[#c8924b] bg-[#c8924b]":"border-zinc-300"}`,children:a&&(0,t.jsx)(el.Check,{className:"h-3 w-3 text-white",strokeWidth:3})}),i&&(0,t.jsx)("img",{src:i,alt:"",width:18,height:12,className:"shrink-0 rounded-[2px]"}),(0,t.jsx)("span",{className:"text-[#12023B]",children:e})]},e)})})]}),m.nationality&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.nationality})]}),!R&&(P?(0,t.jsx)(e_,{value:p.activities??[],error:m.businessName,onChange:e=>{u(t=>({...t,activities:e,businessName:e.join(", ")})),m.businessName&&h(e=>{let t={...e};return delete t.businessName,t})}}):(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"pmdc_business_name",type:"text",name:"businessName",value:p.businessName,onChange:e=>{u(t=>({...t,businessName:(0,eg.sanitizeBusinessNameInput)(e.target.value)})),m.businessName&&h(e=>{let t={...e};return delete t.businessName,t})},onFocus:()=>$(!0),onBlur:()=>$(!1),maxLength:150,"aria-invalid":!!m.businessName,className:`w-full px-3.5 py-3 text-base font-light text-[#12023B] border-2 rounded-lg bg-white transition-all outline-none hover:border-gray-300 focus:ring-4 focus:ring-[#c8924b]/10 ${m.businessName?"border-red-400 focus:border-red-400":"border-gray-200 focus:border-[#c8924b]"}`}),(0,t.jsx)("label",{htmlFor:"pmdc_business_name",className:`absolute left-3.5 transition-all duration-200 bg-white px-1 pointer-events-none ${p.businessName||B?"-top-2 text-xs font-medium text-[#c8924b] ":"top-3 text-[0.9375rem] font-normal text-gray-500 "}`,children:F?(0,t.jsxs)(t.Fragment,{children:["Proposed Business Name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}):"Proposed Business Name (Optional)"}),m.businessName&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.businessName})]})),q&&(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"pmdc_spam_query",type:"text",name:"spamQuery",value:G,onChange:e=>{!V&&(Z(e.target.value),m.spamQuery&&h(e=>{let t={...e};return delete t.spamQuery,t}))},onFocus:()=>J(!0),onBlur:()=>J(!1),maxLength:500,"aria-invalid":!!m.spamQuery,className:`w-full px-3.5 py-3 text-base font-light text-[#12023B] border-2 rounded-lg bg-white transition-all outline-none hover:border-gray-300 focus:ring-4 focus:ring-[#c8924b]/10 ${m.spamQuery?"border-red-400 focus:border-red-400":"border-gray-200 focus:border-[#c8924b]"}`}),(0,t.jsxs)("label",{htmlFor:"pmdc_spam_query",className:`absolute left-3.5 transition-all duration-200 bg-white px-1 pointer-events-none ${G||Y?"-top-2 text-xs font-medium text-[#c8924b] ":"top-3 text-[0.9375rem] font-normal text-gray-500 "}`,children:["How can we help you? ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),m.spamQuery&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-red-600",children:m.spamQuery})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{r(!1),setTimeout(()=>{window.dispatchEvent(new CustomEvent("filings:open-chat",{detail:{mode:"whatsapp"}}))},350)},className:"pmdc-live-chat-btn inline-flex shrink-0 cursor-pointer items-center gap-2.5 pl-2 pr-7 py-2 rounded-full text-sm font-semibold text-white bg-[#25d366] hover:bg-[#20bd5a] shadow-md shadow-emerald-500/25 transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#25d366] focus-visible:ring-offset-2","aria-label":"Live chat with experts on WhatsApp",children:[(0,t.jsx)("span",{className:"w-8 h-8 rounded-full bg-white/20 flex items-center justify-center shrink-0",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"
111currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"})})}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:"Chat"})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-end gap-2",children:[K&&(0,t.jsx)("div",{className:"mr-1 min-w-0 flex-1 rounded-lg border border-emerald-200 bg-emerald-50 px-2.5 py-1.5 text-[11px] text-emerald-700 sm:mr-2 sm:px-3 sm:py-2",children:K}),(0,t.jsx)("button",{type:"submit",disabled:X||V||!!K,className:"inline-flex items-center gap-2.5 rounded-full border border-[#C8924B] bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] py-2 pl-7 pr-2 text-sm font-semibold text-white shadow-[0_10px_24px_rgba(200,146,75,0.22)] transition-all duration-200 hover:border-[#BD873E] hover:brightness-105 cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed shrink-0",children:X?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"animate-spin h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,t.jsx)("span",{className:"pr-4",children:"Processing..."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Next"}),(0,t.jsx)("span",{className:"w-8 h-8 rounded-full bg-white/20 text-white flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})})]})})]})]})]})})]})}),document.body):null}var eI=e.i(618566),eM=e.i(839798),eB=e.i(236192),e$=e.i(341249),eF=e.i(41770),eP=e.i(508861),eR=e.i(367418);function eD({pageData:e,catalogResponse:i}){let r=function({pageData:e,catalogResponse:i}){let r=(0,a.useMemo)(()=>(function(e){try{let t=e?.templateSettings,a=t?.usePreprodComponents===!0;if(t?.journey!=null){let e=Q(t.journey);if(e)return e}if(a)return{};let i=e?.components;if(!i||"{}"===i)return{};let r="string"==typeof i?JSON.parse(i):i;return Q(r)??{}}catch{}return{}})(e),[e?.components,e?.templateSettings]),n=r.show,s=0===n||!1===n||"0"===n||"0"===String(n),l=i&&Array.isArray(i.catalog)&&0===i.catalog.length,o=Number(e?.pageTemplate)||1,d=(e?.pageCategory||e?.category||"").toLowerCase().includes("global"),c=i?.catalog?.[0],p=r.title||c?.service_name||c?.variant_name||e?.serviceName||"",u=e?.pageTitle||p,m=r.description||c?.description||e?.seoDescription||e?.seo_description||"",h=r.title_highlight||e?.titleHighlight||"",g=(0,a.useMemo)(()=>{if(r.features&&Array.isArray(r.features)&&r.features.length>0){let e=r.features.map(e=>({icon:e.icon||"shield",title:(e.title||"").trim(),desc:(e.desc||"").trim(),tooltip:(e.tooltip||"").trim()})).filter(e=>e.title.length>0);if(e.length>0)return e}if(c?.about){let e=function(e){if(!e)return[];let t=e.includes(" * ")?e.split(" * ").map(e=>
111e.trim()).filter(Boolean).map(e=>e.replace(/^\*\s*/,"").trim()):e.split("\n").filter(e=>e.trim()).map(e=>e.trim().replace(/^\*\s*/,"")),a=["documentText","chart","cog","monitor","user","shield","calendar","rocket"];return t.slice(0,7).map((e,t)=>({icon:a[t%a.length],title:e,desc:""}))}(c.about);if(e.length>0)return e}return K},[r.features,c?.about]),x=(0,a.useMemo)(()=>{let e;if(!p)return u||"";let a=h||((e=p.split(" ")).length<=1?"":e.slice(-2).join(" "));if(!a)return p;let i=p.toLowerCase().indexOf(a.toLowerCase());if(-1===i)return p;let r=p.substring(0,i),n=p.substring(i,i+a.length),s=p.substring(i+a.length);return(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("span",{children:r}),(0,t.jsx)("span",{className:"text-[#c8924b]",children:n}),s&&(0,t.jsx)("span",{children:s})]})},[p,u,h]),f=(0,a.useMemo)(()=>{let e,a=(r.feature_title||"").trim()||p;if(!a)return x;let i=new Set((h||((e=a.split(" ")).length<=1?"":e.slice(-2).join(" "))).toLowerCase().split(/\s+/).filter(Boolean)),n=a.split(/\s+/).filter(Boolean).filter((e,t)=>0!==t||"uae"!==e.toLowerCase());return(0,t.jsx)(t.Fragment,{children:n.map((e,a)=>{var r,n;let s,l;return r=0+a,n=a>0?" ":"",l=""!==(s=e.toLowerCase().replace(/[^a-z0-9]/g,""))&&i.has(s),(0,t.jsxs)("span",{className:l?"text-[#c8924b]":void 0,children:[n,e]},r)})})},[r.feature_title,p,h,x]),b=(0,a.useMemo)(()=>{let e=Math.max(38,Math.min(70,Math.round(1250/(((r.feature_title||"").trim()||p).replace(/^UAE\s+/i,"").trim().length||1))));return`clamp(2rem, 2.4vw + ${Math.round(.4*e)}px, ${e}px)`},[r.feature_title,p]),y=(0,a.useMemo)(()=>(r.feature_description||"").trim()||m||"",[r.feature_description,m]),v=(0,a.useMemo)(()=>(r.feature_title||p||u||"Business License").trim().replace(/^UAE\s+/i,"").trim()||"Business License",[r.feature_title,p,u]),w=(0,a.useMemo)(()=>{let e=v.split(/\s+/).filter(Boolean);return e.length<=1?{before:"Apply for ",highlight:e[0]||"License"}:{before:`Apply for ${e.slice(0,-1).join(" ")} `,highlight:e[e.length-1]}},[v]);return{journeyConfig:r,isJourneyHidden:s,isCatalogEmpty:!!l,pageTemplate:o,HeroTag:2===o?"h1":"h2",isGlobalCategoryPage:d,firstCatalog:c,serviceName:p,seoTitle:u,seoDescription:m,titleHighlight:h,features:g,cardTitleContent:x,featureTitleContent:f,heroTitleFontSize:b,featureSectionDescription:y,formApplyTitle:v,formTitleContent:w,checkoutEnabled:(0,a.useMemo)(()=>{let t=e?.settings,a={};try{a="string"==typeof t?JSON.parse(t):t&&"object"==typeof t&&!Array.isArray(t)?t:{}}catch{a={}}let i=a.checkout;return 0!==i&&"0"!==i&&!1!==i},[e?.settings])}}({pageData:e,catalogResponse:i}),n=function(e){let{isAuthenticated:t,user:i}=(0,u.useSession)(),r=t&&!!i,{geoCountry:n}=(0,u.useMiddleware)(),[s,l]=(0,a.useState)({name:"",email:"",businessName:"",activities:[],nationality:[],supportTimeline:"",emirate:"",freezone:""}),[o,d]=(0,a.useState)([]),[c,p]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[g,x]=(0,a.useState)(""),f=(0,a.useRef)(null),b=(0,a.useRef)(null),[y,v]=(0,a.useState)(!1),[w,j]=(0,a.useState)(null),N=(0,a.useMemo)(()=>{let e=g.trim().toLowerCase();return e?ep.filter(t=>t.toLowerCase().includes(e)):ep},[g]);(0,a.useEffect)(()=>{v(!0)},[]),(0,a.useEffect)(()=>{if(!m)return;let e=e=>{let t=e.target;f.current?.contains(t)||b.current?.contains(t)||(h(!1),x(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]),(0,a.useLayoutEffect)(()=>{if(!m)return void j(null);let e=()=>{let e=f.current;if(!e)return;let t=e.getBoundingClientRect();j({top:t.bottom+6,left:t.left,width:t.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[m]);let[_,k]=(0,a.useState)({fullNumber:"",countryCode:"971",nationalNumber:"",countryName:"United Arab Emirates"}),[S,C]=(0,a.useState)(0),A=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!t||!i)return;let e=(i.name||"").toString().trim(),a=(i.email||"").toString().trim(),r=(i.mobile||"").toString().replace(/\D/g,""),n=(i.ccode||"971").toString().replace(/\D/g,""),s=r;n&&r.startsWith(n)&&r.length>n.length&&(s=r.slice(n.length)),l(t=>{let i=!t.name.trim()&&e?e:t.name,r=!t.email.trim()&&a?a:t.email;return i===t.name&&r===t.email?t:{...t,name:i,email:r}}),!s.trim()||_.nationalNumber?.trim()||A.current!==s&&(A.current=s,k(e=>{if(e.nationalNumber?.trim())return e;let t=n||e.countryCode;return{...e,nationalNumber:s,countryCode:t,fullNumber:`+${t}${s}`}}
111),C(e=>e+1))},[t,i?.gid,i?.email,i?.name,i?.mobile,i?.ccode]),(0,a.useEffect)(()=>{let e=e=>{let t=e.detail;if(t&&((t.name||t.email)&&l(e=>({...e,name:t.name?.trim()||e.name,email:t.email?.trim()||e.email})),t.phone)){let e=(t.countryCode||"971").replace(/\D/g,""),a=t.phone.replace(/\D/g,"");k(t=>({...t,nationalNumber:a,countryCode:e,fullNumber:`+${e}${a}`}))}};return window.addEventListener("contactform-prefill",e),()=>window.removeEventListener("contactform-prefill",e)},[]);let[z,E]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=e=>{let t=e.detail;t?.catalogId&&E({catalogId:t.catalogId,serviceId:t.serviceId||0,bid:t.bid,partnerBid:t.partnerBid||t.partner_bid})};return window.addEventListener("filings:catalog-selected",e),()=>window.removeEventListener("filings:catalog-selected",e)},[]);let[L,T]=(0,a.useState)(""),[I,M]=(0,a.useState)({}),[B,$]=(0,a.useState)(!1),[F,P]=(0,a.useState)(!1),[R,D]=(0,a.useState)(""),[W,H]=(0,a.useState)(!1),[O,q]=(0,a.useState)(!1),[U,G]=(0,a.useState)(!1),[Z,V]=(0,a.useState)(!1),[Y,J]=(0,a.useState)(!1),K=(0,a.useRef)(null),X=(0,a.useRef)(null),Q=(0,eI.usePathname)(),ee=(0,eI.useSearchParams)(),et=String(e?.category||e?.pageCategory||""),ea=Q||String(e?.pageUrl||""),ei=(0,eh.isExistingBusinessTaxPage)(ea,et),er=(0,eh.isImmigrationPricingPage)(ea,et),en=(0,a.useMemo)(()=>(0,eh.getEmirateOptionsFromRows)(o,"all"),[o]),es=(0,a.useMemo)(()=>(0,eh.getAuthorityOptionsForEmirate)(o,s.emirate,"all"),[o,s.emirate]);(0,a.useEffect)(()=>{if(!ei)return;let e=!1;return p(!0),(0,eh.fetchFreezoneRows)().then(t=>{e||d(t)}).finally(()=>{e||p(!1)}),()=>{e=!0}},[ei]);let[el,eo]=(0,a.useState)(!1),[ed,ec]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.has("campaign")||e.has("utm_campaign")||e.has("gad_campaignid"),a=window.lead_source||e.has("lead_source");a=a&&"OG"!==a;let i=window.innerWidth<768,r=window.desktop_spam_modal?.value==="1",n=window.mobile_spam_modal?.value==="1";eo(!!((t||a)&&(i?n:r))),ec((0,eM.isPmaxTrafficClient)())},[Q,ee]);let[eu,em]=(0,a.useState)(!1),[eg,ex]=(0,a.useState)(!1),[ef,eb]=(0,a.useState)(!1),ey=(0,a.useRef)(null);(0,a.useEffect)(()=>{eb(!0)},[]);let ev=(0,a.useCallback)(e=>{ey.current=e.touches[0]?.clientY??null},[]),ew=(0,a.useCallback)(e=>{let t=ey.current;ey.current=null,null==t||(e.changedTouches[0]?.clientY??t)-t>72&&em(!1)},[]);return(0,a.useEffect)(()=>{if(eu&&R){let e=setTimeout(()=>em(!1),1800);return()=>clearTimeout(e)}},[R,eu]),(0,a.useEffect)(()=>{let e=()=>em(!0);return window.addEventListener("filings:open-journey-drawer",e),()=>window.removeEventListener("filings:open-journey-drawer",e)},[]),(0,a.useEffect)(()=>{let e=e=>{e?document.body.setAttribute("data-pmdc-helpcrunch-open","true"):document.body.removeAttribute("data-pmdc-helpcrunch-open")};if(!eu||window.innerWidth>=768){ex(!1),e(!1);return}let t=()=>{let t=!!(window.HelpCrunch||document.querySelector('[id*="helpcrunch"], [class*="helpcrunch"], iframe[src*="helpcrunch"], button[aria-label*="helpcrunch" i]'));ex(t),e(t)};t();let a=window.setInterval(t,700);return()=>{window.clearInterval(a),e(!1)}},[eu]),(0,a.useEffect)(()=>{if(!eu||window.innerWidth>=768)return;let e=document.body.style.overflow,t=document.body.style.touchAction;return document.body.style.overflow="hidden",document.body.style.touchAction="none",()=>{document.body.style.overflow=e,document.body.style.touchAction=t}},[eu]),(0,a.useEffect)(()=>{if(!eu||s.name.trim())return;let e=window.setTimeout(()=>{X.current?.focus()},280);return()=>window.clearTimeout(e)},[eu,s.name]),{isAuthenticated:t,user:i,isLoggedIn:r,geoCountry:n,shouldHideEmailField:r,formData:s,setFormData:l,nationalityOpen:m,setNationalityOpen:h,nationalitySearch:g,setNationalitySearch:x,nationalityWrapRef:f,nationalityPanelRef:b,nationalityPortalReady:y,nationalityPanelBox:w,filteredNationalities:N,toggleNationality:e=>{l(t=>({...t,nationality:t.nationality.includes(e)?t.nationality.filter(t=>t!==e):[...t.nationality,e]})),M(e=>{if(!e.nationality)return e;let t={...e};return delete t.nationality,t})},phoneData:_,setPhoneData:k,phonePrefillKey:S,selectedCatalogOverride:z,spamQuery:L,setSpamQuery:T,errors:I,setErrors:M,isSubmitting:B,setIsSubmitting:$,spamFilterFailed:F,setSpamFilterFailed:P,submitNotice:R,setSubmitNotice:D,isNameFocused:W,setIsNameFocused:H,isEmailFocused:O,setIsEmailFocused:q,isPhoneFocused:U,setIsPhoneFocused:G,isBusinessNameFocused:Z,setIsBusinessNameFocused:V,isSpamFocused:Y,setIsSpamFocused:J,formRef:K,pmdcNameInputRef:X,showSpamFilter:el,isPmaxCampaign:ed,isTaxPage:ei,hideBusinessNameField:er,taxEmirateOptions:en,taxFreezoneOptions:es,taxLocationOptionsLoading:c,pmdcIsOpen:eu,setPmdcIsOpen:em,pmdcHasHelpCrunch:eg,pmdcPortalReady:ef,handlePmdcHeaderTouchStart:ev,handlePmdcHeaderTouchEnd:ew}}(e),{handleSubmit:s}=function({form:e,firstCatalog:t,serviceName:i,pageData:r,checkoutEnabled:n}){let{formData:s,setFormData:l,phoneData:o,setPhoneData:d,shouldHideEmailField:c,user:p,isLoggedIn:u,showSpamFilter:m,spamQuery:h,spamFilterFailed:g,setSpamFilterFailed:x,setErrors:f,setIsSubmitting:b,setSubmitNotice:y,setSpamQuery:v,selectedCatalogOverride:w}=e,j=(0,a.useCallback)(async(e,t,a,i,r)=>{let n="",s=!0,l=null;try{try{let t=await (0,eB.safeFetch)("/api/getdata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question_message:"How can we help",answer_message:e.trim(),action:"identifylead"}),label:"JourneySection_identifylead"});if(!t.ok)return{visitorId:null,isValid:!0};let a=await t.json();n=a?.result||"","fail"!==a.status&&n&&(s=n.includes("Sales Team Prospect: Yes")&&!n.includes("Sales Team Prospect: No")&&!n.includes("Prospective Service: (Invali
111d Request)"))}catch{}try{let s=window.innerWidth<768?"Mobile":"Desktop",o=JSON.stringify({customer_id:"",call_request_id:"",visitor_id:"Failed",visitor_info:JSON.stringify({name:t,email:a,phone:i,country_code:r,device:s,url:window.location.href}),gpt_question:"How can we help",user_response:e.trim(),gpt_response:(n||"").replace(/['"]/g,"")}),d=await (0,eB.safeFetch)("/api/getdata",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({log:o,action:"spamlog"}),label:"JourneySection_spamlog"});if(d.ok){let e=await d.json();l=e?.id?.toString()||null}}catch{}}catch{}return{visitorId:l,isValid:s}},[]),N=(0,a.useCallback)(()=>{let e={},t=s.name.trim(),a=(0,eg.validateName)(t);a.valid?t.replace(/[^A-Za-z]/g,"").length<3?e.name="Name must contain at least 3 letters":/^\d+$/.test(t)&&(e.name="Name cannot be only numbers"):e.name=a.error||"Please enter a valid name";let i=(c?s.email||p?.email||"":s.email).trim();i?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)||(e.email="Enter a valid email"):e.email="Email is required";let n=(0,eg.validatePhone)(o.nationalNumber,o.countryCode,o.countryName);n.valid||(e.phone=n.error||"Enter a valid phone number");let l=String(r?.category||r?.pageCategory||""),d=(0,eh.isExistingBusinessTaxPage)(window.location.pathname,l);d||0!==s.nationality.length||(e.nationality="Nationality is required"),d&&!s.supportTimeline.trim()&&(e.supportTimeline="Please select when you need support."),d&&!s.emirate.trim()&&(e.emirate="Please select an emirate."),d&&!s.freezone.trim()&&(e.freezone="Please select a free zone."),m&&!h.trim()&&(e.spamQuery="Please tell us how we can help you");let u=s.businessName.trim(),g=window.location.pathname,x=(0,eh.isImmigrationPricingPage)(g,l);if(d)0!==s.activities.length||u||(e.businessName="Please select a business activity");else if(!x){let t=(0,eM.isPmaxTrafficClient)(),a=(0,eg.validateBusinessName)(u,{required:t});!a.valid&&a.error&&(e.businessName=a.error)}return f(e),0===Object.keys(e).length},[s,c,p?.email,o,m,h,r,f]),_=(0,a.useCallback)(async e=>{if(e.preventDefault(),y(""),!N())return;if(g)return void f(e=>({...e,spamQuery:"Please refresh the page to try again."}));b(!0);let a=(c?s.email||p?.email||"":s.email).trim();try{let e=w?.catalogId||t?.id||0,c=w?.serviceId||t?.service_id||r?.serviceId||0,p=`${window.location.origin}${window.location.pathname}`,g=String(r?.category||r?.pageCategory||""),N=window.location.pathname,_=(0,eh.isExistingBusinessTaxPage)(N,g),k=(0,eh.isImmigrationPricingPage)(N,g),S=k&&(w?.bid||t?.bid)||"",C=k&&(w?.partnerBid||t?.partner_bid)||"",A="";if(m&&h.trim()){let{visitorId:e,isValid:t}=await j(h,s.name.trim(),a,o.nationalNumber,o.countryCode);if(A=e||"",!t){x(!0),f(e=>({...e,spamQuery:`Sorry, the service "${h.trim()}" is not available.`})),b(!1),setTimeout(()=>{window.location.reload()},3e3);return}}let z=()=>{let e=window.location.search.substring(1);return e?e.split("&").reduce((e,t)=>{let[a,i]=t.split("=");return a&&(e[decodeURIComponent(a)]=decodeURIComponent(i||"")),e},{}):{}},E=window.innerWidth<768?"Mobile":"Desktop",L=new URLSearchParams(window.location.search),T=(0,eM.generateLeadSource)(L),I=String(window.lead_source??"").trim(),M=await (0,eM.resolveClientLeadSource)(I||T),B=`AE-Signup-${E}-Journey-${e}-${M}`,$=(0,eg.normalizePhoneNumber)(o.nationalNumber,o.countryCode,o.countryName),F={};m&&h.trim()&&(F.help_query=h.trim());let P=s.businessName.trim(),R=s.activities.map(e=>e.trim()).filter(Boolean).join(", ");P&&!_&&(F.business_name=P),_?(F.support_timeline=s.supportTimeline.trim(),F.emirate=s.emirate.trim(),F.freezone=s.freezone.trim(),R&&(F.business_activity=R)):s.nationality.length>0&&(F.nationality=s.nationality.join(", "));let D={name:s.name.trim(),email:a,phone:$.nationalNumber,mobile:$.nationalNumber,country_code:$.countryCode,country_type:$.countryType,business_name:_?"":P,catalog_id:e,service_name:i||"Filings.ae",lead_source:B,url:p,visitor_id:A,queryParam:z(),ad_tracking:z(),smart_info:JSON.stringify(F)},W=await (0,eB.safeFetch)("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D),label:"JourneySection_createLead"});if(W.ok){let t=await W.json().catch(()=>({}));(0,eF.pushLeadAndCompleteRegistrationGtm)({leadResponse:t,signupParams:(0,e$.parseSignupInfo)({}),defaultCurrency:"AED"});let a=t&&t.customer_id||t&&t.potentialID||t&&t.potential_id||t&&t.uid||"",o=t&&t.customer_id||t&&t.gid||t&&t.peo
111ple_id||"",p=a?await (0,eP.resolvePotentialIdForCheckout)(String(a)):"",m=(0,eP.pickEncryptedPricingLeadToken)(t),h=String(o||p||"").trim(),g=s.nationality.join(", "),x=_?s.supportTimeline.trim():"",f=_?s.emirate.trim():"",b=_?s.freezone.trim():"",j={gid:h,potentialId:m,name:D.name,email:D.email,phone:$.nationalNumber,mobile:$.nationalNumber,country_code:$.countryCode,...P&&!_?{business_name:P}:{},..._?{support_timeline:x,emirate:f,freezone:b,...R?{business_activity:R}:{}}:{},...g?{nationality:g}:{},catalog_id:e,service_id:c,service_name:i||"Filings.ae",...S?{bid:S}:{},...C?{partner_bid:C}:{}};{let t=window;t.leadData={...t.leadData||{},...D.name?{name:D.name}:{},...D.email?{email:D.email}:{},...$.nationalNumber?{phone:$.nationalNumber,mobile:$.nationalNumber}:{},...$.countryCode?{country_code:$.countryCode,country_type:$.countryType}:{},...P&&!_?{business_name:P,businessName:P}:{},..._?{support_timeline:x,emirate:f,freezone:b,...R?{business_activity:R}:{},smart_info:D.smart_info}:{},...g?{nationality:g}:{},...h?{gid:h,customer_id:h,cus_gid:h}:{},...e?{catalog_id:e}:{},...c?{service_id:c}:{},...i?{service_name:i}:{}}}if(u||(l({name:"",email:"",businessName:"",activities:[],nationality:[],supportTimeline:"",emirate:"",freezone:""}),d({fullNumber:"",countryCode:"971",nationalNumber:"",countryName:"United Arab Emirates"})),v(""),!w){let e=r?.pricingRoutePath||"";if(e){let t=r?.pricingGateKey||"lead_submitted";try{sessionStorage.setItem(t,"1")}catch{}(0,eR.savePricingContextToStorage)(j),window.location.href=e;return}}if(!n){y("Our advisor will contact with you soon."),setTimeout(()=>{window.location.reload()},2500);return}let N=window.CONFIG&&window.CONFIG.REDIRECTVALUES?window.CONFIG.REDIRECTVALUES:null,k=N&&N.catalog_id||e,A=N&&N.service_id||c;if(k&&Number(k)>0){let e={cus_gid:p||"",cin_gstin:"",cus_name:D.name,cus_email:D.email,cus_mobile:`${$.countryCode||""}-${$.nationalNumber||""}`,utoken:"",eng_id:"",pot_id:"",partner_id:"",multi:[{catalog_id:k,service_id:A||0,qty:"1",amount:0,engagement:" "}],other_info:{},udf:P?{business_name:P}:{},operation:"Website"};if(N)try{N.price&&(e.price=N.price),N.currency&&(e.currency=N.currency),N.leadSource&&(e.leadSource=N.leadSource),N.catalog_name&&(e.catalog_name=N.catalog_name)}catch{}try{let t=await (0,eB.safeFetch)("/api/getdata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generator:e,action:"create_checkout"}),label:"JourneySection_create_checkout"});if(t.ok){let e=await t.json().catch(()=>({})),a=e&&e.estimate_id||e&&e.data&&e.data.estimate_id||e&&e.estimateId||"",r=!!window.__leadAction&&"chat"===window.__leadAction,n=!!window.__chatViaWhatsApp;if(r)if(n){let e=N&&N.whatsapp_phone||"971586451037";window.location.href=`https://api.whatsapp.com/send?autoload=1&app_absent=0&phone=${e}&text=Hi,I am interested in ${encodeURIComponent(i||"")}, Ref: ${p}`;return}else try{{let e=window;if(e.HelpCrunch&&"function"==typeof e.HelpCrunch){e.HelpCrunch("showChatWidget"),e.HelpCrunch("openChat"),e.HelpCrunch("sendUserMessage","Hi");return}if(e.launch_helpCrunch&&"function"==typeof e.launch_helpCrunch)return void e.launch_helpCrunch(p)}}catch(e){console.error("Error launching chat widget:",e)}if(a){window.location.href=`/checkout?generator=${a}`;return}}}catch(e){console.error("Error creating checkout estimate:",e)}}}}catch{}finally{b(!1)}},[N,g,y,f,b,c,s,p?.email,w,t,r,m,h,j,x,o,i,u,l,d,v,n]);return{runSpamFilter:j,validateForm:N,handleSubmit:_}}({form:n,firstCatalog:r.firstCatalog,serviceName:r.serviceName,pageData:e,checkoutEnabled:r.checkoutEnabled}),{isJourneyHidden:l,isCatalogEmpty:o,HeroTag:d,isGlobalCategoryPage:c,firstCatalog:m,serviceName:h,seoTitle:g,features:x,featureTitleContent:f,heroTitleFontSize:b,featureSectionDescription:y,formTitleContent:v}=r;if(l||o||!h&&!g)return null;let w={formData:n.formData,setFormData:n.setFormData,errors:n.errors,setErrors:n.setErrors,phoneData:n.phoneData,setPhoneData:n.setPhoneData,phonePrefillKey:n.phonePrefillKey,geoCountry:n.geoCountry,shouldHideEmailField:n.shouldHideEmailField,showSpamFilter:n.showSpamFilter,spamQuery:n.spamQuery,setSpamQuery:n.setSpamQuery,spamFilterFailed:n.spamFilterFailed,isPmaxCampaign:n.isPmaxCampaign,isTaxPage:n.isTaxPage,hideBusinessNameField:n.hideBusinessNameField,taxEmirateOptions:n.taxEmirateOptions,taxFreezoneOptions:n.taxFreezoneOptions,taxLocationOptionsLoading:n.taxLocationOptionsLoading,nationalityOpen:n.nationalityOpen,setNationalityOpen:n.setNationalityOpen,nationalitySearch:n.nationalitySearch,setNationalitySearch:n.setNationalitySearch,filteredNationalities:n.filteredNationalities,toggleNationality:n.toggleNationality,isPhoneFocused:n.isPhoneFocused,setIsPhoneFocused:n.setIsPhoneFocused,handleSubmit:s,isSubmitting:n.isSubmitting,submitNotice:n.submitNotice,formTitleContent:v};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{"aria-label":"Service overview",role:"banner",className:"relative -mt-0.5 overflow-hidden bg-[#F8F5EF] text-[#07142F]",children:[(0,t.jsx)(ez,{isGlobalCategoryPage:c}),(0,t.jsxs)("div",{id:"journey-form-section","data-journey-form":!0,className:"relative z-10 mx-auto grid max-w-[1600px] gap-8 px-3 py-12 sm:px-6 sm:py-16 md:grid-cols-2 md:gap-[72px] md:px-11 md:py-24",children:[(0,t.jsx)(eE,{isGlobalCategoryPage:c,HeroTag:d,heroTitleFontSize:b,featureTitleContent:f,featureSectionDescription:y,features:x}),(0,t.jsx)(eC,{...w,formRef:n.formRef,pmdcIsOpen:n.pmdcIsOpen,nationalityWrapRef:n.nationalityWrapRef,nationalityPortalReady:n.nationalityPortalReady,nationalityPanelBox:n.nationalityPanelBox,nationalityPanelRef:n.nationalityPanelRef})]}),(0,t.jsx)(eL,{}),(0,t.jsx)(eT,{...w,nationalityWrapRef:n.nationalityWrapRef,nationalityPanelRef:n.nationalityPanelRef,pmdcPortalReady:n.pmdcPortalReady,firstCatalog:m,pmdcIsOpen:n.pmdcIsOpen,setPmdcIsOpen:n.setPmdcIsOpen,pmdcHasHelpCrunch:n.pmdcHasHelpCrunch,handlePmdcHeaderTouchStart:n.handlePmdcHeaderTouchStart,handlePmdcHeaderTouchEnd:n.handlePmdcHeaderTouchEnd,pmdcNameInputRef:n.pmdcNameInputRef,isNameFocused:n.isNameFocused,setIsNameFocused:n.setIsNameFocused,isEmailFocused:n.isEmailFocused,setIsEmailFocused:n.setIsEmailFocused,isBusinessNameFocused:n.isBusinessNameFocused,setIsBusinessNameFocused:n.setIsBusinessNameFocused,isSpamFocused:n.isSpamFocused,setIsSpamFocused:n.setIsSpamFocused}),(0,t.jsx)(p.default,{id:ea.__hash,children:ea})]})})}var eW=e.i(975558),eH=e.i(503116),eO=e.i(98919);let eq=(0,O.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),eU=(0,O.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var eG=e.i(576919);let eZ={className:eG.default.className,style:{fontFamily:"'Playfair Display', 'Playfair Display Fallback'",fontStyle:"normal"}};null!=eG.default.variable&&(eZ.variable=eG.default.variable);var eV=e.i(474480);let eY={className:eV.default.className,style:{fontFamily:"'DM Sans', 'DM Sans Fallback'",fontStyle:"normal"}};null!=eV.default.variable&&(eY.variable=eV.default.variable);var eJ=e.i(769834);let eK={encryptedAgentId:"",heading:"",description:"",placeholders:[],chips:[],trustItems:[]};function eX(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function eQ(e){if(!Array.isArray(e))return;let t=e.filter(e=>"string"==typeof e&&e.trim().length>0);return t.length>0?t:void 0}function e0(...e){for(let t of e)if("string"==typeof t&&t.trim())return t}function e1(e){let t=e0(e.path,e.file)||"",a=e0(e.name)||"";return"ai_assistant"===a||"ai_assistant_hero"===a||t.includes("AiAssistantHero")}var e2=e.i(456580),e5=e.i(74887);function e6(e){return 1===e||"1"===e||!0===e}async function e4(e){let{spamFilterValue:t,deviceTypeRaw:a,leadData:i,pageUrl:r}=e,n=t.trim(),s=window.signup_info&&""!==window.signup_info.trim()?await (0,e$.checkSpamFilterWithSignupInfo)(n):await (0,e$.signupCheckSpamFilter)(n),l=null;try{let e=JSON.stringify({customer_id:"",call_request_id:"",visitor_id:"Failed",visitor_info:JSON.stringify({name:i?.name||"",email:i?.email||"",phone:i?.mobile||i?.phone||"",country_code:i?.country_code||i?.ccode||"971",device:a,url:r}),gpt_question:"How can we help",user_response:n,gpt_response:("string"==typeof s.result?s.result:JSON.stringify(s.result||"")).replace(/['"]/g,"")});l=await (0,e$.signupLogForLead)(e)}catch{}return{spamResult:s,visitorId:l}}var e8=e.i(963478);function e3(e){try{let{protocol:t}=new URL(e);return"https:"===t||"http:"===t}catch{return!1}}let e9={shield:eO.Shield,star:eq,zap:eU,clock:eH.Clock};function e7(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:e8.default.heroBgBase,"aria-hidden":!0}),(0,t.jsx)("div",{className:e8.default.heroBgWash,"aria-hidden":!0}),(0,t.jsxs)("div",{className:e8.default.heroBlobField,"aria-hidden":!0,
111children:[(0,t.jsx)("div",{className:e8.default.heroBlobBlur56,children:(0,t.jsx)("div",{className:e8.default.heroBlobBlur56Inner})}),(0,t.jsx)("div",{className:e8.default.heroBlobBlur36,children:(0,t.jsx)("div",{className:e8.default.heroBlobBlur36Inner})})]}),(0,t.jsxs)("div",{className:e8.default.heroElasticWrap,"aria-hidden":!0,children:[(0,t.jsx)("div",{className:e8.default.heroBlobOuterA,children:(0,t.jsx)("div",{className:`${e8.default.heroBlobShapeA} ${e8.default.v4ElasticA}`})}),(0,t.jsx)("div",{className:e8.default.heroBlobOuterB,children:(0,t.jsx)("div",{className:`${e8.default.heroBlobShapeB} ${e8.default.v4ElasticB}`})}),(0,t.jsx)("div",{className:e8.default.heroBlobOuterC,children:(0,t.jsx)("div",{className:`${e8.default.heroBlobShapeC} ${e8.default.v4ElasticC}`})})]}),(0,t.jsx)("div",{className:e8.default.heroVeilA,"aria-hidden":!0}),(0,t.jsx)("div",{className:e8.default.heroVeilTop,"aria-hidden":!0}),(0,t.jsx)("div",{className:e8.default.heroVeilBottom,"aria-hidden":!0})]})}function te({pageData:e,config:i,invokeUrl:r,composerId:n="service-ai-composer",embedded:s=!1,heroEyebrow:l,heading:o,title:d,description:c,placeholders:p,chips:h,trust_items:g,trustItems:x,encrypted_agent_id:f,encryptedAgentId:b,agent_id:y,agentId:v}){let w=l??e?.heroEyebrow??e?.hero_eyebrow??"",j=(0,a.useMemo)(()=>{if(i)return i;let t=function(e,t={}){let a=function(e,t={}){if(!e)return null;let a=[];for(let i of(t.preferPreprod?a.push(e.components_preprod):a.push(e.components),a.push(e.template_settings),a.push(e.settings),a.push(e.content_prompt),a.push(e.ai_assistant),a)){let e=eX(i)?i:function(e){if("string"!=typeof e)return e;let t=e.trim();if(!t)return null;try{return JSON.parse(t)}catch{return null}}(i);if(eX(e)){if(eX(e.ai_assistant))return e.ai_assistant;if(eX(e.aiAssistant))return e.aiAssistant;if(Array.isArray(e.components)){let t=e.components.find(e=>!!eX(e)&&(!!e1(e)||eX(e.props)&&e1(e.props)));if(eX(t)){let e=t.props;return eX(e)?{...t,...e}:t}}if(Array.isArray(e.journey)){let t=e.journey.find(e=>!!eX(e)&&("encrypted_agent_id"in e||"encryptedAgentId"in e||e1(e)));if(eX(t))return t}if("encrypted_agent_id"in e||"encryptedAgentId"in e)return e}}return null}(e,t);if(!a)return{...eK};let i=Array.isArray(a.trust_items)?a.trust_items:Array.isArray(a.trustItems)?a.trustItems:null,r=i?.map(e=>{if(!eX(e))return null;let t=e0(e.label,e.title),a=e0(e.sub,e.subtitle,e.description);if(!t||!a)return null;let i=e0(e.icon)?.toLowerCase();return{label:t,sub:a,icon:"shield"===i||"star"===i||"zap"===i||"clock"===i?i:void 0,color:e0(e.color)}}).filter(e=>null!==e),n=eX(a.cta)?a.cta:null,s=n?{kicker:e0(n.kicker),title:e0(n.title),subtitle:e0(n.subtitle),buttonLabel:e0(n.buttonLabel,n.button_label,n.cta)}:void 0;return{encryptedAgentId:e0(a.encrypted_agent_id,a.encryptedAgentId)?.trim()||"",heading:e0(a.heading,a.title)||"",description:e0(a.description,a.subtitle)||"",placeholders:eQ(a.placeholders)||[],chips:eQ(a.chips)||[],trustItems:r&&r.length>0?r:[],cta:s}}(e??{});return{...t,encryptedAgentId:b||f||t.encryptedAgentId,heading:o||d||t.heading,description:c||t.description,placeholders:p&&p.length>0?p:t.placeholders,chips:h&&h.length>0?h:t.chips,trustItems:x&&x.length>0?x:g&&g.length>0?g:t.trustItems}},[h,i,c,b,f,o,e,p,d,x,g]),N=r??(e?.aiAssistantInvokeUrl||""),[_,k]=(0,a.useState)(""),[S,C]=(0,a.useState)(""),[A,z]=(0,a.useState)(!1),E=(0,a.useRef)(null),L=(0,a.useRef)(new Map),{onAuthOpen:T}=(0,eJ.useAuthModal)(),{isAuthenticated:I,sessionData:M}=(0,u.useMiddleware)(),B=I&&M?.status===1;(0,a.useEffect)(()=>{let e,t=j.placeholders;if(!t||0===t.length)return;let a=0,i=0,r=!1,n=()=>{let s=t[a];r?(i--,C(s.slice(0,i)),0===i?(r=!1,a=(a+1)%t.length,e=setTimeout(n,320)):e=setTimeout(n,20)):(i++,C(s.slice(0,i)),i===s.length?(r=!0,e=setTimeout(n,2e3)):e=setTimeout(n,38))};return e=setTimeout(n,600),()=>clearTimeout(e)},[j.placeholders]);let $=(0,a.useCallback)(async(e,t)=>{if(!e||!t.trim())return e;let a=`${e}::${t.trim()}`;if(L.current.has(a))return L.current.get(a);try{let i=await fetch("/api/v1/core/agent-invoke-url-with-intent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invokeUrl:e,intentMessage:t.trim()})}),r=await i.json();if(r.success&&r.url)return L.current.set(a,r.url),r.url}catch{}return e},[]),F=async(t,a=!1)=>
111{if(!A){z(!0);try{let i=(t??_).trim(),r=window.innerWidth<768,n=!a&&function(e,t){try{let a=!!t&&"mobile"===t,i=!1;if(e?.settings){let t={};try{t="string"==typeof e.settings?JSON.parse(e.settings):e.settings||{}}catch(e){e5.safeConsole.warn("[SpamFilter] Error parsing pageData.settings:",e)}i=a?e6(t.mobile_spam):e6(t.desktop_spam)}return i||(i=a?e6(e?.mobileSpamEnabled):e6(e?.desktopSpamEnabled)),!!i}catch(e){return e5.safeConsole.error("[SpamFilter] Error checking spam filter conditions:",e),!1}}(e,r?"mobile":"desktop"),s=null,l=!1;if(n&&i)try{let e=window.leadData||{},{spamResult:t,visitorId:a}=await e4({spamFilterValue:i,deviceTypeRaw:r?"Mobile":"Desktop",leadData:e,pageUrl:window.location.href});(s=a)&&(window.updateLeadData?window.updateLeadData({visitor_id:s}):window.leadData={...window.leadData||{},visitor_id:s}),l=!t.valid}catch{}let o=N;if(i&&N&&(o=await $(N,i)),o&&!e3(o))return;let d=String(e?.catalogId??""),c=l?"2225":d,p=String(e?.serviceId??""),u=String(e?.serviceName??""),h=String(e?.leadSource??"OG"),g=String(e?.deviceTypeCap??"Desktop"),x=c?`AE-${g}-AI-${c}-${h}`:"",f=Number(e?.aiAssistantAgentId??v??y??0)||void 0,b={};if(f&&(b.agent_id=f),i&&(b.intent_message=i),l&&(b.spam_filter_status="failed",d&&(b.original_catalog_id=d)),!B){o&&(window.redir=btoa(o)),c&&(window.signup_info=(0,m.generateSignupInfo)({lead_url:window.location.href,lead_source:x,catalog_id:c,service_id:p||null,service_name:u||"Filings.ae",smart_form:JSON.stringify(b),login_lead:"1",potential_id:"1"})),T("login");return}let w=o;if(c&&o)try{let e=String(M?.data?.name??""),t=String(M?.data?.email??""),a=String(M?.data?.mobile??""),i=String(M?.data?.ccode??M?.data?.country_code??"971"),r=await fetch("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,email:t,phone:a,mobile:a,country_code:i,catalog_id:c,service_name:u||"Filings.ae",lead_source:x,url:window.location.href,smart_info:b,request_id:p,...s?{visitor_id:s}:{}})});if(r.ok){let e=await r.json().catch(()=>null),t=e?.potentialID??e?.call_request_id,a=e?.june_roomid||void 0;if((0,eF.pushLeadAndCompleteRegistrationGtm)({leadResponse:e??{},signupParams:l?{}:(0,e$.parseSignupInfo)({}),defaultCurrency:"AED"}),a||t)try{w=await (0,e2.addPotentialIdToUrl)(o,String(t??""),a)}catch{}}}catch{}w&&e3(w)&&(window.location.href=w)}finally{z(!1)}}},P=!!(w||j.heading||j.description);return P||j.placeholders.length>0||j.chips.length>0||j.trustItems.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:`${e8.default.hero}${s?` ${e8.default.heroEmbedded}`:""} ${eY.className}`,"aria-label":"AI assistant",children:[!s&&(0,t.jsx)(e7,{}),(0,t.jsxs)("div",{className:e8.default.heroInner,children:[P&&(0,t.jsxs)("div",{className:e8.default.heroText,children:[w&&(0,t.jsxs)("div",{className:e8.default.heroEyebrowRow,children:[(0,t.jsx)("span",{className:e8.default.heroEyebrowDot,"aria-hidden":!0}),(0,t.jsx)("span",{className:e8.default.heroEyebrowLine,"aria-hidden":!0}),(0,t.jsx)("span",{className:e8.default.heroEyebrowLabel,children:w})]}),j.heading&&(0,t.jsx)("h2",{className:`${e8.default.heroHeading} ${eZ.className}`,children:j.heading}),j.description&&(0,t.jsx)("p",{className:e8.default.heroSub,children:j.description})]}),(0,t.jsx)("div",{className:e8.default.inputWrap,children:(0,t.jsxs)("div",{className:e8.default.inputBox,children:[(0,t.jsx)("textarea",{id:n,ref:E,className:e8.default.inputTextarea,placeholder:_?"":S||j.placeholders[0]||"Ask about this service",value:_,onChange:e=>k(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),F())},onInput:()=>{let e=E.current;e&&(e.style.height="auto",e.style.height=Math.min(e.scrollHeight,200)+"px")},rows:2}),(0,t.jsx)("div",{className:e8.default.inputToolbar,children:(0,t.jsx)("div",{className:e8.default.inputToolbarRight,children:(0,t.jsx)("button",{type:"button",className:`${e8.default.inputSendBtn}${A?` ${e8.default.inputSendBtnLoading}`:""}`,onClick:()=>F(),disabled:A,"aria-label":A?"Loadingâ¦":"Send",children:A?(0,t.jsx)("span",{className:e8.default.sendSpinner,"aria-hidden":!0}):(0,t.jsx)(eW.ArrowUp,{size:15,strokeWidth:1.8})})})})]})}),j.chips.length>0&&(0,t.jsx)("div",{className:e8.default.chipsSection,children:(0,t.jsx)("div",{className:e8.default.chipsRow,children:j.chips.map(e=>(0,t.jsx)("button",{type:"button",className:e8.default.chip,onClick:()=>F(e,!0),disabled:A,children:e},e))})})]})]}),j.trustItems.length>0&&(0,t.jsx)("section",{className:`${e8.default.trustStatsSection}${s?` ${e8.default.trustStatsSectionEmbedded}`:""}`,children:(0,t.jsx)("div",{className:e8.default.trustRow,children:j.trustItems.map(e=>{let a=e.icon&&e9[e.icon]||eO.Shield;return(0,t.jsxs)("div",{className:e8.default.trustItem,children:[(0,t.jsx)(a,{size:20,strokeWidth:1.5,className:e8.default.trustIcon,style:{color:e.color},"aria-hidden":!0}),(0,t.jsxs)("div",{className:e8.default.trustText,children:[(0,t.jsx)("span",{className:e8.default.trustLabel,children:e.label}),(0,t.jsx)("span",{className:e8.default.trustSub,children:e.sub})]})]},e.label)})})})]}):null}var tt=e.i(536368);function ta({catalogResponse:e,category:a,categoryLink:i,serviceName:r,pageUrl:n,bannerImage:s,reviewsResponse:l}){let o="https://filings.ae",d=e?.catalog?.[0],c=d?.category||a,p=d?.service_name||r||"Filings.ae",u=[{"@type":"ListItem",position:1,name:"Home",item:`${o}/`}];if(c&&i){let e=c.replace(/^Filings\.ae\s*-\s*/i,"").trim(),t=i.startsWith("http")?i:`${o}${i}`,a=n.startsWith("http")?n:`${o}${n}`,r=t.replace(/\/+$/,"")===a.replace(/\/+$/,"");u.push({"@type":"ListItem",position:2,name:e||c,item:t}),r||u.push({"@type":"ListItem",position:3,name:p,item:a})}else u.push({"@type":"ListItem",position:2,name:p,item:n.startsWith("http")?n:`${o}${n}`});let m=(()=>
111{if(e?.media&&Array.isArray(e.media)&&e.media.length>0){let t=e.media[0];if(t?.url&&"string"==typeof t.url&&""!==t.url.trim())return t.url}return s||"https://img.filings.ae/filings-ae.jpg"})(),h=(l?.data??[]).filter(e=>"string"==typeof e.client_feedback&&""!==e.client_feedback.trim()&&Number.isFinite(e.client_review)&&e.client_review>=1&&e.client_review<=5).slice(0,10).map(e=>{let t=e.client_feedback.trim(),a={"@type":"Review",author:{"@type":"Person",name:e.customer_name?.trim()||"Customer"},reviewRating:{"@type":"Rating",ratingValue:e.client_review,bestRating:5,worstRating:1},reviewBody:t.length>200?`${t.slice(0,200)}â¦`:t},i=function(e){if(!e||"string"!=typeof e||!e.trim())return;let t=new Date(e.trim());if(!Number.isNaN(t.getTime()))return t.toISOString().split("T")[0]}(e.updated_date);return i&&(a.datePublished=i),a}),g=h.length>=2,x=l&&l.total_count>0&&l.average_rating>0?{"@type":"AggregateRating",ratingValue:l.average_rating.toFixed(1),reviewCount:String(l.total_count),bestRating:5,worstRating:1}:null,f=e?.catalog&&e.catalog.length>0&&d?{"@context":"https://schema.org","@type":"Product",sku:String(d.id),name:d.variant_name||d.service_name||p,image:m,url:n.startsWith("http")?n:`${o}${n}`,description:(d.description||d.about||"").slice(0,500),brand:{"@type":"Brand",name:"Filings.ae"},...x?{aggregateRating:x}:null!=d.rating&&null!=d.customers?{aggregateRating:{"@type":"AggregateRating",ratingValue:String(d.rating),reviewCount:String(d.customers)}}:{},...g?{review:h}:{}}:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,tt.sanitizeForInnerHTML)(JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",name:"Filings.ae",itemListElement:u}))}}),f&&(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,tt.sanitizeForInnerHTML)(JSON.stringify(f))}})]})}var ti=e.i(373375),tr=e.i(284614);async function tn(e,t){if(!Number.isFinite(e)||e<=0)return null;let a=new URLSearchParams({service_id:String(e)});"number"==typeof t?.offset&&a.set("offset",String(Math.max(0,Math.trunc(t.offset)))),"number"==typeof t?.limit&&a.set("limit",String(Math.max(1,Math.min(50,Math.trunc(t.limit)))));try{let e=await (0,eB.safeFetch)(`/api/reviews?${a.toString()}`,{method:"GET",label:"fetchServiceReviewsClient"});if(!e.ok)return null;return await e.json()}catch{return null}}function ts(e){return e.toLowerCase().split(" ").map(e=>e?e[0].toUpperCase()+e.slice(1):"").join(" ")}function tl(e){return"string"==typeof e.client_feedback&&e.client_feedback.trim().length>0}function to(e){return Array.isArray(e?.data)?e.data.filter(tl):[]}function td({rating:e}){let a=Math.max(0,Math.min(5,Math.round(e)));return(0,t.jsx)("div",{className:"flex gap-0.5","aria-label":`${a} out of 5`,children:[1,2,3,4,5].map(e=>(0,t.jsx)("span",{className:`text-base leading-none ${e<=a?"text-amber-400 drop-shadow-[0_1px_2px_rgba(251,191,36,0.3)]":"text-zinc-200"}`,children:"â
"},e))})}function tc({src:e,alt:i,hasPhoto:r}){let[n,s]=(0,a.useState)(!1);return(0,t.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-linear-to-br from-slate-500 to-slate-600 shadow-sm",children:r&&e&&!n?(0,t.jsx)(eA.default,{src:e,alt:i,width:36,height:36,className:"h-full w-full object-cover",unoptimized:!0,onError:()=>s(!0)}):(0,t.jsx)(tr.User,{className:"h-4 w-4 text-white","aria-hidden":"true"})})}function tp({serviceId:e,initialData:i}){let r=(0,eI.usePathname)(),l=(0,a.useMemo)(()=>to(i),[i]),[o,d]=(0,a.useState)(l),[c,p]=(0,a.useState)(0===l.length),[u,m]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useRef)(0),x=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let t=!0;return(async()=>{if(e){0===l.length&&p(!0),m(!1);try{let a=await tn(e,{offset:0,limit:12}),i=to(a);if(!t)return;d(i)}catch{if(!t)return;0===l.length&&m(!0)}finally{t&&p(!1)}}})(),()=>{t=!1}},[e,r,l.length]);let f=(0,a.useMemo)(()=>o.slice(0,10),[o]),b=f.length>4,y=(0,a.useMemo)(()=>2===f.length?"mx-auto grid w-full max-w-5xl grid-cols-1 gap-5 py-1 sm:grid-cols-2 sm:gap-8 lg:gap-12":"grid grid-cols-1 gap-4 py-1 sm:grid-cols-2 sm:gap-5 lg:grid-cols-3 lg:gap-6",[f.length]),v=(0,a.useMemo)(()=>b?[...f,...f]:f,[b,f]),w=e=>{let t=e.querySelector('[data-review-card="true"]');if(!(t instanceof HTMLElement))return Math.max(280,Math.round(.8*e.clientWidth));let a=Number.parseFloat(window.getComputedStyle(e).columnGap||"0")||0;return Math.round(t.offsetWidth+a)},j=e=>{let t=h.current;if(!t)return;if(g.current=Date.now(),b){let a=t.scrollWidth/2;"next"===e&&t.scrollLeft>=a-8?t.scrollLeft-=a:"prev"===e&&t.scrollLeft<=8&&(t.scrollLeft+=a)}let a=w(t);t.scrollBy({left:"next"===e?a:-a,behavior:"smooth"})};return((0,a.useEffect)(()=>{let e=h.current;if(!e||!b)return;let t=e.scrollWidth/2;t>0&&(e.scrollLeft=t);let a=()=>{let t=e.scrollWidth/2,a=e.scrollWidth-e.clientWidth-8;e.scrollLeft>=a?e.scrollLeft-=t:e.scrollLeft<=0&&(e.scrollLeft+=t)},i=()=>{g.current=Date.now()},r=e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)&&i()},n=()=>{x.current=!0},s=()=>{x.current=!1,g.current=Date.now()};e.addEventListener("scroll",a),e.addEventListener("pointerdown",i),e.addEventListener("touchstart",i,{passive:!0}),e.addEventListener("wheel",r,{passive:!0}),e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",s);let l=window.setInterval(()=>{if(x.current||Date.now()-g.current<1800)return;let t=w(e);e.scrollBy({left:t,behavior:"smooth"})},3500);return()=>{e.removeEventListener("scroll",a),e.removeEventListener("pointerdown",i),e.removeEventListener("touchstart",i),e.removeEventListener("wheel",r),e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",s),window.clearInterval(l)}},[b]),(0,a.useEffect)(()=>{let e=h.current;e&&!b&&0!==e.scrollLeft&&(e.scrollLeft=0)},[b,f.length]),c||u||f.length<2)?null:(0,t.jsx)("section",{id:"reviews-section",className:"mx-auto max-w-[1600px] px-4 pb-6 pt-2 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl border border-zinc-200/80 bg-white shadow-sm sm:rounded-2xl",children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 z-10 h-[3px] w-full bg-gold-500/70","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"p-4 sm:p-5",children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h3",{className:"text-xl font-bold tracking-tight text-zinc-900 sm:text-2xl",children:"Customer Reviews"})}),b?(0,t.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 sm:flex",children:[(0,t.jsx)("button",{type:"button",onClick:()=>j("prev"),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-zinc-200 bg-white text-zinc-500 transition-colors hover:border-indigo-200 hover:bg-indigo-50 hover:text-indigo-600","aria-label":"Previous reviews",children:(0,t.jsx)(ti.ChevronLeft,{className:"h-4 w-4","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",onClick:()=>j("next"),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-zinc-200 bg-white text-zinc-500 transition-colors hover:border-indigo-200 hover:bg-indigo-50 hover:text-indigo-600","aria-label":"Next reviews",children:(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4","aria-hidden":"true"})})]}):null]}),(0,t.jsx)("div",{ref:h,className:b?"reviews-carousel-track flex snap-x snap-mandatory gap-6 overflow-x-auto overflow-y-visible px-1 py-2 [touch-action:pan-x] [scrollbar-width:none] [mask-image:linear-gradient(to_right,transparent_0,black_24px,black_calc(100%-24px),transparent_100%)] [&::-webkit-scrollbar]:hidden sm:[mask-image:none]":y,"aria-roledescription":b?"carousel":void 0,children:v.map((e,a)=>{let i=ts(e.customer_name||"Customer"),r=ts(e.employee_name||"Team Member"),s=!!e.employee_image_url,l=e.employee_profile_url,o=`${e.customer_name}-${e.service_name}-${e.updated_date}-${a}-${Math.floor(a/Math.max(f.length,1))}`;return(0,t.jsxs)("article",{"data-review-card":"true",className:`group relative z-0 flex flex-col overflow-hidden rounded-2xl border border-zinc-200/80 bg-white p-4 shadow-[0_1px_3px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.04)] transition-[transform,box-shadow,border-color] duration-300 ease-out hover:z-10 hover:-translate-y-1 hover:border-indigo-200 hover:shadow-[0_4px_6px_rgba(0,0,0,0.07),0_12px_24px_rgba(0,0,0,0.08),0_24px_48px_rgba(99,102,241,0.12)] sm:p-5 ${b?"h-[220px] min-h-[220px] max-h-[220px] snap-start w-[88%] max-w-[88%] shrink-0 grow-0 basis-[88%] sm:w-[calc((100%-1.5rem)/2)] sm:max-w-[calc((100%-1.5rem)/2)] sm:basis-[calc((100%-1.5rem)/2)] lg:w-[calc((100%-3rem)/3)] lg:max-w-[calc((100%-3rem)/3)] lg:basis-[calc((100%-3rem)/3)]":"min-w-0
111w-full"}`,children:[(0,t.jsx)("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-1 origin-left scale-x-0 bg-linear-to-r from-indigo-500 via-violet-500 to-purple-500 transition-transform duration-300 group-hover:scale-x-100"}),(0,t.jsxs)("div",{className:"mb-3 flex shrink-0 items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-linear-to-br from-slate-500 to-slate-600 text-sm font-semibold text-white shadow-md",children:e.initials}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 overflow-hidden",children:[(0,t.jsx)("h3",{className:"truncate text-[15px] font-semibold text-zinc-900",children:i}),e.service_name?(0,t.jsx)("p",{className:"truncate text-[13px] text-zinc-500",children:e.service_name}):null]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-1.5",children:[(0,t.jsx)(td,{rating:e.client_review}),e.updated_date?(0,t.jsx)("span",{className:"whitespace-nowrap text-[11px] text-zinc-400",children:e.updated_date}):null]})]}),(0,t.jsxs)("p",{className:"mb-3 grow text-sm leading-relaxed text-zinc-500 line-clamp-3",children:["â",e.client_feedback,"â"]}),(0,t.jsx)("div",{className:"mt-auto shrink-0 border-t border-zinc-100 pt-2.5",children:l?(0,t.jsxs)(n.default,{prefetch:!1,href:l,className:"flex items-center gap-2.5 transition-opacity hover:opacity-80",children:[(0,t.jsx)(tc,{src:e.employee_image_url,alt:r,hasPhoto:s}),(0,t.jsx)("span",{className:"text-[13px] font-semibold text-zinc-500",children:r})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(tc,{src:e.employee_image_url,alt:r,hasPhoto:s}),(0,t.jsx)("span",{className:"text-[13px] font-semibold text-zinc-500",children:r})]})})]},o)})}),(0,t.jsx)("div",{className:"pt-5 text-center",children:(0,t.jsx)(n.default,{prefetch:!1,href:"/review",className:"inline-flex items-center justify-center rounded-lg border border-gold-500 bg-gold-500 px-[22px] py-[9px] text-[13px] font-medium text-white transition-colors hover:border-gold-600 hover:bg-gold-600",children:"View all verified customer reviews"})})]})]})})}function tu({pageData:e,pricingOnly:a=!1}){var i;let r,n=Number.isFinite(r="number"==typeof(i=e?.serviceId)?i:"string"==typeof i?Number(i):NaN)&&r>0?r:null,s=e?.serviceReviews;return a||!n?null:(0,t.jsx)(tp,{serviceId:n,initialData:s??void 0})}e.i(70116);let tm=Array(12).fill(0),th=({visible:e,className:t})=>a.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},a.default.createElement("div",{className:"sonner-spinner"},tm.map((e,t)=>a.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),tg=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),tx=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),tf=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),tb=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ty=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},a.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tv=1,tw=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,076 bytes, line 111
111{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:a,...i}=e,r="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:tv++,n=this.toasts.find(e=>e.id===r),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),n?this.toasts=this.toasts.map(t=>t.id===r?(this.publish({...t,...e,id:r,title:a}),{...t,...e,id:r,dismissible:s,title:a}):t):this.addToast({title:a,...i,dismissible:s,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
111this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let i,r;if(!t)return;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n=Promise.resolve(e instanceof Function?e():e),s=void 0!==r,l=n.then(async e=>{if(i=["resolve",e],a.default.isValidElement(e))s=!1,this.create({id:r,type:"default",message:e});else if(tj(e)&&!e.ok){s=!1;let i="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,n="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,l="object"!=typeof i||a.default.isValidElement(i)?{message:i}:i;this.create({id:r,type:"error",description:n,...l})}else if(e instanceof Error){s=!1;let i="function"==typeof t.error?await t.error(e):t.error,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof i||a.default.isValidElement(i)?{message:i}:i;this.create({id:r,type:"error",description:n,...l})}else if(void 0!==t.success){s=!1;let i="function"==typeof t.success?await t.success(e):t.success,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof i||a.default.isValidElement(i)?{message:i}:i;this.create({id:r,type:"success",description:n,...l})}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){s=!1;let i="function"==typeof t.error?await t.error(e):t.error,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof i||a.default.isValidElement(i)?{message:i}:i;this.create({id:r,type:"error",description:n,...l})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),null==t.finally||t.finally.call(t)}),o=()=>new Promise((e,t)=>l.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:o}:Object.assign(r,{unwrap:o})},this.custom=(e,t)=>{let a=(null==t?void 0:t.id)||tv++;return this.create({jsx:e(a),id:a,...t}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},tj=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,tN=Object.assign((e,t)=>{let a=(null==t?void 0:t.id)||tv++;return tw.addToast({title:e,...t,id:a}),a},{success:tw.success,info:tw.info,warning:tw.warning,error:tw.error,custom:tw.custom,message:tw.message,promise:tw.promise,dismiss:tw.dismiss,loading:tw.loading},{getHistory:()=>tw.toasts,getToasts:()=>tw.getActiveToasts()});function t_(e){return void 0!==e.label}function tk(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 111
111("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
111let tS=e=>{var t,i,r,n,s,l,o,d,c,p,u,m,h;let{invert:g,toast:x,unstyled:f,interacting:b,setHeights:y,visibleToasts:v,heights:w,index:j,toasts:N,expanded:_,removeToast:k,defaultRichColors:S,closeButton:C,style:A,cancelButtonStyle:z,actionButtonStyle:E,className:L="",descriptionClassName:T="",duration:I,position:M,gap:B,expandByDefault:$,classNames:F,icons:P,closeButtonAriaLabel:R="Close toast"}=e,[D,W]=a.default.useState(null),[H,O]=a.default.useState(null),[q,U]=a.default.useState(!1),[G,Z]=a.default.useState(!1),[V,Y]=a.default.useState(!1),[J,K]=a.default.useState(!1),[X,Q]=a.default.useState(!1),[ee,et]=a.default.useState(0),[ea,ei]=a.default.useState(0),er=a.default.useRef(x.duration||I||4e3),en=a.default.useRef(null),es=a.default.useRef(null),el=0===j,eo=j+1<=v,ed=x.type,ec=!1!==x.dismissible,ep=x.className||"",eu=x.descriptionClassName||"",em=a.default.useMemo(()=>w.findIndex(e=>e.toastId===x.id)||0,[w,x.id]),eh=a.default.useMemo(()=>{var e;return null!=(e=x.closeButton)?e:C},[x.closeButton,C]),eg=a.default.useMemo(()=>x.duration||I||4e3,[x.duration,I]),ex=a.default.useRef(0),ef=a.default.useRef(0),eb=a.default.useRef(0),ey=a.default.useRef(null),[ev,ew]=M.split("-"),ej=a.default.useMemo(()=>w.reduce((e,t,a)=>a>=em?e:e+t.height,0),[w,em]),eN=(()=>{let[e,t]=a.default.useState(document.hidden);return a.default.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),e_=x.invert||g,ek="loading"===ed;ef.current=a.default.useMemo(()=>em*B+ej,[em,ej]),a.default.useEffect(()=>{er.current=eg},[eg]),a.default.useEffect(()=>{U(!0)},[]),a.default.useEffect(()=>{let e=es.current;if(e){let t=e.getBoundingClientRect().height;return ei(t),y(e=>[{toastId:x.id,height:t,position:x.position},...e]),()=>y(e=>e.filter(e=>e.toastId!==x.id))}},[y,x.id]),a.default.useLayoutEffect(()=>{if(!q)return;let e=es.current,t=e.style.height;e.style.height="auto";let a=e.getBoundingClientRect().height;e.style.height=t,ei(a),y(e=>e.find(e=>e.toastId===x.id)?e.map(e=>e.toastId===x.id?{...e,height:a}:e):[{toastId:x.id,height:a,position:x.position},...e])},[q,x.title,x.description,y,x.id,x.jsx,x.action,x.cancel]);let eS=a.default.useCallback(()=>{Z(!0),et(ef.current),y(e=>e.filter(e=>e.toastId!==x.id)),setTimeout(()=>{k(x)},200)},[x,k,y,ef]);a.default.useEffect(()=>{let e;if((!x.promise||"loading"!==ed)&&x.duration!==1/0&&"loading"!==x.type){if(_||b||eN){if(eb.current<ex.current){let e=new Date().getTime()-ex.current;er.current=er.current-e}eb.current=new Date().getTime()}else er.current!==1/0&&(ex.current=new Date().getTime(),e=setTimeout(()=>{null==x.onAutoClose||x.onAutoClose.call(x,x),eS()},er.current));return()=>clearTimeout(e)}},[_,b,x,ed,eN,eS]),a.default.useEffect(()=>{x.delete&&(eS(),null==x.onDismiss||x.onDismiss.call(x,x))},[eS,x.delete]);let eC=x.icon||(null==P?void 0:P[ed])||(e=>{switch(e){case"success":return tg;case"info":return tf;case"warning":return tx;case"error":return tb;default:return null}})(ed);return a.default.createElement("li",{tabIndex:0,ref:es,className:tk(L,ep,null==F?void 0:F.toast,null==x||null==(t=x.classNames)?void 0:t.toast,null==F?void 0:F.default,null==F?void 0:F[ed],null==x||null==(i=x.classNames)?void 0:i[ed]),"data-sonner-toast":"","data-rich-colors":null!=(p=x.richColors)?p:S,"data-styled":!(x.jsx||x.unstyled||f),"data-mounted":q,"data-promise":!!x.promise,"data-swiped":X,"data-removed":G,"data-visible":eo,"data-y-position":ev,"data-x-position":ew,"data-index":j,"data-front":el,"data-swiping":V,"data-dismissible":ec,"data-type":ed,"data-invert":e_,"data-swipe-out":J,"data-swipe-direction":H,"data-expanded":!!(_||$&&q),"data-testid":x.testId,style:{"--index":j,"--toasts-before":j,"--z-index":N.length-j,"--offset":`${G?ee:ef.current}px`,"--initial-height":$?"auto":`${ea}px`,...A,...x.style},onDragEnd:()=>{Y(!1),W(null),ey.current=null},onPointerDown:e=>{2===e.button||ek||!ec||(en.current=new Date,et(ef.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Y(!0),ey.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,a,i,r;if(J||!ec)return;ey.current=null;let n=Number((null==(e=es.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=es.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),l=new Date().getTime()-(null==(a=en.current)?void 0:a.getTime()),o="x"===D?n:s,d=Math.abs(o)/l;if(Math.abs(o)>=45||d>.11){et(ef.current),null==x.onDismiss||x.onDismiss.call(x,x),"x"===D?O(n>0?"right":"left"):O(s>0?"down":"up"),eS(),K(!0);return}null==(i=es.current)||i.style.setProperty("--swipe-amount-x","0px"),null==(r=es.current)||r.style.setProperty("--swipe-amount-y","0px"),Q(!1),Y(!1),W(null)},onPointerMove:t=>{var a,i,r,n;if(!ey.current||!ec||(null==(a=window.getSelection())?void 0:a.toString().length)>0)return;let s=t.clientY-ey.current.y,l=t.clientX-ey.current.x,o=null!=(n=e.swipeDirections)?n:function(e){let[t,a
111]=e.split("-"),i=[];return t&&i.push(t),a&&i.push(a),i}(M);!D&&(Math.abs(l)>1||Math.abs(s)>1)&&W(Math.abs(l)>Math.abs(s)?"x":"y");let d={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if("y"===D){if(o.includes("top")||o.includes("bottom"))if(o.includes("top")&&s<0||o.includes("bottom")&&s>0)d.y=s;else{let e=s*c(s);d.y=Math.abs(e)<Math.abs(s)?e:s}}else if("x"===D&&(o.includes("left")||o.includes("right")))if(o.includes("left")&&l<0||o.includes("right")&&l>0)d.x=l;else{let e=l*c(l);d.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&Q(!0),null==(i=es.current)||i.style.setProperty("--swipe-amount-x",`${d.x}px`),null==(r=es.current)||r.style.setProperty("--swipe-amount-y",`${d.y}px`)}},eh&&!x.jsx&&"loading"!==ed?a.default.createElement("button",{"aria-label":R,"data-disabled":ek,"data-close-button":!0,onClick:ek||!ec?()=>{}:()=>{eS(),null==x.onDismiss||x.onDismiss.call(x,x)},className:tk(null==F?void 0:F.closeButton,null==x||null==(r=x.classNames)?void 0:r.closeButton)},null!=(u=null==P?void 0:P.close)?u:ty):null,(ed||x.icon||x.promise)&&null!==x.icon&&((null==P?void 0:P[ed])!==null||x.icon)?a.default.createElement("div",{"data-icon":"",className:tk(null==F?void 0:F.icon,null==x||null==(n=x.classNames)?void 0:n.icon)},x.promise||"loading"===x.type&&!x.icon?x.icon||((null==P?void 0:P.loading)?a.default.createElement("div",{className:tk(null==F?void 0:F.loader,null==x||null==(h=x.classNames)?void 0:h.loader,"sonner-loader"),"data-visible":"loading"===ed},P.loading):a.default.createElement(th,{className:tk(null==F?void 0:F.loader,null==x||null==(m=x.classNames)?void 0:m.loader),visible:"loading"===ed})):null,"loading"!==x.type?eC:null):null,a.default.createElement("div",{"data-content":"",className:tk(null==F?void 0:F.content,null==x||null==(s=x.classNames)?void 0:s.content)},a.default.createElement("div",{"data-title":"",className:tk(null==F?void 0:F.title,null==x||null==(l=x.classNames)?void 0:l.title)},x.jsx?x.jsx:"function"==typeof x.title?x.title():x.title),x.description?a.default.createElement("div",{"data-description":"",className:tk(T,eu,null==F?void 0:F.description,null==x||null==(o=x.classNames)?void 0:o.description)},"function"==typeof x.description?x.description():x.description):null),a.default.isValidElement(x.cancel)?x.cancel:x.cancel&&t_(x.cancel)?a.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||z,onClick:e=>{!t_(x.cancel)||ec&&(null==x.cancel.onClick||x.cancel.onClick.call(x.cancel,e),eS())},className:tk(null==F?void 0:F.cancelButton,null==x||null==(d=x.classNames)?void 0:d.cancelButton)},x.cancel.label):null,a.default.isValidElement(x.action)?x.action:x.action&&t_(x.action)?a.default.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||E,onClick:e=>{!t_(x.action)||(null==x.action.onClick||x.action.onClick.call(x.action,e),e.defaultPrevented||eS())},className:tk(null==F?void 0:F.actionButton,null==x||null==(c=x.classNames)?void 0:c.actionButton)},x.action.label):null)};function tC(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let tA=a.default.forwardRef(function(e,t){let{id:i,invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:o,className:d,offset:c,mobileOffset:p,theme:u="light",richColors:m,duration:h,style:g,visibleToasts:x=3,toastOptions:f,dir:b=tC(),gap:y=14,icons:v,containerAriaLabel:w="Notifications"}=e,[j,N]=a.default.useState([]),_=a.default.useMemo(()=>i?j.filter(e=>e.toasterId===i):j.filter(e=>!e.toasterId),[j,i]),k=a.default.useMemo(()=>Array.from(new Set([n].concat(_.filter(e=>e.position).map(e=>e.position)))),[_,n]),[S,C]=a.default.useState([]),[A,z]=a.default.useState(!1),[E,L]=a.default.useState(!1),[T,I]=a.default.useState("system"!==u?u:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=a.default.useRef(null),B=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=a.default.useRef(null),F=a.default.useRef(!1),P=a.default.useCallback(e=>{N(t=>{var a;return(null==(a=t.find(t=>
111t.id===e.id))?void 0:a.delete)||tw.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return a.default.useEffect(()=>tw.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{N(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{ei.default.flushSync(()=>{N(t=>{let a=t.findIndex(t=>t.id===e.id);return -1!==a?[...t.slice(0,a),{...t[a],...e},...t.slice(a+1)]:[e,...t]})})})}),[j]),a.default.useEffect(()=>{if("system"!==u)return void I(u);if("system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?I("dark"):I("light")})}catch(t){e.addListener(({matches:e})=>{try{e?I("dark"):I("light")}catch(e){console.error(e)}})}},[u]),a.default.useEffect(()=>{j.length<=1&&z(!1)},[j]),a.default.useEffect(()=>{let e=e=>{var t,a;s.every(t=>e[t]||e.code===t)&&(z(!0),null==(a=M.current)||a.focus()),"Escape"===e.code&&(document.activeElement===M.current||(null==(t=M.current)?void 0:t.contains(document.activeElement)))&&z(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),a.default.useEffect(()=>{if(M.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,F.current=!1)}},[M.current]),a.default.createElement("section",{ref:t,"aria-label":`${w} ${B}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((t,i)=>{var n;let s,[u,w]=t.split("-");return _.length?a.default.createElement("ol",{key:t,dir:"auto"===b?tC():b,tabIndex:-1,ref:M,className:d,"data-sonner-toaster":!0,"data-sonner-theme":T,"data-y-position":u,"data-x-position":w,style:{"--front-toast-height":`${(null==(n=S[0])?void 0:n.height)||0}px`,"--width":"356px","--gap":`${y}px`,...g,...(s={}
111,[c,p].forEach((e,t)=>{let a=1===t,i=a?"--mobile-offset":"--offset",r=a?"16px":"24px";function n(e){["top","right","bottom","left"].forEach(t=>{s[`${i}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?n(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?s[`${i}-${t}`]=r:s[`${i}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):n(r)}),s)},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(F.current||(F.current=!0,$.current=e.relatedTarget))},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{E||z(!1)},onDragEnd:()=>z(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},_.filter(e=>!e.position&&0===i||e.position===t).map((i,n)=>{var s,d;return a.default.createElement(tS,{key:i.id,icons:v,index:n,toast:i,defaultRichColors:m,duration:null!=(s=null==f?void 0:f.duration)?s:h,className:null==f?void 0:f.className,descriptionClassName:null==f?void 0:f.descriptionClassName,invert:r,visibleToasts:x,closeButton:null!=(d=null==f?void 0:f.closeButton)?d:o,interacting:E,position:t,style:null==f?void 0:f.style,unstyled:null==f?void 0:f.unstyled,classNames:null==f?void 0:f.classNames,cancelButtonStyle:null==f?void 0:f.cancelButtonStyle,actionButtonStyle:null==f?void 0:f.actionButtonStyle,closeButtonAriaLabel:null==f?void 0:f.closeButtonAriaLabel,removeToast:P,toasts:_.filter(e=>e.position==i.position),heights:S.filter(e=>e.position==i.position),setHeights:C,expandByDefault:l,gap:y,expanded:A,swipeDirections:e.swipeDirections})})):null}))});var tz=e.i(871689);let tE=(0,O.default)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),tL=(0,O.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var tT=e.i(406120),tI=e.i(423609),tM=e.i(531278),tB=e.i(346897),t$=e.i(350627),tF=e.i(420622),tP=e.i(620437);let tR=(0,O.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),tD=(0,O.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var tW=e.i(462663);let tH=/^[\s\u00a0]*(?:\d+[.)]|[*\-âââ¢Â·âªââ¦â£])[\s\u00a0]*/;function tO(e){return e.split(/(\*\*[^*]+\*\*)/g).map((e,a)=>e.startsWith("**")&&e.endsWith("**")?(0,t.jsx)("strong",{children:e.slice(2,-2)},a):e)}function tq({sectionKey:e,title:a,summary:i,items:r=[],shortLabel:n,Icon:s}){return(0,t.jsxs)("section",{className:"rsec-report-section",id:"rsec-"+e,role:"region","aria-label":a,children:[(0,t.jsxs)("header",{className:"rsec-head",children:[(0,t.jsx)("span",{className:"rsec-badge","aria-hidden":"true",children:s?(0,t.jsx)(s,{size:15}):e}),(0,t.jsxs)("div",{className:"rsec-head-text",children:[(0,t.jsx)("span",{className:"rsec-kicker",children:n}),(0,t.jsx)("span",{className:"rsec-title",children:a})]})]}),(0,t.jsxs)("div",{className:"rsec-inner",children:[i?(0,t.jsx)("p",{children:tO(i)}):null,r.length>0?(0,t.jsx)("ul",{children:r.map((e,a)=>(0,t.jsx)("li",{children:tO(function(e){let t,a=e;do t=a,a=a.replace(tH,"");while(a!==t)return a.trim()}(e))},a))}):null]})]})}var tU=e.i(907439),tG=e.i(239567),tZ=e.i(924504),tV=e.i(692515);function tY(e){return e.replace(/(^|[\s'"/()&.,-])([a-z])/g,(e,t,a)=>`${t}${a.toUpperCase()}`)}let tJ=["Checking UAE business registryâ¦","Applying MCFZ naming rulesâ¦","Generating compliant alternativesâ¦"];function tK({businessName:e,legalEntityType:i,activity:r,entityNameFallback:n="Your company",onBusinessNameChange:s,onAvailabilityChange:l,onCheckingChange:o,onFetchErrorChange:c,activeReportSec:p="A",setupReport:u=null,loadingReport:m=!1,reportError:h="",reportLoadMsgIdx:g=0,reportLoadingMessages:x=[],onRetryReport:f,reportSectionsMeta:b={}}){let[y,v]=(0,a.useState)(null),[w,j]=(0,a.useState)(!0),[N,_]=(0,a.useState)(!1),[k,S]=(0,a.useState)(!1),[C,A]=(0,a.useState)(""),[z,E]=(0,a.useState)(""),[L,T]=(0,a.useState)(""),[I,M]=(0,a.useState)("phonetic"),[B,$]=(0,a.useState)(!1),[F,P]=(0,a.useState)(0),R=(0,a.useRef)(null),D=(0,a.useRef)(!1),W=(0,a.useRef)(0);(0,a.useEffect)(()=>{o?.(w)},[w,o]),(0,a.useEffect)(()=>{c?.(C)},[C,c]),(0,a.useEffect)(()=>
111{if(!w)return;let e=setInterval(()=>P(e=>(e+1)%tJ.length),2200);return()=>clearInterval(e)},[w]);let H=(0,a.useCallback)(e=>{v(e),l?.(e)},[l]),O=(0,a.useCallback)(async e=>{let t=e.trim();if(!t)return;let a=++W.current;j(!0),A(""),c?.(""),T("");let n=(0,tZ.fetchNameSuggestions)({businessName:t,legalEntityType:i,activity:r}),{result:s,fetchError:l,rawResults:o}=await (0,tZ.runAvailabilityCheck)({businessName:t,legalEntityType:i,activity:r});if(a===W.current){if(l||!s){let e=l||"Name check failed.";A(e),H(null),c?.(e),j(!1),_(!1);return}H(s),j(!1),_(!0),n.then(e=>{a===W.current&&e?.suggestions?.length&&H({...s,nameSuggestions:e})}),(async()=>{try{let e=await (0,tZ.hydrateNameSuggestions)(s,{legalEntityType:i,activity:r,rawResults:o});if(a!==W.current||!e)return;H({...s,nameSuggestions:e})}finally{a===W.current&&_(!1)}})()}},[r,H,i,c]);(0,a.useEffect)(()=>{D.current||(D.current=!0,O(e))},[e,O]),(0,a.useEffect)(()=>{if(!B)return;let e=e=>{R.current?.contains(e.target)||$(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[B]);let q=async()=>{let e=z.trim();e&&!w&&(s(tY(e)),E(""),T(""),A(""),await O(e))},U=async()=>{if(y&&!N&&!k){_(!0),S(!0);try{let e=await (0,tZ.fetchNameSuggestions)({businessName:y.name,legalEntityType:i,activity:r,similarRegisteredNames:!1===y.registry.available?y.registry.similarNames??[]:(0,tG.readNonActiveRegistryNames)(y.registry.raw?.results??[]),regenerate:!0});if(!e)return;H({...y,nameSuggestions:e})}finally{_(!1),S(!1)}}},G=async e=>{if(M(e),$(!1),!y||N)return;let t="phonetic"===e?y.nameSuggestions?.arabicPhoneticSuggestion:y.nameSuggestions?.arabicDirectSuggestion;if(!(0,tV.isArabicScriptName)(t)){_(!0);try{let e=await (0,tZ.fetchNameSuggestions)({businessName:y.name,legalEntityType:i,activity:r,similarRegisteredNames:!1===y.registry.available?y.registry.similarNames??[]:(0,tG.readNonActiveRegistryNames)(y.registry.raw?.results??[])});if(!e)return;H({...y,nameSuggestions:e})}finally{_(!1)}}},Z=y?(0,tV.resolveAvailabilityDisplay)(y.registry,y.nameSuggestions,{proposedName:y.name||e,legalEntityType:i,compliance:y.compliance}):null,V=Z?(0,tV.resolveAvailabilityTone)(Z.statusLabel):"is-conditional",Y=u?.sections.find(e=>e.key===p)||u?.sections[0]||null,J=Y?b[Y.key]:void 0,K=L?(0,tU.formatDisplayNameWithLegalEntityType)(L,i):(0,tV.resolveReportHeaderEnglishName)(y,e,n,i),X="phonetic"===I?y?.nameSuggestions?.arabicPhoneticSuggestion:"direct"===I?y?.nameSuggestions?.arabicDirectSuggestion:"",Q=(0,tV.shouldShowReportHeaderArabic)(y)&&(0,tV.isArabicScriptName)(X)?X:"";return w&&!y?(0,t.jsx)("div",{className:"name-availability-step",children:(0,t.jsxs)("div",{className:"report-loading",children:[(0,t.jsx)("div",{className:"rl-spinner"}),(0,t.jsx)("div",{className:"rl-msg",children:tJ[F]},F),(0,t.jsxs)("div",{className:"rl-skeletons",children:[(0,t.jsx)("div",{className:"skel",style:{width:"88%"}}),(0,t.jsx)("div",{className:"skel",style:{width:"72%"}}),(0,t.jsx)("div",{className:"skel",style:{width:"80%"}})]})]})}):C&&!y?(0,t.jsx)("div",{className:"name-availability-step",children:(0,t.jsxs)("div",{className:"report-error report-error-retry",children:[(0,t.jsx)("div",{children:C}),(0,t.jsx)("button",{type:"button",className:"submit slim gen-btn",onClick:()=>void O(e),children:"Try again â"})]})}):(0,t.jsx)("div",{className:"name-availability-step",children:(0,t.jsxs)("div",{className:"report",children:[(0,t.jsx)("div",{className:"report-head",children:(0,t.jsxs)("div",{className:"rh-top",children:[(0,t.jsxs)("div",{className:"rh-top-main",children:[(0,t.jsxs)("h3",{children:[K?(0,t.jsx)("span",{className:"rh-entity",children:K}):(0,t.jsx)("span",{className:"rh-entity-loading","aria-label":"Loading company name"}),Q?(0,t.jsx)("span",{className:"rh-entity-arabic",dir:"rtl",children:Q}):null]}),(0,t.jsxs)("div",{className:"rh-arabic-menu",ref:R,children:[(0,t.jsxs)("button",{type:"button",className:"rh-translate-btn rh-translate-btn--select","aria-label":"Translation options","aria-haspopup":"menu","aria-expanded":B,disabled:N||!y,onClick:()=>$(e=>!e),children:[(0,t.jsx)(tR,{size:14,"aria-hidden":"true"}),(0,t.jsx)("span",{children:"phonetic"===I?"Phonetic":"Direct translation"}
111),(0,t.jsx)(d.ChevronDown,{size:14,className:B?"rotate-180":"","aria-hidden":"true"})]}),B?(0,t.jsxs)("div",{className:"rh-arabic-dropdown",role:"menu","aria-label":"Arabic name style",children:[(0,t.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":"direct"===I,className:"direct"===I?"is-active":"",disabled:N||!y,onClick:()=>void G("direct"),children:[(0,t.jsx)("span",{children:"Direct translation"}),"direct"===I?(0,t.jsx)(el.Check,{className:"h-3.5 w-3.5",strokeWidth:2.6,"aria-hidden":"true"}):null]}),(0,t.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":"phonetic"===I,className:"phonetic"===I?"is-active":"",disabled:N||!y,onClick:()=>void G("phonetic"),children:[(0,t.jsx)("span",{children:"Phonetic"}),"phonetic"===I?(0,t.jsx)(el.Check,{className:"h-3.5 w-3.5",strokeWidth:2.6,"aria-hidden":"true"}):null]})]}):null]}),(0,t.jsx)("span",{className:"rh-regen-tip","data-tooltip":"Regenerate suggestions",children:(0,t.jsx)("button",{type:"button",className:"rh-regen"+(k?" is-loading":""),"aria-label":"Regenerate suggestions",onClick:()=>void U(),disabled:N||k||!y,children:(0,t.jsx)(tD,{size:16,"aria-hidden":"true"})})})]}),(0,t.jsx)("div",{className:"rh-actions",children:(0,t.jsx)("div",{className:"rsec-name-recheck",children:(0,t.jsxs)("div",{className:"rsec-name-recheck-controls",children:[(0,t.jsx)("input",{id:"report-name-recheck",value:z,onChange:e=>E(tY(e.target.value)),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),q())},placeholder:"Enter a new company name",autoComplete:"off"}),(0,t.jsx)("button",{type:"button",className:"submit rsec-recheck-cta",disabled:!z.trim()||w,onClick:()=>void q(),children:w?"Checking...":"Check availability"})]})})})]})}),Z?(0,t.jsx)("section",{className:"rsec-panel rsec-availability-panel",id:"rsec-A",role:"region","aria-label":"Name availability and guidelines",children:(0,t.jsxs)("div",{className:"rsec-inner rsec-availability-inner",children:[(0,t.jsx)("div",{className:"rsec-availability-actions",children:(0,t.jsxs)("div",{className:"rsec-availability-badge "+V,tabIndex:0,children:[(0,t.jsx)("span",{className:"rsec-availability-dot","aria-hidden":"true"}),(0,t.jsx)("span",{children:Z.statusLabel})]})}),"Name available"===Z.statusLabel?(0,t.jsxs)("p",{className:"rsec-availability-congrats",children:["Congrats ",(0,tU.formatDisplayNameWithLegalEntityType)(e,i)," is Available!"]}):Z.summary?(0,t.jsx)("p",{className:"rsec-availability-summary",children:Z.summary}):null,(0,t.jsx)("p",{className:"rsec-availability-note",children:tV.PROVISIONAL_CHECK_NOTE}),Z.similarNames.length>0&&y?.registry.available===!1?(0,t.jsxs)("div",{className:"rsec-guidelines-block",children:[(0,t.jsx)("p",{className:"rsec-guidelines-label",children:"Similar registered names"}),(0,t.jsx)("ul",{className:"rsec-guidelines-list",children:Z.similarNames.map(e=>(0,t.jsx)("li",{children:e},e))})]}):null,(0,t.jsx)(tW.NameSuggestionsBlock,{suggestions:Z.suggestions,loading:N,legalEntityType:i,nameIsAvailable:"Name available"===Z.statusLabel,onSelect:e=>{let t=e.trim();t&&(E(tY(t)),T(""),A(""))}}),m?(0,t.jsxs)("div",{className:"rsec-report-loading",children:[(0,t.jsx)("div",{className:"rl-spinner"}),x.length>0?(0,t.jsx)("div",{className:"rl-msg",children:x[g%x.length]},g):(0,t.jsx)("div",{className:"rl-msg",children:"Drafting your setup reportâ¦"}),(0,t.jsxs)("div",{className:"rl-skeletons",children:[(0,t.jsx)("div",{className:"skel",style:{width:"88%"}}),(0,t.jsx)("div",{className:"skel",style:{width:"72%"}})]})]}):null,!h||m||u?null:(0,t.jsxs)("div",{className:"rsec-report-error",children:[(0,t.jsx)("div",{children:h}),f?(0,t.jsx)("button",{type:"button",className:"submit slim gen-btn",onClick:f,children:"Try again â"}):null]}),Y&&!m?(0,t.jsx)(tq,{sectionKey:Y.key,title:Y.title,summary:Y.summary,items:Y.items,shortLabel:J?.short||Y.key,Icon:J?.Icon}):null]})}):null]})})}var tX=e.i(639049);function tQ(e){return Array.isArray(e)?e.map(e=>String(e).trim()).filter(Boolean):"string"==typeof e&&e.trim()?e.split(",").map(e=>e.trim()).filter(Boolean):[]}let t0="name_availability",t1="filings:company-setup-wizard-draft",t2="company-setup-mandatory-fields";function t5({name:e,className:a=""}){let i=em(e);return i?(0,t.jsx)("img",{src:i,alt:"",width:18,height:12,loading:"lazy",decoding:"async",className:"ms-flag"+(a?` ${a}`:""),"aria-hidden":"true"}):null}function t6({items:e,renderChip:i}){let r=(0,a.useRef)(null),n=(0,a.useRef)(null),[s,l]=(0,a.useState)(()=>Math.min(e.length,2)),o=(0,a.useCallback)(()=>{let t=r.current,a=n.current;if(!t||!a||0===e.length)return void l(e.length);let i=Math.max(0,t.clientWidth-8);if(i<=0)return;let s=Array.from(a.querySelectorAll("[data-ms-measure-chip]")).map(e=>e.getBoundingClientRect().width);if(0===s.length||s.every(e=>e<=0))return void requestAnimationFrame(()=>{let t=Array.from(a.querySelectorAll("[data-ms-measure-chip]")).map(e=>e.getBoundingClientRect().width);if(t.some(e=>e>0)){let a=0,r=0;for(let n=0;n<e.length;n++){let s=t[n]||0;if(s<=0)break;let l=4*(r>0),o=e.length-(n+1),d=a+l+s;if(0===o){d<=i&&(r+=1);break}if(d+4+40<=i)a=d,r+=1;else break}l(Math.max(1,Math.min(r||1,e.length)))}});let o=0,d=0;for(let t=0;t<e.length;t++){let a=s[t]||0;if(a<=0)break;let r=4*(d>0),n=e.length-(t+1),l=o+r+a;if(0===n){l<=i&&(d+=1);break}if(l+4+40<=i)o=l,d+=1;else break}l(Math.max(1,Math.min(d||1,e.length)))},[e]);if((0,a.useLayoutEffect)(()=>{o()},[o,e]),(0,a.useEffect)(()=>{let e=r.current;if(!e||"u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>requestAnimationFrame(o));return t.observe(e),()=>t.disconnect()}
111,[o]),(0,a.useEffect)(()=>{l(t=>Math.min(t,Math.max(e.length,0)))},[e.length]),0===e.length)return null;let d=Math.min(s,e.length),c=e.slice(0,d),p=e.length-d;return(0,t.jsxs)("span",{className:"ms-tags",ref:r,children:[(0,t.jsx)("span",{className:"ms-tags-measure",ref:n,"aria-hidden":"true",children:e.map(e=>(0,t.jsx)("span",{className:"ms-tag","data-ms-measure-chip":!0,children:i(e)},`m-${e}`))}),c.map(e=>(0,t.jsx)("span",{className:"ms-tag",children:i(e)},e)),p>0&&(0,t.jsxs)("span",{className:"ms-tag more",children:["+",p]})]})}let t4=["Free Zone Establishment (FZE)","Free Zone Company (FZC / FZ-LLC)","Mainland LLC","Branch of a foreign company","Offshore company","Sole establishment"],t8="Free Zone Company (FZC / FZ-LLC)",t3=["1","2","3","4","5","6","7","8","9","10+"],t9=["Tourist Visa (30 Days)","Tourist Visa (60 Days)","Employment Visa","Investor Visa","Golden Visa","Dependent Visa","Cancellation Visa"],t7=["Consulting & professional services","Trading & general trading","E-commerce","Information technology & software","Marketing & advertising","Real estate services","Logistics & freight","Manufacturing & industrial","Education & training","Healthcare services","Media & production","Financial services"],ae=["Dubai","Abu Dhabi","Sharjah","Ajman","Ras Al Khaimah","Fujairah","Umm Al Quwain"],at={Dubai:["IFZA","Meydan Free Zone","Dubai South","DMCC","Dubai Internet City","DAFZA"],"Abu Dhabi":["Masdar City Free Zone","ADGM","Khalifa Industrial Zone Abu Dhabi (KIZAD)","twofour54"],Sharjah:["The Sharjah Research, Technology and Innovation Park (SRTIP)","SHAMS","SPC Free Zone","SAIF Zone","Hamriyah Free Zone"],Ajman:["Ajman Free Zone","Ajman NuVentures Centre Free Zone (ANCFZ)","Ajman Media City"],"Ras Al Khaimah":["RAKEZ","RAK ICC"],Fujairah:["Fujairah Creative City","Fujairah Free Zone"],"Umm Al Quwain":["UAQ Free Trade Zone"]},aa=[{key:"businessName",label:"Proposed Business name"},{key:"activities",label:"Business activity"},{key:"emirate",label:"Emirates"},{key:"freezone",label:"Freezones"},{key:"nationality",label:"Nationality of promoters"}],ai=[{key:"businessName",label:"Business name"},{key:"activities",label:"Business activity"},{key:"emirate",label:"Emirates"},{key:"freezone",label:"Free zone"}],ar=[{key:"visaType",label:"Type of Visa"},{key:"applicantCount",label:"Number of applicant"}],an={kezad:"Khalifa Industrial Zone Abu Dhabi (KIZAD)",kizad:"Khalifa Industrial Zone Abu Dhabi (KIZAD)"};function as(e){return e.toLowerCase().replace(/[^a-z0-9]+/g," ").trim()}function al(e,t){let a=as(t);if(!a)return e;let i=e=>as([e.service_name,e.variant_name].filter(Boolean).join(" ")),r=e=>as([e.service_name,e.variant_name,e.category,e.description,e.about].filter(Boolean).join(" ")),n=null;return a.includes("tourist")&&a.includes("30")?n=e.filter(e=>{let t=i(e);return/\b30\s+days?\b/.test(t)&&/\b(tourist|tourism|visit|travel insurance)\b/.test(t)&&!/\b60\s+days?\b/.test(t)}):a.includes("tourist")&&a.includes("60")?n=e.filter(e=>{let t=i(e);return/\b60\s+days?\b/.test(t)&&/\b(tourist|tourism|visit|travel insurance)\b/.test(t)&&!/\b30\s+days?\b/.test(t)}):a.includes("employment")||a.includes("work")?n=e.filter(e=>/\b(employment|work|employee|labour|labor|mohre|work permit)\b/.test(r(e))):a.includes("investor")?n=e.filter(e=>/\b(investor|partner|shareholder|owner|residence|residency|entry permit|visa stamping|change status|medical|emirates id)\b/.test(r(e))):a.includes("dependent")?n=e.filter(e=>/\b(family|dependent|dependant|spouse|child|children)\b/.test(r(e))):a.includes("golden")?n=e.filter(e=>/\b(golden|green)\b/.test(r(e))):a.includes("cancellation")&&(n=e.filter(e=>/\b(cancel|cancellation|cancelation)\b/.test(r(e)))),n&&n.length>0?n:e}function ao(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}let ad={dubai:[/\bifza\b|international\s*free\s*zone\s*authority/i,/\bmeydan\b/i,/dubai\s*south/i],"abu dhabi":[/masdar\s*city/i],sharjah:[/sharjah\s*research|technology\s*(and|&|,)?\s*innovation\s*park|\bsrtip\b/i],ajman:[/^ajman\s*free\s*zone$/i,/nu\s*ventures|\bancfz\b/i]};function ac(e){return/sharjah\s*research|technology\s*(and|&|,)?\s*innovation\s*park/i.test(e)&&!/\(\s*srtip\s*\)/i.test(e)?"The Sharjah Research, Technology and Innovation Park (SRTIP)":e}function ap(e,t){let a=t.map(ac),i=ad[e.trim().toLowerCase()];if(!i?.length)return a.sort((e,t)=>
111e.localeCompare(t));let r=[],n=new Set;for(let e of i){let t=a.findIndex((t,a)=>!n.has(a)&&e.test(t));t>=0&&(r.push(a[t]),n.add(t))}return[...r,...a.filter((e,t)=>!n.has(t)).sort((e,t)=>e.localeCompare(t))]}function au(e,t){if(!e)return[];let a=new Set,i=t.filter(t=>t.emirate.toLowerCase()===e.toLowerCase()).filter(e=>!e.type.toLowerCase().includes("mainland")).map(e=>e.freezone_city.trim()).filter(e=>e&&!a.has(e)&&!!a.add(e));return i.length?ap(e,i):ap(e,at[e]||[])}function am(e,t,a){let i=e.trim();if(!i)return"";let r=ao(i);return au(t,a).find(e=>{let t=ao(e);return t===r||t.includes(r)||r.includes(t)})||an[r]||i}function ah(e){return e?e.split(/\n/).flatMap(e=>e.split(" * ")).map(e=>e.replace(/^\*\s*/,"").trim()).filter(e=>""!==e):[]}function ag(e){return Array.isArray(e)?[...e.map(e=>{let t=e||{};return{id:Number(t.id??t.catalog_id),service_id:void 0!==t.service_id?Number(t.service_id):void 0,service_name:t.service_name?String(t.service_name):void 0,variant_name:t.variant_name?String(t.variant_name):void 0,category:t.category?String(t.category):void 0,price:void 0!==t.price?Number(t.price):void 0,price_type:void 0!==t.price_type?Number(t.price_type):void 0,currency:t.currency?String(t.currency):void 0,bid:void 0!==t.bid?String(t.bid):void 0,partner_bid:void 0!==t.partner_bid?String(t.partner_bid):void 0,description:t.description?String(t.description):void 0,about:t.about?String(t.about):void 0,government_department:void 0!==t.government_department?String(t.government_department):void 0!==t.emirate?String(t.emirate):void 0}}).filter(e=>Number.isFinite(e.id)&&!!(e.variant_name||e.service_name))].sort((e,t)=>(e.price&&e.price>0?e.price:1/0)-(t.price&&t.price>0?t.price:1/0)):[]}let ax=[3462,3463,418];function af(e){let t=e.find(e=>3474===e.id);return t?[t]:[]}function ab(e){return String(e||"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()}function ay(e){let t=ab([e.category,e.service_name,e.variant_name,e.description].filter(Boolean).join(" "));return/\b(free\s*zone|freezone|mainland|business setup|company setup|company formation|visa allocation|license|licence)\b/.test(t)}function av(e){return String(e||"").toLowerCase().replace(/\(.*?\)/g," ").replace(/[^a-z]+/g," ").trim()}let aw={dubai:[417,3461],"abu dhabi":[2179,2577],sharjah:[1e3],ajman:[3462,3463],"ras al khaimah":[421,422],fujairah:[3474],"umm al quwain":[]};function aj(e,t){let a=av(t);if(!a)return e;let i=aw[a];return e.filter(e=>{let t=av(e.government_department),r=!!i&&i.includes(e.id);return!!t&&t===a||r})}function aN(e){if(0===e.length)return[];let t=new Map(e.map(e=>[e.id,e])),a=ax.map(e=>t.get(e)).filter(e=>!!e);return a.length>0?a:e}function a_(e,t){if(null==e||!Number.isFinite(e))return"AED 0";let a=(t||"AED").toUpperCase();try{return new Intl.NumberFormat("en-AE",{style:"currency",currency:a,maximumFractionDigits:0}).format(e)}catch{return`${a} ${e.toLocaleString()}`}}let ak={A:{Icon:ev,short:"Licenses"},B:{Icon:H.ShieldCheck,short:"UBO Risk"},C:{Icon:U.Building2,short:"Industry"},D:{Icon:t$.Receipt,short:"Tax"},E:{Icon:W.Globe,short:"Jurisdiction"},F:{Icon:tI.Landmark,short:"Banking"},G:{Icon:R.FileText,short:"Documents"},H:{Icon:tE,short:"Timeline"}},aS=Object.keys(ak),aC=["Mapping your activity to license categoriesâ¦","Screening shareholder nationalitiesâ¦","Checking name compliance rulesâ¦","Comparing free zones & tax treatmentâ¦","Assessing banking optionsâ¦","Drafting your setup reportâ¦"];function aA({catalogResponse:e,potentialId:i,pricingContext:r=null,seoHeading:n,seoSubheading:l,pageUrl:o,formVariant:c="default"}={}){let p,h,g,x,f,b,y,v,w,j,[N,_]=(0,a.useState)(1),[k,S]=(0,a.useState)({businessName:"",tradeLicenseNumber:"",businessType:t8,activities:[],emirate:"",freezone:"",visaCount:"1",visaType:"",applicantCount:"",nationality:[]}),[C,A]=(0,a.useState)(null),[z,E]=(0,a.useState)(""),[L,T]=(0,a.useState)(""),[I,M]=(0,a.useState)(null),[B,$]=(0,a.useState)(""),[F,P]=(0,a.useState)({}),[D,H]=(0,a.useState)({}),[O,q]=(0,a.useState)({}),{isAuthenticated:G,sessionData:Z,user:V}=(0,u.useSession)(),{onAuthOpen:Y}=(0,u.useMiddleware)(),J=G&&!!V,K=!!(G&&Z?.status===1&&V?.gid),X=(0,a.useMemo)(()=>{let e=e=>{let t=String(e||"").replace(/\D/g,"");return t&&"0"!==t?t:""},t=Z?.data||{},a=V||{};return e(t.customer_gid)||e(a.customer_gid)||e(t.customer_id)||e(a.customer_id)||e(t.ledgers_id)||e(a.ledgers_id)||e(t.gid)||e(a.gid)||e((0,tX.readWorkidGid)())},[Z?.data,V]),[Q,ee]=(0,a.useState)([]),[et,ea]=(0,a.useState)([]),[er,en]=(0,a.useState)(null),[es,eo]=(0,a.useState)(!1),[ed,ec]=(0,a.useState)(""),[eu,em]=(0,a.useState)(null),[eh,ex]=(0,a.useState)(null),[ef,eb]=(0,a.useState)(""),[ey,ej]=(0,a.useState)([]),eN=(0,a.useRef)(null),ek=(0,a.useRef)(""),eS=(0,a.useRef)(r),eC=(0,a.useRef)(""),eA=(0,a.useRef)(""),ez=(0,a.useRef)(null),eE=(0,a.useRef)(""),eL=(0,a.useRef)(""),eT=(0,a.useRef)(null),eI=(0,a.useRef)(null),eM=(0,a.useRef)(0),[eB,e$]=(0,a.useState)(0),[eF,eD]=(0,a.useState)(!1),[eW,eH]=(0,a.useState)(!1),[eO,eq]=(0,a.useState)(null),[eU,eG]=(0,a.useState)(!1),[eZ,eV]=(0,a.useState)(""),[eY,eJ]=(0,a.useState)(null),eK=(0,a.useRef)(!1),[eX,eQ]=(0,a.useState)("A"),[e0,e1]=(0,a.useState)(!1),[e2,e5]=(0,a.useState)(""),[e6,e4]=(0,a.useState)(0),e8=(0,a.useRef)(null),e3=(0,a.useRef)(null),e9=(0,a.useRef)({}),e7=(0,a.useRef)(null),te=(0,a.useRef)({}),tt=(0,a.useRef)({}),ta=(0,a.useRef)({}),tr=(0,a.useRef)({}),[tn,ts]=(0,a.useState)(null),[tl,to]=(0,a.useState)(null),[td,tc]=(0,a.useState)(!1);(0,a.useEffect)(()=>{tc(!0)},[]),(0,a.useEffect)(()=>
111{if("u"<typeof document)return;let e=document.documentElement,t=document.body,a={htmlOverflow:e.style.overflow,htmlHeight:e.style.height,bodyOverflow:t.style.overflow,bodyHeight:t.style.height,bodyMinHeight:t.style.minHeight,bodyTouchAction:t.style.touchAction,bodyPosition:t.style.position,bodyPaddingBottom:t.style.paddingBottom};return e.style.height="auto",e.style.overflow="visible",t.style.height="auto",t.style.minHeight="100%",t.style.overflow="visible",t.style.position="static",t.style.touchAction="manipulation",t.classList.remove("overflow-hidden"),()=>{e.style.overflow=a.htmlOverflow,e.style.height=a.htmlHeight,t.style.overflow=a.bodyOverflow,t.style.height=a.bodyHeight,t.style.minHeight=a.bodyMinHeight,t.style.touchAction=a.bodyTouchAction,t.style.position=a.bodyPosition,t.style.paddingBottom=a.bodyPaddingBottom}},[]);let tp="accounting"===c,tu="tax"===c,tm="immigration"===c,th=(0,a.useCallback)((e,t)=>{if(!tm)return(0,eR.resolveLeadGidFromContext)(e,V?.gid);let a=e=>{let t=String(e||"").replace(/\D/g,"");return t&&"0"!==t?t:""};return a(X)||a(t?.customer_gid)||a(t?.customer_id)||a(t?.cus_gid)||a(t?.gid)||a(e?.gid)},[tm,X,V?.gid]),tg=tp||tu||tm,tx=(0,tF.shouldIncludeAeNameAvailabilityStep)(o),tf=tg||!tx,tb=tp||tu?ai:tm?ar:aa,ty=(0,a.useMemo)(()=>au(k.emirate,ey),[k.emirate,ey]),tv=t7.length>5,tw=(0,a.useMemo)(()=>{let e=z.trim().toLowerCase();return tv&&e?t7.filter(t=>t.toLowerCase().includes(e)):t7},[z,tv]),tj=ep.length>5,t_=(0,a.useMemo)(()=>{let e=L.trim().toLowerCase();return tj&&e?ep.filter(t=>t.toLowerCase().includes(e)):ep},[L,tj]);(0,a.useLayoutEffect)(()=>{if(!I){ts(null),$("");return}let e=()=>{let e=te.current[I];if(!e)return;let t=e.getBoundingClientRect();ts({top:t.bottom+6,left:t.left,width:t.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),e3.current?.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),e3.current?.removeEventListener("scroll",e)}},[I]),(0,a.useLayoutEffect)(()=>{if(!C){to(null),E(""),T("");return}let e=()=>{let e=e9.current[C];if(!e)return;let t=e.getBoundingClientRect();to({top:t.bottom+6,left:t.left,width:t.width})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),e3.current?.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),e3.current?.removeEventListener("scroll",e)}},[C]),(0,a.useEffect)(()=>{let e=e=>{let t=e.target;Object.values(e9.current).some(e=>e?.contains(t))||e7.current?.contains(t)||A(null),Object.values(te.current).some(e=>e?.contains(t))||Object.values(tt.current).some(e=>e?.contains(t))||M(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let tk=(0,a.useCallback)((e=!1)=>{let t=window.lenis;t?.scrollTo?t.scrollTo(0,{immediate:!e}):window.scrollTo({top:0,left:0,behavior:e?"smooth":"auto"}),document.documentElement.scrollTop=0,document.body.scrollTop=0,e3.current&&(e3.current.scrollTop=0)},[]);(0,a.useEffect)(()=>{tk(!1);let e=window.setTimeout(()=>tk(!1),50),t=window.setTimeout(()=>tk(!1),250);return()=>{window.clearTimeout(e),window.clearTimeout(t)}},[tk]),(0,a.useEffect)(()=>{tk(!1)},[N,tk]),(0,a.useEffect)(()=>{let e=!1;return fetch("/api/v1/core/freezone").then(e=>e.json()).then(t=>{e||ej(Array.isArray(t.data)?t.data:[])}).catch(()=>{e||ej([])}),()=>{e=!0}},[]),(0,a.useEffect)(()=>{let e=!1;return(async()=>{let t=await (0,eR.resolvePricingContextClientSide)(r);if(e)return;tZ()||(tG(),(0,eR.clearPricingContextBusinessFieldsFromStorage)()),t&&(eS.current=t,(0,eR.applyPricingContextToWindowLeadData)(t));let a=t||window.leadData||{},i=String(a.business_name||a.businessName||"").trim(),n=String(a.license_number||a.trade_license_number||a.tradeLicenseNumber||"").trim(),s=String(a.business_activity||"").trim(),l=String(a.freezone||"").trim(),o=String(a.emirate||"").trim(),d=String(a.business_type||"").trim(),c=String(a.visa_count||a.visaCount||a.shareholders||"").trim(),p=String(a.nationality||"").split(",").map(e=>
111e.trim()).filter(Boolean);(i||n||s||l||o||d||c||0!==p.length)&&S(e=>({...e,businessName:e.businessName||i,tradeLicenseNumber:e.tradeLicenseNumber||n,businessType:e.businessType||(t4.includes(d)?d:e.businessType),emirate:e.emirate||(ae.includes(o)?o:e.emirate),freezone:e.freezone||l,visaCount:e.visaCount||(t3.includes(c)?c:e.visaCount),activities:e.activities.length>0?e.activities:s?s.split(",").map(e=>e.trim()).filter(Boolean):e.activities,nationality:e.nationality.length>0?e.nationality:p.length>0?p:e.nationality}))})(),()=>{e=!0}},[r]),(0,a.useEffect)(()=>{S(e=>{if(!e.freezone||!e.emirate||0===ey.length)return e;let t=am(e.freezone,e.emirate,ey);return t&&t!==e.freezone?{...e,freezone:t}:e})},[ey]),(0,a.useEffect)(()=>{if(!e0)return;let e=setInterval(()=>e4(e=>(e+1)%aC.length),2200);return()=>clearInterval(e)},[e0]);let tS=(0,a.useCallback)(async()=>{if(!tg&&0===k.nationality.length)return void e5("Enter the nationality of promoters first â the risk screening needs it.");e1(!0),e5(""),eq(null);try{let e=await fetch("/api/v1/core/uae-setup-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k.businessName||"Not decided",activity:k.activities.join(", ")||(tg?"Accounting and bookkeeping services":"Not specified"),emirate:k.emirate||"No preference",authority:k.freezone||"No preference",businessType:k.businessType||t8,shareholders:Math.max(1,parseInt(k.visaCount,10)||1),nationality:k.nationality.join(", ")||"Not specified"})}),t=await e.json().catch(()=>null),a=t?.report;if(!e.ok||!a||!Array.isArray(a.sections)||0===a.sections.length)throw Error("Could not generate report");eq(a),eQ(a.sections[0].key)}catch(e){console.error("Report error:",e),e5("Couldn't generate the report right now. Please try again.")}finally{e1(!1)}},[k.businessName,k.activities,k.emirate,k.freezone,k.businessType,k.visaCount,k.nationality,tg]),tC=(e,t)=>{if("businessName"===t){let t=(0,eg.validateBusinessName)(e.businessName,{required:!0});return t.valid?null:t.error||"Business name is invalid"}if("visaType"===t&&!String(e.visaType||"").trim())return"Type of Visa is required";if("applicantCount"===t){let t=String(e.applicantCount||"").trim(),a=Number(t);if(!t)return"Number of applicant is required";if(!/^\d+$/.test(t)||!Number.isFinite(a)||a<1)return"Enter a valid number of applicant"}return("activities"!==t&&"nationality"!==t||0!==e[t].length)&&("activities"===t||"nationality"===t||String(e[t]||"").trim())?null:`${tb.find(e=>e.key===t)?.label||"This field"} is required`},tE=100===Math.round(tb.filter(e=>!tC(k,e.key)).length/tb.length*100),tI=(0,a.useCallback)(()=>{tN.error("Please fill all mandatory fields",{id:t2,duration:3200})},[]);(0,a.useEffect)(()=>{tE&&tN.dismiss(t2),tE||1!==N||em(null)},[tE,N]);let tR=(e,t)=>{S(a=>({...a,[e]:t,..."emirate"===e?{freezone:""}:{}})),P(t=>({...t,[e]:!1}))},tD=(e=k.freezone,t=k.emirate)=>am(e,t,ey),tW=e=>{S(t=>({...t,activities:t.activities.includes(e)?t.activities.filter(t=>t!==e):[...t.activities,e]})),P(e=>({...e,activities:!1}))},tH=e=>{S(t=>({...t,nationality:t.nationality.includes(e)?t.nationality.filter(t=>t!==e):[...t.nationality,e]})),P(e=>({...e,nationality:!1}))},tO=e=>{let t={};return tb.forEach(a=>{let i=tC(e,a.key);i&&(t[a.key]=i)}),P(t),0===Object.keys(t).length},tq=e=>{if(!F[e])return null;let a="string"==typeof F[e]?F[e]:`${tb.find(t=>t.key===e)?.label||"This field"} is required`;return(0,t.jsx)("div",{className:"field-error",role:"alert",children:a})},tU=()=>{try{let e=localStorage.getItem(t1)||sessionStorage.getItem(t1);if(!e)return null;let t=JSON.parse(e);if(!t?.form||"object"!=typeof t.form)return null;if("number"==typeof t.expiresAt&&Date.now()>t.expiresAt)return localStorage.removeItem(t1),sessionStorage.removeItem(t1),null;return t}catch{return null}},tG=()=>{try{localStorage.removeItem(t1),sessionStorage.removeItem(t1)}catch{}},tZ=()=>"1"===new URLSearchParams(window.location.search).get(t0),tJ=(e,t=eu)=>{let a={form:k,selectedCatalogId:t,resumeStep2:e,expiresAt:Date.now()+36e5};try{localStorage.setItem(t1,JSON.stringify(a)),sessionStorage.removeItem(t1)}
111catch{try{sessionStorage.setItem(t1,JSON.stringify(a))}catch{}}},at=(e=null)=>{let t=e||null!=eu&&Q.find(e=>e.id===eu)||null,a=eS.current||r||{},n={...a,gid:th(a),potentialId:eC.current||i||a.potentialId,business_name:k.businessName.trim()||a.business_name,license_number:k.tradeLicenseNumber.trim()||a.license_number,business_activity:k.activities.join(", ")||a.business_activity,freezone:tD()||a.freezone,shareholders:Math.max(1,parseInt(k.visaCount,10)||1),business_type:k.businessType||a.business_type,emirate:k.emirate||a.emirate,catalog_id:t?.id||a.catalog_id,service_id:t?.service_id||a.service_id||0,service_name:t?.variant_name||t?.service_name||a.service_name};eS.current=n,(0,eR.applyPricingContextToWindowLeadData)(n),(0,eR.syncPricingContextToUrl)(n)},an=(e=null)=>{let t=e||null!=eu&&Q.find(e=>e.id===eu)||null;tJ(!1,t?.id??null),at(t),_(2),e0||eO||eK.current||(eK.current=!0,tS())},as=e=>{eb(""),Q.length>1&&(ea(Q),en(k));let t=k;if(!tg&&(!k.emirate.trim()||!k.freezone.trim())){let a=function(e,t){let a=ab([e.service_name,e.variant_name,e.category,e.description,e.about].filter(Boolean).join(" "));if(!a)return null;let i=null,r=0;for(let e of t){if(e.type.toLowerCase().includes("mainland"))continue;let t=ab(e.freezone_city);t&&(/ifza|international freezone authority/.test(t)?/\bifza\b|international freezone authority/.test(a):t.split(" ").every(e=>a.includes(e)))&&t.length>r&&(i=e,r=t.length)}return i}(e,ey);a&&(t={...k,emirate:k.emirate.trim()||a.emirate,freezone:k.freezone.trim()||ac(a.freezone_city.trim())})!==k&&S(t)}if(!tO(t)){em(null),tI();let e=tb.find(e=>tC(t,e.key));e&&ta.current[e.key]?.scrollIntoView({behavior:"smooth",block:"center"});return}(em(e.id),tf)?aQ(e):J?an(e):((e=null)=>{let t=e||null!=eu&&Q.find(e=>e.id===eu)||null;aU(),tJ(!0,t?.id??null),at(t),(0,eR.shortenPricingPathInUrl)();let a=new URL(window.location.href);a.searchParams.set(t0,"1");let i=window;i.redir=(0,m.generateRedir)(a.toString());let n=window.innerWidth<768?"Mobile":"Desktop",s=String(i.lead_source??"OG"),l=eS.current||r||{},o=t?.id||l.catalog_id||"",d=t?.service_id||l.service_id||null,c=t?.variant_name||t?.service_name||l.service_name||"",p=aZ(),u=(0,m.generateSignupInfo)({lead_url:`${a.origin}${a.pathname}${a.search}`,lead_source:`AE-Signup-${n}-Journey-${o||""}-${s}`,catalog_id:o,service_id:d,service_name:String(c||""),smart_form:JSON.stringify(aG()),login_lead:o?"1":void 0,spam_filter_done:"1",...p.name?{name:p.name}:{},...p.email?{email:p.email}:{},...p.phone?{phone:p.phone}:{},...p.country_code?{country_code:p.country_code}:{}});u&&(i.signup_info=u),Y?Y("login"):window.__authOpen?.("login")})(e)};(0,a.useEffect)(()=>{if(!tZ())return void tG();let e=tU();e&&(S(t=>({...t,...e.form,activities:tQ(e.form.activities).length?tQ(e.form.activities):t.activities,nationality:tQ(e.form.nationality).length?tQ(e.form.nationality):t.nationality})),"number"==typeof e.selectedCatalogId&&em(e.selectedCatalogId))},[]),(0,a.useEffect)(()=>{if(!tf&&J&&tZ()&&tE){_(2);try{let e=tU();e&&localStorage.setItem(t1,JSON.stringify({...e,resumeStep2:!1,expiresAt:e.expiresAt||Date.now()+36e5}))}catch{}let e=new URL(window.location.href);e.searchParams.has(t0)&&(e.searchParams.delete(t0),window.history.replaceState({},"",`${e.pathname}${e.search}${e.hash}`)),e0||eO||eK.current||(eK.current=!0,tS())}},[J,tE]),(0,a.useEffect)(()=>{!tf&&(2!==N||tE||(_(1),tI()))},[N,tE,tI,tf]),(0,a.useEffect)(()=>{tf||2!==N||!J||!tE||eO||e0||eK.current||(eK.current=!0,tS())},[N,J,tE]);let ad={emirate:"emirate",freezone:"freezone",visaType:"Type of Visa"},ap=(e,a,i,r,n=!1,s)=>{let l=I===e,o=k[e],c=s??a.length>5,p=B.trim().toLowerCase(),u=c&&p?a.filter(e=>e.toLowerCase().includes(p)):a,m=ad[e],h=l&&td&&tn?(0,ei.createPortal)((0,t.jsxs)("div",{className:"select-panel open select-panel-portal","data-lenis-prevent":!0,ref:t=>{tt.current[e]=t},style:{position:"fixed",top:tn.top,left:tn.left,width:tn.width,maxHeight:c?280:240,height:"auto",overflow:"hidden",overscrollBehavior:"contain",zIndex:10050,background:"#ffffff",color:"#08292E",border:"1px solid #ececea",borderRadius:10,boxShadow:"0 18px 38px rgba(17,17,19,.12)",padding:6,display:"flex",flexDirection:"column",gap:4},onTouchMove:e=>e.stopPropagation(),children:[c&&(0,t.jsxs)("div",{style:{position:"relative",flex:"none",paddingBottom:2},children:[(0,t.jsx)(ew.Search,{size:13,"aria-hidden":"true",style:{position:"absolute",left:10,top:"50%",transform:"translateY(-55%)",color:"#8a8a86",pointerEvents:"none"}}
111),(0,t.jsx)("input",{type:"search",value:B,autoFocus:!0,placeholder:`Search ${m}â¦`,"aria-label":`Search ${m}`,onChange:e=>$(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:{width:"100%",boxSizing:"border-box",border:"1px solid #ececea",borderRadius:8,padding:"8px 10px 8px 30px",fontSize:12.5,fontWeight:600,fontFamily:"inherit",color:"#08292E",background:"#fafaf8",outline:"none"}})]}),(0,t.jsx)("div",{className:"select-options-scroll","data-lenis-prevent":!0,style:{flex:"1 1 auto",minHeight:0,maxHeight:c?220:228,overflowX:"hidden",overflowY:"scroll",display:"flex",flexDirection:"column",gap:4},onWheel:e=>{let t=e.currentTarget;t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation()},children:0===u.length?(0,t.jsx)("div",{style:{padding:"10px 9px",fontSize:12,fontWeight:600,color:"#8a8a86",textAlign:"center",width:"100%"},children:"No results found"}):u.map(a=>{let i=a===o;return(0,t.jsxs)("button",{type:"button",className:"select-option"+(i?" selected":""),onClick:()=>{tR(e,a),M(null)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,width:"100%",border:"none",background:i?"#f6f6f4":"transparent",color:"#08292E",borderRadius:8,padding:"8px 9px",fontSize:12.5,fontWeight:600,textAlign:"left",cursor:"pointer",fontFamily:"inherit"},children:[(0,t.jsx)("span",{children:a}),i&&(0,t.jsx)(el.Check,{size:14,"aria-hidden":"true"})]},a)})})]}),document.body):null;return(0,t.jsxs)("div",{className:"select-control float-field"+(l||o?" is-floating":""),ref:t=>{te.current[e]=t},children:[(0,t.jsxs)("span",{className:"float-label",children:[tb.find(t=>t.key===e)?.label,(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:" *"})]}),(0,t.jsxs)("button",{type:"button",className:"select-trigger"+(l?" open":""),ref:t=>{tr.current[e]=t},disabled:n,onClick:()=>{n||(A(null),$(""),M(t=>t===e?null:e))},children:[(0,t.jsx)(r,{className:"icon",size:14,"aria-hidden":"true"}),(0,t.jsx)("span",{className:o?"select-value":"placeholder",children:o||i}),(0,t.jsx)("span",{className:"select-chev","aria-hidden":"true",children:l?(0,t.jsx)(tL,{size:16}):(0,t.jsx)(d.ChevronDown,{size:16})})]}),h]})},ax=(0,a.useMemo)(()=>2!==N||tf?"":eU?"Name check in progress.":eZ||(0,tV.resolveCheckoutBlockReason)(eY,k.businessName),[N,tf,eU,eZ,eY,k.businessName]),aw={1:tE,2:tE&&!!eY&&!0===eY.registry.available&&eY.compliance?.status!=="Not Available"&&!ax,3:!1};(0,a.useMemo)(()=>eO?.sections?.length?eO.sections.map(e=>e.key):aS,[eO]);let aE=(0,a.useCallback)(e=>{eQ(e),window.setTimeout(()=>{if(window.matchMedia("(min-width: 721px)").matches)return;let t=document.getElementById("rsec-"+e);if(!t)return;let a=t.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top:Math.max(0,a),behavior:"smooth"})},50)},[]),aL=(0,a.useMemo)(()=>ag(e?.catalog),[e?.catalog]),aT=Number(eS.current?.catalog_id??r?.catalog_id)||null,aI=eu??tU()?.selectedCatalogId??null??aT,aM=null!=aI?Q.find(e=>e.id===aI)||aL.find(e=>e.id===aI)||(aT===aI?{id:aI,service_id:Number(eS.current?.service_id??r?.service_id)||void 0,service_name:String(eS.current?.service_name??r?.service_name??"Selected package"),variant_name:String(eS.current?.service_name??r?.service_name??"Selected package")}:null):1===Q.length?Q[0]:null,aB=!!(aM&&eh===aM.id),a$=tE&&!!aM&&J,aF=!!aM&&(tf?2===N:aw[2]),aP=tf?"Continue to Checkout":"Check availability";(0,a.useEffect)(()=>{tf||2!==N||a$||(_(1),tE||tI())},[tf,N,a$,tE,tI]);let aR=()=>{let e=eI.current;if(!e||0===Q.length){eD(!1),eH(!1);return}let t=e.querySelector("[data-catalog-card]"),a=parseFloat(window.getComputedStyle(e).columnGap||"0")||0,i=t?t.offsetWidth+a:e.clientWidth,r=Math.round(e.scrollLeft/Math.max(i,1)),n=Math.max(0,Math.min(Q.length-1,r));eM.current=n,e$(n),eD(e.scrollLeft>4),eH(e.scrollLeft+e.clientWidth<e.scrollWidth-4)},aD=e=>{let t=eI.current;if(!t)return;let a=t.querySelector("[data-catalog-card]"),i=parseFloat(window.getComputedStyle(t).columnGap||"0")||0,r=a?a.offsetWidth+i:.8*t.clientWidth;t.scrollBy({left:e*r,behavior:"smooth"})};(0,a.useLayoutEffect)(()=>{let e=eI.current;if(!e||Q.length<=1){eD(!1),eH(!1);return}let t=()=>aR();t();let a="u">typeof ResizeObserver?new ResizeObserver(t):null;
111a?.observe(e),Array.from(e.children).forEach(e=>{e instanceof HTMLElement&&a?.observe(e)}),window.addEventListener("resize",t);let i=window.setTimeout(t,100);return()=>{window.removeEventListener("resize",t),a?.disconnect(),window.clearTimeout(i)}},[Q.length,N]);let aW=e=>{let t=eI.current;if(!t)return;let a=t.querySelector("[data-catalog-card]"),i=parseFloat(window.getComputedStyle(t).columnGap||"0")||0,r=a?a.offsetWidth+i:t.clientWidth,n=Math.max(0,Math.min(Q.length-1,e));t.scrollTo({left:n*r,behavior:"smooth"}),eM.current=n,e$(n)};(0,a.useEffect)(()=>{eM.current=eB},[eB]),(0,a.useEffect)(()=>{if(1!==N||Q.length<=1)return;let e=window.matchMedia("(max-width: 720px)"),t=eI.current;if(!e.matches||!t)return;let a=0,i=()=>{a=Date.now()+3500};t.addEventListener("pointerdown",i),t.addEventListener("touchstart",i,{passive:!0}),t.addEventListener("wheel",i,{passive:!0});let r=window.setInterval(()=>{!e.matches||Date.now()<a||aW(eM.current>=Q.length-1?0:eM.current+1)},3600);return()=>{window.clearInterval(r),t.removeEventListener("pointerdown",i),t.removeEventListener("touchstart",i),t.removeEventListener("wheel",i)}},[Q.length,N]);let aH=e=>{if(3474===e.id){let e=k.freezone||k.emirate;return e?`${e} Company Setup`:"Company Setup Package"}return e.variant_name||e.service_name||"Package"},aO=e=>e.description?.trim()||`${k.freezone||"Your selected free zone"}${k.emirate?` (${k.emirate})`:""} offers world-class infrastructure, 100% foreign ownership and fast-track licensing for ${k.activities[0]?k.activities[0].toLowerCase():"your business activity"}. The ${aH(e)} package is structured for a smooth, fully-guided incorporation with transparent, all-inclusive fees.`,aq=(0,a.useCallback)(async()=>{let t=k.freezone.trim(),a=k.emirate.trim(),i=(t||(a?`${a} freezone`:"")||k.activities[0]||"company formation").trim(),r=function(e,t,a){let i=e.trim();if(!i)return"";let r=ao(i),n=a.find(e=>{if(t&&e.emirate.toLowerCase()!==t.trim().toLowerCase()||e.type.toLowerCase().includes("mainland"))return!1;let a=ao(ac(e.freezone_city.trim()));return a===r||a.includes(r)||r.includes(a)});return n?.bid?String(n.bid):""}(t,a,ey),n=r?`${i}|partner_bid:${r}`:i;if(ek.current===n)return;ek.current=n,eN.current?.abort();let s=new AbortController;eN.current=s,eo(!0),ec("");try{var l;let a=r?`&partner_bid=${encodeURIComponent(r)}`:"",n=r?100:15,o=await fetch(`/api/v1/core/catalog_search?q=${encodeURIComponent(i)}&limit=${n}${a}`,{signal:s.signal}),d=await o.json().catch(()=>({results:[]})),c=ag(d.results);if(s.signal.aborted)return;let p=ag(e?.catalog),u=af(p),m=r&&c.length>0?c:u.length>0?u:(l=function(...e){let t=new Map;return e.flat().forEach(e=>{t.has(e.id)||t.set(e.id,e)}),Array.from(t.values())}(c,p),aN(function(e,t){let a=ab(t);if(!a)return e;let i=/ifza|international freezone authority/.test(a)?e=>/\bifza\b|international freezone authority/.test(e):e=>a.split(" ").every(t=>e.includes(t)),r=e.filter(e=>i(ab([e.service_name,e.variant_name,e.category,e.description].filter(Boolean).join(" "))));return r.length>0?r:e}(l,t)));ee(m);let h=tU()?.selectedCatalogId,g=null;em(e=>null!=e&&m.some(t=>t.id===e)?(g=e,e):"number"==typeof h&&m.some(e=>e.id===h)?(g=h,h):(g=null,null));let x=null!=g?Math.max(0,m.findIndex(e=>e.id===g)):0;e$(x)}catch{if(!s.signal.aborted){ek.current="";let t=ag(e?.catalog);if(t.length>0){let e=aN(t);ee(e);let a=tU()?.selectedCatalogId;em(t=>null!=t&&e.some(e=>e.id===t)?t:"number"==typeof a&&e.some(e=>e.id===a)?a:null),ec("")}else ec("We couldn't load live packages right now. Please try again.")}}finally{s.signal.aborted||eo(!1)}},[k.freezone,k.emirate,k.activities,e,ey]);(0,a.useEffect)(()=>{if(1!==N)return;let t=ag(e?.catalog);if(tg){if(t.length>0){let e=tm?al(t,k.visaType):t;eN.current?.abort(),ek.current=tm?`__immigration_prop__:${k.visaType}`:"__accounting_prop__",eo(!1),ec(""),ee(e),em(t=>null!=t&&e.some(e=>e.id===t)?t:null),e$(0)}return}let a=aN(t),i=k.emirate.trim();if(k.freezone.trim())return void aq();let r=i?aj(t,i):[],n=i?r:a,s=i&&af(t).length>0?af(t):a,l=n.length>0?n:s;l.length>0&&(eN.current?.abort(),ek.current=i?`emirate:${av(i)}`:"__prop__",eo(!1),ec(""),ee(l),em(e=>null!=e&&l.some(t=>t.id===e)?e:null),e$(0))},[N,e,aq,k.freezone,k.emirate,k.visaType,tg,tm]),(0,a.useEffect)(()=>
111{if(2!==N||Q.length>0||es)return;if(tg){let t=ag(e?.catalog),a=tm?al(t,k.visaType):t;if(t.length>0){ee(a);let e=tU()?.selectedCatalogId;em(t=>null!=t&&a.some(e=>e.id===t)?t:"number"==typeof e&&a.some(t=>t.id===e)?e:null)}return}if(k.freezone.trim())return void aq();let t=ag(e?.catalog),a=k.emirate.trim(),i=a?aj(t,a):[],r=a?af(t):[],n=i.length>0?i:r.length>0?r:aN(t);if(n.length>0){ee(n);let e=tU()?.selectedCatalogId;em(t=>null!=t&&n.some(e=>e.id===t)?t:"number"==typeof e&&n.some(t=>t.id===e)?e:null)}},[N,Q.length,es,k.freezone,k.emirate,k.visaType,aq,e,tg,tm]),(0,a.useEffect)(()=>{if(1!==N||es||0===Q.length)return;let e=Q.findIndex(e=>e.id===eu),t=window.setTimeout(()=>{aW(e>=0?e:0),aR()},50);return()=>window.clearTimeout(t)},[N,es,Q]);let aU=()=>{let e=window,t=k.businessName.trim(),a=k.tradeLicenseNumber.trim(),i=tm?k.visaType.trim():k.activities.join(", "),r=k.visaType.trim(),n=k.applicantCount.trim(),s=k.nationality.join(", "),l=Math.max(1,parseInt(k.visaCount,10)||1);e.leadData={...e.leadData||{},business_name:t,businessName:t,license_number:a,trade_license_number:a,freezone:tD(),business_activity:i,visa_type:r,applicant_count:n,business_type:k.businessType,emirate:k.emirate,nationality:s,shareholders:l}},aG=(e=tD(),t=tm?k.visaType.trim():k.activities.join(", "))=>{let a={},i=k.businessName.trim(),r=k.tradeLicenseNumber.trim(),n=k.nationality.join(", "),s=k.visaType.trim(),l=k.applicantCount.trim();return i&&!tm&&(a.business_name=i),r&&(a.license_number=r),t&&(a.business_activity=t),s&&(a.visa_type=s),l&&(a.applicant_count=l),e&&(a.freezone=e),k.emirate&&(a.emirates=k.emirate),n&&(a.nationality=n),a},aZ=()=>{let e=window.leadData||{},t=eS.current||r||{},a=String(V?.mobile||t.phone||t.mobile||e.phone||e.mobile||"").replace(/\D/g,""),i=String(V?.ccode||t.country_code||e.country_code||"971").replace(/\D/g,"")||"971",n=i&&a.startsWith(i)&&a.length>i.length?a.slice(i.length):a;return{name:String(V?.name||t.name||e.name||"").trim(),email:String(V?.email||t.email||e.email||"").trim(),phone:n,country_code:i}},aV=e=>{let t=eS.current||{},a=tm?k.visaType.trim():k.activities.join(", ");return{...t,gid:th(t),potentialId:i||t.potentialId,business_name:tm?t.business_name:k.businessName.trim()||t.business_name,license_number:k.tradeLicenseNumber.trim()||t.license_number,business_activity:a||t.business_activity,visa_type:k.visaType.trim()||t.visa_type,applicant_count:k.applicantCount.trim()||t.applicant_count,freezone:tD()||t.freezone,shareholders:Math.max(1,parseInt(k.visaCount,10)||1),business_type:k.businessType||t.business_type,emirate:k.emirate||t.emirate,nationality:k.nationality.join(", ")||t.nationality,catalog_id:e.id,service_id:e.service_id||t.service_id||0,service_name:e.variant_name||e.service_name||t.service_name,...tm?{bid:e.bid||t.bid}:{},...tm?{partner_bid:e.partner_bid||t.partner_bid}:{}}},aY=async e=>{let t=e?await (0,eP.resolvePotentialIdForCheckout)(e):"";return!t||/^\d{13}$/.test(t)},aJ=async(e,t=!1,a=!1)=>{if(!J||!tE)return"";let n=String(eC.current||eS.current?.potentialId||r?.potentialId||i||"").trim();if(n&&!a)return eC.current=n,n;let s=aV(e),l=window.leadData||{},o=th(s,l),d=String(V?.name||s.name||l.name||"").trim(),c=String(V?.email||s.email||l.email||"").trim(),p=String(V?.ccode||s.country_code||l.country_code||"971").replace(/\D/g,""),u=String(V?.mobile||s.phone||s.mobile||l.phone||l.mobile||"").replace(/\D/g,""),m=p&&u.startsWith(p)&&u.length>p.length?u.slice(p.length):u,h=k.businessName.trim(),g=k.tradeLicenseNumber.trim(),x=tD(),f=tm?k.visaType.trim():k.activities.join(", "),b=k.applicantCount.trim(),y=window.innerWidth<768?"Mobile":"Desktop",v=window,w=String(v.lead_source??"OG"),j=[o,c,e.id,h,g,x,f,b].join("|");if(ez.current)return ez.current;if(!a&&eA.current===j&&eC.current)return eC.current;eA.current=j;let N=(async()=>{try{let a,i,r,n,l,u,j,N,_,S,C=await fetch("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({name:d||h||c,email:c,phone:m,mobile:m,country_code:p,country_type:"971"===p?"AE":"",url:window.location.href,lead_source:`AE-Login-${y}-Journey-${e.id}-${w}`,catalog_id:String(e.id),service_name:e.variant_name||e.service_name||"",...h&&!tm?{business_name:h}:{},license_number:g,business_activity:f,...k.visaType.trim()?{visa_type:k.visaType.trim()}:{},...b?{applicant_count:b}:{},freezone:x,emirate:k.emirate,nationality:k.nationality.join(", "),gid:o,smart_info:aG(x,f),...v.signup_visitor_id?{visitor_id:v.signup_visitor_id}:{}})});if(!C.ok)return eA.current="",t&&eb("Could not create the lead. Please try again."),"";let A=await C.json().catch(()=>({})),z=(a=A?.response,i=A?.data,String(A?.call_request_id||A?.uid||A?.potentialId||A?.potentialID||A?.potential_id||a?.call_request_id||a?.uid||a?.potentialId||a?.potentialID||a?.potential_id||i?.call_request_id||i?.uid||i?.potentialId||i?.potentialID||i?.potential_id||"").trim()),E=tm?(r=A?.response,n=A?.data,l=A?.smart_info,u=n?.smart_info,j=r?.smart_info,(N=e=>{let t=String(e||"").replace(/\D/g,"");return t&&"0"!==t?t:""})(A?.update_by)||N(A?.emp_gid)||N(A?.employee_gid)||N(A?.assigned_employee_gid)||N(r?.update_by)||N(r?.emp_gid)||N(r?.employee_gid)||N(r?.assigned_employee_gid)||N(n?.update_by)||N(n?.emp_gid)||N(n?.employee_gid)||N(n?.assigned_employee_gid)||N(l?.update_by)||N(l?.emp_gid)||N(l?.employee_gid)||N(l?.assigned_employee_gid)||N(j?.update_by)||N(j?.emp_gid)||N(j?.employee_gid)||N(j?.assigned_employee_gid)||N(u?.update_by)||N(u?.emp_gid)||N(u?.employee_gid)||N(u?.assigned_employee_gid)):"",L=tm?(_=A?.response,S=A?.data,String(A?.bid||_?.bid||S?.bid||"").trim()):"";if(!z)return eA.current="",t&&eb("Lead was created but potential id was missing. Please try again."),"";eC.current=z;let T={...s,potentialId:z,...L?{bid:L}:{},...E?{employee_gid:E,update_by:E}:{}};return eS.current=T,(0,eR.applyPricingContextToWindowLeadData)(T),await (0,eR.syncPricingContextToUrl)(T),z}catch(e){return eA.current="",t?eb(e instanceof Error?e.message:"Could not create the lead."):console.warn("Wizard lead creation failed:",e),""}finally{ez.current=null}})();return ez.current=N,N},aK=async(e,t=!1)=>
111{if(!J||!tE)return"";if(eE.current)return eE.current;let a=eS.current||r;!th(a)&&(a=await (0,eR.resolvePricingContextClientSide)(a))&&(eS.current=a,(0,eR.applyPricingContextToWindowLeadData)(a));let n=await aJ(e,t);if(!n)return"";let s=aV(e),l=th(s);if(!l)return"";let o=k.businessName.trim(),d=k.tradeLicenseNumber.trim(),c=tD(),p=k.activities.join(", "),u=k.emirate.trim(),m=String(n||s.potentialId||i||"").trim(),h=[l,e.id,o,d,u,c,p,m].join("|");if(eT.current)return eT.current;if(eL.current===h)return eE.current;eL.current=h;let g=(async()=>{try{let e=(await (0,tP.createAndLinkFreezoneOpenApplication)({gid:l,businessName:o,licenseNumber:d,emirate:u,freezone:c,businessActivity:p,callRequestId:m||void 0})).applicationId||"";if(e){eE.current=e;let t={...s,open_application_id:e};eS.current=t,(0,eR.applyPricingContextToWindowLeadData)(t),await (0,eR.syncPricingContextToUrl)(t)}else eL.current="",t&&eb("Could not create the open application. Please try again.");return e}catch(e){return eL.current="",t?eb(e instanceof Error?e.message:"Could not create or link the open application."):console.warn("Open application creation failed:",e),""}finally{eT.current=null}})();return eT.current=g,g};(0,a.useEffect)(()=>{2!==N||!J||!tE||!aM||tm||(tg||ay(aM))&&aK(aM)},[N,J,tE,aM?.id]);let aX=async e=>{window.dispatchEvent(new CustomEvent("filings:catalog-selected",{detail:{catalogId:e.id,serviceId:e.service_id||0}}));let t=window,a=t.leadData||{},i=Number(e.price),r=Number.isFinite(i)&&i>0?Math.round(.1*i*100)/100:void 0,n=window.innerWidth<768?"Mobile":"Desktop",s=String(t.lead_source??"OG"),l=`AE-Signup-${n}-Journey-${e.id}-${s}`,o={catalog_id:e.id,service_id:e.service_id||0,service_name:e.variant_name||e.service_name||"",business_name:String(k.businessName||a.business_name||"").trim(),license_number:String(k.tradeLicenseNumber||a.license_number||a.trade_license_number||"").trim(),business_activity:String(k.activities.join(", ")||a.business_activity||"").trim(),emirate:String(k.emirate||a.emirate||"").trim(),freezone:String(tD()||a.freezone||"").trim(),smart_form:JSON.stringify(aG()),currency:e.currency||"AED",conversion_amount:r,page_url:window.location.href,lead_source:l};try{let e=await fetch("/api/v1/core/encrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:JSON.stringify(o)})}),a=await e.json().catch(()=>({})),i=a?.encrypted||"";if(!i)return void eb("Something went wrong while starting checkout. Please try again.");let r=`${window.location.origin}/create-checkout?token=${encodeURIComponent(i)}`,n=(0,m.generateSignupInfo)({lead_url:o.page_url,lead_source:o.lead_source,catalog_id:o.catalog_id,service_id:o.service_id||null,service_name:o.service_name||"",smart_form:o.smart_form,login_lead:"1",potential_id:"1",conversion_amount:o.conversion_amount,currency:o.currency,spam_filter_done:"1"});n&&(t.signup_info=n),t.redir=(0,m.generateRedir)(r),Y?Y("login"):window.__authOpen?.("login")}catch{eb("Something went wrong while starting checkout. Please try again.")}},aQ=async e=>{var t;if(!tO(k)){let e=tb.find(e=>tC(k,e.key));e&&(t=e.key,_(1),setTimeout(()=>{ta.current[t]?.scrollIntoView({behavior:"smooth",block:"center"}),ta.current[t]?.classList.add("flash"),"activities"===t||"nationality"===t?A(t):A(null),"emirate"===t||"freezone"===t||"visaType"===t?M(t):M(null),tr.current[t]?.focus({preventScroll:!0}),setTimeout(()=>ta.current[t]?.classList.remove("flash"),1200)},250));return}if(eb(""),em(e.id),aU(),!J&&!i){ex(e.id);try{await aX(e)}finally{ex(null)}return}ex(e.id);try{let t=eS.current||r;!th(t)&&(t=await (0,eR.resolvePricingContextClientSide)(t))&&(eS.current=t,(0,eR.applyPricingContextToWindowLeadData)(t));let a=aV(e);eS.current=a,(0,eR.applyPricingContextToWindowLeadData)(a),await (0,eR.syncPricingContextToUrl)(a);let n=window.leadData||{},s=th(a,n),l=String(V?.name||a.name||n.name||"").trim(),o=String(V?.email||a.email||n.email||"").trim(),d=String(V?.ccode||a.country_code||n.country_code||"971").replace(/\D/g,""),c=String(V?.mobile||a.phone||a.mobile||n.phone||n.mobile||"").replace(/\D/g,""),p=d&&c.startsWith(d)&&c.length>d.length?c.slice(d.length):c,u=k.businessName.trim(),h=tD(),g=tm?k.visaType.trim():k.activities.join(", "),x=k.applicantCount.trim();if(!s)return void eb("Missing customer id for this lead. Please submit the quote form again.");let f=String(a.potentialId||i||"").trim();if(tm&&f&&await aY(f)&&(f="",eC.current=""),tm&&!f&&(f=await aJ(e,!0,!0)),tm&&!f)return void eb("Could not resolve a lead potential id for visa checkout. Please submit the quote form again.");let b="",y=f?await (0,eP.resolvePotentialIdForCheckout)(f):"";if(f){let t=a.catalog_id;if(t&&t!==e.id)try{await fetch("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l,email:o,phone:p,country_code:d,catalog_id:e.id,service_name:e.variant_name||e.service_name||"",...u&&!tm?{business_name:u}:{},...k.visaType.trim()?{visa_type:k.visaType.trim()}:{},...x?{applicant_count:x}:{},smart_info:aG(h,g),url:window.location.href})})}catch{}}if(tm){let t={...k.visaType.trim()?{visa_type:k.visaType.trim()}:{},...x?{applicant_count:x}:{}},i=String(a.bid||eS.current?.bid||n.bid||e.bid||"").trim();if(f&&i&&Object.keys(t).length>0)try{let e=await fetch("/api/journey/common_api/link-application-to-potential",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({call_request_id:f,customer_gid:s,mode:"smart_info",category:"Immigration",form_variant:"immigration",bid:i,smart_info:t})}),a=await e.json().catch(()=>({}));if(!e.ok||!1===a.status)return void eb(String(a.message||a.error||"Could not update visa details for this lead. Please try again."))}catch{eb("Could not update visa details for this lead. Please try again.");return}}if(!tm&&(tg||ay(e))&&!(b=await aK(e,!0)))return void eb("Could not create the open application. Please try again.");let v=String(eC.current||eS.current?.potentialId||a.potentialId||f||"").trim(),w=v&&v!==f?await (0,eP.resolvePotentialIdForCheckout)(v):y,j=`${window.location.origin}${window.location.pathname}`,N={...k.emirate?{emirate:k.emirate}:{},...h?{freezone:h}:{},...g?{business_activity:g}:{},...k.visaType.trim()?{visa_type:k.visaType.trim()}:{},...x?{applicant_count:x}:{},...b?{open_application_id:b}:{}
111,...(0,tF.buildAeCompanySetupApplicationJourneySmartInfo)(j,{gid:s||void 0,open_application_id:b||void 0},{variant:tm?"immigration":"default"})},_={cus_gid:s,cin_gstin:"",cus_name:l,cus_email:o,cus_mobile:`${d}-${p}`,...u&&!tm?{business_name:u}:{},utoken:"",eng_id:"",pot_id:w||v||"",partner_id:"",multi:[{catalog_id:e.id,service_id:e.service_id||0,qty:"1",amount:0,engagement:" "}],other_info:{...u&&!tm?{business_name:u}:{},...N},udf:{...u&&!tm?{business_name:u}:{},...N},smart_info:N,operation:"Website"},S=await fetch("/api/getdata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generator:_,action:"create_checkout",smart_info:N})});if(S.ok){let t=await S.json().catch(()=>({})),a=t?.estimate_id||t?.data?.estimate_id||t?.estimateId||"";if(a){if(!J){let t,r,n,s,c,u,h,g;return void(t=`${window.location.origin}/checkout?generator=${a}`,r=window,n=window.innerWidth<768?"Mobile":"Desktop",s=String(r.lead_source??"OG"),c=`AE-Signup-${n}-Journey-${e.id}-${s}`,u=Number(e.price),h=Number.isFinite(u)&&u>0?Math.round(.1*u*100)/100:void 0,(g=(0,m.generateSignupInfo)({lead_url:window.location.href,lead_source:c,catalog_id:e.id,service_id:e.service_id||null,service_name:e.variant_name||e.service_name||"",smart_form:JSON.stringify(aG()),conversion_amount:h,currency:e.currency||"AED",...l.trim()?{name:l.trim()}:{},...o.trim()?{email:o.trim()}:{},...p.trim()?{phone:p.trim()}:{},...d.trim()?{country_code:d.trim()}:{},spam_filter_done:"1",potential_id:i?"1":void 0}))&&(r.signup_info=g),r.redir=(0,m.generateRedir)(t),Y?Y("login"):window.__authOpen?.("login"))}try{let t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push({event:"InitiateCheckout",revenue:Math.round(.2*Number(e.price||0)),currency:String(e.currency||"AED").toUpperCase()})}catch{}window.location.href=`/checkout?generator=${encodeURIComponent(a)}`;return}}eb("Something went wrong while starting checkout. Please try again.")}catch{eb("Something went wrong while starting checkout. Please try again.")}finally{ex(null)}};return(0,t.jsxs)("div",{className:"page","data-step":N,children:[(0,t.jsx)("style",{suppressHydrationWarning:!0,children:az}),(0,t.jsx)(tA,{richColors:!0,closeButton:!0,dir:"ltr",position:"top-center",toastOptions:{className:"font-sans",style:{direction:"ltr",textAlign:"left"}}}),(n||l)&&(0,t.jsxs)("div",{className:"wizard-seo-headings",children:[n&&(0,t.jsx)("h1",{children:n}),l&&(0,t.jsx)("h2",{children:l})]}),(0,t.jsx)("div",{className:"page-inner",children:(0,t.jsxs)("div",{className:"app card","data-step":N,ref:e8,children:[(0,t.jsxs)("aside",{className:"stepper",children:[(0,t.jsxs)("div",{className:"stepper-sticky",children:[(0,t.jsx)("div",{className:"label",children:"Application"}),(0,t.jsx)("div",{className:"step-wrap",children:(0,t.jsxs)("button",{type:"button",className:"step"+(1===N?" active":"")+(N>1||tE&&1!==N?" completed locked-completed":""),onClick:()=>_(1),children:[(0,t.jsx)("span",{className:"num",children:N>1||tE&&1!==N?(0,t.jsx)(el.Check,{className:"step-check",strokeWidth:2.5,"aria-hidden":"true"}):"01"}),(0,t.jsx)("span",{className:"step-text",children:(0,t.jsx)("span",{className:"step-title",children:tm?"Visa Detail":"Business Details"})})]})}),!tf&&(0,t.jsxs)("div",{className:"step-wrap",children:[(0,t.jsxs)("button",{type:"button",className:"step"+(2===N&&a$?" active":"")+(a$?"":" disabled"),"aria-disabled":!a$,disabled:!a$,onClick:()=>{a$&&an(aM)},children:[(0,t.jsx)("span",{className:"num",children:"02"}),(0,t.jsx)("span",{className:"step-text",children:(0,t.jsx)("span",{className:"step-title",children:"Name Availability"})})]}),2===N&&(0,t.jsx)("div",{className:"step-subnav","aria-label":"Name availability report sections",children:aS.map(e=>{let a=ak[e];if(!a)return null;let i=eX===e;return(0,t.jsxs)("button",{type:"button",className:"step-sub"+(i?" is-current":""),"aria-current":i?"true":void 0,onClick:()=>aE(e),children:[(0,t.jsx)("span",{className:"step-sub-mark","aria-hidden":"true",children:i?(0,t.jsx)(s.ChevronRight,{className:"step-sub-arrow",size:14,strokeWidth:2.4}):null}),(0,t.jsx)("span",{className:"step-sub-label",children:a.short})]},e)})})]}),(0,t.jsx)("div",{className:"step-wrap",children:(0,t.jsxs)("button",{type:"button",className:"step"+(tf&&2===N&&aF?" active":"")+(aF?"":" disabled"),"aria-disabled":!aF,disabled:!aF,onClick:()=>{aM&&aF&&!aB&&aQ(aM)},children:[(0,t.jsx)("span",{className:"num",children:tf?"02":"03"}),(0,t.jsx)("span",{className:"step-text",children:(0,t.jsx)("span",{className:"step-title",children:"Payment"})})]})}),!tm&&(0,t.jsx)("div",{className:"step-wrap",children:(0,t.jsxs)("button",{type:"button",className:"step disabled","aria-disabled":"true",disabled:!0,children:[(0,t.jsx)("span",{className:"num",children:tf?"03":"04"}),(0,t.jsx)("span",{className:"step-text",children:(0,t.jsx)("span",{className:"step-title",children:"Dashboard"})})]})})]}),2===N&&!tf&&(0,t.jsx)("div",{className:"step-subnav-scroll",children:(0,t.jsx)("div",{className:"step-subnav step-subnav--mobile","aria-label":"Name availability report sections",children:aS.map(e=>{let a=ak[e];if(!a)return null;let i=eX===e;return(0,t.jsxs)("button",{type:"button",className:"step-sub"+(i?" is-current":""),"aria-current":i?"true":void 0,onClick:()=>aE(e),children:[(0,t.jsx)("span",{className:"step-sub-mark","aria-hidden":"true",children:i?(0,t.jsx)(s.ChevronRight,{className:"step-sub-arrow",size:14,strokeWidth:2.4}):null}),(0,t.jsx)("span",{className:"step-sub-label",children:a.short})]},e)})})})]}),(0,t.jsxs)("section",{className:"form-card",ref:e3,children:[1===N&&(0,t.jsx)("div",{className:"panel panel-step1",children:(0,t.jsxs)("div",{className:"panel-body",children:[tg?tm?(0,t.jsxs)("div",{className:"form-grid-2 field accounting-fields",children:[(0,t.jsxs)("div",{className:F.visaType?"error":"",ref:e=>{ta.current.visaType=e},children:[ap("visaType",t9,"Select Type of Visa",R.FileText),tq("visaType")]}),(0,t.jsxs)("div",{className:F.applicantCount?"error":"",ref:e=>{ta.current.applicantCount=e},children:[(0,t.jsxs)("div",{className:"input-wrap float-field"+(k.applicantCount?" is-floating":""),children:[(0,t.jsxs)("span",{className:"float-label",children:["Number of applicant ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsx)(t$.Receipt,{className:"icon",size:14,"aria-hidden":"true"}),(0,t.jsx)("input",{type:"text",inputMode:"numeric",placeholder:"Enter number of applicant",ref:e=>{tr.current.applicantCount=e},value:k.applicantCount,maxLength:3,onChange:e=>tR("applicantCount",e.target.value.replace(/\D/g,"").slice(0,3)),"aria-invalid":!!F.applicantCount})]}),tq("applicantCount")]})]}):(0,t.jsxs)("div",{className:"form-grid-2 field accounting-fields",children:[(0,t.jsxs)("div",{className:F.businessName?"error":"",ref:e=>{ta.current.businessName=e},children:[(0,t.jsxs)("div",{className:"input-wrap float-field"+(k.businessName?" is-floating":""),children:[(0,t.jsxs)("span",{className:"float-label",children:["Business name ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsx)(tT.FileSignature,{className:"icon",size:14,"aria-hidden":"true"}),(0,t.jsx)("input",{type:"text",placeholder:"Enter Business name",ref:e=>{tr.current.businessName=e},value:k.businessName,maxLength:150,onChange:e=>tR("businessName",(0,eg.sanitizeBusinessNameInput)(e.target.value)),"aria-invalid":!!F.businessName})]}),tq("businessName")]}),(0,t.jsxs)("div",{className:F.activities?"error":"",ref:e=>{ta.current.activities=e},children:[(0,t.jsxs)("div",{className:"ms float-field"+("activities"===C||k.activities.length>0?" is-floating":""),ref:e=>{e9.current.activities=e},children:[(0,t.jsxs)("span",{className:"float-label",children:["Business activity ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("button",{type:"button",className:"ms-trigger"+("activities"===C?" open":""),ref:e=>{tr.current.activities=e},onClick:()=>{M(null),E(""),A(e=>"activities"===e?null:"activities")},children:[(0,t.jsx)(ev,{className:"ms-icon",size:14,"aria-hidden":"true"}),0===k.activities.length?(0,t.jsx)("span",{className:"placeholder",children:"Select one or more activities"}):(0,t.jsx)(t6,{items:k.activities,renderChip:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ms-tag-label",children:e}),(0,t.jsx)("b",{onClick:t=>{t.stopPropagation(),tW(e)},children:"x"})]})}),(0,t.jsx)("span",{className:"ms-chev","aria-hidden":"true",children:"activities"===C?(0,t.jsx)(tL,{size:16}
111):(0,t.jsx)(d.ChevronDown,{size:16})})]}),"activities"===C&&td&&tl?(0,ei.createPortal)((0,t.jsxs)("div",{className:"ms-panel open ms-panel-portal","data-lenis-prevent":!0,ref:e7,style:{position:"fixed",top:tl.top,left:tl.left,width:tl.width,maxHeight:tv?280:240,overflow:"hidden",overscrollBehavior:"contain",zIndex:10050,background:"#ffffff",color:"#08292E",border:"1px solid #ececea",borderRadius:10,boxShadow:"0 16px 40px rgba(17,17,19,.12)",padding:6,display:"flex",flexDirection:"column",gap:4},onTouchMove:e=>e.stopPropagation(),children:[tv&&(0,t.jsxs)("div",{style:{position:"relative",flex:"none",paddingBottom:2},children:[(0,t.jsx)(ew.Search,{size:13,"aria-hidden":"true",style:{position:"absolute",left:10,top:"50%",transform:"translateY(-55%)",color:"#8a8a86",pointerEvents:"none"}}),(0,t.jsx)("input",{type:"search",value:z,autoFocus:!0,placeholder:"Search activity...","aria-label":"Search activity",onChange:e=>E(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:{width:"100%",boxSizing:"border-box",border:"1px solid #ececea",borderRadius:8,padding:"8px 10px 8px 30px",fontSize:12.5,fontWeight:600,fontFamily:"inherit",color:"#08292E",background:"#fafaf8",outline:"none"}})]}),(0,t.jsx)("div",{"data-lenis-prevent":!0,style:{flex:"1 1 auto",minHeight:0,maxHeight:tv?220:228,overflowX:"hidden",overflowY:"scroll",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:4,alignContent:"start"},onWheel:e=>{let t=e.currentTarget;t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation()},children:0===tw.length?(0,t.jsx)("div",{style:{gridColumn:"1 / -1",padding:"10px 9px",fontSize:12,fontWeight:600,color:"#8a8a86",textAlign:"center",width:"100%"},children:"No results found"}):tw.map(e=>(0,t.jsxs)("div",{className:"ms-option"+(k.activities.includes(e)?" selected":""),onClick:()=>tW(e),style:{display:"flex",alignItems:"center",gap:10,padding:"9px 10px",borderRadius:9,fontSize:12.5,fontWeight:600,cursor:"pointer",userSelect:"none",background:k.activities.includes(e)?"#f6f6f4":"transparent",color:"#08292E"},children:[(0,t.jsx)("span",{className:"box"}),(0,t.jsx)("span",{children:e})]},e))})]}),document.body):null]}),tq("activities")]}),(0,t.jsxs)("div",{className:F.emirate?"error":"",ref:e=>{ta.current.emirate=e},children:[ap("emirate",ae,"Select emirate",tB.MapPin),tq("emirate")]}),(0,t.jsxs)("div",{className:F.freezone?"error":"",ref:e=>{ta.current.freezone=e},children:[ap("freezone",ty,k.emirate?"Select freezone":"Select an emirate first",U.Building2,!k.emirate),tq("freezone")]})]}):(0,t.jsxs)("div",{className:"form-grid-2 field",children:[(0,t.jsxs)("div",{className:"form-col",children:[tu?(0,t.jsx)("div",{className:F.activities?"error":"",ref:e=>{ta.current.activities=e},children:(0,t.jsx)(e_,{value:k.activities,error:F.activities?"Business activity is required":void 0,onChange:e=>{S(t=>({...t,activities:e})),P(e=>({...e,activities:!1}))}})}):(0,t.jsxs)("div",{className:F.businessName?"error":"",ref:e=>{ta.current.businessName=e},children:[(0,t.jsxs)("div",{className:"input-wrap float-field"+(k.businessName?" is-floating":""),children:[(0,t.jsxs)("span",{className:"float-label",children:["Proposed Business name ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsx)(tT.FileSignature,{className:"icon",size:14,"aria-hidden":"true"}),(0,t.jsx)("input",{type:"text",placeholder:"Proposed business name",ref:e=>{tr.current.businessName=e},value:k.businessName,maxLength:150,onChange:e=>tR("businessName",(0,eg.sanitizeBusinessNameInput)(e.target.value)),"aria-invalid":!!F.businessName})]}),tq("businessName")]}),(0,t.jsxs)("div",{className:"row-2",children:[(0,t.jsxs)("div",{className:F.emirate?"error":"",ref:e=>{ta.current.emirate=e},children:[ap("emirate",ae,"Select emirate",tB.MapPin),tq("emirate")]}),(0,t.jsxs)("div",{className:F.freezone?"error":"",ref:e=>{ta.current.freezone=e},children:[ap("freezone",ty,k.emirate?"Select freezone":"Select an emirate first",U.Building2,!k.emirate),tq("freezone")]})]})]}),(0,t.jsxs)("div",{className:"form-col",children:[!tu&&(0,t.jsxs)("div",{className:F.activities?"error":"",ref:e=>{ta.current.activities=e},children:[(0,t.jsxs)("div",{className:"ms float-field"+("activities"===C||k.activities.length>0?" is-floating":""),ref:e=>{e9.current.activities=e},children:[(0,t.jsxs)("span",{className:"float-label",children:["Business activity ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("button",{type:"button",className:"ms-trigger"+("activities"===C?" open":""),ref:e=>{tr.current.activities=e},onClick:()=>{M(null),E(""),A(e=>"activities"===e?null:"activities")},children:[(0,t.jsx)(ev,{className:"ms-icon",size:14,"aria-hidden":"true"}),0===k.activities.length?(0,t.jsx)("span",{className:"placeholder",children:"Select one or more activities"}):(0,t.jsx)(t6,{items:k.activities,renderChip:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ms-tag-label",children:e}),(0,t.jsx)("b",{onClick:t=>{t.stopPropagation(),tW(e)},children:"â"})]})}),(0,t.jsx)("span",{className:"ms-chev","aria-hidden":"true",children:"activities"===C?(0,t.jsx)(tL,{size:16}
111):(0,t.jsx)(d.ChevronDown,{size:16})})]}),"activities"===C&&td&&tl?(0,ei.createPortal)((0,t.jsxs)("div",{className:"ms-panel open ms-panel-portal","data-lenis-prevent":!0,ref:e7,style:{position:"fixed",top:tl.top,left:tl.left,width:tl.width,maxHeight:tv?280:240,overflow:"hidden",overscrollBehavior:"contain",zIndex:10050,background:"#ffffff",color:"#08292E",border:"1px solid #ececea",borderRadius:10,boxShadow:"0 16px 40px rgba(17,17,19,.12)",padding:6,display:"flex",flexDirection:"column",gap:4},onTouchMove:e=>e.stopPropagation(),children:[tv&&(0,t.jsxs)("div",{style:{position:"relative",flex:"none",paddingBottom:2},children:[(0,t.jsx)(ew.Search,{size:13,"aria-hidden":"true",style:{position:"absolute",left:10,top:"50%",transform:"translateY(-55%)",color:"#8a8a86",pointerEvents:"none"}}),(0,t.jsx)("input",{type:"search",value:z,autoFocus:!0,placeholder:"Search activityâ¦","aria-label":"Search activity",onChange:e=>E(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:{width:"100%",boxSizing:"border-box",border:"1px solid #ececea",borderRadius:8,padding:"8px 10px 8px 30px",fontSize:12.5,fontWeight:600,fontFamily:"inherit",color:"#08292E",background:"#fafaf8",outline:"none"}})]}),(0,t.jsx)("div",{"data-lenis-prevent":!0,style:{flex:"1 1 auto",minHeight:0,maxHeight:tv?220:228,overflowX:"hidden",overflowY:"scroll",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:4,alignContent:"start"},onWheel:e=>{let t=e.currentTarget;t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation()},children:0===tw.length?(0,t.jsx)("div",{style:{gridColumn:"1 / -1",padding:"10px 9px",fontSize:12,fontWeight:600,color:"#8a8a86",textAlign:"center",width:"100%"},children:"No results found"}):tw.map(e=>(0,t.jsxs)("div",{className:"ms-option"+(k.activities.includes(e)?" selected":""),onClick:()=>tW(e),style:{display:"flex",alignItems:"center",gap:10,padding:"9px 10px",borderRadius:9,fontSize:12.5,fontWeight:600,cursor:"pointer",userSelect:"none",background:k.activities.includes(e)?"#f6f6f4":"transparent",color:"#08292E"},children:[(0,t.jsx)("span",{className:"box"}),(0,t.jsx)("span",{children:e})]},e))})]}),document.body):null]}),tq("activities")]}),(0,t.jsxs)("div",{className:F.nationality?"error":"",ref:e=>{ta.current.nationality=e},children:[(0,t.jsxs)("div",{className:"ms float-field"+("nationality"===C||k.nationality.length>0?" is-floating":""),ref:e=>{e9.current.nationality=e},children:[(0,t.jsxs)("span",{className:"float-label",children:["Nationality of promoters ",(0,t.jsx)("span",{className:"req","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("button",{type:"button",className:"ms-trigger"+("nationality"===C?" open":""),ref:e=>{tr.current.nationality=e},onClick:()=>{M(null),T(""),A(e=>"nationality"===e?null:"nationality")},children:[(0,t.jsx)(W.Globe,{className:"ms-icon",size:14,"aria-hidden":"true"}),0===k.nationality.length?(0,t.jsx)("span",{className:"placeholder",children:"Select one or more nationalities"}):(0,t.jsx)(t6,{items:k.nationality,renderChip:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(t5,{name:e}),(0,t.jsx)("span",{className:"ms-tag-label",children:e}),(0,t.jsx)("b",{onClick:t=>{t.stopPropagation(),tH(e)},children:"â"})]})}),(0,t.jsx)("span",{className:"ms-chev","aria-hidden":"true",children:"nationality"===C?(0,t.jsx)(tL,{size:16}):(0,t.jsx)(d.ChevronDown,{size:16})})]}),"nationality"===C&&td&&tl?(0,ei.createPortal)((0,t.jsxs)("div",{className:"ms-panel open ms-panel-portal","data-lenis-prevent":!0,ref:e7,style:{position:"fixed",top:tl.top,left:tl.left,width:tl.width,maxHeight:tj?360:280,overflow:"hidden",overscrollBehavior:"contain",zIndex:10050,background:"#ffffff",color:"#08292E",border:"1px solid #ececea",borderRadius:10,boxShadow:"0 16px 40px rgba(17,17,19,.12)",padding:6,display:"flex",flexDirection:"column",gap:4},onTouchMove:e=>e.stopPropagation(),children:[tj&&(0,t.jsxs)("div",{style:{position:"relative",flex:"none",paddingBottom:2},children:[(0,t.jsx)(ew.Search,{size:13,"aria-hidden":"true",style:{position:"absolute",left:10,top:"50%",transform:"translateY(-55%)",color:"#8a8a86",pointerEvents:"none"}}),(0,t.jsx)("input",{type:"search",value:L,autoFocus:!0,placeholder:"Search nationalityâ¦","aria-label":"Search nationality",onChange:e=>T(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:{width:"100%",boxSizing:"border-box",border:"1px solid #ececea",borderRadius:8,padding:"8px 10px 8px 30px",fontSize:12.5,fontWeight:600,fontFamily:"inherit",color:"#08292E",background:"#fafaf8",outline:"none"}})]}),(0,t.jsx)("div",{"data-lenis-prevent":!0,style:{flex:"1 1 auto",minHeight:0,maxHeight:tj?300:260,overflowX:"hidden",overflowY:"scroll",display:"flex",flexDirection:"column",gap:4},onWheel:e=>{let t=e.currentTarget;t.scrollTop+=e.deltaY,e.preventDefault(),e.stopPropagation()},children:0===t_.length?(0,t.jsx)("div",{style:{padding:"10px 9px",fontSize:12,fontWeight:600,color:"#8a8a86",textAlign:"center",width:"100%"},children:"No results found"}):t_.map(e=>(0,t.jsxs)("div",{className:"ms-option"+(k.nationality.includes(e)?" selected":""),onClick:()=>tH(e),style:{display:"flex",alignItems:"center",gap:10,padding:"9px 10px",borderRadius:9,fontSize:12.5,fontWeight:600,cursor:"pointer",userSelect:"none",background:k.nationality.includes(e)?"#f6f6f4":"transparent",color:"#08292E"},children:[(0,t.jsx)("span",{className:"box"}),(0,t.jsx)(t5,{name:e}),(0,t.jsx)("span",{children:e})]},e))})]}),document.body):null]}),tq("nationality")]})]})]}),(0,t.jsxs)("div",{className:"pricing-tw name-check-packages",children:[ef&&(0,t.jsx)("div",{className:"pricing-checkout-error",children:ef}),es?(0,t.jsx)("div",{className:"catalog-carousel-shell",children:(0,t.jsx)("div",{className:"catalog-carousel flex flex-nowrap items-stretch gap-4 overflow-hidden px-0.5 pt-5 pb-1",children:[0,1,2].map(e=>(0,t.jsx)("div",{className:"catalog-card relative flex shrink-0",children:(0,t.jsxs)("div",{className:"flex h-full min-h-[320px] w-full flex-col rounded-[24px] border border-[#ececea] bg-white px-5 pb-5 pt-8 sm:min-h-[360px]",children:[(0,t.jsx)("div",{className:"mx-auto h-2.5 w-24 animate-pulse rounded bg-[#ececea]"}),(0,t.jsx)("div",{className:"mx-auto mt-3 h-5 w-40 animate-pulse rounded bg-[#e8e8e4]"}),(0,t.jsx)("div",{className:"mx-auto mt-3 h-[2px] w-12 rounded-full bg-[#dcdad4]"}),(0,t.jsxs)("div",{className:"mt-5 space-y-2",children:[(0,t.jsx)("div",{className:"h-3 w-full animate-pulse rounded bg-[#f0f0ec]"}),(0,t.jsx)("div",{className:"h-3 w-5/6 animate-pulse rounded bg-[#f0f0ec]"})]}),(0,t.jsx)("div",{className:"mt-6 h-10 w-full animate-pulse rounded-lg bg-[#e8e8e4]"})]})},e))})}):ed?(0,t.jsxs)("div",{className:"pricing-empty",children:[(0,t.jsx)("p",{className:"pricing-empty-text",children:ed}),(0,t.jsx)("button",{type:"button",className:"pricing-empty-btn",onClick:()=>{ek.current="",aq()},children:"Try again"})]}):0===Q.length?(0,t.jsx)("div",{className:"pricing-empty",children:(0,t.jsx)("p",{className:"pricing-empty-text",children:tm?"No packages found for the selected visa type.":"No packages found for the selected details."})}):1===Q.length?(h=String((p=Q[0]).id),g=ah(p.about),f=(x=O[h])?g:g.slice(0,8),b=g.length-8,y=D[h],v=aO(p),w=aH(p),j=K&&!!p.price&&p.price>0,(0,t.jsxs)("div",{className:"selected-package-view",children:[(0,t.jsx)("article",{"data-catalog-card":!0,className:"relative w-full overflow-hidden rounded-[28px] border border-[#e4e7e5] bg-white",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6 sm:p-8 lg:p-10",children:[(0,t.jsxs)("div",{className:j?"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between lg:gap-8":"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:j?"min-w-0 flex-1 lg:max-w-[70%]":"min-w-0
111w-full",children:[p.category&&(0,t.jsx)("div",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-[#7c7c78]",children:p.category}),(0,t.jsx)("h3",{className:"mt-2 text-2xl font-semibold leading-tight text-[#08292E] sm:text-[28px]",children:w}),(0,t.jsxs)("p",{className:"mt-3 max-w-none text-[13.5px] leading-relaxed text-slate-600 sm:text-[14px] sm:leading-relaxed",children:[y||v.length<=320?v:v.slice(0,320)+"⦠",v.length>320&&(0,t.jsx)("button",{type:"button",className:"catalog-read-toggle ml-1 cursor-pointer text-[13px] font-semibold text-[#08292E] transition-colors hover:underline",style:{cursor:"pointer"},onClick:()=>H(e=>({...e,[h]:!e[h]})),children:y?"Read less â´":"Read more â¾"})]})]}),j&&(0,t.jsxs)("div",{className:"shrink-0 text-left sm:text-right lg:pt-1",children:[(0,t.jsx)("div",{className:"text-3xl font-bold leading-none tracking-tight text-[#08292E]",children:a_(p.price,p.currency)}),(0,t.jsx)("div",{className:"mt-1.5 text-[12px] text-slate-500",children:1===p.price_type?"Inclusive of VAT":"Exclusive of VAT"})]})]}),g.length>0&&(0,t.jsxs)("div",{className:"border-t border-[#eceeed] pt-6",children:[(0,t.jsx)("h4",{className:"mb-3 text-sm font-semibold text-[#08292E]",children:"What's included"}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-x-8 gap-y-2.5 sm:grid-cols-2",children:f.map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-2.5 text-[13px] leading-snug text-slate-700",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-[#f6f6f4] text-[#08292E] shadow-[0_0_0_1px_rgba(8,41,46,0.10)]",children:(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m5 12 5 5 9-9"})})}),(0,t.jsx)("span",{children:e})]},e))}),b>0&&(0,t.jsx)("button",{type:"button",className:"catalog-more-toggle mt-3
111cursor-pointer text-[13px] font-medium text-[#08292E] transition-colors hover:underline",style:{cursor:"pointer"},onClick:()=>q(e=>({...e,[h]:!e[h]})),children:x?"Show less â´":`+${b} more â¾`})]}),(0,t.jsx)("div",{className:"flex border-t border-[#eceeed] pt-5 justify-end",children:(0,t.jsx)("button",{type:"button",className:"catalog-check-availability flex items-center justify-center gap-2 rounded-xl bg-[#08292E] px-7 py-3 text-[15px] font-bold tracking-wide text-white shadow-lg shadow-[#08292E]/20 transition-all duration-200 hover:-translate-y-0.5 hover:bg-[#061f23]",style:{cursor:"pointer"},onClick:()=>as(p),children:eh===p.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tM.Loader2,{className:"na-pay-spinner",size:16,"aria-hidden":"true"}),"Starting checkout..."]}):aP})})]})}),(et.length>1||k.freezone.trim())&&(0,t.jsxs)("button",{type:"button",className:"catalog-back-btn catalog-back-btn-bottom",onClick:()=>{if(et.length>1)ee(et);else{let t,a,i,r=ag(e?.catalog),n=tm?al(r,k.visaType):tg?r:(a=(t=(er||{...k,freezone:""}).emirate.trim())?aj(r,t):[],i=aN(r),a.length>0?a:i);n.length>0&&ee(n)}S(er||(e=>({...e,freezone:""}))),em(null),eb(""),requestAnimationFrame(()=>{eI.current?.scrollTo({left:0,behavior:"smooth"}),aR()})},children:[(0,t.jsx)(tz.ArrowLeft,{size:15,"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Back to Packages"})]})]})):(0,t.jsxs)("div",{className:"catalog-carousel-shell relative",children:[Q.length>3&&(eF||eW)&&(0,t.jsxs)(t.Fragment,{children:[eF&&(0,t.jsx)("button",{type:"button","aria-label":"Previous packages",className:"catalog-carousel-arrow catalog-carousel-arrow-left",onClick:()=>aD(-1),children:(0,t.jsx)(ti.ChevronLeft,{className:"h-5 w-5",strokeWidth:2.2})}),eW&&(0,t.jsx)("button",{type:"button","aria-label":"Next packages",className:"catalog-carousel-arrow catalog-carousel-arrow-right",onClick:()=>aD(1),children:(0,t.jsx)(s.ChevronRight,{className:"h-5 w-5",strokeWidth:2.2})})]}),(0,t.jsx)("div",{ref:eI,className:`catalog-carousel flex flex-nowrap items-stretch gap-4 overflow-x-auto snap-x snap-mandatory px-0.5 pb-1 ${2===Q.length?"catalog-count-2":""}`,"aria-label":"License packages",onScroll:()=>{aR()},children:Q.map(e=>{let a=String(e.id),i=e.id===eu,r=ah(e.about),n=O[a],s=n?r:r.slice(0,4),l=r.length-4,o=D[a],d=aO(e),c=aH(e),p=K&&!!e.price&&e.price>0;return(0,t.jsxs)("article",{"data-catalog-card":!0,className:"catalog-card catalog-card-wrap relative flex shrink-0 cursor-pointer snap-start"+(i?" is-selected":""),onClick:()=>as(e),children:[i&&(0,t.jsx)("div",{className:"catalog-selected-badge","aria-hidden":"false",children:(0,t.jsx)("span",{children:"Selected"})}),(0,t.jsxs)("div",{className:"catalog-card-face flex h-full min-h-[320px] w-full flex-1 flex-col rounded-[24px] border bg-white px-5 pb-5 pt-8 sm:min-h-[360px] sm:px-6 sm:pb-6 sm:pt-9"+(i?" is-selected":""),children:[e.category&&(0,t.jsx)("div",{className:"text-center text-[10px] font-bold uppercase tracking-[0.1em] text-[#7c7c78]",children:e.category}),(0,t.jsx)("h3",{className:"mt-1 line-clamp-2 min-h-[2.4em] text-center text-lg font-semibold leading-tight text-[#08292E] sm:text-xl",children:c}),(0,t.jsxs)("p",{className:"mt-3 text-left text-[12.5px] leading-[1.35] text-slate-600",children:[o||d.length<=92?d:d.slice(0,92)+"⦠",d.length>92&&(0,t.jsx)("button",{type:"button",className:"catalog-read-toggle ml-1 cursor-pointer text-xs font-semibold leading-[1.35] text-[#08292E] transition-colors hover:underline",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),H(e=>({...e,[a]:!e[a]}))},children:o?"Read less â´":"Read more â¾"})]}),p&&(0,t.jsx)("div",{className:"mt-3 text-[28px] font-bold leading-none tracking-tight text-[#071638]",children:a_(e.price,e.currency)}),(0,t.jsx)("div",{className:"mt-3.5 flex-grow",children:r.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"mb-1.5 text-sm font-semibold leading-tight text-[#08292E]",children:"What's included:"}),(0,t.jsx)("ul",{className:"space-y-1",children:s.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2 text-[12.5px] leading-[1.3] text-slate-700",children:[(0,t.jsx)("span",{className:"mt-px flex h-4 w-4 flex-none items-center justify-center rounded-full bg-[#f6f6f4] text-[#08292E] shadow-[0_0_0_1px_rgba(8,41,46,0.10)]",children:(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m5 12 5 5 9-9"})})}),(0,t.jsx)("span",{children:e})]},e))}),l>0&&(0,t.jsx)("button",{type:"button",className:"catalog-more-toggle mt-1.5 cursor-pointer text-xs font-medium leading-tight text-[#08292E] transition-colors hover:underline",style:{cursor:"pointer"},onClick:e=>{e.stopPropagation(),q(e=>({...e,[a]:!e[a]}
111))},children:n?"Show less â´":`+${l} more â¾`})]})}),(0,t.jsx)("button",{type:"button",className:"catalog-check-availability mt-6 flex w-full items-center justify-center gap-2 rounded-lg border border-[#08292E] bg-[#08292E] px-5 py-2.5 text-[14.5px] font-bold tracking-wide text-white shadow-lg shadow-[#08292E]/15 transition-all duration-200 hover:-translate-y-0.5 hover:bg-[#061f23]",style:{cursor:"pointer"},onClick:t=>{t.stopPropagation(),as(e)},children:eh===e.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tM.Loader2,{className:"na-pay-spinner",size:16,"aria-hidden":"true"}),"Starting checkout..."]}):aP})]})]},e.id)})}),Q.length>3&&(0,t.jsxs)("div",{className:"catalog-mobile-controls","aria-label":"Package carousel controls",children:[(0,t.jsx)("button",{type:"button","aria-label":"Previous package",className:"catalog-mobile-arrow",disabled:!eF,onClick:()=>aD(-1),children:(0,t.jsx)(ti.ChevronLeft,{className:"h-4 w-4",strokeWidth:2.4})}),(0,t.jsx)("div",{className:"catalog-mobile-dots",children:Q.map((e,a)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to package ${a+1}`,"aria-current":a===eB?"true":void 0,onClick:()=>aW(a),className:`catalog-dot${a===eB?" on":""}`},`catalog-mobile-dot-${e.id}`))}),(0,t.jsx)("button",{type:"button","aria-label":"Next package",className:"catalog-mobile-arrow",disabled:!eW,onClick:()=>aD(1),children:(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4",strokeWidth:2.4})})]}),Q.length>3&&(0,t.jsx)("div",{className:"catalog-dots",children:Q.map((e,a)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to package ${a+1}`,"aria-current":a===eB?"true":void 0,onClick:()=>aW(a),className:`catalog-dot${a===eB?" on":""}`},`catalog-dot-${e.id}`))})]})]})]})},"s1"),2===N&&!tf&&(0,t.jsx)("div",{className:"panel panel-step2",children:(0,t.jsxs)("div",{className:"na-layout na-layout--availability",children:[(0,t.jsx)("div",{className:"na-main",children:(0,t.jsx)(tK,{businessName:k.businessName,legalEntityType:k.businessType||t8,activity:k.activities.join(", ")||"Not specified",entityNameFallback:eO?.entityName,activeReportSec:eX,setupReport:eO,loadingReport:e0,reportError:e2,reportLoadMsgIdx:e6,reportLoadingMessages:aC,onRetryReport:()=>void tS(),reportSectionsMeta:ak,onBusinessNameChange:e=>{tR("businessName",tY(e))},onAvailabilityChange:eJ,onCheckingChange:eG,onFetchErrorChange:eV})}),(0,t.jsxs)("div",{className:"na-step-actions",children:[(0,t.jsx)("button",{type:"button",className:"ghost na-back",onClick:()=>_(1),children:"â Back to Name Check"}),(0,t.jsxs)("div",{className:"na-step-actions-end",children:[ef?(0,t.jsx)("p",{className:"field-error na-pay-error",children:ef}):null,(0,t.jsx)("button",{type:"button",className:"submit na-pay-cta"+(aM&&eh===aM.id?" loading":""),disabled:!aM||eh===aM.id||!!ax,"aria-busy":!!(aM&&eh===aM.id),onClick:()=>{if(!aM){eb("Please select a package on Name Check first."),_(1);return}aQ(aM)},children:aM&&eh===aM.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tM.Loader2,{className:"na-pay-spinner",size:16,"aria-hidden":"true"}),"Starting checkoutâ¦"]}):"Continue â"})]})]})]})},"s2")]})]})})]})}let az=` 112 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'); 113 .page{ 114 --ink:#08292E; --grey-1:#f6f6f4; --grey-2:#ececea; --grey-3:#dcdad4; 115 --muted:#7c7c78; --white:#fff; 116 --space-1:8px; --space-2:12px; --space-3:16px; --space-4:20px; --space-5:24px; --space-6:28px; 117 font-family:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif; 118 color:var(--ink); 119 background:linear-gradient(180deg,#FFFFFF 0%,#F7F7F5 50%,#F4F5F8 100%); 120 background-attachment:scroll; 121 --header-h:72px; 122 min-height:calc(100dvh - var(--header-h)); 123 /* Top gap under header; horizontal inset matches Header logoâLogin content box */ 124 padding:14px 0; display:flex; flex-direction:column; box-sizing:border-box; 125 } 126 .page *:where(:not(.pricing-tw, .pricing-tw *)){box-sizing:border-box;margin:0;padding:0;font-family:inherit;} 127 .pricing-tw, .pricing-tw *{box-sizing:border-box;font-family:inherit;} 128 .wizard-seo-headings{ 129 position:absolute;width:1px;height:1px;padding:0;margin:-1px; 130 overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; 131 } 132 /* Mirror Header: max-w-[1600px] + px-3 sm:(px-6+px-4) md:(px-6+px-5) lg:(px-4+px-5) */ 133 .page > .page-inner{width:100%;max-width:1600px;margin:0 auto; 134 padding:0 12px; box-sizing:border-box; 135 flex:1; min-height:0; display:flex; flex-direction:column;} 136 @media (min-width:640px){ 137 .page > .page-inner{padding-left:40px;padding-right:40px;} 138 } 139 @media (min-width:768px){ 140 .page > .page-inner{padding-left:44px;padding-right:44px;} 141 } 142 @media (min-width:1024px){ 143 .page > .page-inner{padding-left:36px;padding-right:36px;} 144 } 145 @media (min-width:721px){ 146 .page[data-step="1"], 147 .page[data-step="2"]{min-height:auto;} 148 .page[data-step="1"] > .page-inner, 149 .page[data-step="2"] > .page-inner{flex:0 0 auto;} 150 } 151 152 /* Grow with content so package cards are never clipped mid-card on any screen */ 153 .app.card{display:grid;grid-template-columns:252px minmax(0,1fr); 154 flex:1 1 auto; 155 min-height:calc(100dvh - var(--header-h) - 28px); 156 height:auto;max-height:none;
157 align-items:stretch; scroll-margin-top:24px; 158 background:var(--white);border:1px solid var(--grey-2); 159 border-radius:16px; 160 box-shadow:0 1px 2px rgba(17,17,19,.03),0 10px 30px rgba(17,17,19,.04); 161 overflow:visible;} 162 163 /* Step 1 â hug content; avoid tall empty white under Check availability */ 164 .app.card[data-step="1"]{ 165 flex:0 0 auto; 166 min-height:0; 167 height:auto; 168 max-height:none; 169 } 170 .app.card[data-step="1"] .form-card{ 171 min-height:0; 172 height:auto; 173 flex:0 0 auto; 174 } 175 .app.card[data-step="1"] .pricing-tw, 176 .app.card[data-step="1"] .name-check-packages{ 177 flex:0 0 auto; 178 min-height:0; 179 } 180 .app.card[data-step="1"] .stepper{ 181 align-self:stretch; 182 min-height:0; 183 height:auto; 184 max-height:none; 185 } 186 187 /* ---------- Sidebar stays fixed; only the form column scrolls ---------- */ 188 .stepper{padding:0;border-right:1px solid var(--grey-2); 189 background:var(--white);border-radius:16px 0 0 16px; 190 align-self:stretch;min-height:0;overflow:hidden;} 191 .stepper-sticky{ 192 height:100%;padding:20px 12px;display:flex;flex-direction:column;gap:2px; 193 overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;} 194 .stepper .label{font-size:10.5px;font-weight:700;letter-spacing:.14em; 195 color:var(--muted);text-transform:uppercase;margin:0 0 10px 10px;} 196 .step{display:flex;align-items:center;gap:9px;width:100%; 197 min-height:40px;padding:7px 11px;border-radius:9px;border:none;background:transparent; 198 font-size:13.5px;font-weight:600;color:var(--ink);cursor:pointer;text-align:left; 199 line-height:.95;transition:background .18s,color .18s,transform .12s;} 200 .step:hover{background:var(--grey-1);} 201 .step:active{transform:scale(.985);} 202 .step.active{background:var(--ink);color:var(--white);} 203 .step.disabled,.step:disabled{ 204 opacity:1;cursor:default;color:#c9c9c4;background:transparent !important;pointer-events:none; 205 } 206 .step.disabled:hover,.step:disabled:hover{background:transparent !important;} 207 .step.disabled.active{background:var(--grey-1) !important;color:#8a8a86;} 208 .step .num{width:24px;height:24px;border-radius:7px;border:1px solid var(--grey-3); 209 display:flex;align-items:center;justify-content:center; 210 font-size:10.5px;font-weight:700;line-height:1;color:var(--muted);flex:none;transition:all .18s; 211 background:var(--white);} 212 .step.active .num{background:rgba(255,255,255,.10);border-color:transparent;color:var(--white);} 213 .step.completed .num{background:#effaf4;border-color:#b7ead2;color:#0f9f6e;} 214 .step-check{width:13px;height:13px;color:#0f9f6e;} 215 .step.disabled .num,.step:disabled .num{background:#fafafa;border-color:#ededeb;color:#c9c9c4;} 216 .step-text{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1;gap:0;} 217 .step-title{font-size:13px;font-weight:700;letter-spacing:-.01em;line-height:1.05;} 218 .step.disabled .step-title,.step:disabled .step-title{color:#c9c9c4;} 219 .step-desc{font-size:10px;font-weight:500;color:var(--muted);line-height:1.2; 220 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} 221 .step.active .step-desc{color:rgba(255,255,255,.62);} 222 .step.disabled .step-desc{color:#a1a1aa;} 223 .chevron{margin-left:auto;display:flex;align-items:center;justify-content:center; 224 color:inherit;opacity:.7;transition:color .18s ease,opacity .18s ease;flex:none;} 225 .step.active .chevron{opacity:1;} 226 .step-wrap{position:relative;} 227 .step-subnav{ 228 display:flex;flex-direction:column;gap:1px; 229 margin:4px 8px 10px 22px;padding:6px 0 6px 12px; 230 border-left:1px solid #e6e6e2; 231 } 232 .step-sub{ 233 display:flex;align-items:center;gap:6px;width:100%; 234 border:none;background:transparent;padding:6px 8px;border-radius:7px; 235 font-size:12px;font-weight:500;color:#8a8a86;line-height:1.25; 236 cursor:pointer;text-align:left;transition:background .15s ease; 237 } 238 .step-sub:hover{background:rgba(8,41,46,.04);} 239 .step-sub.is-current{background:transparent;font-weight:600;} 240 .step-sub-mark{ 241 flex:none;width:14px;height:14px; 242 display:inline-flex;align-items:center;justify-content:center; 243 } 244 .step-sub-arrow{display:block;color:#8a8a86;} 245 .step-sub-label{min-width:0;} 246 .step-subnav-scroll{display:none;} 247 /* ---------- Content ---------- */ 248 .form-card{padding:24px 28px 16px;min-height:0;height:auto;overflow:visible; 249 background:var(--white);border-radius:0 16px 16px 0;display:flex;flex-direction:column; 250 -webkit-overflow-scrolling:touch;} 251 .panel{animation:slideIn .4s cubic-bezier(.22,1,.36,1);flex:1;display:flex;flex-direction:column;min-height:0;}
252 /* Step 1 hugs content so CTA sits under package cards (not pushed to card bottom) */ 253 .panel-step1{flex:0 0 auto;min-height:0;overflow:visible;height:auto;} 254 .panel-step1 .panel-body{flex:0 0 auto;min-height:0;} 255 .panel-step2{min-height:0;overflow:visible;padding-bottom:18px;} 256 .panel-body{flex:1 1 auto;min-height:0;overflow:visible; 257 padding-bottom:12px;padding-right:6px;} 258 /* CTA under packages, right-aligned; sticky while scrolling */ 259 .panel > .btn-row, 260 .panel > .panel-cta{ 261 flex:none;margin-top:0;padding:12px 0 18px;position:sticky;bottom:0;z-index:5; 262 background:linear-gradient(180deg,rgba(255,255,255,.92) 0%,var(--white) 28%); 263 border-top:1px solid var(--grey-2); 264 } 265 .panel-step1 > .panel-cta{ 266 margin-top:4px;padding:10px 0 16px;justify-content:flex-end;align-self:stretch; 267 } 268 .panel-step1 > .panel-cta .submit{ 269 width:auto;min-width:260px;margin-left:auto; 270 } 271 .panel:not(.panel-step1):not(.panel-step2){overflow-x:hidden;overflow-y:auto;padding-bottom:20px; 272 scrollbar-width:none;-ms-overflow-style:none;} 273 .panel:not(.panel-step1):not(.panel-step2)::-webkit-scrollbar{display:none;width:0;height:0;} 274 .panel:not(.panel-step1):not(.panel-step2) > .btn-row{border-top:none;background:transparent;padding-bottom:20px;} 275 276 /* Step 2 â compact report/pay shell for short advisory sections */ 277 .app.card[data-step="2"]{ 278 flex:0 0 auto; 279 min-height:0; 280 height:auto; 281 max-height:none; 282 overflow:visible; 283 align-items:start; 284 } 285 .app.card[data-step="2"] .stepper{ 286 min-height:0;height:auto;max-height:none;overflow:hidden;align-self:stretch; 287 } 288 .app.card[data-step="2"] .form-card{ 289 min-height:0;height:auto;max-height:none;overflow:visible; 290 display:flex;flex-direction:column; 291 } 292 .app.card[data-step="2"] .panel-step2{ 293 flex:0 1 auto;min-height:0;height:auto;overflow:visible; 294 display:flex;flex-direction:column;padding-bottom:0; 295 } 296 297 /* Step 2 â name availability (masdarcity single-column layout) */ 298 .na-layout{flex:0 1 auto;min-height:0;height:auto;display:grid; 299 grid-template-columns:minmax(0,1fr) minmax(260px,320px); 300 grid-template-rows:auto auto auto; 301 column-gap:20px;row-gap:12px;align-items:start;overflow:visible;padding-bottom:0;} 302 .na-layout.na-layout--availability{ 303 display:flex;flex-direction:column;gap:12px; 304 grid-template-columns:none;grid-template-rows:none; 305 } 306 .na-layout.na-layout--availability .na-main{ 307 display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;flex:1 1 auto; 308 } 309 .na-layout.na-layout--availability .na-main .name-availability-step, 310 .na-layout.na-layout--availability .na-main .report{ 311 border:1px solid var(--grey-2);border-radius:14px;background:var(--white); 312 box-shadow:0 6px 18px rgba(17,17,19,.04); 313 } 314 .na-step-actions{ 315 display:flex;align-items:center;justify-content:space-between; 316 gap:12px;flex:none;width:100%;margin-top:4px;padding-top:4px; 317 } 318 .na-step-actions-end{ 319 display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin-left:auto; 320 } 321 .na-step-actions .na-back{margin-top:0;margin-bottom:0;flex:none;width:auto;} 322 .na-step-actions .na-pay-cta{ 323 width:auto;min-width:150px;min-height:42px;height:42px;margin-top:0; 324 } 325 .na-step-actions .na-pay-cta:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;} 326 .na-step-actions .na-pay-error{max-width:520px;text-align:right;line-height:1.45;margin:0;} 327 .na-main{display:contents; 328 scrollbar-width:none;-ms-overflow-style:none;} 329 .na-main::-webkit-scrollbar{display:none;width:0;height:0;} 330 .na-main > .na-email-banner{grid-column:1;grid-row:1;} 331 .na-main > .na-back{grid-column:1;grid-row:2;} 332 .na-main > .report,.na-main > .report-loading,.na-main > .report-error{grid-column:1;grid-row:3;} 333 .na-main .report{min-height:0;display:flex;flex-direction:column;overflow:hidden; 334 border:1px solid var(--grey-2);border-radius:14px;background:var(--white); 335 box-shadow:0 6px 18px rgba(17,17,19,.04);} 336 .na-main .report-head{flex:none;padding:14px 16px 12px;border-bottom:1px solid var(--grey-2); 337 background:var(--white);} 338 .na-main .report-head h3{margin-top:6px;font-size:17px;} 339 .na-main .rh-verdict{margin-top:10px;} 340 .na-main .rsec-panel{min-height:0;display:flex;flex-direction:column;overflow:hidden; 341 animation:rsecIn .22s ease;background:var(--white);scroll-margin-top:96px;} 342 .na-main .rsec-panel .rsec-head{border-bottom:1px solid var(--grey-2);background:var(--white);} 343 .na-main .rsec-panel .rsec-inner{min-height:0;overflow:hidden;padding:14px 16px 16px;} 344 @keyframes rsecIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}} 345 .na-email-banner{margin:0;padding:11px 14px;border-radius:12px;border:1px solid #dbe7e4; 346 background:#f3faf7;color:#0f3d38;font-size:12.5px;font-weight:600;line-height:1.45;flex:none;} 347 .na-back{justify-self:start;align-self:start;width:auto;margin-top:0;margin-bottom:4px;flex:none; 348 position:relative;z-index:2;} 349 .na-pay{grid-column:2;grid-row:1 / 4;min-height:0;height:auto;max-height:none;align-self:start; 350 display:flex;flex-direction:column; 351 padding:16px 18px 14px;border:1px solid var(--grey-2);border-radius:14px; 352 background:linear-gradient(180deg,#fbfbfa 0%,#fff 48%); 353 box-shadow:0 8px 24px rgba(17,17,19,.04);overflow:hidden !important; 354 scrollbar-width:none;-ms-overflow-style:none;} 355 .na-pay::-webkit-scrollbar{display:none;width:0;height:0;} 356 .na-pay-body{flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden; 357 scrollbar-width:thin;} 358 .na-pay-actions{flex:none;margin-top:14px;padding-top:0;display:flex;flex-direction:column;} 359 .na-pay-block-notice{ 360 margin:0 0 10px;padding:10px 12px;border-radius:8px; 361 background:#fef2f2;border:1px solid #fecaca;color:#991b1b; 362 font-size:12px;font-weight:600;line-height:1.45; 363 } 364 .na-pay-block-notice:empty{display:none;}
365 .na-pay-details{margin:0;display:grid;gap:10px;} 366 .na-pay-details > div{padding-bottom:10px;border-bottom:1px solid var(--grey-2);} 367 .na-pay-details > div:last-child{border-bottom:none;padding-bottom:0;} 368 .na-pay-details dt{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);} 369 .na-pay-details dd{margin:4px 0 0;font-size:13px;font-weight:700;color:var(--ink);line-height:1.28; 370 overflow-wrap:anywhere;word-break:break-word;} 371 .na-pay-includes{margin-top:12px;padding:0;border:none;border-radius:0;background:transparent;} 372 .na-pay-includes-label{font-size:10.5px;font-weight:700;letter-spacing:.08em; 373 text-transform:uppercase;color:var(--muted);margin-bottom:7px;} 374 .na-pay-includes ul{margin:0;padding:0;list-style:none;display:grid;gap:3px;} 375 .na-pay-includes li{display:flex;align-items:flex-start;gap:7px; 376 font-size:11px;font-weight:500;color:#3c3c38;line-height:1.16;} 377 .na-pay-check{flex:none;width:13px;height:13px;margin-top:0;border-radius:999px; 378 background:var(--grey-1);color:var(--ink);font-size:8px;font-weight:800; 379 display:inline-flex;align-items:center;justify-content:center;} 380 .na-pay-includes-more{margin-top:6px;padding:0;border:none;background:transparent; 381 font-size:11px;font-weight:700;color:var(--muted);line-height:1.2;cursor:pointer;} 382 .na-pay-includes-more:hover{color:var(--ink);} 383 .na-pay-amount{margin-top:10px;padding:10px 0 0;border-top:1px solid var(--grey-2); 384 border-radius:0 !important;border-right:none !important;border-bottom:none !important;border-left:none !important; 385 background:transparent !important;} 386 .na-pay-amount-label{font-size:10.5px;font-weight:700;letter-spacing:.08em; 387 text-transform:uppercase;color:var(--muted);} 388 .na-pay-amount-value{margin-top:4px;font-size:24px;font-weight:800;letter-spacing:-.03em; 389 color:var(--ink);line-height:1.1;} 390 .na-pay-amount-note{margin-top:4px;font-size:10.5px;font-weight:500;color:#5f746f;line-height:1.25;} 391 .na-pay-cta.loading{opacity:.92;cursor:wait;} 392 .na-pay-spinner{flex:none;animation:naSpin .7s linear infinite;} 393 @keyframes naSpin{to{transform:rotate(360deg);}} 394 .pricing-tw{flex:1;display:flex;flex-direction:column;min-height:0;} 395 .pricing-tw .pricing-checkout-bar, 396 .pricing-tw .pricing-back-row{ 397 position:relative; 398 z-index:2; 399 } 400 .pricing-tw .pricing-checkout-bar{margin-bottom:56px;} 401 .pricing-tw .pricing-back-row{padding-bottom:56px;} 402 @keyframes slideIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}} 403 .form-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:4px;} 404 .eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.16em;color:var(--muted);text-transform:uppercase;} 405 .form-head h2{font-size:22px;font-weight:800;letter-spacing:-.02em;margin-top:5px;line-height:1.25;} 406 .form-head p{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.5; 407 max-width:48ch;padding-bottom:14px;border-bottom:1px solid var(--grey-2);} 408 409 .field{margin-top:14px;} 410 .panel > .field:first-child,.panel > .row-2.field:first-child,.panel > .row-3.field:first-child,.panel > .form-grid-2.field:first-child{margin-top:0;} 411 .field label,.row-2 label,.row-3 label,.form-grid-2 label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;letter-spacing:-.01em;} 412 .row-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px;} 413 .row-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;} 414 .form-grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px;align-items:start;} 415 .accounting-fields{gap:14px 16px;} 416 .accounting-fields .input-wrap input, 417 .accounting-fields .select-trigger, 418 .accounting-fields .ms-trigger{ 419 height:50px !important;min-height:50px !important;box-sizing:border-box; 420 } 421 .accounting-fields .input-wrap input{ 422 padding:0 40px 0 42px !important; 423 line-height:50px !important; 424 } 425 .accounting-fields .select-trigger, 426 .accounting-fields .ms-trigger{ 427 padding:12px 40px 6px 42px !important; 428 } 429 .accounting-fields .ms-tags{align-items:center;} 430 .accounting-fields .ms-tag{height:22px;max-width:210px;font-size:11px;} 431 .form-col{display:flex;flex-direction:column;gap:14px;min-width:0;} 432 .form-col > .row-2{margin-top:0;} 433 .name-check-packages{margin-top:14px;padding-top:6px;padding-bottom:4px;border-top:1px solid var(--grey-2);} 434 .name-check-packages .catalog-carousel{ 435 padding-top:4px !important;padding-bottom:12px !important;
436 align-items:stretch;overflow-x:auto;overflow-y:visible; 437 } 438 .name-check-packages .catalog-card > .catalog-card-face{min-height:0 !important;height:100%;} 439 /* Selected pill: same as pricing cards â centered on the top border */ 440 .name-check-packages .catalog-card-wrap{ 441 position:relative;padding-top:14px;overflow:visible !important; 442 display:flex;flex-direction:column;align-self:stretch; 443 } 444 .name-check-packages .catalog-select-spacer{ 445 flex:none;margin-top:24px;height:42px; 446 } 447 .name-check-packages .catalog-selected-badge{ 448 position:absolute;left:50%;top:14px;transform:translate(-50%,-50%); 449 z-index:50;pointer-events:none; 450 } 451 .name-check-packages .catalog-selected-badge span{ 452 display:inline-block;white-space:nowrap;border-radius:999px; 453 background:#08292E;color:#fff !important; 454 font-size:12px;font-weight:600;line-height:1;padding:6px 16px; 455 box-shadow:0 1px 2px rgba(8,41,46,.12); 456 } 457 .name-check-packages .catalog-card-face{ 458 position:relative;z-index:1; 459 border:1px solid #ececea;box-shadow:none; 460 transition:border-color .3s,box-shadow .3s; 461 } 462 .name-check-packages .catalog-card-face.is-selected{ 463 border:1.5px solid #08292E; 464 box-shadow:0 10px 28px rgba(8,41,46,.10); 465 } 466 .name-check-packages .catalog-card-face:not(.is-selected):hover{ 467 border-color:rgba(8,41,46,.4); 468 } 469 .input-wrap{position:relative;} 470 .float-field{position:relative;} 471 .float-label{ 472 position:absolute;left:38px;top:0;z-index:3;display:none; 473 max-width:calc(100% - 76px);padding:0 6px;background:var(--white); 474 color:var(--ink) !important;font-size:12px;font-weight:600;line-height:1; 475 transform:translateY(-50%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 476 pointer-events:none; 477 } 478 .float-field:focus-within .float-label, 479 .float-field.is-floating .float-label{display:block;} 480 .float-field:focus-within input, 481 .float-field:focus-within .select-trigger, 482 .float-field:focus-within .ms-trigger, 483 .select-trigger.open, 484 .ms-trigger.open{ 485 border-color:#71717a !important; 486 box-shadow:0 0 0 3px rgba(0,0,0,.06) !important; 487 } 488 .input-wrap .icon,.select-trigger .icon{position:absolute;left:14px;top:50%;transform:translateY(-50%); 489 color:#a9a9a4;font-size:14px;pointer-events:none;} 490 .page input[type="text"],.page select,.select-trigger,.ms-trigger{ 491 width:100%;height:44px;min-height:44px;font-size:14px;color:var(--ink);background:var(--white); 492 border:1px solid var(--grey-3);border-radius:10px; 493 padding:0 40px 0 42px;line-height:18px;outline:none; 494 transition:border-color .15s,box-shadow .15s,background .15s;} 495 .page select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:36px; 496 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237c7c78' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); 497 background-repeat:no-repeat;background-position:right 16px center;} 498 .page select:disabled,.select-trigger:disabled{background-color:var(--grey-1);cursor:not-allowed;color:var(--muted); 499 border-color:var(--grey-3);} 500 .page input::placeholder,.placeholder{color:#a1a1aa;} 501 .page input:focus,.page select:focus,.select-trigger.open,.select-trigger:focus,.ms-trigger.open,.ms-trigger:focus{ 502 border-color:#71717a;box-shadow:0 0 0 3px rgba(0,0,0,.06);} 503 .req{color:#dc2626;font-weight:700;} 504 .error input,.error select,.error .select-trigger,.error .ms-trigger{ 505 border-color:#d7d7d2 !important;box-shadow:none !important;background:#fffdfd;} 506 .field-error{margin-top:5px;font-size:11.5px;font-weight:600;color:#dc2626;line-height:1.3;} 507 .flash{animation:flash 1.2s ease;} 508 @keyframes flash{0%,60%{background:rgba(220,38,38,.06);border-radius:8px;}100%{background:transparent;}} 509 510 /* Custom select */ 511 .select-control{position:relative;} 512 .select-trigger{position:relative;display:flex;align-items:center;text-align:left;cursor:pointer;} 513 .select-value,.select-trigger .placeholder{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px;} 514 .select-chev,.ms-chev{position:absolute;right:11px;top:50%;transform:translateY(-50%); 515 width:18px;height:18px;line-height:0;display:flex;align-items:center;justify-content:center;color:var(--muted);pointer-events:none;} 516 .select-chev svg,.ms-chev svg{display:block;width:16px;height:16px;}
517 .select-panel,.select-panel-portal{z-index:35; 518 display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid #ececea;border-radius:10px; 519 box-shadow:0 18px 38px rgba(17,17,19,.12);padding:6px;color:#08292E; 520 max-height:240px !important;overflow-x:hidden;overflow-y:scroll !important; 521 overscroll-behavior:contain;scrollbar-gutter:stable; 522 scrollbar-width:thin;scrollbar-color:#9ca3af #f3f4f6;} 523 .select-panel{position:absolute;top:calc(100% + 6px);left:0;right:0; 524 opacity:0;transform:translateY(-5px);pointer-events:none;transition:opacity .16s ease,transform .16s ease;} 525 .select-panel::-webkit-scrollbar,.select-panel-portal::-webkit-scrollbar{width:8px;} 526 .select-panel::-webkit-scrollbar-thumb,.select-panel-portal::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:999px;border:2px solid #fff;} 527 .select-panel::-webkit-scrollbar-track,.select-panel-portal::-webkit-scrollbar-track{background:#f3f4f6;border-radius:999px;} 528 .select-options-scroll{scrollbar-width:thin;scrollbar-color:#9ca3af #f3f4f6; 529 scrollbar-gutter:stable;} 530 .select-options-scroll::-webkit-scrollbar{display:block;width:8px;} 531 .select-options-scroll::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:999px;border:2px solid #fff;} 532 .select-options-scroll::-webkit-scrollbar-track{background:#f3f4f6;border-radius:999px;} 533 .select-panel.open,.select-panel-portal{opacity:1;transform:none;pointer-events:auto;} 534 .select-panel .select-option,.select-panel-portal .select-option{flex:0 0 auto;color:#08292E;} 535 .select-panel-portal .select-option:hover{background:#f6f6f4;} 536 .select-option{display:flex;align-items:center;justify-content:space-between;gap:10px; 537 width:100%;border:none;background:transparent;color:var(--ink);border-radius:8px; 538 padding:8px 9px;font-size:12.5px;font-weight:600;text-align:left;cursor:pointer; 539 transition:background .12s,color .12s;} 540 .select-option:hover{background:var(--grey-1);} 541 .select-option.selected{background:var(--grey-1);color:var(--ink);} 542 543 /* Multi-select â journey-style: one row, max 3 chips + +N */ 544 .ms{position:relative;} 545 .ms-trigger{position:relative;text-align:left;cursor:pointer;display:flex;align-items:center;gap:6px; 546 flex-wrap:nowrap;height:auto;min-height:44px;padding-top:8px;padding-bottom:8px;overflow:hidden;background-color:var(--white);} 547 .ms-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%); 548 color:#a9a9a4;pointer-events:none;} 549 .ms-trigger .placeholder{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px;} 550 .ms-tags{display:flex;min-width:0;flex:1;align-items:center;gap:4px;overflow:hidden;padding-right:22px;position:relative;} 551 .ms-tags-measure{position:absolute;left:-9999px;top:0;visibility:hidden;pointer-events:none;display:flex;align-items:center;gap:4px;white-space:nowrap;} 552 .ms-flag{width:18px;height:12px;object-fit:cover;border-radius:2px;flex:none; 553 box-shadow:0 0 0 1px rgba(8,41,46,.12);background:#f0f0ee;} 554 .ms-tag .ms-flag{width:16px;height:11px;} 555 .ms-tag-label{min-width:0;overflow:hidden;text-overflow:ellipsis;} 556 .ms-tag{display:inline-flex;align-items:center;gap:4px;background:var(--grey-1); 557 border:1px solid var(--grey-2);border-radius:999px;padding:0 8px;height:24px; 558 max-width:180px;flex:0 0 auto;font-size:11.5px;font-weight:700;line-height:1;white-space:nowrap;overflow:hidden; 559 text-overflow:ellipsis;animation:pop .18s ease;} 560 .ms-tag.more{max-width:none;flex:none;padding:0 7px;color:var(--ink);background:var(--grey-1);border-color:var(--grey-3);} 561 @keyframes pop{from{opacity:0;transform:scale(.85);}to{opacity:1;transform:none;}} 562 .ms-tag b{font-weight:500;color:var(--muted);cursor:pointer;line-height:1;flex:none;} 563 .ms-panel,.ms-panel-portal{z-index:30; 564 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-content:start; 565 background:#fff;border:1px solid #ececea;border-radius:10px;color:#08292E; 566 box-shadow:0 16px 40px rgba(17,17,19,.12);padding:6px; 567 max-height:240px !important;overflow-x:hidden;overflow-y:scroll !important; 568 overscroll-behavior:contain;scrollbar-gutter:stable; 569 scrollbar-width:thin;scrollbar-color:#9ca3af #f3f4f6;} 570 .ms-panel{position:absolute;top:calc(100% + 6px);left:0;right:0; 571 opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .16s ease,transform .16s ease;} 572 .ms-panel::-webkit-scrollbar,.ms-panel-portal::-webkit-scrollbar{width:8px;} 573 .ms-panel::-webkit-scrollbar-thumb,.ms-panel-portal::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:999px;border:2px solid #fff;} 574 .ms-panel::-webkit-scrollbar-track,.ms-panel-portal::-webkit-scrollbar-track{background:#f3f4f6;border-radius:999px;} 575 .ms-panel.open,.ms-panel-portal{opacity:1;transform:none;pointer-events:auto;} 576 .ms-panel-portal .ms-option .box{width:16px;height:16px;border-radius:5px;flex:none; 577 border:1.4px solid #dcdad4;display:flex;align-items:center;justify-content:center; 578 font-size:10px;color:#fff;} 579 .ms-panel-portal .ms-option.selected .box{background:#08292E;border-color:transparent;} 580 .ms-panel-portal .ms-option.selected .box::after{content:"â";}
581 .ms-option{display:flex;align-items:center;gap:10px;padding:9px 10px; 582 border-radius:9px;font-size:12.5px;font-weight:600;cursor:pointer;user-select:none;transition:background .12s;} 583 .ms-option:hover{background:var(--grey-1);} 584 .ms-option .box{width:16px;height:16px;border-radius:5px;flex:none; 585 border:1.4px solid var(--grey-3);display:flex;align-items:center;justify-content:center; 586 font-size:10px;color:var(--white);transition:all .12s;} 587 .ms-option.selected .box{background:var(--ink);border-color:transparent;} 588 .ms-option.selected .box::after{content:"â";} 589 590 .name-check-packages .catalog-card-face > button[type="button"]{ 591 min-height:46px;height:46px;border-radius:9px; 592 display:inline-flex;align-items:center;justify-content:center; 593 padding:0 20px;font-size:15px;line-height:20px;font-weight:700; 594 } 595 596 /* Buttons */ 597 .submit{margin-top:20px;width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center; 598 font-size:13.5px;font-weight:700;color:var(--white); 599 background:var(--ink);border:none;border-radius:8px;padding:0 18px; 600 line-height:18px;cursor:pointer; 601 transition:transform .12s,box-shadow .2s,background .2s;} 602 .submit:hover{background:#061f23;box-shadow:0 8px 18px rgba(8,41,46,.18);transform:translateY(-1px);} 603 .submit:active{transform:translateY(0) scale(.99);} 604 .submit.slim{width:auto;margin-top:0;padding:10px 18px;font-size:13px;} 605 /* Pay Online: pinned under amount so it stays visible */ 606 .page .submit.na-pay-cta{ 607 flex:none;margin-top:10px;width:100%;min-height:36px;height:36px; 608 display:inline-flex;align-items:center;justify-content:center;gap:6px; 609 padding:0 14px;line-height:1;font-size:13px; 610 } 611 .page .na-pay-actions .submit.na-pay-cta:first-child{margin-top:8px;} 612 .btn-row{display:flex;align-items:center;gap:12px;margin-top:var(--space-5);} 613 .btn-row.end{justify-content:flex-end;} 614 .btn-row.split{justify-content:space-between;} 615 .ghost{font-size:13px;font-weight:700;color:var(--ink);background:var(--white); 616 border:1px solid var(--grey-3);border-radius:8px;padding:0 16px;min-height:42px;gap:7px; 617 display:inline-flex;align-items:center;justify-content:center;line-height:18px;cursor:pointer; 618 transition:background .15s,transform .12s;} 619 .ghost:hover{background:var(--grey-1);} 620 621 /* Review */ 622 .review-list{margin-top:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;} 623 .review-row{display:flex;justify-content:space-between;align-items:center;gap:12px; 624 min-height:58px;padding:8px 12px;border:1px solid var(--grey-2);border-radius:8px; 625 background:var(--white);} 626 .review-label{font-size:10.5px;font-weight:700;letter-spacing:.08em; 627 line-height:1.15;text-transform:uppercase;color:var(--muted);} 628 .review-value{font-size:13.5px;font-weight:600;margin-top:3px;line-height:1.2;} 629 .review-value.empty{color:var(--muted);font-weight:500;font-style:italic;} 630 .edit-btn{width:30px;height:30px;display:flex;align-items:center;justify-content:center; 631 color:var(--ink);background:var(--grey-1);border:1px solid var(--grey-2); 632 border-radius:50%;padding:0;cursor:pointer;transition:all .15s;flex:none;} 633 .edit-btn:hover,.edit-btn:focus-visible{border-color:var(--ink);color:var(--white); 634 background:var(--ink);outline:none;box-shadow:0 0 0 3px rgba(8,41,46,.10);} 635 636 637 /* ---------- AI report generator (B&W) ---------- */ 638 .report-gen{margin-top:24px;background:var(--grey-1); 639 border:1px solid var(--grey-2);border-radius:12px;padding:18px;} 640 .rg-title{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:800;letter-spacing:-.01em;} 641 .rg-title-ico{color:var(--ink);flex:none;} 642 .rg-title-text{color:var(--ink);} 643 .rg-sub{margin-top:5px;font-size:12px;color:var(--muted);line-height:1.55;max-width:60ch;} 644 .rg-controls{display:flex;gap:12px;align-items:flex-end;margin-top:14px;flex-wrap:wrap;} 645 .rg-field{flex:1;min-width:220px;} 646 .rg-field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;} 647 .gen-btn{background:var(--ink);white-space:nowrap;} 648 .gen-btn:hover{background:#061f23;} 649 .gen-btn:disabled{opacity:.65;
649cursor:wait;} 650 .report-error{margin-top:0;font-size:12.5px;font-weight:600;color:#b3261e; 651 background:#fdf0ee;border:1px solid #f0cfc9;border-radius:10px;padding:14px 16px;} 652 .report-error-retry{display:flex;flex-direction:column;align-items:flex-start;gap:12px;} 653 .report-error-retry .gen-btn{margin-top:0;} 654 .submit:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none;} 655 .submit:disabled:hover{background:var(--ink);transform:none;box-shadow:none;} 656 657 /* Loading */ 658 .report-loading{margin-top:0;border:1px solid var(--grey-2);border-radius:12px; 659 min-height:clamp(360px,calc(100dvh - var(--header-h) - 210px),620px); 660 padding:36px 24px;text-align:center;animation:slideIn .3s ease; 661 display:flex;flex-direction:column;align-items:center;justify-content:center;} 662 .rl-spinner{width:34px;height:34px;border-radius:50%;margin:0 auto; 663 border:3px solid var(--grey-2);border-top-color:var(--ink); 664 animation:spin .8s linear infinite;} 665 @keyframes spin{to{transform:rotate(360deg);}} 666 .rl-msg{margin-top:14px;font-size:13px;font-weight:700;color:var(--ink); 667 animation:slideIn .35s ease;} 668 .rl-skeletons{margin-top:20px;width:100%;max-width:760px;display:flex;flex-direction:column;gap:10px;align-items:center;} 669 .skel{height:10px;border-radius:6px; 670 background:linear-gradient(90deg,var(--grey-2) 25%,var(--grey-1) 50%,var(--grey-2) 75%); 671 background-size:200% 100%;animation:shimmer 1.4s infinite;} 672 @keyframes shimmer{to{background-position:-200% 0;}} 673 674 /* Report â premium light editorial */ 675 .report{margin-top:0;animation:slideIn .45s cubic-bezier(.22,1,.36,1); 676 border:1px solid var(--grey-2);border-radius:14px;background:var(--white); 677 box-shadow:0 1px 2px rgba(17,17,19,.03),0 12px 28px rgba(17,17,19,.04); 678 overflow:hidden;} 679 .report-head{background:linear-gradient(180deg,#fbfbfa 0%,#f6f6f4 100%); 680 border-bottom:1px solid var(--grey-2);padding:20px 22px 18px;} 681 .rh-top{display:flex;align-items:center;justify-content:space-between;gap:12px;} 682 .rh-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase; 683 color:var(--muted);} 684 .rh-regen{border:1px solid var(--grey-3);background:var(--white); 685 color:var(--ink);border-radius:999px;padding:6px 12px;font-size:11px;font-weight:700; 686 cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s; 687 box-shadow:0 1px 2px rgba(17,17,19,.04);} 688 .rh-regen:hover{background:var(--ink);border-color:var(--ink);color:var(--white);} 689 .rh-regen:disabled{opacity:.55;cursor:wait;} 690 .report-head h3{margin-top:10px;font-size:20px;font-weight:800;letter-spacing:-.025em; 691 color:var(--ink);line-height:1.3;} 692 .rh-entity{display:inline;} 693 .rh-sep{color:#b0b0aa;font-weight:600;} 694 .rh-doc{font-weight:700;color:#3c3c38;} 695 .rh-meta{margin-top:7px;font-size:12px;color:var(--muted);line-height:1.45;} 696 .rh-verdict{margin-top:14px;display:inline-flex;align-items:center;gap:8px; 697 max-width:100%;font-size:12px;font-weight:600;color:var(--ink); 698 background:var(--white);border:1px solid var(--grey-3); 699 border-radius:999px;padding:7px 12px 7px 10px;line-height:1.4; 700 box-shadow:0 1px 2px rgba(17,17,19,.03);} 701 .rh-verdict-dot{width:7px;height:7px;border-radius:50%;flex:none; 702 background:var(--ink);box-shadow:0 0 0 3px rgba(8,41,46,.10);} 703 .rh-nav{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px; 704 padding-top:14px;border-top:1px solid var(--grey-2);} 705 .rh-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700; 706 color:#5c5c58;background:var(--white);border:1px solid var(--grey-3); 707 border-radius:999px;padding:5px 10px;cursor:pointer;transition:all .15s;} 708 .rh-pill-icon{flex:none;opacity:.75;} 709 .rh-pill:hover{border-color:var(--ink);color:var(--ink);background:#fafafa;} 710 .rh-pill.on{background:var(--ink);color:var(--white);border-color:var(--ink);} 711 .rh-pill.on .rh-pill-icon{opacity:1;} 712 .rsec-overview{padding:16px 22px 6px;background:var(--white);} 713 .rsec-overview-label{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase; 714 color:var(--muted);margin-bottom:8px;} 715 .rsec-overview-body{font-size:13.5px;line-height:1.65;color:#3c3c38; 716 padding:12px 14px;border-radius:10px;background:var(--grey-1);border:1px solid var(--grey-2);} 717 .rsec-overview-body strong{color:var(--ink);} 718 719 .rsec-list{display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px;background:#fafaf8;} 720 .rsec{border:1px solid var(--grey-2);border-radius:12px;background:var(--white); 721 overflow:hidden;box-shadow:0 1px 2px rgba(17,17,19,.02);} 722 .rsec.open,.rsec-single-card{border-color:#e2e2de;box-shadow:0 6px 18px rgba(17,17,19,.05);} 723 .rsec-head{display:flex;align-items:flex-start;gap:12px;width:100%; 724 border:none;background:var(--white);cursor:default;text-align:left; 725 padding:14px 16px;flex:none;border-bottom:1px solid var(--grey-2);} 726 .rsec-head-text{display:flex;flex-direction:column;gap:3px;min-width:0;} 727 .rsec-kicker{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);} 728 .rsec-badge{width:32px;height:32px;border-radius:9px;flex:none; 729 background:var(--ink);color:var(--white);border:1px solid var(--ink); 730 font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;} 731 .rsec-title{font-size:14px;font-weight:700;letter-spacing:-.015em;color:var(--ink);line-height:1.3;}
732 .rsec-body{display:block;} 733 .rsec-inner{overflow:hidden;padding:14px 16px 16px;} 734 .rsec-inner p{font-size:13.5px;color:#3c3c38;line-height:1.65;margin:0 0 10px;} 735 .rsec-inner p:last-child{margin-bottom:0;} 736 .rsec-inner ul,.rsec-inner ol{margin:4px 0 0 18px;padding:0;} 737 .rsec-inner ul{list-style:disc outside;} 738 .rsec-inner ol{list-style:decimal outside;} 739 .rsec-inner li{font-size:13px;color:#3c3c38;line-height:1.6;margin-bottom:6px;display:list-item;} 740 .rsec-inner li::marker{color:#8a8a86;} 741 .rsec-inner li:last-child{margin-bottom:0;} 742 .rsec-inner strong{color:var(--ink);} 743 .rsec-inner h5{font-size:12px;font-weight:800;letter-spacing:.04em; 744 text-transform:uppercase;color:var(--muted);margin:14px 0 8px;} 745 .tbl-wrap{overflow-x:auto;margin:6px 0 14px;border:1px solid var(--grey-2);border-radius:10px;} 746 .tbl-wrap table{width:100%;border-collapse:collapse;font-size:12px;} 747 .tbl-wrap th{background:var(--grey-1);color:var(--ink);font-weight:800; 748 text-align:left;padding:9px 12px;border-bottom:1px solid var(--grey-2);white-space:nowrap;} 749 .tbl-wrap td{padding:9px 12px;border-bottom:1px solid var(--grey-2); 750 color:#3c3c38;line-height:1.5;vertical-align:top;} 751 .tbl-wrap tr:last-child td{border-bottom:none;} 752 .report-note{margin:0;padding:12px 18px 16px;font-size:11px;color:var(--muted); 753 text-align:center;line-height:1.45;background:var(--white);border-top:1px solid var(--grey-2);} 754 755 /* Step 3 â selection + checkout spacing */ 756 .pricing-selection{border:1px solid var(--grey-2);background:var(--grey-1); 757 border-radius:12px;padding:14px 16px;} 758 .pricing-selection-label{font-size:10.5px;font-weight:700;letter-spacing:.14em; 759 text-transform:uppercase;color:var(--muted);margin-bottom:10px;} 760 .pricing-selection-chips{display:flex;flex-wrap:wrap;gap:8px;} 761 .pricing-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--grey-3); 762 background:var(--white);border-radius:999px;padding:6px 12px;line-height:1.2;} 763 .pricing-chip-k{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a8a86;} 764 .pricing-chip-v{font-size:12px;font-weight:600;color:var(--ink);} 765 .pricing-chip-ghost{border-style:dashed;background:transparent;color:var(--muted); 766 font-size:12px;font-weight:600;cursor:pointer;transition:border-color .15s,color .15s;} 767 .pricing-chip-ghost:hover{border-color:var(--ink);color:var(--ink);} 768 .pricing-checkout-error{margin-top:12px;border:1px solid #fecaca;background:#fef2f2; 769 border-radius:10px;padding:12px 14px;text-align:center;font-size:13px;font-weight:600;color:#b91c1c;} 770 .pricing-empty{margin-top:16px;border:1px solid var(--grey-2);background:var(--grey-1); 771 border-radius:14px;padding:28px 24px;text-align:center;} 772 .pricing-empty-title{font-size:16px;font-weight:700;color:var(--ink);margin:0;} 773 .pricing-empty-text{margin:8px auto 0;max-width:42ch;font-size:13px;line-height:1.55;color:#64748b;} 774 .pricing-empty-btn{margin-top:16px;border:1px solid var(--ink);background:var(--ink); 775 color:var(--white);border-radius:8px;padding:10px 18px;font-size:13px;font-weight:700;cursor:pointer; 776 transition:background .15s;} 777 .pricing-empty-btn:hover{background:#061f23;} 778 .pricing-checkout-bar{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center; 779 justify-content:space-between;gap:14px 18px;border-radius:12px;background:var(--ink); 780 padding:14px 18px;} 781 .pricing-checkout-label{font-size:10px;font-weight:700;letter-spacing:.12em; 782 text-transform:uppercase;color:rgba(255,255,255,.5);} 783 .pricing-checkout-title{margin-top:3px;font-size:13.5px;font-weight:700;color:var(--white);line-height:1.3;} 784 .pricing-checkout-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;} 785 .pricing-checkout-price{text-align:right;} 786 .pricing-checkout-amount{font-size:17px;font-weight:700;color:var(--white);line-height:1.2;} 787 .pricing-checkout-quote{font-size:13.5px;font-weight:600;color:rgba(255,255,255,.88);} 788 .pricing-checkout-hint{margin-top:2px;font-size:10px;font-weight:600;color:rgba(255,255,255,.45);} 789 .pricing-checkout-cta{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.2); 790 background:var(--white);color:var(--ink);border-radius:8px;padding:10px 16px; 791 font-size:13.5px;font-weight:700;cursor:pointer;transition:transform .15s,background .15s;} 792 .pricing-checkout-cta:hover:not(:disabled){background:rgba(255,255,255,.92);transform:translateY(-1px);} 793 .pricing-checkout-cta:disabled{opacity:.6;cursor:not-allowed;} 794 .pricing-back-row{margin-top:16px;padding-top:0;} 795
796 /* Catalog package carousel â 3 cards visible on desktop */ 797 .catalog-carousel-shell{position:relative;margin-top:16px;overflow:visible;} 798 .catalog-carousel{ 799 scroll-padding-inline:2px;scrollbar-width:none;-ms-overflow-style:none; 800 scroll-behavior:smooth;-webkit-overflow-scrolling:touch; 801 overscroll-behavior-x:contain;touch-action:pan-x pan-y; 802 align-items:stretch; 803 } 804 .catalog-carousel::-webkit-scrollbar{display:none;} 805 .catalog-card{ 806 width:100%; 807 max-width:320px; 808 flex:0 0 100%; 809 height:auto;align-self:stretch; 810 } 811 @media (min-width:721px){ 812 .catalog-carousel-shell{padding-inline:40px;} 813 .catalog-carousel.catalog-count-2{justify-content:center;} 814 .catalog-card{ 815 /* 3 cards + 2 gaps (gap-4 = 16px) */ 816 width:calc((100% - 32px) / 3); 817 max-width:none; 818 flex:0 0 calc((100% - 32px) / 3); 819 } 820 } 821 @media (max-width:720px){ 822 .catalog-carousel-shell{overflow-x:hidden;overflow-y:visible;padding-inline:12px;} 823 .catalog-carousel{ 824 width:100%;min-width:0;max-width:100%; 825 display:flex !important;flex-direction:row !important; 826 overflow-x:auto !important;overflow-y:visible !important; 827 scroll-snap-type:x mandatory !important; 828 touch-action:pan-x pan-y; 829 gap:12px !important; 830 } 831 .name-check-packages .catalog-card{ 832 width:100%; 833 max-width:100%; 834 flex:0 0 100%; 835 scroll-snap-align:start; 836 scroll-snap-stop:always; 837 } 838 .name-check-packages .catalog-card-face{padding-left:16px !important;padding-right:16px !important;} 839 .name-check-packages .catalog-check-availability{width:100%;white-space:nowrap;} 840 } 841 .catalog-dots{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;} 842 .catalog-dot{width:6px;height:6px;border-radius:999px;border:none;padding:0;cursor:pointer; 843 background:rgba(8,41,46,.18);transition:all .2s;} 844 .catalog-dot.on{width:22px;background:var(--ink);} 845 .catalog-dot:hover{background:rgba(8,41,46,.4);} 846 .catalog-mobile-controls{display:none;} 847 .catalog-read-toggle{cursor:pointer !important;} 848 .catalog-more-toggle{cursor:pointer !important;} 849 .catalog-check-availability{cursor:pointer !important;} 850 .selected-package-view{display:flex;flex-direction:column;gap:14px;} 851 .catalog-back-btn{ 852 align-self:flex-start;display:inline-flex;align-items:center;gap:7px; 853 border:1px solid var(--grey-3);background:var(--white); 854 color:var(--ink);border-radius:9px;padding:10px 16px;font-size:13.5px; 855 font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,transform .15s; 856 } 857 .catalog-back-btn:hover{background:#f8faf9;border-color:var(--ink);transform:translateY(-1px);} 858 .catalog-back-btn-bottom{margin-top:4px;} 859 .catalog-carousel-arrow{ 860 position:absolute;top:50%;z-index:5;transform:translateY(-50%); 861 width:34px;height:34px;border-radius:999px;border:1px solid var(--grey-3); 862 background:var(--white);color:var(--ink);display:flex;align-items:center;justify-content:center; 863 box-shadow:0 4px 14px rgba(17,17,19,.08);cursor:pointer; 864 transition:background .15s,border-color .15s,opacity .15s,transform .15s; 865 } 866 .catalog-carousel-arrow:hover:not(:disabled){background:var(--ink);color:var(--white);border-color:var(--ink);} 867 .catalog-carousel-arrow:disabled{opacity:.35;cursor:not-allowed;} 868 .catalog-carousel-arrow-left{left:0;} 869 .catalog-carousel-arrow-right{right:0;} 870 @media (max-width:720px){ 871 .catalog-carousel-arrow{display:none !important;} 872 .catalog-dots{ 873 display:flex !important; 874 margin-top:14px; 875 } 876 .catalog-mobile-controls{ 877 position:absolute;left:-4px;right:-4px;top:50%;z-index:8; 878 display:flex;align-items:center;justify-content:space-between; 879 width:auto;max-width:none;margin:0;padding:0; 880 transform:translateY(-50%);pointer-events:none; 881 } 882 .catalog-mobile-dots{display:none;} 883 .catalog-mobile-arrow{ 884 width:36px;height:36px;border-radius:999px;border:1px solid rgba(8,41,46,.16); 885 background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center; 886 box-shadow:0 6px 18px rgba(8,41,46,.10);
886cursor:pointer; 887 transition:background .15s,border-color .15s,color .15s,opacity .15s,transform .15s; 888 pointer-events:auto;-webkit-tap-highlight-color:transparent; 889 } 890 .catalog-mobile-arrow:active:not(:disabled){transform:scale(.96);} 891 .catalog-mobile-arrow:disabled{opacity:.34;cursor:not-allowed;box-shadow:none;} 892 } 893 894 @media (max-width:1100px){ 895 .app.card{grid-template-columns:232px minmax(0,1fr);} 896 .form-card{padding:22px 22px 0;} 897 .na-layout{grid-template-columns:minmax(0,1fr) minmax(250px,300px);column-gap:16px;} 898 .na-pay{padding:14px 16px 12px;} 899 .na-pay-details{margin-top:0;gap:8px;} 900 .na-pay-details > div{padding-bottom:8px;} 901 .na-pay-includes{margin-top:10px;} 902 .na-pay-amount-value{font-size:23px;} 903 } 904 @media (max-width:720px){ 905 /* Real phones: do NOT pair overflow-x:clip with overflow-y:visible. 906 CSS computes the visible axis as auto, which creates a nested scrollport 907 that often traps touch on iOS/Android while DevTools still "works". */ 908 .page{ 909 width:100%;max-width:100vw; 910 overflow:visible !important; 911 touch-action:pan-y;-webkit-overflow-scrolling:touch; 912 } 913 .app.card{grid-template-columns:1fr; 914 width:100%;max-width:100%;min-width:0; 915 height:auto;max-height:none;overflow:visible !important; 916 min-height:0;} 917 .stepper{border-right:none;border-bottom:1px solid var(--grey-2); 918 border-radius:16px 16px 0 0;overflow:visible;min-width:0;max-width:100%; 919 max-height:none;} 920 .stepper-sticky{ 921 width:100%;min-width:0;max-width:100%; 922 height:auto;min-height:72px;max-height:none;padding:12px; 923 flex-direction:row;align-items:center;gap:8px;flex-wrap:nowrap; 924 overflow-x:auto;overflow-y:hidden; 925 touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch; 926 scrollbar-width:none; 927 } 928 .stepper-sticky::-webkit-scrollbar{display:none;width:0;height:0;} 929 .stepper .label{display:none;} 930 .step-wrap{flex:0 0 auto;width:auto;min-width:0;display:inline-flex;} 931 .stepper-sticky .step-wrap:has(.step-subnav){ 932 flex:0 0 auto;width:auto;display:inline-flex; 933 } 934 .stepper-sticky .step-subnav{display:none;} 935 .step{ 936 width:auto;min-width:max-content;min-height:40px;padding:8px 12px;border-radius:9px; 937 gap:8px;white-space:nowrap;justify-content:flex-start; 938 } 939 .step.active{min-height:40px;padding:8px 12px;} 940 .step.active .step-text{flex:0 0 auto;} 941 .step .num{width:24px;height:24px;border-radius:7px;font-size:10.5px;} 942 .step-title{font-size:13px;line-height:1;white-space:nowrap;} 943 .step.disabled:not(.active) .step-text{display:flex;} 944 .step.disabled:not(.active){background:transparent;border:none;} 945 .step-subnav-scroll{ 946 display:block; 947 padding:0 12px 10px; 948 overflow-x:auto; 949 overflow-y:hidden; 950 touch-action:pan-x pan-y; 951 -webkit-overflow-scrolling:touch; 952 scrollbar-width:none; 953 } 954 .step-subnav-scroll::-webkit-scrollbar{display:none;width:0;height:0;} 955 .step-subnav-scroll .step-subnav{ 956 display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px; 957 margin:0;padding:0;border-left:none;border-top:none;border-bottom:none; 958 width:max-content;max-width:none;overflow:visible; 959 } 960 .step-subnav::-webkit-scrollbar{display:none;width:0;height:0;} 961 .step-sub{ 962 flex:0 0 auto;width:auto;min-height:34px;padding:7px 12px;font-size:12px;line-height:1.15; 963 border-radius:999px;white-space:nowrap;background:#f7f8f7;border:1px solid #eceeed; 964 justify-content:center;text-align:center; 965 } 966 .step-sub.is-current{background:var(--ink);border-color:var(--ink);color:var(--white);} 967 .step-sub.is-current .step-sub-arrow{color:var(--white);} 968 .step-sub-label{white-space:nowrap;} 969 .row-2,.row-3,.form-grid-2{grid-template-columns:1fr;} 970 .review-list{grid-template-columns:1fr;} 971 .ms-panel{grid-template-columns:1fr;} 972 .form-card{padding:18px 12px 0;border-radius:0 0 16px 16px; 973 width:100%;min-width:0;max-width:100%;height:auto;overflow:visible !important;} 974 .panel,.panel-body,.panel-step1{ 975 width:100%;min-width:0;max-width:100%;overflow:visible !important; 976 touch-action:pan-y;-webkit-overflow-scrolling:touch; 977 } 978 .panel-step2{overflow:visible !important;} 979 .panel-body{overflow:visible !important;max-height:none;} 980 .input-wrap,.select-control,.ms{min-width:0;max-width:100%;} 981 .page input[type="text"],.page select,.select-trigger,.ms-trigger{ 982 min-height:48px;padding-left:34px;padding-right:32px;font-size:13.5px; 983 } 984 .input-wrap .icon,.select-trigger .icon,.ms-icon{left:12px;} 985 .select-chev,.ms-chev{right:9px;} 986 .select-trigger{ 987 height:auto;min-height:48px;padding-top:8px;padding-bottom:8px; 988 align-items:center; 989 } 990 .ms-trigger{ 991 height:auto;min-height:48px;padding-top:8px;padding-bottom:8px; 992 align-items:center; 993 } 994 .select-value,.select-trigger .placeholder,.ms-trigger .placeholder{ 995 white-space:normal;overflow:visible;text-overflow:clip; 996 line-height:18px;word-break:break-word;padding-right:4px; 997 } 998 .select-trigger .icon{top:24px;} 999 .na-layout{grid-template-columns:1fr;} 1000 .na-back{ 1001 margin-top:0;margin-bottom:10px;width:100%;max-width:100%; 1002 justify-content:center;position:relative;z-index:3; 1003 } 1004 .page{padding:10px 0;min-height:0;overflow:visible !important;} 1005 .page > .page-inner{padding:0 8px;width:100%;max-width:100vw;min-width:0;overflow:visible !important;} 1006 .app.card{min-height:0;border-radius:16px;} 1007 .btn-row{flex-direction:column;align-items:stretch;} 1008 .panel > .btn-row,.panel > .panel-cta{padding-bottom:28px;} 1009 .panel-step1 > .panel-cta{justify-content:stretch;} 1010 .panel-step1 > .panel-cta .submit{width:100%;min-width:0;margin-left:0;} 1011 .pricing-tw .pricing-checkout-bar{margin-bottom:28px;} 1012 .pricing-tw .pricing-back-row{padding-bottom:28px;} 1013 .btn-row.end .submit,.btn-row.split .submit,.btn-row .ghost{width:100%;justify-content:center;}
1014 .rg-controls{flex-direction:column;align-items:stretch;} 1015 .report-head{padding:16px 16px 14px;} 1016 .rsec-overview{padding:14px 16px 4px;} 1017 .rsec-list{padding:12px;} 1018 .rsec-head{padding:12px 14px;} 1019 .na-main .rsec-panel .rsec-inner{padding:12px 14px 14px;} 1020 .pricing-checkout-bar{padding:14px 16px;} 1021 .pricing-checkout-actions{width:100%;justify-content:space-between;} 1022 .pricing-checkout-cta{flex:1;justify-content:center;} 1023 1024 /* Step 1 (Name Check) + Step 2 (Name Availability): same native page scroll. 1025 Content grows with the document so footer stays reachable on real phones. */ 1026 .app.card[data-step="1"], 1027 .app.card[data-step="2"]{ 1028 height:auto !important;max-height:none !important;min-height:0 !important; 1029 overflow:visible !important; 1030 grid-template-columns:1fr !important; 1031 grid-template-rows:auto auto !important; 1032 } 1033 .app.card[data-step="1"] .stepper, 1034 .app.card[data-step="2"] .stepper{ 1035 position:relative;top:auto;z-index:6;align-self:stretch; 1036 height:auto !important;max-height:none !important;overflow:visible !important; 1037 background:var(--white);border-bottom:1px solid var(--grey-2); 1038 } 1039 .app.card[data-step="1"] .stepper-sticky, 1040 .app.card[data-step="2"] .stepper-sticky{ 1041 height:auto !important;min-height:72px !important;max-height:none !important;padding:12px; 1042 overflow-x:auto !important;overflow-y:hidden !important; 1043 touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch; 1044 } 1045 .app.card[data-step="1"] .form-card, 1046 .app.card[data-step="2"] .form-card{ 1047 min-height:0;height:auto !important;max-height:none !important; 1048 overflow:visible !important; 1049 display:flex;flex-direction:column;padding:16px 14px 14px; 1050 touch-action:manipulation; 1051 -webkit-overflow-scrolling:touch; 1052 overscroll-behavior:auto; 1053 } 1054 .app.card[data-step="1"] .panel-step1, 1055 .app.card[data-step="1"] .panel-body, 1056 .app.card[data-step="1"] .name-check-packages, 1057 .app.card[data-step="1"] .pricing-tw{ 1058 height:auto !important;max-height:none !important;overflow:visible !important; 1059 flex:0 0 auto !important; 1060 } 1061 .app.card[data-step="1"] .catalog-carousel-shell{ 1062 overflow-x:hidden !important;overflow-y:visible !important; 1063 padding-inline:12px; 1064 } 1065 .app.card[data-step="1"] .catalog-carousel{ 1066 display:flex !important; 1067 flex-direction:row !important; 1068 overflow-x:auto !important;overflow-y:visible !important; 1069 scroll-snap-type:x mandatory !important; 1070 touch-action:pan-x pan-y !important; 1071 -webkit-overflow-scrolling:touch; 1072 } 1073 .app.card[data-step="2"] .panel-step2{ 1074 flex:0 1 auto;min-height:0;overflow:visible !important;display:flex;flex-direction:column;padding-bottom:0; 1075 } 1076 .app.card[data-step="2"] .na-layout{ 1077 flex:0 1 auto;min-height:0;height:auto;display:flex;flex-direction:column;gap:12px; 1078 overflow:visible !important;padding-bottom:0; 1079 } 1080 /* Avoid display:contents on mobile â it collapses report sections and 1081 lets the pay card / back button visually collide with the title. */ 1082 .app.card[data-step="2"] .na-main{ 1083 order:1;display:flex !important;flex-direction:column;gap:12px; 1084 flex:0 1 auto;min-height:0;height:auto;max-height:none; 1085 overflow:visible !important;padding:0 0 4px;width:100%; 1086 } 1087 .app.card[data-step="2"] .na-main .report, 1088 .app.card[data-step="2"] .na-main .report-loading, 1089 .app.card[data-step="2"] .na-main .report-error, 1090 .app.card[data-step="2"] .na-main .rsec-panel, 1091 .app.card[data-step="2"] .na-main .rsec-panel .rsec-inner{ 1092 min-height:0;height:auto;max-height:none;overflow:visible !important; 1093 flex:0 0 auto; 1094 } 1095 .app.card[data-step="2"] .na-main .report{ 1096 display:flex;flex-direction:column;width:100%; 1097 } 1098 .app.card[data-step="2"] .na-main .rsec-panel{ 1099 display:flex;flex-direction:column;width:100%; 1100 } 1101 .app.card[data-step="2"] .na-main .report-head h3{ 1102 font-size:18px;line-height:1.25;padding-right:0; 1103 } 1104 .app.card[data-step="2"] .na-step-actions{ 1105 order:2;flex-direction:row;align-items:stretch;gap:8px; 1106 padding:0;margin-top:8px; 1107 } 1108 .app.card[data-step="2"] .na-step-actions-end{ 1109 order:2;flex:1 1 0;width:auto;min-width:0;align-items:stretch;margin-left:0; 1110 } 1111 .app.card[data-step="2"] .na-step-actions .na-back{ 1112 order:1;flex:1 1 0;width:auto;max-width:none;min-width:0;justify-content:center; 1113 min-height:42px;height:42px;padding-inline:10px;font-size:12.5px;white-space:nowrap; 1114 } 1115 .app.card[data-step="2"] .na-step-actions .na-pay-cta{ 1116 width:100%;max-width:none;min-width:0;margin-top:0;justify-content:center; 1117 min-height:42px;height:42px;padding-inline:10px;font-size:12.5px;white-space:nowrap; 1118 } 1119 .app.card[data-step="2"] .na-main .name-availability-step{ 1120 display:flex;flex-direction:column;width:100%; 1121 } 1122 1123 /* All wizard steps: document/body is the only vertical scroll container on phones. */ 1124 .page[data-step], 1125 .page[data-step="1"], 1126 .page[data-step="2"], 1127 .page[data-step="3"], 1128 .page[data-step="4"], 1129 .page[data-step="5"], 1130 .page[data-step="6"]{ 1131 height:auto !important; 1132 max-height:none !important; 1133 min-height:0 !important; 1134 overflow:visible !important; 1135 touch-action:manipulation !important; 1136 -webkit-overflow-scrolling:touch !important; 1137 /* Clear sticky Get Started + home indicator on real devices */ 1138 padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px)) !important; 1139 } 1140 .page[data-step] > .page-inner{ 1141 height:auto !important; 1142 min-height:0 !important; 1143 overflow:visible !important; 1144 } 1145 .page[data-step] .app.card, 1146 .page[data-step] .app.card[data-step="1"], 1147 .page[data-step] .app.card[data-step="2"], 1148 .page[data-step] .app.card[data-step="3"], 1149 .page[data-step] .app.card[data-step="4"], 1150 .page[data-step] .app.card[data-step="5"], 1151 .page[data-step] .app.card[data-step="6"]{ 1152 height:auto !important; 1153 max-height:none !important; 1154 min-height:0 !important; 1155 grid-template-columns:1fr !important; 1156 grid-template-rows:auto auto !important; 1157 overflow:visible !important; 1158 } 1159 .page[data-step] .form-card, 1160 .page[data-step] .app.card[data-step="1"] .form-card, 1161 .page[data-step] .app.card[data-step="2"] .form-card{ 1162 height:auto !important; 1163 min-height:0 !important; 1164 max-height:none !important; 1165 flex:0 0 auto !important; 1166 overflow:visible !important; 1167 touch-action:manipulation !important; 1168 -webkit-overflow-scrolling:touch !important; 1169 overscroll-behavior:auto !important; 1170 } 1171 .page[data-step] .stepper, 1172 .page[data-step] .app.card[data-step="1"] .stepper, 1173 .page[data-step] .app.card[data-step="2"] .stepper{ 1174 height:auto !important; 1175 max-height:none !important; 1176 overflow:visible !important; 1177 } 1178 .page[data-step] .stepper-sticky, 1179 .page[data-step] .app.card[data-step="2"] .stepper-sticky{ 1180 height:auto !important; 1181 max-height:none !important; 1182 overflow-x:auto !important; 1183 overflow-y:hidden !important; 1184 } 1185 } 1186 1187 /* Touch phones: force document scroll, not nested shells */ 1188 @media (max-width:720px), ((pointer:coarse) and (max-width:1024px)){ 1189 html:has(.page[data-step]), 1190 body:has(.page[data-step]){ 1191 height:auto !important; 1192 max-height:none !important; 1193 min-height:0 !important; 1194 overflow:visible !important; 1195 overscroll-behavior-y:auto !important; 1196 touch-action:manipulation !important; 1197 -webkit-overflow-scrolling:touch !important; 1198 } 1199 .page[data-step="1"], 1200 .page[data-step="2"]{ 1201 overflow:visible !important; 1202 height:auto !important; 1203 max-height:none !important; 1204 } 1205 .page[data-step="1"] .form-card, 1206 .page[data-step="2"] .form-card, 1207 .page[data-step="1"] .app.card, 1208 .page[data-step="2"] .app.card{ 1209 overflow:visible !important; 1210 height:auto !important; 1211 max-height:none !important; 1212 } 1213 .page[data-step="2"] .na-pay, 1214 .page[data-step="2"] .na-pay-body{ 1215 overflow:visible !important; 1216 max-height:none !important; 1217 height:auto !important; 1218 } 1219 } 1220 @media (prefers-reduced-motion:reduce){ 1221 .page *,.panel,.progress-fill{animation:none!important;transition:none!important;} 1222 } 1223`;function aE({pageData:e,catalogData:s}){let d=e?.faqs||[],p=e?.relatedGuides||[],u=e?.serviceName||"",m=e?.category,h=e?.categoryLink,g=e?.categoryDisplayName,x=e?.pageTitle||"",f=e?.pageContent||"",b=e?.pageUrl||"",y=e?.bannerImage,v=e?.pageTemplate||1,w=e?.catalogId||"",j=e?.serviceId||"",N=e?.aiAssistantInvokeUrl||"",_=e?.hidePricing||!1,k=e?.pricingOnly||!1,S=e?.pricingPotentialId||"",C=e?.pricingContext||null,A=e?.serviceReviews||null,z=Array.isArray(s?.catalog)&&s.catalog.length>0,E=b.toLowerCase().includes("usa-company-registration")&&("230"===String(j)||s?.catalog?.some(e=>"230"===String(e?.service_id??""))),L=x||u||(m?`${m} Pricing`:"UAE Business Setup Pricing"),T=u&&u!==L?`${u} packages, name availability, and payment options`:"Compare UAE business setup packages, check name availability, and proceed to payment",I=(e?.pageCategory||m||"").trim(),M=(e?.routePath||b||"").trim(),B="immigration"===I.toLowerCase()?M:b,$=k?(0,eh.resolvePricingFormVariant)(B,I):"default";return((0,a.useEffect)(()=>{let e=s?.catalog?.[0];if(!e)return;let t=setTimeout(()=>{let t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push({ecommerce:null}),t.dataLayer.push({event:"view_item",item_id:String(w||e.id),item_name:u||e.service_name,item_category:m||e.category||"",price:e.market_price||e.price||0,value:e.price||0,currency:"AED",ecommerce:{currency:"AED",value:e.price||0,items:[{item_id:String(w||e.id),item_name:u||e.service_name,item_category:m||e.category||"",price:e.market_price||e.price||0}]}})},5e3);return()=>clearTimeout(t)},[s,w,u,m]),k)?(0,t.jsx)(i,{pageData:e,catalogData:s,children:E?(0,t.jsx)(P,{catalogResponse:s}):(0,t.jsx)(aA,{catalogResponse:s,potentialId:S,pricingContext:C,seoHeading:L,seoSubheading:T,pageUrl:b,formVariant:$})}):(0,t.jsxs)(i,{pageData:e,catalogData:s,children:[(0,t.jsx)(ta,{catalogResponse:s,category:m,categoryLink:h,serviceName:u,pageUrl:b,bannerImage:y,reviewsResponse:A}),N?(0,t.jsx)(te,{pageData:e}):(0,t.jsx)(eD,{pageData:e,catalogResponse:s}),!_&&z&&(E?(0,t.jsx)(P,{catalogResponse:s}):(0,t.jsx)(aA,{catalogResponse:s,pageUrl:b})),f&&(0,t.jsxs)("section",{className:"relative overflow-visible",children:[(0,t.jsxs)("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute top-0 right-0 h-96 w-96 rounded-full bg-gold-100/20 blur-3xl"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 h-96 w-96 rounded-full bg-gold-100/20 blur-3xl"})]}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1600px] px-4 sm:px-6 lg:px-8 pt-4 sm:pt-6 pb-8 sm:pb-10 md:pb-14 z-10",children:[(0,t.jsxs)("nav",{className:"flex items-center gap-2 text-sm text-zinc-600 mb-4 sm:mb-5 flex-wrap",children:[(0,t.jsx)(n.default,{prefetch:!1,href:"/",className:"text-zinc-700 hover:text-gold-600 transition-colors",children:"Filings.ae"}),m&&g&&2!==v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-zinc-400",children:"/"}),h?(0,t.jsx)(n.default,{prefetch:!1,href:h,className:"text-zinc-700 hover:text-gold-600 transition-colors",children:g}):(0,t.jsx)("span",{className:"text-zinc-700 ",children:g})]}),2!==v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-zinc-400",children:"/"}),(0,t.jsx)("span",{className:"text-gold-600 font-medium",children:u})]})]}),(0,t.jsxs)("div",{className:p.length>0?"relative grid items-start gap-4 sm:gap-6 lg:gap-8 lg:grid-cols-[minmax(0,1fr)_320px]":"",children:[(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-2xl border border-zinc-200/80 bg-white shadow-sm min-w-0",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gold-500/60"}),(0,t.jsx)("div",{className:"p-4 sm:p-6 md:p-8 min-w-0 overflow-x-hidden",children:(0,t.jsx)(c,{content:f,maxHeight:"1300px",defaultExpanded:!0})})]}),p.length>0&&(0,t.jsx)(o,{children:(0,t.jsx)(l,{guides:p})})]})]})]}),d.length>0&&(0,t.jsx)(r.default,{faqs:d,pageTitle:x}),(0,t.jsx)(tu,{pageData:e,pricingOnly:k})]})}var aL=e.i(583695),aT=e.i(763296);function aI({seoTitle:e,pageUrl:a,ogImage:i,seoDescription:r,keywords:n,listCatalog:s=[]}){let l="https://filings.ae",o=a.startsWith("http")?a:`${l}${a}`,d=n?n.split(",").map(e=>
1223e.trim()).filter(Boolean):[],c=s.filter(e=>"string"==typeof e.page_url&&e.page_url.trim()).map(e=>{let t=e.page_url;return t.startsWith("http")?t:`${l}${t}`}).filter(e=>e!==o),p={"@context":"https://schema.org","@type":"CollectionPage",name:e||"",url:o};return i&&(p.image=i),r&&(p.description=r),d.length>0&&(p.keywords=d),c.length>0&&(p.relatedLink=c),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,tt.escapeJsonLdForScript)(p)}})}let aM=(0,O.default)("heart",[["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"}]]),aB=[{src:"https://img.filings.ae/videos/filings.ae-testimonials.mp4",eyebrow:"Client experience",title:"Building with Filings.ae"},{src:"https://img.filings.ae/videos/Ramkumar.mp4",eyebrow:"Founder story",title:"Ramkumar's UAE journey"},{src:"https://img.filings.ae/videos/Aryan.mp4",eyebrow:"Founder story",title:"Aryan's setup experience"},{src:"https://img.filings.ae/videos/Adentech.mp4",eyebrow:"Business story",title:"Adentech in the UAE"}];function a$({src:e}){let i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=i.current;if(!e)return;let t=new IntersectionObserver(([t])=>{t&&(t.isIntersecting?e.play().catch(()=>{}):e.pause())},{rootMargin:"120px 0px",threshold:.2});return t.observe(e),()=>t.disconnect()},[]),(0,t.jsx)("video",{ref:i,className:"pointer-events-none h-full w-full object-cover object-top transition duration-500 group-hover:scale-[1.02]",src:`${e}#t=0.1`,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,preload:"auto","aria-hidden":"true"})}function aF(){let[e,i]=(0,a.useState)(null),r=(0,a.useCallback)(()=>i(null),[]),n=(0,a.useCallback)(e=>{i(t=>null===t?null:(t+e+aB.length)%aB.length)},[]);(0,a.useEffect)(()=>{if(null===e)return;let t=document.body.style.overflow;document.body.style.overflow="hidden";let a=e=>{"Escape"===e.key&&r(),"ArrowRight"===e.key&&n(1),"ArrowLeft"===e.key&&n(-1)};return window.addEventListener("keydown",a),()=>{document.body.style.overflow=t,window.removeEventListener("keydown",a)}},[e,r,n]);let l=null===e?null:aB[e];return(0,t.jsxs)("section",{className:"relative overflow-hidden border-y border-slate-200/70 bg-[#FAFBFC] py-16 sm:py-20","aria-labelledby":"freezone-stories-title",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute left-1/2 top-0 h-72 w-[48rem] -translate-x-1/2 rounded-full bg-[#C8924B]/8 blur-3xl","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1280px] px-5 sm:px-6 lg:px-8",children:[(0,t.jsxs)("header",{className:"mx-auto mb-10 max-w-2xl text-center sm:mb-12",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[#BD873E]",children:"Customer stories"}),(0,t.jsx)("h2",{id:"freezone-stories-title","aria-label":"Built with love in the UAE",className:"mt-3 text-[30px] font-semibold leading-tight tracking-[-0.035em] text-[#0F172A] sm:text-[40px]",children:(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center justify-center gap-x-2 sm:gap-x-2.5",children:[(0,t.jsx)("span",{children:"Built with"}),(0,t.jsx)(aM,{className:"h-[0.82em] w-[0.82em] shrink-0 fill-[#F43F5E] stroke-[#E11D48] drop-shadow-[0_2px_4px_rgba(225,29,72,0.24)]",strokeWidth:1.8,"aria-hidden":"true"}),(0,t.jsx)("span",{children:"in the UAE"})]})}),(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-sm leading-6 text-[#64748B] sm:text-[15px]",children:"Stories from our founders who went from license to a growing business."})]}),(0,t.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory gap-4 overflow-x-auto px-5 pb-3 [scrollbar-width:none] sm:mx-0 sm:grid sm:grid-cols-2 sm:overflow-visible sm:px-0 sm:pb-0 lg:grid-cols-4 [&::-webkit-scrollbar]:hidden",children:aB.map((e,a)=>(0,t.jsxs)("button",{type:"button",onClick:()=>i(a),"aria-label":`Watch ${e.title}`,className:"group relative aspect-[4/5] w-[78vw] max-w-[310px] flex-none snap-center overflow-hidden rounded-xl bg-[#0F172A] shadow-[0_12px_36px_rgba(15,23,42,.12)] ring-1 ring-black/5 transition duration-300 hover:-translate-y-1 hover:shadow-[0_20px_50px_rgba(15,23,42,.18)] sm:w-auto
1223sm:max-w-none",children:[(0,t.jsx)(a$,{src:e.src}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-2/5 bg-gradient-to-t from-[#020617]/90 via-[#020617]/45 to-transparent","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 p-5 text-white",children:[(0,t.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-[#F4C77D]",children:e.eyebrow}),(0,t.jsx)("h3",{className:"mt-1.5 h-[1.35em] overflow-hidden whitespace-nowrap text-[15px] font-semibold leading-[1.35] tracking-tight sm:text-base",children:e.title})]})]},e.src))})]}),l&&"u">typeof document&&(0,ei.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-[#020617]/90 p-4 backdrop-blur-sm md:p-8",role:"dialog","aria-modal":"true","aria-label":`${l.title} video`,onClick:r,children:(0,t.jsxs)("div",{className:"relative w-full max-w-[960px]",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{type:"button","aria-label":"Close video",onClick:r,className:"absolute -right-2 -top-12 z-10 grid h-10 w-10 place-items-center rounded-full border border-white/20 bg-[#0F2930] text-white shadow-[0_10px_24px_rgba(0,0,0,.35)] transition hover:bg-[#17434B] md:-right-3 md:-top-3",children:(0,t.jsx)(ej.X,{className:"h-5 w-5"})}),(0,t.jsx)("div",{className:"flex aspect-video max-h-[75vh] w-full items-center justify-center overflow-hidden rounded-[20px] bg-black shadow-[0_40px_100px_rgba(0,0,0,.5)] md:rounded-[24px]",children:(0,t.jsx)("video",{className:"h-full w-full object-contain",src:l.src,controls:!0,autoPlay:!0,playsInline:!0,preload:"auto","aria-label":l.title},l.src)}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-[12px] font-bold uppercase tracking-[0.18em] text-[#F4C77D]",children:l.title}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button","aria-label":"Previous video",onClick:()=>n(-1),className:"grid h-9 w-9 place-items-center rounded-full border border-white/15 bg-white/10 text-white transition hover:bg-white/20",children:(0,t.jsx)(ti.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsx)("button",{type:"button","aria-label":"Next video",onClick:()=>n(1),className:"grid h-9 w-9 place-items-center rounded-full border border-white/15 bg-white/10 text-white transition hover:bg-white/20",children:(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4"})})]})]})]})}),document.body)]})}var aP=e.i(821542);let aR="https://img.filings.ae/guides/default-guide-banner.jpg";function aD(e){let t=e.match(/^\/guides\/[^/]+\/([^/?#]+)\/?$/i);return t?`/guides/${t[1]}/`:e}let aW="https://filings.ae";function aH(e){return e===`${aW}/guides`?`${aW}/guides/`:e}function aO({question:e,answer:a,isOpen:i,onToggle:r}){return(0,t.jsxs)("div",{className:`${aP.default.guideArticleFaqItem} ${i?aP.default.guideArticleFaqItemOpen:""}`,children:[(0,t.jsxs)("button",{className:aP.default.guideArticleFaqQuestion,onClick:r,"aria-expanded":i,"aria-controls":`faq-answer-${e.slice(0,10)}`,children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(d.ChevronDown,{className:`${aP.default.guideArticleFaqIcon} ${i?aP.default.guideArticleFaqIconOpen:""}`,"aria-hidden":!0})]}),(0,t.jsx)("div",{id:`faq-answer-${e.slice(0,10)}`,className:`${aP.default.guideArticleFaqAnswer} ${i?aP.default.guideArticleFaqAnswerOpen:""}`,"aria-hidden":!i,children:(0,t.jsx)("p",{children:a})})]})}function aq({articleData:e,gaHideGuideArticleHeroPageTemplate13:i=!1}){let r=(0,eI.usePathname)()??"",l=r.toLowerCase().includes("/guides"),[o,d]=(0,a.useState)(0),[c,p]=(0,a.useState)(10),u=(0,a.useRef)(null),m=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0,a.useRef)(null);if((0,a.useEffect)(()=>{let e=u.current,t=m.current,a=g.current;if(!e||!t||!a||!(window.innerWidth>=768))return;let i="data-guide-article-sidebar-sticky-state",r="data-guide-article-sidebar-at-end",n=null,s=null,l=!1,o=null,d=null,c=!1,p=!1,h=!1,x=()=>{if(!(window.innerWidth>=768)){e.style.position="",e.style.top="",e.style.width="",e.style.left="",e.style.right="",e.classList.remove(aP.default.guideArticleSidebarSticky),e.removeAttribute(i),e.removeAttribute(r),l=!1,c=!1,p=!1,n=null,s=null,o=null,d=null;return}let u=window.pageYOffset||document.documentElement.scrollTop,m=a.getBoundingClientRect().top+u,g=t.getBoundingClientRect().top+u,x=e.offsetHeight,f=m-100,b=g-x-100;if(u>=f&&u<=b){let t=p||c||"true"===e.getAttribute(r);
1223if(!h||null===n||null===s){let t;n=(t=e.getBoundingClientRect()).left,s=t.width,t.top,h=!0,l=!0}if(t){let t=e.getBoundingClientRect(),u=t.top,m=t.left;p=!1,c=!1,e.removeAttribute(r),e.removeAttribute("data-guide-article-sidebar-top"),e.removeAttribute("data-guide-article-sidebar-left"),e.removeAttribute("data-guide-article-sidebar-width");let h=e.style.transition;e.style.transition="none",e.style.position="fixed",e.style.top=`${u}px`,e.style.left=`${m}px`,e.style.width=`${s}px`,e.style.right="auto",e.classList.add(aP.default.guideArticleSidebarSticky),e.setAttribute(i,"sticky"),e.offsetHeight,l=!0,o=null,d=null,requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(null===n||null===s)return;e.style.transition=h;let t=window.pageYOffset||document.documentElement.scrollTop,i=a.getBoundingClientRect().top+t;t>=i-100&&t<=b?(e.style.top="100px",e.style.left=`${n}px`):(p=!0,c=!0,e.setAttribute(r,"true"))})});return}if("true"!==e.getAttribute("data-guide-article-sidebar-transitioning")&&null!==n&&null!==s){let t=e.style.top,a=e.style.left,l=e.style.width,o=e.style.position;e.getBoundingClientRect().top;let d="fixed"===o&&100>parseFloat(t)?t:"100px";("fixed"!==o||t!==d||l!==`${s}px`||a!==`${n}px`)&&(e.style.position="fixed",e.style.top=d,e.style.width=`${s}px`,e.style.left=`${n}px`,e.style.right="auto",e.classList.add(aP.default.guideArticleSidebarSticky),e.setAttribute(i,"sticky"),e.removeAttribute(r))}l=!0}else if(u<f)e.style.position="relative",e.style.top="auto",e.style.width="auto",e.style.left="auto",e.style.right="auto",e.classList.remove(aP.default.guideArticleSidebarSticky),e.removeAttribute(i),e.removeAttribute(r),l=!1,c=!1,p=!1,o=null,d=null;else{if(u>b){if(p||c||"true"===e.getAttribute(r))return;if(l&&null!==n&&null!==s){let l=e.getBoundingClientRect();l.top,l.left,requestAnimationFrame(()=>{if(p||"true"===e.getAttribute(r)||null===n||null===s)return;let l=t.getBoundingClientRect(),u=a.getBoundingClientRect(),m=l.top-u.top,h=u.left;d=Math.max(0,Math.min(m-x,a.offsetHeight-x)),o=n-h,p=!0,c=!0,e.setAttribute(r,"true"),e.setAttribute(i,"end"),e.setAttribute("data-guide-article-sidebar-top",String(d)),e.setAttribute("data-guide-article-sidebar-left",String(o)),e.setAttribute("data-guide-article-sidebar-width",String(s)),e.style.willChange="top, position",e.style.position="absolute",e.style.top=`${d}px`,e.style.width=`${s}px`,e.style.left=`${o}px`,e.style.right="auto",e.classList.add(aP.default.guideArticleSidebarSticky),setTimeout(()=>{"true"===e.getAttribute(r)&&(e.style.willChange="auto")},400)});return}}l||(e.style.position="relative",e.style.top="auto",e.style.width="auto",e.style.left="auto",e.style.right="auto",e.classList.remove(aP.default.guideArticleSidebarSticky),e.removeAttribute(i),e.removeAttribute(r))}};x();let f=!1,b=()=>{f||(window.requestAnimationFrame(()=>{x(),f=!1}),f=!0)},y=()=>{n=null,s=null,h=!1,o=null,d=null,l=!1,c=!1,p=!1,e&&(e.removeAttribute(i),e.removeAttribute(r),e.removeAttribute("data-guide-article-sidebar-top"),e.removeAttribute("data-guide-article-sidebar-left"),e.removeAttribute("data-guide-article-sidebar-width")),x()};return window.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("scroll",b),window.removeEventListener("resize",y),e&&(e.style.position="",e.style.top="",e.style.width="",e.style.left="",e.style.right="",e.classList.remove(aP.default.guideArticleSidebarSticky))}},[]),(0,a.useEffect)(()=>{let e="guide-article-page";return document.documentElement.classList.add(e),document.body.classList.add(e),()=>{document.documentElement.classList.remove(e),document.body.classList.remove(e)}},[]),(0,a.useEffect)(()=>{let e=document.documentElement.style.scrollBehavior;return document.documentElement.style.scrollBehavior="smooth",()=>{document.documentElement.style.scrollBehavior=e}},[]),!e)return console.error("GuideArticlePage: articleData is missing"),(0,t.jsx)("div",{className:aP.default.guideArticlePage,children:(0,t.jsx)("div",{className:aP.default.guideArticleBodyCard,children:(0,t.jsx)("p",{children:"Unable to load article content. Please try again later."})})});let x=function(e){if(!e||"string"!=typeof e)return aR;let t=e.trim();return t?/^https?:\/\/www\.filings\.ae\/guides\//i.test(t)?t.replace(/^https?:\/\/www\.filings\.ae\/guides\//i,"https://img.filings.ae/guides/"):/^https?:\/\/www\.filings\.ae\/guides/i.test(t)?t.replace(/^https?:\/\/www\.filings\.ae\/guides/i,"https://img.filings.ae/guides"):t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t:aR}(e.bannerImage),f=Array.isArray(e.relatedGuides)?e.relatedGuides.filter(e=>!!(e?.title&&(e.href||e.slug))):[],b=e.updatedOn??"Nov 21, 2025",y=e.expertName??"DINESH P",v=e.faqs??[],w=v.slice(0,c),j=v.length>c,N=e.breadcrumbLabel&&e.breadcrumbLabel.trim()||e.title,_=(e.breadcrumbSegments?.length?e.breadcrumbSegments:[{label:"Filings.ae",href:"/"},{label:"Guides",href:"/guides"},{label:e.categoryDisplayName,href:e.categoryLink},{label:N}]).map(t=>t.label?.toLowerCase()===e.categoryDisplayName?.toLowerCase()?{...t,href:e.categoryLink}:t),k=e.expertDesignation??"Expert",S={"@context":"https://schema.org","@type":"BreadcrumbList",name:"Filings.ae",itemListElement:_.map((e,t)=>({"@type":"ListItem",position:t+1,name:0===t&&(e.label?.trim()==="Filings.ae"||"/"===e.href||""===e.href)?"Home":e.label||"",item:{"@type":"Thing","@id":function(e,t){let a=e=>{let t=new URL(e.startsWith("/")?e:`/${e}`,`${aW}/`);return t.protocol="https:",t.hostname="filings.ae",aH(t.href)};if(e&&e.trim()&&"#"!==e){let t=e.trim();if(t.startsWith("http://")||t.startsWith("https://"))try{let e=new URL(t);if(/(^|\.)filings\.ae$/i.test(e.hostname))return e.protocol="https:",e.hostname="filings.ae",aH(e.href);return e.href}catch{return`${aW}/`}return a(t)}return a(t&&t.trim()||"/")}(e.href,r)}}))};return(0,t.jsxs)("div",{className:aP.default.guideArticlePage,children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,tt.sanitizeForInnerHTML)(JSON.stringify(S))}}),(0,t.jsx)("div",{className:aP.default.guideArticleBreadcrumb,children:(0,t.jsx)("div",{className:aP.default.guideArticleBreadcrumbInner,children:(0,t.jsx)("nav",{className:aP.default.guideArticleBreadcrumbNav,"aria-label":"Breadcrumb",children:_.map((e,i)=>(0,t.jsxs)(a.default.Fragment,{children:[i>0&&(0,t.jsx)(s.ChevronRight,{className:aP.default.guideArticleBreadcrumbSep,"aria-hidden":!0}),e.href?(0,t.jsx)(n.default,{prefetch:!1,href:e.href,children:e.label}):(0,t.jsx)("span",{children:e.label})]},i))})})}),!(l||i)&&(0,t.jsxs)("section",{className:aP.default.guideArticleHero,children:[(0,t.jsxs)("div",{className:aP.default.guideArticleHeroImageWrap,children:[(0,t.jsx)(eA.default,{src:x,alt:"",fill:!0,className:aP.default.guideArticleHeroImage,sizes:"(max-width: 768px) 100vw, 30vw",priority:!0,fetchPriority:"high",loading:"eager"}),(0,t.jsx)("div",{className:aP.default.guideArticleHeroImageOverlay,"aria-hidden":!0})]}),(0,t.jsx)("div",{className:aP.default.guideArticleHeroContent,children:(0,t.jsxs)("div",{className:aP.default.guideArticleHeroContentInner,children:[(0,t.jsx)(n.default,{prefetch:!1,href:e.categoryLink,className:aP.default.guideArticleHeroCategory,children:e.categoryDisplayName}),(0,t.jsx)("h2",{className:aP.default.guideArticleHeroTitle,children:e.title})]})})]}),(0,t.jsxs)("div",{ref:g,className:aP.default.guideArticleMain,children:[(0,t.jsxs)("div",{className:aP.default.guideArticleContentCol,children:[(0,t.jsxs)("div",{className:aP.default.guideArticleMeta,children:[e.expertLink?(0,t.jsxs)(n.default,{prefetch:!1,href:e.expertLink,className:aP.default.guideArticleMetaExpert,children:[(0,t.jsx)("div",{className:aP.default.guideArticleMetaAvatar,children:e.expertImage?(0,t.jsx)(eA.default,{src:e.expertImage,alt:"",width:44,height:44,className:"object-cover w-full h-full"}):(0,t.jsx)(tr.User,{className:"w-6 h-6","aria-hidden":!0})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:aP.default.guideArticleMetaExpertName,children:y}),(0,t.jsx)("p",{className:aP.default.guideArticleMetaExpertLabel,children:k})]})]}):(0,t.jsxs)("div",{className:aP.default.guideArticleMetaExpert,children:[(0,t.jsx)("div",{className:aP.default.guideArticleMetaAvatar,children:e.expertImage?(0,t.jsx)(eA.default,{src:e.expertImage,alt:"",width:44,height:44,className:"object-cover w-full h-full"}):(0,t.jsx)(tr.User,{className:"w-6 h-6","aria-hidden":!0})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:aP.default.guideArticleMetaExpertName,children:y}),(0,t.jsx)("p",{className:aP.default.guideArticleMetaExpertLabel,children:k})]})]}),(0,t.jsxs)("p",{className:aP.default.guideArticleMetaUpdated,children:["Published on: ",(0,t.jsx)("strong",{children:b})]})]}),(0,t.jsx)("div",{className:aP.default.guideArticleBodyCard,children:(0,t.jsx)("article",{className:`${aP.default.guideArticleBody} guide-article-content`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e.content}})}),(0,t.jsx)("div",{ref:m,className:aP.default.guideArticleBackWrap,children:(0,t.jsxs)(n.default,{prefetch:!1,href:"/guides",className:aP.default.guideArticleBackLink,children:[(0,t.jsx)(ti.ChevronLeft,{className:"w-4 h-4 shrink-0","aria-hidden":!0}),"Back to Guides"]})})]}),f.length>0&&(0,t.jsx)("aside",{ref:u,className:aP.default.guideArticleSidebar,"data-guide-article-sidebar":"true",children:(0,t.jsxs)("div",{className:`${aP.default.guideArticleRelatedCard} w-full`,children:[(0,t.jsx)("h3",{className:aP.default.guideArticleRelatedCardTitle,children:"Related Guides"}),(0,t.jsx)("nav",{className:aP.default.guideArticleRelatedList,"aria-label":"Related articles",children:f.map((e,a)=>{let i=function(e,t){if(e&&"string"==typeof e){let a=e.trim();if(!a)return t?`/guides/${t}/`:"#";if(a.startsWith("http://")||a.startsWith("https://")){try{let e=new URL(a);if(/(^|\.)filings\.ae$/i.test(e.hostname)){let t=aD(e.pathname);return`${t}${e.search}${e.hash}`}}catch{}return a}return a.startsWith("/")?aD(a):a}return t?`/guides/${t}/`:"#"}(e.href,e.slug);return(0,t.jsxs)(n.default,{prefetch:!1,href:i,...i.startsWith("http")?{target:"_blank",rel:"noopener noreferrer"}:{},children:[(0,t.jsx)(s.ChevronRight,{className:aP.default.guideArticleRelatedIcon,"aria-hidden":!0}),(0,t.jsx)("span",{children:e.title})]},a)})})]})}),v.length>0&&(0,t.jsxs)("div",{ref:h,className:aP.default.guideArticleFaqSection,children:[(0,t.jsx)("h2",{className:aP.default.guideArticleFaqTitle,children:"Frequently Asked Questions"}),(0,t.jsx)("div",{className:aP.default.guideArticleFaqList,children:w.map((e,a)=>(0,t.jsx)(aO,{question:e.question,answer:e.answer,isOpen:o===a,onToggle:()=>{d(o===a?-1:a)}},a))}),j&&(0,t.jsx)("div",{style:{marginTop:"1.25rem",textAlign:"center"},children:(0,t.jsxs)("button",{onClick:()=>{p(v.length)},style:{padding:"0.625rem 1.5rem",fontSize:"0.875rem",fontWeight:500,color:"#6366f1",background:"linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,243,255,0.95) 100%)",border:"1px solid rgba(99,102,241,0.3)",borderRadius:"12px",cursor:"pointer",transition:"all 0.3s ease",boxShadow:"0 2px 8px rgba(99,102,241,0.1)"},onMouseEnter:e=>{e.currentTarget.style.borderColor="rgba(99,102,241,0.5)",e.currentTarget.style.boxShadow="0 4px 16px rgba(99,102,241,0.2)",e.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:e=>{e.currentTarget.style.borderColor="rgba(99,102,241,0.3)",e.currentTarget.style.boxShadow="0 2px 8px rgba(99,102,241,0.1)",e.currentTarget.style.transform="translateY(0)"},children:["Show More (",v.length-c," remaining)"]})})]})]})]})}function aU({title:e,description:a,url:i,imageUrl:r,authorName:n="Filings.ae",authorUrl:s,datePublished:l,dateModified:o,isNewsArticle:d=!1}){if(!e)return null;
1223let c=i||window.location.href,p=e=>{if(!e)return new Date().toISOString().split("T")[0]+"T00:00:00+04:00";try{let t=new Date(e);if(isNaN(t.getTime()))return new Date().toISOString().split("T")[0]+"T00:00:00+04:00";return t.toISOString().split("T")[0]+"T00:00:00+04:00"}catch{return new Date().toISOString().split("T")[0]+"T00:00:00+04:00"}},u=p(l),m=p(o),h={"@context":"https://schema.org","@type":d?"NewsArticle":"Article",url:c,headline:e,description:a||e,image:r||"https://img.filings.ae/filings-ae.jpg",mainEntityOfPage:{"@type":"WebPage","@id":c},author:{"@type":"Person",name:n,...s&&{url:s}},publisher:{"@type":"Organization",name:"Filings.ae",logo:{"@type":"ImageObject",url:"https://img.filings.ae/filings-ae.jpg"}},datePublished:u,dateModified:m},g=d?{...h,articleBody:a}:h;return(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,tt.sanitizeForInnerHTML)(JSON.stringify(g))}})}function aG(e){if(!e||"string"!=typeof e)return"";let t=e;for(let[e,a]of Object.entries({" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","–":"â","—":"â","‘":"â","’":"â","“":"â","”":"â","©":"©","®":"®","™":"â¢","…":"â¦","•":"â¢","·":"·","°":"°","±":"±","×":"Ã","÷":"÷","½":"½","¼":"¼","¾":"¾","–":"â","—":"â","‘":"â","’":"â","“":"â","”":"â"," ":" "}))t=t.split(e).join(a);return(t=t.replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&#x([0-9A-Fa-f]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function aZ(e){return"string"==typeof e?e:""}function aV(e){return"string"==typeof e?e:void 0}var aY=e.i(993983),aJ=e.i(587392);function aK(){if(window.location.hash)return;let e=window.lenis;"function"==typeof e?.scrollTo&&e.scrollTo(0,{immediate:!0}),window.scrollTo({top:0,left:0,behavior:"auto"})}function aX(){return(0,a.useEffect)(()=>{let e=window.history.scrollRestoration;window.history.scrollRestoration="manual",aK();let t=window.requestAnimationFrame(aK),a=()=>aK();return window.addEventListener("pageshow",a),()=>{window.cancelAnimationFrame(t),window.removeEventListener("pageshow",a),window.history.scrollRestoration=e}},[]),null}function aQ({sectionId:e,label:a,className:i}){let r=(0,eI.usePathname)()||"/";return(0,t.jsx)(n.default,{href:r,scroll:!1,replace:!0,onClick:t=>{t.preventDefault(),function(e){let t=document.getElementById(e);if(!t)return;window.location.hash&&window.history.replaceState(window.history.state,"",`${window.location.pathname}${window.location.search}`);let a=window.lenis;if("function"==typeof a?.scrollTo)return a.scrollTo(t,{offset:-110});let i=t.getBoundingClientRect().top+window.scrollY-110;window.scrollTo({top:Math.max(i,0),behavior:"smooth"})}(e)},className:i??void 0,children:a})}function a0(e){try{let{protocol:t}=new URL(e);return"https:"===t||"http:"===t}catch{return!1}}function a1({href:e,label:i,catalogId:r,serviceId:n,serviceName:s,leadSource:l,deviceTypeCap:o,leadUrl:d}){let[c,p]=(0,a.useState)(!1),{onAuthOpen:h}=(0,eJ.useAuthModal)(),{isAuthenticated:g,sessionData:x}=(0,u.useMiddleware)(),f=g&&x?.status===1,b=async()=>{if(!c){p(!0);try{let t=function(e){if(a0(e))return e;try{if(e?.startsWith("/"))return new URL(e,window.location.origin).toString()}catch{}return window.location.href}(e),a=r||(window.catalog_id?String(window.catalog_id):""),i=`AE-${o??"Desktop"}-Signup-${a||0}-${l??"OG"}`;if(!f){window.redir=btoa(t),window.signup_info=(0,m.generateSignupInfo)({lead_url:d??window.location.href,lead_source:i,catalog_id:a,service_id:n||null,service_name:s||"Filings.ae",smart_form:JSON.stringify({}),login_lead:"1",potential_id:"1"}),h("login");return}let c=t;if(a)try{let t=String(x?.data?.name??""),r=String(x?.data?.email??""),l=String(x?.data?.mobile??""),o=String(x?.data?.ccode??x?.data?.country_code??"971"),d=await fetch("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,email:r,phone:l,mobile:l,country_code:o,catalog_id:a,service_name:s||"Filings.ae",lead_source:i,url:window.location.href,smart_info:{},request_id:n})});if(d.ok){let t=await d.json().catch(()=>null),a=t?.potentialID??t?.call_request_id,i=t?.june_roomid||void 0;if((0,eF.pushLeadAndCompleteRegistrationGtm)({leadResponse:t??{},signupParams:(0,e$.parseSignupInfo)({}),defaultCurrency:"AED"}),i||a)try{c=await (0,e2.addPotentialIdToUrl)(e,String(a??""),i)}catch{}}}catch{}c&&a0(c)&&(window.location.href=c)}finally{p(!1)}}};return(0,t.jsx)("button",{type:"button",className:"group inline-flex items-center justify-center gap-2 rounded-full bg-gold-500 px-7 py-3.5 text-sm font-semibold text-white shadow-sm shadow-gold-500/20 transition-all hover:bg-gold-600 hover:shadow-md hover:shadow-gold-500/30 disabled:cursor-not-allowed disabled:opacity-70 cursor-pointer",onClick:b,disabled:c,"aria-busy":c,children:c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white","aria-hidden":"true"}),i]}):(0,t.jsxs)(t.Fragment,{children:[i," ",(0,t.jsx)("span",{className:"inline-block transition-transform group-hover:translate-x-1",children:"â"})]})})}var a2=e.i(802311);let a5="zoom";function a6({className:e="inline-flex items-center justify-center gap-2 rounded-full bg-gold-500 px-7 py-3.5 text-sm font-semibold text-white shadow-sm shadow-gold-500/20 transition-all hover:bg-gold-600 hover:shadow-md hover:shadow-gold-500/30 cursor-pointer",label:i="Consult Advisor",bookedData:r=[],expertName:n="DAVID SAMSON B",pageId:s=7898,leadUrl:l,deviceTypeCap:o,serverLeadSource:d="OG",showArrow:c=!0}){let{isAuthenticated:p}=(0,u.useMiddleware)(),{onAuthOpen:h}=(0,eJ.useAuthModal)(),[g,x]=(0,a.useState)(!1),[f,b]=(0,a.useState)(d);(0,a.useEffect)(()=>{o&&(0,eM.resolveClientLeadSource)(d).then(b)},[]),(0,a.useEffect)(()=>{let e;if(!p||"1"!==new URLSearchParams(window.location.search).get(a5))return;let t=window.setTimeout(()=>x(!0),0);
1223return(e=new URL(window.location.href)).searchParams.has(a5)&&(e.searchParams.delete(a5),window.history.replaceState({},"",e.toString())),()=>window.clearTimeout(t)},[p]),(0,a.useEffect)(()=>(document.body.style.overflow=g?"hidden":"",()=>{document.body.style.overflow=""}),[g]);let y=(0,a.useCallback)(()=>{if(p)return void x(!0);{let e,t=o||(0,eM.detectDeviceTypeClientSimple)();window.redir=btoa(((e=new URL(window.location.href)).searchParams.set(a5,"1"),e.toString())),window.signup_info=(0,m.generateSignupInfo)({lead_url:l||window.location.href,lead_source:`AE-${t}-Signup-1241-${f}`,catalog_id:1241,service_id:506,service_name:"UAE Freezone License Renewal",login_lead:"1"})}h("login")},[p,h,f,l,o]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:e,onClick:y,children:[i,c&&(0,t.jsx)("span",{className:"inline-block transition-transform group-hover:translate-x-1",children:"â"})]}),g&&(0,ei.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-[99999] flex items-center justify-center bg-zinc-900/60 p-6 backdrop-blur-sm",onClick:()=>x(!1),children:(0,t.jsxs)("div",{className:"zoom-modal-inner relative w-full max-w-[420px] rounded-2xl border border-zinc-200 bg-white shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{className:"absolute right-3.5 top-3.5 flex h-8 w-8 items-center justify-center rounded-full border border-zinc-200 bg-white text-zinc-500 transition-colors hover:bg-zinc-50 hover:text-zinc-800",onClick:()=>x(!1),"aria-label":"Close",children:(0,t.jsx)(ej.X,{size:16})}),(0,t.jsx)(a2.default,{expertName:n,pageId:s,BookedData:r,onBooked:eF.pushBookAppointmentGtm})]})}),document.body)]})}var a4=e.i(88653),a8=e.i(532181),a3=e.i(772328),a9=e.i(595468),V=V;let a7={name:"",email:"",businessName:""},ie={fullNumber:"",countryCode:"971",nationalNumber:"",countryName:"United Arab Emirates"},it="mt-1.5 text-[11px] font-semibold tracking-wide text-red-600",ia=/^\p{L}+(?:\s+\p{L}+)*$/u,ii=/^(?!.*\.\.)(?=.{6,254}$)[A-Za-z0-9](?:[A-Za-z0-9._%+-]{0,62}[A-Za-z0-9])?@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.)+[A-Za-z]{2,63}$/;function ir(e){let t=e.trim();return t.replace(/\s/g,"").length>=3&&ia.test(t)}function is(e){return ii.test(e.trim())}function il({label:e,error:i,required:r,drawer:n=!1,leadingIcon:s,...l}){let[o,d]=(0,a.useState)(!!l.autoFocus),c=o||!!l.value;return(0,t.jsxs)("div",{className:"relative",children:[s?(0,t.jsx)("span",{className:`pointer-events-none absolute left-3.5 top-1/2 z-[1] -translate-y-1/2 transition-colors duration-200 ${o?"text-[#c8924b]":"text-zinc-400"}`,"aria-hidden":"true",children:(0,t.jsx)(s,{className:"h-[18px] w-[18px]",strokeWidth:1.8})}):null,(0,t.jsx)("input",{...l,placeholder:c?" ":`${e}${r?" *":""}`,onFocus:e=>{d(!0),l.onFocus?.(e)},onBlur:e=>{d(!1),l.onBlur?.(e)},className:`peer w-full bg-white py-2 pr-4 leading-tight text-[#071638] outline-none transition-all duration-200 ${n?"min-h-[3.25rem] rounded-lg border-2 text-base font-light":"min-h-11 rounded-[10px] border bg-white/75 text-[14.5px]"} ${s?"pl-11":"pl-4"} ${i?"border-red-400 bg-red-50/30 shadow-[0_0_0_3px_rgba(239,68,68,0.10)]":n?"border-gray-200 hover:border-gray-300 focus:border-[#c8924b] focus:ring-4 focus:ring-[#c8924b]/10":"border-[#d9deea] hover:border-[#c8924b]/55 focus:border-[#c8924b] focus:bg-white focus:shadow-[0_0_0_4px_rgba(200,146,75,0.12)]"}`}),(0,t.jsxs)("label",{htmlFor:l.id,className:`pointer-events-none absolute -top-2 left-3 select-none bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200 ${c?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"}`,children:[e,r?(0,t.jsx)("span",{className:"ml-0.5 text-[#D8A93C]",children:"*"}):null]})]})}function io({title:e="Request a Consultation",subtitle:i="Share your details and we'll get back to you shortly.",submitLabel:r="Get Quote",catalogId:n,serviceId:s,serviceName:l,leadSource:o,deviceTypeCap:d,leadUrl:c}){let p=(0,a3.useReducedMotion)(),{geoCountry:m}=(0,u.useMiddleware)(),{isAuthenticated:h,user:g}=(0,u.useSession)(),x=h&&!!g,f=x&&!!String(g?.email||"").trim(),[b,y]=(0,a.useState)(a7),[v,w]=(0,a.useState)(ie),[j,N]=(0,a.useState)(0),[_,k]=(0,a.useState)({}),[S,C]=(0,a.useState)("idle"),[A,z]=(0,a.useState)(""),[E,L]=(0,a.useState)(!1),[T,I]=(0,a.useState)(!1),[M,B]=(0,a.useState)(!1),$=(0,a.useRef)(null),F=(0,a.useRef)(null);(0,a.useEffect)(()=>(B(!0),()=>{$.current&&clearTimeout($.current)}),[]),(0,a.useEffect)(()=>{let e=()=>I(!0);return window.addEventListener("filings:open-journey-drawer",e),()=>window.removeEventListener("filings:open-journey-drawer",e)},[]),(0,a.useEffect)(()=>
1223{if(!T)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=window.setTimeout(()=>{let e=document.querySelector("[data-crypto-lead-drawer]"),t=Array.from(e?.querySelectorAll('input:not([type="hidden"])')||[]),a=t.find(e=>!e.value.trim())||t[0];a?.focus({preventScroll:!0})},280);return()=>{window.clearTimeout(t),document.body.style.overflow=e}},[x,T]),(0,a.useEffect)(()=>{if(!x||!g)return;let e=String(g.gid||g.email||g.mobile||"authenticated");if(F.current===e)return;F.current=e;let t=String(g.name||"").trim(),a=String(g.email||"").trim(),i=String(g.ccode||"971").replace(/\D/g,"")||"971",r=String(g.mobile||"").replace(/\D/g,""),n=r.startsWith(i)&&r.length>i.length?r.slice(i.length):r;y(e=>({...e,name:e.name.trim()||t,email:e.email.trim()||a})),n&&(w({fullNumber:`+${i}${n}`,countryCode:i,nationalNumber:n,countryName:"91"===i?"India":"United Arab Emirates"}),N(e=>e+1))},[x,g]);let P=e=>{k(t=>{if(!t[e])return t;let a={...t};return delete a[e],a}),"error"===S&&(C("idle"),z(""))},R=(e,t)=>{k(a=>({...a,[e]:t}))},D=()=>{x?y(e=>({...e,businessName:""})):(y(a7),w(ie),N(e=>e+1)),k({}),z(""),C("idle"),I(!1)},W=async e=>{if(e.preventDefault(),"submitting"===S)return;z("");let t=e.currentTarget,a=e=>t.querySelector(`[data-lead-field="${e}"]`)?.value??b[e],i={name:a("name"),email:a("email"),businessName:a("businessName")},r={...v,nationalNumber:t.querySelector('input[name$="-phone"]')?.value??v.nationalNumber},o=((e=b,t=v)=>{let a={},i=e.name.trim();i?ir(i)||(a.name="Use at least 3 letters and spaces only"):a.name="Name is required";let r=String(f?e.email||g?.email||"":e.email).trim();if(r?is(r)||(a.email="Enter a valid email address"):a.email="Email is required",(0,eg.isBlockedDialCode)(t.countryCode))a.phone="Our services are currently unavailable in your region.";else{let e=(0,eg.validatePhone)(t.nationalNumber,t.countryCode,t.countryName);e.valid||(a.phone=e.error||"Enter a valid phone number")}let n=e.businessName.trim();if(n){let e=(0,eg.validateBusinessName)(n);!e.valid&&e.error&&(a.businessName=e.error)}return a})(i,r);if(k(o),Object.keys(o).length){let e=["name","email","phone","businessName"].find(e=>o[e]);e&&window.requestAnimationFrame(()=>{let a="phone"===e?'input[name$="-phone"]':`[data-lead-field="${e}"]`;t.querySelector(a)?.focus({preventScroll:!1})});return}C("submitting");try{let e=`${window.location.origin}${window.location.pathname}
1223`,t=new URLSearchParams(window.location.search),a=Object.fromEntries(t.entries()),o=(0,eM.generateLeadSource)(t),c=String(window.lead_source??"").trim(),p=await (0,eM.resolveClientLeadSource)(c||o),u=d||(window.innerWidth<768?"Mobile":"Desktop"),m=`AE-Signup-${u}-Journey-${n||0}-${p}`,h=(0,eg.normalizePhoneNumber)(r.nationalNumber,r.countryCode,r.countryName),x=i.businessName.trim(),b=String(f?i.email||g?.email||"":i.email).trim(),y={country_type:h.countryType,phone_e164:h.e164};x&&(y.business_name=x);let v=await (0,eB.safeFetch)("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i.name.trim(),email:b,phone:h.nationalNumber,mobile:h.nationalNumber,country_code:h.countryCode,country_type:h.countryType,business_name:x,catalog_id:n||"",service_id:s||"",service_name:l||"Filings.ae",lead_source:m,url:e,queryParam:a,ad_tracking:a,smart_info:JSON.stringify(y)}),label:"CryptoLeadForm_createLead"});if(!v.ok)throw Error("Lead submission failed");let w=await v.json().catch(()=>({}));(0,eF.pushLeadAndCompleteRegistrationGtm)({leadResponse:w,signupParams:(0,e$.parseSignupInfo)({}),defaultCurrency:"AED"}),C("success"),z("Your consultation request has been received."),$.current&&clearTimeout($.current),$.current=setTimeout(D,3200)}catch{C("error"),z("Something went wrong. Please try again in a moment.")}},O=e.trim().split(/\s+/).filter(Boolean),q=O[O.length-1]||"",U=O.slice(0,-1).join(" "),G=e=>{let a="mobile"===e;return(0,t.jsx)("div",{className:`relative overflow-hidden bg-white/95 text-[#071638] ${a?"min-h-full rounded-none bg-transparent px-5 pb-5 pt-4":"rounded-[28px] border border-white/70 px-6 pb-[34px] pt-[34px] shadow-[0_28px_70px_rgba(21,34,68,0.10)] backdrop-blur-[18px] sm:px-[45px]"}`,children:(0,t.jsx)(a4.AnimatePresence,{mode:"wait",initial:!1,children:"success"===S?(0,t.jsxs)(a8.motion.div,{className:"flex min-h-[25rem] flex-col items-center justify-center px-3 text-center",initial:p?{opacity:0}:{opacity:0,y:12,scale:.98},animate:{opacity:1,y:0,scale:1},exit:p?{opacity:0}:{opacity:0,y:-8,scale:.99},transition:{duration:p?.12:.42,ease:[.22,1,.36,1]},role:"status","aria-live":"polite",children:[(0,t.jsxs)(a8.motion.span,{className:"relative grid h-20 w-20 place-items-center rounded-[1.4rem] bg-emerald-50 text-emerald-600 shadow-[0_1rem_3rem_rgba(5,150,105,0.18)]",initial:!p&&{scale:.7,rotate:-8},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:260,damping:18,delay:.08},children:[(0,t.jsx)(a9.CheckCircle2,{className:"h-10 w-10",strokeWidth:1.7}),(0,t.jsx)(a8.motion.span,{className:"absolute inset-0 rounded-[1.4rem] border border-emerald-300",initial:!p&&{opacity:.7,scale:.85},animate:p?{opacity:0}:{opacity:0,scale:1.35},transition:{duration:.9,delay:.18}})]}),(0,t.jsx)("p",{className:"mt-7 text-[11px] font-bold uppercase tracking-[0.16em] text-[#b77f35]",children:"Request received"}),(0,t.jsxs)("h2",{className:"mt-2 text-[1.85rem] font-bold tracking-[-0.035em] text-[#071638]",children:["Thank you, ",b.name.trim().split(/\s+/)[0],"."]}),(0,t.jsxs)("p",{className:"mt-3 max-w-sm text-sm leading-6 text-[#6e7890]",children:[A," A Filings.ae specialist will contact you shortly."]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center gap-2 rounded-full border border-emerald-100 bg-emerald-50/70 px-4 py-2 text-xs font-semibold text-emerald-700",children:[(0,t.jsx)(H.ShieldCheck,{className:"h-4 w-4"}),"Your details are securely saved"]})]},"success"):(0,t.jsxs)(a8.motion.form,{onSubmit:W,noValidate:!0,initial:p?{opacity:0}:{opacity:0,y:8},animate:{opacity:1,y:0},exit:p?{opacity:0}:{opacity:0,y:-8},transition:{duration:p?.12:.3},children:[a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h2",{className:"text-[27px] font-bold tracking-tight text-[#071638]",children:[U?`${U} `:"",(0,t.jsx)("span",{className:"text-[#c8924b]",children:q})]}),(0,t.jsx)("p",{className:"mt-1.5 text-[14px] leading-6 text-[#7b8499]",children:i})]}),(0,t.jsxs)("div",{className:`${a?"grid gap-4":"mt-5 grid gap-3"}`,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(il,{id:`crypto-${e}-name`,name:`crypto-${e}-name`,"data-lead-field":"name",label:"Name",leadingIcon:a?void 0:V.default,drawer:a,required:!0,autoComplete:"name",maxLength:100,value:b.name,onBlur:e=>{let t=e.currentTarget.value.trim();t?ir(t)||R("name","Use at least 3 letters and spaces only"):R("name","Name is required")},onChange:e=>{y(t=>({...t,name:e.target.value.replace(/[^\p{L}\s]/gu,"").replace(/\s{2,}/g," ").replace(/^\s+/,"")})),P("name")},"aria-invalid":!!_.name,"aria-describedby":_.name?`crypto-${e}-name-error`:void 0,error:!!_.name}),_.name?(0,t.jsx)("p",{id:`crypto-${e}-name-error`,className:it,role:"alert",children:_.name}):null]}),f?(0,t.jsx)("input",{type:"hidden",name:`crypto-${e}-email`,value:b.email}):(0,t.jsxs)("div",{children:[(0,t.jsx)(il,{id:`crypto-${e}-email`,type:"email",name:`crypto-${e}-email`,"data-lead-field":"email",label:"Email",leadingIcon:a?void 0:en.Mail,drawer:a,required:!0,autoComplete:"email",maxLength:150,value:b.email,onBlur:e=>{let t=e.currentTarget.value.trim();t?is(t)||R("email","Enter a valid email address"):R("email","Email is required")},onChange:e=>{let t=e.target.value.replace(/\s/g,"");y(e=>({...e,email:t})),t.includes("@")&&!is(t)?R("email","Enter a valid email address"):P("email")},onKeyDown:e=>{" "===e.key&&e.preventDefault()},"aria-invalid":!!_.email,"aria-describedby":_.email?`crypto-${e}-email-error`:void 0,error:!!_.email}),_.email?(0,t.jsx)("p",{id:`crypto-${e}-email-error`,className:it,role:"alert",children:_.email}):null]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("label",{className:`pointer-events-none absolute -top-2 left-3 z-[1] bg-white px-1.5 text-[13px] font-medium leading-none transition-all duration-200 ${E||v.nationalNumber?"translate-y-0 text-[#c8924b] opacity-100":"translate-y-2 text-zinc-500 opacity-0"}`,children:["Phone Number ",(0,t.jsx)("span",{className:"text-[#D8A93C]",children:"*"})]}),(0,t.jsxs)("div",{className:`relative bg-white transition-all duration-200 ${a?"rounded-lg border-2 px-3.5 hover:border-gray-300 focus-within:border-[#c8924b] focus-within:ring-4 focus-within:ring-[#c8924b]/10":"rounded-[10px] border bg-white/75 hover:border-[#c8924b]/55 focus-within:border-[#c8924b] focus-within:bg-white focus-within:shadow-[0_0_0_4px_rgba(200,146,75,0.12)]"} ${_.phone?"border-red-400 bg-red-50/30 shadow-[0_0_0_3px_rgba(239,68,68,0.10)]":"border-[#d9deea]"}`,children:[(0,t.jsx)(ed.default,{name:`crypto-${e}-phone`,"data-lead-field":"phone",defaultCountry:m||"ae",value:v.nationalNumber,countryCode:v.countryCode,placeholder:E||v.nationalNumber?"":"Phone Number *",variant:"bare",onFocus:()=>{L(!0)},onBlur:()=>L(!1),onChange:e=>{if(w(e),(0,eg.isBlockedDialCode)(e.countryCode))R("phone","Our services are currently unavailable in your region.");else if(e.nationalNumber){let t=(0,eg.validatePhone)(e.nationalNumber,e.countryCode,e.countryName);t.valid?P("phone"):R("phone",t.error||"Enter a valid phone number")}else P("phone")},className:a?"h-[3.25rem] text-base font-light text-[#071638] placeholder:text-zinc-400":"h-11 text-[14.5px] font-medium text-[#071638] placeholder:text-zinc-400"},`${e}-${j}`),(0,eg.validatePhone)(v.nationalNumber,v.countryCode,v.countryName).valid&&!_.phone?(0,t.jsx)(el.Check,{className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-emerald-600","aria-hidden":"true"}):null]}),_.phone?(0,t.jsx)("p",{id:`crypto-${e}-phone-error`,className:it,role:"alert",children:_.phone}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(il,{id:`crypto-${e}-business-name`,name:`crypto-${e}-businessName`,"data-lead-field":"businessName",label:a?"Proposed Business N
1223ame (Optional)":"Business Name (Optional)",leadingIcon:a?void 0:es,drawer:a,autoComplete:"off","data-1p-ignore":"true","data-lpignore":"true",maxLength:150,value:b.businessName,onChange:e=>{y(t=>({...t,businessName:(0,eg.sanitizeBusinessNameInput)(e.target.value)})),P("businessName")},"aria-invalid":!!_.businessName,"aria-describedby":_.businessName?`crypto-${e}-business-error`:void 0,error:!!_.businessName}),_.businessName?(0,t.jsx)("p",{id:`crypto-${e}-business-error`,className:it,role:"alert",children:_.businessName}):null]})]}),"error"===S&&A?(0,t.jsx)("div",{className:"mt-4 rounded-lg border border-red-200 bg-red-50 px-3 py-2.5 text-center text-xs font-medium text-red-700",role:"alert",children:A}):null,a?(0,t.jsxs)("div",{className:"mt-5 flex items-center justify-between gap-3",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{I(!1),window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("filings:open-chat",{detail:{mode:"whatsapp"}}))},300)},className:"inline-flex shrink-0 cursor-pointer items-center gap-2.5 rounded-full bg-[#25d366] py-2 pl-2 pr-6 text-sm font-semibold text-white shadow-md shadow-emerald-500/25 transition-all duration-200 hover:bg-[#20bd5a] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#25d366] focus-visible:ring-offset-2","aria-label":"Chat with an expert on WhatsApp",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-white/20",children:(0,t.jsx)("svg",{className:"h-4 w-4",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"})})}),"Chat"]}),(0,t.jsxs)("button",{type:"submit",disabled:"submitting"===S,"aria-busy":"submitting"===S,className:"inline-flex shrink-0 cursor-pointer items-center gap-2.5 rounded-full border border-[#C8924B] bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] py-2 pl-7 pr-2 text-sm font-semibold text-white shadow-[0_10px_24px_rgba(200,146,75,0.22)] transition-all duration-200 hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,t.jsx)("span",{children:"submitting"===S?"Sendingâ¦":"Next"}),(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-white/20",children:"submitting"===S?(0,t.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/35 border-t-white","aria-hidden":"true"}):(0,t.jsx)(er.ArrowRight,{className:"h-4 w-4"})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"submit",disabled:"submitting"===S,"aria-busy":"submitting"===S,className:"mt-6 flex h-11 w-full cursor-pointer items-center justify-center gap-3 rounded-[9px] border border-[#C8924B] bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] px-5 text-[16px] font-bold tracking-wide text-white shadow-[0_14px_30px_rgba(200,146,75,0.24)] transition-all duration-200 hover:-translate-y-0.5 hover:border-[#BD873E] hover:brightness-105 disabled:cursor-not-allowed disabled:opacity-65 disabled:hover:translate-y-0",children:"submitting"===S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/35 border-t-white","aria-hidden":"true"}),"Sendingâ¦"]}):(0,t.jsxs)(t.Fragment,{children:[r," ",(0,t.jsx)(er.ArrowRight,{className:"h-4 w-4"})]})}),(0,t.jsxs)("p",{className:"mt-[17px] flex items-center justify-center gap-1.5 text-center text-[12px] text-[#8a92a4]",children:[(0,t.jsx)(H.ShieldCheck,{className:"h-3.5 w-3.5 text-[#c8924b]"}),"No spam. We'll only use these details to get in touch."]})]})]},"form")})})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-journey-form":!0,children:[(0,t.jsx)("div",{className:"hidden sm:block",children:G("desktop")}),(0,t.jsxs)("button",{type:"button",onClick:()=>I(!0),"aria-haspopup":"dialog","aria-expanded":T,className:"group flex min-h-14 w-full cursor-pointer items-center justify-between rounded-2xl border border-[#c8924b]/35 bg-white/95 px-5 text-left shadow-[0_1rem_2.5rem_rgba(21,34,68,0.10)] backdrop-blur sm:hidden",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block text-[11px] font-bold uppercase tracking-[0.13em] text-[#b77f35]",children:"Free consultation"}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm font-bold text-[#071638]",children:r})]}),(0,t.jsx)("span",{className:"grid h-9 w-9 place-items-center rounded-full bg-[#071638] text-white transition-transform duration-200 group-active:scale-95",children:(0,t.jsx)(er.ArrowRight,{className:"h-4 w-4"})})]})]}),M&&T?(0,ei.createPortal)((0,t.jsx)(a8.motion.div,{"data-crypto-lead-drawer":!0,className:"fixed inset-0 z-[10050] box-border flex h-[100dvh] min-h-[100dvh] flex-col overscroll-none bg-zinc-950 sm:hidden",style:{paddingTop:"env(safe-area-inset-top, 0px)",paddingBottom:"env(safe-area-inset-bottom, 0px)"},role:"dialog","aria-modal":"true","aria-label":e,initial:{opacity:0}
1223,animate:{opacity:1},exit:{opacity:0},children:(0,t.jsxs)(a8.motion.div,{className:"flex min-h-0 flex-1 flex-col overflow-hidden bg-white shadow-[0_-8px_40px_rgba(7,22,56,0.14)]",initial:p?{opacity:0}:{y:"100%"},animate:{opacity:1,y:0},transition:{duration:p?.12:.42,ease:[.22,1,.36,1]},children:[(0,t.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-t-3xl bg-[linear-gradient(100deg,#BD873E_0%,#C8924B_55%,#D3A35F_100%)] px-4 pb-3 pt-2",children:[(0,t.jsx)("div",{className:"mb-2 flex w-full justify-center py-0.5","aria-hidden":"true",children:(0,t.jsx)("span",{className:"block h-1 w-8 rounded-full bg-white/45"})}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-sm font-semibold leading-tight text-white",children:e}),(0,t.jsx)("span",{className:"truncate text-[11px] leading-tight text-white/85",children:"Tell us about your plans and get an instant quote"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I(!1),className:"flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-full bg-white/20 text-white transition-colors hover:bg-white/30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/70 active:scale-95","aria-label":"Close consultation form",children:(0,t.jsx)(ej.X,{className:"h-4 w-4",strokeWidth:2.5})})]})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain bg-[linear-gradient(160deg,#fffaf5_0%,#ffffff_50%,#f5f8ff_100%)]",children:G("mobile")})]})}),document.body):null]})}let id=/<em>([\s\S]*?)<\/em>/g,ic=/<strong>([\s\S]*?)<\/strong>/g,ip="italic text-gold-600";function iu(e){return e?e.replace(id,`<span class="${ip}">$1</span>`):""}function im(e,a){if(!a)return e;let i=e.indexOf(a);if(-1===i)return(0,t.jsxs)(t.Fragment,{children:[e,(0,t.jsx)("span",{className:"text-gold-600",children:a})]});let r=e.slice(0,i),n=e.slice(i+a.length);return(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsx)("span",{className:"text-gold-600",children:a}),n]})}function ih({hero:e,agentInvokeUrl:a,expertPageId:i,catalogId:r,serviceId:n,serviceName:s,leadSource:l,deviceTypeCap:o,leadUrl:d,isGlobalCategoryPage:c=!1}){var p;let u=(p=e.primaryCta,p.useAgentUrl&&a?a:p.href||a||"#"),m=!!(e.primaryCta.useAgentUrl&&a),h=!!(e.primaryCta.useAgentUrl&&!a);return(0,t.jsxs)("section",{className:"relative overflow-hidden bg-[#F8F5EF] pt-14 pb-14 sm:pt-20 sm:pb-20",children:[(0,t.jsx)("style",{children:` 1224 @keyframes cryptoSheen { 0%{transform:translateX(-60%) skewX(-12deg)} 100%{transform:translateX(320%) skewX(-12deg)} } 1225 .crypto-sheen{animation:cryptoSheen 9s linear infinite;will-change:transform} 1226 @media (prefers-reduced-motion: reduce){.crypto-sheen{animation:none;opacity:1}} 1227 `}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(110deg,#fffaf5_0%,#fff_48%,#f5f8ff_100%)]"}),(0,t.jsx)("div",{className:`pointer-events-none absolute inset-x-0 -bottom-24 h-[68%] bg-[length:100%_auto] bg-bottom bg-no-repeat ${c?"bg-[url('/images/global-map.png')]":"bg-[url('/images/dubai-skyline.png')]"}`,style:{opacity:.55,WebkitMaskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)",maskImage:"linear-gradient(to top, #000 0%, #000 42%, rgba(0,0,0,0) 86%)"},"aria-hidden":"true"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,rgba(255,255,255,0.5)_0%,rgba(255,255,255,0.1)_40%,rgba(255,255,255,0)_72%)]"}),(0,t.jsx)("div",{className:"crypto-sheen pointer-events-none absolute inset-y-0 -left-1/3 w-1/4 bg-[linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)]"}),(0,t.jsxs)("div",{className:"relative mx-auto grid max-w-[1600px] grid-cols-1 items-center gap-12 px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20 lg:grid-cols-[minmax(0,1fr)_560px] lg:gap-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-5 inline-flex items-center gap-2 rounded-full border border-gold-200 bg-gold-50 px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:e.eyebrow}),(0,t.jsx)("h1",{className:`font-extrabold tracking-tight text-zinc-900 ${e.twoLineH1?"text-4xl sm:text-6xl lg:text-[5.2rem]":"text-4xl sm:text-6xl lg:text-[5.6rem]"} leading-[1.05]`,children:e.h1Lines.map((a,i)=>(0,t.jsxs)("span",{children:[a.accent&&i>0&&(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:a.accent?"italic text-gold-600":"",children:a.text}),i<e.h1Lines.length-1?" ":""]},`${a.text}-${i}`))}),(0,t.jsx)("p",{className:"mt-6 max-w-xl text-base leading-relaxed text-zinc-600 sm:text-lg",children:e.sub}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-4",children:[m?(0,t.jsx)(a1,{href:u,label:e.primaryCta.label,catalogId:r,serviceId:n,serviceName:s,leadSource:l,deviceTypeCap:o,leadUrl:d}):h?(0,t.jsx)(a6,{label:e.primaryCta.label,leadUrl:d,deviceTypeCap:o,serverLeadSource:l,...i?{pageId:i}:{}}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a1,{href:u,label:e.primaryCta.label,catalogId:r,serviceId:n,serviceName:s,leadSource:l,deviceTypeCap:o,leadUrl:d})}),e.secondaryCta&&(0,t.jsx)(aQ,{sectionId:e.secondaryCta.sectionId,label:e.secondaryCta.label,className:"inline-flex items-center justify-center gap-2 rounded-full border border-zinc-300 bg-white px-7 py-3.5 text-sm font-semibold text-zinc-700 transition-colors hover:border-gold-300 hover:text-gold-700"})]}),(0,t.jsx)("div",{className:"mt-12 grid grid-cols-2 gap-x-6 gap-y-6 pt-8 sm:grid-cols-4",children:e.metrics.map((e,a)=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-2xl font-semibold text-zinc-900 sm:text-3xl",children:im(e.num,e.italic)}),(0,t.jsx)("div",{className:"mt-1 text-xs leading-snug text-zinc-500",children:e.label})]},`${e.label}-${a}`))})]}),(0,t.jsxs)("div",{className:"relative lg:justify-self-end",children:[(0,t.jsx)("div",{className:"absolute -inset-4 rounded-[2rem] bg-gradient-to-br from-gold-100/60 to-transparent blur-2xl","aria-hidden":"true"}),(0,t.jsx)("div",{className:"relative w-full max-w-[560px] lg:min-w-[550px]",children:(0,t.jsx)(io,{catalogId:r,serviceId:n,serviceName:s,leadSource:l,deviceTypeCap:o,leadUrl:d})})]})]})]})}function ig({children:e,className:i="",id:r,delayMs:n=0}){let s=(0,a.useRef)(null),[l,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=s.current;if(!e)return;let t=new IntersectionObserver(e=>
1227{e.forEach(e=>{e.isIntersecting&&(n>0?window.setTimeout(()=>o(!0),n):o(!0),t.unobserve(e.target))})},{threshold:.12,rootMargin:"0px 0px -60px 0px"});return t.observe(e),()=>t.disconnect()},[n]),(0,t.jsx)("div",{ref:s,id:r,className:`transition-all duration-700 ease-out ${l?"opacity-100 translate-y-0":"opacity-0 translate-y-6"} ${i}`,children:e})}function ix({num:e,label:a}){return(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-white/80 px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700 backdrop-blur-sm",children:[(0,t.jsxs)("span",{className:"relative flex h-1.5 w-1.5",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-gold-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-gold-500"})]}),(0,t.jsx)("span",{className:"font-mono text-gold-500",children:e})," ",a]})}function ib({children:e}){return(0,t.jsx)("div",{className:"group relative h-full rounded-2xl bg-gradient-to-br from-gold-200/70 via-zinc-200/50 to-gold-100/60 p-px transition-colors duration-300 hover:from-gold-400/80 hover:via-gold-200/70 hover:to-gold-300/70",children:(0,t.jsx)("div",{className:"relative h-full rounded-[15px] bg-white/90 p-6 backdrop-blur-sm transition-shadow duration-300 group-hover:shadow-[0_10px_36px_rgba(200,146,75,0.20)]",children:e})})}function iy({opportunity:e,gateway:a,opportunitySectionId:i="opportunity",gatewaySectionId:r="positioning"}){var n;return e||a?(0,t.jsx)("section",{className:"bg-white py-14 sm:py-20",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:[e&&(0,t.jsxs)(ig,{id:i,children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)(ix,{num:e.tag.num,label:e.tag.label}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 text-base leading-relaxed text-zinc-600",children:e.lede})]}),(0,t.jsx)("div",{className:"mt-12 grid grid-cols-2 gap-4 sm:grid-cols-4",children:e.stats.map((e,a)=>(0,t.jsxs)(ib,{children:[(0,t.jsx)("div",{className:"font-mono text-2xl font-semibold text-zinc-900 sm:text-3xl",children:im(e.num,e.italic)}),(0,t.jsx)("div",{className:"mt-2 text-sm leading-snug text-zinc-500",children:e.desc})]},`${e.desc}-${a}`))})]}),e&&a&&(0,t.jsxs)("div",{className:"my-16 flex items-center gap-4 sm:my-20","aria-hidden":"true",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-gold-200 to-transparent"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-gold-400"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-gold-200 to-transparent"})]}),a&&(0,t.jsxs)(ig,{id:r,delayMs:80,children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)(ix,{num:a.tag.num,label:a.tag.label}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(a.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 text-base leading-relaxed text-zinc-600",children:a.lede})]}),(0,t.jsx)("div",{className:"mt-12 grid grid-cols-1 gap-5 sm:grid-cols-3",children:a.routes.map((e,a)=>(0,t.jsxs)(ib,{children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-gold-600",children:[(0,t.jsx)("span",{className:"font-mono",children:e.from}),(0,t.jsx)("span",{className:"h-px flex-1 bg-gold-200","aria-hidden":"true"})]}),(0,t.jsx)("h3",{className:"text-lg font-semibold text-zinc-900",children:e.h3}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-zinc-600",children:e.p})]},`${e.h3}-${a}`))}),a.calloutHtml&&(0,t.jsx)("p",{className:"mt-10 rounded-2xl border-l-4 border-gold-500 bg-gold-50/70 px-6 py-5 text-lg leading-relaxed text-zinc-700 sm:text-xl",dangerouslySetInnerHTML:{__html:(n=a.calloutHtml)?n.replace(id,`<span class="${ip}">$1</span>`).replace(ic,'<span class="font-semibold text-zinc-900">$1</span>'):""}})]})]})}):null}function iv({data:e}){let a=function(e){let t=e.replace(/<[^>]+>/g,"").match(/(\d+)\s*\/\s*(\d+)/);if(!t)return null;let a=Number(t[1]),i=Number(t[2]);return i?Math.max(0,Math.min(100,Math.round(a/i*100))):null}(e.bottom.r);return(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-zinc-200/80 bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-zinc-200/80 bg-zinc-50/60 px-6 py-4",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-zinc-500",children:e.label}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-gold-500"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-gold-500"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-gold-500"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-zinc-200"})]})]}),(0,t.jsx)("div",{className:"divide-y divide-zinc-100 px-6",children:e.rows.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-gold-50 text-sm font-semibold text-gold-600",children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-semibold text-zinc-900",children:e.name}),(0,t.jsx)("div",{className:"truncate text-xs text-zinc-500",children:e.sub})]})]}),(0,t.jsx)("span",{className:`shrink-0 rounded-full px-3 py-1 text-xs font-semibold ${e.out?"bg-gold-100 text-gold-700":"bg-emerald-50 text-emerald-700"}`,children:e.amount})]},`${e.name}-${a}`))}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 border-t border-zinc-200/80 bg-zinc-50/60 px-6 py-4",children:[(0,t.jsx)("div",{className:"text-xs leading-snug text-zinc-500",dangerouslySetInnerHTML:{__html:iu(e.bottom.l)}}),(0,t.jsx)("div",{className:"shrink-0 text-lg font-semibold text-zinc-900",dangerouslySetInnerHTML:{__html:iu(e.bottom.r)}})]}),null!==a&&(0,t.jsx)("div",{className:"h-1.5 w-full bg-zinc-100",children:(0,t.jsx)("div",{className:"h-full rounded-r-full bg-gradient-to-r from-gold-400 to-gold-600 transition-all",style:{width:`${a}%`}})})]})}function iw({data:e}){return(0,t.jsxs)("div",{className:"rounded-2xl border border-zinc-200/80 bg-white p-6 shadow-sm",children:[(0,t.jsx)("div",{className:"mb-4 text-xs font-semibold uppercase tracking-wide text-zinc-500",children:e.label}),(0,t.jsx)("div",{className:"space-y-3",children:e.bars.map((e,a)=>(0,t.jsxs)("div",{className:`flex items-center justify-between rounded-xl px-4 py-3 ${e.uae?"bg-gold-50":"bg-zinc-50"}`,children:[(0,t.jsxs)("span",{className:"text-sm font-medium text-zinc-700",children:[e.flag," ",e.country]}),(0,t.jsx)("span",{className:`text-sm font-semibold ${e.uae?"text-gold-700":"text-zinc-900"}`,children:e.num})]},`${e.country}-${a}`))}),e.savings&&(0,t.jsxs)("div",{className:"mt-4 rounded-xl border border-gold-200 bg-gold-50/60 px-4 py-3",children:[(0,t.jsx)("div",{className:"text-xs font-medium text-gold-700",children:e.savings.label}),(0,t.jsx)("div",{className:"text-lg font-semibold text-zinc-900",children:e.savings.num}),(0,t.jsx)("div",{className:"text-xs text-zinc-500",children:e.savings.sub})]})]})}function ij({data:e}){return(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-zinc-200/80 bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"border-b border-zinc-200/80 bg-zinc-50/60 px-6 py-4",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-zinc-500",children:e.label}),(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-zinc-900",children:e.license.title}),(0,t.jsx)("div",{className:"text-xs text-zinc-500",children:e.license.ref})]}),(0,t.jsx)("span",{className:"rounded-full bg-gold-100 px-3 py-1 text-xs font-semibold text-gold-700",children:e.license.statusLabel})]})]}),(0,t.jsx)("div",{className:"divide-y divide-zinc-100 px-6",children:e.steps.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 py-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:`flex h-8 w-8 items-center justify-center rounded-full text-xs font-semibold ${"done"===e.state?"bg-emerald-50 text-emerald-700":"active"===e.state?"bg-gold-100 text-gold-700":"bg-zinc-100 text-zinc-400"}`,children:e.icon}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-medium text-zinc-900",children:e.title}),(0,t.jsx)("div",{className:"text-xs text-zinc-500",children:e.sub})]})]}),(0,t.jsx)("span",{className:"shrink-0 text-xs font-semibold text-zinc-500",children:e.badge})]},`${e.title}-${a}`))})]})}function iN({data:e,sectionId:a="services"}){return(0,t.jsx)("section",{className:"bg-zinc-50/60 py-14 sm:py-20",id:a,children:(0,t.jsx)("div",{className:"mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:(0,t.jsxs)(ig,{className:"grid grid-cols-1 gap-12 lg:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)] lg:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-white px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:[(0,t.jsx)("span",{className:"text-gold-500",children:e.tag.num})," ",e.tag.label]}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 max-w-lg text-base leading-relaxed text-zinc-600",children:e.lede}),(0,t.jsx)("ul",{className:"mt-8 grid grid-cols-1 gap-6 sm:grid-cols-2",children:e.items.map((e,a)=>(0,t.jsxs)("li",{className:"flex gap-4",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gold-50 text-xs font-semibold text-gold-600",children:e.num}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-base font-semibold text-zinc-900",children:e.title}),(0,t.jsx)("div",{className:"mt-1 text-sm leading-relaxed text-zinc-600",children:e.desc})]})]},`${e.title}-${a}`))})]}),function(e){switch(e.kind){case"paymentRows":return(0,t.jsx)(iv,{data:e});case"taxComparison":return(0,t.jsx)(iw,{data:e});case"licenseProgress":return(0,t.jsx)(ij,{data:e});default:return null}}(e.widget)]})})})}function i_({data:e,sectionId:a="tax"}){return(0,t.jsx)("section",{className:"bg-white py-14 sm:py-20",id:a,children:(0,t.jsx)("div",{className:"mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:(0,t.jsxs)(ig,{children:[(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-gold-50 px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:[(0,t.jsx)("span",{className:"text-gold-500",children:e.tag.num})," ",e.tag.label]}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 text-base leading-relaxed text-zinc-600",children:e.lede})]}),(0,t.jsx)("div",{className:"mx-auto mt-12 grid max-w-5xl grid-cols-1 gap-5 sm:grid-cols-3",children:e.cards.map((e,a)=>(0,t.jsxs)("div",{className:"rounded-2xl border border-zinc-200/80 bg-white p-7 text-center shadow-sm transition-shadow hover:shadow-md",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-gold-600",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-gold-500"}),e.tag]}),(0,t.jsx)("div",{className:"mt-3 text-4xl font-semibold text-zinc-900",children:im(e.num,e.italic)}),(0,t.jsx)("div",{className:"mt-1 text-sm font-medium text-zinc-500",children:e.sub}),(0,t.jsx)("p",{className:"mt-4 text-left text-sm leading-relaxed text-zinc-600",children:e.desc})]},`${e.tag}-${a}`))})]})})})}function ik({data:e,sectionId:a="residency"}){return(0,t.jsxs)("section",{className:"relative overflow-hidden bg-zinc-50/60 py-14 sm:py-20",id:a,children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-1/2 bg-gold-50/50 blur-3xl"}),(0,t.jsx)("div",{className:"relative mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:(0,t.jsxs)(ig,{className:"grid grid-cols-1 gap-12 lg:grid-cols-2 lg:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-white px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:[(0,t.jsx)("span",{className:"text-gold-500",children:e.tag.num})," ",e.tag.label]}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 max-w-lg text-base leading-relaxed text-zinc-600",children:e.lede}),(0,t.jsx)("ul",{className:"mt-8 grid grid-cols-1 gap-4 sm:grid-cols-2",children:e.bullets.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-gold-100 text-gold-700",children:(0,t.jsx)(el.Check,{size:12,strokeWidth:3})}),(0,t.jsx)("span",{className:"text-sm leading-relaxed text-zinc-700",children:e})]},`${a}-${e.slice(0,24)}`))})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:e.cards.map(e=>(0,t.jsxs)("div",{className:"rounded-2xl border border-zinc-200/80 bg-white p-5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-gold-600",children:e.label}),(0,t.jsx)("span",{className:"rounded-full bg-zinc-100 px-2.5 py-0.5 text-[11px] font-semibold text-zinc-500",children:"UAE"})]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-gold-500 text-base font-semibold text-white",children:e.initial}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-zinc-900",children:e.name}),(0,t.jsx)("div",{className:"text-xs text-zinc-500",children:e.role})]})]}),(0,t.jsx)("div",{className:"mt-4 border-t border-zinc-100 pt-3 text-xs font-medium text-zinc-500",children:e.validity})]},e.label))})]})})]})}function iS({data:e,sectionId:a="process"}){return(0,t.jsx)("section",{className:"bg-white py-14 sm:py-20",id:a,children:(0,t.jsx)("div",{className:"mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:(0,t.jsxs)(ig,{className:"mx-auto max-w-6xl",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-gold-50 px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:[(0,t.jsx)("span",{className:"text-gold-500",children:e.tag.num})," ",e.tag.label]}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}})]}),(0,t.jsx)("div",{className:"mt-14 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4",children:e.steps.map((a,i)=>(0,t.jsxs)("div",{className:"relative rounded-2xl border border-zinc-200/80 bg-white p-6 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gold-600",children:a.num}),(0,t.jsx)("span",{className:"rounded-full bg-zinc-100 px-2.5 py-0.5 text-[11px] font-semibold text-zinc-500",children:a.time})]}),(0,t.jsx)("h3",{className:"mt-4 text-base font-semibold text-zinc-900",children:a.h3}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-zinc-600",children:a.p}),i<e.steps.length-1&&(0,t.jsx)("s
1227pan",{className:"absolute top-1/2 -right-3 hidden h-px w-6 -translate-y-1/2 bg-gold-200 lg:block","aria-hidden":!0})]},`${a.h3}-${i}`))})]})})})}function iC({data:e,sectionId:a="cta",expertPageId:i,leadUrl:r,deviceTypeCap:n,leadSource:s}){return(0,t.jsx)("section",{className:"bg-zinc-50/60 py-14 sm:py-20",id:a,children:(0,t.jsx)("div",{className:"mx-auto max-w-[1600px] px-[25px] sm:px-10 md:px-11 lg:px-16 xl:px-20",children:(0,t.jsx)(ig,{className:"mx-auto max-w-4xl",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-3xl border border-gold-200 bg-gradient-to-br from-gold-50 via-white to-gold-50 px-6 py-14 text-center shadow-sm sm:px-16 sm:py-16",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -top-16 -right-16 h-64 w-64 rounded-full bg-gold-100/60 blur-3xl"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-16 -left-16 h-64 w-64 rounded-full bg-gold-100/60 blur-3xl"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-2xl",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-gold-200 bg-white px-3.5 py-1.5 text-xs font-semibold uppercase tracking-wide text-gold-700",children:[(0,t.jsx)("span",{className:"text-gold-500",children:e.tag.num})," ",e.tag.label]}),(0,t.jsx)("h2",{className:"mt-5 text-3xl font-semibold tracking-tight text-zinc-900 sm:text-4xl",dangerouslySetInnerHTML:{__html:iu(e.h2Html)}}),(0,t.jsx)("p",{className:"mt-5 text-base leading-relaxed text-zinc-600",children:e.lede}),(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(a6,{label:e.ctaLabel,leadUrl:r,deviceTypeCap:n,serverLeadSource:s,...i?{pageId:i}:{}})})]})]})})})})}let iA={opportunity:"opportunity",gateway:"positioning",banking:"services",tax:"tax",residency:"residency",process:"process",cta:"cta"},iz=["opportunity","gateway","banking","tax","residency","process","cta"];function iE(e){return"string"==typeof e&&e?e:void 0}function iL(e){if(!e)return null;if("object"==typeof e)return e;if("string"==typeof e)try{let t=JSON.parse(e);return"object"==typeof t&&null!==t?t:null}catch{}return null}let iT={1:aE,2:function({pageData:e,catalogData:a}){let n=e?.faqs||[],s=e?.pageTitle||"",l=e?.pageUrl||"",o=e?.category,d=e?.categoryLink,c=e?.serviceName||"",p=e?.bannerImage,u=e?.serviceId||"",m=e?.aiAssistantInvokeUrl||"",h=e?.hidePricing||!1,g=e?.pricingOnly||!1,x=e?.pricingPotentialId||"",f=e?.pricingContext||null,b=e?.serviceReviews||null,y=e?.listCatalog||[],v=e?.seo_title||s,w=e?.seo_description,j=e?.keywords,N=l.toLowerCase().includes("usa-company-registration")&&("230"===String(u)||a?.catalog?.some(e=>"230"===String(e?.service_id??""))),_=l.replace(/^https?:\/\/[^/]+/i,"").replace(/\/+$/,""),k=s||c||(o?`${o} Pricing`:"UAE Business Setup Pricing"),S=c&&c!==k?`${c} packages, name availability, and payment options`:"Compare UAE business setup packages, check name availability, and proceed to payment",C=(e?.pageCategory||o||"").trim(),A=(e?.routePath||l||"").trim(),z="immigration"===C.toLowerCase()?A:l,E=g?(0,eh.resolvePricingFormVariant)(z,C):"default";return g?(0,t.jsx)(i,{pageData:e,catalogData:a,children:N?(0,t.jsx)(P,{catalogResponse:a}):(0,t.jsx)(aA,{catalogResponse:a,potentialId:x,pricingContext:f,seoHeading:k,seoSubheading:S,pageUrl:l,formVariant:E})}):(0,t.jsxs)(i,{pageData:e,catalogData:a,children:[(0,t.jsx)(ta,{catalogResponse:a,category:o,categoryLink:d,serviceName:c,pageUrl:l,bannerImage:p,reviewsResponse:b}),(0,t.jsx)(aI,{seoTitle:v,pageUrl:l,ogImage:p,seoDescription:w,keywords:j,listCatalog:y}),m?(0,t.jsx)(te,{pageData:e}):(0,t.jsx)(eD,{pageData:e,catalogResponse:a}),!h&&(N?(0,t.jsx)(P,{catalogResponse:a}):(0,t.jsx)(aL.default,{catalogResponse:a,pageUrl:l,serviceName:c,category:o})),("/freezone"===_||"freezone"===_)&&(0,t.jsx)(aF,{}),y.length>0&&(0,t.jsx)(aT.default,{items:y,currentPageUrl:l}),n.length>0&&(0,t.jsx)(r.default,{faqs:n,pageTitle:s}),(0,t.jsx)(tu,{pageData:e,pricingOnly:g})]})},5:function({pageData:e,catalogData:a}){let s=e?.faqs||[],l=e?.serviceName||"",o=e?.category,d=e?.categoryLink,p=e?.categoryDisplayName,u=e?.pageTitle||"",m=e?.pageContent||"";return(0,t.jsxs)(i,{pageData:e,catalogData:a,children:[(0,t.jsx)("section",{className:"relative overflow-hidden",children:(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1600px] px-4 sm:px-6 lg:px-8 pt-4 sm:pt-6 pb-8 sm:pb-10 md:pb-14",children:[(0,t.jsxs)("nav",{className:"flex items-center gap-2 text-sm text-zinc-600 mb-4 sm:mb-5 flex-wrap",children:[(0,t.jsx)(n.default,{prefetch:!1,href:"/",className:"text-zinc-700 hover:text-emerald-600 transition-colors",children:"Filings.ae"}),o&&p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-zinc-400",children:"/"}),d?(0,t.jsx)(n.default,{prefetch:!1,href:d,className:"text-zinc-700 hover:text-emerald-600 transition-colors",children:p}):(0,t.jsx)("span",{className:"text-zinc-700 ",children:p})]}),(0,t.jsx)("span",{className:"text-zinc-400",children:"/"}),(0,t.jsx)("span",{className:"text-emerald-600 font-medium",children:l})]}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-2xl border border-zinc-200/80 bg-white shadow-sm min-w-0",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gold-500/60"}),(0,t.jsx)("div",{className:"p-4 sm:p-6 md:p-8 min-w-0 overflow-x-hidden",children:m&&(0,t.jsx)(c,{content:m,maxHeight:"1300px",defaultExpanded:!0})})]})]})}),s.length>0&&(0,t.jsx)(r.default,{faqs:s,pageTitle:u})]})},12:function({pageData:e,catalogData:r}){let n=(e?.pageTitle||e?.seo_title||"").replace(/[\r\n]+/g,"").trim(),s=e?.pageContent||"",l=e?.pageUrl||"",o=e?.serviceName||n,d=e?.seo_title||n,p=e?.keywords||"",u=e?.modified_on||e?.created_on||"",m=e?.video_data||[],h=e?.id,g=m.find(e=>e.page_id===h)||m[0]||null,x=g?.youtube||"",f=x?x.includes("watch?v=")?x.split("watch?v=").pop()?.split("&")[0]?.substring(0,11)||"":x.includes("/shorts/")?x.split("/shorts/").pop()?.split("?")[0]?.substring(0,11)||"":x.includes("youtu.be/")?x.split("youtu.be/").pop()?.split("?")[0]?.substring(0,11)||"":x.includes("/embed/")&&x.split("/embed/").pop()?.split("?")[0]?.substring(0,11)||"":"",b=e?.videoId||"",y=f||b,v=g?.video_description||"",w=g?.created_on||u,j=y?`https://www.youtube.com/embed/${y}?autoplay=1&mute=1&loop=1&rel=0&playlist=${y}`:"",N=e?.catalogId||"",[_,k]=(0,a.useState)(""),[S,C]=(0,a.useState)(""),[A,z]=(0,a.useState)(""),[E,L]=(0,a.useState)(!1),[T,I]=(0,a.useState)(!1),[M,B]=(0,a.useState)(""),$=(0,a.useCallback)(()=>_.trim()&&/^[A-Za-z ]+$/.test(_.trim())?S.trim()&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S.trim())?!A.trim()||A.trim().length<6?(B("Please enter a valid phone number."),!1):(B(""),!0):(B("Please enter a valid email address."),!1):(B("Please enter your name (alphabets only)."),!1),[_,S,A]),F=(0,a.useCallback)(async()=>
1227{if($()){L(!0),B("");try{let e=await (0,eB.safeFetch)("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:_.trim(),email:S.trim(),phone:A.trim(),url:l,catalog_id:N,service_name:o||"Filings.ae"}),label:"Template12_createLead"});if(!e.ok)return void B("Something went wrong. Please try again.");let t=await e.json();"200"===t.status||200===t.status||t.potentialID?(I(!0),k(""),C(""),z("")):B(t.errorMessage||t.message||"Something went wrong. Please try again.")}catch{B("Network error. Please try again.")}finally{L(!1)}}},[_,S,A,l,N,o,$]);return(0,t.jsxs)(i,{pageData:e,catalogData:r,children:[y&&(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:d||n,description:p||v||d,thumbnailUrl:[`https://img.youtube.com/vi/${y}/sddefault.jpg`],uploadDate:w||"2025-01-01T00:00:00.000Z",contentUrl:x,embedUrl:`https://www.youtube.com/embed/${y}`})}}),(0,t.jsx)("section",{className:"relative overflow-hidden",children:(0,t.jsxs)("div",{className:"relative mx-auto max-w-[1600px] px-4 sm:px-6 lg:px-8 pt-4 sm:pt-6 pb-8 sm:pb-10 md:pb-14",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 lg:gap-6",children:[(0,t.jsx)("div",{className:"lg:col-span-2",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-2xl border border-zinc-200/80 bg-white shadow-sm ",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gold-500/60"}),y?(0,t.jsx)("div",{className:"relative w-full",style:{paddingTop:"56.25%"},children:(0,t.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full",src:j,title:d||"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}):(0,t.jsx)("div",{className:"flex items-center justify-center h-64 sm:h-80 lg:h-[400px] bg-zinc-100 ",children:(0,t.jsx)("p",{className:"text-zinc-500 text-sm",children:"No video available"})}),n&&(0,t.jsx)("div",{className:"px-3 sm:px-4 py-2.5 sm:py-3 border-t border-zinc-100 ",children:(0,t.jsx)("h1",{className:"text-sm sm:text-base font-medium leading-snug text-zinc-800 line-clamp-2",children:n})})]})}),(0,t.jsx)("div",{className:"lg:col-span-1 sticky top-24",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl border border-zinc-200/80 bg-white shadow-sm ",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gradient-to-r from-emerald-500 to-teal-400"}),(0,t.jsx)("div",{className:"p-4 sm:p-5",children:T?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-emerald-100 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-emerald-600 text-lg",children:"â"})}),(0,t.jsx)("h3",{className:"text-base font-semibold text-zinc-900 ",children:"Thank You!"}),(0,t.jsx)("p",{className:"text-xs text-zinc-500 ",children:"Our advisors will contact you shortly."}),(0,t.jsx)("button",{onClick:()=>I(!1),className:"mt-1 text-xs text-emerald-600 hover:underline cursor-pointer",children:"Submit another enquiry"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Get Started"}),(0,t.jsx)("p",{className:"text-xs text-zinc-500 mb-4",children:"Fill in your details and our experts will reach out."}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("input",{type:"text",placeholder:"Name",value:_,onChange:e=>k(e.target.value),className:"w-full h-11 rounded-lg border border-zinc-200 bg-white/80 px-3.5 text-sm text-zinc-900 placeholder:text-zinc-400 outline-none focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/20 transition-all",autoComplete:"name"}),(0,t.jsx)("input",{type:"email",placeholder:"Email",value:S,onChange:e=>C(e.target.value),className:"w-full h-11 rounded-lg border border-zinc-200 bg-white/80 px-3.5 text-sm text-zinc-900 placeholder:text-zinc-400 outline-none focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/20 transition-all",autoComplete:"email"}),(0,t.jsx)("input",{type:"tel",placeholder:"Phone",value:A,onChange:e=>z(e.target.value),className:"w-full h-11 rounded-lg border border-zinc-200 bg-white/80 px-3.5 text-sm text-zinc-900 placeholder:text-zinc-400 outline-none focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/20 transition-all",autoComplete:"tel"}),M&&(0,t.jsx)("p",{className:"text-red-500 text-xs",children:M}),(0,t.jsx)("button",{onClick:F,disabled:E,className:"w-full h-11 rounded-lg bg-emerald-600 hover:bg-emerald-700 text-white text-sm font-semibold flex items-center justify-center gap-2 transition-colors disabled:opacity-60 disabled:cursor-not-allowed cursor-pointer",children:E?(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):"Get Started"})]})]})})]})})]}),s&&(0,t.jsx)("div",{className:"mt-6 lg:mt-8",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-2xl border border-zinc-200/80 bg-white shadow-sm min-w-0",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-[3px] bg-gold-500/60 opacity-60"}),(0,t.jsx)("div",{className:"p-4 sm:p-6 md:p-8 min-w-0 overflow-x-hidden",children:(0,t.jsx)(c,{content:s,maxHeight:"1300px",defaultExpanded:!0})})]})})]})})]})},13:function({pageData:e,catalogData:a}){let r=e??{}
1227,n=function(e){let t={designation:null,profile_img:null,profile_url:null,banner_image:null,published_name:null};if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return{designation:"string"==typeof t.designation?t.designation:null,profile_img:"string"==typeof t.profile_img?t.profile_img:null,profile_url:"string"==typeof t.profile_url?t.profile_url:null,banner_image:"string"==typeof t.banner_image?t.banner_image:null,published_name:"string"==typeof t.published_name?t.published_name:null}}catch{return t}return e&&"object"==typeof e&&null!==e?{designation:"string"==typeof e.designation?e.designation:null,profile_img:"string"==typeof e.profile_img?e.profile_img:null,profile_url:"string"==typeof e.profile_url?e.profile_url:null,banner_image:"string"==typeof e.banner_image?e.banner_image:null,published_name:"string"==typeof e.published_name?e.published_name:null}:t}(r.blog),s=aZ(r.category),l=aV(e?.categoryLink)||aV(r.categoryLink)||aV(r.category_link),o=s.replace(/^Filings\.ae\s*-\s*/i,"").trim()||"General",d=function(e,t){let a=(e||"").trim();if(a){let e=a.replace(/^https?:\/\/www\.filings\.ae/i,"").replace(/^https?:\/\/filings\.ae/i,"");return e.startsWith("/")?e:`/${e}`}if(!t)return"/guides";let i=t.replace(/^Filings\.ae\s*-\s*/i,"").trim();if(!i)return"/guides";let r=i.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");return`/${r}/`}(l,s||void 0),c=function(e){if(!e||"string"!=typeof e)return"";let t=e;return(t=(t=(t=(t=t.replace(/\[caption id="attachment_\d+" align="align\w+" width="\d+"\]/gi,"").replace(/\[\/caption\]/gi,"")).replace(/\[pdf-embedder url="([^"]+)"[^\]]*\]/gi,(e,t)=>{let a=encodeURIComponent(t),i=`https://docs.google.com/viewer?url=${a}&embedded=true`;return`<div class="pdf-embed-container" style="width: 100%; margin-bottom: 20px; margin-top: 15px;"> 1228 <iframe src="${i}" loading="lazy" allowfullscreen class="iframe_embed" style="width: 100%; min-height: 550px; border: none; border-radius: 8px;"></iframe> 1229 <div style="margin-top: 8px; text-align: center;"> 1230 <a href="${t}" target="_blank" rel="noopener noreferrer" style="color: #3b82f6; font-size: 13px; text-decoration: underline;">Open PDF in new tab</a> 1231 </div> 1232 </div>`})).replace(/<embed\s+src="([^"]+)"[^>]*>/gi,(e,t)=>{if(t.toLowerCase().endsWith(".pdf")){let e=encodeURIComponent(t),a=`https://docs.google.com/viewer?url=${e}&embedded=true`;return`<div class="pdf-embed-container" style="width: 100%; margin-bottom: 20px; margin-top: 15px;"> 1233 <iframe src="${a}" loading="lazy" allowfullscreen class="iframe_embed" style="width: 100%; min-height: 550px; border: none; border-radius: 8px;"></iframe> 1234 <div style="margin-top: 8px; text-align: center;"> 1235 <a href="${t}" target="_blank" rel="noopener noreferrer" style="color: #3b82f6; font-size: 13px; text-decoration: underline;">Open PDF in new tab</a> 1236 </div> 1237 </div>`}return`<iframe src="${t}" loading="lazy" allowfullscreen class="iframe_embed" style="width: 100%; min-height: 550px; border: none; margin-bottom: 20px; margin-top: 15px;"></iframe>`})).replace(/\[maxbutton id="[^"]*"\s*url="([^"]+)"\s*text="([^"]+)"\s*\]/gi,'<a href="$1" style="color: #1b84ff; text-decoration: none; border-bottom: 1px solid #1b84ff; font-weight: 500;">$2</a>')).replace(/<h1([^>]*)>([\s\S]*?)<\/h1>/gi,(e,t,a)=>{let i=a.replace(/<[^>]*>/g,"").trim(),r=t;return r=/style\s*=\s*"/i.test(t)?t.replace(/style\s*=\s*"/i,'style="display: block; width: 100%; '):` style="display: block; width: 100%;"${t}`,`<h1${r}>${i}</h1>`})}(aZ(e?.pageContent)||aZ(r.page_content)||aZ(r.tmp_page_content)),p=aZ(r.seo_title),u="string"==typeof e?.pageTitle?e.pageTitle:"",m=aG((p?p.split("|")[0].trim():u).replace(/\s*-\s*Filings\.ae$/i,"")),h=(Array.isArray(r.faqs)?r.faqs:[]).filter(e=>e&&(e.question||e.answer)).map(e=>({question:aG(e.question??""),answer:aG(e.answer??"")})),g=(Array.isArray(r.relatedGuides)?r.relatedGuides:[]).map(e=>({title:aG(e.title??""),href:e.url??void 0})),x=Array.isArray(r.breadcrumbSegments)?r.breadcrumbSegments:void 0,f=x?.map((e,t,a)=>{let i=e.label;return t===a.length-1&&i&&(i=i.replace(/\s*-\s*Filings\.ae$/i,"")),{...e,label:aG(i)}}),b=n.designation??void 0,y=function(e){if(!e||"string"!=typeof e)return;let t=e.trim();if(t)return t.startsWith("http://")?t.replace(/^http:\/\//i,"https://"):t}(aV(n.banner_image)||aV(r.seo_og_image)),v=aZ(r.seo_description),w=aZ(e?.pageUrl)||aZ(r.url),j=aV(r.created_on),N=aV(r.modified_on),_=!!r.settings?.news_article,k=e?.pageTemplate,S=13===k||"13"===k||13===Number(k),C={title:m,breadcrumbLabel:aZ(r.breadcrumb).trim()||void 0,category:s,categoryLink:d,categoryDisplayName:o,content:c,bannerImage:y,updatedOn:function(e){if(!e)return"";try{let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let a=t.toLocaleDateString("en-US",{month:"short",timeZone:"UTC"}),i=t.getUTCDate(),r=t.getUTCFullYear();return`${a} ${i}, ${r}`}catch{return""}}(N),expertName:n.published_name??void 0,expertImage:n.profile_img??void 0,expertLink:n.profile_url??void 0,expertDesignation:b,breadcrumbSegments:f,faqs:h.length>0?h:void 0,relatedGuides:g.length>
12370?g:void 0};return(0,t.jsxs)(i,{pageData:e,catalogData:a,children:[(0,t.jsx)(aU,{title:m,description:v,url:w,imageUrl:y,authorName:n.published_name??"Filings.ae",authorUrl:n.profile_url??void 0,datePublished:j,dateModified:N,isNewsArticle:_}),(0,t.jsx)(aq,{articleData:C,gaHideGuideArticleHeroPageTemplate13:S})]})},15:function({pageData:e}){let a,i,r=e??{},n=function(e){for(let t of[e.components,e.components_preprod,e.template_settings,e.template_settings_preprod]){let e=iL(t)?.landing;if(e)return e}return e.templateSettings?.landing??null}(r);if(!n)return console.warn("[CryptoLandingTemplate] missing components.landing â rendering nothing."),null;let s=(a=iL(r.settings),Number.isFinite(i=Number(a?.expert_page_id))&&i>0?i:void 0),l=iE(r.pageUrl),o=iE(r.deviceTypeCap),d=iE(r.leadSource),c=iE(r.aiAssistantInvokeUrl),p=String(r.catalogId??"")||void 0,u=String(r.serviceId??"")||void 0,m=iE(r.serviceName),h=function(e){let t={...iA},a=e.nav?.items??[],i=0;for(let r of iz){let n=e[r];n&&(t[r]=function(e){if(e&&"object"==typeof e)return iE(e.sectionId)}(n)||iE(a[i]?.sectionId)||t[r],i+=1)}return t}(n),g=(r.pageCategory||r.category||"").toLowerCase().includes("global");return(0,t.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,t.jsx)(aY.default,{}),(0,t.jsx)(aX,{}),(0,t.jsx)(ih,{hero:n.hero,agentInvokeUrl:c,expertPageId:s,catalogId:p,serviceId:u,serviceName:m,leadSource:d,deviceTypeCap:o,leadUrl:l,isGlobalCategoryPage:g}),(0,t.jsx)(iy,{opportunity:n.opportunity,gateway:n.gateway,opportunitySectionId:h.opportunity,gatewaySectionId:h.gateway}),n.banking&&(0,t.jsx)(iN,{data:n.banking,sectionId:h.banking}),n.tax&&(0,t.jsx)(i_,{data:n.tax,sectionId:h.tax}),n.residency&&(0,t.jsx)(ik,{data:n.residency,sectionId:h.residency}),n.process&&(0,t.jsx)(iS,{data:n.process,sectionId:h.process}),n.cta&&(0,t.jsx)(iC,{data:n.cta,sectionId:h.cta,expertPageId:s,leadUrl:l,deviceTypeCap:o,leadSource:d}),(0,t.jsx)(aJ.default,{})]})}};function iI(e){let{pageData:a={},catalogData:i}=e??{},r=a?.pageTemplate,n=iT["string"==typeof r?parseInt(r,10):"number"==typeof r?r:1]||aE;return(0,t.jsx)(n,{pageData:a,catalogData:i})}function iM(e){let{pageData:a={},catalogData:i}=e??{};return(0,t.jsx)(iI,{pageData:a,catalogData:i})}e.s(["default",()=>iM],273235)},719079,e=>{"use strict";var t=e.i(271645),a=e.i(236192);function i({leadData:e,pageUrl:i,serviceName:r}){let n=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{!e||n.current||(n.current=!0,(async()=>{try{await (0,a.safeFetch)("/api/v1/core/lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name||"",email:e.email||"",phone:e.phone||"",country_code:e.country_code||"971",lead_source:e.lead_source||e.source||"",catalog_id:e.catalog_id,url:i||window.location.href,service_name:r||"",queryParam:e.gid?{gid:e.gid}:{}})})}catch{}})())},[e,i,r]),null}e.s(["default",()=>i])}]);
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.