@stackable-labs/embeddables 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DevModeBadge.d.ts +5 -0
- package/dist/lib/devOverrides.d.ts +14 -0
- package/dist/react.js +759 -652
- package/dist/stackable-widget.external.js +36 -36
- package/dist/stackable-widget.js +44 -44
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import
|
|
3
|
+
import B, { createContext as Zo, useState as j, useRef as le, useEffect as G, useContext as Jo, useMemo as zt, useCallback as Re, createElement as _e, forwardRef as Tt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const ae = /* @__PURE__ */ new Map(),
|
|
5
|
+
const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
6
6
|
const o = ae.get(e.id);
|
|
7
7
|
if (o) return o;
|
|
8
8
|
const r = document.createElement("iframe");
|
|
@@ -40,17 +40,17 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
40
40
|
(l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
|
|
41
41
|
};
|
|
42
42
|
return window.addEventListener("message", a), ae.set(e.id, s), s;
|
|
43
|
-
},
|
|
43
|
+
}, We = (e, t) => {
|
|
44
44
|
const o = ae.get(e);
|
|
45
45
|
if (!(o != null && o.iframe.contentWindow)) {
|
|
46
46
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
o.iframe.contentWindow.postMessage(t, "*");
|
|
50
|
-
}, fe = (e) => ae.get(e),
|
|
50
|
+
}, fe = (e) => ae.get(e), er = (e) => {
|
|
51
51
|
const t = ae.get(e);
|
|
52
52
|
t && (t.iframe.remove(), t.messageHandlers.clear(), ae.delete(e));
|
|
53
|
-
},
|
|
53
|
+
}, tr = () => ae, or = [
|
|
54
54
|
"ui-card",
|
|
55
55
|
"ui-card-content",
|
|
56
56
|
"ui-card-header",
|
|
@@ -74,18 +74,18 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
74
74
|
"ui-link",
|
|
75
75
|
"ui-menu",
|
|
76
76
|
"ui-menu-item"
|
|
77
|
-
],
|
|
77
|
+
], rr = {
|
|
78
78
|
"context.read": "context:read",
|
|
79
79
|
"data.query": "data:query",
|
|
80
80
|
"actions.toast": "actions:toast",
|
|
81
81
|
"actions.invoke": "actions:invoke"
|
|
82
|
-
},
|
|
82
|
+
}, nr = (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
86
|
const n = r;
|
|
87
87
|
let s = null;
|
|
88
|
-
for (const [l, d] of
|
|
88
|
+
for (const [l, d] of tr())
|
|
89
89
|
if (o.source === d.iframe.contentWindow) {
|
|
90
90
|
s = l;
|
|
91
91
|
break;
|
|
@@ -96,7 +96,7 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
96
96
|
}
|
|
97
97
|
const a = fe(s);
|
|
98
98
|
if (!a) return;
|
|
99
|
-
const i =
|
|
99
|
+
const i = rr[n.capability];
|
|
100
100
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
101
101
|
const l = {
|
|
102
102
|
type: "capability-response",
|
|
@@ -104,7 +104,7 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
104
104
|
success: !1,
|
|
105
105
|
error: `Permission denied: '${i}' not granted for extension '${s}'`
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
We(s, l);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
@@ -131,7 +131,7 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
131
131
|
success: !0,
|
|
132
132
|
data: l
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
We(s, d);
|
|
135
135
|
} catch (l) {
|
|
136
136
|
const d = {
|
|
137
137
|
type: "capability-response",
|
|
@@ -139,23 +139,23 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
139
139
|
success: !1,
|
|
140
140
|
error: l instanceof Error ? l.message : "Unknown error"
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
We(s, d);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
return window.addEventListener("message", t), () => {
|
|
146
146
|
window.removeEventListener("message", t);
|
|
147
147
|
};
|
|
148
|
-
}, Mt =
|
|
148
|
+
}, Mt = Zo({
|
|
149
149
|
extensions: [],
|
|
150
150
|
components: {},
|
|
151
151
|
ready: !1
|
|
152
|
-
}),
|
|
152
|
+
}), sr = ({
|
|
153
153
|
extensions: e,
|
|
154
154
|
capabilityHandlers: t,
|
|
155
155
|
components: o = {},
|
|
156
156
|
children: r
|
|
157
157
|
}) => {
|
|
158
|
-
const [n, s] =
|
|
158
|
+
const [n, s] = j(!1), a = le(null), i = le(null);
|
|
159
159
|
return G(() => {
|
|
160
160
|
if (!a.current) return;
|
|
161
161
|
let l = !1;
|
|
@@ -164,21 +164,21 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
164
164
|
if (u) {
|
|
165
165
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
166
166
|
for (const f of e)
|
|
167
|
-
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await
|
|
168
|
-
i.current =
|
|
167
|
+
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await Qo(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
168
|
+
i.current = nr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
169
169
|
}
|
|
170
170
|
})(), () => {
|
|
171
171
|
var u;
|
|
172
172
|
l = !0;
|
|
173
173
|
for (const f of e)
|
|
174
|
-
|
|
174
|
+
er(f.id);
|
|
175
175
|
(u = i.current) == null || u.call(i);
|
|
176
176
|
};
|
|
177
|
-
}, [e, t]), /* @__PURE__ */
|
|
177
|
+
}, [e, t]), /* @__PURE__ */ z(Mt.Provider, { value: { extensions: e, components: o, ready: n }, children: [
|
|
178
178
|
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
179
179
|
r
|
|
180
180
|
] });
|
|
181
|
-
},
|
|
181
|
+
}, ar = () => Jo(Mt), ir = (e) => or.includes(e), Ce = ({
|
|
182
182
|
target: e,
|
|
183
183
|
context: t,
|
|
184
184
|
className: o,
|
|
@@ -186,29 +186,29 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
186
186
|
fallback: n = null,
|
|
187
187
|
render: s
|
|
188
188
|
}) => {
|
|
189
|
-
const { extensions: a, components: i, ready: l } =
|
|
189
|
+
const { extensions: a, components: i, ready: l } = ar(), [d, u] = j({}), f = le(""), p = zt(
|
|
190
190
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
191
191
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
192
192
|
[a.map((h) => h.id).join(","), e]
|
|
193
|
-
), b =
|
|
193
|
+
), b = Re(
|
|
194
194
|
(h, y, R = 0) => {
|
|
195
195
|
var N, _, g;
|
|
196
196
|
if (h.type === "text")
|
|
197
197
|
return h.text || null;
|
|
198
198
|
if (!h.tag) return null;
|
|
199
199
|
if (h.tag === "__fragment")
|
|
200
|
-
return /* @__PURE__ */ c(
|
|
201
|
-
if (!
|
|
200
|
+
return /* @__PURE__ */ c(B.Fragment, { children: (N = h.children) == null ? void 0 : N.map((k, M) => b(k, y, M)) }, R);
|
|
201
|
+
if (!ir(h.tag))
|
|
202
202
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
203
203
|
const C = i[h.tag];
|
|
204
204
|
if (!C)
|
|
205
|
-
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(
|
|
205
|
+
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(B.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((k, M) => b(k, y, M)) }, R);
|
|
206
206
|
const A = { ...h.attrs };
|
|
207
207
|
if (h.actionId) {
|
|
208
208
|
const k = h.actionId;
|
|
209
209
|
A.onClick = () => {
|
|
210
|
-
const
|
|
211
|
-
|
|
210
|
+
const M = y;
|
|
211
|
+
M == null || M.postMessage(
|
|
212
212
|
{ type: "action-invoke", surfaceId: e, actionId: k },
|
|
213
213
|
"*"
|
|
214
214
|
);
|
|
@@ -216,15 +216,15 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
216
216
|
}
|
|
217
217
|
if (A["data-onchange-id"]) {
|
|
218
218
|
const k = A["data-onchange-id"];
|
|
219
|
-
delete A["data-onchange-id"], A.onChange = (
|
|
219
|
+
delete A["data-onchange-id"], A.onChange = (M) => {
|
|
220
220
|
const O = y;
|
|
221
221
|
O == null || O.postMessage(
|
|
222
|
-
{ type: "action-invoke", surfaceId: e, actionId: k, value:
|
|
222
|
+
{ type: "action-invoke", surfaceId: e, actionId: k, value: M.target.value },
|
|
223
223
|
"*"
|
|
224
224
|
);
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const P = (g = h.children) == null ? void 0 : g.map((k,
|
|
227
|
+
const P = (g = h.children) == null ? void 0 : g.map((k, M) => b(k, y, M));
|
|
228
228
|
return /* @__PURE__ */ _e(C, { ...A, key: R }, P && P.length > 0 ? P : void 0);
|
|
229
229
|
},
|
|
230
230
|
[e, i]
|
|
@@ -280,7 +280,7 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
280
280
|
children: h.children,
|
|
281
281
|
index: y,
|
|
282
282
|
total: R.length
|
|
283
|
-
}) : /* @__PURE__ */ c(
|
|
283
|
+
}) : /* @__PURE__ */ c(B.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(B.Fragment, { children: C }, `extension:${h.id}`);
|
|
284
284
|
if (y === 0 || !r)
|
|
285
285
|
return [A];
|
|
286
286
|
const P = R[y - 1], N = typeof r == "function" ? r({
|
|
@@ -290,33 +290,63 @@ const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
|
290
290
|
extensionId: h.id
|
|
291
291
|
}) : r;
|
|
292
292
|
return [
|
|
293
|
-
/* @__PURE__ */ c(
|
|
293
|
+
/* @__PURE__ */ c(B.Fragment, { children: N }, `separator:${P.id}:${h.id}:${y}`),
|
|
294
294
|
A
|
|
295
295
|
];
|
|
296
296
|
}) : n;
|
|
297
297
|
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
|
|
298
|
-
}
|
|
298
|
+
}, lr = (e) => {
|
|
299
|
+
try {
|
|
300
|
+
const { hostname: t } = new URL(e);
|
|
301
|
+
return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
|
|
302
|
+
t.endsWith(".ngrok-free.app");
|
|
303
|
+
} catch {
|
|
304
|
+
return !1;
|
|
305
|
+
}
|
|
306
|
+
}, Lt = (e) => {
|
|
307
|
+
const o = new URLSearchParams(e).get("_stackable_dev");
|
|
308
|
+
if (!o)
|
|
309
|
+
return [];
|
|
310
|
+
try {
|
|
311
|
+
const r = [], n = o.split(",");
|
|
312
|
+
for (const s of n) {
|
|
313
|
+
const a = s.indexOf(":");
|
|
314
|
+
if (a === -1) continue;
|
|
315
|
+
const i = s.slice(0, a), l = s.slice(a + 1);
|
|
316
|
+
i && l && lr(l) && r.push({ extensionId: i, bundleUrl: l });
|
|
317
|
+
}
|
|
318
|
+
return r;
|
|
319
|
+
} catch {
|
|
320
|
+
return [];
|
|
321
|
+
}
|
|
322
|
+
}, cr = (e, t) => t.length === 0 ? e : e.map((o) => {
|
|
323
|
+
const r = t.find((n) => n.extensionId === o.id);
|
|
324
|
+
return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
|
|
325
|
+
...o,
|
|
326
|
+
bundleUrl: r.bundleUrl
|
|
327
|
+
}) : o;
|
|
328
|
+
});
|
|
299
329
|
/**
|
|
300
330
|
* @license lucide-react v0.575.0 - ISC
|
|
301
331
|
*
|
|
302
332
|
* This source code is licensed under the ISC license.
|
|
303
333
|
* See the LICENSE file in the root directory of this source tree.
|
|
304
334
|
*/
|
|
305
|
-
const
|
|
335
|
+
const Ot = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
|
|
306
336
|
/**
|
|
307
337
|
* @license lucide-react v0.575.0 - ISC
|
|
308
338
|
*
|
|
309
339
|
* This source code is licensed under the ISC license.
|
|
310
340
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
341
|
*/
|
|
312
|
-
const
|
|
342
|
+
const dr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
313
343
|
/**
|
|
314
344
|
* @license lucide-react v0.575.0 - ISC
|
|
315
345
|
*
|
|
316
346
|
* This source code is licensed under the ISC license.
|
|
317
347
|
* See the LICENSE file in the root directory of this source tree.
|
|
318
348
|
*/
|
|
319
|
-
const
|
|
349
|
+
const ur = (e) => e.replace(
|
|
320
350
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
321
351
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
322
352
|
);
|
|
@@ -327,7 +357,7 @@ const lr = (e) => e.replace(
|
|
|
327
357
|
* See the LICENSE file in the root directory of this source tree.
|
|
328
358
|
*/
|
|
329
359
|
const pt = (e) => {
|
|
330
|
-
const t =
|
|
360
|
+
const t = ur(e);
|
|
331
361
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
332
362
|
};
|
|
333
363
|
/**
|
|
@@ -336,7 +366,7 @@ const pt = (e) => {
|
|
|
336
366
|
* This source code is licensed under the ISC license.
|
|
337
367
|
* See the LICENSE file in the root directory of this source tree.
|
|
338
368
|
*/
|
|
339
|
-
var
|
|
369
|
+
var fr = {
|
|
340
370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
341
371
|
width: 24,
|
|
342
372
|
height: 24,
|
|
@@ -353,7 +383,7 @@ var cr = {
|
|
|
353
383
|
* This source code is licensed under the ISC license.
|
|
354
384
|
* See the LICENSE file in the root directory of this source tree.
|
|
355
385
|
*/
|
|
356
|
-
const
|
|
386
|
+
const mr = (e) => {
|
|
357
387
|
for (const t in e)
|
|
358
388
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
359
389
|
return !0;
|
|
@@ -365,7 +395,7 @@ const dr = (e) => {
|
|
|
365
395
|
* This source code is licensed under the ISC license.
|
|
366
396
|
* See the LICENSE file in the root directory of this source tree.
|
|
367
397
|
*/
|
|
368
|
-
const
|
|
398
|
+
const pr = Tt(
|
|
369
399
|
({
|
|
370
400
|
color: e = "currentColor",
|
|
371
401
|
size: t = 24,
|
|
@@ -379,13 +409,13 @@ const ur = Tt(
|
|
|
379
409
|
"svg",
|
|
380
410
|
{
|
|
381
411
|
ref: l,
|
|
382
|
-
...
|
|
412
|
+
...fr,
|
|
383
413
|
width: t,
|
|
384
414
|
height: t,
|
|
385
415
|
stroke: e,
|
|
386
416
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
387
|
-
className:
|
|
388
|
-
...!s && !
|
|
417
|
+
className: Ot("lucide", n),
|
|
418
|
+
...!s && !mr(i) && { "aria-hidden": "true" },
|
|
389
419
|
...i
|
|
390
420
|
},
|
|
391
421
|
[
|
|
@@ -402,11 +432,11 @@ const ur = Tt(
|
|
|
402
432
|
*/
|
|
403
433
|
const L = (e, t) => {
|
|
404
434
|
const o = Tt(
|
|
405
|
-
({ className: r, ...n }, s) => _e(
|
|
435
|
+
({ className: r, ...n }, s) => _e(pr, {
|
|
406
436
|
ref: s,
|
|
407
437
|
iconNode: t,
|
|
408
|
-
className:
|
|
409
|
-
`lucide-${
|
|
438
|
+
className: Ot(
|
|
439
|
+
`lucide-${dr(pt(e))}`,
|
|
410
440
|
`lucide-${e}`,
|
|
411
441
|
r
|
|
412
442
|
),
|
|
@@ -421,7 +451,7 @@ const L = (e, t) => {
|
|
|
421
451
|
* This source code is licensed under the ISC license.
|
|
422
452
|
* See the LICENSE file in the root directory of this source tree.
|
|
423
453
|
*/
|
|
424
|
-
const
|
|
454
|
+
const hr = [
|
|
425
455
|
[
|
|
426
456
|
"path",
|
|
427
457
|
{
|
|
@@ -430,24 +460,24 @@ const fr = [
|
|
|
430
460
|
}
|
|
431
461
|
],
|
|
432
462
|
["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
|
|
433
|
-
],
|
|
463
|
+
], gr = L("airplay", hr);
|
|
434
464
|
/**
|
|
435
465
|
* @license lucide-react v0.575.0 - ISC
|
|
436
466
|
*
|
|
437
467
|
* This source code is licensed under the ISC license.
|
|
438
468
|
* See the LICENSE file in the root directory of this source tree.
|
|
439
469
|
*/
|
|
440
|
-
const
|
|
470
|
+
const br = [
|
|
441
471
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
442
472
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
443
|
-
],
|
|
473
|
+
], vr = L("arrow-left", br);
|
|
444
474
|
/**
|
|
445
475
|
* @license lucide-react v0.575.0 - ISC
|
|
446
476
|
*
|
|
447
477
|
* This source code is licensed under the ISC license.
|
|
448
478
|
* See the LICENSE file in the root directory of this source tree.
|
|
449
479
|
*/
|
|
450
|
-
const
|
|
480
|
+
const wr = [
|
|
451
481
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
452
482
|
[
|
|
453
483
|
"path",
|
|
@@ -456,142 +486,142 @@ const gr = [
|
|
|
456
486
|
key: "ruj8y"
|
|
457
487
|
}
|
|
458
488
|
]
|
|
459
|
-
],
|
|
489
|
+
], xr = L("book-open", wr);
|
|
460
490
|
/**
|
|
461
491
|
* @license lucide-react v0.575.0 - ISC
|
|
462
492
|
*
|
|
463
493
|
* This source code is licensed under the ISC license.
|
|
464
494
|
* See the LICENSE file in the root directory of this source tree.
|
|
465
495
|
*/
|
|
466
|
-
const
|
|
496
|
+
const yr = [
|
|
467
497
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
468
498
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
469
499
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
470
500
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
471
|
-
],
|
|
501
|
+
], kr = L("calendar", yr);
|
|
472
502
|
/**
|
|
473
503
|
* @license lucide-react v0.575.0 - ISC
|
|
474
504
|
*
|
|
475
505
|
* This source code is licensed under the ISC license.
|
|
476
506
|
* See the LICENSE file in the root directory of this source tree.
|
|
477
507
|
*/
|
|
478
|
-
const
|
|
508
|
+
const Sr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Cr = L("chevron-left", Sr);
|
|
479
509
|
/**
|
|
480
510
|
* @license lucide-react v0.575.0 - ISC
|
|
481
511
|
*
|
|
482
512
|
* This source code is licensed under the ISC license.
|
|
483
513
|
* See the LICENSE file in the root directory of this source tree.
|
|
484
514
|
*/
|
|
485
|
-
const
|
|
515
|
+
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], $t = L("chevron-right", Nr);
|
|
486
516
|
/**
|
|
487
517
|
* @license lucide-react v0.575.0 - ISC
|
|
488
518
|
*
|
|
489
519
|
* This source code is licensed under the ISC license.
|
|
490
520
|
* See the LICENSE file in the root directory of this source tree.
|
|
491
521
|
*/
|
|
492
|
-
const
|
|
522
|
+
const Er = [
|
|
493
523
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
494
524
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
495
525
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
496
|
-
],
|
|
526
|
+
], Ar = L("circle-alert", Er);
|
|
497
527
|
/**
|
|
498
528
|
* @license lucide-react v0.575.0 - ISC
|
|
499
529
|
*
|
|
500
530
|
* This source code is licensed under the ISC license.
|
|
501
531
|
* See the LICENSE file in the root directory of this source tree.
|
|
502
532
|
*/
|
|
503
|
-
const
|
|
533
|
+
const Rr = [
|
|
504
534
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
505
535
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
506
|
-
],
|
|
536
|
+
], _r = L("circle-check", Rr);
|
|
507
537
|
/**
|
|
508
538
|
* @license lucide-react v0.575.0 - ISC
|
|
509
539
|
*
|
|
510
540
|
* This source code is licensed under the ISC license.
|
|
511
541
|
* See the LICENSE file in the root directory of this source tree.
|
|
512
542
|
*/
|
|
513
|
-
const
|
|
543
|
+
const Ir = [
|
|
514
544
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
515
545
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
516
546
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
517
|
-
],
|
|
547
|
+
], Pr = L("circle-question-mark", Ir);
|
|
518
548
|
/**
|
|
519
549
|
* @license lucide-react v0.575.0 - ISC
|
|
520
550
|
*
|
|
521
551
|
* This source code is licensed under the ISC license.
|
|
522
552
|
* See the LICENSE file in the root directory of this source tree.
|
|
523
553
|
*/
|
|
524
|
-
const
|
|
554
|
+
const zr = [
|
|
525
555
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
526
556
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
527
557
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
528
|
-
],
|
|
558
|
+
], Tr = L("circle-x", zr);
|
|
529
559
|
/**
|
|
530
560
|
* @license lucide-react v0.575.0 - ISC
|
|
531
561
|
*
|
|
532
562
|
* This source code is licensed under the ISC license.
|
|
533
563
|
* See the LICENSE file in the root directory of this source tree.
|
|
534
564
|
*/
|
|
535
|
-
const
|
|
565
|
+
const Mr = [
|
|
536
566
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
537
567
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
538
|
-
],
|
|
568
|
+
], Lr = L("clock", Mr);
|
|
539
569
|
/**
|
|
540
570
|
* @license lucide-react v0.575.0 - ISC
|
|
541
571
|
*
|
|
542
572
|
* This source code is licensed under the ISC license.
|
|
543
573
|
* See the LICENSE file in the root directory of this source tree.
|
|
544
574
|
*/
|
|
545
|
-
const
|
|
575
|
+
const Or = [
|
|
546
576
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
547
577
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
548
|
-
],
|
|
578
|
+
], $r = L("credit-card", Or);
|
|
549
579
|
/**
|
|
550
580
|
* @license lucide-react v0.575.0 - ISC
|
|
551
581
|
*
|
|
552
582
|
* This source code is licensed under the ISC license.
|
|
553
583
|
* See the LICENSE file in the root directory of this source tree.
|
|
554
584
|
*/
|
|
555
|
-
const
|
|
585
|
+
const Fr = [
|
|
556
586
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
557
587
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
558
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" }]
|
|
559
|
-
],
|
|
589
|
+
], Dr = L("external-link", Fr);
|
|
560
590
|
/**
|
|
561
591
|
* @license lucide-react v0.575.0 - ISC
|
|
562
592
|
*
|
|
563
593
|
* This source code is licensed under the ISC license.
|
|
564
594
|
* See the LICENSE file in the root directory of this source tree.
|
|
565
595
|
*/
|
|
566
|
-
const
|
|
596
|
+
const Ur = [
|
|
567
597
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
568
598
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
569
599
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
570
|
-
],
|
|
600
|
+
], Wr = L("info", Ur);
|
|
571
601
|
/**
|
|
572
602
|
* @license lucide-react v0.575.0 - ISC
|
|
573
603
|
*
|
|
574
604
|
* This source code is licensed under the ISC license.
|
|
575
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
606
|
*/
|
|
577
|
-
const
|
|
607
|
+
const Hr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ft = L("loader-circle", Hr);
|
|
578
608
|
/**
|
|
579
609
|
* @license lucide-react v0.575.0 - ISC
|
|
580
610
|
*
|
|
581
611
|
* This source code is licensed under the ISC license.
|
|
582
612
|
* See the LICENSE file in the root directory of this source tree.
|
|
583
613
|
*/
|
|
584
|
-
const
|
|
614
|
+
const Vr = [
|
|
585
615
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
586
616
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
587
|
-
], Ye = L("mail",
|
|
617
|
+
], Ye = L("mail", Vr);
|
|
588
618
|
/**
|
|
589
619
|
* @license lucide-react v0.575.0 - ISC
|
|
590
620
|
*
|
|
591
621
|
* This source code is licensed under the ISC license.
|
|
592
622
|
* See the LICENSE file in the root directory of this source tree.
|
|
593
623
|
*/
|
|
594
|
-
const
|
|
624
|
+
const jr = [
|
|
595
625
|
[
|
|
596
626
|
"path",
|
|
597
627
|
{
|
|
@@ -600,14 +630,14 @@ const Ur = [
|
|
|
600
630
|
}
|
|
601
631
|
],
|
|
602
632
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
603
|
-
],
|
|
633
|
+
], Br = L("map-pin", jr);
|
|
604
634
|
/**
|
|
605
635
|
* @license lucide-react v0.575.0 - ISC
|
|
606
636
|
*
|
|
607
637
|
* This source code is licensed under the ISC license.
|
|
608
638
|
* See the LICENSE file in the root directory of this source tree.
|
|
609
639
|
*/
|
|
610
|
-
const
|
|
640
|
+
const Gr = [
|
|
611
641
|
[
|
|
612
642
|
"path",
|
|
613
643
|
{
|
|
@@ -615,14 +645,14 @@ const Wr = [
|
|
|
615
645
|
key: "1sd12s"
|
|
616
646
|
}
|
|
617
647
|
]
|
|
618
|
-
],
|
|
648
|
+
], qr = L("message-circle", Gr);
|
|
619
649
|
/**
|
|
620
650
|
* @license lucide-react v0.575.0 - ISC
|
|
621
651
|
*
|
|
622
652
|
* This source code is licensed under the ISC license.
|
|
623
653
|
* See the LICENSE file in the root directory of this source tree.
|
|
624
654
|
*/
|
|
625
|
-
const
|
|
655
|
+
const Yr = [
|
|
626
656
|
[
|
|
627
657
|
"path",
|
|
628
658
|
{
|
|
@@ -630,14 +660,14 @@ const Br = [
|
|
|
630
660
|
key: "18887p"
|
|
631
661
|
}
|
|
632
662
|
]
|
|
633
|
-
],
|
|
663
|
+
], Dt = L("message-square", Yr);
|
|
634
664
|
/**
|
|
635
665
|
* @license lucide-react v0.575.0 - ISC
|
|
636
666
|
*
|
|
637
667
|
* This source code is licensed under the ISC license.
|
|
638
668
|
* See the LICENSE file in the root directory of this source tree.
|
|
639
669
|
*/
|
|
640
|
-
const
|
|
670
|
+
const Xr = [
|
|
641
671
|
[
|
|
642
672
|
"path",
|
|
643
673
|
{
|
|
@@ -648,14 +678,14 @@ const Gr = [
|
|
|
648
678
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
649
679
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
650
680
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
651
|
-
],
|
|
681
|
+
], Kr = L("package", Xr);
|
|
652
682
|
/**
|
|
653
683
|
* @license lucide-react v0.575.0 - ISC
|
|
654
684
|
*
|
|
655
685
|
* This source code is licensed under the ISC license.
|
|
656
686
|
* See the LICENSE file in the root directory of this source tree.
|
|
657
687
|
*/
|
|
658
|
-
const
|
|
688
|
+
const Zr = [
|
|
659
689
|
[
|
|
660
690
|
"path",
|
|
661
691
|
{
|
|
@@ -663,24 +693,24 @@ const Yr = [
|
|
|
663
693
|
key: "9njp5v"
|
|
664
694
|
}
|
|
665
695
|
]
|
|
666
|
-
],
|
|
696
|
+
], Jr = L("phone", Zr);
|
|
667
697
|
/**
|
|
668
698
|
* @license lucide-react v0.575.0 - ISC
|
|
669
699
|
*
|
|
670
700
|
* This source code is licensed under the ISC license.
|
|
671
701
|
* See the LICENSE file in the root directory of this source tree.
|
|
672
702
|
*/
|
|
673
|
-
const
|
|
703
|
+
const Qr = [
|
|
674
704
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
675
705
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
676
|
-
],
|
|
706
|
+
], en = L("search", Qr);
|
|
677
707
|
/**
|
|
678
708
|
* @license lucide-react v0.575.0 - ISC
|
|
679
709
|
*
|
|
680
710
|
* This source code is licensed under the ISC license.
|
|
681
711
|
* See the LICENSE file in the root directory of this source tree.
|
|
682
712
|
*/
|
|
683
|
-
const
|
|
713
|
+
const tn = [
|
|
684
714
|
["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
|
|
685
715
|
["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
|
|
686
716
|
[
|
|
@@ -690,14 +720,14 @@ const Jr = [
|
|
|
690
720
|
key: "o988cm"
|
|
691
721
|
}
|
|
692
722
|
]
|
|
693
|
-
],
|
|
723
|
+
], on = L("shopping-bag", tn);
|
|
694
724
|
/**
|
|
695
725
|
* @license lucide-react v0.575.0 - ISC
|
|
696
726
|
*
|
|
697
727
|
* This source code is licensed under the ISC license.
|
|
698
728
|
* See the LICENSE file in the root directory of this source tree.
|
|
699
729
|
*/
|
|
700
|
-
const
|
|
730
|
+
const rn = [
|
|
701
731
|
[
|
|
702
732
|
"path",
|
|
703
733
|
{
|
|
@@ -708,14 +738,14 @@ const en = [
|
|
|
708
738
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
709
739
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
710
740
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
711
|
-
],
|
|
741
|
+
], nn = L("sparkles", rn);
|
|
712
742
|
/**
|
|
713
743
|
* @license lucide-react v0.575.0 - ISC
|
|
714
744
|
*
|
|
715
745
|
* This source code is licensed under the ISC license.
|
|
716
746
|
* See the LICENSE file in the root directory of this source tree.
|
|
717
747
|
*/
|
|
718
|
-
const
|
|
748
|
+
const sn = [
|
|
719
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" }],
|
|
720
750
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
721
751
|
[
|
|
@@ -727,70 +757,70 @@ const on = [
|
|
|
727
757
|
],
|
|
728
758
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
729
759
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
730
|
-
],
|
|
760
|
+
], an = L("truck", sn);
|
|
731
761
|
/**
|
|
732
762
|
* @license lucide-react v0.575.0 - ISC
|
|
733
763
|
*
|
|
734
764
|
* This source code is licensed under the ISC license.
|
|
735
765
|
* See the LICENSE file in the root directory of this source tree.
|
|
736
766
|
*/
|
|
737
|
-
const
|
|
767
|
+
const ln = [
|
|
738
768
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
739
769
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
740
|
-
],
|
|
741
|
-
function
|
|
770
|
+
], Ut = L("user", ln);
|
|
771
|
+
function Wt(e) {
|
|
742
772
|
var t, o, r = "";
|
|
743
773
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
744
774
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
745
775
|
var n = e.length;
|
|
746
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
776
|
+
for (t = 0; t < n; t++) e[t] && (o = Wt(e[t])) && (r && (r += " "), r += o);
|
|
747
777
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
748
778
|
return r;
|
|
749
779
|
}
|
|
750
|
-
function
|
|
751
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
780
|
+
function Ht() {
|
|
781
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Wt(e)) && (r && (r += " "), r += t);
|
|
752
782
|
return r;
|
|
753
783
|
}
|
|
754
|
-
const
|
|
784
|
+
const cn = (e, t) => {
|
|
755
785
|
const o = new Array(e.length + t.length);
|
|
756
786
|
for (let r = 0; r < e.length; r++)
|
|
757
787
|
o[r] = e[r];
|
|
758
788
|
for (let r = 0; r < t.length; r++)
|
|
759
789
|
o[e.length + r] = t[r];
|
|
760
790
|
return o;
|
|
761
|
-
},
|
|
791
|
+
}, dn = (e, t) => ({
|
|
762
792
|
classGroupId: e,
|
|
763
793
|
validator: t
|
|
764
794
|
}), Vt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
765
795
|
nextPart: e,
|
|
766
796
|
validators: t,
|
|
767
797
|
classGroupId: o
|
|
768
|
-
}), Ie = "-", ht = [],
|
|
769
|
-
const t =
|
|
798
|
+
}), Ie = "-", ht = [], un = "arbitrary..", fn = (e) => {
|
|
799
|
+
const t = pn(e), {
|
|
770
800
|
conflictingClassGroups: o,
|
|
771
801
|
conflictingClassGroupModifiers: r
|
|
772
802
|
} = e;
|
|
773
803
|
return {
|
|
774
804
|
getClassGroupId: (a) => {
|
|
775
805
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
776
|
-
return
|
|
806
|
+
return mn(a);
|
|
777
807
|
const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
778
|
-
return
|
|
808
|
+
return jt(i, l, t);
|
|
779
809
|
},
|
|
780
810
|
getConflictingClassGroupIds: (a, i) => {
|
|
781
811
|
if (i) {
|
|
782
812
|
const l = r[a], d = o[a];
|
|
783
|
-
return l ? d ?
|
|
813
|
+
return l ? d ? cn(d, l) : l : d || ht;
|
|
784
814
|
}
|
|
785
815
|
return o[a] || ht;
|
|
786
816
|
}
|
|
787
817
|
};
|
|
788
|
-
},
|
|
818
|
+
}, jt = (e, t, o) => {
|
|
789
819
|
if (e.length - t === 0)
|
|
790
820
|
return o.classGroupId;
|
|
791
821
|
const n = e[t], s = o.nextPart.get(n);
|
|
792
822
|
if (s) {
|
|
793
|
-
const d =
|
|
823
|
+
const d = jt(e, t + 1, s);
|
|
794
824
|
if (d) return d;
|
|
795
825
|
}
|
|
796
826
|
const a = o.validators;
|
|
@@ -802,16 +832,16 @@ const sn = (e, t) => {
|
|
|
802
832
|
if (u.validator(i))
|
|
803
833
|
return u.classGroupId;
|
|
804
834
|
}
|
|
805
|
-
},
|
|
835
|
+
}, mn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
806
836
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
807
|
-
return r ?
|
|
808
|
-
})(),
|
|
837
|
+
return r ? un + r : void 0;
|
|
838
|
+
})(), pn = (e) => {
|
|
809
839
|
const {
|
|
810
840
|
theme: t,
|
|
811
841
|
classGroups: o
|
|
812
842
|
} = e;
|
|
813
|
-
return
|
|
814
|
-
},
|
|
843
|
+
return hn(o, t);
|
|
844
|
+
}, hn = (e, t) => {
|
|
815
845
|
const o = Vt();
|
|
816
846
|
for (const r in e) {
|
|
817
847
|
const n = e[r];
|
|
@@ -822,34 +852,34 @@ const sn = (e, t) => {
|
|
|
822
852
|
const n = e.length;
|
|
823
853
|
for (let s = 0; s < n; s++) {
|
|
824
854
|
const a = e[s];
|
|
825
|
-
|
|
855
|
+
gn(a, t, o, r);
|
|
826
856
|
}
|
|
827
|
-
},
|
|
857
|
+
}, gn = (e, t, o, r) => {
|
|
828
858
|
if (typeof e == "string") {
|
|
829
|
-
|
|
859
|
+
bn(e, t, o);
|
|
830
860
|
return;
|
|
831
861
|
}
|
|
832
862
|
if (typeof e == "function") {
|
|
833
|
-
|
|
863
|
+
vn(e, t, o, r);
|
|
834
864
|
return;
|
|
835
865
|
}
|
|
836
|
-
|
|
837
|
-
},
|
|
838
|
-
const r = e === "" ? t :
|
|
866
|
+
wn(e, t, o, r);
|
|
867
|
+
}, bn = (e, t, o) => {
|
|
868
|
+
const r = e === "" ? t : Bt(t, e);
|
|
839
869
|
r.classGroupId = o;
|
|
840
|
-
},
|
|
841
|
-
if (
|
|
870
|
+
}, vn = (e, t, o, r) => {
|
|
871
|
+
if (xn(e)) {
|
|
842
872
|
et(e(r), t, o, r);
|
|
843
873
|
return;
|
|
844
874
|
}
|
|
845
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
846
|
-
},
|
|
875
|
+
t.validators === null && (t.validators = []), t.validators.push(dn(o, e));
|
|
876
|
+
}, wn = (e, t, o, r) => {
|
|
847
877
|
const n = Object.entries(e), s = n.length;
|
|
848
878
|
for (let a = 0; a < s; a++) {
|
|
849
879
|
const [i, l] = n[a];
|
|
850
|
-
et(l,
|
|
880
|
+
et(l, Bt(t, i), o, r);
|
|
851
881
|
}
|
|
852
|
-
},
|
|
882
|
+
}, Bt = (e, t) => {
|
|
853
883
|
let o = e;
|
|
854
884
|
const r = t.split(Ie), n = r.length;
|
|
855
885
|
for (let s = 0; s < n; s++) {
|
|
@@ -858,7 +888,7 @@ const sn = (e, t) => {
|
|
|
858
888
|
i || (i = Vt(), o.nextPart.set(a, i)), o = i;
|
|
859
889
|
}
|
|
860
890
|
return o;
|
|
861
|
-
},
|
|
891
|
+
}, xn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, yn = (e) => {
|
|
862
892
|
if (e < 1)
|
|
863
893
|
return {
|
|
864
894
|
get: () => {
|
|
@@ -882,13 +912,13 @@ const sn = (e, t) => {
|
|
|
882
912
|
s in o ? o[s] = a : n(s, a);
|
|
883
913
|
}
|
|
884
914
|
};
|
|
885
|
-
}, Xe = "!", gt = ":",
|
|
915
|
+
}, Xe = "!", gt = ":", kn = [], bt = (e, t, o, r, n) => ({
|
|
886
916
|
modifiers: e,
|
|
887
917
|
hasImportantModifier: t,
|
|
888
918
|
baseClassName: o,
|
|
889
919
|
maybePostfixModifierPosition: r,
|
|
890
920
|
isExternal: n
|
|
891
|
-
}),
|
|
921
|
+
}), Sn = (e) => {
|
|
892
922
|
const {
|
|
893
923
|
prefix: t,
|
|
894
924
|
experimentalParseClassName: o
|
|
@@ -925,7 +955,7 @@ const sn = (e, t) => {
|
|
|
925
955
|
};
|
|
926
956
|
if (t) {
|
|
927
957
|
const n = t + gt, s = r;
|
|
928
|
-
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(
|
|
958
|
+
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(kn, !1, a, void 0, !0);
|
|
929
959
|
}
|
|
930
960
|
if (o) {
|
|
931
961
|
const n = r;
|
|
@@ -935,7 +965,7 @@ const sn = (e, t) => {
|
|
|
935
965
|
});
|
|
936
966
|
}
|
|
937
967
|
return r;
|
|
938
|
-
},
|
|
968
|
+
}, Cn = (e) => {
|
|
939
969
|
const t = /* @__PURE__ */ new Map();
|
|
940
970
|
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
941
971
|
t.set(o, 1e6 + r);
|
|
@@ -948,18 +978,18 @@ const sn = (e, t) => {
|
|
|
948
978
|
}
|
|
949
979
|
return n.length > 0 && (n.sort(), r.push(...n)), r;
|
|
950
980
|
};
|
|
951
|
-
},
|
|
952
|
-
cache:
|
|
953
|
-
parseClassName:
|
|
954
|
-
sortModifiers:
|
|
955
|
-
...
|
|
956
|
-
}),
|
|
981
|
+
}, Nn = (e) => ({
|
|
982
|
+
cache: yn(e.cacheSize),
|
|
983
|
+
parseClassName: Sn(e),
|
|
984
|
+
sortModifiers: Cn(e),
|
|
985
|
+
...fn(e)
|
|
986
|
+
}), En = /\s+/, An = (e, t) => {
|
|
957
987
|
const {
|
|
958
988
|
parseClassName: o,
|
|
959
989
|
getClassGroupId: r,
|
|
960
990
|
getConflictingClassGroupIds: n,
|
|
961
991
|
sortModifiers: s
|
|
962
|
-
} = t, a = [], i = e.trim().split(
|
|
992
|
+
} = t, a = [], i = e.trim().split(En);
|
|
963
993
|
let l = "";
|
|
964
994
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
965
995
|
const u = i[d], {
|
|
@@ -997,46 +1027,46 @@ const sn = (e, t) => {
|
|
|
997
1027
|
l = u + (l.length > 0 ? " " + l : l);
|
|
998
1028
|
}
|
|
999
1029
|
return l;
|
|
1000
|
-
},
|
|
1030
|
+
}, Rn = (...e) => {
|
|
1001
1031
|
let t = 0, o, r, n = "";
|
|
1002
1032
|
for (; t < e.length; )
|
|
1003
|
-
(o = e[t++]) && (r =
|
|
1033
|
+
(o = e[t++]) && (r = Gt(o)) && (n && (n += " "), n += r);
|
|
1004
1034
|
return n;
|
|
1005
|
-
},
|
|
1035
|
+
}, Gt = (e) => {
|
|
1006
1036
|
if (typeof e == "string")
|
|
1007
1037
|
return e;
|
|
1008
1038
|
let t, o = "";
|
|
1009
1039
|
for (let r = 0; r < e.length; r++)
|
|
1010
|
-
e[r] && (t =
|
|
1040
|
+
e[r] && (t = Gt(e[r])) && (o && (o += " "), o += t);
|
|
1011
1041
|
return o;
|
|
1012
|
-
},
|
|
1042
|
+
}, _n = (e, ...t) => {
|
|
1013
1043
|
let o, r, n, s;
|
|
1014
1044
|
const a = (l) => {
|
|
1015
1045
|
const d = t.reduce((u, f) => f(u), e());
|
|
1016
|
-
return o =
|
|
1046
|
+
return o = Nn(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
|
|
1017
1047
|
}, i = (l) => {
|
|
1018
1048
|
const d = r(l);
|
|
1019
1049
|
if (d)
|
|
1020
1050
|
return d;
|
|
1021
|
-
const u =
|
|
1051
|
+
const u = An(l, o);
|
|
1022
1052
|
return n(l, u), u;
|
|
1023
1053
|
};
|
|
1024
|
-
return s = a, (...l) => s(
|
|
1025
|
-
},
|
|
1026
|
-
const t = (o) => o[e] ||
|
|
1054
|
+
return s = a, (...l) => s(Rn(...l));
|
|
1055
|
+
}, In = [], F = (e) => {
|
|
1056
|
+
const t = (o) => o[e] || In;
|
|
1027
1057
|
return t.isThemeGetter = !0, t;
|
|
1028
|
-
},
|
|
1058
|
+
}, qt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Yt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, zn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tn = /\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$/, Mn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ln = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, On = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => Pn.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)), Z = (e) => zn.test(e), Xt = () => !0, $n = (e) => (
|
|
1029
1059
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1030
1060
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1031
1061
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1032
|
-
|
|
1033
|
-
), tt = () => !1,
|
|
1034
|
-
const r =
|
|
1062
|
+
Tn.test(e) && !Mn.test(e)
|
|
1063
|
+
), tt = () => !1, Fn = (e) => Ln.test(e), Dn = (e) => On.test(e), Un = (e) => !v(e) && !w(e), Wn = (e) => re(e, Jt, tt), v = (e) => qt.test(e), se = (e) => re(e, Qt, $n), vt = (e) => re(e, Xn, I), Hn = (e) => re(e, to, Xt), Vn = (e) => re(e, eo, tt), wt = (e) => re(e, Kt, tt), jn = (e) => re(e, Zt, Dn), Ne = (e) => re(e, oo, Fn), w = (e) => Yt.test(e), ue = (e) => ie(e, Qt), Bn = (e) => ie(e, eo), xt = (e) => ie(e, Kt), Gn = (e) => ie(e, Jt), qn = (e) => ie(e, Zt), Ee = (e) => ie(e, oo, !0), Yn = (e) => ie(e, to, !0), re = (e, t, o) => {
|
|
1064
|
+
const r = qt.exec(e);
|
|
1035
1065
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1036
1066
|
}, ie = (e, t, o = !1) => {
|
|
1037
|
-
const r =
|
|
1067
|
+
const r = Yt.exec(e);
|
|
1038
1068
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1039
|
-
},
|
|
1069
|
+
}, Kt = (e) => e === "position" || e === "percentage", Zt = (e) => e === "image" || e === "url", Jt = (e) => e === "length" || e === "size" || e === "bg-size", Qt = (e) => e === "length", Xn = (e) => e === "number", eo = (e) => e === "family-name", to = (e) => e === "number" || e === "weight", oo = (e) => e === "shadow", Kn = () => {
|
|
1040
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"), p = F("text-shadow"), b = F("drop-shadow"), S = 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 = () => [
|
|
1041
1071
|
"center",
|
|
1042
1072
|
"top",
|
|
@@ -1055,15 +1085,15 @@ const sn = (e, t) => {
|
|
|
1055
1085
|
"bottom-left",
|
|
1056
1086
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1057
1087
|
"left-bottom"
|
|
1058
|
-
], P = () => [...A(), w, v], N = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], g = () => [w, v, l], k = () => [ee, "full", "auto", ...g()],
|
|
1088
|
+
], P = () => [...A(), w, v], N = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], g = () => [w, v, l], k = () => [ee, "full", "auto", ...g()], M = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
|
|
1059
1089
|
span: ["full", te, w, v]
|
|
1060
|
-
}, te, w, v], K = () => [te, "auto", w, v],
|
|
1090
|
+
}, te, w, v], K = () => [te, "auto", w, v], ve = () => ["auto", "min", "max", "fr", w, v], we = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], E = () => [e, w, v], ct = () => [...A(), xt, wt, {
|
|
1061
1091
|
position: [w, v]
|
|
1062
1092
|
}], dt = () => ["no-repeat", {
|
|
1063
1093
|
repeat: ["", "x", "y", "space", "round"]
|
|
1064
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
1094
|
+
}], ut = () => ["auto", "cover", "contain", Gn, Wn, {
|
|
1065
1095
|
size: [w, v]
|
|
1066
|
-
}], De = () => [
|
|
1096
|
+
}], De = () => [He, ue, se], W = () => [
|
|
1067
1097
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1068
1098
|
"",
|
|
1069
1099
|
"none",
|
|
@@ -1071,14 +1101,14 @@ const sn = (e, t) => {
|
|
|
1071
1101
|
d,
|
|
1072
1102
|
w,
|
|
1073
1103
|
v
|
|
1074
|
-
],
|
|
1104
|
+
], H = () => ["", I, ue, se], xe = () => ["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, xt, wt], mt = () => [
|
|
1075
1105
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1076
1106
|
"",
|
|
1077
1107
|
"none",
|
|
1078
1108
|
S,
|
|
1079
1109
|
w,
|
|
1080
1110
|
v
|
|
1081
|
-
],
|
|
1111
|
+
], ye = () => ["none", I, w, v], ke = () => ["none", I, w, v], Ue = () => [I, w, v], Se = () => [ee, "full", ...g()];
|
|
1082
1112
|
return {
|
|
1083
1113
|
cacheSize: 500,
|
|
1084
1114
|
theme: {
|
|
@@ -1086,11 +1116,11 @@ const sn = (e, t) => {
|
|
|
1086
1116
|
aspect: ["video"],
|
|
1087
1117
|
blur: [Z],
|
|
1088
1118
|
breakpoint: [Z],
|
|
1089
|
-
color: [
|
|
1119
|
+
color: [Xt],
|
|
1090
1120
|
container: [Z],
|
|
1091
1121
|
"drop-shadow": [Z],
|
|
1092
1122
|
ease: ["in", "out", "in-out"],
|
|
1093
|
-
font: [
|
|
1123
|
+
font: [Un],
|
|
1094
1124
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1095
1125
|
"inset-shadow": [Z],
|
|
1096
1126
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1409,7 +1439,7 @@ const sn = (e, t) => {
|
|
|
1409
1439
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1410
1440
|
*/
|
|
1411
1441
|
"grid-cols": [{
|
|
1412
|
-
"grid-cols":
|
|
1442
|
+
"grid-cols": M()
|
|
1413
1443
|
}],
|
|
1414
1444
|
/**
|
|
1415
1445
|
* Grid Column Start / End
|
|
@@ -1437,7 +1467,7 @@ const sn = (e, t) => {
|
|
|
1437
1467
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1438
1468
|
*/
|
|
1439
1469
|
"grid-rows": [{
|
|
1440
|
-
"grid-rows":
|
|
1470
|
+
"grid-rows": M()
|
|
1441
1471
|
}],
|
|
1442
1472
|
/**
|
|
1443
1473
|
* Grid Row Start / End
|
|
@@ -1472,14 +1502,14 @@ const sn = (e, t) => {
|
|
|
1472
1502
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1473
1503
|
*/
|
|
1474
1504
|
"auto-cols": [{
|
|
1475
|
-
"auto-cols":
|
|
1505
|
+
"auto-cols": ve()
|
|
1476
1506
|
}],
|
|
1477
1507
|
/**
|
|
1478
1508
|
* Grid Auto Rows
|
|
1479
1509
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1480
1510
|
*/
|
|
1481
1511
|
"auto-rows": [{
|
|
1482
|
-
"auto-rows":
|
|
1512
|
+
"auto-rows": ve()
|
|
1483
1513
|
}],
|
|
1484
1514
|
/**
|
|
1485
1515
|
* Gap
|
|
@@ -1507,7 +1537,7 @@ const sn = (e, t) => {
|
|
|
1507
1537
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1508
1538
|
*/
|
|
1509
1539
|
"justify-content": [{
|
|
1510
|
-
justify: [...
|
|
1540
|
+
justify: [...we(), "normal"]
|
|
1511
1541
|
}],
|
|
1512
1542
|
/**
|
|
1513
1543
|
* Justify Items
|
|
@@ -1528,7 +1558,7 @@ const sn = (e, t) => {
|
|
|
1528
1558
|
* @see https://tailwindcss.com/docs/align-content
|
|
1529
1559
|
*/
|
|
1530
1560
|
"align-content": [{
|
|
1531
|
-
content: ["normal", ...
|
|
1561
|
+
content: ["normal", ...we()]
|
|
1532
1562
|
}],
|
|
1533
1563
|
/**
|
|
1534
1564
|
* Align Items
|
|
@@ -1553,7 +1583,7 @@ const sn = (e, t) => {
|
|
|
1553
1583
|
* @see https://tailwindcss.com/docs/place-content
|
|
1554
1584
|
*/
|
|
1555
1585
|
"place-content": [{
|
|
1556
|
-
"place-content":
|
|
1586
|
+
"place-content": we()
|
|
1557
1587
|
}],
|
|
1558
1588
|
/**
|
|
1559
1589
|
* Place Items
|
|
@@ -1884,21 +1914,21 @@ const sn = (e, t) => {
|
|
|
1884
1914
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1885
1915
|
*/
|
|
1886
1916
|
"font-weight": [{
|
|
1887
|
-
font: [r,
|
|
1917
|
+
font: [r, Yn, Hn]
|
|
1888
1918
|
}],
|
|
1889
1919
|
/**
|
|
1890
1920
|
* Font Stretch
|
|
1891
1921
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1892
1922
|
*/
|
|
1893
1923
|
"font-stretch": [{
|
|
1894
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1924
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", He, v]
|
|
1895
1925
|
}],
|
|
1896
1926
|
/**
|
|
1897
1927
|
* Font Family
|
|
1898
1928
|
* @see https://tailwindcss.com/docs/font-family
|
|
1899
1929
|
*/
|
|
1900
1930
|
"font-family": [{
|
|
1901
|
-
font: [
|
|
1931
|
+
font: [Bn, Vn, t]
|
|
1902
1932
|
}],
|
|
1903
1933
|
/**
|
|
1904
1934
|
* Font Feature Settings
|
|
@@ -2015,7 +2045,7 @@ const sn = (e, t) => {
|
|
|
2015
2045
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2016
2046
|
*/
|
|
2017
2047
|
"text-decoration-style": [{
|
|
2018
|
-
decoration: [...
|
|
2048
|
+
decoration: [...xe(), "wavy"]
|
|
2019
2049
|
}],
|
|
2020
2050
|
/**
|
|
2021
2051
|
* Text Decoration Thickness
|
|
@@ -2160,7 +2190,7 @@ const sn = (e, t) => {
|
|
|
2160
2190
|
}, te, w, v],
|
|
2161
2191
|
radial: ["", w, v],
|
|
2162
2192
|
conic: [te, w, v]
|
|
2163
|
-
},
|
|
2193
|
+
}, qn, jn]
|
|
2164
2194
|
}],
|
|
2165
2195
|
/**
|
|
2166
2196
|
* Background Color
|
|
@@ -2219,189 +2249,189 @@ const sn = (e, t) => {
|
|
|
2219
2249
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2220
2250
|
*/
|
|
2221
2251
|
rounded: [{
|
|
2222
|
-
rounded:
|
|
2252
|
+
rounded: W()
|
|
2223
2253
|
}],
|
|
2224
2254
|
/**
|
|
2225
2255
|
* Border Radius Start
|
|
2226
2256
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2227
2257
|
*/
|
|
2228
2258
|
"rounded-s": [{
|
|
2229
|
-
"rounded-s":
|
|
2259
|
+
"rounded-s": W()
|
|
2230
2260
|
}],
|
|
2231
2261
|
/**
|
|
2232
2262
|
* Border Radius End
|
|
2233
2263
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2234
2264
|
*/
|
|
2235
2265
|
"rounded-e": [{
|
|
2236
|
-
"rounded-e":
|
|
2266
|
+
"rounded-e": W()
|
|
2237
2267
|
}],
|
|
2238
2268
|
/**
|
|
2239
2269
|
* Border Radius Top
|
|
2240
2270
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2241
2271
|
*/
|
|
2242
2272
|
"rounded-t": [{
|
|
2243
|
-
"rounded-t":
|
|
2273
|
+
"rounded-t": W()
|
|
2244
2274
|
}],
|
|
2245
2275
|
/**
|
|
2246
2276
|
* Border Radius Right
|
|
2247
2277
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2248
2278
|
*/
|
|
2249
2279
|
"rounded-r": [{
|
|
2250
|
-
"rounded-r":
|
|
2280
|
+
"rounded-r": W()
|
|
2251
2281
|
}],
|
|
2252
2282
|
/**
|
|
2253
2283
|
* Border Radius Bottom
|
|
2254
2284
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2255
2285
|
*/
|
|
2256
2286
|
"rounded-b": [{
|
|
2257
|
-
"rounded-b":
|
|
2287
|
+
"rounded-b": W()
|
|
2258
2288
|
}],
|
|
2259
2289
|
/**
|
|
2260
2290
|
* Border Radius Left
|
|
2261
2291
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2262
2292
|
*/
|
|
2263
2293
|
"rounded-l": [{
|
|
2264
|
-
"rounded-l":
|
|
2294
|
+
"rounded-l": W()
|
|
2265
2295
|
}],
|
|
2266
2296
|
/**
|
|
2267
2297
|
* Border Radius Start Start
|
|
2268
2298
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2269
2299
|
*/
|
|
2270
2300
|
"rounded-ss": [{
|
|
2271
|
-
"rounded-ss":
|
|
2301
|
+
"rounded-ss": W()
|
|
2272
2302
|
}],
|
|
2273
2303
|
/**
|
|
2274
2304
|
* Border Radius Start End
|
|
2275
2305
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2276
2306
|
*/
|
|
2277
2307
|
"rounded-se": [{
|
|
2278
|
-
"rounded-se":
|
|
2308
|
+
"rounded-se": W()
|
|
2279
2309
|
}],
|
|
2280
2310
|
/**
|
|
2281
2311
|
* Border Radius End End
|
|
2282
2312
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2283
2313
|
*/
|
|
2284
2314
|
"rounded-ee": [{
|
|
2285
|
-
"rounded-ee":
|
|
2315
|
+
"rounded-ee": W()
|
|
2286
2316
|
}],
|
|
2287
2317
|
/**
|
|
2288
2318
|
* Border Radius End Start
|
|
2289
2319
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2290
2320
|
*/
|
|
2291
2321
|
"rounded-es": [{
|
|
2292
|
-
"rounded-es":
|
|
2322
|
+
"rounded-es": W()
|
|
2293
2323
|
}],
|
|
2294
2324
|
/**
|
|
2295
2325
|
* Border Radius Top Left
|
|
2296
2326
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2297
2327
|
*/
|
|
2298
2328
|
"rounded-tl": [{
|
|
2299
|
-
"rounded-tl":
|
|
2329
|
+
"rounded-tl": W()
|
|
2300
2330
|
}],
|
|
2301
2331
|
/**
|
|
2302
2332
|
* Border Radius Top Right
|
|
2303
2333
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2304
2334
|
*/
|
|
2305
2335
|
"rounded-tr": [{
|
|
2306
|
-
"rounded-tr":
|
|
2336
|
+
"rounded-tr": W()
|
|
2307
2337
|
}],
|
|
2308
2338
|
/**
|
|
2309
2339
|
* Border Radius Bottom Right
|
|
2310
2340
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2311
2341
|
*/
|
|
2312
2342
|
"rounded-br": [{
|
|
2313
|
-
"rounded-br":
|
|
2343
|
+
"rounded-br": W()
|
|
2314
2344
|
}],
|
|
2315
2345
|
/**
|
|
2316
2346
|
* Border Radius Bottom Left
|
|
2317
2347
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2318
2348
|
*/
|
|
2319
2349
|
"rounded-bl": [{
|
|
2320
|
-
"rounded-bl":
|
|
2350
|
+
"rounded-bl": W()
|
|
2321
2351
|
}],
|
|
2322
2352
|
/**
|
|
2323
2353
|
* Border Width
|
|
2324
2354
|
* @see https://tailwindcss.com/docs/border-width
|
|
2325
2355
|
*/
|
|
2326
2356
|
"border-w": [{
|
|
2327
|
-
border:
|
|
2357
|
+
border: H()
|
|
2328
2358
|
}],
|
|
2329
2359
|
/**
|
|
2330
2360
|
* Border Width Inline
|
|
2331
2361
|
* @see https://tailwindcss.com/docs/border-width
|
|
2332
2362
|
*/
|
|
2333
2363
|
"border-w-x": [{
|
|
2334
|
-
"border-x":
|
|
2364
|
+
"border-x": H()
|
|
2335
2365
|
}],
|
|
2336
2366
|
/**
|
|
2337
2367
|
* Border Width Block
|
|
2338
2368
|
* @see https://tailwindcss.com/docs/border-width
|
|
2339
2369
|
*/
|
|
2340
2370
|
"border-w-y": [{
|
|
2341
|
-
"border-y":
|
|
2371
|
+
"border-y": H()
|
|
2342
2372
|
}],
|
|
2343
2373
|
/**
|
|
2344
2374
|
* Border Width Inline Start
|
|
2345
2375
|
* @see https://tailwindcss.com/docs/border-width
|
|
2346
2376
|
*/
|
|
2347
2377
|
"border-w-s": [{
|
|
2348
|
-
"border-s":
|
|
2378
|
+
"border-s": H()
|
|
2349
2379
|
}],
|
|
2350
2380
|
/**
|
|
2351
2381
|
* Border Width Inline End
|
|
2352
2382
|
* @see https://tailwindcss.com/docs/border-width
|
|
2353
2383
|
*/
|
|
2354
2384
|
"border-w-e": [{
|
|
2355
|
-
"border-e":
|
|
2385
|
+
"border-e": H()
|
|
2356
2386
|
}],
|
|
2357
2387
|
/**
|
|
2358
2388
|
* Border Width Block Start
|
|
2359
2389
|
* @see https://tailwindcss.com/docs/border-width
|
|
2360
2390
|
*/
|
|
2361
2391
|
"border-w-bs": [{
|
|
2362
|
-
"border-bs":
|
|
2392
|
+
"border-bs": H()
|
|
2363
2393
|
}],
|
|
2364
2394
|
/**
|
|
2365
2395
|
* Border Width Block End
|
|
2366
2396
|
* @see https://tailwindcss.com/docs/border-width
|
|
2367
2397
|
*/
|
|
2368
2398
|
"border-w-be": [{
|
|
2369
|
-
"border-be":
|
|
2399
|
+
"border-be": H()
|
|
2370
2400
|
}],
|
|
2371
2401
|
/**
|
|
2372
2402
|
* Border Width Top
|
|
2373
2403
|
* @see https://tailwindcss.com/docs/border-width
|
|
2374
2404
|
*/
|
|
2375
2405
|
"border-w-t": [{
|
|
2376
|
-
"border-t":
|
|
2406
|
+
"border-t": H()
|
|
2377
2407
|
}],
|
|
2378
2408
|
/**
|
|
2379
2409
|
* Border Width Right
|
|
2380
2410
|
* @see https://tailwindcss.com/docs/border-width
|
|
2381
2411
|
*/
|
|
2382
2412
|
"border-w-r": [{
|
|
2383
|
-
"border-r":
|
|
2413
|
+
"border-r": H()
|
|
2384
2414
|
}],
|
|
2385
2415
|
/**
|
|
2386
2416
|
* Border Width Bottom
|
|
2387
2417
|
* @see https://tailwindcss.com/docs/border-width
|
|
2388
2418
|
*/
|
|
2389
2419
|
"border-w-b": [{
|
|
2390
|
-
"border-b":
|
|
2420
|
+
"border-b": H()
|
|
2391
2421
|
}],
|
|
2392
2422
|
/**
|
|
2393
2423
|
* Border Width Left
|
|
2394
2424
|
* @see https://tailwindcss.com/docs/border-width
|
|
2395
2425
|
*/
|
|
2396
2426
|
"border-w-l": [{
|
|
2397
|
-
"border-l":
|
|
2427
|
+
"border-l": H()
|
|
2398
2428
|
}],
|
|
2399
2429
|
/**
|
|
2400
2430
|
* Divide Width X
|
|
2401
2431
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2402
2432
|
*/
|
|
2403
2433
|
"divide-x": [{
|
|
2404
|
-
"divide-x":
|
|
2434
|
+
"divide-x": H()
|
|
2405
2435
|
}],
|
|
2406
2436
|
/**
|
|
2407
2437
|
* Divide Width X Reverse
|
|
@@ -2413,7 +2443,7 @@ const sn = (e, t) => {
|
|
|
2413
2443
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2414
2444
|
*/
|
|
2415
2445
|
"divide-y": [{
|
|
2416
|
-
"divide-y":
|
|
2446
|
+
"divide-y": H()
|
|
2417
2447
|
}],
|
|
2418
2448
|
/**
|
|
2419
2449
|
* Divide Width Y Reverse
|
|
@@ -2425,14 +2455,14 @@ const sn = (e, t) => {
|
|
|
2425
2455
|
* @see https://tailwindcss.com/docs/border-style
|
|
2426
2456
|
*/
|
|
2427
2457
|
"border-style": [{
|
|
2428
|
-
border: [...
|
|
2458
|
+
border: [...xe(), "hidden", "none"]
|
|
2429
2459
|
}],
|
|
2430
2460
|
/**
|
|
2431
2461
|
* Divide Style
|
|
2432
2462
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2433
2463
|
*/
|
|
2434
2464
|
"divide-style": [{
|
|
2435
|
-
divide: [...
|
|
2465
|
+
divide: [...xe(), "hidden", "none"]
|
|
2436
2466
|
}],
|
|
2437
2467
|
/**
|
|
2438
2468
|
* Border Color
|
|
@@ -2523,7 +2553,7 @@ const sn = (e, t) => {
|
|
|
2523
2553
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2524
2554
|
*/
|
|
2525
2555
|
"outline-style": [{
|
|
2526
|
-
outline: [...
|
|
2556
|
+
outline: [...xe(), "none", "hidden"]
|
|
2527
2557
|
}],
|
|
2528
2558
|
/**
|
|
2529
2559
|
* Outline Offset
|
|
@@ -2559,8 +2589,8 @@ const sn = (e, t) => {
|
|
|
2559
2589
|
"",
|
|
2560
2590
|
"none",
|
|
2561
2591
|
u,
|
|
2562
|
-
|
|
2563
|
-
|
|
2592
|
+
Ee,
|
|
2593
|
+
Ne
|
|
2564
2594
|
]
|
|
2565
2595
|
}],
|
|
2566
2596
|
/**
|
|
@@ -2575,7 +2605,7 @@ const sn = (e, t) => {
|
|
|
2575
2605
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2576
2606
|
*/
|
|
2577
2607
|
"inset-shadow": [{
|
|
2578
|
-
"inset-shadow": ["none", f,
|
|
2608
|
+
"inset-shadow": ["none", f, Ee, Ne]
|
|
2579
2609
|
}],
|
|
2580
2610
|
/**
|
|
2581
2611
|
* Inset Box Shadow Color
|
|
@@ -2589,7 +2619,7 @@ const sn = (e, t) => {
|
|
|
2589
2619
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2590
2620
|
*/
|
|
2591
2621
|
"ring-w": [{
|
|
2592
|
-
ring:
|
|
2622
|
+
ring: H()
|
|
2593
2623
|
}],
|
|
2594
2624
|
/**
|
|
2595
2625
|
* Ring Width Inset
|
|
@@ -2628,7 +2658,7 @@ const sn = (e, t) => {
|
|
|
2628
2658
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2629
2659
|
*/
|
|
2630
2660
|
"inset-ring-w": [{
|
|
2631
|
-
"inset-ring":
|
|
2661
|
+
"inset-ring": H()
|
|
2632
2662
|
}],
|
|
2633
2663
|
/**
|
|
2634
2664
|
* Inset Ring Color
|
|
@@ -2642,7 +2672,7 @@ const sn = (e, t) => {
|
|
|
2642
2672
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2643
2673
|
*/
|
|
2644
2674
|
"text-shadow": [{
|
|
2645
|
-
"text-shadow": ["none", p,
|
|
2675
|
+
"text-shadow": ["none", p, Ee, Ne]
|
|
2646
2676
|
}],
|
|
2647
2677
|
/**
|
|
2648
2678
|
* Text Shadow Color
|
|
@@ -2915,8 +2945,8 @@ const sn = (e, t) => {
|
|
|
2915
2945
|
"",
|
|
2916
2946
|
"none",
|
|
2917
2947
|
b,
|
|
2918
|
-
|
|
2919
|
-
|
|
2948
|
+
Ee,
|
|
2949
|
+
Ne
|
|
2920
2950
|
]
|
|
2921
2951
|
}],
|
|
2922
2952
|
/**
|
|
@@ -3156,56 +3186,56 @@ const sn = (e, t) => {
|
|
|
3156
3186
|
* @see https://tailwindcss.com/docs/rotate
|
|
3157
3187
|
*/
|
|
3158
3188
|
rotate: [{
|
|
3159
|
-
rotate:
|
|
3189
|
+
rotate: ye()
|
|
3160
3190
|
}],
|
|
3161
3191
|
/**
|
|
3162
3192
|
* Rotate X
|
|
3163
3193
|
* @see https://tailwindcss.com/docs/rotate
|
|
3164
3194
|
*/
|
|
3165
3195
|
"rotate-x": [{
|
|
3166
|
-
"rotate-x":
|
|
3196
|
+
"rotate-x": ye()
|
|
3167
3197
|
}],
|
|
3168
3198
|
/**
|
|
3169
3199
|
* Rotate Y
|
|
3170
3200
|
* @see https://tailwindcss.com/docs/rotate
|
|
3171
3201
|
*/
|
|
3172
3202
|
"rotate-y": [{
|
|
3173
|
-
"rotate-y":
|
|
3203
|
+
"rotate-y": ye()
|
|
3174
3204
|
}],
|
|
3175
3205
|
/**
|
|
3176
3206
|
* Rotate Z
|
|
3177
3207
|
* @see https://tailwindcss.com/docs/rotate
|
|
3178
3208
|
*/
|
|
3179
3209
|
"rotate-z": [{
|
|
3180
|
-
"rotate-z":
|
|
3210
|
+
"rotate-z": ye()
|
|
3181
3211
|
}],
|
|
3182
3212
|
/**
|
|
3183
3213
|
* Scale
|
|
3184
3214
|
* @see https://tailwindcss.com/docs/scale
|
|
3185
3215
|
*/
|
|
3186
3216
|
scale: [{
|
|
3187
|
-
scale:
|
|
3217
|
+
scale: ke()
|
|
3188
3218
|
}],
|
|
3189
3219
|
/**
|
|
3190
3220
|
* Scale X
|
|
3191
3221
|
* @see https://tailwindcss.com/docs/scale
|
|
3192
3222
|
*/
|
|
3193
3223
|
"scale-x": [{
|
|
3194
|
-
"scale-x":
|
|
3224
|
+
"scale-x": ke()
|
|
3195
3225
|
}],
|
|
3196
3226
|
/**
|
|
3197
3227
|
* Scale Y
|
|
3198
3228
|
* @see https://tailwindcss.com/docs/scale
|
|
3199
3229
|
*/
|
|
3200
3230
|
"scale-y": [{
|
|
3201
|
-
"scale-y":
|
|
3231
|
+
"scale-y": ke()
|
|
3202
3232
|
}],
|
|
3203
3233
|
/**
|
|
3204
3234
|
* Scale Z
|
|
3205
3235
|
* @see https://tailwindcss.com/docs/scale
|
|
3206
3236
|
*/
|
|
3207
3237
|
"scale-z": [{
|
|
3208
|
-
"scale-z":
|
|
3238
|
+
"scale-z": ke()
|
|
3209
3239
|
}],
|
|
3210
3240
|
/**
|
|
3211
3241
|
* Scale 3D
|
|
@@ -3217,21 +3247,21 @@ const sn = (e, t) => {
|
|
|
3217
3247
|
* @see https://tailwindcss.com/docs/skew
|
|
3218
3248
|
*/
|
|
3219
3249
|
skew: [{
|
|
3220
|
-
skew:
|
|
3250
|
+
skew: Ue()
|
|
3221
3251
|
}],
|
|
3222
3252
|
/**
|
|
3223
3253
|
* Skew X
|
|
3224
3254
|
* @see https://tailwindcss.com/docs/skew
|
|
3225
3255
|
*/
|
|
3226
3256
|
"skew-x": [{
|
|
3227
|
-
"skew-x":
|
|
3257
|
+
"skew-x": Ue()
|
|
3228
3258
|
}],
|
|
3229
3259
|
/**
|
|
3230
3260
|
* Skew Y
|
|
3231
3261
|
* @see https://tailwindcss.com/docs/skew
|
|
3232
3262
|
*/
|
|
3233
3263
|
"skew-y": [{
|
|
3234
|
-
"skew-y":
|
|
3264
|
+
"skew-y": Ue()
|
|
3235
3265
|
}],
|
|
3236
3266
|
/**
|
|
3237
3267
|
* Transform
|
|
@@ -3259,28 +3289,28 @@ const sn = (e, t) => {
|
|
|
3259
3289
|
* @see https://tailwindcss.com/docs/translate
|
|
3260
3290
|
*/
|
|
3261
3291
|
translate: [{
|
|
3262
|
-
translate:
|
|
3292
|
+
translate: Se()
|
|
3263
3293
|
}],
|
|
3264
3294
|
/**
|
|
3265
3295
|
* Translate X
|
|
3266
3296
|
* @see https://tailwindcss.com/docs/translate
|
|
3267
3297
|
*/
|
|
3268
3298
|
"translate-x": [{
|
|
3269
|
-
"translate-x":
|
|
3299
|
+
"translate-x": Se()
|
|
3270
3300
|
}],
|
|
3271
3301
|
/**
|
|
3272
3302
|
* Translate Y
|
|
3273
3303
|
* @see https://tailwindcss.com/docs/translate
|
|
3274
3304
|
*/
|
|
3275
3305
|
"translate-y": [{
|
|
3276
|
-
"translate-y":
|
|
3306
|
+
"translate-y": Se()
|
|
3277
3307
|
}],
|
|
3278
3308
|
/**
|
|
3279
3309
|
* Translate Z
|
|
3280
3310
|
* @see https://tailwindcss.com/docs/translate
|
|
3281
3311
|
*/
|
|
3282
3312
|
"translate-z": [{
|
|
3283
|
-
"translate-z":
|
|
3313
|
+
"translate-z": Se()
|
|
3284
3314
|
}],
|
|
3285
3315
|
/**
|
|
3286
3316
|
* Translate None
|
|
@@ -3665,13 +3695,13 @@ const sn = (e, t) => {
|
|
|
3665
3695
|
},
|
|
3666
3696
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3667
3697
|
};
|
|
3668
|
-
},
|
|
3698
|
+
}, Zn = /* @__PURE__ */ _n(Kn), T = (...e) => Zn(Ht(e));
|
|
3669
3699
|
function me({ className: e, ...t }) {
|
|
3670
3700
|
return /* @__PURE__ */ c(
|
|
3671
3701
|
"div",
|
|
3672
3702
|
{
|
|
3673
3703
|
"data-slot": "card",
|
|
3674
|
-
className:
|
|
3704
|
+
className: T(
|
|
3675
3705
|
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
3676
3706
|
e
|
|
3677
3707
|
),
|
|
@@ -3679,12 +3709,12 @@ function me({ className: e, ...t }) {
|
|
|
3679
3709
|
}
|
|
3680
3710
|
);
|
|
3681
3711
|
}
|
|
3682
|
-
function
|
|
3712
|
+
function Jn({ className: e, ...t }) {
|
|
3683
3713
|
return /* @__PURE__ */ c(
|
|
3684
3714
|
"div",
|
|
3685
3715
|
{
|
|
3686
3716
|
"data-slot": "card-header",
|
|
3687
|
-
className:
|
|
3717
|
+
className: T(
|
|
3688
3718
|
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
3689
3719
|
e
|
|
3690
3720
|
),
|
|
@@ -3697,12 +3727,12 @@ function pe({ className: e, ...t }) {
|
|
|
3697
3727
|
"div",
|
|
3698
3728
|
{
|
|
3699
3729
|
"data-slot": "card-content",
|
|
3700
|
-
className:
|
|
3730
|
+
className: T("px-6", e),
|
|
3701
3731
|
...t
|
|
3702
3732
|
}
|
|
3703
3733
|
);
|
|
3704
3734
|
}
|
|
3705
|
-
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt =
|
|
3735
|
+
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Ht, ot = (e, t) => (o) => {
|
|
3706
3736
|
var r;
|
|
3707
3737
|
if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3708
3738
|
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
|
|
@@ -3737,7 +3767,7 @@ function St(e, t) {
|
|
|
3737
3767
|
return e(t);
|
|
3738
3768
|
e != null && (e.current = t);
|
|
3739
3769
|
}
|
|
3740
|
-
function
|
|
3770
|
+
function ro(...e) {
|
|
3741
3771
|
return (t) => {
|
|
3742
3772
|
let o = !1;
|
|
3743
3773
|
const r = e.map((n) => {
|
|
@@ -3754,12 +3784,12 @@ function oo(...e) {
|
|
|
3754
3784
|
};
|
|
3755
3785
|
}
|
|
3756
3786
|
function Y(...e) {
|
|
3757
|
-
return m.useCallback(
|
|
3787
|
+
return m.useCallback(ro(...e), e);
|
|
3758
3788
|
}
|
|
3759
3789
|
// @__NO_SIDE_EFFECTS__
|
|
3760
3790
|
function Pe(e) {
|
|
3761
|
-
const t = /* @__PURE__ */
|
|
3762
|
-
const { children: s, ...a } = r, i = m.Children.toArray(s), l = i.find(
|
|
3791
|
+
const t = /* @__PURE__ */ Qn(e), o = m.forwardRef((r, n) => {
|
|
3792
|
+
const { children: s, ...a } = r, i = m.Children.toArray(s), l = i.find(ts);
|
|
3763
3793
|
if (l) {
|
|
3764
3794
|
const d = l.props.children, u = i.map((f) => f === l ? m.Children.count(d) > 1 ? m.Children.only(null) : m.isValidElement(d) ? d.props.children : null : f);
|
|
3765
3795
|
return /* @__PURE__ */ c(t, { ...a, ref: n, children: m.isValidElement(d) ? m.cloneElement(d, void 0, u) : null });
|
|
@@ -3768,24 +3798,24 @@ function Pe(e) {
|
|
|
3768
3798
|
});
|
|
3769
3799
|
return o.displayName = `${e}.Slot`, o;
|
|
3770
3800
|
}
|
|
3771
|
-
var
|
|
3801
|
+
var no = /* @__PURE__ */ Pe("Slot");
|
|
3772
3802
|
// @__NO_SIDE_EFFECTS__
|
|
3773
|
-
function
|
|
3803
|
+
function Qn(e) {
|
|
3774
3804
|
const t = m.forwardRef((o, r) => {
|
|
3775
3805
|
const { children: n, ...s } = o;
|
|
3776
3806
|
if (m.isValidElement(n)) {
|
|
3777
|
-
const a =
|
|
3778
|
-
return n.type !== m.Fragment && (i.ref = r ?
|
|
3807
|
+
const a = rs(n), i = os(s, n.props);
|
|
3808
|
+
return n.type !== m.Fragment && (i.ref = r ? ro(r, a) : a), m.cloneElement(n, i);
|
|
3779
3809
|
}
|
|
3780
3810
|
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
3781
3811
|
});
|
|
3782
3812
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3783
3813
|
}
|
|
3784
|
-
var
|
|
3785
|
-
function
|
|
3786
|
-
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
3814
|
+
var es = Symbol("radix.slottable");
|
|
3815
|
+
function ts(e) {
|
|
3816
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === es;
|
|
3787
3817
|
}
|
|
3788
|
-
function
|
|
3818
|
+
function os(e, t) {
|
|
3789
3819
|
const o = { ...t };
|
|
3790
3820
|
for (const r in t) {
|
|
3791
3821
|
const n = e[r], s = t[r];
|
|
@@ -3796,12 +3826,12 @@ function Qn(e, t) {
|
|
|
3796
3826
|
}
|
|
3797
3827
|
return { ...e, ...o };
|
|
3798
3828
|
}
|
|
3799
|
-
function
|
|
3829
|
+
function rs(e) {
|
|
3800
3830
|
var r, n;
|
|
3801
3831
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
3802
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);
|
|
3803
3833
|
}
|
|
3804
|
-
var
|
|
3834
|
+
var ns = [
|
|
3805
3835
|
"a",
|
|
3806
3836
|
"button",
|
|
3807
3837
|
"div",
|
|
@@ -3819,14 +3849,14 @@ var ts = [
|
|
|
3819
3849
|
"span",
|
|
3820
3850
|
"svg",
|
|
3821
3851
|
"ul"
|
|
3822
|
-
],
|
|
3852
|
+
], V = ns.reduce((e, t) => {
|
|
3823
3853
|
const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = m.forwardRef((n, s) => {
|
|
3824
3854
|
const { asChild: a, ...i } = n, l = a ? o : t;
|
|
3825
3855
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
3826
3856
|
});
|
|
3827
3857
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
3828
3858
|
}, {});
|
|
3829
|
-
function
|
|
3859
|
+
function ge(e, t = []) {
|
|
3830
3860
|
let o = [];
|
|
3831
3861
|
function r(s, a) {
|
|
3832
3862
|
const i = m.createContext(a), l = o.length;
|
|
@@ -3856,9 +3886,9 @@ function he(e, t = []) {
|
|
|
3856
3886
|
);
|
|
3857
3887
|
};
|
|
3858
3888
|
};
|
|
3859
|
-
return n.scopeName = e, [r,
|
|
3889
|
+
return n.scopeName = e, [r, ss(n, ...t)];
|
|
3860
3890
|
}
|
|
3861
|
-
function
|
|
3891
|
+
function ss(...e) {
|
|
3862
3892
|
const t = e[0];
|
|
3863
3893
|
if (e.length === 1) return t;
|
|
3864
3894
|
const o = () => {
|
|
@@ -3876,32 +3906,32 @@ function os(...e) {
|
|
|
3876
3906
|
};
|
|
3877
3907
|
return o.scopeName = t.scopeName, o;
|
|
3878
3908
|
}
|
|
3879
|
-
function
|
|
3880
|
-
const t = e + "CollectionProvider", [o, r] =
|
|
3909
|
+
function as(e) {
|
|
3910
|
+
const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
|
|
3881
3911
|
t,
|
|
3882
3912
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3883
3913
|
), a = (x) => {
|
|
3884
|
-
const { scope: h, children: y } = x, R =
|
|
3914
|
+
const { scope: h, children: y } = x, R = B.useRef(null), C = B.useRef(/* @__PURE__ */ new Map()).current;
|
|
3885
3915
|
return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
|
|
3886
3916
|
};
|
|
3887
3917
|
a.displayName = t;
|
|
3888
|
-
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d =
|
|
3918
|
+
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = B.forwardRef(
|
|
3889
3919
|
(x, h) => {
|
|
3890
3920
|
const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
|
|
3891
3921
|
return /* @__PURE__ */ c(l, { ref: A, children: R });
|
|
3892
3922
|
}
|
|
3893
3923
|
);
|
|
3894
3924
|
d.displayName = i;
|
|
3895
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ Pe(u), b =
|
|
3925
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ Pe(u), b = B.forwardRef(
|
|
3896
3926
|
(x, h) => {
|
|
3897
|
-
const { scope: y, children: R, ...C } = x, A =
|
|
3898
|
-
return
|
|
3927
|
+
const { scope: y, children: R, ...C } = x, A = B.useRef(null), P = Y(h, A), N = s(u, y);
|
|
3928
|
+
return B.useEffect(() => (N.itemMap.set(A, { ref: A, ...C }), () => void N.itemMap.delete(A))), /* @__PURE__ */ c(p, { [f]: "", ref: P, children: R });
|
|
3899
3929
|
}
|
|
3900
3930
|
);
|
|
3901
3931
|
b.displayName = u;
|
|
3902
3932
|
function S(x) {
|
|
3903
3933
|
const h = s(e + "CollectionConsumer", x);
|
|
3904
|
-
return
|
|
3934
|
+
return B.useCallback(() => {
|
|
3905
3935
|
const R = h.collectionRef.current;
|
|
3906
3936
|
if (!R) return [];
|
|
3907
3937
|
const C = Array.from(R.querySelectorAll(`[${f}]`));
|
|
@@ -3916,22 +3946,22 @@ function rs(e) {
|
|
|
3916
3946
|
r
|
|
3917
3947
|
];
|
|
3918
3948
|
}
|
|
3919
|
-
function
|
|
3949
|
+
function U(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
3920
3950
|
return function(n) {
|
|
3921
3951
|
if (e == null || e(n), o === !1 || !n.defaultPrevented)
|
|
3922
3952
|
return t == null ? void 0 : t(n);
|
|
3923
3953
|
};
|
|
3924
3954
|
}
|
|
3925
3955
|
var oe = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
|
|
3926
|
-
},
|
|
3927
|
-
function
|
|
3956
|
+
}, is = m[" useInsertionEffect ".trim().toString()] || oe;
|
|
3957
|
+
function so({
|
|
3928
3958
|
prop: e,
|
|
3929
3959
|
defaultProp: t,
|
|
3930
3960
|
onChange: o = () => {
|
|
3931
3961
|
},
|
|
3932
3962
|
caller: r
|
|
3933
3963
|
}) {
|
|
3934
|
-
const [n, s, a] =
|
|
3964
|
+
const [n, s, a] = ls({
|
|
3935
3965
|
defaultProp: t,
|
|
3936
3966
|
onChange: o
|
|
3937
3967
|
}), i = e !== void 0, l = i ? e : n;
|
|
@@ -3948,7 +3978,7 @@ function no({
|
|
|
3948
3978
|
(u) => {
|
|
3949
3979
|
var f;
|
|
3950
3980
|
if (i) {
|
|
3951
|
-
const p =
|
|
3981
|
+
const p = cs(u) ? u(e) : u;
|
|
3952
3982
|
p !== e && ((f = a.current) == null || f.call(a, p));
|
|
3953
3983
|
} else
|
|
3954
3984
|
s(u);
|
|
@@ -3957,31 +3987,31 @@ function no({
|
|
|
3957
3987
|
);
|
|
3958
3988
|
return [l, d];
|
|
3959
3989
|
}
|
|
3960
|
-
function
|
|
3990
|
+
function ls({
|
|
3961
3991
|
defaultProp: e,
|
|
3962
3992
|
onChange: t
|
|
3963
3993
|
}) {
|
|
3964
3994
|
const [o, r] = m.useState(e), n = m.useRef(o), s = m.useRef(t);
|
|
3965
|
-
return
|
|
3995
|
+
return is(() => {
|
|
3966
3996
|
s.current = t;
|
|
3967
3997
|
}, [t]), m.useEffect(() => {
|
|
3968
3998
|
var a;
|
|
3969
3999
|
n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
|
|
3970
4000
|
}, [o, n]), [o, r, s];
|
|
3971
4001
|
}
|
|
3972
|
-
function
|
|
4002
|
+
function cs(e) {
|
|
3973
4003
|
return typeof e == "function";
|
|
3974
4004
|
}
|
|
3975
|
-
function
|
|
4005
|
+
function ds(e, t) {
|
|
3976
4006
|
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
3977
4007
|
}
|
|
3978
4008
|
var de = (e) => {
|
|
3979
|
-
const { present: t, children: o } = e, r =
|
|
4009
|
+
const { present: t, children: o } = e, r = us(t), n = typeof o == "function" ? o({ present: r.isPresent }) : m.Children.only(o), s = Y(r.ref, fs(n));
|
|
3980
4010
|
return typeof o == "function" || r.isPresent ? m.cloneElement(n, { ref: s }) : null;
|
|
3981
4011
|
};
|
|
3982
4012
|
de.displayName = "Presence";
|
|
3983
|
-
function
|
|
3984
|
-
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] =
|
|
4013
|
+
function us(e) {
|
|
4014
|
+
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = ds(a, {
|
|
3985
4015
|
mounted: {
|
|
3986
4016
|
UNMOUNT: "unmounted",
|
|
3987
4017
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3995,19 +4025,19 @@ function ls(e) {
|
|
|
3995
4025
|
}
|
|
3996
4026
|
});
|
|
3997
4027
|
return m.useEffect(() => {
|
|
3998
|
-
const d =
|
|
4028
|
+
const d = Ae(r.current);
|
|
3999
4029
|
s.current = i === "mounted" ? d : "none";
|
|
4000
4030
|
}, [i]), oe(() => {
|
|
4001
4031
|
const d = r.current, u = n.current;
|
|
4002
4032
|
if (u !== e) {
|
|
4003
|
-
const p = s.current, b =
|
|
4033
|
+
const p = s.current, b = Ae(d);
|
|
4004
4034
|
e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && p !== b ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
4005
4035
|
}
|
|
4006
4036
|
}, [e, l]), oe(() => {
|
|
4007
4037
|
if (t) {
|
|
4008
4038
|
let d;
|
|
4009
4039
|
const u = t.ownerDocument.defaultView ?? window, f = (b) => {
|
|
4010
|
-
const x =
|
|
4040
|
+
const x = Ae(r.current).includes(CSS.escape(b.animationName));
|
|
4011
4041
|
if (b.target === t && x && (l("ANIMATION_END"), !n.current)) {
|
|
4012
4042
|
const h = t.style.animationFillMode;
|
|
4013
4043
|
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
@@ -4015,7 +4045,7 @@ function ls(e) {
|
|
|
4015
4045
|
});
|
|
4016
4046
|
}
|
|
4017
4047
|
}, p = (b) => {
|
|
4018
|
-
b.target === t && (s.current =
|
|
4048
|
+
b.target === t && (s.current = Ae(r.current));
|
|
4019
4049
|
};
|
|
4020
4050
|
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4021
4051
|
u.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4029,25 +4059,25 @@ function ls(e) {
|
|
|
4029
4059
|
}, [])
|
|
4030
4060
|
};
|
|
4031
4061
|
}
|
|
4032
|
-
function
|
|
4062
|
+
function Ae(e) {
|
|
4033
4063
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4034
4064
|
}
|
|
4035
|
-
function
|
|
4065
|
+
function fs(e) {
|
|
4036
4066
|
var r, n;
|
|
4037
4067
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
4038
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);
|
|
4039
4069
|
}
|
|
4040
|
-
var
|
|
4041
|
-
}),
|
|
4042
|
-
function
|
|
4043
|
-
const [t, o] = m.useState(
|
|
4070
|
+
var ms = m[" useId ".trim().toString()] || (() => {
|
|
4071
|
+
}), ps = 0;
|
|
4072
|
+
function ao(e) {
|
|
4073
|
+
const [t, o] = m.useState(ms());
|
|
4044
4074
|
return oe(() => {
|
|
4045
|
-
o((r) => r ?? String(
|
|
4075
|
+
o((r) => r ?? String(ps++));
|
|
4046
4076
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4047
4077
|
}
|
|
4048
|
-
var
|
|
4078
|
+
var hs = m.createContext(void 0);
|
|
4049
4079
|
function rt(e) {
|
|
4050
|
-
const t = m.useContext(
|
|
4080
|
+
const t = m.useContext(hs);
|
|
4051
4081
|
return e || t || "ltr";
|
|
4052
4082
|
}
|
|
4053
4083
|
function J(e) {
|
|
@@ -4059,7 +4089,7 @@ function J(e) {
|
|
|
4059
4089
|
return (r = t.current) == null ? void 0 : r.call(t, ...o);
|
|
4060
4090
|
}, []);
|
|
4061
4091
|
}
|
|
4062
|
-
var
|
|
4092
|
+
var Ve = { exports: {} }, je = {};
|
|
4063
4093
|
/**
|
|
4064
4094
|
* @license React
|
|
4065
4095
|
* use-sync-external-store-shim.production.js
|
|
@@ -4070,10 +4100,10 @@ var We = { exports: {} }, je = {};
|
|
|
4070
4100
|
* LICENSE file in the root directory of this source tree.
|
|
4071
4101
|
*/
|
|
4072
4102
|
var Ct;
|
|
4073
|
-
function
|
|
4103
|
+
function gs() {
|
|
4074
4104
|
if (Ct) return je;
|
|
4075
4105
|
Ct = 1;
|
|
4076
|
-
var e =
|
|
4106
|
+
var e = B;
|
|
4077
4107
|
function t(f, p) {
|
|
4078
4108
|
return f === p && (f !== 0 || 1 / f === 1 / p) || f !== f && p !== p;
|
|
4079
4109
|
}
|
|
@@ -4111,65 +4141,65 @@ function ms() {
|
|
|
4111
4141
|
return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
|
|
4112
4142
|
}
|
|
4113
4143
|
var Nt;
|
|
4114
|
-
function
|
|
4115
|
-
return Nt || (Nt = 1,
|
|
4144
|
+
function bs() {
|
|
4145
|
+
return Nt || (Nt = 1, Ve.exports = gs()), Ve.exports;
|
|
4116
4146
|
}
|
|
4117
|
-
var
|
|
4118
|
-
function
|
|
4119
|
-
return
|
|
4120
|
-
|
|
4147
|
+
var vs = bs();
|
|
4148
|
+
function ws() {
|
|
4149
|
+
return vs.useSyncExternalStore(
|
|
4150
|
+
xs,
|
|
4121
4151
|
() => !0,
|
|
4122
4152
|
() => !1
|
|
4123
4153
|
);
|
|
4124
4154
|
}
|
|
4125
|
-
function
|
|
4155
|
+
function xs() {
|
|
4126
4156
|
return () => {
|
|
4127
4157
|
};
|
|
4128
4158
|
}
|
|
4129
|
-
var nt = "Avatar", [
|
|
4159
|
+
var nt = "Avatar", [ys] = ge(nt), [ks, io] = ys(nt), lo = m.forwardRef(
|
|
4130
4160
|
(e, t) => {
|
|
4131
4161
|
const { __scopeAvatar: o, ...r } = e, [n, s] = m.useState("idle");
|
|
4132
4162
|
return /* @__PURE__ */ c(
|
|
4133
|
-
|
|
4163
|
+
ks,
|
|
4134
4164
|
{
|
|
4135
4165
|
scope: o,
|
|
4136
4166
|
imageLoadingStatus: n,
|
|
4137
4167
|
onImageLoadingStatusChange: s,
|
|
4138
|
-
children: /* @__PURE__ */ c(
|
|
4168
|
+
children: /* @__PURE__ */ c(V.span, { ...r, ref: t })
|
|
4139
4169
|
}
|
|
4140
4170
|
);
|
|
4141
4171
|
}
|
|
4142
4172
|
);
|
|
4143
|
-
|
|
4144
|
-
var
|
|
4173
|
+
lo.displayName = nt;
|
|
4174
|
+
var co = "AvatarImage", uo = m.forwardRef(
|
|
4145
4175
|
(e, t) => {
|
|
4146
4176
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4147
|
-
}, ...s } = e, a =
|
|
4177
|
+
}, ...s } = e, a = io(co, o), i = Ss(r, s), l = J((d) => {
|
|
4148
4178
|
n(d), a.onImageLoadingStatusChange(d);
|
|
4149
4179
|
});
|
|
4150
4180
|
return oe(() => {
|
|
4151
4181
|
i !== "idle" && l(i);
|
|
4152
|
-
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(
|
|
4182
|
+
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(V.img, { ...s, ref: t, src: r }) : null;
|
|
4153
4183
|
}
|
|
4154
4184
|
);
|
|
4155
|
-
|
|
4156
|
-
var
|
|
4185
|
+
uo.displayName = co;
|
|
4186
|
+
var fo = "AvatarFallback", mo = m.forwardRef(
|
|
4157
4187
|
(e, t) => {
|
|
4158
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = e, s =
|
|
4188
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = io(fo, o), [a, i] = m.useState(r === void 0);
|
|
4159
4189
|
return m.useEffect(() => {
|
|
4160
4190
|
if (r !== void 0) {
|
|
4161
4191
|
const l = window.setTimeout(() => i(!0), r);
|
|
4162
4192
|
return () => window.clearTimeout(l);
|
|
4163
4193
|
}
|
|
4164
|
-
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(
|
|
4194
|
+
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(V.span, { ...n, ref: t }) : null;
|
|
4165
4195
|
}
|
|
4166
4196
|
);
|
|
4167
|
-
|
|
4197
|
+
mo.displayName = fo;
|
|
4168
4198
|
function Et(e, t) {
|
|
4169
4199
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4170
4200
|
}
|
|
4171
|
-
function
|
|
4172
|
-
const r =
|
|
4201
|
+
function Ss(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
4202
|
+
const r = ws(), n = m.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = m.useState(
|
|
4173
4203
|
() => Et(s, e)
|
|
4174
4204
|
);
|
|
4175
4205
|
return oe(() => {
|
|
@@ -4185,14 +4215,14 @@ function xs(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
|
4185
4215
|
};
|
|
4186
4216
|
}, [s, o, t]), a;
|
|
4187
4217
|
}
|
|
4188
|
-
var
|
|
4189
|
-
|
|
4190
|
-
[
|
|
4191
|
-
), [
|
|
4192
|
-
(e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(
|
|
4218
|
+
var Cs = lo, Ns = uo, Es = mo, Be = "rovingFocusGroup.onEntryFocus", As = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ke, po, Rs] = as(be), [_s, ho] = ge(
|
|
4219
|
+
be,
|
|
4220
|
+
[Rs]
|
|
4221
|
+
), [Is, Ps] = _s(be), go = m.forwardRef(
|
|
4222
|
+
(e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(zs, { ...e, ref: t }) }) })
|
|
4193
4223
|
);
|
|
4194
|
-
|
|
4195
|
-
var
|
|
4224
|
+
go.displayName = be;
|
|
4225
|
+
var zs = m.forwardRef((e, t) => {
|
|
4196
4226
|
const {
|
|
4197
4227
|
__scopeRovingFocusGroup: o,
|
|
4198
4228
|
orientation: r,
|
|
@@ -4204,18 +4234,18 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4204
4234
|
onEntryFocus: d,
|
|
4205
4235
|
preventScrollOnEntryFocus: u = !1,
|
|
4206
4236
|
...f
|
|
4207
|
-
} = e, p = m.useRef(null), b = Y(t, p), S = rt(s), [x, h] =
|
|
4237
|
+
} = e, p = m.useRef(null), b = Y(t, p), S = rt(s), [x, h] = so({
|
|
4208
4238
|
prop: a,
|
|
4209
4239
|
defaultProp: i ?? null,
|
|
4210
4240
|
onChange: l,
|
|
4211
|
-
caller:
|
|
4212
|
-
}), [y, R] = m.useState(!1), C = J(d), A =
|
|
4241
|
+
caller: be
|
|
4242
|
+
}), [y, R] = m.useState(!1), C = J(d), A = po(o), P = m.useRef(!1), [N, _] = m.useState(0);
|
|
4213
4243
|
return m.useEffect(() => {
|
|
4214
4244
|
const g = p.current;
|
|
4215
4245
|
if (g)
|
|
4216
4246
|
return g.addEventListener(Be, C), () => g.removeEventListener(Be, C);
|
|
4217
4247
|
}, [C]), /* @__PURE__ */ c(
|
|
4218
|
-
|
|
4248
|
+
Is,
|
|
4219
4249
|
{
|
|
4220
4250
|
scope: o,
|
|
4221
4251
|
orientation: r,
|
|
@@ -4236,35 +4266,35 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4236
4266
|
[]
|
|
4237
4267
|
),
|
|
4238
4268
|
children: /* @__PURE__ */ c(
|
|
4239
|
-
|
|
4269
|
+
V.div,
|
|
4240
4270
|
{
|
|
4241
4271
|
tabIndex: y || N === 0 ? -1 : 0,
|
|
4242
4272
|
"data-orientation": r,
|
|
4243
4273
|
...f,
|
|
4244
4274
|
ref: b,
|
|
4245
4275
|
style: { outline: "none", ...e.style },
|
|
4246
|
-
onMouseDown:
|
|
4276
|
+
onMouseDown: U(e.onMouseDown, () => {
|
|
4247
4277
|
P.current = !0;
|
|
4248
4278
|
}),
|
|
4249
|
-
onFocus:
|
|
4279
|
+
onFocus: U(e.onFocus, (g) => {
|
|
4250
4280
|
const k = !P.current;
|
|
4251
4281
|
if (g.target === g.currentTarget && k && !y) {
|
|
4252
|
-
const
|
|
4253
|
-
if (g.currentTarget.dispatchEvent(
|
|
4254
|
-
const O = A().filter(($) => $.focusable), K = O.find(($) => $.active),
|
|
4282
|
+
const M = new CustomEvent(Be, As);
|
|
4283
|
+
if (g.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
4284
|
+
const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [K, ve, ...O].filter(
|
|
4255
4285
|
Boolean
|
|
4256
4286
|
).map(($) => $.ref.current);
|
|
4257
|
-
|
|
4287
|
+
wo(Q, u);
|
|
4258
4288
|
}
|
|
4259
4289
|
}
|
|
4260
4290
|
P.current = !1;
|
|
4261
4291
|
}),
|
|
4262
|
-
onBlur:
|
|
4292
|
+
onBlur: U(e.onBlur, () => R(!1))
|
|
4263
4293
|
}
|
|
4264
4294
|
)
|
|
4265
4295
|
}
|
|
4266
4296
|
);
|
|
4267
|
-
}),
|
|
4297
|
+
}), bo = "RovingFocusGroupItem", vo = m.forwardRef(
|
|
4268
4298
|
(e, t) => {
|
|
4269
4299
|
const {
|
|
4270
4300
|
__scopeRovingFocusGroup: o,
|
|
@@ -4273,7 +4303,7 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4273
4303
|
tabStopId: s,
|
|
4274
4304
|
children: a,
|
|
4275
4305
|
...i
|
|
4276
|
-
} = e, l =
|
|
4306
|
+
} = e, l = ao(), d = s || l, u = Ps(bo, o), f = u.currentTabStopId === d, p = po(o), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: x } = u;
|
|
4277
4307
|
return m.useEffect(() => {
|
|
4278
4308
|
if (r)
|
|
4279
4309
|
return b(), () => S();
|
|
@@ -4285,23 +4315,23 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4285
4315
|
focusable: r,
|
|
4286
4316
|
active: n,
|
|
4287
4317
|
children: /* @__PURE__ */ c(
|
|
4288
|
-
|
|
4318
|
+
V.span,
|
|
4289
4319
|
{
|
|
4290
4320
|
tabIndex: f ? 0 : -1,
|
|
4291
4321
|
"data-orientation": u.orientation,
|
|
4292
4322
|
...i,
|
|
4293
4323
|
ref: t,
|
|
4294
|
-
onMouseDown:
|
|
4324
|
+
onMouseDown: U(e.onMouseDown, (h) => {
|
|
4295
4325
|
r ? u.onItemFocus(d) : h.preventDefault();
|
|
4296
4326
|
}),
|
|
4297
|
-
onFocus:
|
|
4298
|
-
onKeyDown:
|
|
4327
|
+
onFocus: U(e.onFocus, () => u.onItemFocus(d)),
|
|
4328
|
+
onKeyDown: U(e.onKeyDown, (h) => {
|
|
4299
4329
|
if (h.key === "Tab" && h.shiftKey) {
|
|
4300
4330
|
u.onItemShiftTab();
|
|
4301
4331
|
return;
|
|
4302
4332
|
}
|
|
4303
4333
|
if (h.target !== h.currentTarget) return;
|
|
4304
|
-
const y =
|
|
4334
|
+
const y = Ls(h, u.orientation, u.dir);
|
|
4305
4335
|
if (y !== void 0) {
|
|
4306
4336
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
4307
4337
|
h.preventDefault();
|
|
@@ -4310,9 +4340,9 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4310
4340
|
else if (y === "prev" || y === "next") {
|
|
4311
4341
|
y === "prev" && C.reverse();
|
|
4312
4342
|
const A = C.indexOf(h.currentTarget);
|
|
4313
|
-
C = u.loop ?
|
|
4343
|
+
C = u.loop ? Os(C, A + 1) : C.slice(A + 1);
|
|
4314
4344
|
}
|
|
4315
|
-
setTimeout(() =>
|
|
4345
|
+
setTimeout(() => wo(C));
|
|
4316
4346
|
}
|
|
4317
4347
|
}),
|
|
4318
4348
|
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: x != null }) : a
|
|
@@ -4322,8 +4352,8 @@ var _s = m.forwardRef((e, t) => {
|
|
|
4322
4352
|
);
|
|
4323
4353
|
}
|
|
4324
4354
|
);
|
|
4325
|
-
|
|
4326
|
-
var
|
|
4355
|
+
vo.displayName = bo;
|
|
4356
|
+
var Ts = {
|
|
4327
4357
|
ArrowLeft: "prev",
|
|
4328
4358
|
ArrowUp: "prev",
|
|
4329
4359
|
ArrowRight: "next",
|
|
@@ -4333,30 +4363,30 @@ var Is = {
|
|
|
4333
4363
|
PageDown: "last",
|
|
4334
4364
|
End: "last"
|
|
4335
4365
|
};
|
|
4336
|
-
function
|
|
4366
|
+
function Ms(e, t) {
|
|
4337
4367
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4338
4368
|
}
|
|
4339
|
-
function
|
|
4340
|
-
const r =
|
|
4369
|
+
function Ls(e, t, o) {
|
|
4370
|
+
const r = Ms(e.key, o);
|
|
4341
4371
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4342
|
-
return
|
|
4372
|
+
return Ts[r];
|
|
4343
4373
|
}
|
|
4344
|
-
function
|
|
4374
|
+
function wo(e, t = !1) {
|
|
4345
4375
|
const o = document.activeElement;
|
|
4346
4376
|
for (const r of e)
|
|
4347
4377
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
4348
4378
|
}
|
|
4349
|
-
function
|
|
4379
|
+
function Os(e, t) {
|
|
4350
4380
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
4351
4381
|
}
|
|
4352
|
-
var
|
|
4353
|
-
function
|
|
4382
|
+
var $s = go, Fs = vo;
|
|
4383
|
+
function Ds(e, [t, o]) {
|
|
4354
4384
|
return Math.min(o, Math.max(t, e));
|
|
4355
4385
|
}
|
|
4356
|
-
function
|
|
4386
|
+
function Us(e, t) {
|
|
4357
4387
|
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4358
4388
|
}
|
|
4359
|
-
var st = "ScrollArea", [
|
|
4389
|
+
var st = "ScrollArea", [xo] = ge(st), [Ws, q] = xo(st), yo = m.forwardRef(
|
|
4360
4390
|
(e, t) => {
|
|
4361
4391
|
const {
|
|
4362
4392
|
__scopeScrollArea: o,
|
|
@@ -4364,13 +4394,13 @@ var st = "ScrollArea", [wo] = he(st), [Fs, q] = wo(st), xo = m.forwardRef(
|
|
|
4364
4394
|
dir: n,
|
|
4365
4395
|
scrollHideDelay: s = 600,
|
|
4366
4396
|
...a
|
|
4367
|
-
} = e, [i, l] = m.useState(null), [d, u] = m.useState(null), [f, p] = m.useState(null), [b, S] = m.useState(null), [x, h] = m.useState(null), [y, R] = m.useState(0), [C, A] = m.useState(0), [P, N] = m.useState(!1), [_, g] = m.useState(!1), k = Y(t, (O) => l(O)),
|
|
4397
|
+
} = e, [i, l] = m.useState(null), [d, u] = m.useState(null), [f, p] = m.useState(null), [b, S] = m.useState(null), [x, h] = m.useState(null), [y, R] = m.useState(0), [C, A] = m.useState(0), [P, N] = m.useState(!1), [_, g] = m.useState(!1), k = Y(t, (O) => l(O)), M = rt(n);
|
|
4368
4398
|
return /* @__PURE__ */ c(
|
|
4369
|
-
|
|
4399
|
+
Ws,
|
|
4370
4400
|
{
|
|
4371
4401
|
scope: o,
|
|
4372
4402
|
type: r,
|
|
4373
|
-
dir:
|
|
4403
|
+
dir: M,
|
|
4374
4404
|
scrollHideDelay: s,
|
|
4375
4405
|
scrollArea: i,
|
|
4376
4406
|
viewport: d,
|
|
@@ -4388,9 +4418,9 @@ var st = "ScrollArea", [wo] = he(st), [Fs, q] = wo(st), xo = m.forwardRef(
|
|
|
4388
4418
|
onCornerWidthChange: R,
|
|
4389
4419
|
onCornerHeightChange: A,
|
|
4390
4420
|
children: /* @__PURE__ */ c(
|
|
4391
|
-
|
|
4421
|
+
V.div,
|
|
4392
4422
|
{
|
|
4393
|
-
dir:
|
|
4423
|
+
dir: M,
|
|
4394
4424
|
...a,
|
|
4395
4425
|
ref: k,
|
|
4396
4426
|
style: {
|
|
@@ -4406,11 +4436,11 @@ var st = "ScrollArea", [wo] = he(st), [Fs, q] = wo(st), xo = m.forwardRef(
|
|
|
4406
4436
|
);
|
|
4407
4437
|
}
|
|
4408
4438
|
);
|
|
4409
|
-
|
|
4410
|
-
var
|
|
4439
|
+
yo.displayName = st;
|
|
4440
|
+
var ko = "ScrollAreaViewport", So = m.forwardRef(
|
|
4411
4441
|
(e, t) => {
|
|
4412
|
-
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(
|
|
4413
|
-
return /* @__PURE__ */
|
|
4442
|
+
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(ko, o), i = m.useRef(null), l = Y(t, i, a.onViewportChange);
|
|
4443
|
+
return /* @__PURE__ */ z(he, { children: [
|
|
4414
4444
|
/* @__PURE__ */ c(
|
|
4415
4445
|
"style",
|
|
4416
4446
|
{
|
|
@@ -4421,7 +4451,7 @@ var yo = "ScrollAreaViewport", ko = m.forwardRef(
|
|
|
4421
4451
|
}
|
|
4422
4452
|
),
|
|
4423
4453
|
/* @__PURE__ */ c(
|
|
4424
|
-
|
|
4454
|
+
V.div,
|
|
4425
4455
|
{
|
|
4426
4456
|
"data-radix-scroll-area-viewport": "",
|
|
4427
4457
|
...s,
|
|
@@ -4448,17 +4478,17 @@ var yo = "ScrollAreaViewport", ko = m.forwardRef(
|
|
|
4448
4478
|
] });
|
|
4449
4479
|
}
|
|
4450
4480
|
);
|
|
4451
|
-
|
|
4452
|
-
var X = "ScrollAreaScrollbar",
|
|
4481
|
+
So.displayName = ko;
|
|
4482
|
+
var X = "ScrollAreaScrollbar", Co = m.forwardRef(
|
|
4453
4483
|
(e, t) => {
|
|
4454
4484
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4455
4485
|
return m.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4456
4486
|
i ? s(!1) : a(!1);
|
|
4457
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(
|
|
4487
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Hs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(No, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
|
|
4458
4488
|
}
|
|
4459
4489
|
);
|
|
4460
|
-
|
|
4461
|
-
var
|
|
4490
|
+
Co.displayName = X;
|
|
4491
|
+
var Hs = m.forwardRef((e, t) => {
|
|
4462
4492
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = m.useState(!1);
|
|
4463
4493
|
return m.useEffect(() => {
|
|
4464
4494
|
const i = n.scrollArea;
|
|
@@ -4474,15 +4504,15 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4474
4504
|
};
|
|
4475
4505
|
}
|
|
4476
4506
|
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(de, { present: o || s, children: /* @__PURE__ */ c(
|
|
4477
|
-
|
|
4507
|
+
No,
|
|
4478
4508
|
{
|
|
4479
4509
|
"data-state": s ? "visible" : "hidden",
|
|
4480
4510
|
...r,
|
|
4481
4511
|
ref: t
|
|
4482
4512
|
}
|
|
4483
4513
|
) });
|
|
4484
|
-
}),
|
|
4485
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] =
|
|
4514
|
+
}), Vs = m.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] = Us("hidden", {
|
|
4486
4516
|
hidden: {
|
|
4487
4517
|
SCROLL: "scrolling"
|
|
4488
4518
|
},
|
|
@@ -4521,11 +4551,11 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4521
4551
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
4522
4552
|
...r,
|
|
4523
4553
|
ref: t,
|
|
4524
|
-
onPointerEnter:
|
|
4525
|
-
onPointerLeave:
|
|
4554
|
+
onPointerEnter: U(e.onPointerEnter, () => l("POINTER_ENTER")),
|
|
4555
|
+
onPointerLeave: U(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
4526
4556
|
}
|
|
4527
4557
|
) });
|
|
4528
|
-
}),
|
|
4558
|
+
}), No = m.forwardRef((e, t) => {
|
|
4529
4559
|
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = m.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
|
|
4530
4560
|
if (o.viewport) {
|
|
4531
4561
|
const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
|
|
@@ -4545,7 +4575,7 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4545
4575
|
content: 0,
|
|
4546
4576
|
viewport: 0,
|
|
4547
4577
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4548
|
-
}), d =
|
|
4578
|
+
}), d = Io(i.viewport, i.content), u = {
|
|
4549
4579
|
...r,
|
|
4550
4580
|
sizes: i,
|
|
4551
4581
|
onSizesChange: l,
|
|
@@ -4555,10 +4585,10 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4555
4585
|
onThumbPointerDown: (p) => a.current = p
|
|
4556
4586
|
};
|
|
4557
4587
|
function f(p, b) {
|
|
4558
|
-
return
|
|
4588
|
+
return Xs(p, a.current, i, b);
|
|
4559
4589
|
}
|
|
4560
4590
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4561
|
-
|
|
4591
|
+
js,
|
|
4562
4592
|
{
|
|
4563
4593
|
...u,
|
|
4564
4594
|
ref: t,
|
|
@@ -4576,7 +4606,7 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4576
4606
|
}
|
|
4577
4607
|
}
|
|
4578
4608
|
) : o === "vertical" ? /* @__PURE__ */ c(
|
|
4579
|
-
|
|
4609
|
+
Bs,
|
|
4580
4610
|
{
|
|
4581
4611
|
...u,
|
|
4582
4612
|
ref: t,
|
|
@@ -4594,12 +4624,12 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4594
4624
|
}
|
|
4595
4625
|
}
|
|
4596
4626
|
) : null;
|
|
4597
|
-
}),
|
|
4627
|
+
}), js = m.forwardRef((e, t) => {
|
|
4598
4628
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarXChange);
|
|
4599
4629
|
return m.useEffect(() => {
|
|
4600
4630
|
l.current && i(getComputedStyle(l.current));
|
|
4601
4631
|
}, [l]), /* @__PURE__ */ c(
|
|
4602
|
-
|
|
4632
|
+
Ao,
|
|
4603
4633
|
{
|
|
4604
4634
|
"data-orientation": "horizontal",
|
|
4605
4635
|
...n,
|
|
@@ -4617,7 +4647,7 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4617
4647
|
onWheelScroll: (u, f) => {
|
|
4618
4648
|
if (s.viewport) {
|
|
4619
4649
|
const p = s.viewport.scrollLeft + u.deltaX;
|
|
4620
|
-
e.onWheelScroll(p),
|
|
4650
|
+
e.onWheelScroll(p), zo(p, f) && u.preventDefault();
|
|
4621
4651
|
}
|
|
4622
4652
|
},
|
|
4623
4653
|
onResize: () => {
|
|
@@ -4633,12 +4663,12 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4633
4663
|
}
|
|
4634
4664
|
}
|
|
4635
4665
|
);
|
|
4636
|
-
}),
|
|
4666
|
+
}), Bs = m.forwardRef((e, t) => {
|
|
4637
4667
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarYChange);
|
|
4638
4668
|
return m.useEffect(() => {
|
|
4639
4669
|
l.current && i(getComputedStyle(l.current));
|
|
4640
4670
|
}, [l]), /* @__PURE__ */ c(
|
|
4641
|
-
|
|
4671
|
+
Ao,
|
|
4642
4672
|
{
|
|
4643
4673
|
"data-orientation": "vertical",
|
|
4644
4674
|
...n,
|
|
@@ -4657,7 +4687,7 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4657
4687
|
onWheelScroll: (u, f) => {
|
|
4658
4688
|
if (s.viewport) {
|
|
4659
4689
|
const p = s.viewport.scrollTop + u.deltaY;
|
|
4660
|
-
e.onWheelScroll(p),
|
|
4690
|
+
e.onWheelScroll(p), zo(p, f) && u.preventDefault();
|
|
4661
4691
|
}
|
|
4662
4692
|
},
|
|
4663
4693
|
onResize: () => {
|
|
@@ -4673,7 +4703,7 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4673
4703
|
}
|
|
4674
4704
|
}
|
|
4675
4705
|
);
|
|
4676
|
-
}), [
|
|
4706
|
+
}), [Gs, Eo] = xo(X), Ao = m.forwardRef((e, t) => {
|
|
4677
4707
|
const {
|
|
4678
4708
|
__scopeScrollArea: o,
|
|
4679
4709
|
sizes: r,
|
|
@@ -4689,18 +4719,18 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4689
4719
|
} = e, b = q(X, o), [S, x] = m.useState(null), h = Y(t, (k) => x(k)), y = m.useRef(null), R = m.useRef(""), C = b.viewport, A = r.content - r.viewport, P = J(u), N = J(l), _ = Le(f, 10);
|
|
4690
4720
|
function g(k) {
|
|
4691
4721
|
if (y.current) {
|
|
4692
|
-
const
|
|
4693
|
-
d({ x:
|
|
4722
|
+
const M = k.clientX - y.current.left, O = k.clientY - y.current.top;
|
|
4723
|
+
d({ x: M, y: O });
|
|
4694
4724
|
}
|
|
4695
4725
|
}
|
|
4696
4726
|
return m.useEffect(() => {
|
|
4697
|
-
const k = (
|
|
4698
|
-
const O =
|
|
4699
|
-
(S == null ? void 0 : S.contains(O)) && P(
|
|
4727
|
+
const k = (M) => {
|
|
4728
|
+
const O = M.target;
|
|
4729
|
+
(S == null ? void 0 : S.contains(O)) && P(M, A);
|
|
4700
4730
|
};
|
|
4701
4731
|
return document.addEventListener("wheel", k, { passive: !1 }), () => document.removeEventListener("wheel", k, { passive: !1 });
|
|
4702
4732
|
}, [C, S, A, P]), m.useEffect(N, [r, N]), ce(S, _), ce(b.content, _), /* @__PURE__ */ c(
|
|
4703
|
-
|
|
4733
|
+
Gs,
|
|
4704
4734
|
{
|
|
4705
4735
|
scope: o,
|
|
4706
4736
|
scrollbar: S,
|
|
@@ -4710,31 +4740,31 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4710
4740
|
onThumbPositionChange: N,
|
|
4711
4741
|
onThumbPointerDown: J(i),
|
|
4712
4742
|
children: /* @__PURE__ */ c(
|
|
4713
|
-
|
|
4743
|
+
V.div,
|
|
4714
4744
|
{
|
|
4715
4745
|
...p,
|
|
4716
4746
|
ref: h,
|
|
4717
4747
|
style: { position: "absolute", ...p.style },
|
|
4718
|
-
onPointerDown:
|
|
4748
|
+
onPointerDown: U(e.onPointerDown, (k) => {
|
|
4719
4749
|
k.button === 0 && (k.target.setPointerCapture(k.pointerId), y.current = S.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", b.viewport && (b.viewport.style.scrollBehavior = "auto"), g(k));
|
|
4720
4750
|
}),
|
|
4721
|
-
onPointerMove:
|
|
4722
|
-
onPointerUp:
|
|
4723
|
-
const
|
|
4724
|
-
|
|
4751
|
+
onPointerMove: U(e.onPointerMove, g),
|
|
4752
|
+
onPointerUp: U(e.onPointerUp, (k) => {
|
|
4753
|
+
const M = k.target;
|
|
4754
|
+
M.hasPointerCapture(k.pointerId) && M.releasePointerCapture(k.pointerId), document.body.style.webkitUserSelect = R.current, b.viewport && (b.viewport.style.scrollBehavior = ""), y.current = null;
|
|
4725
4755
|
})
|
|
4726
4756
|
}
|
|
4727
4757
|
)
|
|
4728
4758
|
}
|
|
4729
4759
|
);
|
|
4730
|
-
}), ze = "ScrollAreaThumb",
|
|
4760
|
+
}), ze = "ScrollAreaThumb", Ro = m.forwardRef(
|
|
4731
4761
|
(e, t) => {
|
|
4732
|
-
const { forceMount: o, ...r } = e, n =
|
|
4733
|
-
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(
|
|
4762
|
+
const { forceMount: o, ...r } = e, n = Eo(ze, e.__scopeScrollArea);
|
|
4763
|
+
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(qs, { ref: t, ...r }) });
|
|
4734
4764
|
}
|
|
4735
|
-
),
|
|
4765
|
+
), qs = m.forwardRef(
|
|
4736
4766
|
(e, t) => {
|
|
4737
|
-
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a =
|
|
4767
|
+
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Eo(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4738
4768
|
t,
|
|
4739
4769
|
(f) => a.onThumbChange(f)
|
|
4740
4770
|
), d = m.useRef(void 0), u = Le(() => {
|
|
@@ -4745,14 +4775,14 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4745
4775
|
if (f) {
|
|
4746
4776
|
const p = () => {
|
|
4747
4777
|
if (u(), !d.current) {
|
|
4748
|
-
const b =
|
|
4778
|
+
const b = Ks(f, i);
|
|
4749
4779
|
d.current = b, i();
|
|
4750
4780
|
}
|
|
4751
4781
|
};
|
|
4752
4782
|
return i(), f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
|
|
4753
4783
|
}
|
|
4754
4784
|
}, [s.viewport, u, i]), /* @__PURE__ */ c(
|
|
4755
|
-
|
|
4785
|
+
V.div,
|
|
4756
4786
|
{
|
|
4757
4787
|
"data-state": a.hasThumb ? "visible" : "hidden",
|
|
4758
4788
|
...n,
|
|
@@ -4762,24 +4792,24 @@ var Ds = m.forwardRef((e, t) => {
|
|
|
4762
4792
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
4763
4793
|
...r
|
|
4764
4794
|
},
|
|
4765
|
-
onPointerDownCapture:
|
|
4795
|
+
onPointerDownCapture: U(e.onPointerDownCapture, (f) => {
|
|
4766
4796
|
const b = f.target.getBoundingClientRect(), S = f.clientX - b.left, x = f.clientY - b.top;
|
|
4767
4797
|
a.onThumbPointerDown({ x: S, y: x });
|
|
4768
4798
|
}),
|
|
4769
|
-
onPointerUp:
|
|
4799
|
+
onPointerUp: U(e.onPointerUp, a.onThumbPointerUp)
|
|
4770
4800
|
}
|
|
4771
4801
|
);
|
|
4772
4802
|
}
|
|
4773
4803
|
);
|
|
4774
|
-
|
|
4775
|
-
var it = "ScrollAreaCorner",
|
|
4804
|
+
Ro.displayName = ze;
|
|
4805
|
+
var it = "ScrollAreaCorner", _o = m.forwardRef(
|
|
4776
4806
|
(e, t) => {
|
|
4777
4807
|
const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4778
|
-
return o.type !== "scroll" && r ? /* @__PURE__ */ c(
|
|
4808
|
+
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Ys, { ...e, ref: t }) : null;
|
|
4779
4809
|
}
|
|
4780
4810
|
);
|
|
4781
|
-
|
|
4782
|
-
var
|
|
4811
|
+
_o.displayName = it;
|
|
4812
|
+
var Ys = m.forwardRef((e, t) => {
|
|
4783
4813
|
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = m.useState(0), [i, l] = m.useState(0), d = !!(s && i);
|
|
4784
4814
|
return ce(n.scrollbarX, () => {
|
|
4785
4815
|
var f;
|
|
@@ -4790,7 +4820,7 @@ var Bs = m.forwardRef((e, t) => {
|
|
|
4790
4820
|
const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
4791
4821
|
n.onCornerWidthChange(u), a(u);
|
|
4792
4822
|
}), d ? /* @__PURE__ */ c(
|
|
4793
|
-
|
|
4823
|
+
V.div,
|
|
4794
4824
|
{
|
|
4795
4825
|
...r,
|
|
4796
4826
|
ref: t,
|
|
@@ -4809,33 +4839,33 @@ var Bs = m.forwardRef((e, t) => {
|
|
|
4809
4839
|
function Te(e) {
|
|
4810
4840
|
return e ? parseInt(e, 10) : 0;
|
|
4811
4841
|
}
|
|
4812
|
-
function
|
|
4842
|
+
function Io(e, t) {
|
|
4813
4843
|
const o = e / t;
|
|
4814
4844
|
return isNaN(o) ? 0 : o;
|
|
4815
4845
|
}
|
|
4816
4846
|
function Me(e) {
|
|
4817
|
-
const t =
|
|
4847
|
+
const t = Io(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4818
4848
|
return Math.max(r, 18);
|
|
4819
4849
|
}
|
|
4820
|
-
function
|
|
4850
|
+
function Xs(e, t, o, r = "ltr") {
|
|
4821
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];
|
|
4822
|
-
return
|
|
4852
|
+
return Po([l, d], f)(e);
|
|
4823
4853
|
}
|
|
4824
4854
|
function At(e, t, o = "ltr") {
|
|
4825
|
-
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 =
|
|
4826
|
-
return
|
|
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 = Ds(e, l);
|
|
4856
|
+
return Po([0, a], [0, i])(d);
|
|
4827
4857
|
}
|
|
4828
|
-
function
|
|
4858
|
+
function Po(e, t) {
|
|
4829
4859
|
return (o) => {
|
|
4830
4860
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
4831
4861
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
4832
4862
|
return t[0] + r * (o - e[0]);
|
|
4833
4863
|
};
|
|
4834
4864
|
}
|
|
4835
|
-
function
|
|
4865
|
+
function zo(e, t) {
|
|
4836
4866
|
return e > 0 && e < t;
|
|
4837
4867
|
}
|
|
4838
|
-
var
|
|
4868
|
+
var Ks = (e, t = () => {
|
|
4839
4869
|
}) => {
|
|
4840
4870
|
let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
4841
4871
|
return (function n() {
|
|
@@ -4863,10 +4893,10 @@ function ce(e, t) {
|
|
|
4863
4893
|
}
|
|
4864
4894
|
}, [e, o]);
|
|
4865
4895
|
}
|
|
4866
|
-
var
|
|
4867
|
-
const { decorative: o, orientation: r = Rt, ...n } = e, s =
|
|
4896
|
+
var Zs = yo, Js = So, Qs = _o, ea = "Separator", Rt = "horizontal", ta = ["horizontal", "vertical"], To = m.forwardRef((e, t) => {
|
|
4897
|
+
const { decorative: o, orientation: r = Rt, ...n } = e, s = oa(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4868
4898
|
return /* @__PURE__ */ c(
|
|
4869
|
-
|
|
4899
|
+
V.div,
|
|
4870
4900
|
{
|
|
4871
4901
|
"data-orientation": s,
|
|
4872
4902
|
...i,
|
|
@@ -4875,13 +4905,13 @@ var Ys = xo, Xs = ko, Ks = Ro, Zs = "Separator", Rt = "horizontal", Js = ["horiz
|
|
|
4875
4905
|
}
|
|
4876
4906
|
);
|
|
4877
4907
|
});
|
|
4878
|
-
|
|
4879
|
-
function
|
|
4880
|
-
return
|
|
4908
|
+
To.displayName = ea;
|
|
4909
|
+
function oa(e) {
|
|
4910
|
+
return ta.includes(e);
|
|
4881
4911
|
}
|
|
4882
|
-
var
|
|
4883
|
-
|
|
4884
|
-
]),
|
|
4912
|
+
var ra = To, Oe = "Tabs", [na] = ge(Oe, [
|
|
4913
|
+
ho
|
|
4914
|
+
]), Mo = ho(), [sa, lt] = na(Oe), Lo = m.forwardRef(
|
|
4885
4915
|
(e, t) => {
|
|
4886
4916
|
const {
|
|
4887
4917
|
__scopeTabs: o,
|
|
@@ -4892,24 +4922,24 @@ var ea = zo, Oe = "Tabs", [ta] = he(Oe, [
|
|
|
4892
4922
|
dir: i,
|
|
4893
4923
|
activationMode: l = "automatic",
|
|
4894
4924
|
...d
|
|
4895
|
-
} = e, u = rt(i), [f, p] =
|
|
4925
|
+
} = e, u = rt(i), [f, p] = so({
|
|
4896
4926
|
prop: r,
|
|
4897
4927
|
onChange: n,
|
|
4898
4928
|
defaultProp: s ?? "",
|
|
4899
4929
|
caller: Oe
|
|
4900
4930
|
});
|
|
4901
4931
|
return /* @__PURE__ */ c(
|
|
4902
|
-
|
|
4932
|
+
sa,
|
|
4903
4933
|
{
|
|
4904
4934
|
scope: o,
|
|
4905
|
-
baseId:
|
|
4935
|
+
baseId: ao(),
|
|
4906
4936
|
value: f,
|
|
4907
4937
|
onValueChange: p,
|
|
4908
4938
|
orientation: a,
|
|
4909
4939
|
dir: u,
|
|
4910
4940
|
activationMode: l,
|
|
4911
4941
|
children: /* @__PURE__ */ c(
|
|
4912
|
-
|
|
4942
|
+
V.div,
|
|
4913
4943
|
{
|
|
4914
4944
|
dir: u,
|
|
4915
4945
|
"data-orientation": a,
|
|
@@ -4921,12 +4951,12 @@ var ea = zo, Oe = "Tabs", [ta] = he(Oe, [
|
|
|
4921
4951
|
);
|
|
4922
4952
|
}
|
|
4923
4953
|
);
|
|
4924
|
-
|
|
4925
|
-
var
|
|
4954
|
+
Lo.displayName = Oe;
|
|
4955
|
+
var Oo = "TabsList", $o = m.forwardRef(
|
|
4926
4956
|
(e, t) => {
|
|
4927
|
-
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(
|
|
4957
|
+
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Oo, o), a = Mo(o);
|
|
4928
4958
|
return /* @__PURE__ */ c(
|
|
4929
|
-
|
|
4959
|
+
$s,
|
|
4930
4960
|
{
|
|
4931
4961
|
asChild: !0,
|
|
4932
4962
|
...a,
|
|
@@ -4934,7 +4964,7 @@ var Lo = "TabsList", Oo = m.forwardRef(
|
|
|
4934
4964
|
dir: s.dir,
|
|
4935
4965
|
loop: r,
|
|
4936
4966
|
children: /* @__PURE__ */ c(
|
|
4937
|
-
|
|
4967
|
+
V.div,
|
|
4938
4968
|
{
|
|
4939
4969
|
role: "tablist",
|
|
4940
4970
|
"aria-orientation": s.orientation,
|
|
@@ -4946,19 +4976,19 @@ var Lo = "TabsList", Oo = m.forwardRef(
|
|
|
4946
4976
|
);
|
|
4947
4977
|
}
|
|
4948
4978
|
);
|
|
4949
|
-
|
|
4950
|
-
var
|
|
4979
|
+
$o.displayName = Oo;
|
|
4980
|
+
var Fo = "TabsTrigger", Do = m.forwardRef(
|
|
4951
4981
|
(e, t) => {
|
|
4952
|
-
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(
|
|
4982
|
+
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Fo, o), i = Mo(o), l = Ho(a.baseId, r), d = Vo(a.baseId, r), u = r === a.value;
|
|
4953
4983
|
return /* @__PURE__ */ c(
|
|
4954
|
-
|
|
4984
|
+
Fs,
|
|
4955
4985
|
{
|
|
4956
4986
|
asChild: !0,
|
|
4957
4987
|
...i,
|
|
4958
4988
|
focusable: !n,
|
|
4959
4989
|
active: u,
|
|
4960
4990
|
children: /* @__PURE__ */ c(
|
|
4961
|
-
|
|
4991
|
+
V.button,
|
|
4962
4992
|
{
|
|
4963
4993
|
type: "button",
|
|
4964
4994
|
role: "tab",
|
|
@@ -4970,13 +5000,13 @@ var $o = "TabsTrigger", Fo = m.forwardRef(
|
|
|
4970
5000
|
id: l,
|
|
4971
5001
|
...s,
|
|
4972
5002
|
ref: t,
|
|
4973
|
-
onMouseDown:
|
|
5003
|
+
onMouseDown: U(e.onMouseDown, (f) => {
|
|
4974
5004
|
!n && f.button === 0 && f.ctrlKey === !1 ? a.onValueChange(r) : f.preventDefault();
|
|
4975
5005
|
}),
|
|
4976
|
-
onKeyDown:
|
|
5006
|
+
onKeyDown: U(e.onKeyDown, (f) => {
|
|
4977
5007
|
[" ", "Enter"].includes(f.key) && a.onValueChange(r);
|
|
4978
5008
|
}),
|
|
4979
|
-
onFocus:
|
|
5009
|
+
onFocus: U(e.onFocus, () => {
|
|
4980
5010
|
const f = a.activationMode !== "manual";
|
|
4981
5011
|
!u && !n && f && a.onValueChange(r);
|
|
4982
5012
|
})
|
|
@@ -4986,15 +5016,15 @@ var $o = "TabsTrigger", Fo = m.forwardRef(
|
|
|
4986
5016
|
);
|
|
4987
5017
|
}
|
|
4988
5018
|
);
|
|
4989
|
-
|
|
4990
|
-
var
|
|
5019
|
+
Do.displayName = Fo;
|
|
5020
|
+
var Uo = "TabsContent", Wo = m.forwardRef(
|
|
4991
5021
|
(e, t) => {
|
|
4992
|
-
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(
|
|
5022
|
+
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Uo, o), l = Ho(i.baseId, r), d = Vo(i.baseId, r), u = r === i.value, f = m.useRef(u);
|
|
4993
5023
|
return m.useEffect(() => {
|
|
4994
5024
|
const p = requestAnimationFrame(() => f.current = !1);
|
|
4995
5025
|
return () => cancelAnimationFrame(p);
|
|
4996
5026
|
}, []), /* @__PURE__ */ c(de, { present: n || u, children: ({ present: p }) => /* @__PURE__ */ c(
|
|
4997
|
-
|
|
5027
|
+
V.div,
|
|
4998
5028
|
{
|
|
4999
5029
|
"data-state": u ? "active" : "inactive",
|
|
5000
5030
|
"data-orientation": i.orientation,
|
|
@@ -5014,15 +5044,15 @@ var Do = "TabsContent", Ho = m.forwardRef(
|
|
|
5014
5044
|
) });
|
|
5015
5045
|
}
|
|
5016
5046
|
);
|
|
5017
|
-
|
|
5018
|
-
function
|
|
5047
|
+
Wo.displayName = Uo;
|
|
5048
|
+
function Ho(e, t) {
|
|
5019
5049
|
return `${e}-trigger-${t}`;
|
|
5020
5050
|
}
|
|
5021
5051
|
function Vo(e, t) {
|
|
5022
5052
|
return `${e}-content-${t}`;
|
|
5023
5053
|
}
|
|
5024
|
-
var
|
|
5025
|
-
const
|
|
5054
|
+
var aa = Lo, ia = $o, la = Do, ca = Wo;
|
|
5055
|
+
const da = ot(
|
|
5026
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',
|
|
5027
5057
|
{
|
|
5028
5058
|
variants: {
|
|
@@ -5051,7 +5081,7 @@ const ia = ot(
|
|
|
5051
5081
|
}
|
|
5052
5082
|
}
|
|
5053
5083
|
);
|
|
5054
|
-
function
|
|
5084
|
+
function jo({
|
|
5055
5085
|
className: e,
|
|
5056
5086
|
variant: t = "default",
|
|
5057
5087
|
size: o = "default",
|
|
@@ -5059,17 +5089,17 @@ function Wo({
|
|
|
5059
5089
|
...n
|
|
5060
5090
|
}) {
|
|
5061
5091
|
return /* @__PURE__ */ c(
|
|
5062
|
-
r ?
|
|
5092
|
+
r ? no : "button",
|
|
5063
5093
|
{
|
|
5064
5094
|
"data-slot": "button",
|
|
5065
5095
|
"data-variant": t,
|
|
5066
5096
|
"data-size": o,
|
|
5067
|
-
className:
|
|
5097
|
+
className: T(da({ variant: t, size: o, className: e })),
|
|
5068
5098
|
...n
|
|
5069
5099
|
}
|
|
5070
5100
|
);
|
|
5071
5101
|
}
|
|
5072
|
-
const
|
|
5102
|
+
const ua = ot(
|
|
5073
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",
|
|
5074
5104
|
{
|
|
5075
5105
|
variants: {
|
|
@@ -5087,29 +5117,29 @@ const la = ot(
|
|
|
5087
5117
|
}
|
|
5088
5118
|
}
|
|
5089
5119
|
);
|
|
5090
|
-
function
|
|
5120
|
+
function fa({
|
|
5091
5121
|
className: e,
|
|
5092
5122
|
variant: t = "default",
|
|
5093
5123
|
asChild: o = !1,
|
|
5094
5124
|
...r
|
|
5095
5125
|
}) {
|
|
5096
5126
|
return /* @__PURE__ */ c(
|
|
5097
|
-
o ?
|
|
5127
|
+
o ? no : "span",
|
|
5098
5128
|
{
|
|
5099
5129
|
"data-slot": "badge",
|
|
5100
5130
|
"data-variant": t,
|
|
5101
|
-
className:
|
|
5131
|
+
className: T(ua({ variant: t }), e),
|
|
5102
5132
|
...r
|
|
5103
5133
|
}
|
|
5104
5134
|
);
|
|
5105
5135
|
}
|
|
5106
|
-
function
|
|
5136
|
+
function ma({ className: e, type: t, ...o }) {
|
|
5107
5137
|
return /* @__PURE__ */ c(
|
|
5108
5138
|
"input",
|
|
5109
5139
|
{
|
|
5110
5140
|
type: t,
|
|
5111
5141
|
"data-slot": "input",
|
|
5112
|
-
className:
|
|
5142
|
+
className: T(
|
|
5113
5143
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
5114
5144
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
5115
5145
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
@@ -5119,19 +5149,19 @@ function da({ className: e, type: t, ...o }) {
|
|
|
5119
5149
|
}
|
|
5120
5150
|
);
|
|
5121
5151
|
}
|
|
5122
|
-
function
|
|
5152
|
+
function pa({
|
|
5123
5153
|
className: e,
|
|
5124
5154
|
orientation: t = "horizontal",
|
|
5125
5155
|
decorative: o = !0,
|
|
5126
5156
|
...r
|
|
5127
5157
|
}) {
|
|
5128
5158
|
return /* @__PURE__ */ c(
|
|
5129
|
-
|
|
5159
|
+
ra,
|
|
5130
5160
|
{
|
|
5131
5161
|
"data-slot": "separator",
|
|
5132
5162
|
decorative: o,
|
|
5133
5163
|
orientation: t,
|
|
5134
|
-
className:
|
|
5164
|
+
className: T(
|
|
5135
5165
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
5136
5166
|
e
|
|
5137
5167
|
),
|
|
@@ -5139,18 +5169,18 @@ function ua({
|
|
|
5139
5169
|
}
|
|
5140
5170
|
);
|
|
5141
5171
|
}
|
|
5142
|
-
function
|
|
5172
|
+
function ha({
|
|
5143
5173
|
className: e,
|
|
5144
5174
|
orientation: t = "horizontal",
|
|
5145
5175
|
...o
|
|
5146
5176
|
}) {
|
|
5147
5177
|
return /* @__PURE__ */ c(
|
|
5148
|
-
|
|
5178
|
+
aa,
|
|
5149
5179
|
{
|
|
5150
5180
|
"data-slot": "tabs",
|
|
5151
5181
|
"data-orientation": t,
|
|
5152
5182
|
orientation: t,
|
|
5153
|
-
className:
|
|
5183
|
+
className: T(
|
|
5154
5184
|
"group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
|
|
5155
5185
|
e
|
|
5156
5186
|
),
|
|
@@ -5158,7 +5188,7 @@ function fa({
|
|
|
5158
5188
|
}
|
|
5159
5189
|
);
|
|
5160
5190
|
}
|
|
5161
|
-
const
|
|
5191
|
+
const ga = ot(
|
|
5162
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",
|
|
5163
5193
|
{
|
|
5164
5194
|
variants: {
|
|
@@ -5172,30 +5202,30 @@ const ma = ot(
|
|
|
5172
5202
|
}
|
|
5173
5203
|
}
|
|
5174
5204
|
);
|
|
5175
|
-
function
|
|
5205
|
+
function ba({
|
|
5176
5206
|
className: e,
|
|
5177
5207
|
variant: t = "default",
|
|
5178
5208
|
...o
|
|
5179
5209
|
}) {
|
|
5180
5210
|
return /* @__PURE__ */ c(
|
|
5181
|
-
|
|
5211
|
+
ia,
|
|
5182
5212
|
{
|
|
5183
5213
|
"data-slot": "tabs-list",
|
|
5184
5214
|
"data-variant": t,
|
|
5185
|
-
className:
|
|
5215
|
+
className: T(ga({ variant: t }), e),
|
|
5186
5216
|
...o
|
|
5187
5217
|
}
|
|
5188
5218
|
);
|
|
5189
5219
|
}
|
|
5190
|
-
function
|
|
5220
|
+
function va({
|
|
5191
5221
|
className: e,
|
|
5192
5222
|
...t
|
|
5193
5223
|
}) {
|
|
5194
5224
|
return /* @__PURE__ */ c(
|
|
5195
|
-
|
|
5225
|
+
la,
|
|
5196
5226
|
{
|
|
5197
5227
|
"data-slot": "tabs-trigger",
|
|
5198
|
-
className:
|
|
5228
|
+
className: T(
|
|
5199
5229
|
'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4',
|
|
5200
5230
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
|
|
5201
5231
|
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground",
|
|
@@ -5206,30 +5236,30 @@ function ha({
|
|
|
5206
5236
|
}
|
|
5207
5237
|
);
|
|
5208
5238
|
}
|
|
5209
|
-
function
|
|
5239
|
+
function wa({
|
|
5210
5240
|
className: e,
|
|
5211
5241
|
...t
|
|
5212
5242
|
}) {
|
|
5213
5243
|
return /* @__PURE__ */ c(
|
|
5214
|
-
|
|
5244
|
+
ca,
|
|
5215
5245
|
{
|
|
5216
5246
|
"data-slot": "tabs-content",
|
|
5217
|
-
className:
|
|
5247
|
+
className: T("flex-1 outline-none", e),
|
|
5218
5248
|
...t
|
|
5219
5249
|
}
|
|
5220
5250
|
);
|
|
5221
5251
|
}
|
|
5222
|
-
function
|
|
5252
|
+
function xa({
|
|
5223
5253
|
className: e,
|
|
5224
5254
|
orientation: t = "vertical",
|
|
5225
5255
|
...o
|
|
5226
5256
|
}) {
|
|
5227
5257
|
return /* @__PURE__ */ c(
|
|
5228
|
-
|
|
5258
|
+
Co,
|
|
5229
5259
|
{
|
|
5230
5260
|
"data-slot": "scroll-area-scrollbar",
|
|
5231
5261
|
orientation: t,
|
|
5232
|
-
className:
|
|
5262
|
+
className: T(
|
|
5233
5263
|
"flex touch-none p-px transition-colors select-none",
|
|
5234
5264
|
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
5235
5265
|
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
@@ -5237,7 +5267,7 @@ function ba({
|
|
|
5237
5267
|
),
|
|
5238
5268
|
...o,
|
|
5239
5269
|
children: /* @__PURE__ */ c(
|
|
5240
|
-
|
|
5270
|
+
Ro,
|
|
5241
5271
|
{
|
|
5242
5272
|
"data-slot": "scroll-area-thumb",
|
|
5243
5273
|
className: "bg-border relative flex-1 rounded-full"
|
|
@@ -5246,28 +5276,28 @@ function ba({
|
|
|
5246
5276
|
}
|
|
5247
5277
|
);
|
|
5248
5278
|
}
|
|
5249
|
-
function
|
|
5279
|
+
function ya({
|
|
5250
5280
|
className: e,
|
|
5251
5281
|
children: t,
|
|
5252
5282
|
...o
|
|
5253
5283
|
}) {
|
|
5254
|
-
return /* @__PURE__ */
|
|
5255
|
-
|
|
5284
|
+
return /* @__PURE__ */ z(
|
|
5285
|
+
Zs,
|
|
5256
5286
|
{
|
|
5257
5287
|
"data-slot": "scroll-area",
|
|
5258
|
-
className:
|
|
5288
|
+
className: T("relative", e),
|
|
5259
5289
|
...o,
|
|
5260
5290
|
children: [
|
|
5261
5291
|
/* @__PURE__ */ c(
|
|
5262
|
-
|
|
5292
|
+
Js,
|
|
5263
5293
|
{
|
|
5264
5294
|
"data-slot": "scroll-area-viewport",
|
|
5265
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",
|
|
5266
5296
|
children: t
|
|
5267
5297
|
}
|
|
5268
5298
|
),
|
|
5269
|
-
/* @__PURE__ */ c(
|
|
5270
|
-
/* @__PURE__ */ c(
|
|
5299
|
+
/* @__PURE__ */ c(xa, {}),
|
|
5300
|
+
/* @__PURE__ */ c(Qs, {})
|
|
5271
5301
|
]
|
|
5272
5302
|
}
|
|
5273
5303
|
);
|
|
@@ -5278,11 +5308,11 @@ function Ze({
|
|
|
5278
5308
|
...o
|
|
5279
5309
|
}) {
|
|
5280
5310
|
return /* @__PURE__ */ c(
|
|
5281
|
-
|
|
5311
|
+
Cs,
|
|
5282
5312
|
{
|
|
5283
5313
|
"data-slot": "avatar",
|
|
5284
5314
|
"data-size": t,
|
|
5285
|
-
className:
|
|
5315
|
+
className: T(
|
|
5286
5316
|
"group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
|
|
5287
5317
|
e
|
|
5288
5318
|
),
|
|
@@ -5295,10 +5325,10 @@ function Je({
|
|
|
5295
5325
|
...t
|
|
5296
5326
|
}) {
|
|
5297
5327
|
return /* @__PURE__ */ c(
|
|
5298
|
-
|
|
5328
|
+
Ns,
|
|
5299
5329
|
{
|
|
5300
5330
|
"data-slot": "avatar-image",
|
|
5301
|
-
className:
|
|
5331
|
+
className: T("aspect-square size-full", e),
|
|
5302
5332
|
...t
|
|
5303
5333
|
}
|
|
5304
5334
|
);
|
|
@@ -5308,10 +5338,10 @@ function Qe({
|
|
|
5308
5338
|
...t
|
|
5309
5339
|
}) {
|
|
5310
5340
|
return /* @__PURE__ */ c(
|
|
5311
|
-
|
|
5341
|
+
Es,
|
|
5312
5342
|
{
|
|
5313
5343
|
"data-slot": "avatar-fallback",
|
|
5314
|
-
className:
|
|
5344
|
+
className: T(
|
|
5315
5345
|
"bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",
|
|
5316
5346
|
e
|
|
5317
5347
|
),
|
|
@@ -5319,32 +5349,32 @@ function Qe({
|
|
|
5319
5349
|
}
|
|
5320
5350
|
);
|
|
5321
5351
|
}
|
|
5322
|
-
const
|
|
5323
|
-
"arrow-left":
|
|
5324
|
-
calendar:
|
|
5325
|
-
"check-circle-2":
|
|
5326
|
-
"chevron-left":
|
|
5327
|
-
"chevron-right":
|
|
5328
|
-
clock:
|
|
5329
|
-
"credit-card":
|
|
5330
|
-
"external-link":
|
|
5331
|
-
"help-circle":
|
|
5332
|
-
info:
|
|
5333
|
-
"loader-2":
|
|
5352
|
+
const Bo = {
|
|
5353
|
+
"arrow-left": vr,
|
|
5354
|
+
calendar: kr,
|
|
5355
|
+
"check-circle-2": _r,
|
|
5356
|
+
"chevron-left": Cr,
|
|
5357
|
+
"chevron-right": $t,
|
|
5358
|
+
clock: Lr,
|
|
5359
|
+
"credit-card": $r,
|
|
5360
|
+
"external-link": Dr,
|
|
5361
|
+
"help-circle": Pr,
|
|
5362
|
+
info: Wr,
|
|
5363
|
+
"loader-2": Ft,
|
|
5334
5364
|
mail: Ye,
|
|
5335
|
-
"map-pin":
|
|
5336
|
-
"message-circle":
|
|
5337
|
-
"message-square":
|
|
5338
|
-
package:
|
|
5339
|
-
phone:
|
|
5340
|
-
search:
|
|
5341
|
-
"shopping-bag":
|
|
5342
|
-
sparkles:
|
|
5343
|
-
truck:
|
|
5344
|
-
user:
|
|
5345
|
-
"x-circle":
|
|
5346
|
-
"alert-circle":
|
|
5347
|
-
"book-open":
|
|
5365
|
+
"map-pin": Br,
|
|
5366
|
+
"message-circle": qr,
|
|
5367
|
+
"message-square": Dt,
|
|
5368
|
+
package: Kr,
|
|
5369
|
+
phone: Jr,
|
|
5370
|
+
search: en,
|
|
5371
|
+
"shopping-bag": on,
|
|
5372
|
+
sparkles: nn,
|
|
5373
|
+
truck: an,
|
|
5374
|
+
user: Ut,
|
|
5375
|
+
"x-circle": Tr,
|
|
5376
|
+
"alert-circle": Ar,
|
|
5377
|
+
"book-open": xr
|
|
5348
5378
|
}, _t = {
|
|
5349
5379
|
0: "gap-0",
|
|
5350
5380
|
1: "gap-1",
|
|
@@ -5356,15 +5386,15 @@ const jo = {
|
|
|
5356
5386
|
8: "gap-8",
|
|
5357
5387
|
10: "gap-10",
|
|
5358
5388
|
12: "gap-12"
|
|
5359
|
-
},
|
|
5389
|
+
}, Go = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", ka = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5360
5390
|
me,
|
|
5361
5391
|
{
|
|
5362
5392
|
className: t,
|
|
5363
5393
|
onClick: o,
|
|
5364
5394
|
children: e
|
|
5365
5395
|
}
|
|
5366
|
-
),
|
|
5367
|
-
|
|
5396
|
+
), Sa = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(Jn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
|
|
5397
|
+
jo,
|
|
5368
5398
|
{
|
|
5369
5399
|
className: t,
|
|
5370
5400
|
variant: r,
|
|
@@ -5374,30 +5404,30 @@ const jo = {
|
|
|
5374
5404
|
title: a,
|
|
5375
5405
|
children: e
|
|
5376
5406
|
}
|
|
5377
|
-
),
|
|
5378
|
-
|
|
5407
|
+
), Ea = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
|
|
5408
|
+
fa,
|
|
5379
5409
|
{
|
|
5380
5410
|
className: t,
|
|
5381
5411
|
variant: o,
|
|
5382
5412
|
children: e
|
|
5383
5413
|
}
|
|
5384
|
-
),
|
|
5385
|
-
|
|
5414
|
+
), Aa = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
|
|
5415
|
+
ma,
|
|
5386
5416
|
{
|
|
5387
5417
|
className: e,
|
|
5388
5418
|
onChange: t,
|
|
5389
5419
|
...o
|
|
5390
5420
|
}
|
|
5391
|
-
),
|
|
5421
|
+
), Ra = ({ className: e }) => /* @__PURE__ */ c(pa, { className: e }), _a = ({ children: e, className: t }) => /* @__PURE__ */ c(ha, { className: t, children: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ba, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, value: "", children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(ya, { className: t, children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(Ze, { className: t, children: e }), La = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), Oa = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Fa = ({ children: e, className: t, level: o }) => {
|
|
5392
5422
|
const r = `h${o || "2"}`;
|
|
5393
|
-
return /* @__PURE__ */ c(r, { className:
|
|
5394
|
-
},
|
|
5395
|
-
const n = o === "row" ? "flex-row" : "flex-col", s =
|
|
5396
|
-
return /* @__PURE__ */ c("div", { className:
|
|
5397
|
-
},
|
|
5398
|
-
const r =
|
|
5399
|
-
return /* @__PURE__ */ c("div", { className:
|
|
5400
|
-
},
|
|
5423
|
+
return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
|
|
5424
|
+
}, Da = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5425
|
+
const n = o === "row" ? "flex-row" : "flex-col", s = Go(r);
|
|
5426
|
+
return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
|
|
5427
|
+
}, Ua = ({ children: e, className: t, gap: o }) => {
|
|
5428
|
+
const r = Go(o);
|
|
5429
|
+
return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
|
|
5430
|
+
}, Wa = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5401
5431
|
"a",
|
|
5402
5432
|
{
|
|
5403
5433
|
href: o,
|
|
@@ -5406,55 +5436,55 @@ const jo = {
|
|
|
5406
5436
|
className: t,
|
|
5407
5437
|
children: e
|
|
5408
5438
|
}
|
|
5409
|
-
),
|
|
5439
|
+
), Ha = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
|
|
5410
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,
|
|
5411
5441
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
5412
|
-
] }),
|
|
5413
|
-
const s = e, a = "size-5", i = s ?
|
|
5414
|
-
return /* @__PURE__ */
|
|
5442
|
+
] }), Va = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
|
|
5443
|
+
const s = e, a = "size-5", i = s ? Bo[s] : null;
|
|
5444
|
+
return /* @__PURE__ */ z(
|
|
5415
5445
|
"button",
|
|
5416
5446
|
{
|
|
5417
5447
|
type: "button",
|
|
5418
|
-
className:
|
|
5448
|
+
className: T("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70", n),
|
|
5419
5449
|
onClick: r,
|
|
5420
5450
|
children: [
|
|
5421
5451
|
i && /* @__PURE__ */ c(i, { className: `${a} shrink-0 text-muted-foreground` }),
|
|
5422
|
-
/* @__PURE__ */
|
|
5452
|
+
/* @__PURE__ */ z("div", { className: "flex flex-col gap-0 flex-1 min-w-0 items-start", children: [
|
|
5423
5453
|
t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
5424
5454
|
o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
|
|
5425
5455
|
] }),
|
|
5426
|
-
/* @__PURE__ */ c(
|
|
5456
|
+
/* @__PURE__ */ c($t, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
5427
5457
|
]
|
|
5428
5458
|
}
|
|
5429
5459
|
);
|
|
5430
|
-
},
|
|
5431
|
-
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a =
|
|
5432
|
-
return a ? /* @__PURE__ */ c(a, { className:
|
|
5433
|
-
},
|
|
5434
|
-
"ui-card":
|
|
5435
|
-
"ui-card-content":
|
|
5436
|
-
"ui-card-header":
|
|
5437
|
-
"ui-button":
|
|
5438
|
-
"ui-text":
|
|
5439
|
-
"ui-heading":
|
|
5440
|
-
"ui-badge":
|
|
5441
|
-
"ui-input":
|
|
5442
|
-
"ui-stack":
|
|
5443
|
-
"ui-inline":
|
|
5444
|
-
"ui-separator":
|
|
5445
|
-
"ui-tabs":
|
|
5446
|
-
"ui-tabs-list":
|
|
5447
|
-
"ui-tabs-trigger":
|
|
5448
|
-
"ui-tabs-content":
|
|
5449
|
-
"ui-scroll-area":
|
|
5450
|
-
"ui-avatar":
|
|
5451
|
-
"ui-avatar-image":
|
|
5452
|
-
"ui-avatar-fallback":
|
|
5453
|
-
"ui-icon":
|
|
5454
|
-
"ui-link":
|
|
5455
|
-
"ui-menu-item":
|
|
5456
|
-
"ui-menu":
|
|
5457
|
-
}), It = "/api/ecommerce",
|
|
5460
|
+
}, ja = ({ name: e, size: t, className: o }) => {
|
|
5461
|
+
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = Bo[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
5462
|
+
return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
|
|
5463
|
+
}, Ba = () => ({
|
|
5464
|
+
"ui-card": ka,
|
|
5465
|
+
"ui-card-content": Sa,
|
|
5466
|
+
"ui-card-header": Ca,
|
|
5467
|
+
"ui-button": Na,
|
|
5468
|
+
"ui-text": $a,
|
|
5469
|
+
"ui-heading": Fa,
|
|
5470
|
+
"ui-badge": Ea,
|
|
5471
|
+
"ui-input": Aa,
|
|
5472
|
+
"ui-stack": Da,
|
|
5473
|
+
"ui-inline": Ua,
|
|
5474
|
+
"ui-separator": Ra,
|
|
5475
|
+
"ui-tabs": _a,
|
|
5476
|
+
"ui-tabs-list": Ia,
|
|
5477
|
+
"ui-tabs-trigger": Pa,
|
|
5478
|
+
"ui-tabs-content": za,
|
|
5479
|
+
"ui-scroll-area": Ta,
|
|
5480
|
+
"ui-avatar": Ma,
|
|
5481
|
+
"ui-avatar-image": La,
|
|
5482
|
+
"ui-avatar-fallback": Oa,
|
|
5483
|
+
"ui-icon": ja,
|
|
5484
|
+
"ui-link": Wa,
|
|
5485
|
+
"ui-menu-item": Va,
|
|
5486
|
+
"ui-menu": Ha
|
|
5487
|
+
}), It = "/api/ecommerce", qo = async (e, t) => {
|
|
5458
5488
|
const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
|
|
5459
5489
|
method: "POST",
|
|
5460
5490
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5463,7 +5493,81 @@ const jo = {
|
|
|
5463
5493
|
if (!r.ok)
|
|
5464
5494
|
throw new Error(n.error || "API request failed");
|
|
5465
5495
|
return n.data;
|
|
5466
|
-
},
|
|
5496
|
+
}, Ga = ({ className: e = "" }) => {
|
|
5497
|
+
const [t, o] = j([]);
|
|
5498
|
+
if (G(() => {
|
|
5499
|
+
if (typeof window > "u") return;
|
|
5500
|
+
const n = () => {
|
|
5501
|
+
const i = Lt(window.location.search).map((l) => l.extensionId);
|
|
5502
|
+
o(i);
|
|
5503
|
+
};
|
|
5504
|
+
n();
|
|
5505
|
+
const s = () => n();
|
|
5506
|
+
return window.addEventListener("popstate", s), () => window.removeEventListener("popstate", s);
|
|
5507
|
+
}, []), t.length === 0)
|
|
5508
|
+
return null;
|
|
5509
|
+
const r = () => {
|
|
5510
|
+
if (typeof window > "u") return;
|
|
5511
|
+
const n = new URL(window.location.href);
|
|
5512
|
+
n.searchParams.delete("_stackable_dev"), window.location.href = n.toString();
|
|
5513
|
+
};
|
|
5514
|
+
return /* @__PURE__ */ z(
|
|
5515
|
+
"div",
|
|
5516
|
+
{
|
|
5517
|
+
className: e,
|
|
5518
|
+
style: {
|
|
5519
|
+
position: "fixed",
|
|
5520
|
+
bottom: "16px",
|
|
5521
|
+
right: "16px",
|
|
5522
|
+
zIndex: 50,
|
|
5523
|
+
display: "flex",
|
|
5524
|
+
alignItems: "center",
|
|
5525
|
+
gap: "8px",
|
|
5526
|
+
backgroundColor: "#eab308",
|
|
5527
|
+
color: "#000",
|
|
5528
|
+
padding: "8px 12px",
|
|
5529
|
+
borderRadius: "8px",
|
|
5530
|
+
boxShadow: "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",
|
|
5531
|
+
fontSize: "14px",
|
|
5532
|
+
fontWeight: 500,
|
|
5533
|
+
fontFamily: "system-ui, -apple-system, sans-serif"
|
|
5534
|
+
},
|
|
5535
|
+
children: [
|
|
5536
|
+
/* @__PURE__ */ c("span", { children: "🔧 Dev Mode" }),
|
|
5537
|
+
t.length > 0 && /* @__PURE__ */ z("span", { style: { fontSize: "12px", opacity: 0.75 }, children: [
|
|
5538
|
+
"(",
|
|
5539
|
+
t.length,
|
|
5540
|
+
" extension",
|
|
5541
|
+
t.length > 1 ? "s" : "",
|
|
5542
|
+
")"
|
|
5543
|
+
] }),
|
|
5544
|
+
/* @__PURE__ */ c(
|
|
5545
|
+
"button",
|
|
5546
|
+
{
|
|
5547
|
+
onClick: r,
|
|
5548
|
+
style: {
|
|
5549
|
+
marginLeft: "8px",
|
|
5550
|
+
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
5551
|
+
border: "none",
|
|
5552
|
+
borderRadius: "4px",
|
|
5553
|
+
cursor: "pointer",
|
|
5554
|
+
padding: "2px 6px",
|
|
5555
|
+
fontSize: "12px",
|
|
5556
|
+
color: "inherit"
|
|
5557
|
+
},
|
|
5558
|
+
onMouseOver: (n) => {
|
|
5559
|
+
n.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.3)";
|
|
5560
|
+
},
|
|
5561
|
+
onMouseOut: (n) => {
|
|
5562
|
+
n.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.2)";
|
|
5563
|
+
},
|
|
5564
|
+
children: "Clear"
|
|
5565
|
+
}
|
|
5566
|
+
)
|
|
5567
|
+
]
|
|
5568
|
+
}
|
|
5569
|
+
);
|
|
5570
|
+
}, qa = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, si = ({
|
|
5467
5571
|
instanceId: e,
|
|
5468
5572
|
apiBase: t,
|
|
5469
5573
|
hostBase: o,
|
|
@@ -5472,7 +5576,7 @@ const jo = {
|
|
|
5472
5576
|
customerId: s,
|
|
5473
5577
|
customerEmail: a
|
|
5474
5578
|
}) => {
|
|
5475
|
-
const [i, l] =
|
|
5579
|
+
const [i, l] = j([]), [d, u] = j(!1);
|
|
5476
5580
|
G(() => {
|
|
5477
5581
|
(async () => {
|
|
5478
5582
|
const b = e;
|
|
@@ -5485,13 +5589,13 @@ const jo = {
|
|
|
5485
5589
|
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
|
|
5486
5590
|
return;
|
|
5487
5591
|
}
|
|
5488
|
-
const S = await fetch(
|
|
5592
|
+
const S = await fetch(qa(t, `/instances/${r}/${b}`));
|
|
5489
5593
|
if (!S.ok) {
|
|
5490
5594
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${b}`), l([]), u(!0);
|
|
5491
5595
|
return;
|
|
5492
5596
|
}
|
|
5493
|
-
const x = await S.json();
|
|
5494
|
-
l(
|
|
5597
|
+
const x = await S.json(), h = Lt(typeof window < "u" ? window.location.search : ""), y = cr(x, h);
|
|
5598
|
+
l(y);
|
|
5495
5599
|
} catch (S) {
|
|
5496
5600
|
console.error("Failed to load extensions:", S);
|
|
5497
5601
|
} finally {
|
|
@@ -5504,7 +5608,7 @@ const jo = {
|
|
|
5504
5608
|
"data.query": async (p) => (
|
|
5505
5609
|
// TODO: verify payload
|
|
5506
5610
|
// TODO: encryption???
|
|
5507
|
-
|
|
5611
|
+
qo(p, o)
|
|
5508
5612
|
),
|
|
5509
5613
|
"actions.toast": async (p) => {
|
|
5510
5614
|
if (console.log(`[Toast] ${p.type || "info"}: ${p.message}`), typeof window < "u") {
|
|
@@ -5524,27 +5628,30 @@ const jo = {
|
|
|
5524
5628
|
}),
|
|
5525
5629
|
[o, s, a]
|
|
5526
5630
|
);
|
|
5527
|
-
return d ? /* @__PURE__ */
|
|
5528
|
-
|
|
5529
|
-
|
|
5631
|
+
return d ? /* @__PURE__ */ z(he, { children: [
|
|
5632
|
+
/* @__PURE__ */ c(sr, { extensions: i, capabilityHandlers: f, components: Ba(), children: n }),
|
|
5633
|
+
/* @__PURE__ */ c(Ga, {})
|
|
5634
|
+
] }) : null;
|
|
5635
|
+
}, Ya = { dark: "dark", light: "widget-theme-light" }, Yo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ya[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 }) }) }), Xo = ({ onClick: e, icon: t = gr }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5636
|
+
jo,
|
|
5530
5637
|
{
|
|
5531
5638
|
className: "h-12 w-12 rounded-full",
|
|
5532
5639
|
size: "icon",
|
|
5533
5640
|
onClick: e,
|
|
5534
5641
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5535
5642
|
}
|
|
5536
|
-
) }),
|
|
5537
|
-
const [r, n] =
|
|
5538
|
-
return /* @__PURE__ */
|
|
5539
|
-
/* @__PURE__ */ c(
|
|
5643
|
+
) }), ai = ({ children: e, icon: t, theme: o }) => {
|
|
5644
|
+
const [r, n] = j(!1);
|
|
5645
|
+
return /* @__PURE__ */ z(he, { children: [
|
|
5646
|
+
/* @__PURE__ */ c(Xo, { onClick: () => {
|
|
5540
5647
|
n(!r);
|
|
5541
5648
|
}, icon: t }),
|
|
5542
|
-
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(
|
|
5649
|
+
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(Yo, { theme: o, children: e }) })
|
|
5543
5650
|
] });
|
|
5544
|
-
},
|
|
5545
|
-
Body:
|
|
5546
|
-
Launcher:
|
|
5547
|
-
},
|
|
5651
|
+
}, ii = {
|
|
5652
|
+
Body: Yo,
|
|
5653
|
+
Launcher: Xo
|
|
5654
|
+
}, Xa = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5548
5655
|
"a",
|
|
5549
5656
|
{
|
|
5550
5657
|
href: e,
|
|
@@ -5553,8 +5660,8 @@ const jo = {
|
|
|
5553
5660
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5554
5661
|
children: t
|
|
5555
5662
|
}
|
|
5556
|
-
),
|
|
5557
|
-
const [o, r] =
|
|
5663
|
+
), Ka = (e, t) => {
|
|
5664
|
+
const [o, r] = j(null), [n, s] = j(!1), [a, i] = j(null);
|
|
5558
5665
|
return G(() => {
|
|
5559
5666
|
if (!e) {
|
|
5560
5667
|
r(null);
|
|
@@ -5563,7 +5670,7 @@ const jo = {
|
|
|
5563
5670
|
(async () => {
|
|
5564
5671
|
s(!0), i(null);
|
|
5565
5672
|
try {
|
|
5566
|
-
const d = await
|
|
5673
|
+
const d = await qo({
|
|
5567
5674
|
action: "getCustomer",
|
|
5568
5675
|
customerId: e
|
|
5569
5676
|
}, t);
|
|
@@ -5575,16 +5682,16 @@ const jo = {
|
|
|
5575
5682
|
}
|
|
5576
5683
|
})();
|
|
5577
5684
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5578
|
-
},
|
|
5685
|
+
}, Za = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5579
5686
|
var l, d;
|
|
5580
|
-
const { customer: n, loading: s, error: a } =
|
|
5687
|
+
const { customer: n, loading: s, error: a } = Ka(e, o);
|
|
5581
5688
|
if (s)
|
|
5582
|
-
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(
|
|
5689
|
+
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(Ft, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5583
5690
|
if (a || !n) {
|
|
5584
5691
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((p) => p[0]).join("").slice(0, 2).toUpperCase();
|
|
5585
|
-
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */
|
|
5586
|
-
/* @__PURE__ */
|
|
5587
|
-
/* @__PURE__ */
|
|
5692
|
+
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ z(pe, { className: "p-4 pb-0 pt-2", children: [
|
|
5693
|
+
/* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
|
|
5694
|
+
/* @__PURE__ */ z(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5588
5695
|
/* @__PURE__ */ c(
|
|
5589
5696
|
Je,
|
|
5590
5697
|
{
|
|
@@ -5594,12 +5701,12 @@ const jo = {
|
|
|
5594
5701
|
),
|
|
5595
5702
|
/* @__PURE__ */ c(Qe, { className: "text-lg", children: f })
|
|
5596
5703
|
] }),
|
|
5597
|
-
/* @__PURE__ */
|
|
5598
|
-
/* @__PURE__ */
|
|
5704
|
+
/* @__PURE__ */ z("div", { className: "text-center w-full space-y-1", children: [
|
|
5705
|
+
/* @__PURE__ */ z("div", { children: [
|
|
5599
5706
|
/* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
5600
5707
|
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
|
|
5601
5708
|
] }),
|
|
5602
|
-
t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
5709
|
+
t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ z("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5603
5710
|
/* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5604
5711
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: t })
|
|
5605
5712
|
] }) }),
|
|
@@ -5610,8 +5717,8 @@ const jo = {
|
|
|
5610
5717
|
] }) });
|
|
5611
5718
|
}
|
|
5612
5719
|
const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
5613
|
-
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */
|
|
5614
|
-
/* @__PURE__ */
|
|
5720
|
+
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
|
|
5721
|
+
/* @__PURE__ */ z(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5615
5722
|
/* @__PURE__ */ c(
|
|
5616
5723
|
Je,
|
|
5617
5724
|
{
|
|
@@ -5621,19 +5728,19 @@ const jo = {
|
|
|
5621
5728
|
),
|
|
5622
5729
|
/* @__PURE__ */ c(Qe, { className: "text-lg", children: i })
|
|
5623
5730
|
] }),
|
|
5624
|
-
/* @__PURE__ */
|
|
5625
|
-
/* @__PURE__ */
|
|
5731
|
+
/* @__PURE__ */ z("div", { className: "text-center w-full space-y-1", children: [
|
|
5732
|
+
/* @__PURE__ */ z("div", { children: [
|
|
5626
5733
|
/* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
5627
5734
|
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: n.name })
|
|
5628
5735
|
] }),
|
|
5629
|
-
/* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
5736
|
+
/* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ z("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5630
5737
|
/* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5631
5738
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: n.email })
|
|
5632
5739
|
] }) }),
|
|
5633
5740
|
/* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
|
|
5634
5741
|
] })
|
|
5635
5742
|
] }) }) });
|
|
5636
|
-
},
|
|
5743
|
+
}, Ko = (e, t) => {
|
|
5637
5744
|
G(() => {
|
|
5638
5745
|
const o = t.current;
|
|
5639
5746
|
if (!o) return;
|
|
@@ -5647,9 +5754,9 @@ const jo = {
|
|
|
5647
5754
|
n.disconnect(), r == null || r.remove();
|
|
5648
5755
|
};
|
|
5649
5756
|
}, [e, t]);
|
|
5650
|
-
},
|
|
5757
|
+
}, Ja = ({ customization: e }) => {
|
|
5651
5758
|
const t = le(null);
|
|
5652
|
-
return
|
|
5759
|
+
return Ko("widget_conversations", t), G(() => {
|
|
5653
5760
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5654
5761
|
conversationList: e
|
|
5655
5762
|
});
|
|
@@ -5660,9 +5767,9 @@ const jo = {
|
|
|
5660
5767
|
className: "h-full overflow-hidden"
|
|
5661
5768
|
}
|
|
5662
5769
|
);
|
|
5663
|
-
},
|
|
5770
|
+
}, Qa = ({ customization: e }) => {
|
|
5664
5771
|
const t = le(null);
|
|
5665
|
-
return
|
|
5772
|
+
return Ko("widget_messages", t), G(() => {
|
|
5666
5773
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5667
5774
|
messageLog: e
|
|
5668
5775
|
});
|
|
@@ -5673,7 +5780,7 @@ const jo = {
|
|
|
5673
5780
|
className: "h-full overflow-hidden"
|
|
5674
5781
|
}
|
|
5675
5782
|
);
|
|
5676
|
-
}, Ge = 25, qe = 75,
|
|
5783
|
+
}, Ge = 25, qe = 75, li = ({
|
|
5677
5784
|
header: e,
|
|
5678
5785
|
buttons: t,
|
|
5679
5786
|
hostBase: o,
|
|
@@ -5684,7 +5791,7 @@ const jo = {
|
|
|
5684
5791
|
const a = Math.max(
|
|
5685
5792
|
Ge,
|
|
5686
5793
|
Math.min(qe, s)
|
|
5687
|
-
), [i, l] =
|
|
5794
|
+
), [i, l] = j("account"), [d, u] = j(a), [f, p] = j(!1), [b, S] = j(!1), [x, h] = j(!1), y = le(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
5688
5795
|
mode: "embedded",
|
|
5689
5796
|
conversationList: { targetElement: "#widget_conversations" },
|
|
5690
5797
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -5707,7 +5814,7 @@ const jo = {
|
|
|
5707
5814
|
clearInterval(N), clearTimeout(_);
|
|
5708
5815
|
};
|
|
5709
5816
|
}, [R]);
|
|
5710
|
-
const C =
|
|
5817
|
+
const C = Re((N) => {
|
|
5711
5818
|
const { detail: _ } = N;
|
|
5712
5819
|
if (!window.zE || !_.payload || (_ == null ? void 0 : _.action) !== "newConversation") return !1;
|
|
5713
5820
|
window.zE("messenger:ui", "newConversation", _.payload);
|
|
@@ -5743,65 +5850,65 @@ const jo = {
|
|
|
5743
5850
|
g.disconnect();
|
|
5744
5851
|
};
|
|
5745
5852
|
}, []);
|
|
5746
|
-
const A =
|
|
5853
|
+
const A = Re((N) => {
|
|
5747
5854
|
if (N.detail === 2) {
|
|
5748
5855
|
u(a);
|
|
5749
5856
|
return;
|
|
5750
5857
|
}
|
|
5751
5858
|
N.preventDefault(), h(!0);
|
|
5752
5859
|
}, [a]), P = { customerId: r, customerEmail: n };
|
|
5753
|
-
return /* @__PURE__ */
|
|
5860
|
+
return /* @__PURE__ */ z("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
5754
5861
|
/* @__PURE__ */ c("style", {
|
|
5755
5862
|
// eslint-disable-next-line @stylistic/quotes
|
|
5756
5863
|
children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
|
|
5757
5864
|
}),
|
|
5758
|
-
/* @__PURE__ */
|
|
5759
|
-
/* @__PURE__ */
|
|
5865
|
+
/* @__PURE__ */ z("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
|
|
5866
|
+
/* @__PURE__ */ z(
|
|
5760
5867
|
"div",
|
|
5761
5868
|
{
|
|
5762
5869
|
"data-id": "primary-panel",
|
|
5763
5870
|
className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
|
|
5764
5871
|
style: { flexBasis: `${d}%` },
|
|
5765
5872
|
children: [
|
|
5766
|
-
/* @__PURE__ */
|
|
5873
|
+
/* @__PURE__ */ z("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
5767
5874
|
/* @__PURE__ */ c("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
|
|
5768
|
-
/* @__PURE__ */
|
|
5875
|
+
/* @__PURE__ */ z("div", { className: "flex items-center gap-1", children: [
|
|
5769
5876
|
e && /* @__PURE__ */ c("div", { className: "flex mr-1 gap-1", children: e }),
|
|
5770
|
-
/* @__PURE__ */
|
|
5877
|
+
/* @__PURE__ */ z("div", { className: "flex rounded-lg bg-muted p-1", children: [
|
|
5771
5878
|
t,
|
|
5772
5879
|
/* @__PURE__ */ c(
|
|
5773
5880
|
"button",
|
|
5774
5881
|
{
|
|
5775
5882
|
onClick: () => l("account"),
|
|
5776
|
-
className:
|
|
5883
|
+
className: T(
|
|
5777
5884
|
// eslint-disable-next-line @stylistic/max-len
|
|
5778
5885
|
"rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
5779
5886
|
i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5780
5887
|
),
|
|
5781
5888
|
title: "My Account",
|
|
5782
|
-
children: /* @__PURE__ */ c(
|
|
5889
|
+
children: /* @__PURE__ */ c(Ut, { className: "h-4 w-4" })
|
|
5783
5890
|
}
|
|
5784
5891
|
),
|
|
5785
5892
|
/* @__PURE__ */ c(
|
|
5786
5893
|
"button",
|
|
5787
5894
|
{
|
|
5788
5895
|
onClick: () => l("conversations"),
|
|
5789
|
-
className:
|
|
5896
|
+
className: T(
|
|
5790
5897
|
// eslint-disable-next-line @stylistic/max-len
|
|
5791
5898
|
"rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
5792
5899
|
i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5793
5900
|
),
|
|
5794
5901
|
title: "Conversations",
|
|
5795
|
-
children: /* @__PURE__ */ c(
|
|
5902
|
+
children: /* @__PURE__ */ c(Dt, { className: "h-4 w-4" })
|
|
5796
5903
|
}
|
|
5797
5904
|
)
|
|
5798
5905
|
] })
|
|
5799
5906
|
] })
|
|
5800
5907
|
] }),
|
|
5801
|
-
/* @__PURE__ */
|
|
5802
|
-
/* @__PURE__ */
|
|
5803
|
-
/* @__PURE__ */ c(
|
|
5804
|
-
|
|
5908
|
+
/* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
5909
|
+
/* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
5910
|
+
/* @__PURE__ */ c(Za, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
5911
|
+
Ce,
|
|
5805
5912
|
{
|
|
5806
5913
|
target: "slot.header",
|
|
5807
5914
|
context: P,
|
|
@@ -5809,7 +5916,7 @@ const jo = {
|
|
|
5809
5916
|
}
|
|
5810
5917
|
) }),
|
|
5811
5918
|
/* @__PURE__ */ c(
|
|
5812
|
-
|
|
5919
|
+
Ce,
|
|
5813
5920
|
{
|
|
5814
5921
|
target: "slot.content",
|
|
5815
5922
|
context: P,
|
|
@@ -5817,43 +5924,43 @@ const jo = {
|
|
|
5817
5924
|
}
|
|
5818
5925
|
)
|
|
5819
5926
|
] }),
|
|
5820
|
-
/* @__PURE__ */ c("div", { className:
|
|
5927
|
+
/* @__PURE__ */ c("div", { className: T(
|
|
5821
5928
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
5822
5929
|
i === "account" && "hidden"
|
|
5823
|
-
), children: /* @__PURE__ */ c(
|
|
5930
|
+
), children: /* @__PURE__ */ c(Ja, {}) })
|
|
5824
5931
|
] })
|
|
5825
5932
|
]
|
|
5826
5933
|
}
|
|
5827
5934
|
),
|
|
5828
|
-
/* @__PURE__ */
|
|
5935
|
+
/* @__PURE__ */ z(
|
|
5829
5936
|
"div",
|
|
5830
5937
|
{
|
|
5831
5938
|
"data-id": "secondary-panel",
|
|
5832
5939
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
5833
5940
|
style: { flexBasis: `${100 - d}%` },
|
|
5834
5941
|
children: [
|
|
5835
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
5836
|
-
/* @__PURE__ */
|
|
5942
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(Qa, {}) }),
|
|
5943
|
+
/* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
5837
5944
|
/* @__PURE__ */ c(
|
|
5838
|
-
|
|
5945
|
+
Ce,
|
|
5839
5946
|
{
|
|
5840
5947
|
target: "slot.footer",
|
|
5841
5948
|
context: P,
|
|
5842
5949
|
className: "flex items-center gap-1",
|
|
5843
|
-
fallback: /* @__PURE__ */
|
|
5950
|
+
fallback: /* @__PURE__ */ z(he, { children: [
|
|
5844
5951
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
5845
|
-
/* @__PURE__ */ c(
|
|
5952
|
+
/* @__PURE__ */ c(Xa, { href: "https://zendesk.com", children: "Zendesk" })
|
|
5846
5953
|
] })
|
|
5847
5954
|
}
|
|
5848
5955
|
),
|
|
5849
5956
|
/* @__PURE__ */ c(
|
|
5850
|
-
|
|
5957
|
+
Ce,
|
|
5851
5958
|
{
|
|
5852
5959
|
target: "slot.footer-links",
|
|
5853
5960
|
context: P,
|
|
5854
5961
|
className: "flex items-center gap-1",
|
|
5855
5962
|
separator: /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "/" }),
|
|
5856
|
-
render: ({ children: N, index: _ }) => /* @__PURE__ */
|
|
5963
|
+
render: ({ children: N, index: _ }) => /* @__PURE__ */ z(he, { children: [
|
|
5857
5964
|
_ === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
|
|
5858
5965
|
N
|
|
5859
5966
|
] })
|
|
@@ -5866,7 +5973,7 @@ const jo = {
|
|
|
5866
5973
|
/* @__PURE__ */ c(
|
|
5867
5974
|
"div",
|
|
5868
5975
|
{
|
|
5869
|
-
className:
|
|
5976
|
+
className: T(
|
|
5870
5977
|
"group/resize absolute z-20 flex items-center justify-center",
|
|
5871
5978
|
f ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
|
|
5872
5979
|
),
|
|
@@ -5881,7 +5988,7 @@ const jo = {
|
|
|
5881
5988
|
children: /* @__PURE__ */ c(
|
|
5882
5989
|
"div",
|
|
5883
5990
|
{
|
|
5884
|
-
className:
|
|
5991
|
+
className: T(
|
|
5885
5992
|
"rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
|
|
5886
5993
|
f ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
5887
5994
|
x ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
|
|
@@ -5893,16 +6000,16 @@ const jo = {
|
|
|
5893
6000
|
x && /* @__PURE__ */ c(
|
|
5894
6001
|
"div",
|
|
5895
6002
|
{
|
|
5896
|
-
className:
|
|
6003
|
+
className: T("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
|
|
5897
6004
|
onMouseUp: () => h(!1)
|
|
5898
6005
|
}
|
|
5899
6006
|
)
|
|
5900
6007
|
] })
|
|
5901
6008
|
] });
|
|
5902
|
-
},
|
|
6009
|
+
}, ei = "ze-snippet", Pt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ti = (e, t = {}) => {
|
|
5903
6010
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
5904
6011
|
return Promise.resolve();
|
|
5905
|
-
const { autorender: o = !1, scriptId: r =
|
|
6012
|
+
const { autorender: o = !1, scriptId: r = ei } = t;
|
|
5906
6013
|
window.zEMessenger = { autorender: o };
|
|
5907
6014
|
const n = document.getElementById(r);
|
|
5908
6015
|
if (n) {
|
|
@@ -5914,16 +6021,16 @@ const jo = {
|
|
|
5914
6021
|
const i = document.createElement("script");
|
|
5915
6022
|
i.id = r, i.src = Pt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
5916
6023
|
});
|
|
5917
|
-
},
|
|
5918
|
-
e.snippetKey &&
|
|
6024
|
+
}, ci = ({ config: e }) => (G(() => {
|
|
6025
|
+
e.snippetKey && ti(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
5919
6026
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
5920
6027
|
});
|
|
5921
6028
|
}, [e.autorender, e.snippetKey]), null);
|
|
5922
6029
|
export {
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
6030
|
+
si as ExtensionSetup,
|
|
6031
|
+
ii as Widget,
|
|
6032
|
+
ai as WidgetComponent,
|
|
6033
|
+
li as ZendeskMessenger,
|
|
6034
|
+
ci as ZendeskScript,
|
|
6035
|
+
ti as loadZendeskSnippet
|
|
5929
6036
|
};
|