1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3683],{93683:function(i,d,a){a.r(d),a.d(d,{default:function(){return e}});var j=a(85893),f=a(45697),c=a.n(f),k=a(91212),l=a(19232),b=a(74231),g=a(20890),m=b.Ry().shape({firstname:b.Z_().required("Este campo es requerido").matches(/^[a-zA-Z0-9Ã-ú ]+$/i,"Solo se permiten valores alfanum\xe9ricos"),lastname:b.Z_().required("Este campo es requerido").matches(/^[a-zA-Z0-9Ã-ú ]+$/i,"Solo se permiten valores alfanum\xe9ricos"),email:b.Z_().email("Escriba una direcci\xf3n de correo v\xe1lida").required("Este campo es requerido"),mobilephone:b.Z_().required("Este campo es requerido").matches(/^(?=.*[0-9])[+()0-9 ]+$/i,"Solo se permiten n\xfameros de tel\xe9fonos v\xe1lidos"),city:b.Z_().required("Este campo es requerido").matches(/^[a-zA-Z0-9Ã-ú ]+$/i,"Solo se permiten valores alfanum\xe9ricos"),country:b.Z_().required("Debe seleccionar un pa\xeds").oneOf((0,g.n)(),"Solo se permite un c\xf3digo de dos letras v\xe1lido"),website:b.Z_().notRequired()}),h={formUrl:c().string.isRequired,onSuccess:c().func,onError:c().func};function e(a){var b=a.formUrl,c=a.onSuccess,d=a.onError;return(0,j.jsx)(k.ZP,{initialValues:{firstname:"",lastname:"",email:"",mobilephone:"",city:"",country:"",website:""},onSubmit:function(a,e){var f=e.setSubmitting,g=e.resetForm;""===a.website&&(0,k.R2)(b,a,{setSubmitting:f,onSuccess:function(){g(),c()},onError:function(a){d()}})},validationSchema:m,validateOnMount:!0,children:function(c){var e=c.handleChange,g=c.handleBlur,f=c.isSubmitting,a=c.errors,b=c.touched,d=c.values,h=c.isValid,i=c.setFieldValue,l=c.validateForm,m=b.country&& void 0!==a.country;return(0,j.jsxs)("div",{className:"flex flex-col w-full min-h-full space-y-6",children:[(0,j.jsxs)("div",{className:"flex-1 space-y-6",children:[(0,j.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"firstname",label:"Nombres",error:a.firstname,touched:b.firstname,children:(0,j.jsx)(k.p,{id:"firstname",name:"firstname",onChange:e,onBlur:g,value:d.firstname,disabled:f,error:a.firstname,touched:b.firstname,light:!1,required:!0})})}),(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"lastname",label:"Apellidos",error:a.lastname,touched:b.lastname,children:(0,j.jsx)(k.p,{id:"lastname",name:"lastname",onChange:e,onBlur:g,value:d.lastname,disabled:f,error:a.lastname,touched:b.lastname,light:!1,required:!0})})}),(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"email",label:"Correo electr\xf3nico",error:a.email,touched:b.email,children:(0,j.jsx)(k.MG,{id:"email",name:"email",onChange:e,onBlur:g,value:d.email,disabled:f,error:a.email,touched:b.email,light:!1,required:!0})})}),(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"mobilephone",label:"N\xfamero de tel\xe9fono m\xf3vil",error:a.mobilephone,touched:b.mobilephone,children:(0,j.jsx)(k.p,{id:"mobilephone",name:"mobilephone",onChange:e,onBlur:g,value:d.mobilephone,disabled:f,error:a.mobilephone,touched:b.mobilephone,light:!1,required:!0})})}),(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"city",label:"Ciudad",error:a.city,touched:b.city,children:(0,j.jsx)(k.p,{id:"city",name:"city",onChange:e,onBlur:g,value:d.city,disabled:f,error:a.city,touched:b.city,light:!1,required:!0})})}),(0,j.jsx)(k.cw,{children:(0,j.jsx)(k.NI,{htmlFor:"country",label:"Pa\xeds/regi\xf3n",error:a.country,touched:b.country,children:(0,j.jsx)(k.n8,{id:"country",name:"country",onChange:e,onBlur:g,setFieldValue:i,validateForm:l,value:d.country,disabled:f,error:a.country,hasError:m,light:!1,required:!0})})})]}),(0,j.jsx)("input",{className:"h",autoComplete:"off",type:"text",id:"website",name:"website",placeholder:"Sitio web",onChange:e,value:d.website}),(0,j.jsx)(k.iN,{children:(0,j.jsx)(k.Ow,{label:"Descargar programa",submitting:f,disabled:!1===h||""!==d.website})})]}),(0,j.jsx)("div",{className:"flex flex-col space-y-4",children:(0,j.jsxs)("div",{className:"text-xs leading-5 text-gray-700",children:["Estamos comprometidos con su privacidad. AIBES utiliza la informaci\xf3n que nos proporciona para contactarlo sobre nuestro contenido, productos y servicios relevantes. Puede darse de baja de estas comunicaciones en cualquier momento. Para obtener m\xe1s informaci\xf3n, consulte nuestra\xa0",(0,j.jsx)("a",{className:"font-medium underline",href:"https://www.aibes.org/legal/privacidad/",children:"Pol\xedtica de privacidad"}),"."]})})]})}})}e.defaultProps={onSuccess:function(){return null},onError:function(){return(0,l.cB)("\n Ha ocurrido un error cuando intentamos registrar tu solicitud.\n Por favor int\xe9ntalo nuevamente.\n ")}},e.propTypes=h}}]) 2//# sourceMappingURL=3683.f04b5085ea8fc449.js.map
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.