1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{3072:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});let a=n(8736).default},6971:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[page]/[second]",function(){return n(3072)}])},8736:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>j});var a=n(7876),s=n(4232),r=n(7328),i=n.n(r),l=n(9988),o=n(6551),d=n(5789),u=n(6067);function c({id:t,onLogginIn:e}){let[n,r]=(0,s.useState)({...(0,o.ge)({id:t,password:""}),submitting:!1});return(0,a.jsxs)("form",{onSubmit:t=>{t.preventDefault(),r(t=>({...t,submitting:!0})),(0,o.jJ)(n.data).then(t=>{r(e=>({...e,...t,data:e.data,submitting:!1})),t.data.logged_in&&e()})},children:[(0,a.jsxs)(d.YJ,{children:[(0,a.jsx)("label",{htmlFor:"password",children:"Code"}),(0,a.jsx)(d.pd,{id:"password",type:"password",value:n.data.password,onChange:t=>{let e;return e={password:t.target.value},r(t=>({...t,data:{...t.data,...e}}))}})]}),!!n.errors.length&&(0,a.jsx)(d.YJ,{children:n.errors.map((t,e)=>(0,a.jsx)("p",{children:t.message},e))}),(0,a.jsx)(u.y,{type:"primary",className:"w-full",children:"Login"})]})}function p({data:t,AuthComponent:e}){let[n,r]=(0,s.useState)(!1);return!n&&t.password?(0,a.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,a.jsx)("div",{className:"w-64 bg-white bg-blue-200 px-4 pt-4 rounded text-white",children:(0,a.jsx)(c,{id:t.id,onLogginIn:()=>r(!0)})})}):(0,a.jsx)(e,{})}let m="private, no-store";function h({page:t,data:e,menu:n,statusCode:s}){if(s)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:`${404===s?"Pagina niet gevonden":"Er ging iets mis"} - Bureau Sterk`})}),(0,a.jsx)(l.Mk,{menu:n})]});let r=e?.seo||{},o=e?.og||{},d=r.title||o.title||e?.label||"",u=r.description||o.description||"",c="https://bureausterk.nl",m=e?.name?`${c}/${e.name}`:c;return(0,a.jsx)(p,{data:e,AuthComponent:()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[d?(0,a.jsx)("title",{children:d}):null,u?(0,a.jsx)("meta",{name:"description",content:u}):null,c?(0,a.jsx)("link",{rel:"canonical",href:m}):null,(0,a.jsx)("meta",{property:"og:locale",content:"nl_NL"}),o.title||r.title?(0,a.jsx)("meta",{property:"og:title",content:o.title||r.title}):null,o.description||r.description?(0,a.jsx)("meta",{property:"og:description",content:o.description||r.description}):null,o.image?(0,a.jsx)("meta",{property:"og:image",content:o.image}):null,(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),o.title||r.title?(0,a.jsx)("meta",{name:"twitter:title",content:o.title||r.title}):null,o.description||r.description?(0,a.jsx)("meta",{name:"twitter:description",content:o.description||r.description}):null,o.image?(0,a.jsx)("meta",{name:"twitter:image",content:o.image}):null]}),(0,a.jsx)(l.YW,{page:t,data:e,menu:n})]})})}async function g(t){try{let e=await fetch(t,{headers:{Accept:"application/json"}}),n=e.headers.get("content-type")||"";if(!e.ok||!n.includes("application/json"))return{ok:!1,status:e.status||500};return{ok:!0,data:await e.json()}}catch(t){return{ok:!1,status:500}}}h.getInitialProps=async({query:t,res:e})=>{let n=t.fourth||t.third||t.second||t.page||"home",a="https://api.bureausterk.nl",s=await g(`${a}/wp/menus/name/hoofdmenu`),r=s.ok?s.data.data:{items:[]},i=await g(`${a}/wp/pages/name/`+n);if(!i.ok)return e&&(e.statusCode=404===i.status?404:502,e.setHeader("Cache-Control",m)),{page:n,data:{},menu:r,statusCode:404===i.status?404:502};if(!s.ok)return e&&(e.statusCode=502,e.setHeader("Cache-Control",m)),{page:n,data:{},menu:{},statusCode:502};let l=i.data.data;return e&&e.setHeader("Cache-Control",l?.password?m:"public, s-maxage=3600, stale-while-revalidate=86400"),{page:n,data:l,menu:r}};let j=h}},t=>{t.O(0,[788,988,636,593,792],()=>t(t.s=6971)),_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.