PageSourceSearch

https://www.nesskip.is/_next/static/chunks/3105.5136bed859680eeb.js

js nesskip.is collected 2026-10-02 22:51:16 UTC 2,520 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3105],{63105:(e,l,a)=>{a.r(l),a.d(l,{LanguageSelector:()=>m});var s=a(6029),n=a(32988),i=a.n(n),t=a(5438),r=a(3947),o=a(70329),u=a(81278),d=a(55729),c=a(45874),v=a(72630);let m=e=>{let{block:l,extraProps:a,postInfo:n}=e,{attrs:m}=l,{className:h,backgroundColor:x,backgroundColorHover:b,maxWidth:p,minHeight:g,minWidth:f,textColor:j,textColorHover:k,horizontalAlignment:N,orientation:C,verticalAlignment:_,languages:w}=m,y=w||[],S=(0,u.useRouter)(),E=(null==S?void 0:S.locale)||"is",[L,M]=(0,d.useState)(E),[U,V]=(0,d.useState)(!1),[W,D]=(0,d.useState)(!1),F=(null==y?void 0:y.length)>0?y.map(e=>({label:e.name,value:e.lang})):[{label:"\xcdslenska",value:"is"},{label:"English",value:"en"}],G=(0,v.VY)(m),H=(0,v.UJ)(m),J=(0,v.Um)(m),O=(0,v.le)(m),P=(0,v.e3)(m),R=(0,v.iD)(m),Y=(0,c.w)({horizontalAlignment:N,orientation:C,verticalAlignment:_,hasGap:Object.keys(P).length>0}),q=F.find(e=>e.value===L)||F.find(e=>e.value===E),z=()=>{(0,o.sb)()||V(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.a,{open:U,onClose:z,headerClassName:"hidden",containerClassName:"min-w-[300px]",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-8",children:[(0,s.jsx)("div",{className:"text-textmain text-normal font-semibold",children:"is"==E?"Veldu tungum\xe1l":"Select a language"}),(0,s.jsx)("div",{children:(0,s.jsx)(t.u,{className:"h-10 w-10 text-textmain cursor-pointer",onClick:z})})]}),(0,s.jsx)("div",{className:"flex flex-col gap-3",children:F.map(e=>(0,s.jsx)("div",{className:i()("flex px-4 py-2 cursor-pointer border transition-all",{"bg-primary !text-white border-primary":(null==q?void 0:q.value)===e.value,"!text-textmain hover:border-primary":(null==q?void 0:q.value)!==e.value}),onClick:()=>{(e=>{if(M(e),!(0,o.sb)()){var l,a,s;if((null==n?void 0:n.translations_urls)&&(null==n||null==(l=n.translations_urls)?void 0:l[e])){let l=(null==n||null==(a=n.translations_urls)?void 0:a[e])==="/forsida"?"/":null==n||null==(s=n.translations_urls)?void 0:s[e];S.replace(l,void 0,{locale:e})}else S.replace(S.asPath,void 0,{locale:e})}})(e.value),z()},children:(0,s.jsx)("div",{children:e.label})},e.value))})]}),(0,s.jsx)("button",{className:i()(Y,h),style:{...G,...H,...J,...O,...R,...P,backgroundColor:W?b:x,color:W?k:j,maxWidth:p||void 0,minWidth:f||void 0,minHeight:g||void 0},onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),onClick:()=>{(0,o.sb)()||V(!0)},children:(0,s.jsx)("div",{children:null==q?void 0:q.label})})]})}}}]);

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.