1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9755],{77832:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tsh/persons",function(){return n(62736)}])},62736:function(e,t,n){"use strict";n.r(t);var o=n(85893),r=n(67294),a=n(11163),i=n(26502),s=n(61982),l=n(89207),u=n(79149),c=n(28128),f=n(25518),p=n(71636);t.default=()=>{let e=(0,a.useRouter)(),[t,n]=(0,r.useState)([]);return(0,o.jsx)(s.Z,{children:(0,o.jsxs)(i.Z,{title:"Zoek personen",children:[(0,o.jsx)(l.Z,{name:"persons",api:f.Cp,fields:[{key:"firstName",label:"Voornaam"},{key:"lastName",label:"Achternaam"},{key:"email",label:"E-mailadres"}],label:"Zoek personen",onResults:e=>n(e.results)}),(0,o.jsx)(u.Z,{columns:[{key:"firstName",label:"Voornaam"},{key:"lastName",label:"Achternaam"},{key:"email",label:"E-mailadres"}],searchResults:t,onEdit:(0,p.y_)(c.J.PERSON,e)})]})})}},32491:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(67294),i=u(a),s=u(n(62266)),l=u(n(98966));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function f(e){var t=/(?:\.([^.]+))?$/.exec(e);return null!=t&&null!=t[0]?t[0]:""}var p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,o,r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.uploadTasks=[],o.handleFileSelection=function(e){for(var t=e.target.files,n=0;n<t.length;n++)o.startUpload(t[n])},c(o,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.cancelRunningUploads()}},{key:"cancelRunningUploads",value:function(){for(;this.uploadTasks.length>0;){var e=this.uploadTasks.pop();"running"===e.snapshot.state&&e.cancel()}}},{key:"removeTask",value:function(e){for(var t=0;t<this.uploadTasks.length;t++)if(this.uploadTasks[t]===e){this.uploadTasks.splice(t,1);return}}},{key:"startUpload",value:function(e){var t=this,n=this.props,o=n.onUploadStart,r=n.onProgress,a=n.onUploadError,i=n.onUploadSuccess,u=n.storageRef,c=n.metadata,p=n.randomizeFilename,d=n.filename,h=void 0;f(h=d?"function"==typeof d?d(e):d:p?(0,s.default)():e.name)||(h+=f(e.name)),Promise.resolve().then(function(){return e.type.match(/image.*/)&&(t.props.maxWidth||t.props.maxHeight)?(0,l.default)(e,t.props.maxWidth,t.props.maxHeight):e}).then(function(e){var n=u.child(h).put(e,c);o&&o(e,n),n.on("state_changed",function(e){return r&&r(Math.round(100*e.bytesTransferred/e.totalBytes),n)},function(e){return a&&a(e,n)},function(){return t.removeTask(n),i&&i(n.snapshot.metadata.name,n)}),t.uploadTasks.push(n)})}},{key:"render",value:function(){var e=this.props,t=(e.storageRef,e.onUploadStart,e.onProgress,e.onUploadSuccess,e.onUploadError,e.randomizeFilename,e.metadata,e.filename,e.maxWidth,e.maxHeight,e.hidden),n=e.as,r=function(e,t){var n={};for(var o in e)!(t.indexOf(o)>=0)&&Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["storageRef","onUploadStart","onProgress","onUploadSuccess","onUploadError","randomizeFilename","metadata","filename","maxWidth","maxHeight","hidden","as"]),a=t?Object.assign({},r.style,{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1}):r.style;return i.default.createElement(void 0===n?"input":n,o({type:"file",onChange:this.handleFileSelection},r,{style:a}))}}]),t}(a.Component);t.Z=p},98966:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return HTMLCanvasElement.prototype.toBlob||(0,r.default)(),new Promise(function(o,r){var a=new FileReader;a.onload=function(a){var i=new Image;i.onload=function(a){var s=document.createElement("canvas"),l=t||i.width,u=n||i.height;s.width=l,s.height=u;var c=Math.max(l/i.width,u/i.height),f=c*i.width,p=c*i.height,d=s.getContext("2d");if(!d)return r("Could not get the context of the canvas element");d.drawImage(i,Math.min((l-f)/2,0),Math.min((u-p)/2,0),f,p),s.toBlob(function(e){o(e)},e.type)},i.src=a.target.result},a.readAsDataURL(e)})};var o,r=(o=n(85229))&&o.__esModule?o:{default:o}},85229:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){for(var o=atob(this.toDataURL(t,n).split(",")[1]),r=o.length,a=new Uint8Array(r),i=0;i<r;i++)a[i]=o.charCodeAt(i);e(new Blob([a],{type:t||"image/png"}))}})}},49315:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0;return[t[e[o++]],t[e[o++]],t[e[o++]],t[e[o++]],"-",t[e[o++]],t[e[o++]],"-",t[e[o++]],t[e[o++]],"-",t[e[o++]],t[e[o++]],"-",t[e[o++]],t[e[o++]],t[e[o++]],t[e[o++]],t[e[o++]],t[e[o++]]].join("")}},48293:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=Array(16);e.exports=function(){for(var e,t=0;t<16;t++)(3&t)==0&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},62266:function(e,t,n){var o=n(48293),r=n(49315);e.exports=function(e,t,n){var a=t&&n||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var s=0;s<16;++s)t[a+s]=i[s];return t||r(i)}}},function(e){e.O(0,[4976,1281,9603,4288,1733,1779,5039,4860,2888,9774,179],function(){return e(e.s=77832)}),_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.