PageSourceSearch

https://www.bt.no/seksjon/dist/3328-116c75108e9add522af9.min.js

js bt.no collected 2026-10-01 10:39:46 UTC 16,887 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfastenposten=self.webpackChunkfastenposten||[]).push([[3328],{1294:(e,t,n)=>{n.d(t,{n:()=>i,Q:()=>u});var o=n(4099),r=n(4362);function i(){const e=function(){const e=document.cookie.split(";");for(let t=0;t<e.length;t++){const n=e[t].split("=",2),o=n[0].replace(/^\s+|\s+$/g,""),r=n[1];if("abx2"===o)return decodeURIComponent(r)}return""}(),t=parseInt(e,10);return t<0||t>=100||Number.isNaN(t)?null:t}const a=()=>{const e=new URLSearchParams(window.location.search).get("userabgroup");if(null===e)return;const t=Number.parseInt(e,10);return"number"==typeof(n=t)&&Number.isInteger(n)&&n>=0&&n<=9?t:void 0;var n},s=e=>{if(e&&0!==e.length)return Math.abs(function(e){let t=0;if(!e||0==e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(e)%10)};async function u(){const e=a();if(void 0!==e)return e;const t=(0,r.VX)();if(t)return s(t.user.userId.toString());try{const e=await(0,o.getSessionData)();if(!e)return;return s(e.user.userId.toString())}catch(e){return void console.error("Failed to calculate A/B group - failed to get user session data",e)}}},898:(e,t,n)=>{n.d(t,{fasten:()=>a});var o=n(5954);function r(e,t){var n;const o=document.querySelector(`meta[name='${e}']`);return null!==(n=null==o?void 0:o.dataset[t])&&void 0!==n?n:null}function i(e){var t;const n=document.querySelector(`meta[name='${e}']`);return null!==(t=null==n?void 0:n.content)&&void 0!==t?t:null}const a={publicationId:function(){return i("publication-id")},siteVersion:function(){return i("site-version")},sectionName:function(){return r("section-info","sectionName")},sectionPath:function(){return r("section-info","sectionPath")},pathName:function(){return window.location.pathname.replace(/^\//,"")},isMobileApp:o.KR,isAndroidApp:o.lB,fetch:function(e,t,n=null,o="json",r=!1,i=null){return new Promise((function(a,s){const u=new XMLHttpRequest;u.open(e,t),n&&Object.keys(n).forEach((e=>u.setRequestHeader(e,n[e]))),u.responseType=o,u.withCredentials=r,u.onload=function(){this.status>=200&&this.status<300?a(u.response):s({status:this.status,statusText:u.statusText})},u.onerror=function(){s({status:this.status,statusText:u.statusText})},u.send(i)}))},devMode:"true"===r("section-info","devMode")}},712:(e,t,n)=>{var o,r;n.d(t,{Mu:()=>u,Pf:()=>i,Wu:()=>a,e7:()=>s});const i="undefined"!=typeof window&&"function"==typeof(null===(o=window.localStorage)||void 0===o?void 0:o.getItem)&&"function"==typeof(null===(r=window.localStorage)||void 0===r?void 0:r.setItem),a=e=>{if(!i)return console.error("localStorage is not supported"),null;try{return window.localStorage.getItem(e)}catch(t){return console.error(`Error getting item "${e}" from localStorage:`,t),null}},s=(e,t)=>{if(i)try{window.localStorage.setItem(e,t)}catch(t){console.error(`Error saving item "${e}" to localStorage:`,t)}else console.error("localStorage is not supported")},u=e=>{if(i)try{window.localStorage.removeItem(e)}catch(t){console.error(`Error removing item "${e}" from localStorage:`,t)}else console.error("localStorage is not supported")}},3835:(e,t,n)=>{n.d(t,{Dl:()=>c,H6:()=>l,YT:()=>p});var o=n(3387),r=n(306),i=n(1902),a=n(1347),s=n(589);let u;const d=e=>{const{providerId:t}=a.X.pulseConfig;return{deployStage:e,providerId:t,productName:"fastenposten",builders:{actor:(0,i.Xb)()},sdkConfigInput:{nativeJwe:window.hermesJwe,altEventHandler:window.pulseEventHandler,autoCreateConsents:!0,requireAdvertisingOptIn:!0,adChoicesEnabled:!0}}},l=async()=>{if(!u){const{deployStage:e,deployTag:t}=p(),n=d(e);u=o.v.fromAutotracker(window.pulse,n).then((n=>("dev"===e&&n.updateBaseEvent({deployTag:t,deployStage:e}),n)))}return u},c=async()=>{if(!u){const{deployStage:e,deployTag:t}=p(),n=d(e),i=o.v.fromPulseTracker(r.Tracker,n);"dev"===e&&i.updateBaseEvent({deployTag:t,deployStage:e}),u=Promise.resolve(i)}return u};function p(){const e=window.location.hostname;return(0,s.M)()?{deployStage:"dev",deployTag:"fasten-dev"}:(0,s.W)()?{deployStage:"dev",deployTag:"fasten-pr"}:e.startsWith("alpha.")?{deployStage:"dev",deployTag:"fasten-alpha"}:e.startsWith("beta.")?{deployStage:"dev",deployTag:"fasten-beta"}:{deployStage:"pro",deployTag:"fasten-prod"}}},5569:(e,t,n)=>{n.d(t,{BR:()=>r,DK:()=>m,LN:()=>g,j_:()=>a,tC:()=>y,uq:()=>i,xK:()=>p});var o=n(1294);function r(e){const t=function(){let e=null;try{e=window.localStorage,e&&e.setItem&&e.getItem&&e.removeItem?(e.setItem("test","test"),e.removeItem("test")):e=null}catch(t){console.log("Unable to get a working localStorage instance, probably security settings:",t),e=null}return e}(),n="curate",o="experiments",r={};if(t){if(!e)return i(o),i(n),r;a(o),a(n)}return!1;function i(e){if(!t)return;const n=t.getItem(e);null!==n&&(r[e]=JSON.parse(n))}function a(n){t&&Object.prototype.hasOwnProperty.call(e,n)&&t.setItem(n,JSON.stringify(e[n]))}}async function i(e){window.CURATE_CONFIG&&window.CURATE_CONFIG.variant&&(e.curate=window.CURATE_CONFIG),window.CUSTOM_PAGE_CONFIG&&(e.trackTimeSpent=window.CUSTOM_PAGE_CONFIG.trackTimeSpent,e.pageId=window.CUSTOM_PAGE_CONFIG.pageId),window.OPINION_CONFIG&&window.OPINION_CONFIG.trackTimeSpent&&(e.trackTimeSpent=!0,e.pageId="opinion-form"),e.abTest={userABGroup:await(0,o.Q)(),abTestValue:(0,o.n)()}}async function a(e){if(!e)return;const t=e.getAttribute("data-pulse-position"),n={entityId:s(e,"data-pulse-entity-id"),position:t?parseInt(t,10):null,source:s(e,"data-pulse-source"),abTestValue:(0,o.n)(),userABGroup:await(0,o.Q)(),pxFromTop:e.offsetTop,productName:s(e,"data-pulse-product-name"),withSummary:s(e,"data-pulse-with-summary"),experiments:u(e,"data-pulse-experiments")};window.pulse("defaultTracker.localHistory.updatePersistedImpressionHistory",{impression:n})}function s(e,t){return e.getAttribute(t)||void 0}function u(e,t){const n=s(e,t);if(!n)return;let o;try{o=JSON.parse(n)}catch(e){console.error("Error parsing JSON pulse metadata: ",n,e)}return o}function d(e,t){return e.hasAttribute(t)?Number(e.getAttribute(t)):null}function l(e){return e.getAttribute("data-pulse-url")||e.getAttribute("href")||void 0}function c(e){return"ARTICLE"===e.tagName?e.hasAttribute("data-dr-edition-id")?"AD":"ARTICLE":"LINK"}function p(e){var t,n,o,r,i,a;
1return{entityType:c(e),entityId:s(e,"data-pulse-entity-id")||"missing id",entityName:s(e,"data-pulse-entity-name"),entityTargetId:e.getAttribute("data-pulse-entity-target-id")||void 0,entityTargetName:e.getAttribute("data-pulse-entity-target-name")||e.getAttribute("data-pulse-teaser-title")||void 0,entityTargetUrl:e.getAttribute("data-pulse-entity-target-url")||e.getAttribute("data-pulse-url")||void 0,entityImageUrl:(null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("src"))||void 0,elementSize:e.getAttribute("data-pulse-element-size")||void 0,source:s(e,"data-pulse-source"),position:null!==(n=d(e,"data-pulse-position"))&&void 0!==n?n:f(e)||void 0,positionInLevel:d(e,"data-pulse-position-in-level")||void 0,positionInBundle:null!==(o=d(e,"data-pulse-position-in-bundle"))&&void 0!==o?o:void 0,accessLevel:s(e,"data-pulse-access-level"),accessLevelName:s(e,"data-pulse-access-level-name"),cardSize:s(e,"data-pulse-card-size"),url:l(e),teaserImage:s(e,"data-pulse-teaser-image"),title:s(e,"data-pulse-teaser-title"),sourceNewsroom:s(e,"data-pulse-newsroom"),sourceArticleId:s(e,"data-pulse-sourceId"),levelTemplateName:s(e,"data-pulse-level-template-name"),teaserFeatures:s(e,"data-pulse-teaser-features"),forceToAmplitude:s(e,"data-pulse-force-to-amplitude"),clientName:s(e,"data-pulse-client-name"),provider:s(e,"data-provider"),placement:s(e,"data-placement"),adVersion:s(e,"data-pulse-ad-version"),drEditionTeaserId:s(e,"data-dr-edition-id"),drEditionTeaserCreativeId:s(e,"data-dr-edition-creative-id"),drEditionEditionId:s(e,"data-dr-edition-editionId"),algorithm:s(e,"data-dr-edition-algorithm"),productName:s(e,"data-pulse-product-name"),bundleId:s(e,"data-pulse-bundle-id"),withSummary:s(e,"data-pulse-with-summary"),height:e.offsetHeight,width:e.offsetWidth,experiments:u(e,"data-pulse-experiments"),hasPersonalizationScore:null!==(r=d(e,"data-pulse-has-personalization-score"))&&void 0!==r?r:0,seenCount:null!==(i=d(e,"data-pulse-seen-count"))&&void 0!==i?i:0,hasBeenRead:null!==(a=d(e,"data-pulse-has-been-read"))&&void 0!==a?a:0}}function m(e,t,n){switch(e.entityType){case"ARTICLE":case"AD":return function(e,t,n){if(w(e))return function(e,t){return{"@id":`sdrn:${t}:article:${e.drEditionTeaserId}`,"@type":"Article",url:e.url||""}}(e,t);return{id:"AD"===e.entityType?`sdrn:${t}:article:${e.drEditionTeaserId}`:`sdrn:${t}:article:${e.entityId}`,type:"Article",name:e.entityTargetName||"",url:e.entityTargetUrl||"",accessLevel:e.accessLevel,accessLevelName:e.accessLevelName,newsroom:n||t}}(e,t,n);case"LINK":return function(e){if(e.url)return{url:e.url}}(e);default:return}}function g(e){var t,n;const o=(null===(t=e.source)||void 0===t?void 0:t.split(":"))||[],r=o.pop(),i=o.pop(),a={placement:{primaryPosition:null!==(n=e.position)&&void 0!==n?n:-1,secondaryPosition:e.positionInLevel,positionInBundle:e.positionInBundle,curateContext:i,source:r,bundleId:e.bundleId}};return"LINK"===e.entityType?Object.assign(Object.assign({},a),function(e){var t,n;return{id:`link:${e.entityId}`,"@type":"UIElement",name:null!==(n=null!==(t=e.entityName)&&void 0!==t?t:e.entityId)&&void 0!==n?n:"",elementType:"Link","spt:custom":{"spt:productName":e.productName}}}(e)):Object.assign(Object.assign({},a),function(e){if(w(e))return function(e){return Object.assign({id:"no-content",type:"UIElement",name:"no-content",elementType:"no-content"},v(e))}(e);const t="Teaser";return Object.assign(Object.assign({id:e.entityId||"missing id",type:"UIElement",name:e.entityName||t,elementType:t,layout:{elementSize:e.elementSize||e.cardSize,imageUrl:e.entityImageUrl||e.teaserImage},custom:{"spt:levelTemplateName":e.levelTemplateName,"spt:teaserFeatures":e.teaserFeatures,"spt:productName":e.productName,"spt:bundleId":e.bundleId,"spt:withSummary":e.withSummary,"spt:height":e.height,"spt:width":e.width}},function(e){return"AD"===e.entityType?{tags:[e.clientName,e.title,e.url]}:{}}(e)),v(e))}(e))}function f(e){const t=e.closest("section.widgets");return t?d(t,"data-pulse-position"):null}function v(e){if("AD"===e.entityType){const{drEditionTeaserId:t}=e;return{"spt:custom":{publicationName:e.provider,creativeId:"no-content"===t?t:e.drEditionTeaserCreativeId||t&&parseInt(t)||t,clientName:e.clientName?e.clientName:"",adVersion:e.adVersion}}}return{}}function y(e,t,n){if("AD"===e.entityType){const o=Math.floor(Date.now()/1e3),{drEditionTeaserId:r,drEditionTeaserCreativeId:i,url:a,title:s,placement:u,drEditionEditionId:d,algorithm:l}=e;return{engagement:"UIElement",provider:{productTag:"partnerstudio"},partnerstudio:{type:n,tracking_type:"ad",time:o,placement:u,link:a,editionId:d,itemId:r,device:t,creativeId:i,xandrAdLoaded:!1,title:s,algorithm:l}}}return{}}function w(e){var t;return"AD"===e.entityType&&"no-content"===(null===(t=e.entityId)||void 0===t?void 0:t.substr(0,10))&&"no-content"===e.drEditionTeaserId}}
1,4099:(e,t,n)=>{n.d(t,{fx:()=>w,getSessionData:()=>y,dF:()=>b,CD:()=>T,u4:()=>v,iC:()=>I,Zm:()=>h});var o=n(1084),r=n(1347);const i=e=>{const t=document.body.classList;e?(t.remove("imp-no-session"),t.add("imp-logged-in"),e.access.entitled?t.add("imp-has-product"):t.remove("imp-has-product")):(t.remove("imp-logged-in"),t.remove("imp-has-product"),t.add("imp-no-session"))},a=e=>{const t=new Date;return t.setDate(t.getDate()+e),t.toUTCString()},s=e=>{e?(document.cookie=`curate-Id=${e.user.userId}; expires=${a(14)}; path=/;`,document.cookie=`SP_ABO=${e.access.allowedFeatures.join(",")}; expires=${a(365)}; path=/;`):(document.cookie="curate-Id=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;",document.cookie="SP_ABO=nothing; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;")};var u=n(4362),d=n(712);const l="simplified_login_state";var c=n(898);const p=(()=>{const{clientId:e,env:t,sessionDomain:n,redirectUriDomain:o,useOriginAsRedirectUri:i,redirectUriPath:a,varnishCookieExpiresIn:s}=r.X.accountSdkConfig;return{clientId:e,redirectUri:`${"PRE"===t||i?window.location.origin:o}${a}`,sessionDomain:n,env:t,varnishCookie:{expiresIn:s,domain:n.split(".").slice(-2).join(".")}}})(),m=new o.lz(p),g=new o.ye(p);let f=null;window.Identity=m;const v=async()=>{m.enableVarnishCookie(p.varnishCookie);const e=(0,u.VX)();i(e);const t=await y();i(t),s(t),!r.X.accountSdkConfig.simplifiedLoginWidget||t||c.fasten.isMobileApp()||(e=>{r.X.accountSdkConfig.simplifiedLoginWidget&&!(e=>{let t;try{t=JSON.parse((0,d.Wu)(e))}catch(t){return(0,d.Mu)(e),null}return!t||!t._expires||t._expires<Date.now()?null:t.value})(l)&&e.showSimplifiedLoginWidget({state:"fallback"}).then((e=>{e&&(e=>{const t={value:!0,_expires:Date.now()+72e5};(0,d.e7)(e,JSON.stringify(t))})(l)})).catch((e=>{e.toString().includes("Missing user data")||console.error("Simplified login widget error",e)}))})(m)},y=async()=>f||(f=(async()=>{if(await m.isLoggedIn()){const{userId:e,uuid:t,familyName:n,givenName:o,sig:r,result:i,userStatus:a}=await m.getUser(),{entitled:s=!1,allowedFeatures:u=[]}=await g.hasAccess(window.frontendConfig.accountSdkConfig.productId.split(","),e)||{};return{user:{familyName:n,givenName:o,userId:e,uuid:t,result:i,userStatus:a,userToken:r},access:{entitled:s,allowedFeatures:u}}}return!1})(),f.then((e=>{e?(0,u.Jb)(e):(0,u.g3)()})).catch((()=>{(0,u.g3)()})),f),w=()=>m.loginUrl({state:"dunno"}),I=(e={state:"fallbackState"})=>{m.login(e)},h=()=>{(0,u.g3)(),s(null),m.logout(window.location.href)},T=async()=>{const e=await y();return{isLoggedIn:e&&!!e.user.userId,isSubscriber:e&&e.access.entitled,userId:e&&e.user.userId}},b=async()=>await m.getUserContextData();window.accountSession={loginAction:I}},4362:(e,t,n)=>{n.d(t,{Jb:()=>s,VX:()=>a,g3:()=>u});var o=n(712),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const i="fasten-session-cache",a=()=>{try{const e=(0,o.Wu)(i);return e?JSON.parse(e):null}catch(e){return null}},s=e=>{const t=(e=>{if(e&&e.user){const t=e.user,{userToken:n}=t;return{user:r(t,["userToken"]),access:e.access}}return e})(e);(0,o.e7)(i,JSON.stringify(t))},u=()=>{(0,o.Mu)(i)}},589:(e,t,n)=>{n.d(t,{M:()=>o,W:()=>r});const o=()=>{const e=window.location.hostname;return e.includes("localhost")||e.includes("127.0.0.1")||e.startsWith("local.")},r=()=>window.location.hostname.includes("pr.sls.schibsted.tech")}
1,1902:(e,t,n)=>{n.d(t,{Xb:()=>p,a5:()=>l});const o="info",r="warning",i="error",a={[o]:20,[r]:30,[i]:40},s={[o]:console.info.bind(console),[r]:console.warn.bind(console),[i]:console.error.bind(console)};var u=n(5549);const d=(e,t)=>{const n=function(...n){try{return a[t]<=a[e]?s[e](...n):()=>{}}catch(e){console.error("Error in logger",e)}},o=new Set;let r=new Map;return n.once=(e,...t)=>{o.has(e)||(o.add(e),n(...t))},n.throttle=(e,t,...o)=>{r.has(t)||r.set(t,(0,u.A)(n,1e3*e,{trailing:!1})),r.get(t)(...o)},n.resetThrottle=()=>{r=new Map},n};d(o,o),d(i,i),d(r,r);const l=(e,t)=>{const{productTag:n,providerId:o}=t;e&&e.update({provider:{id:o,productTag:n||void 0,product:"fastenposten",productType:"ResponsiveWeb"}})};var c=n(4099);const p=async()=>{const e=await(0,c.getSessionData)();if(!e)return{id:void 0};const{user:{userId:t},access:{entitled:n}}=e;return{id:t,subscriptionName:n?"Abo":"No",realm:"spid.no"}}},9690:(e,t,n)=>{n.d(t,{E:()=>o,z:()=>r});const o=(e,t)=>{var n;return e&&("ARTICLE"===t.entityType||"Teaser"===t.entityType)&&(null===(n=t.source)||void 0===n?void 0:n.includes("frontpage"))?((e,t)=>[{source:"Curate",name:"personalizedResults",key:e,value:t.hasPersonalizationScore},{source:"Curate",name:"removeImpressed",key:e,value:t.seenCount},{source:"Curate",name:"removeRead",key:e,value:t.hasBeenRead}])(e,t):[]},r=(e,t)=>{var n,o,r;return e?[{source:"Curate",name:"personalizedResults",key:e,value:null!==(n=null==t?void 0:t.personalizedResults)&&void 0!==n?n:0},{source:"Curate",name:"removeImpressed",key:e,value:null!==(o=null==t?void 0:t.removeOnImpressed)&&void 0!==o?o:0},{source:"Curate",name:"removeRead",key:e,value:null!==(r=null==t?void 0:t.removeOnRead)&&void 0!==r?r:0}]:[]}},1347:(e,t,n)=>{n.d(t,{X:()=>r});var o=n(2634);window.frontendConfig||o.k.error("It looks that you are trying to read frontend config, but you have not included it in your HTML template");const r=window.frontendConfig},2634:(e,t,n)=>{n.d(t,{k:()=>o});const o=console}
1,5954:(e,t,n)=>{n.d(t,{KR:()=>o,VS:()=>i,lB:()=>r});const o=()=>-1!==(window.navigator.userAgent||"").toLowerCase().indexOf("hermes"),r=()=>o()&&null!==window.navigator.userAgent.match(/android/i),i=()=>o()&&!r()}}]);
2//# sourceMappingURL=3328-116c75108e9add522af9.min.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.