PageSourceSearch

https://www.nokianuutiset.fi/_next/static/chunks/3036.6585ca6e7fa446e5.js

js nokianuutiset.fi collected 2026-10-02 08:14:46 UTC 9,577 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3036],{69319:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){var i,o,s;function u(n){e.removeListener(t,l),r(n)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",u),n([].slice.call(arguments))}d(e,t,l,{once:!0}),"error"!==t&&(i=e,o=u,s={once:!0},"function"==typeof i.on&&d(i,"error",o,s))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,a=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,console&&console.warn&&console.warn(a)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function d(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,u=Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else for(var a=l.length,c=h(l,a),n=0;n<a;++n)r(c[n],this,t);return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
1("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},o.prototype.listenerCount=v,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},72246:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(37876),i=n(61230),o=n(81389),s=n(53409),u=n(61591),l=n(18056),a=n(32045),c=n(72848),f=n(59575),p=n(14232),v=n(27964),h=n(23191),d=n(92739),y=n(3009);let m=async(e,t,n,r)=>{try{var i;let o=await (0,y.Y)(e.id,t,n,r,"no-playlist");return null!=(i=o.mediaUrl)?i:o.sampleMediaUrl}catch(t){"object"==typeof t&&null!==t&&"status"in t&&404===t.status||console.error("Lane audio: could not resolve the TTS track of article ".concat(e.id),t);return}};function g(e){console.error("Lane audio: could not unload the player",e)}let L={layout:{hidePrecoverVolumeControl:!0}},b=e=>{let{items:t,label:n="Kuuntele",testId:y}=e,b=(0,c.P)(),{isDarkMode:_}=(0,f.DP)(),x=(0,p.useMemo)(()=>(0,a.Tj)(b,_,!1),[b,_]),{playerRef:j,player:w}=(0,i.RN)(L,x,e=>{("contentEnded"===e.type||"finished"===e.type||"ended"===e.type)&&N()}),{currentIndex:O,isLoading:E,isError:C,start:k,playNext:N,stop:P}=(e=>{let t,n,r,i,o,s,u=(0,v.c)(21),{items:l,player:a}=e,f=(0,c.P)(),{environment:y}=(0,h.U)(),{getValidSessionToken:L}=(0,d.sb)(),[b,_]=(0,p.useState)(null),[x,j]=(0,p.useState)(!1),[w,O]=(0,p.useState)(!1),E=(0,p.useRef)(0),C=(0,p.useRef)(null),k=(0,p.useRef)(null),N=(0,p.useRef)(!1);u[0]!==f||u[1]!==y||u[2]!==L||u[3]!==l||u[4]!==a?(t=async(e,t)=>{if(!a)return;let n=E.current=E.current+1;j(!0),O(!1);for(let r=e;r<l.length;r++){let e=l[r];if(!e)continue;let i=await m(e,f,y,L);if(n!==E.current)return;if(i){if(await a.loadUrl("tts",i,{autoplay:!0,trigger:t}),n!==E.current)return;N.current=!0,C.current=r,_(r),j(!1);return}}n===E.current&&(C.current=null,_(null),j(!1),O(!N.current))},u[0]=f,u[1]=y,u[2]=L,u[3]=l,u[4]=a,u[5]=t):t=u[5];let P=t;u[6]!==P?(n=(e,t)=>{P(e,t).catch(e=>{console.error("Lane audio: playback failed",e),C.current=null,_(null),j(!1),O(!0)})},u[6]=P,u[7]=n):n=u[7];let R=n;u[8]!==R?(r=()=>{k.current=null,N.current=!1,R(0,"user")},u[8]=R,u[9]=r):r=u[9];let M=r;u[10]!==R?(i=()=>{let e=C.current;null!==e&&k.current!==e&&(k.current=e,R(e+1,"auto"))},u[10]=R,u[11]=i):i=u[11];let T=i;u[12]!==a?(o=()=>{E.current=E.current+1,C.current=null,k.current=null,_(null),j(!1),O(!1),null==a||a.unload("user").catch(g)},u[12]=a,u[13]=o):o=u[13];let S=o;return u[14]!==b||u[15]!==w||u[16]!==x||u[17]!==T||u[18]!==M||u[19]!==S?(s={currentIndex:b,isLoading:x,isError:w,start:M,playNext:T,stop:S},u[14]=b,u[15]=w,u[16]=x,u[17]=T,u[18]=M,u[19]=S,u[20]=s):s=u[20],s})({items:t,player:w}),R=null===O?void 0:t[O];return(0,r.jsxs)(r.Fragment,{children:[E?(0,r.jsx)("span",{className:"flex size-[36px] items-center justify-center","data-testid":"".concat(y,"-loading"),"aria-live":"polite","aria-busy":"true",children:(0,r.jsx)(l.y,{})}):R?(0,r.jsx)(o.x,{small:!0,iconOnly:!0,label:"",onClick:P,"aria-label":"Lopeta kuuntelu",icon:(0,r.jsx)(s.U,{}
1),"data-testid":"".concat(y,"-close")}):(0,r.jsx)(o.x,{small:!0,iconOnly:!0,label:"",onClick:()=>{null==w||w.preparePlayback(),k()},"aria-label":"".concat(n,", ").concat(t.length," juttua"),icon:(0,r.jsx)(u.h,{}),"data-testid":"".concat(y,"-play")}),(0,r.jsxs)("div",{className:"w-full","data-testid":y,children:[R&&(0,r.jsxs)("p",{className:"nof-ui-body-small text-nof-foreground-secondary py-nof-8","data-testid":"".concat(y,"-now-playing"),"aria-live":"polite",children:["Kuuntelet juttua ",(null!=O?O:0)+1,"/",t.length]}),C&&(0,r.jsx)("p",{className:"nof-ui-body-small text-nof-foreground-secondary pt-nof-8","data-testid":"".concat(y,"-error"),role:"alert",children:"Juttuja ei voi kuunnella juuri nyt."}),(0,r.jsx)("div",{style:{display:R?void 0:"none"},ref:j})]})]})}}}]);

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.