@stackable-labs/embeddables 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/components/DevModeBadge.d.ts +3 -1
- package/dist/components/StackableLogo.d.ts +5 -0
- package/dist/embeddables.css +1 -1
- package/dist/lib/devOverrides.d.ts +3 -1
- package/dist/react.js +1065 -947
- package/dist/stackable-widget.external.js +46 -40
- package/dist/stackable-widget.js +54 -48
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import G, { createContext as Jo, useState as U, useRef as ae, useEffect as B, useContext as Qo, useMemo as Tt, useCallback as Re, createElement as _e, forwardRef as Mt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
6
|
-
const o =
|
|
5
|
+
const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
6
|
+
const o = ie.get(e.id);
|
|
7
7
|
if (o) return o;
|
|
8
8
|
const r = document.createElement("iframe");
|
|
9
|
-
if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http"))
|
|
9
|
+
if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js"))
|
|
10
10
|
r.src = e.bundleUrl;
|
|
11
11
|
else {
|
|
12
12
|
let i = "";
|
|
@@ -15,16 +15,15 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
15
15
|
} catch (d) {
|
|
16
16
|
console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, d);
|
|
17
17
|
}
|
|
18
|
-
const l =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
`;
|
|
18
|
+
const l = `<!DOCTYPE html>
|
|
19
|
+
<html>
|
|
20
|
+
<head><meta charset="utf-8"></head>
|
|
21
|
+
<body>
|
|
22
|
+
<div id="extension-root"></div>
|
|
23
|
+
<script>var process = { env: { NODE_ENV: "production" } };<\/script>
|
|
24
|
+
<script>${i}<\/script>
|
|
25
|
+
</body>
|
|
26
|
+
</html>`;
|
|
28
27
|
r.srcdoc = l;
|
|
29
28
|
}
|
|
30
29
|
t.appendChild(r);
|
|
@@ -39,18 +38,18 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
39
38
|
const l = i.data;
|
|
40
39
|
(l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
|
|
41
40
|
};
|
|
42
|
-
return window.addEventListener("message", a),
|
|
41
|
+
return window.addEventListener("message", a), ie.set(e.id, s), s;
|
|
43
42
|
}, We = (e, t) => {
|
|
44
|
-
const o =
|
|
43
|
+
const o = ie.get(e);
|
|
45
44
|
if (!(o != null && o.iframe.contentWindow)) {
|
|
46
45
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
47
46
|
return;
|
|
48
47
|
}
|
|
49
48
|
o.iframe.contentWindow.postMessage(t, "*");
|
|
50
|
-
}, fe = (e) =>
|
|
51
|
-
const t =
|
|
52
|
-
t && (t.iframe.remove(), t.messageHandlers.clear(),
|
|
53
|
-
},
|
|
49
|
+
}, fe = (e) => ie.get(e), tr = (e) => {
|
|
50
|
+
const t = ie.get(e);
|
|
51
|
+
t && (t.iframe.remove(), t.messageHandlers.clear(), ie.delete(e));
|
|
52
|
+
}, or = () => ie, rr = [
|
|
54
53
|
"ui-card",
|
|
55
54
|
"ui-card-content",
|
|
56
55
|
"ui-card-header",
|
|
@@ -74,18 +73,18 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
74
73
|
"ui-link",
|
|
75
74
|
"ui-menu",
|
|
76
75
|
"ui-menu-item"
|
|
77
|
-
],
|
|
76
|
+
], nr = {
|
|
78
77
|
"context.read": "context:read",
|
|
79
78
|
"data.query": "data:query",
|
|
80
79
|
"actions.toast": "actions:toast",
|
|
81
80
|
"actions.invoke": "actions:invoke"
|
|
82
|
-
},
|
|
81
|
+
}, sr = (e) => {
|
|
83
82
|
const t = async (o) => {
|
|
84
83
|
const r = o.data;
|
|
85
84
|
if ((r == null ? void 0 : r.type) !== "capability-request") return;
|
|
86
85
|
const n = r;
|
|
87
86
|
let s = null;
|
|
88
|
-
for (const [l, d] of
|
|
87
|
+
for (const [l, d] of or())
|
|
89
88
|
if (o.source === d.iframe.contentWindow) {
|
|
90
89
|
s = l;
|
|
91
90
|
break;
|
|
@@ -96,7 +95,7 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
96
95
|
}
|
|
97
96
|
const a = fe(s);
|
|
98
97
|
if (!a) return;
|
|
99
|
-
const i =
|
|
98
|
+
const i = nr[n.capability];
|
|
100
99
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
101
100
|
const l = {
|
|
102
101
|
type: "capability-response",
|
|
@@ -145,18 +144,18 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
145
144
|
return window.addEventListener("message", t), () => {
|
|
146
145
|
window.removeEventListener("message", t);
|
|
147
146
|
};
|
|
148
|
-
},
|
|
147
|
+
}, Lt = Jo({
|
|
149
148
|
extensions: [],
|
|
150
149
|
components: {},
|
|
151
150
|
ready: !1
|
|
152
|
-
}),
|
|
151
|
+
}), ar = ({
|
|
153
152
|
extensions: e,
|
|
154
153
|
capabilityHandlers: t,
|
|
155
154
|
components: o = {},
|
|
156
155
|
children: r
|
|
157
156
|
}) => {
|
|
158
|
-
const [n, s] =
|
|
159
|
-
return
|
|
157
|
+
const [n, s] = U(!1), a = ae(null), i = ae(null);
|
|
158
|
+
return B(() => {
|
|
160
159
|
if (!a.current) return;
|
|
161
160
|
let l = !1;
|
|
162
161
|
return (async () => {
|
|
@@ -164,21 +163,21 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
164
163
|
if (u) {
|
|
165
164
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
166
165
|
for (const f of e)
|
|
167
|
-
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await
|
|
168
|
-
i.current =
|
|
166
|
+
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await er(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
167
|
+
i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
169
168
|
}
|
|
170
169
|
})(), () => {
|
|
171
170
|
var u;
|
|
172
171
|
l = !0;
|
|
173
172
|
for (const f of e)
|
|
174
|
-
|
|
173
|
+
tr(f.id);
|
|
175
174
|
(u = i.current) == null || u.call(i);
|
|
176
175
|
};
|
|
177
|
-
}, [e, t]), /* @__PURE__ */ z(
|
|
176
|
+
}, [e, t]), /* @__PURE__ */ z(Lt.Provider, { value: { extensions: e, components: o, ready: n }, children: [
|
|
178
177
|
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
179
178
|
r
|
|
180
179
|
] });
|
|
181
|
-
},
|
|
180
|
+
}, ir = () => Qo(Lt), lr = (e) => rr.includes(e), Ce = ({
|
|
182
181
|
target: e,
|
|
183
182
|
context: t,
|
|
184
183
|
className: o,
|
|
@@ -186,23 +185,23 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
186
185
|
fallback: n = null,
|
|
187
186
|
render: s
|
|
188
187
|
}) => {
|
|
189
|
-
const { extensions: a, components: i, ready: l } =
|
|
188
|
+
const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m = Tt(
|
|
190
189
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
191
190
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
192
191
|
[a.map((h) => h.id).join(","), e]
|
|
193
192
|
), b = Re(
|
|
194
193
|
(h, y, R = 0) => {
|
|
195
|
-
var
|
|
194
|
+
var E, _, g;
|
|
196
195
|
if (h.type === "text")
|
|
197
196
|
return h.text || null;
|
|
198
197
|
if (!h.tag) return null;
|
|
199
198
|
if (h.tag === "__fragment")
|
|
200
|
-
return /* @__PURE__ */ c(
|
|
201
|
-
if (!
|
|
199
|
+
return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((k, M) => b(k, y, M)) }, R);
|
|
200
|
+
if (!lr(h.tag))
|
|
202
201
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
203
202
|
const C = i[h.tag];
|
|
204
203
|
if (!C)
|
|
205
|
-
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(
|
|
204
|
+
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((k, M) => b(k, y, M)) }, R);
|
|
206
205
|
const A = { ...h.attrs };
|
|
207
206
|
if (h.actionId) {
|
|
208
207
|
const k = h.actionId;
|
|
@@ -229,38 +228,38 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
229
228
|
},
|
|
230
229
|
[e, i]
|
|
231
230
|
);
|
|
232
|
-
if (
|
|
233
|
-
const h =
|
|
234
|
-
if (f.current !== h && (f.current = h, u({})), !l ||
|
|
231
|
+
if (B(() => {
|
|
232
|
+
const h = m.map((R) => R.id).join(",");
|
|
233
|
+
if (f.current !== h && (f.current = h, u({})), !l || m.length === 0) return;
|
|
235
234
|
const y = (R) => {
|
|
236
235
|
const C = R.data;
|
|
237
|
-
if (!(!C || typeof C != "object" || !
|
|
238
|
-
const
|
|
239
|
-
return
|
|
236
|
+
if (!(!C || typeof C != "object" || !m.some((P) => {
|
|
237
|
+
const E = fe(P.id);
|
|
238
|
+
return E && R.source === E.iframe.contentWindow;
|
|
240
239
|
}))) {
|
|
241
240
|
if (C.type === "surface-update" && C.surfaceId === e) {
|
|
242
|
-
const P =
|
|
241
|
+
const P = m.find((_) => {
|
|
243
242
|
const g = fe(_.id);
|
|
244
243
|
return g && R.source === g.iframe.contentWindow;
|
|
245
244
|
});
|
|
246
245
|
if (!P) return;
|
|
247
|
-
const
|
|
246
|
+
const E = b(C.tree, R.source ?? null);
|
|
248
247
|
u((_) => ({
|
|
249
248
|
..._,
|
|
250
|
-
[P.id]:
|
|
249
|
+
[P.id]: E
|
|
251
250
|
}));
|
|
252
251
|
}
|
|
253
|
-
C.type === "surface-ready" && C.surfaceId === e && t &&
|
|
252
|
+
C.type === "surface-ready" && C.surfaceId === e && t && m.forEach((P) => {
|
|
254
253
|
var _;
|
|
255
|
-
const
|
|
256
|
-
(_ =
|
|
254
|
+
const E = fe(P.id);
|
|
255
|
+
(_ = E == null ? void 0 : E.iframe.contentWindow) == null || _.postMessage(
|
|
257
256
|
{ type: "context-update", surfaceId: e, context: t },
|
|
258
257
|
"*"
|
|
259
258
|
);
|
|
260
259
|
});
|
|
261
260
|
}
|
|
262
261
|
};
|
|
263
|
-
return window.addEventListener("message", y),
|
|
262
|
+
return window.addEventListener("message", y), m.forEach((R) => {
|
|
264
263
|
var A;
|
|
265
264
|
const C = fe(R.id);
|
|
266
265
|
(A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
|
|
@@ -270,32 +269,32 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
270
269
|
}), () => {
|
|
271
270
|
window.removeEventListener("message", y);
|
|
272
271
|
};
|
|
273
|
-
}, [l,
|
|
272
|
+
}, [l, m, e, t, b]), !l)
|
|
274
273
|
return null;
|
|
275
|
-
if (
|
|
274
|
+
if (m.length === 0)
|
|
276
275
|
return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
|
|
277
|
-
const S =
|
|
276
|
+
const S = m.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), w = S.length > 0 ? S.flatMap((h, y, R) => {
|
|
278
277
|
const C = s ? s({
|
|
279
278
|
extensionId: h.id,
|
|
280
279
|
children: h.children,
|
|
281
280
|
index: y,
|
|
282
281
|
total: R.length
|
|
283
|
-
}) : /* @__PURE__ */ c(
|
|
282
|
+
}) : /* @__PURE__ */ c(G.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(G.Fragment, { children: C }, `extension:${h.id}`);
|
|
284
283
|
if (y === 0 || !r)
|
|
285
284
|
return [A];
|
|
286
|
-
const P = R[y - 1],
|
|
285
|
+
const P = R[y - 1], E = typeof r == "function" ? r({
|
|
287
286
|
index: y,
|
|
288
287
|
total: R.length,
|
|
289
288
|
previousExtensionId: P.id,
|
|
290
289
|
extensionId: h.id
|
|
291
290
|
}) : r;
|
|
292
291
|
return [
|
|
293
|
-
/* @__PURE__ */ c(
|
|
292
|
+
/* @__PURE__ */ c(G.Fragment, { children: E }, `separator:${P.id}:${h.id}:${y}`),
|
|
294
293
|
A
|
|
295
294
|
];
|
|
296
295
|
}) : n;
|
|
297
|
-
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children:
|
|
298
|
-
},
|
|
296
|
+
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: w });
|
|
297
|
+
}, cr = (e) => {
|
|
299
298
|
try {
|
|
300
299
|
const { hostname: t } = new URL(e);
|
|
301
300
|
return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
|
|
@@ -303,23 +302,26 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
303
302
|
} catch {
|
|
304
303
|
return !1;
|
|
305
304
|
}
|
|
306
|
-
},
|
|
307
|
-
const o = new URLSearchParams(e).
|
|
308
|
-
if (
|
|
305
|
+
}, Ot = (e) => {
|
|
306
|
+
const o = new URLSearchParams(e).getAll("_stackable_dev");
|
|
307
|
+
if (o.length === 0)
|
|
309
308
|
return [];
|
|
310
309
|
try {
|
|
311
|
-
const r = []
|
|
312
|
-
for (const
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
310
|
+
const r = [];
|
|
311
|
+
for (const n of o) {
|
|
312
|
+
const s = n.split(",");
|
|
313
|
+
for (const a of s) {
|
|
314
|
+
const i = a.indexOf(":");
|
|
315
|
+
if (i === -1) continue;
|
|
316
|
+
const l = a.slice(0, i), d = a.slice(i + 1);
|
|
317
|
+
l && d && cr(d) && r.push({ extensionId: l, bundleUrl: d });
|
|
318
|
+
}
|
|
317
319
|
}
|
|
318
320
|
return r;
|
|
319
321
|
} catch {
|
|
320
322
|
return [];
|
|
321
323
|
}
|
|
322
|
-
},
|
|
324
|
+
}, dr = (e, t) => t.length === 0 ? e : e.map((o) => {
|
|
323
325
|
const r = t.find((n) => n.extensionId === o.id);
|
|
324
326
|
return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
|
|
325
327
|
...o,
|
|
@@ -332,21 +334,21 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
332
334
|
* This source code is licensed under the ISC license.
|
|
333
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
334
336
|
*/
|
|
335
|
-
const
|
|
337
|
+
const $t = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
|
|
336
338
|
/**
|
|
337
339
|
* @license lucide-react v0.575.0 - ISC
|
|
338
340
|
*
|
|
339
341
|
* This source code is licensed under the ISC license.
|
|
340
342
|
* See the LICENSE file in the root directory of this source tree.
|
|
341
343
|
*/
|
|
342
|
-
const
|
|
344
|
+
const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
343
345
|
/**
|
|
344
346
|
* @license lucide-react v0.575.0 - ISC
|
|
345
347
|
*
|
|
346
348
|
* This source code is licensed under the ISC license.
|
|
347
349
|
* See the LICENSE file in the root directory of this source tree.
|
|
348
350
|
*/
|
|
349
|
-
const
|
|
351
|
+
const fr = (e) => e.replace(
|
|
350
352
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
351
353
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
352
354
|
);
|
|
@@ -357,7 +359,7 @@ const ur = (e) => e.replace(
|
|
|
357
359
|
* See the LICENSE file in the root directory of this source tree.
|
|
358
360
|
*/
|
|
359
361
|
const pt = (e) => {
|
|
360
|
-
const t =
|
|
362
|
+
const t = fr(e);
|
|
361
363
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
362
364
|
};
|
|
363
365
|
/**
|
|
@@ -366,7 +368,7 @@ const pt = (e) => {
|
|
|
366
368
|
* This source code is licensed under the ISC license.
|
|
367
369
|
* See the LICENSE file in the root directory of this source tree.
|
|
368
370
|
*/
|
|
369
|
-
var
|
|
371
|
+
var mr = {
|
|
370
372
|
xmlns: "http://www.w3.org/2000/svg",
|
|
371
373
|
width: 24,
|
|
372
374
|
height: 24,
|
|
@@ -383,7 +385,7 @@ var fr = {
|
|
|
383
385
|
* This source code is licensed under the ISC license.
|
|
384
386
|
* See the LICENSE file in the root directory of this source tree.
|
|
385
387
|
*/
|
|
386
|
-
const
|
|
388
|
+
const pr = (e) => {
|
|
387
389
|
for (const t in e)
|
|
388
390
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
389
391
|
return !0;
|
|
@@ -395,7 +397,7 @@ const mr = (e) => {
|
|
|
395
397
|
* This source code is licensed under the ISC license.
|
|
396
398
|
* See the LICENSE file in the root directory of this source tree.
|
|
397
399
|
*/
|
|
398
|
-
const
|
|
400
|
+
const hr = Mt(
|
|
399
401
|
({
|
|
400
402
|
color: e = "currentColor",
|
|
401
403
|
size: t = 24,
|
|
@@ -409,13 +411,13 @@ const pr = Tt(
|
|
|
409
411
|
"svg",
|
|
410
412
|
{
|
|
411
413
|
ref: l,
|
|
412
|
-
...
|
|
414
|
+
...mr,
|
|
413
415
|
width: t,
|
|
414
416
|
height: t,
|
|
415
417
|
stroke: e,
|
|
416
418
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
417
|
-
className:
|
|
418
|
-
...!s && !
|
|
419
|
+
className: $t("lucide", n),
|
|
420
|
+
...!s && !pr(i) && { "aria-hidden": "true" },
|
|
419
421
|
...i
|
|
420
422
|
},
|
|
421
423
|
[
|
|
@@ -431,12 +433,12 @@ const pr = Tt(
|
|
|
431
433
|
* See the LICENSE file in the root directory of this source tree.
|
|
432
434
|
*/
|
|
433
435
|
const L = (e, t) => {
|
|
434
|
-
const o =
|
|
435
|
-
({ className: r, ...n }, s) => _e(
|
|
436
|
+
const o = Mt(
|
|
437
|
+
({ className: r, ...n }, s) => _e(hr, {
|
|
436
438
|
ref: s,
|
|
437
439
|
iconNode: t,
|
|
438
|
-
className:
|
|
439
|
-
`lucide-${
|
|
440
|
+
className: $t(
|
|
441
|
+
`lucide-${ur(pt(e))}`,
|
|
440
442
|
`lucide-${e}`,
|
|
441
443
|
r
|
|
442
444
|
),
|
|
@@ -451,7 +453,7 @@ const L = (e, t) => {
|
|
|
451
453
|
* This source code is licensed under the ISC license.
|
|
452
454
|
* See the LICENSE file in the root directory of this source tree.
|
|
453
455
|
*/
|
|
454
|
-
const
|
|
456
|
+
const gr = [
|
|
455
457
|
[
|
|
456
458
|
"path",
|
|
457
459
|
{
|
|
@@ -460,17 +462,17 @@ const hr = [
|
|
|
460
462
|
}
|
|
461
463
|
],
|
|
462
464
|
["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
|
|
463
|
-
],
|
|
465
|
+
], br = L("airplay", gr);
|
|
464
466
|
/**
|
|
465
467
|
* @license lucide-react v0.575.0 - ISC
|
|
466
468
|
*
|
|
467
469
|
* This source code is licensed under the ISC license.
|
|
468
470
|
* See the LICENSE file in the root directory of this source tree.
|
|
469
471
|
*/
|
|
470
|
-
const
|
|
472
|
+
const vr = [
|
|
471
473
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
472
474
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
473
|
-
],
|
|
475
|
+
], xr = L("arrow-left", vr);
|
|
474
476
|
/**
|
|
475
477
|
* @license lucide-react v0.575.0 - ISC
|
|
476
478
|
*
|
|
@@ -486,142 +488,142 @@ const wr = [
|
|
|
486
488
|
key: "ruj8y"
|
|
487
489
|
}
|
|
488
490
|
]
|
|
489
|
-
],
|
|
491
|
+
], yr = L("book-open", wr);
|
|
490
492
|
/**
|
|
491
493
|
* @license lucide-react v0.575.0 - ISC
|
|
492
494
|
*
|
|
493
495
|
* This source code is licensed under the ISC license.
|
|
494
496
|
* See the LICENSE file in the root directory of this source tree.
|
|
495
497
|
*/
|
|
496
|
-
const
|
|
498
|
+
const kr = [
|
|
497
499
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
498
500
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
499
501
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
500
502
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
501
|
-
],
|
|
503
|
+
], Sr = L("calendar", kr);
|
|
502
504
|
/**
|
|
503
505
|
* @license lucide-react v0.575.0 - ISC
|
|
504
506
|
*
|
|
505
507
|
* This source code is licensed under the ISC license.
|
|
506
508
|
* See the LICENSE file in the root directory of this source tree.
|
|
507
509
|
*/
|
|
508
|
-
const
|
|
510
|
+
const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-left", Cr);
|
|
509
511
|
/**
|
|
510
512
|
* @license lucide-react v0.575.0 - ISC
|
|
511
513
|
*
|
|
512
514
|
* This source code is licensed under the ISC license.
|
|
513
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
514
516
|
*/
|
|
515
|
-
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
517
|
+
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ft = L("chevron-right", Nr);
|
|
516
518
|
/**
|
|
517
519
|
* @license lucide-react v0.575.0 - ISC
|
|
518
520
|
*
|
|
519
521
|
* This source code is licensed under the ISC license.
|
|
520
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
523
|
*/
|
|
522
|
-
const
|
|
524
|
+
const Ar = [
|
|
523
525
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
524
526
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
525
527
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
526
|
-
],
|
|
528
|
+
], Rr = L("circle-alert", Ar);
|
|
527
529
|
/**
|
|
528
530
|
* @license lucide-react v0.575.0 - ISC
|
|
529
531
|
*
|
|
530
532
|
* This source code is licensed under the ISC license.
|
|
531
533
|
* See the LICENSE file in the root directory of this source tree.
|
|
532
534
|
*/
|
|
533
|
-
const
|
|
535
|
+
const _r = [
|
|
534
536
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
535
537
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
536
|
-
],
|
|
538
|
+
], Ir = L("circle-check", _r);
|
|
537
539
|
/**
|
|
538
540
|
* @license lucide-react v0.575.0 - ISC
|
|
539
541
|
*
|
|
540
542
|
* This source code is licensed under the ISC license.
|
|
541
543
|
* See the LICENSE file in the root directory of this source tree.
|
|
542
544
|
*/
|
|
543
|
-
const
|
|
545
|
+
const Pr = [
|
|
544
546
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
545
547
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
546
548
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
547
|
-
],
|
|
549
|
+
], zr = L("circle-question-mark", Pr);
|
|
548
550
|
/**
|
|
549
551
|
* @license lucide-react v0.575.0 - ISC
|
|
550
552
|
*
|
|
551
553
|
* This source code is licensed under the ISC license.
|
|
552
554
|
* See the LICENSE file in the root directory of this source tree.
|
|
553
555
|
*/
|
|
554
|
-
const
|
|
556
|
+
const Tr = [
|
|
555
557
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
556
558
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
557
559
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
558
|
-
],
|
|
560
|
+
], Mr = L("circle-x", Tr);
|
|
559
561
|
/**
|
|
560
562
|
* @license lucide-react v0.575.0 - ISC
|
|
561
563
|
*
|
|
562
564
|
* This source code is licensed under the ISC license.
|
|
563
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
564
566
|
*/
|
|
565
|
-
const
|
|
567
|
+
const Lr = [
|
|
566
568
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
567
569
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
568
|
-
],
|
|
570
|
+
], Or = L("clock", Lr);
|
|
569
571
|
/**
|
|
570
572
|
* @license lucide-react v0.575.0 - ISC
|
|
571
573
|
*
|
|
572
574
|
* This source code is licensed under the ISC license.
|
|
573
575
|
* See the LICENSE file in the root directory of this source tree.
|
|
574
576
|
*/
|
|
575
|
-
const
|
|
577
|
+
const $r = [
|
|
576
578
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
577
579
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
578
|
-
],
|
|
580
|
+
], Fr = L("credit-card", $r);
|
|
579
581
|
/**
|
|
580
582
|
* @license lucide-react v0.575.0 - ISC
|
|
581
583
|
*
|
|
582
584
|
* This source code is licensed under the ISC license.
|
|
583
585
|
* See the LICENSE file in the root directory of this source tree.
|
|
584
586
|
*/
|
|
585
|
-
const
|
|
587
|
+
const Dr = [
|
|
586
588
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
587
589
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
588
590
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
589
|
-
],
|
|
591
|
+
], Ur = L("external-link", Dr);
|
|
590
592
|
/**
|
|
591
593
|
* @license lucide-react v0.575.0 - ISC
|
|
592
594
|
*
|
|
593
595
|
* This source code is licensed under the ISC license.
|
|
594
596
|
* See the LICENSE file in the root directory of this source tree.
|
|
595
597
|
*/
|
|
596
|
-
const
|
|
598
|
+
const Wr = [
|
|
597
599
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
598
600
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
599
601
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
600
|
-
],
|
|
602
|
+
], Hr = L("info", Wr);
|
|
601
603
|
/**
|
|
602
604
|
* @license lucide-react v0.575.0 - ISC
|
|
603
605
|
*
|
|
604
606
|
* This source code is licensed under the ISC license.
|
|
605
607
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
608
|
*/
|
|
607
|
-
const
|
|
609
|
+
const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Dt = L("loader-circle", Vr);
|
|
608
610
|
/**
|
|
609
611
|
* @license lucide-react v0.575.0 - ISC
|
|
610
612
|
*
|
|
611
613
|
* This source code is licensed under the ISC license.
|
|
612
614
|
* See the LICENSE file in the root directory of this source tree.
|
|
613
615
|
*/
|
|
614
|
-
const
|
|
616
|
+
const jr = [
|
|
615
617
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
616
618
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
617
|
-
], Ye = L("mail",
|
|
619
|
+
], Ye = L("mail", jr);
|
|
618
620
|
/**
|
|
619
621
|
* @license lucide-react v0.575.0 - ISC
|
|
620
622
|
*
|
|
621
623
|
* This source code is licensed under the ISC license.
|
|
622
624
|
* See the LICENSE file in the root directory of this source tree.
|
|
623
625
|
*/
|
|
624
|
-
const
|
|
626
|
+
const Br = [
|
|
625
627
|
[
|
|
626
628
|
"path",
|
|
627
629
|
{
|
|
@@ -630,14 +632,14 @@ const jr = [
|
|
|
630
632
|
}
|
|
631
633
|
],
|
|
632
634
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
633
|
-
],
|
|
635
|
+
], Gr = L("map-pin", Br);
|
|
634
636
|
/**
|
|
635
637
|
* @license lucide-react v0.575.0 - ISC
|
|
636
638
|
*
|
|
637
639
|
* This source code is licensed under the ISC license.
|
|
638
640
|
* See the LICENSE file in the root directory of this source tree.
|
|
639
641
|
*/
|
|
640
|
-
const
|
|
642
|
+
const qr = [
|
|
641
643
|
[
|
|
642
644
|
"path",
|
|
643
645
|
{
|
|
@@ -645,14 +647,14 @@ const Gr = [
|
|
|
645
647
|
key: "1sd12s"
|
|
646
648
|
}
|
|
647
649
|
]
|
|
648
|
-
],
|
|
650
|
+
], Yr = L("message-circle", qr);
|
|
649
651
|
/**
|
|
650
652
|
* @license lucide-react v0.575.0 - ISC
|
|
651
653
|
*
|
|
652
654
|
* This source code is licensed under the ISC license.
|
|
653
655
|
* See the LICENSE file in the root directory of this source tree.
|
|
654
656
|
*/
|
|
655
|
-
const
|
|
657
|
+
const Xr = [
|
|
656
658
|
[
|
|
657
659
|
"path",
|
|
658
660
|
{
|
|
@@ -660,14 +662,14 @@ const Yr = [
|
|
|
660
662
|
key: "18887p"
|
|
661
663
|
}
|
|
662
664
|
]
|
|
663
|
-
],
|
|
665
|
+
], Ut = L("message-square", Xr);
|
|
664
666
|
/**
|
|
665
667
|
* @license lucide-react v0.575.0 - ISC
|
|
666
668
|
*
|
|
667
669
|
* This source code is licensed under the ISC license.
|
|
668
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
669
671
|
*/
|
|
670
|
-
const
|
|
672
|
+
const Zr = [
|
|
671
673
|
[
|
|
672
674
|
"path",
|
|
673
675
|
{
|
|
@@ -678,14 +680,14 @@ const Xr = [
|
|
|
678
680
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
679
681
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
680
682
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
681
|
-
], Kr = L("package",
|
|
683
|
+
], Kr = L("package", Zr);
|
|
682
684
|
/**
|
|
683
685
|
* @license lucide-react v0.575.0 - ISC
|
|
684
686
|
*
|
|
685
687
|
* This source code is licensed under the ISC license.
|
|
686
688
|
* See the LICENSE file in the root directory of this source tree.
|
|
687
689
|
*/
|
|
688
|
-
const
|
|
690
|
+
const Jr = [
|
|
689
691
|
[
|
|
690
692
|
"path",
|
|
691
693
|
{
|
|
@@ -693,24 +695,24 @@ const Zr = [
|
|
|
693
695
|
key: "9njp5v"
|
|
694
696
|
}
|
|
695
697
|
]
|
|
696
|
-
],
|
|
698
|
+
], Qr = L("phone", Jr);
|
|
697
699
|
/**
|
|
698
700
|
* @license lucide-react v0.575.0 - ISC
|
|
699
701
|
*
|
|
700
702
|
* This source code is licensed under the ISC license.
|
|
701
703
|
* See the LICENSE file in the root directory of this source tree.
|
|
702
704
|
*/
|
|
703
|
-
const
|
|
705
|
+
const en = [
|
|
704
706
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
705
707
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
706
|
-
],
|
|
708
|
+
], tn = L("search", en);
|
|
707
709
|
/**
|
|
708
710
|
* @license lucide-react v0.575.0 - ISC
|
|
709
711
|
*
|
|
710
712
|
* This source code is licensed under the ISC license.
|
|
711
713
|
* See the LICENSE file in the root directory of this source tree.
|
|
712
714
|
*/
|
|
713
|
-
const
|
|
715
|
+
const on = [
|
|
714
716
|
["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
|
|
715
717
|
["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
|
|
716
718
|
[
|
|
@@ -720,14 +722,14 @@ const tn = [
|
|
|
720
722
|
key: "o988cm"
|
|
721
723
|
}
|
|
722
724
|
]
|
|
723
|
-
],
|
|
725
|
+
], rn = L("shopping-bag", on);
|
|
724
726
|
/**
|
|
725
727
|
* @license lucide-react v0.575.0 - ISC
|
|
726
728
|
*
|
|
727
729
|
* This source code is licensed under the ISC license.
|
|
728
730
|
* See the LICENSE file in the root directory of this source tree.
|
|
729
731
|
*/
|
|
730
|
-
const
|
|
732
|
+
const nn = [
|
|
731
733
|
[
|
|
732
734
|
"path",
|
|
733
735
|
{
|
|
@@ -738,14 +740,14 @@ const rn = [
|
|
|
738
740
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
739
741
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
740
742
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
741
|
-
],
|
|
743
|
+
], sn = L("sparkles", nn);
|
|
742
744
|
/**
|
|
743
745
|
* @license lucide-react v0.575.0 - ISC
|
|
744
746
|
*
|
|
745
747
|
* This source code is licensed under the ISC license.
|
|
746
748
|
* See the LICENSE file in the root directory of this source tree.
|
|
747
749
|
*/
|
|
748
|
-
const
|
|
750
|
+
const an = [
|
|
749
751
|
["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
|
|
750
752
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
751
753
|
[
|
|
@@ -757,70 +759,70 @@ const sn = [
|
|
|
757
759
|
],
|
|
758
760
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
759
761
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
760
|
-
],
|
|
762
|
+
], ln = L("truck", an);
|
|
761
763
|
/**
|
|
762
764
|
* @license lucide-react v0.575.0 - ISC
|
|
763
765
|
*
|
|
764
766
|
* This source code is licensed under the ISC license.
|
|
765
767
|
* See the LICENSE file in the root directory of this source tree.
|
|
766
768
|
*/
|
|
767
|
-
const
|
|
769
|
+
const cn = [
|
|
768
770
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
769
771
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
770
|
-
],
|
|
771
|
-
function
|
|
772
|
+
], Wt = L("user", cn);
|
|
773
|
+
function Ht(e) {
|
|
772
774
|
var t, o, r = "";
|
|
773
775
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
774
776
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
775
777
|
var n = e.length;
|
|
776
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
778
|
+
for (t = 0; t < n; t++) e[t] && (o = Ht(e[t])) && (r && (r += " "), r += o);
|
|
777
779
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
778
780
|
return r;
|
|
779
781
|
}
|
|
780
|
-
function
|
|
781
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
782
|
+
function Vt() {
|
|
783
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Ht(e)) && (r && (r += " "), r += t);
|
|
782
784
|
return r;
|
|
783
785
|
}
|
|
784
|
-
const
|
|
786
|
+
const dn = (e, t) => {
|
|
785
787
|
const o = new Array(e.length + t.length);
|
|
786
788
|
for (let r = 0; r < e.length; r++)
|
|
787
789
|
o[r] = e[r];
|
|
788
790
|
for (let r = 0; r < t.length; r++)
|
|
789
791
|
o[e.length + r] = t[r];
|
|
790
792
|
return o;
|
|
791
|
-
},
|
|
793
|
+
}, un = (e, t) => ({
|
|
792
794
|
classGroupId: e,
|
|
793
795
|
validator: t
|
|
794
|
-
}),
|
|
796
|
+
}), jt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
795
797
|
nextPart: e,
|
|
796
798
|
validators: t,
|
|
797
799
|
classGroupId: o
|
|
798
|
-
}), Ie = "-", ht = [],
|
|
799
|
-
const t =
|
|
800
|
+
}), Ie = "-", ht = [], fn = "arbitrary..", mn = (e) => {
|
|
801
|
+
const t = hn(e), {
|
|
800
802
|
conflictingClassGroups: o,
|
|
801
803
|
conflictingClassGroupModifiers: r
|
|
802
804
|
} = e;
|
|
803
805
|
return {
|
|
804
806
|
getClassGroupId: (a) => {
|
|
805
807
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
806
|
-
return
|
|
808
|
+
return pn(a);
|
|
807
809
|
const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
808
|
-
return
|
|
810
|
+
return Bt(i, l, t);
|
|
809
811
|
},
|
|
810
812
|
getConflictingClassGroupIds: (a, i) => {
|
|
811
813
|
if (i) {
|
|
812
814
|
const l = r[a], d = o[a];
|
|
813
|
-
return l ? d ?
|
|
815
|
+
return l ? d ? dn(d, l) : l : d || ht;
|
|
814
816
|
}
|
|
815
817
|
return o[a] || ht;
|
|
816
818
|
}
|
|
817
819
|
};
|
|
818
|
-
},
|
|
820
|
+
}, Bt = (e, t, o) => {
|
|
819
821
|
if (e.length - t === 0)
|
|
820
822
|
return o.classGroupId;
|
|
821
823
|
const n = e[t], s = o.nextPart.get(n);
|
|
822
824
|
if (s) {
|
|
823
|
-
const d =
|
|
825
|
+
const d = Bt(e, t + 1, s);
|
|
824
826
|
if (d) return d;
|
|
825
827
|
}
|
|
826
828
|
const a = o.validators;
|
|
@@ -832,17 +834,17 @@ const cn = (e, t) => {
|
|
|
832
834
|
if (u.validator(i))
|
|
833
835
|
return u.classGroupId;
|
|
834
836
|
}
|
|
835
|
-
},
|
|
837
|
+
}, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
836
838
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
837
|
-
return r ?
|
|
838
|
-
})(),
|
|
839
|
+
return r ? fn + r : void 0;
|
|
840
|
+
})(), hn = (e) => {
|
|
839
841
|
const {
|
|
840
842
|
theme: t,
|
|
841
843
|
classGroups: o
|
|
842
844
|
} = e;
|
|
843
|
-
return
|
|
844
|
-
},
|
|
845
|
-
const o =
|
|
845
|
+
return gn(o, t);
|
|
846
|
+
}, gn = (e, t) => {
|
|
847
|
+
const o = jt();
|
|
846
848
|
for (const r in e) {
|
|
847
849
|
const n = e[r];
|
|
848
850
|
et(n, o, r, t);
|
|
@@ -852,43 +854,43 @@ const cn = (e, t) => {
|
|
|
852
854
|
const n = e.length;
|
|
853
855
|
for (let s = 0; s < n; s++) {
|
|
854
856
|
const a = e[s];
|
|
855
|
-
|
|
857
|
+
bn(a, t, o, r);
|
|
856
858
|
}
|
|
857
|
-
},
|
|
859
|
+
}, bn = (e, t, o, r) => {
|
|
858
860
|
if (typeof e == "string") {
|
|
859
|
-
|
|
861
|
+
vn(e, t, o);
|
|
860
862
|
return;
|
|
861
863
|
}
|
|
862
864
|
if (typeof e == "function") {
|
|
863
|
-
|
|
865
|
+
xn(e, t, o, r);
|
|
864
866
|
return;
|
|
865
867
|
}
|
|
866
868
|
wn(e, t, o, r);
|
|
867
|
-
},
|
|
868
|
-
const r = e === "" ? t :
|
|
869
|
+
}, vn = (e, t, o) => {
|
|
870
|
+
const r = e === "" ? t : Gt(t, e);
|
|
869
871
|
r.classGroupId = o;
|
|
870
|
-
},
|
|
871
|
-
if (
|
|
872
|
+
}, xn = (e, t, o, r) => {
|
|
873
|
+
if (yn(e)) {
|
|
872
874
|
et(e(r), t, o, r);
|
|
873
875
|
return;
|
|
874
876
|
}
|
|
875
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
877
|
+
t.validators === null && (t.validators = []), t.validators.push(un(o, e));
|
|
876
878
|
}, wn = (e, t, o, r) => {
|
|
877
879
|
const n = Object.entries(e), s = n.length;
|
|
878
880
|
for (let a = 0; a < s; a++) {
|
|
879
881
|
const [i, l] = n[a];
|
|
880
|
-
et(l,
|
|
882
|
+
et(l, Gt(t, i), o, r);
|
|
881
883
|
}
|
|
882
|
-
},
|
|
884
|
+
}, Gt = (e, t) => {
|
|
883
885
|
let o = e;
|
|
884
886
|
const r = t.split(Ie), n = r.length;
|
|
885
887
|
for (let s = 0; s < n; s++) {
|
|
886
888
|
const a = r[s];
|
|
887
889
|
let i = o.nextPart.get(a);
|
|
888
|
-
i || (i =
|
|
890
|
+
i || (i = jt(), o.nextPart.set(a, i)), o = i;
|
|
889
891
|
}
|
|
890
892
|
return o;
|
|
891
|
-
},
|
|
893
|
+
}, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
|
|
892
894
|
if (e < 1)
|
|
893
895
|
return {
|
|
894
896
|
get: () => {
|
|
@@ -912,13 +914,13 @@ const cn = (e, t) => {
|
|
|
912
914
|
s in o ? o[s] = a : n(s, a);
|
|
913
915
|
}
|
|
914
916
|
};
|
|
915
|
-
}, Xe = "!", gt = ":",
|
|
917
|
+
}, Xe = "!", gt = ":", Sn = [], bt = (e, t, o, r, n) => ({
|
|
916
918
|
modifiers: e,
|
|
917
919
|
hasImportantModifier: t,
|
|
918
920
|
baseClassName: o,
|
|
919
921
|
maybePostfixModifierPosition: r,
|
|
920
922
|
isExternal: n
|
|
921
|
-
}),
|
|
923
|
+
}), Cn = (e) => {
|
|
922
924
|
const {
|
|
923
925
|
prefix: t,
|
|
924
926
|
experimentalParseClassName: o
|
|
@@ -927,35 +929,35 @@ const cn = (e, t) => {
|
|
|
927
929
|
const s = [];
|
|
928
930
|
let a = 0, i = 0, l = 0, d;
|
|
929
931
|
const u = n.length;
|
|
930
|
-
for (let
|
|
931
|
-
const h = n[
|
|
932
|
+
for (let w = 0; w < u; w++) {
|
|
933
|
+
const h = n[w];
|
|
932
934
|
if (a === 0 && i === 0) {
|
|
933
935
|
if (h === gt) {
|
|
934
|
-
s.push(n.slice(l,
|
|
936
|
+
s.push(n.slice(l, w)), l = w + 1;
|
|
935
937
|
continue;
|
|
936
938
|
}
|
|
937
939
|
if (h === "/") {
|
|
938
|
-
d =
|
|
940
|
+
d = w;
|
|
939
941
|
continue;
|
|
940
942
|
}
|
|
941
943
|
}
|
|
942
944
|
h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
|
|
943
945
|
}
|
|
944
946
|
const f = s.length === 0 ? n : n.slice(l);
|
|
945
|
-
let
|
|
946
|
-
f.endsWith(Xe) ? (
|
|
947
|
+
let m = f, b = !1;
|
|
948
|
+
f.endsWith(Xe) ? (m = f.slice(0, -1), b = !0) : (
|
|
947
949
|
/**
|
|
948
950
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
949
951
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
950
952
|
*/
|
|
951
|
-
f.startsWith(Xe) && (
|
|
953
|
+
f.startsWith(Xe) && (m = f.slice(1), b = !0)
|
|
952
954
|
);
|
|
953
955
|
const S = d && d > l ? d - l : void 0;
|
|
954
|
-
return bt(s, b,
|
|
956
|
+
return bt(s, b, m, S);
|
|
955
957
|
};
|
|
956
958
|
if (t) {
|
|
957
959
|
const n = t + gt, s = r;
|
|
958
|
-
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(
|
|
960
|
+
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Sn, !1, a, void 0, !0);
|
|
959
961
|
}
|
|
960
962
|
if (o) {
|
|
961
963
|
const n = r;
|
|
@@ -965,7 +967,7 @@ const cn = (e, t) => {
|
|
|
965
967
|
});
|
|
966
968
|
}
|
|
967
969
|
return r;
|
|
968
|
-
},
|
|
970
|
+
}, En = (e) => {
|
|
969
971
|
const t = /* @__PURE__ */ new Map();
|
|
970
972
|
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
971
973
|
t.set(o, 1e6 + r);
|
|
@@ -979,31 +981,31 @@ const cn = (e, t) => {
|
|
|
979
981
|
return n.length > 0 && (n.sort(), r.push(...n)), r;
|
|
980
982
|
};
|
|
981
983
|
}, Nn = (e) => ({
|
|
982
|
-
cache:
|
|
983
|
-
parseClassName:
|
|
984
|
-
sortModifiers:
|
|
985
|
-
...
|
|
986
|
-
}),
|
|
984
|
+
cache: kn(e.cacheSize),
|
|
985
|
+
parseClassName: Cn(e),
|
|
986
|
+
sortModifiers: En(e),
|
|
987
|
+
...mn(e)
|
|
988
|
+
}), An = /\s+/, Rn = (e, t) => {
|
|
987
989
|
const {
|
|
988
990
|
parseClassName: o,
|
|
989
991
|
getClassGroupId: r,
|
|
990
992
|
getConflictingClassGroupIds: n,
|
|
991
993
|
sortModifiers: s
|
|
992
|
-
} = t, a = [], i = e.trim().split(
|
|
994
|
+
} = t, a = [], i = e.trim().split(An);
|
|
993
995
|
let l = "";
|
|
994
996
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
995
997
|
const u = i[d], {
|
|
996
998
|
isExternal: f,
|
|
997
|
-
modifiers:
|
|
999
|
+
modifiers: m,
|
|
998
1000
|
hasImportantModifier: b,
|
|
999
1001
|
baseClassName: S,
|
|
1000
|
-
maybePostfixModifierPosition:
|
|
1002
|
+
maybePostfixModifierPosition: w
|
|
1001
1003
|
} = o(u);
|
|
1002
1004
|
if (f) {
|
|
1003
1005
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1004
1006
|
continue;
|
|
1005
1007
|
}
|
|
1006
|
-
let h = !!
|
|
1008
|
+
let h = !!w, y = r(h ? S.substring(0, w) : S);
|
|
1007
1009
|
if (!y) {
|
|
1008
1010
|
if (!h) {
|
|
1009
1011
|
l = u + (l.length > 0 ? " " + l : l);
|
|
@@ -1015,31 +1017,31 @@ const cn = (e, t) => {
|
|
|
1015
1017
|
}
|
|
1016
1018
|
h = !1;
|
|
1017
1019
|
}
|
|
1018
|
-
const R =
|
|
1020
|
+
const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = b ? R + Xe : R, A = C + y;
|
|
1019
1021
|
if (a.indexOf(A) > -1)
|
|
1020
1022
|
continue;
|
|
1021
1023
|
a.push(A);
|
|
1022
1024
|
const P = n(y, h);
|
|
1023
|
-
for (let
|
|
1024
|
-
const _ = P[
|
|
1025
|
+
for (let E = 0; E < P.length; ++E) {
|
|
1026
|
+
const _ = P[E];
|
|
1025
1027
|
a.push(C + _);
|
|
1026
1028
|
}
|
|
1027
1029
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1028
1030
|
}
|
|
1029
1031
|
return l;
|
|
1030
|
-
},
|
|
1032
|
+
}, _n = (...e) => {
|
|
1031
1033
|
let t = 0, o, r, n = "";
|
|
1032
1034
|
for (; t < e.length; )
|
|
1033
|
-
(o = e[t++]) && (r =
|
|
1035
|
+
(o = e[t++]) && (r = qt(o)) && (n && (n += " "), n += r);
|
|
1034
1036
|
return n;
|
|
1035
|
-
},
|
|
1037
|
+
}, qt = (e) => {
|
|
1036
1038
|
if (typeof e == "string")
|
|
1037
1039
|
return e;
|
|
1038
1040
|
let t, o = "";
|
|
1039
1041
|
for (let r = 0; r < e.length; r++)
|
|
1040
|
-
e[r] && (t =
|
|
1042
|
+
e[r] && (t = qt(e[r])) && (o && (o += " "), o += t);
|
|
1041
1043
|
return o;
|
|
1042
|
-
},
|
|
1044
|
+
}, In = (e, ...t) => {
|
|
1043
1045
|
let o, r, n, s;
|
|
1044
1046
|
const a = (l) => {
|
|
1045
1047
|
const d = t.reduce((u, f) => f(u), e());
|
|
@@ -1048,26 +1050,26 @@ const cn = (e, t) => {
|
|
|
1048
1050
|
const d = r(l);
|
|
1049
1051
|
if (d)
|
|
1050
1052
|
return d;
|
|
1051
|
-
const u =
|
|
1053
|
+
const u = Rn(l, o);
|
|
1052
1054
|
return n(l, u), u;
|
|
1053
1055
|
};
|
|
1054
|
-
return s = a, (...l) => s(
|
|
1055
|
-
},
|
|
1056
|
-
const t = (o) => o[e] ||
|
|
1056
|
+
return s = a, (...l) => s(_n(...l));
|
|
1057
|
+
}, Pn = [], F = (e) => {
|
|
1058
|
+
const t = (o) => o[e] || Pn;
|
|
1057
1059
|
return t.isThemeGetter = !0, t;
|
|
1058
|
-
},
|
|
1060
|
+
}, Yt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => zn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Tn.test(e), Zt = () => !0, Fn = (e) => (
|
|
1059
1061
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1060
1062
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1061
1063
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1062
|
-
|
|
1063
|
-
), tt = () => !1,
|
|
1064
|
-
const r = qt.exec(e);
|
|
1065
|
-
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1066
|
-
}, ie = (e, t, o = !1) => {
|
|
1064
|
+
Mn.test(e) && !Ln.test(e)
|
|
1065
|
+
), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !x(e), Hn = (e) => re(e, Qt, tt), v = (e) => Yt.test(e), se = (e) => re(e, eo, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, oo, Zt), jn = (e) => re(e, to, tt), xt = (e) => re(e, Kt, tt), Bn = (e) => re(e, Jt, Un), Ee = (e) => re(e, ro, Dn), x = (e) => Xt.test(e), ue = (e) => le(e, eo), Gn = (e) => le(e, to), wt = (e) => le(e, Kt), qn = (e) => le(e, Qt), Yn = (e) => le(e, Jt), Ne = (e) => le(e, ro, !0), Xn = (e) => le(e, oo, !0), re = (e, t, o) => {
|
|
1067
1066
|
const r = Yt.exec(e);
|
|
1067
|
+
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1068
|
+
}, le = (e, t, o = !1) => {
|
|
1069
|
+
const r = Xt.exec(e);
|
|
1068
1070
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1069
|
-
}, Kt = (e) => e === "position" || e === "percentage",
|
|
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"),
|
|
1071
|
+
}, Kt = (e) => e === "position" || e === "percentage", Jt = (e) => e === "image" || e === "url", Qt = (e) => e === "length" || e === "size" || e === "bg-size", eo = (e) => e === "length", Zn = (e) => e === "number", to = (e) => e === "family-name", oo = (e) => e === "number" || e === "weight", ro = (e) => e === "shadow", Kn = () => {
|
|
1072
|
+
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), b = F("drop-shadow"), S = F("blur"), w = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
1071
1073
|
"center",
|
|
1072
1074
|
"top",
|
|
1073
1075
|
"bottom",
|
|
@@ -1085,51 +1087,51 @@ const cn = (e, t) => {
|
|
|
1085
1087
|
"bottom-left",
|
|
1086
1088
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1087
1089
|
"left-bottom"
|
|
1088
|
-
], P = () => [...A(),
|
|
1089
|
-
span: ["full", te,
|
|
1090
|
-
}, te,
|
|
1091
|
-
position: [
|
|
1090
|
+
], P = () => [...A(), x, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], g = () => [x, v, l], k = () => [ee, "full", "auto", ...g()], M = () => [te, "none", "subgrid", x, v], O = () => ["auto", {
|
|
1091
|
+
span: ["full", te, x, v]
|
|
1092
|
+
}, te, x, v], Z = () => [te, "auto", x, v], ve = () => ["auto", "min", "max", "fr", x, v], xe = () => ["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()], N = () => [e, x, v], ct = () => [...A(), wt, xt, {
|
|
1093
|
+
position: [x, v]
|
|
1092
1094
|
}], dt = () => ["no-repeat", {
|
|
1093
1095
|
repeat: ["", "x", "y", "space", "round"]
|
|
1094
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
1095
|
-
size: [
|
|
1096
|
-
}], De = () => [He, ue, se],
|
|
1096
|
+
}], ut = () => ["auto", "cover", "contain", qn, Hn, {
|
|
1097
|
+
size: [x, v]
|
|
1098
|
+
}], De = () => [He, ue, se], H = () => [
|
|
1097
1099
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1098
1100
|
"",
|
|
1099
1101
|
"none",
|
|
1100
1102
|
"full",
|
|
1101
1103
|
d,
|
|
1102
|
-
|
|
1104
|
+
x,
|
|
1103
1105
|
v
|
|
1104
|
-
],
|
|
1106
|
+
], V = () => ["", I, ue, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
|
|
1105
1107
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1106
1108
|
"",
|
|
1107
1109
|
"none",
|
|
1108
1110
|
S,
|
|
1109
|
-
|
|
1111
|
+
x,
|
|
1110
1112
|
v
|
|
1111
|
-
], ye = () => ["none", I,
|
|
1113
|
+
], ye = () => ["none", I, x, v], ke = () => ["none", I, x, v], Ue = () => [I, x, v], Se = () => [ee, "full", ...g()];
|
|
1112
1114
|
return {
|
|
1113
1115
|
cacheSize: 500,
|
|
1114
1116
|
theme: {
|
|
1115
1117
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
1116
1118
|
aspect: ["video"],
|
|
1117
|
-
blur: [
|
|
1118
|
-
breakpoint: [
|
|
1119
|
-
color: [
|
|
1120
|
-
container: [
|
|
1121
|
-
"drop-shadow": [
|
|
1119
|
+
blur: [K],
|
|
1120
|
+
breakpoint: [K],
|
|
1121
|
+
color: [Zt],
|
|
1122
|
+
container: [K],
|
|
1123
|
+
"drop-shadow": [K],
|
|
1122
1124
|
ease: ["in", "out", "in-out"],
|
|
1123
|
-
font: [
|
|
1125
|
+
font: [Wn],
|
|
1124
1126
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1125
|
-
"inset-shadow": [
|
|
1127
|
+
"inset-shadow": [K],
|
|
1126
1128
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1127
1129
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1128
|
-
radius: [
|
|
1129
|
-
shadow: [
|
|
1130
|
+
radius: [K],
|
|
1131
|
+
shadow: [K],
|
|
1130
1132
|
spacing: ["px", I],
|
|
1131
|
-
text: [
|
|
1132
|
-
"text-shadow": [
|
|
1133
|
+
text: [K],
|
|
1134
|
+
"text-shadow": [K],
|
|
1133
1135
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
1134
1136
|
},
|
|
1135
1137
|
classGroups: {
|
|
@@ -1141,7 +1143,7 @@ const cn = (e, t) => {
|
|
|
1141
1143
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1142
1144
|
*/
|
|
1143
1145
|
aspect: [{
|
|
1144
|
-
aspect: ["auto", "square", ee, v,
|
|
1146
|
+
aspect: ["auto", "square", ee, v, x, h]
|
|
1145
1147
|
}],
|
|
1146
1148
|
/**
|
|
1147
1149
|
* Container
|
|
@@ -1154,7 +1156,7 @@ const cn = (e, t) => {
|
|
|
1154
1156
|
* @see https://tailwindcss.com/docs/columns
|
|
1155
1157
|
*/
|
|
1156
1158
|
columns: [{
|
|
1157
|
-
columns: [I, v,
|
|
1159
|
+
columns: [I, v, x, i]
|
|
1158
1160
|
}],
|
|
1159
1161
|
/**
|
|
1160
1162
|
* Break After
|
|
@@ -1239,21 +1241,21 @@ const cn = (e, t) => {
|
|
|
1239
1241
|
* @see https://tailwindcss.com/docs/overflow
|
|
1240
1242
|
*/
|
|
1241
1243
|
overflow: [{
|
|
1242
|
-
overflow:
|
|
1244
|
+
overflow: E()
|
|
1243
1245
|
}],
|
|
1244
1246
|
/**
|
|
1245
1247
|
* Overflow X
|
|
1246
1248
|
* @see https://tailwindcss.com/docs/overflow
|
|
1247
1249
|
*/
|
|
1248
1250
|
"overflow-x": [{
|
|
1249
|
-
"overflow-x":
|
|
1251
|
+
"overflow-x": E()
|
|
1250
1252
|
}],
|
|
1251
1253
|
/**
|
|
1252
1254
|
* Overflow Y
|
|
1253
1255
|
* @see https://tailwindcss.com/docs/overflow
|
|
1254
1256
|
*/
|
|
1255
1257
|
"overflow-y": [{
|
|
1256
|
-
"overflow-y":
|
|
1258
|
+
"overflow-y": E()
|
|
1257
1259
|
}],
|
|
1258
1260
|
/**
|
|
1259
1261
|
* Overscroll Behavior
|
|
@@ -1380,7 +1382,7 @@ const cn = (e, t) => {
|
|
|
1380
1382
|
* @see https://tailwindcss.com/docs/z-index
|
|
1381
1383
|
*/
|
|
1382
1384
|
z: [{
|
|
1383
|
-
z: [te, "auto",
|
|
1385
|
+
z: [te, "auto", x, v]
|
|
1384
1386
|
}],
|
|
1385
1387
|
// ------------------------
|
|
1386
1388
|
// --- Flexbox and Grid ---
|
|
@@ -1418,21 +1420,21 @@ const cn = (e, t) => {
|
|
|
1418
1420
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1419
1421
|
*/
|
|
1420
1422
|
grow: [{
|
|
1421
|
-
grow: ["", I,
|
|
1423
|
+
grow: ["", I, x, v]
|
|
1422
1424
|
}],
|
|
1423
1425
|
/**
|
|
1424
1426
|
* Flex Shrink
|
|
1425
1427
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1426
1428
|
*/
|
|
1427
1429
|
shrink: [{
|
|
1428
|
-
shrink: ["", I,
|
|
1430
|
+
shrink: ["", I, x, v]
|
|
1429
1431
|
}],
|
|
1430
1432
|
/**
|
|
1431
1433
|
* Order
|
|
1432
1434
|
* @see https://tailwindcss.com/docs/order
|
|
1433
1435
|
*/
|
|
1434
1436
|
order: [{
|
|
1435
|
-
order: [te, "first", "last", "none",
|
|
1437
|
+
order: [te, "first", "last", "none", x, v]
|
|
1436
1438
|
}],
|
|
1437
1439
|
/**
|
|
1438
1440
|
* Grid Template Columns
|
|
@@ -1453,14 +1455,14 @@ const cn = (e, t) => {
|
|
|
1453
1455
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1454
1456
|
*/
|
|
1455
1457
|
"col-start": [{
|
|
1456
|
-
"col-start":
|
|
1458
|
+
"col-start": Z()
|
|
1457
1459
|
}],
|
|
1458
1460
|
/**
|
|
1459
1461
|
* Grid Column End
|
|
1460
1462
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1461
1463
|
*/
|
|
1462
1464
|
"col-end": [{
|
|
1463
|
-
"col-end":
|
|
1465
|
+
"col-end": Z()
|
|
1464
1466
|
}],
|
|
1465
1467
|
/**
|
|
1466
1468
|
* Grid Template Rows
|
|
@@ -1481,14 +1483,14 @@ const cn = (e, t) => {
|
|
|
1481
1483
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1482
1484
|
*/
|
|
1483
1485
|
"row-start": [{
|
|
1484
|
-
"row-start":
|
|
1486
|
+
"row-start": Z()
|
|
1485
1487
|
}],
|
|
1486
1488
|
/**
|
|
1487
1489
|
* Grid Row End
|
|
1488
1490
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1489
1491
|
*/
|
|
1490
1492
|
"row-end": [{
|
|
1491
|
-
"row-end":
|
|
1493
|
+
"row-end": Z()
|
|
1492
1494
|
}],
|
|
1493
1495
|
/**
|
|
1494
1496
|
* Grid Auto Flow
|
|
@@ -1537,7 +1539,7 @@ const cn = (e, t) => {
|
|
|
1537
1539
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1538
1540
|
*/
|
|
1539
1541
|
"justify-content": [{
|
|
1540
|
-
justify: [...
|
|
1542
|
+
justify: [...xe(), "normal"]
|
|
1541
1543
|
}],
|
|
1542
1544
|
/**
|
|
1543
1545
|
* Justify Items
|
|
@@ -1558,7 +1560,7 @@ const cn = (e, t) => {
|
|
|
1558
1560
|
* @see https://tailwindcss.com/docs/align-content
|
|
1559
1561
|
*/
|
|
1560
1562
|
"align-content": [{
|
|
1561
|
-
content: ["normal", ...
|
|
1563
|
+
content: ["normal", ...xe()]
|
|
1562
1564
|
}],
|
|
1563
1565
|
/**
|
|
1564
1566
|
* Align Items
|
|
@@ -1583,7 +1585,7 @@ const cn = (e, t) => {
|
|
|
1583
1585
|
* @see https://tailwindcss.com/docs/place-content
|
|
1584
1586
|
*/
|
|
1585
1587
|
"place-content": [{
|
|
1586
|
-
"place-content":
|
|
1588
|
+
"place-content": xe()
|
|
1587
1589
|
}],
|
|
1588
1590
|
/**
|
|
1589
1591
|
* Place Items
|
|
@@ -1914,7 +1916,7 @@ const cn = (e, t) => {
|
|
|
1914
1916
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1915
1917
|
*/
|
|
1916
1918
|
"font-weight": [{
|
|
1917
|
-
font: [r,
|
|
1919
|
+
font: [r, Xn, Vn]
|
|
1918
1920
|
}],
|
|
1919
1921
|
/**
|
|
1920
1922
|
* Font Stretch
|
|
@@ -1928,7 +1930,7 @@ const cn = (e, t) => {
|
|
|
1928
1930
|
* @see https://tailwindcss.com/docs/font-family
|
|
1929
1931
|
*/
|
|
1930
1932
|
"font-family": [{
|
|
1931
|
-
font: [
|
|
1933
|
+
font: [Gn, jn, t]
|
|
1932
1934
|
}],
|
|
1933
1935
|
/**
|
|
1934
1936
|
* Font Feature Settings
|
|
@@ -1972,14 +1974,14 @@ const cn = (e, t) => {
|
|
|
1972
1974
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1973
1975
|
*/
|
|
1974
1976
|
tracking: [{
|
|
1975
|
-
tracking: [n,
|
|
1977
|
+
tracking: [n, x, v]
|
|
1976
1978
|
}],
|
|
1977
1979
|
/**
|
|
1978
1980
|
* Line Clamp
|
|
1979
1981
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1980
1982
|
*/
|
|
1981
1983
|
"line-clamp": [{
|
|
1982
|
-
"line-clamp": [I, "none",
|
|
1984
|
+
"line-clamp": [I, "none", x, vt]
|
|
1983
1985
|
}],
|
|
1984
1986
|
/**
|
|
1985
1987
|
* Line Height
|
|
@@ -1997,7 +1999,7 @@ const cn = (e, t) => {
|
|
|
1997
1999
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1998
2000
|
*/
|
|
1999
2001
|
"list-image": [{
|
|
2000
|
-
"list-image": ["none",
|
|
2002
|
+
"list-image": ["none", x, v]
|
|
2001
2003
|
}],
|
|
2002
2004
|
/**
|
|
2003
2005
|
* List Style Position
|
|
@@ -2011,7 +2013,7 @@ const cn = (e, t) => {
|
|
|
2011
2013
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2012
2014
|
*/
|
|
2013
2015
|
"list-style-type": [{
|
|
2014
|
-
list: ["disc", "decimal", "none",
|
|
2016
|
+
list: ["disc", "decimal", "none", x, v]
|
|
2015
2017
|
}],
|
|
2016
2018
|
/**
|
|
2017
2019
|
* Text Alignment
|
|
@@ -2026,14 +2028,14 @@ const cn = (e, t) => {
|
|
|
2026
2028
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2027
2029
|
*/
|
|
2028
2030
|
"placeholder-color": [{
|
|
2029
|
-
placeholder:
|
|
2031
|
+
placeholder: N()
|
|
2030
2032
|
}],
|
|
2031
2033
|
/**
|
|
2032
2034
|
* Text Color
|
|
2033
2035
|
* @see https://tailwindcss.com/docs/text-color
|
|
2034
2036
|
*/
|
|
2035
2037
|
"text-color": [{
|
|
2036
|
-
text:
|
|
2038
|
+
text: N()
|
|
2037
2039
|
}],
|
|
2038
2040
|
/**
|
|
2039
2041
|
* Text Decoration
|
|
@@ -2045,28 +2047,28 @@ const cn = (e, t) => {
|
|
|
2045
2047
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
2046
2048
|
*/
|
|
2047
2049
|
"text-decoration-style": [{
|
|
2048
|
-
decoration: [...
|
|
2050
|
+
decoration: [...we(), "wavy"]
|
|
2049
2051
|
}],
|
|
2050
2052
|
/**
|
|
2051
2053
|
* Text Decoration Thickness
|
|
2052
2054
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2053
2055
|
*/
|
|
2054
2056
|
"text-decoration-thickness": [{
|
|
2055
|
-
decoration: [I, "from-font", "auto",
|
|
2057
|
+
decoration: [I, "from-font", "auto", x, se]
|
|
2056
2058
|
}],
|
|
2057
2059
|
/**
|
|
2058
2060
|
* Text Decoration Color
|
|
2059
2061
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2060
2062
|
*/
|
|
2061
2063
|
"text-decoration-color": [{
|
|
2062
|
-
decoration:
|
|
2064
|
+
decoration: N()
|
|
2063
2065
|
}],
|
|
2064
2066
|
/**
|
|
2065
2067
|
* Text Underline Offset
|
|
2066
2068
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2067
2069
|
*/
|
|
2068
2070
|
"underline-offset": [{
|
|
2069
|
-
"underline-offset": [I, "auto",
|
|
2071
|
+
"underline-offset": [I, "auto", x, v]
|
|
2070
2072
|
}],
|
|
2071
2073
|
/**
|
|
2072
2074
|
* Text Transform
|
|
@@ -2097,7 +2099,7 @@ const cn = (e, t) => {
|
|
|
2097
2099
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2098
2100
|
*/
|
|
2099
2101
|
"vertical-align": [{
|
|
2100
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2102
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", x, v]
|
|
2101
2103
|
}],
|
|
2102
2104
|
/**
|
|
2103
2105
|
* Whitespace
|
|
@@ -2132,7 +2134,7 @@ const cn = (e, t) => {
|
|
|
2132
2134
|
* @see https://tailwindcss.com/docs/content
|
|
2133
2135
|
*/
|
|
2134
2136
|
content: [{
|
|
2135
|
-
content: ["none",
|
|
2137
|
+
content: ["none", x, v]
|
|
2136
2138
|
}],
|
|
2137
2139
|
// -------------------
|
|
2138
2140
|
// --- Backgrounds ---
|
|
@@ -2187,17 +2189,17 @@ const cn = (e, t) => {
|
|
|
2187
2189
|
bg: ["none", {
|
|
2188
2190
|
linear: [{
|
|
2189
2191
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2190
|
-
}, te,
|
|
2191
|
-
radial: ["",
|
|
2192
|
-
conic: [te,
|
|
2193
|
-
},
|
|
2192
|
+
}, te, x, v],
|
|
2193
|
+
radial: ["", x, v],
|
|
2194
|
+
conic: [te, x, v]
|
|
2195
|
+
}, Yn, Bn]
|
|
2194
2196
|
}],
|
|
2195
2197
|
/**
|
|
2196
2198
|
* Background Color
|
|
2197
2199
|
* @see https://tailwindcss.com/docs/background-color
|
|
2198
2200
|
*/
|
|
2199
2201
|
"bg-color": [{
|
|
2200
|
-
bg:
|
|
2202
|
+
bg: N()
|
|
2201
2203
|
}],
|
|
2202
2204
|
/**
|
|
2203
2205
|
* Gradient Color Stops From Position
|
|
@@ -2225,21 +2227,21 @@ const cn = (e, t) => {
|
|
|
2225
2227
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2226
2228
|
*/
|
|
2227
2229
|
"gradient-from": [{
|
|
2228
|
-
from:
|
|
2230
|
+
from: N()
|
|
2229
2231
|
}],
|
|
2230
2232
|
/**
|
|
2231
2233
|
* Gradient Color Stops Via
|
|
2232
2234
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2233
2235
|
*/
|
|
2234
2236
|
"gradient-via": [{
|
|
2235
|
-
via:
|
|
2237
|
+
via: N()
|
|
2236
2238
|
}],
|
|
2237
2239
|
/**
|
|
2238
2240
|
* Gradient Color Stops To
|
|
2239
2241
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2240
2242
|
*/
|
|
2241
2243
|
"gradient-to": [{
|
|
2242
|
-
to:
|
|
2244
|
+
to: N()
|
|
2243
2245
|
}],
|
|
2244
2246
|
// ---------------
|
|
2245
2247
|
// --- Borders ---
|
|
@@ -2249,189 +2251,189 @@ const cn = (e, t) => {
|
|
|
2249
2251
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2250
2252
|
*/
|
|
2251
2253
|
rounded: [{
|
|
2252
|
-
rounded:
|
|
2254
|
+
rounded: H()
|
|
2253
2255
|
}],
|
|
2254
2256
|
/**
|
|
2255
2257
|
* Border Radius Start
|
|
2256
2258
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2257
2259
|
*/
|
|
2258
2260
|
"rounded-s": [{
|
|
2259
|
-
"rounded-s":
|
|
2261
|
+
"rounded-s": H()
|
|
2260
2262
|
}],
|
|
2261
2263
|
/**
|
|
2262
2264
|
* Border Radius End
|
|
2263
2265
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2264
2266
|
*/
|
|
2265
2267
|
"rounded-e": [{
|
|
2266
|
-
"rounded-e":
|
|
2268
|
+
"rounded-e": H()
|
|
2267
2269
|
}],
|
|
2268
2270
|
/**
|
|
2269
2271
|
* Border Radius Top
|
|
2270
2272
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2271
2273
|
*/
|
|
2272
2274
|
"rounded-t": [{
|
|
2273
|
-
"rounded-t":
|
|
2275
|
+
"rounded-t": H()
|
|
2274
2276
|
}],
|
|
2275
2277
|
/**
|
|
2276
2278
|
* Border Radius Right
|
|
2277
2279
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2278
2280
|
*/
|
|
2279
2281
|
"rounded-r": [{
|
|
2280
|
-
"rounded-r":
|
|
2282
|
+
"rounded-r": H()
|
|
2281
2283
|
}],
|
|
2282
2284
|
/**
|
|
2283
2285
|
* Border Radius Bottom
|
|
2284
2286
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2285
2287
|
*/
|
|
2286
2288
|
"rounded-b": [{
|
|
2287
|
-
"rounded-b":
|
|
2289
|
+
"rounded-b": H()
|
|
2288
2290
|
}],
|
|
2289
2291
|
/**
|
|
2290
2292
|
* Border Radius Left
|
|
2291
2293
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2292
2294
|
*/
|
|
2293
2295
|
"rounded-l": [{
|
|
2294
|
-
"rounded-l":
|
|
2296
|
+
"rounded-l": H()
|
|
2295
2297
|
}],
|
|
2296
2298
|
/**
|
|
2297
2299
|
* Border Radius Start Start
|
|
2298
2300
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2299
2301
|
*/
|
|
2300
2302
|
"rounded-ss": [{
|
|
2301
|
-
"rounded-ss":
|
|
2303
|
+
"rounded-ss": H()
|
|
2302
2304
|
}],
|
|
2303
2305
|
/**
|
|
2304
2306
|
* Border Radius Start End
|
|
2305
2307
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2306
2308
|
*/
|
|
2307
2309
|
"rounded-se": [{
|
|
2308
|
-
"rounded-se":
|
|
2310
|
+
"rounded-se": H()
|
|
2309
2311
|
}],
|
|
2310
2312
|
/**
|
|
2311
2313
|
* Border Radius End End
|
|
2312
2314
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2313
2315
|
*/
|
|
2314
2316
|
"rounded-ee": [{
|
|
2315
|
-
"rounded-ee":
|
|
2317
|
+
"rounded-ee": H()
|
|
2316
2318
|
}],
|
|
2317
2319
|
/**
|
|
2318
2320
|
* Border Radius End Start
|
|
2319
2321
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2320
2322
|
*/
|
|
2321
2323
|
"rounded-es": [{
|
|
2322
|
-
"rounded-es":
|
|
2324
|
+
"rounded-es": H()
|
|
2323
2325
|
}],
|
|
2324
2326
|
/**
|
|
2325
2327
|
* Border Radius Top Left
|
|
2326
2328
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2327
2329
|
*/
|
|
2328
2330
|
"rounded-tl": [{
|
|
2329
|
-
"rounded-tl":
|
|
2331
|
+
"rounded-tl": H()
|
|
2330
2332
|
}],
|
|
2331
2333
|
/**
|
|
2332
2334
|
* Border Radius Top Right
|
|
2333
2335
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2334
2336
|
*/
|
|
2335
2337
|
"rounded-tr": [{
|
|
2336
|
-
"rounded-tr":
|
|
2338
|
+
"rounded-tr": H()
|
|
2337
2339
|
}],
|
|
2338
2340
|
/**
|
|
2339
2341
|
* Border Radius Bottom Right
|
|
2340
2342
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2341
2343
|
*/
|
|
2342
2344
|
"rounded-br": [{
|
|
2343
|
-
"rounded-br":
|
|
2345
|
+
"rounded-br": H()
|
|
2344
2346
|
}],
|
|
2345
2347
|
/**
|
|
2346
2348
|
* Border Radius Bottom Left
|
|
2347
2349
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2348
2350
|
*/
|
|
2349
2351
|
"rounded-bl": [{
|
|
2350
|
-
"rounded-bl":
|
|
2352
|
+
"rounded-bl": H()
|
|
2351
2353
|
}],
|
|
2352
2354
|
/**
|
|
2353
2355
|
* Border Width
|
|
2354
2356
|
* @see https://tailwindcss.com/docs/border-width
|
|
2355
2357
|
*/
|
|
2356
2358
|
"border-w": [{
|
|
2357
|
-
border:
|
|
2359
|
+
border: V()
|
|
2358
2360
|
}],
|
|
2359
2361
|
/**
|
|
2360
2362
|
* Border Width Inline
|
|
2361
2363
|
* @see https://tailwindcss.com/docs/border-width
|
|
2362
2364
|
*/
|
|
2363
2365
|
"border-w-x": [{
|
|
2364
|
-
"border-x":
|
|
2366
|
+
"border-x": V()
|
|
2365
2367
|
}],
|
|
2366
2368
|
/**
|
|
2367
2369
|
* Border Width Block
|
|
2368
2370
|
* @see https://tailwindcss.com/docs/border-width
|
|
2369
2371
|
*/
|
|
2370
2372
|
"border-w-y": [{
|
|
2371
|
-
"border-y":
|
|
2373
|
+
"border-y": V()
|
|
2372
2374
|
}],
|
|
2373
2375
|
/**
|
|
2374
2376
|
* Border Width Inline Start
|
|
2375
2377
|
* @see https://tailwindcss.com/docs/border-width
|
|
2376
2378
|
*/
|
|
2377
2379
|
"border-w-s": [{
|
|
2378
|
-
"border-s":
|
|
2380
|
+
"border-s": V()
|
|
2379
2381
|
}],
|
|
2380
2382
|
/**
|
|
2381
2383
|
* Border Width Inline End
|
|
2382
2384
|
* @see https://tailwindcss.com/docs/border-width
|
|
2383
2385
|
*/
|
|
2384
2386
|
"border-w-e": [{
|
|
2385
|
-
"border-e":
|
|
2387
|
+
"border-e": V()
|
|
2386
2388
|
}],
|
|
2387
2389
|
/**
|
|
2388
2390
|
* Border Width Block Start
|
|
2389
2391
|
* @see https://tailwindcss.com/docs/border-width
|
|
2390
2392
|
*/
|
|
2391
2393
|
"border-w-bs": [{
|
|
2392
|
-
"border-bs":
|
|
2394
|
+
"border-bs": V()
|
|
2393
2395
|
}],
|
|
2394
2396
|
/**
|
|
2395
2397
|
* Border Width Block End
|
|
2396
2398
|
* @see https://tailwindcss.com/docs/border-width
|
|
2397
2399
|
*/
|
|
2398
2400
|
"border-w-be": [{
|
|
2399
|
-
"border-be":
|
|
2401
|
+
"border-be": V()
|
|
2400
2402
|
}],
|
|
2401
2403
|
/**
|
|
2402
2404
|
* Border Width Top
|
|
2403
2405
|
* @see https://tailwindcss.com/docs/border-width
|
|
2404
2406
|
*/
|
|
2405
2407
|
"border-w-t": [{
|
|
2406
|
-
"border-t":
|
|
2408
|
+
"border-t": V()
|
|
2407
2409
|
}],
|
|
2408
2410
|
/**
|
|
2409
2411
|
* Border Width Right
|
|
2410
2412
|
* @see https://tailwindcss.com/docs/border-width
|
|
2411
2413
|
*/
|
|
2412
2414
|
"border-w-r": [{
|
|
2413
|
-
"border-r":
|
|
2415
|
+
"border-r": V()
|
|
2414
2416
|
}],
|
|
2415
2417
|
/**
|
|
2416
2418
|
* Border Width Bottom
|
|
2417
2419
|
* @see https://tailwindcss.com/docs/border-width
|
|
2418
2420
|
*/
|
|
2419
2421
|
"border-w-b": [{
|
|
2420
|
-
"border-b":
|
|
2422
|
+
"border-b": V()
|
|
2421
2423
|
}],
|
|
2422
2424
|
/**
|
|
2423
2425
|
* Border Width Left
|
|
2424
2426
|
* @see https://tailwindcss.com/docs/border-width
|
|
2425
2427
|
*/
|
|
2426
2428
|
"border-w-l": [{
|
|
2427
|
-
"border-l":
|
|
2429
|
+
"border-l": V()
|
|
2428
2430
|
}],
|
|
2429
2431
|
/**
|
|
2430
2432
|
* Divide Width X
|
|
2431
2433
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2432
2434
|
*/
|
|
2433
2435
|
"divide-x": [{
|
|
2434
|
-
"divide-x":
|
|
2436
|
+
"divide-x": V()
|
|
2435
2437
|
}],
|
|
2436
2438
|
/**
|
|
2437
2439
|
* Divide Width X Reverse
|
|
@@ -2443,7 +2445,7 @@ const cn = (e, t) => {
|
|
|
2443
2445
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2444
2446
|
*/
|
|
2445
2447
|
"divide-y": [{
|
|
2446
|
-
"divide-y":
|
|
2448
|
+
"divide-y": V()
|
|
2447
2449
|
}],
|
|
2448
2450
|
/**
|
|
2449
2451
|
* Divide Width Y Reverse
|
|
@@ -2455,112 +2457,112 @@ const cn = (e, t) => {
|
|
|
2455
2457
|
* @see https://tailwindcss.com/docs/border-style
|
|
2456
2458
|
*/
|
|
2457
2459
|
"border-style": [{
|
|
2458
|
-
border: [...
|
|
2460
|
+
border: [...we(), "hidden", "none"]
|
|
2459
2461
|
}],
|
|
2460
2462
|
/**
|
|
2461
2463
|
* Divide Style
|
|
2462
2464
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2463
2465
|
*/
|
|
2464
2466
|
"divide-style": [{
|
|
2465
|
-
divide: [...
|
|
2467
|
+
divide: [...we(), "hidden", "none"]
|
|
2466
2468
|
}],
|
|
2467
2469
|
/**
|
|
2468
2470
|
* Border Color
|
|
2469
2471
|
* @see https://tailwindcss.com/docs/border-color
|
|
2470
2472
|
*/
|
|
2471
2473
|
"border-color": [{
|
|
2472
|
-
border:
|
|
2474
|
+
border: N()
|
|
2473
2475
|
}],
|
|
2474
2476
|
/**
|
|
2475
2477
|
* Border Color Inline
|
|
2476
2478
|
* @see https://tailwindcss.com/docs/border-color
|
|
2477
2479
|
*/
|
|
2478
2480
|
"border-color-x": [{
|
|
2479
|
-
"border-x":
|
|
2481
|
+
"border-x": N()
|
|
2480
2482
|
}],
|
|
2481
2483
|
/**
|
|
2482
2484
|
* Border Color Block
|
|
2483
2485
|
* @see https://tailwindcss.com/docs/border-color
|
|
2484
2486
|
*/
|
|
2485
2487
|
"border-color-y": [{
|
|
2486
|
-
"border-y":
|
|
2488
|
+
"border-y": N()
|
|
2487
2489
|
}],
|
|
2488
2490
|
/**
|
|
2489
2491
|
* Border Color Inline Start
|
|
2490
2492
|
* @see https://tailwindcss.com/docs/border-color
|
|
2491
2493
|
*/
|
|
2492
2494
|
"border-color-s": [{
|
|
2493
|
-
"border-s":
|
|
2495
|
+
"border-s": N()
|
|
2494
2496
|
}],
|
|
2495
2497
|
/**
|
|
2496
2498
|
* Border Color Inline End
|
|
2497
2499
|
* @see https://tailwindcss.com/docs/border-color
|
|
2498
2500
|
*/
|
|
2499
2501
|
"border-color-e": [{
|
|
2500
|
-
"border-e":
|
|
2502
|
+
"border-e": N()
|
|
2501
2503
|
}],
|
|
2502
2504
|
/**
|
|
2503
2505
|
* Border Color Block Start
|
|
2504
2506
|
* @see https://tailwindcss.com/docs/border-color
|
|
2505
2507
|
*/
|
|
2506
2508
|
"border-color-bs": [{
|
|
2507
|
-
"border-bs":
|
|
2509
|
+
"border-bs": N()
|
|
2508
2510
|
}],
|
|
2509
2511
|
/**
|
|
2510
2512
|
* Border Color Block End
|
|
2511
2513
|
* @see https://tailwindcss.com/docs/border-color
|
|
2512
2514
|
*/
|
|
2513
2515
|
"border-color-be": [{
|
|
2514
|
-
"border-be":
|
|
2516
|
+
"border-be": N()
|
|
2515
2517
|
}],
|
|
2516
2518
|
/**
|
|
2517
2519
|
* Border Color Top
|
|
2518
2520
|
* @see https://tailwindcss.com/docs/border-color
|
|
2519
2521
|
*/
|
|
2520
2522
|
"border-color-t": [{
|
|
2521
|
-
"border-t":
|
|
2523
|
+
"border-t": N()
|
|
2522
2524
|
}],
|
|
2523
2525
|
/**
|
|
2524
2526
|
* Border Color Right
|
|
2525
2527
|
* @see https://tailwindcss.com/docs/border-color
|
|
2526
2528
|
*/
|
|
2527
2529
|
"border-color-r": [{
|
|
2528
|
-
"border-r":
|
|
2530
|
+
"border-r": N()
|
|
2529
2531
|
}],
|
|
2530
2532
|
/**
|
|
2531
2533
|
* Border Color Bottom
|
|
2532
2534
|
* @see https://tailwindcss.com/docs/border-color
|
|
2533
2535
|
*/
|
|
2534
2536
|
"border-color-b": [{
|
|
2535
|
-
"border-b":
|
|
2537
|
+
"border-b": N()
|
|
2536
2538
|
}],
|
|
2537
2539
|
/**
|
|
2538
2540
|
* Border Color Left
|
|
2539
2541
|
* @see https://tailwindcss.com/docs/border-color
|
|
2540
2542
|
*/
|
|
2541
2543
|
"border-color-l": [{
|
|
2542
|
-
"border-l":
|
|
2544
|
+
"border-l": N()
|
|
2543
2545
|
}],
|
|
2544
2546
|
/**
|
|
2545
2547
|
* Divide Color
|
|
2546
2548
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2547
2549
|
*/
|
|
2548
2550
|
"divide-color": [{
|
|
2549
|
-
divide:
|
|
2551
|
+
divide: N()
|
|
2550
2552
|
}],
|
|
2551
2553
|
/**
|
|
2552
2554
|
* Outline Style
|
|
2553
2555
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2554
2556
|
*/
|
|
2555
2557
|
"outline-style": [{
|
|
2556
|
-
outline: [...
|
|
2558
|
+
outline: [...we(), "none", "hidden"]
|
|
2557
2559
|
}],
|
|
2558
2560
|
/**
|
|
2559
2561
|
* Outline Offset
|
|
2560
2562
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2561
2563
|
*/
|
|
2562
2564
|
"outline-offset": [{
|
|
2563
|
-
"outline-offset": [I,
|
|
2565
|
+
"outline-offset": [I, x, v]
|
|
2564
2566
|
}],
|
|
2565
2567
|
/**
|
|
2566
2568
|
* Outline Width
|
|
@@ -2574,7 +2576,7 @@ const cn = (e, t) => {
|
|
|
2574
2576
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2575
2577
|
*/
|
|
2576
2578
|
"outline-color": [{
|
|
2577
|
-
outline:
|
|
2579
|
+
outline: N()
|
|
2578
2580
|
}],
|
|
2579
2581
|
// ---------------
|
|
2580
2582
|
// --- Effects ---
|
|
@@ -2589,8 +2591,8 @@ const cn = (e, t) => {
|
|
|
2589
2591
|
"",
|
|
2590
2592
|
"none",
|
|
2591
2593
|
u,
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
+
Ne,
|
|
2595
|
+
Ee
|
|
2594
2596
|
]
|
|
2595
2597
|
}],
|
|
2596
2598
|
/**
|
|
@@ -2598,28 +2600,28 @@ const cn = (e, t) => {
|
|
|
2598
2600
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2599
2601
|
*/
|
|
2600
2602
|
"shadow-color": [{
|
|
2601
|
-
shadow:
|
|
2603
|
+
shadow: N()
|
|
2602
2604
|
}],
|
|
2603
2605
|
/**
|
|
2604
2606
|
* Inset Box Shadow
|
|
2605
2607
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2606
2608
|
*/
|
|
2607
2609
|
"inset-shadow": [{
|
|
2608
|
-
"inset-shadow": ["none", f,
|
|
2610
|
+
"inset-shadow": ["none", f, Ne, Ee]
|
|
2609
2611
|
}],
|
|
2610
2612
|
/**
|
|
2611
2613
|
* Inset Box Shadow Color
|
|
2612
2614
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2613
2615
|
*/
|
|
2614
2616
|
"inset-shadow-color": [{
|
|
2615
|
-
"inset-shadow":
|
|
2617
|
+
"inset-shadow": N()
|
|
2616
2618
|
}],
|
|
2617
2619
|
/**
|
|
2618
2620
|
* Ring Width
|
|
2619
2621
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2620
2622
|
*/
|
|
2621
2623
|
"ring-w": [{
|
|
2622
|
-
ring:
|
|
2624
|
+
ring: V()
|
|
2623
2625
|
}],
|
|
2624
2626
|
/**
|
|
2625
2627
|
* Ring Width Inset
|
|
@@ -2633,7 +2635,7 @@ const cn = (e, t) => {
|
|
|
2633
2635
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2634
2636
|
*/
|
|
2635
2637
|
"ring-color": [{
|
|
2636
|
-
ring:
|
|
2638
|
+
ring: N()
|
|
2637
2639
|
}],
|
|
2638
2640
|
/**
|
|
2639
2641
|
* Ring Offset Width
|
|
@@ -2651,42 +2653,42 @@ const cn = (e, t) => {
|
|
|
2651
2653
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2652
2654
|
*/
|
|
2653
2655
|
"ring-offset-color": [{
|
|
2654
|
-
"ring-offset":
|
|
2656
|
+
"ring-offset": N()
|
|
2655
2657
|
}],
|
|
2656
2658
|
/**
|
|
2657
2659
|
* Inset Ring Width
|
|
2658
2660
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2659
2661
|
*/
|
|
2660
2662
|
"inset-ring-w": [{
|
|
2661
|
-
"inset-ring":
|
|
2663
|
+
"inset-ring": V()
|
|
2662
2664
|
}],
|
|
2663
2665
|
/**
|
|
2664
2666
|
* Inset Ring Color
|
|
2665
2667
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2666
2668
|
*/
|
|
2667
2669
|
"inset-ring-color": [{
|
|
2668
|
-
"inset-ring":
|
|
2670
|
+
"inset-ring": N()
|
|
2669
2671
|
}],
|
|
2670
2672
|
/**
|
|
2671
2673
|
* Text Shadow
|
|
2672
2674
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2673
2675
|
*/
|
|
2674
2676
|
"text-shadow": [{
|
|
2675
|
-
"text-shadow": ["none",
|
|
2677
|
+
"text-shadow": ["none", m, Ne, Ee]
|
|
2676
2678
|
}],
|
|
2677
2679
|
/**
|
|
2678
2680
|
* Text Shadow Color
|
|
2679
2681
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2680
2682
|
*/
|
|
2681
2683
|
"text-shadow-color": [{
|
|
2682
|
-
"text-shadow":
|
|
2684
|
+
"text-shadow": N()
|
|
2683
2685
|
}],
|
|
2684
2686
|
/**
|
|
2685
2687
|
* Opacity
|
|
2686
2688
|
* @see https://tailwindcss.com/docs/opacity
|
|
2687
2689
|
*/
|
|
2688
2690
|
opacity: [{
|
|
2689
|
-
opacity: [I,
|
|
2691
|
+
opacity: [I, x, v]
|
|
2690
2692
|
}],
|
|
2691
2693
|
/**
|
|
2692
2694
|
* Mix Blend Mode
|
|
@@ -2730,10 +2732,10 @@ const cn = (e, t) => {
|
|
|
2730
2732
|
"mask-linear-to": D()
|
|
2731
2733
|
}],
|
|
2732
2734
|
"mask-image-linear-from-color": [{
|
|
2733
|
-
"mask-linear-from":
|
|
2735
|
+
"mask-linear-from": N()
|
|
2734
2736
|
}],
|
|
2735
2737
|
"mask-image-linear-to-color": [{
|
|
2736
|
-
"mask-linear-to":
|
|
2738
|
+
"mask-linear-to": N()
|
|
2737
2739
|
}],
|
|
2738
2740
|
"mask-image-t-from-pos": [{
|
|
2739
2741
|
"mask-t-from": D()
|
|
@@ -2742,10 +2744,10 @@ const cn = (e, t) => {
|
|
|
2742
2744
|
"mask-t-to": D()
|
|
2743
2745
|
}],
|
|
2744
2746
|
"mask-image-t-from-color": [{
|
|
2745
|
-
"mask-t-from":
|
|
2747
|
+
"mask-t-from": N()
|
|
2746
2748
|
}],
|
|
2747
2749
|
"mask-image-t-to-color": [{
|
|
2748
|
-
"mask-t-to":
|
|
2750
|
+
"mask-t-to": N()
|
|
2749
2751
|
}],
|
|
2750
2752
|
"mask-image-r-from-pos": [{
|
|
2751
2753
|
"mask-r-from": D()
|
|
@@ -2754,10 +2756,10 @@ const cn = (e, t) => {
|
|
|
2754
2756
|
"mask-r-to": D()
|
|
2755
2757
|
}],
|
|
2756
2758
|
"mask-image-r-from-color": [{
|
|
2757
|
-
"mask-r-from":
|
|
2759
|
+
"mask-r-from": N()
|
|
2758
2760
|
}],
|
|
2759
2761
|
"mask-image-r-to-color": [{
|
|
2760
|
-
"mask-r-to":
|
|
2762
|
+
"mask-r-to": N()
|
|
2761
2763
|
}],
|
|
2762
2764
|
"mask-image-b-from-pos": [{
|
|
2763
2765
|
"mask-b-from": D()
|
|
@@ -2766,10 +2768,10 @@ const cn = (e, t) => {
|
|
|
2766
2768
|
"mask-b-to": D()
|
|
2767
2769
|
}],
|
|
2768
2770
|
"mask-image-b-from-color": [{
|
|
2769
|
-
"mask-b-from":
|
|
2771
|
+
"mask-b-from": N()
|
|
2770
2772
|
}],
|
|
2771
2773
|
"mask-image-b-to-color": [{
|
|
2772
|
-
"mask-b-to":
|
|
2774
|
+
"mask-b-to": N()
|
|
2773
2775
|
}],
|
|
2774
2776
|
"mask-image-l-from-pos": [{
|
|
2775
2777
|
"mask-l-from": D()
|
|
@@ -2778,10 +2780,10 @@ const cn = (e, t) => {
|
|
|
2778
2780
|
"mask-l-to": D()
|
|
2779
2781
|
}],
|
|
2780
2782
|
"mask-image-l-from-color": [{
|
|
2781
|
-
"mask-l-from":
|
|
2783
|
+
"mask-l-from": N()
|
|
2782
2784
|
}],
|
|
2783
2785
|
"mask-image-l-to-color": [{
|
|
2784
|
-
"mask-l-to":
|
|
2786
|
+
"mask-l-to": N()
|
|
2785
2787
|
}],
|
|
2786
2788
|
"mask-image-x-from-pos": [{
|
|
2787
2789
|
"mask-x-from": D()
|
|
@@ -2790,10 +2792,10 @@ const cn = (e, t) => {
|
|
|
2790
2792
|
"mask-x-to": D()
|
|
2791
2793
|
}],
|
|
2792
2794
|
"mask-image-x-from-color": [{
|
|
2793
|
-
"mask-x-from":
|
|
2795
|
+
"mask-x-from": N()
|
|
2794
2796
|
}],
|
|
2795
2797
|
"mask-image-x-to-color": [{
|
|
2796
|
-
"mask-x-to":
|
|
2798
|
+
"mask-x-to": N()
|
|
2797
2799
|
}],
|
|
2798
2800
|
"mask-image-y-from-pos": [{
|
|
2799
2801
|
"mask-y-from": D()
|
|
@@ -2802,13 +2804,13 @@ const cn = (e, t) => {
|
|
|
2802
2804
|
"mask-y-to": D()
|
|
2803
2805
|
}],
|
|
2804
2806
|
"mask-image-y-from-color": [{
|
|
2805
|
-
"mask-y-from":
|
|
2807
|
+
"mask-y-from": N()
|
|
2806
2808
|
}],
|
|
2807
2809
|
"mask-image-y-to-color": [{
|
|
2808
|
-
"mask-y-to":
|
|
2810
|
+
"mask-y-to": N()
|
|
2809
2811
|
}],
|
|
2810
2812
|
"mask-image-radial": [{
|
|
2811
|
-
"mask-radial": [
|
|
2813
|
+
"mask-radial": [x, v]
|
|
2812
2814
|
}],
|
|
2813
2815
|
"mask-image-radial-from-pos": [{
|
|
2814
2816
|
"mask-radial-from": D()
|
|
@@ -2817,10 +2819,10 @@ const cn = (e, t) => {
|
|
|
2817
2819
|
"mask-radial-to": D()
|
|
2818
2820
|
}],
|
|
2819
2821
|
"mask-image-radial-from-color": [{
|
|
2820
|
-
"mask-radial-from":
|
|
2822
|
+
"mask-radial-from": N()
|
|
2821
2823
|
}],
|
|
2822
2824
|
"mask-image-radial-to-color": [{
|
|
2823
|
-
"mask-radial-to":
|
|
2825
|
+
"mask-radial-to": N()
|
|
2824
2826
|
}],
|
|
2825
2827
|
"mask-image-radial-shape": [{
|
|
2826
2828
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2844,10 +2846,10 @@ const cn = (e, t) => {
|
|
|
2844
2846
|
"mask-conic-to": D()
|
|
2845
2847
|
}],
|
|
2846
2848
|
"mask-image-conic-from-color": [{
|
|
2847
|
-
"mask-conic-from":
|
|
2849
|
+
"mask-conic-from": N()
|
|
2848
2850
|
}],
|
|
2849
2851
|
"mask-image-conic-to-color": [{
|
|
2850
|
-
"mask-conic-to":
|
|
2852
|
+
"mask-conic-to": N()
|
|
2851
2853
|
}],
|
|
2852
2854
|
/**
|
|
2853
2855
|
* Mask Mode
|
|
@@ -2896,7 +2898,7 @@ const cn = (e, t) => {
|
|
|
2896
2898
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2897
2899
|
*/
|
|
2898
2900
|
"mask-image": [{
|
|
2899
|
-
mask: ["none",
|
|
2901
|
+
mask: ["none", x, v]
|
|
2900
2902
|
}],
|
|
2901
2903
|
// ---------------
|
|
2902
2904
|
// --- Filters ---
|
|
@@ -2910,7 +2912,7 @@ const cn = (e, t) => {
|
|
|
2910
2912
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2911
2913
|
"",
|
|
2912
2914
|
"none",
|
|
2913
|
-
|
|
2915
|
+
x,
|
|
2914
2916
|
v
|
|
2915
2917
|
]
|
|
2916
2918
|
}],
|
|
@@ -2926,14 +2928,14 @@ const cn = (e, t) => {
|
|
|
2926
2928
|
* @see https://tailwindcss.com/docs/brightness
|
|
2927
2929
|
*/
|
|
2928
2930
|
brightness: [{
|
|
2929
|
-
brightness: [I,
|
|
2931
|
+
brightness: [I, x, v]
|
|
2930
2932
|
}],
|
|
2931
2933
|
/**
|
|
2932
2934
|
* Contrast
|
|
2933
2935
|
* @see https://tailwindcss.com/docs/contrast
|
|
2934
2936
|
*/
|
|
2935
2937
|
contrast: [{
|
|
2936
|
-
contrast: [I,
|
|
2938
|
+
contrast: [I, x, v]
|
|
2937
2939
|
}],
|
|
2938
2940
|
/**
|
|
2939
2941
|
* Drop Shadow
|
|
@@ -2945,8 +2947,8 @@ const cn = (e, t) => {
|
|
|
2945
2947
|
"",
|
|
2946
2948
|
"none",
|
|
2947
2949
|
b,
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
+
Ne,
|
|
2951
|
+
Ee
|
|
2950
2952
|
]
|
|
2951
2953
|
}],
|
|
2952
2954
|
/**
|
|
@@ -2954,42 +2956,42 @@ const cn = (e, t) => {
|
|
|
2954
2956
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2955
2957
|
*/
|
|
2956
2958
|
"drop-shadow-color": [{
|
|
2957
|
-
"drop-shadow":
|
|
2959
|
+
"drop-shadow": N()
|
|
2958
2960
|
}],
|
|
2959
2961
|
/**
|
|
2960
2962
|
* Grayscale
|
|
2961
2963
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2962
2964
|
*/
|
|
2963
2965
|
grayscale: [{
|
|
2964
|
-
grayscale: ["", I,
|
|
2966
|
+
grayscale: ["", I, x, v]
|
|
2965
2967
|
}],
|
|
2966
2968
|
/**
|
|
2967
2969
|
* Hue Rotate
|
|
2968
2970
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2969
2971
|
*/
|
|
2970
2972
|
"hue-rotate": [{
|
|
2971
|
-
"hue-rotate": [I,
|
|
2973
|
+
"hue-rotate": [I, x, v]
|
|
2972
2974
|
}],
|
|
2973
2975
|
/**
|
|
2974
2976
|
* Invert
|
|
2975
2977
|
* @see https://tailwindcss.com/docs/invert
|
|
2976
2978
|
*/
|
|
2977
2979
|
invert: [{
|
|
2978
|
-
invert: ["", I,
|
|
2980
|
+
invert: ["", I, x, v]
|
|
2979
2981
|
}],
|
|
2980
2982
|
/**
|
|
2981
2983
|
* Saturate
|
|
2982
2984
|
* @see https://tailwindcss.com/docs/saturate
|
|
2983
2985
|
*/
|
|
2984
2986
|
saturate: [{
|
|
2985
|
-
saturate: [I,
|
|
2987
|
+
saturate: [I, x, v]
|
|
2986
2988
|
}],
|
|
2987
2989
|
/**
|
|
2988
2990
|
* Sepia
|
|
2989
2991
|
* @see https://tailwindcss.com/docs/sepia
|
|
2990
2992
|
*/
|
|
2991
2993
|
sepia: [{
|
|
2992
|
-
sepia: ["", I,
|
|
2994
|
+
sepia: ["", I, x, v]
|
|
2993
2995
|
}],
|
|
2994
2996
|
/**
|
|
2995
2997
|
* Backdrop Filter
|
|
@@ -3000,7 +3002,7 @@ const cn = (e, t) => {
|
|
|
3000
3002
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3001
3003
|
"",
|
|
3002
3004
|
"none",
|
|
3003
|
-
|
|
3005
|
+
x,
|
|
3004
3006
|
v
|
|
3005
3007
|
]
|
|
3006
3008
|
}],
|
|
@@ -3016,56 +3018,56 @@ const cn = (e, t) => {
|
|
|
3016
3018
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3017
3019
|
*/
|
|
3018
3020
|
"backdrop-brightness": [{
|
|
3019
|
-
"backdrop-brightness": [I,
|
|
3021
|
+
"backdrop-brightness": [I, x, v]
|
|
3020
3022
|
}],
|
|
3021
3023
|
/**
|
|
3022
3024
|
* Backdrop Contrast
|
|
3023
3025
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3024
3026
|
*/
|
|
3025
3027
|
"backdrop-contrast": [{
|
|
3026
|
-
"backdrop-contrast": [I,
|
|
3028
|
+
"backdrop-contrast": [I, x, v]
|
|
3027
3029
|
}],
|
|
3028
3030
|
/**
|
|
3029
3031
|
* Backdrop Grayscale
|
|
3030
3032
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3031
3033
|
*/
|
|
3032
3034
|
"backdrop-grayscale": [{
|
|
3033
|
-
"backdrop-grayscale": ["", I,
|
|
3035
|
+
"backdrop-grayscale": ["", I, x, v]
|
|
3034
3036
|
}],
|
|
3035
3037
|
/**
|
|
3036
3038
|
* Backdrop Hue Rotate
|
|
3037
3039
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3038
3040
|
*/
|
|
3039
3041
|
"backdrop-hue-rotate": [{
|
|
3040
|
-
"backdrop-hue-rotate": [I,
|
|
3042
|
+
"backdrop-hue-rotate": [I, x, v]
|
|
3041
3043
|
}],
|
|
3042
3044
|
/**
|
|
3043
3045
|
* Backdrop Invert
|
|
3044
3046
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3045
3047
|
*/
|
|
3046
3048
|
"backdrop-invert": [{
|
|
3047
|
-
"backdrop-invert": ["", I,
|
|
3049
|
+
"backdrop-invert": ["", I, x, v]
|
|
3048
3050
|
}],
|
|
3049
3051
|
/**
|
|
3050
3052
|
* Backdrop Opacity
|
|
3051
3053
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3052
3054
|
*/
|
|
3053
3055
|
"backdrop-opacity": [{
|
|
3054
|
-
"backdrop-opacity": [I,
|
|
3056
|
+
"backdrop-opacity": [I, x, v]
|
|
3055
3057
|
}],
|
|
3056
3058
|
/**
|
|
3057
3059
|
* Backdrop Saturate
|
|
3058
3060
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3059
3061
|
*/
|
|
3060
3062
|
"backdrop-saturate": [{
|
|
3061
|
-
"backdrop-saturate": [I,
|
|
3063
|
+
"backdrop-saturate": [I, x, v]
|
|
3062
3064
|
}],
|
|
3063
3065
|
/**
|
|
3064
3066
|
* Backdrop Sepia
|
|
3065
3067
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3066
3068
|
*/
|
|
3067
3069
|
"backdrop-sepia": [{
|
|
3068
|
-
"backdrop-sepia": ["", I,
|
|
3070
|
+
"backdrop-sepia": ["", I, x, v]
|
|
3069
3071
|
}],
|
|
3070
3072
|
// --------------
|
|
3071
3073
|
// --- Tables ---
|
|
@@ -3120,7 +3122,7 @@ const cn = (e, t) => {
|
|
|
3120
3122
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3121
3123
|
*/
|
|
3122
3124
|
transition: [{
|
|
3123
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3125
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", x, v]
|
|
3124
3126
|
}],
|
|
3125
3127
|
/**
|
|
3126
3128
|
* Transition Behavior
|
|
@@ -3134,28 +3136,28 @@ const cn = (e, t) => {
|
|
|
3134
3136
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3135
3137
|
*/
|
|
3136
3138
|
duration: [{
|
|
3137
|
-
duration: [I, "initial",
|
|
3139
|
+
duration: [I, "initial", x, v]
|
|
3138
3140
|
}],
|
|
3139
3141
|
/**
|
|
3140
3142
|
* Transition Timing Function
|
|
3141
3143
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3142
3144
|
*/
|
|
3143
3145
|
ease: [{
|
|
3144
|
-
ease: ["linear", "initial", y,
|
|
3146
|
+
ease: ["linear", "initial", y, x, v]
|
|
3145
3147
|
}],
|
|
3146
3148
|
/**
|
|
3147
3149
|
* Transition Delay
|
|
3148
3150
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3149
3151
|
*/
|
|
3150
3152
|
delay: [{
|
|
3151
|
-
delay: [I,
|
|
3153
|
+
delay: [I, x, v]
|
|
3152
3154
|
}],
|
|
3153
3155
|
/**
|
|
3154
3156
|
* Animation
|
|
3155
3157
|
* @see https://tailwindcss.com/docs/animation
|
|
3156
3158
|
*/
|
|
3157
3159
|
animate: [{
|
|
3158
|
-
animate: ["none", R,
|
|
3160
|
+
animate: ["none", R, x, v]
|
|
3159
3161
|
}],
|
|
3160
3162
|
// ------------------
|
|
3161
3163
|
// --- Transforms ---
|
|
@@ -3172,7 +3174,7 @@ const cn = (e, t) => {
|
|
|
3172
3174
|
* @see https://tailwindcss.com/docs/perspective
|
|
3173
3175
|
*/
|
|
3174
3176
|
perspective: [{
|
|
3175
|
-
perspective: [
|
|
3177
|
+
perspective: [w, x, v]
|
|
3176
3178
|
}],
|
|
3177
3179
|
/**
|
|
3178
3180
|
* Perspective Origin
|
|
@@ -3268,7 +3270,7 @@ const cn = (e, t) => {
|
|
|
3268
3270
|
* @see https://tailwindcss.com/docs/transform
|
|
3269
3271
|
*/
|
|
3270
3272
|
transform: [{
|
|
3271
|
-
transform: [
|
|
3273
|
+
transform: [x, v, "", "none", "gpu", "cpu"]
|
|
3272
3274
|
}],
|
|
3273
3275
|
/**
|
|
3274
3276
|
* Transform Origin
|
|
@@ -3325,7 +3327,7 @@ const cn = (e, t) => {
|
|
|
3325
3327
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3326
3328
|
*/
|
|
3327
3329
|
accent: [{
|
|
3328
|
-
accent:
|
|
3330
|
+
accent: N()
|
|
3329
3331
|
}],
|
|
3330
3332
|
/**
|
|
3331
3333
|
* Appearance
|
|
@@ -3339,7 +3341,7 @@ const cn = (e, t) => {
|
|
|
3339
3341
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3340
3342
|
*/
|
|
3341
3343
|
"caret-color": [{
|
|
3342
|
-
caret:
|
|
3344
|
+
caret: N()
|
|
3343
3345
|
}],
|
|
3344
3346
|
/**
|
|
3345
3347
|
* Color Scheme
|
|
@@ -3353,7 +3355,7 @@ const cn = (e, t) => {
|
|
|
3353
3355
|
* @see https://tailwindcss.com/docs/cursor
|
|
3354
3356
|
*/
|
|
3355
3357
|
cursor: [{
|
|
3356
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3358
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", x, v]
|
|
3357
3359
|
}],
|
|
3358
3360
|
/**
|
|
3359
3361
|
* Field Sizing
|
|
@@ -3603,7 +3605,7 @@ const cn = (e, t) => {
|
|
|
3603
3605
|
* @see https://tailwindcss.com/docs/will-change
|
|
3604
3606
|
*/
|
|
3605
3607
|
"will-change": [{
|
|
3606
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3608
|
+
"will-change": ["auto", "scroll", "contents", "transform", x, v]
|
|
3607
3609
|
}],
|
|
3608
3610
|
// -----------
|
|
3609
3611
|
// --- SVG ---
|
|
@@ -3613,7 +3615,7 @@ const cn = (e, t) => {
|
|
|
3613
3615
|
* @see https://tailwindcss.com/docs/fill
|
|
3614
3616
|
*/
|
|
3615
3617
|
fill: [{
|
|
3616
|
-
fill: ["none", ...
|
|
3618
|
+
fill: ["none", ...N()]
|
|
3617
3619
|
}],
|
|
3618
3620
|
/**
|
|
3619
3621
|
* Stroke Width
|
|
@@ -3627,7 +3629,7 @@ const cn = (e, t) => {
|
|
|
3627
3629
|
* @see https://tailwindcss.com/docs/stroke
|
|
3628
3630
|
*/
|
|
3629
3631
|
stroke: [{
|
|
3630
|
-
stroke: ["none", ...
|
|
3632
|
+
stroke: ["none", ...N()]
|
|
3631
3633
|
}],
|
|
3632
3634
|
// ---------------------
|
|
3633
3635
|
// --- Accessibility ---
|
|
@@ -3695,7 +3697,7 @@ const cn = (e, t) => {
|
|
|
3695
3697
|
},
|
|
3696
3698
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3697
3699
|
};
|
|
3698
|
-
},
|
|
3700
|
+
}, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(Vt(e));
|
|
3699
3701
|
function me({ className: e, ...t }) {
|
|
3700
3702
|
return /* @__PURE__ */ c(
|
|
3701
3703
|
"div",
|
|
@@ -3709,7 +3711,7 @@ function me({ className: e, ...t }) {
|
|
|
3709
3711
|
}
|
|
3710
3712
|
);
|
|
3711
3713
|
}
|
|
3712
|
-
function
|
|
3714
|
+
function Qn({ className: e, ...t }) {
|
|
3713
3715
|
return /* @__PURE__ */ c(
|
|
3714
3716
|
"div",
|
|
3715
3717
|
{
|
|
@@ -3732,32 +3734,32 @@ function pe({ className: e, ...t }) {
|
|
|
3732
3734
|
}
|
|
3733
3735
|
);
|
|
3734
3736
|
}
|
|
3735
|
-
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt =
|
|
3737
|
+
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, ot = (e, t) => (o) => {
|
|
3736
3738
|
var r;
|
|
3737
3739
|
if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3738
3740
|
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
|
|
3739
3741
|
const u = o == null ? void 0 : o[d], f = s == null ? void 0 : s[d];
|
|
3740
3742
|
if (u === null) return null;
|
|
3741
|
-
const
|
|
3742
|
-
return n[d][
|
|
3743
|
+
const m = yt(u) || yt(f);
|
|
3744
|
+
return n[d][m];
|
|
3743
3745
|
}), i = o && Object.entries(o).reduce((d, u) => {
|
|
3744
|
-
let [f,
|
|
3745
|
-
return
|
|
3746
|
+
let [f, m] = u;
|
|
3747
|
+
return m === void 0 || (d[f] = m), d;
|
|
3746
3748
|
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
3747
|
-
let { class: f, className:
|
|
3749
|
+
let { class: f, className: m, ...b } = u;
|
|
3748
3750
|
return Object.entries(b).every((S) => {
|
|
3749
|
-
let [
|
|
3751
|
+
let [w, h] = S;
|
|
3750
3752
|
return Array.isArray(h) ? h.includes({
|
|
3751
3753
|
...s,
|
|
3752
3754
|
...i
|
|
3753
|
-
}[
|
|
3755
|
+
}[w]) : {
|
|
3754
3756
|
...s,
|
|
3755
3757
|
...i
|
|
3756
|
-
}[
|
|
3758
|
+
}[w] === h;
|
|
3757
3759
|
}) ? [
|
|
3758
3760
|
...d,
|
|
3759
3761
|
f,
|
|
3760
|
-
|
|
3762
|
+
m
|
|
3761
3763
|
] : d;
|
|
3762
3764
|
}, []);
|
|
3763
3765
|
return kt(e, a, l, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
@@ -3767,7 +3769,7 @@ function St(e, t) {
|
|
|
3767
3769
|
return e(t);
|
|
3768
3770
|
e != null && (e.current = t);
|
|
3769
3771
|
}
|
|
3770
|
-
function
|
|
3772
|
+
function no(...e) {
|
|
3771
3773
|
return (t) => {
|
|
3772
3774
|
let o = !1;
|
|
3773
3775
|
const r = e.map((n) => {
|
|
@@ -3784,38 +3786,38 @@ function ro(...e) {
|
|
|
3784
3786
|
};
|
|
3785
3787
|
}
|
|
3786
3788
|
function Y(...e) {
|
|
3787
|
-
return
|
|
3789
|
+
return p.useCallback(no(...e), e);
|
|
3788
3790
|
}
|
|
3789
3791
|
// @__NO_SIDE_EFFECTS__
|
|
3790
3792
|
function Pe(e) {
|
|
3791
|
-
const t = /* @__PURE__ */
|
|
3792
|
-
const { children: s, ...a } = r, i =
|
|
3793
|
+
const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
|
|
3794
|
+
const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
|
|
3793
3795
|
if (l) {
|
|
3794
|
-
const d = l.props.children, u = i.map((f) => f === l ?
|
|
3795
|
-
return /* @__PURE__ */ c(t, { ...a, ref: n, children:
|
|
3796
|
+
const d = l.props.children, u = i.map((f) => f === l ? p.Children.count(d) > 1 ? p.Children.only(null) : p.isValidElement(d) ? d.props.children : null : f);
|
|
3797
|
+
return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(d) ? p.cloneElement(d, void 0, u) : null });
|
|
3796
3798
|
}
|
|
3797
3799
|
return /* @__PURE__ */ c(t, { ...a, ref: n, children: s });
|
|
3798
3800
|
});
|
|
3799
3801
|
return o.displayName = `${e}.Slot`, o;
|
|
3800
3802
|
}
|
|
3801
|
-
var
|
|
3803
|
+
var so = /* @__PURE__ */ Pe("Slot");
|
|
3802
3804
|
// @__NO_SIDE_EFFECTS__
|
|
3803
|
-
function
|
|
3804
|
-
const t =
|
|
3805
|
+
function es(e) {
|
|
3806
|
+
const t = p.forwardRef((o, r) => {
|
|
3805
3807
|
const { children: n, ...s } = o;
|
|
3806
|
-
if (
|
|
3807
|
-
const a =
|
|
3808
|
-
return n.type !==
|
|
3808
|
+
if (p.isValidElement(n)) {
|
|
3809
|
+
const a = ns(n), i = rs(s, n.props);
|
|
3810
|
+
return n.type !== p.Fragment && (i.ref = r ? no(r, a) : a), p.cloneElement(n, i);
|
|
3809
3811
|
}
|
|
3810
|
-
return
|
|
3812
|
+
return p.Children.count(n) > 1 ? p.Children.only(null) : null;
|
|
3811
3813
|
});
|
|
3812
3814
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3813
3815
|
}
|
|
3814
|
-
var
|
|
3815
|
-
function
|
|
3816
|
-
return
|
|
3816
|
+
var ts = Symbol("radix.slottable");
|
|
3817
|
+
function os(e) {
|
|
3818
|
+
return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ts;
|
|
3817
3819
|
}
|
|
3818
|
-
function
|
|
3820
|
+
function rs(e, t) {
|
|
3819
3821
|
const o = { ...t };
|
|
3820
3822
|
for (const r in t) {
|
|
3821
3823
|
const n = e[r], s = t[r];
|
|
@@ -3826,12 +3828,12 @@ function os(e, t) {
|
|
|
3826
3828
|
}
|
|
3827
3829
|
return { ...e, ...o };
|
|
3828
3830
|
}
|
|
3829
|
-
function
|
|
3831
|
+
function ns(e) {
|
|
3830
3832
|
var r, n;
|
|
3831
3833
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
3832
3834
|
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);
|
|
3833
3835
|
}
|
|
3834
|
-
var
|
|
3836
|
+
var ss = [
|
|
3835
3837
|
"a",
|
|
3836
3838
|
"button",
|
|
3837
3839
|
"div",
|
|
@@ -3849,8 +3851,8 @@ var ns = [
|
|
|
3849
3851
|
"span",
|
|
3850
3852
|
"svg",
|
|
3851
3853
|
"ul"
|
|
3852
|
-
],
|
|
3853
|
-
const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r =
|
|
3854
|
+
], j = ss.reduce((e, t) => {
|
|
3855
|
+
const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
|
|
3854
3856
|
const { asChild: a, ...i } = n, l = a ? o : t;
|
|
3855
3857
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
3856
3858
|
});
|
|
@@ -3859,17 +3861,17 @@ var ns = [
|
|
|
3859
3861
|
function ge(e, t = []) {
|
|
3860
3862
|
let o = [];
|
|
3861
3863
|
function r(s, a) {
|
|
3862
|
-
const i =
|
|
3864
|
+
const i = p.createContext(a), l = o.length;
|
|
3863
3865
|
o = [...o, a];
|
|
3864
3866
|
const d = (f) => {
|
|
3865
3867
|
var y;
|
|
3866
|
-
const { scope:
|
|
3867
|
-
return /* @__PURE__ */ c(
|
|
3868
|
+
const { scope: m, children: b, ...S } = f, w = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[l]) || i, h = p.useMemo(() => S, Object.values(S));
|
|
3869
|
+
return /* @__PURE__ */ c(w.Provider, { value: h, children: b });
|
|
3868
3870
|
};
|
|
3869
3871
|
d.displayName = s + "Provider";
|
|
3870
|
-
function u(f,
|
|
3871
|
-
var
|
|
3872
|
-
const b = ((
|
|
3872
|
+
function u(f, m) {
|
|
3873
|
+
var w;
|
|
3874
|
+
const b = ((w = m == null ? void 0 : m[e]) == null ? void 0 : w[l]) || i, S = p.useContext(b);
|
|
3873
3875
|
if (S) return S;
|
|
3874
3876
|
if (a !== void 0) return a;
|
|
3875
3877
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
@@ -3877,18 +3879,18 @@ function ge(e, t = []) {
|
|
|
3877
3879
|
return [d, u];
|
|
3878
3880
|
}
|
|
3879
3881
|
const n = () => {
|
|
3880
|
-
const s = o.map((a) =>
|
|
3882
|
+
const s = o.map((a) => p.createContext(a));
|
|
3881
3883
|
return function(i) {
|
|
3882
3884
|
const l = (i == null ? void 0 : i[e]) || s;
|
|
3883
|
-
return
|
|
3885
|
+
return p.useMemo(
|
|
3884
3886
|
() => ({ [`__scope${e}`]: { ...i, [e]: l } }),
|
|
3885
3887
|
[i, l]
|
|
3886
3888
|
);
|
|
3887
3889
|
};
|
|
3888
3890
|
};
|
|
3889
|
-
return n.scopeName = e, [r,
|
|
3891
|
+
return n.scopeName = e, [r, as(n, ...t)];
|
|
3890
3892
|
}
|
|
3891
|
-
function
|
|
3893
|
+
function as(...e) {
|
|
3892
3894
|
const t = e[0];
|
|
3893
3895
|
if (e.length === 1) return t;
|
|
3894
3896
|
const o = () => {
|
|
@@ -3901,42 +3903,42 @@ function ss(...e) {
|
|
|
3901
3903
|
const f = l(s)[`__scope${d}`];
|
|
3902
3904
|
return { ...i, ...f };
|
|
3903
3905
|
}, {});
|
|
3904
|
-
return
|
|
3906
|
+
return p.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
|
|
3905
3907
|
};
|
|
3906
3908
|
};
|
|
3907
3909
|
return o.scopeName = t.scopeName, o;
|
|
3908
3910
|
}
|
|
3909
|
-
function
|
|
3911
|
+
function is(e) {
|
|
3910
3912
|
const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
|
|
3911
3913
|
t,
|
|
3912
3914
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3913
|
-
), a = (
|
|
3914
|
-
const { scope: h, children: y } =
|
|
3915
|
+
), a = (w) => {
|
|
3916
|
+
const { scope: h, children: y } = w, R = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
|
|
3915
3917
|
return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
|
|
3916
3918
|
};
|
|
3917
3919
|
a.displayName = t;
|
|
3918
|
-
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d =
|
|
3919
|
-
(
|
|
3920
|
-
const { scope: y, children: R } =
|
|
3920
|
+
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = G.forwardRef(
|
|
3921
|
+
(w, h) => {
|
|
3922
|
+
const { scope: y, children: R } = w, C = s(i, y), A = Y(h, C.collectionRef);
|
|
3921
3923
|
return /* @__PURE__ */ c(l, { ref: A, children: R });
|
|
3922
3924
|
}
|
|
3923
3925
|
);
|
|
3924
3926
|
d.displayName = i;
|
|
3925
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item",
|
|
3926
|
-
(
|
|
3927
|
-
const { scope: y, children: R, ...C } =
|
|
3928
|
-
return
|
|
3927
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), b = G.forwardRef(
|
|
3928
|
+
(w, h) => {
|
|
3929
|
+
const { scope: y, children: R, ...C } = w, A = G.useRef(null), P = Y(h, A), E = s(u, y);
|
|
3930
|
+
return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: R });
|
|
3929
3931
|
}
|
|
3930
3932
|
);
|
|
3931
3933
|
b.displayName = u;
|
|
3932
|
-
function S(
|
|
3933
|
-
const h = s(e + "CollectionConsumer",
|
|
3934
|
-
return
|
|
3934
|
+
function S(w) {
|
|
3935
|
+
const h = s(e + "CollectionConsumer", w);
|
|
3936
|
+
return G.useCallback(() => {
|
|
3935
3937
|
const R = h.collectionRef.current;
|
|
3936
3938
|
if (!R) return [];
|
|
3937
3939
|
const C = Array.from(R.querySelectorAll(`[${f}]`));
|
|
3938
3940
|
return Array.from(h.itemMap.values()).sort(
|
|
3939
|
-
(
|
|
3941
|
+
(E, _) => C.indexOf(E.ref.current) - C.indexOf(_.ref.current)
|
|
3940
3942
|
);
|
|
3941
3943
|
}, [h.collectionRef, h.itemMap]);
|
|
3942
3944
|
}
|
|
@@ -3946,40 +3948,40 @@ function as(e) {
|
|
|
3946
3948
|
r
|
|
3947
3949
|
];
|
|
3948
3950
|
}
|
|
3949
|
-
function
|
|
3951
|
+
function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
3950
3952
|
return function(n) {
|
|
3951
3953
|
if (e == null || e(n), o === !1 || !n.defaultPrevented)
|
|
3952
3954
|
return t == null ? void 0 : t(n);
|
|
3953
3955
|
};
|
|
3954
3956
|
}
|
|
3955
|
-
var oe = globalThis != null && globalThis.document ?
|
|
3956
|
-
},
|
|
3957
|
-
function
|
|
3957
|
+
var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
|
|
3958
|
+
}, ls = p[" useInsertionEffect ".trim().toString()] || oe;
|
|
3959
|
+
function ao({
|
|
3958
3960
|
prop: e,
|
|
3959
3961
|
defaultProp: t,
|
|
3960
3962
|
onChange: o = () => {
|
|
3961
3963
|
},
|
|
3962
3964
|
caller: r
|
|
3963
3965
|
}) {
|
|
3964
|
-
const [n, s, a] =
|
|
3966
|
+
const [n, s, a] = cs({
|
|
3965
3967
|
defaultProp: t,
|
|
3966
3968
|
onChange: o
|
|
3967
3969
|
}), i = e !== void 0, l = i ? e : n;
|
|
3968
3970
|
{
|
|
3969
|
-
const u =
|
|
3970
|
-
|
|
3971
|
+
const u = p.useRef(e !== void 0);
|
|
3972
|
+
p.useEffect(() => {
|
|
3971
3973
|
const f = u.current;
|
|
3972
3974
|
f !== i && console.warn(
|
|
3973
3975
|
`${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
3974
3976
|
), u.current = i;
|
|
3975
3977
|
}, [i, r]);
|
|
3976
3978
|
}
|
|
3977
|
-
const d =
|
|
3979
|
+
const d = p.useCallback(
|
|
3978
3980
|
(u) => {
|
|
3979
3981
|
var f;
|
|
3980
3982
|
if (i) {
|
|
3981
|
-
const
|
|
3982
|
-
|
|
3983
|
+
const m = ds(u) ? u(e) : u;
|
|
3984
|
+
m !== e && ((f = a.current) == null || f.call(a, m));
|
|
3983
3985
|
} else
|
|
3984
3986
|
s(u);
|
|
3985
3987
|
},
|
|
@@ -3987,31 +3989,31 @@ function so({
|
|
|
3987
3989
|
);
|
|
3988
3990
|
return [l, d];
|
|
3989
3991
|
}
|
|
3990
|
-
function
|
|
3992
|
+
function cs({
|
|
3991
3993
|
defaultProp: e,
|
|
3992
3994
|
onChange: t
|
|
3993
3995
|
}) {
|
|
3994
|
-
const [o, r] =
|
|
3995
|
-
return
|
|
3996
|
+
const [o, r] = p.useState(e), n = p.useRef(o), s = p.useRef(t);
|
|
3997
|
+
return ls(() => {
|
|
3996
3998
|
s.current = t;
|
|
3997
|
-
}, [t]),
|
|
3999
|
+
}, [t]), p.useEffect(() => {
|
|
3998
4000
|
var a;
|
|
3999
4001
|
n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
|
|
4000
4002
|
}, [o, n]), [o, r, s];
|
|
4001
4003
|
}
|
|
4002
|
-
function
|
|
4004
|
+
function ds(e) {
|
|
4003
4005
|
return typeof e == "function";
|
|
4004
4006
|
}
|
|
4005
|
-
function
|
|
4006
|
-
return
|
|
4007
|
+
function us(e, t) {
|
|
4008
|
+
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4007
4009
|
}
|
|
4008
4010
|
var de = (e) => {
|
|
4009
|
-
const { present: t, children: o } = e, r =
|
|
4010
|
-
return typeof o == "function" || r.isPresent ?
|
|
4011
|
+
const { present: t, children: o } = e, r = fs(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ms(n));
|
|
4012
|
+
return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
|
|
4011
4013
|
};
|
|
4012
4014
|
de.displayName = "Presence";
|
|
4013
|
-
function
|
|
4014
|
-
const [t, o] =
|
|
4015
|
+
function fs(e) {
|
|
4016
|
+
const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = us(a, {
|
|
4015
4017
|
mounted: {
|
|
4016
4018
|
UNMOUNT: "unmounted",
|
|
4017
4019
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4024,37 +4026,37 @@ function us(e) {
|
|
|
4024
4026
|
MOUNT: "mounted"
|
|
4025
4027
|
}
|
|
4026
4028
|
});
|
|
4027
|
-
return
|
|
4029
|
+
return p.useEffect(() => {
|
|
4028
4030
|
const d = Ae(r.current);
|
|
4029
4031
|
s.current = i === "mounted" ? d : "none";
|
|
4030
4032
|
}, [i]), oe(() => {
|
|
4031
4033
|
const d = r.current, u = n.current;
|
|
4032
4034
|
if (u !== e) {
|
|
4033
|
-
const
|
|
4034
|
-
e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u &&
|
|
4035
|
+
const m = s.current, b = Ae(d);
|
|
4036
|
+
e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && m !== b ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
4035
4037
|
}
|
|
4036
4038
|
}, [e, l]), oe(() => {
|
|
4037
4039
|
if (t) {
|
|
4038
4040
|
let d;
|
|
4039
4041
|
const u = t.ownerDocument.defaultView ?? window, f = (b) => {
|
|
4040
|
-
const
|
|
4041
|
-
if (b.target === t &&
|
|
4042
|
+
const w = Ae(r.current).includes(CSS.escape(b.animationName));
|
|
4043
|
+
if (b.target === t && w && (l("ANIMATION_END"), !n.current)) {
|
|
4042
4044
|
const h = t.style.animationFillMode;
|
|
4043
4045
|
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
4044
4046
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
4045
4047
|
});
|
|
4046
4048
|
}
|
|
4047
|
-
},
|
|
4049
|
+
}, m = (b) => {
|
|
4048
4050
|
b.target === t && (s.current = Ae(r.current));
|
|
4049
4051
|
};
|
|
4050
|
-
return t.addEventListener("animationstart",
|
|
4051
|
-
u.clearTimeout(d), t.removeEventListener("animationstart",
|
|
4052
|
+
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4053
|
+
u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
4052
4054
|
};
|
|
4053
4055
|
} else
|
|
4054
4056
|
l("ANIMATION_END");
|
|
4055
4057
|
}, [t, l]), {
|
|
4056
4058
|
isPresent: ["mounted", "unmountSuspended"].includes(i),
|
|
4057
|
-
ref:
|
|
4059
|
+
ref: p.useCallback((d) => {
|
|
4058
4060
|
r.current = d ? getComputedStyle(d) : null, o(d);
|
|
4059
4061
|
}, [])
|
|
4060
4062
|
};
|
|
@@ -4062,29 +4064,29 @@ function us(e) {
|
|
|
4062
4064
|
function Ae(e) {
|
|
4063
4065
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4064
4066
|
}
|
|
4065
|
-
function
|
|
4067
|
+
function ms(e) {
|
|
4066
4068
|
var r, n;
|
|
4067
4069
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
4068
4070
|
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);
|
|
4069
4071
|
}
|
|
4070
|
-
var
|
|
4071
|
-
}),
|
|
4072
|
-
function
|
|
4073
|
-
const [t, o] =
|
|
4072
|
+
var ps = p[" useId ".trim().toString()] || (() => {
|
|
4073
|
+
}), hs = 0;
|
|
4074
|
+
function io(e) {
|
|
4075
|
+
const [t, o] = p.useState(ps());
|
|
4074
4076
|
return oe(() => {
|
|
4075
|
-
o((r) => r ?? String(
|
|
4077
|
+
o((r) => r ?? String(hs++));
|
|
4076
4078
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4077
4079
|
}
|
|
4078
|
-
var
|
|
4080
|
+
var gs = p.createContext(void 0);
|
|
4079
4081
|
function rt(e) {
|
|
4080
|
-
const t =
|
|
4082
|
+
const t = p.useContext(gs);
|
|
4081
4083
|
return e || t || "ltr";
|
|
4082
4084
|
}
|
|
4083
4085
|
function J(e) {
|
|
4084
|
-
const t =
|
|
4085
|
-
return
|
|
4086
|
+
const t = p.useRef(e);
|
|
4087
|
+
return p.useEffect(() => {
|
|
4086
4088
|
t.current = e;
|
|
4087
|
-
}),
|
|
4089
|
+
}), p.useMemo(() => (...o) => {
|
|
4088
4090
|
var r;
|
|
4089
4091
|
return (r = t.current) == null ? void 0 : r.call(t, ...o);
|
|
4090
4092
|
}, []);
|
|
@@ -4100,110 +4102,110 @@ var Ve = { exports: {} }, je = {};
|
|
|
4100
4102
|
* LICENSE file in the root directory of this source tree.
|
|
4101
4103
|
*/
|
|
4102
4104
|
var Ct;
|
|
4103
|
-
function
|
|
4105
|
+
function bs() {
|
|
4104
4106
|
if (Ct) return je;
|
|
4105
4107
|
Ct = 1;
|
|
4106
|
-
var e =
|
|
4107
|
-
function t(f,
|
|
4108
|
-
return f ===
|
|
4108
|
+
var e = G;
|
|
4109
|
+
function t(f, m) {
|
|
4110
|
+
return f === m && (f !== 0 || 1 / f === 1 / m) || f !== f && m !== m;
|
|
4109
4111
|
}
|
|
4110
4112
|
var o = typeof Object.is == "function" ? Object.is : t, r = e.useState, n = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
4111
|
-
function i(f,
|
|
4112
|
-
var b =
|
|
4113
|
+
function i(f, m) {
|
|
4114
|
+
var b = m(), S = r({ inst: { value: b, getSnapshot: m } }), w = S[0].inst, h = S[1];
|
|
4113
4115
|
return s(
|
|
4114
4116
|
function() {
|
|
4115
|
-
|
|
4117
|
+
w.value = b, w.getSnapshot = m, l(w) && h({ inst: w });
|
|
4116
4118
|
},
|
|
4117
|
-
[f, b,
|
|
4119
|
+
[f, b, m]
|
|
4118
4120
|
), n(
|
|
4119
4121
|
function() {
|
|
4120
|
-
return l(
|
|
4121
|
-
l(
|
|
4122
|
+
return l(w) && h({ inst: w }), f(function() {
|
|
4123
|
+
l(w) && h({ inst: w });
|
|
4122
4124
|
});
|
|
4123
4125
|
},
|
|
4124
4126
|
[f]
|
|
4125
4127
|
), a(b), b;
|
|
4126
4128
|
}
|
|
4127
4129
|
function l(f) {
|
|
4128
|
-
var
|
|
4130
|
+
var m = f.getSnapshot;
|
|
4129
4131
|
f = f.value;
|
|
4130
4132
|
try {
|
|
4131
|
-
var b =
|
|
4133
|
+
var b = m();
|
|
4132
4134
|
return !o(f, b);
|
|
4133
4135
|
} catch {
|
|
4134
4136
|
return !0;
|
|
4135
4137
|
}
|
|
4136
4138
|
}
|
|
4137
|
-
function d(f,
|
|
4138
|
-
return
|
|
4139
|
+
function d(f, m) {
|
|
4140
|
+
return m();
|
|
4139
4141
|
}
|
|
4140
4142
|
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
4141
4143
|
return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
|
|
4142
4144
|
}
|
|
4143
|
-
var
|
|
4144
|
-
function
|
|
4145
|
-
return
|
|
4145
|
+
var Et;
|
|
4146
|
+
function vs() {
|
|
4147
|
+
return Et || (Et = 1, Ve.exports = bs()), Ve.exports;
|
|
4146
4148
|
}
|
|
4147
|
-
var
|
|
4149
|
+
var xs = vs();
|
|
4148
4150
|
function ws() {
|
|
4149
|
-
return
|
|
4150
|
-
|
|
4151
|
+
return xs.useSyncExternalStore(
|
|
4152
|
+
ys,
|
|
4151
4153
|
() => !0,
|
|
4152
4154
|
() => !1
|
|
4153
4155
|
);
|
|
4154
4156
|
}
|
|
4155
|
-
function
|
|
4157
|
+
function ys() {
|
|
4156
4158
|
return () => {
|
|
4157
4159
|
};
|
|
4158
4160
|
}
|
|
4159
|
-
var nt = "Avatar", [
|
|
4161
|
+
var nt = "Avatar", [ks] = ge(nt), [Ss, lo] = ks(nt), co = p.forwardRef(
|
|
4160
4162
|
(e, t) => {
|
|
4161
|
-
const { __scopeAvatar: o, ...r } = e, [n, s] =
|
|
4163
|
+
const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
|
|
4162
4164
|
return /* @__PURE__ */ c(
|
|
4163
|
-
|
|
4165
|
+
Ss,
|
|
4164
4166
|
{
|
|
4165
4167
|
scope: o,
|
|
4166
4168
|
imageLoadingStatus: n,
|
|
4167
4169
|
onImageLoadingStatusChange: s,
|
|
4168
|
-
children: /* @__PURE__ */ c(
|
|
4170
|
+
children: /* @__PURE__ */ c(j.span, { ...r, ref: t })
|
|
4169
4171
|
}
|
|
4170
4172
|
);
|
|
4171
4173
|
}
|
|
4172
4174
|
);
|
|
4173
|
-
|
|
4174
|
-
var
|
|
4175
|
+
co.displayName = nt;
|
|
4176
|
+
var uo = "AvatarImage", fo = p.forwardRef(
|
|
4175
4177
|
(e, t) => {
|
|
4176
4178
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4177
|
-
}, ...s } = e, a =
|
|
4179
|
+
}, ...s } = e, a = lo(uo, o), i = Cs(r, s), l = J((d) => {
|
|
4178
4180
|
n(d), a.onImageLoadingStatusChange(d);
|
|
4179
4181
|
});
|
|
4180
4182
|
return oe(() => {
|
|
4181
4183
|
i !== "idle" && l(i);
|
|
4182
|
-
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(
|
|
4184
|
+
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(j.img, { ...s, ref: t, src: r }) : null;
|
|
4183
4185
|
}
|
|
4184
4186
|
);
|
|
4185
|
-
|
|
4186
|
-
var
|
|
4187
|
+
fo.displayName = uo;
|
|
4188
|
+
var mo = "AvatarFallback", po = p.forwardRef(
|
|
4187
4189
|
(e, t) => {
|
|
4188
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = e, s =
|
|
4189
|
-
return
|
|
4190
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = lo(mo, o), [a, i] = p.useState(r === void 0);
|
|
4191
|
+
return p.useEffect(() => {
|
|
4190
4192
|
if (r !== void 0) {
|
|
4191
4193
|
const l = window.setTimeout(() => i(!0), r);
|
|
4192
4194
|
return () => window.clearTimeout(l);
|
|
4193
4195
|
}
|
|
4194
|
-
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(
|
|
4196
|
+
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(j.span, { ...n, ref: t }) : null;
|
|
4195
4197
|
}
|
|
4196
4198
|
);
|
|
4197
|
-
|
|
4198
|
-
function
|
|
4199
|
+
po.displayName = mo;
|
|
4200
|
+
function Nt(e, t) {
|
|
4199
4201
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4200
4202
|
}
|
|
4201
|
-
function
|
|
4202
|
-
const r = ws(), n =
|
|
4203
|
-
() =>
|
|
4203
|
+
function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
4204
|
+
const r = ws(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
|
|
4205
|
+
() => Nt(s, e)
|
|
4204
4206
|
);
|
|
4205
4207
|
return oe(() => {
|
|
4206
|
-
i(
|
|
4208
|
+
i(Nt(s, e));
|
|
4207
4209
|
}, [s, e]), oe(() => {
|
|
4208
4210
|
const l = (f) => () => {
|
|
4209
4211
|
i(f);
|
|
@@ -4215,14 +4217,14 @@ function Ss(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
|
4215
4217
|
};
|
|
4216
4218
|
}, [s, o, t]), a;
|
|
4217
4219
|
}
|
|
4218
|
-
var
|
|
4220
|
+
var Es = co, Ns = fo, As = po, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, ho, _s] = is(be), [Is, go] = ge(
|
|
4219
4221
|
be,
|
|
4220
|
-
[
|
|
4221
|
-
), [
|
|
4222
|
-
(e, t) => /* @__PURE__ */ c(
|
|
4222
|
+
[_s]
|
|
4223
|
+
), [Ps, zs] = Is(be), bo = p.forwardRef(
|
|
4224
|
+
(e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
|
|
4223
4225
|
);
|
|
4224
|
-
|
|
4225
|
-
var
|
|
4226
|
+
bo.displayName = be;
|
|
4227
|
+
var Ts = p.forwardRef((e, t) => {
|
|
4226
4228
|
const {
|
|
4227
4229
|
__scopeRovingFocusGroup: o,
|
|
4228
4230
|
orientation: r,
|
|
@@ -4234,54 +4236,54 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4234
4236
|
onEntryFocus: d,
|
|
4235
4237
|
preventScrollOnEntryFocus: u = !1,
|
|
4236
4238
|
...f
|
|
4237
|
-
} = e,
|
|
4239
|
+
} = e, m = p.useRef(null), b = Y(t, m), S = rt(s), [w, h] = ao({
|
|
4238
4240
|
prop: a,
|
|
4239
4241
|
defaultProp: i ?? null,
|
|
4240
4242
|
onChange: l,
|
|
4241
4243
|
caller: be
|
|
4242
|
-
}), [y, R] =
|
|
4243
|
-
return
|
|
4244
|
-
const g =
|
|
4244
|
+
}), [y, R] = p.useState(!1), C = J(d), A = ho(o), P = p.useRef(!1), [E, _] = p.useState(0);
|
|
4245
|
+
return p.useEffect(() => {
|
|
4246
|
+
const g = m.current;
|
|
4245
4247
|
if (g)
|
|
4246
4248
|
return g.addEventListener(Be, C), () => g.removeEventListener(Be, C);
|
|
4247
4249
|
}, [C]), /* @__PURE__ */ c(
|
|
4248
|
-
|
|
4250
|
+
Ps,
|
|
4249
4251
|
{
|
|
4250
4252
|
scope: o,
|
|
4251
4253
|
orientation: r,
|
|
4252
4254
|
dir: S,
|
|
4253
4255
|
loop: n,
|
|
4254
|
-
currentTabStopId:
|
|
4255
|
-
onItemFocus:
|
|
4256
|
+
currentTabStopId: w,
|
|
4257
|
+
onItemFocus: p.useCallback(
|
|
4256
4258
|
(g) => h(g),
|
|
4257
4259
|
[h]
|
|
4258
4260
|
),
|
|
4259
|
-
onItemShiftTab:
|
|
4260
|
-
onFocusableItemAdd:
|
|
4261
|
+
onItemShiftTab: p.useCallback(() => R(!0), []),
|
|
4262
|
+
onFocusableItemAdd: p.useCallback(
|
|
4261
4263
|
() => _((g) => g + 1),
|
|
4262
4264
|
[]
|
|
4263
4265
|
),
|
|
4264
|
-
onFocusableItemRemove:
|
|
4266
|
+
onFocusableItemRemove: p.useCallback(
|
|
4265
4267
|
() => _((g) => g - 1),
|
|
4266
4268
|
[]
|
|
4267
4269
|
),
|
|
4268
4270
|
children: /* @__PURE__ */ c(
|
|
4269
|
-
|
|
4271
|
+
j.div,
|
|
4270
4272
|
{
|
|
4271
|
-
tabIndex: y ||
|
|
4273
|
+
tabIndex: y || E === 0 ? -1 : 0,
|
|
4272
4274
|
"data-orientation": r,
|
|
4273
4275
|
...f,
|
|
4274
4276
|
ref: b,
|
|
4275
4277
|
style: { outline: "none", ...e.style },
|
|
4276
|
-
onMouseDown:
|
|
4278
|
+
onMouseDown: W(e.onMouseDown, () => {
|
|
4277
4279
|
P.current = !0;
|
|
4278
4280
|
}),
|
|
4279
|
-
onFocus:
|
|
4281
|
+
onFocus: W(e.onFocus, (g) => {
|
|
4280
4282
|
const k = !P.current;
|
|
4281
4283
|
if (g.target === g.currentTarget && k && !y) {
|
|
4282
|
-
const M = new CustomEvent(Be,
|
|
4284
|
+
const M = new CustomEvent(Be, Rs);
|
|
4283
4285
|
if (g.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
4284
|
-
const O = A().filter(($) => $.focusable),
|
|
4286
|
+
const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === w), Q = [Z, ve, ...O].filter(
|
|
4285
4287
|
Boolean
|
|
4286
4288
|
).map(($) => $.ref.current);
|
|
4287
4289
|
wo(Q, u);
|
|
@@ -4289,12 +4291,12 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4289
4291
|
}
|
|
4290
4292
|
P.current = !1;
|
|
4291
4293
|
}),
|
|
4292
|
-
onBlur:
|
|
4294
|
+
onBlur: W(e.onBlur, () => R(!1))
|
|
4293
4295
|
}
|
|
4294
4296
|
)
|
|
4295
4297
|
}
|
|
4296
4298
|
);
|
|
4297
|
-
}),
|
|
4299
|
+
}), vo = "RovingFocusGroupItem", xo = p.forwardRef(
|
|
4298
4300
|
(e, t) => {
|
|
4299
4301
|
const {
|
|
4300
4302
|
__scopeRovingFocusGroup: o,
|
|
@@ -4303,57 +4305,57 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4303
4305
|
tabStopId: s,
|
|
4304
4306
|
children: a,
|
|
4305
4307
|
...i
|
|
4306
|
-
} = e, l =
|
|
4307
|
-
return
|
|
4308
|
+
} = e, l = io(), d = s || l, u = zs(vo, o), f = u.currentTabStopId === d, m = ho(o), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: w } = u;
|
|
4309
|
+
return p.useEffect(() => {
|
|
4308
4310
|
if (r)
|
|
4309
4311
|
return b(), () => S();
|
|
4310
4312
|
}, [r, b, S]), /* @__PURE__ */ c(
|
|
4311
|
-
|
|
4313
|
+
Ze.ItemSlot,
|
|
4312
4314
|
{
|
|
4313
4315
|
scope: o,
|
|
4314
4316
|
id: d,
|
|
4315
4317
|
focusable: r,
|
|
4316
4318
|
active: n,
|
|
4317
4319
|
children: /* @__PURE__ */ c(
|
|
4318
|
-
|
|
4320
|
+
j.span,
|
|
4319
4321
|
{
|
|
4320
4322
|
tabIndex: f ? 0 : -1,
|
|
4321
4323
|
"data-orientation": u.orientation,
|
|
4322
4324
|
...i,
|
|
4323
4325
|
ref: t,
|
|
4324
|
-
onMouseDown:
|
|
4326
|
+
onMouseDown: W(e.onMouseDown, (h) => {
|
|
4325
4327
|
r ? u.onItemFocus(d) : h.preventDefault();
|
|
4326
4328
|
}),
|
|
4327
|
-
onFocus:
|
|
4328
|
-
onKeyDown:
|
|
4329
|
+
onFocus: W(e.onFocus, () => u.onItemFocus(d)),
|
|
4330
|
+
onKeyDown: W(e.onKeyDown, (h) => {
|
|
4329
4331
|
if (h.key === "Tab" && h.shiftKey) {
|
|
4330
4332
|
u.onItemShiftTab();
|
|
4331
4333
|
return;
|
|
4332
4334
|
}
|
|
4333
4335
|
if (h.target !== h.currentTarget) return;
|
|
4334
|
-
const y =
|
|
4336
|
+
const y = Os(h, u.orientation, u.dir);
|
|
4335
4337
|
if (y !== void 0) {
|
|
4336
4338
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
4337
4339
|
h.preventDefault();
|
|
4338
|
-
let C =
|
|
4340
|
+
let C = m().filter((A) => A.focusable).map((A) => A.ref.current);
|
|
4339
4341
|
if (y === "last") C.reverse();
|
|
4340
4342
|
else if (y === "prev" || y === "next") {
|
|
4341
4343
|
y === "prev" && C.reverse();
|
|
4342
4344
|
const A = C.indexOf(h.currentTarget);
|
|
4343
|
-
C = u.loop ?
|
|
4345
|
+
C = u.loop ? $s(C, A + 1) : C.slice(A + 1);
|
|
4344
4346
|
}
|
|
4345
4347
|
setTimeout(() => wo(C));
|
|
4346
4348
|
}
|
|
4347
4349
|
}),
|
|
4348
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop:
|
|
4350
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: w != null }) : a
|
|
4349
4351
|
}
|
|
4350
4352
|
)
|
|
4351
4353
|
}
|
|
4352
4354
|
);
|
|
4353
4355
|
}
|
|
4354
4356
|
);
|
|
4355
|
-
|
|
4356
|
-
var
|
|
4357
|
+
xo.displayName = vo;
|
|
4358
|
+
var Ms = {
|
|
4357
4359
|
ArrowLeft: "prev",
|
|
4358
4360
|
ArrowUp: "prev",
|
|
4359
4361
|
ArrowRight: "next",
|
|
@@ -4363,30 +4365,30 @@ var Ts = {
|
|
|
4363
4365
|
PageDown: "last",
|
|
4364
4366
|
End: "last"
|
|
4365
4367
|
};
|
|
4366
|
-
function
|
|
4368
|
+
function Ls(e, t) {
|
|
4367
4369
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4368
4370
|
}
|
|
4369
|
-
function
|
|
4370
|
-
const r =
|
|
4371
|
+
function Os(e, t, o) {
|
|
4372
|
+
const r = Ls(e.key, o);
|
|
4371
4373
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4372
|
-
return
|
|
4374
|
+
return Ms[r];
|
|
4373
4375
|
}
|
|
4374
4376
|
function wo(e, t = !1) {
|
|
4375
4377
|
const o = document.activeElement;
|
|
4376
4378
|
for (const r of e)
|
|
4377
4379
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
4378
4380
|
}
|
|
4379
|
-
function
|
|
4381
|
+
function $s(e, t) {
|
|
4380
4382
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
4381
4383
|
}
|
|
4382
|
-
var
|
|
4383
|
-
function
|
|
4384
|
+
var Fs = bo, Ds = xo;
|
|
4385
|
+
function Us(e, [t, o]) {
|
|
4384
4386
|
return Math.min(o, Math.max(t, e));
|
|
4385
4387
|
}
|
|
4386
|
-
function
|
|
4387
|
-
return
|
|
4388
|
+
function Ws(e, t) {
|
|
4389
|
+
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4388
4390
|
}
|
|
4389
|
-
var st = "ScrollArea", [
|
|
4391
|
+
var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
|
|
4390
4392
|
(e, t) => {
|
|
4391
4393
|
const {
|
|
4392
4394
|
__scopeScrollArea: o,
|
|
@@ -4394,9 +4396,9 @@ var st = "ScrollArea", [xo] = ge(st), [Ws, q] = xo(st), yo = m.forwardRef(
|
|
|
4394
4396
|
dir: n,
|
|
4395
4397
|
scrollHideDelay: s = 600,
|
|
4396
4398
|
...a
|
|
4397
|
-
} = e, [i, l] =
|
|
4399
|
+
} = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [b, S] = p.useState(null), [w, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, g] = p.useState(!1), k = Y(t, (O) => l(O)), M = rt(n);
|
|
4398
4400
|
return /* @__PURE__ */ c(
|
|
4399
|
-
|
|
4401
|
+
Hs,
|
|
4400
4402
|
{
|
|
4401
4403
|
scope: o,
|
|
4402
4404
|
type: r,
|
|
@@ -4406,19 +4408,19 @@ var st = "ScrollArea", [xo] = ge(st), [Ws, q] = xo(st), yo = m.forwardRef(
|
|
|
4406
4408
|
viewport: d,
|
|
4407
4409
|
onViewportChange: u,
|
|
4408
4410
|
content: f,
|
|
4409
|
-
onContentChange:
|
|
4411
|
+
onContentChange: m,
|
|
4410
4412
|
scrollbarX: b,
|
|
4411
4413
|
onScrollbarXChange: S,
|
|
4412
4414
|
scrollbarXEnabled: P,
|
|
4413
|
-
onScrollbarXEnabledChange:
|
|
4414
|
-
scrollbarY:
|
|
4415
|
+
onScrollbarXEnabledChange: E,
|
|
4416
|
+
scrollbarY: w,
|
|
4415
4417
|
onScrollbarYChange: h,
|
|
4416
4418
|
scrollbarYEnabled: _,
|
|
4417
4419
|
onScrollbarYEnabledChange: g,
|
|
4418
4420
|
onCornerWidthChange: R,
|
|
4419
4421
|
onCornerHeightChange: A,
|
|
4420
4422
|
children: /* @__PURE__ */ c(
|
|
4421
|
-
|
|
4423
|
+
j.div,
|
|
4422
4424
|
{
|
|
4423
4425
|
dir: M,
|
|
4424
4426
|
...a,
|
|
@@ -4436,10 +4438,10 @@ var st = "ScrollArea", [xo] = ge(st), [Ws, q] = xo(st), yo = m.forwardRef(
|
|
|
4436
4438
|
);
|
|
4437
4439
|
}
|
|
4438
4440
|
);
|
|
4439
|
-
|
|
4440
|
-
var
|
|
4441
|
+
ko.displayName = st;
|
|
4442
|
+
var So = "ScrollAreaViewport", Co = p.forwardRef(
|
|
4441
4443
|
(e, t) => {
|
|
4442
|
-
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(
|
|
4444
|
+
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(So, o), i = p.useRef(null), l = Y(t, i, a.onViewportChange);
|
|
4443
4445
|
return /* @__PURE__ */ z(he, { children: [
|
|
4444
4446
|
/* @__PURE__ */ c(
|
|
4445
4447
|
"style",
|
|
@@ -4451,7 +4453,7 @@ var ko = "ScrollAreaViewport", So = m.forwardRef(
|
|
|
4451
4453
|
}
|
|
4452
4454
|
),
|
|
4453
4455
|
/* @__PURE__ */ c(
|
|
4454
|
-
|
|
4456
|
+
j.div,
|
|
4455
4457
|
{
|
|
4456
4458
|
"data-radix-scroll-area-viewport": "",
|
|
4457
4459
|
...s,
|
|
@@ -4478,19 +4480,19 @@ var ko = "ScrollAreaViewport", So = m.forwardRef(
|
|
|
4478
4480
|
] });
|
|
4479
4481
|
}
|
|
4480
4482
|
);
|
|
4481
|
-
|
|
4482
|
-
var X = "ScrollAreaScrollbar",
|
|
4483
|
+
Co.displayName = So;
|
|
4484
|
+
var X = "ScrollAreaScrollbar", Eo = p.forwardRef(
|
|
4483
4485
|
(e, t) => {
|
|
4484
4486
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4485
|
-
return
|
|
4487
|
+
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4486
4488
|
i ? s(!1) : a(!1);
|
|
4487
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(
|
|
4489
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(No, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
|
|
4488
4490
|
}
|
|
4489
4491
|
);
|
|
4490
|
-
|
|
4491
|
-
var
|
|
4492
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] =
|
|
4493
|
-
return
|
|
4492
|
+
Eo.displayName = X;
|
|
4493
|
+
var Vs = p.forwardRef((e, t) => {
|
|
4494
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
|
|
4495
|
+
return p.useEffect(() => {
|
|
4494
4496
|
const i = n.scrollArea;
|
|
4495
4497
|
let l = 0;
|
|
4496
4498
|
if (i) {
|
|
@@ -4511,8 +4513,8 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4511
4513
|
ref: t
|
|
4512
4514
|
}
|
|
4513
4515
|
) });
|
|
4514
|
-
}),
|
|
4515
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] =
|
|
4516
|
+
}), js = p.forwardRef((e, t) => {
|
|
4517
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Ws("hidden", {
|
|
4516
4518
|
hidden: {
|
|
4517
4519
|
SCROLL: "scrolling"
|
|
4518
4520
|
},
|
|
@@ -4530,20 +4532,20 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4530
4532
|
POINTER_ENTER: "interacting"
|
|
4531
4533
|
}
|
|
4532
4534
|
});
|
|
4533
|
-
return
|
|
4535
|
+
return p.useEffect(() => {
|
|
4534
4536
|
if (i === "idle") {
|
|
4535
4537
|
const d = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
|
|
4536
4538
|
return () => window.clearTimeout(d);
|
|
4537
4539
|
}
|
|
4538
|
-
}, [i, n.scrollHideDelay, l]),
|
|
4540
|
+
}, [i, n.scrollHideDelay, l]), p.useEffect(() => {
|
|
4539
4541
|
const d = n.viewport, u = s ? "scrollLeft" : "scrollTop";
|
|
4540
4542
|
if (d) {
|
|
4541
4543
|
let f = d[u];
|
|
4542
|
-
const
|
|
4544
|
+
const m = () => {
|
|
4543
4545
|
const b = d[u];
|
|
4544
4546
|
f !== b && (l("SCROLL"), a()), f = b;
|
|
4545
4547
|
};
|
|
4546
|
-
return d.addEventListener("scroll",
|
|
4548
|
+
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
4547
4549
|
}
|
|
4548
4550
|
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(de, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
|
|
4549
4551
|
at,
|
|
@@ -4551,12 +4553,12 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4551
4553
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
4552
4554
|
...r,
|
|
4553
4555
|
ref: t,
|
|
4554
|
-
onPointerEnter:
|
|
4555
|
-
onPointerLeave:
|
|
4556
|
+
onPointerEnter: W(e.onPointerEnter, () => l("POINTER_ENTER")),
|
|
4557
|
+
onPointerLeave: W(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
4556
4558
|
}
|
|
4557
4559
|
) });
|
|
4558
|
-
}), No =
|
|
4559
|
-
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] =
|
|
4560
|
+
}), No = p.forwardRef((e, t) => {
|
|
4561
|
+
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
|
|
4560
4562
|
if (o.viewport) {
|
|
4561
4563
|
const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
|
|
4562
4564
|
a(i ? d : u);
|
|
@@ -4570,66 +4572,66 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4570
4572
|
ref: t
|
|
4571
4573
|
}
|
|
4572
4574
|
) });
|
|
4573
|
-
}), at =
|
|
4574
|
-
const { orientation: o = "vertical", ...r } = e, n = q(X, e.__scopeScrollArea), s =
|
|
4575
|
+
}), at = p.forwardRef((e, t) => {
|
|
4576
|
+
const { orientation: o = "vertical", ...r } = e, n = q(X, e.__scopeScrollArea), s = p.useRef(null), a = p.useRef(0), [i, l] = p.useState({
|
|
4575
4577
|
content: 0,
|
|
4576
4578
|
viewport: 0,
|
|
4577
4579
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4578
|
-
}), d =
|
|
4580
|
+
}), d = Po(i.viewport, i.content), u = {
|
|
4579
4581
|
...r,
|
|
4580
4582
|
sizes: i,
|
|
4581
4583
|
onSizesChange: l,
|
|
4582
4584
|
hasThumb: d > 0 && d < 1,
|
|
4583
|
-
onThumbChange: (
|
|
4585
|
+
onThumbChange: (m) => s.current = m,
|
|
4584
4586
|
onThumbPointerUp: () => a.current = 0,
|
|
4585
|
-
onThumbPointerDown: (
|
|
4587
|
+
onThumbPointerDown: (m) => a.current = m
|
|
4586
4588
|
};
|
|
4587
|
-
function f(
|
|
4588
|
-
return
|
|
4589
|
+
function f(m, b) {
|
|
4590
|
+
return Zs(m, a.current, i, b);
|
|
4589
4591
|
}
|
|
4590
4592
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4591
|
-
|
|
4593
|
+
Bs,
|
|
4592
4594
|
{
|
|
4593
4595
|
...u,
|
|
4594
4596
|
ref: t,
|
|
4595
4597
|
onThumbPositionChange: () => {
|
|
4596
4598
|
if (n.viewport && s.current) {
|
|
4597
|
-
const
|
|
4599
|
+
const m = n.viewport.scrollLeft, b = At(m, i, n.dir);
|
|
4598
4600
|
s.current.style.transform = `translate3d(${b}px, 0, 0)`;
|
|
4599
4601
|
}
|
|
4600
4602
|
},
|
|
4601
|
-
onWheelScroll: (
|
|
4602
|
-
n.viewport && (n.viewport.scrollLeft =
|
|
4603
|
+
onWheelScroll: (m) => {
|
|
4604
|
+
n.viewport && (n.viewport.scrollLeft = m);
|
|
4603
4605
|
},
|
|
4604
|
-
onDragScroll: (
|
|
4605
|
-
n.viewport && (n.viewport.scrollLeft = f(
|
|
4606
|
+
onDragScroll: (m) => {
|
|
4607
|
+
n.viewport && (n.viewport.scrollLeft = f(m, n.dir));
|
|
4606
4608
|
}
|
|
4607
4609
|
}
|
|
4608
4610
|
) : o === "vertical" ? /* @__PURE__ */ c(
|
|
4609
|
-
|
|
4611
|
+
Gs,
|
|
4610
4612
|
{
|
|
4611
4613
|
...u,
|
|
4612
4614
|
ref: t,
|
|
4613
4615
|
onThumbPositionChange: () => {
|
|
4614
4616
|
if (n.viewport && s.current) {
|
|
4615
|
-
const
|
|
4617
|
+
const m = n.viewport.scrollTop, b = At(m, i);
|
|
4616
4618
|
s.current.style.transform = `translate3d(0, ${b}px, 0)`;
|
|
4617
4619
|
}
|
|
4618
4620
|
},
|
|
4619
|
-
onWheelScroll: (
|
|
4620
|
-
n.viewport && (n.viewport.scrollTop =
|
|
4621
|
+
onWheelScroll: (m) => {
|
|
4622
|
+
n.viewport && (n.viewport.scrollTop = m);
|
|
4621
4623
|
},
|
|
4622
|
-
onDragScroll: (
|
|
4623
|
-
n.viewport && (n.viewport.scrollTop = f(
|
|
4624
|
+
onDragScroll: (m) => {
|
|
4625
|
+
n.viewport && (n.viewport.scrollTop = f(m));
|
|
4624
4626
|
}
|
|
4625
4627
|
}
|
|
4626
4628
|
) : null;
|
|
4627
|
-
}),
|
|
4628
|
-
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] =
|
|
4629
|
-
return
|
|
4629
|
+
}), Bs = p.forwardRef((e, t) => {
|
|
4630
|
+
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarXChange);
|
|
4631
|
+
return p.useEffect(() => {
|
|
4630
4632
|
l.current && i(getComputedStyle(l.current));
|
|
4631
4633
|
}, [l]), /* @__PURE__ */ c(
|
|
4632
|
-
|
|
4634
|
+
Ro,
|
|
4633
4635
|
{
|
|
4634
4636
|
"data-orientation": "horizontal",
|
|
4635
4637
|
...n,
|
|
@@ -4646,8 +4648,8 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4646
4648
|
onDragScroll: (u) => e.onDragScroll(u.x),
|
|
4647
4649
|
onWheelScroll: (u, f) => {
|
|
4648
4650
|
if (s.viewport) {
|
|
4649
|
-
const
|
|
4650
|
-
e.onWheelScroll(
|
|
4651
|
+
const m = s.viewport.scrollLeft + u.deltaX;
|
|
4652
|
+
e.onWheelScroll(m), To(m, f) && u.preventDefault();
|
|
4651
4653
|
}
|
|
4652
4654
|
},
|
|
4653
4655
|
onResize: () => {
|
|
@@ -4663,12 +4665,12 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4663
4665
|
}
|
|
4664
4666
|
}
|
|
4665
4667
|
);
|
|
4666
|
-
}),
|
|
4667
|
-
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] =
|
|
4668
|
-
return
|
|
4668
|
+
}), Gs = p.forwardRef((e, t) => {
|
|
4669
|
+
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarYChange);
|
|
4670
|
+
return p.useEffect(() => {
|
|
4669
4671
|
l.current && i(getComputedStyle(l.current));
|
|
4670
4672
|
}, [l]), /* @__PURE__ */ c(
|
|
4671
|
-
|
|
4673
|
+
Ro,
|
|
4672
4674
|
{
|
|
4673
4675
|
"data-orientation": "vertical",
|
|
4674
4676
|
...n,
|
|
@@ -4686,8 +4688,8 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4686
4688
|
onDragScroll: (u) => e.onDragScroll(u.y),
|
|
4687
4689
|
onWheelScroll: (u, f) => {
|
|
4688
4690
|
if (s.viewport) {
|
|
4689
|
-
const
|
|
4690
|
-
e.onWheelScroll(
|
|
4691
|
+
const m = s.viewport.scrollTop + u.deltaY;
|
|
4692
|
+
e.onWheelScroll(m), To(m, f) && u.preventDefault();
|
|
4691
4693
|
}
|
|
4692
4694
|
},
|
|
4693
4695
|
onResize: () => {
|
|
@@ -4703,7 +4705,7 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4703
4705
|
}
|
|
4704
4706
|
}
|
|
4705
4707
|
);
|
|
4706
|
-
}), [
|
|
4708
|
+
}), [qs, Ao] = yo(X), Ro = p.forwardRef((e, t) => {
|
|
4707
4709
|
const {
|
|
4708
4710
|
__scopeScrollArea: o,
|
|
4709
4711
|
sizes: r,
|
|
@@ -4715,41 +4717,41 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4715
4717
|
onDragScroll: d,
|
|
4716
4718
|
onWheelScroll: u,
|
|
4717
4719
|
onResize: f,
|
|
4718
|
-
...
|
|
4719
|
-
} = e, b = q(X, o), [S,
|
|
4720
|
+
...m
|
|
4721
|
+
} = e, b = q(X, o), [S, w] = p.useState(null), h = Y(t, (k) => w(k)), y = p.useRef(null), R = p.useRef(""), C = b.viewport, A = r.content - r.viewport, P = J(u), E = J(l), _ = Le(f, 10);
|
|
4720
4722
|
function g(k) {
|
|
4721
4723
|
if (y.current) {
|
|
4722
4724
|
const M = k.clientX - y.current.left, O = k.clientY - y.current.top;
|
|
4723
4725
|
d({ x: M, y: O });
|
|
4724
4726
|
}
|
|
4725
4727
|
}
|
|
4726
|
-
return
|
|
4728
|
+
return p.useEffect(() => {
|
|
4727
4729
|
const k = (M) => {
|
|
4728
4730
|
const O = M.target;
|
|
4729
4731
|
(S == null ? void 0 : S.contains(O)) && P(M, A);
|
|
4730
4732
|
};
|
|
4731
4733
|
return document.addEventListener("wheel", k, { passive: !1 }), () => document.removeEventListener("wheel", k, { passive: !1 });
|
|
4732
|
-
}, [C, S, A, P]),
|
|
4733
|
-
|
|
4734
|
+
}, [C, S, A, P]), p.useEffect(E, [r, E]), ce(S, _), ce(b.content, _), /* @__PURE__ */ c(
|
|
4735
|
+
qs,
|
|
4734
4736
|
{
|
|
4735
4737
|
scope: o,
|
|
4736
4738
|
scrollbar: S,
|
|
4737
4739
|
hasThumb: n,
|
|
4738
4740
|
onThumbChange: J(s),
|
|
4739
4741
|
onThumbPointerUp: J(a),
|
|
4740
|
-
onThumbPositionChange:
|
|
4742
|
+
onThumbPositionChange: E,
|
|
4741
4743
|
onThumbPointerDown: J(i),
|
|
4742
4744
|
children: /* @__PURE__ */ c(
|
|
4743
|
-
|
|
4745
|
+
j.div,
|
|
4744
4746
|
{
|
|
4745
|
-
...
|
|
4747
|
+
...m,
|
|
4746
4748
|
ref: h,
|
|
4747
|
-
style: { position: "absolute", ...
|
|
4748
|
-
onPointerDown:
|
|
4749
|
+
style: { position: "absolute", ...m.style },
|
|
4750
|
+
onPointerDown: W(e.onPointerDown, (k) => {
|
|
4749
4751
|
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));
|
|
4750
4752
|
}),
|
|
4751
|
-
onPointerMove:
|
|
4752
|
-
onPointerUp:
|
|
4753
|
+
onPointerMove: W(e.onPointerMove, g),
|
|
4754
|
+
onPointerUp: W(e.onPointerUp, (k) => {
|
|
4753
4755
|
const M = k.target;
|
|
4754
4756
|
M.hasPointerCapture(k.pointerId) && M.releasePointerCapture(k.pointerId), document.body.style.webkitUserSelect = R.current, b.viewport && (b.viewport.style.scrollBehavior = ""), y.current = null;
|
|
4755
4757
|
})
|
|
@@ -4757,32 +4759,32 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4757
4759
|
)
|
|
4758
4760
|
}
|
|
4759
4761
|
);
|
|
4760
|
-
}), ze = "ScrollAreaThumb",
|
|
4762
|
+
}), ze = "ScrollAreaThumb", _o = p.forwardRef(
|
|
4761
4763
|
(e, t) => {
|
|
4762
|
-
const { forceMount: o, ...r } = e, n =
|
|
4763
|
-
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(
|
|
4764
|
+
const { forceMount: o, ...r } = e, n = Ao(ze, e.__scopeScrollArea);
|
|
4765
|
+
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
|
|
4764
4766
|
}
|
|
4765
|
-
),
|
|
4767
|
+
), Ys = p.forwardRef(
|
|
4766
4768
|
(e, t) => {
|
|
4767
|
-
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a =
|
|
4769
|
+
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ao(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4768
4770
|
t,
|
|
4769
4771
|
(f) => a.onThumbChange(f)
|
|
4770
|
-
), d =
|
|
4772
|
+
), d = p.useRef(void 0), u = Le(() => {
|
|
4771
4773
|
d.current && (d.current(), d.current = void 0);
|
|
4772
4774
|
}, 100);
|
|
4773
|
-
return
|
|
4775
|
+
return p.useEffect(() => {
|
|
4774
4776
|
const f = s.viewport;
|
|
4775
4777
|
if (f) {
|
|
4776
|
-
const
|
|
4778
|
+
const m = () => {
|
|
4777
4779
|
if (u(), !d.current) {
|
|
4778
4780
|
const b = Ks(f, i);
|
|
4779
4781
|
d.current = b, i();
|
|
4780
4782
|
}
|
|
4781
4783
|
};
|
|
4782
|
-
return i(), f.addEventListener("scroll",
|
|
4784
|
+
return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
|
|
4783
4785
|
}
|
|
4784
4786
|
}, [s.viewport, u, i]), /* @__PURE__ */ c(
|
|
4785
|
-
|
|
4787
|
+
j.div,
|
|
4786
4788
|
{
|
|
4787
4789
|
"data-state": a.hasThumb ? "visible" : "hidden",
|
|
4788
4790
|
...n,
|
|
@@ -4792,25 +4794,25 @@ var Hs = m.forwardRef((e, t) => {
|
|
|
4792
4794
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
4793
4795
|
...r
|
|
4794
4796
|
},
|
|
4795
|
-
onPointerDownCapture:
|
|
4796
|
-
const b = f.target.getBoundingClientRect(), S = f.clientX - b.left,
|
|
4797
|
-
a.onThumbPointerDown({ x: S, y:
|
|
4797
|
+
onPointerDownCapture: W(e.onPointerDownCapture, (f) => {
|
|
4798
|
+
const b = f.target.getBoundingClientRect(), S = f.clientX - b.left, w = f.clientY - b.top;
|
|
4799
|
+
a.onThumbPointerDown({ x: S, y: w });
|
|
4798
4800
|
}),
|
|
4799
|
-
onPointerUp:
|
|
4801
|
+
onPointerUp: W(e.onPointerUp, a.onThumbPointerUp)
|
|
4800
4802
|
}
|
|
4801
4803
|
);
|
|
4802
4804
|
}
|
|
4803
4805
|
);
|
|
4804
|
-
|
|
4805
|
-
var it = "ScrollAreaCorner",
|
|
4806
|
+
_o.displayName = ze;
|
|
4807
|
+
var it = "ScrollAreaCorner", Io = p.forwardRef(
|
|
4806
4808
|
(e, t) => {
|
|
4807
4809
|
const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4808
|
-
return o.type !== "scroll" && r ? /* @__PURE__ */ c(
|
|
4810
|
+
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
|
|
4809
4811
|
}
|
|
4810
4812
|
);
|
|
4811
|
-
|
|
4812
|
-
var
|
|
4813
|
-
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] =
|
|
4813
|
+
Io.displayName = it;
|
|
4814
|
+
var Xs = p.forwardRef((e, t) => {
|
|
4815
|
+
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
|
|
4814
4816
|
return ce(n.scrollbarX, () => {
|
|
4815
4817
|
var f;
|
|
4816
4818
|
const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
@@ -4820,7 +4822,7 @@ var Ys = m.forwardRef((e, t) => {
|
|
|
4820
4822
|
const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
4821
4823
|
n.onCornerWidthChange(u), a(u);
|
|
4822
4824
|
}), d ? /* @__PURE__ */ c(
|
|
4823
|
-
|
|
4825
|
+
j.div,
|
|
4824
4826
|
{
|
|
4825
4827
|
...r,
|
|
4826
4828
|
ref: t,
|
|
@@ -4839,30 +4841,30 @@ var Ys = m.forwardRef((e, t) => {
|
|
|
4839
4841
|
function Te(e) {
|
|
4840
4842
|
return e ? parseInt(e, 10) : 0;
|
|
4841
4843
|
}
|
|
4842
|
-
function
|
|
4844
|
+
function Po(e, t) {
|
|
4843
4845
|
const o = e / t;
|
|
4844
4846
|
return isNaN(o) ? 0 : o;
|
|
4845
4847
|
}
|
|
4846
4848
|
function Me(e) {
|
|
4847
|
-
const t =
|
|
4849
|
+
const t = Po(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4848
4850
|
return Math.max(r, 18);
|
|
4849
4851
|
}
|
|
4850
|
-
function
|
|
4852
|
+
function Zs(e, t, o, r = "ltr") {
|
|
4851
4853
|
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];
|
|
4852
|
-
return
|
|
4854
|
+
return zo([l, d], f)(e);
|
|
4853
4855
|
}
|
|
4854
4856
|
function At(e, t, o = "ltr") {
|
|
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 =
|
|
4856
|
-
return
|
|
4857
|
+
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Us(e, l);
|
|
4858
|
+
return zo([0, a], [0, i])(d);
|
|
4857
4859
|
}
|
|
4858
|
-
function
|
|
4860
|
+
function zo(e, t) {
|
|
4859
4861
|
return (o) => {
|
|
4860
4862
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
4861
4863
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
4862
4864
|
return t[0] + r * (o - e[0]);
|
|
4863
4865
|
};
|
|
4864
4866
|
}
|
|
4865
|
-
function
|
|
4867
|
+
function To(e, t) {
|
|
4866
4868
|
return e > 0 && e < t;
|
|
4867
4869
|
}
|
|
4868
4870
|
var Ks = (e, t = () => {
|
|
@@ -4874,8 +4876,8 @@ var Ks = (e, t = () => {
|
|
|
4874
4876
|
})(), () => window.cancelAnimationFrame(r);
|
|
4875
4877
|
};
|
|
4876
4878
|
function Le(e, t) {
|
|
4877
|
-
const o = J(e), r =
|
|
4878
|
-
return
|
|
4879
|
+
const o = J(e), r = p.useRef(0);
|
|
4880
|
+
return p.useEffect(() => () => window.clearTimeout(r.current), []), p.useCallback(() => {
|
|
4879
4881
|
window.clearTimeout(r.current), r.current = window.setTimeout(o, t);
|
|
4880
4882
|
}, [o, t]);
|
|
4881
4883
|
}
|
|
@@ -4893,10 +4895,10 @@ function ce(e, t) {
|
|
|
4893
4895
|
}
|
|
4894
4896
|
}, [e, o]);
|
|
4895
4897
|
}
|
|
4896
|
-
var
|
|
4897
|
-
const { decorative: o, orientation: r = Rt, ...n } = e, s =
|
|
4898
|
+
var Js = ko, Qs = Co, ea = Io, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Mo = p.forwardRef((e, t) => {
|
|
4899
|
+
const { decorative: o, orientation: r = Rt, ...n } = e, s = ra(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4898
4900
|
return /* @__PURE__ */ c(
|
|
4899
|
-
|
|
4901
|
+
j.div,
|
|
4900
4902
|
{
|
|
4901
4903
|
"data-orientation": s,
|
|
4902
4904
|
...i,
|
|
@@ -4905,13 +4907,13 @@ var Zs = yo, Js = So, Qs = _o, ea = "Separator", Rt = "horizontal", ta = ["horiz
|
|
|
4905
4907
|
}
|
|
4906
4908
|
);
|
|
4907
4909
|
});
|
|
4908
|
-
|
|
4909
|
-
function
|
|
4910
|
-
return
|
|
4910
|
+
Mo.displayName = ta;
|
|
4911
|
+
function ra(e) {
|
|
4912
|
+
return oa.includes(e);
|
|
4911
4913
|
}
|
|
4912
|
-
var
|
|
4913
|
-
|
|
4914
|
-
]),
|
|
4914
|
+
var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
4915
|
+
go
|
|
4916
|
+
]), Lo = go(), [aa, lt] = sa(Oe), Oo = p.forwardRef(
|
|
4915
4917
|
(e, t) => {
|
|
4916
4918
|
const {
|
|
4917
4919
|
__scopeTabs: o,
|
|
@@ -4922,24 +4924,24 @@ var ra = To, Oe = "Tabs", [na] = ge(Oe, [
|
|
|
4922
4924
|
dir: i,
|
|
4923
4925
|
activationMode: l = "automatic",
|
|
4924
4926
|
...d
|
|
4925
|
-
} = e, u = rt(i), [f,
|
|
4927
|
+
} = e, u = rt(i), [f, m] = ao({
|
|
4926
4928
|
prop: r,
|
|
4927
4929
|
onChange: n,
|
|
4928
4930
|
defaultProp: s ?? "",
|
|
4929
4931
|
caller: Oe
|
|
4930
4932
|
});
|
|
4931
4933
|
return /* @__PURE__ */ c(
|
|
4932
|
-
|
|
4934
|
+
aa,
|
|
4933
4935
|
{
|
|
4934
4936
|
scope: o,
|
|
4935
|
-
baseId:
|
|
4937
|
+
baseId: io(),
|
|
4936
4938
|
value: f,
|
|
4937
|
-
onValueChange:
|
|
4939
|
+
onValueChange: m,
|
|
4938
4940
|
orientation: a,
|
|
4939
4941
|
dir: u,
|
|
4940
4942
|
activationMode: l,
|
|
4941
4943
|
children: /* @__PURE__ */ c(
|
|
4942
|
-
|
|
4944
|
+
j.div,
|
|
4943
4945
|
{
|
|
4944
4946
|
dir: u,
|
|
4945
4947
|
"data-orientation": a,
|
|
@@ -4951,12 +4953,12 @@ var ra = To, Oe = "Tabs", [na] = ge(Oe, [
|
|
|
4951
4953
|
);
|
|
4952
4954
|
}
|
|
4953
4955
|
);
|
|
4954
|
-
|
|
4955
|
-
var
|
|
4956
|
+
Oo.displayName = Oe;
|
|
4957
|
+
var $o = "TabsList", Fo = p.forwardRef(
|
|
4956
4958
|
(e, t) => {
|
|
4957
|
-
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(
|
|
4959
|
+
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt($o, o), a = Lo(o);
|
|
4958
4960
|
return /* @__PURE__ */ c(
|
|
4959
|
-
|
|
4961
|
+
Fs,
|
|
4960
4962
|
{
|
|
4961
4963
|
asChild: !0,
|
|
4962
4964
|
...a,
|
|
@@ -4964,7 +4966,7 @@ var Oo = "TabsList", $o = m.forwardRef(
|
|
|
4964
4966
|
dir: s.dir,
|
|
4965
4967
|
loop: r,
|
|
4966
4968
|
children: /* @__PURE__ */ c(
|
|
4967
|
-
|
|
4969
|
+
j.div,
|
|
4968
4970
|
{
|
|
4969
4971
|
role: "tablist",
|
|
4970
4972
|
"aria-orientation": s.orientation,
|
|
@@ -4976,19 +4978,19 @@ var Oo = "TabsList", $o = m.forwardRef(
|
|
|
4976
4978
|
);
|
|
4977
4979
|
}
|
|
4978
4980
|
);
|
|
4979
|
-
|
|
4980
|
-
var
|
|
4981
|
+
Fo.displayName = $o;
|
|
4982
|
+
var Do = "TabsTrigger", Uo = p.forwardRef(
|
|
4981
4983
|
(e, t) => {
|
|
4982
|
-
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(
|
|
4984
|
+
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Do, o), i = Lo(o), l = Vo(a.baseId, r), d = jo(a.baseId, r), u = r === a.value;
|
|
4983
4985
|
return /* @__PURE__ */ c(
|
|
4984
|
-
|
|
4986
|
+
Ds,
|
|
4985
4987
|
{
|
|
4986
4988
|
asChild: !0,
|
|
4987
4989
|
...i,
|
|
4988
4990
|
focusable: !n,
|
|
4989
4991
|
active: u,
|
|
4990
4992
|
children: /* @__PURE__ */ c(
|
|
4991
|
-
|
|
4993
|
+
j.button,
|
|
4992
4994
|
{
|
|
4993
4995
|
type: "button",
|
|
4994
4996
|
role: "tab",
|
|
@@ -5000,13 +5002,13 @@ var Fo = "TabsTrigger", Do = m.forwardRef(
|
|
|
5000
5002
|
id: l,
|
|
5001
5003
|
...s,
|
|
5002
5004
|
ref: t,
|
|
5003
|
-
onMouseDown:
|
|
5005
|
+
onMouseDown: W(e.onMouseDown, (f) => {
|
|
5004
5006
|
!n && f.button === 0 && f.ctrlKey === !1 ? a.onValueChange(r) : f.preventDefault();
|
|
5005
5007
|
}),
|
|
5006
|
-
onKeyDown:
|
|
5008
|
+
onKeyDown: W(e.onKeyDown, (f) => {
|
|
5007
5009
|
[" ", "Enter"].includes(f.key) && a.onValueChange(r);
|
|
5008
5010
|
}),
|
|
5009
|
-
onFocus:
|
|
5011
|
+
onFocus: W(e.onFocus, () => {
|
|
5010
5012
|
const f = a.activationMode !== "manual";
|
|
5011
5013
|
!u && !n && f && a.onValueChange(r);
|
|
5012
5014
|
})
|
|
@@ -5016,21 +5018,21 @@ var Fo = "TabsTrigger", Do = m.forwardRef(
|
|
|
5016
5018
|
);
|
|
5017
5019
|
}
|
|
5018
5020
|
);
|
|
5019
|
-
|
|
5020
|
-
var
|
|
5021
|
+
Uo.displayName = Do;
|
|
5022
|
+
var Wo = "TabsContent", Ho = p.forwardRef(
|
|
5021
5023
|
(e, t) => {
|
|
5022
|
-
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(
|
|
5023
|
-
return
|
|
5024
|
-
const
|
|
5025
|
-
return () => cancelAnimationFrame(
|
|
5026
|
-
}, []), /* @__PURE__ */ c(de, { present: n || u, children: ({ present:
|
|
5027
|
-
|
|
5024
|
+
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Wo, o), l = Vo(i.baseId, r), d = jo(i.baseId, r), u = r === i.value, f = p.useRef(u);
|
|
5025
|
+
return p.useEffect(() => {
|
|
5026
|
+
const m = requestAnimationFrame(() => f.current = !1);
|
|
5027
|
+
return () => cancelAnimationFrame(m);
|
|
5028
|
+
}, []), /* @__PURE__ */ c(de, { present: n || u, children: ({ present: m }) => /* @__PURE__ */ c(
|
|
5029
|
+
j.div,
|
|
5028
5030
|
{
|
|
5029
5031
|
"data-state": u ? "active" : "inactive",
|
|
5030
5032
|
"data-orientation": i.orientation,
|
|
5031
5033
|
role: "tabpanel",
|
|
5032
5034
|
"aria-labelledby": l,
|
|
5033
|
-
hidden: !
|
|
5035
|
+
hidden: !m,
|
|
5034
5036
|
id: d,
|
|
5035
5037
|
tabIndex: 0,
|
|
5036
5038
|
...a,
|
|
@@ -5039,20 +5041,20 @@ var Uo = "TabsContent", Wo = m.forwardRef(
|
|
|
5039
5041
|
...e.style,
|
|
5040
5042
|
animationDuration: f.current ? "0s" : void 0
|
|
5041
5043
|
},
|
|
5042
|
-
children:
|
|
5044
|
+
children: m && s
|
|
5043
5045
|
}
|
|
5044
5046
|
) });
|
|
5045
5047
|
}
|
|
5046
5048
|
);
|
|
5047
|
-
|
|
5048
|
-
function
|
|
5049
|
+
Ho.displayName = Wo;
|
|
5050
|
+
function Vo(e, t) {
|
|
5049
5051
|
return `${e}-trigger-${t}`;
|
|
5050
5052
|
}
|
|
5051
|
-
function
|
|
5053
|
+
function jo(e, t) {
|
|
5052
5054
|
return `${e}-content-${t}`;
|
|
5053
5055
|
}
|
|
5054
|
-
var
|
|
5055
|
-
const
|
|
5056
|
+
var ia = Oo, la = Fo, ca = Uo, da = Ho;
|
|
5057
|
+
const ua = ot(
|
|
5056
5058
|
'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',
|
|
5057
5059
|
{
|
|
5058
5060
|
variants: {
|
|
@@ -5081,7 +5083,7 @@ const da = ot(
|
|
|
5081
5083
|
}
|
|
5082
5084
|
}
|
|
5083
5085
|
);
|
|
5084
|
-
function
|
|
5086
|
+
function Bo({
|
|
5085
5087
|
className: e,
|
|
5086
5088
|
variant: t = "default",
|
|
5087
5089
|
size: o = "default",
|
|
@@ -5089,17 +5091,17 @@ function jo({
|
|
|
5089
5091
|
...n
|
|
5090
5092
|
}) {
|
|
5091
5093
|
return /* @__PURE__ */ c(
|
|
5092
|
-
r ?
|
|
5094
|
+
r ? so : "button",
|
|
5093
5095
|
{
|
|
5094
5096
|
"data-slot": "button",
|
|
5095
5097
|
"data-variant": t,
|
|
5096
5098
|
"data-size": o,
|
|
5097
|
-
className: T(
|
|
5099
|
+
className: T(ua({ variant: t, size: o, className: e })),
|
|
5098
5100
|
...n
|
|
5099
5101
|
}
|
|
5100
5102
|
);
|
|
5101
5103
|
}
|
|
5102
|
-
const
|
|
5104
|
+
const fa = ot(
|
|
5103
5105
|
"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",
|
|
5104
5106
|
{
|
|
5105
5107
|
variants: {
|
|
@@ -5117,23 +5119,23 @@ const ua = ot(
|
|
|
5117
5119
|
}
|
|
5118
5120
|
}
|
|
5119
5121
|
);
|
|
5120
|
-
function
|
|
5122
|
+
function ma({
|
|
5121
5123
|
className: e,
|
|
5122
5124
|
variant: t = "default",
|
|
5123
5125
|
asChild: o = !1,
|
|
5124
5126
|
...r
|
|
5125
5127
|
}) {
|
|
5126
5128
|
return /* @__PURE__ */ c(
|
|
5127
|
-
o ?
|
|
5129
|
+
o ? so : "span",
|
|
5128
5130
|
{
|
|
5129
5131
|
"data-slot": "badge",
|
|
5130
5132
|
"data-variant": t,
|
|
5131
|
-
className: T(
|
|
5133
|
+
className: T(fa({ variant: t }), e),
|
|
5132
5134
|
...r
|
|
5133
5135
|
}
|
|
5134
5136
|
);
|
|
5135
5137
|
}
|
|
5136
|
-
function
|
|
5138
|
+
function pa({ className: e, type: t, ...o }) {
|
|
5137
5139
|
return /* @__PURE__ */ c(
|
|
5138
5140
|
"input",
|
|
5139
5141
|
{
|
|
@@ -5149,14 +5151,14 @@ function ma({ className: e, type: t, ...o }) {
|
|
|
5149
5151
|
}
|
|
5150
5152
|
);
|
|
5151
5153
|
}
|
|
5152
|
-
function
|
|
5154
|
+
function ha({
|
|
5153
5155
|
className: e,
|
|
5154
5156
|
orientation: t = "horizontal",
|
|
5155
5157
|
decorative: o = !0,
|
|
5156
5158
|
...r
|
|
5157
5159
|
}) {
|
|
5158
5160
|
return /* @__PURE__ */ c(
|
|
5159
|
-
|
|
5161
|
+
na,
|
|
5160
5162
|
{
|
|
5161
5163
|
"data-slot": "separator",
|
|
5162
5164
|
decorative: o,
|
|
@@ -5169,13 +5171,13 @@ function pa({
|
|
|
5169
5171
|
}
|
|
5170
5172
|
);
|
|
5171
5173
|
}
|
|
5172
|
-
function
|
|
5174
|
+
function ga({
|
|
5173
5175
|
className: e,
|
|
5174
5176
|
orientation: t = "horizontal",
|
|
5175
5177
|
...o
|
|
5176
5178
|
}) {
|
|
5177
5179
|
return /* @__PURE__ */ c(
|
|
5178
|
-
|
|
5180
|
+
ia,
|
|
5179
5181
|
{
|
|
5180
5182
|
"data-slot": "tabs",
|
|
5181
5183
|
"data-orientation": t,
|
|
@@ -5188,7 +5190,7 @@ function ha({
|
|
|
5188
5190
|
}
|
|
5189
5191
|
);
|
|
5190
5192
|
}
|
|
5191
|
-
const
|
|
5193
|
+
const ba = ot(
|
|
5192
5194
|
"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",
|
|
5193
5195
|
{
|
|
5194
5196
|
variants: {
|
|
@@ -5202,27 +5204,27 @@ const ga = ot(
|
|
|
5202
5204
|
}
|
|
5203
5205
|
}
|
|
5204
5206
|
);
|
|
5205
|
-
function
|
|
5207
|
+
function va({
|
|
5206
5208
|
className: e,
|
|
5207
5209
|
variant: t = "default",
|
|
5208
5210
|
...o
|
|
5209
5211
|
}) {
|
|
5210
5212
|
return /* @__PURE__ */ c(
|
|
5211
|
-
|
|
5213
|
+
la,
|
|
5212
5214
|
{
|
|
5213
5215
|
"data-slot": "tabs-list",
|
|
5214
5216
|
"data-variant": t,
|
|
5215
|
-
className: T(
|
|
5217
|
+
className: T(ba({ variant: t }), e),
|
|
5216
5218
|
...o
|
|
5217
5219
|
}
|
|
5218
5220
|
);
|
|
5219
5221
|
}
|
|
5220
|
-
function
|
|
5222
|
+
function xa({
|
|
5221
5223
|
className: e,
|
|
5222
5224
|
...t
|
|
5223
5225
|
}) {
|
|
5224
5226
|
return /* @__PURE__ */ c(
|
|
5225
|
-
|
|
5227
|
+
ca,
|
|
5226
5228
|
{
|
|
5227
5229
|
"data-slot": "tabs-trigger",
|
|
5228
5230
|
className: T(
|
|
@@ -5241,7 +5243,7 @@ function wa({
|
|
|
5241
5243
|
...t
|
|
5242
5244
|
}) {
|
|
5243
5245
|
return /* @__PURE__ */ c(
|
|
5244
|
-
|
|
5246
|
+
da,
|
|
5245
5247
|
{
|
|
5246
5248
|
"data-slot": "tabs-content",
|
|
5247
5249
|
className: T("flex-1 outline-none", e),
|
|
@@ -5249,13 +5251,13 @@ function wa({
|
|
|
5249
5251
|
}
|
|
5250
5252
|
);
|
|
5251
5253
|
}
|
|
5252
|
-
function
|
|
5254
|
+
function ya({
|
|
5253
5255
|
className: e,
|
|
5254
5256
|
orientation: t = "vertical",
|
|
5255
5257
|
...o
|
|
5256
5258
|
}) {
|
|
5257
5259
|
return /* @__PURE__ */ c(
|
|
5258
|
-
|
|
5260
|
+
Eo,
|
|
5259
5261
|
{
|
|
5260
5262
|
"data-slot": "scroll-area-scrollbar",
|
|
5261
5263
|
orientation: t,
|
|
@@ -5267,7 +5269,7 @@ function xa({
|
|
|
5267
5269
|
),
|
|
5268
5270
|
...o,
|
|
5269
5271
|
children: /* @__PURE__ */ c(
|
|
5270
|
-
|
|
5272
|
+
_o,
|
|
5271
5273
|
{
|
|
5272
5274
|
"data-slot": "scroll-area-thumb",
|
|
5273
5275
|
className: "bg-border relative flex-1 rounded-full"
|
|
@@ -5276,39 +5278,39 @@ function xa({
|
|
|
5276
5278
|
}
|
|
5277
5279
|
);
|
|
5278
5280
|
}
|
|
5279
|
-
function
|
|
5281
|
+
function ka({
|
|
5280
5282
|
className: e,
|
|
5281
5283
|
children: t,
|
|
5282
5284
|
...o
|
|
5283
5285
|
}) {
|
|
5284
5286
|
return /* @__PURE__ */ z(
|
|
5285
|
-
|
|
5287
|
+
Js,
|
|
5286
5288
|
{
|
|
5287
5289
|
"data-slot": "scroll-area",
|
|
5288
5290
|
className: T("relative", e),
|
|
5289
5291
|
...o,
|
|
5290
5292
|
children: [
|
|
5291
5293
|
/* @__PURE__ */ c(
|
|
5292
|
-
|
|
5294
|
+
Qs,
|
|
5293
5295
|
{
|
|
5294
5296
|
"data-slot": "scroll-area-viewport",
|
|
5295
5297
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
5296
5298
|
children: t
|
|
5297
5299
|
}
|
|
5298
5300
|
),
|
|
5299
|
-
/* @__PURE__ */ c(
|
|
5300
|
-
/* @__PURE__ */ c(
|
|
5301
|
+
/* @__PURE__ */ c(ya, {}),
|
|
5302
|
+
/* @__PURE__ */ c(ea, {})
|
|
5301
5303
|
]
|
|
5302
5304
|
}
|
|
5303
5305
|
);
|
|
5304
5306
|
}
|
|
5305
|
-
function
|
|
5307
|
+
function Ke({
|
|
5306
5308
|
className: e,
|
|
5307
5309
|
size: t = "default",
|
|
5308
5310
|
...o
|
|
5309
5311
|
}) {
|
|
5310
5312
|
return /* @__PURE__ */ c(
|
|
5311
|
-
|
|
5313
|
+
Es,
|
|
5312
5314
|
{
|
|
5313
5315
|
"data-slot": "avatar",
|
|
5314
5316
|
"data-size": t,
|
|
@@ -5338,7 +5340,7 @@ function Qe({
|
|
|
5338
5340
|
...t
|
|
5339
5341
|
}) {
|
|
5340
5342
|
return /* @__PURE__ */ c(
|
|
5341
|
-
|
|
5343
|
+
As,
|
|
5342
5344
|
{
|
|
5343
5345
|
"data-slot": "avatar-fallback",
|
|
5344
5346
|
className: T(
|
|
@@ -5349,32 +5351,32 @@ function Qe({
|
|
|
5349
5351
|
}
|
|
5350
5352
|
);
|
|
5351
5353
|
}
|
|
5352
|
-
const
|
|
5353
|
-
"arrow-left":
|
|
5354
|
-
calendar:
|
|
5355
|
-
"check-circle-2":
|
|
5356
|
-
"chevron-left":
|
|
5357
|
-
"chevron-right":
|
|
5358
|
-
clock:
|
|
5359
|
-
"credit-card":
|
|
5360
|
-
"external-link":
|
|
5361
|
-
"help-circle":
|
|
5362
|
-
info:
|
|
5363
|
-
"loader-2":
|
|
5354
|
+
const Go = {
|
|
5355
|
+
"arrow-left": xr,
|
|
5356
|
+
calendar: Sr,
|
|
5357
|
+
"check-circle-2": Ir,
|
|
5358
|
+
"chevron-left": Er,
|
|
5359
|
+
"chevron-right": Ft,
|
|
5360
|
+
clock: Or,
|
|
5361
|
+
"credit-card": Fr,
|
|
5362
|
+
"external-link": Ur,
|
|
5363
|
+
"help-circle": zr,
|
|
5364
|
+
info: Hr,
|
|
5365
|
+
"loader-2": Dt,
|
|
5364
5366
|
mail: Ye,
|
|
5365
|
-
"map-pin":
|
|
5366
|
-
"message-circle":
|
|
5367
|
-
"message-square":
|
|
5367
|
+
"map-pin": Gr,
|
|
5368
|
+
"message-circle": Yr,
|
|
5369
|
+
"message-square": Ut,
|
|
5368
5370
|
package: Kr,
|
|
5369
|
-
phone:
|
|
5370
|
-
search:
|
|
5371
|
-
"shopping-bag":
|
|
5372
|
-
sparkles:
|
|
5373
|
-
truck:
|
|
5374
|
-
user:
|
|
5375
|
-
"x-circle":
|
|
5376
|
-
"alert-circle":
|
|
5377
|
-
"book-open":
|
|
5371
|
+
phone: Qr,
|
|
5372
|
+
search: tn,
|
|
5373
|
+
"shopping-bag": rn,
|
|
5374
|
+
sparkles: sn,
|
|
5375
|
+
truck: ln,
|
|
5376
|
+
user: Wt,
|
|
5377
|
+
"x-circle": Mr,
|
|
5378
|
+
"alert-circle": Rr,
|
|
5379
|
+
"book-open": yr
|
|
5378
5380
|
}, _t = {
|
|
5379
5381
|
0: "gap-0",
|
|
5380
5382
|
1: "gap-1",
|
|
@@ -5386,15 +5388,15 @@ const Bo = {
|
|
|
5386
5388
|
8: "gap-8",
|
|
5387
5389
|
10: "gap-10",
|
|
5388
5390
|
12: "gap-12"
|
|
5389
|
-
},
|
|
5391
|
+
}, qo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5390
5392
|
me,
|
|
5391
5393
|
{
|
|
5392
5394
|
className: t,
|
|
5393
5395
|
onClick: o,
|
|
5394
5396
|
children: e
|
|
5395
5397
|
}
|
|
5396
|
-
),
|
|
5397
|
-
|
|
5398
|
+
), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(Qn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
|
|
5399
|
+
Bo,
|
|
5398
5400
|
{
|
|
5399
5401
|
className: t,
|
|
5400
5402
|
variant: r,
|
|
@@ -5404,30 +5406,30 @@ const Bo = {
|
|
|
5404
5406
|
title: a,
|
|
5405
5407
|
children: e
|
|
5406
5408
|
}
|
|
5407
|
-
),
|
|
5408
|
-
|
|
5409
|
+
), Aa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
|
|
5410
|
+
ma,
|
|
5409
5411
|
{
|
|
5410
5412
|
className: t,
|
|
5411
5413
|
variant: o,
|
|
5412
5414
|
children: e
|
|
5413
5415
|
}
|
|
5414
|
-
),
|
|
5415
|
-
|
|
5416
|
+
), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
|
|
5417
|
+
pa,
|
|
5416
5418
|
{
|
|
5417
5419
|
className: e,
|
|
5418
5420
|
onChange: t,
|
|
5419
5421
|
...o
|
|
5420
5422
|
}
|
|
5421
|
-
),
|
|
5423
|
+
), _a = ({ className: e }) => /* @__PURE__ */ c(ha, { className: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, value: "", children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ka, { className: t, children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Ke, { className: t, children: e }), Oa = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Da = ({ children: e, className: t, level: o }) => {
|
|
5422
5424
|
const r = `h${o || "2"}`;
|
|
5423
5425
|
return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
|
|
5424
|
-
},
|
|
5425
|
-
const n = o === "row" ? "flex-row" : "flex-col", s =
|
|
5426
|
+
}, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5427
|
+
const n = o === "row" ? "flex-row" : "flex-col", s = qo(r);
|
|
5426
5428
|
return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
|
|
5427
|
-
},
|
|
5428
|
-
const r =
|
|
5429
|
+
}, Wa = ({ children: e, className: t, gap: o }) => {
|
|
5430
|
+
const r = qo(o);
|
|
5429
5431
|
return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
|
|
5430
|
-
},
|
|
5432
|
+
}, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5431
5433
|
"a",
|
|
5432
5434
|
{
|
|
5433
5435
|
href: o,
|
|
@@ -5436,11 +5438,11 @@ const Bo = {
|
|
|
5436
5438
|
className: t,
|
|
5437
5439
|
children: e
|
|
5438
5440
|
}
|
|
5439
|
-
),
|
|
5441
|
+
), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
|
|
5440
5442
|
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,
|
|
5441
5443
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
5442
|
-
] }),
|
|
5443
|
-
const s = e, a = "size-5", i = s ?
|
|
5444
|
+
] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
|
|
5445
|
+
const s = e, a = "size-5", i = s ? Go[s] : null;
|
|
5444
5446
|
return /* @__PURE__ */ z(
|
|
5445
5447
|
"button",
|
|
5446
5448
|
{
|
|
@@ -5453,38 +5455,38 @@ const Bo = {
|
|
|
5453
5455
|
t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
5454
5456
|
o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
|
|
5455
5457
|
] }),
|
|
5456
|
-
/* @__PURE__ */ c(
|
|
5458
|
+
/* @__PURE__ */ c(Ft, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
5457
5459
|
]
|
|
5458
5460
|
}
|
|
5459
5461
|
);
|
|
5460
|
-
},
|
|
5461
|
-
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a =
|
|
5462
|
+
}, Ba = ({ name: e, size: t, className: o }) => {
|
|
5463
|
+
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = Go[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
5462
5464
|
return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
|
|
5463
|
-
},
|
|
5464
|
-
"ui-card":
|
|
5465
|
-
"ui-card-content":
|
|
5466
|
-
"ui-card-header":
|
|
5465
|
+
}, Ga = () => ({
|
|
5466
|
+
"ui-card": Sa,
|
|
5467
|
+
"ui-card-content": Ca,
|
|
5468
|
+
"ui-card-header": Ea,
|
|
5467
5469
|
"ui-button": Na,
|
|
5468
|
-
"ui-text":
|
|
5469
|
-
"ui-heading":
|
|
5470
|
-
"ui-badge":
|
|
5471
|
-
"ui-input":
|
|
5472
|
-
"ui-stack":
|
|
5473
|
-
"ui-inline":
|
|
5474
|
-
"ui-separator":
|
|
5475
|
-
"ui-tabs":
|
|
5476
|
-
"ui-tabs-list":
|
|
5477
|
-
"ui-tabs-trigger":
|
|
5478
|
-
"ui-tabs-content":
|
|
5479
|
-
"ui-scroll-area":
|
|
5480
|
-
"ui-avatar":
|
|
5481
|
-
"ui-avatar-image":
|
|
5482
|
-
"ui-avatar-fallback":
|
|
5483
|
-
"ui-icon":
|
|
5484
|
-
"ui-link":
|
|
5485
|
-
"ui-menu-item":
|
|
5486
|
-
"ui-menu":
|
|
5487
|
-
}), It = "/api/ecommerce",
|
|
5470
|
+
"ui-text": Fa,
|
|
5471
|
+
"ui-heading": Da,
|
|
5472
|
+
"ui-badge": Aa,
|
|
5473
|
+
"ui-input": Ra,
|
|
5474
|
+
"ui-stack": Ua,
|
|
5475
|
+
"ui-inline": Wa,
|
|
5476
|
+
"ui-separator": _a,
|
|
5477
|
+
"ui-tabs": Ia,
|
|
5478
|
+
"ui-tabs-list": Pa,
|
|
5479
|
+
"ui-tabs-trigger": za,
|
|
5480
|
+
"ui-tabs-content": Ta,
|
|
5481
|
+
"ui-scroll-area": Ma,
|
|
5482
|
+
"ui-avatar": La,
|
|
5483
|
+
"ui-avatar-image": Oa,
|
|
5484
|
+
"ui-avatar-fallback": $a,
|
|
5485
|
+
"ui-icon": Ba,
|
|
5486
|
+
"ui-link": Ha,
|
|
5487
|
+
"ui-menu-item": ja,
|
|
5488
|
+
"ui-menu": Va
|
|
5489
|
+
}), It = "/api/ecommerce", Yo = async (e, t) => {
|
|
5488
5490
|
const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
|
|
5489
5491
|
method: "POST",
|
|
5490
5492
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5493,23 +5495,41 @@ const Bo = {
|
|
|
5493
5495
|
if (!r.ok)
|
|
5494
5496
|
throw new Error(n.error || "API request failed");
|
|
5495
5497
|
return n.data;
|
|
5496
|
-
},
|
|
5497
|
-
|
|
5498
|
-
|
|
5498
|
+
}, qa = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
|
|
5499
|
+
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
5500
|
+
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
|
|
5501
|
+
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
|
|
5502
|
+
/* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
|
|
5503
|
+
] }), Pt = "stackable-dev-badge-styles", Ya = () => {
|
|
5504
|
+
if (typeof document > "u" || document.getElementById(Pt)) return;
|
|
5505
|
+
const e = document.createElement("style");
|
|
5506
|
+
e.id = Pt, e.textContent = `
|
|
5507
|
+
@keyframes stackable-logo-wiggle {
|
|
5508
|
+
0% { transform: rotate(0deg); }
|
|
5509
|
+
70% { transform: rotate(200deg); }
|
|
5510
|
+
85% { transform: rotate(175deg); }
|
|
5511
|
+
100% { transform: rotate(180deg); }
|
|
5512
|
+
}
|
|
5513
|
+
`, document.head.appendChild(e);
|
|
5514
|
+
}, Xa = ({ className: e = "", extensions: t = [] }) => {
|
|
5515
|
+
const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
|
|
5516
|
+
if (B(() => {
|
|
5517
|
+
Ya();
|
|
5518
|
+
}, []), B(() => {
|
|
5499
5519
|
if (typeof window > "u") return;
|
|
5500
|
-
const
|
|
5501
|
-
const
|
|
5502
|
-
|
|
5520
|
+
const u = () => {
|
|
5521
|
+
const m = Ot(window.location.search);
|
|
5522
|
+
r(m);
|
|
5503
5523
|
};
|
|
5504
|
-
|
|
5505
|
-
const
|
|
5506
|
-
return window.addEventListener("popstate",
|
|
5507
|
-
}, []),
|
|
5524
|
+
u();
|
|
5525
|
+
const f = () => u();
|
|
5526
|
+
return window.addEventListener("popstate", f), () => window.removeEventListener("popstate", f);
|
|
5527
|
+
}, []), o.length === 0)
|
|
5508
5528
|
return null;
|
|
5509
|
-
const
|
|
5510
|
-
if (typeof window > "u") return;
|
|
5511
|
-
const
|
|
5512
|
-
|
|
5529
|
+
const d = (u) => {
|
|
5530
|
+
if (u.stopPropagation(), typeof window > "u") return;
|
|
5531
|
+
const f = new URL(window.location.href);
|
|
5532
|
+
f.searchParams.delete("_stackable_dev"), window.location.href = f.toString();
|
|
5513
5533
|
};
|
|
5514
5534
|
return /* @__PURE__ */ z(
|
|
5515
5535
|
"div",
|
|
@@ -5518,56 +5538,154 @@ const Bo = {
|
|
|
5518
5538
|
style: {
|
|
5519
5539
|
position: "fixed",
|
|
5520
5540
|
bottom: "16px",
|
|
5521
|
-
|
|
5522
|
-
|
|
5541
|
+
left: "50%",
|
|
5542
|
+
transform: a ? "translate(-50%, -2px)" : "translate(-50%, 0)",
|
|
5543
|
+
zIndex: 2147483647,
|
|
5544
|
+
fontFamily: "system-ui, -apple-system, sans-serif",
|
|
5545
|
+
transition: "transform 0.15s ease",
|
|
5523
5546
|
display: "flex",
|
|
5524
|
-
|
|
5525
|
-
|
|
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"
|
|
5547
|
+
flexDirection: "column",
|
|
5548
|
+
alignItems: "center"
|
|
5534
5549
|
},
|
|
5550
|
+
onMouseEnter: () => i(!0),
|
|
5551
|
+
onMouseLeave: () => i(!1),
|
|
5535
5552
|
children: [
|
|
5536
|
-
/* @__PURE__ */ c(
|
|
5537
|
-
|
|
5538
|
-
"(",
|
|
5539
|
-
t.length,
|
|
5540
|
-
" extension",
|
|
5541
|
-
t.length > 1 ? "s" : "",
|
|
5542
|
-
")"
|
|
5543
|
-
] }),
|
|
5544
|
-
/* @__PURE__ */ c(
|
|
5545
|
-
"button",
|
|
5553
|
+
n && /* @__PURE__ */ c(
|
|
5554
|
+
"div",
|
|
5546
5555
|
{
|
|
5547
|
-
onClick: r,
|
|
5548
5556
|
style: {
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
borderRadius: "
|
|
5553
|
-
|
|
5554
|
-
padding: "
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
+
backgroundColor: "#fff",
|
|
5558
|
+
border: "1px solid #e5e7eb",
|
|
5559
|
+
borderBottom: "1px solid #eab308",
|
|
5560
|
+
borderRadius: "8px 8px 0 0",
|
|
5561
|
+
boxShadow: "0 -4px 16px -4px rgba(0,0,0,0.12), 0 -2px 6px -4px rgba(0,0,0,0.08)",
|
|
5562
|
+
padding: "8px 0",
|
|
5563
|
+
width: "420px",
|
|
5564
|
+
maxWidth: "90vw"
|
|
5557
5565
|
},
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5566
|
+
children: o.map((u, f) => {
|
|
5567
|
+
var m;
|
|
5568
|
+
return /* @__PURE__ */ z(
|
|
5569
|
+
"div",
|
|
5570
|
+
{
|
|
5571
|
+
style: {
|
|
5572
|
+
padding: "8px 12px",
|
|
5573
|
+
borderBottom: f < o.length - 1 ? "1px solid #f3f4f6" : "none"
|
|
5574
|
+
},
|
|
5575
|
+
children: [
|
|
5576
|
+
/* @__PURE__ */ c(
|
|
5577
|
+
"div",
|
|
5578
|
+
{
|
|
5579
|
+
style: {
|
|
5580
|
+
fontSize: "12px",
|
|
5581
|
+
fontWeight: 600,
|
|
5582
|
+
color: "#111",
|
|
5583
|
+
fontFamily: "ui-monospace, SFMono-Regular, monospace",
|
|
5584
|
+
whiteSpace: "nowrap",
|
|
5585
|
+
overflow: "hidden",
|
|
5586
|
+
textOverflow: "ellipsis"
|
|
5587
|
+
},
|
|
5588
|
+
children: ((m = t.find((b) => b.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
|
|
5589
|
+
}
|
|
5590
|
+
),
|
|
5591
|
+
/* @__PURE__ */ z(
|
|
5592
|
+
"div",
|
|
5593
|
+
{
|
|
5594
|
+
style: {
|
|
5595
|
+
fontSize: "11px",
|
|
5596
|
+
color: "#6b7280",
|
|
5597
|
+
fontFamily: "ui-monospace, SFMono-Regular, monospace",
|
|
5598
|
+
marginTop: "2px",
|
|
5599
|
+
whiteSpace: "nowrap",
|
|
5600
|
+
overflow: "hidden",
|
|
5601
|
+
textOverflow: "ellipsis"
|
|
5602
|
+
},
|
|
5603
|
+
title: u.bundleUrl,
|
|
5604
|
+
children: [
|
|
5605
|
+
"→ ",
|
|
5606
|
+
u.bundleUrl
|
|
5607
|
+
]
|
|
5608
|
+
}
|
|
5609
|
+
)
|
|
5610
|
+
]
|
|
5611
|
+
},
|
|
5612
|
+
u.extensionId
|
|
5613
|
+
);
|
|
5614
|
+
})
|
|
5615
|
+
}
|
|
5616
|
+
),
|
|
5617
|
+
/* @__PURE__ */ z(
|
|
5618
|
+
"div",
|
|
5619
|
+
{
|
|
5620
|
+
onClick: () => s(!n),
|
|
5621
|
+
style: {
|
|
5622
|
+
display: "flex",
|
|
5623
|
+
alignItems: "center",
|
|
5624
|
+
gap: "8px",
|
|
5625
|
+
backgroundColor: "#eab308",
|
|
5626
|
+
color: "#000",
|
|
5627
|
+
padding: "8px 12px",
|
|
5628
|
+
borderRadius: n ? "0 0 8px 8px" : "8px",
|
|
5629
|
+
boxShadow: a ? "0 12px 24px -4px rgba(0,0,0,0.18), 0 6px 10px -4px rgba(0,0,0,0.12)" : "0 8px 16px -4px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.08)",
|
|
5630
|
+
fontSize: "14px",
|
|
5631
|
+
fontWeight: 500,
|
|
5632
|
+
cursor: "pointer",
|
|
5633
|
+
userSelect: "none",
|
|
5634
|
+
transition: "box-shadow 0.15s ease, border-radius 0.1s ease"
|
|
5563
5635
|
},
|
|
5564
|
-
children:
|
|
5636
|
+
children: [
|
|
5637
|
+
/* @__PURE__ */ c(
|
|
5638
|
+
"span",
|
|
5639
|
+
{
|
|
5640
|
+
ref: l,
|
|
5641
|
+
style: {
|
|
5642
|
+
display: "inline-flex",
|
|
5643
|
+
animation: a && !n ? "stackable-logo-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
|
|
5644
|
+
},
|
|
5645
|
+
children: /* @__PURE__ */ c(qa, { className: "w-6 h-6" })
|
|
5646
|
+
}
|
|
5647
|
+
),
|
|
5648
|
+
/* @__PURE__ */ c("span", { children: "Dev Mode" }),
|
|
5649
|
+
/* @__PURE__ */ z("span", { style: { fontSize: "12px", opacity: 0.75 }, children: [
|
|
5650
|
+
"(",
|
|
5651
|
+
o.length,
|
|
5652
|
+
" extension",
|
|
5653
|
+
o.length > 1 ? "s" : "",
|
|
5654
|
+
")"
|
|
5655
|
+
] }),
|
|
5656
|
+
/* @__PURE__ */ c(
|
|
5657
|
+
"button",
|
|
5658
|
+
{
|
|
5659
|
+
onClick: d,
|
|
5660
|
+
style: {
|
|
5661
|
+
marginLeft: "4px",
|
|
5662
|
+
backgroundColor: "rgba(0, 0, 0, 0.15)",
|
|
5663
|
+
border: "none",
|
|
5664
|
+
borderRadius: "4px",
|
|
5665
|
+
cursor: "pointer",
|
|
5666
|
+
padding: "2px 8px",
|
|
5667
|
+
fontSize: "12px",
|
|
5668
|
+
fontWeight: 500,
|
|
5669
|
+
color: "inherit",
|
|
5670
|
+
fontFamily: "inherit",
|
|
5671
|
+
transition: "background-color 0.1s ease"
|
|
5672
|
+
},
|
|
5673
|
+
onMouseOver: (u) => {
|
|
5674
|
+
u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
|
|
5675
|
+
},
|
|
5676
|
+
onMouseOut: (u) => {
|
|
5677
|
+
u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
|
|
5678
|
+
},
|
|
5679
|
+
children: "Clear"
|
|
5680
|
+
}
|
|
5681
|
+
)
|
|
5682
|
+
]
|
|
5565
5683
|
}
|
|
5566
5684
|
)
|
|
5567
5685
|
]
|
|
5568
5686
|
}
|
|
5569
5687
|
);
|
|
5570
|
-
},
|
|
5688
|
+
}, Za = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, li = ({
|
|
5571
5689
|
instanceId: e,
|
|
5572
5690
|
apiBase: t,
|
|
5573
5691
|
hostBase: o,
|
|
@@ -5576,8 +5694,8 @@ const Bo = {
|
|
|
5576
5694
|
customerId: s,
|
|
5577
5695
|
customerEmail: a
|
|
5578
5696
|
}) => {
|
|
5579
|
-
const [i, l] =
|
|
5580
|
-
|
|
5697
|
+
const [i, l] = U([]), [d, u] = U(!1);
|
|
5698
|
+
B(() => {
|
|
5581
5699
|
(async () => {
|
|
5582
5700
|
const b = e;
|
|
5583
5701
|
try {
|
|
@@ -5589,12 +5707,12 @@ const Bo = {
|
|
|
5589
5707
|
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
|
|
5590
5708
|
return;
|
|
5591
5709
|
}
|
|
5592
|
-
const S = await fetch(
|
|
5710
|
+
const S = await fetch(Za(t, `/instances/${r}/${b}`));
|
|
5593
5711
|
if (!S.ok) {
|
|
5594
5712
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${b}`), l([]), u(!0);
|
|
5595
5713
|
return;
|
|
5596
5714
|
}
|
|
5597
|
-
const
|
|
5715
|
+
const w = await S.json(), h = Ot(typeof window < "u" ? window.location.search : ""), y = dr(w, h);
|
|
5598
5716
|
l(y);
|
|
5599
5717
|
} catch (S) {
|
|
5600
5718
|
console.error("Failed to load extensions:", S);
|
|
@@ -5603,23 +5721,23 @@ const Bo = {
|
|
|
5603
5721
|
}
|
|
5604
5722
|
})();
|
|
5605
5723
|
}, [e, r, t]);
|
|
5606
|
-
const f =
|
|
5724
|
+
const f = Tt(
|
|
5607
5725
|
() => ({
|
|
5608
|
-
"data.query": async (
|
|
5726
|
+
"data.query": async (m) => (
|
|
5609
5727
|
// TODO: verify payload
|
|
5610
5728
|
// TODO: encryption???
|
|
5611
|
-
|
|
5729
|
+
Yo(m, o)
|
|
5612
5730
|
),
|
|
5613
|
-
"actions.toast": async (
|
|
5614
|
-
if (console.log(`[Toast] ${
|
|
5615
|
-
const b = new CustomEvent("ext-toast", { detail:
|
|
5731
|
+
"actions.toast": async (m) => {
|
|
5732
|
+
if (console.log(`[Toast] ${m.type || "info"}: ${m.message}`), typeof window < "u") {
|
|
5733
|
+
const b = new CustomEvent("ext-toast", { detail: m });
|
|
5616
5734
|
window.dispatchEvent(b);
|
|
5617
5735
|
}
|
|
5618
5736
|
},
|
|
5619
|
-
"actions.invoke": async (
|
|
5620
|
-
if (
|
|
5621
|
-
return window.dispatchEvent(new CustomEvent("ext-new-conversation", { detail:
|
|
5622
|
-
throw new Error(`Unknown action: ${
|
|
5737
|
+
"actions.invoke": async (m) => {
|
|
5738
|
+
if (m.action === "newConversation")
|
|
5739
|
+
return window.dispatchEvent(new CustomEvent("ext-new-conversation", { detail: m })), { success: !0 };
|
|
5740
|
+
throw new Error(`Unknown action: ${m.action}`);
|
|
5623
5741
|
},
|
|
5624
5742
|
"context.read": async () => ({
|
|
5625
5743
|
customerId: s ?? "",
|
|
@@ -5629,29 +5747,29 @@ const Bo = {
|
|
|
5629
5747
|
[o, s, a]
|
|
5630
5748
|
);
|
|
5631
5749
|
return d ? /* @__PURE__ */ z(he, { children: [
|
|
5632
|
-
/* @__PURE__ */ c(
|
|
5633
|
-
/* @__PURE__ */ c(
|
|
5750
|
+
/* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
|
|
5751
|
+
/* @__PURE__ */ c(Xa, { extensions: i })
|
|
5634
5752
|
] }) : null;
|
|
5635
|
-
},
|
|
5636
|
-
|
|
5753
|
+
}, Ka = { dark: "dark", light: "widget-theme-light" }, Xo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ka[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 }) }) }), Zo = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5754
|
+
Bo,
|
|
5637
5755
|
{
|
|
5638
5756
|
className: "h-12 w-12 rounded-full",
|
|
5639
5757
|
size: "icon",
|
|
5640
5758
|
onClick: e,
|
|
5641
5759
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5642
5760
|
}
|
|
5643
|
-
) }),
|
|
5644
|
-
const [r, n] =
|
|
5761
|
+
) }), ci = ({ children: e, icon: t, theme: o }) => {
|
|
5762
|
+
const [r, n] = U(!1);
|
|
5645
5763
|
return /* @__PURE__ */ z(he, { children: [
|
|
5646
|
-
/* @__PURE__ */ c(
|
|
5764
|
+
/* @__PURE__ */ c(Zo, { onClick: () => {
|
|
5647
5765
|
n(!r);
|
|
5648
5766
|
}, icon: t }),
|
|
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(
|
|
5767
|
+
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(Xo, { theme: o, children: e }) })
|
|
5650
5768
|
] });
|
|
5651
|
-
},
|
|
5652
|
-
Body:
|
|
5653
|
-
Launcher:
|
|
5654
|
-
},
|
|
5769
|
+
}, di = {
|
|
5770
|
+
Body: Xo,
|
|
5771
|
+
Launcher: Zo
|
|
5772
|
+
}, Ja = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5655
5773
|
"a",
|
|
5656
5774
|
{
|
|
5657
5775
|
href: e,
|
|
@@ -5660,9 +5778,9 @@ const Bo = {
|
|
|
5660
5778
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5661
5779
|
children: t
|
|
5662
5780
|
}
|
|
5663
|
-
),
|
|
5664
|
-
const [o, r] =
|
|
5665
|
-
return
|
|
5781
|
+
), Qa = (e, t) => {
|
|
5782
|
+
const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
|
|
5783
|
+
return B(() => {
|
|
5666
5784
|
if (!e) {
|
|
5667
5785
|
r(null);
|
|
5668
5786
|
return;
|
|
@@ -5670,7 +5788,7 @@ const Bo = {
|
|
|
5670
5788
|
(async () => {
|
|
5671
5789
|
s(!0), i(null);
|
|
5672
5790
|
try {
|
|
5673
|
-
const d = await
|
|
5791
|
+
const d = await Yo({
|
|
5674
5792
|
action: "getCustomer",
|
|
5675
5793
|
customerId: e
|
|
5676
5794
|
}, t);
|
|
@@ -5682,16 +5800,16 @@ const Bo = {
|
|
|
5682
5800
|
}
|
|
5683
5801
|
})();
|
|
5684
5802
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5685
|
-
},
|
|
5803
|
+
}, ei = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5686
5804
|
var l, d;
|
|
5687
|
-
const { customer: n, loading: s, error: a } =
|
|
5805
|
+
const { customer: n, loading: s, error: a } = Qa(e, o);
|
|
5688
5806
|
if (s)
|
|
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(
|
|
5807
|
+
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(Dt, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5690
5808
|
if (a || !n) {
|
|
5691
|
-
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((
|
|
5809
|
+
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
5692
5810
|
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
5811
|
/* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
|
|
5694
|
-
/* @__PURE__ */ z(
|
|
5812
|
+
/* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5695
5813
|
/* @__PURE__ */ c(
|
|
5696
5814
|
Je,
|
|
5697
5815
|
{
|
|
@@ -5718,7 +5836,7 @@ const Bo = {
|
|
|
5718
5836
|
}
|
|
5719
5837
|
const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
5720
5838
|
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(
|
|
5839
|
+
/* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5722
5840
|
/* @__PURE__ */ c(
|
|
5723
5841
|
Je,
|
|
5724
5842
|
{
|
|
@@ -5741,7 +5859,7 @@ const Bo = {
|
|
|
5741
5859
|
] })
|
|
5742
5860
|
] }) }) });
|
|
5743
5861
|
}, Ko = (e, t) => {
|
|
5744
|
-
|
|
5862
|
+
B(() => {
|
|
5745
5863
|
const o = t.current;
|
|
5746
5864
|
if (!o) return;
|
|
5747
5865
|
let r = document.getElementById(e);
|
|
@@ -5754,9 +5872,9 @@ const Bo = {
|
|
|
5754
5872
|
n.disconnect(), r == null || r.remove();
|
|
5755
5873
|
};
|
|
5756
5874
|
}, [e, t]);
|
|
5757
|
-
},
|
|
5758
|
-
const t =
|
|
5759
|
-
return Ko("widget_conversations", t),
|
|
5875
|
+
}, ti = ({ customization: e }) => {
|
|
5876
|
+
const t = ae(null);
|
|
5877
|
+
return Ko("widget_conversations", t), B(() => {
|
|
5760
5878
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5761
5879
|
conversationList: e
|
|
5762
5880
|
});
|
|
@@ -5767,9 +5885,9 @@ const Bo = {
|
|
|
5767
5885
|
className: "h-full overflow-hidden"
|
|
5768
5886
|
}
|
|
5769
5887
|
);
|
|
5770
|
-
},
|
|
5771
|
-
const t =
|
|
5772
|
-
return Ko("widget_messages", t),
|
|
5888
|
+
}, oi = ({ customization: e }) => {
|
|
5889
|
+
const t = ae(null);
|
|
5890
|
+
return Ko("widget_messages", t), B(() => {
|
|
5773
5891
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5774
5892
|
messageLog: e
|
|
5775
5893
|
});
|
|
@@ -5780,7 +5898,7 @@ const Bo = {
|
|
|
5780
5898
|
className: "h-full overflow-hidden"
|
|
5781
5899
|
}
|
|
5782
5900
|
);
|
|
5783
|
-
}, Ge = 25, qe = 75,
|
|
5901
|
+
}, Ge = 25, qe = 75, ui = ({
|
|
5784
5902
|
header: e,
|
|
5785
5903
|
buttons: t,
|
|
5786
5904
|
hostBase: o,
|
|
@@ -5791,7 +5909,7 @@ const Bo = {
|
|
|
5791
5909
|
const a = Math.max(
|
|
5792
5910
|
Ge,
|
|
5793
5911
|
Math.min(qe, s)
|
|
5794
|
-
), [i, l] =
|
|
5912
|
+
), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [b, S] = U(!1), [w, h] = U(!1), y = ae(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
5795
5913
|
mode: "embedded",
|
|
5796
5914
|
conversationList: { targetElement: "#widget_conversations" },
|
|
5797
5915
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -5800,62 +5918,62 @@ const Bo = {
|
|
|
5800
5918
|
conversationList: { hideHeader: !0, hideNewConversationButton: !0 },
|
|
5801
5919
|
messageLog: { hideHeader: !0 }
|
|
5802
5920
|
}), !0), []);
|
|
5803
|
-
|
|
5921
|
+
B(() => {
|
|
5804
5922
|
if (R()) {
|
|
5805
5923
|
S(!0);
|
|
5806
5924
|
return;
|
|
5807
5925
|
}
|
|
5808
|
-
const
|
|
5809
|
-
R() && (S(!0), clearInterval(
|
|
5926
|
+
const E = setInterval(() => {
|
|
5927
|
+
R() && (S(!0), clearInterval(E));
|
|
5810
5928
|
}, 100), _ = setTimeout(() => {
|
|
5811
|
-
clearInterval(
|
|
5929
|
+
clearInterval(E), console.warn("Zendesk widget failed to load after 10 seconds");
|
|
5812
5930
|
}, 1e4);
|
|
5813
5931
|
return () => {
|
|
5814
|
-
clearInterval(
|
|
5932
|
+
clearInterval(E), clearTimeout(_);
|
|
5815
5933
|
};
|
|
5816
5934
|
}, [R]);
|
|
5817
|
-
const C = Re((
|
|
5818
|
-
const { detail: _ } =
|
|
5935
|
+
const C = Re((E) => {
|
|
5936
|
+
const { detail: _ } = E;
|
|
5819
5937
|
if (!window.zE || !_.payload || (_ == null ? void 0 : _.action) !== "newConversation") return !1;
|
|
5820
5938
|
window.zE("messenger:ui", "newConversation", _.payload);
|
|
5821
5939
|
}, []);
|
|
5822
|
-
|
|
5940
|
+
B(() => (window.addEventListener("ext-new-conversation", C), () => {
|
|
5823
5941
|
window.removeEventListener("ext-new-conversation", C);
|
|
5824
|
-
}), [C]),
|
|
5825
|
-
if (!
|
|
5826
|
-
const
|
|
5942
|
+
}), [C]), B(() => {
|
|
5943
|
+
if (!w) return;
|
|
5944
|
+
const E = (g) => {
|
|
5827
5945
|
if (!y.current) return;
|
|
5828
5946
|
const k = y.current.getBoundingClientRect();
|
|
5829
5947
|
if ((f ? k.width : k.height) === 0) return;
|
|
5830
|
-
const O = f ? (g.clientX - k.left) / k.width * 100 : (g.clientY - k.top) / k.height * 100,
|
|
5948
|
+
const O = f ? (g.clientX - k.left) / k.width * 100 : (g.clientY - k.top) / k.height * 100, Z = Math.max(
|
|
5831
5949
|
Ge,
|
|
5832
5950
|
Math.min(qe, O)
|
|
5833
5951
|
);
|
|
5834
|
-
u(
|
|
5952
|
+
u(Z);
|
|
5835
5953
|
}, _ = () => {
|
|
5836
5954
|
h(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5837
5955
|
};
|
|
5838
|
-
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove",
|
|
5839
|
-
window.removeEventListener("mousemove",
|
|
5956
|
+
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", _), window.addEventListener("blur", _), () => {
|
|
5957
|
+
window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", _), window.removeEventListener("blur", _), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5840
5958
|
};
|
|
5841
|
-
}, [
|
|
5959
|
+
}, [w, f]), B(() => {
|
|
5842
5960
|
if (!y.current) return;
|
|
5843
|
-
const
|
|
5844
|
-
const k = getComputedStyle(
|
|
5845
|
-
|
|
5961
|
+
const E = y.current, _ = () => {
|
|
5962
|
+
const k = getComputedStyle(E).flexDirection === "row";
|
|
5963
|
+
m(k);
|
|
5846
5964
|
};
|
|
5847
5965
|
_();
|
|
5848
5966
|
const g = new ResizeObserver(_);
|
|
5849
|
-
return g.observe(
|
|
5967
|
+
return g.observe(E), () => {
|
|
5850
5968
|
g.disconnect();
|
|
5851
5969
|
};
|
|
5852
5970
|
}, []);
|
|
5853
|
-
const A = Re((
|
|
5854
|
-
if (
|
|
5971
|
+
const A = Re((E) => {
|
|
5972
|
+
if (E.detail === 2) {
|
|
5855
5973
|
u(a);
|
|
5856
5974
|
return;
|
|
5857
5975
|
}
|
|
5858
|
-
|
|
5976
|
+
E.preventDefault(), h(!0);
|
|
5859
5977
|
}, [a]), P = { customerId: r, customerEmail: n };
|
|
5860
5978
|
return /* @__PURE__ */ z("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
5861
5979
|
/* @__PURE__ */ c("style", {
|
|
@@ -5886,7 +6004,7 @@ const Bo = {
|
|
|
5886
6004
|
i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5887
6005
|
),
|
|
5888
6006
|
title: "My Account",
|
|
5889
|
-
children: /* @__PURE__ */ c(
|
|
6007
|
+
children: /* @__PURE__ */ c(Wt, { className: "h-4 w-4" })
|
|
5890
6008
|
}
|
|
5891
6009
|
),
|
|
5892
6010
|
/* @__PURE__ */ c(
|
|
@@ -5899,7 +6017,7 @@ const Bo = {
|
|
|
5899
6017
|
i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5900
6018
|
),
|
|
5901
6019
|
title: "Conversations",
|
|
5902
|
-
children: /* @__PURE__ */ c(
|
|
6020
|
+
children: /* @__PURE__ */ c(Ut, { className: "h-4 w-4" })
|
|
5903
6021
|
}
|
|
5904
6022
|
)
|
|
5905
6023
|
] })
|
|
@@ -5907,7 +6025,7 @@ const Bo = {
|
|
|
5907
6025
|
] }),
|
|
5908
6026
|
/* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
5909
6027
|
/* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
5910
|
-
/* @__PURE__ */ c(
|
|
6028
|
+
/* @__PURE__ */ c(ei, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
5911
6029
|
Ce,
|
|
5912
6030
|
{
|
|
5913
6031
|
target: "slot.header",
|
|
@@ -5927,7 +6045,7 @@ const Bo = {
|
|
|
5927
6045
|
/* @__PURE__ */ c("div", { className: T(
|
|
5928
6046
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
5929
6047
|
i === "account" && "hidden"
|
|
5930
|
-
), children: /* @__PURE__ */ c(
|
|
6048
|
+
), children: /* @__PURE__ */ c(ti, {}) })
|
|
5931
6049
|
] })
|
|
5932
6050
|
]
|
|
5933
6051
|
}
|
|
@@ -5939,7 +6057,7 @@ const Bo = {
|
|
|
5939
6057
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
5940
6058
|
style: { flexBasis: `${100 - d}%` },
|
|
5941
6059
|
children: [
|
|
5942
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
6060
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(oi, {}) }),
|
|
5943
6061
|
/* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
5944
6062
|
/* @__PURE__ */ c(
|
|
5945
6063
|
Ce,
|
|
@@ -5949,7 +6067,7 @@ const Bo = {
|
|
|
5949
6067
|
className: "flex items-center gap-1",
|
|
5950
6068
|
fallback: /* @__PURE__ */ z(he, { children: [
|
|
5951
6069
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
5952
|
-
/* @__PURE__ */ c(
|
|
6070
|
+
/* @__PURE__ */ c(Ja, { href: "https://zendesk.com", children: "Zendesk" })
|
|
5953
6071
|
] })
|
|
5954
6072
|
}
|
|
5955
6073
|
),
|
|
@@ -5960,9 +6078,9 @@ const Bo = {
|
|
|
5960
6078
|
context: P,
|
|
5961
6079
|
className: "flex items-center gap-1",
|
|
5962
6080
|
separator: /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "/" }),
|
|
5963
|
-
render: ({ children:
|
|
6081
|
+
render: ({ children: E, index: _ }) => /* @__PURE__ */ z(he, { children: [
|
|
5964
6082
|
_ === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
|
|
5965
|
-
|
|
6083
|
+
E
|
|
5966
6084
|
] })
|
|
5967
6085
|
}
|
|
5968
6086
|
)
|
|
@@ -5991,13 +6109,13 @@ const Bo = {
|
|
|
5991
6109
|
className: T(
|
|
5992
6110
|
"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",
|
|
5993
6111
|
f ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
5994
|
-
|
|
6112
|
+
w ? "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"
|
|
5995
6113
|
)
|
|
5996
6114
|
}
|
|
5997
6115
|
)
|
|
5998
6116
|
}
|
|
5999
6117
|
),
|
|
6000
|
-
|
|
6118
|
+
w && /* @__PURE__ */ c(
|
|
6001
6119
|
"div",
|
|
6002
6120
|
{
|
|
6003
6121
|
className: T("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
|
|
@@ -6006,31 +6124,31 @@ const Bo = {
|
|
|
6006
6124
|
)
|
|
6007
6125
|
] })
|
|
6008
6126
|
] });
|
|
6009
|
-
},
|
|
6127
|
+
}, ri = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ni = (e, t = {}) => {
|
|
6010
6128
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
6011
6129
|
return Promise.resolve();
|
|
6012
|
-
const { autorender: o = !1, scriptId: r =
|
|
6130
|
+
const { autorender: o = !1, scriptId: r = ri } = t;
|
|
6013
6131
|
window.zEMessenger = { autorender: o };
|
|
6014
6132
|
const n = document.getElementById(r);
|
|
6015
6133
|
if (n) {
|
|
6016
|
-
if (n.getAttribute("src") ===
|
|
6134
|
+
if (n.getAttribute("src") === zt(e))
|
|
6017
6135
|
return Promise.resolve();
|
|
6018
6136
|
n.remove();
|
|
6019
6137
|
}
|
|
6020
6138
|
return new Promise((s, a) => {
|
|
6021
6139
|
const i = document.createElement("script");
|
|
6022
|
-
i.id = r, i.src =
|
|
6140
|
+
i.id = r, i.src = zt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
6023
6141
|
});
|
|
6024
|
-
},
|
|
6025
|
-
e.snippetKey &&
|
|
6142
|
+
}, fi = ({ config: e }) => (B(() => {
|
|
6143
|
+
e.snippetKey && ni(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
6026
6144
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
6027
6145
|
});
|
|
6028
6146
|
}, [e.autorender, e.snippetKey]), null);
|
|
6029
6147
|
export {
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6148
|
+
li as ExtensionSetup,
|
|
6149
|
+
di as Widget,
|
|
6150
|
+
ci as WidgetComponent,
|
|
6151
|
+
ui as ZendeskMessenger,
|
|
6152
|
+
fi as ZendeskScript,
|
|
6153
|
+
ni as loadZendeskSnippet
|
|
6036
6154
|
};
|