1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{2169:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepCompanyDetails:()=>v});var n=t(38694),i=t(93220),o=t(64646),a=t(69054),r=t(8256),s=t(2508),d=t(94674),c=t(83924),u=t(45734),m=t(29722),_=t(46561);let v=(0,u.memo)((0,u.forwardRef)(function(e,l){var t,v,p,x,h,f,g,b,y,j;(0,u.useImperativeHandle)(l,()=>({onSubmit:Y}));let{isLoading:N,listAllState:w,listCountries:k,configOrder:S,errors:C,setIsLoading:E,handleNextStep:R,updateContextValue:O}=(0,u.useContext)(i.w_),{orderStore:T,updateOrderStore:A,clearOrderStore:M}=(0,r.Fc)(),{reset:I,watch:P,trigger:L,register:F,setError:D,setValue:K,getValues:B,control:G,formState:{errors:U}}=(0,m.mN)({mode:"all",resolver:(0,c.t)((0,s.JP)(S))}),Y=(0,u.useCallback)(async()=>{if(N||!await L())return;E(!0);let e=await (0,s.Ji)(),l={order_id:null==T?void 0:T.order_id,contact:{country_code:B("contact.country_code.value"),state_code:B("contact.state_code.value"),city:B("contact.city"),street:B("contact.street"),region:B("contact.region"),postal_code:B("contact.postal_code"),special_request:B("contact.special_request")},gRecaptchaToken:e,url:window.location.href},t=await o.xN.submitCompanyDetails(l),n=(0,o.jN)(t);if(!(null==t?void 0:t.success)&&(_.oR.error((null==t?void 0:t.message)||(null==S?void 0:S.txt_toaster_failed_common)),n&&O({errors:n}),(null==t?void 0:t.statusCode)==s.kG.NotFound)){M(),window.location.reload();return}(null==t?void 0:t.data)&&z(t.data),E(!1)},[N]),z=(0,u.useCallback)(e=>{let l={order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code,contact:{...null==T?void 0:T.contact,country_code:B("contact.country_code.value"),state_code:B("contact.state_code.value"),city:B("contact.city"),street:B("contact.street"),region:B("contact.region"),postal_code:B("contact.postal_code"),special_request:B("contact.special_request")}};R(),A(l),O({errors:{}})},[]),H=(0,u.useMemo)(()=>null==T?void 0:T.contact,[null==T?void 0:T.contact]),q=(0,u.useMemo)(()=>null==w?void 0:w.filter(e=>e.state_country_code==B("contact.country_code.value")),[P("contact.country_code")]),V=(0,u.useCallback)(()=>{(null==q?void 0:q.length)&&K("contact.state_code",null)},[q]);return(0,a.VT)(D,C),(0,u.useEffect)(()=>{if(!(null==H?void 0:H.country_code))return;let e=B("contact");e&&Object.keys(e).some(l=>!!e[l])||I({contact:{...H,country_code:null==k?void 0:k.find(e=>e.value==(null==H?void 0:H.country_code)),state_code:null==q?void 0:q.find(e=>{var l;return e.state_code.toLowerCase()==(null==H?void 0:null===(l=H.state_code)||void 0===l?void 0:l.toLowerCase())})}})},[H]),(0,n.jsxs)("form",{noValidate:!0,onSubmit:Y,className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==S?void 0:S.txt_order_title_company_details}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 lg:gap-6 mt-5",children:[(0,n.jsx)(d.$k,{isRequired:!0,control:G,isShowPlaceholder:!0,isDisabled:N,option:k,id:"contact.country_code",name:"contact.country_code",nameLabel:null==S?void 0:S.lbl_mp_country,onSelect:V,placeholder:null==S?void 0:S.txt_mp_please_select}),(null==q?void 0:q.length)?(0,n.jsx)(d.$k,{isRequired:!0,control:G,isShowPlaceholder:!0,disabled:N,id:"contact.state_code",name:"contact.state_code",option:q,nameLabel:null==S?void 0:S.lbl_mp_state,defaultValue:null==q?void 0:q.find(e=>e.state_code.toLowerCase()==(null==H?void 0:H.state_code))}):(0,n.jsx)(d.pd,{required:!0,maxLength:255,disabled:N,...F("contact.region"),nameLabel:null==S?void 0:S.lbl_mp_state_province_region,errorMessage:null==U?void 0:null===(v=U.contact)||void 0===v?void 0:null===(t=v.region)||void 0===t?void 0:t.message}),(0,n.jsx)(d.pd,{required:!0,maxLength:255,disabled:N,...F("contact.city"),nameLabel:null==S?void 0:S.lbl_mp_city_country,errorMessage:null==U?void 0:null===(x=U.contact)||void 0===x?void 0:null===(p=x.city)||void 0===p?void 0:p.message}),(0,n.jsx)(d.pd,{required:!0,maxLength:255,disabled:N,...F("contact.street"),nameLabel:null==S?void 0:S.lbl_mp_address,errorMessage:null==U?void 0:null===(f=U.contact)||void 0===f?void 0:null===(h=f.street)||void 0===h?void 0:h.message}),(0,n.jsx)(d.pd,{required:!0,maxLength:9,disabled:N,...F("contact.postal_code"),nameLabel:null==S?void 0:S.lbl_mp_zip_postal_code,errorMessage:null==U?void 0:null===(b=U.contact)||void 0===b?void 0:null===(g=b.postal_code)||void 0===g?void 0:g.message}),(0,n.jsx)(d.pd,{disabled:N,...F("contact.special_request"),nameLabel:null==S?void 0:S.lbl_order_special_request,errorMessage:null==U?void 0:null===(j=U.contact)||void 0===j?void 0:null===(y=j.special_request)||void 0===y?void 0:y.message})]})]})}))},3547:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Zalo:()=>d});var n=t(38694),i=t(69054),o=t(74323),a=t(36791),r=t.n(a),s=t(45734);let d=()=>{let{listLiveChat:e}=(0,i.rZ)(),l=(0,s.useMemo)(()=>null==e?void 0:e.find(e=>"Zalo"==e.chat_name),[e]);return e?(0,n.jsx)(r(),{href:(null==l?void 0:l.chat_link)||"",target:"_blank",className:"z-10 fixed bottom-[60px] md:!bottom-[100px] right-4 md:!right-[30px]",title:(null==l?void 0:l.chat_name)||"",children:(0,n.jsx)(o.default,{src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-zalo-1766202023.svg",alt:(null==l?void 0:l.chat_name)||"",title:(null==l?void 0:l.chat_name)||"",width:64,height:64,loading:"lazy",className:"w-10 h-10 md:!w-16 md:!h-16"})}):null}},4123:(e,l,t)=>{"use strict";t.d(l,{Ld:()=>n.COMMUNICATION_CHANEL_MODE,OV:()=>n.CommunicationChanel,ac:()=>n.CHANNEL_ID});var n=t(79103)},5164:(e,l,t)=>{"use strict";t.d(l,{V:()=>n.LazyIframe});var n=t(16289)},5203:(e,l,t)=>{"use strict";t.d(l,{$:()=>u});var n=t(38694),i=t(2508),o=t(23264),a=t(36791),r=t.n(a),s=t(45734),d=t(42500);let c=(0,o.F)("relative z-[1] inline-flex items-center justify-center transition-all duration-300 rounded-xl whitespace-nowrap focu
1s-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 select-none",{variants:{variant:{primary:"[&_svg]:stroke-white before:bg-white after:bg-primary text-white hover:text-primary border border-primary bg-primary hover:bg-white","outline-black":"[&_svg]:stroke-black border border-black before:bg-black after:bg-white text-black hover:text-white bg-white hover:bg-black","outline-red":"[&_svg]:stroke-black border border-primary before:bg-primary after:bg-white text-primary hover:text-white bg-white hover:bg-primary","outline-blue":"[&_svg]:stroke-black border border-blue-3 before:bg-blue-3 after:bg-white text-blue-3 hover:text-white bg-white hover:bg-blue-3",none:""},size:{md:"px-3 py-2.5 h-10",lg:"py-3 px-4 h-12",xl:"px-6 py-4 h-[53px]",none:""},effect:{mimas:"button-effect button-mimas",none:""}},defaultVariants:{variant:"primary",size:"none",effect:"mimas"}}),u=s.forwardRef((e,l)=>{let{className:t,variant:o,size:a,effect:s,href:u,target:m="_self",children:_,disabled:v,isLoading:p,title:x,type:h="button",reloadDocument:f,...g}=e;return u?f?(0,n.jsx)("a",{className:(0,i.cn)(c({variant:o,size:a,effect:s,className:t})),href:u,target:m,title:x,children:_}):(0,n.jsx)(r(),{className:(0,i.cn)(c({variant:o,size:a,effect:s,className:t})),href:u,target:m,title:x,children:_}):(0,n.jsxs)("button",{className:(0,i.cn)(c({variant:o,size:a,effect:s,className:t})),ref:l,type:h,title:x,disabled:v,...g,children:[_,p&&(0,n.jsx)(d.VO,{className:"mx-2 inline h-4 w-4 animate-spin fill-white"})]})});u.displayName="Button"},5444:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Motion:()=>s});var n=t(38694),i=t(93220),o=t(63985),a=t(45734);let r={none:{},fadeInMount:{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.8}},fadeIn:{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.8},viewport:{once:!0}},fadeInUp:{initial:{y:20,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.8},viewport:{once:!0}},fadeInFormLeft:{initial:{x:-50,opacity:0},whileInView:{x:0,opacity:1},transition:{duration:.8},viewport:{once:!0}},fadeInFormRight:{initial:{x:50,opacity:0},whileInView:{x:0,opacity:1},transition:{duration:.8,delay:1},viewport:{once:!0}},easeInSideOut:{initial:{x:"-100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0},transition:{type:"spring",stiffness:400,damping:40,mass:.6,restDelta:.01,restSpeed:2}},scrollSticky:{variants:{hidden:{y:100,opacity:0,scale:.95},visible:{y:0,opacity:1,scale:1}},initial:"hidden",whileInView:"visible",viewport:{once:!1,amount:.3},transition:{duration:.6,ease:"easeOut"}}},s=e=>{let{tag:l="div",effect:t="none",children:s,isShow:d=!0,...c}=e,{isCrawl:u}=(0,a.useContext)(i.BR),m=o.P[l]||o.P.div,_=r[t]||{};return u?a.createElement(l,c,s):d?(0,n.jsx)(m,{..._,...c,children:s}):null}},5677:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepPayment:()=>h});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(42500),m=t(20361),_=t(31397),v=t(45734),p=t(46561),x=t(17978);let h=(0,v.forwardRef)(function(e,l){(0,v.useImperativeHandle)(l,()=>({onSubmit:V}));let{langLocationSlashed:t,lang:h,location:f,siteKeywords:g}=(0,v.useContext)(i.BR),{pageData:b,isLoading:y,listAllState:j,listCountries:N,configOrder:w,listPaymentGateway:k,errors:S,setIsLoading:C,updateContextValue:E}=(0,v.useContext)(i.w_),{orderStore:R,clearOrderStore:O}=(0,s.Fc)(),{setHtmlOtpAmex:T}=(0,r.yA)(),A=(0,r._F)(1024),[M,I]=(0,v.useState)(),[P,L]=(0,v.useState)(),[F,D]=(0,v.useState)(!1),[K,B]=(0,v.useState)(!1),G=M?"https://www.paypal.com/sdk/js?client-id=".concat(null==M?void 0:M.merchant_mid,"¤cy=").concat(null==M?void 0:M.merchant_currency,"&components=applepay,googlepay"):null,U=(0,v.useRef)(null),Y=(0,v.useRef)(null),z=(0,v.useRef)(null),H=(0,v.useRef)(null),q=(0,v.useRef)(null),V=(0,v.useCallback)(async()=>{var e,l,n,i,r,s,c,u;let _={[o.OZN.PAYPAL_DIRECT]:[null===(e=U.current)||void 0===e?void 0:e.submit(),null===(l=Y.current)||void 0===l?void 0:l.submit()],[o.OZN.AMEX]:[null===(n=U.current)||void 0===n?void 0:n.submit(),null===(i=Y.current)||void 0===i?void 0:i.submit()],[o.OZN.CYBERSOURCE]:[null===(r=U.current)||void 0===r?void 0:r.submit(),null===(s=Y.current)||void 0===s?void 0:s.submit()],[o.OZN.PAYPAL_CHECKOUT]:[],[o.OZN.BANK_TRANSFER]:[],[o.OZN.CASH]:[],[o.OZN.PAYPAL_APPLEPAY]:[null===(c=Y.current)||void 0===c?void 0:c.submit()],[o.OZN.PAYPAL_GOOGLEPAY]:[null===(u=Y.current)||void 0===u?void 0:u.submit()]}[null==M?void 0:M.gateway_key]||[],v=await Promise.all(_);if(!v.every(e=>!1!==e)||!M)return p.oR.error(null==w?void 0:w.txt_mp_review_correct_fields),C(!1);C(!0);let x=Object.assign({},...v),y=(0,o.X$5)(h,f,g[o.BPf]),j=await (0,d.Ji)(),N={...x,...y[null==M?void 0:M.gateway_key],order_id:null==R?void 0:R.order_id,merchant_id:null==M?void 0:M.merchant_id,gRecaptchaToken:j},k=await a.xN.submitProcessPayment(N);if(!k){p.oR.error(null==w?void 0:w.txt_toaster_failed_common),window.location.reload();return}let S=(0,a.jN)(k);if(!(null==k?void 0:k.success)){if(p.oR.error((null==k?void 0:k.message)||(null==w?void 0:w.txt_toaster_failed_common)),k.statusCode==d.kG.NotFound){O(),window.location.reload();return}S&&E({errors:S}),C(!1);return}let A=null==k?void 0:k.data;if(!(null==A?void 0:A.next_step)&&(null==A?void 0:A.content)){E({isConfirmation:!0,orderID:String(null==A?void 0:A.order_id),paymentStatus:null==A?void 0:A.status_f,contentConfirmation:null==A?void 0:A.content});let e=new URLSearchParams({action:"paymentConfirm",info:"".concat(null==A?void 0:A.status_f,"-").concat(null==A?void 0:A.order_id_f,"-").concat(null==A?void 0:A.gateway_key)}).toString(),l="".concat(t,"/").concat(null==b?void 0:b.page_keyword,"?").concat(e);window.history.pushState({path:l},"",l);return}let I={order_id:null==A?void 0:A.order_id,merchant_id:null==A?void 0:A.merchant_id,token:"",cart_id:null==A?void 0:A.cart_id,source_of_funds:null==A?void 0:A.source_of_funds},P=null,L=null;switch(null==A?void 0:A.gateway_key){case o.OZN.PAYPAL_DIRECT:(null==A?void 0:A.link_otp)&&(P=null==A?void 0:A.link_otp);break;case o.OZN.PAYPAL_CHECKOUT:if(null==A?void 0:A.link_checkout){let e=new URL((null==A?void 0:A.link_checkout)||"").searchParams.get("token");e?(I.token=e,(null==A?void 0:A.link_checkout)&&(P=null==A?void 0:A.link_checkout)):((0,m.deleteCookie)(o.Avz.ORDER_PAYMENT),window.location.reload())}break;case o.OZN.AMEX:case o.OZN.CYBERSOURCE:(null==A?void 0:A.html_otp)&&(L=null==A?void 0:A.html_otp);break;case o.OZN.PAYPAL_APPLEPAY:case o.OZN.PAYPAL_GOOGLEPAY:q.current={amount:(null==A?void 0:A.payment_total)||"0",cardId:(null==A?void 0:A.cart_id)||""},(0,m.setCookie)(o.Avz.ORDER_PAYMENT,(0,d.PZ)(I)),(0,m.setCookie)("".concat(o.Avz.SET_UP_NOW,"_").concat(f),null==b?void 0:b.page_keyword),C(!1),D(!0),E({orderID:String(null==A?void 0:A.order_id)});return}if((0,m.setCookie)(o.Avz.ORDER_PAYMENT,(0,d.PZ)(I)),(0,m.setCookie)("".concat(o.Avz.SET_UP_NOW,"_").concat(f),null==b?void 0:b.page_keyword),P)return window.location.href=P;if(L){let e="".concat(t,"/").concat(null==b?void 0:b.page_keyword);return window.history.pushState({path:e},"",e),T(L)}C(!1),p.oR.error((null==k?void 0:k.message)||"An error occurred while processing your payment.")},[M]),Z=()=>{C(!1),D(!1),E({isConfirmation:!0,paymentStatus:o.QZ2.SUCCESS})};return(0,v.useEffect)(()=>{var e,l,t,n,i,o;(null==R?void 0:R.contact)&&L({billing_first_name:null==R?void 0:null===(e=R.contact)||void 0===e?void 0:e.first_name,billing_last_name:null==R?void 0:null===(l=R.contact)||void 0===l?void 0:l.last_name,billing_address:null==R?void 0:null===(t=R.contact)||void 0===t?void 0:t.street,billing_postal_code:null==R?void 0:null===(n=R.contact)||void 0===n?void 0:n.postal_code,billing_city:null==R?void 0:null===(i=R.contact)||void 0===i?void 0:i.city,billing_region:null==R?void 0:null===(o=R.contact)||void 0===o?void 0:o.region,billing_country:null==N?void 0:N.find(e=>{var l;return e.value===(null==R?void 0:null===(l=R.contact)||void 0===l?void 0:l.country_code)}),billing_state:null==j?void 0:j.find(e=>{var l;return e.value===(null==R?void 0:null===(l=R.contact)||void 0===l?void 0:l.state_code)})})},[R]),(0,v.useEffect)(()=>(E({btnNext:o.w8x.PAYMENT}),()=>{E({btnNext:o.w8x.NEXT})}),[]),(0,r.gs)({open:F,gatewayKey:null==M?void 0:M.gateway_key,appleGatewayKey:o.OZN.PAYPAL_APPLEPAY,googleGatewayKey:o.OZN.PAYPAL_GOOGLEPAY,pendingRef:q,appleRef:z,googleRef:H,setButtonReady:B,submitApple:(e,l,t)=>e.submit(l,t),submitGoogle:(e,l,t)=>e.submit(l,t)}),(0,v.useEffect)(()=>
1{if(G){["paypal-wallet-sdk"].forEach(e=>{let l=document.getElementById(e);l&&l.remove()});let e=document.createElement("script");e.id="paypal-wallet-sdk",e.src=G,e.async=!0,e.defer=!0,document.body.appendChild(e)}},[G]),(0,n.jsxs)(n.Fragment,{children:[G&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.default,{id:"apple-pay-sdk",src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",strategy:"afterInteractive"}),(0,n.jsx)(_.default,{id:"google-pay-sdk",src:"https://pay.google.com/gp/p/js/pay.js",strategy:"afterInteractive"})]}),(0,n.jsxs)("div",{className:"grid *:mt-3 lg:*:mt-10 first:*:mt-0 *:px-4 *:py-5 lg:*:p-8 *:bg-white lg:*:rounded-xl lg:*:shadow-31",children:[(0,n.jsx)(i.Zg,{t:w,isLoading:y,paymentGateways:k,currentPaymentGateway:M,setCurrentPaymentGateway:I,classNameHeading:"text-24 font-bold capitalize font-secondary mb-5 lg:mb-3"}),[o.OZN.PAYPAL_DIRECT,o.OZN.CYBERSOURCE,o.OZN.AMEX].includes(null==M?void 0:M.gateway_key)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.T8,{effect:"fadeInMount",children:(0,n.jsx)(i.GZ,{t:w,isImagePartner:!0,isLoading:y,classNameLabel:"text-14",classNameWrapper:"lg:gap-3",errorsPayment:S,ref:U,classNameHeading:"text-24 font-bold capitalize font-secondary mb-5 lg:mb-3",paymentMethod:null==M?void 0:M.gateway_key})}),(0,n.jsx)(i.T8,{effect:"fadeIn",children:(0,n.jsx)(i.eF,{t:w,isSetupNow:!0,isLoading:y,classNameLabel:"text-14",listAllState:j,defaultValue:P,listCountries:N,errorsPayment:S,ref:Y,classNameWrapper:"lg:gap-y-3 lg:gap-x-5",classNameHeading:"text-24 font-bold capitalize font-secondary mb-5 lg:mb-3"})})]}):(null==M?void 0:M.gateway_key)?(0,n.jsx)(i.T8,{effect:"fadeIn",isShow:(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_CHECKOUT||(null==M?void 0:M.gateway_key)===o.OZN.BANK_TRANSFER,children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_CHECKOUT&&w.txt_one_ibc_method_paypal_key||(null==M?void 0:M.gateway_key)===o.OZN.BANK_TRANSFER&&w.txt_one_ibc_method_bank_transfer},className:"text-14 lg:text-16"})}):(0,n.jsx)(i.eI,{}),A&&(0,n.jsxs)(i.T8,{effect:"easeInSideOut",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary pb-4",children:null==w?void 0:w.txt_order_summary_info}),(0,n.jsx)(x.x7,{})]})]}),(0,n.jsxs)(c.aF,{open:F,onClose:()=>{D(!1),C(!1)},closeOnBackdropClick:!0,closeOnEsc:!0,className:"transition-all duration-200",contentClassName:"flex flex-col items-center",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 mb-6",children:[(0,n.jsx)("h3",{className:"text-xl lg:!text-2xl font-semibold text-center",children:(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_APPLEPAY?null==w?void 0:w.txt_complete_with_apple_pay:null==w?void 0:w.txt_complete_with_google_pay}),(0,n.jsx)("p",{className:"text-14 text-center max-w-[320px]",children:(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_APPLEPAY?null==w?void 0:w.txt_securely_using_apple_pay:null==w?void 0:w.txt_securely_using_google_pay})]}),!K&&(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 w-full py-8","aria-live":"polite","aria-busy":"true",children:[(0,n.jsx)(u.VO,{className:"w-10 h-10 animate-spin text-primary","aria-hidden":!0}),(0,n.jsx)("p",{className:"text-14",children:"Preparing secure payment..."}),(0,n.jsx)("div",{className:"h-[57px] w-full max-w-[328px] rounded-xl bg-gray-12 animate-pulse"})]}),(0,n.jsxs)("div",{className:(0,d.cn)("flex flex-col items-center gap-4 w-full transition-opacity duration-300",!K&&"absolute opacity-0 pointer-events-none"),children:[(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_APPLEPAY&&(0,n.jsx)(i.Nv,{ref:z,currency:(null==M?void 0:M.merchant_currency)||"",onSuccess:Z,onReady:()=>B(!0),onError:e=>{C(!1),D(!1),p.oR.error(e.message)},onCancel:()=>{C(!1),D(!1)},lang:h}),(null==M?void 0:M.gateway_key)===o.OZN.PAYPAL_GOOGLEPAY&&(0,n.jsx)(i.K8,{lang:h,ref:H,currency:(null==M?void 0:M.merchant_currency)||"",onSuccess:Z,onReady:()=>B(!0),onError:e=>{C(!1),D(!1),p.oR.error(e.message)},onCancel:()=>{C(!1),D(!1)}}),(0,n.jsx)(c.$n,{type:"button",variant:"outline-black",className:"w-full mt-1 h-12",onClick:()=>{D(!1),C(!1)},children:null==w?void 0:w.txt_cancel})]})]})]})})},6280:(e,l,t)=>{"use strict";t.d(l,{b:()=>r,X:()=>d});var n=t(38694),i=t(93220),o=t(8256),a=t(45734);let r=(0,a.memo)(()=>{var e;let{configOrder:l,listBusinessActivities:t,listNationality:r,listTaxPurposes:s,listOtherDemands:c}=(0,a.useContext)(i.w_),{orderStore:u}=(0,o.Fc)(),m=(0,a.useMemo)(()=>{var e;return null==u?void 0:null===(e=u.ai_recommendation)||void 0===e?void 0:e.ai_request},[null==u?void 0:null===(e=u.ai_recommendation)||void 0===e?void 0:e.ai_request]),_=(0,a.useMemo)(()=>null==t?void 0:t.find(e=>e.ai_ba_id==(null==m?void 0:m.business_activity_id)),[null==m?void 0:m.business_activity_id]),v=(0,a.useMemo)(()=>null==r?void 0:r.find(e=>e.country_code==(null==m?void 0:m.owner_nationality_code)),[null==m?void 0:m.owner_nationality_code]),p=(0,a.useMemo)(()=>null==s?void 0:s.find(e=>e.tp_id==(null==m?void 0:m.tax_purposes_id)),[null==m?void 0:m.tax_purposes_id]),x=(0,a.useMemo)(()=>null==c?void 0:c.filter(e=>{var l;return null==m?void 0:null===(l=m.other_demand_ids)||void 0===l?void 0:l.includes(e.ai_od_id)}),[null==m?void 0:m.other_demand_ids]),h=(0,a.useMemo)(()=>null==m?void 0:m.description,[null==m?void 0:m.description]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"first:*:border-none first:*:pt-0 *:border-t *:border-gray-23 *:pt-4",children:[(0,n.jsx)(d,{open:!!_,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==l?void 0:l.txt_business_activity}),(0,n.jsx)("p",{className:"rounded-md border border-red-24 bg-red-25 text-12 text-red-26 w-fit p-2 font-medium",children:null==_?void 0:_.label})]})}),(0,n.jsx)(d,{open:!!v||!!p,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==l?void 0:l.txt_business_information}),v&&(0,n.jsxs)("p",{className:"text-14",children:[null==l?void 0:l.lbl_order_nationality,": ",(0,n.jsx)("span",{className:"font-semibold",children:null==v?void 0:v.label})]}),p&&(0,n.jsxs)("p",{className:"text-14",children:[null==l?void 0:l.txt_tax_preference,": ",(0,n.jsx)("span",{className:"font-semibold",children:null==p?void 0:p.label})]})]})}),(0,n.jsx)(d,{open:!!(null==x?void 0:x.length),children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==l?void 0:l.txt_order_title_other_demands}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:null==x?void 0:x.map(e=>(0,n.jsx)("p",{className:"rounded-md border border-gray-62 w-fit p-2 text-12 font-medium",children:null==e?void 0:e.ai_od_name},"demand-".concat(null==e?void 0:e.ai_od_id)))})]})}),(0,n.jsx)(d,{open:!!(null==h?void 0:h.length),children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==l?void 0:l.txt_business_description}),(0,n.jsx)("div",{className:"p-3 bg-gray-61 text-14",children:h})]})})]})})});r.displayName="AiPanelSummary";var s=t(2508);let d=(0,a.memo)(e=>{let{open:l,children:t}=e;return(0,n.jsx)("div",{className:(0,s.cn)("transition-all duration-100",l?"mt-4":"overflow-hidden h-0 !pt-0 !border-none"),children:t})});d.displayName="AiSummaryLine"},7012:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ApplePayButton:()=>d});var n=t(38694),i=t(27321),o=t.n(i),a=t(2508),r=t(45734);let s="One IBC Limited",d=(0,r.forwardRef)(function(e,l){let{currency:t,onSuccess:i,onError:d,onCancel:c,onReady:u,disabled:m,className:_,lang:v}=e;(0,r.useImperativeHandle)(l,()=>({submit:(e,l)=>{e&&(j.current=e),l&&(N.current=l)}}));let[p,x]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),g=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(()=>void 0),j=(0,r.useRef)(""),N=(0,r.useRef)(""),w=(0,r.useRef)(i),k=(0,r.useRef)(d),S=(0,r.useRef)(c);return w.current=i,k.current=d,S.current=c,(0,r.useEffect)(()=>{let e;if(b.current)return;let l=!1,t=!1,n=async()=>{var i,o,a;if(!l&&!b.current){if(!window.ApplePaySession||!(null===(i=window.paypal)||void 0===i?void 0:i.Applepay)){e=setTimeout(n,200);return}try{let e=await window.paypal.Applepay().config();if(l)return;if(!e.isEligible){t=!0,null===(o=k.current)||void 0===o||o.call(k,Error("Apple Pay is not available on this device/browser."));return}b.current=e,x(!0),null==u||u(),t=!0}catch(e){console.error("[ApplePay] config() error:",e),t=!0,null===(a=k.current)||void 0===a||a.call(k,e instanceof Error?e:Error("Apple Pay initialization failed"))}}};n();let i=setTimeout(()=>{if(l=!0,!t&&!b.current){var e;null===(e=k.current)||void 0===e||e.call(k,Error("Apple Pay SDK initialization timed out"))}},1e4);return()=>{l=!0,clearTimeout(e),clearTimeout(i)}},[]),(0,r.useEffect)(()=>{let e=g.current;
1if(!p||!e)return;e.innerHTML='<apple-pay-button id="btn-applepay" buttonstyle="black" type="pay" locale='.concat(v,"></apple-pay-button>");let l=e.querySelector("#btn-applepay");if(!l)return;let t=()=>y.current();return l.addEventListener("click",t),()=>l.removeEventListener("click",t)},[p]),y.current=async()=>{let e=b.current,l=window.ApplePaySession;if(h||!e||!l||m||!j.current||!N.current)return;f(!0);let n={countryCode:e.countryCode,currencyCode:t,merchantCapabilities:e.merchantCapabilities,supportedNetworks:e.supportedNetworks,requiredShippingContactFields:[],requiredBillingContactFields:["postalAddress"],total:{label:s,type:"final",amount:j.current}},i=null;try{(i=new l(4,n)).onvalidatemerchant=async e=>{try{let l=await window.paypal.Applepay().validateMerchant({validationUrl:e.validationURL,displayName:s});null==i||i.completeMerchantValidation(null==l?void 0:l.merchantSession)}catch(e){var l;null==i||i.abort(),f(!1),null===(l=k.current)||void 0===l||l.call(k,e instanceof Error?e:Error("Merchant validation failed"))}},i.onpaymentauthorized=async e=>{var t,n;try{await window.paypal.Applepay().confirmOrder({orderId:N.current,token:e.payment.token,billingContact:e.payment.billingContact}),null==i||i.completePayment(l.STATUS_SUCCESS),f(!1),null===(t=w.current)||void 0===t||t.call(w)}catch(e){null==i||i.completePayment(l.STATUS_FAILURE),f(!1),null===(n=k.current)||void 0===n||n.call(k,e instanceof Error?e:Error("Payment authorization failed"))}},i.oncancel=()=>{var e;f(!1),null===(e=S.current)||void 0===e||e.call(S)},i.begin()}catch(e){var o;try{null==i||i.abort()}catch(e){f(!1)}f(!1),null===(o=k.current)||void 0===o||o.call(k,e instanceof Error?e:Error("Failed to start Apple Pay session"))}},(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsx)("div",{ref:g,style:{width:"100%"},"aria-label":"Apple Pay","aria-disabled":h||m,className:"jsx-ca1452ddc4e7942d "+((0,a.cn)((h||m)&&"pointer-events-none p-0 opacity-60",_)||"")}),(0,n.jsx)(o(),{id:"ca1452ddc4e7942d",children:"apple-pay-button{--apple-pay-button-width:100%;--apple-pay-button-height:57px;--apple-pay-button-border-radius:12px;--apple-pay-button-box-sizing:content-box}@media(max-width:768px){apple-pay-button{--apple-pay-button-height:54px}}"})]})})},7099:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InputSelectFill:()=>o});var n=t(38694),i=t(94131);let o=e=>{let{errorMessage:l,className:t,name:o,register:a,rules:r,classNameInput:s,classNameError:d,id:c,nameLabel:u,autocomplete:m,placeholder:_,isRequired:v=!0,classNameLabel:p,control:x,listOption:h,defaultValueOption:f,nameSelect:g,classNamePosition:b,...y}=e,j=a&&o?a(o,r):null;return(0,n.jsxs)("div",{className:t,"data-te-input-wrapper-init":!0,children:[(0,n.jsxs)("div",{className:"relative flex flex-col-reverse gap-1",children:[(0,n.jsxs)("div",{className:"".concat(b||""," relative"),children:[(0,n.jsx)("input",{className:"".concat(s||""," pl-24 border-gray-5 appearance-none focus:outline-none focus:ring-0 border\n w-full rounded-lg h-10 p-[10px] placeholder:text-14 placeholder:text-gray-1 ").concat(l?"border-red-1":""),...j,...y,id:c,placeholder:_||" ",autoComplete:m}),(0,n.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 left-1",children:(0,n.jsx)(i.InputSelect,{id:g,name:g,isRequired:!1,control:x,option:h,className:"",defaultValue:f,controlStyle:{border:"none",borderRight:"1px solid #CFCFCF",backgroundColor:"none",borderRadius:"0",":hover":{border:"none",borderRight:"1px solid #CFCFCF"},minWidth:"86px"}})})]}),(0,n.jsx)("label",{htmlFor:c,className:"".concat(p||""," ").concat(v&&"label-primary"," text-14 font-normal leading-1-2 text-black-2"),children:u})]}),l&&(0,n.jsx)("div",{className:d,children:l})]})}},7757:(e,l,t)=>{"use strict";t.r(l),t.d(l,{WhatsAppChat:()=>_});var n=t(38694),i=t(48873),o=t(69054),a=t(2508),r=t(42500),s=t(17671),d=t(36791),c=t.n(d),u=t(45734),m=t(93220);let _=()=>{let[e,l]=(0,u.useState)(!1),{configGlobal:t,device:d,pageKeyword:_}=(0,u.useContext)(m.BR),{listLiveChat:v}=(0,o.rZ)(),p=d===i.kyb.MOBILE,x=(0,u.useMemo)(()=>null==v?void 0:v.find(e=>"WhatsApp"==e.chat_name),[v]),h=(0,u.useMemo)(()=>
1{if(!(null==x?void 0:x.chat_link))return(null==x?void 0:x.chat_link)||"";let e=Object.fromEntries(Object.keys(i.aS3).map(e=>[e,String((0,s.getCookie)("__data_ads_".concat(e))||"")])),l=sessionStorage.getItem(i.JmY.EXTERNAL_REFERRER)||"";return(0,a.Cs)(x.chat_link,JSON.stringify({...(0,a.QG)(e,l),referral:l}),(null==t?void 0:t.txt_whatsapp_chat_message)||"")},[null==x?void 0:x.chat_link,null==t?void 0:t.txt_whatsapp_chat_message]);return((0,u.useEffect)(()=>{p||_||l(!0)},[]),t&&v)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"fixed bottom-[100px] md:!bottom-[160px] right-4 md:!right-[30px] flex flex-col items-end z-10 w-full max-w-[330px] opacity-95",children:(0,n.jsx)("div",{className:(0,a.cn)("grid overflow-hidden transition-all duration-500 w-full rounded-lg shadow-2",e?"grid-rows-[1fr] mb-2":"grid-rows-[0fr]"),children:(0,n.jsxs)("div",{className:"min-h-0 overflow-hidden flex flex-col",children:[(0,n.jsxs)("div",{className:"relative px-6 py-3 bg-white border-b border-gray-4",children:[(0,n.jsx)("h3",{className:"text-18 font-bold text-black",children:null==t?void 0:t.txt_our_expert}),(0,n.jsx)("p",{className:"text-14 font-medium text-black",children:null==t?void 0:t.txt_whatsapp_chat_subtitle}),(0,n.jsx)("p",{className:"absolute top-3 right-3 h-4 w-4 cursor-pointer flex flex-col items-center justify-center",onClick:()=>l(!1),title:"Close chat",children:(0,n.jsx)(r.US,{className:"w-3 h-3 fill-black"})})]}),(0,n.jsx)("div",{className:"min-h-[180px] md:!min-h-[230px] p-6 bg-white overflow-hidden relative",children:(0,n.jsxs)("p",{className:'bg-gray p-2 rounded relative z-[2] max-w-[260px] text-16 text-black leading-1-6 before:absolute before:content-[""] before:w-[9px] before:h-[18px] before:top-0 before:right-[92%] before:border-l-[15px] before:border-r-[15px] before:border-t-[15px] before:border-l-transparent before:border-r-transparent before:border-t-gray',children:["\uD83D\uDC4B ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.txt_whatsapp_chat_message}})]})}),(0,n.jsxs)("div",{className:"px-6 py-2.5 flex flex-col items-center justify-center gap-2 md:!gap-4 bg-white",children:[(0,n.jsxs)(c(),{title:(null==x?void 0:x.chat_name)||"",href:h,target:"_blank",className:"rounded-full flex items-center justify-center gap-3 bg-[#25D366] py-[9px] w-full text-16 text-white",children:[(0,n.jsx)(r.mr,{className:"w-5 h-5"}),(null==x?void 0:x.chat_name)||""]}),(0,n.jsx)("p",{className:"text-12 text-[#58595e]",children:null==t?void 0:t.txt_whatsapp_chat_popup_footer})]})]})})}),(0,n.jsx)("button",{className:"w-10 md:!w-[64px] h-10 md:!h-[64px] rounded-full bg-[#25D366] inline-flex flex-col items-center justify-center z-10 fixed bottom-[60px] md:!bottom-[100px] right-4 md:!right-[30px]",onClick:()=>l(!e),title:(null==x?void 0:x.chat_name)||"",children:(0,n.jsx)(r.mr,{className:"w-6 h-6 md:!w-10 md:!h-10"})})]}):null}},8256:(e,l,t)=>{"use strict";t.d(l,{kj:()=>r,HQ:()=>o,pK:()=>s,Fc:()=>d}),t(29947);var n=t(80272),i=t(60472);let o=(0,n.v)()((0,i.Zr)(e=>({userInfo:{},updateUser:l=>e({userInfo:l}),user_id:0,updateUserId:l=>e({user_id:l})}),{name:"user-info"}));var a=t(2508);let r=(0,n.v)()((0,i.Zr)(e=>({captureCallbackData:{},updateCaptureCallbackData:l=>e({captureCallbackData:l||{}})}),{name:"call-back-data",storage:a.oO})),s=(0,n.v)()((0,i.Zr)(e=>({dataMakePayment:{},updateMakePayment:l=>e({dataMakePayment:l})}),{name:"make-payment",storage:a.oO})),d=(0,n.v)()((0,i.Zr)(e=>({orderStore:void 0,dataOrderPayment:void 0,updateOrderStore:l=>e(e=>({orderStore:{...e.orderStore,...l}})),updateStartBusinessStore:l=>e(e=>{var t;return{orderStore:{...e.orderStore,start_business:{...null===(t=e.orderStore)||void 0===t?void 0:t.start_business,...l}}}}),updatePackageStore:l=>e(e=>{var t;return{orderStore:{...e.orderStore,package_of_service:{...null===(t=e.orderStore)||void 0===t?void 0:t.package_of_service,...l}}}}),updateCompanyDetails:l=>e(e=>{var t;return{orderStore:{...e.orderStore,company_details:{...null===(t=e.orderStore)||void 0===t?void 0:t.company_details,...l}}}}),updateRecommendService:l=>e(e=>{var t;return{orderStore:{...e.orderStore,recommend_service:{...null===(t=e.orderStore)||void 0===t?void 0:t.recommend_service,...l}}}}),updateAiRecommendation:l=>e(e=>{var t;return{orderStore:{...e.orderStore,ai_recommendation:{...null===(t=e.orderStore)||void 0===t?void 0:t.ai_recommendation,...l}}}}),clearOrderStore:()=>e({orderStore:{}})}),{name:"order-store-v2",storage:a.oO}))},9220:(e,l,t)=>{"use strict";t.d(l,{I:()=>n.OtpInput});var n=t(97709)},9889:(e,l,t)=>{"use strict";t.d(l,{M:()=>n.HeaderMobile});var n=t(21563);t(87405)},10499:(e,l,t)=>{"use strict";t.r(l),t.d(l,{WhatApp:()=>c});var n=t(38694),i=t(69054),o=t(74323),a=t(36791),r=t.n(a),s=t(45734),d=t(93220);let c=()=>{let{configGlobal:e}=(0,s.useContext)(d.BR),{listLiveChat:l}=(0,i.rZ)(),t=(0,s.useMemo)(()=>null==l?void 0:l.find(e=>"WhatsApp"==e.chat_name),[l]);return e&&l?(0,n.jsx)("div",{className:"block fixed z-[5]",id:"icon-what-app",children:(0,n.jsx)(r(),{title:(null==t?void 0:t.chat_name)||"",href:(null==t?void 0:t.chat_link)||"",target:"_blank",children:(0,n.jsx)(o.default,{src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-whatapp-1761101872.svg",alt:(null==e?void 0:e.txt_footer_chat_now_title)||"",title:null==e?void 0:e.txt_footer_chat_now_title,width:56,height:56})})}):null}},10585:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Toaster:()=>o});var n=t(38694),i=t(46561);let o=e=>{let{...l}=e;return(0,n.jsx)(i.l$,{richColors:!0,position:"top-right",...l})}},10740:(e,l,t)=>{"use strict";t.d(l,{v:()=>n.OptCheckbox});var n=t(35565)},14443:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ExpandYourBusiness:()=>m});var n=t(38694),i=t(29432),o=t(93220),a=t(48873),r=t(94674),s=t(74323),d=t(36791),c=t.n(d),u=t(45734);let m=e=>{let{typesBusiness:l}=e,{langLocationSlashed:t,configGlobal:d,siteKeywords:m}=(0,u.useContext)(o.BR);return(0,n.jsx)("div",{className:"grid gap-10 lg:!gap-20",children:null==l?void 0:l.map((e,l)=>{var o,u,_;return(0,n.jsxs)(i.T8,{effect:"fadeInUp",className:"flex flex-col lg:!flex-row gap-10 lg:!gap-20 even:lg:!flex-row-reverse",children:[(0,n.jsx)(c(),{href:"".concat(t,"/").concat(m[a.vl8],"/").concat(null==e?void 0:e.type_keyword),title:null==e?void 0:e.type_name,className:"flex-1",children:(0,n.jsx)(s.default,{src:(null==e?void 0:e.type_icon)||"",alt:(null==e?void 0:e.type_name)||"",title:(null==e?void 0:e.type_name)||"",width:"600",height:"332",className:"rounded-xl object-cover border-2 border-black-2 shadow-1 w-[343px] h-[208px] lg:!w-[600px] lg:!h-[332px]"})}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)(c(),{href:"".concat(t,"/").concat(m[a.vl8],"/").concat(null==e?void 0:e.type_keyword),title:null==e?void 0:e.type_name,className:"text-24 lg:!text-32 font-bold",children:null==e?void 0:e.type_name}),(0,n.jsx)("p",{className:"text-16 mt-2",children:null==e?void 0:e.type_summary}),(0,n.jsx)("div",{className:"flex justify-start mt-10",children:(0,n.jsx)(r.$n,{href:"".concat(t,"/").concat(m[a.vl8],"/").concat(null==e?void 0:e.type_keyword),title:null==d?void 0:d.btn_viewmore,size:"xl",className:"text-md font-semibold",children:null==d?void 0:d.btn_viewmore})}),(0,n.jsx)("div",{className:"flex flex-wrap gap-5 mt-5",children:(null==e?void 0:null===(o=e.article_list)||void 0===o?void 0:o.length)?null==e?void 0:null===(u=e.article_list)||void 0===u?void 0:u.map((e,l)=>(0,n.jsx)(r.$n,{href:"".concat(t,"/").concat(m[a.vl8],"/").concat(null==e?void 0:e.article_keyword),title:null==e?void 0:e.article_name,size:"xl",variant:"outline-black",className:"text-md font-semibold",children:null==e?void 0:e.article_name},l)):null==e?void 0:null===(_=e.child)||void 0===_?void 0:_.map((e,l)=>(0,n.jsx)(r.$n,{href:"".concat(t,"/").concat(m[a.vl8],"/").concat(null==e?void 0:e.type_keyword),title:null==e?void 0:e.type_name,size:"xl",variant:"outline-black",className:"text-md font-semibold",children:null==e?void 0:e.type_name},l))})]})]},l)})})}},14693:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepOrderReview:()=>_});var n=t(38694),i=t(29432),o=t(64646),a=t(8256),r=t(2508),s=t(94674),d=t(83924),c=t(45734),u=t(29722),m=t(46561);let _=(0,c.forwardRef)(function(e,l){(0,c.useImperativeHandle)(l,()=>({onSubmit:w}));let{configOrder:t,isLoading:_,handleNextStep:v,setIsLoading:p,updateContextValue:x}=(0,c.useContext)(i.w_),{orderStore:h,updateOrderStore:f,clearOrderStore:g}=(0,a.Fc)(),{control:b,reset:y,trigger:j,getValues:N}=(0,u.mN)({mode:"all",resolver:(0,d.t)((0,r.Sf)(t))}),w=(0,c.useCallback)(async()=>
1{if(_||!await j())return;p(!0);let e=await (0,r.Ji)(),l={order_id:null==h?void 0:h.order_id,gRecaptchaToken:e,url:window.location.href},n=await o.xN.submitOrderReview(l),i=(0,o.jN)(n);if(!(null==n?void 0:n.success)&&(m.oR.error((null==n?void 0:n.message)||(null==t?void 0:t.txt_toaster_failed_common)),i&&x({errors:i}),(null==n?void 0:n.statusCode)==r.kG.NotFound)){g(),window.location.reload();return}(null==n?void 0:n.data)&&k(n.data),p(!1)},[_]),k=(0,c.useCallback)(e=>{v(),p(!1),x({errors:{}}),f({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code,contact:{...null==h?void 0:h.contact,confirm_terms:N("confirm_terms")}})},[]),S=(0,c.useMemo)(()=>null==h?void 0:h.contact,[null==h?void 0:h.contact]);return(0,c.useEffect)(()=>(x({isSummaryPanel:!1}),()=>{x({isSummaryPanel:!0})}),[]),(0,c.useEffect)(()=>{S&&y({confirm_terms:null==S?void 0:S.confirm_terms})},[S]),(0,n.jsxs)("div",{className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 lg:text-32 font-bold font-secondary pb-4 lg:pb-3 border-b border-gray-23 text-center",children:null==t?void 0:t.txt_order_title_summary}),(0,n.jsx)(i.BD,{isOrderReview:!0}),(0,n.jsx)("div",{className:"mt-5 lg:mt-8 grid gap-3",children:(0,n.jsx)(s.oV,{control:b,disabled:_,name:"confirm_terms",classNameError:"text-xs",classNameLabel:"text-14 ml-3",nameLabel:null==t?void 0:t.txt_order_terms_and_conditions,defaultChecked:null==S?void 0:S.confirm_terms})})]})})},15109:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CookieConsentGlobal:()=>u});var n=t(38694),i=t(69054),o=t(29947),a=t(2508),r=t(36791),s=t.n(r),d=t(50280),c=t(45734);let u=e=>{var l;let{t}=e,r=(0,a.Ol)(null==t?void 0:t.txt_schema_cookie_out_eea),[u,m]=(0,c.useState)(!0),{updateConsentCookie:_}=(0,o.A)(),v=(0,i.qK)(),p=(0,d.useSelectedLayoutSegment)();(0,i.GU)("cookie-setting",()=>m(!1));let x=v&&(null===(l=window.localStorage)||void 0===l?void 0:l.getItem("accept-cookies"));return((0,c.useEffect)(()=>{let e=setTimeout(()=>{m(!!x),clearTimeout(e)},1e3);return()=>clearTimeout(e)},[x,v]),u||"(single)"===p)?null:(0,n.jsxs)("div",{className:"fixed bottom-0 left-0 z-[9999] h-auto w-full bg-white p-[16px] shadow-[0px_2px_4px_0px_rgba(241,46,54,0.15),0px_0px_20px_0px_rgba(241,46,54,0.10)] md:!bottom-4 md:!left-4 md:!w-[330px] md:!rounded-2xl md:!p-6",children:[(0,n.jsxs)("p",{className:"mb-4 text-14 leading-1-5 text-black-2 md:!mb-[23px] md:!text-16",children:[null==r?void 0:r.txt_cookie_out_eea,(0,n.jsx)(s(),{href:null==r?void 0:r.href_cookie_policy,title:"Cookie Policy",target:"_self",className:"text-red-6 ml-1",children:null==r?void 0:r.txt_learn_more})]}),(0,n.jsx)("button",{className:"mx-auto my-0 block w-full rounded-[30px] border border-red-6 bg-red-6 p-[13px] text-center text-base font-bold not-italic leading-1-5 text-white transition-all duration-200 hover:bg-white hover:text-red-6",onClick:()=>{localStorage.setItem("accept-cookies","true"),m(!0),_({necessary:!0,preferences:!0,statistics:!0,markets:!0})},children:null==r?void 0:r.txt_continue})]})}},15321:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepChoosePackage:()=>p});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(83924),u=t(45734),m=t(29722),_=t(46561),v=t(61142);let p=(0,u.memo)((0,u.forwardRef)(function(e,l){(0,u.useImperativeHandle)(l,()=>({onSubmit:U,onBack:Y}));let{isLoading:t,configOrder:p,listTypeOfService:x,errors:h,getPackages:f,setIsLoading:g,handleBackStep:b,handleNextStep:y,updateContextValue:j}=(0,u.useContext)(i.w_),{orderStore:N,updatePackageStore:w,updateOrderStore:k,clearOrderStore:S}=(0,s.Fc)(),C=(0,u.useRef)(null),E=(0,u.useMemo)(()=>null==N?void 0:N.start_business,[null==N?void 0:N.start_business]),R=(0,u.useMemo)(()=>null==x?void 0:x.find(e=>e.category_id==(null==E?void 0:E.type_of_service)),[null==E?void 0:E.type_of_service]),O=(0,u.useMemo)(()=>null==N?void 0:N.package_of_service,[null==N?void 0:N.package_of_service]),{reset:T,trigger:A,setError:M,register:I,setValue:P,getValues:L,control:F}=(0,m.mN)({mode:"all",resolver:(0,c.t)((0,d.DF)(p,null==R?void 0:R.category_id))}),D=(0,u.useCallback)(async()=>{var e,l;if(t||!(await Promise.all([A(),null===(l=C.current)||void 0===l?void 0:null===(e=l.onSubmit)||void 0===e?void 0:e.call(l)])).every(e=>!1!==e))return;g(!0);let n=await (0,d.Ji)(),i={order_id:null==N?void 0:N.order_id,...O,gRecaptchaToken:n,url:window.location.href},o=await a.xN.submitChoosePackage(i),r=(0,a.jN)(o);if(!(null==o?void 0:o.success)&&(_.oR.error((null==o?void 0:o.message)||(null==r?void 0:r.order_id)||(null==p?void 0:p.txt_toaster_failed_common)),r&&j({errors:r}),(null==o?void 0:o.statusCode)==d.kG.NotFound)){S(),window.location.reload();return}(null==o?void 0:o.data)&&K(null==o?void 0:o.data),g(!1)},[t,O]),K=(0,u.useCallback)(e=>{y(),j({errors:{}}),k({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code})},[]),B=(0,u.useMemo)(()=>{var e,l,t;return f({categoryId:null==R?void 0:R.category_id,productType:o.Vo0.SERVICE_FEE,LegalEntityId:(null==N?void 0:null===(e=N.start_business)||void 0===e?void 0:e.business_type)===o.e8W.FORM_A_BUSINESS?null==E?void 0:E.legal_entity_id:void 0,stateCode:(null==N?void 0:null===(l=N.start_business)||void 0===l?void 0:l.business_type)===o.e8W.FORM_A_BUSINESS?null==N?void 0:null===(t=N.start_business)||void 0===t?void 0:t.jurisdiction_state_code:""})},[R]),G=(0,u.useMemo)(()=>null!=B&&!!B.find(e=>e.product_is_upgrade==o.cSK.YES&&e.product_id==(null==O?void 0:O.product_id)),[B,O]),U=(0,u.useCallback)(async()=>{j({isUpgradePackage:G}),D()},[G,D]),Y=(0,u.useCallback)(async()=>{b(),k({package_of_service:void 0})},[]),z=(0,u.useCallback)((e,l)=>Object.fromEntries(e.map(e=>[e,l])),[]),H=(0,u.useMemo)(()=>({[o.Rj3.TAXATION]:(0,n.jsx)(v.Zp,{listMainPackage:B,register:I}),[o.Rj3.ACCOUNTING]:(0,n.jsx)(v.ns,{listMainPackage:B,control:F}),[o.Rj3.PAYROLL]:(0,n.jsx)(v.mD,{control:F,trigger:A,setValue:P,getValues:L,listMainPackage:B}),...z([o.Rj3.HK_COMPANY_FORMATION,o.Rj3.SG_COMPANY_FORMATION,o.Rj3.US_COMPANY_FORMATION,o.Rj3.VN_COMPANY_FORMATION],(0,n.jsx)(v.UH,{listMainPackage:B,control:F})),...z([o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT],(0,n.jsx)(v.gg,{listMainPackage:B,control:F})),...z([o.Rj3.HK_TRADEMARK,o.Rj3.TRADEMARK,o.Rj3.SG_TRADEMARK,o.Rj3.VN_TRADEMARK],(0,n.jsx)(v.cR,{control:F,setValue:P,getValues:L,listMainPackage:B})),...z([o.Rj3.HK_NOMINEE,o.Rj3.SG_NOMINEE],(0,n.jsx)(v.UX,{control:F,setValue:P,getValues:L,typeOfService:null==R?void 0:R.category_id})),...z([o.Rj3.HK_MERCHANT_ACCOUNT,o.Rj3.SG_MERCHANT_ACCOUNT],(0,n.jsx)(v.yQ,{listMainPackage:B,control:F})),...z([o.Rj3.HK_SERVICE_OFFICE,o.Rj3.SG_SERVICE_OFFICE],(0,n.jsx)(v._u,{listMainPackage:B,control:F}))}),[]);return(0,r.VT)(M,h),(0,u.useEffect)(()=>{var e;if(!R||R.category_id==o.Rj3.TRADEMARK)return T({product_id:void 0});let l=(null==O?void 0:O.product_id)||(null==B?void 0:null===(e=B.find(e=>e.product_is_default==o.cSK.YES))||void 0===e?void 0:e.product_id);L("product_id")!=l&&(T({product_id:l}),w({product_id:l}))},[R]),(0,n.jsx)("div",{className:"lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:H[null==R?void 0:R.category_id]})}))},15499:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InputCardNumber:()=>r});var n=t(38694),i=t(2508),o=t(74323),a=t(45734);let r=e=>{let{errorMessage:l,className:t,classNameInput:r,classNameError:s="absolute -bottom-5 left-0",id:d,register:c,name:u,nameLabel:m,classNameLabel:_,...v}=e,[p,x]=(0,a.useState)(""),[h,f]=(0,a.useState)(null),g=c?c(u):null,b=e=>{let l=e.target.value,t=e.target.selectionStart||0,n=(0,i.jd)(l);if(n.length<=19){x(n);let e=t;" "===l[t-1]&&t<=n.length?e=t-1:" "===n[t]&&(e=t+1),f(e)}},y=e=>{null!==h&&(e.target.setSelectionRange(h,h),f(null))};return(0,n.jsx)("div",{className:t,children:(0,n.jsxs)("div",{className:"flex flex-col relative gap-2",children:[(0,n.jsx)("label",{htmlFor:d,className:(0,i.cn)("text-14 font-semibold text-black",_),children:m}),(0,n.jsxs)("div",{className:"relative rounded-md shadow-sm",children:[(0,n.jsx)("input",{type:"tel",id:"cardNumber",value:p,onBlur:y,onFocus:y,placeholder:"⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠⢠â¢",autoComplete:"cc-number",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false","aria-describedby":"field-description-number",className:(0,i.cn)("text-md text-black border-gray-6 h-13 w-full appearance-none rounded-xl border px-2.5 py-4 placeholder:text-md placeholder:text-placeholder focus:outline-none focus:ring-0",l&&"border-red-1",r),...g,...v,onChange:e=>{b(e),null==g||g.onChange(e)}}),(0,n.jsx)("span",{className:"absolute top-1/2 -translate-y-1/2 right-0 pr-2.5 flex items-center pointer-events-none text-gray-400",children:(0,n.jsx)(o.default,{width:28,height:28,src:"https://d21l9vkgwnizti.cloudfront.net/test_uploads/card-type-one-ibc-1733795514.png",alt:"Card Number",title:"Card Number"})})]}),l&&(0,n.jsx)("div",{className:(0,i.cn)("text-primary text-sm",s),dangerouslySetInnerHTML:{__html:l}})]})})}},16289:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LazyIframe:()=>r});var n=t(38694),i=t(74323),o=t(45734),a=t(93220);let r=e=>{let{children:l,...t}=e,{isCrawl:r}=(0,o.useContext)(a.BR);return r?(0,n.jsxs)("div",{className:"relative w-fit h-fit",children:[(0,n.jsx)(i.default,{...t,src:"https://img.youtube.com/vi/".concat(t.id,"/maxresdefault.jpg"),alt:"Loading..."}),(0,n.jsx)("div",{className:"w-10 h-10 lg:!w-20 lg:!h-20 rounded-full border-2 border-white flex justify-center items-center absolute z-[1] top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"57",viewBox:"0 0 56 57",fill:"none",className:"w-7 h-7 lg:!w-14 lg:!h-14",children:[(0,n.jsx)("rect",{opacity:"0.01",x:"56",y:"56.4999",width:"56",height:"56",transform:"rotate(-180 56 56.4999)",fill:"white"}),(0,n.jsx)("path",{d:"M18.6666 38.3232L18.6666 18.6765C18.6643 17.0935 19.5721 15.6501 20.9999 14.9665C22.6935 14.1666 24.6949 14.402 26.1566 15.5732L38.0566 25.3965C38.9566 26.1765 39.4736 27.3089 39.4736 28.4998C39.4736 29.6908 38.9566 30.8232 38.0566 31.6032L26.1566 41.4265C24.6949 42.5977 22.6935 42.8331 20.9999 42.0332C19.5721 41.3496 18.6643 39.9062 18.6666 38.3232Z",fill:"white"})]})})]}):(0,n.jsx)("iframe",{...t,loading:"lazy",children:l})}},17184:(e,l,t)=>{"use strict";t.r(l),t.d(l,{NextTopLoaderClient:()=>d});var n=t(38694),i=t(50280),o=t(64895),a=t.n(o),r=t(55781),s=t(45734);let d=()=>{let e=(0,i.useRouter)(),l=(0,i.usePathname)();return(0,s.useEffect)(()=>{r.done()},[l,e]),(0,n.jsx)(a(),{color:"#C91F26",initialPosition:.08,crawlSpeed:200,height:4,crawl:!0,showSpinner:!1,easing:"ease",speed:200})}},17627:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DisableDevtoolWrapper:()=>o});var n=t(38694);let i=(0,t(34265).default)(()=>t.e(8225).then(t.bind(t,48225)),{loadableGenerated:{webpack:()=>[48225]},ssr:!1});function o(e){let{children:l}=e;return(0,n.jsx)(i,{children:l})}},17973:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SwiperCard:()=>d});var n=t(38694),i=t(29432),o=t(69054),a=t(2508),r=t(61088),s=t(917);let d=e=>{let{content:l,pagination:t,version:d="swiper-pagination-v1",...c}=e;return(0,o._F)(1024)?(0,n.jsxs)("div",{...c,children:[(0,n.jsx)(s.RC,{slidesPerView:1,spaceBetween:8,pagination:{el:".".concat(t),clickable:!0},modules:[r.dK],className:"!w-full",children:null==l?void 0:l.map((e,l)=>(0,n.jsx)(s.qr,{className:"!w-full *:h-full",children:(0,n.jsx)(i.wR,{html:e})},l))}),(0,n.jsx)("div",{className:(0,a.cn)("flex justify-center mt-5 transition-all duration-300 ease-in",t,d)})]}):(0,n.jsx)("div",{...c,children:null==l?void 0:l.map((e,l)=>(0,n.jsx)(i.wR,{html:e},l))})}},17978:(e,l,t)=>{"use strict";t.d(l,{VJ:()=>o.GroupButtonBottom,Vv:()=>n.HeaderSetupNow,x7:()=>s.x7,mu:()=>a.PackageItem,$S:()=>i.ProcessingBar,LX:()=>g.StepAiHelper,qm:()=>v.StepBoostBusiness,Ak:()=>u.StepChoosePackage,ag:()=>p.StepCompanyDetails,w$:()=>_.StepCompanyMember,Y2:()=>f.StepConfirmation,TH:()=>c.StepContactInfo,dv:()=>m.StepEntityName,pC:()=>x.StepOrderReview,PK:()=>h.StepPayment,Xi:()=>d.StepStartBusiness,Hu:()=>b.StepUpgradePackage,BD:()=>r.Summary,p4:()=>y.SummaryAiHelper}),t(89401);var n=t(94775),i=t(40969),o=t(32589),a=t(83911),r=t(80773),s=t(54343),d=t(77709),c=t(99705),u=t(15321),m=t(460
175),_=t(55543),v=t(88231),p=t(2169),x=t(14693),h=t(5677),f=t(75461),g=t(87143),b=t(76971),y=t(24809)},18914:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SummaryPanelPopup:()=>r});var n=t(38694),i=t(2508),o=t(42500),a=t(45734);let r=(0,a.memo)(e=>{let{open:l,setOpen:t,title:r,children:s}=e;return(0,a.useEffect)(()=>{let e=document.querySelector("body"),t=document.querySelector(".chat-salesforce-img"),n=document.getElementById("popup-chat-now"),i=document.getElementById("icon-what-app");if(!l){null==e||e.classList.remove("overflow-hidden"),null==t||t.classList.remove("hidden"),null==n||n.classList.remove("hidden"),null==i||i.classList.remove("hidden");return}return null==e||e.classList.add("overflow-hidden"),null==t||t.classList.add("hidden"),null==n||n.classList.add("hidden"),null==i||i.classList.add("hidden"),()=>{null==e||e.classList.remove("overflow-hidden"),null==t||t.classList.remove("hidden"),null==n||n.classList.remove("hidden"),null==i||i.classList.remove("hidden")}},[l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,i.cn)("fixed bottom-0 left-0 z-[4] w-full h-[80dvh] bg-white transition-all duration-300 rounded-t-[30px] overflow-y-auto no-scrollbar",l?"translate-y-0 visible":"translate-y-full invisible"),children:[(0,n.jsxs)("div",{className:"flex justify-between items-center gap-2 px-4 py-3 sticky top-0 bg-gray-48 border-b border-gray-23",children:[(0,n.jsx)("h3",{className:"text-24 font-bold font-secondary",children:r}),(0,n.jsx)(o.gW,{onClick:t})]}),(0,n.jsx)("div",{className:"px-4 pt-2 bg-white",children:s})]}),(0,n.jsx)("div",{className:l?"fixed top-0 left-0 w-dvw h-dvh bg-black-17 z-[3]":"",onClick:t})]})});r.displayName="SummaryPanelPopup"},20597:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ClickButtonScroll:()=>o});var n=t(50280),i=t(45734);let o=()=>{let e=(0,n.usePathname)();return(0,i.useEffect)(()=>{let e=document.querySelectorAll(".btn-scroll");return e.forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();let l=this.getAttribute("href"),t=l?l.substring(1):"",n=document.getElementById(t),i=n&&n.getBoundingClientRect().top+window.pageYOffset-130,o=window.pageYOffset,a=i&&i-o,r=null,s=(e,l,t,n)=>(e/=n/2)<1?t/2*e*e+l:-t/2*(--e*(e-2)-1)+l;requestAnimationFrame(function e(l){null===r&&(r=l);let t=l-r,n=s(t,o,a,500);window.scrollTo(0,n),t<500&&requestAnimationFrame(e)})})}),()=>{e.forEach(e=>{e.removeEventListener("click",()=>{})})}},[e]),null}},21563:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HeaderMobile:()=>_});var n=t(38694),i=t(93220),o=t(48873),a=t(2508),r=t(42500),s=t(36791),d=t.n(s),c=t(50280),u=t(45734),m=t(87405);let _=e=>{let{headerMenu:l,dropDownMyaccount:t,isUserLoggedIn:s}=e,{langLocationSlashed:_,configGlobal:v,currentLocation:p,siteKeywords:x}=(0,u.useContext)(i.BR),[h,f]=(0,u.useState)(!1),g=(0,c.usePathname)(),b=()=>{f(e=>!e)};return(0,u.useEffect)(()=>{f(!1)},[g]),(0,u.useEffect)(()=>{let e=document.querySelector("body");return h?(null==e||e.classList.add("overflow-hidden"),()=>{null==e||e.classList.remove("overflow-hidden"),f(!1)}):null==e?void 0:e.classList.remove("overflow-hidden")},[h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"xl:!hidden",children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(d(),{href:"tel:".concat(null==p?void 0:p.location_hotline),title:null==p?void 0:p.location_hotline,target:"_blank",className:"w-8 h-8 rounded-full bg-black flex items-center justify-center",children:(0,n.jsx)(r.Es,{className:"w-5 h-5 *:fill-white"})}),(0,n.jsx)(d(),{href:"".concat(_,"/").concat(s?x[o.RoG]+"/"+x[o.HMW]:x[o.eoY]),title:s?null==v?void 0:v.lbl_menu_my_account:null==v?void 0:v.txt_log_in,className:"w-8 h-8 rounded-full bg-black flex items-center justify-center",children:(0,n.jsx)(r.Ti,{className:"w-5 h-5 *:fill-white"})}),(0,n.jsx)(r.U4,{onClick:b})]})}),(0,n.jsx)("div",{className:(0,a.cn)("fixed z-50 top-16 left-0 right-0 bg-white w-full h-full overflow-y-auto overflow-x-hidden scrollbar-ibc transition-all duration-300",h?"translate-x-0":"translate-x-full"),children:(0,n.jsx)("div",{className:"flex h-full scrollbar-ibc overflow-y-auto overflow-x-hidden",children:(0,n.jsx)(m.MainPanel,{headerMenu:l,handleMenuOpen:b,dropDownMyaccount:t,isUserLoggedIn:s})})})]})}},23561:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Footer:()=>h});var n=t(38694),i=t(93409),o=t(93220),a=t(48873),r=t(69054),s=t(2508),d=t(42500),c=t(74323),u=t(36791),m=t.n(u),_=t(50280),v=t(45734),p=t(34646);let x={FacebookIcon:d.ik,InstagramIcon:d.oW,LinkedinIcon:d._z,TiktokIcon:d.I2,TwitterIcon:d.Fi,YoutubeIcon:d.VJ},h=()=>{let{langLocationSlashed:e,configGlobal:l,currentLocation:t,menuFooter:d}=(0,v.useContext)(o.BR),u=(0,s.Ol)(null==t?void 0:t.location_social_info),h=(0,s.Ol)(null==l?void 0:l.json_payment_method_footer_oneibc5),g=(0,_.useSelectedLayoutSegment)();return(0,r.qK)()&&"(auth)"!==g&&"(single)"!==g&&"(order)"!==g?(0,n.jsx)("footer",{className:"bg-background-2 text-white",children:(0,n.jsxs)("div",{className:"pt-10 lg:!pt-[60px]",children:[(0,n.jsx)(p.FooterSubscribe,{}),(0,n.jsx)("section",{className:"container pb-5 lg:!pb-10",children:(0,n.jsxs)("div",{className:"flex flex-col lg:!flex-row gap-5 lg:!gap-10",children:[(0,n.jsxs)("div",{className:"flex-1 md:!max-w-[264px] flex-shrink-0",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center md:!items-start",children:[(0,n.jsx)(m(),{href:"".concat(e,"/"),title:a.Opz,children:(0,n.jsx)(c.default,{src:"https://d21l9vkgwnizti.cloudfront.net/uploads/one-ibc-logo-white.svg",alt:a.Opz,title:a.Opz,width:181,height:44,className:"w-[181px] h-[44px]",priority:!0})}),(0,n.jsx)("p",{className:"text-18 mt-1 lg:!mt-2",children:null==l?void 0:l.txt_footer_slogan})]}),(0,n.jsx)("div",{className:"flex gap-4 justify-center md:!justify-start mt-5 py-2 lg:!py-0",children:null==u?void 0:u.map((e,l)=>{let t=x[e.social_icon];return t&&(0,n.jsx)(m(),{href:e.social_href,title:e.social_name,target:"blank",children:(0,n.jsx)(t,{className:"w-9 h-9 lg:!w-6 lg:!h-6"})},l)})})]}),(0,n.jsx)("div",{className:"flex-1 flex flex-col lg:!flex-row lg:!gap-10",children:null==d?void 0:d.map((e,l)=>(0,n.jsx)(f,{menuList:e},l))})]})}),(0,n.jsx)("section",{className:"container pb-5 lg:!pb-10",children:(0,n.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-5 lg:!gap-10",children:null==h?void 0:h.map((e,l)=>(0,n.jsxs)("div",{className:"flex items-center relative",children:[(0,n.jsx)(c.default,{src:e.payment_method_icon||"/",alt:e.payment_method_name,title:e.payment_method_name,width:e.payment_method_width,height:e.payment_method_height,className:"max-w-[140px] w-auto h-auto lg:!max-w-[170px]"}),e.payment_method_href&&(0,n.jsx)(m(),{href:e.payment_method_href,title:e.payment_method_name,target:"_blank",className:"absolute inset-0"})]},l))})}),(0,n.jsx)("section",{className:"flex flex-col items-center gap-2 p-4 text-center *:text-11 *:leading-1-2 bg-black-3",children:(0,n.jsx)(i.w,{html:(null==t?void 0:t.footer_content_desktop)||""})})]})}):null};function f(e){var l;let{menuList:t}=e,[i,c]=(0,v.useState)(!1),u=(0,r._F)(1024),{langLocationSlashed:_}=(0,v.useContext)(o.BR);return(0,n.jsxs)("div",{className:"border-t border-gray-15 py-5 lg:!border-none lg:!py-0 lg:!max-w-[250px]",onClick:()=>c(e=>!e),children:[(0,n.jsxs)("div",{className:"flex justify-between items-center lg:!mb-5",children:[(0,n.jsx)("p",{className:"text-16 leading-1-4 uppercase font-bold",children:t.menu_name}),(0,n.jsx)(d.Kn,{className:(0,s.cn)("block lg:!hidden",i&&"rotate-180")}
1)]}),(0,n.jsx)("div",{className:(0,s.cn)("grid transition-all duration-500",i?"grid-rows-[1fr] mt-5":"grid-rows-[0fr] mt-0",!u&&"grid-rows-[1fr]"),children:(0,n.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,n.jsx)("ul",{className:"gap-4 lg:!gap-2 flex flex-col pl-4 lg:!pl-0",children:t.menu_children&&(null===(l=t.menu_children)||void 0===l?void 0:l.map((e,l)=>(0,n.jsx)("li",{className:"mb-2 lg:!pr-5 lg:!min-w-[224px]",children:e.menu_is_reload==a.cSK.YES?(0,n.jsx)("a",{title:e.menu_name,href:"".concat(_,"/").concat(e.menu_link),className:"text-14 leading-1-2 md:!text-16 md:!leading-1-4 hover:text-primary line-clamp-3",children:e.menu_name}):(0,n.jsx)(m(),{title:e.menu_name,href:"".concat(_,"/").concat(e.menu_link),className:"text-14 leading-1-2 md:!text-16 md:!leading-1-4 hover:text-primary line-clamp-3",children:e.menu_name})},l)))})})})]})}},23891:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SearchBarGoogle:()=>c});var n=t(38694),i=t(29432),o=t(48873),a=t(50280),r=t(45734),s=t(29722),d=t(42500);let c=e=>{let{isOpenSearch:l,setIsOpenSearch:t,textSearch:c}=e,{langLocationSlashed:u}=(0,r.useContext)(i.BR),m=(0,a.useSearchParams)(),{register:_,handleSubmit:v,setValue:p}=(0,s.mN)({defaultValues:{q:""}}),x=v(e=>{if(!e.q||(null==m?void 0:m.get("q"))===e.q)return t&&t(!1);let l=new URLSearchParams;l.append("q",e.q),window.location.href=u+"/"+o.jWi+"?"+l.toString()});return(0,r.useEffect)(()=>{var e;p("q",null!==(e=new URLSearchParams(window.location.search).get("q"))&&void 0!==e?e:"")},[p]),(0,n.jsxs)("form",{className:"relative border border-black-2 rounded-xl overflow-hidden",onSubmit:x,children:[(0,n.jsx)("input",{className:"w-full h-[52px] text-16 font-normal text-gray-5 px-4 py-[14px] outline-none",placeholder:c,type:"text",..._("q")}),(0,n.jsx)("button",{className:"absolute w-5 h-5 flex justify-center items-center right-4 top-1/2 -translate-y-1/2",children:l?(0,n.jsx)(d.US,{onClick:()=>{t&&t(!1),p("q","")},className:"cursor-pointer lg:!w-3 lg:!h-3"}):(0,n.jsx)(d.WI,{className:"cursor-pointer fill-black"})})]})}},24069:(e,l,t)=>{"use strict";
1t.r(l),t.d(l,{Loading:()=>o});var n=t(38694),i=t(45734);t(62768);let o=()=>((0,i.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="auto"}),[]),(0,n.jsx)("div",{className:"preloader-wrap",children:(0,n.jsx)("div",{className:"preloader"})}))},24809:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SummaryAiHelper:()=>v});var n=t(38694),i=t(93220),o=t(48873),a=t(69054),r=t(8256),s=t(94674),d=t(42500),c=t(74323),u=t(45734),m=t(54343),_=t(6280);let v=(0,u.memo)(e=>{var l,t,v;let{onSubmit:p,onNoThanks:x,onBack:h}=e,{btnNext:f,isLoading:g,isNextBtn:b,isBackBtn:y,btnNextText:j,btnBackText:N,isNoThanksBtn:w,configOrder:k,btnNoThanksText:S}=(0,u.useContext)(i.w_),{orderStore:C}=(0,r.Fc)(),E=(0,u.useMemo)(()=>{var e;return null==C?void 0:null===(e=C.ai_recommendation)||void 0===e?void 0:e.ai_request},[null==C?void 0:null===(l=C.ai_recommendation)||void 0===l?void 0:l.ai_request]),R=(0,a._F)(1024),[O,T]=(0,u.useState)(!1),A=(0,u.useMemo)(()=>{var e;let l=0;return(null==E?void 0:E.business_activity_id)&&l++,(null==E?void 0:E.owner_nationality_code)&&l++,(null==E?void 0:E.tax_purposes_id)&&l++,(null==E?void 0:null===(e=E.other_demand_ids)||void 0===e?void 0:e.length)&&(l+=E.other_demand_ids.length),(null==E?void 0:E.description)&&l++,l},[E]),M=(0,u.useCallback)(()=>{T(e=>!e)},[]);return R?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center gap-4 mb-5",children:[(0,n.jsx)("div",{className:"flex items-center gap-[6px]",children:(0,n.jsx)("p",{className:"text-14 font-medium",children:null==k?void 0:null===(v=k.txt_ai_sections)||void 0===v?void 0:v.replace("|||NUMBER|||",String(A))})}),(0,n.jsxs)("p",{className:"text-14 inline-flex items-center underline gap-2 font-medium cursor-pointer py-2",onClick:M,children:[null==k?void 0:k.txt_ai_summary,(0,n.jsx)(d.Kn,{className:"*:fill-black w-3 h-3 rotate-180 flex-shrink-0"})]})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[b&&(0,n.jsxs)(s.$n,{variant:"none",onClick:p,disabled:g,isLoading:g,className:"w-full h-[48px] font-semibold text-white bg-red-1",children:[f==o.w8x.RECOMMENDATION&&(0,n.jsx)(d.qc,{className:"mx-1"}),j]}),(0,n.jsxs)("div",{className:"flex gap-3",children:[y&&(0,n.jsxs)(s.$n,{variant:"none",disabled:g,onClick:h,className:"w-full h-[48px] bg-gray-10 font-semibold gap-2",children:[(0,n.jsx)(d.qT,{}),N]}),w&&(0,n.jsx)(s.$n,{variant:"none",onClick:x,disabled:g,isLoading:g,className:"w-full h-[48px] font-semibold bg-white border border-gray-56",children:S})]})]}),(0,n.jsx)(m.j4,{title:"Your Selection Summary",open:O,setOpen:M,children:(0,n.jsx)(_.b,{})})]}):(0,n.jsx)("div",{className:"bg-white rounded-xl shadow-31 overflow-hidden",children:(null==E?void 0:E.business_activity_id)||(null==E?void 0:E.owner_nationality_code)||(null==E?void 0:E.tax_purposes_id)||(null==E?void 0:null===(t=E.other_demand_ids)||void 0===t?void 0:t.length)||(null==E?void 0:E.description)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"px-6 pt-6 sticky top-0 z-[1] bg-white",children:(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==k?void 0:k.txt_order_title_ai_summary})}),(0,n.jsx)("div",{className:"px-6 pb-6",children:(0,n.jsx)("div",{className:"max-h-[60dvh] overflow-y-auto no-scrollbar",children:(0,n.jsx)(_.b,{})})})]}):(0,n.jsx)("div",{className:"p-6",children:(0,n.jsxs)("div",{className:"p-3 bg-gray-61 rounded flex items-start gap-2",children:[(0,n.jsx)(c.default,{width:16,height:16,alt:"AI no summary",title:"AI no summary",className:"flex-shrink-0",src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-ai-no-summary-1762230462.svg"}),(0,n.jsx)("p",{className:"text-14",children:null==k?void 0:k.txt_order_ai_no_summary})]})})})});v.displayName="SummaryAiHelper"},27529:(e,l,t)=>{"use strict";t.r(l),t.d(l,{VideoCustom:()=>r});var n=t(38694),i=t(29432),o=t(74323),a=t(45734);let r=e=>{let{content:l,image:t,imageheight:r,imagewidth:s,imagetitle:d}=e,[c,u]=(0,a.useState)(!1);return(0,n.jsx)(a.Suspense,{children:c?(0,n.jsx)(i.wR,{html:l||""}):(0,n.jsxs)("div",{className:"relative cursor-pointer overflow-hidden rounded-lg",onClick:()=>u(!0),children:[(0,n.jsx)(o.default,{src:t||"",alt:d||"",title:d||"",width:s||750,height:r||422,loading:"lazy"}),(0,n.jsx)("div",{style:{background:"rgba(0,0,0,0.3)"},className:"absolute inset-0 w-full h-full flex justify-center items-center flex-col",children:(0,n.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",f
1ill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:"rgba(0,0,0,0.5)"}),(0,n.jsx)("polygon",{points:"26,20 48,32 26,44",fill:"#fff"})]})})]})})}},29432:(e,l,t)=>{"use strict";t.d(l,{BR:()=>i.BR,Nv:()=>f.ApplePayButton,eF:()=>h.BillingInformation,ac:()=>_.ac,Ld:()=>_.Ld,OV:()=>_.OV,GZ:()=>x.CreditCardPaymentForm,eI:()=>u.e,K8:()=>g.GooglePayButton,wR:()=>n.w,Rh:()=>v.Loading,Cp:()=>i.Cp,Rx:()=>c.R,T8:()=>j.T8,j3:()=>i.j3,vO:()=>y.v,w_:()=>i.w_,IS:()=>d.I,mu:()=>b.mu,Zg:()=>p.PaymentGateway,Ij:()=>s,BD:()=>b.BD,JX:()=>m.SwiperCard});var n=t(93409);t(17184);var i=t(93220);t(92921),t(75991),t(9889),t(23561),t(34646);var o=t(38694),a=t(94674),r=t(42500);let s=e=>{let{messageSuccess:l,messageError:t,titleSuccess:n,textBtnError:i,setIsError:s,isContactUs:d}=e;return(0,o.jsxs)("div",{className:"flex flex-col max-w-[365px] mx-auto w-full ".concat(d?" justify-center":"lg:!min-h-[612px] lg:!col-span-2 justify-between"),children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-5",children:[(0,o.jsxs)("h2",{className:"text-center text-32 lg:!text-48 font-bold text-black font-secondary tracking-wider",children:[l&&n,"!",t&&"Oops!"]}),l&&(0,o.jsx)(r.Fz,{}),t&&(0,o.jsx)(r.EG,{}),(0,o.jsx)("p",{className:"text-16 font-semibold text-black text-center",children:l||t})]}),t&&(0,o.jsx)(a.$n,{className:"uppercase sm:!max-w-[226px] mx-auto w-full h-12 font-semibold lg:!font-bold text-lg leading-[21px] mt-5 ",onClick:()=>{s&&s()},children:i})]})};t(88587),t(14443),t(98417),t(99101),t(88349);var d=t(9220),c=t(66768);t(97269),t(69257),t(66405),t(74518);var u=t(71023),m=t(17973),_=t(4123);t(91866),t(74561),t(37643),t(36791),t(83517);var v=t(24069),p=t(40118);t(72486);var x=t(98032),h=t(93982),f=t(7012),g=t(36674),b=t(17978),y=t(10740);t(27529),t(65877),t(15109),t(50181),t(83519),t(31397),t(48873),t(59990),t(5164);var j=t(68615);t(76645),t(17627),t(10585),t(73517),t(10499),t(7757),t(3547)},29947:(e,l,t)=>{"use strict";t.d(l,{A:()=>s});var n=t(89923);t(17671);var i=t(80272),o=t(60472);let a=(0,i.v)()((0,o.Zr)(e=>({consentCookie:{},updateConsentCookie:l=>e(()=>r(l))}),{name:"consentCookie"})),r=e=>{var l,t;return(null===(l=window)||void 0===l?void 0:l.dataLayer)||(window.dataLayer=[]),null===(t=window)||void 0===t||t.gtag("consent","update",{ad_storage:(null==e?void 0:e.markets)?n.aR.GRANTED:n.aR.DENIED,ad_user_data:(null==e?void 0:e.markets)?n.aR.GRANTED:n.aR.DENIED,ad_personalization:(null==e?void 0:e.markets)?n.aR.GRANTED:n.aR.DENIED,analytics_storage:(null==e?void 0:e.statistics)?n.aR.GRANTED:n.aR.DENIED,wait_for_update:2e3}),window.dataLayer.push({event:"cookie_consent_update",_clear:!0}),{consentCookie:e}},s=a},30092:(e,l,t)=>{"use strict";function n(e){let{src:l,width:t,quality:n}=e;return"".concat(l,"?w=").concat(t,"&q=").concat(n||75)}t.r(l),t.d(l,{default:()=>n})},32347:()=>{},32589:(e,l,t)=>{"use strict";t.r(l),t.d(l,{GroupButtonBottom:()=>c});var n=t(38694),i=t(29432),o=t(48873),a=t(2508),r=t(94674),s=t(42500),d=t(45734);let c=(0,d.memo)(e=>{let{onSubmit:l,onBack:t,onNoThanks:c}=e,{isLoading:u,btnNextText:m,btnBackText:_,isNoThanksBtn:v,isNextBtn:p,btnNoThanksText:x,btnNext:h,isBackBtn:f}=(0,d.useContext)(i.w_),g=(0,d.useCallback)(()=>{null==t||t()},[t]),b=(0,d.useCallback)(()=>{null==l||l()},[l]),y=(0,d.useCallback)(()=>{null==c||c()},[c]);return(0,n.jsxs)("div",{className:"flex justify-between items-center mt-10",children:[(0,n.jsxs)(r.$n,{variant:"none",disabled:u,onClick:g,className:(0,a.cn)("w-[148px] h-[54px] bg-gray-10 font-semibold gap-2",!f&&"invisible pointer-events-none"),children:[(0,n.jsx)(s.qT,{}),_]}),(0,n.jsxs)("div",{className:"flex gap-3",children:[v&&(0,n.jsx)(r.$n,{variant:"none",disabled:u,onClick:y,className:"h-[54px] px-10 bg-white border border-gray-56 font-semibold",children:x}),p&&(0,n.jsxs)(r.$n,{variant:"none",onClick:b,disabled:u,isLoading:u,className:(0,a.cn)("w-[200px] h-[54px] font-semibold text-white bg-red-1",h==o.w8x.RECOMMENDATION&&"w-[336px]"),children:[h==o.w8x.RECOMMENDATION&&(0,n.jsx)(s.qc,{className:"mx-1"}),m]})]})]})});c.displayName="GroupButtonBottom"},33213:(e,l,t)=>{"use strict";t.d(l,{O:()=>i});var n=t(93693);let i={submitProfile:(e,l)=>n.G.post("/user/change-info",e,{headers:{Authorization:"".concat(l)}}),submitChangePassword:(e,l)=>n.G.post("/user/change-password",e,{headers:{Authorization:"".concat(l)}}),getCreditPoints:(e,l,t)=>n.G.get("/user/credit-point/history?page=".concat(e,"&per_page=").concat(l),{headers:{Authorization:"".concat(t)}})}},33411:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Breadcrumb:()=>a});var n=t(38694),i=t(36791),o=t.n(i);function a(e){let{breadcrumbs:l,classNameLink:t}=e;return(0,n.jsx)("nav",{className:"hidden md:!block py-5",children:(0,n.jsx)("ol",{className:"flex flex-wrap items-start",children:null==l?void 0:l.map((e,i)=>(0,n.jsx)("li",{className:"flex items-center",children:i<l.length-1?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{className:"text-grey-2 block text-16 font-normal cursor-pointer hover:text-primary ".concat(t),href:e.url,title:e.name,target:"_self",children:e.name}),(0,n.jsx)("span",{className:"mx-3 inline-block text-14 font-normal text-gray-2",children:"|"})]}):(0,n.jsx)("p",{className:"block text-16 font-normal text-gray-5 !line-clamp-1",dangerouslySetInnerHTML:{__html:e.name}})},e.url))})})}},33873:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InputNumber:()=>m});var n=t(38694),i=t(27321),o=t.n(i),a=t(2508),r=t(45734),s=t(29722),d=t(5203),c=t(35275),u=t(66011);let m=e=>{let{className:l,classNameInput:t,classNameError:i="absolute -bottom-5 left-0",id:m,placeholder:_,nameLabel:v,classNameLabel:p,name:x,control:h,onChangeValue:f,popupConfirm:g,numberConfirm:b,classNamePopup:y="min-w-[560px]",t:j,tooltip:N,classNameTooltip:w,defaultValue:k,...S}=e,[C,E]=(0,r.useState)(!1),[R,O]=(0,r.useState)(!1),{field:{onCh
1ange:T,value:A="",ref:M},fieldState:{error:I}}=(0,s.as)({name:x,control:h,defaultValue:k}),P=e=>{let l=e.target.value.replace(/[^0-9]/g,""),t=(0,a.ZV)(l);return t?(null==S?void 0:S.min)&&Number(t)<Number(null==S?void 0:S.min)?T(String(null==S?void 0:S.min)):(null==S?void 0:S.max)&&Number(t)>Number(null==S?void 0:S.max)?T(String(null==S?void 0:S.max)):T(t):T("")},L=()=>{E(!1),T(null==S?void 0:S.min)};return(0,r.useEffect)(()=>{Number(A)>=Number(b)&&!R&&g&&E(!0)},[A]),(0,n.jsxs)("div",{className:l,children:[(0,n.jsxs)("div",{className:"jsx-337b9deb3e8b6280 flex flex-col relative gap-2",children:[v&&(0,n.jsxs)("div",{className:"jsx-337b9deb3e8b6280 flex gap-1 w-fit",children:[(0,n.jsx)("label",{htmlFor:m,dangerouslySetInnerHTML:{__html:v||""},className:"jsx-337b9deb3e8b6280 "+((0,a.cn)("font-semibold text-black text-14",p,S.required&&"label-required")||"")}),N&&(0,n.jsx)(u.o,{content:N,className:w})]}),(0,n.jsx)("input",{onChange:e=>{P(e),f&&f(e)},onKeyDown:e=>{("+"===e.key||"-"===e.key)&&e.preventDefault()},placeholder:_,value:A,type:"number",disabled:S.disabled||C,ref:M,...S,className:"jsx-337b9deb3e8b6280 "+(S&&null!=S.className&&S.className||(0,a.cn)("text-md text-black border-gray-6 h-13 w-full appearance-none rounded-xl border px-2.5 placeholder:text-md placeholder:text-placeholder focus:outline-none focus:ring-0",I&&"border-primary",t)||"")}),(0,n.jsx)(o(),{id:"337b9deb3e8b6280",children:'input.jsx-337b9deb3e8b6280::-webkit-outer-spin-button,input.jsx-337b9deb3e8b6280::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type="number"].jsx-337b9deb3e8b6280{-moz-appearance:textfield}'}),I&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:(null==I?void 0:I.message)||""},className:"jsx-337b9deb3e8b6280 "+((0,a.cn)("text-primary text-sm",i)||"")})]}),C&&g&&(0,n.jsx)("div",{className:"fixed z-20 inset-0 w-dvw h-dvh",children:(0,n.jsx)("div",{className:"container flex justify-center items-center h-full",children:(0,n.jsxs)("div",{className:"rounded-lg bg-white shadow-lg p-4 pt-6 lg:!p-6 lg:!pt-10 relative ".concat(y),children:[(0,n.jsx)("div",{className:"absolute top-2.5 right-2.5 cursor-pointer",onClick:L,children:(0,n.jsx)(c.U,{fill:"#666666"})}),(0,n.jsx)("p",{className:"text-16 leading-1-2 mb-4 lg:!mb-6",children:g.replace("|||value|||",A)}),(0,n.jsxs)("div",{className:"flex justify-center gap-4 lg:!gap-6",children:[(0,n.jsx)(d.$,{className:"w-[120px] h-[40px] lg:!w-[160px] lg:!h-[48px] text-16 normal-case",onClick:L,children:null==j?void 0:j.txt_cancel}),(0,n.jsx)(d.$,{className:"w-[120px] h-[40px] lg:!w-[160px] lg:!h-[48px] text-16 normal-case",onClick:()=>{E(!1),O(!0)},children:null==j?void 0:j.txt_confirm})]})]})})})]})}},34646:(e,l,t)=>{"use strict";t.r(l),t.d(l,{FooterSubscribe:()=>p});var n=t(38694),i=t(93220),o=t(48873),a=t(64646),r=t(69054),s=t(2508),d=t(94674),c=t(83924),u=t(55015),m=t(45734),_=t(29722),v=t(10740);let p=()=>{var e,l;let{userIp:t,configGlobal:p}=(0,m.useContext)(i.BR),[x,h]=(0,m.useState)(!1),[f,g]=(0,m.useState)(null),[b,y]=(0,m.useState)(""),j=(0,s.vb)(),N=(0,m.useRef)(null),{register:w,handleSubmit:k,reset:S,setError:C,formState:{errors:E}}=(0,_.mN)({mode:"all",shouldFocusError:!1,resolver:(0,c.t)((0,s.a8)(p))}),R=(0,u.n)({mutationFn:e=>a.qg.submitSubscribe(e)}),O=k(async e=>{var l;h(!0),y("");let n=await (0,s.Ji)(),i=await (null===(l=N.current)||void 0===l?void 0:l.onSubmit()),o={...e,gRecaptchaToken:n,ip:t,...i};R.mutate(o,{onSuccess:e=>{if(h(!0),!e.success){let l=(0,a.jN)(e);if(l){g(l),h(!1),y((null==e?void 0:e.message)||"");return}}e.data&&j.subscribeForm(e.data),y(e.message||""),h(!1),S()}})});return((0,r.VT)(C,f,E,y),p)?(0,n.jsxs)("section",{className:"container mb-5 lg:!mb-10",children:[(0,n.jsx)("p",{className:"text-18 lg:!text-24 font-semibold text-center mx-auto",children:null==p?void 0:p.txt_footer_subscribe}),(0,n.jsxs)("form",{onSubmit:O,className:"flex justify-center max-w-[634px] mt-2 mx-auto py-3 border-b relative border-gray-12",children:[(0,n.jsx)("input",{type:"text",className:"flex-1 bg-inherit outline-none placeholder-gray-13",placeholder:null==p?void 0:p.plc_footer_subscribe,autoComplete:"off",...w("email")}),((null===(e=E.email)||void 0===e?void 0:e.message)||b)&&(0,n.jsx)("p",{className:"absolute text-12 text-white -bottom-5 left-0",children:(null===(l=E.email)||void 0===l?void 0:l.message)||b}),(0,n.jsx)(d.$n,{className:"text-16 font-semibold flex-shrink-0 hover:text-primary rounded-none",onClick:O,isLoading:x,disabled:x,variant:"none",size:"none",effect:"none",children:null==p?void 0:p.txt_sign_up})]}),(0,n.jsx)("div",{className:"mt-6 md:mt-5 max-w-[634px] mx-auto",children:(0,n.jsx)(v.v,{ref:N,mode:o.Bkk.SUBSCRIBE})})]}):null}},35337:()=>{},35565:(e,l,t)=>{"use strict";t.r(l),t.d(l,{OptCheckbox:()=>u});var n=t(38694),i=t(93409),o=t(93220),a=t(48873),r=t(2508),s=t(94674),d=t(45734),c=t(29722);
1let u=(0,d.forwardRef)(function(e,l){let{isShowWhatsapp:t=!1,classname:u,mode:m=a.Bkk.DEFAULT,isShowEmail:_=!0}=e,v={DEFAULT:"text-black [&_p]:!text-black [&_a]:!text-text-black [&_span]:!text-black ".concat(!_&&"[&_#opt-email]:hidden"," ").concat(_&&t?"[&_#opt-semicolon]:inline":"[&_#opt-semicolon]:hidden"," ").concat(!t&&"[&_#opt-whatsapp]:hidden"," ").concat(!_&&!t&&"[&_#opt-dot]:hidden"),SUBSCRIBE:"[&_p]:!text-white [&_a]:!text-[#1A73E8] [&_span]:!text-white [&>div>p:first-child]:hidden [&_#opt-whatsapp]:hidden"};(0,d.useImperativeHandle)(l,()=>({onSubmit:f}));let{configGlobal:p}=(0,d.useContext)(o.BR),{control:x,getValues:h}=(0,c.mN)({mode:"all",shouldFocusError:!1,defaultValues:{email_opt_in_status:!1,whatsapp_opt_in_status:!1}}),f=async()=>h(),g=()=>(0,n.jsxs)("div",{className:(0,r.cn)("flex flex-col gap-2",u,!_&&!t&&"hidden"),children:[_&&(0,n.jsx)(s.oV,{name:"email_opt_in_status",control:x,nameLabel:null==p?void 0:p.txt_exclusive_analysis_offers_via_email,classNameLabel:"text-14 ml-3"}),t&&(0,n.jsx)(s.oV,{name:"whatsapp_opt_in_status",control:x,nameLabel:null==p?void 0:p.txt_timely_alerts_support_via_whats_app,classNameLabel:"text-14 ml-3"})]});return(0,n.jsx)("div",{className:(0,r.cn)(v[m]),children:(0,n.jsx)(i.w,{html:(null==p?void 0:p.config_html_otp_whatsapp)||"",components:[{tag:a.NeW.SECTION_OTP_CHECKBOX,component:e=>(0,n.jsx)(g,{...e})}]})})})},36674:(e,l,t)=>{"use strict";t.r(l),t.d(l,{GooglePayButton:()=>u});var n=t(38694),i=t(48873),o=t(2508),a=t(45734);let r={apiVersion:2,apiVersionMinor:0},s=()=>{var e,l,t,n;return null!==(n=null===(t=window.google)||void 0===t?void 0:null===(l=t.payments)||void 0===l?void 0:null===(e=l.api)||void 0===e?void 0:e.PaymentsClient)&&void 0!==n?n:null},d=()=>{var e;return(null===(e=window.paypal)||void 0===e?void 0:e.Googlepay)?window.paypal.Googlepay():null},c=()=>{var e;return!!(null===(e=window.paypal)||void 0===e?void 0:e.Googlepay)},u=(0,a.forwardRef)(function(e,l){let{currency:t,onSuccess:u,onError:m,onCancel:_,onReady:v,disabled:p,className:x,lang:h}=e,[f,g]=(0,a.useState)(!1),b=(0,a.useRef)(null),y=(0,a.useRef)(null),j=(0,a.useRef)(null),N=(0,a.useRef)(!1),w=(0,a.useRef)(()=>void 0),k=(0,a.useRef)(""),S=(0,a.useRef)(""),C=(0,a.useRef)(u),E=(0,a.useRef)(m),R=(0,a.useRef)(_);return C.current=u,E.current=m,R.current=_,(0,a.useImperativeHandle)(l,()=>({submit:(e,l)=>{e&&(k.current=e),l&&(S.current=l)}})),(0,a.useEffect)(()=>{let e;if(y.current)return;let l=!1,t=!1,n=async()=>{var o,a;if(l||y.current)return;let u=s();if(!u||!c()){e=setTimeout(n,200);return}try{let e=d(),n=await e.config();if(l)return;y.current=n;let a=new u({environment:i.bDV,paymentDataCallbacks:{onPaymentAuthorized:async e=>{var l,t,n,i;if(N.current)return{transactionState:"ERROR"};N.current=!0;try{let i=d(),{status:o}=await i.confirmOrder({orderId:S.current,paymentMethodData:e.paymentMethodData});if("APPROVED"===o)return N.current=!1,null===(t=C.current)||void 0===t||t.call(C),{transactionState:"SUCCESS"};if("PAYER_ACTION_REQUIRED"===o)return await i.initiatePayerAction({orderId:S.current}),N.current=!1,null===(n=C.current)||void 0===n||n.call(C),{transactionState:"SUCCESS"};return N.current=!1,null===(l=E.current)||void 0===l||l.call(E,Error("Google Pay payment was not approved")),{transactionState:"ERROR"}}catch(e){return N.current=!1,null===(i=E.current)||void 0===i||i.call(E,e instanceof Error?e:Error("Google Pay authorization failed")),{transactionState:"ERROR"}}}}});j.current=a;let s=await a.isReadyToPay({...r,allowedPaymentMethods:n.allowedPaymentMethods});if(l)return;s.result?(g(!0),null==v||v(),t=!0):(t=!0,null===(o=E.current)||void 0===o||o.call(E,Error("Google Pay is not available on this device/browser.")))}catch(e){console.error("[GooglePay] init error:",e),t=!0,null===(a=E.current)||void 0===a||a.call(E,e instanceof Error?e:Error("Google Pay initialization failed"))}};n();let o=setTimeout(()=>{if(l=!0,!t&&!y.current){var e;null===(e=E.current)||void 0===e||e.call(E,Error("Google Pay SDK initialization timed out"))}},1e4);return()=>{l=!0,clearTimeout(e),clearTimeout(o)}},[]),(0,a.useEffect)(()=>{let e=b.current,l=j.current;if(!f||!e||!l)return;e.innerHTML="";let t=l.createButton({onClick:()=>w.current(),buttonColor:"black",buttonType:"pay",buttonRadius:14,buttonBorderType:"default_border",buttonLocale:h,buttonSizeMode:"fill",allowedPaymentMethods:[]});e.appendChild(t)},[f]),w.current=()=>{let e=y.current,l=j.current;if(!e||!l||p||!k.current||!S.current)return;let n={...r,allowedPaymentMethods:e.allowedPaymentMethods,merchantInfo:e.merchantInfo,transactionInfo:{currencyCode:t,totalPriceStatus:"FINAL",totalPrice:k.current,totalPriceLabel:"Total"}
1,callbackIntents:["PAYMENT_AUTHORIZATION"]};l.loadPaymentData(n).catch(e=>{if((null==e?void 0:e.statusCode)==="CANCELED"){var l;null===(l=R.current)||void 0===l||l.call(R)}})},(0,n.jsx)(n.Fragment,{children:f&&(0,n.jsx)("div",{ref:b,"aria-label":"Google Pay","aria-disabled":p,className:(0,o.cn)("[&_.gpay-card-info-container]:!w-full !w-full h-[54px] lg:!h-[57px] [&_.gpay-button]:!w-full",p&&"pointer-events-none opacity-60",x)})})})},37643:()=>{},38143:(e,l,t)=>{"use strict";t.d(l,{_s:()=>d,m8:()=>c,qo:()=>s});var n=t(48873),i=t(8256),o=t(2508),a=t(17671),r=t(93693);new EventTarget;let s=()=>(0,a.getCookie)(n.Avz.USER_TOKEN)||"",d={async getUserApi(e){let l=await r.G.get("/user/info",{headers:{Authorization:"".concat(e),cache:!1,encrypt:!0}});return(null==l?void 0:l.success)&&(null==l?void 0:l.data)?l:((0,a.deleteCookie)(n.Avz.USER_TOKEN),window.location.reload())},submitLoginApi:async e=>await r.G.post("/auth/login",e),submitLoginGoogleApi:async e=>await r.G.post("/auth/login-google",e),submitRegisterApi:async e=>await r.G.post("/auth/register",e),async submitPhoneNumber(e,l){let t={};return l&&(t.Authorization=l),await r.G.post("/auth/enter-phone-number",e,{headers:Object.keys(t).length>0?t:void 0})},submitForgotPassword:async e=>await r.G.post("/auth/forgot-password",e),checkTokenPassword:async e=>await r.G.post("/auth/check-token-reset-password",e),submitResetPassword:async e=>await r.G.post("/auth/reset-password",e)},c=async e=>{let{updateUser:l,updateUserId:t}=i.HQ.getState(),{clearOrderStore:s}=i.Fc.getState(),d=await (0,o.Ji)();try{let i=await r.G.post("/user/logout",{gRecaptchaToken:d});(null==i?void 0:i.success)&&((0,a.deleteCookie)(n.Avz.USER_TOKEN),(0,a.deleteCookie)(n.Avz.CLIENT_PORTAL),(0,a.deleteCookie)(n.Avz.ENTER_PHONE_PENDING),(0,o._N)(),l(void 0),t(0),s(),window.location.href="".concat(e))}catch(e){throw Error(e)}}},39763:(e,l,t)=>{"use strict";t.r(l),t.d(l,{OrderContextV2:()=>p,OrderProviderV2:()=>x,useOrderContextV2:()=>h});var n=t(38694),i=t(48873),o=t(89923),a=t(64646),r=t(8256),s=t(2508),d=t(76970),c=t(20361),u=t(50280),m=t(45734),_=t(80744);let v={step:i.DHf.STEP_START_BUSINESS,configOrder:{},stepAiHelper:i.qqs.STEP_UNDERSTAND_YOUR_NEED,getPackages:()=>[],setIsLoading:()=>{},handleBackStep:()=>{},handleNextStep:()=>{},handleChangeStep:()=>{},updateContextValue:()=>{},handleChangeStepAiHelper:()=>{}},p=(0,m.createContext)(v),x=e=>{var l,t,v,x,h,f,g;let{children:b,...y}=e,j=(0,u.usePathname)(),N=(0,c.getCookie)(o.Av.USER_TOKEN),{location:w}=(0,m.useContext)(_.B),{orderStore:k,updateStartBusinessStore:S,updateOrderStore:C,clearOrderStore:E}=(0,r.Fc)(),{data:R}=(0,d.I)({queryKey:["user-order"],queryFn:async()=>await a.qE.submitGetUser(N),enabled:!!N,refetchOnWindowFocus:!0,gcTime:0,staleTime:0}),{data:O}=(0,d.I)({queryKey:["data-suffix",null==k?void 0:null===(l=k.start_business)||void 0===l?void 0:l.legal_entity_id],queryFn:async()=>{var e;return await a.Ly.getSuffix(null==k?void 0:null===(e=k.start_business)||void 0===e?void 0:e.legal_entity_id)},enabled:!!k,staleTime:1/0}),[T,A]=(0,m.useState)({...y,isBackBtn:!0,isNextBtn:!0,isSummaryPanel:!0,btnNext:i.w8x.NEXT,btnBack:i.y6x.BACK,btnNoThanks:i.YrS.NO_THANKS}),[M,I]=(0,m.useState)(!1),P=(0,m.useMemo)(()=>{var e,l,t,n,o,a,r;switch(T.btnNext){case i.w8x.NEXT:return null===(e=T.configOrder)||void 0===e?void 0:e.btn_next;case i.w8x.INTERESTED:return null===(l=T.configOrder)||void 0===l?void 0:l.txt_order_btn_intersted;case i.w8x.RECOMMENDATION:return null===(t=T.configOrder)||void 0===t?void 0:t.txt_order_btn_get_recommendations;case i.w8x.PAYMENT:return null===(n=T.configOrder)||void 0===n?void 0:n.btn_mp_proceed_to_payment;case i.w8x.ADD_TO_CART:return null===(o=T.configOrder)||void 0===o?void 0:o.txt_order_add_to_cart;case i.w8x.UPGRADE_NOW:return null===(a=T.configOrder)||void 0===a?void 0:a.txt_order_upgrade_now;default:return null===(r=T.configOrder)||void 0===r?void 0:r.btn_next}},[T.btnNext]),L=(0,m.useMemo)(()=>{var e,l;return T.btnBack===i.y6x.BACK?null===(e=T.configOrder)||void 0===e?void 0:e.btn_back:null===(l=T.configOrder)||void 0===l?void 0:l.btn_back},[T.btnBack]),F=(0,m.useMemo)(()=>{var e,l,t;switch(T.btnNoThanks){case i.YrS.NO_THANKS:return null===(e=T.configOrder)||void 0===e?void 0:e.btn_no_thanks;case i.YrS.LATER:return null===(l=T.configOrder)||void 0===l?void 0:l.txt_order_btn_ask_me_later;default:return null===(t=T.configOrder)||void 0===t?void 0:t.btn_no_thanks}},[T.btnNoThanks]),D=(0,m.useCallback)(e=>{e&&T.step!=e&&(A(l=>({...l,step:e,typeOfService:void 0})),C({order_step:e}),window.scrollTo(0,0))},[T.step]),K=(0,m.useCallback)(e=>{e&&T.stepAiHelper!=e&&(A(l=>({...l,stepAiHelper:e})),window.scrollTo(0,0))},[T.stepAiHelper]),B=(0,m.useCallback)(()=>{var e,l;let t=null===(e=T.listLegalEntity)||void 0===e?void 0:e.find(e=>{var l;return e.legal_entity_id==(null==k?void 0:null===(l=k.start_business)||void 0===l?void 0:l.legal_entity_id)}),n=!t||(null==t?void 0:t.legal_entity_is_manager)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_member)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_director)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_shareholder)==o.cS.NO,a=null===(l=T.listTypeOfService)||void 0===l?void 0:l.filter(e=>{var l;return e.category_is_recommend_service==o.cS.YES&&e.category_id!=(null==k?void 0:null===(l=k.start_business)||void 0===l?void 0:l.type_of_service)});
1return T.step+1==i.DHf.STEP_COMPANY_MEMBER&&n?(null==a?void 0:a.length)?D(T.step+2):D(T.step+3):T.step+1!=i.DHf.STEP_BOOST_BUSINESS||(null==a?void 0:a.length)?T.step+1!=i.DHf.STEP_UPGRADE_PACKAGE||T.isUpgradePackage?D(T.step+1):!n||(null==a?void 0:a.length)?n?D(T.step+3):D(T.step+2):D(T.step+4):D(T.step+2)},[T.step,T.isUpgradePackage,null==k?void 0:null===(t=k.package_of_service)||void 0===t?void 0:t.product_id,null==k?void 0:null===(v=k.start_business)||void 0===v?void 0:v.legal_entity_id,null==k?void 0:null===(x=k.start_business)||void 0===x?void 0:x.type_of_service]),G=(0,m.useCallback)(()=>{var e,l;let t=null===(e=T.listLegalEntity)||void 0===e?void 0:e.find(e=>{var l;return e.legal_entity_id==(null==k?void 0:null===(l=k.start_business)||void 0===l?void 0:l.legal_entity_id)}),n=!t||(null==t?void 0:t.legal_entity_is_manager)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_member)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_director)==o.cS.NO&&(null==t?void 0:t.legal_entity_is_shareholder)==o.cS.NO,a=null===(l=T.listTypeOfService)||void 0===l?void 0:l.filter(e=>{var l;return e.category_is_recommend_service==o.cS.YES&&e.category_id!=(null==k?void 0:null===(l=k.start_business)||void 0===l?void 0:l.type_of_service)});return T.step-1==i.DHf.STEP_COMPANY_MEMBER&&n?T.isUpgradePackage?D(T.step-2):D(T.step-3):T.step-1!=i.DHf.STEP_UPGRADE_PACKAGE||T.isUpgradePackage?T.step-1!=i.DHf.STEP_BOOST_BUSINESS||(null==a?void 0:a.length)?D(T.step-1):n&&!T.isUpgradePackage?D(T.step-4):n?D(T.step-3):D(T.step-2):D(T.step-2)},[T.step,T.isUpgradePackage,null==k?void 0:null===(h=k.package_of_service)||void 0===h?void 0:h.product_id,null==k?void 0:null===(f=k.start_business)||void 0===f?void 0:f.legal_entity_id,null==k?void 0:null===(g=k.start_business)||void 0===g?void 0:g.type_of_service]),U=(0,m.useCallback)(e=>{let{categoryId:l,isInternational:t=o.cS.NO,productType:n,LegalEntityId:i,stateCode:a}=e,r=t==o.cS.YES?T.listOrderProductInternational:T.listOrderProduct,s=null==r?void 0:r.filter(e=>a?e.product_category_id!=l||!a||e.product_jurisdiction_state_code==a:e.product_category_id==l);return n&&(s=null==s?void 0:s.filter(e=>e.product_type_id==n)),i&&(s=null==s?void 0:s.filter(e=>e.product_legal_entity_id==i)),s},[]),Y=(0,m.useCallback)(e=>{A(l=>({...l,...e}))},[]);return(0,m.useEffect)(()=>{var e;let l=new URL(window.location.href);if(T.orderID&&T.orderDetail){E(),Y({isBackBtn:!1}),D(i.DHf.STEP_PAYMENT);let e=T.orderDetail,l=null==e?void 0:e.input_data;C({order_id:null==e?void 0:e.order_id,order_repayment:!0,email:null==e?void 0:e.email,phone_number:null==e?void 0:e.phone_number,location_code:null==l?void 0:l.jurisdiction_country_code,start_business:{business_type:null==l?void 0:l.is_business,type_of_service:null==l?void 0:l.type_of_service,jurisdiction_country_code:null==l?void 0:l.jurisdiction_country_code,jurisdiction_state_code:null==l?void 0:l.jurisdiction_state_code,legal_entity_id:null==l?void 0:l.legal_entity_id},package_of_service:{product_id:null==l?void 0:l.product_id,is_united_states:null==l?void 0:l.is_united_states,united_states:null==l?void 0:l.united_states,is_international:null==l?void 0:l.is_international,international:null==l?void 0:l.international,number_of_employee:null==l?void 0:l.number_of_employee,number_of_director:null==l?void 0:l.number_of_director,number_of_shareholder:null==l?void 0:l.number_of_shareholder,is_additional_class:null==l?void 0:l.is_additional_class,number_of_additional_class:null==l?void 0:l.number_of_additional_class,product_additional_class_id:null==l?void 0:l.product_additional_class_id,director_product_id:null==l?void 0:l.director_product_id,shareholder_product_id:null==l?void 0:l.shareholder_product_id},entity_name:{proposal_name_1:null==l?void 0:l.proposal_name_1,proposal_suffix_id_1:null==l?void 0:l.proposal_suffix_id_1,proposal_name_2:null==l?void 0:l.proposal_name_2,proposal_suffix_id_2:null==l?void 0:l.proposal_suffix_id_2,company_name:null==l?void 0:l.company_name,ein:null==l?void 0:l.ein},company_details:{number_of_member:null==l?void 0:l.number_of_member,number_of_director:null==l?void 0:l.number_of_director,number_of_shareholder:null==l?void 0:l.number_of_shareholder,members:null==l?void 0:l.members,directors:null==l?void 0:l.directors,shareholders:null==l?void 0:l.shareholders,processing_time_id:null==l?void 0:l.processing_time_id},recommend_service:null==l?void 0:l.recommend_service,contact:{...null==l?void 0:l.contact,first_name:null==l?void 0:l.first_name,last_name:null==l?void 0:l.last_name}})}T.paymentStatus||!l.search||T.orderID||window.history.pushState({path:j},"",j),T.currentCurrency=null===(e=T.listCurrency)||void 0===e?void 0:e.find(e=>e.currency_code==o.r6),C({})},[]),(0,m.useEffect)(()=>
1{if(!T.orderID&&(null==k?void 0:k.order_repayment)||(null==k?void 0:k.location_code)&&(null==k?void 0:k.location_code)!=w){E(),D(i.DHf.STEP_START_BUSINESS);return}if(!T.paymentStatus&&(null==k?void 0:k.order_step))return D(null==k?void 0:k.order_step)},[null==k?void 0:k.order_step,null==k?void 0:k.location_code,null==k?void 0:k.order_repayment]),(0,m.useEffect)(()=>{var e;if(R){if(T.orderDetail&&R.user_email!=(null===(e=T.orderDetail)||void 0===e?void 0:e.email))return E(),(0,s.Fn)();(null==k?void 0:k.email)&&R.user_email!=(null==k?void 0:k.email)&&(E(),D(i.DHf.STEP_START_BUSINESS)),A(e=>({...e,userData:R}))}},[R,null==k?void 0:k.email]),(0,m.useEffect)(()=>{O&&A(e=>({...e,listSuffix:O}))},[O]),(0,m.useEffect)(()=>{(null==T?void 0:T.typeOfService)&&(E(),S({type_of_service:Number(null==T?void 0:T.typeOfService)}))},[null==T?void 0:T.typeOfService]),(0,m.useEffect)(()=>{(null==T?void 0:T.isConfirmation)&&(E(),window.scrollTo(0,0))},[null==T?void 0:T.isConfirmation]),(0,n.jsx)(p.Provider,{value:{...T,isLoading:M,btnNextText:P,btnBackText:L,btnNoThanksText:F,getPackages:U,setIsLoading:I,handleNextStep:B,handleBackStep:G,handleChangeStep:D,updateContextValue:Y,handleChangeStepAiHelper:K},children:b})},h=()=>(0,m.useContext)(p)},40118:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PaymentGateway:()=>d});var n=t(38694),i=t(48873),o=t(2508),a=t(74323),r=t(45734),s=t(72486);let d=(0,r.memo)(e=>{let{t:l,isLoading:t,paymentGateways:d,classNameHeading:c,currentPaymentGateway:u,setCurrentPaymentGateway:m}=e,_=(0,r.useMemo)(()=>(d||[]).filter(e=>{let l=navigator.userAgent||navigator.vendor||"",t=/Android/i.test(l),n=/iPhone|iPad|iPod/i.test(l);return!(t&&!n&&e.gateway_key&&e.gateway_key===i.OZN.PAYPAL_APPLEPAY)}),[d]);return(0,r.useEffect)(()=>{u||m(null==_?void 0:_[0])},[u,_,m]),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("h2",{className:c,children:null==l?void 0:l.txt_mp_select_your_payment_method}),(0,n.jsx)("ul",{className:"grid grid-cols-1 sm:!grid-cols-2 md:!grid-cols-3 gap-5 lg:!gap-6",children:_&&_.length>0&&_.map((e,l)=>(0,n.jsxs)("li",{onClick:()=>m(e),className:(0,o.cn)("flex cursor-pointer flex-col items-center justify-center px-[6px] gap-2.5 py-4 rounded-lg text-center outline",(null==u?void 0:u.gateway_key)===(null==e?void 0:e.gateway_key)?"outline-2 outline-primary":"outline-1 outline-gray-23",t&&"pointer-events-none"),children:[(0,n.jsx)(a.default,{width:130,height:32,title:null==e?void 0:e.gateway_title,src:(null==e?void 0:e.gateway_icon)||"/",alt:(null==e?void 0:e.gateway_title)||"",className:"w-full h-8 object-contain flex-shrink-0"}),(0,n.jsx)("span",{className:"text-13 text-black-7 font-medium",children:null==e?void 0:e.gateway_title})]},l))}),!d&&(0,n.jsx)(s.g,{})]})});d.displayName="PaymentGateway"},40867:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TextArea:()=>a});var n=t(38694),i=t(2508),o=t(45734);t(32347);let a=(0,o.forwardRef)(function(e,l){let{id:t,className:a,nameLabel:r,errorMessage:s,classNameInput:d,classNameError:c,classNameLabel:u,isCountMaxLength:m,..._}=e,[v,p]=(0,o.useState)("");return(0,n.jsxs)("div",{className:"".concat(a," relative w-full text-14"),children:[(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("label",{htmlFor:t,className:(0,i.cn)("font-semibold text-black",_.required&&"label-required ",!r&&"hidden",u),children:r}),(0,n.jsx)("textarea",{className:(0,i.cn)("style-scroll border-gray-6 px-2.5 py-4 text-md text-black min-h-[125px] rounded-xl border placeholder:text-md placeholder:text-gray-5 w-full appearance-none focus:outline-none focus:ring-0",s&&"border-red-1",d),ref:l,rows:2,..._,onChange:e=>{var l;p(e.target.value),null==_||null===(l=_.onChange)||void 0===l||l.call(_,e)}})]}),s&&(0,n.jsx)("div",{className:(0,i.cn)("text-primary",c),dangerouslySetInnerHTML:{__html:s}}),m&&(0,n.jsxs)("p",{className:"text-gray-5 text-12 absolute right-0 -bottom-4",children:[v.length,"/",_.maxLength]})]})})},40969:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ProcessingBar:()=>r});var n=t(38694),i=t(29432),o=t(48873),a=t(45734);let r=(0,a.memo)(()=>{let{step:e,configOrder:l}=(0,a.useContext)(i.w_),t=(0,a.useMemo)(()=>Object.values(o.DHf).filter(e=>"number"==typeof e).slice(1),[]),r=(0,a.useMemo)(()=>t.indexOf(e),[t,e]),s=(0,a.useMemo)(()=>((r+1)/t.length*100).toFixed(0),[r,t.length]);return(0,n.jsxs)("div",{className:"w-full max-w-[759px] flex flex-col gap-[2px]",children:[(0,n.jsx)("div",{className:"bg-gray-21 rounded lg:rounded-xl h-2 lg:h-2.5",children:(0,n.jsx)("div",{className:"h-full bg-red-1 rounded lg:rounded-xl transition-all duration-300 ease-in-out",style:{width:"".concat(s,"%")}})}),(0,n.jsxs)("div",{className:"flex justify-between items-center lg:font-medium text-xs lg:text-sm text-gray-54 lg:text-black",children:[(0,n.jsx)("p",{children:null==l?void 0:l.txt_processing}),(0,n.jsxs)("p",{children:[s,"%"]})]})]})});r.displayName="ProcessingBar"},42405:()=>{},42580:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ThreeDMarquee:()=>r});var n=t(38694),i=t(69054),o=t(2508),a=t(51752);let r=e=>{let{images:l,className:t}=e,r=(0,i._F)(1280),c=Math.ceil(l.length/4),u=Array.from({length:4},(e,t)=>{let n=t*c;return l.slice(n,n+c)});return r?null:(0,n.jsx)("div",{className:(0,o.cn)("mx-auto block overflow-hidden sticky top-0 right-0",t),children:(0,n.jsx)("div",{className:"flex size-full items-center justify-center",children:(0,n.jsx)("div",{className:"shrink-0 scale-[0.4]",children:(0,n.jsx)("div",{style:{transform:"rotateX(30deg) rotateY(0deg) rotateZ(15deg)"},className:"relative grid top-[500px] left-1/3 -translate-x-1/2 size-full origin-top-left grid-cols-4 gap-12 transform-3d",children:u.map((e,l)=>(0,n.jsxs)(a.T,{animate:{y:l%2==0?100:-100},transition:{duration:l%2==0?5:10,repeat:1/0,repeatType:"reverse"},className:"flex flex-col items-start gap-12",children:[(0,n.jsx)(d,{className:"-left-4",offset:"80px"}),e.map((e,l)=>(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(s,{className:"-top-4",offset:"20px"}),(0,n.jsx)(a.T,{tag:"img",transition:{duration:.3,ease:"easeInOut"},src:e,alt:"Image ".concat(l+1),className:"rounded-[20px] object-cover object-center",width:970,height:700}
1,l+e)]},l+e))]},l+"marquee"))})})})})},s=e=>{let{className:l,offset:t}=e;return(0,n.jsx)("div",{style:{"--background":"#ffffff","--color":"rgba(0, 0, 0, 0.2)","--height":"1px","--width":"5px","--fade-stop":"90%","--offset":t||"200px","--color-dark":"rgba(255, 255, 255, 0.2)",maskComposite:"exclude"},className:(0,o.cn)("absolute left-[calc(var(--offset)/2*-1)] h-[var(--height)] w-[calc(100%+var(--offset))]","bg-[linear-gradient(to_right,var(--color),var(--color)_50%,transparent_0,transparent)]","[background-size:var(--width)_var(--height)]","[mask:linear-gradient(to_left,var(--background)_var(--fade-stop),transparent),_linear-gradient(to_right,var(--background)_var(--fade-stop),transparent),_linear-gradient(black,black)]","[mask-composite:exclude]","z-30","dark:bg-[linear-gradient(to_right,var(--color-dark),var(--color-dark)_50%,transparent_0,transparent)]",l)})},d=e=>{let{className:l,offset:t}=e;return(0,n.jsx)("div",{style:{"--background":"#ffffff","--color":"rgba(0, 0, 0, 0.2)","--height":"5px","--width":"1px","--fade-stop":"90%","--offset":t||"150px","--color-dark":"rgba(255, 255, 255, 0.2)",maskComposite:"exclude"},className:(0,o.cn)("absolute top-[calc(var(--offset)/2*-1)] h-[calc(100%+var(--offset))] w-[var(--width)]","bg-[linear-gradient(to_bottom,var(--color),var(--color)_50%,transparent_0,transparent)]","[background-size:var(--width)_var(--height)]","[mask:linear-gradient(to_top,var(--background)_var(--fade-stop),transparent),_linear-gradient(to_bottom,var(--background)_var(--fade-stop),transparent),_linear-gradient(black,black)]","[mask-composite:exclude]","z-30","dark:bg-[linear-gradient(to_bottom,var(--color-dark),var(--color-dark)_50%,transparent_0,transparent)]",l)})}},43707:e=>{e.exports={imageContainer:"NextImages_imageContainer__1BPSG",img:"NextImages_img__yHZYb"}},45400:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Lid:()=>m,MacbookScroll:()=>u});var n=t(38694),i=t(69054),o=t(2508),a=t(93737),r=t(54710),s=t(63985),d=t(74323),c=t(45734);let u=e=>{let{src:l,showGradient:t,badge:o}=e,s=(0,c.useRef)(null),{scrollYProgress:d}=(0,a.L)({target:s,offset:["start start","end start"]}),u=(0,i._F)(1024),p=(0,r.G)(d,[0,.3],[1.2,1.5]),h=(0,r.G)(d,[0,.3],[.6,1.5807]),f=(0,r.G)(d,[0,1],[0,800]),g=(0,r.G)(d,[.1,.12,.3],[-28,-28,0]);return u?null:(0,n.jsxs)("div",{ref:s,className:"flex min-h-[1250px] shrink-0 transform flex-col items-center justify-start py-0 [perspective:800px] scale-100 pt-80 pb-10 relative z-[-5]",children:[(0,n.jsx)(m,{src:l,scaleX:p,scaleY:h,rotate:g,translate:f}),(0,n.jsxs)("div",{className:"relative -z-10 h-[22rem] w-[32rem] overflow-hidden rounded-2xl bg-gray-200 dark:bg-[#272729]",children:[(0,n.jsx)("div",{className:"relative h-10 w-full",children:(0,n.jsx)("div",{className:"absolute inset-x-0 mx-auto h-4 w-[80%] bg-[#050505]"})}),(0,n.jsxs)("div",{className:"relative flex",children:[(0,n.jsx)("div",{className:"mx-auto h-full w-[10%] overflow-hidden",children:(0,n.jsx)(x,{})}),(0,n.jsx)("div",{className:"mx-auto h-full w-[80%]",children:(0,n.jsx)(v,{})}),(0,n.jsx)("div",{className:"mx-auto h-full w-[10%] overflow-hidden",children:(0,n.jsx)(x,{})})]}),(0,n.jsx)(_,{}),(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-0 mx-auto h-2 w-20 rounded-tl-3xl rounded-tr-3xl bg-gradient-to-t from-[#272729] to-[#050505]"}),t&&(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-50 h-40 w-full bg-gradient-to-t from-white via-white to-transparent dark:from-black dark:via-black"}),o&&(0,n.jsx)("div",{className:"absolute bottom-4 left-4",children:o})]})]})},m=e=>{let{scaleX:l,scaleY:t,rotate:i,translate:o,src:a}=e;return(0,n.jsxs)("div",{className:"relative [perspective:800px]",children:[(0,n.jsx)("div",{style:{transform:"perspective(800px) rotateX(-25deg) translateZ(0px)",transformOrigin:"bottom",transformStyle:"preserve-3d"},className:"relative h-[12rem] w-[32rem] rounded-2xl bg-[#010101] p-2",children:(0,n.jsx)("div",{style:{boxShadow:"0px 2px 0px 2px #171717 inset"},className:"absolute inset-0 flex items-center justify-center rounded-lg bg-[#010101]",children:(0,n.jsx)("span",{className:"text-white",children:(0,n.jsx)(f,{})})})}),(0,n.jsx)(s.P.div,{style:{scaleX:l,scaleY:t,rotateX:i,translateY:o,transformStyle:"preserve-3d",transformOrigin:"top"},className:"absolute inset-0 h-96 w-[32rem] rounded-2xl shadow-md",children:(0,n.jsx)(d.default,{src:a,alt:"Image",title:"Image",className:"absolute inset-0 h-full w-full",width:1200,height:651,loading:"lazy"})})]})},_=()=>(0,n.jsx)("div",{className:"mx-auto my-1 h-32 w-[40%] rounded-xl",style:{boxShadow:"0px 0px 1px 1px #00000020 inset"}}),v=()=>(0,n.jsxs)("div",{className:"mx-1 h-full [transform:translateZ(0)] rounded-md bg-[#050505] p-1 [will-change:transform]",children:[(0,n.jsxs)("div",{className:"mb-[2px] flex w-full shrink-0 gap-[2px]",children:[(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"~"}),(0,n.jsx)("span",{className:"mt-1 block",children:"`"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"!"}),(0,n.jsx)("span",{className:"block",children:"1"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"@"}),(0,n.jsx)("span",{className:"block",children:"2"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"#"}),(0,n.jsx)("span",{className:"block",children:"3"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"$"}),(0,n.jsx)("span",{className:"block",children:"4"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"%"}),(0,n.jsx)("span",{className:"block",children:"5"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"^"}),(0,n.jsx)("span",{className:"block",children:"6"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"&"}),(0,n.jsx)("span",{className:"block",children:"7"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"*"}),(0,n.jsx)("span",{className:"block",children:"8"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"("}),(0,n.jsx)("span",{className:"block",children:"9"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:")"}),(0,n.jsx)("span",{className:"block",children:"0"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"â"}),(0,n.jsx)("span",{className:"block",children:"_"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"+"}),(0,n.jsx)("span",{className:"block",children:" = "})]}),(0,n.jsx)(p,{className:"w-10 items-end justify-end pr-[4px] pb-[2px]",childrenClassName:"items-end",children:"delete"})]}),(0,n.jsxs)("div",{className:"mb-[2px] flex w-full shrink-0 gap-[2px]",children:[(0,n.jsx)(p,{className:"w-10 items-end justify-start pb-[2px] pl-[4px]",childrenClassName:"items-start",children:"tab"}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"Q"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"W"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"E"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"R"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"T"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"Y"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"U"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"I"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"O"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"P"})}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"{"}),(0,n.jsx)("span",{className:"block",children:"["})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"}"}),(0,n.jsx)("span",{className:"block",children:"]"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"|"}),(0,n.jsx)("span",{className:"block",children:"\\"})]})]}),(0,n.jsxs)("div",{className:"mb-[2px] flex w-full shrink-0 gap-[2px]",children:[(0,n.jsx)(p,{className:"w-[2.8rem] items-end justify-start pb-[2px] pl-[4px]",childrenClassName:"items-start",children:"caps lock"}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"A"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"S"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"D"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"F"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"G"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"H"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"J"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"K"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"L"})}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:":"}),(0,n.jsx)("span",{className:"block",children:";"})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:'"'}),(0,n.jsx)("span",{className:"block",children:"'"})]}),(0,n.jsx)(p,{className:"w-[2.85rem] items-end justify-end pr-[4px] pb-[2px]",childrenClassName:"items-end",children:"return"})]}),(0,n.jsxs)("div",{className:"mb-[2px] flex w-full shrink-0 gap-[2px]",children:[(0,n.jsx)(p,{className:"w-[3.65rem] items-end justify-start pb-[2px] pl-[4px]",childrenClassName:"items-start",children:"shift"}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"Z"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"X"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"C"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"V"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"B"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"N"})}),(0,n.jsx)(p,{children:(0,n.jsx)("span",{className:"block",children:"M"})}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"<"}),(0,n.jsx)("span",{className:"block",children:","})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:">"}),(0,n.jsx)("span",{className:"block",children:"."})]}),(0,n.jsxs)(p,{children:[(0,n.jsx)("span",{className:"block",children:"?"}),(0,n.jsx)("span",{className:"block",children:"/"})]}),(0,n.jsx)(p,{className:"w-[3.65rem] items-end justify-end pr-[4px] pb-[2px]",childrenClassName:"items-end",children:"shift"})]}),(0,n.jsxs)("div",{className:"mb-[2px] flex w-full shrink-0 gap-[2px]",children:[(0,n.jsx)(p,{className:"",childrenClassName:"h-full justify-between py-[4px]",children:(0,n.jsx)("div",{className:"flex w-full justify-end pr-1",children:(0,n.jsx)("span",{className:"block",children:"fn"})})}),(0,n.jsx)(p,{className:"",childrenClassName:"h-full justify-between py-[4px]",children:(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)("span",{className:"block",children:"control"})})}),(0,n.jsxs)(p,{className:"",childrenClassName:"h-full justify-between py-[4px]",children:[(0,n.jsx)("div",{className:"flex w-full justify-end pr-1",children:(0,n.jsx)(h,{className:"h-[6px] w-[6px]"})}),(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)("span",{className:"block",children:"option"})})]}),(0,n.jsx)(p,{className:"w-8",childrenClassName:"h-full justify-between py-[4px]",children:(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)("span",{className:"block",children:"command"})})}),(0,n.jsx)(p,{className:"w-[8.2rem]"}),(0,n.jsx)(p,{className:"w-8",childrenClassName:"h-full justify-between py-[4px]",children:(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)("span",{className:"block",children:"command"})})}),(0,n.jsxs)(p,{className:"",childrenClassName:"h-full justify-between py-[4px]",children:[(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)(h,{className:"h-[6px] w-[6px]"})}),(0,n.jsx)("div",{className:"flex w-full justify-start pl-1",children:(0,n.jsx)("span",{className:"block",children:"option"})})]})]})]}),p=e=>{let{className:l,children:t,childrenClassName:i,backlit:a=!0}=e;return(0,n.jsx)("div",{className:(0,o.cn)("[transform:translateZ(0)] rounded-[4px] p-[0.5px] [will-change:transform]",a&&"bg-white/[0.2] shadow-xl shadow-white"),children:(0,n.jsx)("div",{className:(0,o.cn)("flex h-6 w-6 items-center justify-center rounded-[3.5px] bg-[#0A090D]",l),style:{boxShadow:"0px -0.5px 2px 0 #0D0D0F inset, -0.5px 0px 2px 0 #0D0D0F inset"},children:(0,n.jsx)("div",{className:(0,o.cn)("flex w-full flex-col items-center justify-center text-[5px] text-neutral-200",i,a&&"text-white"),children:t})})})},x=()=>
1(0,n.jsx)("div",{className:"mt-2 flex h-40 gap-[2px] px-[0.5px]",style:{backgroundImage:"radial-gradient(circle, #08080A 0.5px, transparent 0.5px)",backgroundSize:"3px 3px"}}),h=e=>{let{className:l}=e;return(0,n.jsxs)("svg",{fill:"none",version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:l,children:[(0,n.jsx)("rect",{stroke:"currentColor",strokeWidth:2,x:"18",y:"5",width:"10",height:"2"}),(0,n.jsx)("polygon",{stroke:"currentColor",strokeWidth:2,points:"10.6,5 4,5 4,7 9.4,7 18.4,27 28,27 28,25 19.6,25 "}),(0,n.jsx)("rect",{id:"_Transparent_Rectangle_",className:"st0",width:"32",height:"32",stroke:"none"})]})},f=()=>(0,n.jsx)("svg",{width:"66",height:"65",viewBox:"0 0 66 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 text-white",children:(0,n.jsx)("path",{d:"M8 8.05571C8 8.05571 54.9009 18.1782 57.8687 30.062C60.8365 41.9458 9.05432 57.4696 9.05432 57.4696",stroke:"currentColor",strokeWidth:"15",strokeMiterlimit:"3.86874",strokeLinecap:"round"})})},45667:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Input:()=>_});var n=t(38694),i=t(27321),o=t.n(i),a=t(2508),r=t(45734),s=t(42500),d=t(43776),c=t(49951),u=t(66011),m=function(e){return e.text="text",e.password="password",e.email="email",e.number="number",e.tel="tel",e}(m||{});let _=(0,r.forwardRef)(function(e,l){let{errorMessage:t,className:i,classNameInput:m,classNameError:_="absolute -bottom-5 left-0",classNameIcon:v="absolute top-10 right-3 cursor-pointer",id:p,placeholder:x,nameLabel:h,classNameLabel:f,helperText:g,classNameHelper:b,isEmail:y,isFullName:j,tooltip:N,classNameTooltip:w,type:k,...S}=e,[C,E]=(0,r.useState)(!1),R=()=>{E(e=>!e)},O=e=>{let l=e.target.value.replace(/ {2,}/g," "),t=(0,a.ZV)(l);e.target.value="number"===k||"tel"===k?t:l};return(0,n.jsxs)("div",{className:"".concat(i," text-14"),children:[(0,n.jsxs)("div",{className:"jsx-337b9deb3e8b6280 flex flex-col relative gap-2",children:[h&&(0,n.jsxs)("div",{className:"jsx-337b9deb3e8b6280 flex gap-1 w-fit",children:[(0,n.jsx)("label",{htmlFor:p,dangerouslySetInnerHTML:{__html:h||""},className:"jsx-337b9deb3e8b6280 "+((0,a.cn)("font-semibold text-black",f,S.required&&"label-required")||"")}),N&&(0,n.jsx)(u.o,{content:N,className:w})]}),g&&(0,n.jsx)("p",{className:"jsx-337b9deb3e8b6280 "+((0,a.cn)("text-sm text-[#777777]",b)||""),children:g}),(0,n.jsx)("input",{ref:l,onChange:e=>{O(e),(null==S?void 0:S.onChange)&&(null==S||S.onChange(e))},type:"password"===k?C?"text":"password":k,placeholder:x,...S,className:"jsx-337b9deb3e8b6280 "+(S&&null!=S.className&&S.className||(0,a.cn)("text-md text-black border-gray-6 h-13 w-full appearance-none rounded-xl border px-2.5 placeholder:text-md placeholder:text-placeholder focus:outline-none focus:ring-0",(y||j)&&"pr-8",t&&"border-primary",m)||"")}),(0,n.jsx)(o(),{id:"337b9deb3e8b6280",children:'input.jsx-337b9deb3e8b6280::-webkit-outer-spin-button,input.jsx-337b9deb3e8b6280::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type="number"].jsx-337b9deb3e8b6280{-moz-appearance:textfield}'}),t&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:"jsx-337b9deb3e8b6280 "+((0,a.cn)("text-primary",_)||"")}),"password"===k&&(C?(0,n.jsx)(c.t,{onClick:R,className:v}):(0,n.jsx)(d.W,{onClick:R,className:v}))]}),y&&(0,n.jsx)(s.aZ,{className:"absolute right-2 h-5 w-5 cursor-pointer top-10"}),j&&(0,n.jsx)(s.aR,{className:"absolute right-2 h-5 w-5 cursor-pointer top-10"})]})})},46075:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepEntityName:()=>p});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(83924),m=t(45734),_=t(29722),v=t(46561);let p=(0,m.memo)((0,m.forwardRef)(function(e,l){var t,p,x,h,f,g,b,y,j,N;(0,m.useImperativeHandle)(l,()=>({onSubmit:q}));let{isLoading:w,listSuffix:k,listCountries:S,configOrder:C,listLegalEntity:E,errors:R,setIsLoading:O,handleNextStep:T,updateContextValue:A}=(0,m.useContext)(i.w_),{orderStore:M,updateOrderStore:I,clearOrderStore:P}=(0,s.Fc)(),L=(0,m.useMemo)(()=>{var e;return null==M?void 0:null===(e=M.start_business)||void 0===e?void 0:e.type_of_service},[null==M?void 0:null===(t=M.start_business)||void 0===t?void 0:t.type_of_service]),F=(0,m.useMemo)(()=>null==E?void 0:E.find(e=>{var l;return e.legal_entity_id===(null==M?void 0:null===(l=M.start_business)||void 0===l?void 0:l.legal_entity_id)}),[null==M?void 0:null===(p=M.start_business)||void 0===p?void 0:p.legal_entity_id]),D=(0,m.useMemo)(()=>null==M?void 0:M.entity_name,[null==M?void 0:M.entity_name]),{reset:K,trigger:B,setError:G,register:U,getValues:Y,control:z,formState:{errors:H}}=(0,_.mN)({mode:"all",resolver:(0,u.t)((0,d.Uq)(C,k))}),q=(0,m.useCallback)(async()=>{var e,l,t,n;if(w)return;if(!await B())return!1;O(!0);let i=await (0,d.Ji)(),o={order_id:null==M?void 0:M.order_id,proposal_name_1:Y("proposal_name_1")||"",proposal_suffix_id_1:null===(e=Y("proposal_suffix_id_1"))||void 0===e?void 0:e.suffix_id,proposal_name_2:Y("proposal_name_2")||"",proposal_suffix_id_2:null===(l=Y("proposal_suffix_id_2"))||void 0===l?void 0:l.suffix_id,proposal_name_3:Y("proposal_name_3")||"",proposal_suffix_id_3:null===(t=Y("proposal_suffix_id_3"))||void 0===t?void 0:t.suffix_id,company_name:Y("company_name")||"",ein:Y("ein")||"",company_jurisdiction:(null===(n=Y("company_jurisdiction"))||void 0===n?void 0:n.value)||"",gRecaptchaToken:i,url:window.location.href},r=await a.xN.submitEntityName(o),s=(0,a.jN)(r);if(!(null==r?void 0:r.success)&&(v.oR.error((null==r?void 0:r.message)||(null==C?void 0:C.txt_toaster_failed_common)),s&&A({errors:s}),(null==r?void 0:r.statusCode)==d.kG.NotFound)){P(),window.location.reload();return}(null==r?void 0:r.data)&&V(null==r?void 0:r.data),O(!1)},[w]),V=(0,m.useCallback)(e=>{var l,t,n,i;let o={order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code,entity_name:{proposal_name_1:Y("proposal_name_1")||"",proposal_suffix_id_1:null===(l=Y("proposal_suffix_id_1"))||void 0===l?void 0:l.suffix_id,proposal_name_2:Y("proposal_name_2")||"",proposal_suffix_id_2:null===(t=Y("proposal_suffix_id_2"))||void 0===t?void 0:t.suffix_id,proposal_name_3:Y("proposal_name_3")||"",proposal_suffix_id_3:null===(n=Y("proposal_suffix_id_3"))||void 0===n?void 0:n.suffix_id,company_name:Y("company_name")||"",ein:Y("ein")||"",company_jurisdiction:(null===(i=Y("company_jurisdiction"))||void 0===i?void 0:i.value)||""}};T(),I(o),A({errors:{}})},[]);return(0,r.VT)(G,R),(0,m.useEffect)(()=>
1{if(!D)return;let e=Y();!(e&&Object.keys(e).some(l=>!!e[l]))&&(L!=o.Rj3.US_COMPANY_FORMATION||(null==k?void 0:k.length))&&K({proposal_name_1:null==D?void 0:D.proposal_name_1,proposal_suffix_id_1:null==k?void 0:k.find(e=>e.suffix_id==(null==D?void 0:D.proposal_suffix_id_1)),proposal_name_2:null==D?void 0:D.proposal_name_2,proposal_suffix_id_2:null==k?void 0:k.find(e=>e.suffix_id==(null==D?void 0:D.proposal_suffix_id_2)),proposal_name_3:null==D?void 0:D.proposal_name_3,proposal_suffix_id_3:null==k?void 0:k.find(e=>e.suffix_id==(null==D?void 0:D.proposal_suffix_id_3)),company_name:null==D?void 0:D.company_name,ein:null==D?void 0:D.ein,company_jurisdiction:null==S?void 0:S.find(e=>e.value==(null==D?void 0:D.company_jurisdiction))})},[D,k]),(0,n.jsxs)("form",{noValidate:!0,onSubmit:q,className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold mb-3 font-secondary",children:null==C?void 0:C.lbl_entity_name}),(0,n.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 mt-5",children:k?(0,n.jsx)(m.Fragment,{children:(null==k?void 0:k.length)?(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(c.pd,{maxLength:255,disabled:w,...U("proposal_name_1"),tooltip:null==C?void 0:C.tooltip_order_entity_name,errorMessage:null==H?void 0:null===(x=H.proposal_name_1)||void 0===x?void 0:x.message,nameLabel:"".concat(null==C?void 0:null===(h=C.txt_order_entity_label)||void 0===h?void 0:h.replace("|||ENTITY_NAME|||","".concat(null==F?void 0:F.legal_entity_short_name))," #1")}),(0,n.jsx)(c.$k,{control:z,isShowPlaceholder:!0,option:k,isDisabled:w,id:"proposal_suffix_id_1",name:"proposal_suffix_id_1",placeholder:null==C?void 0:C.txt_please_select,tooltip:null==F?void 0:F.legal_entity_tooltip,nameLabel:"".concat(null==C?void 0:C.txt_order_designatore_label," #1")}),(0,n.jsx)(c.pd,{maxLength:255,disabled:w,...U("proposal_name_2"),tooltip:null==C?void 0:C.tooltip_order_entity_name,errorMessage:null==H?void 0:null===(f=H.proposal_name_2)||void 0===f?void 0:f.message,nameLabel:"".concat(null==C?void 0:null===(g=C.txt_order_entity_label)||void 0===g?void 0:g.replace("|||ENTITY_NAME|||","".concat(null==F?void 0:F.legal_entity_short_name))," #2")}),(0,n.jsx)(c.$k,{control:z,isShowPlaceholder:!0,option:k,isDisabled:w,id:"proposal_suffix_id_2",name:"proposal_suffix_id_2",placeholder:null==C?void 0:C.txt_please_select,tooltip:null==F?void 0:F.legal_entity_tooltip,nameLabel:"".concat(null==C?void 0:C.txt_order_designatore_label," #2")}),(0,n.jsx)(c.pd,{maxLength:255,disabled:w,...U("proposal_name_3"),tooltip:null==C?void 0:C.tooltip_order_entity_name,errorMessage:null==H?void 0:null===(b=H.proposal_name_3)||void 0===b?void 0:b.message,nameLabel:"".concat(null==C?void 0:null===(y=C.txt_order_entity_label)||void 0===y?void 0:y.replace("|||ENTITY_NAME|||","".concat(null==F?void 0:F.legal_entity_short_name))," #3")}),(0,n.jsx)(c.$k,{control:z,isShowPlaceholder:!0,option:k,isDisabled:w,id:"proposal_suffix_id_3",name:"proposal_suffix_id_3",placeholder:null==C?void 0:C.txt_please_select,tooltip:null==F?void 0:F.legal_entity_tooltip,nameLabel:"".concat(null==C?void 0:C.txt_order_designatore_label," #3")})]}):(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(c.pd,{required:!0,maxLength:255,disabled:w,...U("company_name"),nameLabel:null==C?void 0:C.lbl_order_company_name,errorMessage:null==H?void 0:null===(j=H.company_name)||void 0===j?void 0:j.message}),(0,n.jsx)(c.pd,{required:!0,maxLength:10,disabled:w,...U("ein"),nameLabel:null==C?void 0:C.lbl_order_ein,errorMessage:null==H?void 0:null===(N=H.ein)||void 0===N?void 0:N.message}),(0,n.jsx)(c.$k,{control:z,isShowPlaceholder:!0,option:S,isDisabled:w,id:"company_jurisdiction",name:"company_jurisdiction",nameLabel:null==C?void 0:C.lbl_order_jurisdiction_incorporation,placeholder:null==C?void 0:C.lbl_order_jurisdiction_incorporation_plc})]})}):(0,n.jsx)("div",{className:"lg:col-span-2",children:(0,n.jsx)(i.eI,{number:1})})})]})}))},47070:(e,l,t)=>{"use strict";t.r(l),t.d(l,{JurisdictionMenu:()=>s});var n=t(38694),i=t(29432),o=t(36791),a=t.n(o),r=t(45734);let s=e=>{var l;let{jurisdiction:t}=e,{langLocationSlashed:o,configGlobal:s}=(0,r.useContext)(i.BR);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"max-w-[295px] mr-20 flex-shrink-0",children:[(0,n.jsx)(a(),{href:"".concat(o,"/").concat(t.menu_link),title:null==t?void 0:t.menu_sub_name,className:"text-24 font-semibold leading-1-4",children:null==t?void 0:t.menu_sub_name}),(0,n.jsx)("p",{className:"mt-1 text-14 leading-1-6",children:null==t?void 0:t.menu_description})]}),(0,n.jsx)("div",{className:"grid grid-cols-3 gap-10 w-full",children:null==t?void 0:null===(l=t.menu_children)||void 0===l?void 0:l.map((e,l)=>{var t;return(0,n.jsxs)("div",{className:"min-w-[248px] flex flex-col gap-4",children:[(0,n.jsx)(a(),{href:"".concat(o,"/").concat(e.menu_link),title:e.menu_name,className:"text-18 font-semibold leading-1-4",children:e.menu_name}),(0,n.jsx)("div",{className:"pl-4 border-l border-gray grid gap-3",children:null==e?void 0:null===(t=e.menu_children)||void 0===t?void 0:t.map((e,l)=>(0,n.jsx)(a(),{href:"".concat(o,"/").concat(e.menu_link),title:e.menu_name,className:"text-16 leading-1-4 hover:text-primary",children:e.menu_name},l))}),(null==e?void 0:e.menu_view_link)&&(0,n.jsx)(a(),{href:"".concat(o,"/").concat(e.menu_view_link),title:null==s?void 0:s.txt_view_all,className:"text-16 leading-1-4 underline hover:text-primary font-semibold",children:null==s?void 0:s.txt_view_all})]},l)})})]})}},50181:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CookieConsentInEea:()=>p});var n=t(38694),i=t(69054),o=t(29947),a=t(2508),r=t(74323),s=t(36791),d=t.n(s),c=t(50280),u=t(45734),m=t(78751),_=t.n(m),v=function(e){return e.COOKIE_SETTING="COOKIE_SETTING",e.COOKIE_BOX="COOKIE_BOX",e.COOKIE_CHECKBOX="COOKIE_CHECKBOX",e}(v||{});let p=e=>{var l,t,s,m,v,p,x,h,f,g,b,y,j,N;let{t:w}=e,{consentCookie:k,updateConsentCookie:S}=(0,o.A)(),[C,E]=(0,u.useState)(!0),[R,O]=(0,u.useState)(),T=(0,c.useSelectedLayoutSegment)(),[A,M]=(0,u.useState)(0===Object.keys(k).length?{necessary:!0,preferences:!0,statistics:!0,markets:!0}:k);(0,u.useEffect)(()=>{0!==Object.keys(k).length?(M(k),O("COOKIE_SETTING")):O("COOKIE_BOX")},[k]);let I=()=>{S({necessary:!1,preferences:!1,statistics:!1,markets:!1}),M(k),O("COOKIE_SETTING")},P=()=>{S({necessary:!0,preferences:!0,statistics:!0,markets:!0}),M(k),O("COOKIE_SETTING")},L=(0,a.Ol)(null==w?void 0:w.txt_schema_consent_cookie),F=()=>{O("COOKIE_BOX")};return((0,u.useEffect)(()=>
1{let e=document.getElementById("cookie-setting");return e&&e.addEventListener("click",F),()=>{e&&e.removeEventListener("click",F)}},[]),(0,i.GU)("cookie-setting",()=>{O(0===Object.keys(k).length?"COOKIE_CHECKBOX":"COOKIE_BOX")}),"(single)"===T)?null:"COOKIE_SETTING"===R?(0,n.jsx)("div",{className:"cookie-setting ".concat(_()["cookie-setting"]," z-10 fixed bottom-0 left-2.5 cursor-pointer rounded-t-[15px] bg-white px-3 pb-2 pt-2.5 text-12 font-semibold uppercase leading-1 shadow-[1px_2px_8px_0_rgba(0,0,0,0.2)] transition-all duration-200 hover:pb-[13px]"),children:null==L?void 0:L.txt_cookie_settings}):(0,n.jsxs)("div",{className:"".concat(_()["consent-cookie"]," ").concat("COOKIE_CHECKBOX"===R?"pointer-events-auto":"pointer-events-none"," fixed left-0 top-0 z-[9999] flex h-screen w-full items-center"),children:[(0,n.jsx)("div",{className:"".concat("COOKIE_BOX"===R?"bottom-0":"bottom-[-300px]"," pointer-events-auto fixed left-0 mx-auto my-0 w-full bg-white p-[25px_15px_15px] shadow-[0_-1px_5px_0_rgb(128,128,128)] transition-all duration-500 2md:!p-[25px_60px_12px_50px]"),children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex justify-between",children:(0,n.jsx)("h3",{className:"mb-4 mt-0 text-18 text-black-2 leading-1-1",children:(0,n.jsx)("strong",{children:null==L?void 0:null===(l=L.txt_cookie_box)||void 0===l?void 0:l.txt_cookie_box_title})})}),(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between gap-5 2md:!flex-row",children:[(0,n.jsxs)("div",{className:"text-13 leading-[22.4px]",children:[(0,n.jsxs)("p",{className:"m-0 text-black-6",children:[null==L?void 0:null===(t=L.txt_cookie_box)||void 0===t?void 0:t.txt_cookie_box_description,(0,n.jsx)(d(),{href:null==L?void 0:L.href_cookie_policy,target:"_self",title:"Learn More",className:"text-red-6 ml-1",children:(0,n.jsx)("u",{children:null==L?void 0:L.txt_learn_more})})]}),(0,n.jsxs)("strong",{className:"mt-[15px] inline-flex gap-[5px] text-12",role:"button",onClick:()=>O("COOKIE_CHECKBOX"),children:[(0,n.jsx)("svg",{viewBox:"0 0 9.62 9.57",className:"w-[15px]",children:(0,n.jsx)("path",{fill:"#5b5b5b",d:"M9.46,6.06l-1.1-.78c0-.16.06-.31.06-.47a1.27,1.27,0,0,0-.06-.47L9.57,3.4l-1.15-2L7,1.93a2.74,2.74,0,0,0-.83-.47L6,0H3.61L3.35,1.46a7.14,7.14,0,0,0-.79.47L1.15,1.36,0,3.4l1.15.94c0,.16,0,.31,0,.47a1.51,1.51,0,0,0,0,.47l-1,.78A.75.75,0,0,0,0,6.17l1.15,2,1.41-.58a2.49,2.49,0,0,0,.84.47l.21,1.47H6a.53.53,0,0,1,0-.21L6.22,8.1a4,4,0,0,0,.84-.47l1.41.58,1.15-2A.75.75,0,0,0,9.46,6.06Zm-4.65.19A1.47,1.47,0,1,1,6.28,4.78,1.47,1.47,0,0,1,4.81,6.25Z"})}),null==L?void 0:L.btn_show_details]})]}),(0,n.jsxs)("div",{className:"flex w-full flex-col-reverse items-center justify-center gap-2 text-center 2md:!mr-[300px] 2md:!w-auto 3xl:!flex-row 3xl:!gap-4",children:[(0,n.jsx)("button",{className:"m-0 h-11 min-w-full rounded-[30px] border border-[#a8a8a8] bg-white text-16 2md:!text-12 font-bold uppercase text-black-6 transition-all duration-200 hover:bg-[#a8a8a8] hover:text-white 2md:!h-[42.39px] 2md:!min-w-[200px]",onClick:I,children:null==L?void 0:L.btn_decline_all}),(0,n.jsx)("button",{className:"m-0 h-11 min-w-full rounded-[30px] border border-red-6 bg-red-6 text-16 2md:!text-12 font-bold uppercase text-white transition-all duration-200 hover:bg-white hover:text-red-6 2md:!h-[42.39px] 2md:!min-w-[200px]",onClick:P,children:null==L?void 0:L.btn_accept_all})]})]})]})}),(0,n.jsx)("div",{className:"".concat("COOKIE_CHECKBOX"===R?"absolute":"hidden"," left-0 top-0 h-full w-full bg-[rgba(0,0,0,0.85)]")}),(0,n.jsxs)("div",{className:"".concat("COOKIE_CHECKBOX"===R?"top-0 2md:!top-1/2":"top-[-200%]"," absolute left-0 mx-auto my-0 h-full w-full bg-white transition-all duration-500 2md:!left-1/2 2md:!h-fit 2md:!w-[960px] 2md:!max-w-[calc(100vw-30px)] 2md:!-translate-x-1/2 2md:!-translate-y-1/2 2md:!rounded-[30px]"),children:[(0,n.jsxs)("div",{className:"flex justify-between items-center border-b border-gray-5 px-4 py-2 2md:!px-[30px] 2md:!py-4",children:[(0,n.jsx)("h3",{className:"m-0 mt-0 flex justify-between text-20 font-bold text-red-6",children:null==L?void 0:null===(s=L.txt_cookie_check_box)||void 0===s?void 0:s.txt_cookie_check_box_title}),(0,n.jsx)(r.default,{src:"https://d3e5x5g6n8is1m.cloudfront.net/frontend/images/icon-close.svg",alt:"Close",title:"Close",className:"h-[12.55px] w-[12.55px] cursor-pointer",width:12.55,height:12.55,onClick:()=>O("COOKIE_BOX")})]}),(0,n.jsxs)("div",{className:"max-h-[calc(100vh-230px)] overflow-scroll leading-[22.4px] 2md:!max-h-[590px] 2md:!pb-[65px]",children:[(0,n.jsx)("div",{className:"text-14 2md:!text-13 border-b border-gray-5",children:(0,n.jsx)("div",{className:"px-4 py-2 2md:!px-[30px] 2md:!py-4",children:(0,n.jsxs)("div",{className:"mb-0 text-black-6",children:[null==L?void 0:null===(m=L.txt_cookie_check_box)||void 0===m?void 0:m.txt_cookie_check_box_description_1,C?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:".."}),(0,n.jsx)("span",{className:"inline cursor-pointer text-red-6",onClick:()=>E(!C),children:null==L?void 0:L.txt_show_more})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)("br",{}),(0,n.jsxs)("p",{className:"text-xs-14 mb-[15px] text-black-2",children:[null==L?void 0:null===(v=L.txt_cookie_check_box)||void 0===v?void 0:v.txt_cookie_check_box_description_2,(0,n.jsx)("a",{href:"mailto:".concat(null==w?void 0:w.txt_mail_support_oneibc),title:null==w?void 0:w.txt_mail_support_oneibc,target:"_blank",className:"hover:text-red-6 mx-1",children:null==w?void 0:w.txt_mail_support_oneibc}),null==L?void 0:null===(p=L.txt_cookie_check_box)||void 0===p?void 0:p.txt_cookie_check_box_description_3,(0,n.jsx)("a",{href:"/info/cookie-policy",target:"_self",title:"Learn More",className:"text-red-6 ml-1",children:null==L?void 0:L.txt_read_more})]}),(0,n.jsx)("p",{className:"!m-0",children:(0,n.jsx)("span",{className:"inline cursor-pointer text-red-6",onClick:()=>E(!C),children:null==L?void 0:L.txt_show_less})})]})]})})}),(0,n.jsxs)("div",{className:"flex flex-col flex-wrap items-stretch",children:[(0,n.jsxs)("div",{className:"w-full border-b border-gray-5 px-4 py-2 text-13 2md:!px-[30px] 2md:!py-4 ",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-18 leading-1-5 text-black-2 mb-4",children:(0,n.jsx)("strong",{children:null==L?void 0:null===(x=L.txt_cookie_check_box)||void 0===x?void 0:x.txt_cookie_check_box_necessary_title})}),(0,n.jsx)("strong",{className:"text-16 text-[#008D48]",children:null==L?void 0:L.txt_mandatory})]}),(0,n.jsx)("div",{className:"mb-2.5 text-14 2md:!text-15 text-black-6",children:null==L?void 0:null===(h=L.txt_cookie_check_box)||void 0===h?void 0:h.txt_cookie_check_box_necessary_description})]}),(0,n.jsxs)("div",{className:"w-full border-b border-gray-5 px-4 py-2 text-13 2md:!px-[30px] 2md:!py-4 ",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-18 leading-1-5 text-black-2 mb-4",children:(0,n.jsx)("strong",{children:null==L?void 0:null===(f=L.txt_cookie_check_box)||void 0===f?void 0:f.txt_cookie_check_box_preferences_title})}),(0,n.jsxs)("label",{className:"relative mb-0 inline-block h-[26px] w-[50px]",children:[(0,n.jsx)("input",{type:"checkbox",name:"consentPreferences",className:"hidden",onChange:()=>M({...A,preferences:!A.preferences})}),(0,n.jsx)("span",{className:"".concat(A.preferences?"bg-[#0C63E7]":"bg-[#ccc]"," absolute left-0 top-0 h-full w-full cursor-pointer rounded-[34px]"),children:(0,n.jsx)("span",{className:"".concat(A.preferences?"translate-x-6":""," absolute left-[2px] top-[2px] h-[22px] w-[22px] rounded-[50%] bg-white transition-all duration-200")})})]})]}),(0,n.jsx)("p",{className:"mb-2.5 text-14 2md:!text-15 text-black-6",children:null==L?void 0:null===(g=L.txt_cookie_check_box)||void 0===g?void 0:g.txt_cookie_check_box_preferences_description})]}),(0,n.jsxs)("div",{className:"w-full border-b border-gray-5 px-4 py-2 text-13 2md:!px-[30px] 2md:!py-4 ",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-18 leading-1-5 text-black-2 mb-4",children:(0,n.jsx)("strong",{children:null==L?void 0:null===(b=L.txt_cookie_check_box)||void 0===b?void 0:b.txt_cookie_check_box_statistics_title})}),(0,n.jsxs)("label",{className:"relative mb-0 inline-block h-[26px] w-[50px]",children:[(0,n.jsx)("input",{type:"checkbox",name:"consentStatistics",className:"hidden",onChange:()=>M({...A,statistics:!A.statistics}),checked:A.statistics}),(0,n.jsx)("span",{className:"".concat(A.statistics?"bg-[#0C63E7]":"bg-[#ccc]"," absolute left-0 top-0 h-full w-full cursor-pointer rounded-[34px]"),children:(0,n.jsx)("span",{className:"".concat(A.statistics?"translate-x-6":""," absolute left-[2px] top-[2px] h-[22px] w-[22px] rounded-[50%] bg-white transition-all duration-200")})})]})]}),(0,n.jsx)("p",{className:"mb-2.5 text-14 2md:!text-15 text-black-6",children:null==L?void 0:null===(y=L.txt_cookie_check_box)||void 0===y?void 0:y.txt_cookie_check_box_statistics_description})]}),(0,n.jsxs)("div",{className:"w-full border-b border-gray-5 px-4 py-2 text-13 2md:!px-[30px] 2md:!py-4 ",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h4",{className:"text-18 leading-1-5 text-black-2 mb-4",children:(0,n.jsx)("strong",{children:null==L?void 0:null===(j=L.txt_cookie_check_box)||void 0===j?void 0:j.txt_cookie_check_box_markets_title})}),(0,n.jsxs)("label",{className:"relative mb-0 inline-block h-[26px] w-[50px]",children:[(0,n.jsx)("input",{type:"checkbox",name:"consentMarkets",className:"hidden",onChange:()=>M({...A,markets:!A.markets}),checked:A.markets}),(0,n.jsx)("span",{className:"".concat(A.markets?"bg-[#0C63E7]":"bg-[#ccc]"," absolute left-0 top-0 h-full w-full cursor-pointer rounded-[34px]"),children:(0,n.jsx)("span",{className:"".concat(A.markets?"translate-x-6":""," absolute left-[2px] top-[2px] h-[22px] w-[22px] rounded-[50%] bg-white transition-all duration-200")})})]})]}),(0,n.jsx)("p",{className:"mb-2.5 text-14 2md:!text-15 text-black-6",children:null==L?void 0:null===(N=L.txt_cookie_check_box)||void 0===N?void 0:N.txt_cookie_check_box_markets_description})]})]})]}),(0,n.jsxs)("div",{className:"absolute bottom-0 left-0 flex w-full flex-col-reverse items-center justify-center gap-2 rounded-2xl bg-[linear-gradient(180deg,rgba(255,255,255,0)_0%,_#FFFFFF_17.01%,_#FFFFFF_100%)] p-[15px_18px_15px_18px] text-center font-bold 2md:!flex-row 2md:!gap-4",children:[(0,n.jsx)("button",{className:"h-11 min-w-full rounded-[30px] border border-[#a8a8a8] text-16 2md:!text-12 uppercase text-black-6 transition-all duration-200 hover:bg-[#a8a8a8] hover:text-white 2md:!h-[42.39px] 2md:!w-[289px] 2md:!min-w-[200px]",onClick:I,children:null==L?void 0:L.btn_decline_all}),(0,n.jsx)("button",{className:"h-11 min-w-full rounded-[30px] border border-red-6 text-16 2md:!text-12 uppercase text-red-6 transition-all duration-200 hover:bg-red-6 hover:text-white 2md:!h-[42.39px] 2md:!w-[289px] 2md:!min-w-[200px]",onClick:()=>{S({...A,necessary:!0}),O("COOKIE_SETTING")},children:null==L?void 0:L.btn_save_and_close}),(0,n.jsx)("button",{className:"h-11 min-w-full rounded-[30px] border border-red-6 bg-red-6 text-16 2md:!text-12 uppercase text-white transition-all duration-200 hover:bg-white hover:text-red-6 2md:!h-[42.39px] 2md:!w-[289px] 2md:!min-w-[200px]",onClick:P,children:null==L?void 0:L.btn_accept_all})]})]})]})}},51752:(e,l,t)=>{"use strict";t.d(l,{T:()=>n.Motion});var n=t(5444)},53719:(e,l,t)=>{"use strict";t.r(l),t.d(l,{NextImage:()=>r});var n=t(38694),i=t(74323),o=t(43707),a=t.n(o);let r=e=>{let{src:l,alt:t,width:o,height:r,title:s,className:d="",quality:c=75,...u}=e;return(0,n.jsx)("div",{className:"image-container ".concat(d),children:(0,n.jsx)(i.default,{src:l||"/",alt:t||"",title:s,width:o,height:r,quality:c,className:"".concat(a().img," transition-transform duration-300 hover:scale-110"),...u})})}},54343:(e,l,t)=>{"use strict";t.d(l,{x7:()=>o.InformationPanelSummary,pY:()=>i.OrderPanelSummary,j4:()=>n.SummaryPanelPopup});var n=t(18914),i=t(84516),o=t(55894)},54945:(e,l,t)=>{"use strict";t.r(l),t.d(l,{FormSkeleton:()=>i});var n=t(38694);let i=e=>{let{number:l=5}=e,t=Array.from({length:l});return(0,n.jsxs)("div",{className:"grid grid-cols-1 w-full p-5",children:[(0,n.jsx)("div",{className:"skeleton-box w-full h-10 rounded mb-6"}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-y-4 md:!gap-y-4",children:t.map((e,l)=>(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"h-4 skeleton-box w-full rounded mb-2"}),(0,n.jsx)("div",{className:"w-full skeleton-box h-10 rounded "})]},l))})]})}},55543:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepCompanyMember:()=>N});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(8256),s=t(2508),d=t(45734),c=t(46561),u=t(69054),m=t(83924),_=t(29722),v=t(93220),p=t(94674),x=t(42500);let h=(0,d.memo)(e=>{let{legalEntity:l,register:t,control:i,errors:o}=e,{isLoading:a,listNationality:c,configOrder:u}=(0,d.useContext)(v.w_),{orderStore:m}=(0,r.Fc)(),h=(0,d.useMemo)(()=>null==m?void 0:m.company_details,[null==m?void 0:m.company_details]),f=(0,d.useMemo)(()=>(null==l?void 0:l.legal_entity_min_benefit_owner)||1,[]),g=(0,d.useMemo)(()=>(null==l?void 0:l.legal_entity_max_benefit_owner)||1,[]),{fields:b,append:y,remove:j}=(0,_.jz)({name:"benefit_owners",control:i}),N=(0,d.useCallback)(e=>{j(e)}
1,[a]),w=(0,d.useCallback)(()=>{g!=(null==b?void 0:b.length)&&y({})},[a,g,null==b?void 0:b.length]);return(0,n.jsxs)("div",{className:(0,s.cn)("transition-all duration-300 bg-white lg:rounded-xl lg:shadow-33",h?"mt-2 lg:mt-10 py-5 px-4 lg:p-8":"h-0 overflow-hidden"),children:[(0,n.jsx)("div",{className:"grid gap-5 lg:gap-6",children:null==b?void 0:b.map((e,l)=>{var r,d,m,_,v,x;return(0,n.jsxs)("div",{className:(0,s.cn)("grid gap-3 lg:gap-5",l&&"pt-3 lg:pt-5 border-t border-gray-27"),children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,n.jsxs)("h3",{className:"text-18 font-semibold",children:[null==u?void 0:u.txt_order_beneficial_owner," ",l+1]}),(null==b?void 0:b.length)>f&&(0,n.jsx)("button",{type:"button",disabled:a,className:"text-16 text-red-23",onClick:()=>N(l),children:null==u?void 0:u.txt_delete})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3 lg:gap-5",children:[(0,n.jsx)(p.pd,{maxLength:255,disabled:a,nameLabel:null==u?void 0:u.lbl_full_name,classNameError:"text-xs -mt-2",placeholder:null==u?void 0:u.txt_order_full_name_description,...t("benefit_owners.".concat(l,".full_name")),errorMessage:null==o?void 0:null===(m=o.benefit_owners)||void 0===m?void 0:null===(d=m[l])||void 0===d?void 0:null===(r=d.full_name)||void 0===r?void 0:r.message}),(0,n.jsx)(p.$k,{control:i,isShowPlaceholder:!0,option:c,isDisabled:a,classNameError:"text-xs",nameLabel:null==u?void 0:u.lbl_order_nationality,id:"benef
1it_owners.".concat(l,".nationality"),placeholder:null==u?void 0:u.txt_order_nationalitty_plc,name:"benefit_owners.".concat(l,".nationality")}),(0,n.jsx)(p.pd,{maxLength:20,disabled:a,classNameError:"text-xs -mt-2",nameLabel:null==u?void 0:u.lbl_identification_number,placeholder:null==u?void 0:u.plc_type_identification_number,tooltip:null==u?void 0:u.tooltip_order_identification_number,classNameTooltip:"max-w-[300px] left-0 -translate-x-1/3",...t("benefit_owners.".concat(l,".identification_number")),errorMessage:null==o?void 0:null===(x=o.benefit_owners)||void 0===x?void 0:null===(v=x[l])||void 0===v?void 0:null===(_=v.identification_number)||void 0===_?void 0:_.message})]})]},e.id)})}),(null==b?void 0:b.length)<g&&(0,n.jsx)("div",{className:"flex justify-center mt-5",children:(0,n.jsxs)("button",{type:"button",onClick:w,disabled:a,className:"text-16 text-blue-13 font-medium flex items-center gap-1",children:[(0,n.jsx)(x.O0,{})," ",null==u?void 0:u.btn_add_beneficial_owner]})})]})});h.displayName="BeneficialOwnerInfo";let f=(0,d.memo)(e=>{let{control:l,legalEntity:t,getValues:i,clearErrors:a}=e,{configOrder:s,isLoading:c}=(0,d.useContext)(v.w_),{updateCompanyDetails:u}=(0,r.Fc)(),m=(0,d.useCallback)((e,l)=>{let t=Array.from({length:(l||0)-(e||0)+1},(l,t)=>t+(e||0));return null==t?void 0:t.map(e=>({label:e.toString(),value:e.toString()}))},[]),_=(0,d.useMemo)(()=>[{field_name:"managers",name:"number_of_manager",nameLabel:null==s?void 0:s.txt_order_number_manager,placeholder:null==s?void 0:s.txt_order_number_manager_plc,min_number:null==t?void 0:t.legal_entity_min_manager,max_number:null==t?void 0:t.legal_entity_max_manager,is_active:(null==t?void 0:t.legal_entity_is_manager)==o.cSK.YES},{field_name:"members",name:"number_of_member",nameLabel:null==s?void 0:s.txt_order_number_member,placeholder:null==s?void 0:s.txt_order_number_member_plc,min_number:null==t?void 0:t.legal_entity_min_member,max_number:null==t?void 0:t.legal_entity_max_member,is_active:(null==t?void 0:t.legal_entity_is_member)==o.cSK.YES},{field_name:"directors",name:"number_of_director",nameLabel:null==s?void 0:s.lbl_order_num_directors,placeholder:null==s?void 0:s.txt_order_number_director_lplc,min_number:null==t?void 0:t.legal_entity_min_director,max_number:null==t?void 0:t.legal_entity_max_director,is_active:(null==t?void 0:t.legal_entity_is_director)==o.cSK.YES},{field_name:"shareholders",name:"number_of_shareholder",nameLabel:null==s?void 0:s.lbl_order_num_shareholders,placeholder:null==s?void 0:s.txt_order_number_shareholder_plc,min_number:null==t?void 0:t.legal_entity_min_shareholder,max_number:null==t?void 0:t.legal_entity_max_shareholder,is_active:(null==t?void 0:t.legal_entity_is_shareholder)==o.cSK.YES}],[]),x=(0,d.useMemo)(()=>_.filter(e=>e.is_active),[_]);return null==x?void 0:x.map(e=>(0,n.jsx)(p.$k,{isShowPlaceholder:!0,control:l,isDisabled:c,id:e.name,name:e.name,nameLabel:e.nameLabel,placeholder:e.placeholder,option:m(e.min_number,e.max_number),onSelect:()=>{var l;a(e.field_name);let t=Number(null===(l=i(e.name))||void 0===l?void 0:l.value);u({[e.name]:t})}},e.name))});f.displayName="MemberNumber";let g=e=>{let{name:l,label:t,number:a,errors:r,control:u,lblTick:m,nameTick:v,isLoading:x,isPercentage:h,passengerOption:f,register:g,setValue:b,setError:y,getValues:j,clearErrors:N}=e,{configOrder:w,listPassengerOption:k,listNationality:S,listCountries:C}=(0,d.useContext)(i.w_),{fields:E,append:R,remove:O}=(0,_.jz)({name:l,control:u}),T=(0,_.FH)({control:u,name:l}),A=(0,d.useMemo)(()=>Array.from({length:100},(e,l)=>({label:String(l+1),value:String(l+1)})),[]),M=(0,d.useMemo)(()=>null==k?void 0:k.filter(e=>null==f?void 0:f.includes(e.value)),[]),I=(0,d.useMemo)(()=>M&&(null==M?void 0:M.length)>1,[]),P=(0,d.useCallback)((e,t)=>{if(!v||!e.target.checked)return;let n=j(v);if(!n)return e.target.checked=!1;let i=null==n?void 0:n.findIndex(e=>!e.full_name&&!e.nationality&&!e.identification_number);if(-1==i)return e.target.checked=!1,c.oR.warning(null==w?void 0:w.txt_order_beneficial_owner_exceeded_max);let a=j("".concat(l,".").concat(t));if(!(null==a?void 0:a.full_name)||!(null==a?void 0:a.nationality)||(null==a?void 0:a.option)==o.BGG.PERSONAL&&!(null==a?void 0:a.identification_number))return(null==a?void 0:a.full_name)||y("".concat(l,".").concat(t,".full_name"),{message:null==w?void 0:w.txt_this_field_is_required}),(null==a?void 0:a.nationality)||y("".concat(l,".").concat(t,".nationality"),{message:null==w?void 0:w.txt_this_field_is_required}),(null==a?void 0:a.option)!=o.BGG.PERSONAL||(null==a?void 0:a.identification_number)||y("".concat(l,".").concat(t,".identification_number"),{message:null==w?void 0:w.txt_this_field_is_required}),e.target.checked=!1;b("".concat(v,".").concat(i,".option"),j("".concat(l,".").concat(t,".option"))),b("".concat(v,".").concat(i,".full_name"),j("".concat(l,".").concat(t,".full_name"))),b("".concat(v,".").concat(i,".nationality"),j("".concat(l,".").concat(t,".nationality"))),b("".concat(v,".").concat(i,".identification_number"),j("".concat(l,".").concat(t,".identification_number")))},[]),L=(0,d.useCallback)(()=>{var e;let t=j("".concat(l));if(!t)return;let n=(null==t?void 0:t.length)-1,i=null==t?void 0:null===(e=t.slice(0,n))||void 0===e?void 0:e.reduce((e,l)=>{var t;return e+(Number(null===(t=l.percent)||void 0===t?void 0:t.value)||0)},0);N("".concat(l,".").concat(n,".percent")),b("".concat(l,".").concat(n,".percent"),null==A?void 0:A.find(e=>e.value==String(100-i)))},[]);return((0,d.useEffect)(()=>{var e;let t=(null==E?void 0:E.length)||(null===(e=j(l))||void 0===e?void 0:e.length)||0;if(a>t)for(let e=t;e<a;e++)R({option:o.BGG.PERSONAL},{shouldFocus:!1});if(a<t)for(let e=t;e>a;e--)O(e-1);1==a&&h&&b("".concat(l,".0.percent"),{label:"100",value:"100"})},[a]),E.length)?(0,n.jsx)("div",{className:"grid gap-5 lg:gap-6",children:null==E?void 0:E.map((e,i)=>{var a,d,c,_,f,y,j,N,k,E,R,O,F,D,K,B,G,U,Y,z;return(0,n.jsxs)("div",{className:(0,s.cn)("grid gap-3 lg:gap-5",i&&"pt-3 lg:pt-5 border-t border-gray-27"),children:[(0,n.jsxs)("h3",{className:"text-18 font-semibold",children:[t," ",i+1," ",!I&&!!(null==M?void 0:M.length)&&"(".concat(null==M?void 0:null===(a=M[0])||void 0===a?void 0:a.label,")")]}),I&&(0,n.jsx)("div",{className:"grid grid-cols-2 gap-[13px] lg:flex lg:gap-10",children:null==M?void 0:M.map(e=>(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(p.VC,{control:u,value:e.value,disabled:x,nameLabel:e.label,className:"gap-3 lg:gap-2",name:"".concat(l,".").concat(i,".option"),classNameLabel:"text-sm cursor-pointer select-none",handleOnChange:()=>{b("".concat(l,".").concat(i,".option"),e.value),b("".concat(l,".").concat(i,".full_name"),null),b("".concat(l,".").concat(i,".nationality"),null),b("".concat(l,".").concat(i,".identification_number"),null),b("".concat(l,".").concat(i,".percent"),null)}})},e.value))}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3 lg:gap-5",children:[(0,n.jsx)(p.pd,{maxLength:255,disabled:x,classNameError:"text-xs -mt-2",...g("".concat(l,".").concat(i,".full_name")),errorMessage:null==r?void 0:null===(_=r[l])||void 0===_?void 0:null===(c=_[i])||void 0===c?void 0:null===(d=c.full_name)||void 0===d?void 0:d.message,nameLabel:(null==T?void 0:null===(f=T[i])||void 0===f?void 0:f.option)==o.BGG.PERSONAL&&(null==w?void 0:w.lbl_full_name)||(null==T?void 0:null===(y=T[i])||void 0===y?void 0:y.option)==o.BGG.CORPORATE&&(null==w?void 0:w.lbl_company_name)||"",placeholder:(null==T?void 0:null===(j=T[i])||void 0===j?void 0:j.option)==o.BGG.PERSONAL&&(null==w?void 0:w.txt_order_full_name_description)||(null==T?void 0:null===(N=T[i])||void 0===N?void 0:N.option)==o.BGG.CORPORATE&&(null==w?void 0:w.lbl_company_name)||""}),(0,n.jsx)(p.$k,{control:u,isShowPlaceholder:!0,isDisabled:x,classNameError:"text-xs",id:"".concat(l,".").concat(i,".nationality"),name:"".concat(l,".").concat(i,".nationality"),placeholder:(null==T?void 0:null===(k=T[i])||void 0===k?void 0:k.option)==o.BGG.PERSONAL&&(null==w?void 0:w.txt_order_nationalitty_plc)||(null==T?void 0:null===(E=T[i])||void 0===E?void 0:E.option)==o.BGG.CORPORATE&&(null==w?void 0:w.lbl_order_business_location_plc)||"",option:(null==T?void 0:null===(R=T[i])||void 0===R?void 0:R.option)==o.BGG.PERSONAL?S:C,nameLabel:(null==T?void 0:null===(O=T[i])||void 0===O?void 0:O.option)==o.BGG.PERSONAL&&(null==w?void 0:w.lbl_order_nationality)||(null==T?void 0:null===(F=T[i])||void 0===F?void 0:F.option)==o.BGG.CORPORATE&&(null==w?void 0:w.lbl_order_business_location)||""}),(0,n.jsx)(p.pd,{maxLength:20,disabled:x,classNameError:"text-xs -mt-2",tooltip:null==w?void 0:w.tooltip_order_identification_number,...g("".concat(l,".").concat(i,".identification_number")),classNameTooltip:"max-w-[300px] left-0 -translate-x-1/3",errorMessage:null==r?void 0:null===(B=r[l])||void 0===B?void 0:null===(K=B[i])||void 0===K?void 0:null===(D=K.identification_number)||void 0===D?void 0:D.message,nameLabel:(null==T?void 0:null===(G=T[i])||void 0===G?void 0:G.option)==o.BGG.PERSONAL&&(null==w?void 0:w.lbl_identification_number)||(null==T?void 0:null===(U=T[i])||void 0===U?void 0:U.option)==o.BGG.CORPORATE&&(null==w?void 0:w.lbl_order_ein)||"",placeholder:(null==T?void 0:null===(Y=T[i])||void 0===Y?void 0:Y.option)==o.BGG.PERSONAL&&(null==w?void 0:w.plc_type_identification_number)||(null==T?void 0:null===(z=T[i])||void 0===z?void 0:z.option)==o.BGG.CORPORATE&&(null==w?void 0:w.plc_order_ein)||""}),h&&(0,n.jsx)(p.$k,{control:u,isShowPlaceholder:!0,isDisabled:x,classNameError:"text-xs",option:A,id:"".concat(l,".").concat(i,".percent"),onSelect:L,name:"".concat(l,".").concat(i,".percent"),placeholder:null==w?void 0:w.txt_please_select,nameLabel:null==w?void 0:w.lbl_percentage_of_the_beneficiary})]}),v&&(0,n.jsx)(p.oV,{name:"copy_member",control:u,nameLabel:m,disabled:x,classNameLabel:"ml-2 text-14",onChange:e=>P(e,i)})]},e.id)})}):null},b=(0,d.memo)(e=>{let{errors:l,control:t,legalEntity:i,register:a,setValue:c,setError:u,getValues:m,resetField:_,clearErrors:p}=e,{configOrder:x,isLoading:h}=(0,d.useContext)(v.w_),{orderStore:f}=(0,r.Fc)(),b=(0,d.useMemo)(()=>null==f?void 0:f.company_details,[null==f?void 0:f.company_details]),y=(0,d.useMemo)(()=>
1(null==b?void 0:b.number_of_member)||0,[null==b?void 0:b.number_of_member]),j=(0,d.useMemo)(()=>(null==b?void 0:b.number_of_manager)||0,[null==b?void 0:b.number_of_manager]),N=(0,d.useMemo)(()=>(null==b?void 0:b.number_of_director)||0,[null==b?void 0:b.number_of_director]),w=(0,d.useMemo)(()=>(null==b?void 0:b.number_of_shareholder)||0,[null==b?void 0:b.number_of_shareholder]),k=(0,d.useMemo)(()=>[{name:"managers",lable:null==x?void 0:x.lbl_manager,number_of_member:j,passenger_option:null==i?void 0:i.legal_entity_manager_option,is_active:(null==i?void 0:i.legal_entity_is_manager)==o.cSK.YES},{name:"members",is_percentage:!0,lable:null==x?void 0:x.lbl_member,tick_name:"benefit_owners",number_of_member:y,label_tick:null==x?void 0:x.lbl_tick_if_member_as_benefit_owner,passenger_option:null==i?void 0:i.legal_entity_member_option,is_active:(null==i?void 0:i.legal_entity_is_member)==o.cSK.YES},{name:"directors",lable:null==x?void 0:x.lbl_director,number_of_member:N,passenger_option:null==i?void 0:i.legal_entity_director_option,is_active:(null==i?void 0:i.legal_entity_is_director)==o.cSK.YES},{is_percentage:!0,name:"shareholders",lable:null==x?void 0:x.lbl_shareholder,tick_name:"benefit_owners",number_of_member:w,label_tick:null==x?void 0:x.lbl_tick_if_shareholder_as_benefit_owner,passenger_option:null==i?void 0:i.legal_entity_shareholder_option,is_active:(null==i?void 0:i.legal_entity_is_shareholder)==o.cSK.YES}],[y,j,N,w]),S=(0,d.useMemo)(()=>k.filter(e=>e.is_active),[k]);return null==S?void 0:S.map(e=>(0,n.jsx)("div",{className:(0,s.cn)("grid transition-all duration-300 bg-white lg:rounded-xl lg:shadow-33",(null==e?void 0:e.number_of_member)?"mt-2 lg:mt-10 py-5 px-4 lg:p-8":"h-0 overflow-hidden"),children:(0,n.jsx)(g,{errors:l,control:t,register:a,setValue:c,setError:u,getValues:m,isLoading:h,name:e.name,resetField:_,label:e.lable,clearErrors:p,lblTick:e.label_tick,nameTick:e.tick_name,number:e.number_of_member,isPercentage:e.is_percentage,passengerOption:e.passenger_option})},e.name))});b.displayName="MemberGroup";let y=(0,d.memo)((0,d.forwardRef)(function(e,l){let{legalEntity:t}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:A}));let{configOrder:a,listNationality:c,errors:v}=(0,d.useContext)(i.w_),{orderStore:p,updateCompanyDetails:x}=(0,r.Fc)(),g=(0,d.useMemo)(()=>(null==t?void 0:t.legal_entity_min_benefit_owner)||1,[]),y=(0,d.useMemo)(()=>(null==t?void 0:t.legal_entity_is_benefit_owner)==o.cSK.YES,[t]),{reset:j,trigger:N,setError:w,register:k,setValue:S,getValues:C,resetField:E,clearErrors:R,control:O,formState:{errors:T}}=(0,_.mN)({mode:"onChange",defaultValues:y?{benefit_owners:Array.from({length:g},()=>({}))}:void 0,resolver:(0,m.t)((0,s.RH)(a,t))}),A=(0,d.useCallback)(async()=>{var e,l,t,n,i,a,r,d,c,u;if(!await N())return!1;let m=(0,s.jl)({number_of_manager:Number(null===(e=C("number_of_manager"))||void 0===e?void 0:e.value),number_of_member:Number(null===(l=C("number_of_member"))||void 0===l?void 0:l.value),number_of_director:Number(null===(t=C("number_of_director"))||void 0===t?void 0:t.value),number_of_shareholder:Number(null===(n=C("number_of_shareholder"))||void 0===n?void 0:n.value),number_of_benefit_owner:null===(i=C("benefit_owners"))||void 0===i?void 0:i.length,managers:null===(a=C("managers"))||void 0===a?void 0:a.map(e=>{var l;return{...e,nationality:null===(l=e.nationality)||void 0===l?void 0:l.value}}),members:null===(r=C("members"))||void 0===r?void 0:r.map(e=>{var l,t;return{...e,nationality:null===(l=e.nationality)||void 0===l?void 0:l.value,percent:Number(null===(t=e.percent)||void 0===t?void 0:t.value)}}),directors:null===(d=C("directors"))||void 0===d?void 0:d.map(e=>{var l;return{...e,nationality:null===(l=e.nationality)||void 0===l?void 0:l.value}}),shareholders:null===(c=C("shareholders"))||void 0===c?void 0:c.map(e=>{var l,t;return{...e,nationality:null===(l=e.nationality)||void 0===l?void 0:l.value,percent:Number(null===(t=e.percent)||void 0===t?void 0:t.value)}}),benefit_owners:null===(u=C("benefit_owners"))||void 0===u?void 0:u.map(e=>{var l;return{...e,option:o.BGG.PERSONAL,nationality:null===(l=e.nationality)||void 0===l?void 0:l.value}})});return x({number_of_member:m.number_of_member,number_of_manager:m.number_of_manager,number_of_director:m.number_of_director,number_of_shareholder:m.number_of_shareholder,members:m.members,managers:m.managers,directors:m.directors,shareholders:m.shareholders,benef
1it_owners:m.benefit_owners}),m},[]),M=(0,d.useMemo)(()=>null==p?void 0:p.company_details,[null==p?void 0:p.company_details]),I=(0,d.useMemo)(()=>null==p?void 0:p.entity_name,[null==p?void 0:p.entity_name]),P=(0,d.useMemo)(()=>(null==t?void 0:t.legal_entity_is_manager)==o.cSK.YES||(null==t?void 0:t.legal_entity_is_member)==o.cSK.YES,[t]),L=(0,d.useMemo)(()=>(null==t?void 0:t.legal_entity_is_director)==o.cSK.YES||(null==t?void 0:t.legal_entity_is_shareholder)==o.cSK.YES,[t]),F=(0,d.useMemo)(()=>P?null==a?void 0:a.txt_order_title_member_manager:L?null==a?void 0:a.txt_order_title_director_shareholder:"",[P,L]),D=(0,d.useMemo)(()=>{var e,l,t,n,i;return{managers:null==M?void 0:null===(e=M.managers)||void 0===e?void 0:e.map(e=>({...e,nationality:null==c?void 0:c.find(l=>l.country_code==(null==e?void 0:e.nationality))})),members:null==M?void 0:null===(l=M.members)||void 0===l?void 0:l.map(e=>({...e,nationality:null==c?void 0:c.find(l=>l.country_code==(null==e?void 0:e.nationality)),percent:{label:null==e?void 0:e.percent,value:null==e?void 0:e.percent}})),directors:null==M?void 0:null===(t=M.directors)||void 0===t?void 0:t.map(e=>({...e,nationality:null==c?void 0:c.find(l=>l.country_code==(null==e?void 0:e.nationality))})),shareholders:null==M?void 0:null===(n=M.shareholders)||void 0===n?void 0:n.map(e=>({...e,nationality:null==c?void 0:c.find(l=>l.country_code==(null==e?void 0:e.nationality)),percent:{label:null==e?void 0:e.percent,value:null==e?void 0:e.percent}})),benefit_owners:null==M?void 0:null===(i=M.benefit_owners)||void 0===i?void 0:i.map(e=>({...e,nationality:null==c?void 0:c.find(l=>l.country_code==(null==e?void 0:e.nationality))}))}},[M]),K=(0,d.useCallback)(e=>void 0==e?null:{label:e.toString(),value:e.toString()},[]);return(0,u.VT)(w,v),(0,d.useEffect)(()=>{!(C("number_of_member")||C("number_of_manager")||C("number_of_director")||C("number_of_shareholder"))&&M&&j({number_of_manager:K(null==M?void 0:M.number_of_manager),number_of_member:K(null==M?void 0:M.number_of_member),number_of_director:K(null==M?void 0:M.number_of_director),number_of_shareholder:K(null==M?void 0:M.number_of_shareholder),managers:null==D?void 0:D.managers,members:null==D?void 0:D.members,directors:null==D?void 0:D.directors,shareholders:null==D?void 0:D.shareholders,benefit_owners:null==D?void 0:D.benefit_owners})},[M]),(0,n.jsxs)(d.Fragment,{children:[(0,n.jsxs)("div",{className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==F?void 0:F.replace("|||COMPANY|||","".concat(null==I?void 0:I.proposal_name_1))}),(0,n.jsx)("div",{className:"mt-3 lg:mt-5 grid gap-3 lg:gap-5 grid-cols-1 lg:grid-cols-2",children:(0,n.jsx)(f,{control:O,getValues:C,legalEntity:t,clearErrors:R})})]}),(0,n.jsx)(b,{errors:T,control:O,register:k,setValue:S,setError:w,getValues:C,resetField:E,clearErrors:R,legalEntity:t}),y&&(0,n.jsx)(h,{errors:T,control:O,register:k,legalEntity:t})]})})),j=(0,d.memo)((0,d.forwardRef)(function(e,l){let{listProductProcessing:t}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:w}));let{isLoading:a,configOrder:c,errors:p}=(0,d.useContext)(v.w_),{orderStore:x,updateCompanyDetails:h}=(0,r.Fc)(),f=(0,d.useMemo)(()=>null==x?void 0:x.company_details,[null==x?void 0:x.company_details]),{reset:g,trigger:b,setError:y,getValues:j,control:N}=(0,_.mN)({mode:"onChange",resolver:(0,m.t)((0,s.ce)(c))}),w=(0,d.useCallback)(async()=>{if(!await b())return!1;let e={processing_time_id:j("processing_time_id")||void 0};return h({processing_time_id:e.processing_time_id}),e},[]);return(0,u.VT)(y,p),(0,d.useEffect)(()=>{var e;let l=(null==f?void 0:f.processing_time_id)||(null==t?void 0:null===(e=t.find(e=>e.product_is_default==o.cSK.YES))||void 0===e?void 0:e.product_id);j("processing_time_id")!=l&&(g({processing_time_id:l}),h({processing_time_id:l}))},[f]),(0,n.jsxs)("div",{className:(0,s.cn)("grid transition-all duration-300 bg-white lg:rounded-xl lg:shadow-33",(null==f?void 0:f.number_of_director)&&(null==f?void 0:f.number_of_shareholder)?"mt-2 lg:mt-10 py-5 px-4 lg:p-8":"h-0 overflow-hidden"),children:[(0,n.jsx)("h3",{className:"text-18 font-semibold",children:null==c?void 0:c.lbl_order_processing_time}),(0,n.jsx)("div",{className:"grid gap-3 mt-3",children:null==t?void 0:t.map(e=>(0,n.jsx)(i.mu,{variant:"simple",product:e,control:N,disabled:a,className:"max-w-[480px]",name:"processing_time_id",value:e.product_id,isRecommended:e.product_is_default===o.cSK.YES,handleChange:()=>{h({processing_time_id:e.product_id})}},e.product_id))})]})})),N=(0,d.memo)((0,d.forwardRef)(function(e,l){(0,d.useImperativeHandle)(l,()=>({onSubmit:S,onBack:E}));let{isLoading:t,configOrder:u,listLegalEntity:m,getPackages:_,setIsLoading:v,handleNextStep:p,handleBackStep:x,updateContextValue:h}=(0,d.useContext)(i.w_),{orderStore:f,clearOrderStore:g,updateOrderStore:b}=(0,r.Fc)(),N=(0,d.useRef)(null),w=(0,d.useRef)(null),k=(0,d.useRef)(null),S=(0,d.useCallback)(async()=>{var e,l,n,i,o,r;if(t)return;let d=await Promise.all([null===(l=N.current)||void 0===l?void 0:null===(e=l.onSubmit)||void 0===e?void 0:e.call(l),null===(i=w.current)||void 0===i?void 0:null===(n=i.onSubmit)||void 0===n?void 0:n.call(i),null===(r=k.current)||void 0===r?void 0:null===(o=r.onSubmit)||void 0===o?void 0:o.call(r)]);if(!d.every(e=>!1!==e))return;v(!0);let m=Object.assign({},...d),_=await (0,s.Ji)(),p={order_id:null==f?void 0:f.order_id,...m,gRecaptchaToken:_,url:window.location.href},x=await a.xN.submitCompanyMember(p),b=(0,a.jN)(x);if(!(null==x?void 0:x.success)&&(c.oR.error((null==x?void 0:x.message)||(null==u?void 0:u.txt_toaster_failed_common)),b&&h({errors:b}),(null==x?void 0:x.statusCode)==s.kG.NotFound)){g(),window.location.reload();return}(null==x?void 0:x.data)&&C(x.data),v(!1)},[t]),C=(0,d.useCallback)(e=>{p(),h({errors:{}}),b({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code})},[]),E=(0,d.useCallback)(async()=>{x(),b({company_details:void 0})},[]),R=(0,d.useMemo)(()=>null==f?void 0:f.start_business,[null==f?void 0:f.start_business]),O=(0,d.useMemo)(()=>null==R?void 0:R.legal_entity_id,[null==R?void 0:R.legal_entity_id]),T=(0,d.useMemo)(()=>null==m?void 0:m.find(e=>e.legal_entity_id==O),[O]),A=(0,d.useMemo)(()=>_({productType:o.Vo0.PROCESSING_TIME,categoryId:null==R?void 0:R.type_of_service,LegalEntityId:null==R?void 0:R.legal_entity_id}),[null==R?void 0:R.legal_entity_id,null==R?void 0:R.type_of_service]);return(0,n.jsxs)("div",{className:"bg-background-1",children:[(0,n.jsx)(y,{legalEntity:T,ref:N}),!!(null==A?void 0:A.length)&&(0,n.jsx)(j,{listProductProcessing:A,ref:k})]})}))},55894:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InformationPanelSummary:()=>s});var n=t(38694),i=t(29432),o=t(69054),a=t(8256),r=t(45734);let s=(0,r.memo)(()=>{var e;let{configOrder:l,orderID:t,listTypeOfService:s,listCountries:d,listAllState:c}=(0,r.useContext)(i.w_),{orderStore:u}=(0,a.Fc)(),m=(0,o._F)(1024),_=(0,r.useMemo)(()=>null==u?void 0:u.contact,[null==u?void 0:u.contact]),v=(0,r.useMemo)(()=>null==u?void 0:u.entity_name,[null==u?void 0:u.entity_name]),p=(0,r.useMemo)(()=>null==s?void 0:s.find(e=>{var l;return e.category_id==(null==u?void 0:null===(l=u.start_business)||void 0===l?void 0:l.type_of_service)}),[null==u?void 0:null===(e=u.start_business)||void 0===e?void 0:e.type_of_service]),x=(0,r.useMemo)(()=>(null==v?void 0:v.proposal_name_1)||(null==v?void 0:v.company_name),[v]),h=(0,r.useMemo)(()=>null==d?void 0:d.find(e=>e.country_code==(null==_?void 0:_.country_code)),[null==_?void 0:_.country_code]),f=(0,r.useMemo)(()=>{var e;return null==c?void 0:null===(e=c.find(e=>e.state_code==(null==_?void 0:_.state_code)))||void 0===e?void 0:e.state_name},[null==_?void 0:_.state_code]),g=(0,r.useMemo)(()=>{let e=null==_?void 0:_.street,l=null==_?void 0:_.city,t=Number(null==h?void 0:h.state_count)>0?f:null==_?void 0:_.region;return[e,l,t,null==h?void 0:h.country_name,null==_?void 0:_.postal_code].filter(
1Boolean).join(", ")},[_,h,f]);return t&&!u?(0,n.jsx)(i.eI,{number:1}):(0,n.jsxs)("div",{className:"grid gap-4 py-4 border-y border-gray-23 first:*:border-none first:*:pt-0 *:border-t *:border-dashed *:border-gray-23 *:pt-4",children:[m&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_order_type_of_service}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:null==p?void 0:p.category_name})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_company_name}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:x})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_full_name}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:(null==_?void 0:_.first_name)+" "+(null==_?void 0:_.last_name)})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_email_address}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:null==u?void 0:u.email})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_phone_number}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:null==u?void 0:u.phone_number})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14 shrink-0",children:null==l?void 0:l.lbl_shipping_address}),(0,n.jsx)("p",{className:"text-14 font-semibold text-right",children:g})]})]})});s.displayName="InformationPanelSummary"},59990:(e,l,t)=>{"use strict";t.d(l,{e:()=>n.ClickButtonScroll});var n=t(20597)},61142:(e,l,t)=>{"use strict";t.d(l,{gg:()=>y,UH:()=>j,yQ:()=>k,UX:()=>S,_u:()=>w,cR:()=>N,ns:()=>p,yi:()=>v,mD:()=>g,Zp:()=>f});var n=t(38694),i=t(69054),o=t(45734),a=t(29432),r=t(48873),s=t(8256),d=t(2508),c=t(94674),u=t(42500);let m=(0,o.memo)(e=>{var l;let{listMainPackage:t,register:i}=e,{isLoading:m,configOrder:_,currentCurrency:v,listOrderProduct:p,listTypeOfService:x}=(0,o.useContext)(a.w_),{orderStore:h,updatePackageStore:f}=(0,s.Fc)(),g=(0,o.useMemo)(()=>null==h?void 0:h.start_business,[null==h?void 0:h.start_business]),b=(0,o.useMemo)(()=>null==x?void 0:x.find(e=>e.category_id==(null==g?void 0:g.type_of_service)),[null==g?void 0:g.type_of_service]),y=(0,o.useMemo)(()=>null==b?void 0:b.category_description,[null==b?void 0:b.category_description]),j=(0,o.useMemo)(()=>{var e;return null==h?void 0:null===(e=h.package_of_service)||void 0===e?void 0:e.product_id},[null==h?void 0:null===(l=h.package_of_service)||void 0===l?void 0:l.product_id]);return(0,n.jsx)("div",{className:"relative w-full",children:(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[47%] max-w-[404px]"}),(0,n.jsx)("col",{className:"w-[20%] max-w-[172px]"}),(0,n.jsx)("col",{className:"w-[20%] max-w-[172px]"}),(0,n.jsx)("col",{className:"w-[20%] max-w-[172px]"})]}),(0,n.jsx)("thead",{className:"sticky top-[90px] z-[1] bg-white",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"align-top",children:(0,n.jsxs)("div",{className:"w-full max-w-[391px]",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==b?void 0:b.category_title}),(0,n.jsx)("p",{className:"mt-1",children:null==b?void 0:b.category_sub_title})]})}),null==t?void 0:t.map(e=>(0,n.jsxs)("td",{className:(0,d.cn)("cursor-pointer rounded-t-xl border-x border-t select-none border-white",j==e.product_id&&"border-primary bg-red-22 ",m&&"pointer-events-none"),onClick:()=>{j!=e.product_id&&f({product_id:e.product_id})},children:[(0,n.jsx)("input",{hidden:!0,type:"radio",value:e.product_id,...i("product_id")}),(0,n.jsxs)("div",{className:"pt-3 pb-5 px-2 grid gap-1 text-center",children:[(0,n.jsx)("p",{className:"text-16 font-bold",children:e.product_name}),(0,n.jsx)("p",{className:"text-32 font-bold text-primary",children:"".concat(null==v?void 0:v.currency_symbol_left," ").concat((0,d.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex justify-center gap-1",children:[(0,n.jsx)("p",{className:"text-14",children:e.product_description_price}),(0,n.jsx)(c.oS,{content:null==_?void 0:_.tooltip_order_state_filling_fee})]}),(0,n.jsx)("p",{className:"text-14 font-semibold",children:e.product_description})]})]},"dk-".concat(e.product_id)))]})}),(0,n.jsx)("tbody",{className:"*:first:*:border-t *:*:border-b first:*:*:border-l *:*:border-gray-55 first:*:first:*:rounded-tl-xl first:*:last:*:rounded-bl-xl *:*:px-5 *:*:py-3 first:*:*:pr-0",children:null==y?void 0:y.map((e,l)=>{let i=null==p?void 0:p.find(l=>l.product_id==e.add_on),a=null==t?void 0:t.some(l=>{var t,n;return(null===(t=l.product_optional_addon_info)||void 0===t?void 0:t.some(l=>l.product_id==e.add_on))||(null===(n=l.product_free_addon_info)||void 0===n?void 0:n.some(l=>l.product_id==e.add_on))});return e.add_on&&!a?null:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label||(null==i?void 0:i.product_name)}),e.tooltip&&(0,n.jsx)(c.oS,{content:e.tooltip})]})}),null==t?void 0:t.map(t=>{var a;let s=null==t?void 0:t.product_optional_addon_info,c=null==s?void 0:null===(a=s.find(e=>e.product_id==(null==i?void 0:i.product_id)))||void 0===a?void 0:a.product_price;return(0,n.jsx)("td",{className:(0,d.cn)("select-none cursor-pointer",e.add_on&&"!p-0",j==(null==t?void 0:t.product_id)&&"border-x !border-x-primary bg-red-22",j==(null==t?void 0:t.product_id)&&l==y.length-1&&"!border-b-primary rounded-b-xl",m&&"pointer-events-none"),onClick:()=>{j!=(null==t?void 0:t.product_id)&&f({product_id:null==t?void 0:t.product_id})},children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:e.add_on?(0,n.jsx)(o.Fragment,{children:(0,n.jsx)("label",{htmlFor:"".concat(e.add_on,"_").concat(null==t?void 0:t.product_id),className:(0,d.cn)("px-3 py-1 rounded-lg border text-sm font-semibold min-h-7 min-w-20 text-center leading-none",c?"border-white":"bg-green-3 border-green-3 text-white"),children:c?(0,n.jsx)("span",{className:"text-14",children:"".concat(null==v?void 0:v.currency_symbol_left," ").concat((0,d.az)(Number(c),0))}):(0,n.jsx)("span",{children:null==_?void 0:_.txt_free})})}):e[null==t?void 0:t.product_id]==r.cSK.YES?(0,n.jsx)(u.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(u.K5,{})})},null==t?void 0:t.product_id)})]},"tr-".concat(l))})})]})})});m.displayName="USIncorporationDesktop";let _=(0,o.memo)(e=>{var l;let{listMainPackage:t,register:i}=e,{configOrder:m,currentCurrency:_,isLoading:v,listTypeOfService:p,listOrderProduct:x}=(0,o.useContext)(a.w_),{orderStore:h,updatePackageStore:f}=(0,s.Fc)(),g=(0,o.useMemo)(()=>null==h?void 0:h.start_business,[null==h?void 0:h.start_business]),b=(0,o.useMemo)(()=>null==p?void 0:p.find(e=>e.category_id==(null==g?void 0:g.type_of_service)),[null==g?void 0:g.type_of_service]),y=(0,o.useMemo)(()=>null==b?void 0:b.category_description,[null==b?void 0:b.category_description]),j=(0,o.useMemo)(()=>null==t?void 0:t.find(e=>{var l;return e.product_id==(null==h?void 0:null===(l=h.package_of_service)||void 0===l?void 0:l.product_id)}),[null==h?void 0:null===(l=h.package_of_service)||void 0===l?void 0:l.product_id]);return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("div",{className:"pt-5 text-center px-4",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==b?void 0:b.category_title}),(0,n.jsx)("p",{className:"mt-1",children:null==b?void 0:b.category_sub_title})]}),(0,n.jsx)("div",{className:"pt-5 pb-3 px-4 shadow-37 sticky top-[119px] bg-white z-[1]",children:(0,n.jsx)("div",{className:"flex gap-2 justify-center",children:null==t?void 0:t.map((e,l)=>(0,n.jsxs)("label",{className:(0,d.cn)("min-w-[109px]",v&&"pointer-events-none"),children:[(0,n.jsx)("input",{hidden:!0,type:"radio",value:e.product_id,...i("product_id")}),(0,n.jsx)("div",{className:(0,d.cn)("px-2 py-3 outline rounded-lg transition-all duration-300",(null==j?void 0:j.product_id)==e.product_id?"outline-2 outline-red-20 bg-red-1":"outline-1 outline-black-11"),onClick:()=>{(null==j?void 0:j.product_id)!=e.product_id&&f({product_id:e.product_id})},children:(0,n.jsx)("p",{className:(0,d.cn)("text-16 text-center transition-all duration-300",(null==j?void 0:j.product_id)==e.product_id&&"text-white font-semibold"),children:e.product_name})}),(0,n.jsxs)("div",{className:"px-2 flex flex-col gap-1 text-center mt-2",children:[(0,n.jsx)("p",{className:"text-24 font-bold",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,d.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:e.product_description_price}),(0,n.jsx)(c.oS,{content:null==m?void 0:m.tooltip_order_state_filling_fee,className:(0,d.cn)(0==l&&"-left-14",1==l&&"-left-48",2==l&&"right-0")})]}),e.product_description&&(0,n.jsx)("p",{className:"text-14 font-medium",children:e.product_description})]})]},"mb-".concat(e.product_id)))})}),(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[70%]"}),(0,n.jsx)("col",{className:"w-[30%]"})]}),(0,n.jsx)("tbody",{className:"*:*:border-b first:*:*:border-r *:*:border-gray-55 *:*:p-5",children:null==y?void 0:y.map((e,l)=>{var i;let a=(null==e?void 0:e[(null==j?void 0:j.product_id)||0])==r.cSK.YES,s=null==x?void 0:x.find(l=>l.product_id==e.add_on),v=null==j?void 0:j.product_optional_addon_info,p=null==v?void 0:null===(i=v.find(l=>l.product_id==e.add_on))||void 0===i?void 0:i.product_price,h=null==t?void 0:t.some(l=>{var t,n;return(null===(t=l.product_optional_addon_info)||void 0===t?void 0:t.some(l=>l.product_id==e.add_on))||(null===(n=l.product_free_addon_info)||void 0===n?void 0:n.some(l=>l.product_id==e.add_on))});return e.add_on&&!h?null:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex justify-between gap-1",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label||(null==s?void 0:s.product_name)}),e.tooltip&&(0,n.jsx)(c.oS,{content:e.tooltip,className:"-right-24"})]})}),(0,n.jsx)("td",{className:(0,d.cn)("select-none cursor-pointer",e.add_on&&"!p-0"),children:(0,n.jsx)("div",{className:"flex justify-center rows-center",children:e.add_on?(0,n.jsx)(o.Fragment,{children:(0,n.jsx)("label",{htmlFor:"".concat(e.add_on,"_").concat(l),className:(0,d.cn)("px-2 py-1 rounded-lg border text-sm font-semibold min-h-7 text-center",p?"border-white":"bg-green-3 border-green-3 text-white"),children:p?(0,n.jsx)("span",{className:"text-14",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,d.az)(Number(p),0))}):(0,n.jsx)("span",{children:null==m?void 0:m.txt_free})})}):a?(0,n.jsx)(u.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(u.K5,{})})})]},"tr-".concat(l))})})]})]})});_.displayName="USIncorporationMobile";let v=(0,o.memo)(e=>{let{listMainPackage:l,register:t}=e;return(0,i._F)(1024)?(0,n.jsx)(_,{listMainPackage:l,register:t}):(0,n.jsx)(m,{listMainPackage:l,register:t})});v.displayName="USIncorporation";let p=(0,o.memo)(e=>{let{listMainPackage:l,control:t}=e,{isLoading:i,listTypeOfService:d}=(0,o.useContext)(a.w_),{orderStore:c,updatePackageStore:u}=(0,s.Fc)(),m=(0,o.useMemo)(()=>null==c?void 0:c.start_business,[null==c?void 0:c.start_business]),_=(0,o.useMemo)(()=>null==d?void 0:d.find(e=>e.category_id==(null==m?void 0:m.type_of_service)),[null==m?void 0:m.type_of_service]),v=(0,o.useMemo)(()=>null==_?void 0:_.category_description,[null==_?void 0:_.category_description]);return(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 lg:py-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==_?void 0:_.category_title}),(0,n.jsx)("p",{children:null==_?void 0:_.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center xl:grid xl:grid-cols-3 gap-10 xl:gap-5 px-7 lg:px-0",children:null==l?void 0:l.map(e=>(0,n.jsx)(a.mu,{name:"product_id",product:e,control:t,disabled:i,value:e.product_id,isRecommended:e.product_is_default==r.cSK.YES,desPackage:null==v?void 0:v.find(l=>l.product_id==e.product_id),handleChange:()=>{u({product_id:e.product_id})}},e.product_id))})]})});p.displayName="USBookkeeping";let x=(0,o.memo)(e=>{var l;let{listMainPackage:t,register:i}=e,{configOrder:m,currentCurrency:_,isLoading:v,listTypeOfService:p}=(0,o.useContext)(a.w_),{orderStore:x,updatePackageStore:h}=(0,s.Fc)(),f=(0,o.useMemo)(()=>null==x?void 0:x.start_business,[null==x?void 0:x.start_business]),g=(0,o.useMemo)(()=>null==p?void 0:p.find(e=>e.category_id==(null==f?void 0:f.type_of_service)),[null==f?void 0:f.type_of_service]),b=(0,o.useMemo)(()=>null==g?void 0:g.category_description,[null==g?void 0:g.category_description]),y=(0,o.useMemo)(()=>{var e;return null==x?void 0:null===(e=x.package_of_service)||void 0===e?void 0:e.product_id},[null==x?void 0:null===(l=x.package_of_service)||void 0===l?void 0:l.product_id]);return(0,n.jsx)("div",{className:"relative w-full",children:(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[56%] max-w-[520px]"}),(0,n.jsx)("col",{className:"w-[22%] max-w-[200px]"}),(0,n.jsx)("col",{className:"w-[22%] max-w-[200px]"})]}),(0,n.jsx)("thead",{className:"sticky top-[90px] z-[1] bg-white",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"align-top",children:(0,n.jsxs)("div",{className:"w-full max-w-[431px]",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==g?void 0:g.category_title}),(0,n.jsx)("p",{className:"mt-1",children:null==g?void 0:g.category_sub_title})]})}),null==t?void 0:t.map(e=>(0,n.jsxs)("td",{className:(0,d.cn)("cursor-pointer rounded-t-xl border-x border-t select-none border-white",y==e.product_id&&"border-primary bg-red-22 ",v&&"pointer-events-none"),onClick:()=>{y!=e.product_id&&h({product_id:e.product_id})},children:[(0,n.jsx)("input",{hidden:!0,type:"radio",value:e.product_id,...i("product_id")}),(0,n.jsxs)("div",{className:"pt-3 pb-5 px-2 grid gap-1 text-center",children:[(0,n.jsx)("p",{className:"text-16 font-bold",children:e.product_name}),(0,n.jsx)("p",{className:"text-32 font-bold text-primary",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,d.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-14",children:e.product_description_price}),(0,n.jsx)("p",{className:"text-14",children:null==m?void 0:m.txt_order_billed_monthly})]}),e.product_description&&(0,n.jsx)("p",{className:"text-14 font-semibold",children:e.product_description})]})]},"dk-".concat(e.product_id)))]})}),(0,n.jsx)("tbody",{className:"*:first:*:border-t *:*:border-b first:*:*:border-l *:*:border-gray-55 first:*:first:*:rounded-tl-xl first:*:last:*:rounded-bl-xl *:*:px-5 *:*:py-3",children:null==b?void 0:b.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label}),e.tooltip&&(0,n.jsx)(c.oS,{content:e.tooltip})]})}),null==t?void 0:t.map(t=>(0,n.jsx)("td",{className:(0,d.cn)("select-none cursor-pointer",y==(null==t?void 0:t.product_id)&&"border-x !border-x-primary bg-red-22",y==(null==t?void 0:t.product_id)&&l==b.length-1&&"!border-b-primary rounded-b-xl",v&&"pointer-events-none"),onClick:()=>{y!=(null==t?void 0:t.product_id)&&h({product_id:null==t?void 0:t.product_id})},children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:e[null==t?void 0:t.product_id]==r.cSK.YES?(0,n.jsx)(u.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(u.K5,{})})},null==t?void 0:t.product_id))]},"tr-".concat(l)))})]})})});x.displayName="USTaxationDesktop";let h=(0,o.memo)(e=>{var l;let{listMainPackage:t,register:i}=e,{configO
1rder:m,currentCurrency:_,isLoading:v,listTypeOfService:p}=(0,o.useContext)(a.w_),{orderStore:x,updatePackageStore:h}=(0,s.Fc)(),f=(0,o.useMemo)(()=>null==x?void 0:x.start_business,[null==x?void 0:x.start_business]),g=(0,o.useMemo)(()=>null==p?void 0:p.find(e=>e.category_id==(null==f?void 0:f.type_of_service)),[null==f?void 0:f.type_of_service]),b=(0,o.useMemo)(()=>null==g?void 0:g.category_description,[null==g?void 0:g.category_description]),y=(0,o.useMemo)(()=>{var e;return null==x?void 0:null===(e=x.package_of_service)||void 0===e?void 0:e.product_id},[null==x?void 0:null===(l=x.package_of_service)||void 0===l?void 0:l.product_id]);return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("div",{className:"pt-5 px-4 text-center",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==g?void 0:g.category_title}),(0,n.jsx)("p",{className:"mt-1",children:null==g?void 0:g.category_sub_title})]}),(0,n.jsx)("div",{className:"pb-3 pt-5 px-4 shadow-37 sticky top-[119px] bg-white z-[1]",children:(0,n.jsx)("div",{className:"flex gap-2 justify-center overflow-x-auto no-scrollbar",children:null==t?void 0:t.map(e=>(0,n.jsxs)("label",{className:(0,d.cn)("min-w-[167px] flex-shrink-0",v&&"pointer-events-none"),children:[(0,n.jsx)("input",{hidden:!0,type:"radio",value:e.product_id,...i("product_id")}),(0,n.jsx)("div",{className:(0,d.cn)("px-2 py-3 border-b-2",y==e.product_id?"border-red-1":"border-white"),onClick:()=>{y!=e.product_id&&h({product_id:e.product_id})},children:(0,n.jsx)("p",{className:(0,d.cn)("text-16 text-center font-semibold",y==e.product_id&&"text-red-1"),children:e.product_name})}),(0,n.jsxs)("div",{className:"px-2 flex flex-col gap-1 text-center mt-2",children:[(0,n.jsx)("p",{className:"text-32 font-bold",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,d.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:e.product_description_price}),(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==m?void 0:m.txt_order_billed_monthly})]}),e.product_description&&(0,n.jsx)("p",{className:"text-14 font-medium",children:e.product_description})]})]},"mb-".concat(e.product_id)))})}),(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[70%]"}),(0,n.jsx)("col",{className:"w-[30%]"})]}),(0,n.jsx)("tbody",{className:"*:*:border-b first:*:*:border-r *:*:border-gray-55 *:*:p-5",children:null==b?void 0:b.map((e,l)=>{let t=(null==e?void 0:e[y||0])==r.cSK.YES;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label}),e.tooltip&&(0,n.jsx)(c.oS,{content:e.tooltip})]})}),(0,n.jsx)("td",{className:"select-none cursor-pointer",children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:t?(0,n.jsx)(u.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(u.K5,{})})})]},"tr-".concat(l))})})]})]})});h.displayName="USTaxationMobile";let f=(0,o.memo)(e=>{let{listMainPackage:l,register:t}=e;return(0,i._F)(1024)?(0,n.jsx)(h,{listMainPackage:l,register:t}):(0,n.jsx)(x,{listMainPackage:l,register:t})});f.displayName="USTaxation";let g=(0,o.memo)(e=>{var l;let{listMainPackage:t,trigger:i,setValue:r,getValues:d,control:u}=e,{isLoading:m,configOrder:_,listTypeOfService:v}=(0,o.useContext)(a.w_),{orderStore:p,updatePackageStore:x}=(0,s.Fc)(),h=(0,o.useMemo)(()=>null==p?void 0:p.package_of_service,[null==p?void 0:p.package_of_service]),f=(0,o.useMemo)(()=>null==p?void 0:p.start_business,[null==p?void 0:p.start_business]),g=(0,o.useMemo)(()=>null==v?void 0:v.find(e=>e.category_id==(null==f?void 0:f.type_of_service)),[null==f?void 0:f.type_of_service]),b=(0,o.useMemo)(()=>{var e;return null==p?void 0:null===(e=p.package_of_service)||void 0===e?void 0:e.number_of_employee},[null==p?void 0:null===(l=p.package_of_service)||void 0===l?void 0:l.number_of_employee]);return(0,o.useEffect)(()=>{r("product_id",Number(null==h?void 0:h.product_id)),d("number_of_employee")&&i()},[b]),(0,n.jsxs)("div",{className:"grid gap-5 py-5 lg:py-0 px-4 lg:px-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==g?void 0:g.category_title}),(0,n.jsx)("p",{children:null==g?void 0:g.category_sub_title})]}),(0,n.jsx)(c.YI,{control:u,disabled:m,name:"number_of_employee",placeholder:null==_?void 0:_.plc_number,classNameError:"text-xs -mt-2",min:null==_?void 0:_.min_number_of_employee,max:null==_?void 0:_.max_number_of_employee,defaultValue:b,nameLabel:null==_?void 0:_.lbl_number_of_employee,className:"w-full max-w-[400px] mx-auto",tooltip:null==_?void 0:_.tooltip_order_number_of_employee,onChangeValue:()=>{let e=Number(d("number_of_employee")),l=null==t?void 0:t.find(l=>l.product_from_employees<=e&&l.product_to_employees>=e||l.product_from_employees<=e&&!l.product_to_employees);x({product_id:null==l?void 0:l.product_id,number_of_employee:e})}}),(0,n.jsx)("div",{className:"grid w-full gap-2 lg:gap-3 max-w-[520px] mx-auto",children:null==t?void 0:t.map(e=>(0,n.jsx)(a.mu,{variant:"line",product:e,name:"product_id",control:u,disabled:m,value:e.product_id,className:"pointer-events-none",checked:e.product_id==(null==h?void 0:h.product_id)},e.product_id))})]})});g.displayName="USPayroll";var b=t(93220);let y=(0,o.memo)(e=>{let{control:l,listMainPackage:t}=e,{isLoading:i,listTypeOfService:d}=(0,o.useContext)(b.w_),{orderStore:c,updatePackageStore:u}=(0,s.Fc)(),m=(0,o.useMemo)(()=>null==c?void 0:c.start_business,[null==c?void 0:c.start_business]),_=(0,o.useMemo)(()=>null==d?void 0:d.find(e=>e.category_id==(null==m?void 0:m.type_of_service)),[null==m?void 0:m.type_of_service]),v=(0,o.useMemo)(()=>null==_?void 0:_.category_description,[null==_?void 0:_.category_description]);return(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 lg:py-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==_?void 0:_.category_title}),(0,n.jsx)("p",{children:null==_?void 0:_.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center xl:grid xl:grid-cols-3 gap-10 xl:gap-5 px-7 lg:px-0",children:null==t?void 0:t.map(e=>(0,n.jsx)(a.mu,{name:"product_id",product:e,control:l,disabled:i,value:e.product_id,isRecommended:e.product_is_default===r.cSK.YES,desPackage:null==v?void 0:v.find(l=>l.product_id==e.product_id),handleChange:()=>{u({product_id:e.product_id})}},e.product_id))})]})});y.displayName="BusinessAccount";let j=(0,o.memo)(e=>{var l;let{control:t,listMainPackage:i}=e,{isLoading:d,listTypeOfService:c}=(0,o.useContext)(b.w_),{orderStore:u,updatePackageStore:m}=(0,s.Fc)(),_=(0,o.useMemo)(()=>null==u?void 0:u.start_business,[null==u?void 0:u.start_business]),v=(0,o.useMemo)(()=>null==c?void 0:c.find(e=>e.category_id==(null==_?void 0:_.type_of_service)),[null==_?void 0:_.type_of_service]),p=(0,o.useMemo)(()=>null==v?void 0:v.category_description,[null==v?void 0:v.category_description]),x=(0,o.useMemo)(()=>null==i?void 0:i.filter(e=>{var l;return e.product_legal_entity_id==(null==u?void 0:null===(l=u.start_business)||void 0===l?void 0:l.legal_entity_id)}),[null==u?void 0:null===(l=u.start_business)||void 0===l?void 0:l.legal_entity_id]);return(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 lg:py-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==v?void 0:v.category_title}),(0,n.jsx)("p",{children:null==v?void 0:v.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-10 xl:gap-5 px-7 lg:px-0",children:null==x?void 0:x.map(e=>(0,n.jsx)(a.mu,{name:"product_id",product:e,control:t,disabled:d,className:"max-w-[294px]",value:e.product_id,isRecommended:e.product_is_default===r.cSK.YES,desPackage:null==p?void 0:p.find(l=>l.product_id==e.product_id),handleChange:()=>{m({product_id:e.product_id})}},e.product_id))})]})});j.displayName="Incorporation";let N=(0,o.memo)(e=>{let{control:l,listMainPackage:t,setValue:i,getValues:a}=e,{isLoading:d,listTypeOfService:u,configOrder:m,getPackages:_}=(0,o.useContext)(b.w_),{orderStore:v,updatePackageStore:p}=(0,s.Fc)(),x=(0,o.useMemo)(()=>null==v?void 0:v.start_business,[null==v?void 0:v.start_business]),h=(0,o.useMemo)(()=>null==u?void 0:u.find(e=>e.category_id==(null==x?void 0:x.type_of_service)),[null==x?void 0:x.type_of_service]),f=(0,o.useMemo)(()=>null==v?void 0:v.package_of_service,[null==v?void 0:v.package_of_service]),g=(0,o.useMemo)(()=>Array.from({length:Number(null==m?void 0:m.max_number_of_class)-Number(null==m?void 0:m.min_number_of_class)+1},(e,l)=>l+Number(null==m?void 0:m.min_number_of_class)).map(e=>({label:e.toString(),value:e.toString()})),[]),y=(0,o.useMemo)(()=>[{label:null==m?void 0:m.txt_yes,value:r.cSK.YES},{label:null==m?void 0:m.txt_no,value:r.cSK.NO}],[]),j=(0,o.useMemo)(()=>_({categoryId:null==h?void 0:h.category_id,productType:r.Vo0.CLASS}),[null==h?void 0:h.category_id]),N=(0,o.useCallback)(()=>{var e,l,n,o;let s=(null===(e=a("is_additional_class"))||void 0===e?void 0:e.value)==r.cSK.YES;i("product_id",null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.product_id),i("number_of_additional_class",s?null==g?void 0:g[0]:void 0),p({product_id:null==t?void 0:null===(n=t[0])||void 0===n?void 0:n.product_id,number_of_additional_class:s?Number(null==m?void 0:m.min_number_of_class):void 0,product_additional_class_id:s?null==j?void 0:null===(o=j[0])||void 0===o?void 0:o.product_id:void 0,is_additional_class:s?r.cSK.YES:r.cSK.NO})},[]),w=(0,o.useCallback)(()=>{var e;p({number_of_additional_class:Number(null===(e=a("number_of_additional_class"))||void 0===e?void 0:e.value)})},[]);return(0,o.useEffect)(()=>{a("is_additional_class")||a("number_of_additional_class")||(i("is_additional_class",null==y?void 0:y.find(e=>e.value==(null==f?void 0:f.is_additional_class))),i("number_of_additional_class",null==g?void 0:g.find(e=>e.value==String(null==f?void 0:f.number_of_additional_class))))},[f]),(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 px-4 lg:p-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==h?void 0:h.category_title}),(0,n.jsx)("p",{children:null==h?void 0:h.category_sub_title})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-5 lg:gap-10",children:[(0,n.jsx)("div",{className:"w-full xl:w-[358px]",children:(0,n.jsx)(c.$k,{control:l,isShowPlaceholder:!0,option:y,isDisabled:d,classNameError:"text-xs",id:"is_additional_class",name:"is_additional_class",placeholder:null==m?void 0:m.txt_please_select,onSelect:N,nameLabel:null==m?void 0:m.lbl_order_trademark_additional_class})}),(null==f?void 0:f.is_additional_class)==r.cSK.YES&&(0,n.jsx)("div",{className:"w-full xl:w-[358px]",children:(0,n.jsx)(c.$k,{control:l,isShowPlaceholder:!0,isDisabled:d,classNameError:"text-xs",option:g,id:"number_of_additional_class",name:"number_of_additional_class",placeholder:null==m?void 0:m.txt_please_select,onSelect:w,nameLabel:null==m?void 0:m.lbl_order_trademark_number_additional_class})})]})]})});N.displayName="Trademark";let w=(0,o.memo)(e=>{let{listMainPackage:l,control:t}=e,{isLoading:i,listTypeOfService:d}=(0,o.useContext)(b.w_),{orderStore:c,updatePackageStore:u}=(0,s.Fc)(),m=(0,o.useMemo)(()=>null==c?void 0:c.start_business,[null==c?void 0:c.start_business]),_=(0,o.useMemo)(()=>null==d?void 0:d.find(e=>e.category_id==(null==m?void 0:m.type_of_service)),[null==m?void 0:m.type_of_service]);return(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 px-4 lg:p-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==_?void 0:_.category_title}),(0,n.jsx)("p",{children:null==_?void 0:_.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center 2xl:grid 2xl:gr
1id-cols-3 gap-3",children:null==l?void 0:l.map(e=>(0,n.jsx)(a.mu,{variant:"simple",name:"product_id",product:e,control:t,disabled:i,value:e.product_id,isRecommended:e.product_is_default===r.cSK.YES,handleChange:()=>{u({product_id:e.product_id})}},e.product_id))})]})});w.displayName="ServiceOffice";let k=(0,o.memo)(e=>{let{control:l,listMainPackage:t}=e,{isLoading:i,listTypeOfService:d}=(0,o.useContext)(b.w_),{orderStore:c,updatePackageStore:u}=(0,s.Fc)(),m=(0,o.useMemo)(()=>null==c?void 0:c.start_business,[null==c?void 0:c.start_business]),_=(0,o.useMemo)(()=>null==d?void 0:d.find(e=>e.category_id==(null==m?void 0:m.type_of_service)),[null==m?void 0:m.type_of_service]),v=(0,o.useMemo)(()=>null==_?void 0:_.category_description,[null==_?void 0:_.category_description]);return(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 lg:py-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==_?void 0:_.category_title}),(0,n.jsx)("p",{children:null==_?void 0:_.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center xl:grid xl:grid-cols-3 gap-10 xl:gap-5 px-7 lg:px-0",children:null==t?void 0:t.map(e=>(0,n.jsx)(a.mu,{name:"product_id",product:e,control:l,disabled:i,value:e.product_id,isRecommended:e.product_is_default===r.cSK.YES,desPackage:null==v?void 0:v.find(l=>l.product_id==e.product_id),handleChange:()=>{u({product_id:e.product_id})}},e.product_id))})]})});k.displayName="MerchantAccount";let S=(0,o.memo)(e=>{var l,t;let{setValue:i,getValues:a,control:d,typeOfService:u}=e,{isLoading:m,listTypeOfService:_,configOrder:v,getPackages:p}=(0,o.useContext)(b.w_),{orderStore:x,updatePackageStore:h}=(0,s.Fc)(),f=(0,o.useMemo)(()=>null==x?void 0:x.start_business,[null==x?void 0:x.start_business]),g=(0,o.useMemo)(()=>null==_?void 0:_.find(e=>e.category_id==(null==f?void 0:f.type_of_service)),[null==f?void 0:f.type_of_service]),y=(0,o.useMemo)(()=>Array.from({length:Number(null==v?void 0:v.max_nominee_number_of_director)-Number(null==v?void 0:v.min_nominee_number_of_director)+1},(e,l)=>l+Number(null==v?void 0:v.min_nominee_number_of_director)).map(e=>({label:e.toString(),value:e.toString()})),[]),j=(0,o.useMemo)(()=>Array.from({length:Number(null==v?void 0:v.max_nominee_number_of_shareholder)-Number(null==v?void 0:v.min_nominee_number_of_shareholder)+1},(e,l)=>l+Number(null==v?void 0:v.min_nominee_number_of_shareholder)).map(e=>({label:e.toString(),value:e.toString()})),[]),N=(0,o.useMemo)(()=>p({categoryId:u}),[p]),w=(0,o.useCallback)(()=>{var e;let l=null===(e=a("number_of_director"))||void 0===e?void 0:e.value,t=null==N?void 0:N.find(e=>e.product_type_id==r.Vo0.NOMINEE_DIRECTOR_FEE);h({number_of_director:Number(l),director_product_id:null==t?void 0:t.product_id})},[]),k=(0,o.useCallback)(()=>{var e;let l=null===(e=a("number_of_shareholder"))||void 0===e?void 0:e.value,t=null==N?void 0:N.find(e=>e.product_type_id==r.Vo0.NOMINEE_SHAREHOLDER_FEE);h({number_of_shareholder:Number(l),shareholder_product_id:null==t?void 0:t.product_id})},[]);return(0,o.useEffect)(()=>{a("number_of_director")||a("number_of_shareholder")||(i("number_of_director",null==y?void 0:y.find(e=>{var l;return e.value==String(null==x?void 0:null===(l=x.package_of_service)||void 0===l?void 0:l.number_of_director)})),i("number_of_shareholder",null==j?void 0:j.find(e=>{var l;return e.value==String(null==x?void 0:null===(l=x.package_of_service)||void 0===l?void 0:l.number_of_shareholder)})))},[null==x?void 0:null===(l=x.package_of_service)||void 0===l?void 0:l.number_of_director,null==x?void 0:null===(t=x.package_of_service)||void 0===t?void 0:t.number_of_shareholder]),(0,n.jsxs)("div",{className:"grid gap-10 lg:gap-5 py-5 px-4 lg:p-0",children:[(0,n.jsxs)("div",{className:"text-center lg:text-left px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary mb-1",children:null==g?void 0:g.category_title}),(0,n.jsx)("p",{children:null==g?void 0:g.category_sub_title})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-5 lg:gap-10",children:null==N?void 0:N.map(e=>{let l="number_of_director",t=[],i=()=>{};switch(e.product_type_id){case r.Vo0.NOMINEE_DIRECTOR_FEE:l="number_of_director",i=w,t=y;break;case r.Vo0.NOMINEE_SHAREHOLDER_FEE:l="number_of_shareholder",i=k,t=j}return(0,n.jsx)("div",{className:"w-full 2xl:w-[400px]",children:(0,n.jsx)(c.$k,{id:l,name:l,control:d,isShowPlaceholder:!0,isDisabled:m,onSelect:i,classNameError:"text-xs",option:t,tooltip:e.product_name,nameLabel:e.product_name,placeholder:null==v?void 0:v.txt_please_select})},e.product_id)})})]})});S.displayName="Nominee"},61363:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Pagination:()=>u});var n=t(38694),i=t(29432),o=t(50280),a=t(45734),r=t(37203),s=t.n(r),d=t(95863),c=t.n(d);let u=e=>{let{pageCount:l,navigator:t=!0,setPage:r}=e,{configGlobal:d}=(0,a.useContext)(i.BR),u=(0,o.useRouter)(),m=(0,o.useSearchParams)(),_=m&&Number(m.get("page")),[v,p]=(0,a.useState)(_||1
1),x=(0,a.useCallback)((e,l)=>{let t=m?new URLSearchParams(m):new URLSearchParams;return t.set(e,l),t.toString()},[_]);return(0,a.useEffect)(()=>{if(!_||_<0||1==_){let e=new URL(window.location.href);return e.searchParams.delete("page"),p(1),window.history.pushState({},"",e.toString())}if(p(_),_>l)return u.replace("?"+x("page",l.toString()))},[_,l]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s(),{containerClassName:c().wrapper,pageClassName:c().item,activeClassName:c().active,disabledClassName:c().disabled,previousClassName:t?c().previous:"hidden",nextClassName:t?c().next:"hidden",breakClassName:c().break,onPageChange:e=>{let l=(e.selected+1).toString();if(r){let e=new URL(window.location.href);return e.searchParams.set("page",l),r(l),window.scrollTo(0,0),window.history.pushState({},"",e.toString())}u.replace("?"+x("page",l))},marginPagesDisplayed:2,pageRangeDisplayed:2,pageCount:l,forcePage:v-1,breakLabel:"...",previousLabel:null==d?void 0:d.txt_previous,nextLabel:null==d?void 0:d.txt_next})})}},62147:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MyAccountContext:()=>u,MyAccountProvider:()=>m,useMyAccountContext:()=>_});var n=t(38694),i=t(89923),o=t(64646),a=t(8256),r=t(76970),s=t(20361),d=t(45734);let c={userData:null,updateContextValue:()=>{}},u=(0,d.createContext)(c),m=e=>{let{children:l}=e,t=(0,s.getCookie)(i.Av.USER_TOKEN),{updateUser:m,updateUserId:_}=(0,a.HQ)(),{data:v}=(0,r.I)({queryKey:["user-info"],queryFn:()=>o.qE.submitGetUser(t),enabled:!!t,refetchOnWindowFocus:!0,gcTime:0,staleTime:0}),[p,x]=(0,d.useState)({...c,updateContextValue:e=>{x(l=>({...l,...e}))}});return(0,d.useEffect)(()=>{v&&(x(e=>({...e,userData:v})),v&&(m(v),_(null==v?void 0:v.user_id)))},[v]),(0,n.jsx)(u.Provider,{value:p,children:l})},_=()=>(0,d.useContext)(u)},62768:()=>{},62821:(e,l,t)=>{"use strict";t.d(l,{aZ:()=>a,n4:()=>r,C4:()=>
1o});var n=t(38694),i=t(2508);let o=e=>{let{children:l,className:t}=e;return(0,n.jsx)("button",{tabIndex:0,className:(0,i.cn)("group focus:outline-none",t),onMouseDown:e=>e.currentTarget.focus(),onMouseUp:e=>e.currentTarget.focus(),onTouchStart:e=>e.currentTarget.focus(),children:l})},a=e=>{let{children:l,className:t}=e;return(0,n.jsx)("div",{className:(0,i.cn)("relative cursor-pointer",t),children:l})},r=e=>{let{children:l,className:t}=e;return(0,n.jsx)("div",{className:(0,i.cn)("absolute top-full transition-all duration-300 invisible group-focus:visible hover:visible scale-0 group-focus:scale-100 hover:scale-100 cursor-default",t),children:l})}},63025:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BusinessMenu:()=>d});var n=t(38694),i=t(29432),o=t(94674),a=t(36791),r=t.n(a),s=t(45734);let d=e=>{var l;let{business:t}=e,{langLocationSlashed:a,configGlobal:d}=(0,s.useContext)(i.BR);return(0,n.jsx)("div",{className:"flex gap-10",children:null==t?void 0:null===(l=t.menu_children)||void 0===l?void 0:l.map((e,l)=>{var t;return(0,n.jsxs)("div",{className:"min-w-[248px] flex flex-col gap-4",children:[(0,n.jsx)(r(),{href:"".concat(a,"/").concat(e.menu_link),title:e.menu_name,className:"text-18 font-semibold leading-1-4",children:e.menu_name}),(0,n.jsx)("div",{className:"pl-4 border-l border-gray grid gap-3",children:null==e?void 0:null===(t=e.menu_children)||void 0===t?void 0:t.map((e,l)=>(0,n.jsx)(r(),{href:"".concat(a,"/").concat(e.menu_link),title:e.menu_name,className:"text-16 leading-1-4 hover:text-primary",children:e.menu_name},l))}),(null==e?void 0:e.menu_view_link)&&(0,n.jsx)(r(),{href:"".concat(a,"/").concat(e.menu_view_link),title:null==d?void 0:d.txt_view_all,className:"text-16 leading-1-4 underline hover:text-primary font-semibold",children:null==d?void 0:d.txt_view_all}),(null==e?void 0:e.menu_open_chat)&&(0,n.jsx)(o.$n,{href:"".concat(a,"/").concat(e.menu_view_link,"?open-chat=true"),title:null==d?void 0:d.txt_get_expert_guidance,className:"text-md font-semibold mt-6 px-5 py-3 w-fit",variant:"outline-black",children:null==d?void 0:d.txt_get_expert_guidance})]},l)})})}},64646:(e,l,t)=>{"use strict";t.d(l,{pT:()=>E,_s:()=>i._s,PF:()=>a,kV:()=>d,jN:()=>N,qE:()=>y,o6:()=>h,gx:()=>s,QG:()=>u,bM:()=>x,m8:()=>i.m8,mi:()=>w,Yc:()=>g,WS:()=>f,J:()=>c,Ly:()=>S,xN:()=>C,_F:()=>k,qg:()=>m});var n=t(93693),i=t(38143);let o=e=>e.reduce((e,l)=>(e[l.config_key]=l.config_content,e),{}),a={async extractConfigData(e){let l=await n.G.get("/config",{params:{key:e.join("-")}});return l.data?o(l.data):e.reduce((e,l)=>(e[l]=l,e),{})}};var r=t(48873);let s={submitLead:async e=>await n.G.post("".concat(r._cw,"/form/lead-form"),e),verifyOTP:async e=>await n.G.post("".concat(r._cw,"/form/lead-form/verify-otp"),e),async getServiceLeadForm(){var e;let l=await n.G.get("".concat(r._cw,"/form/lead-form/service"));return l.success&&l.data?null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.map(e=>({label:e.name,value:String(e.id),...e})):[]},async getListStateByCountry(e){var l;let t=await n.G.get("state/get-by-country/".concat(e));return t.success&&t.data?null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.map(e=>({label:null==e?void 0:e.state_name,value:e.state_code})):[]},async getCommunicationChannels(){var e;let l=await n.G.get("/communication-channel/list");return l.success&&l.data?null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.map(e=>({label:e.communication_channel_name,value:String(e.communication_channel_id),icon:e.communication_channel_icon,...e})):[]},async getHowDidYouKnowLeadForm(){var e;let l=await n.G.get("".concat(r._cw,"/form/lead-form/how-did-you-know"));return l.success&&l.data?null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.map(e=>{var l,t;return(null==e?void 0:null===(l=e.child)||void 0===l?void 0:l.length)?{label:e.name,value:String(e.id),options:null===(t=e.child)||void 0===t?void 0:t.map(e=>({label:e.name,value:String(e.id),isChildren:!0,...e})),...e}:{label:e.name,value:String(e.id),...e}}):[]}},d={submitContact:e=>n.G.post("".concat(r._cw,"/form/contact-us"),e,{headers:{"Content-Type":"multipart/form-data"},timeout:3e5})},c={submitRegisterPartnership:e=>n.G.post("form/partnership",e)},u={async getListLiveChat(){let e=await n.G.get("".concat(r._cw,"/live-chat"),{headers:{cache:"no-cache"}});return e.success&&e.data?e.data:[]}},m={submitSubscribe:e=>n.G.post("/form/subscribe",e)};var _=t(2508),v=t(87999);let p={getFormatCountry:async e=>[...e].sort((e,l)=>e.area_order?l.area_order?e.area_order-l.area_order:-1:1).map(e=>({area_id:e.country_area_id,area_name:e.area_name,country_code:e.location_country_code,country_name:e.country_name,languages:e.languages}))};t(5166),t(50280);let x={async getCountries(e){var l;let t=new URLSearchParams(e).toString(),i=await n.G.get("countries?".concat(t));return i.success&&i.data?null===(l=i.data)||void 0===l?void 0:l.map(e=>({label:e.country_name||"",value:e.country_code||"",icon:e.country_flag||"",...e})):[]},async getCountriesGroupByArea(e,l){if(!e)return[];let t=e;l&&(t=await this.getCountries(l));let n={};
1return null==t||t.forEach(e=>{var l;let{area_id:t,area_name:i}=e;t&&(n[t]||(n[t]={area_id:t,area_name:i,label:i||"",value:String(t),countries:[]}),null===(l=n[t].countries)||void 0===l||l.push({...e}))}),Object.values(n)},async getAllState(){var e;let l=await n.G.get("state/all");return l.success&&l.data?null===(e=l.data)||void 0===e?void 0:e.map(e=>({label:e.state_name||"",value:e.state_code||"",...e})):[]},async getLocations(){let e=await n.G.get("".concat(r._cw,"/location"));return e.success&&e.data?await p.getFormatCountry(e.data):[]}},h={async getCurrencies(e){var l;let t=await n.G.get("currencies?".concat(e||""));return(null==t?void 0:t.success)&&(null==t?void 0:t.data)?null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.map(e=>({label:"".concat(null==e?void 0:e.currency_code," (").concat(null==e?void 0:e.currency_title,")"),value:null==e?void 0:e.currency_code})):[]},async getWireBanksByCurrency(e){var l;let t=await n.G.get("wire-bank-transfer?currency_code="+e);return(null==t?void 0:t.success)&&(null==t?void 0:t.data)?null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.map(e=>({label:null==e?void 0:e.bank_name,value:null==e?void 0:e.bank_id,url:null==e?void 0:e.bank_link_pdf})):[]}},f={getListPayment:async(e,l,t)=>await n.G.get("/user/my-payment?page=".concat(e,"&per_page=").concat(l),{headers:{Authorization:"".concat(t),cache:"no-cache"}}),getPaymentDetail:async(e,l)=>await n.G.get("/user/my-payment/".concat(e),{headers:{Authorization:"".concat(l),cache:"no-cache"}}),getPaymentReceipt:async(e,l)=>await n.G.get("/user/my-payment/receipt/".concat(e),{headers:{Authorization:"".concat(l),cache:"no-cache"}})};t(33213);let g={getListOrder:async(e,l,t)=>await n.G.get("/user/my-setup-now-v2?page=".concat(e,"&per_page=").concat(l),{headers:{Authorization:"".concat(t),cache:"no-cache"}}),getOrderDetail:async(e,l)=>await n.G.get("/user/my-setup-now-v2/".concat(e),{headers:{Authorization:"".concat(l),cache:"no-cache"}}),getOrderReceipt:async(e,l)=>await n.G.get("/user/my-setup-now-v2/receipt/".concat(e),{headers:{Authorization:"".concat(l),cache:"no-cache"}})};var b=t(17671);let y={async submitGetUser(e){let l=await n.G.get("/user/info",{headers:{Authorization:"".concat(e),cache:!1}});return(null==l?void 0:l.success)&&(null==l?void 0:l.data)?null==l?void 0:l.data:((0,b.deleteCookie)(r.Avz.USER_TOKEN),window.location.reload())}};var j=function(e){return e.unauthorized="Unauthorized access detected",e.NotFound="Data not found",e}(j||{});function N(e){let l={};if(!e)return null;let t=e.message,n=e.success;switch(Number(e.statusCode)){case _.kG.Unauthorized:l.unauthorized=t||"Unauthorized access detected";break;case _.kG.NotFound:l.NotFound=t||"Data not found";break;case _.kG.UnprocessableEntity:for(let t in e.validator)Object.prototype.hasOwnProperty.call(e.validator,t)&&(l[t]=e.validator[t]);break;default:l=null}return!n&&l&&t&&(l.error=t),l}let w={async getListPaymentFor(){let e=await n.G.get("/make-payment/payment-for");return(null==e?void 0:e.data)||{}},async getListSelectOptionsPaymentFor(){return Object.entries(await this.getListPaymentFor()).map(e=>{let[l,t]=e;return{id:l,label:t,value:l.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}})},async processMakePayment(e,l){let t=await n.G.post("/make-payment/process-make-payment",(0,_.PZ)({...e,gRecaptchaToken:l}),{headers:{encrypt:!0,cache:"no-cache"}}),i=N(t);return i?{errors:i}:t},captureMakePayment:async e=>await n.G.post("/make-payment/capture",e,{headers:{encrypt:!0,cache:"no-cache"}}),async failMakePayment(e,l){let t=await n.G.post("/make-payment/fail-payment/".concat(e),l,{headers:{encrypt:!0,cache:"no-cache"}}),i=N(t);return i?{errors:i}:t},getRePaymentApi:async e=>await n.G.get("/user/my-payment/".concat(e),{headers:{cache:"no-cache"}}),getRePaymentByTokenApi:async e=>await n.G.get("/make-payment/get-token-info?token=".concat(e),{headers:{cache:"no-cache"}}),async getPaymentGatewayClient(e){let l=await n.G.get("merchant".concat(e?"?is_online="+e:""));return(null==l?void 0:l.data)?null==l?void 0:l.data:[]}},k={async getSlugPath(e){let l=await n.G.get("/slug-path-lang?pathname=".concat(e));return l.success&&l.data?l.data:[]}},S={async getSuffix(e){var l;let t=await n.G.get("/order5/suffix?suffix_legal_entity_id=".concat(e));return t.success&&(null==t?void 0:t.data)?null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.map(e=>({...e,label:e.suffix_name,value:String(e.suffix_id)})):[]},async getTypeOfService(e){var l;let t=new URLSearchParams(e).toString(),i=await n.G.get("/order5/type-of-service?".concat(t));return i.success&&(null==i?void 0:i.data)?null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.map(e=>({...e,label:null==e?void 0:e.category_name,value:String(null==e?void 0:e.category_id)}
1)):[]}},C={submitStartBusiness:async e=>await n.G.post("/order5/validate-step1",e),submitContactInfo:async e=>await n.G.post("/order5/create",e),submitCreateByAi:async e=>await n.G.post("/order5/create-by-ai",e),submitUnderstandYourNeed:async e=>await n.G.post("/order5/get-recommendations",e),submitAiRecommendation:async e=>await n.G.post("/order5/choose-package-by-ai",e),submitChoosePackage:async e=>await n.G.post("/order5/choose-package",e),submitEntityName:async e=>await n.G.post("/order5/entity-info",e),submitUpgradePackage:async e=>await n.G.post("/order5/upgrade-premium",e),submitCompanyMember:async e=>await n.G.post("/order5/company-detail",e),submitBoostBusiness:async e=>await n.G.post("/order5/recommend-service",e),submitCompanyDetails:async e=>await n.G.post("/order5/contact-detail",e),submitOrderReview:async e=>await n.G.post("/order5/review",e),submitProcessPayment:async e=>await n.G.post("/make-payment/process-order-payment",(0,_.PZ)(e),{headers:{encrypt:!0,cache:"no-cache"}}),captureOrderPayment:async e=>await n.G.post("/order5/capture",e,{headers:{encrypt:!0,cache:"no-cache"}}),failOrderPayment:async(e,l)=>await n.G.post("/order5/fail-payment/".concat(e),l)},E={async getOptions(){let e=await n.G.get("/auth/account-deletion/options");return e.success&&e.data?e.data:null},submitDeletionRequest:async e=>await n.G.post("/auth/account-deletion",e),verifyOtp:async e=>await n.G.post("/auth/account-deletion/verify-otp",e),resendOtp:async e=>await n.G.post("/auth/account-deletion/resend-otp",e),cancelDeletionRequest:async(e,l)=>await n.G.post("/auth/account-deletion/cancel",{email:e,gRecaptchaToken:l})}},65877:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BaseComponent:()=>p});var n=t(38694),i=t(89923),o=t(8256),a=t(3578),r=t(17671),s=t(41388),d=t.n(s),c=t(50280),u=t(45734),m=t(59990);function _(){let e=(0,c.useSearchParams)();return(0,u.useEffect)(()=>{if(document.referrer)try{new URL(document.referrer).hostname!==window.location.hostname&&(sessionStorage.setItem(i.Jm.EXTERNAL_REFERRER,document.referrer),(0,r.setCookie)(i.Av.EXTERNAL_REFERRER,document.referrer,{maxAge:2592e3}),sessionStorage.setItem(i.Jm.LANDING_PAGE_URL,window.location.href))}catch(e){}if(e)for(let l in i.aS){let t=i.aS[l],n=e&&e.get(t);n&&(0,r.setCookie)("__data_ads_".concat(l),n,{maxAge:2592e3})}},[e]),(0,n.jsx)(n.Fragment,{})}function v(){return(0,u.useEffect)(()=>{window.CryptoJS=d()},[]),(0,n.jsx)(n.Fragment,{})}let p=e=>{let{device:l}=e,t=(0,a.vb)(),i=(0,c.usePathname)(),{user_id:r}=(0,o.HQ)();return(0,u.useEffect)(()=>{t.defaultDataLayer({dynx_platform:l,dynx_userID:r||""})},[i]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Suspense,{children:[(0,n.jsx)(_,{}),(0,n.jsx)(v,{})]}),(0,n.jsx)(m.e,{})]})}},66011:(e,l,t)=>{"use strict";t.d(l,{o:()=>r});var n=t(38694),i=t(29432),o=t(2508),a=t(42500);let r=e=>{let{content:l,position:t="top",className:r,small:s}=e;return s?(0,n.jsxs)("div",{className:"relative cursor-help group tooltip",children:[(0,n.jsx)(a.l8,{className:"w-2.5 h-2.5"}),(0,n.jsx)("div",{className:(0,o.cn)("hidden group-hover:block absolute bottom-6 -left-48 lg:!-left-5 z-10 w-[275px] bg-red-9 border-[0.5px] border-primary rounded-lg px-3 py-2 text-12",r),children:l})]}):(0,n.jsxs)("div",{className:"relative group",children:[(0,n.jsx)(a.l8,{className:"cursor-help"}),(0,n.jsx)("div",{className:(0,o.cn)("group-hover:block hidden absolute drop-shadow",{top:"left-1/2 top-0 -translate-x-1/2 -translate-y-full border-l-[12px] border-l-transparent border-t-[18px] border-t-white border-r-[12px] border-r-transparent",bottom:"left-1/2 bottom-0 -translate-x-1/2 translate-y-full border-l-[12px] border-l-transparent border-b-[18px] border-b-white border-r-[12px] border-r-transparent",left:"left-0 top-full -translate-x-full -translate-y-full border-t-[12px] border-t-transparent border-l-[18px] border-l-white border-b-[12px] border-b-transparent",right:"right-0 top-full translate-x-full -translate-y-full border-t-[12px] border-t-transparent border-r-[18px] border-r-white border-b-[12px] border-b-transparent"}[t])}),(0,n.jsx)("div",{className:(0,o.cn)("absolute z-[1] shadow-2 rounded-lg p-5 bg-white hidden group-hover:block w-dvw max-w-[343px] -m-4 text-14",{top:"top-0 -translate-y-full",bottom:"bottom-0 translate-y-full",left:"left-0 top-full -translate-x-full -translate-y-1/2",right:"right-0 top-full translate-x-full -translate-y-1/2"}[t],r),children:(0,n.jsx)(i.wR,{html:l||""})})]})}},66405:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LeadFormV1:()=>h});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(42500),m=t(83924),_=t(55015),v=t
1(50280),p=t(45734),x=t(29722);let h=e=>{var l,t,h,f;let{className:g,serviceId:b,optionID:y,hidden:j,isAds:N}=e,[w,k]=(0,p.useState)(o.PT2.USER_INFO),[S,C]=(0,p.useState)(!1),[E,R]=(0,p.useState)(0),[O,T]=(0,p.useState)(""),[A,M]=(0,p.useState)(""),[I,P]=(0,p.useState)(!1),[L,F]=(0,p.useState)(),[D,K]=(0,p.useState)(null),B=(0,d.vb)(),G=(0,v.usePathname)(),U=(0,v.useRouter)(),Y=(0,p.useRef)(null),{listConfigLeadform:z,listServiceLeadform:H}=(0,r.rZ)(),{control:q,register:V,setError:Z,handleSubmit:$,watch:W,getValues:X,setValue:J,formState:{errors:Q}}=(0,x.mN)({mode:"all",resolver:(0,m.t)((0,d.zW)(z,j)),shouldFocusError:!1}),ee=(0,_.n)({mutationFn:async e=>await a.gx.submitLead(e)}),el=$(async e=>{var l,t,n,i;C(!0);let r=await (0,d.Ji)(),s=await (null===(l=Y.current)||void 0===l?void 0:l.onSubmit()),c={...e,service_id:null===(t=e.service_id)||void 0===t?void 0:t.value,option_id:null===(n=e.option_id)||void 0===n?void 0:n.value,communication_channel_id:o.k_T,communication_channel_other_name:o.sT4,communication_channel_number:o.sT4,message:null===(i=e.message)||void 0===i?void 0:i.value,gRecaptchaToken:r,url:"".concat(o.IO4).concat(G),verify_otp:!0,...s};ee.mutate(c,{onSuccess:e=>{C(!1);let l=(0,a.jN)(e);if(l){K(l),M((null==e?void 0:e.message)||""),P(!0),C(!1);return}if(null==e?void 0:e.success){var t,n,i;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.leadform_id)&&R(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.leadform_id),(null==e?void 0:e.data)&&B.leadForm(null==e?void 0:e.data),U.push("?success_id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.leadform_id),{scroll:!1}),k(o.PT2.OTP_INPUT)}}})}),et=(0,_.n)({mutationFn:e=>a.gx.verifyOTP(e)}),en=async e=>{k(o.PT2.VERIFYING_OTP);let l=await (0,d.Ji)(),t={skip_otp:e.skip_otp,verify_code:e.value,id:E,gRecaptchaToken:l};et.mutate(t,{onSuccess:e=>{(null==e?void 0:e.success)||(k(o.PT2.OTP_INPUT),T((null==e?void 0:e.message)||"")),(null==e?void 0:e.success)&&(null==e?void 0:e.message)&&k(o.PT2.VERIFIED)}})};(0,r.VT)(Z,D,Q,M);let ei=W("service_id"),{userInfo:eo}=(0,s.HQ)();return((0,p.useEffect)(()=>{let e=(0,d.hj)(eo);e&&(J("name",(null==e?void 0:e.user_name)||""),J("email",(null==e?void 0:e.user_email)||""),J("phone_number",(null==e?void 0:e.user_telapi_international_format)||""))},[eo]),(0,p.useEffect)(()=>{let e=null==H?void 0:H.find(e=>Number(b)===Number(null==e?void 0:e.value));e&&(J("service_id",e),F(null==e?void 0:e.option))},[b,H]),(0,p.useEffect)(()=>{let e=null==H?void 0:H.find(e=>Number(null==ei?void 0:ei.value)===Number(e.value));e&&(F(null==e?void 0:e.option),J("option_id",{label:(null==z?void 0:z.txt_please_select)||"",value:""}))},[ei]),(0,p.useEffect)(()=>{if(y){var e;let l=null==L?void 0:null===(e=L.items)||void 0===e?void 0:e.find(e=>e.id==y);l&&J("option_id",{value:String(l.id),label:l.name})}},[L]),z)?w===o.PT2.OTP_INPUT?(0,n.jsx)(i.IS,{submit:en,configDict:z||{},phoneNumber:X("phone_number"),errorMessage:O}):w===o.PT2.VERIFYING_OTP?(0,n.jsxs)("div",{className:"w-full min-h-[450px] xl:!min-h-[585px] mx-auto flex justify-center flex-col items-center py-8 box-shadow-form rounded-xl",children:[(0,n.jsx)("p",{className:"text-20 md:!text-28 font-semibold leading-1-2 mb-2 md:!mb-4 text-center",children:null==z?void 0:z.txt_processing}),(0,n.jsx)("p",{className:"text-14 md:!text-18 px-12 md:!px-0 mb-6 md:!mb-8 leading-1-4 text-center",children:null==z?void 0:z.txt_leadform_processing}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"w-20 h-20 rounded-full animate-spin border-2 border-solid border-blue-6 border-t-transparent"})})]}):w===o.PT2.VERIFIED?(0,n.jsxs)("div",{className:"w-full min-h-[450px] xl:!min-h-[585px] mx-auto flex justify-center flex-col items-center py-8 box-shadow-form rounded-xl",children:[(0,n.jsx)(u.d1,{className:"w-20 h-20 md:!w-[160px] md:!h-[160px]"}),(0,n.jsx)("h2",{className:"md:!text-24 font-bold mt-5 text-center",children:null==z?void 0:z.txt_leadform_thank_you}),(0,n.jsx)("p",{className:"text-14 font-normal mt-3 text-center",children:null==z?void 0:z.txt_leadform_contact_you_soon})]}):(0,n.jsxs)("form",{onSubmit:el,noValidate:!0,className:(0,d.cn)("w-full grid gap-5",g),children:[(0,n.jsx)(c.pd,{type:"text",id:"full_name",className:"relative",...V("name"),errorMessage:null===(l=Q.name)||void 0===l?void 0:l.message,maxLength:255,nameLabel:null==z?void 0:z.lbl_full_name,required:!0,classNameInput:"h-12",isFullName:N}),(0,n.jsx)(c.pd,{type:"text",id:"email",className:"relative",...V("email"),errorMessage:null===(t=Q.email)||void 0===t?void 0:t.message,maxLength:255,nameLabel:null==z?void 0:z.txt_email,required:!0,classNameInput:"h-12",isEmail
1:N}),(0,n.jsx)(c.KE,{setError:Z,control:q,name:"phone_number",id:"phone_number",type:"text",placeholder:"e.g: xxxxxxxxx",required:!0,classNameInput:"h-12",nameLabel:null==z?void 0:z.txt_phone,isIconPhone:N}),j&&(0,n.jsx)(c.$k,{nameLabel:N?null==z?void 0:z.txt_your_inquiries:null==z?void 0:z.txt_which_service_are_you_in_interested_in,control:q,id:"your-inquiries",name:"service_id",placeholder:null==z?void 0:z.txt_please_select,option:H,isShowPlaceholder:!0,isLeadform:!0}),!!(null==L?void 0:null===(h=L.items)||void 0===h?void 0:h.length)&&(0,n.jsx)(c.$k,{control:q,id:"option_id",name:"option_id",placeholder:null==L?void 0:L.title,nameLabel:null==L?void 0:L.title,option:(null==L?void 0:L.items)?null==L?void 0:null===(f=L.items)||void 0===f?void 0:f.map(e=>({value:e.id,label:e.name})):[],isLeadform:!0}),!j&&(0,n.jsx)(c.$k,{control:q,id:"message",name:"message",placeholder:null==z?void 0:z.txt_please_select,nameLabel:null==z?void 0:z.lbl_landing_page_message,option:(0,d.Ol)(null==z?void 0:z.schema_option_want_to_start_leadform)||[],isLeadform:!0,isShowPlaceholder:!0}),(0,n.jsx)(i.vO,{ref:Y}),(0,n.jsx)("div",{className:"flex justify-center text-center mt-1",children:(0,n.jsx)(c.$n,{className:"!text-18 text-white font-semibold uppercase w-full h-12 md:!max-w-[245px]",isLoading:S,disabled:S,onClick:el,children:null==z?void 0:z.txt_free_consultant})}),(0,n.jsx)(i.Rx,{message:A,isShow:I,handleShow:()=>{P(!I)},t:z})]}):(0,n.jsx)(i.eI,{})}},66768:(e,l,t)=>{"use strict";t.d(l,{R:()=>a});var n=t(38694),i=t(94674),o=t(42500);let a=e=>{let{message:l,isSuccess:t,isShow:a,handleShow:r,t:s}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center !z-[999] transition-all duration-200 ".concat(l&&a?"scale-100":"scale-0"),children:[(0,n.jsx)("div",{className:"bg-[#0000004d] w-full h-full absolute inset-0 z-0 cursor-pointer",onClick:r}),(0,n.jsxs)("div",{className:"absolute z-10 flex flex-col items-center gap-2.5 bg-white max-w-[311px] lg:!max-w-[400px] w-full p-5 lg:!p-[30px] rounded-lg",children:[t?(0,n.jsx)(o.d1,{className:"w-20 h-20"}):(0,n.jsx)(o.IJ,{}),(0,n.jsx)("p",{className:"text-16 lg:!text-18 font-normal leading-[24px] lg:!leading-[26px] text-black-1 text-center",children:l}),(0,n.jsx)("div",{className:"mx-auto mt-2.5",onClick:r,children:(0,n.jsx)(i.$n,{className:"uppercase py-3 px-10",children:t?null==s?void 0:s.txt_ok:null==s?void 0:s.btn_close})})]})]})})}},68615:(e,l,t)=>{"use strict";t.d(l,{T8:()=>n.T});var n=t(51752);t(42580),t(81192),t(45400)},69054:(e,l,t)=>{"use strict";t.d(l,{_P:()=>a,yA:()=>r,mw:()=>s,GU:()=>d,tH:()=>c,d7:()=>u,_F:()=>v,VT:()=>p,qK:()=>x,rZ:()=>b,Yq:()=>j,Py:()=>C,S:()=>h,gs:()=>N});var n=t(48873),i=t(50280),o=t(45734);let a=()=>{let[e,l]=(0,o.useState)(""),t=(0,i.usePathname)(),a=[n.HMW,n.xwy,n.ClV,n.UtS,n.r0G];return(0,o.useEffect)(()=>{null==a||a.forEach(e=>{(null==t?void 0:t.includes("/".concat(e)))&&l(e)})},[t,e]),e},r=()=>{let[e,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(e){let l=document.getElementById("amex3d-layout");l&&document.body.removeChild(l);let t=document.createElement("div");t.id="amex3d-layout",t.className="fixed w-full h-full bg-white top-0 left-0 right-0 bottom-0 z-50 text-center mx-auto",t.innerHTML='<div class="flex justify-center h-full items-center">'.concat(e,"</div>"),document.body.appendChild(t);let n=document.getElementById("amex3d-layout");if(n){let e=n.querySelector("form");e&&e.submit()}return()=>{let e=document.getElementById("amex3d-layout");e&&document.body.removeChild(e)}}},[e]),{setHtmlOtpAmex:l}},s=e=>{let l=window.atob(e),t=l.length,n=new Uint8Array(t);for(let e=0;e<t;e++)n[e]=l.charCodeAt(e);let i=new Blob([n],{type:"application/pdf"});return URL.createObjectURL(i)},d=(e,l)=>{(0,o.useEffect)(()=>{let t=t=>{let n=t.target;(n.id===e||n.classList.contains(e))&&l(n)};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}},[e,l])},c=()=>{let[e,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>
1{l(!0)},[]),e};function u(e,l){let[t,n]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let t=setTimeout(()=>{n(e)},l);return()=>{clearTimeout(t)}},[e,l]),[t,n]}var m=t(29432);let _=(e,l)=>{let t,n;var i=void 0;return function(){for(var o=arguments.length,a=Array(o),r=0;r<o;r++)a[r]=arguments[r];n?(clearTimeout(t),t=setTimeout(()=>{Date.now()-n>=l&&(e.apply(i,a),n=Date.now())},l-(Date.now()-n))):(e.apply(i,a),n=Date.now())}},v=e=>{let{isMobile:l}=(0,o.useContext)(m.BR),[t,n]=(0,o.useState)(l),i=(0,o.useRef)(window.innerWidth),a=(0,o.useCallback)(_(()=>{i.current=window.innerWidth,n(i.current<(null!=e?e:1280))},200),[e]);return(0,o.useEffect)(()=>(a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[a]),t},p=(e,l,t,n)=>{(0,o.useEffect)(()=>{if(l&&Object.keys(l).forEach(t=>{e(t,{message:l[t],type:"manual"})}),t){let e=Object.values(t).find(e=>!(null==e?void 0:e.ref));e&&n&&n(null==e?void 0:e.message)}},[l,e,t,n])};t(93220);let x=()=>{let[e,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{l(!0)},[]),e};function h(){let[e,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!e){let e=()=>{l(!0),window.removeEventListener("scroll",e),window.removeEventListener("mousemove",e),window.removeEventListener("touchstart",e)};return window.addEventListener("scroll",e),window.addEventListener("mousemove",e),window.addEventListener("touchstart",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("mousemove",e),window.removeEventListener("touchstart",e)}}},[e]),e}(0,o.createContext)(null);var f=t(64646),g=t(76970);let b=()=>{let{location:e}=(0,o.useContext)(m.BR),{data:l}=(0,g.I)({queryKey:["data-config-leadform"],queryFn:async()=>{var e;return null!==(e=await f.PF.extractConfigData(n.trF))&&void 0!==e?e:[]},staleTime:1/0}),{data:t}=(0,g.I)({queryKey:["data-service-leadform"],queryFn:async()=>{var e;return null!==(e=await f.gx.getServiceLeadForm())&&void 0!==e?e:[]},staleTime:1/0}),{data:i}=(0,g.I)({queryKey:["list-live-chat",e],queryFn:async()=>{var e;return null!==(e=await f.QG.getListLiveChat())&&void 0!==e?e:[]},staleTime:1/0,enabled:!!e}),{data:a}=(0,g.I)({queryKey:["data-countries"],queryFn:async()=>{var e;return null!==(e=await f.bM.getCountries())&&void 0!==e?e:[]},staleTime:1/0}),{data:r}=(0,g.I)({queryKey:["data-countries-group-by-area",a],queryFn:async()=>{var e;return null!==(e=await f.bM.getCountriesGroupByArea(a))&&void 0!==e?e:[]},enabled:!!a,staleTime:1/0}),{data:s}=(0,g.I)({queryKey:["data-countries-incorporation-group-by-area",a],queryFn:async()=>{var e;return null!==(e=await f.bM.getCountriesGroupByArea(a,{[n.uBs.IS_INCORPORATION]:n.cSK.YES}))&&void 0!==e?e:[]},enabled:!!a,staleTime:1/0}),{data:d}=(0,g.I)({queryKey:["data-all-state"],queryFn:async()=>{var e;return null!==(e=await f.bM.getAllState())&&void 0!==e?e:[]},staleTime:1/0}),{data:c}=(0,g.I)({queryKey:["data-communication-chanels"],queryFn:async()=>{var e;return null!==(e=await f.gx.getCommunicationChannels())&&void 0!==e?e:[]},staleTime:1/0}),{data:u}=(0,g.I)({queryKey:["data-how-did-you-know-leadform"],queryFn:async()=>{var e;return null!==(e=await f.gx.getHowDidYouKnowLeadForm())&&void 0!==e?e:[]},staleTime:1/0}),{data:_}=(0,g.I)({queryKey:["data-locations"],queryFn:async()=>{var e;return null!==(e=await f.bM.getLocations())&&void 0!==e?e:[]},staleTime:1/0}),{data:v}=(0,g.I)({queryKey:["data-payment-gateway-make-payment"],queryFn:async()=>await f.mi.getPaymentGatewayClient(n.cSK.YES),staleTime:1/0});return{listConfigLeadform:l,listServiceLeadform:t,listLiveChat:i,listCountries:a,listCountriesGroupByArea:r,listCountriesIncorporationGroupByArea:s,listAllState:d,communicationChannelsData:c,howDidYouKnowData:u,locations:_,listPaymentGatewaysMakePayment:v}};var y=t(2508);let j=()=>{let e=(0,i.usePathname)(),l=(0,i.useSelectedLayoutSegment)(),{data:t}=(0,g.I)({queryKey:["data-slug-path",e],queryFn:async()=>{var l;return null!==(l=await f._F.getSlugPath(e))&&void 0!==l?l:[]},enabled:!!e&&!!l,staleTime:1/0});return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.jiX,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Mf1,i=(0,y.B7)(e,l),o=null==t?void 0:t.find(e=>e.location_code===l),a=null==o?void 0:o.slugs.find(l=>l.language_code===e);return(null==a?void 0:a.slug_path)||"".concat(i,"/")}},N=e=>{let{open:l,gatewayKey:t,appleGatewayKey:n,googleGatewayKey:i,pendingRef:a,appleRef:r,googleRef:s,setButtonReady:d,submitDelayMs:c=100,fallbackReadyMs:u=1e4,submitApple:m,submitGoogle:_}=e;(0,o.useEffect)(()=>
1{if(!l||!a.current||!t)return;let{amount:e,cardId:o}=a.current,d=setTimeout(()=>{t===n&&r.current&&m(r.current,e,o),t===i&&s.current&&_(s.current,e,o),a.current=null},c);return()=>clearTimeout(d)},[l,t,n,i,a,r,s,c,m,_]),(0,o.useEffect)(()=>{if(!l)return;d(!1);let e=setTimeout(()=>d(!0),u);return()=>clearTimeout(e)},[l,d,u])};var w=t(89923),k=t(8256),S=t(20361);let C=()=>{let{userInfo:e,updateUser:l}=(0,k.HQ)(),t=(0,S.getCookie)(w.Av.USER_TOKEN),n="1"===(0,S.getCookie)(w.Av.ENTER_PHONE_PENDING),{data:i,isLoading:a}=(0,g.I)({queryKey:["user-info"],queryFn:()=>f.qE.submitGetUser(t),enabled:!!t&&!(null==e?void 0:e.user_email)&&!n,staleTime:0});(0,o.useEffect)(()=>{!i||(null==e?void 0:e.user_email)||l(i)},[i,null==e?void 0:e.user_email,l]);let r=(0,o.useMemo)(()=>i||e,[i,e]),s=!!(t&&(null==r?void 0:r.user_email));return{userInfo:r,isUserLoggedIn:s,isLoading:a,userToken:t}}},69257:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LiveChat:()=>_});var n=t(38694),i=t(29432),o=t(48873),a=t(69054),r=t(2508),s=t(74323),d=t(36791),c=t.n(d),u=t(50280),m=t(45734);let _=()=>{var e;let{location:l,configGlobal:t,currentLocation:d}=(0,m.useContext)(i.BR),[_,v]=(0,m.useState)(!1),{listLiveChat:p}=(0,a.rZ)(),x=(0,u.useSelectedLayoutSegment)(),h=(0,m.useMemo)(()=>(null==d?void 0:d.location_hotline)?"".concat((null==t?void 0:t.txt_footer_hotline_title)||"",": ").concat((null==d?void 0:d.location_hotline)||""):(null==t?void 0:t.txt_footer_chat_now_title)||"",[t,d]),f=()=>{p&&v(!_)};return t&&p&&"(single)"!==x?(0,n.jsx)("div",{className:(0,r.cn)("block fixed bottom-0 right-0 z-[5]",_&&"bg-[#000000b3] w-screen h-screen"),children:(0,n.jsxs)("div",{id:"popup-chat-now",className:(0,r.cn)("block fixed bottom-16 right-0 text-right md:pl-0 px-4",_&&"w-full sm:max-w-[400px]"),children:[(0,n.jsxs)("div",{className:(0,r.cn)("flex flex-col items-end gap-[10px]",!_&&"hidden"),children:[(0,n.jsxs)("div",{className:"bg-[#ffffffe6] rounded-lg overflow-hidden shadow-[0_2px_7px_rgba(0,0,0,0.35)] w-full",children:[(0,n.jsx)("div",{className:"bg-white py-[14px] px-[15px] flex justify-center",children:(null==d?void 0:d.location_hotline)?(0,n.jsxs)(c(),{target:"_blank",title:h,href:"tel:".concat((null==d?void 0:null===(e=d.location_hotline)||void 0===e?void 0:e.replaceAll(" ",""))||""),className:"flex items-center gap-3 active:text-[#f12e36] focus:text-[#f12e36] hover:text-[#f12e36]",children:[(0,n.jsx)(s.default,{src:l!==o.Mf1?(0,r.Kz)(l):(0,r.Kz)("hk"),alt:(null==t?void 0:t.txt_footer_hotline_title)||"",title:null==t?void 0:t.txt_footer_hotline_title,width:22,height:15,className:"h-fit"}),(0,n.jsx)("p",{className:"font-semibold text-16 text-center",children:h})]}):(0,n.jsx)("p",{className:"font-semibold text-18 !mb-0",children:h})}),(0,n.jsx)("ul",{className:"grid grid-cols-3 gap-5 p-5",children:null==p?void 0:p.filter(e=>(null==e?void 0:e.chat_order)!==1).map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(c(),{href:(null==e?void 0:e.chat_link)||"",target:"_blank",title:null==e?void 0:e.chat_name,id:"gtmChat".concat(null==e?void 0:e.chat_name),className:"flex flex-col gap-[10px] items-center",children:[(0,n.jsx)(s.default,{id:"gtmChat".concat(null==e?void 0:e.chat_name),src:(null==e?void 0:e.chat_icon)||"",width:56,height:56,alt:(null==e?void 0:e.chat_name)||"",title:null==e?void 0:e.chat_name}),(0,n.jsx)("span",{id:"gtmChat".concat(null==e?void 0:e.chat_name),className:"text-[#545454] text-16",children:null==e?void 0:e.chat_name})]})},null==e?void 0:e.chat_id))})]}),(0,n.jsx)(s.default,{src:"https://dusyzh85wmzqh.cloudfront.net/frontend/images/icon-chat-cancel.svg",alt:(null==t?void 0:t.txt_footer_chat_now_title)||"",title:null==t?void 0:t.txt_footer_chat_now_title,width:40,height:40,onClick:f})]}),(0,n.jsx)("div",{className:(0,r.cn)("inline-block",_&&"hidden"),children:(0,n.jsx)("div",{className:"flex items-center gap-2.5 w-fit btn-chat-mobile",onClick:f,children:(0,n.jsx)(s.default,{src:"https://dusyzh85wmzqh.cloudfront.net/frontend/images/icon-chat-whatsapp.svg",alt:(null==t?void 0:t.txt_footer_chat_now_title)||"",title:null==t?void 0:t.txt_footer_chat_now_title,width:40,height:40})})})]})}):null}},69511:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CheckBox:()=>r});var n=t(38694),i=t(2508),o=t(29722),a=t(66011);let r=e=>{let{id:l,name:t,tooltip:r,control:s,className:d,nameLabel:c,classNameLabel:u,classNameError:m="absolute -bottom-5 left-0",classNameTooltip:_,classCheckbox:v="check-red-1",handleOnChange:p,...x}
1=e,{field:{onChange:h,ref:f},fieldState:{error:g}}=(0,o.as)({name:t,control:s});return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("div",{className:(0,i.cn)("relative flex gap-1 items-center w-fit",d),children:[(0,n.jsxs)("label",{className:"flex items-center",children:[(0,n.jsx)("input",{id:l,ref:f,type:"checkbox",className:"sr-only peer",onChange:e=>{h(e),p&&p()},...x}),(0,n.jsx)("span",{className:(0,i.cn)("checkbox",v,(null==g?void 0:g.message)&&"!border-red-1 border-2")}),c&&(0,n.jsx)("div",{className:(0,i.cn)("ml-4 text-16",u),dangerouslySetInnerHTML:{__html:c||""}})]}),r&&(0,n.jsx)(a.o,{content:r,className:_})]}),(null==g?void 0:g.message)&&(0,n.jsx)("p",{className:(0,i.cn)("text-sm text-red-1",m),children:null==g?void 0:g.message})]})};r.displayName="CheckBox"},69983:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Modal:()=>a});var n=t(38694),i=t(2508),o=t(45734);let a=e=>{let{open:l,onClose:t,title:a,description:r,children:s,className:d,backdropClassName:c,contentClassName:u,closeOnBackdropClick:m=!0,closeOnEsc:_=!0}=e,v=(0,o.useId)(),p=(0,o.useMemo)(()=>"modal-title-".concat(v),[v]),x=(0,o.useMemo)(()=>"modal-description-".concat(v),[v]);return((0,o.useEffect)(()=>{if(!l||!_)return;let e=e=>{"Escape"===e.key&&t()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[l,_,t]),(0,o.useEffect)(()=>{if(!l)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[l]),l)?(0,n.jsxs)("div",{className:(0,i.cn)("fixed inset-0 z-[999] flex items-center justify-center",d),role:"dialog","aria-modal":"true","aria-labelledby":a?p:void 0,"aria-describedby":r?x:void 0,children:[(0,n.jsx)("button",{type:"button",className:(0,i.cn)("absolute inset-0 z-0 bg-black/30 backdrop-blur-sm w-full h-full",c),onClick:()=>{m&&t()},"aria-label":"Close modal"}),(0,n.jsxs)("div",{className:(0,i.cn)("relative z-10 w-[calc(100%-2rem)] max-w-[420px] rounded-2xl bg-white shadow-xl border border-gray-11 p-8 lg:!p-10",u),onClick:e=>e.stopPropagation(),children:[(a||r)&&(0,n.jsxs)("div",{className:"mb-6",children:[a&&(0,n.jsx)("h3",{id:p,className:"text-xl lg:!text-2xl font-semibold text-gray-1 text-center",children:a}),r&&(0,n.jsx)("p",{id:x,className:"mt-3 text-14 text-gray-10 text-center",children:r})]}),s]})]}):null}},71023:(e,l,t)=>{"use strict";t.d(l,{e:()=>n.FormSkeleton});var n=t(54945)},71067:(e,l,t)=>{"use strict";t.r(l),t.d(l,{RadioBox:()=>r});var n=t(38694),i=t(2508),o=t(29722),a=t(66011);let r=e=>{let{id:l,name:t,control:r,tooltip:s,className:d,nameLabel:c,errorMessage:u,classCheckbox:m,classNameLabel:_,classNameInput:v,classNameTooltip:p,handleOnChange:x,...h}=e,{field:{onChange:f,ref:g,value:b}}=(0,o.as)({name:t,control:r});return(0,n.jsxs)("label",{className:(0,i.cn)("relative flex gap-1 items-center w-fit",d),children:[(0,n.jsxs)("div",{className:(0,i.cn)("relative flex items-center justify-center p-1 w-5 h-5 cursor-pointer",m),children:[(0,n.jsx)("input",{id:l,ref:g,name:t,type:"radio",className:(0,i.cn)("w-full h-full peer appearance-none rounded-full border border-transparent bg-white checked:border-red-1 checked:bg-red-1 focus:outline-none transition-all duration-200 z-[1]",v),onChange:e=>{f(e),x&&x()},checked:b===h.value,...h}),(0,n.jsx)("span",{className:(0,i.cn)("rounded-full bg-white border border-[#D3D3D3] peer-checked:border-red-1 absolute inset-0",u&&"border-red-1")})]}),c&&(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:_,dangerouslySetInnerHTML:{__html:c||""}}),s&&(0,n.jsx)(a.o,{content:s,className:p})]})]})}},72486:(e,l,t)=>{"use strict";t.d(l,{g:()=>i});var n=t(38694);let i=()=>(0,n.jsx)("ul",{className:"grid grid-cols-1 sm:!grid-cols-2 md:!grid-cols-3 gap-4 md:!gap-8 w-full",children:[void 0,void 0,void 0].map((e,l)=>(0,n.jsxs)("li",{className:"flex cursor-pointer flex-col items-center justify-center h-24 p-4 w-full rounded shadow-lg text-center 300 border",children:[(0,n.jsx)("div",{className:"w-full skeleton-box h-10 rounded mb-2"}),(0,n.jsx)("div",{className:"h-4 skeleton-box w-full rounded"})]},l))})},72639:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MakePaymentContext:()=>c,MakePaymentProvider:()=>u,useMakePaymentContext:()=>m});var n=t(38694),i=t(89923),o=t(64646),a=t(76970),r=t(20361),s=t(50280),d=t(45734);let c=(0,d.createContext)({updateContextValue:()=>{},configMakePayment:{}}),u=e=>{let{children:l,...t}=e,u=(0,s.usePathname)(),m=(0,r.getCookie)(i.Av.USER_TOKEN),{data:_}=(0,a.I)({queryKey:["user-payment"],queryFn:()=>o.qE.submitGetUser(m),enabled:!!m,refetchOnWindowFocus:!0,gcTime:0,staleTime:0}),[v,p]=(0,d.useState)(t),x=(0,d.useCallback)(e=>{p(l=>({...l,...e}))},[]);return(0,d.useEffect)(()=>{sessionStorage.removeItem(i.CV.REDIRECT_URL);let e=(0,r.getCookie)(i.Av.MAKE_PAYMENT_ID),l=new URL(window.location.href);v.paymentStatus||e||!l.search||(null==v?void 0:v.paymentID)||(null==v?void 0:v.token)||window.history.pushState({path:u},"",u)},[]),(0,d.useEffect)(()=>{_&&p(e=>({...e,userData:_}))},[_]),(0,n.jsx)(c.Provider,{value:{...v,updateContextValue:x},children:l})},m=()=>(0,d.useContext)(c)},73517:(e,l,t)=>{"use strict";t.r(l),t.d(l,{ScrollList:()=>s});var n=t(38694),i=t(48873),o=t(8544),a=t(63985),r=t(45734);let s=e=>{let{direction:l=i.M8H.UP,speed:t=60,pixelsPerSecond:s,isLoop:d=!0,pauseOnHover:c=!0,as:u="ul",children:m,heightclass:_="h-48",widthclass:v="w-72",className:p}=e,[x,h]=(0,o.l)(),f=(0,r.useRef)(null),g=(0,r.useMemo)(()=>r.Children.toArray(m),[m]),b=d?[...g,...g]:g,y=e=>{let l=Number(e);return Number.isFinite(l)&&l>0?l:void 0},j=()=>{switch(l){case i.M8H.DOWN:return{axis:"y",values:["-50%","0%"]};case i.M8H.LEFT:return{axis:"x",values:["0%","-50%"]};case i.M8H.RIGHT:return{axis:"x",values:["-50%","0%"]};case i.M8H.UP:default:return{axis:"y",values:["0%","-50%"]}}};(0,r.useEffect)(()=>{let e=x.current;if(!e)return;let l=()=>{var l;let{axis:n,values:i}=j(),o=y(s),a="x"===n?e.scrollWidth:e.scrollHeight,r=d?a/2:a,c=o&&r>0?r/o:y(t)||60;null===(l=f.current)||void 0===l||l.cancel(),f.current=h(e,"x"===n?{transform:["translateX(".concat(i[0],")"),"translateX(".concat(i[1],")")]}:{transform:["translateY(".concat(i[0],")"),"translateY(".concat(i[1],")")]},{duration:c,ease:"linear",repeat:d?1/0:0,repeatType:"loop"})};l();let n="undefined"==typeof ResizeObserver?void 0:new ResizeObserver(()=>{l()});return null==n||n.observe(e),()=>{var e;null==n||n.disconnect(),null===(e=f.current)||void 0===e||e.cancel()}},[h,g,l,d,s,t]);let N=()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.pause()},w=()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.play()},k=l===i.M8H.UP||l===i.M8H.DOWN,S="tbody"===u?a.P.tbody:"ol"===u?a.P.ol:"div"===u?a.P.div:a.P.ul;return"tbody"===u?(0,n.jsx)(S,{ref:x,className:["transform-gpu will-change-transform",null!=p?p:""].join(" "),onMouseEnter:c?N:void 0,onMouseLeave:c?w:void 0,onTouchStart:c?N:void 0,onTouchEnd:c?w:void 0,children:b.map((e,l)=>r.isValidElement(e)?r.cloneElement(e,{key:l}):(0,n.jsx)(r.Fragment,{children:e},l))}):(0,n.jsx)("div",{className:"overflow-hidden relative ".concat(k?_:v),onMouseEnter:c?N:void 0,onMouseLeave:c?w:void 0,onTouchStart:c?N:void 0,onTouchEnd:c?w:void 0,children:(0,n.jsx)(S,{ref:x,className:["ul"===u||"ol"===u?k?"flex flex-col":"flex flex-row":"","transform-gpu will-change-transform",null!=p?p:""].join(" "),children:b.map((e,l)=>r.isValidElement(e)?r.cloneElement(e,{key:l}):(0,n.jsx)(r.Fragment,{children:e},l))})})}},74518:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LeadFormV2:()=>b});var n=t(38694),i=t(48873),o=t(64646),a=t(69054),r=t(2508),s=t(94674),d=t(42500),c=t(83924),u=t(55015),m=t(50280),_=t(45734),v=t(29722),p=t(4123),x=t(71023),h=t(66768),f=t(10740),g=t(9220);let b=e=>{var l,t,b,y,j;let{serviceId:N,optionID:w}=e,[k,S]=(0,_.useState)(i.PT2.USER_INFO),[C,E]=(0,_.useState)(!1),[R,O]=(0,_.useState)(0),[T,A]=(0,_.useState)(""),[M,I]=(0,_.useState)(null),[P,L]=(0,_.useState)(""),[F,D]=(0,_.useState)(),[
1K,B]=(0,_.useState)(!1),G=(0,r.vb)(),U=(0,m.usePathname)(),Y=(0,m.useRouter)(),[z,H]=(0,_.useState)(""),q=(0,_.useRef)(null),V=(0,_.useRef)(null),{listConfigLeadform:Z,listServiceLeadform:$,listAllState:W,howDidYouKnowData:X,listCountries:J}=(0,a.rZ)(),{control:Q,register:ee,setError:el,handleSubmit:et,watch:en,trigger:ei,getValues:eo,setValue:ea,formState:{errors:er}}=(0,v.mN)({mode:"all",resolver:(0,c.t)((0,r.yf)(Z)),shouldFocusError:!1}),es=e=>{var l;null===(l=q.current)||void 0===l||l.handleError(e)},ed=(0,_.useMemo)(()=>null==W?void 0:W.filter(e=>{var l;return e.state_country_code===(null===(l=eo("country_code"))||void 0===l?void 0:l.value)}),[null===(l=en("country_code"))||void 0===l?void 0:l.value]),ec=(0,u.n)({mutationFn:async e=>await o.gx.submitLead(e)}),eu=et(async e=>{var l,t,n,a,s,d,c;E(!0);let u=await (null===(l=q.current)||void 0===l?void 0:l.onSubmit()),m=await (null===(t=V.current)||void 0===t?void 0:t.onSubmit());if(!await ei()||!u)return E(!1);let _=await (0,r.Ji)(),v={...e,service_id:null===(n=e.service_id)||void 0===n?void 0:n.value,option_id:null===(a=e.option_id)||void 0===a?void 0:a.value,communication_channel_id:(null==u?void 0:u.communication_channel_id)||0,communication_channel_name:null==u?void 0:u.communication_channel_name,communication_channel_number:null==u?void 0:u.communication_channel_number,how_did_you_know_id:Number(null===(s=e.how_did_you_know_id)||void 0===s?void 0:s.value),country_code:null===(d=e.country_code)||void 0===d?void 0:d.value,state_code:null===(c=e.state_code)||void 0===c?void 0:c.value,gRecaptchaToken:_,url:"".concat(i.IO4).concat(U),verify_otp:!0,...m};ec.mutate(v,{onSuccess:e=>{E(!1);let l=(0,o.jN)(e);if(l){I(l),es(l),L((null==e?void 0:e.message)||""),B(!0),E(!1);return}if(null==e?void 0:e.success){var t,n,a;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.leadform_id)&&O(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.leadform_id),(null==e?void 0:e.data)&&G.leadForm(null==e?void 0:e.data),Y.push("?success_id=".concat(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.leadform_id),{scroll:!1}),S(i.PT2.OTP_INPUT)}}})}),em=(0,u.n)({mutationFn:e=>o.gx.verifyOTP(e)}),e_=async e=>{S(i.PT2.VERIFYING_OTP);let l=await (0,r.Ji)(),t={skip_otp:e.skip_otp,verify_code:e.value,id:R,gRecaptchaToken:l};em.mutate(t,{onSuccess:e=>{(null==e?void 0:e.success)||(S(i.PT2.OTP_INPUT),A((null==e?void 0:e.message)||"")),(null==e?void 0:e.success)&&(null==e?void 0:e.message)&&S(i.PT2.VERIFIED)}})};(0,a.VT)(el,M,er,L);let ev=en("service_id");return((0,_.useEffect)(()=>{let e=null==$?void 0:$.find(e=>Number(N)===Number(null==e?void 0:e.value));e&&(ea("service_id",e),D(null==e?void 0:e.option))},[N]),(0,_.useEffect)(()=>{let e=null==$?void 0:$.find(e=>Number(null==ev?void 0:ev.value)===Number(e.value));e&&(D(null==e?void 0:e.option),ea("option_id",{label:(null==Z?void 0:Z.txt_please_select)||"",value:""}))},[ev]),(0,_.useEffect)(()=>{if(w){var e;let l=null==F?void 0:null===(e=F.items)||void 0===e?void 0:e.find(e=>e.id==w);l&&ea("option_id",{value:String(l.id),label:l.name})}},[F]),Z)?k===i.PT2.OTP_INPUT?(0,n.jsx)(g.I,{submit:e_,configDict:Z,phoneNumber:eo("phone_number"),errorMessage:T,isLoading:C}):k===i.PT2.VERIFYING_OTP?(0,n.jsxs)("div",{className:"w-full min-h-[450px] xl:!min-h-[585px] mx-auto flex justify-center flex-col items-center py-8 box-shadow-form rounded-xl",children:[(0,n.jsx)("p",{className:"text-20 md:!text-28 font-semibold leading-1-2 mb-2 md:!mb-4 text-center",children:null==Z?void 0:Z.txt_processing}),(0,n.jsx)("p",{className:"text-14 md:!text-18 px-12 md:!px-0 mb-6 md:!mb-8 leading-1-4 text-center",children:null==Z?void 0:Z.txt_leadform_processing}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"w-20 h-20 rounded-full animate-spin border-2 border-solid border-blue-6 border-t-transparent"})})]}):k===i.PT2.VERIFIED?(0,n.jsxs)("div",{className:"w-full min-h-[450px] xl:!min-h-[585px] mx-auto flex justify-center flex-col items-center py-8 box-shadow-form rounded-xl",children:[(0,n.jsx)(d.d1,{className:"w-20 h-20 md:!w-[160px] md:!h-[160px]"}),(0,n.jsx)("h2",{className:"md:!text-24 font-bold mt-5 text-center",children:null==Z?void 0:Z.txt_leadform_thank_you}),(0,n.jsx)("p",{className:"text-14 font-normal mt-3 text-center",children:null==Z?void 0:Z.txt_leadform_contact_you_soon})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{noValidate:!0,onSubmit:eu,children:[(0,n.jsxs)("div",{className:"grid md:!grid-cols-2 grid-cols-1 gap-5",children:[(0,n.jsx)(s.pd,{type:"text",id:"full_name",className:"relative",classNameLabel:"",...ee("name"),errorMessage:null===(t=er.n
1ame)||void 0===t?void 0:t.message,maxLength:255,nameLabel:null==Z?void 0:Z.lbl_full_name,required:!0,isFullName:!0}),(0,n.jsx)(s.pd,{type:"text",id:"email",className:"relative",classNameLabel:"",...ee("email"),errorMessage:null===(b=er.email)||void 0===b?void 0:b.message,maxLength:255,nameLabel:null==Z?void 0:Z.lbl_email_address,required:!0,isEmail:!0}),(0,n.jsx)(s.KE,{setError:el,control:Q,name:"phone_number",id:"phone_number",type:"text",placeholder:"e.g: xxxxxxxxx",required:!0,nameLabel:null==Z?void 0:Z.lbl_phone_number}),(0,n.jsx)("div",{className:"flex flex-col gap-5",children:(0,n.jsx)(p.OV,{channelNameOrder:7,channelIdOrder:7,channelNumberOrder:7,channelSelectOrder:4,channelNumberClass:"md:!col-start-2",channelIdClass:"md:!col-start-2",mode:p.Ld.LEAD_FORM,phoneNumber:en("phone_number"),ref:q,hideIdLabel:!0,onSelectChannel:e=>H(e.value)})}),(0,n.jsx)(s.$k,{nameLabel:null==Z?void 0:Z.txt_your_inquiries,control:Q,id:"your-inquiries",name:"service_id",isRequired:!0,option:$,classNameLabel:"capitalize"}),(0,n.jsx)(s.$k,{control:Q,id:"how-did-you-know",name:"how_did_you_know_id",placeholder:null==Z?void 0:Z.txt_please_select,option:X,isRequired:!0,nameLabel:null==Z?void 0:Z.txt_how_did_you_know}),(0,n.jsxs)("div",{className:"md:!col-span-2 grid gap-5",children:[!!(null==F?void 0:null===(y=F.items)||void 0===y?void 0:y.length)&&(0,n.jsx)(s.$k,{control:Q,id:"option_id",name:"option_id",placeholder:null==F?void 0:F.title,nameLabel:null==F?void 0:F.title,option:(null==F?void 0:F.items)?null==F?void 0:F.items.map(e=>({value:e.id,label:e.name})):[]}),(0,n.jsx)(s.$k,{control:Q,id:"country-code",name:"country_code",placeholder:null==Z?void 0:Z.txt_please_select,option:J,isRequired:!0,nameLabel:null==Z?void 0:Z.txt_your_country}),!!(null==ed?void 0:ed.length)&&(0,n.jsx)(s.$k,{control:Q,id:"state-code",name:"state_code",placeholder:null==Z?void 0:Z.txt_please_select,nameLabel:null==Z?void 0:Z.txt_your_state,option:ed}),(0,n.jsx)(s.fs,{id:"message",nameLabel:null==Z?void 0:Z.txt_your_comment,rows:3,cols:50,errorMessage:null===(j=er.message)||void 0===j?void 0:j.message,...ee("message")})]}),(0,n.jsx)("div",{className:"md:!col-span-2",children:(0,n.jsx)(f.v,{ref:V,isShowWhatsapp:z==p.ac.WHATSAPP})})]}),(0,n.jsx)("div",{className:"max-w-[343px] md:!max-w-[280px] mx-auto mt-5",children:(0,n.jsx)(s.$n,{className:"text-lg font-semibold uppercase leading-[24px] w-full h-12 md:!max-w-[245px]",isLoading:C,disabled:C,onClick:eu,children:null==Z?void 0:Z.btn_submit})})]}),(0,n.jsx)(h.R,{message:P,isShow:K,handleShow:()=>{B(!K)},t:Z})]}):(0,n.jsx)(x.e,{})}},74561:(e,l,t)=>{"use strict";t.r(l),t.d(l,{LicenseAwardSidebar:()=>s});var n=t(38694),i=t(69054),o=t(61088),a=t(917),r=t(91866);let s=e=>{let{listArticle:l,langUrlSlashed:t}=e;return(0,i._F)(1024)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.RC,{slidesPerView:1,spaceBetween:16,pagination:{el:".swiper-pagination-v1",clickable:!0},modules:[o.dK,o.Vx],className:"py-6 px-2",children:null==l?void 0:l.map((e,l)=>(0,n.jsx)(a.qr,{className:"*:h-full",children:(0,n.jsx)(r.p,{article:e,langUrlSlashed:t,classNameTitle:"line-clamp-2"},null==e?void 0:e.article_id)},l))}),(0,n.jsx)("div",{className:"swiper-pagination-v1 flex justify-center gap-2 transition-all duration-300 ease-in"})]}):(0,n.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:!mt-6",children:null==l?void 0:l.map(e=>(0,n.jsx)(r.p,{article:e,langUrlSlashed:t,classNameTitle:"min-h-auto line-clamp-3"},null==e?void 0:e.article_id))})}},75461:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepConfirmation:()=>p,useCapturePayment:()=>v});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(8256),s=t(2508),d=t(94674),c=t(42500),u=t(76970),m=t(20361),_=t(45734);let v=(e,l,t)=>(0,u.I)({queryKey:["capture-order"],queryFn:async()=>{let{captureCallbackData:l}=r.kj.getState(),n=await (0,s.Ji)(),i={...(0,s.Ol)(e),...(0,s.PZ)({payer_id:t&&"null"!==t?t:"Error",callback_data:l,gRecaptchaToken:n})},d=await a.xN.captureOrderPayment(i);if(d.statusCode==s.kG.NotFound){window.location.href=o.imR;return}return d},enabled:!!e&&!!l,gcTime:0,staleTime:0,retry:1}),p=()=>{let{langLocationSlashed:e,siteKeywords:l}=(0,_.useContext)(i.BR),{clearOrderStore:t}=(0,r.Fc)(),{payerID:u,orderID:p,pageData:x,userData:h,paymentStatus:f,configOrder:g,isConfirmation:b,contentConfirmation:y,updateContextValue:j}=(0,_.useContext)(i.w_),N=(0,m.getCookie)(o.Avz.ORDER_PAYMENT),[w,k]=(0,_.useState)(null),{data:S,isFetching:C}=v(N,f,u),E=(0,s.hj)((0,s.Ol)(N)),R=(0,_.useCallback)(async(e,l)=>{try{let t=await (0,s.Ji)();if(!await a.xN.failOrderPayment(String(null==e?void 0:e.order_id),{sf_token:null==E?void 0:E.sf_token,gRecaptchaToken:t}))return;(0,m.deleteCookie)(o.Avz.ORDER_PAYMENT),window.history.pushState({path:l},"",l),j({isConfirmation:!0,paymentStatus:null==e?void 0:e.status_f,contentConfirmation:null==e?void 0:e.content})}catch(e){throw Error("Failed to handle payment failure: "+e)}},[]),O=(0,_.useMemo)(()=>new URLSearchParams({[o.MIe.ORDER_ID]:String(w)}).toString(),[w]),T=(0,_.useCallback)(()=>{let l="".concat(e,"/").concat(null==x?void 0:x.page_keyword,"?").concat(O);return window.location.href=l},[w]),A=(0,_.useCallback)(()=>{let t="".concat(e,"/").concat(l[o.RoG],"/").concat(l[o.ClV],"/").concat(w);return h||sessionStorage.setItem(o.CVe.REDIRECT_URL,t),window.location.href=t},[w]);return((0,_.useEffect)(()=>{let l=!1;if(!(null==S?void 0:S.data))return;let t=null==S?void 0:S.data,n=new URLSearchParams({action:"paymentConfirm",info:"".concat(null==t?void 0:t.status_f,"-").concat(null==t?void 0:t.order_id_f,"-").concat(null==t?void 0:t.gateway_key)}).toString(),i="".concat(e,"/").concat(null==x?void 0:x.page_keyword,"?").concat(n);if(k(String(null==t?void 0:t.order_id)),f===o.QZ2.FAIL)switch(null==t?void 0:t.gateway_key){case o.OZN.PAYPAL_DIRECT:break;case o.OZN.AMEX:l=!0,R(t,i);case o.OZN.PAYPAL_CHECKOUT:}if(!l&&!(null==t?void 0:t.next_step)&&(null==t?void 0:t.content))return(0,m.deleteCookie)(o.Avz.ORDER_PAYMENT),j({isConfirmation:!0,paymentStatus:null==t?void 0:t.status_f,contentConfirmation:null==t?void 0:t.content}),window.history.pushState({path:i},"",i)},[S]),(0,_.useEffect)(()=>
1{if(t(),j({step:o.DHf.STEP_CONFIRMATION}),y&&f){k(String(p));return}let l=setTimeout(()=>{if(!N&&f)return window.location.href="".concat(e,"/").concat(null==x?void 0:x.page_keyword);clearTimeout(l)},3e3);return()=>clearTimeout(l)},[]),!b||C)?(0,n.jsx)(i.Rh,{}):y&&(0,n.jsxs)("div",{className:"pb-6 lg:pb-0 lg:max-w-[800px] mx-auto",children:[(0,n.jsx)("div",{className:"bg-white px-4 py-5 lg:p-6 lg:rounded-lg lg:shadow-9 text-16 [&_a]:text-blue-11",children:(0,n.jsx)(i.wR,{html:y,components:[{tag:o.NeW.DOWNLOAD_INVOICE,component:e=>(0,n.jsxs)("button",{className:"px-5 py-3 mx-auto text-blue-12 flex items-center gap-[6.5px]",onClick:A,...e,children:[(0,n.jsx)(c.IZ,{}),(0,n.jsx)("span",{className:"font-semibold",children:null==g?void 0:g.txt_order_download_receipt})]})},{tag:o.NeW.DOWNLOAD_PROFORMA_INVOICE,component:e=>(0,n.jsxs)("button",{className:"px-5 py-3 mx-auto text-blue-12 flex items-center gap-[6.5px]",...e,children:[(0,n.jsx)(c.IZ,{}),(0,n.jsx)("span",{className:"font-semibold",children:null==g?void 0:g.txt_download_proforma_invoice})]})}]})}),(0,n.jsxs)("div",{className:(0,s.cn)("px-4 mt-4 lg:px-0 lg:mt-10 flex justify-center ",f==o.QZ2.PENDING&&"justify-between flex-col-reverse md:flex-row"),children:[f==o.QZ2.SUCCESS&&(0,n.jsx)(d.$n,{href:"".concat(e,"/"),title:null==g?void 0:g.btn_mp_back_to_home,className:"w-full lg:w-[320px] h-12 lg:h-13 font-semibold",children:null==g?void 0:g.btn_mp_back_to_home}),f==o.QZ2.PENDING&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.$n,{variant:"none",href:"".concat(e,"/"),title:null==g?void 0:g.btn_mp_back_to_home,className:"w-full lg:w-[200px] h-12 lg:h-13 font-semibold bg-gray-10",children:null==g?void 0:g.btn_mp_back_to_home}),(0,n.jsx)(d.$n,{className:"w-full lg:w-[200px] h-12 lg:h-13 font-semibold",onClick:T,children:null==g?void 0:g.txt_try_again})]}),f==o.QZ2.FAIL&&(0,n.jsx)(d.$n,{className:"w-full lg:w-[320px] h-12 lg:h-13 font-semibold",onClick:T,children:null==g?void 0:g.txt_try_again})]})]})}},75808:(e,l,t)=>{"use strict";t.d(l,{$:()=>n.InputSelect});var n=t(94131)},75991:(e,l,t)=>{"use strict";t.d(l,{Ep:()=>n.HeaderDesktop});var n=t(89417);t(63025),t(47070)},76645:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PaymentCybersouce:()=>u});var n=t(38694),i=t(29432),o=t(48873),a=t(8256),r=t(2508),s=t(20361),d=t(50280),c=t(45734);let u=e=>{let{callbackData:l}=e,t=(0,d.useRouter)(),u=(0,s.getCookie)(o.Avz.LANG)||o.jiX,m=(0,s.getCookie)(o.Avz.LOCATION)||o.Mf1,_=(0,s.getCookie)("".concat(o.Avz.SET_UP_NOW,"_").concat(m))||o.BPf,v=(0,r.B7)(u,m),{updateCaptureCallbackData:p}=(0,a.kj)();return(0,c.useLayoutEffect)(()=>{if(p(l),(0,r.RI)(l)){t.push("/500");return}let e=l.req_reference_number||"";e.includes(o.rSs.MAKE_PAYMENT)?t.push("".concat(v,"/make-payment?status=confirmation")):e.includes(o.rSs.ORDER_PAYMENT)&&t.push("".concat(v,"/").concat(_,"?status=confirmation"))},[l,v,t]),(0,n.jsx)(i.Rh,{})}},76971:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepUpgradePackage:()=>m});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(8256),s=t(2508),d=t(74323),c=t(45734),u=t(46561);let m=(0,c.memo)((0,c.forwardRef)(function(e,l){(0,c.useImperativeHandle)(l,()=>({onSubmit:E,onNoThanks:O}));let{isLoading:t,configOrder:m,currentCurrency:_,listOrderProduct:v,listTypeOfService:p,setIsLoading:x,handleNextStep:h,updateContextValue:f}=(0,c.useContext)(i.w_),{orderStore:g,updateOrderStore:b,updatePackageStore:y,clearOrderStore:j}=(0,r.Fc)(),N=(0,c.useMemo)(()=>null==g?void 0:g.start_business,[null==g?void 0:g.start_business]),w=(0,c.useMemo)(()=>null==g?void 0:g.package_of_service,[null==g?void 0:g.package_of_service]),k=(0,c.useMemo)(()=>null==p?void 0:p.find(e=>e.category_id==(null==N?void 0:N.type_of_service)),[null==N?void 0:N.type_of_service]),S=(0,c.useMemo)(()=>null==v?void 0:v.find(e=>e.product_id==(null==w?void 0:w.product_id)),[v,w]),C=(0,c.useMemo)(()=>null==v?void 0:v.find(e=>e.product_category_id==(null==S?void 0:S.product_category_id)&&e.product_is_default==o.cSK.YES&&e.product_is_upgrade==o.cSK.NO),[v,S]),E=(0,c.useCallback)(async()=>{if(t)return;x(!0);let e=await (0,s.Ji)(),l={order_id:null==g?void 0:g.order_id,product_id:null==C?void 0:C.product_id,gRecaptchaToken:e,url:window.location.href},n=await a.xN.submitUpgradePackage(l),i=(0,a.jN)(n);if(!(null==n?void 0:n.success)&&(u.oR.error((null==n?void 0:n.message)||(null==m?void 0:m.txt_toaster_failed_common)),i&&f({errors:i}),(null==n?void 0:n.statusCode)==s.kG.NotFound)){j(),window.location.reload();return}(null==n?void 0:n.data)&&R(null==n?void 0:n.data),x(!1)},[t]),R=(0,c.useCallback)(e=>{h(),f({errors:{},isUpgradePackage:!1}),y({product_id:null==C?void 0:C.product_id}),b({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code})},[]),O=(0,c.useCallback)(async()=>{h()},[]),T=(0,c.useMemo)(()=>null==S?void 0:S.product_upgrade_description,[S]),A=(0,c.useCallback)(()=>{var e;let l="",t="";return(null==k?void 0:k.category_id)===o.Rj3.US_COMPANY_FORMATION&&(l=null==m?void 0:m.txt_order_incorp_premium_upgrade,t=null==m?void 0:m.txt_order_incorp_premium_upgrade_des),(0,n.jsxs)(c.Fragment,{children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",dangerouslySetInnerHTML:{__html:l}}),(0,n.jsx)("p",{className:"text-14 [&_span]:font-bold",dangerouslySetInnerHTML:{__html:null==t?void 0:null===(e=t.replace("|||NUMBER|||",(null==T?void 0:T.length.toString())||""))||void 0===e?void 0:e.replace("|||PRICE|||","".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,s.az)(Number(null==C?void 0:C.product_price)-Number(null==S?void 0:S.product_price),0)))}})]})},[k,T]);return(0,c.useEffect)(()=>(f({btnNext:o.w8x.UPGRADE_NOW,isNoThanksBtn:!0}),()=>{f({btnNext:o.w8x.NEXT,isNoThanksBtn:!1})}),[]),(0,n.jsx)("div",{className:"lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:(0,n.jsxs)("div",{className:"grid gap-5 py-5 px-4 lg:p-0",children:[(0,n.jsx)("div",{className:"grid gap-1",children:A()}),(0,n.jsx)("div",{className:"grid gap-5 grid-cols-1 md:grid-cols-2",children:null==T?void 0:T.map(e=>(0,n.jsxs)("div",{className:"flex items-center lg:items-start gap-1 border border-gray-23 rounded-lg py-2 lg:pr-3",children:[(0,n.jsx)(d.default,{width:80,height:80,src:e.reason_
1img,alt:e.reason_title,title:e.reason_title,className:"w-[100px] h-[100px] md:w-20 md:h-20"}),(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)("h3",{className:"text-16 font-bold",children:e.reason_title}),(0,n.jsx)("p",{className:"text-14",children:e.reason_description})]})]},e.reason_title))}),(0,n.jsxs)("div",{className:"grid gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsx)("p",{className:"font-semibold text-gray-52 text-14 uppercase",children:null==m?void 0:m.txt_order_current_plan}),(0,n.jsx)("p",{className:"text-14 font-semibold",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,s.az)(null==S?void 0:S.product_price,0))})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsx)("p",{className:"font-semibold text-gray-52 text-14",children:null==m?void 0:m.txt_order_upgrade}),(0,n.jsx)("p",{className:"text-14 font-semibold",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,s.az)(Number(null==C?void 0:C.product_price)-Number(null==S?void 0:S.product_price),0))})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4 pt-4 border-t border-dashed border-gray-23",children:[(0,n.jsx)("p",{className:"font-semibold text-18",children:null==m?void 0:m.txt_order_total}),(0,n.jsx)("p",{className:"text-18 font-semibold",children:"".concat(null==_?void 0:_.currency_symbol_left," ").concat((0,s.az)(null==C?void 0:C.product_price,0))})]})]})]})})}))},77709:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepStartBusiness:()=>x});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(42500),m=t(83924),_=t(45734),v=t(29722),p=t(46561);let x=(0,_.memo)((0,_.forwardRef)(function(e,l){(0,_.useImperativeHandle)(l,()=>({onSubmit:K}));let{location:t}=(0,_.useContext)(i.BR),{isLoading:x,configOrder:h,listLegalEntity:f,listOrderProduct:g,listLocationState:b,listTypeOfService:y,errors:j,setIsLoading:N,handleNextStep:w,updateContextValue:k}=(0,_.useContext)(i.w_),{orderStore:S,updateStartBusinessStore:C,updateOrderStore:E,clearOrderStore:R}=(0,s.Fc)(),O=(0,r._F)(1024),T="1"==o.ETc,A=(0,_.useMemo)(()=>null==S?void 0:S.start_business,[null==S?void 0:S.start_business]),{reset:M,trigger:I,setError:P,getValues:L,register:F,control:D}=(0,v.mN)({mode:"onSubmit",resolver:(0,m.t)((0,d.wv)(h,f,b))}),K=(0,_.useCallback)(async()=>{if(x||!await I())return;N(!0);let e=await (0,d.Ji)(),l={order_id:null==S?void 0:S.order_id,is_business:(null==A?void 0:A.business_type)==o.e8W.FORM_A_BUSINESS?o.cSK.YES:o.cSK.NO,type_of_service:null==A?void 0:A.type_of_service,jurisdiction_state_code:null==A?void 0:A.jurisdiction_state_code,legal_entity_id:null==A?void 0:A.legal_entity_id,gRecaptchaToken:e,url:window.location.href},t=await a.xN.submitStartBusiness(l),n=(0,a.jN)(t);if(!(null==t?void 0:t.success)&&(p.oR.error((null==t?void 0:t.message)||(null==h?void 0:h.txt_toaster_failed_common)),n&&k({errors:n}),(null==t?void 0:t.statusCode)==d.kG.NotFound)){R(),window.location.reload();return}(null==t?void 0:t.data)&&B(null==t?void 0:t.data),N(!1)},[x,A]),B=(0,_.useCallback)(e=>{w(),k({errors:{}}),E({location_code:null==e?void 0:e.location_code})},[]),G=(0,_.useMemo)(()=>null==A?void 0:A.type_of_service,[null==A?void 0:A.type_of_service]),U=(0,_.useMemo)(()=>null==A?void 0:A.business_type,[null==A?void 0:A.business_type]),Y=(0,_.useMemo)(()=>null==y?void 0:y.find(e=>e.category_id==G),[G]),z=(0,_.useMemo)(()=>null==y?void 0:y.filter(e=>e.category_is_business==o.cSK.NO&&e.category_is_choose_service==o.cSK.YES),[null==Y?void 0:Y.category_id]),H=(0,_.useMemo)(()=>null==f?void 0:f.filter(e=>e.legal_entity_service_id==(null==Y?void 0:Y.category_id)&&e.legal_entity_country_code==(null==Y?void 0:Y.category_jurisdiction_country_code)),[null==Y?void 0:Y.category_id]),q=(0,_.useMemo)(()=>{if(!b||!(null==H?void 0:H.length))return;if(!(null==Y?void 0:Y.category_id)||(null==Y?void 0:Y.category_id)!=o.Rj3.US_COMPANY_FORMATION)return b;let e=null==g?void 0:g.filter(e=>e.product_category_id==o.Rj3.US_COMPANY_FORMATION&&e.product_jurisdiction_country_code==(null==A?void 0:A.jurisdiction_country_code));return null==b?void 0:b.filter(l=>null==e?void 0:e.find(e=>e.product_jurisdiction_state_code==l.value))},[null==Y?void 0:Y.category_id,H]),V=(0,_.useCallback)(()=>{var e,l;(null===(e=L("type_of_service"))||void 0===e?void 0:e.category_id)!=(null==A?void 0:A.type_of_service)&&(C({type_of_service:null===(l=L("type_of_service"))||void 0===l?void 0:l.category_id,jurisdiction_country_code:t,jurisdiction_state_code:void 0,legal_entity_id:void 0}),E({entity_name:void 0,company_details:void 0,recommend_service:void 0,package_of_service:void 0}),M({is_business:L("is_business"),type_of_service:null==y?void 0:y.find(e=>{var l;return e.category_id==(null===(l=L("type_of_service"))||void 0===l?void 0:l.category_id)})}))},[null==A?void 0:A.type_of_service]),Z=(0,_.useCallback)(()=>{var e;C({jurisdiction_state_code:null===(e=L("jurisdiction_state_code"))||void 0===e?void 0:e.value})},[]),$=(0,_.useCallback)(()=>{var e,l;(null===(e=L("legal_entity_id"))||void 0===e?void 0:e.legal_entity_id)!=(null==A?void 0:A.legal_entity_id)&&(C({legal_entity_id:null===(l=L("legal_entity_id"))||void 0===l?void 0:l.legal_entity_id}),E({entity_name:void 0,company_details:void 0}),M({is_business:L("is_business"),type_of_service:null==y?void 0:y.find(e=>{var l;return e.category_id==(null===(l=L("type_of_service"))||void 0===l?void 0:l.category_id)}),jurisdiction_state_code:null==b?void 0:b.find(e=>{var l;return e.value==(null===(l=L("jurisdiction_state_code"))||void 0===l?void 0:l.value)}),legal_entity_id:null==f?void 0:f.find(e=>{var l;return e.legal_entity_id==(null===(l=L("legal_entity_id"))||void 0===l?void 0:l.legal_entity_id)})}))},[null==A?void 0:A.legal_entity_id]),W=(0,_.useCallback)(e=>{let l=e==o.e8W.FORM_A_BUSINESS?null==y?void 0:y.find(e=>e.category_is_business==o.cSK.YES):void 0;M({is_business:L("is_business"),type_of_service:l}),C({business_type:e,type_of_service:null==l?void 0:l.category_id,jurisdiction_country_code:t,jurisdiction_state_code:void 0,legal_entity_id:void 0}),E({entity_name:void 0,company_details:void 0,recommend_service:void 0,package_of_service:void 0})},[]),X=(0,_.useCallback)(()=>{var e;w(),E({order_ai:!0,entity_name:void 0,company_details:void 0,recommend_service:void 0,package_of_service:void 0,start_business:{type_of_service:null===(e=L("type_of_service"))||void 0===e?void 0:e.category_id,jurisdiction_country_code:t}})},[]);return(0,r.VT)(P,j),(0,_.useEffect)(()=>(k({isBackBtn:!1}),()=>k({isBackBtn:!0})),[]),(0,_.useEffect)(()=>{!L("type_of_service")&&((null==A?void 0:A.business_type)||W(o.e8W.FORM_A_BUSINESS),(null==A?void 0:A.type_of_service)&&M({type_of_service:null==y?void 0:y.find(e=>e.category_id==(null==A?void 0:A.type_of_service)),jurisdiction_state_code:null==b?void 0:b.find(e=>e.value==(null==A?void 0:A.jurisdiction_state_code)),legal_entity_id:null==f?void 0:f.find(e=>e.legal_entity_id==(null==A?void 0:A.legal_entity_id)),is_business:(null==A?void 0:A.business_type)==o.e8W.FORM_A_BUSINESS}))},[A]),(0,n.jsxs)("form",{noValidate:!0,onSubmit:K,className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold mb-5 font-secondary",children:null==h?void 0:h.txt_order_title_start_bussiness}),(0,n.jsx)("div",{className:"grid gap-5 grid-cols-1 lg:grid-cols-2",children:O?(0,n.jsx)("div",{className:"flex gap-3 justify-center flex-wrap",children:null===o.IX4||void 0===o.IX4?void 0:o.IX4.map(e=>(0,n.jsxs)("label",{className:(0,d.cn)("p-2 rounded-xl min-w-[165.5px] min-h-[52px] transition-all duration-300 flex items-center justify-center",(null==A?void 0:A.business_type)==e.value?"bg-red-1":"bg-background-1"),children:[(0,n.jsx)("input",{hidden:!0,type:"radio",value:e.value,...F("is_business"),checked:(null==A?void 0:A.business_type)==e.value,onChange:e=>W(e.target.value)}),(0,n.jsx)("p",{className:(0,d.cn)("text-sm text-center transition-all duration-300",(null==A?void 0:A.business_type)==e.value?"text-white font-semibold":"text-gray-53 font-medium"),children:e.label})]},e.value))}):(0,n.jsx)("div",{className:"flex gap-20 flex-wrap lg:col-span-2",children:null===o.IX4||void 0===o.IX4?void 0:o.IX4.map(e=>(0,n.jsx)(c.VC,{className:"gap-2",control:D,value:e.value,name:"is_business",disabled:x,nameLabel:e.label,classNameLabel:"text-14",checked:(null==A?void 0:A.business_type)==e.value,handleOnChange:()=>W(e.value)},e.value))})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 mt-5",children:[(0,n.jsx)("div",{className:(0,d.cn)(U==o.e8W.FORM_A_BUSINESS&&"hidden"),children:(0,n.jsx)(c.$k,{control:D,isShowPlaceholder:!0,id:"type_of_service",name:"type_of_service",isDisabled:x,classNameError:"text-xs",option:z,onSelect:V,nameLabel:null==h?void 0:h.txt_order_choose_service,placeholder:null==h?void 0:h.txt_order_choose_service_plc})}),(0,n.jsx)("div",{className:(0,d.cn)(!(null==q?void 0:q.length)&&"hidden"),children:(0,n.jsx)(c.$k,{control:D,isShowPlaceholder:!0,isDisabled:x,classNameError:"text-xs",id:"jurisdiction_state_code",option:q,onSelect:Z,name:"jurisdiction_state_code",nameLabel:null==h?void 0:h.txt_order_state,placeholder:null==h?void 0:h.txt_order_state_plc})}),(0,n.jsx)("div",{className:(0,d.cn)(!(null==H?void 0:H.length)&&"hidden"),children:(0,n.jsx)(c.$k,{control:D,isShowPlaceholder:!0,id:"legal_entity_id",name:"legal_entity_id",isDisabled:x,classNameError:"text-xs",option:
1H,onSelect:$,nameLabel:null==h?void 0:h.txt_order_entity_type,placeholder:null==h?void 0:h.txt_order_entity_type_plc})})]}),U==o.e8W.FORM_A_BUSINESS&&T&&(0,n.jsx)("div",{className:"mt-5 w-full max-w-[458px] select-none cursor-pointer",onClick:X,children:(0,n.jsxs)("div",{className:"p-3 lg:px-5 rounded-xl border border-gray-50 bg-gray-51 flex gap-2 lg:gap-3 items-center",children:[(0,n.jsx)(i.wR,{html:(null==h?void 0:h.html_order_not_sure)||""}),(0,n.jsx)(u.qT,{className:"w-[18px] h-[18px] flex-shrink-0 rotate-180"})]})})]})}))},78751:e=>{e.exports={"consent-cookie":"cookie-consent-in-eea_consent-cookie__5WW4L","cookie-setting":"cookie-consent-in-eea_cookie-setting__mrpjA"}},79103:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CHANNEL_ID:()=>c,COMMUNICATION_CHANEL_MODE:()=>u,CommunicationChanel:()=>m});var n=t(38694),i=t(69054),o=t(2508),a=t(94674),r=t(83924),s=t(45734),d=t(29722),c=function(e){return e[e.TELEGRAM=6]="TELEGRAM",e[e.WHATSAPP=3]="WHATSAPP",e[e.WECHAT=5]="WECHAT",e[e.SIGNAL=2]="SIGNAL",e[e.SKYPE=1]="SKYPE",e[e.VIBER=4]="VIBER",e[e.OTHER=7]="OTHER",e[e.ZALO=8]="ZALO",e}({}),u=function(e){return e.LOGIN="LOGIN",e.REGISTER="REGISTER",e.LEAD_FORM="LEAD_FORM",e.ENTER_PHONE_NUMBER="ENTER_PHONE_NUMBER",e}({});let m=(0,s.forwardRef)(function(e,l){var t,c;let{channelIdClass:u,channelIdOrder:m,channelNameClass:_,channelNameOrder:v,channelNumberClass:p,channelNumberOrder:x,channelSelectClass:h,channelSelectOrder:f,mode:g,phoneNumber:b,defaultValueProps:y,isShowPlaceholder:j,hideIdLabel:N=!1,isLeadform:w=!1,isEdit:k=!1,onSelectChannel:S}=e;(0,s.useImperativeHandle)(l,()=>({onSubmit:Y,handleError:z,handleReset:H}));let{listConfigLeadform:C,communicationChannelsData:E}=(0,i.rZ)(),[R,O]=(0,s.useState)(null==y?void 0:y.communication_channel_id),[T,A]=(0,s.useState)({channelNumberClass:p||"",channelSelectClass:h||"",channelNameClass:_||"",channelIdClass:u||""}),[M,I]=(0,s.useState)({channelNameOrder:v||"",channelNumberOrder:x||"",channelSelectOrder:f||"",channelIdOrder:m||""}),{control:P,register:L,setError:F,getValues:D,setValue:K,trigger:B,reset:G,formState:{errors:U}}=(0,d.mN)({mode:"all",defaultValues:y||{},shouldFocusError:!1,resolver:(0,r.t)((0,o.IV)(C))}),Y=async()=>!!await B()&&{...D(),communication_channel_id:D().communication_channel_id.value},z=e=>{(null==e?void 0:e.communication_channel_id)&&F("communication_channel_id",{message:null==e?void 0:e.communication_channel_id[0]}),(null==e?void 0:e.communication_channel_other_name)&&F("communication_channel_name",{message:null==e?void 0:e.communication_channel_other_name[0]}),(null==e?void 0:e.communication_channel_content)&&F("communication_channel_number",{message:null==e?void 0:e.communication_channel_content[0]})},H=()=>{G(y),O(null==y?void 0:y.communication_channel_id)},q=e=>{let l=7!=e.value&&1!=e.value,t=7!=e.value?String(e.label):"",n=b&&l?String(b):"";K("communication_channel_name",t),K("communication_channel_number",n),O(e),S&&S(e)};return(0,s.useEffect)(()=>{var e;(null==y?void 0:null===(e=y.communication_channel_id)||void 0===e?void 0:e.value)&&O(null==y?void 0:y.communication_channel_id);let l=(null==R?void 0:R.value)&&(null==R?void 0:R.value)!=7&&(null==R?void 0:R.value)!=1;l&&K("communication_channel_number",b&&l?String(b):"")},[b,null==y?void 0:y.communication_channel_id,R,E]),(0,s.useEffect)(()=>{let e=null==E?void 0:E.find(e=>(null==e?void 0:e.communication_channel_id)===3);if(e){var l;O(e),q(e),K("communication_channel_id",{icon:null!==(l=e.icon)&&void 0!==l?l:"",label:e.label,value:Number(e.value)})}},[E]),(0,s.useEffect)(()=>{switch(g){case"REGISTER":I(e=>({...e,channelNameOrder:(null==R?void 0:R.value)==7?"5":"3"})),A(e=>({...e,channelSelectClass:(null==R?void 0:R.value)==7?"col-span-1":"col-span-2",channelNumberClass:"col-span-2",channelIdClass:(null==R?void 0:R.value)==7?"md:!col-span-2":"col-span-2"}));break;case"ENTER_PHONE_NUMBER":A(e=>({...e,channelSelectClass:(null==R?void 0:R.value)==7?"col-span-1":"col-span-2",channelNumberClass:"col-span-2",channelIdClass:(null==R?void 0:R.value)==7?"md:!col-span-2":"col-span-2"}))}},[null==R?void 0:R.value]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,o.cn)("order-".concat(null==M?void 0:M.channelSelectOrder),T.channelSelectClass),children:(0,n.jsx)(a.$k,{control:P,id:"communication-channel-select",name:"communication_channel_id",option:E,nameLabel:null==C?void 0:C.lbl_communication_channel,isRequired:!0,isLeadform:w,isShowPlaceholder:j,placeholder:null==C?void 0:C.txt_mp_please_select,onSelect:q,isDisabled:k})}),(null==R?void 0:R.value)==7||(null==R?void 0:R.value)==1?(0,n.jsxs)(n.Fragment,{children:[(null==R?void 0:R.value)!=1&&(0,n.jsx)("div",{className:(0,o.cn)("order-".concat(null==M?void 0:M.channelNameOrder),T.channelNameClass),children:(0,n.jsx)(a.pd,{type:"text",id:"communication_channel_name",placeholder:null==C?void 0:C.txt_other_channel,className:"relative",classNameInput:(0,o.cn)(w&&"h-11"),classNameLabel:"font-bold opacity-0 hidden md:!block",...L("communication_channel_name"),errorMessage:null===(t=U.communication_channel_name)||void 0===t?void 0:t.message,maxLength:255,nameLabel:N?"":null==C?void 0:C.lbl_ID,required:!0,classNameError:(0,o.cn)(w&&"absolute -bottom-5 left-0"),disabled:k})}),(0,n.jsx)("div",{className:(0,o.cn)("order-".concat(null==M?void 0:M.channelIdOrder),T.channelIdClass),children:(0,n.jsx)(a.pd,{type:"text",id:"communication_channel_number",placeholder:null==C?void 0:C.lbl_ID,className:"relative",classNameInput:(0,o.cn)(w&&"h-11"),classNameLabel:"font-bold",...L("communication_channel_number"),errorMessage:null===(c=U.communication_channel_number)||void 0===c?void 0:c.message,maxLength:255,nameLabel:N?"":null==C?void 0:C.lbl_ID,required:!0,disabled:k})})]}):(0,n.jsx)(n.Fragment,{children:(null==R?void 0:R.value)&&(0,n.jsx)("div",{className:(0,o.cn)("order-".concat(null==M?void 0:M.channelNumberOrder),T.channelNumberClass),children:(0,n.jsx)(a.KE,{setError:F,control:P,name:"communication_channel_number",id:"c
1ommunication_channel_number",type:"text",placeholder:"Ex: xxxxxxxxx",nameLabel:null==C?void 0:C.lbl_number,required:!0,classNameInput:(0,o.cn)(w&&"h-11"),classNameError:(0,o.cn)(w&&"absolute -bottom-5 left-0"),readOnly:k,isEdit:k})})})]})})},79925:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SearchBar:()=>s});var n=t(38694),i=t(69054),o=t(50280),a=t(45734),r=t(42500);let s=e=>{let{textSearch:l,data:t}=e,s=(0,o.useSearchParams)(),d=(0,o.useRouter)(),c=(0,o.usePathname)(),u=(null==s?void 0:s.get("search"))||"",[m,_]=(0,a.useState)(u),[v]=(0,i.d7)(m,500),[p,x]=(0,a.useState)(!1),h=(0,a.useCallback)(e=>{x(!0);let l=new URLSearchParams(window.location.search);l.get("search")!==e&&(""===e?l.delete("search"):l.set("search",e),d.replace("".concat(c,"?").concat(l.toString()),{scroll:!1}))},[c,d]);return(0,a.useEffect)(()=>{h(v)},[v,h]),(0,a.useEffect)(()=>{x(!1)},[t]),(0,n.jsxs)("div",{className:"relative border border-gray-8 rounded-xl overflow-hidden",children:[(0,n.jsx)("input",{className:"w-full h-[52px] text-16 font-normal text-gray-5 px-4 py-[14px] outline-none",placeholder:l,type:"text",onChange:e=>{_(e.target.value)},value:m}),(0,n.jsx)("div",{className:"absolute w-5 h-5 flex justify-center items-center right-4 top-1/2 -translate-y-1/2",children:p?(0,n.jsx)(r.VO,{className:"animate-spin"}):(0,n.jsx)(r.WI,{className:"fill-black transition-all duration-200 hover:fill-primary"})})]})}},80743:(e,l,t)=>{"use strict";t.r(l),t.d(l,{AppContext:()=>a,AppProvider:()=>r});var n=t(38694),i=t(48873),o=t(45734);let a=(0,o.createContext)({lang:"",device:"",isCrawl:!1,isMobile:!1,location:"",locationHotLine:"",currentUrl:"",activeLocation:void 0,activeLanguage:void 0,updateContextValue:()=>void 0,langLocationSlashed:"",configGlobal:null,menuHeader:[],menuFooter:[],currentLocation:null,siteKeywords:{}});function r(e){let{children:l,...t}=e,[r,s]=(0,o.useState)(t);return(0,n.jsx)(a.Provider,{value:{...r,updateContextValue:e=>{s(l=>({...l,...e}))},site:i.Opz},children:l})}},80744:(e,l,t)=>{"use strict";t.d(l,{B:()=>n.AppContext});var n=t(80743)},80773:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Summary:()=>_});var n=t(38694),i=t(29432),o=t(48873),a=t(69054),r=t(8256),s=t(2508),d=t(94674),c=t(42500),u=t(45734),m=t(54343);let _=(0,u.memo)(e=>{var l,t,_,v,p,x,h,f,g,b,y,j;let{onSubmit:N,onNoThanks:w,onBack:k,isOrderReview:S}=e,{step:C,btnNext:E,isLoading:R,isNextBtn:O,btnNextText:T,btnBackText:A,isNoThanksBtn:M,configOrder:I,btnNoThanksText:P,listLegalEntity:L,currentCurrency:F,listOrderProduct:D,listTypeOfService:K,listLocationState:B,listOrderProductInternational:G}=(0,u.useContext)(i.w_),{orderStore:U}=(0,r.Fc)(),[Y,z]=(0,u.useState)(!1),H=(0,a._F)(1024),q=(0,u.useCallback)(()=>{z(e=>!e)},[]),V=(0,u.useMemo)(()=>null==U?void 0:U.start_business,[null==U?void 0:U.start_business]),Z=(0,u.useMemo)(()=>null==U?void 0:U.package_of_service,[null==U?void 0:U.package_of_service]),$=(0,u.useMemo)(()=>null==U?void 0:U.company_details,[null==U?void 0:U.company_details]),W=(0,u.useMemo)(()=>null==U?void 0:U.recommend_service,[null==U?void 0:U.recommend_service]),X=(0,u.useMemo)(()=>null==W?void 0:W.trademark,[null==W?void 0:W.trademark]),J=(0,u.useMemo)(()=>null==K?void 0:K.find(e=>e.category_id==(null==V?void 0:V.type_of_service)),[null==V?void 0:V.type_of_service]),Q=(0,u.useMemo)(()=>null==B?void 0:B.find(e=>e.value==(null==V?void 0:V.jurisdiction_state_code)),[null==V?void 0:V.jurisdiction_state_code]),ee=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>e.product_id==(null==Z?void 0:Z.product_id)),[null==Z?void 0:Z.product_id]),el=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>e.product_id==(null==Z?void 0:Z.product_additional_class_id)),[null==Z?void 0:Z.product_additional_class_id]),et=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>e.product_id==(null==Z?void 0:Z.director_product_id)),[null==Z?void 0:Z.director_product_id]),en=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>e.product_id==(null==Z?void 0:Z.shareholder_product_id)),[null==Z?void 0:Z.shareholder_product_id]),ei=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>e.product_id==(null==$?void 0:$.processing_time_id)),[null==$?void 0:$.processing_time_id]),eo=(0,u.useMemo)(()=>{let e=null==L?void 0:L.find(e=>e.legal_entity_id==(null==V?void 0:V.legal_entity_id));if(!((null==e?void 0:e.legal_entity_id)&&(null==ee?void 0:ee.product_legal_entity_id)==(null==e?void 0:e.legal_entity_id)&&(null==ee?void 0:ee.product_type_id)==o.Vo0.SERVICE_FEE))return e},[null==V?void 0:V.legal_entity_id,ee]),ea=(0,u.useMemo)(()=>{var e;let l=(null==Z?void 0:Z.united_states)||(null==X?void 0:X.united_states);if(!l)return;let t=null==D?void 0:D.find(e=>e.product_id==(null==l?void 0:l.product_id)),n=null==D?void 0:D.find(e=>(null==e?void 0:e.product_type_id)==o.Vo0.USPTO_FEE),i=Number(null==l?void 0:l.number_of_class)-Number(null==t?void 0:t.product_free_class),a=(null==D?void 0:null===(e=D.find(e=>e.product_type_id==o.Vo0.CLASS&&e.product_jurisdiction_country_code==(null==t?void 0:t.product_jurisdiction_country_code)))||void 0===e?void 0:e.product_price)||0;return{class_fee:a,product:t,register:n,number_of_class:i,number_of_class_fee:i?"".concat(i>1?"".concat(i," x "):"").concat(null==F?void 0:F.currency_symbol_left," ").concat((0,s.az)(a)):""}},[null==Z?void 0:Z.united_states,null==X?void 0:X.united_states]),er=(0,u.useMemo)(()=>{var e;let l=(null==Z?void 0:Z.international)||(null==X?void 0:X.international);if(!l)return;let t=null==G?void 0:G.find(e=>e.product_id==(null==l?void 0:l.product_id)),n=null==G?void 0:G.find(e=>(null==e?void 0:e.product_type_id)==o.Vo0.REGISTER_FEE),i=Number(null==l?void 0:l.number_of_class)-Number(null==t?void 0:t.product_free_class),a=(null==G?void 0:null===(e=G.find(e=>e.product_type_id==o.Vo0.CLASS&&e.product_jurisdiction_country_code==(null==t?void 0:t.product_jurisdiction_country_code)))||void 0===e?void 0:e.product_price)||0;return{class_fee:a,product:t,register:n,number_of_class:i,number_of_class_fee:i?"".concat(i>1?"".concat(i," x "):"").concat(null==F?void 0:F.currency_symbol_left," ").concat((0,s.az)(a)):""}},[null==Z?void 0:Z.international,null==X?void 0:X.international]),es=(0,u.useMemo)(()=>
1{if(!(null==ee?void 0:ee.product_id))return 0;let e=null==D?void 0:D.find(e=>e.product_category_id==(null==J?void 0:J.category_id)&&e.product_jurisdiction_country_code==(null==V?void 0:V.jurisdiction_country_code)&&e.product_jurisdiction_state_code==(null==V?void 0:V.jurisdiction_state_code)&&e.product_legal_entity_id==(null==V?void 0:V.legal_entity_id)&&e.product_type_id==o.Vo0.STATE_FEE);return(null==e?void 0:e.product_price)||0},[null==ee?void 0:ee.product_id,null==V?void 0:V.legal_entity_id,null==J?void 0:J.category_id,null==V?void 0:V.jurisdiction_state_code,null==V?void 0:V.jurisdiction_country_code]),ed=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.bookkeeping)||void 0===l?void 0:l.product_id)}),[null==W?void 0:null===(l=W.bookkeeping)||void 0===l?void 0:l.product_id]),ec=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.business_account)||void 0===l?void 0:l.product_id)}),[null==W?void 0:null===(t=W.business_account)||void 0===t?void 0:t.product_id]),eu=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.taxation)||void 0===l?void 0:l.product_id)}),[null==W?void 0:null===(_=W.taxation)||void 0===_?void 0:_.product_id]),em=(0,u.useMemo)(()=>{var e;return{product:null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.payroll)||void 0===l?void 0:l.product_id)}),number_of_employee:null==W?void 0:null===(e=W.payroll)||void 0===e?void 0:e.number_of_employee}},[null==W?void 0:null===(v=W.payroll)||void 0===v?void 0:v.product_id,null==W?void 0:null===(p=W.payroll)||void 0===p?void 0:p.number_of_employee]),e_=(0,u.useMemo)(()=>{var e;let l=null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.trademark)||void 0===l?void 0:l.product_id)}),t=null==W?void 0:null===(e=W.trademark)||void 0===e?void 0:e.number_of_additional_class;return{product:l,product_additional_class:null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.trademark)||void 0===l?void 0:l.product_additional_class_id)}),number_of_additional_class:t}},[null==W?void 0:null===(x=W.trademark)||void 0===x?void 0:x.product_id,null==W?void 0:null===(h=W.trademark)||void 0===h?void 0:h.number_of_additional_class,null==W?void 0:null===(f=W.trademark)||void 0===f?void 0:f.product_additional_class_id]),ev=(0,u.useMemo)(()=>{var e,l;return{product_director:null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.nominee)||void 0===l?void 0:l.director_product_id)}),product_shareholder:null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.nominee)||void 0===l?void 0:l.shareholder_product_id)}),number_of_director:null==W?void 0:null===(e=W.nominee)||void 0===e?void 0:e.number_of_director,number_of_shareholder:null==W?void 0:null===(l=W.nominee)||void 0===l?void 0:l.number_of_shareholder}},[null==W?void 0:null===(g=W.nominee)||void 0===g?void 0:g.number_of_director,null==W?void 0:null===(b=W.nominee)||void 0===b?void 0:b.number_of_shareholder]),ep=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.merchant_account)||void 0===l?void 0:l.product_id)}),[null==W?void 0:null===(y=W.merchant_account)||void 0===y?void 0:y.product_id]),ex=(0,u.useMemo)(()=>null==D?void 0:D.find(e=>{var l;return e.product_id==(null==W?void 0:null===(l=W.service_office)||void 0===l?void 0:l.product_id)}),[null==W?void 0:null===(j=W.service_office)||void 0===j?void 0:j.product_id]),eh=(0,u.useMemo)(()=>{var e,l,t,n,i,o,a,r,s,d;let c=(null==Z?void 0:Z.number_of_employee)||1,u=(null==Z?void 0:Z.number_of_additional_class)||0,m=((null==ee?void 0:ee.product_price)||0)*c,_=((null==el?void 0:el.product_price)||0)*u,v=(null==ee?void 0:ee.product_gov_fee)||0,p=(null==ee?void 0:ee.product_deposit_fee)||0,x=((null==et?void 0:et.product_price)||0)*((null==Z?void 0:Z.number_of_director)||0),h=((null==en?void 0:en.product_price)||0)*((null==Z?void 0:Z.number_of_shareholder)||0),f=(null==ei?void 0:ei.product_price)||0,g=(null==ea?void 0:null===(e=ea.product)||void 0===e?void 0:e.product_price)||0,b=(null==ea?void 0:null===(l=ea.register)||void 0===l?void 0:l.product_price)||0,y=((null==ea?void 0:ea.class_fee)||0)*((null==ea?void 0:ea.number_of_class)||0),j=(null==er?void 0:null===(t=er.product)||void 0===t?void 0:t.product_price)||0,N=(null==er?void 0:null===(n=er.register)||void 0===n?void 0:n.product_price)||0,w=((null==er?void 0:er.class_fee)||0)*((null==er?void 0:er.number_of_class)||0),k=g+b+y+j+N+w+(((null==e_?void 0:null===(i=e_.product)||void 0===i?void 0:i.product_price)||0)+((null==e_?void 0:null===(o=e_.product)||void 0===o?void 0:o.product_gov_fee)||0))+((null==e_?void 0:null===(a=e_.product_additional_class)||void 0===a?void 0:a.product_price)||0)*((null==e_?void 0:e_.number_of_additional_class)||0),S=(null==ed?void 0:ed.product_price)||0,C=(null==ec?void 0:ec.product_price)||0,E=(null==ep?void 0:ep.product_price)||0,R=(null==ex?void 0:ex.product_price)||0,O=(null==eu?void 0:eu.product_price)||0,T=((null==em?void 0:null===(r=em.product)||void 0===r?void 0:r.product_price)||0)*((null==em?void 0:em.number_of_employee)||1),A=((null==ev?void 0:null===(s=ev.product_director)||void 0===s?void 0:s.product_price)||0)*(Number(null==ev?void 0:ev.number_of_director)||0);return v+es+k+x+p+h+m+T+(A+((null==ev?void 0:null===(d=ev.product_shareholder)||void 0===d?void 0:d.product_price)||0)*(Number(null==ev?void 0:ev.number_of_shareholder)||0))+f+O+S+_+R+C+E},[es,ee,Z,ea,ei,el,et,em,ev,eu,en,e_,ed,er,ex,ec,ep]);return S?(0,n.jsx)(m.pY,{isOrderReview:!0,totalAll:eh,stateFee:es,chosenProduct:ee,chosenStateCode:Q,chosenLegalEntity:eo,chosenTrademarkUs:ea,chosenTypeOfService:J,chosenProcessingTime:ei,chosenAdditionalClass:el,chosenNomineeDirector:et,chosenRecommendNominee:ev,chosenRecommendPayroll:em,chosenRecommendTaxation:eu,chosenRecommendTrademark:e_,chosenNomineeShareholder:en,chosenRecommendAccounting:ed,chosenTrademarkInternational:er,chosenRecommendServiceOffice:ex,chosen
1RecommendBusinessAccount:ec,chosenRecommendMerchantAccount:ep}):H?(0,n.jsxs)(n.Fragment,{children:[C!=o.DHf.STEP_ORDER_REVIEW&&(0,n.jsxs)("div",{className:"flex justify-between items-center gap-4 mb-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-[6px]",children:[(0,n.jsx)("p",{className:"text-12",children:null==I?void 0:I.txt_order_total}),(0,n.jsx)("p",{className:"text-18 text-primary font-bold",children:"".concat(null==F?void 0:F.currency_symbol_left," ").concat((0,s.az)(eh))})]}),(0,n.jsxs)("p",{className:"text-14 inline-flex items-center underline gap-2 font-medium cursor-pointer py-2",onClick:q,children:[null==I?void 0:I.txt_order_summary,(0,n.jsx)(c.Kn,{className:"*:fill-black w-3 h-3 rotate-180 flex-shrink-0"})]})]}),(0,n.jsxs)("div",{className:"grid gap-3",children:[O&&(0,n.jsxs)(d.$n,{variant:"none",onClick:N,disabled:R,isLoading:R,className:"w-full h-[48px] font-semibold text-white bg-red-1",children:[E==o.w8x.RECOMMENDATION&&(0,n.jsx)(c.qc,{className:"mx-1"}),T]}),(0,n.jsxs)("div",{className:"flex gap-3",children:[C==o.DHf.STEP_BOOST_BUSINESS&&(0,n.jsxs)(d.$n,{variant:"none",disabled:R,onClick:k,className:"w-full h-[48px] bg-gray-10 font-semibold gap-2",children:[(0,n.jsx)(c.qT,{}),A]}),M&&(0,n.jsx)(d.$n,{variant:"none",onClick:w,disabled:R,isLoading:R,className:"w-full h-[48px] font-semibold bg-white border border-gray-56",children:P})]})]}),(0,n.jsx)(m.j4,{title:null==I?void 0:I.txt_order_title_summary,open:Y,setOpen:q,children:(0,n.jsx)(m.pY,{totalAll:eh,stateFee:es,chosenProduct:ee,chosenStateCode:Q,chosenLegalEntity:eo,chosenTrademarkUs:ea,chosenTypeOfService:J,chosenProcessingTime:ei,chosenAdditionalClass:el,chosenNomineeDirector:et,chosenRecommendNominee:ev,chosenRecommendPayroll:em,chosenRecommendTaxation:eu,chosenNomineeShareholder:en,chosenRecommendTrademark:e_,chosenRecommendAccounting:ed,chosenTrademarkInternational:er,chosenRecommendServiceOffice:ex,chosenRecommendBusinessAccount:ec,chosenRecommendMerchantAccount:ep})})]}):(0,n.jsxs)("div",{className:(0,s.cn)("grid",C==o.DHf.STEP_PAYMENT?"gap-8":"gap-5"),children:[(0,n.jsxs)("div",{className:"bg-white rounded-xl shadow-31 overflow-hidden",children:[(0,n.jsx)("div",{className:"px-6 pt-6 sticky top-0 z-[1] bg-white",children:(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary pb-4 lg:pb-3 border-b border-gray-23",children:null==I?void 0:I.txt_order_title_summary})}),(0,n.jsx)("div",{className:"px-6 pb-6",children:(0,n.jsx)("div",{className:"max-h-[60dvh] overflow-y-auto no-scrollbar",children:(0,n.jsx)(m.pY,{totalAll:eh,stateFee:es,chosenProduct:ee,chosenStateCode:Q,chosenLegalEntity:eo,chosenTrademarkUs:ea,chosenTypeOfService:J,chosenProcessingTime:ei,chosenAdditionalClass:el,chosenNomineeDirector:et,chosenRecommendNominee:ev,chosenRecommendPayroll:em,chosenRecommendTaxation:eu,chosenNomineeShareholder:en,chosenRecommendTrademark:e_,chosenRecommendAccounting:ed,chosenTrademarkInternational:er,chosenRecommendServiceOffice:ex,chosenRecommendBusinessAccount:ec,chosenRecommendMerchantAccount:ep})})})]}),C==o.DHf.STEP_PAYMENT&&(0,n.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-31 overflow-hidden",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary pb-4",children:null==I?void 0:I.txt_order_summary_info}),(0,n.jsx)(m.x7,{})]})]})});_.displayName="Summary"},81192:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TypeWriterEffect:()=>a});var n=t(38694),i=t(2508),o=t(63985);let a=e=>{let{content:l,className:t,...a}=e,r=function(e){return null==e?void 0:e.split("").map(e=>e)}(l);return(0,n.jsx)(o.P.p,{className:(0,i.cn)("inline-block",t),...a,children:null==r?void 0:r.map((e,l)=>(0,n.jsx)(o.P.span,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.02*l},children:e},l))},l)}},81805:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TankTackProvider:()=>d});var n=t(38694),i=t(78090),o=t(15257),a=t(46511),r=t(96274),s=t(45734);let d=e=>{let{children:l}=e,[t]=(0,s.useState)(new i.E);return(0,n.jsxs)(o.Ht,{client:t,children:[(0,n.jsxs)(r.x,{children:[l," "]}),(0,n.jsx)(a.E,{initialIsOpen:!1})]})}},83517:(e,l,t)=>{"use strict";t.r(l),t.d(l,{TableContent:()=>s});var n=t(38694),i=t(29432),o=t(2508),a=t(50280),r=t(45734);let s=e=>{let{content:l}=e,t=(0,a.useRouter)(),s=(0,a.usePathname)(),{configGlobal:d}=(0,r.useContext)(i.BR),[c,u]=(0,r.useState)(""),[m,_]=(0,r.useState)([]),v=e=>e.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"").trim().replace(/\s+/g,"-"),p=e=>{var l;let n=document.getElementById(e),i=null===(l=document.querySelector("header"))||void 0===l?void 0:l.offsetHeight,o=i&&i+130;n&&o&&(window.scrollTo({top:n.getBoundingClientRect().top+window.scrollY-o,behavior:"smooth"}),t.replace(s+"#"+e,{scroll:!1}))};return((0,r.useEffect)(()=>{_((e=>{let l=new DOMParser().parseFromString(e,"text/html").querySelectorAll("h2, h3"),t=[];return Array.from(l).forEach(e=>{let l=e.tagName.toLowerCase(),n=v(e.textContent||""),i=e.textContent||"";if("h2"===l)t.push({id:n,title:i,level:"h2",child:[]});else{var o,a;let l=e.previousElementSibling;for(;l&&"h2"!==l.tagName.toLowerCase();)l=l.previousElementSibling;let r=l?v(l.textContent||""):void 0;null===(a=t[t.length-1])||void 0===a||null===(o=a.child)||void 0===o||o.push({id:n,title:i,level:"h3",parentId:r,child:[]})}}),t})(l))},[l]),(0,r.useEffect)(()=>{let e=document.querySelectorAll(".content-format h2, .content-format h3");e&&e.forEach(e=>{let l=v(e.innerText);e.setAttribute("id",l)})}),(0,r.useEffect)(()=>{let e=()=>{let e=document.querySelectorAll(".content-format h2, .content-format h3"),l="",t=window.scrollY;e.forEach(e=>{t+160>=e.offsetTop&&(l=e.id)}),u(l)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),null==m?void 0:m.length)?(0,n.jsxs)("div",{className:"bg-gray-4 w-full p-4",children:[(0,n.jsx)("h2",{className:"text-18 font-semibold",children:null==d?void 0:d.txt_table_of_content}),(0,n.jsx)("ul",{className:" list-disc pl-4 ml-2",children:null==m?void 0:m.map((e,l)=>(0,n.jsx)("li",{className:(0,o.cn)("text-16 font-semibold mt-4 cursor-pointer hover:text-primary",c===e.id?"text-primary":"text-gray-5"),onClick:()=>p(e.id),children:e.title},l))})]}):null}},83519:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CountDown:()=>r});var n=t(38694),i=t(45734),o=t(93220);let a=e=>{let{initialValue:l,duration:t,countTo:n}=e,[o,a]=(0,i.useState)(l),r=(0,i.useMemo)(()=>n-l,[n,l]);return(0,i.useEffect)(()=>{let e,i=o=>{e||(e=o);let s=o-e;s<t?(a(Math.floor(l+s/t*r)),requestAnimationFrame(i)):a(n)};return requestAnimationFrame(i),()=>{}},[t,l,n,r]),null==o?void 0:o.toString().replace(/(\d)(?=(?:\d{3})+(?!\d))/g,"$1,")},r=e=>{let{initial:l,duration:t,count:r}=e,{isCrawl:s}=(0,i.useContext)(o.BR);return s?r:(0,n.jsx)(a,{initialValue:Number(l),duration:Number(t),countTo:Number(r)})}},83911:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PackageItem:()=>u});var n=t(38694),i=t(29432),o=t(69054),a=t(2508),r=t(94674),s=t(42500),d=t(45734),c=t(29722);let u=e=>{let{name:l,control:t,product:u,className:m,desPackage:_,defaultValue:v,isSimpleStyle:p,isRecommended:x,variant:h="card",handleChange:f,...g}=e,{currentCurrency:b,configOrder:y}=(0,d.useContext)(i.w_),{field:{onChange:j,value:N=v},fieldState:{error:w}}=(0,c.as)({name:l,control:t}),k=(0,d.useRef)(null),S=(0,o._F)(1024);switch((0,d.useEffect)(()=>{let e=()=>{if(S)return;let e=document.querySelectorAll(".product-description");if(!e.length)return;e.forEach(e=>{e.style.height="auto"});let l=0;e.forEach(e=>{let t=e.offsetHeight;l=Math.max(l,t)}),l>0&&e.forEach(e=>{e.style.height="".concat(l,"px")})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[_,S]),h){case"line":return(0,n.jsx)("label",{className:m,children:(0,n.jsxs)("div",{className:(0,a.cn)("flex justify-between items-center w-full px-3 py-2 lg:px-5 gap-2 lg:gap-5 rounded-xl bg-gray-39 border border-gray-39 outline outline-1 outline-gray-39",Number(N)==u.product_id&&"bg-red-17 outline-2 outline-red-1",w&&"outline-red-1",g.disabled&&"pointer-events-none"),children:[(0,n.jsx)("p",{className:"text-sm lg:text-md text-left",children:u.product_name}),u.product_description&&(0,n.jsx)("p",{className:"text-sm lg:text-md text-center",children:u.product_description}),(0,n.jsxs)("p",{className:"text-right",children:[(0,n.jsx)("span",{className:"text-18 lg:text-24 font-bold",children:"".concat(null==b?void 0:b.currency_symbol_left," ").concat((0,a.az)(u.product_price))}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs lg:text-sm",children:u.product_description_price})]})]})});case"card":var C;return(0,n.jsx)("label",{className:(0,a.cn)("select-none cursor-pointer w-full max-w-[317px]",m),children:(0,n.jsxs)("div",{className:(0,a.cn)("p-3 rounded-xl outline outline-1 outline-gray-56 hover:shadow-38 h-full",Number(N)==u.product_id&&"outline-2 outline-red-1 shadow-39",w&&"outline-red-1",g.disabled&&"pointer-events-none",S&&"shadow-39"),children:[(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-1",p&&"flex-row items-center justify-between",S&&!p&&(0,a.cn)("pt-3 px-5 pb-5 border border-gray-56 shadow-40 rounded-xl",Number(N)==u.product_id&&"border-red-1",x&&"bg-gradient-red-11")),children:[(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(r.VC,{name:l,control:t,className:"mt-1",checked:Number(N)==u.product_id,onChange:e=>{j(e),f&&f()},...g}),(0,n.jsx)("p",{className:"text-16 font-medium",children:u.product_name}),x&&(0,n.jsx)("p",{className:"px-4 py-1 rounded text-11 text-red-1 font-semibold bg-red-21 ml-auto",children:null==y?void 0:y.txt_recommended})]}),u.product_description&&(0,n.jsx)("p",{className:"text-14 lg:text-16 text-center",children:u.product_description}),(0,n.jsxs)("p",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"text-28 lg:text-32 font-bold flex-shrink-0",children:"".concat(null==b?void 0:b.currency_symbol_left," ").concat((0,a.az)(u.product_price,0))}),u.product_description_price&&(0,n.jsx)("span",{className:"text-14 text-gray-5 self-end mb-2",children:u.product_description_price})]}),(null==_?void 0:_.product_description)&&(0,n.jsx)("p",{className:"text-14 product-description",ref:k,children:_.product_description})]}),(0,n.jsxs)("div",{className:(0,a.cn)("mt-4 lg:pt-4 lg:border-t lg:border-gray-14 grid gap-2",p&&"pt-4 border-t border-gray-14"),children:[(null==_?void 0:_.label_includes)&&(0,n.jsx)("p",{className:"text-14 font-semibold px-4 lg:px-0",children:_.label_includes}),null==_?void 0:null===(C=_.includes)||void 0===C?void 0:C.map((e,l)=>(0,n.jsxs)("p",{className:"text-14 flex items-start gap-2 px-5 lg:px-0",children:[(0,n.jsx)(s.Z0,{className:"w-4 h-2.5 *:fill-black-9 flex-shrink-0 mt-1"}),(0,n.jsx)("span",{children:e})]},"includes-".concat(l)))]})]})});case"simple":return(0,n.jsx)("label",{className:(0,a.cn)("select-none cursor-pointer w-full max-w-[317px]",m),children:(0,n.jsx)("div",{className:(0,a.cn)("p-3 rounded-xl outline outline-1 outline-gray-56 hover:shadow-38 h-full",Number(N)==u.product_id&&"outline-2 outline-red-1 shadow-39",w&&"outline-red-1",g.disabled&&"pointer-events-none",S&&"shadow-39"),children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-start",children:[(0,n.jsx)(r.VC,{name:l,control:t,className:"mt-1",checked:Number(N)==u.product_id,onChange:e=>{j(e),f&&f()},...g}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("p",{className:"text-16 font-semibold",children:u.product_name}),u.product_description&&(0,n.jsx)("span",{className:"text-14 text-gray-5 mb-2",children:u.product_description})]})]}),(0,n.jsx)("p",{className:"text-24 font-bold flex-shrink-0",children:"".concat(null==b?void 0:b.currency_symbol_left," ").concat((0,a.az)(u.product_price,0))})]})})})}}},84516:(e,l,t)=>{"use strict";t.r(l),t.d(l,{OrderPanelSummary:()=>p});var n=t(38694),i=t(29432),o=t(48873),a=t(8256),r=t(2508),s=t(45734);let d=(0,s.memo)(e=>{let{open:l,children:t}=e;return(0,n.jsx)("div",{className:(0,r.cn)("grid transition-all duration-100",l?"mt-4 lg:mt-2":"overflow-hidden h-0 !pt-0 !border-none"),children:t})});d.displayName="OrderSummaryLine";let c=(0,s.memo)(e=>{let{chosenStateCode:l,chosenLegalEntity:t,chosenTypeOfService:o,isOrderReview:a}=e,{configOrder:c}=(0,s.useContext)(i.w_);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold whitespace-nowrap",a&&"lg:text-16"),children:null==c?void 0:c.lbl_order_type_of_service}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:(null==o?void 0:o.category_name)||"---"})]}),(0,n.jsx)(d,{open:!!l,children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold whitespace-nowrap",a&&"lg:text-16"),children:null==c?void 0:c.lbl_mp_state}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:"".concat(null==l?void 0:l.state_name,"-").concat(null==l?void 0:l.state_code.toUpperCase())})]})}),(0,n.jsx)(d,{open:!!t,children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold whitespace-nowrap",a&&"lg:text-16"),children:null==c?void 0:c.lbl_order_legal_entity}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:(null==t?void 0:t.legal_entity_name)||"---"})]})})]})});c.displayName="SummarySetupService";let u=(0,s.memo)(e=>{var l,t,c,u,m,_,v,p,x,h,f;let{isOrderReview:g,chosenProduct:b,chosenTrademarkUs:y,chosenProcessingTime:j,chosenAdditionalClass:N,chosenNomineeDirector:w,chosenNomineeShareholder:k,chosenTrademarkInternational:S}=e,{configOrder:C,currentCurrency:E}=(0,s.useContext)(i.w_),{orderStore:R}=(0,a.Fc)(),O=(0,s.useMemo)(()=>null==R?void 0:R.package_of_service,[null==R?void 0:R.package_of_service]),T=(0,s.useMemo)(()=>null==O?void 0:O.number_of_employee,[null==O?void 0:O.number_of_employee]),A=(0,s.useMemo)(()=>((null==b?void 0:b.product_category_id)==o.Rj3.PAYROLL?"".concat((0,r.az)(T,0)," ").concat(null==C?void 0:C.txt_employee):null==b?void 0:b.product_name)+((null==b?void 0:b.product_description)?" (".concat(null==b?void 0:b.product_description,")"):""),[b,T]),M=(0,s.useMemo)(()=>{let e=T?"".concat((0,r.az)(T,0)," x "):"";return e+((null==b?void 0:b.product_price)?"".concat(null==E?void 0:E.
1currency_symbol_left," ").concat((0,r.az)(null==b?void 0:b.product_price)):"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(0)))+((null==b?void 0:b.product_category_id)&&[o.Rj3.ACCOUNTING,o.Rj3.TAXATION].includes(null==b?void 0:b.product_category_id)?" (".concat(null==b?void 0:b.product_description_price,")"):"")},[b,T]),I=(0,s.useMemo)(()=>{var e,l;return(null==R?void 0:null===(e=R.start_business)||void 0===e?void 0:e.legal_entity_id)&&(null==b?void 0:b.product_type_id)==o.Vo0.SERVICE_FEE&&(null==b?void 0:b.product_legal_entity_id)==(null==R?void 0:null===(l=R.start_business)||void 0===l?void 0:l.legal_entity_id)},[b,null==R?void 0:null===(l=R.start_business)||void 0===l?void 0:l.legal_entity_id]);return(0,n.jsx)(d,{open:!!b||!!w||!!k||(null==O?void 0:O.is_united_states)==o.cSK.YES||(null==O?void 0:O.is_international)==o.cSK.YES,children:(0,n.jsxs)("div",{className:"grid",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",g&&"lg:text-16"),children:I?null==C?void 0:C.lbl_order_type_of_incorporation:null==C?void 0:C.lbl_package_of_services}),(0,n.jsx)(d,{open:!!b,children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14",I&&"font-bold"),children:A}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:M})]})}),(0,n.jsx)(d,{open:!!(null==b?void 0:b.product_gov_fee),children:!!(null==b?void 0:b.product_gov_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==C?void 0:C.txt_gov_fee}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==b?void 0:b.product_gov_fee))})]})}),(0,n.jsx)(d,{open:!!(null==b?void 0:b.product_deposit_fee),children:!!(null==b?void 0:b.product_deposit_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==C?void 0:C.txt_deposit_fee}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==b?void 0:b.product_deposit_fee))})]})}),(0,n.jsxs)(d,{open:!!j,children:[(0,n.jsxs)("p",{className:"text-14",children:[null==C?void 0:C.lbl_order_processing_time,":"]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"".concat(null==j?void 0:j.product_name," (").concat(null==j?void 0:j.product_description_price,")")}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==j?void 0:j.product_price))})]})]}),(0,n.jsx)(d,{open:!!(null==O?void 0:O.number_of_additional_class),children:N&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==N?void 0:N.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==O?void 0:O.number_of_additional_class)?"".concat(null==O?void 0:O.number_of_additional_class," x "):"")+"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==N?void 0:N.product_price))})]})}),(0,n.jsx)(d,{open:!!w&&!!(null==O?void 0:O.number_of_director),children:w&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==w?void 0:w.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==O?void 0:O.number_of_director)?"".concat(null==O?void 0:O.number_of_director," x "):"")+"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==w?void 0:w.product_price))})]})}),(0,n.jsx)(d,{open:!!k&&!!(null==O?void 0:O.number_of_shareholder),children:k&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==k?void 0:k.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==O?void 0:O.number_of_shareholder)?"".concat(null==O?void 0:O.number_of_shareholder," x "):"")+"".concat(null==E?void 0:E.
1currency_symbol_left," ").concat((0,r.az)(null==k?void 0:k.product_price))})]})}),(0,n.jsx)(d,{open:!!(null==b?void 0:null===(t=b.product_free_addon_info)||void 0===t?void 0:t.length),children:(0,n.jsx)("div",{className:"grid gap-2",children:null==b?void 0:null===(c=b.product_free_addon_info)||void 0===c?void 0:c.map(e=>(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:e.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:null==C?void 0:C.txt_free})]},e.product_id))})}),(0,n.jsxs)(d,{open:(null==O?void 0:O.is_united_states)==o.cSK.YES,children:[(0,n.jsxs)("div",{className:"mb-1 flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==C?void 0:C.txt_trademark,":")}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:null==C?void 0:C.txt_united_states})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(null==y?void 0:y.number_of_class_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==C?void 0:C.lbl_number_of_class}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:null==y?void 0:y.number_of_class_fee})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==y?void 0:null===(u=y.product)||void 0===u?void 0:u.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==y?void 0:null===(m=y.product)||void 0===m?void 0:m.product_price))})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==y?void 0:null===(_=y.register)||void 0===_?void 0:_.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==y?void 0:null===(v=y.register)||void 0===v?void 0:v.product_price))})]})]})]}),(0,n.jsxs)(d,{open:(null==O?void 0:O.is_international)==o.cSK.YES,children:[(0,n.jsxs)("div",{className:"mb-1 flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==C?void 0:C.txt_trademark,":")}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:null==C?void 0:C.txt_international})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(null==S?void 0:S.number_of_class_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==C?void 0:C.lbl_number_of_class}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:null==S?void 0:S.number_of_class_fee})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==S?void 0:null===(p=S.product)||void 0===p?void 0:p.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==S?void 0:null===(x=S.product)||void 0===x?void 0:x.product_price))})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==S?void 0:null===(h=S.register)||void 0===h?void 0:h.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==E?void 0:E.currency_symbol_left," ").concat((0,r.az)(null==S?void 0:null===(f=S.register)||void 0===f?void 0:f.product_price))})]})]})]})]})})});u.displayName="SummaryPackageService";let m=(0,s.memo)(e=>{var l,t,c,u,m,_,v,p,x,h,f,g,b,y,j,N,w,k,S;let{isOrderReview:C,chosenTrademarkUs:E,chosenRecommendPayroll:R,chosenRecommendNominee:O,chosenRecommendTaxation:T,chosenRecommendTrademark:A,chosenRecommendAccounting:M,chosenTrademarkInternational:I,chosenRecommendServiceOffice:P,chosenRecommendBusinessAccount:L,chosenRecommendMerchantAccount:F}=e,{configOrder:D,listTypeOfService:K,currentCurrency:B}=(0,s.useContext)(i.w_),{orderStore:G}=(0,a.Fc)(),U=(0,s.useMemo)(()=>null==G?void 0:G.recommend_service,[null==G?void 0:G.recommend_service]),Y=(0,s.useMemo)(()=>null==U?void 0:U.trademark,[null==U?void 0:U.trademark]),z=(0,s.useMemo)(()=>(null==U?void 0:U.is_trademark)==o.cSK.YES,[null==U?void 0:U.is_trademark]),H=(0,s.useMemo)(()=>(null==U?void 0:U.is_business_account)==o.cSK.YES,[null==U?void 0:U.is_business_account]),q=(0,s.useMemo)(()=>(null==U?void 0:U.is_bookkeeping)==o.cSK.YES,[null==U?void 0:U.is_bookkeeping]),V=(0,s.useMemo)(()=>(null==U?void 0:U.is_taxation)==o.cSK.YES,[null==U?void 0:U.is_taxation]),Z=(0,s.useMemo)(()=>(null==U?void 0:U.is_payroll)==o.cSK.YES,[null==U?void 0:U.is_payroll]),$=(0,s.useMemo)(()=>(null==U?void 0:U.is_nominee)==o.cSK.YES,[null==U?void 0:U.is_nominee]),W=(0,s.useMemo)(()=>(null==U?void 0:U.is_merchant_account)==o.cSK.YES,[null==U?void 0:U.is_merchant_account]),X=(0,s.useMemo)(()=>(null==U?void 0:U.is_service_office)==o.cSK.YES,[null==U?void 0:U.is_service_office]),J=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>[o.Rj3.TRADEMARK,o.Rj3.HK_TRADEMARK,o.Rj3.SG_TRADEMARK,o.Rj3.VN_TRADEMARK].includes(e.category_id)),[K]),Q=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>[o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT].includes(e.category_id)),[K]),ee=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>e.category_id==o.Rj3.ACCOUNTING),[K]),el=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>e.category_id==o.Rj3.TAXATION),[K]),et=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>e.category_id==o.Rj3.PAYROLL),[K]),en=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>[o.Rj3.HK_NOMINEE,o.Rj3.SG_NOMINEE].includes(e.category_id)),[K]),ei=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>[o.Rj3.HK_MERCHANT_ACCOUNT,o.Rj3.SG_MERCHANT_ACCOUNT].includes(e.category_id)),[K]),eo=(0,s.useMemo)(()=>null==K?void 0:K.find(e=>[o.Rj3.HK_SERVICE_OFFICE,o.Rj3.SG_SERVICE_OFFICE].includes(e.category_id)),[K]);return(0,n.jsx)(d,{open:$||Z||V||q||X||H||W||z,children:(0,n.jsxs)("div",{className:"grid",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",C&&"lg:text-16"),children:null==D?void 0:D.txt_order_recommend_services}),(0,n.jsxs)(d,{open:(null==Y?void 0:Y.is_united_states)==o.cSK.YES,children:[(0,n.jsxs)("div",{className:"mb-1 flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==J?void 0:J.category_name,":")}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==D?void 0:D.txt_united_states})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(null==E?void 0:E.number_of_class_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==D?void 0:D.lbl_number_of_class}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==E?void 0:E.number_of_class_fee})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==E?void 0:null===(l=E.product)||void 0===l?void 0:l.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==E?void 0:null===(t=E.product)||void 0===t?void 0:t.product_price))})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==E?void 0:null===(c=E.register)||void 0===c?void 0:c.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==E?void 0:null===(u=E.register)||void 0===u?void 0:u.product_price))})]})]})]}),(0,n.jsxs)(d,{open:(null==Y?void 0:Y.is_international)==o.cSK.YES,children:[(0,n.jsxs)("div",{className:"mb-1 flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==J?void 0:J.category_name,":")}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==D?void 0:D.txt_international})]}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(null==I?void 0:I.number_of_class_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==D?void 0:D.lbl_number_of_class}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==I?void 0:I.number_of_class_fee})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==I?void 0:null===(m=I.product)||void 0===m?void 0:m.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==I?void 0:null===(_=I.product)||void 0===_?void 0:_.product_price))})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==I?void 0:null===(v=I.register)||void 0===v?void 0:v.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==I?void 0:null===(p=I.register)||void 0===p?void 0:p.product_price))})]})]})]}),(0,n.jsxs)(d,{open:!!(null==A?void 0:A.product),children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==J?void 0:J.category_name,":")})}),(0,n.jsxs)("div",{className:"grid gap-2",children:[(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==A?void 0:null===(x=A.product)||void 0===x?void 0:x.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==A?void 0:null===(h=A.product)||void 0===h?void 0:h.product_price))})]}),!!(null==A?void 0:null===(f=A.product)||void 0===f?void 0:f.product_gov_fee)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==D?void 0:D.txt_gov_fee}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==A?void 0:null===(g=A.product)||void 0===g?void 0:g.product_gov_fee))})]}),!!(null==A?void 0:A.number_of_additional_class)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==A?void 0:null===(b=A.product_additional_class)||void 0===b?void 0:b.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==A?void 0:A.number_of_additional_class)?"".concat(null==A?void 0:A.number_of_additional_class," x "):"")+"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==A?void 0:null===(y=A.product_additional_class)||void 0===y?void 0:y.product_price))})]})]})]}),(0,n.jsxs)(d,{open:H,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==Q?void 0:Q.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==L?void 0:L.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==L?void 0:L.product_price))})]})]}),(0,n.jsxs)(d,{open:q,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==ee?void 0:ee.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==M?void 0:M.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==M?void 0:M.product_price))})]})]}),(0,n.jsxs)(d,{open:V,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==el?void 0:el.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==T?void 0:T.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==T?void 0:T.product_price))})]})]}),(0,n.jsxs)(d,{open:Z,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==et?void 0:et.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:"".concat((0,r.az)((null==R?void 0:R.number_of_employee)||0,0)," ").concat(null==D?void 0:D.txt_employee)}),(0,n.jsxs)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:[(null==R?void 0:R.number_of_employee)?"".concat((0,r.az)(null==R?void 0:R.number_of_employee,0)," x "):"","".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(Number(null==R?void 0:null===(j=R.product)||void 0===j?void 0:j.product_price)))]})]})]}),(0,n.jsxs)(d,{open:$,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==en?void 0:en.category_name,":")})}),!!(null==O?void 0:O.number_of_director)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2 mt-1",children:[(0,n.jsx)("p",{className:"text-14",children:null==O?void 0:null===(N=O.product_director)||void 0===N?void 0:N.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==O?void 0:O.number_of_director)?"".concat(null==O?void 0:O.number_of_director," x "):"")+"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==O?void 0:null===(w=O.product_director)||void 0===w?void 0:w.product_price))})]}),!!(null==O?void 0:O.number_of_shareholder)&&(0,n.jsxs)("div",{className:"flex justify-between gap-2 mt-1",children:[(0,n.jsx)("p",{className:"text-14",children:null==O?void 0:null===(k=O.product_shareholder)||void 0===k?void 0:k.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat((null==O?void 0:O.number_of_shareholder)?"".concat(null==O?void 0:O.number_of_shareholder," x "):"")+"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==O?void 0:null===(S=O.product_shareholder)||void 0===S?void 0:S.product_price))})]})]}),(0,n.jsxs)(d,{open:W,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==ei?void 0:ei.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==F?void 0:F.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==F?void 0:F.product_price))})]})]}),(0,n.jsxs)(d,{open:X,children:[(0,n.jsx)("div",{className:"mb-1 flex justify-between gap-2",children:(0,n.jsx)("p",{className:"text-14",children:"+ ".concat(null==eo?void 0:eo.category_name,":")})}),(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-14",children:null==P?void 0:P.product_name}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==B?void 0:B.currency_symbol_left," ").concat((0,r.az)(null==P?void 0:P.product_price))})]})]})]})})});m.displayName="SummaryRecommendService";var _=t(93220);let v=(0,s.memo)(e=>{var l,t,i,o,c,u,m,v,p,x;let{isOrderReview:h}=e,{configOrder:f}=(0,s.useContext)(_.w_),{orderStore:g}=(0,a.Fc)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d,{open:!!(null==g?void 0:null===(l=g.company_details)||void 0===l?void 0:l.number_of_manager),children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",h&&"lg:text-16"),children:n
1ull==f?void 0:f.lbl_number_of_manager}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==g?void 0:null===(t=g.company_details)||void 0===t?void 0:t.number_of_manager})]})}),(0,n.jsx)(d,{open:!!(null==g?void 0:null===(i=g.company_details)||void 0===i?void 0:i.number_of_member),children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",h&&"lg:text-16"),children:null==f?void 0:f.lbl_number_of_member}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==g?void 0:null===(o=g.company_details)||void 0===o?void 0:o.number_of_member})]})}),(0,n.jsx)(d,{open:!!(null==g?void 0:null===(c=g.company_details)||void 0===c?void 0:c.number_of_director),children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",h&&"lg:text-16"),children:null==f?void 0:f.lbl_number_of_director}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==g?void 0:null===(u=g.company_details)||void 0===u?void 0:u.number_of_director})]})}),(0,n.jsx)(d,{open:!!(null==g?void 0:null===(m=g.company_details)||void 0===m?void 0:m.number_of_shareholder),children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",h&&"lg:text-16"),children:null==f?void 0:f.lbl_number_of_shareholder}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==g?void 0:null===(v=g.company_details)||void 0===v?void 0:v.number_of_shareholder})]})}),(0,n.jsx)(d,{open:!!(null==g?void 0:null===(p=g.package_of_service)||void 0===p?void 0:p.number_of_employee),children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",h&&"lg:text-16"),children:null==f?void 0:f.lbl_number_of_employee}),(0,n.jsx)("p",{className:"text-14 font-bold text-right",children:null==g?void 0:null===(x=g.package_of_service)||void 0===x?void 0:x.number_of_employee})]})})]})});v.displayName="SummaryMemberShareholder";let p=(0,s.memo)(e=>{let{totalAll:l,stateFee:t,isOrderReview:_,chosenProduct:p,chosenStateCode:x,chosenLegalEntity:h,chosenTrademarkUs:f,chosenTypeOfService:g,chosenProcessingTime:b,chosenAdditionalClass:y,chosenNomineeDirector:j,chosenRecommendNominee:N,chosenRecommendPayroll:w,chosenRecommendTaxation:k,chosenNomineeShareholder:S,chosenRecommendTrademark:C,chosen
1RecommendAccounting:E,chosenTrademarkInternational:R,chosenRecommendServiceOffice:O,chosenRecommendBusinessAccount:T,chosenRecommendMerchantAccount:A}=e,{configOrder:M,orderID:I,step:P,currentCurrency:L}=(0,s.useContext)(i.w_),{orderStore:F}=(0,a.Fc)();return(!I||F)&&(P==o.DHf.STEP_START_BUSINESS||F)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"py-4 lg:py-2 grid first:*:border-none first:*:pt-0 *:border-t *:border-dashed *:border-gray-23 *:pt-4 lg:*:pt-2",children:[(0,n.jsx)(c,{isOrderReview:_,chosenStateCode:x,chosenLegalEntity:h,chosenTypeOfService:g}),(0,n.jsx)(u,{isOrderReview:_,chosenProduct:p,chosenTrademarkUs:f,chosenProcessingTime:b,chosenNomineeDirector:j,chosenAdditionalClass:y,chosenNomineeShareholder:S,chosenTrademarkInternational:R}),(0,n.jsx)(d,{open:!!t,children:(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsx)("p",{className:(0,r.cn)("text-14 font-bold",_&&"lg:text-16"),children:null==M?void 0:M.lbl_states_fee}),(0,n.jsx)("p",{className:"text-14 font-bold text-right flex-shrink-0",children:"".concat(null==L?void 0:L.currency_symbol_left," ").concat((0,r.az)(t))})]})}),(0,n.jsx)(v,{isOrderReview:_}),(0,n.jsx)(m,{isOrderReview:_,chosenTrademarkUs:f,chosenRecommendPayroll:w,chosenRecommendNominee:N,chosenRecommendTaxation:k,chosenRecommendTrademark:C,chosen
1RecommendAccounting:E,chosenTrademarkInternational:R,chosenRecommendServiceOffice:O,chosenRecommendBusinessAccount:T,chosenRecommendMerchantAccount:A})]}),(0,n.jsxs)("div",{className:(0,r.cn)("py-4 lg:pt-3 border-t border-gray-23 flex justify-between items-center gap-4 sticky bottom-0 bg-white z-[1]",_&&"pb-0"),children:[(0,n.jsx)("p",{className:"text-18 lg:text-24 font-bold",children:null==M?void 0:M.txt_order_total}),(0,n.jsx)("p",{className:"text-18 font-bold",children:"".concat(null==L?void 0:L.currency_symbol_left," ").concat((0,r.az)(l))})]})]}):(0,n.jsx)(i.eI,{number:4})});p.displayName="OrderPanelSummary"},87143:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepAiHelper:()=>C});var n=t(38694),i=t(68615),o=t(93220),a=t(48873),r=t(8256),s=t(45734),d=t(64646),c=t(69054),u=t(2508),m=t(94674),_=t(83924),v=t(81415),p=t(20361),x=t(74323),h=t(29722),f=t(46561);let g=(0,s.forwardRef)(function(e,l){var t,i,g,b,y,j;(0,s.useImperativeHandle)(l,()=>({onSubmit:q,onBack:Z}));let N=(0,p.getCookie)(a.Avz.IP),{isLoading:w,configOrder:k,listNationality:S,listTaxPurposes:C,listOtherDemands:E,errors:R,listBusinessActivities:O,setIsLoading:T,handleBackStep:A,updateContextValue:M,handleChangeStepAiHelper:I}=(0,s.useContext)(o.w_),{orderStore:P,clearOrderStore:L,updateAiRecommendation:F}=(0,r.Fc)(),D=(0,s.useMemo)(()=>{var e;return null==P?void 0:null===(e=P.ai_recommendation)||void 0===e?void 0:e.ai_request},[null==P?void 0:null===(t=P.ai_recommendation)||void 0===t?void 0:t.ai_request]),{reset:K,trigger:B,setError:G,register:U,getValues:Y,control:z,formState:{errors:H}}=(0,h.mN)({mode:"onChange",resolver:(0,_.t)((0,u.Zb)(k))}),q=(0,s.useCallback)(async()=>{var e,l,t,n;if(w||!await B())return;T(!0);let i=await (0,u.Ji)(),o={order_id:null==P?void 0:P.order_id,business_activity_id:Number(Y("business_activity_id")),owner_nationality_code:null===(e=Y("owner_nationality_code"))||void 0===e?void 0:e.value,tax_purposes_id:Number(null===(l=Y("tax_purposes_id"))||void 0===l?void 0:l.value),other_demand_ids:null===(n=Y("other_demand_ids"))||void 0===n?void 0:null===(t=n.filter(Boolean))||void 0===t?void 0:t.map(e=>Number(e)),description:Y("description"),ip:N,gRecaptchaToken:i,url:window.location.href},a=await d.xN.submitUnderstandYourNeed(o),r=(0,d.jN)(a);if(!(null==a?void 0:a.success)&&(f.oR.error((null==a?void 0:a.message)||(null==k?void 0:k.txt_toaster_failed_common)),r&&M({errors:r}),(null==a?void 0:a.statusCode)==u.kG.NotFound)){L(),window.location.reload();return}(null==a?void 0:a.data)&&V(null==a?void 0:a.data),T(!1)},[]),V=(0,s.useCallback)(e=>{var l,t,n,i;T(!1),M({errors:{}}),I(a.qqs.STEP_RECOMMENDATIONS_AI),F({ai_request:{business_activity_id:Number(Y("business_activity_id")),owner_nationality_code:null===(l=Y("owner_nationality_code"))||void 0===l?void 0:l.value,tax_purposes_id:Number(null===(t=Y("tax_purposes_id"))||void 0===t?void 0:t.value),other_demand_ids:null===(i=Y("other_demand_ids"))||void 0===i?void 0:null===(n=i.filter(Boolean))||void 0===n?void 0:n.map(e=>Number(e)),description:Y("description")},ai_description:null==e?void 0:e.ai_description,ai_why_choose_package:null==e?void 0:e.ai_why_choose_package,items:null==e?void 0:e.items})},[]),Z=(0,s.useCallback)(async()=>{A(),F({ai_request:void 0})},[]),$=(0,s.useCallback)(()=>{var e;F({ai_request:{...D,owner_nationality_code:null===(e=Y("owner_nationality_code"))||void 0===e?void 0:e.value}})},[D]),W=(0,s.useCallback)(()=>{var e;F({ai_request:{...D,tax_purposes_id:Number(null===(e=Y("tax_purposes_id"))||void 0===e?void 0:e.value)}})},[D]);return(0,c.VT)(G,R),(0,s.useEffect)(()=>(M({isSummaryPanel:!0,isSummaryAiHelper:!0,btnNext:a.w8x.RECOMMENDATION}),D&&K({business_activity_id:null==D?void 0:D.business_activity_id,owner_nationality_code:null==S?void 0:S.find(e=>e.value===(null==D?void 0:D.owner_nationality_code)),tax_purposes_id:null==C?void 0:C.find(e=>e.value===String(null==D?void 0:D.tax_purposes_id)),other_demand_ids:null==D?void 0:D.other_demand_ids,description:null==D?void 0:D.description}),()=>{M({btnNext:a.w8x.NEXT})}),[]),(0,n.jsxs)("div",{className:"flex flex-col gap-2 lg:gap-10 lg:p-8 lg:bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsxs)("div",{className:"py-5 px-4 bg-white lg:p-0",children:[(0,n.jsx)("p",{className:"mb-5",children:null==k?void 0:k.txt_order_understand_your_need_des}),(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==k?void 0:k.txt_order_title_business_activities}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center lg:justify-start gap-3 lg:gap-6 mt-5",children:(0,n.jsx)(h.xI,{control:z,name:"business_activity_id",render:e=>{let{field:l}=e;return(0,n.jsx)(n.Fragment,{children:null==O?void 0:O.map(e=>(0,n.jsxs)("label",{className:(0,u.cn)("w-full max-w-[165px] lg:max-w-[200px] h-[93px] lg:h-[110px] cursor-pointer select-none",w&&"pointer-events-none"),children:[(0,n.jsx)("input",{hidden:!0,type:"radio",disabled:w,value:e.ai_ba_id,checked:l.value===e.ai_ba_id,onChange:()=>{l.onChange(e.ai_ba_id),F({ai_request:{...D,business_activity_id:e.ai_ba_id}})}}),(0,n.jsxs)("div",{className:(0,u.cn)("flex flex-col items-center justify-center w-full h-full rounded-lg outline outline-1 outline-gray-23 p-1 lg:p-5 transition-all duration-300",l.value===e.ai_ba_id?"outline-2 outline-primary shadow-42":"hover:shadow-42 hover:outline-white"),children:[(0,n.jsx)(x.default,{width:24,height:24,src:e.ai_ba_icon||"/",alt:e.ai_ba_name||"/",title:e.ai_ba_name||"/"}),(0,n.jsx)("span",{className:"mt-2 text-sm text-center font-medium",children:e.ai_ba_name})]})]},e.ai_ba_id))})}})}),(null==H?void 0:null===(i=H.business_activity_id)||void 0===i?void 0:i.message)&&(0,n.jsx)("p",{className:"text-sm text-red-1",children:null==H?void 0:null===(g=H.business_activity_id)||void 0===g?void 0:g.message})]}),(0,n.jsxs)("div",{className:"py-5 px-4 bg-white lg:p-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==k?void 0:k.txt_order_title_about_your_business}),(0,n.jsxs)("div",{className:"mt-5 grid grid-cols-1 lg:grid-cols-2 gap-5",children:[(0,n.jsx)(m.$k,{control:z,isShowPlaceholder:!0,isDisabled:w,option:S,classNameError:"text-xs",id:"owner_nationality_code",name:"owner_nationality_code",onSelect:$,placeholder:null==k?void 0:k.txt_order_nationalitty_plc,nameLabel:null==k?void 0:k.txt_order_owner_nationality_label}),(0,n.jsx)(m.$k,{control:z,isShowPlaceholder:!0,id:"tax_purposes_id",name:"tax_purposes_id",
1isDisabled:w,classNameError:"text-xs",option:C,onSelect:W,placeholder:null==k?void 0:k.txt_please_select,nameLabel:null==k?void 0:k.txt_order_tax_purpose_label})]})]}),(0,n.jsxs)("div",{className:"py-5 px-4 bg-white lg:p-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==k?void 0:k.txt_order_title_other_demands}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center lg:justify-start gap-3 lg:gap-6 mt-5",children:(0,n.jsx)(h.xI,{control:z,name:"other_demand_ids",render:e=>{let{field:l}=e;return(0,n.jsx)(n.Fragment,{children:null==E?void 0:E.map(e=>{let t=Array.isArray(l.value)&&l.value.includes(e.ai_od_id);return(0,n.jsxs)("label",{className:(0,u.cn)("w-full max-w-[165px] lg:max-w-[200px] h-[93px] lg:h-[110px] cursor-pointer select-none",w&&"pointer-events-none"),children:[(0,n.jsx)("input",{hidden:!0,type:"checkbox",checked:t,disabled:w,value:e.ai_od_id,onChange:t=>{let n=l.value||[];if(t.target.checked){let t=[...n,e.ai_od_id];l.onChange(t),F({ai_request:{...D,other_demand_ids:t}})}else{let t=null==n?void 0:n.filter(l=>l!==e.ai_od_id);l.onChange(t),F({ai_request:{...D,other_demand_ids:t}})}}}),(0,n.jsxs)("div",{className:(0,u.cn)("flex flex-col items-center justify-center w-full h-full rounded-lg outline outline-1 outline-gray-23 p-1 lg:p-5 transition-all duration-300",t?"outline-2 outline-primary shadow-42":"hover:shadow-42 hover:outline-white"),children:[(0,n.jsx)(x.default,{width:24,height:24,src:e.ai_od_icon||"/",alt:e.ai_od_name||"/",title:e.ai_od_name||"/"}),(0,n.jsx)("span",{className:"mt-2 text-sm text-center font-medium",children:e.ai_od_name})]})]},e.ai_od_id)})})}})}),(null==H?void 0:null===(b=H.other_demand_ids)||void 0===b?void 0:b.message)&&(0,n.jsx)("p",{className:"text-sm text-red-1",children:null==H?void 0:null===(y=H.other_demand_ids)||void 0===y?void 0:y.message}),(0,n.jsx)(m.fs,{maxLength:1e3,isCountMaxLength:!0,disabled:w,className:"mt-5 lg:mt-10",classNameInput:"h-[135px]",...U("description"),placeholder:null==k?void 0:k.txt_order_briefly_describe_plc,nameLabel:null==k?void 0:k.txt_order_briefly_describe_label,errorMessage:null==H?void 0:null===(j=H.description)||void 0===j?void 0:j.message,onChange:e=>{F({ai_request:{...D,description:e.target.value}})}}),(0,n.jsx)("div",{className:(0,u.cn)("grid transition-all duration-300",w?"mt-5 lg:mt-10":"h-0 overflow-hidden"),children:(0,n.jsx)("div",{className:"p-3 rounded-xl border border-blue-14 bg-gradient-blue-3",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)(v.GL,{loop:!0,autoplay:!0,style:{width:64,height:60,flexShrink:0},src:"https://lottie.host/73c2e197-a1a6-43cb-93fa-2d288cd79ef8/0KoSXWqUHq.lottie"}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("span",{className:"font-medium text-blue-15 items-center gap-2 inline-flex",children:[(0,n.jsx)(x.default,{width:16,height:16,alt:null==k?void 0:k.txt_ai_loading,title:null==k?void 0:k.txt_ai_loading,src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-ai-loading-1762243501.svg"}),null==k?void 0:k.txt_ai_loading]}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-14 text-gray-5",children:null==k?void 0:k.txt_ai_loading_des})]})]})})})]})]})});var b=t(42500),y=t(6280);let j=(0,s.memo)(()=>{let{configOrder:e,isLoading:l}=(0,s.useContext)(o.w_),[t,i]=(0,s.useState)(!1),[a,r]=(0,s.useState)(!1),d=(0,s.useCallback)(()=>{i(e=>!e)},[]),c=(0,s.useCallback)(()=>{r(e=>!e)},[]);return(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(N,{handleOpenPopupEdit:c}),(0,n.jsxs)("div",{className:"p-4 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary cursor-pointer select-none",onClick:d,children:null==e?void 0:e.txt_order_title_ai_summary}),(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[t&&(0,n.jsxs)("button",{disabled:l,onClick:c,className:"rounded-lg border border-gray-56 flex items-center gap-1 px-2 py-1 select-none",children:[(0,n.jsx)(x.default,{width:12,height:12,alt:null==e?void 0:e.txt_edit,title:null==e?void 0:e.txt_edit,src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-ai-edit-1762245732.svg"}),(0,n.jsx)("p",{className:"text-14",children:null==e?void 0:e.txt_edit})]}),(0,n.jsx)(b.Kn,{className:(0,u.cn)("*:fill-black w-5 h-5 flex-shrink-0 transition-all duration-300 cursor-pointer",t&&"rotate-180"),onClick:d})]})]}),(0,n.jsx)("div",{className:(0,u.cn)("grid transition-all duration-300",t?"mt-1":"h-0 overflow-hidden"),children:(0,n.jsx)(y.b,{})})]})]})});j.displayName="YourSelectionSummary";let N=(0,s.memo)(e=>{var l,t,i,v;let{handleOpenPopupEdit:x}=e,{isLoading:g,configOrder:y,listTaxPurposes:j,listNationality:N,listOtherDemands:w,errors:k,listBusinessActivities:S,setIsLoading:C,updateContextValue:E}=(0,s.useContext)(o.w_),R=(0,p.getCookie)(a.Avz.IP),{orderStore:O,clearOrderStore:T,updateAiRecommendation:A}=(0,r.Fc)(),M=(0,s.useMemo)(()=>{var e;return null==O?void 0:null===(e=O.ai_recommendation)||void 0===e?void 0:e.ai_request},[null==O?void 0:null===(l=O.ai_recommendation)||void 0===l?void 0:l.ai_request]),{reset:I,setError:P,register:L,getValues:F,handleSubmit:D,control:K,formState:{errors:B}}=(0,h.mN)({mode:"onChange",resolver:(0,_.t)((0,u.r9)(y))}),G=(0,s.useCallback)(D(async()=>{var e,l,t,n,i;C(!0);let o=await (0,u.Ji)(),a={order_id:null==O?void 0:O.order_id,business_activity_id:Number(null===(e=F("business_activity_id"))||void 0===e?void 0:e.value),owner_nationality_code:null===(l=F("owner_nationality_code"))||void 0===l?void 0:l.value,tax_purposes_id:Number(null===(t=F("tax_purposes_id"))||void 0===t?void 0:t.value),other_demand_ids:null===(i=F("other_demand_ids"))||void 0===i?void 0:null===(n=i.filter(
1Boolean))||void 0===n?void 0:n.map(e=>Number(e)),description:F("description"),ip:R,gRecaptchaToken:o,url:window.location.href},r=await d.xN.submitUnderstandYourNeed(a),s=(0,d.jN)(r);if(!(null==r?void 0:r.success)&&(f.oR.error((null==r?void 0:r.message)||(null==y?void 0:y.txt_toaster_failed_common)),s&&E({errors:s}),(null==r?void 0:r.statusCode)==u.kG.NotFound)){T(),window.location.reload();return}(null==r?void 0:r.data)&&U(null==r?void 0:r.data),C(!1)}),[]),U=(0,s.useCallback)(e=>{var l,t,n,i,o;C(!1),E({errors:{}}),A({ai_request:{business_activity_id:Number(null===(l=F("business_activity_id"))||void 0===l?void 0:l.value),owner_nationality_code:null===(t=F("owner_nationality_code"))||void 0===t?void 0:t.value,tax_purposes_id:Number(null===(n=F("tax_purposes_id"))||void 0===n?void 0:n.value),other_demand_ids:null===(o=F("other_demand_ids"))||void 0===o?void 0:null===(i=o.filter(Boolean))||void 0===i?void 0:i.map(e=>Number(e)),description:F("description")},ai_description:null==e?void 0:e.ai_description,ai_why_choose_package:null==e?void 0:e.ai_why_choose_package,items:null==e?void 0:e.items}),x()},[]);return(0,c.VT)(P,k),(0,s.useEffect)(()=>{let e=document.querySelector("body"),l=document.querySelector(".chat-salesforce-img"),t=document.getElementById("popup-chat-now"),n=document.getElementById("icon-what-app");return null==e||e.classList.add("overflow-hidden"),null==l||l.classList.add("hidden"),null==t||t.classList.add("hidden"),null==n||n.classList.add("hidden"),I({business_activity_id:null==S?void 0:S.find(e=>e.value===String(null==M?void 0:M.business_activity_id)),owner_nationality_code:null==N?void 0:N.find(e=>e.value===(null==M?void 0:M.owner_nationality_code)),tax_purposes_id:null==j?void 0:j.find(e=>e.value===String(null==M?void 0:M.tax_purposes_id)),other_demand_ids:null==M?void 0:M.other_demand_ids,description:null==M?void 0:M.description}),()=>{null==e||e.classList.remove("overflow-hidden"),null==l||l.classList.remove("hidden"),null==t||t.classList.remove("hidden"),null==n||n.classList.remove("hidden")}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,u.cn)("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[4] w-full max-w-[1016px] p-4"),children:(0,n.jsxs)("div",{className:"bg-white rounded-[14px] max-h-[80dvh] overflow-y-auto no-scrollbar p-3 lg:p-8",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==y?void 0:y.txt_order_title_ai_summary}),(0,n.jsx)(b.gW,{onClick:x,className:(0,u.cn)("cursor-pointer w-5 h-5 scale-[2.5]",g&&"pointer-events-none")})]}),(0,n.jsxs)("div",{className:"first:*:border-none first:*:pt-0 *:border-t *:border-gray-23 *:py-4 mt-3",children:[(0,n.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:(0,n.jsx)(m.$k,{control:K,isS
1howPlaceholder:!0,isDisabled:g,classNameError:"text-xs",id:"business_activity_id",name:"business_activity_id",option:S,placeholder:null==y?void 0:y.txt_please_select,nameLabel:null==y?void 0:y.txt_business_activity})}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[(0,n.jsx)(m.$k,{control:K,isShowPlaceholder:!0,isDisabled:g,option:N,classNameError:"text-xs",id:"owner_nationality_code",name:"owner_nationality_code",placeholder:null==y?void 0:y.txt_please_select,nameLabel:null==y?void 0:y.txt_order_owner_nationality_label}),(0,n.jsx)(m.$k,{control:K,isShowPlaceholder:!0,id:"tax_purposes_id",name:"tax_purposes_id",isDisabled:g,classNameError:"text-xs",option:j,placeholder:null==y?void 0:y.txt_please_select,nameLabel:null==y?void 0:y.txt_order_tax_purpose_label})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==y?void 0:y.txt_order_title_other_demands}),(0,n.jsx)("div",{className:"flex flex-wrap gap-3",children:(0,n.jsx)(h.xI,{control:K,name:"other_demand_ids",render:e=>{let{field:l}=e;return(0,n.jsx)(n.Fragment,{children:null==w?void 0:w.map(e=>{let t=Array.isArray(l.value)&&l.value.includes(e.ai_od_id);return(0,n.jsxs)("label",{className:(0,u.cn)("cursor-pointer select-none",g&&"pointer-events-none"),children:[(0,n.jsx)("input",{hidden:!0,type:"checkbox",checked:t,disabled:g,value:e.ai_od_id,onChange:t=>{let n=l.value||[];if(t.target.checked){let t=[...n,e.ai_od_id];l.onChange(t)}else{let t=null==n?void 0:n.filter(l=>l!==e.ai_od_id);l.onChange(t)}}}),(0,n.jsx)("p",{className:(0,u.cn)("rounded-md outline outline-1 outline-gray-62 w-fit p-2 text-12 font-medium",t&&"outline-primary shadow-42"),children:e.ai_od_name})]},e.ai_od_id)})})}})}),(null==B?void 0:null===(t=B.other_demand_ids)||void 0===t?void 0:t.message)&&(0,n.jsx)("p",{className:"text-sm text-red-1",children:null==B?void 0:null===(i=B.other_demand_ids)||void 0===i?void 0:i.message})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==y?void 0:y.txt_business_description}),(0,n.jsx)(m.fs,{maxLength:1e3,disabled:g,classNameInput:"h-[135px]",...L("description"),errorMessage:null==B?void 0:null===(v=B.description)||void 0===v?void 0:v.message,placeholder:null==y?void 0:y.txt_order_briefly_describe_plc})]})]}),(0,n.jsxs)("div",{className:"flex justify-between gap-5 mt-4",children:[(0,n.jsx)(m.$n,{variant:"none",disabled:g,onClick:x,className:"w-full max-w-[148px] h-[54px] bg-gray-10 font-semibold gap-2",children:null==y?void 0:y.txt_cancel}),(0,n.jsx)(m.$n,{variant:"none",onClick:G,disabled:g,isLoading:g,className:"w-full min-w-[187px] max-w-[272px] h-[54px] font-semibold text-white bg-red-1",children:null==y?void 0:y.btn_generate_ai})]})]})}),(0,n.jsx)("div",{onClick:x,className:"fixed top-0 left-0 w-dvw h-dvh bg-black-17 z-[3]"})]})});N.displayName="PopupEditSelectionAi";let w=(0,s.memo)((0,s.forwardRef)(function(e,l){var t,i,v,p,g,y;(0,s.useImperativeHandle)(l,()=>({onSubmit:W,onBack:J}));let{isLoading:N,configOrder:w,currentCurrency:k,listTypeOfService:S,errors:C,setIsLoading:E,handleNextStep:R,updateContextValue:O,handleChangeStepAiHelper:T}=(0,s.useContext)(o.w_),{orderStore:A,clearOrderStore:M,updateOrderStore:I,updatePackageStore:P,updateAiRecommendation:L,updateStartBusinessStore:F}=(0,r.Fc)(),[D,K]=(0,s.useState)(),B=(0,s.useMemo)(()=>{var e;return(null==A?void 0:null===(e=A.ai_recommendation)||void 0===e?void 0:e.recommend_ai)||[]},[null==A?void 0:null===(t=A.ai_recommendation)||void 0===t?void 0:t.recommend_ai]),G=(0,s.useMemo)(()=>{var e;return null==A?void 0:null===(e=A.ai_recommendation)||void 0===e?void 0:e.items},[null==A?void 0:null===(i=A.ai_recommendation)||void 0===i?void 0:i.items]),U=(0,s.useMemo)(()=>{var e;return null==A?void 0:null===(e=A.ai_recommendation)||void 0===e?void 0:e.ai_description},[null==A?void 0:null===(v=A.ai_recommendation)||void 0===v?void 0:v.ai_description]),Y=(0,s.useMemo)(()=>{var e;return null==A?void 0:null===(e=A.ai_recommendation)||void 0===e?void 0:e.ai_why_choose_package},[null==A?void 0:null===(p=A.ai_recommendation)||void 0===p?void 0:p.ai_why_choose_package]),{watch:z,trigger:H,setError:q,getValues:V,control:Z,formState:{errors:$}}=(0,h.mN)({mode:"onChange",resolver:(0,_.t)((0,u.tS)(w))}),W=(0,s.useCallback)(async()=>
1{if(N)return;if(!await H()){f.oR.error(null==w?void 0:w.txt_mp_review_correct_fields);return}E(!0);let e=await (0,u.Ji)(),[l,t,n]=String(V("product_id")).split("-"),i={order_id:null==A?void 0:A.order_id,product_id:Number(l),jurisdiction_state_code:"null"!=t?null==t?void 0:t.toLowerCase():void 0,legal_entity_id:Number(n),is_customize:a.cSK.NO,gRecaptchaToken:e,url:window.location.href},o=await d.xN.submitAiRecommendation(i),r=(0,d.jN)(o);if(!(null==o?void 0:o.success)&&(f.oR.error((null==o?void 0:o.message)||(null==w?void 0:w.txt_toaster_failed_common)),r&&O({errors:r}),(null==o?void 0:o.statusCode)==u.kG.NotFound)){M(),window.location.reload();return}(null==o?void 0:o.data)&&X(null==o?void 0:o.data),E(!1)},[]),X=(0,s.useCallback)(e=>{R(),E(!1),O({errors:{}}),I({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code});let[l,t,n]=String(V("product_id")).split("-");P({product_id:Number(l)}),F({jurisdiction_state_code:"null"!=t?null==t?void 0:t.toLowerCase():void 0,legal_entity_id:Number(n)})},[]),J=(0,s.useCallback)(async()=>{F({jurisdiction_state_code:void 0,legal_entity_id:void 0}),T(a.qqs.STEP_UNDERSTAND_YOUR_NEED)},[]),Q=(0,s.useCallback)(()=>{T(a.qqs.STEP_CUSTOMIZE_PACKAGE)},[]),ee=(0,s.useCallback)(e=>{let[l,t,n]=String(V("product_id")).split("-");(Number(l)!=(null==e?void 0:e.product_id)||Number(n)!=(null==e?void 0:e.legal_entity_id)||t!=(null==e?void 0:e.jurisdiction_state_code))&&(K(null==e?void 0:e.recommended_services),P({product_id:Number(l)}),L({recommend_ai:[]}))},[D]);return(0,c.VT)(q,C),(0,s.useEffect)(()=>((null==G?void 0:G.length)||O({isNextBtn:!1}),O({isSummaryPanel:!1}),()=>{O({isNextBtn:!0})}),[]),(0,s.useEffect)(()=>{K(void 0)},[G]),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(j,{}),(0,n.jsxs)("div",{className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33 mt-2 lg:mt-10",children:[(0,n.jsxs)("div",{className:"w-full rounded-[10px] bg-gray-37 p-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(x.default,{width:32,height:32,alt:null==w?void 0:w.txt_our_recommendation,title:null==w?void 0:w.txt_our_recommendation,className:"w-6 h-6 lg:w-8 lg:h-8",src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-our-recommendation-1762309410.svg"}),(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==w?void 0:w.txt_our_recommendation})]}),(0,n.jsx)("p",{className:"text-14 mt-3 [&_span]:text-red-1 [&_span]:font-bold",dangerouslySetInnerHTML:{__html:U||""}}),(0,n.jsxs)("div",{className:"bg-white rounded-xl p-3 text-14 mt-5",children:[(0,n.jsx)("p",{className:"font-medium",children:null==w?void 0:w.txt_why_package_suits}),(0,n.jsx)("ul",{className:"grid gap-2 mt-2",children:null==Y?void 0:Y.map((e,l)=>(0,n.jsxs)("li",{className:"flex gap-2 items-start",children:[(0,n.jsx)(x.default,{width:12,height:20,alt:e,title:e,src:"https://d21l9vkgwnizti.cloudfront.net/uploads/icon-suitable-1762308734.svg"}),(0,n.jsx)("p",{children:e})]},"why-suitable-".concat(l)))})]})]}),(null==G?void 0:G.length)?(0,n.jsxs)("div",{className:"mt-5 lg:mt-10",children:[(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 py-2.5 lg:px-[133px]",children:null==G?void 0:G.map(e=>{var l;return(0,n.jsxs)("label",{className:(0,u.cn)("flex flex-col gap-1 w-full h-full cursor-pointer select-none p-5 rounded-xl outline outline-1 outline-gray-23 hover:shadow-38",(null==e?void 0:e.is_most_popular)&&"bg-gradient-red-11",String(z("product_id"))=="".concat(null==e?void 0:e.product_id,"-").concat(null==e?void 0:e.jurisdiction_state_code,"-").concat(null==e?void 0:e.legal_entity_id)&&"outline-2 outline-red-1",N&&"pointer-events-none"),onClick:()=>ee(e),children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(m.VC,{name:"product_id",control:Z,disabled:N,value:"".concat(null==e?void 0:e.product_id,"-").concat(null==e?void 0:e.jurisdiction_state_code,"-").concat(null==e?void 0:e.legal_entity_id)}),(0,n.jsx)("p",{className:"text-16 font-semibold",children:null==e?void 0:e.product_name}),(null==e?void 0:e.is_most_popular)&&(0,n.jsx)("p",{className:"px-3 py-1 rounded text-11 text-red-1 font-medium bg-red-21 ml-auto",children:null==w?void 0:w.txt_order_most_popular})]}),(null==e?void 0:e.is_most_popular)&&(0,n.jsx)("p",{className:"text-red-1 font-bold text-sm lg:text-md",children:null==w?void 0:w.txt_order_recommend_by_our_experts}),(0,n.jsx)("p",{className:(0,u.cn)("font-semibold",(null==e?void 0:e.is_most_popular)&&"text-14 font-normal"),children:null==e?void 0:e.highlights}),(0,n.jsx)("ul",{className:"grid gap-2 mt-1 mb-2",children:null==e?void 0:null===(l=e.features)||void 0===l?void 0:l.map((e,l)=>(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)(b.Z0,{className:"w-[15px] h-2.5 *:fill-black mt-1 flex-shrink-0"}),(0,n.jsx)("p",{className:"text-14",children:e})]},"feature-".concat(l)))}),(0,n.jsxs)("div",{className:"mt-auto flex items-start gap-2",children:[(0,n.jsx)("p",{className:"text-36 font-bold",children:"".concat(null==k?void 0:k.currency_symbol_left," ").concat((0,u.az)(null==e?void 0:e.product_price,0))}),(null==e?void 0:e.jurisdiction_state_code)&&(0,n.jsx)("span",{className:"text-14 text-gray-5 mt-2",children:null==w?void 0:w.txt_ai_price_des})]})]},"product-".concat(null==e?void 0:e.product_id,"-").concat(null==e?void 0:e.jurisdiction_state_code,"-").concat(null==e?void 0:e.legal_entity_id))})}),(null===(g=$.product_id)||void 0===g?void 0:g.message)&&(0,n.jsx)("p",{className:"text-sm text-red-1",children:null===(y=$.product_id)||void 0===y?void 0:y.message})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-14 text-center [&_span]:font-semibold px-5 sm:px-0",dangerouslySetInnerHTML:{__html:(null==w?void 0:w.txt_order_ai_not_result)||""}}),(0,n.jsx)(x.default,{width:170,height:169,className:"mt-5 mx-auto",alt:null==w?void 0:w.txt_order_title_choose_your_incorporation,title:null==w?void 0:w.txt_order_title_choose_your_incorporation,src:"https://d21l9vkgwnizti.cloudfront.net/uploads/ai-no-data-1761357660.svg"})]}),(0,n.jsx)("div",{className:"mt-5 lg:px-[133px]",children:(0,n.jsxs)("div",{onClick:Q,className:"flex justify-between items-center gap-4 pt-3 cursor-pointer",children:[(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsx)(b.L6,{}),(0,n.jsx)("p",{className:"font-semibold",children:null==w?void 0:w.txt_order_customize_your_incorporation})]}),(0,n.jsx)(b.qT,{className:"flex-shrink-0 rotate-180 transition-all duration-300"})]})})]}),(0,n.jsxs)("div",{className:(0,u.cn)("grid transition-all duration-300",(null==D?void 0:D.length)?"mt-2 lg:mt-10 py-5 lg:p-8 bg-white lg:rounded-xl lg:shadow-33":"h-0 overflow-hidden"),children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary lg:text-center px-4 lg:px-0",children:null==w?void 0:w.txt_order_title_recommended_addon}),(0,n.jsx)("div",{className:"py-3 lg:py-0 lg:mt-5 flex sm:grid sm:grid-cols-2 gap-5 px-4 lg:px-[133px] overflow-auto lg:overflow-visible no-scrollbar",children:null==D?void 0:D.map((e,l)=>{var t;let i=null==S?void 0:S.find(l=>l.category_id==(null==e?void 0:e.product_category_id));return(0,n.jsxs)("label",{className:(0,u.cn)("flex flex-col gap-1 w-fit min-w-[280px] sm:w-full flex-shrink-0 h-full cursor-pointer select-none p-5 rounded-xl outline outline-1 outline-gray-23 hover:shadow-38",(null==e?void 0:e.is_top_pick)&&"bg-gradient-red-11",(null==B?void 0:B.includes(null==e?void 0:e.product_id))&&"outline-2 outline-red-1",N&&"pointer-events-none"),children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(m.VC,{type:"checkbox",control:Z,disabled:N,value:String(null==e?void 0:e.product_id),name:"recommend_service.".concat(l),checked:null==B?void 0:B.includes(null==e?void 0:e.product_id),handleOnChange:()=>{L({recommend_ai:(null==B?void 0:B.includes(null==e?void 0:e.product_id))?B.filter(l=>l!==(null==e?void 0:e.product_id)):[...B||[],null==e?void 0:e.product_id]})}}),(0,n.jsx)("p",{className:"text-16 font-semibold",children:null==i?void 0:i.category_name}),(null==e?void 0:e.is_top_pick)&&(0,n.jsx)("p",{className:"px-3 py-1 rounded text-12 text-red-1 font-medium bg-red-21 ml-auto",children:null==w?void 0:w.txt_order_our_yop_pick})]}),(0,n.jsx)("p",{className:"text-36 font-bold",children:"".concat(null==k?void 0:k.currency_symbol_left," ").concat((0,u.az)(null==e?void 0:e.product_price,0))}),(0,n.jsx)("ul",{className:"grid gap-2 mt-1",children:null==e?void 0:null===(t=e.features)||void 0===t?void 0:t.map((e,l)=>(0,n.jsxs)("li",{className:"flex items-start gap-2",children:[(0,n.jsx)(b.Z0,{className:"w-[15px] h-2.5 *:fill-black mt-1 flex-shrink-0"}),(0,n.jsx)("p",{className:"text-14",children:e})]},"feature-recommend-".concat(l)))})]},"recommend-".concat(null==e?void 0:e.product_id,"-").concat(null==e?void 0:e.product_category_id))})})]})]})}));var k=t(61142);let S=(0,s.memo)((0,s.forwardRef)(function(e,l){let{listMainPackage:t}=e;(0,s.useImperativeHandle)(l,()=>({onSubmit:U,onBack:z}));let{location:i}=(0,s.useContext)(o.BR),{isLoading:v,configOrder:p,listLegalEntity:x,listOrderProduct:g,listTypeOfService:b,listLocationState:y,errors:j,setIsLoading:N,handleNextStep:w,updateContextValue:S,handleChangeStepAiHelper:C}=(0,s.useContext)(o.w_),{orderStore:E,updateStartBusinessStore:R,updatePackageStore:O,updateOrderStore:T,clearOrderStore:A}=(0,r.Fc)(),M=(0,s.useMemo)(()=>null==E?void 0:E.start_business,[null==E?void 0:E.start_business]),I=(0,s.useMemo)(()=>null==E?void 0:E.package_of_service,[null==E?void 0:E.package_of_service]),P=(0,s.useMemo)(()=>null==b?void 0:b.find(e=>e.category_id==(null==M?void 0:M.type_of_service)),[null==M?void 0:M.type_of_service]),{trigger:L,setValue:F,setError:D,register:K,getValues:B,control:G}
1=(0,h.mN)({mode:"onChange",resolver:(0,_.t)((0,u.tS)(p,P,x,y))}),U=(0,s.useCallback)(async()=>{if(v)return;if(!await L()){f.oR.error(null==p?void 0:p.txt_mp_review_correct_fields);return}N(!0);let e=await (0,u.Ji)(),l={order_id:null==E?void 0:E.order_id,product_id:null==I?void 0:I.product_id,jurisdiction_state_code:null==M?void 0:M.jurisdiction_state_code,legal_entity_id:null==M?void 0:M.legal_entity_id,is_customize:a.cSK.YES,gRecaptchaToken:e,url:window.location.href},t=await d.xN.submitAiRecommendation(l),n=(0,d.jN)(t);if(!(null==t?void 0:t.success)&&(f.oR.error((null==t?void 0:t.message)||(null==p?void 0:p.txt_toaster_failed_common)),n&&S({errors:n}),(null==t?void 0:t.statusCode)==u.kG.NotFound)){A(),window.location.reload();return}(null==t?void 0:t.data)&&Y(null==t?void 0:t.data),N(!1)},[M,I]),Y=(0,s.useCallback)(e=>{w(),N(!1),S({errors:{}}),T({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code})},[]),z=(0,s.useCallback)(async()=>{C(a.qqs.STEP_RECOMMENDATIONS_AI),R({jurisdiction_state_code:void 0,legal_entity_id:void 0}),O({product_id:void 0})},[]),H=(0,s.useMemo)(()=>null==x?void 0:x.filter(e=>e.legal_entity_service_id==(null==P?void 0:P.category_id)&&e.legal_entity_country_code==i),[null==P?void 0:P.category_id]),q=(0,s.useMemo)(()=>{if(!y||!(null==H?void 0:H.length))return;if(!(null==P?void 0:P.category_id)||(null==P?void 0:P.category_id)!=a.Rj3.US_COMPANY_FORMATION)return y;let e=null==g?void 0:g.filter(e=>e.product_category_id==a.Rj3.US_COMPANY_FORMATION&&e.product_jurisdiction_country_code==i&&e.product_type_id==a.Vo0.STATE_FEE);return null==y?void 0:y.filter(l=>null==e?void 0:e.find(e=>e.product_jurisdiction_state_code==l.value))},[null==P?void 0:P.category_id,H]),V=(0,s.useCallback)((e,l)=>Object.fromEntries(e.map(e=>[e,l])),[]),Z=(0,s.useMemo)(()=>({[a.Rj3.US_COMPANY_FORMATION]:(0,n.jsx)(k.yi,{listMainPackage:t,register:K}),...V([a.Rj3.HK_COMPANY_FORMATION,a.Rj3.SG_COMPANY_FORMATION,a.Rj3.VN_COMPANY_FORMATION],(0,n.jsx)(k.UH,{listMainPackage:t,control:G}))}),[]),$=(0,s.useCallback)(()=>{var e;R({legal_entity_id:null===(e=B("legal_entity_id"))||void 0===e?void 0:e.legal_entity_id})},[]),W=(0,s.useCallback)(()=>{var e;R({jurisdiction_state_code:null===(e=B("jurisdiction_state_code"))||void 0===e?void 0:e.value})},[]);return(0,c.VT)(D,j),(0,s.useEffect)(()=>{R({jurisdiction_state_code:void 0,legal_entity_id:void 0}),O({product_id:void 0}),S({isSummaryPanel:!1})},[]),(0,s.useEffect)(()=>{F("product_id",null==I?void 0:I.product_id)},[null==I?void 0:I.product_id]),(0,n.jsxs)("div",{className:"flex flex-col mx-auto",children:[(0,n.jsxs)("div",{className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary",children:null==p?void 0:p.txt_order_customize_your_incorporation}),(0,n.jsxs)("div",{className:"mt-3 lg:mt-5",children:[(0,n.jsx)("p",{children:null==p?void 0:p.txt_order_customize_your_incorporation_des}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-2 lg:gap-5 mt-2",children:[!!(null==q?void 0:q.length)&&(0,n.jsx)(m.$k,{control:G,isShowPlaceholder:!0,isDisabled:v,classNameError:"text-xs",option:q,id:"jurisdiction_state_code",onSelect:W,name:"jurisdiction_state_code",nameLabel:null==p?void 0:p.txt_order_state,placeholder:null==p?void 0:p.txt_please_select}),!!(null==H?void 0:H.length)&&(0,n.jsx)(m.$k,{control:G,isShowPlaceholder:!0,id:"legal_entity_id",name:"legal_entity_id",isDisabled:v,classNameError:"text-xs",option:H,onSelect:$,placeholder:null==p?void 0:p.txt_please_select,nameLabel:null==p?void 0:p.txt_order_company_type})]})]})]}),(0,n.jsx)("div",{className:(0,u.cn)("grid transition-all duration-300",(null==t?void 0:t.length)&&(null==M?void 0:M.legal_entity_id)?"mt-2 lg:mt-10 lg:p-8 bg-white lg:rounded-xl lg:shadow-33":"h-0 overflow-hidden"),children:Z[null==P?void 0:P.category_id]})]})})),C=(0,s.memo)((0,s.forwardRef)(function(e,l){(0,s.useImperativeHandle)(l,()=>({onSubmit:y,onBack:j}));let{stepAiHelper:t,listTypeOfService:d,updateContextValue:c,getPackages:u}=(0,s.useContext)(o.w_),{orderStore:m}=(0,r.Fc)(),_=(0,s.useMemo)(()=>null==m?void 0:m.start_business,[null==m?void 0:m.start_business]),v=(0,s.useMemo)(()=>null==m?void 0:m.package_of_service,[null==m?void 0:m.package_of_service]),p=(0,s.useMemo)(()=>null==d?void 0:d.find(e=>e.category_id==(null==_?void 0:_.type_of_service)),[null==_?void 0:_.type_of_service]),x=(0,s.useMemo)(()=>u({categoryId:null==p?void 0:p.category_id,productType:a.Vo0.SERVICE_FEE}),[p]),h=(0,s.useMemo)(()=>null!=x&&!!x.find(e=>e.product_is_upgrade==a.cSK.YES&&e.product_id==(null==v?void 0:v.product_id)),[x,null==v?void 0:v.product_id]),f=(0,s.useMemo)(()=>Object.values(a.qqs).filter(e=>"number"==typeof e),[]),b=(0,s.useRef)(Array.from({length:f.length+1},()=>(0,s.createRef)())),y=(0,s.useCallback)(async()=>{var e,l,n;c({isUpgradePackage:h}),null===(n=b.current[t])||void 0===n||null===(l=n.current)||void 0===l||null===(e=l.onSubmit)||void 0===e||e.call(l)},[t,h]),j=(0,s.useCallback)(async()=>{var e,l,n;null===(n=b.current[t])||void 0===n||null===(l=n.current)||void 0===l||null===(e=l.onBack)||void 0===e||e.call(l)},[t]),N=(0,s.useMemo)(()=>({[a.qqs.STEP_UNDERSTAND_YOUR_NEED]:(0,n.jsx)(g,{ref:b.current[a.qqs.STEP_UNDERSTAND_YOUR_NEED]}),[a.qqs.STEP_RECOMMENDATIONS_AI]:(0,n.jsx)(w,{ref:b.current[a.qqs.STEP_RECOMMENDATIONS_AI]}),[a.qqs.STEP_CUSTOMIZE_PACKAGE]:(0,n.jsx)(S,{listMainPackage:x,ref:b.current[a.qqs.STEP_CUSTOMIZE_PACKAGE]})}),[]);return(0,s.useEffect)(()=>()=>{c({isSummaryPanel:!0,isSummaryAiHelper:!1})},[]),(0,n.jsx)(i.T8,{effect:"fadeIn",children:N[t]},"StepAiHelper-".concat(t))}))},87405:(e,l,t)=>{"use strict";t.r(l),t.d(l,{MainPanel:()=>f});var n=t(38694),i=t(93220),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(42500),m=t(20361),_=t(74323),v=t(36791),p=t.n(v),x=t(45734),h=t(62821);let f=e=>{let{headerMenu:l,handleMenuOpen:t,dropDownMyaccount:v,isUserLoggedIn:f}=e,{langLocationSlashed:g,lang:b,location:y,configGlobal:j,siteKeywords:N,currentLocation:w}=(0,x.useContext)(i.BR),k=(0,r.Yq)(),{clearOrderStore:S}=(0,s.Fc)(),C={lbl_sign_out:null==j?void 0:j.lbl_sign_out,lbl_menu_my_profile:null==j?void 0:j.lbl_menu_my_profile,lbl_menu_info_profile:null==j?void 0:j.lbl_menu_info_profile,lbl_menu_change_password:null==j?void 0:j.lbl_menu_change_password,lbl_menu_my_orders:null==j?void 0:j.lbl_menu_my_orders,lbl_menu_my_payments:null==j?void 0:j.lbl_menu_my_payments,lbl_menu_one_ibc:null==j?void 0:j.lbl_menu_one_ibc},{dataMenuProfile:E,dataMenuOther:R}=(0,o.xML)({t:C,siteKeywords:N}),O=(0,m.getCookie)(o.Avz.CLIENT_PORTAL),{locations:T}=(0,r.rZ)(),A=(0,x.useMemo)(()=>{var e;return null==T?void 0:null===(e=T.find(e=>e.country_code===y))||void 0===e?void 0:e.languages},[T]);return(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("div",{className:"px-4 py-5",children:(0,n.jsx)(x.Suspense,{children:(0,n.jsx)(c.ZU,{textSearch:(null==j?void 0:j.txt_search_for)||""})})}),(0,n.jsx)("div",{className:"px-4 py-5 border-b border-gray",children:(0,n.jsxs)("div",{className:"grid gap-8",children:[f&&(0,n.jsxs)("div",{children:[(0,n.jsx)("input",{id:"menu-account",type:"checkbox",className:"hidden peer"}),(0,n.jsxs)("label",{htmlFor:"menu-account",className:"flex justify-between items-center peer-checked:[&_.plus-icon]:hidden peer-checked:[&_.minus-icon]:block peer-checked:[&_.chevron-icon]:rotate-180 peer-checked:[&_.icons]:rotate-0",children:[(0,n.jsx)("span",{className:"text-18 font-bold",children:null==j?void 0:j.lbl_menu_my_account}),(0,n.jsxs)("div",{className:"icons transition-all duration-200 rotate-180",children:[(0,n.jsx)(u.c1,{className:"plus-icon"}),(0,n.jsx)(u.QG,{className:"minus-icon hidden"})]})]}),(0,n.jsx)("div",{className:"grid grid-rows-[0fr] invisible peer-checked:grid-rows-[1fr] peer-checked:visible peer-checked:mt-3 transition-all duration-200 pl-5 border-l border-black",children:(0,n.jsxs)("div",{className:"overflow-hidden grid gap-5",children:[!O&&(null==E?void 0:E.map((e,l)=>{var i;return(0,n.jsxs)("div",{children:[(0,n.jsx)("input",{id:"child-profile",type:"checkbox",className:"hidden peer"}),(0,n.jsxs)("label",{htmlFor:"child-profile",className:"flex justify-between items-center peer-checked:[&_svg]:rotate-180",children:[(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.link),title:e.title,onClick:t,className:"text-16 font-semibold",children:e.title}),(null==e?void 0:e.children)&&(0,n.jsx)(u.ho,{className:"transition-all duration-200"})]}),(null==e?void 0:e.children)&&(0,n.jsx)("div",{className:"grid grid-rows-[0fr] invisible peer-checked:grid-rows-[1fr] peer-checked:visible peer-checked:mt-2 transition-all duration-200 pl-3",children:(0,n.jsx)("div",{className:"overflow-hidden grid gap-3",children:null==e?void 0:null===(i=e.children)||void 0===i?void 0:i.map((e,l)=>(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.link),title:e.title,onClick:t,className:"text-16 text-gray-16",children:e.title},l))})})]},l)})),!O&&(null==R?void 0:R.map((e,l)=>(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.link),title:e.title,onClick:t,className:"text-16 font-semibold",children:e.title},l))),O&&(null==v?void 0:v.map((e,l)=>(0,n.jsx)(p(),{href:e.link,title:e.title,onClick:t,className:"text-16 font-semibold",children:e.title},l))),(0,n.jsx)("p",{onClick:()=>{t(),(0,a.m8)("".concat(g,"/").concat(N[o.eoY]))},className:"text-16 font-semibold",children:null==j?void 0:j.lbl_sign_out})]})})]}),null==l?void 0:l.map((e,l)=>{var i,o;return(0,n.jsxs)("div",{children:[(0,n.jsx)("input",{id:"menu-".concat(l),type:"checkbox",className:"hidden peer"}),(0,n.jsxs)("label",{htmlFor:"menu-".concat(l),className:"flex justify-between items-center peer-checked:[&_.plus-icon]:hidden peer-checked:[&_.minus-icon]:block peer-checked:[&_.chevron-icon]:rotate-180 peer-checked:[&_.icons]:rotate-0",children:[null==e||!e.menu_link||(null==e?void 0:null===(i=e.menu_children)||void 0===i?void 0:i.length)?(0,n.jsx)("span",{className:"text-18 font-bold",dangerouslySetInnerHTML:{__html:e.menu_name||""}}):(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.menu_link),title:e.menu_name,onClick:t,className:"text-18 font-bold",children:e.menu_name}),(null==e?void 0:e.menu_style)=="mega-menu"&&(0,n.jsxs)("div",{className:"icons transition-all duration-200 rotate-180",children:[(0,n.jsx)(u.c1,{className:"plus-icon"}),(0,n.jsx)(u.QG,{className:"minus-icon hidden"})]}),(null==e?void 0:e.menu_style)=="dropdown"&&(0,n.jsx)(u.ho,{className:"chevron-icon transition-all duration-200"})]}),(null==e?void 0:e.menu_children)&&(0,n.jsx)("div",{className:"grid grid-rows-[0fr] invisible peer-checked:grid-rows-[1fr] peer-checked:visible peer-checked:mt-3 transition-all duration-200 pl-5 border-l border-black",children:(0,n.jsx)("div",{className:"overflow-hidden grid gap-5",children:null==e?void 0:null===(o=e.menu_children)||void 0===o?void 0:o.map((e,i)=>{var o;return(0,n.jsxs)("div",{children:[(0,n.jsx)("input",{id:"child-".concat(l,"-").concat(i),type:"checkbox",className:"hidden peer"}),(0,n.jsxs)("label",{htmlFor:"child-".concat(l,"-").concat(i),className:"flex justify-between items-center peer-checked:[&_svg]:rotate-180",children:[(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.menu_link),title:e.menu_name,onClick:t,className:"text-16 font-semibold",children:e.menu_name}),(null==e?void 0:e.menu_children)&&(0,n.jsx)(u.ho,{className:"transition-all duration-200"})]}),(null==e?void 0:e.menu_children)&&(0,n.jsx)("div",{className:"grid grid-rows-[0fr] invisible peer-checked:grid-rows-[1fr] peer-checked:visible peer-checked:mt-2 transition-all duration-200 pl-3",children:(0,n.jsx)("div",{className:"overflow-hidden grid gap-3",children:null==e?void 0:null===(o=e.menu_children)||void 0===o?void 0:o.map((e,l)=>(0,n.jsx)(p(),{href:"".concat(g,"/").concat(e.menu_link),title:e.menu_name,onClick:t,className:"text-16 text-gray-16",children:e.menu_name},l))})})]},i)})})})]},l)})]})}),(0,n.jsx)("div",{className:"px-4 py-5",children:(0,n.jsxs)("div",{className:"grid gap-10",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{className:"text-18 leading-1-4",children:null==j?void 0:j.txt_language}),(0,n.jsxs)(h.C4,{className:"relative",children:[(0,n.jsxs)(h.aZ,{
1className:"p-2 flex items-center",children:[(0,n.jsx)("span",{className:"text-16 uppercase",children:b}),(0,n.jsx)(u.te,{})]}),!!(null==A?void 0:A.length)&&(0,n.jsx)(h.n4,{className:"right-0 top-[unset] bottom-full bg-white shadow-3 text-left w-60 p-2 rounded-lg",children:null==A?void 0:A.map((e,l)=>(0,n.jsx)("a",{className:"flex gap-1 p-2 items-center cursor-pointer hover:bg-orange hover:text-primary rounded-lg",href:"".concat(k(null==e?void 0:e.location_lang_code,y)),title:null==e?void 0:e.language_name,children:(0,n.jsx)("span",{className:"text-14",children:null==e?void 0:e.language_name})},l))})]})]}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{className:"text-18 leading-1-4",children:null==j?void 0:j.txt_location}),(0,n.jsxs)(h.C4,{className:"relative",children:[(0,n.jsxs)(h.aZ,{className:"p-2 flex items-center gap-1",children:[(0,n.jsx)(_.default,{src:(0,d.Kz)(y),alt:(null==w?void 0:w.location_country_name)||"Global",title:(null==w?void 0:w.location_country_name)||"Global",width:"16",height:"16"}),(0,n.jsx)("span",{className:"text-16 uppercase",children:(null==w?void 0:w.location_country_name)||"Global"}),(0,n.jsx)(u.te,{})]}),!!(null==T?void 0:T.length)&&(0,n.jsx)(h.n4,{className:"right-0 top-[unset] bottom-full bg-white shadow-3 text-left w-60 p-2 rounded-lg max-h-60 overflow-y-auto scrollbar-ibc z-[5]",children:null==T?void 0:T.map((e,l)=>{var t,i,a,r;return(null==e?void 0:e.country_code)==o.Mf1&&(null==j?void 0:j.txt_oneibc_hyperlink_top_location_global_website)?(0,n.jsxs)("a",{className:"flex gap-1 p-2 items-center cursor-pointer hover:bg-orange hover:text-primary rounded-lg",href:(null==e?void 0:e.country_code)==o.Mf1&&(null==j?void 0:j.txt_oneibc_hyperlink_top_location_global_website)?null==j?void 0:j.txt_oneibc_hyperlink_top_location_global_website:"".concat(k(null==e?void 0:null===(r=e.languages)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.location_lang_code,null==e?void 0:e.country_code)),title:null==e?void 0:e.country_name,onClick:S,rel:"nofollow",children:[(0,n.jsx)(_.default,{src:(0,d.Kz)((null==e?void 0:e.country_code)||o.Mf1),alt:(null==e?void 0:e.country_name)||"",title:null==e?void 0:e.country_name,width:"20",height:"20"}),(0,n.jsx)("span",{className:"text-16",children:null==e?void 0:e.country_name})]},l):(0,n.jsxs)("a",{className:"flex gap-1 p-2 items-center cursor-pointer hover:bg-orange hover:text-primary rounded-lg",href:"".concat(k(null==e?void 0:null===(i=e.languages)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.location_lang_code,null==e?void 0:e.country_code)),title:null==e?void 0:e.country_name,onClick:S,children:[(0,n.jsx)(_.default,{src:(0,d.Kz)((null==e?void 0:e.country_code)||o.Mf1),alt:(null==e?void 0:e.country_name)||"",title:null==e?void 0:e.country_name,width:"20",height:"20"}),(0,n.jsx)("span",{className:"text-16",children:null==e?void 0:e.country_name})]},l)})})]})]}),(0,n.jsx)("div",{className:"flex justify-center gap-5",children:y==o.Oli?(0,n.jsx)(c.$n,{href:"".concat(g,"/").concat(N[o.Gh2]),title:null==j?void 0:j.txt_contact_us,className:"text-md font-semibold h-[54px] w-[220px]",children:null==j?void 0:j.txt_contact_us}):(0,n.jsx)(c.$n,{href:"".concat(g,"/").concat(N[o.BPf]),title:y==o.Y72?null==j?void 0:j.txt_get_started:null==j?void 0:j.btn_set_up_now,className:"text-md font-semibold h-[54px] w-[220px]",reloadDocument:!0,children:y==o.Y72?null==j?void 0:j.txt_get_started:null==j?void 0:j.btn_set_up_now})})]})})]})}},88231:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepBoostBusiness:()=>A});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(8256),s=t(76970),d=t(45734),c=t(2508),u=t(74323);let m=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a,s;let{listRecommendServices:m,filteredChosenServices:_}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:w,onNoThanks:S,onBack:k}));let{configOrder:v,handleBackStep:p,handleNextStep:x,updateContextValue:h}=(0,d.useContext)(i.w_),{orderStore:f,updateOrderStore:g,updateRecommendService:b}=(0,r.Fc)(),y=(0,d.useMemo)(()=>{var e;return(null==f?void 0:null===(e=f.recommend_service)||void 0===e?void 0:e.chosen_service_ids)||[]},[null==f?void 0:null===(a=f.recommend_service)||void 0===a?void 0:null===(t=a.chosen_service_ids)||void 0===t?void 0:t.length]),j=(0,d.useMemo)(()=>{var e;return null==f?void 0:null===(e=f.ai_recommendation)||void 0===e?void 0:e.recommend_ai},[null==f?void 0:null===(s=f.ai_recommendation)||void 0===s?void 0:s.recommend_ai]),N=(0,d.useMemo)(()=>(0,c.Ol)(null==v?void 0:v.json_order_intro_recommend),[]),w=(0,d.useCallback)(async()=>{var e;h({isRecommendationService:null==_?void 0:null===(e=_[0])||void 0===e?void 0:e.category_id}),(null==y?void 0:y.length)&&g({recommend_service:{chosen_service_ids:y}})},[null==y?void 0:y.length,null==_?void 0:_.length]),k=(0,d.useCallback)(async()=>{p(),g({recommend_service:void 0})},[]),S=(0,d.useCallback)(async()=>{x(),g({recommend_service:void 0}),h({isRecommendationService:void 0})},[]);return(0,d.useEffect)(()=>(h({isNoThanksBtn:!0,isSummaryPanel:!1,btnNext:o.w8x.INTERESTED,bt
1nNoThanks:o.YrS.LATER}),()=>{h({isNoThanksBtn:!1,isSummaryPanel:!0,btnNext:o.w8x.NEXT,btnNoThanks:o.YrS.NO_THANKS})}),[]),(0,n.jsxs)("div",{className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("p",{children:null==v?void 0:v.txt_order_intro_services_des}),(0,n.jsx)("div",{className:"mt-8 lg:mt-5 flex flex-wrap gap-5 justify-center",children:null==m?void 0:m.map(e=>{let l=null==N?void 0:N.find(l=>l.type_id==e.category_id);return(0,n.jsx)("div",{className:(0,c.cn)("p-3 lg:p-5 rounded-lg outline outline-1 outline-gray-50 w-full lg:max-w-[358px] cursor-pointer select-none",(null==y?void 0:y.includes(e.category_id))?"outline-red-1 bg-red-22":"outline-gray-50",(null==j?void 0:j.length)&&"pointer-events-none"),onClick:()=>{if(!(null==y?void 0:y.includes(e.category_id))){null==y||y.push(e.category_id),b({chosen_service_ids:y});return}b({chosen_service_ids:null==y?void 0:y.filter(l=>l!==e.category_id)})},children:(0,n.jsxs)("div",{className:"flex gap-5",children:[(0,n.jsx)(u.default,{width:100,height:80,title:e.category_name,src:(null==l?void 0:l.image)||"/",alt:e.category_name||"",className:"flex-shrink-0 w-auto h-20"}),(0,n.jsxs)("div",{className:"flex flex-col gap-1 text-left",children:[(0,n.jsx)("h3",{className:"text-18 font-bold",children:null==e?void 0:e.category_name}),(0,n.jsx)("span",{className:"text-sm text-gray-5",children:null==l?void 0:l.description})]})]})},e.category_id)})})]})}));var _=t(42500),v=t(63985),p=t(46561),x=t(69054),h=t(94674),f=t(83924),g=t(29722);let b=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a;(0,d.useImperativeHandle)(l,()=>({onSubmit:k,onNoThanks:C,onBack:S}));let{isLoading:s,configOrder:u,listTypeOfService:m,errors:_,getPackages:v}=(0,d.useContext)(i.w_),{orderStore:p,updateRecommendService:h}=(0,r.Fc)(),{getValues:b,setError:y,trigger:j,setValue:N,control:w}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.WI)(u,!0))}),k=(0,d.useCallback)(async()=>!!await j()&&(h({is_bookkeeping:o.cSK.YES,bookkeeping:{product_id:Number(b("recommend_service.bookkeeping.product_id"))}}),!0),[]),S=(0,d.useCallback)(async()=>{},[]),C=(0,d.useCallback)(async()=>{h({is_bookkeeping:o.cSK.NO,bookkeeping:void 0})},[]),E=(0,d.useMemo)(()=>v({categoryId:o.Rj3.ACCOUNTING,productType:o.Vo0.SERVICE_FEE}),[]),R=(0,d.useMemo)(()=>{var e;return null==p?void 0:null===(e=p.recommend_service)||void 0===e?void 0:e.bookkeeping},[null==p?void 0:null===(t=p.recommend_service)||void 0===t?void 0:t.bookkeeping]),O=(0,d.useMemo)(()=>{var e;return(null==p?void 0:null===(e=p.recommend_service)||void 0===e?void 0:e.is_bookkeeping)==o.cSK.YES},[null==p?void 0:null===(a=p.recommend_service)||void 0===a?void 0:a.is_bookkeeping]),T=(0,d.useMemo)(()=>null==m?void 0:m.find(e=>e.category_id==o.Rj3.ACCOUNTING),[]),A=(0,d.useMemo)(()=>null==T?void 0:T.category_description,[null==T?void 0:T.category_description]);return(0,x.VT)(y,_),(0,d.useEffect)(()=>{O&&(!b("recommend_service.bookkeeping.product_id")||b("recommend_service.bookkeeping.product_id")!=(null==R?void 0:R.product_id))&&(null==R?void 0:R.product_id)&&(N("recommend_service.bookkeeping.product_id",null==R?void 0:R.product_id),h({bookkeeping:{product_id:null==R?void 0:R.product_id}}))},[O]),(0,n.jsxs)("div",{className:"px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary text-center",children:null==u?void 0:u.txt_order_recommend_accounting_title}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center xl:grid xl:grid-cols-3 gap-5 mt-5",children:null==E?void 0:E.map(e=>(0,n.jsx)(i.mu,{product:e,control:w,disabled:s,value:e.product_id,name:"recommend_service.bookkeeping.product_id",isRecommended:e.product_is_default==o.cSK.YES,desPackage:null==A?void 0:A.find(l=>l.product_id==e.product_id),handleChange:()=>{h({is_bookkeeping:o.cSK.YES,bookkeeping:{product_id:e.product_id}})}},e.product_id))})]})})),y=(0,d.memo)(e=>{let{listTaxationPackage:l,register:t,selectedProductId:a}=e,{configOrder:s,currentCurrency:u,isLoading:m,listTypeOfService:v}=(0,d.useContext)(i.w_),{updateRecommendService:p}=(0,r.Fc)(),x=(0,d.useMemo)(()=>null==v?void 0:v.find(e=>e.category_id==o.Rj3.TAXATION),[]),f=(0,d.useMemo)(()=>null==x?void 0:x.category_description,[null==x?void 0:x.category_description]);return(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary text-center px-4 lg:px-0",children:null==s?void 0:s.txt_order_recommend_taxation_title}),(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0 mt-5",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[56%] max-w-[520px]"}),(0,n.jsx)("col",{className:"w-[22%] max-w-[200px]"}),(0,n.jsx)("col",{className:"w-[22%] max-w-[200px]"})]}),(0,n.jsx)("thead",{className:"sticky top-[90px] z-[1] bg-white",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{}),null==l?void 0:l.map(e=>
1(0,n.jsxs)("td",{className:(0,c.cn)("cursor-pointer rounded-t-xl border-x border-t select-none border-white",a==e.product_id&&"border-primary bg-red-22 "),children:[(0,n.jsx)("input",{hidden:!0,type:"radio",disabled:m,value:e.product_id,id:"dk-".concat(e.product_id),...t("recommend_service.taxation.product_id")}),(0,n.jsxs)("label",{htmlFor:"dk-".concat(e.product_id),className:"pt-3 pb-5 px-2 grid gap-1 text-center cursor-pointer",onClick:()=>{p({is_taxation:o.cSK.YES,taxation:{product_id:e.product_id}})},children:[(0,n.jsx)("p",{className:"text-16 font-bold",children:e.product_name}),(0,n.jsx)("p",{className:"text-32 font-bold text-primary",children:"".concat(null==u?void 0:u.currency_symbol_left," ").concat((0,c.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-14",children:e.product_description_price}),(0,n.jsx)("p",{className:"text-14",children:null==s?void 0:s.txt_order_billed_monthly})]}),e.product_description&&(0,n.jsx)("p",{className:"text-14 font-semibold",children:e.product_description})]})]},"dk-".concat(e.product_id)))]})}),(0,n.jsx)("tbody",{className:"*:first:*:border-t *:*:border-b first:*:*:border-l *:*:border-gray-55 first:*:first:*:rounded-tl-xl first:*:last:*:rounded-bl-xl *:*:px-5 *:*:py-3",children:null==f?void 0:f.map((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label}),e.tooltip&&(0,n.jsx)(h.oS,{content:e.tooltip})]})}),null==l?void 0:l.map(l=>(0,n.jsxs)("td",{className:(0,c.cn)("select-none relative",a==(null==l?void 0:l.product_id)&&"border-x !border-x-primary bg-red-22",a==(null==l?void 0:l.product_id)&&t==f.length-1&&"!border-b-primary rounded-b-xl"),children:[(0,n.jsx)("label",{className:"absolute inset-0 cursor-pointer",htmlFor:"dk-".concat(null==l?void 0:l.product_id),onClick:()=>{p({is_taxation:o.cSK.YES,taxation:{product_id:l.product_id}})}}),(0,n.jsx)("div",{className:"flex justify-center items-center",children:e[null==l?void 0:l.product_id]==o.cSK.YES?(0,n.jsx)(_.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(_.K5,{})})]},null==l?void 0:l.product_id))]},"tr-".concat(t)))})]})]})});y.displayName="TaxationDesktop";let j=(0,d.memo)(e=>{let{listTaxationPackage:l,register:t,selectedProductId:a}=e,{configOrder:s,currentCurrency:u,isLoading:m,listTypeOfService:v}=(0,d.useContext)(i.w_),{updateRecommendService:p}=(0,r.Fc)(),x=(0,d.useMemo)(()=>null==v?void 0:v.find(e=>e.category_id==o.Rj3.TAXATION),[]),f=(0,d.useMemo)(()=>null==x?void 0:x.category_description,[null==x?void 0:x.category_description]);return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)("div",{className:"pb-3 px-4 shadow-37 sticky top-[119px] bg-white z-[1]",children:(0,n.jsx)("div",{className:"flex gap-2 justify-center overflow-x-auto no-scrollbar",children:null==l?void 0:l.map(e=>(0,n.jsxs)("label",{className:"min-w-[167px] flex-shrink-0",onClick:()=>{p({is_taxation:o.cSK.YES,taxation:{product_id:e.product_id}})},children:[(0,n.jsx)("input",{hidden:!0,type:"radio",disabled:m,value:e.product_id,...t("recommend_service.taxation.product_id")}),(0,n.jsx)("div",{className:(0,c.cn)("px-2 py-3 border-b-2",a==e.product_id?"border-red-1":"border-white"),children:(0,n.jsx)("p",{className:(0,c.cn)("text-16 text-center font-semibold",a==e.product_id&&"text-red-1"),children:e.product_name})}),(0,n.jsxs)("div",{className:"px-2 flex flex-col gap-1 text-center",children:[(0,n.jsx)("p",{className:"text-28 font-bold",children:"".concat(null==u?void 0:u.currency_symbol_left," ").concat((0,c.az)(e.product_price,0))}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-14 text-gray-5",children:e.product_description_price}),(0,n.jsx)("p",{className:"text-14 text-gray-5",children:null==s?void 0:s.txt_order_billed_monthly})]}),e.product_description&&(0,n.jsx)("p",{className:"text-14 font-medium",children:e.product_description})]})]},"mb-".concat(e.product_id)))})}),(0,n.jsxs)("table",{className:"w-full table-fixed border-separate border-spacing-0",children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{className:"w-[70%]"}),(0,n.jsx)("col",{className:"w-[30%]"})]}),(0,n.jsx)("tbody",{className:"*:*:border-b first:*:*:border-r *:*:border-gray-55 *:*:p-5",children:null==f?void 0:f.map((e,l)=>
1{let t=(null==e?void 0:e[a||0])==o.cSK.YES;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("span",{className:"text-16 font-semibold",children:e.label}),e.tooltip&&(0,n.jsx)(h.oS,{content:e.tooltip})]})}),(0,n.jsx)("td",{className:"select-none cursor-pointer",children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:t?(0,n.jsx)(_.Z0,{className:"w-5 h-[14px]"}):(0,n.jsx)(_.K5,{})})})]},"tr-".concat(l))})})]})]})});j.displayName="TaxationMobile";let N=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a;(0,d.useImperativeHandle)(l,()=>({onSubmit:C,onNoThanks:R,onBack:E}));let{configOrder:s,errors:u,getPackages:m}=(0,d.useContext)(i.w_),{orderStore:_,updateRecommendService:v}=(0,r.Fc)(),h=(0,x._F)(1024),{getValues:b,setError:N,trigger:w,setValue:k,register:S}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.y0)(s,!0))}),C=(0,d.useCallback)(async()=>await w()?(v({is_taxation:o.cSK.YES,taxation:{product_id:Number(b("recommend_service.taxation.product_id"))}}),!0):(p.oR.error(null==s?void 0:s.txt_please_select),!1),[]),E=(0,d.useCallback)(async()=>{},[]),R=(0,d.useCallback)(async()=>{v({is_taxation:o.cSK.NO,taxation:void 0})},[]),O=(0,d.useMemo)(()=>m({categoryId:o.Rj3.TAXATION,productType:o.Vo0.SERVICE_FEE}),[]),T=(0,d.useMemo)(()=>{var e;return(null==_?void 0:null===(e=_.recommend_service)||void 0===e?void 0:e.is_taxation)==o.cSK.YES},[null==_?void 0:null===(t=_.recommend_service)||void 0===t?void 0:t.is_taxation]),A=(0,d.useMemo)(()=>{var e;return null==_?void 0:null===(e=_.recommend_service)||void 0===e?void 0:e.taxation},[null==_?void 0:null===(a=_.recommend_service)||void 0===a?void 0:a.taxation]);return(0,x.VT)(N,u),(0,d.useEffect)(()=>{T&&(!b("recommend_service.taxation.product_id")||b("recommend_service.taxation.product_id")!=(null==A?void 0:A.product_id))&&(null==A?void 0:A.product_id)&&(k("recommend_service.taxation.product_id",null==A?void 0:A.product_id),v({taxation:{product_id:null==A?void 0:A.product_id}}))},[T]),h?(0,n.jsx)(j,{register:S,listTaxationPackage:O,selectedProductId:null==A?void 0:A.product_id}):(0,n.jsx)(y,{register:S,listTaxationPackage:O,selectedProductId:null==A?void 0:A.product_id})})),w=(0,d.memo)((0,d.forwardRef)(function(e,l){var t;(0,d.useImperativeHandle)(l,()=>({onSubmit:w,onNoThanks:S,onBack:k}));let{configOrder:a,isLoading:s,errors:u,getPackages:m}=(0,d.useContext)(i.w_),{orderStore:_,updateRecommendService:v}=(0,r.Fc)(),{getValues:p,setError:b,trigger:y,setValue:j,control:N}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.hg)(a,!0))}),w=(0,d.useCallback)(async()=>!!await y()&&(v({is_payroll:o.cSK.YES,payroll:{number_of_employee:Number(p("recommend_service.payroll.number_of_employee")),product_id:Number(p("recommend_service.payroll.product_id"))}}),!0),[]),k=(0,d.useCallback)(async()=>{},[]),S=(0,d.useCallback)(async()=>{v({is_payroll:o.cSK.NO,payroll:void 0})},[]),C=(0,d.useMemo)(()=>m({categoryId:o.Rj3.PAYROLL,productType:o.Vo0.SERVICE_FEE}),[]),E=(0,d.useMemo)(()=>{var e;return null==_?void 0:null===(e=_.recommend_service)||void 0===e?void 0:e.payroll},[null==_?void 0:null===(t=_.recommend_service)||void 0===t?void 0:t.payroll]);return(0,x.VT)(b,u),(0,d.useEffect)(()=>{(p("recommend_service.payroll.product_id")||p("recommend_service.payroll.number_of_employee"))&&j("recommend_service.payroll.product_id",null==E?void 0:E.product_id)},[null==E?void 0:E.number_of_employee]),(0,d.useEffect)(()=>{!p("recommend_service.payroll.product_id")&&p("recommend_service.payroll.number_of_employee")!=(null==E?void 0:E.number_of_employee)&&((null==E?void 0:E.product_id)||(null==E?void 0:E.number_of_employee))&&(j("recommend_service.payroll.product_id",null==E?void 0:E.product_id),j("recommend_service.payroll.number_of_employee",null==E?void 0:E.number_of_employee))},[E]),(0,n.jsxs)("div",{className:"px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary text-center",children:null==a?void 0:a.txt_order_recommend_payroll_title}),(0,n.jsxs)("div",{className:"grid gap-5 mt-5",children:[(0,n.jsx)(h.YI,{control:N,disabled:s,placeholder:null==a?void 0:a.plc_number,classNameError:"text-xs -mt-2",min:null==a?void 0:a.min_number_of_employee,max:null==a?void 0:a.max_number_of_employee,nameLabel:null==a?void 0:a.lbl_number_of_employee,className:"w-full max-w-[400px] mx-auto",tooltip:null==a?void 0:a.tooltip_order_number_of_employee,name:"recommend_service.payroll.number_of_employee",onChangeValue:()=>{let e=Number(p("recommend_service.payroll.number_of_employee")),l=null==C?void 0:C.find(l=>l.product_from_employees<=e&&l.product_to_employees>=e||l.product_from_employees<=e&&!l.product_to_employees);j("recommend_service.payroll.product_id",null==l?void 0:l.product_id),v({is_payroll:e?o.cSK.YES:o.cSK.NO,payroll:{number_of_employee:e,product_id:null==l?void 0:l.product_id}})}}),(0,n.jsx)("div",{className:"grid w-full gap-2 lg:gap-3 max-w-[520px] mx-auto",children:null==C?void 0:C.map(e=>(0,n.jsx)(i.mu,{variant:"line",product:e,control:N,disabled:s,value:e.product_id,className:"pointer-events-none",name:"recommend_service.payroll.product_id",checked:e.product_id==(null==E?void 0:E.product_id)},e.product_id))})]})]})})),k=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a;let{listBusinessAccountProduct:s,typeOfService:u}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:C,onNoThanks:R,onBack:E}));let{isLoading:m,configOrder:_,listTypeOfService:v,errors:p}=(0,d.useContext)(i.w_),{orderStore:h,updateRecommendService:b}=(0,r.Fc)(),{getValues:y,setError:j,trigger:N,setValue:w,resetField:k,control:S}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.Z0)(_,!0))}),C=(0,d.useCallback)(async()=>!!await N()&&(b({is_business_account:o.cSK.YES,business_account:{product_id:Number(y("recommend_service.business_account.product_id"))}}),!0),[]),E=(0,d.useCallback)(async()=>{},[]),R=(0,d.useCallback)(async()=>{k("recommend_service.business_account.product_id"),b({is_business_account:o.cSK.NO,business_account:void 0})},[]),O=(0,d.useMemo)(()=>{var e;return null==h?void 0:null===(e=h.recommend_service)||void 0===e?void 0:e.business_account},[null==h?void 0:null===(t=h.recommend_service)||void 0===t?void 0:t.business_account]),T=(0,d.useMemo)(()=>{var e;return(null==h?void 0:null===(e=h.recommend_service)||void 0===e?void 0:e.is_business_account)==o.cSK.YES},[null==h?void 0:null===(a=h.recommend_service)||void 0===a?void 0:a.is_business_account]),A=(0,d.useMemo)(()=>null==v?void 0:v.find(e=>e.category_id==u),[u]),M=(0,d.useMemo)(()=>null==A?void 0:A.category_description,[null==A?void 0:A.category_description]);return(0,x.VT)(j,p),(0,d.useEffect)(()=>{T&&(!y("recommend_service.business_account.product_id")||y("recommend_service.business_account.product_id")!=(null==O?void 0:O.product_id))&&(null==O?void 0:O.product_id)&&(w("recommend_service.business_account.product_id",null==O?void 0:O.product_id),b({business_account:{product_id:null==O?void 0:O.product_id}}))},[T]),(0,n.jsxs)("div",{className:"px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary text-center",children:null==_?void 0:_.txt_order_business_account}),(0,n.jsx)("div",{className:"flex flex-wrap gap-5 mt-5",children:null==s?void 0:s.map(e=>(0,n.jsx)(i.mu,{product:e,control:S,disabled:m,value:e.product_id,name:"recommend_service.business_account.product_id",isRecommended:e.product_is_default===o.cSK.YES,desPackage:null==M?void 0:M.find(l=>l.product_id==e.product_id||l.product_id==e.product_addon_related_id),handleChange:()=>{b({is_business_account:o.cSK.YES,business_account:{product_id:e.product_id}})}},e.product_id))})]})}));var S=t(93220);let C=(0,d.memo)((0,d.forwardRef)(function(e,l){var t;let{typeOfService:i}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:w,onNoThanks:C,onBack:k}));
1let{isLoading:a,configOrder:s,errors:u,getPackages:m}=(0,d.useContext)(S.w_),{orderStore:_,updateRecommendService:v}=(0,r.Fc)(),{getValues:p,setError:b,trigger:y,setValue:j,control:N}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.SH)(s,!0))}),w=(0,d.useCallback)(async()=>!!await y()&&(v({is_trademark:o.cSK.YES,trademark:{product_id:Number(p("recommend_service.trademark.product_id")),number_of_additional_class:Number(p("recommend_service.trademark.number_of_additional_class.value")),is_additional_class:p("recommend_service.trademark.is_additional_class.value"),product_additional_class_id:p("recommend_service.trademark.is_additional_class.value")==o.cSK.YES?Number(p("recommend_service.trademark.product_additional_class_id")):void 0}}),!0),[]),k=(0,d.useCallback)(async()=>{},[]),C=(0,d.useCallback)(async()=>{v({is_trademark:o.cSK.NO,trademark:void 0})},[]),E=(0,d.useMemo)(()=>{var e;return null==_?void 0:null===(e=_.recommend_service)||void 0===e?void 0:e.trademark},[null==_?void 0:null===(t=_.recommend_service)||void 0===t?void 0:t.trademark]),R=(0,d.useMemo)(()=>Array.from({length:Number(null==s?void 0:s.max_number_of_class)-Number(null==s?void 0:s.min_number_of_class)+1},(e,l)=>l+Number(null==s?void 0:s.min_number_of_class)).map(e=>({label:e.toString(),value:e.toString()})),[]),O=(0,d.useMemo)(()=>[{label:null==s?void 0:s.txt_yes,value:o.cSK.YES},{label:null==s?void 0:s.txt_no,value:o.cSK.NO}],[]),T=(0,d.useMemo)(()=>m({categoryId:i,productType:o.Vo0.CLASS}),[]),A=(0,d.useMemo)(()=>m({categoryId:i,productType:o.Vo0.SERVICE_FEE}),[]),M=(0,d.useCallback)(()=>{var e,l,t,n,i;let a=(null===(e=p("recommend_service.trademark.is_additional_class"))||void 0===e?void 0:e.value)==o.cSK.YES;j("recommend_service.trademark.product_id",null==A?void 0:null===(l=A[0])||void 0===l?void 0:l.product_id),j("recommend_service.trademark.product_additional_class_id",null==T?void 0:null===(t=T[0])||void 0===t?void 0:t.product_id),j("recommend_service.trademark.number_of_additional_class",a?null==R?void 0:R[0]:void 0),v({is_trademark:o.cSK.YES,trademark:{product_id:null==A?void 0:null===(n=A[0])||void 0===n?void 0:n.product_id,number_of_additional_class:a?Number(null==s?void 0:s.min_number_of_class):void 0,product_additional_class_id:a?null==T?void 0:null===(i=T[0])||void 0===i?void 0:i.product_id:void 0,is_additional_class:a?o.cSK.YES:o.cSK.NO}})},[]),I=(0,d.useCallback)(()=>{var e;v({trademark:{...E,number_of_additional_class:Number(null===(e=p("recommend_service.trademark.number_of_additional_class"))||void 0===e?void 0:e.value)}})},[E]);return(0,x.VT)(b,u),(0,d.useEffect)(()=>{p("recommend_service.trademark.is_additional_class")||p("recommend_service.trademark.number_of_additional_class")||(j("recommend_service.trademark.product_id",null==E?void 0:E.product_id),j("recommend_service.trademark.product_additional_class_id",null==E?void 0:E.product_additional_class_id),j("recommend_service.trademark.is_additional_class",null==O?void 0:O.find(e=>e.value==(null==E?void 0:E.is_additional_class))),j("recommend_service.trademark.number_of_additional_class",null==R?void 0:R.find(e=>e.value==String(null==E?void 0:E.number_of_additional_class))))},[E]),(0,n.jsxs)("div",{className:"flex flex-wrap gap-5 lg:gap-10 px-4 lg:px-0",children:[(0,n.jsx)("div",{className:"w-full xl:w-[358px]",children:(0,n.jsx)(h.$k,{control:N,isShowPlaceholder:!0,option:O,isDisabled:a,classNameError:"text-xs",placeholder:null==s?void 0:s.txt_please_select,onSelect:M,nameLabel:null==s?void 0:s.lbl_order_trademark_additional_class,id:"recommend_service.trademark.is_additional_class",name:"recommend_service.trademark.is_additional_class"})}),(null==E?void 0:E.is_additional_class)==o.cSK.YES&&(0,n.jsx)("div",{className:"w-full xl:w-[358px]",children:(0,n.jsx)(h.$k,{control:N,isShowPlaceholder:!0,isDisabled:a,classNameError:"text-xs",option:R,placeholder:null==s?void 0:s.txt_please_select,onSelect:I,nameLabel:null==s?void 0:s.lbl_order_trademark_number_additional_class,id:"recommend_service.trademark.number_of_additional_class",name:"recommend_service.trademark.number_of_additional_class"})})]})})),E=(0,d.memo)((0,d.forwardRef)(function(e,l){var t;let{typeOfService:i}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:y,onNoThanks:N,onBack:j}));
1let{isLoading:a,configOrder:s,getPackages:u}=(0,d.useContext)(S.w_),{orderStore:m,updateRecommendService:_}=(0,r.Fc)(),{getValues:v,trigger:p,setValue:x,control:b}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.tl)(s,!0))}),y=(0,d.useCallback)(async()=>!!await p(),[]),j=(0,d.useCallback)(async()=>{},[]),N=(0,d.useCallback)(async()=>{_({is_nominee:o.cSK.NO,nominee:void 0})},[]),w=(0,d.useMemo)(()=>{var e;return null==m?void 0:null===(e=m.recommend_service)||void 0===e?void 0:e.nominee},[null==m?void 0:null===(t=m.recommend_service)||void 0===t?void 0:t.nominee]),k=(0,d.useMemo)(()=>Array.from({length:Number(null==s?void 0:s.max_nominee_number_of_director)-Number(null==s?void 0:s.min_nominee_number_of_director)+1},(e,l)=>l+Number(null==s?void 0:s.min_nominee_number_of_director)).map(e=>({label:e.toString(),value:e.toString()})),[]),C=(0,d.useMemo)(()=>Array.from({length:Number(null==s?void 0:s.max_nominee_number_of_shareholder)-Number(null==s?void 0:s.min_nominee_number_of_shareholder)+1},(e,l)=>l+Number(null==s?void 0:s.min_nominee_number_of_shareholder)).map(e=>({label:e.toString(),value:e.toString()})),[]),E=(0,d.useMemo)(()=>u({categoryId:i}),[u]),R=(0,d.useCallback)(()=>{let e=v("recommend_service.nominee.number_of_director.value"),l=null==E?void 0:E.find(e=>e.product_type_id==o.Vo0.NOMINEE_DIRECTOR_FEE);_({is_nominee:o.cSK.YES,nominee:{...w,number_of_director:Number(e),director_product_id:null==l?void 0:l.product_id}})},[w]),O=(0,d.useCallback)(()=>{let e=v("recommend_service.nominee.number_of_shareholder.value"),l=null==E?void 0:E.find(e=>e.product_type_id==o.Vo0.NOMINEE_SHAREHOLDER_FEE);_({is_nominee:o.cSK.YES,nominee:{...w,number_of_shareholder:Number(e),shareholder_product_id:null==l?void 0:l.product_id}})},[w]);return(0,d.useEffect)(()=>{v("recommend_service.nominee.number_of_director")||v("recommend_service.nominee.number_of_shareholder")||(x("recommend_service.nominee.number_of_director",null==k?void 0:k.find(e=>e.value==String(null==w?void 0:w.number_of_director))),x("recommend_service.nominee.number_of_shareholder",null==C?void 0:C.find(e=>e.value==String(null==w?void 0:w.number_of_shareholder))))},[null==w?void 0:w.number_of_director,null==w?void 0:w.number_of_shareholder]),(0,n.jsx)("div",{className:"flex flex-wrap gap-5 lg:gap-10 px-4 lg:px-0",children:null==E?void 0:E.map(e=>{let l="recommend_service.nominee.number_of_director",t=[],i=()=>{};switch(e.product_type_id){case o.Vo0.NOMINEE_DIRECTOR_FEE:i=R,t=k,l="recommend_service.nominee.number_of_director";break;case o.Vo0.NOMINEE_SHAREHOLDER_FEE:i=O,t=C,l="recommend_service.nominee.number_of_shareholder"}return(0,n.jsx)("div",{className:"w-full 2xl:w-[400px]",children:(0,n.jsx)(h.$k,{id:l,name:l,control:b,isShowPlaceholder:!0,isDisabled:a,onSelect:i,classNameError:"text-xs",option:t,tooltip:e.product_name,nameLabel:e.product_name,placeholder:null==s?void 0:s.txt_please_select})},e.product_id)})})})),R=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a;let{typeOfService:s}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:C,onNoThanks:R,onBack:E}));let{isLoading:u,configOrder:m,errors:_,getPackages:v}=(0,d.useContext)(S.w_),{orderStore:p,updateRecommendService:h}=(0,r.Fc)(),{getValues:b,setError:y,trigger:j,setValue:N,resetField:w,control:k}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.F1)(m,!0))}),C=(0,d.useCallback)(async()=>!!await j()&&(h({is_service_office:o.cSK.YES,service_office:{product_id:Number(b("recommend_service.service_office.product_id"))}}),!0),[]),E=(0,d.useCallback)(async()=>{},[]),R=(0,d.useCallback)(async()=>{w("recommend_service.service_office.product_id"),h({is_service_office:o.cSK.NO,service_office:void 0})},[]),O=(0,d.useMemo)(()=>v({categoryId:s,productType:o.Vo0.SERVICE_FEE}),[]),T=(0,d.useMemo)(()=>{var e;return null==p?void 0:null===(e=p.recommend_service)||void 0===e?void 0:e.service_office},[null==p?void 0:null===(t=p.recommend_service)||void 0===t?void 0:t.service_office]),A=(0,d.useMemo)(()=>{var e;return(null==p?void 0:null===(e=p.recommend_service)||void 0===e?void 0:e.is_service_office)==o.cSK.YES},[null==p?void 0:null===(a=p.recommend_service)||void 0===a?void 0:a.is_service_office]);return(0,x.VT)(y,_),(0,d.useEffect)(()=>{A&&(!b("recommend_service.service_office.product_id")||b("recommend_service.service_office.product_id")!=(null==T?void 0:T.product_id))&&(null==T?void 0:T.product_id)&&(N("recommend_service.service_office.product_id",null==T?void 0:T.product_id),h({service_office:{product_id:null==T?void 0:T.product_id}}))},[A]),(0,n.jsxs)("div",{className:"px-4 lg:px-0",children:[(0,n.jsx)("h2",{className:"text-24 font-bold font-secondary text-center",children:null==m?void 0:m.lbl_order_serviced_office_package_fee}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center 2xl:grid 2xl:gr
1id-cols-3 gap-3 mt-5",children:null==O?void 0:O.map(e=>(0,n.jsx)(i.mu,{variant:"simple",product:e,control:k,disabled:u,value:e.product_id,name:"recommend_service.service_office.product_id",isRecommended:e.product_is_default===o.cSK.YES,handleChange:()=>{h({is_service_office:o.cSK.YES,service_office:{product_id:e.product_id}})}},e.product_id))})]})})),O=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,a;let{typeOfService:s}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:C,onNoThanks:R,onBack:E}));let{isLoading:u,configOrder:m,listTypeOfService:_,errors:v,getPackages:p}=(0,d.useContext)(i.w_),{orderStore:h,updateRecommendService:b}=(0,r.Fc)(),{getValues:y,setError:j,trigger:N,setValue:w,resetField:k,control:S}=(0,g.mN)({mode:"all",resolver:(0,f.t)((0,c.$G)(m,!0))}),C=(0,d.useCallback)(async()=>!!await N()&&(b({is_merchant_account:o.cSK.YES,merchant_account:{product_id:Number(y("recommend_service.merchant_account.product_id"))}}),!0),[]),E=(0,d.useCallback)(async()=>{},[]),R=(0,d.useCallback)(async()=>{k("recommend_service.merchant_account.product_id"),b({is_merchant_account:o.cSK.NO,merchant_account:void 0})},[]),O=(0,d.useMemo)(()=>p({categoryId:s,productType:o.Vo0.SERVICE_FEE}),[]),T=(0,d.useMemo)(()=>null==_?void 0:_.find(e=>e.category_id==s),[s]),A=(0,d.useMemo)(()=>null==T?void 0:T.category_description,[null==T?void 0:T.category_description]),M=(0,d.useMemo)(()=>{var e;return null==h?void 0:null===(e=h.recommend_service)||void 0===e?void 0:e.merchant_account},[null==h?void 0:null===(t=h.recommend_service)||void 0===t?void 0:t.merchant_account]),I=(0,d.useMemo)(()=>{var e;return(null==h?void 0:null===(e=h.recommend_service)||void 0===e?void 0:e.is_merchant_account)==o.cSK.YES},[null==h?void 0:null===(a=h.recommend_service)||void 0===a?void 0:a.is_merchant_account]);return(0,x.VT)(j,v),(0,d.useEffect)(()=>{I&&(!y("recommend_service.merchant_account.product_id")||y("recommend_service.merchant_account.product_id")!=(null==M?void 0:M.product_id))&&(null==M?void 0:M.product_id)&&(w("recommend_service.merchant_account.product_id",null==M?void 0:M.product_id),b({merchant_account:{product_id:null==M?void 0:M.product_id}}))},[I]),(0,n.jsx)("div",{className:"flex flex-wrap gap-5 px-4 lg:px-0",children:null==O?void 0:O.map(e=>(0,n.jsx)(i.mu,{product:e,control:S,disabled:u,value:e.product_id,name:"recommend_service.merchant_account.product_id",isRecommended:e.product_is_default===o.cSK.YES,desPackage:null==A?void 0:A.find(l=>l.product_id==e.product_id||l.product_id==e.product_addon_related_id),handleChange:()=>{b({is_merchant_account:o.cSK.YES,merchant_account:{product_id:e.product_id}})}},e.product_id))})})),T=(0,d.memo)((0,d.forwardRef)(function(e,l){let{listRecommendServices:t,listBusinessAccountProduct:s}=e;(0,d.useImperativeHandle)(l,()=>({onSubmit:L,onNoThanks:D,onBack:F}));let{isLoading:u,configOrder:m,isRecommendationService:x,setIsLoading:h,handleNextStep:f,updateContextValue:g}=(0,d.useContext)(i.w_),{orderStore:y,clearOrderStore:j,updateOrderStore:S,updateAiRecommendation:T}=(0,r.Fc)(),A=(0,d.useMemo)(()=>Object.values(o.Rj3).filter(e=>"number"==typeof e),[]),M=(0,d.useRef)(Array.from({length:A.length+1},()=>(0,d.createRef)())),I=(0,d.useCallback)(async()=>{if(u)return;h(!0);let{orderStore:e}=r.Fc.getState(),l=await (0,c.Ji)(),t={order_id:null==e?void 0:e.order_id,recommend_service:null==e?void 0:e.recommend_service,gRecaptchaToken:l,url:window.location.href},n=await a.xN.submitBoostBusiness(t),i=(0,a.jN)(n);if(!(null==n?void 0:n.success)&&(p.oR.error((null==n?void 0:n.message)||(null==m?void 0:m.txt_toaster_failed_common)),i&&g({errors:i}),(null==n?void 0:n.statusCode)==c.kG.NotFound)){j(),window.location.reload();return}(null==n?void 0:n.data)&&P(null==n?void 0:n.data),h(!1)},[u]),P=(0,d.useCallback)(e=>{f(),g({errors:{}}),T({recommend_ai:[]}),S({order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code})},[]),L=(0,d.useCallback)(async()=>{var e,l,n;if(u||!await (null===(n=M.current[x])||void 0===n?void 0:null===(l=n.current)||void 0===l?void 0:null===(e=l.onSubmit)||void 0===e?void 0:e.call(l)))return;let i=null==t?void 0:t.findIndex(e=>e.category_id==x),o=null==t?void 0:t[i+1];o?g({isRecommendationService:o.category_id}):I()},[x,I]),F=(0,d.useCallback)(async()=>{var e,l,n;if(u)return;await (null===(n=M.current[x])||void 0===n?void 0:null===(l=n.current)||void 0===l?void 0:null===(e=l.onBack)||void 0===e?void 0:e.call(l));let i=null==t?void 0:t.findIndex(e=>e.category_id==x),o=null==t?void 0:t[i-1];o?g({isRecommendationService:o.category_id}):g({isRecommendationService:void 0})},[x]),D=(0,d.useCallback)(async()=>{var e,l,n;if(u)return;null===(n=M.current[x])||void 0===n||null===(l=n.current)||void 0===l||null===(e=l.onNoThanks)||void 0===e||e.call(l);let i=null==t?void 0:t.findIndex(e=>e.category_id==x),o=null==t?void 0:t[i+1];o?g({isRecommendationService:o.category_id}):I()},[x,I]),K=(0,d.useCallback)((e,l)=>Object.fromEntries(e.map(e=>[e,(0,n.jsx)(l,{typeOfService:e,ref:M.current[e],listBusinessAccountProduct:null==s?void 0:s.filter(l=>l.product_category_id==e)},e)])),[]),B=(0,d.useMemo)(()=>({[o.Rj3.PAYROLL]:(0,n.jsx)(w,{ref:M.current[o.Rj3.PAYROLL]}),[o.Rj3.TAXATION]:(0,n.jsx)(N,{ref:M.current[o.Rj3.TAXATION]}),[o.Rj3.ACCOUNTING]:(0,n.jsx)(b,{ref:M.current[o.Rj3.ACCOUNTING]}
1),...K([o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT],k),...K([o.Rj3.HK_TRADEMARK,o.Rj3.TRADEMARK,o.Rj3.SG_TRADEMARK,o.Rj3.VN_TRADEMARK],C),...K([o.Rj3.HK_NOMINEE,o.Rj3.SG_NOMINEE],E),...K([o.Rj3.HK_MERCHANT_ACCOUNT,o.Rj3.SG_MERCHANT_ACCOUNT],O),...K([o.Rj3.HK_SERVICE_OFFICE,o.Rj3.SG_SERVICE_OFFICE],R)}),[]),G=(0,d.useMemo)(()=>null==y?void 0:y.recommend_service,[null==y?void 0:y.recommend_service]),U=(0,d.useMemo)(()=>[o.Rj3.TRADEMARK,o.Rj3.HK_TRADEMARK,o.Rj3.SG_TRADEMARK,o.Rj3.VN_TRADEMARK],[]),Y=(0,d.useMemo)(()=>[o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT],[]),z=(0,d.useMemo)(()=>[o.Rj3.HK_NOMINEE,o.Rj3.SG_NOMINEE],[]),H=(0,d.useMemo)(()=>[o.Rj3.HK_SERVICE_OFFICE,o.Rj3.SG_SERVICE_OFFICE],[]),q=(0,d.useMemo)(()=>[o.Rj3.HK_MERCHANT_ACCOUNT,o.Rj3.SG_MERCHANT_ACCOUNT],[]);return(0,d.useEffect)(()=>(g({isNoThanksBtn:!0,isSummaryPanel:!0,btnNext:o.w8x.ADD_TO_CART,btnNoThanks:o.YrS.NO_THANKS}),()=>{g({isNoThanksBtn:!1,btnNext:o.w8x.NEXT})}),[]),(0,n.jsxs)("div",{className:"py-5 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("p",{className:"px-4 lg:px-0",children:null==m?void 0:m.txt_order_intro_services_des}),(0,n.jsx)("div",{className:"mt-10 lg:mt-5 flex flex-wrap justify-center gap-3 px-4 lg:px-0",children:null==t?void 0:t.map(e=>{let l;return U.includes(e.category_id)?l=null==G?void 0:G.is_trademark:Y.includes(e.category_id)?l=null==G?void 0:G.is_business_account:z.includes(e.category_id)?l=null==G?void 0:G.is_nominee:H.includes(e.category_id)?l=null==G?void 0:G.is_service_office:q.includes(e.category_id)?l=null==G?void 0:G.is_merchant_account:e.category_id===o.Rj3.ACCOUNTING?l=null==G?void 0:G.is_bookkeeping:e.category_id===o.Rj3.TAXATION?l=null==G?void 0:G.is_taxation:e.category_id===o.Rj3.PAYROLL&&(l=null==G?void 0:G.is_payroll),(0,n.jsxs)("button",{className:(0,c.cn)("py-3 px-1 min-w-[165px] lg:min-w-[174px] flex-shrink-0 rounded-lg outline outline-1 outline-black lg:outline-none relative cursor-default transition-all duration-300",l&&"bg-background-1 !outline-none"),children:[e.category_id==x&&(0,n.jsx)(v.P.span,{layoutId:"select-tab",transition:{type:"spring",bounce:.1,duration:.6},className:(0,c.cn)("absolute inset-0 bg-red-1 rounded-lg outline outline-1 outline-red-1")}),(0,n.jsxs)("p",{className:(0,c.cn)("relative transition-all duration-300 flex gap-1 items-center justify-center text-sm lg:text-md lg:font-semibold",e.category_id==x&&"text-white font-semibold"),children:[l==o.cSK.YES&&(0,n.jsx)(_.Z0,{className:(0,c.cn)("w-3 h-2 flex-shrink-0 *:transition-all *:duration-300",e.category_id==x&&"*:fill-white")}),l==o.cSK.NO&&(0,n.jsx)(_.xf,{className:(0,c.cn)("w-3 h-3 flex-shrink-0 *:transition-all *:duration-300",e.category_id==x&&"*:fill-white")}),(0,n.jsx)("span",{children:e.category_name})]})]},e.category_id)})}),(0,n.jsx)("div",{className:"mt-5",children:(0,n.jsx)(i.T8,{effect:"fadeIn",children:B[x]},x)})]})})),A=(0,d.memo)((0,d.forwardRef)(function(e,l){var t,c,u,_;(0,d.useImperativeHandle)(l,()=>({onSubmit:y,onNoThanks:N,onBack:j}));let{isRecommendationService:v,listOrderProduct:p,listOrderProductInternational:x}=(0,d.useContext)(i.w_),{orderStore:h,updateRecommendService:f}=(0,r.Fc)(),g=(0,d.useRef)(null),b=(0,d.useRef)(null),y=(0,d.useCallback)(async()=>{var e,l,t,n;(null===(l=b.current)||void 0===l?void 0:null===(e=l.onSubmit)||void 0===e?void 0:e.call(l))||null===(n=g.current)||void 0===n||null===(t=n.onSubmit)||void 0===t||t.call(n)},[]),j=(0,d.useCallback)(async()=>{var e,l,t,n;(null===(l=b.current)||void 0===l?void 0:null===(e=l.onBack)||void 0===e?void 0:e.call(l))||null===(n=g.current)||void 0===n||null===(t=n.onBack)||void 0===t||t.call(n)},[]),N=(0,d.useCallback)(async()=>{var e,l,t,n;(null===(l=b.current)||void 0===l?void 0:null===(e=l.onNoThanks)||void 0===e?void 0:e.call(l))||null===(n=g.current)||void 0===n||null===(t=n.onNoThanks)||void 0===t||t.call(n)},[]),w=(0,d.useMemo)(()=>{var e;return null==h?void 0:null===(e=h.start_business)||void 0===e?void 0:e.type_of_service},[null==h?void 0:null===(t=h.start_business)||void 0===t?void 0:t.type_of_service]),k=(0,d.useMemo)(()=>null==p?void 0:p.find(e=>{var l;return e.product_id==(null==h?void 0:null===(l=h.package_of_service)||void 0===l?void 0:l.product_id)}),[null==h?void 0:null===(c=h.package_of_service)||void 0===c?void 0:c.product_id]),{data:S}=(0,s.I)({queryKey:["recommend-service",w],queryFn:async()=>await a.Ly.getTypeOfService({category_is_recommend_service:o.cSK.YES,category_type_of_service_current:String(w)}),enabled:!!w,staleTime:1/0}),C=(0,d.useMemo)(()=>{var e,l,t,n;let i=null==p?void 0:p.filter(e=>[o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT,o.Rj3.ACCOUNTING].includes(e.product_category_id)&&e.product_type_id==o.Vo0.SERVICE_FEE),a=null==k?void 0:null===(e=k.product_free_addon_info)||void 0===e?void 0:e.map(e=>e.product_addon_related_id||e.product_id);(null==a?void 0:a.length)&&(i=null==i?void 0:i.filter(e=>!a.includes(null==e?void 0:e.product_id)));let r=null==k?void 0:null===(l=k.product_optional_addon_info)||void 0===l?void 0:l.map(e=>e.product_id),s=null==k?void 0:null===(t=k.product_optional_addon_info)||void 0===t?void 0:t.map(e=>e.product_addon_related_id);return(null==s?void 0:s.length)&&(i=[...null!=(i=null==i?void 0:i.filter(e=>!s.includes(null==e?void 0:e.product_id)))?i:[],...null!==(n=null==p?void 0:p.filter(e=>null==r?void 0:r.includes(null==e?void 0:e.product_id)))&&void 0!==n?n:[]]),i},[k]),E=(0,d.useMemo)(()=>{let e=null==S?void 0:S.filter(e=>e.category_is_recommend_service==o.cSK.YES&&e.category_id!=w);return(null==C?void 0:C.length)||(e=null==e?void 0:e.filter(e=>![o.Rj3.BUSINESS_ACCOUNT,o.Rj3.ACCOUNTING,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT].includes(e.category_id))),e=null==e?void 0:e.filter(e=>null==p?void 0:p.some(l=>l.product_category_id==e.category_id&&l.product_jurisdiction_country_code==e.category_jurisdiction_country_code&&l.product_type_id==o.Vo0.SERVICE_FEE))},[w,C,S]),R=(0,d.useMemo)(()=>{var e;return(null==h?void 0:null===(e=h.recommend_service)||void 0===e?void 0:e.chosen_service_ids)||[]},[null==h?void 0:null===(u=h.recommend_service)||void 0===u?void 0:u.chosen_service_ids]),O=(0,d.useMemo)(()=>(null==R?void 0:R.length)?null==E?void 0:E.filter(e=>R.includes(e.category_id)):E,[E,null==R?void 0:R.length]),A=(0,d.useMemo)(()=>{var e;
1return null==h?void 0:null===(e=h.ai_recommendation)||void 0===e?void 0:e.recommend_ai},[null==h?void 0:null===(_=h.ai_recommendation)||void 0===_?void 0:_.recommend_ai]),M=(0,d.useMemo)(()=>null==h?void 0:h.company_details,[null==h?void 0:h.company_details]);return(0,d.useEffect)(()=>{if(!(null==A?void 0:A.length))return;let e=null==A?void 0:A.map(e=>(null==p?void 0:p.find(l=>(null==l?void 0:l.product_id)==e))||(null==x?void 0:x.find(l=>(null==l?void 0:l.product_id)==e))),l=null==e?void 0:e.filter(e=>(null==e?void 0:e.product_category_id)==o.Rj3.TRADEMARK),t=null==e?void 0:e.filter(e=>(null==e?void 0:e.product_category_id)==o.Rj3.HK_NOMINEE||(null==e?void 0:e.product_category_id)==o.Rj3.SG_NOMINEE);if(null==e||e.forEach(e=>{e&&([o.Rj3.ACCOUNTING].includes(null==e?void 0:e.product_category_id)?f({is_bookkeeping:o.cSK.YES,bookkeeping:{product_id:null==e?void 0:e.product_id}}):[o.Rj3.PAYROLL].includes(null==e?void 0:e.product_category_id)?f({is_payroll:o.cSK.YES,payroll:{number_of_employee:null==e?void 0:e.product_from_employees,product_id:null==e?void 0:e.product_id}}):[o.Rj3.TAXATION].includes(null==e?void 0:e.product_category_id)?f({is_taxation:o.cSK.YES,taxation:{product_id:null==e?void 0:e.product_id}}):[o.Rj3.BUSINESS_ACCOUNT,o.Rj3.HK_BUSINESS_ACCOUNT,o.Rj3.SG_BUSINESS_ACCOUNT].includes(null==e?void 0:e.product_category_id)?f({is_business_account:o.cSK.YES,business_account:{product_id:null==e?void 0:e.product_id}}):[o.Rj3.HK_MERCHANT_ACCOUNT,o.Rj3.SG_MERCHANT_ACCOUNT].includes(null==e?void 0:e.product_category_id)?f({is_merchant_account:o.cSK.YES,merchant_account:{product_id:null==e?void 0:e.product_id}}):[o.Rj3.HK_SERVICE_OFFICE,o.Rj3.SG_SERVICE_OFFICE].includes(null==e?void 0:e.product_category_id)?f({is_service_office:o.cSK.YES,service_office:{product_id:null==e?void 0:e.product_id}}):[o.Rj3.HK_TRADEMARK,o.Rj3.SG_TRADEMARK,o.Rj3.VN_TRADEMARK].includes(null==e?void 0:e.product_category_id)&&f({is_trademark:o.cSK.YES,trademark:{is_additional_class:o.cSK.NO,product_id:null==e?void 0:e.product_id}}))}),null==l?void 0:l.length){let e=null==l?void 0:l.find(e=>null==e?void 0:e.product_jurisdiction_country_code),t=null==l?void 0:l.find(e=>!(null==e?void 0:e.product_jurisdiction_country_code));f({is_trademark:o.cSK.YES,trademark:{is_united_states:e?o.cSK.YES:o.cSK.NO,united_states:{product_id:null==e?void 0:e.product_id},is_international:t?o.cSK.YES:o.cSK.NO,international:{product_id:null==t?void 0:t.product_id}}})}if(null==t?void 0:t.length){let e=null==t?void 0:t.find(e=>(null==e?void 0:e.product_type_id)==o.Vo0.NOMINEE_DIRECTOR_FEE),l=null==t?void 0:t.find(e=>(null==e?void 0:e.product_type_id)==o.Vo0.NOMINEE_SHAREHOLDER_FEE);f({is_nominee:o.cSK.YES,nominee:{number_of_director:e?null==M?void 0:M.number_of_director:0,number_of_shareholder:l?null==M?void 0:M.number_of_shareholder:0,director_product_id:null==e?void 0:e.product_id,shareholder_product_id:null==l?void 0:l.product_id}})}},[]),v?(0,n.jsx)(T,{ref:g,listRecommendServices:O,listBusinessAccountProduct:C}):(0,n.jsx)(m,{ref:b,listRecommendServices:E,filteredChosenServices:O})}))},88349:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SwiperHighlights:()=>d});var n=t(38694),i=t(29432),o=t(69054),a=t(2508),r=t(61088),s=t(917);let d=e=>{let{pagination:l="swiper-pagination-highlights",paginationclassname:t,content:d,className:c}=e;return(0,o._F)(1024)?(0,n.jsxs)("div",{className:(0,a.cn)("grid grid-cols-1 mt-5",c),children:[(0,n.jsx)(s.RC,{slidesPerView:1,spaceBetween:8,pagination:{el:".".concat(l),clickable:!0},modules:[r.dK],className:"!w-full !px-[1px]",children:null==d?void 0:d.map((e,l)=>(0,n.jsx)(s.qr,{className:"!w-full",children:(0,n.jsx)(i.wR,{html:e})},l))}),(0,n.jsx)("div",{className:(0,a.cn)("swiper-pagination-v1 flex justify-center mt-5 transition-all duration-300 ease-in",l,t)})]}):(0,n.jsx)("div",{className:(0,a.cn)("flex *:flex-1 gap-5 mt-5",c),children:null==d?void 0:d.map((e,l)=>(0,n.jsx)(i.wR,{html:e},l))})}},88587:(e,l,t)=>{"use strict";t.r(l),t.d(l,{FormStartNow:()=>p});var n=t(38694),i=t(93220),o=t(48873),a=t(93693);let r=async(e,l)=>{let t=new URLSearchParams(l).toString(),n=await a.G.get("".concat(o._cw,"/article/get-by-type-keyword/").concat(e,"?").concat(t));if(n.success)return(null==n?void 0:n.data)||[]};var s=t(69054),d=t(2508),c=t(94674),u=t(45734),m=t(29722);let _={border:"1px solid #1D1D1D",":hover":{border:"1px solid #1D1D1D"},height:"52px",fontWeight:"500",fontSize:"16px"},v={color:"#1D1D1D",fontWeight:"500",fontSize:"16px"},p=e=>{var l;let{t,area:a=o.cSK.YES,country:p=o.cSK.YES,state:x=o.cSK.YES,incorp:h=o.cSK.NO}=e,{langLocationSlashed:f,siteKeywords:g,location:b}=(0,u.useContext)(i.BR),{listAllState:y,listCountriesIncorporationGroupByArea:j,listCountries:N}=(0,s.rZ)(),w=null===(l=(0,d.Ol)(null==t?void 0:t.config_json_types_of_incorp))||void 0===l?void 0:l[b],k=(0,d.Ol)(null==t?void 0:t.config_json_countries_jurisdiction),{control:S,watch:C,setValue:E,reset:R,handleSubmit:O}=(0,m.mN)({mode:"all",shouldFocusError:!1}),T=O(async e=>
1{var l,t,n,i,a,s,d,c;let{type_of_incorp:u}=e,m=null!==(l=null==u?void 0:u.keyword)&&void 0!==l?l:"",_=null!==(t=null==u?void 0:u.value)&&void 0!==t?t:"";if(b===o.Oli){let e=await r(g[o.zkc],{[o.uBs.ORDER_BY]:o.QvU.ARTICLE_ORDER,[o.uBs.JURISDICTION_COUNTRY_CODE]:null!==(a=null===(n=C("country_code"))||void 0===n?void 0:n.value)&&void 0!==a?a:""});_=(null==e?void 0:null===(i=e[0])||void 0===i?void 0:i.article_keyword)?"".concat(f,"/").concat(g[o.zkc],"/").concat(e[0].article_keyword):"".concat(f,"/").concat(g[o.BPf])}if("us"===b){let e=await r(g[o.vl8],{[o.uBs.ORDER_BY]:o.QvU.ARTICLE_ORDER,[o.uBs.JURISDICTION_STATE_CODE]:null!==(c=null===(s=C("state_code"))||void 0===s?void 0:s.value)&&void 0!==c?c:"",[o.uBs.TYPE_PARENT]:String(m)||""});(null==e?void 0:null===(d=e[0])||void 0===d?void 0:d.article_keyword)&&(_="".concat(f,"/").concat(g[o.vl8],"/").concat(e[0].article_keyword))}_&&(window.location.href=_)}),A=null==N?void 0:N.filter(e=>e.country_code&&(null==k?void 0:k.includes(e.country_code))),M=null==y?void 0:y.filter(e=>{var l;return e.state_country_code==(null===(l=C("country_code"))||void 0===l?void 0:l.value)});return(0,u.useEffect)(()=>{let e=null==N?void 0:N.find(e=>e.country_code==b);e&&R({country_code:e,state_code:{label:"us"==b?null==t?void 0:t.plc_state_want_to_expand_business:null==t?void 0:t.plc_state_expand_business,value:""}})},[b,N]),(0,n.jsxs)("div",{className:"grid gap-5",children:[a==o.cSK.YES&&(0,n.jsx)(c.$k,{control:S,id:"area_id",name:"area_id",placeholder:null==t?void 0:t.plc_area_expand_business,option:j,isShowPlaceholder:!0,controlStyle:_,placeholderStyle:v,onSelect:()=>{E("country_code",{label:null==t?void 0:t.plc_country_expand_business,value:""}),E("state_code",{label:null==t?void 0:t.plc_state_expand_business,value:""})}}),p==o.cSK.YES&&!!(null==A?void 0:A.length)&&(0,n.jsx)(c.$k,{control:S,id:"country_code",name:"country_code",placeholder:null==t?void 0:t.plc_country_expand_business,option:A,isShowPlaceholder:!0,controlStyle:_,placeholderStyle:v,onSelect:()=>{E("state_code",{label:null==t?void 0:t.plc_state_expand_business,value:""})}}),x==o.cSK.YES&&!!(null==M?void 0:M.length)&&(0,n.jsx)(c.$k,{control:S,id:"state_code",name:"state_code",placeholder:null==t?void 0:t.plc_state_expand_business,option:M,isShowPlaceholder:!0,controlStyle:_,placeholderStyle:v}),h==o.cSK.YES&&w&&(0,n.jsx)(c.$k,{control:S,id:"type_of_incorp",name:"type_of_incorp",placeholder:null==t?void 0:t.plc_service_expand_business,option:w,isShowPlaceholder:!0,controlStyle:_,placeholderStyle:v}),(0,n.jsx)(c.$n,{className:"uppercase w-[240px] h-[54px] lg:!w-[226px] lg:!h-[48px] text-md lg:!text-18 font-bold mx-auto",size:"lg",onClick:T,children:null==t?void 0:t.txt_start_now})]})}},89401:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SetUpNow:()=>u});var n=t(38694),i=t(29432),o=t(48873),a=t(69054),r=t(8256),s=t(2508),d=t(45734),c=t(17978);let u=(0,d.memo)(()=>{let{step:e,paymentStatus:l,isSummaryPanel:t,isSummaryAiHelper:u,isRecommendationService:m,handleBackStep:_,updateContextValue:v}=(0,d.useContext)(i.w_),{orderStore:p}=(0,r.Fc)(),x=(0,d.useMemo)(()=>null==p?void 0:p.order_ai,[null==p?void 0:p.order_ai]),h=(0,a._F)(1024),f=(0,d.useMemo)(()=>Object.values(o.DHf).filter(e=>"number"==typeof e),[]),g=(0,d.useRef)(Array.from({length:f.length+1},()=>(0,d.createRef)())),b=(0,d.useCallback)(async()=>{var l,t,n;v({errors:{}}),null===(n=g.current[e])||void 0===n||null===(t=n.current)||void 0===t||null===(l=t.onSubmit)||void 0===l||l.call(t)},[e]),y=(0,d.useCallback)(async()=>{var l,t,n;null===(n=g.current[e])||void 0===n||null===(t=n.current)||void 0===t||null===(l=t.onNoThanks)||void 0===l||l.call(t)},[e]),j=(0,d.useCallback)(async()=>{var l,t,n;(null===(n=g.current[e])||void 0===n?void 0:null===(t=n.current)||void 0===t?void 0:null===(l=t.onBack)||void 0===l?void 0:l.call(t))||_()},[e]),N=(0,d.useMemo)(()=>({[o.DHf.STEP_START_BUSINESS]:(0,n.jsx)(c.Xi,{ref:g.current[o.DHf.STEP_START_BUSINESS]}),[o.DHf.STEP_CONTACT_INFO]:(0,n.jsx)(c.TH,{ref:g.current[o.DHf.STEP_CONTACT_INFO]}),[o.DHf.STEP_CHOOSE_PACKAGE]:x?(0,n.jsx)(c.LX,{ref:g.current[o.DHf.STEP_CHOOSE_PACKAGE]}):(0,n.jsx)(c.Ak,{ref:g.current[o.DHf.STEP_CHOOSE_PACKAGE]}),[o.DHf.STEP_ENTITY_NAME]:(0,n.jsx)(c.dv,{ref:g.current[o.DHf.STEP_ENTITY_NAME]}),[o.DHf.STEP_UPGRADE_PACKAGE]:(0,n.jsx)(c.Hu,{ref:g.current[o.DHf.STEP_UPGRADE_PACKAGE]}),[o.DHf.STEP_COMPANY_MEMBER]:(0,n.jsx)(c.w$,{ref:g.current[o.DHf.STEP_COMPANY_MEMBER]}),[o.DHf.STEP_BOOST_BUSINESS]:(0,n.jsx)(c.qm,{ref:g.current[o.DHf.STEP_BOOST_BUSINESS]}
1),[o.DHf.STEP_COMPANY_DETAILS]:(0,n.jsx)(c.ag,{ref:g.current[o.DHf.STEP_COMPANY_DETAILS]}),[o.DHf.STEP_ORDER_REVIEW]:(0,n.jsx)(c.pC,{ref:g.current[o.DHf.STEP_ORDER_REVIEW]}),[o.DHf.STEP_PAYMENT]:(0,n.jsx)(c.PK,{ref:g.current[o.DHf.STEP_PAYMENT]}),[o.DHf.STEP_CONFIRMATION]:(0,n.jsx)(c.Y2,{})}),[x]),w=(0,d.useMemo)(()=>[o.DHf.STEP_CHOOSE_PACKAGE].includes(e)||m?"lg:max-w-[984px]":"lg:max-w-[800px]",[e,m,x]);return((0,d.useEffect)(()=>{if(e&&!N[e])return(0,s.Fn)()},[]),N[e]&&p)?(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)(c.Vv,{onBack:j}),(0,n.jsx)("div",{className:"lg:py-[60px] flex flex-col flex-1",children:(0,n.jsx)("div",{className:"flex flex-col w-full max-w-[1400px] mx-auto lg:px-4 3xl:px-0 flex-1",children:l?N[o.DHf.STEP_CONFIRMATION]:(0,n.jsxs)("div",{className:(0,s.cn)("flex flex-col justify-between lg:flex-row lg:justify-center gap-5 lg:gap-10 flex-1",!t&&"!gap-0"),children:[(0,n.jsxs)("div",{className:(0,s.cn)("w-full transition-all duration-300",w),children:[N[e],!h&&(0,n.jsx)(c.VJ,{onSubmit:b,onNoThanks:y,onBack:j})]}),(0,n.jsx)("div",{className:(0,s.cn)("transition-all duration-300 flex",h?"sticky bottom-0 left-0 px-4 pt-2 pb-5 z-[2] w-full bg-white self-end shadow-35":t?"w-[clamp(350px,35dvw,376px)]":"w-0 overflow-hidden"),children:(0,n.jsx)(i.T8,{effect:"fadeIn",className:(0,s.cn)("transition-all duration-300 h-fit w-full",!h&&(0,s.cn)("flex-shrink-0 w-[clamp(350px,35dvw,376px)]",t&&"sticky top-[100px]")),children:u?(0,n.jsx)(c.p4,{onSubmit:b,onNoThanks:y,onBack:j}):(0,n.jsx)(c.BD,{onSubmit:b,onNoThanks:y,onBack:j})},"summary-".concat(u))})]})})})]}):null});u.displayName="SetUpNow"},89417:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HeaderDesktop:()=>_});var n=t(38694),i=t(93220),o=t(48873),a=t(2508),r=t(36791),s=t.n(r),d=t(45734),c=t(62821),u=t(63025),m=t(47070);let _=e=>{let{headerMenu:l}=e,{langLocationSlashed:t}=(0,d.useContext)(i.BR);return(0,n.jsx)("nav",{className:"hidden xl:!flex gap-8 items-center justify-center flex-1",children:null==l?void 0:l.map((e,l)=>{var i,r,d,_;return(0,n.jsxs)(c.C4,{children:[(0,n.jsxs)(c.aZ,{className:'py-8 text-14 font-bold inline-flex gap-1 items-center justify-center after:content-[""] after:absolute after:bottom-0 after:left-0 after:w-0 group-focus:after:w-full after:h-[6px] after:bg-primary after:transition-all after:duration-200',children:[(0,n.jsxs)("p",{className:"relative",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e.menu_name||""}}),(null==e?void 0:e.menu_link)&&!(null==e?void 0:null===(i=e.menu_children)||void 0===i?void 0:i.length)&&(0,n.jsx)(s(),{href:"".concat(t,"/").concat(e.menu_link),title:e.menu_name,className:"absolute inset-0"})]}),!!(null==e?void 0:null===(r=e.menu_children)||void 0===r?void 0:r.length)&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",className:"group-focus:rotate-180 transition-transform duration-200 flex-shrink-0",children:(0,n.jsx)("path",{d:"M10 1.5049C9.94303 1.6926 9.81173 1.82417 9.68042 1.95809C8.26619 3.40092 6.85298 4.84427 5.44156 6.28945C5.26785 6.46723 5.07038 6.54946 4.83306 6.46853C4.74441 6.43825 4.6573 6.37795 4.59037 6.31007C3.12198 4.81477 1.65641 3.31686 0.19134 1.81817C-0.0633535 1.55764 -0.0633535 1.23184 0.187509 0.970532C0.299145 0.854104 0.409503 0.735586 0.530336 0.630122C0.733938 0.452607 1.02465 0.458611 1.22851 0.63456C1.26325 0.664581 1.2957 0.697473 1.32788 0.730366C2.52242 1.95052 3.71669 3.17067 4.91072 4.39135C4.93805 4.41954 4.96053 4.45269 5.029 4.50543C5.04764 4.47045 5.05991 4.42868 5.08622 4.40153C6.29097 3.16832 7.49674 1.93616 8.70277 0.70426C8.92758 0.474535 9.23617 0.428852 9.44872 0.618114C9.66407 0.809986 9.89935 0.991417 10 1.2851V1.50464V1.5049Z",fill:"#3B3A3C"})})]}),!!(null==e?void 0:null===(d=e.menu_children)||void 0===d?void 0:d.length)&&(0,n.jsxs)(c.n4,{className:(0,a.cn)("bg-white rounded-b-xl border-t border-background shadow-3 text-left",(null==e?void 0:e.menu_style)==="mega-menu"&&"w-full max-w-7xl p-10 left-1/2 -translate-x-1/2",(null==e?void 0:e.menu_style)==="dropdown"&&"min-w-[289px] w-fit p-5"),children:[(null==e?void 0:e.menu_style)==="mega-menu"&&(0,n.jsxs)("div",{className:"flex",children:[(null==e?void 0:e.menu_keyword)==o.vl8&&(0,n.jsx)(u.BusinessMenu,{business:e}),(null==e?void 0:e.menu_keyword)==o.zkc&&(0,n.jsx)(m.JurisdictionMenu,{jurisdiction:e})]}),(null==e?void 0:e.menu_style)==="dropdown"&&(0,n.jsx)("div",{className:"grid gap-3",children:null==e?void 0:null===(_=e.menu_children)||void 0===_?void 0:_.map((e,l)=>(0,n.jsx)(s(),{href:"".concat(t,"/").concat(e.menu_link),title:e.menu_name,className:"text-16 hover:text-primary capitalize",children:e.menu_name},l))})]})]},l)})})}},90599:(e,l,t)=>{"use strict";t.r(l),t.d(l,{PhoneInputNumber:()=>_});var n=t(38694),i=t(48873),o=t(2508),a=t(17671),r=t(82001),s=t.n(r);t(85932),t(36051);var d=t(45734),c=t(29722);t(35337);var u=function(e){return e[e.IS_POSSIBLE=0]="IS_POSSIBLE",e[e.INVALID_COUNTRY_CODE=1]="INVALID_COUNTRY_CODE",e[e.TOO_SHORT=2]="TOO_SHORT",e[e.TOO_LONG=3]="TOO_LONG",e[e.NOT_A_NUMBER=4]="NOT_A_NUMBER",e}(u||{});let m={0:"IS_POSSIBLE",1:"INVALID_COUNTRY_CODE",2:"TOO_SHORT",3:"TOO_LONG",4:"NOT_A_NUMBER"},_=e=>{let{id:l,className:t,control:r,setError:u,nameLabel:_,classNameInput:v="",classSpace:p,countryCodeSelected:x,name:h,nameCode:f,namePrefix:g,classNameLabel:b,classNameError:y="absolute -bottom-5 left-0",placeholder:j,isEdit:N=!1,isIconPhone:w,classNameIcon:k,...S}=e,C=(0,d.useRef)(null),{field:E,fieldState:R}=(0,c.as)({name:h,control:r}),{field:O}=(0,c.as)({name:f||"phone_country_code",control:r}),{field:T}=(0,c.as)({name:g||"phone_prefix",control:r}),[A,M]=(0,d.useState)(void 0);return(0,d.useEffect)(()=>{let e=document.querySelector(l?"#".concat(l):"#signup-phone");if(e){if(C.current=s()(e,{separateDialCode:!0,initialCountry:A||x||("string"==typeof(0,a.getCookie)(i.Avz.COUNTRY)?(0,a.getCookie)(i.Avz.COUNTRY).toLowerCase():void 0),preferredCountries:[x||("string"==typeof(0,a.getCookie)(i.Avz.COUNTRY)?(0,a.getCookie)(i.Avz.COUNTRY).toLowerCase():void 0)]}),E.value){var t,n,o,r;C.current.setNumber(E.value),E.onChange(E.value);let e=(null===(n=C.current)||void 0===n?void 0:null===(t=n.getSelectedCountryData())||void 0===t?void 0:t.dialCode)||"",l=(null===(r=C.current)||void 0===r?void 0:null===(o=r.getSelectedCountryData())||void 0===o?void 0:o.iso2)||"";T.onChange("+".concat(e)),O.onChange(l)}M("");let l=()=>{var e,l,t,n,i,o,a;let r=(null===(e=C.current)||void 0===e?void 0:e.getNumber())||"",s=(null===(t=C.current)||void 0===t?void 0:null===(l=t.getSelectedCountryData())||void 0===l?void 0:l.dialCode)||"",d=(null===(i=C.current)||void 0===i?void 0:null===(n=i.get
1SelectedCountryData())||void 0===n?void 0:n.iso2)||"";M(d),r.startsWith("+".concat(s))?(r=r.replace("+".concat(s),""),null===(a=C.current)||void 0===a||a.setNumber(r),E.onChange("+".concat(s).concat(r))):E.onChange(r),T.onChange("+".concat(s)),O.onChange(d);let c=null==C?void 0:null===(o=C.current)||void 0===o?void 0:o.getValidationError();return 0!==c?u(E.name,{type:m[c||4],message:"Please enter a valid number."}):r.match(/^(\+)?\d+$/)?void 0:u(E.name,{type:m[4],message:"Please enter a valid number."})};return e.setAttribute("placeholder",j||""),e.addEventListener("blur",l),e.addEventListener("change",l),()=>{var t;null===(t=C.current)||void 0===t||t.destroy(),e.removeEventListener("blur",l),e.removeEventListener("change",l)}}},[E.value]),(0,n.jsx)("div",{className:"".concat(t," text-14"),"data-te-input-wrapper-init":!0,children:(0,n.jsxs)("div",{className:(0,o.cn)("relative flex flex-col gap-2",p),children:[(0,n.jsx)("label",{htmlFor:l||"signup-phone",className:(0,o.cn)("font-semibold text-black",S.required&&"label-required",b),children:_}),(0,n.jsx)("input",{className:(0,o.cn)("text-md text-black border-gray-6 h-13 rounded-xl border px-2.5 placeholder:text-md placeholder:text-placeholder w-full appearance-none focus:outline-none focus:ring-0",(null==R?void 0:R.error)&&"border-primary",N&&"bg-gray-22",v),id:l||"signup-phone",maxLength:20,pattern:"[0-9]*",type:"tel",inputMode:"numeric",formNoValidate:!0,onKeyPress:e=>{/[0-9+]/.test(e.key)||e.preventDefault()},onPaste:e=>{var l;let t=((null===(l=e.clipboardData)||void 0===l?void 0:l.getData("text"))||"").replace(/\s+/g,"");/^\+?\d+$/.test(t)||e.preventDefault()},...S}),w&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",className:(0,o.cn)("absolute h-5 w-5 cursor-pointer right-2 top-10",k),children:(0,n.jsx)("path",{d:"M18.5619 15.4576C18.521 15.2048 18.3625 14.9887 18.1252 14.8603L14.6146 12.7913L14.5857 12.7752C14.4385 12.7015 14.2759 12.6637 14.1113 12.6649C13.8172 12.6649 13.5363 12.7764 13.3414 12.9719L12.3052 14.0088C12.2609 14.051 12.1164 14.112 12.0725 14.1142C12.0605 14.1132 10.8669 14.0272 8.66943 11.8289C6.47587 9.63517 6.38281 8.43752 6.38207 8.43752C6.3833 8.37628 6.44354 8.23224 6.4864 8.18765L7.36999 7.30405C7.68126 6.99196 7.77457 6.47459 7.58991 6.07382L5.63856 2.40101C5.49676 2.10901 5.22125 1.92871 4.91562 1.92871C4.69937 1.92871 4.49072 2.01837 4.32762 2.18127L1.91904 4.58515C1.6881 4.81493 1.48924 5.21668 1.44589 5.54003C1.42483 5.69461 0.997485 9.38432 6.05464 14.4437C10.348 18.7377 13.6957 19.0714 14.6202 19.0714C14.7328 19.0728 14.8454 19.067 14.9572 19.054C15.2795 19.0108 15.6806 18.8124 15.9101 18.5824L18.3167 16.1753C18.5131 15.9779 18.6028 15.717 18.5619 15.4576Z",fill:"#3B3A3C"})}),(null==R?void 0:R.error)&&(0,n.jsx)("div",{className:(0,o.cn)("text-primary",y),dangerouslySetInnerHTML:{__html:(null==R?void 0:R.error.message)||""}})]})})}},91866:(e,l,t)=>{"use strict";t.d(l,{p:()=>r});var n=t(38694),i=t(74323),o=t(36791),a=t.n(o);let r=e=>{var l;let{article:t,langUrlSlashed:o,classNameTitle:r="line-clamp-3 min-h-[74px]"}=e;return(0,n.jsxs)(a(),{href:"".concat(o,"/").concat(null==t?void 0:null===(l=t.type)||void 0===l?void 0:l.type_keyword,"/").concat(null==t?void 0:t.article_keyword),title:null==t?void 0:t.article_name,className:"block rounded-xl group bg-white shadow-9",children:[(0,n.jsx)("div",{className:"py-5 px-4 border-b border-blue-2",children:(0,n.jsx)(i.default,{src:(null==t?void 0:t.article_thumbnail)||"/",alt:(null==t?void 0:t.article_name)||"",title:null==t?void 0:t.article_name,width:311,height:311,className:"w-full h-auto object-cover object-center max-w-[311px] mx-auto shadow-9"})}),(0,n.jsx)("div",{className:"p-5",children:(0,n.jsx)("h3",{className:"text-18 font-semibold text-black transition-all duration-300 group-hover:text-primary ".concat(r),children:null==t?void 0:t.article_name})})]})}},92251:(e,l,t)=>{"use strict";t.r(l),t.d(l,{DateRangeSelect:()=>o});var n=t(38694),i=t(75808);let o=e=>{let{control:l,name:t,register:o,nameLabel:a,classNameLabel:r,isRequired:s,nameMonth:d,nameYear:c,errorMessage:u,dataMonth:m,dataYear:_,isDisabled:v,t:p,classNameError:x="text-12 font-normal text-red-1 mt-1 leading-[18px]"}=e;return(0,n.jsxs)("div",{className:"w-full relative flex flex-col gap-1",children:[(0,n.jsx)("input",{type:"text",id:t,className:"hidden input-primary",required:s,...o(t)}),(0,n.jsx)("label",{htmlFor:t,className:"".concat(r||"","\n ").concat(s&&"label-required"," text-14 font-normal leading-1-2 text-black-2"),children:a}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-1 lg:!gap-2 w-full *:flex-1",children:[(0,n.jsx)(i.$,{id:d,name:d,isRequired:s,control:l,option:m,isDisabled:v,placeholder:(null==p?void 0:p.txt_month)||"Month",isShowPlaceholder:!0,isErrors:!!u}),(0,n.jsx)(i.$,{id:c,name:c,isRequired:s,control:l,option:_,isDisabled:v,placeholder:(null==p?void 0:p.txt_year)||"Year",isShowPlaceholder:!0,isErrors:!!u})]}),u&&(0,n.jsx)("div",{className:x,children:u})]})]})}},92921:(e,l,t)=>{"use strict";t.r(l),t.d(l,{Header:()=>y});var n=t(38694),i=t(93220),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(5203),m=t(42500),_=t(74323),v=t(36791),p=t.n(v),x=t(50280),h=t(45734),f=t(62821),g=t(75991),b=t(9889);let y=()=>{var e;let{langLocationSlashed:l,lang:t,location:v,currentLocation:y,siteKeywords:j,menuHeader:N,configGlobal:w}=(0,h.useContext)(i.BR),[k,S]=(0,h.useState)(!1),{locations:C}=(0,r.rZ)(),E=(0,x.useSelectedLayoutSegment)(),R=(0,r._F)(1280),{isUserLoggedIn:O}=(0,r.Py)(),T=(0,r.qK)(),A=(0,r.Yq)(),{clearOrderStore:M}=(0,s.Fc)(),I=(0,h.useMemo)(()=>{var e;return null==C?void 0:null===(e=C.find(e=>e.country_code===v))||void 0===e?void 0:e.languages},[C]),P=[{title:(null==w?void 0:w.lbl_menu_my_profile)||"",link:"".concat(l,"/").concat(j[o.RoG],"/").concat(j[o.HMW])},{title:(null==w?void 0:w.lbl_menu_change_password)||"",link:"".concat(l,"/").concat(j[o.RoG],"/").concat(j[o.xwy])}];return T&&("(auth)"!==E||R)&&"(ads)"!==E&&"(single)"!==E&&"(order)"!==E?(0,n.jsx)("header",{className:"sticky top-0 z-10 bg-white ",children:(0,n.jsx)("div",{className:"py-4 xl:!py-0 px-4",children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4 max-w-[1480px] mx-auto",children:[(0,n.jsx)(p(),{href:"".concat(l,"/"),title:o.Opz,className:"flex items-center",children:(0,n.jsx)(_.default,{src:"https://d21l9vkgwnizti.cloudfront.net/uploads/one-ibc-logo.svg",title:o.Opz,alt:o.Opz,width:"148",he
1ight:"36",className:"w-[114px] h-[28px] lg:w-[134px] lg:h-[33px] flex-shrink-0",priority:!0})}),k&&(0,n.jsx)("div",{className:"max-w-[906px] w-full py-4 transition-all duration-300",children:(0,n.jsx)(h.Suspense,{children:(0,n.jsx)(c.ZU,{isOpenSearch:k,setIsOpenSearch:S,textSearch:(null==w?void 0:w.txt_search_for)||""})})}),!k&&(0,n.jsx)(g.Ep,{headerMenu:N}),(0,n.jsxs)("div",{className:"hidden xl:flex gap-3 items-center",children:[!k&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)(f.C4,{children:[(0,n.jsxs)(f.aZ,{className:"flex px-2 py-[6px] items-center",children:[(0,n.jsx)(_.default,{src:(0,d.Kz)(v),alt:v,title:v,width:"20",height:"20"}),(0,n.jsx)(m.te,{})]}),!!(null==C?void 0:C.length)&&(0,n.jsx)(f.n4,{className:"bg-white rounded-b-xl border-t border-background shadow-3 text-left w-[289px] p-5 max-h-80 overflow-y-auto scrollbar-ibc",children:null==C?void 0:C.map((e,l)=>{var t,i,a,r;return(null==e?void 0:e.country_code)==o.Mf1&&(null==w?void 0:w.txt_oneibc_hyperlink_top_location_global_website)?(0,n.jsxs)("a",{className:"flex gap-2 px-2 py-3 items-center cursor-pointer hover:bg-orange hover:text-primary",href:(null==e?void 0:e.country_code)==o.Mf1&&(null==w?void 0:w.txt_oneibc_hyperlink_top_location_global_website)?null==w?void 0:w.txt_oneibc_hyperlink_top_location_global_website:"".concat(A(null==e?void 0:null===(r=e.languages)||void 0===r?void 0:null===(a=r[0])||void 0===a?void 0:a.location_lang_code,null==e?void 0:e.country_code)),title:null==e?void 0:e.country_name,onClick:M,rel:"nofollow",children:[(0,n.jsx)(_.default,{src:(0,d.Kz)((null==e?void 0:e.country_code)||o.Mf1),alt:(null==e?void 0:e.country_name)||"",title:null==e?void 0:e.country_name,width:"20",height:"20"}),(0,n.jsx)("span",{className:"text-16",children:null==e?void 0:e.country_name})]},l):(0,n.jsxs)("a",{className:"flex gap-2 px-2 py-3 items-center cursor-pointer hover:bg-orange hover:text-primary",href:"".concat(A(null==e?void 0:null===(i=e.languages)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.location_lang_code,null==e?void 0:e.country_code)),title:null==e?void 0:e.country_name,onClick:M,children:[(0,n.jsx)(_.default,{src:(0,d.Kz)((null==e?void 0:e.country_code)||o.Mf1),alt:(null==e?void 0:e.country_name)||"",title:null==e?void 0:e.country_name,width:"20",height:"20"}),(0,n.jsx)("span",{className:"text-16",children:null==e?void 0:e.country_name})]},l)})})]}),(0,n.jsxs)(f.C4,{children:[(0,n.jsxs)(f.aZ,{className:"flex px-2 py-[6px] items-center",children:[(0,n.jsx)("span",{className:"text-16 font-semibold uppercase",children:t}),(0,n.jsx)(m.te,{})]}),!!(null==I?void 0:I.length)&&(0,n.jsx)(f.n4,{className:"bg-white rounded-b-xl border-t border-background shadow-3 text-left cursor-default p-5",children:null==I?void 0:I.map((e,l)=>(0,n.jsx)("a",{className:"flex gap-2 px-2 py-3 items-center cursor-pointer hover:bg-orange hover:text-primary",href:"".concat(A(null==e?void 0:e.location_lang_code,v)),title:null==e?void 0:e.language_name,children:(0,n.jsx)("span",{className:"text-16",children:null==e?void 0:e.language_name})},l))})]}),(0,n.jsxs)(p(),{href:"tel:".concat(null==y?void 0:null===(e=y.location_hotline)||void 0===e?void 0:e.replace(/ /g,"")),title:null==y?void 0:y.location_hotline,target:"_blank",className:"flex items-center gap-[2px] px-2 py-[6px] border border-black-2 rounded-[20px]",children:[(0,n.jsx)(m.Es,{className:"w-4 h-4"}),(0,n.jsx)("span",{className:"text-16 font-semibold",children:null==y?void 0:y.location_hotline})]})]}),(0,n.jsx)("div",{className:"w-10 h-10 rounded-full bg-black flex items-center justify-center cursor-pointer",onClick:()=>S(!0),children:(0,n.jsx)(m.WI,{className:"w-5 h-5 *:fill-white"})})]}),O?(0,n.jsxs)(f.C4,{className:"w-10 h-10 rounded-full bg-black flex items-center justify-center",children:[(0,n.jsx)(m.Ti,{className:"w-6 h-6 *:fill-white"}),!!(null==P?void 0:P.length)&&(0,n.jsxs)(f.n4,{className:"bg-white rounded-b-xl border-t border-background shadow-3 text-left w-[289px] p-5 max-h-80 overflow-y-auto scrollbar-ibc",children:[null==P?void 0:P.map((e,l)=>(0,n.jsx)("a",{className:"flex gap-2 px-2 py-3 items-center cursor-pointer hover:bg-orange hover:text-primary",href:"".concat(e.link),title:e.title,children:(0,n.jsx)("span",{className:"text-16",children:e.title})},l)),(0,n.jsx)("div",{className:"flex w-full gap-2 px-2 py-3 items-center cursor-pointer hover:bg-orange hover:text-primary",onClick:()=>(0,a.m8)("".concat(l,"/").concat(j[o.eoY])),children:(0,n.jsx)("span",{className:"text-16",children:null==w?void 0:w.lbl_sign_out})})]})]}):(0,n.jsx)(p(),{href:"".concat(l,"/").concat(j[o.eoY]),title:null==w?void 0:w.txt_log_in,className:"w-10 h-10 rounded-full bg-black flex items-center justify-center",children:(0,n.jsx)(m.Ti,{className:"w-6 h-6 *:fill-white"})}),v==o.Oli?(0,n.jsx)(u.$,{href:"".concat(l,"/").concat(j[o.Gh2]),title:null==w?void 0:w.txt_contact_us,className:"text-md font-semibold px-3 py-2 lg:py-2.5 h-[35px] lg:h-[46px] w-[124px] lg:w-[160px]",children:null==w?void 0:w.txt_contact_us}):(0,n.jsx)(u.$,{href:"".concat(l,"/").concat(j[o.BPf]),title:v==o.Y72?null==w?void 0:w.txt_get_started:null==w?void 0:w.btn_set_up_now,className:"text-md font-semibold px-3 py-2 lg:py-2.5 h-[35px] lg:h-[46px] w-[124px] lg:w-[160px]",reloadDocument:!0,children:v==o.Y72?null==w?void 0:w.txt_get_started:null==w?void 0:w.btn_set_up_now})]}),R&&(0,n.jsx)(b.M,{headerMenu:N,dropDownMyaccount:P,isUserLoggedIn:O})]})})}):null}},93220:(e,l,t)=>{"use strict";t.d(l,{BR:()=>n.B,Cp:()=>i.MakePaymentContext,j3:()=>o.MyAccountContext,w_:()=>a.OrderContextV2});var n=t(80744);t(81805);var i=t(72639),o=t(62147),a=t(39763)},93409:(e,l,t)=>{"use strict";t.d(l,{w:()=>_});var n=t(38694),i=t(5203),o=t(13208),a=t(74323),r=t(36791),s=t.n(r),d=t(31397),c=t(45734),u=t(68615),m=t(5164);let _=e=>{let{html:l,customTags:t,components:r}=e;if(!l||"string"!=typeof l)return l;l=l.replace(/\r/g,"").replace(/\n\s*\n/g," ").replace(/\s{2,}/g," ").replace(/<p>( |\s)*<\/p>|<p><\/p>/g,"").trim();let _={replace:e=>{var l,v,p,x,h,f;if(!e.attribs)return null;let g=null==t?void 0:t.find(l=>l.tag===e.name);if(g){let l=e=>e.map(e=>{if("tag"===e.type){let t=e.name,n=Object.entries(e.attribs||{}).map(e=>{let[l,t]=e;return" ".concat(l,"='").concat(t,"'")}).join(""),i=e.children?l(e.children):"";return"<".concat(t).concat(n,">").concat(i,"</").concat(t,">")}return"text"===e.type&&e.data||""}).join(""),t=e.children?l(e.children):"";return(0,c.createElement)(g.component,{...(0,o.$5)(e.attribs),content:t})}let b=null==r?void 0:r.find(l=>l.tag===e.name);if(b){let t=[];return null===(l=e.children)||void 0===l||l.forEach((e,l)=>{"tag"===e.type&&t.push((0,n.jsx)(c.Fragment,{children:(0,o.zd)([e],_)},l))}),(0,c.createElement)(b.component,{...(0,o.$5)(e.attribs),content:t})}switch(e.name){case"a":let y=(0,o.$5)(e.attribs);return(0,n.jsx)(s(),{href:y.href,...(0,o.$5)(e.attribs),prefetch:!0,children:e.children&&(0,o.zd)(e.children,_)});case"br":return(0,n.jsx)("br",{...(0,o.$5)(e.attribs)});case"img":let j=(0,o.$5)(e.attribs),N=(j["data-src"]||j.src||"oneibccom2024").trim();return(0,n.jsx)(a.default,{src:N,alt:(null===(v=j.alt)||void 0===v?void 0:v.trim())||"oneibccom2024",title:(null===(p=j.title)||void 0===p?void 0:p.trim())||"oneibccom2024",className:"".concat(j.className||""),loading:j.loading,decoding:j.decoding,style:j.style,quality:j.quality?parseInt(j.quality):void 0,priority:"true"===j.priority,placeholder:j.placeholder,blurDataURL:j.blurDataURL,objectPosition:j.objectPosition,..."true"===j.fill?{fill:"true"===j.fill}:j.width&&j.height?{width:parseInt(j.width||100),height:parseInt(j.height||100)}:{width:parseInt(j.width||100),height:parseInt(j.height||100),className:"".concat(j.className," w-auto h-auto")}});case"iframe":return(0,n.jsx)(m.V,{...(0,o.$5)(e.attribs),children:e.children&&(0,o.zd)(e.children,_)});case"custom-button":return(0,n.jsx)(i.$,{...(0,o.$5)(e.attribs),children:e.children&&(0,o.zd)(e.children,_)});case"script":let w=(null===(h=e.children)||void 0===h?void 0:null===(x=h[0])||void 0===x?void 0:x.type)==="text"?e.children[0].data:"",k=!!(null===(f=e.attribs)||void 0===f?void 0:f.strategy);return(0,n.jsx)(d.default,{...(0,o.$5)(e.attribs),...!k&&{strategy:"beforeInteractive"},dangerouslySetInnerHTML:{__html:w}});case"motion":return(0,n.jsx)(u.T8,{...(0,o.$5)(e.attribs),children:e.children&&(0,o.zd)(e.children,_)})}},trim:!0,htmlparser2:{lowerCaseTags:!1}};return(null==l?void 0:l.match(/<p>\|\|\|(.*?)\|\|\|<\/p>/g))&&(l=null==l?void 0:l.replace(/<p>\|\|\|(.*?)\|\|\|<\/p>/g,(e,l)=>"<".concat(null==l?void 0:l.toLowerCase(),"></").concat(null==l?void 0:l.toLowerCase(),">"))),(0,n.jsx)(n.Fragment,{children:(0,o.Ay)(l,_)})}},93693:(e,l,t)=>{"use strict";t.d(l,{G:()=>j});var n=t(48873),i=t(2508),o=t(26033),a=t(89923),r=t(17671);let s=()=>
1{if(!window.localStorage)return null;try{var e;let l=localStorage.getItem("consentCookie");return l?null===(e=JSON.parse(l))||void 0===e?void 0:e.state:null}catch(e){return null}},d=e=>a.d.split("|").includes(e.toUpperCase()),c=e=>{let l=s();return((null==l?void 0:l.consentCookie)?0!==Object.keys(l.consentCookie).length:e)&&(null==l?void 0:l.consentCookie)||{markets:!0,statistics:!0}},u=e=>{let l=e.toUpperCase(),t=d(l),n="US"===l;return t||n?{cookie_default_ad_user_data:a.aR.DENIED,cookie_default_ad_personalization:a.aR.DENIED}:{cookie_default_ad_user_data:a.aR.GRANTED,cookie_default_ad_personalization:a.aR.GRANTED}},m=()=>{let e=s(),l=(null==e?void 0:e.consentCookie)&&Object.keys(e.consentCookie).length>0,t=String((0,r.getCookie)(a.Av.COUNTRY)||""),n=c(d(t)),i=u(t),o=n.markets?a.aR.GRANTED:a.aR.DENIED,m=n.statistics?a.aR.GRANTED:a.aR.DENIED;return l?{ad_storage:o,ad_user_data:o,ad_personalization:o,analytics_storage:m,...i}:{ad_storage:"unspecified",ad_user_data:"unspecified",ad_personalization:"unspecified",analytics_storage:"unspecified",...i}},_=()=>({...m()}),v=(e,l)=>0===Object.keys(l).length?e:e instanceof FormData?(Object.entries(l).forEach(l=>{let[t,n]=l;e.has(t)||e.append(t,n)}),e):"object"!=typeof e||null===e||Array.isArray(e)?e:{...l,...e};var p=t(38143);let x=e=>{var l,t,n;let o=e.data;if((null==e?void 0:null===(t=e.config)||void 0===t?void 0:null===(l=t.headers)||void 0===l?void 0:l.encrypt)==="true"&&(o=(0,i.hj)(e.data)),!o.success){let l=o.data&&"object"==typeof o.data?o.data:null;return{success:!1,statusCode:e.status,message:o.message,validator:o.validator,next:o.next,data:l}}return{success:!0,pagination:o.pagination,validator:o.validator,message:o.message,next:o.next,statusCode:e.status,data:null!==(n=o.data)&&void 0!==n?n:o}},h=()=>{var e;let l=(0,r.getCookie)(n.Avz.GA_CLIENT_ID)||(0,r.getCookie)("_ga")||"",t=null===(e=l.match(/^GA\d\.\d\.\d+\.(\d+)$/))||void 0===e?void 0:e[1],i=l.split(".").pop()||"",o=t||i;return/^\d+$/.test(o)?"".concat(o,"000000"):""},f=e=>{var l,t;if("post"!==(null===(l=e.method)||void 0===l?void 0:l.toLowerCase())||null==e.data)return;let o=(null===(t=e.headers)||void 0===t?void 0:t.encrypt)==="true",a=o?(0,i.hj)(e.data):e.data;e.data=v(a,_()),e.data=v(e.data,{landing_page_referrer:"undefined"==typeof sessionStorage?"":sessionStorage.getItem(n.JmY.EXTERNAL_REFERRER)||"",landing_page_url:"undefined"==typeof sessionStorage?"":sessionStorage.getItem(n.JmY.LANDING_PAGE_URL)||"",session_start_time_usec:h()}),o&&(e.data=(0,i.PZ)(e.data))},g=async()=>{if((0,r.getCookie)(n.Avz.LANG)&&(0,r.getCookie)(n.Avz.LOCATION))return;let e=window.__trackingReady;e&&await Promise.race([e,new Promise(e=>setTimeout(e,5e3))])},b=e=>{var l,t;let n=e.response,o=null==n?void 0:n.data;return(null==e?void 0:null===(t=e.config)||void 0===t?void 0:null===(l=t.headers)||void 0===l?void 0:l.encrypt)==="true"&&(o=(0,i.hj)(null==n?void 0:n.data)),{success:!1,message:null==o?void 0:o.message,statusCode:(null==n?void 0:n.status)||500,validator:null==o?void 0:o.validator,data:null==o?void 0:o.data,next:null==o?void 0:o.next}};class y{async request(e,l,t,n){try{let i=await this.instance.request({method:e,url:l,data:t,...n});return x(i)}catch(e){return b(e)}}async get(e,l){return this.request("get",e,void 0,l)}async post(e,l,t){return this.request("post",e,l,t)}async put(e,l,t){return this.request("put",e,l,t)}async delete(e,l){return this.request("delete",e,void 0,l)}async patch(e,l,t){return this.request("patch",e,l,t)}getInstance(){return this.instance}updateToken(e){this.accessToken=e}constructor(e=n.IO4+"/api"){this.instance=o.A.create({baseURL:e,timeout:12e4,headers:{"Content-Type":"application/json","location-code":(0,r.getCookie)(n.Avz.LOCATION),"language-code":(0,r.getCookie)(n.Avz.LANG),cache:"true","ip-country-code":(0,r.getCookie)(n.Avz.COUNTRY)}}),this.accessToken=(0,p.qo)(),this.instance.interceptors.request.use(async e=>(await g(),f(e),this.accessToken&&(e.headers.Authorization=this.accessToken),e),e=>Promise.reject(e)),this.instance.interceptors.response.use(e=>e,e=>Promise.reject(e))}}let j=new y},93982:(e,l,t)=>{"use strict";t.r(l),t.d(l,{BillingInformation:()=>c});var n=t(38694),i=t(69054),o=t(2508),a=t(94674),r=t(83924),s=t(45734),d=t(29722);let c=(0,s.forwardRef)(function(e,l){var t,c,u,m,_,v;let{t:p,isLoading:x,isSetupNow:h,defaultValue:f,listAllState:g,errorsPayment:b,listCountries:y,classNameLabel:j,classNameWrapper:N,classNameHeading:w}=e;(0,s.useImperativeHandle)(l,()=>({submit:I}));let{watch:k,reset:S,trigger:C,setError:E,setValue:R,register:O,getValues:T,control:A,formState:{errors:M}}=(0,d.mN)({mode:"all",resolver:(0,r.t)((0,o.Pb)(p))}),I=(0,s.useCallback)(async()=>!!await C()&&{...T(),billing_country:T("billing_country.value"),billing_state:T("billing_state.value")},[]),P=(0,s.useMemo)(()=>null==g?void 0:g.filter(e=>e.state_country_code==T("billing_country.value")),[k("billing_country")]),L=(0,s.useCallback)(()=>{(null==P?void 0:P.length)&&R("billing_state",null)},[P]);return(0,i.VT)(E,b),(0,s.useEffect)(()=>{f&&S(f)},[f]),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("h2",{className:w,children:null==p?void 0:p.txt_mp_billing_information}),(0,n.jsxs)("form",{noValidate:!0,className:(0,o.cn)("grid grid-cols-1 gap-5 lg:gap-6",h&&"lg:grid-cols-2",N),children:[(0,n.jsx)(a.pd,{required:!0,maxLength:255,disabled:x,nameLabel:null==p?void 0:p.lbl_mp_first_name,...O("billing_first_name"),placeholder:null==p?void 0:p.txt_mp_first_name_placeholder,errorMessage:null===(t=M.billing_first_name)||void 0===t?void 0:t.message,classNameLabel:j||"text-14 lg:text-16"}),(0,n.jsx)(a.pd,{required:!0,maxLength:255,disabled:x,nameLabel:null==p?void 0:p.lbl_mp_last_name,...O("billing_last_name"),placeholder:null==p?void 0:p.txt_mp_last_name_placeholder,errorMessage:null===(c=M.billing_last_name)||void 0===c?void 0:c.message,classNameLabel:j||"text-14 lg:text-16"}),y&&(0,n.jsx)(a.$k,{isRequired:!0,isShowPlaceholder:!0,control:A,id:"billing_country",name:"billing_country",option:y,isDisabled:x,nameLabel:null==p?void 0:p.lbl_mp_country,onSelect:L,placeholder:null==p?void 0:p.txt_mp_please_select,classNameLabel:j||"text-14 lg:text-16"}),(0,n.jsx)(a.pd,{required:!0,maxLength:255,id:"billing-address",disabled:x,nameLabel:null==p?void 0:p.lbl_mp_address,...O("billing_address"),placeholder:null==p?void 0:p.txt_mp_address_placeholder,errorMessage:null===(u=M.billing_address)||void 0===u?void 0:u.message,classNameLabel:j||"text-14 lg:text-16"}),(0,n.jsx)(a.pd,{required:!0,maxLength:255,id:"billing-city",disabled:x,...O("billing_city"),nameLabel:null==p?void 0:p.lbl_mp_city_country,errorMessage:null===(m=M.billing_city)||void 0===m?void 0:m.message,placeholder:null==p?void 0:p.txt_mp_city_country_placeholder,classNameLabel:j||"text-14 lg:text-16"}),(null==P?void 0:P.length)?(0,n.jsx)(a.$k,{isRequired:!0,isShowPlaceholder:!0,control:A,id:"billing_state",name:"billing_state",isDisabled:x,option:P,nameLabel:null==p?void 0:p.lbl_mp_state,placeholder:null==p?void 0:p.txt_mp_please_select,classNameLabel:j||"text-14 lg:text-16"}):(0,n.jsx)(a.pd,{required:!0,maxLength:255,id:"billing-region",disabled:x,...O("billing_region"),nameLabel:null==p?void 0:p.lbl_mp_state_province_region,errorMessage:null===(_=M.billing_region)||void 0===_?void 0:_.message,classNameLabel:j||"text-14 lg:text-16",placeholder:null==p?void 0:p.txt_mp_state_province_region_placeholder}),(0,n.jsx)(a.pd,{required:!0,maxLength:9,disabled:x,id:"billing-postal-code",...O("billing_postal_code"),nameLabel:null==p?void 0:p.lbl_mp_zip_postal_code,className:(0,o.cn)(h&&"lg:col-span-2"),errorMessage:null===(v=M.billing_postal_code)||void 0===v?void 0:v.message,placeholder:null==p?void 0:p.txt_mp_zip_postal_code_placeholder,classNameLabel:j||"text-14 lg:text-16"})]})]})})},94131:(e,l,t)=>{"use strict";t.r(l),t.d(l,{InputSelect:()=>m});var n=t(38694),i=t(69054),o=t(2508),a=t(74323),r=t(45734),s=t(29722),d=t(96580),c=t(70718),u=t(66011);let m=e=>{let l=(0,r.useRef)(null),{option:t,isLoading:a,isDisabled:c,isSearchable:m,isErrors:x,name:h,nameLabel:f,className:g,classNamePrefix:b,classNameLabel:y,id:j,isRequired:N,control:w,onSelect:k,placeholder:S,defaultValue:C,isShowPlaceholder:E=!1,classNameError:R="absolute -bottom-5 left-0 whitespace-nowrap",controlStyle:O,placeholderStyle:T,inputStyle:A,isLeadform:M=!1,tooltip:I,classNameTooltip:P}=e,{field:L,fieldState:F}=(0,s.as)({name:h,control:w,defaultValue:C});(0,r.useEffect)(()=>{l.current&&void 0===L.value&&l.current.clearValue()},[L.value]);let D=e=>e.icon?{alignItems:"center",display:"flex",":before":{background:"url(".concat(e.icon,") no-repeat 0 0 / contain"),content:'" "',display:"block",marginRight:8,height:18,width:24,flexShrink:0}}:{margin:"0",padding:"0"},K=e=>{L.onChange(e),k&&k(e)},B=(0,i.qK)();return(0,r.useEffect)(()=>{C&&K(C)},[C]),(0,n.jsxs)("div",{className:"relative text-14",children:[(0,n.jsxs)("div",{className:"relative flex flex-col gap-2",children:[f&&(0,n.jsxs)("div",{className:"flex gap-1 w-fit",children:[(0,n.jsx)("label",{htmlFor:j,className:(0,o.cn)("font-semibold text-black",N&&"label-required",y),children:f}),I&&(0,n.jsx)(u.o,{content:I,className:P})]}),B&&(0,n.jsx)(d.Ay,{className:"".concat(g||""," "),styles:{control:e=>({...e,width:"100%",height:"52px",border:x||F.error?"1px solid #C91F26":"1px solid #E0E0E0",":hover":{border:x||F.error?"1px solid #C91F26":"1px solid #E0E0E0"},borderRadius:"12px",boxShadow:"none",backgroundColor:c?"#efefef4d":"white",...O}),dropdownIndicator:(e,l)=>{let{selectProps:t}=l;return{...e,transform:t.menuIsOpen?"rotate(180deg)":void 0,transition:"transform 0.2s ease-in-out",color:"#3B3A3C",fill:"#3B3A3C",opacity:+!c,padding:"12px"}},menu:e=>({...e,margin:"0",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.10)",zIndex:5,borderRadius:"12px"}),menuList:e=>({...e,padding:"12px",overflowX:"hidden",boxShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.10)",borderRadius:"12px"}),option:(e,l)=>{let{isSelected:t,data:n}=l;return{...e,padding:"6px 12px",color:t?"#C91F26":"#3B3A3C",fontSize:"16px",fontWeight:"400",lineHeight:"24px",borderRadius:"2px",marginLeft:n.isChildren?"12px":"0",backgroundColor:t?"#ffd7d7b0":"white",":hover":{backgroundColor:"#ffd7d7b0",cursor:"pointer",color:"#C91F26",fontWeight:"500"}}},valueContainer:e=>({...e,padding:"0 10px",margin:"0"}),singleValue:(e,l)=>{let{data:t}=l;return{...e,fontSize:"16px",...D(t)}},input:e=>({...e,margin:"0",padding:"0",color:"#3B3A3C",fontSize:"16px",fontWeight:"400",lineHeight:"1",...A}),indicatorSeparator:e=>({...e,display:"none"}),placeholder:e=>({...e,color:"#646464",fontSize:"16px",fontWeight:"400",lineHeight:"1",opacity:+!!E,...T})},classNamePrefix:"".concat(b||""),defaultValue:C,placeholder:S,isDisabled:c,isLoading:a,isSearchable:m,name:h,options:t,inputId:j,required:N,onChange:e=>K(e),value:L.value,components:{DropdownIndicator:e=>(0,n.jsx)(_,{...e,isLeadform:M}),Option:p,Input:v},onBlur:()=>L&&L.onBlur(),ref:l,menuShouldScrollIntoView:!0})]}),F.error&&(0,n.jsx)("div",{className:"text-primary ".concat(R),dangerouslySetInnerHTML:{__html:F.error.message||""}})]})},_=e=>(0,n.jsx)(c.c.DropdownIndicator,{...e,children:(null==e?void 0:e.isLeadform)?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,n.jsx)("path",{d:"M14.5336 4.82468L13.8656 4.13751C13.7766 4.04574 13.6741 4 13.5582 4C13.4426 4 13.3401 4.04574 13.2511 4.13751L8.00023 9.53951L2.74961 4.13765C2.66056 4.04589 2.55808 4.00015 2.44231 4.00015C2.32649 4.00015 2.22401 4.04589 2.13501 4.13765L1.46714 4.82487C1.37795 4.91644 1.3335 5.02188 1.3335 5.14104C1.3335 5.2601 1.37809 5.36554 1.46714 5.45711L7.69293 11.8626C7.78193 11.9542 7.88446 12 8.00023 12C8.116 12 8.21835 11.9542 8.3073 11.8626L14.5336 5.45711C14.6226 5.36549 14.6668 5.26005 14.6668 5.14104C14.6668 5.02188 14.6226 4.91644 14.5336 4.82468Z",fill:"#666666"})}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,n.jsx)("path",{d:"M5.69868 8.00149L2.69868 4.66816C2.61386 4.57391 2.57145 4.46231 2.57145 4.33334C2.57145 4.20437 2.61386 4.09276 2.69868 3.99852C2.7835 3.90427 2.88395 3.85715 3.00002 3.85715L9.00002 3.85715C9.11609 3.85715 9.21654 3.90427 9.30136 3.99852C9.38618 4.09276 9.42859 4.20437 9.42859 4.33334C9.42859 4.46231 9.38618 4.57391 9.30136 4.66816L6.30136 8.00149C6.21653 8.09574 6.11609 8.14286 6.00002 8.14286C5.88395 8.14286 5.7835 8.09574 5.69868 8.00149Z",fill:"#3B3A3C"})})}),v=e=>(0,n.jsx)(c.c.Input,{...e,autoComplete:"off"}),p=e=>(0,n.jsxs)(c.c.Option,{...e,className:"!flex items-center justify-start gap-2",children:[e.data.icon&&(0,n.jsx)(a.default,{width:20,height:14,style:{width:"20px"},src:e.data.icon||"/",alt:e.data.label||"",title:e.data.label}),e.data.label]})},94674:(e,l,t)=>{"use strict";t.d(l,{Qp:()=>p.Breadcrumb,$n:()=>i.$,oV:()=>o.CheckBox,pd:()=>n.Input,am:()=>a.InputCardNumber,YI:()=>r.InputNumber,$k:()=>s.$,aF:()=>f.Modal,wK:()=>d.MultipleFileUpload,KE:()=>c.PhoneInputNumber,VC:()=>h.RadioBox,ZU:()=>x.SearchBarGoogle,fs:()=>u.TextArea,oS:()=>v.o});var n=t(45667),i=t(5203),o=t(69511);t(92251);var a=t(15499),r=t(33873),s=t(75808);t(7099);var d=t(12783);t(53719),t(61363);var c=t(90599),u=t(40867),m=t(38694),_=t(45734);t(42405),(0,_.forwardRef)((e,l)=>{let{id:t,...n}=e;return(0,m.jsxs)("label",{className:"switch",children:[(0,m.jsx)("input",{type:"checkbox",id:t,...n,ref:l}),(0,m.jsx)("span",{className:"slider"})]})}).displayName="ToggleSwitch";var v=t(66011),p=t(33411);t(79925);var x=t(23891),h=t(71067),f=t(69983)},94775:(e,l,t)=>{"use strict";t.r(l),t.d(l,{HeaderSetupNow:()=>_});var n=t(38694),i=t(29432),o=t(48873),a=t(2508),r=t(42500),s=t(74323),d=t(36791),c=t.n(d),u=t(45734),m=t(17978);let _=(0,u.memo)(e=>{var l;let{onBack:t}=e,{langLocationSlashed:d,currentLocation:_}=(0,u.useContext)(i.BR),{isBackBtn:v,isLoading:p}=(0,u.useContext)(i.w_);return(0,n.jsx)("div",{className:"py-5 bg-white shadow-36 sticky top-0 z-[2]",children:(0,n.jsxs)("div",{className:" max-w-[1216px] mx-auto px-4 2xl:px-0 flex flex-col lg:flex-row gap-3 items-center lg:justify-between",children:[(0,n.jsxs)("div",{className:"flex justify-center w-full max-w-[822px] lg:w-fit relative",children:[v&&(0,n.jsx)(r.qT,{onClick:t,className:(0,a.cn)("absolute left-0 top-1/2 -translate-y-1/2 lg:hidden",p&&"pointer-events-none")}),(0,n.jsx)(c(),{title:o.Opz,href:"".concat(d,"/"),className:(0,a.cn)("flex items-center",p&&"pointer-events-none"),children:(0,n.jsx)(s.default,{priority:!0,width:"148",he
1ight:"36",alt:o.Opz,title:o.Opz,className:"w-[173px] h-10 lg:w-[130px] lg:h-[30px] flex-shrink-0",src:"https://d21l9vkgwnizti.cloudfront.net/uploads/one-ibc-logo.svg"})})]}),(0,n.jsx)(m.$S,{}),(0,n.jsxs)(c(),{target:"_blank",title:null==_?void 0:_.location_hotline,href:"tel:".concat(null==_?void 0:null===(l=_.location_hotline)||void 0===l?void 0:l.replace(/\s+/g,"")),className:"items-center gap-1 p-3 border-2 border-black rounded-xl hidden lg:flex flex-shrink-0",children:[(0,n.jsx)(r.w_,{className:"w-4 h-4"}),(0,n.jsx)("span",{className:"font-semibold",children:null==_?void 0:_.location_hotline})]})]})})});_.displayName="HeaderSetupNow"},95863:e=>{e.exports={wrapper:"pagination_wrapper__qRJtF",item:"pagination_item__kg4B7",break:"pagination_break__g5e13",active:"pagination_active__1kC_L",previous:"pagination_previous__2Eivr",next:"pagination_next__66ppG",disabled:"pagination_disabled__8AVJ0"}},97269:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SalesForce:()=>u,handleChatClick:()=>c});var n=t(38694),i=t(29432),o=t(89923),a=t(2508),r=t(17671),s=t(50280),d=t(45734);let c=()=>{if(!(window.innerWidth>=768))return;let e=document.getElementById("embeddedMessagingConversationButton"),l=d
1ocument.getElementById("headerCloseButton-37"),t=document.getElementById("headerMinimizeButton-37");l&&"none"!==l.style.display?l.click():t&&"none"!==t.style.display?t.click():e?(console.log("Opening chat..."),e.click(),setTimeout(function(){let e=document.getElementById("headerCloseButton-37");e&&(console.log("Close button appeared, clicking it now..."),e.click())},500)):console.warn("Neither chatButton, closeButton, nor minimizeButton was found!")},u=e=>{let{t:l}=e,t=(0,s.useSearchParams)(),u=(0,s.useSelectedLayoutSegment)(),m=null==t?void 0:t.get("open-chat");return((0,d.useEffect)(()=>{m&&c()},[m]),(0,d.useEffect)(()=>{let e=e=>{var l,t,n;if(!(null===(t=e.target)||void 0===t?void 0:null===(l=t.closest)||void 0===l?void 0:l.call(t,".chat-salesforce-img")))return;let i=null===(n=window.embeddedservice_bootstrap)||void 0===n?void 0:n.prechatAPI;if(!i)return;let s=Object.fromEntries(Object.keys(o.aS).map(e=>[e,String((0,r.getCookie)("__data_ads_".concat(e))||"")])),d=sessionStorage.getItem(o.Jm.EXTERNAL_REFERRER)||document.referrer;i.setHiddenPrechatFields((0,a.QG)(s,d))};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]),"(single)"===u)?null:(0,n.jsx)(i.wR,{html:(null==l?void 0:l.txt_live_chat_salesforce)||""})}},97709:(e,l,t)=>{"use strict";t.r(l),t.d(l,{OtpInput:()=>d});var n=t(38694),i=t(29432),o=t(2508),a=t(94674),r=t(74323),s=t(45734);let d=e=>{let{submit:l,configDict:t,phoneNumber:d,errorMessage:c,isLoading:u}=e,[m,_]=(0,s.useState)(["","","","","",""]),v=(0,s.useRef)(Array(6).fill(null)),[p,x]=(0,s.useState)(!1),h=(e,l)=>{if(""===l||/^[0-9]$/.test(l)){let n=[...m];if(n[e]=l,_(n),l&&e<5&&v.current[e+1]){var t;null===(t=v.current[e+1])||void 0===t||t.focus()}}},f=(e,l)=>{if("Backspace"===l.key&&!m[e]&&e>0&&v.current[e-1]){var t;null===(t=v.current[e-1])||void 0===t||t.focus()}};return(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=m.join("");6===t.length?l({skip_otp:!1,value:t}):x(!0)},className:"text-center max-w-[555px] mx-auto md:!p-8 box-shadow-form min-h-[450px] xl:!min-h-[595px] flex flex-col justify-center",children:[(0,n.jsx)(r.default,{src:"https://dusyzh85wmzqh.cloudfront.net/frontend/images/otp-1.0.svg",alt:(null==t?void 0:t.txt_verification_code)||"",title:null==t?void 0:t.txt_verification_code,width:"70",height:"80",className:"mx-auto"}),(0,n.jsx)("h2",{className:"heading-secondary",children:null==t?void 0:t.txt_verification_code}),(0,n.jsxs)("p",{className:"".concat(p?"text-red-1":""," text-center"),children:[(0,n.jsx)(i.wR,{html:null==t?void 0:t.txt_type_verification_code})," ",(0,o.kY)(d)]}),c&&(0,n.jsx)("p",{className:"text-14 text-red-1",children:c}),(0,n.jsx)("div",{className:"flex justify-center items-center gap-2 md:!gap-4 px-[7.5px] md:!px-0 w-full mt-2",children:[0,1,2,3,4,5].map(e=>(0,n.jsx)("input",{ref:l=>{v.current[e]=l},name:"otp".concat(e),type:"text",formNoValidate:!0,autoComplete:"off",className:"border border-gray-300 px-3 py-4 rounded-md focus:outline-none focus:border-blue-500 w-full max-w-[50px] text-center",value:m[e],onChange:l=>h(e,l.target.value),onKeyDown:l=>f(e,l),maxLength:1},e))}),(0,n.jsx)("div",{className:"max-w-[280px] mx-auto mt-8",children:(0,n.jsx)(a.$n,{className:"uppercase min-w-[248px] py-3 pl-7 pr-10",type:"submit",isLoading:u,disabled:u,children:null==t?void 0:t.btn_submit})}),(0,n.jsx)("div",{className:"text-red-1 cursor-pointer mt-4",onClick:()=>l({skip_otp:!0,value:null}),children:null==t?void 0:t.btn_skip})]})}},98032:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CreditCardPaymentForm:()=>m});var n=t(38694),i=t(48873),o=t(69054),a=t(2508),r=t(94674),s=t(83924),d=t(74323),c=t(45734),u=t(29722);let m=(0,c.forwardRef)(function(e,l){var t,m,_;let{t:v,isLoading:p,classNameLabel:x,isImagePartner:h,paymentMethod:f,errorsPayment:g,classNameHeading:b,classNameWrapper:y}=e,j=(0,c.useMemo)(()=>f===i.OZN.AMEX?[i.AFb.AMEX]:[i.AFb.MASTERCARD,i.AFb.VISA],[f]),[N,w]=(0,c.useState)(null),{watch:k,register:S,trigger:C,setError:E,control:R,getValues:O,formState:{errors:T}}=(0,u.mN)({mode:"all",resolver:(0,s.t)((0,a.nt)(v,j,N))});(0,c.useImperativeHandle)(l,()=>({submit:P}));let A=(0,o.qK)(),M=k("card_number"),I=(0,c.useCallback)(e=>{if(!e)return null;let l=e.replace(/\D/g,"").charAt(0);for(let t in i.CQY){if(i.AFb.AMEX==t&&e.length>i.ZIY.AMEX)break;if(i.CQY[t]==l)return t}return null},[M]),P=(0,c.useCallback)(async()=>{var e,l,t;return!!await C()&&{card_expiry_month:O("card_expiry_month.value"),card_expiry_year:O("card_expiry_year.value"),card_number:null===(e=O("card_number"))||void 0===e?void 0:e.replaceAll(" ",""),card_cvv:null===(l=O("card_cvv"))||void 0===l?void 0:l.replaceAll(" ",""),card_name:null===(t=O("card_name"))||void 0===t?void 0:t.trim()}},[]),L=(0,c.useMemo)(()=>N&&(0,a.Sm)(N)||4,[N]);return(0,c.useEffect)(()=>{w(I(M))},[M]),(0,c.useEffect)(()=>{O("card_number")&&C("card_number")},[f]),(0,o.VT)(E,g),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("h2",{className:b,children:null==v?void 0:v.txt_mp_credit_debit_information}),(0,n.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-5 lg:gap-6",y),children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{className:"flex lg:flex-row flex-col justify-between gap-3 lg:gap-4",children:[(0,n.jsx)("div",{className:"w-full self
1-start",children:(0,n.jsx)(r.am,{type:"tel",id:"card-number",name:"card_number",register:S,disabled:p,classNameError:"-mt-2",nameLabel:null==v?void 0:v.lbl_mp_card_number,errorMessage:null==T?void 0:null===(t=T.card_number)||void 0===t?void 0:t.message,classNameLabel:x||"text-14 lg:text-16"})}),(0,n.jsx)("ul",{className:"flex-1 lg:mt-[30px] flex lg:justify-end justify-start max-md:w-full h-[52px] gap-2 self-start",children:Object.keys(i.xCu).map((e,l)=>(0,n.jsx)("li",{className:-1===j.indexOf(e)?"hidden":"",children:(0,n.jsx)("div",{className:"p-[6px] border border-gray-21 rounded-[6px] h-[52px] flex items-center justify-center min-w-[86px]",children:(0,n.jsx)(d.default,{width:40,height:40,loading:"lazy",alt:Object.keys(i.xCu)[l]||"",title:Object.keys(i.xCu)[l]||"",src:i.xCu[e]||"/",className:(0,a.cn)("h-[30px] w-auto",N===Object.keys(i.xCu)[l]?"opacity-100":"opacity-30")})})},l))})]}),h&&(0,n.jsx)("div",{className:"flex gap-5",children:null===i.JRm||void 0===i.JRm?void 0:i.JRm.map(e=>(0,n.jsx)(d.default,{width:100,height:30,loading:"lazy",src:e.img||"/",alt:e.name||"",title:e.name||"",className:"w-auto h-[30px] grayscale"},e.name))})]}),(0,n.jsx)(r.pd,{type:"text",maxLength:70,id:"card-name",disabled:p,classNameError:"-mt-2",...S("card_name"),nameLabel:null==v?void 0:v.txt_name_on_card,placeholder:null==v?void 0:v.txt_name_on_card,errorMessage:null===(m=T.card_name)||void 0===m?void 0:m.message,classNameLabel:x||"text-14 lg:text-16"}),(0,n.jsxs)("div",{className:"flex gap-2.5 justify-between items-start",children:[(0,n.jsx)("div",{className:"flex-1 self-start",children:(0,n.jsx)(r.$k,{control:R,isShowPlaceholder:!0,classNameError:"mt-1",id:"card-expiry-month",isDisabled:p,name:"card_expiry_month",placeholder:null==v?void 0:v.txt_mp_month,nameLabel:null==v?void 0:v.lbl_mp_card_expiry_date,classNameLabel:x||"text-14 lg:text-16",option:(0,i.xqN)(v)})}),(0,n.jsx)("div",{className:"flex-1 self-start min-w-[80px]",children:(0,n.jsx)(r.$k,{control:R,isShowPlaceholder:!0,nameLabel:"\xa0",id:"card_expiry_year",classNameError:"mt-1",isDisabled:p,name:"card_expiry_year",placeholder:null==v?void 0:v.txt_mp_year,classNameLabel:x||"text-14 lg:text-16",option:(0,i.OrN)(v)})}),(0,n.jsx)("div",{className:"flex-1 self-start",children:A&&(0,n.jsx)(r.pd,{type:"tel",minLength:3,id:"card-cvv",nameLabel:"CVV",placeholder:"CVV",disabled:p,classNameError:"-mt-1",tooltip:null==v?void 0:v.tooltip_cvv,...S("card_cvv"),maxLength:L||4,errorMessage:null===(_=T.card_cvv)||void 0===_?void 0:_.message,onPaste:e=>e.preventDefault(),classNameLabel:x||"text-14 lg:text-16",onKeyPress:e=>!/[0-9]/.test(e.key)&&e.preventDefault(),classNameTooltip:"max-w-[314px] right-0 md:left-0 !-mx-10 -my-4 lg:-mx-4"})})]})]})]})})},98417:(e,l,t)=>{"use strict";t.r(l),t.d(l,{SwiperCustomerReview:()=>m});var n=t(38694),i=t(29432),o=t(69054),a=t(2508),r=t(25960),s=t(74323),d=t(45734),c=t(61088),u=t(917);let m=e=>{let{t:l}=e,t=(0,a.Ol)(null==l?void 0:l.config_json_reviewing),s=(0,o._F)(1024),[m,v]=(0,d.useState)(0),[p,x]=(0,d.useState)(!0),h=(0,o.S)(),f=(0,o.tH)(),g=()=>{x(!1),v(e=>(e+1)%t.length)},b=()=>{x(!1),v(e=>(e-1+t.length)%t.length)},y=()=>{v(e=>(e+1)%t.length)},j=e=>e===m,N=()=>Math.floor(21*Math.random())-10;return((0,d.useEffect)(()=>{if(h&&(null==t?void 0:t.length)>0){let e=p&&setInterval(y,4e3),l=document.querySelector(".testimonials-prev"),t=document.querySelector(".testimonials-next");return null==l||l.addEventListener("click",b),null==t||t.addEventListener("click",g),()=>{e&&clearInterval(e),null==l||l.removeEventListener("click",b),null==t||t.removeEventListener("click",g)}}},[h,p]),s)?(0,n.jsxs)("div",{children:[(0,n.jsx)(u.RC,{effect:"slide",modules:[c.dK,c.Ij],pagination:{el:".pagination-customer-review-2",clickable:!0},loop:!0,autoplay:{delay:1500,disableOnInteraction:!1},slidesPerView:1,spaceBetween:8,children:null==t?void 0:t.map((e,l)=>(0,n.jsx)(u.qr,{className:"w-full",children:(0,n.jsx)(_,{customer:e})},l))}),(0,n.jsx)("div",{className:"pagination-customer-review-2 swiper-pagination-v1 flex justify-center mt-5 transition-all duration-300 ease-in"})]}):(0,n.jsx)("div",{className:"relative w-full min-h-[312px]",children:f&&(0,n.jsx)(r.N,{children:null==t?void 0:t.map((e,l)=>(0,n.jsx)(i.T8,{tag:"div",initial:{opacity:0,scale:.9,z:-100,rotate:N()}
1,animate:{opacity:j(l)?1:.7,scale:j(l)?1:.95,z:j(l)?0:-100,rotate:j(l)?0:N(),zIndex:j(l)?t.length+2:t.length+2-l,y:j(l)?[0,-80,0]:0},exit:{opacity:0,scale:.9,z:1,rotate:N()},transition:{duration:.4,ease:"easeInOut"},className:"absolute w-fit h-fit right-0 cursor-pointer",onClick:g,children:(0,n.jsx)(_,{customer:e})},l))})})},_=e=>{let{customer:l}=e;return(0,n.jsxs)("div",{className:"p-3 lg:!p-6 border-2 border-black-2 bg-white shadow-2 rounded-xl w-full h-[260px] lg:!w-[540px] lg:!h-[264px] select-none",children:[(0,n.jsxs)("p",{className:"text-16 leading-2 line-clamp-5 lg:!line-clamp-4",children:['"',null==l?void 0:l.customer_review,'"']}),(0,n.jsxs)("div",{className:"flex gap-3 items-center mt-5",children:[(0,n.jsx)(s.default,{src:(null==l?void 0:l.customer_image)||"",alt:null==l?void 0:l.customer_name,title:null==l?void 0:l.customer_name,width:"200",height:"200",className:"rounded-full object-cover object-center w-12 h-12 lg:!w-[68px] lg:!h-[68px]"}),(0,n.jsxs)("div",{className:"grid gap-1",children:[(0,n.jsx)("p",{className:"text-18 font-semibold",children:null==l?void 0:l.customer_name}),(0,n.jsx)("p",{className:"text-14 text-gray-1",children:null==l?void 0:l.customer_role})]})]})]})}},99101:(e,l,t)=>{"use strict";t.r(l),t.d(l,{CountryName:()=>r});var n=t(38694),i=t(48873),o=t(69054),a=t(20361);let r=e=>{let{content:l}=e,t=(0,a.getCookie)(i.Avz.COUNTRY),{listCountries:r}=(0,o.rZ)(),s=null==r?void 0:r.find(e=>e.country_code===(null==t?void 0:t.toLowerCase()));return(0,n.jsx)(n.Fragment,{children:(null==s?void 0:s.country_name)||(null==l?void 0:l[0])})}},99705:(e,l,t)=>{"use strict";t.r(l),t.d(l,{StepContactInfo:()=>x});var n=t(38694),i=t(29432),o=t(48873),a=t(64646),r=t(69054),s=t(8256),d=t(2508),c=t(94674),u=t(83924),m=t(20361),_=t(45734),v=t(29722),p=t(46561);let x=(0,_.memo)((0,_.forwardRef)(function(e,l){var t,x,h,f,g;(0,_.useImperativeHandle)(l,()=>({onSubmit:G,onBack:Y}));let{userData:b,isLoading:y,configOrder:j,errors:N,setIsLoading:w,handleBackStep:k,handleNextStep:S,updateContextValue:C}=(0,_.useContext)(i.w_),{orderStore:E,updateOrderStore:R,clearOrderStore:O}=(0,s.Fc)(),T=(0,_.useMemo)(()=>null==E?void 0:E.order_ai,[null==E?void 0:E.order_ai]),A=(0,m.getCookie)(o.Avz.COUNTRY),M=(0,_.useMemo)(()=>{var e;if(!A)return!1;null==j||null===(e=j.txt_list_country_code_google_consent)||void 0===e||e.includes(String(A))},[A]),{reset:I,trigger:P,setError:L,register:F,getValues:D,control:K,formState:{errors:B}}=(0,v.mN)({mode:"all",resolver:(0,u.t)((0,d.el)(j))}),G=(0,_.useCallback)(async()=>{var e,l,t,n;if(y||!await P())return;w(!0);let i=await (0,d.Ji)(),r={order_id:null==E?void 0:E.order_id,is_business:(null==E?void 0:null===(e=E.start_business)||void 0===e?void 0:e.business_type)==o.e8W.FORM_A_BUSINESS?o.cSK.YES:o.cSK.NO,type_of_service:null==E?void 0:null===(l=E.start_business)||void 0===l?void 0:l.type_of_service,jurisdiction_state_code:null==E?void 0:null===(t=E.start_business)||void 0===t?void 0:t.jurisdiction_state_code,legal_entity_id:null==E?void 0:null===(n=E.start_business)||void 0===n?void 0:n.legal_entity_id,first_name:D("first_name"),last_name:D("last_name"),email:D("email"),phone_number:D("phone_number"),email_opt_in_status:D("email_opt_in_status")?o.cSK.YES:o.cSK.NO,whatsapp_opt_in_status:D("whatsapp_opt_in_status")?o.cSK.YES:o.cSK.NO,gRecaptchaToken:i,url:window.location.href},s=T?await a.xN.submitCreateByAi(r):await a.xN.submitContactInfo(r),c=(0,a.jN)(s);if(!(null==s?void 0:s.success)&&(p.oR.error((null==s?void 0:s.message)||(null==j?void 0:j.txt_toaster_failed_common)),c&&C({errors:c}),(null==s?void 0:s.statusCode)==d.kG.NotFound)){O(),window.location.reload();return}(null==s?void 0:s.data)&&U(null==s?void 0:s.data),w(!1)},[y,T]),U=(0,_.useCallback)(e=>{let l={order_id:null==e?void 0:e.order_id,order_id_f:null==e?void 0:e.order_id_f,user_id:null==e?void 0:e.user_id,user_id_f:null==e?void 0:e.user_id_f,order_total:null==e?void 0:e.order_total,order_currency:null==e?void 0:e.order_currency,location_code:null==e?void 0:e.location_code,email:D("email"),phone_number:D("phone_number"),contact:{first_name:D("first_name"),last_name:D("last_name"),email_opt_in_status:D("email_opt_in_status"),whatsapp_opt_in_status:D("whatsapp_opt_in_status")}};S(),R(l),C({errors:{}})},[]),Y=(0,_.useCallback)(async()=>{k(),R({order_ai:!1})},[]);return(0,r.VT)(L,N),(0,_.useEffect)(()=>{var e,l,t,n;D("email")&&D("phone_number")||I({first_name:null==E?void 0:null===(e=E.contact)||void 0===e?void 0:e.first_name,last_name:null==E?void 0:null===(l=E.contact)||void 0===l?void 0:l.last_name,email:(null==b?void 0:b.user_email)||(null==E?void 0:E.email),phone_number:(null==b?void 0:b.user_telapi_international_format)||(null==E?void 0:E.phone_number),email_opt_in_status:(null==b?void 0:b.user_email_opt_in_status)?(null==b?void 0:b.user_email_opt_in_status)==o.Gx7.OPTED_IN:null==E?void 0:null===(t=E.contact)||void 0===t?void 0:t.email_opt_in_status,whatsapp_opt_in_status:(null==b?void 0:b.user_whatsapp_opt_in_status)?(null==b?void 0:b.user_whatsapp_opt_in_status)==o.Gx7.OPTED_IN:null==E?void 0:null===(n=E.contact)||void 0===n?void 0:n.whatsapp_opt_in_status})},[null==E?void 0:E.email,null==E?void 0:E.phone_number,b]),(0,n.jsxs)("form",{noValidate:!0,onSubmit:G,className:"py-5 px-4 lg:p-8 bg-white lg:rounded-xl lg:shadow-33",children:[(0,n.jsx)("h2",{className:"text-24 font-bold mb-3 font-secondary",children:null==j?void 0:j.txt_order_title_contact_info}),(0,n.jsxs)("div",{className:"grid gap-5 lg:gap-x-5 lg:gap-y-3 grid-cols-1 lg:grid-cols-2",children:[(0,n.jsx)(c.pd,{required:!0,maxLength:255,disabled:y,...F("first_name"),classNameError:"text-xs -mt-2",nameLabel:null==j?void 0:j.lbl_mp_first_name,errorMessage:null==B?void 0:null===(t=B.first_name)||void 0===t?void 0:t.message,placeholder:null==j?void 0:j.txt_mp_first_name_placeholder}),(0,n.jsx)(c.pd,{required:!0,maxLength:255,disabled:y,...F("last_name"),classNameError:"text-xs -mt-2",nameLabel:null==j?void 0:j.lbl_mp_last_name,errorMessage:null==B?void 0:null===(x=B.last_name)||void 0===x?void 0:x.message,placeholder:null==j?void 0:j.txt_mp_last_name_placeholder}),(0,n.jsx)(c.pd,{required:!0,type:"email",maxLength:255,...F("email"),classNameError:"text-xs -mt-2",nameLabel:null==j?void 0:j.lbl_email_address,placeholder:null==j?void 0:j.lbl_email_address,errorMessage:null===(h=B.email)||void 0===h?void 0:h.message,disabled:y||!!(null==b?void 0:b.user_email)||!!(null==E?void 0:E.email)}),(0,n.jsx)(c.KE,{required:!0,id:"phone_number",control:K,name:"phone_number",setError:L,classNameError:"text-xs -mt-2",nameLabel:null==j?void 0:j.lbl_phone_number,placeholder:null==j?void 0:j.plc_phone_number,disabled:y||!!(null==b?void 0:b.user_telapi_international_format)}),(0,n.jsxs)("div",{className:(0,d.cn)("lg:col-span-2 lg:mt-3 grid gap-3",b&&"hidden"),children:[(0,n.jsx)(c.oV,{control:K,disabled:y,name:"email_opt_in_status",nameLabel:null==j?void 0:j.txt_get_offer_via_email,classNameLabel:"text-14 lg:text-16 ml-2 [&_span]:font-semibold",defaultChecked:(null==E?void 0:null===(f=E.contact)||void 0===f?void 0:f.email_opt_in_status)||!M}),(0,n.jsx)(c.oV,{control:K,disabled:y,name:"whatsapp_opt_in_status",nameLabel:null==j?void 0:j.txt_agree_receive_update,classNameLabel:"text-14 lg:text-16 ml-2 [&_span]:font-semibold",defaultChecked:(null==E?void 0:null===(g=E.contact)||void 0===g?void 0:g.whatsapp_opt_in_status)||!M})]})]})]})}))}}]);
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.