1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91],{7484:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="week",a="month",u="quarter",s="year",o="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h="en",m={};m[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||"th")+"]"}};var g="$isDayjsObject",v=function(t){return t instanceof M||!(!t||!t[g])},p=function t(e,n,r){var i;if(!e)return h;if("string"==typeof e){var a=e.toLowerCase();m[a]&&(i=a),n&&(m[a]=n,i=a);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var s=e.name;m[s]=e,i=s}return!r&&i&&(h=i),i||!r&&h},_=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new M(n)},$={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(n/60),2,"0")+":"+f(n%60,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,a),u=n-i<0,s=e.clone().add(r+(u?-1:1),a);return+(-(r+(n-i)/(u?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return({M:a,y:s,w:i,d:"day",D:o,h:r,m:n,s:e,ms:t,Q:u})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};$.l=p,$.i=v,$.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function f(t){this.$L=p(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var h=f.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return $},h.isValid=function(){return this.$d.toString()!==l},h.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return _(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<_(t)},h.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,u){var l=this,c=!!$.u(u)||u,d=$.p(t),f=function(t,e){var n=$.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return c?n:n.endOf("day")},h=function(t,e){return $.w(l.toDate()[t].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},m=this.$W,g=this.$M,v=this.$D,p="set"+(this.$u?"UTC":"");switch(d){case s:return c?f(1,0):f(31,11);case a:return c?f(1,g):f(0,g+1);case i:var _=this.$locale().weekStart||0,M=(m<_?m+7:m)-_;return f(c?v-M:v+(6-M),g);case"day":case o:return h(p+"Hours",0);case r:return h(p+"Minutes",1);case n:return h(p+"Seconds",2);case e:return h(p+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(i,u){var l,c=$.p(i),d="set"+(this.$u?"UTC":""),f=((l={}).day=d+"Date",l[o]=d+"Date",l[a]=d+"Month",l[s]=d+"FullYear",l[r]=d+"Hours",l[n]=d+"Minutes",l[e]=d+"Seconds",l[t]=d+"Milliseconds",l)[c],h="day"===c?this.$D+(u-this.$W):u;if(c===a||c===s){var m=this.clone().set(o,1);m.$d[f](h),m.init(),this.$d=m.set(o,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[$.p(t)]()},h.add=function(t,u){var o,l=this;t=Number(t);var c=$.p(u),d=function(e){var n=_(l);return $.w(n.date(n.date()+Math.round(e*t)),l)};if(c===a)return this.set(a,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return d(1);if(c===i)return d(7);var f=((o={})[n]=6e4,o[r]=36e5,o[e]=1e3,o)[c]||1,h=this.$d.getTime()+t*f;return $.w(h,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=$.z(this),a=this.$H,u=this.$m,s=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},m=function(t){return $.s(a%12||12,t,"0")},g=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return $.s(e.$y,4,"0");case"M":return s+1;case"MM":return $.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return e.$D;case"DD":return $.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(a);case"HH":return $.s(a,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return g(a,u,!0);case"A":return g(a,u,!1);case"m":return String(u);case"mm":return $.s(u,2,"0");case"s":return String(e.$s);case"ss":return $.s(e.$s,2,"0");case"SSS":return $.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(t,o,l){var c,d=this,f=$.p(o),h=_(t),m=(h.utcOffset()-this.utcOffset())*6e4,g=this-h,v=function(){return $.m(d,h)};switch(f){case s:c=v()/12;break;case a:c=v();break;case u:c=v()/3;break;case i:c=(g-m)/6048e5;break;case"day":c=(g-m)/864e5;break;case r:c=g/36e5;break;case n:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return l?c:$.a(c)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return m[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=p(t,e,!0);return r&&(n.$L=r),n},h.clone=function(){return $.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),y=M.prototype;return _.prototype=y,[["$ms",t],["$s",e],["$m",n],["$H",r],["$W","day"],["$M",a],["$y",s],["$D",o]].forEac
1h(function(t){y[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,M,_),t.$i=!0),_},_.locale=p,_.isDayjs=v,_.unix=function(t){return _(1e3*t)},_.en=m[h],_.Ls=m,_.p={},_},t.exports=e()},8980:function(t,e,n){var r;r=function(t){"use strict";var e={s:["nokkrar sek\xfandur","nokkrar sek\xfandur","nokkrum sek\xfandum"],m:["m\xedn\xfata","m\xedn\xfatu","m\xedn\xfatu"],mm:["m\xedn\xfatur","m\xedn\xfatur","m\xedn\xfatum"],h:["klukkustund","klukkustund","klukkustund"],hh:["klukkustundir","klukkustundir","klukkustundum"],d:["dagur","dag","degi"],dd:["dagar","daga","d\xf6gum"],M:["m\xe1nu\xf0ur","m\xe1nu\xf0","m\xe1nu\xf0i"],MM:["m\xe1nu\xf0ir","m\xe1nu\xf0i","m\xe1nu\xf0um"],y:["\xe1r","\xe1r","\xe1ri"],yy:["\xe1r","\xe1r","\xe1rum"]};function n(t,n,r,i){var a;return(a=e[2===r.length&&t%10==1?r[0]:r][n?0:i?1:2],1===r.length?a:"%d "+a).replace("%d",t)}var r={name:"is",weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),weekStart:1,weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),ordinal:function(t){return t},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return(t&&"object"==typeof t&&"default"in t?t:{default:t}).default.locale(r,null,!0),r},t.exports=r(n(7484))},5615:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles",function(){return n(9108)}])},3015:function(t,e,n){"use strict";n.d(e,{D:function(){return s}});var r=n(5893),i=n(2123),a=n(9045),u=n.n(a);let s=t=>{let{children:e,link:n}=t;return e?n?(0,r.jsx)(i.r,{className:u().pill,to:n,children:e}):(0,r.jsx)("div",{className:u().pill,children:e}):null}},5942:function(t,e,n){"use strict";var r=n(7294),i=n(8357);e.Z=t=>{let{loading:e,hasNextPage:n,onLoadMore:a,rootMargin:u,delayInMs:s=100}=t,{inView:o,ref:l}=(0,i.YD)({rootMargin:u}),c=!e&&o&&n;return(0,r.useEffect)(()=>{if(c){let t=setTimeout(()=>{a()},s);return()=>{clearTimeout(t)}}},[a,c,s]),[l]}},9108:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return Y},default:function(){return j}});var r=n(5893),i=n(2665),a=n(7294),u=n(6896),s=n(66),o=n.n(s),l=n(1163),c=n(1548),d=n(3940),f=n(4907),h=n(3384),m=n(3347),g=n(5390),v=n(3709),p=n(3517),_=n(3015),$=n(7289),M=n(2721),y=n(2533),k=n(5942),S=n(1882),D=n(1074),w=n(2841),x=t=>{var e,n,i,s,x;let{data:Y,articles:j,services:b}=t,O=(0,l.useRouter)(),L=O.locale,T=(null!==(n=j.edges)&&void 0!==n?n:[]).map(t=>
1null==t?void 0:t.node).filter(Boolean),C=null!==(i=j.pageInfo.endCursor)&&void 0!==i?i:void 0,H=null!==(s=j.pageInfo.hasNextPage)&&void 0!==s&&s,N="is"===O.locale?"/greinar":O.pathname,P=(0,u.Z)(),[W,Z]=(0,a.useState)(-1),[I,A]=(0,a.useState)(""),E=(0,y.Z)(I,500),[F,U]=(0,a.useState)(null!==(x=O.query.tag)&&void 0!==x?x:""),[q,B]=(0,a.useState)(T),[J,z]=(0,a.useState)(C),[V,R]=(0,a.useState)(H),[X,G]=(0,a.useState)(!1),Q=async(t,e)=>{try{let n=await fetch(t,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)});if(!n.ok)return null;let r=await n.json();if(!r)return null;return r}catch(t){return console.error("Unable to fetch articles",t),null}},K=async(t,e)=>{var n,r,i,a;if(Z(-1),I)return;if(e||t)z(void 0),R(!1),B([]);else if(!V)return;G(!0);let u=t||("string"==typeof O.query.tag?O.query.tag:void 0),s=await Q("/api/articles?".concat((0,w.l)({lang:null!==(n=O.locale)&&void 0!==n?n:D.ZW,after:e||t?null:J,first:20})),{tags:e?void 0:u}),o=(null!==(r=null==s?void 0:s.edges)&&void 0!==r?r:[]).map(t=>
1null==t?void 0:t.node).filter(Boolean);B(t=>t.concat(o)),z(null!==(i=null==s?void 0:s.pageInfo.endCursor)&&void 0!==i?i:void 0),R(null!==(a=null==s?void 0:s.pageInfo.hasNextPage)&&void 0!==a&&a),G(!1)},tt=async t=>{if(t||V){var e;let n=t?0:W+1;Z(n);let r="/api/search?query=".concat(E,"&type=article&page=").concat(n,"&lang=").concat(null!==(e=O.locale)&&void 0!==e?e:D.ZW,"&tag=").concat(F),i=await fetch(r),a=await i.json();if(!a){B([]),R(!1);return}let u=a.hits.filter(Boolean);t?B(u):B(t=>t.concat(u)),R(a.page<a.nbPages)}};(0,a.useEffect)(()=>{E?tt(!0):F?K(F):(B(T),z(C),R(H))},[E,F,L]);let[te]=(0,k.Z)({loading:X,hasNextPage:V,onLoadMore:E?tt:K,rootMargin:"0px 0px 400px 0px"}),tn=t=>{A(t.target.value)},tr=null==b?void 0:null===(e=b.edges)||void 0===e?void 0:e.map(t=>{let e=null==t?void 0:t.node;return(0,$.S)(null==e?void 0:e.title)?{title:(0,$.S)(null==e?void 0:e.title),value:(0,$.S)(null==e?void 0:e.title)}:null}).filter(Boolean);return(null==tr?void 0:tr.length)&&(tr=o()(tr,{getProp:t=>t.title})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.C,{kicker:(0,$.S)(null==Y?void 0:Y.kicker),title:(0,$.S)(null==Y?void 0:Y.title),children:(0,r.jsxs)(g.D,{children:[(0,r.jsx)(h.o,{inputType:"search",placeholder:P.formatMessage({id:"search_enter_terms"}),value:I,onChange:t=>tn(t)}),(0,r.jsx)(f.P,{label:P.formatMessage({id:"select_service"}),defaultValue:F,onChange:t=>{U(t.target.value.trim()),t.target.value?O.push({pathname:N,query:{tag:t.target.value.trim()}},"",{shallow:!0}):O.push(N,"",{shallow:!0})},children:tr?tr.map((t,e)=>(0,r.jsx)("option",{value:t.value,children:t.title||t.value},e)):[]})]})}),(0,r.jsxs)(M.$,{children:[(0,r.jsx)(m.r,{loadingCount:j.totalCount,loading:!q.length,columns:{mobile:2,desktop:3,wide:4},children:q.map((t,e)=>{let n="_meta"in t?t._meta.tags:"tags"in t&&t.tags?t.tags:[];return(0,r.jsx)(d.Z,{variant:"compact",title:(0,$.S)(t.title),tags:n.length?[(0,r.jsx)(_.D,{children:n[0]},"tag")]:void 0,image:t.image?(0,r.jsx)(p.R,{image:t.image,sizes:{ratio:1,wide:600},width:600}):void 0,link:(0,c.kG)(t),date:t.date?(0,S.x)(t.date,L):void 0,children:(0,r.jsx)($.H,{children:"info"in t?t.info:"description"in t?t.description:void 0})},e)})}),(X||V)&&(0,r.jsx)("div",{style:{display:"flex"},ref:te})]})]})},Y=!0,j=t=>{let e=t.page,n=t.articles,a=t.services;return e&&n&&a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.e,{layout:t.layout,data:e}),(0,r.jsx)(x,{data:e,articles:n,services:a})]}):null}},1882:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var r=n(7484),i=n.n(r),a=n(8980),u=n.n(a);let s=(t,e)=>"en"===e?i()(t).format("D MMMM YYYY"):i()(t).locale(u()).format("D. MMMM YYYY")},9045:function(t){t.exports={pill:"Pill_pill__WUBuM"}}},function(t){t.O(0,[755,952,888,774,179],function(){return t(t.s=5615)}),_N_E=t.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.