@nxgt/material 2.15.0 → 2.17.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/README.md +9 -4
  3. package/dist/{_Uint8Array-QCcRMhXd.js → _Uint8Array-C7apDrb7.js} +1 -1
  4. package/dist/{_overRest-C21ZmKyH.js → _overRest-CCAbV-eT.js} +1 -1
  5. package/dist/async-slice-Cuekts5f.js +459 -0
  6. package/dist/{blockDiagram-BEXU5L5S-BozTHxCb.js → blockDiagram-BEXU5L5S-K2MjXCm9.js} +2 -2
  7. package/dist/{chunk-3FUC2YCW-zWkkqKwC.js → chunk-3FUC2YCW-6KyD6CAZ.js} +2 -2
  8. package/dist/{chunk-7M6MHVWA-CGHIsno5.js → chunk-7M6MHVWA-CNWcBB_6.js} +1 -1
  9. package/dist/{chunk-GNY47TPC-BWB3R7nr.js → chunk-GNY47TPC-DdqgSBxM.js} +4 -4
  10. package/dist/{chunk-NETBCI7D-DwmNwFxb.js → chunk-NETBCI7D-ZnunhYtw.js} +1 -1
  11. package/dist/{chunk-Z7XXMR3K-0DGn7Rxi.js → chunk-Z7XXMR3K-C8MhuVIi.js} +1 -1
  12. package/dist/{classDiagram-v2-NBCMYWYE-BERam5ND.js → classDiagram-v2-NBCMYWYE-ByUAGkfa.js} +2 -2
  13. package/dist/components/components.css +1 -0
  14. package/dist/components/print-only.css +44 -0
  15. package/dist/{components-B-xPQ6XX.js → components-CIYQrI45.js} +59481 -58962
  16. package/dist/components.js +6 -6
  17. package/dist/{dagre-6A5THRUB-CnIZQoNt.js → dagre-6A5THRUB-C2vz5UY9.js} +64 -64
  18. package/dist/{diagram-22UHCM2B-DN4-okl5.js → diagram-22UHCM2B-DREk9ku4.js} +2 -2
  19. package/dist/{diagram-3UASUU5V-DcrNf7TY.js → diagram-3UASUU5V-CYkPaos5.js} +1 -1
  20. package/dist/dnd.js +1 -1
  21. package/dist/{elk-276RUBZZ-B7yctkbs.js → elk-276RUBZZ-CK4KoCtK.js} +3 -3
  22. package/dist/{erDiagram-OPXOYQCR-BVrTNrkn.js → erDiagram-OPXOYQCR-CTfn8QUl.js} +2 -2
  23. package/dist/{field-blur-DDfQkuSJ.js → field-blur-3RW0mJb2.js} +2 -2
  24. package/dist/{flowDiagram-KWPJA3E3-BKxvqo0x.js → flowDiagram-KWPJA3E3-CDzuzre6.js} +3 -3
  25. package/dist/{ganttDiagram-FUAMR5RP-Cv9W4LOS.js → ganttDiagram-FUAMR5RP-Ci-9ZJz5.js} +1 -1
  26. package/dist/{graphlib-CbcZi5bx.js → graphlib-DxjKaXeR.js} +42 -42
  27. package/dist/hooks.js +38 -26
  28. package/dist/{i18n-provider-D5hkauu6.js → i18n-provider-Dv9ZSmgO.js} +1 -1
  29. package/dist/i18n.js +6 -6
  30. package/dist/{isArrayLikeObject-COiPdhFP.js → isArrayLikeObject-H8k6W51O.js} +3 -3
  31. package/dist/{isEmpty-B7UlCLih.js → isEmpty-B0Bavg-e.js} +9 -9
  32. package/dist/{journeyDiagram-ZHPQQLJL-BwSv9L1j.js → journeyDiagram-ZHPQQLJL-CwFYd51O.js} +1 -1
  33. package/dist/lib/components/ui/actions/copy-button/use-copy-status.d.ts +13 -0
  34. package/dist/lib/components/ui/display/chip/chip.d.ts +18 -3
  35. package/dist/lib/components/ui/display/chip/chip.variants.d.ts +10 -0
  36. package/dist/lib/components/ui/display/chip/index.d.ts +1 -0
  37. package/dist/lib/components/ui/display/chip/partials/chip-dismiss-button.d.ts +3 -1
  38. package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret.d.ts +30 -0
  39. package/dist/lib/components/ui/display/enrolment-secret/index.d.ts +2 -0
  40. package/dist/lib/components/ui/display/enrolment-secret/use-enrolment-secret-labels.d.ts +11 -0
  41. package/dist/lib/components/ui/display/index.d.ts +2 -0
  42. package/dist/lib/components/ui/display/recovery-codes/index.d.ts +4 -0
  43. package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-actions.d.ts +14 -0
  44. package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-confirm.d.ts +13 -0
  45. package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-list.d.ts +5 -0
  46. package/dist/lib/components/ui/display/recovery-codes/recovery-codes.d.ts +8 -0
  47. package/dist/lib/components/ui/display/recovery-codes/types.d.ts +64 -0
  48. package/dist/lib/components/ui/display/recovery-codes/use-recovery-codes-labels.d.ts +7 -0
  49. package/dist/lib/components/ui/fields/form-section/form-section-classes.d.ts +30 -0
  50. package/dist/lib/components/ui/fields/form-section/form-section.d.ts +25 -0
  51. package/dist/lib/components/ui/fields/form-section/index.d.ts +1 -0
  52. package/dist/lib/components/ui/fields/index.d.ts +1 -0
  53. package/dist/lib/components/ui/forms/index.d.ts +1 -0
  54. package/dist/lib/components/ui/forms/use-code-resolver.d.ts +42 -0
  55. package/dist/lib/components/ui/layout/auth-card/auth-card-notice.d.ts +18 -0
  56. package/dist/lib/components/ui/layout/auth-card/auth-card.d.ts +35 -0
  57. package/dist/lib/components/ui/layout/auth-card/index.d.ts +1 -0
  58. package/dist/lib/components/ui/layout/index.d.ts +1 -0
  59. package/dist/lib/components/ui/selection/select-field/select-field.d.ts +5 -2
  60. package/dist/lib/hooks/index.d.ts +2 -0
  61. package/dist/lib/hooks/use-focus-on-mount.d.ts +24 -0
  62. package/dist/lib/hooks/use-submit-once.d.ts +32 -0
  63. package/dist/lib/i18n/resources/en/en.d.ts +21 -0
  64. package/dist/lib/i18n/resources/en/material.json.d.ts +22 -1
  65. package/dist/lib/i18n/resources/fr/fr.d.ts +21 -0
  66. package/dist/lib/i18n/resources/fr/material.json.d.ts +22 -1
  67. package/dist/lib/i18n/resources/resources.d.ts +42 -0
  68. package/dist/lib/i18n/translator.d.ts +1 -1
  69. package/dist/lib/lib/index.d.ts +1 -0
  70. package/dist/lib.js +58 -102
  71. package/dist/main.js +16 -16
  72. package/dist/map.js +22 -22
  73. package/dist/material.css +1 -1
  74. package/dist/{merge-KEf_u3Zy.js → merge-Js8537dg.js} +4 -4
  75. package/dist/{mermaid.core-D_eXACPr.js → mermaid.core-DW7UlwJu.js} +21 -21
  76. package/dist/{mindmap-definition-NLK3R4M7-GMAPXP2T.js → mindmap-definition-NLK3R4M7-CsLyIyEF.js} +2 -2
  77. package/dist/{pieDiagram-5QR66LMP--qZHRFqG.js → pieDiagram-5QR66LMP-C-dfffj5.js} +1 -1
  78. package/dist/print.js +2 -2
  79. package/dist/{quadrantDiagram-O4NWA36T-BxFGymBB.js → quadrantDiagram-O4NWA36T-DZ0TivLD.js} +1 -1
  80. package/dist/{requirementDiagram-PLB6GJNP-D4aL7HiM.js → requirementDiagram-PLB6GJNP-3brF-h1L.js} +2 -2
  81. package/dist/{sankeyDiagram-IPEJSGJF-zX1FL2aL.js → sankeyDiagram-IPEJSGJF-BY-LLyiZ.js} +1 -1
  82. package/dist/{sortable-provider-C8mr3XP2.js → sortable-provider-CUT5Wfdl.js} +1 -1
  83. package/dist/{stateDiagram-v2-GCMORJYK-CDm1mDv2.js → stateDiagram-v2-GCMORJYK-BGavr7Nm.js} +2 -2
  84. package/dist/{stored-language-g121Yv0w.js → stored-language-BKoohv2_.js} +44 -2
  85. package/dist/{swimlanes-2SLR337P-DNwIhCCu.js → swimlanes-2SLR337P-B6Fkr7-U.js} +3 -3
  86. package/dist/{swimlanesDiagram-TC7HE7FX-BaR9zAzq.js → swimlanesDiagram-TC7HE7FX-Dt6Tqj4h.js} +3 -3
  87. package/dist/{timeline-definition-EJHVYXUP-B6Xd8Spe.js → timeline-definition-EJHVYXUP-CE-3KwYd.js} +1 -1
  88. package/dist/{translate-material-D3Hp_AI5.js → translate-material-CCJg3yfc.js} +2 -2
  89. package/dist/{translator-BMFC0lBV.js → translator-DEde7BKz.js} +1 -1
  90. package/dist/{use-heading-spy-wlOv87q3.js → use-heading-spy-XkSExwoT.js} +67 -59
  91. package/dist/{use-material-translation-BGFp1yXp.js → use-material-translation-Cndoq_iK.js} +2 -2
  92. package/dist/{usecaseDiagram-POWQR4AR-XW5of8Kj.js → usecaseDiagram-POWQR4AR-CPOCe5We.js} +2 -2
  93. package/dist/{xychartDiagram-PMCCYNJV-DTV6AzhO.js → xychartDiagram-PMCCYNJV-Cleaihn8.js} +1 -1
  94. package/docs/components/README.md +3 -3
  95. package/docs/components/data-display.md +111 -2
  96. package/docs/components/data-table-filter-and-lists.md +5 -2
  97. package/docs/components/form-fields.md +78 -0
  98. package/docs/components/navigation-and-layout.md +51 -0
  99. package/docs/components/selection-and-choice.md +2 -1
  100. package/docs/guides/forms.md +111 -0
  101. package/docs/guides/helpers.md +81 -0
  102. package/docs/guides/i18n.md +17 -0
  103. package/docs/guides/printing.md +27 -0
  104. package/docs/previews/data-display-enrolmentsecret.webp +0 -0
  105. package/docs/previews/data-display-recoverycodes.webp +0 -0
  106. package/docs/previews/form-fields-formsection.webp +0 -0
  107. package/docs/previews/navigation-layout-authcard.webp +0 -0
  108. package/docs/roadmap.md +48 -15
  109. package/docs/troubleshooting.md +112 -0
  110. package/lib/components/components.css +1 -0
  111. package/lib/components/print-only.css +44 -0
  112. package/package.json +2 -2
  113. package/dist/async-slice-TBZ6Taw2.js +0 -411
@@ -1,411 +0,0 @@
1
- import { C as e, S as t, h as n, l as r, m as i, p as a, u as o, v as s, w as c, x as l } from "./translator-BMFC0lBV.js";
2
- import { a as u, c as d, d as f, i as p, n as m, r as h, t as g, u as _ } from "./_Uint8Array-QCcRMhXd.js";
3
- import { L as v } from "./number.utils-BiBN2hWJ.js";
4
- import { Suspense as y, createContext as b, createElement as x, useContext as ee, useEffect as te, useMemo as S, useReducer as ne, useState as re, useSyncExternalStore as ie } from "react";
5
- import { asyncThunkCreator as ae, buildCreateSlice as oe } from "@reduxjs/toolkit";
6
- import { useDispatch as se } from "react-redux";
7
- //#region ../../node_modules/lodash-es/_WeakMap.js
8
- var C = i(c, "WeakMap"), ce = h(Object.keys, Object), le = Object.prototype.hasOwnProperty;
9
- function ue(e) {
10
- if (!_(e)) return ce(e);
11
- var t = [];
12
- for (var n in Object(e)) le.call(e, n) && n != "constructor" && t.push(n);
13
- return t;
14
- }
15
- //#endregion
16
- //#region ../../node_modules/lodash-es/keys.js
17
- function de(e) {
18
- return f(e) ? p(e) : ue(e);
19
- }
20
- //#endregion
21
- //#region ../../node_modules/lodash-es/_arrayPush.js
22
- function w(e, t) {
23
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
24
- return e;
25
- }
26
- //#endregion
27
- //#region ../../node_modules/lodash-es/_arrayFilter.js
28
- function T(e, t) {
29
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
30
- var o = e[n];
31
- t(o, n, e) && (a[i++] = o);
32
- }
33
- return a;
34
- }
35
- //#endregion
36
- //#region ../../node_modules/lodash-es/stubArray.js
37
- function E() {
38
- return [];
39
- }
40
- //#endregion
41
- //#region ../../node_modules/lodash-es/_getSymbols.js
42
- var fe = Object.prototype.propertyIsEnumerable, D = Object.getOwnPropertySymbols, O = D ? function(e) {
43
- return e == null ? [] : (e = Object(e), T(D(e), function(t) {
44
- return fe.call(e, t);
45
- }));
46
- } : E;
47
- //#endregion
48
- //#region ../../node_modules/lodash-es/_baseGetAllKeys.js
49
- function k(e, t, n) {
50
- var r = t(e);
51
- return s(e) ? r : w(r, n(e));
52
- }
53
- //#endregion
54
- //#region ../../node_modules/lodash-es/_getAllKeys.js
55
- function A(e) {
56
- return k(e, de, O);
57
- }
58
- //#endregion
59
- //#region ../../node_modules/lodash-es/_DataView.js
60
- var j = i(c, "DataView"), M = i(c, "Promise"), N = i(c, "Set"), P = "[object Map]", pe = "[object Object]", F = "[object Promise]", I = "[object Set]", L = "[object WeakMap]", R = "[object DataView]", me = n(j), he = n(o), ge = n(M), _e = n(N), ve = n(C), z = t;
61
- (j && z(new j(/* @__PURE__ */ new ArrayBuffer(1))) != R || o && z(new o()) != P || M && z(M.resolve()) != F || N && z(new N()) != I || C && z(new C()) != L) && (z = function(e) {
62
- var r = t(e), i = r == pe ? e.constructor : void 0, a = i ? n(i) : "";
63
- if (a) switch (a) {
64
- case me: return R;
65
- case he: return P;
66
- case ge: return F;
67
- case _e: return I;
68
- case ve: return L;
69
- }
70
- return r;
71
- });
72
- var B = z, ye = "__lodash_hash_undefined__";
73
- function be(e) {
74
- return this.__data__.set(e, ye), this;
75
- }
76
- //#endregion
77
- //#region ../../node_modules/lodash-es/_setCacheHas.js
78
- function xe(e) {
79
- return this.__data__.has(e);
80
- }
81
- //#endregion
82
- //#region ../../node_modules/lodash-es/_SetCache.js
83
- function V(e) {
84
- var t = -1, n = e == null ? 0 : e.length;
85
- for (this.__data__ = new r(); ++t < n;) this.add(e[t]);
86
- }
87
- V.prototype.add = V.prototype.push = be, V.prototype.has = xe;
88
- //#endregion
89
- //#region ../../node_modules/lodash-es/_arraySome.js
90
- function Se(e, t) {
91
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
92
- return !1;
93
- }
94
- //#endregion
95
- //#region ../../node_modules/lodash-es/_cacheHas.js
96
- function H(e, t) {
97
- return e.has(t);
98
- }
99
- //#endregion
100
- //#region ../../node_modules/lodash-es/_equalArrays.js
101
- var Ce = 1, we = 2;
102
- function U(e, t, n, r, i, a) {
103
- var o = n & Ce, s = e.length, c = t.length;
104
- if (s != c && !(o && c > s)) return !1;
105
- var l = a.get(e), u = a.get(t);
106
- if (l && u) return l == t && u == e;
107
- var d = -1, f = !0, p = n & we ? new V() : void 0;
108
- for (a.set(e, t), a.set(t, e); ++d < s;) {
109
- var m = e[d], h = t[d];
110
- if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
111
- if (g !== void 0) {
112
- if (g) continue;
113
- f = !1;
114
- break;
115
- }
116
- if (p) {
117
- if (!Se(t, function(e, t) {
118
- if (!H(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
119
- })) {
120
- f = !1;
121
- break;
122
- }
123
- } else if (!(m === h || i(m, h, n, r, a))) {
124
- f = !1;
125
- break;
126
- }
127
- }
128
- return a.delete(e), a.delete(t), f;
129
- }
130
- //#endregion
131
- //#region ../../node_modules/lodash-es/_mapToArray.js
132
- function Te(e) {
133
- var t = -1, n = Array(e.size);
134
- return e.forEach(function(e, r) {
135
- n[++t] = [r, e];
136
- }), n;
137
- }
138
- //#endregion
139
- //#region ../../node_modules/lodash-es/_setToArray.js
140
- function W(e) {
141
- var t = -1, n = Array(e.size);
142
- return e.forEach(function(e) {
143
- n[++t] = e;
144
- }), n;
145
- }
146
- //#endregion
147
- //#region ../../node_modules/lodash-es/_equalByTag.js
148
- var Ee = 1, De = 2, Oe = "[object Boolean]", ke = "[object Date]", Ae = "[object Error]", je = "[object Map]", Me = "[object Number]", Ne = "[object RegExp]", Pe = "[object Set]", Fe = "[object String]", Ie = "[object Symbol]", Le = "[object ArrayBuffer]", Re = "[object DataView]", G = e ? e.prototype : void 0, K = G ? G.valueOf : void 0;
149
- function ze(e, t, n, r, i, o, s) {
150
- switch (n) {
151
- case Re:
152
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
153
- e = e.buffer, t = t.buffer;
154
- case Le: return !(e.byteLength != t.byteLength || !o(new g(e), new g(t)));
155
- case Oe:
156
- case ke:
157
- case Me: return a(+e, +t);
158
- case Ae: return e.name == t.name && e.message == t.message;
159
- case Ne:
160
- case Fe: return e == t + "";
161
- case je: var c = Te;
162
- case Pe:
163
- var l = r & Ee;
164
- if (c ||= W, e.size != t.size && !l) return !1;
165
- var u = s.get(e);
166
- if (u) return u == t;
167
- r |= De, s.set(e, t);
168
- var d = U(c(e), c(t), r, i, o, s);
169
- return s.delete(e), d;
170
- case Ie: if (K) return K.call(e) == K.call(t);
171
- }
172
- return !1;
173
- }
174
- //#endregion
175
- //#region ../../node_modules/lodash-es/_equalObjects.js
176
- var Be = 1, Ve = Object.prototype.hasOwnProperty;
177
- function He(e, t, n, r, i, a) {
178
- var o = n & Be, s = A(e), c = s.length;
179
- if (c != A(t).length && !o) return !1;
180
- for (var l = c; l--;) {
181
- var u = s[l];
182
- if (!(o ? u in t : Ve.call(t, u))) return !1;
183
- }
184
- var d = a.get(e), f = a.get(t);
185
- if (d && f) return d == t && f == e;
186
- var p = !0;
187
- a.set(e, t), a.set(t, e);
188
- for (var m = o; ++l < c;) {
189
- u = s[l];
190
- var h = e[u], g = t[u];
191
- if (r) var _ = o ? r(g, h, u, t, e, a) : r(h, g, u, e, t, a);
192
- if (!(_ === void 0 ? h === g || i(h, g, n, r, a) : _)) {
193
- p = !1;
194
- break;
195
- }
196
- m ||= u == "constructor";
197
- }
198
- if (p && !m) {
199
- var v = e.constructor, y = t.constructor;
200
- v != y && "constructor" in e && "constructor" in t && !(typeof v == "function" && v instanceof v && typeof y == "function" && y instanceof y) && (p = !1);
201
- }
202
- return a.delete(e), a.delete(t), p;
203
- }
204
- //#endregion
205
- //#region ../../node_modules/lodash-es/_baseIsEqualDeep.js
206
- var Ue = 1, q = "[object Arguments]", J = "[object Array]", Y = "[object Object]", X = Object.prototype.hasOwnProperty;
207
- function We(e, t, n, r, i, a) {
208
- var o = s(e), c = s(t), l = o ? J : B(e), f = c ? J : B(t);
209
- l = l == q ? Y : l, f = f == q ? Y : f;
210
- var p = l == Y, h = f == Y, g = l == f;
211
- if (g && d(e)) {
212
- if (!d(t)) return !1;
213
- o = !0, p = !1;
214
- }
215
- if (g && !p) return a ||= new m(), o || u(e) ? U(e, t, n, r, i, a) : ze(e, t, l, n, r, i, a);
216
- if (!(n & Ue)) {
217
- var _ = p && X.call(e, "__wrapped__"), v = h && X.call(t, "__wrapped__");
218
- if (_ || v) {
219
- var y = _ ? e.value() : e, b = v ? t.value() : t;
220
- return a ||= new m(), i(y, b, n, r, a);
221
- }
222
- }
223
- return g ? (a ||= new m(), He(e, t, n, r, i, a)) : !1;
224
- }
225
- //#endregion
226
- //#region ../../node_modules/lodash-es/_baseIsEqual.js
227
- function Z(e, t, n, r, i) {
228
- return e === t ? !0 : e == null || t == null || !l(e) && !l(t) ? e !== e && t !== t : We(e, t, n, r, Z, i);
229
- }
230
- //#endregion
231
- //#region ../../node_modules/lodash-es/isEqual.js
232
- function Ge(e, t) {
233
- return Z(e, t);
234
- }
235
- //#endregion
236
- //#region ../../node_modules/lodash-es/isNil.js
237
- function Ke(e) {
238
- return e == null;
239
- }
240
- //#endregion
241
- //#region lib/lib/string.utils.ts
242
- function qe(e) {
243
- return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
244
- }
245
- function Je(e) {
246
- return e ? e.toLowerCase().replace(/_/g, "-") : "";
247
- }
248
- function Ye(e, t = ", ") {
249
- return e.filter((e) => !!e).join(t);
250
- }
251
- function Xe(e, t) {
252
- let n = t.trim();
253
- if (!n) return [{
254
- text: e,
255
- match: !1
256
- }];
257
- let r = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(r, "ig"), a = [], o = 0;
258
- for (let t of e.matchAll(i)) {
259
- let n = t.index ?? 0;
260
- n > o && a.push({
261
- text: e.slice(o, n),
262
- match: !1
263
- }), a.push({
264
- text: t[0],
265
- match: !0
266
- }), o = n + t[0].length;
267
- }
268
- return o < e.length && a.push({
269
- text: e.slice(o),
270
- match: !1
271
- }), a.length > 0 ? a : [{
272
- text: e,
273
- match: !1
274
- }];
275
- }
276
- var Ze = {
277
- enumToKebabCase: Je,
278
- joinTruthyParts: Ye,
279
- slugify: qe,
280
- splitMatch: Xe
281
- }, Qe = /* @__PURE__ */ new WeakMap();
282
- function $e(e, t) {
283
- Qe.set(e, t);
284
- }
285
- function et(e) {
286
- return Qe.get(e);
287
- }
288
- //#endregion
289
- //#region lib/lib/redux/use-slice-reducer.ts
290
- function Q(e, t) {
291
- return t ? {
292
- ...e,
293
- ...t
294
- } : e;
295
- }
296
- var tt = "nxgt/useSliceReducer/restore", nt = () => () => {}, rt = () => !1;
297
- function it(e) {
298
- return (t, n) => n.type === tt ? n.payload : e(t, n);
299
- }
300
- function at(e, t) {
301
- let n = et(e), r = ie(nt, rt, () => n !== void 0), [i] = re(r), [a, o] = ne(S(() => it(e.reducer), [e.reducer]), t, (t) => Q(r && n ? n() : e.getInitialState(), t));
302
- return te(() => {
303
- i && o({
304
- type: tt,
305
- payload: Q(e.getInitialState(), t)
306
- });
307
- }, []), [a, S(() => {
308
- let t = {};
309
- for (let n in e.actions) t[n] = (...t) => {
310
- o(e.actions[n](...t));
311
- };
312
- return t;
313
- }, [o, e.actions])];
314
- }
315
- //#endregion
316
- //#region lib/lib/redux/use-slice-selector.ts
317
- function ot(e, t) {
318
- return S(() => t(e), [e, t]);
319
- }
320
- //#endregion
321
- //#region lib/lib/url.utils.ts
322
- function st(e) {
323
- return new URL(e.url).searchParams;
324
- }
325
- function ct(e, t) {
326
- return st(e).get(t);
327
- }
328
- function lt(e) {
329
- return /^(https?:)?\/\//.test(e) || e.startsWith("mailto:");
330
- }
331
- //#endregion
332
- //#region lib/lib/client-only.utils.ts
333
- var ut = b(!1);
334
- function dt(e) {
335
- function t(t) {
336
- let n = ee(ut), r = v();
337
- return !n && !r ? null : x(ut.Provider, { value: !0 }, x(y, { fallback: null }, x(e, t)));
338
- }
339
- return t.displayName = `ClientOnly(${e.displayName ?? e.name ?? "Component"})`, t;
340
- }
341
- //#endregion
342
- //#region ../../node_modules/redux/dist/redux.mjs
343
- function ft(e) {
344
- return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
345
- }
346
- var $ = () => Math.random().toString(36).substring(7).split("").join(".");
347
- `${/* @__PURE__ */ $()}`, `${/* @__PURE__ */ $()}`;
348
- function pt(e) {
349
- if (e === void 0) return "undefined";
350
- if (e === null) return "null";
351
- let t = typeof e;
352
- switch (t) {
353
- case "boolean":
354
- case "string":
355
- case "number":
356
- case "symbol":
357
- case "function": return t;
358
- }
359
- if (Array.isArray(e)) return "array";
360
- if (gt(e)) return "date";
361
- if (ht(e)) return "error";
362
- let n = mt(e);
363
- switch (n) {
364
- case "Symbol":
365
- case "Promise":
366
- case "WeakMap":
367
- case "WeakSet":
368
- case "Map":
369
- case "Set": return n;
370
- }
371
- return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
372
- }
373
- function mt(e) {
374
- return typeof e.constructor == "function" ? e.constructor.name : null;
375
- }
376
- function ht(e) {
377
- return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
378
- }
379
- function gt(e) {
380
- return e instanceof Date || typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
381
- }
382
- function _t(e) {
383
- let t = typeof e;
384
- return process.env.NODE_ENV !== "production" && (t = pt(e)), t;
385
- }
386
- function vt(e, t) {
387
- return function(...n) {
388
- return t(e.apply(this, n));
389
- };
390
- }
391
- function yt(e, t) {
392
- if (typeof e == "function") return vt(e, t);
393
- if (typeof e != "object" || !e) throw Error(process.env.NODE_ENV === "production" ? ft(16) : `bindActionCreators expected an object or a function, but instead received: '${_t(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
394
- let n = {};
395
- for (let r in e) {
396
- let i = e[r];
397
- typeof i == "function" && (n[r] = vt(i, t));
398
- }
399
- return n;
400
- }
401
- //#endregion
402
- //#region lib/lib/redux/use-actions.ts
403
- function bt(e, t) {
404
- let n = se();
405
- return S(() => yt(e, n), t ? [n, ...t] : [n]);
406
- }
407
- //#endregion
408
- //#region lib/lib/redux/async-slice.ts
409
- var xt = oe({ creators: { asyncThunk: ae } });
410
- //#endregion
411
- export { de as A, N as C, E as D, O as E, T as O, B as S, k as T, Ge as _, ct as a, H as b, Q as c, Ze as d, Je as f, Ke as g, Xe as h, lt as i, ue as j, w as k, at as l, qe as m, bt as n, st as o, Ye as p, dt as r, ot as s, xt as t, $e as u, Z as v, A as w, V as x, W as y };