diff options
author | Max Kostikov <max@kostikov.co> | 2020-07-19 14:58:19 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-07-19 14:58:19 +0200 |
commit | 5ea7196e78d08550b3ec93d3b708f915b3b0057f (patch) | |
tree | 07e5f865b6c83898d7ac508302a227509e8207fd /library/fullcalendar/packages/moment-timezone/main.esm.js | |
parent | d0c7c99d5e1eb27281431231640c7e8c019b90e1 (diff) | |
parent | fcc47e69e424635fa54b2684329623d4f7694436 (diff) | |
download | volse-hubzilla-5ea7196e78d08550b3ec93d3b708f915b3b0057f.tar.gz volse-hubzilla-5ea7196e78d08550b3ec93d3b708f915b3b0057f.tar.bz2 volse-hubzilla-5ea7196e78d08550b3ec93d3b708f915b3b0057f.zip |
Merge branch 'dev' into 'dev'
Dev sync
See merge request kostikov/core!1
Diffstat (limited to 'library/fullcalendar/packages/moment-timezone/main.esm.js')
-rw-r--r-- | library/fullcalendar/packages/moment-timezone/main.esm.js | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/library/fullcalendar/packages/moment-timezone/main.esm.js b/library/fullcalendar/packages/moment-timezone/main.esm.js new file mode 100644 index 000000000..df11b1f46 --- /dev/null +++ b/library/fullcalendar/packages/moment-timezone/main.esm.js @@ -0,0 +1,58 @@ +/*! +FullCalendar Moment Timezone Plugin v4.4.2 +Docs & License: https://fullcalendar.io/ +(c) 2019 Adam Shaw +*/ + +import * as momentNs from 'moment'; +import 'moment-timezone/builds/moment-timezone-with-data'; +import { createPlugin, NamedTimeZoneImpl } from '@fullcalendar/core'; + +/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */
+/* global Reflect, Promise */
+
+var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+ return extendStatics(d, b);
+};
+
+function __extends(d, b) {
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+} + +var moment = momentNs; // the directly callable function +var MomentNamedTimeZone = /** @class */ (function (_super) { + __extends(MomentNamedTimeZone, _super); + function MomentNamedTimeZone() { + return _super !== null && _super.apply(this, arguments) || this; + } + MomentNamedTimeZone.prototype.offsetForArray = function (a) { + return moment.tz(a, this.timeZoneName).utcOffset(); + }; + MomentNamedTimeZone.prototype.timestampToArray = function (ms) { + return moment.tz(ms, this.timeZoneName).toArray(); + }; + return MomentNamedTimeZone; +}(NamedTimeZoneImpl)); +var main = createPlugin({ + namedTimeZonedImpl: MomentNamedTimeZone +}); + +export default main; |