1import{c as S,u as E,H as L,E as $,Y as A,j as e,m as g,b as m,g as C,V as M,$ as q,a0 as H,r as R,a1 as k,a2 as I,a3 as P,a4 as p,N as F,h,t as G,y as O,o as z}from"./index-Bds7fSVR.js";import{u as T,h as v,R as V}from"./RelatedIndustryArticles-tFRJSvNz.js";import{b as D,H as _}from"./branscher-CEQTyY5l.js";import{C as U}from"./calendar-days-BBjreVkC.js";import{M as W,r as J}from"./index-DoKvCDw8.js";import"./plus-DIl1NeUL.js";import"./utensils-crossed-DPSfDnE2.js";import"./factory-DPPEBKqv.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const K=S("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Y=S("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),N=({sticky:n=!1,className:i=""})=>{const{t:s}=E(),r=[{icon:K,text:s("Analysera era nuvarande elavtal efter dolda fel och avgifter.","Review your current electricity contracts for hidden errors and fees.")},{icon:L,text:s("Omförhandla till marknadens bästa villkor.","Renegotiate to the best terms available on the market.")},{icon:$,text:s("Bevaka elmarknaden åt er så ni slipper oroa er.","Monitor the electricity market on your behalf so you don't have to.")},{icon:A,text:s("Analysera och kräva tillbaka energiskatten (för berättigade verksamheter).","Review and reclaim energy tax (for eligible businesses).")}];return e.jsxs("aside",{className:["card-elevated p-6 md:p-7 border border-border/60",n?"lg:sticky lg:top-28":"",i].join(" "),"aria-label":s("Boka kostnadsfri rådgivning","Book a free consultation"),children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-full bg-accent/10 text-accent",children:e.jsx(Y,{className:"w-4 h-4"})}),e.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-accent",children:s("Oberoende rådgivning","Independent advisory")})]}),e.jsx("h3",{className:"text-xl md:text-2xl font-extrabold text-foreground leading-tight mb-3",children:s("Få oberoende hjälp av en expert","Get independent help from an expert")}),e.jsx("p",{className:"text-sm text-muted-foreground font-light leading-relaxed mb-5",children:s("Vi hjälper er att genomlysa era energikostnader helt utan förpliktelser. Vår oberoende rådgivning fokuserar på att:","We help you review your energy costs with no obligations. Our independent advisory focuses on:")}),e.jsx("ul",{className:"space-y-3 mb-6",children:r.map(({icon:t,text:c},d)=>e.jsxs(g.li,{initial:{opacity:0,x:-6},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.35,delay:d*.06},className:"flex items-start gap-3",children:[e.jsx("span",{className:"mt-0.5 inline-flex w-7 h-7 items-center justify-center rounded-full bg-accent/10 text-accent shrink-0",children:e.jsx(t,{className:"w-3.5 h-3.5"})}),e.jsx("span",{className:"text-sm text-foreground/90 font-light leading-relaxed",children:c})]},d))}),e.jsxs(m,{to:"/bli-kund",className:"group w-full inline-flex items-center justify-center gap-2 rounded-full bg-accent px-5 py-3.5 text-sm font-semibold text-accent-foreground hover:bg-accent/90 transition-all hover:shadow-lg",children:[s("Boka kostnadsfri rådgivning","Book a free consultation"),e.jsx(C,{className:"w-4 h-4 transition-transform group-hover:translate-x-0.5"})]}),e.jsx("p",{className:"mt-4 text-[11px] text-muted-foreground text-center",children:s("Helt oberoende · Inga förpliktelser · Svar inom 1 arbetsdag","Fully independent · No obligations · Reply within 1 business day")})]})},w="https://savera.se",o=(n,i,s="name")=>{let r=document.querySelector(`meta[${s}="${n}"]`);r||(r=document.createElement("meta"),r.setAttribute(s,n),document.head.appendChild(r)),r.setAttribute("content",i)},ne=()=>{const{slug:n}=M(),{pathname:i}=q(),s=H(i),{t:r}=E(),t=T(n);if(R.useEffect(()=>{if(!t)return;const a=`${t.title} | Savera Kunskap`,f=`/kunskap/${t.slug}`,b=v(t.slug),u=b?`/knowledge/${k(t.slug)}`:null,y=s&&u?`${w}/en${u}`:`${w}${f}`;document.title=a,o("description",t.excerpt),o("og:title",a,"property"),o("og:description",t.excerpt,"property"),o("og:url",y,"property"),o("og:type","article","property"),o("twitter:title",a),o("twitter:description",t.excerpt),I({locale:s&&b?"en_US":"sv_SE"}),P(f,u,s);const B={"@context":"https://schema.org","@type":"Article",headline:t.title,de
11scription:t.excerpt,datePublished:t.date,author:{"@type":"Person",name:t.author||"Savera"},publisher:{"@type":"Organization",name:"Savera"},mainEntityOfPage:{"@type":"WebPage","@id":y},articleSection:t.industryLabel},x="guide-jsonld";let l=document.getElementById(x);return l||(l=document.createElement("script"),l.id=x,l.type="application/ld+json",document.head.appendChild(l)),l.textContent=JSON.stringify(B),()=>{const j=document.getElementById(x);j&&j.remove()}},[t]),!t)return e.jsx(p,{to:"/blogg",replace:!0});if(s&&!v(t.slug))return e.jsx(p,{to:`/kunskap/${t.slug}`,replace:!0});if(s){const a=k(t.slug);if(a!==t.slug&&n!==a)return e.jsx(p,{to:`/en/knowledge/${a}`,replace:!0})}if(!s&&n!==t.slug)return e.jsx(p,{to:`/kunskap/${t.slug}`,replace:!0});const c=D.find(a=>a.slug===t.industryTag),d=["prose prose-lg w-full max-w-none break-words","prose-headings:font-extrabold prose-headings:tracking-tight prose-headings:text-foreground prose-headings:scroll-mt-24","prose-h2:text-2xl md:prose-h2:text-3xl prose-h2:mt-12 prose-h2:mb-4 prose-h2:leading-snug prose-h2:pb-2 prose-h2:border-b prose-h2:border-border/60","prose-h3:text-xl prose-h3:mt-9 prose-h3:mb-3 prose-h3:text-foreground/90","prose-p:text-muted-foreground prose-p:font-light prose-p:leading-[1.85] prose-p:my-5","prose-ul:my-6 prose-ul:pl-6 prose-ul:space-y-2 prose-ul:list-disc marker:text-accent","prose-ol:my-6 prose-ol:pl-6 prose-ol:space-y-2 prose-ol:list-decimal prose-ol:marker:font-semibold prose-ol:marker:text-accent","prose-li:text-muted-foreground prose-li:font-light prose-li:leading-relaxed","prose-strong:text-foreground prose-strong:font-semibold","prose-a:text-accent prose-a:font-medium prose-a:no-underline hover:prose-a:underline underline-offset-4","prose-blockquote:border-l-2 prose-blockquote:border-accent prose-blockquote:pl-6 prose-blockquote:italic prose-blockquote:text-foreground/90 prose-blockquote:font-normal prose-blockquote:my-8","prose-table:my-8 prose-th:bg-surface-light prose-th:text-foreground prose-th:font-semibold prose-th:p-3 prose-td:p-3 prose-td:border-t prose-td:border-border"].join(" ");return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(F,{}),e.jsx("main",{className:"pt-28 md:pt-36 pb-16 md:pb-24",children:e.jsxs("div",{className:"container-grid",children:[e.jsxs("nav",{"aria-label":r("Brödsmulor","Breadcrumb"),className:"flex items-center flex-wrap gap-1.5 text-xs md:text-sm text-muted-foreground mb-8",children:[e.jsxs(m,{to:"/",className:"inline-flex items-center gap-1 hover:text-foreground transition-colors",children:[e.jsx(_,{className:"w-3.5 h-3.5"}),r("Hem","Home")]}),e.jsx(h,{className:"w-3.5 h-3.5 opacity-50"}),e.jsx(m,{to:"/branscher",className:"hover:text-foreground transition-colors",children:r("Branscher","Industries")}),c&&e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"w-3.5 h-3.5 opacity-50"}),e.jsx(m,{to:`/branscher/${c.slug}`,className:"hover:text-foreground transition-colors",children:c.title})]}),e.jsx(h,{className:"w-3.5 h-3.5 opacity-50"}),e.jsx("span",{className:"text-foreground font-medium line-clamp-1",children:t.title})]}),e.jsxs("div",{className:"grid lg:grid-cols-[minmax(0,1fr)_360px] gap-12 lg:gap-16",children:[e.jsxs("article",{children:[e.jsxs(g.header,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-10 md:mb-12",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-accent/10 px-3 py-1 text-xs font-bold uppercase tracking-widest text-accent mb-5",children:t.industryLabel}),e.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold text-foreground leading-[1.1] tracking-tight mb-6 text-balance",children:t.title}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground font-light leading-relaxed max-w-2xl text-pretty",children:t.excerpt}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(U,{className:"w-4 h-4"}),new Date(t.date).toLocaleDateString(s?"en-GB":"sv-SE",{year:"numeric",month:"long",day:"numeric"})]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(G,{className:"w-4 h-4"}),t.readTime," ",r("min lästid","min read")]}),t.author&&e.jsxs("span",{children:[r("Av","By")," ",e.jsx("span",{className:"text-foreground font-medium",children:t.author})]})]})]}),e.jsx(g.div,{initial:{opacity:0,y:20}
11,animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:d,children:e.jsx(W,{remarkPlugins:[J],children:t.content})}),e.jsx("div",{className:"lg:hidden mt-12",children:e.jsx(N,{})})]}),e.jsx("div",{className:"hidden lg:block",children:e.jsx(N,{sticky:!0})})]})]})}),e.jsx(V,{industry:t.industryTag,title:r("Fler guider för samma bransch","More guides for the same industry")}),e.jsx(O,{}),e.jsx(z,{})]})};export{ne as default};
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.