@gobolt/genesis 0.0.8 → 0.0.9

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.
Files changed (170) hide show
  1. package/README.md +10 -0
  2. package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
  5. package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
  6. package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
  7. package/dist/ContextIsolator-D5x2Ih51.js +20 -0
  8. package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
  9. package/dist/KeyCode-DM2sFh3-.js +517 -0
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
  12. package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
  13. package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
  14. package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
  18. package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
  19. package/dist/compact-item-DH13cl8A.js +61 -0
  20. package/dist/components/Badge/Badge.d.ts +2 -2
  21. package/dist/components/Badge/Badge.js +63 -62
  22. package/dist/components/Badge/__tests__/Badge.test.js +11 -65
  23. package/dist/components/Badge/index.js +2 -21
  24. package/dist/components/Badge/styles.js +7 -8
  25. package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
  27. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
  28. package/dist/components/Breadcrumb/index.js +2 -25
  29. package/dist/components/Breadcrumb/styles.d.ts +10 -6
  30. package/dist/components/Breadcrumb/styles.js +787 -808
  31. package/dist/components/Button/Button.d.ts +6 -4
  32. package/dist/components/Button/Button.js +20 -40
  33. package/dist/components/Button/__tests__/Button.test.js +9 -54
  34. package/dist/components/Button/index.js +2 -20
  35. package/dist/components/Button/styles.d.ts +9 -5
  36. package/dist/components/Button/styles.js +19 -30
  37. package/dist/components/Checkbox/Checkbox.js +8 -38
  38. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
  39. package/dist/components/Checkbox/index.js +2 -47
  40. package/dist/components/Checkbox/styles.d.ts +8 -1
  41. package/dist/components/Checkbox/styles.js +181 -188
  42. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
  43. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
  44. package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
  45. package/dist/components/ErrorBoundaryFallback/index.js +2 -49
  46. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
  47. package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
  48. package/dist/components/Form/Form.d.ts +18 -5
  49. package/dist/components/Form/Form.js +4 -45
  50. package/dist/components/Form/__stories__/FormStory.js +44 -81
  51. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  52. package/dist/components/Form/__tests__/form.test.js +18 -0
  53. package/dist/components/Form/index.js +2 -46
  54. package/dist/components/Form/styles.d.ts +3 -0
  55. package/dist/components/Form/styles.js +5 -0
  56. package/dist/components/Input/Input.js +6 -29
  57. package/dist/components/Input/__tests__/Input.test.js +21 -66
  58. package/dist/components/Input/index.js +2 -29
  59. package/dist/components/Input/styles.d.ts +5 -2
  60. package/dist/components/Input/styles.js +319 -332
  61. package/dist/components/Message/Message.d.ts +4 -4
  62. package/dist/components/Message/Message.js +53 -80
  63. package/dist/components/Message/__tests__/Message.test.js +24 -70
  64. package/dist/components/Message/index.js +2 -48
  65. package/dist/components/Message/styles.d.ts +4 -1
  66. package/dist/components/Message/styles.js +24 -18
  67. package/dist/components/Notification/Notification.d.ts +11 -10
  68. package/dist/components/Notification/Notification.js +306 -372
  69. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  70. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  71. package/dist/components/Notification/__tests__/Notification.test.js +8 -69
  72. package/dist/components/Notification/index.js +2 -59
  73. package/dist/components/Notification/styles.d.ts +13 -3
  74. package/dist/components/Notification/styles.js +36 -20
  75. package/dist/components/Radio/Radio.js +20 -106
  76. package/dist/components/Radio/RadioGroup.js +18 -71
  77. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
  78. package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
  79. package/dist/components/Radio/index.d.ts +1 -1
  80. package/dist/components/Radio/index.js +2 -56
  81. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  82. package/dist/components/Select/DropdownChevron.js +23 -0
  83. package/dist/components/Select/Select.d.ts +9 -4
  84. package/dist/components/Select/Select.js +29 -41
  85. package/dist/components/Select/__tests__/Select.test.js +10752 -93
  86. package/dist/components/Select/index.js +2 -28
  87. package/dist/components/Select/styles.d.ts +20 -6
  88. package/dist/components/Select/styles.js +1381 -1370
  89. package/dist/components/Toast/Toast.d.ts +4 -4
  90. package/dist/components/Toast/Toast.js +8 -37
  91. package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
  92. package/dist/components/Toast/__tests__/Toast.test.js +10 -55
  93. package/dist/components/Toast/index.js +2 -46
  94. package/dist/components/Toast/styles.d.ts +6 -1
  95. package/dist/components/Toast/styles.js +36 -21
  96. package/dist/components/Typography/Typography.d.ts +7 -4
  97. package/dist/components/Typography/Typography.js +2 -42
  98. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  99. package/dist/components/Typography/__tests__/Typography.test.js +19 -56
  100. package/dist/components/Typography/index.js +2 -46
  101. package/dist/components/Typography/styles.d.ts +18 -4
  102. package/dist/components/Typography/styles.js +36 -43
  103. package/dist/components/index.d.ts +13 -5
  104. package/dist/components/index.js +24 -70
  105. package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
  106. package/dist/genesis/GenesisThemeBreakdown.js +38 -55
  107. package/dist/genesis/GenesisThemeDemo.js +3 -53
  108. package/dist/genesis/styles.d.ts +6 -2
  109. package/dist/genesis/styles.js +496 -521
  110. package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
  111. package/dist/index-BZAhCB_K.js +97 -0
  112. package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
  113. package/dist/index-C8haFnXI.js +1112 -0
  114. package/dist/index-CfDY25LP.js +873 -0
  115. package/dist/index-DPW8XdWj.js +952 -0
  116. package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
  117. package/dist/index-oK7z6jnz.js +22795 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +31 -77
  120. package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
  121. package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
  122. package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
  123. package/dist/providers/GenesisProvider.d.ts +0 -5
  124. package/dist/providers/GenesisProvider.js +9 -59
  125. package/dist/providers/ThemeProvider.d.ts +1 -2
  126. package/dist/providers/ThemeProvider.js +11 -13
  127. package/dist/providers/ToastProvider.d.ts +11 -4
  128. package/dist/providers/ToastProvider.js +10 -39
  129. package/dist/providers/index.d.ts +2 -3
  130. package/dist/providers/index.js +4 -51
  131. package/dist/providers/useGenesis.d.ts +7 -0
  132. package/dist/providers/useGenesis.js +6 -0
  133. package/dist/setup-BvfREoHl.js +33891 -0
  134. package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
  135. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
  136. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
  137. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  138. package/dist/styles/design-tokens/variables.d.ts +10 -10
  139. package/dist/styles/design-tokens/variables.js +1 -1
  140. package/dist/styles/global-styles.d.ts +1 -0
  141. package/dist/styles/global-styles.js +14 -31
  142. package/dist/styles/theme/genesis-theme.js +257 -212
  143. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  144. package/dist/styles/theme/index.js +4 -5
  145. package/dist/styles-CT_fyXBd.js +1808 -0
  146. package/dist/test/setup.js +3 -46
  147. package/dist/useLocale-DT-z_vQ6.js +16 -0
  148. package/dist/useVariants-DvhXfgJY.js +30 -0
  149. package/dist/utils/isAllEnglishString.js +1 -2
  150. package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
  151. package/package.json +35 -35
  152. package/dist/CheckOutlined-52d9ac25.js +0 -29
  153. package/dist/ContextIsolator-b09b2c52.js +0 -20
  154. package/dist/EllipsisOutlined-60122660.js +0 -1115
  155. package/dist/InfoCircleFilled-c5f90c20.js +0 -16
  156. package/dist/RightOutlined-83515eb4.js +0 -16
  157. package/dist/compact-item-b8f85aa6.js +0 -75
  158. package/dist/index-0a886e53.js +0 -100
  159. package/dist/index-0b9ee239.js +0 -955
  160. package/dist/index-1a33c134.js +0 -1389
  161. package/dist/index-4003d75b.js +0 -3748
  162. package/dist/index-89035ea5.js +0 -3242
  163. package/dist/providers/ToastWrapper.d.ts +0 -7
  164. package/dist/providers/ToastWrapper.js +0 -56
  165. package/dist/setup-aaca7b6f.js +0 -21158
  166. package/dist/styles/theme/global-styles.d.ts +0 -1
  167. package/dist/styles/theme/global-styles.js +0 -36
  168. package/dist/useVariants-a0d64298.js +0 -30
  169. /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
  170. /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
@@ -1,93 +1,53 @@
1
- import { jsxs as L, jsx as M } from "react/jsx-runtime";
2
- import { SIZE as B, TYPOGRAPHY_VARIANT as Y, STATE as k } from "../../constants/index.js";
3
- import "../Button/styles.js";
1
+ import { jsxs as X, jsx as b } from "react/jsx-runtime";
2
+ import { SIZE as _, TYPOGRAPHY_VARIANT as S, STATE as x } from "../../constants/index.js";
3
+ import J from "../Badge/Badge.js";
4
+ import "../Breadcrumb/styles.js";
4
5
  import "../../providers/ThemeProvider.js";
6
+ import { a as C } from "../../Typography-aGoDUl4R.js";
7
+ import { n as U } from "../../styled-components.browser.esm-CZ1XM4o4.js";
8
+ import "../Button/styles.js";
5
9
  import "../Checkbox/styles.js";
6
10
  import "../ErrorBoundaryFallback/styles.js";
7
- import { T as R } from "../../index-89035ea5.js";
8
11
  import "../Input/styles.js";
12
+ import "../Message/styles.js";
9
13
  import "react";
10
14
  import "../Select/styles.js";
11
- import z from "../Badge/Badge.js";
12
15
  import "../Toast/styles.js";
13
- import { n as tt } from "../../styled-components.browser.esm-02f500bc.js";
14
- import { NotificationRow as et, NotificationUnread as nt, NotificationContent as rt } from "./styles.js";
15
- import { R as at } from "../../RightOutlined-83515eb4.js";
16
- import "../../button-fa1c119c.js";
17
- import "../../presets-83ccb923.js";
18
- import "../../isVisible-729780f5.js";
19
- import "../../index-4003d75b.js";
20
- import "react-dom";
21
- import "../../index-e2b72ca8.js";
22
- import "../../reactNode-f4391605.js";
23
- import "../../Compact-c39ed20d.js";
24
- import "../../presetColors-ccf8cb4c.js";
25
- import "../../compact-item-b8f85aa6.js";
26
- import "../../AntdIcon-c395a1c4.js";
27
- import "../../styles/theme/genesis-theme.js";
28
- import "../../styles/design-tokens/variables.js";
29
- import "../../context-3b8a39af.js";
30
- import "../../ExclamationCircleFilled-23ef9812.js";
31
- import "../../CloseCircleFilled-ddc51e7e.js";
32
- import "../Typography/styles.js";
33
- import "../../index-501fc13d.js";
34
- import "../../index-8c8d2d0c.js";
35
- import "../../CheckOutlined-52d9ac25.js";
36
- import "../../index-0b9ee239.js";
37
- import "../../index-1a33c134.js";
38
- import "../../ContextIsolator-b09b2c52.js";
39
- import "../../TextArea-20825221.js";
40
- import "../../useVariants-a0d64298.js";
41
- import "../Badge/styles.js";
42
- import "../../CloseOutlined-14b8bba1.js";
43
- import "../../InfoCircleFilled-c5f90c20.js";
44
- import "../../pickAttrs-00ba4687.js";
45
- import "../../collapse-345bc884.js";
46
- import "../../SearchOutlined-a9014e08.js";
47
- import "../../Overflow-a570fa69.js";
48
- import "../../DownOutlined-64a4732a.js";
49
- import "../Badge/icons/Appointment.js";
50
- import "../Badge/icons/ASN.js";
51
- import "../Badge/icons/Inventory.js";
52
- import "../Badge/icons/Parcel.js";
53
- import "../Badge/icons/Product.js";
54
- import "../Badge/icons/Route.js";
55
- import "../Badge/icons/Shipment.js";
56
- import "../Badge/icons/ShoppingCart.js";
57
- import "../Badge/icons/System.js";
16
+ import { NotificationRow as K, NotificationUnread as Z, NotificationContent as z, NotificationActionButton as tt, ChevronButton as et } from "./styles.js";
17
+ import nt from "./NotificationRightChevron.js";
58
18
  function d(t) {
59
19
  const e = Object.prototype.toString.call(t);
60
20
  return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
61
21
  }
62
- function O(t, e) {
22
+ function D(t, e) {
63
23
  return t instanceof Date ? new t.constructor(e) : new Date(e);
64
24
  }
65
- const $ = 6048e5, ot = 864e5, E = 43200, j = 1440;
66
- let it = {};
67
- function W() {
68
- return it;
25
+ const A = 6048e5, rt = 864e5, W = 43200, H = 1440;
26
+ let at = {};
27
+ function T() {
28
+ return at;
69
29
  }
70
- function T(t, e) {
71
- var i, c, f, m;
72
- const n = W(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((m = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : m.weekStartsOn) ?? 0, a = d(t), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
30
+ function p(t, e) {
31
+ var i, u, f, h;
32
+ const n = T(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((h = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : h.weekStartsOn) ?? 0, a = d(t), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
73
33
  return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
74
34
  }
75
- function N(t) {
76
- return T(t, { weekStartsOn: 1 });
35
+ function F(t) {
36
+ return p(t, { weekStartsOn: 1 });
77
37
  }
78
- function J(t) {
79
- const e = d(t), n = e.getFullYear(), r = O(t, 0);
38
+ function B(t) {
39
+ const e = d(t), n = e.getFullYear(), r = D(t, 0);
80
40
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
81
- const a = N(r), o = O(t, 0);
41
+ const a = F(r), o = D(t, 0);
82
42
  o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
83
- const s = N(o);
43
+ const s = F(o);
84
44
  return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= s.getTime() ? n : n - 1;
85
45
  }
86
- function I(t) {
46
+ function R(t) {
87
47
  const e = d(t);
88
48
  return e.setHours(0, 0, 0, 0), e;
89
49
  }
90
- function C(t) {
50
+ function N(t) {
91
51
  const e = d(t), n = new Date(
92
52
  Date.UTC(
93
53
  e.getFullYear(),
@@ -101,35 +61,35 @@ function C(t) {
101
61
  );
102
62
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
103
63
  }
104
- function st(t, e) {
105
- const n = I(t), r = I(e), a = +n - C(n), o = +r - C(r);
106
- return Math.round((a - o) / ot);
64
+ function ot(t, e) {
65
+ const n = R(t), r = R(e), a = +n - N(n), o = +r - N(r);
66
+ return Math.round((a - o) / rt);
107
67
  }
108
- function ct(t) {
109
- const e = J(t), n = O(t, 0);
110
- return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), N(n);
68
+ function it(t) {
69
+ const e = B(t), n = D(t, 0);
70
+ return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), F(n);
111
71
  }
112
- function F(t, e) {
72
+ function Y(t, e) {
113
73
  const n = d(t), r = d(e), a = n.getTime() - r.getTime();
114
74
  return a < 0 ? -1 : a > 0 ? 1 : a;
115
75
  }
116
- function ut(t) {
117
- return O(t, Date.now());
76
+ function st(t) {
77
+ return D(t, Date.now());
118
78
  }
119
- function dt(t) {
79
+ function ct(t) {
120
80
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
121
81
  }
122
- function ft(t) {
123
- if (!dt(t) && typeof t != "number")
82
+ function ut(t) {
83
+ if (!ct(t) && typeof t != "number")
124
84
  return !1;
125
85
  const e = d(t);
126
86
  return !isNaN(Number(e));
127
87
  }
128
- function mt(t, e) {
88
+ function dt(t, e) {
129
89
  const n = d(t), r = d(e), a = n.getFullYear() - r.getFullYear(), o = n.getMonth() - r.getMonth();
130
90
  return a * 12 + o;
131
91
  }
132
- function lt(t) {
92
+ function ft(t) {
133
93
  return (e) => {
134
94
  const r = (t ? Math[t] : Math.trunc)(e);
135
95
  return r === 0 ? 0 : r;
@@ -138,41 +98,41 @@ function lt(t) {
138
98
  function ht(t, e) {
139
99
  return +d(t) - +d(e);
140
100
  }
141
- function gt(t) {
101
+ function lt(t) {
142
102
  const e = d(t);
143
103
  return e.setHours(23, 59, 59, 999), e;
144
104
  }
145
- function wt(t) {
105
+ function mt(t) {
146
106
  const e = d(t), n = e.getMonth();
147
107
  return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
148
108
  }
149
- function yt(t) {
109
+ function gt(t) {
150
110
  const e = d(t);
151
- return +gt(e) == +wt(e);
111
+ return +lt(e) == +mt(e);
152
112
  }
153
- function bt(t, e) {
154
- const n = d(t), r = d(e), a = F(n, r), o = Math.abs(
155
- mt(n, r)
113
+ function wt(t, e) {
114
+ const n = d(t), r = d(e), a = Y(n, r), o = Math.abs(
115
+ dt(n, r)
156
116
  );
157
117
  let s;
158
118
  if (o < 1)
159
119
  s = 0;
160
120
  else {
161
121
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * o);
162
- let i = F(n, r) === -a;
163
- yt(d(t)) && o === 1 && F(t, r) === 1 && (i = !1), s = a * (o - Number(i));
122
+ let i = Y(n, r) === -a;
123
+ gt(d(t)) && o === 1 && Y(t, r) === 1 && (i = !1), s = a * (o - Number(i));
164
124
  }
165
125
  return s === 0 ? 0 : s;
166
126
  }
167
- function Mt(t, e, n) {
127
+ function yt(t, e, n) {
168
128
  const r = ht(t, e) / 1e3;
169
- return lt(n == null ? void 0 : n.roundingMethod)(r);
129
+ return ft(n == null ? void 0 : n.roundingMethod)(r);
170
130
  }
171
- function Dt(t) {
172
- const e = d(t), n = O(t, 0);
131
+ function bt(t) {
132
+ const e = d(t), n = D(t, 0);
173
133
  return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
174
134
  }
175
- const pt = {
135
+ const Mt = {
176
136
  lessThanXSeconds: {
177
137
  one: "less than a second",
178
138
  other: "less than {{count}} seconds"
@@ -234,53 +194,53 @@ const pt = {
234
194
  one: "almost 1 year",
235
195
  other: "almost {{count}} years"
236
196
  }
237
- }, Ot = (t, e, n) => {
197
+ }, Dt = (t, e, n) => {
238
198
  let r;
239
- const a = pt[t];
199
+ const a = Mt[t];
240
200
  return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
241
201
  };
242
- function X(t) {
202
+ function q(t) {
243
203
  return (e = {}) => {
244
204
  const n = e.width ? String(e.width) : t.defaultWidth;
245
205
  return t.formats[n] || t.formats[t.defaultWidth];
246
206
  };
247
207
  }
248
- const Pt = {
208
+ const Ot = {
249
209
  full: "EEEE, MMMM do, y",
250
210
  long: "MMMM do, y",
251
211
  medium: "MMM d, y",
252
212
  short: "MM/dd/yyyy"
253
- }, xt = {
213
+ }, Pt = {
254
214
  full: "h:mm:ss a zzzz",
255
215
  long: "h:mm:ss a z",
256
216
  medium: "h:mm:ss a",
257
217
  short: "h:mm a"
258
- }, kt = {
218
+ }, xt = {
259
219
  full: "{{date}} 'at' {{time}}",
260
220
  long: "{{date}} 'at' {{time}}",
261
221
  medium: "{{date}}, {{time}}",
262
222
  short: "{{date}}, {{time}}"
263
223
  }, vt = {
264
- date: X({
265
- formats: Pt,
224
+ date: q({
225
+ formats: Ot,
266
226
  defaultWidth: "full"
267
227
  }),
268
- time: X({
269
- formats: xt,
228
+ time: q({
229
+ formats: Pt,
270
230
  defaultWidth: "full"
271
231
  }),
272
- dateTime: X({
273
- formats: kt,
232
+ dateTime: q({
233
+ formats: xt,
274
234
  defaultWidth: "full"
275
235
  })
276
- }, St = {
236
+ }, kt = {
277
237
  lastWeek: "'last' eeee 'at' p",
278
238
  yesterday: "'yesterday at' p",
279
239
  today: "'today at' p",
280
240
  tomorrow: "'tomorrow at' p",
281
241
  nextWeek: "eeee 'at' p",
282
242
  other: "P"
283
- }, Tt = (t, e, n, r) => St[t];
243
+ }, pt = (t, e, n, r) => kt[t];
284
244
  function v(t) {
285
245
  return (e, n) => {
286
246
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -296,15 +256,15 @@ function v(t) {
296
256
  return a[o];
297
257
  };
298
258
  }
299
- const Wt = {
259
+ const Tt = {
300
260
  narrow: ["B", "A"],
301
261
  abbreviated: ["BC", "AD"],
302
262
  wide: ["Before Christ", "Anno Domini"]
303
- }, Yt = {
263
+ }, St = {
304
264
  narrow: ["1", "2", "3", "4"],
305
265
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
306
266
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
307
- }, Et = {
267
+ }, Wt = {
308
268
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
309
269
  abbreviated: [
310
270
  "Jan",
@@ -334,7 +294,7 @@ const Wt = {
334
294
  "November",
335
295
  "December"
336
296
  ]
337
- }, Ft = {
297
+ }, Yt = {
338
298
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
339
299
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
340
300
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -347,7 +307,7 @@ const Wt = {
347
307
  "Friday",
348
308
  "Saturday"
349
309
  ]
350
- }, Nt = {
310
+ }, Ft = {
351
311
  narrow: {
352
312
  am: "a",
353
313
  pm: "p",
@@ -378,7 +338,7 @@ const Wt = {
378
338
  evening: "evening",
379
339
  night: "night"
380
340
  }
381
- }, Ct = {
341
+ }, Nt = {
382
342
  narrow: {
383
343
  am: "a",
384
344
  pm: "p",
@@ -409,7 +369,7 @@ const Wt = {
409
369
  evening: "in the evening",
410
370
  night: "at night"
411
371
  }
412
- }, qt = (t, e) => {
372
+ }, Et = (t, e) => {
413
373
  const n = Number(t), r = n % 100;
414
374
  if (r > 20 || r < 10)
415
375
  switch (r % 10) {
@@ -421,91 +381,89 @@ const Wt = {
421
381
  return n + "rd";
422
382
  }
423
383
  return n + "th";
424
- }, Rt = {
425
- ordinalNumber: qt,
384
+ }, Ct = {
385
+ ordinalNumber: Et,
426
386
  era: v({
427
- values: Wt,
387
+ values: Tt,
428
388
  defaultWidth: "wide"
429
389
  }),
430
390
  quarter: v({
431
- values: Yt,
391
+ values: St,
432
392
  defaultWidth: "wide",
433
393
  argumentCallback: (t) => t - 1
434
394
  }),
435
395
  month: v({
436
- values: Et,
396
+ values: Wt,
437
397
  defaultWidth: "wide"
438
398
  }),
439
399
  day: v({
440
- values: Ft,
400
+ values: Yt,
441
401
  defaultWidth: "wide"
442
402
  }),
443
403
  dayPeriod: v({
444
- values: Nt,
404
+ values: Ft,
445
405
  defaultWidth: "wide",
446
- formattingValues: Ct,
406
+ formattingValues: Nt,
447
407
  defaultFormattingWidth: "wide"
448
408
  })
449
409
  };
450
- function S(t) {
410
+ function k(t) {
451
411
  return (e, n = {}) => {
452
412
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
453
413
  if (!o)
454
414
  return null;
455
- const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(i) ? _t(i, (w) => w.test(s)) : (
415
+ const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(i) ? Xt(i, (w) => w.test(s)) : (
456
416
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
457
- Xt(i, (w) => w.test(s))
417
+ qt(i, (w) => w.test(s))
458
418
  );
459
419
  let f;
460
- f = t.valueCallback ? t.valueCallback(c) : c, f = n.valueCallback ? (
420
+ f = t.valueCallback ? t.valueCallback(u) : u, f = n.valueCallback ? (
461
421
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
462
422
  n.valueCallback(f)
463
423
  ) : f;
464
- const m = e.slice(s.length);
465
- return { value: f, rest: m };
424
+ const h = e.slice(s.length);
425
+ return { value: f, rest: h };
466
426
  };
467
427
  }
468
- function Xt(t, e) {
428
+ function qt(t, e) {
469
429
  for (const n in t)
470
430
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
471
431
  return n;
472
432
  }
473
- function _t(t, e) {
433
+ function Xt(t, e) {
474
434
  for (let n = 0; n < t.length; n++)
475
435
  if (e(t[n]))
476
436
  return n;
477
437
  }
478
- function Ht(t) {
438
+ function _t(t) {
479
439
  return (e, n = {}) => {
480
440
  const r = e.match(t.matchPattern);
481
- if (!r)
482
- return null;
441
+ if (!r) return null;
483
442
  const a = r[0], o = e.match(t.parsePattern);
484
- if (!o)
485
- return null;
443
+ if (!o) return null;
486
444
  let s = t.valueCallback ? t.valueCallback(o[0]) : o[0];
487
445
  s = n.valueCallback ? n.valueCallback(s) : s;
488
446
  const i = e.slice(a.length);
489
447
  return { value: s, rest: i };
490
448
  };
491
449
  }
492
- const Lt = /^(\d+)(th|st|nd|rd)?/i, Bt = /\d+/i, jt = {
450
+ const Ht = /^(\d+)(th|st|nd|rd)?/i, Rt = /\d+/i, Lt = {
493
451
  narrow: /^(b|a)/i,
494
452
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
495
453
  wide: /^(before christ|before common era|anno domini|common era)/i
496
- }, It = {
454
+ }, jt = {
497
455
  any: [/^b/i, /^(a|c)/i]
498
- }, At = {
456
+ }, It = {
499
457
  narrow: /^[1234]/i,
500
458
  abbreviated: /^q[1234]/i,
501
459
  wide: /^[1234](th|st|nd|rd)? quarter/i
502
460
  }, Qt = {
503
461
  any: [/1/i, /2/i, /3/i, /4/i]
504
- }, Gt = {
462
+ }, At = {
505
463
  narrow: /^[jfmasond]/i,
506
464
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
507
465
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
508
- }, Vt = {
466
+ }, Bt = {
509
467
  narrow: [
510
468
  /^j/i,
511
469
  /^f/i,
@@ -534,18 +492,18 @@ const Lt = /^(\d+)(th|st|nd|rd)?/i, Bt = /\d+/i, jt = {
534
492
  /^n/i,
535
493
  /^d/i
536
494
  ]
537
- }, $t = {
495
+ }, Gt = {
538
496
  narrow: /^[smtwf]/i,
539
497
  short: /^(su|mo|tu|we|th|fr|sa)/i,
540
498
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
541
499
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
542
- }, Jt = {
500
+ }, Vt = {
543
501
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
544
502
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
545
- }, Ut = {
503
+ }, $t = {
546
504
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
547
505
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
548
- }, Kt = {
506
+ }, Jt = {
549
507
  any: {
550
508
  am: /^a/i,
551
509
  pm: /^p/i,
@@ -556,99 +514,99 @@ const Lt = /^(\d+)(th|st|nd|rd)?/i, Bt = /\d+/i, jt = {
556
514
  evening: /evening/i,
557
515
  night: /night/i
558
516
  }
559
- }, Zt = {
560
- ordinalNumber: Ht({
561
- matchPattern: Lt,
562
- parsePattern: Bt,
517
+ }, Ut = {
518
+ ordinalNumber: _t({
519
+ matchPattern: Ht,
520
+ parsePattern: Rt,
563
521
  valueCallback: (t) => parseInt(t, 10)
564
522
  }),
565
- era: S({
566
- matchPatterns: jt,
523
+ era: k({
524
+ matchPatterns: Lt,
567
525
  defaultMatchWidth: "wide",
568
- parsePatterns: It,
526
+ parsePatterns: jt,
569
527
  defaultParseWidth: "any"
570
528
  }),
571
- quarter: S({
572
- matchPatterns: At,
529
+ quarter: k({
530
+ matchPatterns: It,
573
531
  defaultMatchWidth: "wide",
574
532
  parsePatterns: Qt,
575
533
  defaultParseWidth: "any",
576
534
  valueCallback: (t) => t + 1
577
535
  }),
578
- month: S({
579
- matchPatterns: Gt,
536
+ month: k({
537
+ matchPatterns: At,
580
538
  defaultMatchWidth: "wide",
581
- parsePatterns: Vt,
539
+ parsePatterns: Bt,
582
540
  defaultParseWidth: "any"
583
541
  }),
584
- day: S({
585
- matchPatterns: $t,
542
+ day: k({
543
+ matchPatterns: Gt,
586
544
  defaultMatchWidth: "wide",
587
- parsePatterns: Jt,
545
+ parsePatterns: Vt,
588
546
  defaultParseWidth: "any"
589
547
  }),
590
- dayPeriod: S({
591
- matchPatterns: Ut,
548
+ dayPeriod: k({
549
+ matchPatterns: $t,
592
550
  defaultMatchWidth: "any",
593
- parsePatterns: Kt,
551
+ parsePatterns: Jt,
594
552
  defaultParseWidth: "any"
595
553
  })
596
- }, U = {
554
+ }, G = {
597
555
  code: "en-US",
598
- formatDistance: Ot,
556
+ formatDistance: Dt,
599
557
  formatLong: vt,
600
- formatRelative: Tt,
601
- localize: Rt,
602
- match: Zt,
558
+ formatRelative: pt,
559
+ localize: Ct,
560
+ match: Ut,
603
561
  options: {
604
562
  weekStartsOn: 0,
605
563
  firstWeekContainsDate: 1
606
564
  }
607
565
  };
608
- function zt(t) {
566
+ function Kt(t) {
609
567
  const e = d(t);
610
- return st(e, Dt(e)) + 1;
568
+ return ot(e, bt(e)) + 1;
611
569
  }
612
- function te(t) {
613
- const e = d(t), n = +N(e) - +ct(e);
614
- return Math.round(n / $) + 1;
570
+ function Zt(t) {
571
+ const e = d(t), n = +F(e) - +it(e);
572
+ return Math.round(n / A) + 1;
615
573
  }
616
- function K(t, e) {
617
- var m, w, l, h;
618
- const n = d(t), r = n.getFullYear(), a = W(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((h = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = O(t, 0);
574
+ function V(t, e) {
575
+ var h, w, l, y;
576
+ const n = d(t), r = n.getFullYear(), a = T(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (h = e == null ? void 0 : e.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = D(t, 0);
619
577
  s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
620
- const i = T(s, e), c = O(t, 0);
621
- c.setFullYear(r, 0, o), c.setHours(0, 0, 0, 0);
622
- const f = T(c, e);
578
+ const i = p(s, e), u = D(t, 0);
579
+ u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
580
+ const f = p(u, e);
623
581
  return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= f.getTime() ? r : r - 1;
624
582
  }
625
- function ee(t, e) {
626
- var i, c, f, m;
627
- const n = W(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = K(t, e), o = O(t, 0);
628
- return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), T(o, e);
583
+ function zt(t, e) {
584
+ var i, u, f, h;
585
+ const n = T(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = V(t, e), o = D(t, 0);
586
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), p(o, e);
629
587
  }
630
- function ne(t, e) {
631
- const n = d(t), r = +T(n, e) - +ee(n, e);
632
- return Math.round(r / $) + 1;
588
+ function te(t, e) {
589
+ const n = d(t), r = +p(n, e) - +zt(n, e);
590
+ return Math.round(r / A) + 1;
633
591
  }
634
- function u(t, e) {
592
+ function c(t, e) {
635
593
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
636
594
  return n + r;
637
595
  }
638
- const p = {
596
+ const M = {
639
597
  // Year
640
598
  y(t, e) {
641
599
  const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
642
- return u(e === "yy" ? r % 100 : r, e.length);
600
+ return c(e === "yy" ? r % 100 : r, e.length);
643
601
  },
644
602
  // Month
645
603
  M(t, e) {
646
604
  const n = t.getMonth();
647
- return e === "M" ? String(n + 1) : u(n + 1, 2);
605
+ return e === "M" ? String(n + 1) : c(n + 1, 2);
648
606
  },
649
607
  // Day of the month
650
608
  d(t, e) {
651
- return u(t.getDate(), e.length);
609
+ return c(t.getDate(), e.length);
652
610
  },
653
611
  // AM or PM
654
612
  a(t, e) {
@@ -668,28 +626,28 @@ const p = {
668
626
  },
669
627
  // Hour [1-12]
670
628
  h(t, e) {
671
- return u(t.getHours() % 12 || 12, e.length);
629
+ return c(t.getHours() % 12 || 12, e.length);
672
630
  },
673
631
  // Hour [0-23]
674
632
  H(t, e) {
675
- return u(t.getHours(), e.length);
633
+ return c(t.getHours(), e.length);
676
634
  },
677
635
  // Minute
678
636
  m(t, e) {
679
- return u(t.getMinutes(), e.length);
637
+ return c(t.getMinutes(), e.length);
680
638
  },
681
639
  // Second
682
640
  s(t, e) {
683
- return u(t.getSeconds(), e.length);
641
+ return c(t.getSeconds(), e.length);
684
642
  },
685
643
  // Fraction of second
686
644
  S(t, e) {
687
645
  const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
688
646
  r * Math.pow(10, n - 3)
689
647
  );
690
- return u(a, e.length);
648
+ return c(a, e.length);
691
649
  }
692
- }, x = {
650
+ }, P = {
693
651
  am: "am",
694
652
  pm: "pm",
695
653
  midnight: "midnight",
@@ -698,7 +656,7 @@ const p = {
698
656
  afternoon: "afternoon",
699
657
  evening: "evening",
700
658
  night: "night"
701
- }, A = {
659
+ }, L = {
702
660
  // Era
703
661
  G: function(t, e, n) {
704
662
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -720,21 +678,21 @@ const p = {
720
678
  const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
721
679
  return n.ordinalNumber(a, { unit: "year" });
722
680
  }
723
- return p.y(t, e);
681
+ return M.y(t, e);
724
682
  },
725
683
  // Local week-numbering year
726
684
  Y: function(t, e, n, r) {
727
- const a = K(t, r), o = a > 0 ? a : 1 - a;
685
+ const a = V(t, r), o = a > 0 ? a : 1 - a;
728
686
  if (e === "YY") {
729
687
  const s = o % 100;
730
- return u(s, 2);
688
+ return c(s, 2);
731
689
  }
732
- return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : u(o, e.length);
690
+ return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : c(o, e.length);
733
691
  },
734
692
  // ISO week-numbering year
735
693
  R: function(t, e) {
736
- const n = J(t);
737
- return u(n, e.length);
694
+ const n = B(t);
695
+ return c(n, e.length);
738
696
  },
739
697
  // Extended year. This is a single number designating the year of this calendar system.
740
698
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -747,7 +705,7 @@ const p = {
747
705
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
748
706
  u: function(t, e) {
749
707
  const n = t.getFullYear();
750
- return u(n, e.length);
708
+ return c(n, e.length);
751
709
  },
752
710
  // Quarter
753
711
  Q: function(t, e, n) {
@@ -756,7 +714,7 @@ const p = {
756
714
  case "Q":
757
715
  return String(r);
758
716
  case "QQ":
759
- return u(r, 2);
717
+ return c(r, 2);
760
718
  case "Qo":
761
719
  return n.ordinalNumber(r, { unit: "quarter" });
762
720
  case "QQQ":
@@ -784,7 +742,7 @@ const p = {
784
742
  case "q":
785
743
  return String(r);
786
744
  case "qq":
787
- return u(r, 2);
745
+ return c(r, 2);
788
746
  case "qo":
789
747
  return n.ordinalNumber(r, { unit: "quarter" });
790
748
  case "qqq":
@@ -811,7 +769,7 @@ const p = {
811
769
  switch (e) {
812
770
  case "M":
813
771
  case "MM":
814
- return p.M(t, e);
772
+ return M.M(t, e);
815
773
  case "Mo":
816
774
  return n.ordinalNumber(r + 1, { unit: "month" });
817
775
  case "MMM":
@@ -836,7 +794,7 @@ const p = {
836
794
  case "L":
837
795
  return String(r + 1);
838
796
  case "LL":
839
- return u(r + 1, 2);
797
+ return c(r + 1, 2);
840
798
  case "Lo":
841
799
  return n.ordinalNumber(r + 1, { unit: "month" });
842
800
  case "LLL":
@@ -856,22 +814,22 @@ const p = {
856
814
  },
857
815
  // Local week of year
858
816
  w: function(t, e, n, r) {
859
- const a = ne(t, r);
860
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : u(a, e.length);
817
+ const a = te(t, r);
818
+ return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : c(a, e.length);
861
819
  },
862
820
  // ISO week of year
863
821
  I: function(t, e, n) {
864
- const r = te(t);
865
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : u(r, e.length);
822
+ const r = Zt(t);
823
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : c(r, e.length);
866
824
  },
867
825
  // Day of the month
868
826
  d: function(t, e, n) {
869
- return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : p.d(t, e);
827
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : M.d(t, e);
870
828
  },
871
829
  // Day of year
872
830
  D: function(t, e, n) {
873
- const r = zt(t);
874
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : u(r, e.length);
831
+ const r = Kt(t);
832
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : c(r, e.length);
875
833
  },
876
834
  // Day of week
877
835
  E: function(t, e, n) {
@@ -909,7 +867,7 @@ const p = {
909
867
  case "e":
910
868
  return String(o);
911
869
  case "ee":
912
- return u(o, 2);
870
+ return c(o, 2);
913
871
  case "eo":
914
872
  return n.ordinalNumber(o, { unit: "day" });
915
873
  case "eee":
@@ -942,7 +900,7 @@ const p = {
942
900
  case "c":
943
901
  return String(o);
944
902
  case "cc":
945
- return u(o, e.length);
903
+ return c(o, e.length);
946
904
  case "co":
947
905
  return n.ordinalNumber(o, { unit: "day" });
948
906
  case "ccc":
@@ -975,7 +933,7 @@ const p = {
975
933
  case "i":
976
934
  return String(a);
977
935
  case "ii":
978
- return u(a, e.length);
936
+ return c(a, e.length);
979
937
  case "io":
980
938
  return n.ordinalNumber(a, { unit: "day" });
981
939
  case "iii":
@@ -1033,7 +991,7 @@ const p = {
1033
991
  b: function(t, e, n) {
1034
992
  const r = t.getHours();
1035
993
  let a;
1036
- switch (r === 12 ? a = x.noon : r === 0 ? a = x.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
994
+ switch (r === 12 ? a = P.noon : r === 0 ? a = P.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
1037
995
  case "b":
1038
996
  case "bb":
1039
997
  return n.dayPeriod(a, {
@@ -1062,7 +1020,7 @@ const p = {
1062
1020
  B: function(t, e, n) {
1063
1021
  const r = t.getHours();
1064
1022
  let a;
1065
- switch (r >= 17 ? a = x.evening : r >= 12 ? a = x.afternoon : r >= 4 ? a = x.morning : a = x.night, e) {
1023
+ switch (r >= 17 ? a = P.evening : r >= 12 ? a = P.afternoon : r >= 4 ? a = P.morning : a = P.night, e) {
1066
1024
  case "B":
1067
1025
  case "BB":
1068
1026
  case "BBB":
@@ -1089,33 +1047,33 @@ const p = {
1089
1047
  let r = t.getHours() % 12;
1090
1048
  return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1091
1049
  }
1092
- return p.h(t, e);
1050
+ return M.h(t, e);
1093
1051
  },
1094
1052
  // Hour [0-23]
1095
1053
  H: function(t, e, n) {
1096
- return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : p.H(t, e);
1054
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : M.H(t, e);
1097
1055
  },
1098
1056
  // Hour [0-11]
1099
1057
  K: function(t, e, n) {
1100
1058
  const r = t.getHours() % 12;
1101
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1059
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1102
1060
  },
1103
1061
  // Hour [1-24]
1104
1062
  k: function(t, e, n) {
1105
1063
  let r = t.getHours();
1106
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : u(r, e.length);
1064
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1107
1065
  },
1108
1066
  // Minute
1109
1067
  m: function(t, e, n) {
1110
- return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : p.m(t, e);
1068
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : M.m(t, e);
1111
1069
  },
1112
1070
  // Second
1113
1071
  s: function(t, e, n) {
1114
- return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : p.s(t, e);
1072
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : M.s(t, e);
1115
1073
  },
1116
1074
  // Fraction of second
1117
1075
  S: function(t, e) {
1118
- return p.S(t, e);
1076
+ return M.S(t, e);
1119
1077
  },
1120
1078
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1121
1079
  X: function(t, e, n) {
@@ -1124,14 +1082,14 @@ const p = {
1124
1082
  return "Z";
1125
1083
  switch (e) {
1126
1084
  case "X":
1127
- return G(r);
1085
+ return I(r);
1128
1086
  case "XXXX":
1129
1087
  case "XX":
1130
- return P(r);
1088
+ return O(r);
1131
1089
  case "XXXXX":
1132
1090
  case "XXX":
1133
1091
  default:
1134
- return P(r, ":");
1092
+ return O(r, ":");
1135
1093
  }
1136
1094
  },
1137
1095
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1139,14 +1097,14 @@ const p = {
1139
1097
  const r = t.getTimezoneOffset();
1140
1098
  switch (e) {
1141
1099
  case "x":
1142
- return G(r);
1100
+ return I(r);
1143
1101
  case "xxxx":
1144
1102
  case "xx":
1145
- return P(r);
1103
+ return O(r);
1146
1104
  case "xxxxx":
1147
1105
  case "xxx":
1148
1106
  default:
1149
- return P(r, ":");
1107
+ return O(r, ":");
1150
1108
  }
1151
1109
  },
1152
1110
  // Timezone (GMT)
@@ -1156,10 +1114,10 @@ const p = {
1156
1114
  case "O":
1157
1115
  case "OO":
1158
1116
  case "OOO":
1159
- return "GMT" + Q(r, ":");
1117
+ return "GMT" + j(r, ":");
1160
1118
  case "OOOO":
1161
1119
  default:
1162
- return "GMT" + P(r, ":");
1120
+ return "GMT" + O(r, ":");
1163
1121
  }
1164
1122
  },
1165
1123
  // Timezone (specific non-location)
@@ -1169,35 +1127,35 @@ const p = {
1169
1127
  case "z":
1170
1128
  case "zz":
1171
1129
  case "zzz":
1172
- return "GMT" + Q(r, ":");
1130
+ return "GMT" + j(r, ":");
1173
1131
  case "zzzz":
1174
1132
  default:
1175
- return "GMT" + P(r, ":");
1133
+ return "GMT" + O(r, ":");
1176
1134
  }
1177
1135
  },
1178
1136
  // Seconds timestamp
1179
1137
  t: function(t, e, n) {
1180
1138
  const r = Math.trunc(t.getTime() / 1e3);
1181
- return u(r, e.length);
1139
+ return c(r, e.length);
1182
1140
  },
1183
1141
  // Milliseconds timestamp
1184
1142
  T: function(t, e, n) {
1185
1143
  const r = t.getTime();
1186
- return u(r, e.length);
1144
+ return c(r, e.length);
1187
1145
  }
1188
1146
  };
1189
- function Q(t, e = "") {
1147
+ function j(t, e = "") {
1190
1148
  const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
1191
- return o === 0 ? n + String(a) : n + String(a) + e + u(o, 2);
1149
+ return o === 0 ? n + String(a) : n + String(a) + e + c(o, 2);
1192
1150
  }
1193
- function G(t, e) {
1194
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + u(Math.abs(t) / 60, 2) : P(t, e);
1151
+ function I(t, e) {
1152
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) : O(t, e);
1195
1153
  }
1196
- function P(t, e = "") {
1197
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = u(Math.trunc(r / 60), 2), o = u(r % 60, 2);
1154
+ function O(t, e = "") {
1155
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = c(Math.trunc(r / 60), 2), o = c(r % 60, 2);
1198
1156
  return n + a + e + o;
1199
1157
  }
1200
- const V = (t, e) => {
1158
+ const Q = (t, e) => {
1201
1159
  switch (t) {
1202
1160
  case "P":
1203
1161
  return e.date({ width: "short" });
@@ -1209,7 +1167,7 @@ const V = (t, e) => {
1209
1167
  default:
1210
1168
  return e.date({ width: "full" });
1211
1169
  }
1212
- }, Z = (t, e) => {
1170
+ }, $ = (t, e) => {
1213
1171
  switch (t) {
1214
1172
  case "p":
1215
1173
  return e.time({ width: "short" });
@@ -1221,10 +1179,10 @@ const V = (t, e) => {
1221
1179
  default:
1222
1180
  return e.time({ width: "full" });
1223
1181
  }
1224
- }, re = (t, e) => {
1182
+ }, ee = (t, e) => {
1225
1183
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1226
1184
  if (!a)
1227
- return V(t, e);
1185
+ return Q(t, e);
1228
1186
  let o;
1229
1187
  switch (r) {
1230
1188
  case "P":
@@ -1241,196 +1199,172 @@ const V = (t, e) => {
1241
1199
  o = e.dateTime({ width: "full" });
1242
1200
  break;
1243
1201
  }
1244
- return o.replace("{{date}}", V(r, e)).replace("{{time}}", Z(a, e));
1245
- }, ae = {
1246
- p: Z,
1247
- P: re
1248
- }, oe = /^D+$/, ie = /^Y+$/, se = ["D", "DD", "YY", "YYYY"];
1249
- function ce(t) {
1250
- return oe.test(t);
1202
+ return o.replace("{{date}}", Q(r, e)).replace("{{time}}", $(a, e));
1203
+ }, ne = {
1204
+ p: $,
1205
+ P: ee
1206
+ }, re = /^D+$/, ae = /^Y+$/, oe = ["D", "DD", "YY", "YYYY"];
1207
+ function ie(t) {
1208
+ return re.test(t);
1251
1209
  }
1252
- function ue(t) {
1253
- return ie.test(t);
1210
+ function se(t) {
1211
+ return ae.test(t);
1254
1212
  }
1255
- function de(t, e, n) {
1256
- const r = fe(t, e, n);
1257
- if (console.warn(r), se.includes(t))
1258
- throw new RangeError(r);
1213
+ function ce(t, e, n) {
1214
+ const r = ue(t, e, n);
1215
+ if (console.warn(r), oe.includes(t)) throw new RangeError(r);
1259
1216
  }
1260
- function fe(t, e, n) {
1217
+ function ue(t, e, n) {
1261
1218
  const r = t[0] === "Y" ? "years" : "days of the month";
1262
1219
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1263
1220
  }
1264
- const me = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, le = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, he = /^'([^]*?)'?$/, ge = /''/g, we = /[a-zA-Z]/;
1265
- function ye(t, e, n) {
1266
- var m, w, l, h, y, D, _, H;
1267
- const r = W(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? U, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : w.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((D = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : D.weekStartsOn) ?? r.weekStartsOn ?? ((H = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : H.weekStartsOn) ?? 0, i = d(t);
1268
- if (!ft(i))
1221
+ const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, he = /^'([^]*?)'?$/, le = /''/g, me = /[a-zA-Z]/;
1222
+ function ge(t, e, n) {
1223
+ var h, w, l, y;
1224
+ const r = T(), a = r.locale ?? G, o = r.firstWeekContainsDate ?? ((w = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((y = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : y.weekStartsOn) ?? 0, i = d(t);
1225
+ if (!ut(i))
1269
1226
  throw new RangeError("Invalid time value");
1270
- let c = e.match(le).map((b) => {
1271
- const g = b[0];
1227
+ let u = e.match(fe).map((m) => {
1228
+ const g = m[0];
1272
1229
  if (g === "p" || g === "P") {
1273
- const q = ae[g];
1274
- return q(b, a.formatLong);
1230
+ const E = ne[g];
1231
+ return E(m, a.formatLong);
1275
1232
  }
1276
- return b;
1277
- }).join("").match(me).map((b) => {
1278
- if (b === "''")
1233
+ return m;
1234
+ }).join("").match(de).map((m) => {
1235
+ if (m === "''")
1279
1236
  return { isToken: !1, value: "'" };
1280
- const g = b[0];
1237
+ const g = m[0];
1281
1238
  if (g === "'")
1282
- return { isToken: !1, value: be(b) };
1283
- if (A[g])
1284
- return { isToken: !0, value: b };
1285
- if (g.match(we))
1239
+ return { isToken: !1, value: we(m) };
1240
+ if (L[g])
1241
+ return { isToken: !0, value: m };
1242
+ if (g.match(me))
1286
1243
  throw new RangeError(
1287
1244
  "Format string contains an unescaped latin alphabet character `" + g + "`"
1288
1245
  );
1289
- return { isToken: !1, value: b };
1246
+ return { isToken: !1, value: m };
1290
1247
  });
1291
- a.localize.preprocessor && (c = a.localize.preprocessor(i, c));
1248
+ a.localize.preprocessor && (u = a.localize.preprocessor(i, u));
1292
1249
  const f = {
1293
1250
  firstWeekContainsDate: o,
1294
1251
  weekStartsOn: s,
1295
1252
  locale: a
1296
1253
  };
1297
- return c.map((b) => {
1298
- if (!b.isToken)
1299
- return b.value;
1300
- const g = b.value;
1301
- (!(n != null && n.useAdditionalWeekYearTokens) && ue(g) || !(n != null && n.useAdditionalDayOfYearTokens) && ce(g)) && de(g, e, String(t));
1302
- const q = A[g[0]];
1303
- return q(i, g, a.localize, f);
1254
+ return u.map((m) => {
1255
+ if (!m.isToken) return m.value;
1256
+ const g = m.value;
1257
+ (se(g) || ie(g)) && ce(g, e, String(t));
1258
+ const E = L[g[0]];
1259
+ return E(i, g, a.localize, f);
1304
1260
  }).join("");
1305
1261
  }
1306
- function be(t) {
1262
+ function we(t) {
1307
1263
  const e = t.match(he);
1308
- return e ? e[1].replace(ge, "'") : t;
1264
+ return e ? e[1].replace(le, "'") : t;
1309
1265
  }
1310
- function Me(t, e, n) {
1311
- const r = W(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? U, o = 2520, s = F(t, e);
1266
+ function ye(t, e, n) {
1267
+ const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? G, o = 2520, s = Y(t, e);
1312
1268
  if (isNaN(s))
1313
1269
  throw new RangeError("Invalid time value");
1314
1270
  const i = Object.assign({}, n, {
1315
1271
  addSuffix: n == null ? void 0 : n.addSuffix,
1316
1272
  comparison: s
1317
1273
  });
1318
- let c, f;
1319
- s > 0 ? (c = d(e), f = d(t)) : (c = d(t), f = d(e));
1320
- const m = Mt(f, c), w = (C(f) - C(c)) / 1e3, l = Math.round((m - w) / 60);
1321
- let h;
1274
+ let u, f;
1275
+ s > 0 ? (u = d(e), f = d(t)) : (u = d(t), f = d(e));
1276
+ const h = yt(f, u), w = (N(f) - N(u)) / 1e3, l = Math.round((h - w) / 60);
1277
+ let y;
1322
1278
  if (l < 2)
1323
- return n != null && n.includeSeconds ? m < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : m < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : m < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : m < 40 ? a.formatDistance("halfAMinute", 0, i) : m < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : l === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", l, i);
1279
+ return n != null && n.includeSeconds ? h < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : h < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : h < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : h < 40 ? a.formatDistance("halfAMinute", 0, i) : h < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : l === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", l, i);
1324
1280
  if (l < 45)
1325
1281
  return a.formatDistance("xMinutes", l, i);
1326
1282
  if (l < 90)
1327
1283
  return a.formatDistance("aboutXHours", 1, i);
1328
- if (l < j) {
1329
- const y = Math.round(l / 60);
1330
- return a.formatDistance("aboutXHours", y, i);
1284
+ if (l < H) {
1285
+ const m = Math.round(l / 60);
1286
+ return a.formatDistance("aboutXHours", m, i);
1331
1287
  } else {
1332
1288
  if (l < o)
1333
1289
  return a.formatDistance("xDays", 1, i);
1334
- if (l < E) {
1335
- const y = Math.round(l / j);
1336
- return a.formatDistance("xDays", y, i);
1337
- } else if (l < E * 2)
1338
- return h = Math.round(l / E), a.formatDistance("aboutXMonths", h, i);
1290
+ if (l < W) {
1291
+ const m = Math.round(l / H);
1292
+ return a.formatDistance("xDays", m, i);
1293
+ } else if (l < W * 2)
1294
+ return y = Math.round(l / W), a.formatDistance("aboutXMonths", y, i);
1339
1295
  }
1340
- if (h = bt(f, c), h < 12) {
1341
- const y = Math.round(l / E);
1342
- return a.formatDistance("xMonths", y, i);
1296
+ if (y = wt(f, u), y < 12) {
1297
+ const m = Math.round(l / W);
1298
+ return a.formatDistance("xMonths", m, i);
1343
1299
  } else {
1344
- const y = h % 12, D = Math.trunc(h / 12);
1345
- return y < 3 ? a.formatDistance("aboutXYears", D, i) : y < 9 ? a.formatDistance("overXYears", D, i) : a.formatDistance("almostXYears", D + 1, i);
1300
+ const m = y % 12, g = Math.trunc(y / 12);
1301
+ return m < 3 ? a.formatDistance("aboutXYears", g, i) : m < 9 ? a.formatDistance("overXYears", g, i) : a.formatDistance("almostXYears", g + 1, i);
1346
1302
  }
1347
1303
  }
1348
- function De(t, e) {
1349
- return Me(t, ut(t), e);
1304
+ function be(t, e) {
1305
+ return ye(t, st(t), e);
1350
1306
  }
1351
- const pe = (t, e) => {
1307
+ const Me = (t, e) => {
1352
1308
  switch (t) {
1353
- case k.error:
1309
+ case x.warning:
1310
+ return e.colors.status.warning.onsurface;
1311
+ case x.error:
1354
1312
  return e.colors.status.error.onsurface;
1355
- case k.success:
1313
+ case x.success:
1356
1314
  return e.colors.status.success.onsurface;
1357
- case k.warning:
1358
- return e.colors.status.warning.onsurface;
1359
- case k.generic:
1315
+ case x.generic:
1360
1316
  return e.colors.status.generic.onsurface;
1361
- case k.info:
1317
+ case x.info:
1362
1318
  default:
1363
1319
  return e.colors.status.info.onsurface;
1364
1320
  }
1365
- }, vn = ({
1321
+ }, _e = ({
1366
1322
  message: t,
1367
- state: e = k.info,
1323
+ state: e = x.info,
1368
1324
  date: n,
1369
1325
  action: r,
1370
1326
  onArrowClick: a,
1371
- size: o = B.standard,
1327
+ size: o = _.standard,
1372
1328
  isUnread: s = !0,
1373
1329
  hasFormattedDate: i = !1
1374
1330
  }) => {
1375
- const c = tt();
1376
- pe(e, c);
1377
- const f = c.colors.interactive.utility.border, m = c.colors.interactive.utility.onsurface, w = " • ", l = n ? ye(new Date(n), "MMM d, h:mma") : "", h = n ? De(new Date(n), { addSuffix: !0 }) : "", y = i ? `${h}${w}${l}` : h, D = o === B.small ? Y.body1 : Y.body2;
1378
- return /* @__PURE__ */ L(et, { state: e, size: o, children: [
1379
- s ? /* @__PURE__ */ M(nt, { state: e, size: o }) : /* @__PURE__ */ M("div", { style: { width: 8 } }),
1380
- /* @__PURE__ */ M(z, { state: e }),
1381
- /* @__PURE__ */ M(rt, { size: o, children: /* @__PURE__ */ L("div", { children: [
1382
- /* @__PURE__ */ M(
1383
- R,
1331
+ const u = U();
1332
+ Me(e, u), u.colors.interactive.utility.border, u.colors.interactive.utility.onsurface;
1333
+ const f = " • ", h = n ? ge(new Date(n), "MMM d, h:mma") : "", w = n ? be(new Date(n), { addSuffix: !0 }) : "", l = i ? `${w}${f}${h}` : w, y = o === _.small ? S.body1 : S.body2;
1334
+ return /* @__PURE__ */ X(K, { state: e, size: o, isUnread: s, children: [
1335
+ s ? /* @__PURE__ */ b(Z, { state: e, size: o }) : /* @__PURE__ */ b("div", { style: { width: 8 } }),
1336
+ /* @__PURE__ */ b(J, { state: e }),
1337
+ /* @__PURE__ */ b(z, { size: o, children: /* @__PURE__ */ X("div", { children: [
1338
+ /* @__PURE__ */ b(
1339
+ C,
1384
1340
  {
1385
- variant: Y.body3,
1386
- color: c.colors.onsurface["copy-dark"],
1341
+ variant: S.body3,
1342
+ color: u.colors.onsurface["copy-dark"],
1343
+ isText: !0,
1387
1344
  children: t
1388
1345
  }
1389
1346
  ),
1390
- /* @__PURE__ */ M("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ M(
1391
- R,
1347
+ /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ b(
1348
+ C,
1392
1349
  {
1393
- variant: D,
1394
- color: c.colors.onsurface["copy-light"],
1395
- children: y
1350
+ variant: y,
1351
+ color: u.colors.onsurface["copy-light"],
1352
+ isText: !0,
1353
+ children: l
1396
1354
  }
1397
1355
  ) })
1398
1356
  ] }) }),
1399
- r ? /* @__PURE__ */ M(
1400
- "button",
1401
- {
1402
- onClick: r.onClick,
1403
- style: {
1404
- border: `1px solid ${f}`,
1405
- background: "none",
1406
- cursor: "pointer",
1407
- cursorEvents: "all",
1408
- color: m,
1409
- borderRadius: c.borderRadius.BorderRadiusSm,
1410
- paddingTop: "2px",
1411
- paddingBottom: "2px",
1412
- paddingLeft: c.components.utilityButton.padding.horPadding,
1413
- paddingRight: c.components.utilityButton.padding.horPadding
1414
- },
1415
- children: /* @__PURE__ */ M(R, { variant: Y.body1, children: r.text })
1416
- }
1417
- ) : null,
1418
- a ? /* @__PURE__ */ M(
1419
- "button",
1357
+ r ? /* @__PURE__ */ b(tt, { onClick: r.onClick, children: /* @__PURE__ */ b(
1358
+ C,
1420
1359
  {
1421
- onClick: a,
1422
- style: {
1423
- textDecoration: "underline",
1424
- border: "none",
1425
- background: "none",
1426
- cursor: "pointer",
1427
- cursorEvents: "all"
1428
- },
1429
- children: /* @__PURE__ */ M(at, { style: { fontSize: 18 } })
1360
+ variant: S.body1,
1361
+ isText: !0,
1362
+ children: r.label
1430
1363
  }
1431
- ) : null
1364
+ ) }) : null,
1365
+ a ? /* @__PURE__ */ b(et, { onClick: a, children: /* @__PURE__ */ b(nt, {}) }) : null
1432
1366
  ] });
1433
1367
  };
1434
1368
  export {
1435
- vn as default
1369
+ _e as default
1436
1370
  };