PageSourceSearch

https://mobig.mx/build/assets/Step2Curp-CkQsk4Xi.js

js mobig.mx collected 2026-10-02 22:34:34 UTC 4,660 bytes, 1 lines download raw bytes

1import{r as o,j as e}from"./app-C9nm_a_f.js";import{p as u}from"./api-ChEaS82v.js";import{C as p}from"./credit-card-C3S5XvW_.js";import{c as h}from"./createLucideIcon-DPfDODVi.js";import"./app-Bz1QbZCQ.js";import"./clientFlashStore-ooQFrdsc.js";import"./LoginController-B83tSgMb.js";const g=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],b=h("CircleAlert",g);function P({curp:s,personType:r,onChangeCurp:c,onSelectPersonType:l,onPfaeValidated:i}){const[d,n]=o.useState(!1),m=/^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,t=o.useMemo(()=>s.length!==18?!1:m.test(s),[s]),x=async()=>{if(l("pfae"),!(!i||!t)){n(!0);try{const a=await u("/api/vinculacion/persona-fisica/validate",{curp:s},!1);i({data:a.data??{is_registered:!1,pfae:!1,line_count:0},ok:a.ok,messages:a.messages,status:a.status,statusText:a.statusText})}finally{n(!1)}}};return e.jsx("div",{className:"mx-auto max-w-6xl",children:e.jsx("div",{className:"mb-8",children:e.jsx("div",{className:"mx-auto w-full max-w-2xl",children:e.jsxs("div",{children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h2",{className:"text-primary mb-2 font-semibold font-monserrat text-[20px]",children:"Identificación - Persona Física"}),e.jsx("p",{className:"text-gray-600",children:"Proporciona tu CURP para validar tu información."})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"curp",className:"mb-2 flex items-center gap-2 text-gray-700",children:[e.jsx(p,{className:"h-4 w-4"}),"CURP"]}),e.jsx("input",{id:"curp",type:"text",value:s,onChange:a=>c(a.target.value.toUpperCase()),placeholder:"ABCD850101HDFRRL09",maxLength:18,className:`w-full rounded-xl border-2 px-4 py-3 uppercase transition-colors focus:border-primary focus:outline-none ${s.length===18&&!t?"border-red-500":"border-gray-200"}`}),e.jsxs("div",{className:"mt-1 text-sm text-gray-500",children:[s.length,"/18 caracteres"]}),s.length===18&&!t&&e.jsx("p",{className:"mt-1 text-sm text-red-600",children:"CURP inválida"})]}),t&&e.jsx("div",{className:"rounded-xl border-2 border-blue-300 bg-blue-50 p-4",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(b,{className:"mt-1 h-5 w-5 text-blue-600"}),e.jsxs("div",{className:"w-full",children:[e.jsx("h3",{className:"mb-2 text-blue-900",children:"¿Deseas continuar como PFAE?"}),e.jsx("p",{className:"mb-4 text-sm text-blue-800",children:"Las Personas Físicas con Actividad Empresarial pueden registrar más líneas telefónicas. Se requiere Constancia de Situación Fiscal."}),e.jsx("div",{className:"flex justify-center",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[e.jsx("button",{type:"button",onClick:x,disabled:d,className:`rounded-lg px-4 py-2 transition-all ${r==="pfae"?"bg-primary text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:"Sí, soy PFAE"}),e.jsx("button",{type:"button",onClick:()=>l("regular"),className:`rounded-lg px-4 py-2 transition-all ${r==="fregular"?"bg-primary text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`,children:"No, continuar como PF regular"})]})}),e.jsx("div",{className:"w-full",children:r==="pfae"&&e.jsxs("div",{className:"mt-4 rounded-xl border border-blue-200 bg-white/70 p-4 text-sm text-blue-900 shadow-sm",children:[e.jsx("p",{children:"Para continuar como Persona Física con Actividad Empresarial, deberás acudir c
1on tu documentación a:"}),e.jsxs("div",{className:"mt-3 rounded-lg border border-blue-100 bg-blue-50/70 p-3 text-blue-900",children:[e.jsx("p",{className:"font-semibold",children:"Centro de Atención Mobig"}),e.jsx("p",{className:"mt-1 text-blue-800",children:"Calle Montes Urales 215, Colonia Lomas de Chapultepec III Sección, Alcaldía Miguel Hidalgo, C.P. 11000, Ciudad de México"}),e.jsxs("a",{href:"https://maps.app.goo.gl/ebHBmTRcgoPxsUrB9",target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-sm font-semibold text-white transition hover:bg-blue-700",children:["Ver ubicación en Maps",e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("path",{d:"M7 17 17 7"}),e.jsx("path",{d:"M7 7h10v10"})]})]})]})]})})]})]})})]})]})})})})}export{P as default};

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.