@hero-design/rn 8.93.0 → 8.96.0
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/.turbo/turbo-build.log +7 -2
- package/CHANGELOG.md +18 -0
- package/es/index.js +2128 -1023
- package/lib/index.js +2127 -1021
- package/locales/en_AU.js +10 -0
- package/locales/en_AU.mjs +8 -0
- package/locales/en_CA.js +10 -0
- package/locales/en_CA.mjs +8 -0
- package/locales/index.js +11 -0
- package/locales/index.mjs +9 -0
- package/locales/types.js +2 -0
- package/locales/types.mjs +1 -0
- package/package.json +4 -3
- package/rollup.config.mjs +97 -58
- package/src/components/DatePicker/DatePickerAndroid.tsx +27 -7
- package/src/components/DatePicker/DatePickerCalendar.tsx +23 -4
- package/src/components/DatePicker/DatePickerIOS.tsx +27 -8
- package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +30 -1
- package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +27 -0
- package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +27 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +28 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
- package/src/components/DatePicker/hooks/__tests__/useFormatDate.spec.ts +61 -0
- package/src/components/DatePicker/{useCalculateDate.tsx → hooks/useCalculateDate.tsx} +1 -1
- package/src/components/DatePicker/hooks/useFormatDate.ts +25 -0
- package/src/components/DatePicker/hooks/utils.ts +30 -0
- package/src/components/DatePicker/types.ts +15 -1
- package/src/components/HeroDesignProvider/index.tsx +19 -6
- package/src/components/LocaleProvider/__tests__/utils.specs.ts +12 -0
- package/src/components/LocaleProvider/context.ts +7 -0
- package/src/components/LocaleProvider/hooks.ts +19 -0
- package/src/components/LocaleProvider/index.tsx +27 -0
- package/src/components/LocaleProvider/utils.ts +14 -0
- package/src/components/{Empty → StatusScreens/Empty}/StyledEmpty.tsx +11 -2
- package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +468 -0
- package/src/components/{Empty → StatusScreens/Empty}/__tests__/index.spec.tsx +16 -2
- package/src/components/StatusScreens/Empty/index.tsx +97 -0
- package/src/components/{Error → StatusScreens/Error}/StyledError.tsx +4 -4
- package/src/components/{Error → StatusScreens/Error}/__tests__/__snapshots__/index.spec.tsx.snap +300 -0
- package/src/components/{Error → StatusScreens/Error}/__tests__/index.spec.tsx +13 -3
- package/src/components/{Error → StatusScreens/Error}/index.tsx +39 -7
- package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +31 -0
- package/src/components/StatusScreens/StatusIcon/assets/Add.tsx +49 -0
- package/src/components/StatusScreens/StatusIcon/assets/Boom.tsx +61 -0
- package/src/components/StatusScreens/StatusIcon/assets/Build.tsx +45 -0
- package/src/components/StatusScreens/StatusIcon/assets/Clock.tsx +38 -0
- package/src/components/StatusScreens/StatusIcon/assets/Confetti.tsx +78 -0
- package/src/components/StatusScreens/StatusIcon/assets/Connections.tsx +57 -0
- package/src/components/StatusScreens/StatusIcon/assets/Error.tsx +55 -0
- package/src/components/StatusScreens/StatusIcon/assets/Info.tsx +35 -0
- package/src/components/StatusScreens/StatusIcon/assets/List.tsx +37 -0
- package/src/components/StatusScreens/StatusIcon/assets/Location.tsx +37 -0
- package/src/components/StatusScreens/StatusIcon/assets/Merge.tsx +59 -0
- package/src/components/StatusScreens/StatusIcon/assets/Notifications.tsx +26 -0
- package/src/components/StatusScreens/StatusIcon/assets/Search.tsx +36 -0
- package/src/components/StatusScreens/StatusIcon/assets/Star.tsx +37 -0
- package/src/components/StatusScreens/StatusIcon/assets/Success.tsx +41 -0
- package/src/components/StatusScreens/StatusIcon/assets/User.tsx +43 -0
- package/src/components/StatusScreens/StatusIcon/index.tsx +63 -0
- package/src/components/StatusScreens/StatusIcon/types.ts +5 -0
- package/src/components/{Success → StatusScreens/Success}/StyledSuccess.tsx +4 -4
- package/src/components/{Success → StatusScreens/Success}/__tests__/__snapshots__/index.spec.tsx.snap +263 -0
- package/src/components/{Success → StatusScreens/Success}/__tests__/index.spec.tsx +13 -4
- package/src/components/{Success → StatusScreens/Success}/index.tsx +38 -7
- package/src/index.ts +5 -3
- package/src/locales/en_AU.ts +10 -0
- package/src/locales/en_CA.ts +10 -0
- package/src/locales/index.ts +7 -0
- package/src/locales/types.ts +12 -0
- package/src/testHelpers/renderWithTheme.tsx +7 -1
- package/src/types.ts +4 -0
- package/stats/8.94.0/rn-stats.html +4842 -0
- package/stats/8.95.0/rn-stats.html +4842 -0
- package/stats/8.96.0/rn-stats.html +4842 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/{useCalculateDate.d.ts → hooks/useCalculateDate.d.ts} +1 -1
- package/types/components/DatePicker/hooks/useFormatDate.d.ts +10 -0
- package/types/components/DatePicker/hooks/utils.d.ts +6 -0
- package/types/components/DatePicker/types.d.ts +8 -1
- package/types/components/HeroDesignProvider/index.d.ts +5 -1
- package/types/components/LocaleProvider/__tests__/utils.specs.d.ts +1 -0
- package/types/components/LocaleProvider/context.d.ts +3 -0
- package/types/components/LocaleProvider/hooks.d.ts +5 -0
- package/types/components/LocaleProvider/index.d.ts +7 -0
- package/types/components/LocaleProvider/utils.d.ts +3 -0
- package/types/components/{Empty → StatusScreens/Empty}/StyledEmpty.d.ts +9 -3
- package/types/components/{Empty → StatusScreens/Empty}/index.d.ts +8 -3
- package/types/components/{Error → StatusScreens/Error}/StyledError.d.ts +6 -6
- package/types/components/{Error → StatusScreens/Error}/index.d.ts +6 -1
- package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/index.d.ts +26 -0
- package/types/components/StatusScreens/StatusIcon/types.d.ts +5 -0
- package/types/components/{Success → StatusScreens/Success}/StyledSuccess.d.ts +5 -5
- package/types/components/{Success → StatusScreens/Success}/index.d.ts +6 -1
- package/types/index.d.ts +5 -4
- package/types/locales/en_AU.d.ts +3 -0
- package/types/locales/en_CA.d.ts +3 -0
- package/types/locales/index.d.ts +5 -0
- package/types/locales/types.d.ts +10 -0
- package/types/types.d.ts +2 -1
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -218
- package/src/components/Empty/index.tsx +0 -73
package/lib/index.js
CHANGED
|
@@ -586,14 +586,14 @@ function _toPropertyKey(t) {
|
|
|
586
586
|
var i = _toPrimitive(t, "string");
|
|
587
587
|
return "symbol" == typeof i ? i : i + "";
|
|
588
588
|
}
|
|
589
|
-
function _typeof(o) {
|
|
589
|
+
function _typeof$1(o) {
|
|
590
590
|
"@babel/helpers - typeof";
|
|
591
591
|
|
|
592
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
592
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
593
593
|
return typeof o;
|
|
594
594
|
} : function (o) {
|
|
595
595
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
596
|
-
}, _typeof(o);
|
|
596
|
+
}, _typeof$1(o);
|
|
597
597
|
}
|
|
598
598
|
function _unsupportedIterableToArray(r, a) {
|
|
599
599
|
if (r) {
|
|
@@ -6118,7 +6118,7 @@ function requireCamelize() {
|
|
|
6118
6118
|
return walk(obj);
|
|
6119
6119
|
};
|
|
6120
6120
|
function walk(obj) {
|
|
6121
|
-
if (!obj || _typeof(obj) !== 'object') return obj;
|
|
6121
|
+
if (!obj || _typeof$1(obj) !== 'object') return obj;
|
|
6122
6122
|
if (isDate(obj) || isRegex(obj)) return obj;
|
|
6123
6123
|
if (isArray(obj)) return map(obj, walk);
|
|
6124
6124
|
return reduce(objectKeys(obj), function (acc, key) {
|
|
@@ -6481,7 +6481,7 @@ function requireCssToReactNative() {
|
|
|
6481
6481
|
value: true
|
|
6482
6482
|
});
|
|
6483
6483
|
function _interopDefault(ex) {
|
|
6484
|
-
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
6484
|
+
return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
6485
6485
|
}
|
|
6486
6486
|
var parse = requireLib$1();
|
|
6487
6487
|
var parse__default = _interopDefault(parse);
|
|
@@ -7205,7 +7205,7 @@ var generated = {};
|
|
|
7205
7205
|
var buffer = '';
|
|
7206
7206
|
var lastType;
|
|
7207
7207
|
function handleInterpolation(interpolation, i, arr) {
|
|
7208
|
-
var type = _typeof(interpolation);
|
|
7208
|
+
var type = _typeof$1(interpolation);
|
|
7209
7209
|
if (type === 'string') {
|
|
7210
7210
|
// strip comments
|
|
7211
7211
|
interpolation = interpolation.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, '');
|
|
@@ -10805,12 +10805,59 @@ var BottomSheet$1 = Object.assign(BottomSheet, {
|
|
|
10805
10805
|
ScrollView: BottomSheetScrollView
|
|
10806
10806
|
});
|
|
10807
10807
|
|
|
10808
|
+
function _typeof(o) {
|
|
10809
|
+
"@babel/helpers - typeof";
|
|
10810
|
+
|
|
10811
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
10812
|
+
return typeof o;
|
|
10813
|
+
} : function (o) {
|
|
10814
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10815
|
+
}, _typeof(o);
|
|
10816
|
+
}
|
|
10817
|
+
|
|
10808
10818
|
function requiredArgs(required, args) {
|
|
10809
10819
|
if (args.length < required) {
|
|
10810
10820
|
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
10811
10821
|
}
|
|
10812
10822
|
}
|
|
10813
10823
|
|
|
10824
|
+
/**
|
|
10825
|
+
* @name isDate
|
|
10826
|
+
* @category Common Helpers
|
|
10827
|
+
* @summary Is the given value a date?
|
|
10828
|
+
*
|
|
10829
|
+
* @description
|
|
10830
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
10831
|
+
*
|
|
10832
|
+
* @param {*} value - the value to check
|
|
10833
|
+
* @returns {boolean} true if the given value is a date
|
|
10834
|
+
* @throws {TypeError} 1 arguments required
|
|
10835
|
+
*
|
|
10836
|
+
* @example
|
|
10837
|
+
* // For a valid date:
|
|
10838
|
+
* const result = isDate(new Date())
|
|
10839
|
+
* //=> true
|
|
10840
|
+
*
|
|
10841
|
+
* @example
|
|
10842
|
+
* // For an invalid date:
|
|
10843
|
+
* const result = isDate(new Date(NaN))
|
|
10844
|
+
* //=> true
|
|
10845
|
+
*
|
|
10846
|
+
* @example
|
|
10847
|
+
* // For some value:
|
|
10848
|
+
* const result = isDate('2014-02-31')
|
|
10849
|
+
* //=> false
|
|
10850
|
+
*
|
|
10851
|
+
* @example
|
|
10852
|
+
* // For an object:
|
|
10853
|
+
* const result = isDate({})
|
|
10854
|
+
* //=> false
|
|
10855
|
+
*/
|
|
10856
|
+
function isDate(value) {
|
|
10857
|
+
requiredArgs(1, arguments);
|
|
10858
|
+
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
10859
|
+
}
|
|
10860
|
+
|
|
10814
10861
|
/**
|
|
10815
10862
|
* @name toDate
|
|
10816
10863
|
* @category Common Helpers
|
|
@@ -10841,11 +10888,11 @@ function requiredArgs(required, args) {
|
|
|
10841
10888
|
* const result = toDate(1392098430000)
|
|
10842
10889
|
* //=> Tue Feb 11 2014 11:30:30
|
|
10843
10890
|
*/
|
|
10844
|
-
|
|
10845
10891
|
function toDate(argument) {
|
|
10846
10892
|
requiredArgs(1, arguments);
|
|
10847
|
-
var argStr = Object.prototype.toString.call(argument);
|
|
10893
|
+
var argStr = Object.prototype.toString.call(argument);
|
|
10848
10894
|
|
|
10895
|
+
// Clone the date
|
|
10849
10896
|
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
10850
10897
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
10851
10898
|
return new Date(argument.getTime());
|
|
@@ -10854,8 +10901,8 @@ function toDate(argument) {
|
|
|
10854
10901
|
} else {
|
|
10855
10902
|
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
10856
10903
|
// eslint-disable-next-line no-console
|
|
10857
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://
|
|
10858
|
-
|
|
10904
|
+
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
10905
|
+
// eslint-disable-next-line no-console
|
|
10859
10906
|
console.warn(new Error().stack);
|
|
10860
10907
|
}
|
|
10861
10908
|
return new Date(NaN);
|
|
@@ -10874,544 +10921,34 @@ function toDate(argument) {
|
|
|
10874
10921
|
*
|
|
10875
10922
|
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
10876
10923
|
*
|
|
10877
|
-
* ### v2.0.0 breaking changes:
|
|
10878
|
-
*
|
|
10879
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
10880
|
-
*
|
|
10881
|
-
* - Now `isValid` doesn't throw an exception
|
|
10882
|
-
* if the first argument is not an instance of Date.
|
|
10883
|
-
* Instead, argument is converted beforehand using `toDate`.
|
|
10884
|
-
*
|
|
10885
|
-
* Examples:
|
|
10886
|
-
*
|
|
10887
|
-
* | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
|
|
10888
|
-
* |---------------------------|---------------|---------------|
|
|
10889
|
-
* | `new Date()` | `true` | `true` |
|
|
10890
|
-
* | `new Date('2016-01-01')` | `true` | `true` |
|
|
10891
|
-
* | `new Date('')` | `false` | `false` |
|
|
10892
|
-
* | `new Date(1488370835081)` | `true` | `true` |
|
|
10893
|
-
* | `new Date(NaN)` | `false` | `false` |
|
|
10894
|
-
* | `'2016-01-01'` | `TypeError` | `false` |
|
|
10895
|
-
* | `''` | `TypeError` | `false` |
|
|
10896
|
-
* | `1488370835081` | `TypeError` | `true` |
|
|
10897
|
-
* | `NaN` | `TypeError` | `false` |
|
|
10898
|
-
*
|
|
10899
|
-
* We introduce this change to make *date-fns* consistent with ECMAScript behavior
|
|
10900
|
-
* that try to coerce arguments to the expected type
|
|
10901
|
-
* (which is also the case with other *date-fns* functions).
|
|
10902
|
-
*
|
|
10903
10924
|
* @param {*} date - the date to check
|
|
10904
10925
|
* @returns {Boolean} the date is valid
|
|
10905
10926
|
* @throws {TypeError} 1 argument required
|
|
10906
10927
|
*
|
|
10907
10928
|
* @example
|
|
10908
10929
|
* // For the valid date:
|
|
10909
|
-
*
|
|
10930
|
+
* const result = isValid(new Date(2014, 1, 31))
|
|
10910
10931
|
* //=> true
|
|
10911
10932
|
*
|
|
10912
10933
|
* @example
|
|
10913
10934
|
* // For the value, convertable into a date:
|
|
10914
|
-
*
|
|
10935
|
+
* const result = isValid(1393804800000)
|
|
10915
10936
|
* //=> true
|
|
10916
10937
|
*
|
|
10917
10938
|
* @example
|
|
10918
10939
|
* // For the invalid date:
|
|
10919
|
-
*
|
|
10940
|
+
* const result = isValid(new Date(''))
|
|
10920
10941
|
* //=> false
|
|
10921
10942
|
*/
|
|
10922
|
-
|
|
10923
10943
|
function isValid(dirtyDate) {
|
|
10924
10944
|
requiredArgs(1, arguments);
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
}
|
|
10928
|
-
|
|
10929
|
-
var formatDistanceLocale = {
|
|
10930
|
-
lessThanXSeconds: {
|
|
10931
|
-
one: 'less than a second',
|
|
10932
|
-
other: 'less than {{count}} seconds'
|
|
10933
|
-
},
|
|
10934
|
-
xSeconds: {
|
|
10935
|
-
one: '1 second',
|
|
10936
|
-
other: '{{count}} seconds'
|
|
10937
|
-
},
|
|
10938
|
-
halfAMinute: 'half a minute',
|
|
10939
|
-
lessThanXMinutes: {
|
|
10940
|
-
one: 'less than a minute',
|
|
10941
|
-
other: 'less than {{count}} minutes'
|
|
10942
|
-
},
|
|
10943
|
-
xMinutes: {
|
|
10944
|
-
one: '1 minute',
|
|
10945
|
-
other: '{{count}} minutes'
|
|
10946
|
-
},
|
|
10947
|
-
aboutXHours: {
|
|
10948
|
-
one: 'about 1 hour',
|
|
10949
|
-
other: 'about {{count}} hours'
|
|
10950
|
-
},
|
|
10951
|
-
xHours: {
|
|
10952
|
-
one: '1 hour',
|
|
10953
|
-
other: '{{count}} hours'
|
|
10954
|
-
},
|
|
10955
|
-
xDays: {
|
|
10956
|
-
one: '1 day',
|
|
10957
|
-
other: '{{count}} days'
|
|
10958
|
-
},
|
|
10959
|
-
aboutXWeeks: {
|
|
10960
|
-
one: 'about 1 week',
|
|
10961
|
-
other: 'about {{count}} weeks'
|
|
10962
|
-
},
|
|
10963
|
-
xWeeks: {
|
|
10964
|
-
one: '1 week',
|
|
10965
|
-
other: '{{count}} weeks'
|
|
10966
|
-
},
|
|
10967
|
-
aboutXMonths: {
|
|
10968
|
-
one: 'about 1 month',
|
|
10969
|
-
other: 'about {{count}} months'
|
|
10970
|
-
},
|
|
10971
|
-
xMonths: {
|
|
10972
|
-
one: '1 month',
|
|
10973
|
-
other: '{{count}} months'
|
|
10974
|
-
},
|
|
10975
|
-
aboutXYears: {
|
|
10976
|
-
one: 'about 1 year',
|
|
10977
|
-
other: 'about {{count}} years'
|
|
10978
|
-
},
|
|
10979
|
-
xYears: {
|
|
10980
|
-
one: '1 year',
|
|
10981
|
-
other: '{{count}} years'
|
|
10982
|
-
},
|
|
10983
|
-
overXYears: {
|
|
10984
|
-
one: 'over 1 year',
|
|
10985
|
-
other: 'over {{count}} years'
|
|
10986
|
-
},
|
|
10987
|
-
almostXYears: {
|
|
10988
|
-
one: 'almost 1 year',
|
|
10989
|
-
other: 'almost {{count}} years'
|
|
10990
|
-
}
|
|
10991
|
-
};
|
|
10992
|
-
function formatDistance(token, count, options) {
|
|
10993
|
-
options = options || {};
|
|
10994
|
-
var result;
|
|
10995
|
-
if (typeof formatDistanceLocale[token] === 'string') {
|
|
10996
|
-
result = formatDistanceLocale[token];
|
|
10997
|
-
} else if (count === 1) {
|
|
10998
|
-
result = formatDistanceLocale[token].one;
|
|
10999
|
-
} else {
|
|
11000
|
-
result = formatDistanceLocale[token].other.replace('{{count}}', count);
|
|
11001
|
-
}
|
|
11002
|
-
if (options.addSuffix) {
|
|
11003
|
-
if (options.comparison > 0) {
|
|
11004
|
-
return 'in ' + result;
|
|
11005
|
-
} else {
|
|
11006
|
-
return result + ' ago';
|
|
11007
|
-
}
|
|
11008
|
-
}
|
|
11009
|
-
return result;
|
|
11010
|
-
}
|
|
11011
|
-
|
|
11012
|
-
function buildFormatLongFn(args) {
|
|
11013
|
-
return function (dirtyOptions) {
|
|
11014
|
-
var options = dirtyOptions || {};
|
|
11015
|
-
var width = options.width ? String(options.width) : args.defaultWidth;
|
|
11016
|
-
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
11017
|
-
return format;
|
|
11018
|
-
};
|
|
11019
|
-
}
|
|
11020
|
-
|
|
11021
|
-
var dateFormats = {
|
|
11022
|
-
full: 'EEEE, MMMM do, y',
|
|
11023
|
-
"long": 'MMMM do, y',
|
|
11024
|
-
medium: 'MMM d, y',
|
|
11025
|
-
"short": 'MM/dd/yyyy'
|
|
11026
|
-
};
|
|
11027
|
-
var timeFormats = {
|
|
11028
|
-
full: 'h:mm:ss a zzzz',
|
|
11029
|
-
"long": 'h:mm:ss a z',
|
|
11030
|
-
medium: 'h:mm:ss a',
|
|
11031
|
-
"short": 'h:mm a'
|
|
11032
|
-
};
|
|
11033
|
-
var dateTimeFormats = {
|
|
11034
|
-
full: "{{date}} 'at' {{time}}",
|
|
11035
|
-
"long": "{{date}} 'at' {{time}}",
|
|
11036
|
-
medium: '{{date}}, {{time}}',
|
|
11037
|
-
"short": '{{date}}, {{time}}'
|
|
11038
|
-
};
|
|
11039
|
-
var formatLong = {
|
|
11040
|
-
date: buildFormatLongFn({
|
|
11041
|
-
formats: dateFormats,
|
|
11042
|
-
defaultWidth: 'full'
|
|
11043
|
-
}),
|
|
11044
|
-
time: buildFormatLongFn({
|
|
11045
|
-
formats: timeFormats,
|
|
11046
|
-
defaultWidth: 'full'
|
|
11047
|
-
}),
|
|
11048
|
-
dateTime: buildFormatLongFn({
|
|
11049
|
-
formats: dateTimeFormats,
|
|
11050
|
-
defaultWidth: 'full'
|
|
11051
|
-
})
|
|
11052
|
-
};
|
|
11053
|
-
|
|
11054
|
-
var formatRelativeLocale = {
|
|
11055
|
-
lastWeek: "'last' eeee 'at' p",
|
|
11056
|
-
yesterday: "'yesterday at' p",
|
|
11057
|
-
today: "'today at' p",
|
|
11058
|
-
tomorrow: "'tomorrow at' p",
|
|
11059
|
-
nextWeek: "eeee 'at' p",
|
|
11060
|
-
other: 'P'
|
|
11061
|
-
};
|
|
11062
|
-
function formatRelative(token, _date, _baseDate, _options) {
|
|
11063
|
-
return formatRelativeLocale[token];
|
|
11064
|
-
}
|
|
11065
|
-
|
|
11066
|
-
function buildLocalizeFn(args) {
|
|
11067
|
-
return function (dirtyIndex, dirtyOptions) {
|
|
11068
|
-
var options = dirtyOptions || {};
|
|
11069
|
-
var context = options.context ? String(options.context) : 'standalone';
|
|
11070
|
-
var valuesArray;
|
|
11071
|
-
if (context === 'formatting' && args.formattingValues) {
|
|
11072
|
-
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
11073
|
-
var width = options.width ? String(options.width) : defaultWidth;
|
|
11074
|
-
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
11075
|
-
} else {
|
|
11076
|
-
var _defaultWidth = args.defaultWidth;
|
|
11077
|
-
var _width = options.width ? String(options.width) : args.defaultWidth;
|
|
11078
|
-
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
|
11079
|
-
}
|
|
11080
|
-
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
|
11081
|
-
return valuesArray[index];
|
|
11082
|
-
};
|
|
11083
|
-
}
|
|
11084
|
-
|
|
11085
|
-
var eraValues = {
|
|
11086
|
-
narrow: ['B', 'A'],
|
|
11087
|
-
abbreviated: ['BC', 'AD'],
|
|
11088
|
-
wide: ['Before Christ', 'Anno Domini']
|
|
11089
|
-
};
|
|
11090
|
-
var quarterValues = {
|
|
11091
|
-
narrow: ['1', '2', '3', '4'],
|
|
11092
|
-
abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
11093
|
-
wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.
|
|
11094
|
-
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
11095
|
-
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
11096
|
-
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
11097
|
-
};
|
|
11098
|
-
|
|
11099
|
-
var monthValues = {
|
|
11100
|
-
narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
|
11101
|
-
abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
11102
|
-
wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
|
11103
|
-
};
|
|
11104
|
-
var dayValues = {
|
|
11105
|
-
narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
|
|
11106
|
-
"short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
11107
|
-
abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
11108
|
-
wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
|
11109
|
-
};
|
|
11110
|
-
var dayPeriodValues = {
|
|
11111
|
-
narrow: {
|
|
11112
|
-
am: 'a',
|
|
11113
|
-
pm: 'p',
|
|
11114
|
-
midnight: 'mi',
|
|
11115
|
-
noon: 'n',
|
|
11116
|
-
morning: 'morning',
|
|
11117
|
-
afternoon: 'afternoon',
|
|
11118
|
-
evening: 'evening',
|
|
11119
|
-
night: 'night'
|
|
11120
|
-
},
|
|
11121
|
-
abbreviated: {
|
|
11122
|
-
am: 'AM',
|
|
11123
|
-
pm: 'PM',
|
|
11124
|
-
midnight: 'midnight',
|
|
11125
|
-
noon: 'noon',
|
|
11126
|
-
morning: 'morning',
|
|
11127
|
-
afternoon: 'afternoon',
|
|
11128
|
-
evening: 'evening',
|
|
11129
|
-
night: 'night'
|
|
11130
|
-
},
|
|
11131
|
-
wide: {
|
|
11132
|
-
am: 'a.m.',
|
|
11133
|
-
pm: 'p.m.',
|
|
11134
|
-
midnight: 'midnight',
|
|
11135
|
-
noon: 'noon',
|
|
11136
|
-
morning: 'morning',
|
|
11137
|
-
afternoon: 'afternoon',
|
|
11138
|
-
evening: 'evening',
|
|
11139
|
-
night: 'night'
|
|
11140
|
-
}
|
|
11141
|
-
};
|
|
11142
|
-
var formattingDayPeriodValues = {
|
|
11143
|
-
narrow: {
|
|
11144
|
-
am: 'a',
|
|
11145
|
-
pm: 'p',
|
|
11146
|
-
midnight: 'mi',
|
|
11147
|
-
noon: 'n',
|
|
11148
|
-
morning: 'in the morning',
|
|
11149
|
-
afternoon: 'in the afternoon',
|
|
11150
|
-
evening: 'in the evening',
|
|
11151
|
-
night: 'at night'
|
|
11152
|
-
},
|
|
11153
|
-
abbreviated: {
|
|
11154
|
-
am: 'AM',
|
|
11155
|
-
pm: 'PM',
|
|
11156
|
-
midnight: 'midnight',
|
|
11157
|
-
noon: 'noon',
|
|
11158
|
-
morning: 'in the morning',
|
|
11159
|
-
afternoon: 'in the afternoon',
|
|
11160
|
-
evening: 'in the evening',
|
|
11161
|
-
night: 'at night'
|
|
11162
|
-
},
|
|
11163
|
-
wide: {
|
|
11164
|
-
am: 'a.m.',
|
|
11165
|
-
pm: 'p.m.',
|
|
11166
|
-
midnight: 'midnight',
|
|
11167
|
-
noon: 'noon',
|
|
11168
|
-
morning: 'in the morning',
|
|
11169
|
-
afternoon: 'in the afternoon',
|
|
11170
|
-
evening: 'in the evening',
|
|
11171
|
-
night: 'at night'
|
|
11172
|
-
}
|
|
11173
|
-
};
|
|
11174
|
-
function ordinalNumber(dirtyNumber, _dirtyOptions) {
|
|
11175
|
-
var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
|
|
11176
|
-
// if they are different for different grammatical genders,
|
|
11177
|
-
// use `options.unit`:
|
|
11178
|
-
//
|
|
11179
|
-
// var options = dirtyOptions || {}
|
|
11180
|
-
// var unit = String(options.unit)
|
|
11181
|
-
//
|
|
11182
|
-
// where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
11183
|
-
// 'day', 'hour', 'minute', 'second'
|
|
11184
|
-
|
|
11185
|
-
var rem100 = number % 100;
|
|
11186
|
-
if (rem100 > 20 || rem100 < 10) {
|
|
11187
|
-
switch (rem100 % 10) {
|
|
11188
|
-
case 1:
|
|
11189
|
-
return number + 'st';
|
|
11190
|
-
case 2:
|
|
11191
|
-
return number + 'nd';
|
|
11192
|
-
case 3:
|
|
11193
|
-
return number + 'rd';
|
|
11194
|
-
}
|
|
11195
|
-
}
|
|
11196
|
-
return number + 'th';
|
|
11197
|
-
}
|
|
11198
|
-
var localize = {
|
|
11199
|
-
ordinalNumber: ordinalNumber,
|
|
11200
|
-
era: buildLocalizeFn({
|
|
11201
|
-
values: eraValues,
|
|
11202
|
-
defaultWidth: 'wide'
|
|
11203
|
-
}),
|
|
11204
|
-
quarter: buildLocalizeFn({
|
|
11205
|
-
values: quarterValues,
|
|
11206
|
-
defaultWidth: 'wide',
|
|
11207
|
-
argumentCallback: function argumentCallback(quarter) {
|
|
11208
|
-
return Number(quarter) - 1;
|
|
11209
|
-
}
|
|
11210
|
-
}),
|
|
11211
|
-
month: buildLocalizeFn({
|
|
11212
|
-
values: monthValues,
|
|
11213
|
-
defaultWidth: 'wide'
|
|
11214
|
-
}),
|
|
11215
|
-
day: buildLocalizeFn({
|
|
11216
|
-
values: dayValues,
|
|
11217
|
-
defaultWidth: 'wide'
|
|
11218
|
-
}),
|
|
11219
|
-
dayPeriod: buildLocalizeFn({
|
|
11220
|
-
values: dayPeriodValues,
|
|
11221
|
-
defaultWidth: 'wide',
|
|
11222
|
-
formattingValues: formattingDayPeriodValues,
|
|
11223
|
-
defaultFormattingWidth: 'wide'
|
|
11224
|
-
})
|
|
11225
|
-
};
|
|
11226
|
-
|
|
11227
|
-
function buildMatchPatternFn(args) {
|
|
11228
|
-
return function (dirtyString, dirtyOptions) {
|
|
11229
|
-
var string = String(dirtyString);
|
|
11230
|
-
var options = dirtyOptions || {};
|
|
11231
|
-
var matchResult = string.match(args.matchPattern);
|
|
11232
|
-
if (!matchResult) {
|
|
11233
|
-
return null;
|
|
11234
|
-
}
|
|
11235
|
-
var matchedString = matchResult[0];
|
|
11236
|
-
var parseResult = string.match(args.parsePattern);
|
|
11237
|
-
if (!parseResult) {
|
|
11238
|
-
return null;
|
|
11239
|
-
}
|
|
11240
|
-
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
11241
|
-
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
11242
|
-
return {
|
|
11243
|
-
value: value,
|
|
11244
|
-
rest: string.slice(matchedString.length)
|
|
11245
|
-
};
|
|
11246
|
-
};
|
|
11247
|
-
}
|
|
11248
|
-
|
|
11249
|
-
function buildMatchFn(args) {
|
|
11250
|
-
return function (dirtyString, dirtyOptions) {
|
|
11251
|
-
var string = String(dirtyString);
|
|
11252
|
-
var options = dirtyOptions || {};
|
|
11253
|
-
var width = options.width;
|
|
11254
|
-
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
11255
|
-
var matchResult = string.match(matchPattern);
|
|
11256
|
-
if (!matchResult) {
|
|
11257
|
-
return null;
|
|
11258
|
-
}
|
|
11259
|
-
var matchedString = matchResult[0];
|
|
11260
|
-
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
11261
|
-
var value;
|
|
11262
|
-
if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {
|
|
11263
|
-
value = findIndex(parsePatterns, function (pattern) {
|
|
11264
|
-
return pattern.test(matchedString);
|
|
11265
|
-
});
|
|
11266
|
-
} else {
|
|
11267
|
-
value = findKey(parsePatterns, function (pattern) {
|
|
11268
|
-
return pattern.test(matchedString);
|
|
11269
|
-
});
|
|
11270
|
-
}
|
|
11271
|
-
value = args.valueCallback ? args.valueCallback(value) : value;
|
|
11272
|
-
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
11273
|
-
return {
|
|
11274
|
-
value: value,
|
|
11275
|
-
rest: string.slice(matchedString.length)
|
|
11276
|
-
};
|
|
11277
|
-
};
|
|
11278
|
-
}
|
|
11279
|
-
function findKey(object, predicate) {
|
|
11280
|
-
for (var key in object) {
|
|
11281
|
-
if (object.hasOwnProperty(key) && predicate(object[key])) {
|
|
11282
|
-
return key;
|
|
11283
|
-
}
|
|
11284
|
-
}
|
|
11285
|
-
}
|
|
11286
|
-
function findIndex(array, predicate) {
|
|
11287
|
-
for (var key = 0; key < array.length; key++) {
|
|
11288
|
-
if (predicate(array[key])) {
|
|
11289
|
-
return key;
|
|
11290
|
-
}
|
|
10945
|
+
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
10946
|
+
return false;
|
|
11291
10947
|
}
|
|
10948
|
+
var date = toDate(dirtyDate);
|
|
10949
|
+
return !isNaN(Number(date));
|
|
11292
10950
|
}
|
|
11293
10951
|
|
|
11294
|
-
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
11295
|
-
var parseOrdinalNumberPattern = /\d+/i;
|
|
11296
|
-
var matchEraPatterns = {
|
|
11297
|
-
narrow: /^(b|a)/i,
|
|
11298
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
11299
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
11300
|
-
};
|
|
11301
|
-
var parseEraPatterns = {
|
|
11302
|
-
any: [/^b/i, /^(a|c)/i]
|
|
11303
|
-
};
|
|
11304
|
-
var matchQuarterPatterns = {
|
|
11305
|
-
narrow: /^[1234]/i,
|
|
11306
|
-
abbreviated: /^q[1234]/i,
|
|
11307
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
11308
|
-
};
|
|
11309
|
-
var parseQuarterPatterns = {
|
|
11310
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
11311
|
-
};
|
|
11312
|
-
var matchMonthPatterns = {
|
|
11313
|
-
narrow: /^[jfmasond]/i,
|
|
11314
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
11315
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
11316
|
-
};
|
|
11317
|
-
var parseMonthPatterns = {
|
|
11318
|
-
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
11319
|
-
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
11320
|
-
};
|
|
11321
|
-
var matchDayPatterns = {
|
|
11322
|
-
narrow: /^[smtwf]/i,
|
|
11323
|
-
"short": /^(su|mo|tu|we|th|fr|sa)/i,
|
|
11324
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
11325
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
11326
|
-
};
|
|
11327
|
-
var parseDayPatterns = {
|
|
11328
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
11329
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
11330
|
-
};
|
|
11331
|
-
var matchDayPeriodPatterns = {
|
|
11332
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
11333
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
11334
|
-
};
|
|
11335
|
-
var parseDayPeriodPatterns = {
|
|
11336
|
-
any: {
|
|
11337
|
-
am: /^a/i,
|
|
11338
|
-
pm: /^p/i,
|
|
11339
|
-
midnight: /^mi/i,
|
|
11340
|
-
noon: /^no/i,
|
|
11341
|
-
morning: /morning/i,
|
|
11342
|
-
afternoon: /afternoon/i,
|
|
11343
|
-
evening: /evening/i,
|
|
11344
|
-
night: /night/i
|
|
11345
|
-
}
|
|
11346
|
-
};
|
|
11347
|
-
var match = {
|
|
11348
|
-
ordinalNumber: buildMatchPatternFn({
|
|
11349
|
-
matchPattern: matchOrdinalNumberPattern,
|
|
11350
|
-
parsePattern: parseOrdinalNumberPattern,
|
|
11351
|
-
valueCallback: function valueCallback(value) {
|
|
11352
|
-
return parseInt(value, 10);
|
|
11353
|
-
}
|
|
11354
|
-
}),
|
|
11355
|
-
era: buildMatchFn({
|
|
11356
|
-
matchPatterns: matchEraPatterns,
|
|
11357
|
-
defaultMatchWidth: 'wide',
|
|
11358
|
-
parsePatterns: parseEraPatterns,
|
|
11359
|
-
defaultParseWidth: 'any'
|
|
11360
|
-
}),
|
|
11361
|
-
quarter: buildMatchFn({
|
|
11362
|
-
matchPatterns: matchQuarterPatterns,
|
|
11363
|
-
defaultMatchWidth: 'wide',
|
|
11364
|
-
parsePatterns: parseQuarterPatterns,
|
|
11365
|
-
defaultParseWidth: 'any',
|
|
11366
|
-
valueCallback: function valueCallback(index) {
|
|
11367
|
-
return index + 1;
|
|
11368
|
-
}
|
|
11369
|
-
}),
|
|
11370
|
-
month: buildMatchFn({
|
|
11371
|
-
matchPatterns: matchMonthPatterns,
|
|
11372
|
-
defaultMatchWidth: 'wide',
|
|
11373
|
-
parsePatterns: parseMonthPatterns,
|
|
11374
|
-
defaultParseWidth: 'any'
|
|
11375
|
-
}),
|
|
11376
|
-
day: buildMatchFn({
|
|
11377
|
-
matchPatterns: matchDayPatterns,
|
|
11378
|
-
defaultMatchWidth: 'wide',
|
|
11379
|
-
parsePatterns: parseDayPatterns,
|
|
11380
|
-
defaultParseWidth: 'any'
|
|
11381
|
-
}),
|
|
11382
|
-
dayPeriod: buildMatchFn({
|
|
11383
|
-
matchPatterns: matchDayPeriodPatterns,
|
|
11384
|
-
defaultMatchWidth: 'any',
|
|
11385
|
-
parsePatterns: parseDayPeriodPatterns,
|
|
11386
|
-
defaultParseWidth: 'any'
|
|
11387
|
-
})
|
|
11388
|
-
};
|
|
11389
|
-
|
|
11390
|
-
/**
|
|
11391
|
-
* @type {Locale}
|
|
11392
|
-
* @category Locales
|
|
11393
|
-
* @summary English locale (United States).
|
|
11394
|
-
* @language English
|
|
11395
|
-
* @iso-639-2 eng
|
|
11396
|
-
* @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
|
|
11397
|
-
* @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
|
|
11398
|
-
*/
|
|
11399
|
-
|
|
11400
|
-
var locale = {
|
|
11401
|
-
code: 'en-US',
|
|
11402
|
-
formatDistance: formatDistance,
|
|
11403
|
-
formatLong: formatLong,
|
|
11404
|
-
formatRelative: formatRelative,
|
|
11405
|
-
localize: localize,
|
|
11406
|
-
match: match,
|
|
11407
|
-
options: {
|
|
11408
|
-
weekStartsOn: 0
|
|
11409
|
-
/* Sunday */,
|
|
11410
|
-
|
|
11411
|
-
firstWeekContainsDate: 1
|
|
11412
|
-
}
|
|
11413
|
-
};
|
|
11414
|
-
|
|
11415
10952
|
function toInteger(dirtyNumber) {
|
|
11416
10953
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
11417
10954
|
return NaN;
|
|
@@ -11431,10 +10968,6 @@ function toInteger(dirtyNumber) {
|
|
|
11431
10968
|
* @description
|
|
11432
10969
|
* Add the specified number of milliseconds to the given date.
|
|
11433
10970
|
*
|
|
11434
|
-
* ### v2.0.0 breaking changes:
|
|
11435
|
-
*
|
|
11436
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
11437
|
-
*
|
|
11438
10971
|
* @param {Date|Number} date - the date to be changed
|
|
11439
10972
|
* @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
11440
10973
|
* @returns {Date} the new date with the milliseconds added
|
|
@@ -11442,10 +10975,9 @@ function toInteger(dirtyNumber) {
|
|
|
11442
10975
|
*
|
|
11443
10976
|
* @example
|
|
11444
10977
|
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
11445
|
-
*
|
|
10978
|
+
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
11446
10979
|
* //=> Thu Jul 10 2014 12:45:30.750
|
|
11447
10980
|
*/
|
|
11448
|
-
|
|
11449
10981
|
function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
11450
10982
|
requiredArgs(2, arguments);
|
|
11451
10983
|
var timestamp = toDate(dirtyDate).getTime();
|
|
@@ -11461,10 +10993,6 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
|
11461
10993
|
* @description
|
|
11462
10994
|
* Subtract the specified number of milliseconds from the given date.
|
|
11463
10995
|
*
|
|
11464
|
-
* ### v2.0.0 breaking changes:
|
|
11465
|
-
*
|
|
11466
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
11467
|
-
*
|
|
11468
10996
|
* @param {Date|Number} date - the date to be changed
|
|
11469
10997
|
* @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
11470
10998
|
* @returns {Date} the new date with the milliseconds subtracted
|
|
@@ -11472,119 +11000,27 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
|
11472
11000
|
*
|
|
11473
11001
|
* @example
|
|
11474
11002
|
* // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
|
|
11475
|
-
*
|
|
11003
|
+
* const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
11476
11004
|
* //=> Thu Jul 10 2014 12:45:29.250
|
|
11477
11005
|
*/
|
|
11478
|
-
|
|
11479
11006
|
function subMilliseconds(dirtyDate, dirtyAmount) {
|
|
11480
11007
|
requiredArgs(2, arguments);
|
|
11481
11008
|
var amount = toInteger(dirtyAmount);
|
|
11482
11009
|
return addMilliseconds(dirtyDate, -amount);
|
|
11483
11010
|
}
|
|
11484
11011
|
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11012
|
+
var MILLISECONDS_IN_DAY = 86400000;
|
|
11013
|
+
function getUTCDayOfYear(dirtyDate) {
|
|
11014
|
+
requiredArgs(1, arguments);
|
|
11015
|
+
var date = toDate(dirtyDate);
|
|
11016
|
+
var timestamp = date.getTime();
|
|
11017
|
+
date.setUTCMonth(0, 1);
|
|
11018
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
11019
|
+
var startOfYearTimestamp = date.getTime();
|
|
11020
|
+
var difference = timestamp - startOfYearTimestamp;
|
|
11021
|
+
return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
|
|
11492
11022
|
}
|
|
11493
11023
|
|
|
11494
|
-
/*
|
|
11495
|
-
* | | Unit | | Unit |
|
|
11496
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
11497
|
-
* | a | AM, PM | A* | |
|
|
11498
|
-
* | d | Day of month | D | |
|
|
11499
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
11500
|
-
* | m | Minute | M | Month |
|
|
11501
|
-
* | s | Second | S | Fraction of second |
|
|
11502
|
-
* | y | Year (abs) | Y | |
|
|
11503
|
-
*
|
|
11504
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
11505
|
-
*/
|
|
11506
|
-
|
|
11507
|
-
var formatters$1 = {
|
|
11508
|
-
// Year
|
|
11509
|
-
y: function y(date, token) {
|
|
11510
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
11511
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
11512
|
-
// |----------|-------|----|-------|-------|-------|
|
|
11513
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
11514
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
11515
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
11516
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
11517
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
11518
|
-
var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
11519
|
-
|
|
11520
|
-
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
11521
|
-
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
11522
|
-
},
|
|
11523
|
-
// Month
|
|
11524
|
-
M: function M(date, token) {
|
|
11525
|
-
var month = date.getUTCMonth();
|
|
11526
|
-
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
11527
|
-
},
|
|
11528
|
-
// Day of the month
|
|
11529
|
-
d: function d(date, token) {
|
|
11530
|
-
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
11531
|
-
},
|
|
11532
|
-
// AM or PM
|
|
11533
|
-
a: function a(date, token) {
|
|
11534
|
-
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
11535
|
-
switch (token) {
|
|
11536
|
-
case 'a':
|
|
11537
|
-
case 'aa':
|
|
11538
|
-
case 'aaa':
|
|
11539
|
-
return dayPeriodEnumValue.toUpperCase();
|
|
11540
|
-
case 'aaaaa':
|
|
11541
|
-
return dayPeriodEnumValue[0];
|
|
11542
|
-
case 'aaaa':
|
|
11543
|
-
default:
|
|
11544
|
-
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
11545
|
-
}
|
|
11546
|
-
},
|
|
11547
|
-
// Hour [1-12]
|
|
11548
|
-
h: function h(date, token) {
|
|
11549
|
-
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
11550
|
-
},
|
|
11551
|
-
// Hour [0-23]
|
|
11552
|
-
H: function H(date, token) {
|
|
11553
|
-
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
11554
|
-
},
|
|
11555
|
-
// Minute
|
|
11556
|
-
m: function m(date, token) {
|
|
11557
|
-
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
11558
|
-
},
|
|
11559
|
-
// Second
|
|
11560
|
-
s: function s(date, token) {
|
|
11561
|
-
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
11562
|
-
},
|
|
11563
|
-
// Fraction of second
|
|
11564
|
-
S: function S(date, token) {
|
|
11565
|
-
var numberOfDigits = token.length;
|
|
11566
|
-
var milliseconds = date.getUTCMilliseconds();
|
|
11567
|
-
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
11568
|
-
return addLeadingZeros(fractionalSeconds, token.length);
|
|
11569
|
-
}
|
|
11570
|
-
};
|
|
11571
|
-
|
|
11572
|
-
var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
|
|
11573
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11574
|
-
|
|
11575
|
-
function getUTCDayOfYear(dirtyDate) {
|
|
11576
|
-
requiredArgs(1, arguments);
|
|
11577
|
-
var date = toDate(dirtyDate);
|
|
11578
|
-
var timestamp = date.getTime();
|
|
11579
|
-
date.setUTCMonth(0, 1);
|
|
11580
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
11581
|
-
var startOfYearTimestamp = date.getTime();
|
|
11582
|
-
var difference = timestamp - startOfYearTimestamp;
|
|
11583
|
-
return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
|
|
11584
|
-
}
|
|
11585
|
-
|
|
11586
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11587
|
-
|
|
11588
11024
|
function startOfUTCISOWeek(dirtyDate) {
|
|
11589
11025
|
requiredArgs(1, arguments);
|
|
11590
11026
|
var weekStartsOn = 1;
|
|
@@ -11596,8 +11032,6 @@ function startOfUTCISOWeek(dirtyDate) {
|
|
|
11596
11032
|
return date;
|
|
11597
11033
|
}
|
|
11598
11034
|
|
|
11599
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11600
|
-
|
|
11601
11035
|
function getUTCISOWeekYear(dirtyDate) {
|
|
11602
11036
|
requiredArgs(1, arguments);
|
|
11603
11037
|
var date = toDate(dirtyDate);
|
|
@@ -11619,8 +11053,6 @@ function getUTCISOWeekYear(dirtyDate) {
|
|
|
11619
11053
|
}
|
|
11620
11054
|
}
|
|
11621
11055
|
|
|
11622
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11623
|
-
|
|
11624
11056
|
function startOfUTCISOWeekYear(dirtyDate) {
|
|
11625
11057
|
requiredArgs(1, arguments);
|
|
11626
11058
|
var year = getUTCISOWeekYear(dirtyDate);
|
|
@@ -11631,29 +11063,33 @@ function startOfUTCISOWeekYear(dirtyDate) {
|
|
|
11631
11063
|
return date;
|
|
11632
11064
|
}
|
|
11633
11065
|
|
|
11634
|
-
var MILLISECONDS_IN_WEEK$1 = 604800000;
|
|
11635
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11636
|
-
|
|
11066
|
+
var MILLISECONDS_IN_WEEK$1 = 604800000;
|
|
11637
11067
|
function getUTCISOWeek(dirtyDate) {
|
|
11638
11068
|
requiredArgs(1, arguments);
|
|
11639
11069
|
var date = toDate(dirtyDate);
|
|
11640
|
-
var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
|
|
11070
|
+
var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
|
|
11071
|
+
|
|
11072
|
+
// Round the number of days to the nearest integer
|
|
11641
11073
|
// because the number of milliseconds in a week is not constant
|
|
11642
11074
|
// (e.g. it's different in the week of the daylight saving time clock shift)
|
|
11643
|
-
|
|
11644
11075
|
return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
|
|
11645
11076
|
}
|
|
11646
11077
|
|
|
11647
|
-
|
|
11078
|
+
var defaultOptions = {};
|
|
11079
|
+
function getDefaultOptions() {
|
|
11080
|
+
return defaultOptions;
|
|
11081
|
+
}
|
|
11082
|
+
function setDefaultOptions$1(newOptions) {
|
|
11083
|
+
defaultOptions = newOptions;
|
|
11084
|
+
}
|
|
11648
11085
|
|
|
11649
|
-
function startOfUTCWeek(dirtyDate,
|
|
11086
|
+
function startOfUTCWeek(dirtyDate, options) {
|
|
11087
|
+
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
11650
11088
|
requiredArgs(1, arguments);
|
|
11651
|
-
var
|
|
11652
|
-
var locale = options.locale;
|
|
11653
|
-
var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
|
|
11654
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
|
|
11655
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
11089
|
+
var defaultOptions = getDefaultOptions();
|
|
11090
|
+
var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
|
|
11656
11091
|
|
|
11092
|
+
// Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
11657
11093
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
11658
11094
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
11659
11095
|
}
|
|
@@ -11665,29 +11101,26 @@ function startOfUTCWeek(dirtyDate, dirtyOptions) {
|
|
|
11665
11101
|
return date;
|
|
11666
11102
|
}
|
|
11667
11103
|
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
function getUTCWeekYear(dirtyDate, dirtyOptions) {
|
|
11104
|
+
function getUTCWeekYear(dirtyDate, options) {
|
|
11105
|
+
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
11671
11106
|
requiredArgs(1, arguments);
|
|
11672
|
-
var date = toDate(dirtyDate
|
|
11107
|
+
var date = toDate(dirtyDate);
|
|
11673
11108
|
var year = date.getUTCFullYear();
|
|
11674
|
-
var
|
|
11675
|
-
var locale = options.locale;
|
|
11676
|
-
var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
|
|
11677
|
-
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
|
|
11678
|
-
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
11109
|
+
var defaultOptions = getDefaultOptions();
|
|
11110
|
+
var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
|
|
11679
11111
|
|
|
11112
|
+
// Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
11680
11113
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
11681
11114
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
11682
11115
|
}
|
|
11683
11116
|
var firstWeekOfNextYear = new Date(0);
|
|
11684
11117
|
firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
|
|
11685
11118
|
firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
|
|
11686
|
-
var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear,
|
|
11119
|
+
var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
|
|
11687
11120
|
var firstWeekOfThisYear = new Date(0);
|
|
11688
11121
|
firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
|
|
11689
11122
|
firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
|
|
11690
|
-
var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear,
|
|
11123
|
+
var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
|
|
11691
11124
|
if (date.getTime() >= startOfNextYear.getTime()) {
|
|
11692
11125
|
return year + 1;
|
|
11693
11126
|
} else if (date.getTime() >= startOfThisYear.getTime()) {
|
|
@@ -11697,36 +11130,119 @@ function getUTCWeekYear(dirtyDate, dirtyOptions) {
|
|
|
11697
11130
|
}
|
|
11698
11131
|
}
|
|
11699
11132
|
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
|
|
11133
|
+
function startOfUTCWeekYear(dirtyDate, options) {
|
|
11134
|
+
var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
11703
11135
|
requiredArgs(1, arguments);
|
|
11704
|
-
var
|
|
11705
|
-
var locale = options.locale;
|
|
11706
|
-
var
|
|
11707
|
-
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
|
|
11708
|
-
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
|
|
11709
|
-
var year = getUTCWeekYear(dirtyDate, dirtyOptions);
|
|
11136
|
+
var defaultOptions = getDefaultOptions();
|
|
11137
|
+
var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
|
|
11138
|
+
var year = getUTCWeekYear(dirtyDate, options);
|
|
11710
11139
|
var firstWeek = new Date(0);
|
|
11711
11140
|
firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
|
|
11712
11141
|
firstWeek.setUTCHours(0, 0, 0, 0);
|
|
11713
|
-
var date = startOfUTCWeek(firstWeek,
|
|
11142
|
+
var date = startOfUTCWeek(firstWeek, options);
|
|
11714
11143
|
return date;
|
|
11715
11144
|
}
|
|
11716
11145
|
|
|
11717
|
-
var MILLISECONDS_IN_WEEK = 604800000;
|
|
11718
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
11719
|
-
|
|
11146
|
+
var MILLISECONDS_IN_WEEK = 604800000;
|
|
11720
11147
|
function getUTCWeek(dirtyDate, options) {
|
|
11721
11148
|
requiredArgs(1, arguments);
|
|
11722
11149
|
var date = toDate(dirtyDate);
|
|
11723
|
-
var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
|
|
11150
|
+
var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
|
|
11151
|
+
|
|
11152
|
+
// Round the number of days to the nearest integer
|
|
11724
11153
|
// because the number of milliseconds in a week is not constant
|
|
11725
11154
|
// (e.g. it's different in the week of the daylight saving time clock shift)
|
|
11726
|
-
|
|
11727
11155
|
return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
|
|
11728
11156
|
}
|
|
11729
11157
|
|
|
11158
|
+
function addLeadingZeros(number, targetLength) {
|
|
11159
|
+
var sign = number < 0 ? '-' : '';
|
|
11160
|
+
var output = Math.abs(number).toString();
|
|
11161
|
+
while (output.length < targetLength) {
|
|
11162
|
+
output = '0' + output;
|
|
11163
|
+
}
|
|
11164
|
+
return sign + output;
|
|
11165
|
+
}
|
|
11166
|
+
|
|
11167
|
+
/*
|
|
11168
|
+
* | | Unit | | Unit |
|
|
11169
|
+
* |-----|--------------------------------|-----|--------------------------------|
|
|
11170
|
+
* | a | AM, PM | A* | |
|
|
11171
|
+
* | d | Day of month | D | |
|
|
11172
|
+
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
11173
|
+
* | m | Minute | M | Month |
|
|
11174
|
+
* | s | Second | S | Fraction of second |
|
|
11175
|
+
* | y | Year (abs) | Y | |
|
|
11176
|
+
*
|
|
11177
|
+
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
11178
|
+
*/
|
|
11179
|
+
var formatters$1 = {
|
|
11180
|
+
// Year
|
|
11181
|
+
y: function y(date, token) {
|
|
11182
|
+
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
11183
|
+
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
11184
|
+
// |----------|-------|----|-------|-------|-------|
|
|
11185
|
+
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
11186
|
+
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
11187
|
+
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
11188
|
+
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
11189
|
+
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
11190
|
+
|
|
11191
|
+
var signedYear = date.getUTCFullYear();
|
|
11192
|
+
// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
11193
|
+
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
11194
|
+
return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
|
|
11195
|
+
},
|
|
11196
|
+
// Month
|
|
11197
|
+
M: function M(date, token) {
|
|
11198
|
+
var month = date.getUTCMonth();
|
|
11199
|
+
return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
|
|
11200
|
+
},
|
|
11201
|
+
// Day of the month
|
|
11202
|
+
d: function d(date, token) {
|
|
11203
|
+
return addLeadingZeros(date.getUTCDate(), token.length);
|
|
11204
|
+
},
|
|
11205
|
+
// AM or PM
|
|
11206
|
+
a: function a(date, token) {
|
|
11207
|
+
var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
|
|
11208
|
+
switch (token) {
|
|
11209
|
+
case 'a':
|
|
11210
|
+
case 'aa':
|
|
11211
|
+
return dayPeriodEnumValue.toUpperCase();
|
|
11212
|
+
case 'aaa':
|
|
11213
|
+
return dayPeriodEnumValue;
|
|
11214
|
+
case 'aaaaa':
|
|
11215
|
+
return dayPeriodEnumValue[0];
|
|
11216
|
+
case 'aaaa':
|
|
11217
|
+
default:
|
|
11218
|
+
return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
|
|
11219
|
+
}
|
|
11220
|
+
},
|
|
11221
|
+
// Hour [1-12]
|
|
11222
|
+
h: function h(date, token) {
|
|
11223
|
+
return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
|
|
11224
|
+
},
|
|
11225
|
+
// Hour [0-23]
|
|
11226
|
+
H: function H(date, token) {
|
|
11227
|
+
return addLeadingZeros(date.getUTCHours(), token.length);
|
|
11228
|
+
},
|
|
11229
|
+
// Minute
|
|
11230
|
+
m: function m(date, token) {
|
|
11231
|
+
return addLeadingZeros(date.getUTCMinutes(), token.length);
|
|
11232
|
+
},
|
|
11233
|
+
// Second
|
|
11234
|
+
s: function s(date, token) {
|
|
11235
|
+
return addLeadingZeros(date.getUTCSeconds(), token.length);
|
|
11236
|
+
},
|
|
11237
|
+
// Fraction of second
|
|
11238
|
+
S: function S(date, token) {
|
|
11239
|
+
var numberOfDigits = token.length;
|
|
11240
|
+
var milliseconds = date.getUTCMilliseconds();
|
|
11241
|
+
var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
|
|
11242
|
+
return addLeadingZeros(fractionalSeconds, token.length);
|
|
11243
|
+
}
|
|
11244
|
+
};
|
|
11245
|
+
|
|
11730
11246
|
var dayPeriodEnum = {
|
|
11731
11247
|
am: 'am',
|
|
11732
11248
|
pm: 'pm',
|
|
@@ -11736,52 +11252,52 @@ var dayPeriodEnum = {
|
|
|
11736
11252
|
afternoon: 'afternoon',
|
|
11737
11253
|
evening: 'evening',
|
|
11738
11254
|
night: 'night'
|
|
11739
|
-
/*
|
|
11740
|
-
* | | Unit | | Unit |
|
|
11741
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
11742
|
-
* | a | AM, PM | A* | Milliseconds in day |
|
|
11743
|
-
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
11744
|
-
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
11745
|
-
* | d | Day of month | D | Day of year |
|
|
11746
|
-
* | e | Local day of week | E | Day of week |
|
|
11747
|
-
* | f | | F* | Day of week in month |
|
|
11748
|
-
* | g* | Modified Julian day | G | Era |
|
|
11749
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
11750
|
-
* | i! | ISO day of week | I! | ISO week of year |
|
|
11751
|
-
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
11752
|
-
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
11753
|
-
* | l* | (deprecated) | L | Stand-alone month |
|
|
11754
|
-
* | m | Minute | M | Month |
|
|
11755
|
-
* | n | | N | |
|
|
11756
|
-
* | o! | Ordinal number modifier | O | Timezone (GMT) |
|
|
11757
|
-
* | p! | Long localized time | P! | Long localized date |
|
|
11758
|
-
* | q | Stand-alone quarter | Q | Quarter |
|
|
11759
|
-
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
11760
|
-
* | s | Second | S | Fraction of second |
|
|
11761
|
-
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
11762
|
-
* | u | Extended year | U* | Cyclic year |
|
|
11763
|
-
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
11764
|
-
* | w | Local week of year | W* | Week of month |
|
|
11765
|
-
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
11766
|
-
* | y | Year (abs) | Y | Local week-numbering year |
|
|
11767
|
-
* | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
11768
|
-
*
|
|
11769
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
11770
|
-
*
|
|
11771
|
-
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
11772
|
-
* - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
|
|
11773
|
-
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
11774
|
-
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
11775
|
-
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
11776
|
-
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
11777
|
-
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
11778
|
-
* for universal ISO week-numbering date, whereas
|
|
11779
|
-
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
11780
|
-
* for week-numbering date specific to the locale.
|
|
11781
|
-
* - `P` is long localized date format
|
|
11782
|
-
* - `p` is long localized time format
|
|
11783
|
-
*/
|
|
11784
11255
|
};
|
|
11256
|
+
/*
|
|
11257
|
+
* | | Unit | | Unit |
|
|
11258
|
+
* |-----|--------------------------------|-----|--------------------------------|
|
|
11259
|
+
* | a | AM, PM | A* | Milliseconds in day |
|
|
11260
|
+
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
11261
|
+
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
11262
|
+
* | d | Day of month | D | Day of year |
|
|
11263
|
+
* | e | Local day of week | E | Day of week |
|
|
11264
|
+
* | f | | F* | Day of week in month |
|
|
11265
|
+
* | g* | Modified Julian day | G | Era |
|
|
11266
|
+
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
11267
|
+
* | i! | ISO day of week | I! | ISO week of year |
|
|
11268
|
+
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
11269
|
+
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
11270
|
+
* | l* | (deprecated) | L | Stand-alone month |
|
|
11271
|
+
* | m | Minute | M | Month |
|
|
11272
|
+
* | n | | N | |
|
|
11273
|
+
* | o! | Ordinal number modifier | O | Timezone (GMT) |
|
|
11274
|
+
* | p! | Long localized time | P! | Long localized date |
|
|
11275
|
+
* | q | Stand-alone quarter | Q | Quarter |
|
|
11276
|
+
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
11277
|
+
* | s | Second | S | Fraction of second |
|
|
11278
|
+
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
11279
|
+
* | u | Extended year | U* | Cyclic year |
|
|
11280
|
+
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
11281
|
+
* | w | Local week of year | W* | Week of month |
|
|
11282
|
+
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
11283
|
+
* | y | Year (abs) | Y | Local week-numbering year |
|
|
11284
|
+
* | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
11285
|
+
*
|
|
11286
|
+
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
11287
|
+
*
|
|
11288
|
+
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
11289
|
+
* - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
|
|
11290
|
+
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
11291
|
+
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
11292
|
+
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
11293
|
+
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
11294
|
+
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
11295
|
+
* for universal ISO week-numbering date, whereas
|
|
11296
|
+
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
11297
|
+
* for week-numbering date specific to the locale.
|
|
11298
|
+
* - `P` is long localized date format
|
|
11299
|
+
* - `p` is long localized time format
|
|
11300
|
+
*/
|
|
11785
11301
|
|
|
11786
11302
|
var formatters = {
|
|
11787
11303
|
// Era
|
|
@@ -11796,13 +11312,11 @@ var formatters = {
|
|
|
11796
11312
|
width: 'abbreviated'
|
|
11797
11313
|
});
|
|
11798
11314
|
// A, B
|
|
11799
|
-
|
|
11800
11315
|
case 'GGGGG':
|
|
11801
11316
|
return localize.era(era, {
|
|
11802
11317
|
width: 'narrow'
|
|
11803
11318
|
});
|
|
11804
11319
|
// Anno Domini, Before Christ
|
|
11805
|
-
|
|
11806
11320
|
case 'GGGG':
|
|
11807
11321
|
default:
|
|
11808
11322
|
return localize.era(era, {
|
|
@@ -11814,8 +11328,8 @@ var formatters = {
|
|
|
11814
11328
|
y: function y(date, token, localize) {
|
|
11815
11329
|
// Ordinal number
|
|
11816
11330
|
if (token === 'yo') {
|
|
11817
|
-
var signedYear = date.getUTCFullYear();
|
|
11818
|
-
|
|
11331
|
+
var signedYear = date.getUTCFullYear();
|
|
11332
|
+
// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
11819
11333
|
var year = signedYear > 0 ? signedYear : 1 - signedYear;
|
|
11820
11334
|
return localize.ordinalNumber(year, {
|
|
11821
11335
|
unit: 'year'
|
|
@@ -11825,27 +11339,31 @@ var formatters = {
|
|
|
11825
11339
|
},
|
|
11826
11340
|
// Local week-numbering year
|
|
11827
11341
|
Y: function Y(date, token, localize, options) {
|
|
11828
|
-
var signedWeekYear = getUTCWeekYear(date, options);
|
|
11829
|
-
|
|
11830
|
-
var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
|
|
11342
|
+
var signedWeekYear = getUTCWeekYear(date, options);
|
|
11343
|
+
// Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
11344
|
+
var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
|
|
11831
11345
|
|
|
11346
|
+
// Two digit year
|
|
11832
11347
|
if (token === 'YY') {
|
|
11833
11348
|
var twoDigitYear = weekYear % 100;
|
|
11834
11349
|
return addLeadingZeros(twoDigitYear, 2);
|
|
11835
|
-
}
|
|
11350
|
+
}
|
|
11836
11351
|
|
|
11352
|
+
// Ordinal number
|
|
11837
11353
|
if (token === 'Yo') {
|
|
11838
11354
|
return localize.ordinalNumber(weekYear, {
|
|
11839
11355
|
unit: 'year'
|
|
11840
11356
|
});
|
|
11841
|
-
}
|
|
11357
|
+
}
|
|
11842
11358
|
|
|
11359
|
+
// Padding
|
|
11843
11360
|
return addLeadingZeros(weekYear, token.length);
|
|
11844
11361
|
},
|
|
11845
11362
|
// ISO week-numbering year
|
|
11846
11363
|
R: function R(date, token) {
|
|
11847
|
-
var isoWeekYear = getUTCISOWeekYear(date);
|
|
11364
|
+
var isoWeekYear = getUTCISOWeekYear(date);
|
|
11848
11365
|
|
|
11366
|
+
// Padding
|
|
11849
11367
|
return addLeadingZeros(isoWeekYear, token.length);
|
|
11850
11368
|
},
|
|
11851
11369
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -11869,31 +11387,26 @@ var formatters = {
|
|
|
11869
11387
|
case 'Q':
|
|
11870
11388
|
return String(quarter);
|
|
11871
11389
|
// 01, 02, 03, 04
|
|
11872
|
-
|
|
11873
11390
|
case 'QQ':
|
|
11874
11391
|
return addLeadingZeros(quarter, 2);
|
|
11875
11392
|
// 1st, 2nd, 3rd, 4th
|
|
11876
|
-
|
|
11877
11393
|
case 'Qo':
|
|
11878
11394
|
return localize.ordinalNumber(quarter, {
|
|
11879
11395
|
unit: 'quarter'
|
|
11880
11396
|
});
|
|
11881
11397
|
// Q1, Q2, Q3, Q4
|
|
11882
|
-
|
|
11883
11398
|
case 'QQQ':
|
|
11884
11399
|
return localize.quarter(quarter, {
|
|
11885
11400
|
width: 'abbreviated',
|
|
11886
11401
|
context: 'formatting'
|
|
11887
11402
|
});
|
|
11888
11403
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11889
|
-
|
|
11890
11404
|
case 'QQQQQ':
|
|
11891
11405
|
return localize.quarter(quarter, {
|
|
11892
11406
|
width: 'narrow',
|
|
11893
11407
|
context: 'formatting'
|
|
11894
11408
|
});
|
|
11895
11409
|
// 1st quarter, 2nd quarter, ...
|
|
11896
|
-
|
|
11897
11410
|
case 'QQQQ':
|
|
11898
11411
|
default:
|
|
11899
11412
|
return localize.quarter(quarter, {
|
|
@@ -11910,31 +11423,26 @@ var formatters = {
|
|
|
11910
11423
|
case 'q':
|
|
11911
11424
|
return String(quarter);
|
|
11912
11425
|
// 01, 02, 03, 04
|
|
11913
|
-
|
|
11914
11426
|
case 'qq':
|
|
11915
11427
|
return addLeadingZeros(quarter, 2);
|
|
11916
11428
|
// 1st, 2nd, 3rd, 4th
|
|
11917
|
-
|
|
11918
11429
|
case 'qo':
|
|
11919
11430
|
return localize.ordinalNumber(quarter, {
|
|
11920
11431
|
unit: 'quarter'
|
|
11921
11432
|
});
|
|
11922
11433
|
// Q1, Q2, Q3, Q4
|
|
11923
|
-
|
|
11924
11434
|
case 'qqq':
|
|
11925
11435
|
return localize.quarter(quarter, {
|
|
11926
11436
|
width: 'abbreviated',
|
|
11927
11437
|
context: 'standalone'
|
|
11928
11438
|
});
|
|
11929
11439
|
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
11930
|
-
|
|
11931
11440
|
case 'qqqqq':
|
|
11932
11441
|
return localize.quarter(quarter, {
|
|
11933
11442
|
width: 'narrow',
|
|
11934
11443
|
context: 'standalone'
|
|
11935
11444
|
});
|
|
11936
11445
|
// 1st quarter, 2nd quarter, ...
|
|
11937
|
-
|
|
11938
11446
|
case 'qqqq':
|
|
11939
11447
|
default:
|
|
11940
11448
|
return localize.quarter(quarter, {
|
|
@@ -11951,27 +11459,23 @@ var formatters = {
|
|
|
11951
11459
|
case 'MM':
|
|
11952
11460
|
return formatters$1.M(date, token);
|
|
11953
11461
|
// 1st, 2nd, ..., 12th
|
|
11954
|
-
|
|
11955
11462
|
case 'Mo':
|
|
11956
11463
|
return localize.ordinalNumber(month + 1, {
|
|
11957
11464
|
unit: 'month'
|
|
11958
11465
|
});
|
|
11959
11466
|
// Jan, Feb, ..., Dec
|
|
11960
|
-
|
|
11961
11467
|
case 'MMM':
|
|
11962
11468
|
return localize.month(month, {
|
|
11963
11469
|
width: 'abbreviated',
|
|
11964
11470
|
context: 'formatting'
|
|
11965
11471
|
});
|
|
11966
11472
|
// J, F, ..., D
|
|
11967
|
-
|
|
11968
11473
|
case 'MMMMM':
|
|
11969
11474
|
return localize.month(month, {
|
|
11970
11475
|
width: 'narrow',
|
|
11971
11476
|
context: 'formatting'
|
|
11972
11477
|
});
|
|
11973
11478
|
// January, February, ..., December
|
|
11974
|
-
|
|
11975
11479
|
case 'MMMM':
|
|
11976
11480
|
default:
|
|
11977
11481
|
return localize.month(month, {
|
|
@@ -11988,31 +11492,26 @@ var formatters = {
|
|
|
11988
11492
|
case 'L':
|
|
11989
11493
|
return String(month + 1);
|
|
11990
11494
|
// 01, 02, ..., 12
|
|
11991
|
-
|
|
11992
11495
|
case 'LL':
|
|
11993
11496
|
return addLeadingZeros(month + 1, 2);
|
|
11994
11497
|
// 1st, 2nd, ..., 12th
|
|
11995
|
-
|
|
11996
11498
|
case 'Lo':
|
|
11997
11499
|
return localize.ordinalNumber(month + 1, {
|
|
11998
11500
|
unit: 'month'
|
|
11999
11501
|
});
|
|
12000
11502
|
// Jan, Feb, ..., Dec
|
|
12001
|
-
|
|
12002
11503
|
case 'LLL':
|
|
12003
11504
|
return localize.month(month, {
|
|
12004
11505
|
width: 'abbreviated',
|
|
12005
11506
|
context: 'standalone'
|
|
12006
11507
|
});
|
|
12007
11508
|
// J, F, ..., D
|
|
12008
|
-
|
|
12009
11509
|
case 'LLLLL':
|
|
12010
11510
|
return localize.month(month, {
|
|
12011
11511
|
width: 'narrow',
|
|
12012
11512
|
context: 'standalone'
|
|
12013
11513
|
});
|
|
12014
11514
|
// January, February, ..., December
|
|
12015
|
-
|
|
12016
11515
|
case 'LLLL':
|
|
12017
11516
|
default:
|
|
12018
11517
|
return localize.month(month, {
|
|
@@ -12073,21 +11572,18 @@ var formatters = {
|
|
|
12073
11572
|
context: 'formatting'
|
|
12074
11573
|
});
|
|
12075
11574
|
// T
|
|
12076
|
-
|
|
12077
11575
|
case 'EEEEE':
|
|
12078
11576
|
return localize.day(dayOfWeek, {
|
|
12079
11577
|
width: 'narrow',
|
|
12080
11578
|
context: 'formatting'
|
|
12081
11579
|
});
|
|
12082
11580
|
// Tu
|
|
12083
|
-
|
|
12084
11581
|
case 'EEEEEE':
|
|
12085
11582
|
return localize.day(dayOfWeek, {
|
|
12086
11583
|
width: 'short',
|
|
12087
11584
|
context: 'formatting'
|
|
12088
11585
|
});
|
|
12089
11586
|
// Tuesday
|
|
12090
|
-
|
|
12091
11587
|
case 'EEEE':
|
|
12092
11588
|
default:
|
|
12093
11589
|
return localize.day(dayOfWeek, {
|
|
@@ -12105,11 +11601,9 @@ var formatters = {
|
|
|
12105
11601
|
case 'e':
|
|
12106
11602
|
return String(localDayOfWeek);
|
|
12107
11603
|
// Padded numerical value
|
|
12108
|
-
|
|
12109
11604
|
case 'ee':
|
|
12110
11605
|
return addLeadingZeros(localDayOfWeek, 2);
|
|
12111
11606
|
// 1st, 2nd, ..., 7th
|
|
12112
|
-
|
|
12113
11607
|
case 'eo':
|
|
12114
11608
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
12115
11609
|
unit: 'day'
|
|
@@ -12120,21 +11614,18 @@ var formatters = {
|
|
|
12120
11614
|
context: 'formatting'
|
|
12121
11615
|
});
|
|
12122
11616
|
// T
|
|
12123
|
-
|
|
12124
11617
|
case 'eeeee':
|
|
12125
11618
|
return localize.day(dayOfWeek, {
|
|
12126
11619
|
width: 'narrow',
|
|
12127
11620
|
context: 'formatting'
|
|
12128
11621
|
});
|
|
12129
11622
|
// Tu
|
|
12130
|
-
|
|
12131
11623
|
case 'eeeeee':
|
|
12132
11624
|
return localize.day(dayOfWeek, {
|
|
12133
11625
|
width: 'short',
|
|
12134
11626
|
context: 'formatting'
|
|
12135
11627
|
});
|
|
12136
11628
|
// Tuesday
|
|
12137
|
-
|
|
12138
11629
|
case 'eeee':
|
|
12139
11630
|
default:
|
|
12140
11631
|
return localize.day(dayOfWeek, {
|
|
@@ -12152,11 +11643,9 @@ var formatters = {
|
|
|
12152
11643
|
case 'c':
|
|
12153
11644
|
return String(localDayOfWeek);
|
|
12154
11645
|
// Padded numerical value
|
|
12155
|
-
|
|
12156
11646
|
case 'cc':
|
|
12157
11647
|
return addLeadingZeros(localDayOfWeek, token.length);
|
|
12158
11648
|
// 1st, 2nd, ..., 7th
|
|
12159
|
-
|
|
12160
11649
|
case 'co':
|
|
12161
11650
|
return localize.ordinalNumber(localDayOfWeek, {
|
|
12162
11651
|
unit: 'day'
|
|
@@ -12167,21 +11656,18 @@ var formatters = {
|
|
|
12167
11656
|
context: 'standalone'
|
|
12168
11657
|
});
|
|
12169
11658
|
// T
|
|
12170
|
-
|
|
12171
11659
|
case 'ccccc':
|
|
12172
11660
|
return localize.day(dayOfWeek, {
|
|
12173
11661
|
width: 'narrow',
|
|
12174
11662
|
context: 'standalone'
|
|
12175
11663
|
});
|
|
12176
11664
|
// Tu
|
|
12177
|
-
|
|
12178
11665
|
case 'cccccc':
|
|
12179
11666
|
return localize.day(dayOfWeek, {
|
|
12180
11667
|
width: 'short',
|
|
12181
11668
|
context: 'standalone'
|
|
12182
11669
|
});
|
|
12183
11670
|
// Tuesday
|
|
12184
|
-
|
|
12185
11671
|
case 'cccc':
|
|
12186
11672
|
default:
|
|
12187
11673
|
return localize.day(dayOfWeek, {
|
|
@@ -12199,38 +11685,32 @@ var formatters = {
|
|
|
12199
11685
|
case 'i':
|
|
12200
11686
|
return String(isoDayOfWeek);
|
|
12201
11687
|
// 02
|
|
12202
|
-
|
|
12203
11688
|
case 'ii':
|
|
12204
11689
|
return addLeadingZeros(isoDayOfWeek, token.length);
|
|
12205
11690
|
// 2nd
|
|
12206
|
-
|
|
12207
11691
|
case 'io':
|
|
12208
11692
|
return localize.ordinalNumber(isoDayOfWeek, {
|
|
12209
11693
|
unit: 'day'
|
|
12210
11694
|
});
|
|
12211
11695
|
// Tue
|
|
12212
|
-
|
|
12213
11696
|
case 'iii':
|
|
12214
11697
|
return localize.day(dayOfWeek, {
|
|
12215
11698
|
width: 'abbreviated',
|
|
12216
11699
|
context: 'formatting'
|
|
12217
11700
|
});
|
|
12218
11701
|
// T
|
|
12219
|
-
|
|
12220
11702
|
case 'iiiii':
|
|
12221
11703
|
return localize.day(dayOfWeek, {
|
|
12222
11704
|
width: 'narrow',
|
|
12223
11705
|
context: 'formatting'
|
|
12224
11706
|
});
|
|
12225
11707
|
// Tu
|
|
12226
|
-
|
|
12227
11708
|
case 'iiiiii':
|
|
12228
11709
|
return localize.day(dayOfWeek, {
|
|
12229
11710
|
width: 'short',
|
|
12230
11711
|
context: 'formatting'
|
|
12231
11712
|
});
|
|
12232
11713
|
// Tuesday
|
|
12233
|
-
|
|
12234
11714
|
case 'iiii':
|
|
12235
11715
|
default:
|
|
12236
11716
|
return localize.day(dayOfWeek, {
|
|
@@ -12246,11 +11726,15 @@ var formatters = {
|
|
|
12246
11726
|
switch (token) {
|
|
12247
11727
|
case 'a':
|
|
12248
11728
|
case 'aa':
|
|
12249
|
-
case 'aaa':
|
|
12250
11729
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
12251
11730
|
width: 'abbreviated',
|
|
12252
11731
|
context: 'formatting'
|
|
12253
11732
|
});
|
|
11733
|
+
case 'aaa':
|
|
11734
|
+
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
11735
|
+
width: 'abbreviated',
|
|
11736
|
+
context: 'formatting'
|
|
11737
|
+
}).toLowerCase();
|
|
12254
11738
|
case 'aaaaa':
|
|
12255
11739
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
12256
11740
|
width: 'narrow',
|
|
@@ -12278,11 +11762,15 @@ var formatters = {
|
|
|
12278
11762
|
switch (token) {
|
|
12279
11763
|
case 'b':
|
|
12280
11764
|
case 'bb':
|
|
12281
|
-
case 'bbb':
|
|
12282
11765
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
12283
11766
|
width: 'abbreviated',
|
|
12284
11767
|
context: 'formatting'
|
|
12285
11768
|
});
|
|
11769
|
+
case 'bbb':
|
|
11770
|
+
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
11771
|
+
width: 'abbreviated',
|
|
11772
|
+
context: 'formatting'
|
|
11773
|
+
}).toLowerCase();
|
|
12286
11774
|
case 'bbbbb':
|
|
12287
11775
|
return localize.dayPeriod(dayPeriodEnumValue, {
|
|
12288
11776
|
width: 'narrow',
|
|
@@ -12404,21 +11892,20 @@ var formatters = {
|
|
|
12404
11892
|
// Hours and optional minutes
|
|
12405
11893
|
case 'X':
|
|
12406
11894
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11895
|
+
|
|
12407
11896
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
12408
11897
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
12409
11898
|
// so this token always has the same output as `XX`
|
|
12410
|
-
|
|
12411
11899
|
case 'XXXX':
|
|
12412
11900
|
case 'XX':
|
|
12413
11901
|
// Hours and minutes without `:` delimiter
|
|
12414
11902
|
return formatTimezone(timezoneOffset);
|
|
11903
|
+
|
|
12415
11904
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
12416
11905
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
12417
11906
|
// so this token always has the same output as `XXX`
|
|
12418
|
-
|
|
12419
11907
|
case 'XXXXX':
|
|
12420
11908
|
case 'XXX': // Hours and minutes with `:` delimiter
|
|
12421
|
-
|
|
12422
11909
|
default:
|
|
12423
11910
|
return formatTimezone(timezoneOffset, ':');
|
|
12424
11911
|
}
|
|
@@ -12431,21 +11918,20 @@ var formatters = {
|
|
|
12431
11918
|
// Hours and optional minutes
|
|
12432
11919
|
case 'x':
|
|
12433
11920
|
return formatTimezoneWithOptionalMinutes(timezoneOffset);
|
|
11921
|
+
|
|
12434
11922
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
12435
11923
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
12436
11924
|
// so this token always has the same output as `xx`
|
|
12437
|
-
|
|
12438
11925
|
case 'xxxx':
|
|
12439
11926
|
case 'xx':
|
|
12440
11927
|
// Hours and minutes without `:` delimiter
|
|
12441
11928
|
return formatTimezone(timezoneOffset);
|
|
11929
|
+
|
|
12442
11930
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
12443
11931
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
12444
11932
|
// so this token always has the same output as `xxx`
|
|
12445
|
-
|
|
12446
11933
|
case 'xxxxx':
|
|
12447
11934
|
case 'xxx': // Hours and minutes with `:` delimiter
|
|
12448
|
-
|
|
12449
11935
|
default:
|
|
12450
11936
|
return formatTimezone(timezoneOffset, ':');
|
|
12451
11937
|
}
|
|
@@ -12461,7 +11947,6 @@ var formatters = {
|
|
|
12461
11947
|
case 'OOO':
|
|
12462
11948
|
return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
|
|
12463
11949
|
// Long
|
|
12464
|
-
|
|
12465
11950
|
case 'OOOO':
|
|
12466
11951
|
default:
|
|
12467
11952
|
return 'GMT' + formatTimezone(timezoneOffset, ':');
|
|
@@ -12478,7 +11963,6 @@ var formatters = {
|
|
|
12478
11963
|
case 'zzz':
|
|
12479
11964
|
return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
|
|
12480
11965
|
// Long
|
|
12481
|
-
|
|
12482
11966
|
case 'zzzz':
|
|
12483
11967
|
default:
|
|
12484
11968
|
return 'GMT' + formatTimezone(timezoneOffset, ':');
|
|
@@ -12524,7 +12008,7 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
12524
12008
|
return sign + hours + delimiter + minutes;
|
|
12525
12009
|
}
|
|
12526
12010
|
|
|
12527
|
-
function dateLongFormatter(pattern, formatLong) {
|
|
12011
|
+
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
12528
12012
|
switch (pattern) {
|
|
12529
12013
|
case 'P':
|
|
12530
12014
|
return formatLong.date({
|
|
@@ -12544,8 +12028,8 @@ function dateLongFormatter(pattern, formatLong) {
|
|
|
12544
12028
|
width: 'full'
|
|
12545
12029
|
});
|
|
12546
12030
|
}
|
|
12547
|
-
}
|
|
12548
|
-
function timeLongFormatter(pattern, formatLong) {
|
|
12031
|
+
};
|
|
12032
|
+
var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
|
|
12549
12033
|
switch (pattern) {
|
|
12550
12034
|
case 'p':
|
|
12551
12035
|
return formatLong.time({
|
|
@@ -12565,9 +12049,9 @@ function timeLongFormatter(pattern, formatLong) {
|
|
|
12565
12049
|
width: 'full'
|
|
12566
12050
|
});
|
|
12567
12051
|
}
|
|
12568
|
-
}
|
|
12569
|
-
function dateTimeLongFormatter(pattern, formatLong) {
|
|
12570
|
-
var matchResult = pattern.match(/(P+)(p+)?/);
|
|
12052
|
+
};
|
|
12053
|
+
var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
|
|
12054
|
+
var matchResult = pattern.match(/(P+)(p+)?/) || [];
|
|
12571
12055
|
var datePattern = matchResult[1];
|
|
12572
12056
|
var timePattern = matchResult[2];
|
|
12573
12057
|
if (!timePattern) {
|
|
@@ -12598,16 +12082,12 @@ function dateTimeLongFormatter(pattern, formatLong) {
|
|
|
12598
12082
|
break;
|
|
12599
12083
|
}
|
|
12600
12084
|
return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
|
|
12601
|
-
}
|
|
12085
|
+
};
|
|
12602
12086
|
var longFormatters = {
|
|
12603
12087
|
p: timeLongFormatter,
|
|
12604
12088
|
P: dateTimeLongFormatter
|
|
12605
12089
|
};
|
|
12606
12090
|
|
|
12607
|
-
var MILLISECONDS_IN_MINUTE = 60000;
|
|
12608
|
-
function getDateMillisecondsPart(date) {
|
|
12609
|
-
return date.getTime() % MILLISECONDS_IN_MINUTE;
|
|
12610
|
-
}
|
|
12611
12091
|
/**
|
|
12612
12092
|
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
12613
12093
|
* They usually appear for dates that denote time before the timezones were introduced
|
|
@@ -12619,14 +12099,10 @@ function getDateMillisecondsPart(date) {
|
|
|
12619
12099
|
*
|
|
12620
12100
|
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
12621
12101
|
*/
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
date.setSeconds(0, 0);
|
|
12627
|
-
var hasNegativeUTCOffset = baseTimezoneOffset > 0;
|
|
12628
|
-
var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
|
|
12629
|
-
return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
|
|
12102
|
+
function getTimezoneOffsetInMilliseconds(date) {
|
|
12103
|
+
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
12104
|
+
utcDate.setUTCFullYear(date.getFullYear());
|
|
12105
|
+
return date.getTime() - utcDate.getTime();
|
|
12630
12106
|
}
|
|
12631
12107
|
|
|
12632
12108
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
@@ -12639,16 +12115,494 @@ function isProtectedWeekYearToken(token) {
|
|
|
12639
12115
|
}
|
|
12640
12116
|
function throwProtectedError(token, format, input) {
|
|
12641
12117
|
if (token === 'YYYY') {
|
|
12642
|
-
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://
|
|
12118
|
+
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
12643
12119
|
} else if (token === 'YY') {
|
|
12644
|
-
throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://
|
|
12120
|
+
throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
12645
12121
|
} else if (token === 'D') {
|
|
12646
|
-
throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://
|
|
12122
|
+
throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
12647
12123
|
} else if (token === 'DD') {
|
|
12648
|
-
throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://
|
|
12124
|
+
throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12127
|
+
|
|
12128
|
+
var formatDistanceLocale$1 = {
|
|
12129
|
+
lessThanXSeconds: {
|
|
12130
|
+
one: 'less than a second',
|
|
12131
|
+
other: 'less than {{count}} seconds'
|
|
12132
|
+
},
|
|
12133
|
+
xSeconds: {
|
|
12134
|
+
one: '1 second',
|
|
12135
|
+
other: '{{count}} seconds'
|
|
12136
|
+
},
|
|
12137
|
+
halfAMinute: 'half a minute',
|
|
12138
|
+
lessThanXMinutes: {
|
|
12139
|
+
one: 'less than a minute',
|
|
12140
|
+
other: 'less than {{count}} minutes'
|
|
12141
|
+
},
|
|
12142
|
+
xMinutes: {
|
|
12143
|
+
one: '1 minute',
|
|
12144
|
+
other: '{{count}} minutes'
|
|
12145
|
+
},
|
|
12146
|
+
aboutXHours: {
|
|
12147
|
+
one: 'about 1 hour',
|
|
12148
|
+
other: 'about {{count}} hours'
|
|
12149
|
+
},
|
|
12150
|
+
xHours: {
|
|
12151
|
+
one: '1 hour',
|
|
12152
|
+
other: '{{count}} hours'
|
|
12153
|
+
},
|
|
12154
|
+
xDays: {
|
|
12155
|
+
one: '1 day',
|
|
12156
|
+
other: '{{count}} days'
|
|
12157
|
+
},
|
|
12158
|
+
aboutXWeeks: {
|
|
12159
|
+
one: 'about 1 week',
|
|
12160
|
+
other: 'about {{count}} weeks'
|
|
12161
|
+
},
|
|
12162
|
+
xWeeks: {
|
|
12163
|
+
one: '1 week',
|
|
12164
|
+
other: '{{count}} weeks'
|
|
12165
|
+
},
|
|
12166
|
+
aboutXMonths: {
|
|
12167
|
+
one: 'about 1 month',
|
|
12168
|
+
other: 'about {{count}} months'
|
|
12169
|
+
},
|
|
12170
|
+
xMonths: {
|
|
12171
|
+
one: '1 month',
|
|
12172
|
+
other: '{{count}} months'
|
|
12173
|
+
},
|
|
12174
|
+
aboutXYears: {
|
|
12175
|
+
one: 'about 1 year',
|
|
12176
|
+
other: 'about {{count}} years'
|
|
12177
|
+
},
|
|
12178
|
+
xYears: {
|
|
12179
|
+
one: '1 year',
|
|
12180
|
+
other: '{{count}} years'
|
|
12181
|
+
},
|
|
12182
|
+
overXYears: {
|
|
12183
|
+
one: 'over 1 year',
|
|
12184
|
+
other: 'over {{count}} years'
|
|
12185
|
+
},
|
|
12186
|
+
almostXYears: {
|
|
12187
|
+
one: 'almost 1 year',
|
|
12188
|
+
other: 'almost {{count}} years'
|
|
12189
|
+
}
|
|
12190
|
+
};
|
|
12191
|
+
var formatDistance$1 = function formatDistance(token, count, options) {
|
|
12192
|
+
var result;
|
|
12193
|
+
var tokenValue = formatDistanceLocale$1[token];
|
|
12194
|
+
if (typeof tokenValue === 'string') {
|
|
12195
|
+
result = tokenValue;
|
|
12196
|
+
} else if (count === 1) {
|
|
12197
|
+
result = tokenValue.one;
|
|
12198
|
+
} else {
|
|
12199
|
+
result = tokenValue.other.replace('{{count}}', count.toString());
|
|
12200
|
+
}
|
|
12201
|
+
if (options !== null && options !== void 0 && options.addSuffix) {
|
|
12202
|
+
if (options.comparison && options.comparison > 0) {
|
|
12203
|
+
return 'in ' + result;
|
|
12204
|
+
} else {
|
|
12205
|
+
return result + ' ago';
|
|
12206
|
+
}
|
|
12207
|
+
}
|
|
12208
|
+
return result;
|
|
12209
|
+
};
|
|
12210
|
+
|
|
12211
|
+
function buildFormatLongFn(args) {
|
|
12212
|
+
return function () {
|
|
12213
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12214
|
+
// TODO: Remove String()
|
|
12215
|
+
var width = options.width ? String(options.width) : args.defaultWidth;
|
|
12216
|
+
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
12217
|
+
return format;
|
|
12218
|
+
};
|
|
12219
|
+
}
|
|
12220
|
+
|
|
12221
|
+
var dateFormats$2 = {
|
|
12222
|
+
full: 'EEEE, MMMM do, y',
|
|
12223
|
+
"long": 'MMMM do, y',
|
|
12224
|
+
medium: 'MMM d, y',
|
|
12225
|
+
"short": 'MM/dd/yyyy'
|
|
12226
|
+
};
|
|
12227
|
+
var timeFormats$2 = {
|
|
12228
|
+
full: 'h:mm:ss a zzzz',
|
|
12229
|
+
"long": 'h:mm:ss a z',
|
|
12230
|
+
medium: 'h:mm:ss a',
|
|
12231
|
+
"short": 'h:mm a'
|
|
12232
|
+
};
|
|
12233
|
+
var dateTimeFormats$2 = {
|
|
12234
|
+
full: "{{date}} 'at' {{time}}",
|
|
12235
|
+
"long": "{{date}} 'at' {{time}}",
|
|
12236
|
+
medium: '{{date}}, {{time}}',
|
|
12237
|
+
"short": '{{date}}, {{time}}'
|
|
12238
|
+
};
|
|
12239
|
+
var formatLong$2 = {
|
|
12240
|
+
date: buildFormatLongFn({
|
|
12241
|
+
formats: dateFormats$2,
|
|
12242
|
+
defaultWidth: 'full'
|
|
12243
|
+
}),
|
|
12244
|
+
time: buildFormatLongFn({
|
|
12245
|
+
formats: timeFormats$2,
|
|
12246
|
+
defaultWidth: 'full'
|
|
12247
|
+
}),
|
|
12248
|
+
dateTime: buildFormatLongFn({
|
|
12249
|
+
formats: dateTimeFormats$2,
|
|
12250
|
+
defaultWidth: 'full'
|
|
12251
|
+
})
|
|
12252
|
+
};
|
|
12253
|
+
|
|
12254
|
+
var formatRelativeLocale = {
|
|
12255
|
+
lastWeek: "'last' eeee 'at' p",
|
|
12256
|
+
yesterday: "'yesterday at' p",
|
|
12257
|
+
today: "'today at' p",
|
|
12258
|
+
tomorrow: "'tomorrow at' p",
|
|
12259
|
+
nextWeek: "eeee 'at' p",
|
|
12260
|
+
other: 'P'
|
|
12261
|
+
};
|
|
12262
|
+
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
|
|
12263
|
+
return formatRelativeLocale[token];
|
|
12264
|
+
};
|
|
12265
|
+
|
|
12266
|
+
function buildLocalizeFn(args) {
|
|
12267
|
+
return function (dirtyIndex, options) {
|
|
12268
|
+
var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
|
|
12269
|
+
var valuesArray;
|
|
12270
|
+
if (context === 'formatting' && args.formattingValues) {
|
|
12271
|
+
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
12272
|
+
var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
|
|
12273
|
+
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
12274
|
+
} else {
|
|
12275
|
+
var _defaultWidth = args.defaultWidth;
|
|
12276
|
+
var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
|
|
12277
|
+
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
|
12278
|
+
}
|
|
12279
|
+
var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
|
|
12280
|
+
// @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
|
|
12281
|
+
return valuesArray[index];
|
|
12282
|
+
};
|
|
12283
|
+
}
|
|
12284
|
+
|
|
12285
|
+
var eraValues = {
|
|
12286
|
+
narrow: ['B', 'A'],
|
|
12287
|
+
abbreviated: ['BC', 'AD'],
|
|
12288
|
+
wide: ['Before Christ', 'Anno Domini']
|
|
12289
|
+
};
|
|
12290
|
+
var quarterValues = {
|
|
12291
|
+
narrow: ['1', '2', '3', '4'],
|
|
12292
|
+
abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
12293
|
+
wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
|
|
12294
|
+
};
|
|
12295
|
+
|
|
12296
|
+
// Note: in English, the names of days of the week and months are capitalized.
|
|
12297
|
+
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
12298
|
+
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
12299
|
+
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
12300
|
+
var monthValues = {
|
|
12301
|
+
narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
|
12302
|
+
abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
12303
|
+
wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
|
12304
|
+
};
|
|
12305
|
+
var dayValues = {
|
|
12306
|
+
narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
|
|
12307
|
+
"short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
12308
|
+
abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
12309
|
+
wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
|
|
12310
|
+
};
|
|
12311
|
+
var dayPeriodValues = {
|
|
12312
|
+
narrow: {
|
|
12313
|
+
am: 'a',
|
|
12314
|
+
pm: 'p',
|
|
12315
|
+
midnight: 'mi',
|
|
12316
|
+
noon: 'n',
|
|
12317
|
+
morning: 'morning',
|
|
12318
|
+
afternoon: 'afternoon',
|
|
12319
|
+
evening: 'evening',
|
|
12320
|
+
night: 'night'
|
|
12321
|
+
},
|
|
12322
|
+
abbreviated: {
|
|
12323
|
+
am: 'AM',
|
|
12324
|
+
pm: 'PM',
|
|
12325
|
+
midnight: 'midnight',
|
|
12326
|
+
noon: 'noon',
|
|
12327
|
+
morning: 'morning',
|
|
12328
|
+
afternoon: 'afternoon',
|
|
12329
|
+
evening: 'evening',
|
|
12330
|
+
night: 'night'
|
|
12331
|
+
},
|
|
12332
|
+
wide: {
|
|
12333
|
+
am: 'a.m.',
|
|
12334
|
+
pm: 'p.m.',
|
|
12335
|
+
midnight: 'midnight',
|
|
12336
|
+
noon: 'noon',
|
|
12337
|
+
morning: 'morning',
|
|
12338
|
+
afternoon: 'afternoon',
|
|
12339
|
+
evening: 'evening',
|
|
12340
|
+
night: 'night'
|
|
12341
|
+
}
|
|
12342
|
+
};
|
|
12343
|
+
var formattingDayPeriodValues = {
|
|
12344
|
+
narrow: {
|
|
12345
|
+
am: 'a',
|
|
12346
|
+
pm: 'p',
|
|
12347
|
+
midnight: 'mi',
|
|
12348
|
+
noon: 'n',
|
|
12349
|
+
morning: 'in the morning',
|
|
12350
|
+
afternoon: 'in the afternoon',
|
|
12351
|
+
evening: 'in the evening',
|
|
12352
|
+
night: 'at night'
|
|
12353
|
+
},
|
|
12354
|
+
abbreviated: {
|
|
12355
|
+
am: 'AM',
|
|
12356
|
+
pm: 'PM',
|
|
12357
|
+
midnight: 'midnight',
|
|
12358
|
+
noon: 'noon',
|
|
12359
|
+
morning: 'in the morning',
|
|
12360
|
+
afternoon: 'in the afternoon',
|
|
12361
|
+
evening: 'in the evening',
|
|
12362
|
+
night: 'at night'
|
|
12363
|
+
},
|
|
12364
|
+
wide: {
|
|
12365
|
+
am: 'a.m.',
|
|
12366
|
+
pm: 'p.m.',
|
|
12367
|
+
midnight: 'midnight',
|
|
12368
|
+
noon: 'noon',
|
|
12369
|
+
morning: 'in the morning',
|
|
12370
|
+
afternoon: 'in the afternoon',
|
|
12371
|
+
evening: 'in the evening',
|
|
12372
|
+
night: 'at night'
|
|
12373
|
+
}
|
|
12374
|
+
};
|
|
12375
|
+
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
|
|
12376
|
+
var number = Number(dirtyNumber);
|
|
12377
|
+
|
|
12378
|
+
// If ordinal numbers depend on context, for example,
|
|
12379
|
+
// if they are different for different grammatical genders,
|
|
12380
|
+
// use `options.unit`.
|
|
12381
|
+
//
|
|
12382
|
+
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
12383
|
+
// 'day', 'hour', 'minute', 'second'.
|
|
12384
|
+
|
|
12385
|
+
var rem100 = number % 100;
|
|
12386
|
+
if (rem100 > 20 || rem100 < 10) {
|
|
12387
|
+
switch (rem100 % 10) {
|
|
12388
|
+
case 1:
|
|
12389
|
+
return number + 'st';
|
|
12390
|
+
case 2:
|
|
12391
|
+
return number + 'nd';
|
|
12392
|
+
case 3:
|
|
12393
|
+
return number + 'rd';
|
|
12394
|
+
}
|
|
12395
|
+
}
|
|
12396
|
+
return number + 'th';
|
|
12397
|
+
};
|
|
12398
|
+
var localize = {
|
|
12399
|
+
ordinalNumber: ordinalNumber,
|
|
12400
|
+
era: buildLocalizeFn({
|
|
12401
|
+
values: eraValues,
|
|
12402
|
+
defaultWidth: 'wide'
|
|
12403
|
+
}),
|
|
12404
|
+
quarter: buildLocalizeFn({
|
|
12405
|
+
values: quarterValues,
|
|
12406
|
+
defaultWidth: 'wide',
|
|
12407
|
+
argumentCallback: function argumentCallback(quarter) {
|
|
12408
|
+
return quarter - 1;
|
|
12409
|
+
}
|
|
12410
|
+
}),
|
|
12411
|
+
month: buildLocalizeFn({
|
|
12412
|
+
values: monthValues,
|
|
12413
|
+
defaultWidth: 'wide'
|
|
12414
|
+
}),
|
|
12415
|
+
day: buildLocalizeFn({
|
|
12416
|
+
values: dayValues,
|
|
12417
|
+
defaultWidth: 'wide'
|
|
12418
|
+
}),
|
|
12419
|
+
dayPeriod: buildLocalizeFn({
|
|
12420
|
+
values: dayPeriodValues,
|
|
12421
|
+
defaultWidth: 'wide',
|
|
12422
|
+
formattingValues: formattingDayPeriodValues,
|
|
12423
|
+
defaultFormattingWidth: 'wide'
|
|
12424
|
+
})
|
|
12425
|
+
};
|
|
12426
|
+
|
|
12427
|
+
function buildMatchFn(args) {
|
|
12428
|
+
return function (string) {
|
|
12429
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12430
|
+
var width = options.width;
|
|
12431
|
+
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
12432
|
+
var matchResult = string.match(matchPattern);
|
|
12433
|
+
if (!matchResult) {
|
|
12434
|
+
return null;
|
|
12435
|
+
}
|
|
12436
|
+
var matchedString = matchResult[0];
|
|
12437
|
+
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
12438
|
+
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
|
|
12439
|
+
return pattern.test(matchedString);
|
|
12440
|
+
}) : findKey(parsePatterns, function (pattern) {
|
|
12441
|
+
return pattern.test(matchedString);
|
|
12442
|
+
});
|
|
12443
|
+
var value;
|
|
12444
|
+
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
12445
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
12446
|
+
var rest = string.slice(matchedString.length);
|
|
12447
|
+
return {
|
|
12448
|
+
value: value,
|
|
12449
|
+
rest: rest
|
|
12450
|
+
};
|
|
12451
|
+
};
|
|
12452
|
+
}
|
|
12453
|
+
function findKey(object, predicate) {
|
|
12454
|
+
for (var key in object) {
|
|
12455
|
+
if (object.hasOwnProperty(key) && predicate(object[key])) {
|
|
12456
|
+
return key;
|
|
12457
|
+
}
|
|
12458
|
+
}
|
|
12459
|
+
return undefined;
|
|
12460
|
+
}
|
|
12461
|
+
function findIndex(array, predicate) {
|
|
12462
|
+
for (var key = 0; key < array.length; key++) {
|
|
12463
|
+
if (predicate(array[key])) {
|
|
12464
|
+
return key;
|
|
12465
|
+
}
|
|
12649
12466
|
}
|
|
12467
|
+
return undefined;
|
|
12468
|
+
}
|
|
12469
|
+
|
|
12470
|
+
function buildMatchPatternFn(args) {
|
|
12471
|
+
return function (string) {
|
|
12472
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12473
|
+
var matchResult = string.match(args.matchPattern);
|
|
12474
|
+
if (!matchResult) return null;
|
|
12475
|
+
var matchedString = matchResult[0];
|
|
12476
|
+
var parseResult = string.match(args.parsePattern);
|
|
12477
|
+
if (!parseResult) return null;
|
|
12478
|
+
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
12479
|
+
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
12480
|
+
var rest = string.slice(matchedString.length);
|
|
12481
|
+
return {
|
|
12482
|
+
value: value,
|
|
12483
|
+
rest: rest
|
|
12484
|
+
};
|
|
12485
|
+
};
|
|
12650
12486
|
}
|
|
12651
12487
|
|
|
12488
|
+
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
|
|
12489
|
+
var parseOrdinalNumberPattern = /\d+/i;
|
|
12490
|
+
var matchEraPatterns = {
|
|
12491
|
+
narrow: /^(b|a)/i,
|
|
12492
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
12493
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
12494
|
+
};
|
|
12495
|
+
var parseEraPatterns = {
|
|
12496
|
+
any: [/^b/i, /^(a|c)/i]
|
|
12497
|
+
};
|
|
12498
|
+
var matchQuarterPatterns = {
|
|
12499
|
+
narrow: /^[1234]/i,
|
|
12500
|
+
abbreviated: /^q[1234]/i,
|
|
12501
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
12502
|
+
};
|
|
12503
|
+
var parseQuarterPatterns = {
|
|
12504
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
12505
|
+
};
|
|
12506
|
+
var matchMonthPatterns = {
|
|
12507
|
+
narrow: /^[jfmasond]/i,
|
|
12508
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
12509
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
12510
|
+
};
|
|
12511
|
+
var parseMonthPatterns = {
|
|
12512
|
+
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
12513
|
+
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
12514
|
+
};
|
|
12515
|
+
var matchDayPatterns = {
|
|
12516
|
+
narrow: /^[smtwf]/i,
|
|
12517
|
+
"short": /^(su|mo|tu|we|th|fr|sa)/i,
|
|
12518
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
12519
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
12520
|
+
};
|
|
12521
|
+
var parseDayPatterns = {
|
|
12522
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
12523
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
12524
|
+
};
|
|
12525
|
+
var matchDayPeriodPatterns = {
|
|
12526
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
12527
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
12528
|
+
};
|
|
12529
|
+
var parseDayPeriodPatterns = {
|
|
12530
|
+
any: {
|
|
12531
|
+
am: /^a/i,
|
|
12532
|
+
pm: /^p/i,
|
|
12533
|
+
midnight: /^mi/i,
|
|
12534
|
+
noon: /^no/i,
|
|
12535
|
+
morning: /morning/i,
|
|
12536
|
+
afternoon: /afternoon/i,
|
|
12537
|
+
evening: /evening/i,
|
|
12538
|
+
night: /night/i
|
|
12539
|
+
}
|
|
12540
|
+
};
|
|
12541
|
+
var match = {
|
|
12542
|
+
ordinalNumber: buildMatchPatternFn({
|
|
12543
|
+
matchPattern: matchOrdinalNumberPattern,
|
|
12544
|
+
parsePattern: parseOrdinalNumberPattern,
|
|
12545
|
+
valueCallback: function valueCallback(value) {
|
|
12546
|
+
return parseInt(value, 10);
|
|
12547
|
+
}
|
|
12548
|
+
}),
|
|
12549
|
+
era: buildMatchFn({
|
|
12550
|
+
matchPatterns: matchEraPatterns,
|
|
12551
|
+
defaultMatchWidth: 'wide',
|
|
12552
|
+
parsePatterns: parseEraPatterns,
|
|
12553
|
+
defaultParseWidth: 'any'
|
|
12554
|
+
}),
|
|
12555
|
+
quarter: buildMatchFn({
|
|
12556
|
+
matchPatterns: matchQuarterPatterns,
|
|
12557
|
+
defaultMatchWidth: 'wide',
|
|
12558
|
+
parsePatterns: parseQuarterPatterns,
|
|
12559
|
+
defaultParseWidth: 'any',
|
|
12560
|
+
valueCallback: function valueCallback(index) {
|
|
12561
|
+
return index + 1;
|
|
12562
|
+
}
|
|
12563
|
+
}),
|
|
12564
|
+
month: buildMatchFn({
|
|
12565
|
+
matchPatterns: matchMonthPatterns,
|
|
12566
|
+
defaultMatchWidth: 'wide',
|
|
12567
|
+
parsePatterns: parseMonthPatterns,
|
|
12568
|
+
defaultParseWidth: 'any'
|
|
12569
|
+
}),
|
|
12570
|
+
day: buildMatchFn({
|
|
12571
|
+
matchPatterns: matchDayPatterns,
|
|
12572
|
+
defaultMatchWidth: 'wide',
|
|
12573
|
+
parsePatterns: parseDayPatterns,
|
|
12574
|
+
defaultParseWidth: 'any'
|
|
12575
|
+
}),
|
|
12576
|
+
dayPeriod: buildMatchFn({
|
|
12577
|
+
matchPatterns: matchDayPeriodPatterns,
|
|
12578
|
+
defaultMatchWidth: 'any',
|
|
12579
|
+
parsePatterns: parseDayPeriodPatterns,
|
|
12580
|
+
defaultParseWidth: 'any'
|
|
12581
|
+
})
|
|
12582
|
+
};
|
|
12583
|
+
|
|
12584
|
+
/**
|
|
12585
|
+
* @type {Locale}
|
|
12586
|
+
* @category Locales
|
|
12587
|
+
* @summary English locale (United States).
|
|
12588
|
+
* @language English
|
|
12589
|
+
* @iso-639-2 eng
|
|
12590
|
+
* @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
|
|
12591
|
+
* @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
|
|
12592
|
+
*/
|
|
12593
|
+
var locale$4 = {
|
|
12594
|
+
code: 'en-US',
|
|
12595
|
+
formatDistance: formatDistance$1,
|
|
12596
|
+
formatLong: formatLong$2,
|
|
12597
|
+
formatRelative: formatRelative,
|
|
12598
|
+
localize: localize,
|
|
12599
|
+
match: match,
|
|
12600
|
+
options: {
|
|
12601
|
+
weekStartsOn: 0 /* Sunday */,
|
|
12602
|
+
firstWeekContainsDate: 1
|
|
12603
|
+
}
|
|
12604
|
+
};
|
|
12605
|
+
|
|
12652
12606
|
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
12653
12607
|
// (one of the certain letters followed by `o`)
|
|
12654
12608
|
// - (\w)\1* matches any sequences of the same letter
|
|
@@ -12659,14 +12613,15 @@ function throwProtectedError(token, format, input) {
|
|
|
12659
12613
|
// If there is no matching single quote
|
|
12660
12614
|
// then the sequence will continue until the end of the string.
|
|
12661
12615
|
// - . matches any single character unmatched by previous parts of the RegExps
|
|
12616
|
+
var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
|
|
12662
12617
|
|
|
12663
|
-
|
|
12618
|
+
// This RegExp catches symbols escaped by quotes, and also
|
|
12664
12619
|
// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
|
|
12665
|
-
|
|
12666
12620
|
var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
12667
12621
|
var escapedStringRegExp = /^'([^]*?)'?$/;
|
|
12668
12622
|
var doubleQuoteRegExp = /''/g;
|
|
12669
12623
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
12624
|
+
|
|
12670
12625
|
/**
|
|
12671
12626
|
* @name format
|
|
12672
12627
|
* @category Common Helpers
|
|
@@ -12676,7 +12631,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12676
12631
|
* Return the formatted date string in the given format. The result may vary by locale.
|
|
12677
12632
|
*
|
|
12678
12633
|
* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
|
|
12679
|
-
* > See: https://
|
|
12634
|
+
* > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12680
12635
|
*
|
|
12681
12636
|
* The characters wrapped between two single quotes characters (') are escaped.
|
|
12682
12637
|
* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
|
|
@@ -12755,32 +12710,34 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12755
12710
|
* | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
12756
12711
|
* | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
12757
12712
|
* | | EEEEE | M, T, W, T, F, S, S | |
|
|
12758
|
-
* | | EEEEEE | Mo, Tu, We, Th, Fr,
|
|
12713
|
+
* | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
12759
12714
|
* | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
|
|
12760
12715
|
* | | io | 1st, 2nd, ..., 7th | 7 |
|
|
12761
12716
|
* | | ii | 01, 02, ..., 07 | 7 |
|
|
12762
12717
|
* | | iii | Mon, Tue, Wed, ..., Sun | 7 |
|
|
12763
12718
|
* | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
|
|
12764
12719
|
* | | iiiii | M, T, W, T, F, S, S | 7 |
|
|
12765
|
-
* | | iiiiii | Mo, Tu, We, Th, Fr,
|
|
12720
|
+
* | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
|
|
12766
12721
|
* | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
|
|
12767
12722
|
* | | eo | 2nd, 3rd, ..., 1st | 7 |
|
|
12768
12723
|
* | | ee | 02, 03, ..., 01 | |
|
|
12769
12724
|
* | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
12770
12725
|
* | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
12771
12726
|
* | | eeeee | M, T, W, T, F, S, S | |
|
|
12772
|
-
* | | eeeeee | Mo, Tu, We, Th, Fr,
|
|
12727
|
+
* | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
12773
12728
|
* | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
|
|
12774
12729
|
* | | co | 2nd, 3rd, ..., 1st | 7 |
|
|
12775
12730
|
* | | cc | 02, 03, ..., 01 | |
|
|
12776
12731
|
* | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
12777
12732
|
* | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
12778
12733
|
* | | ccccc | M, T, W, T, F, S, S | |
|
|
12779
|
-
* | | cccccc | Mo, Tu, We, Th, Fr,
|
|
12780
|
-
* | AM, PM | a..
|
|
12734
|
+
* | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
12735
|
+
* | AM, PM | a..aa | AM, PM | |
|
|
12736
|
+
* | | aaa | am, pm | |
|
|
12781
12737
|
* | | aaaa | a.m., p.m. | 2 |
|
|
12782
12738
|
* | | aaaaa | a, p | |
|
|
12783
|
-
* | AM, PM, noon, midnight | b..
|
|
12739
|
+
* | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
|
|
12740
|
+
* | | bbb | am, pm, noon, midnight | |
|
|
12784
12741
|
* | | bbbb | a.m., p.m., noon, midnight | 2 |
|
|
12785
12742
|
* | | bbbbb | a, p, n, mi | |
|
|
12786
12743
|
* | Flexible day period | B..BBB | at night, in the morning, ... | |
|
|
@@ -12806,7 +12763,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12806
12763
|
* | | ss | 00, 01, ..., 59 | |
|
|
12807
12764
|
* | Fraction of second | S | 0, 1, ..., 9 | |
|
|
12808
12765
|
* | | SS | 00, 01, ..., 99 | |
|
|
12809
|
-
* | | SSS | 000,
|
|
12766
|
+
* | | SSS | 000, 001, ..., 999 | |
|
|
12810
12767
|
* | | SSSS | ... | 3 |
|
|
12811
12768
|
* | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
|
|
12812
12769
|
* | | XX | -0800, +0530, Z | |
|
|
@@ -12826,18 +12783,18 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12826
12783
|
* | | tt | ... | 3,7 |
|
|
12827
12784
|
* | Milliseconds timestamp | T | 512969520900 | 7 |
|
|
12828
12785
|
* | | TT | ... | 3,7 |
|
|
12829
|
-
* | Long localized date | P |
|
|
12830
|
-
* | | PP |
|
|
12831
|
-
* | | PPP |
|
|
12832
|
-
* | | PPPP |
|
|
12786
|
+
* | Long localized date | P | 04/29/1453 | 7 |
|
|
12787
|
+
* | | PP | Apr 29, 1453 | 7 |
|
|
12788
|
+
* | | PPP | April 29th, 1453 | 7 |
|
|
12789
|
+
* | | PPPP | Friday, April 29th, 1453 | 2,7 |
|
|
12833
12790
|
* | Long localized time | p | 12:00 AM | 7 |
|
|
12834
12791
|
* | | pp | 12:00:00 AM | 7 |
|
|
12835
12792
|
* | | ppp | 12:00:00 AM GMT+2 | 7 |
|
|
12836
12793
|
* | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
|
|
12837
|
-
* | Combination of date and time | Pp |
|
|
12838
|
-
* | | PPpp |
|
|
12839
|
-
* | | PPPppp |
|
|
12840
|
-
* | | PPPPpppp|
|
|
12794
|
+
* | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
|
|
12795
|
+
* | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
|
|
12796
|
+
* | | PPPppp | April 29th, 1453 at ... | 7 |
|
|
12797
|
+
* | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
|
|
12841
12798
|
* Notes:
|
|
12842
12799
|
* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
|
|
12843
12800
|
* are the same as "stand-alone" units, but are different in some languages.
|
|
@@ -12910,30 +12867,10 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12910
12867
|
* - `p`: long localized time
|
|
12911
12868
|
*
|
|
12912
12869
|
* 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
|
|
12913
|
-
* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://
|
|
12914
|
-
*
|
|
12915
|
-
* 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
|
|
12916
|
-
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
|
|
12917
|
-
*
|
|
12918
|
-
* ### v2.0.0 breaking changes:
|
|
12919
|
-
*
|
|
12920
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
12870
|
+
* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12921
12871
|
*
|
|
12922
|
-
*
|
|
12923
|
-
*
|
|
12924
|
-
* ```javascript
|
|
12925
|
-
* // Before v2.0.0
|
|
12926
|
-
* format(new Date(2016, 0, 1))
|
|
12927
|
-
*
|
|
12928
|
-
* // v2.0.0 onward
|
|
12929
|
-
* format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
|
|
12930
|
-
* ```
|
|
12931
|
-
*
|
|
12932
|
-
* - New format string API for `format` function
|
|
12933
|
-
* which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
|
|
12934
|
-
* See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
|
|
12935
|
-
*
|
|
12936
|
-
* - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
|
|
12872
|
+
* 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
|
|
12873
|
+
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12937
12874
|
*
|
|
12938
12875
|
* @param {Date|Number} date - the original date
|
|
12939
12876
|
* @param {String} format - the string of tokens
|
|
@@ -12942,9 +12879,9 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12942
12879
|
* @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
|
|
12943
12880
|
* @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
|
|
12944
12881
|
* @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
|
|
12945
|
-
* see: https://
|
|
12882
|
+
* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12946
12883
|
* @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
|
|
12947
|
-
* see: https://
|
|
12884
|
+
* see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12948
12885
|
* @returns {String} the formatted date string
|
|
12949
12886
|
* @throws {TypeError} 2 arguments required
|
|
12950
12887
|
* @throws {RangeError} `date` must not be Invalid Date
|
|
@@ -12952,76 +12889,76 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
12952
12889
|
* @throws {RangeError} `options.locale` must contain `formatLong` property
|
|
12953
12890
|
* @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
|
|
12954
12891
|
* @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
|
|
12955
|
-
* @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://
|
|
12956
|
-
* @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://
|
|
12957
|
-
* @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://
|
|
12958
|
-
* @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://
|
|
12892
|
+
* @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12893
|
+
* @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12894
|
+
* @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12895
|
+
* @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
|
|
12959
12896
|
* @throws {RangeError} format string contains an unescaped latin alphabet character
|
|
12960
12897
|
*
|
|
12961
12898
|
* @example
|
|
12962
12899
|
* // Represent 11 February 2014 in middle-endian format:
|
|
12963
|
-
*
|
|
12900
|
+
* const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
|
|
12964
12901
|
* //=> '02/11/2014'
|
|
12965
12902
|
*
|
|
12966
12903
|
* @example
|
|
12967
12904
|
* // Represent 2 July 2014 in Esperanto:
|
|
12968
12905
|
* import { eoLocale } from 'date-fns/locale/eo'
|
|
12969
|
-
*
|
|
12906
|
+
* const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
|
|
12970
12907
|
* locale: eoLocale
|
|
12971
12908
|
* })
|
|
12972
12909
|
* //=> '2-a de julio 2014'
|
|
12973
12910
|
*
|
|
12974
12911
|
* @example
|
|
12975
12912
|
* // Escape string by single quote characters:
|
|
12976
|
-
*
|
|
12913
|
+
* const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
|
|
12977
12914
|
* //=> "3 o'clock"
|
|
12978
12915
|
*/
|
|
12979
12916
|
|
|
12980
|
-
function format
|
|
12917
|
+
function format(dirtyDate, dirtyFormatStr, options) {
|
|
12918
|
+
var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
|
|
12981
12919
|
requiredArgs(2, arguments);
|
|
12982
12920
|
var formatStr = String(dirtyFormatStr);
|
|
12983
|
-
var
|
|
12984
|
-
var locale$
|
|
12985
|
-
var
|
|
12986
|
-
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
|
|
12987
|
-
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
12921
|
+
var defaultOptions = getDefaultOptions();
|
|
12922
|
+
var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale$4;
|
|
12923
|
+
var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
|
|
12988
12924
|
|
|
12925
|
+
// Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
12989
12926
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
12990
12927
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
12991
12928
|
}
|
|
12992
|
-
var
|
|
12993
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
|
|
12994
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
12929
|
+
var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
|
|
12995
12930
|
|
|
12931
|
+
// Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
12996
12932
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
12997
12933
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
12998
12934
|
}
|
|
12999
|
-
if (!locale
|
|
12935
|
+
if (!locale.localize) {
|
|
13000
12936
|
throw new RangeError('locale must contain localize property');
|
|
13001
12937
|
}
|
|
13002
|
-
if (!locale
|
|
12938
|
+
if (!locale.formatLong) {
|
|
13003
12939
|
throw new RangeError('locale must contain formatLong property');
|
|
13004
12940
|
}
|
|
13005
12941
|
var originalDate = toDate(dirtyDate);
|
|
13006
12942
|
if (!isValid(originalDate)) {
|
|
13007
12943
|
throw new RangeError('Invalid time value');
|
|
13008
|
-
}
|
|
12944
|
+
}
|
|
12945
|
+
|
|
12946
|
+
// Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
13009
12947
|
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
13010
12948
|
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
13011
|
-
|
|
13012
12949
|
var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
|
|
13013
12950
|
var utcDate = subMilliseconds(originalDate, timezoneOffset);
|
|
13014
12951
|
var formatterOptions = {
|
|
13015
12952
|
firstWeekContainsDate: firstWeekContainsDate,
|
|
13016
12953
|
weekStartsOn: weekStartsOn,
|
|
13017
|
-
locale: locale
|
|
12954
|
+
locale: locale,
|
|
13018
12955
|
_originalDate: originalDate
|
|
13019
12956
|
};
|
|
13020
12957
|
var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
|
|
13021
12958
|
var firstCharacter = substring[0];
|
|
13022
12959
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
13023
12960
|
var longFormatter = longFormatters[firstCharacter];
|
|
13024
|
-
return longFormatter(substring, locale
|
|
12961
|
+
return longFormatter(substring, locale.formatLong);
|
|
13025
12962
|
}
|
|
13026
12963
|
return substring;
|
|
13027
12964
|
}).join('').match(formattingTokensRegExp).map(function (substring) {
|
|
@@ -13035,13 +12972,13 @@ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
13035
12972
|
}
|
|
13036
12973
|
var formatter = formatters[firstCharacter];
|
|
13037
12974
|
if (formatter) {
|
|
13038
|
-
if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
|
|
13039
|
-
throwProtectedError(substring, dirtyFormatStr, dirtyDate);
|
|
12975
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
12976
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
13040
12977
|
}
|
|
13041
|
-
if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
|
|
13042
|
-
throwProtectedError(substring, dirtyFormatStr, dirtyDate);
|
|
12978
|
+
if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
|
|
12979
|
+
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
13043
12980
|
}
|
|
13044
|
-
return formatter(utcDate, substring, locale
|
|
12981
|
+
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
13045
12982
|
}
|
|
13046
12983
|
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
13047
12984
|
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
@@ -13051,22 +12988,28 @@ function format$1(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
13051
12988
|
return result;
|
|
13052
12989
|
}
|
|
13053
12990
|
function cleanEscapedString(input) {
|
|
13054
|
-
|
|
12991
|
+
var matched = input.match(escapedStringRegExp);
|
|
12992
|
+
if (!matched) {
|
|
12993
|
+
return input;
|
|
12994
|
+
}
|
|
12995
|
+
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
13055
12996
|
}
|
|
13056
12997
|
|
|
13057
|
-
function convertToFP(fn, arity
|
|
13058
|
-
a =
|
|
12998
|
+
function convertToFP(fn, arity) {
|
|
12999
|
+
var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
13059
13000
|
if (a.length >= arity) {
|
|
13060
13001
|
return fn.apply(null, a.slice(0, arity).reverse());
|
|
13061
13002
|
}
|
|
13062
13003
|
return function () {
|
|
13063
|
-
var args = Array
|
|
13004
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13005
|
+
args[_key] = arguments[_key];
|
|
13006
|
+
}
|
|
13064
13007
|
return convertToFP(fn, arity, a.concat(args));
|
|
13065
13008
|
};
|
|
13066
13009
|
}
|
|
13067
13010
|
|
|
13068
|
-
// This file is generated automatically by `scripts/build/fp.
|
|
13069
|
-
var
|
|
13011
|
+
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
|
|
13012
|
+
var formatTime = convertToFP(format, 2);
|
|
13070
13013
|
|
|
13071
13014
|
var Wrapper = index$a(reactNative.View)(function () {
|
|
13072
13015
|
return {
|
|
@@ -13486,7 +13429,7 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13486
13429
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
|
|
13487
13430
|
testID: testID
|
|
13488
13431
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
|
|
13489
|
-
value: !useMonthPicker ?
|
|
13432
|
+
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13490
13433
|
testID: "calendar-month-picker",
|
|
13491
13434
|
onPress: function onPress() {
|
|
13492
13435
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
@@ -13502,7 +13445,7 @@ var CalendarRange = function CalendarRange(_ref) {
|
|
|
13502
13445
|
textAlign: 'center',
|
|
13503
13446
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
13504
13447
|
}
|
|
13505
|
-
},
|
|
13448
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
13506
13449
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
13507
13450
|
size: "small"
|
|
13508
13451
|
}))),
|
|
@@ -13653,7 +13596,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
13653
13596
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
|
|
13654
13597
|
testID: testID
|
|
13655
13598
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
|
|
13656
|
-
value: !useMonthPicker ?
|
|
13599
|
+
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13657
13600
|
testID: "calendar-month-picker",
|
|
13658
13601
|
onPress: function onPress() {
|
|
13659
13602
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
@@ -13669,7 +13612,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
13669
13612
|
textAlign: 'center',
|
|
13670
13613
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
13671
13614
|
}
|
|
13672
|
-
},
|
|
13615
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
13673
13616
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
13674
13617
|
size: "small"
|
|
13675
13618
|
}))),
|
|
@@ -14183,7 +14126,7 @@ var StyledPageControlWrapper = index$a(reactNative.View)(function (_ref7) {
|
|
|
14183
14126
|
});
|
|
14184
14127
|
|
|
14185
14128
|
function isCarouselImageProps(image) {
|
|
14186
|
-
return _typeof(image) === 'object';
|
|
14129
|
+
return _typeof$1(image) === 'object';
|
|
14187
14130
|
}
|
|
14188
14131
|
var CarouselItem = function CarouselItem(_ref) {
|
|
14189
14132
|
var width = _ref.width,
|
|
@@ -15104,6 +15047,82 @@ var useCalculateDate = function useCalculateDate(_ref) {
|
|
|
15104
15047
|
}, [maxDate, minDate, value]);
|
|
15105
15048
|
};
|
|
15106
15049
|
|
|
15050
|
+
var locale$3 = {
|
|
15051
|
+
lang: 'en-AU',
|
|
15052
|
+
dateTimeFormats: {
|
|
15053
|
+
fullDate: 'dd/MM/yyyy'
|
|
15054
|
+
}
|
|
15055
|
+
};
|
|
15056
|
+
|
|
15057
|
+
var LocaleContext = /*#__PURE__*/React.createContext(locale$3);
|
|
15058
|
+
|
|
15059
|
+
var useLocale = function useLocale() {
|
|
15060
|
+
var context = React.useContext(LocaleContext);
|
|
15061
|
+
if (!context) return locale$3;
|
|
15062
|
+
return context;
|
|
15063
|
+
};
|
|
15064
|
+
var useDateTimeFormat = function useDateTimeFormat() {
|
|
15065
|
+
var _useLocale = useLocale(),
|
|
15066
|
+
dateTimeFormats = _useLocale.dateTimeFormats;
|
|
15067
|
+
var localizeDateTime = React.useCallback(function (key) {
|
|
15068
|
+
return dateTimeFormats === null || dateTimeFormats === void 0 ? void 0 : dateTimeFormats[key];
|
|
15069
|
+
}, [dateTimeFormats]);
|
|
15070
|
+
return {
|
|
15071
|
+
localizeDateTime: localizeDateTime
|
|
15072
|
+
};
|
|
15073
|
+
};
|
|
15074
|
+
|
|
15075
|
+
var locale$2 = {
|
|
15076
|
+
lang: 'en-CA',
|
|
15077
|
+
dateTimeFormats: {
|
|
15078
|
+
fullDate: 'MMM dd, yyyy'
|
|
15079
|
+
}
|
|
15080
|
+
};
|
|
15081
|
+
|
|
15082
|
+
var locales = {
|
|
15083
|
+
'en-AU': locale$3,
|
|
15084
|
+
'en-CA': locale$2
|
|
15085
|
+
};
|
|
15086
|
+
|
|
15087
|
+
// Function to get the date format based on the displayFormat and locale,
|
|
15088
|
+
// if no displayFormat or locale is provided, use the default fullDate format
|
|
15089
|
+
var getDateFormat = function getDateFormat(_ref) {
|
|
15090
|
+
var displayFormat = _ref.displayFormat,
|
|
15091
|
+
locale = _ref.locale,
|
|
15092
|
+
localizeDateTime = _ref.localizeDateTime;
|
|
15093
|
+
// Prioritise displayFormat
|
|
15094
|
+
if (displayFormat) {
|
|
15095
|
+
return displayFormat;
|
|
15096
|
+
}
|
|
15097
|
+
// If locale is provided, find the corresponding locale in the locales object
|
|
15098
|
+
if (locale && locales[locale]) {
|
|
15099
|
+
var localeObject = locales[locale];
|
|
15100
|
+
if (localeObject) {
|
|
15101
|
+
return localeObject.dateTimeFormats.fullDate;
|
|
15102
|
+
}
|
|
15103
|
+
}
|
|
15104
|
+
// If no displayFormat or locale is provided, use the default fullDate format
|
|
15105
|
+
return localizeDateTime('fullDate');
|
|
15106
|
+
};
|
|
15107
|
+
|
|
15108
|
+
var useFormatDate = function useFormatDate(_ref) {
|
|
15109
|
+
var displayFormat = _ref.displayFormat,
|
|
15110
|
+
locale = _ref.locale,
|
|
15111
|
+
value = _ref.value;
|
|
15112
|
+
var _useDateTimeFormat = useDateTimeFormat(),
|
|
15113
|
+
localizeDateTime = _useDateTimeFormat.localizeDateTime;
|
|
15114
|
+
var format = getDateFormat({
|
|
15115
|
+
displayFormat: displayFormat,
|
|
15116
|
+
locale: locale,
|
|
15117
|
+
localizeDateTime: localizeDateTime
|
|
15118
|
+
});
|
|
15119
|
+
var displayValue = value ? formatTime(format, value) : '';
|
|
15120
|
+
return {
|
|
15121
|
+
displayValue: displayValue,
|
|
15122
|
+
format: format
|
|
15123
|
+
};
|
|
15124
|
+
};
|
|
15125
|
+
|
|
15107
15126
|
var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
15108
15127
|
var value = _ref.value,
|
|
15109
15128
|
minDate = _ref.minDate,
|
|
@@ -15111,8 +15130,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
15111
15130
|
label = _ref.label,
|
|
15112
15131
|
placeholder = _ref.placeholder,
|
|
15113
15132
|
_onChange = _ref.onChange,
|
|
15114
|
-
|
|
15115
|
-
displayFormat = _ref$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref$displayFormat,
|
|
15133
|
+
displayFormat = _ref.displayFormat,
|
|
15116
15134
|
_ref$disabled = _ref.disabled,
|
|
15117
15135
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15118
15136
|
required = _ref.required,
|
|
@@ -15121,19 +15139,27 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
15121
15139
|
style = _ref.style,
|
|
15122
15140
|
testID = _ref.testID,
|
|
15123
15141
|
_ref$variant = _ref.variant,
|
|
15124
|
-
variant = _ref$variant === void 0 ? 'default' : _ref$variant
|
|
15142
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
15143
|
+
renderSelectedValue = _ref.renderSelectedValue,
|
|
15144
|
+
locale = _ref.locale;
|
|
15125
15145
|
var _useState = React.useState(false),
|
|
15126
15146
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15127
15147
|
open = _useState2[0],
|
|
15128
15148
|
setOpen = _useState2[1];
|
|
15129
|
-
var
|
|
15130
|
-
|
|
15149
|
+
var _useFormatDate = useFormatDate({
|
|
15150
|
+
displayFormat: displayFormat,
|
|
15151
|
+
locale: locale,
|
|
15152
|
+
value: value
|
|
15153
|
+
}),
|
|
15154
|
+
displayValue = _useFormatDate.displayValue,
|
|
15155
|
+
format = _useFormatDate.format;
|
|
15131
15156
|
useCalculateDate({
|
|
15132
15157
|
minDate: minDate,
|
|
15133
15158
|
maxDate: maxDate,
|
|
15134
15159
|
onChange: _onChange,
|
|
15135
15160
|
value: value
|
|
15136
15161
|
});
|
|
15162
|
+
var pickerInitValue = value || new Date();
|
|
15137
15163
|
var theme = useTheme();
|
|
15138
15164
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
15139
15165
|
onPress: function onPress() {
|
|
@@ -15147,13 +15173,19 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
15147
15173
|
label: label,
|
|
15148
15174
|
value: displayValue,
|
|
15149
15175
|
suffix: "calendar-dates-outlined",
|
|
15150
|
-
placeholder: placeholder ||
|
|
15176
|
+
placeholder: placeholder || format,
|
|
15151
15177
|
disabled: disabled,
|
|
15152
15178
|
error: error,
|
|
15153
15179
|
required: required,
|
|
15154
15180
|
helpText: helpText,
|
|
15155
15181
|
style: style,
|
|
15156
|
-
testID: testID
|
|
15182
|
+
testID: testID,
|
|
15183
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
|
|
15184
|
+
return renderSelectedValue({
|
|
15185
|
+
date: value,
|
|
15186
|
+
formattedDateString: displayValue
|
|
15187
|
+
}, props);
|
|
15188
|
+
} : undefined
|
|
15157
15189
|
})), open && variant === 'month-year' ? /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerDialogueAndroid, {
|
|
15158
15190
|
themeVariant: theme.themeMode === 'dark' ? 'dark' : 'light',
|
|
15159
15191
|
value: value,
|
|
@@ -15233,8 +15265,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
15233
15265
|
placeholder = _ref2.placeholder,
|
|
15234
15266
|
onChange = _ref2.onChange,
|
|
15235
15267
|
confirmLabel = _ref2.confirmLabel,
|
|
15236
|
-
|
|
15237
|
-
displayFormat = _ref2$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref2$displayFormat,
|
|
15268
|
+
displayFormat = _ref2.displayFormat,
|
|
15238
15269
|
_ref2$disabled = _ref2.disabled,
|
|
15239
15270
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
15240
15271
|
required = _ref2.required,
|
|
@@ -15245,7 +15276,9 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
15245
15276
|
monthPickerConfirmLabel = _ref2.monthPickerConfirmLabel,
|
|
15246
15277
|
monthPickerCancelLabel = _ref2.monthPickerCancelLabel,
|
|
15247
15278
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
15248
|
-
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient
|
|
15279
|
+
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
15280
|
+
renderSelectedValue = _ref2.renderSelectedValue,
|
|
15281
|
+
locale = _ref2.locale;
|
|
15249
15282
|
var _useState5 = React.useState(false),
|
|
15250
15283
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
15251
15284
|
open = _useState6[0],
|
|
@@ -15259,7 +15292,12 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
15259
15292
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
15260
15293
|
selectingDate = _useState10[0],
|
|
15261
15294
|
setSelectingDate = _useState10[1];
|
|
15262
|
-
var
|
|
15295
|
+
var _useFormatDate = useFormatDate({
|
|
15296
|
+
value: value,
|
|
15297
|
+
displayFormat: displayFormat,
|
|
15298
|
+
locale: locale
|
|
15299
|
+
}),
|
|
15300
|
+
displayValue = _useFormatDate.displayValue;
|
|
15263
15301
|
useCalculateDate({
|
|
15264
15302
|
minDate: minDate,
|
|
15265
15303
|
maxDate: maxDate,
|
|
@@ -15284,7 +15322,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
15284
15322
|
required: required,
|
|
15285
15323
|
helpText: helpText,
|
|
15286
15324
|
testID: testID,
|
|
15287
|
-
style: style
|
|
15325
|
+
style: style,
|
|
15326
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
|
|
15327
|
+
return renderSelectedValue({
|
|
15328
|
+
date: value,
|
|
15329
|
+
formattedDateString: displayValue
|
|
15330
|
+
}, props);
|
|
15331
|
+
} : undefined
|
|
15288
15332
|
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
15289
15333
|
open: open,
|
|
15290
15334
|
onRequestClose: function onRequestClose() {
|
|
@@ -15330,8 +15374,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15330
15374
|
placeholder = _ref.placeholder,
|
|
15331
15375
|
onChange = _ref.onChange,
|
|
15332
15376
|
confirmLabel = _ref.confirmLabel,
|
|
15333
|
-
|
|
15334
|
-
displayFormat = _ref$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref$displayFormat,
|
|
15377
|
+
displayFormat = _ref.displayFormat,
|
|
15335
15378
|
_ref$disabled = _ref.disabled,
|
|
15336
15379
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15337
15380
|
required = _ref.required,
|
|
@@ -15343,7 +15386,9 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15343
15386
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
15344
15387
|
_ref$variant = _ref.variant,
|
|
15345
15388
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
15346
|
-
locale = _ref.locale
|
|
15389
|
+
locale = _ref.locale,
|
|
15390
|
+
renderSelectedValue = _ref.renderSelectedValue;
|
|
15391
|
+
var theme = useTheme();
|
|
15347
15392
|
var _useState = React.useState(getDateValue(value || new Date(), minDate, maxDate)),
|
|
15348
15393
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15349
15394
|
selectingDate = _useState2[0],
|
|
@@ -15352,8 +15397,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15352
15397
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
15353
15398
|
open = _useState4[0],
|
|
15354
15399
|
setOpen = _useState4[1];
|
|
15355
|
-
var
|
|
15356
|
-
|
|
15400
|
+
var _useLocale = useLocale(),
|
|
15401
|
+
defaultLocale = _useLocale.lang;
|
|
15402
|
+
var _useFormatDate = useFormatDate({
|
|
15403
|
+
displayFormat: displayFormat,
|
|
15404
|
+
locale: locale,
|
|
15405
|
+
value: value
|
|
15406
|
+
}),
|
|
15407
|
+
displayValue = _useFormatDate.displayValue,
|
|
15408
|
+
format = _useFormatDate.format;
|
|
15357
15409
|
useCalculateDate({
|
|
15358
15410
|
minDate: minDate,
|
|
15359
15411
|
maxDate: maxDate,
|
|
@@ -15372,13 +15424,19 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15372
15424
|
label: label,
|
|
15373
15425
|
value: displayValue,
|
|
15374
15426
|
suffix: "calendar-dates-outlined",
|
|
15375
|
-
placeholder: placeholder ||
|
|
15427
|
+
placeholder: placeholder || format,
|
|
15376
15428
|
disabled: disabled,
|
|
15377
15429
|
error: error,
|
|
15378
15430
|
required: required,
|
|
15379
15431
|
helpText: helpText,
|
|
15380
15432
|
testID: testID,
|
|
15381
|
-
style: style
|
|
15433
|
+
style: style,
|
|
15434
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (props) {
|
|
15435
|
+
return renderSelectedValue({
|
|
15436
|
+
date: value,
|
|
15437
|
+
formattedDateString: displayValue
|
|
15438
|
+
}, props);
|
|
15439
|
+
} : undefined
|
|
15382
15440
|
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
15383
15441
|
open: open,
|
|
15384
15442
|
onRequestClose: function onRequestClose() {
|
|
@@ -15398,7 +15456,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15398
15456
|
supportedOrientations: supportedOrientations
|
|
15399
15457
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper$1, null, variant === 'month-year' ? /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerViewIOS, {
|
|
15400
15458
|
value: value,
|
|
15401
|
-
locale: locale,
|
|
15459
|
+
locale: locale || defaultLocale,
|
|
15402
15460
|
minimumDate: minDate,
|
|
15403
15461
|
textColor: theme.colors.onDefaultGlobalSurface,
|
|
15404
15462
|
maximumDate: maxDate,
|
|
@@ -15411,7 +15469,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
15411
15469
|
flex: 1
|
|
15412
15470
|
}
|
|
15413
15471
|
}) : null, variant === 'default' ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
15414
|
-
locale: locale,
|
|
15472
|
+
locale: locale || defaultLocale,
|
|
15415
15473
|
testID: "datePickerIOS",
|
|
15416
15474
|
value: selectingDate,
|
|
15417
15475
|
minimumDate: minDate,
|
|
@@ -15736,6 +15794,701 @@ var index$7 = Object.assign(Drawer, {
|
|
|
15736
15794
|
Dragable: DragableDrawer
|
|
15737
15795
|
});
|
|
15738
15796
|
|
|
15797
|
+
var Add = function Add(_ref) {
|
|
15798
|
+
var stroke = _ref.stroke,
|
|
15799
|
+
fill = _ref.fill,
|
|
15800
|
+
testID = _ref.testID;
|
|
15801
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
15802
|
+
width: "73",
|
|
15803
|
+
height: "72",
|
|
15804
|
+
viewBox: "0 0 73 72",
|
|
15805
|
+
testID: testID
|
|
15806
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15807
|
+
x: "0.100098",
|
|
15808
|
+
y: "11.3684",
|
|
15809
|
+
width: "60.6316",
|
|
15810
|
+
height: "60.6316",
|
|
15811
|
+
rx: "20",
|
|
15812
|
+
fill: fill,
|
|
15813
|
+
stroke: "transparent"
|
|
15814
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Line, {
|
|
15815
|
+
x1: "30.1001",
|
|
15816
|
+
y1: "30",
|
|
15817
|
+
x2: "53.1001",
|
|
15818
|
+
y2: "30",
|
|
15819
|
+
stroke: stroke,
|
|
15820
|
+
strokeWidth: "4",
|
|
15821
|
+
strokeLinecap: "round"
|
|
15822
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Line, {
|
|
15823
|
+
x1: "41.6001",
|
|
15824
|
+
y1: "18.5",
|
|
15825
|
+
x2: "41.6001",
|
|
15826
|
+
y2: "41.5",
|
|
15827
|
+
stroke: stroke,
|
|
15828
|
+
strokeWidth: "4",
|
|
15829
|
+
strokeLinecap: "round"
|
|
15830
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15831
|
+
x: "13.4685",
|
|
15832
|
+
y: "2",
|
|
15833
|
+
width: "56.6316",
|
|
15834
|
+
height: "56.6316",
|
|
15835
|
+
rx: "18",
|
|
15836
|
+
stroke: stroke,
|
|
15837
|
+
fill: "transparent",
|
|
15838
|
+
strokeWidth: "4"
|
|
15839
|
+
}));
|
|
15840
|
+
};
|
|
15841
|
+
|
|
15842
|
+
var Boom = function Boom(_ref) {
|
|
15843
|
+
var stroke = _ref.stroke,
|
|
15844
|
+
fill = _ref.fill,
|
|
15845
|
+
testID = _ref.testID;
|
|
15846
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
15847
|
+
width: 74,
|
|
15848
|
+
height: 79,
|
|
15849
|
+
viewBox: "0 0 74 79",
|
|
15850
|
+
testID: testID
|
|
15851
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15852
|
+
d: "M17.762 51.247v12.16L2.996 41.693v-3.91l2.172-2.17h3.474l-.868-2.172-1.738-6.515 2.606-2.605 2.606-2.172-.434-6.514 4.343-1.303 3.908 1.303 3.475-2.606h4.343l6.514 9.989h-5.646c-3.33 9.265-9.989 27.882-9.989 28.229z",
|
|
15853
|
+
fill: fill
|
|
15854
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Mask, {
|
|
15855
|
+
id: "a",
|
|
15856
|
+
maskUnits: "userSpaceOnUse",
|
|
15857
|
+
x: 0,
|
|
15858
|
+
y: 10.4197,
|
|
15859
|
+
width: 74,
|
|
15860
|
+
height: 68,
|
|
15861
|
+
fill: "#000"
|
|
15862
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15863
|
+
fill: "#fff",
|
|
15864
|
+
d: "M0 10.4197H74V78.4197H0z"
|
|
15865
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15866
|
+
d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z"
|
|
15867
|
+
})), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15868
|
+
d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z",
|
|
15869
|
+
fill: stroke
|
|
15870
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15871
|
+
d: "M6.684 50.157c.67 1.054 1.425 2.303 2.257 3.66 3.266 5.374 7.329 12.056 10.944 15.345.266.245.542.453.81.67 2.999 3.275 6.912 5.515 10.585 6.704 2.71.882 5.316 1.308 7.818 1.308 7.238 0 13.572-3.637 18.566-10.758a9.692 9.692 0 011.9-2.004l11.314-9.035a5.593 5.593 0 002.094-3.845 5.582 5.582 0 00-1.298-4.18c-1.945-2.316-5.537-2.606-7.99-.647l-6.46 5.166c-.244.186-.556.222-.682.14-.068-.045-.15-.185-.2-.438v-.778c.037-.371.127-.833.326-1.426l3.045-9.436h-.014l4.158-12.866c.959-2.954-.67-6.139-3.624-7.098a5.492 5.492 0 00-3.556.059c.29-1.276.15-2.606-.461-3.778a5.572 5.572 0 00-3.289-2.791c-2.954-.959-6.139.67-7.098 3.624l-.407 1.262a5.558 5.558 0 00-2.814-2.072c-2.954-.95-6.139.67-7.098 3.623l-.832 2.584-5.791-9.116c-1.67-2.62-5.153-3.407-7.781-1.737a5.618 5.618 0 00-2.235 2.777c-.8-1.031-1.91-1.773-3.208-2.063a5.608 5.608 0 00-4.252.743c-2.62 1.669-3.407 5.152-1.737 7.78l.705 1.118a5.608 5.608 0 00-3.393.846 5.583 5.583 0 00-2.479 3.533 5.608 5.608 0 00.742 4.253l1.76 2.768a5.61 5.61 0 00-3.393.846 5.583 5.583 0 00-2.479 3.534 5.608 5.608 0 00.742 4.252l4.805 7.473zM4.892 36.816a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.75 10.622c.172.267.43.44.719.511-.683 2.57-1.172 5.004-1.276 7.008-.081 1.67.06 3.23.349 4.714-1.819-2.687-3.601-5.605-5.094-8.07-.833-1.367-1.597-2.63-2.28-3.697L3.86 41.412a3.331 3.331 0 01-.439-2.502 3.291 3.291 0 011.47-2.094zm1.91-9.31c.198-.87.705-1.598 1.46-2.073a3.314 3.314 0 014.574 1.018l7.483 11.78c-.892 2.584-1.855 5.411-2.674 8.175L11.42 36.6l-4.18-6.592a3.264 3.264 0 01-.439-2.502zm5.88-11.812a3.331 3.331 0 012.502-.44c.869.2 1.597.707 2.072 1.462l6.682 10.527-2.085 6.438c-.173.543-.372 1.122-.58 1.75l-6.487-10.215-3.13-4.949c-.973-1.538-.525-3.6 1.026-4.573zm9.673-1.462c1.538-.986 3.6-.52 4.587 1.018l3.904 6.148c-1.172-.185-2.375-.022-3.452.534a5.534 5.534 0 00-2.465 2.538l-3.592-5.65a3.342 3.342 0 011.018-4.588zM54.9 47.958l-.439 1.357a9.392 9.392 0 00-.43 2.005c.014.348.014.696 0 1.04.118 1.09.593 1.715 1.01 2.072.045.045.104.09.149.127.276.199.592.325.927.393.833.186 1.774-.022 2.56-.624l6.452-5.153c1.484-1.18 3.623-1.031 4.772.326.58.697.856 1.565.765 2.466a3.301 3.301 0 01-1.226 2.27l-11.314 9.035a11.756 11.756 0 00-2.353 2.488c-6.17 8.803-14.173 11.685-23.786 8.582-.2-.068-.407-.14-.602-.222a23.216 23.216 0 01-4.253-2.013c-1.75-1.054-3.429-2.375-4.854-3.963-2.723-3.045-4.542-7.066-4.306-12.056.126-2.687 1.09-6.415 2.248-10.156.29-.95.602-1.91.914-2.85.267-.801.534-1.575.787-2.34.163-.474.326-.95.488-1.401.09-.276.2-.557.29-.824.068-.199.127-.38.199-.579.439-1.298.855-2.488 1.194-3.533l1.493-4.61.923-2.868.326-.986a3.308 3.308 0 011.647-1.937 3.321 3.321 0 014.682 3.963l-.303.95-1.701 5.28-.462 1.434-.51 1.43-.937 2.881c-.023.09-.023.172-.037.267-.045.52.254 1.031.778 1.194a1.161 1.161 0 001.462-.742l.117-.357.326-.995.29-.905.036-.09.045-.14.461-1.426.082-.253 2.524-7.804.045-.15.014-.022.453-1.411v-.023l.452-1.412.013-.022 1.425-4.402a3.34 3.34 0 014.18-2.144 3.34 3.34 0 012.145 4.18l-3.117 9.636-.461 1.434-.453 1.389-1.47 4.528-.778 2.42a1.161 1.161 0 001.1 1.52c.022 0 .035-.013.058-.013.045 0 .09-.014.14-.023a.9.9 0 00.267-.081c.045-.023.09-.045.127-.068.081-.045.15-.104.222-.172.036-.036.067-.059.09-.09.09-.105.163-.231.208-.371l1.018-3.14.905-2.778.37-1.135.372-1.158 1.203-3.705 1.226-3.8 1.194-3.683.172-.534.602-1.854 1.031-3.185a3.34 3.34 0 014.18-2.145c.846.276 1.53.855 1.937 1.647.407.787.475 1.692.208 2.538l-.728 2.248-.43 1.308-.068.208-.439 1.357-1.841 5.687-2.895 8.962-1.679 5.198a1.161 1.161 0 001.1 1.52 1.16 1.16 0 001.099-.801l.325-1.018.037-.127 1.538-4.772 2.352-7.261.326-.996.914-2.814 1.122-3.487.244-.751a3.32 3.32 0 014.18-2.131 3.325 3.325 0 012.13 4.18L57.426 40.21l-1.737 5.375-.2.624-.588 1.75z",
|
|
15872
|
+
stroke: stroke,
|
|
15873
|
+
mask: "url(#a)"
|
|
15874
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15875
|
+
x: 37.6458,
|
|
15876
|
+
width: 2.60578,
|
|
15877
|
+
height: 7.81735,
|
|
15878
|
+
rx: 1.30289,
|
|
15879
|
+
transform: "rotate(2.496 37.646 0)",
|
|
15880
|
+
fill: stroke
|
|
15881
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15882
|
+
x: 45.5715,
|
|
15883
|
+
y: 2.60578,
|
|
15884
|
+
width: 2.60578,
|
|
15885
|
+
height: 7.81734,
|
|
15886
|
+
rx: 1.30289,
|
|
15887
|
+
transform: "rotate(23 45.572 2.606)",
|
|
15888
|
+
fill: stroke
|
|
15889
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15890
|
+
width: 2.60578,
|
|
15891
|
+
height: 7.81735,
|
|
15892
|
+
rx: 1.30289,
|
|
15893
|
+
transform: "scale(-1 1) rotate(23 -22.347 -77.062)",
|
|
15894
|
+
fill: stroke
|
|
15895
|
+
}));
|
|
15896
|
+
};
|
|
15897
|
+
|
|
15898
|
+
var Build = function Build(_ref) {
|
|
15899
|
+
var stroke = _ref.stroke,
|
|
15900
|
+
fill = _ref.fill,
|
|
15901
|
+
testID = _ref.testID;
|
|
15902
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
15903
|
+
width: "73",
|
|
15904
|
+
height: "72",
|
|
15905
|
+
viewBox: "0 0 73 72",
|
|
15906
|
+
testID: testID
|
|
15907
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15908
|
+
x: "0.615723",
|
|
15909
|
+
y: "11.3684",
|
|
15910
|
+
width: "60.6316",
|
|
15911
|
+
height: "60.6316",
|
|
15912
|
+
rx: "20",
|
|
15913
|
+
fill: fill,
|
|
15914
|
+
stroke: "transparent"
|
|
15915
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15916
|
+
x: "13.9841",
|
|
15917
|
+
y: "2",
|
|
15918
|
+
width: "56.6316",
|
|
15919
|
+
height: "56.6316",
|
|
15920
|
+
rx: "18",
|
|
15921
|
+
strokeWidth: "4",
|
|
15922
|
+
stroke: stroke,
|
|
15923
|
+
fill: "transparent"
|
|
15924
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15925
|
+
fillRule: "evenodd",
|
|
15926
|
+
clipRule: "evenodd",
|
|
15927
|
+
d: "M33.0369 42.8913C32.7714 42.9823 32.4958 43.0278 32.2152 43.0278C31.3833 43.0278 30.602 42.6258 30.1141 41.9507C29.6286 41.2756 29.4971 40.4059 29.7626 39.617L34.9407 24.0827C35.1961 23.3115 35.8004 22.7047 36.5715 22.4443L52.1059 17.2662C53.0364 16.9552 54.0629 17.198 54.7556 17.8932C55.4484 18.5861 55.6911 19.6126 55.3801 20.543L50.202 36.0774C49.9467 36.8485 49.3424 37.4553 48.5712 37.7132L33.0369 42.8913Z",
|
|
15928
|
+
stroke: stroke,
|
|
15929
|
+
fill: stroke
|
|
15930
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Circle, {
|
|
15931
|
+
cx: "43.0267",
|
|
15932
|
+
cy: "29.589",
|
|
15933
|
+
r: "3.94521",
|
|
15934
|
+
stroke: stroke,
|
|
15935
|
+
fill: fill
|
|
15936
|
+
}));
|
|
15937
|
+
};
|
|
15938
|
+
|
|
15939
|
+
var Clock = function Clock(_ref) {
|
|
15940
|
+
var stroke = _ref.stroke,
|
|
15941
|
+
fill = _ref.fill,
|
|
15942
|
+
testID = _ref.testID;
|
|
15943
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
15944
|
+
width: "73",
|
|
15945
|
+
height: "73",
|
|
15946
|
+
viewBox: "0 0 73 73",
|
|
15947
|
+
testID: testID
|
|
15948
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15949
|
+
x: "0.384277",
|
|
15950
|
+
y: "12.3684",
|
|
15951
|
+
width: "60.6316",
|
|
15952
|
+
height: "60.6316",
|
|
15953
|
+
rx: "20",
|
|
15954
|
+
fill: fill
|
|
15955
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15956
|
+
fillRule: "evenodd",
|
|
15957
|
+
clipRule: "evenodd",
|
|
15958
|
+
d: "M30.6916 57.4391C33.3944 57.6293 36.8359 57.6316 41.7001 57.6316C46.5643 57.6316 50.0057 57.6293 52.7085 57.4391C55.3738 57.2516 57.0177 56.8957 58.3216 56.3366C62.0954 54.7183 65.1026 51.7111 66.7209 47.9374C67.28 46.6334 67.6358 44.9895 67.8234 42.3242C68.0136 39.6215 68.0159 36.18 68.0159 31.3158C68.0159 26.4516 68.0136 23.0101 67.8234 20.3073C67.6358 17.6421 67.28 15.9982 66.7209 14.6942C65.1026 10.9204 62.0954 7.91326 58.3216 6.29499C57.0177 5.73584 55.3738 5.38001 52.7085 5.19248C50.0057 5.0023 46.5643 5 41.7001 5C36.8359 5 33.3944 5.0023 30.6916 5.19248C28.0264 5.38001 26.3824 5.73584 25.0785 6.29499C21.3047 7.91326 18.2975 10.9204 16.6793 14.6942C16.1201 15.9982 15.7643 17.6421 15.5768 20.3073C15.3866 23.0101 15.3843 26.4516 15.3843 31.3158C15.3843 36.18 15.3866 39.6215 15.5768 42.3242C15.7643 44.9895 16.1201 46.6334 16.6793 47.9374C18.2975 51.7111 21.3047 54.7183 25.0785 56.3366C26.3824 56.8957 28.0264 57.2516 30.6916 57.4391ZM13.003 13.1178C11.3843 16.8927 11.3843 21.7004 11.3843 31.3158C11.3843 40.9312 11.3843 45.7389 13.003 49.5138C15.0259 54.231 18.7848 57.99 23.5021 60.0128C27.2769 61.6316 32.0847 61.6316 41.7001 61.6316C51.3155 61.6316 56.1232 61.6316 59.8981 60.0128C64.6153 57.99 68.3743 54.231 70.3971 49.5138C72.0159 45.7389 72.0159 40.9312 72.0159 31.3158C72.0159 21.7004 72.0159 16.8927 70.3971 13.1178C68.3743 8.40056 64.6153 4.64158 59.8981 2.61874C56.1232 1 51.3155 1 41.7001 1C32.0847 1 27.2769 1 23.5021 2.61874C18.7848 4.64158 15.0259 8.40056 13.003 13.1178Z",
|
|
15959
|
+
fill: stroke
|
|
15960
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15961
|
+
d: "M41.3843 14.8C32.4514 14.8 25.1843 22.0668 25.1843 31C25.1843 39.9332 32.4511 47.2 41.3843 47.2C50.3175 47.2 57.5843 39.9332 57.5843 31C57.5843 22.0668 50.3175 14.8 41.3843 14.8ZM41.3843 43.6011C34.4369 43.6011 28.7829 37.9474 28.7829 30.9996C28.7829 24.0509 34.4365 18.3982 41.3843 18.3982C48.332 18.3982 53.9857 24.0519 53.9857 30.9996C53.9857 37.9474 48.332 43.6011 41.3843 43.6011Z",
|
|
15962
|
+
fill: stroke,
|
|
15963
|
+
stroke: stroke,
|
|
15964
|
+
strokeWidth: "0.4"
|
|
15965
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
15966
|
+
d: "M40.1357 32.5728L40.136 32.5731L45.0853 37.0085L45.0853 37.0085C45.4289 37.3162 45.8587 37.4677 46.2863 37.4677C46.7793 37.4677 47.2717 37.2663 47.6266 36.8693C48.2902 36.1289 48.2276 34.992 47.4874 34.3283L47.4874 34.3283L43.1717 30.46C43.1784 30.4064 43.1836 30.3487 43.1836 30.289V23.3144C43.1836 22.3209 42.3777 21.5151 41.3843 21.5151C40.3909 21.5151 39.585 22.3209 39.585 23.3144V30.289C39.585 30.2924 39.585 30.2968 39.585 30.302C39.5847 30.4004 39.5837 30.8131 39.6409 31.2636C39.671 31.5006 39.7179 31.7543 39.7923 31.9815C39.8651 32.2043 39.9717 32.4253 40.1357 32.5728Z",
|
|
15967
|
+
fill: stroke,
|
|
15968
|
+
stroke: stroke,
|
|
15969
|
+
strokeWidth: "0.4"
|
|
15970
|
+
}));
|
|
15971
|
+
};
|
|
15972
|
+
|
|
15973
|
+
var Confetti = function Confetti(_ref) {
|
|
15974
|
+
var stroke = _ref.stroke,
|
|
15975
|
+
fill = _ref.fill,
|
|
15976
|
+
testID = _ref.testID;
|
|
15977
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
15978
|
+
width: "73",
|
|
15979
|
+
height: "72",
|
|
15980
|
+
viewBox: "0 0 73 72",
|
|
15981
|
+
testID: testID
|
|
15982
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
15983
|
+
id: "clip0_19647_1699"
|
|
15984
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15985
|
+
width: "72",
|
|
15986
|
+
height: "72",
|
|
15987
|
+
fill: "white",
|
|
15988
|
+
transform: "translate(0.100098)"
|
|
15989
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
15990
|
+
clipPath: "url(#clip0_19647_1699)"
|
|
15991
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15992
|
+
x: "0.100098",
|
|
15993
|
+
y: "11.3684",
|
|
15994
|
+
width: "60.6316",
|
|
15995
|
+
height: "60.6316",
|
|
15996
|
+
rx: "20",
|
|
15997
|
+
fill: fill
|
|
15998
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
15999
|
+
x: "13.4685",
|
|
16000
|
+
y: "2",
|
|
16001
|
+
width: "56.6316",
|
|
16002
|
+
height: "56.6316",
|
|
16003
|
+
rx: "18",
|
|
16004
|
+
stroke: stroke,
|
|
16005
|
+
strokeWidth: "4",
|
|
16006
|
+
fill: "transparent"
|
|
16007
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16008
|
+
d: "M37.2714 23.8504L37.2714 23.8504L37.2699 23.8489C36.7659 23.3552 36.0534 23.1375 35.3412 23.3024C34.6474 23.458 34.0906 23.965 33.8538 24.634L33.8534 24.6351L28.0143 41.4536L28.014 41.4544C27.7561 42.2073 27.9423 43.0243 28.5095 43.5915L28.6509 43.4501L28.5095 43.5915C28.9011 43.9831 29.4275 44.2005 29.9662 44.2005C30.1958 44.2005 30.4216 44.1587 30.6425 44.0884L30.7818 44.0441V44.0309L47.4658 38.2476L47.467 38.2472C48.1359 38.0105 48.6428 37.4538 48.7985 36.7601C48.9632 36.0588 48.7562 35.3352 48.2504 34.8294L48.1089 34.9708L48.2504 34.8294L37.2714 23.8504ZM30.2858 41.8149L33.2962 33.1643L38.9363 38.8044L30.2858 41.8149ZM46.4171 36.2111L41.3149 37.9868L34.1227 30.7856L35.8895 25.6835L46.4171 36.2111Z",
|
|
16009
|
+
fill: stroke,
|
|
16010
|
+
stroke: stroke,
|
|
16011
|
+
strokeWidth: "0.4"
|
|
16012
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16013
|
+
d: "M43.5303 23.2622L43.5303 23.2623L42.3083 24.483C42.3083 24.483 42.3083 24.483 42.3083 24.4831C42.0872 24.7041 41.7966 24.8144 41.507 24.8144C41.2171 24.8144 40.9277 24.704 40.7068 24.4831C40.2638 24.0401 40.2635 23.3234 40.707 22.8813L41.9287 21.6608C41.9287 21.6608 41.9287 21.6607 41.9288 21.6607C43.03 20.5584 43.2426 18.8537 42.4463 17.5132L43.5303 23.2622ZM43.5303 23.2622C45.365 21.4275 45.7215 18.586 44.3933 16.3537L44.3932 16.3535M43.5303 23.2622L44.3932 16.3535M44.3932 16.3535C44.0734 15.8173 43.3796 15.6386 42.8401 15.9599L44.3932 16.3535ZM42.8401 15.96C42.3018 16.2801 42.1265 16.9754 42.4462 17.5131L42.8401 15.96Z",
|
|
16014
|
+
fill: stroke,
|
|
16015
|
+
stroke: stroke,
|
|
16016
|
+
strokeWidth: "0.4"
|
|
16017
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16018
|
+
d: "M55.7471 27.7085L55.7469 27.7084C53.5124 26.3791 50.6732 26.7343 48.8384 28.5715C48.8384 28.5715 48.8384 28.5715 48.8384 28.5715L47.6177 29.7934C47.6176 29.7934 47.6176 29.7934 47.6176 29.7934C47.6176 29.7935 47.6176 29.7935 47.6176 29.7935C47.1748 30.2364 47.1744 30.9529 47.6177 31.395C47.8387 31.6161 48.1294 31.7264 48.419 31.7264C48.7087 31.7264 48.9994 31.6161 49.2204 31.395L49.2205 31.3949L50.4411 30.1731C51.5448 29.0705 53.2505 28.8581 54.5886 29.6554L54.5891 29.6557C55.1289 29.9751 55.823 29.7989 56.142 29.2616L56.1423 29.261C56.4591 28.7236 56.2841 28.0288 55.7471 27.7085Z",
|
|
16019
|
+
fill: stroke,
|
|
16020
|
+
stroke: stroke,
|
|
16021
|
+
strokeWidth: "0.4"
|
|
16022
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16023
|
+
d: "M44.1614 27.9388L44.1616 27.939C44.3826 28.1601 44.6733 28.2704 44.963 28.2704C45.2526 28.2704 45.5433 28.1601 45.7643 27.939C45.7643 27.939 45.7643 27.939 45.7643 27.939L51.2223 22.481C51.6654 22.0379 51.6654 21.3225 51.2223 20.8794C50.7792 20.4363 50.0638 20.4363 49.6207 20.8794L44.163 26.3372L44.3041 26.4788L44.1627 26.3374L44.1628 26.3373C43.7195 26.7794 43.7199 27.4959 44.1614 27.9388Z",
|
|
16024
|
+
fill: stroke,
|
|
16025
|
+
stroke: stroke,
|
|
16026
|
+
strokeWidth: "0.4"
|
|
16027
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16028
|
+
d: "M51.6867 32.7765C51.6867 33.1416 51.8257 33.43 52.0454 33.6252C52.2614 33.8171 52.5437 33.9087 52.8195 33.9087C53.0953 33.9087 53.3776 33.8171 53.5936 33.6252C53.8133 33.43 53.9523 33.1416 53.9523 32.7765C53.9523 32.4112 53.8134 32.1226 53.5937 31.9272C53.3777 31.7352 53.0954 31.6434 52.8195 31.6434C52.5437 31.6434 52.2613 31.7352 52.0453 31.9272C51.8256 32.1226 51.6867 32.4112 51.6867 32.7765Z",
|
|
16029
|
+
fill: stroke,
|
|
16030
|
+
stroke: stroke,
|
|
16031
|
+
strokeWidth: "0.4"
|
|
16032
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16033
|
+
d: "M38.1892 19.2869C38.1892 19.6519 38.3281 19.9404 38.5478 20.1356C38.7638 20.3275 39.0462 20.4191 39.322 20.4191C39.5977 20.4191 39.8801 20.3275 40.0961 20.1356C40.3158 19.9404 40.4548 19.6519 40.4548 19.2869C40.4548 18.9216 40.3158 18.6329 40.0962 18.4376C39.8802 18.2455 39.5978 18.1538 39.322 18.1538C39.0461 18.1538 38.7638 18.2455 38.5478 18.4376C38.3281 18.6329 38.1892 18.9216 38.1892 19.2869Z",
|
|
16034
|
+
fill: stroke,
|
|
16035
|
+
stroke: stroke,
|
|
16036
|
+
strokeWidth: "0.4"
|
|
16037
|
+
})));
|
|
16038
|
+
};
|
|
16039
|
+
|
|
16040
|
+
var Connections = function Connections(_ref) {
|
|
16041
|
+
var stroke = _ref.stroke,
|
|
16042
|
+
fill = _ref.fill,
|
|
16043
|
+
testID = _ref.testID;
|
|
16044
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16045
|
+
width: "72",
|
|
16046
|
+
height: "73",
|
|
16047
|
+
viewBox: "0 0 72 73",
|
|
16048
|
+
testID: testID
|
|
16049
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16050
|
+
y: "12.2122",
|
|
16051
|
+
width: "60.6316",
|
|
16052
|
+
height: "60.6316",
|
|
16053
|
+
rx: "20",
|
|
16054
|
+
fill: fill,
|
|
16055
|
+
stroke: "transparent"
|
|
16056
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16057
|
+
x: "13.3684",
|
|
16058
|
+
y: "2.84375",
|
|
16059
|
+
width: "56.6316",
|
|
16060
|
+
height: "56.6316",
|
|
16061
|
+
rx: "18",
|
|
16062
|
+
stroke: stroke,
|
|
16063
|
+
fill: "transparent",
|
|
16064
|
+
strokeWidth: "4"
|
|
16065
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.G, null, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16066
|
+
d: "M36.1528 44.2908C34.083 44.2996 32.0953 43.4778 30.6377 42.0086C29.1729 40.5438 28.3496 38.5574 28.3496 36.486C28.3496 34.4132 29.1728 32.427 30.6377 30.9622L32.8408 28.7591C33.1338 28.4632 33.5337 28.2962 33.9497 28.2962C34.3657 28.2962 34.7656 28.4632 35.0586 28.7591L43.8872 37.5877C44.1831 37.8807 44.3501 38.2806 44.3501 38.6966C44.3501 39.1126 44.1831 39.5125 43.8872 39.8055L41.6841 42.0086C40.2163 43.4734 38.2256 44.2938 36.1528 44.2908ZM33.9497 32.0711L32.8408 33.1653C31.0069 34.9993 31.0069 37.9713 32.8408 39.8054C34.6748 41.6396 37.6468 41.6394 39.481 39.8054L40.5752 38.6966L33.9497 32.0711Z",
|
|
16067
|
+
fill: stroke,
|
|
16068
|
+
strokeWidth: "4"
|
|
16069
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16070
|
+
d: "M49.4961 33.6341C49.0786 33.6326 48.6802 33.4642 48.3872 33.1653L39.481 24.3367C39.1851 24.0437 39.0181 23.6438 39.0181 23.2278C39.0181 22.8118 39.1851 22.4119 39.481 22.119L41.6841 19.9158C43.1401 18.4085 45.1396 17.5486 47.236 17.5311C49.3307 17.512 51.3463 18.3367 52.8272 19.8192C54.3096 21.3001 55.1343 23.3157 55.1153 25.4104C55.0977 27.5066 54.2379 29.5062 52.7305 30.9623L50.5274 33.1654C50.255 33.4452 49.8872 33.6121 49.4961 33.6341ZM42.793 23.2278L49.4961 29.8533L50.605 28.7591H50.6064C51.4883 27.8802 51.9849 26.6849 51.9849 25.4383C51.9849 24.1932 51.4883 22.9978 50.6064 22.1189C48.7431 20.3538 45.8282 20.3538 43.9648 22.1189L42.793 23.2278Z",
|
|
16071
|
+
fill: stroke
|
|
16072
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16073
|
+
d: "M36.1527 33.634C35.7411 33.6282 35.3471 33.4597 35.0585 33.1653C34.4535 32.5559 34.4535 31.5715 35.0585 30.9622L38.3719 27.6502C38.9916 27.1184 39.9159 27.1551 40.493 27.7322C41.0702 28.3094 41.1053 29.2322 40.575 29.8533L37.2616 33.1653C36.9701 33.4641 36.5702 33.6326 36.1527 33.634Z",
|
|
16074
|
+
fill: stroke
|
|
16075
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16076
|
+
d: "M40.5752 38.0565C40.1621 38.0506 39.7696 37.8822 39.481 37.5877C38.8745 36.9784 38.8745 35.994 39.481 35.3846L42.793 32.0726V32.0712C43.414 31.5409 44.3369 31.576 44.914 32.1532C45.4912 32.7303 45.5278 33.6546 44.9961 34.2743L41.6841 37.5877C41.3911 37.8851 40.9927 38.0536 40.5752 38.0565Z",
|
|
16077
|
+
fill: stroke
|
|
16078
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16079
|
+
d: "M51.6216 22.5877C51.2056 22.5892 50.8071 22.4266 50.5127 22.1336C50.2168 21.8406 50.0498 21.4407 50.0498 21.0247C50.0498 20.6087 50.2168 20.2088 50.5127 19.9159L56.9815 13.4471C57.5938 12.8333 58.5869 12.8333 59.1992 13.4471C59.813 14.0594 59.813 15.0526 59.1992 15.6649L52.7305 22.1336C52.4361 22.4266 52.0376 22.5892 51.6216 22.5877Z",
|
|
16080
|
+
fill: stroke
|
|
16081
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16082
|
+
d: "M26.0586 48.1491C25.644 48.1521 25.2441 47.9895 24.9497 47.6965C24.6538 47.4036 24.4868 47.0036 24.4868 46.5876C24.4868 46.1702 24.6538 45.7717 24.9497 45.4773L30.6377 39.7893V39.7908C31.25 39.177 32.2432 39.177 32.8555 39.7908C33.4693 40.4031 33.4693 41.3962 32.8555 42.0086L27.169 47.6966C26.8731 47.9895 26.4746 48.1521 26.0586 48.1491Z",
|
|
16083
|
+
fill: stroke
|
|
16084
|
+
})));
|
|
16085
|
+
};
|
|
16086
|
+
|
|
16087
|
+
var ErrorIcon = function ErrorIcon(_ref) {
|
|
16088
|
+
var stroke = _ref.stroke,
|
|
16089
|
+
fill = _ref.fill,
|
|
16090
|
+
testID = _ref.testID;
|
|
16091
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16092
|
+
width: "72",
|
|
16093
|
+
height: "72",
|
|
16094
|
+
viewBox: "0 0 72 72",
|
|
16095
|
+
testID: testID
|
|
16096
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
16097
|
+
id: "clip0_19647_1720"
|
|
16098
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16099
|
+
width: "71.6316",
|
|
16100
|
+
height: "72",
|
|
16101
|
+
fill: "white"
|
|
16102
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16103
|
+
y: "11.3684",
|
|
16104
|
+
width: "60.6316",
|
|
16105
|
+
height: "60.6316",
|
|
16106
|
+
rx: "20",
|
|
16107
|
+
fill: fill,
|
|
16108
|
+
stroke: "transparent"
|
|
16109
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16110
|
+
x: "13",
|
|
16111
|
+
y: "2",
|
|
16112
|
+
width: "56.6316",
|
|
16113
|
+
height: "56.6316",
|
|
16114
|
+
rx: "18",
|
|
16115
|
+
stroke: stroke,
|
|
16116
|
+
fill: "transparent",
|
|
16117
|
+
strokeWidth: "4"
|
|
16118
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16119
|
+
x: "38.8",
|
|
16120
|
+
y: "15.8",
|
|
16121
|
+
width: "4.4",
|
|
16122
|
+
height: "21.4",
|
|
16123
|
+
rx: "1.2",
|
|
16124
|
+
fill: stroke,
|
|
16125
|
+
stroke: stroke,
|
|
16126
|
+
strokeWidth: "0.4"
|
|
16127
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16128
|
+
x: "38.8",
|
|
16129
|
+
y: "40.8",
|
|
16130
|
+
width: "4.4",
|
|
16131
|
+
height: "4.4",
|
|
16132
|
+
rx: "1.2",
|
|
16133
|
+
fill: stroke,
|
|
16134
|
+
stroke: stroke,
|
|
16135
|
+
strokeWidth: "0.4"
|
|
16136
|
+
}));
|
|
16137
|
+
};
|
|
16138
|
+
|
|
16139
|
+
var Info = function Info(_ref) {
|
|
16140
|
+
var stroke = _ref.stroke,
|
|
16141
|
+
fill = _ref.fill,
|
|
16142
|
+
testID = _ref.testID;
|
|
16143
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16144
|
+
width: "73",
|
|
16145
|
+
height: "72",
|
|
16146
|
+
viewBox: "0 0 73 72",
|
|
16147
|
+
testID: testID
|
|
16148
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16149
|
+
x: "0.799805",
|
|
16150
|
+
y: "11.3684",
|
|
16151
|
+
width: "60.6316",
|
|
16152
|
+
height: "60.6316",
|
|
16153
|
+
rx: "20",
|
|
16154
|
+
fill: fill,
|
|
16155
|
+
stroke: "transparent"
|
|
16156
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16157
|
+
x: "13.7998",
|
|
16158
|
+
y: "2",
|
|
16159
|
+
width: "56.6316",
|
|
16160
|
+
height: "56.6316",
|
|
16161
|
+
rx: "18",
|
|
16162
|
+
stroke: stroke,
|
|
16163
|
+
fill: "transparent",
|
|
16164
|
+
strokeWidth: "4"
|
|
16165
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16166
|
+
d: "M49.1021 17.6145L49.1018 17.6137L49.0596 17.5759C46.6814 15.4509 43.6028 14.4854 40.3885 14.8514L40.3882 14.8515C37.9096 15.138 35.5658 16.2835 33.7948 18.0612C32.0167 19.8461 30.904 22.1971 30.6572 24.6761C30.4511 26.5531 30.7238 28.4444 31.4371 30.1375L31.4373 30.1379C32.1233 31.7564 33.2083 33.2013 34.5796 34.3203C35.389 35.0195 35.8306 35.9376 35.8306 36.902C35.8306 36.9343 35.8329 36.965 35.8345 36.9863C35.8363 37.0109 35.8371 37.023 35.8371 37.0325V41.2545C35.8371 43.4251 37.5993 45.2245 39.7811 45.2245H43.5657C45.7397 45.2245 47.5097 43.4394 47.5097 41.2675V41.2671L47.5032 37.0652C47.5032 36.0799 47.9445 35.1119 48.683 34.4765C51.2707 32.3271 52.7627 29.1914 52.7627 25.8745L52.7627 25.874C52.756 22.7112 51.4274 19.7113 49.1021 17.6145ZM46.9725 32.4155L46.9643 32.4223L46.9568 32.4298C46.9416 32.445 46.9297 32.4607 46.9206 32.475C46.0459 33.2353 45.4139 34.2392 45.0849 35.3722H43.0073V29.3904C43.6033 29.2588 44.0513 28.7269 44.0513 28.0926C44.0513 27.3553 43.4549 26.7588 42.7175 26.7588H40.6294C39.8921 26.7588 39.2957 27.3553 39.2957 28.0926C39.2957 28.7334 39.7442 29.2601 40.3397 29.3906V35.3722H38.2855C37.9624 34.166 37.2877 33.1393 36.3257 32.3112C36.3232 32.3078 36.3199 32.3035 36.3161 32.2987C36.3118 32.2936 36.306 32.2869 36.2988 32.2797L36.2905 32.2714L36.2815 32.2641C35.2398 31.4192 34.414 30.3202 33.8999 29.1016C33.3542 27.807 33.1566 26.4097 33.3095 24.958L33.3107 24.9462V24.9344V24.9327C33.7029 21.0834 36.8018 17.9543 40.6943 17.5033C43.1443 17.2234 45.4881 17.9548 47.2919 19.5684L47.2921 19.5685C49.0709 21.1567 50.0946 23.451 50.0948 25.8669C50.0884 28.3832 48.9577 30.7739 46.9725 32.4155ZM43.5658 42.5499H39.7812C39.0814 42.5499 38.5048 41.9573 38.5048 41.2475V38.0398H41.4386C41.456 38.0398 41.4767 38.0427 41.5191 38.0498L41.5242 38.0506C41.5603 38.0567 41.6154 38.0659 41.6735 38.0659C41.7318 38.0659 41.7887 38.0566 41.8258 38.0505L41.8296 38.0499C41.8748 38.0425 41.8944 38.0398 41.9084 38.0398H44.836L44.8421 41.2739C44.8421 41.274 44.8421 41.2741 44.8421 41.2743C44.8419 41.9788 44.2705 42.5499 43.5658 42.5499Z",
|
|
16167
|
+
fill: stroke
|
|
16168
|
+
}));
|
|
16169
|
+
};
|
|
16170
|
+
|
|
16171
|
+
var List$1 = function List(_ref) {
|
|
16172
|
+
var stroke = _ref.stroke,
|
|
16173
|
+
fill = _ref.fill,
|
|
16174
|
+
testID = _ref.testID;
|
|
16175
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16176
|
+
width: "73",
|
|
16177
|
+
height: "72",
|
|
16178
|
+
viewBox: "0 0 73 72",
|
|
16179
|
+
testID: testID
|
|
16180
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16181
|
+
x: "0.199951",
|
|
16182
|
+
y: "11.3684",
|
|
16183
|
+
width: "60.6316",
|
|
16184
|
+
height: "60.6316",
|
|
16185
|
+
rx: "20",
|
|
16186
|
+
fill: fill,
|
|
16187
|
+
stroke: "transparent"
|
|
16188
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16189
|
+
x: "13.5684",
|
|
16190
|
+
y: "2",
|
|
16191
|
+
width: "56.6316",
|
|
16192
|
+
height: "56.6316",
|
|
16193
|
+
rx: "18",
|
|
16194
|
+
stroke: stroke,
|
|
16195
|
+
fill: "transparent",
|
|
16196
|
+
strokeWidth: "4"
|
|
16197
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16198
|
+
fillRule: "evenodd",
|
|
16199
|
+
clipRule: "evenodd",
|
|
16200
|
+
d: "M33.0421 20C31.4724 20 30.2 21.2725 30.2 22.8421C30.2 24.4118 31.4724 25.6842 33.0421 25.6842C34.6117 25.6842 35.8842 24.4118 35.8842 22.8421C35.8842 21.2725 34.6117 20 33.0421 20ZM39.6736 20.9474C38.6272 20.9474 37.7789 21.7957 37.7789 22.8421C37.7789 23.8885 38.6272 24.7368 39.6736 24.7368H51.0421C52.0885 24.7368 52.9368 23.8885 52.9368 22.8421C52.9368 21.7957 52.0885 20.9474 51.0421 20.9474H39.6736ZM39.6737 28.5263C38.6272 28.5263 37.7789 29.3746 37.7789 30.421C37.7789 31.4675 38.6272 32.3158 39.6737 32.3158H51.0421C52.0885 32.3158 52.9368 31.4675 52.9368 30.421C52.9368 29.3746 52.0885 28.5263 51.0421 28.5263H39.6737ZM37.7789 38C37.7789 36.9536 38.6272 36.1053 39.6736 36.1053H51.0421C52.0885 36.1053 52.9368 36.9536 52.9368 38C52.9368 39.0464 52.0885 39.8947 51.0421 39.8947H39.6736C38.6272 39.8947 37.7789 39.0464 37.7789 38ZM30.2 30.4211C30.2 28.8514 31.4724 27.5789 33.0421 27.5789C34.6117 27.5789 35.8842 28.8514 35.8842 30.4211C35.8842 31.9907 34.6117 33.2632 33.0421 33.2632C31.4724 33.2632 30.2 31.9907 30.2 30.4211ZM33.0421 35.1579C31.4724 35.1579 30.2 36.4304 30.2 38C30.2 39.5697 31.4724 40.8421 33.0421 40.8421C34.6117 40.8421 35.8842 39.5697 35.8842 38C35.8842 36.4304 34.6117 35.1579 33.0421 35.1579Z",
|
|
16201
|
+
fill: stroke
|
|
16202
|
+
}));
|
|
16203
|
+
};
|
|
16204
|
+
|
|
16205
|
+
var Location = function Location(_ref) {
|
|
16206
|
+
var stroke = _ref.stroke,
|
|
16207
|
+
fill = _ref.fill,
|
|
16208
|
+
testID = _ref.testID;
|
|
16209
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16210
|
+
width: "73",
|
|
16211
|
+
height: "73",
|
|
16212
|
+
viewBox: "0 0 73 73",
|
|
16213
|
+
testID: testID
|
|
16214
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16215
|
+
x: "0.615723",
|
|
16216
|
+
y: "12.2122",
|
|
16217
|
+
width: "60.6316",
|
|
16218
|
+
height: "60.6316",
|
|
16219
|
+
rx: "20",
|
|
16220
|
+
fill: fill,
|
|
16221
|
+
stroke: "transparent"
|
|
16222
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16223
|
+
x: "13.9841",
|
|
16224
|
+
y: "2.84375",
|
|
16225
|
+
width: "56.6316",
|
|
16226
|
+
height: "56.6316",
|
|
16227
|
+
rx: "18",
|
|
16228
|
+
stroke: stroke,
|
|
16229
|
+
fill: "transparent",
|
|
16230
|
+
strokeWidth: "4"
|
|
16231
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16232
|
+
d: "M42.4699 46.0151L42.6157 46.1392L42.7615 46.0151C46.7952 42.5827 49.8178 39.3865 51.8208 36.4261C53.8234 33.4663 54.8407 30.7039 54.8407 28.1437C54.8407 24.3408 53.615 21.2897 51.1495 19.0159C48.697 16.754 45.8493 15.6188 42.6157 15.6188C39.3821 15.6188 36.5344 16.754 34.0819 19.0159C31.6165 21.2897 30.3907 24.3408 30.3907 28.1437C30.3907 30.7039 31.4081 33.4663 33.4106 36.4261C35.4136 39.3865 38.4362 42.5827 42.4699 46.0151ZM42.6157 31.0688C43.5009 31.0688 44.2642 30.751 44.8936 30.1216C45.5229 29.4922 45.8407 28.7289 45.8407 27.8438C45.8407 26.9586 45.5229 26.1953 44.8936 25.5659C44.2642 24.9365 43.5009 24.6187 42.6157 24.6187C41.7306 24.6187 40.9672 24.9365 40.3379 25.5659C39.7085 26.1953 39.3907 26.9586 39.3907 27.8438C39.3907 28.7289 39.7085 29.4922 40.3379 30.1216C40.9672 30.751 41.7306 31.0688 42.6157 31.0688ZM49.2141 34.1156C47.7779 36.343 45.581 38.8254 42.6157 41.5629C39.6504 38.8254 37.4536 36.343 36.0173 34.1156C34.5542 31.8464 33.8407 29.8582 33.8407 28.1437C33.8407 25.4713 34.6906 23.2996 36.3811 21.6091C38.0751 19.9151 40.1486 19.0687 42.6157 19.0687C45.0829 19.0687 47.1564 19.9151 48.8504 21.6091C50.5409 23.2996 51.3907 25.4713 51.3907 28.1437C51.3907 29.8582 50.6773 31.8464 49.2141 34.1156Z",
|
|
16233
|
+
fill: stroke,
|
|
16234
|
+
stroke: stroke,
|
|
16235
|
+
strokeWidth: "0.45"
|
|
16236
|
+
}));
|
|
16237
|
+
};
|
|
16238
|
+
|
|
16239
|
+
var Merge = function Merge(_ref) {
|
|
16240
|
+
var stroke = _ref.stroke,
|
|
16241
|
+
fill = _ref.fill,
|
|
16242
|
+
testID = _ref.testID;
|
|
16243
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16244
|
+
width: "73",
|
|
16245
|
+
height: "73",
|
|
16246
|
+
viewBox: "0 0 73 73",
|
|
16247
|
+
testID: testID
|
|
16248
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16249
|
+
x: "0.100098",
|
|
16250
|
+
y: "12.2122",
|
|
16251
|
+
width: "60.6316",
|
|
16252
|
+
height: "60.6316",
|
|
16253
|
+
rx: "20",
|
|
16254
|
+
fill: fill,
|
|
16255
|
+
stroke: "transparent"
|
|
16256
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16257
|
+
x: "13.4685",
|
|
16258
|
+
y: "2.84375",
|
|
16259
|
+
width: "56.6316",
|
|
16260
|
+
height: "56.6316",
|
|
16261
|
+
rx: "18",
|
|
16262
|
+
stroke: stroke,
|
|
16263
|
+
fill: "transparent",
|
|
16264
|
+
strokeWidth: "4"
|
|
16265
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16266
|
+
x: "1.41239",
|
|
16267
|
+
y: "2.44635",
|
|
16268
|
+
width: "16.2083",
|
|
16269
|
+
height: "16.1187",
|
|
16270
|
+
rx: "2",
|
|
16271
|
+
transform: "matrix(0.966256 0.257583 -0.26006 0.965592 40.0996 23.1208)",
|
|
16272
|
+
stroke: stroke,
|
|
16273
|
+
fill: "transparent",
|
|
16274
|
+
strokeWidth: "4"
|
|
16275
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16276
|
+
fillRule: "evenodd",
|
|
16277
|
+
clipRule: "evenodd",
|
|
16278
|
+
d: "M47.1946 25.4544L48.3756 29.8395C48.9501 31.9726 47.6854 34.1632 45.5508 34.7322L35.6831 37.3627L38.4064 27.2513C38.9809 25.1182 41.1771 23.8502 43.3117 24.4193L47.1946 25.4544Z",
|
|
16279
|
+
fill: stroke
|
|
16280
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16281
|
+
x: "2.45263",
|
|
16282
|
+
y: "1.41602",
|
|
16283
|
+
width: "16.2083",
|
|
16284
|
+
height: "16.1187",
|
|
16285
|
+
rx: "2",
|
|
16286
|
+
transform: "matrix(0.966256 -0.257583 0.26006 0.965592 24.341 20.1727)",
|
|
16287
|
+
stroke: stroke,
|
|
16288
|
+
fill: "transparent",
|
|
16289
|
+
strokeWidth: "4"
|
|
16290
|
+
}));
|
|
16291
|
+
};
|
|
16292
|
+
|
|
16293
|
+
var Notifications = function Notifications(_ref) {
|
|
16294
|
+
var stroke = _ref.stroke,
|
|
16295
|
+
fill = _ref.fill,
|
|
16296
|
+
testID = _ref.testID;
|
|
16297
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16298
|
+
width: "72",
|
|
16299
|
+
height: "73",
|
|
16300
|
+
viewBox: "0 0 72 73",
|
|
16301
|
+
testID: testID
|
|
16302
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16303
|
+
y: "12.3684",
|
|
16304
|
+
width: "60.6316",
|
|
16305
|
+
height: "60.6316",
|
|
16306
|
+
rx: "20",
|
|
16307
|
+
fill: fill,
|
|
16308
|
+
stroke: "transparent"
|
|
16309
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16310
|
+
fillRule: "evenodd",
|
|
16311
|
+
clipRule: "evenodd",
|
|
16312
|
+
d: "M41.3158 57.6316C36.4516 57.6316 33.0101 57.6293 30.3073 57.4391C27.6421 57.2516 25.9982 56.8957 24.6942 56.3366C20.9204 54.7183 17.9133 51.7111 16.295 47.9374C15.7358 46.6334 15.38 44.9895 15.1925 42.3242C15.0023 39.6215 15 36.18 15 31.3158C15 26.4516 15.0023 23.0101 15.1925 20.3073C15.38 17.6421 15.7358 15.9982 16.295 14.6942C17.9133 10.9204 20.9204 7.91326 24.6942 6.29499C25.9982 5.73584 27.6421 5.38001 30.3073 5.19248C33.0101 5.0023 36.4516 5 41.3158 5C46.18 5 49.6215 5.0023 52.3242 5.19248C54.9895 5.38001 56.6334 5.73584 57.9374 6.29499C61.7111 7.91326 64.7183 10.9204 66.3366 14.6942C66.8957 15.9982 67.2516 17.6421 67.4391 20.3073C67.6293 23.0101 67.6316 26.4516 67.6316 31.3158C67.6316 36.18 67.6293 39.6215 67.4391 42.3242C67.2516 44.9895 66.8957 46.6334 66.3366 47.9374C64.7183 51.7111 61.7111 54.7183 57.9374 56.3366C56.6334 56.8957 54.9895 57.2516 52.3242 57.4391C49.6215 57.6293 46.18 57.6316 41.3158 57.6316ZM11 31.3158C11 21.7004 11 16.8927 12.6187 13.1178C14.6416 8.40056 18.4006 4.64158 23.1178 2.61874C26.8927 1 31.7004 1 41.3158 1C50.9312 1 55.7389 1 59.5138 2.61874C64.231 4.64158 67.99 8.40056 70.0128 13.1178C71.6316 16.8927 71.6316 21.7004 71.6316 31.3158C71.6316 40.9312 71.6316 45.7389 70.0128 49.5138C67.99 54.231 64.231 57.99 59.5138 60.0128C55.7389 61.6316 50.9312 61.6316 41.3158 61.6316C31.7004 61.6316 26.8927 61.6316 23.1178 60.0128C18.4006 57.99 14.6416 54.231 12.6187 49.5138C11 45.7389 11 40.9312 11 31.3158ZM49.1787 28.1109C49.1798 28.1439 49.1803 28.1771 49.1803 28.2103V34.4277C49.1803 34.4429 49.1802 34.4581 49.18 34.4733H50.6539C51.4678 34.4733 52.1276 35.1331 52.1276 35.947C52.1276 36.7609 51.4678 37.4206 50.6539 37.4206H31.4737C30.6598 37.4206 30 36.7609 30 35.947C30 35.1331 30.6598 34.4733 31.4737 34.4733H33.7073C33.7071 34.4581 33.7069 34.4429 33.7069 34.4277V28.2103C33.7069 28.1771 33.7075 28.1439 33.7085 28.111C33.7075 28.05 33.7069 27.9889 33.7069 27.9277C33.7069 23.5781 36.6526 19 41.4436 19C46.2346 19 49.1803 23.5781 49.1803 27.9277C49.1803 27.9889 49.1798 28.05 49.1787 28.1109ZM36.6521 34.4277V28.2105L36.6574 28.2103C36.6539 28.1167 36.6521 28.0225 36.6521 27.9277C36.6521 27.833 36.6539 27.7388 36.6574 27.6451C36.7765 24.4987 38.8738 21.993 41.4436 21.993C44.0134 21.993 46.1107 24.4987 46.2298 27.6451C46.2334 27.7388 46.2352 27.833 46.2352 27.9277C46.2352 28.0225 46.2334 28.1167 46.2298 28.2103L46.2352 28.2105V34.4277H36.6521ZM41.1865 45C38.8173 45 36.8684 43.2009 36.6314 40.8943H39.1591C39.3734 41.8157 40.1998 42.5023 41.1865 42.5023C42.1731 42.5023 42.9995 41.8157 43.2138 40.8943H45.7415C45.5045 43.2009 43.5556 45 41.1865 45Z",
|
|
16313
|
+
fill: stroke
|
|
16314
|
+
}));
|
|
16315
|
+
};
|
|
16316
|
+
|
|
16317
|
+
var Search$1 = function Search(_ref) {
|
|
16318
|
+
var stroke = _ref.stroke,
|
|
16319
|
+
fill = _ref.fill,
|
|
16320
|
+
testID = _ref.testID;
|
|
16321
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16322
|
+
width: "72",
|
|
16323
|
+
height: "72",
|
|
16324
|
+
viewBox: "0 0 72 72",
|
|
16325
|
+
testID: testID
|
|
16326
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16327
|
+
y: "11.3684",
|
|
16328
|
+
width: "60.6316",
|
|
16329
|
+
height: "60.6316",
|
|
16330
|
+
rx: "20",
|
|
16331
|
+
fill: fill,
|
|
16332
|
+
stroke: "transparent"
|
|
16333
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16334
|
+
x: "13.3684",
|
|
16335
|
+
y: "2",
|
|
16336
|
+
width: "56.6316",
|
|
16337
|
+
height: "56.6316",
|
|
16338
|
+
rx: "18",
|
|
16339
|
+
stroke: stroke,
|
|
16340
|
+
fill: "transparent",
|
|
16341
|
+
strokeWidth: "4"
|
|
16342
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16343
|
+
d: "M52.8697 41.5015L52.8705 41.5007C53.5138 40.8559 53.5137 39.8753 52.869 39.2306C52.869 39.2306 52.869 39.2306 52.869 39.2306L46.1982 32.5588C47.1965 31.1525 47.751 29.3916 47.751 27.514C47.751 22.6035 43.7947 18.6474 38.8841 18.6474C33.9734 18.6474 30.0159 22.6047 30.0159 27.5152C30.0159 32.4258 33.9722 36.3819 38.8828 36.3819C40.7683 36.3819 42.4693 35.823 43.9243 34.8256L50.5999 41.5009C50.9175 41.8186 51.323 41.9842 51.7351 41.9842C52.1475 41.9842 52.5514 41.8183 52.8697 41.5015ZM38.8841 33.1463C35.7542 33.1463 33.2529 30.645 33.2529 27.5152C33.2529 24.3855 35.7542 21.8842 38.8841 21.8842C42.0139 21.8842 44.5153 24.3855 44.5153 27.5152C44.5153 30.6437 42.0127 33.1463 38.8841 33.1463Z",
|
|
16344
|
+
fill: stroke,
|
|
16345
|
+
stroke: stroke,
|
|
16346
|
+
strokeWidth: "0.6"
|
|
16347
|
+
}));
|
|
16348
|
+
};
|
|
16349
|
+
|
|
16350
|
+
var Star = function Star(_ref) {
|
|
16351
|
+
var stroke = _ref.stroke,
|
|
16352
|
+
fill = _ref.fill,
|
|
16353
|
+
testID = _ref.testID;
|
|
16354
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16355
|
+
width: "73",
|
|
16356
|
+
height: "73",
|
|
16357
|
+
viewBox: "0 0 73 73",
|
|
16358
|
+
testID: testID
|
|
16359
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16360
|
+
x: "0.199951",
|
|
16361
|
+
y: "12.2122",
|
|
16362
|
+
width: "60.6316",
|
|
16363
|
+
height: "60.6316",
|
|
16364
|
+
rx: "20",
|
|
16365
|
+
fill: fill,
|
|
16366
|
+
stroke: "transparent"
|
|
16367
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16368
|
+
x: "13.5684",
|
|
16369
|
+
y: "2.84375",
|
|
16370
|
+
width: "56.6316",
|
|
16371
|
+
height: "56.6316",
|
|
16372
|
+
rx: "18",
|
|
16373
|
+
stroke: stroke,
|
|
16374
|
+
fill: "transparent",
|
|
16375
|
+
strokeWidth: "4"
|
|
16376
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16377
|
+
d: "M47.3478 43.1168L47.3612 43.1205L47.3748 43.1225C47.5985 43.1559 47.7728 43.1811 47.8971 43.198C48.0112 43.2134 48.1035 43.225 48.1452 43.225C48.9231 43.225 49.6046 42.9321 50.1801 42.3595C50.7616 41.781 51.0409 41.0649 51.017 40.2273C51.017 40.2271 51.0169 40.227 51.0169 40.2269L50.8848 34.8358L54.5252 29.6994C54.5255 29.699 54.5258 29.6986 54.5262 29.6981C54.7183 29.4349 54.8588 29.1566 54.9448 28.8633C55.0287 28.5769 55.0711 28.289 55.0711 28C55.0711 27.3755 54.8891 26.8027 54.5278 26.2875C54.1632 25.7676 53.6637 25.411 53.0384 25.219L47.4099 23.3415L43.7012 18.5646C43.7008 18.5641 43.7005 18.5637 43.7002 18.5633C43.412 18.1813 43.0652 17.8952 42.6593 17.7117C42.2618 17.5319 41.8449 17.4417 41.4107 17.4417C40.9765 17.4417 40.5596 17.5319 40.1621 17.7117C39.7563 17.8952 39.4094 18.1813 39.1212 18.5633L35.4115 23.3415L29.7804 25.2199L29.7804 25.2199L29.7783 25.2206C29.1547 25.4354 28.6614 25.803 28.3084 26.3237C27.9603 26.8372 27.7838 27.3976 27.7838 28C27.7838 28.289 27.8262 28.5769 27.9101 28.8633C27.9961 29.1565 28.1365 29.4349 28.3287 29.698C28.329 29.6985 28.3294 29.699 28.3297 29.6994L31.9366 34.8023L31.8045 40.2269C31.8045 40.227 31.8044 40.2272 31.8044 40.2274C31.7805 41.065 32.0599 41.7811 32.6413 42.3595C33.2168 42.9321 33.8983 43.225 34.6762 43.225C34.7952 43.225 34.9244 43.2191 35.0634 43.2076L35.0448 42.9833L35.0634 43.2076C35.2125 43.1952 35.3534 43.1645 35.4847 43.1137L41.4107 41.4669L47.3478 43.1168ZM37.2593 26.0471L37.3253 26.0254L37.3676 25.9703L41.4107 20.7029L45.4538 25.9703L45.4954 26.0245L45.5602 26.0465L51.7749 28.1499L47.7937 33.8038L47.7511 33.8642L47.7527 33.938L47.8804 40.0353L41.4711 38.2499L41.4112 38.2332L41.3513 38.2496L34.941 40.0035L35.0687 33.9381L35.0703 33.8649L35.0284 33.8048L31.0466 28.0862L37.2593 26.0471Z",
|
|
16378
|
+
fill: stroke,
|
|
16379
|
+
stroke: stroke,
|
|
16380
|
+
strokeWidth: "0.45"
|
|
16381
|
+
}));
|
|
16382
|
+
};
|
|
16383
|
+
|
|
16384
|
+
var User = function User(_ref) {
|
|
16385
|
+
var stroke = _ref.stroke,
|
|
16386
|
+
fill = _ref.fill,
|
|
16387
|
+
testID = _ref.testID;
|
|
16388
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16389
|
+
width: "73",
|
|
16390
|
+
height: "72",
|
|
16391
|
+
viewBox: "0 0 73 72",
|
|
16392
|
+
testID: testID
|
|
16393
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16394
|
+
x: "0.799805",
|
|
16395
|
+
y: "11.3684",
|
|
16396
|
+
width: "60.6316",
|
|
16397
|
+
height: "60.6316",
|
|
16398
|
+
rx: "20",
|
|
16399
|
+
fill: fill,
|
|
16400
|
+
stroke: "transparent"
|
|
16401
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16402
|
+
x: "13.7998",
|
|
16403
|
+
y: "2",
|
|
16404
|
+
width: "56.6316",
|
|
16405
|
+
height: "56.6316",
|
|
16406
|
+
rx: "18",
|
|
16407
|
+
stroke: stroke,
|
|
16408
|
+
fill: "transparent",
|
|
16409
|
+
strokeWidth: "4"
|
|
16410
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16411
|
+
fillRule: "evenodd",
|
|
16412
|
+
clipRule: "evenodd",
|
|
16413
|
+
d: "M39.6629 34.967C37.551 34.967 35.839 36.679 35.839 38.7909C35.839 39.4337 36.36 39.9547 37.0028 39.9547H47.6433C48.2861 39.9547 48.8071 39.4337 48.8071 38.7909C48.8071 36.679 47.0951 34.967 44.9832 34.967H39.6629ZM51.7998 38.7909C51.7998 41.0865 49.9389 42.9474 47.6433 42.9474H37.0028C34.7072 42.9474 32.8463 41.0865 32.8463 38.7909C32.8463 35.0262 35.8982 31.9743 39.6629 31.9743H44.9832C48.7479 31.9743 51.7998 35.0262 51.7998 38.7909Z",
|
|
16414
|
+
fill: stroke
|
|
16415
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16416
|
+
fillRule: "evenodd",
|
|
16417
|
+
clipRule: "evenodd",
|
|
16418
|
+
d: "M42.3231 21.0012C40.9457 21.0012 39.8292 22.1178 39.8292 23.4951C39.8292 24.8724 40.9457 25.989 42.3231 25.989C43.7004 25.989 44.8169 24.8724 44.8169 23.4951C44.8169 22.1178 43.7004 21.0012 42.3231 21.0012ZM36.8365 23.4951C36.8365 20.465 39.2929 18.0086 42.3231 18.0086C45.3532 18.0086 47.8096 20.465 47.8096 23.4951C47.8096 26.5252 45.3532 28.9816 42.3231 28.9816C39.2929 28.9816 36.8365 26.5252 36.8365 23.4951Z",
|
|
16419
|
+
fill: stroke
|
|
16420
|
+
}));
|
|
16421
|
+
};
|
|
16422
|
+
|
|
16423
|
+
var Success$1 = function Success(_ref) {
|
|
16424
|
+
var stroke = _ref.stroke,
|
|
16425
|
+
fill = _ref.fill,
|
|
16426
|
+
testID = _ref.testID;
|
|
16427
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
16428
|
+
width: "72",
|
|
16429
|
+
height: "72",
|
|
16430
|
+
viewBox: "0 0 72 72",
|
|
16431
|
+
testID: testID
|
|
16432
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
16433
|
+
id: "clip0_19647_1726"
|
|
16434
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16435
|
+
width: "71.6316",
|
|
16436
|
+
height: "72",
|
|
16437
|
+
fill: "white"
|
|
16438
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16439
|
+
y: "11.3684",
|
|
16440
|
+
width: "60.6316",
|
|
16441
|
+
height: "60.6316",
|
|
16442
|
+
rx: "20",
|
|
16443
|
+
fill: fill,
|
|
16444
|
+
stroke: "transparent"
|
|
16445
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
16446
|
+
fillRule: "evenodd",
|
|
16447
|
+
clipRule: "evenodd",
|
|
16448
|
+
d: "M53.5235 19.5692L53.5265 19.5662C52.9085 19.6113 52.3367 19.8945 51.934 20.3553L38.3475 35.8072L31.977 29.3614H31.9739C31.5435 28.9306 30.9563 28.6836 30.3383 28.6776C29.7234 28.6716 29.13 28.9065 28.6903 29.3312C27.7834 30.2047 27.768 31.6355 28.6565 32.53L36.776 40.7468C37.228 41.2047 37.8582 41.4547 38.5069 41.4366C39.1587 41.4185 39.7706 41.1324 40.1948 40.6505L55.4381 23.3039V23.3009C56.2713 22.3551 56.1668 20.9214 55.1983 20.1021C54.7341 19.7166 54.1314 19.5238 53.5258 19.569L53.5235 19.5692Z",
|
|
16449
|
+
fill: stroke
|
|
16450
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
16451
|
+
x: "13",
|
|
16452
|
+
y: "2",
|
|
16453
|
+
width: "56.6316",
|
|
16454
|
+
height: "56.6316",
|
|
16455
|
+
rx: "18",
|
|
16456
|
+
stroke: stroke,
|
|
16457
|
+
fill: "transparent",
|
|
16458
|
+
strokeWidth: "4"
|
|
16459
|
+
}));
|
|
16460
|
+
};
|
|
16461
|
+
|
|
16462
|
+
var StatusIcons = {
|
|
16463
|
+
add: Add,
|
|
16464
|
+
boom: Boom,
|
|
16465
|
+
build: Build,
|
|
16466
|
+
clock: Clock,
|
|
16467
|
+
connections: Connections,
|
|
16468
|
+
list: List$1,
|
|
16469
|
+
location: Location,
|
|
16470
|
+
merge: Merge,
|
|
16471
|
+
notifications: Notifications,
|
|
16472
|
+
search: Search$1,
|
|
16473
|
+
star: Star,
|
|
16474
|
+
user: User,
|
|
16475
|
+
confetti: Confetti,
|
|
16476
|
+
error: ErrorIcon,
|
|
16477
|
+
info: Info,
|
|
16478
|
+
success: Success$1
|
|
16479
|
+
};
|
|
16480
|
+
var StatusIcon = function StatusIcon(_ref) {
|
|
16481
|
+
var icon = _ref.icon,
|
|
16482
|
+
testID = _ref.testID;
|
|
16483
|
+
var Icon = StatusIcons[icon];
|
|
16484
|
+
var theme = useTheme();
|
|
16485
|
+
return Icon && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
16486
|
+
stroke: theme.colors.primary,
|
|
16487
|
+
fill: theme.colors.decorativeSecondarySurface,
|
|
16488
|
+
testID: testID
|
|
16489
|
+
});
|
|
16490
|
+
};
|
|
16491
|
+
|
|
15739
16492
|
var StyledWrapper$7 = index$a(reactNative.View)(function (_ref) {
|
|
15740
16493
|
var theme = _ref.theme;
|
|
15741
16494
|
return {
|
|
@@ -15764,24 +16517,45 @@ var StyledDescription = index$a(Typography.Body)(function (_ref3) {
|
|
|
15764
16517
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
|
|
15765
16518
|
};
|
|
15766
16519
|
});
|
|
16520
|
+
var StyledEmptyImageContainer = index$a(reactNative.View)(function (_ref4) {
|
|
16521
|
+
var theme = _ref4.theme;
|
|
16522
|
+
return {
|
|
16523
|
+
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
16524
|
+
};
|
|
16525
|
+
});
|
|
15767
16526
|
|
|
15768
|
-
var
|
|
16527
|
+
var renderImageOrIcon$2 = function renderImageOrIcon(_ref) {
|
|
15769
16528
|
var image = _ref.image,
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
16529
|
+
icon = _ref.icon;
|
|
16530
|
+
if (icon) {
|
|
16531
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledEmptyImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
|
|
16532
|
+
icon: icon,
|
|
16533
|
+
testID: "empty-icon"
|
|
16534
|
+
}));
|
|
16535
|
+
}
|
|
16536
|
+
if (image) {
|
|
16537
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledEmptyImageContainer, {
|
|
16538
|
+
testID: "empty-image"
|
|
16539
|
+
}, image);
|
|
16540
|
+
}
|
|
16541
|
+
return null;
|
|
16542
|
+
};
|
|
16543
|
+
var Empty = function Empty(_ref2) {
|
|
16544
|
+
var image = _ref2.image,
|
|
16545
|
+
title = _ref2.title,
|
|
16546
|
+
description = _ref2.description,
|
|
16547
|
+
style = _ref2.style,
|
|
16548
|
+
testID = _ref2.testID,
|
|
16549
|
+
_ref2$variant = _ref2.variant,
|
|
16550
|
+
variant = _ref2$variant === void 0 ? 'light' : _ref2$variant,
|
|
16551
|
+
icon = _ref2.icon;
|
|
15777
16552
|
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$7, {
|
|
15778
16553
|
style: style,
|
|
15779
16554
|
testID: testID
|
|
15780
|
-
},
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
})), /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
|
|
16555
|
+
}, renderImageOrIcon$2({
|
|
16556
|
+
image: image,
|
|
16557
|
+
icon: icon
|
|
16558
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
|
|
15785
16559
|
themeVariant: variant,
|
|
15786
16560
|
level: "h4",
|
|
15787
16561
|
typeface: "playful"
|
|
@@ -16200,7 +16974,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
16200
16974
|
};
|
|
16201
16975
|
});
|
|
16202
16976
|
|
|
16203
|
-
var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
16977
|
+
var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
16204
16978
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
16205
16979
|
var renderImage$1 = function renderImage(image) {
|
|
16206
16980
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -16215,25 +16989,43 @@ var renderImage$1 = function renderImage(image) {
|
|
|
16215
16989
|
testID: "error-image"
|
|
16216
16990
|
});
|
|
16217
16991
|
};
|
|
16218
|
-
var
|
|
16219
|
-
var
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16992
|
+
var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
|
|
16993
|
+
var image = _ref.image,
|
|
16994
|
+
icon = _ref.icon;
|
|
16995
|
+
if (icon) {
|
|
16996
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
|
|
16997
|
+
icon: icon,
|
|
16998
|
+
testID: "error-icon"
|
|
16999
|
+
}));
|
|
17000
|
+
}
|
|
17001
|
+
if (image) {
|
|
17002
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorImageContainer, null, renderImage$1(image));
|
|
17003
|
+
}
|
|
17004
|
+
return null;
|
|
17005
|
+
};
|
|
17006
|
+
var ErrorPage = function ErrorPage(_ref2) {
|
|
17007
|
+
var _ref2$variant = _ref2.variant,
|
|
17008
|
+
variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
|
|
17009
|
+
title = _ref2.title,
|
|
17010
|
+
description = _ref2.description,
|
|
17011
|
+
image = _ref2.image,
|
|
17012
|
+
testID = _ref2.testID,
|
|
17013
|
+
ctaText = _ref2.ctaText,
|
|
17014
|
+
onCtaPress = _ref2.onCtaPress,
|
|
17015
|
+
secondaryCtaText = _ref2.secondaryCtaText,
|
|
17016
|
+
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
17017
|
+
icon = _ref2.icon,
|
|
17018
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$o);
|
|
16230
17019
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
16231
17020
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
16232
17021
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
16233
17022
|
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$1, _extends$1({
|
|
16234
17023
|
testID: testID,
|
|
16235
17024
|
themeVariant: variant
|
|
16236
|
-
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledErrorContent, null,
|
|
17025
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledErrorContent, null, renderImageOrIcon$1({
|
|
17026
|
+
image: image,
|
|
17027
|
+
icon: icon
|
|
17028
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledErrorTitle, {
|
|
16237
17029
|
level: "h4",
|
|
16238
17030
|
typeface: "playful"
|
|
16239
17031
|
}, title), description && /*#__PURE__*/React__namespace.default.createElement(StyledErrorDescription, {
|
|
@@ -16254,20 +17046,20 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
16254
17046
|
* @param {ErrorProps}
|
|
16255
17047
|
* @return {*} {ReactElement}
|
|
16256
17048
|
*/
|
|
16257
|
-
var ErrorComponent = function ErrorComponent(
|
|
16258
|
-
var
|
|
16259
|
-
visible =
|
|
16260
|
-
|
|
16261
|
-
variant =
|
|
16262
|
-
title =
|
|
16263
|
-
description =
|
|
16264
|
-
image =
|
|
16265
|
-
testID =
|
|
16266
|
-
ctaText =
|
|
16267
|
-
onCtaPress =
|
|
16268
|
-
secondaryCtaText =
|
|
16269
|
-
onSecondaryCtaPress =
|
|
16270
|
-
nativeProps = _objectWithoutProperties(
|
|
17049
|
+
var ErrorComponent = function ErrorComponent(_ref3) {
|
|
17050
|
+
var _ref3$visible = _ref3.visible,
|
|
17051
|
+
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
17052
|
+
_ref3$variant = _ref3.variant,
|
|
17053
|
+
variant = _ref3$variant === void 0 ? 'in-page' : _ref3$variant,
|
|
17054
|
+
title = _ref3.title,
|
|
17055
|
+
description = _ref3.description,
|
|
17056
|
+
image = _ref3.image,
|
|
17057
|
+
testID = _ref3.testID,
|
|
17058
|
+
ctaText = _ref3.ctaText,
|
|
17059
|
+
onCtaPress = _ref3.onCtaPress,
|
|
17060
|
+
secondaryCtaText = _ref3.secondaryCtaText,
|
|
17061
|
+
onSecondaryCtaPress = _ref3.onSecondaryCtaPress,
|
|
17062
|
+
nativeProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
16271
17063
|
useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
|
|
16272
17064
|
var _useState = React.useState(visible),
|
|
16273
17065
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17174,12 +17966,307 @@ var Toast = {
|
|
|
17174
17966
|
useToast: useToast
|
|
17175
17967
|
};
|
|
17176
17968
|
|
|
17969
|
+
/**
|
|
17970
|
+
* @name setDefaultOptions
|
|
17971
|
+
* @category Common Helpers
|
|
17972
|
+
* @summary Set default options including locale.
|
|
17973
|
+
* @pure false
|
|
17974
|
+
*
|
|
17975
|
+
* @description
|
|
17976
|
+
* Sets the defaults for
|
|
17977
|
+
* `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`
|
|
17978
|
+
* arguments for all functions.
|
|
17979
|
+
*
|
|
17980
|
+
* @param {Object} newOptions - an object with options.
|
|
17981
|
+
* @param {Locale} [newOptions.locale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
|
|
17982
|
+
* @param {0|1|2|3|4|5|6} [newOptions.weekStartsOn] - the index of the first day of the week (0 - Sunday)
|
|
17983
|
+
* @param {1|2|3|4|5|6|7} [newOptions.firstWeekContainsDate] - the day of January, which is always in the first week of the year
|
|
17984
|
+
* @throws {TypeError} 1 argument required
|
|
17985
|
+
*
|
|
17986
|
+
* @example
|
|
17987
|
+
* // Set global locale:
|
|
17988
|
+
* import { es } from 'date-fns/locale'
|
|
17989
|
+
* setDefaultOptions({ locale: es })
|
|
17990
|
+
* const result = format(new Date(2014, 8, 2), 'PPPP')
|
|
17991
|
+
* //=> 'martes, 2 de septiembre de 2014'
|
|
17992
|
+
*
|
|
17993
|
+
* @example
|
|
17994
|
+
* // Start of the week for 2 September 2014:
|
|
17995
|
+
* const result = startOfWeek(new Date(2014, 8, 2))
|
|
17996
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
17997
|
+
*
|
|
17998
|
+
* @example
|
|
17999
|
+
* // Start of the week for 2 September 2014,
|
|
18000
|
+
* // when we set that week starts on Monday by default:
|
|
18001
|
+
* setDefaultOptions({ weekStartsOn: 1 })
|
|
18002
|
+
* const result = startOfWeek(new Date(2014, 8, 2))
|
|
18003
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
18004
|
+
*
|
|
18005
|
+
* @example
|
|
18006
|
+
* // Manually set options take priority over default options:
|
|
18007
|
+
* setDefaultOptions({ weekStartsOn: 1 })
|
|
18008
|
+
* const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 })
|
|
18009
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
18010
|
+
*
|
|
18011
|
+
* @example
|
|
18012
|
+
* // Remove the option by setting it to `undefined`:
|
|
18013
|
+
* setDefaultOptions({ weekStartsOn: 1 })
|
|
18014
|
+
* setDefaultOptions({ weekStartsOn: undefined })
|
|
18015
|
+
* const result = startOfWeek(new Date(2014, 8, 2))
|
|
18016
|
+
* //=> Sun Aug 31 2014 00:00:00
|
|
18017
|
+
*/
|
|
18018
|
+
function setDefaultOptions(newOptions) {
|
|
18019
|
+
requiredArgs(1, arguments);
|
|
18020
|
+
var result = {};
|
|
18021
|
+
var defaultOptions = getDefaultOptions();
|
|
18022
|
+
for (var property in defaultOptions) {
|
|
18023
|
+
if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) {
|
|
18024
|
+
result[property] = defaultOptions[property];
|
|
18025
|
+
}
|
|
18026
|
+
}
|
|
18027
|
+
for (var _property in newOptions) {
|
|
18028
|
+
if (Object.prototype.hasOwnProperty.call(newOptions, _property)) {
|
|
18029
|
+
if (newOptions[_property] === undefined) {
|
|
18030
|
+
delete result[_property];
|
|
18031
|
+
} else {
|
|
18032
|
+
result[_property] = newOptions[_property];
|
|
18033
|
+
}
|
|
18034
|
+
}
|
|
18035
|
+
}
|
|
18036
|
+
setDefaultOptions$1(result);
|
|
18037
|
+
}
|
|
18038
|
+
|
|
18039
|
+
var dateFormats$1 = {
|
|
18040
|
+
full: 'EEEE, d MMMM yyyy',
|
|
18041
|
+
"long": 'd MMMM yyyy',
|
|
18042
|
+
medium: 'd MMM yyyy',
|
|
18043
|
+
"short": 'dd/MM/yyyy'
|
|
18044
|
+
};
|
|
18045
|
+
var timeFormats$1 = {
|
|
18046
|
+
full: 'h:mm:ss a zzzz',
|
|
18047
|
+
"long": 'h:mm:ss a z',
|
|
18048
|
+
medium: 'h:mm:ss a',
|
|
18049
|
+
"short": 'h:mm a'
|
|
18050
|
+
};
|
|
18051
|
+
var dateTimeFormats$1 = {
|
|
18052
|
+
full: "{{date}} 'at' {{time}}",
|
|
18053
|
+
"long": "{{date}} 'at' {{time}}",
|
|
18054
|
+
medium: '{{date}}, {{time}}',
|
|
18055
|
+
"short": '{{date}}, {{time}}'
|
|
18056
|
+
};
|
|
18057
|
+
var formatLong$1 = {
|
|
18058
|
+
date: buildFormatLongFn({
|
|
18059
|
+
formats: dateFormats$1,
|
|
18060
|
+
defaultWidth: 'full'
|
|
18061
|
+
}),
|
|
18062
|
+
time: buildFormatLongFn({
|
|
18063
|
+
formats: timeFormats$1,
|
|
18064
|
+
defaultWidth: 'full'
|
|
18065
|
+
}),
|
|
18066
|
+
dateTime: buildFormatLongFn({
|
|
18067
|
+
formats: dateTimeFormats$1,
|
|
18068
|
+
defaultWidth: 'full'
|
|
18069
|
+
})
|
|
18070
|
+
};
|
|
18071
|
+
|
|
18072
|
+
/**
|
|
18073
|
+
* @type {Locale}
|
|
18074
|
+
* @category Locales
|
|
18075
|
+
* @summary English locale (Australia).
|
|
18076
|
+
* @language English
|
|
18077
|
+
* @iso-639-2 eng
|
|
18078
|
+
* @author Julien Malige [@JulienMalige]{@link https://github.com/JulienMalige}
|
|
18079
|
+
*/
|
|
18080
|
+
var locale$1 = {
|
|
18081
|
+
code: 'en-AU',
|
|
18082
|
+
formatDistance: formatDistance$1,
|
|
18083
|
+
formatLong: formatLong$1,
|
|
18084
|
+
formatRelative: formatRelative,
|
|
18085
|
+
localize: localize,
|
|
18086
|
+
match: match,
|
|
18087
|
+
options: {
|
|
18088
|
+
weekStartsOn: 1 /* Monday */,
|
|
18089
|
+
firstWeekContainsDate: 4
|
|
18090
|
+
}
|
|
18091
|
+
};
|
|
18092
|
+
|
|
18093
|
+
var formatDistanceLocale = {
|
|
18094
|
+
lessThanXSeconds: {
|
|
18095
|
+
one: 'less than a second',
|
|
18096
|
+
other: 'less than {{count}} seconds'
|
|
18097
|
+
},
|
|
18098
|
+
xSeconds: {
|
|
18099
|
+
one: 'a second',
|
|
18100
|
+
other: '{{count}} seconds'
|
|
18101
|
+
},
|
|
18102
|
+
halfAMinute: 'half a minute',
|
|
18103
|
+
lessThanXMinutes: {
|
|
18104
|
+
one: 'less than a minute',
|
|
18105
|
+
other: 'less than {{count}} minutes'
|
|
18106
|
+
},
|
|
18107
|
+
xMinutes: {
|
|
18108
|
+
one: 'a minute',
|
|
18109
|
+
other: '{{count}} minutes'
|
|
18110
|
+
},
|
|
18111
|
+
aboutXHours: {
|
|
18112
|
+
one: 'about an hour',
|
|
18113
|
+
other: 'about {{count}} hours'
|
|
18114
|
+
},
|
|
18115
|
+
xHours: {
|
|
18116
|
+
one: 'an hour',
|
|
18117
|
+
other: '{{count}} hours'
|
|
18118
|
+
},
|
|
18119
|
+
xDays: {
|
|
18120
|
+
one: 'a day',
|
|
18121
|
+
other: '{{count}} days'
|
|
18122
|
+
},
|
|
18123
|
+
aboutXWeeks: {
|
|
18124
|
+
one: 'about a week',
|
|
18125
|
+
other: 'about {{count}} weeks'
|
|
18126
|
+
},
|
|
18127
|
+
xWeeks: {
|
|
18128
|
+
one: 'a week',
|
|
18129
|
+
other: '{{count}} weeks'
|
|
18130
|
+
},
|
|
18131
|
+
aboutXMonths: {
|
|
18132
|
+
one: 'about a month',
|
|
18133
|
+
other: 'about {{count}} months'
|
|
18134
|
+
},
|
|
18135
|
+
xMonths: {
|
|
18136
|
+
one: 'a month',
|
|
18137
|
+
other: '{{count}} months'
|
|
18138
|
+
},
|
|
18139
|
+
aboutXYears: {
|
|
18140
|
+
one: 'about a year',
|
|
18141
|
+
other: 'about {{count}} years'
|
|
18142
|
+
},
|
|
18143
|
+
xYears: {
|
|
18144
|
+
one: 'a year',
|
|
18145
|
+
other: '{{count}} years'
|
|
18146
|
+
},
|
|
18147
|
+
overXYears: {
|
|
18148
|
+
one: 'over a year',
|
|
18149
|
+
other: 'over {{count}} years'
|
|
18150
|
+
},
|
|
18151
|
+
almostXYears: {
|
|
18152
|
+
one: 'almost a year',
|
|
18153
|
+
other: 'almost {{count}} years'
|
|
18154
|
+
}
|
|
18155
|
+
};
|
|
18156
|
+
var formatDistance = function formatDistance(token, count, options) {
|
|
18157
|
+
var result;
|
|
18158
|
+
var tokenValue = formatDistanceLocale[token];
|
|
18159
|
+
if (typeof tokenValue === 'string') {
|
|
18160
|
+
result = tokenValue;
|
|
18161
|
+
} else if (count === 1) {
|
|
18162
|
+
result = tokenValue.one;
|
|
18163
|
+
} else {
|
|
18164
|
+
result = tokenValue.other.replace('{{count}}', count.toString());
|
|
18165
|
+
}
|
|
18166
|
+
if (options !== null && options !== void 0 && options.addSuffix) {
|
|
18167
|
+
if (options.comparison && options.comparison > 0) {
|
|
18168
|
+
return 'in ' + result;
|
|
18169
|
+
} else {
|
|
18170
|
+
return result + ' ago';
|
|
18171
|
+
}
|
|
18172
|
+
}
|
|
18173
|
+
return result;
|
|
18174
|
+
};
|
|
18175
|
+
|
|
18176
|
+
var dateFormats = {
|
|
18177
|
+
full: 'EEEE, MMMM do, yyyy',
|
|
18178
|
+
"long": 'MMMM do, yyyy',
|
|
18179
|
+
medium: 'MMM d, yyyy',
|
|
18180
|
+
"short": 'yyyy-MM-dd'
|
|
18181
|
+
};
|
|
18182
|
+
var timeFormats = {
|
|
18183
|
+
full: 'h:mm:ss a zzzz',
|
|
18184
|
+
"long": 'h:mm:ss a z',
|
|
18185
|
+
medium: 'h:mm:ss a',
|
|
18186
|
+
"short": 'h:mm a'
|
|
18187
|
+
};
|
|
18188
|
+
var dateTimeFormats = {
|
|
18189
|
+
full: "{{date}} 'at' {{time}}",
|
|
18190
|
+
"long": "{{date}} 'at' {{time}}",
|
|
18191
|
+
medium: '{{date}}, {{time}}',
|
|
18192
|
+
"short": '{{date}}, {{time}}'
|
|
18193
|
+
};
|
|
18194
|
+
var formatLong = {
|
|
18195
|
+
date: buildFormatLongFn({
|
|
18196
|
+
formats: dateFormats,
|
|
18197
|
+
defaultWidth: 'full'
|
|
18198
|
+
}),
|
|
18199
|
+
time: buildFormatLongFn({
|
|
18200
|
+
formats: timeFormats,
|
|
18201
|
+
defaultWidth: 'full'
|
|
18202
|
+
}),
|
|
18203
|
+
dateTime: buildFormatLongFn({
|
|
18204
|
+
formats: dateTimeFormats,
|
|
18205
|
+
defaultWidth: 'full'
|
|
18206
|
+
})
|
|
18207
|
+
};
|
|
18208
|
+
|
|
18209
|
+
/**
|
|
18210
|
+
* @type {Locale}
|
|
18211
|
+
* @category Locales
|
|
18212
|
+
* @summary English locale (Canada).
|
|
18213
|
+
* @language English
|
|
18214
|
+
* @iso-639-2 eng
|
|
18215
|
+
* @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak}
|
|
18216
|
+
* @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore}
|
|
18217
|
+
*/
|
|
18218
|
+
var locale = {
|
|
18219
|
+
code: 'en-CA',
|
|
18220
|
+
formatDistance: formatDistance,
|
|
18221
|
+
formatLong: formatLong,
|
|
18222
|
+
formatRelative: formatRelative,
|
|
18223
|
+
localize: localize,
|
|
18224
|
+
match: match,
|
|
18225
|
+
options: {
|
|
18226
|
+
weekStartsOn: 0 /* Sunday */,
|
|
18227
|
+
firstWeekContainsDate: 1
|
|
18228
|
+
}
|
|
18229
|
+
};
|
|
18230
|
+
|
|
18231
|
+
var Locales = {
|
|
18232
|
+
'en-AU': locale$1,
|
|
18233
|
+
'en-CA': locale
|
|
18234
|
+
};
|
|
18235
|
+
function getDateFnsLocale(locale) {
|
|
18236
|
+
var fallbackLocale = Locales['en-AU'];
|
|
18237
|
+
return Locales[locale] || fallbackLocale;
|
|
18238
|
+
}
|
|
18239
|
+
|
|
18240
|
+
var LocaleProvider = function LocaleProvider(props) {
|
|
18241
|
+
var locale = props.locale,
|
|
18242
|
+
children = props.children;
|
|
18243
|
+
var code = (locale === null || locale === void 0 ? void 0 : locale['lang']) || 'en-AU';
|
|
18244
|
+
// setDefaultOptions here instead of inside useEffect for first rendering
|
|
18245
|
+
setDefaultOptions({
|
|
18246
|
+
locale: getDateFnsLocale(code)
|
|
18247
|
+
});
|
|
18248
|
+
React.useEffect(function () {
|
|
18249
|
+
return function () {
|
|
18250
|
+
return setDefaultOptions({
|
|
18251
|
+
locale: getDateFnsLocale('en-AU')
|
|
18252
|
+
});
|
|
18253
|
+
};
|
|
18254
|
+
}, []);
|
|
18255
|
+
return /*#__PURE__*/React__namespace.default.createElement(LocaleContext.Provider, {
|
|
18256
|
+
value: locale
|
|
18257
|
+
}, children);
|
|
18258
|
+
};
|
|
18259
|
+
|
|
17177
18260
|
var HeroDesignProvider = function HeroDesignProvider(_ref) {
|
|
17178
18261
|
var theme = _ref.theme,
|
|
18262
|
+
_ref$locale = _ref.locale,
|
|
18263
|
+
locale = _ref$locale === void 0 ? locale$3 : _ref$locale,
|
|
17179
18264
|
children = _ref.children;
|
|
17180
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
18265
|
+
return /*#__PURE__*/React__namespace.default.createElement(LocaleProvider, {
|
|
18266
|
+
locale: locale
|
|
18267
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
17181
18268
|
theme: theme
|
|
17182
|
-
}, /*#__PURE__*/React__namespace.default.createElement(Toast.Provider, null, /*#__PURE__*/React__namespace.default.createElement(Portal$1.Provider, null, children)));
|
|
18269
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Toast.Provider, null, /*#__PURE__*/React__namespace.default.createElement(Portal$1.Provider, null, children))));
|
|
17183
18270
|
};
|
|
17184
18271
|
|
|
17185
18272
|
var StyledContainer$3 = index$a(reactNative.View)(function (_ref) {
|
|
@@ -18686,7 +19773,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
|
|
|
18686
19773
|
// If either is null or undefined (but they are not strictly equal), return false
|
|
18687
19774
|
if (a == null || b == null) return false;
|
|
18688
19775
|
// If types don't match, they can't be equal
|
|
18689
|
-
if (_typeof(a) !== _typeof(b)) return false;
|
|
19776
|
+
if (_typeof$1(a) !== _typeof$1(b)) return false;
|
|
18690
19777
|
// Handle array comparison
|
|
18691
19778
|
if (Array.isArray(a) && Array.isArray(b)) {
|
|
18692
19779
|
if (a.length !== b.length) return false;
|
|
@@ -18697,7 +19784,7 @@ var deepCompareValue = function deepCompareValue(a, b) {
|
|
|
18697
19784
|
// If one is array and the other isn't, return false
|
|
18698
19785
|
if (Array.isArray(a) !== Array.isArray(b)) return false;
|
|
18699
19786
|
// Handle object comparison
|
|
18700
|
-
if (_typeof(a) === 'object' && _typeof(b) === 'object') {
|
|
19787
|
+
if (_typeof$1(a) === 'object' && _typeof$1(b) === 'object') {
|
|
18701
19788
|
var keysA = Object.keys(a);
|
|
18702
19789
|
var keysB = Object.keys(b);
|
|
18703
19790
|
if (keysA.length !== keysB.length) return false;
|
|
@@ -19371,7 +20458,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
|
|
|
19371
20458
|
width: '100%'
|
|
19372
20459
|
});
|
|
19373
20460
|
|
|
19374
|
-
var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
20461
|
+
var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"];
|
|
19375
20462
|
var renderImage = function renderImage(image) {
|
|
19376
20463
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
19377
20464
|
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
@@ -19385,24 +20472,42 @@ var renderImage = function renderImage(image) {
|
|
|
19385
20472
|
testID: "success-image"
|
|
19386
20473
|
});
|
|
19387
20474
|
};
|
|
19388
|
-
var
|
|
19389
|
-
var
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
20475
|
+
var renderImageOrIcon = function renderImageOrIcon(_ref) {
|
|
20476
|
+
var image = _ref.image,
|
|
20477
|
+
icon = _ref.icon;
|
|
20478
|
+
if (icon) {
|
|
20479
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(StatusIcon, {
|
|
20480
|
+
icon: icon,
|
|
20481
|
+
testID: "success-icon"
|
|
20482
|
+
}));
|
|
20483
|
+
}
|
|
20484
|
+
if (image) {
|
|
20485
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImageContainer, null, renderImage(image));
|
|
20486
|
+
}
|
|
20487
|
+
return null;
|
|
20488
|
+
};
|
|
20489
|
+
var SuccessPage = function SuccessPage(_ref2) {
|
|
20490
|
+
var _ref2$variant = _ref2.variant,
|
|
20491
|
+
variant = _ref2$variant === void 0 ? 'in-page' : _ref2$variant,
|
|
20492
|
+
title = _ref2.title,
|
|
20493
|
+
description = _ref2.description,
|
|
20494
|
+
image = _ref2.image,
|
|
20495
|
+
testID = _ref2.testID,
|
|
20496
|
+
ctaText = _ref2.ctaText,
|
|
20497
|
+
_ref2$onCtaPress = _ref2.onCtaPress,
|
|
20498
|
+
onCtaPress = _ref2$onCtaPress === void 0 ? noop$1 : _ref2$onCtaPress,
|
|
20499
|
+
secondaryCtaText = _ref2.secondaryCtaText,
|
|
20500
|
+
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
20501
|
+
icon = _ref2.icon,
|
|
20502
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
19401
20503
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
19402
20504
|
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
|
|
19403
20505
|
testID: testID,
|
|
19404
20506
|
themeVariant: variant
|
|
19405
|
-
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContent, null,
|
|
20507
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContent, null, renderImageOrIcon({
|
|
20508
|
+
image: image,
|
|
20509
|
+
icon: icon
|
|
20510
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessTitle, {
|
|
19406
20511
|
level: "h4",
|
|
19407
20512
|
typeface: "playful"
|
|
19408
20513
|
}, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
|
|
@@ -20461,7 +21566,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
20461
21566
|
open = _useState2[0],
|
|
20462
21567
|
setOpen = _useState2[1];
|
|
20463
21568
|
var is12Hour = displayFormat.includes('hh');
|
|
20464
|
-
var displayValue = value ?
|
|
21569
|
+
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
20465
21570
|
var pickerInitValue = value || new Date();
|
|
20466
21571
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
20467
21572
|
onPress: function onPress() {
|
|
@@ -20532,7 +21637,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
20532
21637
|
open = _useState4[0],
|
|
20533
21638
|
setOpen = _useState4[1];
|
|
20534
21639
|
var is12Hour = displayFormat.includes('hh');
|
|
20535
|
-
var displayValue = value ?
|
|
21640
|
+
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
20536
21641
|
var theme = useTheme();
|
|
20537
21642
|
React.useEffect(function () {
|
|
20538
21643
|
setSelectingDate(value || new Date());
|
|
@@ -21274,7 +22379,7 @@ function requireScheduler_production_min() {
|
|
|
21274
22379
|
var c = a.sortIndex - b.sortIndex;
|
|
21275
22380
|
return 0 !== c ? c : a.id - b.id;
|
|
21276
22381
|
}
|
|
21277
|
-
if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof(performance)) && "function" === typeof performance.now) {
|
|
22382
|
+
if ("object" === (typeof performance === "undefined" ? "undefined" : _typeof$1(performance)) && "function" === typeof performance.now) {
|
|
21278
22383
|
var l = performance;
|
|
21279
22384
|
exports.unstable_now = function () {
|
|
21280
22385
|
return l.now();
|
|
@@ -21445,7 +22550,7 @@ function requireScheduler_production_min() {
|
|
|
21445
22550
|
};
|
|
21446
22551
|
exports.unstable_scheduleCallback = function (a, b, c) {
|
|
21447
22552
|
var d = exports.unstable_now();
|
|
21448
|
-
"object" === _typeof(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
|
|
22553
|
+
"object" === _typeof$1(c) && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
|
|
21449
22554
|
switch (a) {
|
|
21450
22555
|
case 1:
|
|
21451
22556
|
var e = -1;
|
|
@@ -21535,7 +22640,7 @@ function requireReactDom_production_min() {
|
|
|
21535
22640
|
}
|
|
21536
22641
|
function pa(a, b, c, d) {
|
|
21537
22642
|
if (null !== c && 0 === c.type) return !1;
|
|
21538
|
-
switch (_typeof(b)) {
|
|
22643
|
+
switch (_typeof$1(b)) {
|
|
21539
22644
|
case "function":
|
|
21540
22645
|
case "symbol":
|
|
21541
22646
|
return !0;
|
|
@@ -21645,7 +22750,7 @@ function requireReactDom_production_min() {
|
|
|
21645
22750
|
var Ia = Symbol["for"]("react.offscreen");
|
|
21646
22751
|
var Ja = Symbol.iterator;
|
|
21647
22752
|
function Ka(a) {
|
|
21648
|
-
if (null === a || "object" !== _typeof(a)) return null;
|
|
22753
|
+
if (null === a || "object" !== _typeof$1(a)) return null;
|
|
21649
22754
|
a = Ja && a[Ja] || a["@@iterator"];
|
|
21650
22755
|
return "function" === typeof a ? a : null;
|
|
21651
22756
|
}
|
|
@@ -21674,7 +22779,7 @@ function requireReactDom_production_min() {
|
|
|
21674
22779
|
set: function set() {
|
|
21675
22780
|
throw Error();
|
|
21676
22781
|
}
|
|
21677
|
-
}), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && Reflect.construct) {
|
|
22782
|
+
}), "object" === (typeof Reflect === "undefined" ? "undefined" : _typeof$1(Reflect)) && Reflect.construct) {
|
|
21678
22783
|
try {
|
|
21679
22784
|
Reflect.construct(b, []);
|
|
21680
22785
|
} catch (l) {
|
|
@@ -21756,7 +22861,7 @@ function requireReactDom_production_min() {
|
|
|
21756
22861
|
case Fa:
|
|
21757
22862
|
return "SuspenseList";
|
|
21758
22863
|
}
|
|
21759
|
-
if ("object" === _typeof(a)) switch (a.$$typeof) {
|
|
22864
|
+
if ("object" === _typeof$1(a)) switch (a.$$typeof) {
|
|
21760
22865
|
case Ca:
|
|
21761
22866
|
return (a.displayName || "Context") + ".Consumer";
|
|
21762
22867
|
case Ba:
|
|
@@ -21828,7 +22933,7 @@ function requireReactDom_production_min() {
|
|
|
21828
22933
|
return null;
|
|
21829
22934
|
}
|
|
21830
22935
|
function Sa(a) {
|
|
21831
|
-
switch (_typeof(a)) {
|
|
22936
|
+
switch (_typeof$1(a)) {
|
|
21832
22937
|
case "boolean":
|
|
21833
22938
|
case "number":
|
|
21834
22939
|
case "string":
|
|
@@ -22139,9 +23244,9 @@ function requireReactDom_production_min() {
|
|
|
22139
23244
|
if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a));
|
|
22140
23245
|
if (null != b.dangerouslySetInnerHTML) {
|
|
22141
23246
|
if (null != b.children) throw Error(p(60));
|
|
22142
|
-
if ("object" !== _typeof(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
|
|
23247
|
+
if ("object" !== _typeof$1(b.dangerouslySetInnerHTML) || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
|
|
22143
23248
|
}
|
|
22144
|
-
if (null != b.style && "object" !== _typeof(b.style)) throw Error(p(62));
|
|
23249
|
+
if (null != b.style && "object" !== _typeof$1(b.style)) throw Error(p(62));
|
|
22145
23250
|
}
|
|
22146
23251
|
}
|
|
22147
23252
|
function vb(a, b) {
|
|
@@ -22227,7 +23332,7 @@ function requireReactDom_production_min() {
|
|
|
22227
23332
|
a = !1;
|
|
22228
23333
|
}
|
|
22229
23334
|
if (a) return null;
|
|
22230
|
-
if (c && "function" !== typeof c) throw Error(p(231, b, _typeof(c)));
|
|
23335
|
+
if (c && "function" !== typeof c) throw Error(p(231, b, _typeof$1(c)));
|
|
22231
23336
|
return c;
|
|
22232
23337
|
}
|
|
22233
23338
|
var Lb = !1;
|
|
@@ -23141,7 +24246,7 @@ function requireReactDom_production_min() {
|
|
|
23141
24246
|
}
|
|
23142
24247
|
function he(a) {
|
|
23143
24248
|
a = a.detail;
|
|
23144
|
-
return "object" === _typeof(a) && "data" in a ? a.data : null;
|
|
24249
|
+
return "object" === _typeof$1(a) && "data" in a ? a.data : null;
|
|
23145
24250
|
}
|
|
23146
24251
|
var ie = !1;
|
|
23147
24252
|
function je(a, b) {
|
|
@@ -23258,7 +24363,7 @@ function requireReactDom_production_min() {
|
|
|
23258
24363
|
var He = "function" === typeof Object.is ? Object.is : Ge;
|
|
23259
24364
|
function Ie(a, b) {
|
|
23260
24365
|
if (He(a, b)) return !0;
|
|
23261
|
-
if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1;
|
|
24366
|
+
if ("object" !== _typeof$1(a) || null === a || "object" !== _typeof$1(b) || null === b) return !1;
|
|
23262
24367
|
var c = Object.keys(a),
|
|
23263
24368
|
d = Object.keys(b);
|
|
23264
24369
|
if (c.length !== d.length) return !1;
|
|
@@ -23785,7 +24890,7 @@ function requireReactDom_production_min() {
|
|
|
23785
24890
|
var Cf = null,
|
|
23786
24891
|
Df = null;
|
|
23787
24892
|
function Ef(a, b) {
|
|
23788
|
-
return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
|
|
24893
|
+
return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof$1(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
|
|
23789
24894
|
}
|
|
23790
24895
|
var Ff = "function" === typeof setTimeout ? setTimeout : void 0,
|
|
23791
24896
|
Gf = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
|
@@ -24433,7 +25538,7 @@ function requireReactDom_production_min() {
|
|
|
24433
25538
|
var d = !1,
|
|
24434
25539
|
e = Vf;
|
|
24435
25540
|
var f = b.contextType;
|
|
24436
|
-
"object" === _typeof(f) && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
|
|
25541
|
+
"object" === _typeof$1(f) && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
|
|
24437
25542
|
b = new b(c, f);
|
|
24438
25543
|
a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
|
|
24439
25544
|
b.updater = nh;
|
|
@@ -24455,7 +25560,7 @@ function requireReactDom_production_min() {
|
|
|
24455
25560
|
e.refs = jh;
|
|
24456
25561
|
ah(a);
|
|
24457
25562
|
var f = b.contextType;
|
|
24458
|
-
"object" === _typeof(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
|
|
25563
|
+
"object" === _typeof$1(f) && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
|
|
24459
25564
|
e.state = a.memoizedState;
|
|
24460
25565
|
f = b.getDerivedStateFromProps;
|
|
24461
25566
|
"function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState);
|
|
@@ -24464,7 +25569,7 @@ function requireReactDom_production_min() {
|
|
|
24464
25569
|
}
|
|
24465
25570
|
function sh(a, b, c) {
|
|
24466
25571
|
a = c.ref;
|
|
24467
|
-
if (null !== a && "function" !== typeof a && "object" !== _typeof(a)) {
|
|
25572
|
+
if (null !== a && "function" !== typeof a && "object" !== _typeof$1(a)) {
|
|
24468
25573
|
if (c._owner) {
|
|
24469
25574
|
c = c._owner;
|
|
24470
25575
|
if (c) {
|
|
@@ -24539,7 +25644,7 @@ function requireReactDom_production_min() {
|
|
|
24539
25644
|
function k(a, b, c, d) {
|
|
24540
25645
|
var f = c.type;
|
|
24541
25646
|
if (f === ya) return m(a, b, c.props.children, d, c.key);
|
|
24542
|
-
if (null !== b && (b.elementType === f || "object" === _typeof(f) && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d["return"] = a, d;
|
|
25647
|
+
if (null !== b && (b.elementType === f || "object" === _typeof$1(f) && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d["return"] = a, d;
|
|
24543
25648
|
d = yh(c.type, c.key, c.props, null, a.mode, d);
|
|
24544
25649
|
d.ref = sh(a, b, c);
|
|
24545
25650
|
d["return"] = a;
|
|
@@ -24559,7 +25664,7 @@ function requireReactDom_production_min() {
|
|
|
24559
25664
|
}
|
|
24560
25665
|
function q(a, b, c) {
|
|
24561
25666
|
if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b["return"] = a, b;
|
|
24562
|
-
if ("object" === _typeof(b) && null !== b) {
|
|
25667
|
+
if ("object" === _typeof$1(b) && null !== b) {
|
|
24563
25668
|
switch (b.$$typeof) {
|
|
24564
25669
|
case va:
|
|
24565
25670
|
return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c["return"] = a, c;
|
|
@@ -24577,7 +25682,7 @@ function requireReactDom_production_min() {
|
|
|
24577
25682
|
function r(a, b, c, d) {
|
|
24578
25683
|
var e = null !== b ? b.key : null;
|
|
24579
25684
|
if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
|
|
24580
|
-
if ("object" === _typeof(c) && null !== c) {
|
|
25685
|
+
if ("object" === _typeof$1(c) && null !== c) {
|
|
24581
25686
|
switch (c.$$typeof) {
|
|
24582
25687
|
case va:
|
|
24583
25688
|
return c.key === e ? k(a, b, c, d) : null;
|
|
@@ -24593,7 +25698,7 @@ function requireReactDom_production_min() {
|
|
|
24593
25698
|
}
|
|
24594
25699
|
function y(a, b, c, d, e) {
|
|
24595
25700
|
if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
|
|
24596
|
-
if ("object" === _typeof(d) && null !== d) {
|
|
25701
|
+
if ("object" === _typeof$1(d) && null !== d) {
|
|
24597
25702
|
switch (d.$$typeof) {
|
|
24598
25703
|
case va:
|
|
24599
25704
|
return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e);
|
|
@@ -24667,8 +25772,8 @@ function requireReactDom_production_min() {
|
|
|
24667
25772
|
return l;
|
|
24668
25773
|
}
|
|
24669
25774
|
function J(a, d, f, h) {
|
|
24670
|
-
"object" === _typeof(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
|
|
24671
|
-
if ("object" === _typeof(f) && null !== f) {
|
|
25775
|
+
"object" === _typeof$1(f) && null !== f && f.type === ya && null === f.key && (f = f.props.children);
|
|
25776
|
+
if ("object" === _typeof$1(f) && null !== f) {
|
|
24672
25777
|
switch (f.$$typeof) {
|
|
24673
25778
|
case va:
|
|
24674
25779
|
a: {
|
|
@@ -24683,7 +25788,7 @@ function requireReactDom_production_min() {
|
|
|
24683
25788
|
a = d;
|
|
24684
25789
|
break a;
|
|
24685
25790
|
}
|
|
24686
|
-
} else if (l.elementType === k || "object" === _typeof(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
|
|
25791
|
+
} else if (l.elementType === k || "object" === _typeof$1(k) && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
|
|
24687
25792
|
c(a, l.sibling);
|
|
24688
25793
|
d = e(l, f.props);
|
|
24689
25794
|
d.ref = sh(a, l, f);
|
|
@@ -25568,7 +26673,7 @@ function requireReactDom_production_min() {
|
|
|
25568
26673
|
g.props = h;
|
|
25569
26674
|
var k = g.context,
|
|
25570
26675
|
l = c.contextType;
|
|
25571
|
-
"object" === _typeof(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
|
|
26676
|
+
"object" === _typeof$1(l) && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
|
|
25572
26677
|
var m = c.getDerivedStateFromProps,
|
|
25573
26678
|
q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
|
|
25574
26679
|
q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l);
|
|
@@ -25587,7 +26692,7 @@ function requireReactDom_production_min() {
|
|
|
25587
26692
|
q = b.pendingProps;
|
|
25588
26693
|
r = g.context;
|
|
25589
26694
|
k = c.contextType;
|
|
25590
|
-
"object" === _typeof(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
|
|
26695
|
+
"object" === _typeof$1(k) && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
|
|
25591
26696
|
var y = c.getDerivedStateFromProps;
|
|
25592
26697
|
(m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && qh(b, g, d, k);
|
|
25593
26698
|
$g = !1;
|
|
@@ -27500,7 +28605,7 @@ function requireReactDom_production_min() {
|
|
|
27500
28605
|
k = b;
|
|
27501
28606
|
b = Z;
|
|
27502
28607
|
h.flags |= 32768;
|
|
27503
|
-
if (null !== k && "object" === _typeof(k) && "function" === typeof k.then) {
|
|
28608
|
+
if (null !== k && "object" === _typeof$1(k) && "function" === typeof k.then) {
|
|
27504
28609
|
var l = k,
|
|
27505
28610
|
m = h,
|
|
27506
28611
|
q = m.tag;
|
|
@@ -27921,7 +29026,7 @@ function requireReactDom_production_min() {
|
|
|
27921
29026
|
e = Xh(null, b, d, a, e, c);
|
|
27922
29027
|
var f = bi();
|
|
27923
29028
|
b.flags |= 1;
|
|
27924
|
-
"object" === _typeof(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = !0, cg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, ah(b), e.updater = nh, b.stateNode = e, e._reactInternals = b, rh(b, d, a, c), b = kj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && vg(b), Yi(null, b, e, c), b = b.child);
|
|
29029
|
+
"object" === _typeof$1(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = !0, cg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, ah(b), e.updater = nh, b.stateNode = e, e._reactInternals = b, rh(b, d, a, c), b = kj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && vg(b), Yi(null, b, e, c), b = b.child);
|
|
27925
29030
|
return b;
|
|
27926
29031
|
case 16:
|
|
27927
29032
|
d = b.elementType;
|
|
@@ -28162,7 +29267,7 @@ function requireReactDom_production_min() {
|
|
|
28162
29267
|
case Ia:
|
|
28163
29268
|
return qj(c, e, f, b);
|
|
28164
29269
|
default:
|
|
28165
|
-
if ("object" === _typeof(a) && null !== a) switch (a.$$typeof) {
|
|
29270
|
+
if ("object" === _typeof$1(a) && null !== a) switch (a.$$typeof) {
|
|
28166
29271
|
case Ba:
|
|
28167
29272
|
g = 10;
|
|
28168
29273
|
break a;
|
|
@@ -28180,7 +29285,7 @@ function requireReactDom_production_min() {
|
|
|
28180
29285
|
d = null;
|
|
28181
29286
|
break a;
|
|
28182
29287
|
}
|
|
28183
|
-
throw Error(p(130, null == a ? a : _typeof(a), ""));
|
|
29288
|
+
throw Error(p(130, null == a ? a : _typeof$1(a), ""));
|
|
28184
29289
|
}
|
|
28185
29290
|
b = Bg(g, c, b, e);
|
|
28186
29291
|
b.elementType = a;
|
|
@@ -28828,7 +29933,7 @@ function requireLib() {
|
|
|
28828
29933
|
};
|
|
28829
29934
|
},
|
|
28830
29935
|
380: function _(e, t, r) {
|
|
28831
|
-
var n = "object" == _typeof(r.g) && r.g && r.g.Object === Object && r.g;
|
|
29936
|
+
var n = "object" == _typeof$1(r.g) && r.g && r.g.Object === Object && r.g;
|
|
28832
29937
|
e.exports = n;
|
|
28833
29938
|
},
|
|
28834
29939
|
903: function _(e, t, r) {
|
|
@@ -28856,7 +29961,7 @@ function requireLib() {
|
|
|
28856
29961
|
},
|
|
28857
29962
|
433: function _(e, t, r) {
|
|
28858
29963
|
var n = r(380),
|
|
28859
|
-
u = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self,
|
|
29964
|
+
u = "object" == (typeof self === "undefined" ? "undefined" : _typeof$1(self)) && self && self.Object === Object && self,
|
|
28860
29965
|
o = n || u || Function("return this")();
|
|
28861
29966
|
e.exports = o;
|
|
28862
29967
|
},
|
|
@@ -28925,20 +30030,20 @@ function requireLib() {
|
|
|
28925
30030
|
},
|
|
28926
30031
|
953: function _(e) {
|
|
28927
30032
|
e.exports = function (e) {
|
|
28928
|
-
var t = _typeof(e);
|
|
30033
|
+
var t = _typeof$1(e);
|
|
28929
30034
|
return null != e && ("object" == t || "function" == t);
|
|
28930
30035
|
};
|
|
28931
30036
|
},
|
|
28932
30037
|
934: function _(e) {
|
|
28933
30038
|
e.exports = function (e) {
|
|
28934
|
-
return null != e && "object" == _typeof(e);
|
|
30039
|
+
return null != e && "object" == _typeof$1(e);
|
|
28935
30040
|
};
|
|
28936
30041
|
},
|
|
28937
30042
|
414: function _(e, t, r) {
|
|
28938
30043
|
var n = r(148),
|
|
28939
30044
|
u = r(934);
|
|
28940
30045
|
e.exports = function (e) {
|
|
28941
|
-
return "symbol" == _typeof(e) || u(e) && "[object Symbol]" == n(e);
|
|
30046
|
+
return "symbol" == _typeof$1(e) || u(e) && "[object Symbol]" == n(e);
|
|
28942
30047
|
};
|
|
28943
30048
|
},
|
|
28944
30049
|
664: function _(e, t, r) {
|
|
@@ -29015,11 +30120,11 @@ function requireLib() {
|
|
|
29015
30120
|
get: t[r]
|
|
29016
30121
|
});
|
|
29017
30122
|
}, u.g = function () {
|
|
29018
|
-
if ("object" == (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis))) return globalThis;
|
|
30123
|
+
if ("object" == (typeof globalThis === "undefined" ? "undefined" : _typeof$1(globalThis))) return globalThis;
|
|
29019
30124
|
try {
|
|
29020
30125
|
return this || new Function("return this")();
|
|
29021
30126
|
} catch (e) {
|
|
29022
|
-
if ("object" == (typeof window === "undefined" ? "undefined" : _typeof(window))) return window;
|
|
30127
|
+
if ("object" == (typeof window === "undefined" ? "undefined" : _typeof$1(window))) return window;
|
|
29023
30128
|
}
|
|
29024
30129
|
}(), u.o = function (e, t) {
|
|
29025
30130
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -29141,7 +30246,7 @@ function requireLib() {
|
|
|
29141
30246
|
}
|
|
29142
30247
|
var h = Object.prototype.constructor.toString();
|
|
29143
30248
|
function p(e) {
|
|
29144
|
-
if (!e || "object" != _typeof(e)) return !1;
|
|
30249
|
+
if (!e || "object" != _typeof$1(e)) return !1;
|
|
29145
30250
|
var t = c(e);
|
|
29146
30251
|
if (null === t) return !0;
|
|
29147
30252
|
var r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -29438,7 +30543,7 @@ function requireLib() {
|
|
|
29438
30543
|
}
|
|
29439
30544
|
return k(_u4, r), R(n, _u4);
|
|
29440
30545
|
}
|
|
29441
|
-
if (!e || "object" != _typeof(e)) {
|
|
30546
|
+
if (!e || "object" != _typeof$1(e)) {
|
|
29442
30547
|
if (n = t(e), void 0 === n && (n = e), n === a && (n = void 0), _this.autoFreeze_ && E(n, !0), r) {
|
|
29443
30548
|
var _t6 = [],
|
|
29444
30549
|
_u5 = [];
|
|
@@ -29716,10 +30821,10 @@ function requireLib() {
|
|
|
29716
30821
|
}
|
|
29717
30822
|
};
|
|
29718
30823
|
function se(e) {
|
|
29719
|
-
return se = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
|
|
29720
|
-
return _typeof(e);
|
|
30824
|
+
return se = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
|
|
30825
|
+
return _typeof$1(e);
|
|
29721
30826
|
} : function (e) {
|
|
29722
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
|
|
30827
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
|
|
29723
30828
|
}, se(e);
|
|
29724
30829
|
}
|
|
29725
30830
|
function le(e, t, r) {
|
|
@@ -34403,7 +35508,7 @@ function requireLib() {
|
|
|
34403
35508
|
Jt = u(858),
|
|
34404
35509
|
Yt = u.n(Jt);
|
|
34405
35510
|
var Zt = function Zt(e) {
|
|
34406
|
-
return "object" == _typeof(e) && null != e && 1 === e.nodeType;
|
|
35511
|
+
return "object" == _typeof$1(e) && null != e && 1 === e.nodeType;
|
|
34407
35512
|
},
|
|
34408
35513
|
Gt = function Gt(e, t) {
|
|
34409
35514
|
return (!t || "hidden" !== e) && "visible" !== e && "clip" !== e;
|
|
@@ -34623,10 +35728,10 @@ function requireLib() {
|
|
|
34623
35728
|
"undefined" != typeof navigator && /Safari/.test(navigator.userAgent) && /Version\/(\d+)/.test(navigator.userAgent) && null !== (nr = navigator.userAgent.match(/Version\/(\d+)/)) && void 0 !== nr && nr[1] && parseInt(null === (ur = navigator.userAgent.match(/Version\/(\d+)/)) || void 0 === ur ? void 0 : ur[1], 10);
|
|
34624
35729
|
var Tr = (!Or || !xr) && !Ar && "undefined" != typeof globalThis && globalThis.InputEvent && "function" == typeof globalThis.InputEvent.prototype.getTargetRanges;
|
|
34625
35730
|
function Mr(e) {
|
|
34626
|
-
return Mr = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
|
|
34627
|
-
return _typeof(e);
|
|
35731
|
+
return Mr = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
|
|
35732
|
+
return _typeof$1(e);
|
|
34628
35733
|
} : function (e) {
|
|
34629
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
|
|
35734
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
|
|
34630
35735
|
}, Mr(e);
|
|
34631
35736
|
}
|
|
34632
35737
|
function Rr(e, t, r) {
|
|
@@ -35699,10 +36804,10 @@ function requireLib() {
|
|
|
35699
36804
|
return u;
|
|
35700
36805
|
}
|
|
35701
36806
|
function mu(e) {
|
|
35702
|
-
return mu = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) {
|
|
35703
|
-
return _typeof(e);
|
|
36807
|
+
return mu = "function" == typeof Symbol && "symbol" == _typeof$1(Symbol.iterator) ? function (e) {
|
|
36808
|
+
return _typeof$1(e);
|
|
35704
36809
|
} : function (e) {
|
|
35705
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e);
|
|
36810
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof$1(e);
|
|
35706
36811
|
}, mu(e);
|
|
35707
36812
|
}
|
|
35708
36813
|
function yu(e, t, r) {
|
|
@@ -37454,7 +38559,7 @@ function requireLib() {
|
|
|
37454
38559
|
};
|
|
37455
38560
|
}(e);
|
|
37456
38561
|
if (function (e) {
|
|
37457
|
-
return "object" == _typeof(e) && "function" == typeof e.behavior;
|
|
38562
|
+
return "object" == _typeof$1(e) && "function" == typeof e.behavior;
|
|
37458
38563
|
}(t)) return t.behavior(rr(e, t));
|
|
37459
38564
|
var n = "boolean" == typeof t || null == t ? void 0 : t.behavior;
|
|
37460
38565
|
var _iterator47 = _createForOfIteratorHelper(rr(e, function (e) {
|
|
@@ -40599,6 +41704,7 @@ exports.HeroDesignProvider = HeroDesignProvider;
|
|
|
40599
41704
|
exports.Icon = Icon;
|
|
40600
41705
|
exports.Image = Image;
|
|
40601
41706
|
exports.List = List;
|
|
41707
|
+
exports.LocaleProvider = LocaleProvider;
|
|
40602
41708
|
exports.MapPin = index$6;
|
|
40603
41709
|
exports.PageControl = PageControl;
|
|
40604
41710
|
exports.PinInput = PinInput;
|