1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{70449:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var o=r(95155),n=r(22544),s=r(85203),a=r.n(s),i=r(71142),l=r(65593),c=r(3998),d=r(12175),m=r(84545),u=r(37589),x=r(18490),p=r(39315),f=r(72378),h=r(34204),b=r(80549);async function v(e){return{token:"".concat(e.email,".").concat(e.name).split("").reverse().join("")}}var g=r(82188);function y(e){var t;let{lang:r,isPopup:s=!0,className:y}=e,{t:w}=(0,i.B)(r),{mutate:j,isPending:k}=(()=>{let{authorize:e,closeModal:t}=(0,h.useUI)();return(0,b.n)({mutationFn:e=>v(e),onSuccess:r=>{f.A.set("auth_token",r.token),e(),t()}})})(),{closeModal:N,openModal:C}=(0,l.DG)(),{register:A,handleSubmit:I,formState:{errors:B}}=(0,n.mN)();return(0,o.jsxs)("div",{className:a()("mx-auto flex rounded-lg bg-custom-primary-light md:w-[720px] lg:w-[920px] xl:w-[1000px] 2xl:w-[1200px]",y),children:[!0===s&&(0,o.jsx)(d.A,{onClick:N}),(0,o.jsxs)("div",{className:"mx-auto flex w-full overflow-hidden rounded-lg bg-custom-primary-light",children:[(0,o.jsx)("div",{className:"registration relative hidden md:block md:w-1/2 lg:w-[55%] xl:w-[60%]",children:(0,o.jsx)(u.A,{src:"/assets/images/registration.png",alt:"sign up",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"})}),(0,o.jsxs)("div",{className:"flex w-full flex-col justify-center rounded-md px-4 py-6 shadow-dropDown sm:px-8 sm:py-10 md:w-1/2 md:px-6 lg:w-[45%] lg:px-8 xl:w-[40%] xl:px-12",children:[(0,o.jsxs)("div",{className:"mb-6 pt-2.5 text-center",children:[(0,o.jsx)("div",{onClick:N,children:(0,o.jsx)(p.default,{})}),(0,o.jsx)("h4",{className:"text-xl font-semibold text-custom-primary-dark sm:pt-3 sm:text-2xl",children:w("common:text-sign-up-for-free")}),(0,o.jsxs)("div",{className:"text-body mb-1 mt-3 text-center text-sm sm:text-base",children:[w("common:text-already-registered"),(0,o.jsx)("button",{type:"button",className:"text-sm font-semibold text-custom-primary-base hover:no-underline focus:outline-none sm:text-base ltr:ml-1 rtl:mr-1",onClick:function(){return C("LOGIN_VIEW")},children:w("common:text-sign-in-now")})]})]}),(0,o.jsx)("form",{onSubmit:I(function(e){let{name:t,email:r,password:o,remember_me:n}=e;j({name:t,email:r,password:o,remember_me:n})}),className:"flex flex-col justify-center",noValidate:!0,children:(0,o.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,o.jsx)(m.A,{label:w("forms:label-cnpj"),type:"text",variant:"solid",...A("email",{required:"".concat(w("forms:cnpj-required")),pattern:{value:/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/,message:w("forms:cnpj-error")}}),error:null==(t=B.email)?void 0:t.message,lang:r}),(0,o.jsx)("div",{className:"flex items-center justify-center",children:(0,o.jsx)("div",{className:"mt-[2px] flex ltr:ml-auto rtl:mr-auto",onClick:N,children:(0,o.jsx)(x.A,{href:"/".concat(r).concat(g.b.PRIVACY),className:"text-heading text-sm hover:text-custom-primary-dark hover:no-underline focus:text-custom-primary-dark focus:outline-none ltr:pl-3 ltr:text-right rtl:text-left lg:rtl:pr-3",children:w("common:text-privacy-and-policy")})})}),(0,o.jsx)("div",{className:"relative",children:(0,o.jsx)(c.A,{type:"submit",loading:k,disabled:k,className:"font-15px md:font-15px mt-2 h-11 w-full tracking-normal md:h-12",variant:"formButton",children:w("common:text-register")})})]})})]})]})]})}},72378:(e,t,r)=>{function o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)e[o]=r[o]}return e}r.d(t,{A:()=>n});var n=function e(t,r){function n(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=o({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var i in s)s[i]&&(a+="; "+i,!0!==s[i]&&(a+="="+s[i].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],o={},n=0;n<r.length;n++){var s=r[n].split("="),a=s.slice(1).join("=");try{var i=decodeURIComponent(s[0]);if(o[i]=t.read(a,i),e===i)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){n(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
1URIComponent)}},{path:"/"})},84545:(e,t,r)=>{r.d(t,{A:()=>d});var o=r(95155),n=r(12115),s=r(85203),a=r.n(s),i=r(71142);let l={root:"py-2 px-4 w-full appearance-none transition duration-150 ease-in-out border text-input text-13px lg:text-sm font-body rounded placeholder-[#B3B3B3] min-h-12 transition duration-200 ease-in-out text-custom-primary-dark focus:ring-0",normal:"bg-gray-100 border-gray-300 focus:shadow focus:text-custom-primary-light focus:border-custom-primary-base",solid:"text-custom-primary-dark border-border-two focus:border-2 focus:outline-none focus:border-custom-primary-base h-11 md:h-12",outline:"border-gray-300 focus:border-custom-primary-base",shadow:"focus:shadow"},c=n.forwardRef((e,t)=>{let{lang:r,className:n="block",label:s,name:c,error:d,placeholder:m,variant:u="normal",shadow:x=!1,type:p="text",inputClassName:f,labelClassName:h,...b}=e,v=a()(l.root,{[l.normal]:"normal"===u,[l.solid]:"solid"===u,[l.outline]:"outline"===u},{[l.shadow]:x},f),{t:g}=(0,i.B)(r);return(0,o.jsxs)("div",{className:n,children:[s&&(0,o.jsx)("label",{htmlFor:c,className:"mb-3 block cursor-pointer text-sm font-normal leading-none ".concat(h||"text-custom-primary-dark text-opacity-70"),children:g(s)}),(0,o.jsx)("input",{id:c,name:c,type:p,ref:t,placeholder:g(m),className:v,autoComplete:"off",spellCheck:"false","aria-invalid":d?"true":"false",...b}),d&&(0,o.jsx)("p",{className:"my-2 text-13px text-custom-red-base text-opacity-70",children:g(d)})]})});c.displayName="Input";let d=c}}]);
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.