PageSourceSearch

https://www.snakk.ai/_next/static/chunks/8427-7e6e4e351a9b71b0.js?dpl=dpl_UonP4xJjcy7pJCAdVEwwwrAuDFVj

js snakk.ai collected 2026-10-05 13:57:25 UTC 13,403 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8427],{3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var n=r(95155),a=r(12115),i=r(52619),s=r.n(i),o=r(83101),l=r(64269);let d=(0,o.F)("relative isolate inline-flex shrink-0 items-center justify-center gap-2 rounded-full font-medium whitespace-nowrap transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-primary text-primary-foreground hover:bg-ivory",secondary:"bg-transparent text-primary shadow-[inset_0_0_0_1px_hsl(var(--primary)/0.15)] hover:shadow-[inset_0_0_0_1px_hsl(var(--primary)/0.3)] hover:bg-white/[0.03]",accent:"bg-accent text-accent-foreground hover:bg-accent-hover hover:text-primary-foreground",ghost:"bg-transparent text-secondary hover:text-primary hover:bg-white/[0.04]",link:"bg-transparent text-secondary hover:text-primary px-0 py-0 h-auto"},size:{sm:"text-sm px-4 py-2",md:"text-sm px-5 py-3",lg:"text-[15px] px-6 py-3.5"}},defaultVariants:{variant:"primary",size:"md"}}),c=()=>(0,n.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"translate-x-0 transition-transform duration-200 group-hover/btn:translate-x-0.5","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})}),u=a.forwardRef((e,t)=>{let{variant:r,size:a,className:i,trailingArrow:o,children:u,...h}=e,x=(0,l.cn)("group/btn",d({variant:r,size:a}),i),m=(0,n.jsxs)(n.Fragment,{children:[u,o&&(0,n.jsx)(c,{})]});if("href"in h&&void 0!==h.href){let{href:e,...r}=h;return e.startsWith("/")&&!e.startsWith("//")?(0,n.jsx)(s(),{href:e,ref:t,className:x,...r,children:m}):(0,n.jsx)("a",{href:e,ref:t,className:x,...r,children:m})}return(0,n.jsx)("button",{ref:t,className:x,...h,children:m})});u.displayName="Button"},16933:(e,t,r)=>{"use strict";r.d(t,{N_:()=>s,a8:()=>l});var n=r(75087),a=r(18956);let i=(0,n.o)({locales:["no","en","sv"],defaultLocale:"no",localePrefix:"as-needed",localeDetection:!1}),{Link:s,redirect:o,usePathname:l,useRouter:d}=(0,a.xp)(i)},32120:(e,t,r)=>{"use strict";r.d(t,{GlobalModalProvider:()=>d,h:()=>l});var n=r(95155),a=r(12115);let i=(0,r(67909).default)(()=>Promise.all([r.e(5239),r.e(5604),r.e(6917),r.e(9903),r.e(4734)]).then(r.bind(r,89903)),{loadableGenerated:{webpack:()=>[89903]},ssr:!1}),s={isCallbackModalOpen:!1,openCallbackModal:()=>{},closeCallbackModal:()=>{}},o=(0,a.createContext)(void 0);function l(){var e;return null!=(e=(0,a.useContext)(o))?e:s}function d(e){let{children:t}=e,[r,s]=(0,a.useState)(!1),l=()=>s(!1);return(0,n.jsxs)(o.Provider,{value:{isCallbackModalOpen:r,openCallbackModal:()=>s(!0),closeCallbackModal:l},children:[t,r&&(0,n.jsx)(i,{isOpen:r,onClose:l})]})}},38822:(e,t,r)=>{"use strict";r.d(t,{default:()=>p});var n=r(95155),a=r(12115),i=r(26497),s=r(36917),o=r(57346),l=r(16933),d=r(95604),c=r(32120),u=r(3998),h=r(64269);function x(e){let{className:t}=e,[r,i]=(0,a.useState)("light"),[s,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i("undefined"==typeof document?"light":"dark"===document.documentElement.getAttribute("data-theme")?"dark":"light"),o(!0)},[]),(0,n.jsxs)("button",{type:"button",onClick:()=>{let e="dark"===r?"light":"dark",t=document.documentElement;t.classList.add("theme-transition"),t.setAttribute("data-theme",e);try{localStorage.setItem("theme",e)}catch(e){}i(e),window.setTimeout(()=>t.classList.remove("theme-transition"),400)},"aria-label":"dark"===r?"Switch to light mode":"Switch to dark mode",title:"dark"===r?"Light mode":"Dark mode",className:(0,h.cn)("group relative flex h-8 w-8 items-center justify-center rounded-full text-primary/60 transition-colors hover:text-primary hover:bg-white/5",t),children:[(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",className:(0,h.cn)("absolute h-[18px] w-[18px] transition-all duration-300",s&&"dark"===r?"rotate-0 scale-100 opacity-100":"-rotate-90 scale-0 opacity-0"),"aria-hidden":"true",children:(0,n.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",className:(0,h.cn)("absolute h-[18px] w-[18px] transition-all duration-300",s&&"light"===r?"rotate-0 scale-100 opacity-100":"rotate-90 scale-0 opacity-0"),"aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]})]})}var m=r(95102);function p(e){let{navigation:t,ctaButton:r,secondaryButton:p}=e,f=(0,o.c)("navbar"),g=(0,d.useLocale)(),[b,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(!1),[k,N]=(0,a.useState)(null),{openCallbackModal:C}=(0,c.h)(),L=(0,l.a8)();(0,a.useEffect)(()=>{let e=()=>{var e;y((window.scrollY||document.documentElement.scrollTop||(null==(e=
1document.querySelector(".relative.overflow-x-clip"))?void 0:e.scrollTop)||0)>8)};return e(),document.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>document.removeEventListener("scroll",e,{capture:!0})},[]),(0,a.useEffect)(()=>{let e=document.documentElement;return j?(e.style.overflow="hidden",document.body.style.overflow="hidden"):(e.style.overflow="",document.body.style.overflow=""),()=>{e.style.overflow="",document.body.style.overflow=""}},[j]);let M=(null==r?void 0:r.url)||("/"===L?"#book":"/#book"),_=(null==p?void 0:p.url)||"#",E=((null==r?void 0:r.text)||("en"===g?"Build your AI agent":"Bygg din AI-agent")).replace(/\s*(gratis|free)\s*$/i,"").trim();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("header",{className:(0,h.cn)("fixed top-0 z-50 w-full transition-all duration-300",b?"border-b border-border bg-background/95 md:bg-background/85 md:backdrop-blur-xl":"border-b border-transparent bg-transparent"),children:(0,n.jsxs)("div",{className:"mx-auto flex h-16 max-w-container items-center justify-between px-4 sm:px-6",children:[(0,n.jsx)(l.N_,{href:"/",className:"site-logo shrink-0",children:(0,n.jsx)("img",{src:"/logo-white.svg",alt:f("logoAlt"),width:120,height:24,fetchPriority:"high",decoding:"async",className:"h-6 w-[120px] object-contain object-left"})}),(0,n.jsx)("nav",{className:"hidden lg:flex items-center gap-0.5",children:null==t?void 0:t.map((e,t)=>{var r,a;return e.submenu&&e.submenu.length>0?(0,n.jsxs)("div",{className:"group relative",children:[(0,n.jsxs)("button",{className:"flex items-center gap-1.5 rounded-full px-3 py-2 text-sm font-medium text-primary/70 transition-colors duration-200 group-hover:bg-white/5 group-hover:text-primary",children:[e.title,(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.75,stroke:"currentColor",className:"h-3.5 w-3.5 transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover:rotate-180",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),(0,n.jsx)("div",{className:"pointer-events-none absolute left-1/2 top-full origin-top -translate-x-1/2 -translate-y-1.5 scale-[0.97] pt-3 opacity-0 transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover:pointer-events-auto group-hover:translate-y-0 group-hover:scale-100 group-hover:opacity-100",children:(0,n.jsx)("div",{className:"w-[640px] rounded-2xl border border-white/10 bg-popover p-2 shadow-2xl shadow-black/30",children:(0,n.jsx)("div",{className:"grid grid-cols-2 gap-0.5",children:e.submenu.map((e,t)=>(0,n.jsxs)(v,{href:e.url||"",className:"group/item flex flex-col gap-1 rounded-xl p-3 transition-colors duration-200 hover:bg-white/5",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-primary",children:e.title}),e.description&&(0,n.jsx)("span",{className:"text-[13px] leading-snug text-secondary",children:e.description})]},t))})})})]},t):(0,n.jsx)(v,{href:e.url||"",isHashLink:(null==(r=e.url)?void 0:r.startsWith("#"))||(null==(a=e.url)?void 0:a.startsWith("/#")),className:"rounded-full px-3 py-2 text-sm font-medium text-primary/70 transition-colors duration-200 hover:bg-white/5 hover:text-primary",children:e.title},t)})}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("div",{className:"hidden items-center gap-1 lg:flex",children:(0,n.jsx)(x,{})}),p&&(0,n.jsx)("div",{className:"hidden lg:block",children:"modal"===p.type?(0,n.jsx)(u.$,{variant:"secondary",size:"sm",onClick:C,children:p.text}):(0,n.jsx)(u.$,{variant:"secondary",size:"sm",href:_,children:p.text})}),(0,n.jsx)("div",{className:"hidden lg:block",children:(null==r?void 0:r.type)==="modal"?(0,n.jsx)(u.$,{variant:"primary",size:"sm",onClick:C,children:E}):(0,n.jsx)(u.$,{variant:"primary",size:"sm",href:M,children:E})}),(0,n.jsx)("button",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-white/5 text-primary lg:hidden",onClick:()=>w(!j),"aria-label":f("menuButton"),"aria-expanded":j,children:(0,n.jsx)("svg",{className:"h-5 w-5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:j?(0,n.jsx)("path",{d:"M6 18L18 6M6 6l12 12"}):(0,n.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16"})})})]})]})}),(0,n.jsx)(i.N,{children:j&&(0,n.jsx)(s.P.div,{initial:{opacity:0,y:-8}
1,animate:{opacity:1,y:0},exit:{opacity:0,transition:{duration:0}},transition:{duration:.28,ease:[.16,1,.3,1]},className:"lg:hidden fixed inset-x-0 top-16 bottom-0 z-40 overflow-y-auto border-t border-border bg-background",children:(0,n.jsxs)("nav",{className:"flex flex-col gap-1 px-4 py-6 sm:px-6",children:[null==t?void 0:t.map((e,t)=>e.submenu&&e.submenu.length>0?(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{className:"flex w-full items-center justify-between rounded-xl px-3 py-3 text-base font-medium text-primary transition-colors hover:bg-white/5",onClick:()=>N(k===t?null:t),children:[e.title,(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:(0,h.cn)("h-5 w-5 transition-transform duration-300",k===t&&"rotate-180"),children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),(0,n.jsx)(i.N,{children:k===t&&(0,n.jsx)(s.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:(0,n.jsx)("div",{className:"flex flex-col gap-0.5 py-1 pl-3",children:e.submenu.map((e,t)=>(0,n.jsx)("a",{href:e.url||"",className:"rounded-lg px-3 py-2.5 text-[15px] text-secondary transition-colors hover:bg-white/5 hover:text-primary",onClick:()=>w(!1),children:e.title},t))})})})]},t):(0,n.jsx)("a",{href:e.url||"",className:"rounded-xl px-3 py-3 text-base font-medium text-primary transition-colors hover:bg-white/5",onClick:()=>w(!1),children:e.title},t)),(0,n.jsxs)("div",{className:"mt-4 flex flex-col gap-3 border-t border-border pt-5",children:[(null==r?void 0:r.type)==="modal"?(0,n.jsx)(u.$,{variant:"primary",className:"w-full",onClick:()=>{C(),w(!1)},children:E}):(0,n.jsx)(u.$,{variant:"primary",className:"w-full",href:M,onClick:()=>w(!1),children:E}),p&&("modal"===p.type?(0,n.jsx)(u.$,{variant:"secondary",className:"w-full",onClick:()=>{C(),w(!1)},children:p.text}):(0,n.jsx)(u.$,{variant:"secondary",className:"w-full",href:_,onClick:()=>w(!1),children:p.text})),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3 pt-3",children:[(0,n.jsx)(x,{}),(0,n.jsx)(m.default,{})]})]})]})})})]})}let v=e=>{let{href:t,children:r,className:a="",isHashLink:i=!1}=e;return t.startsWith("/")&&!t.startsWith("/#")?(0,n.jsx)(l.N_,{href:t,className:a,children:r}):(0,n.jsx)("a",{href:t,className:a,onClick:e=>{i&&t.startsWith("/#")&&(e.preventDefault(),window.location.href=t)},children:r})}},57346:(e,t,r)=>{"use strict";r.d(t,{TranslationsProvider:()=>s,c:()=>o});var n=r(95155),a=r(12115);let i=(0,a.createContext)(null);function s(e){let{children:t,messages:r}=e;return(0,n.jsx)(i.Provider,{value:r,children:t})}function o(e){let t=(0,a.useContext)(i);if(!t)throw Error("useTranslations must be used within a TranslationsProvider");let r=e?t[e]:t;return function(e,t){var n;let a=null!=(n=e.split(".").reduce((e,t)=>null==e?void 0:e[t],r))?n:e;return"string"!=typeof a?e:(t&&Object.entries(t).forEach(e=>{let[t,r]=e;a=a.replace("{".concat(t,"}"),String(r))}),a)}}},64269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var n=r(2821),a=r(75889);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}},92762:()=>{},95102:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(95155),a=r(95604),i=r(16933);function s(){let e=(0,a.useLocale)(),t=(0,i.a8)();return(0,n.jsx)("select",{"aria-label":"Language / Spr\xe5k",value:e,onChange:e=>{let r=e.target.value;window.location.assign("sv"===r?"/sv":"".concat("en"===r?"/en":"").concat("/"===t?"":t)||"/")},className:"max-w-[110px] cursor-pointer rounded border border-border bg-background px-2 py-1 text-xs text-primary",children:[{id:"no",name:"Norsk"},{id:"en",name:"English (UK)"},{id:"sv",name:"Svenska"}].map(e=>(0,n.jsx)("option",{value:e.id,children:e.name},e.id))})}}}]);

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.