PageSourceSearch

https://kimal.cl/_next/static/chunks/9282.783cdf1e5cbd893e.js

js kimal.cl collected 2026-10-09 03:46:26 UTC 61,404 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9282],{9282:(e,t,a)=>{a.r(t),a.d(t,{ZakWidget:()=>_});var i,r,l=a(5155),o=a(5239),n=a(2115),s=a(2025),c=a(6497),d=a(1719),u=a(80),m=a(2821);let p=["Lu","Ma","Mi","Ju","Vi","Sa","Do"],b=e=>{let{calendarCollapsed:t,onToggleCollapsed:a,onPrevMonth:i,onNextMonth:r,showMonthArrows:o=!0,showEditButton:u=!1,formatLongDate:b,dateRange:h,nightsCount:x,monthDirection:f,calendarMonths:g,onSelectDate:v,today:y,withinRange:w,isSameDay:k}=e,[j,N]=(0,n.useState)(null);return(0,l.jsxs)("div",{className:(0,m.A)("relative isolate w-full rounded-2xl border border-white/12 bg-black/30 transition-all duration-300",t?"p-3":"p-4"),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[10px] uppercase tracking-[0.32em] text-white/45",children:"Calendario"}),(0,l.jsxs)("p",{className:"text-[13px] text-white/75",children:[b(h.start)," → ",h.end?b(h.end):"Selecciona salida",(0,l.jsxs)("span",{className:"ml-2 text-white/50",children:["(",x," noche",x>1?"s":"",")"]})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[u&&(0,l.jsxs)("button",{type:"button",onClick:a,className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/15 bg-white/8 text-white/70 transition hover:border-white/30 hover:bg-white/15 cursor-pointer",children:[(0,l.jsx)("span",{className:"sr-only",children:"Editar"}),(0,l.jsx)(d.j2g,{className:"h-4 w-4"})]}),o&&(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:i,className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/15 bg-white/5 text-xs text-white/70 transition hover:border-white/30 hover:bg-white/12 cursor-pointer",children:"◀"}),(0,l.jsx)("button",{type:"button",onClick:r,className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/15 bg-white/5 text-xs text-white/70 transition hover:border-white/30 hover:bg-white/12 cursor-pointer",children:"▶"})]})]})]}),(0,l.jsx)(c.N,{initial:!1,children:!t&&(0,l.jsx)(s.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.28,ease:"easeInOut"},className:"mt-4 overflow-hidden",children:(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-1",children:(0,l.jsx)(c.N,{mode:"wait",initial:!1,children:g.map(e=>(0,l.jsxs)(s.P.div,{initial:{opacity:0,x:1===f?36:-36},animate:{opacity:1,x:0},exit:{opacity:0,x:1===f?-36:36},transition:{duration:.24,ease:"easeOut"},className:"space-y-2",children:[(0,l.jsx)("p",{className:"text-sm font-semibold text-white/80 capitalize",children:e.label}),(0,l.jsx)("div",{className:"grid grid-cols-7 text-center text-[10px] uppercase tracking-[0.2em] text-white/40",children:p.map(t=>(0,l.jsx)("span",{children:t},"".concat(e.id,"-").concat(t)))}),(0,l.jsx)("div",{className:"grid grid-cols-7 place-items-center gap-y-1 gap-x-0 px-0",children:e.days.map(t=>{let{date:a,inMonth:i,disabled:r}=t,o=k(a,h.start),n=!!h.end&&k(a,h.end),c=w(a,h.start,h.end),d=k(a,y),u=o||n,p=r?void 0:{scale:.92},b=a.toISOString(),x=!r&&j===b;return(0,l.jsxs)(s.P.button,{type:"button",animate:x?{scale:1.04,y:-1}:{scale:1,y:0},whileTap:p,transition:{duration:.16,ease:"easeOut"},disabled:r,onClick:()=>{r||v(a)},onMouseEnter:()=>{r||N(b)},onMouseLeave:()=>{N(e=>e===b?null:e)},onFocus:()=>{r||N(b)},onBlur:()=>{N(e=>e===b?null:e)},className:(0,m.A)("group relative flex aspect-square w-full max-w-[40px] items-center justify-center overflow-visible rounded-full border border-transparent text-[13px] outline-none transition",r&&"cursor-not-allowed text-white/20",!r&&"cursor-pointer",!i&&"text-white/30","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#f3b97a]/60"),children:[!r&&(0,l.jsx)(s.P.span,{className:"pointer-events-none absolute inset-0 rounded-full",style:{boxShadow:"0 18px 36px -20px rgba(243,185,122,0.45)",backgroundColor:"transparent",zIndex:-2},initial:!1,animate:x?{opacity:1,scale:1.08}:{opacity:0,scale:.96},transition:{duration:.16,ease:"easeOut"}}),(0,l.jsx)(s.P.span,{className:"pointer-events-none absolute inset-0 rounded-full",style:{border:"1.5px solid ".concat(u?"rgba(243,185,122,0.9)":"rgba(243,185,122,0.38)"),boxShadow:u?"0 18px 44px -30px rgba(243,185,122,0.7)":"0 12px 30px -28px rgba(243,185,122,0.35)",backgroundColor:"transparent",zIndex:-1},initial:!1,animate:c?{scale:1.12,opacity:1}:{scale:.7,opacity:0}
1,transition:{duration:.18,ease:"easeOut"}}),d&&(0,l.jsx)(s.P.span,{className:"absolute -top-1 right-1 h-2 w-2 rounded-full border border-[#f3b97a]",initial:!1}),(0,l.jsx)(s.P.span,{initial:!1,animate:{color:x?c?"#FFFFFF":"rgba(255,255,255,0.88)":c?"#FFFFFF":i?"rgba(255,255,255,0.68)":"rgba(255,255,255,0.24)",scale:x?1.12:1},transition:{duration:.12,ease:"easeOut"},className:"relative z-10 font-medium",children:a.getDate()})]},"".concat(e.id,"-").concat(a.toISOString()))})})]},e.id))})})},"calendar-grid")})]})};var h=a(6894);let x=null!=(r=null==(i=a(5704).env.NEXT_PUBLIC_ZAK_API_BASE)?void 0:i.trim())?r:"",f=e=>((e,t)=>{if(!e)return t;let a=e.endsWith("/")?e.slice(0,-1):e,i=t.startsWith("/")?t:"/".concat(t);return"".concat(a).concat(i)})((e=>{if(!e)return!1;try{let{hostname:t}=new URL(e);return"localhost"===t||"127.0.0.1"===t}catch(e){return!1}})(x)?x:(e=>"kimal.cl"===e||"www.kimal.cl"===e)(window.location.hostname.toLowerCase())?"":"https://kimal.cl",e),g=async(e,t)=>{var a;if((null!=(a=e.headers.get("content-type"))?a:"").toLowerCase().includes("application/json")){let t=await e.json().catch(()=>null);if("string"==typeof(null==t?void 0:t.error)&&t.error.trim().length>0)return t.error;if("string"==typeof(null==t?void 0:t.message)&&t.message.trim().length>0)return t.message;if("string"==typeof(null==t?void 0:t.details)&&t.details.trim().length>0)return t.details}let i=await e.text().catch(()=>"");return i.trim().length>0?i.trim():t},v=[{slug:"hotel-kimal-matrimonial",group:"Hotel Kimal",title:"Hotel Kimal \xb7 Matrimonial",subtitle:"18 m\xb2 \xb7 minibar y escritorio.",description:"Cama matrimonial, minibar y escritorio para una estad\xeda confortable.",image:"/Matrimonial_Kimal.jpg",directPrice:158e3,otaPrice:179e3,defaultGuests:2,perks:["Minibar","Escritorio"],matchers:["hotel kimal matrimonial","matrimonial kimal","matk"]},{slug:"hotel-kimal-twin",group:"Hotel Kimal",title:"Hotel Kimal \xb7 Twin",subtitle:"18 m\xb2 \xb7 frigobar y escritorio.",description:"Dos camas individuales con frigobar y escritorio.",image:"/Kimal_Twin.jpg",directPrice:158e3,otaPrice:179e3,defaultGuests:2,perks:["Frigobar","Escritorio"],matchers:["hotel kimal twin","twin kimal","twnk"]},{slug:"hotel-kimal-triple",group:"Hotel Kimal",title:"Hotel Kimal \xb7 Triple",subtitle:"27 m\xb2 \xb7 minibar y escritorio.",description:"Una cama queen y una individual con minibar y escritorio.",image:"/KIMAL TPLE.JPG",directPrice:214e3,otaPrice:239e3,defaultGuests:3,perks:["Minibar","Escritorio"],matchers:["hotel kimal triple","triple kimal","trik"]},{slug:"hotel-kimal-familiar",group:"Hotel Kimal",title:"Hotel Kimal \xb7 Familiar",subtitle:"28 m\xb2 \xb7 minibar, escritorio y terraza.",description:"Terraza privada, minibar y escritorio para compartir en familia.",image:"/Kimal_Familiar.jpg",directPrice:228e3,otaPrice:255e3,defaultGuests:4,perks:["Minibar","Escritorio","Terraza"],matchers:["hotel kimal familiar","familiar kimal","famk"]},{slug:"poblado-matrimonial",group:"Poblado Kimal",title:"Poblado Kimal \xb7 Matrimonial",subtitle:"22 m\xb2 \xb7 frigobar y terraza.",description:"Cama matrimonial, frigobar y terraza privada en el oasis.",image:"/PobladoRoomInterior.jpg",directPrice:148e3,otaPrice:169e3,defaultGuests:2,perks:["Frigobar","Terraza"],matchers:["poblado matrimonial","matrimonial poblado","matp"]},{slug:"poblado-twin",group:"Poblado Kimal",title:"Poblado Kimal \xb7 Twin",subtitle:"22 m\xb2 \xb7 frigobar y terraza.",description:"Dos camas individuales, frigobar y terraza privada.",image:"/Poblado_Twin.jpg",directPrice:148e3,otaPrice:169e3,defaultGuests:2,perks:["Frigobar","Terraza"],matchers:["poblado twin","twin poblado","twnp"]},{slug:"poblado-superior",group:"Poblado Kimal",title:"Poblado Kimal \xb7 Superior",subtitle:"28 m\xb2 \xb7 minibar, jacuzzi (costo adicional) y terraza.",description:"Jacuzzi con costo adicional, minibar y terraza para una pausa de relax.",image:"/Poblado_Superior.jpg",directPrice:198e3,otaPrice:222e3,defaultGuests:3,perks:["Minibar","Jacuzzi","Terraza"],matchers:["poblado superior","superior poblado","supp"]}],y={en:{"hotel-kimal-matrimonial":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Double",subt
1itle:"18 m\xb2 \xb7 minibar and desk.",description:"Double bed, minibar and desk for a comfortable stay.",perks:["Minibar","Desk"]},"hotel-kimal-twin":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Twin",subtitle:"18 m\xb2 \xb7 mini-fridge and desk.",description:"Two single beds with mini-fridge and desk.",perks:["Mini-fridge","Desk"]},"hotel-kimal-triple":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Triple",subtitle:"27 m\xb2 \xb7 minibar and desk.",description:"One queen bed and one single bed with minibar and desk.",perks:["Minibar","Desk"]},"hotel-kimal-familiar":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Family",subtitle:"28 m\xb2 \xb7 minibar, desk and terrace.",description:"Private terrace, minibar and desk for family stays.",perks:["Minibar","Desk","Terrace"]},"poblado-matrimonial":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Double",subtitle:"22 m\xb2 \xb7 mini-fridge and terrace.",description:"Double bed, mini-fridge and private terrace in the oasis.",perks:["Mini-fridge","Terrace"]},"poblado-twin":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Twin",subtitle:"22 m\xb2 \xb7 mini-fridge and terrace.",description:"Two single beds, mini-fridge and private terrace.",perks:["Mini-fridge","Terrace"]},"poblado-superior":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Superior",subtitle:"28 m\xb2 \xb7 minibar, jacuzzi (extra cost) and terrace.",description:"Jacuzzi with extra cost, minibar and terrace for relaxing moments.",perks:["Minibar","Jacuzzi","Terrace"]}},pt:{"hotel-kimal-matrimonial":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Casal",subtitle:"18 m\xb2 \xb7 minibar e escrivaninha.",description:"Cama de casal, minibar e escrivaninha para uma estadia confort\xe1vel.",perks:["Minibar","Escrivaninha"]},"hotel-kimal-twin":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Twin",subtitle:"18 m\xb2 \xb7 frigobar e escrivaninha.",description:"Duas camas de solteiro com frigobar e escrivaninha.",perks:["Frigobar","Escrivaninha"]},"hotel-kimal-triple":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Triplo",subtitle:"27 m\xb2 \xb7 minibar e escrivaninha.",description:"Uma cama queen e uma de solteiro com minibar e escrivaninha.",perks:["Minibar","Escrivaninha"]},"hotel-kimal-familiar":{group:"Hotel Kimal",title:"Hotel Kimal \xb7 Familiar",subtitle:"28 m\xb2 \xb7 minibar, escrivaninha e terra\xe7o.",description:"Terra\xe7o privativo, minibar e escrivaninha para estadias em fam\xedlia.",perks:["Minibar","Escrivaninha","Terra\xe7o"]},"poblado-matrimonial":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Casal",subtitle:"22 m\xb2 \xb7 frigobar e terra\xe7o.",description:"Cama de casal, frigobar e terra\xe7o privativo no o\xe1sis.",perks:["Frigobar","Terra\xe7o"]},"poblado-twin":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Twin",subtitle:"22 m\xb2 \xb7 frigobar e terra\xe7o.",description:"Duas camas de solteiro, frigobar e terra\xe7o privativo.",perks:["Frigobar","Terra\xe7o"]},"poblado-superior":{group:"Poblado Kimal",title:"Poblado Kimal \xb7 Superior",subtitle:"28 m\xb2 \xb7 minibar, jacuzzi (custo extra) e terra\xe7o.",description:"Jacuzzi com custo extra, minibar e terra\xe7o para uma pausa relaxante.",perks:["Minibar","Jacuzzi","Terra\xe7o"]}}},w=e=>e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]+/g,"").trim(),k=(e,t)=>t.some(t=>e.includes(t)),j=e=>{var t,a,i,r,l,o,n,s,c,d;let u=e.map(e=>{let t=w(e.label);return{rate:e,kind:(e=>{let t=w(e);return k(t,["noreemb","noreembolso","norefund","nonrefund","nonrefundable","nonrefunduble","nonrefoundable","nonreembolsable"])?"standard":k(t,["flexible","flex"])?"flexible":k(t,["standard","estandar"])?"standard":"unknown"})(e.label),sourceScore:k(t,["bookingengine","motorreservas","motor"])?3:k(t,["ota"])?1:2}}),m=e=>[...e].sort((e,t)=>t.sourceScore-e.sourceScore),p=null!=(i=null==(t=m(u.filter(e=>"standard"===e.kind))[0])?void 0:t.rate)?i:null,b=null!=(r=null==(a=m(u.filter(e=>"flexible"===e.kind))[0])?void 0:a.rate)?r:null,h=m(u.filter(e=>"unknown"===e.kind)).map(e=>e.rate),x=(e,t)=>!!e&&!!t&&String(e.id)===String(t.id),f=p,g=b;if(f&&!g&&(g=null!=(l=h.find(e=>!x(e,f)))?l:null),g&&!f&&(f=null!=(o=h.find(e=>!x(e,g)))?o:null),f||g)return{standard:f,flexible:g};let v=m(u).map(e=>e.rate),y=null!=(s=null!=(n=v[0])?n:e[0])?s:null,j=null!=(d=null!=(c=v.find(e=>!x(e,y)))?c:e[1])?d:null;return{standard:y,flexible:j}},N=e=>Array.isArray(e)?e:e&&"object"==typeof e?Object.values(e).filter(e=>!!(e&&"object"==typeof e)):[],C=(e,t)=>t.map(t=>e[t]).find(e=>"string"==typeof e&&e.trim().length>0),P=(e,t)=>{for(let a of t){let t=e[a];if("number"==typeof t&&Number.isFinite(t))return t;if("string"==typeof t){let e=Number.parseFloat(t);if(Number.isFinite(e))return e}}},S=(e,t,a)=>N(e).map(e=>{var i,r,l;let o=null!=(r=null!=(i=C(e,t))?i:P(e,t))?r:C(e,["code","slug","uid"]),n=null!=(l=C(e,a))?l:C(e,["description","label"]);return void 0!==o&&n?{id:o,label:n,raw:e}:null}
1).filter(Boolean),D=(e,t)=>{let a=new Date(e);return a.setDate(a.getDate()+t),a},A=(e,t)=>{let a=new Date(e);return a.setMonth(a.getMonth()+t),a},E=e=>new Date(e.getFullYear(),e.getMonth(),1),T=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),R=(e,t)=>e.getTime()<t.getTime(),M=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),12)).toISOString(),F={es:"es-CL",en:"en-US",pt:"pt-BR"},O={es:{chooseDates:"Elige tus fechas",chooseRoom:"Elige tu habitaci\xf3n",subtitleDatesCheckout:"Selecciona fechas y personas para continuar al pago seguro.",subtitleDatesAvailability:"Selecciona fechas y personas para ver disponibilidad en segundos.",subtitleRoomOptions:"Estas son las opciones para tus fechas y cantidad de hu\xe9spedes.",connectingEngine:"Conectando con motor de reservas...",connectEngineBody:"Conectando con motor de reservas para tus fechas.",connectEngineTitle:"No pudimos conectar con el motor de reservas.",technicalDetailPrefix:"Detalle t\xe9cnico:",rate:"Tarifa",flexible:"Flexible",nonFlexible:"No flexible",flexibleNote:"Cancela sin costo hasta 7 d\xedas antes.",flexibleNoteDetails:"Pueden aplicarse costos adicionales por extras e impuestos.",guests:"Hu\xe9spedes",adultsLabel:"Adultos",childrenLabel:"Ni\xf1os",continue:"Continuar",searchingAvailability:"Buscando disponibilidad…",viewAvailability:"Ver disponibilidad",selectCheckoutDate:"Selecciona fecha de salida.",rooms:"Habitaciones",unavailableOnline:"No disponible online",unavailable:"Sin disponibilidad",priceUnreadable:"Tarifa no interpretable",pricePendingConfirm:"Tarifa por confirmar",unavailablePrefix:"No disponible:",add:"+ Agregar",full:"Completo",selectedRooms:"Habitaciones seleccionadas",totalCount:e=>"".concat(e," en total"),addRoomsToContinue:"Agrega habitaciones desde la lista para continuar.",noStockPrefix:"Sin cupo:",available:"Disponible",pendingRate:"Tarifa pendiente",nights:e=>"".concat(e," noche").concat(e>1?"s":""),total:"Total",tooManyGuests:"Demasiados hu\xe9spedes para las habitaciones seleccionadas. Agrega otra habitaci\xf3n.",changeDatesOrGuests:"Cambiar fechas o personas",continueBooking:"Continuar con la reserva",loadReservationError:"Hubo un error en tu reserva. Cont\xe1ctanos para ayudarte. [email protected]",chooseCheckoutDateError:"Elige fecha de salida haciendo clic en el calendario.",noRoomsAvailableError:"No encontramos habitaciones disponibles para estas fechas.",genericAvailabilityError:"No pudimos obtener disponibilidad.",connectEngineError:"No pudimos conectar con el motor de reservas.",contactReservations:"Escr\xedbenos a [email protected]",noRoomsForSearch:"No encontramos habitaciones para esta b\xfasqueda. Prueba otras fechas o ajusta los hu\xe9spedes.",removeRoomAria:e=>"Quitar ".concat(e),guestsLabel:(e,t)=>
1t>0?"".concat(e," adulto").concat(e>1?"s":""," \xb7 ").concat(t," ni\xf1o").concat(t>1?"s":""):"".concat(e," adulto").concat(e>1?"s":""),occupancyLabel:(e,t)=>t>0?"".concat(e," adultos \xb7 ").concat(t," ni\xf1os"):"".concat(e," hu\xe9sped").concat(1===e?"":"es"),fallbackZakRoomSubtitle:"Habitaci\xf3n registrada en ZaK",fallbackWuBookDescription:"Disponibilidad directa desde el motor WuBook.",childrenPerk:e=>"Apto para ".concat(e," ni\xf1o").concat(e>1?"s":""),directRecordPerk:"Registro directo",productPaachaDescription:"Incluye men\xfa Paacha para dos personas.",productTransferDescription:"A\xf1ade traslados aeropuerto ↔ hotel.",productSpaDescription:"Suma rituales en Kimal Relax durante la estad\xeda.",productGenericDescription:"Experiencia sugerida desde ZaK para esta habitaci\xf3n.",multiSelectionTitle:"Selecci\xf3n m\xfaltiple",roomCountLabel:e=>"".concat(e," habitaci\xf3n").concat(1===e?"":"es"),directBookingGroup:"Reserva directa"},en:{chooseDates:"Choose your dates",chooseRoom:"Choose your room",subtitleDatesCheckout:"Select dates and guests to continue to secure checkout.",subtitleDatesAvailability:"Select dates and guests to check availability in seconds.",subtitleRoomOptions:"These are the options for your dates and guest count.",connectingEngine:"Connecting to booking engine...",connectEngineBody:"Connecting to booking engine for your dates.",connectEngineTitle:"We could not connect to the booking engine.",technicalDetailPrefix:"Technical detail:",rate:"Rate",flexible:"Flexible",nonFlexible:"Non-flexible",flexibleNote:"Cancel free of charge up to 7 days before.",flexibleNoteDetails:"Additional charges may apply for extras and taxes.",guests:"Guests",adultsLabel:"Adults",childrenLabel:"Children",continue:"Continue",searchingAvailability:"Checking availability…",viewAvailability:"Check availability",selectCheckoutDate:"Select a check-out date.",rooms:"Rooms",unavailableOnline:"Not available online",unavailable:"Unavailable",priceUnreadable:"Rate unavailable",pricePendingConfirm:"Rate pending confirmation",unavailablePrefix:"Unavailable:",add:"+ Add",full:"Full",selectedRooms:"Selected rooms",totalCount:e=>"".concat(e," total"),addRoomsToContinue:"Add rooms from the list to continue.",noStockPrefix:"No stock:",available:"Available",pendingRate:"Pending rate",nights:e=>"".concat(e," night").concat(e>1?"s":""),total:"Total",tooManyGuests:"Too many guests for the selected rooms. Add another room.",changeDatesOrGuests:"Change dates or guests",continueBooking:"Continue booking",loadReservationError:"There was an error with your booking. Contact us at [email protected].",chooseCheckoutDateError:"Choose a check-out date by clicking on the calendar.",noRoomsAvailableError:"No rooms available for these dates.",genericAvailabilityError:"We could not fetch availability.",connectEngineError:"We could not connect to the booking engine.",contactReservations:"Write to us at [email protected]",noRoomsForSearch:"We couldn't find rooms for this search. Try different dates or adjust guests.",removeRoomAria:e=>"Remove ".concat(e),guestsLabel:(e,t)=>
1t>0?"".concat(e," adult").concat(e>1?"s":""," \xb7 ").concat(t," child").concat(1===t?"":"ren"):"".concat(e," adult").concat(e>1?"s":""),occupancyLabel:(e,t)=>t>0?"".concat(e," adult").concat(e>1?"s":""," \xb7 ").concat(t," child").concat(1===t?"":"ren"):"".concat(e," guest").concat(e>1?"s":""),fallbackZakRoomSubtitle:"Room registered in ZaK",fallbackWuBookDescription:"Direct availability from the WuBook engine.",childrenPerk:e=>"Suitable for ".concat(e," child").concat(1===e?"":"ren"),directRecordPerk:"Direct listing",productPaachaDescription:"Includes a Paacha menu for two guests.",productTransferDescription:"Adds airport ↔ hotel transfers.",productSpaDescription:"Adds Kimal Relax rituals during your stay.",productGenericDescription:"Suggested ZaK experience for this room.",multiSelectionTitle:"Multiple selection",roomCountLabel:e=>"".concat(e," room").concat(1===e?"":"s"),directBookingGroup:"Direct booking"},pt:{chooseDates:"Escolha suas datas",chooseRoom:"Escolha seu quarto",subtitleDatesCheckout:"Selecione datas e h\xf3spedes para continuar ao pagamento seguro.",subtitleDatesAvailability:"Selecione datas e h\xf3spedes para ver disponibilidade em segundos.",subtitleRoomOptions:"Estas s\xe3o as op\xe7\xf5es para suas datas e quantidade de h\xf3spedes.",connectingEngine:"Conectando ao motor de reservas...",connectEngineBody:"Conectando ao motor de reservas para suas datas.",connectEngineTitle:"N\xe3o foi poss\xedvel conectar ao motor de reservas.",technicalDetailPrefix:"Detalhe t\xe9cnico:",rate:"Tarifa",flexible:"Flex\xedvel",nonFlexible:"N\xe3o flex\xedvel",flexibleNote:"Cancele sem custo at\xe9 7 dias antes.",flexibleNoteDetails:"Custos adicionais podem ser aplicados para extras e impostos.",guests:"H\xf3spedes",adultsLabel:"Adultos",childrenLabel:"Crian\xe7as",continue:"Continuar",searchingAvailability:"Buscando disponibilidade…",viewAvailability:"Ver disponibilidade",selectCheckoutDate:"Selecione a data de check-out.",rooms:"Quartos",unavailableOnline:"Indispon\xedvel online",unavailable:"Sem disponibilidade",priceUnreadable:"Tarifa indispon\xedvel",pricePendingConfirm:"Tarifa pendente de confirma\xe7\xe3o",unavailablePrefix:"Indispon\xedvel:",add:"+ Adicionar",full:"Completo",selectedRooms:"Quartos selecionados",totalCount:e=>"".concat(e," no total"),addRoomsToContinue:"Adicione quartos da lista para continuar.",noStockPrefix:"Sem vaga:",available:"Dispon\xedvel",pendingRate:"Tarifa pendente",nights:e=>"".concat(e," noite").concat(e>1?"s":""),total:"Total",tooManyGuests:"H\xf3spedes demais para os quartos selecionados. Adicione outro quarto.",changeDatesOrGuests:"Alterar datas ou h\xf3spedes",continueBooking:"Continuar com a reserva",loadReservationError:"Houve um erro na sua reserva. Fale com [email protected].",chooseCheckoutDateError:"Escolha a data de check-out clicando no calend\xe1rio.",noRoomsAvailableError:"N\xe3o encontramos quartos dispon\xedveis para essas datas.",genericAvailabilityError:"N\xe3o foi poss\xedvel obter disponibilidade.",connectEngineError:"N\xe3o foi poss\xedvel conectar ao motor de reservas.",contactReservations:"Escreva para [email protected]",noRoomsForSearch:"N\xe3o encontramos quartos para esta busca. Tente outras datas ou ajuste os h\xf3spedes.",removeRoomAria:e=>"Remover ".concat(e),guestsLabel:(e,t)=>
1t>0?"".concat(e," adulto").concat(e>1?"s":""," \xb7 ").concat(t," crian\xe7a").concat(t>1?"s":""):"".concat(e," adulto").concat(e>1?"s":""),occupancyLabel:(e,t)=>t>0?"".concat(e," adultos \xb7 ").concat(t," crian\xe7a").concat(t>1?"s":""):"".concat(e," h\xf3spede").concat(e>1?"s":""),fallbackZakRoomSubtitle:"Quarto registrado no ZaK",fallbackWuBookDescription:"Disponibilidade direta do motor WuBook.",childrenPerk:e=>"Adequado para ".concat(e," crian\xe7a").concat(e>1?"s":""),directRecordPerk:"Registro direto",productPaachaDescription:"Inclui menu Paacha para duas pessoas.",productTransferDescription:"Adiciona traslados aeroporto ↔ hotel.",productSpaDescription:"Adiciona rituais no Kimal Relax durante a estadia.",productGenericDescription:"Experi\xeancia sugerida do ZaK para este quarto.",multiSelectionTitle:"Sele\xe7\xe3o m\xfaltipla",roomCountLabel:e=>"".concat(e," quarto").concat(1===e?"":"s"),directBookingGroup:"Reserva direta"}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es-CL",a=new Date(e);return Number.isNaN(a.getTime())?e:a.toLocaleDateString(t,{day:"2-digit",month:"short"})},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es-CL";return e.toLocaleDateString(t,{day:"2-digit",month:"long",weekday:"short"})},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"es-CL",r=[];for(let l=0;l<t;l+=1){let t=A(e,l),o=E(t),n=(o.getDay()+6)%7,s=D(o,-n),c=Array.from({length:42},(e,i)=>{let r=D(s,i),l=r.getMonth()===t.getMonth(),o=R(r,a);return{date:r,inMonth:l,disabled:o}});r.push({id:"".concat(t.getFullYear(),"-").concat(t.getMonth()),label:t.toLocaleDateString(i,{month:"long",year:"numeric"}),days:c})}return r},B=(e,t,a)=>!!t&&(a?(e.getTime()>t.getTime()||T(e,t))&&(R(e,a)||T(e,a)):T(e,t)),I=(e,t)=>t?Math.max(Math.ceil((t.getTime()-e.getTime())/864e5),1):1,_=e=>{var t,a,i,r,p;let{onReady:x,className:k="",initialRoomId:_,step:G,onStepChange:H,onAvailabilityConfirmed:W,onDatesGuestsConfirmed:q,onAvailabilityCleared:U,forceScrollable:Z=!1}=e,J=(0,h.Ym)(),Y=null!=(a=O[J])?a:O.es,Q=(0,n.useMemo)(()=>(e=>{let t=y[e];return t?v.map(e=>{var a;return{...e,...null!=(a=t[e.slug])?a:{}}}):v})(J),[J]),V=null!=(i=F[J])?i:F.es,[X,$]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(null),[ea,ei]=(0,n.useState)(0),[er,el]=(0,n.use
1State)([]),[eo,en]=(0,n.useState)(null),[es,ec]=(0,n.useState)([]),[ed,eu]=(0,n.useState)("flexible"),[em,ep]=(0,n.useState)(!1),[eb,eh]=(0,n.useState)([]),[ex,ef]=(0,n.useState)({}),[eg,ev]=(0,n.useState)(""),ey=(0,n.useMemo)(()=>(e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()))(new Date),[]),[ew,ek]=(0,n.useState)(()=>E(ey)),[ej,eN]=(0,n.useState)(1),[eC,eP]=(0,n.useState)({start:ey,end:D(ey,1)}),[eS,eD]=(0,n.useState)(2),[eA,eE]=(0,n.useState)(0),[eT,eR]=(0,n.useState)("dates"),eM=null!=G?G:eT,[eF,eO]=(0,n.useState)(!1),[eK,eL]=(0,n.useState)(null),[ez,eB]=(0,n.useState)({}),[eI,e_]=(0,n.useState)({}),[eG,eH]=(0,n.useState)([]),[eW,eq]=(0,n.useState)([]),[eU,eZ]=(0,n.useState)(!1),[eJ,eY]=(0,n.useState)([]),eQ=eF&&"rooms"===eM,eV=(0,n.useRef)(new Map);(0,n.useEffect)(()=>{G&&G!==eT&&eR(G)},[G,eT]);let eX=(0,n.useCallback)(e=>{eR(e),null==H||H(e)},[H]),e$=(0,n.useCallback)((e,t)=>{if(null==e)return null;let a=(null!=t?t:"USD").toUpperCase(),i=new Intl.NumberFormat("CLP"===a?"es-CL":"en-US",{style:"currency",currency:a,maximumFractionDigits:2*("CLP"!==a)}).format(e);return"".concat(i," ").concat(a)},[]),e0=(0,n.useMemo)(()=>z(ew,1,ey,V),[ew,ey,V]),e1=I(eC.start,eC.end),e2=(0,n.useMemo)(()=>Y.guestsLabel(eS,eA),[eS,eA,Y]),e3=eS+eA,e5=(0,n.useMemo)(()=>eb.map(e=>{var t,a,i;let r=!!ex[e.slug],l=ez[e.slug],o=null==l?void 0:l.availability,n=l?(e=>{let t=N(e).map(e=>{var t;let a=null!=(t=C(e,["date","day","day_from","dfrom","from"]))?t:C(e,["day_to","dto","to"]),i=P(e,["avail","available","availability","free","free_rooms","rooms"]);return a?{date:a,available:Number.isFinite(i)?i:0}:null}).filter(Boolean);return t.length?t:null})(o):null,s=null,c=[];if(r)if(n)s=0===(c=n.filter(e=>e.available<1).map(e=>e.date)).length;else if(void 0!==o)if("number"==typeof o){s=o>=1;let e=Array.from({length:e1},(e,t)=>M(D(eC.start,t)));n=(eG.length?eG:e).map(e=>({date:e,available:Math.round(o)}))}else if(Array.isArray(o)){let e=Array.from({length:e1},(e,t)=>M(D(eC.start,t))),t=eG.length?eG:e,a=o.map((e,a)=>{var i;let r="number"==typeof e?e:Number.parseFloat(String(e));return Number.isFinite(r)?{date:null!=(i=t[a])?i:M(D(eC.start,a)),available:Math.round(r)}:null}).filter(Boolean);n=a,s=0===(c=a.filter(e=>e.available<1).map(e=>e.date)).length}else if("string"==typeof o){let e=Number.parseFloat(o);if(s=Number.isFinite(e)?e>=1:null,Number.isFinite(e)){let t=Array.from({length:e1},(e,t)=>M(D(eC.start,t)));n=(eG.length?eG:t).map(t=>({date:t,available:Math.round(e)}))}}else o&&"object"==typeof o&&0===Object.keys(o).length&&(s=!1);else eW.includes(e.slug)&&(s=null);else s=!1;let d=l?(e=>{if(!e)return null;if(Array.isArray(e)){let t=e.map(e=>{if(!e||"object"!=typeof e)return null;let t=C(e,["date","day","when"]),a=P(e,["price","value","amount"]),i=C(e,["currency","curr"]);return t&&void 0!==a?{date:t,price:a,currency:i}:null}).filter(Boolean);if(t.length)return t}if(e&&"object"==typeof e){let t=[];if(Object.entries(e).forEach(e=>{let[a,i]=e;if("number"==typeof i&&Number.isFinite(i))return void t.push({date:a,price:i});if(i&&"object"==typeof i){let e=P(i,["price","value","amount"]);if(void 0!==e){var r;t.push({date:null!=(r=C(i,["date","day"]))?r:a,price:e,currency:C(i,["currency","curr"])})}}}),t.length)return t}return null})(l.dailyPrices):null,u=d?d.reduce((e,t)=>e+t.price,0):null,m=null!=(a=null==d||null==(t=d.find(e=>e.currency))?void 0:t.currency)?a:null,p=null!=(i=eI[e.slug])?i:null;return{slug:e.slug,room:e,availabilityOk:s,unavailableNights:c,availabilityNights:n,nightlyPrices:d,totalPrice:u,priceCurrency:m,priceError:p,hasOption:r}}),[eC.start,eb,eG,e1,eI,ex,ez,eW]),e4=(0,n.useMemo)(()=>e5.filter(e=>e.availabilityOk),[e5]),e7=(0,n.useMemo)(()=>eJ.length?eJ.reduce((e,t)=>{var a;return e[t]=(null!=(a=e[t])?a:0)+1,e},{}):{},[eJ]),e8=(0,n.useMemo)(()=>Object.entries(e7).map(e=>{var t,a,i,r,l;let[o,n]=e,s=null!=(t=e5.find(e=>e.slug===o))?t:null,c=null!=(a=null==s?void 0:s.room)?a:null,d=null!=(i=null==s?void 0:s.availabilityNights)?i:null,u=d?d.filter(e=>e.available<n).map(e=>e.date):[],m=!!((null==s?void 0:s.availabilityOk)&&(d?0===u.length:1===n)),p=null!=(r=null==s?void 0:s.totalPrice)?r:null;return{slug:o,count:n,room:c,availabilityOkForCount:m,unavailableNights:u,totalPrice:null!==p?p*n:null,priceCurrency:null!=(l=null==s?void 0:s.priceCurrency)?l:null}}),[e5,e7]),e6=(0,n.useMemo)(()=>e8.reduce((e,t)=>
1{var a,i,r,l;let o=null!=(r=null==(a=t.room)?void 0:a.maxAdults)?r:0,n=null!=(l=null==(i=t.room)?void 0:i.maxChildren)?l:0;return e.maxAdults+=o*t.count,e.maxChildren+=n*t.count,e.maxGuests+=(o+n)*t.count,e},{maxAdults:0,maxChildren:0,maxGuests:0}),[e8]),e9=e8.length>0&&(eS>e6.maxAdults||eA>e6.maxChildren||e3>e6.maxGuests),te=(0,n.useMemo)(()=>e8.length>0&&e8.every(e=>e.availabilityOkForCount)&&!e9,[e9,e8]),tt=(0,n.useMemo)(()=>e8.length?e8.reduce((e,t)=>null==t.totalPrice?e:e+t.totalPrice,0):null,[e8]),ta=null!=(r=null==(t=e8.find(e=>e.priceCurrency))?void 0:t.priceCurrency)?r:null,ti=(0,n.useCallback)(e=>{var t,a;if(!e)return null;let i=null!=(t=C(e.raw,["shortname","code","id"]))?t:C(e.raw,["name","title"]);if(!i)return null;let r=w(i);return null!=(a=er.find(e=>w(e.label).includes(r)))?a:null},[er]),tr=(0,n.useCallback)(e=>{if(!e)return null;let t=w(e.label);return t.includes("cena")||t.includes("paacha")?Y.productPaachaDescription:t.includes("transfer")?Y.productTransferDescription:t.includes("spa")||t.includes("masaje")?Y.productSpaDescription:Y.productGenericDescription},[Y.productGenericDescription,Y.productPaachaDescription,Y.productSpaDescription,Y.productTransferDescription]),tl=(0,n.useMemo)(()=>eo&&"flexible"===ed?{badge:Y.flexible,description:Y.flexibleNote,tone:"accent"}:null,[Y.flexible,Y.flexibleNote,eo,ed]),{flexibleRatePlan:to,standardRatePlan:tn}=(0,n.useMemo)(()=>{let{flexible:e,standard:t}=j(es);return{flexibleRatePlan:e,standardRatePlan:t}},[es]),ts=(0,n.useCallback)(function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.room?{item_id:e.slug,item_name:e.room.title,item_category:e.room.group,item_variant:null!=(t=null==eo?void 0:eo.label)?t:null,quantity:a,price:e.totalPrice}:null},[eo]),tc=(0,n.useCallback)((e,t)=>{var a,i;let r=e.map(e=>{let a=e5.find(t=>t.slug===e);return(null==a?void 0:a.room)&&t[e]?ts(a):null}).filter(e=>!!e);(0,u.Ar)({checkIn:M(eC.start),checkOut:M(null!=(a=eC.end)?a:D(eC.start,1)),nights:I(eC.start,null!=(i=eC.end)?i:D(eC.start,1)),adults:eS,children:eA,source:"zak_widget_search",items:r})},[eS,ts,eA,eC.end,eC.start,e5]),td=(0,n.useCallback)(e=>{var t,a,i,r,l,o;if(!e.availabilityOk||!e.hasOption)return;let n=null!=(t=ex[e.slug])?t:null,s=n?ti(n):null,c=null!=(a=eC.end)?a:D(eC.start,1),d=I(eC.start,c),u=Array.from({length:d},(e,t)=>M(D(eC.start,t)));null==W||W({room:e.room?{title:e.room.title,description:e.room.description,occupancyLabel:e.room.occupancyLabel,slug:e.room.slug,group:e.room.group}:null,dates:{startISO:M(eC.start),endISO:M(c)},nightsCount:d,roomsRequested:1,guests:{adults:eS,children:eA},availability:null!=(i=e.availabilityNights)?i:u.map(e=>({date:e,available:1})),prices:e.nightlyPrices,totalPrice:e.totalPrice,productSummary:tr(s),productLabel:null!=(r=null==s?void 0:s.label)?r:null,rateInfo:tl,booking:{ratePlan:eo?{id:eo.id,label:eo.label}:null,rooms:n?[{roomTypeId:n.id,roomLabel:e.room.title,quantity:1,unitPrice:e.totalPrice,currency:e.priceCurrency,productId:null!=(l=null==s?void 0:s.id)?l:null,productLabel:null!=(o=null==s?void 0:s.label)?o:null}]:[]}})},[eS,eA,eC.end,eC.start,tr,ti,W,eo,tl,ex]),tu=()=>{if("rooms"===eM)return void tx();eZ(e=>!e)},tm=()=>{if("rooms"===eM)return void tx();eZ(!1),eN(-1),ek(e=>A(e,-1))},tp=()=>{if("rooms"===eM)return void tx();eZ(!1),eN(1),ek(e=>A(e,1))},tb=e=>{eP(t=>!t.start||t.start&&t.end?{start:e,end:null}:t.end?{start:e,end:null}:R(e,t.start)?{start:e,end:t.start}:T(e,t.start)?{start:e,end:D(e,1)}:{start:t.start,end:e})},th=(0,n.useCallback)(async()=>{if(!eo)return void eL(Y.loadReservationError);if(!eC.end)return void eL(Y.chooseCheckoutDateError);let e=eb.map(e=>{var t;return{room:e,option:null!=(t=ex[e.slug])?t:null}}).filter(e=>!!e.option);if(!e.length)return void eL(Y.noRoomsAvailableError);let t=Array.from({length:I(eC.start,eC.end)},(e,t)=>M(D(eC.start,t))),a=M(eC.start),i=M(eC.end),r=e.map(e=>"".concat(e.room.slug,":").concat(e.option.id)).sort().join("|"),l="".concat(a,"|").concat(i,"|").concat(eS,"|").concat(eA,"|").concat(eo.id,"|").concat(r),o=eV.current.get(l);if(o){eL(null),eB(o.results),e_(o.priceErrors),eH(o.stayDates),eq(o.searchedRoomSlugs),eY([]),eZ(!0),eO(!1),eX("rooms"),tc(o.searchedRoomSlugs,o.results);return}eO(!0),eL(null),eB({}),e_({}),eH(t),eq(e.map(e=>e.room.slug)),eY([]),eZ(!0);let n={},s={},c=[];for(let{room:t,option:r}of e){let e=ti(r),l={rtid:r.id,plid:eo.id,checkInISO:a,checkOutISO:i,adults:eS,children:eA,rooms:1};e&&(l.productId=e.id);try{let e=await fetch(f("/api/zak/search"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!e.ok){var d;let a=await e.json().catch(()=>({}
1)),i=null!=(d=t.title)?d:t.slug;throw Error("string"==typeof(null==a?void 0:a.error)?"".concat(i,": ").concat(a.error):"WuBook search failed (".concat(e.status,") para ").concat(i))}let a=await e.json(),i=a.dailyPrices;i&&"object"==typeof i&&!Array.isArray(i)&&"error"in i&&"string"==typeof i.error?s[t.slug]=i.error:s[t.slug]=null,n[t.slug]=a}catch(e){c.push(e instanceof Error?e.message:Y.genericAvailabilityError)}}eB(n),e_(s),c.length&&eL(c[0]),eO(!1),eX("rooms"),!c.length&&Object.keys(n).length>0&&(eV.current.set(l,{results:n,priceErrors:s,searchedRoomSlugs:e.map(e=>e.room.slug),stayDates:t}),tc(e.map(e=>e.room.slug),n))},[eS,eA,Y,eC.end,eC.start,eb,ti,eo,ex,tc,eX]);(0,n.useEffect)(()=>{if(em){if(!eC.end||"rooms"!==eM)return void ep(!1);th(),ep(!1)}},[em,eC.end,eM,th]);let tx=()=>{eX("dates"),eL(null),eO(!1),eB({}),e_({}),eH([]),eq([]),eY([]),null==U||U()},tf=(0,n.useCallback)(()=>{var e;if(!te||0===e8.length)return;let t=null!=(e=eC.end)?e:D(eC.start,1),a=I(eC.start,t),i=Array.from({length:a},(e,t)=>M(D(eC.start,t))),r=e8.reduce((e,t)=>e+t.count,0),l=e8.map(e=>{var t,a;return"".concat(e.count,"\xd7 ").concat(null!=(a=null==(t=e.room)?void 0:t.title)?a:e.slug)}).join(", "),o=i.map(e=>({date:e,available:r})),n=e8.map(e=>{var t,a,i,r,l,o;let n=null!=(a=ex[e.slug])?a:null;if(!n)return null;let s=ti(n),c=null!==e.totalPrice&&e.count>0?e.totalPrice/e.count:null;return{roomTypeId:n.id,roomLabel:null!=(i=null==(t=e.room)?void 0:t.title)?i:n.label,quantity:e.count,unitPrice:c,currency:null!=(r=e.priceCurrency)?r:ta,productId:null!=(l=null==s?void 0:s.id)?l:null,productLabel:null!=(o=null==s?void 0:s.label)?o:null}}).filter(Boolean);null==W||W({room:{title:Y.multiSelectionTitle,description:l,occupancyLabel:Y.roomCountLabel(r),slug:"multi",group:Y.directBookingGroup},dates:{startISO:M(eC.start),endISO:M(t)},nightsCount:a,roomsRequested:r,guests:{adults:eS,children:eA},availability:o,prices:null,totalPrice:tt,productSummary:null,productLabel:null,rateInfo:tl,booking:{ratePlan:eo?{id:eo.id,label:eo.label}:null,rooms:n}})},[eS,eA,Y,eC.end,eC.start,ti,W,eo,tl,ex,ta,e8,te,tt]);return(0,n.useEffect)(()=>{let e=!1;return(async()=>{et(null),$(!1);try{var t,a;let i=await fetch(f("/api/zak/rooms"),{method:"GET",cache:"no-store"});if(!i.ok){let e=await g(i,"WuBook metadata request failed with status ".concat(i.status));throw Error(e)}let r=await i.json();if(e)return;let l=S(r.roomTypes,["id","rtid","room_type","rid"],["name","title"]),o=S(r.rates,["id","plid","rate_id"],["name","title","label"]),n=S(r.products,["id","pid","product"],["name","title"]),{cards:s,matchMap:c}=((e,t,a)=>{let i=new Set,r=[],l={};return t.forEach(t=>{var o;let n=e.find(e=>{var a;if(i.has(e.id.toString()))return!1;let r=w(e.label),l=C(null!=(a=e.raw)?a:{},["shortname","code","slug"]);return t.matchers.some(e=>r.includes(w(e))||!!l&&w(l).includes(w(e)))});n&&i.add(n.id.toString());let s=(null!=(o=null==n?void 0:n.raw)?o:{}).occupancy,c="number"==typeof(null==s?void 0:s.adults)?s.adults:t.defaultGuests,d="number"==typeof(null==s?void 0:s.children)?s.children:0,u=c>=4?2:1,m="number"==typeof(null==s?void 0:s.children)?s.children:u,p=a.occupancyLabel(c,d);r.push({...t,matchedOption:null!=n?n:null,occupancyLabel:p,wuName:null==n?void 0:n.label,maxAdults:"number"==typeof(null==s?void 0:s.adults)?s.adults:t.defaultGuests,maxChildren:m}),l[t.slug]=null!=n?n:null}),e.filter(e=>!i.has(e.id.toString())).forEach(e=>{var t,i,o;
1let n=null!=(t=e.raw)?t:{},s=n.occupancy,c="number"==typeof(null==s?void 0:s.adults)?s.adults:2,d="number"==typeof(null==s?void 0:s.children)?s.children:0,u=c>=4?2:1,m="number"==typeof(null==s?void 0:s.children)?s.children:u,p="wu-".concat(e.id),b={slug:p,group:"WuBook",title:e.label,subtitle:null!=(i=C(n,["description"]))?i:a.fallbackZakRoomSubtitle,description:null!=(o=C(n,["description"]))?o:a.fallbackWuBookDescription,image:"/KimalRoomInterior1.jpg",directPrice:P(n,["maxprice"])?1e3*Number(P(n,["maxprice"])):0,otaPrice:P(n,["rackrate"])?1e3*Number(P(n,["rackrate"])):0,defaultGuests:c,perks:d?[a.childrenPerk(d)]:[a.directRecordPerk],matchers:[],matchedOption:e,occupancyLabel:a.occupancyLabel(c,d),wuName:e.label,unmatched:!0,maxAdults:"number"==typeof(null==s?void 0:s.adults)?s.adults:c,maxChildren:m};r.push(b),l[p]=e}),{cards:r,matchMap:l}})(l,Q,Y);el(n),ec(o),eh(s),ef(c);let{flexible:d,standard:m}=j(o),p=null!=(a=null!=(t=null!=d?d:m)?t:o[0])?a:null;en(p),p&&m&&p.id===m.id?eu("standard"):p?eu("flexible"):eu("standard"),$(!0),(0,u.ZB)(),null==x||x()}catch(t){if(e)return;console.warn("Failed to load WuBook metadata",t),et(t instanceof Error?t.message:Y.connectEngineError)}})(),()=>{e=!0}},[Y,Q,ea,x,Y.connectEngineError]),(0,n.useEffect)(()=>{if(!eb.length)return void ev("");if(_&&eb.some(e=>e.slug===_))return void ev(_);if(!eg){var e,t;ev(null!=(t=null==(e=eb[0])?void 0:e.slug)?t:"")}},[eb,_,eg]),(0,n.useEffect)(()=>{eZ("rooms"===eM)},[eM]),(0,n.useEffect)(()=>{if("rooms"!==eM||!e5.length)return;let e=e5.find(e=>e.slug===eg);if(null==e?void 0:e.availabilityOk)return;let t=e5.find(e=>e.availabilityOk);t&&t.slug!==eg&&ev(t.slug)},[eg,e5,eM]),(0,l.jsxs)("div",{className:(0,m.A)("relative flex w-full min-h-0 flex-col overflow-hidden rounded-[32px] border border-white/10 bg-gradient-to-br from-[#1B1411] via-[#0C0705] to-[#040302] text-white shadow-[0px_36px_140px_-60px_rgba(7,4,3,0.85)]",k),children:[(0,l.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-32 left-1/2 h-96 w-96 -translate-x-1/2 rounded-full bg-[#f3b97a]/20 blur-[160px]"}),(0,l.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-24 -left-14 h-64 w-64 rounded-full bg-[#f3b97a]/15 blur-[140px]"}),(0,l.jsxs)("div",{className:"relative flex-1 min-h-0",children:["rooms"===eM&&(0,l.jsxs)("button",{type:"button",onClick:tx,className:"absolute left-4 top-4 z-10 inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/25 bg-black/30 text-white/70 transition hover:border-white/50 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/80",children:[(0,l.jsx)("span",{className:"sr-only",children:"Volver"}),(0,l.jsx)(d.A60,{className:"h-4 w-4"})]}),(0,l.jsxs)("div",{className:(0,m.A)("flex h-full min-h-0 flex-col",Z?"overflow-y-auto":"overflow-hidden"),children:[(0,l.jsxs)("div",{className:"px-6 pb-6 pt-8 text-center sm:px-10",children:[(0,l.jsx)(s.P.h2,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"},className:"font-display text-3xl leading-tight md:text-[2.6rem]",children:"dates"===eM?Y.chooseDates:Y.chooseRoom}),(0,l.jsx)(s.P.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.45,ease:"easeOut",delay:.05},className:"text-sm leading-relaxed text-white/75",children:"dates"===eM?q?Y.subtitleDatesCheckout:Y.subtitleDatesAvailability:Y.subtitleRoomOptions})]}),!X&&!ee&&(0,l.jsx)("div",{className:"flex flex-1 items-center justify-center px-6 pb-12",children:(0,l.jsxs)("div",{className:"flex w-full max-w-lg flex-col items-center justify-center gap-3 rounded-3xl border border-white/12 bg-black/35 px-6 py-10",children:[(0,l.jsx)(s.P.span,{className:"h-11 w-11 rounded-full border-2 border-white/25 border-t-white",animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},"aria-hidden":!0}),(0,l.jsx)("p",{className:"text-xs text-white/65",children:Y.connectingEngine})]})}),ee&&(0,l.jsx)("div",{className:"flex flex-1 items-center justify-center px-6 pb-12",children:(0,l.jsxs)("div",{className:"flex w-full max-w-lg flex-col items-center justify-center gap-4 roun
1ded-3xl border border-white/12 bg-black/70 px-6 py-10 text-center backdrop-blur-sm",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("p",{className:"text-sm font-semibold text-white",children:Y.connectEngineTitle}),(0,l.jsx)("p",{className:"text-xs text-white/70",children:"Revisa tu conexi\xf3n o cont\xe1ctanos directamente para ayudarte con la reserva."}),(0,l.jsxs)("p",{className:"text-[11px] text-white/50",children:[Y.technicalDetailPrefix," ",ee]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{ei(e=>e+1)},className:"inline-flex cursor-pointer items-center justify-center gap-2 rounded-full border border-white/30 bg-white/10 px-4 py-2 text-xs font-semibold text-white transition hover:border-white/50 hover:bg-white/18 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/80",children:[(0,l.jsx)(d.jfu,{className:"h-3.5 w-3.5"}),"Reintentar cargar"]}),(0,l.jsx)("a",{href:"mailto:[email protected]",className:"inline-flex cursor-pointer items-center justify-center rounded-full border border-white/20 px-4 py-2 text-xs font-semibold text-white transition hover:border-white/40 hover:bg-white/10",children:"Escr\xedbenos a [email protected]"})]})]})}),X&&!ee&&"dates"===eM&&(0,l.jsx)("form",{"data-analytics-form":"reservation","data-analytics-form-id":"reservation_search",className:"flex flex-1 flex-col items-center justify-center gap-6 px-6 pb-12 sm:px-10",onSubmit:e=>{if(e.preventDefault(),q){var t;if(!eC.end)return void eL(Y.chooseCheckoutDateError);let e=null!=(t=eC.end)?t:D(eC.start,1);return void q({dates:{startISO:M(eC.start),endISO:M(e)},nightsCount:I(eC.start,e),guests:{adults:eS,children:eA}})}th()},children:(0,l.jsx)("div",{className:"w-full max-w-2xl space-y-6",children:eF?(0,l.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 roun
1ded-3xl border border-white/12 bg-black/35 px-6 py-12 text-center",children:[(0,l.jsx)(s.P.span,{className:"h-11 w-11 rounded-full border-2 border-white/25 border-t-white",animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},"aria-hidden":!0}),(0,l.jsx)("p",{className:"text-sm font-semibold text-white",children:Y.searchingAvailability}),(0,l.jsx)("p",{className:"text-xs text-white/65",children:Y.connectEngineBody})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b,{calendarCollapsed:eU,onToggleCollapsed:tu,onPrevMonth:tm,onNextMonth:tp,showMonthArrows:!0,showEditButton:!1,formatLongDate:L,dateRange:eC,nightsCount:e1,monthDirection:ej,calendarMonths:e0,onSelectDate:tb,today:ey,withinRange:B,isSameDay:T}),(to||tn)&&(0,l.jsxs)("div",{className:"rounded-2xl border border-white/12 bg-black/25 p-4",children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.rate}),(0,l.jsxs)("div",{className:"relative mt-3 flex items-center gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{to&&(eu("flexible"),en(to))},className:(0,m.A)("relative inline-flex items-center rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] transition","flexible"===ed?"border-[#f3b97a]/70 text-[#fde5c7]":"border-white/15 text-white/60 hover:border-white/30"),children:["flexible"===ed&&(0,l.jsx)(s.P.span,{layoutId:"rate-toggle-dates",className:"absolute inset-0 rounded-full bg-[#f3b97a]/15",transition:{type:"spring",stiffness:320,damping:28}}),(0,l.jsx)("span",{className:"relative z-10",children:Y.flexible})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{tn&&(eu("standard"),en(tn))},className:(0,m.A)("relative inline-flex items-center rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] transition","standard"===ed?"border-[#f3b97a]/70 text-[#fde5c7]":"border-white/15 text-white/60 hover:border-white/30"),children:["standard"===ed&&(0,l.jsx)(s.P.span,{layoutId:"rate-toggle-dates",className:"absolute inset-0 rounded-full bg-[#f3b97a]/15",transition:{type:"spring",stiffness:320,damping:28}}),(0,l.jsx)("span",{className:"relative z-10",children:Y.nonFlexible})]})]}),(0,l.jsx)(c.N,{initial:!1,children:"flexible"===ed?(0,l.jsxs)(s.P.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2,ease:"easeOut"},className:"mt-3 text-xs text-white/65",children:[Y.flexibleNote," ",Y.flexibleNoteDetails]},"flex-note-dates"):null})]}),(0,l.jsxs)("div",{className:"rounded-2xl border border-white/12 bg-black/25 p-5",children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.guests}),(0,l.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between rounded-2xl border border-white/12 bg-black/25 p-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.adultsLabel}),(0,l.jsx)("p",{className:"text-sm text-white/75",children:eS})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:()=>eD(e=>Math.max(1,e-1)),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-white/20 bg-white/10 text-sm transition hover:border-white/35 hover:bg-white/18",children:"-"}),(0,l.jsx)("button",{type:"button",onClick:()=>eD(e=>Math.min(6,e+1)),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-white/20 bg-white/10 text-sm transition hover:border-white/35 hover:bg-white/18",children:"+"})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between rounded-2xl border border-white/12 bg-black/25 p-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.childrenLabel}),(0,l.jsx)("p",{className:"text-sm text-white/75",children:eA})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:()=>eE(e=>Math.max(0,e-1)),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-white/20 bg-white/10 text-sm transition hover:border-white/35 hover:bg-white/18",children:"-"}),(0,l.jsx)("button",{type:"button",onClick:()=>eE(e=>Math.min(4,e+1)),className:"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border border-white/20 bg-white/10 text-sm transition hover:border-white/35 hover:bg-white/18",children:"+"})]})]})]}),(0,l.jsx)("p",{className:"mt-3 text-xs text-white/60",children:"Usaremos esta informaci\xf3n para mostrar las habitaciones dis
1ponibles."})]}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsx)("button",{type:"submit",disabled:eF||!eC.end,className:(0,m.A)("inline-flex items-center gap-3 rounded-full border border-white/30 bg-[#f3b97a]/90 px-6 py-3 text-sm font-semibold text-black transition",eF||!eC.end?"cursor-not-allowed opacity-80":"hover:bg-[#ffd8ab] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/80"),children:eF?Y.searchingAvailability:q?Y.continue:Y.viewAvailability}),!eC.end&&(0,l.jsx)("span",{className:"text-xs text-white/60",children:Y.selectCheckoutDate})]}),eK&&(0,l.jsxs)(s.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},className:"flex items-start gap-3 rounded-2xl border border-[#f97474]/40 bg-[#f97474]/15 px-4 py-3 text-xs text-[#ffd7d7]",children:[(0,l.jsx)(d.ywh,{className:"mt-[2px] h-4 w-4"}),(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)("p",{children:eK}),(0,l.jsx)("a",{href:"mailto:[email protected]",className:"text-[#ffd8ab] transition hover:text-[#ffe6c7]",children:"Escr\xedbenos a [email protected]"})]})]})]})})}),X&&!ee&&"rooms"===eM&&(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-8 px-6 pb-12 lg:grid lg:grid-cols-[1.25fr_0.75fr] lg:gap-10 lg:px-10",children:[(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.rooms}),(0,l.jsxs)("p",{className:"text-sm text-white/70",children:[e4.length," opciones para ",e2]})]}),eF&&(0,l.jsx)("span",{className:"text-xs uppercase tracking-[0.28em] text-white/60",children:"Buscando…"})]}),eK&&(0,l.jsxs)(s.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},className:"flex items-start gap-3 rounded-2xl border border-[#f97474]/40 bg-[#f97474]/15 px-4 py-3 text-xs text-[#ffd7d7]",children:[(0,l.jsx)(d.ywh,{className:"mt-[2px] h-4 w-4"}),(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)("p",{children:eK}),(0,l.jsx)("a",{href:"mailto:[email protected]",className:"text-[#ffd8ab] transition hover:text-[#ffe6c7]",children:Y.contactReservations})]})]}),0===e5.length&&!eF&&(0,l.jsx)("div",{className:"rounded-2xl border border-white/12 bg-black/35 p-5 text-sm text-white/70",children:Y.noRoomsForSearch}),(0,l.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:e5.map(e=>{var t,a;let i=!0===e.availabilityOk&&e.hasOption,r=eg===e.slug,n=e.hasOption?!1===e.availabilityOk?Y.unavailable:null:Y.unavailableOnline,c=e.totalPrice?null!=(t=e$(e.totalPrice,e.priceCurrency))?t:Y.priceUnreadable:e.priceError?e.priceError:Y.pricePendingConfirm,p=null!=(a=e7[e.slug])?a:0,b=e.availabilityNights?Math.min(...e.availabilityNights.map(e=>e.available)):null,h=i&&(null===b||p<b);return(0,l.jsxs)(s.P.div,{whileHover:i?{y:-3}:void 0,className:(0,m.A)("group relative flex h-full flex-col overflow-hidden rounded-[22px] border p-4 text-left transition",i?"border-white/18 bg-white/10 hover:border-[#f3b97a]/50 hover:bg-white/14":"border-white/10 bg-black/25 opacity-60",r?"ring-1 ring-[#f3b97a]/40":""),children:[(0,l.jsx)("div",{className:"relative h-36 w-full overflow-hidden rounded-2xl bg-black/40",children:e.room.image&&(0,l.jsx)(o.default,{src:e.room.image,alt:e.room.title,fill:!0,sizes:"(min-width: 640px) 320px, 100vw",className:"object-cover object-center"})}),(0,l.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.28em] text-white/45",children:e.room.group}),(0,l.jsx)("p",{className:"text-base font-semibold text-white",children:e.room.title}),(0,l.jsx)("p",{className:"text-[13px] text-white/65",children:e.room.subtitle}),(0,l.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-[11px] text-white/60",children:(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-white/15 bg-white/10 px-2.5 py-1",children:[(0,l.jsx)(d.nXn,{className:"h-3.5 w-3.5"}),e.room.occupancyLabel]})}),e.unavailableNights.length>0&&(0,l.jsxs)("p",{className:"text-[11px] text-[#ffd7d7]",children:[Y.unavailablePrefix," ",e.unavailableNights.map(e=>
1K(e,V)).join(", ")]})]}),n&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.22em] text-white/50",children:n})}),(0,l.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[p>0&&(0,l.jsxs)("span",{className:"inline-flex items-center justify-center rounded-full border border-white/35 px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.28em] text-white/85",children:[p," agregada",1===p?"":"s"]}),(0,l.jsx)("button",{type:"button",disabled:!h,onClick:()=>{if(!h)return;let t=ts(e);t&&(0,u.Ml)({currency:e.priceCurrency,source:"zak_widget_room_selection",items:[t]}),ev(e.slug),eY(t=>[...t,e.slug]),1===e3&&0===eJ.length&&td(e)},className:(0,m.A)("inline-flex items-center justify-center rounded-full border px-4 py-2 text-[11px] font-semibold uppercase tracking-[0.28em] transition",h?"border-[#f3b97a]/60 text-white hover:border-[#f3b97a] hover:text-white":"cursor-not-allowed border-white/15 text-white/30"),children:h?Y.add:Y.full})]}),(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm font-semibold text-white/85",children:[(0,l.jsx)(s.P.span,{animate:{opacity:eQ?.55:1},transition:{duration:.25,ease:"easeOut"},children:c}),eQ&&(0,l.jsx)(s.P.span,{className:"h-3 w-3 rounded-full border-2 border-white/30 border-t-white",animate:{rotate:360},transition:{duration:.9,ease:"linear",repeat:1/0},"aria-hidden":!0})]})]})]},e.slug)})})]}),(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)(b,{calendarCollapsed:eU,onToggleCollapsed:tu,onPrevMonth:tm,onNextMonth:tp,showMonthArrows:!1,showEditButton:!0,formatLongDate:L,dateRange:eC,nightsCount:e1,monthDirection:ej,calendarMonths:e0,onSelectDate:tb,today:ey,withinRange:B,isSameDay:T}),(to||tn)&&(0,l.jsxs)("div",{className:"rounded-2xl border border-white/12 bg-black/25 p-4",children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.rate}),(0,l.jsxs)("div",{className:"relative mt-3 flex items-center gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{to&&(eu("flexible"),en(to),ep(!0))},className:(0,m.A)("relative inline-flex items-center rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] transition","flexible"===ed?"border-[#f3b97a]/70 text-[#fde5c7]":"border-white/15 text-white/60 hover:border-white/30"),children:["flexible"===ed&&(0,l.jsx)(s.P.span,{layoutId:"rate-toggle-rooms",className:"absolute inset-0 rounded-full bg-[#f3b97a]/15",transition:{type:"spring",stiffness:320,damping:28}}),(0,l.jsx)("span",{className:"relative z-10",children:Y.flexible})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{tn&&(eu("standard"),en(tn),ep(!0))},className:(0,m.A)("relative inline-flex items-center rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] transition","standard"===ed?"border-[#f3b97a]/70 text-[#fde5c7]":"border-white/15 text-white/60 hover:border-white/30"),children:["standard"===ed&&(0,l.jsx)(s.P.span,{layoutId:"rate-toggle-rooms",className:"absolute inset-0 rounded-full bg-[#f3b97a]/15",transition:{type:"spring",stiffness:320,damping:28}}),(0,l.jsx)("span",{className:"relative z-10",children:Y.nonFlexible})]})]}),(0,l.jsx)(c.N,{initial:!1,children:"flexible"===ed?(0,l.jsx)(s.P.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2,ease:"easeOut"},className:"mt-3 text-xs text-white/65",children:Y.flexibleNote},"flex-note-rooms"):null})]}),(0,l.jsxs)("div",{className:"rounded-2xl border border-white/12 bg-black/25 p-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsx)("p",{className:"text-[11px] uppercase tracking-[0.32em] text-white/45",children:Y.selectedRooms}),(0,l.jsx)("span",{className:"text-[11px] text-white/60",children:Y.totalCount(eJ.length)})]}),0===e8.length?(0,l.jsx)("p",{className:"mt-3 text-sm text-white/60",children:Y.addRoomsToContinue}):(0,l.jsx)("ul",{className:"mt-3 space-y-3",children:e8.map(e=>{var t,a,i,r,o;return(0,l.jsxs)("li",{className:"rounded-2xl border border-white/12 bg-white/[0.05] p-3",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"text-sm font-semibold text-white",children:[e.count,"\xd7 ",null!=(i=null==(t=e.room)?void 0:t.t
1itle)?i:e.slug]}),e.unavailableNights.length>0&&(0,l.jsxs)("p",{className:"mt-1 text-[11px] text-[#ffd7d7]",children:[Y.noStockPrefix," ",e.unavailableNights.map(e=>K(e,V)).join(", ")]})]}),(0,l.jsx)("button",{type:"button",onClick:()=>{let t=ts(e,1);t&&(0,u.Ui)({currency:e.priceCurrency,source:"zak_widget_room_selection",items:[t]}),eY(t=>{let a=t.lastIndexOf(e.slug);if(-1===a)return t;let i=[...t];return i.splice(a,1),i})},className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-white/20 text-xs text-white/70 transition hover:border-white/40 hover:text-white","aria-label":Y.removeRoomAria(null!=(r=null==(a=e.room)?void 0:a.title)?r:e.slug),children:"−"})]}),(0,l.jsxs)("div",{className:"mt-2 flex items-center justify-between text-[12px] text-white/65",children:[(0,l.jsx)("span",{children:e.availabilityOkForCount?Y.available:Y.unavailable}),(0,l.jsx)("span",{children:null!==e.totalPrice?null!=(o=e$(e.totalPrice,e.priceCurrency))?o:Y.priceUnreadable:Y.pendingRate})]})]},e.slug)})}),(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2 text-xs text-white/70",children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] uppercase tracking-[0.2em] text-white/70",children:[(0,l.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-3.5 w-3.5 text-white/70",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,l.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,l.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,l.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),Y.nights(e1)]}),(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] uppercase tracking-[0.2em] text-white/70",children:[(0,l.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-3.5 w-3.5 text-white/70",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("circle",{cx:"12",cy:"8",r:"4"}),(0,l.jsx)("path",{d:"M4 20c0-4.418 3.582-8 8-8s8 3.582 8 8"})]}),e2]})]}),null!==tt&&(0,l.jsxs)("p",{className:"mt-3 inline-flex items-center gap-2 text-sm font-semibold text-white/85",children:[(0,l.jsxs)(s.P.span,{animate:{opacity:eQ?.55:1},transition:{duration:.25,ease:"easeOut"},children:[Y.total,": ",null!=(p=e$(tt,ta))?p:"—"]}),eQ&&(0,l.jsx)(s.P.span,{className:"h-3 w-3 rounded-full border-2 border-white/30 border-t-white",animate:{rotate:360},transition:{duration:.9,ease:"linear",repeat:1/0},"aria-hidden":!0})]}),e9&&(0,l.jsx)("p",{className:"mt-3 text-xs font-semibold text-[#f7c7a6]",children:Y.tooManyGuests}),(0,l.jsx)("button",{type:"button",onClick:tx,className:"mt-4 inline-flex items-center gap-2 rounded-full border border-white/25 bg-transparent px-4 py-2 text-xs text-white/70 transition hover:border-white/40 hover:text-white",children:Y.changeDatesOrGuests})]}),(0,l.jsx)("button",{type:"button",disabled:!te,onClick:tf,className:(0,m.A)("inline-flex w-full items-center justify-center rounded-full border px-6 py-3 text-sm font-semibold uppercase tracking-[0.24em] transition",te?"border-[#f3b97a]/70 text-white hover:border-[#f3b97a] hover:text-white":"cursor-not-allowed border-white/15 text-white/40"),children:Y.continueBooking}),tl&&(0,l.jsxs)("div",{className:(0,m.A)("flex flex-wrap items-center gap-3 rounded-2xl border px-4 py-3 text-xs leading-relaxed","warning"==tl.tone?"border-[#f97474]/45 bg-[#f97474]/15 text-[#ffd7d7]":"accent"==tl.tone?"border-[#f3b97a]/45 bg-[#f3b97a]/12 text-[#fde5c7]":"border-white/12 bg-black/25 text-white/70"),children:[(0,l.jsx)("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.28em] text-white/80",children:tl.badge}),(0,l.jsx)("span",{className:"flex-1 min-w-[200px]",children:tl.description})]})]})]})]})]})]})}}}]);

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.