PageSourceSearch

https://www.clubmed.cl/assets/_next/static/chunks/4422-3d31cb921ad8d0a1.js

js clubmed.cl collected 2026-10-08 05:51:12 UTC 16,468 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4422],{63103:()=>{},75192:(e,t,l)=>{"use strict";l.d(t,{t:()=>L});var a=l(54568),s=l(50144),r=l(48380),n=l(44062),i=l(5697),o=l(6537),d=l(10584),c=l(29181),u=l(32403),m=l(41905),b=l(66993),x=l(7620),f=l(88480),h=l(88684),p=l(80827),g=l.n(p),y=l(62621),v=l(47902);let j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(t)return{thRoot:"",thDay:""};if(l)return{thDay:"rounded-8 bg-sand text-middleGrey diagonal-line"};switch(e){case"green":return{thDay:"bg-green rounded-pill text-white"};case"orange":return{thDay:"bg-orange rounded-8 text-white"};case"outline":return{thDay:"bg-white rounded-8 border border-black"};default:return{thDay:""}}},M=e=>{let{date:t,formatDurationsLabel:l,selected:r,disabled:n}=e,{selected:i}=(0,s.w)();if(!l||n||!i||"object"!=typeof i||!("from"in i)||!i.from&&!i.to||i.to&&i.from&&!(0,y.n)(i.to,t))return null;let{from:o,to:c}=i;if((0,d.Y)(t,o??c))return null;let u=(0,v.m)(c&&(0,y.n)(c,t)?c:t,o??c);if(u>0){let e=l(u);return(0,a.jsxs)("div",{className:g()("pointer-events-none absolute bottom-full left-1/2 isolate mb-10 -translate-x-1/2",{"hidden group-hover:block":!r}),children:[(0,a.jsx)("div",{className:"rounded-8 text-b4 relative flex items-center justify-center border bg-white p-8 text-center font-sans whitespace-nowrap text-black",children:e}),(0,a.jsx)("div",{className:"absolute top-full left-1/2 z-1 size-10 -translate-x-1/2 -translate-y-1/2 rotate-45 border-r border-b bg-white"})]})}return null},k=e=>{let{children:t,dateTime:l,disabled:s,label:r,price:n,selected:i,status:o}=e,{thDay:d}=j(o,i,s);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("time",{className:g()("text-b3 mx-auto flex size-27 items-center justify-center leading-none font-semibold",d),dateTime:l,children:t}),null!=n&&!i&&(0,a.jsx)("span",{className:"text-b6 mt-4 flex items-center justify-center font-semibold",style:{scale:`calc(45 / max(${5.5*n.length}, 45))`},children:n}),r&&(0,a.jsxs)("span",{className:"sr-only",children:["\xa0",r]})]})},D=e=>{let{formatDurationsLabel:t,label:l,price:s,status:r,day:i,modifiers:o,className:d,...c}=e,u=o?.selected??!1,m=o?.disabled??!1,b=(0,n.GP)(i.date,"yyyy-MM-dd");return(0,a.jsxs)("button",{className:d,...c,children:[(0,a.jsx)(k,{dateTime:b,disabled:m,label:l,price:s,selected:u,status:r,children:i.date.getDate()}),(0,a.jsx)(M,{date:i.date,formatDurationsLabel:t,disabled:m,selected:u})]})};l(63103);let N=e=>`month-heading-${(0,n.GP)(e,"yyyy-MM")}`,w=e=>{let{"aria-label":t,children:l,...s}=e;return(0,a.jsx)("table",{...s,"aria-labelledby":t||void 0,children:l})},C=e=>{let{calendarMonth:t,displayIndex:l,labels:r,minMonth:i,maxMonth:o}=e,{date:b}=t,{months:f,goToMonth:p,nextMonth:g,previousMonth:y,dayPickerProps:v}=(0,s.w)(),j=f.length,M=v.locale,k=0===l,D=l===j-1,w=j>1&&(k||!D),C=j>1&&(D||!k),S=!y||i&&(0,d.Y)(y,i)&&!(0,c.t)(y,i),L=!g||o&&(0,u.d)(g,o)&&!(0,c.t)(g,o),_=(0,x.useCallback)(e=>{requestAnimationFrame(()=>{document.getElementById(N(e))?.focus()})},[]),P=(0,x.useCallback)(()=>{y&&(p(y),_(y))},[y,p,_]),A=(0,x.useCallback)(()=>{g&&(p(g),_(g))},[g,p,_]),E=(0,x.useMemo)(()=>{let e=k&&j>1?(0,m.P)(b,-1):y,t=e?(0,n.GP)(e,"MMMM yyy"):"",l=b?(0,n.GP)(b,"MMMM yyy"):"";return r.seePreviousMonth.replace("{previousMonth}",t).replace("{currentMonth}",l)},[b,k,r.seePreviousMonth,j,y]),G=(0,x.useMemo)(()=>{let e=b?(0,n.GP)(b,"MMMM yyy"):"",t=D&&j>1?(0,m.P)(b,1):g,l=t?(0,n.GP)(t,"MMMM yyy"):"";return r.seeNextMonth.replace("{currentMonth}",e).replace("{nextMonth}",l)},[b,r,g,D,j]);return(0,a.jsxs)("div",{className:"text-b2 relative isolate flex h-48 items-center justify-center px-56 font-semibold capitalize",children:[!C&&(0,a.jsx)(h.$,{"aria-label":E,className:"absolute inset-s-0 hidden outline-none focus-visible:ring-4 focus-visible:ring-black focus-visible:ring-offset-2 md:inline-block",color:"black",icon:"ArrowDefaultLeft",disabled:S,onClick:P,variant:"circle"}),(0,a.jsx)("p",{role:"heading","aria-level":3,tabIndex:-1,id:N(b),children:(0,n.GP)(b,"MMM yyy",{locale:M})}),!w&&(0,a.jsx)(h.$,{"aria-label":G,className:"absolute end-0 hidden outline-none focus-visible:ring-4 focus-visible:ring-black focus-visible:ring-offset-2 md:inline-block",color:"black",icon:"ArrowDefaultRight",disabled:L,onClick:A,variant:"circle"})]})},S=(e,t)=>(0,n.GP)(e,"cccccc",t),L=function(e){let{dates:t=[],defaultMonth:l,disabledDays:s,formatDurationsLabel:n,fromMonth:h,labels:p,locale:g,maxNumberOfMonths:y=12,onSelect:v,selected:j,statusLabels:M}=e,k=(0,f.Y)("medium"),[L,_]=(0,x.useState)(),P=new Date,[A,E]=(0,x.useState)(()=>k?j?.from??h??P:h??P),[G]=(0,x.useState)(()=>j?.from);(0,x.useLayoutEffect)(()=>{!k&&G&&document.querySelector(`[data-day="${(0,b.x)(G,{representation:"date"})}"]`)?.scrollIntoView?.({behavior:"smooth",block:"center"})},[k,G]);let F=(0,x.useMemo)(()=>{let e={};if(!L||!k)return e;let t=e=>{let t=j?.from??j?.to;return!!t&&(0,u.d)(e,t)&&(0,d.Y)(e,L)};return(j?.from&&!j.to||j?.to&&!j.from)&&(e.hover_range_middle=e=>t(e)),j?.to&&!j?.from&&(e.hover_range_end=e=>!t(e)&&(0,u.d)(e,j.to)),j?.from&&!j?.to&&(e.hover_range_end=e=>!t(e)&&(0,u.d)(e,j.from)),e},[L,k,j?.from,j?.to]),T=(0,x.useMemo)(()=>h??new Date,[h]),I=(0,x.useMemo)(()=>{let e=new Date(T);return e.setMonth(e.getMonth()+y),e},[T,y]),$=(0,x.useCallback)(e=>(0,a.jsx)(C,{...e,labels:p,minMonth:T,maxMonth:I}),[p,T,I]),z=(0,x.useMemo)(()=>
1({DayButton:e=>{let{"aria-label":l,...s}=e,r=(0,b.x)(s.day.date,{representation:"date"}),i=t.find(e=>{let{id:t}=e;return t===r}),o=i?.status&&"default"!==i.status?M?.[i.status]:void 0;return(0,a.jsx)(D,{"data-name":"Datepicker-Day",formatDurationsLabel:n,label:o,...s,...i})},MonthCaption:$,MonthGrid:w}),[t,n,$,M]),R=(0,x.useCallback)(e=>{k&&L?.getTime()!==e.getTime()&&_(e)},[k,L]),B=(0,x.useCallback)(()=>{_(void 0)},[]),Y=(0,x.useCallback)((e,t,l,a)=>{if(v){let s;if(k&&(s=(0,i.P)(t),(0,o.p)(t)>s-7)&&(0,c.t)(t,(0,m.P)(A,1))&&E(t),e?.from&&!j?.from&&!j?.to)return void v({from:t,to:void 0},t,l,a);v(e,t,l,a)}},[k,A,v,j?.from,j?.to]),q=(0,x.useMemo)(()=>{if(k)return l??T},[k,l,T]),O=(0,x.useMemo)(()=>({labelGrid:e=>N(e)}),[]);return(0,a.jsx)(r.h,{components:z,defaultMonth:q,disabled:s,formatters:{formatWeekdayName:S},labels:O,locale:g,mode:"range",month:A,onMonthChange:E,hideNavigation:!0,numberOfMonths:k?2:y,onSelect:Y,selected:j?.from||j?.to?j:void 0,modifiers:F,modifiersClassNames:{hover_range_middle:"rdp-range_middle",hover_range_end:"rdp-range_end"},onDayMouseEnter:R,onDayMouseLeave:B,classNames:{day:"group rdp-day"}})}},81656:(e,t,l)=>{"use strict";l.d(t,{q:()=>d});var a=l(54568),s=l(80827),r=l.n(s),n=l(68871);let i={bgColor:"border-grey hocus:border-black bg-white",bgColorActive:"border-saffron bg-saffron",iconColor:"black",iconColorActive:"black",textColor:"text-black",textColorActive:"text-black"},o={bgColor:"border-grey hocus:border-black",bgColorActive:"border-black bg-black",iconColor:"black",iconColorActive:"white",textColor:"text-black",textColorActive:"text-white"};function d(e){let{checked:t,className:l,disabled:s,icon:d,label:c,onClick:u,placeholder:m,theme:b="saffron",value:x,ref:f,...h}=e,{bgColor:p,bgColorActive:g,iconColor:y,iconColorActive:v,textColor:j,textColorActive:M}="black"===b?o:i;return(0,a.jsxs)("button",{"aria-pressed":t,...h,className:r()("rounded-pill text-b3 inline-flex items-center justify-center gap-8 border px-20 py-12 font-semibold transition-colors",{[p]:!t,[g]:t,[j]:!t,[M]:t},l),disabled:s,onClick:e=>{!s&&u&&u(e)},ref:f,type:"button",children:[m&&(0,a.jsx)("span",{className:"sr-only",children:`${m} ${c}`}),(0,a.jsx)("span",{"aria-hidden":m?"true":"false",children:c}),t&&(0,a.jsx)(n.Icon,{color:v,name:"CheckDefault",width:"24px"}),d&&(0,a.jsx)(n.Icon,{color:t?v:y,name:d,width:"24px"})]})}},84422:(e,t,l)=>{"use strict";l.r(t),l.d(t,{StepDates:()=>S});var a=l(54568),s=l(62621),r=l(10584),n=l(7620),i=l(50424),o=l(80827),d=l.n(o),c=l(68871),u=l(75192);let m=e=>{let{className:t,labels:l}=e;return l.disclaimer?(0,a.jsxs)("p",{className:d()("text-b3 flex items-start justify-center gap-20 text-start text-black md:items-center md:gap-8",t),children:[(0,a.jsx)(c.Icon,{className:"bg-sienna size-32 rounded-full p-4",color:"white",name:"New",width:"2rem"}),l.disclaimer]}):null},b=e=>{let{className:t,label:l}=e;return l?(0,a.jsxs)("p",{className:d()("text-b3 text-orange flex items-center gap-8",t),children:[(0,a.jsx)(c.Icon,{color:"orange",name:"Error",width:"24px"}),l]}):null},x=e=>{let{customClass:t,label:l}=e;return(0,a.jsxs)("p",{className:"flex items-center gap-4",role:"listitem",children:[(0,a.jsx)("span",{className:d()("size-27",t)}),l]})},f=e=>{let{className:t,showPriceLegend:l,labels:s,children:r,...n}=e,i=l&&s&&"priceLegend"in s?{green:s.bestPrice,orange:s.lastAvailabilities,outline:s.availableSeason}:void 0,o=l&&s&&"priceLegend"in s&&(0,a.jsxs)("div",{"aria-labelledby":"price-legend-title",className:"text-b4 flex flex-wrap items-center justify-center gap-x-20 gap-y-12",role:"region",children:[(0,a.jsx)("p",{className:"w-full text-center font-semibold md:w-auto",id:"price-legend-title",children:s.priceLegend}),(0,a.jsxs)("div",{"aria-label":s.priceLegend,className:"flex items-center justify-center gap-12",role:"list",children:[(0,a.jsx)(x,{customClass:"bg-green rounded-pill",label:s.bestPrice}),(0,a.jsx)(x,{customClass:"bg-orange rounded-8",label:s.lastAvailabilities}),(0,a.jsx)(x,{customClass:"bg-sand rounded-8 text-middleGrey diagonal-line",label:s.notAvailable}),s.availableSeason&&(0,a.jsx)(x,{customClass:"border border-black rounded-8",label:s.availableSeason})]})]});return(0,a.jsxs)("div",{className:d()("flex flex-col gap-y-12 md:gap-y-20",t),children:[o,(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(u.t,{...n,labels:{seeNextMonth:s.seeNextMonth,seePreviousMonth:s.seePreviousMonth},statusLabels:i}),r]})]})};var h=l(37374),p=l(88437),g=l(45464),y=l(51203),v=l(47902),j=l(88684),M=l(81656),k=l(44062);let D=e=>(0,k.GP)(e,"dd/MM/yyyy");var N=l(69505);let w=e=>{let{className:t,children:l,hasArrow:s=!1,onClose:r,...n}=e;return(0,a.jsxs)("div",{...n,className:d()("rounded-16 isolate max-w-full bg-white p-12",t),children:[!!r&&(0,a.jsx)("button",{className:"float-end ms-20 mb-20",onClick:r,type:"button",children:(0,a.jsx)(c.Icon,{name:"CrossDefault",color:"black",width:"24px"})}),l,s&&(0,a.jsx)("svg",{className:"absolute inset-s-70 top-full md:inset-s-82",height:"9px",viewBox:"0 0 18 9",width:"18px",children:(0,a.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,a.jsx)("polygon",{className:"fill-white",points:"0 0 17.6959 0 8.847 7.587"}),(0,a.jsx)("path",{className:"fill-grey",d:"M17.6959,0 L17.6959,1 C17.2252202,1 16.7716052,1.1659236 16.4133244,1.46540964 L16.2835907,1.58391444 L8.84789751,9.00018538 L1.41230017,1.58390537 C1.07908391,1.25154242 0.640742664,1.04868961 0.175552129,1.00771445 L0,1 L0,0 C0.728092149,0 1.42896047,0.264686588 1.97385075,0.740826935 L2.11849324,0.875886054 L8.847,7.587 L15.5774002,0.875892627 C16.0928728,0.361740057 16.7760228,0.0542074219 17.4981011,0.00652248658 L17.6959,0 Z"})]})})]})},C=e=>
1{let{name:t,labels:l,reinsurance:s,showFlexible:r,showLegalInfo:i,onValidate:o,onReset:d}=e,c=(0,h.T)(),u=(0,h.s)(),[m,b]=(0,n.useState)(!1),x=(0,n.useMemo)(()=>null===c.startDate&&null===c.endDate&&null===c.flexible&&null===c.selectedEndDate&&null===c.selectedStartDate&&null===c.selectedFlexible,[c.startDate,c.endDate,c.flexible,c.selectedEndDate,c.selectedStartDate,c.selectedFlexible]),f=(0,n.useCallback)(()=>{b(e=>!e)},[]),p=(0,n.useCallback)(()=>{(0,n.startTransition)(()=>{u({type:"reset"}),d?.()})},[u,d]),g=(0,n.useCallback)(()=>{(0,n.startTransition)(()=>{u({type:"save"}),o?.()})},[u,o]),y=(0,n.useCallback)(e=>()=>{(0,n.startTransition)(()=>{u({type:"update",payload:{selectedFlexible:null===c.selectedFlexible?e:null}})})},[u,c.selectedFlexible]),k=(0,n.useMemo)(()=>{let e=c.selectedStartDate??c.startDate,l=c.selectedStartDate?c.selectedEndDate:c.endDate,a=e&&D(e),s=l&&e&&(0,v.m)(l,e),r=l&&D(l);return(0,N.om)(t,{detail_click:"validate_date",resort_departure_date:a,resort_night_number:s,resort_checkout_date:r})},[t,c.selectedStartDate,c.selectedEndDate,c.startDate,c.endDate]);return(0,a.jsxs)("div",{className:"flex w-full flex-col md:flex-row md:items-center md:justify-between",children:[r&&!!l.iAmFlexible&&(0,a.jsxs)("div",{className:"md:gap-x20 flex w-full items-center justify-center gap-x-8 p-8 md:justify-start md:p-0",children:[(0,a.jsx)("p",{"aria-hidden":"true",className:"text-b3 font-semibold text-black",children:l.iAmFlexible}),!!l.threeDaysOptionLabel&&(0,a.jsx)(M.q,{checked:null!==c.selectedFlexible,"data-tracking":(0,N.om)(t,{detail_click:"flexible"}),label:l.threeDaysOptionLabel,onClick:y(3),placeholder:l.iAmFlexible,theme:"black"},"flexible")]}),(0,a.jsxs)("div",{className:"border-lightGrey flex w-full items-center justify-between gap-x-8 border-t p-8 md:border-t-0 md:p-0",children:[i&&(0,a.jsx)("div",{className:"w-auto",children:s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.$,{"aria-expanded":m,color:"black",icon:"Information",onClick:f,theme:"outline",variant:"circle",children:(0,a.jsx)("span",{className:"sr-only",children:s.button})}),m&&(0,a.jsxs)(w,{className:"border-grey absolute inset-x-0 bottom-full mx-8 border text-center md:mb-8",hasArrow:!0,children:[(0,a.jsx)("p",{className:"text-b3 mb-8 font-semibold",role:"heading","aria-level":3,children:s.title}),(0,a.jsx)("p",{className:"text-b5 text-middleGrey",children:s.description})]})]})}),(0,a.jsxs)("div",{className:`ms-auto flex w-full items-center gap-x-40 md:gap-x-20 ${i?"justify-end":"justify-start md:justify-end"} md:ms-0`,children:[(0,a.jsxs)("button",{className:"text-b3 font-bold text-black underline",disabled:x,onClick:p,type:"button",children:[(0,a.jsx)("span",{className:"sr-only",children:l.resetDates}),(0,a.jsx)("span",{"aria-hidden":"true",children:l.reset})]},"reset"),(0,a.jsx)(j.$,{className:"flex-1 md:flex-none","data-tracking":k,icon:"ArrowTailRight",onClick:g,size:"large",children:l.validate},"validate")]})]})]})},S=e=>{let{name:t="price_remote",className:l,labels:o,dates:d,disclaimerDateNotice:c,reinsurance:u,disabledDays:x,firstAvailableDate:v,maxNumberOfMonths:j,onReset:M,onSiblingOpenClick:k,onValidate:D,showLegalInfo:N,showFlexible:S,showPriceLegend:L,siblingOpenDays:_=[]}=e,P=(0,h.T)(),A=(0,h.s)(),E=(0,p.useDateFnsLocale)(),[G,F]=(0,n.useState)(!0);(0,n.useEffect)(()=>{(0,y.BB)({priceRemote:{nightSelected:o.nightSelected}})},[o.nightSelected]);let T=(0,n.useMemo)(()=>P.selectedStartDate?{from:P.selectedStartDate,to:P.selectedEndDate??void 0}:{from:P.startDate??void 0,to:P.endDate??void 0},[P.selectedStartDate,P.selectedEndDate,P.startDate,P.endDate]),I=(0,n.useMemo)(()=>e=>{(0,n.startTransition)(()=>{if(!e?.from||e.to&&(0,s.n)(e.from,e.to))return void A({type:"flushDates"});let t=(0,g.nQ)(e.from);if(_.includes(t)){A({type:"flushDates"}),k?.();return}T.from&&(0,r.Y)(e.from,T.from)?A({type:"update",payload:{selectedStartDate:e.from,selectedEndDate:null}}):e.to&&T.from&&T.to?A({type:"update",payload:{selectedStartDate:e.to,selectedEndDate:null}}):A({type:"update",payload:{selectedEndDate:e.to??null,selectedStartDate:e.from}})})},[T,A,_,k]),$=(0,n.useCallback)(()=>{F(!1)},[]),z=(0,n.useMemo)(()=>({...L&&"priceLegend"in o&&{bestPrice:o.bestPrice,lastAvailabilities:o.lastAvailabilities,notAvailable:o.notAvailable,priceLegend:o.priceLegend},..._.length>0&&{availableSeason:o.availableSeason},seeNextMonth:o.seeNextMonth,seePreviousMonth:o.seePreviousMonth}),[L,o,_.length]),R=P.startDate??void 0,B=(0,n.useCallback)(e=>(0,y.t)("priceRemote.nightSelected",{smart_count:e}),[]);return(0,a.jsx)(i.I,{aside:!!o.disclaimer&&G&&(0,a.jsx)(w,{className:"absolute bottom-full z-1 mx-12 my-8 p-20 md:hidden",onClose:$,"data-name":"StepDates-Tooltip",children:(0,a.jsx)(m,{labels:o})}),className:l,footer:(0,a.jsx)(C,{name:t,labels:o,reinsurance:u,showFlexible:S,showLegalInfo:N,onReset:M,onValidate:D}),children:(0,a.jsxs)(f,{className:"-mx-20 text-black md:mx-0",dates:d,defaultMonth:R,disabledDays:x,fromMonth:v,formatDurationsLabel:B,labels:z,locale:E,maxNumberOfMonths:j,showPriceLegend:L,selected:T,onSelect:I,children:[(0,a.jsx)(m,{className:"-order-1 hidden px-12 md:mb-12 md:flex",labels:o}),c&&(0,a.jsx)(b,{className:"-order-1 mx-20 mb-16 justify-center text-center md:mx-0 md:px-12",label:c})]},"criteriaWhen")})}}}]);

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.