PageSourceSearch

https://www.ecomdroptv.com/assets/AuthScreen-8P8u8IBN.js

js ecomdroptv.com collected 2026-10-02 01:28:11 UTC 38,057 bytes, 50 lines download raw bytes

1import{j as e,h as fe,a3 as ye,M as be,T as ve,W as je}from"./index-D_T1XJ3U.js";import{r as s,d as we}from"./vendor-react-Bxgxa9T6.js";import{C as Ce}from"./CieloLumy-Br0FDAhQ.js";import{N as ke,a as Se}from"./NucleoLumy-C4o1wLT-.js";import{a as Fe}from"./PlanesSection-n8rukr3T.js";import"./Pricing-DHmyOZ1T.js";import"./periodo-plan-NC4xkV1W.js";import"./Banderas-D2N83YVf.js";function Ee({text:o="Continuar con Google",next:r="/",openOutsideFrame:l=!1}){const n=()=>{const p=new URL("/api/auth/google/start",window.location.origin);r&&p.searchParams.set("next",r),l?window.open(p.toString(),"_blank","noopener,noreferrer"):window.location.href=p.toString()};return e.jsxs("button",{type:"button",onClick:n,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:10,padding:"11px 16px",background:"var(--bg-card, #fff)",border:"1px solid var(--border, #d1d5db)",borderRadius:8,fontSize:14,fontWeight:600,fontFamily:"inherit",color:"var(--text-primary, #1f2937)",cursor:"pointer",transition:"all 0.15s"},onMouseEnter:p=>{p.currentTarget.style.boxShadow="0 1px 3px rgba(0,0,0,0.08)"},onMouseLeave:p=>{p.currentTarget.style.boxShadow="none"},children:[e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24","aria-hidden":!0,children:[e.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),e.jsx("span",{children:o})]})}const ae="https://challenges.cloudflare.com/turnstile/v0/api.js";function Ae(){return typeof window>"u"||window.turnstile?Promise.resolve():(window.__turnstileScriptLoading||(window.__turnstileScriptLoading=new Promise((o,r)=>{const l=document.querySelector(`script[src^="${ae}"]`);if(l){l.addEventListener("load",()=>o()),l.addEventListener("error",()=>r(new Error("Turnstile script load error")));return}const n=document.createElement("script");n.src=`${ae}?render=explicit`,n.async=!0,n.defer=!0,n.onload=()=>o(),n.onerror=()=>r(new Error("Turnstile script load error")),document.head.appendChild(n)})),window.__turnstileScriptLoading)}function _e({onToken:o,action:r,theme:l="auto",resetKey:n=0}){const p=s.useRef(null),u=s.useRef(null),a="0x4AAAAAADFzbdWpwYXsQE_u",[x,g]=s.useState("loading");return s.useEffect(()=>{o(""),g("loading");let y=!1;return console.log("[turnstile] cargando script con sitekey",a.slice(0,12)+"..."),Ae().then(()=>{if(!y){if(!p.current){console.warn("[turnstile] containerRef es null"),g("error");return}if(!window.turnstile){console.warn("[turnstile] window.turnstile no disponible"),g("error");return}try{u.current=window.turnstile.render(p.current,{sitekey:a,theme:l,action:r,callback:d=>{console.log("[turnstile] token recibido"),o(d),g("ready")},"error-callback":()=>{console.warn("[turnstile] error-callback"),o(""),g("error")},"expired-callback":()=>{console.log("[turnstile] token expiró"),o("")}}),console.log("[turnstile] render OK widgetId",u.current),g("ready")}catch(d){console.error("[turnstile] error al renderizar:",d==null?void 0:d.message),g("error")}}}).catch(d=>{console.warn("[turnstile] script load failed:",d==null?void 0:d.message),o(""),g("error")}),()=>{if(y=!0,u.current&&window.turnstile){try{window.turnstile.remove(u.current)}catch{}u.current=null}}},[a,r,l,n]),e.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",minHeight:70,marginTop:4},children:[e.jsx("div",{ref:p,style:{width:"100%",display:"flex",justifyContent:"center"}}),x==="loading"&&e.jsx("div",{style:{fontSize:11,color:"var(--text-muted, #94A3B8)",marginTop:6,fontStyle:"italic"},children:"Cargando verificación anti-bot…"}),x==="error"&&e.jsx("div",{style:{fontSize:11,color:"#B45309",marginTop:6,textAlign:"center",padding:"4px 8px",background:"rgba(245,158,11,0.10)",borderRadius:6},children:"No se pudo completar la verificación. Recarga la página para intentarlo de nuevo."})]})}const H={email_password_required:"Completá email y contraseña",password_too_short:"La contraseña debe tener al menos 8 caracteres",invali
1d_email:"Email inválido",disposable_email:"No aceptamos correos temporales. Usa tu correo personal o de trabajo.",email_typo_suggestion:"Detectamos un posible typo en tu email.",invalid_phone:"Número de teléfono inválido",phone_required:"El teléfono es obligatorio (lo usamos para alertas y comprobantes por WhatsApp).",email_taken:"Ese email ya está registrado",invalid_credentials:"Email o contraseña incorrectos",user_blocked:"Tu cuenta fue suspendida por uso fuera de los términos de servicio. Si crees que es un error, contacta a soporte.",account_suspended:"Tu cuenta fue suspendida por comportamiento sospechoso. Si crees que es un error, contacta a soporte.",login_failed:"No se pudo iniciar sesión",register_failed:"No se pudo crear la cuenta",captcha_failed:"Verificación anti-bot falló. Recarga la página y vuelve a intentar.",too_many_signups:"Se crearon muchas cuentas desde tu conexión. Espera unos minutos o entra desde los datos de tu celular.",too_many_attempts:"Demasiados intentos seguidos. Espera unos minutos y vuelve a intentarlo.",state_mismatch:"La sesión de Google expiró. Vuelve a intentar.",token_exchange_failed:"No se pudo completar el login con Google. Reinténtalo.",invalid_google_token:"Google rechazó el token. Reinténtalo.",google_email_not_verified:"Tu email de Google no está verificado.",callback_error:"Error en el login con Google. Reinténtalo.",missing_code:"Google no devolvió código de autorización.",access_denied:"Cancelaste el login con Google.",google_login_not_available:"El acceso con Google está disponible solo para clientes con plan activo. Crea tu cuenta con email y activa un plan para entrar con Google.",google_login_requires_paid_plan:"El acceso con Google está disponible solo para clientes con plan activo. Por ahora ingresa con tu email y contraseña."},Y="remembered_email_v1",O=[{code:"57",flag:"🇨🇴",name:"Colombia"},{code:"52",flag:"🇲🇽",name:"México"},{code:"54",flag:"🇦🇷",name:"Argentina"},{code:"56",flag:"🇨🇱",name:"Chile"},{code:"51",flag:"🇵🇪",name:"Perú"}
1,{code:"593",flag:"🇪🇨",name:"Ecuador"},{code:"58",flag:"🇻🇪",name:"Venezuela"},{code:"591",flag:"🇧🇴",name:"Bolivia"},{code:"595",flag:"🇵🇾",name:"Paraguay"},{code:"598",flag:"🇺🇾",name:"Uruguay"},{code:"506",flag:"🇨🇷",name:"Costa Rica"},{code:"507",flag:"🇵🇦",name:"Panamá"},{code:"503",flag:"🇸🇻",name:"El Salvador"},{code:"502",flag:"🇬🇹",name:"Guatemala"},{code:"504",flag:"🇭🇳",name:"Honduras"},{code:"505",flag:"🇳🇮",name:"Nicaragua"},{code:"1",flag:"🇺🇸",name:"EE.UU. / Canadá"},{code:"34",flag:"🇪🇸",name:"España"}];function Qe({initialMode:o="login"}={}){const r=we(),{login:l,register:n,loginWithGoogleToken:p}=fe(),u=o,a=u==="login",x=(()=>{try{return new URL(window.location.href).searchParams.get("shopify_install")||""}catch{return""}})(),g=(()=>{try{return new URL(window.location.href).searchParams.get("shopify_data_request")||""}catch{return""}})(),y=(()=>{try{const t=new URL(window.location.href),i=new URLSearchParams;for(const c of["shopify_install","shopify_data_request","shop","host","embedded"]){const b=t.searchParams.get(c);b&&i.set(c,b)}const h=i.toString();return h?`?${h}`:""}catch{return x?`?shopify_install=${encodeURIComponent(x)}`:g?`?shopify_data_request=${encodeURIComponent(g)}`:""}})(),d=ye(),m=`${d?"/shopify/app/":"/"}${a?"registro":"login"}${y}`,L=(()=>{try{const t=new URL(window.location.href).searchParams.get("plan");return t==="starter"||t==="pro"||t==="max"?t:null}catch{return null}})(),T=(()=>{try{return localStorage.getItem(Y)||""}catch{return""}})(),[C,B]=s.useState(u==="login"?T:"");s.useEffect(()=>{u!=="login"&&T&&B(t=>t===T?"":t)},[u]);const[v,K]=s.useState(""),[_,le]=s.useState(""),[A,Q]=s.useState(!1),[X,de]=s.useState(""),[Z,ce]=s.useState("57"),[I,pe]=s.useState(""),[W,Me]=s.useState(()=>{try{return new URL(window.location.href).searchParams.get("ref")||""}catch{return""}}),[Ue,N]=s.useState(null),[S,P]=s.useState(()=>{try{return new URL(window.location.href).searchParams.get("comunidad")||""}catch{return""}}),[f,D]=s.useState(null),[J,M]=s.useState([]),[ue,z]=s.useState(!1),[F,U]=s.useState(null),[ee,ge]=s.useState(!1),[te]=s.useState(!0),[k,R]=s.useState(!1),[oe,j]=s.useState(null),[ne,$]=s.useState(null),[w,re]=s.useState(""),[he,me]=s.useState(0),[q,G]=s.useState(null);s.useEffect(()=>{const t=new URL(window.location.href),i=new URLSearchParams(t.hash.replace(/^#/,"")),h=i.get("google_token")||t.searchParams.get("google_token"),c=i.get("google_error")||t.searchParams.get("google_error");h?(i.delete("google_token"),t.searchParams.delete("google_token"),t.hash=i.toString()?`#${i.toString()}`:"",window.history.replaceState({},"",t.toString()),p(h).catch(b=>{j(H[b==null?void 0:b.message]||"No se pudo completar el login con Google")})):c&&(t.searchParams.delete("google_error"),window.history.replaceState({},"",t.toString()),j(H[c]||`Error de Google: ${c}`))},[]),s.useEffect(()=>{const t=W.trim();if(!t){N(null);return}const i=new AbortController;return fetch(`/api/referrals/validate/${encodeURIComponent(t)}`,{signal:i.signal}).then(h=>h.json()).then(h=>{h!=null&&h.valid?N(h.inviterName||"un usuario"):N(null)}).catch(()=>{}),()=>i.abort()},[W]),s.useEffect(()=>{if(a){U(null);return}const t=C.trim();if(!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){U(null);return}const i=new AbortController,h=setTimeout(()=>{fetch(`/api/auth/email-available?email=${encodeURIComponent(t)}`,{signal:i.signal}).then(c=>c.json()).then(c=>U({available:!!(c!=null&&c.available),valid:!!(c!=null&&c.valid)})).catch(()=>{})},500);return()=>{clearTimeout(h),i.abort()}},[C,a]),s.useEffect(()=>{const t=S.trim();if(!t){D(null),M([]);return}const i=new AbortController,h=setTimeout(()=>{Promise.all([fetch(`/api/communities/check/${encodeURIComponent(t)}`,{signal:i.signal}).then(c=>c.json()).catch(()=>null),fetch(`/api/communities/search?q=${encodeURIComponent(t)}`,{signal:i.signal}).then(c=>c.json()).catch(()=>null)]).then(([c,b])=>{D({exists:!!(c!=null&&c.exists),displayName:c==null?void 0:c.displayName}),M((b==null?void 0:b.results)||[])})},250);return()=>{clearTimeout(h),i.abort()}},[S]);const xe=async t=>{if(t.preventDefault(),R(!0),j(null),$(null),!a){if(v!==_){j("Las contraseñas no coinciden"),R(!1);return}if(!ee){j("Debes aceptar los Términos y Condiciones para continuar"),R(!1);return}}try{a?(await l(C,v,w,te),$("¡Operación exitosa!")):(await n({email:C,password:v,name:X,phoneCountryCode:I?Z:void 0,phone:I||void 0,referralCode:W||void 0,community:(f!=null&&f.exists?
1S.trim():void 0)||void 0,turnstileToken:w,intendedPlan:L||void 0,acceptedTerms:!0,legalVersion:"2026-05-08"}),$("Cuenta creada. Revisa tu email para verificar."));try{te?localStorage.setItem(Y,C):localStorage.removeItem(Y)}catch{}}catch(i){i.message==="email_typo_suggestion"&&i.suggestion?(G(i.suggestion),j(`¿Quisiste decir ${i.suggestion}?`)):(j(H[i.message]||i.message||"Error desconocido"),G(null))}finally{re(""),me(i=>i+1),R(!1)}};return e.jsxs("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",padding:d?20:"68px 20px 32px",background:"#FAFAF7",position:"relative"},className:"la-fondo",children:[!d&&e.jsx(Be,{}),e.jsx(ze,{}),!d&&e.jsxs("a",{href:"/",className:"la-volver",children:[e.jsx("span",{"aria-hidden":"true",children:"←"})," Volver al inicio"]}),e.jsxs("div",{className:"la-escena",children:[!d&&e.jsx(Re,{isLogin:a}),e.jsxs("div",{className:"la-tarjeta",style:{width:`min(${a?440:520}px, 92vw)`,flex:"0 0 auto",background:"#FFFFFF",borderRadius:22,border:"1px solid #E8E6DD",boxShadow:"0 40px 90px -40px rgba(8,102,255,0.45), 0 2px 6px rgba(10,10,10,0.04)",padding:"clamp(20px, 5vw, 34px) clamp(16px, 4vw, 36px) clamp(20px, 4vw, 28px)",position:"relative",zIndex:2},children:[e.jsx("div",{style:{textAlign:"center",marginBottom:18},children:e.jsxs("button",{type:"button",onClick:d?void 0:()=>r("/"),"aria-label":d?"Lumy CRM para Shopify":"Ir al inicio de Lumy",style:{background:"transparent",border:"none",cursor:d?"default":"pointer",display:"inline-flex",alignItems:"center",gap:8,fontFamily:"inherit"},children:[e.jsx("img",{src:"/logos/iconoF.png",alt:"Lumy",width:36,height:36,style:{borderRadius:10,objectFit:"contain",boxShadow:"0 8px 20px rgba(8,102,255,0.28)"}}),e.jsx("span",{style:{fontSize:19,fontWeight:800,color:"#0F172A",letterSpacing:"-0.02em"},children:"Lumy"})]})}),e.jsx("h1",{style:{fontFamily:"Poppins, Inter, system-ui, sans-serif",fontSize:27,fontWeight:800,color:"#0A0A0A",letterSpacing:"-0.025em",textAlign:"center",margin:"0 0 6px",lineHeight:1.2},children:a?"Ingresa a tu cuenta":"Crea tu cuenta"}),e.jsx("p",{style:{fontSize:13,color:"#64748B",textAlign:"center",margin:"0 0 14px"},children:a?d?"Inicia sesión para abrir el CRM de esta tienda":"Tus pedidos, tu WhatsApp y tus envíos, justo donde los dejaste.":d?"Crea tu cuenta sin costo para usar el CRM de Shopify":"Crea tu página, recibe pedidos y confírmalos por WhatsApp."}),!a&&L&&e.jsx(Le,{plan:L}),!d&&e.jsx(Ee,{text:a?"Continuar con Google":"Registrarse con Google",next:y?`/login${y}`:"/"}),!a&&!d&&e.jsxs("div",{style:{fontSize:11,color:"#64748B",textAlign:"center",marginTop:8,lineHeight:1.5,padding:"0 8px"},children:["Al continuar con Google aceptas los"," ",e.jsx("a",{href:"/terminos",target:"_blank",rel:"noopener noreferrer",style:{color:"#0866FF",textDecoration:"underline"},children:"Términos"})," ","y autorizas el tratamiento de tus datos personales según la"," ",e.jsx("a",{href:"/privacidad",target:"_blank",rel:"noopener noreferrer",style:{color:"#0866FF",textDecoration:"underline"},children:"Política de Privacidad"})," ","(Ley 1581 de 2012 — Habeas Data Colombia)."]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,margin:"18px 0 18px",color:"#94A3B8",fontSize:11,fontWeight:700,letterSpacing:"0.08em"},children:[e.jsx("span",{style:{flex:1,height:1,background:"#E2E8F0"}}),e.jsx("span",{children:"O CON EMAIL"}),e.jsx("span",{style:{flex:1,height:1,background:"#E2E8F0"}})]}),e.jsxs("form",{onSubmit:xe,autoComplete:"on",children:[!a&&e.jsx(E,{label:"Nombre completo",required:!0,value:X,onChange:de,placeholder:"Juan Pérez",icon:e.jsx(We,{}),autoComplete:"name"}),e.jsx(E,{label:"Email",required:!0,type:"email",value:C,onChange:B,placeholder:"[email protected]",icon:e.jsx(Ne,{}),autoComplete:"username",autoFocus:a&&!C}),!a&&F&&F.valid&&e.jsx("div",{style:{marginTop:-8,marginBottom:14,padding:"8px 12px",borderRadius:10,background:F.available?"rgba(16,185,129,0.10)":"rgba(239,68,68,0.10)",border:`1px solid ${F.available?"rgba(16,185,129,0.30)":"rgba(239,68,68,0.30)"}`,fontSize:12.5,color:F.available?"#0E7C5C":"#B91C1C",fontWeight:600},children:F.available?"✓ Email disponible":"⚠ Este email ya está registrado. Usa otro o inicia sesión con el que ya tienes."}),q&&e.jsxs("div",{style:{marginTop:-8,marginBottom:14,padding:"10px 14px",borderRadius:10,background:"rgba(245,158,11,0.12)",border:"1px solid rgba(245,158,11,0.35)",display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[e.jsxs("span",{style:{fontSize:13,color:"#B45309",fontWeight:600,flex:1,minWidth:0},children:["¿Quisiste decir ",e.jsx("b",{children:q}),"?"]}),e.jsx("button",{type:"button",onClick:()=>{B(q),G(null),j(null)},style:{padding:"6px 14px",borderRadius:8,background:"#F59E0B",color:"#fff",fontSize:12,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit"},children:"Usar este"})]}),a?e.jsx(E,{label:"Contraseña",required:!0,type:A?"text":"password",value:v,onCh
1ange:K,placeholder:"••••••••",icon:e.jsx(V,{}),rightAdornment:e.jsx(ie,{visible:A,onToggle:()=>Q(t=>!t)}),autoComplete:"current-password"}):e.jsxs("div",{className:"la-dos",children:[e.jsx(E,{label:"Contraseña",required:!0,type:A?"text":"password",value:v,onChange:K,placeholder:"Mín. 8 caracteres",icon:e.jsx(V,{}),rightAdornment:e.jsx(ie,{visible:A,onToggle:()=>Q(t=>!t)}),autoComplete:"new-password"}),e.jsxs("div",{children:[e.jsx(E,{label:"Confirmar",required:!0,type:A?"text":"password",value:_,onChange:le,placeholder:"Repetir contraseña",icon:e.jsx(V,{}),autoComplete:"new-password"}),_&&v!==_&&e.jsx("div",{style:{marginTop:-8,marginBottom:10,fontSize:12,color:"#DC2626",fontWeight:600},children:"Las contraseñas no coinciden"})]})]}),!a&&v&&e.jsx(Te,{clave:v}),!a&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("label",{style:{display:"block",fontSize:13,fontWeight:700,color:"#1F2937",marginBottom:6},children:["Teléfono (WhatsApp) ",e.jsx("span",{style:{color:"#EF4444"},children:"*"})]}),e.jsxs("div",{className:"la-tel",children:[e.jsx(Ie,{value:Z,onChange:ce}),e.jsx(se,{type:"tel",value:I,onChange:t=>pe(t.replace(/\D/g,"")),placeholder:"Ej. 3001234567",icon:e.jsx(Pe,{}),autoComplete:"tel-national",required:!0})]}),e.jsx("div",{style:{fontSize:11,color:"#64748B",marginBottom:16},children:"Sin código de país. 10 dígitos en Colombia. Obligatorio — lo usamos para alertas y comprobantes por WhatsApp."})]}),e.jsxs("div",{style:{position:"relative"},onFocusCapture:()=>z(!0),onBlur:t=>{const i=t.relatedTarget;i&&t.currentTarget.contains(i)||setTimeout(()=>{z(!1),S.trim()&&f&&!f.exists&&(P(""),D(null),M([]))},150)},children:[e.jsx(E,{label:"Apoya a tu comunidad favorita",value:S,onChange:t=>{P(t),z(!0)},placeholder:"Empieza a escribir y elige de la lista",icon:e.jsx(De,{}),autoComplete:"off"}),ue&&J.length>0&&e.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,zIndex:20,background:"#fff",border:"1px solid var(--border)",borderRadius:10,boxShadow:"0 8px 24px rgba(0,0,0,0.10)",marginTop:4,maxHeight:220,overflowY:"auto"},children:J.map(t=>e.jsx("button",{type:"button",tabIndex:0,onMouseDown:i=>{i.preventDefault(),P(t.displayName),z(!1)},style:{display:"block",width:"100%",textAlign:"left",padding:"10px 14px",background:"transparent",border:"none",borderBottom:"1px solid rgba(0,0,0,0.04)",fontSize:14,cursor:"pointer",color:"#0F172A"},children:t.displayName},t.slug))})]}),S.trim()&&f&&e.jsx("div",{style:{marginTop:-8,marginBottom:14,padding:"8px 12px",borderRadius:10,background:f.exists?"rgba(16,185,129,0.10)":"rgba(8,102,255,0.08)",border:`1px solid ${f.exists?"rgba(16,185,129,0.30)":"rgba(8,102,255,0.28)"}`,fontSize:12.5,color:f.exists?"#0E7C5C":"#0855D6",fontWeight:600,lineHeight:1.5},children:f.exists?e.jsxs(e.Fragment,{children:["💚 Apoyas a ",e.jsx("strong",{children:f.displayName})]}):e.jsx(e.Fragment,{children:"Esa comunidad aún no está registrada. Puedes dejarlo en blanco."})}),e.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:10,fontSize:12.5,color:"#475569",lineHeight:1.5,cursor:"pointer",marginBottom:14},children:[e.jsx("input",{type:"checkbox",checked:ee,onChange:t=>ge(t.target.checked),required:!0,style:{width:18,height:18,accentColor:"#0866FF",cursor:"pointer",marginTop:1,flexShrink:0}}),e.jsxs("span",{children:["Acepto los"," ",e.jsx("a",{href:"/terminos",target:"_blank",rel:"noreferrer",style:{color:"#0866FF",fontWeight:700,textDecoration:"underline",textUnderlineOffset:2},children:"Términos y Condiciones"})," ","y la"," ",e.jsx("a",{href:"/privacidad",target:"_blank",rel:"noreferrer",style:{color:"#0866FF",fontWeight:700,textDecoration:"underline",textUnderlineOffset:2},children:"Política de Privacidad"})," ","de Lumy."," ",e.jsx("span",{style:{color:"#DC2626",fontWeight:700},children:"*"})]})]})]}),a&&e.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginBottom:16},children:e.jsx("a",{href:d?"/recuperar":"#",target:d?"_blank":void 0,rel:d?"noopener noreferrer":void 0,onClick:d?void 0:t=>{t.preventDefault(),r("/recuperar")},style:{fontSize:13,color:"#0866FF",fontWeight:700,textDecoration:"none"},children:"¿Olvidaste la contraseña?"})}),e.jsx("div",{style:{marginBottom:14},children:e.jsx(_e,{action:u,theme:"light",resetKey:he,onToken:re})}),ne&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"10px 14px",marginBottom:14,borderRadius:10,background:"#F0FDF4",border:"1px solid #BBF7D0"},children:[e.jsx("span",{style:{width:26,height:26,borderRadius:"50%",background:"#10B981",color:"#fff",fontSize:14,fontWeight:800,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"✓"}),e.jsx("span",{style:{fontSize:13,color:"#065F46",fontWeight:600},children:ne})]}),oe&&e.jsx("div",{style:{padding:"10px 14px",marginBottom:14,borderRadius:10,background:"#FEF2F2",border:"1px solid #FECACA",color:"#B91C1C",fontSize:13,fontWeight:600},children:oe}),e.jsx("button",{type:"submit",disabled:k||!w,style:{width:"100%",padding:"14px 0",borderRadius:12,border:"none",background:k||!w?"linear-gradient(110deg, #8DB8FF 0%, #A9CBFF 100%)":"linear-gradient(110deg, #0866FF 0%, #2b86ff 50%, #0866FF 100%)",color:"#fff",fontWeight:700,fontSize:15,cursor:k||!w?"default":"pointer",fontFamily:"inherit",transition:"transform 0.1s, box-shadow 0.15s, filter 0.15s",boxShadow:k||!w?"none":"0 12px 28px -10px rgba(8,102,255,0.65)",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,letterSpacing:"0.01em"},onMouseEnter:t=>!k&&!!w&&(t.currentTarget.style.filter="brightness(1.08)"),onMouseLeave:t=>{t.currentTarget.style.filter="brightness(1)",t.currentTarget.style.transform="translateY(0)"},onMouseDown:t=>!k&&!!w&&(t.currentTarget.style.transform="translateY(1px)"),onMouseUp:t=>t.currentTarget.style.transform="translateY(0)",children:k?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"la-spin","aria-hidden":"true"}),a?"Entrando…":"Creando tu cuenta…"]}):a?"Ingresar":"Crear mi cuenta"}),e.jsxs("p",{className:"la-seguro",children:[e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),e.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]}),a?"Conexión segura · Tus datos están protegidos":"Tus datos están protegidos · Sin permanencia"]}),e.jsxs("div",{style:{marginTop:18,fontSize:13,color:"#475569",textAlign:"center",fontWeight:500},children:[a?"¿No tienes cuenta?":"¿Ya tienes cuenta?"," ",e.jsx("a",{href:m,onClick:t=>{t.preventDefault(),r(m)},style:{color:"#0866FF",fontWeight:700,textDecoration:"none"},children:a?"Regístrate":"Inicia sesión"})]})]})]})]})]})}function ze(){return e.jsx("style",{children:`
2      /* clip y no hidden: hidden convierte la página en contenedor de scroll y el panel sticky dejaba de
3         quedarse fijo. clip recorta igual la aurora sin romper el sticky (con hidden como respaldo). */
4      .la-fondo{overflow:hidden}
5      @supports (overflow:clip){.la-fondo{overflow:clip}}
6      .la-escena{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:clamp(40px,6vw,96px);width:100%;max-width:1180px}
7      /* Sticky arriba: en el registro el formulario es largo y, centrado, el núcleo quedaba cortado abajo. */
8      .la-panel{display:none;flex:1 1 0;min-width:0;max-width:560px;align-self:flex-start;position:sticky;top:40px}
9      /* En computador la órbita de fondo se vuelve INVISIBLE, no display:none: el logo de Meta usa un
10         degradado con id y el navegador toma el primero de la página, que es el de esta órbita. Con
11         display:none ese degradado no se pinta y el logo de Meta del panel salía como un cuadro vacío. */
12      @media(min-width:1024px){.la-panel{display:block}.la-orbita{opacity:0}
12.la-giro,.la-contra{animation:none}}
13      .la-panel-h{font-family:Poppins,Inter,system-ui,sans-serif;font-size:clamp(30px,3vw,42px);font-weight:800;letter-spacing:-0.03em;line-height:1.08;margin:0 0 12px;color:#0A0A0A;text-wrap:balance}
14      @keyframes la-grad{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
15      .la-grad{background:linear-gradient(110deg,#0866FF 0%,#16A34A 50%,#0866FF 100%);background-size:220% auto;-webkit-background-clip:text;background-clip:text;
16        -webkit-text-fill-color:transparent;color:transparent;animation:la-grad 7s ease infinite}
17      .la-tarjeta{animation:la-entra .6s cubic-bezier(.22,1,.36,1) both}
18      @keyframes la-entra{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
19      .la-volver{position:absolute;top:18px;left:20px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;
20        background:rgba(255,255,255,.85);border:1px solid #E8E6DD;color:#0A0A0A;font-size:13px;font-weight:700;text-decoration:none;transition:border-color .18s}
21      .la-volver:hover{border-color:#0866FF}
22      .la-dos{display:grid;grid-template-columns:1fr 1fr;gap:12px}
23      .la-tel{display:grid;grid-template-columns:118px 1fr;gap:10px;margin-bottom:6px}
24      @media(max-width:560px){.la-dos{grid-template-columns:1fr;gap:0}}
25      .la-seguro{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 0 0;font-size:12px;color:#6B6B66}
26      @keyframes la-gira{to{transform:rotate(360deg)}}
27      .la-spin{width:16px;height:16px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:la-gira .7s linear infinite}
28      @media(prefers-reduced-motion:reduce){.la-tarjeta,.la-grad{animation:none}}
29    `})}function Re({isLogin:o}){return e.jsxs("div",{className:"la-panel","aria-hidden":"true",children:[e.jsx(ke,{}),e.jsx("p",{style:{fontFamily:"Poppins, Inter, system-ui, sans-serif",fontSize:12.5,fontWeight:800,letterSpacing:".1em",textTransform:"uppercase",color:"#0866FF",margin:"0 0 10px"},children:o?"Bienvenido de vuelta":"Empieza hoy"}),e.jsx("h2",{className:"la-panel-h",children:o?e.jsxs(e.Fragment,{children:["Tus pedidos ",e.jsx("span",{className:"la-grad",children:"te esperan."})]}):e.jsxs(e.Fragment,{children:["Todo tu negocio ",e.jsx("span",{className:"la-grad",children:"en un solo lugar."})]})}),e.jsx("p",{style:{fontSize:16,color:"#525252",lineHeight:1.55,margin:0,maxWidth:460},children:o?"Entra y mira lo que pasó mientras no estabas: pedidos nuevos, confirmaciones por WhatsApp y guías en camino.":"Armas tu página en Lumy o conectas tu tienda, los pedidos llegan a tu CRM, Lumy los confirma por WhatsApp y salen a tu transportadora o plataforma logística. Eliges plan cuando quieras publicar."}),e.jsx(Se,{})]})}function Le({plan:o}){const r=Fe.find(l=>l.id===(o==="max"?"plus":o));return r?e.jsxs("div",{style:{margin:"0 0 18px",padding:"12px 14px",borderRadius:14,background:"linear-gradient(135deg, rgba(8,102,255,0.06), rgba(22,163,74,0.06))",border:"1px solid rgba(8,102,255,0.22)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10},children:[e.jsx("span",{style:{fontSize:11.5,fontWeight:800,color:"#0866FF",letterSpacing:".06em",textTransform:"uppercase"},children:"Plan elegido"}),e.jsx("a",{href:"/#planes",style:{fontSize:12,fontWeight:700,color:"#0866FF",textDecoration:"none"},children:"Cambiar"})]}),e.jsxs("div",{style:{display:"flex",alignItems:"baseline",flexWrap:"wrap",gap:"2px 8px",margin:"4px 0 6px"},children:[e.jsx("strong",{style:{fontSize:18,color:"#0A0A0A"},children:r.name}),e.jsxs("span",{style:{fontSize:14,fontWeight:800,color:"#0A0A0A"},children:[r.price," USD al mes"]}),e.jsx("span",{style:{fontSize:12,color:"#6B6B66"},children:"sin permanencia"})]}),r.bullets.slice(0,2).map(l=>e.jsxs("div",{style:{display:"flex",gap:6,fontSize:12.5,color:"#475569",lineHeight:1.45},children:[e.jsx("span",{style:{color:"#16A34A",fontWeight:800},children:"✓"}),l]},l))]}):null}function Te({clave:o}){let r=0;o.length>=8&&r++,o.length>=12&&r++,/[a-z]/.test(o)&&/[A-Z]/.test(o)&&r++,/\d/.test(o)&&/[^A-Za-z0-9]/.test(o)&&r++;const l=[["muy corta","#DC2626"],["débil","#EA580C"],["aceptable","#D97706"],["buena","#16A34A"],["muy buena","#15803D"]],[n,p]=l[r];return e.jsxs("div",{style:{margin:"-6px 0 14px"},children:[e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:4},children:[0,1,2,3].map(u=>e.jsx("span",{style:{height:4,borderRadius:4,background:u<r?p:"#E8E6DD",transition:"background .2s"}},u))}),e.jsxs("div",{style:{fontSize:11.5,fontWeight:700,color:p,marginTop:5},children:["Seguridad de la contraseña: ",n]})]})}function Be(){const o=[e.jsx(be,{size:22}),e.jsx(ve,{size:20}),e.jsx(je,{size:22}),e.jsx("img",{src:"/logos/adropi.png",alt:"",width:24,height:24,style:{borderRadius:"50%"}}),e.jsx("img",{src:"/logos/amastershop.jpg",alt:"",width:24,height:24,style:{borderRadius:"50%"}}),e.jsx("img",{src:"/logos/a99envios.png",alt:"",width:22,height:22,style:{borderRadius:6}})];return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
30        .la-aurora{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
31        .la-aurora b{position:absolute;width:56vw;height:56vw;max-width:680px;max-height:680px;border-radius:50%;filter:blur(80px);opacity:.75;will-change:transform}
32        .la-aurora .a1{top:-20%;left:-14%;background:radial-gradient(circle,rgba(8,102,255,.5),rgba(8,102,255,0) 66%);animation:la-a 30s ease-in-out infinite}
33        .la-aurora .a2{bottom:-24%;right:-16%;background:radial-gradient(circle,rgba(22,163,74,.42),rgba(22,163,74,0) 66%);animation:la-b 38s ease-in-out infinite}
34        .la-aurora .a3{top:30%;left:40%;width:40vw;height:40vw;background:radial-gradient(circle,rgba(34,211,238,.3),rgba(34,211,238,0) 68%);animation:la-c 44s ease-in-out infinite}
35        @keyframes la-a{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(8vw,6vh,0) scale(1.15)}}
36        @keyframes la-b{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-7vw,-5vh,0) scale(1.2)}}
37        @keyframes la-c{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-6vw,4vh,0) scale(.9)}}
38        .la-orbita{position:absolute;top:50%;left:50%;width:min(860px,120vw);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;z-index:1}
39        .la-anillo{position:absolute;inset:0;border-radius:50%;border:1px dashed rgba(10,10,10,.09)}
40        .la-anillo.i{inset:14%;border:1px solid rgba(8,102,255,.10)}
41        .la-giro{position:absolute;inset:0;animation:la-giro 80s linear infinite}
42        .la-item{position:absolute;top:50%;left:50%;width:0;height:0}
43        .la-contra{animation:la-contra 80s linear infinite}
44        .la-chip{width:50px;height:50px;margin:-25px;border-radius:15px;background:#fff;border:1px solid #E8E6DD;display:flex;align-items:center;justify-content:center;
45          box-shadow:0 10px 24px -12px rgba(8,102,255,.45),0 1px 2px rgba(10,10,10,.05)}
46        @keyframes la-giro{to{transform:rotate(360deg)}}
47        @keyframes la-contra{to{transform:rotate(-360deg)}}
48        @media(max-width:640px){.la-orbita{opacity:.5}}
49        @media(prefers-reduced-motion:reduce){.la-aurora b,.la-giro,.la-contra{animation:none}}
50      `}),e.jsxs("div",{className:"la-aurora","aria-hidden":"true",children:[e.jsx("b",{className:"a1"}),e.jsx("b",{className:"a2"}),e.jsx("b",{className:"a3"})]}),e.jsx(Ce,{}),e.jsxs("div",{className:"la-orbita","aria-hidden":"true",children:[e.jsx("span",{className:"la-anillo"}),e.jsx("span",{className:"la-anillo i"}),e.jsx("div",{className:"la-giro",children:o.map((r,l)=>{const n=360/o.length*l;return e.jsx("div",{className:"la-item",style:{transform:`rotate(${n}deg) translateX(min(430px, 60vw))`},children:e.jsx("div",{style:{transform:`rotate(${-n}deg)`},children:e.jsx("div",{className:"la-contra",children:e.jsx("span",{className:"la-chip",children:r})})})},l)})})]})]})}function E({label:o,value:r,onChange:l,type:n="text",placeholder:p,required:u,autoFocus:a,autoComplete:x,icon:g,rightAdornment:y}){return e.jsxs("label",{style:{display:"block",marginBottom:14},children:[e.jsxs("span",{style:{display:"block",fontSize:13,fontWeight:700,color:"#1F2937",marginBottom:6},children:[o,u&&e.jsx("span",{style:{color:"#DC2626",marginLeft:3},children:"*"})]}),e.jsx(se,{type:n,value:r,onChange:l,placeholder:p,required:u,autoFocus:a,autoComplete:x,icon:g,rightAdornment:y})]})}function se({type:o="text",value:r,onChange:l,placeholder:n,required:p,autoFocus:u,autoComplete:a,icon:x,rightAdornment:g}){const y=x?42:16,d=g?42:16;return e.jsxs("div",{style:{position:"relative",display:"block"},children:[x&&e.jsx("span",{style:{position:"absolute",left:14,top:"50%",transform:"translateY(-50%)",color:"#94A3B8",display:"inline-flex",alignItems:"center",pointerEvents:"none"},children:x}),e.jsx("input",{type:o,value:r,onChange:m=>l(m.target.value),placeholder:n,required:p,autoFocus:u,autoComplete:a,style:{width:"100%",padding:`12px ${d}px 12px ${y}px`,borderRadius:12,border:"1px solid #E2E8F0",background:"#F8FAFC",fontSize:14,fontFamily:"inherit",color:"#0F172A",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s, box-shadow 0.15s, background 0.15s"},onFocus:m=>{m.target.style.borderColor="#0866FF",m.target.style.background="#FFFFFF",m.target.style.boxShadow="0 0 0 3px rgba(8,102,255,0.15)"},onBlur:m=>{m.target.style.borderColor="#E2E8F0",m.target.style.background="#F8FAFC",m.target.style.boxShadow="none"}}),g&&e.jsx("span",{style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"},children:g})]})}function Ie({value:o,onChange:r}){const l=O.find(n=>n.code===o)||O[0];return e.jsxs("div",{style:{position:"relative"},children:[e.jsxs("span",{style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",pointerEvents:"none",display:"inline-flex",alignItems:"center",gap:6},children:[e.jsx("span",{style:{fontSize:18},children:l.flag}),e.jsxs("span",{style:{fontSize:14,fontWeight:600,color:"#0F172A"},children:["+",l.code]})]}),e.jsx("select",{value:o,onChange:n=>r(n.target.value),"aria-label":`Código de país: ${l.name} +${l.code}`,style:{width:"100%",padding:"12px 28px 12px 42px",borderRadius:12,border:"1px solid #E2E8F0",background:"#F8FAFC",fontSize:14,fontFamily:"inherit",color:"transparent",outline:"none",boxSizing:"border-box",appearance:"none",cursor:"pointer"},onFocus:n=>{n.target.style.borderColor="#0866FF",n.target.style.background="#FFFFFF",n.target.style.boxShadow="0 0 0 3px rgba(8,102,255,0.15)"},onBlur:n=>{n.target.style.borderColor="#E2E8F0",n.target.style.background="#F8FAFC",n.target.style.boxShadow="none"},children:O.map(n=>e.jsxs("option",{value:n.code,style:{color:"#0F172A"},children:["+",n.code," ",n.name]},n.code))}),e.jsx("span",{style:{position:"absolute",right:14,top:"50%",transform:"translateY(-50%)",color:"#94A3B8",pointerEvents:"none"},children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]})}function ie({visible:o,onToggle:r}){return e.jsx("button",{type:"button",onClick:r,"aria-label":o?"Ocultar contraseña":"Mostrar c
50ontraseña",style:{background:"transparent",border:"none",cursor:"pointer",padding:4,color:"#64748B",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:o?e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),e.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})}function We(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Ne(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),e.jsx("polyline",{points:"22,6 12,13 2,6"})]})}function V(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function Pe(){return e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}function De(){return e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"}),e.jsx("line",{x1:"7",y1:"7",x2:"7.01",y2:"7"})]})}export{Qe as AuthScreen};

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.