PageSourceSearch

https://conoceciudaddemexico.com/_next/static/chunks/6629-d3e204154fe27bcd.js

js conoceciudaddemexico.com collected 2026-10-02 01:26:27 UTC 159,095 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6629],{2333:(e,t,l)=>{l.d(t,{m:()=>y});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(90615),d=l(25327),x=l(57937),u=l(58293),p=l(73945),m=l(53704),h=l(66878),f=l(58521),g=l(18618),j=l(41726);let b="cultura";function v(e){let{category:t,isActive:l,onToggle:s}=e,n=t.image.startsWith("http")||t.image.startsWith("/");return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:n?(0,a.jsx)("img",{src:t.image,alt:"",width:40,height:40,className:"object-contain size-[40px]"}):(0,a.jsx)("span",{className:"text-[40px] leading-none","aria-hidden":"true",children:t.image})}),(0,a.jsx)("span",{className:"text-[#7b7b80] text-[12px] text-center leading-tight",children:t.name})]})}function N(e){let{categories:t,activeCategories:l,onToggle:s,scroll:n}=e,i=(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(v,{category:e,isActive:l.includes(e.id),onToggle:()=>s(e.id)},e.id))});return n?(0,a.jsxs)(c.V,{children:[(0,a.jsx)(d.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(x.q,{className:"flex gap-1 py-1",children:i})}),(0,a.jsx)(u.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(p.l,{})})]}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:i})}function y(e){let{locale:t}=e,l=(0,n.useTranslations)("descubre"),c=(0,n.useTranslations)("search"),d=(0,n.useLocale)(),x=d===i.D.defaultLocale?"":"/".concat(d),u="".concat(x,"/cultura"),[p,v]=(0,s.useState)([]),[y,w]=(0,s.useState)(null),[C,k]=(0,s.useState)(!1),[_,S]=(0,s.useState)(1),[z,L]=(0,s.useState)([]),{data:M=[],isLoading:T}=(0,m.qh)(b,t),{data:A,isLoading:D,isFetching:I}=(0,m.y9)(b,t,p.length>0?p:void 0,_,12),[F,E]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==A?void 0:A.total)!==void 0&&E(A.total)},[null==A?void 0:A.total]);let K=z.length<F;function q(e){let t=p.includes(e)?[]:[e],a=M.find(t=>t.id===e),s=t.length>
10&&a?"".concat(u,"/").concat((0,r.Y)(a.name,a.id)):u;window.history.replaceState(null,"",s),v(t),t.length>0&&a?(0,o.w)(a.name):(0,o.w)(l("tab_cultura"))}function W(e){w(e);let t=1===p.length?M.find(e=>e.id===p[0]):null,l=t?"".concat(u,"/").concat((0,r.Y)(t.name,t.id),"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id):"".concat(u,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id);window.history.pushState(null,"",l),(0,o.w)(e.title)}return(0,s.useEffect)(()=>{S(1),L([])},[p.join(",")]),(0,s.useEffect)(()=>{(null==A?void 0:A.items)&&L(e=>1===_?A.items:[...e,...A.items])},[null==A?void 0:A.items,_]),(0,s.useEffect)(()=>{if(0===M.length)return;let e=window.location.pathname.split("/").filter(Boolean),t=e.findIndex(e=>e===b),l=t>=0?e[t+1]:null;if(!l)return;let a=M.find(e=>(0,r.Y)(e.name,e.id)===l);a&&v([a.id])},[M]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>k(!0),"aria-label":l("search_cultura"),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:l("search_cultura")})]})}),T?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q,scroll:!0}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("cultura_heading")})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-4 pb-6",children:[D&&0===z.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)(f.Wy,{},t)):0===z.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"\uD83C\uDFDB️"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:l("coming_soon")})]}):z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)},e.id)),K&&(I?(0,a.jsx)("div",{className:"w-full h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-full py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")}))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[T?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("cultura_heading")})}),D&&0===z.length?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Wy,{},t))}):0===z.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"\uD83C\uDFDB️"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:l("coming_soon")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)},e.id))}),K&&(0,a.jsx)("div",{className:"flex justify-center",children:I?(0,a.jsx)("div",{className:"w-1/3 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-1/3 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")})})]})]}),(0,a.jsx)(j.q,{sectionId:b,open:C,onClose:()=>k(!1),placeholder:l("search_cultura"),onSelect:e=>W(e),nearbyLabel:c("suggested_cultura"),zoneCountLabel:e=>c("zone_count_cultura",{count:e})}),(0,a.jsx)(g.K,{event:y,open:null!==y,onClose:function(){w(null);let e=1===p.length?M.find(e=>e.id===p[0]):null,t=e?"".concat(u,"/").concat((0,r.Y)(e.name)):u;window.history.replaceState(null,"",t),(0,o.w)(e?e.name:l("tab_cultura"))}})]})}},3135:(e,t,l)=>{l.d(t,{f:()=>C});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(90615),d=l(25327),x=l(57937),u=l(58293),p=l(73945),m=l(53704),h=l(46492),f=l(66878),g=l(42775),j=l(58521);function b(e){var t;let{locale:l}=e,c=(0,n.useTranslations)("descubre"),d=(0,n.useLocale)(),{data:x,isLoading:u}=(0,m.b3)(l),p=null!=(t=null==x?void 0:x.items)?t:[],[b,v]=(0,s.use
1State)(null),[N,y]=(0,s.useState)(""),w=d===i.D.defaultLocale?"":"/".concat(d);return u||0!==p.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"featured-hotels-heading",className:"flex flex-col gap-4 py-4 lg:py-0",children:[(0,a.jsx)("div",{className:"flex items-center justify-between px-4 lg:px-0",children:(0,a.jsx)("h2",{id:"featured-hotels-heading",className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:c("featured_hotels_heading")})}),(0,a.jsx)(g.b,{gap:"gap-3",children:u?Array.from({length:3}).map((e,t)=>(0,a.jsx)(j.Wy,{carousel:!0},t)):p.map(e=>(0,a.jsx)("div",{className:"snap-start shrink-0 w-[294px] flex flex-col",children:(0,a.jsx)(f.d,{hotel:e,onClick:()=>{y(window.location.pathname),v(e),window.history.pushState(null,"","".concat(w,"/hospedaje/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)}})},e.id))})]}),(0,a.jsx)(h.A,{hotel:b,open:null!==b,onClose:function(){v(null),window.history.replaceState(null,"",N||"".concat(w,"/hospedaje")),(0,o.w)(c("tab_hospedaje"))}})]}):null}var v=l(41726);let N="hospedaje";function y(e){let{category:t,isActive:l,onToggle:s}=e,n=t.image.startsWith("http")||t.image.startsWith("/");return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:n?(0,a.jsx)("img",{src:t.image,alt:"",width:40,height:40,className:"object-contain size-[40px]"}):(0,a.jsx)("span",{className:"text-[40px] leading-none","aria-hidden":"true",children:t.image})}),(0,a.jsx)("span",{className:"text-[#7b7b80] text-[12px] text-center leading-tight",children:t.name})]})}function w(e){let{categories:t,activeCategories:l,onToggle:s,scroll:n}=e,i=(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(y,{category:e,isActive:l.includes(e.id),onToggle:()=>s(e.id)},e.id))});return n?(0,a.jsxs)(c.V,{children:[(0,a.jsx)(d.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(x.q,{className:"flex gap-1 py-1",children:i})}),(0,a.jsx)(u.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(p.l,{})})]}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:i})}function C(e){let{locale:t}=e,l=(0,n.useTranslations)("descubre"),c=(0,n.useLocale)(),d=c===i.D.defaultLocale?"":"/".concat(c),x="".concat(d,"/hospedaje"),[u,p]=(0,s.useState)([]),[g,y]=(0,s.useState)(null),[C,k]=(0,s.useState)(!1),[_,S]=(0,s.useState)(1),[z,L]=(0,s.useState)([]),{data:M=[],isLoading:T}=(0,m.CL)(t);(0,s.useEffect)(()=>{if(0===M.length)return;let e=window.location.pathname.split("/").filter(Boolean),t=e.findIndex(e=>e===N),l=t>=0?e[t+1]:null;if(!l)return;let a=M.find(e=>(0,r.Y)(e.name,e.id)===l);a&&p([a.id])},[M]);let{data:A,isLoading:D,isFetching:I}=(0,m.el)(t,u.length>0?u:void 0,_,12),[F,E]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==A?void 0:A.total)!==void 0&&E(A.total)},[null==A?void 0:A.total]);let K=z.length<F;function q(e){let t=u.includes(e)?[]:[e],a=M.find(t=>t.id===e),s=t.length>
10&&a?"".concat(x,"/").concat((0,r.Y)(a.name,a.id)):x;window.history.replaceState(null,"",s),p(t),t.length>0&&a?(0,o.w)(a.name):(0,o.w)(l("tab_hospedaje"))}function W(e){y(e);let t=1===u.length?M.find(e=>e.id===u[0]):null,l=t?"".concat(x,"/").concat((0,r.Y)(t.name,t.id),"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id):"".concat(x,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id);window.history.pushState(null,"",l),(0,o.w)(e.title)}return(0,s.useEffect)(()=>{S(1),L([])},[u.join(",")]),(0,s.useEffect)(()=>{(null==A?void 0:A.items)&&L(e=>1===_?A.items:[...e,...A.items])},[null==A?void 0:A.items,_]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>k(!0),"aria-label":l("search_hotels"),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:l("search_hotels")})]})}),T?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(j.Dh,{},t))}):M.length>0&&(0,a.jsx)(w,{categories:M,activeCategories:u,onToggle:q,scroll:!0}),(0,a.jsx)(b,{locale:t}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("hotels_heading")})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-4",children:[D&&0===z.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)(j.Wy,{},t)):0===z.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"\uD83C\uDFE8"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:l("no_results")})]}):z.map(e=>(0,a.jsx)(f.d,{hotel:e,onClick:()=>W(e)},e.id)),K&&(I?(0,a.jsx)("div",{className:"w-full h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-full py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")}))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[T?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(j.Dh,{},t))}):M.length>0&&(0,a.jsx)(w,{categories:M,activeCategories:u,onToggle:q}),(0,a.jsx)(b,{locale:t}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("hospedaje_desktop_heading")})}),D&&0===z.length?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(j.Wy,{},t))}):0===z.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"\uD83C\uDFE8"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:l("no_results")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:z.map(e=>(0,a.jsx)(f.d,{hotel:e,onClick:()=>W(e)},e.id))}),K&&(0,a.jsx)("div",{className:"flex justify-center",children:I?(0,a.jsx)("div",{className:"w-1/3 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-1/3 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")})})]})]}),(0,a.jsx)(v.q,{sectionId:N,open:C,onClose:()=>k(!1),placeholder:l("search_hotels"),onSelect:e=>W(e)}),(0,a.jsx)(h.A,{hotel:g,open:null!==g,onClose:function(){y(null);let e=1===u.length?M.find(e=>e.id===u[0]):null,t=e?"".concat(x,"/").concat((0,r.Y)(e.name)):x;window.history.replaceState(null,"",t),(0,o.w)(e?e.name:l("tab_hospedaje"))}})]})}},3674:(e,t,l)=>{l.d(t,{HomeTabs:()=>T});var a=l(95155),s=l(12115),n=l(95604),i=l(57430),r=l(52923),o=l(95793),c=l(58236),d=l(18618);function x(e){let{activeTab:t}
1=e,l=(0,n.useTranslations)("descubre"),[i,r]=(0,s.useState)(!1),[o,x]=(0,s.useState)(null),u=l("hospedaje"===t?"search_hotels":"gastronomia"===t?"search_restaurants":"search_events");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors","aria-label":u,children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:u})]}),(0,a.jsx)(c.R,{open:i,onClose:()=>r(!1),onSelect:e=>x(e)}),(0,a.jsx)(d.K,{event:o,open:null!==o,onClose:()=>x(null)})]})}var u=l(17012),p=l(64271),m=l(13021),h=l(80657),f=l(17524),g=l(74708),j=l(93196),b=l(13373),v=l(3135),N=l(39836),y=l(99293),w=l(2333),C=l(16361),k=l(41733),_=l(11695);function S(e){let{children:t,minHeight:l=300,rootMargin:n="400px"}
1=e,i=(0,s.useRef)(null),[r,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=new IntersectionObserver(e=>{let[l]=e;l.isIntersecting&&(o(!0),t.disconnect())},{rootMargin:n});return t.observe(e),()=>t.disconnect()},[n]),(0,a.jsx)("div",{ref:i,style:r?{display:"contents"}:{minHeight:l},children:r?t:null})}var z=l(98505),L=l(15043),M=l(25501);function T(e){let{locale:t,initialTab:l}=e,c=(0,n.useTranslations)("descubre"),d=(0,n.useLocale)(),[u,p]=(0,s.useState)(null!=l?l:"eventos");return(0,a.jsxs)("div",{className:"min-h-full flex flex-col overflow-x-hidden",children:[(0,a.jsxs)("div",{className:"relative overflow-hidden bg-[#ab89f3]",children:[(0,a.jsxs)("div",{"aria-hidden":"true",className:"absolute pointer-events-none select-none",style:{left:-8,top:-63.5,width:416,height:208},children:[(0,a.jsx)("img",{src:"/mobile-home-bg.png",alt:"",className:"absolute inset-0 w-full h-full object-cover object-top"}),(0,a.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(171,137,243,0) 0%, #ab89f3 50%)"}})]}),(0,a.jsx)("div",{className:"relative z-10",children:(0,a.jsx)(o.j,{activeTab:u,onTabChange:function(e){p(e);let t=d===r.D.defaultLocale?"":"/".concat(d),l="eventos"===e?t||"/":"".concat(t,"/").concat(e);window.history.replaceState(null,"",l),"eventos"===e?(0,i.L)(c("title")):(0,i.w)(c("tab_".concat(e)))},mobile:!0})})]}),"deportes"!==u&&"hospedaje"!==u&&"gastronomia"!==u&&"vuelos"!==u&&"cultura"!==u&&"experiencias"!==u&&"movilidad"!==u&&"informacion"!==u&&(0,a.jsx)("div",{className:"px-4 pt-4 pb-2",children:(0,a.jsx)(x,{activeTab:u})}),"eventos"===u&&(0,a.jsx)(A,{locale:t}),"deportes"===u&&(0,a.jsx)(b.Q,{locale:t}),"hospedaje"===u&&(0,a.jsx)(v.f,{locale:t}),"gastronomia"===u&&(0,a.jsx)(N.S,{locale:t}),"vuelos"===u&&(0,a.jsx)(y.i,{locale:t}),"cultura"===u&&(0,a.jsx)(w.m,{locale:t}),"experiencias"===u&&(0,a.jsx)(C.o,{locale:t}),"movilidad"===u&&(0,a.jsx)(k.h,{locale:t,mobile:!0}),"informacion"===u&&(0,a.jsx)(_.b,{}),"eventos"!==u&&"deportes"!==u&&"hospedaje"!==u&&"gastronomia"!==u&&"vuelos"!==u&&"cultura"!==u&&"experiencias"!==u&&"movilidad"!==u&&"informacion"!==u&&(0,a.jsx)(I,{tab:u}),(0,a.jsx)("div",{className:"flex-1","aria-hidden":"true"}),(0,a.jsx)(D,{}),(0,a.jsx)("div",{style:{height:"calc(60px + env(safe-area-inset-bottom, 0px))"},"aria-hidden":"true"})]})}function A(e){let{locale:t}=e,{data:l=[]}=(0,L.Z)(),[s,n,i]=[...l].sort((e,t)=>e.order-t.order);return(0,a.jsxs)("div",{className:"flex flex-col gap-10 pt-6",children:[(0,a.jsx)(m.k,{locale:t,mobile:!0}),(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(M.H,{})}),(0,a.jsx)("section",{className:"px-4",children:(0,a.jsx)(u.FeaturedCarousel,{locale:t})}),(0,a.jsx)(S,{minHeight:350,children:(0,a.jsx)(p.g,{})}),s&&(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(z.g,{src:s.videoUrl})}),(0,a.jsx)(S,{minHeight:320,children:(0,a.jsx)(h.D,{locale:t})}),n&&(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(z.g,{src:n.videoUrl})}),(0,a.jsx)(S,{minHeight:280,children:(0,a.jsx)(f.Z,{locale:t})}),i&&(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(z.g,{src:i.videoUrl})}),(0,a.jsx)(S,{minHeight:280,children:(0,a.jsx)(g.X,{locale:t})}),(0,a.jsx)(S,{minHeight:280,children:(0,a.jsx)(j.j,{locale:t})})]})}function D(){return(0,a.jsxs)("div",{className:"relative w-full overflow-hidden pointer-events-none select-none",style:{height:"110px",marginTop:"8px"},children:[(0,a.jsx)("img",{src:"/jacaranda-footer.png",alt:"","aria-hidden":"true",className:"absolute left-0 bottom-0 w-full",style:{opacity:.6,height:"220px"}}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-0 pointer-events-none",style:{height:"40px",background:"linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 100%)"}})]})}function I(e){let{tab:t}=e,l=(0,n.useTranslations)("descubre");return(0,a.jsxs)("div",{className:"px-4 py-12 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:{eventos:"\uD83D\uDCC5",deportes:"⚽",hospedaje:"\uD83C\uDFE8",gastronomia:"\uD83C\uDF7D️",experiencias:"\uD83C\uDFAD",vuelos:"✈️",cultura:"\uD83C\uDFDB️",movilidad:"\uD83D\uDE8C",informacion:"ℹ️"}[t]}),(0,a.jsx)("p",{className:"font-display font-bold text-[20px] text-[#262626]",children:l("coming_soon")})]})}},11695:(e,t,l)=>{l.d(t,{b:()=>N});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(57430),o=l(91814),c=l(22281),d=l(94992),x=l(13554),u=l(67866),p=l(98050),m=l(65029),h=l(67624),f=l(61556);function g(e){let{open:t,onClose:l,onSelect:i}
1=e,r=(0,n.useTranslations)("descubre"),[c,g]=(0,s.useState)(""),N=(0,s.useMemo)(()=>o.N.map(e=>({...e,name:r(e.nameKey)})),[r]),y=c.trim().toLowerCase(),w=(0,s.useMemo)(()=>y?N.filter(e=>e.name.toLowerCase().includes(y)||e.address.toLowerCase().includes(y)):N,[y,N]);return(0,a.jsx)(d.D,{open:t,onOpenChange:e=>{e||(g(""),l())},children:(0,a.jsxs)(x.Z,{children:[(0,a.jsx)(u.X,{className:"fixed inset-0 bg-black/30 z-40 transition-opacity data-[open]:opacity-100 data-[closed]:opacity-0"}),(0,a.jsx)(p.D,{className:"fixed inset-0 flex items-start justify-center pt-[60px] px-4 z-40",children:(0,a.jsxs)(m.h,{className:"bg-white w-full max-w-[640px] rounded-[24px] shadow-lg outline-none max-h-[80dvh] flex flex-col data-[open]:opacity-100 data-[closed]:opacity-0 data-[open]:translate-y-0 data-[closed]:-translate-y-2 transition-[opacity,transform]",children:[(0,a.jsx)("div",{className:"shrink-0 p-3 pt-5",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-[#f8f2f2] rounded-full px-3 h-12",children:[(0,a.jsx)(b,{}),(0,a.jsx)(h.L,{className:"sr-only",children:r("search_informacion")}),(0,a.jsx)("input",{type:"text",value:c,onChange:e=>g(e.target.value),placeholder:r("search_informacion"),"aria-label":r("search_informacion"),className:"flex-1 min-w-0 bg-transparent text-[16px] font-semibold text-[#262626] placeholder:text-[#9a8f8f] outline-none",autoFocus:!0}),(0,a.jsx)(f.H,{className:"shrink-0 size-8 flex items-center justify-center rounded-full hover:bg-[#ede6e6] transition-colors text-[#7b7b80]","aria-label":r("cancel"),children:(0,a.jsx)(v,{})})]})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===w.length?(0,a.jsxs)("div",{className:"p-8 flex flex-col items-center text-center gap-1",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[28px] text-[#342828] leading-tight",children:r("no_results")}),(0,a.jsxs)("p",{className:"font-display font-bold text-[28px] text-[#342828] leading-tight",children:["“",c.trim(),"”"]}),(0,a.jsx)("p",{className:"mt-2 text-[14px] text-[#5d6a6e]",children:r("search_no_results_hint")})]}):(0,a.jsxs)("div",{className:"p-4 flex flex-col gap-2",role:"listbox",children:[!y&&(0,a.jsx)("p",{className:"font-display font-bold text-[18px] text-[#342828] mb-2",children:r("available_modules")}),w.map(e=>(0,a.jsxs)("button",{type:"button",role:"option",onClick:()=>{l(),i(e)},className:"flex items-center gap-3 w-full text-left bg-[#f8f2f2] rounded-[16px] p-3 hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("div",{className:"size-[40px] rounded-full overflow-hidden shrink-0 bg-[#e8dede] flex items-center justify-center",children:(0,a.jsx)("img",{src:e.image,alt:"",className:"size-full object-cover"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[(0,a.jsx)("p",{className:"text-[14px] font-semibold leading-tight text-[#342828]",children:(0,a.jsx)(j,{title:e.name,query:y})}),(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80] truncate",children:e.address})]}),(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 shrink-0 text-[#9a8f8f]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})]},e.id))]})})]})})]})})}function j(e){let{title:t,query:l}=e;if(!l)return(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t});let s=t.toLowerCase().indexOf(l);return s<0?(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t}):(0,a.jsxs)(a.Fragment,{children:[s>0&&(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t.slice(0,s)}),(0,a.jsx)("span",{className:"text-[#ab89f3]",children:t.slice(s,s+l.length)}),(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t.slice(s+l.length)})]})}function b(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 shrink-0 text-[#9a8f8f]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}
1function v(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}function N(e){let{externalSearchOpen:t,onExternalSearchClose:l}=e,d=(0,n.useTranslations)("descubre"),x=(0,n.useLocale)(),[u,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(!1),f=x===i.D.defaultLocale?"":"/".concat(x),j=()=>{h(!1),null==l||l()};function b(e){p(e),window.history.pushState(null,"","".concat(f,"/informacion/").concat(e.id)),(0,r.w)(d(e.nameKey))}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-10 py-4 pb-8",children:[(0,a.jsx)("div",{className:"px-4 lg:px-0 lg:hidden",children:(0,a.jsxs)("button",{type:"button",onClick:()=>h(!0),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors","aria-label":d("search_informacion"),children:[(0,a.jsx)(C,{}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:d("search_informacion")})]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-8 px-4 lg:px-0 sm:flex-row sm:flex-wrap sm:items-start sm:gap-12",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:d("xoli_guide_heading")}),(0,a.jsxs)("a",{href:"https://wa.me/52565659395",target:"_blank",rel:"noopener noreferrer",className:"bg-[#f8f2f2] rounded-[12px] p-4 flex items-center gap-3 hover:bg-[#f0e8e8] transition-colors lg:max-w-[320px]",children:[(0,a.jsx)("div",{className:"relative shrink-0 size-[48px] overflow-hidden",children:(0,a.jsx)("img",{src:"/informacion/xoli-chip-full.png",alt:"Xoli",className:"absolute h-[149.49%] left-[-63.48%] top-[-49.49%] w-[238.91%] max-w-none"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80] leading-tight",children:"Xoli"}),(0,a.jsx)("p",{className:"text-[12px] font-bold text-[#251c1c] leading-tight",children:"565659395"})]}),(0,a.jsx)(w,{})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 min-w-0",children:[(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:d("emergency_numbers")}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:hidden",children:[(0,a.jsxs)("a",{href:"tel:".concat(o.z[0].number.replace(/\s+/g,"")),className:"bg-[#f8f2f2] rounded-[12px] p-4 flex items-center gap-3 hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("img",{src:o.z[0].icon,alt:"",className:"size-[48px] object-contain shrink-0"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80] leading-tight",children:d(o.z[0].labelKey)}),(0,a.jsx)("p",{className:"text-[12px] font-bold text-[#251c1c] leading-tight",children:o.z[0].number})]}),(0,a.jsx)(k,{})]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:o.z.slice(1).map(e=>(0,a.jsxs)("a",{href:"tel:".concat(e.number.replace(/\s+/g,"")),className:"bg-[#f8f2f2] rounded-[12px] p-4 flex flex-col gap-3 hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("img",{src:e.icon,alt:"",className:"size-[48px] object-contain"}),(0,a.jsxs)("div",{className:"flex items-end justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-[12px] text-[#7b7b80]",children:d(e.labelKey)}),(0,a.jsx)("span",{className:"text-[12px] font-bold text-[#251c1c]",children:e.number})]}),(0,a.jsx)(k,{})]})]},e.id))})]}),(0,a.jsx)("div",{className:"hidden sm:flex flex-wrap gap-3",children:o.z.map(e=>(0,a.jsxs)("a",{href:"tel:".concat(e.number.replace(/\s+/g,"")),className:"bg-[#f8f2f2] rounded-[12px] p-4 flex items-center gap-3 hover:bg-[#f0e8e8] transition-colors min-w-[180px] max-w-[300px]",children:[(0,a.jsx)("img",{src:e.icon,alt:"",className:"size-[48px] object-contain shrink-0"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80] leading-tight",children:d(e.labelKey)}),(0,a.jsx)("p",{className:"text-[12px] font-bold text-[#251c1c] leading-tight",children:e.number})]}),(0,a.jsx)(k,{})]},e.id))})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 px-4 lg:px-0",children:[(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:d("info_modules_heading")})}),(0,a.jsx)("div",{className:"flex flex-col gap-3 lg:grid lg:grid-cols-2",children:o.N.map(e=>(0,a.jsx)(y,{module:e,onClick:()=>b(e)}
1,e.id))})]})]}),(0,a.jsx)(g,{open:null!=t&&t||m,onClose:j,onSelect:e=>{j(),b(e)}}),(0,a.jsx)(c.f,{module:u,open:null!==u,onClose:function(){p(null),window.history.replaceState(null,"","".concat(f,"/informacion")),(0,r.w)(d("tab_informacion"))}})]})}function y(e){let{module:t,onClick:l}=e,s=(0,n.useTranslations)("descubre");return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] p-[12px] flex gap-[12px] items-center cursor-pointer hover:shadow-[0_6px_24px_rgba(0,0,0,0.10)] active:scale-[0.98] transition-[box-shadow,transform] duration-200",onClick:l,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&l(),children:[(0,a.jsx)("div",{className:"relative shrink-0 size-[86px] rounded-[12px] overflow-hidden bg-[#e8dede]",children:(0,a.jsx)("img",{src:t.image,alt:"",className:"w-full h-full object-cover"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("p",{className:"flex-1 min-w-0 font-semibold text-[16px] text-[#4e3853] leading-tight",children:s(t.nameKey)}),(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 shrink-0 text-[#4e3853] mt-0.5","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})]}),(0,a.jsx)("p",{className:"text-[14px] text-[#7b7b80] leading-snug line-clamp-2",children:t.address})]})]})}function w(){return(0,a.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",className:"size-6 lg:size-5 shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M17.0044 2.90667C15.1333 1.03111 12.6444 0 9.99556 0C4.53333 0 0.0844445 4.44444 0.0844445 9.91111C0.0844445 11.6578 0.537778 13.36 1.40444 14.8667L0 20L5.25333 18.6222C6.69778 19.4133 8.32889 19.8267 9.99111 19.8267H9.99556C15.4533 19.8267 20 15.3822 20 9.91556C20 7.26667 18.8756 4.78222 17.0044 2.90667ZM9.99556 18.1556C8.51556 18.1556 7.06222 17.76 5.8 17.0089L5.50222 16.8311L2.38667 17.6489L3.21778 14.6089L3.02222 14.2978C2.19111 12.9822 1.76 11.4667 1.76 9.91111C1.76 5.36889 5.45778 1.67556 10 1.67556C12.2 1.67556 14.2667 2.53333 15.8222 4.08889C17.3778 5.64444 18.3333 7.71556 18.3289 9.91556C18.3244 14.4578 14.5378 18.1556 9.99556 18.1556ZM14.5156 11.9867C14.2711 11.8622 13.0533 11.2622 12.8222 11.1822C12.5956 11.0978 12.4311 11.0578 12.2622 11.3067C12.0978 11.5556 11.6222 12.1111 11.4756 12.28C11.3333 12.4444 11.1867 12.4667 10.9378 12.3422C9.48444 11.6133 8.52889 11.0444 7.56889 9.39556C7.31556 8.96 7.82222 8.99111 8.29778 8.04444C8.37778 7.88 8.33778 7.73778 8.27556 7.61333C8.21333 7.48889 7.71556 6.27111 7.51111 5.77333C7.31111 5.29333 7.10667 5.36 6.95111 5.35111C6.80889 5.34222 6.64444 5.34222 6.48 5.34222C6.31556 5.34222 6.04889 5.40444 5.81778 5.64889C5.59111 5.89778 4.95111 6.49778 4.95111 7.71556C4.95111 8.93333 5.84 10.1111 5.96 10.28C6.08444 10.4444 7.70667 12.9467 10.1911 14.0222C11.7644 14.7022 12.3778 14.76 13.1644 14.6444C13.64 14.5733 14.6267 14.0444 14.8356 13.4667C15.0444 12.8889 15.04 12.3911 14.9778 12.2889C14.9244 12.1689 14.76 12.1067 14.5156 11.9867Z",fill:"#251C1C"})})}function C(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}function k(){return(0,a.jsx)("svg",{viewBox:"0 0 18 18",fill:"none",className:"size-6 lg:size-5 shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M3.54 2C3.6 2.89 3.75 3.76 3.99 4.59L2.79 5.79C2.38 4.59 2.12 3.32 2.03 2H3.54ZM13.4 14.02C14.25 14.26 15.12 14.41 16 14.47V15.96C14.68 15.87 13.41 15.61 12.2 15.21L13.4 14.02ZM4.5 0H1C0.45 0 0 0.45 0 1C0 10.39 7.61 18 17 18C17.55 18 18 17.55 18 17V13.51C18 12.96 17.55 12.51 17 12.51C15.76 12.51 14.55 12.31 13.43 11.94C13.33 11.9 13.22 11.89 13.12 11.89C12.86 11.89 12.61 11.99 12.41 12.18L10.21 14.38C7.38 12.93 5.06 10.62 3.62 7.79L5.82 5.59C6.1 5.31 6.18 4.92 6.07 4.57C5.7 3.45 5.5 2.25 5.5 1C5.5 0.45 5.05 0 4.5 0Z",fill:"#251C1C"})})}},13021:(e,t,l)=>{l.d(t,{k:()=>_});var a=l(95155),s=l(12115),n=l(95604),i=l(90615),r=l(25327),o=l(57937),c=l(58293),d=l(73945),x=l(53704);let u={futbol:"/categories/futbol.png",deportes:"/categories/futbol.png",partidos:"/categories/partidos.png",arte:"/categories/arte.png",exposiciones:"/categories/exposiciones.png",espectaculos:"/categories/espectaculos.png",deportivos:"/categories/deportivos.png",fotografia:"/categories/fotografia.png",culturales:"/categories/culturales.png",personas:"/categories/personas.png"};function p(e){let{category:t,onClick:l}=e,s=t.image||u[t.id]||"";return(0,a.jsxs)("button",{type:"button",className:"flex flex-col items-center gap-1 w-[80px] shrink-0 cursor-pointer hover:opacity-80 active:opacity-60 transition-opacity focus-visible:outline-2 focus-visible:outline-brand-red focus-visible:outline-offset-2 rounded-lg",onClick:l,"aria-label":t.name,children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full bg-surface-card shrink-0 flex items-center justify-center p-1",children:(0,a.jsx)("img",{src:s,alt:"",width:40,height:40,className:"size-[40px] object-contain","aria-hidden":"true"})}),(0,a.jsx)("span",{className:"text-[12px] text-[#7b7b80] text-center leading-tight",children:t.name})]})}
1var m=l(58521),h=l(52923),f=l(19441),g=l(57430),j=l(93729);function b(e){let{open:t,onClose:l,onCategorySelect:s,locale:i}=e,r=(0,n.useTranslations)("descubre"),{data:o=[]}=(0,x.Ck)(i);return(0,a.jsx)(j.e,{open:t,onClose:l,title:r("categories_heading"),children:(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-6 px-6 pb-8 pt-4",children:o.map(e=>(0,a.jsx)(p,{category:e,onClick:()=>s(e)},e.id))})})}var v=l(15239),N=l(18618),y=l(14653);function w(e){var t,l;let{category:i,open:r,onClose:o,locale:c}=e,d=(0,n.useTranslations)("descubre"),u=(0,n.useLocale)(),p=u===h.D.defaultLocale?"":"/".concat(u),m=i?(0,f.Y)(i.name,i.id):"",b="".concat(p,"/eventos/").concat(m),[v,y]=(0,s.useState)(1),[w,_]=(0,s.useState)([]),{data:S,isFetching:z}=(0,x.Yp)("eventos",null!=(t=null==i?void 0:i.id)?t:"",c,v,12),[L,M]=(0,s.useState)(null),[T,A]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==S?void 0:S.total)!==void 0&&A(S.total)},[null==S?void 0:S.total]);let D=w.length<T;(0,s.useEffect)(()=>{(null==i?void 0:i.id)&&(y(1),_([]),A(0))},[null==i?void 0:i.id]),(0,s.useEffect)(()=>{(null==S?void 0:S.items)&&_(e=>1===v?S.items:[...e,...S.items])},[null==S?void 0:S.items,v]);let I=z&&0===w.length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.e,{open:r,onClose:o,title:null!=(l=null==i?void 0:i.name)?l:"",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 px-4 pb-8 pt-2",children:[I?Array.from({length:4}).map((e,t)=>(0,a.jsx)(C,{},t)):w.map(e=>(0,a.jsx)(k,{event:e,onClick:()=>{M(e),window.history.pushState(null,"","".concat(b,"/").concat((0,f.Y)(e.title,e.id),"/").concat(e.id)),(0,g.w)(e.title)}},e.id)),D&&(0,a.jsx)("div",{className:"flex justify-center pt-1",children:z?(0,a.jsx)("div",{className:"w-3/4 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>y(e=>e+1),className:"w-3/4 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:d("see_more")})})]})}),(0,a.jsx)(N.K,{event:L,open:null!==L,onClose:()=>{var e;M(null),window.history.replaceState(null,"",b),(0,g.w)(null!=(e=null==i?void 0:i.name)?e:"")}})]})}function C(){return(0,a.jsxs)("div",{className:"bg-[#f8f2f2] rounded-[24px] overflow-hidden",children:[(0,a.jsx)("div",{className:"w-full aspect-[338/190] bg-[#ede6e6] animate-pulse"}),(0,a.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"h-5 w-3/4 rounded-full bg-[#ede6e6] animate-pulse"}),(0,a.jsx)("div",{className:"h-3.5 w-1/2 rounded-full bg-[#ede6e6] animate-pulse"}),(0,a.jsx)("div",{className:"h-3 w-1/3 rounded-full bg-[#ede6e6] animate-pulse"})]})]})}function k(e){let{event:t,onClick:l}=e,s=(0,y.eW)(t.dateStart,t.dateEnd);return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] overflow-hidden cursor-pointer hover:bg-[#f0e8e8] transition-colors",onClick:l,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&l(),"aria-label":t.title,children:[(0,a.jsx)("div",{className:"relative w-full aspect-[338/190] overflow-hidden",children:(0,a.jsx)(v.default,{src:t.imageUrl,alt:"",fill:!0,className:"object-cover",sizes:"(min-width: 1024px) 448px, calc(100vw - 32px)","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-[2px]",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[20px] text-[#262626] leading-tight",children:t.title}),(0,a.jsx)("p",{className:"text-[13px] font-semibold text-[#ab89f3]",children:t.venue&&t.venue!==t.title?t.venue:t.address}),(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80]",children:s})]})]})}function _(e){let{locale:t,mobile:l=!1}=e,u=(0,n.useTranslations)("descubre"),j=(0,n.useLocale)(),{data:v=[],isLoading:N}=(0,x.Ck)(t),[y,C]=(0,s.useState)(!1),[k,_]=(0,s.useState)(null),[S,z]=(0,s.useState)(!1),L=(0,s.useRef)(!1);(0,s.useEffect)(()=>z(!0),[]);let M=j===h.D.defaultLocale?"":"/".concat(j);function T(e){_(e),window.history.pushState(null,"","".concat(M,"/eventos/").concat((0,f.Y)(e.name,e.id))),(0,g.w)(e.name)}return(0,s.useEffect)(()=>{if(0===v.length||L.current)return;let e=window.innerWidth>=1024;if(l?e:!e)return;L.current=!0;
1let t=window.location.pathname.split("/").filter(Boolean),a=t.findIndex(e=>"eventos"===e);if(-1===a)return;let s=t[a+1];if(!s)return;let n=v.find(e=>(0,f.Y)(e.name,e.id)===s);n&&_(n)},[v,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"categories-heading",className:"px-4 lg:px-0",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-[18px] lg:hidden",children:[(0,a.jsx)("h2",{id:"categories-heading",className:"font-display font-bold text-[24px] lg:text-[40px] text-[#262626] leading-tight lg:leading-[30px]",children:u("categories_heading")}),(0,a.jsx)("button",{type:"button",onClick:()=>C(!0),className:"text-[12px] font-bold text-brand-red cursor-pointer hover:opacity-70 active:opacity-50 transition-opacity",children:u("see_more")})]}),(0,a.jsxs)(i.V,{className:"-mx-4 lg:mx-0",children:[(0,a.jsx)(r.B,{className:"px-4 lg:px-0",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(o.q,{className:"flex gap-[4px]",children:!S||N?Array.from({length:5}).map((e,t)=>(0,a.jsx)(m.Dh,{},t)):v.map(e=>(0,a.jsx)(p,{category:e,onClick:()=>T(e)},e.id))})}),(0,a.jsx)(c.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(d.l,{})})]})]}),(0,a.jsx)(b,{open:y,onClose:()=>C(!1),onCategorySelect:function(e){C(!1),setTimeout(()=>T(e),320)},locale:t}),(0,a.jsx)(w,{category:k,open:null!==k,onClose:function(){_(null),window.history.replaceState(null,"",M||"/"),(0,g.L)(u("title"))},locale:t})]})}},13373:(e,t,l)=>{l.d(t,{Q:()=>y});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(90615),d=l(25327),x=l(57937),u=l(58293),p=l(73945),m=l(53704),h=l(66878),f=l(58521),g=l(18618),j=l(41726);let b="futbol";function v(e){let{category:t,isActive:l,onToggle:s}=e,n=t.image.startsWith("http")||t.image.startsWith("/");return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:n?(0,a.jsx)("img",{src:t.image,alt:"",width:40,height:40,className:"object-contain size-[40px]"}):(0,a.jsx)("span",{className:"text-[40px] leading-none","aria-hidden":"true",children:t.image})}),(0,a.jsx)("span",{className:"text-[#7b7b80] text-[12px] text-center leading-tight",children:t.name})]})}function N(e){let{categories:t,activeCategories:l,onToggle:s,scroll:n}=e,i=(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(v,{category:e,isActive:l.includes(e.id),onToggle:()=>s(e.id)},e.id))});return n?(0,a.jsxs)(c.V,{children:[(0,a.jsx)(d.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(x.q,{className:"flex gap-1 py-1",children:i})}),(0,a.jsx)(u.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(p.l,{})})]}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:i})}function y(e){let{locale:t}=e,l=(0,n.useTranslations)("descubre"),c=(0,n.useTranslations)("search"),d=(0,n.useLocale)(),x=d===i.D.defaultLocale?"":"/".concat(d),u="".concat(x,"/deportes"),[p,v]=(0,s.useState)([]),[y,w]=(0,s.useState)(null),[C,k]=(0,s.useState)(!1),[_,S]=(0,s.use
1State)(1),[z,L]=(0,s.useState)([]),{data:M=[],isLoading:T}=(0,m.qh)(b,t);(0,s.useEffect)(()=>{if(0===M.length)return;let e=window.location.pathname.split("/").filter(Boolean),t=e.findIndex(e=>"deportes"===e),l=t>=0?e[t+1]:null;if(!l)return;let a=M.find(e=>(0,r.Y)(e.name,e.id)===l);a&&v([a.id])},[M]);let{data:A,isLoading:D,isFetching:I}=(0,m.y9)(b,t,p.length>0?p:void 0,_,12),[F,E]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==A?void 0:A.total)!==void 0&&E(A.total)},[null==A?void 0:A.total]);let K=z.length<F;function q(e){let t=p.includes(e)?[]:[e],a=M.find(t=>t.id===e),s=t.length>0&&a?"".concat(u,"/").concat((0,r.Y)(a.name,a.id)):u;window.history.replaceState(null,"",s),v(t),t.length>0&&a?(0,o.w)(a.name):(0,o.w)(l("tab_futbol"))}function W(e){w(e);let t=1===p.length?M.find(e=>e.id===p[0]):null,l=t?"".concat(u,"/").concat((0,r.Y)(t.name,t.id),"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id):"".concat(u,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id);window.history.pushState(null,"",l),(0,o.w)(e.title)}return(0,s.useEffect)(()=>{S(1),L([])},[p.join(",")]),(0,s.useEffect)(()=>{(null==A?void 0:A.items)&&L(e=>1===_?A.items:[...e,...A.items])},[null==A?void 0:A.items,_]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>k(!0),"aria-label":l("search_futbol"),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:l("search_futbol")})]})}),T?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q,scroll:!0}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("futbol_heading")})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-4 pb-6",children:[D&&0===z.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)(f.Wy,{},t)):0===z.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"⚽"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:l("no_results")})]}):z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)},e.id)),K&&(I?(0,a.jsx)("div",{className:"w-full h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-full py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")}))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[T?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("futbol_heading")})}),D&&0===z.length?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Wy,{},t))}):0===z.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"⚽"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:l("no_results")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)}
1,e.id))}),K&&(0,a.jsx)("div",{className:"flex justify-center",children:I?(0,a.jsx)("div",{className:"w-1/3 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-1/3 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")})})]})]}),(0,a.jsx)(j.q,{sectionId:b,open:C,onClose:()=>k(!1),placeholder:l("search_futbol"),onSelect:e=>W(e),nearbyLabel:c("suggested_futbol"),zoneCountLabel:e=>c("zone_count_futbol",{count:e})}),(0,a.jsx)(g.K,{event:y,open:null!==y,onClose:function(){w(null);let e=1===p.length?M.find(e=>e.id===p[0]):null,t=e?"".concat(u,"/").concat((0,r.Y)(e.name)):u;window.history.replaceState(null,"",t),(0,o.w)(e?e.name:l("tab_futbol"))}})]})}},15043:(e,t,l)=>{l.d(t,{Z:()=>c});var a=l(53455),s=l(12326),n=l(54879);let i=n.Ik({videoUrl:n.Yj().optional().catch(void 0),video_url:n.Yj().optional().catch(void 0),imageUrl:n.Yj().optional().catch(void 0),url:n.Yj().optional().catch(void 0),order:n.ai().catch(0),link:n.Yj().nullable().optional().catch(null)}).transform(e=>{var t,l,a,s,n;return{videoUrl:null!=(s=null!=(a=null!=(l=null!=(t=e.videoUrl)?t:e.video_url)?l:e.imageUrl)?a:e.url)?s:"",order:e.order,link:null!=(n=e.link)?n:null}}),r=n.YO(n.L5()).catch([]).transform(e=>e.map(e=>i.safeParse(e)).filter(e=>e.success&&e.data.videoUrl).map(e=>e.data));var o=l(79212);function c(){return(0,a.useQuery)({queryKey:o.ed.all,queryFn:()=>(0,s.V)("/ads",{params:{section:"others",type:"video"}}).then(e=>{let t=r.safeParse(e);return t.success?t.data:[]}),staleTime:3e5})}},16361:(e,t,l)=>{l.d(t,{o:()=>y});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(90615),d=l(25327),x=l(57937),u=l(58293),p=l(73945),m=l(53704),h=l(66878),f=l(58521),g=l(18618),j=l(41726);let b="experiencias";function v(e){let{category:t,isActive:l,onToggle:s}=e,n=t.image.startsWith("http")||t.image.startsWith("/");return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:n?(0,a.jsx)("img",{src:t.image,alt:"",width:40,height:40,className:"object-contain size-[40px]"}):(0,a.jsx)("span",{className:"text-[40px] leading-none","aria-hidden":"true",children:t.image})}),(0,a.jsx)("span",{className:"text-[#7b7b80] text-[12px] text-center leading-tight",children:t.name})]})}function N(e){let{categories:t,activeCategories:l,onToggle:s,scroll:n}=e,i=(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(v,{category:e,isActive:l.includes(e.id),onToggle:()=>s(e.id)},e.id))});return n?(0,a.jsxs)(c.V,{children:[(0,a.jsx)(d.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(x.q,{className:"flex gap-1 py-1",children:i})}),(0,a.jsx)(u.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(p.l,{})})]}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:i})}function y(e){let{locale:t}=e,l=(0,n.useTranslations)("descubre"),c=(0,n.useTranslations)("search"),d=(0,n.useLocale)(),x=d===i.D.defaultLocale?"":"/".concat(d),u="".concat(x,"/experiencias"),[p,v]=(0,s.useState)([]),[y,w]=(0,s.useState)(null),[C,k]=(0,s.useState)(!1),[_,S]=(0,s.useState)(1),[z,L]=(0,s.useState)([]),{data:M=[],isLoading:T}=(0,m.qh)(b,t),{data:A,isLoading:D,isFetching:I}=(0,m.y9)(b,t,p.length>0?p:void 0,_,12),[F,E]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==A?void 0:A.total)!==void 0&&E(A.total)},[null==A?void 0:A.total]);let K=z.length<F;function q(e){let t=p.includes(e)?[]:[e],a=M.find(t=>
1t.id===e),s=t.length>0&&a?"".concat(u,"/").concat((0,r.Y)(a.name,a.id)):u;window.history.replaceState(null,"",s),v(t),t.length>0&&a?(0,o.w)(a.name):(0,o.w)(l("tab_experiencias"))}function W(e){w(e);let t=1===p.length?M.find(e=>e.id===p[0]):null,l=t?"".concat(u,"/").concat((0,r.Y)(t.name,t.id),"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id):"".concat(u,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id);window.history.pushState(null,"",l),(0,o.w)(e.title)}return(0,s.useEffect)(()=>{S(1),L([])},[p.join(",")]),(0,s.useEffect)(()=>{(null==A?void 0:A.items)&&L(e=>1===_?A.items:[...e,...A.items])},[null==A?void 0:A.items,_]),(0,s.useEffect)(()=>{if(0===M.length)return;let e=window.location.pathname.split("/").filter(Boolean),t=e.findIndex(e=>e===b),l=t>=0?e[t+1]:null;if(!l)return;let a=M.find(e=>(0,r.Y)(e.name,e.id)===l);a&&v([a.id])},[M]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>k(!0),"aria-label":l("search_experiencias"),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:l("search_experiencias")})]})}),T?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q,scroll:!0}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("experiencias_heading")})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-4 pb-6",children:[D&&0===z.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)(f.Wy,{},t)):0===z.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"\uD83C\uDFAD"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:l("coming_soon")})]}):z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)},e.id)),K&&(I?(0,a.jsx)("div",{className:"w-full h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-full py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")}))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[T?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Dh,{},t))}):M.length>0&&(0,a.jsx)(N,{categories:M,activeCategories:p,onToggle:q}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:l("experiencias_heading")})}),D&&0===z.length?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(f.Wy,{},t))}):0===z.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"\uD83C\uDFAD"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:l("coming_soon")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:z.map(e=>(0,a.jsx)(h.d,{hotel:e,onClick:()=>W(e)},e.id))}),K&&(0,a.jsx)("div",{className:"flex justify-center",children:I?(0,a.jsx)("div",{className:"w-1/3 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>S(e=>e+1),className:"w-1/3 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:l("see_more")})})]})]}),(0,a.jsx)(j.q,{sectionId:b,open:C,onClose:()=>k(!1),placeholder:l("search_experiencias"),onSelect:e=>W(e),nearbyLabel:c("suggested_experiencias"),zoneCountLabel:e=>c("zone_count_experiencias",{count:e})}),(0,a.jsx)(g.K,{event:y,open:null!==y,onClose:function(){w(null);let e=1===p.length?M.find(e=>e.id===p[0]):null,t=e?"".concat(u,"/").concat((0,r.Y)(e.name)):u;window.history.replaceState(null,"",t),(0,o.w)(e?e.name:l("tab_experiencias"))}})]})}},17012:(e,t,l)=>{l.d(t,{FeaturedCarousel:()=>f});var a=l(95155),s=l(12115),n=l(15239),i=l(95604),r=l(52923),o=l(19441),c=l(57430),d=l(53704),x=l(58521),u=l(18618),p=l(93729),m=l(42775);let h="eventos";function f(e){var t;let{locale:l}=e,f=(0,i.useTranslations)("event"),b=(0,i.useTranslations)("descubre"),v=(0,i.useLocale)(),{data:N,isLoading:y}=(0,d.P6)(h,l),w=null!=(t=null==N?void 0:N.items)?t:[],[C,k]=(0,s.use
1State)(null),_=v===r.D.defaultLocale?"":"/".concat(v);function S(e){k(e);let t=e.sectionId||h;window.history.pushState(null,"","".concat(_,"/").concat(t,"/").concat((0,o.Y)(e.title,e.id),"/").concat(e.id)),(0,c.w)(e.title)}let[z,L]=(0,s.useState)(!1),[M,T]=(0,s.useState)(1),[A,D]=(0,s.useState)([]),{data:I,isFetching:F}=(0,d.P6)(h,l,M,12),[E,K]=(0,s.useState)(0);(0,s.useEffect)(()=>{(null==I?void 0:I.total)!==void 0&&K(I.total)},[null==I?void 0:I.total]);let q=A.length<E;return(0,s.useEffect)(()=>{z&&(T(1),D([]),K(0))},[z]),(0,s.useEffect)(()=>{(null==I?void 0:I.items)&&z&&D(e=>1===M?I.items:[...e,...I.items])},[null==I?void 0:I.items,M,z]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4 px-0",children:[(0,a.jsx)("h2",{className:"lg:hidden font-display font-bold text-[20px] text-[#262626] leading-tight",children:f("featured_title")}),(0,a.jsx)("button",{type:"button",className:"text-[12px] font-bold text-[#ab89f3] cursor-pointer hover:text-[#9370e0] transition-colors lg:ml-auto",onClick:()=>L(!0),children:f("featured_view_all")})]}),(0,a.jsx)(m.b,{gap:"gap-6",children:y?Array.from({length:3}).map((e,t)=>(0,a.jsx)(x.wA,{},t)):w.map(e=>(0,a.jsx)(j,{event:e,onClick:()=>S(e)},e.id))}),(0,a.jsx)(u.K,{event:C,open:null!==C,onClose:function(){k(null),window.history.replaceState(null,"",_||"/"),(0,c.L)(b("title"))}}),(0,a.jsx)(p.e,{open:z,onClose:()=>L(!1),title:f("featured_title"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 px-6 pb-6",children:[F&&0===A.length?Array.from({length:6}).map((e,t)=>(0,a.jsx)(g,{},t)):A.map(e=>{var t,l;return(0,a.jsxs)("button",{type:"button",className:"flex gap-4 items-center text-left cursor-pointer group",onClick:()=>S(e),children:[(0,a.jsx)("div",{className:"relative w-[80px] h-[80px] shrink-0 rounded-[16px] overflow-hidden bg-[#e0d4f8]",children:(0,a.jsx)(n.default,{src:e.imageUrl,alt:e.title,fill:!0,className:"object-cover",sizes:"80px"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"font-semibold text-[15px] text-[#262626] leading-snug line-clamp-2 group-hover:text-[#ab89f3] transition-colors",children:e.title}),(null!=(t=e.venue)?t:e.address)&&(0,a.jsx)("p",{className:"text-[12px] text-[#7d7d7d] mt-1 truncate",children:null!=(l=e.venue)?l:e.address})]})]},e.id)}),q&&(0,a.jsx)("div",{className:"flex justify-center pt-1",children:(0,a.jsx)("button",{type:"button",onClick:()=>T(e=>e+1),disabled:F,className:"w-3/4 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold disabled:opacity-50 hover:bg-[#f0e8e8] transition-colors",children:F?"...":b("see_more")})})]})})]})}function g(){return(0,a.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,a.jsx)("div",{className:"w-[80px] h-[80px] shrink-0 rounded-[16px] bg-[#ede6e6] animate-pulse"}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"h-4 w-3/4 rounded-full bg-[#ede6e6] animate-pulse"}),(0,a.jsx)("div",{className:"h-3 w-1/2 rounded-full bg-[#ede6e6] animate-pulse"})]})]})}function j(e){let{event:t,onClick:l}=e;return(0,a.jsxs)("article",{role:"listitem",className:"relative snap-start shrink-0 w-[345px] h-[255px] lg:w-[411px] lg:h-[605px] rounded-[24px] overflow-hidden bg-[#222] cursor-pointer",onClick:l,tabIndex:0,onKeyDown:e=>"Enter"===e.key&&l(),"aria-label":t.title,children:[(0,a.jsx)(n.default,{src:t.imageUrl,alt:t.title,fill:!0,className:"object-cover",sizes:"(min-width: 1024px) 411px, 280px",priority:!0}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-[rgba(0,0,0,0.9)]","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"absolute bottom-[22px] left-6 right-6 flex flex-col",children:[(0,a.jsx)("h3",{className:"font-display font-bold text-[26px] lg:text-[40px] text-white leading-tight lg:leading-[30px]",children:t.title}),(0,a.jsx)("div",{className:"h-2 lg:h-[38px]"}),(0,a.jsx)("p",{className:"text-[12px] lg:text-[16px] text-white",children:[t.venue,t.address].filter(Boolean).join(" \xb7 ")})]})]})}},17524:(e,t,l)=>{l.d(t,{Z:()=>v});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(53704),d=l(58521),x=l(17748),u=l(18618),p=l(42775),m=l(15239),h=l(93729),f=l(14653);function g(e){var t;let{open:l,onClose:i,locale:r}=e,o=(0,n.useTranslations)("descubre"),{data:d}=(0,c.Pv)(r),x=null!=(t=null==d?void 0:d.items)?t:[],[p,m]=(0,s.use
1State)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.e,{open:l,onClose:i,title:o("exhibitions_heading"),children:(0,a.jsx)("div",{className:"flex flex-col gap-4 px-4 pb-8 pt-2",children:x.map(e=>(0,a.jsx)(j,{event:e,onClick:()=>m(e)},e.id))})}),(0,a.jsx)(u.K,{event:p,open:null!==p,onClose:()=>m(null)})]})}function j(e){let{event:t,onClick:l}=e,s=(0,f.eW)(t.dateStart,t.dateEnd);return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] overflow-hidden cursor-pointer hover:bg-[#f0e8e8] transition-colors",onClick:l,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&l(),"aria-label":t.title,children:[(0,a.jsx)("div",{className:"relative w-full aspect-[338/190] overflow-hidden",children:(0,a.jsx)(m.default,{src:t.imageUrl,alt:"",fill:!0,className:"object-cover",sizes:"(min-width: 1024px) 448px, calc(100vw - 32px)","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-[2px]",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[20px] text-[#262626] leading-none",children:t.title}),(0,a.jsx)("p",{className:"text-[13px] font-semibold text-[#ab89f3]",children:t.venue&&t.venue!==t.title?t.venue:t.address}),(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80]",children:s})]})]})}var b=l(51126);function v(e){var t;let{locale:l}=e,m=(0,n.useTranslations)("descubre"),h=(0,n.useLocale)(),{data:f,isLoading:j}=(0,c.Pv)(l),v=null!=(t=null==f?void 0:f.items)?t:[],[N,y]=(0,s.useState)(null),[w,C]=(0,s.useState)(!1),k=h===i.D.defaultLocale?"":"/".concat(h);return j||0!==v.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"art-heading",className:"px-4 lg:px-0",children:[(0,a.jsx)(b.X,{id:"art-heading",heading:m("exhibitions_heading"),subheading:v.length>0?m("exhibitions_subheading",{count:v.length}):void 0,cta:{label:m("see_all"),onClick:()=>C(!0)}}),(0,a.jsx)(p.b,{children:j?Array.from({length:4}).map((e,t)=>(0,a.jsx)(d.QY,{},t)):v.map(e=>(0,a.jsx)(x.n,{event:e,locale:l,variant:"art",onClick:()=>(function(e){y(e);let t=e.sectionId||"eventos";window.history.pushState(null,"","".concat(k,"/").concat(t,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)})(e)},e.id))})]}),(0,a.jsx)(u.K,{event:N,open:null!==N,onClose:function(){y(null),window.history.replaceState(null,"",k||"/"),(0,o.L)(m("title"))}}),(0,a.jsx)(g,{open:w,onClose:()=>C(!1),locale:l})]}):null}},17748:(e,t,l)=>{l.d(t,{n:()=>i});var a=l(95155),s=l(15239),n=l(14653);function i(e){var t;let{event:l,locale:i="es-MX",variant:r="art",onClick:o}=e,c=(0,n.eW)(l.dateStart,l.dateEnd,i,l.dates);return(0,a.jsxs)("article",{className:"snap-start shrink-0 w-[294px] ".concat("sponsored"===r?"bg-white":"bg-[#f8f2f2]"," rounded-[24px] p-4 flex flex-col gap-3 cursor-pointer hover:shadow-[0_6px_24px_rgba(0,0,0,0.10)] active:scale-[0.98] transition-[box-shadow,transform] duration-200"),onClick:o,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o?e=>"Enter"===e.key&&o():void 0,children:[(0,a.jsx)("div",{className:"relative w-full rounded-[16px] overflow-hidden bg-surface-card",style:{aspectRatio:"nearby"===r?"263/148":"160/90"},children:(0,a.jsx)(s.default,{src:l.imageUrl,alt:l.title,fill:!0,className:"object-cover",sizes:"294px"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"font-google-sans font-bold text-[18px] text-[#262626] leading-[1.25] line-clamp-2",children:l.title}),(0,a.jsx)("p",{className:"text-[12px] font-semibold text-brand-red",children:null!=(t=l.venue)?t:l.address}),c&&(0,a.jsx)("p",{className:"text-[10px] font-medium text-[#7b7b80]",children:c})]})]})}},19441:(e,t,l)=>{l.d(t,{Y:()=>a});function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||t}},22281:(e,t,l)=>{l.d(t,{f:()=>d});var a=l(95155),s=l(94992),n=l(13554),i=l(67866),r=l(65029),o=l(61556),c=l(95604);function d(e){let{module:t,open:l,onClose:d}=e,u=(0,c.useTranslations)("descubre");return(0,a.jsx)(s.D,{open:l,onOpenChange:e=>{e||d()},children:(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(i.X,{className:"fixed inset-0 bg-black/40 z-40 backdrop-blur-[2px]"}),(0,a.jsxs)(r.h,{className:"fixed inset-0 z-50 flex flex-col bg-white outline-none lg:inset-auto lg:top-1/2 lg:left-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:w-[420px] lg:max-h-[90dvh] lg:rounded-[24px] lg:overflow-hidden",children:[(0,a.jsxs)("div",{className:"relative shrink-0 overflow-hidden",style:{height:342},children:[(0,a.jsxs)("div",{className:"absolute inset-0",style:{background:"#f5e4e8"},children:[(0,a.jsx)("div",{className:"absolute -right-12 -top-12 size-[220px] rounded-full",style:{background:"#e8c0ca"}}),(0,a.jsx)("div",{className:"absolute -left-10 top-16 size-[180px] rounded-full",style:{background:"rgba(255,255,255,0.35)"}}),(0,a.jsx)("div",{className:"absolute left-4 -bottom-6 w-[140px] h-[110px] rounded-[20px]",style:{background:"#d4a0aa",opacity:.5}}),(0,a.jsx)("div",{className:"absolute right-6 bottom-14 size-[80px] rounded-full",style:{background:"#b87880",opacity:.35}}),(0,a.jsx)("div",{className:"absolute right-16 top-6 size-[60px] rounded-full",style:{background:"rgba(255,255,255,0.2)"}})]}),t&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",style:{paddingBottom:80},children:(0,a.jsx)("div",{className:"size-[80px] rounded-full bg-white flex items-center justify-center overflow-hidden shadow-md",children:(0,a.jsx)("img",{src:t.image,alt:"",className:"size-[70px] object-cover"})})}),(0,a.jsx)(o.H,{className:"absolute top-4 right-4 size-[44px] rounded-full bg-white/80 flex items-center justify-center cursor-pointer hover:bg-white transition-colors z-10 shadow-sm","aria-label":u("close"),children:(0,a.jsx)(x,{})}),t&&(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 px-4 py-3 flex items-center justify-between",style:{background:"#f8d2fa"},children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"text-[14px] text-[#251c1c]",children:u("module_info_label")}),(0,a.jsx)("span",{className:"text-[14px] font-semibold text-[#251c1c]",children:u(t.nameKey)})]})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto bg-white",children:t&&(0,a.jsxs)("div",{className:"px-4 pt-6 pb-4 flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[38px] text-[#262626] leading-[1.1]",children:u(t.fullNameKey)}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[t.nearbyVenue?(0,a.jsxs)("span",{className:"flex items-center gap-1 border border-[#ab89f3] rounded-full px-3 py-1.5 text-[12px] text-[#ab89f3]",children:[(0,a.jsx)("span",{"aria-hidden":"true",children:"\uD83C\uDFDF️"}),t.nearbyVenue]}):(0,a.jsx)("span",{}),(0,a.jsx)("a",{href:t.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-[12px] font-bold text-[#ab89f3] underline shrink-0",children:u("view_on_maps")})]}),(0,a.jsx)("p",{className:"text-[16px] text-[#5d6a6e] leading-relaxed",children:t.address})]})}),(0,a.jsx)("div",{className:"shrink-0 flex gap-4 items-center justify-center px-4 py-4 bg-white border-t border-[#f8f2f2] safe-area-pb",children:t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("a",{href:t.mapsUrl,target:"_blank",rel:"noopener noreferrer",className:"flex-1 h-[56px] flex items-center justify-center rounded-full bg-[#f8f2f2] text-[16px] font-semibold text-[#ab89f3] cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:u("get_directions")}),(0,a.jsx)("a",{href:"tel:".concat(t.phone),className:"flex-1 h-[56px] flex items-center justify-center rounded-full bg-[#ab89f3] text-[16px] font-semibold text-white cursor-pointer hover:bg-[#9b6ee8] transition-colors",children:u("call")})]})})]})]})})}
1function x(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 text-[#7b7b80]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}},25501:(e,t,l)=>{l.d(t,{H:()=>m});var a=l(95155),s=l(15239),n=l(12115),i=l(53455),r=l(12326),o=l(54879);let c=o.Ik({imageUrl:o.Yj(),order:o.ai(),link:o.Yj().nullable()}),d=o.YO(c);var x=l(79212);let u="https://conoceciudaddemexico.com".replace(/\/$/,"");function p(e){let{ad:t,ratio:l}=e,n=function(e){if(!e)return null;try{let t=new URL(e);if("https://www.conoceciudaddemexico.com"===t.origin)return u+t.pathname+t.search+t.hash}catch(e){}return e}(t.link),i={aspectRatio:String(l),minWidth:"100%"},r=(0,a.jsx)(s.default,{src:t.imageUrl,alt:"",fill:!0,className:"object-cover",sizes:"100vw"});return n?(0,a.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"relative shrink-0 snap-start overflow-hidden bg-[#f6f6f6] block",style:i,children:r}):(0,a.jsx)("div",{className:"relative shrink-0 snap-start overflow-hidden bg-[#f6f6f6]",style:i,children:r})}function m(e){var t;let{section:l="eventos"}=e,{data:s=[]}=(0,i.useQuery)({queryKey:l?x.iV.bySection(l):x.iV.all,queryFn:()=>(0,r.V)("/ads",{params:l?{section:l}:void 0}).then(e=>d.parse(e)),staleTime:3e5}
1),o=(0,n.useRef)(null),[c,u]=(0,n.useState)(0),[m,f]=(0,n.useState)(2.8),g=(0,n.useRef)(null),j=[...s].sort((e,t)=>e.order-t.order);(0,n.useEffect)(()=>{if(!j.length)return;let e=new window.Image;e.onload=()=>{e.naturalWidth&&e.naturalHeight&&f(e.naturalWidth/e.naturalHeight)},e.src=j[0].imageUrl},[null==(t=j[0])?void 0:t.imageUrl]);let b=(0,n.useCallback)(e=>{let t=o.current;t&&t.scrollTo({left:e*t.offsetWidth,behavior:"smooth"})},[]),v=(0,n.useCallback)(()=>{let e=o.current;e&&u(Math.round(e.scrollLeft/e.offsetWidth))},[]),N=(0,n.useCallback)(()=>{g.current&&clearInterval(g.current),j.length>1&&(g.current=setInterval(()=>{u(e=>{let t=(e+1)%j.length,l=o.current;return l&&l.scrollTo({left:t*l.offsetWidth,behavior:"smooth"}),t})},5e3))},[j.length]);(0,n.useEffect)(()=>(N(),()=>{g.current&&clearInterval(g.current)}),[N]);let y=(0,n.useCallback)(e=>{let t=o.current;if(!t)return;let l=Math.round(t.scrollLeft/t.offsetWidth);b("next"===e?(l+1)%j.length:(l-1+j.length)%j.length),N()},[j.length,b,N]);return j.length?(0,a.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,a.jsxs)("div",{className:"relative group rounded-[12px] overflow-hidden",children:[(0,a.jsx)("div",{ref:o,className:"flex overflow-x-auto snap-x snap-mandatory w-full",style:{scrollbarWidth:"none"},onScroll:v,children:j.map(e=>(0,a.jsx)(p,{ad:e,ratio:m},e.imageUrl))}),j.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":"Anterior",onClick:()=>y("prev"),className:"hidden lg:flex absolute left-3 top-1/2 -translate-y-1/2 size-8 items-center justify-center rounded-full bg-white/80 text-[#4e3853] opacity-60 group-hover:opacity-100 transition-opacity z-10 cursor-pointer hover:bg-white",children:(0,a.jsx)(h,{dir:"left"})}),(0,a.jsx)("button",{type:"button","aria-label":"Siguiente",onClick:()=>y("next"),className:"hidden lg:flex absolute right-3 top-1/2 -translate-y-1/2 size-8 items-center justify-center rounded-full bg-white/80 text-[#4e3853] opacity-60 group-hover:opacity-100 transition-opacity z-10 cursor-pointer hover:bg-white",children:(0,a.jsx)(h,{dir:"right"})})]})]}),j.length>1&&(0,a.jsx)("div",{className:"flex items-center justify-center gap-[6px]",children:j.map((e,t)=>(0,a.jsx)("button",{type:"button","aria-label":"Banner ".concat(t+1),onClick:()=>{b(t),N()},className:"rounded-full cursor-pointer transition-all duration-200 hover:scale-125 ".concat(c===t?"w-[8px] h-[8px] bg-[#342828]":"w-[6px] h-[6px] bg-[#d4c8c8]")},t))})]}):null}function h(e){let{dir:t}=e;return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-4","aria-hidden":"true",children:"left"===t?(0,a.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"}):(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})}},39836:(e,t,l)=>{l.d(t,{S:()=>C});var a=l(95155),s=l(95604),n=l(12115),i=l(52923),r=l(19441),o=l(57430),c=l(90615),d=l(25327),x=l(57937),u=l(58293),p=l(73945),m=l(66878),h=l(41726),f=l(18618),g=l(53704),j=l(58521);function b(e){let{category:t,isActive:l,onToggle:s}=e,n=t.image.startsWith("http")||t.image.startsWith("/");return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:n?(0,a.jsx)("img",{src:t.image,alt:"",width:40,height:40,className:"object-contain size-[40px]"}):(0,a.jsx)("span",{className:"text-[40px] leading-none","aria-hidden":"true",children:t.image})}),(0,a.jsx)("span",{className:"text-[#7b7b80] text-[12px] text-center leading-tight",children:t.name})]})}function v(e){let{categories:t,activeCategories:l,onToggle:s,scroll:n}=e,i=(0,a.jsx)(a.Fragment,{children:t.map(e=>(0,a.jsx)(b,{category:e,isActive:l.includes(e.id),onToggle:()=>s(e.id)},e.id))});return n?(0,a.jsxs)(c.V,{children:[(0,a.jsx)(d.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)",WebkitMaskImage:"linear-gradient(to right, transparent 0px, black min(60px, var(--scroll-area-overflow-x-start, 0px)), black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))), transparent 100%)"},children:(0,a.jsx)(x.q,{className:"flex gap-1 py-1",children:i})}),(0,a.jsx)(u.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(p.l,{})})]}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:i})}function N(e){let{locale:t,sectionId:l,sectionLabel:c,searchPlaceholder:d,emptyIcon:x,nearbyLabel:u,zoneCountLabel:p,belowCategoriesSlot:b}=e,N=(0,s.useTranslations)("descubre"),y=(0,s.useLocale)(),w=y===i.D.defaultLocale?"":"/".concat(y),C="".concat(w,"/").concat(l),[k,_]=(0,n.use
1State)([]),[S,z]=(0,n.useState)(null),[L,M]=(0,n.useState)(!1),[T,A]=(0,n.useState)(1),[D,I]=(0,n.useState)([]),{data:F=[],isLoading:E}=(0,g.qh)(l,t);(0,n.useEffect)(()=>{if(0===F.length)return;let e=window.location.pathname.split("/").filter(Boolean),t=e.findIndex(e=>e===l),a=t>=0?e[t+1]:null;if(!a)return;let s=F.find(e=>(0,r.Y)(e.name,e.id)===a);s&&_([s.id])},[F,l]);let{data:K,isLoading:q,isFetching:W}=(0,g.y9)(l,t,k.length>0?k:void 0,T,12),[Y,B]=(0,n.useState)(0);(0,n.useEffect)(()=>{(null==K?void 0:K.total)!==void 0&&B(K.total)},[null==K?void 0:K.total]);let U=D.length<Y;function V(e){let t=k.includes(e)?[]:[e],l=F.find(t=>t.id===e),a=t.length>0&&l?"".concat(C,"/").concat((0,r.Y)(l.name,l.id)):C;window.history.replaceState(null,"",a),_(t),t.length>0&&l?(0,o.w)(l.name):(0,o.w)(c)}function P(e){z(e);let t=1===k.length?F.find(e=>e.id===k[0]):null,l=t?"".concat(C,"/").concat((0,r.Y)(t.name,t.id),"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id):"".concat(C,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id);window.history.pushState(null,"",l),(0,o.w)(e.title)}return(0,n.useEffect)(()=>{A(1),I([])},[k.join(",")]),(0,n.useEffect)(()=>{(null==K?void 0:K.items)&&I(e=>1===T?K.items:[...e,...K.items])},[null==K?void 0:K.items,T]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>M(!0),"aria-label":d,className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:d})]})}),E?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(j.Dh,{},t))}):F.length>0&&(0,a.jsx)(v,{categories:F,activeCategories:k,onToggle:V,scroll:!0}),b,b&&(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:c})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-4",children:[q&&0===D.length?Array.from({length:4}).map((e,t)=>(0,a.jsx)(j.Wy,{},t)):0===D.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:x}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:N("no_results")})]}):D.map(e=>(0,a.jsx)(m.d,{hotel:e,onClick:()=>P(e)},e.id)),U&&(W?(0,a.jsx)("div",{className:"w-full h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>A(e=>e+1),className:"w-full py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:N("see_more")}))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[E?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(j.Dh,{},t))}):F.length>0&&(0,a.jsx)(v,{categories:F,activeCategories:k,onToggle:V}),b,(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:c})}),q&&0===D.length?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(j.Wy,{},t))}):0===D.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:x}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:N("no_results")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-3 gap-3",children:D.map(e=>(0,a.jsx)(m.d,{hotel:e,onClick:()=>P(e)}
1,e.id))}),U&&(0,a.jsx)("div",{className:"flex justify-center",children:W?(0,a.jsx)("div",{className:"w-1/3 h-[48px] rounded-full bg-[#ede6e6] animate-pulse"}):(0,a.jsx)("button",{type:"button",onClick:()=>A(e=>e+1),className:"w-1/3 py-3 rounded-full bg-[#f8f2f2] border border-[#e0d8d8] text-brand-red text-[15px] font-semibold hover:bg-[#f0e8e8] transition-colors",children:N("see_more")})})]})]}),(0,a.jsx)(h.q,{sectionId:l,open:L,onClose:()=>M(!1),placeholder:d,onSelect:e=>P(e),nearbyLabel:u,zoneCountLabel:p}),(0,a.jsx)(f.K,{event:S,open:null!==S,onClose:function(){z(null);let e=1===k.length?F.find(e=>e.id===k[0]):null,t=e?"".concat(C,"/").concat((0,r.Y)(e.name)):C;window.history.replaceState(null,"",t),(0,o.w)(e?e.name:c)}})]})}var y=l(42775);function w(e){var t;let{locale:l}=e,c=(0,s.useTranslations)("descubre"),d=(0,s.useLocale)(),{data:x,isLoading:u}=(0,g.w0)(l),p=null!=(t=null==x?void 0:x.items)?t:[],[h,b]=(0,n.useState)(null),[v,N]=(0,n.useState)(""),w=d===i.D.defaultLocale?"":"/".concat(d);return u||0!==p.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"featured-restaurants-heading",className:"flex flex-col gap-4 py-4 lg:py-0",children:[(0,a.jsx)("div",{className:"flex items-center justify-between px-4 lg:px-0",children:(0,a.jsx)("h2",{id:"featured-restaurants-heading",className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:c("featured_restaurants_heading")})}),(0,a.jsx)(y.b,{gap:"gap-3",children:u?Array.from({length:3}).map((e,t)=>(0,a.jsx)(j.Wy,{carousel:!0},t)):p.map(e=>(0,a.jsx)("div",{className:"snap-start shrink-0 w-[294px] flex flex-col",children:(0,a.jsx)(m.d,{hotel:e,onClick:()=>{N(window.location.pathname),b(e),window.history.pushState(null,"","".concat(w,"/gastronomia/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)}})},e.id))})]}),(0,a.jsx)(f.K,{event:h,open:null!==h,onClose:function(){b(null),window.history.replaceState(null,"",v||"".concat(w,"/gastronomia")),(0,o.w)(c("tab_gastronomia"))}})]}):null}function C(e){let{locale:t}=e,l=(0,s.useTranslations)("descubre"),n=(0,s.useTranslations)("search");return(0,a.jsx)(N,{locale:t,sectionId:"gastronomia",sectionLabel:l("restaurants_heading"),searchPlaceholder:l("search_restaurants"),emptyIcon:"\uD83C\uDF7D️",nearbyLabel:n("suggested_gastronomia"),zoneCountLabel:e=>n("zone_count_gastronomia",{count:e}),belowCategoriesSlot:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(w,{locale:t})})})}},41726:(e,t,l)=>{l.d(t,{q:()=>N});var a=l(95155),s=l(12115),n=l(94992),i=l(13554),r=l(67866),o=l(98050),c=l(65029),d=l(67624),x=l(61556),u=l(95604),p=l(34663),m=l(74635),h=l(41131),f=l(11515),g=l(12326),j=l(37527),b=l(79212),v=l(66294);function N(e){let{sectionId:t,open:l,onClose:N,placeholder:y,onSelect:w,nearbyLabel:C,zoneCountLabel:k}=e,_=(0,u.useTranslations)("header"),S=(0,u.useTranslations)("search"),z=(0,u.useLocale)(),L=(0,p.rd)(),M=(0,s.useMemo)(()=>Array.isArray(t)?t:[t],[t]),[T,A]=(0,s.useState)(""),[D,I]=(0,s.useState)(""),[F,E]=(0,s.useState)([]);(0,s.useEffect)(()=>{let e=setTimeout(()=>I(T.trim()),300);return()=>clearTimeout(e)},[T]),(0,s.useEffect)(()=>{l&&(A(""),I(""),E((0,v.oj)().filter(e=>M.includes(e.sectionId))))},[l,M]);let{items:K,isLoading:q}=function(e,t,l){let a=(0,f.useQueries)({queries:e.map(e=>({queryKey:b.ch.list(e,t,{limit:"20"}),queryFn:()=>(0,g.V)("/sections/".concat(e,"/elements"),{locale:t,params:{limit:"20"}}).then(e=>j.cV.parse(e)),staleTime:6e4,enabled:l&&!!e}))});return{items:(0,s.useMemo)(()=>(0,v.$8)(a.flatMap(e=>{var t,l;return null!=(l=null==(t=e.data)?void 0:t.items)?l:[]})),[a.map(e=>e.data).join(",")]),isLoading:a.some(e=>e.isLoading)}}
1(M,z,l),{items:W,isFetching:Y}=function(e,t,l,a){let n=(0,f.useQueries)({queries:e.map(e=>({queryKey:[...b.ch.all,"search",e,t,l],queryFn:()=>(0,g.V)("/sections/".concat(e,"/elements"),{locale:t,params:{q:l,limit:"20"}}).then(e=>j.cV.parse(e)),staleTime:3e4,enabled:a&&!!e&&l.length>=3}))});return{items:(0,s.useMemo)(()=>(0,v.$8)(n.flatMap(e=>{var t,l;return null!=(l=null==(t=e.data)?void 0:t.items)?l:[]})),[n.map(e=>e.data).join(",")]),isFetching:n.some(e=>e.isFetching)}}(M,z,D,l),B=(0,s.useMemo)(()=>(0,v.aN)(K),[K]),U=(0,s.useMemo)(()=>(0,v.iS)(W,D),[W,D]),V=T.trim().length>0&&(T.trim()!==D||D.length<3||D.length>=3&&Y);return(0,a.jsx)(n.D,{open:l,onOpenChange:e=>!e&&N(),children:(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(r.X,{className:"fixed inset-0 bg-black/30 data-[open]:opacity-100 data-[closed]:opacity-0 transition-opacity z-40"}),(0,a.jsx)(o.D,{className:"fixed inset-0 flex items-start justify-center pt-[80px] px-4 z-40",children:(0,a.jsxs)(c.h,{className:"bg-white w-full max-w-[640px] rounded-[24px] shadow-lg outline-none data-[open]:opacity-100 data-[closed]:opacity-0 data-[open]:translate-y-0 data-[closed]:-translate-y-2 transition-[opacity,transform] max-h-[80dvh] flex flex-col",children:[(0,a.jsx)("div",{className:"shrink-0 p-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-surface-card rounded-pill px-3 h-12",children:[(0,a.jsx)(m.WI,{className:"size-5 shrink-0 text-text-placeholder"}),(0,a.jsx)(d.L,{className:"sr-only",children:y}),(0,a.jsx)("input",{type:"text",value:T,onChange:e=>A(e.target.value),placeholder:y,"aria-label":y,className:"flex-1 min-w-0 bg-transparent text-[16px] font-semibold text-text-section placeholder:text-text-placeholder outline-none",autoFocus:!0}),(0,a.jsx)(x.H,{className:"shrink-0 size-8 flex items-center justify-center rounded-full hover:bg-[#ede6e6] transition-colors text-text-secondary hover:text-text-section","aria-label":_("cancel"),children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsx)(h.G,{query:T,matches:U,recent:F,zones:B,nearbyEvents:K.slice(0,6),onSelect:e=>{(0,v.nG)(e),N(),w(e)},onZoneSelect:e=>{N(),L.push("/mapa?alcaldia=".concat(e.id))},nearbyLabel:null!=C?C:S("suggested_hospedaje"),zonesAfterNearby:!0,zoneCountLabel:null!=k?k:e=>S("zone_count_hospedaje",{count:e}),isLoading:q,isSearching:V})})]})})]})})}},41733:(e,t,l)=>{l.d(t,{h:()=>W});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(90615),o=l(25327),c=l(57937),d=l(58293),x=l(73945),u=l(19441),p=l(57430),m=l(53704),h=l(58521);function f(e){var t;let{route:l,agencyName:s,agencyImage:n,onClick:i}=e;return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] p-[12px] flex gap-[12px] items-center cursor-pointer hover:shadow-[0_6px_24px_rgba(0,0,0,0.10)] active:scale-[0.98] transition-[box-shadow,transform] duration-200",onClick:i,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&i(),children:[(0,a.jsx)("div",{className:"relative shrink-0 size-[86px] rounded-[12px] overflow-hidden bg-[#e8dede] flex items-center justify-center",children:(0,a.jsx)("img",{src:n,alt:"",className:"w-full h-full object-contain"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("p",{className:"flex-1 min-w-0 font-semibold text-[16px] text-[#4e3853] leading-tight line-clamp-2",children:l.routeLongName}),(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 shrink-0 text-[#4e3853] mt-0.5","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})]}),(0,a.jsxs)("span",{className:"self-start text-[12px] text-white px-[8px] py-[4px] rounded-full whitespace-nowrap font-medium",style:{backgroundColor:null!=(t=l.routeColor)?t:"#7b7b80"},children:[s," ",l.routeShortName]})]})]})}var g=l(67909),j=l(94992),b=l(13554),v=l(67866),N=l(65029),y=l(61556);let w=(0,g.default)(()=>Promise.all([l.e(122),l.e(5600),l.e(3051)]).then(l.bind(l,43051)).then(e=>({default:e.RouteMap})),{loadableGenerated:{webpack:()=>[43051]},ssr:!1});function C(e){var t,l,s,i;let{route:r,agencyName:o,open:c,onClose:d}=e,x=(0,n.useTranslations)("movilidad"),{data:u,isLoading:p}=(0,m.SQ)(c&&r?r.routeId:null),h=null!=(l=null!=(t=null==u?void 0:u.route.routeColor)?t:null==r?void 0:r.routeColor)?l:"#7b7b80",f=null!=(i=null!=(s=null==u?void 0:u.route.routeTextColor)?s:null==r?void 0:r.routeTextColor)?i:"#FFFFFF";return(0,a.jsx)(j.D,{open:c,onOpenChange:e=>{e||d()},children:(0,a.jsxs)(b.Z,{children:[(0,a.jsx)(v.X,{className:"fixed inset-0 bg-black/40 z-40 backdrop-blur-[2px]"}),(0,a.jsxs)(N.h,{className:"fixed inset-0 z-50 flex flex-col bg-white outline-none lg:inset-auto lg:top-1/2 lg:left-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:w-[480px] lg:h-[85dvh] lg:rounded-[24px] lg:overflow-hidden",children:[(0,a.jsxs)("div",{className:"relative shrink-0",style:{height:"45%"},children:[p?(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[#f0ebe8]",children:(0,a.jsx)("div",{className:"size-8 rounded-full border-2 border-t-transparent animate-spin",style:{borderColor:"".concat(h," transparent transparent transparent")}})}):u?(0,a.jsx)(w,{detail:u}):(0,a.jsx)("div",{className:"absolute inset-0 bg-[#f0ebe8]"}),(0,a.jsx)(y.H,{className:"absolute top-4 right-4 size-[44px] rounded-full bg-[#f1e4e4] flex items-center justify-center cursor-pointer hover:bg-[#e8d5d5] transition-colors z-10 shadow-sm","aria-label":x("close"),children:(0,a.jsx)(_,{})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto bg-white -mt-8 relative z-10 rounded-t-[32px] shadow-[0px_-20px_40px_rgba(0,0,0,0.16)]",children:(0,a.jsxs)("div",{className:"px-4 pb-10 flex flex-col gap-4 pt-6",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[32px] text-[#262626] leading-tight",children:null==r?void 0:r.routeLongName}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("span",{className:"text-[12px] px-3 py-1 rounded-full font-medium whitespace-nowrap",style:{backgroundColor:h,color:f},children:[o," ",null==r?void 0:r.routeShortName]}),u&&(0,a.jsx)("span",{className:"text-[12px] text-[#7d7d7d]",children:x("total_stops",{count:u.totalStops})})]}),r&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[20px] text-[#262626]",children:x("route_direction")}),(0,a.jsxs)("div",{className:"border border-[#f8f2f2] rounded-[12px] p-3 flex items-center gap-3",children:[(0,a.jsx)("div",{className:"size-3 rounded-full shrink-0",style:{backgroundColor:h}}),(0,a.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0",children:[(0,a.jsx)("p",{className:"text-[14px] font-semibold text-[#251c1c] truncate",children:r.routeShortName}),(0,a.jsx)("p",{className:"text-[12px] text-[#4e3853] truncate",children:r.routeLongName})]})]})]}),u&&(0,a.jsx)(k,{detail:u,routeColor:h})]})})]})]})})}function k(e){let{detail:t,routeColor:l}=e,s=(0,n.useTranslations)("movilidad"),i=t.geojson.features.filter(e=>"Point"===e.geometry.type&&"stop"===e.properties.featureType).sort((e,t)=>
1e.properties.sequence-t.properties.sequence);return 0===i.length?null:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"font-display font-bold text-[20px] text-[#262626]",children:[s("stops_heading")," ",(0,a.jsxs)("span",{className:"text-[#7d7d7d] text-[16px] font-normal",children:["(",i.length,")"]})]}),(0,a.jsxs)("div",{className:"relative flex flex-col gap-2",children:[i.length>1&&(0,a.jsx)("div",{className:"absolute left-[11px] top-[26px] bottom-[24px] w-[2px] pointer-events-none",style:{backgroundColor:"".concat(l,"40")}}),i.map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"shrink-0 w-6 flex justify-center pt-[14px] relative z-10",children:(0,a.jsx)("div",{className:"size-6 rounded-full bg-white flex items-center justify-center shrink-0",style:{border:"2px solid ".concat(l)},children:(0,a.jsx)("span",{className:"text-[9px] font-bold leading-none",style:{color:l},children:e.properties.sequence})})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 bg-[#f8f2f2] rounded-[12px] px-3 py-3",children:[(0,a.jsx)("p",{className:"text-[13px] font-semibold text-[#262626] leading-tight",children:e.properties.stopName}),(0,a.jsx)("p",{className:"text-[11px] text-[#7d7d7d] mt-0.5",children:s("stop_number",{number:e.properties.sequence})})]})]},e.properties.stopId))]})]})}function _(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 text-[#7b7b80]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}var S=l(98050),z=l(67624);function L(e){var t,l,n,i;let{open:r,onClose:o,agencies:c,defaultAgencyId:d,onSelect:x,getAgencyImage:u}
1=e,[p,h]=(0,s.useState)(""),[f,g]=(0,s.useState)(d);(0,s.useEffect)(()=>{r&&(h(""),g(d))},[r,d]);let{data:w,isLoading:C}=(0,m.Zm)(f),k=null!=(l=null==w?void 0:w.routes)?l:[],_=null!=(i=null!=(n=null==w?void 0:w.agency.name)?n:null==(t=c.find(e=>e.id===f))?void 0:t.name)?i:"",L=p.trim().toLowerCase(),D=(0,s.useMemo)(()=>L?k.filter(e=>e.routeLongName.toLowerCase().includes(L)||e.routeShortName.toLowerCase().includes(L)):k,[k,L]),E=e=>{o(),x(e)};return(0,a.jsx)(j.D,{open:r,onOpenChange:e=>!e&&o(),children:(0,a.jsxs)(b.Z,{children:[(0,a.jsx)(v.X,{className:"fixed inset-0 bg-black/30 z-40 transition-opacity data-[open]:opacity-100 data-[closed]:opacity-0"}),(0,a.jsx)(S.D,{className:"fixed inset-0 flex items-start justify-center pt-[60px] px-4 z-40",children:(0,a.jsxs)(N.h,{className:"bg-white w-full max-w-[640px] rounded-[24px] shadow-lg outline-none max-h-[80dvh] flex flex-col data-[open]:opacity-100 data-[closed]:opacity-0 data-[open]:translate-y-0 data-[closed]:-translate-y-2 transition-[opacity,transform]",children:[(0,a.jsxs)("div",{className:"shrink-0 p-3 pt-5 flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-[#f8f2f2] rounded-full px-3 h-12",children:[(0,a.jsx)(I,{}),(0,a.jsx)(z.L,{className:"sr-only",children:"Buscar ruta"}),(0,a.jsx)("input",{type:"text",value:p,onChange:e=>h(e.target.value),placeholder:"Buscar ruta","aria-label":"Buscar ruta",className:"flex-1 min-w-0 bg-transparent text-[16px] font-semibold text-[#262626] placeholder:text-[#9a8f8f] outline-none",autoFocus:!0}),(0,a.jsx)(y.H,{className:"shrink-0 size-8 flex items-center justify-center rounded-full hover:bg-[#ede6e6] transition-colors text-[#7b7b80]","aria-label":"Cancelar",children:(0,a.jsx)(F,{})})]}),c.length>0&&(0,a.jsx)("div",{className:"flex gap-1 overflow-x-auto pt-3",style:{scrollbarWidth:"none"},children:c.map(e=>(0,a.jsx)(M,{agency:e,isActive:f===e.id,image:u(e.id),onToggle:()=>g(e.id)},e.id))})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:C?(0,a.jsx)("div",{className:"p-8 flex justify-center",children:(0,a.jsx)("div",{className:"size-6 border-2 border-[#ab89f3] border-t-transparent rounded-full animate-spin"})}):L?0===D.length?(0,a.jsxs)("div",{className:"p-8 flex flex-col items-center text-center gap-1",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[28px] text-[#342828] leading-tight",children:"Sin resultados"}),(0,a.jsxs)("p",{className:"font-display font-bold text-[28px] text-[#342828] leading-tight",children:["“",p.trim(),"”"]}),(0,a.jsx)("p",{className:"mt-2 text-[14px] text-[#5d6a6e]",children:"Intenta con otro nombre de ruta"})]}):(0,a.jsx)("div",{className:"p-4 flex flex-col gap-2",role:"listbox",children:D.map(e=>(0,a.jsx)(A,{route:e,agencyName:_,query:L,onSelect:()=>E(e)},e.routeId))}):(0,a.jsx)(T,{routes:k.slice(0,6),agencyName:_,onSelect:E})})]})})]})})}function M(e){let{agency:t,isActive:l,image:s,onToggle:n}=e;return(0,a.jsxs)("button",{type:"button",onClick:n,className:"shrink-0 flex flex-col items-center gap-1 w-[64px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[48px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:(0,a.jsx)("img",{src:s,alt:"",className:"size-[32px] object-contain"})}),(0,a.jsx)("span",{className:"text-[10px] text-center leading-tight w-full truncate ".concat(l?"font-semibold text-[#262626]":"text-[#7b7b80]"),children:t.name})]})}function T(e){let{routes:t,agencyName:l,onSelect:s}=e;return 0===t.length?null:(0,a.jsxs)("div",{className:"p-4 flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[18px] text-[#342828] mb-2",children:"Rutas populares"}),t.map(e=>(0,a.jsx)(A,{route:e,agencyName:l,query:"",onSelect:()=>s(e)},e.routeId))]})}function A(e){var t,l;let{route:s,agencyName:n,query:i,onSelect:r}=e,o=null!=(t=s.routeColor)?t:"#7b7b80",c=null!=(l=s.routeTextColor)?l:"#FFFFFF";return(0,a.jsxs)("button",{type:"button",role:"option",onClick:r,className:"flex items-center gap-3 w-full text-left bg-[#f8f2f2] rounded-[16px] p-3 hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("div",{className:"size-[36px] rounded-full flex items-center justify-center font-bold text-[14px] shrink-0 leading-none",style:{backgroundColor:o,color:c},children:s.routeShortName}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[(0,a.jsx)("p",{className:"text-[14px] font-semibold leading-tight text-[#342828]",children:(0,a.jsx)(D,{title:s.routeLongName,query:i})}),(0,a.jsx)("p",{className:"text-[12px] text-[#4e3853]",children:n})]}
1),(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 shrink-0 text-[#9a8f8f]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})]})}function D(e){let{title:t,query:l}=e;if(!l)return(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t});let s=t.toLowerCase().indexOf(l);return s<0?(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t}):(0,a.jsxs)(a.Fragment,{children:[s>0&&(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t.slice(0,s)}),(0,a.jsx)("span",{className:"text-[#ab89f3]",children:t.slice(s,s+l.length)}),(0,a.jsx)("span",{className:"text-[#7d7d7d]",children:t.slice(s+l.length)})]})}function I(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5 shrink-0 text-[#9a8f8f]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}function F(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})}var E=l(25501);let K={metro:"/mobility/metro.png",metrobus:"/mobility/metrobus.png",metrobús:"/mobility/metrobus.png",mb:"/mobility/metrobus.png",rtp:"/mobility/rtp.png",trolebus:"/mobility/trolebus.png",trolebús:"/mobility/trolebus.png",trole:"/mobility/trolebus.png",cablebus:"/mobility/cablebus.png",cablebús:"/mobility/cablebus.png",cable:"/mobility/cablebus.png",cb:"/mobility/cablebus.png","tren-ligero":"/mobility/tren-ligero.png",tren:"/mobility/tren-ligero.png",tl:"/mobility/tren-ligero.png",autobus:"/mobility/autobus.png",autobús:"/mobility/autobus.png",ab:"/mobility/autobus.png"};function q(e,t){var l;return t||(null!=(l=K[e.toLowerCase()])?l:"/mobility/metro.png")}function W(e){var t,l,g,j,b,v;let{locale:N,mobile:y=!1,externalSearchOpen:w,onExternalSearchClose:k}=e,_=(0,n.useTranslations)("descubre"),S=(0,n.useLocale)(),[z,M]=(0,s.use
1State)(null),[T,A]=(0,s.useState)(null),[D,I]=(0,s.useState)(!1),F=(0,s.useRef)(!1),K=S===i.D.defaultLocale?"":"/".concat(S),W=()=>{I(!1),null==k||k()},{data:U=[],isLoading:V}=(0,m.qh)("movilidad",N),P=null!=(l=null!=z?z:null==(t=U[0])?void 0:t.id)?l:null,{data:X,isLoading:H}=(0,m.Zm)(P),Z=null!=(g=null==X?void 0:X.routes)?g:[],O=U.find(e=>e.id===P),R=null!=(b=null!=(j=null==X?void 0:X.agency.name)?j:null==O?void 0:O.name)?b:"",Q=q(null!=P?P:"",null!=(v=null==O?void 0:O.image)?v:"");function G(e){M(e);let t=U.find(t=>t.id===e);t&&(window.history.replaceState(null,"","".concat(K,"/movilidad/").concat((0,u.Y)(t.name,t.id))),(0,p.w)(t.name))}function $(e){var t;A(e);let l=(0,u.Y)(R||P||"",null!=(t=null==O?void 0:O.id)?t:""),a=(0,u.Y)(e.routeLongName,e.routeId);window.history.pushState(null,"","".concat(K,"/movilidad/").concat(l,"/").concat(a,"/").concat(e.routeId)),(0,p.w)(e.routeLongName||e.routeShortName)}(0,s.useEffect)(()=>{if(0===U.length||F.current)return;let e=window.innerWidth>=1024;if(y?e:!e)return;F.current=!0;let t=window.location.pathname.split("/").filter(Boolean),l=t.findIndex(e=>"movilidad"===e);if(-1===l)return;let a=t.slice(l+1);if(a.length>=3){let e=U.find(e=>(0,u.Y)(e.name,e.id)===a[0]);e&&M(e.id),A({routeId:a[2],routeShortName:"",routeLongName:"",routeColor:null,routeTextColor:null})}else if(a.length>=1){let e=U.find(e=>(0,u.Y)(e.name,e.id)===a[0]);e?M(e.id):A({routeId:a[0],routeShortName:"",routeLongName:"",routeColor:null,routeTextColor:null})}else{let e=U[0];e&&window.history.replaceState(null,"","".concat(K,"/movilidad/").concat((0,u.Y)(e.name,e.id)))}},[U,K]);let J="linear-gradient(to right,   transparent 0px,   black min(60px, var(--scroll-area-overflow-x-start, 0px)),   black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))),   transparent 100% )";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 py-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>I(!0),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors","aria-label":_("search_movilidad"),children:[(0,a.jsx)(B,{}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:_("search_movilidad")})]})}),V?(0,a.jsx)("div",{className:"px-4 flex gap-1 overflow-hidden",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(h.Dh,{},t))}):(0,a.jsxs)(r.V,{children:[(0,a.jsx)(o.B,{className:"px-4",style:{overflowX:"auto",scrollbarWidth:"none",maskImage:J,WebkitMaskImage:J},children:(0,a.jsx)(c.q,{className:"flex gap-1 py-1",children:U.map(e=>(0,a.jsx)(Y,{agency:e,isActive:P===e.id,onToggle:()=>G(e.id)},e.id))})}),(0,a.jsx)(d.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(x.l,{})})]}),(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(E.H,{section:"movilidad"})}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:_("stations_near_me")})}),(0,a.jsx)("div",{className:"px-4 flex flex-col gap-3 pb-6",children:H?Array.from({length:5}).map((e,t)=>(0,a.jsx)(h.pN,{},t)):0===Z.length?(0,a.jsxs)("div",{className:"py-12 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"\uD83D\uDE8C"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:_("no_routes")})]}):Z.map(e=>(0,a.jsx)(f,{route:e,agencyName:R,agencyImage:Q,onClick:()=>$(e)},e.routeId))})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[V?(0,a.jsx)("div",{className:"flex gap-1",children:Array.from({length:5}).map((e,t)=>(0,a.jsx)(h.Dh,{},t))}):(0,a.jsx)("div",{className:"flex gap-1 flex-wrap",children:U.map(e=>(0,a.jsx)(Y,{agency:e,isActive:P===e.id,onToggle:()=>G(e.id)},e.id))}),(0,a.jsx)(E.H,{section:"movilidad"}),(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:_("stations_near_me")}),H?(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(h.pN,{},t))}):0===Z.length?(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:(0,a.jsxs)("div",{className:"col-span-2 py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"\uD83D\uDE8C"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:_("no_routes")})]})}):(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:Z.map(e=>(0,a.jsx)(f,{route:e,agencyName:R,agencyImage:Q,onClick:()=>$(e)},e.routeId))})]}),(0,a.jsx)(L,{open:null!=w&&w||D,onClose:W,agencies:U,defaultAgencyId:P,onSelect:e=>{W(),$(e)},getAgencyImage:e=>{var t,l;return q(e,null!=(l=null==(t=U.find(t=>
1t.id===e))?void 0:t.image)?l:"")}}),(0,a.jsx)(C,{route:T,agencyName:R,open:null!==T,onClose:function(){A(null);let e=O?(0,u.Y)(O.name,O.id):"";window.history.replaceState(null,"",e?"".concat(K,"/movilidad/").concat(e):"".concat(K,"/movilidad")),(0,p.w)(R||_("tab_movilidad"))}})]})}function Y(e){let{agency:t,isActive:l,onToggle:s}=e,n=q(t.id,t.image);return(0,a.jsxs)("button",{type:"button",onClick:s,className:"shrink-0 flex flex-col items-center gap-1 w-[80px] cursor-pointer",children:[(0,a.jsx)("div",{className:"size-[64px] rounded-full flex items-center justify-center p-1 transition-all ".concat(l?"bg-[#f0e0e0] ring-2 ring-[#4e3853]":"bg-[#f8f2f2]"),children:(0,a.jsx)("img",{src:n,alt:"",className:"size-[40px] object-contain"})}),(0,a.jsx)("span",{className:"text-[12px] text-center leading-tight w-full truncate ".concat(l?"font-semibold text-[#262626]":"text-[#7b7b80]"),children:t.name})]})}function B(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}},42775:(e,t,l)=>{l.d(t,{b:()=>d});var a=l(95155),s=l(12115),n=l(90615),i=l(25327),r=l(57937),o=l(58293),c=l(73945);function d(e){let{children:t,gap:l="gap-4",edgePadding:d="-mx-4 px-4 lg:mx-0 lg:px-0",className:u=""}=e,p=(0,s.useRef)(null),[m,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{h(e.scrollLeft>0),g(e.scrollLeft<e.scrollWidth-e.clientWidth-1)};t(),e.addEventListener("scroll",t,{passive:!0});let l=new ResizeObserver(t);return l.observe(e),()=>{e.removeEventListener("scroll",t),l.disconnect()}},[]);let j=e=>{let t=p.current;if(!t)return;let l=t.querySelector("article, [data-card]"),a=l?l.offsetWidth+16:320;t.scrollBy({left:"next"===e?a:-a,behavior:"smooth"})};return(0,a.jsxs)("div",{className:"relative group ".concat(u),children:[(0,a.jsxs)(n.V,{children:[(0,a.jsx)(i.B,{ref:p,className:"snap-x snap-mandatory ".concat(d),style:{overflowX:"auto",scrollbarWidth:"none",maskImage:"linear-gradient(to right,   transparent 0px,   black min(60px, var(--scroll-area-overflow-x-start, 0px)),   black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))),   transparent 100% )",WebkitMaskImage:"linear-gradient(to right,   transparent 0px,   black min(60px, var(--scroll-area-overflow-x-start, 0px)),   black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))),   transparent 100% )"},children:(0,a.jsx)(r.q,{className:"flex items-stretch ".concat(l),children:t})}),(0,a.jsx)(o.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(c.l,{})})]}),m&&(0,a.jsx)("button",{type:"button","aria-label":"Anterior",onClick:()=>j("prev"),className:"hidden lg:flex absolute -left-5 top-1/2 -translate-y-1/2 size-10 items-center justify-center rounded-full bg-white shadow-[0_2px_12px_rgba(0,0,0,0.18)] text-[#4e3853] opacity-70 group-hover:opacity-100 transition-opacity hover:bg-[#f8f2f2] z-10 cursor-pointer",children:(0,a.jsx)(x,{dir:"left"})}),f&&(0,a.jsx)("button",{type:"button","aria-label":"Siguiente",onClick:()=>j("next"),className:"hidden lg:flex absolute -right-5 top-1/2 -translate-y-1/2 size-10 items-center justify-center rounded-full bg-white shadow-[0_2px_12px_rgba(0,0,0,0.18)] text-[#4e3853] opacity-70 group-hover:opacity-100 transition-opacity hover:bg-[#f8f2f2] z-10 cursor-pointer",children:(0,a.jsx)(x,{dir:"right"})})]})}function x(e){let{dir:t}=e;return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-5","aria-hidden":"true",children:"left"===t?(0,a.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"}):(0,a.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"})})}},49834:(e,t,l)=>{l.d(t,{DesktopTabs:()=>M});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(57430),o=l(95793),c=l(64271),d=l(58236),x=l(18618),u=l(13021),p=l(80657),m=l(17524),h=l(74708),f=l(93196),g=l(13373),j=l(3135),b=l(39836),v=l(99293),N=l(2333),y=l(16361),w=l(41733),C=l(11695),k=l(41726),_=l(46492),S=l(98505),z=l(15043),L=l(25501);function M(e){let{locale:t,initialTab:l,heroSlot:M,carouselSlot:A}
1=e,D=(0,n.useLocale)(),[I,F]=(0,s.useState)(null!=l?l:"eventos"),E=(0,s.useRef)(null);(0,s.useEffect)(()=>{var e,t;let l=null!=(t=null==(e=E.current)?void 0:e.parentElement)?t:null;for(;l;){let{overflowY:e}=window.getComputedStyle(l);if("auto"===e||"scroll"===e){l.scrollTop=0;break}l=l.parentElement}},[I]);let K=(0,n.useTranslations)("search"),[q,W]=(0,s.useState)(!1),[Y,B]=(0,s.useState)(null),[U,V]=(0,s.useState)(!1),[P,X]=(0,s.useState)(null),[H,Z]=(0,s.useState)(!1),[O,R]=(0,s.useState)(null),[Q,G]=(0,s.useState)(!1),[$,J]=(0,s.useState)(null),[ee,et]=(0,s.useState)(!1),[el,ea]=(0,s.useState)(null),[es,en]=(0,s.useState)(!1),[ei,er]=(0,s.useState)(null),[eo,ec]=(0,s.useState)(!1),[ed,ex]=(0,s.useState)(null),[eu,ep]=(0,s.useState)(!1),[em,eh]=(0,s.useState)(!1),ef=(0,n.useTranslations)("descubre"),{data:eg=[]}=(0,z.Z)(),[ej,eb,ev]=[...eg].sort((e,t)=>e.order-t.order);return(0,a.jsxs)("div",{ref:E,className:"flex flex-col min-h-full",children:[(0,a.jsx)("div",{className:"sticky top-0 z-30 bg-white",children:(0,a.jsxs)("div",{className:"max-w-[1100px] mx-auto w-full",children:[(0,a.jsx)("div",{className:"pt-[12px] px-[10px]",children:(0,a.jsx)(o.j,{activeTab:I,onTabChange:function(e){F(e);let t=D===i.D.defaultLocale?"":"/".concat(D),l="eventos"===e?t||"/":"".concat(t,"/").concat(e);window.history.replaceState(null,"",l),"eventos"===e?(0,r.L)(ef("title")):(0,r.w)(ef("tab_".concat(e)))}})}),(0,a.jsx)("div",{className:"flex justify-center py-[16px] px-[24px]",children:(0,a.jsxs)("button",{type:"button",onClick:()=>{"deportes"===I?V(!0):"hospedaje"===I?Z(!0):"gastronomia"===I?G(!0):"vuelos"===I?et(!0):"cultura"===I?en(!0):"experiencias"===I?ec(!0):"movilidad"===I?ep(!0):"informacion"===I?eh(!0):W(!0)},"aria-label":"deportes"===I?ef("search_futbol"):"hospedaje"===I?ef("search_hotels"):"gastronomia"===I?ef("search_restaurants"):"vuelos"===I?ef("search_flights"):"cultura"===I?ef("search_cultura"):"experiencias"===I?ef("search_experiencias"):"movilidad"===I?ef("search_movilidad"):"informacion"===I?ef("search_informacion"):ef("search_placeholder"),className:"flex items-center gap-[8px] bg-[#f8f2f2] h-[48px] px-[12px] py-[10px] rounded-[999px] cursor-pointer hover:bg-[#f0e8e8] transition-colors text-left w-[70%] max-w-[950px]",children:[(0,a.jsx)(T,{}),(0,a.jsx)("span",{className:"text-[18px] text-[#9a8f8f] font-semibold whitespace-nowrap",children:"deportes"===I?ef("search_futbol"):"hospedaje"===I?ef("search_hotels"):"gastronomia"===I?ef("search_restaurants"):"vuelos"===I?ef("search_flights"):"cultura"===I?ef("search_cultura"):"experiencias"===I?ef("search_experiencias"):"movilidad"===I?ef("search_movilidad"):"informacion"===I?ef("search_informacion"):ef("search_placeholder")})]})})]})}),"eventos"===I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(u.k,{locale:t})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"absolute inset-x-0 top-0 w-full h-[553px] pointer-events-none",style:{background:"linear-gradient(180deg, #e5d9ff 0%, rgba(229,217,255,0) 100%)"}}),(0,a.jsxs)("div",{className:"max-w-[1100px] mx-auto w-full px-8 relative",children:[(0,a.jsx)("div",{className:"pt-6 pb-4",children:(0,a.jsx)(L.H,{})}),(0,a.jsxs)("div",{className:"flex items-start gap-8 min-h-[560px]",children:[(0,a.jsx)("div",{className:"w-[480px] shrink-0 mt-[80px]",children:M}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:A})]})]})]}),(0,a.jsxs)("div",{className:"max-w-[1100px] mx-auto w-full px-8 flex flex-col gap-12 py-12",children:[(0,a.jsx)(c.g,{}),ej&&(0,a.jsx)(S.g,{src:ej.videoUrl}),(0,a.jsx)(p.D,{locale:t}),eb&&(0,a.jsx)(S.g,{src:eb.videoUrl}),(0,a.jsx)(m.Z,{locale:t}),ev&&(0,a.jsx)(S.g,{src:ev.videoUrl})]}),(0,a.jsx)(h.X,{locale:t}),(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-12",children:(0,a.jsx)(f.j,{locale:t})})]}),"deportes"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(g.Q,{locale:t})}),"hospedaje"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(j.f,{locale:t})}),"gastronomia"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(b.S,{locale:t})}),"vuelos"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(v.i,{locale:t})}),"cultura"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(N.m,{locale:t})}),"experiencias"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(y.o,{locale:t})}),"movilidad"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(w.h,{locale:t,externalSearchOpen:eu,onExternalSearchClose:()=>ep(!1)})}),"informacion"===I&&(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full px-8 py-6",children:(0,a.jsx)(C.b,{externalSearchOpen:em,onExternalSearchClose:()=>eh(!1)})}),"eventos"!==I&&"deportes"!==I&&"hospedaje"!==I&&"gastronomia"!==I&&"vuelos"!==I&&"cultura"!==I&&"experiencias"!==I&&"movilidad"!==I&&"informacion"!==I&&(0,a.jsxs)("div",{className:"flex flex-col items-center gap-3 py-20 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"ℹ️"}),(0,a.jsx)("p",{className:"font-display font-bold text-[24px] text-[#262626]",children:ef("coming_soon")})]}),(0,a.jsx)("div",{className:"flex-1","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"relative w-full h-[160px] overflow-hidden pointer-events-none select-none",children:[(0,a.jsx)("img",{src:"/jacaranda-footer.png",alt:"","aria-hidden":"true",className:"absolute bottom-0 left-0 w-full",style:{opacity:.5}}),(0,a.jsx)("div",{className:"absolute inset-x-0 top-0 h-20 pointer-events-none",style:{background:"linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 100%)"}})]}),(0,a.jsx)(d.R,{open:q,onClose:()=>W(!1),onSelect:e=>B(e)}),(0,a.jsx)(x.K,{event:Y,open:null!==Y,onClose:()=>B(null)}),(0,a.jsx)(k.q,{sectionId:"futbol",open:U,onClose:()=>V(!1),placeholder:ef("search_futbol"),onSelect:e=>X(e),nearbyLabel:K("suggested_futbol"),zoneCountLabel:e=>
1K("zone_count_futbol",{count:e})}),(0,a.jsx)(x.K,{event:P,open:null!==P,onClose:()=>X(null)}),(0,a.jsx)(k.q,{sectionId:"hospedaje",open:H,onClose:()=>Z(!1),placeholder:ef("search_hotels"),onSelect:e=>R(e)}),(0,a.jsx)(_.A,{hotel:O,open:null!==O,onClose:()=>R(null)}),(0,a.jsx)(k.q,{sectionId:"gastronomia",open:Q,onClose:()=>G(!1),placeholder:ef("search_restaurants"),onSelect:e=>J(e),nearbyLabel:K("suggested_gastronomia"),zoneCountLabel:e=>K("zone_count_gastronomia",{count:e})}),(0,a.jsx)(x.K,{event:$,open:null!==$,onClose:()=>J(null)}),(0,a.jsx)(k.q,{sectionId:"vuelos",open:ee,onClose:()=>et(!1),placeholder:ef("search_flights"),onSelect:e=>ea(e),nearbyLabel:K("suggested_vuelos"),zoneCountLabel:e=>K("zone_count_vuelos",{count:e})}),(0,a.jsx)(x.K,{event:el,open:null!==el,onClose:()=>ea(null)}),(0,a.jsx)(k.q,{sectionId:"cultura",open:es,onClose:()=>en(!1),placeholder:ef("search_cultura"),onSelect:e=>er(e),nearbyLabel:K("suggested_cultura"),zoneCountLabel:e=>K("zone_count_cultura",{count:e})}),(0,a.jsx)(x.K,{event:ei,open:null!==ei,onClose:()=>er(null)}),(0,a.jsx)(k.q,{sectionId:"experiencias",open:eo,onClose:()=>ec(!1),placeholder:ef("search_experiencias"),onSelect:e=>ex(e),nearbyLabel:K("suggested_experiencias"),zoneCountLabel:e=>K("zone_count_experiencias",{count:e})}),(0,a.jsx)(x.K,{event:ed,open:null!==ed,onClose:()=>ex(null)})]})}function T(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 shrink-0 text-[#ab89f3]","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})}},51126:(e,t,l)=>{l.d(t,{X:()=>n});var a=l(95155),s=l(34663);function n(e){let{id:t,heading:l,subheading:n,cta:i}=e;return(0,a.jsxs)("div",{className:"flex items-start justify-between mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h2",{id:t,className:"font-display font-bold text-[24px] lg:text-[40px] text-[#262626] leading-tight lg:leading-[30px]",children:l}),n&&(0,a.jsx)("p",{className:"text-[14px] lg:text-[20px] text-[#5d6a6e] leading-normal",children:n})]}),i&&("href"in i?(0,a.jsx)(s.N_,{href:i.href,className:"text-[12px] font-bold text-brand-red shrink-0 ml-4 mt-1 cursor-pointer hover:opacity-70 active:opacity-50 transition-opacity",children:i.label}):(0,a.jsx)("button",{type:"button",onClick:i.onClick,className:"text-[12px] font-bold text-brand-red shrink-0 ml-4 mt-1 cursor-pointer hover:opacity-70 active:opacity-50 transition-opacity",children:i.label}))]})}},57430:(e,t,l)=>{function a(e){var t,l;"undefined"!=typeof document&&(document.title=e,null==(t=document.querySelector('meta[property="og:title"]'))||t.setAttribute("content",e),null==(l=document.querySelector('meta[name="twitter:title"]'))||l.setAttribute("content",e))}function s(e){a("".concat(e).concat(" | CDMX 2026"))}function n(e){a(e)}l.d(t,{L:()=>n,w:()=>s})},58236:(e,t,l)=>{l.d(t,{R:()=>N});var a=l(95155),s=l(12115),n=l(94992),i=l(13554),r=l(67866),o=l(98050),c=l(65029),d=l(67624),x=l(61556),u=l(95604),p=l(34663),m=l(74635),h=l(41131),f=l(53455),g=l(12326),j=l(37527),b=l(79212),v=l(66294);function N(e){let{open:t,onClose:l,onSelect:N}=e,y=(0,u.useTranslations)("header"),w=(0,u.useLocale)(),C=(0,p.rd)(),[k,_]=(0,s.useState)(""),[S,z]=(0,s.useState)(""),[L,M]=(0,s.useState)([]);(0,s.useEffect)(()=>{let e=setTimeout(()=>z(k.trim()),300);return()=>clearTimeout(e)},[k]),(0,s.useEffect)(()=>{t&&(_(""),z(""),M((0,v.oj)()))},[t]);let T=(0,f.useQuery)({queryKey:b.ch.list("eventos",w,{limit:"20"}),queryFn:()=>(0,g.V)("/sections/eventos/elements",{locale:w,params:{limit:"20"}}).then(e=>j.cV.parse(e)),staleTime:6e4}),A=(0,f.useQuery)({queryKey:[...b.ch.all,"search","eventos",w,S],queryFn:()=>(0,g.V)("/sections/eventos/elements",{locale:w,params:{q:S,limit:"20"}}).then(e=>j.cV.parse(e)),staleTime:3e4,enabled:S.length>=3}),D=(0,s.useMemo)(()=>{var e,t;return(0,v.$8)(null!=(t=null==(e=T.data)?void 0:e.items)?t:[])},[T.data]),I=(0,s.useMemo)(()=>(0,v.aN)(D),[D]),F=(0,s.useMemo)(()=>{var e,t;return(0,v.iS)((0,v.$8)(null!=(t=null==(e=A.data)?void 0:e.items)?t:[]),S)},[A.data,S]),E=T.isLoading,K=k.trim().length>0&&(k.trim()!==S||S.length<3||S.length>=3&&A.isFetching);return(0,a.jsx)(n.D,{open:t,onOpenChange:e=>!e&&l(),children:(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(r.X,{className:"fixed inset-0 bg-black/30 data-[open]:opacity-100 data-[closed]:opacity-0 transition-opacity z-40"}),(0,a.jsx)(o.D,{className:"fixed inset-0 flex items-start justify-center pt-[80px] px-4 z-40",children:(0,a.jsxs)(c.h,{className:"bg-white w-full max-w-[640px] rounded-[24px] shadow-lg outline-none data-[open]:opacity-100 data-[closed]:opacity-0 data-[open]:translate-y-0 data-[closed]:-translate-y-2 transition-[opacity,transform] max-h-[80dvh] flex flex-col",children:[(0,a.jsx)("div",{className:"shrink-0 p-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 bg-surface-card rounded-pill px-3 h-12",children:[(0,a.jsx)(m.WI,{className:"size-5 shrink-0 text-text-placeholder"}),(0,a.jsx)(d.L,{className:"sr-only",children:y("search_label")}),(0,a.jsx)("input",{type:"text",value:k,onChange:e=>_(e.target.value),placeholder:y("search_placeholder"),"aria-label":y("search_label"),className:"flex-1 min-w-0 bg-transparent text-[16px] font-semibold text-text-section placeholder:text-text-placeholder outline-none",autoFocus:!0}),(0,a.jsx)(x.H,{className:"shrink-0 size-8 flex items-center justify-center rounded-full hover:bg-[#ede6e6] transition-colors text-text-secondary hover:text-text-section","aria-label":y("cancel"),children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",className:"size-5","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsx)(h.G,{query:k,matches:F,recent:L,zones:I,nearbyEvents:D.slice(0,6),onSelect:e=>{(0,v.nG)(e),l(),null==N||N(e)},onZoneSelect:e=>{l(),C.push("/mapa?alcaldia=".concat(e.id))},isLoading:E,isSearching:K})})]})})]})})}},58521:(e,t,l)=>{l.d(t,{Dh:()=>n,QY:()=>r,Wy:()=>d,bu:()=>c,pN:()=>x,wA:()=>i,xh:()=>o,zi:()=>u});var a=l(95155);function s(e){let{className:t}=e;return(0,a.jsx)("div",{className:"animate-pulse bg-[#ede6e6] ".concat(t)})}function n(){return(0,a.jsxs)("div",{className:"shrink-0 flex flex-col items-center gap-1 w-[80px]",children:[(0,a.jsx)(s,{className:"size-[64px] rounded-full"}),(0,a.jsx)(s,{className:"w-[52px] h-[10px] rounded-full mt-1"})]})}function i(){return(0,a.jsx)(s,{className:"shrink-0 snap-start w-[345px] h-[255px] lg:w-[411px] lg:h-[605px] rounded-[24px]"})}function r(){return(0,a.jsxs)("div",{className:"shrink-0 flex flex-col gap-2 w-[180px]",children:[(0,a.jsx)(s,{className:"w-full h-[150px] rounded-[16px]"}),(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/2 h-[11px] rounded-full"})]})}function o(){return(0,a.jsxs)("div",{className:"shrink-0 w-[280px] bg-[#f8f2f2] rounded-[24px] p-3 flex flex-col gap-2",children:[(0,a.jsx)(s,{className:"w-full h-[120px] rounded-[12px]"}),(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/2 h-[11px] rounded-full"})]})}function c(){return(0,a.jsxs)("div",{className:"bg-[#f8f2f2] rounded-[24px] p-3 flex gap-3 items-center",children:[(0,a.jsx)(s,{className:"size-[86px] rounded-[12px] shrink-0"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-full h-[11px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/2 h-[11px] rounded-full"})]})]})}function d(e){let{carousel:t}=e;return(0,a.jsxs)("div",{className:"bg-[#f8f2f2] rounded-[24px] overflow-hidden flex flex-col ".concat(t?"shrink-0 w-[294px]":""),children:[(0,a.jsx)(s,{className:"w-full h-[180px]"}),(0,a.jsxs)("div",{className:"p-3 flex flex-col gap-2",children:[(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/2 h-[11px] rounded-full"}),(0,a.jsx)(s,{className:"w-2/3 h-[11px] rounded-full"})]})]})}function x(){return(0,a.jsxs)("div",{className:"bg-[#f8f2f2] rounded-[24px] p-4 flex items-center gap-3",children:[(0,a.jsx)(s,{className:"size-[48px] rounded-full shrink-0"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/3 h-[11px] rounded-full"})]}),(0,a.jsx)(s,{className:"size-[20px] rounded-full shrink-0"})]})}function u(){return(0,a.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5}).map((e,t)=>(0,a.jsxs)("div",{className:"flex gap-3 items-start",children:[(0,a.jsx)(s,{className:"w-[36px] h-[11px] rounded-full mt-2 shrink-0"}),(0,a.jsxs)("div",{className:"flex-1 bg-[#f8f2f2] rounded-[16px] p-3 flex gap-3 items-center",children:[(0,a.jsx)(s,{className:"size-[64px] rounded-[10px] shrink-0"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 flex-1",children:[(0,a.jsx)(s,{className:"w-3/4 h-[14px] rounded-full"}),(0,a.jsx)(s,{className:"w-1/2 h-[11px] rounded-full"})]})]})]},t))})}},64271:(e,t,l)=>{l.d(t,{g:()=>m});var a=l(95155),s=l(12115),n=l(95604),i=l(15239),r=l(94992),o=l(13554),c=l(67866),d=l(98050),x=l(65029),u=l(61556);function p(e){let{imageUrl:t,open:l,onClose:s,alt:n=""}=e;return(0,a.jsx)(r.D,{open:l,onOpenChange:e=>!e&&s(),children:(0,a.jsxs)(o.Z,{children:[(0,a.jsx)(c.X,{className:"fixed inset-0 z-50 bg-black/60 data-[open]:opacity-100 data-[closed]:opacity-0 transition-opacity duration-300"}),(0,a.jsx)(d.D,{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,a.jsxs)(x.h,{className:"relative outline-none rounded-[24px] overflow-hidden w-[90vw] max-w-md data-[open]:scale-100 data-[closed]:scale-95 data-[open]:opacity-100 data-[closed]:opacity-0 transition-[transform,opacity] duration-300",children:[(0,a.jsx)(i.default,{src:t,alt:n,width:402,height:762,className:"block w-full h-auto max-h-[90vh] object-contain",sizes:"(max-width: 640px) 90vw, 448px",priority:!0}),(0,a.jsx)(u.H,{className:"absolute top-3 right-3 size-[36px] bg-white rounded-full flex items-center justify-center text-[#262626] shadow-[0_2px_8px_rgba(0,0,0,0.18)] hover:bg-[#f0f0f0] transition-colors cursor-pointer z-10","aria-label":"Cerrar",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",className:"size-5","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]})})]})})}function m(){let e=(0,n.useTranslations)("descubre"),[t,l]=(0,s.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>l(!0),onKeyDown:e=>"Enter"===e.key&&l(!0),className:"lg:hidden block relative overflow-hidden cursor-pointer",style:{height:"350px"},"aria-label":e("fortnite_aria"),children:[(0,a.jsx)("img",{src:"/fortnite-banner-bg.jpg",alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover pointer-events-none select-none"}),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(180deg, rgba(0,143,255,0) 0%, rgba(0,143,255,0.5) 100%)"}}),(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center",style:{paddingTop:"106px",pointerEvents:"none"},children:[(0,a.jsx)("img",{src:"/fortnite-logo.svg",alt:"Fortnite",width:207,height:73,className:"shrink-0 object-contain"}),(0,a.jsx)("img",{src:"/fortnite-cdmx-text.png",alt:"Ciudad de M\xe9xico",width:157,height:89,className:"shrink-0 object-contain",style:{marginTop:"-16px"}}),(0,a.jsx)("div",{className:"shrink-0 flex items-center justify-center font-[family-name:var(--font-bebas-neue)] text-[16px] tracking-wider text-black rounded-[2px]",style:{marginTop:"9px",width:"182px",height:"31px",background:"#ffee00",borderBottom:"3px solid #bda313",borderRight:"3px solid #bda313"},children:e("fortnite_cta")}),(0,a.jsx)("p",{className:"text-white text-center shrink-0 px-4",style:{fontSize:"12px",lineHeight:"1.4",marginTop:"13px"},children:e("fortnite_subtitle")})]})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>l(!0),className:"hidden lg:block relative overflow-hidden rounded-[12px] cursor-pointer w-full text-left",style:{height:"402px"},"aria-label":e("fortnite_aria"),children:[(0,a.jsx)("img",{src:"/fortnite-banner-bg-desktop.jpg",alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover pointer-events-none select-none"}),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none rounded-[12px]",style:{background:"linear-gradient(180deg, rgba(0,143,255,0) 0%, rgba(0,143,255,0.5) 100%)"}}),(0,a.jsx)("img",{src:"/fortnite-logo.svg",alt:"Fortnite",width:254,height:96,className:"absolute left-1/2 -translate-x-1/2 object-contain pointer-events-none",style:{top:"148px"}}),(0,a.jsx)("img",{src:"/fortnite-cdmx-text-desktop.png",alt:"Ciudad de M\xe9xico",width:157,height:89,className:"absolute left-1/2 -translate-x-1/2 object-contain pointer-events-none",style:{top:"209px"}}),(0,a.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center justify-center font-[family-name:var(--font-bebas-neue)] text-[16px] tracking-wider text-black rounded-[2px]",style:{top:"323px",width:"182px",height:"31px",background:"#ffee00",borderBottom:"3px solid #bda313",borderRight:"3px solid #bda313"},children:e("fortnite_cta")}),(0,a.jsx)("p",{className:"absolute left-1/2 -translate-x-1/2 text-white text-center whitespace-nowrap",style:{top:"367px",fontSize:"12px",lineHeight:"1.4"},children:e("fortnite_subtitle")})]}),(0,a.jsx)(p,{imageUrl:"/fortnite-modal.png",open:t,onClose:()=>l(!1),alt:"Fortnite Ciudad de M\xe9xico"})]})}},66878:(e,t,l)=>{l.d(t,{d:()=>n});var a=l(95155),s=l(15239);function n(e){let{hotel:t,onClick:l}=e;return(0,a.jsxs)("article",{className:"h-full bg-[#f8f2f2] rounded-[24px] p-4 flex flex-col gap-3 cursor-pointer hover:shadow-[0_6px_24px_rgba(0,0,0,0.10)] active:scale-[0.98] transition-[box-shadow,transform] duration-200",onClick:l,role:l?"button":void 0,tabIndex:l?0:void 0,onKeyDown:l?e=>"Enter"===e.key&&l():void 0,children:[(0,a.jsx)("div",{className:"relative w-full aspect-video rounded-[16px] overflow-hidden bg-surface-card",children:t.imageUrl&&(0,a.jsx)(s.default,{src:t.imageUrl,alt:t.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) calc(100vw - 32px), 340px"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[28px] text-[#262626] leading-none",children:t.title}),(()=>{let e=t.venue&&t.venue!==t.title?t.venue:void 0,l=null!=e?e:t.address;return l?(0,a.jsx)("p",{className:"text-[12px] font-semibold text-brand-red line-clamp-2",children:l}):null})()]})]})}},74708:(e,t,l)=>{l.d(t,{X:()=>b});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(53704),d=l(58521),x=l(17748),u=l(18618),p=l(42775),m=l(15239),h=l(93729),f=l(14653);function g(e){var t;let{open:l,onClose:i,locale:r}=e,o=(0,n.useTranslations)("descubre"),{data:d}=(0,c.Ls)(r),x=null!=(t=null==d?void 0:d.items)?t:[],[p,m]=(0,s.use
1State)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.e,{open:l,onClose:i,title:o("sponsored_heading"),children:(0,a.jsx)("div",{className:"flex flex-col gap-4 px-4 pb-8 pt-2",children:x.map(e=>(0,a.jsx)(j,{event:e,onClick:()=>m(e)},e.id))})}),(0,a.jsx)(u.K,{event:p,open:null!==p,onClose:()=>m(null)})]})}function j(e){var t;let{event:l,onClick:s}=e,n=(0,f.z6)(l.dateStart,l.dateEnd);return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] overflow-hidden cursor-pointer hover:bg-[#f0e8e8] transition-colors",onClick:s,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&s(),"aria-label":l.title,children:[(0,a.jsx)("div",{className:"relative w-full aspect-[338/190] overflow-hidden",children:(0,a.jsx)(m.default,{src:l.imageUrl,alt:"",fill:!0,className:"object-cover",sizes:"(min-width: 1024px) 448px, calc(100vw - 32px)","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-[2px]",children:[(0,a.jsx)("p",{className:"font-display font-bold text-[20px] text-[#262626] leading-none",children:l.title}),(0,a.jsx)("p",{className:"text-[13px] font-semibold text-[#ab89f3]",children:null!=(t=l.venue)?t:l.address}),(0,a.jsx)("p",{className:"text-[12px] text-[#7b7b80]",children:n})]})]})}function b(e){var t;let{locale:l}=e,m=(0,n.useTranslations)("descubre"),h=(0,n.useLocale)(),{data:f,isLoading:j}=(0,c.Ls)(l),b=null!=(t=null==f?void 0:f.items)?t:[],[v,N]=(0,s.useState)(null),[y,w]=(0,s.useState)(!1),C=h===i.D.defaultLocale?"":"/".concat(h);return j||0!==b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"sponsored-heading",className:"bg-[#ab89f3] py-4 flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"max-w-[1100px] mx-auto w-full flex items-center justify-between px-4 lg:px-8",children:[(0,a.jsx)("h2",{id:"sponsored-heading",className:"font-display font-bold text-[24px] text-white leading-tight",children:m("sponsored_heading")}),(0,a.jsx)("button",{type:"button",onClick:()=>w(!0),className:"text-[12px] font-bold text-white shrink-0 ml-4 cursor-pointer hover:opacity-70 active:opacity-50 transition-opacity",children:m("see_all")})]}),(0,a.jsx)("div",{className:"max-w-[1100px] mx-auto w-full",children:(0,a.jsx)(p.b,{edgePadding:"px-4 lg:px-8",gap:"gap-3",children:j?Array.from({length:3}).map((e,t)=>(0,a.jsx)(d.QY,{},t)):b.map(e=>(0,a.jsx)(x.n,{event:e,locale:l,variant:"sponsored",onClick:()=>(function(e){N(e);let t=e.sectionId||"eventos";window.history.pushState(null,"","".concat(C,"/").concat(t,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)})(e)},e.id))})})]}),(0,a.jsx)(u.K,{event:v,open:null!==v,onClose:function(){N(null),window.history.replaceState(null,"",C||"/"),(0,o.L)(m("title"))}}),(0,a.jsx)(g,{open:y,onClose:()=>w(!1),locale:l})]}):null}},80657:(e,t,l)=>{l.d(t,{D:()=>b});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(53704),d=l(58521),x=l(14653);function u(e){let{flag:t}=e;return t?t.startsWith("http")||t.startsWith("/")?(0,a.jsx)("img",{src:t,alt:"",className:"size-[24px] object-contain"}):(0,a.jsx)("span",{className:"text-[24px] leading-none",children:t}):(0,a.jsx)("span",{className:"text-[24px] leading-none",children:"⚽"})}function p(e){var t;let{event:l,onClick:s,className:i}=e,r=(0,n.useLocale)(),o=(0,n.useTranslations)("event"),{home:c,away:d}=function(e,t){var l,a,s,n,i,r;let o=e.metadata;if(!o)return{home:null,away:null};function c(e){var l,a,s;if(!e)return null;let n=null!=(a=null!=(l="es"===t?e.nameEs:e.nameEn)?l:e.name)?a:"";return n||e.flag?{name:n,flag:null!=(s=e.flag)?s:""}:null}let d=o.teamA,x=o.teamB;if(null!=d?d:x)return{home:c(d),away:c(x)};let u=e=>{let t=o[e];return t&&"object"==typeof t?t:null},p=null!=(s=null!=(a=null!=(l=u("homeTeam"))?l:u("home_team"))?a:u("home"))?s:u("local"),m=null!=(r=null!=(i=null!=(n=u("awayTeam"))?n:u("away_team"))?i:u("away"))?r:u("visitante");return{home:c(p),away:c(m)}}(l,r),p=(0,x.cA)(l.dateStart,"en"===r?"en-US":"es-MX",o("tbd"));return(0,a.jsxs)("article",{className:null!=i?i:"snap-start shrink-0 w-[176px] bg-[#f8f2f2] rounded-[24px] px-[8px] py-[12px] flex flex-col gap-[8px] items-center cursor-pointer hover:shadow-[0_4px_16px_rgba(0,0,0,0.08)] active:scale-[0.98] transition-[box-shadow,transform] duration-200",onClick:s,role:s?"button":void 0,tabIndex:s?0:void 0,onKeyDown:s?e=>"Enter"===e.key&&s():void 0,children:[(0,a.jsx)("p",{className:"text-[12px] font-semibold text-[#ab89f3] text-center w-full",children:p}),(0,a.jsxs)("div",{className:"flex items-center justify-between w-full text-center",children:[(0,a.jsxs)("div",{className:"flex flex-col h-[40px] items-center shrink-0 text-[#7b7b80] w-[50px]",children:[(0,a.jsx)(u,{flag:null==c?void 0:c.flag}),(0,a.jsx)("span",{className:"text-[10px] font-medium w-full truncate leading-tight",children:(null==c?void 0:c.name)||o("tbd")})]}),(0,a.jsx)("span",{className:"text-[10px] font-bold text-[#251c1c] whitespace-nowrap",children:"VS"}),(0,a.jsxs)("div",{className:"flex flex-col h-[40px] items-center shrink-0 text-[#7b7b80] w-[50px]",children:[(0,a.jsx)(u,{flag:null==d?void 0:d.flag}),(0,a.jsx)("span",{className:"text-[10px] font-medium w-full truncate leading-tight",children:(null==d?void 0:d.name)||o("tbd")})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-[4px] bg-[#fffcfc] rounded-[999px] px-[8px] py-[4px] w-full overflow-hidden",children:[(0,a.jsx)("img",{src:"/icons/soccer.svg",alt:"","aria-hidden":"true",className:"size-4 shrink-0"}),(0,a.jsx)("span",{className:"text-[12px] font-medium text-[#7b7b80] text-center truncate min-w-0",children:null!=(t=l.venue)?t:"—"})]})]})}var m=l(23309),h=l(42775),f=l(93729);function g(e){var t;let{open:l,onClose:i,locale:r}=e,o=(0,n.useTranslations)("descubre"),{data:d}=(0,c.Yp)("eventos",c.mm,r),x=null!=(t=null==d?void 0:d.items)?t:[],[u,h]=(0,s.use
1State)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.e,{open:l,onClose:i,title:o("matches_heading"),children:(0,a.jsx)("div",{className:"flex flex-col gap-3 px-4 pb-8 pt-2",children:x.map(e=>(0,a.jsx)(p,{event:e,onClick:()=>h(e),className:"w-full bg-[#f8f2f2] rounded-[24px] px-[8px] py-[12px] flex flex-col gap-2 items-center cursor-pointer"},e.id))})}),(0,a.jsx)(m.V,{event:u,open:null!==u,onClose:()=>h(null)})]})}var j=l(51126);function b(e){var t,l;let{locale:x}=e,u=(0,n.useTranslations)("descubre"),{data:f,isLoading:b}=(0,c.Eb)(x),v=null!=(t=null==f?void 0:f.items)?t:[],N=!b&&0===v.length,{data:y,isLoading:w}=(0,c.T0)(x,N),C=b||N&&w,k=N?null!=(l=null==y?void 0:y.items)?l:[]:v,_=N?u("upcoming_matches_heading"):u("matches_heading"),[S,z]=(0,s.useState)(null),[L,M]=(0,s.useState)(!1),T=(0,n.useLocale)(),A=T===i.D.defaultLocale?"":"/".concat(T);return C||0!==k.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"matches-heading",className:"px-4 lg:px-0",children:[(0,a.jsx)(j.X,{id:"matches-heading",heading:_,subheading:u("matches_subheading",{count:k.length}),cta:{label:u("see_all"),onClick:()=>M(!0)}}),(0,a.jsx)(h.b,{children:C?Array.from({length:4}).map((e,t)=>(0,a.jsx)(d.xh,{},t)):k.map(e=>(0,a.jsx)(p,{event:e,onClick:()=>(function(e){z(e);let t=e.sectionId||"futbol";window.history.pushState(null,"","".concat(A,"/").concat("futbol"===t?"deportes":t,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)})(e)},e.id))})]}),(0,a.jsx)(m.V,{event:S,open:null!==S,onClose:function(){z(null),window.history.replaceState(null,"",A||"/"),(0,o.L)(u("title"))}}),(0,a.jsx)(g,{open:L,onClose:()=>M(!1),locale:x})]}):null}},91814:(e,t,l)=>{l.d(t,{N:()=>s,z:()=>a});let a=[{id:"emergencias",labelKey:"emergency_emergencias",number:"911 o 089",icon:"/informacion/emergencias.png"},{id:"policia-turistica",labelKey:"emergency_policia_turistica",number:"5548911166",icon:"/informacion/policia-turistica.png"},{id:"angeles-verdes",labelKey:"emergency_angeles_verdes",number:"078",icon:"/informacion/angeles-verdes.png"}],s=[{id:"condesa",nameKey:"module_name_condesa",fullNameKey:"module_full_condesa",address:"Av. Nuevo Le\xf3n No. 56, piso 2\xba, Col. Condesa, C.P. 06170, Cuauht\xe9moc, Ciudad de M\xe9xico.",nearbyVenue:"Estadio Banorte",mapsUrl:"https://maps.google.com/?q=Av.+Nuevo+Le\xf3n+56+Condesa+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/condesa.png"},{id:"antropologia",nameKey:"module_name_antropologia",fullNameKey:"module_full_antropologia",address:"Av. Paseo de la Reforma S/N (Frente al Museo) Col. Polanco, Bosque de Chapultepec I Secc, C.P. 11560, Miguel Hidalgo, Ciudad de M\xe9xico",mapsUrl:"https://maps.google.com/?q=Museo+Nacional+de+Antropolog\xeda+Chapultepec+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/antropologia.png"},{id:"basilica",nameKey:"module_name_basilica",fullNameKey:"module_full_basilica",address:"Fray Juan de Zum\xe1rraga No. 2, Col. Villa Gustavo A. Madero, C.P 07050, Gustavo A. Madero, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=Bas\xedlica+de+Guadalupe+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/basilica.png"},{id:"central-sur",nameKey:"module_name_central_sur",fullNameKey:"module_full_central_sur",address:"Av. Taxque\xf1a No. 1320, Col. Campestre Churubusco, C.P.04370, Coyoac\xe1n, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=Central+Camionera+del+Sur+Taxque\xf1a+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/central-sur.png"},{id:"central-oriente",nameKey:"module_name_central_oriente",fullNameKey:"module_full_central_oriente",address:"Calzada Ignacio Zaragoza No. 200, Col. 10 de Mayo, C.P. 15290, Venustiano Carranza, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=TAPO+Terminal+Oriente+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/central-oriente.png"},{id:"catedral",nameKey:"module_name_catedral",fullNameKey:"module_full_catedral",address:"Plaza de la Constituci\xf3n S/N, Col. Centro, C.P. 06000, Cuauht\xe9moc, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=Catedral+Metropolitana+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/catedral.png"},{id:"templo-mayor",nameKey:"module_name_templo_mayor",fullNameKey:"module_full_templo_mayor",address:"Plaza Seminario S/N, Col. Centro, C.P. 06000, Cuauht\xe9moc, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=Templo+Mayor+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/templo-mayor.png"},{id:"alameda",nameKey:"module_name_alameda",fullNameKey:"module_full_alameda",address:"Av. Ju\xe1rez S/N, Col. Centro, C.P. 06010, (Plaza de la Solidaridad) Cuauht\xe9moc, Ciudad de M\xe9xico",mapsUrl:"https://maps.google.com/?q=Alameda+Central+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/alameda.png"},{id:"angel",nameKey:"module_name_angel",fullNameKey:"module_full_angel",address:"Av. Paseo de la Reforma esq. Florencia S/N, Col. Ju\xe1rez, C.P. 06600, Cuauht\xe9moc, Ciudad de M\xe9xico.",mapsUrl:"https://maps.google.com/?q=\xc1ngel+de+la+Independencia+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/angel.png"},{id:"canotaje",nameKey:"module_name_canotaje",fullNameKey:"module_full_canotaje",address:"Antiguo Canal Cuemanco 4557, Pista Ol\xedmpica Virgilio Uribe, C.P. 16034, Xochimilco, Ciudad de M\xe9xico",mapsUrl:"https://maps.google.com/?q=Pista+Ol\xedmpica+Virgili
1o+Uribe+Xochimilco",phone:"5548911166",image:"/informacion/canotaje.png"},{id:"aicm-t1",nameKey:"module_name_aicm_t1",fullNameKey:"module_full_aicm_t1",address:"Av. Capit\xe1n Carlos Le\xf3n S/N, Pe\xf1\xf3n de los Ba\xf1os, C.P 15620, Venustiano Carranza, Ciudad de M\xe9xico. (Ambulatorio Puerta 2)*",mapsUrl:"https://maps.google.com/?q=Aeropuerto+Internacional+Ciudad+de+M\xe9xico+Terminal+1",phone:"5548911166",image:"/informacion/aicm.png"},{id:"aicm-t2",nameKey:"module_name_aicm_t2",fullNameKey:"module_full_aicm_t2",address:"Av. Capit\xe1n Carlos Le\xf3n S/N, Pe\xf1\xf3n de los Ba\xf1os, C.P 15620, Venustiano Carranza, Ciudad de M\xe9xico. (Ambulatorio Puerta 3)*",mapsUrl:"https://maps.google.com/?q=Aeropuerto+Internacional+Ciudad+de+M\xe9xico+Terminal+2",phone:"5548911166",image:"/informacion/aicm.png"},{id:"garibaldi",nameKey:"module_name_garibaldi",fullNameKey:"module_full_garibaldi",address:"Callej\xf3n de Garibaldi No. 11, Col. Centro, C.P. 06000, Cuauht\xe9moc, Ciudad de M\xe9xico",mapsUrl:"https://maps.google.com/?q=Plaza+Garibaldi+Ciudad+de+M\xe9xico",phone:"5548911166",image:"/informacion/garibaldi.png"}]},93196:(e,t,l)=>{l.d(t,{j:()=>h});var a=l(95155),s=l(12115),n=l(15239),i=l(95604),r=l(52923),o=l(19441),c=l(57430),d=l(53704),x=l(58521),u=l(18618),p=l(74635),m=l(51126);function h(e){var t;let{locale:l}=e,n=(0,i.useTranslations)("descubre"),p=(0,i.useLocale)(),{data:h,isLoading:g}=(0,d.Qg)(l),j=(null!=(t=null==h?void 0:h.items)?t:[]).slice(0,12),[b,v]=(0,s.useState)(null),N=p===r.D.defaultLocale?"":"/".concat(p);return g||0!==j.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{"aria-labelledby":"weekly-heading",className:"px-4 lg:px-0",children:[(0,a.jsx)(m.X,{id:"weekly-heading",heading:n("weekly_heading")}),(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:g?Array.from({length:6}).map((e,t)=>(0,a.jsx)(x.bu,{},t)):j.map((e,t)=>(0,a.jsx)(f,{event:e,onClick:()=>(function(e){v(e);let t=e.sectionId||"eventos";window.history.pushState(null,"","".concat(N,"/").concat(t,"/").concat((0,o.Y)(e.title,e.id),"/").concat(e.id)),(0,c.w)(e.title)})(e),hidden:t>=6},e.id))})]}),(0,a.jsx)(u.K,{event:b,open:null!==b,onClose:function(){v(null),window.history.replaceState(null,"",N||"/"),(0,c.L)(n("title"))}})]}):null}function f(e){var t;let{event:l,onClick:s,hidden:i}=e;return(0,a.jsxs)("article",{className:"bg-[#f8f2f2] rounded-[24px] p-3 flex gap-3 items-center cursor-pointer".concat(i?" lg:flex hidden":""),role:"button",onClick:s,tabIndex:0,onKeyDown:e=>"Enter"===e.key&&s(),"aria-label":l.title,children:[(0,a.jsx)("div",{className:"relative size-[86px] rounded-[12px] shrink-0 overflow-hidden bg-surface-card",children:(0,a.jsx)(n.default,{src:l.imageUrl,alt:"",fill:!0,className:"object-cover",sizes:"86px","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("p",{className:"text-[16px] font-semibold text-[#4e3853] leading-tight flex-1",children:l.title}),(0,a.jsx)(p.vK,{className:"size-6 shrink-0 text-[#4e3853] mt-0.5"})]}),l.description&&(0,a.jsx)("p",{className:"text-[12px] text-[#4e3853] leading-tight line-clamp-2",children:l.description}),(0,a.jsx)("p",{className:"text-[12px] font-semibold text-brand-red",children:null!=(t=l.venue)?t:l.address})]})]})}},93729:(e,t,l)=>{l.d(t,{e:()=>u});var a=l(95155),s=l(94992),n=l(13554),i=l(67866),r=l(98050),o=l(65029),c=l(67624),d=l(61556),x=l(95604);function u(e){let{open:t,onClose:l,title:u,children:p}=e,m=(0,x.useTranslations)("event");return(0,a.jsx)(s.D,{open:t,onOpenChange:e=>!e&&l(),children:(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(i.X,{className:"fixed inset-0 z-50 bg-black/30 data-[open]:opacity-100 data-[closed]:opacity-0 transition-opacity duration-300"}),(0,a.jsx)(r.D,{className:"fixed inset-0 z-50 flex items-end lg:justify-end",children:(0,a.jsxs)(o.h,{className:"relative bg-white w-full lg:w-[480px] rounded-t-[32px] lg:rounded-none lg:rounded-l-[32px] max-h-[92dvh] lg:max-h-dvh lg:h-dvh flex flex-col overflow-hidden outline-none data-[open]:translate-y-0 data-[closed]:translate-y-full lg:translate-y-0 lg:data-[open]:translate-x-0 lg:data-[closed]:translate-x-full transition-transform duration-300 shadow-[0_-4px_40px_rgba(0,0,0,0.12)] lg:shadow-[-8px_0_40px_rgba(0,0,0,0.12)]",children:[(0,a.jsxs)("div",{className:"shrink-0 px-6 pt-6 pb-2 flex items-start justify-between gap-4",children:[(0,a.jsx)(c.L,{className:"font-display font-bold text-[32px] lg:text-[36px] text-[#262626] leading-tight",children:u}),(0,a.jsx)(d.H,{className:"shrink-0 size-9 flex items-center justify-center rounded-full bg-[#f1e4e4] text-[#4e3853] hover:bg-[#e8d0d0] transition-colors mt-1","aria-label":m("close"),children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",className:"size-4","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:p})]})})]})})}},95793:(e,t,l)=>{l.d(t,{j:()=>u});var a=l(95155),s=l(95604),n=l(90615),i=l(25327),r=l(57937),o=l(58293),c=l(73945);let d=["eventos","deportes","hospedaje","gastronomia","cultura","experiencias","movilidad","informacion"],x={eventos:"/tab-icons/eventos.png",deportes:"/tab-icons/futbol.png",hospedaje:"/tab-icons/hospedaje.png",gastronomia:"/tab-icons/gastronomia.png",vuelos:"/tab-icons/vuelos.png",cultura:"/tab-icons/cultura.png",experiencias:"/tab-icons/experiencias.png",movilidad:"/tab-icons/movilidad.png",informacion:"/tab-icons/informacion.png"};function u(e){let{activeTab:t,onTabChange:l,mobile:u=!1}=e,p=(0,s.useTranslations)("descubre"),m=d.indexOf(t),h={eventos:p("tab_eventos"),deportes:p("tab_futbol"),hospedaje:p("tab_hospedaje"),gastronomia:p("tab_gastronomia"),vuelos:p("tab_vuelos"),cultura:p("tab_cultura"),experiencias:p("tab_experiencias"),movilidad:p("tab_movilidad"),informacion:p("tab_informacion")},f=u?void 0:"calc((100% - 20px) / ".concat(d.length," * ").concat(m," + (100% - 20px) / ").concat(d.length," / 2 - 32.5px + 10px)"),g=d.map(e=>{let s=e===t,n=u?"text-white":"text-[#1c2521]",i=u?"text-[#4e3853]":"text-[#7b7b80]";return(0,a.jsxs)("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>l(e),className:"relative flex flex-col items-center gap-1 py-2 cursor-pointer ".concat(u?"transition-opacity active:opacity-60":""," ").concat(u?"w-[80px] shrink-0":"flex-1"," ").concat(s?n:i),children:[(0,a.jsx)("img",{src:x[e],alt:"","aria-hidden":"true",className:"size-12 object-contain"}),(0,a.jsx)("span",{className:"leading-normal text-center whitespace-nowrap overflow-hidden ".concat(u?"text-[10px] w-full":"text-[14px]"," ").concat(s?"font-semibold":"font-normal"),children:h[e]}),s&&u&&(0,a.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 h-[3px] w-[65px] bg-white rounded-t-full"})]},e)}),j="linear-gradient(to right,   transparent 0px,   black min(60px, var(--scroll-area-overflow-x-start, 0px)),   black calc(100% - min(60px, var(--scroll-area-overflow-x-end, 60px))),   transparent 100% )";return(0,a.jsxs)("div",{className:"relative pt-2",children:[u?(0,a.jsxs)(n.V,{children:[(0,a.jsx)(i.B,{style:{overflowX:"auto",scrollbarWidth:"none",maskImage:j,WebkitMaskImage:j},children:(0,a.jsx)(r.q,{children:(0,a.jsx)("div",{className:"flex items-start px-[10px]",role:"tablist",children:g})})}),(0,a.jsx)(o.V,{orientation:"horizontal",className:"h-0 opacity-0",keepMounted:!1,children:(0,a.jsx)(c.l,{})})]}):(0,a.jsx)("div",{className:"flex items-start px-[10px]",role:"tablist",children:g}),(0,a.jsx)("div",{className:"h-px ".concat(u?"bg-white/20":"bg-[#e0e0e0]")}),!u&&(0,a.jsx)("div",{className:"absolute bottom-0 h-[3px] w-[65px] bg-[#1c2521] rounded-t-full transition-[left] duration-200",style:{left:f}})]})}},98505:(e,t,l)=>{l.d(t,{g:()=>r});var a=l(95155),s=l(12115);let n=null;function i(e){n===e&&(n=null)}function r(e){let{src:t,className:l}=e,r=(0,s.useRef)(null),[o,c]=(0,s.useState)(16/9),d=(0,s.useCallback)(()=>{let e=r.current;e&&e.videoWidth&&e.videoHeight&&c(e.videoWidth/e.videoHeight)},[]);return((0,s.useEffect)(()=>{let e=r.current;if(!e)return;let t=new IntersectionObserver(t=>{let[l]=t;if(l.isIntersecting)n&&n!==e&&n.pause(),n=e,e.play().catch(()=>{});else e.pause(),i(e)},{threshold:.5});return t.observe(e),()=>{t.disconnect(),e.pause(),i(e)}},[]),t)?(0,a.jsx)("div",{className:null!=l?l:"w-full",children:(0,a.jsx)("div",{className:"relative w-full rounded-[12px] overflow-hidden bg-black",style:{aspectRatio:o},children:(0,a.jsx)("video",{ref:r,src:t,muted:!0,loop:!0,playsInline:!0,controls:!0,onLoadedMetadata:d,className:"absolute inset-0 w-full h-full object-contain"})})}):null}},99293:(e,t,l)=>{l.d(t,{i:()=>j});var a=l(95155),s=l(12115),n=l(95604),i=l(52923),r=l(19441),o=l(57430),c=l(13384),d=l(41726),x=l(18618),u=l(14653);function p(e){if(!e||!e.includes("T"))return"";let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let{hours:l,minutes:a}=(0,u.XC)(t);return"".concat(l%12||12,":").concat(String(a).padStart(2,"0")).concat(l>=12?"pm":"am")}function m(){return(0,a.jsxs)("svg",{width:"11",height:"30",viewBox:"0 0 11 30",fill:"none","aria-hidden":"true",className:"shrink-0",children:[(0,a.jsx)("circle",{cx:"5.5",cy:"5",r:"4",stroke:"#b0a8a8",strokeWidth:"1",fill:"white"}),(0,a.jsx)("line",{x1:"5.5",y1:"9.5",x2:"5.5",y2:"20.5",stroke:"#b0a8a8",strokeWidth:"1"}),(0,a.jsx)("circle",{cx:"5.5",cy:"25",r:"4",stroke:"#b0a8a8",strokeWidth:"1",fill:"white"})]})}function h(e){let{flight:t,locale:l}=e,s=t.metadata,n=(null==s?void 0:s.originCity)||t.title,i=(null==s?void 0:s.originCode)||"",r=(null==s?void 0:s.destinationCity)||"",o=(null==s?void 0:s.destinationCode)||"",c=(null==s?void 0:s.departureAirport)||t.venue||"",d=(null==s?void 0:s.arrivalAirport)||t.address||"",x=p(t.dateStart),u=t.dateEnd?p(t.dateEnd):"",h=function(e,t){if(!e)return"";let l=new Date(e.includes("T")?e:"".concat(e,"T00:00:00Z"));if(Number.isNaN(l.getTime()))return"";let a=new Intl.DateTimeFormat("es"===t?"es-MX":"en-US",{weekday:"long",day:"numeric",month:"long",year:"numeric",timeZone:"America/Mexico_City"}).format(l);return a.charAt(0).toUpperCase()+a.slice(1)}(t.dateStart,l);return(0,a.jsxs)("div",{className:"bg-[#f8f2f2] rounded-[24px] p-[16px] flex flex-col gap-[12px] overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-[12px] items-start",children:[(0,a.jsx)("p",{className:"flex-1 min-w-0 font-display font-bold text-[28px] leading-[18px] text-[#262626]",children:n}),(0,a.jsx)("span",{className:"shrink-0 size-[24px] flex items-center justify-center text-[#262626]","aria-hidden":"true",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"
1currentColor",className:"size-4",children:(0,a.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})})}),(0,a.jsx)("p",{className:"flex-1 min-w-0 font-display font-bold text-[28px] leading-[18px] text-[#262626]",children:r})]}),(0,a.jsxs)("div",{className:"flex gap-[12px] items-start mt-[4px]",children:[(0,a.jsx)("p",{className:"flex-1 min-w-0 text-[16px] leading-[16px] text-[#7b7b80]",children:i}),(0,a.jsx)("div",{className:"size-[24px] shrink-0 opacity-0","aria-hidden":"true"}),(0,a.jsx)("p",{className:"flex-1 min-w-0 text-[16px] leading-[16px] text-[#7b7b80]",children:o})]})]}),h&&(0,a.jsx)("p",{className:"text-[#ab89f3] text-[12px] font-semibold leading-normal",children:h}),(0,a.jsx)("div",{className:"h-px bg-[#ddd5d5]"}),(x||u)&&(0,a.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,a.jsx)(m,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-[4px] flex-1 min-w-0",children:[x&&c&&(0,a.jsxs)("div",{className:"flex gap-[4px] text-[10px] text-[#7b7b80]",children:[(0,a.jsx)("span",{className:"w-[48px] shrink-0",children:x}),(0,a.jsx)("span",{className:"truncate",children:c})]}),u&&d&&(0,a.jsxs)("div",{className:"flex gap-[4px] text-[10px] text-[#7b7b80]",children:[(0,a.jsx)("span",{className:"w-[48px] shrink-0",children:u}),(0,a.jsx)("span",{className:"truncate",children:d})]})]})]})]})}let f="vuelos";function g(e){let{active:t,onChange:l}=e,s=(0,n.useTranslations)("descubre"),i=[{id:"all",label:s("vuelos_filter_all")},{id:"aifa",label:s("vuelos_filter_aifa")},{id:"aicm",label:s("vuelos_filter_aicm")}];return(0,a.jsx)("div",{className:"bg-[#f8f2f2] flex gap-[12px] items-center p-[4px] rounded-[999px]",children:i.map(e=>{let{id:s,label:n}=e;return(0,a.jsx)("button",{type:"button",onClick:()=>l(s),className:["flex-1 flex items-center justify-center p-[10px] rounded-[999px] text-[12px] font-semibold text-[#1c2521] transition-colors whitespace-nowrap",t===s?"bg-white shadow-sm":""].join(" "),children:n},s)})})}function j(e){var t;let{locale:l}=e,u=(0,n.useTranslations)("descubre"),p=(0,n.useTranslations)("search"),m=(0,n.useLocale)(),j=m===i.D.defaultLocale?"":"/".concat(m),b="".concat(j,"/vuelos"),[v,N]=(0,s.useState)("all"),[y,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)(null);function _(e){N(e);let t="all"!==e?"".concat(b,"?airport=").concat(e):b;window.history.replaceState(null,"",t)}(0,s.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("airport");("aifa"===e||"aicm"===e)&&N(e)},[]);let{data:S,isLoading:z}=(0,c.LJ)(f,m),L=null!=(t=null==S?void 0:S.items)?t:[],M=(0,s.useMemo)(()=>L.filter(e=>(function(e,t){if("all"===t)return!0;let l=e.metadata,a=((null==l?void 0:l.originCode)||"").toUpperCase(),s=((null==l?void 0:l.departureAirport)||e.venue||"").toLowerCase();return"aifa"===t?"NLU"===a||s.includes("aifa")||s.includes("felipe"):"MEX"===a||s.includes("aicm")||s.includes("benito")})(e,v)),[L,v]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden flex flex-col gap-4 pt-4",children:[(0,a.jsx)("div",{className:"px-4",children:(0,a.jsxs)("button",{type:"button",onClick:()=>w(!0),"aria-label":u("search_flights"),className:"w-full bg-[#f8f2f2] rounded-[999px] h-[52px] flex items-center gap-2 px-3 cursor-pointer hover:bg-[#f0e8e8] transition-colors",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"size-6 text-[#ab89f3] shrink-0","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}),(0,a.jsx)("span",{className:"text-[#9a8f8f] text-[18px] font-semibold",children:u("search_flights")})]})}),(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)(g,{active:v,onChange:_})}),(0,a.jsx)("div",{className:"px-4 flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:u("vuelos_heading")})}),(0,a.jsxs)("div",{className:"px-4 flex flex-col gap-3 pb-6",children:[z&&(0,a.jsx)("div",{className:"py-16 flex justify-center",children:(0,a.jsx)("div",{className:"size-8 border-2 border-[#f8f2f2] border-t-[#ab89f3] rounded-full animate-spin"})}),!z&&0===M.length&&(0,a.jsxs)("div",{className:"py-16 flex flex-col items-center gap-2 text-center",children:[(0,a.jsx)("span",{className:"text-[40px]","aria-hidden":"true",children:"✈️"}),(0,a.jsx)("p",{className:"text-[16px] text-[#7d7d7d]",children:u("coming_soon")})]}),M.map(e=>(0,a.jsx)(h,{flight:e,locale:l},e.id))]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col gap-6",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(g,{active:v,onCh
1ange:_})}),(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsx)("h2",{className:"font-display font-bold text-[24px] text-[#262626] leading-tight",children:u("vuelos_heading")})}),z?(0,a.jsx)("div",{className:"py-20 flex justify-center",children:(0,a.jsx)("div",{className:"size-10 border-2 border-[#f8f2f2] border-t-[#ab89f3] rounded-full animate-spin"})}):0===M.length?(0,a.jsxs)("div",{className:"py-20 flex flex-col items-center gap-3 text-center",children:[(0,a.jsx)("span",{className:"text-[48px]","aria-hidden":"true",children:"✈️"}),(0,a.jsx)("p",{className:"text-[18px] text-[#7d7d7d]",children:u("coming_soon")})]}):(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:M.map(e=>(0,a.jsx)(h,{flight:e,locale:l},e.id))})]}),(0,a.jsx)(d.q,{sectionId:f,open:y,onClose:()=>w(!1),placeholder:u("search_flights"),onSelect:e=>{k(e),window.history.pushState(null,"","".concat(b,"/").concat((0,r.Y)(e.title,e.id),"/").concat(e.id)),(0,o.w)(e.title)},nearbyLabel:p("suggested_vuelos"),zoneCountLabel:e=>p("zone_count_vuelos",{count:e})}),(0,a.jsx)(x.K,{event:C,open:null!==C,onClose:function(){k(null),window.history.replaceState(null,"",b),(0,o.w)(u("tab_vuelos"))}})]})}}}]);

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.