1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7010],{79303:function(e,l,s){Promise.resolve().then(s.bind(s,60611)),Promise.resolve().then(s.bind(s,53752))},31444:function(e,l,s){"use strict";s.d(l,{R:function(){return f}});var n=s(57437),t=s(2265),r=s(27648),i=s(92451),a=s(10407),o=s(16010),d=s(57973),c=s(19296),m=s(81851);let u={1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5"},x={2:"lg:basis-[calc((100%-1.25rem)/2)]",3:"lg:basis-[calc((100%-2.5rem)/3)]",4:"lg:basis-[calc((100%-3.75rem)/4)]",5:"lg:basis-[calc((100%-5rem)/5)]"},h=t.createContext(3),b=e=>{let{onClick:l,label:s,disabled:t,children:r}=e;return(0,n.jsx)("button",{type:"button","aria-label":s,onClick:l,disabled:t,className:(0,o.cn)("inline-flex h-9 w-9 items-center justify-center rounded-full border border-border bg-background","text-foreground transition hover:bg-muted","disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-background"),children:r})},f=Object.assign(e=>{let{title:l,headerLeft:s,viewAllHref:x,viewAllLabel:f,desktopLayout:g="carousel",desktopColumns:p=3,desktopPageSize:v,navStyle:j="header",ariaLabel:N,isSummerMode:y,children:k,className:w}=e,{t:T}=(0,m.ZF)("common"),C=null!=f?f:T("common.viewAll"),Z=t.useRef(null),P=t.Children.toArray(k),E="grid"===g&&"number"==typeof v&&v>0,I=E?v:P.length,z=E?Math.max(1,Math.ceil(P.length/I)):1,[_,F]=t.useState(0),[M,W]=t.useState(!0);t.useEffect(()=>{let e=Z.current;if(!e)return;let l=()=>W(e.scrollLeft<8);return e.addEventListener("scroll",l,{passive:!0}),()=>e.removeEventListener("scroll",l)},[]);let A=t.useCallback(e=>{let l=Z.current;if(!l)return;let s=Math.max(.4*l.clientWidth,280);l.scrollBy({left:e*s,behavior:"smooth"})},[]),L=(0,o.cn)("hidden text-sm font-semibold hover:underline sm:inline",y?"text-primary-summer":"text-primary"),O="carousel"===g,R=O&&"header"===j,X=O&&"overlay"===j,G=!!(l||s||x||R),K=(0,o.cn)("-mx-4 flex snap-x snap-mandatory gap-5 overflow-x-auto scroll-smooth","pl-4 pr-4 pb-2 [scroll-padding-left:1rem]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),S="md:mx-0 md:grid ".concat(u[p]," md:gap-5 md:overflow-visible md:px-0 md:pb-0");return(0,n.jsx)(h.Provider,{value:p,children:(0,n.jsxs)("section",{className:w,"aria-label":N,children:[G&&(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-4",children:[s?(0,n.jsx)("div",{className:"min-w-0 flex-1",children:s}):l?(0,n.jsx)(c.X,{level:2,className:y?"text-primary-summer":void 0,children:l}):(0,n.jsx)("span",{}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[x&&((0,d.Z)(x)?(0,n.jsx)("a",{href:x,className:L,children:C}):(0,n.jsx)(r.default,{href:x,className:L,children:C})),R&&(0,n.jsxs)("div",{className:"hidden items-center gap-1.5 md:flex",children:[(0,n.jsx)(b,{label:T("common.previous"),onClick:()=>A(-1),children:(0,n.jsx)(i.Z,{size:18,className:"fill-none"})}),(0,n.jsx)(b,{label:T("resort.reviews.next"),onClick:()=>A(1),children:(0,n.jsx)(a.Z,{size:18,className:"fill-none"})})]})]})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("button",{type:"button","aria-label":T("resort.reviews.next"),tabIndex:-1,onClick:()=>A(1),className:(0,o.cn)("absolute right-2 top-1/2 z-10 -translate-y-1/2","inline-flex h-7 w-7 items-center justify-center rounded-full","bg-black/45 text-white shadow-sm backdrop-blur-sm","transition-opacity duration-300 md:hidden",M?"opacity-100":"pointer-events-none opacity-0"),children:(0,n.jsx)(a.Z,{size:14,className:"fill-none"})}),X&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button","aria-label":T("common.previous"),onClick:()=>A(-1),className:(0,o.cn)("absolute left-3 top-1/2 z-10 hidden -translate-y-1/2 md:inline-flex","h-10 w-10 items-center justify-center rounded-full","bg-black/45 text-white shadow-md backdrop-blur-sm transition","hover:bg-black/60"),children:(0,n.jsx)(i.Z,{size:20,className:"fill-none"})}),(0,n.jsx)("button",{type:"button","aria-label":T("resort.reviews.next"),onClick:()=>A(1),className:(0,o.cn)("absolute right-3 top-1/2 z-10 hidden -translate-y-1/2 md:inline-flex","h-10 w-10 items-center justify-center rounded-full","bg-black/45 text-white shadow-md backdrop-blur-sm transition","hover:bg-black/60"),
1children:(0,n.jsx)(a.Z,{size:20,className:"fill-none"})})]}),(0,n.jsx)("div",{ref:Z,"data-layout":g,className:(0,o.cn)(K,"grid"===g&&S),children:E?P.map((e,l)=>{var s;let t=l>=_*I&&l<(_+1)*I;return(0,n.jsx)("div",{className:(0,o.cn)("contents",!t&&"md:hidden"),children:e},null!==(s=e.key)&&void 0!==s?s:l)}):k})]}),E&&z>1&&(0,n.jsxs)("div",{className:"mt-6 hidden items-center justify-center gap-3 md:flex",children:[(0,n.jsx)(b,{label:T("common.previousPage"),onClick:()=>F(e=>Math.max(0,e-1)),disabled:0===_,children:(0,n.jsx)(i.Z,{size:18,className:"fill-none"})}),(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-muted-foreground",children:T("common.pageOfPages",{page:_+1,total:z})}),(0,n.jsx)(b,{label:T("common.nextPage"),onClick:()=>F(e=>Math.min(z-1,e+1)),disabled:_>=z-1,children:(0,n.jsx)(a.Z,{size:18,className:"fill-none"})})]})]})})},{Item:e=>{var l;let{children:s,className:r}=e,i=null!==(l=x[t.useContext(h)])&&void 0!==l?l:x[3];return(0,n.jsx)("div",{className:(0,o.cn)("shrink-0 snap-start basis-[90%] sm:basis-[48%]",i,r),children:s})}})},92631:function(e,l,s){"use strict";s.d(l,{y:function(){return m}});var n=s(57437);s(2265);var t=s(27648),r=s(19296),i=s(16010),a=s(95417),o=s(81851);let d=e=>{let{regions:l,linkFor:s}=e;return(0,n.jsx)("ul",{className:(0,i.cn)("grid gap-x-6 gap-y-2.5","grid-cols-2 sm:grid-cols-3 md:grid-cols-4"),children:l.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{href:s(e),className:"text-sm font-semibold text-primary hover:underline",children:e.title})},e.uuid))})},c=e=>{let{section:l,linkFor:s}=e,{t:i}=(0,o.ZF)("common"),{group:c,regions:m}=l,u="font-heading text-lg text-secondary md:text-xl";return(0,n.jsxs)(a.q,{children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-wrap items-baseline justify-between gap-3 border-b border-border pb-3",children:[c.slug?(0,n.jsx)(t.default,{href:s(c),className:"hover:underline",children:(0,n.jsx)(r.X,{level:2,className:u,children:c.title})}):(0,n.jsx)(r.X,{level:2,className:u,children:c.title}),(0,n.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"".concat(m.length," ").concat(i(1===m.length?"common.regionWord":"common.regionsWord"))})]}),(0,n.jsx)(d,{regions:m,linkFor:s})]})},m=e=>{let{sections:l,linkFor:s}=e,t=l.filter(e=>e.regions.length>0);return 0===t.length?null:(0,n.jsx)("div",{className:"space-y-5",children:t.map(e=>(0,n.jsx)(c,{section:e,linkFor:s},e.group.uuid))})}},60611:function(e,l,s){"use strict";s.r(l),s.d(l,{TEMPLATE_ID:function(){return k},TEMPLATE_NAME:function(){return w},default:function(){return T}});var n=s(57437);s(2265);var t=s(16788),r=s(87489),i=s(81851),a=s(21025),o=s(20104),d=s(80712),c=s(27110),m=s(57183),u=s(82258),x=s(60746),h=s(86487),b=s(10466),f=s(19588),g=s(11144),p=s(4233),v=s(19296),j=s(59191),N=s(92631);let y=![b.I.IT_IT].includes((0,f.Kd)()),k="3.0",w="Guide Home Page";function T(e){var l,s;let{guideHomeTopRatedFirstPage:b,regions:f,featured:w,backgroundImage:T}=e,{t:C}=(0,i.ZF)("common");if(!w||!T)return(0,n.jsx)(x.ZP,{});let Z=null!==(l=null==f?void 0:f.regions)&&void 0!==l?l:[],P=(null!==(s=null==f?void 0:f.groups)&&void 0!==s?s:[]).map(e=>({group:e,regions:Z.filter(l=>l.group===e.uuid)}));return(0,n.jsxs)(t.h9,{adType:"home",adTKey:"other travel",meta:{Fs:void 0,Rs:void 0,Th:void 0,Tl:void 0,snow:void 0,Wc:void 0},children:[(0,n.jsx)(a.e,{current:a.a.TRIP_PLANNING}),(0,n.jsx)(r.I,{id:"ski-resorts"}),(0,n.jsx)(c.W2,{width:"xl-only",className:"content-container",children:(0,n.jsxs)("div",{className:"mt-4 space-y-10 px-4 pb-16 md:mt-8 md:px-0",children:[(0,n.jsxs)("header",{className:"space-y-4",children:[(0,n.jsx)(v.X,{level:1,children:C("guide.home.heroTitle")}),(0,n.jsx)(j.x,{variant:"default",className:"text-base leading-relaxed text-foreground/85",children:C("guide.home.seoText")})]}),(null==b?void 0:b.data)&&(0,n.jsx)(m.C,{pageType:"global",resortTopRatingOverall:b.data,displayMode:"grid"}),y&&(0,n.jsx)(g.default,{destinationId:"flexible"}),(0,n.jsx)(N.y,{sections:P,linkFor:u.Z5.regionTripPlanningOverview}),(0,n.jsx)(h.Z,{regionTitle:w.details.region.title}),(0,n.jsx)(p.c,{templateId:k})]})}),(0,n.jsx)(o.W,{}),(0,n.jsx)(d.Footer,{})]})}},57973:function(e,l,s){"use strict";s.d(l,{Z:function(){return t}});var n=s(73420);let t=e=>!!(null==e?void 0:e.startsWith("/".concat((0,n.ou)())))}},function(e){e.O(0,[7732,3544,2689,9851,3938,6063,8094,4857,1696,7230,7327,8481,2728,3752,9791,4563,9825,5681,8484,2041,4233,9236,6487,2971,2117,1744],function(){return e(e.s=79303)}),_N_E=e.O()}]); 2//# sourceMappingURL=page-60748fb8a057e160.js.map
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.