1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8375],{542:function(l,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/safneign/verk/[slug]",function(){return i(5497)}])},5497:function(l,e,i){"use strict";i.r(e),i.d(e,{__N_SSG:function(){return m},default:function(){return p}});var t=i(5893),n=i(1163),a=i(7974),s=i(7852),o=i(36);let r=l=>{let e=new o.Z;return e.addRule("listItem",{filter:["li"],replacement:function(l){return"- "+l+"\n"}}),e.addRule("u",{filter:["u"],replacement:function(l){return"_"+l+"_"}}),e.addRule("strong",{filter:["strong"],replacement:function(l){return" **"+l+"** "}}),e.turndown(l)};var c=i(2611),d=i(724),u=i(9587),h=i(3527);let v=l=>{var e,i,o,v,m,p,x,f,g,w,j;let{item:_}=l,{t:N}=(0,a.$G)("common"),{locale:b}=(0,n.useRouter)(),y=[];(null==_?void 0:_.Breidd)&&y.push({label:N("work_width"),value:"".concat(null==_?void 0:_.Breidd," cm")}),(null==_?void 0:_.Haed)&&y.push({label:N("work_height"),value:"".concat(null==_?void 0:_.Haed," cm")}),(null==_?void 0:_.Grein)&&y.push({label:N("work_category"),value:"".concat(null==_?void 0:_.Grein)}),(null==_?void 0:_.Upphafsar)&&y.push({label:N("work_year"),value:"".concat(null==_?void 0:_.Upphafsar)});let k=r(null==_?void 0:_.texti_um_verk_fyrir_vef),z=null!==(e=null==_?void 0:_.UUID_Mynd)&&void 0!==e?e:"",R=z?"/api/collection-image/".concat(z):"",C=R?"".concat("https://listasafnreykjavikur.is").concat(R):R,E={...z?{canonicalUrl:null!==(i=(0,s.N)((0,c.kG)("collection_item",[z],b),b))&&void 0!==i?i:"",hrefLangUrls:[{locale:"is",url:null!==(o=(0,s.N)((0,c.kG)("collection_item",[z],"is"),"is"))&&void 0!==o?o:""},{locale:"en",url:null!==(v=(0,s.N)((0,c.kG)("collection_item",[z],"en"),"en"))&&void 0!==v?v:""}]}:{},title:"".concat(null==_?void 0:_.Verkheiti," / ").concat(null==_?void 0:_.ListamadurHofundur),description:null!==(m=null==_?void 0:_.texti_um_verk_fyrir_vef)&&void 0!==m?m:"",image:{type:"url",url:C},locale:b};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.p,{...E}),(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)(d.S,{title:null!==(p=null==_?void 0:_.ListamadurHofundur)&&void 0!==p?p:"",...R&&{image:{src:R,alt:null!==(x=null==_?void 0:_["Lj\xf3smynd af"])&&void 0!==x?x:"",height:Number(null!==(f=null==_?void 0:_.Web_Height)&&void 0!==f?f:0),width:Number(null!==(g=null==_?void 0:_.Web_Width)&&void 0!==g?g:0),quality:85}},info:y,copyrightText:null!==(w=N("collection_terms"))&&void 0!==w?w:"",text:null!==(j=null==_?void 0:_.Verkheiti)&&void 0!==j?j:""}),k&&(0,t.jsx)(u.H,{half:!0,richText:k})]})]})};var m=!0,p=v},724:function(l,e,i){"use strict";i.d(e,{S:function(){return N}});var t=i(5893),n=i(2243),a=i(6010),s=i(7974),o=i(7294),r=i(6148),c=i(4829),d=i(5345),u=i(7897),h=i(1756),v=i(8504),m=i(1922);let p={type:"spring",damping:25,stiffness:120},x=o.forwardRef(function(l,e){let{alt:i,...n}=l;return(0,t.jsx)(m.Z,{alt:i,...n,ref:e})}),f=(0,u.E)(x),g=l=>{let{src:e="",alt:i="",height:n,width:s,quality:r}=l,[c,d]=(0,o.useState)(!1),[u,m]=(0,o.useState)(!1),x=(0,o.useRef)(null),{width:g,height:w}=(0,v.Z)();(0,h.p)((0,o.useRef)(window),"scroll",()=>{c&&d(!1)});let j=(0,o.useCallback)(()=>{var l,e,i,t;let n=null===(l=null==x?void 0:null===(e=x.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===l?void 0:l.height,a=null===(i=null==x?void 0:null===(t=x.current)||void 0===t?void 0:t.getBoundingClientRect())||void 0===i?void 0:i.width;m(!c&&!!(n&&a&&g>a&&w>n))},[c,w,g]);return(0,o.useEffect)(()=>{j()},[j]),(0,t.jsx)("div",{ref:x,className:(0,a.Z)("z-50",{"relative h-full w-full":!c,"fixed bottom-0 left-0 right-0 top-0":c,"cursor-zoom-in":!c&&!u,"cursor-zoom-out":c&&!u,"cursor-default":u}),onClick:()=>!u&&d(!c),style:{...c?{maxHeight:"calc(100svh - 144px)",maxWidth:"calc(100svw - 144px)"}:{maxHeight:"unset",maxWidth:"unset"}},children:(0,t.jsx)(f,{style:{...c?{position:"fixed",top:72,left:72,bottom:72,right:72,height:"auto",width:"auto",maxHeight:"calc(100svh - 144px)",maxWidth:"calc(100svw - 144px)"}:{position:"absolute",height:"100%",width:"100%"}},onLayoutAnimationComplete:()=>j(),layout:"preserve-aspect",pure:!0,width:s,height:n,transition:p,src:"string"==typeof e?e:"",alt:i,qual
1ity:r})})};var w=i(898),j=i(8010),_=i.n(j);let N=l=>{var e,i,u,h,v,m,p,x;let f,j;let{title:N,text:b,image:y,info:k=[],limitHeight:z,copyrightText:R}=l,{t:C}=(0,s.$G)("common"),[E,Z]=(0,o.useState)(0),[q,H]=(0,o.useState)(0),[S,G]=(0,o.useState)(!1),B=(0,o.useRef)(null),L=(0,o.useRef)(null),U=(0,c.Z)("(min-width: ".concat(_().theme.extend.screens.xl,")"),!0);(0,o.useEffect)(()=>{let l=()=>{(null==B?void 0:B.current)&&Z(B.current.getBoundingClientRect().height),(null==L?void 0:L.current)&&H(L.current.getBoundingClientRect().height)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[B,L]),Array.isArray(y)?(f=null==y?void 0:y[0],j=null==y?void 0:y[1]):f=y;let W=f&&j,F=f&&!j,T=F&&(null!==(e=null==f?void 0:f.height)&&void 0!==e?e:0)>(null!==(i=null==f?void 0:f.width)&&void 0!==i?i:0),V=F&&(null!==(u=null==f?void 0:f.height)&&void 0!==u?u:0)<=(null!==(h=null==f?void 0:f.width)&&void 0!==h?h:0);return(0,t.jsxs)("div",{className:"mb-22 space-y-2 pt-4 md:mb-19 md:space-y-4 md:pt-7",children:[(0,t.jsxs)("div",{className:"mb-4 flex flex-wrap gap-2 md:gap-4",children:[(0,t.jsx)(w.u,{as:"h1",variant:"headline-bold",className:"inline-block min-w-[50%]",children:"string"==typeof N?(0,t.jsx)(d.wF,{children:N}):N.map((l,e)=>(0,t.jsx)("span",{className:"block",children:(0,t.jsx)(d.wF,{children:l})},e))}),b&&(0,t.jsx)(w.u,{as:"h2",variant:"headline",className:(0,a.Z)("relative ml-auto w-full xl:w-[calc(50%_-_1rem)]",{"xl:sticky xl:top-0 xl:h-0 xl:translate-y-[100%]":T}),style:{...U&&T&&E&&q&&{marginBottom:-E+q}},children:"string"==typeof b?(0,t.jsx)("span",{ref:L,children:(0,t.jsx)(d.wF,{children:b})}):b.map((l,e)=>(0,t.jsx)("span",{ref:L,className:"block",children:(0,t.jsx)(d.wF,{children:l})},e))},U?"desktop-h2":"mobile-h2")]}),W&&(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 md:gap-4",children:[f&&(0,t.jsx)("div",{className:(0,a.Z)("relative aspect-[840/1040] w-full",{"max-h-[80vh]":z}),children:(0,t.jsx)(g,{src:f.src,alt:f.alt,fill:!0,sizes:"45vw",unoptimized:null!==(v=null==f?void 0:f.unoptimized)&&void 0!==v&&v,quality:null==f?void 0:f.quality,className:"object-cover"})}),j&&(0,t.jsx)("div",{className:(0,a.Z)("relative aspect-[840/1040] w-full",{"max-h-[80vh]":z}),children:(0,t.jsx)(g,{src:j.src,alt:j.alt,fill:!0,sizes:"45vw",unoptimized:null!==(m=null==j?void 0:j.unoptimized)&&void 0!==m&&m,quality:null==j?void 0:j.quality,className:"object-cover"})})]}),F&&(0,t.jsx)("div",{ref:B,className:(0,a.Z)("grid gap-2 md:gap-4",{"grid-cols-1":V,"grid-cols-1 xl:grid-cols-2":T}),children:f&&(0,t.jsx)("div",{className:(0,a.Z)("relative w-full",{"max-h-[80vh]":z}),style:{aspectRatio:"".concat(f.width,"/").concat(f.height)},children:(0,t.jsx)(g,{src:f.src,alt:f.alt,width:f.width,height:f.height,sizes:T?"46vw":"97vw",unoptimized:null!==(p=null==f?void 0:f.unoptimized)&&void 0!==p&&p,quality:null==f?void 0:f.quality},f.src)})}),!!k.length&&(0,t.jsxs)("div",{className:"grid grid-cols-12",children:[(0,t.jsx)("div",{className:"relative col-span-12 inline-flex gap-2 md:col-span-6 md:mb-6 lg:col-span-4 xl:col-span-2",children:(0,t.jsx)("div",{className:"-top-5 md:absolute",children:(0,t.jsxs)(n.fC,{open:S,onOpenChange:G,children:[(0,t.jsx)(n.xz,{className:"aspect-square rounded-full outline-none",children:(0,t.jsx)(w.u,{as:"span",variant:"intro-bold",children:"\xa9"})}),(0,t.jsx)(n.aV,{className:"fixed bottom-0 left-0 right-0 top-0 z-50 grid place-items-center overflow-y-auto bg-white/90",children:(0,t.jsx)(n.VY,{className:"w-full max-w-[600px] border bg-white p-10 outline-none",children:R&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(w.u,{variant:"x-small",as:"span",children:(0,t.jsx)(r.D,{children:R})}),(0,t.jsx)(n.x8,{"aria-label":null!==(x=C("close"))&&void 0!==x?x:"",className:"focusable",children:(0,t.jsx)(w.u,{variant:"x-small-bold",children:C("close_window")})})]})})})]})})}),k.map((l,e)=>{let{label:i,value:n}=l;return(0,t.jsxs)("div",{className:"col-span-12 inline-flex gap-2 md:col-span-6 md:mb-6 lg:col-span-4 xl:col-span-2",title:"".concat(i,": ").concat(n),children:[(0,t.jsxs)(w.u,{variant:"small-bold",children:[i,":"]}),(0,t.jsx)(w.u,{variant:"small",className:"truncate",children:n})]},e)})]})]})}},7852:function(l,e,i){"use strict";i.d(e,{N:function(){return n}});let t=l=>"en"===l?"/en":"",n=(l,e)=>"".concat("https://listasafnreykjavikur.is").concat(t(e)).concat(l)}},function(l){l.O(0,[3215,6766,9774,2888,179],function(){return l(l.s=542)}),_N_E=l.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.