1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8225],{82714:function(e,t,l){Promise.resolve().then(l.bind(l,99886))},62155:function(e,t,l){"use strict";async function a(e,t,l){let a={next:{revalidate:60},...l,headers:{...l.headers,"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(null===t?"":t),"Cache-Control":"no-store"}};return await fetch(e,a)}l.d(t,{Z:function(){return a}})},99886:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return j}});var a=l(57437),s=l(2265),r=l(49079);let n=e=>{let{mobileReverse:t,children:l,classname:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"pt-20 pb-20 px-4 bg-black ".concat(r.env.NEXT_PUBLIC_ENABLE_RESERVED_PARKING?"":"hidden"),children:(0,a.jsx)("div",{className:"max-w-container mx-auto flex ".concat(t?"flex-col-reverse":"flex-col"," lg:flex-row lg:justify-between gap-12 lg:gap-0 ").concat(s),children:l})})})};var c=l(8612),i=l(44801),o=l(72941);l(79004);var d=l(93342);l(51585);var x=l(66871),u=l(9472),h=l(99837),m=l(62155),f=l(82849),p=l(95261);l(84555),l(34057);var g=l(22150),v=l(11680);function j(){var e;let{parkingData:t,cityCoreId:l,faqs:r}=(0,h.i)(),{cityCoreSelected:j,setCityCoreSelected:w}=(0,f.Z)(),[b,N]=(0,s.useState)(null),[y,k]=(0,s.useState)(!1),[C,P]=(0,s.useState)(!1),{profile:D}=(0,g.Z)(),[E,_]=(0,s.useState)([]);(0,s.useEffect)(()=>{console.log("User profile:",D)},[D]);let S=Array.isArray(E)?E.map(e=>({title:(null==e?void 0:e.title)||"",desc:(null==e?void 0:e.description)||"",img:(null==e?void 0:e.image)||"",subContent:!1})):[];return(0,s.useEffect)(()=>{(async()=>{var e,t,a,s;let r=["".concat("https://spectrum.apps.api.tww.gt/api","/city-core/detail")].map(e=>(0,m.Z)(e,null,{method:"POST",body:JSON.stringify({content:{platform:1,city_core_id:l},info:{}})})),n=await Promise.all(r),c=await Promise.all(n.map(e=>e.json()));w(null===(e=c[0])||void 0===e?void 0:e.content.city_cores),N(null===(t=c[0])||void 0===t?void 0:t.content.city_cores),_((null===(s=c[0])||void 0===s?void 0:null===(a=s.content.city_cores)||void 0===a?void 0:a.assistance)||[])})()},[]),(0,s.useEffect)(()=>{(async()=>{try{var e,t;let l=await fetch("/api/token/"),{accessToken:a}=await l.json();if(!a)return;let s=await (0,m.Z)("".concat("https://spectrum.apps.api.tww.gt/api","/user/reservations/amenities"),a,{method:"POST",body:JSON.stringify({content:{platform:1},info:{}})}),r=await s.json(),n=(null==r?void 0:null===(t=r.content)||void 0===t?void 0:null===(e=t.reservations)||void 0===e?void 0:e.parkings)||[],c=new Date;c.setHours(0,0,0,0);let i=n.filter(e=>new Date(e.reservation_start_datetime)>=c);k(i.length>0)}catch(e){console.error("Error checking active reservations:",e)}})()},[]),(0,s.useEffect)(()=>{P(!0)},[]),null!=D||encodeURIComponent("/publico/parking"),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.InnerHeader,{urlImage:null==t?void 0:t.HeroImg,titleBanner:null==t?void 0:t.Hero}),(0,a.jsx)(c.u,{children:(0,a.jsxs)("div",{className:"max-w-container mx-auto flex flex-col gap-10 lg:gap-20",children:[(0,a.jsxs)("div",{className:"w-full lg:max-w-768",children:[(0,a.jsx)("p",{className:"text-b1 ".concat("font-medium"),children:"Parking"}),(0,a.jsx)("h2",{className:"text-h2Mobile lg:text-h2 ".concat("uppercase"),children:null==t?void 0:t.tarifas1}),(0,a.jsx)("p",{className:"text-b1 text-neutral-300 pt-4",children:null==t?void 0:t.tarifas2})]}),(0,a.jsx)("div",{className:"w-full grid grid-cols-12 gap-x-8 gap-y-6 lg:gap-y-9",children:C&&b?b.tariff.map((e,t)=>(0,a.jsxs)("div",{className:"col-span-12 lg:col-span-3 flex flex-1 flex-col gap-4",children:[(0,a.jsx)("div",{className:"block relative",children:(0,a.jsx)("img",{src:e.logo,alt:e.title,className:"max-h-[40px] object-cover"})}),(0,a.jsx)("h5",{className:"text-h5Mobile lg:text-h5 ".concat("uppercase"),children:e.title}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.tariff},className:"rich-content"})]},t)):(0,a.jsx)("div",{className:"col-span-12 h-[250px]",children:(0,a.jsx)(p.Z,{})})})]})}),C&&t.hasBookingParking&&(0,a.jsxs)(n,{children:[(0,a.jsx)("div",{className:"w-full lg:max-w-500 lg:mt-18 ",children:(0,a.jsx)("img",{className:"shadow-lg",src:"/images/parking/Banner-reserved.jpg",alt:null==t?void 0:t.reservaDeParqueo1})}),(0,a.jsx)("div",{className:"w-full lg:max-w-615",children:(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-0 lg:gap-y-8 lg:flex-wrap lg:justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("img",{className:"w-full max-w-[380px] h-auto object-cover self-center",src:null==t?void 0:t.reservaDeParqueo1,alt:"Parqueo"}),(0,a.jsxs)("p",{className:"text-b1 text-white",children:[null==t?void 0:t.reservaDeParqueo2," ",(0,a.jsx)("hr",{className:"border-t-2 border-black"}),"Puedes utilizar Reserved Parking en espacios exclusivos de S\xf3tano 1 y Nivel 4."]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"relative pl-16",children:[(0,a.jsx)("div",{className:"!absolute left-1 top-0 w-11 h-11 aspect-square ".concat("bg-tertiary text-white"," rounded-full flex items-center justify-center"),children:(0,a.jsx)("img",{src:"/images/parking/iconos-02.png",alt:"Calendar icon",className:"w-full h-full"})}),(0,a.jsxs)("h6",{className:"text-h6Mobile lg:text-h6 text-white mb-2 ".concat("uppercase"),children:[null==t?void 0:t.reservaDeParqueoSub1title,(0,a.jsx)("img",{src:"/images/parking/Logo-spectrumID-1.png",alt:"Spectrum ID",className:"inline-block ml-2 mb-2"})]}),(0,a.jsx)("p",{className:"text-b0 text-white",children:null==t?void 0:t.reservaDeParqueoSub1desc})]}),(0,a.jsx)("hr",{className:"border-t-2 border-gray-500"}),(0,a.jsxs)("div",{className:"relative pl-16",children:[(0,a.jsx)("div",{className:"!absolute left-1 top-0 w-11 h-11 aspect-square ".concat("bg-tertiary text-white"," rounded-full flex items-center justify-center"),children:(0,a.jsx)("img",{src:"/images/parking/Layer_1.png",alt:"Calendar icon",className:"w-full h-full"})}),(0,a.jsx)("h6",{className:"text-h6Mobile lg:text-h6 text-white mb-2 ".concat("uppercase"),children:null==t?void 0:t.reservaDeParqueoSub2title}),(0,a.jsx)("p",{className:"text-b0 text-white",children:null==t?void 0:t.reservaDeParqueoSub2desc})]}),(0,a.jsx)("hr",{className:"border-t-2 border-gray-500"}),(0,a.jsxs)("div",{className:"relative pl-16",children:[(0,a.jsx)("div",{className:"!absolute left-1 top-0 w-11 h-11 aspect-square ".concat("bg-tertiary text-white"," rounded-full flex items-center justify-center"),children:(0,a.jsx)("img",{src:"/images/parking/frame.png",alt:"Calendar icon",className:"w-full h-full"})}),(0,a.jsx)("h6",{className:"text-h6Mobile lg:text-h6 text-white mb-2 ".concat("uppercase"),children:null==t?void 0:t.reservaDeParqueoSub3title}),(0,a.jsx)("p",{className:"text-b0 text-white",children:null==t?void 0:t.reservaDeParqueoSub3desc})]})]})]}),(0,a.jsxs)("div",{className:"w-full flex flex-col lg:flex-row gap-6 pt-8",children:[(0,a.jsx)(v.h,{link:"/reservedparking",target:"_self",text:"Reservar Parqueo",inverted:!1,hasIcon:!1,nameIcon:"icon-arrow-right",positionIcon:"right",className:"rounded-full font-medium w-full !text-center",tipo:"button"}),C&&y&&(0,a.jsx)(v.h,{link:"/perfil/mis-reservas",tipo:"linktwo",target:"_self",text:"Activar Reserva",inverted:!0,hasIcon:!1,nameIcon:"",positionIcon:"right",className:"rounded-full font-medium w-full !text-center"})]})]})})]}),C&&t.hasFindMyCar&&(0,a.jsx)(c.u,{children:(0,a.jsx)("div",{className:"max-w-container mx-auto flex flex-col gap-10 lg:gap-20",children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center w-full lg:max-w-768 mx-auto gap-4",children:[(0,a.jsx)("p",{className:"text-b1 text-center ".concat("font-medium"),children:"Find my car"}),(0,a.jsx)("h2",{className:"text-h2Mobile lg:text-h2 text-center ".concat("uppercase"),children:null==t?void 0:t.encuentraMiCarro1}),(0,a.jsx)("p",{className:"text-b1 text-neutral-300 pt-4 text-center",children:null==t?void 0:t.encuentraMiCarro2})]})})}),C&&t.hasAddMyCar&&(0,a.jsx)(i.G,{children:(0,a.jsxs)("div",{className:"max-w-container mx-auto flex flex-col lg:flex-row lg:justify-between gap-8 lg:gap-0",children:[(0,a.jsx)("h2",{className:"text-h3Mobile lg:text-h3 w-full lg:max-w-500 ".concat("uppercase"),children:null==t?void 0:t.agregarVehiculos1}),(0,a.jsxs)("div",{className:"flex flex-col gap-8 w-full lg:max-w-615",children:[(0,a.jsx)("p",{className:"text-neutral-300 text-b1",children:null==t?void 0:t.agregarVehiculos2}),(0,a.jsx)(d.CtaBaseComp,{link:"/perfil/mis-vehiculos",text:"Agregar veh\xedculo"})]})]})}),t.hasAssistance&&(0,a.jsx)(c.u,{children:(0,a.jsx)(x.AssistanceComponent,{items:S,contactButtons:!0})}),!!(null==r?void 0:null===(e=r.parking)||void 0===e?void 0:e.length)&&(0,a.jsx)(i.G,{children:(0,a.jsxs)("div",{className:"max-w-container mx-auto flex flex-col gap-10 lg:gap-20",children:[(0,a.jsx)("div",{className:"flex flex-col items-center justify-center w-full lg:max-w-768 mx-auto gap-4",children:(0,a.jsx)("h2",{className:"text-h2Mobile lg:text-h2 text-center",children:(0,a.jsx)("span",{className:"font-secondFont text-h3BrandMobile lg:text-h3Brand",children:"Preguntas frecuentes"})})}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center w-full lg:max-w-768 mx-auto gap-4",children:(0,a.jsx)(u.j,{faqs:r.parking})})]})})]})}},9472:function(e,t,l){"use strict";l.d(t,{j:function(){return o}});var a=l(57437),s=l(88095),r=l(38721);l(2265);let n=()=>(0,a.jsx)("svg",{className:"rotate-90 text-tertiary",width:"20",height:"2",viewBox:"0 0 20 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M19.3346 0.6667V1.3333C19.3346 1.7015 19.0362 2 18.668 2H1.33464C0.966449 2 0.667969 1.7015 0.667969 1.3333V0.6667C0.667969 0.2985 0.966449 0 1.33464 0H18.668C19.0362 0 19.3346 0.2985 19.3346 0.6667Z",className:"fill-current"})}),c=()=>(0,a.jsx)("svg",{className:"text-tertiary",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,a.jsx)("path",{d:"M19.3346 9.66801V10.3346C19.3346 10.7028 19.0362 11.0013 18.668 11.0013H11.0013V18.668C11.0013 19.0361 10.7028 19.3346 10.3346 19.3346H9.668C9.2998 19.3346 9.0013 19.0361 9.0013 18.668V11.0013H1.33464C0.966449 11.0013 0.667969 10.7028 0.667969 10.3346V9.66801C0.667969 9.29981 0.966449 9.00131 1.33464 9.00131H9.0013V1.33463C9.0013 0.966439 9.2998 0.667969 9.668 0.667969H10.3346C10.7028 0.667969 11.0013 0.966439 11.0013 1.33463V9.00131H18.668C19.0362 9.00131 19.3346 9.29981 19.3346 9.66801Z",className:"fill-current"})}),i=e=>e?e.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>e.startsWith("http")?(0,a.jsx)("a",{href:e,className:"underline break-all hover:opacity-70",children:e},t):e):e,o=e=>{let{faqs:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.d,{variant:"splitted",itemClasses:{base:"py-0 w-full !shadow-none !rounded-none border border-neutral-200 bg-white",title:"font-medium text-b1",trigger:"px-2 py-2 data-[hover=true]:bg-white !rou
1nded-none min-h-14 flex items-center shadow-none",indicator:"text-medium",content:"text-b1 px-2 text-neutral-300"},className:"gap-4",children:t&&t.map((e,t)=>(0,a.jsx)(r.G,{"aria-label":e.question,title:e.question,indicator:e=>{let{isOpen:t}=e;return t?(0,a.jsx)(n,{}):(0,a.jsx)(c,{})},children:i(e.answer)},t))})})}},95261:function(e,t,l){"use strict";var a=l(57437),s=l(12315);t.Z=()=>(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,a.jsx)(s.c,{color:"default",labelColor:"foreground"})})},44801:function(e,t,l){"use strict";l.d(t,{G:function(){return s}});var a=l(57437);let s=e=>{let{children:t,classname:l=null}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{className:"bg-neutral-100 pt-20 pb-20 px-4 ".concat(l),children:t})})}},8612:function(e,t,l){"use strict";l.d(t,{u:function(){return s}});var a=l(57437);let s=e=>{let{className:t="",children:l}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{className:"pt-20 pb-20 px-4 ".concat(t),children:l})})}},11680:function(e,t,l){"use strict";l.d(t,{h:function(){return n}});var a=l(57437),s=l(8792),r=l(47907);let n=e=>{let{tipo:t,className:l="",link:n="",target:c="_self",text:i,hasIcon:o=!1,nameIcon:d="",onClick:x,disabled:u=!1,shape:h="none",reverted:m=!1,iconPosition:f="left"}=e,p=(0,r.useRouter)(),g=t||(n?"link":"button"),v={round:"rounded-full",full:"rounded-full",none:""},j="flex items-center justify-center text-center text-b2 border border-[#EF562D] transition-colors duration-300 ".concat(v[h]),w="flex items-center justify-center text-center text-b1 border border-[#EF562D] bg-transparent text-pneutral-parking ".concat(v[h]),b="flex items-center justify-center text-center text-b2 border border-[#EF562D] bg-white text-[#EF562D] ".concat(v[h]),N=u?"opacity-50 cursor-not-allowed":"",y="py-2 px-6";o&&(y=i?"w-full h-[48px] px-4":"h-12 w-12");let k=(0,a.jsxs)(a.Fragment,{children:[o&&"left"===f&&(0,a.jsx)("span",{className:"".concat(d," ").concat(i?"mr-2":"")}),i,o&&"right"===f&&(0,a.jsx)("span",{className:"".concat(d," ").concat(i?"ml-4":"")})]});return(0,a.jsx)("div",{className:"z-10 w-full md:w-auto",children:"link"===g?(0,a.jsx)(s.default,{href:n,target:c,passHref:!0,children:(0,a.jsx)("div",{className:"".concat(w," ").concat(u?"cursor-not-allowed":"hover:text-black"," ").concat(N," ").concat(y," ").concat(l," !border-none"),onClick:u?void 0:x,children:k})}):"linktwo"===g?(0,a.jsx)(s.default,{href:n,target:c,passHref:!0,children:(0,a.jsx)("div",{className:"".concat(b," ").concat(u?"cursor-not-allowed":"hover:bg-[#EF562D] hover:text-white"," ").concat(N," ").concat(y," ").concat(l),onClick:u?void 0:x,children:k})}):(0,a.jsx)("button",{onClick:e=>{!u&&(x&&x(),n&&p.push(n))},type:"button",className:"".concat(j," ").concat(m?"bg-white text-[#EF562D]":"bg-[#EF562D] text-white"," ").concat(u?"cursor-not-allowed":m?"hover:bg-[#EF562D] hover:text-white":"hover:bg-white hover:text-[#EF562D]"," ").concat(N," ").concat(y," ").concat(l),disabled:u,children:k})})}},22150:function(e,t,l){"use strict";var a=l(22020),s=l(65249);let r=(0,a.Ue)((0,s.tJ)(e=>({profile:null,setProfile:t=>e({profile:t})}),{name:"userProfileStore"}));t.Z=r}},function(e){e.O(0,[9951,9558,2227,9527,8030,8792,8381,2300,4555,2838,2730,9837,169,2971,8069,1744],function(){return e(e.s=82714)}),_N_E=e.O()}]);
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.