1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3713],{96245:function(r,s,t){"use strict";function e(r){this.message=r}e.prototype=Error(),e.prototype.name="InvalidCharacterError";var l="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var s=String(r).replace(/=+$/,"");if(s.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,l,i=0,a=0,o="";l=s.charAt(a++);~l&&(t=i%4?64*t+l:l,i++%4)&&(o+=String.fromCharCode(255&t>>(-2*i&6))))l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(l);return o};function n(r){this.message=r}n.prototype=Error(),n.prototype.name="InvalidTokenError",s.Z=function(r,s){if("string"!=typeof r)throw new n("Invalid token specified");var t=!0===(s=s||{}).header?0:1;try{return JSON.parse(function(r){var s,t=r.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return s=t,decodeURIComponent(l(s).replace(/(.)/g,function(r,s){var t=s.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}catch(r){return l(t)}}(r.split(".")[t]))}catch(r){throw new n("Invalid token specified: "+r.message)}}},37564:function(r,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sys-admin/cron-running",function(){return t(80784)}])},91640:function(r,s,t){"use strict";var l=t(94534),i=t(94137);s.Z=new class{async getAllCronRunning(){try{let r=await (0,l.C)("/sys-admin/crons");return r}catch(r){console.log(r)}}async sendEmail(r){try{let s=await (0,i.A)("/sys-admin/users/sendmail",r);return s}catch(r){console.log(r)}}async reSendEmail(){try{let r=await (0,i.A)("/sys-admin/re-send-email",{});return r}catch(r){console.log(r)}}}},1263:function(r,s,t){"use strict";var l=t(85893),i=t(43599),a=t(52638),o=t(25675),c=t.n(o),d=t(41664),h=t.n(d),m=t(9473);s.Z=()=>{let r=(0,m.v9)(i.aB),s=(0,m.v9)(a.tH);return(0,l.jsx)("footer",{className:"r-footer",children:(0,l.jsxs)("div",{className:"container py-5 mb-5 mb-lg-0",children:[(0,l.jsxs)("div",{className:"row",children:[(0,l.jsx)("div",{className:"col-md-4",children:(0,l.jsxs)("ul",{className:"no-bullet",children:[(0,l.jsx)("li",{children:(0,l.jsx)(h(),{href:"".concat("https://www.lokalmat.no","/"),children:"Hjem"})}),(0,l.jsx)("li",{children:(0,l.jsx)(h(),{href:"/soek",children:"Utforsk"})})]})}),(0,l.jsx)("div",{className:"col-md-4",children:(0,l.jsxs)("ul",{className:"no-bullet",children:[(0,l.jsx)("li",{children:(0,l.jsx)(h(),{href:"/velkommen/om-lokalmat",children:"Om Lokalmat"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://stiftelsennorskmat.no/",target:"_blank",rel:"noreferrer",children:"Om Stiftelsen Norsk Mat"})}),(0,l.jsx)("li",{children:(0,l.jsx)(h(),{href:"/velkommen/lokalmat-vilkar",children:"Vilk\xe5r"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://stiftelsennorskmat.no/no/omstiftelsennorskmat/informasjonskapsler",target:"_blank",rel:"noreferrer",children:"Informasjonskapsler"})})]})}),(0,l.jsx)("div",{className:"col-md-1 mb-4",children:(0,l.jsx)(h(),{href:"https://www.facebook.com/Lokalmat.no",target:"_blank",children:(0,l.jsx)("span",{className:"material-icons lg",children:"facebook"})})}),(0,l.jsx)("div",{className:"col-md-3 mb-3",children:!(null==s?void 0:s.user)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h(),{href:"/login",className:"btn btn-primary mb-3",children:"Logg inn"}),(0,l.jsx)("br",{}),(0,l.jsx)(h(),{href:"/registrer",className:"btn btn-primary",children:"Registrer deg"})]})})]}),(0,l.jsxs)("div",{className:"row mt-4 align-items-end",children:[(0,l.jsxs)("div",{className:"col-md-4",children:[(0,l.jsx)("a",{target:"_blank",href:"https://stiftelsennorskmat.no",className:"d-inline-block mb-4",rel:"noreferrer",children:(0,l.jsx)(c(),{src:"/assets/images/stiftelsen_norsk_mat_logo.png",alt:"Stiftelsen Norsk Mat",width:140,height:55})}),(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:(null==r?void 0:r.adress)||"Pb 487 Sentrum<br />0105 Oslo"}})]}),(0,l.jsx)("div",{className:"col-md-4",children:(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:"Tlf: ".concat((null==r?void 0:r.phone_number)?r.phone_number:"24 14 83 00")}}),(0,l.jsx)("br",{}),(0,l.jsx)(h(),{href:"/kontakt-oss",children:"Kontakt oss"})]})})]})]})})}},96101:function(r,s,t){"use strict";var l=t(85893),i=t(47355),a=t(1570),o=t(43599),c=t(52638),d=t(91402),h=t(28700),m=t(25675),f=t.n(m),u=t(41664),x=t.n(u),j=t(67294),p=t(6763),g=t(9473);s.Z=()=>
1{let r=(0,g.v9)(o.aB),s=(0,g.I0)(),[t,m]=(0,j.useState)(null);return(0,j.useEffect)(()=>{let r=(0,h.HV)("user_info");r&&m(JSON.parse(r))},[]),(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4,padding:"16px 20px"},children:[(0,l.jsx)(x(),{href:"/",className:"logo-inner",style:{maxWidth:"140px",zIndex:10},children:(0,l.jsx)(f(),{className:"img-fluid",style:{marginBottom:0},src:r.logo,alt:"Lokalmat.no",width:223,height:77,loader:d.Z})}),(0,l.jsxs)(p.Z,{align:"end",children:[(0,l.jsx)(p.Z.Toggle,{className:"profile-btn",style:{minWidth:"auto"},children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[(0,l.jsx)(i.Z,{}),t&&(0,l.jsx)("div",{style:{color:"var(--schemes-on-surface)",fontWeight:600,fontSize:"14px"},children:"".concat(t.firstName," ").concat(t.lastName)})]})}),(0,l.jsx)(p.Z.Menu,{children:(0,l.jsxs)(p.Z.Item,{onClick:()=>{(0,h.KR)("refresh_token"),(0,h.KR)("access_token"),(0,h.KR)("sso_access_token"),(0,h.KR)("user_info"),(0,h.KR)("user_email"),(0,h.KR)("jwtTokenExpires"),(0,h.KR)(a.sp),s((0,c.tZ)());let r="".concat("https://auth.ksl.no","/auth/logout?redirect=").concat("https://www.lokalmat.no");window.location.href=r},children:[(0,l.jsx)("span",{className:"material-icons-outlined",children:"logout"}),"Logg ut"]})})]})]})}},80784:function(r,s,t){"use strict";t.r(s),t.d(s,{default:function(){return cron_running}});
1var l=t(85893),i=t(67294),a=t(93967),o=t.n(a),c=t(76792);let d=i.forwardRef(({bsPrefix:r,className:s,striped:t,bordered:i,borderless:a,hover:d,size:h,variant:m,responsive:f,...u},x)=>{let j=(0,c.vE)(r,"table"),p=o()(s,j,m&&`${j}-${m}`,h&&`${j}-${h}`,t&&`${j}-${"string"==typeof t?`striped-${t}`:"striped"}`,i&&`${j}-bordered`,a&&`${j}-borderless`,d&&`${j}-hover`),g=(0,l.jsx)("table",{...u,className:p,ref:x});if(f){let r=`${j}-responsive`;return"string"==typeof f&&(r=`${r}-${f}`),(0,l.jsx)("div",{className:r,children:g})}return g});var h=t(91640),m=t(9473),f=t(52638),u=t(33805),x=t(80258),j=t(22920),p=t(1937),g=t(80438),cron_running=()=>{let r;let s=(0,m.v9)(f.tH),{common:t}=g,[a,o]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(s){if(!(0,p.tY)(s.user)){window.location.href="/";return}return fetchCrons(),r=setInterval(()=>{fetchCrons()},6e4),()=>{window.clearInterval(r)}}},[s]),(0,i.useEffect)(()=>{if(r)return()=>{window.clearInterval(r)}},[]);let fetchCrons=()=>{h.Z.getAllCronRunning().then(r=>{let[s]=r.result;o(s),j.Am.success("".concat(t.reloaded))})};return(0,l.jsx)(u.o,{children:(0,l.jsxs)("div",{className:"container mt-5",children:["Reload each 60 seconds",!a&&(0,l.jsx)(x.Z,{}),a&&(0,l.jsxs)(d,{striped:!0,bordered:!0,hover:!0,children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"#"}),(0,l.jsx)("th",{children:"Cron Name"}),(0,l.jsx)("th",{children:"Created"}),(0,l.jsx)("th",{children:"Result"}),(0,l.jsx)("th",{children:"Message"}),(0,l.jsx)("th",{children:"Duration"})]})}),(0,l.jsx)("tbody",{children:a&&a.map((r,s)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:r.id}),(0,l.jsx)("td",{children:r.cronName}),(0,l.jsx)("td",{children:r.createdAt}),(0,l.jsx)("td",{children:r.result}),(0,l.jsx)("td",{children:r.message}),(0,l.jsx)("td",{children:r.duration})]},s))})]})]})})}},33805:function(r,s,t){"use strict";t.d(s,{o:function(){return Main}});var l=t(85893),i=t(71964),a=t(1263),o=t(96101);let Main=r=>r.isProfileView?(0,l.jsxs)("div",{style:{minHeight:"100vh"},children:[r.meta,(0,l.jsx)(o.Z,{}),(0,l.jsx)("div",{children:r.children}),(0,l.jsx)(a.Z,{})]}):(0,l.jsxs)("div",{children:[r.meta,(0,l.jsx)(i.Z,{}),r.meta,(0,l.jsx)("div",{children:r.children}),(0,l.jsx)(a.Z,{})]})},8102:function(r,s,t){"use strict";t.d(s,{Z:function(){return j}});var l=t(67294),i=t(45697),a=t.n(i),o=t(6763),c=t(24486),d=t(29100);let h=a().oneOf(["start","end"]),m=a().oneOfType([h,a().shape({sm:h}),a().shape({md:h}),a().shape({lg:h}),a().shape({xl:h}),a().shape({xxl:h}),a().object]);var f=t(85893);let u={id:a().string,href:a().string,onClick:a().func,title:a().node.isRequired,disabled:a().bool,align:m,menuRole:a().string,renderMenuOnMount:a().bool,rootCloseEvent:a().string,menuVariant:a().oneOf(["dark"]),flip:a().bool,bsPrefix:a().string,variant:a().string,size:a().string},x=l.forwardRef(({title:r,children:s,bsPrefix:t,rootCloseEvent:l,variant:i,size:a,menuRole:h,renderMenuOnMount:m,disabled:u,href:x,id:j,menuVariant:p,flip:g,...v},w)=>(0,f.jsxs)(o.Z,{ref:w,...v,children:[(0,f.jsx)(c.Z,{id:j,href:x,size:a,variant:i,disabled:u,childBsPrefix:t,children:r}),(0,f.jsx)(d.Z,{role:h,renderOnMount:m,rootCloseEvent:l,variant:p,flip:g,children:s})]}));x.displayName="DropdownButton",x.propTypes=u;var j=x},36968:function(r,s,t){"use strict";var l=t(93967),i=t.n(l),a=t(67294),o=t(76792),c=t(85893);let d=a.forwardRef(({bsPrefix:r,variant:s,animation:t="border",size:l,as:a="div",className:d,...h},m)=>{r=(0,o.vE)(r,"spinner");let f=`${r}-${t}`;return(0,c.jsx)(a,{ref:m,...h,className:i()(d,f,l&&`${f}-${l}`,s&&`text-${s}`)})});d.displayName="Spinner",s.Z=d}},function(r){r.O(0,[2632,3752,1964,9774,2888,179],function(){return r(r.s=37564)}),_N_E=r.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.