1"use strict";(self.webpackChunk_unete_site=self.webpackChunk_unete_site||[]).push([[6607],{319:function(e,o,n){n.d(o,{$d:function(){return l},Ys:function(){return c},e1:function(){return s},xc:function(){return i},y2:function(){return r}});var t=n(7157);const a="identity_validation",r=e=>{let{iso:o,documentNumber:n}=e;return(0,t.nr)({url:`${a}/identificationDocument/validateDocumentNumber`,method:"post",data:{iso:o,documentNumber:n}})},s=(e,o)=>(0,t.nr)({url:`${a}/incode/onboarding-status`,method:"post",data:{interviewId:e},...o&&{signal:o}}),i=(e,o)=>(0,t.nr)({url:`${a}/incode/score`,method:"post",data:{interviewId:e},...o&&{signal:o}}),l=(e,o)=>(0,t.nr)({url:`${a}/incode/complete`,method:"post",data:{interviewId:e},...o&&{signal:o}}),c=e=>{let{name:o="",lastname:n="",mothersLastname:r="",birthDay:s="",birthMonth:i="",birthYear:l=""}=e;return(0,t.nr)({url:`${a}identificationDocument/generateRFC`,method:"post",data:{name:o,lastname:n,mothersLastname:r,birthDay:s,birthMonth:i,birthYear:l}})}},3525:function(e,o,n){n.r(o),n.d(o,{Head:function(){return b},default:function(){return j}});var t=n(9457),a=n(5862),r=n(2695),s=n(3214),i=n(6635),l=n(4285),c=n(6887),d=n(1011),u=n(699),m=n(2635),p=n(6422),h=n(8861),g=n(4041),v=n(4213),x=n(9488),C=n(528),T=n(319);var f=n(1085);const y={iso:r.h$.EC,documentType:"1"},b=()=>(0,f.jsx)(t.G$,{});r.Tf.reverse();var j=()=>{const{iso:e,documentType:o}=y,{0:n,1:b}=(0,g.useState)(""),{0:j,1:A}=(0,g.useState)((0,s.Sl)(e)),I=(0,c.lQ)(),{0:D,1:N}=(0,g.useState)(!1),{0:S,1:P}=(0,g.useState)({code:"",name:"",comeFrom:(0,s.UT)()}),E=(0,t.h5)(e),w=(e,o)=>{const n={flow:"Ãnete Belcorp - Registro",step:"Paso 1",section:"Datos personales",elementType:e,elementDescription:o,country:"Ecuador",comeFrom:S.comeFrom};(0,u.zXT)(n)},F=(e=>{let{iso:o}=e;const{0:n,1:t}=(0,g.useState)({value:"",isValid:!1});return{autofocus:!0,id:"textboxDocumentNumber",invalidText:{required:"Ingresa los 10 dÃgitos",format:"Ingresa los 10 dÃgitos"},labelText:"Número de Cédula",helperText:"(10 dÃgitos)",maxlength:10,name:"documentNumber",pattern:C.BV,placeholder:"",required:!0,validators:[{name:"format",validator:e=>C.LT.test(e.value)}],async onDelayedFieldValidation(e){let{detail:n}=e,t="",a=!1;try{const{data:e}=await(0,T.y2)({iso:o,documentNumber:n.value});e.isValid?a=!0:t="El número de Cédula ingresado es incorrecto, ingresa otro"}catch(r){t=r.message}n.onAfterAsyncValidation({asyncProcessingSuccess:a,invalidTextToShow:t})},onInputBlur(e){const{value:n,invalid:t}=e.target;if(!t&&n)(0,u.nET)(u.W$I[o]||u.W$I.CO);else if(t){const e={...u.AkO};(0,u.nET)(e)}},onInputChange(e){const{value:o}=e.target;t((e=>({...e,value:o})))},onValidating(e){const{invalid:o}=e.detail;t((e=>({...e,isValid:!o})))},...n}})({iso:e}),k=(0,c.kn)(),B=(0,c.LF)(),O=(0,c.RW)(),_=(0,c.OV)({maxAge:75}),z=(0,c.lH)(),M=(0,c.Ot)({iso:e,documentType:o,document:F}),R=(0,d.m)();new u.j0T({iso:e,dimensionFlag:!0,pageFlag:!0}).init({...u.EQM,code:"Paso 1 - Datos personales"});const L=async n=>{let{detail:t}=n;w("Conversion event","Continuar");const a={iso:e,documentType:o,documentNumber:F.value,firstName:k.firstName.trim(),middleName:k.middleName.trim(),firstSurname:t.firstSurname,secondSurname:t.secondSurname,birthDate:_.toISO(t.birthday),gender:t.gender,urlOnlineStore:t.onlineStore,email:t.email,cellphone:t.cellphone,phoneNumber:"same"===(null==I?void 0:I.value)?t.cellphone:"other"===(null==I?void 0:I.value)?t.whatsappPhone:void 0,referrerConsultantCode:S.code,referrerName:S.name,comeFrom:S.comeFrom,state:"",city:"",address:"",geolocationId:0,geographicUnit4Id:0,whatsAppFlag:t.agreeWithReceivePublicity};(0,m.Z)({...u.vOe.FORM,src:u.vOe.FORM.src+a.documentNumber}),N(!0);try{await v.default.recaptcha.execute("6Leh5-EUAAAAAFQ3gOX0KhvyPh5ras1RxJ4-AL2k",{action:"contactForm"}),await R.submit(a)}catch{E.run((()=>L({detail:t})))}finally{N(!1)}};return(0,g.useEffect)((()=>{(0,u.zXT)({event:"page_view",page_title:"Paso 1 - Datos personales",page_location:"/ec/registro/datos-personales",flow:"Ãnete Belcorp - Registro",country:"Ecuador",comeFrom:S.comeFrom})}),[]),(0,g.useEffect)((()=>{(async()=>{const o=await(0,s.Kd)(e);A((e=>({...e,...o}
1)))})()}),[]),(0,f.jsxs)(a.A,{step:1,title:"Datos personales",iso:e,formTitle:(0,f.jsx)(f.Fragment,{children:"¡Hola! Comencemos tu registro en LâBEL, ÃSIKA y Cyzone"}),showAvatar:!1,children:[(0,f.jsxs)(h.cL,{onFormSubmit:L,children:[(0,f.jsx)("fieldset",{children:(0,f.jsxs)(h.m1,{children:[(0,f.jsx)(h.sk,{children:(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h.uO,{...F,onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Número de cédula"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Número de cédula"}))}})})}),(0,f.jsx)(h.sk,{children:(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h._D,{...k,labelText:"Nombres",onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Nombres"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Nombres"}))}})})}),(0,f.jsxs)(h.sk,{children:[(0,f.jsx)(h.Mr,{sizeXs:"12",sizeLg:"6",children:(0,f.jsx)(h._D,{...B,onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Primer Apellido"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Primer Apellido"}))}})}),(0,f.jsx)(h.Mr,{sizeXs:"12",sizeLg:"6",children:(0,f.jsx)(h._D,{...O,onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Segundo Apellido"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Segundo Apellido"}))}})})]}),(0,f.jsx)(h.sk,{children:(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h._D,{..._,labelText:"Fecha de nacimiento",name:"birthday",placeholder:"dÃa / mes / año",onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Fecha de nacimiento"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Fecha de nacimiento"}))}})})}),(0,f.jsx)(h.sk,{children:(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h.qS,{...z,labelText:"Sexo:",radiogroupItems:r.Tf,onRadiogroupChange:()=>{(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Sexo"})}})})})]})}),(0,f.jsx)("fieldset",{children:(0,f.jsx)(h.m1,{className:"ub-pt-24",children:(0,f.jsxs)(h.sk,{children:[(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(i.A,{iso:e,documentType:o,document:F,showNewBanner:!0,bannerBorder:0,placeholder:"0 999 999 999",onInputBlur:e=>{var o,n,t;
1const a=(null==e||null===(o=e.target)||void 0===o||null===(n=o.value)||void 0===n||null===(t=n.trim)||void 0===t?void 0:t.call(n))||"";b(a);const{invalid:r,value:s}=e.target;!r&&s&&(w("Campo Completado","Número de celular"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Número de celular"}))}})}),j.WHATSAPP_OTP_VERIFICATION_BY_DEFAULT&&(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h.uP,{...I,name:"whatsappOptions",labelText:"Número de WhatsApp",invalidText:I.invalidText,radiogroupWhatsappItems:I.radiogroupWhatsappItems,onRadiogroupChange:I.onRadioChange,alignment:"vertical",children:(0,f.jsx)("div",{slot:"whatsapp-phone",children:I.isOther&&(0,f.jsx)(x.A,{iso:e,documentType:o.value,document:F,cellphone:n})})})}),(0,f.jsx)(h.Mr,{size:"12",children:(0,f.jsx)(h.uO,{...M,placeholder:"[email protected]",onInputBlur:e=>{const{invalid:o,value:n}=e.target;!o&&n&&(w("Campo Completado","Correo electrónico"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Información personal",value:"Correo electrónico"}))}})})]})})}),(0,f.jsx)(p.A,{iso:e,maxlength:7,setReferrerConsultant:P,addHelperText:!0,removeLegendStyle:!0,switchlabel:" | ",toggleStyle:{"--height":"32px",minWidth:"64px","--background-checked":"#038356"},legendMargin:"24px",onToggleChange:()=>{w("Button","¿Te recomendó una consultora / socia empresaria?"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"¿Te recomendó una consultora / socia empresaria?",value:"Si/No"})}}),(0,f.jsx)(l.A,{iso:e,joinTermsAndPolicies:!0,showBackButton:!1,submitText:"Comenzar",isUnete40:!0,entelcoOnClick:()=>{w("Button","¿Necesitas ayuda?"),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Seleccionar botón",value:"¿Necesitas ayuda?"})},onCheckboxChange:e=>{const o={agreeWithTermsAndConditions:"Términos y Condiciones de Ãnete y Somos Belcorp.",agreeWithReceivePublicity:"EnvÃo de Publicidad"}[e.name];w("Checkbox",o),(0,u.nET)({codeCategory:"Paso 1 - Datos personales",codeAction:"Seleccionar botón",value:o})},onLinkClick:e=>{let{textContent:o}=e;w("Button",o)}})]}),D&&(0,f.jsx)(t.Rh,{title:"Espera un momento..."}),(0,f.jsx)(t.Vw,{...E.props})]})}}}]);
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.