@iccandle/reactjs-widget 0.3.1 → 0.3.2
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/widget-iccandle.cjs +4 -4
- package/dist/widget-iccandle.js +214 -210
- package/package.json +1 -1
package/dist/widget-iccandle.js
CHANGED
|
@@ -554,7 +554,7 @@ function Vd(e) {
|
|
|
554
554
|
}
|
|
555
555
|
const Kd = (e) => {
|
|
556
556
|
var t, n, i, r, a, o, s, u, c;
|
|
557
|
-
const { invert: d, toast: l, unstyled: f, interacting: m, setHeights: p, visibleToasts: y, heights: g, index: P, toasts: w, expanded: A, removeToast: x, defaultRichColors: b, closeButton: C, style: v, cancelButtonStyle: S, actionButtonStyle: M, className: _ = "", descriptionClassName: q = "", duration: z, position: B, gap: W, expandByDefault: ee, classNames: H, icons: K, closeButtonAriaLabel: J = "Close toast" } = e, [oe, k] = Y.useState(null), [T, I] = Y.useState(null), [O, R] = Y.useState(!1), [j, E] = Y.useState(!1), [L, V] = Y.useState(!1), [te, ae] = Y.useState(!1), [fe, X] = Y.useState(!1), [
|
|
557
|
+
const { invert: d, toast: l, unstyled: f, interacting: m, setHeights: p, visibleToasts: y, heights: g, index: P, toasts: w, expanded: A, removeToast: x, defaultRichColors: b, closeButton: C, style: v, cancelButtonStyle: S, actionButtonStyle: M, className: _ = "", descriptionClassName: q = "", duration: z, position: B, gap: W, expandByDefault: ee, classNames: H, icons: K, closeButtonAriaLabel: J = "Close toast" } = e, [oe, k] = Y.useState(null), [T, I] = Y.useState(null), [O, R] = Y.useState(!1), [j, E] = Y.useState(!1), [L, V] = Y.useState(!1), [te, ae] = Y.useState(!1), [fe, X] = Y.useState(!1), [ve, he] = Y.useState(0), [Te, Oe] = Y.useState(0), dt = Y.useRef(l.duration || z || Ao), wt = Y.useRef(null), Ae = Y.useRef(null), Vt = P === 0, N = P + 1 <= y, D = l.type, F = l.dismissible !== !1, ne = l.className || "", $ = l.descriptionClassName || "", Z = Y.useMemo(() => g.findIndex((ge) => ge.toastId === l.id) || 0, [
|
|
558
558
|
g,
|
|
559
559
|
l.id
|
|
560
560
|
]), le = Y.useMemo(() => {
|
|
@@ -563,10 +563,10 @@ const Kd = (e) => {
|
|
|
563
563
|
}, [
|
|
564
564
|
l.closeButton,
|
|
565
565
|
C
|
|
566
|
-
]),
|
|
566
|
+
]), Pe = Y.useMemo(() => l.duration || z || Ao, [
|
|
567
567
|
l.duration,
|
|
568
568
|
z
|
|
569
|
-
]),
|
|
569
|
+
]), xe = Y.useRef(0), Fe = Y.useRef(0), Ct = Y.useRef(0), tt = Y.useRef(null), [ei, vn] = B.split("-"), tn = Y.useMemo(() => g.reduce((ge, ze, je) => je >= Z ? ge : ge + ze.height, 0), [
|
|
570
570
|
g,
|
|
571
571
|
Z
|
|
572
572
|
]), En = Od(), Mn = l.invert || d, Kt = D === "loading";
|
|
@@ -574,9 +574,9 @@ const Kd = (e) => {
|
|
|
574
574
|
Z,
|
|
575
575
|
tn
|
|
576
576
|
]), Y.useEffect(() => {
|
|
577
|
-
dt.current =
|
|
577
|
+
dt.current = Pe;
|
|
578
578
|
}, [
|
|
579
|
-
|
|
579
|
+
Pe
|
|
580
580
|
]), Y.useEffect(() => {
|
|
581
581
|
R(!0);
|
|
582
582
|
}, []), Y.useEffect(() => {
|
|
@@ -635,12 +635,12 @@ const Kd = (e) => {
|
|
|
635
635
|
if (l.promise && D === "loading" || l.duration === 1 / 0 || l.type === "loading") return;
|
|
636
636
|
let ge;
|
|
637
637
|
return A || m || En ? (() => {
|
|
638
|
-
if (Ct.current <
|
|
639
|
-
const nt = (/* @__PURE__ */ new Date()).getTime() -
|
|
638
|
+
if (Ct.current < xe.current) {
|
|
639
|
+
const nt = (/* @__PURE__ */ new Date()).getTime() - xe.current;
|
|
640
640
|
dt.current = dt.current - nt;
|
|
641
641
|
}
|
|
642
642
|
Ct.current = (/* @__PURE__ */ new Date()).getTime();
|
|
643
|
-
})() : dt.current !== 1 / 0 && (
|
|
643
|
+
})() : dt.current !== 1 / 0 && (xe.current = (/* @__PURE__ */ new Date()).getTime(), ge = setTimeout(() => {
|
|
644
644
|
l.onAutoClose == null || l.onAutoClose.call(l, l), at();
|
|
645
645
|
}, dt.current)), () => clearTimeout(ge);
|
|
646
646
|
}, [
|
|
@@ -700,7 +700,7 @@ const Kd = (e) => {
|
|
|
700
700
|
"--index": P,
|
|
701
701
|
"--toasts-before": P,
|
|
702
702
|
"--z-index": w.length - P,
|
|
703
|
-
"--offset": `${j ?
|
|
703
|
+
"--offset": `${j ? ve : Fe.current}px`,
|
|
704
704
|
"--initial-height": ee ? "auto" : `${Te}px`,
|
|
705
705
|
...v,
|
|
706
706
|
...l.style
|
|
@@ -1082,8 +1082,8 @@ function Qd() {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function x(X) {
|
|
1084
1084
|
if (typeof X == "object" && X !== null) {
|
|
1085
|
-
var
|
|
1086
|
-
switch (
|
|
1085
|
+
var ve = X.$$typeof;
|
|
1086
|
+
switch (ve) {
|
|
1087
1087
|
case t:
|
|
1088
1088
|
var he = X.type;
|
|
1089
1089
|
switch (he) {
|
|
@@ -1104,11 +1104,11 @@ function Qd() {
|
|
|
1104
1104
|
case o:
|
|
1105
1105
|
return Te;
|
|
1106
1106
|
default:
|
|
1107
|
-
return
|
|
1107
|
+
return ve;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
case n:
|
|
1111
|
-
return
|
|
1111
|
+
return ve;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
@@ -1328,11 +1328,11 @@ function th() {
|
|
|
1328
1328
|
);
|
|
1329
1329
|
throw X.name = "Invariant Violation", X;
|
|
1330
1330
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1331
|
-
var
|
|
1332
|
-
!T[
|
|
1331
|
+
var ve = V + ":" + L;
|
|
1332
|
+
!T[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1333
1333
|
I < 3 && (a(
|
|
1334
1334
|
"You are manually calling a React.PropTypes validation function for the `" + ae + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1335
|
-
), T[
|
|
1335
|
+
), T[ve] = !0, I++);
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
return E[L] == null ? j ? E[L] === null ? new y("The " + te + " `" + ae + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new y("The " + te + " `" + ae + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : k(E, L, V, te, ae);
|
|
@@ -1417,8 +1417,8 @@ function th() {
|
|
|
1417
1417
|
if (p(L, k[V]))
|
|
1418
1418
|
return null;
|
|
1419
1419
|
var te = JSON.stringify(k, function(fe, X) {
|
|
1420
|
-
var
|
|
1421
|
-
return
|
|
1420
|
+
var ve = K(X);
|
|
1421
|
+
return ve === "symbol" ? String(X) : X;
|
|
1422
1422
|
});
|
|
1423
1423
|
return new y("Invalid " + j + " `" + E + "` of value `" + String(L) + "` " + ("supplied to `" + R + "`, expected one of " + te + "."));
|
|
1424
1424
|
}
|
|
@@ -1458,8 +1458,8 @@ function th() {
|
|
|
1458
1458
|
return null;
|
|
1459
1459
|
X.data && i(X.data, "expectedType") && te.push(X.data.expectedType);
|
|
1460
1460
|
}
|
|
1461
|
-
var
|
|
1462
|
-
return new y("Invalid " + L + " `" + V + "` supplied to " + ("`" + E + "`" +
|
|
1461
|
+
var ve = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
1462
|
+
return new y("Invalid " + L + " `" + V + "` supplied to " + ("`" + E + "`" + ve + "."));
|
|
1463
1463
|
}
|
|
1464
1464
|
return g(O);
|
|
1465
1465
|
}
|
|
@@ -4614,22 +4614,22 @@ Le.getAdapter = Kl.getAdapter;
|
|
|
4614
4614
|
Le.HttpStatusCode = ca;
|
|
4615
4615
|
Le.default = Le;
|
|
4616
4616
|
const {
|
|
4617
|
-
Axios:
|
|
4618
|
-
AxiosError:
|
|
4619
|
-
CanceledError:
|
|
4620
|
-
isCancel:
|
|
4621
|
-
CancelToken:
|
|
4622
|
-
VERSION:
|
|
4623
|
-
all:
|
|
4624
|
-
Cancel:
|
|
4617
|
+
Axios: AT,
|
|
4618
|
+
AxiosError: NT,
|
|
4619
|
+
CanceledError: DT,
|
|
4620
|
+
isCancel: RT,
|
|
4621
|
+
CancelToken: ET,
|
|
4622
|
+
VERSION: MT,
|
|
4623
|
+
all: OT,
|
|
4624
|
+
Cancel: IT,
|
|
4625
4625
|
isAxiosError: pm,
|
|
4626
|
-
spread:
|
|
4627
|
-
toFormData:
|
|
4628
|
-
AxiosHeaders:
|
|
4629
|
-
HttpStatusCode:
|
|
4630
|
-
formToJSON:
|
|
4631
|
-
getAdapter:
|
|
4632
|
-
mergeConfig:
|
|
4626
|
+
spread: LT,
|
|
4627
|
+
toFormData: FT,
|
|
4628
|
+
AxiosHeaders: GT,
|
|
4629
|
+
HttpStatusCode: BT,
|
|
4630
|
+
formToJSON: jT,
|
|
4631
|
+
getAdapter: UT,
|
|
4632
|
+
mergeConfig: HT
|
|
4633
4633
|
} = Le, Ya = "https://api.iccandle.ai", mm = "Authorization", ds = "An unknown error occurred", cn = "https://embed-iccandle-app.iccandle.ai", Cn = "tv:clicked-news-event", tr = "tv:selected-news-events", Hn = "iccandle_token", Et = 100, fm = 100, gm = [
|
|
4634
4634
|
"1",
|
|
4635
4635
|
"5",
|
|
@@ -5679,14 +5679,14 @@ function Nb({
|
|
|
5679
5679
|
b?.(!0);
|
|
5680
5680
|
const he = u[0].timestamp, Te = u[u.length - 1].timestamp, Oe = Te > 1e12 ? Math.floor(Te / 1e3) : Te, dt = he > 1e12 ? Math.floor(he / 1e3) : he;
|
|
5681
5681
|
if (s) {
|
|
5682
|
-
const $ = s.activeChart(), Z = zn(a), le = Oe - (Et * Z + Z * i + Z * 100),
|
|
5682
|
+
const $ = s.activeChart(), Z = zn(a), le = Oe - (Et * Z + Z * i + Z * 100), Pe = Oe + Et / 3 * Z;
|
|
5683
5683
|
try {
|
|
5684
5684
|
await $.setVisibleRange({
|
|
5685
5685
|
from: le,
|
|
5686
|
-
to:
|
|
5686
|
+
to: Pe
|
|
5687
5687
|
});
|
|
5688
|
-
} catch (
|
|
5689
|
-
console.error("Error setting visible range:",
|
|
5688
|
+
} catch (xe) {
|
|
5689
|
+
console.error("Error setting visible range:", xe);
|
|
5690
5690
|
}
|
|
5691
5691
|
}
|
|
5692
5692
|
let wt;
|
|
@@ -5838,7 +5838,7 @@ function Nb({
|
|
|
5838
5838
|
min: Ht.min,
|
|
5839
5839
|
max: Xi,
|
|
5840
5840
|
custom: Ht.custom.filter((he) => he >= di)
|
|
5841
|
-
},
|
|
5841
|
+
}, ve = !P || w || J;
|
|
5842
5842
|
return M ? null : /* @__PURE__ */ h.jsx(
|
|
5843
5843
|
ch,
|
|
5844
5844
|
{
|
|
@@ -5944,20 +5944,20 @@ function Nb({
|
|
|
5944
5944
|
{
|
|
5945
5945
|
type: "button",
|
|
5946
5946
|
onClick: V,
|
|
5947
|
-
disabled:
|
|
5947
|
+
disabled: ve,
|
|
5948
5948
|
className: "iccandle-scanner-popup__action-btn",
|
|
5949
5949
|
children: [
|
|
5950
5950
|
/* @__PURE__ */ h.jsx(
|
|
5951
5951
|
Dl,
|
|
5952
5952
|
{
|
|
5953
5953
|
size: 20,
|
|
5954
|
-
color:
|
|
5954
|
+
color: ve ? "#9ca3af" : "#ffb84d"
|
|
5955
5955
|
}
|
|
5956
5956
|
),
|
|
5957
5957
|
W && /* @__PURE__ */ h.jsx(
|
|
5958
5958
|
"div",
|
|
5959
5959
|
{
|
|
5960
|
-
className:
|
|
5960
|
+
className: ve ? "text-theme-color" : "iccandle-scanner-popup__label",
|
|
5961
5961
|
children: I("Selector.scan")
|
|
5962
5962
|
}
|
|
5963
5963
|
)
|
|
@@ -5971,21 +5971,21 @@ function Nb({
|
|
|
5971
5971
|
{
|
|
5972
5972
|
type: "button",
|
|
5973
5973
|
onClick: te,
|
|
5974
|
-
disabled:
|
|
5974
|
+
disabled: ve,
|
|
5975
5975
|
className: "iccandle-scanner-popup__action-btn",
|
|
5976
5976
|
children: [
|
|
5977
5977
|
/* @__PURE__ */ h.jsx(
|
|
5978
5978
|
_a,
|
|
5979
5979
|
{
|
|
5980
5980
|
size: 20,
|
|
5981
|
-
color:
|
|
5982
|
-
stroke:
|
|
5981
|
+
color: ve ? "#9ca3af" : "#ffb84d",
|
|
5982
|
+
stroke: ve ? "#9ca3af" : "#ffb84d"
|
|
5983
5983
|
}
|
|
5984
5984
|
),
|
|
5985
5985
|
W && /* @__PURE__ */ h.jsx(
|
|
5986
5986
|
"div",
|
|
5987
5987
|
{
|
|
5988
|
-
className:
|
|
5988
|
+
className: ve ? "text-theme-color" : "iccandle-scanner-popup__label",
|
|
5989
5989
|
children: I("Layout.headerNav.patternShortTitle")
|
|
5990
5990
|
}
|
|
5991
5991
|
)
|
|
@@ -6464,12 +6464,12 @@ const Mb = (e, t) => {
|
|
|
6464
6464
|
}, $b = [], Qe = (e) => {
|
|
6465
6465
|
const t = (n) => n[e] || $b;
|
|
6466
6466
|
return t.isThemeGetter = !0, t;
|
|
6467
|
-
}, gc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ev = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, tv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nv = /\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$/, iv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, rv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, av = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, sn = (e) => ev.test(e),
|
|
6467
|
+
}, gc = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yc = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ev = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, tv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nv = /\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$/, iv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, rv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, av = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, sn = (e) => ev.test(e), we = (e) => !!e && !Number.isNaN(Number(e)), ln = (e) => !!e && Number.isInteger(Number(e)), Zr = (e) => e.endsWith("%") && we(e.slice(0, -1)), Jt = (e) => tv.test(e), bc = () => !0, ov = (e) => (
|
|
6468
6468
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
6469
6469
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
6470
6470
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
6471
6471
|
nv.test(e) && !iv.test(e)
|
|
6472
|
-
), Va = () => !1, sv = (e) => rv.test(e), lv = (e) => av.test(e), cv = (e) => !se(e) && !ce(e), uv = (e) => bn(e, xc, Va), se = (e) => gc.test(e), xn = (e) => bn(e, Sc, ov), ws = (e) => bn(e, bv,
|
|
6472
|
+
), Va = () => !1, sv = (e) => rv.test(e), lv = (e) => av.test(e), cv = (e) => !se(e) && !ce(e), uv = (e) => bn(e, xc, Va), se = (e) => gc.test(e), xn = (e) => bn(e, Sc, ov), ws = (e) => bn(e, bv, we), dv = (e) => bn(e, Tc, bc), hv = (e) => bn(e, Pc, Va), xs = (e) => bn(e, vc, Va), pv = (e) => bn(e, wc, lv), zi = (e) => bn(e, kc, sv), ce = (e) => yc.test(e), si = (e) => Rn(e, Sc), mv = (e) => Rn(e, Pc), Ss = (e) => Rn(e, vc), fv = (e) => Rn(e, xc), gv = (e) => Rn(e, wc), Yi = (e) => Rn(e, kc, !0), yv = (e) => Rn(e, Tc, !0), bn = (e, t, n) => {
|
|
6473
6473
|
const i = gc.exec(e);
|
|
6474
6474
|
return i ? i[1] ? t(i[1]) : n(i[2]) : !1;
|
|
6475
6475
|
}, Rn = (e, t, n = !1) => {
|
|
@@ -6510,14 +6510,14 @@ const Mb = (e, t) => {
|
|
|
6510
6510
|
c,
|
|
6511
6511
|
ce,
|
|
6512
6512
|
se
|
|
6513
|
-
], E = () => ["",
|
|
6513
|
+
], E = () => ["", we, si, xn], L = () => ["solid", "dashed", "dotted", "double"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => [we, Zr, Ss, xs], ae = () => [
|
|
6514
6514
|
// Deprecated since Tailwind CSS v4.0.0
|
|
6515
6515
|
"",
|
|
6516
6516
|
"none",
|
|
6517
6517
|
p,
|
|
6518
6518
|
ce,
|
|
6519
6519
|
se
|
|
6520
|
-
], fe = () => ["none",
|
|
6520
|
+
], fe = () => ["none", we, ce, se], X = () => ["none", we, ce, se], ve = () => [we, ce, se], he = () => [sn, "full", ...S()];
|
|
6521
6521
|
return {
|
|
6522
6522
|
cacheSize: 500,
|
|
6523
6523
|
theme: {
|
|
@@ -6536,7 +6536,7 @@ const Mb = (e, t) => {
|
|
|
6536
6536
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
6537
6537
|
radius: [Jt],
|
|
6538
6538
|
shadow: [Jt],
|
|
6539
|
-
spacing: ["px",
|
|
6539
|
+
spacing: ["px", we],
|
|
6540
6540
|
text: [Jt],
|
|
6541
6541
|
"text-shadow": [Jt],
|
|
6542
6542
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -6563,7 +6563,7 @@ const Mb = (e, t) => {
|
|
|
6563
6563
|
* @see https://tailwindcss.com/docs/columns
|
|
6564
6564
|
*/
|
|
6565
6565
|
columns: [{
|
|
6566
|
-
columns: [
|
|
6566
|
+
columns: [we, se, ce, s]
|
|
6567
6567
|
}],
|
|
6568
6568
|
/**
|
|
6569
6569
|
* Break After
|
|
@@ -6820,21 +6820,21 @@ const Mb = (e, t) => {
|
|
|
6820
6820
|
* @see https://tailwindcss.com/docs/flex
|
|
6821
6821
|
*/
|
|
6822
6822
|
flex: [{
|
|
6823
|
-
flex: [
|
|
6823
|
+
flex: [we, sn, "auto", "initial", "none", se]
|
|
6824
6824
|
}],
|
|
6825
6825
|
/**
|
|
6826
6826
|
* Flex Grow
|
|
6827
6827
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
6828
6828
|
*/
|
|
6829
6829
|
grow: [{
|
|
6830
|
-
grow: ["",
|
|
6830
|
+
grow: ["", we, ce, se]
|
|
6831
6831
|
}],
|
|
6832
6832
|
/**
|
|
6833
6833
|
* Flex Shrink
|
|
6834
6834
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
6835
6835
|
*/
|
|
6836
6836
|
shrink: [{
|
|
6837
|
-
shrink: ["",
|
|
6837
|
+
shrink: ["", we, ce, se]
|
|
6838
6838
|
}],
|
|
6839
6839
|
/**
|
|
6840
6840
|
* Order
|
|
@@ -7388,7 +7388,7 @@ const Mb = (e, t) => {
|
|
|
7388
7388
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
7389
7389
|
*/
|
|
7390
7390
|
"line-clamp": [{
|
|
7391
|
-
"line-clamp": [
|
|
7391
|
+
"line-clamp": [we, "none", ce, ws]
|
|
7392
7392
|
}],
|
|
7393
7393
|
/**
|
|
7394
7394
|
* Line Height
|
|
@@ -7461,7 +7461,7 @@ const Mb = (e, t) => {
|
|
|
7461
7461
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
7462
7462
|
*/
|
|
7463
7463
|
"text-decoration-thickness": [{
|
|
7464
|
-
decoration: [
|
|
7464
|
+
decoration: [we, "from-font", "auto", ce, xn]
|
|
7465
7465
|
}],
|
|
7466
7466
|
/**
|
|
7467
7467
|
* Text Decoration Color
|
|
@@ -7475,7 +7475,7 @@ const Mb = (e, t) => {
|
|
|
7475
7475
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
7476
7476
|
*/
|
|
7477
7477
|
"underline-offset": [{
|
|
7478
|
-
"underline-offset": [
|
|
7478
|
+
"underline-offset": [we, "auto", ce, se]
|
|
7479
7479
|
}],
|
|
7480
7480
|
/**
|
|
7481
7481
|
* Text Transform
|
|
@@ -7969,14 +7969,14 @@ const Mb = (e, t) => {
|
|
|
7969
7969
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
7970
7970
|
*/
|
|
7971
7971
|
"outline-offset": [{
|
|
7972
|
-
"outline-offset": [
|
|
7972
|
+
"outline-offset": [we, ce, se]
|
|
7973
7973
|
}],
|
|
7974
7974
|
/**
|
|
7975
7975
|
* Outline Width
|
|
7976
7976
|
* @see https://tailwindcss.com/docs/outline-width
|
|
7977
7977
|
*/
|
|
7978
7978
|
"outline-w": [{
|
|
7979
|
-
outline: ["",
|
|
7979
|
+
outline: ["", we, si, xn]
|
|
7980
7980
|
}],
|
|
7981
7981
|
/**
|
|
7982
7982
|
* Outline Color
|
|
@@ -8051,7 +8051,7 @@ const Mb = (e, t) => {
|
|
|
8051
8051
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
8052
8052
|
*/
|
|
8053
8053
|
"ring-offset-w": [{
|
|
8054
|
-
"ring-offset": [
|
|
8054
|
+
"ring-offset": [we, xn]
|
|
8055
8055
|
}],
|
|
8056
8056
|
/**
|
|
8057
8057
|
* Ring Offset Color
|
|
@@ -8095,7 +8095,7 @@ const Mb = (e, t) => {
|
|
|
8095
8095
|
* @see https://tailwindcss.com/docs/opacity
|
|
8096
8096
|
*/
|
|
8097
8097
|
opacity: [{
|
|
8098
|
-
opacity: [
|
|
8098
|
+
opacity: [we, ce, se]
|
|
8099
8099
|
}],
|
|
8100
8100
|
/**
|
|
8101
8101
|
* Mix Blend Mode
|
|
@@ -8130,7 +8130,7 @@ const Mb = (e, t) => {
|
|
|
8130
8130
|
* @see https://tailwindcss.com/docs/mask-image
|
|
8131
8131
|
*/
|
|
8132
8132
|
"mask-image-linear-pos": [{
|
|
8133
|
-
"mask-linear": [
|
|
8133
|
+
"mask-linear": [we]
|
|
8134
8134
|
}],
|
|
8135
8135
|
"mask-image-linear-from-pos": [{
|
|
8136
8136
|
"mask-linear-from": te()
|
|
@@ -8244,7 +8244,7 @@ const Mb = (e, t) => {
|
|
|
8244
8244
|
"mask-radial-at": x()
|
|
8245
8245
|
}],
|
|
8246
8246
|
"mask-image-conic-pos": [{
|
|
8247
|
-
"mask-conic": [
|
|
8247
|
+
"mask-conic": [we]
|
|
8248
8248
|
}],
|
|
8249
8249
|
"mask-image-conic-from-pos": [{
|
|
8250
8250
|
"mask-conic-from": te()
|
|
@@ -8335,14 +8335,14 @@ const Mb = (e, t) => {
|
|
|
8335
8335
|
* @see https://tailwindcss.com/docs/brightness
|
|
8336
8336
|
*/
|
|
8337
8337
|
brightness: [{
|
|
8338
|
-
brightness: [
|
|
8338
|
+
brightness: [we, ce, se]
|
|
8339
8339
|
}],
|
|
8340
8340
|
/**
|
|
8341
8341
|
* Contrast
|
|
8342
8342
|
* @see https://tailwindcss.com/docs/contrast
|
|
8343
8343
|
*/
|
|
8344
8344
|
contrast: [{
|
|
8345
|
-
contrast: [
|
|
8345
|
+
contrast: [we, ce, se]
|
|
8346
8346
|
}],
|
|
8347
8347
|
/**
|
|
8348
8348
|
* Drop Shadow
|
|
@@ -8370,35 +8370,35 @@ const Mb = (e, t) => {
|
|
|
8370
8370
|
* @see https://tailwindcss.com/docs/grayscale
|
|
8371
8371
|
*/
|
|
8372
8372
|
grayscale: [{
|
|
8373
|
-
grayscale: ["",
|
|
8373
|
+
grayscale: ["", we, ce, se]
|
|
8374
8374
|
}],
|
|
8375
8375
|
/**
|
|
8376
8376
|
* Hue Rotate
|
|
8377
8377
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
8378
8378
|
*/
|
|
8379
8379
|
"hue-rotate": [{
|
|
8380
|
-
"hue-rotate": [
|
|
8380
|
+
"hue-rotate": [we, ce, se]
|
|
8381
8381
|
}],
|
|
8382
8382
|
/**
|
|
8383
8383
|
* Invert
|
|
8384
8384
|
* @see https://tailwindcss.com/docs/invert
|
|
8385
8385
|
*/
|
|
8386
8386
|
invert: [{
|
|
8387
|
-
invert: ["",
|
|
8387
|
+
invert: ["", we, ce, se]
|
|
8388
8388
|
}],
|
|
8389
8389
|
/**
|
|
8390
8390
|
* Saturate
|
|
8391
8391
|
* @see https://tailwindcss.com/docs/saturate
|
|
8392
8392
|
*/
|
|
8393
8393
|
saturate: [{
|
|
8394
|
-
saturate: [
|
|
8394
|
+
saturate: [we, ce, se]
|
|
8395
8395
|
}],
|
|
8396
8396
|
/**
|
|
8397
8397
|
* Sepia
|
|
8398
8398
|
* @see https://tailwindcss.com/docs/sepia
|
|
8399
8399
|
*/
|
|
8400
8400
|
sepia: [{
|
|
8401
|
-
sepia: ["",
|
|
8401
|
+
sepia: ["", we, ce, se]
|
|
8402
8402
|
}],
|
|
8403
8403
|
/**
|
|
8404
8404
|
* Backdrop Filter
|
|
@@ -8425,56 +8425,56 @@ const Mb = (e, t) => {
|
|
|
8425
8425
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
8426
8426
|
*/
|
|
8427
8427
|
"backdrop-brightness": [{
|
|
8428
|
-
"backdrop-brightness": [
|
|
8428
|
+
"backdrop-brightness": [we, ce, se]
|
|
8429
8429
|
}],
|
|
8430
8430
|
/**
|
|
8431
8431
|
* Backdrop Contrast
|
|
8432
8432
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
8433
8433
|
*/
|
|
8434
8434
|
"backdrop-contrast": [{
|
|
8435
|
-
"backdrop-contrast": [
|
|
8435
|
+
"backdrop-contrast": [we, ce, se]
|
|
8436
8436
|
}],
|
|
8437
8437
|
/**
|
|
8438
8438
|
* Backdrop Grayscale
|
|
8439
8439
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
8440
8440
|
*/
|
|
8441
8441
|
"backdrop-grayscale": [{
|
|
8442
|
-
"backdrop-grayscale": ["",
|
|
8442
|
+
"backdrop-grayscale": ["", we, ce, se]
|
|
8443
8443
|
}],
|
|
8444
8444
|
/**
|
|
8445
8445
|
* Backdrop Hue Rotate
|
|
8446
8446
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
8447
8447
|
*/
|
|
8448
8448
|
"backdrop-hue-rotate": [{
|
|
8449
|
-
"backdrop-hue-rotate": [
|
|
8449
|
+
"backdrop-hue-rotate": [we, ce, se]
|
|
8450
8450
|
}],
|
|
8451
8451
|
/**
|
|
8452
8452
|
* Backdrop Invert
|
|
8453
8453
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
8454
8454
|
*/
|
|
8455
8455
|
"backdrop-invert": [{
|
|
8456
|
-
"backdrop-invert": ["",
|
|
8456
|
+
"backdrop-invert": ["", we, ce, se]
|
|
8457
8457
|
}],
|
|
8458
8458
|
/**
|
|
8459
8459
|
* Backdrop Opacity
|
|
8460
8460
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
8461
8461
|
*/
|
|
8462
8462
|
"backdrop-opacity": [{
|
|
8463
|
-
"backdrop-opacity": [
|
|
8463
|
+
"backdrop-opacity": [we, ce, se]
|
|
8464
8464
|
}],
|
|
8465
8465
|
/**
|
|
8466
8466
|
* Backdrop Saturate
|
|
8467
8467
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
8468
8468
|
*/
|
|
8469
8469
|
"backdrop-saturate": [{
|
|
8470
|
-
"backdrop-saturate": [
|
|
8470
|
+
"backdrop-saturate": [we, ce, se]
|
|
8471
8471
|
}],
|
|
8472
8472
|
/**
|
|
8473
8473
|
* Backdrop Sepia
|
|
8474
8474
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
8475
8475
|
*/
|
|
8476
8476
|
"backdrop-sepia": [{
|
|
8477
|
-
"backdrop-sepia": ["",
|
|
8477
|
+
"backdrop-sepia": ["", we, ce, se]
|
|
8478
8478
|
}],
|
|
8479
8479
|
// --------------
|
|
8480
8480
|
// --- Tables ---
|
|
@@ -8543,7 +8543,7 @@ const Mb = (e, t) => {
|
|
|
8543
8543
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
8544
8544
|
*/
|
|
8545
8545
|
duration: [{
|
|
8546
|
-
duration: [
|
|
8546
|
+
duration: [we, "initial", ce, se]
|
|
8547
8547
|
}],
|
|
8548
8548
|
/**
|
|
8549
8549
|
* Transition Timing Function
|
|
@@ -8557,7 +8557,7 @@ const Mb = (e, t) => {
|
|
|
8557
8557
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
8558
8558
|
*/
|
|
8559
8559
|
delay: [{
|
|
8560
|
-
delay: [
|
|
8560
|
+
delay: [we, ce, se]
|
|
8561
8561
|
}],
|
|
8562
8562
|
/**
|
|
8563
8563
|
* Animation
|
|
@@ -8656,21 +8656,21 @@ const Mb = (e, t) => {
|
|
|
8656
8656
|
* @see https://tailwindcss.com/docs/skew
|
|
8657
8657
|
*/
|
|
8658
8658
|
skew: [{
|
|
8659
|
-
skew:
|
|
8659
|
+
skew: ve()
|
|
8660
8660
|
}],
|
|
8661
8661
|
/**
|
|
8662
8662
|
* Skew X
|
|
8663
8663
|
* @see https://tailwindcss.com/docs/skew
|
|
8664
8664
|
*/
|
|
8665
8665
|
"skew-x": [{
|
|
8666
|
-
"skew-x":
|
|
8666
|
+
"skew-x": ve()
|
|
8667
8667
|
}],
|
|
8668
8668
|
/**
|
|
8669
8669
|
* Skew Y
|
|
8670
8670
|
* @see https://tailwindcss.com/docs/skew
|
|
8671
8671
|
*/
|
|
8672
8672
|
"skew-y": [{
|
|
8673
|
-
"skew-y":
|
|
8673
|
+
"skew-y": ve()
|
|
8674
8674
|
}],
|
|
8675
8675
|
/**
|
|
8676
8676
|
* Transform
|
|
@@ -9029,7 +9029,7 @@ const Mb = (e, t) => {
|
|
|
9029
9029
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
9030
9030
|
*/
|
|
9031
9031
|
"stroke-w": [{
|
|
9032
|
-
stroke: [
|
|
9032
|
+
stroke: [we, si, xn, ws]
|
|
9033
9033
|
}],
|
|
9034
9034
|
/**
|
|
9035
9035
|
* Stroke
|
|
@@ -9845,22 +9845,22 @@ function zv(e = {}) {
|
|
|
9845
9845
|
}
|
|
9846
9846
|
}, C = (N, D, F, ne, $) => {
|
|
9847
9847
|
let Z = !1, le = !1;
|
|
9848
|
-
const
|
|
9848
|
+
const Pe = {
|
|
9849
9849
|
name: N
|
|
9850
9850
|
};
|
|
9851
9851
|
if (!t.disabled) {
|
|
9852
9852
|
if (!F || ne) {
|
|
9853
|
-
(l.isDirty || f.isDirty) && (le = n.isDirty, n.isDirty =
|
|
9854
|
-
const
|
|
9855
|
-
le = !!ie(n.dirtyFields, N),
|
|
9853
|
+
(l.isDirty || f.isDirty) && (le = n.isDirty, n.isDirty = Pe.isDirty = z(), Z = le !== Pe.isDirty);
|
|
9854
|
+
const xe = Rt(ie(r, N), D);
|
|
9855
|
+
le = !!ie(n.dirtyFields, N), xe ? We(n.dirtyFields, N) : Ie(n.dirtyFields, N, !0), Pe.dirtyFields = n.dirtyFields, Z = Z || (l.dirtyFields || f.dirtyFields) && le !== !xe;
|
|
9856
9856
|
}
|
|
9857
9857
|
if (F) {
|
|
9858
|
-
const
|
|
9859
|
-
|
|
9858
|
+
const xe = ie(n.touchedFields, N);
|
|
9859
|
+
xe || (Ie(n.touchedFields, N, F), Pe.touchedFields = n.touchedFields, Z = Z || (l.touchedFields || f.touchedFields) && xe !== F);
|
|
9860
9860
|
}
|
|
9861
|
-
Z && $ && m.state.next(
|
|
9861
|
+
Z && $ && m.state.next(Pe);
|
|
9862
9862
|
}
|
|
9863
|
-
return Z ?
|
|
9863
|
+
return Z ? Pe : {};
|
|
9864
9864
|
}, v = (N, D, F, ne) => {
|
|
9865
9865
|
const $ = ie(n.errors, N), Z = (l.isValid || f.isValid) && St(D) && n.isValid !== D;
|
|
9866
9866
|
if (t.delayError && F ? (u = y(() => A(N, F)), u(t.delayError)) : (clearTimeout(c), u = null, F ? Ie(n.errors, N, F) : We(n.errors, N)), (F ? !Rt($, F) : $) || !st(ne) || Z) {
|
|
@@ -9893,12 +9893,12 @@ function zv(e = {}) {
|
|
|
9893
9893
|
if ($) {
|
|
9894
9894
|
const { _f: Z, ...le } = $;
|
|
9895
9895
|
if (Z) {
|
|
9896
|
-
const
|
|
9897
|
-
|
|
9898
|
-
const Fe = await Is($, s.disabled, a, p, t.shouldUseNativeValidation && !D,
|
|
9899
|
-
if (
|
|
9896
|
+
const Pe = s.array.has(Z.name), xe = $._f && Iv($._f);
|
|
9897
|
+
xe && l.validatingFields && P([Z.name], !0);
|
|
9898
|
+
const Fe = await Is($, s.disabled, a, p, t.shouldUseNativeValidation && !D, Pe);
|
|
9899
|
+
if (xe && l.validatingFields && P([Z.name]), Fe[Z.name] && (F.valid = !1, D || e.shouldUseNativeValidation))
|
|
9900
9900
|
break;
|
|
9901
|
-
!D && (ie(Fe, Z.name) ?
|
|
9901
|
+
!D && (ie(Fe, Z.name) ? Pe ? Uv(n.errors, Fe, Z.name) : Ie(n.errors, Z.name, Fe[Z.name]) : We(n.errors, Z.name));
|
|
9902
9902
|
}
|
|
9903
9903
|
!st(le) && await _(le, D, F);
|
|
9904
9904
|
}
|
|
@@ -9918,7 +9918,7 @@ function zv(e = {}) {
|
|
|
9918
9918
|
if (ne) {
|
|
9919
9919
|
const Z = ne._f;
|
|
9920
9920
|
Z && (!Z.disabled && Ie(a, N, Lc(D, Z)), $ = or(Z.ref) && mt(D) ? "" : D, Mc(Z.ref) ? [...Z.ref.options].forEach((le) => le.selected = $.includes(le.value)) : Z.refs ? Di(Z.ref) ? Z.refs.forEach((le) => {
|
|
9921
|
-
(!le.defaultChecked || !le.disabled) && (Array.isArray($) ? le.checked = !!$.find((
|
|
9921
|
+
(!le.defaultChecked || !le.disabled) && (Array.isArray($) ? le.checked = !!$.find((Pe) => Pe === le.value) : le.checked = $ === le.value || !!$);
|
|
9922
9922
|
}) : Z.refs.forEach((le) => le.checked = le.value === $) : eo(Z.ref) ? Z.ref.value = "" : (Z.ref.value = $, Z.ref.type || m.state.next({
|
|
9923
9923
|
name: N,
|
|
9924
9924
|
values: Ye(a)
|
|
@@ -9953,12 +9953,12 @@ function zv(e = {}) {
|
|
|
9953
9953
|
o.mount = !0;
|
|
9954
9954
|
const D = N.target;
|
|
9955
9955
|
let F = D.name, ne = !0;
|
|
9956
|
-
const $ = ie(i, F), Z = (
|
|
9957
|
-
ne = Number.isNaN(
|
|
9958
|
-
}, le = Ds(t.mode),
|
|
9956
|
+
const $ = ie(i, F), Z = (xe) => {
|
|
9957
|
+
ne = Number.isNaN(xe) || Tn(xe) && isNaN(xe.getTime()) || Rt(xe, ie(a, F, xe));
|
|
9958
|
+
}, le = Ds(t.mode), Pe = Ds(t.reValidateMode);
|
|
9959
9959
|
if ($) {
|
|
9960
|
-
let
|
|
9961
|
-
const Ct = D.type ? Ns($._f) : Ac(N), tt = N.type === ar.BLUR || N.type === ar.FOCUS_OUT, ei = !Lv($._f) && !t.resolver && !ie(n.errors, F) && !$._f.deps || Bv(tt, ie(n.touchedFields, F), n.isSubmitted,
|
|
9960
|
+
let xe, Fe;
|
|
9961
|
+
const Ct = D.type ? Ns($._f) : Ac(N), tt = N.type === ar.BLUR || N.type === ar.FOCUS_OUT, ei = !Lv($._f) && !t.resolver && !ie(n.errors, F) && !$._f.deps || Bv(tt, ie(n.touchedFields, F), n.isSubmitted, Pe, le), vn = Es(F, s, tt);
|
|
9962
9962
|
Ie(a, F, Ct), tt ? (!D || !D.readOnly) && ($._f.onBlur && $._f.onBlur(N), u && u(0)) : $._f.onChange && $._f.onChange(N);
|
|
9963
9963
|
const tn = C(F, Ct, tt), En = !st(tn) || vn;
|
|
9964
9964
|
if (!tt && m.state.next({
|
|
@@ -9971,11 +9971,11 @@ function zv(e = {}) {
|
|
|
9971
9971
|
const { errors: Mn } = await S([F]);
|
|
9972
9972
|
if (P([F]), Z(Ct), ne) {
|
|
9973
9973
|
const Kt = Ms(n.errors, i, F), at = Ms(Mn, i, Kt.name || F);
|
|
9974
|
-
|
|
9974
|
+
xe = at.error, F = at.name, Fe = st(Mn);
|
|
9975
9975
|
}
|
|
9976
9976
|
} else
|
|
9977
|
-
P([F], !0),
|
|
9978
|
-
ne && ($._f.deps && (!Array.isArray($._f.deps) || $._f.deps.length > 0) && k($._f.deps), v(F, Fe,
|
|
9977
|
+
P([F], !0), xe = (await Is($, s.disabled, a, p, t.shouldUseNativeValidation))[F], P([F]), Z(Ct), ne && (xe ? Fe = !1 : (l.isValid || f.isValid) && (Fe = await _(i, !0)));
|
|
9978
|
+
ne && ($._f.deps && (!Array.isArray($._f.deps) || $._f.deps.length > 0) && k($._f.deps), v(F, Fe, xe, tn));
|
|
9979
9979
|
}
|
|
9980
9980
|
}, oe = (N, D) => {
|
|
9981
9981
|
if (ie(n.errors, D) && N.focus)
|
|
@@ -10017,9 +10017,9 @@ function zv(e = {}) {
|
|
|
10017
10017
|
errors: {}
|
|
10018
10018
|
});
|
|
10019
10019
|
}, R = (N, D, F) => {
|
|
10020
|
-
const ne = (ie(i, N, { _f: {} })._f || {}).ref, $ = ie(n.errors, N) || {}, { ref: Z, message: le, type:
|
|
10020
|
+
const ne = (ie(i, N, { _f: {} })._f || {}).ref, $ = ie(n.errors, N) || {}, { ref: Z, message: le, type: Pe, ...xe } = $;
|
|
10021
10021
|
Ie(n.errors, N, {
|
|
10022
|
-
...
|
|
10022
|
+
...xe,
|
|
10023
10023
|
...D,
|
|
10024
10024
|
ref: ne
|
|
10025
10025
|
}), m.state.next({
|
|
@@ -10091,15 +10091,15 @@ function zv(e = {}) {
|
|
|
10091
10091
|
ref: ($) => {
|
|
10092
10092
|
if ($) {
|
|
10093
10093
|
ae(N, D), F = ie(i, N);
|
|
10094
|
-
const Z = Ge($.value) && $.querySelectorAll && $.querySelectorAll("input,select,textarea")[0] || $, le = Dv(Z),
|
|
10095
|
-
if (le ?
|
|
10094
|
+
const Z = Ge($.value) && $.querySelectorAll && $.querySelectorAll("input,select,textarea")[0] || $, le = Dv(Z), Pe = F._f.refs || [];
|
|
10095
|
+
if (le ? Pe.find((xe) => xe === Z) : Z === F._f.ref)
|
|
10096
10096
|
return;
|
|
10097
10097
|
Ie(i, N, {
|
|
10098
10098
|
_f: {
|
|
10099
10099
|
...F._f,
|
|
10100
10100
|
...le ? {
|
|
10101
10101
|
refs: [
|
|
10102
|
-
...
|
|
10102
|
+
...Pe.filter(Qr),
|
|
10103
10103
|
Z,
|
|
10104
10104
|
...Array.isArray(ie(r, N)) ? [{}] : []
|
|
10105
10105
|
],
|
|
@@ -10118,7 +10118,7 @@ function zv(e = {}) {
|
|
|
10118
10118
|
$.disabled = ne._f.disabled || N;
|
|
10119
10119
|
}));
|
|
10120
10120
|
}, 0, !1));
|
|
10121
|
-
},
|
|
10121
|
+
}, ve = (N, D) => async (F) => {
|
|
10122
10122
|
let ne;
|
|
10123
10123
|
F && (F.preventDefault && F.preventDefault(), F.persist && F.persist());
|
|
10124
10124
|
let $ = Ye(a);
|
|
@@ -10161,18 +10161,18 @@ function zv(e = {}) {
|
|
|
10161
10161
|
...s.mount,
|
|
10162
10162
|
...Object.keys(Un(r, a))
|
|
10163
10163
|
]);
|
|
10164
|
-
for (const
|
|
10165
|
-
const
|
|
10166
|
-
|
|
10164
|
+
for (const Pe of Array.from(le)) {
|
|
10165
|
+
const xe = ie(n.dirtyFields, Pe), Fe = ie(a, Pe), Ct = ie(Z, Pe);
|
|
10166
|
+
xe && !Ge(Fe) ? Ie(Z, Pe, Fe) : !xe && !Ge(Ct) && K(Pe, Ct);
|
|
10167
10167
|
}
|
|
10168
10168
|
} else {
|
|
10169
10169
|
if (Ka && Ge(N))
|
|
10170
10170
|
for (const le of s.mount) {
|
|
10171
|
-
const
|
|
10172
|
-
if (
|
|
10173
|
-
const
|
|
10174
|
-
if (or(
|
|
10175
|
-
const Fe =
|
|
10171
|
+
const Pe = ie(i, le);
|
|
10172
|
+
if (Pe && Pe._f) {
|
|
10173
|
+
const xe = Array.isArray(Pe._f.refs) ? Pe._f.refs[0] : Pe._f.ref;
|
|
10174
|
+
if (or(xe)) {
|
|
10175
|
+
const Fe = xe.closest("form");
|
|
10176
10176
|
if (Fe) {
|
|
10177
10177
|
Fe.reset();
|
|
10178
10178
|
break;
|
|
@@ -10229,7 +10229,7 @@ function zv(e = {}) {
|
|
|
10229
10229
|
register: ae,
|
|
10230
10230
|
unregister: V,
|
|
10231
10231
|
getFieldState: I,
|
|
10232
|
-
handleSubmit:
|
|
10232
|
+
handleSubmit: ve,
|
|
10233
10233
|
setError: R,
|
|
10234
10234
|
_subscribe: E,
|
|
10235
10235
|
_runSchema: S,
|
|
@@ -10289,7 +10289,7 @@ function zv(e = {}) {
|
|
|
10289
10289
|
subscribe: L,
|
|
10290
10290
|
trigger: k,
|
|
10291
10291
|
register: ae,
|
|
10292
|
-
handleSubmit:
|
|
10292
|
+
handleSubmit: ve,
|
|
10293
10293
|
watch: j,
|
|
10294
10294
|
setValue: K,
|
|
10295
10295
|
getValues: T,
|
|
@@ -12455,8 +12455,8 @@ var ho = "PopperContent", [Bx, jx] = mu(ho), wu = G.forwardRef(
|
|
|
12455
12455
|
Mx({
|
|
12456
12456
|
...B,
|
|
12457
12457
|
apply: ({ elements: L, rects: V, availableWidth: te, availableHeight: ae }) => {
|
|
12458
|
-
const { width: fe, height: X } = V.reference,
|
|
12459
|
-
|
|
12458
|
+
const { width: fe, height: X } = V.reference, ve = L.floating.style;
|
|
12459
|
+
ve.setProperty("--radix-popper-available-width", `${te}px`), ve.setProperty("--radix-popper-available-height", `${ae}px`), ve.setProperty("--radix-popper-anchor-width", `${fe}px`), ve.setProperty("--radix-popper-anchor-height", `${X}px`);
|
|
12460
12460
|
}
|
|
12461
12461
|
}),
|
|
12462
12462
|
x && Ix({ element: x, padding: s }),
|
|
@@ -13353,15 +13353,15 @@ const Iu = bl(function({
|
|
|
13353
13353
|
}, []), v = re(() => {
|
|
13354
13354
|
const E = l.current;
|
|
13355
13355
|
if (!E) return;
|
|
13356
|
-
const L = E.getBoundingClientRect(), V = 4, te = 384, ae = window.innerHeight - L.bottom - V - 8, fe = L.top - 8, X = ae < Math.min(te, 240) && fe > ae,
|
|
13356
|
+
const L = E.getBoundingClientRect(), V = 4, te = 384, ae = window.innerHeight - L.bottom - V - 8, fe = L.top - 8, X = ae < Math.min(te, 240) && fe > ae, ve = Math.max(
|
|
13357
13357
|
160,
|
|
13358
13358
|
Math.min(te, X ? fe : ae)
|
|
13359
|
-
), he = X ? Math.max(8, L.top - V -
|
|
13359
|
+
), he = X ? Math.max(8, L.top - V - ve) : L.bottom + V;
|
|
13360
13360
|
A({
|
|
13361
13361
|
top: he,
|
|
13362
13362
|
left: L.left,
|
|
13363
13363
|
width: L.width,
|
|
13364
|
-
maxHeight:
|
|
13364
|
+
maxHeight: ve
|
|
13365
13365
|
});
|
|
13366
13366
|
}, []), S = Me(() => (u ?? o ?? []).filter((L) => i[L.ticker]), [u, o, i]), M = S.slice(0, PS), _ = S.length - M.length, q = Me(() => {
|
|
13367
13367
|
const E = /* @__PURE__ */ new Set();
|
|
@@ -14497,7 +14497,7 @@ function tl(e) {
|
|
|
14497
14497
|
}
|
|
14498
14498
|
);
|
|
14499
14499
|
}
|
|
14500
|
-
function
|
|
14500
|
+
function zT(e, ...t) {
|
|
14501
14501
|
if (uP(e)) {
|
|
14502
14502
|
if (t.length > 0)
|
|
14503
14503
|
return tl(
|
|
@@ -14682,7 +14682,7 @@ const qi = (e, t) => {
|
|
|
14682
14682
|
const i = t.symbol.time, r = sd(n);
|
|
14683
14683
|
return !Number.isFinite(i) || !r.length ? [...Ra] : ld(i, r) ? e(t, r) : [...Ra];
|
|
14684
14684
|
};
|
|
14685
|
-
},
|
|
14685
|
+
}, YT = (e = "light") => {
|
|
14686
14686
|
const t = fP(e), n = {
|
|
14687
14687
|
name: Da,
|
|
14688
14688
|
metainfo: {
|
|
@@ -16309,9 +16309,9 @@ const zP = bl(function({
|
|
|
16309
16309
|
const E = R.getBoundingClientRect(), L = 4, V = 320, te = window.innerHeight - E.bottom - L - 8, ae = E.top - 8, fe = te < Math.min(V, 180) && ae > te, X = Math.max(
|
|
16310
16310
|
160,
|
|
16311
16311
|
Math.min(V, fe ? ae : te)
|
|
16312
|
-
),
|
|
16312
|
+
), ve = fe ? Math.max(8, E.top - L - X) : E.bottom + L;
|
|
16313
16313
|
j({
|
|
16314
|
-
top:
|
|
16314
|
+
top: ve,
|
|
16315
16315
|
left: E.left,
|
|
16316
16316
|
width: E.width,
|
|
16317
16317
|
maxHeight: X
|
|
@@ -17102,21 +17102,25 @@ function cT(e) {
|
|
|
17102
17102
|
const t = e.doc_type, n = (e.event_name ?? "").toLowerCase();
|
|
17103
17103
|
return t === "minutes" || n.includes("minutes") ? "FOMC Minutes" : t === "statement" || n.includes("statement") ? "FOMC Statement" : e.event_name?.startsWith("FOMC") ? e.event_name : "FOMC";
|
|
17104
17104
|
}
|
|
17105
|
-
function uT({
|
|
17105
|
+
function uT(e) {
|
|
17106
|
+
const t = new Date(e), n = String(t.getDate()).padStart(2, "0"), i = String(t.getMonth() + 1).padStart(2, "0"), r = t.getFullYear(), a = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
|
|
17107
|
+
return `${r}-${i}-${n}, ${a}:${o}:${s}`;
|
|
17108
|
+
}
|
|
17109
|
+
function dT({
|
|
17106
17110
|
event: e,
|
|
17107
17111
|
symbol: t,
|
|
17108
17112
|
onClose: n,
|
|
17109
17113
|
onGoToEventDetail: i,
|
|
17110
17114
|
position: r
|
|
17111
17115
|
}) {
|
|
17112
|
-
const { t: a
|
|
17113
|
-
ye(() => (
|
|
17114
|
-
|
|
17116
|
+
const { t: a } = vt(), o = Po(), s = Po(), u = pe(null), c = pe(null);
|
|
17117
|
+
ye(() => (c.current = document.activeElement, u.current?.focus(), () => {
|
|
17118
|
+
c.current?.focus?.();
|
|
17115
17119
|
}), []);
|
|
17116
|
-
const
|
|
17117
|
-
const
|
|
17118
|
-
localStorage.setItem("currentSymbolNews",
|
|
17119
|
-
},
|
|
17120
|
+
const d = () => {
|
|
17121
|
+
const m = e.default_symbol || t;
|
|
17122
|
+
localStorage.setItem("currentSymbolNews", m), i?.(e), n();
|
|
17123
|
+
}, l = Pa(e), f = l ? cT(e) : e.event_name;
|
|
17120
17124
|
return /* @__PURE__ */ h.jsx(
|
|
17121
17125
|
"div",
|
|
17122
17126
|
{
|
|
@@ -17129,8 +17133,8 @@ function uT({
|
|
|
17129
17133
|
className: "iccandle-event-info-modal__dialog",
|
|
17130
17134
|
role: "dialog",
|
|
17131
17135
|
"aria-modal": "true",
|
|
17132
|
-
"aria-labelledby":
|
|
17133
|
-
"aria-describedby":
|
|
17136
|
+
"aria-labelledby": o,
|
|
17137
|
+
"aria-describedby": s,
|
|
17134
17138
|
style: r ? {
|
|
17135
17139
|
left: `${r.x}px`,
|
|
17136
17140
|
top: `${r.y}px`,
|
|
@@ -17140,15 +17144,15 @@ function uT({
|
|
|
17140
17144
|
left: "50%",
|
|
17141
17145
|
transform: "translateX(-50%)"
|
|
17142
17146
|
},
|
|
17143
|
-
onClick: (
|
|
17144
|
-
onKeyDown: (
|
|
17145
|
-
|
|
17147
|
+
onClick: (m) => m.stopPropagation(),
|
|
17148
|
+
onKeyDown: (m) => {
|
|
17149
|
+
m.key === "Escape" && n();
|
|
17146
17150
|
},
|
|
17147
17151
|
children: [
|
|
17148
17152
|
/* @__PURE__ */ h.jsxs("div", { className: "iccandle-event-info-modal__header", children: [
|
|
17149
17153
|
/* @__PURE__ */ h.jsxs("div", { className: "iccandle-event-info-modal__title-row", children: [
|
|
17150
17154
|
/* @__PURE__ */ h.jsx(xa, { name: e.default_symbol || t || "" }),
|
|
17151
|
-
/* @__PURE__ */ h.jsx("h3", { id:
|
|
17155
|
+
/* @__PURE__ */ h.jsx("h3", { id: o, className: "iccandle-event-info-modal__title", children: f })
|
|
17152
17156
|
] }),
|
|
17153
17157
|
/* @__PURE__ */ h.jsx(
|
|
17154
17158
|
"button",
|
|
@@ -17157,14 +17161,14 @@ function uT({
|
|
|
17157
17161
|
onClick: n,
|
|
17158
17162
|
className: "iccandle-event-info-modal__close",
|
|
17159
17163
|
"aria-label": a("Common.close"),
|
|
17160
|
-
ref:
|
|
17164
|
+
ref: u,
|
|
17161
17165
|
children: /* @__PURE__ */ h.jsx(gr, { size: 20 })
|
|
17162
17166
|
}
|
|
17163
17167
|
)
|
|
17164
17168
|
] }),
|
|
17165
|
-
/* @__PURE__ */ h.jsxs("div", { id:
|
|
17166
|
-
e.timestamp ? /* @__PURE__ */ h.jsx("p", { className: "iccandle-event-info-modal__date", children:
|
|
17167
|
-
|
|
17169
|
+
/* @__PURE__ */ h.jsxs("div", { id: s, children: [
|
|
17170
|
+
e.timestamp ? /* @__PURE__ */ h.jsx("p", { className: "iccandle-event-info-modal__date", children: uT(e.timestamp) }) : null,
|
|
17171
|
+
l ? /* @__PURE__ */ h.jsx("p", { className: "iccandle-event-info-modal__fomc-description", children: a("News.fomc") }) : /* @__PURE__ */ h.jsxs("div", { className: "iccandle-event-info-modal__rows", children: [
|
|
17168
17172
|
/* @__PURE__ */ h.jsxs("div", { className: "iccandle-event-info-modal__row", children: [
|
|
17169
17173
|
/* @__PURE__ */ h.jsxs("span", { className: "iccandle-event-info-modal__label", children: [
|
|
17170
17174
|
a("Common.actual"),
|
|
@@ -17208,7 +17212,7 @@ function uT({
|
|
|
17208
17212
|
/* @__PURE__ */ h.jsx(
|
|
17209
17213
|
ml,
|
|
17210
17214
|
{
|
|
17211
|
-
onClick:
|
|
17215
|
+
onClick: d,
|
|
17212
17216
|
className: "iccandle-event-info-modal__btn",
|
|
17213
17217
|
children: a("News.goToEventDetail")
|
|
17214
17218
|
}
|
|
@@ -17220,7 +17224,7 @@ function uT({
|
|
|
17220
17224
|
}
|
|
17221
17225
|
);
|
|
17222
17226
|
}
|
|
17223
|
-
function
|
|
17227
|
+
function hT({
|
|
17224
17228
|
language: e,
|
|
17225
17229
|
children: t
|
|
17226
17230
|
}) {
|
|
@@ -17233,7 +17237,7 @@ function dT({
|
|
|
17233
17237
|
}, [e]);
|
|
17234
17238
|
return /* @__PURE__ */ h.jsx(nc.Provider, { value: n, children: t });
|
|
17235
17239
|
}
|
|
17236
|
-
function
|
|
17240
|
+
function pT(e) {
|
|
17237
17241
|
try {
|
|
17238
17242
|
const t = JSON.parse(
|
|
17239
17243
|
localStorage.getItem(Cn) || "null"
|
|
@@ -17250,7 +17254,7 @@ function hT(e) {
|
|
|
17250
17254
|
return null;
|
|
17251
17255
|
}
|
|
17252
17256
|
}
|
|
17253
|
-
function
|
|
17257
|
+
function mT(e) {
|
|
17254
17258
|
return !(!e?.event_name || !e.currency || e.event_name === "Holiday" || e.status === "early");
|
|
17255
17259
|
}
|
|
17256
17260
|
const fl = (e) => ({
|
|
@@ -17259,7 +17263,7 @@ const fl = (e) => ({
|
|
|
17259
17263
|
l: e[3],
|
|
17260
17264
|
c: e[4],
|
|
17261
17265
|
timestamp: e[0]
|
|
17262
|
-
}),
|
|
17266
|
+
}), fT = (e) => {
|
|
17263
17267
|
if (e < Ht.min) return Ht.min;
|
|
17264
17268
|
if (e <= Ht.max) return e;
|
|
17265
17269
|
if (e >= Xi) return Xi;
|
|
@@ -17272,7 +17276,7 @@ const fl = (e) => ({
|
|
|
17272
17276
|
if (e < i) return t[n];
|
|
17273
17277
|
}
|
|
17274
17278
|
return t[t.length - 1];
|
|
17275
|
-
},
|
|
17279
|
+
}, gT = (e) => fT(e) - 1, yT = (e, t = 2500) => new Promise((n) => {
|
|
17276
17280
|
let i = !1, r = null;
|
|
17277
17281
|
const a = () => {
|
|
17278
17282
|
if (!i) {
|
|
@@ -17291,12 +17295,12 @@ const fl = (e) => ({
|
|
|
17291
17295
|
} catch {
|
|
17292
17296
|
clearTimeout(o), a();
|
|
17293
17297
|
}
|
|
17294
|
-
}),
|
|
17298
|
+
}), bT = (e) => {
|
|
17295
17299
|
const t = Ht.custom.filter(
|
|
17296
17300
|
(n) => n >= di && n <= e
|
|
17297
17301
|
);
|
|
17298
17302
|
return t.length ? t[t.length - 1] : null;
|
|
17299
|
-
},
|
|
17303
|
+
}, WT = ({
|
|
17300
17304
|
chartWidget: e,
|
|
17301
17305
|
children: t,
|
|
17302
17306
|
theme: n,
|
|
@@ -17334,7 +17338,7 @@ const fl = (e) => ({
|
|
|
17334
17338
|
const j = Me(() => n === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n, [n]), E = Me(
|
|
17335
17339
|
() => bm(i?.[j], j),
|
|
17336
17340
|
[i, j]
|
|
17337
|
-
), [L, V] = ue(!1), [te, ae] = ue(!1), [fe, X] = ue(!1), [
|
|
17341
|
+
), [L, V] = ue(!1), [te, ae] = ue(!1), [fe, X] = ue(!1), [ve, he] = ue(Jr), [Te, Oe] = ue([]), [dt, wt] = ue(null), [Ae, Vt] = ue(!1), [N, D] = ue(
|
|
17338
17342
|
"60"
|
|
17339
17343
|
), [F, ne] = ue(
|
|
17340
17344
|
Rb.interval
|
|
@@ -17359,7 +17363,7 @@ const fl = (e) => ({
|
|
|
17359
17363
|
} catch {
|
|
17360
17364
|
}
|
|
17361
17365
|
X(!1), Oe([]), z([]);
|
|
17362
|
-
}, [e, z]),
|
|
17366
|
+
}, [e, z]), Pe = re(
|
|
17363
17367
|
(Q) => {
|
|
17364
17368
|
let be = Q;
|
|
17365
17369
|
try {
|
|
@@ -17369,7 +17373,7 @@ const fl = (e) => ({
|
|
|
17369
17373
|
be.includes("/news") && le(), T?.length && (Ce.getState().setPlayEndTimestamp(null), Ce.getState().setGapCount(0), I(null), ft(!1));
|
|
17370
17374
|
},
|
|
17371
17375
|
[T, le]
|
|
17372
|
-
),
|
|
17376
|
+
), xe = re(() => ae(!0), []), Fe = re(() => ae(!1), []), Ct = re((Q) => C.current?.(Q) ?? Promise.resolve(), []);
|
|
17373
17377
|
ye(() => {
|
|
17374
17378
|
const Q = Te[Te.length - 1]?.timestamp;
|
|
17375
17379
|
if (!Q) {
|
|
@@ -17510,26 +17514,26 @@ const fl = (e) => ({
|
|
|
17510
17514
|
const Be = q.current?.firstElementChild || q.current;
|
|
17511
17515
|
if (!Be) return;
|
|
17512
17516
|
const rn = Be.getBoundingClientRect(), Ln = Ee.width(), Oi = ($e) => {
|
|
17513
|
-
let Ke = 0, Je = Ln,
|
|
17517
|
+
let Ke = 0, Je = Ln, Se = Ln / 2;
|
|
17514
17518
|
const Xe = 0.1;
|
|
17515
17519
|
for (let wn = 0; wn < 30; wn++) {
|
|
17516
17520
|
const ot = (Ke + Je) / 2, Ii = Ee.coordinateToTime(ot);
|
|
17517
17521
|
if (Ii === null) {
|
|
17518
17522
|
const yd = ($e - de.from) / (de.to - de.from);
|
|
17519
|
-
|
|
17523
|
+
Se = Math.max(0, Math.min(Ln, yd * Ln));
|
|
17520
17524
|
break;
|
|
17521
17525
|
}
|
|
17522
17526
|
const Ze = Ii - $e;
|
|
17523
17527
|
if (Math.abs(Ze) < Xe) {
|
|
17524
|
-
|
|
17528
|
+
Se = ot;
|
|
17525
17529
|
break;
|
|
17526
17530
|
}
|
|
17527
|
-
Ze > 0 ? Je = ot : Ke = ot,
|
|
17531
|
+
Ze > 0 ? Je = ot : Ke = ot, Se = ot;
|
|
17528
17532
|
}
|
|
17529
|
-
const et = rn.left +
|
|
17533
|
+
const et = rn.left + Se + 53, Ne = rn.bottom - 103;
|
|
17530
17534
|
return { x: et, y: Ne };
|
|
17531
|
-
}, Fn =
|
|
17532
|
-
if (!
|
|
17535
|
+
}, Fn = pT(Q);
|
|
17536
|
+
if (!mT(Fn))
|
|
17533
17537
|
return;
|
|
17534
17538
|
const Gr = Fn.timestamp ? Fn.timestamp / 1e3 : null, ke = de.to - de.from, Ve = Gr ?? de.from + ke * 0.5, Ue = Oi(Ve);
|
|
17535
17539
|
Ue && k(Ue), J(Fn), H(!0);
|
|
@@ -17592,18 +17596,18 @@ const fl = (e) => ({
|
|
|
17592
17596
|
de?.removeEntity(Ke.id);
|
|
17593
17597
|
}), Ve) {
|
|
17594
17598
|
const { data: Ke } = await de.exportData(), Je = de.resolution();
|
|
17595
|
-
let
|
|
17599
|
+
let Se = li(
|
|
17596
17600
|
Ke,
|
|
17597
17601
|
Ve,
|
|
17598
17602
|
Je
|
|
17599
17603
|
);
|
|
17600
|
-
(
|
|
17604
|
+
(Se === -1 || Se === Ke.length - 1) && (Se = Math.max(0, Ke.length - 2));
|
|
17601
17605
|
const Xe = Ke.slice(
|
|
17602
|
-
Math.max(0,
|
|
17603
|
-
|
|
17606
|
+
Math.max(0, Se - Jr + 1),
|
|
17607
|
+
Se + 1
|
|
17604
17608
|
), et = Ke.slice(
|
|
17605
|
-
Math.max(0,
|
|
17606
|
-
|
|
17609
|
+
Math.max(0, Se - 49),
|
|
17610
|
+
Se + 1
|
|
17607
17611
|
);
|
|
17608
17612
|
if (he(Xe.length), Oe(
|
|
17609
17613
|
Xe.map((Ne) => ({
|
|
@@ -17675,27 +17679,27 @@ const fl = (e) => ({
|
|
|
17675
17679
|
await de.setVisibleRange({
|
|
17676
17680
|
from: $e - Ue * (Je + 100),
|
|
17677
17681
|
to: $e + Ue * Math.max(20, Math.floor(Et / 3))
|
|
17678
|
-
}), await
|
|
17679
|
-
} catch (
|
|
17680
|
-
console.error("Error loading history for custom window size:",
|
|
17682
|
+
}), await yT(de);
|
|
17683
|
+
} catch (Se) {
|
|
17684
|
+
console.error("Error loading history for custom window size:", Se);
|
|
17681
17685
|
}
|
|
17682
17686
|
};
|
|
17683
17687
|
try {
|
|
17684
17688
|
await Ke(ke);
|
|
17685
|
-
let { data: Je } = await de.exportData(),
|
|
17689
|
+
let { data: Je } = await de.exportData(), Se = li(
|
|
17686
17690
|
Je,
|
|
17687
17691
|
$e,
|
|
17688
17692
|
Ve
|
|
17689
17693
|
);
|
|
17690
|
-
|
|
17694
|
+
Se === -1 && (Se = Je.length - 1), Se + 1 < ke && (await Ke(ke + 200), { data: Je } = await de.exportData(), Se = li(
|
|
17691
17695
|
Je,
|
|
17692
17696
|
$e,
|
|
17693
17697
|
Ve
|
|
17694
|
-
),
|
|
17695
|
-
const Xe =
|
|
17698
|
+
), Se === -1 && (Se = Je.length - 1));
|
|
17699
|
+
const Xe = Se + 1;
|
|
17696
17700
|
let et = ke;
|
|
17697
17701
|
if (Xe < ke) {
|
|
17698
|
-
const wn =
|
|
17702
|
+
const wn = bT(Xe);
|
|
17699
17703
|
if (!wn) {
|
|
17700
17704
|
const ot = tc();
|
|
17701
17705
|
un({
|
|
@@ -17708,8 +17712,8 @@ const fl = (e) => ({
|
|
|
17708
17712
|
et = wn;
|
|
17709
17713
|
}
|
|
17710
17714
|
const Ne = Je.slice(
|
|
17711
|
-
Math.max(0,
|
|
17712
|
-
|
|
17715
|
+
Math.max(0, Se - et + 1),
|
|
17716
|
+
Se + 1
|
|
17713
17717
|
);
|
|
17714
17718
|
if (!Ne.length || Ne.length !== et)
|
|
17715
17719
|
return;
|
|
@@ -17720,7 +17724,7 @@ const fl = (e) => ({
|
|
|
17720
17724
|
Ve
|
|
17721
17725
|
)
|
|
17722
17726
|
), he(et), Oe(Ne.map(fl)), z(
|
|
17723
|
-
Je.slice(Math.max(0,
|
|
17727
|
+
Je.slice(Math.max(0, Se - 49), Se + 1).map(fl)
|
|
17724
17728
|
), X(!0), M.current = Ne[Ne.length - 1][0];
|
|
17725
17729
|
} finally {
|
|
17726
17730
|
v.current = !1, S.current = Date.now() + 800;
|
|
@@ -17730,27 +17734,27 @@ const fl = (e) => ({
|
|
|
17730
17734
|
if (!(x.current || v.current) && !(Date.now() < S.current) && (Ve === "remove" && (w.current === ke && (w.current = null), X(!1)), Ve === "points_changed" && de.getAllShapes().filter((Ue) => Ue.name === "date_range").some((Ue) => Ue.id === ke) && e)) {
|
|
17731
17735
|
const Ue = de.getShapeById(ke);
|
|
17732
17736
|
if (!Ue) return;
|
|
17733
|
-
const $e = Ue.getPoints(), Ke = $e[0].time, Je = $e[1].time, { data:
|
|
17737
|
+
const $e = Ue.getPoints(), Ke = $e[0].time, Je = $e[1].time, { data: Se } = await de.exportData(), Xe = de.resolution();
|
|
17734
17738
|
let et = li(
|
|
17735
|
-
|
|
17739
|
+
Se,
|
|
17736
17740
|
Je,
|
|
17737
17741
|
Xe
|
|
17738
17742
|
), Ne = li(
|
|
17739
|
-
|
|
17743
|
+
Se,
|
|
17740
17744
|
Ke,
|
|
17741
17745
|
Xe
|
|
17742
17746
|
);
|
|
17743
|
-
et === -1 && (et =
|
|
17744
|
-
const wn =
|
|
17745
|
-
|
|
17747
|
+
et === -1 && (et = Se.length - 2, Ne = Se.length - 1 - Jr), et >= Se.length - 1 && (et = Math.max(0, Se.length - 2));
|
|
17748
|
+
const wn = gT(
|
|
17749
|
+
Se.slice(Math.max(0, Ne), et + 1).length
|
|
17746
17750
|
);
|
|
17747
17751
|
w.current && de.removeEntity(w.current), Oi(), w.current = null;
|
|
17748
|
-
const ot =
|
|
17752
|
+
const ot = Se.slice(
|
|
17749
17753
|
Math.max(0, et - wn),
|
|
17750
17754
|
et + 1
|
|
17751
17755
|
);
|
|
17752
17756
|
if (!ot.length) return;
|
|
17753
|
-
const Ii =
|
|
17757
|
+
const Ii = Se.slice(
|
|
17754
17758
|
Math.max(0, et - 49),
|
|
17755
17759
|
et + 1
|
|
17756
17760
|
);
|
|
@@ -17873,7 +17877,7 @@ const fl = (e) => ({
|
|
|
17873
17877
|
W,
|
|
17874
17878
|
o,
|
|
17875
17879
|
qe,
|
|
17876
|
-
|
|
17880
|
+
Pe,
|
|
17877
17881
|
p,
|
|
17878
17882
|
Kt
|
|
17879
17883
|
), ye(() => {
|
|
@@ -17962,7 +17966,7 @@ const fl = (e) => ({
|
|
|
17962
17966
|
}
|
|
17963
17967
|
}
|
|
17964
17968
|
}, [e]), In = p == null ? !0 : p.includes(String(F)), xt = !dn(String(F)) && !hn(String(F));
|
|
17965
|
-
return /* @__PURE__ */ h.jsx(
|
|
17969
|
+
return /* @__PURE__ */ h.jsx(hT, { language: y, children: /* @__PURE__ */ h.jsxs(
|
|
17966
17970
|
"div",
|
|
17967
17971
|
{
|
|
17968
17972
|
ref: q,
|
|
@@ -17985,13 +17989,13 @@ const fl = (e) => ({
|
|
|
17985
17989
|
pendingScanAfterConfig: Ae,
|
|
17986
17990
|
onPendingScanHandled: tn,
|
|
17987
17991
|
triggerScanner: tt,
|
|
17988
|
-
window_size:
|
|
17992
|
+
window_size: ve,
|
|
17989
17993
|
currentSymbol: $,
|
|
17990
17994
|
resolution: F,
|
|
17991
17995
|
timeframe: N,
|
|
17992
17996
|
chartWidget: e,
|
|
17993
17997
|
candles: Te,
|
|
17994
|
-
handleStartDrag:
|
|
17998
|
+
handleStartDrag: xe,
|
|
17995
17999
|
handleStopDrag: Fe,
|
|
17996
18000
|
hasActiveShape: fe,
|
|
17997
18001
|
theme: j,
|
|
@@ -18032,7 +18036,7 @@ const fl = (e) => ({
|
|
|
18032
18036
|
}
|
|
18033
18037
|
),
|
|
18034
18038
|
ee && K && /* @__PURE__ */ h.jsx(
|
|
18035
|
-
|
|
18039
|
+
dT,
|
|
18036
18040
|
{
|
|
18037
18041
|
event: K,
|
|
18038
18042
|
symbol: $ || localStorage.getItem("tv:latest-symbol") || "XAU_USD",
|
|
@@ -18054,7 +18058,7 @@ const fl = (e) => ({
|
|
|
18054
18058
|
]
|
|
18055
18059
|
}
|
|
18056
18060
|
) });
|
|
18057
|
-
},
|
|
18061
|
+
}, _T = (e) => {
|
|
18058
18062
|
const t = e?.contentWindow;
|
|
18059
18063
|
if (!t || !e?.src) return;
|
|
18060
18064
|
const n = new URL(e.src).origin, i = () => t.postMessage(
|
|
@@ -18075,8 +18079,8 @@ const fl = (e) => ({
|
|
|
18075
18079
|
(s) => o.searchParams.delete(s)
|
|
18076
18080
|
), window.history.replaceState({}, "", o);
|
|
18077
18081
|
}
|
|
18078
|
-
},
|
|
18079
|
-
function
|
|
18082
|
+
}, vT = 60;
|
|
18083
|
+
function wT(e) {
|
|
18080
18084
|
const t = e.split(".")[1];
|
|
18081
18085
|
if (!t) return null;
|
|
18082
18086
|
try {
|
|
@@ -18087,15 +18091,15 @@ function vT(e) {
|
|
|
18087
18091
|
}
|
|
18088
18092
|
}
|
|
18089
18093
|
function gd(e) {
|
|
18090
|
-
const t =
|
|
18091
|
-
return t?.exp ? t.exp -
|
|
18094
|
+
const t = wT(e);
|
|
18095
|
+
return t?.exp ? t.exp - vT > Math.floor(Date.now() / 1e3) : !1;
|
|
18092
18096
|
}
|
|
18093
18097
|
function gl() {
|
|
18094
18098
|
if (typeof window > "u") return null;
|
|
18095
18099
|
const e = localStorage.getItem(Hn);
|
|
18096
18100
|
return !e || !gd(e) ? null : e;
|
|
18097
18101
|
}
|
|
18098
|
-
function
|
|
18102
|
+
function qT() {
|
|
18099
18103
|
const [e, t] = ue(gl);
|
|
18100
18104
|
return ye(() => {
|
|
18101
18105
|
const n = (a) => {
|
|
@@ -18131,9 +18135,9 @@ function _T() {
|
|
|
18131
18135
|
export {
|
|
18132
18136
|
Hn as ICCANDLE_TOKEN_KEY,
|
|
18133
18137
|
cn as WIDGET_RESULT_URL,
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18138
|
+
WT as WidgetIccandle,
|
|
18139
|
+
YT as getCustomIndicators,
|
|
18140
|
+
_T as handleResultIframeLoad,
|
|
18141
|
+
qT as useICCandleAuth,
|
|
18142
|
+
zT as withPlayChart
|
|
18139
18143
|
};
|