diff --git a/js/dist/admin.js.map b/js/dist/admin.js.map index f499859..da1872b 100644 --- a/js/dist/admin.js.map +++ b/js/dist/admin.js.map @@ -1 +1 @@ -{"version":3,"file":"admin.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDR,EAAwB,CAACc,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFf,EAAyBM,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,G,+BCL9D,MAAM,EAA+BC,OAAOC,KAAKC,OAAO,iBCAlD,EAA+BF,OAAOC,KAAKC,OAAO,+B,aCAxD,MAAM,EAA+BF,OAAOC,KAAKC,OAAO,a,aCIxDC,IAAAA,aAAAA,IAAqB,sBAAsB,WACzCA,IAAAA,cAAAA,IACO,sBACJC,gBAAgB,CACfC,QAAS,+BACTC,MAAOH,IAAAA,WAAAA,MAAqB,4CAC5BI,KAAM,YAEPC,mBACC,CACEC,KAAM,kBACNH,MAAOH,IAAAA,WAAAA,MAAqB,0CAC5BO,WAAY,aACZC,YAAY,GAEd,OACA,IAEDH,mBACC,CACEC,KAAM,uBACNH,MAAOH,IAAAA,WAAAA,MAAqB,yCAC5BO,WAAY,gBAEd,QACA,IAEDF,mBACC,CACEC,KAAM,wBACNH,MAAOH,IAAAA,WAAAA,MAAqB,8CAC5BO,WAAY,kBAEd,WACA,KAGJE,EAAAA,EAAAA,QAAOC,IAAAA,UAAsB,iBAAiB,SAACC,GAC7CA,EAAMC,IAAI,SAAU,CAClBC,KAAM,UACNV,MAAOH,IAAAA,WAAAA,MAAqB,0CAE/B,GACF,G","sources":["webpack://@webbinaro/flarum-calendar/webpack/bootstrap","webpack://@webbinaro/flarum-calendar/webpack/runtime/compat get default export","webpack://@webbinaro/flarum-calendar/webpack/runtime/define property getters","webpack://@webbinaro/flarum-calendar/webpack/runtime/hasOwnProperty shorthand","webpack://@webbinaro/flarum-calendar/webpack/runtime/make namespace object","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/extend']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['admin/components/BasicsPage']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['admin/app']\"","webpack://@webbinaro/flarum-calendar/./src/admin/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/BasicsPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/app'];","import { extend } from 'flarum/common/extend';\nimport BasicsPage from 'flarum/admin/components/BasicsPage';\nimport app from 'flarum/admin/app';\n\napp.initializers.add('webbinaro-calendar', () => {\n app.extensionData\n .for('webbinaro-calendar')\n .registerSetting({\n setting: 'webbinaro-calendar.hide_host',\n label: app.translator.trans('flarum-calendar.admin.settings.hide_host'),\n type: 'boolean',\n })\n .registerPermission(\n {\n icon: 'fas fa-calendar', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.view'), // Permission Label\n permission: 'event.view', // Actual permission name stored in database (and used when checking permission).\n allowGuest: true,\n },\n 'view', // Category permission will be added to on the grid\n 95 // Optional: Priority\n )\n .registerPermission(\n {\n icon: 'fas fa-calendar-plus', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.add'), // Permission Label\n permission: 'event.create', // Actual permission name stored in database (and used when checking permission).\n },\n 'start', // Category permission will be added to on the grid\n 95 // Optional: Priority\n )\n .registerPermission(\n {\n icon: 'fas fa-calendar-times', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.moderate'), // Permission Label\n permission: 'event.moderate', // Actual permission name stored in database (and used when checking permission).\n },\n 'moderate', // Category permission will be added to on the grid\n 95 // Optional: Priority\n );\n\n extend(BasicsPage.prototype, 'homePageItems', (items) => {\n items.add('events', {\n path: '/events',\n label: app.translator.trans('flarum-calendar.admin.basics.homepage'),\n });\n });\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","app","registerSetting","setting","label","type","registerPermission","icon","permission","allowGuest","extend","BasicsPage","items","add","path"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"admin.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GA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ack://@webbinaro/flarum-calendar/webpack/bootstrap","webpack://@webbinaro/flarum-calendar/webpack/runtime/compat get default export","webpack://@webbinaro/flarum-calendar/webpack/runtime/define property getters","webpack://@webbinaro/flarum-calendar/webpack/runtime/hasOwnProperty shorthand","webpack://@webbinaro/flarum-calendar/webpack/runtime/make namespace object","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/extend']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['admin/components/BasicsPage']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['admin/app']\"","webpack://@webbinaro/flarum-calendar/./src/admin/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/BasicsPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/app'];","import { extend } from 'flarum/common/extend';\nimport BasicsPage from 'flarum/admin/components/BasicsPage';\nimport app from 'flarum/admin/app';\n\napp.initializers.add('webbinaro-calendar', () => {\n app.extensionData\n .for('webbinaro-calendar')\n .registerSetting({\n setting: 'webbinaro-calendar.hide_host',\n label: app.translator.trans('flarum-calendar.admin.settings.hide_host'),\n type: 'boolean',\n })\n .registerPermission(\n {\n icon: 'fas fa-calendar', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.view'), // Permission Label\n permission: 'event.view', // Actual permission name stored in database (and used when checking permission).\n allowGuest: true,\n },\n 'view', // Category permission will be added to on the grid\n 95 // Optional: Priority\n )\n .registerPermission(\n {\n icon: 'fas fa-calendar-plus', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.add'), // Permission Label\n permission: 'event.create', // Actual permission name stored in database (and used when checking permission).\n },\n 'start', // Category permission will be added to on the grid\n 95 // Optional: Priority\n )\n .registerPermission(\n {\n icon: 'fas fa-calendar-times', // Font-Awesome Icon\n label: app.translator.trans('flarum-calendar.admin.permissions.moderate'), // Permission Label\n permission: 'event.moderate', // Actual permission name stored in database (and used when checking permission).\n },\n 'moderate', // Category permission will be added to on the grid\n 95 // Optional: Priority\n );\n\n extend(BasicsPage.prototype, 'homePageItems', (items) => {\n items.add('events', {\n path: '/events',\n label: app.translator.trans('flarum-calendar.admin.basics.homepage'),\n });\n });\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","app","registerSetting","setting","label","type","registerPermission","icon","permission","allowGuest","extend","BasicsPage","items","add","path"],"sourceRoot":""} \ No newline at end of file diff --git a/js/dist/forum.js b/js/dist/forum.js index a8689d9..aa850ab 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,3 @@ -(()=>{var t={195:(t,e,n)=>{t.exports=n(236)},236:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),i=new P(r||[]);return o._invoke=function(t,e,n){var r=d;return function(a,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=E(i,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=u(t,e,n);if("normal"===l.type){if(r=n.done?p:m,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(t,n,i),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",m="suspendedYield",f="executing",p="completed",h={};function v(){}function y(){}function b(){}var g={};l(g,o,(function(){return this}));var w=Object.getPrototypeOf,N=w&&w(w(k([])));N&&N!==n&&r.call(N,o)&&(g=N);var x=b.prototype=v.prototype=Object.create(g);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(a,o,i,s){var l=u(t[a],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(d).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;this._invoke=function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=u(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";function t(t,e,n,r,a,o,i){try{var s=t[o](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function e(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var i=e.apply(n,r);function s(e){t(i,a,o,s,l,"next",e)}function l(e){t(i,a,o,s,l,"throw",e)}s(void 0)}))}}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}n.r(r),n.d(r,{components:()=>ht,models:()=>vt,states:()=>yt,utils:()=>bt});var i=n(195),s=n.n(i);const l=flarum.core.compat["forum/app"];var c=n.n(l);const u=flarum.core.compat["common/components/Page"];var d=n.n(u);flarum.core.compat["common/utils/ItemList"];const f=flarum.core.compat["common/helpers/listItems"];var p=n.n(f);const h=flarum.core.compat["forum/components/IndexPage"];var v=n.n(h);function y(){return y=Object.assign||function(t){for(var e=1;e2}},fullcalendarDayGrid:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.7/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/daygrid"===t.name}))}},fullcalendarInteraction:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@6.1.7/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/interaction"===t.name}))}},fullcalendarList:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/list@6.1.7/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/list"===t.name}))}},flatpickr:{css:"https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css",js:"https://cdn.jsdelivr.net/npm/flatpickr",loaded:function(){return void 0!==window.flatpickr}},flatpickrLocale:{js:function(t){return"https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/"+t+".js"},loaded:function(t){return void 0!==window.flatpickr.l10ns[t]}}};function g(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{var t={648:(t,e,n)=>{var r=n(288).default;function a(){"use strict";t.exports=a=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function m(t,e,n,r){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),s=new L(r||[]);return i(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=m;var p={};function h(){}function v(){}function y(){}var b={};d(b,l,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==n&&o.call(w,l)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(a,i,s,l){var c=f(t[a],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}})}function C(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=E(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=f(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports},288:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},357:(t,e,n)=>{var r=n(648)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";function t(t,e,n,r,a,o,i){try{var s=t[o](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function e(e){return function(){var n=this,r=arguments;return new Promise((function(a,o){var i=e.apply(n,r);function s(e){t(i,a,o,s,l,"next",e)}function l(e){t(i,a,o,s,l,"throw",e)}s(void 0)}))}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}n.r(r),n.d(r,{components:()=>vt,models:()=>yt,states:()=>bt,utils:()=>gt});var i=n(357),s=n.n(i);const l=flarum.core.compat["forum/app"];var c=n.n(l);const u=flarum.core.compat["common/components/Page"];var d=n.n(u);flarum.core.compat["common/utils/ItemList"];const f=flarum.core.compat["common/helpers/listItems"];var p=n.n(f);const h=flarum.core.compat["forum/components/IndexPage"];var v=n.n(h);function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e2}},fullcalendarDayGrid:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.8/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/daygrid"===t.name}))}},fullcalendarInteraction:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@6.1.8/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/interaction"===t.name}))}},fullcalendarList:{js:"https://cdn.jsdelivr.net/npm/@fullcalendar/list@6.1.8/index.global.min.js",loaded:function(){return"undefined"!=typeof FullCalendar&&FullCalendar.globalPlugins.find((function(t){return"@fullcalendar/list"===t.name}))}},flatpickr:{css:"https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css",js:"https://cdn.jsdelivr.net/npm/flatpickr",loaded:function(){return void 0!==window.flatpickr}},flatpickrLocale:{js:function(t){return"https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/"+t+".js"},loaded:function(t){return void 0!==window.flatpickr.l10ns[t]}}};function g(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Page'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","const libs = {\n fullcalendarCore: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.7/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined',\n },\n fullcalendarLocales: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.7/locales-all.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalLocales.length > 2,\n },\n fullcalendarDayGrid: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.7/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/daygrid'),\n },\n fullcalendarInteraction: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@6.1.7/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/interaction'),\n },\n fullcalendarList: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/list@6.1.7/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/list'),\n },\n\n flatpickr: {\n css: 'https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css',\n js: 'https://cdn.jsdelivr.net/npm/flatpickr',\n loaded: () => typeof window.flatpickr !== 'undefined',\n },\n flatpickrLocale: {\n js: (locale) => `https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/${locale}.js`,\n loaded: (locale) => typeof window.flatpickr.l10ns[locale] !== 'undefined',\n },\n};\n\nexport default function dynamicallyLoadLib(lib, ...moreArgs) {\n if (Array.isArray(lib)) {\n return Promise.all(lib.map((l) => dynamicallyLoadLib(l)));\n }\n\n let libConf = {};\n\n // If the lib is an object\n if (typeof lib === 'object') {\n libConf = { ...lib };\n\n if (!libConf.loaded) {\n console.warn('dynamicallyLoadLib: No loaded function defined for lib', lib);\n return Promise.resolve();\n }\n }\n\n if (typeof lib === 'string') {\n // If lib is not in the libs object log a warning and return a resolved promise\n if (!libs[lib]) {\n console.warn('dynamicallyLoadLib: lib not found', lib);\n return Promise.resolve();\n }\n\n libConf = { ...libs[lib] };\n }\n\n if (Object.keys(libConf).length === 0) {\n console.warn('dynamicallyLoadLib: lib is not a string nor an valid object', lib);\n return Promise.resolve();\n }\n\n let loadPromises = [];\n\n if (libConf.loaded(...moreArgs)) {\n loadPromises.push(Promise.resolve());\n } else {\n if (libConf.css) {\n const css = Array.isArray(libConf.css) ? libConf.css : [libConf.css];\n css.forEach((href) => {\n const css = document.createElement('link');\n css.rel = 'stylesheet';\n css.href = href;\n document.head.appendChild(css);\n });\n }\n\n if (libConf.js) {\n if (typeof libConf.js === 'function') {\n libConf.js = libConf.js(...moreArgs);\n }\n\n const js = Array.isArray(libConf.js) ? libConf.js : [libConf.js];\n js.forEach((src) => {\n const script = document.createElement('script');\n script.src = src;\n document.head.appendChild(script);\n });\n }\n\n loadPromises.push(\n new Promise((resolve, reject) => {\n const interval = setInterval(() => {\n if (libConf.loaded(...moreArgs)) {\n clearInterval(interval);\n resolve();\n }\n }, 5);\n })\n );\n }\n\n return Promise.all(loadPromises);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Modal'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/avatar'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Alert'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/username'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/userOnline'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/Stream'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/states/ComposerState'];","import ComposerState from 'flarum/forum/states/ComposerState';\n\nexport default class CustomComposerState extends ComposerState {\n constructor() {\n super();\n\n /**\n * The composer's current position.\n *\n * @type {ComposerState.Position}\n */\n this.position = ComposerState.Position.NORMAL;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/TextEditor'];","import Modal from 'flarum/common/components/Modal';\nimport Alert from 'flarum/common/components/Alert';\nimport Button from 'flarum/common/components/Button';\nimport dynamicallyLoadLib from '../utils/dynamicallyLoadLib';\nimport Stream from 'flarum/common/utils/Stream';\nimport CustomComposerState from '../states/CustomComposerState';\nimport TextEditor from 'flarum/common/components/TextEditor';\nimport app from 'flarum/forum/app';\n\n/**\n * This builds event details based on a FullCalendar concept of object. CalendarPage talks to api, sends us FC payload\n */\nexport default class EditEventModal extends Modal {\n oninit(vnode) {\n super.oninit(vnode);\n\n this.name = Stream('');\n this.user = Stream('');\n this.description = Stream('');\n this.event_start = Stream();\n this.event_end = Stream();\n\n if (this.attrs.event) {\n const event = this.attrs.event;\n this.name(event.name());\n this.description(event.description());\n this.user(event.user());\n this.event_start(event.event_start());\n this.event_end(event.event_end() ? event.event_end() : event.event_start());\n }\n\n this.composerState = new CustomComposerState();\n }\n\n title() {\n return this.name()\n ? app.translator.trans('flarum-calendar.forum.modal.title_edit')\n : app.translator.trans('flarum-calendar.forum.modal.title_create');\n }\n\n className() {\n return 'EditEventsModal Modal--large';\n }\n\n content() {\n return [\n
\n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
,\n ];\n }\n\n async initDatePicker(vnode) {\n const userLang = app.translator.getLocale();\n\n await dynamicallyLoadLib('flatpickr');\n await dynamicallyLoadLib('flatpickrLocale', userLang);\n\n const locale = flatpickr.l10ns[userLang];\n\n flatpickr(vnode.dom, {\n enableTime: true,\n dateFormat: 'Y-m-d H:i',\n mode: 'range',\n locale,\n defaultDate: [flatpickr.parseDate(this.event_start(), 'Y-m-d h:i K'), flatpickr.parseDate(this.event_end(), 'Y-m-d h:i K')],\n inline: true,\n onChange: (dates) => {\n this.event_start(dates[0]);\n this.event_end(dates[1]);\n },\n });\n\n m.redraw();\n }\n\n async onsubmit(e) {\n e.preventDefault();\n if (!this.name() || !this.description()) {\n app.alerts.show(Alert, { type: 'error' }, app.translator.trans('flarum-calendar.forum.modal.requirement_message'));\n return;\n }\n if (!this.attrs.event) {\n this.attrs.event = app.store.createRecord('events');\n }\n\n await this.attrs.event.save({\n name: this.name(),\n description: this.description(),\n event_start: this.event_start(),\n event_end: this.event_end(),\n });\n\n this.hide();\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/fullTime'];","import Component from 'flarum/common/Component';\nimport Alert from 'flarum/common/components/Alert';\nimport Button from 'flarum/common/components/Button';\nimport Link from 'flarum/common/components/Link';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport EditEventModal from './EditEventModal';\nimport fullTime from 'flarum/common/helpers/fullTime';\nimport app from 'flarum/forum/app';\n\nexport default class EventFragment extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n }\n\n title() {\n return this.attrs.event.name();\n }\n\n className() {\n return 'EventTeaser Modal--small';\n }\n\n view() {\n return (\n
\n

\n {!app.forum.attribute('webbinaro-calendar.hide_host') && (\n

\n {app.translator.trans('flarum-calendar.forum.event.hosted_by')}{' '}\n \n {userOnline(this.attrs.event.user())}\n {username(this.attrs.event.user())}\n \n

\n )}\n

\n {app.translator.trans('flarum-calendar.forum.event.starts')} {fullTime(this.attrs.event.event_start())}
\n {app.translator.trans('flarum-calendar.forum.event.ends')} {fullTime(this.attrs.event.event_end())}\n

\n {app.session.user && (app.session.user.canModerateEvents() || this.attrs.event.user().id() === app.session.user.id()) && (\n
\n
\n )}\n
\n );\n }\n\n oncreate(vnode) {\n const descElement = document.getElementById('eventdescription');\n s9e.TextFormatter.preview(this.attrs.event.description(), descElement);\n }\n\n editLaunch() {\n app.modal.show(EditEventModal, { event: this.attrs.event });\n }\n\n deleteEvent() {\n if (!confirm(app.translator.trans('flarum-calendar.forum.event.confirm_delete'))) {\n return;\n }\n this.attrs.event.delete().then(() => {\n app.alerts.show(Alert, { type: 'success' }, app.translator.trans('flarum-calendar.forum.event.deleted'));\n m.route.set(app.route('advevents'));\n if (this.attrs.modal) {\n this.attrs.modal.hide();\n }\n });\n }\n}\n","import Modal from 'flarum/common/components/Modal';\nimport Button from 'flarum/common/components/Button';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport avatar from 'flarum/common/helpers/avatar';\nimport EventFragment from './EventFragment';\nimport app from 'flarum/forum/app';\nimport Alert from 'flarum/common/components/Alert';\n\n/**\n * This is intended as a \"teaser\" to link to full event page\n */\nexport default class EventTeaser extends Modal {\n oninit(vnode) {\n super.oninit(vnode);\n }\n\n title() {\n return this.attrs.event.name();\n }\n\n /*\n * Override parent modal so we can have avatar in title bar\n */\n view() {\n if (this.alertAttrs) {\n this.alertAttrs.dismissible = false;\n }\n\n return [\n
\n
\n {this.constructor.isDismissible ? (\n
\n
\n ) : (\n ''\n )}\n\n
\n
\n
\n

\n {this.title()}\n

\n
\n
{avatar(this.attrs.event.user())}
\n
\n
\n\n {this.alertAttrs && (\n
\n \n
\n )}\n
\n \n

\n {app.translator.trans('flarum-calendar.forum.event.details')}\n

\n
\n
\n
\n
,\n ];\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/LogInModal'];","import app from 'flarum/forum/app';\nimport Page from 'flarum/common/components/Page';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport listItems from 'flarum/common/helpers/listItems';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport dynamicallyLoadLib from '../utils/dynamicallyLoadLib';\nimport EventTeaser from './EventTeaser';\nimport Button from 'flarum/common/components/Button';\nimport EditEventModal from './EditEventModal';\nimport LogInModal from 'flarum/forum/components/LogInModal';\n\nexport default class CalendarPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n\n app.history.push('advevents');\n this.bodyClass = 'App--calendar';\n app.setTitle(app.translator.trans('flarum-calendar.forum.button.landing'));\n }\n\n view() {\n return (\n
\n {IndexPage.prototype.hero()}\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n );\n }\n\n /**\n * Build an item list for the sidebar of the index page. By default this is a\n * \"New Discussion\" button, and then a DropdownSelect component containing a\n * list of navigation items.\n *\n * @return {ItemList}\n */\n sidebarItems() {\n const items = IndexPage.prototype.sidebarItems();\n if (app.session.user) {\n if (app.session.user.canStartEvents()) {\n items.setContent(\n 'newDiscussion',\n \n {app.translator.trans('flarum-calendar.forum.button.create')}\n \n );\n } else {\n items.remove('newDiscussion');\n }\n } else {\n items.setContent(\n 'newDiscussion',\n \n {app.translator.trans('flarum-calendar.forum.button.login')}\n \n );\n }\n return items;\n }\n\n oncreate(vnode) {\n this.renderCalendar(vnode);\n }\n\n onupdate(vnode) {\n this.renderCalendar(vnode);\n }\n\n async renderCalendar(vnode) {\n await dynamicallyLoadLib('fullcalendarCore');\n await dynamicallyLoadLib(['fullcalendarLocales', 'fullcalendarDayGrid', 'fullcalendarInteraction', 'fullcalendarList']);\n\n const calendarEl = document.getElementById('calendar');\n const openModal = this.openCreateModal.bind(this);\n\n // console.debug(`Loading Full Calendar with locale: ${app.translator.getLocale()}`);\n const calendar = new FullCalendar.Calendar(calendarEl, {\n locale: app.translator.getLocale(), // the initial locale\n headerToolbar: { center: 'dayGridMonth,listYear' }, // buttons for switching between views\n initialView: 'dayGridMonth',\n eventClick: function (info) {\n info.jsEvent.preventDefault();\n for (var event of this.events) {\n if (event.id() === info.event.extendedProps.eventId) {\n app.modal.show(EventTeaser, { event: event });\n break;\n }\n }\n }.bind(this),\n dateClick: function (info) {\n openModal(info);\n },\n events: function (info, successCallback, failureCallbacks) {\n app.store.find('events', { start: info.start.toISOString(), end: info.end.toISOString(), sort: 'event_start' }).then((results) => {\n this.events = results;\n successCallback(results);\n });\n }.bind(this),\n eventDataTransform: this.flarumToFullCalendarEvent,\n });\n calendar.render();\n }\n\n openCreateModal(info) {\n if (!app.session.user.canStartEvents()) {\n return;\n }\n\n if (app.session.user != undefined) {\n if (info.dateStr) {\n app.modal.show(EditEventModal, { withStart: info.dateStr });\n } else {\n app.modal.show(EditEventModal);\n }\n } else {\n app.modal.show(LogInModal);\n }\n }\n\n flarumToFullCalendarEvent(eventData) {\n return {\n title: eventData.name(),\n end: eventData.event_end(),\n start: eventData.event_start(),\n extendedProps: {\n description: eventData.description(),\n user: eventData.user(),\n eventId: eventData.id(),\n },\n // for link awareness each event includes link evem though we use event modal\n url: app.route('advevent', { id: eventData.id() }),\n };\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/AffixedSidebar'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LoadingIndicator'];","import Page from 'flarum/common/components/Page';\nimport AffixedSidebar from 'flarum/forum/components/AffixedSidebar';\nimport LoadingIndicator from 'flarum/common/components/LoadingIndicator';\nimport listItems from 'flarum/common/helpers/listItems';\nimport EventFragment from './EventFragment';\nimport app from 'flarum/forum/app';\nimport CalendarPage from './CalendarPage';\n\n/**\n * The `EventPage` component shows a individual event details\n *\n * @abstract\n */\nexport default class EventPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n this.event = null;\n\n const event = app.preloadedApiDocument();\n if (event) {\n this.show(event);\n } else {\n const eventId = m.route.param('id');\n app.store.find('events', eventId).then(this.show.bind(this));\n }\n\n app.history.push('advevent');\n this.bodyClass = 'App--event';\n }\n\n show(event) {\n this.event = event;\n this.user = event.user();\n app.setTitle(event.name());\n m.redraw();\n }\n\n view() {\n return (\n
\n {this.event ? (\n
\n
\n \n \n \n
\n

{this.event.name()}

\n \n
\n
\n
\n ) : (\n \n )}\n
\n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Model'];","import Model from 'flarum/common/Model';\n\nexport default class Event extends Model {\n name = Model.attribute('name');\n description = Model.attribute('description');\n createdAt = Model.attribute('createdAt', Model.transformDate);\n event_start = Model.attribute('event_start', Model.transformDate);\n event_end = Model.attribute('event_end', Model.transformDate);\n user = Model.hasOne('user');\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app.js'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserCard'];","import Component from 'flarum/common/Component';\nimport Link from 'flarum/common/components/Link';\nimport UserCard from 'flarum/forum/components/UserCard';\nimport avatar from 'flarum/common/helpers/avatar';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport listItems from 'flarum/common/helpers/listItems';\nimport app from 'flarum/forum/app';\n\n/**\n * The `PostUser` component shows the avatar and username of a post's author.\n *\n * ### Props\n *\n * - `post`\n */\nexport default class EventUser extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n\n /**\n * Whether or not the user hover card is visible.\n *\n * @type {Boolean}\n */\n this.cardVisible = false;\n }\n\n view() {\n const post = this.attrs.post;\n const user = this.attrs.user;\n\n if (!user) {\n return (\n
\n

\n {avatar(user, { className: 'PostUser-avatar' })} {username(user)}\n

\n
\n );\n }\n\n let card = null;\n\n if (!post.isHidden() && this.cardVisible) {\n card = ;\n }\n\n return (\n
\n

\n \n {avatar(user, { className: 'PostUser-avatar' })}\n {userOnline(user)}\n {username(user)}\n \n

\n
    {listItems(user.badges().toArray())}
\n {card}\n
\n );\n }\n\n oncreate(vnode) {\n super.oncreate(vnode);\n\n let timeout;\n\n this.$()\n .on('mouseover', 'h3 a, .UserCard', () => {\n clearTimeout(timeout);\n timeout = setTimeout(this.showCard.bind(this), 500);\n })\n .on('mouseout', 'h3 a, .UserCard', () => {\n clearTimeout(timeout);\n timeout = setTimeout(this.hideCard.bind(this), 250);\n });\n }\n\n /**\n * Show the user card.\n */\n showCard() {\n this.cardVisible = true;\n\n m.redraw();\n\n setTimeout(() => this.$('.UserCard').addClass('in'));\n }\n\n /**\n * Hide the user card.\n */\n hideCard() {\n this.$('.UserCard')\n .removeClass('in')\n .one('transitionend webkitTransitionEnd oTransitionEnd', () => {\n this.cardVisible = false;\n m.redraw();\n });\n }\n}\n","import CalendarPage from './CalendarPage';\nimport EditEventModal from './EditEventModal';\nimport EventFragment from './EventFragment';\nimport EventPage from './EventPage';\nimport EventTeaser from './EventTeaser';\nimport EventUser from './EventUser';\n\nexport const components = {\n CalendarPage: CalendarPage,\n EditEventModal: EditEventModal,\n EventFragment: EventFragment,\n EventPage: EventPage,\n EventTeaser: EventTeaser,\n EventUser: EventUser,\n};\n","import Event from './Event';\n\nexport const models = {\n Event: Event,\n};\n","import CustomComposerState from './CustomComposerState';\n\nexport const states = {\n CustomComposerState: CustomComposerState,\n};\n","import dynamicallyLoadLib from './dynamicallyLoadLib';\n\nexport const utils = {\n dynamicallyLoadLib: dynamicallyLoadLib,\n};\n","import CalendarPage from './components/CalendarPage.js';\nimport EventPage from './components/EventPage.js';\n\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Event from './models/Event.js';\nimport Model from 'flarum/common/Model';\nimport app from 'flarum/forum/app.js';\n\napp.initializers.add('webbinaro-calendar', () => {\n app.routes.advevents = { path: '/events', component: CalendarPage };\n app.routes.advevent = { path: '/events/:id', component: EventPage };\n\n // Allows easy route generation by passing an event from components (see EventFragment)\n app.route.advevent = (event) => app.route('advevent', { id: event.id() });\n\n app.store.models.events = Event;\n app.store.models.users.prototype.canModerateEvents = Model.attribute('canModerateEvents');\n app.store.models.users.prototype.canStartEvents = Model.attribute('canStartEvents');\n app.store.models.users.prototype.canViewEvents = Model.attribute('canViewEvents');\n\n // Add events to side nav\n extend(IndexPage.prototype, 'navItems', function (items) {\n items.add(\n 'events',\n \n {app.translator.trans('flarum-calendar.forum.button.landing')}\n ,\n 50\n );\n return items;\n });\n});\n\nexport * from './components';\nexport * from './models';\nexport * from './states';\nexport * from './utils';\n"],"names":["module","exports","runtime","undefined","Op","Object","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","key","value","defineProperty","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","state","GenStateSuspendedStart","method","arg","GenStateExecuting","Error","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","done","GenStateSuspendedYield","makeInvokeMethod","fn","call","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","this","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","AsyncIterator","PromiseImpl","invoke","resolve","reject","result","__await","then","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","displayName","isGeneratorFunction","genFun","ctor","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","keys","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","globalThis","Function","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","get","prop","r","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","arguments","apply","_setPrototypeOf","p","_inheritsLoose","subClass","superClass","flarum","core","compat","_extends","assign","target","source","libs","fullcalendarCore","js","loaded","FullCalendar","fullcalendarLocales","globalLocales","fullcalendarDayGrid","globalPlugins","find","fullcalendarInteraction","fullcalendarList","flatpickr","css","window","flatpickrLocale","locale","l10ns","dynamicallyLoadLib","lib","moreArgs","Array","isArray","all","map","l","libConf","console","warn","loadPromises","href","document","createElement","rel","head","appendChild","src","script","interval","setInterval","clearInterval","CustomComposerState","position","ComposerState","EditEventModal","oninit","vnode","Stream","user","description","event_start","event_end","attrs","event","composerState","title","app","className","content","bidi","style","oncreate","initDatePicker","bind","class","disabled","loading","onchange","placeholder","composer","userLang","dom","enableTime","dateFormat","mode","defaultDate","parseDate","inline","onChange","dates","m","redraw","onsubmit","e","preventDefault","Alert","save","hide","Modal","EventFragment","view","id","userOnline","username","fullTime","icon","onclick","editLaunch","deleteEvent","descElement","getElementById","s9e","TextFormatter","preview","confirm","route","set","modal","Component","EventTeaser","alertAttrs","dismissible","isDismissible","avatar","CalendarPage","bodyClass","IndexPage","listItems","sidebarItems","toArray","items","setContent","itemClassName","openCreateModal","remove","renderCalendar","onupdate","calendarEl","openModal","Calendar","headerToolbar","center","initialView","eventClick","jsEvent","events","extendedProps","eventId","dateClick","successCallback","failureCallbacks","start","toISOString","end","sort","results","eventDataTransform","flarumToFullCalendarEvent","render","dateStr","withStart","LogInModal","eventData","url","Page","EventPage","show","param","Event","Model","createdAt","EventUser","cardVisible","post","card","isHidden","controlsButtonClassName","badges","timeout","$","on","clearTimeout","setTimeout","showCard","hideCard","addClass","removeClass","one","components","models","states","utils","path","component","extend","add"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":";2BAAA,IAAIA,EAAUC,EAAAA,KAAAA,QACd,SAASC,IACP,aACAC,EAAOC,QAAUF,EAAsB,WACrC,OAAOE,CACT,EAAGD,EAAOC,QAAQC,YAAa,EAAMF,EAAOC,QAAiB,QAAID,EAAOC,QACxE,IAAIA,EAAU,CAAC,EACbE,EAAKC,OAAOC,UACZC,EAASH,EAAGI,eACZC,EAAiBJ,OAAOI,gBAAkB,SAAUC,EAAKC,EAAKC,GAC5DF,EAAIC,GAAOC,EAAKC,KAClB,EACAC,EAAU,mBAAqBC,OAASA,OAAS,CAAC,EAClDC,EAAiBF,EAAQG,UAAY,aACrCC,EAAsBJ,EAAQK,eAAiB,kBAC/CC,EAAoBN,EAAQO,aAAe,gBAC7C,SAASC,EAAOZ,EAAKC,EAAKE,GACxB,OAAOR,OAAOI,eAAeC,EAAKC,EAAK,CACrCE,MAAOA,EACPU,YAAY,EACZC,cAAc,EACdC,UAAU,IACRf,EAAIC,EACV,CACA,IACEW,EAAO,CAAC,EAAG,GACb,CAAE,MAAOI,GACPJ,EAAS,SAAgBZ,EAAKC,EAAKE,GACjC,OAAOH,EAAIC,GAAOE,CACpB,CACF,CACA,SAASc,EAAKC,EAASC,EAASC,EAAMC,GACpC,IAAIC,EAAiBH,GAAWA,EAAQvB,qBAAqB2B,EAAYJ,EAAUI,EACjFC,EAAY7B,OAAO8B,OAAOH,EAAe1B,WACzC8B,EAAU,IAAIC,EAAQN,GAAe,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,CApF2B,CAASpG,KCT1BwH,GAAa,CACxBxF,aAAcA,GACd9G,eAAgBA,EAChByD,cAAeA,EACf+G,UAAWA,GACXzF,YAAaA,EACbmG,UAAWA,ICXAqB,GAAS,CACpB1B,MAAOA,ICDI2B,GAAS,CACpB7M,oBAAqBA,GCDV8M,GAAQ,CACnB1O,mBAAoBA,GCOtB+C,KAAAA,aAAAA,IAAqB,sBAAsB,WACzCA,KAAAA,OAAAA,UAAuB,CAAE4L,KAAM,UAAWC,UAAW7F,IACrDhG,KAAAA,OAAAA,SAAsB,CAAE4L,KAAM,cAAeC,UAAWnC,IAGxD1J,KAAAA,MAAAA,SAAqB,SAACH,GAAK,OAAKG,KAAAA,MAAU,WAAY,CAAE8C,GAAIjD,EAAMiD,MAAO,EAEzE9C,KAAAA,MAAAA,OAAAA,OAA0B+J,GAC1B/J,KAAAA,MAAAA,OAAAA,MAAAA,UAAAA,kBAAqDkK,KAAAA,UAAgB,qBACrElK,KAAAA,MAAAA,OAAAA,MAAAA,UAAAA,eAAkDkK,KAAAA,UAAgB,kBAClElK,KAAAA,MAAAA,OAAAA,MAAAA,UAAAA,cAAiDkK,KAAAA,UAAgB,kBAGjE4B,EAAAA,GAAAA,QAAO3F,IAAAA,UAAqB,YAAY,SAAUI,GAQhD,OAPAA,EAAMwF,IACJ,SACA5L,EAACmE,IAAU,CAACnB,KAAK,sBAAsBlF,KAAM+B,KAAAA,MAAU,cACpDA,KAAAA,WAAAA,MAAqB,yCAExB,IAEKuG,CACT,GACF","sources":["webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/typeof.js","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/regenerator/index.js","webpack://@webbinaro/flarum-calendar/webpack/bootstrap","webpack://@webbinaro/flarum-calendar/webpack/runtime/compat get default export","webpack://@webbinaro/flarum-calendar/webpack/runtime/define property getters","webpack://@webbinaro/flarum-calendar/webpack/runtime/hasOwnProperty shorthand","webpack://@webbinaro/flarum-calendar/webpack/runtime/make namespace object","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/app']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/Page']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/utils/ItemList']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/helpers/listItems']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/components/IndexPage']\"","webpack://@webbinaro/flarum-calendar/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@webbinaro/flarum-calendar/./src/forum/utils/dynamicallyLoadLib.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/Modal']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/Button']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/LinkButton']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/helpers/avatar']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/Component']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/Alert']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/Link']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/helpers/username']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/helpers/userOnline']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/utils/Stream']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/states/ComposerState']\"","webpack://@webbinaro/flarum-calendar/./src/forum/states/CustomComposerState.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/TextEditor']\"","webpack://@webbinaro/flarum-calendar/./src/forum/components/EditEventModal.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/helpers/fullTime']\"","webpack://@webbinaro/flarum-calendar/./src/forum/components/EventFragment.js","webpack://@webbinaro/flarum-calendar/./src/forum/components/EventTeaser.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/components/LogInModal']\"","webpack://@webbinaro/flarum-calendar/./src/forum/states/CalendarState.js","webpack://@webbinaro/flarum-calendar/./src/forum/components/CalendarPage.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/components/AffixedSidebar']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/components/LoadingIndicator']\"","webpack://@webbinaro/flarum-calendar/./src/forum/components/EventPage.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/extend']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['common/Model']\"","webpack://@webbinaro/flarum-calendar/./src/forum/models/Event.js","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/app.js']\"","webpack://@webbinaro/flarum-calendar/external root \"flarum.core.compat['forum/components/UserCard']\"","webpack://@webbinaro/flarum-calendar/./src/forum/components/EventUser.js","webpack://@webbinaro/flarum-calendar/./src/forum/components/index.js","webpack://@webbinaro/flarum-calendar/./src/forum/models/index.js","webpack://@webbinaro/flarum-calendar/./src/forum/states/index.js","webpack://@webbinaro/flarum-calendar/./src/forum/utils/index.js","webpack://@webbinaro/flarum-calendar/./src/forum/index.js"],"sourcesContent":["var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var methodName = context.method,\n method = delegate.iterator[methodName];\n if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) keys.push(key);\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Page'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/ItemList'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/listItems'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/IndexPage'];","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","const libs = {\n fullcalendarCore: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.8/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined',\n },\n fullcalendarLocales: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.8/locales-all.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalLocales.length > 2,\n },\n fullcalendarDayGrid: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.8/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/daygrid'),\n },\n fullcalendarInteraction: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/interaction@6.1.8/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/interaction'),\n },\n fullcalendarList: {\n js: 'https://cdn.jsdelivr.net/npm/@fullcalendar/list@6.1.8/index.global.min.js',\n loaded: () => typeof FullCalendar !== 'undefined' && FullCalendar.globalPlugins.find((p) => p.name === '@fullcalendar/list'),\n },\n\n flatpickr: {\n css: 'https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css',\n js: 'https://cdn.jsdelivr.net/npm/flatpickr',\n loaded: () => typeof window.flatpickr !== 'undefined',\n },\n flatpickrLocale: {\n js: (locale) => `https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/${locale}.js`,\n loaded: (locale) => typeof window.flatpickr.l10ns[locale] !== 'undefined',\n },\n};\n\nexport default function dynamicallyLoadLib(lib, ...moreArgs) {\n if (Array.isArray(lib)) {\n return Promise.all(lib.map((l) => dynamicallyLoadLib(l)));\n }\n\n let libConf = {};\n\n // If the lib is an object\n if (typeof lib === 'object') {\n libConf = { ...lib };\n\n if (!libConf.loaded) {\n console.warn('dynamicallyLoadLib: No loaded function defined for lib', lib);\n return Promise.resolve();\n }\n }\n\n if (typeof lib === 'string') {\n // If lib is not in the libs object log a warning and return a resolved promise\n if (!libs[lib]) {\n console.warn('dynamicallyLoadLib: lib not found', lib);\n return Promise.resolve();\n }\n\n libConf = { ...libs[lib] };\n }\n\n if (Object.keys(libConf).length === 0) {\n console.warn('dynamicallyLoadLib: lib is not a string nor an valid object', lib);\n return Promise.resolve();\n }\n\n let loadPromises = [];\n\n if (libConf.loaded(...moreArgs)) {\n loadPromises.push(Promise.resolve());\n } else {\n if (libConf.css) {\n const css = Array.isArray(libConf.css) ? libConf.css : [libConf.css];\n css.forEach((href) => {\n const css = document.createElement('link');\n css.rel = 'stylesheet';\n css.href = href;\n document.head.appendChild(css);\n });\n }\n\n if (libConf.js) {\n if (typeof libConf.js === 'function') {\n libConf.js = libConf.js(...moreArgs);\n }\n\n const js = Array.isArray(libConf.js) ? libConf.js : [libConf.js];\n js.forEach((src) => {\n const script = document.createElement('script');\n script.src = src;\n document.head.appendChild(script);\n });\n }\n\n loadPromises.push(\n new Promise((resolve, reject) => {\n const interval = setInterval(() => {\n if (libConf.loaded(...moreArgs)) {\n clearInterval(interval);\n resolve();\n }\n }, 5);\n })\n );\n }\n\n return Promise.all(loadPromises);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Modal'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LinkButton'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/avatar'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Component'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Alert'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Link'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/username'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/userOnline'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/Stream'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/states/ComposerState'];","import ComposerState from 'flarum/forum/states/ComposerState';\n\nexport default class CustomComposerState extends ComposerState {\n constructor() {\n super();\n\n /**\n * The composer's current position.\n *\n * @type {ComposerState.Position}\n */\n this.position = ComposerState.Position.NORMAL;\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/TextEditor'];","import Modal from 'flarum/common/components/Modal';\nimport Alert from 'flarum/common/components/Alert';\nimport Button from 'flarum/common/components/Button';\nimport dynamicallyLoadLib from '../utils/dynamicallyLoadLib';\nimport Stream from 'flarum/common/utils/Stream';\nimport CustomComposerState from '../states/CustomComposerState';\nimport TextEditor from 'flarum/common/components/TextEditor';\nimport app from 'flarum/forum/app';\n\n/**\n * This builds event details based on a FullCalendar concept of object. CalendarPage talks to api, sends us FC payload\n */\nexport default class EditEventModal extends Modal {\n oninit(vnode) {\n super.oninit(vnode);\n\n this.name = Stream('');\n this.user = Stream('');\n this.description = Stream('');\n this.event_start = Stream();\n this.event_end = Stream();\n\n if (this.attrs.event) {\n const event = this.attrs.event;\n this.name(event.name());\n this.description(event.description());\n this.user(event.user());\n this.event_start(event.event_start());\n this.event_end(event.event_end() ? event.event_end() : event.event_start());\n }\n\n this.composerState = new CustomComposerState();\n }\n\n title() {\n return this.name()\n ? app.translator.trans('flarum-calendar.forum.modal.title_edit')\n : app.translator.trans('flarum-calendar.forum.modal.title_create');\n }\n\n className() {\n return 'EditEventsModal Modal--large';\n }\n\n content() {\n return [\n
\n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n \n
\n \n
\n
\n
\n \n
\n
,\n ];\n }\n\n async initDatePicker(vnode) {\n const userLang = app.translator.getLocale();\n\n await dynamicallyLoadLib('flatpickr');\n await dynamicallyLoadLib('flatpickrLocale', userLang);\n\n const locale = flatpickr.l10ns[userLang];\n\n flatpickr(vnode.dom, {\n enableTime: true,\n dateFormat: 'Y-m-d H:i',\n mode: 'range',\n locale,\n defaultDate: [flatpickr.parseDate(this.event_start(), 'Y-m-d h:i K'), flatpickr.parseDate(this.event_end(), 'Y-m-d h:i K')],\n inline: true,\n onChange: (dates) => {\n this.event_start(dates[0]);\n this.event_end(dates[1]);\n },\n });\n\n m.redraw();\n }\n\n async onsubmit(e) {\n e.preventDefault();\n if (!this.name() || !this.description()) {\n app.alerts.show(Alert, { type: 'error' }, app.translator.trans('flarum-calendar.forum.modal.requirement_message'));\n return;\n }\n if (!this.attrs.event) {\n this.attrs.event = app.store.createRecord('events');\n }\n\n await this.attrs.event.save({\n name: this.name(),\n description: this.description(),\n event_start: this.event_start(),\n event_end: this.event_end(),\n });\n\n this.attrs.refresh();\n\n this.hide();\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/helpers/fullTime'];","import Component from 'flarum/common/Component';\nimport Alert from 'flarum/common/components/Alert';\nimport Button from 'flarum/common/components/Button';\nimport Link from 'flarum/common/components/Link';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport EditEventModal from './EditEventModal';\nimport fullTime from 'flarum/common/helpers/fullTime';\nimport app from 'flarum/forum/app';\n\nexport default class EventFragment extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n }\n\n title() {\n return this.attrs.event.name();\n }\n\n className() {\n return 'EventTeaser Modal--small';\n }\n\n view() {\n return (\n
\n

\n {!app.forum.attribute('webbinaro-calendar.hide_host') && (\n

\n {app.translator.trans('flarum-calendar.forum.event.hosted_by')}{' '}\n \n {userOnline(this.attrs.event.user())}\n {username(this.attrs.event.user())}\n \n

\n )}\n

\n {app.translator.trans('flarum-calendar.forum.event.starts')} {fullTime(this.attrs.event.event_start())}
\n {app.translator.trans('flarum-calendar.forum.event.ends')} {fullTime(this.attrs.event.event_end())}\n

\n {app.session.user && (app.session.user.canModerateEvents() || this.attrs.event.user().id() === app.session.user.id()) && (\n
\n
\n )}\n
\n );\n }\n\n oncreate(vnode) {\n const descElement = document.getElementById('eventdescription');\n s9e.TextFormatter.preview(this.attrs.event.description(), descElement);\n }\n\n editLaunch() {\n app.modal.show(EditEventModal, { event: this.attrs.event, refresh: app.calendarState.refresh.bind(app.calendarState) });\n }\n\n deleteEvent() {\n if (!confirm(app.translator.trans('flarum-calendar.forum.event.confirm_delete'))) {\n return;\n }\n this.attrs.event.delete().then(() => {\n app.alerts.show(Alert, { type: 'success' }, app.translator.trans('flarum-calendar.forum.event.deleted'));\n m.route.set(app.route('advevents'));\n if (this.attrs.modal) {\n this.attrs.modal.hide();\n }\n });\n }\n}\n","import Modal from 'flarum/common/components/Modal';\nimport Button from 'flarum/common/components/Button';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport avatar from 'flarum/common/helpers/avatar';\nimport EventFragment from './EventFragment';\nimport app from 'flarum/forum/app';\nimport Alert from 'flarum/common/components/Alert';\n\n/**\n * This is intended as a \"teaser\" to link to full event page\n */\nexport default class EventTeaser extends Modal {\n oninit(vnode) {\n super.oninit(vnode);\n }\n\n title() {\n return this.attrs.event.name();\n }\n\n /*\n * Override parent modal so we can have avatar in title bar\n */\n view() {\n if (this.alertAttrs) {\n this.alertAttrs.dismissible = false;\n }\n\n return [\n
\n
\n {this.constructor.isDismissible ? (\n
\n
\n ) : (\n ''\n )}\n\n
\n
\n
\n

\n {this.title()}\n

\n
\n
{avatar(this.attrs.event.user())}
\n
\n
\n\n {this.alertAttrs && (\n
\n \n
\n )}\n
\n \n

\n {app.translator.trans('flarum-calendar.forum.event.details')}\n

\n
\n
\n
\n
,\n ];\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/LogInModal'];","import app from 'flarum/forum/app';\n\nexport default class CalendarState {\n constructor(calendar, calendarPage) {\n this.calendar = calendar;\n this.events = null;\n this.info = null;\n }\n\n refresh(clear = true) {\n if (clear) {\n this.events = null;\n this.info = null;\n }\n\n this.calendar.refetchEvents();\n }\n\n async getEvents(info, successCallback, failureCallbacks) {\n if (info && ((this.info?.startStr != info.startStr && this.info?.endStr != info.endStr) || !this.events)) {\n this.info = info;\n this.successCallback = successCallback;\n await this.fetchEvents(info, successCallback, failureCallbacks);\n }\n\n return this.events || [];\n }\n\n async fetchEvents(info, successCallback, failureCallbacks) {\n const results = await app.store.find('events', {\n start: info.start.toISOString(),\n end: info.end.toISOString(),\n sort: 'event_start',\n });\n\n this.events = results;\n successCallback(results);\n }\n}\n","import app from 'flarum/forum/app';\nimport Page from 'flarum/common/components/Page';\nimport ItemList from 'flarum/common/utils/ItemList';\nimport listItems from 'flarum/common/helpers/listItems';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport dynamicallyLoadLib from '../utils/dynamicallyLoadLib';\nimport EventTeaser from './EventTeaser';\nimport Button from 'flarum/common/components/Button';\nimport EditEventModal from './EditEventModal';\nimport LogInModal from 'flarum/forum/components/LogInModal';\nimport CalendarState from '../states/CalendarState';\n\nexport default class CalendarPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n\n app.history.push('advevents');\n this.bodyClass = 'App--calendar';\n app.setTitle(app.translator.trans('flarum-calendar.forum.button.landing'));\n }\n\n view() {\n return (\n
\n {IndexPage.prototype.hero()}\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n );\n }\n\n /**\n * Build an item list for the sidebar of the index page. By default this is a\n * \"New Discussion\" button, and then a DropdownSelect component containing a\n * list of navigation items.\n *\n * @return {ItemList}\n */\n sidebarItems() {\n const items = IndexPage.prototype.sidebarItems();\n if (app.session.user) {\n if (app.session.user.canStartEvents()) {\n items.setContent(\n 'newDiscussion',\n \n {app.translator.trans('flarum-calendar.forum.button.create')}\n \n );\n } else {\n items.remove('newDiscussion');\n }\n } else {\n items.setContent(\n 'newDiscussion',\n \n {app.translator.trans('flarum-calendar.forum.button.login')}\n \n );\n }\n return items;\n }\n\n oncreate(vnode) {\n this.renderCalendar(vnode);\n }\n\n onupdate(vnode) {\n this.state.refresh(false);\n }\n\n async renderCalendar(vnode) {\n await dynamicallyLoadLib('fullcalendarCore');\n await dynamicallyLoadLib(['fullcalendarLocales', 'fullcalendarDayGrid', 'fullcalendarInteraction', 'fullcalendarList']);\n\n const calendarEl = document.getElementById('calendar');\n const openModal = this.openCreateModal.bind(this);\n\n // console.debug(`Loading Full Calendar with locale: ${app.translator.getLocale()}`);\n const calendar = new FullCalendar.Calendar(calendarEl, {\n locale: app.translator.getLocale(), // the initial locale\n headerToolbar: { center: 'dayGridMonth,listYearFromToday' }, // buttons for switching between views\n initialView: 'dayGridMonth',\n views: {\n listYearFromToday: {\n type: 'list',\n visibleRange: function (currentDate) {\n // Generate a new date for manipulating in the next step\n var startDate = new Date(currentDate.valueOf());\n var endDate = new Date(currentDate.valueOf());\n\n // Adjust the end date to one year into the future\n endDate.setFullYear(endDate.getFullYear() + 1);\n\n return { start: startDate, end: endDate };\n },\n listDaySideFormat: { weekday: 'long' }, // day-of-week is nice-to-have\n },\n },\n eventClick: async function (info) {\n info.jsEvent.preventDefault();\n for (let event of (await this.state?.getEvents()) || []) {\n if (event.id() === info.event.extendedProps.eventId) {\n app.modal.show(EventTeaser, { event: event });\n break;\n }\n }\n }.bind(this),\n dateClick: function (info) {\n openModal(info);\n },\n events: (info, successCb, failureCb) => this.state?.getEvents(info, successCb, failureCb) || [],\n eventDataTransform: this.flarumToFullCalendarEvent,\n });\n calendar.render();\n\n this.state = new CalendarState(calendar, this);\n app.calendarState = this.state;\n this.state.refresh();\n }\n\n openCreateModal(info) {\n if (!app.session.user.canStartEvents()) {\n return;\n }\n\n const refresh = this.state.refresh.bind(this.state);\n\n if (app.session.user != undefined) {\n if (info.dateStr) {\n app.modal.show(EditEventModal, { withStart: info.dateStr, refresh });\n } else {\n app.modal.show(EditEventModal, { refresh });\n }\n } else {\n app.modal.show(LogInModal);\n }\n }\n\n flarumToFullCalendarEvent(eventData) {\n return {\n title: eventData.name(),\n end: eventData.event_end(),\n start: eventData.event_start(),\n extendedProps: {\n description: eventData.description(),\n user: eventData.user(),\n eventId: eventData.id(),\n },\n // for link awareness each event includes link evem though we use event modal\n url: app.route('advevent', { id: eventData.id() }),\n };\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/AffixedSidebar'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/LoadingIndicator'];","import Page from 'flarum/common/components/Page';\nimport AffixedSidebar from 'flarum/forum/components/AffixedSidebar';\nimport LoadingIndicator from 'flarum/common/components/LoadingIndicator';\nimport listItems from 'flarum/common/helpers/listItems';\nimport EventFragment from './EventFragment';\nimport app from 'flarum/forum/app';\nimport CalendarPage from './CalendarPage';\n\n/**\n * The `EventPage` component shows a individual event details\n *\n * @abstract\n */\nexport default class EventPage extends Page {\n oninit(vnode) {\n super.oninit(vnode);\n this.event = null;\n\n const event = app.preloadedApiDocument();\n if (event) {\n this.show(event);\n } else {\n const eventId = m.route.param('id');\n app.store.find('events', eventId).then(this.show.bind(this));\n }\n\n app.history.push('advevent');\n this.bodyClass = 'App--event';\n }\n\n show(event) {\n this.event = event;\n this.user = event.user();\n app.setTitle(event.name());\n m.redraw();\n }\n\n view() {\n return (\n
\n {this.event ? (\n
\n
\n \n \n \n
\n

{this.event.name()}

\n \n
\n
\n
\n ) : (\n \n )}\n
\n );\n }\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/Model'];","import Model from 'flarum/common/Model';\n\nexport default class Event extends Model {\n name = Model.attribute('name');\n description = Model.attribute('description');\n createdAt = Model.attribute('createdAt', Model.transformDate);\n event_start = Model.attribute('event_start', Model.transformDate);\n event_end = Model.attribute('event_end', Model.transformDate);\n user = Model.hasOne('user');\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app.js'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/UserCard'];","import Component from 'flarum/common/Component';\nimport Link from 'flarum/common/components/Link';\nimport UserCard from 'flarum/forum/components/UserCard';\nimport avatar from 'flarum/common/helpers/avatar';\nimport username from 'flarum/common/helpers/username';\nimport userOnline from 'flarum/common/helpers/userOnline';\nimport listItems from 'flarum/common/helpers/listItems';\nimport app from 'flarum/forum/app';\n\n/**\n * The `PostUser` component shows the avatar and username of a post's author.\n *\n * ### Props\n *\n * - `post`\n */\nexport default class EventUser extends Component {\n oninit(vnode) {\n super.oninit(vnode);\n\n /**\n * Whether or not the user hover card is visible.\n *\n * @type {Boolean}\n */\n this.cardVisible = false;\n }\n\n view() {\n const post = this.attrs.post;\n const user = this.attrs.user;\n\n if (!user) {\n return (\n
\n

\n {avatar(user, { className: 'PostUser-avatar' })} {username(user)}\n

\n
\n );\n }\n\n let card = null;\n\n if (!post.isHidden() && this.cardVisible) {\n card = ;\n }\n\n return (\n
\n

\n \n {avatar(user, { className: 'PostUser-avatar' })}\n {userOnline(user)}\n {username(user)}\n \n

\n
    {listItems(user.badges().toArray())}
\n {card}\n
\n );\n }\n\n oncreate(vnode) {\n super.oncreate(vnode);\n\n let timeout;\n\n this.$()\n .on('mouseover', 'h3 a, .UserCard', () => {\n clearTimeout(timeout);\n timeout = setTimeout(this.showCard.bind(this), 500);\n })\n .on('mouseout', 'h3 a, .UserCard', () => {\n clearTimeout(timeout);\n timeout = setTimeout(this.hideCard.bind(this), 250);\n });\n }\n\n /**\n * Show the user card.\n */\n showCard() {\n this.cardVisible = true;\n\n m.redraw();\n\n setTimeout(() => this.$('.UserCard').addClass('in'));\n }\n\n /**\n * Hide the user card.\n */\n hideCard() {\n this.$('.UserCard')\n .removeClass('in')\n .one('transitionend webkitTransitionEnd oTransitionEnd', () => {\n this.cardVisible = false;\n m.redraw();\n });\n }\n}\n","import CalendarPage from './CalendarPage';\nimport EditEventModal from './EditEventModal';\nimport EventFragment from './EventFragment';\nimport EventPage from './EventPage';\nimport EventTeaser from './EventTeaser';\nimport EventUser from './EventUser';\n\nexport const components = {\n CalendarPage: CalendarPage,\n EditEventModal: EditEventModal,\n EventFragment: EventFragment,\n EventPage: EventPage,\n EventTeaser: EventTeaser,\n EventUser: EventUser,\n};\n","import Event from './Event';\n\nexport const models = {\n Event: Event,\n};\n","import CustomComposerState from './CustomComposerState';\n\nexport const states = {\n CustomComposerState: CustomComposerState,\n};\n","import dynamicallyLoadLib from './dynamicallyLoadLib';\n\nexport const utils = {\n dynamicallyLoadLib: dynamicallyLoadLib,\n};\n","import CalendarPage from './components/CalendarPage.js';\nimport EventPage from './components/EventPage.js';\n\nimport { extend } from 'flarum/common/extend';\nimport IndexPage from 'flarum/forum/components/IndexPage';\nimport LinkButton from 'flarum/common/components/LinkButton';\nimport Event from './models/Event.js';\nimport Model from 'flarum/common/Model';\nimport app from 'flarum/forum/app.js';\n\napp.initializers.add('webbinaro-calendar', () => {\n app.routes.advevents = { path: '/events', component: CalendarPage };\n app.routes.advevent = { path: '/events/:id', component: EventPage };\n\n // Allows easy route generation by passing an event from components (see EventFragment)\n app.route.advevent = (event) => app.route('advevent', { id: event.id() });\n\n app.store.models.events = Event;\n app.store.models.users.prototype.canModerateEvents = Model.attribute('canModerateEvents');\n app.store.models.users.prototype.canStartEvents = Model.attribute('canStartEvents');\n app.store.models.users.prototype.canViewEvents = Model.attribute('canViewEvents');\n\n // Add events to side nav\n extend(IndexPage.prototype, 'navItems', function (items) {\n items.add(\n 'events',\n \n {app.translator.trans('flarum-calendar.forum.button.landing')}\n ,\n 50\n );\n return items;\n });\n});\n\nexport * from './components';\nexport * from './models';\nexport * from './states';\nexport * from './utils';\n"],"names":["_typeof","require","_regeneratorRuntime","module","exports","__esModule","Op","Object","prototype","hasOwn","hasOwnProperty","defineProperty","obj","key","desc","value","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","create","context","Context","makeInvokeMethod","tryCatch","fn","arg","type","call","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","this","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","invoke","resolve","reject","record","result","__await","then","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","state","Error","undefined","done","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","TypeError","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","doneResult","displayName","isGeneratorFunction","genFun","ctor","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","keys","val","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","runtime","regeneratorRuntime","accidentalStrictMode","globalThis","Function","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","d","a","definition","o","get","prop","r","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","arguments","apply","_setPrototypeOf","p","bind","_inheritsLoose","subClass","superClass","flarum","core","compat","_extends","assign","target","source","libs","fullcalendarCore","js","loaded","FullCalendar","fullcalendarLocales","globalLocales","fullcalendarDayGrid","globalPlugins","find","fullcalendarInteraction","fullcalendarList","flatpickr","css","window","flatpickrLocale","locale","l10ns","dynamicallyLoadLib","lib","_libConf","_len","moreArgs","Array","_key","isArray","all","map","l","libConf","console","warn","loadPromises","_libConf2","href","document","createElement","rel","head","appendChild","src","script","interval","setInterval","_libConf3","clearInterval","CustomComposerState","_ComposerState","_this","position","ComposerState","EditEventModal","_Modal","_proto","oninit","vnode","Stream","user","description","event_start","event_end","attrs","event","composerState","title","app","className","content","m","bidi","style","oncreate","initDatePicker","class","TextEditor","disabled","loading","onchange","placeholder","composer","Button","_initDatePicker","_callee","userLang","_context","dom","enableTime","dateFormat","mode","defaultDate","parseDate","inline","onChange","dates","redraw","_x","onsubmit","_onsubmit","_callee2","e","_context2","preventDefault","Alert","save","refresh","hide","_x2","Modal","EventFragment","_Component","view","id","Link","userOnline","username","fullTime","icon","onclick","editLaunch","deleteEvent","descElement","getElementById","s9e","TextFormatter","preview","confirm","route","set","modal","Component","EventTeaser","alertAttrs","dismissible","isDismissible","avatar","LinkButton","CalendarState","calendar","calendarPage","events","clear","refetchEvents","getEvents","_getEvents","successCallback","failureCallbacks","_this$info","_this$info2","startStr","endStr","fetchEvents","_x3","_fetchEvents","results","start","toISOString","end","sort","_x4","_x5","_x6","CalendarPage","_Page","bodyClass","IndexPage","listItems","sidebarItems","toArray","items","setContent","itemClassName","openCreateModal","remove","renderCalendar","onupdate","_renderCalendar","calendarEl","openModal","Calendar","headerToolbar","center","initialView","views","listYearFromToday","visibleRange","currentDate","startDate","Date","valueOf","endDate","setFullYear","getFullYear","listDaySideFormat","weekday","eventClick","_ref","_iterator","_step","_this$state","jsEvent","t0","_createForOfIteratorHelperLoose","t1","t2","extendedProps","eventId","dateClick","successCb","failureCb","_this$state2","eventDataTransform","flarumToFullCalendarEvent","render","dateStr","withStart","LogInModal","eventData","url","Page","EventPage","show","param","AffixedSidebar","LoadingIndicator","Event","_Model","concat","Model","createdAt","EventUser","cardVisible","post","card","isHidden","UserCard","controlsButtonClassName","badges","timeout","$","on","clearTimeout","setTimeout","showCard","hideCard","_this2","addClass","_this3","removeClass","one","components","models","states","utils","path","component","extend","add"],"sourceRoot":""} \ No newline at end of file diff --git a/js/package-lock.json b/js/package-lock.json index 9fdb3a4..71a4861 100644 --- a/js/package-lock.json +++ b/js/package-lock.json @@ -2156,9 +2156,9 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, "node_modules/caniuse-lite": { - "version": "1.0.30001488", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz", - "integrity": "sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ==", + "version": "1.0.30001527", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001527.tgz", + "integrity": "sha512-YkJi7RwPgWtXVSgK4lG9AHH57nSzvvOp9MesgXmw4Q7n0C3H04L0foHqfxcmSAm5AcWb8dW9AYj2tR7/5GnddQ==", "funding": [ { "type": "opencollective", @@ -5115,9 +5115,9 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, "caniuse-lite": { - "version": "1.0.30001488", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz", - "integrity": "sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ==" + "version": "1.0.30001527", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001527.tgz", + "integrity": "sha512-YkJi7RwPgWtXVSgK4lG9AHH57nSzvvOp9MesgXmw4Q7n0C3H04L0foHqfxcmSAm5AcWb8dW9AYj2tR7/5GnddQ==" }, "chalk": { "version": "2.4.2",