@iccandle/widget-web-trading 0.0.3 → 0.0.5
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/web-trading-widget.cjs +6 -6
- package/dist/web-trading-widget.css +1 -1
- package/dist/web-trading-widget.js +303 -292
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var bi = (e, t, n, r) => ({
|
|
|
13
13
|
return C(e, t, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { jsx as p, jsxs as R, Fragment as
|
|
16
|
+
import { jsx as p, jsxs as R, Fragment as Ge } from "react/jsx-runtime";
|
|
17
17
|
import * as _ from "react";
|
|
18
18
|
import oi, { useState as Y, useLayoutEffect as Oh, forwardRef as ai, createElement as fn, useEffect as se, useRef as Te, useCallback as oe, useMemo as Re, createContext as ya, useContext as ba } from "react";
|
|
19
19
|
import * as ci from "react-dom";
|
|
@@ -928,7 +928,7 @@ function ke(e) {
|
|
|
928
928
|
return t.isThemeGetter = !0, t;
|
|
929
929
|
}
|
|
930
930
|
var Zd = /^\[(?:([a-z-]+):)?(.+)\]$/i, tm = /^\d+\/\d+$/, nm = /* @__PURE__ */ new Set(["px", "full", "screen"]), rm = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, im = /\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$/, sm = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
931
|
-
function
|
|
931
|
+
function mt(e) {
|
|
932
932
|
return Cn(e) || nm.has(e) || tm.test(e) || Eo(e);
|
|
933
933
|
}
|
|
934
934
|
function Eo(e) {
|
|
@@ -996,7 +996,7 @@ function hm() {
|
|
|
996
996
|
}, L = function() {
|
|
997
997
|
return [ge, t];
|
|
998
998
|
}, B = function() {
|
|
999
|
-
return ["",
|
|
999
|
+
return ["", mt];
|
|
1000
1000
|
}, I = function() {
|
|
1001
1001
|
return ["auto", Cn, ge];
|
|
1002
1002
|
}, H = function() {
|
|
@@ -1020,7 +1020,7 @@ function hm() {
|
|
|
1020
1020
|
cacheSize: 500,
|
|
1021
1021
|
theme: {
|
|
1022
1022
|
colors: [Ur],
|
|
1023
|
-
spacing: [
|
|
1023
|
+
spacing: [mt],
|
|
1024
1024
|
blur: ["none", "", qt, ge],
|
|
1025
1025
|
brightness: M(),
|
|
1026
1026
|
borderColor: [e],
|
|
@@ -1640,7 +1640,7 @@ function hm() {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/min-width
|
|
1641
1641
|
*/
|
|
1642
1642
|
"min-w": [{
|
|
1643
|
-
"min-w": ["min", "max", "fit", ge,
|
|
1643
|
+
"min-w": ["min", "max", "fit", ge, mt]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Max-Width
|
|
@@ -1663,7 +1663,7 @@ function hm() {
|
|
|
1663
1663
|
* @see https://tailwindcss.com/docs/min-height
|
|
1664
1664
|
*/
|
|
1665
1665
|
"min-h": [{
|
|
1666
|
-
"min-h": ["min", "max", "fit", ge,
|
|
1666
|
+
"min-h": ["min", "max", "fit", ge, mt]
|
|
1667
1667
|
}],
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Max-Height
|
|
@@ -1753,7 +1753,7 @@ function hm() {
|
|
|
1753
1753
|
* @see https://tailwindcss.com/docs/line-height
|
|
1754
1754
|
*/
|
|
1755
1755
|
leading: [{
|
|
1756
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ge,
|
|
1756
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ge, mt]
|
|
1757
1757
|
}],
|
|
1758
1758
|
/**
|
|
1759
1759
|
* List Style Image
|
|
@@ -1829,14 +1829,14 @@ function hm() {
|
|
|
1829
1829
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1830
1830
|
*/
|
|
1831
1831
|
"text-decoration-thickness": [{
|
|
1832
|
-
decoration: ["auto", "from-font",
|
|
1832
|
+
decoration: ["auto", "from-font", mt]
|
|
1833
1833
|
}],
|
|
1834
1834
|
/**
|
|
1835
1835
|
* Text Underline Offset
|
|
1836
1836
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1837
1837
|
*/
|
|
1838
1838
|
"underline-offset": [{
|
|
1839
|
-
"underline-offset": ["auto", ge,
|
|
1839
|
+
"underline-offset": ["auto", ge, mt]
|
|
1840
1840
|
}],
|
|
1841
1841
|
/**
|
|
1842
1842
|
* Text Decoration Color
|
|
@@ -2297,14 +2297,14 @@ function hm() {
|
|
|
2297
2297
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2298
2298
|
*/
|
|
2299
2299
|
"outline-offset": [{
|
|
2300
|
-
"outline-offset": [ge,
|
|
2300
|
+
"outline-offset": [ge, mt]
|
|
2301
2301
|
}],
|
|
2302
2302
|
/**
|
|
2303
2303
|
* Outline Width
|
|
2304
2304
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2305
2305
|
*/
|
|
2306
2306
|
"outline-w": [{
|
|
2307
|
-
outline: [
|
|
2307
|
+
outline: [mt]
|
|
2308
2308
|
}],
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Outline Color
|
|
@@ -2344,7 +2344,7 @@ function hm() {
|
|
|
2344
2344
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2345
2345
|
*/
|
|
2346
2346
|
"ring-offset-w": [{
|
|
2347
|
-
"ring-offset": [
|
|
2347
|
+
"ring-offset": [mt]
|
|
2348
2348
|
}],
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Ring Offset Color
|
|
@@ -2920,7 +2920,7 @@ function hm() {
|
|
|
2920
2920
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2921
2921
|
*/
|
|
2922
2922
|
"stroke-w": [{
|
|
2923
|
-
stroke: [
|
|
2923
|
+
stroke: [mt, wi]
|
|
2924
2924
|
}],
|
|
2925
2925
|
/**
|
|
2926
2926
|
* Stroke
|
|
@@ -3027,7 +3027,7 @@ const gm = ({ className: e = "" }) => /* @__PURE__ */ p(
|
|
|
3027
3027
|
size: "default"
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
|
-
),
|
|
3030
|
+
), ft = _.forwardRef(
|
|
3031
3031
|
({
|
|
3032
3032
|
children: e,
|
|
3033
3033
|
className: t,
|
|
@@ -3047,7 +3047,7 @@ const gm = ({ className: e = "" }) => /* @__PURE__ */ p(
|
|
|
3047
3047
|
disabled: i || o,
|
|
3048
3048
|
...l,
|
|
3049
3049
|
children: [
|
|
3050
|
-
i && /* @__PURE__ */ R(
|
|
3050
|
+
i && /* @__PURE__ */ R(Ge, { children: [
|
|
3051
3051
|
/* @__PURE__ */ p("div", { className: "absolute left-0 z-10 h-full w-full rounded-md bg-white" }),
|
|
3052
3052
|
/* @__PURE__ */ p(
|
|
3053
3053
|
"span",
|
|
@@ -3065,7 +3065,7 @@ const gm = ({ className: e = "" }) => /* @__PURE__ */ p(
|
|
|
3065
3065
|
}
|
|
3066
3066
|
)
|
|
3067
3067
|
);
|
|
3068
|
-
|
|
3068
|
+
ft.displayName = "Button";
|
|
3069
3069
|
function Pe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3070
3070
|
return function(i) {
|
|
3071
3071
|
if (e == null || e(i), n === !1 || !i.defaultPrevented)
|
|
@@ -3642,13 +3642,13 @@ function Gm(e) {
|
|
|
3642
3642
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3643
3643
|
return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3644
3644
|
}
|
|
3645
|
-
var Si = 0,
|
|
3645
|
+
var Si = 0, Tt = null;
|
|
3646
3646
|
function Jd() {
|
|
3647
3647
|
_.useEffect(() => {
|
|
3648
|
-
|
|
3649
|
-
const { start: e, end: t } =
|
|
3648
|
+
Tt || (Tt = { start: zc(), end: zc() });
|
|
3649
|
+
const { start: e, end: t } = Tt;
|
|
3650
3650
|
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), Si++, () => {
|
|
3651
|
-
Si === 1 && (
|
|
3651
|
+
Si === 1 && (Tt == null || Tt.start.remove(), Tt == null || Tt.end.remove(), Tt = null), Si = Math.max(0, Si - 1);
|
|
3652
3652
|
};
|
|
3653
3653
|
}, []);
|
|
3654
3654
|
}
|
|
@@ -3656,14 +3656,14 @@ function zc() {
|
|
|
3656
3656
|
const e = document.createElement("span");
|
|
3657
3657
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3660
|
-
return
|
|
3659
|
+
var Nt = function() {
|
|
3660
|
+
return Nt = Object.assign || function(t) {
|
|
3661
3661
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
3662
3662
|
n = arguments[r];
|
|
3663
3663
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
3664
3664
|
}
|
|
3665
3665
|
return t;
|
|
3666
|
-
},
|
|
3666
|
+
}, Nt.apply(this, arguments);
|
|
3667
3667
|
};
|
|
3668
3668
|
function eu(e, t) {
|
|
3669
3669
|
var n = {};
|
|
@@ -3784,7 +3784,7 @@ function eg(e, t) {
|
|
|
3784
3784
|
function tg(e) {
|
|
3785
3785
|
e === void 0 && (e = {});
|
|
3786
3786
|
var t = eg(null);
|
|
3787
|
-
return t.options =
|
|
3787
|
+
return t.options = Nt({ async: !0, ssr: !1 }, e), t;
|
|
3788
3788
|
}
|
|
3789
3789
|
var tu = function(e) {
|
|
3790
3790
|
var t = e.sideCar, n = eu(e, ["sideCar"]);
|
|
@@ -3793,7 +3793,7 @@ var tu = function(e) {
|
|
|
3793
3793
|
var r = t.read();
|
|
3794
3794
|
if (!r)
|
|
3795
3795
|
throw new Error("Sidecar medium not found");
|
|
3796
|
-
return _.createElement(r,
|
|
3796
|
+
return _.createElement(r, Nt({}, n));
|
|
3797
3797
|
};
|
|
3798
3798
|
tu.isSideCarExport = !0;
|
|
3799
3799
|
function ng(e, t) {
|
|
@@ -3805,12 +3805,12 @@ var nu = tg(), Xs = function() {
|
|
|
3805
3805
|
onScrollCapture: Xs,
|
|
3806
3806
|
onWheelCapture: Xs,
|
|
3807
3807
|
onTouchMoveCapture: Xs
|
|
3808
|
-
}), i = r[0], s = r[1], o = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, m = e.sideCar, h = e.noRelative, g = e.noIsolation, f = e.inert, y = e.allowPinchZoom, b = e.as, v = b === void 0 ? "div" : b, S = e.gapMode, w = eu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = m, P = Xm([n, t]), E =
|
|
3808
|
+
}), i = r[0], s = r[1], o = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, m = e.sideCar, h = e.noRelative, g = e.noIsolation, f = e.inert, y = e.allowPinchZoom, b = e.as, v = b === void 0 ? "div" : b, S = e.gapMode, w = eu(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = m, P = Xm([n, t]), E = Nt(Nt({}, w), i);
|
|
3809
3809
|
return _.createElement(
|
|
3810
3810
|
_.Fragment,
|
|
3811
3811
|
null,
|
|
3812
3812
|
d && _.createElement(x, { sideCar: nu, removeScrollBar: l, shards: u, noRelative: h, noIsolation: g, inert: f, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: S }),
|
|
3813
|
-
o ? _.cloneElement(_.Children.only(a),
|
|
3813
|
+
o ? _.cloneElement(_.Children.only(a), Nt(Nt({}, E), { ref: P })) : _.createElement(v, Nt({}, E, { className: c, ref: P }), a)
|
|
3814
3814
|
);
|
|
3815
3815
|
});
|
|
3816
3816
|
vs.defaultProps = {
|
|
@@ -4128,7 +4128,7 @@ function Pg(e) {
|
|
|
4128
4128
|
}
|
|
4129
4129
|
const Og = ng(nu, Tg);
|
|
4130
4130
|
var Ca = _.forwardRef(function(e, t) {
|
|
4131
|
-
return _.createElement(vs,
|
|
4131
|
+
return _.createElement(vs, Nt({}, e, { ref: t, sideCar: Og }));
|
|
4132
4132
|
});
|
|
4133
4133
|
Ca.classNames = vs.classNames;
|
|
4134
4134
|
var kg = function(e) {
|
|
@@ -4179,7 +4179,7 @@ var kg = function(e) {
|
|
|
4179
4179
|
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Rg(r, i, n, "aria-hidden")) : function() {
|
|
4180
4180
|
return null;
|
|
4181
4181
|
};
|
|
4182
|
-
}, ws = "Dialog", [lu] = Or(ws), [Ng,
|
|
4182
|
+
}, ws = "Dialog", [lu] = Or(ws), [Ng, St] = lu(ws), du = (e) => {
|
|
4183
4183
|
const {
|
|
4184
4184
|
__scopeDialog: t,
|
|
4185
4185
|
children: n,
|
|
@@ -4213,7 +4213,7 @@ var kg = function(e) {
|
|
|
4213
4213
|
du.displayName = ws;
|
|
4214
4214
|
var uu = "DialogTrigger", Dg = _.forwardRef(
|
|
4215
4215
|
(e, t) => {
|
|
4216
|
-
const { __scopeDialog: n, ...r } = e, i =
|
|
4216
|
+
const { __scopeDialog: n, ...r } = e, i = St(uu, n), s = Ne(t, i.triggerRef);
|
|
4217
4217
|
return /* @__PURE__ */ p(
|
|
4218
4218
|
Se.button,
|
|
4219
4219
|
{
|
|
@@ -4233,20 +4233,20 @@ Dg.displayName = uu;
|
|
|
4233
4233
|
var Ea = "DialogPortal", [Lg, fu] = lu(Ea, {
|
|
4234
4234
|
forceMount: void 0
|
|
4235
4235
|
}), pu = (e) => {
|
|
4236
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: i } = e, s =
|
|
4236
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: i } = e, s = St(Ea, t);
|
|
4237
4237
|
return /* @__PURE__ */ p(Lg, { scope: t, forceMount: n, children: _.Children.map(r, (o) => /* @__PURE__ */ p(kr, { present: n || s.open, children: /* @__PURE__ */ p(xa, { asChild: !0, container: i, children: o }) })) });
|
|
4238
4238
|
};
|
|
4239
4239
|
pu.displayName = Ea;
|
|
4240
4240
|
var Zi = "DialogOverlay", Ta = _.forwardRef(
|
|
4241
4241
|
(e, t) => {
|
|
4242
|
-
const n = fu(Zi, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s =
|
|
4242
|
+
const n = fu(Zi, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s = St(Zi, e.__scopeDialog);
|
|
4243
4243
|
return s.modal ? /* @__PURE__ */ p(kr, { present: r || s.open, children: /* @__PURE__ */ p(Mg, { ...i, ref: t }) }) : null;
|
|
4244
4244
|
}
|
|
4245
4245
|
);
|
|
4246
4246
|
Ta.displayName = Zi;
|
|
4247
4247
|
var Ig = /* @__PURE__ */ yr("DialogOverlay.RemoveScroll"), Mg = _.forwardRef(
|
|
4248
4248
|
(e, t) => {
|
|
4249
|
-
const { __scopeDialog: n, ...r } = e, i =
|
|
4249
|
+
const { __scopeDialog: n, ...r } = e, i = St(Zi, n), s = Nm(), o = Ne(t, s);
|
|
4250
4250
|
return (
|
|
4251
4251
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4252
4252
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -4263,14 +4263,14 @@ var Ig = /* @__PURE__ */ yr("DialogOverlay.RemoveScroll"), Mg = _.forwardRef(
|
|
|
4263
4263
|
}
|
|
4264
4264
|
), vr = "DialogContent", Pa = _.forwardRef(
|
|
4265
4265
|
(e, t) => {
|
|
4266
|
-
const n = fu(vr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s =
|
|
4266
|
+
const n = fu(vr, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, s = St(vr, e.__scopeDialog);
|
|
4267
4267
|
return /* @__PURE__ */ p(kr, { present: r || s.open, children: s.modal ? /* @__PURE__ */ p(Ug, { ...i, ref: t }) : /* @__PURE__ */ p(Fg, { ...i, ref: t }) });
|
|
4268
4268
|
}
|
|
4269
4269
|
);
|
|
4270
4270
|
Pa.displayName = vr;
|
|
4271
4271
|
var Ug = _.forwardRef(
|
|
4272
4272
|
(e, t) => {
|
|
4273
|
-
const n =
|
|
4273
|
+
const n = St(vr, e.__scopeDialog), r = _.useRef(null), i = Ne(t, n.contentRef, r);
|
|
4274
4274
|
return _.useEffect(() => {
|
|
4275
4275
|
const s = r.current;
|
|
4276
4276
|
if (s) return cu(s);
|
|
@@ -4298,7 +4298,7 @@ var Ug = _.forwardRef(
|
|
|
4298
4298
|
}
|
|
4299
4299
|
), Fg = _.forwardRef(
|
|
4300
4300
|
(e, t) => {
|
|
4301
|
-
const n =
|
|
4301
|
+
const n = St(vr, e.__scopeDialog), r = _.useRef(!1), i = _.useRef(!1);
|
|
4302
4302
|
return /* @__PURE__ */ p(
|
|
4303
4303
|
hu,
|
|
4304
4304
|
{
|
|
@@ -4321,8 +4321,8 @@ var Ug = _.forwardRef(
|
|
|
4321
4321
|
}
|
|
4322
4322
|
), hu = _.forwardRef(
|
|
4323
4323
|
(e, t) => {
|
|
4324
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: s, ...o } = e, a =
|
|
4325
|
-
return Jd(), /* @__PURE__ */ p(
|
|
4324
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: s, ...o } = e, a = St(vr, n);
|
|
4325
|
+
return Jd(), /* @__PURE__ */ p(Ge, { children: /* @__PURE__ */ p(
|
|
4326
4326
|
Sa,
|
|
4327
4327
|
{
|
|
4328
4328
|
asChild: !0,
|
|
@@ -4349,21 +4349,21 @@ var Ug = _.forwardRef(
|
|
|
4349
4349
|
}
|
|
4350
4350
|
), mu = "DialogTitle", Oa = _.forwardRef(
|
|
4351
4351
|
(e, t) => {
|
|
4352
|
-
const { __scopeDialog: n, ...r } = e, i =
|
|
4352
|
+
const { __scopeDialog: n, ...r } = e, i = St(mu, n);
|
|
4353
4353
|
return /* @__PURE__ */ p(Se.h2, { id: i.titleId, ...r, ref: t });
|
|
4354
4354
|
}
|
|
4355
4355
|
);
|
|
4356
4356
|
Oa.displayName = mu;
|
|
4357
4357
|
var gu = "DialogDescription", ka = _.forwardRef(
|
|
4358
4358
|
(e, t) => {
|
|
4359
|
-
const { __scopeDialog: n, ...r } = e, i =
|
|
4359
|
+
const { __scopeDialog: n, ...r } = e, i = St(gu, n);
|
|
4360
4360
|
return /* @__PURE__ */ p(Se.p, { id: i.descriptionId, ...r, ref: t });
|
|
4361
4361
|
}
|
|
4362
4362
|
);
|
|
4363
4363
|
ka.displayName = gu;
|
|
4364
4364
|
var yu = "DialogClose", Bg = _.forwardRef(
|
|
4365
4365
|
(e, t) => {
|
|
4366
|
-
const { __scopeDialog: n, ...r } = e, i =
|
|
4366
|
+
const { __scopeDialog: n, ...r } = e, i = St(yu, n);
|
|
4367
4367
|
return /* @__PURE__ */ p(
|
|
4368
4368
|
Se.button,
|
|
4369
4369
|
{
|
|
@@ -4499,12 +4499,12 @@ function Ra(e) {
|
|
|
4499
4499
|
function Na(e) {
|
|
4500
4500
|
return e === "y" ? "height" : "width";
|
|
4501
4501
|
}
|
|
4502
|
-
function
|
|
4502
|
+
function Dt(e) {
|
|
4503
4503
|
const t = e[0];
|
|
4504
4504
|
return t === "t" || t === "b" ? "y" : "x";
|
|
4505
4505
|
}
|
|
4506
4506
|
function Da(e) {
|
|
4507
|
-
return Ra(
|
|
4507
|
+
return Ra(Dt(e));
|
|
4508
4508
|
}
|
|
4509
4509
|
function Wg(e, t, n) {
|
|
4510
4510
|
n === void 0 && (n = !1);
|
|
@@ -4581,7 +4581,7 @@ function Jc(e, t, n) {
|
|
|
4581
4581
|
reference: r,
|
|
4582
4582
|
floating: i
|
|
4583
4583
|
} = e;
|
|
4584
|
-
const s =
|
|
4584
|
+
const s = Dt(t), o = Da(t), a = Na(o), c = Vt(t), l = s === "y", d = r.x + r.width / 2 - i.width / 2, u = r.y + r.height / 2 - i.height / 2, m = r[a] / 2 - i[a] / 2;
|
|
4585
4585
|
let h;
|
|
4586
4586
|
switch (c) {
|
|
4587
4587
|
case "top":
|
|
@@ -4794,7 +4794,7 @@ const Jg = 50, ey = async (e, t, n) => {
|
|
|
4794
4794
|
} = jt(e, t);
|
|
4795
4795
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4796
4796
|
return {};
|
|
4797
|
-
const b = Vt(i), v =
|
|
4797
|
+
const b = Vt(i), v = Dt(a), S = Vt(a) === a, w = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = m || (S || !f ? [Qi(a)] : Gg(a)), P = g !== "none";
|
|
4798
4798
|
!m && P && x.push(...Yg(a, f, g, w));
|
|
4799
4799
|
const E = [a, ...x], A = await c.detectOverflow(t, y), k = [];
|
|
4800
4800
|
let O = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -4808,9 +4808,9 @@ const Jg = 50, ey = async (e, t, n) => {
|
|
|
4808
4808
|
}], !k.every((I) => I <= 0)) {
|
|
4809
4809
|
var D, L;
|
|
4810
4810
|
const I = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, H = E[I];
|
|
4811
|
-
if (H && (!(u === "alignment" ? v !==
|
|
4811
|
+
if (H && (!(u === "alignment" ? v !== Dt(H) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4812
4812
|
// overflows the main axis.
|
|
4813
|
-
O.every((N) =>
|
|
4813
|
+
O.every((N) => Dt(N.placement) === v ? N.overflows[0] > 0 : !0)))
|
|
4814
4814
|
return {
|
|
4815
4815
|
data: {
|
|
4816
4816
|
index: I,
|
|
@@ -4827,7 +4827,7 @@ const Jg = 50, ey = async (e, t, n) => {
|
|
|
4827
4827
|
var B;
|
|
4828
4828
|
const U = (B = O.filter((N) => {
|
|
4829
4829
|
if (P) {
|
|
4830
|
-
const F =
|
|
4830
|
+
const F = Dt(N.placement);
|
|
4831
4831
|
return F === v || // Create a bias to the `y` side axis due to horizontal
|
|
4832
4832
|
// reading directions favoring greater width.
|
|
4833
4833
|
F === "y";
|
|
@@ -4911,7 +4911,7 @@ async function iy(e, t) {
|
|
|
4911
4911
|
placement: n,
|
|
4912
4912
|
platform: r,
|
|
4913
4913
|
elements: i
|
|
4914
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Vt(n), a = Ar(n), c =
|
|
4914
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Vt(n), a = Ar(n), c = Dt(n) === "y", l = Pu.has(o) ? -1 : 1, d = s && c ? -1 : 1, u = jt(t, e);
|
|
4915
4915
|
let {
|
|
4916
4916
|
mainAxis: m,
|
|
4917
4917
|
crossAxis: h,
|
|
@@ -4984,7 +4984,7 @@ const sy = function(e) {
|
|
|
4984
4984
|
} = jt(e, t), d = {
|
|
4985
4985
|
x: n,
|
|
4986
4986
|
y: r
|
|
4987
|
-
}, u = await s.detectOverflow(t, l), m =
|
|
4987
|
+
}, u = await s.detectOverflow(t, l), m = Dt(Vt(i)), h = Ra(m);
|
|
4988
4988
|
let g = d[h], f = d[m];
|
|
4989
4989
|
if (o) {
|
|
4990
4990
|
const b = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", S = g + u[b], w = g - u[v];
|
|
@@ -5029,7 +5029,7 @@ const sy = function(e) {
|
|
|
5029
5029
|
} = jt(e, t), d = {
|
|
5030
5030
|
x: n,
|
|
5031
5031
|
y: r
|
|
5032
|
-
}, u =
|
|
5032
|
+
}, u = Dt(i), m = Ra(u);
|
|
5033
5033
|
let h = d[m], g = d[u];
|
|
5034
5034
|
const f = jt(a, t), y = typeof f == "number" ? {
|
|
5035
5035
|
mainAxis: f,
|
|
@@ -5069,7 +5069,7 @@ const sy = function(e) {
|
|
|
5069
5069
|
apply: c = () => {
|
|
5070
5070
|
},
|
|
5071
5071
|
...l
|
|
5072
|
-
} = jt(e, t), d = await o.detectOverflow(t, l), u = Vt(i), m = Ar(i), h =
|
|
5072
|
+
} = jt(e, t), d = await o.detectOverflow(t, l), u = Vt(i), m = Ar(i), h = Dt(i) === "y", {
|
|
5073
5073
|
width: g,
|
|
5074
5074
|
height: f
|
|
5075
5075
|
} = s.floating;
|
|
@@ -5112,7 +5112,7 @@ function Mt(e) {
|
|
|
5112
5112
|
function Ou(e) {
|
|
5113
5113
|
return _s() ? e instanceof Node || e instanceof ct(e).Node : !1;
|
|
5114
5114
|
}
|
|
5115
|
-
function
|
|
5115
|
+
function wt(e) {
|
|
5116
5116
|
return _s() ? e instanceof Element || e instanceof ct(e).Element : !1;
|
|
5117
5117
|
}
|
|
5118
5118
|
function zt(e) {
|
|
@@ -5127,7 +5127,7 @@ function li(e) {
|
|
|
5127
5127
|
overflowX: n,
|
|
5128
5128
|
overflowY: r,
|
|
5129
5129
|
display: i
|
|
5130
|
-
} =
|
|
5130
|
+
} = _t(e);
|
|
5131
5131
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
5132
5132
|
}
|
|
5133
5133
|
function ly(e) {
|
|
@@ -5148,7 +5148,7 @@ function Ss(e) {
|
|
|
5148
5148
|
const dy = /transform|translate|scale|rotate|perspective|filter/, uy = /paint|layout|strict|content/, xn = (e) => !!e && e !== "none";
|
|
5149
5149
|
let to;
|
|
5150
5150
|
function La(e) {
|
|
5151
|
-
const t =
|
|
5151
|
+
const t = wt(e) ? _t(e) : e;
|
|
5152
5152
|
return xn(t.transform) || xn(t.translate) || xn(t.scale) || xn(t.rotate) || xn(t.perspective) || !Ia() && (xn(t.backdropFilter) || xn(t.filter)) || dy.test(t.willChange || "") || uy.test(t.contain || "");
|
|
5153
5153
|
}
|
|
5154
5154
|
function fy(e) {
|
|
@@ -5168,11 +5168,11 @@ function Ia() {
|
|
|
5168
5168
|
function wr(e) {
|
|
5169
5169
|
return /^(html|body|#document)$/.test(Rr(e));
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5171
|
+
function _t(e) {
|
|
5172
5172
|
return ct(e).getComputedStyle(e);
|
|
5173
5173
|
}
|
|
5174
5174
|
function xs(e) {
|
|
5175
|
-
return
|
|
5175
|
+
return wt(e) ? {
|
|
5176
5176
|
scrollLeft: e.scrollLeft,
|
|
5177
5177
|
scrollTop: e.scrollTop
|
|
5178
5178
|
} : {
|
|
@@ -5210,7 +5210,7 @@ function Ao(e) {
|
|
|
5210
5210
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5211
5211
|
}
|
|
5212
5212
|
function Au(e) {
|
|
5213
|
-
const t =
|
|
5213
|
+
const t = _t(e);
|
|
5214
5214
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5215
5215
|
const i = zt(e), s = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, a = Yi(n) !== s || Yi(r) !== o;
|
|
5216
5216
|
return a && (n = s, r = o), {
|
|
@@ -5220,7 +5220,7 @@ function Au(e) {
|
|
|
5220
5220
|
};
|
|
5221
5221
|
}
|
|
5222
5222
|
function Ma(e) {
|
|
5223
|
-
return
|
|
5223
|
+
return wt(e) ? e : e.contextElement;
|
|
5224
5224
|
}
|
|
5225
5225
|
function rr(e) {
|
|
5226
5226
|
const t = Ma(e);
|
|
@@ -5252,14 +5252,14 @@ function $n(e, t, n, r) {
|
|
|
5252
5252
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5253
5253
|
const i = e.getBoundingClientRect(), s = Ma(e);
|
|
5254
5254
|
let o = Lt(1);
|
|
5255
|
-
t && (r ?
|
|
5255
|
+
t && (r ? wt(r) && (o = rr(r)) : o = rr(e));
|
|
5256
5256
|
const a = hy(s, n, r) ? Ru(s) : Lt(0);
|
|
5257
5257
|
let c = (i.left + a.x) / o.x, l = (i.top + a.y) / o.y, d = i.width / o.x, u = i.height / o.y;
|
|
5258
5258
|
if (s) {
|
|
5259
|
-
const m = ct(s), h = r &&
|
|
5259
|
+
const m = ct(s), h = r && wt(r) ? ct(r) : r;
|
|
5260
5260
|
let g = m, f = Ao(g);
|
|
5261
5261
|
for (; f && r && h !== g; ) {
|
|
5262
|
-
const y = rr(f), b = f.getBoundingClientRect(), v =
|
|
5262
|
+
const y = rr(f), b = f.getBoundingClientRect(), v = _t(f), S = b.left + (f.clientLeft + parseFloat(v.paddingLeft)) * y.x, w = b.top + (f.clientTop + parseFloat(v.paddingTop)) * y.y;
|
|
5263
5263
|
c *= y.x, l *= y.y, d *= y.x, u *= y.y, c += S, l += w, g = ct(f), f = Ao(g);
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
@@ -5315,7 +5315,7 @@ function yy(e) {
|
|
|
5315
5315
|
const t = Mt(e), n = xs(e), r = e.ownerDocument.body, i = at(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = at(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5316
5316
|
let o = -n.scrollLeft + Cs(e);
|
|
5317
5317
|
const a = -n.scrollTop;
|
|
5318
|
-
return
|
|
5318
|
+
return _t(r).direction === "rtl" && (o += at(t.clientWidth, r.clientWidth) - i), {
|
|
5319
5319
|
width: i,
|
|
5320
5320
|
height: s,
|
|
5321
5321
|
x: o,
|
|
@@ -5358,7 +5358,7 @@ function il(e, t, n) {
|
|
|
5358
5358
|
r = by(e, n);
|
|
5359
5359
|
else if (t === "document")
|
|
5360
5360
|
r = yy(Mt(e));
|
|
5361
|
-
else if (
|
|
5361
|
+
else if (wt(t))
|
|
5362
5362
|
r = vy(t, n);
|
|
5363
5363
|
else {
|
|
5364
5364
|
const i = Ru(e);
|
|
@@ -5373,17 +5373,17 @@ function il(e, t, n) {
|
|
|
5373
5373
|
}
|
|
5374
5374
|
function Du(e, t) {
|
|
5375
5375
|
const n = hn(e);
|
|
5376
|
-
return n === t || !
|
|
5376
|
+
return n === t || !wt(n) || wr(n) ? !1 : _t(n).position === "fixed" || Du(n, t);
|
|
5377
5377
|
}
|
|
5378
5378
|
function wy(e, t) {
|
|
5379
5379
|
const n = t.get(e);
|
|
5380
5380
|
if (n)
|
|
5381
5381
|
return n;
|
|
5382
|
-
let r = Wr(e, [], !1).filter((a) =>
|
|
5383
|
-
const s =
|
|
5382
|
+
let r = Wr(e, [], !1).filter((a) => wt(a) && Rr(a) !== "body"), i = null;
|
|
5383
|
+
const s = _t(e).position === "fixed";
|
|
5384
5384
|
let o = s ? hn(e) : e;
|
|
5385
|
-
for (;
|
|
5386
|
-
const a =
|
|
5385
|
+
for (; wt(o) && !wr(o); ) {
|
|
5386
|
+
const a = _t(o), c = La(o);
|
|
5387
5387
|
!c && a.position === "fixed" && (i = null), (s ? !c && !i : !c && a.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || li(o) && !c && Du(e, o)) ? r = r.filter((d) => d !== o) : i = a, o = hn(o);
|
|
5388
5388
|
}
|
|
5389
5389
|
return t.set(e, r), r;
|
|
@@ -5443,10 +5443,10 @@ function xy(e, t, n) {
|
|
|
5443
5443
|
};
|
|
5444
5444
|
}
|
|
5445
5445
|
function no(e) {
|
|
5446
|
-
return
|
|
5446
|
+
return _t(e).position === "static";
|
|
5447
5447
|
}
|
|
5448
5448
|
function sl(e, t) {
|
|
5449
|
-
if (!zt(e) ||
|
|
5449
|
+
if (!zt(e) || _t(e).position === "fixed")
|
|
5450
5450
|
return null;
|
|
5451
5451
|
if (t)
|
|
5452
5452
|
return t(e);
|
|
@@ -5460,7 +5460,7 @@ function Lu(e, t) {
|
|
|
5460
5460
|
if (!zt(e)) {
|
|
5461
5461
|
let i = hn(e);
|
|
5462
5462
|
for (; i && !wr(i); ) {
|
|
5463
|
-
if (
|
|
5463
|
+
if (wt(i) && !no(i))
|
|
5464
5464
|
return i;
|
|
5465
5465
|
i = hn(i);
|
|
5466
5466
|
}
|
|
@@ -5484,7 +5484,7 @@ const Cy = async function(e) {
|
|
|
5484
5484
|
};
|
|
5485
5485
|
};
|
|
5486
5486
|
function Ey(e) {
|
|
5487
|
-
return
|
|
5487
|
+
return _t(e).direction === "rtl";
|
|
5488
5488
|
}
|
|
5489
5489
|
const Ty = {
|
|
5490
5490
|
convertOffsetParentRelativeRectToViewportRelativeRect: my,
|
|
@@ -5495,7 +5495,7 @@ const Ty = {
|
|
|
5495
5495
|
getClientRects: gy,
|
|
5496
5496
|
getDimensions: Sy,
|
|
5497
5497
|
getScale: rr,
|
|
5498
|
-
isElement:
|
|
5498
|
+
isElement: wt,
|
|
5499
5499
|
isRTL: Ey
|
|
5500
5500
|
};
|
|
5501
5501
|
function Iu(e, t) {
|
|
@@ -5936,8 +5936,8 @@ var Fa = "PopperContent", [Qy, Xy] = Fu(Fa), zu = _.forwardRef(
|
|
|
5936
5936
|
zy({
|
|
5937
5937
|
...B,
|
|
5938
5938
|
apply: ({ elements: Me, rects: Le, availableWidth: J, availableHeight: Ae }) => {
|
|
5939
|
-
const { width: He, height: rt } = Le.reference,
|
|
5940
|
-
|
|
5939
|
+
const { width: He, height: rt } = Le.reference, ht = Me.floating.style;
|
|
5940
|
+
ht.setProperty("--radix-popper-available-width", `${J}px`), ht.setProperty("--radix-popper-available-height", `${Ae}px`), ht.setProperty("--radix-popper-anchor-width", `${He}px`), ht.setProperty("--radix-popper-anchor-height", `${rt}px`);
|
|
5941
5941
|
}
|
|
5942
5942
|
}),
|
|
5943
5943
|
w && Gy({ element: w, padding: a }),
|
|
@@ -6198,7 +6198,7 @@ var Zu = (e) => {
|
|
|
6198
6198
|
{
|
|
6199
6199
|
__scopeSelect: t,
|
|
6200
6200
|
...r,
|
|
6201
|
-
internal_do_not_use_render: ({ isFormControl: i }) => /* @__PURE__ */ R(
|
|
6201
|
+
internal_do_not_use_render: ({ isFormControl: i }) => /* @__PURE__ */ R(Ge, { children: [
|
|
6202
6202
|
n,
|
|
6203
6203
|
i ? /* @__PURE__ */ p(
|
|
6204
6204
|
yf,
|
|
@@ -6306,7 +6306,7 @@ var nf = _.forwardRef((e, t) => {
|
|
|
6306
6306
|
) : null;
|
|
6307
6307
|
});
|
|
6308
6308
|
nf.displayName = "SelectContentFragment";
|
|
6309
|
-
var
|
|
6309
|
+
var gt = 10, [rf, wn] = Kn(mn), vb = "SelectContentImpl", wb = /* @__PURE__ */ yr("SelectContent.RemoveScroll"), sf = _.forwardRef(
|
|
6310
6310
|
(e, t) => {
|
|
6311
6311
|
const { __scopeSelect: n } = e, {
|
|
6312
6312
|
position: r = "item-aligned",
|
|
@@ -6484,24 +6484,24 @@ var _b = "SelectItemAlignedPosition", of = _.forwardRef((e, t) => {
|
|
|
6484
6484
|
if (s.trigger && s.valueNode && a && l && f && y && b) {
|
|
6485
6485
|
const E = s.trigger.getBoundingClientRect(), A = l.getBoundingClientRect(), k = s.valueNode.getBoundingClientRect(), O = b.getBoundingClientRect();
|
|
6486
6486
|
if (s.dir !== "rtl") {
|
|
6487
|
-
const fe = O.left - A.left, re = k.left - fe, $e = E.left - re, Me = E.width + $e, Le = Math.max(Me, A.width), J = window.innerWidth -
|
|
6488
|
-
|
|
6487
|
+
const fe = O.left - A.left, re = k.left - fe, $e = E.left - re, Me = E.width + $e, Le = Math.max(Me, A.width), J = window.innerWidth - gt, Ae = Yc(re, [
|
|
6488
|
+
gt,
|
|
6489
6489
|
// Prevents the content from going off the starting edge of the
|
|
6490
6490
|
// viewport. It may still go off the ending edge, but this can be
|
|
6491
6491
|
// controlled by the user since they may want to manage overflow in a
|
|
6492
6492
|
// specific way.
|
|
6493
6493
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
6494
|
-
Math.max(
|
|
6494
|
+
Math.max(gt, J - Le)
|
|
6495
6495
|
]);
|
|
6496
6496
|
a.style.minWidth = Me + "px", a.style.left = Ae + "px";
|
|
6497
6497
|
} else {
|
|
6498
|
-
const fe = A.right - O.right, re = window.innerWidth - k.right - fe, $e = window.innerWidth - E.right - re, Me = E.width + $e, Le = Math.max(Me, A.width), J = window.innerWidth -
|
|
6499
|
-
|
|
6500
|
-
Math.max(
|
|
6498
|
+
const fe = A.right - O.right, re = window.innerWidth - k.right - fe, $e = window.innerWidth - E.right - re, Me = E.width + $e, Le = Math.max(Me, A.width), J = window.innerWidth - gt, Ae = Yc(re, [
|
|
6499
|
+
gt,
|
|
6500
|
+
Math.max(gt, J - Le)
|
|
6501
6501
|
]);
|
|
6502
6502
|
a.style.minWidth = Me + "px", a.style.right = Ae + "px";
|
|
6503
6503
|
}
|
|
6504
|
-
const D = m(), L = window.innerHeight -
|
|
6504
|
+
const D = m(), L = window.innerHeight - gt * 2, B = f.scrollHeight, I = window.getComputedStyle(l), H = parseInt(I.borderTopWidth, 10), $ = parseInt(I.paddingTop, 10), U = parseInt(I.borderBottomWidth, 10), N = parseInt(I.paddingBottom, 10), F = H + $ + B + N + U, q = Math.min(y.offsetHeight * 5, F), M = window.getComputedStyle(f), he = parseInt(M.paddingTop, 10), ie = parseInt(M.paddingBottom, 10), we = E.top + E.height / 2 - gt, V = L - we, X = y.offsetHeight / 2, K = y.offsetTop + X, de = H + $ + K, xe = F - de;
|
|
6505
6505
|
if (de <= we) {
|
|
6506
6506
|
const fe = D.length > 0 && y === D[D.length - 1].ref.current;
|
|
6507
6507
|
a.style.bottom = "0px";
|
|
@@ -6521,7 +6521,7 @@ var _b = "SelectItemAlignedPosition", of = _.forwardRef((e, t) => {
|
|
|
6521
6521
|
) + xe;
|
|
6522
6522
|
a.style.height = $e + "px", f.scrollTop = de - we + f.offsetTop;
|
|
6523
6523
|
}
|
|
6524
|
-
a.style.margin = `${
|
|
6524
|
+
a.style.margin = `${gt}px 0`, a.style.minHeight = q + "px", a.style.maxHeight = L + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
|
6525
6525
|
}
|
|
6526
6526
|
}, [
|
|
6527
6527
|
m,
|
|
@@ -6588,7 +6588,7 @@ var Sb = "SelectPopperPosition", Ro = _.forwardRef((e, t) => {
|
|
|
6588
6588
|
const {
|
|
6589
6589
|
__scopeSelect: n,
|
|
6590
6590
|
align: r = "start",
|
|
6591
|
-
collisionPadding: i =
|
|
6591
|
+
collisionPadding: i = gt,
|
|
6592
6592
|
...s
|
|
6593
6593
|
} = e, o = Ps(n);
|
|
6594
6594
|
return /* @__PURE__ */ p(
|
|
@@ -6616,7 +6616,7 @@ Ro.displayName = Sb;
|
|
|
6616
6616
|
var [xb, Va] = Kn(mn, {}), No = "SelectViewport", af = _.forwardRef(
|
|
6617
6617
|
(e, t) => {
|
|
6618
6618
|
const { __scopeSelect: n, nonce: r, ...i } = e, s = wn(No, n), o = Va(No, n), a = Ne(t, s.onViewportChange), c = _.useRef(0);
|
|
6619
|
-
return /* @__PURE__ */ R(
|
|
6619
|
+
return /* @__PURE__ */ R(Ge, { children: [
|
|
6620
6620
|
/* @__PURE__ */ p(
|
|
6621
6621
|
"style",
|
|
6622
6622
|
{
|
|
@@ -6651,7 +6651,7 @@ var [xb, Va] = Kn(mn, {}), No = "SelectViewport", af = _.forwardRef(
|
|
|
6651
6651
|
if (m != null && m.current && u) {
|
|
6652
6652
|
const h = Math.abs(c.current - d.scrollTop);
|
|
6653
6653
|
if (h > 0) {
|
|
6654
|
-
const g = window.innerHeight -
|
|
6654
|
+
const g = window.innerHeight - gt * 2, f = parseFloat(u.style.minHeight), y = parseFloat(u.style.height), b = Math.max(f, y);
|
|
6655
6655
|
if (b < g) {
|
|
6656
6656
|
const v = b + h, S = Math.min(g, v), w = v - S;
|
|
6657
6657
|
u.style.height = S + "px", u.style.bottom === "0px" && (d.scrollTop = w > 0 ? w : 0, u.style.justifyContent = "flex-end");
|
|
@@ -6774,7 +6774,7 @@ var jr = "SelectItemText", uf = _.forwardRef(
|
|
|
6774
6774
|
() => /* @__PURE__ */ p("option", { value: c.value, disabled: c.disabled, children: h }, c.value),
|
|
6775
6775
|
[c.disabled, c.value, h]
|
|
6776
6776
|
), { onNativeOptionAdd: f, onNativeOptionRemove: y } = l;
|
|
6777
|
-
return Ve(() => (f(g), () => y(g)), [f, y, g]), /* @__PURE__ */ R(
|
|
6777
|
+
return Ve(() => (f(g), () => y(g)), [f, y, g]), /* @__PURE__ */ R(Ge, { children: [
|
|
6778
6778
|
/* @__PURE__ */ p(Se.span, { id: c.textId, ...s, ref: m }),
|
|
6779
6779
|
c.isSelected && o.valueNode && !o.valueNodeHasChildren && !Os(o.value) ? ci.createPortal(s.children, o.valueNode) : null
|
|
6780
6780
|
] });
|
|
@@ -7096,14 +7096,14 @@ function Sf({
|
|
|
7096
7096
|
accountOptions: n,
|
|
7097
7097
|
onConfirm: r
|
|
7098
7098
|
}) {
|
|
7099
|
-
var
|
|
7100
|
-
const [i, s] = Y(""), o = i || ((
|
|
7099
|
+
var l;
|
|
7100
|
+
const [i, s] = Y(""), o = i || ((l = n[0]) == null ? void 0 : l.login) || "", a = !t && n.length > 0 && o !== "", c = !t && n.length === 0;
|
|
7101
7101
|
return /* @__PURE__ */ p($g, { open: e, children: /* @__PURE__ */ R(
|
|
7102
7102
|
vu,
|
|
7103
7103
|
{
|
|
7104
7104
|
className: "web-trading-widget-account-modal",
|
|
7105
|
-
onPointerDownOutside: (
|
|
7106
|
-
onEscapeKeyDown: (
|
|
7105
|
+
onPointerDownOutside: (d) => d.preventDefault(),
|
|
7106
|
+
onEscapeKeyDown: (d) => d.preventDefault(),
|
|
7107
7107
|
children: [
|
|
7108
7108
|
/* @__PURE__ */ R(wu, { children: [
|
|
7109
7109
|
/* @__PURE__ */ p(Su, { children: "Select trading account" }),
|
|
@@ -7111,16 +7111,27 @@ function Sf({
|
|
|
7111
7111
|
] }),
|
|
7112
7112
|
t ? /* @__PURE__ */ p("p", { className: "web-trading-widget-account-modal__loading", children: "Loading accounts…" }) : n.length === 0 ? /* @__PURE__ */ p("p", { className: "web-trading-widget-account-modal__error", children: "No trading accounts available." }) : /* @__PURE__ */ R(ts, { value: o, onValueChange: s, children: [
|
|
7113
7113
|
/* @__PURE__ */ p(Gr, { className: "web-trading-widget-account-modal__select", children: /* @__PURE__ */ p(ns, { placeholder: "Select account" }) }),
|
|
7114
|
-
/* @__PURE__ */ p(Kr, { children: n.map((
|
|
7115
|
-
|
|
7114
|
+
/* @__PURE__ */ p(Kr, { children: n.map((d) => /* @__PURE__ */ R(qr, { value: d.login, children: [
|
|
7115
|
+
d.label,
|
|
7116
7116
|
" (",
|
|
7117
|
-
|
|
7117
|
+
d.balance.toFixed(2),
|
|
7118
7118
|
" ",
|
|
7119
|
-
|
|
7119
|
+
d.currency,
|
|
7120
7120
|
")"
|
|
7121
|
-
] },
|
|
7121
|
+
] }, d.login)) })
|
|
7122
7122
|
] }),
|
|
7123
|
-
/* @__PURE__ */ p(_u, { children: /* @__PURE__ */
|
|
7123
|
+
/* @__PURE__ */ p(_u, { children: c ? /* @__PURE__ */ R(Ge, { children: [
|
|
7124
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(ft, { type: "button", variant: "outline", children: "Just back" }) }),
|
|
7125
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(ft, { type: "button", children: "Create account" }) })
|
|
7126
|
+
] }) : /* @__PURE__ */ p(
|
|
7127
|
+
ft,
|
|
7128
|
+
{
|
|
7129
|
+
type: "button",
|
|
7130
|
+
disabled: !a,
|
|
7131
|
+
onClick: () => r(o),
|
|
7132
|
+
children: "Continue"
|
|
7133
|
+
}
|
|
7134
|
+
) })
|
|
7124
7135
|
]
|
|
7125
7136
|
}
|
|
7126
7137
|
) });
|
|
@@ -7136,7 +7147,7 @@ var Bb = {
|
|
|
7136
7147
|
strokeLinecap: "round",
|
|
7137
7148
|
strokeLinejoin: "round"
|
|
7138
7149
|
};
|
|
7139
|
-
const $b = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
7150
|
+
const $b = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), xt = (e, t) => {
|
|
7140
7151
|
const n = ai(
|
|
7141
7152
|
({ color: r = "currentColor", size: i = 24, strokeWidth: s = 2, absoluteStrokeWidth: o, children: a, ...c }, l) => fn(
|
|
7142
7153
|
"svg",
|
|
@@ -7157,46 +7168,46 @@ const $b = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), St = (
|
|
|
7157
7168
|
)
|
|
7158
7169
|
);
|
|
7159
7170
|
return n.displayName = `${e}`, n;
|
|
7160
|
-
}, rs =
|
|
7171
|
+
}, rs = xt("ChevronDown", [
|
|
7161
7172
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
7162
|
-
]), jb =
|
|
7173
|
+
]), jb = xt("ChevronLeft", [
|
|
7163
7174
|
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
|
7164
|
-
]), Vb =
|
|
7175
|
+
]), Vb = xt("ChevronRight", [
|
|
7165
7176
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
7166
|
-
]), Io =
|
|
7177
|
+
]), Io = xt("ChevronUp", [
|
|
7167
7178
|
["path", { d: "m18 15-6-6-6 6", key: "153udz" }]
|
|
7168
|
-
]), xf =
|
|
7179
|
+
]), xf = xt("GripHorizontal", [
|
|
7169
7180
|
["circle", { cx: "12", cy: "9", r: "1", key: "124mty" }],
|
|
7170
7181
|
["circle", { cx: "19", cy: "9", r: "1", key: "1ruzo2" }],
|
|
7171
7182
|
["circle", { cx: "5", cy: "9", r: "1", key: "1a8b28" }],
|
|
7172
7183
|
["circle", { cx: "12", cy: "15", r: "1", key: "1e56xg" }],
|
|
7173
7184
|
["circle", { cx: "19", cy: "15", r: "1", key: "1a92ep" }],
|
|
7174
7185
|
["circle", { cx: "5", cy: "15", r: "1", key: "5r1jwy" }]
|
|
7175
|
-
]), Cf =
|
|
7186
|
+
]), Cf = xt("GripVertical", [
|
|
7176
7187
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
7177
7188
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
7178
7189
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
7179
7190
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
7180
7191
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
7181
7192
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
7182
|
-
]), Hb =
|
|
7193
|
+
]), Hb = xt("ListOrdered", [
|
|
7183
7194
|
["line", { x1: "10", x2: "21", y1: "6", y2: "6", key: "76qw6h" }],
|
|
7184
7195
|
["line", { x1: "10", x2: "21", y1: "12", y2: "12", key: "16nom4" }],
|
|
7185
7196
|
["line", { x1: "10", x2: "21", y1: "18", y2: "18", key: "u3jurt" }],
|
|
7186
7197
|
["path", { d: "M4 6h1v4", key: "cnovpq" }],
|
|
7187
7198
|
["path", { d: "M4 10h2", key: "16xx2s" }],
|
|
7188
7199
|
["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
|
|
7189
|
-
]), zb =
|
|
7200
|
+
]), zb = xt("Minimize2", [
|
|
7190
7201
|
["polyline", { points: "4 14 10 14 10 20", key: "11kfnr" }],
|
|
7191
7202
|
["polyline", { points: "20 10 14 10 14 4", key: "rlmsce" }],
|
|
7192
7203
|
["line", { x1: "14", x2: "21", y1: "10", y2: "3", key: "o5lafz" }],
|
|
7193
7204
|
["line", { x1: "3", x2: "10", y1: "21", y2: "14", key: "1atl0r" }]
|
|
7194
|
-
]), Wb =
|
|
7205
|
+
]), Wb = xt("Minus", [
|
|
7195
7206
|
["path", { d: "M5 12h14", key: "1ays0h" }]
|
|
7196
|
-
]), Gb =
|
|
7207
|
+
]), Gb = xt("Plus", [
|
|
7197
7208
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
7198
7209
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
7199
|
-
]), _n =
|
|
7210
|
+
]), _n = xt("X", [
|
|
7200
7211
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7201
7212
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7202
7213
|
]);
|
|
@@ -7363,22 +7374,22 @@ function ec(e) {
|
|
|
7363
7374
|
function Tf(e) {
|
|
7364
7375
|
return e === "buy_stop_limit" || e === "sell_stop_limit";
|
|
7365
7376
|
}
|
|
7366
|
-
const
|
|
7377
|
+
const bt = {
|
|
7367
7378
|
GTC: 0,
|
|
7368
7379
|
TODAY: 1,
|
|
7369
7380
|
SPECIFIED: 2,
|
|
7370
7381
|
SPECIFIED_DAY: 3
|
|
7371
7382
|
}, Pf = [
|
|
7372
|
-
{ value:
|
|
7373
|
-
{ value:
|
|
7374
|
-
{ value:
|
|
7375
|
-
{ value:
|
|
7383
|
+
{ value: bt.GTC, label: "GTC" },
|
|
7384
|
+
{ value: bt.TODAY, label: "Today" },
|
|
7385
|
+
{ value: bt.SPECIFIED, label: "Specified" },
|
|
7386
|
+
{ value: bt.SPECIFIED_DAY, label: "Specified Day" }
|
|
7376
7387
|
];
|
|
7377
7388
|
function tc(e) {
|
|
7378
|
-
return e ===
|
|
7389
|
+
return e === bt.SPECIFIED;
|
|
7379
7390
|
}
|
|
7380
7391
|
function nc(e) {
|
|
7381
|
-
return e ===
|
|
7392
|
+
return e === bt.SPECIFIED_DAY;
|
|
7382
7393
|
}
|
|
7383
7394
|
function tv(e) {
|
|
7384
7395
|
return e.map((t) => ({
|
|
@@ -7433,7 +7444,7 @@ function Nr(e) {
|
|
|
7433
7444
|
function kf(e, t) {
|
|
7434
7445
|
return e === null || t === null ? null : (e + t) / 2;
|
|
7435
7446
|
}
|
|
7436
|
-
function
|
|
7447
|
+
function vt(e) {
|
|
7437
7448
|
const t = e.trim();
|
|
7438
7449
|
if (!t)
|
|
7439
7450
|
return;
|
|
@@ -7456,7 +7467,7 @@ function Af(e, t, n) {
|
|
|
7456
7467
|
}
|
|
7457
7468
|
}
|
|
7458
7469
|
function Ls(e, t, n) {
|
|
7459
|
-
return e ===
|
|
7470
|
+
return e === bt.GTC || e === bt.TODAY ? !0 : Af(e, t, n) !== void 0;
|
|
7460
7471
|
}
|
|
7461
7472
|
const iv = {}, cl = (e) => {
|
|
7462
7473
|
let t;
|
|
@@ -7845,7 +7856,7 @@ function bv({
|
|
|
7845
7856
|
children: /* @__PURE__ */ p(Cf, { className: "web-trading-widget-icon web-trading-widget-icon--sm", strokeWidth: 2 })
|
|
7846
7857
|
}
|
|
7847
7858
|
),
|
|
7848
|
-
E ? /* @__PURE__ */ R(
|
|
7859
|
+
E ? /* @__PURE__ */ R(Ge, { children: [
|
|
7849
7860
|
/* @__PURE__ */ R(
|
|
7850
7861
|
"button",
|
|
7851
7862
|
{
|
|
@@ -8337,11 +8348,11 @@ const { toString: Fv } = Object.prototype, { getPrototypeOf: _r } = Object, { it
|
|
|
8337
8348
|
}, Bv = (e, t) => e != null && Zr(e, t) ? e[t] : void 0, sc = /* @__PURE__ */ ((e) => (t) => {
|
|
8338
8349
|
const n = Fv.call(t);
|
|
8339
8350
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
8340
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
8351
|
+
})(/* @__PURE__ */ Object.create(null)), Ct = (e) => (e = e.toLowerCase(), (t) => sc(t) === e), Us = (e) => (t) => typeof t === e, { isArray: Vn } = Array, Sr = Us("undefined");
|
|
8341
8352
|
function Dr(e) {
|
|
8342
8353
|
return e !== null && !Sr(e) && e.constructor !== null && !Sr(e.constructor) && tt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
8343
8354
|
}
|
|
8344
|
-
const $f =
|
|
8355
|
+
const $f = Ct("ArrayBuffer");
|
|
8345
8356
|
function $v(e) {
|
|
8346
8357
|
let t;
|
|
8347
8358
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && $f(e.buffer), t;
|
|
@@ -8362,7 +8373,7 @@ const jv = Us("string"), tt = Us("function"), jf = Us("number"), Lr = (e) => e !
|
|
|
8362
8373
|
} catch {
|
|
8363
8374
|
return !1;
|
|
8364
8375
|
}
|
|
8365
|
-
}, zv =
|
|
8376
|
+
}, zv = Ct("Date"), Wv = Ct("File"), Gv = (e) => !!(e && typeof e.uri < "u"), Kv = (e) => e && typeof e.getParts < "u", qv = Ct("Blob"), Zv = Ct("FileList"), Yv = (e) => Lr(e) && tt(e.pipe);
|
|
8366
8377
|
function Qv() {
|
|
8367
8378
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
8368
8379
|
}
|
|
@@ -8374,12 +8385,12 @@ const _l = Qv(), Sl = typeof _l.FormData < "u" ? _l.FormData : void 0, Xv = (e)
|
|
|
8374
8385
|
const n = sc(e);
|
|
8375
8386
|
return n === "formdata" || // detect form-data instance
|
|
8376
8387
|
n === "object" && tt(e.toString) && e.toString() === "[object FormData]";
|
|
8377
|
-
}, Jv =
|
|
8388
|
+
}, Jv = Ct("URLSearchParams"), [ew, tw, nw, rw] = [
|
|
8378
8389
|
"ReadableStream",
|
|
8379
8390
|
"Request",
|
|
8380
8391
|
"Response",
|
|
8381
8392
|
"Headers"
|
|
8382
|
-
].map(
|
|
8393
|
+
].map(Ct), iw = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8383
8394
|
function fi(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
8384
8395
|
if (e === null || typeof e > "u")
|
|
8385
8396
|
return;
|
|
@@ -8494,9 +8505,9 @@ const sw = (e, t, n, { allOwnKeys: r } = {}) => (fi(
|
|
|
8494
8505
|
for (; (n = e.exec(t)) !== null; )
|
|
8495
8506
|
r.push(n);
|
|
8496
8507
|
return r;
|
|
8497
|
-
}, hw =
|
|
8508
|
+
}, hw = Ct("HTMLFormElement"), mw = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, i) {
|
|
8498
8509
|
return r.toUpperCase() + i;
|
|
8499
|
-
}), { propertyIsEnumerable: gw } = Object.prototype, yw =
|
|
8510
|
+
}), { propertyIsEnumerable: gw } = Object.prototype, yw = Ct("RegExp"), zf = (e, t) => {
|
|
8500
8511
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
8501
8512
|
fi(n, (i, s) => {
|
|
8502
8513
|
let o;
|
|
@@ -8548,7 +8559,7 @@ const xw = (e) => {
|
|
|
8548
8559
|
return r;
|
|
8549
8560
|
};
|
|
8550
8561
|
return n(e);
|
|
8551
|
-
}, Cw =
|
|
8562
|
+
}, Cw = Ct("AsyncFunction"), Ew = (e) => e && (Lr(e) || tt(e)) && tt(e.then) && tt(e.catch), Wf = ((e, t) => e ? setImmediate : t ? ((n, r) => (En.addEventListener(
|
|
8552
8563
|
"message",
|
|
8553
8564
|
({ source: i, data: s }) => {
|
|
8554
8565
|
i === En && s === n && r.length && r.shift()();
|
|
@@ -8592,7 +8603,7 @@ const xw = (e) => {
|
|
|
8592
8603
|
inherits: aw,
|
|
8593
8604
|
toFlatObject: cw,
|
|
8594
8605
|
kindOf: sc,
|
|
8595
|
-
kindOfTest:
|
|
8606
|
+
kindOfTest: Ct,
|
|
8596
8607
|
endsWith: lw,
|
|
8597
8608
|
toArray: dw,
|
|
8598
8609
|
forEachEntry: fw,
|
|
@@ -8715,7 +8726,7 @@ function Fw(e, t) {
|
|
|
8715
8726
|
});
|
|
8716
8727
|
});
|
|
8717
8728
|
}
|
|
8718
|
-
let
|
|
8729
|
+
let Ye = class {
|
|
8719
8730
|
constructor(t) {
|
|
8720
8731
|
t && this.set(t);
|
|
8721
8732
|
}
|
|
@@ -8841,7 +8852,7 @@ let Ze = class {
|
|
|
8841
8852
|
return T.isArray(t) ? t.forEach(s) : s(t), this;
|
|
8842
8853
|
}
|
|
8843
8854
|
};
|
|
8844
|
-
|
|
8855
|
+
Ye.accessor([
|
|
8845
8856
|
"Content-Type",
|
|
8846
8857
|
"Content-Length",
|
|
8847
8858
|
"Accept",
|
|
@@ -8849,7 +8860,7 @@ Ze.accessor([
|
|
|
8849
8860
|
"User-Agent",
|
|
8850
8861
|
"Authorization"
|
|
8851
8862
|
]);
|
|
8852
|
-
T.reduceDescriptors(
|
|
8863
|
+
T.reduceDescriptors(Ye.prototype, ({ value: e }, t) => {
|
|
8853
8864
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
8854
8865
|
return {
|
|
8855
8866
|
get: () => e,
|
|
@@ -8858,7 +8869,7 @@ T.reduceDescriptors(Ze.prototype, ({ value: e }, t) => {
|
|
|
8858
8869
|
}
|
|
8859
8870
|
};
|
|
8860
8871
|
});
|
|
8861
|
-
T.freezeMethods(
|
|
8872
|
+
T.freezeMethods(Ye);
|
|
8862
8873
|
const Bw = "[REDACTED ****]";
|
|
8863
8874
|
function $w(e) {
|
|
8864
8875
|
if (T.hasOwnProp(e, "toJSON"))
|
|
@@ -8875,7 +8886,7 @@ function jw(e, t) {
|
|
|
8875
8886
|
const n = new Set(t.map((s) => String(s).toLowerCase())), r = [], i = (s) => {
|
|
8876
8887
|
if (s === null || typeof s != "object" || T.isBuffer(s)) return s;
|
|
8877
8888
|
if (r.indexOf(s) !== -1) return;
|
|
8878
|
-
s instanceof
|
|
8889
|
+
s instanceof Ye && (s = s.toJSON()), r.push(s);
|
|
8879
8890
|
let o;
|
|
8880
8891
|
if (T.isArray(s))
|
|
8881
8892
|
o = [], s.forEach((a, c) => {
|
|
@@ -9318,7 +9329,7 @@ T.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
|
|
|
9318
9329
|
pi.headers[e] = {};
|
|
9319
9330
|
});
|
|
9320
9331
|
function fo(e, t) {
|
|
9321
|
-
const n = this || pi, r = t || n, i =
|
|
9332
|
+
const n = this || pi, r = t || n, i = Ye.from(r.headers);
|
|
9322
9333
|
let s = r.data;
|
|
9323
9334
|
return T.forEach(e, function(a) {
|
|
9324
9335
|
s = a.call(n, s, i.normalize(), t ? t.status : void 0);
|
|
@@ -9480,7 +9491,7 @@ function rp(e, t, n, r) {
|
|
|
9480
9491
|
let i = !l_(t);
|
|
9481
9492
|
return e && (i || n === !1) ? (kl(e, r), d_(e, t)) : t;
|
|
9482
9493
|
}
|
|
9483
|
-
const Al = (e) => e instanceof
|
|
9494
|
+
const Al = (e) => e instanceof Ye ? { ...e } : e;
|
|
9484
9495
|
function Hn(e, t) {
|
|
9485
9496
|
t = t || {};
|
|
9486
9497
|
const n = /* @__PURE__ */ Object.create(null);
|
|
@@ -9588,7 +9599,7 @@ function ip(e) {
|
|
|
9588
9599
|
const s = n("xsrfHeaderName"), o = n("xsrfCookieName");
|
|
9589
9600
|
let a = n("headers");
|
|
9590
9601
|
const c = n("auth"), l = n("baseURL"), d = n("allowAbsoluteUrls"), u = n("url");
|
|
9591
|
-
if (t.headers = a =
|
|
9602
|
+
if (t.headers = a = Ye.from(a), t.url = Xf(
|
|
9592
9603
|
rp(l, u, d, t),
|
|
9593
9604
|
n("params"),
|
|
9594
9605
|
n("paramsSerializer")
|
|
@@ -9609,7 +9620,7 @@ const b_ = typeof XMLHttpRequest < "u", v_ = b_ && function(e) {
|
|
|
9609
9620
|
return new Promise(function(n, r) {
|
|
9610
9621
|
const i = ip(e);
|
|
9611
9622
|
let s = i.data;
|
|
9612
|
-
const o =
|
|
9623
|
+
const o = Ye.from(i.headers).normalize();
|
|
9613
9624
|
let { responseType: a, onUploadProgress: c, onDownloadProgress: l } = i, d, u, m, h, g;
|
|
9614
9625
|
function f() {
|
|
9615
9626
|
h && h(), g && g(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
|
|
@@ -9619,7 +9630,7 @@ const b_ = typeof XMLHttpRequest < "u", v_ = b_ && function(e) {
|
|
|
9619
9630
|
function b() {
|
|
9620
9631
|
if (!y)
|
|
9621
9632
|
return;
|
|
9622
|
-
const S =
|
|
9633
|
+
const S = Ye.from(
|
|
9623
9634
|
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
9624
9635
|
), x = {
|
|
9625
9636
|
data: !a || a === "text" || a === "json" ? y.responseText : y.response,
|
|
@@ -10000,7 +10011,7 @@ const dc = "1.18.0", Nl = 64 * 1024, { isFunction: Ri } = T, T_ = (e) => encodeU
|
|
|
10000
10011
|
};
|
|
10001
10012
|
M = c && new s(v, fe);
|
|
10002
10013
|
let re = await (c ? F(M, B) : F(v, fe));
|
|
10003
|
-
const $e =
|
|
10014
|
+
const $e = Ye.from(re.headers);
|
|
10004
10015
|
if ($) {
|
|
10005
10016
|
const J = T.toFiniteNumber($e.getContentLength());
|
|
10006
10017
|
if (J != null && J > I)
|
|
@@ -10014,23 +10025,23 @@ const dc = "1.18.0", Nl = 64 * 1024, { isFunction: Ri } = T, T_ = (e) => encodeU
|
|
|
10014
10025
|
const Me = h && (O === "stream" || O === "response");
|
|
10015
10026
|
if (h && re.body && (A || $ || Me && he)) {
|
|
10016
10027
|
const J = {};
|
|
10017
|
-
["status", "statusText", "headers"].forEach((
|
|
10018
|
-
J[
|
|
10028
|
+
["status", "statusText", "headers"].forEach((Ke) => {
|
|
10029
|
+
J[Ke] = re[Ke];
|
|
10019
10030
|
});
|
|
10020
10031
|
const Ae = T.toFiniteNumber($e.getContentLength()), [He, rt] = A && Pl(
|
|
10021
10032
|
Ae,
|
|
10022
10033
|
as(Ol(A), !0)
|
|
10023
10034
|
) || [];
|
|
10024
|
-
let
|
|
10025
|
-
const ne = (
|
|
10026
|
-
if ($ && (
|
|
10035
|
+
let ht = 0;
|
|
10036
|
+
const ne = (Ke) => {
|
|
10037
|
+
if ($ && (ht = Ke, ht > I))
|
|
10027
10038
|
throw new G(
|
|
10028
10039
|
"maxContentLength size of " + I + " exceeded",
|
|
10029
10040
|
G.ERR_BAD_RESPONSE,
|
|
10030
10041
|
b,
|
|
10031
10042
|
M
|
|
10032
10043
|
);
|
|
10033
|
-
He && He(
|
|
10044
|
+
He && He(Ke);
|
|
10034
10045
|
};
|
|
10035
10046
|
re = new o(
|
|
10036
10047
|
Rl(re.body, Nl, ne, () => {
|
|
@@ -10057,7 +10068,7 @@ const dc = "1.18.0", Nl = 64 * 1024, { isFunction: Ri } = T, T_ = (e) => encodeU
|
|
|
10057
10068
|
return !Me && he && he(), await new Promise((J, Ae) => {
|
|
10058
10069
|
np(J, Ae, {
|
|
10059
10070
|
data: Le,
|
|
10060
|
-
headers:
|
|
10071
|
+
headers: Ye.from(re.headers),
|
|
10061
10072
|
status: re.status,
|
|
10062
10073
|
statusText: re.statusText,
|
|
10063
10074
|
config: b,
|
|
@@ -10154,7 +10165,7 @@ function po(e) {
|
|
|
10154
10165
|
throw new hi(null, e);
|
|
10155
10166
|
}
|
|
10156
10167
|
function Ml(e) {
|
|
10157
|
-
return po(e), e.headers =
|
|
10168
|
+
return po(e), e.headers = Ye.from(e.headers), e.data = fo.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), op.getAdapter(e.adapter || pi.adapter, e)(e).then(
|
|
10158
10169
|
function(r) {
|
|
10159
10170
|
po(e), e.response = r;
|
|
10160
10171
|
try {
|
|
@@ -10162,7 +10173,7 @@ function Ml(e) {
|
|
|
10162
10173
|
} finally {
|
|
10163
10174
|
delete e.response;
|
|
10164
10175
|
}
|
|
10165
|
-
return r.headers =
|
|
10176
|
+
return r.headers = Ye.from(r.headers), r;
|
|
10166
10177
|
},
|
|
10167
10178
|
function(r) {
|
|
10168
10179
|
if (!tp(r) && (po(e), r && r.response)) {
|
|
@@ -10176,7 +10187,7 @@ function Ml(e) {
|
|
|
10176
10187
|
} finally {
|
|
10177
10188
|
delete e.response;
|
|
10178
10189
|
}
|
|
10179
|
-
r.response.headers =
|
|
10190
|
+
r.response.headers = Ye.from(r.response.headers);
|
|
10180
10191
|
}
|
|
10181
10192
|
return Promise.reject(r);
|
|
10182
10193
|
}
|
|
@@ -10233,7 +10244,7 @@ function N_(e, t, n) {
|
|
|
10233
10244
|
const Wi = {
|
|
10234
10245
|
assertOptions: N_,
|
|
10235
10246
|
validators: Bs
|
|
10236
|
-
},
|
|
10247
|
+
}, qe = Wi.validators;
|
|
10237
10248
|
let Un = class {
|
|
10238
10249
|
constructor(t) {
|
|
10239
10250
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -10285,12 +10296,12 @@ let Un = class {
|
|
|
10285
10296
|
r !== void 0 && Wi.assertOptions(
|
|
10286
10297
|
r,
|
|
10287
10298
|
{
|
|
10288
|
-
silentJSONParsing:
|
|
10289
|
-
forcedJSONParsing:
|
|
10290
|
-
clarifyTimeoutError:
|
|
10291
|
-
legacyInterceptorReqResOrdering:
|
|
10292
|
-
advertiseZstdAcceptEncoding:
|
|
10293
|
-
validateStatusUndefinedResolves:
|
|
10299
|
+
silentJSONParsing: qe.transitional(qe.boolean),
|
|
10300
|
+
forcedJSONParsing: qe.transitional(qe.boolean),
|
|
10301
|
+
clarifyTimeoutError: qe.transitional(qe.boolean),
|
|
10302
|
+
legacyInterceptorReqResOrdering: qe.transitional(qe.boolean),
|
|
10303
|
+
advertiseZstdAcceptEncoding: qe.transitional(qe.boolean),
|
|
10304
|
+
validateStatusUndefinedResolves: qe.transitional(qe.boolean)
|
|
10294
10305
|
},
|
|
10295
10306
|
!1
|
|
10296
10307
|
), i != null && (T.isFunction(i) ? n.paramsSerializer = {
|
|
@@ -10298,22 +10309,22 @@ let Un = class {
|
|
|
10298
10309
|
} : Wi.assertOptions(
|
|
10299
10310
|
i,
|
|
10300
10311
|
{
|
|
10301
|
-
encode:
|
|
10302
|
-
serialize:
|
|
10312
|
+
encode: qe.function,
|
|
10313
|
+
serialize: qe.function
|
|
10303
10314
|
},
|
|
10304
10315
|
!0
|
|
10305
10316
|
)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Wi.assertOptions(
|
|
10306
10317
|
n,
|
|
10307
10318
|
{
|
|
10308
|
-
baseUrl:
|
|
10309
|
-
withXsrfToken:
|
|
10319
|
+
baseUrl: qe.spelling("baseURL"),
|
|
10320
|
+
withXsrfToken: qe.spelling("withXSRFToken")
|
|
10310
10321
|
},
|
|
10311
10322
|
!0
|
|
10312
10323
|
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
10313
10324
|
let o = s && T.merge(s.common, s[n.method]);
|
|
10314
10325
|
s && T.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (g) => {
|
|
10315
10326
|
delete s[g];
|
|
10316
|
-
}), n.headers =
|
|
10327
|
+
}), n.headers = Ye.concat(o, s);
|
|
10317
10328
|
const a = [];
|
|
10318
10329
|
let c = !0;
|
|
10319
10330
|
this.interceptors.request.forEach(function(f) {
|
|
@@ -10564,7 +10575,7 @@ De.all = function(t) {
|
|
|
10564
10575
|
De.spread = L_;
|
|
10565
10576
|
De.isAxiosError = I_;
|
|
10566
10577
|
De.mergeConfig = Hn;
|
|
10567
|
-
De.AxiosHeaders =
|
|
10578
|
+
De.AxiosHeaders = Ye;
|
|
10568
10579
|
De.formToJSON = (e) => ep(T.isHTMLForm(e) ? new FormData(e) : e);
|
|
10569
10580
|
De.getAdapter = op.getAdapter;
|
|
10570
10581
|
De.HttpStatusCode = $o;
|
|
@@ -10786,14 +10797,14 @@ function Z_({
|
|
|
10786
10797
|
priceOrder: "",
|
|
10787
10798
|
priceTrigger: "",
|
|
10788
10799
|
comment: "",
|
|
10789
|
-
typeTime:
|
|
10800
|
+
typeTime: bt.GTC,
|
|
10790
10801
|
expirationDateTime: "",
|
|
10791
10802
|
expirationDay: "",
|
|
10792
10803
|
bid: k.bid,
|
|
10793
10804
|
ask: k.ask
|
|
10794
10805
|
});
|
|
10795
10806
|
};
|
|
10796
|
-
return /* @__PURE__ */ R(
|
|
10807
|
+
return /* @__PURE__ */ R(Ge, { children: [
|
|
10797
10808
|
/* @__PURE__ */ p(
|
|
10798
10809
|
Sf,
|
|
10799
10810
|
{
|
|
@@ -11013,7 +11024,7 @@ const mp = {
|
|
|
11013
11024
|
showPrice: !0,
|
|
11014
11025
|
horzLabelsAlign: "left"
|
|
11015
11026
|
};
|
|
11016
|
-
}, zl = (e) =>
|
|
11027
|
+
}, zl = (e) => vt(e), oS = (e) => e === "entry" || e === "stopLoss" || e === "takeProfit", go = (e) => {
|
|
11017
11028
|
e.setUserEditEnabled(!1), e.setSelectionEnabled(!1);
|
|
11018
11029
|
}, Wl = (e, t, n) => {
|
|
11019
11030
|
if (e === "entry")
|
|
@@ -11650,7 +11661,7 @@ var mi = class {
|
|
|
11650
11661
|
clearTimeout: (e) => clearTimeout(e),
|
|
11651
11662
|
setInterval: (e, t) => setInterval(e, t),
|
|
11652
11663
|
clearInterval: (e) => clearInterval(e)
|
|
11653
|
-
},
|
|
11664
|
+
}, Ot, On, Ld, ES = (Ld = class {
|
|
11654
11665
|
constructor() {
|
|
11655
11666
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
11656
11667
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
@@ -11659,28 +11670,28 @@ var mi = class {
|
|
|
11659
11670
|
//
|
|
11660
11671
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
11661
11672
|
// this class is unsafe internally to allow for extension.
|
|
11662
|
-
te(this,
|
|
11673
|
+
te(this, Ot, CS);
|
|
11663
11674
|
te(this, On, !1);
|
|
11664
11675
|
}
|
|
11665
11676
|
setTimeoutProvider(e) {
|
|
11666
|
-
process.env.NODE_ENV !== "production" && C(this, On) && e !== C(this,
|
|
11677
|
+
process.env.NODE_ENV !== "production" && C(this, On) && e !== C(this, Ot) && console.error(
|
|
11667
11678
|
"[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
|
|
11668
|
-
{ previous: C(this,
|
|
11669
|
-
), z(this,
|
|
11679
|
+
{ previous: C(this, Ot), provider: e }
|
|
11680
|
+
), z(this, Ot, e), process.env.NODE_ENV !== "production" && z(this, On, !1);
|
|
11670
11681
|
}
|
|
11671
11682
|
setTimeout(e, t) {
|
|
11672
|
-
return process.env.NODE_ENV !== "production" && z(this, On, !0), C(this,
|
|
11683
|
+
return process.env.NODE_ENV !== "production" && z(this, On, !0), C(this, Ot).setTimeout(e, t);
|
|
11673
11684
|
}
|
|
11674
11685
|
clearTimeout(e) {
|
|
11675
|
-
C(this,
|
|
11686
|
+
C(this, Ot).clearTimeout(e);
|
|
11676
11687
|
}
|
|
11677
11688
|
setInterval(e, t) {
|
|
11678
|
-
return process.env.NODE_ENV !== "production" && z(this, On, !0), C(this,
|
|
11689
|
+
return process.env.NODE_ENV !== "production" && z(this, On, !0), C(this, Ot).setInterval(e, t);
|
|
11679
11690
|
}
|
|
11680
11691
|
clearInterval(e) {
|
|
11681
|
-
C(this,
|
|
11692
|
+
C(this, Ot).clearInterval(e);
|
|
11682
11693
|
}
|
|
11683
|
-
},
|
|
11694
|
+
}, Ot = new WeakMap(), On = new WeakMap(), Ld), Tn = new ES();
|
|
11684
11695
|
function TS(e) {
|
|
11685
11696
|
setTimeout(e, 0);
|
|
11686
11697
|
}
|
|
@@ -12761,15 +12772,15 @@ function gc(e, t) {
|
|
|
12761
12772
|
function HS(e, t) {
|
|
12762
12773
|
return !zo(e.getCurrentResult(), t);
|
|
12763
12774
|
}
|
|
12764
|
-
var ii,
|
|
12775
|
+
var ii, kt, Ze, Mn, At, Yt, Bd, zS = (Bd = class extends Np {
|
|
12765
12776
|
constructor(t) {
|
|
12766
12777
|
super();
|
|
12767
|
-
te(this,
|
|
12778
|
+
te(this, At);
|
|
12768
12779
|
te(this, ii);
|
|
12769
|
-
te(this,
|
|
12770
|
-
te(this,
|
|
12780
|
+
te(this, kt);
|
|
12781
|
+
te(this, Ze);
|
|
12771
12782
|
te(this, Mn);
|
|
12772
|
-
z(this, ii, t.client), this.mutationId = t.mutationId, z(this,
|
|
12783
|
+
z(this, ii, t.client), this.mutationId = t.mutationId, z(this, Ze, t.mutationCache), z(this, kt, []), this.state = t.state || WS(), this.setOptions(t.options), this.scheduleGc();
|
|
12773
12784
|
}
|
|
12774
12785
|
setOptions(t) {
|
|
12775
12786
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -12778,21 +12789,21 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12778
12789
|
return this.options.meta;
|
|
12779
12790
|
}
|
|
12780
12791
|
addObserver(t) {
|
|
12781
|
-
C(this,
|
|
12792
|
+
C(this, kt).includes(t) || (C(this, kt).push(t), this.clearGcTimeout(), C(this, Ze).notify({
|
|
12782
12793
|
type: "observerAdded",
|
|
12783
12794
|
mutation: this,
|
|
12784
12795
|
observer: t
|
|
12785
12796
|
}));
|
|
12786
12797
|
}
|
|
12787
12798
|
removeObserver(t) {
|
|
12788
|
-
z(this,
|
|
12799
|
+
z(this, kt, C(this, kt).filter((n) => n !== t)), this.scheduleGc(), C(this, Ze).notify({
|
|
12789
12800
|
type: "observerRemoved",
|
|
12790
12801
|
mutation: this,
|
|
12791
12802
|
observer: t
|
|
12792
12803
|
});
|
|
12793
12804
|
}
|
|
12794
12805
|
optionalRemove() {
|
|
12795
|
-
C(this,
|
|
12806
|
+
C(this, kt).length || (this.state.status === "pending" ? this.scheduleGc() : C(this, Ze).remove(this));
|
|
12796
12807
|
}
|
|
12797
12808
|
continue() {
|
|
12798
12809
|
var t;
|
|
@@ -12802,7 +12813,7 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12802
12813
|
async execute(t) {
|
|
12803
12814
|
var o, a, c, l, d, u, m, h, g, f, y, b, v, S, w, x, P, E;
|
|
12804
12815
|
const n = () => {
|
|
12805
|
-
me(this,
|
|
12816
|
+
me(this, At, Yt).call(this, { type: "continue" });
|
|
12806
12817
|
}, r = {
|
|
12807
12818
|
client: C(this, ii),
|
|
12808
12819
|
meta: this.options.meta,
|
|
@@ -12811,23 +12822,23 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12811
12822
|
z(this, Mn, Rp({
|
|
12812
12823
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
|
|
12813
12824
|
onFail: (A, k) => {
|
|
12814
|
-
me(this,
|
|
12825
|
+
me(this, At, Yt).call(this, { type: "failed", failureCount: A, error: k });
|
|
12815
12826
|
},
|
|
12816
12827
|
onPause: () => {
|
|
12817
|
-
me(this,
|
|
12828
|
+
me(this, At, Yt).call(this, { type: "pause" });
|
|
12818
12829
|
},
|
|
12819
12830
|
onContinue: n,
|
|
12820
12831
|
retry: this.options.retry ?? 0,
|
|
12821
12832
|
retryDelay: this.options.retryDelay,
|
|
12822
12833
|
networkMode: this.options.networkMode,
|
|
12823
|
-
canRun: () => C(this,
|
|
12834
|
+
canRun: () => C(this, Ze).canRun(this)
|
|
12824
12835
|
}));
|
|
12825
12836
|
const i = this.state.status === "pending", s = !C(this, Mn).canStart();
|
|
12826
12837
|
try {
|
|
12827
12838
|
if (i)
|
|
12828
12839
|
n();
|
|
12829
12840
|
else {
|
|
12830
|
-
me(this,
|
|
12841
|
+
me(this, At, Yt).call(this, { type: "pending", variables: t, isPaused: s }), C(this, Ze).config.onMutate && await C(this, Ze).config.onMutate(
|
|
12831
12842
|
t,
|
|
12832
12843
|
this,
|
|
12833
12844
|
r
|
|
@@ -12837,7 +12848,7 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12837
12848
|
t,
|
|
12838
12849
|
r
|
|
12839
12850
|
));
|
|
12840
|
-
k !== this.state.context && me(this,
|
|
12851
|
+
k !== this.state.context && me(this, At, Yt).call(this, {
|
|
12841
12852
|
type: "pending",
|
|
12842
12853
|
context: k,
|
|
12843
12854
|
variables: t,
|
|
@@ -12845,7 +12856,7 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12845
12856
|
});
|
|
12846
12857
|
}
|
|
12847
12858
|
const A = await C(this, Mn).start();
|
|
12848
|
-
return await ((l = (c = C(this,
|
|
12859
|
+
return await ((l = (c = C(this, Ze).config).onSuccess) == null ? void 0 : l.call(
|
|
12849
12860
|
c,
|
|
12850
12861
|
A,
|
|
12851
12862
|
t,
|
|
@@ -12858,7 +12869,7 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12858
12869
|
t,
|
|
12859
12870
|
this.state.context,
|
|
12860
12871
|
r
|
|
12861
|
-
)), await ((h = (m = C(this,
|
|
12872
|
+
)), await ((h = (m = C(this, Ze).config).onSettled) == null ? void 0 : h.call(
|
|
12862
12873
|
m,
|
|
12863
12874
|
A,
|
|
12864
12875
|
null,
|
|
@@ -12873,10 +12884,10 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12873
12884
|
t,
|
|
12874
12885
|
this.state.context,
|
|
12875
12886
|
r
|
|
12876
|
-
)), me(this,
|
|
12887
|
+
)), me(this, At, Yt).call(this, { type: "success", data: A }), A;
|
|
12877
12888
|
} catch (A) {
|
|
12878
12889
|
try {
|
|
12879
|
-
await ((b = (y = C(this,
|
|
12890
|
+
await ((b = (y = C(this, Ze).config).onError) == null ? void 0 : b.call(
|
|
12880
12891
|
y,
|
|
12881
12892
|
A,
|
|
12882
12893
|
t,
|
|
@@ -12899,7 +12910,7 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12899
12910
|
Promise.reject(k);
|
|
12900
12911
|
}
|
|
12901
12912
|
try {
|
|
12902
|
-
await ((x = (w = C(this,
|
|
12913
|
+
await ((x = (w = C(this, Ze).config).onSettled) == null ? void 0 : x.call(
|
|
12903
12914
|
w,
|
|
12904
12915
|
void 0,
|
|
12905
12916
|
A,
|
|
@@ -12923,12 +12934,12 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12923
12934
|
} catch (k) {
|
|
12924
12935
|
Promise.reject(k);
|
|
12925
12936
|
}
|
|
12926
|
-
throw me(this,
|
|
12937
|
+
throw me(this, At, Yt).call(this, { type: "error", error: A }), A;
|
|
12927
12938
|
} finally {
|
|
12928
|
-
C(this,
|
|
12939
|
+
C(this, Ze).runNext(this);
|
|
12929
12940
|
}
|
|
12930
12941
|
}
|
|
12931
|
-
}, ii = new WeakMap(),
|
|
12942
|
+
}, ii = new WeakMap(), kt = new WeakMap(), Ze = new WeakMap(), Mn = new WeakMap(), At = new WeakSet(), Yt = function(t) {
|
|
12932
12943
|
const n = (r) => {
|
|
12933
12944
|
switch (t.type) {
|
|
12934
12945
|
case "failed":
|
|
@@ -12983,9 +12994,9 @@ var ii, Ot, qe, Mn, kt, Yt, Bd, zS = (Bd = class extends Np {
|
|
|
12983
12994
|
}
|
|
12984
12995
|
};
|
|
12985
12996
|
this.state = n(this.state), ze.batch(() => {
|
|
12986
|
-
C(this,
|
|
12997
|
+
C(this, kt).forEach((r) => {
|
|
12987
12998
|
r.onMutationUpdate(t);
|
|
12988
|
-
}), C(this,
|
|
12999
|
+
}), C(this, Ze).notify({
|
|
12989
13000
|
mutation: this,
|
|
12990
13001
|
type: "updated",
|
|
12991
13002
|
action: t
|
|
@@ -13005,13 +13016,13 @@ function WS() {
|
|
|
13005
13016
|
submittedAt: 0
|
|
13006
13017
|
};
|
|
13007
13018
|
}
|
|
13008
|
-
var $t,
|
|
13019
|
+
var $t, yt, si, $d, GS = ($d = class extends mi {
|
|
13009
13020
|
constructor(t = {}) {
|
|
13010
13021
|
super();
|
|
13011
13022
|
te(this, $t);
|
|
13012
|
-
te(this,
|
|
13023
|
+
te(this, yt);
|
|
13013
13024
|
te(this, si);
|
|
13014
|
-
this.config = t, z(this, $t, /* @__PURE__ */ new Set()), z(this,
|
|
13025
|
+
this.config = t, z(this, $t, /* @__PURE__ */ new Set()), z(this, yt, /* @__PURE__ */ new Map()), z(this, si, 0);
|
|
13015
13026
|
}
|
|
13016
13027
|
build(t, n, r) {
|
|
13017
13028
|
const i = new zS({
|
|
@@ -13027,8 +13038,8 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13027
13038
|
C(this, $t).add(t);
|
|
13028
13039
|
const n = Ni(t);
|
|
13029
13040
|
if (typeof n == "string") {
|
|
13030
|
-
const r = C(this,
|
|
13031
|
-
r ? r.push(t) : C(this,
|
|
13041
|
+
const r = C(this, yt).get(n);
|
|
13042
|
+
r ? r.push(t) : C(this, yt).set(n, [t]);
|
|
13032
13043
|
}
|
|
13033
13044
|
this.notify({ type: "added", mutation: t });
|
|
13034
13045
|
}
|
|
@@ -13036,12 +13047,12 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13036
13047
|
if (C(this, $t).delete(t)) {
|
|
13037
13048
|
const n = Ni(t);
|
|
13038
13049
|
if (typeof n == "string") {
|
|
13039
|
-
const r = C(this,
|
|
13050
|
+
const r = C(this, yt).get(n);
|
|
13040
13051
|
if (r)
|
|
13041
13052
|
if (r.length > 1) {
|
|
13042
13053
|
const i = r.indexOf(t);
|
|
13043
13054
|
i !== -1 && r.splice(i, 1);
|
|
13044
|
-
} else r[0] === t && C(this,
|
|
13055
|
+
} else r[0] === t && C(this, yt).delete(n);
|
|
13045
13056
|
}
|
|
13046
13057
|
}
|
|
13047
13058
|
this.notify({ type: "removed", mutation: t });
|
|
@@ -13049,7 +13060,7 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13049
13060
|
canRun(t) {
|
|
13050
13061
|
const n = Ni(t);
|
|
13051
13062
|
if (typeof n == "string") {
|
|
13052
|
-
const r = C(this,
|
|
13063
|
+
const r = C(this, yt).get(n), i = r == null ? void 0 : r.find(
|
|
13053
13064
|
(s) => s.state.status === "pending"
|
|
13054
13065
|
);
|
|
13055
13066
|
return !i || i === t;
|
|
@@ -13060,7 +13071,7 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13060
13071
|
var r;
|
|
13061
13072
|
const n = Ni(t);
|
|
13062
13073
|
if (typeof n == "string") {
|
|
13063
|
-
const i = (r = C(this,
|
|
13074
|
+
const i = (r = C(this, yt).get(n)) == null ? void 0 : r.find((s) => s !== t && s.state.isPaused);
|
|
13064
13075
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
13065
13076
|
} else
|
|
13066
13077
|
return Promise.resolve();
|
|
@@ -13069,7 +13080,7 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13069
13080
|
ze.batch(() => {
|
|
13070
13081
|
C(this, $t).forEach((t) => {
|
|
13071
13082
|
this.notify({ type: "removed", mutation: t });
|
|
13072
|
-
}), C(this, $t).clear(), C(this,
|
|
13083
|
+
}), C(this, $t).clear(), C(this, yt).clear();
|
|
13073
13084
|
});
|
|
13074
13085
|
}
|
|
13075
13086
|
getAll() {
|
|
@@ -13099,16 +13110,16 @@ var $t, gt, si, $d, GS = ($d = class extends mi {
|
|
|
13099
13110
|
)
|
|
13100
13111
|
);
|
|
13101
13112
|
}
|
|
13102
|
-
}, $t = new WeakMap(),
|
|
13113
|
+
}, $t = new WeakMap(), yt = new WeakMap(), si = new WeakMap(), $d);
|
|
13103
13114
|
function Ni(e) {
|
|
13104
13115
|
var t;
|
|
13105
13116
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
13106
13117
|
}
|
|
13107
|
-
var
|
|
13118
|
+
var Rt, jd, KS = (jd = class extends mi {
|
|
13108
13119
|
constructor(t = {}) {
|
|
13109
13120
|
super();
|
|
13110
|
-
te(this,
|
|
13111
|
-
this.config = t, z(this,
|
|
13121
|
+
te(this, Rt);
|
|
13122
|
+
this.config = t, z(this, Rt, /* @__PURE__ */ new Map());
|
|
13112
13123
|
}
|
|
13113
13124
|
build(t, n, r) {
|
|
13114
13125
|
const i = n.queryKey, s = n.queryHash ?? mc(i, n);
|
|
@@ -13123,14 +13134,14 @@ var At, jd, KS = (jd = class extends mi {
|
|
|
13123
13134
|
}), this.add(o)), o;
|
|
13124
13135
|
}
|
|
13125
13136
|
add(t) {
|
|
13126
|
-
C(this,
|
|
13137
|
+
C(this, Rt).has(t.queryHash) || (C(this, Rt).set(t.queryHash, t), this.notify({
|
|
13127
13138
|
type: "added",
|
|
13128
13139
|
query: t
|
|
13129
13140
|
}));
|
|
13130
13141
|
}
|
|
13131
13142
|
remove(t) {
|
|
13132
|
-
const n = C(this,
|
|
13133
|
-
n && (t.destroy(), n === t && C(this,
|
|
13143
|
+
const n = C(this, Rt).get(t.queryHash);
|
|
13144
|
+
n && (t.destroy(), n === t && C(this, Rt).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
13134
13145
|
}
|
|
13135
13146
|
clear() {
|
|
13136
13147
|
ze.batch(() => {
|
|
@@ -13140,10 +13151,10 @@ var At, jd, KS = (jd = class extends mi {
|
|
|
13140
13151
|
});
|
|
13141
13152
|
}
|
|
13142
13153
|
get(t) {
|
|
13143
|
-
return C(this,
|
|
13154
|
+
return C(this, Rt).get(t);
|
|
13144
13155
|
}
|
|
13145
13156
|
getAll() {
|
|
13146
|
-
return [...C(this,
|
|
13157
|
+
return [...C(this, Rt).values()];
|
|
13147
13158
|
}
|
|
13148
13159
|
find(t) {
|
|
13149
13160
|
const n = { exact: !0, ...t };
|
|
@@ -13176,7 +13187,7 @@ var At, jd, KS = (jd = class extends mi {
|
|
|
13176
13187
|
});
|
|
13177
13188
|
});
|
|
13178
13189
|
}
|
|
13179
|
-
},
|
|
13190
|
+
}, Rt = new WeakMap(), jd), Ie, sn, on, pr, hr, an, mr, gr, Vd, qS = (Vd = class {
|
|
13180
13191
|
constructor(e = {}) {
|
|
13181
13192
|
te(this, Ie);
|
|
13182
13193
|
te(this, sn);
|
|
@@ -13576,7 +13587,7 @@ function js(e, t) {
|
|
|
13576
13587
|
if (e[n] !== void 0 && e[n] !== null && e[n] !== "")
|
|
13577
13588
|
return e[n];
|
|
13578
13589
|
}
|
|
13579
|
-
function
|
|
13590
|
+
function Pt(e, t) {
|
|
13580
13591
|
const n = js(e, t);
|
|
13581
13592
|
if (n === void 0)
|
|
13582
13593
|
return;
|
|
@@ -13626,7 +13637,7 @@ function p0(e) {
|
|
|
13626
13637
|
typeNum: r.includes("sell") ? 3 : 2
|
|
13627
13638
|
};
|
|
13628
13639
|
}
|
|
13629
|
-
const n =
|
|
13640
|
+
const n = Pt(e, ["type", "Type", "orderType", "OrderType"]) ?? 2;
|
|
13630
13641
|
return {
|
|
13631
13642
|
label: d0[n] ?? (n % 2 === 1 ? "sell" : "buy"),
|
|
13632
13643
|
side: ss(n),
|
|
@@ -13634,30 +13645,30 @@ function p0(e) {
|
|
|
13634
13645
|
};
|
|
13635
13646
|
}
|
|
13636
13647
|
function h0(e, t) {
|
|
13637
|
-
const n =
|
|
13648
|
+
const n = Pt(e, ["volumeFilled", "volume_filled", "VolumeFilled", "filledVolume", "FilledVolume"]);
|
|
13638
13649
|
if (n !== void 0)
|
|
13639
13650
|
return ra(n);
|
|
13640
|
-
const r =
|
|
13651
|
+
const r = Pt(e, ["volumeCurrent", "volume_current", "VolumeCurrent"]);
|
|
13641
13652
|
return r !== void 0 ? ra(r) : 0;
|
|
13642
13653
|
}
|
|
13643
13654
|
function m0(e, t) {
|
|
13644
13655
|
const n = Di(e, ["ticket", "Ticket", "order", "Order", "id", "ID"]), r = Di(e, ["symbol", "Symbol"]) ?? "";
|
|
13645
13656
|
if (!n || !r)
|
|
13646
13657
|
return null;
|
|
13647
|
-
const i = nt(r), { label: s, side: o, typeNum: a } = p0(e), c =
|
|
13658
|
+
const i = nt(r), { label: s, side: o, typeNum: a } = p0(e), c = Pt(e, ["typeTime", "TypeTime"]) ?? 0, l = ra(Pt(e, ["volumeLots", "volume_lots", "VolumeLots", "volume", "Volume"])), d = h0(e), u = Pt(e, ["priceOrder", "price_order", "PriceOrder", "openPrice", "open_price", "price", "Price"]) ?? 0, m = Pt(e, [
|
|
13648
13659
|
"priceTrigger",
|
|
13649
13660
|
"price_trigger",
|
|
13650
13661
|
"PriceTrigger",
|
|
13651
13662
|
"triggerPrice",
|
|
13652
13663
|
"TriggerPrice"
|
|
13653
|
-
]), h =
|
|
13664
|
+
]), h = Pt(e, [
|
|
13654
13665
|
"currentPrice",
|
|
13655
13666
|
"current_price",
|
|
13656
13667
|
"PriceCurrent",
|
|
13657
13668
|
"priceCurrent",
|
|
13658
13669
|
"marketPrice",
|
|
13659
13670
|
"MarketPrice"
|
|
13660
|
-
]) ?? u, g =
|
|
13671
|
+
]) ?? u, g = Pt(e, ["stopLoss", "stop_loss", "PriceSL", "sl", "SL"]), f = Pt(e, ["takeProfit", "take_profit", "PriceTP", "tp", "TP"]), y = Di(e, ["comment", "Comment"]) ?? "", b = f0(e, i), v = yc(js(e, jp));
|
|
13661
13672
|
return {
|
|
13662
13673
|
ticket: n,
|
|
13663
13674
|
login: Di(e, ["login", "Login"]) ?? t,
|
|
@@ -13920,7 +13931,7 @@ function O0({
|
|
|
13920
13931
|
d,
|
|
13921
13932
|
b,
|
|
13922
13933
|
l
|
|
13923
|
-
]), /* @__PURE__ */ R(
|
|
13934
|
+
]), /* @__PURE__ */ R(Ge, { children: [
|
|
13924
13935
|
/* @__PURE__ */ p(_p, { chartWidget: n, symbolTicker: e, symbols: m }),
|
|
13925
13936
|
/* @__PURE__ */ p(hp, {}),
|
|
13926
13937
|
/* @__PURE__ */ p(
|
|
@@ -14430,7 +14441,7 @@ function Wp({
|
|
|
14430
14441
|
const xe = V === "header" ? X.scrollLeft : V === "body" ? K.scrollLeft : (de == null ? void 0 : de.scrollLeft) ?? 0;
|
|
14431
14442
|
V !== "header" && (X.scrollLeft = xe), V !== "body" && (K.scrollLeft = xe), de && V !== "footer" && (de.scrollLeft = xe);
|
|
14432
14443
|
}, []);
|
|
14433
|
-
return /* @__PURE__ */ R(
|
|
14444
|
+
return /* @__PURE__ */ R(Ge, { children: [
|
|
14434
14445
|
!e && l ? /* @__PURE__ */ p("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
|
|
14435
14446
|
/* @__PURE__ */ R(
|
|
14436
14447
|
"div",
|
|
@@ -14626,7 +14637,7 @@ function Kp({
|
|
|
14626
14637
|
]
|
|
14627
14638
|
}
|
|
14628
14639
|
),
|
|
14629
|
-
n ? /* @__PURE__ */ R(
|
|
14640
|
+
n ? /* @__PURE__ */ R(Ge, { children: [
|
|
14630
14641
|
/* @__PURE__ */ p(
|
|
14631
14642
|
"button",
|
|
14632
14643
|
{
|
|
@@ -14792,7 +14803,7 @@ var Y0 = _.forwardRef((e, t) => {
|
|
|
14792
14803
|
function Sc(e) {
|
|
14793
14804
|
return e ? "open" : "closed";
|
|
14794
14805
|
}
|
|
14795
|
-
var Q0 = Zp, X0 = Qp, J0 = Xp,
|
|
14806
|
+
var Q0 = Zp, X0 = Qp, J0 = Xp, Et = "Accordion", ex = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [xc, tx, nx] = Cu(Et), [Ws] = Or(Et, [
|
|
14796
14807
|
nx,
|
|
14797
14808
|
qp
|
|
14798
14809
|
]), Cc = qp(), Jp = _.forwardRef(
|
|
@@ -14801,9 +14812,9 @@ var Q0 = Zp, X0 = Qp, J0 = Xp, Ct = "Accordion", ex = ["Home", "End", "ArrowDown
|
|
|
14801
14812
|
return /* @__PURE__ */ p(xc.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(ox, { ...s, ref: t }) : /* @__PURE__ */ p(sx, { ...i, ref: t }) });
|
|
14802
14813
|
}
|
|
14803
14814
|
);
|
|
14804
|
-
Jp.displayName =
|
|
14805
|
-
var [eh, rx] = Ws(
|
|
14806
|
-
|
|
14815
|
+
Jp.displayName = Et;
|
|
14816
|
+
var [eh, rx] = Ws(Et), [th, ix] = Ws(
|
|
14817
|
+
Et,
|
|
14807
14818
|
{ collapsible: !1 }
|
|
14808
14819
|
), sx = _.forwardRef(
|
|
14809
14820
|
(e, t) => {
|
|
@@ -14818,7 +14829,7 @@ var [eh, rx] = Ws(Ct), [th, ix] = Ws(
|
|
|
14818
14829
|
prop: n,
|
|
14819
14830
|
defaultProp: r ?? "",
|
|
14820
14831
|
onChange: i,
|
|
14821
|
-
caller:
|
|
14832
|
+
caller: Et
|
|
14822
14833
|
});
|
|
14823
14834
|
return /* @__PURE__ */ p(
|
|
14824
14835
|
eh,
|
|
@@ -14842,7 +14853,7 @@ var [eh, rx] = Ws(Ct), [th, ix] = Ws(
|
|
|
14842
14853
|
prop: n,
|
|
14843
14854
|
defaultProp: r ?? [],
|
|
14844
14855
|
onChange: i,
|
|
14845
|
-
caller:
|
|
14856
|
+
caller: Et
|
|
14846
14857
|
}), c = _.useCallback(
|
|
14847
14858
|
(d) => a((u = []) => [...u, d]),
|
|
14848
14859
|
[a]
|
|
@@ -14860,7 +14871,7 @@ var [eh, rx] = Ws(Ct), [th, ix] = Ws(
|
|
|
14860
14871
|
children: /* @__PURE__ */ p(th, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(nh, { ...s, ref: t }) })
|
|
14861
14872
|
}
|
|
14862
14873
|
);
|
|
14863
|
-
}), [ax, Gs] = Ws(
|
|
14874
|
+
}), [ax, Gs] = Ws(Et), nh = _.forwardRef(
|
|
14864
14875
|
(e, t) => {
|
|
14865
14876
|
const { __scopeAccordion: n, disabled: r, dir: i, orientation: s = "vertical", ...o } = e, a = _.useRef(null), c = Ne(a, t), l = tx(n), u = Eu(i) === "ltr", m = Pe(e.onKeyDown, (h) => {
|
|
14866
14877
|
var A;
|
|
@@ -14951,7 +14962,7 @@ var [eh, rx] = Ws(Ct), [th, ix] = Ws(
|
|
|
14951
14962
|
rh.displayName = fs;
|
|
14952
14963
|
var ih = "AccordionHeader", sh = _.forwardRef(
|
|
14953
14964
|
(e, t) => {
|
|
14954
|
-
const { __scopeAccordion: n, ...r } = e, i = Gs(
|
|
14965
|
+
const { __scopeAccordion: n, ...r } = e, i = Gs(Et, n), s = Ec(ih, n);
|
|
14955
14966
|
return /* @__PURE__ */ p(
|
|
14956
14967
|
Se.h3,
|
|
14957
14968
|
{
|
|
@@ -14967,7 +14978,7 @@ var ih = "AccordionHeader", sh = _.forwardRef(
|
|
|
14967
14978
|
sh.displayName = ih;
|
|
14968
14979
|
var oa = "AccordionTrigger", oh = _.forwardRef(
|
|
14969
14980
|
(e, t) => {
|
|
14970
|
-
const { __scopeAccordion: n, ...r } = e, i = Gs(
|
|
14981
|
+
const { __scopeAccordion: n, ...r } = e, i = Gs(Et, n), s = Ec(oa, n), o = ix(oa, n), a = Cc(n);
|
|
14971
14982
|
return /* @__PURE__ */ p(xc.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
14972
14983
|
X0,
|
|
14973
14984
|
{
|
|
@@ -14984,7 +14995,7 @@ var oa = "AccordionTrigger", oh = _.forwardRef(
|
|
|
14984
14995
|
oh.displayName = oa;
|
|
14985
14996
|
var ah = "AccordionContent", ch = _.forwardRef(
|
|
14986
14997
|
(e, t) => {
|
|
14987
|
-
const { __scopeAccordion: n, ...r } = e, i = Gs(
|
|
14998
|
+
const { __scopeAccordion: n, ...r } = e, i = Gs(Et, n), s = Ec(ah, n), o = Cc(n);
|
|
14988
14999
|
return /* @__PURE__ */ p(
|
|
14989
15000
|
J0,
|
|
14990
15001
|
{
|
|
@@ -15142,23 +15153,23 @@ function px({
|
|
|
15142
15153
|
onClose: u,
|
|
15143
15154
|
onPlaceOrder: m
|
|
15144
15155
|
}) {
|
|
15145
|
-
const [h, g] = Y("market"), [f, y] = Y(String(r)), [b, v] = Y(""), [S, w] = Y(""), x = ae((ne) => ne.stopLoss), P = ae((ne) => ne.takeProfit), E = ae((ne) => ne.setStopLoss), A = ae((ne) => ne.setTakeProfit), k = ae((ne) => ne.setVolumeLots), O = ae((ne) => ne.setOrderSide), [D, L] = Y(""), [B, I] = Y(
|
|
15156
|
+
const [h, g] = Y("market"), [f, y] = Y(String(r)), [b, v] = Y(""), [S, w] = Y(""), x = ae((ne) => ne.stopLoss), P = ae((ne) => ne.takeProfit), E = ae((ne) => ne.setStopLoss), A = ae((ne) => ne.setTakeProfit), k = ae((ne) => ne.setVolumeLots), O = ae((ne) => ne.setOrderSide), [D, L] = Y(""), [B, I] = Y(bt.GTC), [H, $] = Y(""), [U, N] = Y(""), F = Number(Wt(Gt(e))), q = Nr(F), M = kf(t, n), he = t !== null ? Oe(t, F) : "—", ie = n !== null ? Oe(n, F) : "—", we = Ns(h), V = Tf(h), X = Rs(h), K = X.label, de = !we && X.orderType !== null && X.orderType % 2 === 1, xe = Re(() => M !== null ? M : t ?? n, [n, t, M]), ue = (ne) => {
|
|
15146
15157
|
y(ne);
|
|
15147
|
-
const
|
|
15148
|
-
Number.isFinite(
|
|
15149
|
-
}, fe = (ne) => t === null || n === null ? null : we ? ne === "buy" ? n : t :
|
|
15150
|
-
const
|
|
15151
|
-
|
|
15158
|
+
const Ke = Number(ne);
|
|
15159
|
+
Number.isFinite(Ke) && Ke > 0 && k(Ke);
|
|
15160
|
+
}, fe = (ne) => t === null || n === null ? null : we ? ne === "buy" ? n : t : vt(b) ?? (ne === "buy" ? n : t), re = (ne) => {
|
|
15161
|
+
const Ke = fe(ne);
|
|
15162
|
+
Ke !== null && O({ side: ne, entryPrice: Ke });
|
|
15152
15163
|
}, $e = (ne) => {
|
|
15153
15164
|
if (t === null || n === null || !c)
|
|
15154
15165
|
return;
|
|
15155
|
-
const
|
|
15166
|
+
const Ke = Math.max(s, Number(f) || s), Ks = Mo(h, ne), yi = fe(ne);
|
|
15156
15167
|
yi !== null && O({ side: ne, entryPrice: yi }), m({
|
|
15157
15168
|
login: c,
|
|
15158
15169
|
executionMode: h,
|
|
15159
15170
|
side: ne,
|
|
15160
15171
|
orderType: Ks,
|
|
15161
|
-
volumeLots:
|
|
15172
|
+
volumeLots: Ke,
|
|
15162
15173
|
stopLoss: x,
|
|
15163
15174
|
takeProfit: P,
|
|
15164
15175
|
priceOrder: b,
|
|
@@ -15170,7 +15181,7 @@ function px({
|
|
|
15170
15181
|
bid: t,
|
|
15171
15182
|
ask: n
|
|
15172
15183
|
});
|
|
15173
|
-
}, Me = t !== null && n !== null, Le = we ||
|
|
15184
|
+
}, Me = t !== null && n !== null, Le = we || vt(b) !== void 0, J = !V || vt(S) !== void 0, Ae = we || Ls(B, H, U), He = !o && !a && c !== "" && Me && Le && J && Ae, rt = !we && tc(B), ht = !we && nc(B);
|
|
15174
15185
|
return /* @__PURE__ */ R("div", { className: "web-trading-widget-market-panel", children: [
|
|
15175
15186
|
/* @__PURE__ */ R("div", { className: "web-trading-widget-market-panel__header", children: [
|
|
15176
15187
|
/* @__PURE__ */ R(ts, { value: h, onValueChange: (ne) => g(ne), children: [
|
|
@@ -15217,7 +15228,7 @@ function px({
|
|
|
15217
15228
|
] }),
|
|
15218
15229
|
we ? null : /* @__PURE__ */ R(Xn, { value: "order-price", className: "web-trading-widget-market-panel__accordion-item", children: [
|
|
15219
15230
|
/* @__PURE__ */ p(Jn, { className: "web-trading-widget-market-panel__accordion-trigger", children: "Order Price" }),
|
|
15220
|
-
/* @__PURE__ */ p(er, { className: "web-trading-widget-market-panel__accordion-content", children: V ? /* @__PURE__ */ R(
|
|
15231
|
+
/* @__PURE__ */ p(er, { className: "web-trading-widget-market-panel__accordion-content", children: V ? /* @__PURE__ */ R(Ge, { children: [
|
|
15221
15232
|
/* @__PURE__ */ p(
|
|
15222
15233
|
Ue,
|
|
15223
15234
|
{
|
|
@@ -15304,7 +15315,7 @@ function px({
|
|
|
15304
15315
|
}
|
|
15305
15316
|
)
|
|
15306
15317
|
] }) : null,
|
|
15307
|
-
|
|
15318
|
+
ht ? /* @__PURE__ */ R("div", { className: "web-trading-widget-market-panel__field", children: [
|
|
15308
15319
|
/* @__PURE__ */ p("span", { className: "web-trading-widget-market-panel__field-label", children: "Expiration day" }),
|
|
15309
15320
|
/* @__PURE__ */ p(Fn, { type: "date", value: U, onChange: (ne) => N(ne.target.value) })
|
|
15310
15321
|
] }) : null
|
|
@@ -15322,7 +15333,7 @@ function px({
|
|
|
15322
15333
|
] }),
|
|
15323
15334
|
we ? /* @__PURE__ */ R("div", { className: "web-trading-widget-market-panel__actions", children: [
|
|
15324
15335
|
/* @__PURE__ */ p(
|
|
15325
|
-
|
|
15336
|
+
ft,
|
|
15326
15337
|
{
|
|
15327
15338
|
type: "button",
|
|
15328
15339
|
variant: "destructive",
|
|
@@ -15334,7 +15345,7 @@ function px({
|
|
|
15334
15345
|
}
|
|
15335
15346
|
),
|
|
15336
15347
|
/* @__PURE__ */ p(
|
|
15337
|
-
|
|
15348
|
+
ft,
|
|
15338
15349
|
{
|
|
15339
15350
|
type: "button",
|
|
15340
15351
|
className: "web-trading-widget-market-panel__buy-btn",
|
|
@@ -15345,7 +15356,7 @@ function px({
|
|
|
15345
15356
|
}
|
|
15346
15357
|
)
|
|
15347
15358
|
] }) : /* @__PURE__ */ R(
|
|
15348
|
-
|
|
15359
|
+
ft,
|
|
15349
15360
|
{
|
|
15350
15361
|
type: "button",
|
|
15351
15362
|
variant: de ? "destructive" : "default",
|
|
@@ -15399,7 +15410,7 @@ function fh({ confirmation: e, symbolTicker: t, onDismiss: n }) {
|
|
|
15399
15410
|
i
|
|
15400
15411
|
] }),
|
|
15401
15412
|
/* @__PURE__ */ p("p", { className: "web-trading-widget-confirmation__status", children: "Placed" }),
|
|
15402
|
-
/* @__PURE__ */ p(
|
|
15413
|
+
/* @__PURE__ */ p(ft, { type: "button", className: "web-trading-widget-confirmation__ok-btn", onClick: n, children: "OK" })
|
|
15403
15414
|
] })
|
|
15404
15415
|
] });
|
|
15405
15416
|
}
|
|
@@ -15531,7 +15542,7 @@ function ph({
|
|
|
15531
15542
|
] }),
|
|
15532
15543
|
/* @__PURE__ */ R("div", { className: "web-trading-widget-detail-panel__body", children: [
|
|
15533
15544
|
/* @__PURE__ */ p(Ue, { label: "Lots", value: s, onChange: o, step: 0.01, min: 0.01, decimals: 2, disabled: !0 }),
|
|
15534
|
-
A ? /* @__PURE__ */ R(
|
|
15545
|
+
A ? /* @__PURE__ */ R(Ge, { children: [
|
|
15535
15546
|
/* @__PURE__ */ p(
|
|
15536
15547
|
Ue,
|
|
15537
15548
|
{
|
|
@@ -15596,7 +15607,7 @@ function ph({
|
|
|
15596
15607
|
/* @__PURE__ */ p(Fn, { value: b, onChange: (U) => v(U.target.value) })
|
|
15597
15608
|
] }),
|
|
15598
15609
|
/* @__PURE__ */ p(
|
|
15599
|
-
|
|
15610
|
+
ft,
|
|
15600
15611
|
{
|
|
15601
15612
|
type: "button",
|
|
15602
15613
|
variant: "secondary",
|
|
@@ -15607,7 +15618,7 @@ function ph({
|
|
|
15607
15618
|
}
|
|
15608
15619
|
),
|
|
15609
15620
|
/* @__PURE__ */ p(
|
|
15610
|
-
|
|
15621
|
+
ft,
|
|
15611
15622
|
{
|
|
15612
15623
|
type: "button",
|
|
15613
15624
|
className: "web-trading-widget-detail-panel__action-btn",
|
|
@@ -15744,9 +15755,9 @@ function hh({
|
|
|
15744
15755
|
/* @__PURE__ */ p("span", { className: "web-trading-widget-market-panel__field-label", children: "Comment" }),
|
|
15745
15756
|
/* @__PURE__ */ p(Fn, { value: m, onChange: (x) => h(x.target.value) })
|
|
15746
15757
|
] }),
|
|
15747
|
-
/* @__PURE__ */ p(
|
|
15758
|
+
/* @__PURE__ */ p(ft, { type: "button", variant: "secondary", className: "web-trading-widget-detail-panel__btn-full", disabled: !0, children: "Modify" }),
|
|
15748
15759
|
/* @__PURE__ */ p(
|
|
15749
|
-
|
|
15760
|
+
ft,
|
|
15750
15761
|
{
|
|
15751
15762
|
type: "button",
|
|
15752
15763
|
className: "web-trading-widget-detail-panel__action-btn",
|
|
@@ -15926,7 +15937,7 @@ function bx({
|
|
|
15926
15937
|
Number(
|
|
15927
15938
|
Wt(Gt(O.symbolTicker, e))
|
|
15928
15939
|
);
|
|
15929
|
-
const I = Ns(O.executionMode), H = ec(O.orderType), $ =
|
|
15940
|
+
const I = Ns(O.executionMode), H = ec(O.orderType), $ = vt(O.priceOrder), U = vt(O.priceTrigger);
|
|
15930
15941
|
if (!I && $ === void 0) {
|
|
15931
15942
|
Ee({
|
|
15932
15943
|
variant: "destructive",
|
|
@@ -15962,8 +15973,8 @@ function bx({
|
|
|
15962
15973
|
side: ss(O.orderType),
|
|
15963
15974
|
orderType: O.orderType,
|
|
15964
15975
|
volumeLots: L,
|
|
15965
|
-
stopLoss:
|
|
15966
|
-
takeProfit:
|
|
15976
|
+
stopLoss: vt(O.stopLoss),
|
|
15977
|
+
takeProfit: vt(O.takeProfit),
|
|
15967
15978
|
priceOrder: Ja(O.orderType) ? $ : void 0,
|
|
15968
15979
|
priceTrigger: H ? U : void 0,
|
|
15969
15980
|
comment: O.comment.trim(),
|
|
@@ -17014,7 +17025,7 @@ class lt {
|
|
|
17014
17025
|
}
|
|
17015
17026
|
const ce = Object.freeze({
|
|
17016
17027
|
status: "aborted"
|
|
17017
|
-
}), Hr = (e) => ({ status: "dirty", value: e }),
|
|
17028
|
+
}), Hr = (e) => ({ status: "dirty", value: e }), pt = (e) => ({ status: "valid", value: e }), bd = (e) => e.status === "aborted", vd = (e) => e.status === "dirty", xr = (e) => e.status === "valid", hs = (e) => typeof Promise < "u" && e instanceof Promise;
|
|
17018
17029
|
var Q;
|
|
17019
17030
|
(function(e) {
|
|
17020
17031
|
e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
|
|
@@ -18010,7 +18021,7 @@ class fa extends ve {
|
|
|
18010
18021
|
received: r.parsedType
|
|
18011
18022
|
}), ce;
|
|
18012
18023
|
}
|
|
18013
|
-
return
|
|
18024
|
+
return pt(t.data);
|
|
18014
18025
|
}
|
|
18015
18026
|
}
|
|
18016
18027
|
fa.create = (e) => new fa({
|
|
@@ -18106,7 +18117,7 @@ class _d extends ve {
|
|
|
18106
18117
|
received: r.parsedType
|
|
18107
18118
|
}), ce;
|
|
18108
18119
|
}
|
|
18109
|
-
return
|
|
18120
|
+
return pt(t.data);
|
|
18110
18121
|
}
|
|
18111
18122
|
}
|
|
18112
18123
|
_d.create = (e) => new _d({
|
|
@@ -18123,7 +18134,7 @@ class Sd extends ve {
|
|
|
18123
18134
|
received: r.parsedType
|
|
18124
18135
|
}), ce;
|
|
18125
18136
|
}
|
|
18126
|
-
return
|
|
18137
|
+
return pt(t.data);
|
|
18127
18138
|
}
|
|
18128
18139
|
}
|
|
18129
18140
|
Sd.create = (e) => new Sd({
|
|
@@ -18140,7 +18151,7 @@ class xd extends ve {
|
|
|
18140
18151
|
received: r.parsedType
|
|
18141
18152
|
}), ce;
|
|
18142
18153
|
}
|
|
18143
|
-
return
|
|
18154
|
+
return pt(t.data);
|
|
18144
18155
|
}
|
|
18145
18156
|
}
|
|
18146
18157
|
xd.create = (e) => new xd({
|
|
@@ -18152,7 +18163,7 @@ class Cd extends ve {
|
|
|
18152
18163
|
super(...arguments), this._any = !0;
|
|
18153
18164
|
}
|
|
18154
18165
|
_parse(t) {
|
|
18155
|
-
return
|
|
18166
|
+
return pt(t.data);
|
|
18156
18167
|
}
|
|
18157
18168
|
}
|
|
18158
18169
|
Cd.create = (e) => new Cd({
|
|
@@ -18164,7 +18175,7 @@ class Ed extends ve {
|
|
|
18164
18175
|
super(...arguments), this._unknown = !0;
|
|
18165
18176
|
}
|
|
18166
18177
|
_parse(t) {
|
|
18167
|
-
return
|
|
18178
|
+
return pt(t.data);
|
|
18168
18179
|
}
|
|
18169
18180
|
}
|
|
18170
18181
|
Ed.create = (e) => new Ed({
|
|
@@ -18195,7 +18206,7 @@ class Td extends ve {
|
|
|
18195
18206
|
received: r.parsedType
|
|
18196
18207
|
}), ce;
|
|
18197
18208
|
}
|
|
18198
|
-
return
|
|
18209
|
+
return pt(t.data);
|
|
18199
18210
|
}
|
|
18200
18211
|
}
|
|
18201
18212
|
Td.create = (e) => new Td({
|
|
@@ -18938,7 +18949,7 @@ class Er extends ve {
|
|
|
18938
18949
|
options: r
|
|
18939
18950
|
}), ce;
|
|
18940
18951
|
}
|
|
18941
|
-
return
|
|
18952
|
+
return pt(t.data);
|
|
18942
18953
|
}
|
|
18943
18954
|
get options() {
|
|
18944
18955
|
return this._def.values;
|
|
@@ -18994,7 +19005,7 @@ class Ad extends ve {
|
|
|
18994
19005
|
options: i
|
|
18995
19006
|
}), ce;
|
|
18996
19007
|
}
|
|
18997
|
-
return
|
|
19008
|
+
return pt(t.data);
|
|
18998
19009
|
}
|
|
18999
19010
|
get enum() {
|
|
19000
19011
|
return this._def.values;
|
|
@@ -19018,7 +19029,7 @@ class bs extends ve {
|
|
|
19018
19029
|
received: n.parsedType
|
|
19019
19030
|
}), ce;
|
|
19020
19031
|
const r = n.parsedType === Z.promise ? n.data : Promise.resolve(n.data);
|
|
19021
|
-
return
|
|
19032
|
+
return pt(r.then((i) => this._def.type.parseAsync(i, {
|
|
19022
19033
|
path: n.path,
|
|
19023
19034
|
errorMap: n.common.contextualErrorMap
|
|
19024
19035
|
})));
|
|
@@ -19123,7 +19134,7 @@ Tr.createWithPreprocess = (e, t, n) => new Tr({
|
|
|
19123
19134
|
});
|
|
19124
19135
|
class un extends ve {
|
|
19125
19136
|
_parse(t) {
|
|
19126
|
-
return this._getType(t) === Z.undefined ?
|
|
19137
|
+
return this._getType(t) === Z.undefined ? pt(void 0) : this._def.innerType._parse(t);
|
|
19127
19138
|
}
|
|
19128
19139
|
unwrap() {
|
|
19129
19140
|
return this._def.innerType;
|
|
@@ -19136,7 +19147,7 @@ un.create = (e, t) => new un({
|
|
|
19136
19147
|
});
|
|
19137
19148
|
class Pr extends ve {
|
|
19138
19149
|
_parse(t) {
|
|
19139
|
-
return this._getType(t) === Z.null ?
|
|
19150
|
+
return this._getType(t) === Z.null ? pt(null) : this._def.innerType._parse(t);
|
|
19140
19151
|
}
|
|
19141
19152
|
unwrap() {
|
|
19142
19153
|
return this._def.innerType;
|
|
@@ -19544,7 +19555,7 @@ function yC({
|
|
|
19544
19555
|
]
|
|
19545
19556
|
}
|
|
19546
19557
|
) }) : null;
|
|
19547
|
-
return /* @__PURE__ */ R(
|
|
19558
|
+
return /* @__PURE__ */ R(Ge, { children: [
|
|
19548
19559
|
o ?? U,
|
|
19549
19560
|
/* @__PURE__ */ p(Sx, { onLoad: $ }),
|
|
19550
19561
|
/* @__PURE__ */ p("div", { ref: x, className: "web-trading-widget-advanced__container" })
|
|
@@ -19637,7 +19648,7 @@ function vC({
|
|
|
19637
19648
|
)
|
|
19638
19649
|
}
|
|
19639
19650
|
),
|
|
19640
|
-
/* @__PURE__ */ R(
|
|
19651
|
+
/* @__PURE__ */ R(Ge, { children: [
|
|
19641
19652
|
/* @__PURE__ */ R(
|
|
19642
19653
|
"button",
|
|
19643
19654
|
{
|
|
@@ -19777,7 +19788,7 @@ function _C({
|
|
|
19777
19788
|
onClose: m,
|
|
19778
19789
|
onPlaceOrder: h
|
|
19779
19790
|
}) {
|
|
19780
|
-
const [g, f] = Y(!0), [y, b] = Y("market"), v = ae((ee) => ee.volumeLots), [S, w] = Y(String(v || r)), [x, P] = Y(""), [E, A] = Y(""), k = ae((ee) => ee.stopLoss), O = ae((ee) => ee.takeProfit), D = ae((ee) => ee.setStopLoss), L = ae((ee) => ee.setTakeProfit), B = ae((ee) => ee.setVolumeLots), I = ae((ee) => ee.setOrderSide), [H, $] = Y(""), [U, N] = Y(
|
|
19791
|
+
const [g, f] = Y(!0), [y, b] = Y("market"), v = ae((ee) => ee.volumeLots), [S, w] = Y(String(v || r)), [x, P] = Y(""), [E, A] = Y(""), k = ae((ee) => ee.stopLoss), O = ae((ee) => ee.takeProfit), D = ae((ee) => ee.setStopLoss), L = ae((ee) => ee.setTakeProfit), B = ae((ee) => ee.setVolumeLots), I = ae((ee) => ee.setOrderSide), [H, $] = Y(""), [U, N] = Y(bt.GTC), [F, q] = Y(""), [M, he] = Y(""), [ie, we] = Y(() => new Set(wC));
|
|
19781
19792
|
se(() => {
|
|
19782
19793
|
u();
|
|
19783
19794
|
}, [g, u]);
|
|
@@ -19790,10 +19801,10 @@ function _C({
|
|
|
19790
19801
|
w(ee);
|
|
19791
19802
|
const it = Number(ee);
|
|
19792
19803
|
Number.isFinite(it) && it > 0 && B(it);
|
|
19793
|
-
}, He = (ee) => t === null || n === null ? null : ue ? ee === "buy" ? n : t :
|
|
19804
|
+
}, He = (ee) => t === null || n === null ? null : ue ? ee === "buy" ? n : t : vt(x) ?? (ee === "buy" ? n : t), rt = (ee) => {
|
|
19794
19805
|
const it = He(ee);
|
|
19795
19806
|
it !== null && I({ side: ee, entryPrice: it });
|
|
19796
|
-
},
|
|
19807
|
+
}, ht = (ee) => {
|
|
19797
19808
|
if (t === null || n === null || !c)
|
|
19798
19809
|
return;
|
|
19799
19810
|
const it = Math.max(s, Number(S) || s), Kt = Mo(y, ee), Ir = He(ee);
|
|
@@ -19814,7 +19825,7 @@ function _C({
|
|
|
19814
19825
|
bid: t,
|
|
19815
19826
|
ask: n
|
|
19816
19827
|
});
|
|
19817
|
-
}, ne = t !== null && n !== null,
|
|
19828
|
+
}, ne = t !== null && n !== null, Ke = ue || vt(x) !== void 0, Ks = !fe || vt(E) !== void 0, yi = ue || Ls(U, F, M), xh = !o && !a && c !== "" && ne && Ke && Ks && yi, Ch = !ue && tc(U), Eh = !ue && nc(U), Pc = () => re.orderType !== null && re.orderType % 2 === 1 ? "sell" : "buy";
|
|
19818
19829
|
return /* @__PURE__ */ R(
|
|
19819
19830
|
"div",
|
|
19820
19831
|
{
|
|
@@ -19857,7 +19868,7 @@ function _C({
|
|
|
19857
19868
|
}
|
|
19858
19869
|
}
|
|
19859
19870
|
),
|
|
19860
|
-
g ? null : /* @__PURE__ */ R(
|
|
19871
|
+
g ? null : /* @__PURE__ */ R(Ge, { children: [
|
|
19861
19872
|
/* @__PURE__ */ p("div", { className: "web-trading-widget-market-panel__header", children: /* @__PURE__ */ R(ts, { value: y, onValueChange: (ee) => b(ee), children: [
|
|
19862
19873
|
/* @__PURE__ */ p(Gr, { className: "web-trading-widget-market-panel__select-trigger", "aria-label": "Order execution type", children: /* @__PURE__ */ p(ns, {}) }),
|
|
19863
19874
|
/* @__PURE__ */ p(Kr, { children: is.map((ee) => /* @__PURE__ */ p(qr, { value: ee.mode, children: ee.label }, ee.mode)) })
|
|
@@ -19890,7 +19901,7 @@ function _C({
|
|
|
19890
19901
|
title: "Order Price",
|
|
19891
19902
|
isOpen: ie.has("order-price"),
|
|
19892
19903
|
onToggle: () => J("order-price"),
|
|
19893
|
-
children: fe ? /* @__PURE__ */ R(
|
|
19904
|
+
children: fe ? /* @__PURE__ */ R(Ge, { children: [
|
|
19894
19905
|
/* @__PURE__ */ p(
|
|
19895
19906
|
Ue,
|
|
19896
19907
|
{
|
|
@@ -20042,7 +20053,7 @@ function _C({
|
|
|
20042
20053
|
className: `web-trading-widget-market-panel__place-btn${Me ? " web-trading-widget-market-panel__place-btn--sell" : " web-trading-widget-market-panel__place-btn--buy"}`,
|
|
20043
20054
|
disabled: !xh,
|
|
20044
20055
|
onMouseDown: () => rt(Pc()),
|
|
20045
|
-
onClick: () =>
|
|
20056
|
+
onClick: () => ht(Pc()),
|
|
20046
20057
|
children: [
|
|
20047
20058
|
"Place ",
|
|
20048
20059
|
$e
|
|
@@ -20170,15 +20181,15 @@ function CC({
|
|
|
20170
20181
|
variant: t = "chart",
|
|
20171
20182
|
scanResultUrl: n,
|
|
20172
20183
|
onScanResultUrlChange: r,
|
|
20173
|
-
|
|
20174
|
-
|
|
20184
|
+
onScanResultLoad: i,
|
|
20185
|
+
chartWidget: s
|
|
20175
20186
|
}) {
|
|
20176
|
-
const o =
|
|
20187
|
+
const o = s !== void 0, a = gi(), c = bx({
|
|
20177
20188
|
symbols: a,
|
|
20178
20189
|
defaultPanelAfterConfirm: t === "news" ? "market" : "mini"
|
|
20179
20190
|
}), l = Te(null), d = Te(null), [u, m] = Y(null), h = oe((I) => {
|
|
20180
20191
|
m(I);
|
|
20181
|
-
}, []), [g, f] = Y(null), [y, b] = Y(null), v = o ?
|
|
20192
|
+
}, []), [g, f] = Y(null), [y, b] = Y(null), v = o ? s ?? null : g, [S, w] = Y(
|
|
20182
20193
|
() => ps(a)
|
|
20183
20194
|
), [x, P] = Y(
|
|
20184
20195
|
n ?? null
|
|
@@ -20296,7 +20307,7 @@ function CC({
|
|
|
20296
20307
|
orderState: c,
|
|
20297
20308
|
scanResultUrl: x,
|
|
20298
20309
|
initialTab: x ? "scan" : "trade",
|
|
20299
|
-
onScanResultLoad:
|
|
20310
|
+
onScanResultLoad: i
|
|
20300
20311
|
},
|
|
20301
20312
|
x ?? "trade-only"
|
|
20302
20313
|
)
|