area-51/lib/fullcalendar-6.1.14/packages/moment-timezone/index.global.js

36 lines
1 KiB
JavaScript
Raw Normal View History

2025-01-30 04:21:55 +01:00
/*!
FullCalendar Moment Timezone Plugin v6.1.14
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin
(c) 2024 Adam Shaw
*/
FullCalendar.MomentTimezone = (function (exports, core, moment, internal) {
'use strict';
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
var moment__default = /*#__PURE__*/_interopDefault(moment);
class MomentNamedTimeZone extends internal.NamedTimeZoneImpl {
offsetForArray(a) {
return moment__default["default"].tz(a, this.timeZoneName).utcOffset();
}
timestampToArray(ms) {
return moment__default["default"].tz(ms, this.timeZoneName).toArray();
}
}
var plugin = core.createPlugin({
name: '@fullcalendar/moment-timezone',
namedTimeZonedImpl: MomentNamedTimeZone,
});
core.globalPlugins.push(plugin);
exports["default"] = plugin;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, FullCalendar, moment, FullCalendar.Internal);