1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5504,5511],{43188:function(e,t,a){a.d(t,{Z:function(){return z}});var n=a(85893),r=a(71955),s=a(67294),o=a(57747),i=a(22757),l=a(93717),c=a(55281),m=a(73804),u=a(71293),d=a(14225),p=a(11163),x=a(81136),h=a(50259),f=a(33302),y=a(69828),g=a(28696),b=a(57290),I=a(86171),C=a(81279),w=a(43128),N=a(33299),v=a(83846),j=a(57198),k=a(10199),D=a(26627),R=a(42669),S=a(97173),F=a(47788),E=a(42618),P=a(6676),T=a(92037),V=a(78741),$=a(67331),L=a(36948),q=a(55346),Z=a(12515),_=a(20104),O=({newOffer:e,LoginOrRegisterSuccess:t,from:a,hideOrShowContinue:s})=>{let{t:c}=(0,r.$)(),m=(0,p.useRouter)();return(0,n.jsxs)(o.xu,{display:"flex",flexDirection:"column",alignItems:"center",mb:{base:"15px",md:"20px"},children:[(0,n.jsx)(o.xu,{w:"60px",h:"60px",bg:"var(--chakra-colors-primary-300)",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",children:(0,n.jsx)(Z._rq,{fontSize:28,color:"var(--chakra-colors-primary-100)"})}),(0,n.jsx)(i.X,{as:"h2",size:"xl",color:"black",fontWeight:"bold",letterSpacing:"tight",m:"15px 0 10px 0",children:c("myaccount:RegistrationSuccessMsg")}),(0,n.jsxs)(o.xu,{display:"flex",flexDirection:"column",alignItems:"center",bg:"var(--chakra-colors-secondary-400)",p:"20px 20px 35px 20px",borderRadius:"15px",children:[(0,n.jsxs)(o.xu,{display:"flex",mt:"10px",gap:2,children:[(0,n.jsx)(L.J,{as:q.RPl,color:"var(--chakra-colors-primary-100)",mt:{base:"5px",md:"3px"}}),(0,n.jsx)(i.X,{as:"h2",size:"md",color:"var(--chakra-colors-primary-100)",fontWeight:"medium",children:c("common:ExclusiveDiscountCode")})]}),(0,n.jsxs)(o.xu,{border:"1px solid #f5ddafff",p:"20px 20px 0 20px",borderRadius:"10px",bg:"#fcf8f1ff",children:[(0,n.jsxs)(l.k,{flex:"1",gap:3,width:"100%",children:[(0,n.jsx)(_.G5O,{}),(0,n.jsxs)(u.x,{color:"black",fontWeight:{base:"700",md:"600"},children:[c("common:DiscountCode"),":"," ",(0,n.jsx)(u.x,{as:"span",children:e?.code})]})]}),(0,n.jsx)(u.x,{pt:"6px",color:"black",mb:"0",fontSize:"medium",dangerouslySetInnerHTML:{__html:e?.detailsSplit1}}),(0,n.jsx)(u.x,{fontSize:"medium",dangerouslySetInnerHTML:{__html:e?.detailsSplit2}})]})]}),!s&&(0,n.jsx)(f.a7,{mt:"20px",onClick:()=>{"checkout"==a?(t(!0),m.push(k.H)):m.push("/")},children:c("common:Continue")})]})},z=function({from:e,setIsLogin:t,LoginOrRegisterSuccess:a,webSettings:L,setIsReferAFriend:q,setOfferPanel:Z}){let[_,z]=(0,s.useState)("1"),[H,K]=(0,s.useState)(!1),[A,U]=(0,s.useState)(!1),{logEvent:B,setUser:M}=(0,P.z)(),[W,G]=(0,s.useState)(null),[X,J]=(0,s.useState)({firstName:"",lastName:"",email:"",password:"",conPassword:"",cifnif:"",company:"",vatNumber:"",taxId:"",sdiNumber:"",eInvoiceCompanyIdentifier:"",wantNewsletter:!1}),[Q,Y]=(0,s.useState)({companyIndustry:"",companyEmployees:""}),{t:ee,i18n:et}=(0,r.$)(),{data:ea}=(0,N.useSession)(),en=(0,p.useRouter)(),er=(0,s.useContext)(w.I),[es,eo]=(0,s.useState)(!1),[ei,el]=(0,s.useState)(""),{executeRecaptcha:ec}=(0,h.xX)(),em=en?.asPath?.split("/"),eu=em?.filter(e=>""!==e),ed=eu[eu?.length-1],[ep,ex]=(0,s.useState)({firstName:"",lastName:"",email:"",password:"",conPassword:"",cifnif:"",company:"",vatNumber:"",taxId:"",sdiNumber:"",eInvoiceCompanyIdentifier:""}),[eh,ef]=(0,s.useState)({code:"",details:"",summary:"",detailsSplit1:"",detailsSplit2:""}),[ey,eg]=(0,s.useState)(),eb=L?.["customer-taxdetails-required"]?.settingsValue=="1",eI=L?.["einvoice-company-identifier-enabled"]?.settingsValue=="1",eC=e=>{J({...X,[e.target.name]:e.target.value}),ex(t=>({...t,[e.target.name]:""}))},ew=e=>{let{name:t,value:a}=e.target;Y(e=>({...e,[t]:a}))},eN={firstName:(0,s.useRef)(null),lastName:(0,s.useRef)(null),email:(0,s.useRef)(null),password:(0,s.useRef)(null),conPassword:(0,s.useRef)(null),cifnif:(0,s.useRef)(null),vatNumber:(0,s.useRef)(null),taxId:(0,s.useRef)(null),sdiNumber:(0,s.useRef)(null),company:(0,s.useRef)(null),eInvoiceCompanyIdentifier:(0,s.useRef)(null)},ev=e=>{ex(t=>({...t,[e]:""}))},ej=e=>{let t=X[e],a="";return"1"!==_||"wantNewsletter"===e||"cifnif"===e||"vatNumber"===e||"taxId"===e||"sdiNumber"===e||"eInvoiceCompanyIdentifier"===e||t?.trim()?"firstName"!==e||j.yJ.test(X.firstName)?"lastName"!==e||j.yJ.test(X.lastName)?"email"!==e||j.B9.test(X.email)?"password"!==e||j.he.test(X.password)?"conPassword"===e&&X.password!==X.conPassword?a="common:Passworddonotmatch":"cifnif"===e&&!t?.trim()&&L&&L?.["cifnif-number-enabled"]?.settingsValue=="1"?a="common:FieldRequired":"vatNumber"===e&&eb&&"1"===_&&!t?.trim()?a="common:FieldRequired":"taxI
1d"===e&&eb?("1"===_||"2"===_&&A)&&!t?.trim()&&(a="common:FieldRequired"):"sdiNumber"===e&&eb&&"1"===_?t?.trim()?7!==t.trim().length&&(a="common:SDINumberErrorMsg"):a="common:FieldRequired":"eInvoiceCompanyIdentifier"===e&&eI&&"1"===_&&et.exists("pdf:EInvoiceCompanyIdentifierLabel")&&ee("pdf:EInvoiceCompanyIdentifierLabel")&&!t?.trim()&&(a="common:FieldRequired"):a="common:PasswordMinimumCharacters":a="common:EnterValidEmailAddress":a="common:EnterValidLastName":a="common:EnterValidFirstName":a="common:FieldRequired",ex(t=>({...t,[e]:a})),!a};(0,s.useEffect)(()=>{["1","2"].includes(L?.["website-customer-type"]?.settingsValue)&&L?.["website-customer-type"]?.settingsValue!=_&&z(L?.["website-customer-type"]?.settingsValue)},[L?.["website-customer-type"]?.settingsValue]),(0,s.useEffect)(()=>((0,g.Z)(I.OC,"GET").then(({isSuccess:e,response:t})=>{e&&eg(t)}).catch(e=>{(0,D.H)(`EditProfileData API error From Register Component ${e}`)}),()=>{let e=document.getElementById("registerScript");e&&e.remove()}),[]);let ek=async(e,t)=>{if("Tab"===e.key){let a=Object.keys(X),n=a.indexOf(t),r=a[n+1];if(r&&await ej(t)){e.preventDefault();let t=eN[r]?.current;t?.focus()}}else if("Enter"===e.key&&await ej(t)){let a=Object.keys(X),n=a.indexOf(t),r=a[n+1];if(r){let e=eN[r]?.current;e?.focus()}else eT(e)}},eD=e=>{z(e),J(e=>({...e,vatNumber:"",taxId:"",sdiNumber:""})),ex(e=>({...e,vatNumber:"",taxId:"",sdiNumber:""}))},eR=async e=>{let t;try{if(t=await (0,g.Z)(I.Im,"POST","",e),t?.isSuccess&&null!==t.response){let{stockBasketItems:e,printBasketItems:a}=t?.response;er.setData(t=>({...t,count:parseInt((e?.length??0)+(a?.length??0))}))}else er.setData(e=>({...e,count:0}))}catch(e){(0,D.H)(`GetBasketDetails API error From Register Component ${e}`)}return t},eS=(0,s.useCallback)(e=>{if(e.preventDefault(),!ec){(0,D.KE)("executeRecaptcha is undefined From Register Component");return}ec("enquiryFormSubmit").then(e=>{eF(e)}).catch(e=>{(0,D.H)(`GoogleRecaptcha API error From Register Component ${e}`)})},[ec,X,_,Q,A]),eF=e=>{fetch("/api/enquiry",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({gRecaptchaToken:e,GoogleRecaptchaServerkey:L?.google_recaptcha_serverkey?.settingsValue})}).then(e=>e.json()).then(e=>{if(e?.status!=="success")return K(!1),(0,D.KE)(`Recaptcha Failure - ${e?.message} From Register Component`),e?.message;eP()}).catch(e=>{(0,D.H)(`api/enquiry internal API error From Register Component ${e}`)})};(0,s.useEffect)(()=>{ea?.user?.userID&&!eh.code&&en.push("/")},[ea]);let eE=e=>{let t=document.getElementById("registerScript");t&&t.remove();let a=document.createElement("script");a.id="registerScript",a.innerHTML=` 2 if (typeof gtag === 'function') { 3 gtag('event', 'sign_up', { 4 'email' : '${e?.email}', 5 'customerName' : '${e?.customerName}' 6 }); 7 } 8 `,document.body.appendChild(a)},eP=async()=>{(0,g.Z)(I.a4,"POST","",{firstName:X.firstName,lastName:X.lastName,email:X.email,password:X.password,conPassword:X.conPassword,wantNewsletter:X.wantNewsletter,userName:"",IsFromDiscountMode:en?.query?.mode=="discount",basketUserID:ea?.basketData?.userID,UserFavoritesUserID:ea?.basketData?.favouriteFlag?ea?.basketData?.favouriteUserId:ea?.basketData?.userID,isFromReferAFriend:"refer"===e,ReferrerUserID:"refer"===e?ed:null,company:{companyName:X.company,companyType:_,companyIndustry:Q?.companyIndustry,companyEmployees:Q?.companyEmployees,cifnifNumber:X.cifnif,...eb&&{companyVATNumber:X.vatNumber,taxID:X.taxId,sdiNumber:"1"===_?X.sdiNumber:"0000000",taxInvoiceOptedIn:"1"===_||A},...eI&&{eInvoiceCompanyIdentifier:X.eInvoiceCompanyIdentifier}}}).then(async({isSuccess:t,message:n,response:r})=>{if(el(n),t){eo(!0);let t={...ea?.user,basketData:{...ea?.basketData}};Object.prototype.hasOwnProperty.call(t,"basketData")||(t.basketData={}),t.email=r?.email,t.firstName=r?.firstName,t.lastName=r?.lastName,t.userID=r?.userID,t.customerName=r?.customerName,t.companyName=r?.companyName,t.newRegistration=r?.lblCode,t.accessToken=r?.token,t.newUser=!0,t.basketData.userID=r?.userID,t.basketData.discountCode=r?.lblCode,t.basketData.guestCheckout=!1,t.basketData.favouriteUserId=r?.userID,M(r?.userIdentifierWithPrefix),eE({email:r?.email,customerName:r?.customerName}),(0,N.signIn)("credentials",{...(0,v.fy)(t),redirect:!1}),(0,v.xb)(r)||ef({code:r?.lblCode,details:r?.lblCodeDetails,summary:r?.lblCodeSummary,detailsSplit1:r?.lblCodeDetailsSplit1,detailsSplit2:r?.lblCodeDetailsSplit2}),(0,v.xb)(r?.companyName)||"1"!==_||G(r?.companyName),!r?.lblCode&&r?.companyName&&L&&L?.["epr-enabled"]?.settingsValue==="1"&&en.push(k.R9),"refer"===e&&q(r?.isFromReferAFriend),"User already exists!"===n&&(X.password="",X.conPassword=""),K(!1),"checkout"===e?a(!0):Z&&Z(r?.lblCode),await eR({...ea?.basketData,userID:r?.userID}),B("account created",{account_type:"Credentials",emailId:r?.email});let s=`Register Success => useremail : ${r?.email}`;(0,D.w6)(s)}else if("EmailAlreadyRegistered"==n){K(!1);let e=`User Already Register => useremail : ${X?.email}`;(0,D.KE)(e),el(`${ee("checkout:EmailAlreadyRegistered")} 9 <a href="/ForgotPassword">${ee("checkout:ClickHere")}</a> 10 `)}}).catch(e=>{K(!1),(0,D.H)(`UserRegistration API error From Register Component ${e}`)})},eT=async e=>{e.preventDefault();let t={},a=null;for(let e in X)ej(e)||(eN[e]?.current?.focus(),t[e]=ep[e],null!==a||(a=e));0===Object.keys(t).length?(K(!0),0===parseInt(L["registration-onsite-disabled"]?.settingsValue)&&1===parseInt(L["google-recaptcha-enabled-onregister"]?.settingsValue)?eS(e):eP()):null!==a&&eN[a]?.current?.focus()};return(0,n.jsx)(n.Fragment,{children:es?eh.code?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(O,{newOffer:eh,LoginOrRegisterSuccess:a,from:e,hideOrShowContinue:L&&L?.["epr-enabled"]?.settingsValue==="1"&&W}),L&&L?.["epr-enabled"]?.settingsValue==="1"&&W&&(0,n.jsx)($.default,{from:"register"})]}):(0,n.jsx)(x.$,{thickness:"4px",speed:"0.8s",emptyColor:"primary.300",color:"primary.100",size:"xl",position:"absolute",transform:"translate(-50%, -50%)",width:"40px",height:"40px"}):(0,n.jsxs)(o.xu,{border:"1px solid var(--chakra-colors-border)",children:["checkout"!==e&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.X,{as:"h1",fontSize:"sub_heading",fontWeight:"500",mb:"11px",children:ee("myaccount:CreateAccount")}
10)}),!en?.pathname?.includes("/checkout/login")&&(0,n.jsxs)(l.k,{fontSize:"13.5px",mb:"45px",mt:{base:en.pathname.includes("/checkout/CheckoutUser")?"6px":" "},children:[ee("common:AlreadyRegistered"),"checkout"==e?(0,n.jsx)(d.z,{color:"primary.100",textDecoration:"underline",fontSize:"13.5px",_hover:{color:"body"},fontWeight:"500",h:"auto",p:"0",lineHeight:"1",ml:"5px",onClick:()=>t&&t(!0),children:ee("myaccount:SignIn")}):(0,n.jsx)(b.default,{href:`${en.pathname.includes("/checkout")?k.H:k.Nk}`,textDecoration:"underline",color:{base:en.pathname.includes("/checkout/CheckoutUser")?"var(--chakra-colors-black)":" "},fontWeight:{base:en.pathname.includes("/checkout/CheckoutUser")?"600":" "},ml:"5px",children:ee("myaccount:SignIn")})]}),(0,n.jsxs)("form",{children:[(0,n.jsx)(f.NI,{children:(0,n.jsx)(R.E,{value:_,onChange:e=>{eD(e)},children:(0,n.jsxs)(c.K,{spacing:5,direction:"column",className:"customradiobutton",children:[(0,n.jsx)(f.lX,{children:ee("common:CustomerType")}),(0,n.jsxs)(F.BQ,{children:[(L&&L["website-customer-type"]?.settingsValue=="0"||L&&L["website-customer-type"]?.settingsValue=="1")&&(0,n.jsx)(m.HC,{children:(0,n.jsx)(S.Y,{bg:"white.100",_checked:{bg:"white.100"},display:{base:"flex",md:"inline-flex"},justifyContent:{base:"space-between",md:"flex-start"},flexDirection:{base:"row-reverse",md:"row"},pr:{base:"1px",md:"0"},value:"1",children:ee("common:Business")})}),(L&&L["website-customer-type"]?.settingsValue=="0"||L&&L["website-customer-type"]?.settingsValue=="2")&&(0,n.jsx)(m.HC,{children:(0,n.jsx)(S.Y,{bg:"white.100",_checked:{bg:"white.100"},display:{base:"flex",md:"inline-flex"},justifyContent:{base:"space-between",md:"flex-start"},flexDirection:{base:"row-reverse",md:"row"},pr:{base:"1px",md:"0"},value:"2",children:ee("common:Personal")})})]})]})})}),(0,n.jsxs)(l.k,{m:"0 -15px",flexDirection:{base:"column",md:"row"},children:[(0,n.jsx)(o.xu,{p:"0 15px",flex:1,children:(0,n.jsx)(y.Z,{title:ee("common:FirstName"),name:"firstName",type:"text",className:"amp-unmask",value:X?.firstName,maxLength:35,handleChange:eC,errorText:ep.firstName,placeholder:`${ee("common:FirstName")}*`,onFocus:ev,onKeyDown:e=>ek(e,"firstName"),reference:eN.firstName,autoComplete:"given-name",isRequired:!0})}),(0,n.jsx)(o.xu,{p:"0 15px",flex:1,children:(0,n.jsx)(y.Z,{title:ee("common:LastName"),name:"lastName",type:"text",className:"amp-unmask",value:X?.lastName,handleChange:eC,maxLength:35,errorText:ep.lastName,placeholder:`${ee("common:LastName")}*`,onFocus:ev,reference:eN.lastName,autoComplete:"family-name",onKeyDown:e=>ek(e,"lastName"),isRequired:!0})})]}),(0,n.jsx)(y.Z,{title:ee("common:Email"),name:"email",type:"email",className:"amp-unmask",value:X?.email,handleChange:eC,placeholder:`${ee("common:Email")}*`,errorText:ep.email,maxLength:150,onFocus:ev,onKeyDown:e=>ek(e,"email"),reference:eN.email,autoComplete:"email",isRequired:!0}),!en.pathname.includes("/checkout/CheckoutGuest")&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{title:ee("common:Password"),name:"password",type:"password",value:X?.password,maxLength:25,handleChange:eC,errorText:ep.password,placeholder:`${ee("common:Password")}*`,onFocus:ev,reference:eN.password,onKeyDown:e=>ek(e,"password"),autoComplete:"new-password",isRequired:!0}),(0,n.jsx)(y.Z,{title:ee("common:ConfirmPassword"),name:"conPassword",type:"password",value:X?.conPassword,handleChange:eC,maxLength:25,errorText:ep.conPassword,placeholder:`${ee("common:ConfirmPassword")}*`,onFocus:ev,reference:eN.conPassword,onKeyDown:e=>ek(e,"conPassword"),autoComplete:"new-password",isRequired:!0})]}),L&&L?.["cifnif-number-enabled"]?.settingsValue=="1"&&(0,n.jsx)(y.Z,{title:ee("pdf:CIFNIFLabel"),name:"cifnif",type:"text",value:X?.cifnif,maxLength:150,handleChange:eC,errorText:ep.cifnif,placeholder:`${ee("pdf:CIFNIFLabel")}*`,onFocus:ev,reference:eN.cifnif,autoComplete:"off",onKeyDown:e=>ek(e,"cifnif"),isRequired:!0}),eb&&"2"===_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{mb:{base:"16px",lg:"20px"},isChecked:A,onChange:e=>{let t=e.target.checked;U(t),t||(J(e=>({...e,vatNumber:"",taxId:""})),ex(e=>({...e,vatNumber:"",taxId:""})))},children:ee("common:RequestTaxInvoice")}),A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{title:ee("common:VatNumber"),name:"vatNumber",type:"text",value:X?.vatNumber,maxLength:50,handleChange:eC,errorText:ep.vatNumber,placeholder:ee("common:VatNumber"),onFocus:ev,reference:eN.vatNumber,autoComplete:"off",onKeyDown:e=>ek(e,"vatNumber")}),(0,n.jsx)(y.Z,{title:ee("common:TaxID"),name:"taxId",type:"text",value:X?.taxId,maxLength:16,handleChange:eC,errorText:ep.taxId,placeholder:`${ee("common:TaxID")}*`,onFocus:ev,reference:eN.taxId,autoComplete:"off",onKeyDown:e=>ek(e,"taxId"),isRequired:!0})]})]}),"1"===_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{title:ee("common:CompanyName"),name:"company",type:"text",value:X?.company,maxLength:150,handleChange:eC,errorText:ep.company,placeholder:`${ee("common:CompanyName")}*`,onFocus:ev,reference:eN.company,autoComplete:"organization",onKeyDown:e=>ek(e,"company"),isRequired:!0}),(0,n.jsxs)(f.NI,{children:[(0,n.jsx)(f.lX,{children:ee("myaccount:BusinessSector")}
10),(0,n.jsxs)(E.default,{onChange:ew,name:"companyIndustry",value:Q?.companyIndustry,backgroundColor:"white.100",children:[(0,n.jsx)("option",{value:"",children:ee("common:PleaseSelect")}),ey?.industry?.map((e,t)=>n.jsx("option",{value:e,children:e},t))]})]}),(0,n.jsxs)(f.NI,{children:[(0,n.jsx)(f.lX,{children:ee("myaccount:NoEmployees")}),(0,n.jsxs)(E.default,{onChange:ew,name:"companyEmployees",value:Q?.companyEmployees,backgroundColor:"white.100",children:[(0,n.jsx)("option",{value:"",children:ee("common:PleaseSelect")}),ey?.empCount?.map((e,t)=>n.jsx("option",{value:e,children:e},t))]})]})]}),eb&&"1"===_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{mb:{base:"16px",lg:"20px"},isChecked:!0,cursor:"default",children:ee("common:RequestTaxInvoice")}),(0,n.jsx)(y.Z,{title:ee("common:VatNumber"),name:"vatNumber",type:"text",value:X?.vatNumber,handleChange:eC,errorText:ep?.vatNumber,placeholder:`${ee("common:VatNumber")}*`,onFocus:ev,reference:eN.vatNumber,autoComplete:"off",onKeyDown:e=>ek(e,"vatNumber"),isRequired:!0}),(0,n.jsx)(y.Z,{title:ee("common:TaxID"),name:"taxId",type:"text",value:X?.taxId,maxLength:16,handleChange:eC,errorText:ep.taxId,placeholder:`${ee("common:TaxID")}*`,onFocus:ev,reference:eN.taxId,autoComplete:"off",onKeyDown:e=>ek(e,"taxId"),isRequired:!0}),(0,n.jsx)(y.Z,{title:ee("common:SDINumber"),name:"sdiNumber",type:"text",value:X?.sdiNumber,maxLength:7,handleChange:eC,errorText:ep.sdiNumber,placeholder:`${ee("common:SDINumber")}*`,onFocus:ev,reference:eN.sdiNumber,autoComplete:"off",onKeyDown:e=>ek(e,"sdiNumber"),isRequired:!0})]}),eI&&"1"===_&&et.exists("pdf:EInvoiceCompanyIdentifierLabel")&&ee("pdf:EInvoiceCompanyIdentifierLabel")&&(0,n.jsx)(y.Z,{title:ee("pdf:EInvoiceCompanyIdentifierLabel"),name:"eInvoiceCompanyIdentifier",type:"text",value:X?.eInvoiceCompanyIdentifier,maxLength:50,handleChange:eC,errorText:ep?.eInvoiceCompanyIdentifier,placeholder:`${ee("pdf:EInvoiceCompanyIdentifierLabel")}*`,onFocus:ev,reference:eN.eInvoiceCompanyIdentifier,autoComplete:"off",onKeyDown:e=>ek(e,"eInvoiceCompanyIdentifier"),isRequired:!0}),!en.pathname.includes("/checkout/CheckoutGuest")&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Z,{mb:{base:"32px",lg:"43px "},onChange:e=>{J({...X,wantNewsletter:e.target.checked})},children:L&&(L?.["discount-newregistration-onsubscribe"]?.settingsValue=="1"?L?.["discount-newregistration-valuetype"]?.settingsValue?.trim().toUpperCase()=="V"?(0,T.rZ)(ee,"myaccount:ReceiveOffersNewsletterDiscount",(0,V.m)(L?.["discount-newregistration-value"]?.settingsValue)):(0,T.rZ)(ee,"myaccount:ReceiveOffersNewsletterDiscount",`${L?.["discount-newregistration-value"]?.settingsValue}%`):ee("myaccount:RecieveOffersNewsletter"))}),(0,n.jsxs)(f.B7,{type:"submit",onClick:eT,w:"100%",variant:"/checkout/CheckoutUser"===en.pathname&&"checkoutButton",children:[ee("common:Register"),H&&(0,n.jsx)(x.$,{thickness:"4px",speed:"0.8s",emptyColor:"primary.300",color:"primary.100",size:"xl",position:"absolute",transform:"translate(-50%, -50%)",width:"40px",height:"40px"})]}),(0,n.jsx)(u.x,{color:"error",mt:{base:"32px",lg:"20px"},dangerouslySetInnerHTML:{__html:ei}}),(0,n.jsx)(u.x,{fontSize:"13.5px",mt:{base:"32px",lg:"44px"},lineHeight:"20px",dangerouslySetInnerHTML:{__html:ee("myaccount:RegisterTermsMessage")}}),(0,n.jsx)(u.x,{fontSize:"13.5px",lineHeight:"20px",children:ee("myaccount:SiteProtectedBy")})]})]})]})})}},81279:function(e,t,a){var n=a(85893),r=a(8445),s=a(93717),o=a(57747),i=a(71293),l=a(15344);a(67294);var c=a(20473);t.Z=({isLarge:e=!1,isError:t=!1,isSmall:a=!1,...m})=>{let{state:u,getCheckboxProps:d,getInputProps:p,getLabelProps:x,htmlProps:h}=(0,r.O)(m),f=e?"27px":a?"18px":"22px";return(0,n.jsxs)(l.m.label,{display:"flex",flexDirection:"row",alignItems:"center",cursor:"pointer",...h,children:[(0,n.jsx)("input",{...p(),hidden:!0}),(0,n.jsx)(s.k,{alignItems:"center",justifyContent:"center",w:f,h:f,minW:"22px",...d(),children:u.isChecked?(0,n.jsx)(s.k,{w:"100%",h:"100%",bg:"primary.100",alignItems:"center",justifyContent:"center",borderRadius:"5px",children:(0,n.jsx)(c.IQF,{color:"var(--chakra-colors-white-100)",fontSize:e?"19px":"14px"})}):(0,n.jsx)(o.xu,{border:"1px solid",borderColor:t?"red":"border.300",borderRadius:"5px",w:f,h:f})}),(0,n.jsx)(i.x,{fontSize:"font_16",pl:"14px",...x(),children:m.children})]})}},55511:function(e,t,a){a.r(t);var n=a(85893),r=a(25675),s=a.n(r);t.default=({alt:e,src:t,...a})=>(0,n.jsx)(s(),{src:t,alt:e,...a})},6676:function(e,t,a){a.d(t,{f:function(){return r},z:function(){return s}});var n=a(67294);let r=(0,n.createContext)(void 0),s=()=>{let e=(0,n.useContext)(r);if(!e)throw Error("AnalyticsContext is not provided");return e}},78741:function(e,t,a){a.d(t,{m:function(){return r}});var n=a(54403);let r=(e,t=n.F)=>new Intl.NumberFormat(n.eb,{currency:t,style:"currency",minimumFractionDigits:2,maximumFractionDigits:3}).format(e)}}]);
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.