1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5366],{45366:(e,l,s)=>{s.d(l,{default:()=>B});var a=s(95155),n=s(14085),t=s(12115),r=s(85060),i=s(69606),o=s(43415),d=s(56457),c=s(43670),u=s(36247),m=s(30814),p=s(34839),v=s(9955),g=s(67396),x=s(3327),h=s(9778),j=s(95852),f=s(76046),N=s(27402),b=s(7266),y=s(15785),C=s(10332),w=s(42574),A=s(19844),z=s(1046),S=s(4617),E=s.n(S),F=s(84993),_=s(6954),k=s(82651),I=s(52905);let R=new RegExp(/^[0-9]*$/),q=/^[0-9\uFF10-\uFF19-]*$/,T=new RegExp(/^[0-9\s]+$/),P=new RegExp(/^[a-zA-Z0-9!@#$%^&*(),.?":{}|<>\u00C0-\u00FF\u0152\u0153\u0178\u00DF\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFFEF\u4E00-\u9FFF\u3400-\u4DBF\u3100-\u312F\uF900-\uFAFF]+$/),M=/^[\u30A0-\u30FF\u3000\u0020]+$/,V=(e,l)=>o.z.object({title:o.z.string().optional(),firstNameKana:(null==l?void 0:l.regionCode)==="jp"?o.z.string().trim().min(1,{message:e("required.firstNameKana")}).regex(M,{message:"ã«ã¿ã«ãã§å
¥åãã¦ãã ãã"}):o.z.string().optional(),lastNameKana:(null==l?void 0:l.regionCode)==="jp"?o.z.string().trim().min(1,{message:e("required.lastNameKana")}).regex(M,{message:"ã«ã¿ã«ãã§å
¥åãã¦ãã ãã"}):o.z.string().optional(),firstName:o.z.string().max(50).min(1,{message:e("required.firstName")}),lastName:o.z.string().max(50).min(1,{message:e("required.lastName")}),emailAddress:o.z.string().min(1).email({message:"Please enter valid email"}),confirmEmailAddress:o.z.string().min(1).email({message:"Please enter valid email"}),phone:o.z.string().trim().min(1).max(30).regex((null==l?void 0:l.regionCode)==="jp"?q:R),mobile:o.z.string().optional(),state:["in","tw","cn","apac"].includes(null==l?void 0:l.regionCode)||(null==l?void 0:l.site)==="apem"&&((null==l?void 0:l.regionCode)==="en_us"||(null==l?void 0:l.regionCode)==="cn")?o.z.string().min(1,{message:e("required.state")}):o.z.string().optional(),country:(null==l?void 0:l.regionCode)!=="jp"?o.z.string().min(1,{message:"Country is required"}):o.z.string().optional(),city:["in","tw","cn","eu","apac"].includes(null==l?void 0:l.regionCode)||(null==l?void 0:l.site)==="apem"?o.z.string().min(1,{message:e("required.city")}):o.z.string().optional(),password:o.z.string().min(1,{message:"Password is required"}).refine(e=>{let l={length:e.length>=8,uppercase:/[A-Z]/.test(e),lowercase:/[a-z]/.test(e),number:/[0-9]/.test(e)};return l.length&&l.uppercase&&l.lowercase&&l.number},{message:"Password must be at least 8 characters long and include uppercase, lowercase, and a number."}),confirmPassword:o.z.string(),subscribe:o.z.boolean().default(!1),tc:o.z.boolean().default(!1),companyName:o.z.string().min(1,{message:e("required.company")}),address:["in","tw","cn","eu","apac"].includes(null==l?void 0:l.regionCode)||(null==l?void 0:l.site)==="apem"?o.z.string().min(1,{message:"Address is required"}):o.z.string().optional(),departmentName:o.z.string().optional(),faxNumber:o.z.string().optional(),postalCode:["in","tw","cn","eu","apac"].includes(null==l?void 0:l.regionCode)||(null==l?void 0:l.site)==="apem"?o.z.string().min(1,{message:e("required.postalCode")}).regex(P,e("invalidPostalCode")):o.z.string().optional(),customerType:(null==l?void 0:l.regionCode)==="cn"&&(null==l?void 0:l.site)==="idec"?o.z.string().min(1,{message:"Customer Type is required"}):o.z.string().optional(),industry:["jp","cn","tw"].includes(null==l?void 0:l.regionCode)||(null==l?void 0:l.site)==="apem"?o.z.string().min(1,{message:"Industry is required"}):o.z.string().optional(),jobType:(null==l?void 0:l.regionCode)==="jp"?o.z.string().min(1,{message:"JobType is required"}):o.z.string().optional()}).refine(e=>e.password===e.confirmPassword,{message:"Your passwords don't match",path:["confirmPassword"]}).refine(e=>e.emailAddress===e.confirmEmailAddress,{message:"Email must be same",path:["confirmEmailAddress"]}).refine(e=>!0===e.tc,{message:"You must accept the terms and conditions",path:["tc"]}).refine(e=>!e.faxNumber||T.test(e.faxNumber),{message:"Invalid Fax Number",path:["faxNumber"]}),J=(e,l)=>{let s=e.target;if("jp"===l)s.value=s.value.replace(/[^\uFF10-\uFF190-9-]/g,"");else{var a;s.value=null==s?void 0:null===(a=s.value)||void 0===a?void 0:a.replace(/[^0-9]/g,"")}};function B(e){var l;let{regionInfo:s,siteKey:o,clientIp:S}=e,R=(0,b.useTranslations)("serverError"),q=(0,b.useTranslations)("register"),T=(0,b.useTranslations)("formErrorMessages"),P=(0,b.useTranslations)("formErrorMessages"),[M,B]=(0,t.useState)(!1),[U,H]=(0,t.useState)(""),[L,K]=(0,t.useState)(!1),[D,G]=(0,t.useState)(""),$=(0,b.useTranslations)("googleRecapcha"),[X,O]=(0,t.useState)(!1),[Z,W]=(0,t.useState)([]),[Y,Q]=(0,t.useState)([]),[ee,el]=(0,t.useState)([]),[es,ea]=(0,t.useState)([]),[en,et]=(0,t.useState)([]),er=(0,h.j)(),[ei,eo]=(0,t.useState)({length:!1,up
1percase:!1,lowercase:!1,number:!1}),ed=e=>e.replace(/[ï¼-ï¼]/g,e=>String.fromCharCode(e.charCodeAt(0)-65296+48)),ec=e=>e.replace(/\uFF0D/g,"-"),eu=e=>ec(ed(e)),em=e=>{let l=e.target.value;eo({length:l.length>=8,uppercase:/[A-Z]/.test(l),lowercase:/[a-z]/.test(l),number:/[0-9]/.test(l)})},ep=["tw","eu"].includes(null==s?void 0:s.regionCode)&&(null==s?void 0:s.site.trim())==="idec",ev=["fr","de","en"].includes(null==s?void 0:s.regionCode)&&(null==s?void 0:null===(l=s.site)||void 0===l?void 0:l.trim())==="apem",[eg,ex]=(0,t.useState)(""),[eh,ej]=(0,t.useState)(null),[ef,eN]=(0,t.useState)(null),eb=()=>{if("undefined"==typeof document)return null;let e=document.cookie.match(/hubspotutk=([^;]+)/);return e?e[1]:null},ey=async e=>{var l,a;let n="48295955",t=(null==s?void 0:s.site)==="idec"?"91f449a5-fa0c-44c3-b062-c3df6d0e156e":"65d504d2-d16d-45bf-bb8e-30e1919ce256",r=(null==s?void 0:s.regionCode)==="jp"?eu(null!==(l=null==e?void 0:e.phoneNumber)&&void 0!==l?l:""):null!==(a=null==e?void 0:e.phoneNumber)&&void 0!==a?a:"",i=eb(),o=window.location.href,d=es.find(l=>l.isocode===e.country);try{let l=await k.A.post("https://api.hsforms.com/submissions/v3/integration/submit/".concat(n,"/").concat(t),{portalId:n,formGuid:t,fields:(null==s?void 0:s.site)==="idec"?[{name:"firstname",value:null==e?void 0:e.firstName},{name:"lastname",value:null==e?void 0:e.lastName},{name:"firstname_kana_mei",value:null==e?void 0:e.firstNameKana},{name:"lastname_kana_sei",value:null==e?void 0:e.lastNameKana},{name:"email",value:null==e?void 0:e.email},{name:"phone",value:r},{name:"mobilephone",value:null==e?void 0:e.mobileNumber},{name:"company",value:null==e?void 0:e.companyName},{name:"department",value:null==e?void 0:e.departmentName},{name:"address",value:null==e?void 0:e.address},{name:"city",value:null==e?void 0:e.city},{name:"state",value:null==e?void 0:e.state},{name:"zip",value:null==e?void 0:e.postalCode},{name:"country",value:(null==e?void 0:e.country)==="JP"?"Japan":(null==e?void 0:e.country)==="TW"?"Taiwan":(null==e?void 0:e.country)==="in"?"India":(null==s?void 0:s.regionCode)==="cn"?"China":null==d?void 0:d.name},{name:"industry",value:null==e?void 0:e.industry},{name:"job_title_list",value:null==e?void 0:e.jobCategory},{name:"job_type",value:null==e?void 0:e.jobCategory},{name:"email_address",value:null==e?void 0:e.email},{name:"jobtitle",value:null==e?void 0:e.jobCategory},{name:"subscribe_me_to_idec_newsletter",value:null==e?void 0:e.nwlSubscribe},{name:"hs_all_assigned_business_unit_ids",value:"idec.com"}]:[{name:"firstname",value:null==e?void 0:e.firstName},{name:"lastname",value:null==e?void 0:e.lastName},{name:"email",value:null==e?void 0:e.email},{name:"phone",value:r},{name:"mobilephone",value:null==e?void 0:e.mobileNumber},{name:"company",value:null==e?void 0:e.companyName},{name:"department",value:null==e?void 0:e.departmentName},{name:"address",value:null==e?void 0:e.address},{name:"city",value:null==e?void 0:e.city},{name:"state",value:null==e?void 0:e.state},{name:"zip",value:null==e?void 0:e.postalCode},{name:"country",value:(null==e?void 0:e.country)==="JP"?"Japan":null==d?void 0:d.name},{name:"industry",value:null==e?void 0:e.industry},{name:"job_title_list",value:null==e?void 0:e.jobCategory},{name:"job_type",value:null==e?void 0:e.jobCategory},{name:"email_address",value:null==e?void 0:e.email},{name:"jobtitle",value:null==e?void 0:e.jobCategory},{name:"subscribe_me_to_apem_newsletter",value:null==e?void 0:e.nwlSubscribe},{name:"hs_all_assigned_business_unit_ids",value:"APEM"}],context:{ipAddress:S,hutk:i,pageUri:o}},{headers:{"Content-Type":"application/json"}});return ex(l.data.inlineMessage),l}catch(e){return ew("Something went wrong in Hubspot Register. Please try again."),null}};(0,t.useEffect)(()=>{{let e=localStorage.getItem("formId"),l=localStorage.getItem("hubspotId");ej(e),eN(l)}},[]);let[eC,ew]=(0,t.useState)(null),eA=(0,t.useRef)(null);(0,t.useEffect)(()=>{B(!1),(async()=>{try{let e=await (0,x.Oq)(null==s?void 0:s.siteId,null==s?void 0:s.sLang),l=null==e?void 0:e.data;ea((null==s?void 0:s.regionCode)==="apac"?l.countryList:l.countries),(null==s?void 0:s.regionCode)==="cn"?Q(l.jobs):el(l.jobs),["in","tw","cn"].includes(null==s?void 0:s.regionCode)&&W(l.regions),(null==s?void 0:s.site)==="apem"?et(l.markets):et(l.industries)}catch(e){console.error(e),ew("failed to get data"),m.oR.error(()=>(0,a.jsx)("div",{style:{color:"black"},children:R("errMsg")}),{action:{label:(0,a.jsx)("span",{className:"icon-close text-18"}),onClick:()=>m.oR.dismiss()}})}})()},[]);let ez=V(P,s),eS=(0,i.mN)({resolver:(0,r.u)(ez),mode:"onBlur",defaultValues:{title:"",firstName:"",lastName:"",firstNameKana:"",lastNameKana:"",emailAddress:"",confirmEmailAddress:"",phone:"",mobile:"",country:(null==s?void 0:s.site)==="idec"&&["cn","ca","us","in","tw","jp"].includes(null==s?void 0:s.regionCode)?"".concat(null==s?void 0:s.regionCode.toUpperCase()):(null==s?void 0:s.site)!=="apem"?"":(null==s?void 0:s.site)==="apem"&&["fr","cn"].includes(null==s?void 0:s.regionCode)?"".concat(null==s?void 0:s.regionCode.toUpperCase()):(null==s?void 0:s.regionCode)==="en_us"||(null==s?void 0:s.regionCode)==="en"?"US":"",city:"",state:"",password:"",confirmPassword:"",subscribe:!1,tc:!1,companyName:"",departmentName:"",address:"",postalCode:"",customerType:""}});(0,t.useEffect)(()=>{let e=eS.watch(e=>{K(ez.safeParse(e).success)});return()=>e.unsubscribe()},[eS]);let eE=()=>"".concat(window.location.protocol,"//").concat(window.location.host,"/");async function eF(e){if(O(!0),e&&Object.keys(e).length){var l,n,t,r,i,c,u,p,v,g,h,b,y,C,w,S,E,F,_,k,q,T,P,M;B(!0);let V={title:d.A.sanitize(null!==(l=e.title)&&void 0!==l?l:""),firstName:d.A.sanitize(null!==(n=e.firstName)&&void 0!==n?n:""),lastName:d.A.sanitize(null!==(t=e.lastName)&&void 0!==t?t:""),phoneNumber:d.A.sanitize((null==s?void 0:s.regionCode)==="jp"?eu(null!==(r=e.phone)&&void 0!==r?r:""):null!==(i=e.phone)&&void 0!==i?i:""),mobileNumber:d.A.sanitize(null!==(c=e.mobile)&&void 0!==c?c:""),companyName:d.A.sanitize(null!==(u=e.companyName)&&void 0!==u?u:""),departmentName:d.A.sanitize(null!==(p=e.departmentName)&&void 0!==p?p:""),email:d.A.sanitize(null!==(v=e.emailAddress)&&void 0!==v?v:""),checkEmail:d.A.sanitize(null!==(g=e.confirmEmailAddress)&&void 0!==g?g:""),pwd:d.A.sanitize(null!==(h=e.password)&&void 0!==h?h:""),checkPwd:d.A.sanitize(null!==(b=e.confirmPassword)&&void 0!==b?b:""),address:d.A.sanitize(null!==(y=e.address)&&void 0!==y?y:""),termsCheck:d.A.sanitize(String(e.tc)),nwlSubscribe:e.subscribe,jobCategory:d.A.sanitize(e.jobType||"job"),industry:d.A.sanitize(null!==(C=e.industry)&&void 0!==C?C:""),postalCode:d.A.sanitize(null!==(w=e.postalCode)&&void 0!==w?w:""),city:d.A.sanitize(null!==(S=e.city)&&void 0!==S?S:""),country:d.A.sanitize(null!==(E=e.country)&&void 0!==E?E:""),state:d.A.sanitize(null!==(F=e.state)&&void 0!==F?F:""),firstNameKana:d.A.sanitize(null!==(_=e.firstNameKana)&&void 0!==_?_:""),lastNameKana:d.A.sanitize(null!==(k=e.lastNameKana)&&void 0!==k?k:"")};if((null==s?void 0:s.regionCode)!=="cn"){let e=await (0,N.h)(o);if(e){if(await (0,x.Wj)(e)){let e=await (0,x.FS)();e&&(null==e?void 0:e.access_token)?(localStorage.setItem("client_token",JSON.stringify(e)),er((0,j.xD)(e))):(O(!1),m.oR.error(()=>(0,a.jsx)("div",{style:{color:"black"},children:R("errMsg")}),{action:{label:(0,a.jsx)("span",{className:"icon-close text-18"}),onClick:()=>m.oR.dismiss()}}));let l=await (0,x.kz)(e.access_token,V,s);l&&(null==l?void 0:l.status)&&(null==l?void 0:l.status.toLowerCase())==="success"?(O(!1),B(!1),eS.reset(),H(""),eo({length:!1,up
1percase:!1,lowercase:!1,number:!1}),(0,z.sendGTMEvent)({event:"registerSuccess",nextURL:eE()+((null==s?void 0:s.slugUrl)?"".concat(null==s?void 0:s.slugUrl,"/thankyou-register-success"):"/thankyou-register-success")}),ey(V),(0,f.redirect)("".concat(s.slugUrl?"/".concat(s.slugUrl,"/thankyou-register-success"):"/thankyou-register-success"))):(null==l?void 0:null===(q=l.status)||void 0===q?void 0:q.toLowerCase())==="error"&&(null==l?void 0:l.statusCode)===404?((0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:l,region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),O(!1),B(!1),G(null==l?void 0:l.message),eS.setValue("confirmEmailAddress",""),(0,A.e)(),H(""),null===(T=eA.current)||void 0===T||T.focus()):"error"===l.status.toLowerCase()?((0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:l,region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),O(!1),H(l.message),B(!1)):((0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:l,region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),O(!1),B(!1),m.oR.error(()=>(0,a.jsx)("div",{style:{color:"black"},children:R("errMsg")}),{action:{label:(0,a.jsx)("span",{className:"icon-close text-18"}),onClick:()=>m.oR.dismiss()}})),setTimeout(()=>{H("")},3e3)}else(0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:"Captcha verification failed",region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),H($("googleRecapcha.errorMessage"))}else(0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:"Captcha token not generated",region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),H($("googleRecapcha.errorMessage"))}else{let e=await (0,x.FS)();e&&(null==e?void 0:e.access_token)&&(localStorage.setItem("client_token",JSON.stringify(e)),er((0,j.xD)(e)));let l=await (0,x.kz)(e.access_token,V,s);l&&(null==l?void 0:l.status)&&"success"===l.status.toLowerCase()?(O(!1),B(!1),eS.reset(),H(""),eo({length:!1,uppercase:!1,lowercase:!1,number:!1}),(0,z.sendGTMEvent)({event:"registerSuccess",nextURL:eE()+((null==s?void 0:s.slugUrl)?"".concat(null==s?void 0:s.slugUrl,"/registersuccess"):"/registersuccess")}),ey(V),window.runCustomClick("","","Registration Success"),(0,f.redirect)("".concat((null==s?void 0:s.slugUrl)?"/".concat(null==s?void 0:s.slugUrl,"/thankyou-register-success"):"/thankyou-register-success"))):(null==l?void 0:null===(P=l.status)||void 0===P?void 0:P.toLowerCase())==="error"&&(null==l?void 0:l.statusCode)===404?((0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:l,region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),O(!1),B(!1),G(null==l?void 0:l.message),eS.setValue("confirmEmailAddress",""),(0,A.e)(),H(""),null===(M=eA.current)||void 0===M||M.focus()):((0,I.X)("error",{context:"REGISTER_API_FAILED",apiName:"/register",request:{username:V.email},response:l,region:null==s?void 0:s.regionCode,site:null==s?void 0:s.site}),O(!1),B(!1),m.oR.error(()=>(0,a.jsx)("div",{style:{color:"black"},children:R("errMsg")}),{action:{label:(0,a.jsx)("span",{className:"icon-close text-18"}),onClick:()=>m.oR.dismiss()}}))}}}let e_=e=>{e.target.value.length>50&&(e.target.value=e.target.value.slice(0,50))},ek=e=>{e.target.value.length>30&&(e.target.value=e.target.value.slice(0,30))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-white rounded-md p-5 lg:p-8 flex flex-col w-full md:w-1/2 md:min-h-[400px] lg:min-w-[502px]",children:[(0,a.jsxs)("div",{className:"flex flex-col text-black ",children:[(0,a.jsx)("div",{className:"text-18 leading-18 md:text-24 md:leading-24 pb-4 md:pb-2 font-medium",children:(0,a.jsx)("h1",{children:(null==s?void 0:s.site)==="idec"?q("title"):q("titleApem")})}),(0,a.jsxs)("p",{className:"font-medium md:font-normal text-14 leading-14 md:text-16 md:leading-16 pb-8 md:pb-6",children:[q("description")," ",(0,a.jsx)(g.default,{href:(null==s?void 0:s.slugUrl)?"/".concat(null==s?void 0:s.slugUrl,"/login"):"/login",prefetch:!1,className:"text-primary underline hover:underline pl-1",children:q("login")})]}),(null==s?void 0:s.regionCode)==="jp"&&(0,a.jsxs)("p",{className:"flex justify-end text-16 leading-16",children:[(0,a.jsx)("span",{className:" text-red-500",children:"*"}),q("description1")]}),(0,a.jsx)(p.lV,{...eS,children:(0,a.jsxs)("form",{onSubmit:eS.handleSubmit(eF),className:"gap-6 w-full flex flex-col",action:"javascript:void(0);",method:"post",children:[eS.formState.isValid,(null==s?void 0:s.regionCode)!=="jp"&&(0,a.jsx)(p.zB,{control:eS.control,name:"title",render:e=>{let{field:l}=e;return(0,a.jsxs)(p.eI,{className:"",children:[(0,a.jsx)(p.lR,{children:q("label.title")}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)(C.z,{className:"flex flex-row gap-4",onValueChange:l.onChange,defaultValue:l.value,children:[(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(C.C,{value:"mr",id:"mr"}),(0,a.jsx)(y.J,{htmlFor:"mr",children:q("label.mr")})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(C.C,{value:"ms",id:"ms"}),(0,a.jsx)(y.J,{htmlFor:"ms",children:q("label.ms")})]})]})}),(0,a.jsx)(p.C5,{})]})}}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 firstName lastName",children:[(0,a.jsx)("div",{className:E()("w-full",{"order-2":["jp","tw"].includes(null==s?void 0:s.regionCode)}),children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.firstName"),type:"text",label:q("label.firstName"),name:"firstName",regEx:"textAndSpace",isRequired:!0,handleInput:e_})}),(0,a.jsx)("div",{className:E()("w-full",{"order-1":["jp","tw"].includes(null==s?void 0:s.regionCode)}),children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.lastName"),type:"text",label:q("label.lastName"),name:"lastName",regEx:"textAndSpace",isRequired:!0,handleInput:e_})})]}),(null==s?void 0:s.regionCode)==="jp"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.zB,{control:eS.control,name:"lastNameKana",render:e=>{let{field:l}=e;return(0,a.jsxs)(p.eI,{className:"",children:[(0,a.jsxs)(p.lR,{children:[q("label.lastNameKana")," ",(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.lastNameKana"),type:"text",...l,onChange:e=>{let s=e.target.value;l.onChange(s)}})}),(0,a.jsx)(p.C5,{})]})}}),(0,a.jsx)(p.zB,{control:eS.control,name:"firstNameKana",render:e=>{let{field:l}=e;return(0,a.jsxs)(p.eI,{className:"",children:[(0,a.jsxs)(p.lR,{children:[q("label.firstNameKana"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.firstNameKana"),type:"text",...l,onChange:e=>{let s=e.target.value;l.onChange(s)}})}),(0,a.jsx)(p.C5,{})]})}})]}),(0,a.jsx)(p.zB,{control:eS.control,name:"phone",render:e=>{var l;let{field:n}=e;return(0,a.jsxs)(p.eI,{className:"phoneNumber",children:[(0,a.jsxs)(p.lR,{children:[q("label.phoneNumber"),(0,a.jsx)("span",{className:"IME text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{...n,lang:(null==s?void 0:s.regionCode)==="jp"?"ja":void 0,pattern:(null==s?void 0:s.regionCode)==="jp"?"^[0-9ï¼-ï¼]*$":"^[0-9]*$",onChange:e=>{ek(e),n.onChange(e)},onChangeCapture:e=>J(e,null==s?void 0:s.regionCode),placeholder:(null==s?void 0:s.regionCode)!="jp"?q("placeHolder.phoneNumber"):"ä¼ç¤¾ã®é»è©±çªå·ã¾ãã¯æºå¸¯é»è©±çªå·",type:"text"})}),(null===(l=eS.formState.errors.phone)||void 0===l?void 0:l.message)&&(null==s?void 0:s.regionCode)!=="jp"&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.phoneNumber")})]})}}),(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.companyName"),type:"text",label:q("label.companyName"),name:"companyName",regEx:"textAndSpace",isRequired:!0,handleInput:e_}),(0,a.jsx)("div",{className:"departmentName",children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.departmentName"),type:"text",label:q("label.departmentName"),name:"departmentName",regEx:"textAndSpace"})}),!["jp","tw"].includes(null==s?void 0:s.regionCode)&&(0,a.jsx)(i.xI,{control:eS.control,name:"country",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"country",children:[(0,a.jsxs)(p.lR,{children:[q("label.country"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)("select",{required:!0,className:"html-select text-black invali
1d:text-gray-400",onChange:s.onChange,onBlur:s.onBlur,value:s.value,children:[(0,a.jsx)("option",{value:"",className:"",disabled:!0,hidden:!0,children:q("placeHolder.country")}),es&&es.map((e,l)=>(0,a.jsx)("option",{className:"text-black",value:e.isocode,children:e.name},"country-".concat(l)))]})}),eS.formState.touchedFields.country&&(null===(l=eS.formState.errors.country)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.country")})]})}}),(["in","tw","apac","eu","cn"].includes(null==s?void 0:s.regionCode)||(null==s?void 0:s.site)==="apem")&&(0,a.jsxs)("div",{className:"flex flex-col gap-6 Address State City",children:[(0,a.jsx)("div",{className:E()("w-full",{"order-3":["tw"].includes(null==s?void 0:s.regionCode)}),children:(0,a.jsx)(p.zB,{control:eS.control,name:"address",render:e=>{var l,n,t;let{field:r}=e;return(0,a.jsxs)(p.eI,{className:"address",children:[(0,a.jsxs)(p.lR,{children:[q("label.address"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(null==s?void 0:s.regionCode)=="cn"?(0,a.jsx)(v.p,{placeholder:q("placeHolder.address"),type:"text",...r}):(0,a.jsx)(F.Ay,{regionCode:null===(l=eS.getValues("country"))||void 0===l?void 0:l.toLowerCase(),onBlurred:e=>{eS.setValue("address",e.target.value,{shouldValidate:!0,shouldDirty:!0})},placeholder:q("placeHolder.address"),inputValue:null!==(t=r.value)&&void 0!==t?t:"",onChangeCapture:e=>{eS.setValue("address",e)},...r,onSelect:e=>{var l;(null==e?void 0:e.addressLine1)&&eS.setValue("address",(null==e?void 0:e.addressLine1)+" "+(null==e?void 0:e.addressLine2),{shouldDirty:!0,shouldValidate:!0}),(null==e?void 0:e.city)&&eS.setValue("city",e.city,{shouldValidate:!0,shouldDirty:!0}),(null==e?void 0:e.state)&&eS.setValue("state",e.state),(null==e?void 0:e.postalCode)&&eS.setValue("postalCode",null===(l=e.postalCode)||void 0===l?void 0:l.replaceAll(" ",""),{shouldValidate:!0,shouldDirty:!0}),(null==e?void 0:e.countryCode)&&eS.setValue("country",e.countryCode,{shouldValidate:!0,shouldDirty:!0})}})}),(null===(n=eS.formState.errors.address)||void 0===n?void 0:n.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.address")})]})}})}),(0,a.jsx)("div",{className:E()("w-full city",{"order-2":["tw"].includes(null==s?void 0:s.regionCode)}),children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.city"),type:"text",label:q("label.city"),name:"city",regEx:"textAndSpecialChars",isRequired:!0})}),!(ev||ep)&&(0,a.jsx)("div",{className:E()("w-full state",{"order-1":["tw"].includes(null==s?void 0:s.regionCode)}),children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.state"),type:"text",label:q("label.state"),name:"state",regEx:"textAndSpace",isRequired:!0})}),(null==s?void 0:s.regionCode)=="tw"&&(0,a.jsx)(i.xI,{control:eS.control,name:"state",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"state",children:[(0,a.jsxs)(p.lR,{children:[q("label.state"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)("select",{required:!0,className:"html-select text-black invalid:text-gray-400",onBlur:s.onBlur,onChange:s.onChange,value:s.value,defaultValue:"",children:[(0,a.jsx)("option",{value:"",children:q("placeHolder.state")}),Z&&Z.map((e,l)=>(0,a.jsx)("option",{className:"text-black",value:e.name,children:e.name},"region-".concat(l)))]})}),eS.formState.touchedFields.state&&(null===(l=eS.formState.errors.state)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.state")})]})}})]}),(["in","tw","cn","apac","eu"].includes(null==s?void 0:s.regionCode)||(null==s?void 0:s.site)==="apem")&&(0,a.jsx)("div",{className:"postalCode",children:(0,a.jsx)(_.A,{control:eS.control,editForm:!0,placeholder:q("placeHolder.postalCode"),type:"text",label:q("label.postalCode"),name:"postalCode",isRequired:!0})}),(null==s?void 0:s.regionCode)==="cn"&&(null==s?void 0:s.site)==="idec"&&(0,a.jsx)(i.xI,{control:eS.control,name:"customerType",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"customerType",children:[(0,a.jsxs)(p.lR,{children:[q("label.customerType"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)("select",{required:!0,className:"html-select text-black invali
1d:text-gray-400",onBlur:s.onBlur,onChange:s.onChange,value:s.value,defaultValue:"",children:[(0,a.jsx)("option",{value:"",children:q("placeHolder.customerType")}),Y&&Y.map((e,l)=>(0,a.jsx)("option",{className:"text-black",value:e.code,children:e.name},"customer-".concat(l)))]})}),eS.formState.touchedFields.customerType&&(null===(l=eS.formState.errors.customerType)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.customerType")})]})}}),((null==s?void 0:s.regionCode)==="jp"||(null==s?void 0:s.regionCode)==="tw"||(null==s?void 0:s.regionCode)==="cn"||(null==s?void 0:s.site)==="apem")&&(0,a.jsx)(i.xI,{control:eS.control,name:"industry",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"select-text-gray industry",children:[(0,a.jsxs)(p.lR,{children:[q("label.industry")," ",(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)("select",{required:!0,className:"html-select text-black invalid:text-gray-400",onChange:s.onChange,onBlur:s.onBlur,value:s.value,children:[(0,a.jsx)("option",{value:"",children:q("placeHolder.industry")}),en&&en.map((e,l)=>(0,a.jsx)("option",{className:"text-black",value:e.code,children:e.name},"industry-".concat(l)))]})}),eS.formState.touchedFields.industry&&(null===(l=eS.formState.errors.industry)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.industry")})]})}}),(null==s?void 0:s.regionCode)==="jp"&&(0,a.jsx)(i.xI,{control:eS.control,name:"jobType",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"select-text-gray jobType",children:[(0,a.jsxs)(p.lR,{children:[q("label.jobType"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsxs)("select",{required:!0,className:"html-select text-black invalid:text-gray-400",onChange:s.onChange,onBlur:s.onBlur,value:s.value,children:[(0,a.jsx)("option",{value:"",children:q("placeHolder.jobType")}),ee&&ee.map((e,l)=>(0,a.jsx)("option",{className:"text-black",value:e.code,children:e.name},"job-".concat(l)))]})}),eS.formState.touchedFields.jobType&&(null===(l=eS.formState.errors.jobType)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.jobType")})]})}}),(0,a.jsx)(p.zB,{control:eS.control,name:"emailAddress",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"emailAddress",children:[(0,a.jsxs)(p.lR,{children:[q("label.email"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.email"),type:"email",onClick:()=>{G("")},...s,ref:eA})}),D&&(0,a.jsx)("p",{className:"py-2 text-danger error-msg !text-14 font-medium",children:D}),(null===(l=eS.formState.errors.emailAddress)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.email")})]})}}),(0,a.jsx)(p.zB,{control:eS.control,name:"confirmEmailAddress",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"confirmEmailAddress",children:[(0,a.jsxs)(p.lR,{children:[q("label.confirmEmail"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.confirmEmailAddress"),type:"email",...s})}),(null===(l=eS.formState.errors.confirmEmailAddress)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:eS.getValues("emailAddress")!==eS.getValues("confirmEmailAddress")?T("required.confirmEmail"):T("required.email")})]})}}),(0,a.jsx)(p.zB,{control:eS.control,name:"password",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"password",children:[(0,a.jsxs)(p.lR,{children:[q("label.createPassword"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.password"),type:"password",...s,onChange:e=>{s.onChange(e),em(e),eS.trigger("confirmEmailAddress")},autoComplete:"new-password"})}),(null===(l=eS.formState.errors.password)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.password")}),(0,a.jsx)(p.Rr,{className:"mt-3 flex flex-col gap-3",children:(0,a.jsx)(w.A,{checklist:ei})})]})}}),(0,a.jsx)(p.zB,{control:eS.control,name:"confirmPassword",render:e=>{var l;let{field:s}=e;return(0,a.jsxs)(p.eI,{className:"confirmPassword",children:[(0,a.jsxs)(p.lR,{children:[q("label.confirmPassword"),(0,a.jsx)("span",{className:"text-16 leading-16 text-red-500",children:"*"})]}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(v.p,{placeholder:q("placeHolder.confirmPassword"),type:"password",autoComplete:"new-password",...s})}),(null===(l=eS.formState.errors.confirmPassword)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:eS.getValues("password")!=eS.getValues("confirmPassword")?T("required.confirmPassword"):T("required.password")})]})}}),(0,a.jsx)("div",{className:"flex justify-between",children:(0,a.jsx)(p.zB,{control:eS.control,name:"subscribe",render:e=>{let{field:l}=e;return(0,a.jsxs)(p.eI,{className:"subscribe",children:[(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(p.MJ,{children:(0,a.jsx)(c.S,{className:"w-6 h-6",id:"subscribe-to-newsletter",checked:l.value,onCheckedChange:l.onChange})}),(0,a.jsx)("div",{className:"subscribeNewsletter",children:(0,a.jsx)(p.lR,{className:"text-12 leading-12 md:text-14 md:leading-14 font-normal",children:(null==s?void 0:s.site)==="idec"?q("subscribeNewsletter"):q("subscribeNewsletterApem")})})]}),(0,a.jsx)(p.C5,{})]})}})}),(0,a.jsx)("div",{className:"flex justify-between",children:(0,a.jsx)(p.zB,{control:eS.control,name:"tc",render:e=>{var l;let{field:n}=e;return(0,a.jsxs)(p.eI,{className:"TC",children:[(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(p.MJ,{children:(0,a.jsx)(c.S,{className:"w-6 h-6",id:"agree-to-registration-terms",checked:n.value,onCheckedChange:n.onChange})}),(0,a.jsx)("div",{className:"",children:(0,a.jsxs)(p.lR,{className:"text-12 leading-12 md:text-14 md:leading-14 font-normal",children:[(null==s?void 0:s.site)==="idec"?q("tc"):q("tcApem"),(null==s?void 0:s.regionCode)=="jp"?q("terms-conditions.text"):(0,a.jsx)("a",{href:(null==s?void 0:s.slugUrl)?"/".concat(null==s?void 0:s.slugUrl,"/content/terms-conditions"):"/content/terms-conditions",target:"_blank",rel:"noreferrer",className:"hover:text-primary hover:underline font-bold",children:q("terms-conditions.text")}),q("and"),(null==s?void 0:s.regionCode)=="jp"?q("privacy-policy.text"):(0,a.jsx)("a",{href:(null==s?void 0:s.slugUrl)?"/".concat(null==s?void 0:s.slugUrl,"/content/privacy-policy"):"/content/privacy-policy",target:"_blank",rel:"noreferrer",className:"hover:text-primary hover:underline font-bold",children:q("privacy-policy.text")})]})})]}),(null===(l=eS.formState.errors.tc)||void 0===l?void 0:l.message)&&(0,a.jsx)("span",{className:"text-danger error-msg !text-14 font-medium",children:T("required.tc")})]})}})}),U&&(0,a.jsx)("p",{className:"py-2 text-danger error-msg !text-14 font-medium",children:U}),(0,a.jsx)(n.$,{onClick:()=>(0,z.sendGTMEvent)({event:"click_type",value:"createAccount"}),type:"submit",className:"w-full",theme:L&&!M?"primary":"disabledPrimary",children:q("button.createAccount")}
1)]})})]}),(0,a.jsxs)("p",{className:"text-center md:text-left text-14 leading-14 mt-6 md:mt-4",children:[q("troubleSigningUp"),(0,a.jsx)("a",{href:"".concat((null==s?void 0:s.slugUrl)?"/".concat(null==s?void 0:s.slugUrl,"/support/contact-us"):"/support/contact-us"),className:"underline hover:underline hover:text-primary",children:q("contactUs")})]})]}),X&&(0,a.jsx)(u.A,{}),["idec","apem"].includes(null==s?void 0:s.site)&&(0,a.jsx)(m.l$,{position:"top-right",richColors:!0})]})}},27402:(e,l,s)=>{s.d(l,{h:()=>a});function a(e){return new Promise(l=>{grecaptcha.enterprise.ready(async()=>{if(!e){l(null);return}l(await grecaptcha.enterprise.execute(e,{action:"LOGIN"}))})})}}}]);
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.