PageSourceSearch

https://www.kmvlehti.fi/_next/static/chunks/pages/weatherWidget-96bfad76ee2302ff.js

js kmvlehti.fi collected 2026-10-02 12:15:04 UTC 7,361 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4400],{14400:(e,t,l)=>{"use strict";l.d(t,{J:()=>f});var r=l(37876),n=l(27964),a=l(23191),o=l(28315),i=l(69998),s=l(18847),u=l.n(s),d=l(23453);let c=u()(()=>Promise.all([l.e(1306),l.e(5039)]).then(l.t.bind(l,21306,19)).then(e=>e.SupersaaWeatherWidget),{loadableGenerated:{webpack:()=>[21306]},ssr:!1,...(0,d.d)()}),f=e=>{let t,l,s=(0,n.c)(8),{id:u}=e,d=(0,i.g)(),{supersaaWidgetEnv:f}=(0,a.U)(),{position:m}=(0,o.u)(),p=u?"weather-widget-".concat(u):void 0,h="main"===m;return s[0]!==d||s[1]!==f||s[2]!==h?(t=(0,r.jsx)(c,{env:f,isMainLane:h,inkAppParams:d}),s[0]=d,s[1]=f,s[2]=h,s[3]=t):t=s[3],s[4]!==u||s[5]!==p||s[6]!==t?(l=(0,r.jsx)("div",{id:p,"data-id":u,className:"weather-widget-container",children:t}),s[4]=u,s[5]=p,s[6]=t,s[7]=l):l=s[7],l}},18847:(e,t,l)=>{e.exports=l(31018)},23453:(e,t,l)=>{"use strict";l.d(t,{d:()=>r});let r=e=>({loading:t=>{var l;return(e=>{let{error:t}=e})(t),null!=(l=null==e?void 0:e(t))?l:null}})},26471:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=l(64252)._(l(14232)).default.createContext(null)},28315:(e,t,l)=>{"use strict";l.d(t,{u:()=>s,w:()=>i});var r=l(37876),n=l(27964),a=l(14232);let o=(0,a.createContext)({position:"main"}),i=(0,a.memo)(e=>{let t,l,a=(0,n.c)(5),{children:i,lane:s}=e;a[0]!==s.position?(t={position:s.position},a[0]=s.position,a[1]=t):t=a[1];let u=t;return a[2]!==i||a[3]!==u?(l=(0,r.jsx)(o.Provider,{value:u,children:i}),a[2]=i,a[3]=u,a[4]=l):l=a[4],l}),s=()=>(0,a.useContext)(o)},31018:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return u},noSSR:function(){return s}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a=l(64252);l(37876),l(14232);let o=a._(l(61165));function i(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function u(e,t){let l=o.default,r={loading:e=>{let{error:t,isLoading:l,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let n=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?l({...r,loader:()=>null!=n?n().then(i):Promise.resolve(i(()=>null))}):(delete r.webpack,delete r.modules,s(l,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61165:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=l(64252)._(l(14232)),n=l(26471),a=[],o=[],i=!1;function s(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function s(){if(!a){let t=new u(e,l);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!i){let e=l.webpack&&1?l.webpack():l.modules;e&&o.push(t=>{for(let l of e)if(t.includes(l))return s()})}function d(e,t){let o;s(),(o=r.default.useContext(n.LoadableContext))&&Array.isArray(l.modules)&&l.modules.forEac
1h(e=>{o(e)});let i=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return i.loading||i.error?r.default.createElement(l.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:a.retry}):i.loaded?r.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return d.preload=()=>s(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(s,e)}function c(e,t){let l=[];for(;e.length;){let r=e.pop();l.push(r(t))}return Promise.all(l).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),d.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let l=()=>(i=!0,t());c(o,e).then(l,l)})},window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},69998:(e,t,l)=>{"use strict";l.d(t,{g:()=>s});var r=l(27964),n=l(17924),a=l(63593),o=l(62498),i=l(14232);let s=()=>{let e,t,l,s,d=(0,r.c)(6),{useInkBridge:c}=(0,a.g$)();d[0]!==c?(e=c?{userlocation:{hasPermission:!1,locationEnabled:!0},requestInkAppLocationPermission:u}:void 0,d[0]=c,d[1]=e):e=d[1];let[f,m]=(0,i.useState)(e);d[2]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{var t,l,r,n,a;m({userlocation:{lat:null==(l=e.detail)?void 0:l.lat,lon:null==(r=e.detail)?void 0:r.lon,hasPermission:null!=(t=null==(n=e.detail)?void 0:n.hasPermission)&&t,locationEnabled:(null==(a=e.detail)?void 0:a.locationEnabled)!==!1},requestInkAppLocationPermission:u})},d[2]=t):t=d[2];let p=t;return d[3]!==c?(l=()=>(c&&((0,n.yb)(o.mB.UserLocationResponse,p),(0,n.Wr)({type:o.oi.GetUserLocation,maximumAge:9e5})),function(){c&&(0,n.Bv)(o.mB.UserLocationResponse,p)}),s=[p,u,c],d[3]=c,d[4]=l,d[5]=s):(l=d[4],s=d[5]),(0,i.useEffect)(l,s),f};function u(){(0,n.Wr)({type:o.oi.RequestUserLocationPermission})}},71598:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>i,default:()=>s});var r=l(37876),n=l(27964),a=l(14400),o=l(14232),i=!0;let s=()=>{let e,t,l,i=(0,n.c)(5),[s,u]=(0,o.useState)(!1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{u(!0)},i[0]=e):e=i[0],i[1]!==s?(t=[s],i[1]=s,i[2]=t):t=i[2],(0,o.useEffect)(e,t),i[3]!==s?(l=s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.J,{}),(0,r.jsx)("style",{children:"\n      /* This reset is needed because normal HTML styles are not included in this page */\n        body {\n          all: unset;\n        }\n        .weather-widget-container {\n          margin-bottom: 0;\n        }\n      "})]}):null,i[3]=s,i[4]=l):l=i[4],l}},73836:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/weatherWidget",function(){return l(71598)}])}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=73836)),_N_E=e.O()}]);

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.