PageSourceSearch

https://kystriksveien.no/dist/all/chunks/7213-767e751bae8413d6399f.js

js kystriksveien.no collected 2026-09-24 20:21:36 UTC 3,423 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[7213],{"1cc85e944f7cea3b"(e,a,t){t.d(a,{TrackingServicesLoader:()=>d}),t("1519ef9f27f54b60"),t("07a8db537f1fb869");var o=t("2c955294755a99bf"),s=t("24a891e7a50fd29c"),i=t("3a2323a7a7092af4"),n=t("c40486de06e3466e"),r=t("6f02679a733e0662"),c=t("92c490e8e5efe9cd"),l=t("6f4d764aaa9897a7");class d{currentPageId;documentType;currentRequestMethod;constructor(e){this.wipsApp=e,this.currentPageId=(0,r.w)(n.D,"currentPageId"),this.documentType=Promise.any([(0,r.w)(n.D,"currentPageDocumentType"),new Promise(e=>setTimeout(()=>e(null),1e3))]),this.currentRequestMethod=Promise.any([(0,r.w)(n.D,"currentRequestMethod"),new Promise(e=>setTimeout(()=>e("get"),1e3))])}async loadAll(){(0,c.x)(l.G).isLoggedIn||await Promise.all([this.loadGoogleAnalytics(),this.loadGoogleTagManager(),this.loadFacebookPixel(),this.loadPlausibleIo()])}async loadGoogleAnalytics(){await this.loadGoogleScript("google-analytics")}async loadGoogleTagManager(){await this.loadGoogleScript("google-tag-manager")}async loadGoogleScript(e){const a=e=>e.startsWith("G-")||e.startsWith("UA-"),t=e=>e.startsWith("GTM-"),n=(await this.wipsApp.getIntegrationKeyList(e)).filter(e=>a(e)||t(e));if(!n.length)return;(0,s.m)(),(0,s.w6)("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",wait_for_update:500});const r=e=>{const o=e?"granted":"denied";if((0,s.w6)("consent","update",{ad_storage:o,ad_user_data:o,ad_personalization:o,analytics_storage:o}),e){const e=n.filter(e=>a(e));e.length&&((0,s.ai)(e.shift()),e.forEach(e=>(0,s.w6)("config",e))),n.filter(e=>
1t(e)).forEach(e=>{(0,i.k0)(e,{})})}};o.default.addChangeListener((e,a)=>{"google-analytics"==e&&null!==a&&r(a)});const c=await o.default.awaitConsent("google-analytics");r(c??!1)}async loadFacebookPixel(){const[e,a,t,s]=await Promise.all([this.wipsApp.getIntegrationKey("facebook-pixel"),this.currentPageId,this.currentRequestMethod,this.documentType]);if(!e)return;if(!a)return;const i=new URL("/Api/v2/pages/"+a+"/facebook-pixel-config",location.href);if(s){const e=new URLSearchParams(location.search??"").get(s);e&&i.searchParams.append(s,e)}const n=await fetch(i);if(!n.ok)return;const r=await n.json(),c=r?.["enabled-pixels"]??[],l=window.fbq=(...e)=>l.callMethod?l.callMethod.apply(l,e):l.queue.push(e);if(window._fbq||(window._fbq=l),l.push=l,l.loaded=!0,l.version="2.0",l.queue=[],l("init",e),l("track","PageView"),c.filter(e=>e.method.toLowerCase()===t.toLowerCase()).filter(e=>this.hasQueryParameters(e.requireQueryParameters??[])).forEach(e=>{l("track",e.pixelName)}),!await o.default.awaitConsent("facebook-pixel"))return;const d=document.createElement("script");d.async=!0,d.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(d)}hasQueryParameters(e){if(!e.length)return!0;const a=new URLSearchParams(location.search);return e.filter(e=>!a.has(e)).length<=0}async loadPlausibleIo(){const e=(await this.wipsApp.getIntegrationKeyList("plausible-io")).filter(e=>!!e?.length);e.length&&await o.default.awaitConsent("plausible-io")&&e.forEach(e=>{const a=location.hostname,t=document.querySelector("head");if(!t)return;if(t.querySelector('script[data-plausible-domain="'+e+'"]'))return;const o=document.createElement("script");o.dataset.domain=a,o.src="https://"+e+"/js/script.js",o.dataset.plausibleDomain=e,t.append(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.