1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3124],{70383:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});var n,l=r(94746);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var o=l.forwardRef(function(e,t){return l.createElement("svg",i({viewBox:"0 0 18 24",xmlns:"http://www.w3.org/2000/svg",ref:t},e),n||(n=l.createElement("path",{d:"M9 0C4.162 0 .226 4.007.226 8.932c0 2.755 1.393 6.098 4.141 9.938a43.793 43.793 0 004.076 4.898.782.782 0 001.101.012c.084-.08 2.07-2.003 4.085-4.774 2.75-3.783 4.145-7.172 4.145-10.074C17.774 4.007 13.838 0 9 0zm0 12.788a4.294 4.294 0 01-4.29-4.29A4.294 4.294 0 019 4.208a4.294 4.294 0 014.29 4.29A4.294 4.294 0 019 12.788z"})))}),a=l.memo(o)},46612:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});var n,l=r(94746);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var o=l.forwardRef(function(e,t){return l.createElement("svg",i({width:176,height:193,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),n||(n=l.createElement("g",{opacity:.2,fill:"#1476C6"},l.createElement("path",{d:"M115.711 49.612L90.486 0 78.49 36.324l25.235 49.657 49.722-25.06 11.959-36.28-49.696 24.97zM84.985 142.467l25.224 49.602 11.977-36.342-25.189-49.603-49.793 25.025-11.934 36.342 49.715-25.024zM150.838 112.613l49.859-25.08-36.539-11.965-49.858 25.08 25.189 49.512 36.484 11.919-25.135-49.466zM49.84 79.538L0 104.636l36.514 11.92L86.379 91.44 61.208 41.992 24.705 30.036 49.84 79.538z"}))))}),a=l.memo(o)},53124:function(e,t,r){Promise.resolve().then(r.bind(r,8064)),Promise.resolve().then(r.bind(r,30111)),Promise.resolve().then(r.bind(r,80712)),Promise.resolve().then(r.bind(r,85062)),Promise.resolve().then(r.bind(r,53752))},51045:function(e,t,r){"use strict";r.d(t,{Rb:function(){return o},We:function(){return a}});var n=r(57437);r(2265);var l=r(69919),i=r(80734);let o=e=>{let{type:t,values:r,formatAll:o,removeEqual:a,noValue:s,separator:c,formatToLocale:u}=e,d=(0,i.WJ)(t)(r,c,s,o,a);if(u)try{let e=/^[0-9]+/,t=d.match(e),r=d.split(e)[1];if(t&&r){let e=Number(t).toLocaleString([l.SP,"en-US"]);return(0,n.jsx)(n.Fragment,{children:e+r})}}catch(e){console.error("Incorrect value passed to DistanceUnit: ",d)}return(0,n.jsx)(n.Fragment,{children:d})},a=e=>(0,n.jsx)(o,{type:"cmOrInchShort",...e,formatToLocale:!0})},37931:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(57437),l=r(6379);let i={width:"100%",height:"auto"},o=e=>{let{src:t,alt:r,className:o,imageOptimization:a=!0}=e,s=(0,l.Z)(t);return(0,n.jsx)("img",{src:a?s:t,alt:r,loading:"lazy",className:o,style:i})}},17108:function(e,t,r){"use strict";r.d(t,{x:function(){return T}});var n,l,i=r(57437),o=r(2265),a=r(27648),s=r(16010),c=r(59191);(n=l||(l={}))[n.Feratel=2]="Feratel",n[n.Webcam360=3]="Webcam360";var u=r(19588),d=r(34699),m=r(39730);let h=new Set(["player.roob.sk","playerold.roob.sk"]),f=e=>{try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol?t:null}catch(e){return null}},x=e=>e.pathname.toLowerCase().endsWith(".m3u8"),p=e=>{let t=f(e.trim());if(!t)return null;if(h.has(t.hostname)){var r;let e=f(null!==(r=t.searchParams.get("param"))&&void 0!==r?r:"");return e&&x(e)?e.href:null}return x(t)?t.href:null};var g=r(50037),v=r(61050),b=r(1608),w=r(60128),y=r(2141);let j={backBufferLength:30},N=()=>{var e;let t=null===(e=(0,v.qA)())||void 0===e?void 0:e[d.Gt.TargetingCookies],r=(0,b.hj)(d.Gt.TargetingCookies);return"local"===g.Vi||!0===t||!0===r},E=e=>{let{src:t,title:n}=e,l=(0,o.useRef)(null),[a,s]=(0,o.useState)(!1),c=N(),u=(0,y.w)()&&c;return((0,o.useEffect)(()=>{let e;let n=l.current;if(!n||!u)return;let i=!1,o=()=>{null==e||e.destroy(),e=void 0},a=e=>{i||(w.gd.message({tag:"LiveHlsStream",message:"Stream failed, keeping the still",data:{src:t,reason:e}}),s(!0))},c=()=>{var e;return a(null===(e=n.error)||void 0===e?void 0:e.message)};return n.muted=!0,r.e(3442).then(r.bind(r,89490)).then(r=>{let{default:l}=r;if(!i){if(l.isSupported()){let r=new l(j);e=r;let i=!1;r.on(l.Events.ERROR,(e,t)=>{if(t.fatal){if(t.type===l.ErrorTypes.MEDIA_ERROR&&!i){i=!0,r.recoverMediaError();return}o(),a(t.details)}}),r.loadSource(t),r.attachMedia(n)}else n.canPlayType("application/vnd.apple.mpegurl")?(n.addEventListener("error",c),n.src=t):a("neither MSE nor native HLS")}}).catch(a),()=>{i=!0,o(),n.removeEventListener("error",c),n.hasAttribute("src")&&(n.removeAttribute("src"),n.load())}},[t,u]),!u||a)?null:(0,i.jsx)("video",{ref:l,className:"absolute inset-0 h-full w-full object-cover","aria-label":n,autoPlay:!0,muted:!0,playsInl
1ine:!0,controls:!0})},R={class:"absolute inset-0 h-full w-full border-0",allowfullscreen:"true"},I=e=>{let{videoStream:t,webcamType:r,title:n}=e,[a,s]=(0,o.useState)(null),c=t;return r===l.Feratel&&(c+="&lg=".concat((0,u.VQ)())),(0,m.Q)(a,c,n,d.Gt.TargetingCookies,R),(0,i.jsx)("div",{ref:s,className:"absolute inset-0"})},S=e=>{let{videoStream:t,webcamType:r,title:n}=e,l=p(t);return l?(0,i.jsx)(E,{src:l,title:n},l):(0,i.jsx)(I,{videoStream:t,webcamType:r,title:n})},k={video:"aspect-video",square:"aspect-square","4/3":"aspect-[4/3]"},M=e=>{let{children:t}=e;return(0,i.jsx)("span",{className:"absolute bottom-3 right-3 rounded bg-black/65 px-2 py-0.5 text-xs font-medium text-white",children:t})},T=e=>{let{caption:t,resortName:r,showResort:n=!1,image:l,videoStream:o,webcamType:u,timestamp:d,badge:m,href:h,onClick:f,aspect:x="video",className:p}=e,g=r?"".concat(r," â ").concat(t):t,v=(0,i.jsxs)("div",{className:(0,s.cn)("relative overflow-hidden rounded-md bg-muted",k[x]),children:[(0,i.jsx)("img",{src:l,alt:g,loading:"lazy",decoding:"async",className:"absolute inset-0 h-full w-full object-cover transition duration-300 group-hover:scale-[1.03]"}),o&&(0,i.jsx)(S,{videoStream:o,webcamType:u,title:g}),m&&(0,i.jsx)("span",{className:"pointer-events-none absolute left-3 top-3",children:m}),d&&!o&&(0,i.jsx)(M,{children:d})]}),b=n&&r?(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("div",{className:"text-base font-bold leading-tight text-foreground group-hover:text-primary",children:r}),(0,i.jsx)(c.x,{variant:"subtle",className:"mt-0.5 truncate text-xs text-muted-foreground",children:t})]}):(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)("div",{className:"text-base font-bold leading-tight text-foreground group-hover:text-primary",children:t})});return h&&!o?(0,i.jsxs)(a.default,{href:h,className:(0,s.cn)("group block",p),children:[v,b]}):f&&!o?(0,i.jsxs)("button",{type:"button",onClick:f,className:(0,s.cn)("group block w-full text-left","hover:[@media(hover:hover)]:cursor-zoom-in",p),children:[v,b]}):(0,i.jsxs)("div",{className:(0,s.cn)("group block",p),children:[v,b]})}},58716:function(e,t,r){"use strict";r.d(t,{L:function(){return d}});var n,l,i=r(57437);r(2265);var o=r(94746);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var s=o.forwardRef(function(e,t){return o.createElement("svg",a({viewBox:"0 0 182 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),n||(n=o.createElement("path",{d:"M45.628 26.183h15.007v-2.449h-8.87c-.669 0-1.277 0-1.763-.06-.486-.062-.911-.123-1.336-.246-.365-.122-.73-.245-.972-.428-.304-.184-.547-.429-.79-.674-.85-.857-1.276-2.082-1.276-3.735v-2.449c0-1.285.121-2.265.304-2.938.182-.674.607-1.286 1.093-1.715.547-.428 1.215-.796 2.005-.918.79-.184 1.884-.245 3.342-.245h13.852v5.878H52.858v2.449h7.777c1.458 0 2.551.06 3.28.183.73.123 1.398.306 1.945.613.668.367 1.154.918 1.519 1.653.364.734.546 1.591.546 2.632v2.45c0 1.224-.121 2.142-.364 2.877a3.852 3.852 0 01-1.215 1.714 5.244 5.244 0 01-.972.612c-.304.184-.73.306-1.155.368-.425.122-.972.183-1.519.183-.547.062-1.215.062-2.005.062H45.628v-5.817zM69.505 10.387h7.23v8.572h1.701l6.683-8.572h8.506l-8.992 10.715 9.66 10.959h-9.235l-6.683-8.327h-1.7v8.327h-7.23V10.387h.06zM95.994 10.387h7.23v21.674h-7.23V10.387z",fill:"#13B5EA"})),l||(l=o.createElement("path",{d:"M23.733 10.408L18.68 0l-2.637 7.53 5.274 10.408 10.109-5.315 2.637-7.53-10.328 5.315zM17.36 29.674l5.275 10.409 2.417-7.53-5.054-10.408-10.329 5.093-2.417 7.751 10.109-5.315zM30.986 23.474l10.328-5.315-7.691-2.436-10.11 5.315 5.055 10.186 7.692 2.658-5.274-10.408zM10.329 16.609L0 21.924l7.472 2.436L17.8 19.044 12.526 8.858 5.054 6.201l5.274 10.408zM181.238 15.89h-6.765v16.17h-7.007V15.89h-6.765v-5.258h20.537v5.258zM158.572 23.838c-.202.489-.485.917-.849 1.284a3.963 3.963 0 01-1.244.886 4.03 4.03 0 01-1.577.306h-11.77v5.747h-6.886V10.632h18.656c.566 0 1.092.112 1.577.337.485.203.9.489 1.244.855.364.367.647.785.849 1.254.202.468.303.958.303 1.467v7.826c0 .51-.101.998-.303 1.467zm-15.44-2.782h8.615a.737.737 0 00.546-.214.75.75 0 00.212-.55v-3.638a.75.75 0 00-.212-.55.738.738 0 00-.546-.214h-8.615v5.166zM134.421 15.89h-15.259c-.141 0-.212.082-.212.245v10.423c0 .163.071.245.212.245h7.887c.142 0 .213-.082.213-.245V23.59h-2.431v-2.578l9.59.044v6.297c0 1.651-.476 2.853-1.426 3.607-.93.734-2.215 1.1-3.853 1.1h-12.073c-1.638 0-2.932-.366-3.883-1.1-.93-.754-1.395-1.956-1.395-3.607V15.34c0-1.65.465-2.843 1.395-3.577.951-.754 2.245-1.13 3.883-1.13h17.352v5.257z",fill:"#0079C1"})))}),c=o.memo(s);r.p;var u=r(16010);let d=e=>{let{className:t,...r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{className:(0,u.cn)("w-auto",t),focusable:"false","aria-hidden":!0,...r}),(0,i.jsx)("span",{className:"sr-only",children:"SkiGPT"})]})}},88995:function(e,t,r){"use strict";r.d(t,{B:function(){return h}});
1var n=r(57437),l=r(10407),i=r(46612),o=r(70383),a=r(16010),s=r(37931),c=r(12381),u=r(81851),d=r(15104),m=r(82258);let h=e=>{var t,r,h,f;let{resort:x,regionResorts:p,resortDescriptionTabs:g,isOnRegionSkiResorts:v=!1,isOnRegionExceptSkiResorts:b=!1,utmCampaign:w}=e,{t:y}=(0,u.ZF)("common");if(!x)return null;let j=null===(t=x.uuid)||void 0===t?void 0:t.toString(),N=j&&p?p.find(e=>e.uuid===j):void 0;if(!N)return null;let E=[null===(r=x.region)||void 0===r?void 0:r.title,null===(h=x.region)||void 0===h?void 0:h.country].filter(Boolean),R=x.title||y("homePage.featuredResort"),I=E.length?E.join(", ").toUpperCase():null,S=null==g?void 0:g.filter(e=>"resort_profile"===e.tab),k=(null==S?void 0:S.length)?S[0].description:null,M=k?(0,d.ct)(k).trim():null;M&&M.length>250&&(M="".concat(M.substring(0,250),"..."));let T=m.Z5.resortTripPlanningOverview(N),C=new URLSearchParams({utm_source:"onthesnow",utm_medium:"featured_resort",utm_campaign:w,utm_content:N.uuid}),L=w?"".concat(T,"?").concat(C.toString()):T;return(0,n.jsxs)("section",{id:"featured-resort",className:(0,a.cn)("overflow-hidden lg:mb-[4.75rem] xl:flex xl:flex-row-reverse xl:items-center xl:gap-[95px] xl:overflow-visible [&>div]:relative xl:[&>div]:flex-1",v&&"p-0 lg:w-[calc(100%+var(--sidebar-width,0px)+var(--sidebar-gap,0px))] lg:mb-12 max-xl:px-12 max-xl:pt-4 max-sm:px-5 max-sm:pt-4",b&&"p-0 pt-8 max-xl:px-12 max-sm:px-5 [&>div>div:first-child>img]:!aspect-[1.338] xl:[&>div>div:first-child>img]:!min-h-[22.1875rem] xl:[&>div>div:first-child>img]:!min-w-[29.6875rem] [&>div>.snowflake>svg]:right-[-45%] [&>div>.snowflake>svg]:top-[75%] sm:[&>div>.snowflake>svg]:right-[-8%] sm:[&>div>.snowflake>svg]:top-[70%] xl:[&>div>.snowflake>svg]:!w-56 xl:[&>div>.snowflake>svg]:!h-56 xl:[&>div>.snowflake>svg]:!right-[90%] xl:[&>div>.snowflake>svg]:!top-[-15%]"),children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"relative z-[1] [&>img]:w-full [&>img]:object-cover [&>img]:rounded-[20px] [&>img]:aspect-[1.657]",children:[(0,n.jsx)(s.c,{alt:x.title,src:null!==(f=x.image)&&void 0!==f?f:""}),x.isPartner&&(0,n.jsx)("div",{className:"absolute top-5 right-0 z-[2] bg-secondary py-1.5 pl-6 pr-4 flex items-center [clip-path:polygon(0_0,100%_0,100%_100%,0_100%,7%_50%)] max-md:py-1 max-md:pl-5 max-md:pr-3 [&>p]:text-white [&>p]:font-medium [&>p]:text-sm [&>p]:leading-5 [&>p]:tracking-[0.07em] [&>p]:m-0 [&>p]:uppercase [&>p]:whitespace-nowrap max-xl:[&>p]:text-xs max-xl:[&>p]:leading-4 max-md:[&>p]:text-[10px] max-md:[&>p]:leading-[14px]",children:(0,n.jsx)("p",{children:y("common.premierPartner").toUpperCase()})})]}),(0,n.jsx)("div",{className:"snowflake [&>svg]:absolute [&>svg]:w-[25.4375rem] [&>svg]:h-[24.375rem] [&>svg]:top-[67%] [&>svg]:right-[-55%] [&>svg]:z-0 sm:[&>svg]:w-[36%] sm:[&>svg]:top-[75%] sm:[&>svg]:right-[-15%] xl:[&>svg]:w-[25.4375rem] xl:[&>svg]:h-[24.375rem] xl:[&>svg]:right-[-55%] xl:[&>svg]:top-[-5%]",children:(0,n.jsx)(i.r,{width:"100%",height:"100%",viewBox:"0 0 176 193"})})]}),(0,n.jsxs)("div",{className:"my-7 max-w-[43.75rem] [&>h6]:font-semibold [&>h6]:text-xs [&>h6]:tracking-wider [&>h6]:uppercase [&>h6]:text-muted-foreground [&>h6]:mb-4 [&>h3]:font-heading [&>h3]:font-semibold [&>h3]:text-2xl [&>h3]:capitalize [&>h3]:text-secondary [&>h3]:mb-3 xl:[&>h3]:text-3xl xl:[&>h3]:mb-4 [&>p]:text-base [&>p]:leading-relaxed [&>p]:text-foreground/85 [&>p]:my-6",children:[(0,n.jsx)("h6",{children:y("homePage.featuredResort")}),(0,n.jsx)("h3",{children:R}),I&&(0,n.jsxs)("div",{className:"flex flex-row items-center gap-[13px] [&>svg]:w-[15px] [&>svg]:h-[18px] [&>svg]:fill-muted-foreground [&>p]:m-0 [&>p]:text-sm [&>p]:font-medium [&>p]:text-muted-foreground xl:[&>p]:text-base",children:[(0,n.jsx)(o.r,{}),(0,n.jsx)("p",{children:I})]}),M?(0,n.jsx)("p",{children:M}):(0,n.jsx)("p",{children:y("home.featuredResort.noDescription")}),(0,n.jsx)(c.z,{asChild:!0,children:(0,n.jsxs)("a",{href:L,children:[y("common.seeResortGuide"),(0,n.jsx)(l.Z,{})]})})]})]})}},59571:function(e,t,r){"use strict";r.d(t,{p:function(){return w}});var n=r(57437),l=r(2265),i=r(81851),o=r(82258),a=r(31444),s=r(57973),c=r(19588),u=r(10466);
1let d="https://it.newsonthesnow.com/news/wp-content/themes/otstheme/images/default-img-skiinfo.jpg",m="https://it.newsonthesnow.com/news/wp-content/themes/otstheme/images/default-img.jpg",h={[u.I.EN_US]:m,[u.I.DE_DE]:d,[u.I.EN_GB]:m,[u.I.FR_FR]:d,[u.I.IT_IT]:d,[u.I.PL_PL]:d,[u.I.CS_CZ]:m,[u.I.SK_SK]:m,[u.I.ES_ES]:"",[u.I.DA_DK]:"",[u.I.NN_NO]:"",[u.I.NL_NL]:"",[u.I.SV_SE]:""},f=()=>h[(0,c.Kd)()];var x=r(15104),p=r(50037);let g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150,[i,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!p.DM){let l=()=>{if(e.current){let r=e.current.getBoundingClientRect(),l=r.y>-n&&r.y<window.innerHeight+n,i=r.y+r.height>-n&&r.y+r.height<window.innerHeight+n,a=l||i;t?o(e=>e||a):o(a)}else o(e=>(!e||!!t)&&e)};return window.addEventListener("scroll",l),window.addEventListener("resize",l),r||l(),()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}}},[o]),i};var v=r(15670);let b=e=>{var t,r;let{news:i}=e,o=(0,l.useRef)(null),a=g(o,!0)?i.image||f():"",c=(0,x.ct)(i.title||""),u=(0,x.ct)(i.description||""),d=null===(r=i.categories)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.title,m=i.link||"";return(0,n.jsx)("div",{ref:o,className:"h-full",children:(0,n.jsx)(v.e,{title:c,excerpt:u,image:a,category:d,href:m,external:(0,s.Z)(m),className:"h-full"})})},w=e=>{let t,r,{title:l,news:s,weatherNews:c}=e,{t:u}=(0,i.ZF)("common");return c?(t=o.Z5.weather,r=u("snowWeather.home.viewAllWeatherNews")):l&&(t=o.Z5.magazine,r=u("common.loadMore")),(0,n.jsx)("section",{className:"mt-4 md:max-lg:px-4",children:(0,n.jsx)(a.R,{title:l,viewAllHref:t,viewAllLabel:r,children:s.map(e=>(0,n.jsx)(a.R.Item,{children:(0,n.jsx)(b,{news:e})},e.uuid))})})}},9528:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(57437),l=r(16010);function i(e){let{children:t,className:r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex max-lg:block max-md:px-4",r),children:t})}},77777:function(e,t,r){"use strict";r.d(t,{o:function(){return l}});var n=r(57437);function l(e){let{children:t}=e;return(0,n.jsx)("div",{className:"min-w-0 flex-1 [&>*]:mb-6 max-lg:[&>*]:mb-5 max-lg:mb-5",children:t})}},12381:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(57437),l=r(2265),i=r(37053),o=r(90535),a=r(16010);let s=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef((e,t)=>{let{className:r,variant:l,size:o,asChild:c=!1,...u}=e,d=c?i.g7:"button";return(0,n.jsx)(d,{className:(0,a.cn)(s({variant:l,size:o,className:r})),ref:t,...u})});c.displayName="Button"},80734:function(e,t,r){"use strict";r.d(t,{S9:function(){return d},WJ:function(){return u},oO:function(){return f},tQ:function(){return m}});var n=r(93360),l=r(38939),i=r(45766),o=r(81851),a=r(69919);let s={cmOrInch:{normalize:l.b4,i18nKey:{[i.n.METRIC]:"cm",[i.n.IMPERIAL]:"inch"}},cmOrInchShort:{normalize:l.b4,i18nKey:{[i.n.METRIC]:"cmShort",[i.n.IMPERIAL]:"inchShort"}},mOrFeet:{normalize:l.W4,i18nKey:{[i.n.METRIC]:"m",[i.n.IMPERIAL]:"feet"}},mOrFeetShort:{normalize:l.W4,i18nKey:{[i.n.METRIC]:"mShort",[i.n.IMPERIAL]:"feetShort"}},kmOrMile:{normalize:l.Zk,i18nKey:{[i.n.METRIC]:"km",[i.n.IMPERIAL]:"mile"}},acOrHa:{normalize:l.A1,i18nKey:{[i.n.METRIC]:"hectares",[i.n.IMPERIAL]:"acres"}}
1,kmhOrMileh:{normalize:l.TZ,i18nKey:{[i.n.METRIC]:"kmph",[i.n.IMPERIAL]:"mph"}}},c={temperature:{normalize:l.jX,i18nKey:{[i.UJ.CELSIUS]:"celsius",[i.UJ.FAHRENHEIT]:"fahrenheit"}}},u=e=>{let{t}=(0,o.ZF)("unit"),{t:r}=(0,o.ZF)("common"),l=(0,n.eF)();return(n,i,o,a,c,u)=>{let d=(Array.isArray(n)?n:[n]).filter(e=>null!=e||!!u).filter((e,t,r)=>!c||0===t||r[t-1]!==e);return!d.length&&o?r(o):d.map((r,n)=>{if(null!=r){let i=s[e].normalize(r,l);return n===d.length-1||a?t(s[e].i18nKey[l],{count:i}):i}return u}).join(i||"")}},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temperature",{t}=(0,o.ZF)("unit"),{t:r}=(0,o.ZF)("common"),l=(0,n.VD)();return(n,i,o,a,s)=>{let u=(Array.isArray(n)?n:[n]).filter(e=>void 0!==e).filter((e,t,r)=>!s||0===t||r[t-1]!==e);return!u.length&&o?r(o):u.map((r,n)=>{let i=c[e].normalize(r,l);return n===u.length-1||a?t(c[e].i18nKey[l],{count:i}):i}).join(i||"")}},m=()=>u("cmOrInchShort"),h=e=>{let t=e.match(/^[0-9]+/);if(!t)return e;let r=e.slice(t[0].length);return Number(t[0]).toLocaleString([a.SP,"en-US"])+r},f=()=>{let e=u("mOrFeetShort");return t=>h(e(t))}},38939:function(e,t,r){"use strict";r.d(t,{A1:function(){return j},TZ:function(){return N},W4:function(){return w},YL:function(){return u},Zk:function(){return y},b4:function(){return b},jX:function(){return v}});var n=r(45766);let l=e=>{if(!("number"==typeof e&&Number.isFinite(e))){try{let t=Number.parseFloat(e);if(Number.isFinite(t)&&!Number.isNaN(t))return t}catch(e){}return}return e},i=e=>.393700787*e,o=e=>3.2808399*e,a=e=>.621371192*e,s=e=>.404686*e,c=e=>.621371192*e,u=e=>3.6*e,d=e=>1.8*e+32,m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return t===n.n.METRIC?e:i(e)},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return t===n.n.METRIC?e:o(e)},f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return t===n.n.METRIC?e:a(e)},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return t===n.n.IMPERIAL?e:s(e)},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return t===n.n.METRIC?e:c(e)},g=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.n.METRIC,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=l(e);if(void 0!==a){if(i)return Number(t(a,r).toFixed(1));let e=t(a,r);return o?Math.ceil(e):Math.round(e)}},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.UJ.CELSIUS,r=l(e);if(void 0!==r)return t===n.UJ.FAHRENHEIT?Math.round(d(r)):Math.round(r)},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return g(e,m,t,2.5>Number(e),!1)},w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return g(e,h,t)},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return g(e,f,t,!0)},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return g(e,x,t)},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.n.METRIC;return g(e,p,t)}},85062:function(e,t,r){"use strict";r.r(t),r.d(t,{DEBUG_TAG:function(){return et},TEMPLATE_ID:function(){return er},TEMPLATE_NAME:function(){return en},default:function(){return el}});var n=r(57437),l=r(2265),i=r(99376),o=r(16788),a=r(87489),s=r(81851),c=r(21025),u=r(9528),d=r(77777),m=r(20104),h=r(80712),f=r(27110),x=r(19296),p=r(66856),g=r(50609),v=r(68484),b=r(82258),w=r(53752);let y="group flex min-h-[50px] items-center justify-center cursor-pointer bg-white opacity-[0.85] border-0 appearance-none hover:opacity-100 max-md:basis-[49%] max-md:min-h-[45px]",j="flex items-center justify-center h-[50px] min-w-[50px] text-sm leading-[1.275rem] font-normal text-[#304769] opacity-90 group-hover:text-primary group-hover:font-semibold",N=e=>{let{query:t}=e,[r,i]=(0,l.useState)(!1),o=(0,w.z$)(),a=(0,l.useCallback)(()=>{i(!r),r||o.searchBox()},[r]);return"string"==typeof t?(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)(v.SearchPopup,{closePopup:a,query:t}),(0,n.jsx)("button",{type:"button",className:y,onClick:a,children:(0,n.jsx)("div",{className:j,children:t})})]}):(0,n.jsx)(g.p,{href:b.Z5.regionSnowReport(t),type:"button",className:y,children:(0,n.jsx)("div",{className:j,children:t.title})})},E=e=>{let{popularSearch:t}=e,{t:r}=(0,s.ZF)("common");return(0,n.jsxs)("section",{className:"mx-auto w-3/5 max-xl:w-full",children:[(0,n.jsx)("span",{className:"flex items-center justify-center overflow-hidden mb-5 uppercase tracking-[0.065em] text-white text-[2rem] text-center max-md:hidden before:content-[''] before:block before:flex-1 before:h-px before:bg-white before:opacity-40 before:mr-4 after:content-[''] after:block after:flex-1 after:h-px after:bg-white after:opacity-40 after:ml-4",children:r("homePage.popularSearches")}),(0,n.jsxs)("div",{className:"grid grid-cols-3 grid-rows-2 gap-px rounded-md overflow-hidden max-md:grid-cols-2 max-md:grid-rows-3",children:[t.results.slice(0,5).map(e=>(0,n.jsx)(N,{query:e},"string"==typeof e?e:e.uuid)),(0,n.jsx)(g.p,{href:b.Z5.nearbyResorts(),type:"button",className:"group flex min-h-[50px] items-center justify-center cursor-pointer bg-white opacity-[0.85] border-0 appearance-none hover:opacity-100 max-md:basis-[49%] max-md:min-h-[45px]",children:(0,n.jsx)("div",{className:"flex items-center justify-center h-[50px] min-w-[50px] text-sm leading-[1.275rem] font-normal text-[#304769] opacity-90 group-hover:text-primary group-hover:font-semibold",children:r("homePage.nearbyResorts")})})]})]})},R=["home-hero-container",f.AY,"pt-[60px]","max-lg:px-2.5 max-lg:pt-20"].join(" "),I=e=>{let{backgroundImage:t,popularSearch:r,searchQuery:l,clearSearchQuery:i,loading:o}
1=e,{t:a}=(0,s.ZF)("common");return(0,n.jsxs)("header",{className:"relative min-h-[570px] text-center bg-primary bg-cover bg-center max-md:min-h-[500px] [&>.home-hero-container]:relative [&>.home-hero-container]:z-[11] [&>.home-hero-container]:h-[570px] max-md:[&>.home-hero-container]:h-[500px]",style:o?{}:{backgroundImage:'url("'.concat(t.image,'")')},children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-primary opacity-10"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)("span",{className:"block font-bold text-white text-[2.390625rem] leading-[3.71875rem] m-0 max-md:text-[1.7rem] max-md:leading-[2.55rem] max-md:mb-3",children:a("homePage.heroTitle")}),(0,n.jsx)("span",{className:"block font-normal text-white text-[1.0625rem] leading-[140%] mb-6 max-md:text-xs max-md:mb-5",children:a("homePage.heroSubtitle")}),(0,n.jsx)(p.o,{searchQuery:l,clearSearchQuery:i}),(0,n.jsx)(E,{popularSearch:r})]})]})};var S=r(20265),k=r(73247),M=r(98062),T=r(58716),C=r(90713);let L=e=>{var t;let[r,n]=(0,l.useState)(null!==(t=e[0])&&void 0!==t?t:"");return(0,l.useEffect)(()=>{var t,r;if(0===e.length)return;if((null===(t=(r=window).matchMedia)||void 0===t?void 0:t.call(r,"(prefers-reduced-motion: reduce)").matches)||1===e.length){n(e[0]);return}let l=null,i=0,o=e[0].length,a="hold",s=()=>{if("hold"===a){a="delete",l=setTimeout(s,1800);return}if("delete"===a){o=Math.max(0,o-1),n(e[i].slice(0,o)),0===o&&(i=(i+1)%e.length,a="type"),l=setTimeout(s,25);return}let t=e[i];o=Math.min(t.length,o+1),n(t.slice(0,o)),o===t.length&&(a="hold"),l=setTimeout(s,55)};return l=setTimeout(s,1800),()=>{l&&clearTimeout(l)}},[e]),r},P=e=>{let{backgroundImage:t,suggestions:r,searchQuery:i,clearSearchQuery:o}=e,{t:a}=(0,s.ZF)("common"),c=(0,w.z$)(),u=[a("home.aiHero.suggestion1"),a("home.aiHero.suggestion2")],d=[a("home.aiHero.placeholder1"),a("home.aiHero.placeholder2"),a("home.aiHero.placeholder3"),a("home.aiHero.placeholder4")],[m,h]=(0,l.useState)(""),[f,x]=(0,l.useState)(!1),p=L(d),g=r&&r.length>0?r.slice(0,2):u,b=()=>{m.trim()&&((0,M._)(m),h(""))},y=(0,l.useCallback)(()=>{o&&o(),x(e=>!e)},[o]),j=(0,l.useCallback)(()=>{f||((0,C.EV)(),c.searchBox()),y()},[f,c,y]);return(0,l.useEffect)(()=>{x(!!i)},[i]),(0,n.jsxs)("header",{className:"relative z-[11] overflow-hidden",children:[(0,n.jsx)("img",{src:t.image,alt:"",className:"absolute inset-0 h-full w-full object-cover object-center"}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/45 via-black/30 to-black/55","aria-hidden":!0}),f&&(0,n.jsx)(v.SearchPopup,{closePopup:y,query:i}),(0,n.jsx)("div",{className:"relative flex min-h-[90vh] items-center px-4 py-14 md:py-20 lg:py-24",children:(0,n.jsxs)("div",{className:"mx-auto w-full max-w-2xl text-center text-white",children:[(0,n.jsx)("p",{className:"mb-12 font-heading text-4xl font-bold tracking-tight text-white md:mb-14 md:text-5xl lg:text-6xl",children:a("home.aiHero.title")}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("div",{className:"absolute -top-4 left-1/2 z-10 inline-flex -translate-x-1/2 items-center gap-2 rounded-full bg-white px-4 py-1.5 text-sm shadow-md ring-1 ring-black/5",children:[(0,n.jsx)(T.L,{className:"h-5"}),(0,n.jsx)("span",{className:"text-muted-foreground max-md:hidden",children:"\xb7 ".concat(a("home.aiHero.conciergeLabel"))})]}),(0,n.jsxs)("form",{role:"search",onSubmit:e=>{e.preventDefault(),b()},className:"rounded-2xl bg-white p-3 pt-5 text-left shadow-2xl ring-1 ring-black/5",children:[(0,n.jsx)("textarea",{value:m,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),b())},rows:2,maxLength:450,placeholder:p,className:"block w-full resize-none border-0 bg-transparent px-2 py-2 text-base leading-relaxed text-foreground placeholder:text-muted-foreground/70 focus:outline-none focus:ring-0"}),(0,n.jsxs)("div",{className:"mt-2 flex items-end justify-between gap-3 px-1",children:[(0,n.jsx)("div",{className:"flex min-w-0 flex-wrap gap-1.5",children:g.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>(0,M._)(e),className:"whitespace-nowrap rounded-full border border-border bg-background px-3 py-1.5 text-xs font-medium text-foreground
1/80 transition hover:border-primary/40 hover:bg-sky-50 hover:text-secondary",children:e},e))}),(0,n.jsx)("button",{type:"submit","aria-label":a("home.aiHero.askSkiGpt"),disabled:!m.trim(),className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-secondary text-white transition hover:bg-secondary/90 disabled:bg-secondary/40",children:(0,n.jsx)(S.Z,{size:16,className:"fill-none",strokeWidth:2.5})})]})]})]}),(0,n.jsx)("div",{className:"mt-5 flex items-center justify-center",children:(0,n.jsxs)("button",{type:"button",onClick:j,className:"group inline-flex items-center gap-2 rounded-full bg-black/45 px-4 py-2 text-sm text-white shadow-sm ring-1 ring-white/15 backdrop-blur transition hover:bg-black/60",children:[(0,n.jsx)(k.Z,{size:14,className:"fill-none"}),(0,n.jsx)("span",{className:"font-semibold underline-offset-2 group-hover:underline",children:a("home.aiHero.searchCta")})]})})]})})]})};var _=r(57183),z=r(59571),A=r(62754),O=r(60746);r(95417),r(11144);var Z=()=>{let{t:e}=(0,s.ZF)("common");return null},F=r(27648),H=r(17108),W=r(32537),U=r(16010);let D=e=>{let{snowWebcams:t,header:r,imageLink:l,titleLink:i,headerScope:o="h2",hasMostReportedSnowfall:a=!1,currentRegionSlug:c}=e,{t:u}=(0,s.ZF)("common"),d=t.slice(0,a?4:6),m=c?b.Z5.regionCams({slug:c}):void 0;return 0===d.length?null:(0,n.jsxs)("section",{className:"max-lg:mt-4",children:[r&&(0,n.jsxs)("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-3",children:[(0,n.jsx)(x.X,{level:"h1"===o?1:2,className:"font-heading text-xl text-secondary md:text-2xl",children:r}),m&&(0,n.jsx)(F.default,{href:m,className:"text-sm font-semibold text-primary hover:underline",children:u("homePage.viewCamsLabel")})]}),(0,n.jsx)("ul",{className:(0,U.cn)("grid gap-4",a?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"),children:d.map(e=>{var t;let{webcam:r,resort:o}=e,a=null!==(t=null==l?void 0:l(o))&&void 0!==t?t:null==i?void 0:i(o);return(0,n.jsx)("li",{children:(0,n.jsx)(H.x,{caption:r.title,resortName:o.title,showResort:!0,image:r.image,timestamp:r.date?(0,W.Zv)(r.date):void 0,href:a})},r.uuid)})})]})};var V=r(51045);let K=e=>{var t,r;let{resort:l}=e,i=b.Z5.resortSnowReport(l);return(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3 border-b border-border py-3 last:border-b-0",children:[(0,n.jsx)("h3",{className:"m-0 min-w-0 flex-1",children:(0,n.jsx)(F.default,{href:i,className:"text-base font-medium text-foreground hover:text-primary hover:underline",children:l.title})}),(0,n.jsx)("span",{className:"shrink-0 text-lg font-semibold tabular-nums text-secondary md:text-xl",children:(0,n.jsx)(V.We,{values:null!==(r=null===(t=l.snow)||void 0===t?void 0:t.last24)&&void 0!==r?r:void 0})})]})};var B=e=>{let{items:t}=e,{t:r}=(0,s.ZF)("common");if(!t||0===t.length)return null;let l=t.filter(e=>{var t;let{snow:r}=e;return(null!==(t=null==r?void 0:r.last24)&&void 0!==t?t:0)>0}).slice(0,7);return 0===l.length?null:(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-3",children:[(0,n.jsx)(x.X,{level:2,className:"font-heading text-xl text-secondary md:text-2xl",children:r("common.mostReportedSnow")}),(0,n.jsx)(F.default,{href:b.Z5.snowReports(),className:"text-sm font-semibold text-primary hover:underline",children:r("common.loadMore")})]}),(0,n.jsx)("div",{children:l.map(e=>(0,n.jsx)(K,{resort:e},e.uuid))})]})},Q=e=>{var t;let{snowWebcamsProps:r,mostReportedSnowfallItems:l,currentRegionSlug:i}=e,o=!!(null==l?void 0:l.some(e=>{var t;let{snow:r}=e;return(null!==(t=null==r?void 0:r.last24)&&void 0!==t?t:0)>0})),a=!!(null==r?void 0:null===(t=r.snowWebcams)||void 0===t?void 0:t.length);return a||o?(0,n.jsxs)("section",{className:"mt-4 flex items-stretch gap-6 max-lg:flex-col lg:max-xl:mt-6",children:[a&&(0,n.jsx)("div",{className:"min-w-0 flex-[2_1_0] max-lg:flex-none",children:(0,n.jsx)(D,{...r,hasMostReportedSnowfall:o,currentRegionSlug:i})}),o&&(0,n.jsx)("div",{className:"min-w-0 flex-1 max-lg:flex-none",children:(0,n.jsx)(B,{items:l})})]}):null},q=r(31444),G=r(15670);let $=e=>{let{title:t,largeImage:r,translated:l,date:i,name:o,resortPathInfo:a}=e,s=a?b.Z5.resortSnowReport(a):void 0;return(0,n.jsx)(G.e,{title:t,excerpt:l,image:r,category:null!=o?o:void 0,date:(0,W.Zv)(i),href:s,className:"h-full"})},J=e=>{let{title:t,reports:r,regionResorts:l}=e,i=new Map((null!=l?l:[]).map(e=>[Number(e.uuid),e])),o=r.filter(e=>null!==e.largeImage);return 0===o.length?null:(0,n.jsx)("section",{className:"mt-10 md:max-lg:px-4",children:(0,n.jsx)(q.R,{title:t,ariaLabel:t,children:o.map(e=>(0,n.jsx)(q.R.Item,{children:(0,n.jsx)($,{...e,resortPathInfo:i.get(e.resortUuid)})},e.uuid))})})};var X=r(88995),Y=r(19588),ee=r(10466);let et="home-page",er="1.0",en="Home Page";function el(e){var t,p;let{popularSearch:g,backgroundImage:v,snowWebcams:w,resortTopRatingOverall:y,mostReportedSnowfall:j,firstHandReports:N,regionResorts:E,lastNews:R,featuredResort:S,featuredResortRegionResorts:k,featuredResortDescriptionTabs:M,type:T,webcamsLinkRegionSlug:C,suggestions:L}=e,{hasNews:F}=(0,A.EJ)(),{t:H}=(0,s.ZF)("common");
1if(!g||!v)return(0,n.jsx)(O.ZP,{});let W=(0,i.useRouter)(),U=(0,i.useSearchParams)(),D=null!==(t=null==U?void 0:U.get("q"))&&void 0!==t?t:void 0,[V,K]=(0,l.useState)(D),B=(0,l.useCallback)(async()=>{var e,t,n,l;(null===(t=r.g)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.search)&&W.replace(null===(l=r.g)||void 0===l?void 0:null===(n=l.location)||void 0===n?void 0:n.pathname),K(void 0)},[W]),q=(0,Y.Kd)()===ee.I.EN_US;return(0,n.jsx)("div",{style:{overflowX:"hidden"},children:(0,n.jsxs)(o.h9,{adType:"home",adTKey:"other home",children:[(0,n.jsx)(c.e,{current:c.a.MAIN}),(0,n.jsx)(a.I,{id:"home"}),q?(0,n.jsx)(P,{backgroundImage:v,suggestions:L||[],searchQuery:V,clearSearchQuery:B}):(0,n.jsx)(I,{backgroundImage:v,popularSearch:g,searchQuery:V,clearSearchQuery:B}),(0,n.jsx)(f.W2,{width:"xl-only",className:"content-container home-page-container",children:(0,n.jsx)(u.A,{className:"layout-container-noback",children:(0,n.jsxs)(d.o,{children:[(0,n.jsx)(x.X,{level:1,size:"3xl",className:"mb-6 mt-2 text-center lg:mt-0",children:H("homePage.h1Title")}),(0,n.jsx)(Q,{snowWebcamsProps:{headerScope:"h2",showSnowReport:!0,snowWebcams:w,imageLink:b.Z5.resortSnowReport,titleLink:b.Z5.resortSnowReport,header:H("common.featuredWebcams")},currentRegionSlug:C,mostReportedSnowfallItems:null!==(p=null==j?void 0:j.data)&&void 0!==p?p:null}),R&&F&&(0,n.jsx)(z.p,{title:H("homePage.latestNews"),news:R}),(0,n.jsx)(Z,{}),N&&N.reportsList&&N.reportsList.length>0&&(0,n.jsx)(J,{title:H("nav.tab.fhr"),slides:[],reports:N.reportsList,regionResorts:E||[]}),S&&(0,n.jsx)(X.B,{resort:S,regionResorts:k,resortDescriptionTabs:M,utmCampaign:"homepage_widget"}),y&&(0,n.jsx)(_.C,{pageType:T,resortTopRatingOverall:y,isUsedInHomePage:!0})]})})}),(0,n.jsx)(m.W,{}),(0,n.jsx)(h.Footer,{})]})})}},98062:function(e,t,r){"use strict";function n(e){if(!e||"string"!=typeof e)return;let t=e.trim().replace(/\n{3,}/g,"\n\n");if(!t)return;let r=function(e){let t="https://chat.onthesnow.com/";if(!t)return null;let r=encodeURIComponent(e);return"".concat(t,"?userQuery=").concat(r)}(function(e,t){if(e.length<=450)return e;let r=e.slice(0,450),n=r.lastIndexOf(" ");return n>360?r.slice(0,n):r}(t,450));r&&function(e){let t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}(r)}r.d(t,{_:function(){return n}})},39730:function(e,t,r){"use strict";r.d(t,{Q:function(){return m}});var n=r(2265),l=r(1608),i=r(50037),o=r(60128),a=r(70114),s=r(2141),c=r(61050),u=r(32632);let d=0,m=(e,t,r,m,h,f)=>{let x=(0,c.qA)(),p=(0,a.L)(),g=(0,l.tV)(),v=(0,s.w)(),b="local"===i.Vi,w=(0,u.fZ)(t),y=(f||!w)&&!(null==x?void 0:x[m]),j=w?"https://www.youtube-nocookie.com/embed/".concat(w,"?autoplay=1&mute=1"):t;i.jR||i.DM||o.gd.debug("Youtube detection",t,w,j),(0,n.useEffect)(()=>{if(j&&(p||!y||b)&&m&&e&&v){e.id=e.id||"".concat("OPT_ANON_IFRAME_").concat(d++),e.innerHTML="";let t=[];h&&Object.keys(h).forEach(e=>{t.push("".concat(e,'="').concat(h[e],'"'))});let n='<iframe src="'.concat(j,'" ').concat(t.join(" "),' title="').concat(r,'" allow="autoplay" />');i.jR||o.gd.debug("OneTrust.InsertHtml",n),y&&!b?p.InsertHtml(n,"".concat(e.id),()=>o.gd.debug("Added iframe with OpnAnon",j),{},m,!0):(o.gd.debug("Added iframe without OpnAnon",j),e.innerHTML=n)}},[p,v,j,g,y,e])}},6379:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21356);let l=(e,t)=>{if(!e||!e.includes("cdn.bfldr.com"))return e;let r=(0,n.d)(),l=e.replace(/&format=[a-z]+/,"");return r?"".concat(l,"&width=").concat(null!=t?t:640):"".concat(l,"&width=").concat(null!=t?t:1024)}},21356:function(e,t,r){"use strict";r.d(t,{d:function(){return x}});var n="undefined"!=typeof window?window:{screen:{},navigator:{}},l=(n.matchMedia||function(){return{matches:!1}}).bind(n),i=function(){};n.addEventListener&&n.addEventListener("p",i,{get passive(){return!0}}),n.removeEventListener&&n.removeEventListener("p",i,!1);var o="ontouchstart"in n,a="TouchEvent"in n,s=o||a&&l("(any-pointer: coarse)").matches,c=(n.navigator.maxTouchPoints||0)>0||s,u=n.navigator.userAgent||"",d=l("(pointer: coarse)").matches&&/iPad|Macintosh/.test(u)&&Math.min(n.screen.width||0,n.screen.height||0)>=768,m=(l("(pointer: coarse)").matches||!l("(pointer: fine)").matches&&o)&&!/Windows.*Firefox/.test(u),h=l("(any-pointer: fine)").matches||l("(any-hover: hover)").matches||d||!o,f=c&&(h||!m)?"hybrid":c?"touchOnly":"mou
1seOnly";let x=()=>"mouseOnly"!==f},70114:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(2265),l=r(1608);let i=e=>{let t=(0,l.tV)(),r=(0,n.useRef)(!1),[i,o]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{"undefined"!=typeof OneTrust&&!r.current&&t.ready&&(r.current=!0,o(OneTrust),e&&e(OneTrust))},[t]),i}},2141:function(e,t,r){"use strict";r.d(t,{w:function(){return i}});var n=r(2265),l=r(50037);let i=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{l.DM||t(!0)},[]),e}},32632:function(e,t,r){"use strict";r.d(t,{PU:function(){return o},fZ:function(){return l},iX:function(){return i}});let n=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,l=e=>{let t=e.match(n);return!!t&&11===t[2].length&&t[2]},i=e=>"https://i.ytimg.com/vi/".concat(e,"/mqdefault.jpg"),o=e=>{let t=new URLSearchParams({autoplay:"1",rel:"0",playsinline:"1"});return"https://www.youtube-nocookie.com/embed/".concat(e,"?").concat(t.toString())}},98575:function(e,t,r){"use strict";r.d(t,{F:function(){return i},e:function(){return o}});var n=r(2265);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}function o(...e){return n.useCallback(i(...e),e)}},37053:function(e,t,r){"use strict";r.d(t,{Z8:function(){return u},g7:function(){return d}});var n,l=r(2265),i=r(98575),o=r(57437),a=Symbol.for("react.lazy"),s=(n||(n=r.t(l,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function u(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(c(r)&&"function"==typeof s&&(r=s(r._payload)),l.isValidElement(r)){var o;let e,a;let s=(o=r,(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.ref:(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.props.ref:o.props.ref||o.ref),c=function(e,t){let r={...t};for(let n in t){let l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...i}:"className"===n&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==l.Fragment&&(c.ref=t?(0,i.F)(t,s):s),l.cloneElement(r,c)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=l.forwardRef((e,r)=>{let{children:n,...i}=e;c(n)&&"function"==typeof s&&(n=s(n._payload));let a=l.Children.toArray(n),u=a.find(h);if(u){let e=u.props.children,n=a.map(t=>t!==u?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...i,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,o.jsx)(t,{...i,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var d=u("Slot"),m=Symbol("radix.slottable");function h(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}}}]); 2//# sourceMappingURL=3124-f598d9bfee837ce5.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.