PageSourceSearch

https://www.teknikmagasinet.com/_next/static/chunks/app/%5Blocale%…/%5B...slug%5D/error-2e64f51a601cc9bb.js

js teknikmagasinet.com collected 2026-10-04 08:51:02 UTC 7,688 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2819637-2c50-43a3-aafe-520657c4b85c",e._sentryDebugIdIdentifier="sentry-dbid-f2819637-2c50-43a3-aafe-520657c4b85c")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4441],{24087:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var a=r(31594),l=r(46658),n=r(20697),o=r(37933),s=r(40665),i=r(19017),c=r.n(i);function m(e){let{error:t,reset:r}=e;return(0,l.useEffect)(()=>{console.error(t),n.Cp(t)},[t]),(0,a.jsx)(s.A,{className:"px-4 py-8","data-sentry-element":"PageWrapper","data-sentry-component":"Error","data-sentry-source-file":"error.tsx",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6",children:[(0,a.jsx)("h2",{children:"Something went wrong!"}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(c(),{href:"/","data-sentry-element":"Link","data-sentry-source-file":"error.tsx",children:(0,a.jsx)(o.$,{"data-sentry-element":"Button","data-sentry-source-file":"error.tsx",children:"Go to homepage"})}),(0,a.jsx)(o.$,{onClick:()=>r(),variant:"outline","data-sentry-element":"Button","data-sentry-source-file":"error.tsx",children:"Try again"})]})]})})}},37933:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,r:()=>i});var a=r(31594);r(46658);var l=r(16861),n=r(55740),o=r(72265),s=r(45994);let i=(0,n.F)("relative inline-flex items-center justify-center whitespace-nowrap border uppercase leading-snug transition-colors focus-visible:outline focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 theme-tm:font-primary theme-tm:font-medium theme-tm:tracking-[0.02em] theme-tm:focus-visible:outline-2 theme-tm:focus-visible:outline-black theme-pl:font-mono",{variants:{variant:{default:(0,s.A)("theme-pl:border-callisto-secondary theme-pl:bg-callisto-secondary theme-pl:text-callisto-white theme-pl:hover:border-[#8E8E8E] theme-pl:hover:bg-callisto-white theme-pl:hover:text-callisto-secondary","theme-tm:border-callisto-black theme-tm:bg-callisto-primary theme-tm:text-callisto-primaryContrast theme-tm:hover:border-callisto-white theme-tm:hover:bg-callisto-black theme-tm:hover:text-callisto-blackContrast","theme-tm:shadow-[4px_4px_0_-2px_rgb(var(--color-secondary)),_4px_4px_0_-1px_rgb(var(--color-black))]"),secondary:(0,s.A)("theme-pl:border-callisto-white theme-pl:bg-callisto-white theme-pl:text-callisto-secondary theme-pl:hover:border-[#D2D3D2] theme-pl:hover:bg-[#D2D3D2] theme-pl:hover:text-callisto-secondary","theme-tm:border-callisto-primary theme-tm:bg-callisto-black theme-tm:text-callisto-blackContrast theme-tm:hover:border-callisto-black theme-tm:hover:bg-callisto-white theme-tm:hover:text-callisto-whiteContrast","theme-tm:shadow-[4px_4px_0_-2px_rgb(var(--color-primary)),_4px_4px_0_-1px_rgb(var(--color-black))]"),accent:"border-callisto-primary bg-callisto-primary text-callisto-primaryContrast hover:border-callisto-primaryContrast hover:bg-callisto-primaryContrast hover:text-callisto-primary theme-tm:bg-callisto-accent theme-tm:text-callisto-accentContrast",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border-gray-medium bg-callisto-white text-callisto-whiteContrast hover:bg-gray-light/50 theme-tm:hover:bg-gray-medium",ghost:"border-transparent hover:bg-accent hover:text-accent-foreground",link:"text-foreground underline-offset-4 hover:underline"},size:{sm:"h-8 gap-2 rounded-md theme-tm:px-4 theme-tm:text-xl theme-pl:px-3 theme-pl:text-sm",default:"gap-2 rounded-lg px-8 py-2 theme-tm:h-12 theme-tm:text-xl theme-pl:h-10 theme-pl:text-base",lg:"h-12 gap-2 rounded-lg px-10 py-3 theme-tm:text-xl theme-pl:text-base",xl:"h-15 gap-2 rounded-lg px-8 py-3 theme-tm:text-xl theme-pl:text-base",icon:"size-10 theme-tm:text-lg theme-pl:rounded-lg theme-pl:text-sm"},elevated:{true:"",false:""}},defaultVariants:{variant:"default",size:"default"},compoundVariants:[{variant:"default",elevated:!0,className:"theme-tm:-top-1"},{variant:"secondary",elevated:!0,className:"theme-tm:-top-1"}]});function c(e){let{className:t,variant:r,size:n,asChild:s=!1,ref:c,...m}=e,d=s?l.DX:"button";return(0,a.jsx)(d,{className:(0,o.cn)(i({variant:r,size:n,className:t})),ref:c,...m,"data-sentry-element":"Comp","data-sentry-component":"Button","data-sentry-source-file":"button.tsx"})}},40665:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(31594),l=r(72265);function n(e){let{as:t="div",children:r,className:n}=e;return(0,a.jsx)(t,{className:(0,l.cn)("px-4 [:where(&)>*]:mx-auto [:where(&)>*]:max-w-[var(--content-max-width)]",n),"data-sentry-element":"Component","data-sentry-component":"PageWrapper","data-sentry-source-file":"pageWrapper.tsx",children:r})}},52542:(e,t,r)=>{Promise.resolve().then(r.bind(r,24087))},55740:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var a=r(45994);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=a.$,o=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],a=null==s?void 0:s[e];if(null===t)return null;let n=l(t)||l(a);return o[e][n]}),c=r&&Object.entries(r).reduce((e,t)=>
1{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return n(e,i,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...l}=t;return Object.entries(l).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...c}[t]):({...s,...c})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},72265:(e,t,r)=>{"use strict";r.d(t,{NW:()=>c,N_:()=>n.N_,Yv:()=>i,c$:()=>n.c$,cn:()=>s,yv:()=>n.yv});var a=r(45994),l=r(40435),n=r(88993),o=r(94989);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}function i(e,t){let r="";switch(t){case"no":r="og";break;case"sv":r="och";break;default:r="and"}return e?null==e?void 0:e.toString().toLowerCase().replace(/[\s_-]+/g,"-").replace(/å/gi,"a").replace(/ä/gi,"a").replace(/ö/gi,"o").replace("&",r).replace(/ø/gi,"o"):(o.v.warn("No slugify string provided, returning Empty string"),"")}function c(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return(r=r.map(t=>i(t,e))).join("/")}},88993:(e,t,r)=>{"use strict";r.d(t,{N_:()=>i,yv:()=>s,c$:()=>o});var a=r(31594),l=r(19017),n=r.n(l);let o=(e,t)=>{if(!e&&!t)return"/";if(t&&/^https?:\/\//i.test(t))return t;let r=t;return((null==r?void 0:r.startsWith("/"))||(r="/".concat(r)),e&&(null==r?void 0:r.startsWith("/".concat(e)))&&(r=r.slice(e.length+1)),!r&&e)?"/".concat(e):!e&&r?r:"/".concat(e).concat(r)},s=(e,t)=>{let r=Object.fromEntries(Object.entries(t||{}).filter(e=>{let[t,r]=e;return void 0!==r})),a=Object.keys(r).length?"?".concat(new URLSearchParams(r).toString()):"";return e.slug?"/p".concat(e.slug.startsWith("/")?e.slug:"/".concat(e.slug)).concat(a):""},i=e=>{let{href:t,locale:r,prefetch:l=!1,...s}=e,i=o(function(e){try{if(null==e?void 0:e.startsWith("{"))return JSON.parse(e).language;return e}catch(t){return e}}(r),t),c=!!t&&/^https?:\/\//i.test(t);return(0,a.jsx)(n(),{...c?{target:"_blank",rel:"noopener noreferrer"}:{},...s,href:i,prefetch:l,"data-sentry-element":"NextLink","data-sentry-component":"Link","data-sentry-source-file":"links.tsx"})}},94989:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var a=r(70716),l=r.n(a);let n=r(55036).env.LOG_LEVEL||"error",o=l()({transport:{target:"pino/file",options:{colorize:!1}},level:n})}},e=>{e.O(0,[9017,5731,4151,1875,5844,7358],()=>e(e.s=52542)),_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.