@stackable-labs/embeddables 1.9.1 → 1.10.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/dist/react.js +1024 -977
- package/dist/stackable-widget.external.js +15 -15
- package/dist/stackable-widget.js +24 -24
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as T, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import G, { createContext as Qo, useState as U, useRef as ae, useEffect as
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import G, { createContext as Qo, useState as U, useRef as ae, useEffect as V, useContext as er, useMemo as Mt, useCallback as _e, createElement as Re, forwardRef as Lt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const tr = () => {
|
|
6
6
|
try {
|
|
7
|
-
return "
|
|
7
|
+
return "a31e5c5b-1998-4bb6-8d2b-9e305d5739b3";
|
|
8
8
|
} catch {
|
|
9
9
|
return "dev";
|
|
10
10
|
}
|
|
@@ -18,10 +18,10 @@ const tr = () => {
|
|
|
18
18
|
} else {
|
|
19
19
|
let i = "";
|
|
20
20
|
try {
|
|
21
|
-
const
|
|
22
|
-
i = await (await fetch(`${e.bundleUrl}?_b=${
|
|
23
|
-
} catch (
|
|
24
|
-
console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`,
|
|
21
|
+
const d = tr();
|
|
22
|
+
i = await (await fetch(`${e.bundleUrl}?_b=${d}`)).text();
|
|
23
|
+
} catch (d) {
|
|
24
|
+
console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, d);
|
|
25
25
|
}
|
|
26
26
|
const l = `<!DOCTYPE html>
|
|
27
27
|
<html>
|
|
@@ -43,10 +43,10 @@ const tr = () => {
|
|
|
43
43
|
messageHandlers: /* @__PURE__ */ new Set()
|
|
44
44
|
}, a = (i) => {
|
|
45
45
|
const l = i.data;
|
|
46
|
-
!l || typeof l != "object" || !("type" in l) || ("extensionId" in l ? l.extensionId : void 0) !== e.id || (l.type === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((
|
|
46
|
+
!l || typeof l != "object" || !("type" in l) || ("extensionId" in l ? l.extensionId : void 0) !== e.id || (l.type === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((u) => u(l)));
|
|
47
47
|
};
|
|
48
48
|
return window.addEventListener("message", a), ce.set(e.id, s), s;
|
|
49
|
-
},
|
|
49
|
+
}, je = (e, t) => {
|
|
50
50
|
const o = ce.get(e);
|
|
51
51
|
if (!(o != null && o.iframe.contentWindow)) {
|
|
52
52
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
@@ -105,7 +105,7 @@ const tr = () => {
|
|
|
105
105
|
success: !1,
|
|
106
106
|
error: `Permission denied: '${i}' not granted for extension '${s}'`
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
je(s, l);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
try {
|
|
@@ -129,21 +129,21 @@ const tr = () => {
|
|
|
129
129
|
default:
|
|
130
130
|
throw new Error(`Unknown capability: ${n.capability}`);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const d = {
|
|
133
133
|
type: "capability-response",
|
|
134
134
|
id: n.id,
|
|
135
135
|
success: !0,
|
|
136
136
|
data: l
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
je(s, d);
|
|
139
139
|
} catch (l) {
|
|
140
|
-
const
|
|
140
|
+
const d = {
|
|
141
141
|
type: "capability-response",
|
|
142
142
|
id: n.id,
|
|
143
143
|
success: !1,
|
|
144
144
|
error: l instanceof Error ? l.message : "Unknown error"
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
je(s, d);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
return window.addEventListener("message", t), () => {
|
|
@@ -160,23 +160,23 @@ const tr = () => {
|
|
|
160
160
|
children: r
|
|
161
161
|
}) => {
|
|
162
162
|
const [n, s] = U(!1), a = ae(null), i = ae(null);
|
|
163
|
-
return
|
|
163
|
+
return V(() => {
|
|
164
164
|
if (!a.current) return;
|
|
165
165
|
let l = !1;
|
|
166
166
|
return (async () => {
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
167
|
+
const u = a.current;
|
|
168
|
+
if (u) {
|
|
169
169
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
170
170
|
for (const f of e)
|
|
171
|
-
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await or(f,
|
|
171
|
+
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await or(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
172
172
|
i.current = ar(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
173
173
|
}
|
|
174
174
|
})(), () => {
|
|
175
|
-
var
|
|
175
|
+
var u;
|
|
176
176
|
l = !0;
|
|
177
177
|
for (const f of e)
|
|
178
178
|
rr(f.id);
|
|
179
|
-
(
|
|
179
|
+
(u = i.current) == null || u.call(i);
|
|
180
180
|
};
|
|
181
181
|
}, [e, t]), /* @__PURE__ */ T(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
|
|
182
182
|
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
@@ -190,115 +190,115 @@ const tr = () => {
|
|
|
190
190
|
fallback: n = null,
|
|
191
191
|
render: s
|
|
192
192
|
}) => {
|
|
193
|
-
const { extensions: a, components: i, ready: l } = lr(), [
|
|
193
|
+
const { extensions: a, components: i, ready: l } = lr(), [d, u] = U({}), f = ae(""), p = Mt(
|
|
194
194
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
195
195
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
196
196
|
[a.map((h) => h.id).join(","), e]
|
|
197
|
-
),
|
|
198
|
-
(h,
|
|
199
|
-
var
|
|
197
|
+
), b = _e(
|
|
198
|
+
(h, x, C = 0) => {
|
|
199
|
+
var N, I, g;
|
|
200
200
|
if (h.type === "text")
|
|
201
201
|
return h.text || null;
|
|
202
202
|
if (!h.tag) return null;
|
|
203
203
|
if (h.tag === "__fragment")
|
|
204
|
-
return /* @__PURE__ */ c(G.Fragment, { children: (
|
|
204
|
+
return /* @__PURE__ */ c(G.Fragment, { children: (N = h.children) == null ? void 0 : N.map((E, M) => b(E, x, M)) }, C);
|
|
205
205
|
if (!cr(h.tag))
|
|
206
206
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
209
|
-
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (I = h.children) == null ? void 0 : I.map((
|
|
207
|
+
const w = i[h.tag];
|
|
208
|
+
if (!w)
|
|
209
|
+
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (I = h.children) == null ? void 0 : I.map((E, M) => b(E, x, M)) }, C);
|
|
210
210
|
const A = { ...h.attrs };
|
|
211
211
|
if (h.actionId) {
|
|
212
|
-
const
|
|
212
|
+
const E = h.actionId;
|
|
213
213
|
A.onClick = () => {
|
|
214
|
-
const M =
|
|
214
|
+
const M = x;
|
|
215
215
|
M == null || M.postMessage(
|
|
216
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
216
|
+
{ type: "action-invoke", surfaceId: e, actionId: E },
|
|
217
217
|
"*"
|
|
218
218
|
);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
if (A["data-onchange-id"]) {
|
|
222
|
-
const
|
|
222
|
+
const E = A["data-onchange-id"];
|
|
223
223
|
delete A["data-onchange-id"], A.onChange = (M) => {
|
|
224
|
-
const O =
|
|
224
|
+
const O = x;
|
|
225
225
|
O == null || O.postMessage(
|
|
226
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
226
|
+
{ type: "action-invoke", surfaceId: e, actionId: E, value: M.target.value },
|
|
227
227
|
"*"
|
|
228
228
|
);
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const P = (
|
|
232
|
-
return /* @__PURE__ */
|
|
231
|
+
const P = (g = h.children) == null ? void 0 : g.map((E, M) => b(E, x, M));
|
|
232
|
+
return /* @__PURE__ */ Re(w, { ...A, key: C }, P && P.length > 0 ? P : void 0);
|
|
233
233
|
},
|
|
234
234
|
[e, i]
|
|
235
235
|
);
|
|
236
|
-
if (
|
|
237
|
-
const h =
|
|
238
|
-
if (f.current !== h && (f.current = h,
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
if (!(!
|
|
242
|
-
const
|
|
243
|
-
return
|
|
236
|
+
if (V(() => {
|
|
237
|
+
const h = p.map((C) => C.id).join(",");
|
|
238
|
+
if (f.current !== h && (f.current = h, u({})), !l || p.length === 0) return;
|
|
239
|
+
const x = (C) => {
|
|
240
|
+
const w = C.data;
|
|
241
|
+
if (!(!w || typeof w != "object" || !p.some((P) => {
|
|
242
|
+
const N = le(P.id);
|
|
243
|
+
return N && C.source === N.iframe.contentWindow;
|
|
244
244
|
}))) {
|
|
245
|
-
if (
|
|
246
|
-
const P =
|
|
247
|
-
const
|
|
248
|
-
return
|
|
245
|
+
if (w.type === "surface-update" && w.surfaceId === e) {
|
|
246
|
+
const P = p.find((I) => {
|
|
247
|
+
const g = le(I.id);
|
|
248
|
+
return g && C.source === g.iframe.contentWindow;
|
|
249
249
|
});
|
|
250
250
|
if (!P) return;
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const N = b(w.tree, C.source ?? null);
|
|
252
|
+
u((I) => ({
|
|
253
253
|
...I,
|
|
254
|
-
[P.id]:
|
|
254
|
+
[P.id]: N
|
|
255
255
|
}));
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
w.type === "surface-ready" && w.surfaceId === e && t && p.forEach((P) => {
|
|
258
258
|
var I;
|
|
259
|
-
const
|
|
260
|
-
(I =
|
|
259
|
+
const N = le(P.id);
|
|
260
|
+
(I = N == null ? void 0 : N.iframe.contentWindow) == null || I.postMessage(
|
|
261
261
|
{ type: "context-update", surfaceId: e, context: t },
|
|
262
262
|
"*"
|
|
263
263
|
);
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
|
-
return window.addEventListener("message",
|
|
267
|
+
return window.addEventListener("message", x), p.forEach((C) => {
|
|
268
268
|
var A;
|
|
269
|
-
const
|
|
270
|
-
(A =
|
|
269
|
+
const w = le(C.id);
|
|
270
|
+
(A = w == null ? void 0 : w.iframe.contentWindow) == null || A.postMessage(
|
|
271
271
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
272
272
|
"*"
|
|
273
273
|
);
|
|
274
274
|
}), () => {
|
|
275
|
-
window.removeEventListener("message",
|
|
275
|
+
window.removeEventListener("message", x);
|
|
276
276
|
};
|
|
277
|
-
}, [l,
|
|
277
|
+
}, [l, p, e, t, b]), !l)
|
|
278
278
|
return null;
|
|
279
|
-
if (
|
|
279
|
+
if (p.length === 0)
|
|
280
280
|
return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
|
|
281
|
-
const
|
|
282
|
-
const
|
|
281
|
+
const S = p.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), v = S.length > 0 ? S.flatMap((h, x, C) => {
|
|
282
|
+
const w = s ? s({
|
|
283
283
|
extensionId: h.id,
|
|
284
284
|
children: h.children,
|
|
285
|
-
index:
|
|
286
|
-
total:
|
|
287
|
-
}) : /* @__PURE__ */ c(G.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(G.Fragment, { children:
|
|
288
|
-
if (
|
|
285
|
+
index: x,
|
|
286
|
+
total: C.length
|
|
287
|
+
}) : /* @__PURE__ */ c(G.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(G.Fragment, { children: w }, `extension:${h.id}`);
|
|
288
|
+
if (x === 0 || !r)
|
|
289
289
|
return [A];
|
|
290
|
-
const P =
|
|
291
|
-
index:
|
|
292
|
-
total:
|
|
290
|
+
const P = C[x - 1], N = typeof r == "function" ? r({
|
|
291
|
+
index: x,
|
|
292
|
+
total: C.length,
|
|
293
293
|
previousExtensionId: P.id,
|
|
294
294
|
extensionId: h.id
|
|
295
295
|
}) : r;
|
|
296
296
|
return [
|
|
297
|
-
/* @__PURE__ */ c(G.Fragment, { children:
|
|
297
|
+
/* @__PURE__ */ c(G.Fragment, { children: N }, `separator:${P.id}:${h.id}:${x}`),
|
|
298
298
|
A
|
|
299
299
|
];
|
|
300
300
|
}) : n;
|
|
301
|
-
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children:
|
|
301
|
+
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: v });
|
|
302
302
|
}, dr = (e) => {
|
|
303
303
|
try {
|
|
304
304
|
const { hostname: t } = new URL(e);
|
|
@@ -318,8 +318,8 @@ const tr = () => {
|
|
|
318
318
|
for (const a of s) {
|
|
319
319
|
const i = a.indexOf(":");
|
|
320
320
|
if (i === -1) continue;
|
|
321
|
-
const l = a.slice(0, i),
|
|
322
|
-
l &&
|
|
321
|
+
const l = a.slice(0, i), d = a.slice(i + 1);
|
|
322
|
+
l && d && dr(d) && r.push({ extensionId: l, bundleUrl: d });
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return r;
|
|
@@ -363,7 +363,7 @@ const mr = (e) => e.replace(
|
|
|
363
363
|
* This source code is licensed under the ISC license.
|
|
364
364
|
* See the LICENSE file in the root directory of this source tree.
|
|
365
365
|
*/
|
|
366
|
-
const
|
|
366
|
+
const ht = (e) => {
|
|
367
367
|
const t = mr(e);
|
|
368
368
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
369
369
|
};
|
|
@@ -412,7 +412,7 @@ const gr = Lt(
|
|
|
412
412
|
children: s,
|
|
413
413
|
iconNode: a,
|
|
414
414
|
...i
|
|
415
|
-
}, l) =>
|
|
415
|
+
}, l) => Re(
|
|
416
416
|
"svg",
|
|
417
417
|
{
|
|
418
418
|
ref: l,
|
|
@@ -426,7 +426,7 @@ const gr = Lt(
|
|
|
426
426
|
...i
|
|
427
427
|
},
|
|
428
428
|
[
|
|
429
|
-
...a.map(([
|
|
429
|
+
...a.map(([d, u]) => Re(d, u)),
|
|
430
430
|
...Array.isArray(s) ? s : [s]
|
|
431
431
|
]
|
|
432
432
|
)
|
|
@@ -439,18 +439,18 @@ const gr = Lt(
|
|
|
439
439
|
*/
|
|
440
440
|
const L = (e, t) => {
|
|
441
441
|
const o = Lt(
|
|
442
|
-
({ className: r, ...n }, s) =>
|
|
442
|
+
({ className: r, ...n }, s) => Re(gr, {
|
|
443
443
|
ref: s,
|
|
444
444
|
iconNode: t,
|
|
445
445
|
className: Ft(
|
|
446
|
-
`lucide-${fr(
|
|
446
|
+
`lucide-${fr(ht(e))}`,
|
|
447
447
|
`lucide-${e}`,
|
|
448
448
|
r
|
|
449
449
|
),
|
|
450
450
|
...n
|
|
451
451
|
})
|
|
452
452
|
);
|
|
453
|
-
return o.displayName =
|
|
453
|
+
return o.displayName = ht(e), o;
|
|
454
454
|
};
|
|
455
455
|
/**
|
|
456
456
|
* @license lucide-react v0.575.0 - ISC
|
|
@@ -600,11 +600,11 @@ const Ur = [
|
|
|
600
600
|
* This source code is licensed under the ISC license.
|
|
601
601
|
* See the LICENSE file in the root directory of this source tree.
|
|
602
602
|
*/
|
|
603
|
-
const
|
|
603
|
+
const jr = [
|
|
604
604
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
605
605
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
606
606
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
607
|
-
],
|
|
607
|
+
], Hr = L("info", jr);
|
|
608
608
|
/**
|
|
609
609
|
* @license lucide-react v0.575.0 - ISC
|
|
610
610
|
*
|
|
@@ -621,7 +621,7 @@ const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut =
|
|
|
621
621
|
const Br = [
|
|
622
622
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
623
623
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
624
|
-
],
|
|
624
|
+
], Xe = L("mail", Br);
|
|
625
625
|
/**
|
|
626
626
|
* @license lucide-react v0.575.0 - ISC
|
|
627
627
|
*
|
|
@@ -774,18 +774,18 @@ const ln = [
|
|
|
774
774
|
const dn = [
|
|
775
775
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
776
776
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
777
|
-
],
|
|
778
|
-
function
|
|
777
|
+
], jt = L("user", dn);
|
|
778
|
+
function Ht(e) {
|
|
779
779
|
var t, o, r = "";
|
|
780
780
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
781
781
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
782
782
|
var n = e.length;
|
|
783
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
783
|
+
for (t = 0; t < n; t++) e[t] && (o = Ht(e[t])) && (r && (r += " "), r += o);
|
|
784
784
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
785
785
|
return r;
|
|
786
786
|
}
|
|
787
787
|
function Vt() {
|
|
788
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
788
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Ht(e)) && (r && (r += " "), r += t);
|
|
789
789
|
return r;
|
|
790
790
|
}
|
|
791
791
|
const un = (e, t) => {
|
|
@@ -802,7 +802,7 @@ const un = (e, t) => {
|
|
|
802
802
|
nextPart: e,
|
|
803
803
|
validators: t,
|
|
804
804
|
classGroupId: o
|
|
805
|
-
}),
|
|
805
|
+
}), Pe = "-", gt = [], mn = "arbitrary..", pn = (e) => {
|
|
806
806
|
const t = gn(e), {
|
|
807
807
|
conflictingClassGroups: o,
|
|
808
808
|
conflictingClassGroupModifiers: r
|
|
@@ -811,15 +811,15 @@ const un = (e, t) => {
|
|
|
811
811
|
getClassGroupId: (a) => {
|
|
812
812
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
813
813
|
return hn(a);
|
|
814
|
-
const i = a.split(
|
|
814
|
+
const i = a.split(Pe), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
815
815
|
return Gt(i, l, t);
|
|
816
816
|
},
|
|
817
817
|
getConflictingClassGroupIds: (a, i) => {
|
|
818
818
|
if (i) {
|
|
819
|
-
const l = r[a],
|
|
820
|
-
return l ?
|
|
819
|
+
const l = r[a], d = o[a];
|
|
820
|
+
return l ? d ? un(d, l) : l : d || gt;
|
|
821
821
|
}
|
|
822
|
-
return o[a] ||
|
|
822
|
+
return o[a] || gt;
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
}, Gt = (e, t, o) => {
|
|
@@ -827,17 +827,17 @@ const un = (e, t) => {
|
|
|
827
827
|
return o.classGroupId;
|
|
828
828
|
const n = e[t], s = o.nextPart.get(n);
|
|
829
829
|
if (s) {
|
|
830
|
-
const
|
|
831
|
-
if (
|
|
830
|
+
const d = Gt(e, t + 1, s);
|
|
831
|
+
if (d) return d;
|
|
832
832
|
}
|
|
833
833
|
const a = o.validators;
|
|
834
834
|
if (a === null)
|
|
835
835
|
return;
|
|
836
|
-
const i = t === 0 ? e.join(
|
|
837
|
-
for (let
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
840
|
-
return
|
|
836
|
+
const i = t === 0 ? e.join(Pe) : e.slice(t).join(Pe), l = a.length;
|
|
837
|
+
for (let d = 0; d < l; d++) {
|
|
838
|
+
const u = a[d];
|
|
839
|
+
if (u.validator(i))
|
|
840
|
+
return u.classGroupId;
|
|
841
841
|
}
|
|
842
842
|
}, hn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
843
843
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
@@ -852,10 +852,10 @@ const un = (e, t) => {
|
|
|
852
852
|
const o = Bt();
|
|
853
853
|
for (const r in e) {
|
|
854
854
|
const n = e[r];
|
|
855
|
-
|
|
855
|
+
tt(n, o, r, t);
|
|
856
856
|
}
|
|
857
857
|
return o;
|
|
858
|
-
},
|
|
858
|
+
}, tt = (e, t, o, r) => {
|
|
859
859
|
const n = e.length;
|
|
860
860
|
for (let s = 0; s < n; s++) {
|
|
861
861
|
const a = e[s];
|
|
@@ -876,7 +876,7 @@ const un = (e, t) => {
|
|
|
876
876
|
r.classGroupId = o;
|
|
877
877
|
}, wn = (e, t, o, r) => {
|
|
878
878
|
if (kn(e)) {
|
|
879
|
-
|
|
879
|
+
tt(e(r), t, o, r);
|
|
880
880
|
return;
|
|
881
881
|
}
|
|
882
882
|
t.validators === null && (t.validators = []), t.validators.push(fn(o, e));
|
|
@@ -884,11 +884,11 @@ const un = (e, t) => {
|
|
|
884
884
|
const n = Object.entries(e), s = n.length;
|
|
885
885
|
for (let a = 0; a < s; a++) {
|
|
886
886
|
const [i, l] = n[a];
|
|
887
|
-
|
|
887
|
+
tt(l, qt(t, i), o, r);
|
|
888
888
|
}
|
|
889
889
|
}, qt = (e, t) => {
|
|
890
890
|
let o = e;
|
|
891
|
-
const r = t.split(
|
|
891
|
+
const r = t.split(Pe), n = r.length;
|
|
892
892
|
for (let s = 0; s < n; s++) {
|
|
893
893
|
const a = r[s];
|
|
894
894
|
let i = o.nextPart.get(a);
|
|
@@ -919,7 +919,7 @@ const un = (e, t) => {
|
|
|
919
919
|
s in o ? o[s] = a : n(s, a);
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
|
-
},
|
|
922
|
+
}, Ke = "!", bt = ":", Cn = [], vt = (e, t, o, r, n) => ({
|
|
923
923
|
modifiers: e,
|
|
924
924
|
hasImportantModifier: t,
|
|
925
925
|
baseClassName: o,
|
|
@@ -932,37 +932,37 @@ const un = (e, t) => {
|
|
|
932
932
|
} = e;
|
|
933
933
|
let r = (n) => {
|
|
934
934
|
const s = [];
|
|
935
|
-
let a = 0, i = 0, l = 0,
|
|
936
|
-
const
|
|
937
|
-
for (let
|
|
938
|
-
const h = n[
|
|
935
|
+
let a = 0, i = 0, l = 0, d;
|
|
936
|
+
const u = n.length;
|
|
937
|
+
for (let v = 0; v < u; v++) {
|
|
938
|
+
const h = n[v];
|
|
939
939
|
if (a === 0 && i === 0) {
|
|
940
|
-
if (h ===
|
|
941
|
-
s.push(n.slice(l,
|
|
940
|
+
if (h === bt) {
|
|
941
|
+
s.push(n.slice(l, v)), l = v + 1;
|
|
942
942
|
continue;
|
|
943
943
|
}
|
|
944
944
|
if (h === "/") {
|
|
945
|
-
|
|
945
|
+
d = v;
|
|
946
946
|
continue;
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
|
|
950
950
|
}
|
|
951
951
|
const f = s.length === 0 ? n : n.slice(l);
|
|
952
|
-
let
|
|
953
|
-
f.endsWith(
|
|
952
|
+
let p = f, b = !1;
|
|
953
|
+
f.endsWith(Ke) ? (p = f.slice(0, -1), b = !0) : (
|
|
954
954
|
/**
|
|
955
955
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
956
956
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
957
957
|
*/
|
|
958
|
-
f.startsWith(
|
|
958
|
+
f.startsWith(Ke) && (p = f.slice(1), b = !0)
|
|
959
959
|
);
|
|
960
|
-
const
|
|
961
|
-
return
|
|
960
|
+
const S = d && d > l ? d - l : void 0;
|
|
961
|
+
return vt(s, b, p, S);
|
|
962
962
|
};
|
|
963
963
|
if (t) {
|
|
964
|
-
const n = t +
|
|
965
|
-
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) :
|
|
964
|
+
const n = t + bt, s = r;
|
|
965
|
+
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : vt(Cn, !1, a, void 0, !0);
|
|
966
966
|
}
|
|
967
967
|
if (o) {
|
|
968
968
|
const n = r;
|
|
@@ -998,40 +998,40 @@ const un = (e, t) => {
|
|
|
998
998
|
sortModifiers: s
|
|
999
999
|
} = t, a = [], i = e.trim().split(_n);
|
|
1000
1000
|
let l = "";
|
|
1001
|
-
for (let
|
|
1002
|
-
const
|
|
1001
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
1002
|
+
const u = i[d], {
|
|
1003
1003
|
isExternal: f,
|
|
1004
|
-
modifiers:
|
|
1005
|
-
hasImportantModifier:
|
|
1006
|
-
baseClassName:
|
|
1007
|
-
maybePostfixModifierPosition:
|
|
1008
|
-
} = o(
|
|
1004
|
+
modifiers: p,
|
|
1005
|
+
hasImportantModifier: b,
|
|
1006
|
+
baseClassName: S,
|
|
1007
|
+
maybePostfixModifierPosition: v
|
|
1008
|
+
} = o(u);
|
|
1009
1009
|
if (f) {
|
|
1010
|
-
l =
|
|
1010
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
1011
1011
|
continue;
|
|
1012
1012
|
}
|
|
1013
|
-
let h = !!
|
|
1014
|
-
if (!
|
|
1013
|
+
let h = !!v, x = r(h ? S.substring(0, v) : S);
|
|
1014
|
+
if (!x) {
|
|
1015
1015
|
if (!h) {
|
|
1016
|
-
l =
|
|
1016
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
1017
1017
|
continue;
|
|
1018
1018
|
}
|
|
1019
|
-
if (
|
|
1020
|
-
l =
|
|
1019
|
+
if (x = r(S), !x) {
|
|
1020
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
1021
1021
|
continue;
|
|
1022
1022
|
}
|
|
1023
1023
|
h = !1;
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1025
|
+
const C = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), w = b ? C + Ke : C, A = w + x;
|
|
1026
1026
|
if (a.indexOf(A) > -1)
|
|
1027
1027
|
continue;
|
|
1028
1028
|
a.push(A);
|
|
1029
|
-
const P = n(
|
|
1030
|
-
for (let
|
|
1031
|
-
const I = P[
|
|
1032
|
-
a.push(
|
|
1029
|
+
const P = n(x, h);
|
|
1030
|
+
for (let N = 0; N < P.length; ++N) {
|
|
1031
|
+
const I = P[N];
|
|
1032
|
+
a.push(w + I);
|
|
1033
1033
|
}
|
|
1034
|
-
l =
|
|
1034
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
1035
1035
|
}
|
|
1036
1036
|
return l;
|
|
1037
1037
|
}, Rn = (...e) => {
|
|
@@ -1049,14 +1049,14 @@ const un = (e, t) => {
|
|
|
1049
1049
|
}, Pn = (e, ...t) => {
|
|
1050
1050
|
let o, r, n, s;
|
|
1051
1051
|
const a = (l) => {
|
|
1052
|
-
const
|
|
1053
|
-
return o = An(
|
|
1052
|
+
const d = t.reduce((u, f) => f(u), e());
|
|
1053
|
+
return o = An(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
|
|
1054
1054
|
}, i = (l) => {
|
|
1055
|
-
const
|
|
1056
|
-
if (
|
|
1057
|
-
return
|
|
1058
|
-
const
|
|
1059
|
-
return n(l,
|
|
1055
|
+
const d = r(l);
|
|
1056
|
+
if (d)
|
|
1057
|
+
return d;
|
|
1058
|
+
const u = In(l, o);
|
|
1059
|
+
return n(l, u), u;
|
|
1060
1060
|
};
|
|
1061
1061
|
return s = a, (...l) => s(Rn(...l));
|
|
1062
1062
|
}, Tn = [], F = (e) => {
|
|
@@ -1067,14 +1067,14 @@ const un = (e, t) => {
|
|
|
1067
1067
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1068
1068
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1069
1069
|
Ln.test(e) && !On.test(e)
|
|
1070
|
-
),
|
|
1070
|
+
), ot = () => !1, Un = (e) => $n.test(e), Wn = (e) => Fn.test(e), jn = (e) => !y(e) && !k(e), Hn = (e) => re(e, eo, ot), y = (e) => Xt.test(e), se = (e) => re(e, to, Dn), xt = (e) => re(e, Zn, R), Vn = (e) => re(e, ro, Zt), Bn = (e) => re(e, oo, ot), wt = (e) => re(e, Jt, ot), Gn = (e) => re(e, Qt, Wn), Ee = (e) => re(e, no, Un), k = (e) => Kt.test(e), fe = (e) => ie(e, to), qn = (e) => ie(e, oo), yt = (e) => ie(e, Jt), Yn = (e) => ie(e, eo), Xn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Kn = (e) => ie(e, ro, !0), re = (e, t, o) => {
|
|
1071
1071
|
const r = Xt.exec(e);
|
|
1072
1072
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1073
1073
|
}, ie = (e, t, o = !1) => {
|
|
1074
1074
|
const r = Kt.exec(e);
|
|
1075
1075
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1076
1076
|
}, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Zn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Jn = () => {
|
|
1077
|
-
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"),
|
|
1077
|
+
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), p = F("text-shadow"), b = F("drop-shadow"), S = F("blur"), v = F("perspective"), h = F("aspect"), x = F("ease"), C = F("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
1078
1078
|
"center",
|
|
1079
1079
|
"top",
|
|
1080
1080
|
"bottom",
|
|
@@ -1092,30 +1092,30 @@ const un = (e, t) => {
|
|
|
1092
1092
|
"bottom-left",
|
|
1093
1093
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1094
1094
|
"left-bottom"
|
|
1095
|
-
], P = () => [...A(),
|
|
1096
|
-
span: ["full", te,
|
|
1097
|
-
}, te,
|
|
1098
|
-
position: [
|
|
1099
|
-
}],
|
|
1095
|
+
], P = () => [...A(), k, y], N = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], g = () => [k, y, l], E = () => [ee, "full", "auto", ...g()], M = () => [te, "none", "subgrid", k, y], O = () => ["auto", {
|
|
1096
|
+
span: ["full", te, k, y]
|
|
1097
|
+
}, te, k, y], K = () => [te, "auto", k, y], ve = () => ["auto", "min", "max", "fr", k, y], 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()], Fe = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], De = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], _ = () => [e, k, y], dt = () => [...A(), yt, wt, {
|
|
1098
|
+
position: [k, y]
|
|
1099
|
+
}], ut = () => ["no-repeat", {
|
|
1100
1100
|
repeat: ["", "x", "y", "space", "round"]
|
|
1101
|
-
}],
|
|
1102
|
-
size: [
|
|
1103
|
-
}],
|
|
1101
|
+
}], ft = () => ["auto", "cover", "contain", Yn, Hn, {
|
|
1102
|
+
size: [k, y]
|
|
1103
|
+
}], Ue = () => [He, fe, se], j = () => [
|
|
1104
1104
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1105
1105
|
"",
|
|
1106
1106
|
"none",
|
|
1107
1107
|
"full",
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
],
|
|
1108
|
+
d,
|
|
1109
|
+
k,
|
|
1110
|
+
y
|
|
1111
|
+
], H = () => ["", R, fe, se], we = () => ["solid", "dashed", "dotted", "double"], mt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [R, He, yt, wt], pt = () => [
|
|
1112
1112
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1113
1113
|
"",
|
|
1114
1114
|
"none",
|
|
1115
|
+
S,
|
|
1115
1116
|
k,
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
], ye = () => ["none", R, w, v], ke = () => ["none", R, w, v], Ue = () => [R, w, v], Se = () => [ee, "full", ...b()];
|
|
1117
|
+
y
|
|
1118
|
+
], ye = () => ["none", R, k, y], ke = () => ["none", R, k, y], We = () => [R, k, y], Se = () => [ee, "full", ...g()];
|
|
1119
1119
|
return {
|
|
1120
1120
|
cacheSize: 500,
|
|
1121
1121
|
theme: {
|
|
@@ -1127,7 +1127,7 @@ const un = (e, t) => {
|
|
|
1127
1127
|
container: [Z],
|
|
1128
1128
|
"drop-shadow": [Z],
|
|
1129
1129
|
ease: ["in", "out", "in-out"],
|
|
1130
|
-
font: [
|
|
1130
|
+
font: [jn],
|
|
1131
1131
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1132
1132
|
"inset-shadow": [Z],
|
|
1133
1133
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1148,7 +1148,7 @@ const un = (e, t) => {
|
|
|
1148
1148
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1149
1149
|
*/
|
|
1150
1150
|
aspect: [{
|
|
1151
|
-
aspect: ["auto", "square", ee,
|
|
1151
|
+
aspect: ["auto", "square", ee, y, k, h]
|
|
1152
1152
|
}],
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Container
|
|
@@ -1161,21 +1161,21 @@ const un = (e, t) => {
|
|
|
1161
1161
|
* @see https://tailwindcss.com/docs/columns
|
|
1162
1162
|
*/
|
|
1163
1163
|
columns: [{
|
|
1164
|
-
columns: [R,
|
|
1164
|
+
columns: [R, y, k, i]
|
|
1165
1165
|
}],
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Break After
|
|
1168
1168
|
* @see https://tailwindcss.com/docs/break-after
|
|
1169
1169
|
*/
|
|
1170
1170
|
"break-after": [{
|
|
1171
|
-
"break-after":
|
|
1171
|
+
"break-after": w()
|
|
1172
1172
|
}],
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Break Before
|
|
1175
1175
|
* @see https://tailwindcss.com/docs/break-before
|
|
1176
1176
|
*/
|
|
1177
1177
|
"break-before": [{
|
|
1178
|
-
"break-before":
|
|
1178
|
+
"break-before": w()
|
|
1179
1179
|
}],
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Break Inside
|
|
@@ -1246,21 +1246,21 @@ const un = (e, t) => {
|
|
|
1246
1246
|
* @see https://tailwindcss.com/docs/overflow
|
|
1247
1247
|
*/
|
|
1248
1248
|
overflow: [{
|
|
1249
|
-
overflow:
|
|
1249
|
+
overflow: N()
|
|
1250
1250
|
}],
|
|
1251
1251
|
/**
|
|
1252
1252
|
* Overflow X
|
|
1253
1253
|
* @see https://tailwindcss.com/docs/overflow
|
|
1254
1254
|
*/
|
|
1255
1255
|
"overflow-x": [{
|
|
1256
|
-
"overflow-x":
|
|
1256
|
+
"overflow-x": N()
|
|
1257
1257
|
}],
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Overflow Y
|
|
1260
1260
|
* @see https://tailwindcss.com/docs/overflow
|
|
1261
1261
|
*/
|
|
1262
1262
|
"overflow-y": [{
|
|
1263
|
-
"overflow-y":
|
|
1263
|
+
"overflow-y": N()
|
|
1264
1264
|
}],
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Overscroll Behavior
|
|
@@ -1293,21 +1293,21 @@ const un = (e, t) => {
|
|
|
1293
1293
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1294
1294
|
*/
|
|
1295
1295
|
inset: [{
|
|
1296
|
-
inset:
|
|
1296
|
+
inset: E()
|
|
1297
1297
|
}],
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Inset Inline
|
|
1300
1300
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1301
1301
|
*/
|
|
1302
1302
|
"inset-x": [{
|
|
1303
|
-
"inset-x":
|
|
1303
|
+
"inset-x": E()
|
|
1304
1304
|
}],
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Inset Block
|
|
1307
1307
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1308
1308
|
*/
|
|
1309
1309
|
"inset-y": [{
|
|
1310
|
-
"inset-y":
|
|
1310
|
+
"inset-y": E()
|
|
1311
1311
|
}],
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Inset Inline Start
|
|
@@ -1315,12 +1315,12 @@ const un = (e, t) => {
|
|
|
1315
1315
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
1316
1316
|
*/
|
|
1317
1317
|
start: [{
|
|
1318
|
-
"inset-s":
|
|
1318
|
+
"inset-s": E(),
|
|
1319
1319
|
/**
|
|
1320
1320
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
1321
1321
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1322
1322
|
*/
|
|
1323
|
-
start:
|
|
1323
|
+
start: E()
|
|
1324
1324
|
}],
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Inset Inline End
|
|
@@ -1328,54 +1328,54 @@ const un = (e, t) => {
|
|
|
1328
1328
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
1329
1329
|
*/
|
|
1330
1330
|
end: [{
|
|
1331
|
-
"inset-e":
|
|
1331
|
+
"inset-e": E(),
|
|
1332
1332
|
/**
|
|
1333
1333
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
1334
1334
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1335
1335
|
*/
|
|
1336
|
-
end:
|
|
1336
|
+
end: E()
|
|
1337
1337
|
}],
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Inset Block Start
|
|
1340
1340
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1341
1341
|
*/
|
|
1342
1342
|
"inset-bs": [{
|
|
1343
|
-
"inset-bs":
|
|
1343
|
+
"inset-bs": E()
|
|
1344
1344
|
}],
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Inset Block End
|
|
1347
1347
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1348
1348
|
*/
|
|
1349
1349
|
"inset-be": [{
|
|
1350
|
-
"inset-be":
|
|
1350
|
+
"inset-be": E()
|
|
1351
1351
|
}],
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Top
|
|
1354
1354
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1355
1355
|
*/
|
|
1356
1356
|
top: [{
|
|
1357
|
-
top:
|
|
1357
|
+
top: E()
|
|
1358
1358
|
}],
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Right
|
|
1361
1361
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1362
1362
|
*/
|
|
1363
1363
|
right: [{
|
|
1364
|
-
right:
|
|
1364
|
+
right: E()
|
|
1365
1365
|
}],
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Bottom
|
|
1368
1368
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1369
1369
|
*/
|
|
1370
1370
|
bottom: [{
|
|
1371
|
-
bottom:
|
|
1371
|
+
bottom: E()
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Left
|
|
1375
1375
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1376
1376
|
*/
|
|
1377
1377
|
left: [{
|
|
1378
|
-
left:
|
|
1378
|
+
left: E()
|
|
1379
1379
|
}],
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Visibility
|
|
@@ -1387,7 +1387,7 @@ const un = (e, t) => {
|
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/z-index
|
|
1388
1388
|
*/
|
|
1389
1389
|
z: [{
|
|
1390
|
-
z: [te, "auto",
|
|
1390
|
+
z: [te, "auto", k, y]
|
|
1391
1391
|
}],
|
|
1392
1392
|
// ------------------------
|
|
1393
1393
|
// --- Flexbox and Grid ---
|
|
@@ -1397,7 +1397,7 @@ const un = (e, t) => {
|
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1398
1398
|
*/
|
|
1399
1399
|
basis: [{
|
|
1400
|
-
basis: [ee, "full", "auto", i, ...
|
|
1400
|
+
basis: [ee, "full", "auto", i, ...g()]
|
|
1401
1401
|
}],
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Flex Direction
|
|
@@ -1418,28 +1418,28 @@ const un = (e, t) => {
|
|
|
1418
1418
|
* @see https://tailwindcss.com/docs/flex
|
|
1419
1419
|
*/
|
|
1420
1420
|
flex: [{
|
|
1421
|
-
flex: [R, ee, "auto", "initial", "none",
|
|
1421
|
+
flex: [R, ee, "auto", "initial", "none", y]
|
|
1422
1422
|
}],
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Flex Grow
|
|
1425
1425
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1426
1426
|
*/
|
|
1427
1427
|
grow: [{
|
|
1428
|
-
grow: ["", R,
|
|
1428
|
+
grow: ["", R, k, y]
|
|
1429
1429
|
}],
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Flex Shrink
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1433
1433
|
*/
|
|
1434
1434
|
shrink: [{
|
|
1435
|
-
shrink: ["", R,
|
|
1435
|
+
shrink: ["", R, k, y]
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Order
|
|
1439
1439
|
* @see https://tailwindcss.com/docs/order
|
|
1440
1440
|
*/
|
|
1441
1441
|
order: [{
|
|
1442
|
-
order: [te, "first", "last", "none",
|
|
1442
|
+
order: [te, "first", "last", "none", k, y]
|
|
1443
1443
|
}],
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Grid Template Columns
|
|
@@ -1523,21 +1523,21 @@ const un = (e, t) => {
|
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/gap
|
|
1524
1524
|
*/
|
|
1525
1525
|
gap: [{
|
|
1526
|
-
gap:
|
|
1526
|
+
gap: g()
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Gap X
|
|
1530
1530
|
* @see https://tailwindcss.com/docs/gap
|
|
1531
1531
|
*/
|
|
1532
1532
|
"gap-x": [{
|
|
1533
|
-
"gap-x":
|
|
1533
|
+
"gap-x": g()
|
|
1534
1534
|
}],
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Gap Y
|
|
1537
1537
|
* @see https://tailwindcss.com/docs/gap
|
|
1538
1538
|
*/
|
|
1539
1539
|
"gap-y": [{
|
|
1540
|
-
"gap-y":
|
|
1540
|
+
"gap-y": g()
|
|
1541
1541
|
}],
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Justify Content
|
|
@@ -1612,77 +1612,77 @@ const un = (e, t) => {
|
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/padding
|
|
1613
1613
|
*/
|
|
1614
1614
|
p: [{
|
|
1615
|
-
p:
|
|
1615
|
+
p: g()
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Padding Inline
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/padding
|
|
1620
1620
|
*/
|
|
1621
1621
|
px: [{
|
|
1622
|
-
px:
|
|
1622
|
+
px: g()
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Padding Block
|
|
1626
1626
|
* @see https://tailwindcss.com/docs/padding
|
|
1627
1627
|
*/
|
|
1628
1628
|
py: [{
|
|
1629
|
-
py:
|
|
1629
|
+
py: g()
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Padding Inline Start
|
|
1633
1633
|
* @see https://tailwindcss.com/docs/padding
|
|
1634
1634
|
*/
|
|
1635
1635
|
ps: [{
|
|
1636
|
-
ps:
|
|
1636
|
+
ps: g()
|
|
1637
1637
|
}],
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Padding Inline End
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/padding
|
|
1641
1641
|
*/
|
|
1642
1642
|
pe: [{
|
|
1643
|
-
pe:
|
|
1643
|
+
pe: g()
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Padding Block Start
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/padding
|
|
1648
1648
|
*/
|
|
1649
1649
|
pbs: [{
|
|
1650
|
-
pbs:
|
|
1650
|
+
pbs: g()
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Padding Block End
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/padding
|
|
1655
1655
|
*/
|
|
1656
1656
|
pbe: [{
|
|
1657
|
-
pbe:
|
|
1657
|
+
pbe: g()
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Padding Top
|
|
1661
1661
|
* @see https://tailwindcss.com/docs/padding
|
|
1662
1662
|
*/
|
|
1663
1663
|
pt: [{
|
|
1664
|
-
pt:
|
|
1664
|
+
pt: g()
|
|
1665
1665
|
}],
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Padding Right
|
|
1668
1668
|
* @see https://tailwindcss.com/docs/padding
|
|
1669
1669
|
*/
|
|
1670
1670
|
pr: [{
|
|
1671
|
-
pr:
|
|
1671
|
+
pr: g()
|
|
1672
1672
|
}],
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Padding Bottom
|
|
1675
1675
|
* @see https://tailwindcss.com/docs/padding
|
|
1676
1676
|
*/
|
|
1677
1677
|
pb: [{
|
|
1678
|
-
pb:
|
|
1678
|
+
pb: g()
|
|
1679
1679
|
}],
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Padding Left
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/padding
|
|
1683
1683
|
*/
|
|
1684
1684
|
pl: [{
|
|
1685
|
-
pl:
|
|
1685
|
+
pl: g()
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Margin
|
|
@@ -1766,7 +1766,7 @@ const un = (e, t) => {
|
|
|
1766
1766
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1767
1767
|
*/
|
|
1768
1768
|
"space-x": [{
|
|
1769
|
-
"space-x":
|
|
1769
|
+
"space-x": g()
|
|
1770
1770
|
}],
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Space Between X Reverse
|
|
@@ -1778,7 +1778,7 @@ const un = (e, t) => {
|
|
|
1778
1778
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1779
1779
|
*/
|
|
1780
1780
|
"space-y": [{
|
|
1781
|
-
"space-y":
|
|
1781
|
+
"space-y": g()
|
|
1782
1782
|
}],
|
|
1783
1783
|
/**
|
|
1784
1784
|
* Space Between Y Reverse
|
|
@@ -1800,42 +1800,42 @@ const un = (e, t) => {
|
|
|
1800
1800
|
* @see https://tailwindcss.com/docs/width
|
|
1801
1801
|
*/
|
|
1802
1802
|
"inline-size": [{
|
|
1803
|
-
inline: ["auto",
|
|
1803
|
+
inline: ["auto", ...Fe()]
|
|
1804
1804
|
}],
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Min-Inline Size
|
|
1807
1807
|
* @see https://tailwindcss.com/docs/min-width
|
|
1808
1808
|
*/
|
|
1809
1809
|
"min-inline-size": [{
|
|
1810
|
-
"min-inline": ["auto",
|
|
1810
|
+
"min-inline": ["auto", ...Fe()]
|
|
1811
1811
|
}],
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Max-Inline Size
|
|
1814
1814
|
* @see https://tailwindcss.com/docs/max-width
|
|
1815
1815
|
*/
|
|
1816
1816
|
"max-inline-size": [{
|
|
1817
|
-
"max-inline": ["none",
|
|
1817
|
+
"max-inline": ["none", ...Fe()]
|
|
1818
1818
|
}],
|
|
1819
1819
|
/**
|
|
1820
1820
|
* Block Size
|
|
1821
1821
|
* @see https://tailwindcss.com/docs/height
|
|
1822
1822
|
*/
|
|
1823
1823
|
"block-size": [{
|
|
1824
|
-
block: ["auto", ...
|
|
1824
|
+
block: ["auto", ...De()]
|
|
1825
1825
|
}],
|
|
1826
1826
|
/**
|
|
1827
1827
|
* Min-Block Size
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/min-height
|
|
1829
1829
|
*/
|
|
1830
1830
|
"min-block-size": [{
|
|
1831
|
-
"min-block": ["auto", ...
|
|
1831
|
+
"min-block": ["auto", ...De()]
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Max-Block Size
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/max-height
|
|
1836
1836
|
*/
|
|
1837
1837
|
"max-block-size": [{
|
|
1838
|
-
"max-block": ["none", ...
|
|
1838
|
+
"max-block": ["none", ...De()]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Width
|
|
@@ -1928,7 +1928,7 @@ const un = (e, t) => {
|
|
|
1928
1928
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1929
1929
|
*/
|
|
1930
1930
|
"font-stretch": [{
|
|
1931
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", He,
|
|
1931
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", He, y]
|
|
1932
1932
|
}],
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Font Family
|
|
@@ -1942,7 +1942,7 @@ const un = (e, t) => {
|
|
|
1942
1942
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1943
1943
|
*/
|
|
1944
1944
|
"font-features": [{
|
|
1945
|
-
"font-features": [
|
|
1945
|
+
"font-features": [y]
|
|
1946
1946
|
}],
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Font Variant Numeric
|
|
@@ -1979,14 +1979,14 @@ const un = (e, t) => {
|
|
|
1979
1979
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1980
1980
|
*/
|
|
1981
1981
|
tracking: [{
|
|
1982
|
-
tracking: [n,
|
|
1982
|
+
tracking: [n, k, y]
|
|
1983
1983
|
}],
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Line Clamp
|
|
1986
1986
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1987
1987
|
*/
|
|
1988
1988
|
"line-clamp": [{
|
|
1989
|
-
"line-clamp": [R, "none",
|
|
1989
|
+
"line-clamp": [R, "none", k, xt]
|
|
1990
1990
|
}],
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Line Height
|
|
@@ -1996,7 +1996,7 @@ const un = (e, t) => {
|
|
|
1996
1996
|
leading: [
|
|
1997
1997
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1998
1998
|
s,
|
|
1999
|
-
...
|
|
1999
|
+
...g()
|
|
2000
2000
|
]
|
|
2001
2001
|
}],
|
|
2002
2002
|
/**
|
|
@@ -2004,7 +2004,7 @@ const un = (e, t) => {
|
|
|
2004
2004
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2005
2005
|
*/
|
|
2006
2006
|
"list-image": [{
|
|
2007
|
-
"list-image": ["none",
|
|
2007
|
+
"list-image": ["none", k, y]
|
|
2008
2008
|
}],
|
|
2009
2009
|
/**
|
|
2010
2010
|
* List Style Position
|
|
@@ -2018,7 +2018,7 @@ const un = (e, t) => {
|
|
|
2018
2018
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2019
2019
|
*/
|
|
2020
2020
|
"list-style-type": [{
|
|
2021
|
-
list: ["disc", "decimal", "none",
|
|
2021
|
+
list: ["disc", "decimal", "none", k, y]
|
|
2022
2022
|
}],
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Text Alignment
|
|
@@ -2033,14 +2033,14 @@ const un = (e, t) => {
|
|
|
2033
2033
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2034
2034
|
*/
|
|
2035
2035
|
"placeholder-color": [{
|
|
2036
|
-
placeholder:
|
|
2036
|
+
placeholder: _()
|
|
2037
2037
|
}],
|
|
2038
2038
|
/**
|
|
2039
2039
|
* Text Color
|
|
2040
2040
|
* @see https://tailwindcss.com/docs/text-color
|
|
2041
2041
|
*/
|
|
2042
2042
|
"text-color": [{
|
|
2043
|
-
text:
|
|
2043
|
+
text: _()
|
|
2044
2044
|
}],
|
|
2045
2045
|
/**
|
|
2046
2046
|
* Text Decoration
|
|
@@ -2059,21 +2059,21 @@ const un = (e, t) => {
|
|
|
2059
2059
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2060
2060
|
*/
|
|
2061
2061
|
"text-decoration-thickness": [{
|
|
2062
|
-
decoration: [R, "from-font", "auto",
|
|
2062
|
+
decoration: [R, "from-font", "auto", k, se]
|
|
2063
2063
|
}],
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Text Decoration Color
|
|
2066
2066
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2067
2067
|
*/
|
|
2068
2068
|
"text-decoration-color": [{
|
|
2069
|
-
decoration:
|
|
2069
|
+
decoration: _()
|
|
2070
2070
|
}],
|
|
2071
2071
|
/**
|
|
2072
2072
|
* Text Underline Offset
|
|
2073
2073
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2074
2074
|
*/
|
|
2075
2075
|
"underline-offset": [{
|
|
2076
|
-
"underline-offset": [R, "auto",
|
|
2076
|
+
"underline-offset": [R, "auto", k, y]
|
|
2077
2077
|
}],
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Text Transform
|
|
@@ -2097,14 +2097,14 @@ const un = (e, t) => {
|
|
|
2097
2097
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2098
2098
|
*/
|
|
2099
2099
|
indent: [{
|
|
2100
|
-
indent:
|
|
2100
|
+
indent: g()
|
|
2101
2101
|
}],
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Vertical Alignment
|
|
2104
2104
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2105
2105
|
*/
|
|
2106
2106
|
"vertical-align": [{
|
|
2107
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2107
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", k, y]
|
|
2108
2108
|
}],
|
|
2109
2109
|
/**
|
|
2110
2110
|
* Whitespace
|
|
@@ -2139,7 +2139,7 @@ const un = (e, t) => {
|
|
|
2139
2139
|
* @see https://tailwindcss.com/docs/content
|
|
2140
2140
|
*/
|
|
2141
2141
|
content: [{
|
|
2142
|
-
content: ["none",
|
|
2142
|
+
content: ["none", k, y]
|
|
2143
2143
|
}],
|
|
2144
2144
|
// -------------------
|
|
2145
2145
|
// --- Backgrounds ---
|
|
@@ -2170,21 +2170,21 @@ const un = (e, t) => {
|
|
|
2170
2170
|
* @see https://tailwindcss.com/docs/background-position
|
|
2171
2171
|
*/
|
|
2172
2172
|
"bg-position": [{
|
|
2173
|
-
bg:
|
|
2173
|
+
bg: dt()
|
|
2174
2174
|
}],
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Background Repeat
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
2178
2178
|
*/
|
|
2179
2179
|
"bg-repeat": [{
|
|
2180
|
-
bg:
|
|
2180
|
+
bg: ut()
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Background Size
|
|
2184
2184
|
* @see https://tailwindcss.com/docs/background-size
|
|
2185
2185
|
*/
|
|
2186
2186
|
"bg-size": [{
|
|
2187
|
-
bg:
|
|
2187
|
+
bg: ft()
|
|
2188
2188
|
}],
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Background Image
|
|
@@ -2194,9 +2194,9 @@ const un = (e, t) => {
|
|
|
2194
2194
|
bg: ["none", {
|
|
2195
2195
|
linear: [{
|
|
2196
2196
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2197
|
-
}, te,
|
|
2198
|
-
radial: ["",
|
|
2199
|
-
conic: [te,
|
|
2197
|
+
}, te, k, y],
|
|
2198
|
+
radial: ["", k, y],
|
|
2199
|
+
conic: [te, k, y]
|
|
2200
2200
|
}, Xn, Gn]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
@@ -2204,49 +2204,49 @@ const un = (e, t) => {
|
|
|
2204
2204
|
* @see https://tailwindcss.com/docs/background-color
|
|
2205
2205
|
*/
|
|
2206
2206
|
"bg-color": [{
|
|
2207
|
-
bg:
|
|
2207
|
+
bg: _()
|
|
2208
2208
|
}],
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Gradient Color Stops From Position
|
|
2211
2211
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2212
2212
|
*/
|
|
2213
2213
|
"gradient-from-pos": [{
|
|
2214
|
-
from:
|
|
2214
|
+
from: Ue()
|
|
2215
2215
|
}],
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Gradient Color Stops Via Position
|
|
2218
2218
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2219
2219
|
*/
|
|
2220
2220
|
"gradient-via-pos": [{
|
|
2221
|
-
via:
|
|
2221
|
+
via: Ue()
|
|
2222
2222
|
}],
|
|
2223
2223
|
/**
|
|
2224
2224
|
* Gradient Color Stops To Position
|
|
2225
2225
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2226
2226
|
*/
|
|
2227
2227
|
"gradient-to-pos": [{
|
|
2228
|
-
to:
|
|
2228
|
+
to: Ue()
|
|
2229
2229
|
}],
|
|
2230
2230
|
/**
|
|
2231
2231
|
* Gradient Color Stops From
|
|
2232
2232
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2233
2233
|
*/
|
|
2234
2234
|
"gradient-from": [{
|
|
2235
|
-
from:
|
|
2235
|
+
from: _()
|
|
2236
2236
|
}],
|
|
2237
2237
|
/**
|
|
2238
2238
|
* Gradient Color Stops Via
|
|
2239
2239
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2240
2240
|
*/
|
|
2241
2241
|
"gradient-via": [{
|
|
2242
|
-
via:
|
|
2242
|
+
via: _()
|
|
2243
2243
|
}],
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Gradient Color Stops To
|
|
2246
2246
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2247
2247
|
*/
|
|
2248
2248
|
"gradient-to": [{
|
|
2249
|
-
to:
|
|
2249
|
+
to: _()
|
|
2250
2250
|
}],
|
|
2251
2251
|
// ---------------
|
|
2252
2252
|
// --- Borders ---
|
|
@@ -2256,189 +2256,189 @@ const un = (e, t) => {
|
|
|
2256
2256
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2257
2257
|
*/
|
|
2258
2258
|
rounded: [{
|
|
2259
|
-
rounded:
|
|
2259
|
+
rounded: j()
|
|
2260
2260
|
}],
|
|
2261
2261
|
/**
|
|
2262
2262
|
* Border Radius Start
|
|
2263
2263
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2264
2264
|
*/
|
|
2265
2265
|
"rounded-s": [{
|
|
2266
|
-
"rounded-s":
|
|
2266
|
+
"rounded-s": j()
|
|
2267
2267
|
}],
|
|
2268
2268
|
/**
|
|
2269
2269
|
* Border Radius End
|
|
2270
2270
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2271
2271
|
*/
|
|
2272
2272
|
"rounded-e": [{
|
|
2273
|
-
"rounded-e":
|
|
2273
|
+
"rounded-e": j()
|
|
2274
2274
|
}],
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Border Radius Top
|
|
2277
2277
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2278
2278
|
*/
|
|
2279
2279
|
"rounded-t": [{
|
|
2280
|
-
"rounded-t":
|
|
2280
|
+
"rounded-t": j()
|
|
2281
2281
|
}],
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Border Radius Right
|
|
2284
2284
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2285
2285
|
*/
|
|
2286
2286
|
"rounded-r": [{
|
|
2287
|
-
"rounded-r":
|
|
2287
|
+
"rounded-r": j()
|
|
2288
2288
|
}],
|
|
2289
2289
|
/**
|
|
2290
2290
|
* Border Radius Bottom
|
|
2291
2291
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2292
2292
|
*/
|
|
2293
2293
|
"rounded-b": [{
|
|
2294
|
-
"rounded-b":
|
|
2294
|
+
"rounded-b": j()
|
|
2295
2295
|
}],
|
|
2296
2296
|
/**
|
|
2297
2297
|
* Border Radius Left
|
|
2298
2298
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2299
2299
|
*/
|
|
2300
2300
|
"rounded-l": [{
|
|
2301
|
-
"rounded-l":
|
|
2301
|
+
"rounded-l": j()
|
|
2302
2302
|
}],
|
|
2303
2303
|
/**
|
|
2304
2304
|
* Border Radius Start Start
|
|
2305
2305
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2306
2306
|
*/
|
|
2307
2307
|
"rounded-ss": [{
|
|
2308
|
-
"rounded-ss":
|
|
2308
|
+
"rounded-ss": j()
|
|
2309
2309
|
}],
|
|
2310
2310
|
/**
|
|
2311
2311
|
* Border Radius Start End
|
|
2312
2312
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2313
2313
|
*/
|
|
2314
2314
|
"rounded-se": [{
|
|
2315
|
-
"rounded-se":
|
|
2315
|
+
"rounded-se": j()
|
|
2316
2316
|
}],
|
|
2317
2317
|
/**
|
|
2318
2318
|
* Border Radius End End
|
|
2319
2319
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2320
2320
|
*/
|
|
2321
2321
|
"rounded-ee": [{
|
|
2322
|
-
"rounded-ee":
|
|
2322
|
+
"rounded-ee": j()
|
|
2323
2323
|
}],
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Border Radius End Start
|
|
2326
2326
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2327
2327
|
*/
|
|
2328
2328
|
"rounded-es": [{
|
|
2329
|
-
"rounded-es":
|
|
2329
|
+
"rounded-es": j()
|
|
2330
2330
|
}],
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Border Radius Top Left
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2334
2334
|
*/
|
|
2335
2335
|
"rounded-tl": [{
|
|
2336
|
-
"rounded-tl":
|
|
2336
|
+
"rounded-tl": j()
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Border Radius Top Right
|
|
2340
2340
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2341
2341
|
*/
|
|
2342
2342
|
"rounded-tr": [{
|
|
2343
|
-
"rounded-tr":
|
|
2343
|
+
"rounded-tr": j()
|
|
2344
2344
|
}],
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Border Radius Bottom Right
|
|
2347
2347
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2348
2348
|
*/
|
|
2349
2349
|
"rounded-br": [{
|
|
2350
|
-
"rounded-br":
|
|
2350
|
+
"rounded-br": j()
|
|
2351
2351
|
}],
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Border Radius Bottom Left
|
|
2354
2354
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2355
2355
|
*/
|
|
2356
2356
|
"rounded-bl": [{
|
|
2357
|
-
"rounded-bl":
|
|
2357
|
+
"rounded-bl": j()
|
|
2358
2358
|
}],
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Border Width
|
|
2361
2361
|
* @see https://tailwindcss.com/docs/border-width
|
|
2362
2362
|
*/
|
|
2363
2363
|
"border-w": [{
|
|
2364
|
-
border:
|
|
2364
|
+
border: H()
|
|
2365
2365
|
}],
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Border Width Inline
|
|
2368
2368
|
* @see https://tailwindcss.com/docs/border-width
|
|
2369
2369
|
*/
|
|
2370
2370
|
"border-w-x": [{
|
|
2371
|
-
"border-x":
|
|
2371
|
+
"border-x": H()
|
|
2372
2372
|
}],
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Border Width Block
|
|
2375
2375
|
* @see https://tailwindcss.com/docs/border-width
|
|
2376
2376
|
*/
|
|
2377
2377
|
"border-w-y": [{
|
|
2378
|
-
"border-y":
|
|
2378
|
+
"border-y": H()
|
|
2379
2379
|
}],
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Border Width Inline Start
|
|
2382
2382
|
* @see https://tailwindcss.com/docs/border-width
|
|
2383
2383
|
*/
|
|
2384
2384
|
"border-w-s": [{
|
|
2385
|
-
"border-s":
|
|
2385
|
+
"border-s": H()
|
|
2386
2386
|
}],
|
|
2387
2387
|
/**
|
|
2388
2388
|
* Border Width Inline End
|
|
2389
2389
|
* @see https://tailwindcss.com/docs/border-width
|
|
2390
2390
|
*/
|
|
2391
2391
|
"border-w-e": [{
|
|
2392
|
-
"border-e":
|
|
2392
|
+
"border-e": H()
|
|
2393
2393
|
}],
|
|
2394
2394
|
/**
|
|
2395
2395
|
* Border Width Block Start
|
|
2396
2396
|
* @see https://tailwindcss.com/docs/border-width
|
|
2397
2397
|
*/
|
|
2398
2398
|
"border-w-bs": [{
|
|
2399
|
-
"border-bs":
|
|
2399
|
+
"border-bs": H()
|
|
2400
2400
|
}],
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Border Width Block End
|
|
2403
2403
|
* @see https://tailwindcss.com/docs/border-width
|
|
2404
2404
|
*/
|
|
2405
2405
|
"border-w-be": [{
|
|
2406
|
-
"border-be":
|
|
2406
|
+
"border-be": H()
|
|
2407
2407
|
}],
|
|
2408
2408
|
/**
|
|
2409
2409
|
* Border Width Top
|
|
2410
2410
|
* @see https://tailwindcss.com/docs/border-width
|
|
2411
2411
|
*/
|
|
2412
2412
|
"border-w-t": [{
|
|
2413
|
-
"border-t":
|
|
2413
|
+
"border-t": H()
|
|
2414
2414
|
}],
|
|
2415
2415
|
/**
|
|
2416
2416
|
* Border Width Right
|
|
2417
2417
|
* @see https://tailwindcss.com/docs/border-width
|
|
2418
2418
|
*/
|
|
2419
2419
|
"border-w-r": [{
|
|
2420
|
-
"border-r":
|
|
2420
|
+
"border-r": H()
|
|
2421
2421
|
}],
|
|
2422
2422
|
/**
|
|
2423
2423
|
* Border Width Bottom
|
|
2424
2424
|
* @see https://tailwindcss.com/docs/border-width
|
|
2425
2425
|
*/
|
|
2426
2426
|
"border-w-b": [{
|
|
2427
|
-
"border-b":
|
|
2427
|
+
"border-b": H()
|
|
2428
2428
|
}],
|
|
2429
2429
|
/**
|
|
2430
2430
|
* Border Width Left
|
|
2431
2431
|
* @see https://tailwindcss.com/docs/border-width
|
|
2432
2432
|
*/
|
|
2433
2433
|
"border-w-l": [{
|
|
2434
|
-
"border-l":
|
|
2434
|
+
"border-l": H()
|
|
2435
2435
|
}],
|
|
2436
2436
|
/**
|
|
2437
2437
|
* Divide Width X
|
|
2438
2438
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2439
2439
|
*/
|
|
2440
2440
|
"divide-x": [{
|
|
2441
|
-
"divide-x":
|
|
2441
|
+
"divide-x": H()
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Divide Width X Reverse
|
|
@@ -2450,7 +2450,7 @@ const un = (e, t) => {
|
|
|
2450
2450
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2451
2451
|
*/
|
|
2452
2452
|
"divide-y": [{
|
|
2453
|
-
"divide-y":
|
|
2453
|
+
"divide-y": H()
|
|
2454
2454
|
}],
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Divide Width Y Reverse
|
|
@@ -2476,84 +2476,84 @@ const un = (e, t) => {
|
|
|
2476
2476
|
* @see https://tailwindcss.com/docs/border-color
|
|
2477
2477
|
*/
|
|
2478
2478
|
"border-color": [{
|
|
2479
|
-
border:
|
|
2479
|
+
border: _()
|
|
2480
2480
|
}],
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Border Color Inline
|
|
2483
2483
|
* @see https://tailwindcss.com/docs/border-color
|
|
2484
2484
|
*/
|
|
2485
2485
|
"border-color-x": [{
|
|
2486
|
-
"border-x":
|
|
2486
|
+
"border-x": _()
|
|
2487
2487
|
}],
|
|
2488
2488
|
/**
|
|
2489
2489
|
* Border Color Block
|
|
2490
2490
|
* @see https://tailwindcss.com/docs/border-color
|
|
2491
2491
|
*/
|
|
2492
2492
|
"border-color-y": [{
|
|
2493
|
-
"border-y":
|
|
2493
|
+
"border-y": _()
|
|
2494
2494
|
}],
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Border Color Inline Start
|
|
2497
2497
|
* @see https://tailwindcss.com/docs/border-color
|
|
2498
2498
|
*/
|
|
2499
2499
|
"border-color-s": [{
|
|
2500
|
-
"border-s":
|
|
2500
|
+
"border-s": _()
|
|
2501
2501
|
}],
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Border Color Inline End
|
|
2504
2504
|
* @see https://tailwindcss.com/docs/border-color
|
|
2505
2505
|
*/
|
|
2506
2506
|
"border-color-e": [{
|
|
2507
|
-
"border-e":
|
|
2507
|
+
"border-e": _()
|
|
2508
2508
|
}],
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Border Color Block Start
|
|
2511
2511
|
* @see https://tailwindcss.com/docs/border-color
|
|
2512
2512
|
*/
|
|
2513
2513
|
"border-color-bs": [{
|
|
2514
|
-
"border-bs":
|
|
2514
|
+
"border-bs": _()
|
|
2515
2515
|
}],
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Border Color Block End
|
|
2518
2518
|
* @see https://tailwindcss.com/docs/border-color
|
|
2519
2519
|
*/
|
|
2520
2520
|
"border-color-be": [{
|
|
2521
|
-
"border-be":
|
|
2521
|
+
"border-be": _()
|
|
2522
2522
|
}],
|
|
2523
2523
|
/**
|
|
2524
2524
|
* Border Color Top
|
|
2525
2525
|
* @see https://tailwindcss.com/docs/border-color
|
|
2526
2526
|
*/
|
|
2527
2527
|
"border-color-t": [{
|
|
2528
|
-
"border-t":
|
|
2528
|
+
"border-t": _()
|
|
2529
2529
|
}],
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Border Color Right
|
|
2532
2532
|
* @see https://tailwindcss.com/docs/border-color
|
|
2533
2533
|
*/
|
|
2534
2534
|
"border-color-r": [{
|
|
2535
|
-
"border-r":
|
|
2535
|
+
"border-r": _()
|
|
2536
2536
|
}],
|
|
2537
2537
|
/**
|
|
2538
2538
|
* Border Color Bottom
|
|
2539
2539
|
* @see https://tailwindcss.com/docs/border-color
|
|
2540
2540
|
*/
|
|
2541
2541
|
"border-color-b": [{
|
|
2542
|
-
"border-b":
|
|
2542
|
+
"border-b": _()
|
|
2543
2543
|
}],
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Border Color Left
|
|
2546
2546
|
* @see https://tailwindcss.com/docs/border-color
|
|
2547
2547
|
*/
|
|
2548
2548
|
"border-color-l": [{
|
|
2549
|
-
"border-l":
|
|
2549
|
+
"border-l": _()
|
|
2550
2550
|
}],
|
|
2551
2551
|
/**
|
|
2552
2552
|
* Divide Color
|
|
2553
2553
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2554
2554
|
*/
|
|
2555
2555
|
"divide-color": [{
|
|
2556
|
-
divide:
|
|
2556
|
+
divide: _()
|
|
2557
2557
|
}],
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Outline Style
|
|
@@ -2567,7 +2567,7 @@ const un = (e, t) => {
|
|
|
2567
2567
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2568
2568
|
*/
|
|
2569
2569
|
"outline-offset": [{
|
|
2570
|
-
"outline-offset": [R,
|
|
2570
|
+
"outline-offset": [R, k, y]
|
|
2571
2571
|
}],
|
|
2572
2572
|
/**
|
|
2573
2573
|
* Outline Width
|
|
@@ -2581,7 +2581,7 @@ const un = (e, t) => {
|
|
|
2581
2581
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2582
2582
|
*/
|
|
2583
2583
|
"outline-color": [{
|
|
2584
|
-
outline:
|
|
2584
|
+
outline: _()
|
|
2585
2585
|
}],
|
|
2586
2586
|
// ---------------
|
|
2587
2587
|
// --- Effects ---
|
|
@@ -2595,7 +2595,7 @@ const un = (e, t) => {
|
|
|
2595
2595
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2596
2596
|
"",
|
|
2597
2597
|
"none",
|
|
2598
|
-
|
|
2598
|
+
u,
|
|
2599
2599
|
Ne,
|
|
2600
2600
|
Ee
|
|
2601
2601
|
]
|
|
@@ -2605,7 +2605,7 @@ const un = (e, t) => {
|
|
|
2605
2605
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2606
2606
|
*/
|
|
2607
2607
|
"shadow-color": [{
|
|
2608
|
-
shadow:
|
|
2608
|
+
shadow: _()
|
|
2609
2609
|
}],
|
|
2610
2610
|
/**
|
|
2611
2611
|
* Inset Box Shadow
|
|
@@ -2619,14 +2619,14 @@ const un = (e, t) => {
|
|
|
2619
2619
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2620
2620
|
*/
|
|
2621
2621
|
"inset-shadow-color": [{
|
|
2622
|
-
"inset-shadow":
|
|
2622
|
+
"inset-shadow": _()
|
|
2623
2623
|
}],
|
|
2624
2624
|
/**
|
|
2625
2625
|
* Ring Width
|
|
2626
2626
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2627
2627
|
*/
|
|
2628
2628
|
"ring-w": [{
|
|
2629
|
-
ring:
|
|
2629
|
+
ring: H()
|
|
2630
2630
|
}],
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Ring Width Inset
|
|
@@ -2640,7 +2640,7 @@ const un = (e, t) => {
|
|
|
2640
2640
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2641
2641
|
*/
|
|
2642
2642
|
"ring-color": [{
|
|
2643
|
-
ring:
|
|
2643
|
+
ring: _()
|
|
2644
2644
|
}],
|
|
2645
2645
|
/**
|
|
2646
2646
|
* Ring Offset Width
|
|
@@ -2658,56 +2658,56 @@ const un = (e, t) => {
|
|
|
2658
2658
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2659
2659
|
*/
|
|
2660
2660
|
"ring-offset-color": [{
|
|
2661
|
-
"ring-offset":
|
|
2661
|
+
"ring-offset": _()
|
|
2662
2662
|
}],
|
|
2663
2663
|
/**
|
|
2664
2664
|
* Inset Ring Width
|
|
2665
2665
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2666
2666
|
*/
|
|
2667
2667
|
"inset-ring-w": [{
|
|
2668
|
-
"inset-ring":
|
|
2668
|
+
"inset-ring": H()
|
|
2669
2669
|
}],
|
|
2670
2670
|
/**
|
|
2671
2671
|
* Inset Ring Color
|
|
2672
2672
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2673
2673
|
*/
|
|
2674
2674
|
"inset-ring-color": [{
|
|
2675
|
-
"inset-ring":
|
|
2675
|
+
"inset-ring": _()
|
|
2676
2676
|
}],
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Text Shadow
|
|
2679
2679
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2680
2680
|
*/
|
|
2681
2681
|
"text-shadow": [{
|
|
2682
|
-
"text-shadow": ["none",
|
|
2682
|
+
"text-shadow": ["none", p, Ne, Ee]
|
|
2683
2683
|
}],
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Text Shadow Color
|
|
2686
2686
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2687
2687
|
*/
|
|
2688
2688
|
"text-shadow-color": [{
|
|
2689
|
-
"text-shadow":
|
|
2689
|
+
"text-shadow": _()
|
|
2690
2690
|
}],
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Opacity
|
|
2693
2693
|
* @see https://tailwindcss.com/docs/opacity
|
|
2694
2694
|
*/
|
|
2695
2695
|
opacity: [{
|
|
2696
|
-
opacity: [R,
|
|
2696
|
+
opacity: [R, k, y]
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Mix Blend Mode
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2701
2701
|
*/
|
|
2702
2702
|
"mix-blend": [{
|
|
2703
|
-
"mix-blend": [...
|
|
2703
|
+
"mix-blend": [...mt(), "plus-darker", "plus-lighter"]
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Background Blend Mode
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2708
2708
|
*/
|
|
2709
2709
|
"bg-blend": [{
|
|
2710
|
-
"bg-blend":
|
|
2710
|
+
"bg-blend": mt()
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Mask Clip
|
|
@@ -2737,10 +2737,10 @@ const un = (e, t) => {
|
|
|
2737
2737
|
"mask-linear-to": D()
|
|
2738
2738
|
}],
|
|
2739
2739
|
"mask-image-linear-from-color": [{
|
|
2740
|
-
"mask-linear-from":
|
|
2740
|
+
"mask-linear-from": _()
|
|
2741
2741
|
}],
|
|
2742
2742
|
"mask-image-linear-to-color": [{
|
|
2743
|
-
"mask-linear-to":
|
|
2743
|
+
"mask-linear-to": _()
|
|
2744
2744
|
}],
|
|
2745
2745
|
"mask-image-t-from-pos": [{
|
|
2746
2746
|
"mask-t-from": D()
|
|
@@ -2749,10 +2749,10 @@ const un = (e, t) => {
|
|
|
2749
2749
|
"mask-t-to": D()
|
|
2750
2750
|
}],
|
|
2751
2751
|
"mask-image-t-from-color": [{
|
|
2752
|
-
"mask-t-from":
|
|
2752
|
+
"mask-t-from": _()
|
|
2753
2753
|
}],
|
|
2754
2754
|
"mask-image-t-to-color": [{
|
|
2755
|
-
"mask-t-to":
|
|
2755
|
+
"mask-t-to": _()
|
|
2756
2756
|
}],
|
|
2757
2757
|
"mask-image-r-from-pos": [{
|
|
2758
2758
|
"mask-r-from": D()
|
|
@@ -2761,10 +2761,10 @@ const un = (e, t) => {
|
|
|
2761
2761
|
"mask-r-to": D()
|
|
2762
2762
|
}],
|
|
2763
2763
|
"mask-image-r-from-color": [{
|
|
2764
|
-
"mask-r-from":
|
|
2764
|
+
"mask-r-from": _()
|
|
2765
2765
|
}],
|
|
2766
2766
|
"mask-image-r-to-color": [{
|
|
2767
|
-
"mask-r-to":
|
|
2767
|
+
"mask-r-to": _()
|
|
2768
2768
|
}],
|
|
2769
2769
|
"mask-image-b-from-pos": [{
|
|
2770
2770
|
"mask-b-from": D()
|
|
@@ -2773,10 +2773,10 @@ const un = (e, t) => {
|
|
|
2773
2773
|
"mask-b-to": D()
|
|
2774
2774
|
}],
|
|
2775
2775
|
"mask-image-b-from-color": [{
|
|
2776
|
-
"mask-b-from":
|
|
2776
|
+
"mask-b-from": _()
|
|
2777
2777
|
}],
|
|
2778
2778
|
"mask-image-b-to-color": [{
|
|
2779
|
-
"mask-b-to":
|
|
2779
|
+
"mask-b-to": _()
|
|
2780
2780
|
}],
|
|
2781
2781
|
"mask-image-l-from-pos": [{
|
|
2782
2782
|
"mask-l-from": D()
|
|
@@ -2785,10 +2785,10 @@ const un = (e, t) => {
|
|
|
2785
2785
|
"mask-l-to": D()
|
|
2786
2786
|
}],
|
|
2787
2787
|
"mask-image-l-from-color": [{
|
|
2788
|
-
"mask-l-from":
|
|
2788
|
+
"mask-l-from": _()
|
|
2789
2789
|
}],
|
|
2790
2790
|
"mask-image-l-to-color": [{
|
|
2791
|
-
"mask-l-to":
|
|
2791
|
+
"mask-l-to": _()
|
|
2792
2792
|
}],
|
|
2793
2793
|
"mask-image-x-from-pos": [{
|
|
2794
2794
|
"mask-x-from": D()
|
|
@@ -2797,10 +2797,10 @@ const un = (e, t) => {
|
|
|
2797
2797
|
"mask-x-to": D()
|
|
2798
2798
|
}],
|
|
2799
2799
|
"mask-image-x-from-color": [{
|
|
2800
|
-
"mask-x-from":
|
|
2800
|
+
"mask-x-from": _()
|
|
2801
2801
|
}],
|
|
2802
2802
|
"mask-image-x-to-color": [{
|
|
2803
|
-
"mask-x-to":
|
|
2803
|
+
"mask-x-to": _()
|
|
2804
2804
|
}],
|
|
2805
2805
|
"mask-image-y-from-pos": [{
|
|
2806
2806
|
"mask-y-from": D()
|
|
@@ -2809,13 +2809,13 @@ const un = (e, t) => {
|
|
|
2809
2809
|
"mask-y-to": D()
|
|
2810
2810
|
}],
|
|
2811
2811
|
"mask-image-y-from-color": [{
|
|
2812
|
-
"mask-y-from":
|
|
2812
|
+
"mask-y-from": _()
|
|
2813
2813
|
}],
|
|
2814
2814
|
"mask-image-y-to-color": [{
|
|
2815
|
-
"mask-y-to":
|
|
2815
|
+
"mask-y-to": _()
|
|
2816
2816
|
}],
|
|
2817
2817
|
"mask-image-radial": [{
|
|
2818
|
-
"mask-radial": [
|
|
2818
|
+
"mask-radial": [k, y]
|
|
2819
2819
|
}],
|
|
2820
2820
|
"mask-image-radial-from-pos": [{
|
|
2821
2821
|
"mask-radial-from": D()
|
|
@@ -2824,10 +2824,10 @@ const un = (e, t) => {
|
|
|
2824
2824
|
"mask-radial-to": D()
|
|
2825
2825
|
}],
|
|
2826
2826
|
"mask-image-radial-from-color": [{
|
|
2827
|
-
"mask-radial-from":
|
|
2827
|
+
"mask-radial-from": _()
|
|
2828
2828
|
}],
|
|
2829
2829
|
"mask-image-radial-to-color": [{
|
|
2830
|
-
"mask-radial-to":
|
|
2830
|
+
"mask-radial-to": _()
|
|
2831
2831
|
}],
|
|
2832
2832
|
"mask-image-radial-shape": [{
|
|
2833
2833
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2851,10 +2851,10 @@ const un = (e, t) => {
|
|
|
2851
2851
|
"mask-conic-to": D()
|
|
2852
2852
|
}],
|
|
2853
2853
|
"mask-image-conic-from-color": [{
|
|
2854
|
-
"mask-conic-from":
|
|
2854
|
+
"mask-conic-from": _()
|
|
2855
2855
|
}],
|
|
2856
2856
|
"mask-image-conic-to-color": [{
|
|
2857
|
-
"mask-conic-to":
|
|
2857
|
+
"mask-conic-to": _()
|
|
2858
2858
|
}],
|
|
2859
2859
|
/**
|
|
2860
2860
|
* Mask Mode
|
|
@@ -2875,21 +2875,21 @@ const un = (e, t) => {
|
|
|
2875
2875
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2876
2876
|
*/
|
|
2877
2877
|
"mask-position": [{
|
|
2878
|
-
mask:
|
|
2878
|
+
mask: dt()
|
|
2879
2879
|
}],
|
|
2880
2880
|
/**
|
|
2881
2881
|
* Mask Repeat
|
|
2882
2882
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2883
2883
|
*/
|
|
2884
2884
|
"mask-repeat": [{
|
|
2885
|
-
mask:
|
|
2885
|
+
mask: ut()
|
|
2886
2886
|
}],
|
|
2887
2887
|
/**
|
|
2888
2888
|
* Mask Size
|
|
2889
2889
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2890
2890
|
*/
|
|
2891
2891
|
"mask-size": [{
|
|
2892
|
-
mask:
|
|
2892
|
+
mask: ft()
|
|
2893
2893
|
}],
|
|
2894
2894
|
/**
|
|
2895
2895
|
* Mask Type
|
|
@@ -2903,7 +2903,7 @@ const un = (e, t) => {
|
|
|
2903
2903
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2904
2904
|
*/
|
|
2905
2905
|
"mask-image": [{
|
|
2906
|
-
mask: ["none",
|
|
2906
|
+
mask: ["none", k, y]
|
|
2907
2907
|
}],
|
|
2908
2908
|
// ---------------
|
|
2909
2909
|
// --- Filters ---
|
|
@@ -2917,8 +2917,8 @@ const un = (e, t) => {
|
|
|
2917
2917
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2918
2918
|
"",
|
|
2919
2919
|
"none",
|
|
2920
|
-
|
|
2921
|
-
|
|
2920
|
+
k,
|
|
2921
|
+
y
|
|
2922
2922
|
]
|
|
2923
2923
|
}],
|
|
2924
2924
|
/**
|
|
@@ -2926,21 +2926,21 @@ const un = (e, t) => {
|
|
|
2926
2926
|
* @see https://tailwindcss.com/docs/blur
|
|
2927
2927
|
*/
|
|
2928
2928
|
blur: [{
|
|
2929
|
-
blur:
|
|
2929
|
+
blur: pt()
|
|
2930
2930
|
}],
|
|
2931
2931
|
/**
|
|
2932
2932
|
* Brightness
|
|
2933
2933
|
* @see https://tailwindcss.com/docs/brightness
|
|
2934
2934
|
*/
|
|
2935
2935
|
brightness: [{
|
|
2936
|
-
brightness: [R,
|
|
2936
|
+
brightness: [R, k, y]
|
|
2937
2937
|
}],
|
|
2938
2938
|
/**
|
|
2939
2939
|
* Contrast
|
|
2940
2940
|
* @see https://tailwindcss.com/docs/contrast
|
|
2941
2941
|
*/
|
|
2942
2942
|
contrast: [{
|
|
2943
|
-
contrast: [R,
|
|
2943
|
+
contrast: [R, k, y]
|
|
2944
2944
|
}],
|
|
2945
2945
|
/**
|
|
2946
2946
|
* Drop Shadow
|
|
@@ -2951,7 +2951,7 @@ const un = (e, t) => {
|
|
|
2951
2951
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2952
2952
|
"",
|
|
2953
2953
|
"none",
|
|
2954
|
-
|
|
2954
|
+
b,
|
|
2955
2955
|
Ne,
|
|
2956
2956
|
Ee
|
|
2957
2957
|
]
|
|
@@ -2961,42 +2961,42 @@ const un = (e, t) => {
|
|
|
2961
2961
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2962
2962
|
*/
|
|
2963
2963
|
"drop-shadow-color": [{
|
|
2964
|
-
"drop-shadow":
|
|
2964
|
+
"drop-shadow": _()
|
|
2965
2965
|
}],
|
|
2966
2966
|
/**
|
|
2967
2967
|
* Grayscale
|
|
2968
2968
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2969
2969
|
*/
|
|
2970
2970
|
grayscale: [{
|
|
2971
|
-
grayscale: ["", R,
|
|
2971
|
+
grayscale: ["", R, k, y]
|
|
2972
2972
|
}],
|
|
2973
2973
|
/**
|
|
2974
2974
|
* Hue Rotate
|
|
2975
2975
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2976
2976
|
*/
|
|
2977
2977
|
"hue-rotate": [{
|
|
2978
|
-
"hue-rotate": [R,
|
|
2978
|
+
"hue-rotate": [R, k, y]
|
|
2979
2979
|
}],
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Invert
|
|
2982
2982
|
* @see https://tailwindcss.com/docs/invert
|
|
2983
2983
|
*/
|
|
2984
2984
|
invert: [{
|
|
2985
|
-
invert: ["", R,
|
|
2985
|
+
invert: ["", R, k, y]
|
|
2986
2986
|
}],
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Saturate
|
|
2989
2989
|
* @see https://tailwindcss.com/docs/saturate
|
|
2990
2990
|
*/
|
|
2991
2991
|
saturate: [{
|
|
2992
|
-
saturate: [R,
|
|
2992
|
+
saturate: [R, k, y]
|
|
2993
2993
|
}],
|
|
2994
2994
|
/**
|
|
2995
2995
|
* Sepia
|
|
2996
2996
|
* @see https://tailwindcss.com/docs/sepia
|
|
2997
2997
|
*/
|
|
2998
2998
|
sepia: [{
|
|
2999
|
-
sepia: ["", R,
|
|
2999
|
+
sepia: ["", R, k, y]
|
|
3000
3000
|
}],
|
|
3001
3001
|
/**
|
|
3002
3002
|
* Backdrop Filter
|
|
@@ -3007,8 +3007,8 @@ const un = (e, t) => {
|
|
|
3007
3007
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3008
3008
|
"",
|
|
3009
3009
|
"none",
|
|
3010
|
-
|
|
3011
|
-
|
|
3010
|
+
k,
|
|
3011
|
+
y
|
|
3012
3012
|
]
|
|
3013
3013
|
}],
|
|
3014
3014
|
/**
|
|
@@ -3016,63 +3016,63 @@ const un = (e, t) => {
|
|
|
3016
3016
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3017
3017
|
*/
|
|
3018
3018
|
"backdrop-blur": [{
|
|
3019
|
-
"backdrop-blur":
|
|
3019
|
+
"backdrop-blur": pt()
|
|
3020
3020
|
}],
|
|
3021
3021
|
/**
|
|
3022
3022
|
* Backdrop Brightness
|
|
3023
3023
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3024
3024
|
*/
|
|
3025
3025
|
"backdrop-brightness": [{
|
|
3026
|
-
"backdrop-brightness": [R,
|
|
3026
|
+
"backdrop-brightness": [R, k, y]
|
|
3027
3027
|
}],
|
|
3028
3028
|
/**
|
|
3029
3029
|
* Backdrop Contrast
|
|
3030
3030
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3031
3031
|
*/
|
|
3032
3032
|
"backdrop-contrast": [{
|
|
3033
|
-
"backdrop-contrast": [R,
|
|
3033
|
+
"backdrop-contrast": [R, k, y]
|
|
3034
3034
|
}],
|
|
3035
3035
|
/**
|
|
3036
3036
|
* Backdrop Grayscale
|
|
3037
3037
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3038
3038
|
*/
|
|
3039
3039
|
"backdrop-grayscale": [{
|
|
3040
|
-
"backdrop-grayscale": ["", R,
|
|
3040
|
+
"backdrop-grayscale": ["", R, k, y]
|
|
3041
3041
|
}],
|
|
3042
3042
|
/**
|
|
3043
3043
|
* Backdrop Hue Rotate
|
|
3044
3044
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3045
3045
|
*/
|
|
3046
3046
|
"backdrop-hue-rotate": [{
|
|
3047
|
-
"backdrop-hue-rotate": [R,
|
|
3047
|
+
"backdrop-hue-rotate": [R, k, y]
|
|
3048
3048
|
}],
|
|
3049
3049
|
/**
|
|
3050
3050
|
* Backdrop Invert
|
|
3051
3051
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3052
3052
|
*/
|
|
3053
3053
|
"backdrop-invert": [{
|
|
3054
|
-
"backdrop-invert": ["", R,
|
|
3054
|
+
"backdrop-invert": ["", R, k, y]
|
|
3055
3055
|
}],
|
|
3056
3056
|
/**
|
|
3057
3057
|
* Backdrop Opacity
|
|
3058
3058
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3059
3059
|
*/
|
|
3060
3060
|
"backdrop-opacity": [{
|
|
3061
|
-
"backdrop-opacity": [R,
|
|
3061
|
+
"backdrop-opacity": [R, k, y]
|
|
3062
3062
|
}],
|
|
3063
3063
|
/**
|
|
3064
3064
|
* Backdrop Saturate
|
|
3065
3065
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3066
3066
|
*/
|
|
3067
3067
|
"backdrop-saturate": [{
|
|
3068
|
-
"backdrop-saturate": [R,
|
|
3068
|
+
"backdrop-saturate": [R, k, y]
|
|
3069
3069
|
}],
|
|
3070
3070
|
/**
|
|
3071
3071
|
* Backdrop Sepia
|
|
3072
3072
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3073
3073
|
*/
|
|
3074
3074
|
"backdrop-sepia": [{
|
|
3075
|
-
"backdrop-sepia": ["", R,
|
|
3075
|
+
"backdrop-sepia": ["", R, k, y]
|
|
3076
3076
|
}],
|
|
3077
3077
|
// --------------
|
|
3078
3078
|
// --- Tables ---
|
|
@@ -3089,21 +3089,21 @@ const un = (e, t) => {
|
|
|
3089
3089
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3090
3090
|
*/
|
|
3091
3091
|
"border-spacing": [{
|
|
3092
|
-
"border-spacing":
|
|
3092
|
+
"border-spacing": g()
|
|
3093
3093
|
}],
|
|
3094
3094
|
/**
|
|
3095
3095
|
* Border Spacing X
|
|
3096
3096
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3097
3097
|
*/
|
|
3098
3098
|
"border-spacing-x": [{
|
|
3099
|
-
"border-spacing-x":
|
|
3099
|
+
"border-spacing-x": g()
|
|
3100
3100
|
}],
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Border Spacing Y
|
|
3103
3103
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3104
3104
|
*/
|
|
3105
3105
|
"border-spacing-y": [{
|
|
3106
|
-
"border-spacing-y":
|
|
3106
|
+
"border-spacing-y": g()
|
|
3107
3107
|
}],
|
|
3108
3108
|
/**
|
|
3109
3109
|
* Table Layout
|
|
@@ -3127,7 +3127,7 @@ const un = (e, t) => {
|
|
|
3127
3127
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3128
3128
|
*/
|
|
3129
3129
|
transition: [{
|
|
3130
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3130
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", k, y]
|
|
3131
3131
|
}],
|
|
3132
3132
|
/**
|
|
3133
3133
|
* Transition Behavior
|
|
@@ -3141,28 +3141,28 @@ const un = (e, t) => {
|
|
|
3141
3141
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3142
3142
|
*/
|
|
3143
3143
|
duration: [{
|
|
3144
|
-
duration: [R, "initial",
|
|
3144
|
+
duration: [R, "initial", k, y]
|
|
3145
3145
|
}],
|
|
3146
3146
|
/**
|
|
3147
3147
|
* Transition Timing Function
|
|
3148
3148
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3149
3149
|
*/
|
|
3150
3150
|
ease: [{
|
|
3151
|
-
ease: ["linear", "initial",
|
|
3151
|
+
ease: ["linear", "initial", x, k, y]
|
|
3152
3152
|
}],
|
|
3153
3153
|
/**
|
|
3154
3154
|
* Transition Delay
|
|
3155
3155
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3156
3156
|
*/
|
|
3157
3157
|
delay: [{
|
|
3158
|
-
delay: [R,
|
|
3158
|
+
delay: [R, k, y]
|
|
3159
3159
|
}],
|
|
3160
3160
|
/**
|
|
3161
3161
|
* Animation
|
|
3162
3162
|
* @see https://tailwindcss.com/docs/animation
|
|
3163
3163
|
*/
|
|
3164
3164
|
animate: [{
|
|
3165
|
-
animate: ["none",
|
|
3165
|
+
animate: ["none", C, k, y]
|
|
3166
3166
|
}],
|
|
3167
3167
|
// ------------------
|
|
3168
3168
|
// --- Transforms ---
|
|
@@ -3179,7 +3179,7 @@ const un = (e, t) => {
|
|
|
3179
3179
|
* @see https://tailwindcss.com/docs/perspective
|
|
3180
3180
|
*/
|
|
3181
3181
|
perspective: [{
|
|
3182
|
-
perspective: [
|
|
3182
|
+
perspective: [v, k, y]
|
|
3183
3183
|
}],
|
|
3184
3184
|
/**
|
|
3185
3185
|
* Perspective Origin
|
|
@@ -3254,28 +3254,28 @@ const un = (e, t) => {
|
|
|
3254
3254
|
* @see https://tailwindcss.com/docs/skew
|
|
3255
3255
|
*/
|
|
3256
3256
|
skew: [{
|
|
3257
|
-
skew:
|
|
3257
|
+
skew: We()
|
|
3258
3258
|
}],
|
|
3259
3259
|
/**
|
|
3260
3260
|
* Skew X
|
|
3261
3261
|
* @see https://tailwindcss.com/docs/skew
|
|
3262
3262
|
*/
|
|
3263
3263
|
"skew-x": [{
|
|
3264
|
-
"skew-x":
|
|
3264
|
+
"skew-x": We()
|
|
3265
3265
|
}],
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Skew Y
|
|
3268
3268
|
* @see https://tailwindcss.com/docs/skew
|
|
3269
3269
|
*/
|
|
3270
3270
|
"skew-y": [{
|
|
3271
|
-
"skew-y":
|
|
3271
|
+
"skew-y": We()
|
|
3272
3272
|
}],
|
|
3273
3273
|
/**
|
|
3274
3274
|
* Transform
|
|
3275
3275
|
* @see https://tailwindcss.com/docs/transform
|
|
3276
3276
|
*/
|
|
3277
3277
|
transform: [{
|
|
3278
|
-
transform: [
|
|
3278
|
+
transform: [k, y, "", "none", "gpu", "cpu"]
|
|
3279
3279
|
}],
|
|
3280
3280
|
/**
|
|
3281
3281
|
* Transform Origin
|
|
@@ -3332,7 +3332,7 @@ const un = (e, t) => {
|
|
|
3332
3332
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3333
3333
|
*/
|
|
3334
3334
|
accent: [{
|
|
3335
|
-
accent:
|
|
3335
|
+
accent: _()
|
|
3336
3336
|
}],
|
|
3337
3337
|
/**
|
|
3338
3338
|
* Appearance
|
|
@@ -3346,7 +3346,7 @@ const un = (e, t) => {
|
|
|
3346
3346
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3347
3347
|
*/
|
|
3348
3348
|
"caret-color": [{
|
|
3349
|
-
caret:
|
|
3349
|
+
caret: _()
|
|
3350
3350
|
}],
|
|
3351
3351
|
/**
|
|
3352
3352
|
* Color Scheme
|
|
@@ -3360,7 +3360,7 @@ const un = (e, t) => {
|
|
|
3360
3360
|
* @see https://tailwindcss.com/docs/cursor
|
|
3361
3361
|
*/
|
|
3362
3362
|
cursor: [{
|
|
3363
|
-
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",
|
|
3363
|
+
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", k, y]
|
|
3364
3364
|
}],
|
|
3365
3365
|
/**
|
|
3366
3366
|
* Field Sizing
|
|
@@ -3395,154 +3395,154 @@ const un = (e, t) => {
|
|
|
3395
3395
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3396
3396
|
*/
|
|
3397
3397
|
"scroll-m": [{
|
|
3398
|
-
"scroll-m":
|
|
3398
|
+
"scroll-m": g()
|
|
3399
3399
|
}],
|
|
3400
3400
|
/**
|
|
3401
3401
|
* Scroll Margin Inline
|
|
3402
3402
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3403
3403
|
*/
|
|
3404
3404
|
"scroll-mx": [{
|
|
3405
|
-
"scroll-mx":
|
|
3405
|
+
"scroll-mx": g()
|
|
3406
3406
|
}],
|
|
3407
3407
|
/**
|
|
3408
3408
|
* Scroll Margin Block
|
|
3409
3409
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3410
3410
|
*/
|
|
3411
3411
|
"scroll-my": [{
|
|
3412
|
-
"scroll-my":
|
|
3412
|
+
"scroll-my": g()
|
|
3413
3413
|
}],
|
|
3414
3414
|
/**
|
|
3415
3415
|
* Scroll Margin Inline Start
|
|
3416
3416
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3417
3417
|
*/
|
|
3418
3418
|
"scroll-ms": [{
|
|
3419
|
-
"scroll-ms":
|
|
3419
|
+
"scroll-ms": g()
|
|
3420
3420
|
}],
|
|
3421
3421
|
/**
|
|
3422
3422
|
* Scroll Margin Inline End
|
|
3423
3423
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3424
3424
|
*/
|
|
3425
3425
|
"scroll-me": [{
|
|
3426
|
-
"scroll-me":
|
|
3426
|
+
"scroll-me": g()
|
|
3427
3427
|
}],
|
|
3428
3428
|
/**
|
|
3429
3429
|
* Scroll Margin Block Start
|
|
3430
3430
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3431
3431
|
*/
|
|
3432
3432
|
"scroll-mbs": [{
|
|
3433
|
-
"scroll-mbs":
|
|
3433
|
+
"scroll-mbs": g()
|
|
3434
3434
|
}],
|
|
3435
3435
|
/**
|
|
3436
3436
|
* Scroll Margin Block End
|
|
3437
3437
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3438
3438
|
*/
|
|
3439
3439
|
"scroll-mbe": [{
|
|
3440
|
-
"scroll-mbe":
|
|
3440
|
+
"scroll-mbe": g()
|
|
3441
3441
|
}],
|
|
3442
3442
|
/**
|
|
3443
3443
|
* Scroll Margin Top
|
|
3444
3444
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3445
3445
|
*/
|
|
3446
3446
|
"scroll-mt": [{
|
|
3447
|
-
"scroll-mt":
|
|
3447
|
+
"scroll-mt": g()
|
|
3448
3448
|
}],
|
|
3449
3449
|
/**
|
|
3450
3450
|
* Scroll Margin Right
|
|
3451
3451
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3452
3452
|
*/
|
|
3453
3453
|
"scroll-mr": [{
|
|
3454
|
-
"scroll-mr":
|
|
3454
|
+
"scroll-mr": g()
|
|
3455
3455
|
}],
|
|
3456
3456
|
/**
|
|
3457
3457
|
* Scroll Margin Bottom
|
|
3458
3458
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3459
3459
|
*/
|
|
3460
3460
|
"scroll-mb": [{
|
|
3461
|
-
"scroll-mb":
|
|
3461
|
+
"scroll-mb": g()
|
|
3462
3462
|
}],
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Scroll Margin Left
|
|
3465
3465
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3466
3466
|
*/
|
|
3467
3467
|
"scroll-ml": [{
|
|
3468
|
-
"scroll-ml":
|
|
3468
|
+
"scroll-ml": g()
|
|
3469
3469
|
}],
|
|
3470
3470
|
/**
|
|
3471
3471
|
* Scroll Padding
|
|
3472
3472
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3473
3473
|
*/
|
|
3474
3474
|
"scroll-p": [{
|
|
3475
|
-
"scroll-p":
|
|
3475
|
+
"scroll-p": g()
|
|
3476
3476
|
}],
|
|
3477
3477
|
/**
|
|
3478
3478
|
* Scroll Padding Inline
|
|
3479
3479
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3480
3480
|
*/
|
|
3481
3481
|
"scroll-px": [{
|
|
3482
|
-
"scroll-px":
|
|
3482
|
+
"scroll-px": g()
|
|
3483
3483
|
}],
|
|
3484
3484
|
/**
|
|
3485
3485
|
* Scroll Padding Block
|
|
3486
3486
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3487
3487
|
*/
|
|
3488
3488
|
"scroll-py": [{
|
|
3489
|
-
"scroll-py":
|
|
3489
|
+
"scroll-py": g()
|
|
3490
3490
|
}],
|
|
3491
3491
|
/**
|
|
3492
3492
|
* Scroll Padding Inline Start
|
|
3493
3493
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3494
3494
|
*/
|
|
3495
3495
|
"scroll-ps": [{
|
|
3496
|
-
"scroll-ps":
|
|
3496
|
+
"scroll-ps": g()
|
|
3497
3497
|
}],
|
|
3498
3498
|
/**
|
|
3499
3499
|
* Scroll Padding Inline End
|
|
3500
3500
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3501
3501
|
*/
|
|
3502
3502
|
"scroll-pe": [{
|
|
3503
|
-
"scroll-pe":
|
|
3503
|
+
"scroll-pe": g()
|
|
3504
3504
|
}],
|
|
3505
3505
|
/**
|
|
3506
3506
|
* Scroll Padding Block Start
|
|
3507
3507
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3508
3508
|
*/
|
|
3509
3509
|
"scroll-pbs": [{
|
|
3510
|
-
"scroll-pbs":
|
|
3510
|
+
"scroll-pbs": g()
|
|
3511
3511
|
}],
|
|
3512
3512
|
/**
|
|
3513
3513
|
* Scroll Padding Block End
|
|
3514
3514
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3515
3515
|
*/
|
|
3516
3516
|
"scroll-pbe": [{
|
|
3517
|
-
"scroll-pbe":
|
|
3517
|
+
"scroll-pbe": g()
|
|
3518
3518
|
}],
|
|
3519
3519
|
/**
|
|
3520
3520
|
* Scroll Padding Top
|
|
3521
3521
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3522
3522
|
*/
|
|
3523
3523
|
"scroll-pt": [{
|
|
3524
|
-
"scroll-pt":
|
|
3524
|
+
"scroll-pt": g()
|
|
3525
3525
|
}],
|
|
3526
3526
|
/**
|
|
3527
3527
|
* Scroll Padding Right
|
|
3528
3528
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3529
3529
|
*/
|
|
3530
3530
|
"scroll-pr": [{
|
|
3531
|
-
"scroll-pr":
|
|
3531
|
+
"scroll-pr": g()
|
|
3532
3532
|
}],
|
|
3533
3533
|
/**
|
|
3534
3534
|
* Scroll Padding Bottom
|
|
3535
3535
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3536
3536
|
*/
|
|
3537
3537
|
"scroll-pb": [{
|
|
3538
|
-
"scroll-pb":
|
|
3538
|
+
"scroll-pb": g()
|
|
3539
3539
|
}],
|
|
3540
3540
|
/**
|
|
3541
3541
|
* Scroll Padding Left
|
|
3542
3542
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3543
3543
|
*/
|
|
3544
3544
|
"scroll-pl": [{
|
|
3545
|
-
"scroll-pl":
|
|
3545
|
+
"scroll-pl": g()
|
|
3546
3546
|
}],
|
|
3547
3547
|
/**
|
|
3548
3548
|
* Scroll Snap Align
|
|
@@ -3610,7 +3610,7 @@ const un = (e, t) => {
|
|
|
3610
3610
|
* @see https://tailwindcss.com/docs/will-change
|
|
3611
3611
|
*/
|
|
3612
3612
|
"will-change": [{
|
|
3613
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3613
|
+
"will-change": ["auto", "scroll", "contents", "transform", k, y]
|
|
3614
3614
|
}],
|
|
3615
3615
|
// -----------
|
|
3616
3616
|
// --- SVG ---
|
|
@@ -3620,21 +3620,21 @@ const un = (e, t) => {
|
|
|
3620
3620
|
* @see https://tailwindcss.com/docs/fill
|
|
3621
3621
|
*/
|
|
3622
3622
|
fill: [{
|
|
3623
|
-
fill: ["none", ...
|
|
3623
|
+
fill: ["none", ..._()]
|
|
3624
3624
|
}],
|
|
3625
3625
|
/**
|
|
3626
3626
|
* Stroke Width
|
|
3627
3627
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3628
3628
|
*/
|
|
3629
3629
|
"stroke-w": [{
|
|
3630
|
-
stroke: [R, fe, se,
|
|
3630
|
+
stroke: [R, fe, se, xt]
|
|
3631
3631
|
}],
|
|
3632
3632
|
/**
|
|
3633
3633
|
* Stroke
|
|
3634
3634
|
* @see https://tailwindcss.com/docs/stroke
|
|
3635
3635
|
*/
|
|
3636
3636
|
stroke: [{
|
|
3637
|
-
stroke: ["none", ...
|
|
3637
|
+
stroke: ["none", ..._()]
|
|
3638
3638
|
}],
|
|
3639
3639
|
// ---------------------
|
|
3640
3640
|
// --- Accessibility ---
|
|
@@ -3739,37 +3739,37 @@ function pe({ className: e, ...t }) {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
);
|
|
3741
3741
|
}
|
|
3742
|
-
const
|
|
3742
|
+
const kt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, St = Vt, rt = (e, t) => (o) => {
|
|
3743
3743
|
var r;
|
|
3744
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
3745
|
-
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((
|
|
3746
|
-
const
|
|
3747
|
-
if (
|
|
3748
|
-
const
|
|
3749
|
-
return n[
|
|
3750
|
-
}), i = o && Object.entries(o).reduce((
|
|
3751
|
-
let [f,
|
|
3752
|
-
return
|
|
3753
|
-
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((
|
|
3754
|
-
let { class: f, className:
|
|
3755
|
-
return Object.entries(
|
|
3756
|
-
let [
|
|
3744
|
+
if ((t == null ? void 0 : t.variants) == null) return St(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3745
|
+
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
|
|
3746
|
+
const u = o == null ? void 0 : o[d], f = s == null ? void 0 : s[d];
|
|
3747
|
+
if (u === null) return null;
|
|
3748
|
+
const p = kt(u) || kt(f);
|
|
3749
|
+
return n[d][p];
|
|
3750
|
+
}), i = o && Object.entries(o).reduce((d, u) => {
|
|
3751
|
+
let [f, p] = u;
|
|
3752
|
+
return p === void 0 || (d[f] = p), d;
|
|
3753
|
+
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
3754
|
+
let { class: f, className: p, ...b } = u;
|
|
3755
|
+
return Object.entries(b).every((S) => {
|
|
3756
|
+
let [v, h] = S;
|
|
3757
3757
|
return Array.isArray(h) ? h.includes({
|
|
3758
3758
|
...s,
|
|
3759
3759
|
...i
|
|
3760
|
-
}[
|
|
3760
|
+
}[v]) : {
|
|
3761
3761
|
...s,
|
|
3762
3762
|
...i
|
|
3763
|
-
}[
|
|
3763
|
+
}[v] === h;
|
|
3764
3764
|
}) ? [
|
|
3765
|
-
...
|
|
3765
|
+
...d,
|
|
3766
3766
|
f,
|
|
3767
|
-
|
|
3768
|
-
] :
|
|
3767
|
+
p
|
|
3768
|
+
] : d;
|
|
3769
3769
|
}, []);
|
|
3770
|
-
return
|
|
3770
|
+
return St(e, a, l, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3771
3771
|
};
|
|
3772
|
-
function
|
|
3772
|
+
function Ct(e, t) {
|
|
3773
3773
|
if (typeof e == "function")
|
|
3774
3774
|
return e(t);
|
|
3775
3775
|
e != null && (e.current = t);
|
|
@@ -3778,49 +3778,49 @@ function so(...e) {
|
|
|
3778
3778
|
return (t) => {
|
|
3779
3779
|
let o = !1;
|
|
3780
3780
|
const r = e.map((n) => {
|
|
3781
|
-
const s =
|
|
3781
|
+
const s = Ct(n, t);
|
|
3782
3782
|
return !o && typeof s == "function" && (o = !0), s;
|
|
3783
3783
|
});
|
|
3784
3784
|
if (o)
|
|
3785
3785
|
return () => {
|
|
3786
3786
|
for (let n = 0; n < r.length; n++) {
|
|
3787
3787
|
const s = r[n];
|
|
3788
|
-
typeof s == "function" ? s() :
|
|
3788
|
+
typeof s == "function" ? s() : Ct(e[n], null);
|
|
3789
3789
|
}
|
|
3790
3790
|
};
|
|
3791
3791
|
};
|
|
3792
3792
|
}
|
|
3793
3793
|
function Y(...e) {
|
|
3794
|
-
return
|
|
3794
|
+
return m.useCallback(so(...e), e);
|
|
3795
3795
|
}
|
|
3796
3796
|
// @__NO_SIDE_EFFECTS__
|
|
3797
|
-
function
|
|
3798
|
-
const t = /* @__PURE__ */ ts(e), o =
|
|
3799
|
-
const { children: s, ...a } = r, i =
|
|
3797
|
+
function Te(e) {
|
|
3798
|
+
const t = /* @__PURE__ */ ts(e), o = m.forwardRef((r, n) => {
|
|
3799
|
+
const { children: s, ...a } = r, i = m.Children.toArray(s), l = i.find(rs);
|
|
3800
3800
|
if (l) {
|
|
3801
|
-
const
|
|
3802
|
-
return /* @__PURE__ */ c(t, { ...a, ref: n, children:
|
|
3801
|
+
const d = l.props.children, u = i.map((f) => f === l ? m.Children.count(d) > 1 ? m.Children.only(null) : m.isValidElement(d) ? d.props.children : null : f);
|
|
3802
|
+
return /* @__PURE__ */ c(t, { ...a, ref: n, children: m.isValidElement(d) ? m.cloneElement(d, void 0, u) : null });
|
|
3803
3803
|
}
|
|
3804
3804
|
return /* @__PURE__ */ c(t, { ...a, ref: n, children: s });
|
|
3805
3805
|
});
|
|
3806
3806
|
return o.displayName = `${e}.Slot`, o;
|
|
3807
3807
|
}
|
|
3808
|
-
var ao = /* @__PURE__ */
|
|
3808
|
+
var ao = /* @__PURE__ */ Te("Slot");
|
|
3809
3809
|
// @__NO_SIDE_EFFECTS__
|
|
3810
3810
|
function ts(e) {
|
|
3811
|
-
const t =
|
|
3811
|
+
const t = m.forwardRef((o, r) => {
|
|
3812
3812
|
const { children: n, ...s } = o;
|
|
3813
|
-
if (
|
|
3813
|
+
if (m.isValidElement(n)) {
|
|
3814
3814
|
const a = ss(n), i = ns(s, n.props);
|
|
3815
|
-
return n.type !==
|
|
3815
|
+
return n.type !== m.Fragment && (i.ref = r ? so(r, a) : a), m.cloneElement(n, i);
|
|
3816
3816
|
}
|
|
3817
|
-
return
|
|
3817
|
+
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
3818
3818
|
});
|
|
3819
3819
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3820
3820
|
}
|
|
3821
3821
|
var os = Symbol("radix.slottable");
|
|
3822
3822
|
function rs(e) {
|
|
3823
|
-
return
|
|
3823
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === os;
|
|
3824
3824
|
}
|
|
3825
3825
|
function ns(e, t) {
|
|
3826
3826
|
const o = { ...t };
|
|
@@ -3856,8 +3856,8 @@ var as = [
|
|
|
3856
3856
|
"span",
|
|
3857
3857
|
"svg",
|
|
3858
3858
|
"ul"
|
|
3859
|
-
],
|
|
3860
|
-
const o = /* @__PURE__ */
|
|
3859
|
+
], B = as.reduce((e, t) => {
|
|
3860
|
+
const o = /* @__PURE__ */ Te(`Primitive.${t}`), r = m.forwardRef((n, s) => {
|
|
3861
3861
|
const { asChild: a, ...i } = n, l = a ? o : t;
|
|
3862
3862
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
3863
3863
|
});
|
|
@@ -3866,28 +3866,28 @@ var as = [
|
|
|
3866
3866
|
function ge(e, t = []) {
|
|
3867
3867
|
let o = [];
|
|
3868
3868
|
function r(s, a) {
|
|
3869
|
-
const i =
|
|
3869
|
+
const i = m.createContext(a), l = o.length;
|
|
3870
3870
|
o = [...o, a];
|
|
3871
|
-
const
|
|
3872
|
-
var y;
|
|
3873
|
-
const { scope: m, children: g, ...k } = f, x = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[l]) || i, h = p.useMemo(() => k, Object.values(k));
|
|
3874
|
-
return /* @__PURE__ */ c(x.Provider, { value: h, children: g });
|
|
3875
|
-
};
|
|
3876
|
-
u.displayName = s + "Provider";
|
|
3877
|
-
function d(f, m) {
|
|
3871
|
+
const d = (f) => {
|
|
3878
3872
|
var x;
|
|
3879
|
-
const
|
|
3880
|
-
|
|
3873
|
+
const { scope: p, children: b, ...S } = f, v = ((x = p == null ? void 0 : p[e]) == null ? void 0 : x[l]) || i, h = m.useMemo(() => S, Object.values(S));
|
|
3874
|
+
return /* @__PURE__ */ c(v.Provider, { value: h, children: b });
|
|
3875
|
+
};
|
|
3876
|
+
d.displayName = s + "Provider";
|
|
3877
|
+
function u(f, p) {
|
|
3878
|
+
var v;
|
|
3879
|
+
const b = ((v = p == null ? void 0 : p[e]) == null ? void 0 : v[l]) || i, S = m.useContext(b);
|
|
3880
|
+
if (S) return S;
|
|
3881
3881
|
if (a !== void 0) return a;
|
|
3882
3882
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
3883
3883
|
}
|
|
3884
|
-
return [
|
|
3884
|
+
return [d, u];
|
|
3885
3885
|
}
|
|
3886
3886
|
const n = () => {
|
|
3887
|
-
const s = o.map((a) =>
|
|
3887
|
+
const s = o.map((a) => m.createContext(a));
|
|
3888
3888
|
return function(i) {
|
|
3889
3889
|
const l = (i == null ? void 0 : i[e]) || s;
|
|
3890
|
-
return
|
|
3890
|
+
return m.useMemo(
|
|
3891
3891
|
() => ({ [`__scope${e}`]: { ...i, [e]: l } }),
|
|
3892
3892
|
[i, l]
|
|
3893
3893
|
);
|
|
@@ -3904,11 +3904,11 @@ function is(...e) {
|
|
|
3904
3904
|
scopeName: n.scopeName
|
|
3905
3905
|
}));
|
|
3906
3906
|
return function(s) {
|
|
3907
|
-
const a = r.reduce((i, { useScope: l, scopeName:
|
|
3908
|
-
const f = l(s)[`__scope${
|
|
3907
|
+
const a = r.reduce((i, { useScope: l, scopeName: d }) => {
|
|
3908
|
+
const f = l(s)[`__scope${d}`];
|
|
3909
3909
|
return { ...i, ...f };
|
|
3910
3910
|
}, {});
|
|
3911
|
-
return
|
|
3911
|
+
return m.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
|
|
3912
3912
|
};
|
|
3913
3913
|
};
|
|
3914
3914
|
return o.scopeName = t.scopeName, o;
|
|
@@ -3917,39 +3917,39 @@ function ls(e) {
|
|
|
3917
3917
|
const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
|
|
3918
3918
|
t,
|
|
3919
3919
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3920
|
-
), a = (
|
|
3921
|
-
const { scope: h, children:
|
|
3922
|
-
return /* @__PURE__ */ c(n, { scope: h, itemMap:
|
|
3920
|
+
), a = (v) => {
|
|
3921
|
+
const { scope: h, children: x } = v, C = G.useRef(null), w = G.useRef(/* @__PURE__ */ new Map()).current;
|
|
3922
|
+
return /* @__PURE__ */ c(n, { scope: h, itemMap: w, collectionRef: C, children: x });
|
|
3923
3923
|
};
|
|
3924
3924
|
a.displayName = t;
|
|
3925
|
-
const i = e + "CollectionSlot", l = /* @__PURE__ */
|
|
3926
|
-
(
|
|
3927
|
-
const { scope:
|
|
3928
|
-
return /* @__PURE__ */ c(l, { ref: A, children:
|
|
3925
|
+
const i = e + "CollectionSlot", l = /* @__PURE__ */ Te(i), d = G.forwardRef(
|
|
3926
|
+
(v, h) => {
|
|
3927
|
+
const { scope: x, children: C } = v, w = s(i, x), A = Y(h, w.collectionRef);
|
|
3928
|
+
return /* @__PURE__ */ c(l, { ref: A, children: C });
|
|
3929
3929
|
}
|
|
3930
3930
|
);
|
|
3931
|
-
|
|
3932
|
-
const
|
|
3933
|
-
(
|
|
3934
|
-
const { scope:
|
|
3935
|
-
return G.useEffect(() => (
|
|
3931
|
+
d.displayName = i;
|
|
3932
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ Te(u), b = G.forwardRef(
|
|
3933
|
+
(v, h) => {
|
|
3934
|
+
const { scope: x, children: C, ...w } = v, A = G.useRef(null), P = Y(h, A), N = s(u, x);
|
|
3935
|
+
return G.useEffect(() => (N.itemMap.set(A, { ref: A, ...w }), () => void N.itemMap.delete(A))), /* @__PURE__ */ c(p, { [f]: "", ref: P, children: C });
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
|
-
|
|
3939
|
-
function
|
|
3940
|
-
const h = s(e + "CollectionConsumer",
|
|
3938
|
+
b.displayName = u;
|
|
3939
|
+
function S(v) {
|
|
3940
|
+
const h = s(e + "CollectionConsumer", v);
|
|
3941
3941
|
return G.useCallback(() => {
|
|
3942
|
-
const
|
|
3943
|
-
if (!
|
|
3944
|
-
const
|
|
3942
|
+
const C = h.collectionRef.current;
|
|
3943
|
+
if (!C) return [];
|
|
3944
|
+
const w = Array.from(C.querySelectorAll(`[${f}]`));
|
|
3945
3945
|
return Array.from(h.itemMap.values()).sort(
|
|
3946
|
-
(
|
|
3946
|
+
(N, I) => w.indexOf(N.ref.current) - w.indexOf(I.ref.current)
|
|
3947
3947
|
);
|
|
3948
3948
|
}, [h.collectionRef, h.itemMap]);
|
|
3949
3949
|
}
|
|
3950
3950
|
return [
|
|
3951
|
-
{ Provider: a, Slot:
|
|
3952
|
-
|
|
3951
|
+
{ Provider: a, Slot: d, ItemSlot: b },
|
|
3952
|
+
S,
|
|
3953
3953
|
r
|
|
3954
3954
|
];
|
|
3955
3955
|
}
|
|
@@ -3959,8 +3959,8 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
|
3959
3959
|
return t == null ? void 0 : t(n);
|
|
3960
3960
|
};
|
|
3961
3961
|
}
|
|
3962
|
-
var oe = globalThis != null && globalThis.document ?
|
|
3963
|
-
}, cs =
|
|
3962
|
+
var oe = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
|
|
3963
|
+
}, cs = m[" useInsertionEffect ".trim().toString()] || oe;
|
|
3964
3964
|
function io({
|
|
3965
3965
|
prop: e,
|
|
3966
3966
|
defaultProp: t,
|
|
@@ -3973,35 +3973,35 @@ function io({
|
|
|
3973
3973
|
onChange: o
|
|
3974
3974
|
}), i = e !== void 0, l = i ? e : n;
|
|
3975
3975
|
{
|
|
3976
|
-
const
|
|
3977
|
-
|
|
3978
|
-
const f =
|
|
3976
|
+
const u = m.useRef(e !== void 0);
|
|
3977
|
+
m.useEffect(() => {
|
|
3978
|
+
const f = u.current;
|
|
3979
3979
|
f !== i && console.warn(
|
|
3980
3980
|
`${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.`
|
|
3981
|
-
),
|
|
3981
|
+
), u.current = i;
|
|
3982
3982
|
}, [i, r]);
|
|
3983
3983
|
}
|
|
3984
|
-
const
|
|
3985
|
-
(
|
|
3984
|
+
const d = m.useCallback(
|
|
3985
|
+
(u) => {
|
|
3986
3986
|
var f;
|
|
3987
3987
|
if (i) {
|
|
3988
|
-
const
|
|
3989
|
-
|
|
3988
|
+
const p = us(u) ? u(e) : u;
|
|
3989
|
+
p !== e && ((f = a.current) == null || f.call(a, p));
|
|
3990
3990
|
} else
|
|
3991
|
-
s(
|
|
3991
|
+
s(u);
|
|
3992
3992
|
},
|
|
3993
3993
|
[i, e, s, a]
|
|
3994
3994
|
);
|
|
3995
|
-
return [l,
|
|
3995
|
+
return [l, d];
|
|
3996
3996
|
}
|
|
3997
3997
|
function ds({
|
|
3998
3998
|
defaultProp: e,
|
|
3999
3999
|
onChange: t
|
|
4000
4000
|
}) {
|
|
4001
|
-
const [o, r] =
|
|
4001
|
+
const [o, r] = m.useState(e), n = m.useRef(o), s = m.useRef(t);
|
|
4002
4002
|
return cs(() => {
|
|
4003
4003
|
s.current = t;
|
|
4004
|
-
}, [t]),
|
|
4004
|
+
}, [t]), m.useEffect(() => {
|
|
4005
4005
|
var a;
|
|
4006
4006
|
n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
|
|
4007
4007
|
}, [o, n]), [o, r, s];
|
|
@@ -4010,15 +4010,15 @@ function us(e) {
|
|
|
4010
4010
|
return typeof e == "function";
|
|
4011
4011
|
}
|
|
4012
4012
|
function fs(e, t) {
|
|
4013
|
-
return
|
|
4013
|
+
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4014
4014
|
}
|
|
4015
4015
|
var ue = (e) => {
|
|
4016
|
-
const { present: t, children: o } = e, r = ms(t), n = typeof o == "function" ? o({ present: r.isPresent }) :
|
|
4017
|
-
return typeof o == "function" || r.isPresent ?
|
|
4016
|
+
const { present: t, children: o } = e, r = ms(t), n = typeof o == "function" ? o({ present: r.isPresent }) : m.Children.only(o), s = Y(r.ref, ps(n));
|
|
4017
|
+
return typeof o == "function" || r.isPresent ? m.cloneElement(n, { ref: s }) : null;
|
|
4018
4018
|
};
|
|
4019
4019
|
ue.displayName = "Presence";
|
|
4020
4020
|
function ms(e) {
|
|
4021
|
-
const [t, o] =
|
|
4021
|
+
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = fs(a, {
|
|
4022
4022
|
mounted: {
|
|
4023
4023
|
UNMOUNT: "unmounted",
|
|
4024
4024
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4031,38 +4031,38 @@ function ms(e) {
|
|
|
4031
4031
|
MOUNT: "mounted"
|
|
4032
4032
|
}
|
|
4033
4033
|
});
|
|
4034
|
-
return
|
|
4035
|
-
const
|
|
4036
|
-
s.current = i === "mounted" ?
|
|
4034
|
+
return m.useEffect(() => {
|
|
4035
|
+
const d = Ae(r.current);
|
|
4036
|
+
s.current = i === "mounted" ? d : "none";
|
|
4037
4037
|
}, [i]), oe(() => {
|
|
4038
|
-
const
|
|
4039
|
-
if (
|
|
4040
|
-
const
|
|
4041
|
-
e ? l("MOUNT") :
|
|
4038
|
+
const d = r.current, u = n.current;
|
|
4039
|
+
if (u !== e) {
|
|
4040
|
+
const p = s.current, b = Ae(d);
|
|
4041
|
+
e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && p !== b ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
4042
4042
|
}
|
|
4043
4043
|
}, [e, l]), oe(() => {
|
|
4044
4044
|
if (t) {
|
|
4045
|
-
let
|
|
4046
|
-
const
|
|
4047
|
-
const
|
|
4048
|
-
if (
|
|
4045
|
+
let d;
|
|
4046
|
+
const u = t.ownerDocument.defaultView ?? window, f = (b) => {
|
|
4047
|
+
const v = Ae(r.current).includes(CSS.escape(b.animationName));
|
|
4048
|
+
if (b.target === t && v && (l("ANIMATION_END"), !n.current)) {
|
|
4049
4049
|
const h = t.style.animationFillMode;
|
|
4050
|
-
t.style.animationFillMode = "forwards",
|
|
4050
|
+
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
4051
4051
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
4052
4052
|
});
|
|
4053
4053
|
}
|
|
4054
|
-
},
|
|
4055
|
-
|
|
4054
|
+
}, p = (b) => {
|
|
4055
|
+
b.target === t && (s.current = Ae(r.current));
|
|
4056
4056
|
};
|
|
4057
|
-
return t.addEventListener("animationstart",
|
|
4058
|
-
|
|
4057
|
+
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4058
|
+
u.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
4059
4059
|
};
|
|
4060
4060
|
} else
|
|
4061
4061
|
l("ANIMATION_END");
|
|
4062
4062
|
}, [t, l]), {
|
|
4063
4063
|
isPresent: ["mounted", "unmountSuspended"].includes(i),
|
|
4064
|
-
ref:
|
|
4065
|
-
r.current =
|
|
4064
|
+
ref: m.useCallback((d) => {
|
|
4065
|
+
r.current = d ? getComputedStyle(d) : null, o(d);
|
|
4066
4066
|
}, [])
|
|
4067
4067
|
};
|
|
4068
4068
|
}
|
|
@@ -4074,29 +4074,29 @@ function ps(e) {
|
|
|
4074
4074
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
4075
4075
|
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);
|
|
4076
4076
|
}
|
|
4077
|
-
var hs =
|
|
4077
|
+
var hs = m[" useId ".trim().toString()] || (() => {
|
|
4078
4078
|
}), gs = 0;
|
|
4079
4079
|
function lo(e) {
|
|
4080
|
-
const [t, o] =
|
|
4080
|
+
const [t, o] = m.useState(hs());
|
|
4081
4081
|
return oe(() => {
|
|
4082
4082
|
o((r) => r ?? String(gs++));
|
|
4083
4083
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4084
4084
|
}
|
|
4085
|
-
var bs =
|
|
4086
|
-
function
|
|
4087
|
-
const t =
|
|
4085
|
+
var bs = m.createContext(void 0);
|
|
4086
|
+
function nt(e) {
|
|
4087
|
+
const t = m.useContext(bs);
|
|
4088
4088
|
return e || t || "ltr";
|
|
4089
4089
|
}
|
|
4090
4090
|
function J(e) {
|
|
4091
|
-
const t =
|
|
4092
|
-
return
|
|
4091
|
+
const t = m.useRef(e);
|
|
4092
|
+
return m.useEffect(() => {
|
|
4093
4093
|
t.current = e;
|
|
4094
|
-
}),
|
|
4094
|
+
}), m.useMemo(() => (...o) => {
|
|
4095
4095
|
var r;
|
|
4096
4096
|
return (r = t.current) == null ? void 0 : r.call(t, ...o);
|
|
4097
4097
|
}, []);
|
|
4098
4098
|
}
|
|
4099
|
-
var
|
|
4099
|
+
var Ve = { exports: {} }, Be = {};
|
|
4100
4100
|
/**
|
|
4101
4101
|
* @license React
|
|
4102
4102
|
* use-sync-external-store-shim.production.js
|
|
@@ -4106,50 +4106,50 @@ var je = { exports: {} }, Ve = {};
|
|
|
4106
4106
|
* This source code is licensed under the MIT license found in the
|
|
4107
4107
|
* LICENSE file in the root directory of this source tree.
|
|
4108
4108
|
*/
|
|
4109
|
-
var
|
|
4109
|
+
var Et;
|
|
4110
4110
|
function vs() {
|
|
4111
|
-
if (
|
|
4112
|
-
|
|
4111
|
+
if (Et) return Be;
|
|
4112
|
+
Et = 1;
|
|
4113
4113
|
var e = G;
|
|
4114
|
-
function t(f,
|
|
4115
|
-
return f ===
|
|
4114
|
+
function t(f, p) {
|
|
4115
|
+
return f === p && (f !== 0 || 1 / f === 1 / p) || f !== f && p !== p;
|
|
4116
4116
|
}
|
|
4117
4117
|
var o = typeof Object.is == "function" ? Object.is : t, r = e.useState, n = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
4118
|
-
function i(f,
|
|
4119
|
-
var
|
|
4118
|
+
function i(f, p) {
|
|
4119
|
+
var b = p(), S = r({ inst: { value: b, getSnapshot: p } }), v = S[0].inst, h = S[1];
|
|
4120
4120
|
return s(
|
|
4121
4121
|
function() {
|
|
4122
|
-
|
|
4122
|
+
v.value = b, v.getSnapshot = p, l(v) && h({ inst: v });
|
|
4123
4123
|
},
|
|
4124
|
-
[f,
|
|
4124
|
+
[f, b, p]
|
|
4125
4125
|
), n(
|
|
4126
4126
|
function() {
|
|
4127
|
-
return l(
|
|
4128
|
-
l(
|
|
4127
|
+
return l(v) && h({ inst: v }), f(function() {
|
|
4128
|
+
l(v) && h({ inst: v });
|
|
4129
4129
|
});
|
|
4130
4130
|
},
|
|
4131
4131
|
[f]
|
|
4132
|
-
), a(
|
|
4132
|
+
), a(b), b;
|
|
4133
4133
|
}
|
|
4134
4134
|
function l(f) {
|
|
4135
|
-
var
|
|
4135
|
+
var p = f.getSnapshot;
|
|
4136
4136
|
f = f.value;
|
|
4137
4137
|
try {
|
|
4138
|
-
var
|
|
4139
|
-
return !o(f,
|
|
4138
|
+
var b = p();
|
|
4139
|
+
return !o(f, b);
|
|
4140
4140
|
} catch {
|
|
4141
4141
|
return !0;
|
|
4142
4142
|
}
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4145
|
-
return
|
|
4144
|
+
function d(f, p) {
|
|
4145
|
+
return p();
|
|
4146
4146
|
}
|
|
4147
|
-
var
|
|
4148
|
-
return
|
|
4147
|
+
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
|
4148
|
+
return Be.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, Be;
|
|
4149
4149
|
}
|
|
4150
|
-
var
|
|
4150
|
+
var Nt;
|
|
4151
4151
|
function xs() {
|
|
4152
|
-
return
|
|
4152
|
+
return Nt || (Nt = 1, Ve.exports = vs()), Ve.exports;
|
|
4153
4153
|
}
|
|
4154
4154
|
var ws = xs();
|
|
4155
4155
|
function ys() {
|
|
@@ -4163,73 +4163,73 @@ function ks() {
|
|
|
4163
4163
|
return () => {
|
|
4164
4164
|
};
|
|
4165
4165
|
}
|
|
4166
|
-
var
|
|
4166
|
+
var st = "Avatar", [Ss] = ge(st), [Cs, co] = Ss(st), uo = m.forwardRef(
|
|
4167
4167
|
(e, t) => {
|
|
4168
|
-
const { __scopeAvatar: o, ...r } = e, [n, s] =
|
|
4168
|
+
const { __scopeAvatar: o, ...r } = e, [n, s] = m.useState("idle");
|
|
4169
4169
|
return /* @__PURE__ */ c(
|
|
4170
4170
|
Cs,
|
|
4171
4171
|
{
|
|
4172
4172
|
scope: o,
|
|
4173
4173
|
imageLoadingStatus: n,
|
|
4174
4174
|
onImageLoadingStatusChange: s,
|
|
4175
|
-
children: /* @__PURE__ */ c(
|
|
4175
|
+
children: /* @__PURE__ */ c(B.span, { ...r, ref: t })
|
|
4176
4176
|
}
|
|
4177
4177
|
);
|
|
4178
4178
|
}
|
|
4179
4179
|
);
|
|
4180
|
-
uo.displayName =
|
|
4181
|
-
var fo = "AvatarImage", mo =
|
|
4180
|
+
uo.displayName = st;
|
|
4181
|
+
var fo = "AvatarImage", mo = m.forwardRef(
|
|
4182
4182
|
(e, t) => {
|
|
4183
4183
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4184
|
-
}, ...s } = e, a = co(fo, o), i = Es(r, s), l = J((
|
|
4185
|
-
n(
|
|
4184
|
+
}, ...s } = e, a = co(fo, o), i = Es(r, s), l = J((d) => {
|
|
4185
|
+
n(d), a.onImageLoadingStatusChange(d);
|
|
4186
4186
|
});
|
|
4187
4187
|
return oe(() => {
|
|
4188
4188
|
i !== "idle" && l(i);
|
|
4189
|
-
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(
|
|
4189
|
+
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(B.img, { ...s, ref: t, src: r }) : null;
|
|
4190
4190
|
}
|
|
4191
4191
|
);
|
|
4192
4192
|
mo.displayName = fo;
|
|
4193
|
-
var po = "AvatarFallback", ho =
|
|
4193
|
+
var po = "AvatarFallback", ho = m.forwardRef(
|
|
4194
4194
|
(e, t) => {
|
|
4195
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = co(po, o), [a, i] =
|
|
4196
|
-
return
|
|
4195
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = co(po, o), [a, i] = m.useState(r === void 0);
|
|
4196
|
+
return m.useEffect(() => {
|
|
4197
4197
|
if (r !== void 0) {
|
|
4198
4198
|
const l = window.setTimeout(() => i(!0), r);
|
|
4199
4199
|
return () => window.clearTimeout(l);
|
|
4200
4200
|
}
|
|
4201
|
-
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(
|
|
4201
|
+
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(B.span, { ...n, ref: t }) : null;
|
|
4202
4202
|
}
|
|
4203
4203
|
);
|
|
4204
4204
|
ho.displayName = po;
|
|
4205
|
-
function
|
|
4205
|
+
function At(e, t) {
|
|
4206
4206
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4207
4207
|
}
|
|
4208
4208
|
function Es(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
4209
|
-
const r = ys(), n =
|
|
4210
|
-
() =>
|
|
4209
|
+
const r = ys(), n = m.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = m.useState(
|
|
4210
|
+
() => At(s, e)
|
|
4211
4211
|
);
|
|
4212
4212
|
return oe(() => {
|
|
4213
|
-
i(
|
|
4213
|
+
i(At(s, e));
|
|
4214
4214
|
}, [s, e]), oe(() => {
|
|
4215
4215
|
const l = (f) => () => {
|
|
4216
4216
|
i(f);
|
|
4217
4217
|
};
|
|
4218
4218
|
if (!s) return;
|
|
4219
|
-
const
|
|
4220
|
-
return s.addEventListener("load",
|
|
4221
|
-
s.removeEventListener("load",
|
|
4219
|
+
const d = l("loaded"), u = l("error");
|
|
4220
|
+
return s.addEventListener("load", d), s.addEventListener("error", u), t && (s.referrerPolicy = t), typeof o == "string" && (s.crossOrigin = o), () => {
|
|
4221
|
+
s.removeEventListener("load", d), s.removeEventListener("error", u);
|
|
4222
4222
|
};
|
|
4223
4223
|
}, [s, o, t]), a;
|
|
4224
4224
|
}
|
|
4225
|
-
var Ns = uo, As = mo, _s = ho,
|
|
4225
|
+
var Ns = uo, As = mo, _s = ho, Ge = "rovingFocusGroup.onEntryFocus", Is = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, Rs] = ls(be), [Ps, bo] = ge(
|
|
4226
4226
|
be,
|
|
4227
4227
|
[Rs]
|
|
4228
|
-
), [Ts, zs] = Ps(be), vo =
|
|
4229
|
-
(e, t) => /* @__PURE__ */ c(
|
|
4228
|
+
), [Ts, zs] = Ps(be), vo = m.forwardRef(
|
|
4229
|
+
(e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ms, { ...e, ref: t }) }) })
|
|
4230
4230
|
);
|
|
4231
4231
|
vo.displayName = be;
|
|
4232
|
-
var Ms =
|
|
4232
|
+
var Ms = m.forwardRef((e, t) => {
|
|
4233
4233
|
const {
|
|
4234
4234
|
__scopeRovingFocusGroup: o,
|
|
4235
4235
|
orientation: r,
|
|
@@ -4238,70 +4238,70 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4238
4238
|
currentTabStopId: a,
|
|
4239
4239
|
defaultCurrentTabStopId: i,
|
|
4240
4240
|
onCurrentTabStopIdChange: l,
|
|
4241
|
-
onEntryFocus:
|
|
4242
|
-
preventScrollOnEntryFocus:
|
|
4241
|
+
onEntryFocus: d,
|
|
4242
|
+
preventScrollOnEntryFocus: u = !1,
|
|
4243
4243
|
...f
|
|
4244
|
-
} = e,
|
|
4244
|
+
} = e, p = m.useRef(null), b = Y(t, p), S = nt(s), [v, h] = io({
|
|
4245
4245
|
prop: a,
|
|
4246
4246
|
defaultProp: i ?? null,
|
|
4247
4247
|
onChange: l,
|
|
4248
4248
|
caller: be
|
|
4249
|
-
}), [
|
|
4250
|
-
return
|
|
4251
|
-
const
|
|
4252
|
-
if (
|
|
4253
|
-
return
|
|
4254
|
-
}, [
|
|
4249
|
+
}), [x, C] = m.useState(!1), w = J(d), A = go(o), P = m.useRef(!1), [N, I] = m.useState(0);
|
|
4250
|
+
return m.useEffect(() => {
|
|
4251
|
+
const g = p.current;
|
|
4252
|
+
if (g)
|
|
4253
|
+
return g.addEventListener(Ge, w), () => g.removeEventListener(Ge, w);
|
|
4254
|
+
}, [w]), /* @__PURE__ */ c(
|
|
4255
4255
|
Ts,
|
|
4256
4256
|
{
|
|
4257
4257
|
scope: o,
|
|
4258
4258
|
orientation: r,
|
|
4259
|
-
dir:
|
|
4259
|
+
dir: S,
|
|
4260
4260
|
loop: n,
|
|
4261
|
-
currentTabStopId:
|
|
4262
|
-
onItemFocus:
|
|
4263
|
-
(
|
|
4261
|
+
currentTabStopId: v,
|
|
4262
|
+
onItemFocus: m.useCallback(
|
|
4263
|
+
(g) => h(g),
|
|
4264
4264
|
[h]
|
|
4265
4265
|
),
|
|
4266
|
-
onItemShiftTab:
|
|
4267
|
-
onFocusableItemAdd:
|
|
4268
|
-
() => I((
|
|
4266
|
+
onItemShiftTab: m.useCallback(() => C(!0), []),
|
|
4267
|
+
onFocusableItemAdd: m.useCallback(
|
|
4268
|
+
() => I((g) => g + 1),
|
|
4269
4269
|
[]
|
|
4270
4270
|
),
|
|
4271
|
-
onFocusableItemRemove:
|
|
4272
|
-
() => I((
|
|
4271
|
+
onFocusableItemRemove: m.useCallback(
|
|
4272
|
+
() => I((g) => g - 1),
|
|
4273
4273
|
[]
|
|
4274
4274
|
),
|
|
4275
4275
|
children: /* @__PURE__ */ c(
|
|
4276
|
-
|
|
4276
|
+
B.div,
|
|
4277
4277
|
{
|
|
4278
|
-
tabIndex:
|
|
4278
|
+
tabIndex: x || N === 0 ? -1 : 0,
|
|
4279
4279
|
"data-orientation": r,
|
|
4280
4280
|
...f,
|
|
4281
|
-
ref:
|
|
4281
|
+
ref: b,
|
|
4282
4282
|
style: { outline: "none", ...e.style },
|
|
4283
4283
|
onMouseDown: W(e.onMouseDown, () => {
|
|
4284
4284
|
P.current = !0;
|
|
4285
4285
|
}),
|
|
4286
|
-
onFocus: W(e.onFocus, (
|
|
4287
|
-
const
|
|
4288
|
-
if (
|
|
4289
|
-
const M = new CustomEvent(
|
|
4290
|
-
if (
|
|
4291
|
-
const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), ve = O.find(($) => $.id ===
|
|
4286
|
+
onFocus: W(e.onFocus, (g) => {
|
|
4287
|
+
const E = !P.current;
|
|
4288
|
+
if (g.target === g.currentTarget && E && !x) {
|
|
4289
|
+
const M = new CustomEvent(Ge, Is);
|
|
4290
|
+
if (g.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
4291
|
+
const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), ve = O.find(($) => $.id === v), Q = [K, ve, ...O].filter(
|
|
4292
4292
|
Boolean
|
|
4293
4293
|
).map(($) => $.ref.current);
|
|
4294
|
-
yo(Q,
|
|
4294
|
+
yo(Q, u);
|
|
4295
4295
|
}
|
|
4296
4296
|
}
|
|
4297
4297
|
P.current = !1;
|
|
4298
4298
|
}),
|
|
4299
|
-
onBlur: W(e.onBlur, () =>
|
|
4299
|
+
onBlur: W(e.onBlur, () => C(!1))
|
|
4300
4300
|
}
|
|
4301
4301
|
)
|
|
4302
4302
|
}
|
|
4303
4303
|
);
|
|
4304
|
-
}), xo = "RovingFocusGroupItem", wo =
|
|
4304
|
+
}), xo = "RovingFocusGroupItem", wo = m.forwardRef(
|
|
4305
4305
|
(e, t) => {
|
|
4306
4306
|
const {
|
|
4307
4307
|
__scopeRovingFocusGroup: o,
|
|
@@ -4310,49 +4310,49 @@ var Ms = p.forwardRef((e, t) => {
|
|
|
4310
4310
|
tabStopId: s,
|
|
4311
4311
|
children: a,
|
|
4312
4312
|
...i
|
|
4313
|
-
} = e, l = lo(),
|
|
4314
|
-
return
|
|
4313
|
+
} = e, l = lo(), d = s || l, u = zs(xo, o), f = u.currentTabStopId === d, p = go(o), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: v } = u;
|
|
4314
|
+
return m.useEffect(() => {
|
|
4315
4315
|
if (r)
|
|
4316
|
-
return
|
|
4317
|
-
}, [r,
|
|
4318
|
-
|
|
4316
|
+
return b(), () => S();
|
|
4317
|
+
}, [r, b, S]), /* @__PURE__ */ c(
|
|
4318
|
+
Ze.ItemSlot,
|
|
4319
4319
|
{
|
|
4320
4320
|
scope: o,
|
|
4321
|
-
id:
|
|
4321
|
+
id: d,
|
|
4322
4322
|
focusable: r,
|
|
4323
4323
|
active: n,
|
|
4324
4324
|
children: /* @__PURE__ */ c(
|
|
4325
|
-
|
|
4325
|
+
B.span,
|
|
4326
4326
|
{
|
|
4327
4327
|
tabIndex: f ? 0 : -1,
|
|
4328
|
-
"data-orientation":
|
|
4328
|
+
"data-orientation": u.orientation,
|
|
4329
4329
|
...i,
|
|
4330
4330
|
ref: t,
|
|
4331
4331
|
onMouseDown: W(e.onMouseDown, (h) => {
|
|
4332
|
-
r ?
|
|
4332
|
+
r ? u.onItemFocus(d) : h.preventDefault();
|
|
4333
4333
|
}),
|
|
4334
|
-
onFocus: W(e.onFocus, () =>
|
|
4334
|
+
onFocus: W(e.onFocus, () => u.onItemFocus(d)),
|
|
4335
4335
|
onKeyDown: W(e.onKeyDown, (h) => {
|
|
4336
4336
|
if (h.key === "Tab" && h.shiftKey) {
|
|
4337
|
-
|
|
4337
|
+
u.onItemShiftTab();
|
|
4338
4338
|
return;
|
|
4339
4339
|
}
|
|
4340
4340
|
if (h.target !== h.currentTarget) return;
|
|
4341
|
-
const
|
|
4342
|
-
if (
|
|
4341
|
+
const x = $s(h, u.orientation, u.dir);
|
|
4342
|
+
if (x !== void 0) {
|
|
4343
4343
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
4344
4344
|
h.preventDefault();
|
|
4345
|
-
let
|
|
4346
|
-
if (
|
|
4347
|
-
else if (
|
|
4348
|
-
|
|
4349
|
-
const A =
|
|
4350
|
-
|
|
4345
|
+
let w = p().filter((A) => A.focusable).map((A) => A.ref.current);
|
|
4346
|
+
if (x === "last") w.reverse();
|
|
4347
|
+
else if (x === "prev" || x === "next") {
|
|
4348
|
+
x === "prev" && w.reverse();
|
|
4349
|
+
const A = w.indexOf(h.currentTarget);
|
|
4350
|
+
w = u.loop ? Fs(w, A + 1) : w.slice(A + 1);
|
|
4351
4351
|
}
|
|
4352
|
-
setTimeout(() => yo(
|
|
4352
|
+
setTimeout(() => yo(w));
|
|
4353
4353
|
}
|
|
4354
4354
|
}),
|
|
4355
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop:
|
|
4355
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: v != null }) : a
|
|
4356
4356
|
}
|
|
4357
4357
|
)
|
|
4358
4358
|
}
|
|
@@ -4390,10 +4390,10 @@ var Ds = vo, Us = wo;
|
|
|
4390
4390
|
function Ws(e, [t, o]) {
|
|
4391
4391
|
return Math.min(o, Math.max(t, e));
|
|
4392
4392
|
}
|
|
4393
|
-
function
|
|
4394
|
-
return
|
|
4393
|
+
function js(e, t) {
|
|
4394
|
+
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4395
4395
|
}
|
|
4396
|
-
var
|
|
4396
|
+
var at = "ScrollArea", [ko] = ge(at), [Hs, q] = ko(at), So = m.forwardRef(
|
|
4397
4397
|
(e, t) => {
|
|
4398
4398
|
const {
|
|
4399
4399
|
__scopeScrollArea: o,
|
|
@@ -4401,40 +4401,40 @@ var st = "ScrollArea", [ko] = ge(st), [js, q] = ko(st), So = p.forwardRef(
|
|
|
4401
4401
|
dir: n,
|
|
4402
4402
|
scrollHideDelay: s = 600,
|
|
4403
4403
|
...a
|
|
4404
|
-
} = e, [i, l] =
|
|
4404
|
+
} = e, [i, l] = m.useState(null), [d, u] = m.useState(null), [f, p] = m.useState(null), [b, S] = m.useState(null), [v, h] = m.useState(null), [x, C] = m.useState(0), [w, A] = m.useState(0), [P, N] = m.useState(!1), [I, g] = m.useState(!1), E = Y(t, (O) => l(O)), M = nt(n);
|
|
4405
4405
|
return /* @__PURE__ */ c(
|
|
4406
|
-
|
|
4406
|
+
Hs,
|
|
4407
4407
|
{
|
|
4408
4408
|
scope: o,
|
|
4409
4409
|
type: r,
|
|
4410
4410
|
dir: M,
|
|
4411
4411
|
scrollHideDelay: s,
|
|
4412
4412
|
scrollArea: i,
|
|
4413
|
-
viewport:
|
|
4414
|
-
onViewportChange:
|
|
4413
|
+
viewport: d,
|
|
4414
|
+
onViewportChange: u,
|
|
4415
4415
|
content: f,
|
|
4416
|
-
onContentChange:
|
|
4417
|
-
scrollbarX:
|
|
4418
|
-
onScrollbarXChange:
|
|
4416
|
+
onContentChange: p,
|
|
4417
|
+
scrollbarX: b,
|
|
4418
|
+
onScrollbarXChange: S,
|
|
4419
4419
|
scrollbarXEnabled: P,
|
|
4420
|
-
onScrollbarXEnabledChange:
|
|
4421
|
-
scrollbarY:
|
|
4420
|
+
onScrollbarXEnabledChange: N,
|
|
4421
|
+
scrollbarY: v,
|
|
4422
4422
|
onScrollbarYChange: h,
|
|
4423
4423
|
scrollbarYEnabled: I,
|
|
4424
|
-
onScrollbarYEnabledChange:
|
|
4425
|
-
onCornerWidthChange:
|
|
4424
|
+
onScrollbarYEnabledChange: g,
|
|
4425
|
+
onCornerWidthChange: C,
|
|
4426
4426
|
onCornerHeightChange: A,
|
|
4427
4427
|
children: /* @__PURE__ */ c(
|
|
4428
|
-
|
|
4428
|
+
B.div,
|
|
4429
4429
|
{
|
|
4430
4430
|
dir: M,
|
|
4431
4431
|
...a,
|
|
4432
|
-
ref:
|
|
4432
|
+
ref: E,
|
|
4433
4433
|
style: {
|
|
4434
4434
|
position: "relative",
|
|
4435
4435
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
4436
|
-
"--radix-scroll-area-corner-width":
|
|
4437
|
-
"--radix-scroll-area-corner-height":
|
|
4436
|
+
"--radix-scroll-area-corner-width": x + "px",
|
|
4437
|
+
"--radix-scroll-area-corner-height": w + "px",
|
|
4438
4438
|
...e.style
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
@@ -4443,10 +4443,10 @@ var st = "ScrollArea", [ko] = ge(st), [js, q] = ko(st), So = p.forwardRef(
|
|
|
4443
4443
|
);
|
|
4444
4444
|
}
|
|
4445
4445
|
);
|
|
4446
|
-
So.displayName =
|
|
4447
|
-
var Co = "ScrollAreaViewport", Eo =
|
|
4446
|
+
So.displayName = at;
|
|
4447
|
+
var Co = "ScrollAreaViewport", Eo = m.forwardRef(
|
|
4448
4448
|
(e, t) => {
|
|
4449
|
-
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(Co, o), i =
|
|
4449
|
+
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(Co, o), i = m.useRef(null), l = Y(t, i, a.onViewportChange);
|
|
4450
4450
|
return /* @__PURE__ */ T(he, { children: [
|
|
4451
4451
|
/* @__PURE__ */ c(
|
|
4452
4452
|
"style",
|
|
@@ -4458,7 +4458,7 @@ var Co = "ScrollAreaViewport", Eo = p.forwardRef(
|
|
|
4458
4458
|
}
|
|
4459
4459
|
),
|
|
4460
4460
|
/* @__PURE__ */ c(
|
|
4461
|
-
|
|
4461
|
+
B.div,
|
|
4462
4462
|
{
|
|
4463
4463
|
"data-radix-scroll-area-viewport": "",
|
|
4464
4464
|
...s,
|
|
@@ -4486,28 +4486,28 @@ var Co = "ScrollAreaViewport", Eo = p.forwardRef(
|
|
|
4486
4486
|
}
|
|
4487
4487
|
);
|
|
4488
4488
|
Eo.displayName = Co;
|
|
4489
|
-
var X = "ScrollAreaScrollbar", No =
|
|
4489
|
+
var X = "ScrollAreaScrollbar", No = m.forwardRef(
|
|
4490
4490
|
(e, t) => {
|
|
4491
4491
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4492
|
-
return
|
|
4492
|
+
return m.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4493
4493
|
i ? s(!1) : a(!1);
|
|
4494
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Bs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(
|
|
4494
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Bs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(it, { ...r, ref: t }) : null;
|
|
4495
4495
|
}
|
|
4496
4496
|
);
|
|
4497
4497
|
No.displayName = X;
|
|
4498
|
-
var Vs =
|
|
4499
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] =
|
|
4500
|
-
return
|
|
4498
|
+
var Vs = m.forwardRef((e, t) => {
|
|
4499
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = m.useState(!1);
|
|
4500
|
+
return m.useEffect(() => {
|
|
4501
4501
|
const i = n.scrollArea;
|
|
4502
4502
|
let l = 0;
|
|
4503
4503
|
if (i) {
|
|
4504
|
-
const
|
|
4504
|
+
const d = () => {
|
|
4505
4505
|
window.clearTimeout(l), a(!0);
|
|
4506
|
-
},
|
|
4506
|
+
}, u = () => {
|
|
4507
4507
|
l = window.setTimeout(() => a(!1), n.scrollHideDelay);
|
|
4508
4508
|
};
|
|
4509
|
-
return i.addEventListener("pointerenter",
|
|
4510
|
-
window.clearTimeout(l), i.removeEventListener("pointerenter",
|
|
4509
|
+
return i.addEventListener("pointerenter", d), i.addEventListener("pointerleave", u), () => {
|
|
4510
|
+
window.clearTimeout(l), i.removeEventListener("pointerenter", d), i.removeEventListener("pointerleave", u);
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
4513
|
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(ue, { present: o || s, children: /* @__PURE__ */ c(
|
|
@@ -4518,8 +4518,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4518
4518
|
ref: t
|
|
4519
4519
|
}
|
|
4520
4520
|
) });
|
|
4521
|
-
}), Bs =
|
|
4522
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a =
|
|
4521
|
+
}), Bs = m.forwardRef((e, t) => {
|
|
4522
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Oe(() => l("SCROLL_END"), 100), [i, l] = js("hidden", {
|
|
4523
4523
|
hidden: {
|
|
4524
4524
|
SCROLL: "scrolling"
|
|
4525
4525
|
},
|
|
@@ -4537,23 +4537,23 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4537
4537
|
POINTER_ENTER: "interacting"
|
|
4538
4538
|
}
|
|
4539
4539
|
});
|
|
4540
|
-
return
|
|
4540
|
+
return m.useEffect(() => {
|
|
4541
4541
|
if (i === "idle") {
|
|
4542
|
-
const
|
|
4543
|
-
return () => window.clearTimeout(
|
|
4542
|
+
const d = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
|
|
4543
|
+
return () => window.clearTimeout(d);
|
|
4544
4544
|
}
|
|
4545
|
-
}, [i, n.scrollHideDelay, l]),
|
|
4546
|
-
const
|
|
4547
|
-
if (
|
|
4548
|
-
let f = u
|
|
4549
|
-
const
|
|
4550
|
-
const
|
|
4551
|
-
f !==
|
|
4545
|
+
}, [i, n.scrollHideDelay, l]), m.useEffect(() => {
|
|
4546
|
+
const d = n.viewport, u = s ? "scrollLeft" : "scrollTop";
|
|
4547
|
+
if (d) {
|
|
4548
|
+
let f = d[u];
|
|
4549
|
+
const p = () => {
|
|
4550
|
+
const b = d[u];
|
|
4551
|
+
f !== b && (l("SCROLL"), a()), f = b;
|
|
4552
4552
|
};
|
|
4553
|
-
return
|
|
4553
|
+
return d.addEventListener("scroll", p), () => d.removeEventListener("scroll", p);
|
|
4554
4554
|
}
|
|
4555
4555
|
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(ue, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
|
|
4556
|
-
|
|
4556
|
+
it,
|
|
4557
4557
|
{
|
|
4558
4558
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
4559
4559
|
...r,
|
|
@@ -4562,99 +4562,99 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4562
4562
|
onPointerLeave: W(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
4563
4563
|
}
|
|
4564
4564
|
) });
|
|
4565
|
-
}), Ao =
|
|
4566
|
-
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] =
|
|
4565
|
+
}), Ao = m.forwardRef((e, t) => {
|
|
4566
|
+
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = m.useState(!1), i = e.orientation === "horizontal", l = Oe(() => {
|
|
4567
4567
|
if (o.viewport) {
|
|
4568
|
-
const
|
|
4569
|
-
a(i ?
|
|
4568
|
+
const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
|
|
4569
|
+
a(i ? d : u);
|
|
4570
4570
|
}
|
|
4571
4571
|
}, 10);
|
|
4572
4572
|
return de(o.viewport, l), de(o.content, l), /* @__PURE__ */ c(ue, { present: r || s, children: /* @__PURE__ */ c(
|
|
4573
|
-
|
|
4573
|
+
it,
|
|
4574
4574
|
{
|
|
4575
4575
|
"data-state": s ? "visible" : "hidden",
|
|
4576
4576
|
...n,
|
|
4577
4577
|
ref: t
|
|
4578
4578
|
}
|
|
4579
4579
|
) });
|
|
4580
|
-
}),
|
|
4581
|
-
const { orientation: o = "vertical", ...r } = e, n = q(X, e.__scopeScrollArea), s =
|
|
4580
|
+
}), it = m.forwardRef((e, t) => {
|
|
4581
|
+
const { orientation: o = "vertical", ...r } = e, n = q(X, e.__scopeScrollArea), s = m.useRef(null), a = m.useRef(0), [i, l] = m.useState({
|
|
4582
4582
|
content: 0,
|
|
4583
4583
|
viewport: 0,
|
|
4584
4584
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4585
|
-
}),
|
|
4585
|
+
}), d = To(i.viewport, i.content), u = {
|
|
4586
4586
|
...r,
|
|
4587
4587
|
sizes: i,
|
|
4588
4588
|
onSizesChange: l,
|
|
4589
|
-
hasThumb:
|
|
4590
|
-
onThumbChange: (
|
|
4589
|
+
hasThumb: d > 0 && d < 1,
|
|
4590
|
+
onThumbChange: (p) => s.current = p,
|
|
4591
4591
|
onThumbPointerUp: () => a.current = 0,
|
|
4592
|
-
onThumbPointerDown: (
|
|
4592
|
+
onThumbPointerDown: (p) => a.current = p
|
|
4593
4593
|
};
|
|
4594
|
-
function f(
|
|
4595
|
-
return Zs(
|
|
4594
|
+
function f(p, b) {
|
|
4595
|
+
return Zs(p, a.current, i, b);
|
|
4596
4596
|
}
|
|
4597
4597
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4598
4598
|
Gs,
|
|
4599
4599
|
{
|
|
4600
|
-
...
|
|
4600
|
+
...u,
|
|
4601
4601
|
ref: t,
|
|
4602
4602
|
onThumbPositionChange: () => {
|
|
4603
4603
|
if (n.viewport && s.current) {
|
|
4604
|
-
const
|
|
4605
|
-
s.current.style.transform = `translate3d(${
|
|
4604
|
+
const p = n.viewport.scrollLeft, b = _t(p, i, n.dir);
|
|
4605
|
+
s.current.style.transform = `translate3d(${b}px, 0, 0)`;
|
|
4606
4606
|
}
|
|
4607
4607
|
},
|
|
4608
|
-
onWheelScroll: (
|
|
4609
|
-
n.viewport && (n.viewport.scrollLeft =
|
|
4608
|
+
onWheelScroll: (p) => {
|
|
4609
|
+
n.viewport && (n.viewport.scrollLeft = p);
|
|
4610
4610
|
},
|
|
4611
|
-
onDragScroll: (
|
|
4612
|
-
n.viewport && (n.viewport.scrollLeft = f(
|
|
4611
|
+
onDragScroll: (p) => {
|
|
4612
|
+
n.viewport && (n.viewport.scrollLeft = f(p, n.dir));
|
|
4613
4613
|
}
|
|
4614
4614
|
}
|
|
4615
4615
|
) : o === "vertical" ? /* @__PURE__ */ c(
|
|
4616
4616
|
qs,
|
|
4617
4617
|
{
|
|
4618
|
-
...
|
|
4618
|
+
...u,
|
|
4619
4619
|
ref: t,
|
|
4620
4620
|
onThumbPositionChange: () => {
|
|
4621
4621
|
if (n.viewport && s.current) {
|
|
4622
|
-
const
|
|
4623
|
-
s.current.style.transform = `translate3d(0, ${
|
|
4622
|
+
const p = n.viewport.scrollTop, b = _t(p, i);
|
|
4623
|
+
s.current.style.transform = `translate3d(0, ${b}px, 0)`;
|
|
4624
4624
|
}
|
|
4625
4625
|
},
|
|
4626
|
-
onWheelScroll: (
|
|
4627
|
-
n.viewport && (n.viewport.scrollTop =
|
|
4626
|
+
onWheelScroll: (p) => {
|
|
4627
|
+
n.viewport && (n.viewport.scrollTop = p);
|
|
4628
4628
|
},
|
|
4629
|
-
onDragScroll: (
|
|
4630
|
-
n.viewport && (n.viewport.scrollTop = f(
|
|
4629
|
+
onDragScroll: (p) => {
|
|
4630
|
+
n.viewport && (n.viewport.scrollTop = f(p));
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
4633
4633
|
) : null;
|
|
4634
|
-
}), Gs =
|
|
4635
|
-
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] =
|
|
4636
|
-
return
|
|
4634
|
+
}), Gs = m.forwardRef((e, t) => {
|
|
4635
|
+
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarXChange);
|
|
4636
|
+
return m.useEffect(() => {
|
|
4637
4637
|
l.current && i(getComputedStyle(l.current));
|
|
4638
4638
|
}, [l]), /* @__PURE__ */ c(
|
|
4639
4639
|
Io,
|
|
4640
4640
|
{
|
|
4641
4641
|
"data-orientation": "horizontal",
|
|
4642
4642
|
...n,
|
|
4643
|
-
ref:
|
|
4643
|
+
ref: d,
|
|
4644
4644
|
sizes: o,
|
|
4645
4645
|
style: {
|
|
4646
4646
|
bottom: 0,
|
|
4647
4647
|
left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
4648
4648
|
right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
|
|
4649
|
-
"--radix-scroll-area-thumb-width":
|
|
4649
|
+
"--radix-scroll-area-thumb-width": Le(o) + "px",
|
|
4650
4650
|
...e.style
|
|
4651
4651
|
},
|
|
4652
|
-
onThumbPointerDown: (
|
|
4653
|
-
onDragScroll: (
|
|
4654
|
-
onWheelScroll: (
|
|
4652
|
+
onThumbPointerDown: (u) => e.onThumbPointerDown(u.x),
|
|
4653
|
+
onDragScroll: (u) => e.onDragScroll(u.x),
|
|
4654
|
+
onWheelScroll: (u, f) => {
|
|
4655
4655
|
if (s.viewport) {
|
|
4656
|
-
const
|
|
4657
|
-
e.onWheelScroll(
|
|
4656
|
+
const p = s.viewport.scrollLeft + u.deltaX;
|
|
4657
|
+
e.onWheelScroll(p), Mo(p, f) && u.preventDefault();
|
|
4658
4658
|
}
|
|
4659
4659
|
},
|
|
4660
4660
|
onResize: () => {
|
|
@@ -4663,38 +4663,38 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4663
4663
|
viewport: s.viewport.offsetWidth,
|
|
4664
4664
|
scrollbar: {
|
|
4665
4665
|
size: l.current.clientWidth,
|
|
4666
|
-
paddingStart:
|
|
4667
|
-
paddingEnd:
|
|
4666
|
+
paddingStart: Me(a.paddingLeft),
|
|
4667
|
+
paddingEnd: Me(a.paddingRight)
|
|
4668
4668
|
}
|
|
4669
4669
|
});
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
4672
|
);
|
|
4673
|
-
}), qs =
|
|
4674
|
-
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] =
|
|
4675
|
-
return
|
|
4673
|
+
}), qs = m.forwardRef((e, t) => {
|
|
4674
|
+
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarYChange);
|
|
4675
|
+
return m.useEffect(() => {
|
|
4676
4676
|
l.current && i(getComputedStyle(l.current));
|
|
4677
4677
|
}, [l]), /* @__PURE__ */ c(
|
|
4678
4678
|
Io,
|
|
4679
4679
|
{
|
|
4680
4680
|
"data-orientation": "vertical",
|
|
4681
4681
|
...n,
|
|
4682
|
-
ref:
|
|
4682
|
+
ref: d,
|
|
4683
4683
|
sizes: o,
|
|
4684
4684
|
style: {
|
|
4685
4685
|
top: 0,
|
|
4686
4686
|
right: s.dir === "ltr" ? 0 : void 0,
|
|
4687
4687
|
left: s.dir === "rtl" ? 0 : void 0,
|
|
4688
4688
|
bottom: "var(--radix-scroll-area-corner-height)",
|
|
4689
|
-
"--radix-scroll-area-thumb-height":
|
|
4689
|
+
"--radix-scroll-area-thumb-height": Le(o) + "px",
|
|
4690
4690
|
...e.style
|
|
4691
4691
|
},
|
|
4692
|
-
onThumbPointerDown: (
|
|
4693
|
-
onDragScroll: (
|
|
4694
|
-
onWheelScroll: (
|
|
4692
|
+
onThumbPointerDown: (u) => e.onThumbPointerDown(u.y),
|
|
4693
|
+
onDragScroll: (u) => e.onDragScroll(u.y),
|
|
4694
|
+
onWheelScroll: (u, f) => {
|
|
4695
4695
|
if (s.viewport) {
|
|
4696
|
-
const
|
|
4697
|
-
e.onWheelScroll(
|
|
4696
|
+
const p = s.viewport.scrollTop + u.deltaY;
|
|
4697
|
+
e.onWheelScroll(p), Mo(p, f) && u.preventDefault();
|
|
4698
4698
|
}
|
|
4699
4699
|
},
|
|
4700
4700
|
onResize: () => {
|
|
@@ -4703,14 +4703,14 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4703
4703
|
viewport: s.viewport.offsetHeight,
|
|
4704
4704
|
scrollbar: {
|
|
4705
4705
|
size: l.current.clientHeight,
|
|
4706
|
-
paddingStart:
|
|
4707
|
-
paddingEnd:
|
|
4706
|
+
paddingStart: Me(a.paddingTop),
|
|
4707
|
+
paddingEnd: Me(a.paddingBottom)
|
|
4708
4708
|
}
|
|
4709
4709
|
});
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
4712
|
);
|
|
4713
|
-
}), [Ys, _o] = ko(X), Io =
|
|
4713
|
+
}), [Ys, _o] = ko(X), Io = m.forwardRef((e, t) => {
|
|
4714
4714
|
const {
|
|
4715
4715
|
__scopeScrollArea: o,
|
|
4716
4716
|
sizes: r,
|
|
@@ -4719,77 +4719,77 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4719
4719
|
onThumbPointerUp: a,
|
|
4720
4720
|
onThumbPointerDown: i,
|
|
4721
4721
|
onThumbPositionChange: l,
|
|
4722
|
-
onDragScroll:
|
|
4723
|
-
onWheelScroll:
|
|
4722
|
+
onDragScroll: d,
|
|
4723
|
+
onWheelScroll: u,
|
|
4724
4724
|
onResize: f,
|
|
4725
|
-
...
|
|
4726
|
-
} = e,
|
|
4727
|
-
function
|
|
4728
|
-
if (
|
|
4729
|
-
const M =
|
|
4730
|
-
|
|
4725
|
+
...p
|
|
4726
|
+
} = e, b = q(X, o), [S, v] = m.useState(null), h = Y(t, (E) => v(E)), x = m.useRef(null), C = m.useRef(""), w = b.viewport, A = r.content - r.viewport, P = J(u), N = J(l), I = Oe(f, 10);
|
|
4727
|
+
function g(E) {
|
|
4728
|
+
if (x.current) {
|
|
4729
|
+
const M = E.clientX - x.current.left, O = E.clientY - x.current.top;
|
|
4730
|
+
d({ x: M, y: O });
|
|
4731
4731
|
}
|
|
4732
4732
|
}
|
|
4733
|
-
return
|
|
4734
|
-
const
|
|
4733
|
+
return m.useEffect(() => {
|
|
4734
|
+
const E = (M) => {
|
|
4735
4735
|
const O = M.target;
|
|
4736
|
-
(
|
|
4736
|
+
(S == null ? void 0 : S.contains(O)) && P(M, A);
|
|
4737
4737
|
};
|
|
4738
|
-
return document.addEventListener("wheel",
|
|
4739
|
-
}, [
|
|
4738
|
+
return document.addEventListener("wheel", E, { passive: !1 }), () => document.removeEventListener("wheel", E, { passive: !1 });
|
|
4739
|
+
}, [w, S, A, P]), m.useEffect(N, [r, N]), de(S, I), de(b.content, I), /* @__PURE__ */ c(
|
|
4740
4740
|
Ys,
|
|
4741
4741
|
{
|
|
4742
4742
|
scope: o,
|
|
4743
|
-
scrollbar:
|
|
4743
|
+
scrollbar: S,
|
|
4744
4744
|
hasThumb: n,
|
|
4745
4745
|
onThumbChange: J(s),
|
|
4746
4746
|
onThumbPointerUp: J(a),
|
|
4747
|
-
onThumbPositionChange:
|
|
4747
|
+
onThumbPositionChange: N,
|
|
4748
4748
|
onThumbPointerDown: J(i),
|
|
4749
4749
|
children: /* @__PURE__ */ c(
|
|
4750
|
-
|
|
4750
|
+
B.div,
|
|
4751
4751
|
{
|
|
4752
|
-
...
|
|
4752
|
+
...p,
|
|
4753
4753
|
ref: h,
|
|
4754
|
-
style: { position: "absolute", ...
|
|
4755
|
-
onPointerDown: W(e.onPointerDown, (
|
|
4756
|
-
|
|
4754
|
+
style: { position: "absolute", ...p.style },
|
|
4755
|
+
onPointerDown: W(e.onPointerDown, (E) => {
|
|
4756
|
+
E.button === 0 && (E.target.setPointerCapture(E.pointerId), x.current = S.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", b.viewport && (b.viewport.style.scrollBehavior = "auto"), g(E));
|
|
4757
4757
|
}),
|
|
4758
|
-
onPointerMove: W(e.onPointerMove,
|
|
4759
|
-
onPointerUp: W(e.onPointerUp, (
|
|
4760
|
-
const M =
|
|
4761
|
-
M.hasPointerCapture(
|
|
4758
|
+
onPointerMove: W(e.onPointerMove, g),
|
|
4759
|
+
onPointerUp: W(e.onPointerUp, (E) => {
|
|
4760
|
+
const M = E.target;
|
|
4761
|
+
M.hasPointerCapture(E.pointerId) && M.releasePointerCapture(E.pointerId), document.body.style.webkitUserSelect = C.current, b.viewport && (b.viewport.style.scrollBehavior = ""), x.current = null;
|
|
4762
4762
|
})
|
|
4763
4763
|
}
|
|
4764
4764
|
)
|
|
4765
4765
|
}
|
|
4766
4766
|
);
|
|
4767
|
-
}),
|
|
4767
|
+
}), ze = "ScrollAreaThumb", Ro = m.forwardRef(
|
|
4768
4768
|
(e, t) => {
|
|
4769
|
-
const { forceMount: o, ...r } = e, n = _o(
|
|
4769
|
+
const { forceMount: o, ...r } = e, n = _o(ze, e.__scopeScrollArea);
|
|
4770
4770
|
return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Xs, { ref: t, ...r }) });
|
|
4771
4771
|
}
|
|
4772
|
-
), Xs =
|
|
4772
|
+
), Xs = m.forwardRef(
|
|
4773
4773
|
(e, t) => {
|
|
4774
|
-
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(
|
|
4774
|
+
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = _o(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4775
4775
|
t,
|
|
4776
4776
|
(f) => a.onThumbChange(f)
|
|
4777
|
-
),
|
|
4778
|
-
|
|
4777
|
+
), d = m.useRef(void 0), u = Oe(() => {
|
|
4778
|
+
d.current && (d.current(), d.current = void 0);
|
|
4779
4779
|
}, 100);
|
|
4780
|
-
return
|
|
4780
|
+
return m.useEffect(() => {
|
|
4781
4781
|
const f = s.viewport;
|
|
4782
4782
|
if (f) {
|
|
4783
|
-
const
|
|
4784
|
-
if (
|
|
4785
|
-
const
|
|
4786
|
-
|
|
4783
|
+
const p = () => {
|
|
4784
|
+
if (u(), !d.current) {
|
|
4785
|
+
const b = Js(f, i);
|
|
4786
|
+
d.current = b, i();
|
|
4787
4787
|
}
|
|
4788
4788
|
};
|
|
4789
|
-
return i(), f.addEventListener("scroll",
|
|
4789
|
+
return i(), f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
|
|
4790
4790
|
}
|
|
4791
|
-
}, [s.viewport,
|
|
4792
|
-
|
|
4791
|
+
}, [s.viewport, u, i]), /* @__PURE__ */ c(
|
|
4792
|
+
B.div,
|
|
4793
4793
|
{
|
|
4794
4794
|
"data-state": a.hasThumb ? "visible" : "hidden",
|
|
4795
4795
|
...n,
|
|
@@ -4800,34 +4800,34 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4800
4800
|
...r
|
|
4801
4801
|
},
|
|
4802
4802
|
onPointerDownCapture: W(e.onPointerDownCapture, (f) => {
|
|
4803
|
-
const
|
|
4804
|
-
a.onThumbPointerDown({ x:
|
|
4803
|
+
const b = f.target.getBoundingClientRect(), S = f.clientX - b.left, v = f.clientY - b.top;
|
|
4804
|
+
a.onThumbPointerDown({ x: S, y: v });
|
|
4805
4805
|
}),
|
|
4806
4806
|
onPointerUp: W(e.onPointerUp, a.onThumbPointerUp)
|
|
4807
4807
|
}
|
|
4808
4808
|
);
|
|
4809
4809
|
}
|
|
4810
4810
|
);
|
|
4811
|
-
Ro.displayName =
|
|
4812
|
-
var
|
|
4811
|
+
Ro.displayName = ze;
|
|
4812
|
+
var lt = "ScrollAreaCorner", Po = m.forwardRef(
|
|
4813
4813
|
(e, t) => {
|
|
4814
|
-
const o = q(
|
|
4814
|
+
const o = q(lt, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4815
4815
|
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Ks, { ...e, ref: t }) : null;
|
|
4816
4816
|
}
|
|
4817
4817
|
);
|
|
4818
|
-
Po.displayName =
|
|
4819
|
-
var Ks =
|
|
4820
|
-
const { __scopeScrollArea: o, ...r } = e, n = q(
|
|
4818
|
+
Po.displayName = lt;
|
|
4819
|
+
var Ks = m.forwardRef((e, t) => {
|
|
4820
|
+
const { __scopeScrollArea: o, ...r } = e, n = q(lt, o), [s, a] = m.useState(0), [i, l] = m.useState(0), d = !!(s && i);
|
|
4821
4821
|
return de(n.scrollbarX, () => {
|
|
4822
4822
|
var f;
|
|
4823
|
-
const
|
|
4824
|
-
n.onCornerHeightChange(
|
|
4823
|
+
const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
4824
|
+
n.onCornerHeightChange(u), l(u);
|
|
4825
4825
|
}), de(n.scrollbarY, () => {
|
|
4826
4826
|
var f;
|
|
4827
|
-
const
|
|
4828
|
-
n.onCornerWidthChange(
|
|
4829
|
-
}),
|
|
4830
|
-
|
|
4827
|
+
const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
4828
|
+
n.onCornerWidthChange(u), a(u);
|
|
4829
|
+
}), d ? /* @__PURE__ */ c(
|
|
4830
|
+
B.div,
|
|
4831
4831
|
{
|
|
4832
4832
|
...r,
|
|
4833
4833
|
ref: t,
|
|
@@ -4843,24 +4843,24 @@ var Ks = p.forwardRef((e, t) => {
|
|
|
4843
4843
|
}
|
|
4844
4844
|
) : null;
|
|
4845
4845
|
});
|
|
4846
|
-
function
|
|
4846
|
+
function Me(e) {
|
|
4847
4847
|
return e ? parseInt(e, 10) : 0;
|
|
4848
4848
|
}
|
|
4849
4849
|
function To(e, t) {
|
|
4850
4850
|
const o = e / t;
|
|
4851
4851
|
return isNaN(o) ? 0 : o;
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4853
|
+
function Le(e) {
|
|
4854
4854
|
const t = To(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4855
4855
|
return Math.max(r, 18);
|
|
4856
4856
|
}
|
|
4857
4857
|
function Zs(e, t, o, r = "ltr") {
|
|
4858
|
-
const n =
|
|
4859
|
-
return zo([l,
|
|
4858
|
+
const n = Le(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];
|
|
4859
|
+
return zo([l, d], f)(e);
|
|
4860
4860
|
}
|
|
4861
|
-
function
|
|
4862
|
-
const r =
|
|
4863
|
-
return zo([0, a], [0, i])(
|
|
4861
|
+
function _t(e, t, o = "ltr") {
|
|
4862
|
+
const r = Le(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 = Ws(e, l);
|
|
4863
|
+
return zo([0, a], [0, i])(d);
|
|
4864
4864
|
}
|
|
4865
4865
|
function zo(e, t) {
|
|
4866
4866
|
return (o) => {
|
|
@@ -4880,9 +4880,9 @@ var Js = (e, t = () => {
|
|
|
4880
4880
|
(a || i) && t(), o = s, r = window.requestAnimationFrame(n);
|
|
4881
4881
|
})(), () => window.cancelAnimationFrame(r);
|
|
4882
4882
|
};
|
|
4883
|
-
function
|
|
4884
|
-
const o = J(e), r =
|
|
4885
|
-
return
|
|
4883
|
+
function Oe(e, t) {
|
|
4884
|
+
const o = J(e), r = m.useRef(0);
|
|
4885
|
+
return m.useEffect(() => () => window.clearTimeout(r.current), []), m.useCallback(() => {
|
|
4886
4886
|
window.clearTimeout(r.current), r.current = window.setTimeout(o, t);
|
|
4887
4887
|
}, [o, t]);
|
|
4888
4888
|
}
|
|
@@ -4900,10 +4900,10 @@ function de(e, t) {
|
|
|
4900
4900
|
}
|
|
4901
4901
|
}, [e, o]);
|
|
4902
4902
|
}
|
|
4903
|
-
var Qs = So, ea = Eo, ta = Po, oa = "Separator",
|
|
4904
|
-
const { decorative: o, orientation: r =
|
|
4903
|
+
var Qs = So, ea = Eo, ta = Po, oa = "Separator", It = "horizontal", ra = ["horizontal", "vertical"], Lo = m.forwardRef((e, t) => {
|
|
4904
|
+
const { decorative: o, orientation: r = It, ...n } = e, s = na(r) ? r : It, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4905
4905
|
return /* @__PURE__ */ c(
|
|
4906
|
-
|
|
4906
|
+
B.div,
|
|
4907
4907
|
{
|
|
4908
4908
|
"data-orientation": s,
|
|
4909
4909
|
...i,
|
|
@@ -4916,9 +4916,9 @@ Lo.displayName = oa;
|
|
|
4916
4916
|
function na(e) {
|
|
4917
4917
|
return ra.includes(e);
|
|
4918
4918
|
}
|
|
4919
|
-
var sa = Lo,
|
|
4919
|
+
var sa = Lo, $e = "Tabs", [aa] = ge($e, [
|
|
4920
4920
|
bo
|
|
4921
|
-
]), Oo = bo(), [ia,
|
|
4921
|
+
]), Oo = bo(), [ia, ct] = aa($e), $o = m.forwardRef(
|
|
4922
4922
|
(e, t) => {
|
|
4923
4923
|
const {
|
|
4924
4924
|
__scopeTabs: o,
|
|
@@ -4928,12 +4928,12 @@ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
|
|
|
4928
4928
|
orientation: a = "horizontal",
|
|
4929
4929
|
dir: i,
|
|
4930
4930
|
activationMode: l = "automatic",
|
|
4931
|
-
...
|
|
4932
|
-
} = e,
|
|
4931
|
+
...d
|
|
4932
|
+
} = e, u = nt(i), [f, p] = io({
|
|
4933
4933
|
prop: r,
|
|
4934
4934
|
onChange: n,
|
|
4935
4935
|
defaultProp: s ?? "",
|
|
4936
|
-
caller:
|
|
4936
|
+
caller: $e
|
|
4937
4937
|
});
|
|
4938
4938
|
return /* @__PURE__ */ c(
|
|
4939
4939
|
ia,
|
|
@@ -4941,16 +4941,16 @@ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
|
|
|
4941
4941
|
scope: o,
|
|
4942
4942
|
baseId: lo(),
|
|
4943
4943
|
value: f,
|
|
4944
|
-
onValueChange:
|
|
4944
|
+
onValueChange: p,
|
|
4945
4945
|
orientation: a,
|
|
4946
|
-
dir:
|
|
4946
|
+
dir: u,
|
|
4947
4947
|
activationMode: l,
|
|
4948
4948
|
children: /* @__PURE__ */ c(
|
|
4949
|
-
|
|
4949
|
+
B.div,
|
|
4950
4950
|
{
|
|
4951
|
-
dir:
|
|
4951
|
+
dir: u,
|
|
4952
4952
|
"data-orientation": a,
|
|
4953
|
-
...
|
|
4953
|
+
...d,
|
|
4954
4954
|
ref: t
|
|
4955
4955
|
}
|
|
4956
4956
|
)
|
|
@@ -4958,10 +4958,10 @@ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
|
|
|
4958
4958
|
);
|
|
4959
4959
|
}
|
|
4960
4960
|
);
|
|
4961
|
-
$o.displayName =
|
|
4962
|
-
var Fo = "TabsList", Do =
|
|
4961
|
+
$o.displayName = $e;
|
|
4962
|
+
var Fo = "TabsList", Do = m.forwardRef(
|
|
4963
4963
|
(e, t) => {
|
|
4964
|
-
const { __scopeTabs: o, loop: r = !0, ...n } = e, s =
|
|
4964
|
+
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = ct(Fo, o), a = Oo(o);
|
|
4965
4965
|
return /* @__PURE__ */ c(
|
|
4966
4966
|
Ds,
|
|
4967
4967
|
{
|
|
@@ -4971,7 +4971,7 @@ var Fo = "TabsList", Do = p.forwardRef(
|
|
|
4971
4971
|
dir: s.dir,
|
|
4972
4972
|
loop: r,
|
|
4973
4973
|
children: /* @__PURE__ */ c(
|
|
4974
|
-
|
|
4974
|
+
B.div,
|
|
4975
4975
|
{
|
|
4976
4976
|
role: "tablist",
|
|
4977
4977
|
"aria-orientation": s.orientation,
|
|
@@ -4984,24 +4984,24 @@ var Fo = "TabsList", Do = p.forwardRef(
|
|
|
4984
4984
|
}
|
|
4985
4985
|
);
|
|
4986
4986
|
Do.displayName = Fo;
|
|
4987
|
-
var Uo = "TabsTrigger", Wo =
|
|
4987
|
+
var Uo = "TabsTrigger", Wo = m.forwardRef(
|
|
4988
4988
|
(e, t) => {
|
|
4989
|
-
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a =
|
|
4989
|
+
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = ct(Uo, o), i = Oo(o), l = Vo(a.baseId, r), d = Bo(a.baseId, r), u = r === a.value;
|
|
4990
4990
|
return /* @__PURE__ */ c(
|
|
4991
4991
|
Us,
|
|
4992
4992
|
{
|
|
4993
4993
|
asChild: !0,
|
|
4994
4994
|
...i,
|
|
4995
4995
|
focusable: !n,
|
|
4996
|
-
active:
|
|
4996
|
+
active: u,
|
|
4997
4997
|
children: /* @__PURE__ */ c(
|
|
4998
|
-
|
|
4998
|
+
B.button,
|
|
4999
4999
|
{
|
|
5000
5000
|
type: "button",
|
|
5001
5001
|
role: "tab",
|
|
5002
|
-
"aria-selected":
|
|
5003
|
-
"aria-controls":
|
|
5004
|
-
"data-state":
|
|
5002
|
+
"aria-selected": u,
|
|
5003
|
+
"aria-controls": d,
|
|
5004
|
+
"data-state": u ? "active" : "inactive",
|
|
5005
5005
|
"data-disabled": n ? "" : void 0,
|
|
5006
5006
|
disabled: n,
|
|
5007
5007
|
id: l,
|
|
@@ -5015,7 +5015,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
|
|
|
5015
5015
|
}),
|
|
5016
5016
|
onFocus: W(e.onFocus, () => {
|
|
5017
5017
|
const f = a.activationMode !== "manual";
|
|
5018
|
-
!
|
|
5018
|
+
!u && !n && f && a.onValueChange(r);
|
|
5019
5019
|
})
|
|
5020
5020
|
}
|
|
5021
5021
|
)
|
|
@@ -5024,21 +5024,21 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
|
|
|
5024
5024
|
}
|
|
5025
5025
|
);
|
|
5026
5026
|
Wo.displayName = Uo;
|
|
5027
|
-
var
|
|
5027
|
+
var jo = "TabsContent", Ho = m.forwardRef(
|
|
5028
5028
|
(e, t) => {
|
|
5029
|
-
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i =
|
|
5030
|
-
return
|
|
5031
|
-
const
|
|
5032
|
-
return () => cancelAnimationFrame(
|
|
5033
|
-
}, []), /* @__PURE__ */ c(ue, { present: n ||
|
|
5034
|
-
|
|
5029
|
+
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = ct(jo, o), l = Vo(i.baseId, r), d = Bo(i.baseId, r), u = r === i.value, f = m.useRef(u);
|
|
5030
|
+
return m.useEffect(() => {
|
|
5031
|
+
const p = requestAnimationFrame(() => f.current = !1);
|
|
5032
|
+
return () => cancelAnimationFrame(p);
|
|
5033
|
+
}, []), /* @__PURE__ */ c(ue, { present: n || u, children: ({ present: p }) => /* @__PURE__ */ c(
|
|
5034
|
+
B.div,
|
|
5035
5035
|
{
|
|
5036
|
-
"data-state":
|
|
5036
|
+
"data-state": u ? "active" : "inactive",
|
|
5037
5037
|
"data-orientation": i.orientation,
|
|
5038
5038
|
role: "tabpanel",
|
|
5039
5039
|
"aria-labelledby": l,
|
|
5040
|
-
hidden: !
|
|
5041
|
-
id:
|
|
5040
|
+
hidden: !p,
|
|
5041
|
+
id: d,
|
|
5042
5042
|
tabIndex: 0,
|
|
5043
5043
|
...a,
|
|
5044
5044
|
ref: t,
|
|
@@ -5046,20 +5046,20 @@ var Ho = "TabsContent", jo = p.forwardRef(
|
|
|
5046
5046
|
...e.style,
|
|
5047
5047
|
animationDuration: f.current ? "0s" : void 0
|
|
5048
5048
|
},
|
|
5049
|
-
children:
|
|
5049
|
+
children: p && s
|
|
5050
5050
|
}
|
|
5051
5051
|
) });
|
|
5052
5052
|
}
|
|
5053
5053
|
);
|
|
5054
|
-
|
|
5054
|
+
Ho.displayName = jo;
|
|
5055
5055
|
function Vo(e, t) {
|
|
5056
5056
|
return `${e}-trigger-${t}`;
|
|
5057
5057
|
}
|
|
5058
5058
|
function Bo(e, t) {
|
|
5059
5059
|
return `${e}-content-${t}`;
|
|
5060
5060
|
}
|
|
5061
|
-
var la = $o, ca = Do, da = Wo, ua =
|
|
5062
|
-
const fa =
|
|
5061
|
+
var la = $o, ca = Do, da = Wo, ua = Ho;
|
|
5062
|
+
const fa = rt(
|
|
5063
5063
|
'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',
|
|
5064
5064
|
{
|
|
5065
5065
|
variants: {
|
|
@@ -5106,7 +5106,7 @@ function Go({
|
|
|
5106
5106
|
}
|
|
5107
5107
|
);
|
|
5108
5108
|
}
|
|
5109
|
-
const ma =
|
|
5109
|
+
const ma = rt(
|
|
5110
5110
|
"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",
|
|
5111
5111
|
{
|
|
5112
5112
|
variants: {
|
|
@@ -5195,7 +5195,7 @@ function ba({
|
|
|
5195
5195
|
}
|
|
5196
5196
|
);
|
|
5197
5197
|
}
|
|
5198
|
-
const va =
|
|
5198
|
+
const va = rt(
|
|
5199
5199
|
"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",
|
|
5200
5200
|
{
|
|
5201
5201
|
variants: {
|
|
@@ -5309,7 +5309,7 @@ function Sa({
|
|
|
5309
5309
|
}
|
|
5310
5310
|
);
|
|
5311
5311
|
}
|
|
5312
|
-
function
|
|
5312
|
+
function Je({
|
|
5313
5313
|
className: e,
|
|
5314
5314
|
size: t = "default",
|
|
5315
5315
|
...o
|
|
@@ -5327,7 +5327,7 @@ function Ze({
|
|
|
5327
5327
|
}
|
|
5328
5328
|
);
|
|
5329
5329
|
}
|
|
5330
|
-
function
|
|
5330
|
+
function Qe({
|
|
5331
5331
|
className: e,
|
|
5332
5332
|
...t
|
|
5333
5333
|
}) {
|
|
@@ -5340,7 +5340,7 @@ function Je({
|
|
|
5340
5340
|
}
|
|
5341
5341
|
);
|
|
5342
5342
|
}
|
|
5343
|
-
function
|
|
5343
|
+
function et({
|
|
5344
5344
|
className: e,
|
|
5345
5345
|
...t
|
|
5346
5346
|
}) {
|
|
@@ -5366,9 +5366,9 @@ const qo = {
|
|
|
5366
5366
|
"credit-card": Dr,
|
|
5367
5367
|
"external-link": Wr,
|
|
5368
5368
|
"help-circle": zr,
|
|
5369
|
-
info:
|
|
5369
|
+
info: Hr,
|
|
5370
5370
|
"loader-2": Ut,
|
|
5371
|
-
mail:
|
|
5371
|
+
mail: Xe,
|
|
5372
5372
|
"map-pin": qr,
|
|
5373
5373
|
"message-circle": Xr,
|
|
5374
5374
|
"message-square": Wt,
|
|
@@ -5378,11 +5378,11 @@ const qo = {
|
|
|
5378
5378
|
"shopping-bag": nn,
|
|
5379
5379
|
sparkles: an,
|
|
5380
5380
|
truck: cn,
|
|
5381
|
-
user:
|
|
5381
|
+
user: jt,
|
|
5382
5382
|
"x-circle": Lr,
|
|
5383
5383
|
"alert-circle": Ir,
|
|
5384
5384
|
"book-open": kr
|
|
5385
|
-
},
|
|
5385
|
+
}, Rt = {
|
|
5386
5386
|
0: "gap-0",
|
|
5387
5387
|
1: "gap-1",
|
|
5388
5388
|
2: "gap-2",
|
|
@@ -5393,7 +5393,7 @@ const qo = {
|
|
|
5393
5393
|
8: "gap-8",
|
|
5394
5394
|
10: "gap-10",
|
|
5395
5395
|
12: "gap-12"
|
|
5396
|
-
}, Yo = (e) => typeof e == "number" ?
|
|
5396
|
+
}, Yo = (e) => typeof e == "number" ? Rt[String(e)] ?? "gap-2" : typeof e == "string" ? Rt[e.trim()] ?? "gap-2" : "gap-2", Ca = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5397
5397
|
me,
|
|
5398
5398
|
{
|
|
5399
5399
|
className: t,
|
|
@@ -5425,16 +5425,16 @@ const qo = {
|
|
|
5425
5425
|
onChange: t,
|
|
5426
5426
|
...o
|
|
5427
5427
|
}
|
|
5428
|
-
), Ra = ({ className: e }) => /* @__PURE__ */ c(ga, { className: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(ba, { className: t, children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ya, { className: t, value: "", children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Sa, { className: t, children: e }), Oa = ({ children: e, className: t }) => /* @__PURE__ */ c(
|
|
5428
|
+
), Ra = ({ className: e }) => /* @__PURE__ */ c(ga, { className: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(ba, { className: t, children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ya, { className: t, value: "", children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Sa, { className: t, children: e }), Oa = ({ children: e, className: t }) => /* @__PURE__ */ c(Je, { className: t, children: e }), $a = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Qe, { src: e, alt: t, className: o }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c(et, { className: t, children: e }), Da = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: z("text-sm", t), children: e }), Ua = ({ children: e, className: t, level: o }) => {
|
|
5429
5429
|
const r = `h${o || "2"}`;
|
|
5430
5430
|
return /* @__PURE__ */ c(r, { className: z("font-semibold tracking-tight", t), children: e });
|
|
5431
5431
|
}, Wa = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5432
5432
|
const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
|
|
5433
5433
|
return /* @__PURE__ */ c("div", { className: z("flex", n, s, t), children: e });
|
|
5434
|
-
},
|
|
5434
|
+
}, ja = ({ children: e, className: t, gap: o }) => {
|
|
5435
5435
|
const r = Yo(o);
|
|
5436
5436
|
return /* @__PURE__ */ c("div", { className: z("flex flex-row items-center", r, t), children: e });
|
|
5437
|
-
},
|
|
5437
|
+
}, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5438
5438
|
"a",
|
|
5439
5439
|
{
|
|
5440
5440
|
href: o,
|
|
@@ -5477,7 +5477,7 @@ const qo = {
|
|
|
5477
5477
|
"ui-badge": _a,
|
|
5478
5478
|
"ui-input": Ia,
|
|
5479
5479
|
"ui-stack": Wa,
|
|
5480
|
-
"ui-inline":
|
|
5480
|
+
"ui-inline": ja,
|
|
5481
5481
|
"ui-separator": Ra,
|
|
5482
5482
|
"ui-tabs": Pa,
|
|
5483
5483
|
"ui-tabs-list": Ta,
|
|
@@ -5488,11 +5488,11 @@ const qo = {
|
|
|
5488
5488
|
"ui-avatar-image": $a,
|
|
5489
5489
|
"ui-avatar-fallback": Fa,
|
|
5490
5490
|
"ui-icon": Ga,
|
|
5491
|
-
"ui-link":
|
|
5491
|
+
"ui-link": Ha,
|
|
5492
5492
|
"ui-menu-item": Ba,
|
|
5493
5493
|
"ui-menu": Va
|
|
5494
|
-
}),
|
|
5495
|
-
const o = t ? `${t.replace(/\/$/, "")}${
|
|
5494
|
+
}), Pt = "/api/ecommerce", Xo = async (e, t) => {
|
|
5495
|
+
const o = t ? `${t.replace(/\/$/, "")}${Pt}` : Pt, r = await fetch(o, {
|
|
5496
5496
|
method: "POST",
|
|
5497
5497
|
headers: { "Content-Type": "application/json" },
|
|
5498
5498
|
body: JSON.stringify(e)
|
|
@@ -5505,10 +5505,10 @@ const qo = {
|
|
|
5505
5505
|
/* @__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)" }) }),
|
|
5506
5506
|
/* @__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)" }) }),
|
|
5507
5507
|
/* @__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)" }) })
|
|
5508
|
-
] }),
|
|
5509
|
-
if (typeof document > "u" || document.getElementById(
|
|
5508
|
+
] }), Tt = "stackable-dev-badge-styles", Xa = () => {
|
|
5509
|
+
if (typeof document > "u" || document.getElementById(Tt)) return;
|
|
5510
5510
|
const e = document.createElement("style");
|
|
5511
|
-
e.id =
|
|
5511
|
+
e.id = Tt, e.textContent = `
|
|
5512
5512
|
@keyframes stackable-icon-wiggle {
|
|
5513
5513
|
0% { transform: rotate(0deg); }
|
|
5514
5514
|
70% { transform: rotate(200deg); }
|
|
@@ -5518,21 +5518,21 @@ const qo = {
|
|
|
5518
5518
|
`, document.head.appendChild(e);
|
|
5519
5519
|
}, Ka = ({ className: e = "", extensions: t = [] }) => {
|
|
5520
5520
|
const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
|
|
5521
|
-
if (
|
|
5521
|
+
if (V(() => {
|
|
5522
5522
|
Xa();
|
|
5523
|
-
}, []),
|
|
5523
|
+
}, []), V(() => {
|
|
5524
5524
|
if (typeof window > "u") return;
|
|
5525
|
-
const
|
|
5526
|
-
const
|
|
5527
|
-
r(
|
|
5525
|
+
const u = () => {
|
|
5526
|
+
const p = $t(window.location.search);
|
|
5527
|
+
r(p);
|
|
5528
5528
|
};
|
|
5529
|
-
|
|
5530
|
-
const f = () =>
|
|
5529
|
+
u();
|
|
5530
|
+
const f = () => u();
|
|
5531
5531
|
return window.addEventListener("popstate", f), () => window.removeEventListener("popstate", f);
|
|
5532
5532
|
}, []), o.length === 0)
|
|
5533
5533
|
return null;
|
|
5534
|
-
const
|
|
5535
|
-
if (
|
|
5534
|
+
const d = (u) => {
|
|
5535
|
+
if (u.stopPropagation(), typeof window > "u") return;
|
|
5536
5536
|
const f = new URL(window.location.href);
|
|
5537
5537
|
f.searchParams.delete("_stackable_dev"), window.location.href = f.toString();
|
|
5538
5538
|
};
|
|
@@ -5568,8 +5568,8 @@ const qo = {
|
|
|
5568
5568
|
width: "420px",
|
|
5569
5569
|
maxWidth: "90vw"
|
|
5570
5570
|
},
|
|
5571
|
-
children: o.map((
|
|
5572
|
-
var
|
|
5571
|
+
children: o.map((u, f) => {
|
|
5572
|
+
var p;
|
|
5573
5573
|
return /* @__PURE__ */ T(
|
|
5574
5574
|
"div",
|
|
5575
5575
|
{
|
|
@@ -5590,7 +5590,7 @@ const qo = {
|
|
|
5590
5590
|
overflow: "hidden",
|
|
5591
5591
|
textOverflow: "ellipsis"
|
|
5592
5592
|
},
|
|
5593
|
-
children: ((
|
|
5593
|
+
children: ((p = t.find((b) => b.id === u.extensionId)) == null ? void 0 : p.manifest.name) || u.extensionId
|
|
5594
5594
|
}
|
|
5595
5595
|
),
|
|
5596
5596
|
/* @__PURE__ */ T(
|
|
@@ -5605,16 +5605,16 @@ const qo = {
|
|
|
5605
5605
|
overflow: "hidden",
|
|
5606
5606
|
textOverflow: "ellipsis"
|
|
5607
5607
|
},
|
|
5608
|
-
title:
|
|
5608
|
+
title: u.bundleUrl,
|
|
5609
5609
|
children: [
|
|
5610
5610
|
"→ ",
|
|
5611
|
-
|
|
5611
|
+
u.bundleUrl
|
|
5612
5612
|
]
|
|
5613
5613
|
}
|
|
5614
5614
|
)
|
|
5615
5615
|
]
|
|
5616
5616
|
},
|
|
5617
|
-
|
|
5617
|
+
u.extensionId
|
|
5618
5618
|
);
|
|
5619
5619
|
})
|
|
5620
5620
|
}
|
|
@@ -5661,7 +5661,7 @@ const qo = {
|
|
|
5661
5661
|
/* @__PURE__ */ c(
|
|
5662
5662
|
"button",
|
|
5663
5663
|
{
|
|
5664
|
-
onClick:
|
|
5664
|
+
onClick: d,
|
|
5665
5665
|
style: {
|
|
5666
5666
|
marginLeft: "4px",
|
|
5667
5667
|
backgroundColor: "rgba(0, 0, 0, 0.15)",
|
|
@@ -5675,11 +5675,11 @@ const qo = {
|
|
|
5675
5675
|
fontFamily: "inherit",
|
|
5676
5676
|
transition: "background-color 0.1s ease"
|
|
5677
5677
|
},
|
|
5678
|
-
onMouseOver: (
|
|
5679
|
-
|
|
5678
|
+
onMouseOver: (u) => {
|
|
5679
|
+
u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
|
|
5680
5680
|
},
|
|
5681
|
-
onMouseOut: (
|
|
5682
|
-
|
|
5681
|
+
onMouseOut: (u) => {
|
|
5682
|
+
u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
|
|
5683
5683
|
},
|
|
5684
5684
|
children: "Clear"
|
|
5685
5685
|
}
|
|
@@ -5690,7 +5690,23 @@ const qo = {
|
|
|
5690
5690
|
]
|
|
5691
5691
|
}
|
|
5692
5692
|
);
|
|
5693
|
-
},
|
|
5693
|
+
}, Ie = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, Za = async (e, t, o) => {
|
|
5694
|
+
const r = /* @__PURE__ */ new Map();
|
|
5695
|
+
return await Promise.all(
|
|
5696
|
+
e.filter((n) => n.manifest.permissions.includes("data:fetch")).map(async (n) => {
|
|
5697
|
+
const s = Ie(t, "/proxy-token"), a = await fetch(s, {
|
|
5698
|
+
method: "POST",
|
|
5699
|
+
headers: { "Content-Type": "application/json" },
|
|
5700
|
+
body: JSON.stringify({ appId: o, extensionId: n.id })
|
|
5701
|
+
});
|
|
5702
|
+
if (a.ok) {
|
|
5703
|
+
const { token: i } = await a.json();
|
|
5704
|
+
r.set(n.id, i);
|
|
5705
|
+
} else
|
|
5706
|
+
console.warn(`[embeddables] Failed to obtain proxy token for extension ${n.id} (${a.status}) — data.fetch calls will be unavailable for this extension`);
|
|
5707
|
+
})
|
|
5708
|
+
), r;
|
|
5709
|
+
}, ci = ({
|
|
5694
5710
|
instanceId: e,
|
|
5695
5711
|
apiBase: t,
|
|
5696
5712
|
hostBase: o,
|
|
@@ -5699,88 +5715,119 @@ const qo = {
|
|
|
5699
5715
|
customerId: s,
|
|
5700
5716
|
customerEmail: a
|
|
5701
5717
|
}) => {
|
|
5702
|
-
const [i, l] = U([]), [u,
|
|
5703
|
-
|
|
5718
|
+
const [i, l] = U([]), [d, u] = U(/* @__PURE__ */ new Map()), [f, p] = U(!1);
|
|
5719
|
+
V(() => {
|
|
5704
5720
|
(async () => {
|
|
5705
|
-
const
|
|
5721
|
+
const v = e;
|
|
5706
5722
|
try {
|
|
5707
|
-
if (!
|
|
5708
|
-
console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]),
|
|
5723
|
+
if (!v) {
|
|
5724
|
+
console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), p(!0);
|
|
5709
5725
|
return;
|
|
5710
5726
|
}
|
|
5711
5727
|
if (!t || !r) {
|
|
5712
|
-
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]),
|
|
5728
|
+
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), p(!0);
|
|
5713
5729
|
return;
|
|
5714
5730
|
}
|
|
5715
|
-
const
|
|
5716
|
-
if (!
|
|
5717
|
-
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${
|
|
5731
|
+
const h = await fetch(Ie(t, `/instances/${r}/${v}`));
|
|
5732
|
+
if (!h.ok) {
|
|
5733
|
+
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${v}`), l([]), p(!0);
|
|
5718
5734
|
return;
|
|
5719
5735
|
}
|
|
5720
|
-
const x = await
|
|
5721
|
-
l(
|
|
5722
|
-
} catch (
|
|
5723
|
-
console.error("Failed to load extensions:",
|
|
5736
|
+
const x = await h.json(), C = $t(typeof window < "u" ? window.location.search : ""), w = ur(x, C), A = await Za(w, t, r);
|
|
5737
|
+
l(w), u(new Map(A));
|
|
5738
|
+
} catch (h) {
|
|
5739
|
+
console.error("Failed to load extensions:", h);
|
|
5724
5740
|
} finally {
|
|
5725
|
-
|
|
5741
|
+
p(!0);
|
|
5726
5742
|
}
|
|
5727
5743
|
})();
|
|
5728
|
-
}, [e, r, t])
|
|
5729
|
-
|
|
5744
|
+
}, [e, r, t]), V(() => {
|
|
5745
|
+
if (!t || !r || i.length === 0) return;
|
|
5746
|
+
const v = setInterval(async () => {
|
|
5747
|
+
const h = [];
|
|
5748
|
+
await Promise.all(
|
|
5749
|
+
i.filter((x) => x.manifest.permissions.includes("data:fetch")).map(async (x) => {
|
|
5750
|
+
const C = Ie(t, "/proxy-token"), w = await fetch(C, {
|
|
5751
|
+
method: "POST",
|
|
5752
|
+
headers: { "Content-Type": "application/json" },
|
|
5753
|
+
body: JSON.stringify({ appId: r, extensionId: x.id })
|
|
5754
|
+
});
|
|
5755
|
+
if (w.ok) {
|
|
5756
|
+
const { token: A } = await w.json();
|
|
5757
|
+
h.push([x.id, A]);
|
|
5758
|
+
} else
|
|
5759
|
+
console.warn(`[embeddables] Proxy token refresh failed for extension ${x.id} (${w.status}) — using stale token`);
|
|
5760
|
+
})
|
|
5761
|
+
), h.length > 0 && u((x) => {
|
|
5762
|
+
const C = new Map(x);
|
|
5763
|
+
for (const [w, A] of h)
|
|
5764
|
+
C.set(w, A);
|
|
5765
|
+
return C;
|
|
5766
|
+
});
|
|
5767
|
+
}, 3300 * 1e3);
|
|
5768
|
+
return () => clearInterval(v);
|
|
5769
|
+
}, [i, t, r]);
|
|
5770
|
+
const b = Mt(
|
|
5730
5771
|
() => ({
|
|
5731
|
-
"data.query": async (
|
|
5772
|
+
"data.query": async (S) => (
|
|
5732
5773
|
// TODO: verify payload
|
|
5733
5774
|
// TODO: encryption???
|
|
5734
|
-
Xo(
|
|
5775
|
+
Xo(S, o)
|
|
5735
5776
|
),
|
|
5736
|
-
"data.fetch": async (
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5777
|
+
"data.fetch": async (S, v) => {
|
|
5778
|
+
const h = d.get(S);
|
|
5779
|
+
if (!h)
|
|
5780
|
+
return {
|
|
5781
|
+
status: 0,
|
|
5782
|
+
ok: !1,
|
|
5783
|
+
data: {
|
|
5784
|
+
error: "data.fetch: proxy token unavailable — ensure the extension has data:fetch permission and allowedDomains configured"
|
|
5785
|
+
}
|
|
5786
|
+
};
|
|
5787
|
+
const x = Ie(t, "/proxy"), C = await fetch(x, {
|
|
5740
5788
|
method: "POST",
|
|
5741
5789
|
headers: {
|
|
5742
5790
|
"Content-Type": "application/json",
|
|
5743
|
-
"X-Extension-Id":
|
|
5744
|
-
"X-Application-Id": r
|
|
5791
|
+
"X-Extension-Id": S,
|
|
5792
|
+
"X-Application-Id": r ?? "",
|
|
5793
|
+
Authorization: `Bearer ${h}`
|
|
5745
5794
|
},
|
|
5746
5795
|
body: JSON.stringify({
|
|
5747
|
-
url:
|
|
5748
|
-
method:
|
|
5749
|
-
headers:
|
|
5750
|
-
body:
|
|
5796
|
+
url: v.url,
|
|
5797
|
+
method: v.method ?? "GET",
|
|
5798
|
+
headers: v.headers ?? {},
|
|
5799
|
+
body: v.body ?? null
|
|
5751
5800
|
})
|
|
5752
|
-
}),
|
|
5753
|
-
if (!x.ok)
|
|
5754
|
-
throw new Error(h.error || "Fetch proxy request failed");
|
|
5801
|
+
}), w = await C.json();
|
|
5755
5802
|
return {
|
|
5756
|
-
status:
|
|
5757
|
-
ok:
|
|
5758
|
-
data:
|
|
5803
|
+
status: w.status ?? C.status,
|
|
5804
|
+
ok: w.ok ?? C.ok,
|
|
5805
|
+
data: w.data
|
|
5759
5806
|
};
|
|
5760
5807
|
},
|
|
5761
|
-
"actions.toast": async (
|
|
5762
|
-
if (console.log(`[Toast] ${
|
|
5763
|
-
const
|
|
5764
|
-
window.dispatchEvent(
|
|
5808
|
+
"actions.toast": async (S) => {
|
|
5809
|
+
if (console.log(`[Toast] ${S.type || "info"}: ${S.message}`), typeof window < "u") {
|
|
5810
|
+
const v = new CustomEvent("ext-toast", { detail: S });
|
|
5811
|
+
window.dispatchEvent(v);
|
|
5765
5812
|
}
|
|
5766
5813
|
},
|
|
5767
|
-
"actions.invoke": async (
|
|
5768
|
-
if (
|
|
5769
|
-
return window.dispatchEvent(new CustomEvent("ext-new-conversation", { detail:
|
|
5770
|
-
throw new Error(`Unknown action: ${
|
|
5814
|
+
"actions.invoke": async (S) => {
|
|
5815
|
+
if (S.action === "newConversation")
|
|
5816
|
+
return window.dispatchEvent(new CustomEvent("ext-new-conversation", { detail: S })), { success: !0 };
|
|
5817
|
+
throw new Error(`Unknown action: ${S.action}`);
|
|
5771
5818
|
},
|
|
5772
5819
|
"context.read": async () => ({
|
|
5773
5820
|
customerId: s ?? "",
|
|
5774
5821
|
customerEmail: a ?? ""
|
|
5775
5822
|
})
|
|
5776
5823
|
}),
|
|
5777
|
-
[t, r, o, s, a]
|
|
5824
|
+
[t, r, o, s, a, d]
|
|
5778
5825
|
);
|
|
5779
|
-
return
|
|
5780
|
-
/* @__PURE__ */ c(ir, { extensions: i, capabilityHandlers:
|
|
5826
|
+
return f ? /* @__PURE__ */ T(he, { children: [
|
|
5827
|
+
/* @__PURE__ */ c(ir, { extensions: i, capabilityHandlers: b, components: qa(), children: n }),
|
|
5781
5828
|
/* @__PURE__ */ c(Ka, { extensions: i })
|
|
5782
5829
|
] }) : null;
|
|
5783
|
-
},
|
|
5830
|
+
}, Ja = { dark: "dark", light: "widget-theme-light" }, Ko = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ja[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 = vr }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5784
5831
|
Go,
|
|
5785
5832
|
{
|
|
5786
5833
|
className: "h-12 w-12 rounded-full",
|
|
@@ -5788,7 +5835,7 @@ const qo = {
|
|
|
5788
5835
|
onClick: e,
|
|
5789
5836
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5790
5837
|
}
|
|
5791
|
-
) }),
|
|
5838
|
+
) }), di = ({ children: e, icon: t, theme: o }) => {
|
|
5792
5839
|
const [r, n] = U(!1);
|
|
5793
5840
|
return /* @__PURE__ */ T(he, { children: [
|
|
5794
5841
|
/* @__PURE__ */ c(Zo, { onClick: () => {
|
|
@@ -5796,10 +5843,10 @@ const qo = {
|
|
|
5796
5843
|
}, icon: t }),
|
|
5797
5844
|
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(Ko, { theme: o, children: e }) })
|
|
5798
5845
|
] });
|
|
5799
|
-
},
|
|
5846
|
+
}, ui = {
|
|
5800
5847
|
Body: Ko,
|
|
5801
5848
|
Launcher: Zo
|
|
5802
|
-
},
|
|
5849
|
+
}, Qa = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5803
5850
|
"a",
|
|
5804
5851
|
{
|
|
5805
5852
|
href: e,
|
|
@@ -5808,9 +5855,9 @@ const qo = {
|
|
|
5808
5855
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5809
5856
|
children: t
|
|
5810
5857
|
}
|
|
5811
|
-
),
|
|
5858
|
+
), ei = (e, t) => {
|
|
5812
5859
|
const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
|
|
5813
|
-
return
|
|
5860
|
+
return V(() => {
|
|
5814
5861
|
if (!e) {
|
|
5815
5862
|
r(null);
|
|
5816
5863
|
return;
|
|
@@ -5818,44 +5865,44 @@ const qo = {
|
|
|
5818
5865
|
(async () => {
|
|
5819
5866
|
s(!0), i(null);
|
|
5820
5867
|
try {
|
|
5821
|
-
const
|
|
5868
|
+
const d = await Xo({
|
|
5822
5869
|
action: "getCustomer",
|
|
5823
5870
|
customerId: e
|
|
5824
5871
|
}, t);
|
|
5825
|
-
r(
|
|
5826
|
-
} catch (
|
|
5827
|
-
i(
|
|
5872
|
+
r(d);
|
|
5873
|
+
} catch (d) {
|
|
5874
|
+
i(d);
|
|
5828
5875
|
} finally {
|
|
5829
5876
|
s(!1);
|
|
5830
5877
|
}
|
|
5831
5878
|
})();
|
|
5832
5879
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5833
|
-
},
|
|
5834
|
-
var l,
|
|
5835
|
-
const { customer: n, loading: s, error: a } =
|
|
5880
|
+
}, ti = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5881
|
+
var l, d;
|
|
5882
|
+
const { customer: n, loading: s, error: a } = ei(e, o);
|
|
5836
5883
|
if (s)
|
|
5837
5884
|
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Ut, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5838
5885
|
if (a || !n) {
|
|
5839
|
-
const
|
|
5886
|
+
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((p) => p[0]).join("").slice(0, 2).toUpperCase();
|
|
5840
5887
|
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ T(pe, { className: "p-4 pb-0 pt-2", children: [
|
|
5841
5888
|
/* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
|
|
5842
|
-
/* @__PURE__ */ T(
|
|
5889
|
+
/* @__PURE__ */ T(Je, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5843
5890
|
/* @__PURE__ */ c(
|
|
5844
|
-
|
|
5891
|
+
Qe,
|
|
5845
5892
|
{
|
|
5846
|
-
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(
|
|
5847
|
-
alt:
|
|
5893
|
+
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(u)}&background=7c3aed&color=fff&size=128`,
|
|
5894
|
+
alt: u
|
|
5848
5895
|
}
|
|
5849
5896
|
),
|
|
5850
|
-
/* @__PURE__ */ c(
|
|
5897
|
+
/* @__PURE__ */ c(et, { className: "text-lg", children: f })
|
|
5851
5898
|
] }),
|
|
5852
5899
|
/* @__PURE__ */ T("div", { className: "text-center w-full space-y-1", children: [
|
|
5853
5900
|
/* @__PURE__ */ T("div", { children: [
|
|
5854
5901
|
/* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
5855
|
-
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children:
|
|
5902
|
+
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
|
|
5856
5903
|
] }),
|
|
5857
5904
|
t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5858
|
-
/* @__PURE__ */ c(
|
|
5905
|
+
/* @__PURE__ */ c(Xe, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5859
5906
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: t })
|
|
5860
5907
|
] }) }),
|
|
5861
5908
|
/* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
|
|
@@ -5864,17 +5911,17 @@ const qo = {
|
|
|
5864
5911
|
/* @__PURE__ */ c("p", { className: "pt-2 text-center text-xs text-muted-foreground", children: "Using fallback profile (customer API returned no data)" })
|
|
5865
5912
|
] }) });
|
|
5866
5913
|
}
|
|
5867
|
-
const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((
|
|
5914
|
+
const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
5868
5915
|
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__ */ T("div", { className: "flex flex-col items-center", children: [
|
|
5869
|
-
/* @__PURE__ */ T(
|
|
5916
|
+
/* @__PURE__ */ T(Je, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5870
5917
|
/* @__PURE__ */ c(
|
|
5871
|
-
|
|
5918
|
+
Qe,
|
|
5872
5919
|
{
|
|
5873
5920
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(n.name)}&background=7c3aed&color=fff&size=128`,
|
|
5874
5921
|
alt: n.name
|
|
5875
5922
|
}
|
|
5876
5923
|
),
|
|
5877
|
-
/* @__PURE__ */ c(
|
|
5924
|
+
/* @__PURE__ */ c(et, { className: "text-lg", children: i })
|
|
5878
5925
|
] }),
|
|
5879
5926
|
/* @__PURE__ */ T("div", { className: "text-center w-full space-y-1", children: [
|
|
5880
5927
|
/* @__PURE__ */ T("div", { children: [
|
|
@@ -5882,14 +5929,14 @@ const qo = {
|
|
|
5882
5929
|
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: n.name })
|
|
5883
5930
|
] }),
|
|
5884
5931
|
/* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5885
|
-
/* @__PURE__ */ c(
|
|
5932
|
+
/* @__PURE__ */ c(Xe, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5886
5933
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: n.email })
|
|
5887
5934
|
] }) }),
|
|
5888
5935
|
/* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
|
|
5889
5936
|
] })
|
|
5890
5937
|
] }) }) });
|
|
5891
5938
|
}, Jo = (e, t) => {
|
|
5892
|
-
|
|
5939
|
+
V(() => {
|
|
5893
5940
|
const o = t.current;
|
|
5894
5941
|
if (!o) return;
|
|
5895
5942
|
let r = document.getElementById(e);
|
|
@@ -5902,9 +5949,9 @@ const qo = {
|
|
|
5902
5949
|
n.disconnect(), r == null || r.remove();
|
|
5903
5950
|
};
|
|
5904
5951
|
}, [e, t]);
|
|
5905
|
-
},
|
|
5952
|
+
}, oi = ({ customization: e }) => {
|
|
5906
5953
|
const t = ae(null);
|
|
5907
|
-
return Jo("widget_conversations", t),
|
|
5954
|
+
return Jo("widget_conversations", t), V(() => {
|
|
5908
5955
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5909
5956
|
conversationList: e
|
|
5910
5957
|
});
|
|
@@ -5915,9 +5962,9 @@ const qo = {
|
|
|
5915
5962
|
className: "h-full overflow-hidden"
|
|
5916
5963
|
}
|
|
5917
5964
|
);
|
|
5918
|
-
},
|
|
5965
|
+
}, ri = ({ customization: e }) => {
|
|
5919
5966
|
const t = ae(null);
|
|
5920
|
-
return Jo("widget_messages", t),
|
|
5967
|
+
return Jo("widget_messages", t), V(() => {
|
|
5921
5968
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5922
5969
|
messageLog: e
|
|
5923
5970
|
});
|
|
@@ -5928,7 +5975,7 @@ const qo = {
|
|
|
5928
5975
|
className: "h-full overflow-hidden"
|
|
5929
5976
|
}
|
|
5930
5977
|
);
|
|
5931
|
-
},
|
|
5978
|
+
}, qe = 25, Ye = 75, fi = ({
|
|
5932
5979
|
header: e,
|
|
5933
5980
|
buttons: t,
|
|
5934
5981
|
hostBase: o,
|
|
@@ -5937,9 +5984,9 @@ const qo = {
|
|
|
5937
5984
|
primaryPercent: s = 50
|
|
5938
5985
|
}) => {
|
|
5939
5986
|
const a = Math.max(
|
|
5940
|
-
|
|
5941
|
-
Math.min(
|
|
5942
|
-
), [i, l] = U("account"), [
|
|
5987
|
+
qe,
|
|
5988
|
+
Math.min(Ye, s)
|
|
5989
|
+
), [i, l] = U("account"), [d, u] = U(a), [f, p] = U(!1), [b, S] = U(!1), [v, h] = U(!1), x = ae(null), C = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
5943
5990
|
mode: "embedded",
|
|
5944
5991
|
conversationList: { targetElement: "#widget_conversations" },
|
|
5945
5992
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -5948,75 +5995,75 @@ const qo = {
|
|
|
5948
5995
|
conversationList: { hideHeader: !0, hideNewConversationButton: !0 },
|
|
5949
5996
|
messageLog: { hideHeader: !0 }
|
|
5950
5997
|
}), !0), []);
|
|
5951
|
-
|
|
5952
|
-
if (
|
|
5953
|
-
|
|
5998
|
+
V(() => {
|
|
5999
|
+
if (C()) {
|
|
6000
|
+
S(!0);
|
|
5954
6001
|
return;
|
|
5955
6002
|
}
|
|
5956
|
-
const
|
|
5957
|
-
|
|
6003
|
+
const N = setInterval(() => {
|
|
6004
|
+
C() && (S(!0), clearInterval(N));
|
|
5958
6005
|
}, 100), I = setTimeout(() => {
|
|
5959
|
-
clearInterval(
|
|
6006
|
+
clearInterval(N), console.warn("Zendesk widget failed to load after 10 seconds");
|
|
5960
6007
|
}, 1e4);
|
|
5961
6008
|
return () => {
|
|
5962
|
-
clearInterval(
|
|
6009
|
+
clearInterval(N), clearTimeout(I);
|
|
5963
6010
|
};
|
|
5964
|
-
}, [
|
|
5965
|
-
const
|
|
5966
|
-
const { detail: I } =
|
|
6011
|
+
}, [C]);
|
|
6012
|
+
const w = _e((N) => {
|
|
6013
|
+
const { detail: I } = N;
|
|
5967
6014
|
if (!window.zE || !I.payload || (I == null ? void 0 : I.action) !== "newConversation") return !1;
|
|
5968
6015
|
window.zE("messenger:ui", "newConversation", I.payload);
|
|
5969
6016
|
}, []);
|
|
5970
|
-
|
|
5971
|
-
window.removeEventListener("ext-new-conversation",
|
|
5972
|
-
}), [
|
|
5973
|
-
if (!
|
|
5974
|
-
const
|
|
5975
|
-
if (!
|
|
5976
|
-
const
|
|
5977
|
-
if ((f ?
|
|
5978
|
-
const O = f ? (
|
|
5979
|
-
|
|
5980
|
-
Math.min(
|
|
6017
|
+
V(() => (window.addEventListener("ext-new-conversation", w), () => {
|
|
6018
|
+
window.removeEventListener("ext-new-conversation", w);
|
|
6019
|
+
}), [w]), V(() => {
|
|
6020
|
+
if (!v) return;
|
|
6021
|
+
const N = (g) => {
|
|
6022
|
+
if (!x.current) return;
|
|
6023
|
+
const E = x.current.getBoundingClientRect();
|
|
6024
|
+
if ((f ? E.width : E.height) === 0) return;
|
|
6025
|
+
const O = f ? (g.clientX - E.left) / E.width * 100 : (g.clientY - E.top) / E.height * 100, K = Math.max(
|
|
6026
|
+
qe,
|
|
6027
|
+
Math.min(Ye, O)
|
|
5981
6028
|
);
|
|
5982
|
-
|
|
6029
|
+
u(K);
|
|
5983
6030
|
}, I = () => {
|
|
5984
6031
|
h(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5985
6032
|
};
|
|
5986
|
-
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove",
|
|
5987
|
-
window.removeEventListener("mousemove",
|
|
6033
|
+
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", N), window.addEventListener("mouseup", I), window.addEventListener("blur", I), () => {
|
|
6034
|
+
window.removeEventListener("mousemove", N), window.removeEventListener("mouseup", I), window.removeEventListener("blur", I), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5988
6035
|
};
|
|
5989
|
-
}, [
|
|
5990
|
-
if (!
|
|
5991
|
-
const
|
|
5992
|
-
const
|
|
5993
|
-
|
|
6036
|
+
}, [v, f]), V(() => {
|
|
6037
|
+
if (!x.current) return;
|
|
6038
|
+
const N = x.current, I = () => {
|
|
6039
|
+
const E = getComputedStyle(N).flexDirection === "row";
|
|
6040
|
+
p(E);
|
|
5994
6041
|
};
|
|
5995
6042
|
I();
|
|
5996
|
-
const
|
|
5997
|
-
return
|
|
5998
|
-
|
|
6043
|
+
const g = new ResizeObserver(I);
|
|
6044
|
+
return g.observe(N), () => {
|
|
6045
|
+
g.disconnect();
|
|
5999
6046
|
};
|
|
6000
6047
|
}, []);
|
|
6001
|
-
const A = _e((
|
|
6002
|
-
if (
|
|
6003
|
-
|
|
6048
|
+
const A = _e((N) => {
|
|
6049
|
+
if (N.detail === 2) {
|
|
6050
|
+
u(a);
|
|
6004
6051
|
return;
|
|
6005
6052
|
}
|
|
6006
|
-
|
|
6053
|
+
N.preventDefault(), h(!0);
|
|
6007
6054
|
}, [a]), P = { customerId: r, customerEmail: n };
|
|
6008
6055
|
return /* @__PURE__ */ T("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
6009
6056
|
/* @__PURE__ */ c("style", {
|
|
6010
6057
|
// eslint-disable-next-line @stylistic/quotes
|
|
6011
6058
|
children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
|
|
6012
6059
|
}),
|
|
6013
|
-
/* @__PURE__ */ T("div", { ref:
|
|
6060
|
+
/* @__PURE__ */ T("div", { ref: x, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
|
|
6014
6061
|
/* @__PURE__ */ T(
|
|
6015
6062
|
"div",
|
|
6016
6063
|
{
|
|
6017
6064
|
"data-id": "primary-panel",
|
|
6018
6065
|
className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
|
|
6019
|
-
style: { flexBasis: `${
|
|
6066
|
+
style: { flexBasis: `${d}%` },
|
|
6020
6067
|
children: [
|
|
6021
6068
|
/* @__PURE__ */ T("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
6022
6069
|
/* @__PURE__ */ c("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
|
|
@@ -6034,7 +6081,7 @@ const qo = {
|
|
|
6034
6081
|
i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
6035
6082
|
),
|
|
6036
6083
|
title: "My Account",
|
|
6037
|
-
children: /* @__PURE__ */ c(
|
|
6084
|
+
children: /* @__PURE__ */ c(jt, { className: "h-4 w-4" })
|
|
6038
6085
|
}
|
|
6039
6086
|
),
|
|
6040
6087
|
/* @__PURE__ */ c(
|
|
@@ -6055,7 +6102,7 @@ const qo = {
|
|
|
6055
6102
|
] }),
|
|
6056
6103
|
/* @__PURE__ */ T("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
6057
6104
|
/* @__PURE__ */ T("div", { className: z("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
6058
|
-
/* @__PURE__ */ c(
|
|
6105
|
+
/* @__PURE__ */ c(ti, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
6059
6106
|
Ce,
|
|
6060
6107
|
{
|
|
6061
6108
|
target: "slot.header",
|
|
@@ -6075,7 +6122,7 @@ const qo = {
|
|
|
6075
6122
|
/* @__PURE__ */ c("div", { className: z(
|
|
6076
6123
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
6077
6124
|
i === "account" && "hidden"
|
|
6078
|
-
), children: /* @__PURE__ */ c(
|
|
6125
|
+
), children: /* @__PURE__ */ c(oi, {}) })
|
|
6079
6126
|
] })
|
|
6080
6127
|
]
|
|
6081
6128
|
}
|
|
@@ -6085,9 +6132,9 @@ const qo = {
|
|
|
6085
6132
|
{
|
|
6086
6133
|
"data-id": "secondary-panel",
|
|
6087
6134
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
6088
|
-
style: { flexBasis: `${100 -
|
|
6135
|
+
style: { flexBasis: `${100 - d}%` },
|
|
6089
6136
|
children: [
|
|
6090
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
6137
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ri, {}) }),
|
|
6091
6138
|
/* @__PURE__ */ T("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
6092
6139
|
/* @__PURE__ */ c(
|
|
6093
6140
|
Ce,
|
|
@@ -6097,7 +6144,7 @@ const qo = {
|
|
|
6097
6144
|
className: "flex items-center gap-1",
|
|
6098
6145
|
fallback: /* @__PURE__ */ T(he, { children: [
|
|
6099
6146
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
6100
|
-
/* @__PURE__ */ c(
|
|
6147
|
+
/* @__PURE__ */ c(Qa, { href: "https://zendesk.com", children: "Zendesk" })
|
|
6101
6148
|
] })
|
|
6102
6149
|
}
|
|
6103
6150
|
),
|
|
@@ -6108,9 +6155,9 @@ const qo = {
|
|
|
6108
6155
|
context: P,
|
|
6109
6156
|
className: "flex items-center gap-1",
|
|
6110
6157
|
separator: /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "/" }),
|
|
6111
|
-
render: ({ children:
|
|
6158
|
+
render: ({ children: N, index: I }) => /* @__PURE__ */ T(he, { children: [
|
|
6112
6159
|
I === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
|
|
6113
|
-
|
|
6160
|
+
N
|
|
6114
6161
|
] })
|
|
6115
6162
|
}
|
|
6116
6163
|
)
|
|
@@ -6125,27 +6172,27 @@ const qo = {
|
|
|
6125
6172
|
"group/resize absolute z-20 flex items-center justify-center",
|
|
6126
6173
|
f ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
|
|
6127
6174
|
),
|
|
6128
|
-
style: f ? { left: `${
|
|
6175
|
+
style: f ? { left: `${d}%` } : { top: `${d}%` },
|
|
6129
6176
|
onMouseDown: A,
|
|
6130
6177
|
role: "separator",
|
|
6131
6178
|
"aria-label": "Resize panels",
|
|
6132
6179
|
"aria-orientation": f ? "vertical" : "horizontal",
|
|
6133
|
-
"aria-valuemin":
|
|
6134
|
-
"aria-valuemax":
|
|
6135
|
-
"aria-valuenow": Math.round(
|
|
6180
|
+
"aria-valuemin": qe,
|
|
6181
|
+
"aria-valuemax": Ye,
|
|
6182
|
+
"aria-valuenow": Math.round(d),
|
|
6136
6183
|
children: /* @__PURE__ */ c(
|
|
6137
6184
|
"div",
|
|
6138
6185
|
{
|
|
6139
6186
|
className: z(
|
|
6140
6187
|
"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",
|
|
6141
6188
|
f ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
6142
|
-
|
|
6189
|
+
v ? "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"
|
|
6143
6190
|
)
|
|
6144
6191
|
}
|
|
6145
6192
|
)
|
|
6146
6193
|
}
|
|
6147
6194
|
),
|
|
6148
|
-
|
|
6195
|
+
v && /* @__PURE__ */ c(
|
|
6149
6196
|
"div",
|
|
6150
6197
|
{
|
|
6151
6198
|
className: z("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
|
|
@@ -6154,10 +6201,10 @@ const qo = {
|
|
|
6154
6201
|
)
|
|
6155
6202
|
] })
|
|
6156
6203
|
] });
|
|
6157
|
-
},
|
|
6204
|
+
}, ni = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, si = (e, t = {}) => {
|
|
6158
6205
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
6159
6206
|
return Promise.resolve();
|
|
6160
|
-
const { autorender: o = !1, scriptId: r =
|
|
6207
|
+
const { autorender: o = !1, scriptId: r = ni } = t;
|
|
6161
6208
|
window.zEMessenger = { autorender: o };
|
|
6162
6209
|
const n = document.getElementById(r);
|
|
6163
6210
|
if (n) {
|
|
@@ -6169,16 +6216,16 @@ const qo = {
|
|
|
6169
6216
|
const i = document.createElement("script");
|
|
6170
6217
|
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);
|
|
6171
6218
|
});
|
|
6172
|
-
},
|
|
6173
|
-
e.snippetKey &&
|
|
6219
|
+
}, mi = ({ config: e }) => (V(() => {
|
|
6220
|
+
e.snippetKey && si(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
6174
6221
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
6175
6222
|
});
|
|
6176
6223
|
}, [e.autorender, e.snippetKey]), null);
|
|
6177
6224
|
export {
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6225
|
+
ci as ExtensionSetup,
|
|
6226
|
+
ui as Widget,
|
|
6227
|
+
di as WidgetComponent,
|
|
6228
|
+
fi as ZendeskMessenger,
|
|
6229
|
+
mi as ZendeskScript,
|
|
6230
|
+
si as loadZendeskSnippet
|
|
6184
6231
|
};
|