1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[156],{1391:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var r=i(6029),s=i(20907),n=i(38108),l=i(15517),a=i(55729),o=i(44890),c=i(81278),h=i(3434),d=i(27261),x=i(89071),u=i(45934),f=i(57165),m=i(53781);let j=e=>fetch(e).then(e=>e.json()),g=e=>{let{menu:t,children:i,allNestedPaths:g,footer:p,lang:w="is"}=e,C=(0,c.useRouter)(),[y,v]=(0,a.useState)(!0),{width:S}=(0,d.A)(),b=(0,a.useContext)(m.B9),[H,N]=(0,a.useState)(!1),[z,E]=(0,a.useState)(!1),[V,_]=(0,a.useState)(),A=(0,l.hN)(V?V.nid:void 0);(0,a.useEffect)(()=>{("/"===C.pathname||"/english"===C.pathname)&&E(!0)},[C]);let{data:k}=(0,f.Ay)("/api/notifications",j);(0,a.useEffect)(()=>{k&&_(k)},[k]),(0,a.useEffect)(()=>{if(S<x.r2.mobile)return N(!0);N(!1)},[S]),(0,a.useEffect)(()=>{if(window){let e=window.location.hash.split("#")[1];e&&(0,o.R)(e)}},[]),(0,a.useEffect)(()=>{let e=setTimeout(()=>{v(!1)},200);return()=>{clearTimeout(e)}},[]);let R=V&&A&&("info"===V.type||void 0===V.type)?{color:x.w4.colors.neutral[100]}:{color:x.w4.colors.neutral[700]};return(0,r.jsxs)(s.TN,{allNestedPaths:g,children:[V&&A&&(0,r.jsx)(l.az,{boxStyles:{paddingTop:"2.5rem"},children:(0,r.jsx)(l.Ad,{type:V.type,id:V.nid,children:(0,r.jsx)(l.az,{width:H?80:"full",margin:"auto",children:(0,r.jsx)(u.$,{field:V.content,components:{paragraph:e=>{let{children:t}=e;return(0,r.jsx)(l.EY,{style:R,my:0,children:t})},hyperlink:e=>{let{children:t,node:i}=e;return(0,r.jsx)("a",{style:R,href:i.data.url,children:t})}}})})})}),(0,r.jsx)(n.Y9,{navigation:t,lang:w,shouldAnimate:z}),(0,r.jsx)(l.az,{boxStyles:{paddingTop:b.isNotificationOpen?"8rem":"5.5rem"},width:"full",display:"block",children:(0,r.jsx)("main",{id:"main",children:i})}),C.isPreview&&(0,r.jsx)(l.az,{extraClassName:h.e,children:(0,r.jsx)(l.$n,{type:"text",onClick:()=>C.push("/api/exitPreview"),color:"neutral",children:"H\xe6tta forsko\xf0un"})}),!y&&p&&(0,r.jsx)(n.Ww,{...p})]})}},3434:(e,t,i)=>{"use strict";i.d(t,{e:()=>r}),i(68436);var r="_17w5khi0"},25309:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>x});var r=i(6029),s=i(15517),n=i(81278),l=i(55729),a=i(1391),o=i(50954);let c=()=>(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 856 315",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M215.838 199.796V0.0975342H137.232L0 190.819V258.042H148.43V314.098H215.838V258.042H251.848V199.796H215.838ZM148.43 199.796H63.0169L148.43 78.707V199.796Z",fill:"#0F1015"}),(0,r.jsx)("path",{d:"M819.99 199.796V0.0975342H741.384L604.152 190.819V258.042H752.582V314.098H819.99V258.042H856V199.796H819.99ZM752.582 199.796H667.169L752.582 78.707V199.796Z",fill:"#0F1015"}),(0,r.jsx)("path",{d:"M635.359 314.097C663.179 314.097 685.615 291.669 685.615 263.858C685.615 236.046 663.179 213.617 635.359 213.617C607.538 213.617 585.102 236.046 585.102 263.858C585.102 291.669 608.436 314.097 635.359 314.097Z",fill:"#009B9E"}),(0,r.jsx)("path",{d:"M428.442 314.098C472.682 314.098 509.843 298.933 539.926 268.603C570.01 238.274 585.051 200.808 585.051 155.313C585.051 112.495 570.01 75.9214 539.042 45.5919C508.959 15.2623 470.912 0.0975342 427.557 0.0975342C384.202 0.0975342 346.156 15.2623 316.073 45.5919C285.99 75.9214 270.949 113.387 270.949 157.098C270.949 201.7 285.99 239.166 316.958 269.495C346.156 298.933 384.202 314.098 428.442 314.098ZM427.557 70.5691C475.336 70.5691 513.383 109.819 513.383 157.098C513.383 205.268 474.452 244.518 427.557 244.518C380.663 244.518 341.732 205.268 341.732 157.99C340.848 108.927 379.778 70.5691 427.557 70.5691Z",fill:"#0F1015"})]}),h=e=>(0,r.jsxs)(s.az,{extraClassName:o.HD,flex:1,children:[(0,r.jsx)(s.az,{flex:5,alignSelf:"center",children:(0,r.jsx)("p",{style:{margin:0,fontWeight:600,fontSize:"1.25rem",letterSpacing:"0.125rem"},children:e.message})}),(0,r.jsx)(s.az,{flex:3,children:(0,r.jsxs)("ul",{className:o.w,children:[(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"/english",icon:"ArrowRight",children:"Go to frontpage"})}),(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"/english/search",icon:"ArrowRight",children:"Test out the search"})}),(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"https://verslun.origo.is",icon:"ArrowRight",children:"Go to the store"})})]})})]}),d=e=>(0,r.jsxs)(s.az,{extraClassName:o.HD,gap:"2.5rem",children:[(0,r.jsx)(s.az,{flex:5,alignSelf:"center",children:(0,r.jsx)("p",{style:{margin:0,fontWeight:600,fontSize:"1.25rem",letterSpacing:"0.125rem"},children:e.message})}),(0,r.jsx)(s.az,{flex:3,children:(0,r.jsxs)("ul",{className:o.w,children:[(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"/",icon:"ArrowRight",children:"Fara \xe1 fors\xed\xf0u"})}),(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"/leitarnidurstodur",icon:"ArrowRight",children:"Pr\xf3fa\xf0u leitina"})}),(0,r.jsx)("li",{children:(0,r.jsx)(s.$n,{variant:"text",color:"primary",href:"https://verslun.origo.is",icon:"ArrowRight",children:"Sko\xf0a v\xf6rur \xed Netverslun"})})]})})]});function x(){let[e,t]=(0,l.useState)(""),i=(0,n.useRouter)().query.message;return(0,l.useEffect)(()=>{window&&t(window.location.pathname.indexOf("/english")>-1?"en-gb":"is")},[]),(0,r.jsx)(a.A,{menu:null,lang:"is"===e?"is":"en-gb",children:(0,r.jsx)(s.mc,{children:(0,r.jsxs)(s.az,{extraClassName:o.DP,children:[(0,r.jsx)(s.az,{boxStyles:{gridColumn:"3 / 11"},children:(0,r.jsx)(c,{})}),(0,r.jsx)(s.az,{boxStyles:{gridColumn:"3 / 11"},children:"en-gb"===e?(0,r.jsx)(h,{message:i}):(0,r.jsx)(d,{message:i})})]})})})}},28433:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/400",function(){return i(25309)}])},44890:(e,t,i)=>{"use strict";i.d(t,{R:()=>r});let r=e=>{if(window){let t=window.document.querySelector('[data-anchorid="'.concat(decodeURI(e),'"]'));t&&setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},1e3)}}},50954:(e,t,i)=>{"use strict";i.d(t,{DP:()=>n,HD:()=>r,w:()=>s}),i(43078),i(48442),i(44006),i(84779),i(51074);var r="gbuqmi1",s="gbuqmi2",n="gbuqmi0"},51074:()=>{},68436:()=>{}},e=>{e.O(0,[636,593,792],()=>e(e.s=28433)),_N_E=e.O()}]);
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.