1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7814],{9672:function(e,r,t){"use strict";var n=t(5152),o=t.n(n)()((function(){return Promise.all([t.e(4756),t.e(1360),t.e(6829)]).then(t.bind(t,6829))}),{ssr:!1,loadableGenerated:{webpack:function(){return[6829]}}});r.Z=o},1794:function(e,r,t){"use strict";var n=t(2125).ZP.p.withConfig({displayName:"Error",componentId:"sc-1gn3hip-0"})({marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgba(220, 38, 38, var(--tw-text-opacity))"});r.Z=n},9857:function(e,r,t){"use strict";var n=t(2125),o=(t(7294),t(5893)),i=n.ZP.p.withConfig({displayName:"FieldDescription__Item",componentId:"sc-14ie2n4-0"})({"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))",marginTop:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem"});r.Z=function(e){var r=e.children;return(0,o.jsx)(i,{children:r})}},787:function(e,r,t){"use strict";t(7294);var n=t(1794),o=t(9715),i=t(5893);r.Z=function(e){var r=e.name,t=e.label,a=void 0===t?"Dit":t,c=e.errors,l=!!(0,o.Z)(c,r,!1),s=(0,o.Z)(c,r,void 0);return l?Array.isArray(s)?(0,i.jsx)(i.Fragment,{children:s.map((function(e,r){return(0,i.jsx)(n.Z,{children:[a,e.message].join(" ")},r)}))}):(0,i.jsx)(n.Z,{children:[s.message.replace(a,"")].join(" ")}):null}},1146:function(e,r,t){"use strict";var n=t(2125),o=t(3315),i=t(7294),a=t(7484),c=t.n(a),l=t(9715),s=t(787),d=t(9857),u=t(5893),p=n.ZP.div.withConfig({displayName:"Input__Wrapper",componentId:"sc-9ux3mt-0"})({marginBottom:"1.5rem"}),m=n.ZP.input.withConfig({displayName:"Input__Field",componentId:"sc-9ux3mt-1"})((function(e){return[e.disabled&&{"--tw-bg-opacity":"1",backgroundColor:"rgba(243, 244, 246, var(--tw-bg-opacity))"},{"--tw-shadow":"0 1px 2px 0 rgba(0, 0, 0, 0.05)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
1dow)",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgba(223, 28, 68, var(--tw-ring-opacity))","--tw-border-opacity":"1",borderColor:"rgba(223, 28, 68, var(--tw-border-opacity))"},display:"block",width:"100%","--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))",borderRadius:"0.375rem","@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},e.hasError&&{"--tw-border-opacity":"1",borderColor:"rgba(220, 0, 45, var(--tw-border-opacity))"}]}));r.Z=function(e){var r=e.label,t=e.type,n=void 0===t?"text":t,a=e.name,f=e.value,g=e.errors,h=e.onChange,b=e.onBlur,w=e.onKeyDown,v=e.autoComplete,y=e.disabled,x=e.setValue,j=e.description,Z=!!(0,l.Z)(g,a,!1);return(0,i.useEffect)((function(){f&&f.includes("Z")&&x&&x(a,c()(f).format("YYYY-MM-DD[T]HH:mm"))}),[f,x,a]),(0,u.jsxs)(p,{children:[(0,u.jsx)(o.Z,{htmlFor:a,children:r}),(0,u.jsx)(m,{type:n,name:a,value:f,onChange:h,onBlur:b,onKeyDown:w,placeholder:r,autoComplete:v,disabled:y,hasError:Z}),j&&(0,u.jsx)(d.Z,{children:j}),(0,u.jsx)(s.Z,{name:a,label:r,errors:g})]})}},3315:function(e,r,t){"use strict";var n=t(2125).ZP.label.withConfig({displayName:"Label",componentId:"sc-1kt0kra-0"})({display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",marginBottom:"0.25rem"});r.Z=n},4866:function(e,r,t){"use strict";var n=t(9499),o=t(4730),i=(t(7294),t(2125)),a=t(5893),c=["header","footer","children","marginLess"];function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var d=i.ZP.div.withConfig({displayName:"Pane__Wrapper",componentId:"sc-1s7z06j-0"})((function(e){return[e.marginLess?{marginBottom:"0px"}:{marginBottom:"3rem"},{borderRadius:"0.375rem","--tw-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
1dow)",overflow:"hidden","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"}]})),u=i.ZP.div.withConfig({displayName:"Pane__Footer",componentId:"sc-1s7z06j-1"})({"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",overflow:"hidden",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",borderTopWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}),p=i.ZP.div.withConfig({displayName:"Pane__Inner",componentId:"sc-1s7z06j-2"})({padding:"1.5rem"});r.Z=function(e){var r=e.header,t=e.footer,n=e.children,i=e.marginLess,l=void 0!==i&&i,m=(0,o.Z)(e,c);return(0,a.jsxs)(d,s(s({},m),{},{marginLess:l,children:[r&&(0,a.jsx)(a.Fragment,{children:r}),(0,a.jsx)(p,{children:n}),t&&(0,a.jsx)(u,{children:t})]}))}},7422:function(e,r,t){"use strict";var n=t(2125),o=t(3315),i=t(787),a=t(5893),c=n.ZP.div.withConfig({displayName:"Select__Wrapper",componentId:"sc-1w8qxs4-0"})({marginBottom:"1.5rem"}),l=n.ZP.select.withConfig({displayName:"Select__Field",componentId:"sc-1w8qxs4-1"})((function(){return[{marginTop:"0.25rem",display:"block",width:"100%",paddingLeft:"0.75rem",paddingRight:"2.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgba(223, 28, 68, var(--tw-ring-opacity))","--tw-border-opacity":"1",borderColor:"rgba(223, 28, 68, var(--tw-border-opacity))"},borderRadius:"0.375rem","@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}}]}));r.Z=function(e){var r=e.label,t=(e.type,e.name),n=e.value,s=e.options,d=e.errors,u=e.onChange,p=e.onBlur;return(0,a.jsxs)(c,{children:[(0,a.jsx)(o.Z,{htmlFor:t,children:r}),(0,a.jsxs)(l,{name:t,value:n,onChange:u,onBlur:p,placeholder:r,defaultValue:"__DEFAULT__",children:[(0,a.jsx)("option",{value:"__DEFAULT__",disabled:!0,children:"Maak een keuze"}),s.map((function(e){return(0,a.jsx)("option",{value:e.id,children:e.label},e.id)}))]}),(0,a.jsx)(i.Z,{name:t,label:r,errors:d})]})}},2554:function(e,r,t){"use strict";var n=t(2125),o=(t(7294),t(3315)),i=t(787),a=t(9857),c=t(5893),l=n.ZP.div.withConfig({displayName:"Textarea__Wrapper",componentId:"sc-cd0y97-0"})({marginBottom:"1.5rem"}),s=n.ZP.textarea.withConfig({displayName:"Textarea__Input",componentId:"sc-cd0y97-1"})({"--tw-shadow":"0 1px 2px 0 rgba(0, 0, 0, 0.05)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
1dow)",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgba(223, 28, 68, var(--tw-ring-opacity))","--tw-border-opacity":"1",borderColor:"rgba(223, 28, 68, var(--tw-border-opacity))"},display:"block",width:"100%","--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))",borderRadius:"0.375rem","@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}});r.Z=function(e){var r=e.label,t=e.name,n=e.value,d=e.errors,u=e.onChange,p=e.onBlur,m=e.description;return(0,c.jsxs)(l,{children:[(0,c.jsx)(o.Z,{htmlFor:t,children:r}),(0,c.jsx)(s,{rows:4,name:t,id:t,defaultValue:n,onChange:u,onBlur:p,placeholder:r}),m&&(0,c.jsx)(a.Z,{children:m}),(0,c.jsx)(i.Z,{name:t,label:r,errors:d})]})}},2128:function(e,r,t){"use strict";var n=t(2125),o=t(7294),i=t(3170),a=t(787),c=t(3315),l=t(5893),s=n.ZP.div.withConfig({displayName:"Upload__Wrapper",componentId:"sc-1wwo86n-0"})({marginBottom:"1.5rem"}),d=n.ZP.div.withConfig({displayName:"Upload__Flex",componentId:"sc-1wwo86n-1"})({display:"flex",gap:"1rem",alignItems:"center"}),u=(n.ZP.p.withConfig({displayName:"Upload__Error",componentId:"sc-1wwo86n-2"})({marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgba(220, 38, 38, var(--tw-text-opacity))"}),n.ZP.input.withConfig({displayName:"Upload__NativeFileInput",componentId:"sc-1wwo86n-3"})({display:"none"}));r.Z=function(e){var r=e.label,t=e.name,n=e.value,p=e.errors,m=e.onChange,f=e.onBlur,g=e.multiple,h=void 0!==g&&g,b=e.mimes,w=void 0===b?"image/*":b,v="Geen ".concat(h?"bestanden":"bestand"," geselecteerd"),y=(0,o.useState)(v),x=y[0],j=y[1],Z=(0,o.useRef)(null);(0,o.useEffect)((function(){if(Array.isArray(n)){var e=Array.from(n).map((function(e){return e.name})).join(", ");j(e)}else j(n?n.name:v)}),[n,v]);return(0,l.jsxs)(s,{children:[(0,l.jsx)(c.Z,{children:r}),(0,l.jsxs)(d,{children:[(0,l.jsxs)(i.Z,{type:"button",color:"plain",onClick:function(){var e;null===(e=Z.current)||void 0===e||e.click()},children:["Selecteer ",h?"bestanden":"bestand"]}),(0,l.jsx)(c.Z,{children:x})]}),(0,l.jsx)(u,{name:t,type:"file",ref:Z,onChange:function(e){null!==e&&void 0!==e&&e.target.files&&m(h?Array.from(e.target.files):e.target.files[0])},onBlur:f,accept:w,multiple:h}),(0,l.jsx)(a.Z,{name:t,label:r,errors:p})]})}},4862:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var n=t(7294),o=t(6301);function i(){var e=n.useContext(o.u);if(!e)throw new Error("useNotification should only be used inside <NotificationContext />");return e}},9715:function(e,r){"use strict";r.Z=function(e,r,t){if(r){var n=(Array.isArray(r)?r:r.match(/([^[.\]])+/g)).reduce((function(e,r){return e&&e[r]}),e);return void 0===n?t:n}}},3168:function(e,r){"use strict";r.Z=function(e){var r=[],t=function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(r.push({id:t.id,label:o?"".concat(o," ").concat(t.title):t.title}),t.children&&t.children.length>0)&&(null===(n=t.children)||void 0===n||n.map((function(r){return e(r,o+"--")})))};return e.map((function(e){return t(e)})),r}},7495:function(e,r,t){"use strict";var n=t(4862);r.Z=function(){var e=(0,n.Z)().notify;return function(){e({title:"Oeps",description:"Sommige velden zijn nog niet juist ingevuld. Controleer de velden en probeer het opnieuw.",type:"error"})}}},9086:function(e,r,t){"use strict";t.r(r);var n=t(9499),o=t(1163),i=t(7294),a=t(7536),c=t(3170),l=t(7452),s=t(1146),d=t(3315),u=t(5242),p=t(4866),m=t(7422),f=t(9672),g=t(2128),h=t(4862),b=t(5153),w=t(3168),v=t(2554),y=t(9734),x=t(6310),j=t(7533),Z=t(7495),_=t(5893);function C(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?C(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var P=x.Ry({title:x.Z_().max(255).required(),image_path:x.nK().required(),excerpt:x.Z_().required(),body:x.nK().required(),category_id:x.Z_().required()});r.default=function(){var e=(0,h.Z)().notify,r=(0,Z.Z)(),t=(0,o.useRouter)(),n=(0,i.useState)([]),x=n[0],C=n[1],B=(0,i.useState)(!1),S=B[0],N=B[1],k=(0,a.cI)({shouldFocusError:!1,resolver:(0,j.X)(P,{str
1ipUnknown:!0})}),I=k.control,E=k.formState.errors,D=k.handleSubmit,T=k.reset,F=(0,y.ZP)("/categories/list",b._).data;(0,i.useEffect)((function(){F&&C((0,w.Z)(F))}),[F]);return(0,_.jsx)(u.Z,{title:"Nieuw nieuwsbericht",authenticated:!0,children:(0,_.jsx)(l.Z,{children:(0,_.jsx)(p.Z,{children:(0,_.jsxs)("form",{onSubmit:D((function(r){N(!0),b.Z.post("articles",O(O({},r),{},{body:JSON.stringify(r.body)}),{headers:{"Content-Type":"multipart/form-data"}}).then((function(r){var n=r.data;N(!1),T(),t.push("/articles/".concat(n.slug)),e({title:"Artikel geplaatst",description:"Jouw artikel is succesvol geplaatst.",type:"success"})})).catch((function(){N(!1),e({title:"Oeps",description:"Er is iets fout gegaan bij het aanmaken van jouw artikel.",type:"error"})}))}),r),children:[(0,_.jsx)(a.Qr,{name:"title",control:I,render:function(e){var r=e.field;return(0,_.jsx)(s.Z,{label:"Titel",errors:E,name:r.name,value:r.value,onBlur:r.onBlur,onChange:r.onChange})}}),(0,_.jsx)(a.Qr,{name:"image_path",control:I,render:function(e){var r=e.field;return(0,_.jsx)(g.Z,{label:"Afbeelding",errors:E,name:r.name,value:r.value,onBlur:r.onBlur,onChange:r.onChange})}}),(0,_.jsx)(a.Qr,{name:"excerpt",control:I,render:function(e){var r=e.field;return(0,_.jsx)(v.Z,{label:"Samenvatting",errors:E,name:r.name,value:r.value,onBlur:r.onBlur,onChange:r.onChange})}}),(0,_.jsx)(d.Z,{children:"Bericht"}),(0,_.jsx)(a.Qr,{name:"body",control:I,render:function(e){var r=e.field;return(0,_.jsx)(f.Z,O(O({},r),{},{errors:E}))}}),(0,_.jsx)(a.Qr,{name:"category_id",control:I,render:function(e){var r=e.field;return(0,_.jsx)(m.Z,{label:"Categorie",errors:E,name:r.name,value:r.value,onBlur:r.onBlur,onChange:r.onChange,options:x})}}),(0,_.jsx)(c.Z,{type:"submit",loading:S,children:"Bericht plaatsen"})]})})})})}},9503:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles/create",function(){return t(9086)}])}},function(e){e.O(0,[6153,7536,4328,2988,9774,2888,179],(function(){return r=9503,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.