@stackable-labs/embeddables 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +491 -470
- package/dist/stackable-widget.external.js +5 -5
- package/dist/stackable-widget.js +14 -14
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import G, { createContext as
|
|
3
|
+
import G, { createContext as Qo, useState as U, useRef as ae, useEffect as B, useContext as er, useMemo as Mt, useCallback as Re, createElement as _e, forwardRef as Lt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
6
|
-
const o =
|
|
5
|
+
const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
|
|
6
|
+
const o = ce.get(e.id);
|
|
7
7
|
if (o) return o;
|
|
8
8
|
const r = document.createElement("iframe");
|
|
9
9
|
if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js"))
|
|
@@ -38,18 +38,18 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
38
38
|
const l = i.data;
|
|
39
39
|
(l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
|
|
40
40
|
};
|
|
41
|
-
return window.addEventListener("message", a),
|
|
41
|
+
return window.addEventListener("message", a), ce.set(e.id, s), s;
|
|
42
42
|
}, We = (e, t) => {
|
|
43
|
-
const o =
|
|
43
|
+
const o = ce.get(e);
|
|
44
44
|
if (!(o != null && o.iframe.contentWindow)) {
|
|
45
45
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
o.iframe.contentWindow.postMessage(t, "*");
|
|
49
|
-
},
|
|
50
|
-
const t =
|
|
51
|
-
t && (t.iframe.remove(), t.messageHandlers.clear(),
|
|
52
|
-
},
|
|
49
|
+
}, le = (e) => ce.get(e), or = (e) => {
|
|
50
|
+
const t = ce.get(e);
|
|
51
|
+
t && (t.iframe.remove(), t.messageHandlers.clear(), ce.delete(e));
|
|
52
|
+
}, rr = [
|
|
53
53
|
"ui-card",
|
|
54
54
|
"ui-card-content",
|
|
55
55
|
"ui-card-header",
|
|
@@ -76,24 +76,19 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
76
76
|
], nr = {
|
|
77
77
|
"context.read": "context:read",
|
|
78
78
|
"data.query": "data:query",
|
|
79
|
+
"data.fetch": "data:fetch",
|
|
79
80
|
"actions.toast": "actions:toast",
|
|
80
81
|
"actions.invoke": "actions:invoke"
|
|
81
82
|
}, sr = (e) => {
|
|
82
83
|
const t = async (o) => {
|
|
83
84
|
const r = o.data;
|
|
84
85
|
if ((r == null ? void 0 : r.type) !== "capability-request") return;
|
|
85
|
-
const n = r;
|
|
86
|
-
|
|
87
|
-
for (const [l, d] of or())
|
|
88
|
-
if (o.source === d.iframe.contentWindow) {
|
|
89
|
-
s = l;
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
if (!s) {
|
|
86
|
+
const n = r, s = n.extensionId;
|
|
87
|
+
if (!s || !le(s)) {
|
|
93
88
|
console.warn("Received capability request from unknown source");
|
|
94
89
|
return;
|
|
95
90
|
}
|
|
96
|
-
const a =
|
|
91
|
+
const a = le(s);
|
|
97
92
|
if (!a) return;
|
|
98
93
|
const i = nr[n.capability];
|
|
99
94
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
@@ -112,6 +107,9 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
112
107
|
case "data.query":
|
|
113
108
|
l = await e["data.query"](n.payload);
|
|
114
109
|
break;
|
|
110
|
+
case "data.fetch":
|
|
111
|
+
l = await e["data.fetch"](s, n.payload);
|
|
112
|
+
break;
|
|
115
113
|
case "actions.toast":
|
|
116
114
|
l = await e["actions.toast"](n.payload);
|
|
117
115
|
break;
|
|
@@ -144,7 +142,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
144
142
|
return window.addEventListener("message", t), () => {
|
|
145
143
|
window.removeEventListener("message", t);
|
|
146
144
|
};
|
|
147
|
-
},
|
|
145
|
+
}, Ot = Qo({
|
|
148
146
|
extensions: [],
|
|
149
147
|
components: {},
|
|
150
148
|
ready: !1
|
|
@@ -163,21 +161,21 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
163
161
|
if (u) {
|
|
164
162
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
165
163
|
for (const f of e)
|
|
166
|
-
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await
|
|
164
|
+
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
167
165
|
i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
168
166
|
}
|
|
169
167
|
})(), () => {
|
|
170
168
|
var u;
|
|
171
169
|
l = !0;
|
|
172
170
|
for (const f of e)
|
|
173
|
-
|
|
171
|
+
or(f.id);
|
|
174
172
|
(u = i.current) == null || u.call(i);
|
|
175
173
|
};
|
|
176
|
-
}, [e, t]), /* @__PURE__ */ z(
|
|
174
|
+
}, [e, t]), /* @__PURE__ */ z(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
|
|
177
175
|
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
178
176
|
r
|
|
179
177
|
] });
|
|
180
|
-
}, ir = () =>
|
|
178
|
+
}, ir = () => er(Ot), lr = (e) => rr.includes(e), Ce = ({
|
|
181
179
|
target: e,
|
|
182
180
|
context: t,
|
|
183
181
|
className: o,
|
|
@@ -185,45 +183,45 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
185
183
|
fallback: n = null,
|
|
186
184
|
render: s
|
|
187
185
|
}) => {
|
|
188
|
-
const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m =
|
|
186
|
+
const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m = Mt(
|
|
189
187
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
190
188
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
191
189
|
[a.map((h) => h.id).join(","), e]
|
|
192
|
-
),
|
|
190
|
+
), g = Re(
|
|
193
191
|
(h, y, R = 0) => {
|
|
194
|
-
var E, _,
|
|
192
|
+
var E, _, b;
|
|
195
193
|
if (h.type === "text")
|
|
196
194
|
return h.text || null;
|
|
197
195
|
if (!h.tag) return null;
|
|
198
196
|
if (h.tag === "__fragment")
|
|
199
|
-
return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((
|
|
197
|
+
return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, R);
|
|
200
198
|
if (!lr(h.tag))
|
|
201
199
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
202
200
|
const C = i[h.tag];
|
|
203
201
|
if (!C)
|
|
204
|
-
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((
|
|
202
|
+
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((S, M) => g(S, y, M)) }, R);
|
|
205
203
|
const A = { ...h.attrs };
|
|
206
204
|
if (h.actionId) {
|
|
207
|
-
const
|
|
205
|
+
const S = h.actionId;
|
|
208
206
|
A.onClick = () => {
|
|
209
207
|
const M = y;
|
|
210
208
|
M == null || M.postMessage(
|
|
211
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
209
|
+
{ type: "action-invoke", surfaceId: e, actionId: S },
|
|
212
210
|
"*"
|
|
213
211
|
);
|
|
214
212
|
};
|
|
215
213
|
}
|
|
216
214
|
if (A["data-onchange-id"]) {
|
|
217
|
-
const
|
|
215
|
+
const S = A["data-onchange-id"];
|
|
218
216
|
delete A["data-onchange-id"], A.onChange = (M) => {
|
|
219
217
|
const O = y;
|
|
220
218
|
O == null || O.postMessage(
|
|
221
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
219
|
+
{ type: "action-invoke", surfaceId: e, actionId: S, value: M.target.value },
|
|
222
220
|
"*"
|
|
223
221
|
);
|
|
224
222
|
};
|
|
225
223
|
}
|
|
226
|
-
const P = (
|
|
224
|
+
const P = (b = h.children) == null ? void 0 : b.map((S, M) => g(S, y, M));
|
|
227
225
|
return /* @__PURE__ */ _e(C, { ...A, key: R }, P && P.length > 0 ? P : void 0);
|
|
228
226
|
},
|
|
229
227
|
[e, i]
|
|
@@ -234,16 +232,16 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
234
232
|
const y = (R) => {
|
|
235
233
|
const C = R.data;
|
|
236
234
|
if (!(!C || typeof C != "object" || !m.some((P) => {
|
|
237
|
-
const E =
|
|
235
|
+
const E = le(P.id);
|
|
238
236
|
return E && R.source === E.iframe.contentWindow;
|
|
239
237
|
}))) {
|
|
240
238
|
if (C.type === "surface-update" && C.surfaceId === e) {
|
|
241
239
|
const P = m.find((_) => {
|
|
242
|
-
const
|
|
243
|
-
return
|
|
240
|
+
const b = le(_.id);
|
|
241
|
+
return b && R.source === b.iframe.contentWindow;
|
|
244
242
|
});
|
|
245
243
|
if (!P) return;
|
|
246
|
-
const E =
|
|
244
|
+
const E = g(C.tree, R.source ?? null);
|
|
247
245
|
u((_) => ({
|
|
248
246
|
..._,
|
|
249
247
|
[P.id]: E
|
|
@@ -251,7 +249,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
251
249
|
}
|
|
252
250
|
C.type === "surface-ready" && C.surfaceId === e && t && m.forEach((P) => {
|
|
253
251
|
var _;
|
|
254
|
-
const E =
|
|
252
|
+
const E = le(P.id);
|
|
255
253
|
(_ = E == null ? void 0 : E.iframe.contentWindow) == null || _.postMessage(
|
|
256
254
|
{ type: "context-update", surfaceId: e, context: t },
|
|
257
255
|
"*"
|
|
@@ -261,7 +259,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
261
259
|
};
|
|
262
260
|
return window.addEventListener("message", y), m.forEach((R) => {
|
|
263
261
|
var A;
|
|
264
|
-
const C =
|
|
262
|
+
const C = le(R.id);
|
|
265
263
|
(A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
|
|
266
264
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
267
265
|
"*"
|
|
@@ -269,11 +267,11 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
269
267
|
}), () => {
|
|
270
268
|
window.removeEventListener("message", y);
|
|
271
269
|
};
|
|
272
|
-
}, [l, m, e, t,
|
|
270
|
+
}, [l, m, e, t, g]), !l)
|
|
273
271
|
return null;
|
|
274
272
|
if (m.length === 0)
|
|
275
273
|
return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
|
|
276
|
-
const
|
|
274
|
+
const k = m.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), x = k.length > 0 ? k.flatMap((h, y, R) => {
|
|
277
275
|
const C = s ? s({
|
|
278
276
|
extensionId: h.id,
|
|
279
277
|
children: h.children,
|
|
@@ -293,7 +291,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
293
291
|
A
|
|
294
292
|
];
|
|
295
293
|
}) : n;
|
|
296
|
-
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children:
|
|
294
|
+
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
|
|
297
295
|
}, cr = (e) => {
|
|
298
296
|
try {
|
|
299
297
|
const { hostname: t } = new URL(e);
|
|
@@ -302,7 +300,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
302
300
|
} catch {
|
|
303
301
|
return !1;
|
|
304
302
|
}
|
|
305
|
-
},
|
|
303
|
+
}, $t = (e) => {
|
|
306
304
|
const o = new URLSearchParams(e).getAll("_stackable_dev");
|
|
307
305
|
if (o.length === 0)
|
|
308
306
|
return [];
|
|
@@ -334,7 +332,7 @@ const ie = /* @__PURE__ */ new Map(), er = async (e, t) => {
|
|
|
334
332
|
* This source code is licensed under the ISC license.
|
|
335
333
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
334
|
*/
|
|
337
|
-
const
|
|
335
|
+
const Ft = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
|
|
338
336
|
/**
|
|
339
337
|
* @license lucide-react v0.575.0 - ISC
|
|
340
338
|
*
|
|
@@ -397,7 +395,7 @@ const pr = (e) => {
|
|
|
397
395
|
* This source code is licensed under the ISC license.
|
|
398
396
|
* See the LICENSE file in the root directory of this source tree.
|
|
399
397
|
*/
|
|
400
|
-
const hr =
|
|
398
|
+
const hr = Lt(
|
|
401
399
|
({
|
|
402
400
|
color: e = "currentColor",
|
|
403
401
|
size: t = 24,
|
|
@@ -416,7 +414,7 @@ const hr = Mt(
|
|
|
416
414
|
height: t,
|
|
417
415
|
stroke: e,
|
|
418
416
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
419
|
-
className:
|
|
417
|
+
className: Ft("lucide", n),
|
|
420
418
|
...!s && !pr(i) && { "aria-hidden": "true" },
|
|
421
419
|
...i
|
|
422
420
|
},
|
|
@@ -433,11 +431,11 @@ const hr = Mt(
|
|
|
433
431
|
* See the LICENSE file in the root directory of this source tree.
|
|
434
432
|
*/
|
|
435
433
|
const L = (e, t) => {
|
|
436
|
-
const o =
|
|
434
|
+
const o = Lt(
|
|
437
435
|
({ className: r, ...n }, s) => _e(hr, {
|
|
438
436
|
ref: s,
|
|
439
437
|
iconNode: t,
|
|
440
|
-
className:
|
|
438
|
+
className: Ft(
|
|
441
439
|
`lucide-${ur(pt(e))}`,
|
|
442
440
|
`lucide-${e}`,
|
|
443
441
|
r
|
|
@@ -514,7 +512,7 @@ const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-l
|
|
|
514
512
|
* This source code is licensed under the ISC license.
|
|
515
513
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
514
|
*/
|
|
517
|
-
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
515
|
+
const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Nr);
|
|
518
516
|
/**
|
|
519
517
|
* @license lucide-react v0.575.0 - ISC
|
|
520
518
|
*
|
|
@@ -606,7 +604,7 @@ const Wr = [
|
|
|
606
604
|
* This source code is licensed under the ISC license.
|
|
607
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
608
606
|
*/
|
|
609
|
-
const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]],
|
|
607
|
+
const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", Vr);
|
|
610
608
|
/**
|
|
611
609
|
* @license lucide-react v0.575.0 - ISC
|
|
612
610
|
*
|
|
@@ -662,7 +660,7 @@ const Xr = [
|
|
|
662
660
|
key: "18887p"
|
|
663
661
|
}
|
|
664
662
|
]
|
|
665
|
-
],
|
|
663
|
+
], Wt = L("message-square", Xr);
|
|
666
664
|
/**
|
|
667
665
|
* @license lucide-react v0.575.0 - ISC
|
|
668
666
|
*
|
|
@@ -769,18 +767,18 @@ const an = [
|
|
|
769
767
|
const cn = [
|
|
770
768
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
771
769
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
772
|
-
],
|
|
773
|
-
function
|
|
770
|
+
], Ht = L("user", cn);
|
|
771
|
+
function Vt(e) {
|
|
774
772
|
var t, o, r = "";
|
|
775
773
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
776
774
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
777
775
|
var n = e.length;
|
|
778
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
776
|
+
for (t = 0; t < n; t++) e[t] && (o = Vt(e[t])) && (r && (r += " "), r += o);
|
|
779
777
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
780
778
|
return r;
|
|
781
779
|
}
|
|
782
|
-
function
|
|
783
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
780
|
+
function jt() {
|
|
781
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Vt(e)) && (r && (r += " "), r += t);
|
|
784
782
|
return r;
|
|
785
783
|
}
|
|
786
784
|
const dn = (e, t) => {
|
|
@@ -793,7 +791,7 @@ const dn = (e, t) => {
|
|
|
793
791
|
}, un = (e, t) => ({
|
|
794
792
|
classGroupId: e,
|
|
795
793
|
validator: t
|
|
796
|
-
}),
|
|
794
|
+
}), Bt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
797
795
|
nextPart: e,
|
|
798
796
|
validators: t,
|
|
799
797
|
classGroupId: o
|
|
@@ -807,7 +805,7 @@ const dn = (e, t) => {
|
|
|
807
805
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
808
806
|
return pn(a);
|
|
809
807
|
const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
810
|
-
return
|
|
808
|
+
return Gt(i, l, t);
|
|
811
809
|
},
|
|
812
810
|
getConflictingClassGroupIds: (a, i) => {
|
|
813
811
|
if (i) {
|
|
@@ -817,12 +815,12 @@ const dn = (e, t) => {
|
|
|
817
815
|
return o[a] || ht;
|
|
818
816
|
}
|
|
819
817
|
};
|
|
820
|
-
},
|
|
818
|
+
}, Gt = (e, t, o) => {
|
|
821
819
|
if (e.length - t === 0)
|
|
822
820
|
return o.classGroupId;
|
|
823
821
|
const n = e[t], s = o.nextPart.get(n);
|
|
824
822
|
if (s) {
|
|
825
|
-
const d =
|
|
823
|
+
const d = Gt(e, t + 1, s);
|
|
826
824
|
if (d) return d;
|
|
827
825
|
}
|
|
828
826
|
const a = o.validators;
|
|
@@ -844,7 +842,7 @@ const dn = (e, t) => {
|
|
|
844
842
|
} = e;
|
|
845
843
|
return gn(o, t);
|
|
846
844
|
}, gn = (e, t) => {
|
|
847
|
-
const o =
|
|
845
|
+
const o = Bt();
|
|
848
846
|
for (const r in e) {
|
|
849
847
|
const n = e[r];
|
|
850
848
|
et(n, o, r, t);
|
|
@@ -867,7 +865,7 @@ const dn = (e, t) => {
|
|
|
867
865
|
}
|
|
868
866
|
wn(e, t, o, r);
|
|
869
867
|
}, vn = (e, t, o) => {
|
|
870
|
-
const r = e === "" ? t :
|
|
868
|
+
const r = e === "" ? t : qt(t, e);
|
|
871
869
|
r.classGroupId = o;
|
|
872
870
|
}, xn = (e, t, o, r) => {
|
|
873
871
|
if (yn(e)) {
|
|
@@ -879,15 +877,15 @@ const dn = (e, t) => {
|
|
|
879
877
|
const n = Object.entries(e), s = n.length;
|
|
880
878
|
for (let a = 0; a < s; a++) {
|
|
881
879
|
const [i, l] = n[a];
|
|
882
|
-
et(l,
|
|
880
|
+
et(l, qt(t, i), o, r);
|
|
883
881
|
}
|
|
884
|
-
},
|
|
882
|
+
}, qt = (e, t) => {
|
|
885
883
|
let o = e;
|
|
886
884
|
const r = t.split(Ie), n = r.length;
|
|
887
885
|
for (let s = 0; s < n; s++) {
|
|
888
886
|
const a = r[s];
|
|
889
887
|
let i = o.nextPart.get(a);
|
|
890
|
-
i || (i =
|
|
888
|
+
i || (i = Bt(), o.nextPart.set(a, i)), o = i;
|
|
891
889
|
}
|
|
892
890
|
return o;
|
|
893
891
|
}, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
|
|
@@ -929,31 +927,31 @@ const dn = (e, t) => {
|
|
|
929
927
|
const s = [];
|
|
930
928
|
let a = 0, i = 0, l = 0, d;
|
|
931
929
|
const u = n.length;
|
|
932
|
-
for (let
|
|
933
|
-
const h = n[
|
|
930
|
+
for (let x = 0; x < u; x++) {
|
|
931
|
+
const h = n[x];
|
|
934
932
|
if (a === 0 && i === 0) {
|
|
935
933
|
if (h === gt) {
|
|
936
|
-
s.push(n.slice(l,
|
|
934
|
+
s.push(n.slice(l, x)), l = x + 1;
|
|
937
935
|
continue;
|
|
938
936
|
}
|
|
939
937
|
if (h === "/") {
|
|
940
|
-
d =
|
|
938
|
+
d = x;
|
|
941
939
|
continue;
|
|
942
940
|
}
|
|
943
941
|
}
|
|
944
942
|
h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
|
|
945
943
|
}
|
|
946
944
|
const f = s.length === 0 ? n : n.slice(l);
|
|
947
|
-
let m = f,
|
|
948
|
-
f.endsWith(Xe) ? (m = f.slice(0, -1),
|
|
945
|
+
let m = f, g = !1;
|
|
946
|
+
f.endsWith(Xe) ? (m = f.slice(0, -1), g = !0) : (
|
|
949
947
|
/**
|
|
950
948
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
951
949
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
952
950
|
*/
|
|
953
|
-
f.startsWith(Xe) && (m = f.slice(1),
|
|
951
|
+
f.startsWith(Xe) && (m = f.slice(1), g = !0)
|
|
954
952
|
);
|
|
955
|
-
const
|
|
956
|
-
return bt(s,
|
|
953
|
+
const k = d && d > l ? d - l : void 0;
|
|
954
|
+
return bt(s, g, m, k);
|
|
957
955
|
};
|
|
958
956
|
if (t) {
|
|
959
957
|
const n = t + gt, s = r;
|
|
@@ -997,27 +995,27 @@ const dn = (e, t) => {
|
|
|
997
995
|
const u = i[d], {
|
|
998
996
|
isExternal: f,
|
|
999
997
|
modifiers: m,
|
|
1000
|
-
hasImportantModifier:
|
|
1001
|
-
baseClassName:
|
|
1002
|
-
maybePostfixModifierPosition:
|
|
998
|
+
hasImportantModifier: g,
|
|
999
|
+
baseClassName: k,
|
|
1000
|
+
maybePostfixModifierPosition: x
|
|
1003
1001
|
} = o(u);
|
|
1004
1002
|
if (f) {
|
|
1005
1003
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1006
1004
|
continue;
|
|
1007
1005
|
}
|
|
1008
|
-
let h = !!
|
|
1006
|
+
let h = !!x, y = r(h ? k.substring(0, x) : k);
|
|
1009
1007
|
if (!y) {
|
|
1010
1008
|
if (!h) {
|
|
1011
1009
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1012
1010
|
continue;
|
|
1013
1011
|
}
|
|
1014
|
-
if (y = r(
|
|
1012
|
+
if (y = r(k), !y) {
|
|
1015
1013
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1016
1014
|
continue;
|
|
1017
1015
|
}
|
|
1018
1016
|
h = !1;
|
|
1019
1017
|
}
|
|
1020
|
-
const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C =
|
|
1018
|
+
const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = g ? R + Xe : R, A = C + y;
|
|
1021
1019
|
if (a.indexOf(A) > -1)
|
|
1022
1020
|
continue;
|
|
1023
1021
|
a.push(A);
|
|
@@ -1032,14 +1030,14 @@ const dn = (e, t) => {
|
|
|
1032
1030
|
}, _n = (...e) => {
|
|
1033
1031
|
let t = 0, o, r, n = "";
|
|
1034
1032
|
for (; t < e.length; )
|
|
1035
|
-
(o = e[t++]) && (r =
|
|
1033
|
+
(o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
|
|
1036
1034
|
return n;
|
|
1037
|
-
},
|
|
1035
|
+
}, Yt = (e) => {
|
|
1038
1036
|
if (typeof e == "string")
|
|
1039
1037
|
return e;
|
|
1040
1038
|
let t, o = "";
|
|
1041
1039
|
for (let r = 0; r < e.length; r++)
|
|
1042
|
-
e[r] && (t =
|
|
1040
|
+
e[r] && (t = Yt(e[r])) && (o && (o += " "), o += t);
|
|
1043
1041
|
return o;
|
|
1044
1042
|
}, In = (e, ...t) => {
|
|
1045
1043
|
let o, r, n, s;
|
|
@@ -1057,19 +1055,19 @@ const dn = (e, t) => {
|
|
|
1057
1055
|
}, Pn = [], F = (e) => {
|
|
1058
1056
|
const t = (o) => o[e] || Pn;
|
|
1059
1057
|
return t.isThemeGetter = !0, t;
|
|
1060
|
-
},
|
|
1058
|
+
}, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => zn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Tn.test(e), Kt = () => !0, Fn = (e) => (
|
|
1061
1059
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1062
1060
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1063
1061
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1064
1062
|
Mn.test(e) && !Ln.test(e)
|
|
1065
|
-
), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !
|
|
1066
|
-
const r = Yt.exec(e);
|
|
1067
|
-
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1068
|
-
}, le = (e, t, o = !1) => {
|
|
1063
|
+
), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !w(e), Hn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, ro, Kt), jn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Bn = (e) => re(e, Qt, Un), Ee = (e) => re(e, no, Dn), w = (e) => Zt.test(e), fe = (e) => ie(e, to), Gn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), qn = (e) => ie(e, eo), Yn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Xn = (e) => ie(e, ro, !0), re = (e, t, o) => {
|
|
1069
1064
|
const r = Xt.exec(e);
|
|
1065
|
+
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1066
|
+
}, ie = (e, t, o = !1) => {
|
|
1067
|
+
const r = Zt.exec(e);
|
|
1070
1068
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1071
|
-
},
|
|
1072
|
-
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"),
|
|
1069
|
+
}, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Zn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Kn = () => {
|
|
1070
|
+
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), g = F("drop-shadow"), k = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
1073
1071
|
"center",
|
|
1074
1072
|
"top",
|
|
1075
1073
|
"bottom",
|
|
@@ -1087,30 +1085,30 @@ const dn = (e, t) => {
|
|
|
1087
1085
|
"bottom-left",
|
|
1088
1086
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1089
1087
|
"left-bottom"
|
|
1090
|
-
], P = () => [...A(),
|
|
1091
|
-
span: ["full", te,
|
|
1092
|
-
}, te,
|
|
1093
|
-
position: [
|
|
1088
|
+
], P = () => [...A(), w, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], b = () => [w, v, l], S = () => [ee, "full", "auto", ...b()], M = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
|
|
1089
|
+
span: ["full", te, w, v]
|
|
1090
|
+
}, te, w, v], Z = () => [te, "auto", w, v], ve = () => ["auto", "min", "max", "fr", w, v], xe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...b()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], N = () => [e, w, v], ct = () => [...A(), wt, xt, {
|
|
1091
|
+
position: [w, v]
|
|
1094
1092
|
}], dt = () => ["no-repeat", {
|
|
1095
1093
|
repeat: ["", "x", "y", "space", "round"]
|
|
1096
1094
|
}], ut = () => ["auto", "cover", "contain", qn, Hn, {
|
|
1097
|
-
size: [
|
|
1098
|
-
}], De = () => [He,
|
|
1095
|
+
size: [w, v]
|
|
1096
|
+
}], De = () => [He, fe, se], H = () => [
|
|
1099
1097
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1100
1098
|
"",
|
|
1101
1099
|
"none",
|
|
1102
1100
|
"full",
|
|
1103
1101
|
d,
|
|
1104
|
-
|
|
1102
|
+
w,
|
|
1105
1103
|
v
|
|
1106
|
-
], V = () => ["", I,
|
|
1104
|
+
], V = () => ["", I, fe, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
|
|
1107
1105
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1108
1106
|
"",
|
|
1109
1107
|
"none",
|
|
1110
|
-
|
|
1111
|
-
|
|
1108
|
+
k,
|
|
1109
|
+
w,
|
|
1112
1110
|
v
|
|
1113
|
-
], ye = () => ["none", I,
|
|
1111
|
+
], ye = () => ["none", I, w, v], ke = () => ["none", I, w, v], Ue = () => [I, w, v], Se = () => [ee, "full", ...b()];
|
|
1114
1112
|
return {
|
|
1115
1113
|
cacheSize: 500,
|
|
1116
1114
|
theme: {
|
|
@@ -1118,7 +1116,7 @@ const dn = (e, t) => {
|
|
|
1118
1116
|
aspect: ["video"],
|
|
1119
1117
|
blur: [K],
|
|
1120
1118
|
breakpoint: [K],
|
|
1121
|
-
color: [
|
|
1119
|
+
color: [Kt],
|
|
1122
1120
|
container: [K],
|
|
1123
1121
|
"drop-shadow": [K],
|
|
1124
1122
|
ease: ["in", "out", "in-out"],
|
|
@@ -1143,7 +1141,7 @@ const dn = (e, t) => {
|
|
|
1143
1141
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1144
1142
|
*/
|
|
1145
1143
|
aspect: [{
|
|
1146
|
-
aspect: ["auto", "square", ee, v,
|
|
1144
|
+
aspect: ["auto", "square", ee, v, w, h]
|
|
1147
1145
|
}],
|
|
1148
1146
|
/**
|
|
1149
1147
|
* Container
|
|
@@ -1156,7 +1154,7 @@ const dn = (e, t) => {
|
|
|
1156
1154
|
* @see https://tailwindcss.com/docs/columns
|
|
1157
1155
|
*/
|
|
1158
1156
|
columns: [{
|
|
1159
|
-
columns: [I, v,
|
|
1157
|
+
columns: [I, v, w, i]
|
|
1160
1158
|
}],
|
|
1161
1159
|
/**
|
|
1162
1160
|
* Break After
|
|
@@ -1288,21 +1286,21 @@ const dn = (e, t) => {
|
|
|
1288
1286
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1289
1287
|
*/
|
|
1290
1288
|
inset: [{
|
|
1291
|
-
inset:
|
|
1289
|
+
inset: S()
|
|
1292
1290
|
}],
|
|
1293
1291
|
/**
|
|
1294
1292
|
* Inset Inline
|
|
1295
1293
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1296
1294
|
*/
|
|
1297
1295
|
"inset-x": [{
|
|
1298
|
-
"inset-x":
|
|
1296
|
+
"inset-x": S()
|
|
1299
1297
|
}],
|
|
1300
1298
|
/**
|
|
1301
1299
|
* Inset Block
|
|
1302
1300
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1303
1301
|
*/
|
|
1304
1302
|
"inset-y": [{
|
|
1305
|
-
"inset-y":
|
|
1303
|
+
"inset-y": S()
|
|
1306
1304
|
}],
|
|
1307
1305
|
/**
|
|
1308
1306
|
* Inset Inline Start
|
|
@@ -1310,12 +1308,12 @@ const dn = (e, t) => {
|
|
|
1310
1308
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
1311
1309
|
*/
|
|
1312
1310
|
start: [{
|
|
1313
|
-
"inset-s":
|
|
1311
|
+
"inset-s": S(),
|
|
1314
1312
|
/**
|
|
1315
1313
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
1316
1314
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1317
1315
|
*/
|
|
1318
|
-
start:
|
|
1316
|
+
start: S()
|
|
1319
1317
|
}],
|
|
1320
1318
|
/**
|
|
1321
1319
|
* Inset Inline End
|
|
@@ -1323,54 +1321,54 @@ const dn = (e, t) => {
|
|
|
1323
1321
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
1324
1322
|
*/
|
|
1325
1323
|
end: [{
|
|
1326
|
-
"inset-e":
|
|
1324
|
+
"inset-e": S(),
|
|
1327
1325
|
/**
|
|
1328
1326
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
1329
1327
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1330
1328
|
*/
|
|
1331
|
-
end:
|
|
1329
|
+
end: S()
|
|
1332
1330
|
}],
|
|
1333
1331
|
/**
|
|
1334
1332
|
* Inset Block Start
|
|
1335
1333
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1336
1334
|
*/
|
|
1337
1335
|
"inset-bs": [{
|
|
1338
|
-
"inset-bs":
|
|
1336
|
+
"inset-bs": S()
|
|
1339
1337
|
}],
|
|
1340
1338
|
/**
|
|
1341
1339
|
* Inset Block End
|
|
1342
1340
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1343
1341
|
*/
|
|
1344
1342
|
"inset-be": [{
|
|
1345
|
-
"inset-be":
|
|
1343
|
+
"inset-be": S()
|
|
1346
1344
|
}],
|
|
1347
1345
|
/**
|
|
1348
1346
|
* Top
|
|
1349
1347
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1350
1348
|
*/
|
|
1351
1349
|
top: [{
|
|
1352
|
-
top:
|
|
1350
|
+
top: S()
|
|
1353
1351
|
}],
|
|
1354
1352
|
/**
|
|
1355
1353
|
* Right
|
|
1356
1354
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1357
1355
|
*/
|
|
1358
1356
|
right: [{
|
|
1359
|
-
right:
|
|
1357
|
+
right: S()
|
|
1360
1358
|
}],
|
|
1361
1359
|
/**
|
|
1362
1360
|
* Bottom
|
|
1363
1361
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1364
1362
|
*/
|
|
1365
1363
|
bottom: [{
|
|
1366
|
-
bottom:
|
|
1364
|
+
bottom: S()
|
|
1367
1365
|
}],
|
|
1368
1366
|
/**
|
|
1369
1367
|
* Left
|
|
1370
1368
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1371
1369
|
*/
|
|
1372
1370
|
left: [{
|
|
1373
|
-
left:
|
|
1371
|
+
left: S()
|
|
1374
1372
|
}],
|
|
1375
1373
|
/**
|
|
1376
1374
|
* Visibility
|
|
@@ -1382,7 +1380,7 @@ const dn = (e, t) => {
|
|
|
1382
1380
|
* @see https://tailwindcss.com/docs/z-index
|
|
1383
1381
|
*/
|
|
1384
1382
|
z: [{
|
|
1385
|
-
z: [te, "auto",
|
|
1383
|
+
z: [te, "auto", w, v]
|
|
1386
1384
|
}],
|
|
1387
1385
|
// ------------------------
|
|
1388
1386
|
// --- Flexbox and Grid ---
|
|
@@ -1392,7 +1390,7 @@ const dn = (e, t) => {
|
|
|
1392
1390
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1393
1391
|
*/
|
|
1394
1392
|
basis: [{
|
|
1395
|
-
basis: [ee, "full", "auto", i, ...
|
|
1393
|
+
basis: [ee, "full", "auto", i, ...b()]
|
|
1396
1394
|
}],
|
|
1397
1395
|
/**
|
|
1398
1396
|
* Flex Direction
|
|
@@ -1420,21 +1418,21 @@ const dn = (e, t) => {
|
|
|
1420
1418
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1421
1419
|
*/
|
|
1422
1420
|
grow: [{
|
|
1423
|
-
grow: ["", I,
|
|
1421
|
+
grow: ["", I, w, v]
|
|
1424
1422
|
}],
|
|
1425
1423
|
/**
|
|
1426
1424
|
* Flex Shrink
|
|
1427
1425
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1428
1426
|
*/
|
|
1429
1427
|
shrink: [{
|
|
1430
|
-
shrink: ["", I,
|
|
1428
|
+
shrink: ["", I, w, v]
|
|
1431
1429
|
}],
|
|
1432
1430
|
/**
|
|
1433
1431
|
* Order
|
|
1434
1432
|
* @see https://tailwindcss.com/docs/order
|
|
1435
1433
|
*/
|
|
1436
1434
|
order: [{
|
|
1437
|
-
order: [te, "first", "last", "none",
|
|
1435
|
+
order: [te, "first", "last", "none", w, v]
|
|
1438
1436
|
}],
|
|
1439
1437
|
/**
|
|
1440
1438
|
* Grid Template Columns
|
|
@@ -1518,21 +1516,21 @@ const dn = (e, t) => {
|
|
|
1518
1516
|
* @see https://tailwindcss.com/docs/gap
|
|
1519
1517
|
*/
|
|
1520
1518
|
gap: [{
|
|
1521
|
-
gap:
|
|
1519
|
+
gap: b()
|
|
1522
1520
|
}],
|
|
1523
1521
|
/**
|
|
1524
1522
|
* Gap X
|
|
1525
1523
|
* @see https://tailwindcss.com/docs/gap
|
|
1526
1524
|
*/
|
|
1527
1525
|
"gap-x": [{
|
|
1528
|
-
"gap-x":
|
|
1526
|
+
"gap-x": b()
|
|
1529
1527
|
}],
|
|
1530
1528
|
/**
|
|
1531
1529
|
* Gap Y
|
|
1532
1530
|
* @see https://tailwindcss.com/docs/gap
|
|
1533
1531
|
*/
|
|
1534
1532
|
"gap-y": [{
|
|
1535
|
-
"gap-y":
|
|
1533
|
+
"gap-y": b()
|
|
1536
1534
|
}],
|
|
1537
1535
|
/**
|
|
1538
1536
|
* Justify Content
|
|
@@ -1607,77 +1605,77 @@ const dn = (e, t) => {
|
|
|
1607
1605
|
* @see https://tailwindcss.com/docs/padding
|
|
1608
1606
|
*/
|
|
1609
1607
|
p: [{
|
|
1610
|
-
p:
|
|
1608
|
+
p: b()
|
|
1611
1609
|
}],
|
|
1612
1610
|
/**
|
|
1613
1611
|
* Padding Inline
|
|
1614
1612
|
* @see https://tailwindcss.com/docs/padding
|
|
1615
1613
|
*/
|
|
1616
1614
|
px: [{
|
|
1617
|
-
px:
|
|
1615
|
+
px: b()
|
|
1618
1616
|
}],
|
|
1619
1617
|
/**
|
|
1620
1618
|
* Padding Block
|
|
1621
1619
|
* @see https://tailwindcss.com/docs/padding
|
|
1622
1620
|
*/
|
|
1623
1621
|
py: [{
|
|
1624
|
-
py:
|
|
1622
|
+
py: b()
|
|
1625
1623
|
}],
|
|
1626
1624
|
/**
|
|
1627
1625
|
* Padding Inline Start
|
|
1628
1626
|
* @see https://tailwindcss.com/docs/padding
|
|
1629
1627
|
*/
|
|
1630
1628
|
ps: [{
|
|
1631
|
-
ps:
|
|
1629
|
+
ps: b()
|
|
1632
1630
|
}],
|
|
1633
1631
|
/**
|
|
1634
1632
|
* Padding Inline End
|
|
1635
1633
|
* @see https://tailwindcss.com/docs/padding
|
|
1636
1634
|
*/
|
|
1637
1635
|
pe: [{
|
|
1638
|
-
pe:
|
|
1636
|
+
pe: b()
|
|
1639
1637
|
}],
|
|
1640
1638
|
/**
|
|
1641
1639
|
* Padding Block Start
|
|
1642
1640
|
* @see https://tailwindcss.com/docs/padding
|
|
1643
1641
|
*/
|
|
1644
1642
|
pbs: [{
|
|
1645
|
-
pbs:
|
|
1643
|
+
pbs: b()
|
|
1646
1644
|
}],
|
|
1647
1645
|
/**
|
|
1648
1646
|
* Padding Block End
|
|
1649
1647
|
* @see https://tailwindcss.com/docs/padding
|
|
1650
1648
|
*/
|
|
1651
1649
|
pbe: [{
|
|
1652
|
-
pbe:
|
|
1650
|
+
pbe: b()
|
|
1653
1651
|
}],
|
|
1654
1652
|
/**
|
|
1655
1653
|
* Padding Top
|
|
1656
1654
|
* @see https://tailwindcss.com/docs/padding
|
|
1657
1655
|
*/
|
|
1658
1656
|
pt: [{
|
|
1659
|
-
pt:
|
|
1657
|
+
pt: b()
|
|
1660
1658
|
}],
|
|
1661
1659
|
/**
|
|
1662
1660
|
* Padding Right
|
|
1663
1661
|
* @see https://tailwindcss.com/docs/padding
|
|
1664
1662
|
*/
|
|
1665
1663
|
pr: [{
|
|
1666
|
-
pr:
|
|
1664
|
+
pr: b()
|
|
1667
1665
|
}],
|
|
1668
1666
|
/**
|
|
1669
1667
|
* Padding Bottom
|
|
1670
1668
|
* @see https://tailwindcss.com/docs/padding
|
|
1671
1669
|
*/
|
|
1672
1670
|
pb: [{
|
|
1673
|
-
pb:
|
|
1671
|
+
pb: b()
|
|
1674
1672
|
}],
|
|
1675
1673
|
/**
|
|
1676
1674
|
* Padding Left
|
|
1677
1675
|
* @see https://tailwindcss.com/docs/padding
|
|
1678
1676
|
*/
|
|
1679
1677
|
pl: [{
|
|
1680
|
-
pl:
|
|
1678
|
+
pl: b()
|
|
1681
1679
|
}],
|
|
1682
1680
|
/**
|
|
1683
1681
|
* Margin
|
|
@@ -1761,7 +1759,7 @@ const dn = (e, t) => {
|
|
|
1761
1759
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1762
1760
|
*/
|
|
1763
1761
|
"space-x": [{
|
|
1764
|
-
"space-x":
|
|
1762
|
+
"space-x": b()
|
|
1765
1763
|
}],
|
|
1766
1764
|
/**
|
|
1767
1765
|
* Space Between X Reverse
|
|
@@ -1773,7 +1771,7 @@ const dn = (e, t) => {
|
|
|
1773
1771
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1774
1772
|
*/
|
|
1775
1773
|
"space-y": [{
|
|
1776
|
-
"space-y":
|
|
1774
|
+
"space-y": b()
|
|
1777
1775
|
}],
|
|
1778
1776
|
/**
|
|
1779
1777
|
* Space Between Y Reverse
|
|
@@ -1899,7 +1897,7 @@ const dn = (e, t) => {
|
|
|
1899
1897
|
* @see https://tailwindcss.com/docs/font-size
|
|
1900
1898
|
*/
|
|
1901
1899
|
"font-size": [{
|
|
1902
|
-
text: ["base", o,
|
|
1900
|
+
text: ["base", o, fe, se]
|
|
1903
1901
|
}],
|
|
1904
1902
|
/**
|
|
1905
1903
|
* Font Smoothing
|
|
@@ -1974,14 +1972,14 @@ const dn = (e, t) => {
|
|
|
1974
1972
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1975
1973
|
*/
|
|
1976
1974
|
tracking: [{
|
|
1977
|
-
tracking: [n,
|
|
1975
|
+
tracking: [n, w, v]
|
|
1978
1976
|
}],
|
|
1979
1977
|
/**
|
|
1980
1978
|
* Line Clamp
|
|
1981
1979
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1982
1980
|
*/
|
|
1983
1981
|
"line-clamp": [{
|
|
1984
|
-
"line-clamp": [I, "none",
|
|
1982
|
+
"line-clamp": [I, "none", w, vt]
|
|
1985
1983
|
}],
|
|
1986
1984
|
/**
|
|
1987
1985
|
* Line Height
|
|
@@ -1991,7 +1989,7 @@ const dn = (e, t) => {
|
|
|
1991
1989
|
leading: [
|
|
1992
1990
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1993
1991
|
s,
|
|
1994
|
-
...
|
|
1992
|
+
...b()
|
|
1995
1993
|
]
|
|
1996
1994
|
}],
|
|
1997
1995
|
/**
|
|
@@ -1999,7 +1997,7 @@ const dn = (e, t) => {
|
|
|
1999
1997
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2000
1998
|
*/
|
|
2001
1999
|
"list-image": [{
|
|
2002
|
-
"list-image": ["none",
|
|
2000
|
+
"list-image": ["none", w, v]
|
|
2003
2001
|
}],
|
|
2004
2002
|
/**
|
|
2005
2003
|
* List Style Position
|
|
@@ -2013,7 +2011,7 @@ const dn = (e, t) => {
|
|
|
2013
2011
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2014
2012
|
*/
|
|
2015
2013
|
"list-style-type": [{
|
|
2016
|
-
list: ["disc", "decimal", "none",
|
|
2014
|
+
list: ["disc", "decimal", "none", w, v]
|
|
2017
2015
|
}],
|
|
2018
2016
|
/**
|
|
2019
2017
|
* Text Alignment
|
|
@@ -2054,7 +2052,7 @@ const dn = (e, t) => {
|
|
|
2054
2052
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2055
2053
|
*/
|
|
2056
2054
|
"text-decoration-thickness": [{
|
|
2057
|
-
decoration: [I, "from-font", "auto",
|
|
2055
|
+
decoration: [I, "from-font", "auto", w, se]
|
|
2058
2056
|
}],
|
|
2059
2057
|
/**
|
|
2060
2058
|
* Text Decoration Color
|
|
@@ -2068,7 +2066,7 @@ const dn = (e, t) => {
|
|
|
2068
2066
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2069
2067
|
*/
|
|
2070
2068
|
"underline-offset": [{
|
|
2071
|
-
"underline-offset": [I, "auto",
|
|
2069
|
+
"underline-offset": [I, "auto", w, v]
|
|
2072
2070
|
}],
|
|
2073
2071
|
/**
|
|
2074
2072
|
* Text Transform
|
|
@@ -2092,14 +2090,14 @@ const dn = (e, t) => {
|
|
|
2092
2090
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2093
2091
|
*/
|
|
2094
2092
|
indent: [{
|
|
2095
|
-
indent:
|
|
2093
|
+
indent: b()
|
|
2096
2094
|
}],
|
|
2097
2095
|
/**
|
|
2098
2096
|
* Vertical Alignment
|
|
2099
2097
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2100
2098
|
*/
|
|
2101
2099
|
"vertical-align": [{
|
|
2102
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2100
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, v]
|
|
2103
2101
|
}],
|
|
2104
2102
|
/**
|
|
2105
2103
|
* Whitespace
|
|
@@ -2134,7 +2132,7 @@ const dn = (e, t) => {
|
|
|
2134
2132
|
* @see https://tailwindcss.com/docs/content
|
|
2135
2133
|
*/
|
|
2136
2134
|
content: [{
|
|
2137
|
-
content: ["none",
|
|
2135
|
+
content: ["none", w, v]
|
|
2138
2136
|
}],
|
|
2139
2137
|
// -------------------
|
|
2140
2138
|
// --- Backgrounds ---
|
|
@@ -2189,9 +2187,9 @@ const dn = (e, t) => {
|
|
|
2189
2187
|
bg: ["none", {
|
|
2190
2188
|
linear: [{
|
|
2191
2189
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2192
|
-
}, te,
|
|
2193
|
-
radial: ["",
|
|
2194
|
-
conic: [te,
|
|
2190
|
+
}, te, w, v],
|
|
2191
|
+
radial: ["", w, v],
|
|
2192
|
+
conic: [te, w, v]
|
|
2195
2193
|
}, Yn, Bn]
|
|
2196
2194
|
}],
|
|
2197
2195
|
/**
|
|
@@ -2562,14 +2560,14 @@ const dn = (e, t) => {
|
|
|
2562
2560
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2563
2561
|
*/
|
|
2564
2562
|
"outline-offset": [{
|
|
2565
|
-
"outline-offset": [I,
|
|
2563
|
+
"outline-offset": [I, w, v]
|
|
2566
2564
|
}],
|
|
2567
2565
|
/**
|
|
2568
2566
|
* Outline Width
|
|
2569
2567
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2570
2568
|
*/
|
|
2571
2569
|
"outline-w": [{
|
|
2572
|
-
outline: ["", I,
|
|
2570
|
+
outline: ["", I, fe, se]
|
|
2573
2571
|
}],
|
|
2574
2572
|
/**
|
|
2575
2573
|
* Outline Color
|
|
@@ -2688,7 +2686,7 @@ const dn = (e, t) => {
|
|
|
2688
2686
|
* @see https://tailwindcss.com/docs/opacity
|
|
2689
2687
|
*/
|
|
2690
2688
|
opacity: [{
|
|
2691
|
-
opacity: [I,
|
|
2689
|
+
opacity: [I, w, v]
|
|
2692
2690
|
}],
|
|
2693
2691
|
/**
|
|
2694
2692
|
* Mix Blend Mode
|
|
@@ -2810,7 +2808,7 @@ const dn = (e, t) => {
|
|
|
2810
2808
|
"mask-y-to": N()
|
|
2811
2809
|
}],
|
|
2812
2810
|
"mask-image-radial": [{
|
|
2813
|
-
"mask-radial": [
|
|
2811
|
+
"mask-radial": [w, v]
|
|
2814
2812
|
}],
|
|
2815
2813
|
"mask-image-radial-from-pos": [{
|
|
2816
2814
|
"mask-radial-from": D()
|
|
@@ -2898,7 +2896,7 @@ const dn = (e, t) => {
|
|
|
2898
2896
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2899
2897
|
*/
|
|
2900
2898
|
"mask-image": [{
|
|
2901
|
-
mask: ["none",
|
|
2899
|
+
mask: ["none", w, v]
|
|
2902
2900
|
}],
|
|
2903
2901
|
// ---------------
|
|
2904
2902
|
// --- Filters ---
|
|
@@ -2912,7 +2910,7 @@ const dn = (e, t) => {
|
|
|
2912
2910
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2913
2911
|
"",
|
|
2914
2912
|
"none",
|
|
2915
|
-
|
|
2913
|
+
w,
|
|
2916
2914
|
v
|
|
2917
2915
|
]
|
|
2918
2916
|
}],
|
|
@@ -2928,14 +2926,14 @@ const dn = (e, t) => {
|
|
|
2928
2926
|
* @see https://tailwindcss.com/docs/brightness
|
|
2929
2927
|
*/
|
|
2930
2928
|
brightness: [{
|
|
2931
|
-
brightness: [I,
|
|
2929
|
+
brightness: [I, w, v]
|
|
2932
2930
|
}],
|
|
2933
2931
|
/**
|
|
2934
2932
|
* Contrast
|
|
2935
2933
|
* @see https://tailwindcss.com/docs/contrast
|
|
2936
2934
|
*/
|
|
2937
2935
|
contrast: [{
|
|
2938
|
-
contrast: [I,
|
|
2936
|
+
contrast: [I, w, v]
|
|
2939
2937
|
}],
|
|
2940
2938
|
/**
|
|
2941
2939
|
* Drop Shadow
|
|
@@ -2946,7 +2944,7 @@ const dn = (e, t) => {
|
|
|
2946
2944
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2947
2945
|
"",
|
|
2948
2946
|
"none",
|
|
2949
|
-
|
|
2947
|
+
g,
|
|
2950
2948
|
Ne,
|
|
2951
2949
|
Ee
|
|
2952
2950
|
]
|
|
@@ -2963,35 +2961,35 @@ const dn = (e, t) => {
|
|
|
2963
2961
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2964
2962
|
*/
|
|
2965
2963
|
grayscale: [{
|
|
2966
|
-
grayscale: ["", I,
|
|
2964
|
+
grayscale: ["", I, w, v]
|
|
2967
2965
|
}],
|
|
2968
2966
|
/**
|
|
2969
2967
|
* Hue Rotate
|
|
2970
2968
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2971
2969
|
*/
|
|
2972
2970
|
"hue-rotate": [{
|
|
2973
|
-
"hue-rotate": [I,
|
|
2971
|
+
"hue-rotate": [I, w, v]
|
|
2974
2972
|
}],
|
|
2975
2973
|
/**
|
|
2976
2974
|
* Invert
|
|
2977
2975
|
* @see https://tailwindcss.com/docs/invert
|
|
2978
2976
|
*/
|
|
2979
2977
|
invert: [{
|
|
2980
|
-
invert: ["", I,
|
|
2978
|
+
invert: ["", I, w, v]
|
|
2981
2979
|
}],
|
|
2982
2980
|
/**
|
|
2983
2981
|
* Saturate
|
|
2984
2982
|
* @see https://tailwindcss.com/docs/saturate
|
|
2985
2983
|
*/
|
|
2986
2984
|
saturate: [{
|
|
2987
|
-
saturate: [I,
|
|
2985
|
+
saturate: [I, w, v]
|
|
2988
2986
|
}],
|
|
2989
2987
|
/**
|
|
2990
2988
|
* Sepia
|
|
2991
2989
|
* @see https://tailwindcss.com/docs/sepia
|
|
2992
2990
|
*/
|
|
2993
2991
|
sepia: [{
|
|
2994
|
-
sepia: ["", I,
|
|
2992
|
+
sepia: ["", I, w, v]
|
|
2995
2993
|
}],
|
|
2996
2994
|
/**
|
|
2997
2995
|
* Backdrop Filter
|
|
@@ -3002,7 +3000,7 @@ const dn = (e, t) => {
|
|
|
3002
3000
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3003
3001
|
"",
|
|
3004
3002
|
"none",
|
|
3005
|
-
|
|
3003
|
+
w,
|
|
3006
3004
|
v
|
|
3007
3005
|
]
|
|
3008
3006
|
}],
|
|
@@ -3018,56 +3016,56 @@ const dn = (e, t) => {
|
|
|
3018
3016
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3019
3017
|
*/
|
|
3020
3018
|
"backdrop-brightness": [{
|
|
3021
|
-
"backdrop-brightness": [I,
|
|
3019
|
+
"backdrop-brightness": [I, w, v]
|
|
3022
3020
|
}],
|
|
3023
3021
|
/**
|
|
3024
3022
|
* Backdrop Contrast
|
|
3025
3023
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3026
3024
|
*/
|
|
3027
3025
|
"backdrop-contrast": [{
|
|
3028
|
-
"backdrop-contrast": [I,
|
|
3026
|
+
"backdrop-contrast": [I, w, v]
|
|
3029
3027
|
}],
|
|
3030
3028
|
/**
|
|
3031
3029
|
* Backdrop Grayscale
|
|
3032
3030
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3033
3031
|
*/
|
|
3034
3032
|
"backdrop-grayscale": [{
|
|
3035
|
-
"backdrop-grayscale": ["", I,
|
|
3033
|
+
"backdrop-grayscale": ["", I, w, v]
|
|
3036
3034
|
}],
|
|
3037
3035
|
/**
|
|
3038
3036
|
* Backdrop Hue Rotate
|
|
3039
3037
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3040
3038
|
*/
|
|
3041
3039
|
"backdrop-hue-rotate": [{
|
|
3042
|
-
"backdrop-hue-rotate": [I,
|
|
3040
|
+
"backdrop-hue-rotate": [I, w, v]
|
|
3043
3041
|
}],
|
|
3044
3042
|
/**
|
|
3045
3043
|
* Backdrop Invert
|
|
3046
3044
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3047
3045
|
*/
|
|
3048
3046
|
"backdrop-invert": [{
|
|
3049
|
-
"backdrop-invert": ["", I,
|
|
3047
|
+
"backdrop-invert": ["", I, w, v]
|
|
3050
3048
|
}],
|
|
3051
3049
|
/**
|
|
3052
3050
|
* Backdrop Opacity
|
|
3053
3051
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3054
3052
|
*/
|
|
3055
3053
|
"backdrop-opacity": [{
|
|
3056
|
-
"backdrop-opacity": [I,
|
|
3054
|
+
"backdrop-opacity": [I, w, v]
|
|
3057
3055
|
}],
|
|
3058
3056
|
/**
|
|
3059
3057
|
* Backdrop Saturate
|
|
3060
3058
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3061
3059
|
*/
|
|
3062
3060
|
"backdrop-saturate": [{
|
|
3063
|
-
"backdrop-saturate": [I,
|
|
3061
|
+
"backdrop-saturate": [I, w, v]
|
|
3064
3062
|
}],
|
|
3065
3063
|
/**
|
|
3066
3064
|
* Backdrop Sepia
|
|
3067
3065
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3068
3066
|
*/
|
|
3069
3067
|
"backdrop-sepia": [{
|
|
3070
|
-
"backdrop-sepia": ["", I,
|
|
3068
|
+
"backdrop-sepia": ["", I, w, v]
|
|
3071
3069
|
}],
|
|
3072
3070
|
// --------------
|
|
3073
3071
|
// --- Tables ---
|
|
@@ -3084,21 +3082,21 @@ const dn = (e, t) => {
|
|
|
3084
3082
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3085
3083
|
*/
|
|
3086
3084
|
"border-spacing": [{
|
|
3087
|
-
"border-spacing":
|
|
3085
|
+
"border-spacing": b()
|
|
3088
3086
|
}],
|
|
3089
3087
|
/**
|
|
3090
3088
|
* Border Spacing X
|
|
3091
3089
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3092
3090
|
*/
|
|
3093
3091
|
"border-spacing-x": [{
|
|
3094
|
-
"border-spacing-x":
|
|
3092
|
+
"border-spacing-x": b()
|
|
3095
3093
|
}],
|
|
3096
3094
|
/**
|
|
3097
3095
|
* Border Spacing Y
|
|
3098
3096
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3099
3097
|
*/
|
|
3100
3098
|
"border-spacing-y": [{
|
|
3101
|
-
"border-spacing-y":
|
|
3099
|
+
"border-spacing-y": b()
|
|
3102
3100
|
}],
|
|
3103
3101
|
/**
|
|
3104
3102
|
* Table Layout
|
|
@@ -3122,7 +3120,7 @@ const dn = (e, t) => {
|
|
|
3122
3120
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3123
3121
|
*/
|
|
3124
3122
|
transition: [{
|
|
3125
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3123
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, v]
|
|
3126
3124
|
}],
|
|
3127
3125
|
/**
|
|
3128
3126
|
* Transition Behavior
|
|
@@ -3136,28 +3134,28 @@ const dn = (e, t) => {
|
|
|
3136
3134
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3137
3135
|
*/
|
|
3138
3136
|
duration: [{
|
|
3139
|
-
duration: [I, "initial",
|
|
3137
|
+
duration: [I, "initial", w, v]
|
|
3140
3138
|
}],
|
|
3141
3139
|
/**
|
|
3142
3140
|
* Transition Timing Function
|
|
3143
3141
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3144
3142
|
*/
|
|
3145
3143
|
ease: [{
|
|
3146
|
-
ease: ["linear", "initial", y,
|
|
3144
|
+
ease: ["linear", "initial", y, w, v]
|
|
3147
3145
|
}],
|
|
3148
3146
|
/**
|
|
3149
3147
|
* Transition Delay
|
|
3150
3148
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3151
3149
|
*/
|
|
3152
3150
|
delay: [{
|
|
3153
|
-
delay: [I,
|
|
3151
|
+
delay: [I, w, v]
|
|
3154
3152
|
}],
|
|
3155
3153
|
/**
|
|
3156
3154
|
* Animation
|
|
3157
3155
|
* @see https://tailwindcss.com/docs/animation
|
|
3158
3156
|
*/
|
|
3159
3157
|
animate: [{
|
|
3160
|
-
animate: ["none", R,
|
|
3158
|
+
animate: ["none", R, w, v]
|
|
3161
3159
|
}],
|
|
3162
3160
|
// ------------------
|
|
3163
3161
|
// --- Transforms ---
|
|
@@ -3174,7 +3172,7 @@ const dn = (e, t) => {
|
|
|
3174
3172
|
* @see https://tailwindcss.com/docs/perspective
|
|
3175
3173
|
*/
|
|
3176
3174
|
perspective: [{
|
|
3177
|
-
perspective: [
|
|
3175
|
+
perspective: [x, w, v]
|
|
3178
3176
|
}],
|
|
3179
3177
|
/**
|
|
3180
3178
|
* Perspective Origin
|
|
@@ -3270,7 +3268,7 @@ const dn = (e, t) => {
|
|
|
3270
3268
|
* @see https://tailwindcss.com/docs/transform
|
|
3271
3269
|
*/
|
|
3272
3270
|
transform: [{
|
|
3273
|
-
transform: [
|
|
3271
|
+
transform: [w, v, "", "none", "gpu", "cpu"]
|
|
3274
3272
|
}],
|
|
3275
3273
|
/**
|
|
3276
3274
|
* Transform Origin
|
|
@@ -3355,7 +3353,7 @@ const dn = (e, t) => {
|
|
|
3355
3353
|
* @see https://tailwindcss.com/docs/cursor
|
|
3356
3354
|
*/
|
|
3357
3355
|
cursor: [{
|
|
3358
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3356
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w, v]
|
|
3359
3357
|
}],
|
|
3360
3358
|
/**
|
|
3361
3359
|
* Field Sizing
|
|
@@ -3390,154 +3388,154 @@ const dn = (e, t) => {
|
|
|
3390
3388
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3391
3389
|
*/
|
|
3392
3390
|
"scroll-m": [{
|
|
3393
|
-
"scroll-m":
|
|
3391
|
+
"scroll-m": b()
|
|
3394
3392
|
}],
|
|
3395
3393
|
/**
|
|
3396
3394
|
* Scroll Margin Inline
|
|
3397
3395
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3398
3396
|
*/
|
|
3399
3397
|
"scroll-mx": [{
|
|
3400
|
-
"scroll-mx":
|
|
3398
|
+
"scroll-mx": b()
|
|
3401
3399
|
}],
|
|
3402
3400
|
/**
|
|
3403
3401
|
* Scroll Margin Block
|
|
3404
3402
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3405
3403
|
*/
|
|
3406
3404
|
"scroll-my": [{
|
|
3407
|
-
"scroll-my":
|
|
3405
|
+
"scroll-my": b()
|
|
3408
3406
|
}],
|
|
3409
3407
|
/**
|
|
3410
3408
|
* Scroll Margin Inline Start
|
|
3411
3409
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3412
3410
|
*/
|
|
3413
3411
|
"scroll-ms": [{
|
|
3414
|
-
"scroll-ms":
|
|
3412
|
+
"scroll-ms": b()
|
|
3415
3413
|
}],
|
|
3416
3414
|
/**
|
|
3417
3415
|
* Scroll Margin Inline End
|
|
3418
3416
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3419
3417
|
*/
|
|
3420
3418
|
"scroll-me": [{
|
|
3421
|
-
"scroll-me":
|
|
3419
|
+
"scroll-me": b()
|
|
3422
3420
|
}],
|
|
3423
3421
|
/**
|
|
3424
3422
|
* Scroll Margin Block Start
|
|
3425
3423
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3426
3424
|
*/
|
|
3427
3425
|
"scroll-mbs": [{
|
|
3428
|
-
"scroll-mbs":
|
|
3426
|
+
"scroll-mbs": b()
|
|
3429
3427
|
}],
|
|
3430
3428
|
/**
|
|
3431
3429
|
* Scroll Margin Block End
|
|
3432
3430
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3433
3431
|
*/
|
|
3434
3432
|
"scroll-mbe": [{
|
|
3435
|
-
"scroll-mbe":
|
|
3433
|
+
"scroll-mbe": b()
|
|
3436
3434
|
}],
|
|
3437
3435
|
/**
|
|
3438
3436
|
* Scroll Margin Top
|
|
3439
3437
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3440
3438
|
*/
|
|
3441
3439
|
"scroll-mt": [{
|
|
3442
|
-
"scroll-mt":
|
|
3440
|
+
"scroll-mt": b()
|
|
3443
3441
|
}],
|
|
3444
3442
|
/**
|
|
3445
3443
|
* Scroll Margin Right
|
|
3446
3444
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3447
3445
|
*/
|
|
3448
3446
|
"scroll-mr": [{
|
|
3449
|
-
"scroll-mr":
|
|
3447
|
+
"scroll-mr": b()
|
|
3450
3448
|
}],
|
|
3451
3449
|
/**
|
|
3452
3450
|
* Scroll Margin Bottom
|
|
3453
3451
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3454
3452
|
*/
|
|
3455
3453
|
"scroll-mb": [{
|
|
3456
|
-
"scroll-mb":
|
|
3454
|
+
"scroll-mb": b()
|
|
3457
3455
|
}],
|
|
3458
3456
|
/**
|
|
3459
3457
|
* Scroll Margin Left
|
|
3460
3458
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3461
3459
|
*/
|
|
3462
3460
|
"scroll-ml": [{
|
|
3463
|
-
"scroll-ml":
|
|
3461
|
+
"scroll-ml": b()
|
|
3464
3462
|
}],
|
|
3465
3463
|
/**
|
|
3466
3464
|
* Scroll Padding
|
|
3467
3465
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3468
3466
|
*/
|
|
3469
3467
|
"scroll-p": [{
|
|
3470
|
-
"scroll-p":
|
|
3468
|
+
"scroll-p": b()
|
|
3471
3469
|
}],
|
|
3472
3470
|
/**
|
|
3473
3471
|
* Scroll Padding Inline
|
|
3474
3472
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3475
3473
|
*/
|
|
3476
3474
|
"scroll-px": [{
|
|
3477
|
-
"scroll-px":
|
|
3475
|
+
"scroll-px": b()
|
|
3478
3476
|
}],
|
|
3479
3477
|
/**
|
|
3480
3478
|
* Scroll Padding Block
|
|
3481
3479
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3482
3480
|
*/
|
|
3483
3481
|
"scroll-py": [{
|
|
3484
|
-
"scroll-py":
|
|
3482
|
+
"scroll-py": b()
|
|
3485
3483
|
}],
|
|
3486
3484
|
/**
|
|
3487
3485
|
* Scroll Padding Inline Start
|
|
3488
3486
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3489
3487
|
*/
|
|
3490
3488
|
"scroll-ps": [{
|
|
3491
|
-
"scroll-ps":
|
|
3489
|
+
"scroll-ps": b()
|
|
3492
3490
|
}],
|
|
3493
3491
|
/**
|
|
3494
3492
|
* Scroll Padding Inline End
|
|
3495
3493
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3496
3494
|
*/
|
|
3497
3495
|
"scroll-pe": [{
|
|
3498
|
-
"scroll-pe":
|
|
3496
|
+
"scroll-pe": b()
|
|
3499
3497
|
}],
|
|
3500
3498
|
/**
|
|
3501
3499
|
* Scroll Padding Block Start
|
|
3502
3500
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3503
3501
|
*/
|
|
3504
3502
|
"scroll-pbs": [{
|
|
3505
|
-
"scroll-pbs":
|
|
3503
|
+
"scroll-pbs": b()
|
|
3506
3504
|
}],
|
|
3507
3505
|
/**
|
|
3508
3506
|
* Scroll Padding Block End
|
|
3509
3507
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3510
3508
|
*/
|
|
3511
3509
|
"scroll-pbe": [{
|
|
3512
|
-
"scroll-pbe":
|
|
3510
|
+
"scroll-pbe": b()
|
|
3513
3511
|
}],
|
|
3514
3512
|
/**
|
|
3515
3513
|
* Scroll Padding Top
|
|
3516
3514
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3517
3515
|
*/
|
|
3518
3516
|
"scroll-pt": [{
|
|
3519
|
-
"scroll-pt":
|
|
3517
|
+
"scroll-pt": b()
|
|
3520
3518
|
}],
|
|
3521
3519
|
/**
|
|
3522
3520
|
* Scroll Padding Right
|
|
3523
3521
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3524
3522
|
*/
|
|
3525
3523
|
"scroll-pr": [{
|
|
3526
|
-
"scroll-pr":
|
|
3524
|
+
"scroll-pr": b()
|
|
3527
3525
|
}],
|
|
3528
3526
|
/**
|
|
3529
3527
|
* Scroll Padding Bottom
|
|
3530
3528
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3531
3529
|
*/
|
|
3532
3530
|
"scroll-pb": [{
|
|
3533
|
-
"scroll-pb":
|
|
3531
|
+
"scroll-pb": b()
|
|
3534
3532
|
}],
|
|
3535
3533
|
/**
|
|
3536
3534
|
* Scroll Padding Left
|
|
3537
3535
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3538
3536
|
*/
|
|
3539
3537
|
"scroll-pl": [{
|
|
3540
|
-
"scroll-pl":
|
|
3538
|
+
"scroll-pl": b()
|
|
3541
3539
|
}],
|
|
3542
3540
|
/**
|
|
3543
3541
|
* Scroll Snap Align
|
|
@@ -3605,7 +3603,7 @@ const dn = (e, t) => {
|
|
|
3605
3603
|
* @see https://tailwindcss.com/docs/will-change
|
|
3606
3604
|
*/
|
|
3607
3605
|
"will-change": [{
|
|
3608
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3606
|
+
"will-change": ["auto", "scroll", "contents", "transform", w, v]
|
|
3609
3607
|
}],
|
|
3610
3608
|
// -----------
|
|
3611
3609
|
// --- SVG ---
|
|
@@ -3622,7 +3620,7 @@ const dn = (e, t) => {
|
|
|
3622
3620
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3623
3621
|
*/
|
|
3624
3622
|
"stroke-w": [{
|
|
3625
|
-
stroke: [I,
|
|
3623
|
+
stroke: [I, fe, se, vt]
|
|
3626
3624
|
}],
|
|
3627
3625
|
/**
|
|
3628
3626
|
* Stroke
|
|
@@ -3697,7 +3695,7 @@ const dn = (e, t) => {
|
|
|
3697
3695
|
},
|
|
3698
3696
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3699
3697
|
};
|
|
3700
|
-
}, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(
|
|
3698
|
+
}, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(jt(e));
|
|
3701
3699
|
function me({ className: e, ...t }) {
|
|
3702
3700
|
return /* @__PURE__ */ c(
|
|
3703
3701
|
"div",
|
|
@@ -3734,7 +3732,7 @@ function pe({ className: e, ...t }) {
|
|
|
3734
3732
|
}
|
|
3735
3733
|
);
|
|
3736
3734
|
}
|
|
3737
|
-
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt =
|
|
3735
|
+
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, ot = (e, t) => (o) => {
|
|
3738
3736
|
var r;
|
|
3739
3737
|
if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3740
3738
|
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
|
|
@@ -3746,16 +3744,16 @@ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, o
|
|
|
3746
3744
|
let [f, m] = u;
|
|
3747
3745
|
return m === void 0 || (d[f] = m), d;
|
|
3748
3746
|
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
3749
|
-
let { class: f, className: m, ...
|
|
3750
|
-
return Object.entries(
|
|
3751
|
-
let [
|
|
3747
|
+
let { class: f, className: m, ...g } = u;
|
|
3748
|
+
return Object.entries(g).every((k) => {
|
|
3749
|
+
let [x, h] = k;
|
|
3752
3750
|
return Array.isArray(h) ? h.includes({
|
|
3753
3751
|
...s,
|
|
3754
3752
|
...i
|
|
3755
|
-
}[
|
|
3753
|
+
}[x]) : {
|
|
3756
3754
|
...s,
|
|
3757
3755
|
...i
|
|
3758
|
-
}[
|
|
3756
|
+
}[x] === h;
|
|
3759
3757
|
}) ? [
|
|
3760
3758
|
...d,
|
|
3761
3759
|
f,
|
|
@@ -3769,7 +3767,7 @@ function St(e, t) {
|
|
|
3769
3767
|
return e(t);
|
|
3770
3768
|
e != null && (e.current = t);
|
|
3771
3769
|
}
|
|
3772
|
-
function
|
|
3770
|
+
function so(...e) {
|
|
3773
3771
|
return (t) => {
|
|
3774
3772
|
let o = !1;
|
|
3775
3773
|
const r = e.map((n) => {
|
|
@@ -3786,7 +3784,7 @@ function no(...e) {
|
|
|
3786
3784
|
};
|
|
3787
3785
|
}
|
|
3788
3786
|
function Y(...e) {
|
|
3789
|
-
return p.useCallback(
|
|
3787
|
+
return p.useCallback(so(...e), e);
|
|
3790
3788
|
}
|
|
3791
3789
|
// @__NO_SIDE_EFFECTS__
|
|
3792
3790
|
function Pe(e) {
|
|
@@ -3800,14 +3798,14 @@ function Pe(e) {
|
|
|
3800
3798
|
});
|
|
3801
3799
|
return o.displayName = `${e}.Slot`, o;
|
|
3802
3800
|
}
|
|
3803
|
-
var
|
|
3801
|
+
var ao = /* @__PURE__ */ Pe("Slot");
|
|
3804
3802
|
// @__NO_SIDE_EFFECTS__
|
|
3805
3803
|
function es(e) {
|
|
3806
3804
|
const t = p.forwardRef((o, r) => {
|
|
3807
3805
|
const { children: n, ...s } = o;
|
|
3808
3806
|
if (p.isValidElement(n)) {
|
|
3809
3807
|
const a = ns(n), i = rs(s, n.props);
|
|
3810
|
-
return n.type !== p.Fragment && (i.ref = r ?
|
|
3808
|
+
return n.type !== p.Fragment && (i.ref = r ? so(r, a) : a), p.cloneElement(n, i);
|
|
3811
3809
|
}
|
|
3812
3810
|
return p.Children.count(n) > 1 ? p.Children.only(null) : null;
|
|
3813
3811
|
});
|
|
@@ -3865,14 +3863,14 @@ function ge(e, t = []) {
|
|
|
3865
3863
|
o = [...o, a];
|
|
3866
3864
|
const d = (f) => {
|
|
3867
3865
|
var y;
|
|
3868
|
-
const { scope: m, children:
|
|
3869
|
-
return /* @__PURE__ */ c(
|
|
3866
|
+
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));
|
|
3867
|
+
return /* @__PURE__ */ c(x.Provider, { value: h, children: g });
|
|
3870
3868
|
};
|
|
3871
3869
|
d.displayName = s + "Provider";
|
|
3872
3870
|
function u(f, m) {
|
|
3873
|
-
var
|
|
3874
|
-
const
|
|
3875
|
-
if (
|
|
3871
|
+
var x;
|
|
3872
|
+
const g = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[l]) || i, k = p.useContext(g);
|
|
3873
|
+
if (k) return k;
|
|
3876
3874
|
if (a !== void 0) return a;
|
|
3877
3875
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
3878
3876
|
}
|
|
@@ -3912,27 +3910,27 @@ function is(e) {
|
|
|
3912
3910
|
const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
|
|
3913
3911
|
t,
|
|
3914
3912
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3915
|
-
), a = (
|
|
3916
|
-
const { scope: h, children: y } =
|
|
3913
|
+
), a = (x) => {
|
|
3914
|
+
const { scope: h, children: y } = x, R = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
|
|
3917
3915
|
return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
|
|
3918
3916
|
};
|
|
3919
3917
|
a.displayName = t;
|
|
3920
3918
|
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = G.forwardRef(
|
|
3921
|
-
(
|
|
3922
|
-
const { scope: y, children: R } =
|
|
3919
|
+
(x, h) => {
|
|
3920
|
+
const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
|
|
3923
3921
|
return /* @__PURE__ */ c(l, { ref: A, children: R });
|
|
3924
3922
|
}
|
|
3925
3923
|
);
|
|
3926
3924
|
d.displayName = i;
|
|
3927
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u),
|
|
3928
|
-
(
|
|
3929
|
-
const { scope: y, children: R, ...C } =
|
|
3925
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), g = G.forwardRef(
|
|
3926
|
+
(x, h) => {
|
|
3927
|
+
const { scope: y, children: R, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(u, y);
|
|
3930
3928
|
return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: R });
|
|
3931
3929
|
}
|
|
3932
3930
|
);
|
|
3933
|
-
|
|
3934
|
-
function
|
|
3935
|
-
const h = s(e + "CollectionConsumer",
|
|
3931
|
+
g.displayName = u;
|
|
3932
|
+
function k(x) {
|
|
3933
|
+
const h = s(e + "CollectionConsumer", x);
|
|
3936
3934
|
return G.useCallback(() => {
|
|
3937
3935
|
const R = h.collectionRef.current;
|
|
3938
3936
|
if (!R) return [];
|
|
@@ -3943,8 +3941,8 @@ function is(e) {
|
|
|
3943
3941
|
}, [h.collectionRef, h.itemMap]);
|
|
3944
3942
|
}
|
|
3945
3943
|
return [
|
|
3946
|
-
{ Provider: a, Slot: d, ItemSlot:
|
|
3947
|
-
|
|
3944
|
+
{ Provider: a, Slot: d, ItemSlot: g },
|
|
3945
|
+
k,
|
|
3948
3946
|
r
|
|
3949
3947
|
];
|
|
3950
3948
|
}
|
|
@@ -3956,7 +3954,7 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
|
3956
3954
|
}
|
|
3957
3955
|
var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
|
|
3958
3956
|
}, ls = p[" useInsertionEffect ".trim().toString()] || oe;
|
|
3959
|
-
function
|
|
3957
|
+
function io({
|
|
3960
3958
|
prop: e,
|
|
3961
3959
|
defaultProp: t,
|
|
3962
3960
|
onChange: o = () => {
|
|
@@ -4007,11 +4005,11 @@ function ds(e) {
|
|
|
4007
4005
|
function us(e, t) {
|
|
4008
4006
|
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4009
4007
|
}
|
|
4010
|
-
var
|
|
4008
|
+
var ue = (e) => {
|
|
4011
4009
|
const { present: t, children: o } = e, r = fs(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ms(n));
|
|
4012
4010
|
return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
|
|
4013
4011
|
};
|
|
4014
|
-
|
|
4012
|
+
ue.displayName = "Presence";
|
|
4015
4013
|
function fs(e) {
|
|
4016
4014
|
const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = us(a, {
|
|
4017
4015
|
mounted: {
|
|
@@ -4032,22 +4030,22 @@ function fs(e) {
|
|
|
4032
4030
|
}, [i]), oe(() => {
|
|
4033
4031
|
const d = r.current, u = n.current;
|
|
4034
4032
|
if (u !== e) {
|
|
4035
|
-
const m = s.current,
|
|
4036
|
-
e ? l("MOUNT") :
|
|
4033
|
+
const m = s.current, g = Ae(d);
|
|
4034
|
+
e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
4037
4035
|
}
|
|
4038
4036
|
}, [e, l]), oe(() => {
|
|
4039
4037
|
if (t) {
|
|
4040
4038
|
let d;
|
|
4041
|
-
const u = t.ownerDocument.defaultView ?? window, f = (
|
|
4042
|
-
const
|
|
4043
|
-
if (
|
|
4039
|
+
const u = t.ownerDocument.defaultView ?? window, f = (g) => {
|
|
4040
|
+
const x = Ae(r.current).includes(CSS.escape(g.animationName));
|
|
4041
|
+
if (g.target === t && x && (l("ANIMATION_END"), !n.current)) {
|
|
4044
4042
|
const h = t.style.animationFillMode;
|
|
4045
4043
|
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
4046
4044
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
4047
4045
|
});
|
|
4048
4046
|
}
|
|
4049
|
-
}, m = (
|
|
4050
|
-
|
|
4047
|
+
}, m = (g) => {
|
|
4048
|
+
g.target === t && (s.current = Ae(r.current));
|
|
4051
4049
|
};
|
|
4052
4050
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4053
4051
|
u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4071,7 +4069,7 @@ function ms(e) {
|
|
|
4071
4069
|
}
|
|
4072
4070
|
var ps = p[" useId ".trim().toString()] || (() => {
|
|
4073
4071
|
}), hs = 0;
|
|
4074
|
-
function
|
|
4072
|
+
function lo(e) {
|
|
4075
4073
|
const [t, o] = p.useState(ps());
|
|
4076
4074
|
return oe(() => {
|
|
4077
4075
|
o((r) => r ?? String(hs++));
|
|
@@ -4111,27 +4109,27 @@ function bs() {
|
|
|
4111
4109
|
}
|
|
4112
4110
|
var o = typeof Object.is == "function" ? Object.is : t, r = e.useState, n = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
4113
4111
|
function i(f, m) {
|
|
4114
|
-
var
|
|
4112
|
+
var g = m(), k = r({ inst: { value: g, getSnapshot: m } }), x = k[0].inst, h = k[1];
|
|
4115
4113
|
return s(
|
|
4116
4114
|
function() {
|
|
4117
|
-
|
|
4115
|
+
x.value = g, x.getSnapshot = m, l(x) && h({ inst: x });
|
|
4118
4116
|
},
|
|
4119
|
-
[f,
|
|
4117
|
+
[f, g, m]
|
|
4120
4118
|
), n(
|
|
4121
4119
|
function() {
|
|
4122
|
-
return l(
|
|
4123
|
-
l(
|
|
4120
|
+
return l(x) && h({ inst: x }), f(function() {
|
|
4121
|
+
l(x) && h({ inst: x });
|
|
4124
4122
|
});
|
|
4125
4123
|
},
|
|
4126
4124
|
[f]
|
|
4127
|
-
), a(
|
|
4125
|
+
), a(g), g;
|
|
4128
4126
|
}
|
|
4129
4127
|
function l(f) {
|
|
4130
4128
|
var m = f.getSnapshot;
|
|
4131
4129
|
f = f.value;
|
|
4132
4130
|
try {
|
|
4133
|
-
var
|
|
4134
|
-
return !o(f,
|
|
4131
|
+
var g = m();
|
|
4132
|
+
return !o(f, g);
|
|
4135
4133
|
} catch {
|
|
4136
4134
|
return !0;
|
|
4137
4135
|
}
|
|
@@ -4158,7 +4156,7 @@ function ys() {
|
|
|
4158
4156
|
return () => {
|
|
4159
4157
|
};
|
|
4160
4158
|
}
|
|
4161
|
-
var nt = "Avatar", [ks] = ge(nt), [Ss,
|
|
4159
|
+
var nt = "Avatar", [ks] = ge(nt), [Ss, co] = ks(nt), uo = p.forwardRef(
|
|
4162
4160
|
(e, t) => {
|
|
4163
4161
|
const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
|
|
4164
4162
|
return /* @__PURE__ */ c(
|
|
@@ -4172,11 +4170,11 @@ var nt = "Avatar", [ks] = ge(nt), [Ss, lo] = ks(nt), co = p.forwardRef(
|
|
|
4172
4170
|
);
|
|
4173
4171
|
}
|
|
4174
4172
|
);
|
|
4175
|
-
|
|
4176
|
-
var
|
|
4173
|
+
uo.displayName = nt;
|
|
4174
|
+
var fo = "AvatarImage", mo = p.forwardRef(
|
|
4177
4175
|
(e, t) => {
|
|
4178
4176
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4179
|
-
}, ...s } = e, a =
|
|
4177
|
+
}, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((d) => {
|
|
4180
4178
|
n(d), a.onImageLoadingStatusChange(d);
|
|
4181
4179
|
});
|
|
4182
4180
|
return oe(() => {
|
|
@@ -4184,10 +4182,10 @@ var uo = "AvatarImage", fo = p.forwardRef(
|
|
|
4184
4182
|
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(j.img, { ...s, ref: t, src: r }) : null;
|
|
4185
4183
|
}
|
|
4186
4184
|
);
|
|
4187
|
-
|
|
4188
|
-
var
|
|
4185
|
+
mo.displayName = fo;
|
|
4186
|
+
var po = "AvatarFallback", ho = p.forwardRef(
|
|
4189
4187
|
(e, t) => {
|
|
4190
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = e, s =
|
|
4188
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = co(po, o), [a, i] = p.useState(r === void 0);
|
|
4191
4189
|
return p.useEffect(() => {
|
|
4192
4190
|
if (r !== void 0) {
|
|
4193
4191
|
const l = window.setTimeout(() => i(!0), r);
|
|
@@ -4196,7 +4194,7 @@ var mo = "AvatarFallback", po = p.forwardRef(
|
|
|
4196
4194
|
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(j.span, { ...n, ref: t }) : null;
|
|
4197
4195
|
}
|
|
4198
4196
|
);
|
|
4199
|
-
|
|
4197
|
+
ho.displayName = po;
|
|
4200
4198
|
function Nt(e, t) {
|
|
4201
4199
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4202
4200
|
}
|
|
@@ -4217,13 +4215,13 @@ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
|
4217
4215
|
};
|
|
4218
4216
|
}, [s, o, t]), a;
|
|
4219
4217
|
}
|
|
4220
|
-
var Es =
|
|
4218
|
+
var Es = uo, Ns = mo, As = ho, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, _s] = is(be), [Is, bo] = ge(
|
|
4221
4219
|
be,
|
|
4222
4220
|
[_s]
|
|
4223
|
-
), [Ps, zs] = Is(be),
|
|
4221
|
+
), [Ps, zs] = Is(be), vo = p.forwardRef(
|
|
4224
4222
|
(e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
|
|
4225
4223
|
);
|
|
4226
|
-
|
|
4224
|
+
vo.displayName = be;
|
|
4227
4225
|
var Ts = p.forwardRef((e, t) => {
|
|
4228
4226
|
const {
|
|
4229
4227
|
__scopeRovingFocusGroup: o,
|
|
@@ -4236,35 +4234,35 @@ var Ts = p.forwardRef((e, t) => {
|
|
|
4236
4234
|
onEntryFocus: d,
|
|
4237
4235
|
preventScrollOnEntryFocus: u = !1,
|
|
4238
4236
|
...f
|
|
4239
|
-
} = e, m = p.useRef(null),
|
|
4237
|
+
} = e, m = p.useRef(null), g = Y(t, m), k = rt(s), [x, h] = io({
|
|
4240
4238
|
prop: a,
|
|
4241
4239
|
defaultProp: i ?? null,
|
|
4242
4240
|
onChange: l,
|
|
4243
4241
|
caller: be
|
|
4244
|
-
}), [y, R] = p.useState(!1), C = J(d), A =
|
|
4242
|
+
}), [y, R] = p.useState(!1), C = J(d), A = go(o), P = p.useRef(!1), [E, _] = p.useState(0);
|
|
4245
4243
|
return p.useEffect(() => {
|
|
4246
|
-
const
|
|
4247
|
-
if (
|
|
4248
|
-
return
|
|
4244
|
+
const b = m.current;
|
|
4245
|
+
if (b)
|
|
4246
|
+
return b.addEventListener(Be, C), () => b.removeEventListener(Be, C);
|
|
4249
4247
|
}, [C]), /* @__PURE__ */ c(
|
|
4250
4248
|
Ps,
|
|
4251
4249
|
{
|
|
4252
4250
|
scope: o,
|
|
4253
4251
|
orientation: r,
|
|
4254
|
-
dir:
|
|
4252
|
+
dir: k,
|
|
4255
4253
|
loop: n,
|
|
4256
|
-
currentTabStopId:
|
|
4254
|
+
currentTabStopId: x,
|
|
4257
4255
|
onItemFocus: p.useCallback(
|
|
4258
|
-
(
|
|
4256
|
+
(b) => h(b),
|
|
4259
4257
|
[h]
|
|
4260
4258
|
),
|
|
4261
4259
|
onItemShiftTab: p.useCallback(() => R(!0), []),
|
|
4262
4260
|
onFocusableItemAdd: p.useCallback(
|
|
4263
|
-
() => _((
|
|
4261
|
+
() => _((b) => b + 1),
|
|
4264
4262
|
[]
|
|
4265
4263
|
),
|
|
4266
4264
|
onFocusableItemRemove: p.useCallback(
|
|
4267
|
-
() => _((
|
|
4265
|
+
() => _((b) => b - 1),
|
|
4268
4266
|
[]
|
|
4269
4267
|
),
|
|
4270
4268
|
children: /* @__PURE__ */ c(
|
|
@@ -4273,20 +4271,20 @@ var Ts = p.forwardRef((e, t) => {
|
|
|
4273
4271
|
tabIndex: y || E === 0 ? -1 : 0,
|
|
4274
4272
|
"data-orientation": r,
|
|
4275
4273
|
...f,
|
|
4276
|
-
ref:
|
|
4274
|
+
ref: g,
|
|
4277
4275
|
style: { outline: "none", ...e.style },
|
|
4278
4276
|
onMouseDown: W(e.onMouseDown, () => {
|
|
4279
4277
|
P.current = !0;
|
|
4280
4278
|
}),
|
|
4281
|
-
onFocus: W(e.onFocus, (
|
|
4282
|
-
const
|
|
4283
|
-
if (
|
|
4279
|
+
onFocus: W(e.onFocus, (b) => {
|
|
4280
|
+
const S = !P.current;
|
|
4281
|
+
if (b.target === b.currentTarget && S && !y) {
|
|
4284
4282
|
const M = new CustomEvent(Be, Rs);
|
|
4285
|
-
if (
|
|
4286
|
-
const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id ===
|
|
4283
|
+
if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
4284
|
+
const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [Z, ve, ...O].filter(
|
|
4287
4285
|
Boolean
|
|
4288
4286
|
).map(($) => $.ref.current);
|
|
4289
|
-
|
|
4287
|
+
yo(Q, u);
|
|
4290
4288
|
}
|
|
4291
4289
|
}
|
|
4292
4290
|
P.current = !1;
|
|
@@ -4296,7 +4294,7 @@ var Ts = p.forwardRef((e, t) => {
|
|
|
4296
4294
|
)
|
|
4297
4295
|
}
|
|
4298
4296
|
);
|
|
4299
|
-
}),
|
|
4297
|
+
}), xo = "RovingFocusGroupItem", wo = p.forwardRef(
|
|
4300
4298
|
(e, t) => {
|
|
4301
4299
|
const {
|
|
4302
4300
|
__scopeRovingFocusGroup: o,
|
|
@@ -4305,11 +4303,11 @@ var Ts = p.forwardRef((e, t) => {
|
|
|
4305
4303
|
tabStopId: s,
|
|
4306
4304
|
children: a,
|
|
4307
4305
|
...i
|
|
4308
|
-
} = e, l =
|
|
4306
|
+
} = e, l = lo(), d = s || l, u = zs(xo, o), f = u.currentTabStopId === d, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = u;
|
|
4309
4307
|
return p.useEffect(() => {
|
|
4310
4308
|
if (r)
|
|
4311
|
-
return
|
|
4312
|
-
}, [r,
|
|
4309
|
+
return g(), () => k();
|
|
4310
|
+
}, [r, g, k]), /* @__PURE__ */ c(
|
|
4313
4311
|
Ze.ItemSlot,
|
|
4314
4312
|
{
|
|
4315
4313
|
scope: o,
|
|
@@ -4344,17 +4342,17 @@ var Ts = p.forwardRef((e, t) => {
|
|
|
4344
4342
|
const A = C.indexOf(h.currentTarget);
|
|
4345
4343
|
C = u.loop ? $s(C, A + 1) : C.slice(A + 1);
|
|
4346
4344
|
}
|
|
4347
|
-
setTimeout(() =>
|
|
4345
|
+
setTimeout(() => yo(C));
|
|
4348
4346
|
}
|
|
4349
4347
|
}),
|
|
4350
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop:
|
|
4348
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: x != null }) : a
|
|
4351
4349
|
}
|
|
4352
4350
|
)
|
|
4353
4351
|
}
|
|
4354
4352
|
);
|
|
4355
4353
|
}
|
|
4356
4354
|
);
|
|
4357
|
-
|
|
4355
|
+
wo.displayName = xo;
|
|
4358
4356
|
var Ms = {
|
|
4359
4357
|
ArrowLeft: "prev",
|
|
4360
4358
|
ArrowUp: "prev",
|
|
@@ -4373,7 +4371,7 @@ function Os(e, t, o) {
|
|
|
4373
4371
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4374
4372
|
return Ms[r];
|
|
4375
4373
|
}
|
|
4376
|
-
function
|
|
4374
|
+
function yo(e, t = !1) {
|
|
4377
4375
|
const o = document.activeElement;
|
|
4378
4376
|
for (const r of e)
|
|
4379
4377
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
@@ -4381,14 +4379,14 @@ function wo(e, t = !1) {
|
|
|
4381
4379
|
function $s(e, t) {
|
|
4382
4380
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
4383
4381
|
}
|
|
4384
|
-
var Fs =
|
|
4382
|
+
var Fs = vo, Ds = wo;
|
|
4385
4383
|
function Us(e, [t, o]) {
|
|
4386
4384
|
return Math.min(o, Math.max(t, e));
|
|
4387
4385
|
}
|
|
4388
4386
|
function Ws(e, t) {
|
|
4389
4387
|
return p.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4390
4388
|
}
|
|
4391
|
-
var st = "ScrollArea", [
|
|
4389
|
+
var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
|
|
4392
4390
|
(e, t) => {
|
|
4393
4391
|
const {
|
|
4394
4392
|
__scopeScrollArea: o,
|
|
@@ -4396,7 +4394,7 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
|
|
|
4396
4394
|
dir: n,
|
|
4397
4395
|
scrollHideDelay: s = 600,
|
|
4398
4396
|
...a
|
|
4399
|
-
} = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [
|
|
4397
|
+
} = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [g, k] = p.useState(null), [x, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, b] = p.useState(!1), S = Y(t, (O) => l(O)), M = rt(n);
|
|
4400
4398
|
return /* @__PURE__ */ c(
|
|
4401
4399
|
Hs,
|
|
4402
4400
|
{
|
|
@@ -4409,14 +4407,14 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
|
|
|
4409
4407
|
onViewportChange: u,
|
|
4410
4408
|
content: f,
|
|
4411
4409
|
onContentChange: m,
|
|
4412
|
-
scrollbarX:
|
|
4413
|
-
onScrollbarXChange:
|
|
4410
|
+
scrollbarX: g,
|
|
4411
|
+
onScrollbarXChange: k,
|
|
4414
4412
|
scrollbarXEnabled: P,
|
|
4415
4413
|
onScrollbarXEnabledChange: E,
|
|
4416
|
-
scrollbarY:
|
|
4414
|
+
scrollbarY: x,
|
|
4417
4415
|
onScrollbarYChange: h,
|
|
4418
4416
|
scrollbarYEnabled: _,
|
|
4419
|
-
onScrollbarYEnabledChange:
|
|
4417
|
+
onScrollbarYEnabledChange: b,
|
|
4420
4418
|
onCornerWidthChange: R,
|
|
4421
4419
|
onCornerHeightChange: A,
|
|
4422
4420
|
children: /* @__PURE__ */ c(
|
|
@@ -4424,7 +4422,7 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
|
|
|
4424
4422
|
{
|
|
4425
4423
|
dir: M,
|
|
4426
4424
|
...a,
|
|
4427
|
-
ref:
|
|
4425
|
+
ref: S,
|
|
4428
4426
|
style: {
|
|
4429
4427
|
position: "relative",
|
|
4430
4428
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -4438,10 +4436,10 @@ var st = "ScrollArea", [yo] = ge(st), [Hs, q] = yo(st), ko = p.forwardRef(
|
|
|
4438
4436
|
);
|
|
4439
4437
|
}
|
|
4440
4438
|
);
|
|
4441
|
-
|
|
4442
|
-
var
|
|
4439
|
+
So.displayName = st;
|
|
4440
|
+
var Co = "ScrollAreaViewport", Eo = p.forwardRef(
|
|
4443
4441
|
(e, t) => {
|
|
4444
|
-
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(
|
|
4442
|
+
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(Co, o), i = p.useRef(null), l = Y(t, i, a.onViewportChange);
|
|
4445
4443
|
return /* @__PURE__ */ z(he, { children: [
|
|
4446
4444
|
/* @__PURE__ */ c(
|
|
4447
4445
|
"style",
|
|
@@ -4480,16 +4478,16 @@ var So = "ScrollAreaViewport", Co = p.forwardRef(
|
|
|
4480
4478
|
] });
|
|
4481
4479
|
}
|
|
4482
4480
|
);
|
|
4483
|
-
|
|
4484
|
-
var X = "ScrollAreaScrollbar",
|
|
4481
|
+
Eo.displayName = Co;
|
|
4482
|
+
var X = "ScrollAreaScrollbar", No = p.forwardRef(
|
|
4485
4483
|
(e, t) => {
|
|
4486
4484
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4487
4485
|
return p.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4488
4486
|
i ? s(!1) : a(!1);
|
|
4489
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(
|
|
4487
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
|
|
4490
4488
|
}
|
|
4491
4489
|
);
|
|
4492
|
-
|
|
4490
|
+
No.displayName = X;
|
|
4493
4491
|
var Vs = p.forwardRef((e, t) => {
|
|
4494
4492
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
|
|
4495
4493
|
return p.useEffect(() => {
|
|
@@ -4505,8 +4503,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4505
4503
|
window.clearTimeout(l), i.removeEventListener("pointerenter", d), i.removeEventListener("pointerleave", u);
|
|
4506
4504
|
};
|
|
4507
4505
|
}
|
|
4508
|
-
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(
|
|
4509
|
-
|
|
4506
|
+
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(ue, { present: o || s, children: /* @__PURE__ */ c(
|
|
4507
|
+
Ao,
|
|
4510
4508
|
{
|
|
4511
4509
|
"data-state": s ? "visible" : "hidden",
|
|
4512
4510
|
...r,
|
|
@@ -4542,12 +4540,12 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4542
4540
|
if (d) {
|
|
4543
4541
|
let f = d[u];
|
|
4544
4542
|
const m = () => {
|
|
4545
|
-
const
|
|
4546
|
-
f !==
|
|
4543
|
+
const g = d[u];
|
|
4544
|
+
f !== g && (l("SCROLL"), a()), f = g;
|
|
4547
4545
|
};
|
|
4548
4546
|
return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
|
|
4549
4547
|
}
|
|
4550
|
-
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(
|
|
4548
|
+
}, [n.viewport, s, l, a]), /* @__PURE__ */ c(ue, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
|
|
4551
4549
|
at,
|
|
4552
4550
|
{
|
|
4553
4551
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
@@ -4557,14 +4555,14 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4557
4555
|
onPointerLeave: W(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
4558
4556
|
}
|
|
4559
4557
|
) });
|
|
4560
|
-
}),
|
|
4558
|
+
}), Ao = p.forwardRef((e, t) => {
|
|
4561
4559
|
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
|
|
4562
4560
|
if (o.viewport) {
|
|
4563
4561
|
const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
|
|
4564
4562
|
a(i ? d : u);
|
|
4565
4563
|
}
|
|
4566
4564
|
}, 10);
|
|
4567
|
-
return
|
|
4565
|
+
return de(o.viewport, l), de(o.content, l), /* @__PURE__ */ c(ue, { present: r || s, children: /* @__PURE__ */ c(
|
|
4568
4566
|
at,
|
|
4569
4567
|
{
|
|
4570
4568
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -4577,7 +4575,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4577
4575
|
content: 0,
|
|
4578
4576
|
viewport: 0,
|
|
4579
4577
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4580
|
-
}), d =
|
|
4578
|
+
}), d = zo(i.viewport, i.content), u = {
|
|
4581
4579
|
...r,
|
|
4582
4580
|
sizes: i,
|
|
4583
4581
|
onSizesChange: l,
|
|
@@ -4586,8 +4584,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4586
4584
|
onThumbPointerUp: () => a.current = 0,
|
|
4587
4585
|
onThumbPointerDown: (m) => a.current = m
|
|
4588
4586
|
};
|
|
4589
|
-
function f(m,
|
|
4590
|
-
return Zs(m, a.current, i,
|
|
4587
|
+
function f(m, g) {
|
|
4588
|
+
return Zs(m, a.current, i, g);
|
|
4591
4589
|
}
|
|
4592
4590
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4593
4591
|
Bs,
|
|
@@ -4596,8 +4594,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4596
4594
|
ref: t,
|
|
4597
4595
|
onThumbPositionChange: () => {
|
|
4598
4596
|
if (n.viewport && s.current) {
|
|
4599
|
-
const m = n.viewport.scrollLeft,
|
|
4600
|
-
s.current.style.transform = `translate3d(${
|
|
4597
|
+
const m = n.viewport.scrollLeft, g = At(m, i, n.dir);
|
|
4598
|
+
s.current.style.transform = `translate3d(${g}px, 0, 0)`;
|
|
4601
4599
|
}
|
|
4602
4600
|
},
|
|
4603
4601
|
onWheelScroll: (m) => {
|
|
@@ -4614,8 +4612,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4614
4612
|
ref: t,
|
|
4615
4613
|
onThumbPositionChange: () => {
|
|
4616
4614
|
if (n.viewport && s.current) {
|
|
4617
|
-
const m = n.viewport.scrollTop,
|
|
4618
|
-
s.current.style.transform = `translate3d(0, ${
|
|
4615
|
+
const m = n.viewport.scrollTop, g = At(m, i);
|
|
4616
|
+
s.current.style.transform = `translate3d(0, ${g}px, 0)`;
|
|
4619
4617
|
}
|
|
4620
4618
|
},
|
|
4621
4619
|
onWheelScroll: (m) => {
|
|
@@ -4631,7 +4629,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4631
4629
|
return p.useEffect(() => {
|
|
4632
4630
|
l.current && i(getComputedStyle(l.current));
|
|
4633
4631
|
}, [l]), /* @__PURE__ */ c(
|
|
4634
|
-
|
|
4632
|
+
_o,
|
|
4635
4633
|
{
|
|
4636
4634
|
"data-orientation": "horizontal",
|
|
4637
4635
|
...n,
|
|
@@ -4649,7 +4647,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4649
4647
|
onWheelScroll: (u, f) => {
|
|
4650
4648
|
if (s.viewport) {
|
|
4651
4649
|
const m = s.viewport.scrollLeft + u.deltaX;
|
|
4652
|
-
e.onWheelScroll(m),
|
|
4650
|
+
e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
|
|
4653
4651
|
}
|
|
4654
4652
|
},
|
|
4655
4653
|
onResize: () => {
|
|
@@ -4670,7 +4668,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4670
4668
|
return p.useEffect(() => {
|
|
4671
4669
|
l.current && i(getComputedStyle(l.current));
|
|
4672
4670
|
}, [l]), /* @__PURE__ */ c(
|
|
4673
|
-
|
|
4671
|
+
_o,
|
|
4674
4672
|
{
|
|
4675
4673
|
"data-orientation": "vertical",
|
|
4676
4674
|
...n,
|
|
@@ -4689,7 +4687,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4689
4687
|
onWheelScroll: (u, f) => {
|
|
4690
4688
|
if (s.viewport) {
|
|
4691
4689
|
const m = s.viewport.scrollTop + u.deltaY;
|
|
4692
|
-
e.onWheelScroll(m),
|
|
4690
|
+
e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
|
|
4693
4691
|
}
|
|
4694
4692
|
},
|
|
4695
4693
|
onResize: () => {
|
|
@@ -4705,7 +4703,7 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4705
4703
|
}
|
|
4706
4704
|
}
|
|
4707
4705
|
);
|
|
4708
|
-
}), [qs,
|
|
4706
|
+
}), [qs, Ro] = ko(X), _o = p.forwardRef((e, t) => {
|
|
4709
4707
|
const {
|
|
4710
4708
|
__scopeScrollArea: o,
|
|
4711
4709
|
sizes: r,
|
|
@@ -4718,24 +4716,24 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4718
4716
|
onWheelScroll: u,
|
|
4719
4717
|
onResize: f,
|
|
4720
4718
|
...m
|
|
4721
|
-
} = e,
|
|
4722
|
-
function
|
|
4719
|
+
} = e, g = q(X, o), [k, x] = p.useState(null), h = Y(t, (S) => x(S)), y = p.useRef(null), R = p.useRef(""), C = g.viewport, A = r.content - r.viewport, P = J(u), E = J(l), _ = Le(f, 10);
|
|
4720
|
+
function b(S) {
|
|
4723
4721
|
if (y.current) {
|
|
4724
|
-
const M =
|
|
4722
|
+
const M = S.clientX - y.current.left, O = S.clientY - y.current.top;
|
|
4725
4723
|
d({ x: M, y: O });
|
|
4726
4724
|
}
|
|
4727
4725
|
}
|
|
4728
4726
|
return p.useEffect(() => {
|
|
4729
|
-
const
|
|
4727
|
+
const S = (M) => {
|
|
4730
4728
|
const O = M.target;
|
|
4731
|
-
(
|
|
4729
|
+
(k == null ? void 0 : k.contains(O)) && P(M, A);
|
|
4732
4730
|
};
|
|
4733
|
-
return document.addEventListener("wheel",
|
|
4734
|
-
}, [C,
|
|
4731
|
+
return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
|
|
4732
|
+
}, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, _), de(g.content, _), /* @__PURE__ */ c(
|
|
4735
4733
|
qs,
|
|
4736
4734
|
{
|
|
4737
4735
|
scope: o,
|
|
4738
|
-
scrollbar:
|
|
4736
|
+
scrollbar: k,
|
|
4739
4737
|
hasThumb: n,
|
|
4740
4738
|
onThumbChange: J(s),
|
|
4741
4739
|
onThumbPointerUp: J(a),
|
|
@@ -4747,26 +4745,26 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4747
4745
|
...m,
|
|
4748
4746
|
ref: h,
|
|
4749
4747
|
style: { position: "absolute", ...m.style },
|
|
4750
|
-
onPointerDown: W(e.onPointerDown, (
|
|
4751
|
-
|
|
4748
|
+
onPointerDown: W(e.onPointerDown, (S) => {
|
|
4749
|
+
S.button === 0 && (S.target.setPointerCapture(S.pointerId), y.current = k.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), b(S));
|
|
4752
4750
|
}),
|
|
4753
|
-
onPointerMove: W(e.onPointerMove,
|
|
4754
|
-
onPointerUp: W(e.onPointerUp, (
|
|
4755
|
-
const M =
|
|
4756
|
-
M.hasPointerCapture(
|
|
4751
|
+
onPointerMove: W(e.onPointerMove, b),
|
|
4752
|
+
onPointerUp: W(e.onPointerUp, (S) => {
|
|
4753
|
+
const M = S.target;
|
|
4754
|
+
M.hasPointerCapture(S.pointerId) && M.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = R.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
|
|
4757
4755
|
})
|
|
4758
4756
|
}
|
|
4759
4757
|
)
|
|
4760
4758
|
}
|
|
4761
4759
|
);
|
|
4762
|
-
}), ze = "ScrollAreaThumb",
|
|
4760
|
+
}), ze = "ScrollAreaThumb", Io = p.forwardRef(
|
|
4763
4761
|
(e, t) => {
|
|
4764
|
-
const { forceMount: o, ...r } = e, n =
|
|
4765
|
-
return /* @__PURE__ */ c(
|
|
4762
|
+
const { forceMount: o, ...r } = e, n = Ro(ze, e.__scopeScrollArea);
|
|
4763
|
+
return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
|
|
4766
4764
|
}
|
|
4767
4765
|
), Ys = p.forwardRef(
|
|
4768
4766
|
(e, t) => {
|
|
4769
|
-
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a =
|
|
4767
|
+
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ro(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4770
4768
|
t,
|
|
4771
4769
|
(f) => a.onThumbChange(f)
|
|
4772
4770
|
), d = p.useRef(void 0), u = Le(() => {
|
|
@@ -4777,8 +4775,8 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4777
4775
|
if (f) {
|
|
4778
4776
|
const m = () => {
|
|
4779
4777
|
if (u(), !d.current) {
|
|
4780
|
-
const
|
|
4781
|
-
d.current =
|
|
4778
|
+
const g = Ks(f, i);
|
|
4779
|
+
d.current = g, i();
|
|
4782
4780
|
}
|
|
4783
4781
|
};
|
|
4784
4782
|
return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
|
|
@@ -4795,29 +4793,29 @@ var Vs = p.forwardRef((e, t) => {
|
|
|
4795
4793
|
...r
|
|
4796
4794
|
},
|
|
4797
4795
|
onPointerDownCapture: W(e.onPointerDownCapture, (f) => {
|
|
4798
|
-
const
|
|
4799
|
-
a.onThumbPointerDown({ x:
|
|
4796
|
+
const g = f.target.getBoundingClientRect(), k = f.clientX - g.left, x = f.clientY - g.top;
|
|
4797
|
+
a.onThumbPointerDown({ x: k, y: x });
|
|
4800
4798
|
}),
|
|
4801
4799
|
onPointerUp: W(e.onPointerUp, a.onThumbPointerUp)
|
|
4802
4800
|
}
|
|
4803
4801
|
);
|
|
4804
4802
|
}
|
|
4805
4803
|
);
|
|
4806
|
-
|
|
4807
|
-
var it = "ScrollAreaCorner",
|
|
4804
|
+
Io.displayName = ze;
|
|
4805
|
+
var it = "ScrollAreaCorner", Po = p.forwardRef(
|
|
4808
4806
|
(e, t) => {
|
|
4809
4807
|
const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4810
4808
|
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
|
|
4811
4809
|
}
|
|
4812
4810
|
);
|
|
4813
|
-
|
|
4811
|
+
Po.displayName = it;
|
|
4814
4812
|
var Xs = p.forwardRef((e, t) => {
|
|
4815
4813
|
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
|
|
4816
|
-
return
|
|
4814
|
+
return de(n.scrollbarX, () => {
|
|
4817
4815
|
var f;
|
|
4818
4816
|
const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
4819
4817
|
n.onCornerHeightChange(u), l(u);
|
|
4820
|
-
}),
|
|
4818
|
+
}), de(n.scrollbarY, () => {
|
|
4821
4819
|
var f;
|
|
4822
4820
|
const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
4823
4821
|
n.onCornerWidthChange(u), a(u);
|
|
@@ -4841,30 +4839,30 @@ var Xs = p.forwardRef((e, t) => {
|
|
|
4841
4839
|
function Te(e) {
|
|
4842
4840
|
return e ? parseInt(e, 10) : 0;
|
|
4843
4841
|
}
|
|
4844
|
-
function
|
|
4842
|
+
function zo(e, t) {
|
|
4845
4843
|
const o = e / t;
|
|
4846
4844
|
return isNaN(o) ? 0 : o;
|
|
4847
4845
|
}
|
|
4848
4846
|
function Me(e) {
|
|
4849
|
-
const t =
|
|
4847
|
+
const t = zo(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4850
4848
|
return Math.max(r, 18);
|
|
4851
4849
|
}
|
|
4852
4850
|
function Zs(e, t, o, r = "ltr") {
|
|
4853
4851
|
const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, d = o.scrollbar.size - o.scrollbar.paddingEnd - i, u = o.content - o.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
4854
|
-
return
|
|
4852
|
+
return To([l, d], f)(e);
|
|
4855
4853
|
}
|
|
4856
4854
|
function At(e, t, o = "ltr") {
|
|
4857
4855
|
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Us(e, l);
|
|
4858
|
-
return
|
|
4856
|
+
return To([0, a], [0, i])(d);
|
|
4859
4857
|
}
|
|
4860
|
-
function
|
|
4858
|
+
function To(e, t) {
|
|
4861
4859
|
return (o) => {
|
|
4862
4860
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
4863
4861
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
4864
4862
|
return t[0] + r * (o - e[0]);
|
|
4865
4863
|
};
|
|
4866
4864
|
}
|
|
4867
|
-
function
|
|
4865
|
+
function Mo(e, t) {
|
|
4868
4866
|
return e > 0 && e < t;
|
|
4869
4867
|
}
|
|
4870
4868
|
var Ks = (e, t = () => {
|
|
@@ -4881,7 +4879,7 @@ function Le(e, t) {
|
|
|
4881
4879
|
window.clearTimeout(r.current), r.current = window.setTimeout(o, t);
|
|
4882
4880
|
}, [o, t]);
|
|
4883
4881
|
}
|
|
4884
|
-
function
|
|
4882
|
+
function de(e, t) {
|
|
4885
4883
|
const o = J(t);
|
|
4886
4884
|
oe(() => {
|
|
4887
4885
|
let r = 0;
|
|
@@ -4895,7 +4893,7 @@ function ce(e, t) {
|
|
|
4895
4893
|
}
|
|
4896
4894
|
}, [e, o]);
|
|
4897
4895
|
}
|
|
4898
|
-
var Js =
|
|
4896
|
+
var Js = So, Qs = Eo, ea = Po, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
|
|
4899
4897
|
const { decorative: o, orientation: r = Rt, ...n } = e, s = ra(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4900
4898
|
return /* @__PURE__ */ c(
|
|
4901
4899
|
j.div,
|
|
@@ -4907,13 +4905,13 @@ var Js = ko, Qs = Co, ea = Io, ta = "Separator", Rt = "horizontal", oa = ["horiz
|
|
|
4907
4905
|
}
|
|
4908
4906
|
);
|
|
4909
4907
|
});
|
|
4910
|
-
|
|
4908
|
+
Lo.displayName = ta;
|
|
4911
4909
|
function ra(e) {
|
|
4912
4910
|
return oa.includes(e);
|
|
4913
4911
|
}
|
|
4914
|
-
var na =
|
|
4915
|
-
|
|
4916
|
-
]),
|
|
4912
|
+
var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
4913
|
+
bo
|
|
4914
|
+
]), Oo = bo(), [aa, lt] = sa(Oe), $o = p.forwardRef(
|
|
4917
4915
|
(e, t) => {
|
|
4918
4916
|
const {
|
|
4919
4917
|
__scopeTabs: o,
|
|
@@ -4924,7 +4922,7 @@ var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
|
4924
4922
|
dir: i,
|
|
4925
4923
|
activationMode: l = "automatic",
|
|
4926
4924
|
...d
|
|
4927
|
-
} = e, u = rt(i), [f, m] =
|
|
4925
|
+
} = e, u = rt(i), [f, m] = io({
|
|
4928
4926
|
prop: r,
|
|
4929
4927
|
onChange: n,
|
|
4930
4928
|
defaultProp: s ?? "",
|
|
@@ -4934,7 +4932,7 @@ var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
|
4934
4932
|
aa,
|
|
4935
4933
|
{
|
|
4936
4934
|
scope: o,
|
|
4937
|
-
baseId:
|
|
4935
|
+
baseId: lo(),
|
|
4938
4936
|
value: f,
|
|
4939
4937
|
onValueChange: m,
|
|
4940
4938
|
orientation: a,
|
|
@@ -4953,10 +4951,10 @@ var na = Mo, Oe = "Tabs", [sa] = ge(Oe, [
|
|
|
4953
4951
|
);
|
|
4954
4952
|
}
|
|
4955
4953
|
);
|
|
4956
|
-
|
|
4957
|
-
var
|
|
4954
|
+
$o.displayName = Oe;
|
|
4955
|
+
var Fo = "TabsList", Do = p.forwardRef(
|
|
4958
4956
|
(e, t) => {
|
|
4959
|
-
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(
|
|
4957
|
+
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Fo, o), a = Oo(o);
|
|
4960
4958
|
return /* @__PURE__ */ c(
|
|
4961
4959
|
Fs,
|
|
4962
4960
|
{
|
|
@@ -4978,10 +4976,10 @@ var $o = "TabsList", Fo = p.forwardRef(
|
|
|
4978
4976
|
);
|
|
4979
4977
|
}
|
|
4980
4978
|
);
|
|
4981
|
-
|
|
4982
|
-
var
|
|
4979
|
+
Do.displayName = Fo;
|
|
4980
|
+
var Uo = "TabsTrigger", Wo = p.forwardRef(
|
|
4983
4981
|
(e, t) => {
|
|
4984
|
-
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(
|
|
4982
|
+
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = jo(a.baseId, r), d = Bo(a.baseId, r), u = r === a.value;
|
|
4985
4983
|
return /* @__PURE__ */ c(
|
|
4986
4984
|
Ds,
|
|
4987
4985
|
{
|
|
@@ -5018,14 +5016,14 @@ var Do = "TabsTrigger", Uo = p.forwardRef(
|
|
|
5018
5016
|
);
|
|
5019
5017
|
}
|
|
5020
5018
|
);
|
|
5021
|
-
|
|
5022
|
-
var
|
|
5019
|
+
Wo.displayName = Uo;
|
|
5020
|
+
var Ho = "TabsContent", Vo = p.forwardRef(
|
|
5023
5021
|
(e, t) => {
|
|
5024
|
-
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(
|
|
5022
|
+
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Ho, o), l = jo(i.baseId, r), d = Bo(i.baseId, r), u = r === i.value, f = p.useRef(u);
|
|
5025
5023
|
return p.useEffect(() => {
|
|
5026
5024
|
const m = requestAnimationFrame(() => f.current = !1);
|
|
5027
5025
|
return () => cancelAnimationFrame(m);
|
|
5028
|
-
}, []), /* @__PURE__ */ c(
|
|
5026
|
+
}, []), /* @__PURE__ */ c(ue, { present: n || u, children: ({ present: m }) => /* @__PURE__ */ c(
|
|
5029
5027
|
j.div,
|
|
5030
5028
|
{
|
|
5031
5029
|
"data-state": u ? "active" : "inactive",
|
|
@@ -5046,14 +5044,14 @@ var Wo = "TabsContent", Ho = p.forwardRef(
|
|
|
5046
5044
|
) });
|
|
5047
5045
|
}
|
|
5048
5046
|
);
|
|
5049
|
-
|
|
5050
|
-
function
|
|
5047
|
+
Vo.displayName = Ho;
|
|
5048
|
+
function jo(e, t) {
|
|
5051
5049
|
return `${e}-trigger-${t}`;
|
|
5052
5050
|
}
|
|
5053
|
-
function
|
|
5051
|
+
function Bo(e, t) {
|
|
5054
5052
|
return `${e}-content-${t}`;
|
|
5055
5053
|
}
|
|
5056
|
-
var ia =
|
|
5054
|
+
var ia = $o, la = Do, ca = Wo, da = Vo;
|
|
5057
5055
|
const ua = ot(
|
|
5058
5056
|
'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
5059
5057
|
{
|
|
@@ -5083,7 +5081,7 @@ const ua = ot(
|
|
|
5083
5081
|
}
|
|
5084
5082
|
}
|
|
5085
5083
|
);
|
|
5086
|
-
function
|
|
5084
|
+
function Go({
|
|
5087
5085
|
className: e,
|
|
5088
5086
|
variant: t = "default",
|
|
5089
5087
|
size: o = "default",
|
|
@@ -5091,7 +5089,7 @@ function Bo({
|
|
|
5091
5089
|
...n
|
|
5092
5090
|
}) {
|
|
5093
5091
|
return /* @__PURE__ */ c(
|
|
5094
|
-
r ?
|
|
5092
|
+
r ? ao : "button",
|
|
5095
5093
|
{
|
|
5096
5094
|
"data-slot": "button",
|
|
5097
5095
|
"data-variant": t,
|
|
@@ -5126,7 +5124,7 @@ function ma({
|
|
|
5126
5124
|
...r
|
|
5127
5125
|
}) {
|
|
5128
5126
|
return /* @__PURE__ */ c(
|
|
5129
|
-
o ?
|
|
5127
|
+
o ? ao : "span",
|
|
5130
5128
|
{
|
|
5131
5129
|
"data-slot": "badge",
|
|
5132
5130
|
"data-variant": t,
|
|
@@ -5257,7 +5255,7 @@ function ya({
|
|
|
5257
5255
|
...o
|
|
5258
5256
|
}) {
|
|
5259
5257
|
return /* @__PURE__ */ c(
|
|
5260
|
-
|
|
5258
|
+
No,
|
|
5261
5259
|
{
|
|
5262
5260
|
"data-slot": "scroll-area-scrollbar",
|
|
5263
5261
|
orientation: t,
|
|
@@ -5269,7 +5267,7 @@ function ya({
|
|
|
5269
5267
|
),
|
|
5270
5268
|
...o,
|
|
5271
5269
|
children: /* @__PURE__ */ c(
|
|
5272
|
-
|
|
5270
|
+
Io,
|
|
5273
5271
|
{
|
|
5274
5272
|
"data-slot": "scroll-area-thumb",
|
|
5275
5273
|
className: "bg-border relative flex-1 rounded-full"
|
|
@@ -5351,29 +5349,29 @@ function Qe({
|
|
|
5351
5349
|
}
|
|
5352
5350
|
);
|
|
5353
5351
|
}
|
|
5354
|
-
const
|
|
5352
|
+
const qo = {
|
|
5355
5353
|
"arrow-left": xr,
|
|
5356
5354
|
calendar: Sr,
|
|
5357
5355
|
"check-circle-2": Ir,
|
|
5358
5356
|
"chevron-left": Er,
|
|
5359
|
-
"chevron-right":
|
|
5357
|
+
"chevron-right": Dt,
|
|
5360
5358
|
clock: Or,
|
|
5361
5359
|
"credit-card": Fr,
|
|
5362
5360
|
"external-link": Ur,
|
|
5363
5361
|
"help-circle": zr,
|
|
5364
5362
|
info: Hr,
|
|
5365
|
-
"loader-2":
|
|
5363
|
+
"loader-2": Ut,
|
|
5366
5364
|
mail: Ye,
|
|
5367
5365
|
"map-pin": Gr,
|
|
5368
5366
|
"message-circle": Yr,
|
|
5369
|
-
"message-square":
|
|
5367
|
+
"message-square": Wt,
|
|
5370
5368
|
package: Kr,
|
|
5371
5369
|
phone: Qr,
|
|
5372
5370
|
search: tn,
|
|
5373
5371
|
"shopping-bag": rn,
|
|
5374
5372
|
sparkles: sn,
|
|
5375
5373
|
truck: ln,
|
|
5376
|
-
user:
|
|
5374
|
+
user: Ht,
|
|
5377
5375
|
"x-circle": Mr,
|
|
5378
5376
|
"alert-circle": Rr,
|
|
5379
5377
|
"book-open": yr
|
|
@@ -5388,7 +5386,7 @@ const Go = {
|
|
|
5388
5386
|
8: "gap-8",
|
|
5389
5387
|
10: "gap-10",
|
|
5390
5388
|
12: "gap-12"
|
|
5391
|
-
},
|
|
5389
|
+
}, Yo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5392
5390
|
me,
|
|
5393
5391
|
{
|
|
5394
5392
|
className: t,
|
|
@@ -5396,7 +5394,7 @@ const Go = {
|
|
|
5396
5394
|
children: e
|
|
5397
5395
|
}
|
|
5398
5396
|
), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(Qn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
|
|
5399
|
-
|
|
5397
|
+
Go,
|
|
5400
5398
|
{
|
|
5401
5399
|
className: t,
|
|
5402
5400
|
variant: r,
|
|
@@ -5424,10 +5422,10 @@ const Go = {
|
|
|
5424
5422
|
const r = `h${o || "2"}`;
|
|
5425
5423
|
return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
|
|
5426
5424
|
}, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5427
|
-
const n = o === "row" ? "flex-row" : "flex-col", s =
|
|
5425
|
+
const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
|
|
5428
5426
|
return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
|
|
5429
5427
|
}, Wa = ({ children: e, className: t, gap: o }) => {
|
|
5430
|
-
const r =
|
|
5428
|
+
const r = Yo(o);
|
|
5431
5429
|
return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
|
|
5432
5430
|
}, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5433
5431
|
"a",
|
|
@@ -5442,7 +5440,7 @@ const Go = {
|
|
|
5442
5440
|
e ? /* @__PURE__ */ c(pe, { className: "px-6 py-3", children: /* @__PURE__ */ c("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
5443
5441
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
5444
5442
|
] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
|
|
5445
|
-
const s = e, a = "size-5", i = s ?
|
|
5443
|
+
const s = e, a = "size-5", i = s ? qo[s] : null;
|
|
5446
5444
|
return /* @__PURE__ */ z(
|
|
5447
5445
|
"button",
|
|
5448
5446
|
{
|
|
@@ -5455,12 +5453,12 @@ const Go = {
|
|
|
5455
5453
|
t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
5456
5454
|
o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
|
|
5457
5455
|
] }),
|
|
5458
|
-
/* @__PURE__ */ c(
|
|
5456
|
+
/* @__PURE__ */ c(Dt, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
5459
5457
|
]
|
|
5460
5458
|
}
|
|
5461
5459
|
);
|
|
5462
5460
|
}, Ba = ({ name: e, size: t, className: o }) => {
|
|
5463
|
-
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a =
|
|
5461
|
+
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = qo[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
5464
5462
|
return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
|
|
5465
5463
|
}, Ga = () => ({
|
|
5466
5464
|
"ui-card": Sa,
|
|
@@ -5486,7 +5484,7 @@ const Go = {
|
|
|
5486
5484
|
"ui-link": Ha,
|
|
5487
5485
|
"ui-menu-item": ja,
|
|
5488
5486
|
"ui-menu": Va
|
|
5489
|
-
}), It = "/api/ecommerce",
|
|
5487
|
+
}), It = "/api/ecommerce", Xo = async (e, t) => {
|
|
5490
5488
|
const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
|
|
5491
5489
|
method: "POST",
|
|
5492
5490
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5518,7 +5516,7 @@ const Go = {
|
|
|
5518
5516
|
}, []), B(() => {
|
|
5519
5517
|
if (typeof window > "u") return;
|
|
5520
5518
|
const u = () => {
|
|
5521
|
-
const m =
|
|
5519
|
+
const m = $t(window.location.search);
|
|
5522
5520
|
r(m);
|
|
5523
5521
|
};
|
|
5524
5522
|
u();
|
|
@@ -5585,7 +5583,7 @@ const Go = {
|
|
|
5585
5583
|
overflow: "hidden",
|
|
5586
5584
|
textOverflow: "ellipsis"
|
|
5587
5585
|
},
|
|
5588
|
-
children: ((m = t.find((
|
|
5586
|
+
children: ((m = t.find((g) => g.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
|
|
5589
5587
|
}
|
|
5590
5588
|
),
|
|
5591
5589
|
/* @__PURE__ */ z(
|
|
@@ -5685,7 +5683,7 @@ const Go = {
|
|
|
5685
5683
|
]
|
|
5686
5684
|
}
|
|
5687
5685
|
);
|
|
5688
|
-
},
|
|
5686
|
+
}, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
|
|
5689
5687
|
instanceId: e,
|
|
5690
5688
|
apiBase: t,
|
|
5691
5689
|
hostBase: o,
|
|
@@ -5697,9 +5695,9 @@ const Go = {
|
|
|
5697
5695
|
const [i, l] = U([]), [d, u] = U(!1);
|
|
5698
5696
|
B(() => {
|
|
5699
5697
|
(async () => {
|
|
5700
|
-
const
|
|
5698
|
+
const g = e;
|
|
5701
5699
|
try {
|
|
5702
|
-
if (!
|
|
5700
|
+
if (!g) {
|
|
5703
5701
|
console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), u(!0);
|
|
5704
5702
|
return;
|
|
5705
5703
|
}
|
|
@@ -5707,31 +5705,54 @@ const Go = {
|
|
|
5707
5705
|
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
|
|
5708
5706
|
return;
|
|
5709
5707
|
}
|
|
5710
|
-
const
|
|
5711
|
-
if (!
|
|
5712
|
-
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${
|
|
5708
|
+
const k = await fetch(zt(t, `/instances/${r}/${g}`));
|
|
5709
|
+
if (!k.ok) {
|
|
5710
|
+
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), u(!0);
|
|
5713
5711
|
return;
|
|
5714
5712
|
}
|
|
5715
|
-
const
|
|
5713
|
+
const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = dr(x, h);
|
|
5716
5714
|
l(y);
|
|
5717
|
-
} catch (
|
|
5718
|
-
console.error("Failed to load extensions:",
|
|
5715
|
+
} catch (k) {
|
|
5716
|
+
console.error("Failed to load extensions:", k);
|
|
5719
5717
|
} finally {
|
|
5720
5718
|
u(!0);
|
|
5721
5719
|
}
|
|
5722
5720
|
})();
|
|
5723
5721
|
}, [e, r, t]);
|
|
5724
|
-
const f =
|
|
5722
|
+
const f = Mt(
|
|
5725
5723
|
() => ({
|
|
5726
5724
|
"data.query": async (m) => (
|
|
5727
5725
|
// TODO: verify payload
|
|
5728
5726
|
// TODO: encryption???
|
|
5729
|
-
|
|
5727
|
+
Xo(m, o)
|
|
5730
5728
|
),
|
|
5729
|
+
"data.fetch": async (m, g) => {
|
|
5730
|
+
if (!t || !r)
|
|
5731
|
+
throw new Error("apiBase and appId are required for data.fetch");
|
|
5732
|
+
const k = zt(t, "/proxy"), x = await fetch(k, {
|
|
5733
|
+
method: "POST",
|
|
5734
|
+
headers: { "Content-Type": "application/json" },
|
|
5735
|
+
body: JSON.stringify({
|
|
5736
|
+
appId: r,
|
|
5737
|
+
extensionId: m,
|
|
5738
|
+
url: g.url,
|
|
5739
|
+
method: g.method ?? "GET",
|
|
5740
|
+
headers: g.headers ?? {},
|
|
5741
|
+
body: g.body ?? null
|
|
5742
|
+
})
|
|
5743
|
+
}), h = await x.json();
|
|
5744
|
+
if (!x.ok)
|
|
5745
|
+
throw new Error(h.error || "Fetch proxy request failed");
|
|
5746
|
+
return {
|
|
5747
|
+
status: h.status ?? x.status,
|
|
5748
|
+
ok: h.ok ?? x.ok,
|
|
5749
|
+
data: h.data
|
|
5750
|
+
};
|
|
5751
|
+
},
|
|
5731
5752
|
"actions.toast": async (m) => {
|
|
5732
5753
|
if (console.log(`[Toast] ${m.type || "info"}: ${m.message}`), typeof window < "u") {
|
|
5733
|
-
const
|
|
5734
|
-
window.dispatchEvent(
|
|
5754
|
+
const g = new CustomEvent("ext-toast", { detail: m });
|
|
5755
|
+
window.dispatchEvent(g);
|
|
5735
5756
|
}
|
|
5736
5757
|
},
|
|
5737
5758
|
"actions.invoke": async (m) => {
|
|
@@ -5744,32 +5765,32 @@ const Go = {
|
|
|
5744
5765
|
customerEmail: a ?? ""
|
|
5745
5766
|
})
|
|
5746
5767
|
}),
|
|
5747
|
-
[o, s, a]
|
|
5768
|
+
[t, r, o, s, a]
|
|
5748
5769
|
);
|
|
5749
5770
|
return d ? /* @__PURE__ */ z(he, { children: [
|
|
5750
5771
|
/* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
|
|
5751
5772
|
/* @__PURE__ */ c(Xa, { extensions: i })
|
|
5752
5773
|
] }) : null;
|
|
5753
|
-
},
|
|
5754
|
-
|
|
5774
|
+
}, Za = { dark: "dark", light: "widget-theme-light" }, Zo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Za[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Ko = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5775
|
+
Go,
|
|
5755
5776
|
{
|
|
5756
5777
|
className: "h-12 w-12 rounded-full",
|
|
5757
5778
|
size: "icon",
|
|
5758
5779
|
onClick: e,
|
|
5759
5780
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5760
5781
|
}
|
|
5761
|
-
) }),
|
|
5782
|
+
) }), li = ({ children: e, icon: t, theme: o }) => {
|
|
5762
5783
|
const [r, n] = U(!1);
|
|
5763
5784
|
return /* @__PURE__ */ z(he, { children: [
|
|
5764
|
-
/* @__PURE__ */ c(
|
|
5785
|
+
/* @__PURE__ */ c(Ko, { onClick: () => {
|
|
5765
5786
|
n(!r);
|
|
5766
5787
|
}, icon: t }),
|
|
5767
|
-
r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(
|
|
5788
|
+
r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Zo, { theme: o, children: e }) })
|
|
5768
5789
|
] });
|
|
5769
|
-
},
|
|
5770
|
-
Body:
|
|
5771
|
-
Launcher:
|
|
5772
|
-
},
|
|
5790
|
+
}, ci = {
|
|
5791
|
+
Body: Zo,
|
|
5792
|
+
Launcher: Ko
|
|
5793
|
+
}, Ka = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5773
5794
|
"a",
|
|
5774
5795
|
{
|
|
5775
5796
|
href: e,
|
|
@@ -5778,7 +5799,7 @@ const Go = {
|
|
|
5778
5799
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5779
5800
|
children: t
|
|
5780
5801
|
}
|
|
5781
|
-
),
|
|
5802
|
+
), Ja = (e, t) => {
|
|
5782
5803
|
const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
|
|
5783
5804
|
return B(() => {
|
|
5784
5805
|
if (!e) {
|
|
@@ -5788,7 +5809,7 @@ const Go = {
|
|
|
5788
5809
|
(async () => {
|
|
5789
5810
|
s(!0), i(null);
|
|
5790
5811
|
try {
|
|
5791
|
-
const d = await
|
|
5812
|
+
const d = await Xo({
|
|
5792
5813
|
action: "getCustomer",
|
|
5793
5814
|
customerId: e
|
|
5794
5815
|
}, t);
|
|
@@ -5800,11 +5821,11 @@ const Go = {
|
|
|
5800
5821
|
}
|
|
5801
5822
|
})();
|
|
5802
5823
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5803
|
-
},
|
|
5824
|
+
}, Qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5804
5825
|
var l, d;
|
|
5805
|
-
const { customer: n, loading: s, error: a } =
|
|
5826
|
+
const { customer: n, loading: s, error: a } = Ja(e, o);
|
|
5806
5827
|
if (s)
|
|
5807
|
-
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(
|
|
5828
|
+
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Ut, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5808
5829
|
if (a || !n) {
|
|
5809
5830
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
5810
5831
|
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ z(pe, { className: "p-4 pb-0 pt-2", children: [
|
|
@@ -5858,7 +5879,7 @@ const Go = {
|
|
|
5858
5879
|
/* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
|
|
5859
5880
|
] })
|
|
5860
5881
|
] }) }) });
|
|
5861
|
-
},
|
|
5882
|
+
}, Jo = (e, t) => {
|
|
5862
5883
|
B(() => {
|
|
5863
5884
|
const o = t.current;
|
|
5864
5885
|
if (!o) return;
|
|
@@ -5872,9 +5893,9 @@ const Go = {
|
|
|
5872
5893
|
n.disconnect(), r == null || r.remove();
|
|
5873
5894
|
};
|
|
5874
5895
|
}, [e, t]);
|
|
5875
|
-
},
|
|
5896
|
+
}, ei = ({ customization: e }) => {
|
|
5876
5897
|
const t = ae(null);
|
|
5877
|
-
return
|
|
5898
|
+
return Jo("widget_conversations", t), B(() => {
|
|
5878
5899
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5879
5900
|
conversationList: e
|
|
5880
5901
|
});
|
|
@@ -5885,9 +5906,9 @@ const Go = {
|
|
|
5885
5906
|
className: "h-full overflow-hidden"
|
|
5886
5907
|
}
|
|
5887
5908
|
);
|
|
5888
|
-
},
|
|
5909
|
+
}, ti = ({ customization: e }) => {
|
|
5889
5910
|
const t = ae(null);
|
|
5890
|
-
return
|
|
5911
|
+
return Jo("widget_messages", t), B(() => {
|
|
5891
5912
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5892
5913
|
messageLog: e
|
|
5893
5914
|
});
|
|
@@ -5898,7 +5919,7 @@ const Go = {
|
|
|
5898
5919
|
className: "h-full overflow-hidden"
|
|
5899
5920
|
}
|
|
5900
5921
|
);
|
|
5901
|
-
}, Ge = 25, qe = 75,
|
|
5922
|
+
}, Ge = 25, qe = 75, di = ({
|
|
5902
5923
|
header: e,
|
|
5903
5924
|
buttons: t,
|
|
5904
5925
|
hostBase: o,
|
|
@@ -5909,7 +5930,7 @@ const Go = {
|
|
|
5909
5930
|
const a = Math.max(
|
|
5910
5931
|
Ge,
|
|
5911
5932
|
Math.min(qe, s)
|
|
5912
|
-
), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [
|
|
5933
|
+
), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [g, k] = U(!1), [x, h] = U(!1), y = ae(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
5913
5934
|
mode: "embedded",
|
|
5914
5935
|
conversationList: { targetElement: "#widget_conversations" },
|
|
5915
5936
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -5920,11 +5941,11 @@ const Go = {
|
|
|
5920
5941
|
}), !0), []);
|
|
5921
5942
|
B(() => {
|
|
5922
5943
|
if (R()) {
|
|
5923
|
-
|
|
5944
|
+
k(!0);
|
|
5924
5945
|
return;
|
|
5925
5946
|
}
|
|
5926
5947
|
const E = setInterval(() => {
|
|
5927
|
-
R() && (
|
|
5948
|
+
R() && (k(!0), clearInterval(E));
|
|
5928
5949
|
}, 100), _ = setTimeout(() => {
|
|
5929
5950
|
clearInterval(E), console.warn("Zendesk widget failed to load after 10 seconds");
|
|
5930
5951
|
}, 1e4);
|
|
@@ -5940,12 +5961,12 @@ const Go = {
|
|
|
5940
5961
|
B(() => (window.addEventListener("ext-new-conversation", C), () => {
|
|
5941
5962
|
window.removeEventListener("ext-new-conversation", C);
|
|
5942
5963
|
}), [C]), B(() => {
|
|
5943
|
-
if (!
|
|
5944
|
-
const E = (
|
|
5964
|
+
if (!x) return;
|
|
5965
|
+
const E = (b) => {
|
|
5945
5966
|
if (!y.current) return;
|
|
5946
|
-
const
|
|
5947
|
-
if ((f ?
|
|
5948
|
-
const O = f ? (
|
|
5967
|
+
const S = y.current.getBoundingClientRect();
|
|
5968
|
+
if ((f ? S.width : S.height) === 0) return;
|
|
5969
|
+
const O = f ? (b.clientX - S.left) / S.width * 100 : (b.clientY - S.top) / S.height * 100, Z = Math.max(
|
|
5949
5970
|
Ge,
|
|
5950
5971
|
Math.min(qe, O)
|
|
5951
5972
|
);
|
|
@@ -5956,16 +5977,16 @@ const Go = {
|
|
|
5956
5977
|
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", _), window.addEventListener("blur", _), () => {
|
|
5957
5978
|
window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", _), window.removeEventListener("blur", _), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5958
5979
|
};
|
|
5959
|
-
}, [
|
|
5980
|
+
}, [x, f]), B(() => {
|
|
5960
5981
|
if (!y.current) return;
|
|
5961
5982
|
const E = y.current, _ = () => {
|
|
5962
|
-
const
|
|
5963
|
-
m(
|
|
5983
|
+
const S = getComputedStyle(E).flexDirection === "row";
|
|
5984
|
+
m(S);
|
|
5964
5985
|
};
|
|
5965
5986
|
_();
|
|
5966
|
-
const
|
|
5967
|
-
return
|
|
5968
|
-
|
|
5987
|
+
const b = new ResizeObserver(_);
|
|
5988
|
+
return b.observe(E), () => {
|
|
5989
|
+
b.disconnect();
|
|
5969
5990
|
};
|
|
5970
5991
|
}, []);
|
|
5971
5992
|
const A = Re((E) => {
|
|
@@ -6004,7 +6025,7 @@ const Go = {
|
|
|
6004
6025
|
i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
6005
6026
|
),
|
|
6006
6027
|
title: "My Account",
|
|
6007
|
-
children: /* @__PURE__ */ c(
|
|
6028
|
+
children: /* @__PURE__ */ c(Ht, { className: "h-4 w-4" })
|
|
6008
6029
|
}
|
|
6009
6030
|
),
|
|
6010
6031
|
/* @__PURE__ */ c(
|
|
@@ -6017,7 +6038,7 @@ const Go = {
|
|
|
6017
6038
|
i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
6018
6039
|
),
|
|
6019
6040
|
title: "Conversations",
|
|
6020
|
-
children: /* @__PURE__ */ c(
|
|
6041
|
+
children: /* @__PURE__ */ c(Wt, { className: "h-4 w-4" })
|
|
6021
6042
|
}
|
|
6022
6043
|
)
|
|
6023
6044
|
] })
|
|
@@ -6025,7 +6046,7 @@ const Go = {
|
|
|
6025
6046
|
] }),
|
|
6026
6047
|
/* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
6027
6048
|
/* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
6028
|
-
/* @__PURE__ */ c(
|
|
6049
|
+
/* @__PURE__ */ c(Qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
6029
6050
|
Ce,
|
|
6030
6051
|
{
|
|
6031
6052
|
target: "slot.header",
|
|
@@ -6045,7 +6066,7 @@ const Go = {
|
|
|
6045
6066
|
/* @__PURE__ */ c("div", { className: T(
|
|
6046
6067
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
6047
6068
|
i === "account" && "hidden"
|
|
6048
|
-
), children: /* @__PURE__ */ c(
|
|
6069
|
+
), children: /* @__PURE__ */ c(ei, {}) })
|
|
6049
6070
|
] })
|
|
6050
6071
|
]
|
|
6051
6072
|
}
|
|
@@ -6057,7 +6078,7 @@ const Go = {
|
|
|
6057
6078
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
6058
6079
|
style: { flexBasis: `${100 - d}%` },
|
|
6059
6080
|
children: [
|
|
6060
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
6081
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ti, {}) }),
|
|
6061
6082
|
/* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
6062
6083
|
/* @__PURE__ */ c(
|
|
6063
6084
|
Ce,
|
|
@@ -6067,7 +6088,7 @@ const Go = {
|
|
|
6067
6088
|
className: "flex items-center gap-1",
|
|
6068
6089
|
fallback: /* @__PURE__ */ z(he, { children: [
|
|
6069
6090
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
6070
|
-
/* @__PURE__ */ c(
|
|
6091
|
+
/* @__PURE__ */ c(Ka, { href: "https://zendesk.com", children: "Zendesk" })
|
|
6071
6092
|
] })
|
|
6072
6093
|
}
|
|
6073
6094
|
),
|
|
@@ -6109,13 +6130,13 @@ const Go = {
|
|
|
6109
6130
|
className: T(
|
|
6110
6131
|
"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",
|
|
6111
6132
|
f ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
6112
|
-
|
|
6133
|
+
x ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
|
|
6113
6134
|
)
|
|
6114
6135
|
}
|
|
6115
6136
|
)
|
|
6116
6137
|
}
|
|
6117
6138
|
),
|
|
6118
|
-
|
|
6139
|
+
x && /* @__PURE__ */ c(
|
|
6119
6140
|
"div",
|
|
6120
6141
|
{
|
|
6121
6142
|
className: T("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
|
|
@@ -6124,31 +6145,31 @@ const Go = {
|
|
|
6124
6145
|
)
|
|
6125
6146
|
] })
|
|
6126
6147
|
] });
|
|
6127
|
-
},
|
|
6148
|
+
}, oi = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
|
|
6128
6149
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
6129
6150
|
return Promise.resolve();
|
|
6130
|
-
const { autorender: o = !1, scriptId: r =
|
|
6151
|
+
const { autorender: o = !1, scriptId: r = oi } = t;
|
|
6131
6152
|
window.zEMessenger = { autorender: o };
|
|
6132
6153
|
const n = document.getElementById(r);
|
|
6133
6154
|
if (n) {
|
|
6134
|
-
if (n.getAttribute("src") ===
|
|
6155
|
+
if (n.getAttribute("src") === Tt(e))
|
|
6135
6156
|
return Promise.resolve();
|
|
6136
6157
|
n.remove();
|
|
6137
6158
|
}
|
|
6138
6159
|
return new Promise((s, a) => {
|
|
6139
6160
|
const i = document.createElement("script");
|
|
6140
|
-
i.id = r, i.src =
|
|
6161
|
+
i.id = r, i.src = Tt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
6141
6162
|
});
|
|
6142
|
-
},
|
|
6143
|
-
e.snippetKey &&
|
|
6163
|
+
}, ui = ({ config: e }) => (B(() => {
|
|
6164
|
+
e.snippetKey && ri(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
6144
6165
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
6145
6166
|
});
|
|
6146
6167
|
}, [e.autorender, e.snippetKey]), null);
|
|
6147
6168
|
export {
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6169
|
+
ii as ExtensionSetup,
|
|
6170
|
+
ci as Widget,
|
|
6171
|
+
li as WidgetComponent,
|
|
6172
|
+
di as ZendeskMessenger,
|
|
6173
|
+
ui as ZendeskScript,
|
|
6174
|
+
ri as loadZendeskSnippet
|
|
6154
6175
|
};
|