懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
提交 | 用户 | 时间
71e81e 1 /*!
2 FullCalendar Moment Timezone Plugin v4.3.0
3 Docs & License: https://fullcalendar.io/
4 (c) 2019 Adam Shaw
5 */
6
7 (function (global, factory) {
8     typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('moment'), require('moment-timezone/builds/moment-timezone-with-data'), require('@fullcalendar/core')) :
9     typeof define === 'function' && define.amd ? define(['exports', 'moment', 'moment-timezone/builds/moment-timezone-with-data', '@fullcalendar/core'], factory) :
10     (global = global || self, factory(global.FullCalendarMomentTimezone = {}, global.moment, global.moment, global.FullCalendar));
11 }(this, function (exports, momentNs, momentTimezoneWithData, core) { 'use strict';
12
13     /*! *****************************************************************************
14     Copyright (c) Microsoft Corporation. All rights reserved.
15     Licensed under the Apache License, Version 2.0 (the "License"); you may not use
16     this file except in compliance with the License. You may obtain a copy of the
17     License at http://www.apache.org/licenses/LICENSE-2.0
18
19     THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20     KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
21     WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
22     MERCHANTABLITY OR NON-INFRINGEMENT.
23
24     See the Apache Version 2.0 License for specific language governing permissions
25     and limitations under the License.
26     ***************************************************************************** */
27     /* global Reflect, Promise */
28
29     var extendStatics = function(d, b) {
30         extendStatics = Object.setPrototypeOf ||
31             ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32             function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33         return extendStatics(d, b);
34     };
35
36     function __extends(d, b) {
37         extendStatics(d, b);
38         function __() { this.constructor = d; }
39         d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40     }
41
42     var moment = momentNs; // the directly callable function
43     var MomentNamedTimeZone = /** @class */ (function (_super) {
44         __extends(MomentNamedTimeZone, _super);
45         function MomentNamedTimeZone() {
46             return _super !== null && _super.apply(this, arguments) || this;
47         }
48         MomentNamedTimeZone.prototype.offsetForArray = function (a) {
49             return moment.tz(a, this.timeZoneName).utcOffset();
50         };
51         MomentNamedTimeZone.prototype.timestampToArray = function (ms) {
52             return moment.tz(ms, this.timeZoneName).toArray();
53         };
54         return MomentNamedTimeZone;
55     }(core.NamedTimeZoneImpl));
56     var main = core.createPlugin({
57         namedTimeZonedImpl: MomentNamedTimeZone
58     });
59
60     exports.default = main;
61
62     Object.defineProperty(exports, '__esModule', { value: true });
63
64 }));