this.nisje=this.nisje||{},this.nisje.views=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=550)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},16:function(e,t){!function(){e.exports=this.wp.components}()},17:function(e,t){!function(){e.exports=this.wp.data}()},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},23:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},35:function(e,t){!function(){e.exports=this.wp.apiFetch}()},37:function(e,t){!function(){e.exports=this.nisje.viewport}()},39:function(e,t){!function(){e.exports=this.nisje.history}()},5:function(e,t){!function(){e.exports=this.nisje.components}()},550:function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteModal",(function(){return d})),n.d(t,"Message",(function(){return m}));var r=n(21),o=n(0),i=n(2),c=n(1),u=n(16),s=n(17),a=n(35),l=n.n(a),f=n(5),p=n(39),b=n.n(p);var d=function(e){var t=e.button,n=e.message,a=e.onRequestClose,p=e.onSuccess,d=void 0===p?i.noop:p,j=e.redirect,m=void 0!==j&&j,h=e.restPath,O=e.successMessage,v=e.title,y=Object(o.useState)(!1),_=Object(r.a)(y,2),g=_[0],w=_[1],x=Object(o.useState)(!1),E=Object(r.a)(x,2),S=E[0],M=E[1],D=Object(s.useDispatch)("nisje/notices").createInfoNotice;return Object(o.createElement)(u.Modal,{className:"views-delete-modal",closeButtonLabel:Object(c.__)("Cancel"),onRequestClose:a,title:v||Object(c.__)("Delete post?")},Object(o.createElement)("p",null,n||Object(c.__)("This will delete the post permanently")),S&&Object(o.createElement)(f.Notice,{status:"error"},S),Object(o.createElement)("div",{className:"views-delete-modal__actions"},Object(o.createElement)(f.ButtonGroup,null,Object(o.createElement)(f.Button,{isTertiary:!0,onClick:a,__experimentalDesign:!0},Object(c.__)("Cancel")),Object(o.createElement)(f.Button,{isDestructive:!0,isLoading:g,onClick:function(){w(!0),l()({path:h,method:"DELETE"}).then((function(){D(O||Object(c.__)("Successfully deleted the post")),d(),m?b.a.replace(m):a()})).catch((function(e){M(e.message),w(!1)}))},__experimentalDesign:!0},t||Object(c.__)("Delete")))))},j=n(37);var m=Object(j.withViewportMatch)({isHuge:"huge"})((function(e){var t=e.isHuge,n=e.icon,r=e.children;return Object(o.createElement)("div",{className:"views-message"},Object(o.createElement)("div",null,n&&Object(o.createElement)(f.NisjeIcon,{icon:n,size:t?80:60}),Object(o.createElement)("p",null,r)))}))}});