this.nisje=this.nisje||{},this.nisje.pluginEvents=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=546)}({0:function(t,n){!function(){t.exports=this.wp.element}()},1:function(t,n){!function(){t.exports=this.wp.i18n}()},17:function(t,n){!function(){t.exports=this.wp.data}()},18:function(t,n,e){"use strict";function r(){return(r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}e.d(n,"a",(function(){return r}))},26:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(44);function o(t,n){if(null==t)return{};var e,o,i=Object(r.a)(t,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++)e=u[o],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}},35:function(t,n){!function(){t.exports=this.wp.apiFetch}()},38:function(t,n){!function(){t.exports=this.moment}()},44:function(t,n,e){"use strict";function r(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},5:function(t,n){!function(){t.exports=this.nisje.components}()},546:function(t,n,e){"use strict";e.r(n),e.d(n,"InviteEventMembersModal",(function(){return l})),e.d(n,"formatEventDate",(function(){return v}));var r=e(18),o=e(26),i=e(0),u=e(1),c=e(17),a=e(35),f=e.n(a),s=e(5);var l=function(t){var n=t.id,e=t.onRequestClose,a=Object(o.a)(t,["id","onRequestClose"]),l=Object(c.useDispatch)("nisje/notices").createInfoNotice;return Object(i.createElement)(s.UserListModal,Object(r.a)({submit:Object(u.__)("Invite"),handleSubmit:function(t){var r=t.map((function(t){return t.userId}));f()({path:"/wp/v2/dekode-event/invite",method:"POST",data:{user_ids:r,event_id:n}}).then((function(){e(),l("Invitations sent")}))},title:Object(u.__)("Invite"),onRequestClose:e},a))},p=e(38),d=e.n(p);function v(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=d()(t),r=e.format("D. MMMM YYYY"),o=!1,i=e.format("HH:mm");if("00:00"!==i&&(o=!0,r+=", ".concat(i)),n&&n!==t){var u=d()(n),c=u.format("HH:mm");e.isSame(n,"day")?(o||(r+=", ".concat(i)),r+=" — ".concat(c)):(o||"00:00"===u.format("HH:mm")||(r+=", ".concat(i)),r+=" — ".concat(u.format("D. MMMM. YYYY")),"00:00"!==c&&(r+=", ".concat(c)))}return r}}});