1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9638],{99689:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/produsent-oblat",function(){return s(65072)}])},3420:function(e,t,s){"use strict";var n=s(94534),r=s(68873),a=s(54450),l=s(94137),c=s(70251);t.Z=new class{async getProducerStatistics(e){try{let t=await (0,n.C)("/producers/".concat(e,"/statistics"));return t.result}catch(e){console.log(e)}}async getProductsMostView(e){try{let t=await (0,n.C)("/producers/".concat(e,"/statistics/most-view"));return t.result.products}catch(e){console.log(e)}}async getProducerProcessStatus(e){try{let t=await (0,n.C)("/producers/".concat(e,"/statistics/process-status"));return t.result}catch(e){console.log(e)}}async getProducers(e,t){let s=this.prefix;e&&(s+=(0,c.XF)(e));try{var r;let e=await (0,n.C)(s);if(t)return e.result;return(null===(r=e.result)||void 0===r?void 0:r.data)||[]}catch(e){return console.log(e),[]}}async setApproveProducer(e){try{let t=await (0,r.t)("/admin/producers/".concat(e,"/approval"),{});return t}catch(e){console.log(e)}}async setRejectProducer(e){try{let t=await (0,a.w)("/admin/producers/".concat(e,"/approval"));return t}catch(e){console.log(e)}}async deleteProducer(e){try{let t=await (0,a.w)("/producers/".concat(e));return t}catch(e){console.log(e)}}async increaseProducerView(e){try{let t=await (0,r.t)("/producers/".concat(e,"/view"),{});return t}catch(e){console.log(e)}}async setCompulsoryCompleted(e){try{let t=await (0,l.A)("/producers/".concat(e,"/compulsory/complete"),{});return t}catch(e){console.log(e)}}async producerRequestApproval(e){try{let t=await (0,l.A)("/producers/".concat(e,"/approval/request"),{});return t}catch(e){console.log(e)}}constructor(){this.prefix="admin/producers"}}},1263:function(e,t,s){"use strict";var n=s(85893),r=s(43599),a=s(52638),l=s(25675),c=s.n(l),i=s(41664),o=s.n(i),d=s(9473);t.Z=()=>{let e=(0,d.v9)(r.aB),t=(0,d.v9)(a.tH);return(0,n.jsx)("footer",{className:"r-footer",children:(0,n.jsxs)("div",{className:"container py-5 mb-5 mb-lg-0",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-md-4",children:(0,n.jsxs)("ul",{className:"no-bullet",children:[(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"".concat("https://www.lokalmat.no","/"),children:"Hjem"})}),(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/soek",children:"Utforsk"})})]})}),(0,n.jsx)("div",{className:"col-md-4",children:(0,n.jsxs)("ul",{className:"no-bullet",children:[(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/velkommen/om-lokalmat",children:"Om Lokalmat"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://stiftelsennorskmat.no/",target:"_blank",rel:"noreferrer",children:"Om Stiftelsen Norsk Mat"})}),(0,n.jsx)("li",{children:(0,n.jsx)(o(),{href:"/velkommen/lokalmat-vilkar",children:"Vilk\xe5r"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://stiftelsennorskmat.no/no/omstiftelsennorskmat/informasjonskapsler",target:"_blank",rel:"noreferrer",children:"Informasjonskapsler"})})]})}),(0,n.jsx)("div",{className:"col-md-1 mb-4",children:(0,n.jsx)(o(),{href:"https://www.facebook.com/Lokalmat.no",target:"_blank",children:(0,n.jsx)("span",{className:"material-icons lg",children:"facebook"})})}),(0,n.jsx)("div",{className:"col-md-3 mb-3",children:!(null==t?void 0:t.user)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{href:"/login",className:"btn btn-primary mb-3",children:"Logg inn"}),(0,n.jsx)("br",{}),(0,n.jsx)(o(),{href:"/registrer",className:"btn btn-primary",children:"Registrer deg"})]})})]}),(0,n.jsxs)("div",{className:"row mt-4 align-items-end",children:[(0,n.jsxs)("div",{className:"col-md-4",children:[(0,n.jsx)("a",{target:"_blank",href:"https://stiftelsennorskmat.no",className:"d-inline-block mb-4",rel:"noreferrer",children:(0,n.jsx)(c(),{src:"/assets/images/stiftelsen_norsk_mat_logo.png",alt:"Stiftelsen Norsk Mat",width:140,height:55})}),(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:(null==e?void 0:e.adress)||"Pb 487 Sentrum<br />0105 Oslo"}})]}),(0,n.jsx)("div",{className:"col-md-4",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:"Tlf: ".concat((null==e?void 0:e.phone_number)?e.phone_number:"24 14 83 00")}}),(0,n.jsx)("br",{}),(0,n.jsx)(o(),{href:"/kontakt-oss",children:"Kontakt oss"})]})})]})]})})}},96101:function(e,t,s){"use strict";var n=s(85893),r=s(47355),a=s(1570),l=s(43599),c=s(52638),i=s(91402),o=s(28700),d=s(25675),m=s.n(d),u=s(41664),h=s.n(u),x=s(67294),p=s(6763),j=s(9473);t.Z=()=>{let e=(0,j.v9)(l.aB),t=(0,j.I0)(),[s,d]=(0,x.useState)(null);return(0,x.useEffect)(()=>{let e=(0,o.HV)("user_info");e&&d(JSON.parse(e))},[]),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4,padding:"16px 20px"},children:[(0,n.jsx)(h(),{href:"/",className:"logo-inner",style:{maxWidth:"140px",zIndex:10},children:(0,n.jsx)(m(),{className:"img-fluid",style:{marginBottom:0},src:e.logo,alt:"Lokalmat.no",width:223,height:77,loader:i.Z})}),(0,n.jsxs)(p.Z,{align:"end",children:[(0,n.jsx)(p.Z.Toggle,{className:"profile-btn",style:{minWidth:"auto"},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,n.jsx)(r.Z,{}),s&&(0,n.jsx)("div",{style:{color:"var(--schemes-on-surface)",fontWeight:600,fontSize:"14px"},children:"".concat(s.firstName," ").concat(s.lastName)})]})}),(0,n.jsx)(p.Z.Menu,{children:(0,n.jsxs)(p.Z.Item,{onClick:()=>{(0,o.KR)("refresh_token"),(0,o.KR)("access_token"),(0,o.KR)("sso_access_token"),(0,o.KR)("user_info"),(0,o.KR)("user_email"),(0,o.KR)("jwtTokenExpires"),(0,o.KR)(a.sp),t((0,c.tZ)());let e="".concat("https://auth.ksl.no","/auth/logout?redirect=").concat("https://www.lokalmat.no");window.location.href=e},children:[(0,n.jsx)("span",{className:"material-icons-outlined",children:"logout"}),"Logg ut"]}
1)})]})]})}},1327:function(e,t,s){"use strict";s.d(t,{h:function(){return Meta}});var n=s(85893),r=s(9008),a=s.n(r),l=s(11163),c=s(2962),i=s(9473),o=s(43599);let Meta=e=>{let t=(0,l.useRouter)(),s=(0,i.v9)(o.aB);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("meta",{charSet:"UTF-8"},"charset"),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"},"viewport"),(0,n.jsx)("link",{rel:"apple-touch-icon",href:"".concat(t.basePath,"/lokalmat-logo-apple.jpg")},"apple"),(0,n.jsx)("link",{rel:"icon",href:"".concat(t.basePath,"/favicon.ico")},"favicon")]}),(0,n.jsx)(c.PB,{title:e.title?e.title:s.site_title,description:(null==e?void 0:e.description)||"",canonical:e.canonical,openGraph:{title:e.title,description:e.description,url:e.canonical,images:e.images,locale:"no",site_name:"Lokalmat"}})]})}},65072:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return produsent_oblat}});var n=s(85893),r=s(33805),a=s(1327),l=s(67294),c=s(21593),i=s(42298),o=s(95570),d=s(3304),m=s(45718),u=s(67354),h=s.n(u),commons_QrSection=e=>{let{producer:t}=e;return(0,n.jsxs)("div",{className:"row py-5",children:[(0,n.jsx)("h2",{className:"text-center mb-4",children:t.displayName}),(0,n.jsx)("p",{className:"text-center mb-4",children:t.shortDescription}),(0,n.jsx)("span",{className:"d-flex justify-content-center",children:(0,n.jsxs)("div",{className:"".concat(h().qrSectionWrap),children:[(0,n.jsx)("p",{className:h().name,children:"Alt p\xe5 stell"}),(0,n.jsx)("p",{className:h().qrQuality,children:"Kvalitetssikret gjennom egenrevisjon Lokalmat.no"}),(0,n.jsx)("div",{className:h().line}),(0,n.jsxs)("p",{className:h().expiryDate,children:["Gyldig til"," ",t.lastSelfAuditDate?"".concat((0,i.default)(new Date(t.lastSelfAuditDate),"MMMM",{locale:d.Z})," ").concat((0,o.default)((0,c.default)(new Date(t.lastSelfAuditDate),3))):""]}),(0,n.jsx)(m.QRCode,{size:180,value:"".concat("https://www.lokalmat.no","/produsent-oblat/?id=").concat(t.id),logoImage:"/assets/images/qrcode-watermark.png",logoWidth:94,logoHeight:27})]})})]})},x=s(41664),p=s.n(x),j=s(11163),f=s(74658),g=s(3420),v=s(80258),produsent_oblat=()=>{let e=(0,j.useRouter)(),t=e.query.id,[s,c]=(0,l.useState)(null),[i,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)(!1),getProducer=async e=>{let t=await f.Z.getProducer(e);if(!t)return o(!0);c(t)};return(0,l.useEffect)(()=>{t&&(m(!0),g.Z.getProducerProcessStatus(parseInt(t.toString())).then(e=>{if(!e.hasValidSelfAudit){window.location.href="/404";return}m(!1)}),getProducer(parseInt(t.toString())))},[t]),(0,n.jsx)(r.o,{meta:(0,n.jsx)(a.h,{title:"Lokalmat - Oblat landingsside",description:"Se hvordan lokalmatprodusenter jobber med trygg mat Lokalmat - Bransjeportalen for lokalmat for hele Norge - Stiftelsen Norsk Mat"}),children:d?(0,n.jsx)("div",{style:{minHeight:"80vh"},className:"justify-content-center align-items-center d-flex",children:(0,n.jsx)(v.Z,{})}):(0,n.jsx)(n.Fragment,{children:i?(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row justify-content-center mb-5",children:(0,n.jsx)("div",{className:"text-center",children:"Ikke funnet"})})}):s?(0,n.jsxs)("div",{className:"container",children:[s&&(0,n.jsx)(commons_QrSection,{producer:s}),(0,n.jsxs)("div",{className:"row justify-content-center mb-5",children:[(0,n.jsx)("div",{className:"col-md-7 text-center",children:(0,n.jsx)("h2",{className:"fw-normal mb-4",children:s.name})}),(0,n.jsx)("div",{className:"col-md-7 text-center",children:(0,n.jsx)("p",{children:"Denne teksten skal handle om verdien av oblatet. Den skal peke tilbake til produsentsiden / evt storytelling under om produsenten har storytellinssiden. S\xe5 om produsenten har b\xe5de produkter og storytelling skal begge vise."})}),(0,n.jsxs)("div",{className:"col-md-7 text-center",children:[(0,n.jsx)("h3",{className:"mt-4 mb-2 fs-6",children:"1914 translation by H. Rackham"}),(0,n.jsx)("p",{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco."})]})]}),(0,n.jsxs)("div",{className:"row mb-5 pt-3 gx-md-5 justify-content-center",children:[(0,n.jsx)("div",{className:"col-md-4 mb-4",children:(0,n.jsx)(p(),{className:"btn btn-lg btn-secondary rounded-0 d-block",href:"om-lokalmat",children:"Les mer om oblatet"})}),(0,n.jsx)("div",{className:"col-md-4 mb-4",children:(0,n.jsx)(p(),{className:"btn btn-lg btn-secondary rounded-0 d-block",href:"produsenter/".concat(s.slug),children:"Produsentens produkter"})})]})]}):(0,n.jsx)("div",{className:"justify-content-center align-items-center d-flex pt-5",children:(0,n.jsx)(v.Z,{})})})})}},33805:function(e,t,s){"use strict";s.d(t,{o:function(){return Main}});var n=s(85893),r=s(71964),a=s(1263),l=s(96101);let Main=e=>e.isProfileView?(0,n.jsxs)("div",{style:{minHeight:"100vh"},children:[e.meta,(0,n.jsx)(l.Z,{}),(0,n.jsx)("div",{children:e.children}),(0,n.jsx)(a.Z,{})]}):(0,n.jsxs)("div",{children:[e.meta,(0,n.jsx)(r.Z,{}),e.meta,(0,n.jsx)("div",{children:e.children}),(0,n.jsx)(a.Z,{})]})},67354:function(e){e.exports={qrSectionWrap:"QrSection_qrSectionWrap__48Uhh",name:"QrSection_name__trYMG",qrQuality:"QrSection_qrQuality__o0OLl",line:"QrSection_line__tPCyn",expiryDate:"QrSection_expiryDate__5cB3N"}}},function(e){e.O(0,[2632,2962,1497,1668,3752,1964,9774,2888,179],function(){return e(e.s=99689)}),_N_E=e.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.