Няма описание

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