1"use strict";(self.webpackChunkmuy_coach=self.webpackChunkmuy_coach||[]).push([[5432],{9671(e,l,t){t.d(l,{A:()=>s});t(65043);const s=t.p+"static/media/map.4f5254472e14152315cf31a6311cd4ac.svg"},23049(e,l,t){t.d(l,{A:()=>s});t(65043);const s=t.p+"static/media/phone.07086633803d61b25e3f7270f2b1c216.svg"},26213(e,l,t){t.d(l,{A:()=>x});var s=t(65043),r=t(79456),a=t(14194),c=t(96982),i=t(17392),o=t(30279),n=t(74802),d=t(70579);function x(){const e=(0,r.wA)(),l=(0,r.d4)(e=>e.alert);return(0,s.useEffect)(()=>{null!==l&&void 0!==l&&l.status&&setTimeout(()=>{e((0,c.sr)())},5e3)},[l]),(0,d.jsx)(o.A,{in:null===l||void 0===l?void 0:l.status,children:(0,d.jsx)(a.A,{severity:null!==l&&void 0!==l&&l.status?null===l||void 0===l?void 0:l.type:"success",action:(0,d.jsx)(i.A,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{e((0,c.sr)())},children:(0,d.jsx)(n.A,{fontSize:"inherit"})}),sx:{mx:2},children:null===l||void 0===l?void 0:l.msg})})}},37131(e,l,t){t.d(l,{A:()=>a});var s=t(59662),r=t(70579);const a=(0,s.A)((0,r.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos")},45432(e,l,t){t.r(l),t.d(l,{default:()=>M});var s=t(89379),r=t(65043),a=t(62582),c=t(91688),i=t(79456),o=t(28083),n=t(46946),d=t(81637),x=t(63516),m=t(73033),u=t(41137),h=t(688),p=t(45984),b=t(96982),f=t(93132),j=t(26213),N=t(37131),w=t(61364),g=t(24648),v=t(24516),y=t(78049),A=t(23049),E=t(56600),C=t(90618),I=t(723),S=t(9671),O=t(91755),k=t(41020),T=t(549),R=t(58407),D=t(70579);const Y=function(e){const{open:l,setOpen:t,setCountry:s}=e,[a,c]=(0,r.useState)(T.N);return(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(k.Ay,{open:Boolean(l),anchorEl:l,onClose:()=>{t(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{maxHeight:300,minWidth:"40ch"}},children:(0,D.jsxs)("div",{className:"w-full",children:[(0,D.jsxs)("div",{className:"relative w-full px-2.5 mt-2.5",children:[(0,D.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-5 pointer-events-none",children:(0,D.jsx)("img",{src:R.A,alt:"",className:"w-5 h-auto"})}),(0,D.jsx)("input",{type:"search",className:"text-sm text-blue py-1.5 bg-white border border-blue placeholder-blue rounded-full w-full pl-10 p-1",placeholder:"Buscar ubicaci\xf3n",onChange:e=>{const l=e.target.value,t=T.N.filter(e=>e.name.toLowerCase().includes(l.toLowerCase()));c(t)}})]}),(0,D.jsx)("div",{className:"w-full h-60 mt-4 overflow-y-auto",children:a.map(e=>(0,D.jsx)("button",{className:"flex w-full py-1.5 px-2.5 hover:bg-gray",onClick:()=>{s(e.name),t(null),c(T.N)},children:(0,D.jsx)("p",{className:"text-base text-light mx-2",children:null===e||void 0===e?void 0:e.name})}))})]})})})};var L=t(10243),_=t(27329);const M=(0,c.y)(function(){const e=(0,i.wA)(),{t:l}=(0,u.Bd)(),t=(0,i.d4)(e=>e.alert),[c,k]=(0,r.useState)(!1),[T,R]=(0,r.useState)(null),[M,V]=(0,r.useState)(null),[F,z]=(0,r.useState)(null),P="[email protected]",[U,q]=(0,r.useState)(!0),Q=(0,x.Wx)({initialValues:{name:"",lastName:"",email:"",phone:"",jobOcuppation:"",password:"",repassword:"",isCoach:!0,language:"es-MX",countryCode:"",country:""},validationSchema:m.Ik({name:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),lastName:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),email:m.Yj().email("Correo no valido").required(l("SYSTEM.VALIDATION_REQUIRED")),phone:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),jobOcuppation:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")).nullable(),password:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),repassword:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),isCoach:m.zM().required(l("SYSTEM.VALIDATION_REQUIRED")),language:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),countryCode:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED")),country:m.Yj().required(l("SYSTEM.VALIDATION_REQUIRED"))}),onSubmit:async l=>{k(!0);const{validEmail:t}=(await(0,_.A$)({email:l.email})).data;if(t){let t=(0,s.A)({},l);delete t.repassword,e((0,f.GT)(t)).unwrap().then(e=>{k(!1)}).catch(l=>{k(!1),e((0,b.nm)({msg:"Ocurrio un error al procesar la solicitud",type:"error"}))})}else k(!1),q(!1)}});return(0,D.jsxs)("section",{className:"h-screen",children:[(0,D.jsx)("div",{className:"h-full",children:(0,D.jsxs)("div",{className:"flex flex-wrap sm:flex-nowrap h-auto g-6 text-gray-800 bg-slate",children:[(0,D.jsxs)("div",{className:"w-1/1 p-4 md:w-3/6 md:px-8 md:pt-36 bg-gradient-to-r from-blue-secondary to-blue",children:[(0,D.jsx)("div",{className:"flex justify-center md:justify-start",children:(0,D.jsx)("div",{className:"py-4",children:(0,D.jsx)("img",{src:g,className:"w-96 md:w-56 lg:w-60"})})}),(0,D.jsxs)("div",{className:"flex items-center justify-center md:justify-start gap-4 py-6 w-full text-center flex-wrap",children:[(0,D.jsx)("div",{className:"flex items-start after:flex-1 after:mt-6 after:mx-2",children:(0,D.jsx)("h1",{className:"text-white md:text-2xl lg:text-4xl text-bold",children:"Gestiona"})}),(0,D.jsxs)("div",{className:"flex items-center after:flex-1 after:mt-6 after:mx-2",children:[(0,D.jsx)("div",{className:"text-white text-4xl -ml-2.5",children:"\u2022"}),(0,D.jsx)("h1",{className:"text-white md:text-2xl lg:text-4xl text-bold ml-2",children:"Conecta"})]}),(0,D.jsxs)("div",{className:"flex items-center after:flex-1 after:mt-6 after:mx-2",children:[(0,D.jsx)("div",{className:"text-white text-4xl -ml-2.5",children:"\u2022"}),(0,D.jsx)("h1",{className:"text-white md:text-2xl lg:text-4xl text-bold ml-2",children:"Monitorea"})]}),(0,D.jsxs)("div",{className:"flex items-center after:flex-1 after:mt-6 after:mx-2",children:[(0,D.jsx)("div",{className:"text-white text-4xl -ml-2.5",children:"\u2022"}),(0,D.jsx)("h1",{className:"text-white md:text-2xl lg:text-4xl text-bold ml-2",children:"Escala"})]})]}),(0,D.jsx)("div",{className:"flex items-stretch py-2 w-full",children:(0,D.jsx)("div",{className:"flex-1 flex justify-center md:justify-start",children:(0,D.jsx)("h1",{className:"text-white text-light italic text-2xl",children:"La plataforma profesional de coaching"})})})]}),(0,D.jsxs)("div",{className:"w-full md:w-3/6 md:pr-32 px-4 md:px-14 pt-10 md:pt-12",children:[(0,D.jsx)("h1",{className:"text-blue text-medium text-2xl mb-8 text-bold text-center",children:"Crear una cuenta"}),(null===t||void 0===t?void 0:t.status)&&(0,D.jsx)(j.A,{message:t.msg,type:t.type}),(0,D.jsxs)("form",{onSubmit:Q.handleSubmit,children:[(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:v.A,alt:"",className:"w-5 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"text",placeholder:"Nombre(s)*"},Q.getFieldProps("name")),{},{className:"".concat(Q.errors.name?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")})),Q.errors.name?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.name}):null]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:v.A,alt:"",className:"w-5 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"text",placeholder:"Apellidos*"},Q.getFieldProps("lastName")),{},{className:"".concat(Q.errors.lastName?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")})),Q.errors.lastName?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.lastName}):null]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:y.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"email",placeholder:"Email*"},Q.getFieldProps("email")),{},{className:"".concat(Q.errors.email||!U?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")})),Q.errors.email?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.email}):null,U?null:(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:"El correo electr\xf3nico ya esta en uso"})]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:S.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsxs)("button",{onClick:e=>{V(e.currentTarget)},className:"".concat(Q.errors.country?"border border-red":""," flex justify-between bg-gray text-base text-bold rounded-lg w-full p-2.5 w-full mr-2"),children:[(0,D.jsx)("p",{className:"".concat(Q.values.country?"text-black":"text-blue"," text-base text-bold"),children:Q.values.country?Q.values.country:"Ubicaci\xf3n*"}),(0,D.jsx)("img",{src:I.A,alt:"",className:"w-7 h-auto ml-3"})]}),Q.errors.country?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.country}):null]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:A.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"flex w-full",children:[(0,D.jsxs)("button",{onClick:e=>{z(e.currentTarget)},className:"".concat(Q.errors.countryCode?"border border-red":""," flex justify-between bg-gray text-base text-bold rounded-lg block w-full p-2.5 w-24 mr-2"),children:[(0,D.jsxs)("p",{className:"text-base text-bold",children:[" ",Q.values.countryCode?Q.values.countryCode:""," "]}),(0,D.jsx)("img",{src:I.A,alt:"",className:"w-6 h-auto ml-1"})]}),(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"text",placeholder:"Tel\xe9fono*"},Q.getFieldProps("phone")),{},{className:"".concat(Q.errors.phone?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")}))]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:E.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsxs)("button",{onClick:e=>{R(e.currentTarget)},className:"".concat(Q.errors.jobOcuppation?"border border-red":""," flex justify-between bg-gray text-base text-bold rounded-lg w-full p-2.5 w-full mr-2"),children:[(0,D.jsxs)("p",{className:"text-base text-bold",children:[" ",Q.values.jobOcuppation," "]}),(0,D.jsx)("img",{src:I.A,alt:"",className:"w-7 h-auto ml-3"})]}),Q.errors.jobOcuppation?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.jobOcuppation}):null]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:C.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"password",placeholder:"Contrase\xf1a*"},Q.getFieldProps("password")),{},{className:"".concat(Q.errors.password?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")})),Q.errors.password?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.password}):null]})]}),(0,D.jsxs)("div",{className:"flex w-full my-5",children:[(0,D.jsx)("div",{className:"text-left items-start p-2",children:(0,D.jsx)("img",{src:C.A,alt:"",className:"w-7 h-auto text-blue"})}),(0,D.jsxs)("div",{className:"relative w-full",children:[(0,D.jsx)("input",(0,s.A)((0,s.A)({type:"password",placeholder:"Confirma tu Contrase\xf1a*"},Q.getFieldProps("repassword")),{},{className:"".concat(Q.errors.repassword?"border border-red placeholder-red":""," bg-gray text-base text-bold placeholder-blue rounded-lg block w-full p-2.5")})),Q.errors.repassword?(0,D.jsx)("p",{className:"p-2 text-sm text-red",children:Q.errors.repassword}):null]})]}),(0,D.jsx)("div",{className:"flex justify-between items-center mb-6",children:(0,D.jsxs)("div",{className:"form-group form-check",children:[(0,D.jsx)(o.A,{}),(0,D.jsx)("a",{href:"https://muycoach.com/terminos-y-condiciones/",target:"_blank",className:"cursor-pointer",children:(0,D.jsx)("label",{className:"form-check-label inline-block text-blue cursor-pointer underline",for:"exampleCheck2",children:"He le\xeddo y acepto los t\xe9rminos y condiciones de uso"})})]})}),(0,D.jsx)(n.A,{my:4,children:(0,D.jsx)("button",{type:"submit",className:"text-wihte text-medium text-lg bg-blue hover:bg-hover text-white py-2 px-4 roun
1ded-full w-full",children:c?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(d.A,{color:"inherit",sx:{mx:2},size:15}),"Registrando..."]}):(0,D.jsx)(D.Fragment,{children:"Crear cuenta"})})}),(0,D.jsx)("div",{className:"flex items-center my-8 before:flex-1 before:border-t before:border-zinc before:mt-0.5 after:flex-1 after:border-t after:border-zinc after:mt-0.5",children:(0,D.jsx)("p",{className:"text-center text-xl text-blue mx-4 mb-0",children:"O"})}),(0,D.jsx)(n.A,{my:4,children:(0,D.jsxs)("button",{onClick:()=>{e((0,f.tL)()).unwrap().then(e=>{k(!1)}).catch(l=>{k(!1),e((0,b.nm)({msg:"Ocurrio un error al procesar la solicitud",type:"error"}))})},type:"button",className:"w-full text-zinc-800 rounded-full border border-zinc text-xl px-5 py-2 text-center inline-flex justify-center",children:[(0,D.jsx)("img",{className:"mr-5 ml-1 w-6 h-6",src:w,alt:"google"}),"Inicia Sesi\xf3n con Google"]})}),(0,D.jsx)("div",{className:"flex justify-between items-center my-9",children:(0,D.jsx)(a.N_,{to:"/",children:(0,D.jsxs)("p",{className:"text-blue text-medium hover:text-blue-700 underline focus:text-blue-700 active:text-blue-800 duration-200 transition ease-in-out",children:[(0,D.jsx)(N.A,{sx:{color:"#0D5FA6",width:20}}),"Regresar"]})})}),(0,D.jsxs)("p",{className:"text-sm text-blue text-center mt-2 mb-6",children:["\xbfNecesitas ayuda? Escr\xedbenos a"," ",(0,D.jsx)("a",{href:"mailto:".concat(P),className:"underline",children:P})]})]})]})]})}),(0,D.jsx)(h.A,{id:"menu-ocuppation",anchorEl:T,open:Boolean(T),onClose:()=>{R(null)},PaperProps:{style:{maxHeight:300,minWidth:"40ch"}},children:L.Z.map(e=>(0,D.jsx)(p.A,{onClick:()=>{R(null),Q.setFieldValue("jobOcuppation",e)},children:(0,D.jsx)("p",{className:"text-base text-medium",children:e})}))}),(0,D.jsx)(Y,{open:M,setOpen:V,setCountry:e=>{Q.setFieldValue("country",e)}}),(0,D.jsx)(O.A,{open:F,setOpen:z,setCode:e=>{Q.setFieldValue("countryCode",e)}})]})})},61364(e,l,t){e.exports=t.p+"static/media/google.e12914ad8afda3f6f2e8.png"},90618(e,l,t){t.d(l,{A:()=>s});t(65043);const s=t.p+"static/media/lock.08236c67d0c9e44a0140b0119069cf3e.svg"},91755(e,l,t){t.d(l,{A:()=>o});var s=t(65043),r=t(41020),a=t(549),c=t(58407),i=t(70579);const o=function(e){const{open:l,setOpen:t,setCode:o}=e,[n,d]=(0,s.useState)(a.N);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.Ay,{open:Boolean(l),anchorEl:l,onClose:()=>{t(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{maxHeight:300,height:300,width:270,maxWidth:270}},children:(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsxs)("div",{className:"relative w-full px-2.5 mt-2.5",children:[(0,i.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-5 pointer-events-none",children:(0,i.jsx)("img",{src:c.A,alt:"",className:"w-5 h-auto"})}),(0,i.jsx)("input",{type:"search",className:"text-sm text-blue py-1.5 bg-white border border-blue placeholder-blue rounded-full w-full pl-10 p-1",placeholder:"Buscar c\xf3digo",onChange:e=>{const l=e.target.value,t=a.N.filter(e=>e.name.toLowerCase().includes(l.toLowerCase())||e.dial_code.includes(l));d(t)}})]}),(0,i.jsx)("div",{className:"w-full h-60 mt-4 overflow-y-auto",children:n.map(e=>(0,i.jsxs)("button",{className:"flex w-full py-1.5 px-2.5 hover:bg-gray",onClick:()=>{o(e.dial_code),t(null),d(a.N)},children:[(0,i.jsx)("p",{className:"text-base text-bold w-12",children:e.dial_code}),(0,i.jsx)("p",{className:"text-base text-light mx-2",children:null===e||void 0===e?void 0:e.name})]}))})]})})})}}}]); 2//# sourceMappingURL=5432.b0945f42.chunk.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.