@mp-front/components 0.0.1-next-2 → 0.0.1-next-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/toggle/constants/variants.d.ts +18 -0
- package/dist/components/toggle/constants/variants.d.ts.map +1 -0
- package/dist/components/toggle/index.d.ts +3 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/toggle.component.d.ts +27 -0
- package/dist/components/toggle/toggle.component.d.ts.map +1 -0
- package/dist/components/toggle/toggle.stories.d.ts +15 -0
- package/dist/components/toggle/toggle.stories.d.ts.map +1 -0
- package/dist/components/toggle/toggle.test.d.ts +2 -0
- package/dist/components/toggle/toggle.test.d.ts.map +1 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group-context.d.ts +22 -0
- package/dist/components/toggle-group/toggle-group-context.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group-item.component.d.ts +28 -0
- package/dist/components/toggle-group/toggle-group-item.component.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.component.d.ts +37 -0
- package/dist/components/toggle-group/toggle-group.component.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.stories.d.ts +16 -0
- package/dist/components/toggle-group/toggle-group.stories.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.test.d.ts +2 -0
- package/dist/components/toggle-group/toggle-group.test.d.ts.map +1 -0
- package/dist/index-BP9HuXkV.cjs +31 -0
- package/dist/index-C0ENqrRs.js +570 -0
- package/dist/{index-CcUNk-y0.js → index-C3AiNKcY.js} +2 -1
- package/dist/{index-B2DyV2Jl.cjs → index-Dm9rKIx2.cjs} +1 -1
- package/dist/layout/content.component.d.ts +19 -0
- package/dist/layout/content.component.d.ts.map +1 -0
- package/dist/layout/footer.component.d.ts +17 -0
- package/dist/layout/footer.component.d.ts.map +1 -0
- package/dist/layout/header/header.component.d.ts +33 -0
- package/dist/layout/header/header.component.d.ts.map +1 -0
- package/dist/layout/header/header.types.d.ts +30 -0
- package/dist/layout/header/header.types.d.ts.map +1 -0
- package/dist/layout/header/left-side.component.d.ts +19 -0
- package/dist/layout/header/left-side.component.d.ts.map +1 -0
- package/dist/layout/header/right-side.component.d.ts +27 -0
- package/dist/layout/header/right-side.component.d.ts.map +1 -0
- package/dist/layout/header/store.component.d.ts +20 -0
- package/dist/layout/header/store.component.d.ts.map +1 -0
- package/dist/layout/header/user.component.d.ts +27 -0
- package/dist/layout/header/user.component.d.ts.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/root-layout.component.d.ts +46 -0
- package/dist/layout/root-layout.component.d.ts.map +1 -0
- package/dist/layout/root-layout.stories.d.ts +12 -0
- package/dist/layout/root-layout.stories.d.ts.map +1 -0
- package/dist/layout/root-layout.test.d.ts +2 -0
- package/dist/layout/root-layout.test.d.ts.map +1 -0
- package/dist/layout/root-layout.types.d.ts +10 -0
- package/dist/layout/root-layout.types.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +29 -170
- package/dist/ui-components-index.cjs +34 -64
- package/dist/ui-components-index.js +6877 -7154
- package/dist/ui-components-layout.cjs +135 -0
- package/dist/ui-components-layout.js +20094 -0
- package/dist/ui-components-utils.cjs +1 -1
- package/dist/ui-components-utils.js +1 -1
- package/dist/useTranslation-Cenukg7h.js +147 -0
- package/dist/useTranslation-CnSCmJou.cjs +1 -0
- package/package.json +7 -18
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
import * as E from "react";
|
|
2
|
+
import Ae from "react";
|
|
3
|
+
import * as ke from "react-dom";
|
|
4
|
+
import Pe from "react-dom";
|
|
5
|
+
var P = { exports: {} }, O = {};
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-jsx-runtime.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var Ee;
|
|
16
|
+
function Ye() {
|
|
17
|
+
if (Ee) return O;
|
|
18
|
+
Ee = 1;
|
|
19
|
+
var o = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
|
|
20
|
+
function u(i, n, c) {
|
|
21
|
+
var d = null;
|
|
22
|
+
if (c !== void 0 && (d = "" + c), n.key !== void 0 && (d = "" + n.key), "key" in n) {
|
|
23
|
+
c = {};
|
|
24
|
+
for (var v in n)
|
|
25
|
+
v !== "key" && (c[v] = n[v]);
|
|
26
|
+
} else c = n;
|
|
27
|
+
return n = c.ref, {
|
|
28
|
+
$$typeof: o,
|
|
29
|
+
type: i,
|
|
30
|
+
key: d,
|
|
31
|
+
ref: n !== void 0 ? n : null,
|
|
32
|
+
props: c
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return O.Fragment = a, O.jsx = u, O.jsxs = u, O;
|
|
36
|
+
}
|
|
37
|
+
var N = {};
|
|
38
|
+
/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-jsx-runtime.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
var me;
|
|
48
|
+
function Me() {
|
|
49
|
+
return me || (me = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
+
function o(e) {
|
|
51
|
+
if (e == null) return null;
|
|
52
|
+
if (typeof e == "function")
|
|
53
|
+
return e.$$typeof === je ? null : e.displayName || e.name || null;
|
|
54
|
+
if (typeof e == "string") return e;
|
|
55
|
+
switch (e) {
|
|
56
|
+
case $:
|
|
57
|
+
return "Fragment";
|
|
58
|
+
case Te:
|
|
59
|
+
return "Portal";
|
|
60
|
+
case Q:
|
|
61
|
+
return "Profiler";
|
|
62
|
+
case Z:
|
|
63
|
+
return "StrictMode";
|
|
64
|
+
case U:
|
|
65
|
+
return "Suspense";
|
|
66
|
+
case J:
|
|
67
|
+
return "SuspenseList";
|
|
68
|
+
}
|
|
69
|
+
if (typeof e == "object")
|
|
70
|
+
switch (typeof e.tag == "number" && console.error(
|
|
71
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
|
+
), e.$$typeof) {
|
|
73
|
+
case D:
|
|
74
|
+
return (e.displayName || "Context") + ".Provider";
|
|
75
|
+
case K:
|
|
76
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case V:
|
|
78
|
+
var r = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case q:
|
|
81
|
+
return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
|
|
82
|
+
case z:
|
|
83
|
+
r = e._payload, e = e._init;
|
|
84
|
+
try {
|
|
85
|
+
return o(e(r));
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
function a(e) {
|
|
92
|
+
return "" + e;
|
|
93
|
+
}
|
|
94
|
+
function u(e) {
|
|
95
|
+
try {
|
|
96
|
+
a(e);
|
|
97
|
+
var r = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
r = !0;
|
|
100
|
+
}
|
|
101
|
+
if (r) {
|
|
102
|
+
r = console;
|
|
103
|
+
var t = r.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
|
+
return t.call(
|
|
105
|
+
r,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
s
|
|
108
|
+
), a(e);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function i() {
|
|
112
|
+
}
|
|
113
|
+
function n() {
|
|
114
|
+
if (w === 0) {
|
|
115
|
+
te = console.log, oe = console.info, ne = console.warn, ae = console.error, le = console.group, se = console.groupCollapsed, ue = console.groupEnd;
|
|
116
|
+
var e = {
|
|
117
|
+
configurable: !0,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
value: i,
|
|
120
|
+
writable: !0
|
|
121
|
+
};
|
|
122
|
+
Object.defineProperties(console, {
|
|
123
|
+
info: e,
|
|
124
|
+
log: e,
|
|
125
|
+
warn: e,
|
|
126
|
+
error: e,
|
|
127
|
+
group: e,
|
|
128
|
+
groupCollapsed: e,
|
|
129
|
+
groupEnd: e
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
w++;
|
|
133
|
+
}
|
|
134
|
+
function c() {
|
|
135
|
+
if (w--, w === 0) {
|
|
136
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
137
|
+
Object.defineProperties(console, {
|
|
138
|
+
log: h({}, e, { value: te }),
|
|
139
|
+
info: h({}, e, { value: oe }),
|
|
140
|
+
warn: h({}, e, { value: ne }),
|
|
141
|
+
error: h({}, e, { value: ae }),
|
|
142
|
+
group: h({}, e, { value: le }),
|
|
143
|
+
groupCollapsed: h({}, e, { value: se }),
|
|
144
|
+
groupEnd: h({}, e, { value: ue })
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
0 > w && console.error(
|
|
148
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
function d(e) {
|
|
152
|
+
if (B === void 0)
|
|
153
|
+
try {
|
|
154
|
+
throw Error();
|
|
155
|
+
} catch (t) {
|
|
156
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
157
|
+
B = r && r[1] || "", ie = -1 < t.stack.indexOf(`
|
|
158
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
159
|
+
}
|
|
160
|
+
return `
|
|
161
|
+
` + B + e + ie;
|
|
162
|
+
}
|
|
163
|
+
function v(e, r) {
|
|
164
|
+
if (!e || G) return "";
|
|
165
|
+
var t = I.get(e);
|
|
166
|
+
if (t !== void 0) return t;
|
|
167
|
+
G = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
168
|
+
var s = null;
|
|
169
|
+
s = S.H, S.H = null, n();
|
|
170
|
+
try {
|
|
171
|
+
var m = {
|
|
172
|
+
DetermineComponentFrameRoot: function() {
|
|
173
|
+
try {
|
|
174
|
+
if (r) {
|
|
175
|
+
var _ = function() {
|
|
176
|
+
throw Error();
|
|
177
|
+
};
|
|
178
|
+
if (Object.defineProperty(_.prototype, "props", {
|
|
179
|
+
set: function() {
|
|
180
|
+
throw Error();
|
|
181
|
+
}
|
|
182
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
183
|
+
try {
|
|
184
|
+
Reflect.construct(_, []);
|
|
185
|
+
} catch (R) {
|
|
186
|
+
var k = R;
|
|
187
|
+
}
|
|
188
|
+
Reflect.construct(e, [], _);
|
|
189
|
+
} else {
|
|
190
|
+
try {
|
|
191
|
+
_.call();
|
|
192
|
+
} catch (R) {
|
|
193
|
+
k = R;
|
|
194
|
+
}
|
|
195
|
+
e.call(_.prototype);
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
try {
|
|
199
|
+
throw Error();
|
|
200
|
+
} catch (R) {
|
|
201
|
+
k = R;
|
|
202
|
+
}
|
|
203
|
+
(_ = e()) && typeof _.catch == "function" && _.catch(function() {
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
} catch (R) {
|
|
207
|
+
if (R && k && typeof R.stack == "string")
|
|
208
|
+
return [R.stack, k.stack];
|
|
209
|
+
}
|
|
210
|
+
return [null, null];
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
m.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
214
|
+
var f = Object.getOwnPropertyDescriptor(
|
|
215
|
+
m.DetermineComponentFrameRoot,
|
|
216
|
+
"name"
|
|
217
|
+
);
|
|
218
|
+
f && f.configurable && Object.defineProperty(
|
|
219
|
+
m.DetermineComponentFrameRoot,
|
|
220
|
+
"name",
|
|
221
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
222
|
+
);
|
|
223
|
+
var l = m.DetermineComponentFrameRoot(), y = l[0], C = l[1];
|
|
224
|
+
if (y && C) {
|
|
225
|
+
var p = y.split(`
|
|
226
|
+
`), x = C.split(`
|
|
227
|
+
`);
|
|
228
|
+
for (l = f = 0; f < p.length && !p[f].includes(
|
|
229
|
+
"DetermineComponentFrameRoot"
|
|
230
|
+
); )
|
|
231
|
+
f++;
|
|
232
|
+
for (; l < x.length && !x[l].includes(
|
|
233
|
+
"DetermineComponentFrameRoot"
|
|
234
|
+
); )
|
|
235
|
+
l++;
|
|
236
|
+
if (f === p.length || l === x.length)
|
|
237
|
+
for (f = p.length - 1, l = x.length - 1; 1 <= f && 0 <= l && p[f] !== x[l]; )
|
|
238
|
+
l--;
|
|
239
|
+
for (; 1 <= f && 0 <= l; f--, l--)
|
|
240
|
+
if (p[f] !== x[l]) {
|
|
241
|
+
if (f !== 1 || l !== 1)
|
|
242
|
+
do
|
|
243
|
+
if (f--, l--, 0 > l || p[f] !== x[l]) {
|
|
244
|
+
var j = `
|
|
245
|
+
` + p[f].replace(
|
|
246
|
+
" at new ",
|
|
247
|
+
" at "
|
|
248
|
+
);
|
|
249
|
+
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && I.set(e, j), j;
|
|
250
|
+
}
|
|
251
|
+
while (1 <= f && 0 <= l);
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
} finally {
|
|
256
|
+
G = !1, S.H = s, c(), Error.prepareStackTrace = t;
|
|
257
|
+
}
|
|
258
|
+
return p = (p = e ? e.displayName || e.name : "") ? d(p) : "", typeof e == "function" && I.set(e, p), p;
|
|
259
|
+
}
|
|
260
|
+
function b(e) {
|
|
261
|
+
if (e == null) return "";
|
|
262
|
+
if (typeof e == "function") {
|
|
263
|
+
var r = e.prototype;
|
|
264
|
+
return v(
|
|
265
|
+
e,
|
|
266
|
+
!(!r || !r.isReactComponent)
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
if (typeof e == "string") return d(e);
|
|
270
|
+
switch (e) {
|
|
271
|
+
case U:
|
|
272
|
+
return d("Suspense");
|
|
273
|
+
case J:
|
|
274
|
+
return d("SuspenseList");
|
|
275
|
+
}
|
|
276
|
+
if (typeof e == "object")
|
|
277
|
+
switch (e.$$typeof) {
|
|
278
|
+
case V:
|
|
279
|
+
return e = v(e.render, !1), e;
|
|
280
|
+
case q:
|
|
281
|
+
return b(e.type);
|
|
282
|
+
case z:
|
|
283
|
+
r = e._payload, e = e._init;
|
|
284
|
+
try {
|
|
285
|
+
return b(e(r));
|
|
286
|
+
} catch {
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return "";
|
|
290
|
+
}
|
|
291
|
+
function g() {
|
|
292
|
+
var e = S.A;
|
|
293
|
+
return e === null ? null : e.getOwner();
|
|
294
|
+
}
|
|
295
|
+
function Y(e) {
|
|
296
|
+
if (re.call(e, "key")) {
|
|
297
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
298
|
+
if (r && r.isReactWarning) return !1;
|
|
299
|
+
}
|
|
300
|
+
return e.key !== void 0;
|
|
301
|
+
}
|
|
302
|
+
function A(e, r) {
|
|
303
|
+
function t() {
|
|
304
|
+
ce || (ce = !0, console.error(
|
|
305
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
306
|
+
r
|
|
307
|
+
));
|
|
308
|
+
}
|
|
309
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
310
|
+
get: t,
|
|
311
|
+
configurable: !0
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
function Se() {
|
|
315
|
+
var e = o(this.type);
|
|
316
|
+
return fe[e] || (fe[e] = !0, console.error(
|
|
317
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
318
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
319
|
+
}
|
|
320
|
+
function he(e, r, t, s, m, f) {
|
|
321
|
+
return t = f.ref, e = {
|
|
322
|
+
$$typeof: W,
|
|
323
|
+
type: e,
|
|
324
|
+
key: r,
|
|
325
|
+
props: f,
|
|
326
|
+
_owner: m
|
|
327
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
328
|
+
enumerable: !1,
|
|
329
|
+
get: Se
|
|
330
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
331
|
+
configurable: !1,
|
|
332
|
+
enumerable: !1,
|
|
333
|
+
writable: !0,
|
|
334
|
+
value: 0
|
|
335
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
336
|
+
configurable: !1,
|
|
337
|
+
enumerable: !1,
|
|
338
|
+
writable: !0,
|
|
339
|
+
value: null
|
|
340
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
341
|
+
}
|
|
342
|
+
function L(e, r, t, s, m, f) {
|
|
343
|
+
if (typeof e == "string" || typeof e == "function" || e === $ || e === Q || e === Z || e === U || e === J || e === we || typeof e == "object" && e !== null && (e.$$typeof === z || e.$$typeof === q || e.$$typeof === D || e.$$typeof === K || e.$$typeof === V || e.$$typeof === Oe || e.getModuleId !== void 0)) {
|
|
344
|
+
var l = r.children;
|
|
345
|
+
if (l !== void 0)
|
|
346
|
+
if (s)
|
|
347
|
+
if (H(l)) {
|
|
348
|
+
for (s = 0; s < l.length; s++)
|
|
349
|
+
F(l[s], e);
|
|
350
|
+
Object.freeze && Object.freeze(l);
|
|
351
|
+
} else
|
|
352
|
+
console.error(
|
|
353
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
354
|
+
);
|
|
355
|
+
else F(l, e);
|
|
356
|
+
} else
|
|
357
|
+
l = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? s = "null" : H(e) ? s = "array" : e !== void 0 && e.$$typeof === W ? (s = "<" + (o(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, console.error(
|
|
358
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
359
|
+
s,
|
|
360
|
+
l
|
|
361
|
+
);
|
|
362
|
+
if (re.call(r, "key")) {
|
|
363
|
+
l = o(e);
|
|
364
|
+
var y = Object.keys(r).filter(function(p) {
|
|
365
|
+
return p !== "key";
|
|
366
|
+
});
|
|
367
|
+
s = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", de[l + s] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
368
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s {...props} />
|
|
371
|
+
React keys must be passed directly to JSX without using spread:
|
|
372
|
+
let props = %s;
|
|
373
|
+
<%s key={someKey} {...props} />`,
|
|
374
|
+
s,
|
|
375
|
+
l,
|
|
376
|
+
y,
|
|
377
|
+
l
|
|
378
|
+
), de[l + s] = !0);
|
|
379
|
+
}
|
|
380
|
+
if (l = null, t !== void 0 && (u(t), l = "" + t), Y(r) && (u(r.key), l = "" + r.key), "key" in r) {
|
|
381
|
+
t = {};
|
|
382
|
+
for (var C in r)
|
|
383
|
+
C !== "key" && (t[C] = r[C]);
|
|
384
|
+
} else t = r;
|
|
385
|
+
return l && A(
|
|
386
|
+
t,
|
|
387
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
388
|
+
), he(e, l, f, m, g(), t);
|
|
389
|
+
}
|
|
390
|
+
function F(e, r) {
|
|
391
|
+
if (typeof e == "object" && e && e.$$typeof !== Ne) {
|
|
392
|
+
if (H(e))
|
|
393
|
+
for (var t = 0; t < e.length; t++) {
|
|
394
|
+
var s = e[t];
|
|
395
|
+
M(s) && X(s, r);
|
|
396
|
+
}
|
|
397
|
+
else if (M(e))
|
|
398
|
+
e._store && (e._store.validated = 1);
|
|
399
|
+
else if (e === null || typeof e != "object" ? t = null : (t = ee && e[ee] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
400
|
+
for (; !(e = t.next()).done; )
|
|
401
|
+
M(e.value) && X(e.value, r);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function M(e) {
|
|
405
|
+
return typeof e == "object" && e !== null && e.$$typeof === W;
|
|
406
|
+
}
|
|
407
|
+
function X(e, r) {
|
|
408
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = xe(r), !ve[r])) {
|
|
409
|
+
ve[r] = !0;
|
|
410
|
+
var t = "";
|
|
411
|
+
e && e._owner != null && e._owner !== g() && (t = null, typeof e._owner.tag == "number" ? t = o(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
412
|
+
var s = S.getCurrentStack;
|
|
413
|
+
S.getCurrentStack = function() {
|
|
414
|
+
var m = b(e.type);
|
|
415
|
+
return s && (m += s() || ""), m;
|
|
416
|
+
}, console.error(
|
|
417
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
418
|
+
r,
|
|
419
|
+
t
|
|
420
|
+
), S.getCurrentStack = s;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function xe(e) {
|
|
424
|
+
var r = "", t = g();
|
|
425
|
+
return t && (t = o(t.type)) && (r = `
|
|
426
|
+
|
|
427
|
+
Check the render method of \`` + t + "`."), r || (e = o(e)) && (r = `
|
|
428
|
+
|
|
429
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
430
|
+
}
|
|
431
|
+
var Ce = Ae, W = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), Z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), D = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), we = Symbol.for("react.offscreen"), ee = Symbol.iterator, je = Symbol.for("react.client.reference"), S = Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, h = Object.assign, Oe = Symbol.for("react.client.reference"), H = Array.isArray, w = 0, te, oe, ne, ae, le, se, ue;
|
|
432
|
+
i.__reactDisabledLog = !0;
|
|
433
|
+
var B, ie, G = !1, I = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ne = Symbol.for("react.client.reference"), ce, fe = {}, de = {}, ve = {};
|
|
434
|
+
N.Fragment = $, N.jsx = function(e, r, t, s, m) {
|
|
435
|
+
return L(e, r, t, !1, s, m);
|
|
436
|
+
}, N.jsxs = function(e, r, t, s, m) {
|
|
437
|
+
return L(e, r, t, !0, s, m);
|
|
438
|
+
};
|
|
439
|
+
})()), N;
|
|
440
|
+
}
|
|
441
|
+
var pe;
|
|
442
|
+
function We() {
|
|
443
|
+
return pe || (pe = 1, process.env.NODE_ENV === "production" ? P.exports = Ye() : P.exports = Me()), P.exports;
|
|
444
|
+
}
|
|
445
|
+
var T = We();
|
|
446
|
+
function be(o, a) {
|
|
447
|
+
if (typeof o == "function")
|
|
448
|
+
return o(a);
|
|
449
|
+
o != null && (o.current = a);
|
|
450
|
+
}
|
|
451
|
+
function ge(...o) {
|
|
452
|
+
return (a) => {
|
|
453
|
+
let u = !1;
|
|
454
|
+
const i = o.map((n) => {
|
|
455
|
+
const c = be(n, a);
|
|
456
|
+
return !u && typeof c == "function" && (u = !0), c;
|
|
457
|
+
});
|
|
458
|
+
if (u)
|
|
459
|
+
return () => {
|
|
460
|
+
for (let n = 0; n < i.length; n++) {
|
|
461
|
+
const c = i[n];
|
|
462
|
+
typeof c == "function" ? c() : be(o[n], null);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function Le(...o) {
|
|
468
|
+
return E.useCallback(ge(...o), o);
|
|
469
|
+
}
|
|
470
|
+
// @__NO_SIDE_EFFECTS__
|
|
471
|
+
function ye(o) {
|
|
472
|
+
const a = /* @__PURE__ */ $e(o), u = E.forwardRef((i, n) => {
|
|
473
|
+
const { children: c, ...d } = i, v = E.Children.toArray(c), b = v.find(Ve);
|
|
474
|
+
if (b) {
|
|
475
|
+
const g = b.props.children, Y = v.map((A) => A === b ? E.Children.count(g) > 1 ? E.Children.only(null) : E.isValidElement(g) ? g.props.children : null : A);
|
|
476
|
+
return /* @__PURE__ */ T.jsx(a, { ...d, ref: n, children: E.isValidElement(g) ? E.cloneElement(g, void 0, Y) : null });
|
|
477
|
+
}
|
|
478
|
+
return /* @__PURE__ */ T.jsx(a, { ...d, ref: n, children: c });
|
|
479
|
+
});
|
|
480
|
+
return u.displayName = `${o}.Slot`, u;
|
|
481
|
+
}
|
|
482
|
+
var Fe = /* @__PURE__ */ ye("Slot");
|
|
483
|
+
// @__NO_SIDE_EFFECTS__
|
|
484
|
+
function $e(o) {
|
|
485
|
+
const a = E.forwardRef((u, i) => {
|
|
486
|
+
const { children: n, ...c } = u;
|
|
487
|
+
if (E.isValidElement(n)) {
|
|
488
|
+
const d = Je(n), v = Ue(c, n.props);
|
|
489
|
+
return n.type !== E.Fragment && (v.ref = i ? ge(i, d) : d), E.cloneElement(n, v);
|
|
490
|
+
}
|
|
491
|
+
return E.Children.count(n) > 1 ? E.Children.only(null) : null;
|
|
492
|
+
});
|
|
493
|
+
return a.displayName = `${o}.SlotClone`, a;
|
|
494
|
+
}
|
|
495
|
+
var Re = Symbol("radix.slottable");
|
|
496
|
+
// @__NO_SIDE_EFFECTS__
|
|
497
|
+
function Xe(o) {
|
|
498
|
+
const a = ({ children: u }) => /* @__PURE__ */ T.jsx(T.Fragment, { children: u });
|
|
499
|
+
return a.displayName = `${o}.Slottable`, a.__radixId = Re, a;
|
|
500
|
+
}
|
|
501
|
+
function Ve(o) {
|
|
502
|
+
return E.isValidElement(o) && typeof o.type == "function" && "__radixId" in o.type && o.type.__radixId === Re;
|
|
503
|
+
}
|
|
504
|
+
function Ue(o, a) {
|
|
505
|
+
const u = { ...a };
|
|
506
|
+
for (const i in a) {
|
|
507
|
+
const n = o[i], c = a[i];
|
|
508
|
+
/^on[A-Z]/.test(i) ? n && c ? u[i] = (...v) => {
|
|
509
|
+
const b = c(...v);
|
|
510
|
+
return n(...v), b;
|
|
511
|
+
} : n && (u[i] = n) : i === "style" ? u[i] = { ...n, ...c } : i === "className" && (u[i] = [n, c].filter(Boolean).join(" "));
|
|
512
|
+
}
|
|
513
|
+
return { ...o, ...u };
|
|
514
|
+
}
|
|
515
|
+
function Je(o) {
|
|
516
|
+
var i, n;
|
|
517
|
+
let a = (i = Object.getOwnPropertyDescriptor(o.props, "ref")) == null ? void 0 : i.get, u = a && "isReactWarning" in a && a.isReactWarning;
|
|
518
|
+
return u ? o.ref : (a = (n = Object.getOwnPropertyDescriptor(o, "ref")) == null ? void 0 : n.get, u = a && "isReactWarning" in a && a.isReactWarning, u ? o.props.ref : o.props.ref || o.ref);
|
|
519
|
+
}
|
|
520
|
+
var qe = [
|
|
521
|
+
"a",
|
|
522
|
+
"button",
|
|
523
|
+
"div",
|
|
524
|
+
"form",
|
|
525
|
+
"h2",
|
|
526
|
+
"h3",
|
|
527
|
+
"img",
|
|
528
|
+
"input",
|
|
529
|
+
"label",
|
|
530
|
+
"li",
|
|
531
|
+
"nav",
|
|
532
|
+
"ol",
|
|
533
|
+
"p",
|
|
534
|
+
"select",
|
|
535
|
+
"span",
|
|
536
|
+
"svg",
|
|
537
|
+
"ul"
|
|
538
|
+
], ze = qe.reduce((o, a) => {
|
|
539
|
+
const u = /* @__PURE__ */ ye(`Primitive.${a}`), i = E.forwardRef((n, c) => {
|
|
540
|
+
const { asChild: d, ...v } = n, b = d ? u : a;
|
|
541
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ T.jsx(b, { ...v, ref: c });
|
|
542
|
+
});
|
|
543
|
+
return i.displayName = `Primitive.${a}`, { ...o, [a]: i };
|
|
544
|
+
}, {});
|
|
545
|
+
function Ze(o, a) {
|
|
546
|
+
o && ke.flushSync(() => o.dispatchEvent(a));
|
|
547
|
+
}
|
|
548
|
+
var He = globalThis != null && globalThis.document ? E.useLayoutEffect : () => {
|
|
549
|
+
}, Be = "Portal", _e = E.forwardRef((o, a) => {
|
|
550
|
+
var v;
|
|
551
|
+
const { container: u, ...i } = o, [n, c] = E.useState(!1);
|
|
552
|
+
He(() => c(!0), []);
|
|
553
|
+
const d = u || n && ((v = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : v.body);
|
|
554
|
+
return d ? Pe.createPortal(/* @__PURE__ */ T.jsx(ze.div, { ...i, ref: a }), d) : null;
|
|
555
|
+
});
|
|
556
|
+
_e.displayName = Be;
|
|
557
|
+
var Qe = _e;
|
|
558
|
+
export {
|
|
559
|
+
ze as P,
|
|
560
|
+
Qe as R,
|
|
561
|
+
Fe as S,
|
|
562
|
+
He as a,
|
|
563
|
+
_e as b,
|
|
564
|
+
ye as c,
|
|
565
|
+
Ze as d,
|
|
566
|
+
ge as e,
|
|
567
|
+
Xe as f,
|
|
568
|
+
T as j,
|
|
569
|
+
Le as u
|
|
570
|
+
};
|