PageSourceSearch

https://deportivoquito.com/assets/index-BKYl9XI7.js

js deportivoquito.com collected 2026-10-02 13:42:41 UTC 33,955 bytes, 13 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-7QmWxOfq.js","assets/vendor-react-BjSty5Uo.js","assets/news-jOL2U-g6.js","assets/vendor-ui-Ci1VS1Mm.js","assets/format-BMulUEhk.js","assets/vendor-supabase-BPVmyxZX.js","assets/Plantilla-DXrCyhEH.js","assets/JugadorDetalle-CbkU8sNb.js","assets/Calendario-yyJ5-Q7C.js","assets/Tabla-D9OZ_7kk.js","assets/Estadisticas-BJa2M0Hp.js","assets/Historia-CCrNbiN4.js","assets/Palmares-CWDdDl5J.js","assets/Instalaciones-s3EdMyMv.js","assets/Basket-CFKth72Q.js","assets/FutbolFemenino-DRaX4WAy.js","assets/HazteSocio-d-8VG237.js","assets/Tickets-CF86r0vT.js","assets/SdquitoTV-BWhWZm2-.js","assets/Contactanos-SZW0If3L.js","assets/Noticias-CQ88UX4v.js","assets/NoticiaDetalle-CVlLIxZw.js","assets/Tienda-DenAHG-q.js","assets/ProductoDetalle-DgmnGBG-.js","assets/Carrito-SvWfVc3O.js","assets/Checkout-D3pg9ZXr.js","assets/Checkout-DpsRipQV.css","assets/OrdenConfirmada-yn8ySGyM.js","assets/CategoriasFormativas-9NQcQC-O.js","assets/AvisoLegal-xlWs-VBo.js","assets/Privacidad-BTlBQQ9I.js","assets/Cookies-kLYQeiGR.js","assets/Login-CP7_cUBB.js","assets/Dashboard-Bt_A6c7G.js","assets/Noticias-BSei7i7S.js","assets/Modal-XSVONxj1.js","assets/ImageUpload-DNEajQqG.js","assets/DateInput-hiXbj4Rk.js","assets/DateInput-B5U4kmJ6.css","assets/Noticias-DZrYvFpI.css","assets/Equipos-DDeiI0YT.js","assets/Jugadores-CpEQtFyP.js","assets/Torneos-CtqWUdi6.js","assets/Etapas-2sac55uv.js","assets/Calendario-D_cZy7HF.js","assets/Estadios-Ba7oJf04.js","assets/Resultados-CyirTN2s.js","assets/Fechas-yQ_jjziO.js","assets/Categorias--JjEu1_H.js","assets/Productos-DoFdEQjV.js","assets/Pedidos-BT9TGjAr.js","assets/Newsletter-DTcFHsuP.js"])))=>i.map(i=>d[i]);
2import{r as t,a as q,L as f,u as j,N as z,b as V,d as M,O as B,B as F,R as w,e as s}from"./vendor-react-BjSty5Uo.js";import{c as U,_ as o}from"./vendor-supabase-BPVmyxZX.js";import{T as G,C as y,S as Q,X as C,M as T,a as H,L as J,b as $,F as K,Y,I as W,c as X,N as Z,d as ee,e as te,f as ae,g as se,h as ie,i as oe,U as ne,j as le,k as re,l as ce,P as de,m as ue,n as me}from"./vendor-ui-Ci1VS1Mm.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))u(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const p of r.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function m(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function u(i){if(i.ep)return;i.ep=!0;const r=m(i);fetch(i.href,r)}})();var A={exports:{}},_={};/**
3 * @license React
4 * react-jsx-runtime.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var xe=t,pe=Symbol.for("react.element"),he=Symbol.for("react.fragment"),be=Object.prototype.hasOwnProperty,fe=xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ge={key:!0,ref:!0,__self:!0,__source:!0};function S(a,n,m){var u,i={},r=null,p=null;m!==void 0&&(r=""+m),n.key!==void 0&&(r=""+n.key),n.ref!==void 0&&(p=n.ref);for(u in n)be.call(n,u)&&!ge.hasOwnProperty(u)&&(i[u]=n[u]);if(a&&a.defaultProps)for(u in n=a.defaultProps,n)i[u]===void 0&&(i[u]=n[u]);return{$$typeof:pe,type:a,key:r,ref:p,props:i,_owner:fe.current}}_.Fragment=he;_.jsx=S;_.jsxs=S;A.exports=_;var e=A.exports,k,E=q;k=E.createRoot,E.hydrateRoot;const ve="https://qaztwyqzzacbadzvomjv.supabase.co",_e="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFhenR3eXF6emFjYmFkenZvbWp2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODQzMDI5NDEsImV4cCI6MjA5OTg3ODk0MX0.jNqVBfVGqSor9mG6yXv9jqfmafqFOZ74EopxDggN_8c",v=U(ve,_e);function je(){const[a,n]=t.useState(null);return t.useEffect(()=>{v.from("matches").select(`
11        home_team:teams!matches_home_team_id_fkey(name, is_our_team),
12        away_team:teams!matches_away_team_id_fkey(name)
13      `).eq("status","scheduled").order("match_date",{ascending:!0}).then(({data:m})=>{n((m??[]).find(i=>i.home_team.is_our_team)??null)})},[]),a?e.jsxs("div",{className:"gradient-sdq-horizontal text-white py-2.5 px-4 text-center relative overflow-hidden",role:"banner",children:[e.jsxs("div",{className:"absolute inset-0 opacity-10","aria-hidden":"true",children:[e.jsx("div",{className:"absolute top-0 left-1/4 w-32 h-32 bg-white rounded-full -translate-y-1/2"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-24 h-24 bg-white rounded-full translate-y-1/2"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 sm:gap-3 relative z-10",children:[e.jsxs("p",{className:"text-[11px] sm:text-sm font-semibold tracking-wide whitespace-nowrap",children:[a.home_team.name," vs ",a.away_team.name]}),e.jsxs("a",{href:"https://tickets.deportivoquito.com/",target:"_blank",rel:"noopener noreferrer",className:"bg-sdq-gold text-sdq-dark-blue text-xs font-bold px-4 py-1.5 rounded-full hover:bg-yellow-400 transition-colors flex items-center gap-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:[e.jsx(G,{size:14,"aria-hidden":"true"}),"tickets"]})]})]}):null}const L=t.createContext(null),N="sdq_cart";function I(a,n){return n?`${a}__${n}`:a}function we({children:a}){const[n,m]=t.useState(()=>{try{return JSON.parse(localStorage.getItem(N)??"[]").map(d=>({...d,lineId:d.lineId??I(d.id,d.size)}))}catch{return[]}});t.useEffect(()=>{localStorage.setItem(N,JSON.stringify(n))},[n]);function u(c){const d=I(c.id,c.size);m(h=>h.find(g=>g.lineId===d)?h.map(g=>g.lineId===d?{...g,quantity:g.quantity+1}:g):[...h,{...c,lineId:d,quantity:1}])}function i(c){m(d=>d.filter(h=>h.lineId!==c))}function r(c,d){if(d<1){i(c);return}m(h=>h.map(b=>b.lineId===c?{...b,quantity:d}:b))}function p(){m([])}const l=n.reduce((c,d)=>c+d.price*d.quantity,0),x=n.reduce((c,d)=>c+d.quantity,0);return e.jsx(L.Provider,{value:{items:n,add:u,remove:i,update:r,clear:p,total:l,count:x},children:a})}function ye(){const a=t.useContext(L);if(!a)throw new Error("useCart must be inside CartProvider");return a}const O=[{label:"Fútbol",href:"/primer-equipo/plantilla",submenu:[{label:"Noticias",href:"/noticias"},{label:"Plantilla",href:"/primer-equipo/plantilla"},{label:"Calendario",href:"/primer-equipo/calendario"},{label:"Tabla de Posiciones",href:"/primer-equipo/tabla"},{label:"Estadísticas",href:"/primer-equipo/estadisticas"},{label:"Categorías Formativas",href:"/futbol/categorias-formativas"}]},{label:"El Club",href:"/club/historia",submenu:[{label:"Historia",href:"/club/historia"},{label:"Títulos",href:"/club/titulos"},{label:"Instalaciones",href:"/club/instalaciones"}]},{label:"Otras Disciplinas",href:"/otras-disciplinas/basket",submenu:[{label:"Basket",href:"/otras-disciplinas/basket"},{label:"Fútbol Femenino",href:"/otras-disciplinas/futbol-femenino"}]},{label:"Abonados",href:"/abonados",submenu:null},{label:"Tickets",href:"/tickets",submenu:null},{label:"SDQUITO TV",href:"/sdquitotv",submenu:null},{label:"Tienda",href:"/tienda",submenu:null},{label:"Contáctanos",href:"/contactanos",submenu:null}];function Ee(){const[a,n]=t.useState(!1),[m,u]=t.useState(null),[i,r]=t.useState(null),{count:p}=ye();return e.jsxs("header",{className:"bg-sdq-dark-blue sticky top-0 z-50 shadow-lg",children:[e.jsx("div",{className:"max-w-[1400px] mx-auto px-4",children:e.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-[72px]",children:[e.jsxs(f,{to:"/",className:"flex items-center gap-3 shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold rounded-lg",children:[e.jsx("img",{src:"/images/logo.png",alt:"Sociedad Deportivo Quito",width:256,height:256,className:"h-20 w-auto"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-white font-extrabold text-base sm:text-xl tracking-tight leading-none",children:"S.D. QUITO"}),e.jsx("span",{className:"text-sdq-gold text-[8px] sm:text-[10px] font-semibold block tracking-[0.15em] sm:tracking-[0.2em]",children:"SOCIEDAD DEPORTIVO QUITO"}),e.jsx("span",{className:"text-white/35 text-[8px] sm:text-[9px] font-medium block tracking-[0.15em] sm:tracking-[0.25em] uppercase mt-0.5",children:"Sitio Web Oficial"})]})]}),e.jsx("nav",{className:"hidden lg:flex items-center gap-1 h-full","aria-label":"Navegación principal",children:O.map((l,x)=>e.jsxs("div",{className:"relative h-full flex items-center",onMouseEnter:()=>l.submenu&&u(x),onMouseLeave:()=>u(null),children:[e.jsxs(f,{to:l.href,"aria-haspopup":l.submenu?"menu":void 0,"aria-expanded":l.submenu?m===x:void 0,className:"nav-link text-white/90 hover:text-white text-[13px] font-medium px-3 py-2 flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold rounded",children:[l.label,l.submenu&&e.jsx(y,{size:12,"aria-hidden":"true",className:`transition-transform ${m===x?"rotate-180":""}`})]}),l.submenu&&m===x&&e.jsx("div",{role:"menu",className:"absolute top-full left-0 bg-white rounded-lg shadow-2xl py-3 min-w-[220px] animate-fade-in border border-gray-100",children:l.submenu.map(c=>e.jsx(f,{to:c.href,role:"menuitem",className:"block px-5 py-2.5 text-sm text-gray-700 hover:bg-sdq-blue/5 hover:text-sdq-blue transition-colors font-medium focus-visible:outline-none focus-visible:bg-sdq-blue/5 focus-visible:text-sdq-blue",children:c.label},c.label))})]},l.label))}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs(f,{to:"/carrito","aria-label":`Carrito — ${p} artículo${p!==1?"s":""}`,className:`relative items-center gap-2 text-white/80 hover:text-white p-2 rounded-full hover:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold ${p>0?"flex":"hidden sm:flex"}`,children:[e.jsx(Q,{size:20,"aria-hidden":"true"}),p>0&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-4 h-4 bg-sdq-red text-white text-[9px] font-black rounded-full flex items-center justify-center tabular-nums",children:p>99?"99":p})]}),e.jsx("button",{"aria-label":a?"Cerrar menú":"Abrir menú de navegación","aria-expanded":a,"aria-controls":"mobile-menu",className:"lg:hidden text-white p-2 hover:bg-white/10 rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold",onClick:()=>n(!a),children:a?e.jsx(C,{size:24,"aria-hidden":"true"}):e.jsx(T,{size:24,"aria-hidden":"true"})})]})]})}),a&&e.jsx("div",{id:"mobile-menu",className:"lg:hidden bg-sdq-dark-blue border-t border-white/10 animate-fade-in",children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-4 py-4 space-y-1",children:O.map((l,x)=>e.jsx("div",{children:l.submenu?e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>r(i===x?null:x),"aria-expanded":i===x,className:"w-full flex items-center justify-between text-white/90 hover:text-white hover:bg-white/5 px-4 py-3 rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold",children:[l.label,e.jsx(y,{size:16,"aria-hidden":"true",className:`transition-transform ${i===x?"rotate-180":""}`})]}),i===x&&e.jsx("div",{className:"pl-4 space-y-0.5 mt-1 mb-2",children:l.submenu.map(c=>e.jsx(f,{to:c.href,onClick:()=>n(!1),className:"block text-white/60 hover:text-white hover:bg-white/5 px-4 py-2.5 rounded-lg text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold",children:c.label},c.label))})]}):e.jsx(f,{to:l.href,onClick:()=>n(!1),className:"block text-white/90 hover:text-white hover:bg-white/5 px-4 py-3 rounded-lg text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold",children:l.label})},l.label))})})]})}const St=.15,kt="+593 998 234 775",Lt="tel:+593998234775",Pt="https://wa.me/593980483432?text=Hola%20SDQ%2C%20quiero%20informaci%C3%B3n%20sobre%20los%20abonados%202026",Dt="https://abonados.deportivoquito.com/",Rt="[email protected]",qt="[email protected]",zt="[email protected]",Vt="[email protected]",Ne="https://www.facebook.com/SDQuitoOficial",Ie="https://x.com/SDQuito_Oficial",Oe="https://www.youtube.com/@sociedaddeportivoquitocana3989",Ce="https://www.instagram.com/sdquito/",Te="https://www.tiktok.com/@sdquito_oficial",Mt=["Ecuador","─────────────","Afganistán","Albania","Alemania","Andorra","Angola","Antigua y Barbuda","Arabia Saudita","Argelia","Argentina","Armenia","Australia","Austria","Azerbaiyán","Bahamas","Bangladés","Barbados","Bélgica","Belice","Benín","Bielorrusia","Bolivia","Bosnia y Herzegovina","Botsuana","Brasil","Brunéi","Bulgaria","Burkina Faso","Burundi","Bután","Cabo Verde","Camboya","Camerún","Canadá","Catar","Chad","Chile","Chipre","Colombia","Comoras","Congo","Corea del Norte","Corea del Sur","Costa de Marfil","Costa Rica","Croacia","Cuba","Dinamarca","Dominica","Egipto","El Salvador","Emiratos Árabes Unidos","Eritrea","Eslovaquia","Eslovenia","España","Estados Unidos","Estonia","Esuatini","Etiopía","Filipinas","Finlandia","Fiyi","Francia","Gabón","Gambia","Georgia","Ghana","Granada","Grecia","Guatemala","Guinea","Guinea Ecuatorial","Guinea-Bisáu","Guyana","Haití","Honduras","Hungría","India","Indonesia","Irak","Irán","Irlanda","Islandia","Islas Marshall","Islas Salomón","Israel","Italia","Jamaica","Japón","Jordania","Kazajistán","Kenia","Kirguistán","Kiribati","Kuwait","Laos","Lesoto","Letonia","Líbano","Liberia","Libia","Liechtenstein","Lituania","Luxemburgo","Madagascar","Malasia","Malaui","Maldivas","Malí","Malta","Marruecos","Mauricio","Mauritania","México","Micronesia","Moldavia","Mónaco","Mongolia","Montenegro","Mozambique","Myanmar","Namibia","Nauru","Nepal","Nicaragua","Níger","Nigeria","Noruega","Nueva Zelanda","Omán","Países Bajos","Pakistán","Palaos","Palestina","Panamá","Papúa Nueva Guinea","Paraguay","Perú","Polonia","Portugal","Reino Unido","República Centroafricana","República Checa","República del Congo","República Democrática del Congo","República Dominicana","Ruanda","Rumania","Rusia","Samoa","San Cristóbal y Nieves","San Marino","San Vicente y las Granadinas","Santa Lucía","Santo Tomé y Príncipe","Senegal","Serbia","Seychelles","Sierra Leona","Singapur","Siria","Somalia","Sri Lanka","Sudáfrica","Sudán","Sudán del Sur","Suecia","Suiza","Surinam","Tailandia","Tanzania","Timor Oriental","Togo","Tonga","Trinidad y Tobago","Túnez","Turkmenistán","Turquía","Tuvalu","Ucrania","Uganda","Uruguay","Uzbekistán","Vanuatu","Venezuela","Vietnam","Yemen","Yibuti","Zambia","Zimbabue"];function Ae({size:a=16}){return e.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"
13currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.737-8.835L1.254 2.25H8.08l4.261 5.632 5.903-5.632Zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}function Se({size:a=16}){return e.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 0 0-.79-.05 6.34 6.34 0 0 0-6.34 6.34 6.34 6.34 0 0 0 6.34 6.34 6.34 6.34 0 0 0 6.33-6.34V8.69a8.16 8.16 0 0 0 4.77 1.52V6.75a4.85 4.85 0 0 1-1-.06z"})})}const ke={"Primer Equipo":[{label:"Plantilla",to:"/primer-equipo/plantilla"},{label:"Calendario",to:"/primer-equipo/calendario"},{label:"Tabla de Posiciones",to:"/primer-equipo/tabla"},{label:"Estadísticas",to:"/primer-equipo/estadisticas"}],"El Club":[{label:"Historia",to:"/club/historia"},{label:"Títulos",to:"/club/titulos"},{label:"Instalaciones",to:"/club/instalaciones"}],"Otras Disciplinas":[{label:"Basket",to:"/otras-disciplinas/basket"},{label:"Fútbol Femenino",to:"/otras-disciplinas/futbol-femenino"}],Información:[{label:"Noticias",to:"/noticias"},{label:"Abonados",to:"/abonados"},{label:"Tickets",to:"/tickets"},{label:"Tienda",to:"/tienda"},{label:"Contáctanos",to:"/contactanos"}]},Le=[{icon:K,label:"Facebook",href:Ne},{icon:Ae,label:"X",href:Ie},{icon:Y,label:"YouTube",href:Oe},{icon:W,label:"Instagram",href:Ce},{icon:Se,label:"TikTok",href:Te}];function Pe(){const[a,n]=t.useState(""),[m,u]=t.useState(""),[i,r]=t.useState("idle");async function p(l){if(l.preventDefault(),!a)return;if(m){r("success"),n("");return}r("loading");const{error:x}=await v.from("newsletter_subscribers").insert({email:a});x?x.code==="23505"?r("duplicate"):r("error"):(r("success"),n(""))}return e.jsxs("footer",{className:"bg-neutral-950 text-white",children:[e.jsx("div",{className:"border-b border-white/10",children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-8 py-10 sm:py-14",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-start lg:items-center justify-between gap-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl sm:text-2xl font-extrabold",children:"Suscríbete a la Newsletter"}),e.jsx("p",{className:"text-white/50 text-sm mt-1",children:"Recibe las últimas noticias de Sociedad Deportivo Quito en tu correo"})]}),i==="success"?e.jsxs("div",{className:"flex items-center gap-3 text-green-400 font-semibold text-sm",children:[e.jsx(H,{size:20}),"¡Suscripción confirmada! Gracias por unirte."]}):e.jsxs("form",{onSubmit:p,className:"flex flex-col gap-2 w-full lg:w-auto",children:[e.jsx("input",{type:"text",name:"website",value:m,onChange:l=>u(l.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute -left-[9999px] w-px h-px overflow-hidden"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("label",{htmlFor:"newsletter-email",className:"sr-only",children:"Tu dirección de correo electrónico"}),e.jsx("input",{id:"newsletter-email",type:"email",name:"email",required:!0,autoComplete:"email",spellCheck:!1,value:a,onChange:l=>{n(l.target.value),r("idle")},placeholder:"Tu email…",className:"bg-white/10 border border-white/10 rounded-full px-5 py-3 text-sm text-white placeholder-white/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold/50 focus-visible:border-sdq-gold w-full lg:w-72"}),e.jsx("button",{type:"submit",disabled:i==="loading",className:"bg-sdq-gold text-sdq-dark-blue font-bold text-sm px-6 py-3 rounded-full hover:bg-yellow-400 transition-colors shrink-0 flex items-center gap-1 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-950 disabled:opacity-60",children:i==="loading"?e.jsx(J,{size:16,className:"animate-spin"}):e.jsxs(e.Fragment,{children:["SUSCRIBIRSE ",e.jsx($,{size:16,"aria-hidden":"true"})]})})]}),i==="duplicate"&&e.jsx("p",{className:"text-amber-400 text-xs pl-1",children:"Este correo ya está suscrito."}),i==="error"&&e.jsx("p",{className:"text-red-400 text-xs pl-1",children:"No se pudo completar la suscripción. Inténtalo de nuevo."})]})]})})}),e.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-8 py-10 sm:py-14",children:e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
13p-8 lg:gap-10",children:[e.jsxs("div",{className:"col-span-2 sm:col-span-3 lg:col-span-1 mb-4 lg:mb-0",children:[e.jsxs(f,{to:"/",className:"flex items-center gap-3 mb-6 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold rounded-lg w-fit",children:[e.jsx("img",{src:"/images/logo.png",alt:"Sociedad Deportivo Quito",width:256,height:256,className:"h-16 w-auto"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-white font-extrabold text-lg leading-none block",children:"S.D. QUITO"}),e.jsx("span",{className:"text-sdq-gold text-[8px] font-semibold tracking-[0.2em] block",children:"SOCIEDAD DEPORTIVO QUITO"}),e.jsx("span",{className:"text-white/35 text-[7px] font-medium tracking-[0.25em] uppercase mt-0.5 block",children:"Sitio Web Oficial"})]})]}),e.jsx("p",{className:"text-white/40 text-xs leading-relaxed mb-6 max-w-[280px]",children:"Sociedad Deportivo Quito, el primer grande de la capital. #SoyDelQuito"}),e.jsx("nav",{"aria-label":"Redes sociales",children:e.jsx("div",{className:"flex gap-2 flex-wrap",children:Le.map(l=>e.jsx("a",{href:l.href,target:"_blank",rel:"noopener noreferrer","aria-label":l.label,className:"w-9 h-9 rounded-full bg-white/10 flex items-center justify-center hover:bg-sdq-blue transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sdq-gold",children:e.jsx(l.icon,{size:16,"aria-hidden":"true"})},l.label))})})]}),Object.entries(ke).map(([l,x])=>e.jsxs("nav",{"aria-label":l,children:[e.jsx("h4",{className:"text-xs font-bold tracking-wider text-white/70 mb-4 uppercase",children:l}),e.jsx("ul",{className:"space-y-2.5",children:x.map(c=>e.jsx("li",{children:e.jsx(f,{to:c.to,className:"text-sm text-white/40 hover:text-white transition-colors focus-visible:outline-none focus-visible:text-white",children:c.label})},c.to))})]},l))]})}),e.jsx("div",{className:"border-t border-white/10",children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-8 py-5",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-white/30",children:[e.jsx("p",{children:"© 2026 Sociedad Deportivo Quito. Todos los derechos reservados."}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(f,{to:"/aviso-legal",className:"hover:text-white transition-colors focus-visible:outline-none focus-visible:text-white",children:"Aviso Legal"}),e.jsx(f,{to:"/privacidad",className:"hover:text-white transition-colors focus-visible:outline-none focus-visible:text-white",children:"Privacidad"}),e.jsx(f,{to:"/cookies",className:"hover:text-white transition-colors focus-visible:outline-none focus-visible:text-white",children:"Cookies"})]})]})})})]})}const P=t.createContext(void 0);function De({children:a}){const[n,m]=t.useState(null),[u,i]=t.useState(null),[r,p]=t.useState(!0);t.useEffect(()=>{v.auth.getSession().then(({data:{session:h}})=>{i(h),m((h==null?void 0:h.user)??null),p(!1)});const{data:{subscription:d}}=v.auth.onAuthStateChange((h,b)=>{i(b),m((b==null?void 0:b.user)??null)});return()=>d.unsubscribe()},[]);const l=async(d,h)=>{const{error:b}=await v.auth.signInWithPassword({email:d,password:h});return{error:b}},x=async()=>{await v.auth.signOut()},c=async d=>{const{error:h}=await v.auth.resetPasswordForEmail(d,{redirectTo:`${window.location.origin}/admin/update-password`});return{error:h}};return e.jsx(P.Provider,{value:{user:n,session:u,loading:r,signIn:l,signOut:x,resetPassword:c},children:a})}function D(){const a=t.useContext(P);if(a===void 0)throw new Error("useAuth must be used within an AuthProvider");return a}function Re(){const{pathname:a}=j();return t.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function qe({children:a}){const{user:n,loading:m}=D(),u=j();return m?e.jsx("div",{className:"min-h-screen bg-sdq-dark-blue flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"w-10 h-10 border-4 border-sdq-gold border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-white/60 text-sm",children:"Verificando sesión…"})]})}
13):n?e.jsx(e.Fragment,{children:a}):e.jsx(z,{to:"/admin/login",state:{from:u},replace:!0})}const ze=[{group:null,items:[{to:"/admin",label:"Dashboard",icon:X,end:!0}]},{group:"Contenido",items:[{to:"/admin/noticias",label:"Noticias",icon:Z}]},{group:"Competición",items:[{to:"/admin/torneos",label:"Torneos",icon:ee},{to:"/admin/etapas",label:"Etapas",icon:te},{to:"/admin/fechas",label:"Fechas",icon:ae},{to:"/admin/calendario",label:"Calendario",icon:se},{to:"/admin/resultados",label:"Resultados",icon:ie}]},{group:"Club",items:[{to:"/admin/equipos",label:"Equipos",icon:oe},{to:"/admin/jugadores",label:"Jugadores",icon:ne},{to:"/admin/estadios",label:"Estadios",icon:le}]},{group:"Tienda",items:[{to:"/admin/categorias",label:"Categorías",icon:re},{to:"/admin/productos",label:"Productos",icon:ce},{to:"/admin/pedidos",label:"Pedidos",icon:de}]},{group:"Comunidad",items:[{to:"/admin/newsletter",label:"Newsletter",icon:ue}]}];function Ve(){const{user:a,signOut:n}=D(),m=V(),u=j(),[i,r]=t.useState(!1);t.useEffect(()=>{r(!1)},[u.pathname]);const p=async()=>{await n(),m("/admin/login",{replace:!0})},l=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-5 py-5 border-b border-white/10 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:"/images/logo.png",alt:"Sociedad Deportivo Quito",width:256,height:256,className:"h-12 w-auto shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white text-sm font-semibold leading-none",children:"Deportivo Quito"}),e.jsx("p",{className:"text-white/40 text-[11px] mt-0.5",children:"Panel Admin"})]})]}),e.jsx("button",{onClick:()=>r(!1),"aria-label":"Cerrar menú",className:"lg:hidden text-white/60 hover:text-white p-1",children:e.jsx(C,{className:"w-5 h-5"})})]}),e.jsx("nav",{className:"flex-1 px-3 py-4 space-y-5",children:ze.map((x,c)=>e.jsxs("div",{children:[x.group&&e.jsx("p",{className:"px-2 mb-1 text-[10px] font-semibold uppercase tracking-widest text-white/30",children:x.group}),e.jsx("ul",{className:"space-y-0.5",children:x.items.map(({to:d,label:h,icon:b,end:g})=>e.jsx("li",{children:e.jsxs(M,{to:d,end:g,className:({isActive:R})=>`flex items-center gap-2.5 px-2 py-2 rounded-lg text-sm transition-colors ${R?"bg-white/10 text-white font-medium":"text-white/60 hover:text-white hover:bg-white/5"}`,children:[e.jsx(b,{className:"w-4 h-4 shrink-0"}),h]})},d))})]},c))}),e.jsxs("div",{className:"px-3 py-4 border-t border-white/10",children:[e.jsx("p",{className:"px-2 mb-2 text-white/40 text-[11px] truncate",children:a==null?void 0:a.email}),e.jsxs("button",{onClick:p,className:"flex items-center gap-2.5 px-2 py-2 rounded-lg text-sm text-white/60 hover:text-white hover:bg-white/5 transition-colors w-full",children:[e.jsx(me,{className:"w-4 h-4"}),"Cerrar sesión"]})]})]});return e.jsxs("div",{className:"flex h-screen bg-gray-100 overflow-hidden",children:[e.jsx("aside",{className:"hidden lg:flex w-60 bg-sdq-dark-blue flex-col shrink-0 overflow-y-auto",children:l}),i&&e.jsxs("div",{className:"lg:hidden fixed inset-0 z-50 flex",children:[e.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:()=>r(!1),"aria-hidden":"true"}),e.jsx("aside",{className:"relative w-72 max-w-[80vw] bg-sdq-dark-blue flex flex-col overflow-y-auto",children:l})]}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0 overflow-hidden",children:[e.jsxs("div",{className:"lg:hidden flex items-center gap-3 bg-sdq-dark-blue px-4 py-3 shrink-0",children:[e.jsx("button",{onClick:()=>r(!0),"aria-label":"Abrir menú",className:"text-white p-1",children:e.jsx(T,{className:"w-6 h-6"})}),e.jsx("img",{src:"/images/logo.png",alt:"Sociedad Deportivo Quito",width:256,height:256,className:"h-8 w-auto"}),e.jsx("span",{className:"text-white text-sm font-semibold",children:"Panel Admin"})]}),e.jsx("main",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:e.jsx(B,{})})]})]})}const Me=t.lazy(()=>o(()=>import("./Home-7QmWxOfq.js"),__vite__mapDeps([0,1,2,3,4,5]))),Be=t.lazy(()=>o(()=>import("./Plantilla-DXrCyhEH.js"),__vite__mapDeps([6,1,3,5]))),Fe=t.lazy(()=>o(()=>import("./JugadorDetalle-CbkU8sNb.js"),__vite__mapDeps([7,1,3,5]
13))),Ue=t.lazy(()=>o(()=>import("./Calendario-yyJ5-Q7C.js"),__vite__mapDeps([8,1,4,3,5]))),Ge=t.lazy(()=>o(()=>import("./Tabla-D9OZ_7kk.js"),__vite__mapDeps([9,1,3,5]))),Qe=t.lazy(()=>o(()=>import("./Estadisticas-BJa2M0Hp.js"),__vite__mapDeps([10,1,3,5]))),He=t.lazy(()=>o(()=>import("./Historia-CCrNbiN4.js"),__vite__mapDeps([11,1,3,5]))),Je=t.lazy(()=>o(()=>import("./Palmares-CWDdDl5J.js"),__vite__mapDeps([12,1,3,5]))),$e=t.lazy(()=>o(()=>import("./Instalaciones-s3EdMyMv.js"),__vite__mapDeps([13,1,4,3,5]))),Ke=t.lazy(()=>o(()=>import("./Basket-CFKth72Q.js"),__vite__mapDeps([14,1,4,3,5]))),Ye=t.lazy(()=>o(()=>import("./FutbolFemenino-DRaX4WAy.js"),__vite__mapDeps([15,1,4,3,5]))),We=t.lazy(()=>o(()=>import("./HazteSocio-d-8VG237.js"),__vite__mapDeps([16,1,3,5]))),Xe=t.lazy(()=>o(()=>import("./Tickets-CF86r0vT.js"),__vite__mapDeps([17,1,4,3,5]))),Ze=t.lazy(()=>o(()=>import("./SdquitoTV-BWhWZm2-.js"),__vite__mapDeps([18,3,1,5]))),et=t.lazy(()=>o(()=>import("./Contactanos-SZW0If3L.js"),__vite__mapDeps([19,1,3,5]))),tt=t.lazy(()=>o(()=>import("./Noticias-CQ88UX4v.js"),__vite__mapDeps([20,1,2,3,5]))),at=t.lazy(()=>o(()=>import("./NoticiaDetalle-CVlLIxZw.js"),__vite__mapDeps([21,1,2,4,3,5]))),st=t.lazy(()=>o(()=>import("./Tienda-DenAHG-q.js"),__vite__mapDeps([22,1,3,5]))),it=t.lazy(()=>o(()=>import("./ProductoDetalle-DgmnGBG-.js"),__vite__mapDeps([23,1,3,5]))),ot=t.lazy(()=>o(()=>import("./Carrito-SvWfVc3O.js"),__vite__mapDeps([24,3,1,5]))),nt=t.lazy(()=>o(()=>import("./Checkout-D3pg9ZXr.js"),__vite__mapDeps([25,1,3,5,26]))),lt=t.lazy(()=>o(()=>import("./OrdenConfirmada-yn8ySGyM.js"),__vite__mapDeps([27,1,3,5]))),rt=t.lazy(()=>o(()=>import("./CategoriasFormativas-9NQcQC-O.js"),__vite__mapDeps([28,1,5,3]))),ct=t.lazy(()=>o(()=>import("./AvisoLegal-xlWs-VBo.js"),__vite__mapDeps([29,1,5,3]))),dt=t.lazy(()=>o(()=>import("./Privacidad-BTlBQQ9I.js"),__vite__mapDeps([30,1,5,3]))),ut=t.lazy(()=>o(()=>import("./Cookies-kLYQeiGR.js"),__vite__mapDeps([31,1,5,3]))),mt=t.lazy(()=>o(()=>import("./Login-CP7_cUBB.js"),__vite__mapDeps([32,1,3,5]))),xt=t.lazy(()=>o(()=>import("./Dashboard-Bt_A6c7G.js"),__vite__mapDeps([33,1,3,5]))),pt=t.lazy(()=>o(()=>import("./Noticias-BSei7i7S.js"),__vite__mapDeps([34,1,4,2,35,3,36,37,38,5,39]))),ht=t.lazy(()=>o(()=>import("./Equipos-DDeiI0YT.js"),__vite__mapDeps([40,1,35,3,36,5]))),bt=t.lazy(()=>o(()=>import("./Jugadores-CpEQtFyP.js"),__vite__mapDeps([41,1,35,3,36,37,4,38,5]))),ft=t.lazy(()=>o(()=>import("./Torneos-CtqWUdi6.js"),__vite__mapDeps([42,1,35,3,5]))),gt=t.lazy(()=>o(()=>import("./Etapas-2sac55uv.js"),__vite__mapDeps([43,1,35,3,5]))),vt=t.lazy(()=>o(()=>import("./Calendario-D_cZy7HF.js"),__vite__mapDeps([44,1,4,35,3,37,38,5]))),_t=t.lazy(()=>o(()=>import("./Estadios-Ba7oJf04.js"),__vite__mapDeps([45,1,35,3,5]))),jt=t.lazy(()=>o(()=>import("./Resultados-CyirTN2s.js"),__vite__mapDeps([46,1,4,35,3,5]))),wt=t.lazy(()=>o(()=>import("./Fechas-yQ_jjziO.js"),__vite__mapDeps([47,1,35,3,37,4,38,5]))),yt=t.lazy(()=>o(()=>import("./Categorias--JjEu1_H.js"),__vite__mapDeps([48,1,35,3,36,5]))),Et=t.lazy(()=>o(()=>import("./Productos-DoFdEQjV.js"),__vite__mapDeps([49,1,35,3,36,5]))),Nt=t.lazy(()=>o(()=>import("./Pedidos-BT9TGjAr.js"),__vite__mapDeps([50,1,4,37,3,38,5]))),It=t.lazy(()=>o(()=>import("./Newsletter-DTcFHsuP.js"),__vite__mapDeps([51,1,4,3,5])));function Ot(){return e.jsx(F,{children:e.jsx(De,{children:e.jsxs(we,{children:[e.jsx(Re,{}),e.jsx(t.Suspense,{fallback:null,children:e.jsxs(w,{children:[e.jsx(s,{path:"/admin/login",element:e.jsx(mt,{})}),e.jsxs(s,{path:"/admin",element:e.jsx(qe,{children:e.jsx(Ve,{})}),children:[e.jsx(s,{index:!0,element:e.jsx(xt,{})}),e.jsx(s,{path:"noticias",element:e.jsx(pt,{})}),e.jsx(s,{path:"equipos",element:e.jsx(ht,{})}),e.jsx(s,{path:"jugadores",element:e.jsx(bt,{})}),e.jsx(s,{path:"torneos",element:e.jsx(ft,{})}),e.jsx(s,{path:"etapas",element:e.jsx(gt,{})}),e.jsx(s,{path:"fechas",element:e.jsx(wt,{})}),e.jsx(s,{path:"estadios",element:e.jsx(_t,{})}),e.jsx(s,{path:"calendario",element:e.jsx(vt,{})}),e.jsx(s,{path:"resultados",element:e.jsx(jt,{})}),e.jsx(s,{path:"categorias",element:e.jsx(yt,{})}),e.jsx(s,{path:"productos",element:e.jsx(Et,{})}),e.jsx(s,{path:"pedidos",element:e.jsx(Nt,{})}),e.jsx(s,{path:"newsletter",element:e.jsx(It,{})})]}),e.jsx(s,{path:"/*",element:e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(je,{}),e.jsx(Ee,{}),e.jsxs(w,{children:[e.jsx(s,{path:"/",element:e.jsx(Me,{})}),e.jsx(s,{path:"/primer-equipo/plantilla",element:e.jsx(Be,{})}),e.jsx(s,{path:"/primer-equipo/plantilla/:id",element:e.jsx(Fe,{})}),e.jsx(s,{path:"/primer-equipo/calendario",element:e.jsx(Ue,{})}),e.jsx(s,{path:"/primer-equipo/tabla",element:e.jsx(Ge,{})}),e.jsx(s,{path:"/primer-equipo/estadisticas",element:e.jsx(Qe,{})}),e.jsx(s,{path:"/futbol/categorias-formativas",element:e.jsx(rt,{})}),e.jsx(s,{path:"/club/historia",element:e.jsx(He,{})}),e.jsx(s,{path:"/club/titulos",element:e.jsx(Je,{})}),e.jsx(s,{path:"/club/instalaciones",element:e.jsx($e,{})}),e.jsx(s,{path:"/otras-disciplinas/basket",element:e.jsx(Ke,{})}),e.jsx(s,{path:"/otras-disciplinas/futbol-femenino",element:e.jsx(Ye,{})}),e.jsx(s,{path:"/abonados",element:e.jsx(We,{})}),e.jsx(s,{path:"/tickets",element:e.jsx(Xe,{})}),e.jsx(s,{path:"/sdquitotv",element:e.jsx(Ze,{})}),e.jsx(s,{path:"/contactanos",element:e.jsx(et,{})}),e.jsx(s,{path:"/noticias",element:e.jsx(tt,{})}),e.jsx(s,{path:"/noticias/:slug",element:e.jsx(at,{})}),e.jsx(s,{path:"/tienda",element:e.jsx(st,{})}),e.jsx(s,{path:"/tienda/:slug",element:e.jsx(it,{})}),e.jsx(s,{path:"/carrito",element:e.jsx(ot,{})}),e.jsx(s,{path:"/checkout",element:e.jsx(nt,{})}),e.jsx(s,{path:"/orden-confirmada",element:e.jsx(lt,{})}),e.jsx(s,{path:"/aviso-legal",element:e.jsx(ct,{})}),e.jsx(s,{path:"/privacidad",element:e.jsx(dt,{})}),e.jsx(s,{path:"/cookies",element:e.jsx(ut,{})})]}),e.jsx(Pe,{})]})})]})})]})})})}window.addEventListener("vite:preloadError",()=>{const a="chunk-reload-attempted";sessionStorage.getItem(a)||(sessionStorage.setItem(a,"1"),window.location.reload())});k(document.getElementById("root")).render(e.jsx(t.StrictMode,{children:e.jsx(Ot,{})}));export{Dt as A,Lt as C,zt as E,St as I,Pt as W,Vt as a,kt as b,Rt as c,qt as d,D as e,Mt as f,e as j,v as s,ye as u};

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.