!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=6)}([function(t,e){!function(){t.exports=this.wp.element}()},function(t,e,n){var r=n(7),o=n(8),i=n(9),u=n(11);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||u()}},function(t,e){!function(){t.exports=this.wp.plugins}()},function(t,e){!function(){t.exports=this.wp.editPost}()},function(t,e){!function(){t.exports=this.wp.components}()},function(t,e){!function(){t.exports=this.wp.apiFetch}()},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(0),u=n(2),c=n(3),a=n(4),l=n(5),s=n.n(l);var f=function(){var t=Object(i.useState)(!1),e=o()(t,2),n=e[0],r=e[1],u=Object(i.useState)(!1),c=o()(u,2),l=c[0],f=c[1],p=Object(i.useState)("Send notification"),d=o()(p,2),b=d[0],m=d[1];return Object(i.createElement)("div",null,Object(i.createElement)(a.Button,{onClick:function(){return r(!0),f(!1),m("Sending notification..."),void s()({path:"/wpmercure/v1/post/"+wp.data.select("core/editor").getCurrentPostId(),method:"POST"}).then((function(t){wp.data.dispatch("core/notices").createNotice("success","Notification modify post send.",{id:"wpmercure-send",isDismissible:!0,type:"snackbar"}),r(!1),m("Send notification")}))},isPrimary:!0,isBusy:n,focus:l,disable:n},b),Object(i.createElement)("p",null,Object(i.createElement)("i",null,"Send a notification for a user who currently reading this post")))};Object(u.registerPlugin)("wpmercure-panel",{render:function(){return Object(i.createElement)(c.PluginDocumentSettingPanel,{name:"wpmercure-publish",title:"Mercure",className:"wpmercure-panel"},Object(i.createElement)(f,null))},icon:""})},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(t,e,n){var r=n(10);t.exports=function(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}}},function(t,e){t.exports=function(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}},function(t,e){t.exports=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.")}}]);
