this.nisje=this.nisje||{},this.nisje.blockLibrary=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=545)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},18:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},2:function(t,e){!function(){t.exports=this.lodash}()},23:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(23);var i=n(28);function o(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},240:function(t,e){!function(){t.exports=this.wp.blocks}()},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(23);function i(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},306:function(t,e){!function(){t.exports=this.wp.blockEditor}()},5:function(t,e){!function(){t.exports=this.nisje.components}()},545:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"metadata",(function(){return p})),n.d(r,"name",(function(){return m})),n.d(r,"settings",(function(){return y}));var i=n(6),o=n(240),c=n(1),a=n(18),u=n(24),s=n(0),l=n(2),f=n(306),d=n(5);var b=function(t){var e=t.attributes,n=t.setAttributes,r=t.className,i=t.isSelected,o=e.files,b=!!o.length,p=Object(s.createElement)(f.MediaPlaceholder,{addToGallery:b,className:r,disableMediaButtons:b&&!i,dropZoneUIOnly:b&&!i,icon:!i&&"media-default",isAppender:b,labels:{title:!b&&Object(c.__)("Files"),instructions:!b&&Object(c.__)("Drag files, upload new ones or select files from your library")},multiple:!0,onSelect:function(t){n({files:[].concat(Object(u.a)(o),Object(u.a)(t.map((function(t){return{id:Object(l.toString)(t.id),size:t.filesizeHumanReadable,title:t.title,type:t.mime}}))))})}});return b?Object(s.createElement)("div",null,Object(s.createElement)("div",{className:"nisje-block-files"},o.map((function(t){return Object(s.createElement)(d.File,Object(a.a)({key:t.id},t))}))),p):p},p={name:"nisje/files",category:"common",attributes:{files:{type:"array",items:{type:"object"},default:[]},ids:{type:"array",items:{type:"number"},default:[]}}},m=p.name,y={title:Object(c.__)("Files"),description:Object(c.__)("Add downloadable files."),icon:"media-default",keywords:[Object(c.__)("document"),Object(c.__)("pdf"),Object(c.__)("download")],edit:b};[r].forEach((function(t){if(t){var e=t.metadata,n=t.settings,r=t.name;e&&Object(o.unstable__bootstrapServerSideBlockDefinitions)(Object(i.a)({},r,e)),Object(o.registerBlockType)(r,n)}}))},6:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}});