1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7087bf50-b14a-40d0-9509-adada06f7132",e._sentryDebugIdIdentifier="sentry-dbid-7087bf50-b14a-40d0-9509-adada06f7132")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9949],{29949:(e,t,l)=>{l.r(t),l.d(t,{default:()=>v});var r=l(54568),a=l(7620),n=l(93025),i=l(20426),o=l(11444),s=l(62173),d=l(89741),c=l(40123),u=l(72990),f=l(58988),p=l(93761),h=l(13175);let m="externwebb-banners-dismissed",g={block:{normal:({children:e})=>(0,r.jsx)(i.default,{variant:"body2",component:"span",sx:{display:"block"},children:e})},marks:{link:({children:e,value:t})=>(0,r.jsx)(o.default,{href:t?.href,color:"inherit",underline:"always",children:e})}};function y(e){return`${e._key}-r${e.revision??1}`}function x({banners:e}){let[t,l]=(0,a.useState)(null),{isHidden:A}=(0,h.Z)();(0,a.useEffect)(()=>{l(function(){try{let e=localStorage.getItem(m);return new Set(e?JSON.parse(e):[])}catch{return new Set}}())},[]);let v=(e??[]).filter(e=>!A&&e.enabled&&null!==t&&!t.has(y(e)));return 0===v.length?null:(0,r.jsx)(s.default,{sx:{display:"flex",flexDirection:"column",gap:.5,my:.5},children:v.map(e=>(0,r.jsx)(s.default,{sx:{width:"100%",display:"flex",justifyContent:"center",backgroundColor:`${e.severity}.light`},children:(0,r.jsxs)(d.default,{severity:e.severity??"info",role:"error"===e.severity||"warning"===e.severity?"alert":"status",sx:{width:"100%",maxWidth:`${p.k}px`,borderRadius:0,px:2,"& .MuiAlert-message":{width:"100%",overflow:"visible",display:"flex",justifyContent:"space-between",alignItems:"flex-start"}},children:[(0,r.jsxs)(s.default,{sx:{flex:1,maxWidth:"65ch"},children:[e.title&&(0,r.jsx)(c.default,{children:e.title}),e.htmlText&&(0,r.jsx)(i.default,{variant:"body2",component:"span",sx:{display:"block"},dangerouslySetInnerHTML:{__html:e.htmlText}}),!e.htmlText&&e.text&&e.text.length>0&&(0,r.jsx)(n.RK,{value:e.text,components:g}),e.link?.href&&(0,r.jsx)(o.default,{href:e.link.href,color:"inherit",underline:"always",children:e.link.label??e.link.href})]}),(0,r.jsx)(u.default,{size:"small","aria-label":"St\xe4ng banner",onClick:()=>{l(t=>{let l=new Set(t??[]);return l.add(y(e)),localStorage.setItem(m,JSON.stringify([...l])),l})},color:"inherit",children:(0,r.jsx)(f.IconClose,{fontSize:"small"})})]})},e._key))})}let A={Electricity:"El",DistrictHeating:"Fj\xe4rrv\xe4rme",Water:"Vatten",DistrictCooling:"Fj\xe4rrkyla"};function v({siteBanners:e,outageWarningThreshold:t,outagePageUrl:l}){let[n,i]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(null==t)return;let e=!1;return async function(t){try{let r=await fetch("/api/outages/?type=Ongoing&take=200");if(!r.ok)return;let a=await r.json();if(e)return;let n=(a.items??[]).filter(e=>e.currentlyAffectedConnectionPoints>=t);i(n.map(e=>{let t,r,a;return t=A[e.utility],r=e.affectedAreas?` i ${e.affectedAreas}`:"",a=`${e.currentlyAffectedConnectionPoints} kunder p\xe5verkade${r}.`,{_key:`outage-${e.id}`,enabled:!0,severity:"warning",title:`Driftst\xf6rning â ${t}`,...e.description?{htmlText:e.description}:{text:[{_type:"block",_key:`outage-${e.id}-text`,style:"normal",children:[{_type:"span",_key:`outage-${e.id}-span`,text:a,marks:[]}],markDefs:[]}]},...l?.href?{link:{label:l.label??"Se alla driftst\xf6rningar",href:l.href}}:{}}}))}catch{}}(t),()=>{e=!0}},[t,l]),(0,r.jsx)(x,{banners:[...n,...e??[]]})}},40123:(e,t,l)=>{l.d(t,{default:()=>m});var r=l(7620),a=l(9917),n=l(33060),i=l(33451),o=l(67996),s=l(58660),d=l(20426),c=l(16586),u=l(85482);function f(e){return(0,u.Ay)("MuiAlertTitle",e)}(0,c.A)("MuiAlertTitle",["root"]);var p=l(54568);let h=(0,i.default)(d.default,{name:"MuiAlertTitle",slot:"Root"})((0,o.A)(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),m=r.forwardRef(function(e,t){let l=(0,s.b)({props:e,name:"MuiAlertTitle"}),{className:r,...i}=l,o=(e=>{let{classes:t}=e;return(0,n.A)({root:["root"]},f,t)})(l);return(0,p.jsx)(h,{gutterBottom:!0,component:"div",ownerState:l,ref:t,className:(0,a.A)(o.root,r),...i})})},89741:(e,t,l)=>{l.d(t,{default:()=>_});var r=l(7620),a=l(9917),n=l(33060),i=l(33451),o=l(67996),s=l(58660),d=l(70144),c=l(64616),u=l(19412),f=l(44013),p=l(36524),h=l(16586),m=l(85482);function g(e){return(0,m.Ay)("MuiAlert",e)}let y=(0,h.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","outlined","standard"]);var x=l(72990),A=l(34794),v=l(54568);let b=(0,A.A)((0,v.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}
1),"SuccessOutlined"),k=(0,A.A)((0,v.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),j=(0,A.A)((0,v.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),C=(0,A.A)((0,v.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var w=l(10635);let S=(0,i.default)(p.default,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,t[l.variant]]}})((0,o.A)(({theme:e})=>{let t="light"===e.palette.mode?e.darken:e.lighten,l="light"===e.palette.mode?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,f.A)(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:l(e.palette[r].light,.9),[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,f.A)(["light"])).map(([l])=>({props:{colorSeverity:l,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${l}Color`]:t(e.palette[l].light,.6),border:`1px solid ${(e.vars||e).palette[l].light}`,[`& .${y.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}}})),...Object.entries(e.palette).filter((0,f.A)(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{...e.focusVisible&&(0,d.EA)(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),M=(0,i.default)("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),$=(0,i.default)("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),T=(0,i.default)("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),I={success:(0,v.jsx)(b,{fontSize:"inherit"}),warning:(0,v.jsx)(k,{fontSize:"inherit"}),error:(0,v.jsx)(j,{fontSize:"inherit"}),info:(0,v.jsx)(C,{fontSize:"inherit"})},_=r.forwardRef(function(e,t){let l=(0,s.b)({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:d="Close",color:f,icon:p,iconMapping:h=I,onClose:m,role:y="alert",severity:A="success",slotProps:b={},slots:k={},variant:j="standard",...C}=l,_={...l,color:f,severity:A,variant:j,colorSeverity:f||A},z=(e=>{let{variant:t,color:l,severity:r,classes:a}=e,i={root:["root",`color${(0,u.A)(l||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,n.A)(i,g,a)})(_),L={slots:k,slotProps:b},[E,O]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,a.A)(z.root,o),elementType:S,externalForwardedProps:{...L,...C},ownerState:_,additionalProps:{role:y,elevation:0}}),[R,D]=(0,c.A)("icon",{className:z.icon,elementType:M,externalForwardedProps:L,ownerState:_}),[N,W]=(0,c.A)("message",{className:z.message,elementType:$,externalForwardedProps:L,ownerState:_}),[H,F]=(0,c.A)("action",{className:z.action,elementType:T,externalForwardedProps:L,ownerState:_}),[P,V]=(0,c.A)("closeButton",{elementType:x.default,externalForwardedProps:L,ownerState:_}),[B,Z]=(0,c.A)("closeIcon",{elementType:w.A,externalForwardedProps:L,ownerState:_});return(0,v.jsxs)(E,{...O,children:[!1!==p?(0,v.jsx)(R,{...D,children:p||h[A]||I[A]}):null,(0,v.jsx)(N,{...W,children:i}),null!=r?(0,v.jsx)(H,{...F,children:r}):null,null==r&&m?(0,v.jsx)(H,{...F,children:(0,v.jsx)(P,{size:"small","aria-label":d,title:d,color:"inherit",onClick:m,...V,children:(0,v.jsx)(B,{fontSize:"small",...Z})})}):null]})})}}]);
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.