PageSourceSearch

https://blst.se/_next/static/chunks/463-71666d27a188bd11.js

js blst.se collected 2026-10-04 19:52:17 UTC 10,168 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[463],{797:(e,t,r)=>{r.d(t,{LocaleProvider:()=>u,Y:()=>h});var a=r(5155),l=r(2115),n=r(8564);let s=(0,l.createContext)(null),o="vd_locale",i="vd_country";function d(e){if("undefined"==typeof document)return;let t=document.cookie.match(new RegExp("(?:^|; )".concat(e,"=([^;]*)")));return t?decodeURIComponent(t[1]):void 0}function c(e,t){document.cookie="".concat(e,"=").concat(encodeURIComponent(t),"; path=/; max-age=").concat(31536e3,"; SameSite=Lax")}function u(e){let{children:t}=e,[r,u]=(0,l.useState)(n.Xn),[h,x]=(0,l.useState)(n.jC);return(0,l.useEffect)(()=>{let e=d(o),t=d(i);e&&n.YZ.includes(e)&&u(e),t&&n.FS.includes(t)&&x(t)},[]),(0,l.useEffect)(()=>{document.documentElement.lang=r},[r]),(0,a.jsx)(s.Provider,{value:{locale:r,country:h,setLocale:e=>{u(e),c(o,e)},setCountry:e=>{x(e),c(i,e)},tr:n.t[r]},children:t})}function h(){let e=(0,l.useContext)(s);if(!e)throw Error("useLocale must be used within LocaleProvider");return e}},5870:(e,t,r)=>{r.d(t,{CartProvider:()=>i,_:()=>d});
1var a=r(5155),l=r(2115);let n=(0,l.createContext)(null),s="blst_cart_v1";function o(e){if(!e)return[];try{let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(e=>!!e&&"string"==typeof e.productId&&Number.isFinite(e.quantity)).map(e=>({productId:e.productId,quantity:Math.max(1,Math.min(99,Math.floor(e.quantity)))}))}catch(e){return[]}}function i(e){let{children:t}=e,[r,i]=(0,l.useState)([]),[d,c]=(0,l.useState)(!1);(0,l.useEffect)(()=>{i(o(window.localStorage.getItem(s))),c(!0)},[]),(0,l.useEffect)(()=>{d&&window.localStorage.setItem(s,JSON.stringify(r))},[r,d]),(0,l.useEffect)(()=>{let e=e=>{e.key===s&&i(o(e.newValue))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]);let u=(0,l.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;i(r=>r.find(t=>t.productId===e)?r.map(r=>r.productId===e?{...r,quantity:Math.min(99,r.quantity+t)}:r):[...r,{productId:e,quantity:Math.min(99,Math.max(1,t))}])},[]),h=(0,l.useCallback)((e,t)=>{i(r=>t<=0?r.filter(t=>t.productId!==e):r.map(r=>r.productId===e?{...r,quantity:Math.min(99,Math.floor(t))}:r))},[]),x=(0,l.useCallback)(e=>{i(t=>t.filter(t=>t.productId!==e))},[]),m=(0,l.useCallback)(()=>i([]),[]),f=(0,l.useMemo)(()=>({items:r,count:r.reduce((e,t)=>e+t.quantity,0),add:u,setQuantity:h,remove:x,clear:m,ready:d}),[r,u,h,x,m,d]);return(0,a.jsx)(n.Provider,{value:f,children:t})}function d(){let e=(0,l.useContext)(n);if(!e)throw Error("useCart must be used within CartProvider");return e}},7874:(e,t,r)=>{r.d(t,{Header:()=>x});var a=r(5155),l=r(2619),n=r.n(l),s=r(2115),o=r(63),i=r(797),d=r(5870),c=r(8564);function u(e){let{current:t,items:r,onSelect:l,ariaLabel:n}=e,[o,i]=(0,s.useState)(!1),d=(0,s.useRef)(null),c=r.find(e=>e.value===t);return(0,s.useEffect)(()=>{if(!o)return;let e=e=>{d.current&&!d.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o]),(0,a.jsxs)("div",{ref:d,className:"relative",children:[(0,a.jsxs)("button",{type:"button","aria-label":n,"aria-haspopup":"listbox","aria-expanded":o,onClick:()=>i(e=>!e),className:"flex items-center gap-1.5 rounded-full border border-black/10 bg-white px-2.5 py-1.5 leading-none transition hover:border-brand focus:border-brand focus:outline-none",title:null==c?void 0:c.label,children:[(0,a.jsx)("span",{className:"text-base leading-none",children:null==c?void 0:c.flag}),(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-foreground/60",children:null==c?void 0:c.code}),(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 text-foreground/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,a.jsx)("path",{d:"m6 9 6 6 6-6"})})]}),o&&(0,a.jsx)("ul",{role:"listbox",className:"absolute left-0 z-50 mt-2 min-w-[10rem] overflow-hidden rounded-xl border border-black/10 bg-white py-1 shadow-xl sm:left-auto sm:right-0",children:r.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",role:"option","aria-selected":e.value===t,onClick:()=>{l(e.value),i(!1)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-brand-light ".concat(e.value===t?"font-semibold text-brand":"text-foreground/80"),children:[(0,a.jsx)("span",{className:"text-base leading-none",children:e.flag}),(0,a.jsx)("span",{children:e.label})]})},e.value))})]})}function h(){let{locale:e,country:t,setLocale:r,setCountry:l,tr:n}=(0,i.Y)(),s=c.FS.map(t=>({value:t,flag:c.RH[t],label:c.Bi[t][e],code:"WORLD"===t?"INT":t})),o=c.YZ.map(e=>({value:e,flag:c.LX[e],label:c.jw[e],code:e}));return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[c.or&&(0,a.jsx)(u,{current:t,items:s,onSelect:l,ariaLabel:n.header.country}),(0,a.jsx)(u,{current:e,items:o,onSelect:r,ariaLabel:n.header.language})]})}function x(){let{tr:e}=(0,i.Y)(),{count:t}=(0,d._)(),r=(0,o.usePathname)(),[l,c]=(0,s.useState)(!1),[u,x]=(0,s.use
1State)("");(0,s.useEffect)(()=>x(window.location.search),[r]),(0,s.useEffect)(()=>c(!1),[r]);let m=e=>{let[t,a]=e.split("?");if("/"===t||"#"===t||e.startsWith("/#")||r!==t)return!1;let l=new URLSearchParams(u).get("kategori");return a?new URLSearchParams(a).get("kategori")===l:!l},f=[{label:e.nav.chargers,href:"/produkter?kategori=Batteri"},{label:e.catalog.title,href:"/produkter"},{label:e.nav.how,href:"/#process"},{label:e.nav.business,href:"/foretag-brf"}];return(0,a.jsxs)("header",{className:"sticky top-0 z-50 border-b border-black/5 bg-white/90 backdrop-blur",children:[(0,a.jsxs)("div",{className:"mx-auto flex h-16 max-w-7xl items-center gap-4 px-4 sm:px-6",children:[(0,a.jsx)(n(),{href:"/",className:"shrink-0","aria-label":"BLST Elektriska",children:(0,a.jsx)("img",{src:"/blst-logo.png",alt:"BLST Elektriska",className:"h-8 w-auto sm:h-9"})}),(0,a.jsx)("nav",{className:"hidden min-w-0 flex-1 items-center justify-center gap-5 overflow-hidden xl:flex",children:f.map(e=>(0,a.jsx)(n(),{href:e.href,"aria-current":m(e.href)?"page":void 0,className:"whitespace-nowrap text-sm transition ".concat(m(e.href)?"font-semibold text-brand":"font-medium text-foreground/70 hover:text-brand"),children:e.label},e.label))}),(0,a.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-2 sm:gap-3",children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(h,{})}),(0,a.jsx)(n(),{href:"/radgivare",className:"hidden whitespace-nowrap rounded-full bg-brand px-4 py-2 text-sm font-semibold text-white transition hover:bg-brand-dark xl:inline-block",children:e.header.cta}),(0,a.jsxs)(n(),{href:"/varukorg","aria-label":e.header.cart,className:"relative rounded-full p-2 text-foreground/70 transition hover:text-brand",children:[(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:(0,a.jsx)("path",{d:"M6 6h15l-1.5 9h-12L6 6Zm0 0-.7-3H3m6 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),t>0&&(0,a.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-5 min-w-5 items-center justify-center rounded-full bg-accent px-1 text-[11px] font-bold text-brand-dark",children:t})]}),(0,a.jsx)("button",{onClick:()=>c(e=>!e),"aria-label":"Meny","aria-expanded":l,className:"rounded-full p-2 text-foreground/70 transition hover:text-brand xl:hidden",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:l?(0,a.jsx)("path",{d:"M6 6l12 12M18 6L6 18",strokeLinecap:"round"}):(0,a.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16",strokeLinecap:"round"})})})]})]}),l&&(0,a.jsx)("div",{className:"border-t border-black/5 bg-white xl:hidden",children:(0,a.jsxs)("nav",{className:"mx-auto flex max-w-7xl flex-col px-4 py-2 sm:px-6",children:[f.map(e=>(0,a.jsx)(n(),{href:e.href,className:"border-b border-black/5 py-3 text-sm font-medium text-foreground/70 transition last:border-0 hover:text-brand",children:e.label},e.label)),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 py-3",children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(h,{})}),(0,a.jsx)(n(),{href:"/radgivare",className:"ml-auto rounded-full bg-brand px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-brand-dark",children:e.header.cta})]})]})})]})}},8455:(e,t,r)=>{r.d(t,{Footer:()=>o});var a=r(5155),l=r(2619),n=r.n(l),s=r(797);function o(){let{tr:e}=(0,s.Y)(),t=e.footer.links,r=[{title:e.footer.colProducts,links:[{label:t.chargers,href:"/produkter?kategori=Batteri"},{label:t.battery,href:"/produkter?kategori=V%C3%A4xelriktare"},{label:t.portable,href:"/produkter?kategori=Solpaneler"},{label:t.heatPumps,href:"/produkter?kategori=V%C3%A4rmepumpar"}]},{title:e.footer.colHelp,links:[{label:t.advisor,href:"/radgivare"},{label:t.guide,href:"/installationsguide"},{label:t.deduction,href:"/gront-avdrag"},{label:t.contact,href:"/kontakt"}]},{title:e.footer.colCompany,links:[{label:t.about,href:"/om-oss"},{label:t.terms,href:"/villkor"},{label:t.privacy,href:"/integritetspolicy"}]}];return(0,a.jsxs)("footer",{className:"bg-brand-dark text-white",children:[(0,a.jsxs)("div",{className:"mx-auto grid max-w-7xl gap-10 px-4 py-16 sm:px-6 lg:grid-cols-4",children:[(0,a.jsxs)("div",{className:"lg:col-span-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("span",{className:"text-xl font-extrabold tracking-tight",children:["BLST",(0,a.jsx)("span",{className:"text-accent",children:" Elektriska"})]})}),(0,a.jsx)("p",{className:"mt-3 text-sm text-white/60",children:e.footer.tagline})]}),r.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-semibold",children:e.title}),(0,a.jsx)("ul",{className:"mt-3 space-y-2 text-sm text-white/60",children:e.links.map(e=>(0,a.jsx)("li",{children:e.href?(0,a.jsx)(n(),{href:e.href,className:"hover:text-white",children:e.label}):(0,a.jsx)("span",{children:e.label})},e.label))})]},e.title))]}),(0,a.jsxs)("div",{className:"border-t border-white/10 py-6 text-center text-xs text-white/40",children:["\xa9 ",new Date().getFullYear()," ",e.footer.rights]})]})}}}]);

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.