1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03e6b231-8232-4dd5-b191-a504f785bfc3",e._sentryDebugIdIdentifier="sentry-dbid-03e6b231-8232-4dd5-b191-a504f785bfc3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97955],{1360:(e,t,s)=>{s.d(t,{RenderClockProvider:()=>o,a:()=>l});var n=s(12115);let a=()=>()=>{},r=(0,n.createContext)(null);function o(e){let{renderedAtMs:t,children:s}=e;return(0,n.createElement)(r.Provider,{value:t},s)}function l(){let e=(0,n.useSyncExternalStore)(a,()=>!0,()=>!1),t=(0,n.useContext)(r),[s]=(0,n.useState)(()=>Date.now());return(0,n.useMemo)(()=>({hydrated:e,nowMs:e?s:t}),[e,s,t])}},15239:(e,t,s)=>{s.d(t,{default:()=>a.a});var n=s(54652),a=s.n(n)},29488:(e,t,s)=>{s.d(t,{Ay:()=>c,DO:()=>i,Oz:()=>o,Wj:()=>r,cZ:()=>l});var n=s(95155),a=s(23550);function r(e){return(0,a.eY)(e)}function o(e){return(0,a.YH)(e)}let l=a.WX.map(e=>({min:e.minScore,label:e.rating,description:e.description}));function i(e,t){return(0,a.EF)(e,t)}function c(e){let{score:t,rating:s,size:o="md",showRating:l=!0,variant:i="light"}=e,c=(0,a.YH)(t),d=s||r(t),{container:u,stroke:m,fontSize:f,ratingSize:x}={sm:{container:40,stroke:3,fontSize:14,ratingSize:"text-xs"},md:{container:56,stroke:3,fontSize:18,ratingSize:"text-sm"},lg:{container:80,stroke:4,fontSize:28,ratingSize:"text-base"},xl:{container:120,stroke:5,fontSize:42,ratingSize:"text-lg"},"2xl":{container:160,stroke:6,fontSize:56,ratingSize:"text-xl"}}[o],h=(u-m)/2,p=2*Math.PI*h,g=t/100*p,b="dark"===i;return(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,n.jsxs)("div",{className:"relative",style:{width:u,height:u},children:[(0,n.jsxs)("svg",{className:"absolute inset-0 -rotate-90",width:u,height:u,children:[(0,n.jsx)("circle",{cx:u/2,cy:u/2,r:h,fill:"none",stroke:b?"#374151":"#e2e8f0",strokeWidth:m}),(0,n.jsx)("circle",{cx:u/2,cy:u/2,r:h,fill:"none",stroke:c,strokeWidth:m,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:p-g,style:{transition:"stroke-dashoffset 0.5s ease-out"}})]}),(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center font-display","data-snowsure-score":Math.round(t),style:{fontSize:f,color:b?"#ffffff"
1:"#1e293b"},children:Math.round(t)})]}),l&&(0,n.jsx)("span",{className:"".concat(x," font-semibold"),style:{color:c},children:d})]})}},49817:(e,t,s)=>{s.r(t),s.d(t,{DefaultResortImage:()=>o,default:()=>l});var n=s(95155),a=s(15239),r=s(87116);function o(e){let{seed:t,alt:s,sizes:o="100vw",priority:l=!1,className:i="",overlayClassName:c="",showCredit:d=!1}=e,u=(0,r.h)(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{src:u.url,alt:s,fill:!0,sizes:o,priority:l,className:"object-cover ".concat(i)}),c?(0,n.jsx)("div",{className:"absolute inset-0 ".concat(c)}):null,d?(0,n.jsxs)("span",{className:"absolute bottom-2 right-3 z-10 text-[10px] text-white/40",children:["\uD83D\uDCF7"," ",(0,n.jsx)("a",{href:u.photographerUrl,target:"_blank",rel:"noopener noreferrer",className:"hover:text-white/60 transition-colors",children:u.photographer})]}):null]})}let l=o},53450:(e,t,s)=>{s.d(t,{Z:()=>a});let n={en:"en-US",fr:"fr-FR",de:"de-DE",es:"es-ES",it:"it-IT",ja:"ja-JP"};function a(e){var t;return null!=(t=n[e])?t:n.en}},54652:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return i},getImageProps:function(){return l}});let n=s(28140),a=s(75040),r=s(81356),o=n._(s(71124));function l(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let i=r.Image},89611:(e,t,s)=>{s.d(t,{QE:()=>m,SV:()=>o,YH:()=>h,ag:()=>i,l:()=>c,mf:()=>f,qG:()=>x,r4:()=>r,tQ:()=>d,vW:()=>u});let n=/^\d{4}-\d{2}-\d{2}$/;function a(e){if(null==e||""===e)return null;let t=e instanceof Date?e.getTime():"number"==typeof e?e:Date.parse(e);return Number.isFinite(t)?t:null}function r(e,t,s,n){let r=a(e);return null==r?null:s.hydrated?new Intl.DateTimeFormat(n,t).format(r):new Intl.DateTimeFormat(null!=n?n:"en-US",{...t,timeZone:"UTC"}).format(r)}function o(e,t,s){return r(t.nowMs,e,t,s)}let l=e=>String(e).padStart(2,"0");function i(e){let t=new Date(e);return"".concat(t.getUTCFullYear(),"-").concat(l(t.getUTCMonth()+1),"-").concat(l(t.getUTCDate()))}function c(e){return"".concat(e.getFullYear(),"-").concat(l(e.getMonth()+1),"-").concat(l(e.getDate()))}function d(e){return null==e.nowMs?null:e.hydrated?c(new Date(e.nowMs)):i(e.nowMs)}function u(e){let t=d(e);return t?Number(t.slice(0,4)):null}function m(e){return new Date(n.test(e)?"".concat(e,"T12:00:00"):e)}function f(e,t){let s=e=>Date.UTC(Number(e.slice(0,4)),Number(e.slice(5,7))-1,Number(e.slice(8,10)));return Math.round((s(t)-s(e))/864e5)}function x(e){if(null!=e.nowMs)return e.hydrated?new Date(e.nowMs):function(e){let t=Date.UTC(Number(e.slice(0,4)),Number(e.slice(5,7))-1,Number(e.slice(8,10)),12),s=-new Date(t).getTimezoneOffset();return new Date(t-6e4*s/2)}(i(e.nowMs))}function h(e,t){let s=a(e);return null==s||null==t?null:(t-s)/6e4}},97955:(e,t,s)=>{s.d(t,{default:()=>b});var n=s(95155),a=s(45101),r=s(41218),o=s(29987),l=s(52619),i=s.n(l),c=s(15239),d=s(29488),u=s(32497),m=s(28410),f=s(37869),x=s(53450),h=s(1360),p=s(89611),g=s(49817);function b(e){var t,s;let{resort:l,showRank:b=!1,isOffSeason:w=!1,ratingFigure:j}=e,v=(0,a.RY)(),{locale:N,ct:{browse:y}}=(0,f.Y)(),k=(0,x.Z)(N),D=(0,u.$q)(l),S=(0,h.a)(),C=(0,p.qG)(S),M=(0,p.tQ)(S),z=null!=(t=l.isOpen)?t:(0,m.AV)(l,C),T=(0,m.QZ)((0,m.N4)(l),C),_=!w&&!z,I=!!l.seasonClosingDate&&!!M&&l.seasonClosingDate.slice(0,10)<M,F=!!l.seasonOpeningDate&&!!M&&l.seasonOpeningDate.slice(0,10)<=M,O=_&&(F&&!I||(0,m.rK)((0,m.N4)(l))),E=!w&&!_;return(0,n.jsxs)(i(),{href:"/resorts/".concat(l.slug),className:"group block bg-white rounded-lg border overflow-hidden hover:shadow-lg transition-all ".concat(w||_?"border-slate-200 opacity-80":"border-slate-200 hover:border-blue-300"),children:[(0,n.jsxs)("div",{className:"relative h-40 bg-slate-200 overflow-hidden",children:[D.url?(0,n.jsx)(c.default,{src:D.url,alt:"".concat(l.name," ski resort - ").concat(l.country||"skiing destination"),fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500 ".concat(w||_?"grayscale-[30%
1]":"")}):(0,n.jsx)(g.default,{seed:null!=(s=l.slug)?s:l.name,alt:"".concat(l.name," ski resort"),sizes:"(max-width: 768px) 100vw, 33vw",className:w||_?"grayscale-[30%]":""}),w&&(0,n.jsx)("div",{className:"absolute inset-0 bg-amber-900/20 flex items-center justify-center",children:(0,n.jsx)("span",{className:"bg-amber-100 text-amber-800 text-xs font-semibold px-3 py-1 rounded-full shadow",children:y.shared.offSeason})}),_&&(0,n.jsx)("div",{className:"absolute inset-0 bg-slate-900/25 flex items-center justify-center",children:(0,n.jsx)("span",{className:"bg-slate-800/90 text-white text-xs font-semibold px-3 py-1 rounded-full shadow uppercase tracking-wide",children:y.shared.closed})}),T&&(0,n.jsx)("div",{className:"absolute top-3 left-3",children:(0,n.jsx)("span",{className:"bg-cyan-500/95 text-white text-xs font-semibold px-3 py-1 rounded-full shadow uppercase tracking-wide",children:y.shared.summerSkiingOpen})}),D.url&&D.photographer&&E&&(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,n.jsxs)("p",{className:"text-[10px] text-white/80",children:["\uD83D\uDCF7 ",D.photographer]})}),b&&l.rank&&(0,n.jsx)("div",{className:"absolute top-3 left-3 w-8 h-8 rounded-full bg-white shadow-md flex items-center justify-center",children:(0,n.jsxs)("span",{className:"text-slate-900 font-bold text-sm",children:["#",l.rank]})}),E&&l.snowSure&&(0,n.jsxs)("div",{className:"absolute top-3 right-3 flex flex-col items-end gap-1.5",children:[(0,n.jsx)(d.Ay,{score:l.snowSure.score,size:"sm",showRating:!1}),null!=j?(0,n.jsx)("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded shadow-sm uppercase tracking-wide bg-white text-slate-900","data-row-figure":"base",children:j}):(0,n.jsx)("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded shadow-sm uppercase tracking-wide","data-row-badge":!0,style:{backgroundColor:(0,u.N_)(l.snowSure.score).bg,color:(0,u.N_)(l.snowSure.score).text},children:l.snowSure.rating||(0,d.Wj)(l.snowSure.score)})]})]}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("h3",{className:"font-semibold text-slate-900 group-hover:text-blue-600 transition-colors line-clamp-1",children:l.name}),(0,n.jsx)("p",{className:"text-slate-500 text-sm",children:l.country})]}),w&&(0,n.jsx)("span",{className:"text-xs font-medium px-2 py-1 rounded bg-amber-50 text-amber-700 shrink-0",children:y.shared.seasonBadge}),_&&(0,n.jsx)("span",{className:"text-xs font-medium px-2 py-1 rounded bg-slate-100 text-slate-600 shrink-0",children:y.shared.closed}),T&&(0,n.jsx)("span",{className:"text-xs font-medium px-2 py-1 rounded bg-cyan-50 text-cyan-800 shrink-0",children:y.shared.summerSkiingOpen})]}),E&&l.conditions&&(0,n.jsxs)("div",{className:"flex items-center gap-4 text-sm pt-3 border-t border-slate-100",children:[null!=l.conditions.forecast14dCm&&l.conditions.forecast14dCm>0&&(0,n.jsxs)("div",{className:"flex items-center gap-1","aria-label":"14-day forecast: ".concat(Math.round(l.conditions.forecast14dCm)," centimetres"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-blue-500",children:"âï¸"}),(0,n.jsx)("span",{className:"text-slate-700 font-medium",children:(0,n.jsx)(o.Snow,{cm:l.conditions.forecast14dCm})}),(0,n.jsx)("span",{className:"text-slate-400 text-xs","aria-hidden":"true",children:"14d"})]}),void 0!==l.conditions.snowfall24hCm&&l.conditions.snowfall24hCm>0&&(0,n.jsxs)("div",{className:"flex items-center gap-1","aria-label":"24-hour snowfall: ".concat(Math.round(10*l.conditions.snowfall24hCm)/10," centimetres"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-cyan-500",children:"\uD83C\uDF28ï¸"}),(0,n.jsx)("span",{className:"text-slate-700 font-medium",children:(0,n.jsx)(o.Snow,{cm:l.conditions.snowfall24hCm,variant:"precise"})})]}),null!=l.conditions.temperatureC&&(0,n.jsx)("div",{className:"text-slate-500 ml-auto","aria-label":"Temperature: ".concat((0,r._E)(l.conditions.temperatureC,v)),children:(0,n.jsx)(o.Temp,{c:l.conditions.temperatureC})})]}),w&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm pt-3 border-t border-slate-100 text-amber-700",children:[(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}),(0,n.jsx)("span",{children:y.shared.seasonJunOct})]}),_&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm pt-3 border-t border-slate-100 text-slate-500",children:[(0,n.jsx)("svg",{className:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsxs)("span",{children:[O?y.shared.closedToday:y.shared.closedForSeason,!O&&l.seasonClosingDate&&I?" \xb7 ".concat(y.shared.closedEnded," ").concat(new Date("".concat(l.seasonClosingDate,"T00:00:00")).toLocaleDateString(k,{month:"short",day:"numeric"})):""]})]})]})]})}}}]);
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.