/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.mediaUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=385)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},13:function(e,t,n){"use strict";function r(e,t){for(var n=0;n0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),t}(s.Component),y=n(23),h=n.n(y),v=n(6),O=n(44),g=n(18),j=n(22),w=n(38),S=n.n(w),_=n(37);function x(e){return k.apply(this,arguments)}function k(){return(k=Object(O.a)(h.a.mark((function e(t){var n,r,i,o,a,u,c,p,d,m,b,y,O,w,S,x,k,E,M,P,A,F,I,C,G,U,L,z,D;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.allowedTypes,r=t.additionalData,i=void 0===r?{}:r,o=t.filesList,a=t.maxUploadFileSize,u=t.onError,c=void 0===u?l.noop:u,p=t.onFileChange,d=t.wpAllowedMimeTypes,m=void 0===d?null:d,b=Object(g.a)(o),y=[],O=function(e,t){Object(_.revokeBlobURL)(Object(l.get)(y,[e,"url"])),y[e]=t,p(Object(l.compact)(y))},w=function(e){return!n||Object(l.some)(n,(function(t){return Object(l.includes)(t,"/")?t===e:Object(l.startsWith)(e,"".concat(t,"/"))}))},S=(h=m)?Object(l.flatMap)(h,(function(e,t){var n=e.split("/"),r=Object(j.a)(n,1)[0],i=t.split("|");return[e].concat(Object(g.a)(Object(l.map)(i,(function(e){return"".concat(r,"/").concat(e)}))))})):h,x=function(e){return Object(l.includes)(S,e)},k=function(e){e.message=[Object(s.createElement)("strong",{key:"filename"},e.file.name),": ",e.message],c(e)},E=[],M=!0,P=!1,A=void 0,e.prev=12,F=b[Symbol.iterator]();case 14:if(M=(I=F.next()).done){e.next=34;break}if(C=I.value,!S||x(C.type)){e.next=19;break}return k({code:"MIME_TYPE_NOT_ALLOWED_FOR_USER",message:Object(f.__)("Sorry, this file type is not permitted for security reasons."),file:C}),e.abrupt("continue",31);case 19:if(w(C.type)){e.next=22;break}return k({code:"MIME_TYPE_NOT_SUPPORTED",message:Object(f.__)("Sorry, this file type is not supported here."),file:C}),e.abrupt("continue",31);case 22:if(!(a&&C.size>a)){e.next=25;break}return k({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:C}),e.abrupt("continue",31);case 25:if(!(C.size<=0)){e.next=28;break}return k({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:C}),e.abrupt("continue",31);case 28:E.push(C),y.push({url:Object(_.createBlobURL)(C)}),p(y);case 31:M=!0,e.next=14;break;case 34:e.next=40;break;case 36:e.prev=36,e.t0=e.catch(12),P=!0,A=e.t0;case 40:e.prev=40,e.prev=41,M||null==F.return||F.return();case 43:if(e.prev=43,!P){e.next=46;break}throw A;case 46:return e.finish(43);case 47:return e.finish(40);case 48:G=0;case 49:if(!(G