1"use strict";(self.webpackChunkdmidk_react_v2=self.webpackChunkdmidk_react_v2||[]).push([[8357],{56986(e,o,t){t(96540);var r=t(18381),i=t(88731),n=t(14132),a=t(87297),s=t(18245),l=t(93672),c=t(74848);const{dmiRedHeart:d}=a.A,p=({item:e,size:o="small"})=>{const t=(0,s.L)().some(o=>o.id===e.id||o?.gid===e.id);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.Sc,{}),(0,c.jsx)(n.A,{onClick:o=>{if(o.stopPropagation(),t)s.y.remove(e.id);else{if(!(0,l.p2)())return void(0,l.Id)();const o={...e};delete o.favourite,s.y.add(o)}},size:o,sx:{color:d},children:t?(0,c.jsx)(i.A,{fontSize:o}):(0,c.jsx)(r.A,{fontSize:o})})]})};t.d(o,["A",0,p])},76338(e,o,t){t.r(o);t(96540);var r=t(56986),i=t(83865),n=t(74848);const a=({gid:e,city:o,country:t,kommune:a=""})=>{const s={city:o,country:t,kommune:a,id:e};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"header-block-weather-now",children:"LIGE NU"}),(0,n.jsxs)("h1",{className:"header-block-weather-title",children:[o,(0,n.jsx)(r.A,{item:s,size:"medium"})]}),"DK"!==t&&e>=100&&(0,n.jsx)("div",{className:"countryname",children:i.FS[t]}),e<100&&(0,n.jsx)("div",{className:"countryname",children:"Farvand"})]})};t.d(o,["default",0,a])},18245(e,o,t){t.d(o,{L:()=>p});var r=t(96540);const i="DMIfavourites";function n(e){const o=String(e.id??e.gid);return{...e,id:o}}let a=JSON.parse(localStorage.getItem(i)||"[]").map(n);const s=new Set;function l(){for(const e of s)e()}function c(e){a=e,localStorage.setItem(i,JSON.stringify(e)),window.dispatchEvent(new Event("DMIFavouritesChanged")),l()}window.addEventListener("storage",e=>{e.key===i&&(a=JSON.parse(e.newValue||"[]").map(n),l())}),window.addEventListener("DMIFavouritesChanged",()=>{a=JSON.parse(localStorage.getItem(i)||"[]"),l()});const d={get:()=>a,subscribe:e=>(s.add(e),()=>s.delete(e)),add(e){const o=n(e);c([...a.filter(e=>String(e.id)!==o.id),o])},remove(e){const o=String(e);c(a.filter(e=>String(e.id)!==o))}};function p(){return(0,r.useSyncExternalStore)(d.subscribe,d.get,d.get)}t.d(o,["y",0,d])},88731(e,o,t){var r=t(55048),i=t(74848);const n=(0,r.A)((0,i.jsx)("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"}),"Favorite");t.d(o,["A",0,n])},18381(e,o,t){var r=t(55048),i=t(74848);const n=(0,r.A)((0,i.jsx)("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05"}),"FavoriteBorder");t.d(o,["A",0,n])},14132(e,o,t){t.d(o,{A:()=>b});var r=t(96540),i=t(34164),n=t(46797),a=t(13482),s=t(9594),l=t(96942),c=t(71676),d=t(54317),p=t(78022),m=t(130),g=t(16198),u=t(16051),v=t(34947);function h(e){return(0,v.Ay)("MuiIconButton",e)}const f=(0,u.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var y=t(42788),S=t(74848);const A=(0,s.A)(p.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.loading&&o.loading,"default"!==t.color&&o[`color${(0,g.A)(t.color)}`],t.edge&&o[`edge${(0,g.A)(t.edge)}`],o[`size${(0,g.A)(t.size)}`]]}})((0,l.A)(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,...(0,y.yP)(e,"background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,l.A)(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,c.A)()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${f.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${f.loading}`]:{color:"transparent"}}))),z=(0,s.A)("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),b=r.forwardRef(function(e,o){const t=(0,d.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:s,className:l,color:c="default",disabled:p=!1,disableFocusRipple:u=!1,size:v="medium",id:f,loading:y=null,loadingIndicator:b,...x}=t,I=(0,a.A)(f),w=b??(0,S.jsx)(m.A,{"aria-labelledby":I,color:"inherit",size:16}),j={...t,edge:r,color:c,disabled:p,disableFocusRipple:u,loading:y,loadingIndicator:w,size:v},R=(e=>{const{classes:o,disabled:t,color:r,edge:i,size:a,loading:s}=e,l={root:["root",s&&"loading",t&&"disabled","default"!==r&&`color${(0,g.A)(r)}`,i&&`edge${(0,g.A)(i)}`,`size${(0,g.A)(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,n.A)(l,h,o)})(j);return(0,S.jsxs)(A,{id:y?I:f,className:(0,i.A)(R.root,l),centerRipple:!0,internalNativeButton:!0,focusRipple:!u,disabled:p||y,ref:o,...x,ownerState:j,children:["boolean"==typeof y&&(0,S.jsx)("span",{className:R.loadingWrapper,style:{display:"contents"},children:(0,S.jsx)(z,{className:R.loadingIndicator,ownerState:j,children:y&&w})}),s]})})},55048(e,o,t){t.d(o,{A:()=>y});var r=t(96540),i=t(34164),n=t(46797),a=t(16198),s=t(9594),l=t(96942),c=t(54317),d=t(16051),p=t(34947);function m(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=t(42788),u=t(74848);const v=(0,s.A)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,"inherit"!==t.color&&o[`color${(0,a.A)(t.color)}`],o[`fontSize${(0,a.A)(t.fontSize)}`]]}})((0,l.A)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,...(0,g.yP)(e,"fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([o])=>({props:{color:o},style:{color:(e.vars??e).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),h=r.forwardRef(function(e,o){const t=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:d="inherit",component:p="svg",fontSize:g="medium",htmlColor:h,inheritViewBox:f=!1,titleAccess:y,viewBox:S="0 0 24 24",...A}
vendor: 817 bytes, lines 1-2
1=t,z=r.isValidElement(s)&&"svg"===s.type,b={...t,color:d,component:p,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:S,hasSvgAsChild:z},x={};f||(x.viewBox=S);const I=(e=>{const{color:o,fontSize:t,classes:r}=e,i={root:["root","inherit"!==o&&`color${(0,a.A)(o)}`,`fontSize${(0,a.A)(t)}`]};return(0,n.A)(i,m,r)})(b);return(0,u.jsxs)(v,{as:p,className:(0,i.A)(I.root,l),focusable:"false",color:h,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:o,...x,...A,...z&&s.props,ownerState:b,children:[z?s.props.children:s,y?(0,u.jsx)("title",{children:y}):null]})});h.muiName="SvgIcon";const f=h;function y(e,o){function t(o,t){return(0,u.jsx)(f,{"data-testid":void 0,ref:t,...o,children:e})}return t.muiName=f.muiName,r.memo(r.forwardRef(t))}}}]); 2//# sourceMappingURL=locationheader.b52cf0ebbf7a3ed4de7c.js.map
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.