<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7279],{75102:function(e,r,l){l.d(r,{Y:function(){return n},sP:function(){return a}});var t=l(21329);let n=(0,t.B)("\n    mutation createLabelForUser(\n        $email: String!\n        $label: String!\n        $brandCode: String\n    ) {\n        user: createLabelForUser(\n            email: $email\n            label: $label\n            brandCode: $brandCode\n        ) {\n            ...user\n        }\n    }\n");(0,t.B)("\n    mutation deleteUser($email: String!) {\n        deleteUser(email: $email) {\n            ...user\n        }\n    }\n"),(0,t.B)("\n    query getTransaction($email: String!) {\n        transactions(email: $email) {\n            ...transaction\n        }\n    }\n"),(0,t.B)("\n    query getUser($email: String!) {\n        user(email: $email) {\n            ...user\n        }\n    }\n");let a=(0,t.B)("\n    mutation registerUser($contact: InputUser!, $brandCode: String) {\n        user: registerUser(contact: $contact, brandCode: $brandCode) {\n            ...user\n        }\n    }\n");(0,t.B)("\n    mutation signupUser($email: String!, $countryCode: String!) {\n        user: signupUser(email: $email, countryCode: $countryCode) {\n            ...user\n        }\n    }\n"),(0,t.B)("\n    mutation updateUser(\n        $contact: InputUser!\n        $email: String!\n        $brandCode: String\n    ) {\n        user: updateUser(\n            contact: $contact\n            email: $email\n            brandCode: $brandCode\n        ) {\n            ...user\n        }\n    }\n")},91170:function(e,r,l){l.d(r,{q:function(){return a}});var t=l(91597),n=l(75102);let a=async e=&gt;{try{return await (0,t.Xn)({query:n.Y,variables:e})}catch(e){throw e}}},75147:function(e,r,l){l.d(r,{a$:function(){return a}});var t=l(91597),n=l(75102);let a=async e=&gt;{try{return await (0,t.Xn)({query:n.sP,variables:e})}catch(e){throw console.error("registerUser error",e),e}}},77999:function(e,r,l){l.r(r),l.d(r,{default:function(){return k}});var t=l(52336),n=l(68789),a=l(14463),o=l(44369),i=l(50696),s=l(28877),d=l(33559),c=l(50399),m=l(12411),u=l(69150);function x(e){let{name:r,label:l,...n}=e,o=(0,i.w1)(),{register:s,formState:{errors:d},setValue:x,getValues:p}=(0,a.Gc)(),[b,h]=(0,m.useState)(!1),v=d[r];return(0,t.jsxs)(c.Ph,{defaultValue:p(r),onOpenChange:h,onValueChange:e=&gt;{x(r,e)},open:b,...s(r),...n,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 max-md:col-span-2",children:[l&amp;&amp;(0,t.jsx)("label",{htmlFor:r,className:"text-sm",children:l}),(0,t.jsx)(c.i4,{id:"countryCode",open:b,children:(0,t.jsx)(c.ki,{placeholder:null!=l?l:"Select country"})})]}),(0,t.jsx)(c.Bw,{children:o.map(e=&gt;(0,t.jsx)(c.Ql,{value:e.code,children:(0,t.jsxs)("span",{className:"flex grow content-between items-center gap-2",children:[(0,t.jsx)(u.Z,{code:e.code,className:"h-4 w-4 flex-shrink-0 rounded-full border border-black object-cover"}),(0,t.jsx)("span",{className:"flex items-center gap-1",children:e.label})]})},e.code))}),(null==v?void 0:v.message)&amp;&amp;(0,t.jsx)("p",{className:"mt-1 text-sm text-red-500",children:null==v?void 0:v.message})]})}function p(e){let{className:r,name:l,...n}=e,{register:o,formState:{errors:i}}=(0,a.Gc)(),c=i[l];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d.II,{className:(0,s.cn)("flex flex-col",r),error:c,renderError:e=&gt;(0,t.jsx)("p",{className:"mt-1 text-sm text-red-500",children:null==e?void 0:e.message}),...o(l),...n,onChange:e=&gt;{o(l).onChange(e)}})})}var b=l(54931);function h(e){var r;let{dictionary:l}=e,{getValues:n,setValue:o}=(0,a.Gc)();return(0,t.jsx)(p,{type:"tel",name:"mobilePhone",label:null!==(r=l.voyadoSignUpFormPhoneNumberLabel)&amp;&amp;void 0!==r?r:"Phone number",required:!0,onBlur:()=&gt;{let{mobilePhone:e,countryCode:r}=n(),l=(0,b.S)(e,r.toUpperCase());l&amp;&amp;l.isValid()&amp;&amp;o("mobilePhone",l.format("E.164"),{shouldValidate:!0,shouldDirty:!0})}})}var v=l(84329);function f(e){let{children:r,isLoading:l}=e;return(0,t.jsx)(d.zx,{type:"submit",variant:"primary",size:"lg",children:l?(0,t.jsx)(v.H,{className:"animate-spin",size:24}):r})}var g=l(75147),j=l(91170),y=l(63577),N=l(41105),F=l(22841),w=l(44828);let C=w.z.object({firstName:w.z.string().min(1,"First name is required"),lastName:w.z.string().min(1,"Last name is required"),email:w.z.string().min(1,"Email is required").email("Invalid email address"),company:w.z.string().min(1,"Company is required"),companyTitle:w.z.string().min(1,"Company title is required"),street:w.z.string().optional(),zipCode:w.z.string().optional(),city:w.z.string().optional(),countryCode:w.z.string().length(2,"Country is required"),mobilePhone:w.z.string().min(1,"Phone number is required")}).superRefine((e,r)=&gt;{let l=(0,b.S)(e.mobilePhone,e.countryCode);l&amp;&amp;l.isValid()||r.addIssue({path:["mobilePhone"],code:w.z.ZodIssueCode.custom,message:"Invalid phone number for selected country"})}).transform(e=&gt;{var r;let l=(0,b.S)(e.mobilePhone,e.countryCode);return{...e,mobilePhone:null!==(r=null==l?void 0:l.format("E.164"))&amp;&amp;void 0!==r?r:e.mobilePhone}});function I(e){var r,l;let{className:n,dictionary:a}=e;return(0,t.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-3 bg-white px-6 py-8 text-black",n),children:[(0,t.jsx)(d.X6,{size:{initial:5,lg:4},children:null!==(r=a.voyadoSignupFormSuccessHeading)&amp;&amp;void 0!==r?r:"Thank you for your application!"}),(0,t.jsx)("p",{className:"text-sm",children:null!==(l=a.voyadoSignUpFormSuccessText)&amp;&amp;void 0!==l?l:"Thank you for your application. We will get back to you as soon as possible."})]})}function k(e){var r,l,c,m,u,b,v,w,k,S;let{className:T,locale:L,reference:P,dictionary:A}=e,O=(0,i.I6)(L),q=(0,a.cI)({resolver:(0,n.F)(C),defaultValues:{countryCode:O.code}}),{mutate:M,isSuccess:U,isPending:W,isError:E,error:z}=function(e){let{label:r}=e;return(0,y.D)({mutationFn:g.a$,mutationKey:["voyadoContact"],onSuccess:e=&gt;{console.log("Voyado contact created successfully:",e),(0,F.JI)(e.user.attributes.email),(0,N.oS)(e.user.attributes.email)},onError:e=&gt;{console.error("Error creating Voyado contact:",e)},onSettled:async(e,l,t)=&gt;{var n,a,i;if(!r){console.warn("Label is not defined. Skipping createLabelForUser.");return}let s=null!==(i=null==e?void 0:null===(a=e.user)||void 0===a?void 0:null===(n=a.attributes)||void 0===n?void 0:n.email)&amp;&amp;void 0!==i?i:t.contact.email;return(0,j.q)({brandCode:o.i,email:s,label:r}).then(e=&gt;{if(!e.user){console.error("Could not create label ".concat(r," for user ").concat(s),e);return}console.log("Successfully created label ".concat(r," for email ").concat(s))}).catch(e=&gt;{console.error("Error creating label ".concat(r," for user ").concat(s,":"),e)})}})}({label:null!=P?P:"voyado-sign-up-form"}),R=q.handleSubmit(e=&gt;{var r;M({brandCode:o.i,contact:{...e,countryCode:null!==(r=e.countryCode)&amp;&amp;void 0!==r?r:O.code,externalStoreId:O.externalStoreId,source:null!=P?P:"voyado-sign-up-form"}})});return U||E&amp;&amp;z.message.includes("Conflict")?(0,t.jsx)(I,{dictionary:A}):(0,t.jsx)(a.RV,{...q,children:(0,t.jsxs)("form",{onSubmit:R,className:(0,s.cn)("flex flex-col gap-2 bg-white p-4 text-black",T),children:[(null==A?void 0:A.voyadoSignUpFormHeading)&amp;&amp;(0,t.jsx)(d.X6,{className:"lg:mb-3",size:{initial:5,lg:4},children:null==A?void 0:A.voyadoSignUpFormHeading}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)(p,{type:"text",name:"firstName",label:null!==(r=null==A?void 0:A.voyadoSignUpFormFirstNameLabel)&amp;&amp;void 0!==r?r:"First name",required:!0}),(0,t.jsx)(p,{type:"text",name:"lastName",label:null!==(l=null==A?void 0:A.voyadoSignUpFormLastNameLabel)&amp;&amp;void 0!==l?l:"Last name",required:!0})]}),(0,t.jsx)(p,{type:"email",name:"email",label:null!==(c=null==A?void 0:A.voyadoSignUpFormEmailLabel)&amp;&amp;void 0!==c?c:"Email address",required:!0}),(0,t.jsx)(p,{type:"text",name:"company",label:null!==(m=A.voyadoSignUpFormCompanyLabel)&amp;&amp;void 0!==m?m:"Company name",required:!0}),(0,t.jsx)(p,{type:"text",name:"companyTitle",label:null!==(u=A.voyadoSignUpFormCompanyTitleLabel)&amp;&amp;void 0!==u?u:"Your role / title",required:!0}),(0,t.jsx)(p,{type:"text",name:"street",label:null!==(b=A.voyadoSignUpFormStreetLabel)&amp;&amp;void 0!==b?b:"Your street address"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)(p,{type:"text",name:"zipCode",label:null!==(v=A.voyadoSignUpFormZipCodeLabel)&amp;&amp;void 0!==v?v:"Zip code"}),(0,t.jsx)(p,{type:"text",name:"city",label:null!==(w=A.voyadoSignUpFormCityLabel)&amp;&amp;void 0!==w?w:"City"})]}),(0,t.jsx)(x,{label:null==A?void 0:A.country,name:"countryCode"}),(0,t.jsx)(h,{dictionary:A}),(0,t.jsx)(f,{isLoading:W,children:null!==(k=null==A?void 0:A.voyadoSignUpFormSubmitButton)&amp;&amp;void 0!==k?k:"Sign up"}),E&amp;&amp;!(null==z?void 0:z.message.includes("Conflict"))&amp;&amp;(0,t.jsx)("p",{className:"text-sm text-red-500",children:null!==(S=A.voyadoSignUpFormErrorMessage)&amp;&amp;void 0!==S?S:"An error occurred. Please try again later."})]})})}},37102:function(e,r,l){l.d(r,{Z:function(){return d}});var t=l(52336),n=l(12411),a=l(28877),o=l(96600);let i=/^0+/,s=e=&gt;e.length&gt;1?e.replace(i,""):e;function d(e){let{id:r,max:l,min:i,name:d,label:c,suffix:m,locale:u,className:x,alignLabel:p="left",value:b}=e,h=(0,n.useMemo)(()=&gt;m?"%CURRENCY%"===m?(0,o.T)(b,u):"".concat(b," ").concat(m):b,[b,m,u]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{htmlFor:r,className:(0,a.cn)("w-full","text-xxs","left"===p?"text-left":"text-right"),children:c}),(0,t.jsxs)("div",{className:(0,a.cn)("relative flex flex-col items-stretch justify-center transition-all ease-out"),children:[(0,t.jsx)("input",{defaultValue:b,name:d,id:r,type:"number",className:(0,a.cn)("peer block w-full p-1 placeholder-black","text-center text-sm","border border-black",x),onChange:e=&gt;{let r=s(e.target.value);e.target.value=r},min:Math.ceil(i),max:Math.ceil(l)}),(0,t.jsx)("div",{className:(0,a.cn)("pointer-events-none absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap bg-white text-sm transition-all peer-focus-within:hidden"),children:h}),(0,t.jsx)("input",{size:String(h).length,className:"invisible block h-0 px-1 text-sm",defaultValue:h})]})]})}},93695:function(e,r,l){l.d(r,{II:function(){return i},Ph:function(){return m},gx:function(){return u}});var t=l(52336),n=l(12411),a=l(45774),o=l(28877),i=(0,n.forwardRef)((e,r)=&gt;{let{label:l,id:n,classNames:i,endAdornment:s,required:d,...c}=e,m=!0===c["aria-invalid"];return(0,t.jsx)(a.II,{ref:r,required:d,placeholder:l,endAdornment:(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsxs)("label",{htmlFor:n,className:(0,o.cn)("pointer-events-none absolute bottom-2.5 left-4 top-2.5 text-sm text-grey-300","transition-transform peer-focus:-translate-y-1.5 peer-focus:text-xxs","peer-[&amp;:not(:placeholder-shown)]:-translate-y-1.5 peer-[&amp;:not(:placeholder-shown)]:text-xxs",m&amp;&amp;"text-error",null==i?void 0:i.label),children:[l,d&amp;&amp;"*"]}):null,s]}),classNames:{...i,hint:(0,o.cn)("pl-4",m&amp;&amp;"text-error",null==i?void 0:i.hint),input:(0,o.cn)("peer h-10 w-full border border-black px-4 pb-1.5 pt-4 text-base lg:text-sm","bg-white placeholder:text-transparent",m&amp;&amp;"border-error",null==i?void 0:i.input)},...c})});l(37102);var s=l(2249),d=l(88953),c=l(27207);function m(e){var r;let{children:l,options:a,name:i,required:m=!1,disabled:u=!1,labelIcon:x,optionIcon:p,preSelectedOption:b,classNames:h={},placeholder:v}=e,[f,g]=(0,n.useState)(b||null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.R,{value:f,onChange:g,disabled:u,children:(0,t.jsxs)("div",{className:(0,o.cn)("relative w-full self-start bg-white text-black",h.wrapper),children:[(0,t.jsx)("input",{type:"text",name:i,required:m,disabled:u,className:"pointer-events-none absolute inset-0 select-none appearance-none bg-transparent text-transparent opacity-0 shadow-none",value:null!==(r=null==f?void 0:f.value)&amp;&amp;void 0!==r?r:"",readOnly:!0,tabIndex:-1,"aria-hidden":"true","aria-readonly":"true",autoComplete:"off"}),(0,t.jsx)(s.R.Button,{className:(0,o.cn)("group flex h-10 w-full items-center border border-black bg-inherit px-4 text-sm text-inherit lg:h-12","peer:dirty:invalid:border-error",h.button),children:()=&gt;(0,t.jsxs)(t.Fragment,{children:[f&amp;&amp;x?(0,t.jsx)("div",{className:"mr-2 h-4 w-4 flex-shrink-0",children:x(f)}):null,(null==f?void 0:f.label)?(0,t.jsx)("span",{children:null==f?void 0:f.label}):(0,t.jsx)("span",{className:"text-grey-300",children:v}),(0,t.jsx)(c.ve,{className:(0,o.cn)(["ml-auto flex-shrink-0 text-base text-inherit transition-transform group-aria-expanded:-rotate-180",!(null==f?void 0:f.label)&amp;&amp;"text-grey-300"]),"aria-hidden":"true"})]})}),(0,t.jsx)(d.u,{as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)(s.R.Options,{className:"absolute top-full z-10 mt-0 max-h-40 w-full -translate-y-px overflow-auto border border-black bg-inherit py-1 pl-0 text-inherit",children:a.map(e=&gt;e.label&amp;&amp;(0,t.jsxs)(s.R.Option,{value:e,className:(0,o.cn)("flex cursor-pointer items-center px-4 py-1 text-sm space-x-2 ui-active:bg-gray-100",h.option),children:[p?(0,t.jsx)("div",{className:"mr-2 h-4 w-4 flex-shrink-0",children:p(e)}):null,e.label]},e.id))})})]})}),l]})}function u(e){let{classNames:r,endAdornment:l,label:n,id:i,required:s,placeholder:d="",...c}=e;return(0,t.jsx)(a.gx,{...c,required:s,placeholder:d,id:i,endAdornment:(0,t.jsxs)(t.Fragment,{children:[n?(0,t.jsxs)("label",{htmlFor:i,className:(0,o.cn)("pointer-events-none absolute bottom-2.5 left-4 top-2.5 text-sm text-grey-300 transition-transform peer-focus:-translate-y-1.5 peer-focus:text-xxs peer-[&amp;:not(:placeholder-shown)]:-translate-y-1.5 peer-[&amp;:not(:placeholder-shown)]:text-xxs",null==r?void 0:r.label),children:[n,s&amp;&amp;"*"]}):null,l]}),classNames:{...r,textarea:(0,o.cn)("peer h-32 w-full border border-black px-4 py-3.5 text-sm placeholder:text-transparent focus:placeholder:text-grey-300",null==r?void 0:r.textarea)}})}},50399:function(e,r,l){l.d(r,{Bw:function(){return b},Ph:function(){return c},Ql:function(){return h},i4:function(){return u},ki:function(){return m}});var t=l(52336),n=l(27207),a=l(64224),o=l(4751),i=l(57202),s=l(12411),d=l(28877);let c=a.fC;a.ZA;let m=a.B4,u=(0,s.forwardRef)((e,r)=&gt;{let{className:l,children:n,open:i,...s}=e;return(0,t.jsxs)(a.xz,{ref:r,className:(0,d.cn)("flex h-10 w-full items-center justify-between border border-grey-300 bg-white px-4 text-sm font-medium focus:border focus:border-black focus:outline-none disabled:opacity-50 [&amp;&gt;span]:line-clamp-1",l),...s,children:[n,(0,t.jsx)(a.JO,{asChild:!0,children:(0,t.jsx)(o.Z,{className:(0,d.cn)("h-4 w-4",i&amp;&amp;"rotate-180")})})]})});u.displayName=a.xz.displayName;let x=(0,s.forwardRef)((e,r)=&gt;{let{className:l,...n}=e;return(0,t.jsx)(a.u_,{ref:r,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",l),...n,children:(0,t.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=a.u_.displayName;let p=(0,s.forwardRef)((e,r)=&gt;{let{className:l,...n}=e;return(0,t.jsx)(a.$G,{ref:r,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",l),...n,children:(0,t.jsx)(o.Z,{className:"h-4 w-4"})})});p.displayName=a.$G.displayName;let b=(0,s.forwardRef)((e,r)=&gt;{let{className:l,children:n,position:o="popper",...i}=e;return(0,t.jsx)(a.h_,{children:(0,t.jsxs)(a.VY,{ref:r,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden border border-grey-300 bg-white","popper"===o&amp;&amp;"data-[side=bottom]:-translate-y-[1px] data-[side=left]:-translate-x-0 data-[side=right]:translate-x-0 data-[side=top]:translate-y-[1px] lg:data-[side=top]:translate-y-[2px]",l),position:o,...i,children:[(0,t.jsx)(x,{}),(0,t.jsx)(a.l_,{className:(0,d.cn)("py-1","popper"===o&amp;&amp;"h-[var(--radix-select-trigger-height)] w-full min-w-[calc(var(--radix-select-trigger-width)-2px)]"),children:n}),(0,t.jsx)(p,{})]})})});b.displayName=a.VY.displayName,(0,s.forwardRef)((e,r)=&gt;{let{className:l,...n}=e;return(0,t.jsx)(a.__,{ref:r,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-base font-semibold",l),...n})}).displayName=a.__.displayName;let h=(0,s.forwardRef)((e,r)=&gt;{let{className:l,children:o,selectItemChildren:i,hideIndicator:s,...c}=e;return(0,t.jsxs)(a.ck,{ref:r,className:(0,d.cn)('relative flex w-full cursor-pointer select-none items-center justify-between gap-3 px-4 py-2 text-sm outline-none transition-colors duration-500 ease-out checked:bg-grey-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:duration-0 focus:bg-grey-100 [&amp;[data-state="checked"]]:bg-grey-100',l),...c,children:[(0,t.jsx)(a.eT,{children:o}),!s&amp;&amp;(0,t.jsx)(a.wU,{className:"ml-auto",children:(0,t.jsx)(n.nQ,{className:"h-4 w-4"})}),i]})});h.displayName=a.ck.displayName,(0,s.forwardRef)((e,r)=&gt;{let{className:l,...n}=e;return(0,t.jsx)(a.Z0,{ref:r,className:(0,d.cn)("bg-muted -mx-1 my-1 h-px",l),...n})}).displayName=a.Z0.displayName},30431:function(e,r,l){l.r(r),l.d(r,{default:function(){return m}});var t=l(52336),n=l(33559),a=l(93695),o=l(87294),i=l(12411),s=l(70379),d=l.n(s),c=l(28877);function m(e){var r,l,s,m,u,x,p,b;let{className:h,reference:v,dictionary:f}=e,[g,j]=(0,o.cI)(null!=v?v:"mbldkyoj"),[y,N]=(0,i.useState)(void 0),F=(0,i.useMemo)(()=&gt;[{id:1,value:null==f?void 0:f.tradeAccountCompanyTypeOption1,label:null==f?void 0:f.tradeAccountCompanyTypeOption1},{id:2,value:null==f?void 0:f.tradeAccountCompanyTypeOption2,label:null==f?void 0:f.tradeAccountCompanyTypeOption2},{id:3,value:null==f?void 0:f.tradeAccountCompanyTypeOption3,label:null==f?void 0:f.tradeAccountCompanyTypeOption3},{id:4,value:null==f?void 0:f.tradeAccountCompanyTypeOption4,label:null==f?void 0:f.tradeAccountCompanyTypeOption4},{id:5,value:null==f?void 0:f.tradeAccountCompanyTypeOption5,label:null==f?void 0:f.tradeAccountCompanyTypeOption5},{id:6,value:null==f?void 0:f.tradeAccountCompanyTypeOption6,label:null==f?void 0:f.tradeAccountCompanyTypeOption6},{id:7,value:null==f?void 0:f.tradeAccountCompanyTypeOption7,label:null==f?void 0:f.tradeAccountCompanyTypeOption7},{id:8,value:null==f?void 0:f.tradeAccountCompanyTypeOption8,label:null==f?void 0:f.tradeAccountCompanyTypeOption8}],[f]),w=(0,i.useMemo)(()=&gt;{var e;return null==f?void 0:null===(e=f.tradeAccountFormSuccessText)||void 0===e?void 0:e.replace("{email}","&lt;strong&gt;".concat(y,"&lt;/strong&gt;"))},[y,null==f?void 0:f.tradeAccountFormSuccessText]);return g.succeeded?(0,t.jsxs)("div",{className:(0,c.cn)("flex flex-col gap-3",h),children:[(0,t.jsx)(n.X6,{size:{initial:5,lg:4},children:null==f?void 0:f.tradeAccountFormSuccessHeading}),w&amp;&amp;(0,t.jsx)("p",{className:"text-sm",dangerouslySetInnerHTML:{__html:d()(w)}})]}):(0,t.jsxs)("form",{onSubmit:j,className:(0,c.cn)("flex flex-col gap-3",h),children:[(0,t.jsx)(n.X6,{className:"lg:mb-3",size:{initial:5,lg:4},children:null!==(r=null==f?void 0:f.tradeAccountFormHeading)&amp;&amp;void 0!==r?r:"Apply here"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(a.II,{type:"text",name:"contactName",id:"contactName",label:null!==(l=null==f?void 0:f.tradeAccountContactNameLabel)&amp;&amp;void 0!==l?l:"Contact name",required:!0,fullWidth:!0}),(0,t.jsx)(o.p8,{field:"contactName",errors:g.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(a.II,{type:"text",name:"companyName",id:"companyName",label:null!==(s=null==f?void 0:f.tradeAccountCompanyNameLabel)&amp;&amp;void 0!==s?s:"Company name",required:!0,fullWidth:!0}),(0,t.jsx)(o.p8,{field:"companyName",errors:g.errors})]}),(0,t.jsx)("div",{children:(0,t.jsx)(a.Ph,{classNames:{button:"h-10 lg:h-10"},name:"companyType",options:F,placeholder:null!==(m=null==f?void 0:f.tradeAccountFormCompanyTypePlaceholder)&amp;&amp;void 0!==m?m:"Company type",required:!0,children:(0,t.jsx)(o.p8,{field:"companyType",errors:g.errors})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(a.II,{type:"email",name:"email",id:"email",label:null!==(u=null==f?void 0:f.tradeAccountEmailLabel)&amp;&amp;void 0!==u?u:"Email",required:!0,fullWidth:!0,onChange:e=&gt;{N(e.target.value)}}),(0,t.jsx)(o.p8,{field:"email",errors:g.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(a.II,{type:"tel",name:"phoneNumber",id:"phoneNumber",label:null!==(x=null==f?void 0:f.tradeAccountPhoneNumberLabel)&amp;&amp;void 0!==x?x:"Phone number",required:!0,fullWidth:!0}),(0,t.jsx)(o.p8,{field:"phoneNumber",errors:g.errors})]}),(0,t.jsx)("div",{children:(0,t.jsx)(n.zx,{className:"w-full",variant:"primary",size:"lg",type:"submit",isLoading:g.submitting,children:null!==(p=null==f?void 0:f.tradeAccountFormSubmitButton)&amp;&amp;void 0!==p?p:"Submit application"})}),(0,t.jsx)("p",{className:"mt-3 text-sm",children:null!==(b=null==f?void 0:f.tradeAccountFormPrivacyText)&amp;&amp;void 0!==b?b:"By submitting your application, you agree to our Privacy Policy and Terms &amp; Conditions"})]})}},84838:function(e,r,l){l.r(r),l.d(r,{BookMeetingPopup:function(){return p},default:function(){return x}});var t=l(52336),n=l(93695),a=l(16304),o=l(87294),i=l(45774),s=l(12411),d=l(70379),c=l.n(d),m=l(28877),u=l(68555);function x(e){let{className:r,reference:l,dictionary:d}=e,{dictionary:u}=(0,a.Mj)(),[x,p]=(0,o.cI)(l||"xnqkover"),[b,h]=(0,s.useState)(void 0),v=(0,s.useCallback)(e=&gt;null==x?void 0:x.errors.some(r=&gt;r.field===e),[x.errors]),f=(0,s.useMemo)(()=&gt;[{id:1,value:d.stockholm,label:d.stockholm},{id:2,value:d.gothenburg,label:d.gothenburg},{id:3,value:d.malmo,label:d.malmo},{id:4,value:d.digitalMeeting,label:d.digitalMeeting}],[d]),g=(0,s.useMemo)(()=&gt;d.bookMeetingFormSuccessText.replace("%EMAIL%","&lt;strong&gt;".concat(b,"&lt;/strong&gt;")),[b,d.bookMeetingFormSuccessText]);return x.succeeded?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:d.bookMeetingFormSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",dangerouslySetInnerHTML:{__html:c()(g)}})]}):(0,t.jsxs)("form",{onSubmit:p,className:(0,m.cn)("max-w-4xl",r),children:[d.bookMeetingFormHeading&amp;&amp;(0,t.jsx)("h3",{className:"w-full text-lg font-medium",children:d.bookMeetingFormHeading}),(0,t.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,t.jsx)(n.II,{id:"name",name:"name",type:"text",required:!0,fullWidth:!0,label:d.bookMeetingFormNameLabel||u.name,classNames:{input:v("name")?"border border-error":""}}),(0,t.jsx)(o.p8,{className:"mt-2 text-sm",field:"name",errors:x.errors}),(0,t.jsx)(n.II,{id:"email",name:"email",type:"email",required:!0,fullWidth:!0,label:d.bookMeetingFormEmailLabel||u.email,classNames:{input:v("email")?"border border-error":""},onChange:e=&gt;{h(e.target.value)}}),(0,t.jsx)(o.p8,{className:"mt-2 text-sm",field:"email",errors:x.errors}),(0,t.jsx)(n.II,{id:"phoneNumber",name:"phoneNumber",type:"tel",fullWidth:!0,label:d.bookMeetingFormPhoneNumberLabel||u.phoneNumber,classNames:{input:v("phoneNumber")?"border border-error":""}}),(0,t.jsx)(o.p8,{className:"mt-2 text-sm",field:"phoneNumber",errors:x.errors}),(0,t.jsx)(n.Ph,{name:"consultation",placeholder:d.bookMeetingFormConsultationPlaceholder||u.consultation,options:f,children:(0,t.jsx)(o.p8,{className:"mt-2 text-sm",field:"room",errors:x.errors})})]}),(0,t.jsx)(i.zx,{type:"submit",isLoading:x.submitting,fullWidth:!0,className:"btn-primary mt-6",children:d.bookMeetingFormSubmitButton||u.send}),(0,t.jsx)("input",{type:"text",name:"_gotcha",className:"hidden"})]})}function p(e){var r;let{form:l}=e,n=(0,u.Xk)(null==l?void 0:null===(r=l.dictionaryCollection)||void 0===r?void 0:r.items);return(0,t.jsx)("div",{className:"mx-auto max-w-[420px] bg-white px-4 py-8 md:px-6",children:(0,t.jsx)(x,{dictionary:n,className:"mt-4"})})}},78967:function(e,r,l){l.r(r),l.d(r,{default:function(){return s}});var t=l(52336),n=l(93695),a=l(87294),o=l(45774),i=l(12411);function s(e){let{dictionary:r,reference:l}=e,[s,d]=(0,a.cI)(l||""),[c,m]=(0,i.useState)(null),u=(0,i.useMemo)(()=&gt;[{id:1,value:null==r?void 0:r.claimsFormValueBroken,label:null==r?void 0:r.claimsFormLabelBroken},{id:2,value:null==r?void 0:r.claimsFormValueNotWorking,label:null==r?void 0:r.claimsFormLabelNotWorking},{id:3,value:null==r?void 0:r.claimsFormValueNotAsDescribed,label:null==r?void 0:r.claimsFormNotAsDescribed}],[r]);if(s.succeeded)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==r?void 0:r.formSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==r?void 0:r.formSuccessText})]});let x=c&amp;&amp;[...c].map(e=&gt;e.name).join(", "),p=e=&gt;null==s?void 0:s.errors.some(r=&gt;r.field===e);return(0,t.jsxs)("form",{className:"not-prose max-w-4xl text-sm space-y-3",onSubmit:d,encType:"multipart/form-data",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{name:"Email",id:"email",type:"email",required:!0,fullWidth:!0,label:null==r?void 0:r.formEmailLabel,classNames:{input:p("Email")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Email",errors:s.errors})]}),(0,t.jsx)("div",{children:(0,t.jsx)(n.Ph,{name:"Reason",placeholder:null==r?void 0:r.claimsFormReturnReasonLabel,required:!0,options:u,children:(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Reason",errors:s.errors})})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{type:"number",label:null==r?void 0:r.formOrderNumberLabel,required:!0,fullWidth:!0,name:"Order Number",hintId:"orderNumberHint",hint:null==r?void 0:r.formOrderNumberHint,classNames:{input:p("Order Number")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Order Number",errors:s.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{type:"number",label:null==r?void 0:r.claimsFormArticleNumberLabel,required:!0,fullWidth:!0,name:"Item Number",hintId:"articleNumberHint",hint:null==r?void 0:r.claimsFormArticleNumberHint,classNames:{input:p("Item Number")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Item Number",errors:s.errors})]})]}),(0,t.jsx)(n.gx,{label:null==r?void 0:r.claimsFormTextareaLabel,required:!0,name:"Description",fullWidth:!0,classNames:{textarea:p("Description")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Description",errors:s.errors}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.II,{type:"text",readOnly:!0,label:x||(null==r?void 0:r.claimsFormUploadInputLabel),fullWidth:!0,classNames:{label:(null==c?void 0:c.length)?"text-black":"",input:p("Photos")?"border-error":""},endAdornment:(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-2 right-2 top-2 flex items-center bg-black p-2 text-xs font-medium text-white",children:null==r?void 0:r.formUploadEndAdornmentText})}),(0,t.jsx)("input",{name:"Photos",id:"file",type:"file",onChange:e=&gt;m(e.target.files),className:"absolute inset-0 opacity-0",accept:"image/png, image/gif, image/jpeg",multiple:!0}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Photos",errors:s.errors})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:(0,t.jsx)(o.zx,{type:"submit",fullWidth:!0,isLoading:s.submitting,className:"btn-primary mt-6",children:null==r?void 0:r.claimsFormActionButtonText})})]})}},46782:function(e,r,l){l.r(r),l.d(r,{default:function(){return s}});var t=l(52336),n=l(93695),a=l(87294),o=l(45774),i=l(12411);function s(e){let{dictionary:r,reference:l}=e,[s,d]=(0,a.cI)(l||""),c=e=&gt;null==s?void 0:s.errors.some(r=&gt;r.field===e),m=(0,i.useMemo)(()=&gt;[{id:1,value:null==r?void 0:r.contactFormValueQuote,label:null==r?void 0:r.contactFormLabelQuote},{id:2,value:null==r?void 0:r.contactFormValueOngoing,label:null==r?void 0:r.contactFormLabelOngoing},{id:3,value:null==r?void 0:r.contactFormValueQuestions,label:null==r?void 0:r.contactFormLabelQuestions},{id:4,value:null==r?void 0:r.contactFormValueClaims,label:null==r?void 0:r.contactFormLabelClaims},{id:5,value:null==r?void 0:r.contactFormValueOther,label:null==r?void 0:r.contactFormLabelOther}],[r]);return s.succeeded?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==r?void 0:r.formSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==r?void 0:r.formSuccessText})]}):(0,t.jsxs)("form",{onSubmit:d,className:"not-prose max-w-4xl space-y-3",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{id:"name",name:"Name",type:"text",required:!0,fullWidth:!0,label:null==r?void 0:r.formNameInputLabel,classNames:{input:c("Name")?"border border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Name",errors:s.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{id:"email",name:"Email",type:"email",required:!0,fullWidth:!0,label:null==r?void 0:r.formEmailInputLabelShort,classNames:{input:c("Email")?"border border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Email",errors:s.errors})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{id:"phonenumber",name:"Phonenumber",type:"text",required:!0,fullWidth:!0,label:null==r?void 0:r.contactFormPhoneInputLabel,classNames:{input:c("Phonenumber")?"border border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Phonenumber",errors:s.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{id:"orderNumber",name:"Order Number",type:"text",fullWidth:!0,label:null==r?void 0:r.contactFormOrderNumberLabel,classNames:{input:c("Order Number")?"border border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Order Number",errors:s.errors})]})]}),(0,t.jsx)(n.Ph,{name:"case",placeholder:null==r?void 0:r.contactFormSelectPlaceholder,options:m,required:!0,children:(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"case",errors:s.errors})}),(0,t.jsx)(n.gx,{name:"Message",id:"message",label:null==r?void 0:r.contactFormMessageTextareaLabel,fullWidth:!0,resizable:"none",classNames:{textarea:c("Message")?"border border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Message",errors:s.errors}),(0,t.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-3 md:grid-cols-2",children:(0,t.jsx)(o.zx,{type:"submit",fullWidth:!0,className:"btn-primary",isLoading:s.submitting,children:null==r?void 0:r.contactFormActionButtonText})}),(0,t.jsx)("input",{type:"text",name:"_gotcha",className:"hidden"})]})}},76259:function(e,r,l){l.r(r),l.d(r,{MatchPricePopup:function(){return u},default:function(){return m}});var t=l(52336),n=l(93695),a=l(38437),o=l(84871),i=l(87294),s=l(45774),d=l(12411),c=l(68555);function m(e){let{dictionary:r,reference:l,children:c}=e,[m,u]=(0,i.cI)(l||""),[x,p]=(0,d.useState)(null),{market:{locale:b,currency:h}}=(0,o.A)().state;if(m.succeeded)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==r?void 0:r.matchPriceFormSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==r?void 0:r.matchPriceFormSuccessText})]});let v=e=&gt;null==m?void 0:m.errors.some(r=&gt;r.field===e);return(0,t.jsxs)(t.Fragment,{children:[c,(0,t.jsxs)("form",{onSubmit:u,className:"not-prose grid max-w-4xl grid-cols-1 gap-x-3 md:grid-cols-2",encType:"multipart/form-data",children:[(0,t.jsxs)("div",{className:"space-y-3 md:mt-7",children:[(0,t.jsx)(n.II,{type:"text",id:"productVariant",label:null==r?void 0:r.matchPriceFormProductVariantInputLabel,name:"Product Variant",fullWidth:!0,classNames:{input:v("Product Variant")?"border-error":""}}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Product Variant",errors:m.errors}),(0,t.jsx)(n.II,{type:"number",id:"price",name:"Price",label:null==r?void 0:r.matchPriceFormPriceInputLabel,required:!0,fullWidth:!0,endAdornment:(0,t.jsx)("span",{className:"absolute bottom-2 right-2 top-2 flex items-center p-2 text-sm font-bold uppercase",children:h}),classNames:{input:v("Price")?"border-error":""}}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Price",errors:m.errors}),(0,t.jsx)(n.II,{type:"text",id:"name",name:"Name",label:null==r?void 0:r.matchPriceFormNameInputLabel,required:!0,fullWidth:!0,classNames:{input:v("Name")?"border-error":""}}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Name",errors:m.errors}),(0,t.jsx)(n.II,{type:"email",id:"email",name:"Email",label:null==r?void 0:r.matchPriceFormEmailInputLabel,required:!0,fullWidth:!0,classNames:{input:v("Email")?"border-error":""}}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Email",errors:m.errors})]}),(0,t.jsx)("hr",{className:"my-6 bg-black/25 md:hidden"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-xs",children:null==r?void 0:r.matchPriceFormLinkToResellerInputText}),(0,t.jsx)(n.II,{type:"url",id:"linkToReseller",name:"Link To Reseller",label:null==r?void 0:r.matchPriceFormLinkToResellerInputLabel,fullWidth:!0,classNames:{wrapper:"mt-2",input:v("Link To Reseller")?"border-error":""}}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Link To Reseller",errors:m.errors}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.II,{type:"text",readOnly:!0,label:(null==x?void 0:x.length)?x[0].name:null==r?void 0:r.matchPriceFormUploadInputLabel,fullWidth:!0,classNames:{label:(null==x?void 0:x.length)?"text-black":"",input:v("Uploaded Offer")?"border-error":""},endAdornment:(0,t.jsx)("div",{className:"pointer-events-none absolute bottom-2 right-2 top-2 flex items-center bg-black p-2 text-xs font-medium text-white",children:null==r?void 0:r.formUploadEndAdornmentText})}),(0,t.jsx)("input",{name:"Uploaded Offer",id:"file",type:"file",onChange:e=&gt;p(e.target.files),className:"absolute inset-0 opacity-0"}),(0,t.jsx)(i.p8,{className:"mt-2 text-sm",field:"Uploaded Offer",errors:m.errors})]}),(0,t.jsx)(s.zx,{type:"submit",disabled:m.submitting,fullWidth:!0,className:"btn-primary",children:null==r?void 0:r.formSendButtonTextMatchPrice}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==r?void 0:r.matchPriceFormTermsText}),(0,t.jsx)("p",{className:"mt-2 text-sm",children:(0,t.jsx)(a.Z,{locale:b,href:null==r?void 0:r.matchPriceFormReadMoreLink,className:"underline",children:null==r?void 0:r.matchPriceFormReadMoreLinkText})})]}),(0,t.jsx)("input",{type:"text",name:"_gotcha",className:"hidden"})]})]})}function u(e){var r;let{form:l}=e,n=(0,c.Xk)(null==l?void 0:null===(r=l.dictionaryCollection)||void 0===r?void 0:r.items);return(0,t.jsx)("div",{className:"max-w-[800px] bg-white px-4 py-12 md:px-6",children:(0,t.jsx)(m,{dictionary:n,reference:null==l?void 0:l.reference,children:(0,t.jsx)("div",{className:"mb-6 grid grid-cols-1 gap-x-3 md:mb-1 md:grid-cols-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==n?void 0:n.matchPriceFormHeading}),(0,t.jsx)("p",{className:"mt-3 text-sm",children:null==n?void 0:n.matchPriceFormInfoText})]})})})})}},38080:function(e,r,l){l.r(r),l.d(r,{NewCustomerPopup:function(){return F},default:function(){return N}});var t=l(52336),n=l(69150),a=l(93695),o=l(28877),i=function(e){let{children:r,className:l,startIcon:n,...a}=e;return(0,t.jsxs)("a",{className:(0,o.cn)("h-10 ","border border-grey-300","inline-flex items-center justify-center gap-2 ","px-4 py-3","text-center text-sm font-normal normal-case text-black","select-none","hover:bg-white hover:text-black",l),...a,children:[(0,t.jsx)("div",{className:"flex items-center",children:n}),r]})},s=l(84871),d=l(45774),c=l(27207),m=l(63111),u=l(12411),x=l(31144);l(28251);var p=(0,l(2535).$)("3782e965870020fd0c57bfc37b567f6ce74118a6"),b=l(50696),h=l(68555),v=l(6940),f=l(52896);let g=e=&gt;{let{dictionary:r,onClose:l}=e,{locale:n}=(0,v.AD)().state.market;return(0,t.jsxs)("div",{className:"flex max-w-72 flex-col",children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==r?void 0:r.newCustomerFormHeading}),(0,t.jsx)("p",{className:"mb-6 mt-3 flex-1 text-sm",children:null==r?void 0:r.newCustomerFormInfoText}),(0,t.jsxs)("p",{className:"text-xs",children:[" ",null==r?void 0:r.newCustomerFormTermsText," ",(0,t.jsx)(f.default,{locale:n,className:"underline",onClick:l,href:null==r?void 0:r.newCustomerFormTermsLink,children:null==r?void 0:r.newCustomerFormTermsLinkText})]})]})},j=e=&gt;{let{id:r}=e;return(0,t.jsx)(n.Z,{code:r,className:"h-full w-full rounded-full object-cover"})},y=Object.values(b.Ah).filter(e=&gt;"se"!==e.code&amp;&amp;"no"!==e.code).map(e=&gt;({id:e.code,value:e.code,label:e.label}));function N(e){let{classNames:r,dictionary:l,onClose:n,onlyForm:b=!1}=e,{push:h}=(0,m.useRouter)(),{market:v}=(0,s.A)().state,f=(0,u.useMemo)(()=&gt;"no"!==v.code&amp;&amp;"se"!==v.code,[v.code]),N=p.bind(null,f,v.code),[F,w]=(0,x.useFormState)(N,{}),{pending:C}=(0,x.useFormStatus)(),I=y.find(e=&gt;e.id===v.code),k=(0,u.useCallback)(()=&gt;{if(n){n();return}h("/")},[h,n]);return void 0!==F.success?(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==l?void 0:l.newCustomerFormSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==l?void 0:l.newCustomerFormSuccessText}),(0,t.jsx)(d.zx,{onClick:k,fullWidth:!0,className:"btn-outlined mt-4 bg-white text-black hover:border-white",children:null==l?void 0:l.newCustomerFormSuccessButtonText})]}):(0,t.jsxs)("form",{action:w,className:(0,o.cn)("grid gap-6 md:grid-cols-2 md:gap-12",b&amp;&amp;" grid w-full grid-cols-1 md:grid-cols-1"),children:[!b&amp;&amp;(0,t.jsx)(g,{dictionary:l,onClose:n}),(0,t.jsxs)("div",{className:(0,o.cn)("flex max-w-72 flex-col",b&amp;&amp;"w-full max-w-full"),children:[(0,t.jsxs)("label",{className:"mb-2 block text-sm font-bold",children:["1. ",null==l?void 0:l.newCustomerFormInstagramButtonLabel]}),(0,t.jsx)(i,{href:(null==l?void 0:l.newCustomerFormInstagramUrl)||"https://www.instagram.com/nordiskagalleriet/",className:(0,o.cn)("group","bg-black text-white","visited:border-[#25C50B] visited:bg-[#25C50B] hover:visited:border-black"),target:"_blank",startIcon:(0,t.jsx)("span",{className:(0,o.cn)("flex items-center","-ml-[14px] rounded-full","bg-black group-visited:bg-white group-hover:bg-white"),children:(0,t.jsx)(c.nQ,{className:(0,o.cn)("pt-[1px]","text-black","group-hover:text-white","group-visited:text-black group-hover:group-visited:text-black")})}),children:null==l?void 0:l.newCustomerFormInstagramButtonText}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.II,{id:"email",type:"email",name:"email",placeholder:null==l?void 0:l.newCustomerFormEmailInputPlaceholder,required:!0,fullWidth:!0,label:"2. ".concat(null==l?void 0:l.newCustomerFormEmailInputLabel),classNames:{wrapper:"mt-4",label:"text-sm font-bold mb-2",input:(0,o.cn)("h-10 w-full border-grey-150 px-4 py-0 text-base placeholder:text-sm",null==r?void 0:r.emailInput)}}),f&amp;&amp;(0,t.jsx)(a.Ph,{name:"countryCode",placeholder:null==l?void 0:l.newCustomerFormCountrySelectPlaceholder,options:y,required:!0,labelIcon:j,optionIcon:j,preSelectedOption:I,classNames:{wrapper:null==r?void 0:r.selectWrapper,option:null==r?void 0:r.selectOption,button:b?"border-grey-150":""}}),void 0!==F.error?(0,t.jsxs)("div",{className:"mt-4 text-sm text-error",children:[(0,t.jsx)("p",{className:"font-medium",children:null==l?void 0:l.newCustomerFormErrorHeading}),(0,t.jsx)("p",{children:F.error.message})]}):null,(0,t.jsx)(d.zx,{type:"submit",fullWidth:!0,className:(0,o.cn)("btn-primary",null==r?void 0:r.submitButton),isLoading:C,loadingClassName:"text-inherit",children:null==l?void 0:l.formSendButtonTextNewCustomer})]})]})]})}function F(e){var r;let{form:l}=e,n=(0,h.Xk)(null==l?void 0:null===(r=l.dictionaryCollection)||void 0===r?void 0:r.items);return(0,t.jsx)("div",{className:"mx-auto max-w-screen-md bg-black px-6 py-8 text-white md:px-8 md:py-10",children:(0,t.jsx)(N,{dictionary:n,classNames:{instagramButton:"border-white group hover:bg-white hover:border-white hover:text-black text-white",submitButton:"btn-inverted hover:bg-black hover:text-white hover:border-white",emailInput:"placeholder:text-white",selectWrapper:"bg-black text-white border",selectOption:"ui-active:bg-gray-100/10"}})})}},34996:function(e,r,l){l.r(r),l.d(r,{default:function(){return s}});var t=l(52336),n=l(93695),a=l(87294),o=l(45774),i=l(12411);function s(e){let{dictionary:r,reference:l}=e,[s,d]=(0,a.cI)(l||""),[c,m]=(0,i.useState)(()=&gt;[new Date().getTime()]),u=(0,i.useMemo)(()=&gt;[{id:1,value:null==r?void 0:r.returnFormValueExpectation,label:null==r?void 0:r.returnFormLabelExpectation},{id:2,value:null==r?void 0:r.returnFormValueNotSuitable,label:null==r?void 0:r.returnFormLabelNotSuitable},{id:3,value:null==r?void 0:r.returnFormValueMultiple,label:null==r?void 0:r.returnFormLabelMultiple},{id:4,value:null==r?void 0:r.returnFormValueOther,label:null==r?void 0:r.returnFormLabelOther}],[r]);if(s.succeeded)return(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-bold",children:null==r?void 0:r.formSuccessHeading}),(0,t.jsx)("p",{className:"mt-4 text-sm",children:null==r?void 0:r.formSuccessText})]});let x=e=&gt;null==s?void 0:s.errors.some(r=&gt;r.field===e);return(0,t.jsxs)("form",{className:"not-prose mt-4 max-w-4xl text-sm md:mt-6",onSubmit:d,children:[(0,t.jsxs)("fieldset",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{type:"email",label:null==r?void 0:r.formEmailLabel,required:!0,id:"email",name:"email",fullWidth:!0,"data-1p-ignore":!0,classNames:{input:x("email")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"email",errors:s.errors})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{type:"number",label:null==r?void 0:r.formOrderNumberLabel,required:!0,id:"OrderNo",name:"OrderNo",fullWidth:!0,hint:null==r?void 0:r.formOrderNumberHint,inputMode:"numeric","data-1p-ignore":!0,classNames:{input:x("OrderNo")?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"OrderNo",errors:s.errors})]})]}),(0,t.jsx)("p",{className:"mt-6 text-lg font-bold",children:null==r?void 0:r.returnFormInfoText}),(0,t.jsx)("div",{className:"mt-6",children:c.map((e,l)=&gt;(0,t.jsxs)("fieldset",{className:" border-t border-grey-150 bg-grey-100 p-3 pb-6 first:border-t-0",children:[(0,t.jsxs)("div",{className:"flex w-full items-center justify-between text-xs uppercase",children:[(0,t.jsx)("span",{children:"".concat(null==r?void 0:r.product," #").concat(l+1)}),l&gt;0?(0,t.jsx)("button",{type:"button",className:"uppercase tracking-tighter text-grey-300 underline",onClick:()=&gt;m(r=&gt;r.filter(r=&gt;r!==e)),children:null==r?void 0:r.remove}):null]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-3 md:grid-cols-2",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.Ph,{name:"Reason-".concat(l+1),placeholder:null==r?void 0:r.returnFormReasonForReturnPlaceholder,options:u,children:(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"Reason-".concat(l+1),errors:s.errors})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.II,{type:"number",label:null==r?void 0:r.returnFormArticleNumberInputLabel,required:!0,id:"ItemNo-".concat(l+1),name:"ItemNo-".concat(l+1),fullWidth:!0,hint:null==r?void 0:r.returnFormArticleNumberInputHint,inputMode:"numeric","data-1p-ignore":!0,classNames:{input:x("ItemNo-".concat(l+1))?"border-error":""}}),(0,t.jsx)(a.p8,{className:"mt-2 text-sm",field:"ItemNo-".concat(l+1),errors:s.errors})]})]})]},e))}),(0,t.jsxs)("fieldset",{className:"mt-3 space-y-6",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)("button",{type:"button",className:"inline-block text-sm font-bold underline",onClick:()=&gt;m(e=&gt;[...e,new Date().getTime()]),children:null==r?void 0:r.returnFormAddItemButtonText})}),(0,t.jsx)(o.XZ,{classNames:{label:"text-sm"},name:"confirmation",required:!0,children:null==r?void 0:r.returnFormConfirmationCheckboxText}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:(0,t.jsx)(o.zx,{type:"submit",fullWidth:!0,isLoading:s.submitting,className:"btn-primary",children:null==r?void 0:r.returnFormCreateReturnButtonText})})]})]})}}}]);
//# sourceMappingURL=7279-b15cf3b8a828ff7f.js.map</pre></body></html>