1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4653],{96245:function(t,r,s){"use strict";function e(t){this.message=t}e.prototype=Error(),e.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var r=String(t).replace(/=+$/,"");if(r.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var s,i,a=0,l=0,o="";i=r.charAt(l++);~i&&(s=a%4?64*s+i:i,a++%4)&&(o+=String.fromCharCode(255&s>>(-2*a&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};function n(t){this.message=t}n.prototype=Error(),n.prototype.name="InvalidTokenError",r.Z=function(t,r){if("string"!=typeof t)throw new n("Invalid token specified");var s=!0===(r=r||{}).header?0:1;try{return JSON.parse(function(t){var r,s=t.replace(/-/g,"+").replace(/_/g,"/");switch(s.length%4){case 0:break;case 2:s+="==";break;case 3:s+="=";break;default:throw"Illegal base64url string!"}try{return r=s,decodeURIComponent(i(r).replace(/(.)/g,function(t,r){var s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}catch(t){return i(s)}}(t.split(".")[s]))}catch(t){throw new n("Invalid token specified: "+t.message)}}},34865:function(t,r,s){var i=s(89465),a=s(77813),l=Object.prototype.hasOwnProperty;t.exports=function(t,r,s){var o=t[r];l.call(t,r)&&a(o,s)&&(void 0!==s||r in t)||i(t,r,s)}},89465:function(t,r,s){var i=s(38777);t.exports=function(t,r,s){"__proto__"==r&&i?i(t,r,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[r]=s}},10611:function(t,r,s){var i=s(34865),a=s(71811),l=s(65776),o=s(13218),c=s(40327);t.exports=function(t,r,s,d){if(!o(t))return t;r=a(r,t);for(var u=-1,h=r.length,m=h-1,f=t;null!=f&&++u<h;){var p=c(r[u]),x=s;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(u!=m){var j=f[p];void 0===(x=d?d(j,p,f):void 0)&&(x=o(j)?j:l(r[u+1])?[]:{})}i(f,p,x),f=f[p]}return t}},38777:function(t,r,s){var i=s(10852),a=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},92622:function(t,r,s){var i=s(10611);t.exports=function(t,r,s){return null==t?t:i(t,r,s)}},46649:function(t,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/distributoerer",function(){return s(79643)}])},58882:function(t,r,s){"use strict";var i=s(97582),a=s(94534),l=s(9785);let DistributorGroupService=class DistributorGroupService{async getDistributorGroups(){try{let t=await (0,a.C)("/api/distributor-groups/?populate=*&locale=nb-NO");return t.data}catch(t){console.log(t)}}};(0,i.gn)([l.UT],DistributorGroupService.prototype,"getDistributorGroups",null),r.Z=new DistributorGroupService},86970:function(t,r,s){"use strict";s.d(r,{Z:function(){return article_BioCard}});var i=s(85893),a=s(67175),l=s(41664),o=s.n(l),c=s(27361),d=s.n(c),u=s(17982),BioCard_BioCardItem=t=>{let{title:r,image:s,slug:l,shortDescription:c,prefix:h}=t,m="/".concat(h,"/").concat(l);return(0,i.jsxs)("div",{className:"col-md-4 pt-4 pb-md-4 px-4",children:[["nyhetsarkiv","produsenter"].includes(h)?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(o(),{className:"d-flex flex-column position-relative text-decoration-none",href:m,children:[(0,i.jsx)(a.Z,{className:"img-fluid w-100 h-100",srcImage:d()(s,"sizes.full"),width:274,height:224,altImage:"Illustrasjonsbilde - "+"".concat((null==s?void 0:s.alt)||r)}),(0,i.jsx)("h2",{className:"h4 fw-normal-serif text-decoration-hover",children:r})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(o(),{className:"d-flex flex-column position-relative h-50 text-decoration-none",href:m,children:[(0,i.jsx)(a.Z,{className:"img-fluid w-100 h-100 mb-0",srcImage:d()(s,"sizes.full"),width:274,height:224,altImage:"Illustrasjonsbilde - "+"".concat((null==s?void 0:s.alt)||r)}),(0,i.jsx)("h3",{className:"h4 fw-normal-serif mt-4 text-decoration-hover",children:r})]})}),c&&(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,u.Kt)(c)||""}})]})},h=s(63040),m=s(92622),f=s.n(m),article_BioCard=t=>{let{cards:r,prefix:s}=t;return(0,i.jsx)(i.Fragment,{children:r.map((t,r)=>{let{id:a,attributes:l}=t,o=l?(0,h.Z)(l.image):null;return o&&l.imageSrc&&f()(o,"sizes.full",l.imageSrc),(0,i.jsx)(BioCard_BioCardItem,{id:a,title:null==l?void 0:l.name,slug:null==l?void 0:l.slug,shortDe
1scription:null==l?void 0:l.description,image:o,prefix:s||"nyhetsarkiv"},r)})})}},1263:function(t,r,s){"use strict";var i=s(85893),a=s(43599),l=s(52638),o=s(25675),c=s.n(o),d=s(41664),u=s.n(d),h=s(9473);r.Z=()=>{let t=(0,h.v9)(a.aB),r=(0,h.v9)(l.tH);return(0,i.jsx)("footer",{className:"r-footer",children:(0,i.jsxs)("div",{className:"container py-5 mb-5 mb-lg-0",children:[(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-md-4",children:(0,i.jsxs)("ul",{className:"no-bullet",children:[(0,i.jsx)("li",{children:(0,i.jsx)(u(),{href:"".concat("https://www.lokalmat.no","/"),children:"Hjem"})}),(0,i.jsx)("li",{children:(0,i.jsx)(u(),{href:"/soek",children:"Utforsk"})})]})}),(0,i.jsx)("div",{className:"col-md-4",children:(0,i.jsxs)("ul",{className:"no-bullet",children:[(0,i.jsx)("li",{children:(0,i.jsx)(u(),{href:"/velkommen/om-lokalmat",children:"Om Lokalmat"})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"https://stiftelsennorskmat.no/",target:"_blank",rel:"noreferrer",children:"Om Stiftelsen Norsk Mat"})}),(0,i.jsx)("li",{children:(0,i.jsx)(u(),{href:"/velkommen/lokalmat-vilkar",children:"Vilk\xe5r"})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:"https://stiftelsennorskmat.no/no/omstiftelsennorskmat/informasjonskapsler",target:"_blank",rel:"noreferrer",children:"Informasjonskapsler"})})]})}),(0,i.jsx)("div",{className:"col-md-1 mb-4",children:(0,i.jsx)(u(),{href:"https://www.facebook.com/Lokalmat.no",target:"_blank",children:(0,i.jsx)("span",{className:"material-icons lg",children:"facebook"})})}),(0,i.jsx)("div",{className:"col-md-3 mb-3",children:!(null==r?void 0:r.user)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u(),{href:"/login",className:"btn btn-primary mb-3",children:"Logg inn"}),(0,i.jsx)("br",{}),(0,i.jsx)(u(),{href:"/registrer",className:"btn btn-primary",children:"Registrer deg"})]})})]}),(0,i.jsxs)("div",{className:"row mt-4 align-items-end",children:[(0,i.jsxs)("div",{className:"col-md-4",children:[(0,i.jsx)("a",{target:"_blank",href:"https://stiftelsennorskmat.no",className:"d-inline-block mb-4",rel:"noreferrer",children:(0,i.jsx)(c(),{src:"/assets/images/stiftelsen_norsk_mat_logo.png",alt:"Stiftelsen Norsk Mat",width:140,height:55})}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:(null==t?void 0:t.adress)||"Pb 487 Sentrum<br />0105 Oslo"}})]}),(0,i.jsx)("div",{className:"col-md-4",children:(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:"Tlf: ".concat((null==t?void 0:t.phone_number)?t.phone_number:"24 14 83 00")}}),(0,i.jsx)("br",{}),(0,i.jsx)(u(),{href:"/kontakt-oss",children:"Kontakt oss"})]})})]})]})})}},41515:function(t,r,s){"use strict";var i=s(85893);s(67294),r.Z=t=>{let{title:r,description:s}=t;return(0,i.jsx)("div",{className:"row pb-4",children:(0,i.jsxs)("div",{className:"col-md-12",children:[(0,i.jsx)("h2",{className:"fw-normal-serif fs-1 fw-normal text-center my-2",children:r}),(0,i.jsx)("p",{className:"fs-5 text-center mt-4",children:s})]})})}},66898:function(t,r,s){"use strict";var i=s(85893);s(67294),r.Z=t=>{let{title:r,description:s}=t;return(0,i.jsx)("section",{className:"bg-header text-white py-5",children:(0,i.jsx)("div",{className:"container py-1 py-md-5",children:(0,i.jsx)("div",{className:"row justify-content-center",children:(0,i.jsxs)("div",{className:"col-md-10",children:[(0,i.jsx)("h1",{className:"display-3 mb-4 text-center","aria-label":"Page title",children:r}),(0,i.jsx)("h2",{className:"mb-5 fw-normal text-center",style:{fontSize:"22px"},children:s})]})})})})}},67175:function(t,r,s){"use strict";var i=s(85893),a=s(25675),l=s.n(a),o=s(91402),c=s(17982);r.Z=t=>{let{className:r,srcImage:s,altImage:a,style:d,width:u,height:h,...m}=t,f=a&&a.length>100?(0,c.Kt)(a,95):a;return(0,i.jsx)(l(),{className:r,style:d,src:s||"/assets/images/distributor/distributor-empty.jpg",alt:null!=f?f:"image",width:u||40,height:h||40,loader:o.Z,...m})}},96101:function(t,r,s){"use strict";var i=s(85893),a=s(47355),l=s(1570),o=s(43599),c=s(52638),d=s(91402),u=s(28700),h=s(25675),m=s.n(h),f=s(41664),p=s.n(f),x=s(67294),j=s(6763),v=s(9473);r.Z=()=>{let t=(0,v.v9)(o.aB),r=(0,v.I0)(),[s,h]=(0,x.useState)(null);return(0,x.useEffect)(()=>{let t=(0,u.HV)("user_info");t&&h(JSON.parse(t))},[]),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4,padding:"16px 20px"},children:[(0,i.jsx)(p(),{href:"/",className:"logo-inner",style:{maxWidth:"140px",zIndex:10},children:(0,i.jsx)(m(),{className:"img-fluid",style:{marginBottom:0},src:t.logo,alt:"Lokalmat.no",width:223,height:77,loader:d.Z})}),(0,i.jsxs)(j.Z,{align:"end",children:[(0,i.jsx)(j.Z.Toggle,{className:"profile-btn",style:{minWidth:"auto"},children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,i.jsx)(a.Z,{}),s&&(0,i.jsx)("div",{style:{color:"var(--schemes-on-surface)",fontWeight:600,fontSize:"14px"},children:"".concat(s.firstName," ").concat(s.lastName)})]})}),(0,i.jsx)(j.Z.Menu,{children:(0,i.jsxs)(j.Z.Item,{onClick:()=>{(0,u.KR)("refresh_token"),(0,u.KR)("access_token"),(0,u.KR)("sso_access_token"),(0,u.KR)("user_info"),(0,u.KR)("user_email"),(0,u.KR)("jwtTokenExpires"),(0,u.KR)(l.sp),r((0,c.tZ)());let t="".concat("https://auth.ksl.no","/auth/logout?redirect=").concat("https://www.lokalmat.no");window.location.href=t},children:[(0,i.jsx)("span",{className:"material-icons-outlined",children:"logout"}),"Logg ut"]}
1)})]})]})}},1327:function(t,r,s){"use strict";s.d(r,{h:function(){return Meta}});var i=s(85893),a=s(9008),l=s.n(a),o=s(11163),c=s(2962),d=s(9473),u=s(43599);let Meta=t=>{let r=(0,o.useRouter)(),s=(0,d.v9)(u.aB);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l(),{children:[(0,i.jsx)("meta",{charSet:"UTF-8"},"charset"),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"},"viewport"),(0,i.jsx)("link",{rel:"apple-touch-icon",href:"".concat(r.basePath,"/lokalmat-logo-apple.jpg")},"apple"),(0,i.jsx)("link",{rel:"icon",href:"".concat(r.basePath,"/favicon.ico")},"favicon")]}),(0,i.jsx)(c.PB,{title:t.title?t.title:s.site_title,description:(null==t?void 0:t.description)||"",canonical:t.canonical,openGraph:{title:t.title,description:t.description,url:t.canonical,images:t.images,locale:"no",site_name:"Lokalmat"}})]})}},79643:function(t,r,s){"use strict";s.r(r),s.d(r,{__N_SSP:function(){return x}});var i=s(85893),a=s(67294),l=s(33805),o=s(1327),c=s(66898),d=s(86970),u=s(41515),h=s(17982),m=s(58882),f=s(41664),p=s.n(f),x=!0;r.default=t=>{var r,s;let{pageData:f}=t,[x,j]=(0,a.useState)([]),getCmsData=async()=>{j(await m.Z.getDistributorGroups()||[])};return(0,a.useEffect)(()=>{getCmsData()},[]),(0,i.jsxs)(l.o,{meta:(0,i.jsx)(o.h,{title:"".concat((null==f?void 0:null===(r=f.seo)||void 0===r?void 0:r.metaTitle)?f.seo.metaTitle:"Lokalmat - Innkj\xf8per"),description:"".concat((null==f?void 0:null===(s=f.seo)||void 0===s?void 0:s.metaDescription)?f.seo.metaDescription:"Her finner du oversikt over hvem som distribuerer lokal mat og drikke. Klikk p\xe5 distribut\xf8rene for kontaktinformasjon og for \xe5 se hvilke produkter de f\xf8rer. Lokalmat - Bransjeportalen for lokalmat for hele Norge - Stiftelsen Norsk Mat"),canonical:"".concat("https://www.lokalmat.no","/distributoerer")}),children:[(0,i.jsx)(c.Z,{title:(0,h.dW)(f,"title"),description:(0,h.dW)(f,"sub-header")}),(0,i.jsxs)("div",{className:"container py-4",children:[(0,i.jsxs)("div",{className:"row my-5",children:[(0,i.jsx)("h2",{className:"fw-normal-sans fs-1 fw-normal text-center my-2",children:(0,h.dW)(f,"information-header")}),(0,i.jsx)("p",{className:"fs-5 text-center mt-4",children:(0,h.dW)(f,"information-description")}),(0,i.jsx)("p",{style:{textAlign:"center"},children:(0,i.jsx)(p(),{href:"/".concat((0,h.dW)(f,"information-link")),children:(0,h.dW)(f,"information-link-text")})})]}),(0,i.jsxs)("div",{className:"row py-5",children:[(0,i.jsx)(u.Z,{title:(0,h.dW)(f,"introduce-section-title"),description:(0,h.dW)(f,"introduce-section-description")}),(0,i.jsx)(d.Z,{cards:x,prefix:"grossister"})]})]})]})}},33805:function(t,r,s){"use strict";s.d(r,{o:function(){return Main}});var i=s(85893),a=s(71964),l=s(1263),o=s(96101);let Main=t=>t.isProfileView?(0,i.jsxs)("div",{style:{minHeight:"100vh"},children:[t.meta,(0,i.jsx)(o.Z,{}),(0,i.jsx)("div",{children:t.children}),(0,i.jsx)(l.Z,{})]}):(0,i.jsxs)("div",{children:[t.meta,(0,i.jsx)(a.Z,{}),t.meta,(0,i.jsx)("div",{children:t.children}),(0,i.jsx)(l.Z,{})]})},17982:function(t,r,s){"use strict";var i,a;s.d(r,{Bu:function(){return i},Iy:function(){return transV2},Kt:function(){return subString},dW:function(){return trans}});let trans=(t,r,s)=>{if(!(null==t?void 0:t.blocks))return s||r;let i=Object.keys(t.blocks).find(t=>t.toLowerCase()===r.toLowerCase());return i?t.blocks[i]:r},transV2=(t,r)=>{if(!t)return r;let s=Object.keys(t).find(t=>t.toLowerCase()===r.toLowerCase());return s?t[s]:r},subString=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;return t.length<r?t:t.slice(0,r)+"..."};(a=i||(i={})).H2="h2",a.H3="h3"},8102:function(t,r,s){"use strict";s.d(r,{Z:function(){return x}});var i=s(67294),a=s(45697),l=s.n(a),o=s(6763),c=s(24486),d=s(29100);let u=l().oneOf(["start","end"]),h=l().oneOfType([u,l().shape({sm:u}),l().shape({md:u}),l().shape({lg:u}),l().shape({xl:u}),l().shape({xxl:u}),l().object]);var m=s(85893);let f={id:l().string,href:l().string,onClick:l().func,title:l().node.isRequired,disabled:l().bool,align:h,menuRole:l().string,renderMenuOnMount:l().bool,rootCloseEvent:l().string,menuVariant:l().oneOf(["dark"]),flip:l().bool,bsPrefix:l().string,variant:l().string,
1size:l().string},p=i.forwardRef(({title:t,children:r,bsPrefix:s,rootCloseEvent:i,variant:a,size:l,menuRole:u,renderMenuOnMount:h,disabled:f,href:p,id:x,menuVariant:j,flip:v,...g},b)=>(0,m.jsxs)(o.Z,{ref:b,...g,children:[(0,m.jsx)(c.Z,{id:x,href:p,size:l,variant:a,disabled:f,childBsPrefix:s,children:t}),(0,m.jsx)(d.Z,{role:u,renderOnMount:h,rootCloseEvent:i,variant:j,flip:v,children:r})]}));p.displayName="DropdownButton",p.propTypes=f;var x=p},36968:function(t,r,s){"use strict";var i=s(93967),a=s.n(i),l=s(67294),o=s(76792),c=s(85893);let d=l.forwardRef(({bsPrefix:t,variant:r,animation:s="border",size:i,as:l="div",className:d,...u},h)=>{t=(0,o.vE)(t,"spinner");let m=`${t}-${s}`;return(0,c.jsx)(l,{ref:h,...u,className:a()(d,m,i&&`${m}-${i}`,r&&`text-${r}`)})});d.displayName="Spinner",r.Z=d}},function(t){t.O(0,[2632,2962,3752,1964,9774,2888,179],function(){return t(t.s=46649)}),_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.