1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="2b3d64c7-9c7a-4bad-9c34-5bf462851933",e._sentryDebugIdIdentifier="sentry-dbid-2b3d64c7-9c7a-4bad-9c34-5bf462851933")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6210,8815],{5391:(e,l,n)=>{n.d(l,{A:()=>u});var a=n(2860),r=n(40427),t=n(49007),i=n(55729),c=n(98986),o=n(47126),s=n(68106);let d=e=>(0,r.A)(String(e),2,"0"),m=e=>{let{value:l,label:n}=e;return(0,a.FD)("span",{className:"flex items-center gap-[4px]",children:[(0,a.Y)("span",{className:"text-content-accent",children:l}),(0,a.Y)("span",{className:"text-content-primary",children:n})]})},u=e=>{let{startsAt:l,onEnd:n}=e,{t:r}=(0,c.Bd)("common"),u=(0,i.useCallback)(e=>{let l=e.getTimeValues();return(0,a.FD)("div",{className:"flex items-center gap-300 text-[14px] font-medium leading-[16px]",children:[(0,a.Y)(m,{value:d(l.days),label:r("common.day_abbr")}),(0,a.Y)(m,{value:d(l.hours),label:r("common.hour_abbr")}),(0,a.Y)(m,{value:d(l.minutes),label:r("common.minute_abbr")}),(0,a.Y)(m,{value:d(l.seconds),label:r("common.second_abbr")})]})},[r]),{duration:p,startTimer:g}=(0,s.L4)({renderDuration:u});return(0,i.useEffect)(()=>{g((0,t.O)(new Date(l),new Date),n)},[l]),(0,a.FD)("div",{className:"bg-background-accent-light flex w-full items-center rounded-999",children:[(0,a.FD)("div",{className:"bg-background-accent flex shrink-0 items-center gap-050 rounded-[100px] py-050 pl-300 pr-[14px]",children:[(0,a.Y)(o.I,{type:"timer",size:16,color:"grayscale-000"}),(0,a.Y)("span",{className:"text-content-on-color text-[12px] leading-[12px]",children:r("common.sale_starts_in")})]}),(0,a.Y)("div",{className:"flex flex-1 items-center justify-center px-[10px] py-200",children:p})]})}},48815:(e,l,n)=>{n.r(l),n.d(l,{default:()=>u});var a=n(2860),r=n(98986),t=n(55729),i=n(1909),c=n(84660),o=n(47126),s=n(41090);let d=e=>{if(!e||8!==e.length||!/^[0-9]{8}$/.test(e))return!1;let l=[1,2,1,2,1,2,4,1],n=e=>e.reduce((e,l)=>Number(e)+Number(l),0),a=0;if("7"==e[6])for(let r=0;r<e.length;r++)6!==r&&(a+=n((parseInt(e[r])*l[r]).toString().split("")));else for(let r=0;r<e.length;r++)a+=n((parseInt(e[r])*l[r]).toString().split(""));return!!Number.isFinite(a)&&("7"===e[6]&&(a%5==0||(a+1)%5==0)||a%5==0)},m=[{iconType:"person",label:"payment:duplicate",value:"duplicate"},{iconType:"apartment",label:"payment:triplicate",value:"triplicate"}];function u(e){var l,n,u;let{className:p,title:g,description:h,pill:f,invoices:x=m,overrideControllerConfig:b}=e,{t:y}=(0,r.Bd)(),{control:v,watch:_,resetField:N}=(0,i.xW)(),Y=_("receiptType"),w=(0,t.useMemo)(()=>{var e;return(null==b||null==(e=b.taxIdNumber)?void 0:e.name)||"taxIdNumber"},[null==b||null==(l=b.taxIdNumber)?void 0:l.name]),k=(0,t.useMemo)(()=>{var e;return(null==b||null==(e=b.companyName)?void 0:e.name)||"companyName"},[null==b||null==(n=b.companyName)?void 0:n.name]),D=(0,t.useMemo)(()=>{var e;return(null==b||null==(e=b.address)?void 0:e.name)||"address"},[null==b||null==(u=b.address)?void 0:u.name]);(0,t.useEffect)(()=>{N(w),N(k),N(D)},[N,Y,w,k,D]);let I=(0,a.FD)(a.FK,{children:[(0,a.Y)(i.xI,{name:"receiptType",control:v,rules:{required:!0},render:e=>{let{field:{onChange:l,value:n}}=e;return(0,a.Y)("div",{className:"flex items-center justify-center gap-x-300 pt-200",children:x.map(e=>{let{iconType:r,label:t,value:i}=e;return(0,a.Y)(s.vu,{variant:"filter",size:"xl",applied:i===n,leadingIcon:(0,a.Y)(o.I,{type:r,size:16}),onClick:()=>l(i),className:"flex-1",children:y(t)},i)})})}}),"triplicate"===Y?(0,a.FD)("div",{className:"flex flex-col gap-500",children:[(0,a.FD)("div",{className:"flex flex-col gap-500 mobileUp:flex-row mobileUp:gap-300",children:[(0,a.Y)(i.xI,{name:w,control:v,rules:{required:{value:!0,message:y("common:form.required_field_empty")},validate:{validTaxId:d}},render:e=>{let{field:l,fieldState:n}=e,{error:r}=n;return(0,a.Y)(s.A_,{...l,size:"md",placeholder:y("payment:invoice_placeholder.tax_id"),label:y("payment:tax_id"),error:(null==r?void 0:r.type)==="validTaxId"?y("payment:invoice_placeholder.tax_id_err"):null==r?void 0:r.message})}}),(0,a.Y)(i.xI,{name:k,control:v,rules:{required:{value:!0,message:y("common:form.required_field_empty")}},render:e=>{let{field:l,fieldState:n}=e,{error:r}=n;return(0,a.Y)(s.A_,{...l,size:"md",placeholder:y("payment:invoice_placeholder.company_name"),label:y("payment:company_name"),error:null==r?void 0:r.message})}})]}),(0,a.Y)(i.xI,{name:D,control:v,rules:{required:{value:!0,message:y("common:form.required_field_empty")}},render:e=>{let{field:l,fieldState:n}=e,{error:r}=n;return(0,a.Y)(s.A_,{...l,size:"md",placeholder:y("payment:invoice_placeholder.address"),label:y("payment:company_address"),error:null==r?void 0:r.message})}})]}):null]});
1return(0,a.FD)("div",{className:(0,c.Q)("flex flex-col gap-y-300",p),children:[(0,a.FD)("div",{className:"flex flex-col gap-y-050",children:[(0,a.Y)("h5",{className:"text-heading-s text-content-primary",children:g??y("payment:invoice.title")}),(0,a.Y)("span",{className:"text-caption-l text-content-secondary",children:h??y("payment:invoice.title_warning")})]}),I]})}},63337:(e,l,n)=>{n.d(l,{A:()=>t});var a=n(2860);n(55729);var r=n(41090);let t=e=>{let{children:l,onClick:n,disabled:t}=e;return(0,a.Y)(r.$n,{disabled:t,onClick:n,fullWidth:!0,size:"lg",className:"mobileUp:m-auto mobileUp:w-fit",children:l})}},66210:(e,l,n)=>{n.d(l,{T3:()=>f,P5:()=>y,wn:()=>t,Vh:()=>i.A,$G:()=>c.default,Wr:()=>o.default,_$:()=>x.A}),n(5391),n(63337);var a=n(2860),r=n(15553);function t(e){let{title:l,Subtitle:n,description:t,className:i,titleVariant:c="heading_m_500",titleClassName:o,descClassName:s,children:d}=e;return(0,a.FD)("div",{className:i,children:[(0,a.FD)("div",{className:"flex items-center gap-1.5",children:[l?(0,a.Y)(r.E,{component:"h5",variant:c,className:o,children:l}):null,n?(0,a.Y)(n,{}):null]}),t?(0,a.Y)(r.E,{component:"p",variant:"body_m_400",className:s,color:"grayscale-400",children:t}):null,d||null]})}var i=n(13768),c=n(48815),o=n(75189),s=n(98986),d=n(1909),m=n(84660),u=n(47126),p=n(41090),g=n(96848),h=n(79798);function f(e){let{className:l}=e,{t:n}=(0,s.Bd)(),{control:r}=(0,d.xW)(),{openAuthModal:t}=(0,g.As)();return(0,a.FD)("div",{className:(0,m.Q)("flex flex-col gap-y-300",l),children:[(0,a.FD)("div",{className:"flex items-baseline justify-between",children:[(0,a.FD)("div",{className:"flex flex-col gap-y-050",children:[(0,a.Y)("h5",{className:"text-heading-s text-content-primary",children:n("crowdin:guest-checkout.contact-info","è¯çµ¡è³è¨")}),(0,a.Y)("span",{className:"text-caption-l text-content-secondary",children:n("crowdin:guest-checkout.email-hint","ææå
æç¢¼å°å¯éè³æ¤ä¿¡ç®±")})]}),(0,a.Y)("button",{type:"button",onClick:()=>t({layout:"sign-in"}),className:"cursor-pointer border-0 bg-transparent p-0 text-label-m text-content-brand",children:n("crowdin:guest-checkout.already-have-account","å·²æå¸³èï¼ç»å
¥")})]}),(0,a.FD)("div",{className:"flex flex-col gap-500",children:[(0,a.Y)(d.xI,{name:"guestEmail",control:r,rules:{required:{value:!0,message:n("common:form.required_field_empty")},pattern:{value:h.G,message:n("crowdin:guest-checkout.invalid-email","è«è¼¸å
¥ææç Email æ ¼å¼")}},render:e=>{var l;let{field:r,fieldState:t}=e;return(0,a.Y)(p.A_,{...r,size:"md",type:"email",label:n("crowdin:guest-checkout.email-label","Email"),placeholder:n("crowdin:guest-checkout.email-placeholder","è«è¼¸å
¥ Email"),error:null==(l=t.error)?void 0:l.message})}}),(0,a.Y)(d.xI,{name:"guestMobile",control:r,rules:{required:{value:!0,message:n("common:form.required_field_empty")},pattern:{value:h.C,message:n("crowdin:guest-checkout.invalid-mobile","è«è¼¸å
¥ææçææ©è碼ï¼09 éé å
± 10 碼ï¼")}},render:e=>{var l;let{field:r,fieldState:t}=e;return(0,a.Y)(p.A_,{...r,size:"md",type:"tel",label:n("crowdin:guest-checkout.mobile-label","ææ©è碼"),placeholder:n("crowdin:guest-checkout.mobile-placeholder","è«è¼¸å
¥ææ©è碼"),error:null==(l=t.error)?void 0:l.message})}})]}),(0,a.FD)("p",{className:"bg-background-secondary flex items-center gap-x-200 rounded-500 px-300 py-200 text-body-s text-content-primary",children:[(0,a.Y)(u.I,{type:"error"}),n("crowdin:guest-checkout.binding-warning","è³¼è²·å®æå¾ï¼ææå
æç¢¼å°å¯éè³æ¨å¡«å¯«ç Emailï¼è«ç¢ºèªè³ææ£ç¢ºã")]})]})}var x=n(55274),b=n(26857);function y(e){let{className:l}=e,{t:n}=(0,s.Bd)(),{openAuthModal:r}=(0,g.As)(),{blockedApiItems:t}=(0,x.A)(),i=t.length,c=e=>{(0,b.H0)({cta:e,blockedItemsCount:i}),r({layout:"login"===e?"sign-in":"sign-up",onSuccess:()=>(0,b.O0)({via:e,blockedItemsCount:i})})};return(0,a.FD)("div",{className:(0,m.Q)("flex flex-col gap-y-300",l),children:[(0,a.Y)("div",{className:"flex flex-col gap-y-050",children:(0,a.Y)("h5",{className:"text-heading-s text-content-primary",children:n("crowdin:guest-checkout.contact-info","è¯çµ¡è³è¨")})}),(0,a.FD)("p",{className:"bg-background-secondary flex items-center gap-x-200 rounded-500 px-300 py-200 text-body-s text-content-primary",children:[(0,a.Y)(u.I,{type:"error"}
1),n("crowdin:guest-checkout.login-required","çµå¸³çååéå
註å帳èæç»å
¥")]}),(0,a.FD)("div",{className:"flex flex-col gap-y-200 mobileUp:flex-row mobileUp:gap-x-200",children:[(0,a.Y)(p.$n,{type:"button",variant:"outlined",color:"primary",size:"lg",fullWidth:!0,"aria-label":"cart-signup-button",onClick:()=>c("signup"),children:n("common:auth.signup","註å")}),(0,a.Y)(p.$n,{type:"button",color:"primary",size:"lg",fullWidth:!0,"aria-label":"cart-login-button",onClick:()=>c("login"),children:n("common:auth.login","ç»å
¥")})]})]})}},79798:(e,l,n)=>{n.d(l,{C:()=>r,G:()=>a});let a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,r=/^09\d{8}$/}}]);
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.