1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{2193:(e,r,t)=>{Promise.resolve().then(t.bind(t,3229))},3229:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var o=t(95155),n=t(12115),s=t(3933);function l({error:e,reset:r}){return(0,n.useEffect)(()=>{(0,s.vV)("GlobalError -> ",e)},[e]),(0,o.jsx)("html",{children:(0,o.jsxs)("body",{children:[(0,o.jsx)("h1",{children:"This is global error"}),(0,o.jsx)("h2",{children:"Something went wrong!"}),(0,o.jsx)("button",{onClick:()=>r(),children:"Try again"})]})})}},3933:(e,r,t)=>{"use strict";t.d(r,{vV:()=>d});var o=t(25680);t(41463);let n="AES-GCM",s=new TextEncoder;new TextDecoder;let l=e=>{let r=e instanceof Uint8Array?e:new Uint8Array(e),t="";for(let e of r)t+=String.fromCharCode(e);return btoa(t)},a=async(e,r,t)=>{let o=await globalThis.crypto.subtle.importKey("raw",s.encode(e),"PBKDF2",!1,["deriveKey"]);return globalThis.crypto.subtle.deriveKey({name:"PBKDF2",salt:r,iterations:1e5,hash:"SHA-256"},o,{name:n,length:256},!1,[t])},i=async(e,r="")=>{let t=globalThis.crypto.getRandomValues(new Uint8Array(12)),o=globalThis.crypto.getRandomValues(new Uint8Array(16)),i=await a(r,o,"encrypt");return JSON.stringify({ct:l(await globalThis.crypto.subtle.encrypt({name:n,iv:t},i,s.encode(JSON.stringify(e)))),iv:l(t),s:l(o)})};class c{static async post(e,r,t=[],n=[],s={}){let l;
1return isBuildTime?(console.log(`Unable to post log at build time: ${e} - ${r} - ${t.join(" | ")}`),!1):(l=i({dt:Math.floor(new Date().getTime()/1e3),level:e,title:r,messages:t.filter(e=>null!==e),channels:n,extraConfig:s},"mycall"),(0,o.bE)("https://shop.mycall.no","/api/log",l,{headers:((e={})=>({Accept:"application/json","Content-Type":"application/json",...e}))(void 0),...void 0}))}}var h=t(41463);let g=async(e,r,o)=>{let{getUA:n}=await Promise.all([t.e(5223),t.e(8521)]).then(t.bind(t,98521)),s=o instanceof Error?{name:o.name,message:o.message,stack:o.stack}:{message:o},l="production"===h.env.NEXT_PUBLIC_APP_ENV?"prod":"test",a=`#webshop-mycall-client-side-js-error-${l}`;c.post(e,r,["userAgent: "+n(),JSON.stringify(s)],["otel","slack"],{slack:{channel:a}})},y=async(e,r,t)=>{try{"error"===e?console.error(r,t):console.log(r,t),"error"===e&&g(e,r,t)}catch(e){console.log("Error -> @/helpers/logging-helpers/logError",e)}},d=async(e,r)=>y("error",e,r)}},e=>{e.O(0,[497,5680,8441,3794,7358],()=>e(e.s=2193)),_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.