@stackable-labs/embeddables 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +128 -126
- package/dist/embeddables/src/components/DevModeBadge.d.ts +4 -1
- package/dist/embeddables/src/hooks/useExtensionFailureBeacon.d.ts +6 -0
- package/dist/embeddables/src/lib/telemetryBeacon.d.ts +21 -0
- package/dist/react.js +3087 -2798
- package/dist/stackable-widget.external.js +74 -74
- package/dist/stackable-widget.js +84 -84
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g, Fragment as at, jsxs as te } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import
|
|
3
|
+
import Ae, { forwardRef as ci, createElement as Qn, useState as Zn, useLayoutEffect as Pc, useEffect as Tc } from "react";
|
|
4
4
|
import * as qt from "react-dom";
|
|
5
5
|
import Nc from "react-dom";
|
|
6
6
|
/**
|
|
@@ -858,7 +858,7 @@ const Kl = (e, t) => {
|
|
|
858
858
|
}, mu = [], re = (e) => {
|
|
859
859
|
const t = (n) => n[e] || mu;
|
|
860
860
|
return t.isThemeGetter = !0, t;
|
|
861
|
-
}, yi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, gu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, vu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bu = /\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$/, yu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => gu.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), Me = (e) => !!e && Number.isInteger(Number(e)), mn = (e) => e.endsWith("%") && q(e.slice(0, -1)),
|
|
861
|
+
}, yi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, gu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, vu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bu = /\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$/, yu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ie = (e) => gu.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), Me = (e) => !!e && Number.isInteger(Number(e)), mn = (e) => e.endsWith("%") && q(e.slice(0, -1)), ke = (e) => vu.test(e), xi = () => !0, Cu = (e) => (
|
|
862
862
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
863
863
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
864
864
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -917,22 +917,22 @@ const Kl = (e, t) => {
|
|
|
917
917
|
theme: {
|
|
918
918
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
919
919
|
aspect: ["video"],
|
|
920
|
-
blur: [
|
|
921
|
-
breakpoint: [
|
|
920
|
+
blur: [ke],
|
|
921
|
+
breakpoint: [ke],
|
|
922
922
|
color: [xi],
|
|
923
|
-
container: [
|
|
924
|
-
"drop-shadow": [
|
|
923
|
+
container: [ke],
|
|
924
|
+
"drop-shadow": [ke],
|
|
925
925
|
ease: ["in", "out", "in-out"],
|
|
926
926
|
font: [Ru],
|
|
927
927
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
928
|
-
"inset-shadow": [
|
|
928
|
+
"inset-shadow": [ke],
|
|
929
929
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
930
930
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
931
|
-
radius: [
|
|
932
|
-
shadow: [
|
|
931
|
+
radius: [ke],
|
|
932
|
+
shadow: [ke],
|
|
933
933
|
spacing: ["px", q],
|
|
934
|
-
text: [
|
|
935
|
-
"text-shadow": [
|
|
934
|
+
text: [ke],
|
|
935
|
+
"text-shadow": [ke],
|
|
936
936
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
937
937
|
},
|
|
938
938
|
classGroups: {
|
|
@@ -3746,27 +3746,27 @@ function Di(e) {
|
|
|
3746
3746
|
t,
|
|
3747
3747
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3748
3748
|
), a = (m) => {
|
|
3749
|
-
const { scope: b, children: y } = m, w =
|
|
3749
|
+
const { scope: b, children: y } = m, w = Ae.useRef(null), x = Ae.useRef(/* @__PURE__ */ new Map()).current;
|
|
3750
3750
|
return /* @__PURE__ */ g(o, { scope: b, itemMap: x, collectionRef: w, children: y });
|
|
3751
3751
|
};
|
|
3752
3752
|
a.displayName = t;
|
|
3753
|
-
const s = e + "CollectionSlot", c = /* @__PURE__ */ gt(s), l =
|
|
3753
|
+
const s = e + "CollectionSlot", c = /* @__PURE__ */ gt(s), l = Ae.forwardRef(
|
|
3754
3754
|
(m, b) => {
|
|
3755
3755
|
const { scope: y, children: w } = m, x = i(s, y), C = K(b, x.collectionRef);
|
|
3756
3756
|
return /* @__PURE__ */ g(c, { ref: C, children: w });
|
|
3757
3757
|
}
|
|
3758
3758
|
);
|
|
3759
3759
|
l.displayName = s;
|
|
3760
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ gt(u), h =
|
|
3760
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ gt(u), h = Ae.forwardRef(
|
|
3761
3761
|
(m, b) => {
|
|
3762
|
-
const { scope: y, children: w, ...x } = m, C =
|
|
3763
|
-
return
|
|
3762
|
+
const { scope: y, children: w, ...x } = m, C = Ae.useRef(null), A = K(b, C), R = i(u, y);
|
|
3763
|
+
return Ae.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ g(p, { [f]: "", ref: A, children: w });
|
|
3764
3764
|
}
|
|
3765
3765
|
);
|
|
3766
3766
|
h.displayName = u;
|
|
3767
3767
|
function v(m) {
|
|
3768
3768
|
const b = i(e + "CollectionConsumer", m);
|
|
3769
|
-
return
|
|
3769
|
+
return Ae.useCallback(() => {
|
|
3770
3770
|
const w = b.collectionRef.current;
|
|
3771
3771
|
if (!w) return [];
|
|
3772
3772
|
const x = Array.from(w.querySelectorAll(`[${f}]`));
|
|
@@ -3840,11 +3840,11 @@ function Xu(e) {
|
|
|
3840
3840
|
function Ju(e, t) {
|
|
3841
3841
|
return d.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3842
3842
|
}
|
|
3843
|
-
var
|
|
3843
|
+
var ye = (e) => {
|
|
3844
3844
|
const { present: t, children: n } = e, r = Qu(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = K(r.ref, Zu(o));
|
|
3845
3845
|
return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
|
|
3846
3846
|
};
|
|
3847
|
-
|
|
3847
|
+
ye.displayName = "Presence";
|
|
3848
3848
|
function Qu(e) {
|
|
3849
3849
|
const [t, n] = d.useState(), r = d.useRef(null), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, c] = Ju(a, {
|
|
3850
3850
|
mounted: {
|
|
@@ -3970,7 +3970,7 @@ Fi.displayName = zi;
|
|
|
3970
3970
|
var xr = "CollapsibleContent", Hi = d.forwardRef(
|
|
3971
3971
|
(e, t) => {
|
|
3972
3972
|
const { forceMount: n, ...r } = e, o = wr(xr, e.__scopeCollapsible);
|
|
3973
|
-
return /* @__PURE__ */ g(
|
|
3973
|
+
return /* @__PURE__ */ g(ye, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ g(od, { ...r, ref: t, present: i }) });
|
|
3974
3974
|
}
|
|
3975
3975
|
);
|
|
3976
3976
|
Hi.displayName = xr;
|
|
@@ -4299,14 +4299,14 @@ function co() {
|
|
|
4299
4299
|
const e = document.createElement("span");
|
|
4300
4300
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4301
4301
|
}
|
|
4302
|
-
var
|
|
4303
|
-
return
|
|
4302
|
+
var xe = function() {
|
|
4303
|
+
return xe = Object.assign || function(t) {
|
|
4304
4304
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
4305
4305
|
n = arguments[r];
|
|
4306
4306
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
4307
4307
|
}
|
|
4308
4308
|
return t;
|
|
4309
|
-
},
|
|
4309
|
+
}, xe.apply(this, arguments);
|
|
4310
4310
|
};
|
|
4311
4311
|
function qi(e, t) {
|
|
4312
4312
|
var n = {};
|
|
@@ -4427,7 +4427,7 @@ function _d(e, t) {
|
|
|
4427
4427
|
function Id(e) {
|
|
4428
4428
|
e === void 0 && (e = {});
|
|
4429
4429
|
var t = _d(null);
|
|
4430
|
-
return t.options =
|
|
4430
|
+
return t.options = xe({ async: !0, ssr: !1 }, e), t;
|
|
4431
4431
|
}
|
|
4432
4432
|
var ji = function(e) {
|
|
4433
4433
|
var t = e.sideCar, n = qi(e, ["sideCar"]);
|
|
@@ -4436,7 +4436,7 @@ var ji = function(e) {
|
|
|
4436
4436
|
var r = t.read();
|
|
4437
4437
|
if (!r)
|
|
4438
4438
|
throw new Error("Sidecar medium not found");
|
|
4439
|
-
return d.createElement(r,
|
|
4439
|
+
return d.createElement(r, xe({}, n));
|
|
4440
4440
|
};
|
|
4441
4441
|
ji.isSideCarExport = !0;
|
|
4442
4442
|
function Md(e, t) {
|
|
@@ -4448,12 +4448,12 @@ var Gi = Id(), wn = function() {
|
|
|
4448
4448
|
onScrollCapture: wn,
|
|
4449
4449
|
onWheelCapture: wn,
|
|
4450
4450
|
onTouchMoveCapture: wn
|
|
4451
|
-
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, v = e.noIsolation, m = e.inert, b = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = qi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), A = p, R = Td([n, t]), E =
|
|
4451
|
+
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, v = e.noIsolation, m = e.inert, b = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, x = e.gapMode, C = qi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), A = p, R = Td([n, t]), E = xe(xe({}, C), o);
|
|
4452
4452
|
return d.createElement(
|
|
4453
4453
|
d.Fragment,
|
|
4454
4454
|
null,
|
|
4455
4455
|
u && d.createElement(A, { sideCar: Gi, removeScrollBar: l, shards: f, noRelative: h, noIsolation: v, inert: m, setCallbacks: i, allowPinchZoom: !!b, lockRef: n, gapMode: x }),
|
|
4456
|
-
a ? d.cloneElement(d.Children.only(s),
|
|
4456
|
+
a ? d.cloneElement(d.Children.only(s), xe(xe({}, E), { ref: R })) : d.createElement(w, xe({}, E, { className: c, ref: R }), s)
|
|
4457
4457
|
);
|
|
4458
4458
|
});
|
|
4459
4459
|
Kt.defaultProps = {
|
|
@@ -4771,7 +4771,7 @@ function of(e) {
|
|
|
4771
4771
|
}
|
|
4772
4772
|
const af = Md(Gi, rf);
|
|
4773
4773
|
var Qi = d.forwardRef(function(e, t) {
|
|
4774
|
-
return d.createElement(Kt,
|
|
4774
|
+
return d.createElement(Kt, xe({}, e, { ref: t, sideCar: af }));
|
|
4775
4775
|
});
|
|
4776
4776
|
Qi.classNames = Kt.classNames;
|
|
4777
4777
|
var sf = function(e) {
|
|
@@ -4840,7 +4840,7 @@ var mo;
|
|
|
4840
4840
|
function ff() {
|
|
4841
4841
|
if (mo) return En;
|
|
4842
4842
|
mo = 1;
|
|
4843
|
-
var e =
|
|
4843
|
+
var e = Ae;
|
|
4844
4844
|
function t(f, p) {
|
|
4845
4845
|
return f === p && (f !== 0 || 1 / f === 1 / p) || f !== f && p !== p;
|
|
4846
4846
|
}
|
|
@@ -5122,7 +5122,7 @@ var la = "CheckboxIndicator", ua = d.forwardRef(
|
|
|
5122
5122
|
(e, t) => {
|
|
5123
5123
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, i = kr(la, n);
|
|
5124
5124
|
return /* @__PURE__ */ g(
|
|
5125
|
-
|
|
5125
|
+
ye,
|
|
5126
5126
|
{
|
|
5127
5127
|
present: r || De(i.checked) || i.checked === !0,
|
|
5128
5128
|
children: /* @__PURE__ */ g(
|
|
@@ -5208,7 +5208,7 @@ function De(e) {
|
|
|
5208
5208
|
function pa(e) {
|
|
5209
5209
|
return De(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
5210
5210
|
}
|
|
5211
|
-
const Af = ["top", "right", "bottom", "left"], Be = Math.min, ue = Math.max, Bt = Math.round, _t = Math.floor,
|
|
5211
|
+
const Af = ["top", "right", "bottom", "left"], Be = Math.min, ue = Math.max, Bt = Math.round, _t = Math.floor, Se = (e) => ({
|
|
5212
5212
|
x: e,
|
|
5213
5213
|
y: e
|
|
5214
5214
|
}), Pf = {
|
|
@@ -5235,12 +5235,12 @@ function Ar(e) {
|
|
|
5235
5235
|
function Pr(e) {
|
|
5236
5236
|
return e === "y" ? "height" : "width";
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function Ce(e) {
|
|
5239
5239
|
const t = e[0];
|
|
5240
5240
|
return t === "t" || t === "b" ? "y" : "x";
|
|
5241
5241
|
}
|
|
5242
5242
|
function Tr(e) {
|
|
5243
|
-
return Ar(
|
|
5243
|
+
return Ar(Ce(e));
|
|
5244
5244
|
}
|
|
5245
5245
|
function Tf(e, t, n) {
|
|
5246
5246
|
n === void 0 && (n = !1);
|
|
@@ -5317,7 +5317,7 @@ function wo(e, t, n) {
|
|
|
5317
5317
|
reference: r,
|
|
5318
5318
|
floating: o
|
|
5319
5319
|
} = e;
|
|
5320
|
-
const i =
|
|
5320
|
+
const i = Ce(t), a = Tr(t), s = Pr(a), c = Ne(t), l = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, p = r[s] / 2 - o[s] / 2;
|
|
5321
5321
|
let h;
|
|
5322
5322
|
switch (c) {
|
|
5323
5323
|
case "top":
|
|
@@ -5530,7 +5530,7 @@ const Bf = 50, zf = async (e, t, n) => {
|
|
|
5530
5530
|
} = Te(e, t);
|
|
5531
5531
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
5532
5532
|
return {};
|
|
5533
|
-
const y = Ne(o), w =
|
|
5533
|
+
const y = Ne(o), w = Ce(s), x = Ne(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = p || (x || !m ? [zt(s)] : Nf(s)), R = v !== "none";
|
|
5534
5534
|
!p && R && A.push(...Lf(s, m, v, C));
|
|
5535
5535
|
const E = [s, ...A], S = await c.detectOverflow(t, b), k = [];
|
|
5536
5536
|
let P = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -5544,9 +5544,9 @@ const Bf = 50, zf = async (e, t, n) => {
|
|
|
5544
5544
|
}], !k.every((I) => I <= 0)) {
|
|
5545
5545
|
var T, N;
|
|
5546
5546
|
const I = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, $ = E[I];
|
|
5547
|
-
if ($ && (!(f === "alignment" ? w !==
|
|
5547
|
+
if ($ && (!(f === "alignment" ? w !== Ce($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5548
5548
|
// overflows the main axis.
|
|
5549
|
-
P.every((H) =>
|
|
5549
|
+
P.every((H) => Ce(H.placement) === w ? H.overflows[0] > 0 : !0)))
|
|
5550
5550
|
return {
|
|
5551
5551
|
data: {
|
|
5552
5552
|
index: I,
|
|
@@ -5563,7 +5563,7 @@ const Bf = 50, zf = async (e, t, n) => {
|
|
|
5563
5563
|
var _;
|
|
5564
5564
|
const W = (_ = P.filter((H) => {
|
|
5565
5565
|
if (R) {
|
|
5566
|
-
const Q =
|
|
5566
|
+
const Q = Ce(H.placement);
|
|
5567
5567
|
return Q === w || // Create a bias to the `y` side axis due to horizontal
|
|
5568
5568
|
// reading directions favoring greater width.
|
|
5569
5569
|
Q === "y";
|
|
@@ -5647,7 +5647,7 @@ async function Uf(e, t) {
|
|
|
5647
5647
|
placement: n,
|
|
5648
5648
|
platform: r,
|
|
5649
5649
|
elements: o
|
|
5650
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Ne(n), s = st(n), c =
|
|
5650
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = Ne(n), s = st(n), c = Ce(n) === "y", l = ma.has(a) ? -1 : 1, u = i && c ? -1 : 1, f = Te(t, e);
|
|
5651
5651
|
let {
|
|
5652
5652
|
mainAxis: p,
|
|
5653
5653
|
crossAxis: h,
|
|
@@ -5720,7 +5720,7 @@ const $f = function(e) {
|
|
|
5720
5720
|
} = Te(e, t), u = {
|
|
5721
5721
|
x: n,
|
|
5722
5722
|
y: r
|
|
5723
|
-
}, f = await i.detectOverflow(t, l), p =
|
|
5723
|
+
}, f = await i.detectOverflow(t, l), p = Ce(Ne(o)), h = Ar(p);
|
|
5724
5724
|
let v = u[h], m = u[p];
|
|
5725
5725
|
if (a) {
|
|
5726
5726
|
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", x = v + f[y], C = v - f[w];
|
|
@@ -5765,7 +5765,7 @@ const $f = function(e) {
|
|
|
5765
5765
|
} = Te(e, t), u = {
|
|
5766
5766
|
x: n,
|
|
5767
5767
|
y: r
|
|
5768
|
-
}, f =
|
|
5768
|
+
}, f = Ce(o), p = Ar(f);
|
|
5769
5769
|
let h = u[p], v = u[f];
|
|
5770
5770
|
const m = Te(s, t), b = typeof m == "number" ? {
|
|
5771
5771
|
mainAxis: m,
|
|
@@ -5805,7 +5805,7 @@ const $f = function(e) {
|
|
|
5805
5805
|
apply: c = () => {
|
|
5806
5806
|
},
|
|
5807
5807
|
...l
|
|
5808
|
-
} = Te(e, t), u = await a.detectOverflow(t, l), f = Ne(o), p = st(o), h =
|
|
5808
|
+
} = Te(e, t), u = await a.detectOverflow(t, l), f = Ne(o), p = st(o), h = Ce(o) === "y", {
|
|
5809
5809
|
width: v,
|
|
5810
5810
|
height: m
|
|
5811
5811
|
} = i.floating;
|
|
@@ -5841,14 +5841,14 @@ function de(e) {
|
|
|
5841
5841
|
var t;
|
|
5842
5842
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
5843
5843
|
}
|
|
5844
|
-
function
|
|
5844
|
+
function Ee(e) {
|
|
5845
5845
|
var t;
|
|
5846
5846
|
return (t = (ga(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5847
5847
|
}
|
|
5848
5848
|
function ga(e) {
|
|
5849
5849
|
return Qt() ? e instanceof Node || e instanceof de(e).Node : !1;
|
|
5850
5850
|
}
|
|
5851
|
-
function
|
|
5851
|
+
function ve(e) {
|
|
5852
5852
|
return Qt() ? e instanceof Element || e instanceof de(e).Element : !1;
|
|
5853
5853
|
}
|
|
5854
5854
|
function _e(e) {
|
|
@@ -5863,7 +5863,7 @@ function wt(e) {
|
|
|
5863
5863
|
overflowX: n,
|
|
5864
5864
|
overflowY: r,
|
|
5865
5865
|
display: o
|
|
5866
|
-
} =
|
|
5866
|
+
} = be(e);
|
|
5867
5867
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
5868
5868
|
}
|
|
5869
5869
|
function Gf(e) {
|
|
@@ -5884,7 +5884,7 @@ function Zt(e) {
|
|
|
5884
5884
|
const Kf = /transform|translate|scale|rotate|perspective|filter/, Yf = /paint|layout|strict|content/, $e = (e) => !!e && e !== "none";
|
|
5885
5885
|
let Rn;
|
|
5886
5886
|
function Nr(e) {
|
|
5887
|
-
const t =
|
|
5887
|
+
const t = ve(e) ? be(e) : e;
|
|
5888
5888
|
return $e(t.transform) || $e(t.translate) || $e(t.scale) || $e(t.rotate) || $e(t.perspective) || !_r() && ($e(t.backdropFilter) || $e(t.filter)) || Kf.test(t.willChange || "") || Yf.test(t.contain || "");
|
|
5889
5889
|
}
|
|
5890
5890
|
function Xf(e) {
|
|
@@ -5904,11 +5904,11 @@ function _r() {
|
|
|
5904
5904
|
function rt(e) {
|
|
5905
5905
|
return /^(html|body|#document)$/.test(ct(e));
|
|
5906
5906
|
}
|
|
5907
|
-
function
|
|
5907
|
+
function be(e) {
|
|
5908
5908
|
return de(e).getComputedStyle(e);
|
|
5909
5909
|
}
|
|
5910
5910
|
function en(e) {
|
|
5911
|
-
return
|
|
5911
|
+
return ve(e) ? {
|
|
5912
5912
|
scrollLeft: e.scrollLeft,
|
|
5913
5913
|
scrollTop: e.scrollTop
|
|
5914
5914
|
} : {
|
|
@@ -5924,7 +5924,7 @@ function ze(e) {
|
|
|
5924
5924
|
e.assignedSlot || // DOM Element detected.
|
|
5925
5925
|
e.parentNode || // ShadowRoot detected.
|
|
5926
5926
|
So(e) && e.host || // Fallback.
|
|
5927
|
-
|
|
5927
|
+
Ee(e)
|
|
5928
5928
|
);
|
|
5929
5929
|
return So(t) ? t.host : t;
|
|
5930
5930
|
}
|
|
@@ -5946,7 +5946,7 @@ function ir(e) {
|
|
|
5946
5946
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5947
5947
|
}
|
|
5948
5948
|
function ba(e) {
|
|
5949
|
-
const t =
|
|
5949
|
+
const t = be(e);
|
|
5950
5950
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5951
5951
|
const o = _e(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = Bt(n) !== i || Bt(r) !== a;
|
|
5952
5952
|
return s && (n = i, r = a), {
|
|
@@ -5956,12 +5956,12 @@ function ba(e) {
|
|
|
5956
5956
|
};
|
|
5957
5957
|
}
|
|
5958
5958
|
function Ir(e) {
|
|
5959
|
-
return
|
|
5959
|
+
return ve(e) ? e : e.contextElement;
|
|
5960
5960
|
}
|
|
5961
5961
|
function nt(e) {
|
|
5962
5962
|
const t = Ir(e);
|
|
5963
5963
|
if (!_e(t))
|
|
5964
|
-
return
|
|
5964
|
+
return Se(1);
|
|
5965
5965
|
const n = t.getBoundingClientRect(), {
|
|
5966
5966
|
width: r,
|
|
5967
5967
|
height: o,
|
|
@@ -5973,7 +5973,7 @@ function nt(e) {
|
|
|
5973
5973
|
y: s
|
|
5974
5974
|
};
|
|
5975
5975
|
}
|
|
5976
|
-
const Jf = /* @__PURE__ */
|
|
5976
|
+
const Jf = /* @__PURE__ */ Se(0);
|
|
5977
5977
|
function ya(e) {
|
|
5978
5978
|
const t = de(e);
|
|
5979
5979
|
return !_r() || !t.visualViewport ? Jf : {
|
|
@@ -5987,15 +5987,15 @@ function Qf(e, t, n) {
|
|
|
5987
5987
|
function We(e, t, n, r) {
|
|
5988
5988
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5989
5989
|
const o = e.getBoundingClientRect(), i = Ir(e);
|
|
5990
|
-
let a =
|
|
5991
|
-
t && (r ?
|
|
5992
|
-
const s = Qf(i, n, r) ? ya(i) :
|
|
5990
|
+
let a = Se(1);
|
|
5991
|
+
t && (r ? ve(r) && (a = nt(r)) : a = nt(e));
|
|
5992
|
+
const s = Qf(i, n, r) ? ya(i) : Se(0);
|
|
5993
5993
|
let c = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, u = o.width / a.x, f = o.height / a.y;
|
|
5994
5994
|
if (i) {
|
|
5995
|
-
const p = de(i), h = r &&
|
|
5995
|
+
const p = de(i), h = r && ve(r) ? de(r) : r;
|
|
5996
5996
|
let v = p, m = ir(v);
|
|
5997
5997
|
for (; m && r && h !== v; ) {
|
|
5998
|
-
const b = nt(m), y = m.getBoundingClientRect(), w =
|
|
5998
|
+
const b = nt(m), y = m.getBoundingClientRect(), w = be(m), x = y.left + (m.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = y.top + (m.clientTop + parseFloat(w.paddingTop)) * b.y;
|
|
5999
5999
|
c *= b.x, l *= b.y, u *= b.x, f *= b.y, c += x, l += C, v = de(m), m = ir(v);
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
@@ -6008,7 +6008,7 @@ function We(e, t, n, r) {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
function tn(e, t) {
|
|
6010
6010
|
const n = en(e).scrollLeft;
|
|
6011
|
-
return t ? t.left + n : We(
|
|
6011
|
+
return t ? t.left + n : We(Ee(e)).left + n;
|
|
6012
6012
|
}
|
|
6013
6013
|
function wa(e, t) {
|
|
6014
6014
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - tn(e, n), o = n.top + t.scrollTop;
|
|
@@ -6024,19 +6024,19 @@ function Zf(e) {
|
|
|
6024
6024
|
offsetParent: r,
|
|
6025
6025
|
strategy: o
|
|
6026
6026
|
} = e;
|
|
6027
|
-
const i = o === "fixed", a =
|
|
6027
|
+
const i = o === "fixed", a = Ee(r), s = t ? Zt(t.floating) : !1;
|
|
6028
6028
|
if (r === a || s && i)
|
|
6029
6029
|
return n;
|
|
6030
6030
|
let c = {
|
|
6031
6031
|
scrollLeft: 0,
|
|
6032
6032
|
scrollTop: 0
|
|
6033
|
-
}, l =
|
|
6034
|
-
const u =
|
|
6033
|
+
}, l = Se(1);
|
|
6034
|
+
const u = Se(0), f = _e(r);
|
|
6035
6035
|
if ((f || !f && !i) && ((ct(r) !== "body" || wt(a)) && (c = en(r)), f)) {
|
|
6036
6036
|
const h = We(r);
|
|
6037
6037
|
l = nt(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
6038
6038
|
}
|
|
6039
|
-
const p = a && !f && !i ? wa(a, c) :
|
|
6039
|
+
const p = a && !f && !i ? wa(a, c) : Se(0);
|
|
6040
6040
|
return {
|
|
6041
6041
|
width: n.width * l.x,
|
|
6042
6042
|
height: n.height * l.y,
|
|
@@ -6048,10 +6048,10 @@ function ep(e) {
|
|
|
6048
6048
|
return Array.from(e.getClientRects());
|
|
6049
6049
|
}
|
|
6050
6050
|
function tp(e) {
|
|
6051
|
-
const t =
|
|
6051
|
+
const t = Ee(e), n = en(e), r = e.ownerDocument.body, o = ue(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ue(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6052
6052
|
let a = -n.scrollLeft + tn(e);
|
|
6053
6053
|
const s = -n.scrollTop;
|
|
6054
|
-
return
|
|
6054
|
+
return be(r).direction === "rtl" && (a += ue(t.clientWidth, r.clientWidth) - o), {
|
|
6055
6055
|
width: o,
|
|
6056
6056
|
height: i,
|
|
6057
6057
|
x: a,
|
|
@@ -6060,7 +6060,7 @@ function tp(e) {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
const Eo = 25;
|
|
6062
6062
|
function np(e, t) {
|
|
6063
|
-
const n = de(e), r =
|
|
6063
|
+
const n = de(e), r = Ee(e), o = n.visualViewport;
|
|
6064
6064
|
let i = r.clientWidth, a = r.clientHeight, s = 0, c = 0;
|
|
6065
6065
|
if (o) {
|
|
6066
6066
|
i = o.width, a = o.height;
|
|
@@ -6080,7 +6080,7 @@ function np(e, t) {
|
|
|
6080
6080
|
};
|
|
6081
6081
|
}
|
|
6082
6082
|
function rp(e, t) {
|
|
6083
|
-
const n = We(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = _e(e) ? nt(e) :
|
|
6083
|
+
const n = We(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = _e(e) ? nt(e) : Se(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, c = o * i.x, l = r * i.y;
|
|
6084
6084
|
return {
|
|
6085
6085
|
width: a,
|
|
6086
6086
|
height: s,
|
|
@@ -6093,8 +6093,8 @@ function Ro(e, t, n) {
|
|
|
6093
6093
|
if (t === "viewport")
|
|
6094
6094
|
r = np(e, n);
|
|
6095
6095
|
else if (t === "document")
|
|
6096
|
-
r = tp(
|
|
6097
|
-
else if (
|
|
6096
|
+
r = tp(Ee(e));
|
|
6097
|
+
else if (ve(t))
|
|
6098
6098
|
r = rp(t, n);
|
|
6099
6099
|
else {
|
|
6100
6100
|
const o = ya(e);
|
|
@@ -6109,17 +6109,17 @@ function Ro(e, t, n) {
|
|
|
6109
6109
|
}
|
|
6110
6110
|
function xa(e, t) {
|
|
6111
6111
|
const n = ze(e);
|
|
6112
|
-
return n === t || !
|
|
6112
|
+
return n === t || !ve(n) || rt(n) ? !1 : be(n).position === "fixed" || xa(n, t);
|
|
6113
6113
|
}
|
|
6114
6114
|
function op(e, t) {
|
|
6115
6115
|
const n = t.get(e);
|
|
6116
6116
|
if (n)
|
|
6117
6117
|
return n;
|
|
6118
|
-
let r = vt(e, [], !1).filter((s) =>
|
|
6119
|
-
const i =
|
|
6118
|
+
let r = vt(e, [], !1).filter((s) => ve(s) && ct(s) !== "body"), o = null;
|
|
6119
|
+
const i = be(e).position === "fixed";
|
|
6120
6120
|
let a = i ? ze(e) : e;
|
|
6121
|
-
for (;
|
|
6122
|
-
const s =
|
|
6121
|
+
for (; ve(a) && !rt(a); ) {
|
|
6122
|
+
const s = be(a), c = Nr(a);
|
|
6123
6123
|
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || wt(a) && !c && xa(e, a)) ? r = r.filter((u) => u !== a) : o = s, a = ze(a);
|
|
6124
6124
|
}
|
|
6125
6125
|
return t.set(e, r), r;
|
|
@@ -6155,12 +6155,12 @@ function ap(e) {
|
|
|
6155
6155
|
};
|
|
6156
6156
|
}
|
|
6157
6157
|
function sp(e, t, n) {
|
|
6158
|
-
const r = _e(t), o =
|
|
6158
|
+
const r = _e(t), o = Ee(t), i = n === "fixed", a = We(e, !0, i, t);
|
|
6159
6159
|
let s = {
|
|
6160
6160
|
scrollLeft: 0,
|
|
6161
6161
|
scrollTop: 0
|
|
6162
6162
|
};
|
|
6163
|
-
const c =
|
|
6163
|
+
const c = Se(0);
|
|
6164
6164
|
function l() {
|
|
6165
6165
|
c.x = tn(o);
|
|
6166
6166
|
}
|
|
@@ -6170,7 +6170,7 @@ function sp(e, t, n) {
|
|
|
6170
6170
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
6171
6171
|
} else o && l();
|
|
6172
6172
|
i && !r && o && l();
|
|
6173
|
-
const u = o && !r && !i ? wa(o, s) :
|
|
6173
|
+
const u = o && !r && !i ? wa(o, s) : Se(0), f = a.left + s.scrollLeft - c.x - u.x, p = a.top + s.scrollTop - c.y - u.y;
|
|
6174
6174
|
return {
|
|
6175
6175
|
x: f,
|
|
6176
6176
|
y: p,
|
|
@@ -6179,15 +6179,15 @@ function sp(e, t, n) {
|
|
|
6179
6179
|
};
|
|
6180
6180
|
}
|
|
6181
6181
|
function kn(e) {
|
|
6182
|
-
return
|
|
6182
|
+
return be(e).position === "static";
|
|
6183
6183
|
}
|
|
6184
6184
|
function ko(e, t) {
|
|
6185
|
-
if (!_e(e) ||
|
|
6185
|
+
if (!_e(e) || be(e).position === "fixed")
|
|
6186
6186
|
return null;
|
|
6187
6187
|
if (t)
|
|
6188
6188
|
return t(e);
|
|
6189
6189
|
let n = e.offsetParent;
|
|
6190
|
-
return
|
|
6190
|
+
return Ee(e) === n && (n = n.ownerDocument.body), n;
|
|
6191
6191
|
}
|
|
6192
6192
|
function Ca(e, t) {
|
|
6193
6193
|
const n = de(e);
|
|
@@ -6196,7 +6196,7 @@ function Ca(e, t) {
|
|
|
6196
6196
|
if (!_e(e)) {
|
|
6197
6197
|
let o = ze(e);
|
|
6198
6198
|
for (; o && !rt(o); ) {
|
|
6199
|
-
if (
|
|
6199
|
+
if (ve(o) && !kn(o))
|
|
6200
6200
|
return o;
|
|
6201
6201
|
o = ze(o);
|
|
6202
6202
|
}
|
|
@@ -6220,18 +6220,18 @@ const cp = async function(e) {
|
|
|
6220
6220
|
};
|
|
6221
6221
|
};
|
|
6222
6222
|
function lp(e) {
|
|
6223
|
-
return
|
|
6223
|
+
return be(e).direction === "rtl";
|
|
6224
6224
|
}
|
|
6225
6225
|
const up = {
|
|
6226
6226
|
convertOffsetParentRelativeRectToViewportRelativeRect: Zf,
|
|
6227
|
-
getDocumentElement:
|
|
6227
|
+
getDocumentElement: Ee,
|
|
6228
6228
|
getClippingRect: ip,
|
|
6229
6229
|
getOffsetParent: Ca,
|
|
6230
6230
|
getElementRects: cp,
|
|
6231
6231
|
getClientRects: ep,
|
|
6232
6232
|
getDimensions: ap,
|
|
6233
6233
|
getScale: nt,
|
|
6234
|
-
isElement:
|
|
6234
|
+
isElement: ve,
|
|
6235
6235
|
isRTL: lp
|
|
6236
6236
|
};
|
|
6237
6237
|
function Sa(e, t) {
|
|
@@ -6239,7 +6239,7 @@ function Sa(e, t) {
|
|
|
6239
6239
|
}
|
|
6240
6240
|
function dp(e, t) {
|
|
6241
6241
|
let n = null, r;
|
|
6242
|
-
const o =
|
|
6242
|
+
const o = Ee(e);
|
|
6243
6243
|
function i() {
|
|
6244
6244
|
var s;
|
|
6245
6245
|
clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
|
|
@@ -7065,7 +7065,7 @@ Qa.displayName = Br;
|
|
|
7065
7065
|
var Za = "RadioIndicator", es = d.forwardRef(
|
|
7066
7066
|
(e, t) => {
|
|
7067
7067
|
const { __scopeRadio: n, forceMount: r, ...o } = e, i = sh(Za, n);
|
|
7068
|
-
return /* @__PURE__ */ g(
|
|
7068
|
+
return /* @__PURE__ */ g(ye, { present: r || i.checked, children: /* @__PURE__ */ g(
|
|
7069
7069
|
F.span,
|
|
7070
7070
|
{
|
|
7071
7071
|
"data-state": ns(i.checked),
|
|
@@ -7327,17 +7327,17 @@ var ds = "ScrollAreaViewport", fs = d.forwardRef(
|
|
|
7327
7327
|
}
|
|
7328
7328
|
);
|
|
7329
7329
|
fs.displayName = ds;
|
|
7330
|
-
var
|
|
7330
|
+
var Re = "ScrollAreaScrollbar", ps = d.forwardRef(
|
|
7331
7331
|
(e, t) => {
|
|
7332
|
-
const { forceMount: n, ...r } = e, o = pe(
|
|
7332
|
+
const { forceMount: n, ...r } = e, o = pe(Re, e.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = o, s = e.orientation === "horizontal";
|
|
7333
7333
|
return d.useEffect(() => (s ? i(!0) : a(!0), () => {
|
|
7334
7334
|
s ? i(!1) : a(!1);
|
|
7335
7335
|
}), [s, i, a]), o.type === "hover" ? /* @__PURE__ */ g(yh, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ g(wh, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ g(hs, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ g(Fr, { ...r, ref: t }) : null;
|
|
7336
7336
|
}
|
|
7337
7337
|
);
|
|
7338
|
-
ps.displayName =
|
|
7338
|
+
ps.displayName = Re;
|
|
7339
7339
|
var yh = d.forwardRef((e, t) => {
|
|
7340
|
-
const { forceMount: n, ...r } = e, o = pe(
|
|
7340
|
+
const { forceMount: n, ...r } = e, o = pe(Re, e.__scopeScrollArea), [i, a] = d.useState(!1);
|
|
7341
7341
|
return d.useEffect(() => {
|
|
7342
7342
|
const s = o.scrollArea;
|
|
7343
7343
|
let c = 0;
|
|
@@ -7351,7 +7351,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7351
7351
|
window.clearTimeout(c), s.removeEventListener("pointerenter", l), s.removeEventListener("pointerleave", u);
|
|
7352
7352
|
};
|
|
7353
7353
|
}
|
|
7354
|
-
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ g(
|
|
7354
|
+
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ g(ye, { present: n || i, children: /* @__PURE__ */ g(
|
|
7355
7355
|
hs,
|
|
7356
7356
|
{
|
|
7357
7357
|
"data-state": i ? "visible" : "hidden",
|
|
@@ -7360,7 +7360,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7360
7360
|
}
|
|
7361
7361
|
) });
|
|
7362
7362
|
}), wh = d.forwardRef((e, t) => {
|
|
7363
|
-
const { forceMount: n, ...r } = e, o = pe(
|
|
7363
|
+
const { forceMount: n, ...r } = e, o = pe(Re, e.__scopeScrollArea), i = e.orientation === "horizontal", a = sn(() => c("SCROLL_END"), 100), [s, c] = vh("hidden", {
|
|
7364
7364
|
hidden: {
|
|
7365
7365
|
SCROLL: "scrolling"
|
|
7366
7366
|
},
|
|
@@ -7393,7 +7393,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7393
7393
|
};
|
|
7394
7394
|
return l.addEventListener("scroll", p), () => l.removeEventListener("scroll", p);
|
|
7395
7395
|
}
|
|
7396
|
-
}, [o.viewport, i, c, a]), /* @__PURE__ */ g(
|
|
7396
|
+
}, [o.viewport, i, c, a]), /* @__PURE__ */ g(ye, { present: n || s !== "hidden", children: /* @__PURE__ */ g(
|
|
7397
7397
|
Fr,
|
|
7398
7398
|
{
|
|
7399
7399
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
@@ -7404,13 +7404,13 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7404
7404
|
}
|
|
7405
7405
|
) });
|
|
7406
7406
|
}), hs = d.forwardRef((e, t) => {
|
|
7407
|
-
const n = pe(
|
|
7407
|
+
const n = pe(Re, e.__scopeScrollArea), { forceMount: r, ...o } = e, [i, a] = d.useState(!1), s = e.orientation === "horizontal", c = sn(() => {
|
|
7408
7408
|
if (n.viewport) {
|
|
7409
7409
|
const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
7410
7410
|
a(s ? l : u);
|
|
7411
7411
|
}
|
|
7412
7412
|
}, 10);
|
|
7413
|
-
return ot(n.viewport, c), ot(n.content, c), /* @__PURE__ */ g(
|
|
7413
|
+
return ot(n.viewport, c), ot(n.content, c), /* @__PURE__ */ g(ye, { present: r || i, children: /* @__PURE__ */ g(
|
|
7414
7414
|
Fr,
|
|
7415
7415
|
{
|
|
7416
7416
|
"data-state": i ? "visible" : "hidden",
|
|
@@ -7419,7 +7419,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7419
7419
|
}
|
|
7420
7420
|
) });
|
|
7421
7421
|
}), Fr = d.forwardRef((e, t) => {
|
|
7422
|
-
const { orientation: n = "vertical", ...r } = e, o = pe(
|
|
7422
|
+
const { orientation: n = "vertical", ...r } = e, o = pe(Re, e.__scopeScrollArea), i = d.useRef(null), a = d.useRef(0), [s, c] = d.useState({
|
|
7423
7423
|
content: 0,
|
|
7424
7424
|
viewport: 0,
|
|
7425
7425
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -7473,7 +7473,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7473
7473
|
}
|
|
7474
7474
|
) : null;
|
|
7475
7475
|
}), xh = d.forwardRef((e, t) => {
|
|
7476
|
-
const { sizes: n, onSizesChange: r, ...o } = e, i = pe(
|
|
7476
|
+
const { sizes: n, onSizesChange: r, ...o } = e, i = pe(Re, e.__scopeScrollArea), [a, s] = d.useState(), c = d.useRef(null), l = K(t, c, i.onScrollbarXChange);
|
|
7477
7477
|
return d.useEffect(() => {
|
|
7478
7478
|
c.current && s(getComputedStyle(c.current));
|
|
7479
7479
|
}, [c]), /* @__PURE__ */ g(
|
|
@@ -7512,7 +7512,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7512
7512
|
}
|
|
7513
7513
|
);
|
|
7514
7514
|
}), Ch = d.forwardRef((e, t) => {
|
|
7515
|
-
const { sizes: n, onSizesChange: r, ...o } = e, i = pe(
|
|
7515
|
+
const { sizes: n, onSizesChange: r, ...o } = e, i = pe(Re, e.__scopeScrollArea), [a, s] = d.useState(), c = d.useRef(null), l = K(t, c, i.onScrollbarYChange);
|
|
7516
7516
|
return d.useEffect(() => {
|
|
7517
7517
|
c.current && s(getComputedStyle(c.current));
|
|
7518
7518
|
}, [c]), /* @__PURE__ */ g(
|
|
@@ -7551,7 +7551,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7551
7551
|
}
|
|
7552
7552
|
}
|
|
7553
7553
|
);
|
|
7554
|
-
}), [Sh, ms] = ls(
|
|
7554
|
+
}), [Sh, ms] = ls(Re), gs = d.forwardRef((e, t) => {
|
|
7555
7555
|
const {
|
|
7556
7556
|
__scopeScrollArea: n,
|
|
7557
7557
|
sizes: r,
|
|
@@ -7564,7 +7564,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7564
7564
|
onWheelScroll: u,
|
|
7565
7565
|
onResize: f,
|
|
7566
7566
|
...p
|
|
7567
|
-
} = e, h = pe(
|
|
7567
|
+
} = e, h = pe(Re, n), [v, m] = d.useState(null), b = K(t, (k) => m(k)), y = d.useRef(null), w = d.useRef(""), x = h.viewport, C = r.content - r.viewport, A = ae(u), R = ae(c), E = sn(f, 10);
|
|
7568
7568
|
function S(k) {
|
|
7569
7569
|
if (y.current) {
|
|
7570
7570
|
const P = k.clientX - y.current.left, T = k.clientY - y.current.top;
|
|
@@ -7608,7 +7608,7 @@ var yh = d.forwardRef((e, t) => {
|
|
|
7608
7608
|
}), Ut = "ScrollAreaThumb", vs = d.forwardRef(
|
|
7609
7609
|
(e, t) => {
|
|
7610
7610
|
const { forceMount: n, ...r } = e, o = ms(Ut, e.__scopeScrollArea);
|
|
7611
|
-
return /* @__PURE__ */ g(
|
|
7611
|
+
return /* @__PURE__ */ g(ye, { present: n || o.hasThumb, children: /* @__PURE__ */ g(Eh, { ref: t, ...r }) });
|
|
7612
7612
|
}
|
|
7613
7613
|
), Eh = d.forwardRef(
|
|
7614
7614
|
(e, t) => {
|
|
@@ -8791,7 +8791,7 @@ var ac = "TabsContent", sc = d.forwardRef(
|
|
|
8791
8791
|
return d.useEffect(() => {
|
|
8792
8792
|
const p = requestAnimationFrame(() => f.current = !1);
|
|
8793
8793
|
return () => cancelAnimationFrame(p);
|
|
8794
|
-
}, []), /* @__PURE__ */ g(
|
|
8794
|
+
}, []), /* @__PURE__ */ g(ye, { present: o || u, children: ({ present: p }) => /* @__PURE__ */ g(
|
|
8795
8795
|
F.div,
|
|
8796
8796
|
{
|
|
8797
8797
|
"data-state": u ? "active" : "inactive",
|
|
@@ -8940,13 +8940,13 @@ var Wr = "TooltipPortal", [_m, Im] = pn(Wr, {
|
|
|
8940
8940
|
forceMount: void 0
|
|
8941
8941
|
}), hc = (e) => {
|
|
8942
8942
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, i = Ct(Wr, t);
|
|
8943
|
-
return /* @__PURE__ */ g(_m, { scope: t, forceMount: n, children: /* @__PURE__ */ g(
|
|
8943
|
+
return /* @__PURE__ */ g(_m, { scope: t, forceMount: n, children: /* @__PURE__ */ g(ye, { present: n || i.open, children: /* @__PURE__ */ g(Er, { asChild: !0, container: o, children: r }) }) });
|
|
8944
8944
|
};
|
|
8945
8945
|
hc.displayName = Wr;
|
|
8946
8946
|
var it = "TooltipContent", mc = d.forwardRef(
|
|
8947
8947
|
(e, t) => {
|
|
8948
8948
|
const n = Im(it, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...i } = e, a = Ct(it, e.__scopeTooltip);
|
|
8949
|
-
return /* @__PURE__ */ g(
|
|
8949
|
+
return /* @__PURE__ */ g(ye, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g(gc, { side: o, ...i, ref: t }) : /* @__PURE__ */ g(Mm, { side: o, ...i, ref: t }) });
|
|
8950
8950
|
}
|
|
8951
8951
|
), Mm = d.forwardRef((e, t) => {
|
|
8952
8952
|
const n = Ct(it, e.__scopeTooltip), r = $r(it, e.__scopeTooltip), o = d.useRef(null), i = K(t, o), [a, s] = d.useState(null), { trigger: c, onClose: l } = n, u = o.current, { onPointerInTransitChange: f } = r, p = d.useCallback(() => {
|
|
@@ -10414,24 +10414,24 @@ function wc() {
|
|
|
10414
10414
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
10415
10415
|
}), Vn;
|
|
10416
10416
|
}
|
|
10417
|
-
var
|
|
10417
|
+
var we = {}, jo;
|
|
10418
10418
|
function xc() {
|
|
10419
|
-
if (jo) return
|
|
10419
|
+
if (jo) return we;
|
|
10420
10420
|
jo = 1;
|
|
10421
10421
|
const e = "[0-9]+", t = "[A-Z $%*+\\-./:]+";
|
|
10422
10422
|
let n = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
10423
10423
|
n = n.replace(/u/g, "\\u");
|
|
10424
10424
|
const r = "(?:(?![A-Z0-9 $%*+\\-./:]|" + n + `)(?:.|[\r
|
|
10425
10425
|
]))+`;
|
|
10426
|
-
|
|
10426
|
+
we.KANJI = new RegExp(n, "g"), we.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), we.BYTE = new RegExp(r, "g"), we.NUMERIC = new RegExp(e, "g"), we.ALPHANUMERIC = new RegExp(t, "g");
|
|
10427
10427
|
const o = new RegExp("^" + n + "$"), i = new RegExp("^" + e + "$"), a = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
10428
|
-
return
|
|
10428
|
+
return we.testKanji = function(c) {
|
|
10429
10429
|
return o.test(c);
|
|
10430
|
-
},
|
|
10430
|
+
}, we.testNumeric = function(c) {
|
|
10431
10431
|
return i.test(c);
|
|
10432
|
-
},
|
|
10432
|
+
}, we.testAlphanumeric = function(c) {
|
|
10433
10433
|
return a.test(c);
|
|
10434
|
-
},
|
|
10434
|
+
}, we;
|
|
10435
10435
|
}
|
|
10436
10436
|
var Go;
|
|
10437
10437
|
function Xe() {
|
|
@@ -11520,7 +11520,7 @@ function pv({
|
|
|
11520
11520
|
}
|
|
11521
11521
|
);
|
|
11522
11522
|
}
|
|
11523
|
-
const
|
|
11523
|
+
const ge = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
11524
11524
|
"arrow-left": Bc,
|
|
11525
11525
|
calendar: Vc,
|
|
11526
11526
|
"check-circle-2": Jc,
|
|
@@ -11581,7 +11581,7 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11581
11581
|
variant: r,
|
|
11582
11582
|
size: o,
|
|
11583
11583
|
onClick: n,
|
|
11584
|
-
disabled:
|
|
11584
|
+
disabled: ge(i),
|
|
11585
11585
|
title: a,
|
|
11586
11586
|
children: e
|
|
11587
11587
|
}
|
|
@@ -11593,19 +11593,21 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11593
11593
|
hue: r,
|
|
11594
11594
|
children: e
|
|
11595
11595
|
}
|
|
11596
|
-
), yv = ({ className: e, onChange: t,
|
|
11596
|
+
), yv = ({ className: e, onChange: t, disabled: n, ...r }) => /* @__PURE__ */ g(
|
|
11597
11597
|
eg,
|
|
11598
11598
|
{
|
|
11599
11599
|
className: e,
|
|
11600
11600
|
onChange: t,
|
|
11601
|
-
|
|
11601
|
+
disabled: ge(n),
|
|
11602
|
+
...r
|
|
11602
11603
|
}
|
|
11603
|
-
), wv = ({ className: e, onChange: t,
|
|
11604
|
+
), wv = ({ className: e, onChange: t, disabled: n, ...r }) => /* @__PURE__ */ g(
|
|
11604
11605
|
tg,
|
|
11605
11606
|
{
|
|
11606
11607
|
className: e,
|
|
11607
11608
|
onChange: t,
|
|
11608
|
-
|
|
11609
|
+
disabled: ge(n),
|
|
11610
|
+
...r
|
|
11609
11611
|
}
|
|
11610
11612
|
), xv = ({ children: e, className: t, value: n, defaultValue: r, onChange: o, placeholder: i, disabled: a }) => /* @__PURE__ */ te(
|
|
11611
11613
|
ng,
|
|
@@ -11616,7 +11618,7 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11616
11618
|
const c = o;
|
|
11617
11619
|
c == null || c({ target: { value: s } });
|
|
11618
11620
|
},
|
|
11619
|
-
disabled:
|
|
11621
|
+
disabled: ge(a),
|
|
11620
11622
|
children: [
|
|
11621
11623
|
/* @__PURE__ */ g(og, { className: t, children: /* @__PURE__ */ g(rg, { placeholder: i }) }),
|
|
11622
11624
|
/* @__PURE__ */ g(ig, { style: { zIndex: "calc(var(--widget-z, 1000) + 1)" }, children: e })
|
|
@@ -11626,7 +11628,7 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11626
11628
|
ag,
|
|
11627
11629
|
{
|
|
11628
11630
|
value: t,
|
|
11629
|
-
disabled:
|
|
11631
|
+
disabled: ge(n),
|
|
11630
11632
|
className: r,
|
|
11631
11633
|
children: e
|
|
11632
11634
|
}
|
|
@@ -11637,7 +11639,7 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11637
11639
|
{
|
|
11638
11640
|
...i ? { checked: e === "true" || e === !0 } : {},
|
|
11639
11641
|
onCheckedChange: (s) => a == null ? void 0 : a({ target: { value: String(s) } }),
|
|
11640
|
-
disabled:
|
|
11642
|
+
disabled: ge(n),
|
|
11641
11643
|
className: r,
|
|
11642
11644
|
id: o
|
|
11643
11645
|
}
|
|
@@ -11649,7 +11651,7 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11649
11651
|
{
|
|
11650
11652
|
...a ? { checked: e === "true" || e === !0 } : {},
|
|
11651
11653
|
onCheckedChange: (c) => s == null ? void 0 : s({ target: { value: String(c) } }),
|
|
11652
|
-
disabled:
|
|
11654
|
+
disabled: ge(n),
|
|
11653
11655
|
size: r,
|
|
11654
11656
|
className: o,
|
|
11655
11657
|
id: i
|
|
@@ -11678,12 +11680,12 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11678
11680
|
pg,
|
|
11679
11681
|
{
|
|
11680
11682
|
value: e,
|
|
11681
|
-
disabled:
|
|
11683
|
+
disabled: ge(t),
|
|
11682
11684
|
className: n,
|
|
11683
11685
|
id: r
|
|
11684
11686
|
}
|
|
11685
11687
|
), Pv = ({ className: e }) => /* @__PURE__ */ g(hg, { className: e }), Tv = ({ children: e, defaultValue: t, className: n }) => {
|
|
11686
|
-
const [r, o] =
|
|
11688
|
+
const [r, o] = Ae.useState(t);
|
|
11687
11689
|
return /* @__PURE__ */ g(mg, { value: r, onValueChange: o, className: n, children: e });
|
|
11688
11690
|
}, Nv = ({ children: e, className: t }) => /* @__PURE__ */ g(vg, { className: t, children: e }), _v = ({ children: e, value: t, className: n }) => /* @__PURE__ */ g(bg, { className: n, value: t, children: e }), Iv = ({ children: e, value: t, className: n }) => /* @__PURE__ */ g(yg, { className: n, value: t, children: e }), Mv = ({ children: e, className: t }) => /* @__PURE__ */ g(wg, { className: t, children: e }), Lv = ({ src: e, alt: t, className: n }) => {
|
|
11689
11691
|
var r;
|
|
@@ -11794,9 +11796,9 @@ const Ae = (e) => e == null ? void 0 : e === !0 || e === "true", Ec = {
|
|
|
11794
11796
|
{
|
|
11795
11797
|
videoId: e,
|
|
11796
11798
|
title: i,
|
|
11797
|
-
autoPlay:
|
|
11798
|
-
showControls:
|
|
11799
|
-
allowTracking:
|
|
11799
|
+
autoPlay: ge(t),
|
|
11800
|
+
showControls: ge(n),
|
|
11801
|
+
allowTracking: ge(r),
|
|
11800
11802
|
shape: o,
|
|
11801
11803
|
className: a
|
|
11802
11804
|
}
|