@iota/apps-ui-kit 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.es.js +169 -169
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/lib/components/molecules/account/Account.tsx +41 -38
- package/src/lib/components/molecules/input/TextArea.tsx +3 -1
- package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +5 -3
- package/src/lib/styles/base.css +7 -0
package/dist/index.es.js
CHANGED
|
@@ -573,8 +573,8 @@ const Vn = /* @__PURE__ */ Pr(Ti), Li = Vn(({ addVariant: e }) => {
|
|
|
573
573
|
var Zt = { exports: {} };
|
|
574
574
|
Zt.exports;
|
|
575
575
|
(function(e, t) {
|
|
576
|
-
var r = 200, n = "__lodash_hash_undefined__", a = 800, i = 16, c = 9007199254740991, s = "[object Arguments]", d = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", h = "[object Date]", x = "[object Error]",
|
|
577
|
-
j[ae] = j[be] = j[xe] = j[Le] = j[Ve] = j[F] = j[M] = j[X] = j[ee] = !0, j[s] = j[d] = j[k] = j[g] = j[q] = j[h] = j[x] = j[
|
|
576
|
+
var r = 200, n = "__lodash_hash_undefined__", a = 800, i = 16, c = 9007199254740991, s = "[object Arguments]", d = "[object Array]", f = "[object AsyncFunction]", g = "[object Boolean]", h = "[object Date]", x = "[object Error]", y = "[object Function]", w = "[object GeneratorFunction]", p = "[object Map]", S = "[object Number]", E = "[object Null]", D = "[object Object]", N = "[object Proxy]", T = "[object RegExp]", P = "[object Set]", L = "[object String]", _ = "[object Undefined]", I = "[object WeakMap]", k = "[object ArrayBuffer]", q = "[object DataView]", ae = "[object Float32Array]", be = "[object Float64Array]", xe = "[object Int8Array]", Le = "[object Int16Array]", Ve = "[object Int32Array]", F = "[object Uint8Array]", M = "[object Uint8ClampedArray]", X = "[object Uint16Array]", ee = "[object Uint32Array]", re = /[\\^$.*+?()[\]{}|]/g, Q = /^\[object .+?Constructor\]$/, ne = /^(?:0|[1-9]\d*)$/, j = {};
|
|
577
|
+
j[ae] = j[be] = j[xe] = j[Le] = j[Ve] = j[F] = j[M] = j[X] = j[ee] = !0, j[s] = j[d] = j[k] = j[g] = j[q] = j[h] = j[x] = j[y] = j[p] = j[S] = j[D] = j[T] = j[P] = j[L] = j[I] = !1;
|
|
578
578
|
var Je = typeof kt == "object" && kt && kt.Object === Object && kt, Ue = typeof self == "object" && self && self.Object === Object && self, we = Je || Ue || Function("return this")(), et = t && !t.nodeType && t, Ae = et && !0 && e && !e.nodeType && e, Nt = Ae && Ae.exports === et, gt = Nt && Je.process, _t = function() {
|
|
579
579
|
try {
|
|
580
580
|
var l = Ae && Ae.require && Ae.require("util").types;
|
|
@@ -1002,7 +1002,7 @@ Zt.exports;
|
|
|
1002
1002
|
if (!Ge(l))
|
|
1003
1003
|
return !1;
|
|
1004
1004
|
var u = Lt(l);
|
|
1005
|
-
return u ==
|
|
1005
|
+
return u == y || u == w || u == f || u == N;
|
|
1006
1006
|
}
|
|
1007
1007
|
function nn(l) {
|
|
1008
1008
|
return typeof l == "number" && l > -1 && l % 1 == 0 && l <= c;
|
|
@@ -1200,7 +1200,7 @@ function ge({
|
|
|
1200
1200
|
tabIndex: f = 0,
|
|
1201
1201
|
testId: g
|
|
1202
1202
|
}) {
|
|
1203
|
-
const h = e && !t ? $i[c] : Hi[c], x = Zi[c],
|
|
1203
|
+
const h = e && !t ? $i[c] : Hi[c], x = Zi[c], y = r ? Xi[s] : zi[s], w = r ? Yi[s] : Ki[s];
|
|
1204
1204
|
return /* @__PURE__ */ C(
|
|
1205
1205
|
"button",
|
|
1206
1206
|
{
|
|
@@ -1209,7 +1209,7 @@ function ge({
|
|
|
1209
1209
|
className: b(
|
|
1210
1210
|
"state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40",
|
|
1211
1211
|
h,
|
|
1212
|
-
|
|
1212
|
+
y,
|
|
1213
1213
|
a && "w-full",
|
|
1214
1214
|
d ? "flex-row-reverse" : "flex-row",
|
|
1215
1215
|
`btn btn-${s}`
|
|
@@ -1218,8 +1218,8 @@ function ge({
|
|
|
1218
1218
|
tabIndex: f,
|
|
1219
1219
|
"data-testid": g,
|
|
1220
1220
|
children: [
|
|
1221
|
-
e && /* @__PURE__ */ o("span", { className: b(
|
|
1222
|
-
t && /* @__PURE__ */ o("span", { className: b("font-inter",
|
|
1221
|
+
e && /* @__PURE__ */ o("span", { className: b(w), children: e }),
|
|
1222
|
+
t && /* @__PURE__ */ o("span", { className: b("font-inter", w, x), children: t })
|
|
1223
1223
|
]
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
@@ -1941,7 +1941,7 @@ function sd({
|
|
|
1941
1941
|
type: i = st.Rounded,
|
|
1942
1942
|
isNested: c = !1
|
|
1943
1943
|
}) {
|
|
1944
|
-
const s = i === st.Underlined, d = r ? s ? "bg-transparent" : vl : ml, f = s ? r ? Sl : yl : "", g = r ? wl : xl, h = s ? c ? "px-md py-sm" : "px-lg py-md" : "px-sm py-[6px]", x = s ? "" : "rounded-full",
|
|
1944
|
+
const s = i === st.Underlined, d = r ? s ? "bg-transparent" : vl : ml, f = s ? r ? Sl : yl : "", g = r ? wl : xl, h = s ? c ? "px-md py-sm" : "px-lg py-md" : "px-sm py-[6px]", x = s ? "" : "rounded-full", y = c ? s ? "text-title-sm" : "text-label-md" : s ? "text-title-md" : "text-label-lg";
|
|
1945
1945
|
return /* @__PURE__ */ o(
|
|
1946
1946
|
ce,
|
|
1947
1947
|
{
|
|
@@ -1958,7 +1958,7 @@ function sd({
|
|
|
1958
1958
|
}
|
|
1959
1959
|
),
|
|
1960
1960
|
disabled: n,
|
|
1961
|
-
children: /* @__PURE__ */ C("div", { className: b("flex flex-row items-center justify-center gap-2",
|
|
1961
|
+
children: /* @__PURE__ */ C("div", { className: b("flex flex-row items-center justify-center gap-2", y), children: [
|
|
1962
1962
|
e && /* @__PURE__ */ o("span", { children: e }),
|
|
1963
1963
|
/* @__PURE__ */ o("span", { className: "shrink-0 font-inter", children: t })
|
|
1964
1964
|
] })
|
|
@@ -2066,12 +2066,12 @@ function vt({
|
|
|
2066
2066
|
closeDelay: i = 100,
|
|
2067
2067
|
children: c
|
|
2068
2068
|
}) {
|
|
2069
|
-
const s = le(null), d = le(null), [f, g] = he(!1), [h, x] = he({ top: 0, left: 0 }),
|
|
2070
|
-
clearTimeout(
|
|
2069
|
+
const s = le(null), d = le(null), [f, g] = he(!1), [h, x] = he({ top: 0, left: 0 }), y = le(), w = le(), p = () => {
|
|
2070
|
+
clearTimeout(y.current), clearTimeout(w.current);
|
|
2071
2071
|
}, S = () => {
|
|
2072
|
-
p(),
|
|
2072
|
+
p(), y.current = setTimeout(() => g(!0), a);
|
|
2073
2073
|
}, E = () => {
|
|
2074
|
-
p(),
|
|
2074
|
+
p(), w.current = setTimeout(() => g(!1), i);
|
|
2075
2075
|
};
|
|
2076
2076
|
return Ar(() => {
|
|
2077
2077
|
var P;
|
|
@@ -2162,8 +2162,8 @@ function ud({
|
|
|
2162
2162
|
isReverse: h = !1,
|
|
2163
2163
|
valueHoverTitle: x
|
|
2164
2164
|
}) {
|
|
2165
|
-
const
|
|
2166
|
-
async function
|
|
2165
|
+
const y = h ? "flex-row-reverse" : "flex-row";
|
|
2166
|
+
async function w(p) {
|
|
2167
2167
|
if (navigator.clipboard && s)
|
|
2168
2168
|
try {
|
|
2169
2169
|
await navigator.clipboard.writeText(s), d == null || d(p, s);
|
|
@@ -2176,7 +2176,7 @@ function ud({
|
|
|
2176
2176
|
{
|
|
2177
2177
|
className: b(
|
|
2178
2178
|
"flex w-full items-baseline gap-xs py-xxs font-inter",
|
|
2179
|
-
|
|
2179
|
+
y,
|
|
2180
2180
|
{
|
|
2181
2181
|
"justify-between": g
|
|
2182
2182
|
}
|
|
@@ -2224,7 +2224,7 @@ function ud({
|
|
|
2224
2224
|
children: a
|
|
2225
2225
|
}
|
|
2226
2226
|
),
|
|
2227
|
-
/* @__PURE__ */ o("div", { className: "self-center", children: s && /* @__PURE__ */ o(ce, { onClick:
|
|
2227
|
+
/* @__PURE__ */ o("div", { className: "self-center", children: s && /* @__PURE__ */ o(ce, { onClick: w, children: /* @__PURE__ */ o(Mr, { className: "key-supporting-text-color" }) }) })
|
|
2228
2228
|
]
|
|
2229
2229
|
}
|
|
2230
2230
|
)
|
|
@@ -2598,19 +2598,19 @@ const Wl = "relative inline-flex items-center p-xxs border rounded-full cursor-p
|
|
|
2598
2598
|
[Mt.disabledActive]: n && t,
|
|
2599
2599
|
[Mt.disabled]: n,
|
|
2600
2600
|
[jl[c]]: !0
|
|
2601
|
-
}),
|
|
2601
|
+
}), y = b(Gl, {
|
|
2602
2602
|
[fn[c].unchecked]: !t,
|
|
2603
2603
|
[fn[c].checked]: t,
|
|
2604
2604
|
[hn.unchecked]: !t,
|
|
2605
2605
|
[hn.checked]: t,
|
|
2606
2606
|
[Hl[c]]: !0
|
|
2607
|
-
}),
|
|
2607
|
+
}), w = b($l, {
|
|
2608
2608
|
"flex-row-reverse": r === Rr.Left,
|
|
2609
2609
|
"cursor-not-allowed": n
|
|
2610
2610
|
}), p = b(zl, {
|
|
2611
2611
|
"opacity-40": n && !t
|
|
2612
2612
|
});
|
|
2613
|
-
return /* @__PURE__ */ C("div", { className:
|
|
2613
|
+
return /* @__PURE__ */ C("div", { className: w, children: [
|
|
2614
2614
|
/* @__PURE__ */ o(
|
|
2615
2615
|
"input",
|
|
2616
2616
|
{
|
|
@@ -2634,7 +2634,7 @@ const Wl = "relative inline-flex items-center p-xxs border rounded-full cursor-p
|
|
|
2634
2634
|
return (S = f.current) == null ? void 0 : S.click();
|
|
2635
2635
|
},
|
|
2636
2636
|
className: x,
|
|
2637
|
-
children: /* @__PURE__ */ o("span", { className:
|
|
2637
|
+
children: /* @__PURE__ */ o("span", { className: y })
|
|
2638
2638
|
}
|
|
2639
2639
|
),
|
|
2640
2640
|
e && /* @__PURE__ */ o("label", { htmlFor: i, className: p, children: e })
|
|
@@ -2754,10 +2754,10 @@ function xd({
|
|
|
2754
2754
|
disabled: f,
|
|
2755
2755
|
size: g = Dr.Default
|
|
2756
2756
|
}) {
|
|
2757
|
-
const h = t === K.Outline && r, x = r ? t === K.Outline ? "outline-transparent names:outline-names-neutral-20" : "chip-outline-color" : "outline-transparent",
|
|
2757
|
+
const h = t === K.Outline && r, x = r ? t === K.Outline ? "outline-transparent names:outline-names-neutral-20" : "chip-outline-color" : "outline-transparent", y = b(
|
|
2758
2758
|
"group-focus:chip-outline-color-active",
|
|
2759
2759
|
t === K.Outline && "names:group-focus:outline-transparent"
|
|
2760
|
-
),
|
|
2760
|
+
), w = r && !f && t !== K.Outline ? ec : "";
|
|
2761
2761
|
return /* @__PURE__ */ o(
|
|
2762
2762
|
ce,
|
|
2763
2763
|
{
|
|
@@ -2780,10 +2780,10 @@ function xd({
|
|
|
2780
2780
|
mn,
|
|
2781
2781
|
h ? tc[K.Outline] : nc[t],
|
|
2782
2782
|
x,
|
|
2783
|
-
!f &&
|
|
2783
|
+
!f && y,
|
|
2784
2784
|
!f && Ql,
|
|
2785
2785
|
ac,
|
|
2786
|
-
|
|
2786
|
+
w
|
|
2787
2787
|
),
|
|
2788
2788
|
children: [
|
|
2789
2789
|
c ?? s,
|
|
@@ -3028,8 +3028,8 @@ function gn(e, t, r) {
|
|
|
3028
3028
|
i && Number(g[0]) && (h = i.split("").reverse().reduce(function(p, S, E) {
|
|
3029
3029
|
return p.length > E ? (Number(p[0]) + Number(S)).toString() + p.substring(1, p.length) : S + p;
|
|
3030
3030
|
}, g[0]));
|
|
3031
|
-
var x = ia(g[1] || "", t, r),
|
|
3032
|
-
return "" +
|
|
3031
|
+
var x = ia(g[1] || "", t, r), y = s ? "-" : "", w = n ? "." : "";
|
|
3032
|
+
return "" + y + h + w + x;
|
|
3033
3033
|
}
|
|
3034
3034
|
function $e(e, t) {
|
|
3035
3035
|
if (e.value = e.value, e !== null) {
|
|
@@ -3088,18 +3088,18 @@ function Nc(e, t, r, n, a, i, c) {
|
|
|
3088
3088
|
return T;
|
|
3089
3089
|
}), d = e.slice(0, s);
|
|
3090
3090
|
!t && !r.startsWith(d) && (t = d, r = d + r, n = n + d.length);
|
|
3091
|
-
for (var f = r.length, g = e.length, h = {}, x = new Array(f),
|
|
3092
|
-
x[
|
|
3093
|
-
for (var
|
|
3091
|
+
for (var f = r.length, g = e.length, h = {}, x = new Array(f), y = 0; y < f; y++) {
|
|
3092
|
+
x[y] = -1;
|
|
3093
|
+
for (var w = 0, p = g; w < p; w++) {
|
|
3094
3094
|
var S = c({
|
|
3095
3095
|
currentValue: r,
|
|
3096
3096
|
lastValue: t,
|
|
3097
3097
|
formattedValue: e,
|
|
3098
|
-
currentValueIndex:
|
|
3099
|
-
formattedValueIndex:
|
|
3098
|
+
currentValueIndex: y,
|
|
3099
|
+
formattedValueIndex: w
|
|
3100
3100
|
});
|
|
3101
|
-
if (S && h[
|
|
3102
|
-
x[
|
|
3101
|
+
if (S && h[w] !== !0) {
|
|
3102
|
+
x[y] = w, h[w] = !0;
|
|
3103
3103
|
break;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
@@ -3134,22 +3134,22 @@ function _c(e) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
function sa(e, t, r, n, a, i) {
|
|
3136
3136
|
i === void 0 && (i = Pe);
|
|
3137
|
-
var c = bc(function(
|
|
3137
|
+
var c = bc(function(w, p) {
|
|
3138
3138
|
var S, E;
|
|
3139
|
-
return aa(
|
|
3139
|
+
return aa(w) ? (E = "", S = "") : typeof w == "number" || p ? (E = typeof w == "number" ? la(w) : w, S = n(E)) : (E = a(w, void 0), S = n(E)), { formattedValue: S, numAsString: E };
|
|
3140
3140
|
}), s = he(function() {
|
|
3141
3141
|
return c(dt(e) ? t : e, r);
|
|
3142
|
-
}), d = s[0], f = s[1], g = function(
|
|
3143
|
-
|
|
3144
|
-
formattedValue:
|
|
3145
|
-
numAsString:
|
|
3146
|
-
}), i(
|
|
3142
|
+
}), d = s[0], f = s[1], g = function(w, p) {
|
|
3143
|
+
w.formattedValue !== d.formattedValue && f({
|
|
3144
|
+
formattedValue: w.formattedValue,
|
|
3145
|
+
numAsString: w.value
|
|
3146
|
+
}), i(w, p);
|
|
3147
3147
|
}, h = e, x = r;
|
|
3148
3148
|
dt(e) && (h = d.numAsString, x = !0);
|
|
3149
|
-
var
|
|
3149
|
+
var y = c(h, x);
|
|
3150
3150
|
return ii(function() {
|
|
3151
|
-
f(
|
|
3152
|
-
}, [
|
|
3151
|
+
f(y);
|
|
3152
|
+
}, [y.formattedValue]), [d, g];
|
|
3153
3153
|
}
|
|
3154
3154
|
function Oc(e) {
|
|
3155
3155
|
return e.replace(/[^0-9]/g, "");
|
|
@@ -3168,10 +3168,10 @@ function Rc(e) {
|
|
|
3168
3168
|
s === void 0 && (s = Oc);
|
|
3169
3169
|
var d = e.defaultValue, f = e.valueIsNumericString, g = e.onValueChange, h = e.isAllowed, x = e.onChange;
|
|
3170
3170
|
x === void 0 && (x = Pe);
|
|
3171
|
-
var
|
|
3172
|
-
w === void 0 && (w = Pe);
|
|
3173
|
-
var y = e.onMouseUp;
|
|
3171
|
+
var y = e.onKeyDown;
|
|
3174
3172
|
y === void 0 && (y = Pe);
|
|
3173
|
+
var w = e.onMouseUp;
|
|
3174
|
+
w === void 0 && (w = Pe);
|
|
3175
3175
|
var p = e.onFocus;
|
|
3176
3176
|
p === void 0 && (p = Pe);
|
|
3177
3177
|
var S = e.onBlur;
|
|
@@ -3262,7 +3262,7 @@ function Rc(e) {
|
|
|
3262
3262
|
B === "Delete" && H === oe && (ue = 1);
|
|
3263
3263
|
var me = B === "ArrowLeft" || B === "ArrowRight";
|
|
3264
3264
|
if (V === void 0 || H !== oe && !me) {
|
|
3265
|
-
|
|
3265
|
+
y(O), Ae(R, ue);
|
|
3266
3266
|
return;
|
|
3267
3267
|
}
|
|
3268
3268
|
var ye = V;
|
|
@@ -3270,7 +3270,7 @@ function Rc(e) {
|
|
|
3270
3270
|
var pt = B === "ArrowLeft" ? "left" : "right";
|
|
3271
3271
|
ye = ne($, V, pt), ye !== V && O.preventDefault();
|
|
3272
3272
|
} else B === "Delete" && !N($[V]) ? ye = ne($, V, "right") : B === "Backspace" && !N($[V]) && (ye = ne($, V, "left"));
|
|
3273
|
-
ye !== V && Q(R, ye, $),
|
|
3273
|
+
ye !== V && Q(R, ye, $), y(O), Ae(R, ue);
|
|
3274
3274
|
}, _t = function(O) {
|
|
3275
3275
|
var R = O.target, B = function() {
|
|
3276
3276
|
var H = R.selectionStart, oe = R.selectionEnd, $ = R.value;
|
|
@@ -3281,7 +3281,7 @@ function Rc(e) {
|
|
|
3281
3281
|
};
|
|
3282
3282
|
B(), requestAnimationFrame(function() {
|
|
3283
3283
|
B();
|
|
3284
|
-
}),
|
|
3284
|
+
}), w(O), Ae(R);
|
|
3285
3285
|
}, Ot = function(O) {
|
|
3286
3286
|
O.persist && O.persist();
|
|
3287
3287
|
var R = O.target, B = O.currentTarget;
|
|
@@ -3318,8 +3318,8 @@ function bn(e, t) {
|
|
|
3318
3318
|
var c = t.allowNegative, s = t.thousandsGroupStyle;
|
|
3319
3319
|
if (s === void 0 && (s = "thousand"), e === "" || e === "-")
|
|
3320
3320
|
return e;
|
|
3321
|
-
var d = rr(t), f = d.thousandSeparator, g = d.decimalSeparator, h = r !== 0 && e.indexOf(".") !== -1 || r && n, x = Fr(e, c),
|
|
3322
|
-
return r !== void 0 && (
|
|
3321
|
+
var d = rr(t), f = d.thousandSeparator, g = d.decimalSeparator, h = r !== 0 && e.indexOf(".") !== -1 || r && n, x = Fr(e, c), y = x.beforeDecimal, w = x.afterDecimal, p = x.addNegation;
|
|
3322
|
+
return r !== void 0 && (w = ia(w, r, !!n)), f && (y = pc(y, f, s)), a && (y = a + y), i && (w = w + i), p && (y = "-" + y), e = y + (h && g || "") + w, e;
|
|
3323
3323
|
}
|
|
3324
3324
|
function rr(e) {
|
|
3325
3325
|
var t = e.decimalSeparator;
|
|
@@ -3349,11 +3349,11 @@ function Ic(e, t, r) {
|
|
|
3349
3349
|
i === void 0 && (i = "");
|
|
3350
3350
|
var c = r.suffix;
|
|
3351
3351
|
c === void 0 && (c = "");
|
|
3352
|
-
var s = r.decimalScale, d = t.from, f = t.to, g = f.start, h = f.end, x = rr(r),
|
|
3352
|
+
var s = r.decimalScale, d = t.from, f = t.to, g = f.start, h = f.end, x = rr(r), y = x.allowedDecimalSeparators, w = x.decimalSeparator, p = e[h] === w;
|
|
3353
3353
|
if (Ct(e) && (e === i || e === c) && t.lastValue === "")
|
|
3354
3354
|
return e;
|
|
3355
|
-
if (h - g === 1 &&
|
|
3356
|
-
var S = s === 0 ? "" :
|
|
3355
|
+
if (h - g === 1 && y.indexOf(e[g]) !== -1) {
|
|
3356
|
+
var S = s === 0 ? "" : w;
|
|
3357
3357
|
e = e.substring(0, g) + S + e.substring(g + 1, e.length);
|
|
3358
3358
|
}
|
|
3359
3359
|
var E = function(M, X, ee) {
|
|
@@ -3368,9 +3368,9 @@ function Ic(e, t, r) {
|
|
|
3368
3368
|
var k = 0;
|
|
3369
3369
|
e.startsWith(i) ? k += i.length : g < i.length && (k = g), e = e.substring(k), h -= k;
|
|
3370
3370
|
var q = e.length, ae = e.length - c.length;
|
|
3371
|
-
e.endsWith(c) ? q = ae : (h > ae || h > e.length - c.length) && (q = h), e = e.substring(0, q), e = Dc(N ? "-" + e : e, a), e = (e.match(Tc(
|
|
3372
|
-
var be = e.indexOf(
|
|
3373
|
-
e = e.replace(new RegExp(oa(
|
|
3371
|
+
e.endsWith(c) ? q = ae : (h > ae || h > e.length - c.length) && (q = h), e = e.substring(0, q), e = Dc(N ? "-" + e : e, a), e = (e.match(Tc(w)) || []).join("");
|
|
3372
|
+
var be = e.indexOf(w);
|
|
3373
|
+
e = e.replace(new RegExp(oa(w), "g"), function(M, X) {
|
|
3374
3374
|
return X === be ? "." : "";
|
|
3375
3375
|
});
|
|
3376
3376
|
var xe = Fr(e, a), Le = xe.beforeDecimal, Ve = xe.afterDecimal, F = xe.addNegation;
|
|
@@ -3412,7 +3412,7 @@ function Mc(e) {
|
|
|
3412
3412
|
i === void 0 && (i = Pe);
|
|
3413
3413
|
var c = e.thousandSeparator, s = e.decimalScale, d = e.fixedDecimalScale, f = e.prefix;
|
|
3414
3414
|
f === void 0 && (f = "");
|
|
3415
|
-
var g = e.defaultValue, h = e.value, x = e.valueIsNumericString,
|
|
3415
|
+
var g = e.defaultValue, h = e.value, x = e.valueIsNumericString, y = e.onValueChange, w = na(e, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), p = rr(e), S = p.decimalSeparator, E = p.allowedDecimalSeparators, D = function(F) {
|
|
3416
3416
|
return bn(F, e);
|
|
3417
3417
|
}, N = function(F, M) {
|
|
3418
3418
|
return Ic(F, M, e);
|
|
@@ -3420,7 +3420,7 @@ function Mc(e) {
|
|
|
3420
3420
|
dt(h) ? dt(g) || (P = P || typeof g == "number") : P = P || typeof h == "number";
|
|
3421
3421
|
var L = function(F) {
|
|
3422
3422
|
return aa(F) ? F : (typeof F == "number" && (F = la(F)), P && typeof s == "number" ? gn(F, s, !!d) : F);
|
|
3423
|
-
}, _ = sa(L(h), L(g), !!P, D, N,
|
|
3423
|
+
}, _ = sa(L(h), L(g), !!P, D, N, y), I = _[0], k = I.numAsString, q = I.formattedValue, ae = _[1], be = function(F) {
|
|
3424
3424
|
var M = F.target, X = F.key, ee = M.selectionStart, re = M.selectionEnd, Q = M.value;
|
|
3425
3425
|
if (Q === void 0 && (Q = ""), (X === "Backspace" || X === "Delete") && re < f.length) {
|
|
3426
3426
|
F.preventDefault();
|
|
@@ -3455,7 +3455,7 @@ function Mc(e) {
|
|
|
3455
3455
|
};
|
|
3456
3456
|
return h === 0 && d && s && M[Ue.start] === S && we(M) < re && we(ee) > Q ? !1 : re >= Ue.start && re < Ue.end && E && E.includes(ne) && j === S ? !0 : ne === j;
|
|
3457
3457
|
};
|
|
3458
|
-
return Object.assign(Object.assign({},
|
|
3458
|
+
return Object.assign(Object.assign({}, w), {
|
|
3459
3459
|
value: q,
|
|
3460
3460
|
valueIsNumericString: !1,
|
|
3461
3461
|
isValidInputCharacter: Le,
|
|
@@ -3487,12 +3487,12 @@ const Sd = Fe(function({
|
|
|
3487
3487
|
value: g,
|
|
3488
3488
|
supportingValue: h,
|
|
3489
3489
|
defaultValue: x,
|
|
3490
|
-
onClearInput:
|
|
3491
|
-
isVisibilityToggleEnabled:
|
|
3490
|
+
onClearInput: y,
|
|
3491
|
+
isVisibilityToggleEnabled: w,
|
|
3492
3492
|
type: p,
|
|
3493
3493
|
...S
|
|
3494
3494
|
}, E) {
|
|
3495
|
-
|
|
3495
|
+
w ?? (w = p === Se.Password);
|
|
3496
3496
|
const D = le(null), [N, T] = he(
|
|
3497
3497
|
f ?? p !== Se.Password
|
|
3498
3498
|
);
|
|
@@ -3551,10 +3551,10 @@ const Sd = Fe(function({
|
|
|
3551
3551
|
{
|
|
3552
3552
|
value: g,
|
|
3553
3553
|
type: p,
|
|
3554
|
-
onClearInput:
|
|
3554
|
+
onClearInput: y,
|
|
3555
3555
|
isContentVisible: N,
|
|
3556
3556
|
trailingElement: d,
|
|
3557
|
-
isVisibilityToggleEnabled:
|
|
3557
|
+
isVisibilityToggleEnabled: w,
|
|
3558
3558
|
onToggleButtonClick: P
|
|
3559
3559
|
}
|
|
3560
3560
|
)
|
|
@@ -3650,16 +3650,17 @@ const Cd = Fe(function({
|
|
|
3650
3650
|
isResizeEnabled: d,
|
|
3651
3651
|
required: f,
|
|
3652
3652
|
isContentVisible: g,
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3653
|
+
defaultValue: h,
|
|
3654
|
+
...x
|
|
3655
|
+
}, y) {
|
|
3656
|
+
const [w, p] = he(
|
|
3656
3657
|
g ?? !0
|
|
3657
3658
|
);
|
|
3658
3659
|
de(() => {
|
|
3659
|
-
|
|
3660
|
+
p(g ?? !0);
|
|
3660
3661
|
}, [g]);
|
|
3661
|
-
function
|
|
3662
|
-
|
|
3662
|
+
function S() {
|
|
3663
|
+
p((E) => !E);
|
|
3663
3664
|
}
|
|
3664
3665
|
return /* @__PURE__ */ o(
|
|
3665
3666
|
Br,
|
|
@@ -3676,7 +3677,7 @@ const Cd = Fe(function({
|
|
|
3676
3677
|
{
|
|
3677
3678
|
disabled: n || !w,
|
|
3678
3679
|
required: f,
|
|
3679
|
-
ref:
|
|
3680
|
+
ref: y,
|
|
3680
3681
|
className: b(
|
|
3681
3682
|
"text-area-container peer block min-h-[50px]",
|
|
3682
3683
|
ta,
|
|
@@ -3686,15 +3687,16 @@ const Cd = Fe(function({
|
|
|
3686
3687
|
w && d ? "resize-y" : "resize-none",
|
|
3687
3688
|
!w && "not-visible select-none text-transparent"
|
|
3688
3689
|
),
|
|
3689
|
-
|
|
3690
|
-
|
|
3690
|
+
defaultValue: w && h ? h : void 0,
|
|
3691
|
+
value: w && i ? i : void 0,
|
|
3692
|
+
...x
|
|
3691
3693
|
}
|
|
3692
3694
|
),
|
|
3693
3695
|
!w && /* @__PURE__ */ o("div", { className: "absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none", children: /* @__PURE__ */ o(Wc, { rows: 3, halfWidthRow: 3 }) }),
|
|
3694
3696
|
s && /* @__PURE__ */ o("span", { className: "absolute bottom-4 right-4 flex", children: /* @__PURE__ */ o(
|
|
3695
3697
|
ce,
|
|
3696
3698
|
{
|
|
3697
|
-
onClick:
|
|
3699
|
+
onClick: S,
|
|
3698
3700
|
className: "input-icon-color [&_svg]:h-5 [&_svg]:w-5",
|
|
3699
3701
|
tabIndex: -1,
|
|
3700
3702
|
children: w ? /* @__PURE__ */ o(Kn, {}) : /* @__PURE__ */ o(Xn, {})
|
|
@@ -3724,12 +3726,12 @@ function zc({
|
|
|
3724
3726
|
return /* @__PURE__ */ C(
|
|
3725
3727
|
"div",
|
|
3726
3728
|
{
|
|
3727
|
-
onClick: (
|
|
3729
|
+
onClick: (y) => {
|
|
3728
3730
|
if (i) {
|
|
3729
|
-
|
|
3731
|
+
y.preventDefault();
|
|
3730
3732
|
return;
|
|
3731
3733
|
}
|
|
3732
|
-
a == null || a(
|
|
3734
|
+
a == null || a(y);
|
|
3733
3735
|
},
|
|
3734
3736
|
className: b(
|
|
3735
3737
|
"inline-flex cursor-pointer flex-col items-center justify-center space-y-1"
|
|
@@ -3807,15 +3809,15 @@ function Ed({
|
|
|
3807
3809
|
copyText: g,
|
|
3808
3810
|
onOpen: h,
|
|
3809
3811
|
isCopyable: x,
|
|
3810
|
-
isExternal:
|
|
3811
|
-
isSelected:
|
|
3812
|
+
isExternal: y,
|
|
3813
|
+
isSelected: w,
|
|
3812
3814
|
isActive: p,
|
|
3813
3815
|
showSelected: S,
|
|
3814
3816
|
badgeTooltipText: E,
|
|
3815
3817
|
badgeTooltipPosition: D = He.Bottom
|
|
3816
3818
|
}) {
|
|
3817
3819
|
const N = i;
|
|
3818
|
-
return /* @__PURE__ */
|
|
3820
|
+
return /* @__PURE__ */ o(
|
|
3819
3821
|
"div",
|
|
3820
3822
|
{
|
|
3821
3823
|
className: b(
|
|
@@ -3825,29 +3827,27 @@ function Ed({
|
|
|
3825
3827
|
"opacity-60": a && S
|
|
3826
3828
|
}
|
|
3827
3829
|
),
|
|
3828
|
-
children: [
|
|
3829
|
-
/* @__PURE__ */
|
|
3830
|
-
|
|
3831
|
-
/* @__PURE__ */ C("div", { className: "flex
|
|
3832
|
-
/* @__PURE__ */
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
)
|
|
3847
|
-
] })
|
|
3830
|
+
children: /* @__PURE__ */ C("div", { className: "flex w-full items-center gap-x-3", children: [
|
|
3831
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(N, { isLocked: a }) }),
|
|
3832
|
+
/* @__PURE__ */ C("div", { className: "flex w-full min-w-0 flex-col items-start py-xs", children: [
|
|
3833
|
+
/* @__PURE__ */ C("div", { className: "flex w-full min-w-0 items-center space-x-2", children: [
|
|
3834
|
+
/* @__PURE__ */ o("p", { className: "account-title-color min-w-0 max-w-full truncate font-inter text-title-md", children: e }),
|
|
3835
|
+
n && r ? E ? /* @__PURE__ */ o(vt, { text: E, position: D, children: /* @__PURE__ */ o(Yt, { type: r, label: n }) }) : /* @__PURE__ */ o(Yt, { type: r, label: n }) : null
|
|
3836
|
+
] }),
|
|
3837
|
+
/* @__PURE__ */ o(
|
|
3838
|
+
Xl,
|
|
3839
|
+
{
|
|
3840
|
+
text: t,
|
|
3841
|
+
onCopySuccess: f,
|
|
3842
|
+
copyText: g,
|
|
3843
|
+
onOpen: h,
|
|
3844
|
+
isCopyable: x,
|
|
3845
|
+
isExternal: y
|
|
3846
|
+
}
|
|
3847
|
+
)
|
|
3848
3848
|
] }),
|
|
3849
|
-
/* @__PURE__ */ C("div", { className: "
|
|
3850
|
-
/* @__PURE__ */ C("div", { className: "account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:
|
|
3849
|
+
/* @__PURE__ */ C("div", { className: "ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5", children: [
|
|
3850
|
+
/* @__PURE__ */ C("div", { className: "account-icon-color flex items-center space-x-2 [&_button:not(.locked)]:invisible group-hover:[&_button:not(.locked)]:visible", children: [
|
|
3851
3851
|
c && /* @__PURE__ */ o(ce, { onClick: c, children: /* @__PURE__ */ o($n, {}) }),
|
|
3852
3852
|
s && d && (a ? /* @__PURE__ */ o("div", { className: "flex items-center", children: /* @__PURE__ */ o(
|
|
3853
3853
|
ce,
|
|
@@ -3859,9 +3859,9 @@ function Ed({
|
|
|
3859
3859
|
}
|
|
3860
3860
|
) }) : /* @__PURE__ */ o(ce, { onClick: s, testId: "account-lock", children: /* @__PURE__ */ o(ll, {}) }))
|
|
3861
3861
|
] }),
|
|
3862
|
-
S && /* @__PURE__ */ o(ce, { children:
|
|
3862
|
+
S && /* @__PURE__ */ o(ce, { children: w ? /* @__PURE__ */ o(tl, { className: "account-check-active-color h-5 w-5" }) : /* @__PURE__ */ o(zn, { className: "account-check-inactive-color h-5 w-5" }) })
|
|
3863
3863
|
] })
|
|
3864
|
-
]
|
|
3864
|
+
] })
|
|
3865
3865
|
}
|
|
3866
3866
|
);
|
|
3867
3867
|
}
|
|
@@ -3914,12 +3914,12 @@ const Od = Fe(
|
|
|
3914
3914
|
value: g,
|
|
3915
3915
|
dropdownPosition: h = Ht.Bottom,
|
|
3916
3916
|
size: x = $t.Default
|
|
3917
|
-
},
|
|
3918
|
-
const [
|
|
3917
|
+
}, y) => {
|
|
3918
|
+
const [w, p] = he(!1), S = P(g, c), E = le(null), D = S || s, N = x === $t.Small ? "px-sm" : "px-md", T = x === $t.Small ? "text-body-md" : "text-body-lg";
|
|
3919
3919
|
de(() => {
|
|
3920
|
-
e &&
|
|
3921
|
-
}, [e,
|
|
3922
|
-
if (!
|
|
3920
|
+
e && w && I();
|
|
3921
|
+
}, [e, w]), de(() => {
|
|
3922
|
+
if (!w) return;
|
|
3923
3923
|
const k = (q) => {
|
|
3924
3924
|
const ae = q.target;
|
|
3925
3925
|
E.current && !E.current.contains(ae) && I();
|
|
@@ -3927,7 +3927,7 @@ const Od = Fe(
|
|
|
3927
3927
|
return document.addEventListener("mousedown", k), () => {
|
|
3928
3928
|
document.removeEventListener("mousedown", k);
|
|
3929
3929
|
};
|
|
3930
|
-
}, [
|
|
3930
|
+
}, [w]);
|
|
3931
3931
|
function P(k, q = []) {
|
|
3932
3932
|
return q.find(
|
|
3933
3933
|
(ae) => typeof ae == "string" ? ae === k : ae.id === k
|
|
@@ -3956,7 +3956,7 @@ const Od = Fe(
|
|
|
3956
3956
|
/* @__PURE__ */ C(
|
|
3957
3957
|
ce,
|
|
3958
3958
|
{
|
|
3959
|
-
ref:
|
|
3959
|
+
ref: y,
|
|
3960
3960
|
onClick: L,
|
|
3961
3961
|
disabled: e,
|
|
3962
3962
|
className: b(
|
|
@@ -3982,14 +3982,14 @@ const Od = Fe(
|
|
|
3982
3982
|
hl,
|
|
3983
3983
|
{
|
|
3984
3984
|
className: b("select-icon-color transition-transform", {
|
|
3985
|
-
" rotate-180":
|
|
3985
|
+
" rotate-180": w
|
|
3986
3986
|
})
|
|
3987
3987
|
}
|
|
3988
3988
|
)
|
|
3989
3989
|
]
|
|
3990
3990
|
}
|
|
3991
3991
|
),
|
|
3992
|
-
|
|
3992
|
+
w && /* @__PURE__ */ o(
|
|
3993
3993
|
"div",
|
|
3994
3994
|
{
|
|
3995
3995
|
className: "fixed left-0 top-0 z-[49] bg-transparent",
|
|
@@ -4000,7 +4000,7 @@ const Od = Fe(
|
|
|
4000
4000
|
"div",
|
|
4001
4001
|
{
|
|
4002
4002
|
className: b("absolute z-50 min-w-full", {
|
|
4003
|
-
hidden: !
|
|
4003
|
+
hidden: !w,
|
|
4004
4004
|
"top-full": !h || h === Ht.Bottom,
|
|
4005
4005
|
"bottom-full": h === Ht.Top
|
|
4006
4006
|
}),
|
|
@@ -4037,9 +4037,9 @@ function Yc({
|
|
|
4037
4037
|
sortOrder: f
|
|
4038
4038
|
}) {
|
|
4039
4039
|
const g = () => {
|
|
4040
|
-
const
|
|
4041
|
-
s && s(t,
|
|
4042
|
-
}, h = "table-header-text-color", x = "text-label-lg",
|
|
4040
|
+
const w = f === lt.Asc ? lt.Desc : lt.Asc;
|
|
4041
|
+
s && s(t, w);
|
|
4042
|
+
}, h = "table-header-text-color", x = "text-label-lg", y = r ? f === lt.Asc ? /* @__PURE__ */ o(un, { className: "shrink-0" }) : f === lt.Desc ? /* @__PURE__ */ o(fl, { className: "shrink-0" }) : /* @__PURE__ */ o(un, { className: "invisible shrink-0 group-hover:visible" }) : null;
|
|
4043
4043
|
return /* @__PURE__ */ o(
|
|
4044
4044
|
"th",
|
|
4045
4045
|
{
|
|
@@ -4078,7 +4078,7 @@ function Yc({
|
|
|
4078
4078
|
children: e
|
|
4079
4079
|
}
|
|
4080
4080
|
),
|
|
4081
|
-
|
|
4081
|
+
y
|
|
4082
4082
|
]
|
|
4083
4083
|
}
|
|
4084
4084
|
)
|
|
@@ -4106,8 +4106,8 @@ function Ad({
|
|
|
4106
4106
|
type: c = Ne.Outlined,
|
|
4107
4107
|
renderSuggestion: s
|
|
4108
4108
|
}) {
|
|
4109
|
-
const d = le(null), f = le(null), [g, h] = he(!0), [x,
|
|
4110
|
-
function
|
|
4109
|
+
const d = le(null), f = le(null), [g, h] = he(!0), [x, y] = he(null);
|
|
4110
|
+
function w(L) {
|
|
4111
4111
|
const _ = L.target.value;
|
|
4112
4112
|
r(_);
|
|
4113
4113
|
}
|
|
@@ -4134,11 +4134,11 @@ function Ad({
|
|
|
4134
4134
|
c === Ne.Outlined ? "[&:not(.dark_*,.names_*)]:border-b-transparent" : "border-b-transparent"
|
|
4135
4135
|
) : c === Ne.Outlined ? "rounded-3xl border-b" : "rounded-full", E = Qc[c], D = qc[c], N = Jc[c], T = (L) => {
|
|
4136
4136
|
var _;
|
|
4137
|
-
n == null || n(L), r(""), h(!1),
|
|
4137
|
+
n == null || n(L), r(""), h(!1), y(null), (_ = d.current) == null || _.blur();
|
|
4138
4138
|
}, P = (L) => {
|
|
4139
|
-
t && (t == null ? void 0 : t.length) > 0 && (L.key === "ArrowDown" ? (L.preventDefault(),
|
|
4139
|
+
t && (t == null ? void 0 : t.length) > 0 && (L.key === "ArrowDown" ? (L.preventDefault(), y(
|
|
4140
4140
|
(_) => _ === null || _ >= t.length - 1 ? 0 : _ + 1
|
|
4141
|
-
)) : L.key === "ArrowUp" ? (L.preventDefault(),
|
|
4141
|
+
)) : L.key === "ArrowUp" ? (L.preventDefault(), y(
|
|
4142
4142
|
(_) => _ === null || _ <= 0 ? t.length - 1 : _ - 1
|
|
4143
4143
|
)) : L.key === "Enter" && (L.preventDefault(), x !== null && t[x] ? T(t[x]) : t.length === 1 && T(t[0])));
|
|
4144
4144
|
};
|
|
@@ -4158,7 +4158,7 @@ function Ad({
|
|
|
4158
4158
|
ref: d,
|
|
4159
4159
|
type: "text",
|
|
4160
4160
|
value: e,
|
|
4161
|
-
onChange:
|
|
4161
|
+
onChange: w,
|
|
4162
4162
|
onKeyDown: P,
|
|
4163
4163
|
onFocus: () => h(!0),
|
|
4164
4164
|
placeholder: a,
|
|
@@ -4186,7 +4186,7 @@ function Ad({
|
|
|
4186
4186
|
"div",
|
|
4187
4187
|
{
|
|
4188
4188
|
onClick: () => T(L),
|
|
4189
|
-
onMouseEnter: () =>
|
|
4189
|
+
onMouseEnter: () => y(_),
|
|
4190
4190
|
className: b(
|
|
4191
4191
|
"w-full cursor-pointer px-md py-sm",
|
|
4192
4192
|
x === _ ? "search-selected-index-bg-color" : ""
|
|
@@ -4571,7 +4571,7 @@ function Id({
|
|
|
4571
4571
|
onCopySuccess: f,
|
|
4572
4572
|
onCopyError: g
|
|
4573
4573
|
}) {
|
|
4574
|
-
const h = is[i], x = cs[c],
|
|
4574
|
+
const h = is[i], x = cs[c], y = ls[i], w = ss[c], p = ds[c], S = us[c];
|
|
4575
4575
|
async function E(D) {
|
|
4576
4576
|
if (navigator.clipboard && d)
|
|
4577
4577
|
try {
|
|
@@ -4587,7 +4587,7 @@ function Id({
|
|
|
4587
4587
|
"flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",
|
|
4588
4588
|
h,
|
|
4589
4589
|
x,
|
|
4590
|
-
|
|
4590
|
+
y
|
|
4591
4591
|
),
|
|
4592
4592
|
children: [
|
|
4593
4593
|
/* @__PURE__ */ C(
|
|
@@ -4606,7 +4606,7 @@ function Id({
|
|
|
4606
4606
|
}
|
|
4607
4607
|
),
|
|
4608
4608
|
/* @__PURE__ */ C("div", { className: "flex w-full flex-row items-baseline gap-xxs", children: [
|
|
4609
|
-
/* @__PURE__ */ o("span", { className: b("break-all",
|
|
4609
|
+
/* @__PURE__ */ o("span", { className: b("break-all", w), children: n }),
|
|
4610
4610
|
a && /* @__PURE__ */ o("span", { className: b("opacity-40", S), children: a }),
|
|
4611
4611
|
d && /* @__PURE__ */ o("div", { className: "self-center", children: /* @__PURE__ */ o(ce, { onClick: E, children: /* @__PURE__ */ o(Mr, { className: "display-stats-copy-icon-color" }) }) })
|
|
4612
4612
|
] })
|
|
@@ -4639,12 +4639,12 @@ function Pd({
|
|
|
4639
4639
|
a && e && /* @__PURE__ */ o(
|
|
4640
4640
|
ce,
|
|
4641
4641
|
{
|
|
4642
|
-
className: "visual-asset-icon-color absolute right-2 top-2 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5",
|
|
4642
|
+
className: "visual-asset-icon-color absolute right-2 top-2 z-10 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5",
|
|
4643
4643
|
onClick: c,
|
|
4644
4644
|
children: r
|
|
4645
4645
|
}
|
|
4646
4646
|
),
|
|
4647
|
-
a && n && /* @__PURE__ */ o("div", { className: "absolute bottom-0
|
|
4647
|
+
a && n && /* @__PURE__ */ o("div", { className: "absolute bottom-0 w-full p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100", children: /* @__PURE__ */ o("span", { className: "visual-asset-title-color break-words text-title-md", children: n }) })
|
|
4648
4648
|
]
|
|
4649
4649
|
}
|
|
4650
4650
|
);
|
|
@@ -4684,12 +4684,12 @@ function ms(e, t = []) {
|
|
|
4684
4684
|
const s = v.createContext(c), d = r.length;
|
|
4685
4685
|
r = [...r, c];
|
|
4686
4686
|
function f(h) {
|
|
4687
|
-
const { scope: x, children:
|
|
4688
|
-
return /* @__PURE__ */ o(p.Provider, { value: S, children:
|
|
4687
|
+
const { scope: x, children: y, ...w } = h, p = (x == null ? void 0 : x[e][d]) || s, S = v.useMemo(() => w, Object.values(w));
|
|
4688
|
+
return /* @__PURE__ */ o(p.Provider, { value: S, children: y });
|
|
4689
4689
|
}
|
|
4690
4690
|
function g(h, x) {
|
|
4691
|
-
const
|
|
4692
|
-
if (
|
|
4691
|
+
const y = (x == null ? void 0 : x[e][d]) || s, w = v.useContext(y);
|
|
4692
|
+
if (w) return w;
|
|
4693
4693
|
if (c !== void 0) return c;
|
|
4694
4694
|
throw new Error(`\`${h}\` must be used within \`${i}\``);
|
|
4695
4695
|
}
|
|
@@ -4861,7 +4861,7 @@ var Os = "DismissableLayer", Lr = "dismissableLayer.update", As = "dismissableLa
|
|
|
4861
4861
|
onInteractOutside: c,
|
|
4862
4862
|
onDismiss: s,
|
|
4863
4863
|
...d
|
|
4864
|
-
} = e, f = v.useContext(pa), [g, h] = v.useState(null), x = (g == null ? void 0 : g.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [,
|
|
4864
|
+
} = e, f = v.useContext(pa), [g, h] = v.useState(null), x = (g == null ? void 0 : g.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, y] = v.useState({}), w = Qe(t, (_) => h(_)), p = Array.from(f.layers), [S] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), E = p.indexOf(S), D = g ? p.indexOf(g) : -1, N = f.layersWithOutsidePointerEventsDisabled.size > 0, T = D >= E, P = Ls((_) => {
|
|
4865
4865
|
const I = _.target, k = [...f.branches].some((q) => q.contains(I));
|
|
4866
4866
|
!T || k || (a == null || a(_), c == null || c(_), _.defaultPrevented || s == null || s());
|
|
4867
4867
|
}, x), L = Is((_) => {
|
|
@@ -4878,13 +4878,13 @@ var Os = "DismissableLayer", Lr = "dismissableLayer.update", As = "dismissableLa
|
|
|
4878
4878
|
}, [g, x, r, f]), v.useEffect(() => () => {
|
|
4879
4879
|
g && (f.layers.delete(g), f.layersWithOutsidePointerEventsDisabled.delete(g), Cn());
|
|
4880
4880
|
}, [g, f]), v.useEffect(() => {
|
|
4881
|
-
const _ = () =>
|
|
4881
|
+
const _ = () => y({});
|
|
4882
4882
|
return document.addEventListener(Lr, _), () => document.removeEventListener(Lr, _);
|
|
4883
4883
|
}, []), /* @__PURE__ */ o(
|
|
4884
4884
|
Oe.div,
|
|
4885
4885
|
{
|
|
4886
4886
|
...d,
|
|
4887
|
-
ref:
|
|
4887
|
+
ref: w,
|
|
4888
4888
|
style: {
|
|
4889
4889
|
pointerEvents: N ? T ? "auto" : "none" : void 0,
|
|
4890
4890
|
...e.style
|
|
@@ -4970,7 +4970,7 @@ var yr = "focusScope.autoFocusOnMount", Sr = "focusScope.autoFocusOnUnmount", En
|
|
|
4970
4970
|
onMountAutoFocus: a,
|
|
4971
4971
|
onUnmountAutoFocus: i,
|
|
4972
4972
|
...c
|
|
4973
|
-
} = e, [s, d] = v.useState(null), f = Ye(a), g = Ye(i), h = v.useRef(null), x = Qe(t, (p) => d(p)),
|
|
4973
|
+
} = e, [s, d] = v.useState(null), f = Ye(a), g = Ye(i), h = v.useRef(null), x = Qe(t, (p) => d(p)), y = v.useRef({
|
|
4974
4974
|
paused: !1,
|
|
4975
4975
|
pause() {
|
|
4976
4976
|
this.paused = !0;
|
|
@@ -4982,11 +4982,11 @@ var yr = "focusScope.autoFocusOnMount", Sr = "focusScope.autoFocusOnUnmount", En
|
|
|
4982
4982
|
v.useEffect(() => {
|
|
4983
4983
|
if (n) {
|
|
4984
4984
|
let p = function(N) {
|
|
4985
|
-
if (
|
|
4985
|
+
if (y.paused || !s) return;
|
|
4986
4986
|
const T = N.target;
|
|
4987
4987
|
s.contains(T) ? h.current = T : Ie(h.current, { select: !0 });
|
|
4988
4988
|
}, S = function(N) {
|
|
4989
|
-
if (
|
|
4989
|
+
if (y.paused || !s) return;
|
|
4990
4990
|
const T = N.relatedTarget;
|
|
4991
4991
|
T !== null && (s.contains(T) || Ie(h.current, { select: !0 }));
|
|
4992
4992
|
}, E = function(N) {
|
|
@@ -5000,9 +5000,9 @@ var yr = "focusScope.autoFocusOnMount", Sr = "focusScope.autoFocusOnUnmount", En
|
|
|
5000
5000
|
document.removeEventListener("focusin", p), document.removeEventListener("focusout", S), D.disconnect();
|
|
5001
5001
|
};
|
|
5002
5002
|
}
|
|
5003
|
-
}, [n, s,
|
|
5003
|
+
}, [n, s, y.paused]), v.useEffect(() => {
|
|
5004
5004
|
if (s) {
|
|
5005
|
-
_n.add(
|
|
5005
|
+
_n.add(y);
|
|
5006
5006
|
const p = document.activeElement;
|
|
5007
5007
|
if (!s.contains(p)) {
|
|
5008
5008
|
const E = new CustomEvent(yr, En);
|
|
@@ -5011,23 +5011,23 @@ var yr = "focusScope.autoFocusOnMount", Sr = "focusScope.autoFocusOnUnmount", En
|
|
|
5011
5011
|
return () => {
|
|
5012
5012
|
s.removeEventListener(yr, f), setTimeout(() => {
|
|
5013
5013
|
const E = new CustomEvent(Sr, En);
|
|
5014
|
-
s.addEventListener(Sr, g), s.dispatchEvent(E), E.defaultPrevented || Ie(p ?? document.body, { select: !0 }), s.removeEventListener(Sr, g), _n.remove(
|
|
5014
|
+
s.addEventListener(Sr, g), s.dispatchEvent(E), E.defaultPrevented || Ie(p ?? document.body, { select: !0 }), s.removeEventListener(Sr, g), _n.remove(y);
|
|
5015
5015
|
}, 0);
|
|
5016
5016
|
};
|
|
5017
5017
|
}
|
|
5018
|
-
}, [s, f, g,
|
|
5019
|
-
const
|
|
5018
|
+
}, [s, f, g, y]);
|
|
5019
|
+
const w = v.useCallback(
|
|
5020
5020
|
(p) => {
|
|
5021
|
-
if (!r && !n ||
|
|
5021
|
+
if (!r && !n || y.paused) return;
|
|
5022
5022
|
const S = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, E = document.activeElement;
|
|
5023
5023
|
if (S && E) {
|
|
5024
5024
|
const D = p.currentTarget, [N, T] = Ms(D);
|
|
5025
5025
|
N && T ? !p.shiftKey && E === T ? (p.preventDefault(), r && Ie(N, { select: !0 })) : p.shiftKey && E === N && (p.preventDefault(), r && Ie(T, { select: !0 })) : E === D && p.preventDefault();
|
|
5026
5026
|
}
|
|
5027
5027
|
},
|
|
5028
|
-
[r, n,
|
|
5028
|
+
[r, n, y.paused]
|
|
5029
5029
|
);
|
|
5030
|
-
return /* @__PURE__ */ o(Oe.div, { tabIndex: -1, ...c, ref: x, onKeyDown:
|
|
5030
|
+
return /* @__PURE__ */ o(Oe.div, { tabIndex: -1, ...c, ref: x, onKeyDown: w });
|
|
5031
5031
|
});
|
|
5032
5032
|
wa.displayName = Ps;
|
|
5033
5033
|
function ks(e, { select: t = !1 } = {}) {
|
|
@@ -5128,14 +5128,14 @@ function Gs(e) {
|
|
|
5128
5128
|
}, [s]), Qt(() => {
|
|
5129
5129
|
const f = n.current, g = a.current;
|
|
5130
5130
|
if (g !== e) {
|
|
5131
|
-
const x = i.current,
|
|
5132
|
-
e ? d("MOUNT") :
|
|
5131
|
+
const x = i.current, y = Bt(f);
|
|
5132
|
+
e ? d("MOUNT") : y === "none" || (f == null ? void 0 : f.display) === "none" ? d("UNMOUNT") : d(g && x !== y ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
5133
5133
|
}
|
|
5134
5134
|
}, [e, d]), Qt(() => {
|
|
5135
5135
|
if (t) {
|
|
5136
5136
|
const f = (h) => {
|
|
5137
|
-
const
|
|
5138
|
-
h.target === t &&
|
|
5137
|
+
const y = Bt(n.current).includes(h.animationName);
|
|
5138
|
+
h.target === t && y && Pn.flushSync(() => d("ANIMATION_END"));
|
|
5139
5139
|
}, g = (h) => {
|
|
5140
5140
|
h.target === t && (i.current = Bt(n.current));
|
|
5141
5141
|
};
|
|
@@ -5321,11 +5321,11 @@ var Na = eu(), Nr = function() {
|
|
|
5321
5321
|
onScrollCapture: Nr,
|
|
5322
5322
|
onWheelCapture: Nr,
|
|
5323
5323
|
onTouchMoveCapture: Nr
|
|
5324
|
-
}), a = n[0], i = n[1], c = e.forwardProps, s = e.children, d = e.className, f = e.removeScrollBar, g = e.enabled, h = e.shards, x = e.sideCar,
|
|
5324
|
+
}), a = n[0], i = n[1], c = e.forwardProps, s = e.children, d = e.className, f = e.removeScrollBar, g = e.enabled, h = e.shards, x = e.sideCar, y = e.noIsolation, w = e.inert, p = e.allowPinchZoom, S = e.as, E = S === void 0 ? "div" : S, D = e.gapMode, N = Ca(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = x, P = qs([r, t]), L = Ce(Ce({}, N), a);
|
|
5325
5325
|
return v.createElement(
|
|
5326
5326
|
v.Fragment,
|
|
5327
5327
|
null,
|
|
5328
|
-
g && v.createElement(T, { sideCar: Na, removeScrollBar: f, shards: h, noIsolation:
|
|
5328
|
+
g && v.createElement(T, { sideCar: Na, removeScrollBar: f, shards: h, noIsolation: y, inert: w, setCallbacks: i, allowPinchZoom: !!p, lockRef: r, gapMode: D }),
|
|
5329
5329
|
c ? v.cloneElement(v.Children.only(s), Ce(Ce({}, L), { ref: P })) : v.createElement(E, Ce({}, L, { className: d, ref: P }), s)
|
|
5330
5330
|
);
|
|
5331
5331
|
});
|
|
@@ -5524,8 +5524,8 @@ var nt = Ir ? { passive: !1 } : !1, vu = function(e) {
|
|
|
5524
5524
|
}, yu = function(e, t, r, n, a) {
|
|
5525
5525
|
var i = wu(e, window.getComputedStyle(t).direction), c = i * n, s = r.target, d = t.contains(s), f = !1, g = c > 0, h = 0, x = 0;
|
|
5526
5526
|
do {
|
|
5527
|
-
var
|
|
5528
|
-
(
|
|
5527
|
+
var y = Ra(e, s), w = y[0], p = y[1], S = y[2], E = p - S - i * w;
|
|
5528
|
+
(w || E) && Aa(e, s) && (h += E, x += w), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
5529
5529
|
} while (
|
|
5530
5530
|
// portaled content
|
|
5531
5531
|
!d && s !== document.body || // self content
|
|
@@ -5620,12 +5620,12 @@ function Nu(e) {
|
|
|
5620
5620
|
}), document.removeEventListener("wheel", d, nt), document.removeEventListener("touchmove", d, nt), document.removeEventListener("touchstart", g, nt);
|
|
5621
5621
|
};
|
|
5622
5622
|
}, []);
|
|
5623
|
-
var
|
|
5623
|
+
var y = e.removeScrollBar, w = e.inert;
|
|
5624
5624
|
return v.createElement(
|
|
5625
5625
|
v.Fragment,
|
|
5626
5626
|
null,
|
|
5627
|
-
|
|
5628
|
-
|
|
5627
|
+
w ? v.createElement(i, { styles: Cu(a) }) : null,
|
|
5628
|
+
y ? v.createElement(mu, { gapMode: e.gapMode }) : null
|
|
5629
5629
|
);
|
|
5630
5630
|
}
|
|
5631
5631
|
function _u(e) {
|
|
@@ -5667,8 +5667,8 @@ var Au = function(e) {
|
|
|
5667
5667
|
g(x);
|
|
5668
5668
|
else
|
|
5669
5669
|
try {
|
|
5670
|
-
var
|
|
5671
|
-
ot.set(x, p), i.set(x, S), c.push(x), p === 1 &&
|
|
5670
|
+
var y = x.getAttribute(n), w = y !== null && y !== "false", p = (ot.get(x) || 0) + 1, S = (i.get(x) || 0) + 1;
|
|
5671
|
+
ot.set(x, p), i.set(x, S), c.push(x), p === 1 && w && Ut.set(x, !0), S === 1 && x.setAttribute(r, "true"), w || x.setAttribute(n, "true");
|
|
5672
5672
|
} catch (E) {
|
|
5673
5673
|
console.error("aria-hidden: cannot operate on ", x, E);
|
|
5674
5674
|
}
|
|
@@ -5676,8 +5676,8 @@ var Au = function(e) {
|
|
|
5676
5676
|
};
|
|
5677
5677
|
return g(t), s.clear(), Or++, function() {
|
|
5678
5678
|
c.forEach(function(h) {
|
|
5679
|
-
var x = ot.get(h) - 1,
|
|
5680
|
-
ot.set(h, x), i.set(h,
|
|
5679
|
+
var x = ot.get(h) - 1, y = i.get(h) - 1;
|
|
5680
|
+
ot.set(h, x), i.set(h, y), x || (Ut.has(h) || h.removeAttribute(n), Ut.delete(h)), y || h.removeAttribute(r);
|
|
5681
5681
|
}), Or--, Or || (ot = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Wt = {});
|
|
5682
5682
|
};
|
|
5683
5683
|
}, Tu = function(e, t, r) {
|
|
@@ -5977,10 +5977,10 @@ const Ku = v.forwardRef((e, t) => /* @__PURE__ */ o(
|
|
|
5977
5977
|
void 0
|
|
5978
5978
|
);
|
|
5979
5979
|
de(() => {
|
|
5980
|
-
const
|
|
5981
|
-
g(
|
|
5980
|
+
const w = t ? document.getElementById(t) : void 0;
|
|
5981
|
+
g(w ?? void 0);
|
|
5982
5982
|
}, [t]);
|
|
5983
|
-
const h = a === ct.Right ? "overflow-hidden right-0 h-screen top-0 w-full" : "overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl", x = a === ct.Right ? "md:w-96 max-w-[500px]" : i,
|
|
5983
|
+
const h = a === ct.Right ? "overflow-hidden right-0 h-screen top-0 w-full" : "overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl", x = a === ct.Right ? "md:w-96 max-w-[500px]" : i, y = a === ct.Right ? "h-screen" : "max-h-[80vh] h-full";
|
|
5984
5984
|
return /* @__PURE__ */ o(ju, { container: f, children: /* @__PURE__ */ C(Ku, { isFixedPosition: c, children: [
|
|
5985
5985
|
/* @__PURE__ */ o(qa, { showCloseIcon: r, position: a }),
|
|
5986
5986
|
/* @__PURE__ */ C(
|
|
@@ -5998,7 +5998,7 @@ const Ku = v.forwardRef((e, t) => /* @__PURE__ */ o(
|
|
|
5998
5998
|
/* @__PURE__ */ o($r, {}),
|
|
5999
5999
|
/* @__PURE__ */ o(Gu, {})
|
|
6000
6000
|
] }),
|
|
6001
|
-
/* @__PURE__ */ o("div", { className: b("flex flex-1 flex-col",
|
|
6001
|
+
/* @__PURE__ */ o("div", { className: b("flex flex-1 flex-col", y), children: n })
|
|
6002
6002
|
]
|
|
6003
6003
|
}
|
|
6004
6004
|
)
|