(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4732],{70975:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/registro",function(){return i(52950)}])},97970:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var r=i(85893),t=i(9008),o=i.n(t);function l(e){let{title:n,description:i,image:t,url:l,children:s}=e;return(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,r.jsx)("title",{children:n}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/icon.svg"}),(0,r.jsx)("link",{rel:"canonical",href:"dpago.com.py"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:title",content:n}),t&&(0,r.jsx)("meta",{property:"og:image",content:t}),l&&(0,r.jsx)("meta",{property:"og:url",content:l}),(0,r.jsx)("meta",{property:"og:site_name",content:"dpago"}),i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:i}),(0,r.jsx)("meta",{name:"og:description",content:i})]}),s]})}},53804:function(e,n,i){"use strict";i.d(n,{Z:function(){return d}});var r=i(85893),t=i(4453),o=i(7754),l=i(85156),s=i.n(l),a=i(54739);function d(e){let{children:n}=e,[i]=(0,t.a)(a.Z.MAX_WIDTH_426);return(0,r.jsx)(o.M,{h:"100vh",background:i?"linear-gradient(to top, #00b7b1a3, #00b7b1a7), url('/images/login_image.jpg')":s().white,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",children:n})}},5190:function(e,n){"use strict";n.Z={COMMERCE_UNVERIFIED:"El comercio no se encentra verificado",PLAN_EXPIRED:"Plan del comercio expirado",MAX_TRANSACTIONS_COUNT:"El comercio alcanz\xf3 el m\xe1ximo n\xfamero de transacciones al mes",INVALID_TOKEN:"Ocurri\xf3 un error inesperado",INVALID_DATA:"Datos enviados invalidos",USER_BLOCKED:"Comercio bloqueado",POS_DISABLED:"POS deshabilitado",POS_LOGUED_IN_ANOTHER_DEVICE:"POS no disponible",COMMECE_BLOCKED:"Comercio bloqueado",ACCESS_DENIED:"Acceso denegado",ICORRECT_CODE:"C\xf3digo incorrecto",COMMERCE_NOT_BANK:"El comercio no cuenta con datos bancarios",COMMERCE_NOT_ENV:"El comercio no cuenta con informaci\xf3n",COMMERCE_ENV_NO_EXISTS:"Ocurri\xf3 un error inesperado",COMMERCE_NOT_EXISTS:"El comercio no existe",CUSTOMER_NOT_EXISTS:"El cliente no existe",POS_NOT_EXISTS:"El POS no existe",PRODUCT_NOT_EXISTS:"El producto no existe",INVALID_CODE:"C\xf3digo invalido",TRANSACTION_NOT_EXISTS:"La transacci\xf3n no existe",SERVER_ERROR:"Error del servidor",LINK_NOT_EXISTS:"El link no existe",MIN_AMOUNT:"Monto m\xedmino no superado",PLATFORM_NOT_EXISTS:"No existe la plataforma",TRANSACTION_REFERENCE_REPEAT:"Ya existe una transacci\xf3n con la misma referencia",USER_NOT_EXISTS:"El usuario no existe",USER_REPEAT:"Ya existe un usuario registrado"}},52950:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return P}});var r=i(85893),t=i(97970),o=i(74508),l=i(4453),s=i(70385),a=i(23100),d=i(39849),c=i(70654),u=i(96177),p=i(28129),m=i(93863),x=i(43775),g=i(89154),f=i(88911),h=i(204),_=i(29222),E=i(87536),v=i(89583),j=i(85156),I=i.n(j),N=i(54739);function b(e){var n,i,t,j,b,y,S,O;let{loading:R=!1,onSubmit:w}=e,[T]=(0,l.a)(N.Z.MAX_WIDTH_426),{register:C,handleSubmit:k,watch:A,formState:{errors:L}}=(0,E.cI)(),[M,D]=(0,s.k)(),[G,z]=(0,s.k)();return(0,r.jsxs)(a.xu,{as:"form",onSubmit:k(w),children:[(0,r.jsxs)(d.M,{columns:2,spacing:4,children:[(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Nombre"}),(0,r.jsx)(p.I,{type:"text",...C("name",{required:!0}),placeholder:"Ej: Jose",isInvalid:(null==L?void 0:null===(n=L.name)||void 0===n?void 0:n.type)==="required",background:I().white})]}),(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Apellido"}),(0,r.jsx)(p.I,{type:"text",...C("lastname",{required:!0}),placeholder:"Ej: L\xf3pez",isInvalid:(null==L?void 0:null===(i=L.lastname)||void 0===i?void 0:i.type)==="required",background:I().white})]})]}),(0,r.jsxs)(c.NI,{marginTop:4,children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Email"}),(0,r.jsx)(p.I,{type:"email",...C("email",{required:!0}),placeholder:"Ej: example@mail.com",isInvalid:(null==L?void 0:null===(t=L.email)||void 0===t?void 0:t.type)==="required",background:I().white})]}),(0,r.jsxs)(d.M,{columns:2,spacing:4,marginTop:4,children:[(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Contrase\xf1a"}),(0,r.jsxs)(m.B,{children:[(0,r.jsx)(p.I,{type:M?"text":"password",...C("password",{required:!0}),placeholder:"",isInvalid:(null==L?void 0:null===(j=L.password)||void 0===j?void 0:j.type)==="required",background:I().white}),(0,r.jsx)(x.x,{children:(0,r.jsx)(g.h,{"aria-label":"Add to friends",icon:M?(0,r.jsx)(v.tgn,{color:"black",size:15}):(0,r.jsx)(v.dSq,{color:"black",size:15}),size:"xs",onClick:D.toggle})})]})]}),(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Confirmar contrase\xf1a"}),(0,r.jsxs)(m.B,{children:[(0,r.jsx)(p.I,{type:G?"text":"password",...C("confirm",{required:{value:!0,message:"Requerido"},validate:e=>e===A("password")||"No coincide"}),placeholder:"",isInvalid:null!=L&&!!L.confirm,background:I().white}),(0,r.jsx)(x.x,{children:(0,r.jsx)(g.h,{"aria-label":"Add to friends",icon:G?(0,r.jsx)(v.tgn,{color:"black",size:15}):(0,r.jsx)(v.dSq,{color:"black",size:15}),size:"xs",onClick:z.toggle})})]}),(null==L?void 0:null===(b=L.confirm)||void 0===b?void 0:b.message)&&(null==L?void 0:L.confirm.type)==="validate"&&(0,r.jsx)(c.Q6,{children:null==L?void 0:null===(y=L.confirm)||void 0===y?void 0:y.message})]})]}),(0,r.jsxs)(d.M,{columns:2,spacing:4,marginTop:4,children:[(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Tel\xe9fono"}),(0,r.jsx)(p.I,{type:"tel",...C("phone",{required:!0}),placeholder:"Ej: 0985024582",isInvalid:(null==L?void 0:null===(S=L.phone)||void 0===S?void 0:S.type)==="required",background:I().white})]}),(0,r.jsxs)(c.NI,{children:[(0,r.jsx)(u.l,{color:T?I().white:I().text,children:"Identificaci\xf3n"}),(0,r.jsx)(p.I,{type:"text",...C("ci",{required:!0}),placeholder:"Ej: 4105801",isInvalid:(null==L?void 0:null===(O=L.ci)||void 0===O?void 0:O.type)==="required",background:I().white})]})]}),(0,r.jsxs)(f.x,{marginTop:4,children:["Al registrarte est\xe1s aceptando todos nuestros"," ",(0,r.jsx)(o.r,{href:"https://dpago.com/terminos-condiciones",target:"_blank",rel:"noreferrer",color:"green",children:"T\xe9rminos y condiciones"}),"."]}),(0,r.jsx)(h.k,{justifyContent:"flex-end",marginBlock:8,children:(0,r.jsx)(_.z,{colorScheme:"blue",loadingText:"Registrando",isLoading:R,type:"submit",children:"Registrarse"})})]})}var y=i(53804),S=i(5190),O=i(39960),R=i(13403),w=i(73046),T=i(89898),C=i(29379),k=i(5902),A=i(41664),L=i.n(A),M=i(11163),D=i(22920),G=i(72729),z=i.n(G);function P(e){let{onSetUser:n}=e,i=(0,M.useRouter)(),[o,l]=(0,s.k)(),{f:d}=i.query,c=async e=>{try{l.on();let r=await R.Z.ironLogin(e);l.off(),n(r),i.push(O.Z.PAY_LIST+"?f=".concat(d))}catch(n){var r,t;l.off(),(0,w.H)("[LOGIN ERROR]: ",n);let e=null==n?void 0:null===(r=n.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.code;if(e){let n=S.Z;D.Am.error(n[e]||"Ocurri\xf3 un error inesperado");return}D.Am.error("Ocurri\xf3 un error inesperado")}},u=async e=>{try{if(o)return;if(l.on(),await R.Z.registerUser(e),d&&"POS"===d){c({email:e.email.toLowerCase(),password:e.password});return}l.off(),i.push("/auth/login"),D.Am.success("Registro exitoso, ya puedes iniciar sesi\xf3n.")}catch(i){var n,r;l.off(),(0,w.H)("[REGISTER ERROR]: ",i);let e=null==i?void 0:null===(n=i.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.code;if((0,w.PN)(e),e){let n=S.Z;D.Am.error(n[e]||"Ocurri\xf3 un error inesperado");return}D.Am.error("Ocurri\xf3 un error inesperado")}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.Z,{title:"Registro de usuario - Dpago",description:"Registrate en Dpago"}),(0,r.jsx)(y.Z,{children:(0,r.jsx)(C.Z,{size:"lg",overflow:"hidden",className:z().card,children:(0,r.jsx)(k.e,{padding:0,children:(0,r.jsxs)(h.k,{children:[(0,r.jsxs)(a.xu,{flex:"1",padding:8,children:[(0,r.jsx)(T.E,{src:"/images/logo.svg",alt:"logo",width:100,height:30,marginBottom:50,className:z().logo}),(0,r.jsx)(T.E,{src:"/images/logo_h.svg",alt:"logo",width:100,height:30,marginBottom:50,className:z().logo_white}),(0,r.jsx)(b,{loading:o,onSubmit:u}),(0,r.jsx)(h.k,{direction:"column",alignContent:"flex-end",children:(0,r.jsx)(L(),{href:O.Z.LOGIN,className:z().align_end,children:"Ya estoy registrado"})})]}),(0,r.jsx)(a.xu,{className:z().box_image,flex:"1",background:"linear-gradient(to top, #454ef83c, #454ef83c),url(/images/register_image.jpg)",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"})]})})})})]})}},72729:function(e){e.exports={primary:"#454df8",secondary:"#00b7b1",blueDark:"#003c74",warning:"#eed202",white:"#fff",black:"#282828",background:"#f0f0f0",gray:"#d2d3d5",grayDark:"#9b9b9d",danger:"#bb2124",success:"#2b3",card:"register_card__Xmswi",logo_white:"register_logo_white__cpoX1",align_end:"register_align_end__Bkm6M",logo:"register_logo__XKZLL",box_image:"register_box_image__hKe82"}},33951:function(e,n,i){"use strict";i.d(n,{XQ:function(){return t}});var r=i(25432);function t(e,n){return Array.isArray(e)?e.map(e=>null===e?null:n(e)):(0,r.Kn)(e)?Object.keys(e).reduce((i,r)=>(i[r]=n(e[r]),i),{}):null!=e?n(e):null}Object.freeze(["base","sm","md","lg","xl","2xl"])},93863:function(e,n,i){"use strict";i.d(n,{B:function(){return g},m:function(){return x}});var r=i(55227),t=i(92495),o=i(35059),l=i(91639),s=i(33179),a=i(51337),d=i(25432),c=i(87052),u=i(67294),p=i(85893),[m,x]=(0,r.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),g=(0,o.G)(function(e,n){let i=(0,l.jC)("Input",e),{children:r,className:o,...x}=(0,s.Lr)(e),g=(0,d.cx)("chakra-input__group",o),f={},h=(0,t.W)(r),_=i.field;h.forEach(e=>{var n,r;i&&(_&&"InputLeftElement"===e.type.id&&(f.paddingStart=null!=(n=_.height)?n:_.h),_&&"InputRightElement"===e.type.id&&(f.paddingEnd=null!=(r=_.height)?r:_.h),"InputRightAddon"===e.type.id&&(f.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(f.borderStartRadius=0))});let E=h.map(n=>{var i,r;let t=(0,c.o)({size:(null==(i=n.props)?void 0:i.size)||e.size,variant:(null==(r=n.props)?void 0:r.variant)||e.variant});return"Input"!==n.type.id?(0,u.cloneElement)(n,t):(0,u.cloneElement)(n,Object.assign(t,f,n.props))});return(0,p.jsx)(a.m.div,{className:g,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate"},"data-group":!0,...x,children:(0,p.jsx)(m,{value:i,children:E})})});g.displayName="InputGroup"},28129:function(e,n,i){"use strict";i.d(n,{I:function(){return c}});var r=i(74939),t=i(35059),o=i(91639),l=i(33179),s=i(51337),a=i(25432),d=i(85893),c=(0,t.G)(function(e,n){let{htmlSize:i,...t}=e,c=(0,o.jC)("Input",t),u=(0,l.Lr)(t),p=(0,r.Y)(u),m=(0,a.cx)("chakra-input",e.className);return(0,d.jsx)(s.m.input,{size:i,...p,__css:c.field,ref:n,className:m})});c.displayName="Input",c.id="Input"},43775:function(e,n,i){"use strict";i.d(n,{x:function(){return u}});var r=i(93863),t=i(51337),o=i(35059),l=i(25432),s=i(85893),a=(0,t.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),d=(0,o.G)(function(e,n){var i,t;let{placement:o="left",...l}=e,d=(0,r.m)(),c=d.field,u={["left"===o?"insetStart":"insetEnd"]:"0",width:null!=(i=null==c?void 0:c.height)?i:null==c?void 0:c.h,height:null!=(t=null==c?void 0:c.height)?t:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...d.element};return(0,s.jsx)(a,{ref:n,__css:u,...l})});d.id="InputElement",d.displayName="InputElement";var c=(0,o.G)(function(e,n){let{className:i,...r}=e,t=(0,l.cx)("chakra-input__left-element",i);return(0,s.jsx)(d,{ref:n,placement:"left",className:t,...r})});c.id="InputLeftElement",c.displayName="InputLeftElement";var u=(0,o.G)(function(e,n){let{className:i,...r}=e,t=(0,l.cx)("chakra-input__right-element",i);return(0,s.jsx)(d,{ref:n,placement:"right",className:t,...r})});u.id="InputRightElement",u.displayName="InputRightElement"},31708:function(e,n,i){"use strict";i.d(n,{r:function(){return l}});var r=i(35059),t=i(51337),o=i(85893),l=(0,r.G)(function(e,n){let{templateAreas:i,gap:r,rowGap:l,columnGap:s,column:a,row:d,autoFlow:c,autoRows:u,templateRows:p,autoColumns:m,templateColumns:x,...g}=e;return(0,o.jsx)(t.m.div,{ref:n,__css:{display:"grid",gridTemplateAreas:i,gridGap:r,gridRowGap:l,gridColumnGap:s,gridAutoColumns:m,gridColumn:a,gridRow:d,gridAutoFlow:c,gridAutoRows:u,gridTemplateRows:p,gridTemplateColumns:x},...g})});l.displayName="Grid"},39849:function(e,n,i){"use strict";i.d(n,{M:function(){return d}});var r=i(31708),t=i(35059),o=i(75119),l=i(34629),s=i(33951),a=i(85893),d=(0,t.G)(function(e,n){let{columns:i,spacingX:t,spacingY:d,spacing:c,minChildWidth:u,...p}=e,m=(0,o.F)(),x=u?(0,s.XQ)(u,e=>{let n=(0,l.LP)("sizes",e,"number"==typeof e?`${e}px`:e)(m);return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`}):(0,s.XQ)(i,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,a.jsx)(r.r,{ref:n,gap:c,columnGap:t,rowGap:d,templateColumns:x,...p})});d.displayName="SimpleGrid"}},function(e){e.O(0,[7209,9774,2888,179],function(){return e(e.s=70975)}),_N_E=e.O()}]);