react-intl 6.7.2 → 6.8.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/index.js +3 -3
- package/lib/src/components/injectIntl.js +4 -2
- package/lib/src/components/provider.d.ts +1 -1
- package/lib/src/types.d.ts +1 -1
- package/package.json +11 -11
- package/react-intl.iife.js +332 -262
- package/src/components/createFormattedComponent.js +3 -3
- package/src/components/injectIntl.js +5 -3
- package/src/components/provider.d.ts +1 -1
- package/src/components/useIntl.js +1 -1
- package/src/types.d.ts +1 -1
- package/src/utils.js +4 -4
package/react-intl.iife.js
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
var ReactIntl = (() => {
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8
25
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
26
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
27
|
}) : x)(function(x) {
|
|
11
28
|
if (typeof require !== "undefined")
|
|
12
29
|
return require.apply(this, arguments);
|
|
13
|
-
throw
|
|
30
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
31
|
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
15
44
|
var __commonJS = (cb, mod) => function __require2() {
|
|
16
45
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
46
|
};
|
|
@@ -36,10 +65,14 @@ var ReactIntl = (() => {
|
|
|
36
65
|
mod
|
|
37
66
|
));
|
|
38
67
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
68
|
+
var __publicField = (obj, key, value) => {
|
|
69
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
70
|
+
return value;
|
|
71
|
+
};
|
|
39
72
|
|
|
40
|
-
//
|
|
73
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
41
74
|
var require_react_is_development = __commonJS({
|
|
42
|
-
"
|
|
75
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
43
76
|
"use strict";
|
|
44
77
|
if (true) {
|
|
45
78
|
(function() {
|
|
@@ -192,9 +225,9 @@ var ReactIntl = (() => {
|
|
|
192
225
|
}
|
|
193
226
|
});
|
|
194
227
|
|
|
195
|
-
//
|
|
228
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js
|
|
196
229
|
var require_react_is = __commonJS({
|
|
197
|
-
"
|
|
230
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
198
231
|
"use strict";
|
|
199
232
|
if (false) {
|
|
200
233
|
module.exports = null;
|
|
@@ -204,9 +237,9 @@ var ReactIntl = (() => {
|
|
|
204
237
|
}
|
|
205
238
|
});
|
|
206
239
|
|
|
207
|
-
//
|
|
240
|
+
// node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
208
241
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
209
|
-
"
|
|
242
|
+
"node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
210
243
|
"use strict";
|
|
211
244
|
var reactIs = require_react_is();
|
|
212
245
|
var REACT_STATICS = {
|
|
@@ -292,9 +325,9 @@ var ReactIntl = (() => {
|
|
|
292
325
|
}
|
|
293
326
|
});
|
|
294
327
|
|
|
295
|
-
//
|
|
296
|
-
var
|
|
297
|
-
__export(
|
|
328
|
+
// packages/react-intl/index.ts
|
|
329
|
+
var react_intl_exports = {};
|
|
330
|
+
__export(react_intl_exports, {
|
|
298
331
|
FormattedDate: () => FormattedDate,
|
|
299
332
|
FormattedDateParts: () => FormattedDateParts,
|
|
300
333
|
FormattedDateTimeRange: () => dateTimeRange_default,
|
|
@@ -309,7 +342,7 @@ var ReactIntl = (() => {
|
|
|
309
342
|
FormattedTime: () => FormattedTime,
|
|
310
343
|
FormattedTimeParts: () => FormattedTimeParts,
|
|
311
344
|
IntlContext: () => Context,
|
|
312
|
-
IntlProvider: () =>
|
|
345
|
+
IntlProvider: () => IntlProvider2,
|
|
313
346
|
InvalidConfigError: () => InvalidConfigError,
|
|
314
347
|
MessageFormatError: () => MessageFormatError,
|
|
315
348
|
MissingDataError: () => MissingDataError,
|
|
@@ -326,79 +359,23 @@ var ReactIntl = (() => {
|
|
|
326
359
|
useIntl: () => useIntl
|
|
327
360
|
});
|
|
328
361
|
|
|
329
|
-
//
|
|
330
|
-
var extendStatics = function(d, b) {
|
|
331
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
332
|
-
d2.__proto__ = b2;
|
|
333
|
-
} || function(d2, b2) {
|
|
334
|
-
for (var p in b2)
|
|
335
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
336
|
-
d2[p] = b2[p];
|
|
337
|
-
};
|
|
338
|
-
return extendStatics(d, b);
|
|
339
|
-
};
|
|
340
|
-
function __extends(d, b) {
|
|
341
|
-
if (typeof b !== "function" && b !== null)
|
|
342
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
343
|
-
extendStatics(d, b);
|
|
344
|
-
function __() {
|
|
345
|
-
this.constructor = d;
|
|
346
|
-
}
|
|
347
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
348
|
-
}
|
|
349
|
-
var __assign = function() {
|
|
350
|
-
__assign = Object.assign || function __assign2(t) {
|
|
351
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
352
|
-
s = arguments[i];
|
|
353
|
-
for (var p in s)
|
|
354
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
355
|
-
t[p] = s[p];
|
|
356
|
-
}
|
|
357
|
-
return t;
|
|
358
|
-
};
|
|
359
|
-
return __assign.apply(this, arguments);
|
|
360
|
-
};
|
|
361
|
-
function __rest(s, e) {
|
|
362
|
-
var t = {};
|
|
363
|
-
for (var p in s)
|
|
364
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
365
|
-
t[p] = s[p];
|
|
366
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
367
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
368
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
369
|
-
t[p[i]] = s[p[i]];
|
|
370
|
-
}
|
|
371
|
-
return t;
|
|
372
|
-
}
|
|
373
|
-
function __spreadArray(to, from, pack) {
|
|
374
|
-
if (pack || arguments.length === 2)
|
|
375
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
376
|
-
if (ar || !(i in from)) {
|
|
377
|
-
if (!ar)
|
|
378
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
379
|
-
ar[i] = from[i];
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
362
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
386
363
|
var React4 = __toESM(window.React);
|
|
387
364
|
|
|
388
|
-
//
|
|
365
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
389
366
|
var React3 = __toESM(window.React);
|
|
390
367
|
|
|
391
|
-
//
|
|
368
|
+
// packages/react-intl/src/utils.ts
|
|
392
369
|
var React = __toESM(window.React);
|
|
393
370
|
|
|
394
|
-
//
|
|
371
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
395
372
|
var MINUTES_PER_HOUR = 60;
|
|
396
373
|
var SECONDS_PER_MINUTE = 60;
|
|
397
374
|
var MS_PER_SECOND = 1e3;
|
|
398
375
|
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
399
376
|
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
400
377
|
|
|
401
|
-
//
|
|
378
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
402
379
|
var SANCTIONED_UNITS = [
|
|
403
380
|
"angle-degree",
|
|
404
381
|
"area-acre",
|
|
@@ -449,7 +426,63 @@ var ReactIntl = (() => {
|
|
|
449
426
|
}
|
|
450
427
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
451
428
|
|
|
452
|
-
//
|
|
429
|
+
// node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
|
|
430
|
+
var extendStatics = function(d, b) {
|
|
431
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
432
|
+
d2.__proto__ = b2;
|
|
433
|
+
} || function(d2, b2) {
|
|
434
|
+
for (var p in b2)
|
|
435
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
436
|
+
d2[p] = b2[p];
|
|
437
|
+
};
|
|
438
|
+
return extendStatics(d, b);
|
|
439
|
+
};
|
|
440
|
+
function __extends(d, b) {
|
|
441
|
+
if (typeof b !== "function" && b !== null)
|
|
442
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
443
|
+
extendStatics(d, b);
|
|
444
|
+
function __() {
|
|
445
|
+
this.constructor = d;
|
|
446
|
+
}
|
|
447
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
448
|
+
}
|
|
449
|
+
var __assign = function() {
|
|
450
|
+
__assign = Object.assign || function __assign2(t) {
|
|
451
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
452
|
+
s = arguments[i];
|
|
453
|
+
for (var p in s)
|
|
454
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
455
|
+
t[p] = s[p];
|
|
456
|
+
}
|
|
457
|
+
return t;
|
|
458
|
+
};
|
|
459
|
+
return __assign.apply(this, arguments);
|
|
460
|
+
};
|
|
461
|
+
function __rest(s, e) {
|
|
462
|
+
var t = {};
|
|
463
|
+
for (var p in s)
|
|
464
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
465
|
+
t[p] = s[p];
|
|
466
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
467
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
468
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
469
|
+
t[p[i]] = s[p[i]];
|
|
470
|
+
}
|
|
471
|
+
return t;
|
|
472
|
+
}
|
|
473
|
+
function __spreadArray(to, from, pack) {
|
|
474
|
+
if (pack || arguments.length === 2)
|
|
475
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
476
|
+
if (ar || !(i in from)) {
|
|
477
|
+
if (!ar)
|
|
478
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
479
|
+
ar[i] = from[i];
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
453
486
|
function memoize(fn, options) {
|
|
454
487
|
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
455
488
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -516,7 +549,7 @@ var ReactIntl = (() => {
|
|
|
516
549
|
monadic: strategyMonadic
|
|
517
550
|
};
|
|
518
551
|
|
|
519
|
-
//
|
|
552
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
520
553
|
function invariant(condition, message, Err) {
|
|
521
554
|
if (Err === void 0) {
|
|
522
555
|
Err = Error;
|
|
@@ -576,14 +609,14 @@ var ReactIntl = (() => {
|
|
|
576
609
|
strategy: strategies.variadic
|
|
577
610
|
});
|
|
578
611
|
|
|
579
|
-
//
|
|
612
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
580
613
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
581
614
|
|
|
582
|
-
//
|
|
615
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
583
616
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
584
617
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
585
618
|
|
|
586
|
-
//
|
|
619
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
587
620
|
var MissingLocaleDataError = (
|
|
588
621
|
/** @class */
|
|
589
622
|
function(_super) {
|
|
@@ -597,7 +630,7 @@ var ReactIntl = (() => {
|
|
|
597
630
|
}(Error)
|
|
598
631
|
);
|
|
599
632
|
|
|
600
|
-
//
|
|
633
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
601
634
|
var RangePatternType;
|
|
602
635
|
(function(RangePatternType2) {
|
|
603
636
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -605,7 +638,7 @@ var ReactIntl = (() => {
|
|
|
605
638
|
RangePatternType2["endRange"] = "endRange";
|
|
606
639
|
})(RangePatternType || (RangePatternType = {}));
|
|
607
640
|
|
|
608
|
-
//
|
|
641
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
609
642
|
var ErrorKind;
|
|
610
643
|
(function(ErrorKind2) {
|
|
611
644
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -636,7 +669,7 @@ var ReactIntl = (() => {
|
|
|
636
669
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
637
670
|
})(ErrorKind || (ErrorKind = {}));
|
|
638
671
|
|
|
639
|
-
//
|
|
672
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
640
673
|
var TYPE;
|
|
641
674
|
(function(TYPE2) {
|
|
642
675
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -688,10 +721,10 @@ var ReactIntl = (() => {
|
|
|
688
721
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
689
722
|
}
|
|
690
723
|
|
|
691
|
-
//
|
|
724
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
692
725
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
693
726
|
|
|
694
|
-
//
|
|
727
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
695
728
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
696
729
|
function parseDateTimeSkeleton(skeleton) {
|
|
697
730
|
var result = {};
|
|
@@ -792,10 +825,10 @@ var ReactIntl = (() => {
|
|
|
792
825
|
return result;
|
|
793
826
|
}
|
|
794
827
|
|
|
795
|
-
//
|
|
828
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
796
829
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
797
830
|
|
|
798
|
-
//
|
|
831
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
799
832
|
function parseNumberSkeletonFromString(skeleton) {
|
|
800
833
|
if (skeleton.length === 0) {
|
|
801
834
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -1082,7 +1115,7 @@ var ReactIntl = (() => {
|
|
|
1082
1115
|
return result;
|
|
1083
1116
|
}
|
|
1084
1117
|
|
|
1085
|
-
//
|
|
1118
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
1086
1119
|
var timeData = {
|
|
1087
1120
|
"001": [
|
|
1088
1121
|
"H",
|
|
@@ -2493,7 +2526,7 @@ var ReactIntl = (() => {
|
|
|
2493
2526
|
]
|
|
2494
2527
|
};
|
|
2495
2528
|
|
|
2496
|
-
//
|
|
2529
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2497
2530
|
function getBestPattern(skeleton, locale) {
|
|
2498
2531
|
var skeletonCopy = "";
|
|
2499
2532
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2555,7 +2588,7 @@ var ReactIntl = (() => {
|
|
|
2555
2588
|
return hourCycles[0];
|
|
2556
2589
|
}
|
|
2557
2590
|
|
|
2558
|
-
//
|
|
2591
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2559
2592
|
var _a;
|
|
2560
2593
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2561
2594
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3360,7 +3393,7 @@ var ReactIntl = (() => {
|
|
|
3360
3393
|
return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
|
|
3361
3394
|
}
|
|
3362
3395
|
|
|
3363
|
-
//
|
|
3396
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3364
3397
|
function pruneLocation(els) {
|
|
3365
3398
|
els.forEach(function(el) {
|
|
3366
3399
|
delete el.location;
|
|
@@ -3396,7 +3429,7 @@ var ReactIntl = (() => {
|
|
|
3396
3429
|
return result.val;
|
|
3397
3430
|
}
|
|
3398
3431
|
|
|
3399
|
-
//
|
|
3432
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
|
|
3400
3433
|
var ErrorCode;
|
|
3401
3434
|
(function(ErrorCode2) {
|
|
3402
3435
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3450,7 +3483,7 @@ var ReactIntl = (() => {
|
|
|
3450
3483
|
}(FormatError)
|
|
3451
3484
|
);
|
|
3452
3485
|
|
|
3453
|
-
//
|
|
3486
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/formatters.js
|
|
3454
3487
|
var PART_TYPE;
|
|
3455
3488
|
(function(PART_TYPE2) {
|
|
3456
3489
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3590,7 +3623,7 @@ var ReactIntl = (() => {
|
|
|
3590
3623
|
return mergeLiteral(result);
|
|
3591
3624
|
}
|
|
3592
3625
|
|
|
3593
|
-
//
|
|
3626
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/core.js
|
|
3594
3627
|
function mergeConfig(c1, c2) {
|
|
3595
3628
|
if (!c2) {
|
|
3596
3629
|
return c1;
|
|
@@ -3671,10 +3704,10 @@ var ReactIntl = (() => {
|
|
|
3671
3704
|
/** @class */
|
|
3672
3705
|
function() {
|
|
3673
3706
|
function IntlMessageFormat2(message, locales, overrideFormats, opts) {
|
|
3674
|
-
var _this = this;
|
|
3675
3707
|
if (locales === void 0) {
|
|
3676
3708
|
locales = IntlMessageFormat2.defaultLocale;
|
|
3677
3709
|
}
|
|
3710
|
+
var _this = this;
|
|
3678
3711
|
this.formatterCache = {
|
|
3679
3712
|
number: {},
|
|
3680
3713
|
dateTime: {},
|
|
@@ -3813,7 +3846,7 @@ var ReactIntl = (() => {
|
|
|
3813
3846
|
}()
|
|
3814
3847
|
);
|
|
3815
3848
|
|
|
3816
|
-
//
|
|
3849
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/error.js
|
|
3817
3850
|
var IntlErrorCode;
|
|
3818
3851
|
(function(IntlErrorCode2) {
|
|
3819
3852
|
IntlErrorCode2["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
@@ -3910,7 +3943,7 @@ var ReactIntl = (() => {
|
|
|
3910
3943
|
}(IntlError)
|
|
3911
3944
|
);
|
|
3912
3945
|
|
|
3913
|
-
//
|
|
3946
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/utils.js
|
|
3914
3947
|
function filterProps(props, allowlist, defaults) {
|
|
3915
3948
|
if (defaults === void 0) {
|
|
3916
3949
|
defaults = {};
|
|
@@ -4067,7 +4100,7 @@ var ReactIntl = (() => {
|
|
|
4067
4100
|
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
4068
4101
|
}
|
|
4069
4102
|
|
|
4070
|
-
//
|
|
4103
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/message.js
|
|
4071
4104
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
4072
4105
|
return Object.keys(opts).reduce(function(all, k) {
|
|
4073
4106
|
all[k] = __assign({ timeZone }, opts[k]);
|
|
@@ -4152,7 +4185,7 @@ var ReactIntl = (() => {
|
|
|
4152
4185
|
return id;
|
|
4153
4186
|
};
|
|
4154
4187
|
|
|
4155
|
-
//
|
|
4188
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/dateTime.js
|
|
4156
4189
|
var DATE_TIME_FORMAT_OPTIONS = [
|
|
4157
4190
|
"formatMatcher",
|
|
4158
4191
|
"timeZone",
|
|
@@ -4259,7 +4292,7 @@ var ReactIntl = (() => {
|
|
|
4259
4292
|
return [];
|
|
4260
4293
|
}
|
|
4261
4294
|
|
|
4262
|
-
//
|
|
4295
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/displayName.js
|
|
4263
4296
|
var DISPLAY_NAMES_OPTONS = [
|
|
4264
4297
|
"style",
|
|
4265
4298
|
"type",
|
|
@@ -4280,7 +4313,7 @@ var ReactIntl = (() => {
|
|
|
4280
4313
|
}
|
|
4281
4314
|
}
|
|
4282
4315
|
|
|
4283
|
-
//
|
|
4316
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/list.js
|
|
4284
4317
|
var LIST_FORMAT_OPTIONS = [
|
|
4285
4318
|
"type",
|
|
4286
4319
|
"style"
|
|
@@ -4335,7 +4368,7 @@ var ReactIntl = (() => {
|
|
|
4335
4368
|
return values;
|
|
4336
4369
|
}
|
|
4337
4370
|
|
|
4338
|
-
//
|
|
4371
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/plural.js
|
|
4339
4372
|
var PLURAL_FORMAT_OPTIONS = ["type"];
|
|
4340
4373
|
function formatPlural(_a2, getPluralRules, value, options) {
|
|
4341
4374
|
var locale = _a2.locale, onError = _a2.onError;
|
|
@@ -4354,7 +4387,7 @@ var ReactIntl = (() => {
|
|
|
4354
4387
|
return "other";
|
|
4355
4388
|
}
|
|
4356
4389
|
|
|
4357
|
-
//
|
|
4390
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/relativeTime.js
|
|
4358
4391
|
var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
|
|
4359
4392
|
function getFormatter2(_a2, getRelativeTimeFormat, options) {
|
|
4360
4393
|
var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
|
|
@@ -4385,7 +4418,7 @@ var ReactIntl = (() => {
|
|
|
4385
4418
|
return String(value);
|
|
4386
4419
|
}
|
|
4387
4420
|
|
|
4388
|
-
//
|
|
4421
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/number.js
|
|
4389
4422
|
var NUMBER_FORMAT_OPTIONS = [
|
|
4390
4423
|
"style",
|
|
4391
4424
|
"currency",
|
|
@@ -4445,7 +4478,7 @@ var ReactIntl = (() => {
|
|
|
4445
4478
|
return [];
|
|
4446
4479
|
}
|
|
4447
4480
|
|
|
4448
|
-
//
|
|
4481
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/create-intl.js
|
|
4449
4482
|
function messagesContainString(messages) {
|
|
4450
4483
|
var firstMessage = messages ? messages[Object.keys(messages)[0]] : void 0;
|
|
4451
4484
|
return typeof firstMessage === "string";
|
|
@@ -4491,11 +4524,16 @@ var ReactIntl = (() => {
|
|
|
4491
4524
|
});
|
|
4492
4525
|
}
|
|
4493
4526
|
|
|
4494
|
-
//
|
|
4527
|
+
// packages/react-intl/src/utils.ts
|
|
4495
4528
|
function invariantIntlContext(intl) {
|
|
4496
|
-
invariant(
|
|
4529
|
+
invariant(
|
|
4530
|
+
intl,
|
|
4531
|
+
"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry."
|
|
4532
|
+
);
|
|
4497
4533
|
}
|
|
4498
|
-
var DEFAULT_INTL_CONFIG2 =
|
|
4534
|
+
var DEFAULT_INTL_CONFIG2 = __spreadProps(__spreadValues({}, DEFAULT_INTL_CONFIG), {
|
|
4535
|
+
textComponent: React.Fragment
|
|
4536
|
+
});
|
|
4499
4537
|
function assignUniqueKeysToParts(formatXMLElementFn) {
|
|
4500
4538
|
return function(parts) {
|
|
4501
4539
|
return formatXMLElementFn(React.Children.toArray(parts));
|
|
@@ -4523,140 +4561,150 @@ var ReactIntl = (() => {
|
|
|
4523
4561
|
return true;
|
|
4524
4562
|
}
|
|
4525
4563
|
|
|
4526
|
-
//
|
|
4527
|
-
var React2 = __toESM(window.React);
|
|
4564
|
+
// packages/react-intl/src/components/injectIntl.tsx
|
|
4528
4565
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4566
|
+
var React2 = __toESM(window.React);
|
|
4529
4567
|
function getDisplayName(Component) {
|
|
4530
4568
|
return Component.displayName || Component.name || "Component";
|
|
4531
4569
|
}
|
|
4532
|
-
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4533
|
-
|
|
4534
|
-
|
|
4570
|
+
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4571
|
+
null
|
|
4572
|
+
)) : React2.createContext(null);
|
|
4573
|
+
var { Consumer: IntlConsumer, Provider: IntlProvider } = IntlContext;
|
|
4535
4574
|
var Provider = IntlProvider;
|
|
4536
4575
|
var Context = IntlContext;
|
|
4537
4576
|
function injectIntl(WrappedComponent, options) {
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
}
|
|
4548
|
-
|
|
4549
|
-
|
|
4577
|
+
const {
|
|
4578
|
+
intlPropName = "intl",
|
|
4579
|
+
forwardRef: forwardRef2 = false,
|
|
4580
|
+
enforceContext = true
|
|
4581
|
+
} = options || {};
|
|
4582
|
+
const WithIntl = (props) => React2.createElement(IntlConsumer, null, (intl) => {
|
|
4583
|
+
if (enforceContext) {
|
|
4584
|
+
invariantIntlContext(intl);
|
|
4585
|
+
}
|
|
4586
|
+
const intlProp = { [intlPropName]: intl };
|
|
4587
|
+
return React2.createElement(
|
|
4588
|
+
WrappedComponent,
|
|
4589
|
+
__spreadProps(__spreadValues(__spreadValues({}, props), intlProp), {
|
|
4590
|
+
ref: forwardRef2 ? props.forwardedRef : null
|
|
4591
|
+
})
|
|
4592
|
+
);
|
|
4593
|
+
});
|
|
4594
|
+
WithIntl.displayName = `injectIntl(${getDisplayName(WrappedComponent)})`;
|
|
4550
4595
|
WithIntl.WrappedComponent = WrappedComponent;
|
|
4551
4596
|
if (forwardRef2) {
|
|
4552
|
-
return (0, import_hoist_non_react_statics.default)(
|
|
4553
|
-
|
|
4554
|
-
|
|
4597
|
+
return (0, import_hoist_non_react_statics.default)(
|
|
4598
|
+
// @ts-expect-error
|
|
4599
|
+
React2.forwardRef((props, ref) => React2.createElement(WithIntl, __spreadProps(__spreadValues({}, props), { forwardedRef: ref }))),
|
|
4600
|
+
WrappedComponent
|
|
4601
|
+
);
|
|
4555
4602
|
}
|
|
4556
4603
|
return (0, import_hoist_non_react_statics.default)(WithIntl, WrappedComponent);
|
|
4557
4604
|
}
|
|
4558
4605
|
|
|
4559
|
-
//
|
|
4606
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
4560
4607
|
function useIntl() {
|
|
4561
|
-
|
|
4608
|
+
const intl = React3.useContext(Context);
|
|
4562
4609
|
invariantIntlContext(intl);
|
|
4563
4610
|
return intl;
|
|
4564
4611
|
}
|
|
4565
4612
|
|
|
4566
|
-
//
|
|
4567
|
-
var DisplayName
|
|
4568
|
-
(function(DisplayName2) {
|
|
4613
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
4614
|
+
var DisplayName = /* @__PURE__ */ ((DisplayName2) => {
|
|
4569
4615
|
DisplayName2["formatDate"] = "FormattedDate";
|
|
4570
4616
|
DisplayName2["formatTime"] = "FormattedTime";
|
|
4571
4617
|
DisplayName2["formatNumber"] = "FormattedNumber";
|
|
4572
4618
|
DisplayName2["formatList"] = "FormattedList";
|
|
4573
4619
|
DisplayName2["formatDisplayName"] = "FormattedDisplayName";
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
(
|
|
4620
|
+
return DisplayName2;
|
|
4621
|
+
})(DisplayName || {});
|
|
4622
|
+
var DisplayNameParts = /* @__PURE__ */ ((DisplayNameParts2) => {
|
|
4577
4623
|
DisplayNameParts2["formatDate"] = "FormattedDateParts";
|
|
4578
4624
|
DisplayNameParts2["formatTime"] = "FormattedTimeParts";
|
|
4579
4625
|
DisplayNameParts2["formatNumber"] = "FormattedNumberParts";
|
|
4580
4626
|
DisplayNameParts2["formatList"] = "FormattedListParts";
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4627
|
+
return DisplayNameParts2;
|
|
4628
|
+
})(DisplayNameParts || {});
|
|
4629
|
+
var FormattedNumberParts = (props) => {
|
|
4630
|
+
const intl = useIntl();
|
|
4631
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4585
4632
|
return children(intl.formatNumberToParts(value, formatProps));
|
|
4586
4633
|
};
|
|
4587
4634
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4588
|
-
var FormattedListParts =
|
|
4589
|
-
|
|
4590
|
-
|
|
4635
|
+
var FormattedListParts = (props) => {
|
|
4636
|
+
const intl = useIntl();
|
|
4637
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4591
4638
|
return children(intl.formatListToParts(value, formatProps));
|
|
4592
4639
|
};
|
|
4593
4640
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4594
4641
|
function createFormattedDateTimePartsComponent(name) {
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4642
|
+
const ComponentParts = (props) => {
|
|
4643
|
+
const intl = useIntl();
|
|
4644
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4645
|
+
const date = typeof value === "string" ? new Date(value || 0) : value;
|
|
4646
|
+
const formattedParts = name === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
|
|
4600
4647
|
return children(formattedParts);
|
|
4601
4648
|
};
|
|
4602
4649
|
ComponentParts.displayName = DisplayNameParts[name];
|
|
4603
4650
|
return ComponentParts;
|
|
4604
4651
|
}
|
|
4605
4652
|
function createFormattedComponent(name) {
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
["value", "children"]
|
|
4611
|
-
);
|
|
4612
|
-
var formattedValue = intl[name](value, formatProps);
|
|
4653
|
+
const Component = (props) => {
|
|
4654
|
+
const intl = useIntl();
|
|
4655
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4656
|
+
const formattedValue = intl[name](value, formatProps);
|
|
4613
4657
|
if (typeof children === "function") {
|
|
4614
4658
|
return children(formattedValue);
|
|
4615
4659
|
}
|
|
4616
|
-
|
|
4660
|
+
const Text = intl.textComponent || React4.Fragment;
|
|
4617
4661
|
return React4.createElement(Text, null, formattedValue);
|
|
4618
4662
|
};
|
|
4619
4663
|
Component.displayName = DisplayName[name];
|
|
4620
4664
|
return Component;
|
|
4621
4665
|
}
|
|
4622
4666
|
|
|
4623
|
-
//
|
|
4667
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4624
4668
|
var React6 = __toESM(window.React);
|
|
4625
4669
|
|
|
4626
|
-
//
|
|
4670
|
+
// packages/react-intl/src/components/createIntl.ts
|
|
4627
4671
|
var React5 = __toESM(window.React);
|
|
4628
4672
|
function assignUniqueKeysToFormatXMLElementFnArgument(values) {
|
|
4629
4673
|
if (!values) {
|
|
4630
4674
|
return values;
|
|
4631
4675
|
}
|
|
4632
|
-
return Object.keys(values).reduce(
|
|
4633
|
-
|
|
4676
|
+
return Object.keys(values).reduce((acc, k) => {
|
|
4677
|
+
const v = values[k];
|
|
4634
4678
|
acc[k] = isFormatXMLElementFn(v) ? assignUniqueKeysToParts(v) : v;
|
|
4635
4679
|
return acc;
|
|
4636
4680
|
}, {});
|
|
4637
4681
|
}
|
|
4638
|
-
var formatMessage2 =
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
rest[_i - 4] = arguments[_i];
|
|
4642
|
-
}
|
|
4643
|
-
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4644
|
-
var chunks = formatMessage.apply(void 0, __spreadArray([
|
|
4682
|
+
var formatMessage2 = (config, formatters, descriptor, rawValues, ...rest) => {
|
|
4683
|
+
const values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4684
|
+
const chunks = formatMessage(
|
|
4645
4685
|
config,
|
|
4646
4686
|
formatters,
|
|
4647
4687
|
descriptor,
|
|
4648
|
-
values
|
|
4649
|
-
|
|
4688
|
+
values,
|
|
4689
|
+
...rest
|
|
4690
|
+
);
|
|
4650
4691
|
if (Array.isArray(chunks)) {
|
|
4651
4692
|
return React5.Children.toArray(chunks);
|
|
4652
4693
|
}
|
|
4653
4694
|
return chunks;
|
|
4654
4695
|
};
|
|
4655
|
-
var createIntl2 =
|
|
4656
|
-
var
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4696
|
+
var createIntl2 = (_a2, cache) => {
|
|
4697
|
+
var _b = _a2, { defaultRichTextElements: rawDefaultRichTextElements } = _b, config = __objRest(_b, ["defaultRichTextElements"]);
|
|
4698
|
+
const defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(
|
|
4699
|
+
rawDefaultRichTextElements
|
|
4700
|
+
);
|
|
4701
|
+
const coreIntl = createIntl(
|
|
4702
|
+
__spreadProps(__spreadValues(__spreadValues({}, DEFAULT_INTL_CONFIG2), config), {
|
|
4703
|
+
defaultRichTextElements
|
|
4704
|
+
}),
|
|
4705
|
+
cache
|
|
4706
|
+
);
|
|
4707
|
+
const resolvedConfig = {
|
|
4660
4708
|
locale: coreIntl.locale,
|
|
4661
4709
|
timeZone: coreIntl.timeZone,
|
|
4662
4710
|
fallbackOnEmptyString: coreIntl.fallbackOnEmptyString,
|
|
@@ -4667,7 +4715,7 @@ var ReactIntl = (() => {
|
|
|
4667
4715
|
onError: coreIntl.onError,
|
|
4668
4716
|
defaultRichTextElements
|
|
4669
4717
|
};
|
|
4670
|
-
return
|
|
4718
|
+
return __spreadProps(__spreadValues({}, coreIntl), {
|
|
4671
4719
|
formatMessage: formatMessage2.bind(
|
|
4672
4720
|
null,
|
|
4673
4721
|
resolvedConfig,
|
|
@@ -4679,7 +4727,7 @@ var ReactIntl = (() => {
|
|
|
4679
4727
|
});
|
|
4680
4728
|
};
|
|
4681
4729
|
|
|
4682
|
-
//
|
|
4730
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4683
4731
|
function processIntlConfig(config) {
|
|
4684
4732
|
return {
|
|
4685
4733
|
locale: config.locale,
|
|
@@ -4696,49 +4744,41 @@ var ReactIntl = (() => {
|
|
|
4696
4744
|
defaultRichTextElements: config.defaultRichTextElements
|
|
4697
4745
|
};
|
|
4698
4746
|
}
|
|
4699
|
-
var IntlProvider2 =
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4747
|
+
var IntlProvider2 = class extends React6.PureComponent {
|
|
4748
|
+
constructor() {
|
|
4749
|
+
super(...arguments);
|
|
4750
|
+
__publicField(this, "cache", createIntlCache());
|
|
4751
|
+
__publicField(this, "state", {
|
|
4752
|
+
cache: this.cache,
|
|
4753
|
+
intl: createIntl2(processIntlConfig(this.props), this.cache),
|
|
4754
|
+
prevConfig: processIntlConfig(this.props)
|
|
4755
|
+
});
|
|
4756
|
+
}
|
|
4757
|
+
static getDerivedStateFromProps(props, { prevConfig, cache }) {
|
|
4758
|
+
const config = processIntlConfig(props);
|
|
4759
|
+
if (!shallowEqual(prevConfig, config)) {
|
|
4760
|
+
return {
|
|
4761
|
+
intl: createIntl2(config, cache),
|
|
4762
|
+
prevConfig: config
|
|
4710
4763
|
};
|
|
4711
|
-
return _this;
|
|
4712
4764
|
}
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
return null;
|
|
4723
|
-
};
|
|
4724
|
-
IntlProvider3.prototype.render = function() {
|
|
4725
|
-
invariantIntlContext(this.state.intl);
|
|
4726
|
-
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4727
|
-
};
|
|
4728
|
-
IntlProvider3.displayName = "IntlProvider";
|
|
4729
|
-
IntlProvider3.defaultProps = DEFAULT_INTL_CONFIG2;
|
|
4730
|
-
return IntlProvider3;
|
|
4731
|
-
}(React6.PureComponent)
|
|
4732
|
-
);
|
|
4733
|
-
var provider_default = IntlProvider2;
|
|
4765
|
+
return null;
|
|
4766
|
+
}
|
|
4767
|
+
render() {
|
|
4768
|
+
invariantIntlContext(this.state.intl);
|
|
4769
|
+
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4770
|
+
}
|
|
4771
|
+
};
|
|
4772
|
+
__publicField(IntlProvider2, "displayName", "IntlProvider");
|
|
4773
|
+
__publicField(IntlProvider2, "defaultProps", DEFAULT_INTL_CONFIG2);
|
|
4734
4774
|
|
|
4735
|
-
//
|
|
4775
|
+
// packages/react-intl/src/components/relative.tsx
|
|
4736
4776
|
var React7 = __toESM(window.React);
|
|
4737
4777
|
var MINUTE = 60;
|
|
4738
4778
|
var HOUR = 60 * 60;
|
|
4739
4779
|
var DAY = 60 * 60 * 24;
|
|
4740
4780
|
function selectUnit(seconds) {
|
|
4741
|
-
|
|
4781
|
+
const absValue = Math.abs(seconds);
|
|
4742
4782
|
if (absValue < MINUTE) {
|
|
4743
4783
|
return "second";
|
|
4744
4784
|
}
|
|
@@ -4780,16 +4820,13 @@ var ReactIntl = (() => {
|
|
|
4780
4820
|
"minute",
|
|
4781
4821
|
"hour"
|
|
4782
4822
|
];
|
|
4783
|
-
function canIncrement(unit) {
|
|
4784
|
-
if (unit === void 0) {
|
|
4785
|
-
unit = "second";
|
|
4786
|
-
}
|
|
4823
|
+
function canIncrement(unit = "second") {
|
|
4787
4824
|
return INCREMENTABLE_UNITS.indexOf(unit) > -1;
|
|
4788
4825
|
}
|
|
4789
|
-
var SimpleFormattedRelativeTime =
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4826
|
+
var SimpleFormattedRelativeTime = (props) => {
|
|
4827
|
+
const { formatRelativeTime: formatRelativeTime2, textComponent: Text } = useIntl();
|
|
4828
|
+
const _a2 = props, { children, value, unit } = _a2, otherProps = __objRest(_a2, ["children", "value", "unit"]);
|
|
4829
|
+
const formattedRelativeTime = formatRelativeTime2(value || 0, unit, otherProps);
|
|
4793
4830
|
if (typeof children === "function") {
|
|
4794
4831
|
return children(formattedRelativeTime);
|
|
4795
4832
|
}
|
|
@@ -4798,19 +4835,32 @@ var ReactIntl = (() => {
|
|
|
4798
4835
|
}
|
|
4799
4836
|
return React7.createElement(React7.Fragment, null, formattedRelativeTime);
|
|
4800
4837
|
};
|
|
4801
|
-
var FormattedRelativeTime =
|
|
4802
|
-
var _b = _a2
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4838
|
+
var FormattedRelativeTime = (_a2) => {
|
|
4839
|
+
var _b = _a2, {
|
|
4840
|
+
value = 0,
|
|
4841
|
+
unit = "second",
|
|
4842
|
+
updateIntervalInSeconds
|
|
4843
|
+
} = _b, otherProps = __objRest(_b, [
|
|
4844
|
+
"value",
|
|
4845
|
+
"unit",
|
|
4846
|
+
"updateIntervalInSeconds"
|
|
4847
|
+
]);
|
|
4848
|
+
invariant(
|
|
4849
|
+
!updateIntervalInSeconds || !!(updateIntervalInSeconds && canIncrement(unit)),
|
|
4850
|
+
"Cannot schedule update with unit longer than hour"
|
|
4851
|
+
);
|
|
4852
|
+
const [prevUnit, setPrevUnit] = React7.useState();
|
|
4853
|
+
const [prevValue, setPrevValue] = React7.useState(0);
|
|
4854
|
+
const [currentValueInSeconds, setCurrentValueInSeconds] = React7.useState(0);
|
|
4855
|
+
let updateTimer;
|
|
4808
4856
|
if (unit !== prevUnit || value !== prevValue) {
|
|
4809
4857
|
setPrevValue(value || 0);
|
|
4810
4858
|
setPrevUnit(unit);
|
|
4811
|
-
setCurrentValueInSeconds(
|
|
4859
|
+
setCurrentValueInSeconds(
|
|
4860
|
+
canIncrement(unit) ? valueToSeconds(value, unit) : 0
|
|
4861
|
+
);
|
|
4812
4862
|
}
|
|
4813
|
-
React7.useEffect(
|
|
4863
|
+
React7.useEffect(() => {
|
|
4814
4864
|
function clearUpdateTimer() {
|
|
4815
4865
|
clearTimeout(updateTimer);
|
|
4816
4866
|
}
|
|
@@ -4818,42 +4868,51 @@ var ReactIntl = (() => {
|
|
|
4818
4868
|
if (!updateIntervalInSeconds || !canIncrement(unit)) {
|
|
4819
4869
|
return clearUpdateTimer;
|
|
4820
4870
|
}
|
|
4821
|
-
|
|
4822
|
-
|
|
4871
|
+
const nextValueInSeconds = currentValueInSeconds - updateIntervalInSeconds;
|
|
4872
|
+
const nextUnit = selectUnit(nextValueInSeconds);
|
|
4823
4873
|
if (nextUnit === "day") {
|
|
4824
4874
|
return clearUpdateTimer;
|
|
4825
4875
|
}
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4876
|
+
const unitDuration = getDurationInSeconds(nextUnit);
|
|
4877
|
+
const remainder = nextValueInSeconds % unitDuration;
|
|
4878
|
+
const prevInterestingValueInSeconds = nextValueInSeconds - remainder;
|
|
4879
|
+
const nextInterestingValueInSeconds = prevInterestingValueInSeconds >= currentValueInSeconds ? prevInterestingValueInSeconds - unitDuration : prevInterestingValueInSeconds;
|
|
4880
|
+
const delayInSeconds = Math.abs(
|
|
4881
|
+
nextInterestingValueInSeconds - currentValueInSeconds
|
|
4882
|
+
);
|
|
4831
4883
|
if (currentValueInSeconds !== nextInterestingValueInSeconds) {
|
|
4832
|
-
updateTimer = setTimeout(
|
|
4833
|
-
|
|
4834
|
-
|
|
4884
|
+
updateTimer = setTimeout(
|
|
4885
|
+
() => setCurrentValueInSeconds(nextInterestingValueInSeconds),
|
|
4886
|
+
delayInSeconds * 1e3
|
|
4887
|
+
);
|
|
4835
4888
|
}
|
|
4836
4889
|
return clearUpdateTimer;
|
|
4837
4890
|
}, [currentValueInSeconds, updateIntervalInSeconds, unit]);
|
|
4838
|
-
|
|
4839
|
-
|
|
4891
|
+
let currentValue = value || 0;
|
|
4892
|
+
let currentUnit = unit;
|
|
4840
4893
|
if (canIncrement(unit) && typeof currentValueInSeconds === "number" && updateIntervalInSeconds) {
|
|
4841
4894
|
currentUnit = selectUnit(currentValueInSeconds);
|
|
4842
|
-
|
|
4895
|
+
const unitDuration = getDurationInSeconds(currentUnit);
|
|
4843
4896
|
currentValue = Math.round(currentValueInSeconds / unitDuration);
|
|
4844
4897
|
}
|
|
4845
|
-
return React7.createElement(
|
|
4898
|
+
return React7.createElement(
|
|
4899
|
+
SimpleFormattedRelativeTime,
|
|
4900
|
+
__spreadValues({
|
|
4901
|
+
value: currentValue,
|
|
4902
|
+
unit: currentUnit
|
|
4903
|
+
}, otherProps)
|
|
4904
|
+
);
|
|
4846
4905
|
};
|
|
4847
4906
|
FormattedRelativeTime.displayName = "FormattedRelativeTime";
|
|
4848
4907
|
var relative_default = FormattedRelativeTime;
|
|
4849
4908
|
|
|
4850
|
-
//
|
|
4909
|
+
// packages/react-intl/src/components/plural.tsx
|
|
4851
4910
|
var React8 = __toESM(window.React);
|
|
4852
|
-
var FormattedPlural =
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4911
|
+
var FormattedPlural = (props) => {
|
|
4912
|
+
const { formatPlural: formatPlural2, textComponent: Text } = useIntl();
|
|
4913
|
+
const { value, other, children } = props;
|
|
4914
|
+
const pluralCategory = formatPlural2(value, props);
|
|
4915
|
+
const formattedPlural = props[pluralCategory] || other;
|
|
4857
4916
|
if (typeof children === "function") {
|
|
4858
4917
|
return children(formattedPlural);
|
|
4859
4918
|
}
|
|
@@ -4865,19 +4924,27 @@ var ReactIntl = (() => {
|
|
|
4865
4924
|
FormattedPlural.displayName = "FormattedPlural";
|
|
4866
4925
|
var plural_default = FormattedPlural;
|
|
4867
4926
|
|
|
4868
|
-
//
|
|
4927
|
+
// packages/react-intl/src/components/message.tsx
|
|
4869
4928
|
var React9 = __toESM(window.React);
|
|
4870
4929
|
function areEqual(prevProps, nextProps) {
|
|
4871
|
-
|
|
4872
|
-
|
|
4930
|
+
const _a2 = prevProps, { values } = _a2, otherProps = __objRest(_a2, ["values"]);
|
|
4931
|
+
const _b = nextProps, { values: nextValues } = _b, nextOtherProps = __objRest(_b, ["values"]);
|
|
4873
4932
|
return shallowEqual(nextValues, values) && shallowEqual(otherProps, nextOtherProps);
|
|
4874
4933
|
}
|
|
4875
4934
|
function FormattedMessage(props) {
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4935
|
+
const intl = useIntl();
|
|
4936
|
+
const { formatMessage: formatMessage3, textComponent: Text = React9.Fragment } = intl;
|
|
4937
|
+
const {
|
|
4938
|
+
id,
|
|
4939
|
+
description,
|
|
4940
|
+
defaultMessage,
|
|
4941
|
+
values,
|
|
4942
|
+
children,
|
|
4943
|
+
tagName: Component = Text,
|
|
4944
|
+
ignoreTag
|
|
4945
|
+
} = props;
|
|
4946
|
+
const descriptor = { id, description, defaultMessage };
|
|
4947
|
+
let nodes = formatMessage3(descriptor, values, {
|
|
4881
4948
|
ignoreTag
|
|
4882
4949
|
});
|
|
4883
4950
|
if (typeof children === "function") {
|
|
@@ -4889,26 +4956,29 @@ var ReactIntl = (() => {
|
|
|
4889
4956
|
return React9.createElement(React9.Fragment, null, nodes);
|
|
4890
4957
|
}
|
|
4891
4958
|
FormattedMessage.displayName = "FormattedMessage";
|
|
4892
|
-
var MemoizedFormattedMessage = React9.memo(
|
|
4959
|
+
var MemoizedFormattedMessage = React9.memo(
|
|
4960
|
+
FormattedMessage,
|
|
4961
|
+
areEqual
|
|
4962
|
+
);
|
|
4893
4963
|
MemoizedFormattedMessage.displayName = "MemoizedFormattedMessage";
|
|
4894
4964
|
var message_default = MemoizedFormattedMessage;
|
|
4895
4965
|
|
|
4896
|
-
//
|
|
4966
|
+
// packages/react-intl/src/components/dateTimeRange.tsx
|
|
4897
4967
|
var React10 = __toESM(window.React);
|
|
4898
|
-
var FormattedDateTimeRange =
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4968
|
+
var FormattedDateTimeRange = (props) => {
|
|
4969
|
+
const intl = useIntl();
|
|
4970
|
+
const _a2 = props, { from, to, children } = _a2, formatProps = __objRest(_a2, ["from", "to", "children"]);
|
|
4971
|
+
const formattedValue = intl.formatDateTimeRange(from, to, formatProps);
|
|
4902
4972
|
if (typeof children === "function") {
|
|
4903
4973
|
return children(formattedValue);
|
|
4904
4974
|
}
|
|
4905
|
-
|
|
4975
|
+
const Text = intl.textComponent || React10.Fragment;
|
|
4906
4976
|
return React10.createElement(Text, null, formattedValue);
|
|
4907
4977
|
};
|
|
4908
4978
|
FormattedDateTimeRange.displayName = "FormattedDateTimeRange";
|
|
4909
4979
|
var dateTimeRange_default = FormattedDateTimeRange;
|
|
4910
4980
|
|
|
4911
|
-
//
|
|
4981
|
+
// packages/react-intl/index.ts
|
|
4912
4982
|
function defineMessages(msgs) {
|
|
4913
4983
|
return msgs;
|
|
4914
4984
|
}
|
|
@@ -4922,7 +4992,7 @@ var ReactIntl = (() => {
|
|
|
4922
4992
|
var FormattedDisplayName = createFormattedComponent("formatDisplayName");
|
|
4923
4993
|
var FormattedDateParts = createFormattedDateTimePartsComponent("formatDate");
|
|
4924
4994
|
var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
|
|
4925
|
-
return __toCommonJS(
|
|
4995
|
+
return __toCommonJS(react_intl_exports);
|
|
4926
4996
|
})();
|
|
4927
4997
|
/*! Bundled license information:
|
|
4928
4998
|
|