@stackable-labs/embeddables 1.7.0 → 1.7.1
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/react.js +364 -370
- package/dist/stackable-widget.external.js +33 -33
- package/dist/stackable-widget.js +40 -40
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import G, { createContext as Qo, useState as U, useRef as ae, useEffect as B, useContext as er, useMemo as Mt, useCallback as Re, createElement as _e, forwardRef as Lt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
6
|
-
const o =
|
|
5
|
+
const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
6
|
+
const o = ce.get(e.id);
|
|
7
7
|
if (o) return o;
|
|
8
8
|
const r = document.createElement("iframe");
|
|
9
9
|
if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js"))
|
|
@@ -38,18 +38,18 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
38
38
|
const l = i.data;
|
|
39
39
|
(l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
|
|
40
40
|
};
|
|
41
|
-
return window.addEventListener("message", a),
|
|
41
|
+
return window.addEventListener("message", a), ce.set(e.id, s), s;
|
|
42
42
|
}, We = (e, t) => {
|
|
43
|
-
const o =
|
|
43
|
+
const o = ce.get(e);
|
|
44
44
|
if (!(o != null && o.iframe.contentWindow)) {
|
|
45
45
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
o.iframe.contentWindow.postMessage(t, "*");
|
|
49
|
-
},
|
|
50
|
-
const t =
|
|
51
|
-
t && (t.iframe.remove(), t.messageHandlers.clear(),
|
|
52
|
-
}, rr =
|
|
49
|
+
}, le = (e) => ce.get(e), or = (e) => {
|
|
50
|
+
const t = ce.get(e);
|
|
51
|
+
t && (t.iframe.remove(), t.messageHandlers.clear(), ce.delete(e));
|
|
52
|
+
}, rr = [
|
|
53
53
|
"ui-card",
|
|
54
54
|
"ui-card-content",
|
|
55
55
|
"ui-card-header",
|
|
@@ -73,30 +73,24 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
73
73
|
"ui-link",
|
|
74
74
|
"ui-menu",
|
|
75
75
|
"ui-menu-item"
|
|
76
|
-
],
|
|
76
|
+
], nr = {
|
|
77
77
|
"context.read": "context:read",
|
|
78
78
|
"data.query": "data:query",
|
|
79
79
|
"data.fetch": "data:fetch",
|
|
80
80
|
"actions.toast": "actions:toast",
|
|
81
81
|
"actions.invoke": "actions:invoke"
|
|
82
|
-
},
|
|
82
|
+
}, sr = (e) => {
|
|
83
83
|
const t = async (o) => {
|
|
84
84
|
const r = o.data;
|
|
85
85
|
if ((r == null ? void 0 : r.type) !== "capability-request") return;
|
|
86
|
-
const n = r;
|
|
87
|
-
|
|
88
|
-
for (const [l, d] of rr())
|
|
89
|
-
if (o.source === d.iframe.contentWindow) {
|
|
90
|
-
s = l;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
if (!s) {
|
|
86
|
+
const n = r, s = n.extensionId;
|
|
87
|
+
if (!s || !le(s)) {
|
|
94
88
|
console.warn("Received capability request from unknown source");
|
|
95
89
|
return;
|
|
96
90
|
}
|
|
97
|
-
const a =
|
|
91
|
+
const a = le(s);
|
|
98
92
|
if (!a) return;
|
|
99
|
-
const i =
|
|
93
|
+
const i = nr[n.capability];
|
|
100
94
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
101
95
|
const l = {
|
|
102
96
|
type: "capability-response",
|
|
@@ -152,7 +146,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
152
146
|
extensions: [],
|
|
153
147
|
components: {},
|
|
154
148
|
ready: !1
|
|
155
|
-
}),
|
|
149
|
+
}), ar = ({
|
|
156
150
|
extensions: e,
|
|
157
151
|
capabilityHandlers: t,
|
|
158
152
|
components: o = {},
|
|
@@ -168,7 +162,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
168
162
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
169
163
|
for (const f of e)
|
|
170
164
|
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
171
|
-
i.current =
|
|
165
|
+
i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
172
166
|
}
|
|
173
167
|
})(), () => {
|
|
174
168
|
var u;
|
|
@@ -181,7 +175,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
181
175
|
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
182
176
|
r
|
|
183
177
|
] });
|
|
184
|
-
},
|
|
178
|
+
}, ir = () => er(Ot), lr = (e) => rr.includes(e), Ce = ({
|
|
185
179
|
target: e,
|
|
186
180
|
context: t,
|
|
187
181
|
className: o,
|
|
@@ -189,7 +183,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
189
183
|
fallback: n = null,
|
|
190
184
|
render: s
|
|
191
185
|
}) => {
|
|
192
|
-
const { extensions: a, components: i, ready: l } =
|
|
186
|
+
const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m = Mt(
|
|
193
187
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
194
188
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
195
189
|
[a.map((h) => h.id).join(","), e]
|
|
@@ -201,7 +195,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
201
195
|
if (!h.tag) return null;
|
|
202
196
|
if (h.tag === "__fragment")
|
|
203
197
|
return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, R);
|
|
204
|
-
if (!
|
|
198
|
+
if (!lr(h.tag))
|
|
205
199
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
206
200
|
const C = i[h.tag];
|
|
207
201
|
if (!C)
|
|
@@ -238,12 +232,12 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
238
232
|
const y = (R) => {
|
|
239
233
|
const C = R.data;
|
|
240
234
|
if (!(!C || typeof C != "object" || !m.some((P) => {
|
|
241
|
-
const E =
|
|
235
|
+
const E = le(P.id);
|
|
242
236
|
return E && R.source === E.iframe.contentWindow;
|
|
243
237
|
}))) {
|
|
244
238
|
if (C.type === "surface-update" && C.surfaceId === e) {
|
|
245
239
|
const P = m.find((_) => {
|
|
246
|
-
const b =
|
|
240
|
+
const b = le(_.id);
|
|
247
241
|
return b && R.source === b.iframe.contentWindow;
|
|
248
242
|
});
|
|
249
243
|
if (!P) return;
|
|
@@ -255,7 +249,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
255
249
|
}
|
|
256
250
|
C.type === "surface-ready" && C.surfaceId === e && t && m.forEach((P) => {
|
|
257
251
|
var _;
|
|
258
|
-
const E =
|
|
252
|
+
const E = le(P.id);
|
|
259
253
|
(_ = E == null ? void 0 : E.iframe.contentWindow) == null || _.postMessage(
|
|
260
254
|
{ type: "context-update", surfaceId: e, context: t },
|
|
261
255
|
"*"
|
|
@@ -265,7 +259,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
265
259
|
};
|
|
266
260
|
return window.addEventListener("message", y), m.forEach((R) => {
|
|
267
261
|
var A;
|
|
268
|
-
const C =
|
|
262
|
+
const C = le(R.id);
|
|
269
263
|
(A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
|
|
270
264
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
271
265
|
"*"
|
|
@@ -298,7 +292,7 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
298
292
|
];
|
|
299
293
|
}) : n;
|
|
300
294
|
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
|
|
301
|
-
},
|
|
295
|
+
}, cr = (e) => {
|
|
302
296
|
try {
|
|
303
297
|
const { hostname: t } = new URL(e);
|
|
304
298
|
return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
|
|
@@ -318,14 +312,14 @@ const ie = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
|
318
312
|
const i = a.indexOf(":");
|
|
319
313
|
if (i === -1) continue;
|
|
320
314
|
const l = a.slice(0, i), d = a.slice(i + 1);
|
|
321
|
-
l && d &&
|
|
315
|
+
l && d && cr(d) && r.push({ extensionId: l, bundleUrl: d });
|
|
322
316
|
}
|
|
323
317
|
}
|
|
324
318
|
return r;
|
|
325
319
|
} catch {
|
|
326
320
|
return [];
|
|
327
321
|
}
|
|
328
|
-
},
|
|
322
|
+
}, dr = (e, t) => t.length === 0 ? e : e.map((o) => {
|
|
329
323
|
const r = t.find((n) => n.extensionId === o.id);
|
|
330
324
|
return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
|
|
331
325
|
...o,
|
|
@@ -345,14 +339,14 @@ const Ft = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t
|
|
|
345
339
|
* This source code is licensed under the ISC license.
|
|
346
340
|
* See the LICENSE file in the root directory of this source tree.
|
|
347
341
|
*/
|
|
348
|
-
const
|
|
342
|
+
const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
349
343
|
/**
|
|
350
344
|
* @license lucide-react v0.575.0 - ISC
|
|
351
345
|
*
|
|
352
346
|
* This source code is licensed under the ISC license.
|
|
353
347
|
* See the LICENSE file in the root directory of this source tree.
|
|
354
348
|
*/
|
|
355
|
-
const
|
|
349
|
+
const fr = (e) => e.replace(
|
|
356
350
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
357
351
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
358
352
|
);
|
|
@@ -363,7 +357,7 @@ const mr = (e) => e.replace(
|
|
|
363
357
|
* See the LICENSE file in the root directory of this source tree.
|
|
364
358
|
*/
|
|
365
359
|
const pt = (e) => {
|
|
366
|
-
const t =
|
|
360
|
+
const t = fr(e);
|
|
367
361
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
368
362
|
};
|
|
369
363
|
/**
|
|
@@ -372,7 +366,7 @@ const pt = (e) => {
|
|
|
372
366
|
* This source code is licensed under the ISC license.
|
|
373
367
|
* See the LICENSE file in the root directory of this source tree.
|
|
374
368
|
*/
|
|
375
|
-
var
|
|
369
|
+
var mr = {
|
|
376
370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
377
371
|
width: 24,
|
|
378
372
|
height: 24,
|
|
@@ -389,7 +383,7 @@ var pr = {
|
|
|
389
383
|
* This source code is licensed under the ISC license.
|
|
390
384
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
385
|
*/
|
|
392
|
-
const
|
|
386
|
+
const pr = (e) => {
|
|
393
387
|
for (const t in e)
|
|
394
388
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
395
389
|
return !0;
|
|
@@ -401,7 +395,7 @@ const hr = (e) => {
|
|
|
401
395
|
* This source code is licensed under the ISC license.
|
|
402
396
|
* See the LICENSE file in the root directory of this source tree.
|
|
403
397
|
*/
|
|
404
|
-
const
|
|
398
|
+
const hr = Lt(
|
|
405
399
|
({
|
|
406
400
|
color: e = "currentColor",
|
|
407
401
|
size: t = 24,
|
|
@@ -415,13 +409,13 @@ const gr = Lt(
|
|
|
415
409
|
"svg",
|
|
416
410
|
{
|
|
417
411
|
ref: l,
|
|
418
|
-
...
|
|
412
|
+
...mr,
|
|
419
413
|
width: t,
|
|
420
414
|
height: t,
|
|
421
415
|
stroke: e,
|
|
422
416
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
423
417
|
className: Ft("lucide", n),
|
|
424
|
-
...!s && !
|
|
418
|
+
...!s && !pr(i) && { "aria-hidden": "true" },
|
|
425
419
|
...i
|
|
426
420
|
},
|
|
427
421
|
[
|
|
@@ -438,11 +432,11 @@ const gr = Lt(
|
|
|
438
432
|
*/
|
|
439
433
|
const L = (e, t) => {
|
|
440
434
|
const o = Lt(
|
|
441
|
-
({ className: r, ...n }, s) => _e(
|
|
435
|
+
({ className: r, ...n }, s) => _e(hr, {
|
|
442
436
|
ref: s,
|
|
443
437
|
iconNode: t,
|
|
444
438
|
className: Ft(
|
|
445
|
-
`lucide-${
|
|
439
|
+
`lucide-${ur(pt(e))}`,
|
|
446
440
|
`lucide-${e}`,
|
|
447
441
|
r
|
|
448
442
|
),
|
|
@@ -457,7 +451,7 @@ const L = (e, t) => {
|
|
|
457
451
|
* This source code is licensed under the ISC license.
|
|
458
452
|
* See the LICENSE file in the root directory of this source tree.
|
|
459
453
|
*/
|
|
460
|
-
const
|
|
454
|
+
const gr = [
|
|
461
455
|
[
|
|
462
456
|
"path",
|
|
463
457
|
{
|
|
@@ -466,24 +460,24 @@ const br = [
|
|
|
466
460
|
}
|
|
467
461
|
],
|
|
468
462
|
["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
|
|
469
|
-
],
|
|
463
|
+
], br = L("airplay", gr);
|
|
470
464
|
/**
|
|
471
465
|
* @license lucide-react v0.575.0 - ISC
|
|
472
466
|
*
|
|
473
467
|
* This source code is licensed under the ISC license.
|
|
474
468
|
* See the LICENSE file in the root directory of this source tree.
|
|
475
469
|
*/
|
|
476
|
-
const
|
|
470
|
+
const vr = [
|
|
477
471
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
478
472
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
479
|
-
],
|
|
473
|
+
], xr = L("arrow-left", vr);
|
|
480
474
|
/**
|
|
481
475
|
* @license lucide-react v0.575.0 - ISC
|
|
482
476
|
*
|
|
483
477
|
* This source code is licensed under the ISC license.
|
|
484
478
|
* See the LICENSE file in the root directory of this source tree.
|
|
485
479
|
*/
|
|
486
|
-
const
|
|
480
|
+
const wr = [
|
|
487
481
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
488
482
|
[
|
|
489
483
|
"path",
|
|
@@ -492,142 +486,142 @@ const yr = [
|
|
|
492
486
|
key: "ruj8y"
|
|
493
487
|
}
|
|
494
488
|
]
|
|
495
|
-
],
|
|
489
|
+
], yr = L("book-open", wr);
|
|
496
490
|
/**
|
|
497
491
|
* @license lucide-react v0.575.0 - ISC
|
|
498
492
|
*
|
|
499
493
|
* This source code is licensed under the ISC license.
|
|
500
494
|
* See the LICENSE file in the root directory of this source tree.
|
|
501
495
|
*/
|
|
502
|
-
const
|
|
496
|
+
const kr = [
|
|
503
497
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
504
498
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
505
499
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
506
500
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
507
|
-
],
|
|
501
|
+
], Sr = L("calendar", kr);
|
|
508
502
|
/**
|
|
509
503
|
* @license lucide-react v0.575.0 - ISC
|
|
510
504
|
*
|
|
511
505
|
* This source code is licensed under the ISC license.
|
|
512
506
|
* See the LICENSE file in the root directory of this source tree.
|
|
513
507
|
*/
|
|
514
|
-
const
|
|
508
|
+
const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-left", Cr);
|
|
515
509
|
/**
|
|
516
510
|
* @license lucide-react v0.575.0 - ISC
|
|
517
511
|
*
|
|
518
512
|
* This source code is licensed under the ISC license.
|
|
519
513
|
* See the LICENSE file in the root directory of this source tree.
|
|
520
514
|
*/
|
|
521
|
-
const
|
|
515
|
+
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Nr);
|
|
522
516
|
/**
|
|
523
517
|
* @license lucide-react v0.575.0 - ISC
|
|
524
518
|
*
|
|
525
519
|
* This source code is licensed under the ISC license.
|
|
526
520
|
* See the LICENSE file in the root directory of this source tree.
|
|
527
521
|
*/
|
|
528
|
-
const
|
|
522
|
+
const Ar = [
|
|
529
523
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
530
524
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
531
525
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
532
|
-
],
|
|
526
|
+
], Rr = L("circle-alert", Ar);
|
|
533
527
|
/**
|
|
534
528
|
* @license lucide-react v0.575.0 - ISC
|
|
535
529
|
*
|
|
536
530
|
* This source code is licensed under the ISC license.
|
|
537
531
|
* See the LICENSE file in the root directory of this source tree.
|
|
538
532
|
*/
|
|
539
|
-
const
|
|
533
|
+
const _r = [
|
|
540
534
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
541
535
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
542
|
-
],
|
|
536
|
+
], Ir = L("circle-check", _r);
|
|
543
537
|
/**
|
|
544
538
|
* @license lucide-react v0.575.0 - ISC
|
|
545
539
|
*
|
|
546
540
|
* This source code is licensed under the ISC license.
|
|
547
541
|
* See the LICENSE file in the root directory of this source tree.
|
|
548
542
|
*/
|
|
549
|
-
const
|
|
543
|
+
const Pr = [
|
|
550
544
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
551
545
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
552
546
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
553
|
-
],
|
|
547
|
+
], zr = L("circle-question-mark", Pr);
|
|
554
548
|
/**
|
|
555
549
|
* @license lucide-react v0.575.0 - ISC
|
|
556
550
|
*
|
|
557
551
|
* This source code is licensed under the ISC license.
|
|
558
552
|
* See the LICENSE file in the root directory of this source tree.
|
|
559
553
|
*/
|
|
560
|
-
const
|
|
554
|
+
const Tr = [
|
|
561
555
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
562
556
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
563
557
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
564
|
-
],
|
|
558
|
+
], Mr = L("circle-x", Tr);
|
|
565
559
|
/**
|
|
566
560
|
* @license lucide-react v0.575.0 - ISC
|
|
567
561
|
*
|
|
568
562
|
* This source code is licensed under the ISC license.
|
|
569
563
|
* See the LICENSE file in the root directory of this source tree.
|
|
570
564
|
*/
|
|
571
|
-
const
|
|
565
|
+
const Lr = [
|
|
572
566
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
573
567
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
574
|
-
],
|
|
568
|
+
], Or = L("clock", Lr);
|
|
575
569
|
/**
|
|
576
570
|
* @license lucide-react v0.575.0 - ISC
|
|
577
571
|
*
|
|
578
572
|
* This source code is licensed under the ISC license.
|
|
579
573
|
* See the LICENSE file in the root directory of this source tree.
|
|
580
574
|
*/
|
|
581
|
-
const
|
|
575
|
+
const $r = [
|
|
582
576
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
583
577
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
584
|
-
],
|
|
578
|
+
], Fr = L("credit-card", $r);
|
|
585
579
|
/**
|
|
586
580
|
* @license lucide-react v0.575.0 - ISC
|
|
587
581
|
*
|
|
588
582
|
* This source code is licensed under the ISC license.
|
|
589
583
|
* See the LICENSE file in the root directory of this source tree.
|
|
590
584
|
*/
|
|
591
|
-
const
|
|
585
|
+
const Dr = [
|
|
592
586
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
593
587
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
594
588
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
595
|
-
],
|
|
589
|
+
], Ur = L("external-link", Dr);
|
|
596
590
|
/**
|
|
597
591
|
* @license lucide-react v0.575.0 - ISC
|
|
598
592
|
*
|
|
599
593
|
* This source code is licensed under the ISC license.
|
|
600
594
|
* See the LICENSE file in the root directory of this source tree.
|
|
601
595
|
*/
|
|
602
|
-
const
|
|
596
|
+
const Wr = [
|
|
603
597
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
604
598
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
605
599
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
606
|
-
],
|
|
600
|
+
], Hr = L("info", Wr);
|
|
607
601
|
/**
|
|
608
602
|
* @license lucide-react v0.575.0 - ISC
|
|
609
603
|
*
|
|
610
604
|
* This source code is licensed under the ISC license.
|
|
611
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
612
606
|
*/
|
|
613
|
-
const
|
|
607
|
+
const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", Vr);
|
|
614
608
|
/**
|
|
615
609
|
* @license lucide-react v0.575.0 - ISC
|
|
616
610
|
*
|
|
617
611
|
* This source code is licensed under the ISC license.
|
|
618
612
|
* See the LICENSE file in the root directory of this source tree.
|
|
619
613
|
*/
|
|
620
|
-
const
|
|
614
|
+
const jr = [
|
|
621
615
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
622
616
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
623
|
-
], Ye = L("mail",
|
|
617
|
+
], Ye = L("mail", jr);
|
|
624
618
|
/**
|
|
625
619
|
* @license lucide-react v0.575.0 - ISC
|
|
626
620
|
*
|
|
627
621
|
* This source code is licensed under the ISC license.
|
|
628
622
|
* See the LICENSE file in the root directory of this source tree.
|
|
629
623
|
*/
|
|
630
|
-
const
|
|
624
|
+
const Br = [
|
|
631
625
|
[
|
|
632
626
|
"path",
|
|
633
627
|
{
|
|
@@ -636,14 +630,14 @@ const Gr = [
|
|
|
636
630
|
}
|
|
637
631
|
],
|
|
638
632
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
639
|
-
],
|
|
633
|
+
], Gr = L("map-pin", Br);
|
|
640
634
|
/**
|
|
641
635
|
* @license lucide-react v0.575.0 - ISC
|
|
642
636
|
*
|
|
643
637
|
* This source code is licensed under the ISC license.
|
|
644
638
|
* See the LICENSE file in the root directory of this source tree.
|
|
645
639
|
*/
|
|
646
|
-
const
|
|
640
|
+
const qr = [
|
|
647
641
|
[
|
|
648
642
|
"path",
|
|
649
643
|
{
|
|
@@ -651,14 +645,14 @@ const Yr = [
|
|
|
651
645
|
key: "1sd12s"
|
|
652
646
|
}
|
|
653
647
|
]
|
|
654
|
-
],
|
|
648
|
+
], Yr = L("message-circle", qr);
|
|
655
649
|
/**
|
|
656
650
|
* @license lucide-react v0.575.0 - ISC
|
|
657
651
|
*
|
|
658
652
|
* This source code is licensed under the ISC license.
|
|
659
653
|
* See the LICENSE file in the root directory of this source tree.
|
|
660
654
|
*/
|
|
661
|
-
const
|
|
655
|
+
const Xr = [
|
|
662
656
|
[
|
|
663
657
|
"path",
|
|
664
658
|
{
|
|
@@ -666,14 +660,14 @@ const Zr = [
|
|
|
666
660
|
key: "18887p"
|
|
667
661
|
}
|
|
668
662
|
]
|
|
669
|
-
], Wt = L("message-square",
|
|
663
|
+
], Wt = L("message-square", Xr);
|
|
670
664
|
/**
|
|
671
665
|
* @license lucide-react v0.575.0 - ISC
|
|
672
666
|
*
|
|
673
667
|
* This source code is licensed under the ISC license.
|
|
674
668
|
* See the LICENSE file in the root directory of this source tree.
|
|
675
669
|
*/
|
|
676
|
-
const
|
|
670
|
+
const Zr = [
|
|
677
671
|
[
|
|
678
672
|
"path",
|
|
679
673
|
{
|
|
@@ -684,14 +678,14 @@ const Kr = [
|
|
|
684
678
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
685
679
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
686
680
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
687
|
-
],
|
|
681
|
+
], Kr = L("package", Zr);
|
|
688
682
|
/**
|
|
689
683
|
* @license lucide-react v0.575.0 - ISC
|
|
690
684
|
*
|
|
691
685
|
* This source code is licensed under the ISC license.
|
|
692
686
|
* See the LICENSE file in the root directory of this source tree.
|
|
693
687
|
*/
|
|
694
|
-
const
|
|
688
|
+
const Jr = [
|
|
695
689
|
[
|
|
696
690
|
"path",
|
|
697
691
|
{
|
|
@@ -699,24 +693,24 @@ const Qr = [
|
|
|
699
693
|
key: "9njp5v"
|
|
700
694
|
}
|
|
701
695
|
]
|
|
702
|
-
],
|
|
696
|
+
], Qr = L("phone", Jr);
|
|
703
697
|
/**
|
|
704
698
|
* @license lucide-react v0.575.0 - ISC
|
|
705
699
|
*
|
|
706
700
|
* This source code is licensed under the ISC license.
|
|
707
701
|
* See the LICENSE file in the root directory of this source tree.
|
|
708
702
|
*/
|
|
709
|
-
const
|
|
703
|
+
const en = [
|
|
710
704
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
711
705
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
712
|
-
],
|
|
706
|
+
], tn = L("search", en);
|
|
713
707
|
/**
|
|
714
708
|
* @license lucide-react v0.575.0 - ISC
|
|
715
709
|
*
|
|
716
710
|
* This source code is licensed under the ISC license.
|
|
717
711
|
* See the LICENSE file in the root directory of this source tree.
|
|
718
712
|
*/
|
|
719
|
-
const
|
|
713
|
+
const on = [
|
|
720
714
|
["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
|
|
721
715
|
["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
|
|
722
716
|
[
|
|
@@ -726,14 +720,14 @@ const rn = [
|
|
|
726
720
|
key: "o988cm"
|
|
727
721
|
}
|
|
728
722
|
]
|
|
729
|
-
],
|
|
723
|
+
], rn = L("shopping-bag", on);
|
|
730
724
|
/**
|
|
731
725
|
* @license lucide-react v0.575.0 - ISC
|
|
732
726
|
*
|
|
733
727
|
* This source code is licensed under the ISC license.
|
|
734
728
|
* See the LICENSE file in the root directory of this source tree.
|
|
735
729
|
*/
|
|
736
|
-
const
|
|
730
|
+
const nn = [
|
|
737
731
|
[
|
|
738
732
|
"path",
|
|
739
733
|
{
|
|
@@ -744,14 +738,14 @@ const sn = [
|
|
|
744
738
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
745
739
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
746
740
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
747
|
-
],
|
|
741
|
+
], sn = L("sparkles", nn);
|
|
748
742
|
/**
|
|
749
743
|
* @license lucide-react v0.575.0 - ISC
|
|
750
744
|
*
|
|
751
745
|
* This source code is licensed under the ISC license.
|
|
752
746
|
* See the LICENSE file in the root directory of this source tree.
|
|
753
747
|
*/
|
|
754
|
-
const
|
|
748
|
+
const an = [
|
|
755
749
|
["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
|
|
756
750
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
757
751
|
[
|
|
@@ -763,17 +757,17 @@ const ln = [
|
|
|
763
757
|
],
|
|
764
758
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
765
759
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
766
|
-
],
|
|
760
|
+
], ln = L("truck", an);
|
|
767
761
|
/**
|
|
768
762
|
* @license lucide-react v0.575.0 - ISC
|
|
769
763
|
*
|
|
770
764
|
* This source code is licensed under the ISC license.
|
|
771
765
|
* See the LICENSE file in the root directory of this source tree.
|
|
772
766
|
*/
|
|
773
|
-
const
|
|
767
|
+
const cn = [
|
|
774
768
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
775
769
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
776
|
-
], Ht = L("user",
|
|
770
|
+
], Ht = L("user", cn);
|
|
777
771
|
function Vt(e) {
|
|
778
772
|
var t, o, r = "";
|
|
779
773
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -787,36 +781,36 @@ function jt() {
|
|
|
787
781
|
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Vt(e)) && (r && (r += " "), r += t);
|
|
788
782
|
return r;
|
|
789
783
|
}
|
|
790
|
-
const
|
|
784
|
+
const dn = (e, t) => {
|
|
791
785
|
const o = new Array(e.length + t.length);
|
|
792
786
|
for (let r = 0; r < e.length; r++)
|
|
793
787
|
o[r] = e[r];
|
|
794
788
|
for (let r = 0; r < t.length; r++)
|
|
795
789
|
o[e.length + r] = t[r];
|
|
796
790
|
return o;
|
|
797
|
-
},
|
|
791
|
+
}, un = (e, t) => ({
|
|
798
792
|
classGroupId: e,
|
|
799
793
|
validator: t
|
|
800
794
|
}), Bt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
801
795
|
nextPart: e,
|
|
802
796
|
validators: t,
|
|
803
797
|
classGroupId: o
|
|
804
|
-
}), Ie = "-", ht = [],
|
|
805
|
-
const t =
|
|
798
|
+
}), Ie = "-", ht = [], fn = "arbitrary..", mn = (e) => {
|
|
799
|
+
const t = hn(e), {
|
|
806
800
|
conflictingClassGroups: o,
|
|
807
801
|
conflictingClassGroupModifiers: r
|
|
808
802
|
} = e;
|
|
809
803
|
return {
|
|
810
804
|
getClassGroupId: (a) => {
|
|
811
805
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
812
|
-
return
|
|
806
|
+
return pn(a);
|
|
813
807
|
const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
814
808
|
return Gt(i, l, t);
|
|
815
809
|
},
|
|
816
810
|
getConflictingClassGroupIds: (a, i) => {
|
|
817
811
|
if (i) {
|
|
818
812
|
const l = r[a], d = o[a];
|
|
819
|
-
return l ? d ?
|
|
813
|
+
return l ? d ? dn(d, l) : l : d || ht;
|
|
820
814
|
}
|
|
821
815
|
return o[a] || ht;
|
|
822
816
|
}
|
|
@@ -838,16 +832,16 @@ const un = (e, t) => {
|
|
|
838
832
|
if (u.validator(i))
|
|
839
833
|
return u.classGroupId;
|
|
840
834
|
}
|
|
841
|
-
},
|
|
835
|
+
}, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
842
836
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
843
|
-
return r ?
|
|
844
|
-
})(),
|
|
837
|
+
return r ? fn + r : void 0;
|
|
838
|
+
})(), hn = (e) => {
|
|
845
839
|
const {
|
|
846
840
|
theme: t,
|
|
847
841
|
classGroups: o
|
|
848
842
|
} = e;
|
|
849
|
-
return
|
|
850
|
-
},
|
|
843
|
+
return gn(o, t);
|
|
844
|
+
}, gn = (e, t) => {
|
|
851
845
|
const o = Bt();
|
|
852
846
|
for (const r in e) {
|
|
853
847
|
const n = e[r];
|
|
@@ -858,28 +852,28 @@ const un = (e, t) => {
|
|
|
858
852
|
const n = e.length;
|
|
859
853
|
for (let s = 0; s < n; s++) {
|
|
860
854
|
const a = e[s];
|
|
861
|
-
|
|
855
|
+
bn(a, t, o, r);
|
|
862
856
|
}
|
|
863
|
-
},
|
|
857
|
+
}, bn = (e, t, o, r) => {
|
|
864
858
|
if (typeof e == "string") {
|
|
865
|
-
|
|
859
|
+
vn(e, t, o);
|
|
866
860
|
return;
|
|
867
861
|
}
|
|
868
862
|
if (typeof e == "function") {
|
|
869
|
-
|
|
863
|
+
xn(e, t, o, r);
|
|
870
864
|
return;
|
|
871
865
|
}
|
|
872
|
-
|
|
873
|
-
},
|
|
866
|
+
wn(e, t, o, r);
|
|
867
|
+
}, vn = (e, t, o) => {
|
|
874
868
|
const r = e === "" ? t : qt(t, e);
|
|
875
869
|
r.classGroupId = o;
|
|
876
|
-
},
|
|
877
|
-
if (
|
|
870
|
+
}, xn = (e, t, o, r) => {
|
|
871
|
+
if (yn(e)) {
|
|
878
872
|
et(e(r), t, o, r);
|
|
879
873
|
return;
|
|
880
874
|
}
|
|
881
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
882
|
-
},
|
|
875
|
+
t.validators === null && (t.validators = []), t.validators.push(un(o, e));
|
|
876
|
+
}, wn = (e, t, o, r) => {
|
|
883
877
|
const n = Object.entries(e), s = n.length;
|
|
884
878
|
for (let a = 0; a < s; a++) {
|
|
885
879
|
const [i, l] = n[a];
|
|
@@ -894,7 +888,7 @@ const un = (e, t) => {
|
|
|
894
888
|
i || (i = Bt(), o.nextPart.set(a, i)), o = i;
|
|
895
889
|
}
|
|
896
890
|
return o;
|
|
897
|
-
},
|
|
891
|
+
}, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
|
|
898
892
|
if (e < 1)
|
|
899
893
|
return {
|
|
900
894
|
get: () => {
|
|
@@ -918,13 +912,13 @@ const un = (e, t) => {
|
|
|
918
912
|
s in o ? o[s] = a : n(s, a);
|
|
919
913
|
}
|
|
920
914
|
};
|
|
921
|
-
}, Xe = "!", gt = ":",
|
|
915
|
+
}, Xe = "!", gt = ":", Sn = [], bt = (e, t, o, r, n) => ({
|
|
922
916
|
modifiers: e,
|
|
923
917
|
hasImportantModifier: t,
|
|
924
918
|
baseClassName: o,
|
|
925
919
|
maybePostfixModifierPosition: r,
|
|
926
920
|
isExternal: n
|
|
927
|
-
}),
|
|
921
|
+
}), Cn = (e) => {
|
|
928
922
|
const {
|
|
929
923
|
prefix: t,
|
|
930
924
|
experimentalParseClassName: o
|
|
@@ -961,7 +955,7 @@ const un = (e, t) => {
|
|
|
961
955
|
};
|
|
962
956
|
if (t) {
|
|
963
957
|
const n = t + gt, s = r;
|
|
964
|
-
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(
|
|
958
|
+
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Sn, !1, a, void 0, !0);
|
|
965
959
|
}
|
|
966
960
|
if (o) {
|
|
967
961
|
const n = r;
|
|
@@ -971,7 +965,7 @@ const un = (e, t) => {
|
|
|
971
965
|
});
|
|
972
966
|
}
|
|
973
967
|
return r;
|
|
974
|
-
},
|
|
968
|
+
}, En = (e) => {
|
|
975
969
|
const t = /* @__PURE__ */ new Map();
|
|
976
970
|
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
977
971
|
t.set(o, 1e6 + r);
|
|
@@ -984,18 +978,18 @@ const un = (e, t) => {
|
|
|
984
978
|
}
|
|
985
979
|
return n.length > 0 && (n.sort(), r.push(...n)), r;
|
|
986
980
|
};
|
|
987
|
-
},
|
|
988
|
-
cache:
|
|
989
|
-
parseClassName:
|
|
990
|
-
sortModifiers:
|
|
991
|
-
...
|
|
992
|
-
}),
|
|
981
|
+
}, Nn = (e) => ({
|
|
982
|
+
cache: kn(e.cacheSize),
|
|
983
|
+
parseClassName: Cn(e),
|
|
984
|
+
sortModifiers: En(e),
|
|
985
|
+
...mn(e)
|
|
986
|
+
}), An = /\s+/, Rn = (e, t) => {
|
|
993
987
|
const {
|
|
994
988
|
parseClassName: o,
|
|
995
989
|
getClassGroupId: r,
|
|
996
990
|
getConflictingClassGroupIds: n,
|
|
997
991
|
sortModifiers: s
|
|
998
|
-
} = t, a = [], i = e.trim().split(
|
|
992
|
+
} = t, a = [], i = e.trim().split(An);
|
|
999
993
|
let l = "";
|
|
1000
994
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
1001
995
|
const u = i[d], {
|
|
@@ -1033,7 +1027,7 @@ const un = (e, t) => {
|
|
|
1033
1027
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1034
1028
|
}
|
|
1035
1029
|
return l;
|
|
1036
|
-
},
|
|
1030
|
+
}, _n = (...e) => {
|
|
1037
1031
|
let t = 0, o, r, n = "";
|
|
1038
1032
|
for (; t < e.length; )
|
|
1039
1033
|
(o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
|
|
@@ -1045,34 +1039,34 @@ const un = (e, t) => {
|
|
|
1045
1039
|
for (let r = 0; r < e.length; r++)
|
|
1046
1040
|
e[r] && (t = Yt(e[r])) && (o && (o += " "), o += t);
|
|
1047
1041
|
return o;
|
|
1048
|
-
},
|
|
1042
|
+
}, In = (e, ...t) => {
|
|
1049
1043
|
let o, r, n, s;
|
|
1050
1044
|
const a = (l) => {
|
|
1051
1045
|
const d = t.reduce((u, f) => f(u), e());
|
|
1052
|
-
return o =
|
|
1046
|
+
return o = Nn(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
|
|
1053
1047
|
}, i = (l) => {
|
|
1054
1048
|
const d = r(l);
|
|
1055
1049
|
if (d)
|
|
1056
1050
|
return d;
|
|
1057
|
-
const u =
|
|
1051
|
+
const u = Rn(l, o);
|
|
1058
1052
|
return n(l, u), u;
|
|
1059
1053
|
};
|
|
1060
|
-
return s = a, (...l) => s(
|
|
1061
|
-
},
|
|
1062
|
-
const t = (o) => o[e] ||
|
|
1054
|
+
return s = a, (...l) => s(_n(...l));
|
|
1055
|
+
}, Pn = [], F = (e) => {
|
|
1056
|
+
const t = (o) => o[e] || Pn;
|
|
1063
1057
|
return t.isThemeGetter = !0, t;
|
|
1064
|
-
}, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
1058
|
+
}, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => zn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Tn.test(e), Kt = () => !0, Fn = (e) => (
|
|
1065
1059
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1066
1060
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1067
1061
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1068
|
-
|
|
1069
|
-
), tt = () => !1,
|
|
1062
|
+
Mn.test(e) && !Ln.test(e)
|
|
1063
|
+
), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !w(e), Hn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, ro, Kt), jn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Bn = (e) => re(e, Qt, Un), Ee = (e) => re(e, no, Dn), w = (e) => Zt.test(e), fe = (e) => ie(e, to), Gn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), qn = (e) => ie(e, eo), Yn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Xn = (e) => ie(e, ro, !0), re = (e, t, o) => {
|
|
1070
1064
|
const r = Xt.exec(e);
|
|
1071
1065
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1072
|
-
},
|
|
1066
|
+
}, ie = (e, t, o = !1) => {
|
|
1073
1067
|
const r = Zt.exec(e);
|
|
1074
1068
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1075
|
-
}, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length",
|
|
1069
|
+
}, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Zn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Kn = () => {
|
|
1076
1070
|
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), g = F("drop-shadow"), k = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
1077
1071
|
"center",
|
|
1078
1072
|
"top",
|
|
@@ -1097,9 +1091,9 @@ const un = (e, t) => {
|
|
|
1097
1091
|
position: [w, v]
|
|
1098
1092
|
}], dt = () => ["no-repeat", {
|
|
1099
1093
|
repeat: ["", "x", "y", "space", "round"]
|
|
1100
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
1094
|
+
}], ut = () => ["auto", "cover", "contain", qn, Hn, {
|
|
1101
1095
|
size: [w, v]
|
|
1102
|
-
}], De = () => [He,
|
|
1096
|
+
}], De = () => [He, fe, se], H = () => [
|
|
1103
1097
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1104
1098
|
"",
|
|
1105
1099
|
"none",
|
|
@@ -1107,7 +1101,7 @@ const un = (e, t) => {
|
|
|
1107
1101
|
d,
|
|
1108
1102
|
w,
|
|
1109
1103
|
v
|
|
1110
|
-
], V = () => ["", I,
|
|
1104
|
+
], V = () => ["", I, fe, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
|
|
1111
1105
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1112
1106
|
"",
|
|
1113
1107
|
"none",
|
|
@@ -1126,7 +1120,7 @@ const un = (e, t) => {
|
|
|
1126
1120
|
container: [K],
|
|
1127
1121
|
"drop-shadow": [K],
|
|
1128
1122
|
ease: ["in", "out", "in-out"],
|
|
1129
|
-
font: [
|
|
1123
|
+
font: [Wn],
|
|
1130
1124
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1131
1125
|
"inset-shadow": [K],
|
|
1132
1126
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1903,7 +1897,7 @@ const un = (e, t) => {
|
|
|
1903
1897
|
* @see https://tailwindcss.com/docs/font-size
|
|
1904
1898
|
*/
|
|
1905
1899
|
"font-size": [{
|
|
1906
|
-
text: ["base", o,
|
|
1900
|
+
text: ["base", o, fe, se]
|
|
1907
1901
|
}],
|
|
1908
1902
|
/**
|
|
1909
1903
|
* Font Smoothing
|
|
@@ -1920,7 +1914,7 @@ const un = (e, t) => {
|
|
|
1920
1914
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1921
1915
|
*/
|
|
1922
1916
|
"font-weight": [{
|
|
1923
|
-
font: [r,
|
|
1917
|
+
font: [r, Xn, Vn]
|
|
1924
1918
|
}],
|
|
1925
1919
|
/**
|
|
1926
1920
|
* Font Stretch
|
|
@@ -1934,7 +1928,7 @@ const un = (e, t) => {
|
|
|
1934
1928
|
* @see https://tailwindcss.com/docs/font-family
|
|
1935
1929
|
*/
|
|
1936
1930
|
"font-family": [{
|
|
1937
|
-
font: [
|
|
1931
|
+
font: [Gn, jn, t]
|
|
1938
1932
|
}],
|
|
1939
1933
|
/**
|
|
1940
1934
|
* Font Feature Settings
|
|
@@ -2196,7 +2190,7 @@ const un = (e, t) => {
|
|
|
2196
2190
|
}, te, w, v],
|
|
2197
2191
|
radial: ["", w, v],
|
|
2198
2192
|
conic: [te, w, v]
|
|
2199
|
-
},
|
|
2193
|
+
}, Yn, Bn]
|
|
2200
2194
|
}],
|
|
2201
2195
|
/**
|
|
2202
2196
|
* Background Color
|
|
@@ -2573,7 +2567,7 @@ const un = (e, t) => {
|
|
|
2573
2567
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2574
2568
|
*/
|
|
2575
2569
|
"outline-w": [{
|
|
2576
|
-
outline: ["", I,
|
|
2570
|
+
outline: ["", I, fe, se]
|
|
2577
2571
|
}],
|
|
2578
2572
|
/**
|
|
2579
2573
|
* Outline Color
|
|
@@ -3626,7 +3620,7 @@ const un = (e, t) => {
|
|
|
3626
3620
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3627
3621
|
*/
|
|
3628
3622
|
"stroke-w": [{
|
|
3629
|
-
stroke: [I,
|
|
3623
|
+
stroke: [I, fe, se, vt]
|
|
3630
3624
|
}],
|
|
3631
3625
|
/**
|
|
3632
3626
|
* Stroke
|
|
@@ -3701,7 +3695,7 @@ const un = (e, t) => {
|
|
|
3701
3695
|
},
|
|
3702
3696
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3703
3697
|
};
|
|
3704
|
-
},
|
|
3698
|
+
}, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(jt(e));
|
|
3705
3699
|
function me({ className: e, ...t }) {
|
|
3706
3700
|
return /* @__PURE__ */ c(
|
|
3707
3701
|
"div",
|
|
@@ -3715,7 +3709,7 @@ function me({ className: e, ...t }) {
|
|
|
3715
3709
|
}
|
|
3716
3710
|
);
|
|
3717
3711
|
}
|
|
3718
|
-
function
|
|
3712
|
+
function Qn({ className: e, ...t }) {
|
|
3719
3713
|
return /* @__PURE__ */ c(
|
|
3720
3714
|
"div",
|
|
3721
3715
|
{
|
|
@@ -3794,8 +3788,8 @@ function Y(...e) {
|
|
|
3794
3788
|
}
|
|
3795
3789
|
// @__NO_SIDE_EFFECTS__
|
|
3796
3790
|
function Pe(e) {
|
|
3797
|
-
const t = /* @__PURE__ */
|
|
3798
|
-
const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(
|
|
3791
|
+
const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
|
|
3792
|
+
const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
|
|
3799
3793
|
if (l) {
|
|
3800
3794
|
const d = l.props.children, u = i.map((f) => f === l ? p.Children.count(d) > 1 ? p.Children.only(null) : p.isValidElement(d) ? d.props.children : null : f);
|
|
3801
3795
|
return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(d) ? p.cloneElement(d, void 0, u) : null });
|
|
@@ -3806,22 +3800,22 @@ function Pe(e) {
|
|
|
3806
3800
|
}
|
|
3807
3801
|
var ao = /* @__PURE__ */ Pe("Slot");
|
|
3808
3802
|
// @__NO_SIDE_EFFECTS__
|
|
3809
|
-
function
|
|
3803
|
+
function es(e) {
|
|
3810
3804
|
const t = p.forwardRef((o, r) => {
|
|
3811
3805
|
const { children: n, ...s } = o;
|
|
3812
3806
|
if (p.isValidElement(n)) {
|
|
3813
|
-
const a =
|
|
3807
|
+
const a = ns(n), i = rs(s, n.props);
|
|
3814
3808
|
return n.type !== p.Fragment && (i.ref = r ? so(r, a) : a), p.cloneElement(n, i);
|
|
3815
3809
|
}
|
|
3816
3810
|
return p.Children.count(n) > 1 ? p.Children.only(null) : null;
|
|
3817
3811
|
});
|
|
3818
3812
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3819
3813
|
}
|
|
3820
|
-
var
|
|
3821
|
-
function
|
|
3822
|
-
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
3814
|
+
var ts = Symbol("radix.slottable");
|
|
3815
|
+
function os(e) {
|
|
3816
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ts;
|
|
3823
3817
|
}
|
|
3824
|
-
function
|
|
3818
|
+
function rs(e, t) {
|
|
3825
3819
|
const o = { ...t };
|
|
3826
3820
|
for (const r in t) {
|
|
3827
3821
|
const n = e[r], s = t[r];
|
|
@@ -3832,12 +3826,12 @@ function ns(e, t) {
|
|
|
3832
3826
|
}
|
|
3833
3827
|
return { ...e, ...o };
|
|
3834
3828
|
}
|
|
3835
|
-
function
|
|
3829
|
+
function ns(e) {
|
|
3836
3830
|
var r, n;
|
|
3837
3831
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
3838
3832
|
return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
3839
3833
|
}
|
|
3840
|
-
var
|
|
3834
|
+
var ss = [
|
|
3841
3835
|
"a",
|
|
3842
3836
|
"button",
|
|
3843
3837
|
"div",
|
|
@@ -3855,7 +3849,7 @@ var as = [
|
|
|
3855
3849
|
"span",
|
|
3856
3850
|
"svg",
|
|
3857
3851
|
"ul"
|
|
3858
|
-
], j =
|
|
3852
|
+
], j = ss.reduce((e, t) => {
|
|
3859
3853
|
const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
|
|
3860
3854
|
const { asChild: a, ...i } = n, l = a ? o : t;
|
|
3861
3855
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
@@ -3892,9 +3886,9 @@ function ge(e, t = []) {
|
|
|
3892
3886
|
);
|
|
3893
3887
|
};
|
|
3894
3888
|
};
|
|
3895
|
-
return n.scopeName = e, [r,
|
|
3889
|
+
return n.scopeName = e, [r, as(n, ...t)];
|
|
3896
3890
|
}
|
|
3897
|
-
function
|
|
3891
|
+
function as(...e) {
|
|
3898
3892
|
const t = e[0];
|
|
3899
3893
|
if (e.length === 1) return t;
|
|
3900
3894
|
const o = () => {
|
|
@@ -3912,7 +3906,7 @@ function is(...e) {
|
|
|
3912
3906
|
};
|
|
3913
3907
|
return o.scopeName = t.scopeName, o;
|
|
3914
3908
|
}
|
|
3915
|
-
function
|
|
3909
|
+
function is(e) {
|
|
3916
3910
|
const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
|
|
3917
3911
|
t,
|
|
3918
3912
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -3959,7 +3953,7 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
|
3959
3953
|
};
|
|
3960
3954
|
}
|
|
3961
3955
|
var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
|
|
3962
|
-
},
|
|
3956
|
+
}, ls = p[" useInsertionEffect ".trim().toString()] || oe;
|
|
3963
3957
|
function io({
|
|
3964
3958
|
prop: e,
|
|
3965
3959
|
defaultProp: t,
|
|
@@ -3967,7 +3961,7 @@ function io({
|
|
|
3967
3961
|
},
|
|
3968
3962
|
caller: r
|
|
3969
3963
|
}) {
|
|
3970
|
-
const [n, s, a] =
|
|
3964
|
+
const [n, s, a] = cs({
|
|
3971
3965
|
defaultProp: t,
|
|
3972
3966
|
onChange: o
|
|
3973
3967
|
}), i = e !== void 0, l = i ? e : n;
|
|
@@ -3984,7 +3978,7 @@ function io({
|
|
|
3984
3978
|
(u) => {
|
|
3985
3979
|
var f;
|
|
3986
3980
|
if (i) {
|
|
3987
|
-
const m =
|
|
3981
|
+
const m = ds(u) ? u(e) : u;
|
|
3988
3982
|
m !== e && ((f = a.current) == null || f.call(a, m));
|
|
3989
3983
|
} else
|
|
3990
3984
|
s(u);
|
|
@@ -3993,31 +3987,31 @@ function io({
|
|
|
3993
3987
|
);
|
|
3994
3988
|
return [l, d];
|
|
3995
3989
|
}
|
|
3996
|
-
function
|
|
3990
|
+
function cs({
|
|
3997
3991
|
defaultProp: e,
|
|
3998
3992
|
onChange: t
|
|
3999
3993
|
}) {
|
|
4000
3994
|
const [o, r] = p.useState(e), n = p.useRef(o), s = p.useRef(t);
|
|
4001
|
-
return
|
|
3995
|
+
return ls(() => {
|
|
4002
3996
|
s.current = t;
|
|
4003
3997
|
}, [t]), p.useEffect(() => {
|
|
4004
3998
|
var a;
|
|
4005
3999
|
n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
|
|
4006
4000
|
}, [o, n]), [o, r, s];
|
|
4007
4001
|
}
|
|
4008
|
-
function
|
|
4002
|
+
function ds(e) {
|
|
4009
4003
|
return typeof e == "function";
|
|
4010
4004
|
}
|
|
4011
|
-
function
|
|
4005
|
+
function us(e, t) {
|
|
4012
4006
|
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4013
4007
|
}
|
|
4014
|
-
var
|
|
4015
|
-
const { present: t, children: o } = e, r =
|
|
4008
|
+
var ue = (e) => {
|
|
4009
|
+
const { present: t, children: o } = e, r = fs(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ms(n));
|
|
4016
4010
|
return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
|
|
4017
4011
|
};
|
|
4018
|
-
|
|
4019
|
-
function
|
|
4020
|
-
const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] =
|
|
4012
|
+
ue.displayName = "Presence";
|
|
4013
|
+
function fs(e) {
|
|
4014
|
+
const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = us(a, {
|
|
4021
4015
|
mounted: {
|
|
4022
4016
|
UNMOUNT: "unmounted",
|
|
4023
4017
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4068,22 +4062,22 @@ function ms(e) {
|
|
|
4068
4062
|
function Ae(e) {
|
|
4069
4063
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4070
4064
|
}
|
|
4071
|
-
function
|
|
4065
|
+
function ms(e) {
|
|
4072
4066
|
var r, n;
|
|
4073
4067
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
4074
4068
|
return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
4075
4069
|
}
|
|
4076
|
-
var
|
|
4077
|
-
}),
|
|
4070
|
+
var ps = p[" useId ".trim().toString()] || (() => {
|
|
4071
|
+
}), hs = 0;
|
|
4078
4072
|
function lo(e) {
|
|
4079
|
-
const [t, o] = p.useState(
|
|
4073
|
+
const [t, o] = p.useState(ps());
|
|
4080
4074
|
return oe(() => {
|
|
4081
|
-
o((r) => r ?? String(
|
|
4075
|
+
o((r) => r ?? String(hs++));
|
|
4082
4076
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4083
4077
|
}
|
|
4084
|
-
var
|
|
4078
|
+
var gs = p.createContext(void 0);
|
|
4085
4079
|
function rt(e) {
|
|
4086
|
-
const t = p.useContext(
|
|
4080
|
+
const t = p.useContext(gs);
|
|
4087
4081
|
return e || t || "ltr";
|
|
4088
4082
|
}
|
|
4089
4083
|
function J(e) {
|
|
@@ -4106,7 +4100,7 @@ var Ve = { exports: {} }, je = {};
|
|
|
4106
4100
|
* LICENSE file in the root directory of this source tree.
|
|
4107
4101
|
*/
|
|
4108
4102
|
var Ct;
|
|
4109
|
-
function
|
|
4103
|
+
function bs() {
|
|
4110
4104
|
if (Ct) return je;
|
|
4111
4105
|
Ct = 1;
|
|
4112
4106
|
var e = G;
|
|
@@ -4147,26 +4141,26 @@ function vs() {
|
|
|
4147
4141
|
return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
|
|
4148
4142
|
}
|
|
4149
4143
|
var Et;
|
|
4150
|
-
function
|
|
4151
|
-
return Et || (Et = 1, Ve.exports =
|
|
4144
|
+
function vs() {
|
|
4145
|
+
return Et || (Et = 1, Ve.exports = bs()), Ve.exports;
|
|
4152
4146
|
}
|
|
4153
|
-
var
|
|
4154
|
-
function
|
|
4155
|
-
return
|
|
4156
|
-
|
|
4147
|
+
var xs = vs();
|
|
4148
|
+
function ws() {
|
|
4149
|
+
return xs.useSyncExternalStore(
|
|
4150
|
+
ys,
|
|
4157
4151
|
() => !0,
|
|
4158
4152
|
() => !1
|
|
4159
4153
|
);
|
|
4160
4154
|
}
|
|
4161
|
-
function
|
|
4155
|
+
function ys() {
|
|
4162
4156
|
return () => {
|
|
4163
4157
|
};
|
|
4164
4158
|
}
|
|
4165
|
-
var nt = "Avatar", [
|
|
4159
|
+
var nt = "Avatar", [ks] = ge(nt), [Ss, co] = ks(nt), uo = p.forwardRef(
|
|
4166
4160
|
(e, t) => {
|
|
4167
4161
|
const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
|
|
4168
4162
|
return /* @__PURE__ */ c(
|
|
4169
|
-
|
|
4163
|
+
Ss,
|
|
4170
4164
|
{
|
|
4171
4165
|
scope: o,
|
|
4172
4166
|
imageLoadingStatus: n,
|
|
@@ -4180,7 +4174,7 @@ uo.displayName = nt;
|
|
|
4180
4174
|
var fo = "AvatarImage", mo = p.forwardRef(
|
|
4181
4175
|
(e, t) => {
|
|
4182
4176
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4183
|
-
}, ...s } = e, a = co(fo, o), i =
|
|
4177
|
+
}, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((d) => {
|
|
4184
4178
|
n(d), a.onImageLoadingStatusChange(d);
|
|
4185
4179
|
});
|
|
4186
4180
|
return oe(() => {
|
|
@@ -4204,8 +4198,8 @@ ho.displayName = po;
|
|
|
4204
4198
|
function Nt(e, t) {
|
|
4205
4199
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4206
4200
|
}
|
|
4207
|
-
function
|
|
4208
|
-
const r =
|
|
4201
|
+
function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
4202
|
+
const r = ws(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
|
|
4209
4203
|
() => Nt(s, e)
|
|
4210
4204
|
);
|
|
4211
4205
|
return oe(() => {
|
|
@@ -4221,14 +4215,14 @@ function Es(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
|
4221
4215
|
};
|
|
4222
4216
|
}, [s, o, t]), a;
|
|
4223
4217
|
}
|
|
4224
|
-
var
|
|
4218
|
+
var Es = uo, Ns = mo, As = ho, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, _s] = is(be), [Is, bo] = ge(
|
|
4225
4219
|
be,
|
|
4226
|
-
[
|
|
4227
|
-
), [
|
|
4228
|
-
(e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(
|
|
4220
|
+
[_s]
|
|
4221
|
+
), [Ps, zs] = Is(be), vo = p.forwardRef(
|
|
4222
|
+
(e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
|
|
4229
4223
|
);
|
|
4230
4224
|
vo.displayName = be;
|
|
4231
|
-
var
|
|
4225
|
+
var Ts = p.forwardRef((e, t) => {
|
|
4232
4226
|
const {
|
|
4233
4227
|
__scopeRovingFocusGroup: o,
|
|
4234
4228
|
orientation: r,
|
|
@@ -4251,7 +4245,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4251
4245
|
if (b)
|
|
4252
4246
|
return b.addEventListener(Be, C), () => b.removeEventListener(Be, C);
|
|
4253
4247
|
}, [C]), /* @__PURE__ */ c(
|
|
4254
|
-
|
|
4248
|
+
Ps,
|
|
4255
4249
|
{
|
|
4256
4250
|
scope: o,
|
|
4257
4251
|
orientation: r,
|
|
@@ -4285,7 +4279,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4285
4279
|
onFocus: W(e.onFocus, (b) => {
|
|
4286
4280
|
const S = !P.current;
|
|
4287
4281
|
if (b.target === b.currentTarget && S && !y) {
|
|
4288
|
-
const M = new CustomEvent(Be,
|
|
4282
|
+
const M = new CustomEvent(Be, Rs);
|
|
4289
4283
|
if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
4290
4284
|
const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [Z, ve, ...O].filter(
|
|
4291
4285
|
Boolean
|
|
@@ -4309,7 +4303,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4309
4303
|
tabStopId: s,
|
|
4310
4304
|
children: a,
|
|
4311
4305
|
...i
|
|
4312
|
-
} = e, l = lo(), d = s || l, u =
|
|
4306
|
+
} = e, l = lo(), d = s || l, u = zs(xo, o), f = u.currentTabStopId === d, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = u;
|
|
4313
4307
|
return p.useEffect(() => {
|
|
4314
4308
|
if (r)
|
|
4315
4309
|
return g(), () => k();
|
|
@@ -4337,7 +4331,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4337
4331
|
return;
|
|
4338
4332
|
}
|
|
4339
4333
|
if (h.target !== h.currentTarget) return;
|
|
4340
|
-
const y =
|
|
4334
|
+
const y = Os(h, u.orientation, u.dir);
|
|
4341
4335
|
if (y !== void 0) {
|
|
4342
4336
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
4343
4337
|
h.preventDefault();
|
|
@@ -4346,7 +4340,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4346
4340
|
else if (y === "prev" || y === "next") {
|
|
4347
4341
|
y === "prev" && C.reverse();
|
|
4348
4342
|
const A = C.indexOf(h.currentTarget);
|
|
4349
|
-
C = u.loop ?
|
|
4343
|
+
C = u.loop ? $s(C, A + 1) : C.slice(A + 1);
|
|
4350
4344
|
}
|
|
4351
4345
|
setTimeout(() => yo(C));
|
|
4352
4346
|
}
|
|
@@ -4359,7 +4353,7 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4359
4353
|
}
|
|
4360
4354
|
);
|
|
4361
4355
|
wo.displayName = xo;
|
|
4362
|
-
var
|
|
4356
|
+
var Ms = {
|
|
4363
4357
|
ArrowLeft: "prev",
|
|
4364
4358
|
ArrowUp: "prev",
|
|
4365
4359
|
ArrowRight: "next",
|
|
@@ -4369,30 +4363,30 @@ var Ls = {
|
|
|
4369
4363
|
PageDown: "last",
|
|
4370
4364
|
End: "last"
|
|
4371
4365
|
};
|
|
4372
|
-
function
|
|
4366
|
+
function Ls(e, t) {
|
|
4373
4367
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4374
4368
|
}
|
|
4375
|
-
function
|
|
4376
|
-
const r =
|
|
4369
|
+
function Os(e, t, o) {
|
|
4370
|
+
const r = Ls(e.key, o);
|
|
4377
4371
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4378
|
-
return
|
|
4372
|
+
return Ms[r];
|
|
4379
4373
|
}
|
|
4380
4374
|
function yo(e, t = !1) {
|
|
4381
4375
|
const o = document.activeElement;
|
|
4382
4376
|
for (const r of e)
|
|
4383
4377
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
4384
4378
|
}
|
|
4385
|
-
function
|
|
4379
|
+
function $s(e, t) {
|
|
4386
4380
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
4387
4381
|
}
|
|
4388
|
-
var
|
|
4389
|
-
function
|
|
4382
|
+
var Fs = vo, Ds = wo;
|
|
4383
|
+
function Us(e, [t, o]) {
|
|
4390
4384
|
return Math.min(o, Math.max(t, e));
|
|
4391
4385
|
}
|
|
4392
|
-
function
|
|
4386
|
+
function Ws(e, t) {
|
|
4393
4387
|
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4394
4388
|
}
|
|
4395
|
-
var st = "ScrollArea", [ko] = ge(st), [
|
|
4389
|
+
var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
|
|
4396
4390
|
(e, t) => {
|
|
4397
4391
|
const {
|
|
4398
4392
|
__scopeScrollArea: o,
|
|
@@ -4402,7 +4396,7 @@ var st = "ScrollArea", [ko] = ge(st), [Vs, q] = ko(st), So = p.forwardRef(
|
|
|
4402
4396
|
...a
|
|
4403
4397
|
} = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [g, k] = p.useState(null), [x, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, b] = p.useState(!1), S = Y(t, (O) => l(O)), M = rt(n);
|
|
4404
4398
|
return /* @__PURE__ */ c(
|
|
4405
|
-
|
|
4399
|
+
Hs,
|
|
4406
4400
|
{
|
|
4407
4401
|
scope: o,
|
|
4408
4402
|
type: r,
|
|
@@ -4490,11 +4484,11 @@ var X = "ScrollAreaScrollbar", No = p.forwardRef(
|
|
|
4490
4484
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4491
4485
|
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4492
4486
|
i ? s(!1) : a(!1);
|
|
4493
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(
|
|
4487
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
|
|
4494
4488
|
}
|
|
4495
4489
|
);
|
|
4496
4490
|
No.displayName = X;
|
|
4497
|
-
var
|
|
4491
|
+
var Vs = p.forwardRef((e, t) => {
|
|
4498
4492
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
|
|
4499
4493
|
return p.useEffect(() => {
|
|
4500
4494
|
const i = n.scrollArea;
|
|
@@ -4509,7 +4503,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4509
4503
|
window.clearTimeout(l), i.removeEventListener("pointerenter", d), i.removeEventListener("pointerleave", u);
|
|
4510
4504
|
};
|
|
4511
4505
|
}
|
|
4512
|
-
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(
|
|
4506
|
+
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(ue, { present: o || s, children: /* @__PURE__ */ c(
|
|
4513
4507
|
Ao,
|
|
4514
4508
|
{
|
|
4515
4509
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -4517,8 +4511,8 @@ var js = p.forwardRef((e, t) => {
|
|
|
4517
4511
|
ref: t
|
|
4518
4512
|
}
|
|
4519
4513
|
) });
|
|
4520
|
-
}),
|
|
4521
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] =
|
|
4514
|
+
}), js = p.forwardRef((e, t) => {
|
|
4515
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Ws("hidden", {
|
|
4522
4516
|
hidden: {
|
|
4523
4517
|
SCROLL: "scrolling"
|
|
4524
4518
|
},
|
|
@@ -4551,7 +4545,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4551
4545
|
};
|
|
4552
4546
|
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
4553
4547
|
}
|
|
4554
|
-
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(
|
|
4548
|
+
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(ue, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
|
|
4555
4549
|
at,
|
|
4556
4550
|
{
|
|
4557
4551
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
@@ -4568,7 +4562,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4568
4562
|
a(i ? d : u);
|
|
4569
4563
|
}
|
|
4570
4564
|
}, 10);
|
|
4571
|
-
return
|
|
4565
|
+
return de(o.viewport, l), de(o.content, l), /* @__PURE__ */ c(ue, { present: r || s, children: /* @__PURE__ */ c(
|
|
4572
4566
|
at,
|
|
4573
4567
|
{
|
|
4574
4568
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -4591,10 +4585,10 @@ var js = p.forwardRef((e, t) => {
|
|
|
4591
4585
|
onThumbPointerDown: (m) => a.current = m
|
|
4592
4586
|
};
|
|
4593
4587
|
function f(m, g) {
|
|
4594
|
-
return
|
|
4588
|
+
return Zs(m, a.current, i, g);
|
|
4595
4589
|
}
|
|
4596
4590
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4597
|
-
|
|
4591
|
+
Bs,
|
|
4598
4592
|
{
|
|
4599
4593
|
...u,
|
|
4600
4594
|
ref: t,
|
|
@@ -4612,7 +4606,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4612
4606
|
}
|
|
4613
4607
|
}
|
|
4614
4608
|
) : o === "vertical" ? /* @__PURE__ */ c(
|
|
4615
|
-
|
|
4609
|
+
Gs,
|
|
4616
4610
|
{
|
|
4617
4611
|
...u,
|
|
4618
4612
|
ref: t,
|
|
@@ -4630,7 +4624,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4630
4624
|
}
|
|
4631
4625
|
}
|
|
4632
4626
|
) : null;
|
|
4633
|
-
}),
|
|
4627
|
+
}), Bs = p.forwardRef((e, t) => {
|
|
4634
4628
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarXChange);
|
|
4635
4629
|
return p.useEffect(() => {
|
|
4636
4630
|
l.current && i(getComputedStyle(l.current));
|
|
@@ -4669,7 +4663,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4669
4663
|
}
|
|
4670
4664
|
}
|
|
4671
4665
|
);
|
|
4672
|
-
}),
|
|
4666
|
+
}), Gs = p.forwardRef((e, t) => {
|
|
4673
4667
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarYChange);
|
|
4674
4668
|
return p.useEffect(() => {
|
|
4675
4669
|
l.current && i(getComputedStyle(l.current));
|
|
@@ -4709,7 +4703,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4709
4703
|
}
|
|
4710
4704
|
}
|
|
4711
4705
|
);
|
|
4712
|
-
}), [
|
|
4706
|
+
}), [qs, Ro] = ko(X), _o = p.forwardRef((e, t) => {
|
|
4713
4707
|
const {
|
|
4714
4708
|
__scopeScrollArea: o,
|
|
4715
4709
|
sizes: r,
|
|
@@ -4735,8 +4729,8 @@ var js = p.forwardRef((e, t) => {
|
|
|
4735
4729
|
(k == null ? void 0 : k.contains(O)) && P(M, A);
|
|
4736
4730
|
};
|
|
4737
4731
|
return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
|
|
4738
|
-
}, [C, k, A, P]), p.useEffect(E, [r, E]),
|
|
4739
|
-
|
|
4732
|
+
}, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, _), de(g.content, _), /* @__PURE__ */ c(
|
|
4733
|
+
qs,
|
|
4740
4734
|
{
|
|
4741
4735
|
scope: o,
|
|
4742
4736
|
scrollbar: k,
|
|
@@ -4766,9 +4760,9 @@ var js = p.forwardRef((e, t) => {
|
|
|
4766
4760
|
}), ze = "ScrollAreaThumb", Io = p.forwardRef(
|
|
4767
4761
|
(e, t) => {
|
|
4768
4762
|
const { forceMount: o, ...r } = e, n = Ro(ze, e.__scopeScrollArea);
|
|
4769
|
-
return /* @__PURE__ */ c(
|
|
4763
|
+
return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
|
|
4770
4764
|
}
|
|
4771
|
-
),
|
|
4765
|
+
), Ys = p.forwardRef(
|
|
4772
4766
|
(e, t) => {
|
|
4773
4767
|
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ro(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4774
4768
|
t,
|
|
@@ -4781,7 +4775,7 @@ var js = p.forwardRef((e, t) => {
|
|
|
4781
4775
|
if (f) {
|
|
4782
4776
|
const m = () => {
|
|
4783
4777
|
if (u(), !d.current) {
|
|
4784
|
-
const g =
|
|
4778
|
+
const g = Ks(f, i);
|
|
4785
4779
|
d.current = g, i();
|
|
4786
4780
|
}
|
|
4787
4781
|
};
|
|
@@ -4811,17 +4805,17 @@ Io.displayName = ze;
|
|
|
4811
4805
|
var it = "ScrollAreaCorner", Po = p.forwardRef(
|
|
4812
4806
|
(e, t) => {
|
|
4813
4807
|
const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4814
|
-
return o.type !== "scroll" && r ? /* @__PURE__ */ c(
|
|
4808
|
+
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
|
|
4815
4809
|
}
|
|
4816
4810
|
);
|
|
4817
4811
|
Po.displayName = it;
|
|
4818
|
-
var
|
|
4812
|
+
var Xs = p.forwardRef((e, t) => {
|
|
4819
4813
|
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
|
|
4820
|
-
return
|
|
4814
|
+
return de(n.scrollbarX, () => {
|
|
4821
4815
|
var f;
|
|
4822
4816
|
const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
4823
4817
|
n.onCornerHeightChange(u), l(u);
|
|
4824
|
-
}),
|
|
4818
|
+
}), de(n.scrollbarY, () => {
|
|
4825
4819
|
var f;
|
|
4826
4820
|
const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
4827
4821
|
n.onCornerWidthChange(u), a(u);
|
|
@@ -4853,12 +4847,12 @@ function Me(e) {
|
|
|
4853
4847
|
const t = zo(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4854
4848
|
return Math.max(r, 18);
|
|
4855
4849
|
}
|
|
4856
|
-
function
|
|
4850
|
+
function Zs(e, t, o, r = "ltr") {
|
|
4857
4851
|
const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, d = o.scrollbar.size - o.scrollbar.paddingEnd - i, u = o.content - o.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
4858
4852
|
return To([l, d], f)(e);
|
|
4859
4853
|
}
|
|
4860
4854
|
function At(e, t, o = "ltr") {
|
|
4861
|
-
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d =
|
|
4855
|
+
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Us(e, l);
|
|
4862
4856
|
return To([0, a], [0, i])(d);
|
|
4863
4857
|
}
|
|
4864
4858
|
function To(e, t) {
|
|
@@ -4871,7 +4865,7 @@ function To(e, t) {
|
|
|
4871
4865
|
function Mo(e, t) {
|
|
4872
4866
|
return e > 0 && e < t;
|
|
4873
4867
|
}
|
|
4874
|
-
var
|
|
4868
|
+
var Ks = (e, t = () => {
|
|
4875
4869
|
}) => {
|
|
4876
4870
|
let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
4877
4871
|
return (function n() {
|
|
@@ -4885,7 +4879,7 @@ function Le(e, t) {
|
|
|
4885
4879
|
window.clearTimeout(r.current), r.current = window.setTimeout(o, t);
|
|
4886
4880
|
}, [o, t]);
|
|
4887
4881
|
}
|
|
4888
|
-
function
|
|
4882
|
+
function de(e, t) {
|
|
4889
4883
|
const o = J(t);
|
|
4890
4884
|
oe(() => {
|
|
4891
4885
|
let r = 0;
|
|
@@ -4899,8 +4893,8 @@ function ce(e, t) {
|
|
|
4899
4893
|
}
|
|
4900
4894
|
}, [e, o]);
|
|
4901
4895
|
}
|
|
4902
|
-
var
|
|
4903
|
-
const { decorative: o, orientation: r = Rt, ...n } = e, s =
|
|
4896
|
+
var Js = So, Qs = Eo, ea = Po, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
|
|
4897
|
+
const { decorative: o, orientation: r = Rt, ...n } = e, s = ra(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4904
4898
|
return /* @__PURE__ */ c(
|
|
4905
4899
|
j.div,
|
|
4906
4900
|
{
|
|
@@ -4911,13 +4905,13 @@ var Qs = So, ea = Eo, ta = Po, oa = "Separator", Rt = "horizontal", ra = ["horiz
|
|
|
4911
4905
|
}
|
|
4912
4906
|
);
|
|
4913
4907
|
});
|
|
4914
|
-
Lo.displayName =
|
|
4915
|
-
function
|
|
4916
|
-
return
|
|
4908
|
+
Lo.displayName = ta;
|
|
4909
|
+
function ra(e) {
|
|
4910
|
+
return oa.includes(e);
|
|
4917
4911
|
}
|
|
4918
|
-
var
|
|
4912
|
+
var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
4919
4913
|
bo
|
|
4920
|
-
]), Oo = bo(), [
|
|
4914
|
+
]), Oo = bo(), [aa, lt] = sa(Oe), $o = p.forwardRef(
|
|
4921
4915
|
(e, t) => {
|
|
4922
4916
|
const {
|
|
4923
4917
|
__scopeTabs: o,
|
|
@@ -4935,7 +4929,7 @@ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
|
|
|
4935
4929
|
caller: Oe
|
|
4936
4930
|
});
|
|
4937
4931
|
return /* @__PURE__ */ c(
|
|
4938
|
-
|
|
4932
|
+
aa,
|
|
4939
4933
|
{
|
|
4940
4934
|
scope: o,
|
|
4941
4935
|
baseId: lo(),
|
|
@@ -4962,7 +4956,7 @@ var Fo = "TabsList", Do = p.forwardRef(
|
|
|
4962
4956
|
(e, t) => {
|
|
4963
4957
|
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Fo, o), a = Oo(o);
|
|
4964
4958
|
return /* @__PURE__ */ c(
|
|
4965
|
-
|
|
4959
|
+
Fs,
|
|
4966
4960
|
{
|
|
4967
4961
|
asChild: !0,
|
|
4968
4962
|
...a,
|
|
@@ -4987,7 +4981,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
|
|
|
4987
4981
|
(e, t) => {
|
|
4988
4982
|
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = jo(a.baseId, r), d = Bo(a.baseId, r), u = r === a.value;
|
|
4989
4983
|
return /* @__PURE__ */ c(
|
|
4990
|
-
|
|
4984
|
+
Ds,
|
|
4991
4985
|
{
|
|
4992
4986
|
asChild: !0,
|
|
4993
4987
|
...i,
|
|
@@ -5029,7 +5023,7 @@ var Ho = "TabsContent", Vo = p.forwardRef(
|
|
|
5029
5023
|
return p.useEffect(() => {
|
|
5030
5024
|
const m = requestAnimationFrame(() => f.current = !1);
|
|
5031
5025
|
return () => cancelAnimationFrame(m);
|
|
5032
|
-
}, []), /* @__PURE__ */ c(
|
|
5026
|
+
}, []), /* @__PURE__ */ c(ue, { present: n || u, children: ({ present: m }) => /* @__PURE__ */ c(
|
|
5033
5027
|
j.div,
|
|
5034
5028
|
{
|
|
5035
5029
|
"data-state": u ? "active" : "inactive",
|
|
@@ -5057,8 +5051,8 @@ function jo(e, t) {
|
|
|
5057
5051
|
function Bo(e, t) {
|
|
5058
5052
|
return `${e}-content-${t}`;
|
|
5059
5053
|
}
|
|
5060
|
-
var
|
|
5061
|
-
const
|
|
5054
|
+
var ia = $o, la = Do, ca = Wo, da = Vo;
|
|
5055
|
+
const ua = ot(
|
|
5062
5056
|
'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
5063
5057
|
{
|
|
5064
5058
|
variants: {
|
|
@@ -5100,12 +5094,12 @@ function Go({
|
|
|
5100
5094
|
"data-slot": "button",
|
|
5101
5095
|
"data-variant": t,
|
|
5102
5096
|
"data-size": o,
|
|
5103
|
-
className: T(
|
|
5097
|
+
className: T(ua({ variant: t, size: o, className: e })),
|
|
5104
5098
|
...n
|
|
5105
5099
|
}
|
|
5106
5100
|
);
|
|
5107
5101
|
}
|
|
5108
|
-
const
|
|
5102
|
+
const fa = ot(
|
|
5109
5103
|
"inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
5110
5104
|
{
|
|
5111
5105
|
variants: {
|
|
@@ -5123,7 +5117,7 @@ const ma = ot(
|
|
|
5123
5117
|
}
|
|
5124
5118
|
}
|
|
5125
5119
|
);
|
|
5126
|
-
function
|
|
5120
|
+
function ma({
|
|
5127
5121
|
className: e,
|
|
5128
5122
|
variant: t = "default",
|
|
5129
5123
|
asChild: o = !1,
|
|
@@ -5134,12 +5128,12 @@ function pa({
|
|
|
5134
5128
|
{
|
|
5135
5129
|
"data-slot": "badge",
|
|
5136
5130
|
"data-variant": t,
|
|
5137
|
-
className: T(
|
|
5131
|
+
className: T(fa({ variant: t }), e),
|
|
5138
5132
|
...r
|
|
5139
5133
|
}
|
|
5140
5134
|
);
|
|
5141
5135
|
}
|
|
5142
|
-
function
|
|
5136
|
+
function pa({ className: e, type: t, ...o }) {
|
|
5143
5137
|
return /* @__PURE__ */ c(
|
|
5144
5138
|
"input",
|
|
5145
5139
|
{
|
|
@@ -5155,14 +5149,14 @@ function ha({ className: e, type: t, ...o }) {
|
|
|
5155
5149
|
}
|
|
5156
5150
|
);
|
|
5157
5151
|
}
|
|
5158
|
-
function
|
|
5152
|
+
function ha({
|
|
5159
5153
|
className: e,
|
|
5160
5154
|
orientation: t = "horizontal",
|
|
5161
5155
|
decorative: o = !0,
|
|
5162
5156
|
...r
|
|
5163
5157
|
}) {
|
|
5164
5158
|
return /* @__PURE__ */ c(
|
|
5165
|
-
|
|
5159
|
+
na,
|
|
5166
5160
|
{
|
|
5167
5161
|
"data-slot": "separator",
|
|
5168
5162
|
decorative: o,
|
|
@@ -5175,13 +5169,13 @@ function ga({
|
|
|
5175
5169
|
}
|
|
5176
5170
|
);
|
|
5177
5171
|
}
|
|
5178
|
-
function
|
|
5172
|
+
function ga({
|
|
5179
5173
|
className: e,
|
|
5180
5174
|
orientation: t = "horizontal",
|
|
5181
5175
|
...o
|
|
5182
5176
|
}) {
|
|
5183
5177
|
return /* @__PURE__ */ c(
|
|
5184
|
-
|
|
5178
|
+
ia,
|
|
5185
5179
|
{
|
|
5186
5180
|
"data-slot": "tabs",
|
|
5187
5181
|
"data-orientation": t,
|
|
@@ -5194,7 +5188,7 @@ function ba({
|
|
|
5194
5188
|
}
|
|
5195
5189
|
);
|
|
5196
5190
|
}
|
|
5197
|
-
const
|
|
5191
|
+
const ba = ot(
|
|
5198
5192
|
"rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
|
|
5199
5193
|
{
|
|
5200
5194
|
variants: {
|
|
@@ -5208,27 +5202,27 @@ const va = ot(
|
|
|
5208
5202
|
}
|
|
5209
5203
|
}
|
|
5210
5204
|
);
|
|
5211
|
-
function
|
|
5205
|
+
function va({
|
|
5212
5206
|
className: e,
|
|
5213
5207
|
variant: t = "default",
|
|
5214
5208
|
...o
|
|
5215
5209
|
}) {
|
|
5216
5210
|
return /* @__PURE__ */ c(
|
|
5217
|
-
|
|
5211
|
+
la,
|
|
5218
5212
|
{
|
|
5219
5213
|
"data-slot": "tabs-list",
|
|
5220
5214
|
"data-variant": t,
|
|
5221
|
-
className: T(
|
|
5215
|
+
className: T(ba({ variant: t }), e),
|
|
5222
5216
|
...o
|
|
5223
5217
|
}
|
|
5224
5218
|
);
|
|
5225
5219
|
}
|
|
5226
|
-
function
|
|
5220
|
+
function xa({
|
|
5227
5221
|
className: e,
|
|
5228
5222
|
...t
|
|
5229
5223
|
}) {
|
|
5230
5224
|
return /* @__PURE__ */ c(
|
|
5231
|
-
|
|
5225
|
+
ca,
|
|
5232
5226
|
{
|
|
5233
5227
|
"data-slot": "tabs-trigger",
|
|
5234
5228
|
className: T(
|
|
@@ -5242,12 +5236,12 @@ function wa({
|
|
|
5242
5236
|
}
|
|
5243
5237
|
);
|
|
5244
5238
|
}
|
|
5245
|
-
function
|
|
5239
|
+
function wa({
|
|
5246
5240
|
className: e,
|
|
5247
5241
|
...t
|
|
5248
5242
|
}) {
|
|
5249
5243
|
return /* @__PURE__ */ c(
|
|
5250
|
-
|
|
5244
|
+
da,
|
|
5251
5245
|
{
|
|
5252
5246
|
"data-slot": "tabs-content",
|
|
5253
5247
|
className: T("flex-1 outline-none", e),
|
|
@@ -5255,7 +5249,7 @@ function ya({
|
|
|
5255
5249
|
}
|
|
5256
5250
|
);
|
|
5257
5251
|
}
|
|
5258
|
-
function
|
|
5252
|
+
function ya({
|
|
5259
5253
|
className: e,
|
|
5260
5254
|
orientation: t = "vertical",
|
|
5261
5255
|
...o
|
|
@@ -5282,28 +5276,28 @@ function ka({
|
|
|
5282
5276
|
}
|
|
5283
5277
|
);
|
|
5284
5278
|
}
|
|
5285
|
-
function
|
|
5279
|
+
function ka({
|
|
5286
5280
|
className: e,
|
|
5287
5281
|
children: t,
|
|
5288
5282
|
...o
|
|
5289
5283
|
}) {
|
|
5290
5284
|
return /* @__PURE__ */ z(
|
|
5291
|
-
|
|
5285
|
+
Js,
|
|
5292
5286
|
{
|
|
5293
5287
|
"data-slot": "scroll-area",
|
|
5294
5288
|
className: T("relative", e),
|
|
5295
5289
|
...o,
|
|
5296
5290
|
children: [
|
|
5297
5291
|
/* @__PURE__ */ c(
|
|
5298
|
-
|
|
5292
|
+
Qs,
|
|
5299
5293
|
{
|
|
5300
5294
|
"data-slot": "scroll-area-viewport",
|
|
5301
5295
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
5302
5296
|
children: t
|
|
5303
5297
|
}
|
|
5304
5298
|
),
|
|
5305
|
-
/* @__PURE__ */ c(
|
|
5306
|
-
/* @__PURE__ */ c(
|
|
5299
|
+
/* @__PURE__ */ c(ya, {}),
|
|
5300
|
+
/* @__PURE__ */ c(ea, {})
|
|
5307
5301
|
]
|
|
5308
5302
|
}
|
|
5309
5303
|
);
|
|
@@ -5314,7 +5308,7 @@ function Ke({
|
|
|
5314
5308
|
...o
|
|
5315
5309
|
}) {
|
|
5316
5310
|
return /* @__PURE__ */ c(
|
|
5317
|
-
|
|
5311
|
+
Es,
|
|
5318
5312
|
{
|
|
5319
5313
|
"data-slot": "avatar",
|
|
5320
5314
|
"data-size": t,
|
|
@@ -5331,7 +5325,7 @@ function Je({
|
|
|
5331
5325
|
...t
|
|
5332
5326
|
}) {
|
|
5333
5327
|
return /* @__PURE__ */ c(
|
|
5334
|
-
|
|
5328
|
+
Ns,
|
|
5335
5329
|
{
|
|
5336
5330
|
"data-slot": "avatar-image",
|
|
5337
5331
|
className: T("aspect-square size-full", e),
|
|
@@ -5344,7 +5338,7 @@ function Qe({
|
|
|
5344
5338
|
...t
|
|
5345
5339
|
}) {
|
|
5346
5340
|
return /* @__PURE__ */ c(
|
|
5347
|
-
|
|
5341
|
+
As,
|
|
5348
5342
|
{
|
|
5349
5343
|
"data-slot": "avatar-fallback",
|
|
5350
5344
|
className: T(
|
|
@@ -5356,31 +5350,31 @@ function Qe({
|
|
|
5356
5350
|
);
|
|
5357
5351
|
}
|
|
5358
5352
|
const qo = {
|
|
5359
|
-
"arrow-left":
|
|
5360
|
-
calendar:
|
|
5361
|
-
"check-circle-2":
|
|
5362
|
-
"chevron-left":
|
|
5353
|
+
"arrow-left": xr,
|
|
5354
|
+
calendar: Sr,
|
|
5355
|
+
"check-circle-2": Ir,
|
|
5356
|
+
"chevron-left": Er,
|
|
5363
5357
|
"chevron-right": Dt,
|
|
5364
|
-
clock:
|
|
5365
|
-
"credit-card":
|
|
5366
|
-
"external-link":
|
|
5367
|
-
"help-circle":
|
|
5368
|
-
info:
|
|
5358
|
+
clock: Or,
|
|
5359
|
+
"credit-card": Fr,
|
|
5360
|
+
"external-link": Ur,
|
|
5361
|
+
"help-circle": zr,
|
|
5362
|
+
info: Hr,
|
|
5369
5363
|
"loader-2": Ut,
|
|
5370
5364
|
mail: Ye,
|
|
5371
|
-
"map-pin":
|
|
5372
|
-
"message-circle":
|
|
5365
|
+
"map-pin": Gr,
|
|
5366
|
+
"message-circle": Yr,
|
|
5373
5367
|
"message-square": Wt,
|
|
5374
|
-
package:
|
|
5375
|
-
phone:
|
|
5376
|
-
search:
|
|
5377
|
-
"shopping-bag":
|
|
5378
|
-
sparkles:
|
|
5379
|
-
truck:
|
|
5368
|
+
package: Kr,
|
|
5369
|
+
phone: Qr,
|
|
5370
|
+
search: tn,
|
|
5371
|
+
"shopping-bag": rn,
|
|
5372
|
+
sparkles: sn,
|
|
5373
|
+
truck: ln,
|
|
5380
5374
|
user: Ht,
|
|
5381
|
-
"x-circle":
|
|
5382
|
-
"alert-circle":
|
|
5383
|
-
"book-open":
|
|
5375
|
+
"x-circle": Mr,
|
|
5376
|
+
"alert-circle": Rr,
|
|
5377
|
+
"book-open": yr
|
|
5384
5378
|
}, _t = {
|
|
5385
5379
|
0: "gap-0",
|
|
5386
5380
|
1: "gap-1",
|
|
@@ -5392,14 +5386,14 @@ const qo = {
|
|
|
5392
5386
|
8: "gap-8",
|
|
5393
5387
|
10: "gap-10",
|
|
5394
5388
|
12: "gap-12"
|
|
5395
|
-
}, Yo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2",
|
|
5389
|
+
}, Yo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5396
5390
|
me,
|
|
5397
5391
|
{
|
|
5398
5392
|
className: t,
|
|
5399
5393
|
onClick: o,
|
|
5400
5394
|
children: e
|
|
5401
5395
|
}
|
|
5402
|
-
),
|
|
5396
|
+
), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(Qn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
|
|
5403
5397
|
Go,
|
|
5404
5398
|
{
|
|
5405
5399
|
className: t,
|
|
@@ -5410,30 +5404,30 @@ const qo = {
|
|
|
5410
5404
|
title: a,
|
|
5411
5405
|
children: e
|
|
5412
5406
|
}
|
|
5413
|
-
),
|
|
5414
|
-
|
|
5407
|
+
), Aa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
|
|
5408
|
+
ma,
|
|
5415
5409
|
{
|
|
5416
5410
|
className: t,
|
|
5417
5411
|
variant: o,
|
|
5418
5412
|
children: e
|
|
5419
5413
|
}
|
|
5420
|
-
),
|
|
5421
|
-
|
|
5414
|
+
), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
|
|
5415
|
+
pa,
|
|
5422
5416
|
{
|
|
5423
5417
|
className: e,
|
|
5424
5418
|
onChange: t,
|
|
5425
5419
|
...o
|
|
5426
5420
|
}
|
|
5427
|
-
),
|
|
5421
|
+
), _a = ({ className: e }) => /* @__PURE__ */ c(ha, { className: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, value: "", children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ka, { className: t, children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Ke, { className: t, children: e }), Oa = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Da = ({ children: e, className: t, level: o }) => {
|
|
5428
5422
|
const r = `h${o || "2"}`;
|
|
5429
5423
|
return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
|
|
5430
|
-
},
|
|
5424
|
+
}, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5431
5425
|
const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
|
|
5432
5426
|
return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
|
|
5433
|
-
},
|
|
5427
|
+
}, Wa = ({ children: e, className: t, gap: o }) => {
|
|
5434
5428
|
const r = Yo(o);
|
|
5435
5429
|
return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
|
|
5436
|
-
},
|
|
5430
|
+
}, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5437
5431
|
"a",
|
|
5438
5432
|
{
|
|
5439
5433
|
href: o,
|
|
@@ -5442,10 +5436,10 @@ const qo = {
|
|
|
5442
5436
|
className: t,
|
|
5443
5437
|
children: e
|
|
5444
5438
|
}
|
|
5445
|
-
),
|
|
5439
|
+
), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
|
|
5446
5440
|
e ? /* @__PURE__ */ c(pe, { className: "px-6 py-3", children: /* @__PURE__ */ c("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
5447
5441
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
5448
|
-
] }),
|
|
5442
|
+
] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
|
|
5449
5443
|
const s = e, a = "size-5", i = s ? qo[s] : null;
|
|
5450
5444
|
return /* @__PURE__ */ z(
|
|
5451
5445
|
"button",
|
|
@@ -5463,33 +5457,33 @@ const qo = {
|
|
|
5463
5457
|
]
|
|
5464
5458
|
}
|
|
5465
5459
|
);
|
|
5466
|
-
},
|
|
5460
|
+
}, Ba = ({ name: e, size: t, className: o }) => {
|
|
5467
5461
|
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = qo[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
5468
5462
|
return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
|
|
5469
|
-
},
|
|
5470
|
-
"ui-card":
|
|
5471
|
-
"ui-card-content":
|
|
5472
|
-
"ui-card-header":
|
|
5473
|
-
"ui-button":
|
|
5474
|
-
"ui-text":
|
|
5475
|
-
"ui-heading":
|
|
5476
|
-
"ui-badge":
|
|
5477
|
-
"ui-input":
|
|
5478
|
-
"ui-stack":
|
|
5479
|
-
"ui-inline":
|
|
5480
|
-
"ui-separator":
|
|
5481
|
-
"ui-tabs":
|
|
5482
|
-
"ui-tabs-list":
|
|
5483
|
-
"ui-tabs-trigger":
|
|
5484
|
-
"ui-tabs-content":
|
|
5485
|
-
"ui-scroll-area":
|
|
5486
|
-
"ui-avatar":
|
|
5487
|
-
"ui-avatar-image":
|
|
5488
|
-
"ui-avatar-fallback":
|
|
5489
|
-
"ui-icon":
|
|
5490
|
-
"ui-link":
|
|
5491
|
-
"ui-menu-item":
|
|
5492
|
-
"ui-menu":
|
|
5463
|
+
}, Ga = () => ({
|
|
5464
|
+
"ui-card": Sa,
|
|
5465
|
+
"ui-card-content": Ca,
|
|
5466
|
+
"ui-card-header": Ea,
|
|
5467
|
+
"ui-button": Na,
|
|
5468
|
+
"ui-text": Fa,
|
|
5469
|
+
"ui-heading": Da,
|
|
5470
|
+
"ui-badge": Aa,
|
|
5471
|
+
"ui-input": Ra,
|
|
5472
|
+
"ui-stack": Ua,
|
|
5473
|
+
"ui-inline": Wa,
|
|
5474
|
+
"ui-separator": _a,
|
|
5475
|
+
"ui-tabs": Ia,
|
|
5476
|
+
"ui-tabs-list": Pa,
|
|
5477
|
+
"ui-tabs-trigger": za,
|
|
5478
|
+
"ui-tabs-content": Ta,
|
|
5479
|
+
"ui-scroll-area": Ma,
|
|
5480
|
+
"ui-avatar": La,
|
|
5481
|
+
"ui-avatar-image": Oa,
|
|
5482
|
+
"ui-avatar-fallback": $a,
|
|
5483
|
+
"ui-icon": Ba,
|
|
5484
|
+
"ui-link": Ha,
|
|
5485
|
+
"ui-menu-item": ja,
|
|
5486
|
+
"ui-menu": Va
|
|
5493
5487
|
}), It = "/api/ecommerce", Xo = async (e, t) => {
|
|
5494
5488
|
const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
|
|
5495
5489
|
method: "POST",
|
|
@@ -5499,12 +5493,12 @@ const qo = {
|
|
|
5499
5493
|
if (!r.ok)
|
|
5500
5494
|
throw new Error(n.error || "API request failed");
|
|
5501
5495
|
return n.data;
|
|
5502
|
-
},
|
|
5496
|
+
}, qa = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
|
|
5503
5497
|
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
5504
5498
|
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
|
|
5505
5499
|
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
5506
5500
|
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
|
|
5507
|
-
] }), Pt = "stackable-dev-badge-styles",
|
|
5501
|
+
] }), Pt = "stackable-dev-badge-styles", Ya = () => {
|
|
5508
5502
|
if (typeof document > "u" || document.getElementById(Pt)) return;
|
|
5509
5503
|
const e = document.createElement("style");
|
|
5510
5504
|
e.id = Pt, e.textContent = `
|
|
@@ -5515,10 +5509,10 @@ const qo = {
|
|
|
5515
5509
|
100% { transform: rotate(180deg); }
|
|
5516
5510
|
}
|
|
5517
5511
|
`, document.head.appendChild(e);
|
|
5518
|
-
},
|
|
5512
|
+
}, Xa = ({ className: e = "", extensions: t = [] }) => {
|
|
5519
5513
|
const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
|
|
5520
5514
|
if (B(() => {
|
|
5521
|
-
|
|
5515
|
+
Ya();
|
|
5522
5516
|
}, []), B(() => {
|
|
5523
5517
|
if (typeof window > "u") return;
|
|
5524
5518
|
const u = () => {
|
|
@@ -5646,7 +5640,7 @@ const qo = {
|
|
|
5646
5640
|
display: "inline-flex",
|
|
5647
5641
|
animation: a && !n ? "stackable-logo-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
|
|
5648
5642
|
},
|
|
5649
|
-
children: /* @__PURE__ */ c(
|
|
5643
|
+
children: /* @__PURE__ */ c(qa, { className: "w-6 h-6" })
|
|
5650
5644
|
}
|
|
5651
5645
|
),
|
|
5652
5646
|
/* @__PURE__ */ c("span", { children: "Dev Mode" }),
|
|
@@ -5689,7 +5683,7 @@ const qo = {
|
|
|
5689
5683
|
]
|
|
5690
5684
|
}
|
|
5691
5685
|
);
|
|
5692
|
-
}, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t,
|
|
5686
|
+
}, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
|
|
5693
5687
|
instanceId: e,
|
|
5694
5688
|
apiBase: t,
|
|
5695
5689
|
hostBase: o,
|
|
@@ -5716,7 +5710,7 @@ const qo = {
|
|
|
5716
5710
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), u(!0);
|
|
5717
5711
|
return;
|
|
5718
5712
|
}
|
|
5719
|
-
const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y =
|
|
5713
|
+
const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = dr(x, h);
|
|
5720
5714
|
l(y);
|
|
5721
5715
|
} catch (k) {
|
|
5722
5716
|
console.error("Failed to load extensions:", k);
|
|
@@ -5774,10 +5768,10 @@ const qo = {
|
|
|
5774
5768
|
[t, r, o, s, a]
|
|
5775
5769
|
);
|
|
5776
5770
|
return d ? /* @__PURE__ */ z(he, { children: [
|
|
5777
|
-
/* @__PURE__ */ c(
|
|
5778
|
-
/* @__PURE__ */ c(
|
|
5771
|
+
/* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
|
|
5772
|
+
/* @__PURE__ */ c(Xa, { extensions: i })
|
|
5779
5773
|
] }) : null;
|
|
5780
|
-
},
|
|
5774
|
+
}, Za = { dark: "dark", light: "widget-theme-light" }, Zo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Za[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Ko = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5781
5775
|
Go,
|
|
5782
5776
|
{
|
|
5783
5777
|
className: "h-12 w-12 rounded-full",
|
|
@@ -5785,7 +5779,7 @@ const qo = {
|
|
|
5785
5779
|
onClick: e,
|
|
5786
5780
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5787
5781
|
}
|
|
5788
|
-
) }),
|
|
5782
|
+
) }), li = ({ children: e, icon: t, theme: o }) => {
|
|
5789
5783
|
const [r, n] = U(!1);
|
|
5790
5784
|
return /* @__PURE__ */ z(he, { children: [
|
|
5791
5785
|
/* @__PURE__ */ c(Ko, { onClick: () => {
|
|
@@ -5793,10 +5787,10 @@ const qo = {
|
|
|
5793
5787
|
}, icon: t }),
|
|
5794
5788
|
r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Zo, { theme: o, children: e }) })
|
|
5795
5789
|
] });
|
|
5796
|
-
},
|
|
5790
|
+
}, ci = {
|
|
5797
5791
|
Body: Zo,
|
|
5798
5792
|
Launcher: Ko
|
|
5799
|
-
},
|
|
5793
|
+
}, Ka = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5800
5794
|
"a",
|
|
5801
5795
|
{
|
|
5802
5796
|
href: e,
|
|
@@ -5805,7 +5799,7 @@ const qo = {
|
|
|
5805
5799
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5806
5800
|
children: t
|
|
5807
5801
|
}
|
|
5808
|
-
),
|
|
5802
|
+
), Ja = (e, t) => {
|
|
5809
5803
|
const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
|
|
5810
5804
|
return B(() => {
|
|
5811
5805
|
if (!e) {
|
|
@@ -5827,9 +5821,9 @@ const qo = {
|
|
|
5827
5821
|
}
|
|
5828
5822
|
})();
|
|
5829
5823
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5830
|
-
},
|
|
5824
|
+
}, Qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5831
5825
|
var l, d;
|
|
5832
|
-
const { customer: n, loading: s, error: a } =
|
|
5826
|
+
const { customer: n, loading: s, error: a } = Ja(e, o);
|
|
5833
5827
|
if (s)
|
|
5834
5828
|
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Ut, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5835
5829
|
if (a || !n) {
|
|
@@ -5899,7 +5893,7 @@ const qo = {
|
|
|
5899
5893
|
n.disconnect(), r == null || r.remove();
|
|
5900
5894
|
};
|
|
5901
5895
|
}, [e, t]);
|
|
5902
|
-
},
|
|
5896
|
+
}, ei = ({ customization: e }) => {
|
|
5903
5897
|
const t = ae(null);
|
|
5904
5898
|
return Jo("widget_conversations", t), B(() => {
|
|
5905
5899
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
@@ -5912,7 +5906,7 @@ const qo = {
|
|
|
5912
5906
|
className: "h-full overflow-hidden"
|
|
5913
5907
|
}
|
|
5914
5908
|
);
|
|
5915
|
-
},
|
|
5909
|
+
}, ti = ({ customization: e }) => {
|
|
5916
5910
|
const t = ae(null);
|
|
5917
5911
|
return Jo("widget_messages", t), B(() => {
|
|
5918
5912
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
@@ -5925,7 +5919,7 @@ const qo = {
|
|
|
5925
5919
|
className: "h-full overflow-hidden"
|
|
5926
5920
|
}
|
|
5927
5921
|
);
|
|
5928
|
-
}, Ge = 25, qe = 75,
|
|
5922
|
+
}, Ge = 25, qe = 75, di = ({
|
|
5929
5923
|
header: e,
|
|
5930
5924
|
buttons: t,
|
|
5931
5925
|
hostBase: o,
|
|
@@ -6052,7 +6046,7 @@ const qo = {
|
|
|
6052
6046
|
] }),
|
|
6053
6047
|
/* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
6054
6048
|
/* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
6055
|
-
/* @__PURE__ */ c(
|
|
6049
|
+
/* @__PURE__ */ c(Qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
6056
6050
|
Ce,
|
|
6057
6051
|
{
|
|
6058
6052
|
target: "slot.header",
|
|
@@ -6072,7 +6066,7 @@ const qo = {
|
|
|
6072
6066
|
/* @__PURE__ */ c("div", { className: T(
|
|
6073
6067
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
6074
6068
|
i === "account" && "hidden"
|
|
6075
|
-
), children: /* @__PURE__ */ c(
|
|
6069
|
+
), children: /* @__PURE__ */ c(ei, {}) })
|
|
6076
6070
|
] })
|
|
6077
6071
|
]
|
|
6078
6072
|
}
|
|
@@ -6084,7 +6078,7 @@ const qo = {
|
|
|
6084
6078
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
6085
6079
|
style: { flexBasis: `${100 - d}%` },
|
|
6086
6080
|
children: [
|
|
6087
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
6081
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ti, {}) }),
|
|
6088
6082
|
/* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
6089
6083
|
/* @__PURE__ */ c(
|
|
6090
6084
|
Ce,
|
|
@@ -6094,7 +6088,7 @@ const qo = {
|
|
|
6094
6088
|
className: "flex items-center gap-1",
|
|
6095
6089
|
fallback: /* @__PURE__ */ z(he, { children: [
|
|
6096
6090
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
6097
|
-
/* @__PURE__ */ c(
|
|
6091
|
+
/* @__PURE__ */ c(Ka, { href: "https://zendesk.com", children: "Zendesk" })
|
|
6098
6092
|
] })
|
|
6099
6093
|
}
|
|
6100
6094
|
),
|
|
@@ -6151,10 +6145,10 @@ const qo = {
|
|
|
6151
6145
|
)
|
|
6152
6146
|
] })
|
|
6153
6147
|
] });
|
|
6154
|
-
},
|
|
6148
|
+
}, oi = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
|
|
6155
6149
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
6156
6150
|
return Promise.resolve();
|
|
6157
|
-
const { autorender: o = !1, scriptId: r =
|
|
6151
|
+
const { autorender: o = !1, scriptId: r = oi } = t;
|
|
6158
6152
|
window.zEMessenger = { autorender: o };
|
|
6159
6153
|
const n = document.getElementById(r);
|
|
6160
6154
|
if (n) {
|
|
@@ -6166,16 +6160,16 @@ const qo = {
|
|
|
6166
6160
|
const i = document.createElement("script");
|
|
6167
6161
|
i.id = r, i.src = Tt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
6168
6162
|
});
|
|
6169
|
-
},
|
|
6170
|
-
e.snippetKey &&
|
|
6163
|
+
}, ui = ({ config: e }) => (B(() => {
|
|
6164
|
+
e.snippetKey && ri(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
6171
6165
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
6172
6166
|
});
|
|
6173
6167
|
}, [e.autorender, e.snippetKey]), null);
|
|
6174
6168
|
export {
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6169
|
+
ii as ExtensionSetup,
|
|
6170
|
+
ci as Widget,
|
|
6171
|
+
li as WidgetComponent,
|
|
6172
|
+
di as ZendeskMessenger,
|
|
6173
|
+
ui as ZendeskScript,
|
|
6174
|
+
ri as loadZendeskSnippet
|
|
6181
6175
|
};
|