PageSourceSearch

https://nextjs.onthesnow.com/_next/static/chunks/app/skireport/page-d1d642fa4d7293b3.js

js onthesnow.com collected 2026-10-01 10:29:13 UTC 13,187 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7718],{60238:function(e,t,n){Promise.resolve().then(n.bind(n,64548)),Promise.resolve().then(n.bind(n,53752))},20265:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},92451:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},10407:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},17e3:function(e,t,n){"use strict";n.d(t,{N:function(){return d}});var r=n(57437),s=n(66856),l=n(19296),i=n(59191),o=n(27110),a=n(81851);let d=e=>{let{t}=(0,a.ZF)("common");return(0,r.jsx)(o.W2,{as:"section",width:"xl-only",className:"px-4 py-16 md:py-24",children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl space-y-6 text-center",children:[(0,r.jsx)(l.X,{level:1,children:t("common.dataError")}),(0,r.jsx)(i.x,{variant:"muted",children:t("common.dataErrorBody")}),(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsx)(s.o,{})})]})})}},2637:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=n(57437);n(2265);var s=n(27648),l=n(19588),i=n(10466),o=n(16010);let a=()=>(0,l.Kd)()===i.I.EN_US,d=e=>{var t;let{resort:n,href:l,showRegion:i=!1,className:d}=e,c=null===(t=n.region_en)||void 0===t?void 0:t.trim(),u=i&&!!c&&a();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{href:l,className:(0,o.cn)("hover:text-primary hover:underline",d),children:n.title}),u&&(0,r.jsx)("span",{className:"font-normal text-muted-foreground",children:", ".concat(c)})]})}},92631:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(57437);n(2265);var s=n(27648),l=n(19296),i=n(16010),o=n(95417),a=n(81851);let d=e=>{let{regions:t,linkFor:n}=e;return(0,r.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:t.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(s.default,{href:n(e),className:"text-sm font-semibold text-primary hover:underline",children:e.title})},e.uuid))})},c=e=>{let{section:t,linkFor:n}=e,{t:i}=(0,a.ZF)("common"),{group:c,regions:u}=t,h="font-heading text-lg text-secondary md:text-xl";return(0,r.jsxs)(o.q,{children:[(0,r.jsxs)("div",{className:"mb-4 flex flex-wrap items-baseline justify-between gap-3 border-b border-border pb-3",children:[c.slug?(0,r.jsx)(s.default,{href:n(c),className:"hover:underline",children:(0,r.jsx)(l.X,{level:2,className:h,children:c.title})}):(0,r.jsx)(l.X,{level:2,className:h,children:c.title}),(0,r.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"".concat(u.length," ").concat(i(1===u.length?"common.regionWord":"common.regionsWord"))})]}),(0,r.jsx)(d,{regions:u,linkFor:n})]})},u=e=>{let{sections:t,linkFor:n}=e,s=t.filter(e=>e.regions.length>0);return 0===s.length?null:(0,r.jsx)("div",{className:"space-y-5",children:s.map(e=>(0,r.jsx)(c,{section:e,linkFor:n},e.group.uuid))})}},59571:function(e,t,n){"use strict";n.d(t,{p:function(){return j}});var r=n(57437),s=n(2265),l=n(81851),i=n(82258),o=n(31444),a=n(57973),d=n(19588),c=n(10466);let u="https://it.newsonthesnow.com/news/wp-content/themes/otstheme/images/default-img-skiinfo.jpg",h="https://it.newsonthesnow.com/news/wp-content/themes/otstheme/images/default-img.jpg",m={[c.I.EN_US]:h,[c.I.DE_DE]:u,[c.I.EN_GB]:h,[c.I.FR_FR]:u,[c.I.IT_IT]:u,[c.I.PL_PL]:u,[c.I.CS_CZ]:h,[c.I.SK_SK]:h,[c.I.ES_ES]:"",[c.I.DA_DK]:"",[c.I.NN_NO]:"",[c.I.NL_NL]:"",[c.I.SV_SE]:""},x=()=>m[(0,d.Kd)()];var g=n(15104),p=n(50037);let v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150,[l,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(!p.DM){let s=()=>{if(e.current){let n=e.current.getBoundingClientRect(),s=n.y>-r&&n.y<window.innerHeight+r,l=n.y+n.height>-r&&n.y+n.height<window.innerHeight+r,o=s||l;t?i(e=>e||o):i(o)}else i(e=>(!e||!!t)&&e)};return window.addEventListener("scroll",s),window.addEventListener("resize",s),n||s(),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}}},[i]),l};var f=n(15670);let w=e=>{var t,n;let{news:l}=e,i=(0,s.useRef)(null),o=v(i,!0)?l.image||x():"",d=(0,g.ct)(l.title||""),c=(0,g.ct)(l.description||""),u=null===(n=l.categories)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.t
1itle,h=l.link||"";return(0,r.jsx)("div",{ref:i,className:"h-full",children:(0,r.jsx)(f.e,{title:d,excerpt:c,image:o,category:u,href:h,external:(0,a.Z)(h),className:"h-full"})})},j=e=>{let t,n,{title:s,news:a,weatherNews:d}=e,{t:c}=(0,l.ZF)("common");return d?(t=i.Z5.weather,n=c("snowWeather.home.viewAllWeatherNews")):s&&(t=i.Z5.magazine,n=c("common.loadMore")),(0,r.jsx)("section",{className:"mt-4 md:max-lg:px-4",children:(0,r.jsx)(o.R,{title:s,viewAllHref:t,viewAllLabel:n,children:a.map(e=>(0,r.jsx)(o.R.Item,{children:(0,r.jsx)(w,{news:e})},e.uuid))})})}},66856:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(57437),s=n(2265),l=n(16010),i=n(81851),o=n(68484),a=n(53752),d=n(90713);let c=e=>{let{className:t,placeholder:n,searchQuery:c,clearSearchQuery:u}=e,{t:h}=(0,i.ZF)("common"),m=(0,a.z$)(),[x,g]=(0,s.useState)(!1),p=(0,s.useCallback)(()=>{u&&u();let e=!x;e&&((0,d.EV)(),m.searchBox()),g(e)},[x]);(0,s.useEffect)(()=>{g(!!c)},[c]);let v=(0,s.useCallback)(e=>null==e?void 0:e.preventDefault(),[]),f=(0,s.useCallback)(e=>{(0,d._L)()||null==e||e.target.blur()},[]);return(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)(o.SearchPopup,{closePopup:p,query:c}),(0,r.jsxs)("form",{className:(0,l.cn)("relative mx-auto mb-[50px] w-3/5 max-xl:w-full",t),onSubmit:v,children:[(0,r.jsx)("input",{className:"block w-full h-[60px] bg-white opacity-[0.85] shadow-[0_15px_53px_rgba(0,0,0,0.23)] rounded-[9px] text-[1.009375rem] leading-[117%] text-[#576A85] px-[18px] py-5 border-0 outline-none max-md:h-[45px] max-md:rounded-[9px] max-md:text-xs max-md:text-[#1F1F1F] max-md:px-[13px] max-md:py-[14px] max-md:opacity-100",type:"text",placeholder:n||h("homePage.searchBarHelpText"),onClick:p,onFocus:f}),(0,r.jsx)("button",{type:"submit",className:"absolute top-[5px] right-[5px] min-w-[120px] h-[50px] bg-[#33B0D9] rounded-md font-medium text-sm leading-[117%] text-white border-0 max-md:min-w-[86px] max-md:h-[34px]",onClick:p,children:h("common.searchButton")})]})]})}},60746:function(e,t,n){"use strict";n.d(t,{ZP:function(){return h}});var r=n(57437),s=n(99376),l=n(2265),i=n(17e3),o=n(16788),a=n(21025),d=n(80712),c=n(53752),u=n(60128);function h(){var e;let t=null!==(e=(0,s.usePathname)())&&void 0!==e?e:"";return(0,l.useEffect)(()=>{var e;u.gd.error({tag:"400-page",message:"Page Error",data:{url:null===(e=n.g.location)||void 0===e?void 0:e.href,route:t}})},[t]),(0,r.jsx)(c.AnalyticsContext,{templateId:"1.2",templateName:"400 Page",children:(0,r.jsx)(o.h9,{adType:"other",adTKey:"error",children:(0,r.jsxs)("div",{style:{background:"#f4f5f5"},children:[(0,r.jsx)(a.e,{current:a.a.MAIN}),(0,r.jsx)(i.N,{}),(0,r.jsx)(d.Footer,{})]})})})}},64548:function(e,t,n){"use strict";n.r(t),n.d(t,{TEMPLATE_ID:function(){return R},TEMPLATE_NAME:function(){return _},default:function(){return Z}});var r=n(57437),s=n(2265),l=n(82258),i=n(92631),o=n(16788),a=n(87489),d=n(47800),c=n(60746),u=n(21025),h=n(20104),m=n(80712),x=n(27110),g=n(59571),p=n(62754),v=n(81851),f=n(80734),w=n(63864),j=n(47382),b=n(49018),N=n(2637),y=n(19296),k=n(59191),E=n(16010),F=n(4233),S=n(95417);let R="2.0",_="Snow & Weather Home",C=e=>{var t;let n=null===(t=e.forecast)||void 0===t?void 0:t.slice(0,3);if(n&&0!==n.length)return n.reduce((e,t)=>{var n;return e+(null!==(n=t.snow)&&void 0!==n?n:0)},0)},I=e=>{let{resorts:t}=e,{t:n}=(0,v.ZF)("common"),i=(0,f.WJ)("cmOrInchShort"),o=n("common.dash"),[a,d]=(0,s.useState)(!1),c=a?t:t.slice(0,15),u=t.length>15;return 0===t.length?null:(0,r.jsxs)("section",{children:[(0,r.jsxs)("div",{className:"mb-4 flex items-end justify-between gap-3",children:[(0,r.jsx)(y.X,{level:2,children:n("home.snowLeaderboard.title")}),(0,r.jsx)("span",{className:"hidden text-xs uppercase tracking-wider text-muted-foreground sm:block",children:n("home.snowLeaderboard.sortedBy")})]}),(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsxs)(w.w,{children:[(0,r.jsx)(w.w.Head,{children:(0,r.jsxs)(w.w.HeadRow,{children:[(0,r.jsx)(w.w.HeadCell,{children:n("region.liftTickets.resort")}),(0,r.jsx)(w.w.HeadCell,{align:"right",children:n("common.base")}),(0,r.jsx)(w.w.HeadCell,{align:"right",children:n("resort.skiReport.liftOpen")}),(0,r.jsx)(w.w.HeadCell,{align:"right",children:n("resort.skiReport.runsOpen")}),(0,r.jsx)(w.w.HeadCell,{align:"right",children:n("resort.skiReport.72hSnowfall")}),(0,r.jsx)(w.w.HeadCell,{align:"right",children:n("region.skiReport.snowForecast")})]})}),(0,r.jsx)(w.w.Body,{children:c.map((e,t)=>{var n,s;let a=C(e);return(0,r.jsxs)(w.w.Row,{zebra:t%2==0,children:[(0,r.jsx)(w.w.RowHeader,{children:(0,r.jsx)(N.H,{resort:e,href:l.Z5.resortSnowReport(e),showRegion:!0})}),(0,r.jsx)(w.w.Cell,{align:"right",children:(null===(n=e.snow)||void 0===n?void 0:n.base)?i(e.snow.base):o}),(0,r.jsx)(w.w.Cell,{align:"right",children:(0,r.jsx)(b.n,{stat:e.lifts,dash:o})}),(0,r.jsx)(w.w.Cell,{align:"right",children:(0,r.jsx)(b.n,{stat:e.runs,dash:o})}),(0,r.jsx)(w.w.Cell,{align:"right",className:"font-semibold",children:(null===(s=e.snow)||void 0===s?void 0:s.last72)?i(e.snow.last72):o}),(0,r.jsx)(w.w.Cell,{align:"right",children:a?i(a):o})]},e.uuid)})})]})}),(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(S.q,{as:"div",padding:"none",className:"overflow-hidden",children:c.map(e=>{var t,s;let a=C(e);return(0,r.jsxs)(j.F,{layout:"grid",heading:(0,r.jsx)("div",{children:(0,r.jsx)(N.H,{resort:e,href:l.Z5.resortSnowReport(e),showRegion:!0})}),children:[(0,r.jsx)(j.F.Stat,{label:n("common.base"),value:(null===(t=e.snow)||void 0===t?void 0:t.base)?i(e.snow.base):o}),(0,r.jsx)(j.F.Stat,{label:n("resort.skiReport.72hSnowfall"),value:(null===(s=e.snow)||void 0===s?void 0:s.last72)?i(e.snow.last72):o}),(0,r.jsx)(j.F.Stat,{label:n("region.skiReport.snowForecast"),value:a?i(a):o})]},e.uuid)})})}),u&&(0,r.jsx)("div",{className:"mt-5 flex justify-center",children:(0,r.jsx)("button",{type:"button",onClick:()=>d(e=>!e),className:(0,E.cn)("inline-flex items-center gap-1.5 rounded-full border border-border bg-background px-4 py-2","text-sm font-semibold text-foreground transition hover:bg-muted"),children:a?n("home.snowLeaderboard.showFewer"):n("home.snowLeaderboard.showAll",{count:t.length})})})]})};function Z(e){var t,n,s;let{regions:f,lastNewsWeather:w,backgroundImage:j,topSnowResorts:b}=e,{t:N}=(0,v.ZF)("common"),{hasNews:E}=(0,p.EJ)();if(!j)return(0,r.jsx)(c.ZP,{});let S=null!==(t=null==b?void 0:b.data)&&void 0!==t?t:[],_=null!==(n=null==f?void 0:f.regions)&&void 0!==n?n:[],C=(null!==(s=null==f?void 0:f.groups)&&void 0!==s?s:[]).map(e=>({group:e,regions:_.filter(t=>t.group===e.uuid)}));return(0,r.jsxs)(o.h9,{adType:"home",adTKey:"other home",meta:{Fs:void 0,Rs:void 0,Th:void 0,Tl:void 0,snow:void 0,Wc:void 0},children:[(0,r.jsx)(u.e,{current:u.a.SNOW_REPORTS}),(0,r.jsx)(a.I,{id:"skireport"}),(0,r.jsx)(x.W2,{width:"xl-only",className:"content-container",children:(0,r.jsxs)("div",{className:"mt-4 space-y-10 px-4 pb-16 md:mt-8 md:px-0",children:[(0,r.jsxs)("header",{className:"space-y-4",children:[(0,r.jsx)(y.X,{level:1,children:N("snowWeather.home.heroTitle")}),(0,r.jsx)(k.x,{variant:"default",className:"text-base leading-relaxed text-foreground
1/85",children:N("snowWeather.home.seoText")})]}),(0,r.jsx)(I,{resorts:S}),(0,r.jsx)(d.d,{isFirst:!0}),(0,r.jsx)(i.y,{sections:C,linkFor:l.Z5.regionSnowReport}),E&&w&&(0,r.jsx)(g.p,{title:N("homePage.latestNews"),news:w,weatherNews:!0}),(0,r.jsx)(F.c,{templateId:R})]})}),(0,r.jsx)(h.W,{}),(0,r.jsx)(m.Footer,{})]})}},47800:function(e,t,n){"use strict";n.d(t,{d:function(){return h}});var r=n(57437),s=n(16010),l=n(2265),i=n(66527),o=n(16788),a=n(14021),d=n(57082),c=n(50037),u=n(26473);let h=e=>{let{wrapperClassName:t,className:n,isFirst:h}=e,[m,x]=(0,l.useState)(!1),g=(0,l.useRef)(null),{registerCandidate:p,unRegisterCandidate:v}=(0,o.vg)();(0,l.useEffect)(()=>{let e=p(g,x);return()=>v(e)},[]);let f=h?d.S.RegularFirstOnPage:d.S.Regular;return(0,r.jsx)("div",{"data-adunit":f,className:(0,s.cn)(t,!m&&"!m-0 !p-0 h-0"),children:(0,r.jsxs)(u.x,{children:[(0,r.jsx)("div",{ref:g,className:(0,s.cn)("absolute h-2.5 w-2.5 rounded-full z-[100] -translate-y-1.5",m?"bg-[#0B7595] z-[101] translate-x-0.5":"bg-red-500 -translate-x-0.5",c.jR&&"opacity-0 pointer-events-none"),title:m?"Debug: Advertisement is requested here":"Debug: Advertisement is ignored here"}),m&&(0,r.jsx)(i.lT,{generator:a.l4[f],className:(0,s.cn)(n,i.DQ.infinite)})]})})}}},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,6931,8778,2971,2117,1744],function(){return e(e.s=60238)}),_N_E=e.O()}]);
2//# sourceMappingURL=page-d1d642fa4d7293b3.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.