(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{76276:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return s(2030)}])},45551:function(e,a){"use strict";a.Z={src:"/_next/static/media/Rectangle 1128.5f6d1ef3.svg",height:426,width:49,blurWidth:0,blurHeight:0}},36207:function(e,a){"use strict";a.Z={src:"/_next/static/media/icon.63ebf5d8.png",height:350,width:350,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAOVBMVEXsTgD0hiv4nlP0m1D3lURMaXH6mUj2jjr3hyv2mk3vbQb4vIvxeRn/uHXyexr6y6T8r2r70rD/unmVBwGHAAAADXRSTlMsquLb6AD+/q7z+v75uRtKygAAAAlwSFlzAAALEwAACxMBAJqcGAAAADxJREFUeJxFyjESgDAIAMHDhAAqCfH/j3XGxm6LRfEIR6GnjezgedZ1pxA21552/PCytaME+jO+rEhrgr5J/QH4MbhcvAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},62464:function(e,a){"use strict";a.Z={src:"/_next/static/media/lock.e3afddfc.svg",height:20,width:20,blurWidth:0,blurHeight:0}},6644:function(e,a){"use strict";a.Z={src:"/_next/static/media/register_ok.28cd0a2c.svg",height:364,width:352,blurWidth:0,blurHeight:0}},43689:function(e,a,s){"use strict";s.d(a,{z:function(){return r}});var t=s(19222);let r=(e,a)=>e.length>10?a:e.match(/^(\d{2})-(\d{2})-(\d{4})/)?e:(0,t.Ch)(e).replace(/(\d{2})(\d)/,"$1/$2").replace(/(\d{2})(\d)/,"$1/$2")},89706:function(e,a,s){"use strict";s.d(a,{X:function(){return r}});var t=s(19222);let r=(e,a)=>{if(e.length>18)return a;if(!e.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)&&!e.match(/^(\d{2}).(\d{3}).(\d{3})\/(\d{4}).(\d{2})$/)){let a=(0,t.Ch)(e);return a.length<=11?a.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{2})$/,"$1-$2"):a.replace(/(\d{2})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1/$2").replace(/(\d{4})(\d{2})$/,"$1-$2")}return e}},46980:function(e,a,s){"use strict";s.d(a,{G:function(){return t}});let t=(e,a)=>e.length>9?a:e.replace(/[^a-zA-Z0-9]/g,"").toUpperCase()},13376:function(e,a,s){"use strict";s.d(a,{S:function(){return r}});var t=s(19222);let r=(e,a)=>e.length>15?a:e.match(/^(\d{2})\s(\d{4,5})-(\d{4})/)?e:(0,t.Ch)(e).replace(/(\d{2})(\d)/,"($1) $2").replace(/(\d{4,5})(\d)/,"$1-$2")},25036:function(e,a){"use strict";a.Z={profission:{required:"Informe sua profiss\xe3o"},cod:{required:"",pattern:{value:/^[0-9]+$/,message:"C\xf3digo inv\xe1lido"}},login:{required:"Informe seu login",pattern:{value:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,message:"Email inv\xe1lido"}},passport:{required:"Informe seu passaporte",pattern:{value:/^[a-zA-Z0-9]{8,9}$/,message:"Passaporte inv\xe1lido"}},password:{required:"Informe sua senha",pattern:{value:/^(?=.*\d)(?=.*[a-zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ])(?=.*[A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝ])(?=.*[$*&@#!?^])[0-9a-zA-Zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ$*&@#!?^]{8,}$/,message:"Senha inv\xe1lida"}},email:{required:"Informe um e-mail",pattern:{value:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/,message:"E-mail inv\xe1lido"}},cpf_cnpj:{required:"Informe o CPF ou CNPJ.",pattern:{value:/^\d{2}.?\d{3}.?\d{3}\/?\d{4}-?\d{2}$|^\d{3}.?\d{3}.?\d{3}-?\d{2}\s?$/,message:"CPF ou CNPJ inv\xe1lido."}},crm:{required:"Informe o CRM."},cpf:{required:"Informe o CPF",pattern:{value:/^\d{3}.?\d{3}.?\d{3}-?\d{2}\s?$/,message:"CPF inv\xe1lido"}},rg:{required:"Informe o RG.",pattern:{value:/^\d{2}.?\d{3}.?\d{3}-?\d{1}\s?$/,message:"RG inv\xe1lido."}},CEP:{required:"Informe o CEP",pattern:{value:/^\d{5}-?\d{3}\s?$/,message:"CEP inv\xe1lido."}},cnpj:{required:"Informe o CNPJ.",pattern:{value:/^\d{2}.?\d{3}.?\d{3}\/?\d{4}-?\d{2}$/,message:"CNPJ inv\xe1lido"}},full_name:{required:"Informe o nome completo",pattern:{value:/[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{3,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*( [a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{2,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*)+/,message:"Nome completo inv\xe1lido"}},company_name:{required:"Informe o nome da empresa.",pattern:{value:/[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{3,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*( [a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{2,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*)+/,message:"Nome inv\xe1lido."}},name:{required:"Informe o primeiro nome"},surname:{required:"Informe o sobrenome"},hour:{required:"Informe a hora",patter:{value:/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/,message:"Hora inv\xe1lida."}},phone:{required:"Informe o n\xfamero de telefone.",pattern:{value:/^\(?(?:[14689][1-9]|2[12478]|3[1234578]|5[1345]|7[134579])\)?\s?(?:[2-8]|9[1-9])\d{3}-?\d{4}$/,message:"N\xfamero de telefone inv\xe1lido."}},salary:{required:"Informe a renda financeira.",pattern:{min:1,message:"Renda financeira inv\xe1lida."}},currency:{required:"Informe o valor do produto",pattern:{min:1,message:"Valor inv\xe1lido"}},birth_date:{required:"Informe a data de nascimento.",pattern:{value:/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,message:"Data de nascimento inv\xe1lida."}},foreign_birth_date:{required:"Informe a data de nascimento",pattern:{value:/^(?:(?:0?[13578]|1[02])(\/|-|\.)(?:31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)(?:29)\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,message:"Data de nascimento inv\xe1lida"}},product_date:{required:"Informe a data do produto.",pattern:{value:/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,message:"Data de nascimento inv\xe1lida."}},cnh:{required:"Informe a CNH",pattern:{value:/^\d{11}$/,message:"CNH inv\xe1lida."}},rg_cnh:{required:"Informe o(a) RG/CNH."},marital_status:{required:"Informe o estado civil",pattern:{value:/^[0-4]$/,message:"Estado civil inv\xe1lido."}},gestation_time:{required:"Informe o tempo de gesta\xe7\xe3o",pattern:{min:1,message:"Tempo de gesta\xe7\xe3o inv\xe1lido."}},city:{required:"Informe a cidade"},address:{required:"Informe o endere\xe7o"},state:{required:"Informe o estado"},street:{required:"Informe a rua ou avenida"},house_number:{required:"Informe o n\xfamero"},gender:{required:"Informe o g\xeanero."},nationality:{required:"Informe a nacionalidade.",pattern:{value:/^\d{1,3}$/,message:"Nacionalidade inv\xe1lida."}},card_number:{required:"Informe o n\xfamero do cart\xe3o",pattern:{value:/^\d{4}\s\d{4}\s\d{4}\s\d{4}$/,message:"N\xfamero do cart\xe3o inv\xe1lido."}},card_expiration:{required:"Informe o vencimento",pattern:{value:/^(0[1-9]|1[0-2])\/?([0-9]{2})$/,message:"Vencimento inv\xe1lido"}},card_cvv:{required:"Informe o CVV",pattern:{value:/^[0-9]{3,4}$/,message:"CVV inv\xe1lido"}},card_holder_name:{required:"Informe o nome como est\xe1 no cart\xe3o.",pattern:{value:/[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{3,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*( [a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]{2,}([-']?[a-zA-ZáàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ]+)*)+/,message:"Nome inv\xe1lido."}}}},56111:function(e,a,s){"use strict";var t=s(85893),r=s(25675),l=s.n(r),o=s(36207);a.Z=e=>(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(l(),{alt:"",src:o.Z,width:40,height:40}),(0,t.jsx)("p",{className:e.textClassName,children:"ribus"})]})},2030:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return ei}});var t=s(85893),r=s(20572),l=s(87362),o=s(49559),i=s(47873),n=s(21974),c=s(25675),d=s.n(c),m=s(45551),u=s(6644),x=s(90512),f=s(11163),h=s.n(f),p=s(78773),v=s(56111),b=s(51526),j=s(70798),g=s(67294),w={src:"/_next/static/media/natural-person.7d38a0df.svg",height:65,width:64,blurWidth:0,blurHeight:0},N={src:"/_next/static/media/legal-person.9ab0d6f2.svg",height:65,width:64,blurWidth:0,blurHeight:0},y=s(87536),k=s(55678),E=s(61202),C=s(93093),_=s(26697),A=s(25036),S={src:"/_next/static/media/user.fdb8e46d.svg",height:21,width:20,blurWidth:0,blurHeight:0},F={src:"/_next/static/media/mail.8e59cf9b.svg",height:21,width:20,blurWidth:0,blurHeight:0},q=e=>{var a,s,r,o;let{abstractPost:i,isPosting:n}=(0,C.Z)(),c=(0,g.useRef)(null),[m,u]=(0,g.useState)(!1);return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=c.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full max-sm:h-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:e.onBack,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua conta"})]}),(0,t.jsx)("p",{className:"text-center",children:"Vamos come\xe7ar com informa\xe7\xf5es sobre sua conta, preencha todos os campos."}),(0,t.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"full_name",title:"Raz\xe3o social",label:"Raz\xe3o social da empresa",className:"w-full",validator:{required:"*Informe a raz\xe3o social da empresa"},customLeftElement:(0,t.jsx)(d(),{alt:"",src:S})}),(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"email",title:"Seu email corporativo",onChangeText:function(e){e.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)||u(!1)},delayedChangeText:function(a){a.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)&&i("/users/email-validation",{email:a}).then(a=>{400===a.status?e.formMethods.setError("email",{message:"O email j\xe1 existe!",type:"value"}):(e.formMethods.clearErrors("email"),u(!0))}),u(!1)},label:"Insira seu email corporativo",className:"w-full",validator:A.Z.email,customLeftElement:(0,t.jsx)(d(),{alt:"",src:F})})]}),(0,t.jsx)("div",{className:"w-full flex justify-center mt-4",children:(0,t.jsx)(l.A,{ref:c,variant:"shadow",isDisabled:!e.formMethods.formState.isValid||(null===(s=e.formMethods.formState.errors)||void 0===s?void 0:null===(a=s.email)||void 0===a?void 0:a.type)==="value"||(null===(o=e.formMethods.formState.errors)||void 0===o?void 0:null===(r=o.email)||void 0===r?void 0:r.type)==="validate"||!m||n,onClick:e.formMethods.handleSubmit(e.onNext),className:"semibold w-full rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})})]})},$=s(13376),Z=s(43689),B={src:"/_next/static/media/briefcase 04.16a33366.svg",height:21,width:20,blurWidth:0,blurHeight:0},I={src:"/_next/static/media/call.e496c6fc.svg",height:21,width:20,blurWidth:0,blurHeight:0},M={src:"/_next/static/media/Vector.38fb95c8.svg",height:19,width:20,blurWidth:0,blurHeight:0},D=s(19222);let z=(e,a)=>e.length>18?a:e.match(/^(\d{2}).(\d{3}).(\d{3})\/(\d{4}).(\d{2})$/)?e:(0,D.Ch)(e).replace(/(\d{2})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1/$2").replace(/(\d{4})(\d{2})$/,"$1-$2"),L=(e,a)=>e.length>13?a:e.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)?e:(0,D.Ch)(e).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{2})$/,"$1-$2");var V=e=>{let{formMethods:a,onBack:s,onNext:r}=e,o=(0,g.useRef)(null),[i,n]=(0,g.useState)(!1);return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=o.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-2",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:s,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Dados empresariais"})]}),(0,t.jsx)("p",{className:"text-center",children:"Agora, precisamos de alguns detalhes sobre sua empresa para configurar seu perfil"}),(0,t.jsxs)("div",{className:"flex flex-col mt-8",children:[(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"owner_name",title:"Nome completo do respons\xe1vel",label:"Insira o nome completo do respons\xe1vel",validator:{required:"*\xc9 necess\xe1rio o nome completo do respons\xe1vel."},className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:B})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"cnpj",title:"Insira o CNPJ da empresa",label:"00.000.000/0000-00",validator:A.Z.cnpj,maskFunction:z,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:M})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"cpf",title:"CPF do respons\xe1vel",label:"000.000.000-00",validator:A.Z.cpf,maskFunction:L,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:M})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"birthdate",title:"Data de abertura da empresa",className:"w-full",maskFunction:Z.z,onChangeText:e=>(function(e,s){console.log("Company Info - Data recebida:",e);let[t,r,l]=e.split("/");console.log("Company Info - Partes da data:",{day:t,month:r,year:l});let o=new Date("".concat(l,"-").concat(r,"-").concat(t));if(console.log("Company Info - Data convertida:",o),isNaN(o.getTime())){a.setError("birthdate",{message:"Data inv\xe1lida"});return}let i=new Date,n=i.getFullYear()-o.getFullYear(),c=i.getMonth()-o.getMonth();(c<0||0===c&&i.getDate()=18,m=n>=2;if(s.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)){if(!d){a.setError("birthdate",{message:"Voc\xea precisa ter mais que 18 anos"});return}}else if(s.match(/^(\d{2}).(\d{3}).(\d{3})\/(\d{4}).(\d{2})$/)){if(!m){a.setError("birthdate",{message:"Empresas n\xe3o podem possuir uma data de abertura menor que 2 anos"});return}}else if(!d){a.setError("birthdate",{message:"Voc\xea precisa ter mais que 18 anos"});return}a.clearErrors("birthdate")})(e,a.getValues().cpf),validator:A.Z.birth_date,contentClassName:"bg-[#E3E5EB]",customLeftElement:(0,t.jsx)(p.OS,{color:"#28303F"})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"company_phone",title:"Telefone corporativo",label:"(00) 0 0000-0000",maskFunction:$.S,validator:A.Z.phone,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:I})})]}),(0,t.jsx)(l.A,{ref:o,variant:"shadow",isDisabled:!a.formState.isValid,onClick:a.handleSubmit(r),className:"semibold w-full mt-4 rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})]})};function R(e){return(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)||"number"==typeof e)&&!isNaN(Number(function(e){let a=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===a?new e.constructor(+e):new Date("number"==typeof e||"[object Number]"===a||"string"==typeof e||"[object String]"===a?e:NaN)}(e)))}var H={src:"/_next/static/media/Vector_1.1957a6dc.svg",height:19,width:16,blurWidth:0,blurHeight:0},P=e=>{let{formMethods:a,onBack:s,onNext:r}=e,o=(0,g.useRef)(null),i=a.watch("terms_accepted");return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=o.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-2",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:()=>h().back(),children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua senha"})]}),(0,t.jsx)("p",{className:"text-center px-12 max-sm:px-4",children:"Crie uma senha forte e segura que voc\xea n\xe3o utiliza em outros sites. Utilize letras mai\xfasculas, min\xfasculas, n\xfameros e caracteres especiais."}),(0,t.jsxs)("div",{className:"w-full gap-6 flex flex-col overflow-auto max-h-[70vh]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"passwd",title:"Senha",label:"Crie sua senha",securityEntry:!0,className:"w-full",validator:A.Z.password,customLeftElement:(0,t.jsx)(d(),{alt:"",src:H})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"confirm_passwd",title:"Sua senha novamente",label:"Senha novamente",securityEntry:!0,validator:A.Z.password,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:H})})]}),(0,t.jsx)(l.A,{ref:o,isDisabled:!R||!i,onClick:a.handleSubmit(r),className:"semibold rounded-full enabled:shadow-md group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Confirmar"})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 mt-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-1",...a.register("terms_accepted")}),(0,t.jsxs)("p",{className:"text-sm text-neutral-600",children:["Li e aceito os"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/termos-de-uso.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos de uso"}),","," ",(0,t.jsx)("a",{href:"https://whitepaper.ribus.com.br/v1",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos do whitepaper"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/protocolo-ribus-wineskin-v2.01.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Whitepaper v2"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/privacidade-protecao-dados.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de privacidade"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/seguranca-informacao.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de seguran\xe7a"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/compliance.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de compliance"})," e"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/politica-de-identificacao-fatores-risco.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de identifica\xe7\xe3o de risco"}),". Declaro para os devidos fins que tenho capacidade financeira para adquirir os Ribus Token, e assumo total responsabilidade sob as informa\xe7\xf5es cadastrais, estando sujeito \xe0s penalidades previstas em lei (Art. 171 e 299 CP)"]})]})})]})},T=e=>{let a=(0,f.useRouter)(),s=(0,y.cI)(),{abstractPost:c,isPosting:h}=(0,C.Z)({dontAuthCheck:!0}),{isOpen:w,onClose:N,onOpen:_}=(0,r.q)(),[A,S]=(0,g.useState)(0),F=(0,g.useRef)(null);return(0,g.useEffect)(()=>{var e;if(null===(e=a.query)||void 0===e?void 0:e.session){let e=(0,E.o)(a.query.session);e&&(s.setValue("user_name",e.name),s.setValue("email",e.email),(0,k.Am)("Usu\xe1rio n\xe3o encontrado. Preencha o formul\xe1rio para criar sua conta!"))}},[a.query]),(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&w&&2===A&&(null===(a=F.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[w]),(0,t.jsxs)("div",{className:"flex items-center justify-center w-[100vw] max-sm:w-full max-sm:max-w-full h-[100vh] overflow-auto",children:[(0,t.jsxs)("div",{className:(0,x.Z)("container mx-auto max-w-[500px] w-full flex-grow p-8 bg-white rounded-[12px] shadow-lg","max-sm:h-full max-sm:max-w-full max-sm:p-0"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer max-sm:hidden",onClick:()=>{0===A?a.back():S(A>0?A-1:0)},children:[(0,t.jsx)(p.x_l,{}),(0,t.jsx)("p",{children:"Voltar"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center max-sm:hidden",children:(0,t.jsx)(v.Z,{textClassName:"text-black text-4xl tracking-[-1px]"})}),(0,t.jsxs)(b.M,{mode:"popLayout",children:[0===A&&(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},children:(0,t.jsx)(q,{onBack:e.onBack,onNext:()=>S(e=>e+1),formMethods:s})},A),1===A&&(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},children:(0,t.jsx)(V,{onBack:()=>S(e=>e-1),onNext:()=>S(e=>e+1),formMethods:s})},1),2===A&&(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},children:(0,t.jsx)(P,{onBack:()=>S(e=>e-1),onNext:s.handleSubmit(function(e){w||c("/users/signup",{checkbox:!0,name:e.full_name,phone:e.company_phone,owner_name:e.owner_name,owner_document:e.cpf,birthdate:e.birthdate,document:e.cnpj,confirm_email:e.email,email:e.email,passwd:e.passwd,confirm_passwd:e.confirm_passwd}).then(e=>{201===e.status||200===e.status?_():400===e.status?e.data.error.forEach(e=>{k.Am.error(e)}):k.Am.error(e.data)})}),formMethods:s})},2)]})]}),(0,t.jsx)(o.R,{size:"2xl",isOpen:w,hideCloseButton:!0,children:(0,t.jsx)(i.A,{className:"bg-white",children:()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.I,{className:"border-t-[12px] border-[#FF7B2E]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 p-4",children:[(0,t.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center",children:[(0,t.jsx)(d(),{alt:"",src:m.Z}),(0,t.jsx)(d(),{alt:"",src:u.Z,style:{objectFit:"cover"},className:"absolute top-14"})]}),(0,t.jsx)("p",{className:"text-black text-[18px] semibold text-center",children:"Bem-vindo(a) \xe0 Ribus!"}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-[16px]",children:"Verifique seu email para continuar com seu acesso."})}),(0,t.jsx)("div",{className:"flex gap-4 w-full",children:(0,t.jsx)(l.A,{ref:F,className:"rounded-full flex-grow semibold bg-[#FF7B2E]",onClick:()=>a.push("/login"),children:"Voltar ao login"})})]})})})})})]})},O=s(41570),W={src:"/_next/static/media/globe.49b6743f.svg",height:24,width:24,blurWidth:0,blurHeight:0},U=s(86946),J=s(92088),X=e=>{var a,s,r,o,i;let n=(0,f.useRouter)(),{abstractPost:c,isPosting:d}=(0,C.Z)(),m=(0,g.useRef)(null),[u,h]=(0,g.useState)(!1),[v,b]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{var a;return(null===(a=n.query)||void 0===a?void 0:a.indication)&&(b(!0),e.formMethods.setValue("cod_indication",n.query.indication)),window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=m.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}},[n.isReady]),(0,t.jsxs)("div",{className:"flex flex-col w-full max-sm:h-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:e.onBack,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua conta"})]}),(0,t.jsx)("p",{className:"text-center",children:"Vamos come\xe7ar com informa\xe7\xf5es sobre sua conta, preencha todos os campos."}),(0,t.jsxs)("div",{className:"flex flex-col mt-4 w-full",children:[(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"full_name",title:"Nome completo",label:"Seu nome completo",className:"w-full",validator:A.Z.full_name,customLeftElement:(0,t.jsx)(p.Xws,{color:"#28303F",className:"ml-1"})}),(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"email",title:"Seu email",onChangeText:function(e){e.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)||h(!1)},delayedChangeText:function(a){a.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)&&c("/users/email-validation",{email:a}).then(a=>{400===a.status?e.formMethods.setError("email",{message:"O email j\xe1 existe!",type:"value"}):(e.formMethods.clearErrors("email"),h(!0))}),h(!1)},label:"Insira seu email",className:"w-full",validator:A.Z.email,customLeftElement:(0,t.jsx)(J.ixJ,{color:"#28303F",className:"ml-1"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(U.K,{isSelected:v,onValueChange:b,children:"Adicionar indica\xe7\xe3o"}),(0,t.jsx)("div",{className:(0,x.Z)("mt-4 overflow-hidden transition-[height] ease-soft-spring duration-300",v?"h-[72px]":"h-0"),children:(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,disabled:null!==(a=n.query)&&void 0!==a&&!!a.indication,name:"cod_indication",label:"C\xf3digo de indica\xe7\xe3o",className:"w-full"})})]})]}),(0,t.jsx)("div",{className:"w-full flex justify-center mt-4",children:(0,t.jsx)(l.A,{ref:m,variant:"shadow",isDisabled:!e.formMethods.formState.isValid||(null===(r=e.formMethods.formState.errors)||void 0===r?void 0:null===(s=r.email)||void 0===s?void 0:s.type)==="value"||(null===(i=e.formMethods.formState.errors)||void 0===i?void 0:null===(o=i.email)||void 0===o?void 0:o.type)==="validate"||!u||d,onClick:e.formMethods.handleSubmit(e.onNext),className:"semibold w-full rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})})]})},G=s(89706),Y=e=>{let{formMethods:a,onBack:s,onNext:r}=e,o=(0,g.useRef)(null);return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=o.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:s,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Dados pessoais"})]}),(0,t.jsx)("p",{className:"text-center",children:"Agora, precisamos de alguns detalhes pessoais para configurar seu perfil"}),(0,t.jsxs)("div",{className:"flex flex-col mt-8",children:[(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"phone",title:"Telefone celular",label:"(00) 0 0000-0000",className:"w-full",validator:A.Z.phone,maskFunction:$.S,customLeftElement:(0,t.jsx)(p.DNl,{color:"#28303F",className:"ml-1"})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"document",title:"Documento",maskFunction:G.X,delayedChangeText:e=>{(function(e){let a=e.replace(/[^\d]+/g,"");if(!a||11!==a.length&&14!==a.length||/^(\d)\1+$/.test(a))return!1;let s=11===a.length,t=a.split("").map(e=>parseInt(e,10));return s?function(e){let a=0,s=0;for(let t=0;t<9;t++)a+=e[t]*(10-t),s+=e[t]*(11-t);return s+=2*(a=a%11<2?0:11-a%11),s=s%11<2?0:11-s%11,a===e[9]&&s===e[10]}(t):function(e){let a=[5,4,3,2,9,8,7,6,5,4,3,2],s=[6,5,4,3,2,9,8,7,6,5,4,3,2],t=e.slice(0,12).reduce((e,s,t)=>e+s*a[t],0),r=t%11<2?0:11-t%11;return r===e[12]&&(r=(t=e.slice(0,13).reduce((e,a,t)=>e+a*s[t],0))%11<2?0:11-t%11)===e[13]}(t)})(e)?a.clearErrors("document"):a.setError("document",{message:"Cpf ou CNPJ inv\xe1lido!"})},className:"w-full",contentClassName:"bg-[#E3E5EB]",customLeftElement:(0,t.jsx)(p.p6z,{color:"#28303F"})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"birthdate",title:"Data de nascimento",className:"w-full",maskFunction:Z.z,delayedChangeText:e=>(function(e,s){console.log("Person Info - Data recebida:",e);let[t,r,l]=e.split("/");console.log("Person Info - Partes da data:",{day:t,month:r,year:l});let o=new Date("".concat(l,"-").concat(r,"-").concat(t));console.log("Person Info - Data convertida:",o);let i=new Date;if(isNaN(o.getTime())){a.setError("birthdate",{message:"Data inv\xe1lida"});return}let n=i.getFullYear()-o.getFullYear(),c=i.getMonth()-o.getMonth();(c<0||0===c&&i.getDate()=18,m=n>=2;if(s.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)){if(!d){a.setError("birthdate",{message:"Voc\xea precisa ter mais que 18 anos"});return}}else if(s.match(/^(\d{2}).(\d{3}).(\d{3})\/(\d{4}).(\d{2})$/)){if(!m){a.setError("birthdate",{message:"Empresas n\xe3o podem possuir uma data de abertura menor que 2 anos"});return}}else if(!d){a.setError("birthdate",{message:"Voc\xea precisa ter mais que 18 anos"});return}a.clearErrors("birthdate")})(e,a.getValues().document),validator:A.Z.birth_date,contentClassName:"bg-[#E3E5EB]",customLeftElement:(0,t.jsx)(p.OS,{color:"#28303F"})})]}),(0,t.jsx)(l.A,{ref:o,variant:"shadow",isDisabled:!a.formState.isValid,onClick:a.handleSubmit(r),className:"semibold w-full mt-4 rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})]})},K=s(62464),Q=e=>{let{formMethods:a,onBack:s,onNext:r}=e,o=(0,g.useRef)(null),i=a.watch("terms_accepted");return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=o.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:()=>h().back(),children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua senha"})]}),(0,t.jsx)("p",{className:"text-center px-12 max-sm:px-4",children:"Crie uma senha forte e segura que voc\xea n\xe3o utiliza em outros sites. Utilize letras mai\xfasculas, min\xfasculas, n\xfameros e caracteres especiais."}),(0,t.jsxs)("div",{className:"w-full gap-6 flex flex-col overflow-auto max-h-[70vh]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"passwd",title:"Senha",label:"Crie sua senha",securityEntry:!0,className:"w-full",validator:A.Z.password,customLeftElement:(0,t.jsx)(d(),{alt:"",src:K.Z})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"confirm_passwd",title:"Sua senha novamente",label:"Senha novamente",securityEntry:!0,validator:A.Z.password,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:K.Z})})]}),(0,t.jsx)(l.A,{ref:o,isDisabled:!R||!i,onClick:a.handleSubmit(r),className:"semibold rounded-full enabled:shadow-md group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Confirmar"})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 mt-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-1",...a.register("terms_accepted")}),(0,t.jsxs)("p",{className:"text-sm text-neutral-600",children:["Li e aceito os"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/termos-de-uso.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos de uso"}),","," ",(0,t.jsx)("a",{href:"https://whitepaper.ribus.com.br/v1",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos do whitepaper"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/protocolo-ribus-wineskin-v2.01.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Whitepaper v2"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/privacidade-protecao-dados.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de privacidade"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/seguranca-informacao.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de seguran\xe7a"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/compliance.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de compliance"})," e"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/politica-de-identificacao-fatores-risco.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de identifica\xe7\xe3o de risco"}),". Declaro para os devidos fins que tenho capacidade financeira para adquirir os Ribus Token, e assumo total responsabilidade sob as informa\xe7\xf5es cadastrais, estando sujeito \xe0s penalidades previstas em lei (Art. 171 e 299 CP)"]})]})})]})},ee=e=>{let a=(0,f.useRouter)(),s=(0,y.cI)(),{abstractPost:c,isPosting:h}=(0,C.Z)({dontAuthCheck:!0}),{isOpen:w,onClose:N,onOpen:_}=(0,r.q)(),[A,S]=(0,g.useState)(0),F=(0,g.useRef)(null);(0,g.useEffect)(()=>{var e;if(null===(e=a.query)||void 0===e?void 0:e.session){let e=(0,E.o)(a.query.session);e&&(s.setValue("user_name",e.name),s.setValue("email",e.email),(0,k.Am)("Usu\xe1rio n\xe3o encontrado. Preencha o formul\xe1rio para criar sua conta!"))}},[a.query]),(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&w&&2===A&&(null===(a=F.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[w]);let q=[(0,t.jsx)(X,{onBack:e.onBack,onNext:()=>S(e=>e+1),formMethods:s}),(0,t.jsx)(Y,{onBack:()=>S(e=>e-1),onNext:()=>S(e=>e+1),formMethods:s}),(0,t.jsx)(Q,{onBack:()=>S(e=>e-1),onNext:s.handleSubmit(function(e){w||c("/users/signup",{checkbox:!0,name:e.full_name,phone:e.phone,birthdate:e.birthdate,document:e.document,confirm_email:e.email,email:e.email,passwd:e.passwd,confirm_passwd:e.confirm_passwd},e.cod_indication,!0).then(e=>{var a,s;201===e.status||200===e.status?_():400===e.status?k.Am.error(null===(a=e.data)||void 0===a?void 0:a.message):k.Am.error(null===(s=e.data)||void 0===s?void 0:s.message)})}),formMethods:s})];return(0,t.jsxs)("div",{className:"flex items-center justify-center w-[100vw] max-sm:w-full max-sm:max-w-full h-[100vh] overflow-auto",children:[(0,t.jsxs)("div",{className:(0,x.Z)("container mx-auto max-w-[500px] w-full flex-grow p-8 bg-white rounded-[12px] shadow-lg","max-sm:h-full max-sm:max-w-full max-sm:p-0"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer max-sm:hidden",onClick:()=>{0===A?a.back():S(A>0?A-1:0)},children:[(0,t.jsx)(p.x_l,{}),(0,t.jsx)("p",{children:"Voltar"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center max-sm:hidden",children:(0,t.jsx)(v.Z,{textClassName:"text-black text-4xl tracking-[-1px]"})}),(0,t.jsx)(b.M,{mode:"popLayout",children:(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},className:"w-full",children:q[A]},A)})]}),(0,t.jsx)(o.R,{size:"2xl",isOpen:w,hideCloseButton:!0,children:(0,t.jsx)(i.A,{className:"bg-white",children:()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.I,{className:"border-t-[12px] border-[#FF7B2E]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 p-4",children:[(0,t.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center",children:[(0,t.jsx)(d(),{alt:"",src:m.Z}),(0,t.jsx)(d(),{alt:"",src:u.Z,style:{objectFit:"cover"},className:"absolute top-14"})]}),(0,t.jsx)("p",{className:"text-black text-[18px] semibold text-center",children:"Bem-vindo(a) \xe0 Ribus!"}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-[16px]",children:"Verifique seu email para continuar com seu acesso."})}),(0,t.jsx)("div",{className:"flex gap-4 w-full",children:(0,t.jsx)(l.A,{ref:F,className:"rounded-full flex-grow semibold bg-[#FF7B2E]",onClick:()=>a.push("/login"),children:"Voltar ao login"})})]})})})})})]})},ea=e=>{var a,s,r,o,i;let n=(0,f.useRouter)(),{abstractPost:c,isPosting:d}=(0,C.Z)(),m=(0,g.useRef)(null),[u,h]=(0,g.useState)(!1),[v,b]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{var a;return(null===(a=n.query)||void 0===a?void 0:a.indication)&&(b(!0),e.formMethods.setValue("cod_indication",n.query.indication.toString())),window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=m.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}},[n.isReady]),(0,t.jsxs)("div",{className:"flex flex-col w-full max-sm:h-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:e.onBack,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua conta"})]}),(0,t.jsx)("p",{className:"text-center",children:"Vamos come\xe7ar com informa\xe7\xf5es sobre sua conta, preencha todos os campos."}),(0,t.jsxs)("div",{className:"flex flex-col mt-4 w-full",children:[(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"full_name",title:"Nome completo",label:"Seu nome completo",className:"w-full",validator:A.Z.full_name,customLeftElement:(0,t.jsx)(p.Xws,{color:"#28303F",className:"ml-1"})}),(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"email",title:"Seu email",onChangeText:function(e){e.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)||h(!1)},delayedChangeText:function(a){a.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)&&c("/users/email-validation",{email:a}).then(a=>{400===a.status?e.formMethods.setError("email",{message:"O email j\xe1 existe!",type:"value"}):(e.formMethods.clearErrors("email"),h(!0))}),h(!1)},label:"Insira seu email",className:"w-full",validator:A.Z.email,customLeftElement:(0,t.jsx)(J.ixJ,{color:"#28303F",className:"ml-1"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(U.K,{isSelected:v,onValueChange:b,children:"Adicionar indica\xe7\xe3o"}),(0,t.jsx)("div",{className:(0,x.Z)("mt-4 overflow-hidden transition-[height] ease-soft-spring duration-300",v?"h-[72px]":"h-0"),children:(0,t.jsx)(_.oH,{control:e.formMethods.control,errors:e.formMethods.formState.errors,name:"cod_indication",disabled:null!==(a=n.query)&&void 0!==a&&!!a.indication,label:"C\xf3digo de indica\xe7\xe3o",className:"w-full"})})]})]}),(0,t.jsx)("div",{className:"w-full flex justify-center mt-4",children:(0,t.jsx)(l.A,{ref:m,variant:"shadow",isDisabled:!e.formMethods.formState.isValid||(null===(r=e.formMethods.formState.errors)||void 0===r?void 0:null===(s=r.email)||void 0===s?void 0:s.type)==="value"||(null===(i=e.formMethods.formState.errors)||void 0===i?void 0:null===(o=i.email)||void 0===o?void 0:o.type)==="validate"||!u||d,onClick:e.formMethods.handleSubmit(e.onNext),className:"semibold w-full rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})})]})},es=s(46980),et=e=>{let{formMethods:a,onBack:s,onNext:r}=e,{abstractGet:o}=(0,C.Z)(),i=(0,g.useRef)(null),[n,c]=(0,g.useState)([]),[d,m]=(0,g.useState)(),u=new Date;return(0,g.useEffect)(()=>(o("/countries").then(e=>{if(200===e.status){let a=e.data.data.map(e=>({value:e.id,label:e.nacionality,num_code:e.num_code}));c(()=>a)}}),window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=i.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:s,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Dados pessoais"})]}),(0,t.jsx)("p",{className:"text-center",children:"Agora, precisamos de alguns detalhes pessoais para configurar seu perfil"}),(0,t.jsxs)("div",{className:"flex flex-col mt-8",children:[(0,t.jsx)(_.lq,{control:a.control,errors:a.formState.errors,name:"nationality",validators:{required:"Informe seu pa\xeds de origem"},options:n,onChange:e=>{console.log("value: ",e);let a=n.find(a=>a.value===e.value);a&&m(()=>a)},title:"Pa\xeds de origem",className:"mb-2",titleClass:"semibold ml-1",placeholder:"Selecionar nacionalidade"}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"phone",title:"Telefone celular",label:"(00) 0 0000-0000",className:"w-full",validator:{required:"Informe seu n\xfamero de telefone"},customLeftElement:(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)(p.DNl,{color:"#28303F",className:"ml-1"})})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"document",title:"Passaporte",maskFunction:es.G,validator:A.Z.passport,className:"w-full",contentClassName:"bg-[#E3E5EB]",customLeftElement:(0,t.jsx)(p.p6z,{color:"#28303F"})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"birthdate",title:"Data de nascimento",className:"w-full",label:"MM/DD/AAAA",maskFunction:Z.z,delayedChangeText:function(e){console.log("Foreign Person Info - Data recebida:",e);let[s,t,r]=e.split("/");console.log("Foreign Person Info - Partes da data:",{day:s,month:t,year:r});let l=new Date("".concat(r,"-").concat(t,"-").concat(s));if(console.log("Foreign Person Info - Data convertida:",l),isNaN(l.getTime())){a.setError("birthdate",{message:"Data inv\xe1lida"});return}let o=u.getFullYear()-l.getFullYear(),i=u.getMonth()-l.getMonth();(i<0||0===i&&u.getDate()=18?a.clearErrors("birthdate"):a.setError("birthdate",{message:"Voc\xea precisa ter mais que 18 anos"})},validator:A.Z.foreign_birth_date,contentClassName:"bg-[#E3E5EB]",customLeftElement:(0,t.jsx)(p.OS,{color:"#28303F"})})]}),(0,t.jsx)(l.A,{ref:i,variant:"shadow",isDisabled:!a.formState.isValid,onClick:a.handleSubmit(r),className:"semibold w-full mt-4 rounded-full group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Continuar"})})]})},er=e=>{let{formMethods:a,onBack:s,onNext:r}=e,o=(0,g.useRef)(null),i=a.watch("terms_accepted");return(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&(null===(a=o.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[]),(0,t.jsxs)("div",{className:"flex flex-col w-full",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-4",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:()=>h().back(),children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Crie sua senha"})]}),(0,t.jsx)("p",{className:"text-center px-12 max-sm:px-4",children:"Crie uma senha forte e segura que voc\xea n\xe3o utiliza em outros sites. Utilize letras mai\xfasculas, min\xfasculas, n\xfameros e caracteres especiais."}),(0,t.jsxs)("div",{className:"w-full gap-6 flex flex-col overflow-auto max-h-[70vh]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"passwd",title:"Senha",label:"Crie sua senha",securityEntry:!0,className:"w-full",validator:A.Z.password,customLeftElement:(0,t.jsx)(d(),{alt:"",src:K.Z})}),(0,t.jsx)(_.oH,{control:a.control,errors:a.formState.errors,name:"confirm_passwd",title:"Sua senha novamente",label:"Senha novamente",securityEntry:!0,validator:A.Z.password,className:"w-full",customLeftElement:(0,t.jsx)(d(),{alt:"",src:K.Z})})]}),(0,t.jsx)(l.A,{ref:o,isDisabled:!R||!i,onClick:a.handleSubmit(r),className:"semibold rounded-full enabled:shadow-md group px-6 bg-[#FF7B2E] min-h-[45px] disabled:bg-[#E3E5EB]",children:(0,t.jsx)("p",{className:"semibold text-[16px] group-disabled:text-[#8C8F99]",children:"Confirmar"})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 mt-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-1",...a.register("terms_accepted")}),(0,t.jsxs)("p",{className:"text-sm text-neutral-600",children:["Li e aceito os"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/termos-de-uso.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos de uso"}),","," ",(0,t.jsx)("a",{href:"https://whitepaper.ribus.com.br/v1",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"termos do whitepaper"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/protocolo-ribus-wineskin-v2.01.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Whitepaper v2"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/privacidade-protecao-dados.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de privacidade"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/seguranca-informacao.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de seguran\xe7a"}),","," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/compliance.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de compliance"})," e"," ",(0,t.jsx)("a",{href:"https://ribusdb.s3.amazonaws.com/politicas/politica-de-identificacao-fatores-risco.pdf",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"pol\xedtica de identifica\xe7\xe3o de risco"}),". Declaro para os devidos fins que tenho capacidade financeira para adquirir os Ribus Token, e assumo total responsabilidade sob as informa\xe7\xf5es cadastrais, estando sujeito \xe0s penalidades previstas em lei (Art. 171 e 299 CP)"]})]})})]})},el=e=>{let a=(0,f.useRouter)(),s=(0,y.cI)(),{abstractPost:c,isPosting:h}=(0,C.Z)({dontAuthCheck:!0}),{isOpen:w,onClose:N,onOpen:_}=(0,r.q)(),[A,S]=(0,g.useState)(0),F=(0,g.useRef)(null);(0,g.useEffect)(()=>{var e;if(null===(e=a.query)||void 0===e?void 0:e.session){let e=(0,E.o)(a.query.session);e&&(s.setValue("user_name",e.name),s.setValue("email",e.email),(0,k.Am)("Usu\xe1rio n\xe3o encontrado. Preencha o formul\xe1rio para criar sua conta!"))}},[a.query]),(0,g.useEffect)(()=>(window.addEventListener("keydown",e=>{var a;"Enter"===e.key&&w&&2===A&&(null===(a=F.current)||void 0===a||a.click())}),()=>{window.removeEventListener("keydown",()=>{})}),[w]);let q=[(0,t.jsx)(ea,{onBack:e.onBack,onNext:()=>S(e=>e+1),formMethods:s}),(0,t.jsx)(et,{onBack:()=>S(e=>e-1),onNext:()=>S(e=>e+1),formMethods:s}),(0,t.jsx)(er,{onBack:()=>S(e=>e-1),onNext:s.handleSubmit(function(e){w||c("/users/signup",{checkbox:!0,name:e.full_name,phone:e.phone,birthdate:e.birthdate,document:e.document,confirm_email:e.email,country_id:e.nationality.value,email:e.email,passwd:e.passwd,confirm_passwd:e.confirm_passwd},e.cod_indication,!0).then(e=>{201===e.status||200===e.status?_():400===e.status?k.Am.error(e.data.message):k.Am.error(e.data)})}),formMethods:s})];return(0,t.jsxs)("div",{className:"flex items-center justify-center w-[100vw] max-sm:w-full max-sm:max-w-full h-[100vh] overflow-auto",children:[(0,t.jsxs)("div",{className:(0,x.Z)("container mx-auto max-w-[500px] w-full flex-grow p-8 bg-white rounded-[12px] shadow-lg","max-sm:h-full max-sm:max-w-full max-sm:p-0"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer max-sm:hidden",onClick:()=>{0===A?a.back():S(A>0?A-1:0)},children:[(0,t.jsx)(p.x_l,{}),(0,t.jsx)("p",{children:"Voltar"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center max-sm:hidden",children:(0,t.jsx)(v.Z,{textClassName:"text-black text-4xl tracking-[-1px]"})}),(0,t.jsx)(b.M,{mode:"popLayout",children:(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},className:"w-full",children:q[A]},A)})]}),(0,t.jsx)(o.R,{size:"2xl",isOpen:w,hideCloseButton:!0,children:(0,t.jsx)(i.A,{className:"bg-white",children:()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.I,{className:"border-t-[12px] border-[#FF7B2E]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 p-4",children:[(0,t.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center",children:[(0,t.jsx)(d(),{alt:"",src:m.Z}),(0,t.jsx)(d(),{alt:"",src:u.Z,style:{objectFit:"cover"},className:"absolute top-14"})]}),(0,t.jsx)("p",{className:"text-black text-[18px] semibold text-center",children:"Bem-vindo(a) \xe0 Ribus!"}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-[16px]",children:"Verifique seu email para continuar com seu acesso."})}),(0,t.jsx)("div",{className:"flex gap-4 w-full",children:(0,t.jsx)(l.A,{ref:F,className:"rounded-full flex-grow semibold bg-[#FF7B2E]",onClick:()=>a.push("/login"),children:"Voltar ao login"})})]})})})})})]})},eo=e=>{let[a,s]=(0,g.useState)(0),[r,o]=(0,g.useState)("brazilian"),i=[(0,t.jsx)(()=>(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer max-sm:hidden",onClick:e.onBack,children:[(0,t.jsx)(p.x_l,{}),(0,t.jsx)("p",{children:"Voltar"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center max-sm:hidden",children:(0,t.jsx)(v.Z,{textClassName:"text-black text-4xl tracking-[-1px]"})}),(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-2",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:e.onBack,children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Selecione sua nacionalidade"})]}),(0,t.jsx)("p",{className:"text-center",children:"Selecione a nacionalidade do seu cadastro"}),(0,t.jsxs)("div",{className:"flex max-sm:flex-col justify-center gap-6",children:[(0,t.jsxs)("div",{className:(0,x.Z)("flex flex-col justify-center border-2 items-center min-w-[230px] min-h-[250px] rounded-[12px] select-none cursor-pointer","brazilian"===r&&"bg-primary"),onClick:()=>o("brazilian"),children:[(0,t.jsx)(O._gB,{size:80,className:"text-neutral-light-12"}),(0,t.jsx)("p",{className:"bold text-[20px] text-neutral-light-12",children:"Brasileiro"})]}),(0,t.jsxs)("div",{className:(0,x.Z)("flex flex-col justify-center border-2 items-center min-w-[230px] min-h-[250px] rounded-[12px] select-none cursor-pointer","foreign"===r&&"bg-primary"),onClick:()=>o("foreign"),children:[(0,t.jsx)(d(),{alt:"",src:W,width:60}),(0,t.jsx)("p",{className:"bold text-[20px] text-neutral-light-12",children:"Estrangeiro"})]})]}),(0,t.jsx)(l.A,{className:"rounded-full text-[18px] bg-primary bold disabled:bg-neutral-light-5 h-[50px]",onClick:()=>{console.log("nationality: ",r," tab: ",a),"brazilian"===r?s(1):"foreign"===r&&s(2)},children:"Confirmar"})]}),{}),(0,t.jsx)(ee,{onBack:()=>s(0)}),(0,t.jsx)(el,{onBack:()=>s(0)})];return(0,t.jsx)("div",{children:(0,t.jsx)(b.M,{mode:"popLayout",children:(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},children:i[a]},a)})})},ei=()=>{let e=(0,f.useRouter)(),{isOpen:a,onClose:s,onOpen:c}=(0,r.q)(),[h,y]=(0,g.useState)(0),[k,E]=(0,g.useState)(),C=(0,g.useRef)(null);(0,g.useEffect)(()=>{let e=e=>{if("Enter"===e.key&&a&&2===h){var s;null===(s=C.current)||void 0===s||s.click()}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a,h]);let _=[(0,t.jsx)(()=>(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer max-sm:hidden",onClick:()=>{0===h?e.back():y(h>0?h-1:0)},children:[(0,t.jsx)(p.x_l,{}),(0,t.jsx)("p",{children:"Voltar"})]}),(0,t.jsx)("div",{className:"w-full flex justify-center max-sm:hidden",children:(0,t.jsx)(v.Z,{textClassName:"text-black text-4xl tracking-[-1px]"})}),(0,t.jsxs)("div",{className:"flex items-center justify-center max-sm:mb-2",children:[(0,t.jsx)("div",{className:"hidden max-sm:block",onClick:()=>e.back(),children:(0,t.jsx)(p.x_l,{})}),(0,t.jsx)("p",{className:"text-center text-[#1F2026] semibold text-[32px] mt-8 max-sm:text-[20px] fira-sans max-sm:mt-0 max-sm:flex-auto",children:"Escolha o tipo de conta"})]}),(0,t.jsx)("p",{className:"text-center",children:"Selecione uma dentre as duas op\xe7\xf5es para continuar o cadastro"}),(0,t.jsxs)("div",{className:"flex max-sm:flex-col justify-center gap-6",children:[(0,t.jsxs)("div",{className:(0,x.Z)("flex flex-col justify-center border-2 items-center min-w-[230px] min-h-[250px] rounded-[12px] select-none cursor-pointer","natural"===k&&"bg-primary"),onClick:()=>E("natural"),children:[(0,t.jsx)(d(),{alt:"",src:w}),(0,t.jsx)("p",{className:"bold text-[20px] text-neutral-light-12",children:"Pessoa f\xedsica"}),(0,t.jsx)("p",{className:"medium",children:"Cadastro individual"})]}),(0,t.jsxs)("div",{className:(0,x.Z)("flex flex-col justify-center border-2 items-center min-w-[230px] min-h-[250px] rounded-[12px] select-none cursor-pointer","legal"===k&&"bg-primary"),onClick:()=>E("legal"),children:[(0,t.jsx)(d(),{alt:"",src:N}),(0,t.jsx)("p",{className:"bold text-[20px] text-neutral-light-12",children:"Pessoa jur\xeddica"}),(0,t.jsx)("p",{className:"medium text-center",children:"Cadastro para empresas"})]})]}),(0,t.jsx)(l.A,{className:"rounded-full text-[18px] bg-primary bold disabled:bg-neutral-light-5 h-[50px]",isDisabled:!k,onClick:()=>{"natural"===k?y(1):"legal"===k&&y(2)},children:"Confirmar"})]}),{},"select"),(0,t.jsx)(eo,{onBack:()=>y(0)},"person"),(0,t.jsx)(T,{onBack:()=>y(0)},"legal")];return(0,t.jsxs)("div",{className:"flex items-center justify-center w-[100vw] h-[100vh] overflow-hidden",children:[(0,t.jsx)("div",{className:(0,x.Z)("container mx-auto max-w-fit w-full flex-grow p-8 bg-white rounded-[12px] shadow-lg","max-sm:overflow-auto max-sm:h-full max-sm:max-w-full"),children:(0,t.jsx)(b.M,{mode:"popLayout",children:(0,t.jsx)(j.E.div,{initial:{x:20,opacity:0},animate:{x:0,opacity:1},exit:{x:-20,opacity:0},transition:{duration:.15},children:_[h]},h)})}),(0,t.jsx)(o.R,{size:"2xl",isOpen:a,hideCloseButton:!0,children:(0,t.jsx)(i.A,{className:"bg-white",children:()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.I,{className:"border-t-[12px] border-[#FF7B2E]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 p-4",children:[(0,t.jsxs)("div",{className:"relative w-full h-full flex items-center justify-center",children:[(0,t.jsx)(d(),{alt:"",src:m.Z}),(0,t.jsx)(d(),{alt:"",src:u.Z,style:{objectFit:"cover"},className:"absolute top-14"})]}),(0,t.jsx)("p",{className:"text-black text-[18px] semibold text-center",children:"Bem-vindo(a) \xe0 Ribus!"}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-[16px]",children:"Verifique seu email para continuar com seu acesso."})}),(0,t.jsx)("div",{className:"flex gap-4 w-full",children:(0,t.jsx)(l.A,{ref:C,className:"rounded-full flex-grow semibold bg-[#FF7B2E]",onClick:()=>e.push("/login"),children:"Voltar ao login"})})]})})})})})]})}},20572:function(e,a,s){"use strict";s.d(a,{q:function(){return i}});var t=s(11086),r=s(99373),l=s(27794),o=s(67294);function i(e={}){let{id:a,defaultOpen:s,isOpen:i,onClose:n,onOpen:c,onChange:d=()=>{}}=e,m=(0,l.W)(c),u=(0,l.W)(n),[x,f]=(0,r.z)(i,s||!1,d),h=(0,o.useId)(),p=a||h,v=void 0!==i,b=(0,o.useCallback)(()=>{v||f(!1),null==u||u()},[v,u]),j=(0,o.useCallback)(()=>{v||f(!0),null==m||m()},[v,m]),g=(0,o.useCallback)(()=>{(x?b:j)()},[x,j,b]);return{isOpen:!!x,onOpen:j,onClose:b,onOpenChange:g,isControlled:v,getButtonProps:(e={})=>({...e,"aria-expanded":x,"aria-controls":p,onClick:(0,t.t)(e.onClick,g)}),getDisclosureProps:(e={})=>({...e,hidden:!x,id:p})}}}},function(e){e.O(0,[3365,4885,4838,5733,8127,4143,5675,7739,4691,798,1716,6697,2888,9774,179],function(){return e(e.s=76276)}),_N_E=e.O()}]);