@mrreality255/turbo-react 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +147 -130
- package/dist/index.umd.js +5 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import or, { createContext as He, useContext as G, useId as qe, useRef as J, useEffect as L, useState as
|
|
1
|
+
import or, { createContext as He, useContext as G, useId as qe, useRef as J, useEffect as L, useState as j, useMemo as ze, createElement as lr } from "react";
|
|
2
2
|
var Qe = { exports: {} }, je = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -67,7 +67,7 @@ function Ss() {
|
|
|
67
67
|
switch (typeof f.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
69
|
), f.$$typeof) {
|
|
70
|
-
case
|
|
70
|
+
case R:
|
|
71
71
|
return "Portal";
|
|
72
72
|
case be:
|
|
73
73
|
return f.displayName || "Context";
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function g(f) {
|
|
238
238
|
return typeof f == "object" && f !== null && f.$$typeof === S;
|
|
239
239
|
}
|
|
240
|
-
var y = or, S = Symbol.for("react.transitional.element"),
|
|
240
|
+
var y = or, S = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), ce = Symbol.for("react.consumer"), be = Symbol.for("react.context"), Ke = Symbol.for("react.forward_ref"), St = Symbol.for("react.suspense"), pt = Symbol.for("react.suspense_list"), Ot = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), de = Symbol.for("react.activity"), Nt = Symbol.for("react.client.reference"), Et = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, wn = Object.prototype.hasOwnProperty, ks = Array.isArray, Mt = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
y = {
|
|
@@ -277,7 +277,7 @@ function ps() {
|
|
|
277
277
|
return pn || (pn = 1, process.env.NODE_ENV === "production" ? Qe.exports = Ts() : Qe.exports = Ss()), Qe.exports;
|
|
278
278
|
}
|
|
279
279
|
var u = ps();
|
|
280
|
-
const Os = "_text_x4k87_13", Ns = "_fill_x4k87_21", Es = "_btn_x4k87_28", Ms = "_down_x4k87_59", Cs = "_plain_x4k87_77", Ds = "_link_x4k87_115", Is = "_green_x4k87_139", Fs = "_blue_x4k87_163", Vs = "_cyan_x4k87_193", js = "_dark_x4k87_225", Rs = "_grey_x4k87_243",
|
|
280
|
+
const Os = "_text_x4k87_13", Ns = "_fill_x4k87_21", Es = "_btn_x4k87_28", Ms = "_down_x4k87_59", Cs = "_plain_x4k87_77", Ds = "_link_x4k87_115", Is = "_green_x4k87_139", Fs = "_blue_x4k87_163", Vs = "_cyan_x4k87_193", js = "_dark_x4k87_225", Rs = "_grey_x4k87_243", Ws = "_dialog_x4k87_260", $s = "_red_x4k87_270", Ls = "_mono_x4k87_311", Q = {
|
|
281
281
|
text: Os,
|
|
282
282
|
fill: Ns,
|
|
283
283
|
btn: Es,
|
|
@@ -290,8 +290,8 @@ const Os = "_text_x4k87_13", Ns = "_fill_x4k87_21", Es = "_btn_x4k87_28", Ms = "
|
|
|
290
290
|
cyan: Vs,
|
|
291
291
|
dark: js,
|
|
292
292
|
grey: Rs,
|
|
293
|
-
dialog:
|
|
294
|
-
red:
|
|
293
|
+
dialog: Ws,
|
|
294
|
+
red: $s,
|
|
295
295
|
mono: Ls
|
|
296
296
|
}, ur = He("blue");
|
|
297
297
|
function re(t) {
|
|
@@ -543,7 +543,7 @@ function Bs(t, e) {
|
|
|
543
543
|
return { ...t, isValid: n };
|
|
544
544
|
}
|
|
545
545
|
function gt(t) {
|
|
546
|
-
const [e, n] =
|
|
546
|
+
const [e, n] = j(t.defaultValue);
|
|
547
547
|
return {
|
|
548
548
|
value: t.value ?? e,
|
|
549
549
|
set: function(s) {
|
|
@@ -583,7 +583,7 @@ function fr(t, e) {
|
|
|
583
583
|
transition: n,
|
|
584
584
|
transform: t == "resize" ? "scale(0.1)" : void 0,
|
|
585
585
|
opacity: t == "opacity" ? 0 : void 0
|
|
586
|
-
}), []), s = G(ve), [i, a] =
|
|
586
|
+
}), []), s = G(ve), [i, a] = j(r);
|
|
587
587
|
return L(() => {
|
|
588
588
|
a({
|
|
589
589
|
transition: n,
|
|
@@ -681,7 +681,7 @@ const li = "_glass_wibzt_5", ui = "_backdrop_wibzt_14", On = {
|
|
|
681
681
|
backdrop: ui
|
|
682
682
|
};
|
|
683
683
|
function Ue(t) {
|
|
684
|
-
const [e, n] =
|
|
684
|
+
const [e, n] = j(null);
|
|
685
685
|
return t.visible ? /* @__PURE__ */ u.jsx(
|
|
686
686
|
"div",
|
|
687
687
|
{
|
|
@@ -749,7 +749,7 @@ function H(t) {
|
|
|
749
749
|
}
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
|
-
const ci = "_clickable_1xa7b_2", di = "_fullSize_1xa7b_6", fi = "_main_1xa7b_11", hi = "_shadow_1xa7b_15", mi = "_frameStd_1xa7b_19", yi = "_single_1xa7b_25", gi = "_borderless_1xa7b_30", wi = "_contentWithTitle_1xa7b_35", vi = "_close_1xa7b_39", xi = "_titleWrapper_1xa7b_43", bi = "_title_1xa7b_43", ki = "_btn_1xa7b_59", _i = "_contentInsideWrapper_1xa7b_75", Ti = "_outerBox_1xa7b_82", Si = "_wrapper_1xa7b_102", pi = "_frame_1xa7b_19", Oi = "_padding_1xa7b_107", Ni = "_content_1xa7b_35", Ei = "_contentPadding_1xa7b_126", Mi = "_contentPaddingSpace_1xa7b_131", Ci = "_outerMargin_1xa7b_146", Di = "_autoSize_1xa7b_150", Ii = "_space_1xa7b_150", Fi = "_blue_1xa7b_203", Vi = "_frameBck_1xa7b_203", ji = "_cyan_1xa7b_230", Ri = "_dark_1xa7b_257",
|
|
752
|
+
const ci = "_clickable_1xa7b_2", di = "_fullSize_1xa7b_6", fi = "_main_1xa7b_11", hi = "_shadow_1xa7b_15", mi = "_frameStd_1xa7b_19", yi = "_single_1xa7b_25", gi = "_borderless_1xa7b_30", wi = "_contentWithTitle_1xa7b_35", vi = "_close_1xa7b_39", xi = "_titleWrapper_1xa7b_43", bi = "_title_1xa7b_43", ki = "_btn_1xa7b_59", _i = "_contentInsideWrapper_1xa7b_75", Ti = "_outerBox_1xa7b_82", Si = "_wrapper_1xa7b_102", pi = "_frame_1xa7b_19", Oi = "_padding_1xa7b_107", Ni = "_content_1xa7b_35", Ei = "_contentPadding_1xa7b_126", Mi = "_contentPaddingSpace_1xa7b_131", Ci = "_outerMargin_1xa7b_146", Di = "_autoSize_1xa7b_150", Ii = "_space_1xa7b_150", Fi = "_blue_1xa7b_203", Vi = "_frameBck_1xa7b_203", ji = "_cyan_1xa7b_230", Ri = "_dark_1xa7b_257", Wi = "_green_1xa7b_284", $i = "_grey_1xa7b_316", Li = "_dialog_1xa7b_362", Ai = "_mono_1xa7b_404", Pi = "_red_1xa7b_431", x = {
|
|
753
753
|
clickable: ci,
|
|
754
754
|
fullSize: di,
|
|
755
755
|
main: fi,
|
|
@@ -777,8 +777,8 @@ const ci = "_clickable_1xa7b_2", di = "_fullSize_1xa7b_6", fi = "_main_1xa7b_11"
|
|
|
777
777
|
frameBck: Vi,
|
|
778
778
|
cyan: ji,
|
|
779
779
|
dark: Ri,
|
|
780
|
-
green:
|
|
781
|
-
grey:
|
|
780
|
+
green: Wi,
|
|
781
|
+
grey: $i,
|
|
782
782
|
dialog: Li,
|
|
783
783
|
mono: Ai,
|
|
784
784
|
red: Pi
|
|
@@ -1083,14 +1083,14 @@ function sa(t) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
function ia(t) {
|
|
1086
|
-
const e = gt(t), n = E(void 0, t), r = J(null), s = J(null), [i, a] =
|
|
1086
|
+
const e = gt(t), n = E(void 0, t), r = J(null), s = J(null), [i, a] = j(!1), o = t.windowPalette ?? (n.palette == "dialog" ? "blue" : n.palette), l = t.hasFilter === void 0 ? t.items.length > 8 : t.hasFilter, d = l ? 4 : 0, c = Ee.clamp(t.items.length * 2.3 + 2.7 + d, 3, 21), m = J(null);
|
|
1087
1087
|
L(() => {
|
|
1088
1088
|
if (!m.current || !C)
|
|
1089
1089
|
return;
|
|
1090
1090
|
const K = m.current.getBoundingClientRect(), ce = C.y + C.height, be = ce + K.height - (window.visualViewport?.height || 0);
|
|
1091
1091
|
y(ce - (be > 0 ? be : 0));
|
|
1092
1092
|
}, [m.current, i]);
|
|
1093
|
-
const [g, y] =
|
|
1093
|
+
const [g, y] = j(0), S = t.wrapperRef ?? r, R = t.inputRef ?? s, C = S.current && S.current.getBoundingClientRect(), B = ze(() => ({ disabled: !1 }), []);
|
|
1094
1094
|
return wt(t, s), {
|
|
1095
1095
|
flagDisableFocus: B,
|
|
1096
1096
|
hasFilter: l,
|
|
@@ -1103,7 +1103,7 @@ function ia(t) {
|
|
|
1103
1103
|
windowY: g,
|
|
1104
1104
|
showOpen: i,
|
|
1105
1105
|
setShowOpen: a,
|
|
1106
|
-
inputRef:
|
|
1106
|
+
inputRef: R,
|
|
1107
1107
|
viewportRef: m,
|
|
1108
1108
|
wrapperRef: S
|
|
1109
1109
|
};
|
|
@@ -1141,14 +1141,14 @@ function aa(t) {
|
|
|
1141
1141
|
] });
|
|
1142
1142
|
}
|
|
1143
1143
|
function oa(t) {
|
|
1144
|
-
const [e, n] =
|
|
1144
|
+
const [e, n] = j(""), r = J(null), [s, i] = j(t.v.value), a = t.menu.filter((c) => t.onMatchFilter(c, e)).map((c) => ({
|
|
1145
1145
|
...c,
|
|
1146
1146
|
selected: c.id == s
|
|
1147
1147
|
}));
|
|
1148
1148
|
L(() => {
|
|
1149
1149
|
r.current && t.autoFocus && !t.hasFilter && r.current.focus();
|
|
1150
1150
|
}, [r.current, t.autoFocus, t.hasFilter]);
|
|
1151
|
-
const [o] =
|
|
1151
|
+
const [o] = j({ current: null });
|
|
1152
1152
|
return /* @__PURE__ */ u.jsx(
|
|
1153
1153
|
hr,
|
|
1154
1154
|
{
|
|
@@ -1219,7 +1219,7 @@ const ua = "_gb_w5z0c_1", ca = "_green_w5z0c_12", da = "_dialog_w5z0c_16", fa =
|
|
|
1219
1219
|
dark: ya,
|
|
1220
1220
|
mono: ga
|
|
1221
1221
|
};
|
|
1222
|
-
function
|
|
1222
|
+
function Ru(t) {
|
|
1223
1223
|
const e = E(It, t), n = qe(), r = G(Ce);
|
|
1224
1224
|
return /* @__PURE__ */ u.jsxs("div", { children: [
|
|
1225
1225
|
/* @__PURE__ */ u.jsx("label", { htmlFor: n, className: e.styles(It.gb), children: t.caption }),
|
|
@@ -1238,7 +1238,7 @@ const wa = "_heading_16p41_1", va = "_blue_16p41_14", Nn = {
|
|
|
1238
1238
|
heading: wa,
|
|
1239
1239
|
blue: va
|
|
1240
1240
|
};
|
|
1241
|
-
function
|
|
1241
|
+
function Wu(t) {
|
|
1242
1242
|
const e = E(Nn, t);
|
|
1243
1243
|
return /* @__PURE__ */ u.jsx("h1", { className: e.styles(Nn.heading), children: t.children });
|
|
1244
1244
|
}
|
|
@@ -1255,7 +1255,7 @@ const xa = "_editable_1b34u_1", ba = "_pb_1b34u_5", ka = "_wrapper_1b34u_5", _a
|
|
|
1255
1255
|
mono: Ea
|
|
1256
1256
|
};
|
|
1257
1257
|
function Ma(t, e) {
|
|
1258
|
-
const [n, r] =
|
|
1258
|
+
const [n, r] = j(null), s = t.current && t.current.getBoundingClientRect(), i = ze(() => s && n && {
|
|
1259
1259
|
...n,
|
|
1260
1260
|
x: Ee.clamp(Math.round(n.x - s.x), 0, s.width),
|
|
1261
1261
|
y: Ee.clamp(Math.round(n.y - s.y), 0, s.height)
|
|
@@ -1330,7 +1330,7 @@ function vr(t) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function Ca() {
|
|
1333
|
-
const [e, n] =
|
|
1333
|
+
const [e, n] = j({ v: 90, dir: 1 });
|
|
1334
1334
|
return L(() => {
|
|
1335
1335
|
let s = !0;
|
|
1336
1336
|
return r(() => s), () => {
|
|
@@ -1352,15 +1352,15 @@ function Ca() {
|
|
|
1352
1352
|
}, 5);
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
const Da = "_nv_1rwcl_1", Ia = "_label_1rwcl_5", Fa = "_value_1rwcl_9", Va = "_blue_1rwcl_13", ja = "_green_1rwcl_17", Ra = "_grey_1rwcl_21",
|
|
1355
|
+
const Da = "_nv_1rwcl_1", Ia = "_label_1rwcl_5", Fa = "_value_1rwcl_9", Va = "_blue_1rwcl_13", ja = "_green_1rwcl_17", Ra = "_grey_1rwcl_21", Wa = "_dialog_1rwcl_25", tt = {
|
|
1356
1356
|
nv: Da,
|
|
1357
1357
|
label: Ia,
|
|
1358
1358
|
value: Fa,
|
|
1359
1359
|
blue: Va,
|
|
1360
1360
|
green: ja,
|
|
1361
1361
|
grey: Ra,
|
|
1362
|
-
dialog:
|
|
1363
|
-
},
|
|
1362
|
+
dialog: Wa
|
|
1363
|
+
}, $a = {
|
|
1364
1364
|
wrapper: function(t, e, n) {
|
|
1365
1365
|
return e && (n === void 0 || n) ? e(t) : t;
|
|
1366
1366
|
}
|
|
@@ -1399,7 +1399,7 @@ function Ft(t) {
|
|
|
1399
1399
|
display: t.action ? "flex" : void 0,
|
|
1400
1400
|
gap: t.action ? "1em" : void 0
|
|
1401
1401
|
},
|
|
1402
|
-
children:
|
|
1402
|
+
children: $a.wrapper(
|
|
1403
1403
|
t.children,
|
|
1404
1404
|
(n) => /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
1405
1405
|
/* @__PURE__ */ u.jsx("div", { style: { flexGrow: 1 }, children: n }),
|
|
@@ -1463,7 +1463,7 @@ const Aa = "_rb_atev7_1", Pa = "_disabled_atev7_26", za = "_mono_atev7_38", Ua =
|
|
|
1463
1463
|
dialog: Ua,
|
|
1464
1464
|
green: Za
|
|
1465
1465
|
};
|
|
1466
|
-
function
|
|
1466
|
+
function Lu(t) {
|
|
1467
1467
|
const e = qe(), n = E(nt, t), r = J(null);
|
|
1468
1468
|
return wt(t, r), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
1469
1469
|
/* @__PURE__ */ u.jsx("input", { ref: r, className: nt.rb, id: e, type: "radio", disabled: t.disabled }),
|
|
@@ -1513,7 +1513,7 @@ class ie extends xe {
|
|
|
1513
1513
|
super("Zone is an abstract class");
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
const h = "numeric", Y = "short",
|
|
1516
|
+
const h = "numeric", Y = "short", $ = "long", ft = {
|
|
1517
1517
|
year: h,
|
|
1518
1518
|
month: h,
|
|
1519
1519
|
day: h
|
|
@@ -1528,13 +1528,13 @@ const h = "numeric", Y = "short", W = "long", ft = {
|
|
|
1528
1528
|
weekday: Y
|
|
1529
1529
|
}, kr = {
|
|
1530
1530
|
year: h,
|
|
1531
|
-
month:
|
|
1531
|
+
month: $,
|
|
1532
1532
|
day: h
|
|
1533
1533
|
}, _r = {
|
|
1534
1534
|
year: h,
|
|
1535
|
-
month:
|
|
1535
|
+
month: $,
|
|
1536
1536
|
day: h,
|
|
1537
|
-
weekday:
|
|
1537
|
+
weekday: $
|
|
1538
1538
|
}, Tr = {
|
|
1539
1539
|
hour: h,
|
|
1540
1540
|
minute: h
|
|
@@ -1551,7 +1551,7 @@ const h = "numeric", Y = "short", W = "long", ft = {
|
|
|
1551
1551
|
hour: h,
|
|
1552
1552
|
minute: h,
|
|
1553
1553
|
second: h,
|
|
1554
|
-
timeZoneName:
|
|
1554
|
+
timeZoneName: $
|
|
1555
1555
|
}, Nr = {
|
|
1556
1556
|
hour: h,
|
|
1557
1557
|
minute: h,
|
|
@@ -1572,7 +1572,7 @@ const h = "numeric", Y = "short", W = "long", ft = {
|
|
|
1572
1572
|
minute: h,
|
|
1573
1573
|
second: h,
|
|
1574
1574
|
hourCycle: "h23",
|
|
1575
|
-
timeZoneName:
|
|
1575
|
+
timeZoneName: $
|
|
1576
1576
|
}, Dr = {
|
|
1577
1577
|
year: h,
|
|
1578
1578
|
month: h,
|
|
@@ -1608,36 +1608,36 @@ const h = "numeric", Y = "short", W = "long", ft = {
|
|
|
1608
1608
|
minute: h
|
|
1609
1609
|
}, jr = {
|
|
1610
1610
|
year: h,
|
|
1611
|
-
month:
|
|
1611
|
+
month: $,
|
|
1612
1612
|
day: h,
|
|
1613
1613
|
hour: h,
|
|
1614
1614
|
minute: h,
|
|
1615
1615
|
timeZoneName: Y
|
|
1616
1616
|
}, Rr = {
|
|
1617
1617
|
year: h,
|
|
1618
|
-
month:
|
|
1618
|
+
month: $,
|
|
1619
1619
|
day: h,
|
|
1620
1620
|
hour: h,
|
|
1621
1621
|
minute: h,
|
|
1622
1622
|
second: h,
|
|
1623
1623
|
timeZoneName: Y
|
|
1624
|
-
},
|
|
1624
|
+
}, Wr = {
|
|
1625
1625
|
year: h,
|
|
1626
|
-
month:
|
|
1626
|
+
month: $,
|
|
1627
1627
|
day: h,
|
|
1628
|
-
weekday:
|
|
1628
|
+
weekday: $,
|
|
1629
1629
|
hour: h,
|
|
1630
1630
|
minute: h,
|
|
1631
|
-
timeZoneName:
|
|
1632
|
-
},
|
|
1631
|
+
timeZoneName: $
|
|
1632
|
+
}, $r = {
|
|
1633
1633
|
year: h,
|
|
1634
|
-
month:
|
|
1634
|
+
month: $,
|
|
1635
1635
|
day: h,
|
|
1636
|
-
weekday:
|
|
1636
|
+
weekday: $,
|
|
1637
1637
|
hour: h,
|
|
1638
1638
|
minute: h,
|
|
1639
1639
|
second: h,
|
|
1640
|
-
timeZoneName:
|
|
1640
|
+
timeZoneName: $
|
|
1641
1641
|
};
|
|
1642
1642
|
class Ye {
|
|
1643
1643
|
/**
|
|
@@ -1965,9 +1965,9 @@ function ho(t, e = {}) {
|
|
|
1965
1965
|
let i = Kt.get(s);
|
|
1966
1966
|
return i === void 0 && (i = new Intl.RelativeTimeFormat(t, e), Kt.set(s, i)), i;
|
|
1967
1967
|
}
|
|
1968
|
-
let
|
|
1968
|
+
let $e = null;
|
|
1969
1969
|
function mo() {
|
|
1970
|
-
return
|
|
1970
|
+
return $e || ($e = new Intl.DateTimeFormat().resolvedOptions().locale, $e);
|
|
1971
1971
|
}
|
|
1972
1972
|
const Xt = /* @__PURE__ */ new Map();
|
|
1973
1973
|
function Lr(t) {
|
|
@@ -2113,7 +2113,7 @@ class T {
|
|
|
2113
2113
|
return new T(o, l, d, c, a);
|
|
2114
2114
|
}
|
|
2115
2115
|
static resetCache() {
|
|
2116
|
-
|
|
2116
|
+
$e = null, Bt.clear(), Jt.clear(), Kt.clear(), Xt.clear(), Qt.clear();
|
|
2117
2117
|
}
|
|
2118
2118
|
static fromObject({ locale: e, numberingSystem: n, outputCalendar: r, weekSettings: s } = {}) {
|
|
2119
2119
|
return T.create(e, n, r, s);
|
|
@@ -2227,13 +2227,13 @@ class T {
|
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
2229
|
let Rt = null;
|
|
2230
|
-
class
|
|
2230
|
+
class W extends Ye {
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Get a singleton instance of UTC
|
|
2233
2233
|
* @return {FixedOffsetZone}
|
|
2234
2234
|
*/
|
|
2235
2235
|
static get utcInstance() {
|
|
2236
|
-
return Rt === null && (Rt = new
|
|
2236
|
+
return Rt === null && (Rt = new W(0)), Rt;
|
|
2237
2237
|
}
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Get an instance with a specified offset
|
|
@@ -2241,7 +2241,7 @@ class R extends Ye {
|
|
|
2241
2241
|
* @return {FixedOffsetZone}
|
|
2242
2242
|
*/
|
|
2243
2243
|
static instance(e) {
|
|
2244
|
-
return e === 0 ?
|
|
2244
|
+
return e === 0 ? W.utcInstance : new W(e);
|
|
2245
2245
|
}
|
|
2246
2246
|
/**
|
|
2247
2247
|
* Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
|
|
@@ -2255,7 +2255,7 @@ class R extends Ye {
|
|
|
2255
2255
|
if (e) {
|
|
2256
2256
|
const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
|
2257
2257
|
if (n)
|
|
2258
|
-
return new
|
|
2258
|
+
return new W(_t(n[1], n[2]));
|
|
2259
2259
|
}
|
|
2260
2260
|
return null;
|
|
2261
2261
|
}
|
|
@@ -2390,8 +2390,8 @@ function oe(t, e) {
|
|
|
2390
2390
|
return t;
|
|
2391
2391
|
if (Co(t)) {
|
|
2392
2392
|
const n = t.toLowerCase();
|
|
2393
|
-
return n === "default" ? e : n === "local" || n === "system" ? xt.instance : n === "utc" || n === "gmt" ?
|
|
2394
|
-
} else return le(t) ?
|
|
2393
|
+
return n === "default" ? e : n === "local" || n === "system" ? xt.instance : n === "utc" || n === "gmt" ? W.utcInstance : W.parseSpecifier(n) || ne.create(t);
|
|
2394
|
+
} else return le(t) ? W.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new So(t);
|
|
2395
2395
|
}
|
|
2396
2396
|
const on = {
|
|
2397
2397
|
arab: "[٠-٩]",
|
|
@@ -2465,7 +2465,7 @@ function U({ numberingSystem: t }, e = "") {
|
|
|
2465
2465
|
let s = r.get(e);
|
|
2466
2466
|
return s === void 0 && (s = new RegExp(`${on[n]}${e}`), r.set(e, s)), s;
|
|
2467
2467
|
}
|
|
2468
|
-
let Cn = () => Date.now(), Dn = "system", In = null, Fn = null, Vn = null, jn = 60, Rn,
|
|
2468
|
+
let Cn = () => Date.now(), Dn = "system", In = null, Fn = null, Vn = null, jn = 60, Rn, Wn = null;
|
|
2469
2469
|
class N {
|
|
2470
2470
|
/**
|
|
2471
2471
|
* Get the callback for returning the current timestamp.
|
|
@@ -2552,7 +2552,7 @@ class N {
|
|
|
2552
2552
|
* @return {WeekSettings|null}
|
|
2553
2553
|
*/
|
|
2554
2554
|
static get defaultWeekSettings() {
|
|
2555
|
-
return
|
|
2555
|
+
return Wn;
|
|
2556
2556
|
}
|
|
2557
2557
|
/**
|
|
2558
2558
|
* Allows overriding the default locale week settings, i.e. the start of the week, the weekend and
|
|
@@ -2562,7 +2562,7 @@ class N {
|
|
|
2562
2562
|
* @param {WeekSettings|null} weekSettings
|
|
2563
2563
|
*/
|
|
2564
2564
|
static set defaultWeekSettings(e) {
|
|
2565
|
-
|
|
2565
|
+
Wn = tn(e);
|
|
2566
2566
|
}
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
|
|
@@ -2641,14 +2641,14 @@ function ht(t, e = 4, n = 1) {
|
|
|
2641
2641
|
let l = Math.floor((a - o + 14 - e) / 7), d;
|
|
2642
2642
|
return l < 1 ? (d = r - 1, l = Ze(d, e, n)) : l > Ze(r, e, n) ? (d = r + 1, l = 1) : d = r, { weekYear: d, weekNumber: l, weekday: o, ...Tt(t) };
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2644
|
+
function $n(t, e = 4, n = 1) {
|
|
2645
2645
|
const { weekYear: r, weekNumber: s, weekday: i } = t, a = un(ln(r, 1, e), n), o = Oe(r);
|
|
2646
2646
|
let l = s * 7 + i - a - 7 + e, d;
|
|
2647
2647
|
l < 1 ? (d = r - 1, l += Oe(d)) : l > o ? (d = r + 1, l -= Oe(r)) : d = r;
|
|
2648
2648
|
const { month: c, day: m } = Zr(d, l);
|
|
2649
2649
|
return { year: d, month: c, day: m, ...Tt(t) };
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Wt(t) {
|
|
2652
2652
|
const { year: e, month: n, day: r } = t, s = Ur(e, n, r);
|
|
2653
2653
|
return { year: e, ordinal: s, ...Tt(t) };
|
|
2654
2654
|
}
|
|
@@ -2923,11 +2923,11 @@ const Qr = [
|
|
|
2923
2923
|
"Friday",
|
|
2924
2924
|
"Saturday",
|
|
2925
2925
|
"Sunday"
|
|
2926
|
-
], es = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
2926
|
+
], es = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Wo = ["M", "T", "W", "T", "F", "S", "S"];
|
|
2927
2927
|
function ts(t) {
|
|
2928
2928
|
switch (t) {
|
|
2929
2929
|
case "narrow":
|
|
2930
|
-
return [
|
|
2930
|
+
return [...Wo];
|
|
2931
2931
|
case "short":
|
|
2932
2932
|
return [...es];
|
|
2933
2933
|
case "long":
|
|
@@ -2938,7 +2938,7 @@ function ts(t) {
|
|
|
2938
2938
|
return null;
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
const ns = ["AM", "PM"],
|
|
2941
|
+
const ns = ["AM", "PM"], $o = ["Before Christ", "Anno Domini"], Lo = ["BC", "AD"], Ao = ["B", "A"];
|
|
2942
2942
|
function rs(t) {
|
|
2943
2943
|
switch (t) {
|
|
2944
2944
|
case "narrow":
|
|
@@ -2946,7 +2946,7 @@ function rs(t) {
|
|
|
2946
2946
|
case "short":
|
|
2947
2947
|
return [...Lo];
|
|
2948
2948
|
case "long":
|
|
2949
|
-
return [
|
|
2949
|
+
return [...$o];
|
|
2950
2950
|
default:
|
|
2951
2951
|
return null;
|
|
2952
2952
|
}
|
|
@@ -3010,11 +3010,11 @@ const qo = {
|
|
|
3010
3010
|
f: Dr,
|
|
3011
3011
|
ff: Fr,
|
|
3012
3012
|
fff: jr,
|
|
3013
|
-
ffff:
|
|
3013
|
+
ffff: Wr,
|
|
3014
3014
|
F: Ir,
|
|
3015
3015
|
FF: Vr,
|
|
3016
3016
|
FFF: Rr,
|
|
3017
|
-
FFFF:
|
|
3017
|
+
FFFF: $r
|
|
3018
3018
|
};
|
|
3019
3019
|
class V {
|
|
3020
3020
|
static create(e, n = {}) {
|
|
@@ -3240,8 +3240,8 @@ class V {
|
|
|
3240
3240
|
const y = s(g);
|
|
3241
3241
|
if (y) {
|
|
3242
3242
|
const S = m.isNegativeDuration && y !== m.largestUnit ? r : 1;
|
|
3243
|
-
let
|
|
3244
|
-
return this.opts.signMode === "negativeLargestOnly" && y !== m.largestUnit ?
|
|
3243
|
+
let R;
|
|
3244
|
+
return this.opts.signMode === "negativeLargestOnly" && y !== m.largestUnit ? R = "never" : this.opts.signMode === "all" ? R = "always" : R = "auto", this.num(c.get(y) * S, g.length, R);
|
|
3245
3245
|
} else
|
|
3246
3246
|
return g;
|
|
3247
3247
|
}, a = V.parseFormat(n), o = a.reduce(
|
|
@@ -3312,7 +3312,7 @@ function Ve(t, e) {
|
|
|
3312
3312
|
}, null, e + 4];
|
|
3313
3313
|
}
|
|
3314
3314
|
function Ge(t, e) {
|
|
3315
|
-
const n = !t[e] && !t[e + 1], r = _t(t[e + 1], t[e + 2]), s = n ? null :
|
|
3315
|
+
const n = !t[e] && !t[e + 1], r = _t(t[e + 1], t[e + 2]), s = n ? null : W.instance(r);
|
|
3316
3316
|
return [{}, s, e + 3];
|
|
3317
3317
|
}
|
|
3318
3318
|
function Je(t, e) {
|
|
@@ -3373,7 +3373,7 @@ function ol(t) {
|
|
|
3373
3373
|
m
|
|
3374
3374
|
] = t, g = mn(e, s, r, n, i, a, o);
|
|
3375
3375
|
let y;
|
|
3376
|
-
return l ? y = il[l] : d ? y = 0 : y = _t(c, m), [g, new
|
|
3376
|
+
return l ? y = il[l] : d ? y = 0 : y = _t(c, m), [g, new W(y)];
|
|
3377
3377
|
}
|
|
3378
3378
|
function ll(t) {
|
|
3379
3379
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
@@ -3381,11 +3381,11 @@ function ll(t) {
|
|
|
3381
3381
|
const ul = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, cl = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, dl = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
3382
3382
|
function Zn(t) {
|
|
3383
3383
|
const [, e, n, r, s, i, a, o] = t;
|
|
3384
|
-
return [mn(e, s, r, n, i, a, o),
|
|
3384
|
+
return [mn(e, s, r, n, i, a, o), W.utcInstance];
|
|
3385
3385
|
}
|
|
3386
3386
|
function fl(t) {
|
|
3387
3387
|
const [, e, n, r, s, i, a, o] = t;
|
|
3388
|
-
return [mn(e, o, n, r, s, i, a),
|
|
3388
|
+
return [mn(e, o, n, r, s, i, a), W.utcInstance];
|
|
3389
3389
|
}
|
|
3390
3390
|
const hl = De(Bo, hn), ml = De(Go, hn), yl = De(Jo, hn), gl = De(os), us = Ie(
|
|
3391
3391
|
tl,
|
|
@@ -4204,7 +4204,7 @@ class O {
|
|
|
4204
4204
|
* @return {Interval}
|
|
4205
4205
|
*/
|
|
4206
4206
|
static fromDateTimes(e, n) {
|
|
4207
|
-
const r =
|
|
4207
|
+
const r = We(e), s = We(n), i = Fl(r, s);
|
|
4208
4208
|
return i ?? new O({
|
|
4209
4209
|
start: r,
|
|
4210
4210
|
end: s
|
|
@@ -4217,7 +4217,7 @@ class O {
|
|
|
4217
4217
|
* @return {Interval}
|
|
4218
4218
|
*/
|
|
4219
4219
|
static after(e, n) {
|
|
4220
|
-
const r = k.fromDurationLike(n), s =
|
|
4220
|
+
const r = k.fromDurationLike(n), s = We(e);
|
|
4221
4221
|
return O.fromDateTimes(s, s.plus(r));
|
|
4222
4222
|
}
|
|
4223
4223
|
/**
|
|
@@ -4227,7 +4227,7 @@ class O {
|
|
|
4227
4227
|
* @return {Interval}
|
|
4228
4228
|
*/
|
|
4229
4229
|
static before(e, n) {
|
|
4230
|
-
const r = k.fromDurationLike(n), s =
|
|
4230
|
+
const r = k.fromDurationLike(n), s = We(e);
|
|
4231
4231
|
return O.fromDateTimes(s.minus(r), s);
|
|
4232
4232
|
}
|
|
4233
4233
|
/**
|
|
@@ -4397,7 +4397,7 @@ class O {
|
|
|
4397
4397
|
*/
|
|
4398
4398
|
splitAt(...e) {
|
|
4399
4399
|
if (!this.isValid) return [];
|
|
4400
|
-
const n = e.map(
|
|
4400
|
+
const n = e.map(We).filter((a) => this.contains(a)).sort((a, o) => a.toMillis() - o.toMillis()), r = [];
|
|
4401
4401
|
let { s } = this, i = 0;
|
|
4402
4402
|
for (; s < this.e; ) {
|
|
4403
4403
|
const a = n[i] || this.e, o = +a > +this.e ? this.e : a;
|
|
@@ -4843,8 +4843,8 @@ const Rl = "missing Intl.DateTimeFormat.formatToParts support";
|
|
|
4843
4843
|
function _(t, e = (n) => n) {
|
|
4844
4844
|
return { regex: t, deser: ([n]) => e(Oo(n)) };
|
|
4845
4845
|
}
|
|
4846
|
-
const
|
|
4847
|
-
function
|
|
4846
|
+
const Wl = " ", fs = `[ ${Wl}]`, hs = new RegExp(fs, "g");
|
|
4847
|
+
function $l(t) {
|
|
4848
4848
|
return t.replace(/\./g, "\\.?").replace(hs, fs);
|
|
4849
4849
|
}
|
|
4850
4850
|
function Gn(t) {
|
|
@@ -4852,7 +4852,7 @@ function Gn(t) {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
function Z(t, e) {
|
|
4854
4854
|
return t === null ? null : {
|
|
4855
|
-
regex: RegExp(t.map(
|
|
4855
|
+
regex: RegExp(t.map($l).join("|")),
|
|
4856
4856
|
deser: ([n]) => t.findIndex((r) => Gn(n) === Gn(r)) + e
|
|
4857
4857
|
};
|
|
4858
4858
|
}
|
|
@@ -4866,7 +4866,7 @@ function Ll(t) {
|
|
|
4866
4866
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
4867
4867
|
}
|
|
4868
4868
|
function Al(t, e) {
|
|
4869
|
-
const n = U(e), r = U(e, "{2}"), s = U(e, "{3}"), i = U(e, "{4}"), a = U(e, "{6}"), o = U(e, "{1,2}"), l = U(e, "{1,3}"), d = U(e, "{1,6}"), c = U(e, "{1,9}"), m = U(e, "{2,4}"), g = U(e, "{4,6}"), y = (C) => ({ regex: RegExp(Ll(C.val)), deser: ([B]) => B, literal: !0 }),
|
|
4869
|
+
const n = U(e), r = U(e, "{2}"), s = U(e, "{3}"), i = U(e, "{4}"), a = U(e, "{6}"), o = U(e, "{1,2}"), l = U(e, "{1,3}"), d = U(e, "{1,6}"), c = U(e, "{1,9}"), m = U(e, "{2,4}"), g = U(e, "{4,6}"), y = (C) => ({ regex: RegExp(Ll(C.val)), deser: ([B]) => B, literal: !0 }), R = ((C) => {
|
|
4870
4870
|
if (t.literal)
|
|
4871
4871
|
return y(C);
|
|
4872
4872
|
switch (C.val) {
|
|
@@ -4989,7 +4989,7 @@ function Al(t, e) {
|
|
|
4989
4989
|
})(t) || {
|
|
4990
4990
|
invalidReason: Rl
|
|
4991
4991
|
};
|
|
4992
|
-
return
|
|
4992
|
+
return R.token = t, R;
|
|
4993
4993
|
}
|
|
4994
4994
|
const Pl = {
|
|
4995
4995
|
year: {
|
|
@@ -5104,14 +5104,14 @@ function Hl(t) {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
};
|
|
5106
5106
|
let n = null, r;
|
|
5107
|
-
return v(t.z) || (n = ne.create(t.z)), v(t.Z) || (n || (n = new
|
|
5107
|
+
return v(t.z) || (n = ne.create(t.z)), v(t.Z) || (n || (n = new W(t.Z)), r = t.Z), v(t.q) || (t.M = (t.q - 1) * 3 + 1), v(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), v(t.u) || (t.S = cn(t.u)), [Object.keys(t).reduce((i, a) => {
|
|
5108
5108
|
const o = e(a);
|
|
5109
5109
|
return o && (i[o] = t[a]), i;
|
|
5110
5110
|
}, {}), n, r];
|
|
5111
5111
|
}
|
|
5112
|
-
let
|
|
5112
|
+
let $t = null;
|
|
5113
5113
|
function ql() {
|
|
5114
|
-
return
|
|
5114
|
+
return $t || ($t = w.fromMillis(1555555555555)), $t;
|
|
5115
5115
|
}
|
|
5116
5116
|
function Yl(t, e) {
|
|
5117
5117
|
if (t.literal)
|
|
@@ -5488,7 +5488,7 @@ class w {
|
|
|
5488
5488
|
*/
|
|
5489
5489
|
static utc() {
|
|
5490
5490
|
const [e, n] = rr(arguments), [r, s, i, a, o, l, d] = n;
|
|
5491
|
-
return e.zone =
|
|
5491
|
+
return e.zone = W.utcInstance, tr({ year: r, month: s, day: i, hour: a, minute: o, second: l, millisecond: d }, e);
|
|
5492
5492
|
}
|
|
5493
5493
|
/**
|
|
5494
5494
|
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
|
@@ -5595,18 +5595,18 @@ class w {
|
|
|
5595
5595
|
);
|
|
5596
5596
|
if (g && c)
|
|
5597
5597
|
throw new pe("Can't mix ordinal dates with month/day");
|
|
5598
|
-
const
|
|
5598
|
+
const R = S || i.weekday && !y;
|
|
5599
5599
|
let C, B, K = at(l, d);
|
|
5600
|
-
|
|
5600
|
+
R ? (C = Kl, B = Gl, K = ht(K, a, o)) : c ? (C = Xl, B = Jl, K = Wt(K)) : (C = ut, B = xs);
|
|
5601
5601
|
let ce = !1;
|
|
5602
5602
|
for (const de of C) {
|
|
5603
5603
|
const Nt = i[de];
|
|
5604
5604
|
v(Nt) ? ce ? i[de] = B[de] : i[de] = K[de] : ce = !0;
|
|
5605
5605
|
}
|
|
5606
|
-
const be =
|
|
5606
|
+
const be = R ? Eo(i, a, o) : c ? Mo(i) : Hr(i), Ke = be || qr(i);
|
|
5607
5607
|
if (Ke)
|
|
5608
5608
|
return w.invalid(Ke);
|
|
5609
|
-
const St =
|
|
5609
|
+
const St = R ? $n(i, a, o) : c ? Ln(i) : i, [pt, Ot] = lt(St, d, r), X = new w({
|
|
5610
5610
|
ts: pt,
|
|
5611
5611
|
zone: r,
|
|
5612
5612
|
o: Ot,
|
|
@@ -5980,7 +5980,7 @@ class w {
|
|
|
5980
5980
|
* @type {number|DateTime}
|
|
5981
5981
|
*/
|
|
5982
5982
|
get ordinal() {
|
|
5983
|
-
return this.isValid ?
|
|
5983
|
+
return this.isValid ? Wt(this.c).ordinal : NaN;
|
|
5984
5984
|
}
|
|
5985
5985
|
/**
|
|
5986
5986
|
* Get the human readable short month name, such as 'Oct'.
|
|
@@ -6152,7 +6152,7 @@ class w {
|
|
|
6152
6152
|
* @return {DateTime}
|
|
6153
6153
|
*/
|
|
6154
6154
|
toUTC(e = 0, n = {}) {
|
|
6155
|
-
return this.setZone(
|
|
6155
|
+
return this.setZone(W.instance(e), n);
|
|
6156
6156
|
}
|
|
6157
6157
|
/**
|
|
6158
6158
|
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
|
@@ -6227,11 +6227,11 @@ class w {
|
|
|
6227
6227
|
if (l && a)
|
|
6228
6228
|
throw new pe("Can't mix ordinal dates with month/day");
|
|
6229
6229
|
let m;
|
|
6230
|
-
i ? m =
|
|
6230
|
+
i ? m = $n(
|
|
6231
6231
|
{ ...ht(this.c, r, s), ...n },
|
|
6232
6232
|
r,
|
|
6233
6233
|
s
|
|
6234
|
-
) : v(n.ordinal) ? (m = { ...this.toObject(), ...n }, v(n.day) && (m.day = Math.min(mt(m.year, m.month), m.day))) : m = Ln({
|
|
6234
|
+
) : v(n.ordinal) ? (m = { ...this.toObject(), ...n }, v(n.day) && (m.day = Math.min(mt(m.year, m.month), m.day))) : m = Ln({ ...Wt(this.c), ...n });
|
|
6235
6235
|
const [g, y] = lt(m, this.o, this.zone);
|
|
6236
6236
|
return ye(this, { ts: g, o: y });
|
|
6237
6237
|
}
|
|
@@ -6973,17 +6973,17 @@ class w {
|
|
|
6973
6973
|
* @type {Object}
|
|
6974
6974
|
*/
|
|
6975
6975
|
static get DATETIME_HUGE() {
|
|
6976
|
-
return
|
|
6976
|
+
return Wr;
|
|
6977
6977
|
}
|
|
6978
6978
|
/**
|
|
6979
6979
|
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
6980
6980
|
* @type {Object}
|
|
6981
6981
|
*/
|
|
6982
6982
|
static get DATETIME_HUGE_WITH_SECONDS() {
|
|
6983
|
-
return
|
|
6983
|
+
return $r;
|
|
6984
6984
|
}
|
|
6985
6985
|
}
|
|
6986
|
-
function
|
|
6986
|
+
function We(t) {
|
|
6987
6987
|
if (w.isDateTime(t))
|
|
6988
6988
|
return t;
|
|
6989
6989
|
if (t && t.valueOf && le(t.valueOf()))
|
|
@@ -6994,7 +6994,7 @@ function $e(t) {
|
|
|
6994
6994
|
`Unknown datetime argument: ${t}, of type ${typeof t}`
|
|
6995
6995
|
);
|
|
6996
6996
|
}
|
|
6997
|
-
function
|
|
6997
|
+
function Au(t) {
|
|
6998
6998
|
const e = E(te, t);
|
|
6999
6999
|
return /* @__PURE__ */ u.jsx(re, { palette: e.palette, children: /* @__PURE__ */ u.jsxs("table", { className: e.styles(te.tb), children: [
|
|
7000
7000
|
/* @__PURE__ */ u.jsx("thead", { children: /* @__PURE__ */ u.jsx("tr", { className: te.hdr, children: t.columns.map((n, r) => /* @__PURE__ */ u.jsx(
|
|
@@ -7021,7 +7021,7 @@ function Lu(t) {
|
|
|
7021
7021
|
] }) });
|
|
7022
7022
|
}
|
|
7023
7023
|
function eu(t) {
|
|
7024
|
-
const [e, n] =
|
|
7024
|
+
const [e, n] = j(!1), r = E(te, t);
|
|
7025
7025
|
let s = t.caption ?? t.id;
|
|
7026
7026
|
s || (s = /* @__PURE__ */ u.jsx(u.Fragment, { children: " " }));
|
|
7027
7027
|
const i = t.icon ?? ru(t);
|
|
@@ -7319,7 +7319,7 @@ function mu(t) {
|
|
|
7319
7319
|
return !0;
|
|
7320
7320
|
}
|
|
7321
7321
|
function we(t) {
|
|
7322
|
-
const [e, n] =
|
|
7322
|
+
const [e, n] = j({
|
|
7323
7323
|
data: {},
|
|
7324
7324
|
isDisabled: t.disabled ?? !1,
|
|
7325
7325
|
isLoading: !1,
|
|
@@ -7366,12 +7366,12 @@ const gu = {
|
|
|
7366
7366
|
isLoading: !1
|
|
7367
7367
|
};
|
|
7368
7368
|
function wu(t) {
|
|
7369
|
-
const [e, n] =
|
|
7369
|
+
const [e, n] = j(
|
|
7370
7370
|
t ?? gu
|
|
7371
7371
|
);
|
|
7372
7372
|
return { ctx: e, setCtx: n };
|
|
7373
7373
|
}
|
|
7374
|
-
function
|
|
7374
|
+
function Pu(t) {
|
|
7375
7375
|
const e = or.Children.toArray(t.children), n = Math.ceil(e.length / t.cols), r = [...Array(n)].map((s, i) => {
|
|
7376
7376
|
const a = e.slice(i * t.cols, (i + 1) * t.cols), o = [...Array(t.cols)].map(
|
|
7377
7377
|
(l, d) => d < a.length ? a[d] : ""
|
|
@@ -7630,7 +7630,7 @@ function yn() {
|
|
|
7630
7630
|
throw "Missing CtxLayerRenderContext";
|
|
7631
7631
|
return t;
|
|
7632
7632
|
}
|
|
7633
|
-
function
|
|
7633
|
+
function zu(t) {
|
|
7634
7634
|
const e = yn();
|
|
7635
7635
|
return {
|
|
7636
7636
|
show: (n, r) => new Promise((s) => {
|
|
@@ -7664,10 +7664,10 @@ function pu() {
|
|
|
7664
7664
|
t.addEventListener("change", function(r) {
|
|
7665
7665
|
n(r.matches);
|
|
7666
7666
|
});
|
|
7667
|
-
const [e, n] =
|
|
7667
|
+
const [e, n] = j(t.matches);
|
|
7668
7668
|
return e;
|
|
7669
7669
|
}
|
|
7670
|
-
function
|
|
7670
|
+
function Uu() {
|
|
7671
7671
|
const t = yn();
|
|
7672
7672
|
return {
|
|
7673
7673
|
show: function(e, n) {
|
|
@@ -7675,6 +7675,21 @@ function zu() {
|
|
|
7675
7675
|
}
|
|
7676
7676
|
};
|
|
7677
7677
|
}
|
|
7678
|
+
const Ou = {
|
|
7679
|
+
xs: 0,
|
|
7680
|
+
sm: 640,
|
|
7681
|
+
md: 768,
|
|
7682
|
+
lg: 1024,
|
|
7683
|
+
xl: 1280
|
|
7684
|
+
};
|
|
7685
|
+
function Zu(t) {
|
|
7686
|
+
const e = "(min-width: " + (typeof t == "string" ? Ou[t] : t) + "px)", n = window.matchMedia(e);
|
|
7687
|
+
n.addEventListener("change", function(i) {
|
|
7688
|
+
s(i.matches);
|
|
7689
|
+
});
|
|
7690
|
+
const [r, s] = j(n.matches);
|
|
7691
|
+
return r;
|
|
7692
|
+
}
|
|
7678
7693
|
const ir = [
|
|
7679
7694
|
"dd.MM.yyyy HH:mm:ss",
|
|
7680
7695
|
"dd.MM.yyyy HH:mm",
|
|
@@ -7691,20 +7706,20 @@ const ir = [
|
|
|
7691
7706
|
return mr.distint(e).join(" ");
|
|
7692
7707
|
},
|
|
7693
7708
|
formatDateTime: function(t, e) {
|
|
7694
|
-
return typeof t != "object" && (t = sn.parseDateTime(t)),
|
|
7709
|
+
return typeof t != "object" && (t = sn.parseDateTime(t)), Nu(t, e);
|
|
7695
7710
|
},
|
|
7696
7711
|
parseDateTime: function(t) {
|
|
7697
7712
|
switch (typeof t) {
|
|
7698
7713
|
case "undefined":
|
|
7699
7714
|
return;
|
|
7700
7715
|
case "number":
|
|
7701
|
-
return Nu(t);
|
|
7702
|
-
case "string":
|
|
7703
7716
|
return Eu(t);
|
|
7717
|
+
case "string":
|
|
7718
|
+
return Mu(t);
|
|
7704
7719
|
}
|
|
7705
7720
|
}
|
|
7706
7721
|
};
|
|
7707
|
-
function
|
|
7722
|
+
function Nu(t, e) {
|
|
7708
7723
|
if (!t || t.toUnixInteger() == 0)
|
|
7709
7724
|
return "--";
|
|
7710
7725
|
switch (e) {
|
|
@@ -7716,7 +7731,7 @@ function Ou(t, e) {
|
|
|
7716
7731
|
return t.toLocaleString({ timeStyle: "medium" });
|
|
7717
7732
|
}
|
|
7718
7733
|
}
|
|
7719
|
-
function
|
|
7734
|
+
function Eu(t) {
|
|
7720
7735
|
switch (!0) {
|
|
7721
7736
|
case t < 0:
|
|
7722
7737
|
return;
|
|
@@ -7726,7 +7741,7 @@ function Nu(t) {
|
|
|
7726
7741
|
return w.fromMillis(t);
|
|
7727
7742
|
}
|
|
7728
7743
|
}
|
|
7729
|
-
function
|
|
7744
|
+
function Mu(t) {
|
|
7730
7745
|
const e = [
|
|
7731
7746
|
w.fromISO,
|
|
7732
7747
|
function(n) {
|
|
@@ -7743,16 +7758,16 @@ function Eu(t) {
|
|
|
7743
7758
|
return r;
|
|
7744
7759
|
}
|
|
7745
7760
|
}
|
|
7746
|
-
const
|
|
7761
|
+
const Cu = He(
|
|
7747
7762
|
null
|
|
7748
7763
|
), ve = He(null);
|
|
7749
|
-
function
|
|
7750
|
-
const [e, n] =
|
|
7764
|
+
function Du(t) {
|
|
7765
|
+
const [e, n] = j({
|
|
7751
7766
|
layers: [],
|
|
7752
7767
|
rows: []
|
|
7753
7768
|
});
|
|
7754
7769
|
return /* @__PURE__ */ u.jsxs(
|
|
7755
|
-
|
|
7770
|
+
Cu.Provider,
|
|
7756
7771
|
{
|
|
7757
7772
|
value: {
|
|
7758
7773
|
layers: e.layers,
|
|
@@ -7763,7 +7778,7 @@ function Cu(t) {
|
|
|
7763
7778
|
/* @__PURE__ */ u.jsx(
|
|
7764
7779
|
ve.Provider,
|
|
7765
7780
|
{
|
|
7766
|
-
value:
|
|
7781
|
+
value: Fu(e, n),
|
|
7767
7782
|
children: t.children
|
|
7768
7783
|
}
|
|
7769
7784
|
),
|
|
@@ -7771,12 +7786,12 @@ function Cu(t) {
|
|
|
7771
7786
|
const i = gn(s, e, n, !1);
|
|
7772
7787
|
return /* @__PURE__ */ u.jsx(ve.Provider, { value: i, children: r(() => i.hide()) }, s);
|
|
7773
7788
|
}),
|
|
7774
|
-
/* @__PURE__ */ u.jsx(
|
|
7789
|
+
/* @__PURE__ */ u.jsx(Iu, { container: e, updateContainer: n })
|
|
7775
7790
|
]
|
|
7776
7791
|
}
|
|
7777
7792
|
);
|
|
7778
7793
|
}
|
|
7779
|
-
function
|
|
7794
|
+
function Iu({
|
|
7780
7795
|
container: t,
|
|
7781
7796
|
updateContainer: e
|
|
7782
7797
|
}) {
|
|
@@ -7785,7 +7800,7 @@ function Du({
|
|
|
7785
7800
|
return /* @__PURE__ */ u.jsx(ve.Provider, { value: s, children: n(() => s.hide()) }, r);
|
|
7786
7801
|
}) });
|
|
7787
7802
|
}
|
|
7788
|
-
function
|
|
7803
|
+
function Fu(t, e) {
|
|
7789
7804
|
return gn(-1, t, e, !1);
|
|
7790
7805
|
}
|
|
7791
7806
|
function gn(t, e, n, r) {
|
|
@@ -7825,13 +7840,13 @@ function gn(t, e, n, r) {
|
|
|
7825
7840
|
}
|
|
7826
7841
|
};
|
|
7827
7842
|
}
|
|
7828
|
-
function
|
|
7829
|
-
return /* @__PURE__ */ u.jsx(
|
|
7843
|
+
function Hu(t) {
|
|
7844
|
+
return /* @__PURE__ */ u.jsx(Du, { children: t.children });
|
|
7830
7845
|
}
|
|
7831
|
-
const
|
|
7832
|
-
appLayout:
|
|
7846
|
+
const Vu = "_appLayout_62l10_10", ar = {
|
|
7847
|
+
appLayout: Vu
|
|
7833
7848
|
};
|
|
7834
|
-
function
|
|
7849
|
+
function qu(t) {
|
|
7835
7850
|
const e = E(ar, t), n = pu(), r = {
|
|
7836
7851
|
...t,
|
|
7837
7852
|
...n ? t.mobile : void 0,
|
|
@@ -7895,20 +7910,20 @@ export {
|
|
|
7895
7910
|
Ee as MathUtils,
|
|
7896
7911
|
mr as MiscUtils,
|
|
7897
7912
|
sn as StrUtils,
|
|
7898
|
-
|
|
7899
|
-
|
|
7913
|
+
Hu as TAppContainer,
|
|
7914
|
+
qu as TAppLayout,
|
|
7900
7915
|
dr as TButton,
|
|
7901
7916
|
Gs as TCheckbox,
|
|
7902
7917
|
hr as TClosingEffectProvider,
|
|
7903
|
-
|
|
7918
|
+
Pu as TColLayout,
|
|
7904
7919
|
sa as TDropDown,
|
|
7905
7920
|
la as TErrorPanel,
|
|
7906
7921
|
we as TForm,
|
|
7907
7922
|
sr as TFormButton,
|
|
7908
7923
|
uu as TFormField,
|
|
7909
7924
|
Ue as TGlass,
|
|
7910
|
-
|
|
7911
|
-
|
|
7925
|
+
Ru as TGroupBox,
|
|
7926
|
+
Wu as THeading,
|
|
7912
7927
|
vu as THorizLayout,
|
|
7913
7928
|
Ca as TLoadingBar,
|
|
7914
7929
|
ra as TMenu,
|
|
@@ -7916,21 +7931,23 @@ export {
|
|
|
7916
7931
|
La as TNotification,
|
|
7917
7932
|
re as TPaletteProvider,
|
|
7918
7933
|
vr as TProgressBar,
|
|
7919
|
-
|
|
7934
|
+
Lu as TRadioButton,
|
|
7920
7935
|
xu as TRowLayout,
|
|
7921
|
-
|
|
7936
|
+
Au as TTable,
|
|
7922
7937
|
an as TTextBox,
|
|
7923
7938
|
bu as TVertLayout,
|
|
7924
7939
|
H as TViewport,
|
|
7925
7940
|
vt as TWindow,
|
|
7926
|
-
|
|
7941
|
+
$a as ViewUtils,
|
|
7927
7942
|
fr as useClosingEffect,
|
|
7928
7943
|
wu as useDataContext,
|
|
7929
|
-
|
|
7944
|
+
zu as useDialog,
|
|
7945
|
+
cr as useFormContext,
|
|
7930
7946
|
yn as useLayer,
|
|
7931
7947
|
pu as useMobile,
|
|
7932
7948
|
Ma as useMouseValue,
|
|
7933
7949
|
Su as useNewFormContext,
|
|
7934
|
-
|
|
7935
|
-
gt as useValue
|
|
7950
|
+
Uu as useNotifications,
|
|
7951
|
+
gt as useValue,
|
|
7952
|
+
Zu as useWidth
|
|
7936
7953
|
};
|