(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4003],{56663:function(e,t,r){Promise.resolve().then(r.bind(r,2070)),Promise.resolve().then(r.bind(r,31157)),Promise.resolve().then(r.bind(r,92320)),Promise.resolve().then(r.bind(r,64996)),Promise.resolve().then(r.bind(r,39617)),Promise.resolve().then(r.bind(r,38124))},2070:function(e,t,r){"use strict";r.d(t,{ClientSideEmployee:function(){return w}});var n=r(35351),i=r(38859),o=r(74391),s=r(12321),l=r(29543),a=r(53426),d=r(3518),u=r(70273),c=r(35255),m=r(7113),h=r(6875);let f=Number.POSITIVE_INFINITY,g=e=>{let{listsAndRecommendations:t,total:r,employee:o}=e;return t.length?(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(p,{employee:o,listsAndRecommendations:t,total:r}),children:(0,n.jsx)(v,{employee:o,listsAndRecommendations:t,total:r})}):null},p=e=>{var t,r,i;let{t:o}=(0,d.$)();return(0,n.jsxs)(s.Kqy,{children:[(0,n.jsx)(s.X6q,{fontSize:"1.5rem",children:o("{name} anbefaler ({total})",{name:null===(r=e.employee.name)||void 0===r?void 0:null===(t=r.split(" "))||void 0===t?void 0:t.slice(0,1)[0],total:e.total})}),e.numberOfItemsToShow&&(0,n.jsx)(u.$,{itemsLength:e.numberOfItemsToShow,name:o(e.numberOfItemsToShow>1?"anbefalinger":"anbefaling")}),(0,n.jsx)(s.rjZ,{gap:"1rem 1rem",gridTemplateColumns:"repeat(auto-fill, minmax(13em, 1fr))",children:null===(i=e.listsAndRecommendations)||void 0===i?void 0:i.map(e=>"recommendation"===e._type?(0,n.jsx)(m.Z,{recommendation:e},e._id):(0,n.jsx)(c.Z,{list:e},e._id))}),e.showMoreButton]})},v=e=>{let{listsAndRecommendations:t,total:r,employee:i}=e,{t:o}=(0,d.$)(),[l,a]=(0,h.x)(Math.min(9,f),"size"),u=t.slice(0,l),c=u.length,m=(0,n.jsx)(n.Fragment,{children:r>l&&l<f&&(0,n.jsx)(s.M5Y,{marginTop:"2rem",children:(0,n.jsx)(s.zxk,{variant:"secondary",onClick:()=>{a(Math.min(l+9,f))},children:o("Vis mer")})})});return(0,n.jsx)(p,{listsAndRecommendations:u,total:r,employee:i,showMoreButton:m,numberOfItemsToShow:c})};var x=r(73642),j=r(55362),b=r(15751),y=r(45473),C=e=>{var t;let{employee:r}=e,{t:i,ts:o}=(0,d.$)(),a=(0,x.SP)().colors.card;return(0,n.jsxs)(s.xuv,{...a.css,children:[(0,n.jsx)(j.Z,{paddingTop:"1.5rem",title:i("Til alle ansatte"),url:"/ansatte"}),(0,n.jsx)(l.d,{paddingTop:"1rem",paddingBottom:"3rem",children:(0,n.jsxs)(s.kCb,{gridGap:"3rem",flexWrap:{base:"wrap",lg:"nowrap"},justifyContent:{base:"center",lg:"unset"},children:[(0,n.jsx)(s.Kqy,{alignItems:"center",justifyContent:"flex-start",width:"10rem",spacing:4,children:(0,n.jsx)(b.Z,{employee:r,size:"10rem",resolution:300,fontSize:"xl"})}),(0,n.jsx)(s.Kqy,{flexGrow:2,maxWidth:"35rem",spacing:6,children:(0,n.jsxs)(s.Kqy,{textAlign:{base:"center",sm:"unset"},children:[(0,n.jsxs)(s.Kqy,{spacing:1,children:[(0,n.jsx)(s.X6q,{fontSize:"1.7rem",as:"h1",children:r.name}),(0,n.jsx)(s.xvT,{fontSize:"1.1rem",fontWeight:"400",children:o(r.position)}),null===(t=r.affiliations)||void 0===t?void 0:t.map(e=>{var t,r;return(0,n.jsx)(s.xvT,{fontWeight:"400",fontSize:"1.1rem",children:o(null===(t=e.entity)||void 0===t?void 0:t.name)},null===(r=e.entity)||void 0===r?void 0:r._id)})]}),(0,n.jsx)(y.I,{employee:r})]})})]})})]})},S=e=>{let{employee:t,listsAndRecommendations:r,total:i}=e;return t&&t.showEmployee?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{employee:t}),(0,n.jsx)(a.I,{doc:t}),(0,n.jsx)(l.d,{margin:"2rem auto 5rem",children:(0,n.jsx)(s.Kqy,{gap:"4rem",children:(0,n.jsx)(g,{listsAndRecommendations:r,total:i,employee:t})})})]}):null};let w=e=>(0,n.jsx)(o.U,{sanityData:e.sanityData,children:e=>(0,n.jsx)(S,{...e})})},33052:function(e,t,r){"use strict";r.d(t,{DeveloperMetricsProvider:function(){return l},Q:function(){return s}});var n=r(35351),i=r(38859);let o=(0,i.createContext)({sanityDataEntries:[],addDataEntry:()=>null}),s=()=>(0,i.useContext)(o),l=e=>{let[t,r]=(0,i.useReducer)((e,t)=>[...e.filter(e=>{var r,n;return(null===(r=e._previewConfig)||void 0===r?void 0:r.query)!==(null===(n=t._previewConfig)||void 0===n?void 0:n.query)}),t],[]);return(0,n.jsx)(o.Provider,{value:{sanityDataEntries:t,addDataEntry:r},children:e.children})}},74391:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(67540),i=r(60159),o=r(33052);let s=e=>{var t,r;if(!(null==e?void 0:null===(t=e.sanityData)||void 0===t?void 0:t._raw_data)||!(null==e?void 0:null===(r=e.sanityData)||void 0===r?void 0:r._previewConfig))throw Error("Missing preview data and/or preview config. Did you forget to send it as props?");let[s]=(0,n.yR)(e.sanityData._raw_data,e.sanityData._previewConfig.query,e.sanityData._previewConfig.queryParams),{addDataEntry:l}=(0,o.Q)();return(0,i.Z)(()=>{l(e.sanityData)}),e.children(s)}},82080:function(e,t,r){"use strict";var n=r(35351),i=r(12321);t.Z=e=>{let{children:t}=e;return(0,n.jsx)(i.xuv,{fontSize:"0.8rem",fontWeight:"600",minHeight:"0.8rem",children:t})}},55362:function(e,t,r){"use strict";var n=r(35351),i=r(29543),o=r(5446);t.Z=e=>{let{title:t,url:r,...s}=e;return(0,n.jsx)(i.H,{...s,children:(0,n.jsx)(o.Z,{url:r,title:t,arrowLeft:!0,fontSize:".8rem",fontWeight:"normal"})})}},5446:function(e,t,r){"use strict";var n=r(35351),i=r(12321),o=r(13921),s=r(85123),l=r(39614);t.Z=e=>{let{url:t,title:r="Vis alle",arrowLeft:a,...d}=e;return(0,n.jsx)(i.zxk,{href:t,as:l.v,size:"md",variant:"link",rightIcon:a?void 0:(0,n.jsx)(o.Z,{}),leftIcon:a?(0,n.jsx)(s.Z,{}):void 0,color:"currentColor",...d,children:r})}},70273:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(35351),i=r(12321),o=r(3518);let s=e=>{let{itemsLength:t=0,name:r}=e,{t:s}=(0,o.$)();return(0,n.jsx)(i.xuv,{role:"status",children:(0,n.jsx)(i.TXu,{children:s("Viser {itemsLength} {name}",{itemsLength:t,name:r})})})}},53426:function(e,t,r){"use strict";r.d(t,{I:function(){return g},O:function(){return x}});var n=r(35351),i=r(12321),o=r(14007),s=r(38859),l=r(60230),a=r(17743),d=r(504),u=r(57154),c=r(66730);let m=e=>(0,n.jsx)(i.rUS,{color:"black",paddingX:".2rem",backgroundColor:i.O9T.statusYellowLight,display:"inline-flex",alignItems:"center",alignSelf:"flex-start",gap:"0.5rem",...e});function h(e){let t=(0,u.Z)().editMode,r=(0,d.My)();return!t||r.isOn?null:(0,n.jsx)(n.Fragment,{children:e.children})}let f={site:"Oppdater nettsted",library:"Oppdater bibliotek",event:"Oppdater arrangement",service:"Oppdater tjeneste",list:"Oppdater liste",staticPage:"Oppdater side",alert:"Oppdater varsel",privacyPolicy:"Oppdater personvern",footerMenuCollection:"Oppdater bunnmenyer",sommerles:"Oppdater",bibliobattles:"Oppdater",adventCalendar:"Oppdater julekalender",recommendation:"Oppdater anbefaling",employee:"Oppdater ansattprofil",...(0,o.jN)("Oppdater tjeneste"),digitalLibraryCustomService:"Oppdater tjeneste",customCampaign:"Oppdater kampanje"};function g(e){var t;let r=(0,o.gL)(e.doc),{doc:s,label:l,...d}=e;if(!r)return null;let u=null!==(t=null!=l?l:f[s._type])&&void 0!==t?t:"Endre";return(0,n.jsx)(h,{children:(0,n.jsxs)(m,{onClick:()=>(0,a.ES)(u),href:r,...d,children:[(0,n.jsx)(i.JO$,{as:c.W,flexShrink:0})," ",u]})})}let p={library:"Legg til nytt bibliotek",event:"Legg til nytt arrangement",service:"Legg til ny tjeneste/tilbud",list:"Legg til ny liste",staticPage:"Legg til en fast side",recommendation:"Legg til ny anbefaling",employee:"Legg til ny ansattprofil",...(0,o.jN)("Legg til ny tjeneste"),digitalLibraryCustomService:"Legg til ny tjeneste",customCampaign:"Legg til ny kampanje"},v=(e,t)=>(0,o.qU)(e)?"/cms/structure/digital-library":(0,o.jZ)(e,t);function x(e){var t;let{type:r,...i}=e,[o,d]=(0,s.useState)((0,l.Z)()),u=v(r,o);if(!u)return null;let f=null!==(t=p[r])&&void 0!==t?t:"Opprett ".concat(r);return(0,n.jsx)(h,{children:(0,n.jsxs)(m,{onClick:()=>{(0,a.ES)(f),d((0,l.Z)())},href:u,...i,children:[(0,n.jsx)(c.W,{})," ",f]})})}},57154:function(e,t,r){"use strict";r.d(t,{H:function(){return h},Z:function(){return m}});var n=r(35351),i=r(38859),o=r(60159);let s={editMode:!1},l="libry-content-local-config";class a{static getConfig(){try{let e=localStorage.getItem(l);return e?{...s,...JSON.parse(e)}:s}catch(e){return s}}static setConfig(e){localStorage.setItem(l,JSON.stringify({...a.getConfig(),...e}))}}var d=r(26299);let u={editMode:!1,toggle:()=>null},c=(0,i.createContext)(u),m=()=>(0,i.useContext)(c),h=e=>{let[t,r]=(0,i.useState)(u.editMode),s=(0,d.$)();return(0,o.Z)(()=>r(a.getConfig().editMode)),(0,n.jsx)(c.Provider,{value:{editMode:t&&s.isAuthenticated,toggle:()=>{let e=!t;a.setConfig({editMode:e}),r(e)}},children:e.children})}},66730:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(35351);let i=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"1em",height:"1em",viewBox:"0 0 24 24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,...e,children:(0,n.jsx)("path",{d:"M12 20h9M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})})},44782:function(e,t,r){"use strict";var n=r(35351),i=r(12321),o=r(70851),s=r(39419),l=r(3518),a=r(99559),d=r(35733),u=r(29714),c=r(15751),m=r(93717);let h=e=>(null==e?void 0:e._type)==="employee",f=e=>(null==e?void 0:e._type)==="site",g=e=>{let{createdBy:t}=e;if(f(t))return(0,n.jsx)(m.x,{image:t.coatOfArms,resolution:200,width:"1.9rem",boxShadow:"none",borderRadius:"none"});let r=h(t)&&!!(null==t?void 0:t.showEmployee);return(0,n.jsx)(c.Z,{employee:r?t:void 0,size:"2rem",resolution:200,fontSize:"sm",hideCaption:!0})};t.Z=e=>{var t,r,c;let{createdBy:m}=e,{t:p,ts:v}=(0,l.$)(),{site:x}=(0,u.useCommonData)(),j=h(m)&&!!(null==m?void 0:m.showEmployee),b=null!==(c=h(m)?null===(r=m.affiliations)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.entity:m)&&void 0!==c?c:x;return(0,n.jsx)(i.fGe,{children:(0,n.jsxs)(i.kCb,{gap:".5rem",role:"group",children:[(0,n.jsx)(g,{createdBy:m}),(0,n.jsxs)(i.Kqy,{spacing:0,fontSize:".7rem",lineHeight:".9rem",justifyContent:f(m)?"center":"",children:[j&&(0,n.jsx)(d.Z,{href:(0,s.DW)(m),_hover:(0,a.Z)({textDecoration:"underline"}),zIndex:10,children:(0,n.jsx)(i.xvT,{fontWeight:600,children:m.name})}),(!h(m)&&!f(m)||"employee"===m._type&&!j)&&(0,n.jsx)(i.xvT,{fontWeight:600,children:p("Ansatt")}),b&&(0,n.jsx)(i.xvT,{noOfLines:1,children:(0,o.R9)(null==b?void 0:b.name)?v(null==b?void 0:b.name):null==b?void 0:b.name})]})]})})}},94319:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(35351),i=r(38859),o=r(12321),s=r(53722),l=r(3518);let a=e=>{let{t}=(0,l.$)();return(0,n.jsxs)(o.Ugi,{fontWeight:"semibold",color:o.O9T.statusRed,background:o.O9T.statusRedLight,borderRadius:"0.25rem",padding:"0.5rem 1rem",gap:"0.5rem",children:[(0,n.jsx)(s.Z,{}),(0,n.jsxs)(o.xuv,{children:[(0,n.jsx)(o.xvT,{children:t("Ops, noe gikk galt")}),(0,n.jsx)(o.xvT,{fontSize:"2xs",opacity:.7,children:e.boundaryName})]})]})};class d extends i.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error(e,{errorInfo:t,boundaryName:this.props.boundaryName})}render(){return this.state.hasError?(0,n.jsx)(a,{boundaryName:this.props.boundaryName}):(0,n.jsx)(n.Fragment,{children:this.props.children})}constructor(e){super(e),this.state={hasError:!1}}}var u=d},17077:function(e,t,r){"use strict";r.d(t,{P:function(){return s}});var n=r(35351),i=r(38859),o=r(94319);let s=(e,t)=>{let r=(0,i.forwardRef)((r,i)=>(0,n.jsx)(o.Z,{boundaryName:t,children:(0,n.jsx)(e,{...r,ref:i})}));return r.displayName=e.displayName,r}},93717:function(e,t,r){"use strict";r.d(t,{x:function(){return l}});var n=r(35351),i=r(12321),o=r(3518),s=r(41207);function l(e){let{image:t,resolution:r,boxShadow:l="md",alt:a,customNextImageProps:d,hideCaption:u,...c}=e,{t:m}=(0,o.$)();return(null==t?void 0:t.asset)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.xuv,{lineHeight:0,borderRadius:"0.5em",boxShadow:l,position:"relative",overflow:"hidden",...c,children:(0,n.jsx)(s.y,{image:t,resolution:r,aspectRatio:"original",customNextImageProps:{alt:a,...d}})}),t.creator&&!u&&(0,n.jsx)(i.xuv,{fontStyle:"italic",marginTop:"0.1rem",fontSize:"sm",opacity:.8,position:"absolute",top:"100%",left:"50%;",transform:"translateX(-50%)",whiteSpace:"nowrap",children:m("Foto: {opphavsPerson}",{opphavsPerson:t.creator})})]}):null}},35255:function(e,t,r){"use strict";var n=r(35351),i=r(12321),o=r(14007),s=r(38859),l=r(39419),a=r(3518),d=r(35733),u=r(53426),c=r(44782),m=r(17077),h=r(76477),f=r(23071),g=r(93391);t.Z=(0,m.P)(e=>{let{list:t,headingSize:r="h3",...m}=e,{ts:p}=(0,a.$)(),v=(0,g.d)(t),x=(0,o.fR)(null==t?void 0:t.publications),j=(0,s.useId)();return(0,n.jsxs)(i.Kqy,{direction:"column","aria-labelledby":j,...m,children:[(0,n.jsx)(i.fGe,{children:(0,n.jsxs)(i.Kqy,{direction:"column",role:"group",children:[x&&(0,n.jsx)(h.D,{publications:x,...v.css,height:{base:"13rem",lg:"14rem"},maxWidth:"15rem",borderRadius:"0.5rem"}),(0,n.jsxs)(i.kCb,{direction:"column",gap:"0.2rem",children:[(0,n.jsx)(f.Z,{targetAudiences:t.targetAudiences}),(0,n.jsx)(i.X6q,{as:r,size:"md",id:j,children:(0,n.jsx)(d.Z,{href:(0,l.DW)(t),_groupHover:{textDecoration:"underline"},children:p(t.title)})}),(0,n.jsx)(i.xvT,{fontSize:"sm",children:p(t.teaser)})]})]})}),(0,n.jsx)(c.Z,{createdBy:t.createdBy}),(0,n.jsx)(u.I,{doc:t})]})},"BookListPreview")},7191:function(e,t,r){"use strict";r.d(t,{y:function(){return s}});var n=r(35351),i=r(99311),o=r(93717);let s=e=>{let{publication:t,publication:{image:r},alt:s="",...l}=e;return(0,n.jsx)(o.x,{image:r,alt:s||(0,i.X)(t)||"",hideCaption:!0,...l})}},62904:function(e,t,r){"use strict";var n=r(35351),i=r(71805),o=r(12321),s=r(14007),l=r(73642),a=r(7191);let d={transition:".9s",_groupHover:{transition:".5s",transform:"scale(1.05)"}};t.Z=e=>{let{publication:t,resolution:r,imageWidth:u,...c}=e,m=(0,l.SP)();return(0,n.jsx)(o.xuv,{...c,children:(0,s.pu)(t)?(0,n.jsx)(a.y,{borderRadius:".5rem",publication:t,resolution:null!=r?r:250,maxWidth:u,...d}):(0,n.jsx)(o.rjZ,{css:"aspect-ratio: .7;",borderRadius:".5rem",placeItems:"center",width:u,"aria-hidden":!0,...m.colors.darkaccent4.css,...d,children:(0,n.jsx)(i.vJ,{fontSize:"2em"})})})}},76477:function(e,t,r){"use strict";r.d(t,{D:function(){return u},u:function(){return c}});var n=r(35351),i=r(12321),o=r(99311),s=r(93717),l=r(94118),a=r(91920);let d=[{maxWidth:"40%",transition:".9s",_groupHover:{transition:".5s",transform:"scale(1.075)"},zIndex:3,order:2},{bottom:"1rem",right:"-15%",transition:"1.4s",_groupHover:{transition:"0.75s",transform:"scale(1.075) rotate(-5deg) translate(-.5em, -.3em)"},zIndex:2,order:1},{bottom:"1rem",left:"-15%",transition:"1.7s",_groupHover:{transition:"0.95s",transform:"scale(1.075) rotate(5deg) translate(.5em, -.3em)"},zIndex:1,order:3}];function u(e){let{publications:t,maxWidth:r,...l}=e;return(0,n.jsx)(i.rjZ,{placeContent:"center",isolation:"isolate",...l,children:(0,n.jsx)(i.kCb,{maxWidth:r,justifyContent:"center",alignItems:"flex-end",children:null==t?void 0:t.map((e,t)=>{var r,i;return(0,n.jsx)(s.x,{image:e.image,alt:(0,o.X)(e),maxWidth:"30%",resolution:250,hideCaption:!0,...d[t]},(null===(i=e.image)||void 0===i?void 0:null===(r=i.asset)||void 0===r?void 0:r._ref)||t)})})})}function c(e){let{works:t,...r}=e;return(0,n.jsx)(i.rjZ,{height:"11rem",placeItems:"center",isolation:"isolate",position:"relative",...r,children:null==t?void 0:t.slice(0,3).map((e,t)=>{let r=(0,l.tY)(e);return r?(0,n.jsx)(i.xuv,{width:"40%",borderRadius:"lg",lineHeight:0,position:"absolute",overflow:"hidden",...m[t],children:(0,n.jsx)(a.G,{work:e,representativeManifestation:r})},e.id):null})})}let m=[{bottom:"0",width:"55%",zIndex:1},{bottom:"0.5rem",right:"0%"},{bottom:"0.5rem",left:"0%"}]},23071:function(e,t,r){"use strict";var n=r(35351),i=r(12321),o=r(14007),s=r(64539),l=r(3518),a=r(82080);t.Z=e=>{let{targetAudiences:t}=e,{ts:r}=(0,l.$)();return(null==t?void 0:t.length)?(0,n.jsx)(a.Z,{children:(0,n.jsx)(i.Ugi,{gap:".5em",divider:(0,n.jsx)(n.Fragment,{children:"•"}),children:(0,s.DY)(t,o.FV).map((e,t)=>(0,n.jsx)("span",{children:r(o.dq[e])},t))})}):null}},93391:function(e,t,r){"use strict";r.d(t,{d:function(){return u}});var n=r(57152),i=r(64539),o=r(73642),s=r(29714);let l=e=>e.slice().map(e=>{let[t,r]=e;return{color:t,sort:(0,n.F9)(r)}}).sort((e,t)=>e.sort-t.sort).map(e=>{let{color:t}=e;return t}),a=e=>void 0!==e[0]&&void 0!==e[1],d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=l((0,i.$R)(t,e).filter(a)),n=r.length;return Object.fromEntries(e.map((e,t)=>[e,r[t%n]]))},u=e=>{var t,r;let i=(0,o.SP)(),l=[i.colors.lightaccent1,i.colors.lightaccent3,i.colors.darkaccent3,i.colors.lightaccent2,i.colors.lightaccent4,i.colors.pop2],a=null===(t=(0,s.useCommonData)().bookListStyling)||void 0===t?void 0:t.bookListIds;return e&&null!==(r=d(a,l)[e._id])&&void 0!==r?r:(0,n.AQ)(l)}},504:function(e,t,r){"use strict";r.d(t,{BU:function(){return u},My:function(){return d}});var n=r(35351),i=r(14007),o=r(20929),s=r(38859);let l=(0,s.lazy)(()=>r.e(5867).then(r.bind(r,55867))),a=(0,s.createContext)({isOn:!1}),d=()=>(0,s.useContext)(a),u=e=>(0,n.jsx)(s.Suspense,{fallback:e.children,children:(0,n.jsx)(c,{children:e.children})}),c=e=>{let t=(0,o.useSearchParams)(),r=!!(null==t?void 0:t.get("preview")),[d,u]=m("libryContentPreviewMode",!1),c=(0,i.bq)();(0,s.useEffect)(()=>{r&&u(!0)},[r,u]);let h=!c.loading&&!!c.isInside&&(r||d);(0,s.useEffect)(()=>{!0===h&&console.log("\uD83D\uDD0E preview on")},[h]);let f=(0,n.jsx)(a.Provider,{value:{isOn:h},children:e.children});return h?(0,n.jsx)(l,{children:f}):f},m=(e,t)=>{let[r,n]=(0,s.useState)(()=>{let r=window.sessionStorage.getItem(e);return r?JSON.parse(r):t});return(0,s.useEffect)(()=>{window.sessionStorage.setItem(e,JSON.stringify(r))},[r,e]),[r,n]}},62969:function(e,t,r){"use strict";var n=r(35351);r(38859),t.Z=e=>(0,n.jsx)("svg",{width:"60",height:"44",viewBox:"0 0 43 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M41.2871 0.275391V2.66797C37.9017 3.90495 35.2487 5.85807 33.3281 8.52734C31.4076 11.1641 30.4473 13.9147 30.4473 16.7793C30.4473 17.3978 30.5449 17.8535 30.7402 18.1465C30.8704 18.3418 31.0169 18.4395 31.1797 18.4395C31.3424 18.4395 31.5866 18.3255 31.9121 18.0977C32.9538 17.349 34.2721 16.9746 35.8672 16.9746C37.7227 16.9746 39.3665 17.7396 40.7988 19.2695C42.2311 20.7669 42.9473 22.5573 42.9473 24.6406C42.9473 26.8216 42.1172 28.7422 40.457 30.4023C38.8294 32.0625 36.8438 32.8926 34.5 32.8926C31.7656 32.8926 29.4056 31.7695 27.4199 29.5234C25.4342 27.2773 24.4414 24.2663 24.4414 20.4902C24.4414 16.0957 25.7923 12.1569 28.4941 8.67383C31.196 5.19076 35.4603 2.39128 41.2871 0.275391ZM17.8008 0.275391V2.66797C14.4154 3.90495 11.7624 5.85807 9.8418 8.52734C7.92122 11.1641 6.96094 13.9147 6.96094 16.7793C6.96094 17.3978 7.05859 17.8535 7.25391 18.1465C7.38411 18.3418 7.5306 18.4395 7.69336 18.4395C7.85612 18.4395 8.10026 18.3255 8.42578 18.0977C9.46745 17.349 10.7858 16.9746 12.3809 16.9746C14.2363 16.9746 15.8802 17.7396 17.3125 19.2695C18.7448 20.7669 19.4609 22.5573 19.4609 24.6406C19.4609 26.8216 18.6309 28.7422 16.9707 30.4023C15.3431 32.0625 13.3574 32.8926 11.0137 32.8926C8.2793 32.8926 5.91927 31.7695 3.93359 29.5234C1.94792 27.2773 0.955078 24.2663 0.955078 20.4902C0.955078 16.0957 2.30599 12.1569 5.00781 8.67383C7.70964 5.19076 11.974 2.39128 17.8008 0.275391Z",fill:"currentColor"})})},7113:function(e,t,r){"use strict";var n=r(35351),i=r(12321),o=r(38859),s=r(39419),l=r(72983),a=r(73642),d=r(35733),u=r(53426),c=r(44782),m=r(62904),h=r(23071),f=r(95413);t.Z=e=>{var t,r;let{recommendation:g,headingSize:p="h3"}=e,v=(0,l.M)(g.publication),x=(0,o.useId)(),j=(0,a.SP)();if(!g.publication)return null;let{publication:b,targetAudiences:y}=g,[C]=null!==(r=null===(t=g.publication.title)||void 0===t?void 0:t.split(":"))&&void 0!==r?r:[];return(0,n.jsxs)(i.Kqy,{isolation:"isolate","aria-labelledby":x,children:[(0,n.jsx)(i.fGe,{children:(0,n.jsxs)(i.rjZ,{gridTemplateColumns:{base:".9fr 1fr"},gridTemplateRows:{base:"4rem 9rem 1fr",lg:"5rem 9rem 1fr"},role:"group",children:[(0,n.jsx)(i.rjZ,{gridColumn:"1/2",gridRow:"1/3",justifyContent:"center",alignItems:"center",paddingLeft:"1rem",children:(0,n.jsx)(m.Z,{publication:b,imageWidth:"7rem",minWidth:"3rem"})}),(0,n.jsx)(f.l,{gridColumn:"2/3",gridRow:"2/3",alignSelf:"center",padding:".5rem .75rem .5rem .25rem",fontSize:"xs",noOfLines:4,recommendation:g,quoteMarkProps:{color:i.O9T.white,marginRight:"-.25em"},color:i.O9T.black}),(0,n.jsxs)(i.kCb,{gridColumn:"1/3",gridRow:"3/4",flexDir:"column",gap:"0.2rem",paddingTop:".5rem",children:[(0,n.jsx)(h.Z,{targetAudiences:y}),(0,n.jsx)(d.Z,{href:(0,s.DW)(g),_groupHover:{textDecoration:"underline"},children:(0,n.jsx)(i.X6q,{as:p,size:"md",noOfLines:2,lang:v,id:x,children:C})}),(0,n.jsx)(i.xvT,{fontSize:"sm",lang:v,children:g.publication.author})]}),(0,n.jsx)(i.xuv,{gridColumn:"1/3",gridRow:"2/3",background:j.colors.card.css.background,borderRadius:".5rem",zIndex:"-1"})]})}),(0,n.jsx)(c.Z,{createdBy:g.createdBy}),(0,n.jsx)(u.I,{doc:g})]})}},95413:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var n=r(35351),i=r(12321),o=r(3518),s=r(73642),l=r(62969);let a=e=>{let{recommendation:t,quoteMarkProps:r,noOfLines:a,...d}=e,{ts:u,populateLang:c}=(0,o.$)(),m=(0,s.SP)();return(0,n.jsxs)(i.kCb,{isolation:"isolate",alignItems:"baseline",...d,children:[(0,n.jsx)(i.JO$,{as:l.Z,fontSize:"3em",color:m.colors.card.css.background,"aria-hidden":!0,...r}),(0,n.jsx)(i.xvT,{...c(t.teaser),marginLeft:"-.6em",transform:"translateY(-.25em)",maxW:"20em",fontStyle:"italic",fontSize:"1.25em",noOfLines:a,children:u(t.teaser)})]})}},99311:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=r(14007);let i=e=>{var t,r;let i=o(e)?(0,n.aL)(null!==(r=e.author)&&void 0!==r?r:""):null===(t=e.authors)||void 0===t?void 0:t.map(n.aL).join(", ");return e.title&&i?'Omslag: "'.concat(e.title,'" av ').concat(i):e.title?'Omslag: "'.concat(e.title,'"'):i?"Omslag: ".concat(i):(console.error("Trying to generate cover image alt text without title or author"),"Omslag")},o=e=>!!e&&"object"==typeof e&&(null==e?void 0:e._type)==="publication"},22674:function(e,t,r){"use strict";r.d(t,{G:function(){return a},Y:function(){return d}});var n=r(35351),i=r(38859),o=r(92726),s=r(20929);let l=(0,i.createContext)({updateOptimisticState:()=>null,optimisticState:void 0}),a=()=>(0,i.useContext)(l),d=e=>{let{children:t}=e,[r,a]=(0,i.useState)(void 0),d=(0,s.usePathname)();return(0,i.useEffect)(()=>{a(void 0)},[d]),(0,n.jsx)(l.Provider,{value:{optimisticState:r,updateOptimisticState:e=>a(t=>(0,o.lL)({...t,...e}))},children:t})}},46897:function(e,t,r){"use strict";r.d(t,{n:function(){return a}});var n=r(20929),i=r(56385),o=r(92726);let s=()=>{let e=(0,n.useSearchParams)();return e?Object.fromEntries(e.entries()):{}};var l=r(22674);function a(e,t){let r=(0,n.useRouter)(),s=d(e),[l,a]=u(e),c=null!=l?l:s,m=e=>{let t=Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e,n=(0,i.Kn)(r),s=(0,i.Kn)(null==c?void 0:c[t])?c[t]:void 0,l=n?(0,o.lL)({...s,...r},e=>!e||(0,i.xb)(e)):r;return[t,(0,i.xb)(l)?void 0:l]}));return{...c,...t}},h=(0,n.usePathname)(),f=(0,n.useSearchParams)(),g=e=>{var r;let n=new URLSearchParams(null!=f?f:{});return Object.entries(m(e)).forEach(e=>{let[t,r]=e;return(0,i.xb)(r)?n.delete(t):n.set(t,JSON.stringify(r))}),(null!==(r=null==t?void 0:t.basePath)&&void 0!==r?r:h)+(n.size>0?"?"+n.toString():"")};return[c,e=>(a(m(e)),r.replace(g(e),{scroll:!1})),g]}let d=e=>c(e,m(s())),u=e=>{let{optimisticState:t,updateOptimisticState:r}=(0,l.G)();return[t&&c(e,t),r]},c=(e,t)=>{let r=e.safeParse(t);return r.success?r.data:void 0},m=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,h(r)]})),h=e=>{try{return JSON.parse(e)}catch(e){return}}},3518:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(70851),i=r(38286),o=r(38859);let s=()=>{let e=(0,i.useTranslations)(),t=(0,i.useLocale)(),r=(0,n.lD)(t),s=(0,o.useCallback)(e=>(0,n.tc)(e,r),[r]),l=(0,o.useCallback)(e=>(0,n.FI)(e,r),[r]),a=(0,o.useCallback)(e=>{if(!e)return{};let t=l(e);return t===r?{}:{lang:t}},[r,l]);return{t:(0,o.useCallback)(function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e(t.replace(/\./g,""),...n)},[e]),lang:r,ts:s,getContentLang:l,populateLang:a}}},6875:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=r(95440),i=r(46897);function o(e,t){var r;let o="string"==typeof e?n.z.string():n.z.number(),[s,l,a]=(0,i.n)(n.z.object({[t]:o}));return[null!==(r=null==s?void 0:s[t])&&void 0!==r?r:e,e=>l({[t]:e}),e=>a({[t]:e})]}},99559:function(e,t){"use strict";t.Z=e=>({base:{},md:e})}},function(e){e.O(0,[2321,8286,7152,4165,4722,8003,6417,5440,2874,4709,6922,9498,1732,4118,2656,195,6411,4248,1744],function(){return e(e.s=56663)}),_N_E=e.O()}]);
//# sourceMappingURL=page-a4f5b081d69674ea.js.map