orc-shared 5.10.0-dev.20 → 5.10.0-dev.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Culture.js +33 -14
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -14
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -21
- package/dist/components/Provision.js +1 -1
- package/dist/hooks/useDaysAndMonthsLocalization.js +77 -0
- package/dist/sharedMessages.js +180 -0
- package/dist/utils/timezoneHelper.js +18 -31
- package/package.json +4 -3
- package/src/components/Culture.js +20 -10
- package/src/components/Culture.test.js +27 -16
- package/src/components/MaterialUI/Inputs/DatePicker.js +19 -20
- package/src/components/MaterialUI/Inputs/DatePicker.test.js +11 -6
- package/src/components/MaterialUI/Inputs/TimePicker.js +10 -19
- package/src/components/MaterialUI/Inputs/TimePicker.test.js +278 -117
- package/src/components/Provision.js +1 -1
- package/src/hooks/useDaysAndMonthsLocalization.js +79 -0
- package/src/hooks/useDaysAndMonthsLocalization.test.js +107 -0
- package/src/sharedMessages.js +180 -0
- package/src/timezones.json +883 -0
- package/src/translations/en-US.json +45 -0
- package/src/translations/fr-CA.json +45 -0
- package/src/utils/timezoneHelper.js +10 -135
- package/src/utils/timezoneHelper.test.js +7 -7
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
4
|
+
exports.default = exports.customFnsLocale = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var
|
|
7
|
-
var _locale = require("../selectors/locale");
|
|
6
|
+
var _reactIntl = require("react-intl");
|
|
8
7
|
var _reactDatepicker = require("react-datepicker");
|
|
9
8
|
var date_fns_locale = _interopRequireWildcard(require("date-fns/locale"));
|
|
10
9
|
var _localizationHelper = require("../utils/localizationHelper");
|
|
10
|
+
var _useDaysAndMonthsLocalization = _interopRequireDefault(require("../hooks/useDaysAndMonthsLocalization"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
(function () {
|
|
@@ -18,30 +19,46 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
18
19
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
20
|
enterModule && enterModule(module);
|
|
20
21
|
})();
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
26
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
27
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
28
|
return a;
|
|
23
29
|
};
|
|
24
30
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
31
|
return a;
|
|
26
32
|
};
|
|
33
|
+
var customFnsLocale = exports.customFnsLocale = null;
|
|
27
34
|
var Culture = function Culture() {
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var
|
|
35
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
36
|
+
locale = _useIntl.locale;
|
|
37
|
+
var daysAndMonthsLocalization = (0, _useDaysAndMonthsLocalization.default)();
|
|
31
38
|
(0, _react.useMemo)(function () {
|
|
32
|
-
var fnsLocale = (0, _localizationHelper.findCorrespondingLocale)(date_fns_locale,
|
|
39
|
+
var fnsLocale = (0, _localizationHelper.findCorrespondingLocale)(date_fns_locale, locale);
|
|
33
40
|
if (fnsLocale != null) {
|
|
34
|
-
(
|
|
35
|
-
|
|
41
|
+
exports.customFnsLocale = customFnsLocale = _objectSpread(_objectSpread({}, fnsLocale), {}, {
|
|
42
|
+
localize: _objectSpread(_objectSpread({}, fnsLocale.localize), {}, {
|
|
43
|
+
day: function day(n) {
|
|
44
|
+
return daysAndMonthsLocalization.weekdaysMin[n];
|
|
45
|
+
},
|
|
46
|
+
month: function month(n) {
|
|
47
|
+
return daysAndMonthsLocalization.months[n];
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
(0, _reactDatepicker.registerLocale)(locale, customFnsLocale);
|
|
52
|
+
(0, _reactDatepicker.setDefaultLocale)(locale);
|
|
36
53
|
}
|
|
37
|
-
}, [
|
|
54
|
+
}, [locale, daysAndMonthsLocalization]);
|
|
38
55
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
39
56
|
};
|
|
40
|
-
__signature__(Culture, "
|
|
41
|
-
return [
|
|
57
|
+
__signature__(Culture, "useIntl{{ locale }}\nuseDaysAndMonthsLocalization{daysAndMonthsLocalization}\nuseMemo{}", function () {
|
|
58
|
+
return [_reactIntl.useIntl, _useDaysAndMonthsLocalization.default];
|
|
42
59
|
});
|
|
43
|
-
__signature__(Culture, "
|
|
44
|
-
return [
|
|
60
|
+
__signature__(Culture, "useIntl{{ locale }}\nuseDaysAndMonthsLocalization{daysAndMonthsLocalization}\nuseMemo{}", function () {
|
|
61
|
+
return [_reactIntl.useIntl, _useDaysAndMonthsLocalization.default];
|
|
45
62
|
});
|
|
46
63
|
var _default = Culture;
|
|
47
64
|
var _default2 = _default;
|
|
@@ -52,6 +69,7 @@ var _default3 = exports.default = _default2;
|
|
|
52
69
|
if (!reactHotLoader) {
|
|
53
70
|
return;
|
|
54
71
|
}
|
|
72
|
+
reactHotLoader.register(customFnsLocale, "customFnsLocale", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
55
73
|
reactHotLoader.register(Culture, "Culture", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
56
74
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
57
75
|
})();
|
|
@@ -66,6 +84,7 @@ var _default3 = exports.default = _default2;
|
|
|
66
84
|
if (!reactHotLoader) {
|
|
67
85
|
return;
|
|
68
86
|
}
|
|
87
|
+
reactHotLoader.register(customFnsLocale, "customFnsLocale", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
69
88
|
reactHotLoader.register(Culture, "Culture", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
70
89
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Culture.js");
|
|
71
90
|
})();
|
|
@@ -10,9 +10,7 @@ require("react-datepicker/dist/react-datepicker.css");
|
|
|
10
10
|
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
11
11
|
var _styles = require("@material-ui/core/styles");
|
|
12
12
|
var _timezoneHelper = require("../../../utils/timezoneHelper");
|
|
13
|
-
var
|
|
14
|
-
var _reactRedux = require("react-redux");
|
|
15
|
-
var _excluded = ["value", "useTime", "useDate", "onChange", "useTimeZone", "dateFormat", "showTimeZone", "timeInputLabel", "readOnly", "showTimeSelectOnly", "metadata", "timePickerTimeZone", "error", "timeOption"];
|
|
13
|
+
var _excluded = ["value", "useTime", "useDate", "onChange", "useTimeZone", "dateFormat", "showTimeZone", "timeInputLabel", "readOnly", "showTimeSelectOnly", "metadata", "timePickerWindowsTimeZone", "error", "timeOption"];
|
|
16
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
15
|
(function () {
|
|
18
16
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -162,20 +160,23 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
162
160
|
readOnly = _ref.readOnly,
|
|
163
161
|
showTimeSelectOnly = _ref.showTimeSelectOnly,
|
|
164
162
|
metadata = _ref.metadata,
|
|
165
|
-
|
|
163
|
+
timePickerWindowsTimeZone = _ref.timePickerWindowsTimeZone,
|
|
166
164
|
error = _ref.error,
|
|
167
165
|
timeOption = _ref.timeOption,
|
|
168
166
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
169
167
|
var classes = useStyles({
|
|
170
168
|
readOnly: readOnly
|
|
171
169
|
});
|
|
172
|
-
var
|
|
173
|
-
var
|
|
170
|
+
var ianaTimeZone = useTimeZone && timePickerWindowsTimeZone ? (0, _timezoneHelper.getIanaTimeZoneFromWindowsName)(timePickerWindowsTimeZone) : null;
|
|
171
|
+
var computeDateWithTimezone = _react.default.useCallback(function (date) {
|
|
172
|
+
return date ? ianaTimeZone ? (0, _timezoneHelper.convertTimeToLocalTimeZone)(new Date(date), ianaTimeZone) : new Date(date) : null;
|
|
173
|
+
}, [ianaTimeZone]);
|
|
174
|
+
var startDate = computeDateWithTimezone(value);
|
|
174
175
|
var disabledCls = (0, _classnames.default)(_defineProperty({}, classes.disabled, props.disabled));
|
|
175
|
-
var
|
|
176
|
+
var windowsTimeZoneName = useTime && showTimeZone ? timePickerWindowsTimeZone != null ? timePickerWindowsTimeZone : (0, _timezoneHelper.getWindowsTimeZone)() : null;
|
|
176
177
|
var updateDate = function updateDate(date, metadata) {
|
|
177
178
|
if (onChange) {
|
|
178
|
-
onChange(
|
|
179
|
+
onChange(computeDateWithTimezone(date), metadata);
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -193,8 +194,7 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
193
194
|
showTimeInput: useTime != null ? useTime : false,
|
|
194
195
|
useTime: useTime != null ? useTime : false,
|
|
195
196
|
customTimeInput: useTime ? /*#__PURE__*/_react.default.createElement(_TimePicker.default, {
|
|
196
|
-
|
|
197
|
-
requestedTimeZone: localizedTimeZoneName,
|
|
197
|
+
windowsTimeZone: windowsTimeZoneName,
|
|
198
198
|
timeOption: timeOption
|
|
199
199
|
}) : null,
|
|
200
200
|
timeInputLabel: timeInputLabel != null ? timeInputLabel : "",
|
|
@@ -209,11 +209,11 @@ var WrappedDatePicker = function WrappedDatePicker(_ref) {
|
|
|
209
209
|
className: classes.errorText
|
|
210
210
|
}, error));
|
|
211
211
|
};
|
|
212
|
-
__signature__(WrappedDatePicker, "useStyles{classes}\
|
|
213
|
-
return [useStyles
|
|
212
|
+
__signature__(WrappedDatePicker, "useStyles{classes}\nuseCallback{computeDateWithTimezone}", function () {
|
|
213
|
+
return [useStyles];
|
|
214
214
|
});
|
|
215
|
-
__signature__(WrappedDatePicker, "useStyles{classes}\
|
|
216
|
-
return [useStyles
|
|
215
|
+
__signature__(WrappedDatePicker, "useStyles{classes}\nuseCallback{computeDateWithTimezone}", function () {
|
|
216
|
+
return [useStyles];
|
|
217
217
|
});
|
|
218
218
|
var _default = WrappedDatePicker;
|
|
219
219
|
var _default2 = _default;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.parseTime = exports.default = exports.MinsSelect = exports.HoursSelect = exports.AMPMSelect = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactIntl = require("react-intl");
|
|
6
7
|
var _styles = require("@material-ui/core/styles");
|
|
7
8
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
8
9
|
var _SelectProps = _interopRequireDefault(require("./SelectProps"));
|
|
@@ -105,8 +106,8 @@ var ampmOptions = [{
|
|
|
105
106
|
value: "PM",
|
|
106
107
|
label: "PM"
|
|
107
108
|
}];
|
|
108
|
-
var isBrowserUsingAMPM = function isBrowserUsingAMPM() {
|
|
109
|
-
return !!new Date(Date.UTC(2020, 7, 30, 3, 0, 0)).toLocaleTimeString().match(/am|a
|
|
109
|
+
var isBrowserUsingAMPM = function isBrowserUsingAMPM(locale) {
|
|
110
|
+
return !!new Date(Date.UTC(2020, 7, 30, 3, 0, 0)).toLocaleTimeString(locale).match(/am|a\.m|pm|p\.m/i);
|
|
110
111
|
};
|
|
111
112
|
var parseTime = exports.parseTime = function parseTime(timeStr) {
|
|
112
113
|
var time = timeStr.match(/(\d+)(?::(\d\d))?\s*(p?)/i);
|
|
@@ -241,15 +242,15 @@ __signature__(MinsSelect, "useStyles{classes}", function () {
|
|
|
241
242
|
return [useStyles];
|
|
242
243
|
});
|
|
243
244
|
var TimePicker = function TimePicker(_ref4) {
|
|
244
|
-
var _showAMPM;
|
|
245
245
|
var value = _ref4.value,
|
|
246
246
|
onChange = _ref4.onChange,
|
|
247
247
|
showTimeZone = _ref4.showTimeZone,
|
|
248
|
-
|
|
249
|
-
requestedTimeZone = _ref4.requestedTimeZone,
|
|
248
|
+
windowsTimeZone = _ref4.windowsTimeZone,
|
|
250
249
|
timeOption = _ref4.timeOption;
|
|
251
250
|
var classes = useStyles();
|
|
252
|
-
|
|
251
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
252
|
+
locale = _useIntl.locale;
|
|
253
|
+
var showAMPM = isBrowserUsingAMPM(locale);
|
|
253
254
|
var _useState = (0, _react.useState)(parseTime(value || "00:00")),
|
|
254
255
|
_useState2 = _slicedToArray(_useState, 2),
|
|
255
256
|
time = _useState2[0],
|
|
@@ -257,8 +258,8 @@ var TimePicker = function TimePicker(_ref4) {
|
|
|
257
258
|
(0, _react.useEffect)(function () {
|
|
258
259
|
setTime(parseTime(value || "00:00"));
|
|
259
260
|
}, [value, setTime]);
|
|
260
|
-
var
|
|
261
|
-
var
|
|
261
|
+
var timeZone = windowsTimeZone != null ? windowsTimeZone : (0, _timezoneHelper.getWindowsTimeZone)();
|
|
262
|
+
var localizedTimeZone = (0, _reactRedux.useSelector)((0, _metadata.namedLookupLocalizedSelector)("customer", "TimeZone", timeZone));
|
|
262
263
|
var onTimeChange = function onTimeChange(datetime) {
|
|
263
264
|
if (onChange) {
|
|
264
265
|
// DatePicker expects 24 hour time format, or else things go wonky!
|
|
@@ -289,14 +290,6 @@ var TimePicker = function TimePicker(_ref4) {
|
|
|
289
290
|
onTimeChange(time);
|
|
290
291
|
};
|
|
291
292
|
};
|
|
292
|
-
var getTimeZone = function getTimeZone(requestedTimeZone) {
|
|
293
|
-
if (requestedTimeZone) return requestedTimeZone;
|
|
294
|
-
if (!localizedTimeZoneName) {
|
|
295
|
-
var timezone = new Date().toString().match(/GMT(\S+) \(([^)]+)\)/i);
|
|
296
|
-
return "".concat(timezone[2], " (GMT").concat(timezone[1], ")");
|
|
297
|
-
}
|
|
298
|
-
return localizedTimeZoneName;
|
|
299
|
-
};
|
|
300
293
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
301
294
|
className: classes.timeWrapper
|
|
302
295
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -315,13 +308,13 @@ var TimePicker = function TimePicker(_ref4) {
|
|
|
315
308
|
time: time
|
|
316
309
|
})), showTimeZone && /*#__PURE__*/_react.default.createElement("label", {
|
|
317
310
|
className: classes.timeZoneWrapper
|
|
318
|
-
},
|
|
311
|
+
}, localizedTimeZone));
|
|
319
312
|
};
|
|
320
|
-
__signature__(TimePicker, "useStyles{classes}\nuseState{[time, setTime](parseTime(value || \"00:00\"))}\nuseEffect{}\nuseSelector{
|
|
321
|
-
return [useStyles, _reactRedux.useSelector];
|
|
313
|
+
__signature__(TimePicker, "useStyles{classes}\nuseIntl{{ locale }}\nuseState{[time, setTime](parseTime(value || \"00:00\"))}\nuseEffect{}\nuseSelector{localizedTimeZone}", function () {
|
|
314
|
+
return [useStyles, _reactIntl.useIntl, _reactRedux.useSelector];
|
|
322
315
|
});
|
|
323
|
-
__signature__(TimePicker, "useStyles{classes}\nuseState{[time, setTime](parseTime(value || \"00:00\"))}\nuseEffect{}\nuseSelector{
|
|
324
|
-
return [useStyles, _reactRedux.useSelector];
|
|
316
|
+
__signature__(TimePicker, "useStyles{classes}\nuseIntl{{ locale }}\nuseState{[time, setTime](parseTime(value || \"00:00\"))}\nuseEffect{}\nuseSelector{localizedTimeZone}", function () {
|
|
317
|
+
return [useStyles, _reactIntl.useIntl, _reactRedux.useSelector];
|
|
325
318
|
});
|
|
326
319
|
var _default = TimePicker;
|
|
327
320
|
var _default2 = _default;
|
|
@@ -47,7 +47,7 @@ var Provision = function Provision(_ref) {
|
|
|
47
47
|
theme: theme
|
|
48
48
|
}, /*#__PURE__*/_react.default.createElement(_styles.MuiThemeProvider, {
|
|
49
49
|
theme: muiTheme
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Head.default, null), /*#__PURE__*/_react.default.createElement(GlobalStyle, null), /*#__PURE__*/_react.default.createElement(_Authenticate.default, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Fonts, null), /*#__PURE__*/_react.default.createElement(_DevPages.default, null, /*#__PURE__*/_react.default.createElement(_I18n.default, null, /*#__PURE__*/_react.default.createElement(_Culture.default, null), _react.default.Children.only(children), /*#__PURE__*/_react.default.createElement(_InternetExplorerWarningMessage.default, null))), /*#__PURE__*/_react.default.createElement(_ScopeExtendedConfigurationLoader.default, null))))))));
|
|
51
51
|
};
|
|
52
52
|
var _default = Provision;
|
|
53
53
|
var _default2 = _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
var _reactIntl = require("react-intl");
|
|
7
|
+
var _sharedMessages = _interopRequireDefault(require("../sharedMessages"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
(function () {
|
|
10
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
11
|
+
enterModule && enterModule(module);
|
|
12
|
+
})();
|
|
13
|
+
(function () {
|
|
14
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
|
+
enterModule && enterModule(module);
|
|
16
|
+
})();
|
|
17
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var useDaysAndMonthsLocalization = function useDaysAndMonthsLocalization() {
|
|
24
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
25
|
+
formatMessage = _useIntl.formatMessage;
|
|
26
|
+
return _react.default.useMemo(function () {
|
|
27
|
+
var weekdays = [formatMessage(_sharedMessages.default.sunday), formatMessage(_sharedMessages.default.monday), formatMessage(_sharedMessages.default.tuesday), formatMessage(_sharedMessages.default.wednesday), formatMessage(_sharedMessages.default.thursday), formatMessage(_sharedMessages.default.friday), formatMessage(_sharedMessages.default.saturday)];
|
|
28
|
+
var weekdaysShort = [formatMessage(_sharedMessages.default.sundayShort), formatMessage(_sharedMessages.default.mondayShort), formatMessage(_sharedMessages.default.tuesdayShort), formatMessage(_sharedMessages.default.wednesdayShort), formatMessage(_sharedMessages.default.thursdayShort), formatMessage(_sharedMessages.default.fridayShort), formatMessage(_sharedMessages.default.saturdayShort)];
|
|
29
|
+
var weekdaysMin = [formatMessage(_sharedMessages.default.sundayMin), formatMessage(_sharedMessages.default.mondayMin), formatMessage(_sharedMessages.default.tuesdayMin), formatMessage(_sharedMessages.default.wednesdayMin), formatMessage(_sharedMessages.default.thursdayMin), formatMessage(_sharedMessages.default.fridayMin), formatMessage(_sharedMessages.default.saturdayMin)];
|
|
30
|
+
var months = [formatMessage(_sharedMessages.default.january), formatMessage(_sharedMessages.default.february), formatMessage(_sharedMessages.default.march), formatMessage(_sharedMessages.default.april), formatMessage(_sharedMessages.default.may), formatMessage(_sharedMessages.default.june), formatMessage(_sharedMessages.default.july), formatMessage(_sharedMessages.default.august), formatMessage(_sharedMessages.default.september), formatMessage(_sharedMessages.default.october), formatMessage(_sharedMessages.default.november), formatMessage(_sharedMessages.default.december)];
|
|
31
|
+
var monthsShort = [formatMessage(_sharedMessages.default.januaryShort), formatMessage(_sharedMessages.default.februaryShort), formatMessage(_sharedMessages.default.marchShort), formatMessage(_sharedMessages.default.aprilShort), formatMessage(_sharedMessages.default.mayShort), formatMessage(_sharedMessages.default.juneShort), formatMessage(_sharedMessages.default.julyShort), formatMessage(_sharedMessages.default.augustShort), formatMessage(_sharedMessages.default.septemberShort), formatMessage(_sharedMessages.default.octoberShort), formatMessage(_sharedMessages.default.novemberShort), formatMessage(_sharedMessages.default.decemberShort)];
|
|
32
|
+
return {
|
|
33
|
+
weekdays: weekdays,
|
|
34
|
+
weekdaysShort: weekdaysShort,
|
|
35
|
+
weekdaysMin: weekdaysMin,
|
|
36
|
+
months: months,
|
|
37
|
+
monthsShort: monthsShort
|
|
38
|
+
};
|
|
39
|
+
}, [formatMessage]);
|
|
40
|
+
};
|
|
41
|
+
__signature__(useDaysAndMonthsLocalization, "useIntl{{ formatMessage }}\nuseMemo{}", function () {
|
|
42
|
+
return [_reactIntl.useIntl];
|
|
43
|
+
});
|
|
44
|
+
__signature__(useDaysAndMonthsLocalization, "useIntl{{ formatMessage }}\nuseMemo{}", function () {
|
|
45
|
+
return [_reactIntl.useIntl];
|
|
46
|
+
});
|
|
47
|
+
var _default = useDaysAndMonthsLocalization;
|
|
48
|
+
var _default2 = _default;
|
|
49
|
+
var _default3 = exports.default = _default2;
|
|
50
|
+
;
|
|
51
|
+
(function () {
|
|
52
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
53
|
+
if (!reactHotLoader) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
reactHotLoader.register(useDaysAndMonthsLocalization, "useDaysAndMonthsLocalization", "/home/vsts/work/1/s/src/hooks/useDaysAndMonthsLocalization.js");
|
|
57
|
+
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hooks/useDaysAndMonthsLocalization.js");
|
|
58
|
+
})();
|
|
59
|
+
;
|
|
60
|
+
(function () {
|
|
61
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
62
|
+
leaveModule && leaveModule(module);
|
|
63
|
+
})();
|
|
64
|
+
;
|
|
65
|
+
(function () {
|
|
66
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
67
|
+
if (!reactHotLoader) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
reactHotLoader.register(useDaysAndMonthsLocalization, "useDaysAndMonthsLocalization", "/home/vsts/work/1/s/src/hooks/useDaysAndMonthsLocalization.js");
|
|
71
|
+
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hooks/useDaysAndMonthsLocalization.js");
|
|
72
|
+
})();
|
|
73
|
+
;
|
|
74
|
+
(function () {
|
|
75
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
76
|
+
leaveModule && leaveModule(module);
|
|
77
|
+
})();
|
package/dist/sharedMessages.js
CHANGED
|
@@ -317,6 +317,186 @@ var sharedMessages = (0, _reactIntl.defineMessages)({
|
|
|
317
317
|
search: {
|
|
318
318
|
id: "orc-shared.search",
|
|
319
319
|
defaultMessage: "Search"
|
|
320
|
+
},
|
|
321
|
+
sundayMin: {
|
|
322
|
+
id: "orc-shared.sundayMin",
|
|
323
|
+
defaultMessage: "Su"
|
|
324
|
+
},
|
|
325
|
+
mondayMin: {
|
|
326
|
+
id: "orc-shared.mondayMin",
|
|
327
|
+
defaultMessage: "Mo"
|
|
328
|
+
},
|
|
329
|
+
tuesdayMin: {
|
|
330
|
+
id: "orc-shared.tuesdayMin",
|
|
331
|
+
defaultMessage: "Tu"
|
|
332
|
+
},
|
|
333
|
+
wednesdayMin: {
|
|
334
|
+
id: "orc-shared.wednesdayMin",
|
|
335
|
+
defaultMessage: "We"
|
|
336
|
+
},
|
|
337
|
+
thursdayMin: {
|
|
338
|
+
id: "orc-shared.thursdayMin",
|
|
339
|
+
defaultMessage: "Th"
|
|
340
|
+
},
|
|
341
|
+
fridayMin: {
|
|
342
|
+
id: "orc-shared.fridayMin",
|
|
343
|
+
defaultMessage: "Fr"
|
|
344
|
+
},
|
|
345
|
+
saturdayMin: {
|
|
346
|
+
id: "orc-shared.saturdayMin",
|
|
347
|
+
defaultMessage: "Sa"
|
|
348
|
+
},
|
|
349
|
+
sundayShort: {
|
|
350
|
+
id: "orc-shared.sundayShort",
|
|
351
|
+
defaultMessage: "Sun"
|
|
352
|
+
},
|
|
353
|
+
mondayShort: {
|
|
354
|
+
id: "orc-shared.mondayShort",
|
|
355
|
+
defaultMessage: "Mon"
|
|
356
|
+
},
|
|
357
|
+
tuesdayShort: {
|
|
358
|
+
id: "orc-shared.tuesdayShort",
|
|
359
|
+
defaultMessage: "Tue"
|
|
360
|
+
},
|
|
361
|
+
wednesdayShort: {
|
|
362
|
+
id: "orc-shared.wednesdayShort",
|
|
363
|
+
defaultMessage: "Wed"
|
|
364
|
+
},
|
|
365
|
+
thursdayShort: {
|
|
366
|
+
id: "orc-shared.thursdayShort",
|
|
367
|
+
defaultMessage: "Thu"
|
|
368
|
+
},
|
|
369
|
+
fridayShort: {
|
|
370
|
+
id: "orc-shared.fridayShort",
|
|
371
|
+
defaultMessage: "Fri"
|
|
372
|
+
},
|
|
373
|
+
saturdayShort: {
|
|
374
|
+
id: "orc-shared.saturdayShort",
|
|
375
|
+
defaultMessage: "Sat"
|
|
376
|
+
},
|
|
377
|
+
sunday: {
|
|
378
|
+
id: "orc-shared.sunday",
|
|
379
|
+
defaultMessage: "Sunday"
|
|
380
|
+
},
|
|
381
|
+
monday: {
|
|
382
|
+
id: "orc-shared.monday",
|
|
383
|
+
defaultMessage: "Monday"
|
|
384
|
+
},
|
|
385
|
+
tuesday: {
|
|
386
|
+
id: "orc-shared.tuesday",
|
|
387
|
+
defaultMessage: "Tuesday"
|
|
388
|
+
},
|
|
389
|
+
wednesday: {
|
|
390
|
+
id: "orc-shared.wednesday",
|
|
391
|
+
defaultMessage: "Wednesday"
|
|
392
|
+
},
|
|
393
|
+
thursday: {
|
|
394
|
+
id: "orc-shared.thursday",
|
|
395
|
+
defaultMessage: "Thursday"
|
|
396
|
+
},
|
|
397
|
+
friday: {
|
|
398
|
+
id: "orc-shared.friday",
|
|
399
|
+
defaultMessage: "Friday"
|
|
400
|
+
},
|
|
401
|
+
saturday: {
|
|
402
|
+
id: "orc-shared.saturday",
|
|
403
|
+
defaultMessage: "Saturday"
|
|
404
|
+
},
|
|
405
|
+
januaryShort: {
|
|
406
|
+
id: "orc-shared.januaryShort",
|
|
407
|
+
defaultMessage: "Jan"
|
|
408
|
+
},
|
|
409
|
+
februaryShort: {
|
|
410
|
+
id: "orc-shared.februaryShort",
|
|
411
|
+
defaultMessage: "Feb"
|
|
412
|
+
},
|
|
413
|
+
marchShort: {
|
|
414
|
+
id: "orc-shared.marchShort",
|
|
415
|
+
defaultMessage: "Mar"
|
|
416
|
+
},
|
|
417
|
+
aprilShort: {
|
|
418
|
+
id: "orc-shared.aprilShort",
|
|
419
|
+
defaultMessage: "Apr"
|
|
420
|
+
},
|
|
421
|
+
mayShort: {
|
|
422
|
+
id: "orc-shared.mayShort",
|
|
423
|
+
defaultMessage: "May"
|
|
424
|
+
},
|
|
425
|
+
juneShort: {
|
|
426
|
+
id: "orc-shared.juneShort",
|
|
427
|
+
defaultMessage: "Jun"
|
|
428
|
+
},
|
|
429
|
+
julyShort: {
|
|
430
|
+
id: "orc-shared.julyShort",
|
|
431
|
+
defaultMessage: "Jul"
|
|
432
|
+
},
|
|
433
|
+
augustShort: {
|
|
434
|
+
id: "orc-shared.augustShort",
|
|
435
|
+
defaultMessage: "Aug"
|
|
436
|
+
},
|
|
437
|
+
septemberShort: {
|
|
438
|
+
id: "orc-shared.septemberShort",
|
|
439
|
+
defaultMessage: "Sep"
|
|
440
|
+
},
|
|
441
|
+
octoberShort: {
|
|
442
|
+
id: "orc-shared.octoberShort",
|
|
443
|
+
defaultMessage: "Oct"
|
|
444
|
+
},
|
|
445
|
+
novemberShort: {
|
|
446
|
+
id: "orc-shared.novemberShort",
|
|
447
|
+
defaultMessage: "Nov"
|
|
448
|
+
},
|
|
449
|
+
decemberShort: {
|
|
450
|
+
id: "orc-shared.decemberShort",
|
|
451
|
+
defaultMessage: "Dec"
|
|
452
|
+
},
|
|
453
|
+
january: {
|
|
454
|
+
id: "orc-shared.january",
|
|
455
|
+
defaultMessage: "January"
|
|
456
|
+
},
|
|
457
|
+
february: {
|
|
458
|
+
id: "orc-shared.february",
|
|
459
|
+
defaultMessage: "February"
|
|
460
|
+
},
|
|
461
|
+
march: {
|
|
462
|
+
id: "orc-shared.march",
|
|
463
|
+
defaultMessage: "March"
|
|
464
|
+
},
|
|
465
|
+
april: {
|
|
466
|
+
id: "orc-shared.april",
|
|
467
|
+
defaultMessage: "April"
|
|
468
|
+
},
|
|
469
|
+
may: {
|
|
470
|
+
id: "orc-shared.may",
|
|
471
|
+
defaultMessage: "May"
|
|
472
|
+
},
|
|
473
|
+
june: {
|
|
474
|
+
id: "orc-shared.june",
|
|
475
|
+
defaultMessage: "June"
|
|
476
|
+
},
|
|
477
|
+
july: {
|
|
478
|
+
id: "orc-shared.july",
|
|
479
|
+
defaultMessage: "July"
|
|
480
|
+
},
|
|
481
|
+
august: {
|
|
482
|
+
id: "orc-shared.august",
|
|
483
|
+
defaultMessage: "August"
|
|
484
|
+
},
|
|
485
|
+
september: {
|
|
486
|
+
id: "orc-shared.september",
|
|
487
|
+
defaultMessage: "September"
|
|
488
|
+
},
|
|
489
|
+
october: {
|
|
490
|
+
id: "orc-shared.october",
|
|
491
|
+
defaultMessage: "October"
|
|
492
|
+
},
|
|
493
|
+
november: {
|
|
494
|
+
id: "orc-shared.november",
|
|
495
|
+
defaultMessage: "November"
|
|
496
|
+
},
|
|
497
|
+
december: {
|
|
498
|
+
id: "orc-shared.december",
|
|
499
|
+
defaultMessage: "December"
|
|
320
500
|
}
|
|
321
501
|
});
|
|
322
502
|
var _default = sharedMessages;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.getWindowsTimeZone = exports.getIanaTimeZoneFromWindowsName = exports.getIanaTimeZone = exports.convertTimeToOtherTimeZone = exports.convertTimeToLocalTimeZone = void 0;
|
|
5
5
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
6
6
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
7
|
(function () {
|
|
@@ -12,36 +12,26 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
12
12
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
13
|
enterModule && enterModule(module);
|
|
14
14
|
})();
|
|
15
|
-
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
15
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
16
|
return a;
|
|
24
17
|
};
|
|
25
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
19
|
return a;
|
|
27
20
|
};
|
|
28
|
-
var
|
|
21
|
+
var timeZonesList = require("../timezones.json");
|
|
22
|
+
var getIanaTimeZone = exports.getIanaTimeZone = function getIanaTimeZone() {
|
|
29
23
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
30
24
|
};
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var key = _ref2[0];
|
|
36
|
-
var value = _ref2[1];
|
|
37
|
-
if (value === name) return key;
|
|
38
|
-
}
|
|
39
|
-
return getTimeZone();
|
|
25
|
+
var getIanaTimeZoneFromWindowsName = exports.getIanaTimeZoneFromWindowsName = function getIanaTimeZoneFromWindowsName(windowsName) {
|
|
26
|
+
var _timeZonesList$window;
|
|
27
|
+
// If not found, the mapping might need to be updated, rerun the generateWindowsZone script
|
|
28
|
+
return ((_timeZonesList$window = timeZonesList.windowsToIana[windowsName]) != null ? _timeZonesList$window : [getIanaTimeZone()])[0];
|
|
40
29
|
};
|
|
41
|
-
var
|
|
42
|
-
var customerTimezone =
|
|
43
|
-
var
|
|
44
|
-
|
|
30
|
+
var getWindowsTimeZone = exports.getWindowsTimeZone = function getWindowsTimeZone() {
|
|
31
|
+
var customerTimezone = getIanaTimeZone();
|
|
32
|
+
var windowsTimezones = timeZonesList.ianaToWindows[customerTimezone];
|
|
33
|
+
// If not found, the mapping might need to be updated, rerun the generateWindowsZone script
|
|
34
|
+
return (windowsTimezones != null ? windowsTimezones : [customerTimezone])[0];
|
|
45
35
|
};
|
|
46
36
|
|
|
47
37
|
//converting time from other timezone to local
|
|
@@ -59,19 +49,17 @@ var convertTimeToOtherTimeZone = exports.convertTimeToOtherTimeZone = function c
|
|
|
59
49
|
var dateWithOtherZone = [dateWithoutZone, otherZone].join("");
|
|
60
50
|
return new Date(dateWithOtherZone);
|
|
61
51
|
};
|
|
62
|
-
var timeZonesList = exports.timeZonesList = new Map([["Africa/Bangui", "W. Central Africa Standard Time"], ["Africa/Cairo", "Egypt Standard Time"], ["Africa/Casablanca", "Morocco Standard Time"], ["Africa/Harare", "South Africa Standard Time"], ["Africa/Johannesburg", "South Africa Standard Time"], ["Africa/Lagos", "W. Central Africa Standard Time"], ["Africa/Monrovia", "Greenwich Standard Time"], ["Africa/Nairobi", "E. Africa Standard Time"], ["Africa/Windhoek", "Namibia Standard Time"], ["America/Anchorage", "Alaskan Standard Time"], ["America/Argentina/San_Juan", "Argentina Standard Time"], ["America/Asuncion", "Paraguay Standard Time"], ["America/Bahia", "Bahia Standard Time"], ["America/Bogota", "SA Pacific Standard Time"], ["America/Buenos_Aires", "Argentina Standard Time"], ["America/Caracas", "Venezuela Standard Time"], ["America/Cayenne", "SA Eastern Standard Time"], ["America/Chicago", "Central Standard Time"], ["America/Chihuahua", "Mountain Standard Time (Mexico)"], ["America/Cuiaba", "Central Brazilian Standard Time"], ["America/Denver", "Mountain Standard Time"], ["America/Fortaleza", "SA Eastern Standard Time"], ["America/Godthab", "Greenland Standard Time"], ["America/Guatemala", "Central America Standard Time"], ["America/Halifax", "Atlantic Standard Time"], ["America/Indianapolis", "US Eastern Standard Time"], ["America/Indiana/Indianapolis", "US Eastern Standard Time"], ["America/La_Paz", "SA Western Standard Time"], ["America/Los_Angeles", "Pacific Standard Time"], ["America/Mexico_City", "Mexico Standard Time"], ["America/Montevideo", "Montevideo Standard Time"], ["America/New_York", "Eastern Standard Time"], ["America/Noronha", "UTC-02"], ["America/Phoenix", "US Mountain Standard Time"], ["America/Regina", "Canada Central Standard Time"], ["America/Santa_Isabel", "Pacific Standard Time (Mexico)"], ["America/Santiago", "Pacific SA Standard Time"], ["America/Sao_Paulo", "E. South America Standard Time"], ["America/St_Johns", "Newfoundland Standard Time"], ["America/Tijuana", "Pacific Standard Time"], ["Antarctica/McMurdo", "New Zealand Standard Time"], ["Atlantic/South_Georgia", "UTC-02"], ["Asia/Almaty", "Central Asia Standard Time"], ["Asia/Amman", "Jordan Standard Time"], ["Asia/Baghdad", "Arabic Standard Time"], ["Asia/Baku", "Azerbaijan Standard Time"], ["Asia/Bangkok", "SE Asia Standard Time"], ["Asia/Beirut", "Middle East Standard Time"], ["Asia/Calcutta", "India Standard Time"], ["Asia/Colombo", "Sri Lanka Standard Time"], ["Asia/Damascus", "Syria Standard Time"], ["Asia/Dhaka", "Bangladesh Standard Time"], ["Asia/Dubai", "Arabian Standard Time"], ["Asia/Irkutsk", "North Asia East Standard Time"], ["Asia/Jerusalem", "Israel Standard Time"], ["Asia/Kabul", "Afghanistan Standard Time"], ["Asia/Kamchatka", "Kamchatka Standard Time"], ["Asia/Karachi", "Pakistan Standard Time"], ["Asia/Katmandu", "Nepal Standard Time"], ["Asia/Kolkata", "India Standard Time"], ["Asia/Krasnoyarsk", "North Asia Standard Time"], ["Asia/Kuala_Lumpur", "Singapore Standard Time"], ["Asia/Kuwait", "Arab Standard Time"], ["Asia/Magadan", "Magadan Standard Time"], ["Asia/Muscat", "Arabian Standard Time"], ["Asia/Novosibirsk", "N. Central Asia Standard Time"], ["Asia/Oral", "West Asia Standard Time"], ["Asia/Rangoon", "Myanmar Standard Time"], ["Asia/Riyadh", "Arab Standard Time"], ["Asia/Seoul", "Korea Standard Time"], ["Asia/Shanghai", "China Standard Time"], ["Asia/Singapore", "Singapore Standard Time"], ["Asia/Taipei", "Taipei Standard Time"], ["Asia/Tashkent", "West Asia Standard Time"], ["Asia/Tbilisi", "Georgian Standard Time"], ["Asia/Tehran", "Iran Standard Time"], ["Asia/Tokyo", "Tokyo Standard Time"], ["Asia/Ulaanbaatar", "Ulaanbaatar Standard Time"], ["Asia/Vladivostok", "Vladivostok Standard Time"], ["Asia/Yakutsk", "Yakutsk Standard Time"], ["Asia/Yekaterinburg", "Ekaterinburg Standard Time"], ["Asia/Yerevan", "Armenian Standard Time"], ["Atlantic/Azores", "Azores Standard Time"], ["Atlantic/Cape_Verde", "Cape Verde Standard Time"], ["Atlantic/Reykjavik", "Greenwich Standard Time"], ["Australia/Adelaide", "Cen. Australia Standard Time"], ["Australia/Brisbane", "E. Australia Standard Time"], ["Australia/Darwin", "AUS Central Standard Time"], ["Australia/Hobart", "Tasmania Standard Time"], ["Australia/Perth", "W. Australia Standard Time"], ["Australia/Sydney", "AUS Eastern Standard Time"], ["UTC", "UTC"], ["Etc/GMT+11", "UTC-11"], ["Etc/GMT+12", "Dateline Standard Time"], ["Etc/GMT+2", "UTC-02"], ["Etc/GMT-12", "UTC+12"], ["Europe/Amsterdam", "W. Europe Standard Time"], ["Europe/Athens", "GTB Standard Time"], ["Europe/Belgrade", "Central Europe Standard Time"], ["Europe/Berlin", "W. Europe Standard Time"], ["Europe/Brussels", "Romance Standard Time"], ["Europe/Budapest", "Central Europe Standard Time"], ["Europe/Dublin", "GMT Standard Time"], ["Europe/Helsinki", "FLE Standard Time"], ["Europe/Istanbul", "GTB Standard Time"], ["Europe/Kiev", "FLE Standard Time"], ["Europe/London", "GMT Standard Time"], ["Europe/Minsk", "E. Europe Standard Time"], ["Europe/Moscow", "Russian Standard Time"], ["Europe/Paris", "Romance Standard Time"], ["Europe/Sarajevo", "Central European Standard Time"], ["Europe/Warsaw", "Central European Standard Time"], ["Indian/Mauritius", "Mauritius Standard Time"], ["Pacific/Apia", "Samoa Standard Time"], ["Pacific/Auckland", "New Zealand Standard Time"], ["Pacific/Fiji", "Fiji Standard Time"], ["Pacific/Guadalcanal", "Central Pacific Standard Time"], ["Pacific/Guam", "West Pacific Standard Time"], ["Pacific/Honolulu", "Hawaiian Standard Time"], ["Pacific/Pago_Pago", "UTC-11"], ["Pacific/Port_Moresby", "West Pacific Standard Time"], ["Pacific/Tongatapu", "Tonga Standard Time"]]);
|
|
63
52
|
;
|
|
64
53
|
(function () {
|
|
65
54
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
66
55
|
if (!reactHotLoader) {
|
|
67
56
|
return;
|
|
68
57
|
}
|
|
69
|
-
reactHotLoader.register(
|
|
70
|
-
reactHotLoader.register(
|
|
71
|
-
reactHotLoader.register(
|
|
58
|
+
reactHotLoader.register(getIanaTimeZone, "getIanaTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
59
|
+
reactHotLoader.register(getIanaTimeZoneFromWindowsName, "getIanaTimeZoneFromWindowsName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
60
|
+
reactHotLoader.register(getWindowsTimeZone, "getWindowsTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
72
61
|
reactHotLoader.register(convertTimeToLocalTimeZone, "convertTimeToLocalTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
73
62
|
reactHotLoader.register(convertTimeToOtherTimeZone, "convertTimeToOtherTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
74
|
-
reactHotLoader.register(timeZonesList, "timeZonesList", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
75
63
|
})();
|
|
76
64
|
;
|
|
77
65
|
(function () {
|
|
@@ -84,12 +72,11 @@ var timeZonesList = exports.timeZonesList = new Map([["Africa/Bangui", "W. Centr
|
|
|
84
72
|
if (!reactHotLoader) {
|
|
85
73
|
return;
|
|
86
74
|
}
|
|
87
|
-
reactHotLoader.register(
|
|
88
|
-
reactHotLoader.register(
|
|
89
|
-
reactHotLoader.register(
|
|
75
|
+
reactHotLoader.register(getIanaTimeZone, "getIanaTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
76
|
+
reactHotLoader.register(getIanaTimeZoneFromWindowsName, "getIanaTimeZoneFromWindowsName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
77
|
+
reactHotLoader.register(getWindowsTimeZone, "getWindowsTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
90
78
|
reactHotLoader.register(convertTimeToLocalTimeZone, "convertTimeToLocalTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
91
79
|
reactHotLoader.register(convertTimeToOtherTimeZone, "convertTimeToOtherTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
92
|
-
reactHotLoader.register(timeZonesList, "timeZonesList", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
93
80
|
})();
|
|
94
81
|
;
|
|
95
82
|
(function () {
|