1mpacto-react-ui 0.0.118 → 0.0.119
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/index.mjs
CHANGED
@@ -2,7 +2,7 @@ var vC = Object.defineProperty;
|
|
2
2
|
var yC = (e, t, n) => t in e ? vC(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var ae = (e, t, n) => yC(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import * as W from "react";
|
5
|
-
import B, { useRef as me, useLayoutEffect as ji, useEffect as
|
5
|
+
import B, { useRef as me, useLayoutEffect as ji, useEffect as ke, useState as ye, useSyncExternalStore as xC, isValidElement as Se, cloneElement as Io, forwardRef as on, useImperativeHandle as CC, useCallback as Be, useMemo as _e, useContext as Tr, createContext as r1, Component as wC, Fragment as Pl, createElement as i1 } from "react";
|
6
6
|
import * as a1 from "react-dom";
|
7
7
|
import DC, { createPortal as hf } from "react-dom";
|
8
8
|
function Gn(e) {
|
@@ -3084,7 +3084,7 @@ function Ow() {
|
|
3084
3084
|
}
|
3085
3085
|
}
|
3086
3086
|
var pt = Array.isArray;
|
3087
|
-
function
|
3087
|
+
function Me(N) {
|
3088
3088
|
return pt(N);
|
3089
3089
|
}
|
3090
3090
|
function Re(N) {
|
@@ -3259,7 +3259,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
3259
3259
|
{
|
3260
3260
|
if (typeof N != "object")
|
3261
3261
|
return;
|
3262
|
-
if (
|
3262
|
+
if (Me(N))
|
3263
3263
|
for (var Q = 0; Q < N.length; Q++) {
|
3264
3264
|
var xe = N[Q];
|
3265
3265
|
rc(xe) && ig(xe, U);
|
@@ -3321,7 +3321,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
3321
3321
|
var Lt = lC();
|
3322
3322
|
Lt ? Ae += Lt : Ae += ng();
|
3323
3323
|
var bt;
|
3324
|
-
N === null ? bt = "null" :
|
3324
|
+
N === null ? bt = "null" : Me(N) ? bt = "array" : N !== void 0 && N.$$typeof === t ? (bt = "<" + (T(N.type) || "Unknown") + " />", Ae = " Did you accidentally export a JSX literal instead of a component?") : bt = typeof N, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", bt, Ae);
|
3325
3325
|
}
|
3326
3326
|
var yt = sC(N, U, Q, ze, Qe);
|
3327
3327
|
if (yt == null)
|
@@ -3330,7 +3330,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
3330
3330
|
var yn = U.children;
|
3331
3331
|
if (yn !== void 0)
|
3332
3332
|
if (xe)
|
3333
|
-
if (
|
3333
|
+
if (Me(yn)) {
|
3334
3334
|
for (var Ji = 0; Ji < yn.length; Ji++)
|
3335
3335
|
ag(yn[Ji], N);
|
3336
3336
|
Object.freeze && Object.freeze(yn);
|
@@ -3401,7 +3401,7 @@ function _u(e) {
|
|
3401
3401
|
D.target === d.current && (f(), v.removeEventListener("animationend", x), v.removeEventListener("animationcancel", x), b.current === 0 && D.type !== "animationcancel" && v.classList.remove(...y));
|
3402
3402
|
};
|
3403
3403
|
v.classList.add(...y), v.addEventListener("animationend", x), v.addEventListener("animationcancel", x);
|
3404
|
-
}, []),
|
3404
|
+
}, []), ke(() => {
|
3405
3405
|
const v = d.current, y = () => {
|
3406
3406
|
v.removeEventListener("animationend", y), i ? Nw(v, c, a) : c();
|
3407
3407
|
};
|
@@ -3529,7 +3529,7 @@ function Hw(e) {
|
|
3529
3529
|
x.style.transition = "transform 0.2s, opacity 0.2s", x.style.removeProperty("transform"), x.style.removeProperty("opacity");
|
3530
3530
|
}
|
3531
3531
|
}
|
3532
|
-
(f = Wt.get((h = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || f.setToggle(h.id, h.fn),
|
3532
|
+
(f = Wt.get((h = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || f.setToggle(h.id, h.fn), ke(() => {
|
3533
3533
|
if (e.pauseOnFocusLoss) return document.hasFocus() || p(), window.addEventListener("focus", g), window.addEventListener("blur", p), () => {
|
3534
3534
|
window.removeEventListener("focus", g), window.removeEventListener("blur", p);
|
3535
3535
|
};
|
@@ -3622,7 +3622,7 @@ Ye.loading = (e, t) => fo(e, Bl("default", { isLoading: !0, autoClose: !1, close
|
|
3622
3622
|
dd.delete(e);
|
3623
3623
|
};
|
3624
3624
|
}, Ye.play = (e) => xg(!0, e), Ye.pause = (e) => xg(!1, e);
|
3625
|
-
const Gw = typeof window < "u" ? ji :
|
3625
|
+
const Gw = typeof window < "u" ? ji : ke, Fs = (e) => {
|
3626
3626
|
let { theme: t, type: n, isLoading: r, ...i } = e;
|
3627
3627
|
return B.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...i });
|
3628
3628
|
}, sc = { info: function(e) {
|
@@ -6033,7 +6033,7 @@ const K5 = k5, q5 = F5, Q5 = M5, eS = T5, Mg = R5, tS = (e, t, n) => {
|
|
6033
6033
|
platform: a
|
6034
6034
|
});
|
6035
6035
|
};
|
6036
|
-
var bl = typeof document < "u" ? ji :
|
6036
|
+
var bl = typeof document < "u" ? ji : ke;
|
6037
6037
|
function zl(e, t) {
|
6038
6038
|
if (e === t)
|
6039
6039
|
return !0;
|
@@ -6241,7 +6241,7 @@ function di(e, t) {
|
|
6241
6241
|
});
|
6242
6242
|
i ? a() : Ng = requestAnimationFrame(a);
|
6243
6243
|
}
|
6244
|
-
var zt = typeof document < "u" ? ji :
|
6244
|
+
var zt = typeof document < "u" ? ji : ke;
|
6245
6245
|
function Ao() {
|
6246
6246
|
return Ao = Object.assign ? Object.assign.bind() : function(e) {
|
6247
6247
|
for (var t = 1; t < arguments.length; t++) {
|
@@ -7405,7 +7405,7 @@ const zS = "_popover_7cinv_1", GS = {
|
|
7405
7405
|
}), m = TS(A), C = MS(A), I = LS(A), { getReferenceProps: S, getFloatingProps: $ } = NS([m, C, I]), { styles: T, isMounted: R } = WS(A), k = (F) => {
|
7406
7406
|
w.setReference(F.currentTarget), D((M) => !M), x && g();
|
7407
7407
|
};
|
7408
|
-
|
7408
|
+
ke(() => {
|
7409
7409
|
a && o ? k({ currentTarget: o }) : a || D(!1);
|
7410
7410
|
}, [a, o]), CC(
|
7411
7411
|
t,
|
@@ -12281,9 +12281,9 @@ const XE = /* @__PURE__ */ We(
|
|
12281
12281
|
return zE(gm(Yi, ec, Z));
|
12282
12282
|
}
|
12283
12283
|
const pt = Jb(Ze, be, ee);
|
12284
|
-
let
|
12285
|
-
he ? X === 0 && K === 0 && pe > 0 ? (
|
12286
|
-
const Zt = gm(
|
12284
|
+
let Me, Re;
|
12285
|
+
he ? X === 0 && K === 0 && pe > 0 ? (Me = 0, Re = pe - 1) : (Me = pt * Kl((X + it) / (re + it)), Re = pt * hm((K + it) / (re + it)) - 1, Re = Dc(V - 1, po(Re, pt - 1)), Me = Dc(Re, po(0, Me))) : (Me = 0, Re = -1);
|
12286
|
+
const Zt = gm(Me, Re, Z), { top: Yt, bottom: Ut } = mm(ie, te, ue, Zt), ur = hm(V / pt), Es = ur * re + (ur - 1) * it - Ut;
|
12287
12287
|
return { items: Zt, offsetTop: Yt, offsetBottom: Es, top: Yt, bottom: Ut, itemHeight: re, itemWidth: be };
|
12288
12288
|
}
|
12289
12289
|
)
|
@@ -12771,7 +12771,7 @@ const r_ = /* @__PURE__ */ We(() => {
|
|
12771
12771
|
C(R - y);
|
12772
12772
|
}
|
12773
12773
|
};
|
12774
|
-
return
|
12774
|
+
return ke(() => {
|
12775
12775
|
const T = setTimeout($, x);
|
12776
12776
|
return window == null || window.addEventListener("resize", $), window == null || window.addEventListener("load", $), () => {
|
12777
12777
|
clearTimeout(T), window == null || window.removeEventListener("resize", $), window == null || window.removeEventListener("load", $);
|
@@ -12816,7 +12816,7 @@ const v_ = "_sorting_1tyuq_45", Bn = {
|
|
12816
12816
|
}, ea = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6673%2011.3333L8.00065%2014M8.00065%2014L5.33398%2011.3333M8.00065%2014V2'%20stroke='%23CFD8DC'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
12817
12817
|
function T8(e, t = null) {
|
12818
12818
|
const [n, r] = ye(!1);
|
12819
|
-
return
|
12819
|
+
return ke(() => {
|
12820
12820
|
let i = null, a = null;
|
12821
12821
|
const o = () => {
|
12822
12822
|
const s = i instanceof HTMLElement ? i.getBoundingClientRect().width : window.innerWidth, l = window.matchMedia(e.replace("WIDTH", s.toString()));
|
@@ -12878,7 +12878,7 @@ function k8(e, t = 0) {
|
|
12878
12878
|
[e, t]
|
12879
12879
|
);
|
12880
12880
|
}
|
12881
|
-
const Uf = typeof window < "u" ? ji :
|
12881
|
+
const Uf = typeof window < "u" ? ji : ke, M8 = (e, t) => {
|
12882
12882
|
const [n, r] = ye({
|
12883
12883
|
width: 0,
|
12884
12884
|
height: 0
|
@@ -12923,7 +12923,7 @@ const Uf = typeof window < "u" ? ji : Me, M8 = (e, t) => {
|
|
12923
12923
|
};
|
12924
12924
|
function B8(e) {
|
12925
12925
|
const [t, n] = ye(e), r = me(t);
|
12926
|
-
return
|
12926
|
+
return ke(() => {
|
12927
12927
|
r.current = t;
|
12928
12928
|
}, [t]), [t, n, r];
|
12929
12929
|
}
|
@@ -13387,7 +13387,7 @@ const D_ = ({ style: e, context: t, ...n }) => /* @__PURE__ */ E.jsx(
|
|
13387
13387
|
m(T - v);
|
13388
13388
|
}
|
13389
13389
|
};
|
13390
|
-
return
|
13390
|
+
return ke(() => {
|
13391
13391
|
const $ = setTimeout(S, y);
|
13392
13392
|
return window == null || window.addEventListener("resize", S), window == null || window.addEventListener("load", S), () => {
|
13393
13393
|
clearTimeout($), window == null || window.removeEventListener("resize", S), window == null || window.removeEventListener("load", S);
|
@@ -16612,7 +16612,7 @@ function rR(e) {
|
|
16612
16612
|
}, [f, h, d]), p = Be(function(b) {
|
16613
16613
|
b && (b.removeEventListener("wheel", d, !1), b.removeEventListener("touchstart", h, !1), b.removeEventListener("touchmove", f, !1));
|
16614
16614
|
}, [f, h, d]);
|
16615
|
-
return
|
16615
|
+
return ke(function() {
|
16616
16616
|
if (t) {
|
16617
16617
|
var b = u.current;
|
16618
16618
|
return g(b), function() {
|
@@ -16672,7 +16672,7 @@ function iR(e) {
|
|
16672
16672
|
}), u && Zm() && (u.removeEventListener("touchmove", zm, ta), l && (l.removeEventListener("touchstart", Xm, ta), l.removeEventListener("touchmove", Gm, ta)));
|
16673
16673
|
}
|
16674
16674
|
}, [r]);
|
16675
|
-
return
|
16675
|
+
return ke(function() {
|
16676
16676
|
if (t) {
|
16677
16677
|
var l = a.current;
|
16678
16678
|
return o(l), function() {
|
@@ -19749,7 +19749,7 @@ function Aa(e) {
|
|
19749
19749
|
};
|
19750
19750
|
}, [
|
19751
19751
|
i
|
19752
|
-
]),
|
19752
|
+
]), ke(() => {
|
19753
19753
|
let o = r.current;
|
19754
19754
|
o && (r.current = null, n(o));
|
19755
19755
|
}), i;
|
@@ -19969,7 +19969,7 @@ function rF() {
|
|
19969
19969
|
}, [
|
19970
19970
|
n
|
19971
19971
|
]);
|
19972
|
-
return
|
19972
|
+
return ke(() => r, [
|
19973
19973
|
r
|
19974
19974
|
]), {
|
19975
19975
|
addGlobalListener: t,
|
@@ -19992,9 +19992,9 @@ function Ih(e, t) {
|
|
19992
19992
|
}
|
19993
19993
|
function b0(e, t) {
|
19994
19994
|
const n = me(!0), r = me(null);
|
19995
|
-
|
19995
|
+
ke(() => (n.current = !0, () => {
|
19996
19996
|
n.current = !1;
|
19997
|
-
}), []),
|
19997
|
+
}), []), ke(() => {
|
19998
19998
|
n.current ? n.current = !1 : (!r.current || t.some((i, a) => !Object.is(i, r[a]))) && e(), r.current = t;
|
19999
19999
|
}, t);
|
20000
20000
|
}
|
@@ -20050,7 +20050,7 @@ function Sy(e) {
|
|
20050
20050
|
}
|
20051
20051
|
function Hc(e, t, n, r) {
|
20052
20052
|
let i = xr(n), a = n == null;
|
20053
|
-
|
20053
|
+
ke(() => {
|
20054
20054
|
if (a || !e.current) return;
|
20055
20055
|
let o = e.current;
|
20056
20056
|
return o.addEventListener(t, i, r), () => {
|
@@ -20117,7 +20117,7 @@ function Iy(e, t) {
|
|
20117
20117
|
}
|
20118
20118
|
function qo(e, t, n) {
|
20119
20119
|
let [r, i] = ye(e || t), a = me(e !== void 0), o = e !== void 0;
|
20120
|
-
|
20120
|
+
ke(() => {
|
20121
20121
|
let u = a.current;
|
20122
20122
|
u !== o && console.warn(`WARN: A component changed from ${u ? "controlled" : "uncontrolled"} to ${o ? "controlled" : "uncontrolled"}.`), a.current = o;
|
20123
20123
|
}, [
|
@@ -20426,7 +20426,7 @@ function Eh(e) {
|
|
20426
20426
|
y,
|
20427
20427
|
D
|
20428
20428
|
]);
|
20429
|
-
return
|
20429
|
+
return ke(() => () => {
|
20430
20430
|
var m;
|
20431
20431
|
c || Ys((m = p.current.target) !== null && m !== void 0 ? m : void 0);
|
20432
20432
|
}, [
|
@@ -20663,7 +20663,7 @@ function DF(e, t, n) {
|
|
20663
20663
|
return e = e || (n == null ? void 0 : n.target) instanceof i && !wF.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof a || (n == null ? void 0 : n.target) instanceof o && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof s && !yF[n.key]);
|
20664
20664
|
}
|
20665
20665
|
function SF(e, t, n) {
|
20666
|
-
Jd(),
|
20666
|
+
Jd(), ke(() => {
|
20667
20667
|
let r = (i, a) => {
|
20668
20668
|
DF(!!(n != null && n.isTextInput), i, a) && e(My());
|
20669
20669
|
};
|
@@ -20951,7 +20951,7 @@ function FF(e) {
|
|
20951
20951
|
}
|
20952
20952
|
function TF(e, t) {
|
20953
20953
|
let { focusProps: n } = Ay(e), { keyboardProps: r } = IF(e), i = an(n, r), a = FF(t), o = e.isDisabled ? {} : a, s = me(e.autoFocus);
|
20954
|
-
return
|
20954
|
+
return ke(() => {
|
20955
20955
|
s.current && t.current && Ny(t.current), s.current = !1;
|
20956
20956
|
}, [
|
20957
20957
|
t
|
@@ -21025,7 +21025,7 @@ function E0() {
|
|
21025
21025
|
}
|
21026
21026
|
function Gy() {
|
21027
21027
|
let e = by(), [t, n] = ye(Kd);
|
21028
|
-
return
|
21028
|
+
return ke(() => (ao.size === 0 && window.addEventListener("languagechange", E0), ao.add(n), () => {
|
21029
21029
|
ao.delete(n), ao.size === 0 && window.removeEventListener("languagechange", E0);
|
21030
21030
|
}), []), e ? {
|
21031
21031
|
locale: "en-US",
|
@@ -22132,7 +22132,7 @@ function UF(e, t, n) {
|
|
22132
22132
|
} else S.pointerType === "virtual" && (t.selectDate(r), t.setFocusedDate(r));
|
22133
22133
|
}
|
22134
22134
|
}), m = null;
|
22135
|
-
i || (m = xt(r, t.focusedDate) ? 0 : -1),
|
22135
|
+
i || (m = xt(r, t.focusedDate) ? 0 : -1), ke(() => {
|
22136
22136
|
c && n.current && (Xr(n.current), By() !== "pointer" && document.activeElement === n.current && lF(n.current, {
|
22137
22137
|
containingElement: iF(n.current)
|
22138
22138
|
}));
|
@@ -22248,7 +22248,7 @@ function qF(e) {
|
|
22248
22248
|
let I = u || a || v.current;
|
22249
22249
|
Xc(I, D.current) || (D.current = I, x(I));
|
22250
22250
|
}, [_, A] = ye(!1);
|
22251
|
-
return
|
22251
|
+
return ke(w), {
|
22252
22252
|
realtimeValidation: l || b || u || a || Si,
|
22253
22253
|
displayValidation: s === "native" ? l || b || y : l || b || u || a || y,
|
22254
22254
|
updateValidation(I) {
|
@@ -26264,7 +26264,7 @@ function d3(e) {
|
|
26264
26264
|
setCaretTimeout: null,
|
26265
26265
|
focusTimeout: null
|
26266
26266
|
});
|
26267
|
-
|
26267
|
+
ke(function() {
|
26268
26268
|
return P(!0), function() {
|
26269
26269
|
clearTimeout(M.current.setCaretTimeout), clearTimeout(M.current.focusTimeout);
|
26270
26270
|
};
|
@@ -26288,21 +26288,21 @@ function d3(e) {
|
|
26288
26288
|
}, G = function(ee) {
|
26289
26289
|
var re = ee.formattedValue;
|
26290
26290
|
re === void 0 && (re = "");
|
26291
|
-
var be = ee.input, Ze = ee.source, pt = ee.event,
|
26291
|
+
var be = ee.input, Ze = ee.source, pt = ee.event, Me = ee.numAsString, Re;
|
26292
26292
|
if (be) {
|
26293
26293
|
var Zt = ee.inputValue || be.value, Yt = Jc(be);
|
26294
26294
|
be.value = re, Re = Y(Zt, re, Yt), Re !== void 0 && j(be, Re, re);
|
26295
26295
|
}
|
26296
|
-
re !== m && T(L(re,
|
26296
|
+
re !== m && T(L(re, Me), { event: pt, source: Ze });
|
26297
26297
|
};
|
26298
|
-
|
26298
|
+
ke(function() {
|
26299
26299
|
var ee = $.current, re = ee.formattedValue, be = ee.numAsString;
|
26300
26300
|
(m !== re || C !== be) && T(L(m, C), {
|
26301
26301
|
event: void 0,
|
26302
26302
|
source: ns.props
|
26303
26303
|
});
|
26304
26304
|
}, [m, C]);
|
26305
|
-
var H = F.current ? Jc(F.current) : void 0, V = typeof window < "u" ? ji :
|
26305
|
+
var H = F.current ? Jc(F.current) : void 0, V = typeof window < "u" ? ji : ke;
|
26306
26306
|
V(function() {
|
26307
26307
|
var ee = F.current;
|
26308
26308
|
if (m !== $.current.formattedValue && ee) {
|
@@ -26311,7 +26311,7 @@ function d3(e) {
|
|
26311
26311
|
}
|
26312
26312
|
}, [m]);
|
26313
26313
|
var X = function(ee, re, be) {
|
26314
|
-
var Ze = re.target, pt = S.current ? tT(S.current, Ze.selectionEnd) : s3(m, ee),
|
26314
|
+
var Ze = re.target, pt = S.current ? tT(S.current, Ze.selectionEnd) : s3(m, ee), Me = Object.assign(Object.assign({}, pt), { lastValue: m }), Re = s(ee, Me), Zt = O(Re);
|
26315
26315
|
if (Re = s(Zt, void 0), d && !d(L(Zt, Re))) {
|
26316
26316
|
var Yt = re.target, Ut = Jc(Yt), ur = Y(ee, m, Ut);
|
26317
26317
|
return Yt.value = m, j(Yt, ur, m), !1;
|
@@ -26332,10 +26332,10 @@ function d3(e) {
|
|
26332
26332
|
var re = ee.target, be = re.value, Ze = X(be, ee, ns.event);
|
26333
26333
|
Ze && h(ee), S.current = void 0;
|
26334
26334
|
}, ue = function(ee) {
|
26335
|
-
var re = ee.target, be = ee.key, Ze = re.selectionStart, pt = re.selectionEnd,
|
26336
|
-
|
26335
|
+
var re = ee.target, be = ee.key, Ze = re.selectionStart, pt = re.selectionEnd, Me = re.value;
|
26336
|
+
Me === void 0 && (Me = "");
|
26337
26337
|
var Re;
|
26338
|
-
be === "ArrowLeft" || be === "Backspace" ? Re = Math.max(Ze - 1, 0) : be === "ArrowRight" ? Re = Math.min(Ze + 1,
|
26338
|
+
be === "ArrowLeft" || be === "Backspace" ? Re = Math.max(Ze - 1, 0) : be === "ArrowRight" ? Re = Math.min(Ze + 1, Me.length) : be === "Delete" && (Re = Ze);
|
26339
26339
|
var Zt = 0;
|
26340
26340
|
be === "Delete" && Ze === pt && (Zt = 1);
|
26341
26341
|
var Yt = be === "ArrowLeft" || be === "ArrowRight";
|
@@ -26346,15 +26346,15 @@ function d3(e) {
|
|
26346
26346
|
var Ut = Re;
|
26347
26347
|
if (Yt) {
|
26348
26348
|
var ur = be === "ArrowLeft" ? "left" : "right";
|
26349
|
-
Ut = z(
|
26350
|
-
} else be === "Delete" && !x(
|
26351
|
-
Ut !== Re && j(re, Ut,
|
26349
|
+
Ut = z(Me, Re, ur), Ut !== Re && ee.preventDefault();
|
26350
|
+
} else be === "Delete" && !x(Me[Re]) ? Ut = z(Me, Re, "right") : be === "Backspace" && !x(Me[Re]) && (Ut = z(Me, Re, "left"));
|
26351
|
+
Ut !== Re && j(re, Ut, Me), f(ee), K(re, Zt);
|
26352
26352
|
}, ie = function(ee) {
|
26353
26353
|
var re = ee.target, be = function() {
|
26354
|
-
var Ze = re.selectionStart, pt = re.selectionEnd,
|
26355
|
-
if (
|
26356
|
-
var Re = z(
|
26357
|
-
Re !== Ze && j(re, Re,
|
26354
|
+
var Ze = re.selectionStart, pt = re.selectionEnd, Me = re.value;
|
26355
|
+
if (Me === void 0 && (Me = ""), Ze === pt) {
|
26356
|
+
var Re = z(Me, Ze);
|
26357
|
+
Re !== Ze && j(re, Re, Me);
|
26358
26358
|
}
|
26359
26359
|
};
|
26360
26360
|
be(), requestAnimationFrame(function() {
|
@@ -26364,10 +26364,10 @@ function d3(e) {
|
|
26364
26364
|
ee.persist && ee.persist();
|
26365
26365
|
var re = ee.target, be = ee.currentTarget;
|
26366
26366
|
F.current = re, M.current.focusTimeout = setTimeout(function() {
|
26367
|
-
var Ze = re.selectionStart, pt = re.selectionEnd,
|
26368
|
-
|
26369
|
-
var Re = z(
|
26370
|
-
Re !== Ze && !(Ze === 0 && pt ===
|
26367
|
+
var Ze = re.selectionStart, pt = re.selectionEnd, Me = re.value;
|
26368
|
+
Me === void 0 && (Me = "");
|
26369
|
+
var Re = z(Me, Ze);
|
26370
|
+
Re !== Ze && !(Ze === 0 && pt === Me.length) && j(re, Re, Me), p(Object.assign(Object.assign({}, ee), { currentTarget: be }));
|
26371
26371
|
}, 0);
|
26372
26372
|
}, pe = function(ee) {
|
26373
26373
|
F.current = null, clearTimeout(M.current.focusTimeout), clearTimeout(M.current.setCaretTimeout), b(ee);
|
@@ -26689,7 +26689,7 @@ const q8 = ({ max: e, min: t, selectedText: n = "Rp0", onChange: r, onFocusInput
|
|
26689
26689
|
containerId: t = "portal-root"
|
26690
26690
|
}) => {
|
26691
26691
|
const [n, r] = ye(null);
|
26692
|
-
return
|
26692
|
+
return ke(() => {
|
26693
26693
|
let i = document.getElementById(t), a = !1;
|
26694
26694
|
return i || (i = document.createElement("div"), i.id = t, document.body.appendChild(i), a = !0), r(i), () => {
|
26695
26695
|
a && i && document.body.removeChild(i);
|
@@ -26793,35 +26793,42 @@ const eO = ({
|
|
26793
26793
|
className: a,
|
26794
26794
|
gap: o = 0,
|
26795
26795
|
gapStyle: s,
|
26796
|
-
|
26796
|
+
watchChildren: l = !1,
|
26797
|
+
...u
|
26797
26798
|
}) => {
|
26798
|
-
const [
|
26799
|
-
|
26800
|
-
|
26801
|
-
|
26802
|
-
|
26803
|
-
|
26804
|
-
|
26805
|
-
|
26806
|
-
|
26807
|
-
|
26808
|
-
|
26809
|
-
|
26810
|
-
|
26811
|
-
|
26812
|
-
|
26813
|
-
|
26799
|
+
const [c, d] = B.useState(
|
26800
|
+
l ? [] : e
|
26801
|
+
), [h, f] = B.useState(0), g = B.useRef(new Array(t).fill(null)), p = B.useRef(null), b = B.useCallback(() => {
|
26802
|
+
var _;
|
26803
|
+
const x = ((_ = p.current) == null ? void 0 : _.offsetWidth) ?? 0;
|
26804
|
+
let D = 0, w = 0;
|
26805
|
+
g.current.forEach((A, m) => {
|
26806
|
+
A && (D += A.offsetWidth, m > 0 && (D += o), D <= x && w++);
|
26807
|
+
}), d(B.Children.toArray(e).slice(0, w)), f(B.Children.count(e) - w);
|
26808
|
+
}, [c, o]);
|
26809
|
+
B.useEffect(() => (b(), window.addEventListener("resize", b), () => {
|
26810
|
+
window.removeEventListener("resize", b);
|
26811
|
+
}), [b]);
|
26812
|
+
const v = B.useMemo(() => B.Children.map(
|
26813
|
+
c,
|
26814
|
+
(x, D) => B.cloneElement(x, {
|
26815
|
+
ref: (w) => g.current[D] = w,
|
26816
|
+
key: `child-${D}`
|
26814
26817
|
})
|
26815
|
-
), [
|
26818
|
+
), [c]);
|
26819
|
+
ke(() => {
|
26820
|
+
l && d(e);
|
26821
|
+
}, [e]);
|
26822
|
+
const y = {
|
26816
26823
|
overflow: "hidden",
|
26817
26824
|
display: "flex",
|
26818
26825
|
flexWrap: "nowrap",
|
26819
26826
|
gap: s ?? 0,
|
26820
26827
|
...i
|
26821
26828
|
};
|
26822
|
-
return n && (
|
26823
|
-
/* @__PURE__ */ E.jsx("div", { ref:
|
26824
|
-
|
26829
|
+
return n && (y.maxWidth = n), /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
26830
|
+
/* @__PURE__ */ E.jsx("div", { ref: p, style: y, className: a ?? "", ...u, children: v }),
|
26831
|
+
h > 0 && /* @__PURE__ */ E.jsx(E.Fragment, { children: r(h) })
|
26825
26832
|
] });
|
26826
26833
|
}, _T = "_container_1wopr_1", $T = "_image_1wopr_5", hr = {
|
26827
26834
|
container: _T,
|
@@ -34350,22 +34357,22 @@ function NB(e, t) {
|
|
34350
34357
|
}, b = () => {
|
34351
34358
|
qp(t, null), g.current && (g.current.destroy(), g.current = null);
|
34352
34359
|
};
|
34353
|
-
return
|
34360
|
+
return ke(() => {
|
34354
34361
|
!i && g.current && l && BB(g.current, l);
|
34355
34362
|
}, [
|
34356
34363
|
i,
|
34357
34364
|
l
|
34358
|
-
]),
|
34365
|
+
]), ke(() => {
|
34359
34366
|
!i && g.current && q3(g.current.config.data, s.labels);
|
34360
34367
|
}, [
|
34361
34368
|
i,
|
34362
34369
|
s.labels
|
34363
|
-
]),
|
34370
|
+
]), ke(() => {
|
34364
34371
|
!i && g.current && s.datasets && Q3(g.current.config.data, s.datasets, a);
|
34365
34372
|
}, [
|
34366
34373
|
i,
|
34367
34374
|
s.datasets
|
34368
|
-
]),
|
34375
|
+
]), ke(() => {
|
34369
34376
|
g.current && (i ? (b(), setTimeout(p)) : g.current.update(d));
|
34370
34377
|
}, [
|
34371
34378
|
i,
|
@@ -34373,11 +34380,11 @@ function NB(e, t) {
|
|
34373
34380
|
s.labels,
|
34374
34381
|
s.datasets,
|
34375
34382
|
d
|
34376
|
-
]),
|
34383
|
+
]), ke(() => {
|
34377
34384
|
g.current && (b(), setTimeout(p));
|
34378
34385
|
}, [
|
34379
34386
|
o
|
34380
|
-
]),
|
34387
|
+
]), ke(() => (p(), () => b()), []), /* @__PURE__ */ B.createElement("canvas", Object.assign({
|
34381
34388
|
ref: f,
|
34382
34389
|
role: "img",
|
34383
34390
|
height: n,
|
@@ -34856,7 +34863,7 @@ const WB = "_container_1szxn_1", zB = "_files_1szxn_4", GB = "_file_1szxn_4", la
|
|
34856
34863
|
}
|
34857
34864
|
}, R = () => {
|
34858
34865
|
var M;
|
34859
|
-
y.value
|
34866
|
+
["", void 0, null].includes(y.value) || ["", void 0, null].includes((M = x.current) == null ? void 0 : M.value) ? (I(!1), v && setTimeout(() => {
|
34860
34867
|
var z, Y;
|
34861
34868
|
const O = ((z = x.current) == null ? void 0 : z.offsetHeight) ?? 0, L = ((Y = w.current) == null ? void 0 : Y.offsetHeight) ?? 0, j = (O - L) / 2;
|
34862
34869
|
$(j);
|