PageSourceSearch

https://seb.no/frontend/js/chunks/snowplow.50a20.js

js seb.no collected 2026-10-02 12:59:07 UTC 5,042 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpublic_web_patternlibrary=self.webpackChunkpublic_web_patternlibrary||[]).push([[236],{127(e,t,n){n.d(t,{initializeSnowplow:()=>y});var r=n(495),o=n(73),i=n(976),s=n(704),a=n(933),c=n(245);let l=!1,u=null;const f=new Set(["gds-card-pattern-01-pw","gds-button-pw","gds-link-pw"]),d=/^(javascript|vbscript|data):/i;function p(e){if(!e||"string"!=typeof e)return!1;const t=e.trim();return!(!t||"#"===t||d.test(t))}function m(e){const t=e.dataset?.spUrl;if(p(t))return t;const n=e.querySelector("a[href]");if(n){const e=n.getAttribute("href");if(p(e))return e}for(const t of f){const n=e.querySelector(`${t}[href]`);if(n){const e=n.getAttribute("href");if(p(e))return e}}return null}function b(e){return(e.getAttribute("aria-label")||e.textContent||"").trim().slice(0,255)}function g(e){const t=e.composedPath();if(!e.isTrusted){const n=t[0];if(n instanceof Element&&"a"===n.tagName.toLowerCase())return void e.stopImmediatePropagation()}if(e.isTrusted){let n=null;for(const r of t)if(r instanceof Element)if("a"!==r.tagName.toLowerCase()){if(n&&r.hasAttribute("data-sp-clickable")){const t=n.getAttribute("href");if(!p(t))return;return(0,i.cx)({targetUrl:t,elementId:r.id||void 0,elementClasses:Array.from(r.classList),elementTarget:n.getAttribute("target")||void 0,elementContent:b(n)}),void e.stopImmediatePropagation()}}else n=r}for(const e of t){if(!(e instanceof Element))continue;const t=e.tagName.toLowerCase();if("a"===t)return;if(e.hasAttribute("data-sp-clickable")){const t=m(e);if(!p(t))return;const n=e.querySelector("a[href]");return void(0,i.cx)({targetUrl:t,elementId:e.id||void 0,elementClasses:Array.from(e.classList),elementTarget:n?.getAttribute("target")||void 0,elementContent:b(n??e)})}if(f.has(t)){const t=e.getAttribute("href");if(!p(t))return;return void(0,i.cx)({targetUrl:t,elementId:e.id||void 0,elementClasses:Array.from(e.classList),elementTarget:e.getAttribute("target")||void 0,elementContent:b(e)})}}}var h=n(316),w=n(750);const v={"sebgroup.com":"611-1","seb.se":"611-2","seb.no":"611-3","seb.dk":"611-4","seb.de":"611-5","seb.fi":"611-6","seb.ie":"611-7","sebgroup.lu":"611-8","dskvg.de":"611-9"};async function y(){const e=document.querySelector('meta[name="snowplow-endpoint"]')?.content||!1,t=function(){const e=document.querySelector('meta[name="seb-environment"]')?.content||!1;return"Production"===e?"PRD":"Acceptance"===e?"ACC":"Development"===e||"Local"===e?"DEV":""}();if(!e)return void console.warn("Snowplow endpoint not configured");u&&(u(),u=null),l=!1;let n=!1;document.querySelector('script[id="ab-test-script"]')&&(n=await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return new Promise(t=>{if(window.optimizely)return void t(!0);let n,r;n=setTimeout(()=>{void 0!==r&&Object.defineProperty(window,"optimizely",{value:r,writable:!0,configurable:!0}),t(!1)},e),Object.defineProperty(window,"optimizely",{configurable:!0,set:function(e){r=e,Object.defineProperty(window,"optimizely",{value:r,writable:!0,configurable:!0}),clearTimeout(n),t(!0)},get:function(){return r}})})}());const f=[(0,o.d)(),(0,i.bp)(),(0,s.bZ)(),(0,a.nZ)(),(0,c.N7)()];n&&f.push((0,h.g)());const d=function(){const e=window.location.hostname;for(const[t,n]of Object.entries(v))if(e===t||e.endsWith("."+t))return n;const t=e.split(".");for(const[e,n]of Object.entries(v)){const r=e.replace(/\./g,"-");if(t.some(e=>e.startsWith(r)))return n}return"611"}(),p=(0,r.Po)(d,e,{appId:d,cookieName:"sebsp",cookieSameSite:"Lax",eventMethod:"post",contexts:{webPage:!0,session:!0,browser:!0},encodeBase64:!0,plugins:f});if(!p)return void console.warn("Snowplow tracker not available");const m=(0,w.Oe)();let b={schema:"iglu:se.seb.snowplow/producer_context/jsonschema/1-0-0",data:{consent:Object.entries(m).filter(e=>{let[,t]=e;return t}).map(e=>{let[t]=e;return t}).join(", "),producingteam:"TEAM46",environment:t}};(0,r.nk)([b]),window.addEventListener("click",g,!0),(0,i.bi)({trackContent:!0,pseudoClicks:!1,options:e=>!e.closest("[data-sp-clickable]")}),(0,c.Pd)(),(0,a.z7)({options:{fields:{transform:function(e,t,n){return e}}}}),(0,s.$2)({filter:function(e){return!0}}),(0,r.s8)({activityMetrics:!0,minimumVisitLength:10,heartbeatDelay:30}),function(e){if(u&&u(),l)return;l=!0;let t=globalThis.location.pathname+globalThis.location.search,n=document.referrer||"",r=!0;const o=()=>{const o=globalThis.location.pathname+globalThis.location.search,i=globalThis.location.href;(o!==t||r)&&(r&&document.referrer?e.setReferrerUrl?.(document.referrer):r||e.setReferrerUrl?.(n),t=o,n=i,e.setCustomUrl(i),e.trackPageView(),r=!1)},i=history.pushState,s=history.replaceState;globalThis.addEventListener("popstate",o),history.pushState=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.apply(this,t),o()},history.replaceState=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s.apply(this,t),o()},u=()=>{globalThis.removeEventListener("popstate",o),history.pushState=i,history.replaceState=s,l=!1},o()}(p)}}}]);

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.