@xola/ui-kit 2.0.3 → 2.1.1
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/build/ui-kit.mjs +88 -78
- package/build/ui-kit.umd.js +3 -3
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1264,10 +1264,10 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
|
|
|
1264
1264
|
shouldHideMenu: m = !1,
|
|
1265
1265
|
...g
|
|
1266
1266
|
}) => {
|
|
1267
|
-
const [w, x] = ne(!0), [v, h] = ne(o != null ? o : ""), f = de(), b = dn("search-input"), k = dn("search-menu"), y = Bi(), [C, E] = ne(!0), A = { value: v }, L = v ? [A, ...t] : [], M = ({ selectedItem:
|
|
1268
|
-
_ !== Kt.stateChangeTypes.InputBlur && _ !== Kt.stateChangeTypes.FunctionCloseMenu && (
|
|
1269
|
-
}, V = ({ inputValue:
|
|
1270
|
-
h(
|
|
1267
|
+
const [w, x] = ne(!0), [v, h] = ne(o != null ? o : ""), f = de(), b = dn("search-input"), k = dn("search-menu"), y = Bi(), [C, E] = ne(!0), A = { value: v }, L = v ? [A, ...t] : [], M = ({ selectedItem: O, type: _ }) => {
|
|
1268
|
+
_ !== Kt.stateChangeTypes.InputBlur && _ !== Kt.stateChangeTypes.FunctionCloseMenu && (O === A ? (r == null || r(v), f.current.blur()) : O && (i == null || i(O), f.current.blur()), G());
|
|
1269
|
+
}, V = ({ inputValue: O }) => {
|
|
1270
|
+
h(O), a && Si(a, O);
|
|
1271
1271
|
}, {
|
|
1272
1272
|
isOpen: P,
|
|
1273
1273
|
openMenu: q,
|
|
@@ -1288,13 +1288,13 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
|
|
|
1288
1288
|
_e(() => {
|
|
1289
1289
|
P ? E(!1) : setTimeout(() => E(!0), 1);
|
|
1290
1290
|
}, [P, E]);
|
|
1291
|
-
const
|
|
1291
|
+
const W = () => {
|
|
1292
1292
|
x(!1), q();
|
|
1293
|
-
},
|
|
1294
|
-
ur(yt ? "cmd+k" : "ctrl+k", (
|
|
1295
|
-
|
|
1293
|
+
}, j = (P || !C || u) && L.length > 0 && !m, $ = j && !s && L.length <= 1;
|
|
1294
|
+
ur(yt ? "cmd+k" : "ctrl+k", (O) => {
|
|
1295
|
+
O.preventDefault(), f.current.focus();
|
|
1296
1296
|
}), ur("esc", () => f.current.blur(), { enableOnTags: ["INPUT"] });
|
|
1297
|
-
const re =
|
|
1297
|
+
const re = j || !d;
|
|
1298
1298
|
return /* @__PURE__ */ n.createElement("div", {
|
|
1299
1299
|
className: "ui-search relative w-full"
|
|
1300
1300
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
@@ -1313,8 +1313,9 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
|
|
|
1313
1313
|
e
|
|
1314
1314
|
),
|
|
1315
1315
|
ref: f,
|
|
1316
|
-
onFocus:
|
|
1316
|
+
onFocus: W,
|
|
1317
1317
|
onBlur: () => x(!0),
|
|
1318
|
+
onChange: (O) => h(O.target.value),
|
|
1318
1319
|
...g
|
|
1319
1320
|
})
|
|
1320
1321
|
}), /* @__PURE__ */ n.createElement("div", {
|
|
@@ -1329,13 +1330,13 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
|
|
|
1329
1330
|
className: I(
|
|
1330
1331
|
"ui-search-menu",
|
|
1331
1332
|
"absolute top-10 divide-y divide-gray-light w-full xl:w-2/3 max-h-[75vh] border border-blue-light mt-1 rounded overflow-auto z-10 bg-white",
|
|
1332
|
-
{ hidden: !
|
|
1333
|
+
{ hidden: !j }
|
|
1333
1334
|
)
|
|
1334
1335
|
})
|
|
1335
|
-
}, re ? L.map((
|
|
1336
|
-
key:
|
|
1337
|
-
...B({ key: _, item:
|
|
1338
|
-
},
|
|
1336
|
+
}, re ? L.map((O, _) => /* @__PURE__ */ n.createElement("li", {
|
|
1337
|
+
key: O,
|
|
1338
|
+
...B({ key: _, item: O, index: _, className: "ui-search-item" })
|
|
1339
|
+
}, O === A ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
1339
1340
|
className: I(
|
|
1340
1341
|
"cursor-pointer p-2",
|
|
1341
1342
|
z === _ ? "bg-blue-light text-white" : ""
|
|
@@ -1344,7 +1345,7 @@ const Si = Mi((e, t) => e(t), 500), Bo = ({
|
|
|
1344
1345
|
className: "p-3 text-center"
|
|
1345
1346
|
}, /* @__PURE__ */ n.createElement(ft, {
|
|
1346
1347
|
size: "small"
|
|
1347
|
-
})) : null) : l == null ? void 0 : l(
|
|
1348
|
+
})) : null) : l == null ? void 0 : l(O, z === _))) : null, re && $ ? /* @__PURE__ */ n.createElement("li", {
|
|
1348
1349
|
className: "cursor-not-allowed p-2"
|
|
1349
1350
|
}, "No results found") : null, re && L.length < 5 ? /* @__PURE__ */ n.createElement("li", {
|
|
1350
1351
|
className: "search-footer pointer-events sticky bottom-0 flex space-x-5 p-2 text-sm text-gray-dark"
|
|
@@ -1503,25 +1504,34 @@ je.propTypes = {
|
|
|
1503
1504
|
className: c.string,
|
|
1504
1505
|
currency: c.string.isRequired
|
|
1505
1506
|
};
|
|
1506
|
-
const Ro = ({ children: e, info: t,
|
|
1507
|
-
const
|
|
1507
|
+
const Ro = ({ children: e, info: t, methodIcon: o, secondary: a, value: r, className: i, color: l = "default", ...s }) => {
|
|
1508
|
+
const u = Te(Jn);
|
|
1508
1509
|
return /* @__PURE__ */ n.createElement("tr", {
|
|
1509
|
-
className: I("ui-breakdown-item", Xt[
|
|
1510
|
-
...
|
|
1510
|
+
className: I("ui-breakdown-item", Xt[l], i),
|
|
1511
|
+
...s
|
|
1511
1512
|
}, /* @__PURE__ */ n.createElement("td", {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1513
|
+
colSpan: 2,
|
|
1514
|
+
className: "text-left leading-none"
|
|
1515
|
+
}, /* @__PURE__ */ n.createElement("span", {
|
|
1516
|
+
className: "mr-0.5"
|
|
1517
|
+
}, o), /* @__PURE__ */ n.createElement("span", null, e), /* @__PURE__ */ n.createElement("span", {
|
|
1518
|
+
className: "ml-1 text-sm"
|
|
1519
|
+
}, t && /* @__PURE__ */ n.createElement("span", {
|
|
1520
|
+
className: "mr-2 rounded bg-white p-1 uppercase text-black empty:hidden"
|
|
1521
|
+
}, t), a && /* @__PURE__ */ n.createElement("span", {
|
|
1522
|
+
className: "empty:hidden"
|
|
1523
|
+
}, a))), /* @__PURE__ */ n.createElement("td", {
|
|
1516
1524
|
className: "w-[1%] whitespace-nowrap pl-4 text-right"
|
|
1517
1525
|
}, /* @__PURE__ */ n.createElement(We, {
|
|
1518
1526
|
shouldRemoveTrailingZeroes: !1,
|
|
1519
|
-
currency:
|
|
1520
|
-
},
|
|
1527
|
+
currency: u
|
|
1528
|
+
}, r)));
|
|
1521
1529
|
};
|
|
1522
1530
|
Ro.propTypes = {
|
|
1523
1531
|
children: c.node,
|
|
1524
1532
|
info: c.node,
|
|
1533
|
+
methodIcon: c.node,
|
|
1534
|
+
secondary: c.node,
|
|
1525
1535
|
value: c.node,
|
|
1526
1536
|
className: c.string,
|
|
1527
1537
|
color: c.oneOf(Object.keys(Xt))
|
|
@@ -2509,9 +2519,9 @@ function Ns() {
|
|
|
2509
2519
|
}
|
|
2510
2520
|
}
|
|
2511
2521
|
}
|
|
2512
|
-
var E = u, A = d, L = s, M = l, V = t, P = m, q = a, D = v, Y = x, H = o, z = i, B = r, G = g,
|
|
2513
|
-
function
|
|
2514
|
-
return
|
|
2522
|
+
var E = u, A = d, L = s, M = l, V = t, P = m, q = a, D = v, Y = x, H = o, z = i, B = r, G = g, W = !1;
|
|
2523
|
+
function j(N) {
|
|
2524
|
+
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(N) || C(N) === u;
|
|
2515
2525
|
}
|
|
2516
2526
|
function $(N) {
|
|
2517
2527
|
return C(N) === d;
|
|
@@ -2519,7 +2529,7 @@ function Ns() {
|
|
|
2519
2529
|
function re(N) {
|
|
2520
2530
|
return C(N) === s;
|
|
2521
2531
|
}
|
|
2522
|
-
function
|
|
2532
|
+
function O(N) {
|
|
2523
2533
|
return C(N) === l;
|
|
2524
2534
|
}
|
|
2525
2535
|
function _(N) {
|
|
@@ -2549,7 +2559,7 @@ function Ns() {
|
|
|
2549
2559
|
function Le(N) {
|
|
2550
2560
|
return C(N) === g;
|
|
2551
2561
|
}
|
|
2552
|
-
U.AsyncMode = E, U.ConcurrentMode = A, U.ContextConsumer = L, U.ContextProvider = M, U.Element = V, U.ForwardRef = P, U.Fragment = q, U.Lazy = D, U.Memo = Y, U.Portal = H, U.Profiler = z, U.StrictMode = B, U.Suspense = G, U.isAsyncMode =
|
|
2562
|
+
U.AsyncMode = E, U.ConcurrentMode = A, U.ContextConsumer = L, U.ContextProvider = M, U.Element = V, U.ForwardRef = P, U.Fragment = q, U.Lazy = D, U.Memo = Y, U.Portal = H, U.Profiler = z, U.StrictMode = B, U.Suspense = G, U.isAsyncMode = j, U.isConcurrentMode = $, U.isContextConsumer = re, U.isContextProvider = O, U.isElement = _, U.isForwardRef = ge, U.isFragment = he, U.isLazy = ue, U.isMemo = ce, U.isPortal = ve, U.isProfiler = Ee, U.isStrictMode = Re, U.isSuspense = Le, U.isValidElementType = y, U.typeOf = C;
|
|
2553
2563
|
}()), U;
|
|
2554
2564
|
}
|
|
2555
2565
|
(function(e) {
|
|
@@ -4224,11 +4234,11 @@ var Tl = process.env.NODE_ENV === "production" ? {
|
|
|
4224
4234
|
}, [m]), L = Ne(function() {
|
|
4225
4235
|
var H = "";
|
|
4226
4236
|
if (o && A.onChange) {
|
|
4227
|
-
var z = o.option, B = o.options, G = o.removedValue,
|
|
4237
|
+
var z = o.option, B = o.options, G = o.removedValue, W = o.removedValues, j = o.value, $ = function(ce) {
|
|
4228
4238
|
return Array.isArray(ce) ? null : ce;
|
|
4229
|
-
}, re = G || z || $(
|
|
4239
|
+
}, re = G || z || $(j), O = re ? g(re) : "", _ = B || W || void 0, ge = _ ? _.map(g) : [], he = T({
|
|
4230
4240
|
isDisabled: re && v(re, s),
|
|
4231
|
-
label:
|
|
4241
|
+
label: O,
|
|
4232
4242
|
labels: ge
|
|
4233
4243
|
}, o);
|
|
4234
4244
|
H = A.onChange(he);
|
|
@@ -5611,9 +5621,9 @@ var Va = function(t) {
|
|
|
5611
5621
|
}), r.formatOptionLabel(_.data, "menu"));
|
|
5612
5622
|
}, G;
|
|
5613
5623
|
if (this.hasOptions())
|
|
5614
|
-
G = this.getCategorizedOptions().map(function(
|
|
5615
|
-
if (
|
|
5616
|
-
var _ =
|
|
5624
|
+
G = this.getCategorizedOptions().map(function(O) {
|
|
5625
|
+
if (O.type === "group") {
|
|
5626
|
+
var _ = O.data, ge = O.options, he = O.index, ue = "".concat(r.getElementId("group"), "-").concat(he), ce = "".concat(ue, "-heading");
|
|
5617
5627
|
return /* @__PURE__ */ Z.createElement(l, S({}, v, {
|
|
5618
5628
|
key: ue,
|
|
5619
5629
|
data: _,
|
|
@@ -5621,29 +5631,29 @@ var Va = function(t) {
|
|
|
5621
5631
|
Heading: s,
|
|
5622
5632
|
headingProps: {
|
|
5623
5633
|
id: ce,
|
|
5624
|
-
data:
|
|
5634
|
+
data: O.data
|
|
5625
5635
|
},
|
|
5626
|
-
label: r.formatGroupLabel(
|
|
5627
|
-
}),
|
|
5636
|
+
label: r.formatGroupLabel(O.data)
|
|
5637
|
+
}), O.options.map(function(ve) {
|
|
5628
5638
|
return B(ve, "".concat(he, "-").concat(ve.index));
|
|
5629
5639
|
}));
|
|
5630
|
-
} else if (
|
|
5631
|
-
return B(
|
|
5640
|
+
} else if (O.type === "option")
|
|
5641
|
+
return B(O, "".concat(O.index));
|
|
5632
5642
|
});
|
|
5633
5643
|
else if (y) {
|
|
5634
|
-
var
|
|
5644
|
+
var W = C({
|
|
5635
5645
|
inputValue: k
|
|
5636
5646
|
});
|
|
5637
|
-
if (
|
|
5647
|
+
if (W === null)
|
|
5638
5648
|
return null;
|
|
5639
|
-
G = /* @__PURE__ */ Z.createElement(g, v,
|
|
5649
|
+
G = /* @__PURE__ */ Z.createElement(g, v, W);
|
|
5640
5650
|
} else {
|
|
5641
|
-
var
|
|
5651
|
+
var j = Y({
|
|
5642
5652
|
inputValue: k
|
|
5643
5653
|
});
|
|
5644
|
-
if (
|
|
5654
|
+
if (j === null)
|
|
5645
5655
|
return null;
|
|
5646
|
-
G = /* @__PURE__ */ Z.createElement(w, v,
|
|
5656
|
+
G = /* @__PURE__ */ Z.createElement(w, v, j);
|
|
5647
5657
|
}
|
|
5648
5658
|
var $ = {
|
|
5649
5659
|
minMenuHeight: E,
|
|
@@ -5651,8 +5661,8 @@ var Va = function(t) {
|
|
|
5651
5661
|
menuPlacement: M,
|
|
5652
5662
|
menuPosition: V,
|
|
5653
5663
|
menuShouldScrollIntoView: D
|
|
5654
|
-
}, re = /* @__PURE__ */ Z.createElement(F0, S({}, v, $), function(
|
|
5655
|
-
var _ =
|
|
5664
|
+
}, re = /* @__PURE__ */ Z.createElement(F0, S({}, v, $), function(O) {
|
|
5665
|
+
var _ = O.ref, ge = O.placerProps, he = ge.placement, ue = ge.maxHeight;
|
|
5656
5666
|
return /* @__PURE__ */ Z.createElement(u, S({}, v, $, {
|
|
5657
5667
|
innerRef: _,
|
|
5658
5668
|
innerProps: {
|
|
@@ -5803,11 +5813,11 @@ var Va = function(t) {
|
|
|
5803
5813
|
Ra.defaultProps = ic;
|
|
5804
5814
|
var dc = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5805
5815
|
function mc(e) {
|
|
5806
|
-
var t = e.defaultInputValue, o = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, r = a === void 0 ? !1 : a, i = e.defaultValue, l = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, d = e.onChange, m = e.onInputChange, g = e.onMenuClose, w = e.onMenuOpen, x = e.value, v = Ze(e, dc), h = ne(s !== void 0 ? s : o), f = Be(h, 2), b = f[0], k = f[1], y = ne(u !== void 0 ? u : r), C = Be(y, 2), E = C[0], A = C[1], L = ne(x !== void 0 ? x : l), M = Be(L, 2), V = M[0], P = M[1], q = ae(function(
|
|
5807
|
-
typeof d == "function" && d(
|
|
5808
|
-
}, [d]), D = ae(function(
|
|
5816
|
+
var t = e.defaultInputValue, o = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, r = a === void 0 ? !1 : a, i = e.defaultValue, l = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, d = e.onChange, m = e.onInputChange, g = e.onMenuClose, w = e.onMenuOpen, x = e.value, v = Ze(e, dc), h = ne(s !== void 0 ? s : o), f = Be(h, 2), b = f[0], k = f[1], y = ne(u !== void 0 ? u : r), C = Be(y, 2), E = C[0], A = C[1], L = ne(x !== void 0 ? x : l), M = Be(L, 2), V = M[0], P = M[1], q = ae(function(W, j) {
|
|
5817
|
+
typeof d == "function" && d(W, j), P(W);
|
|
5818
|
+
}, [d]), D = ae(function(W, j) {
|
|
5809
5819
|
var $;
|
|
5810
|
-
typeof m == "function" && ($ = m(
|
|
5820
|
+
typeof m == "function" && ($ = m(W, j)), k($ !== void 0 ? $ : W);
|
|
5811
5821
|
}, [m]), Y = ae(function() {
|
|
5812
5822
|
typeof w == "function" && w(), A(!0);
|
|
5813
5823
|
}, [w]), H = ae(function() {
|
|
@@ -6625,23 +6635,23 @@ const Nt = {
|
|
|
6625
6635
|
_e(() => {
|
|
6626
6636
|
l == null || l(f);
|
|
6627
6637
|
}, [f, l]);
|
|
6628
|
-
const E = (B, G,
|
|
6638
|
+
const E = (B, G, W) => {
|
|
6629
6639
|
if (!G.disabled)
|
|
6630
6640
|
if (y(""), C)
|
|
6631
6641
|
if (t.from && t.to)
|
|
6632
|
-
i({ from: B, to: null }, G,
|
|
6642
|
+
i({ from: B, to: null }, G, W);
|
|
6633
6643
|
else if ((t.from || t.to).getTime() === B.getTime()) {
|
|
6634
|
-
const
|
|
6635
|
-
i({ from:
|
|
6644
|
+
const j = R(B).startOf("day").toDate(), $ = R(B).endOf("day").toDate();
|
|
6645
|
+
i({ from: j, to: $ }, G, W);
|
|
6636
6646
|
} else
|
|
6637
|
-
i(i1.addDayToRange(B, t), G,
|
|
6647
|
+
i(i1.addDayToRange(B, t), G, W);
|
|
6638
6648
|
else
|
|
6639
|
-
i(B, G,
|
|
6640
|
-
}, A = (B, G,
|
|
6649
|
+
i(B, G, W);
|
|
6650
|
+
}, A = (B, G, W) => {
|
|
6641
6651
|
if (C)
|
|
6642
6652
|
return;
|
|
6643
|
-
const
|
|
6644
|
-
G.disabled || P(
|
|
6653
|
+
const j = new Date();
|
|
6654
|
+
G.disabled || P(j) ? (b(j), l == null || l(j)) : i(B, G, W);
|
|
6645
6655
|
}, L = (B, G) => {
|
|
6646
6656
|
b(G.from), i(G, u, null);
|
|
6647
6657
|
}, M = (B) => {
|
|
@@ -6651,18 +6661,18 @@ const Nt = {
|
|
|
6651
6661
|
currentMonth: f,
|
|
6652
6662
|
onChange: M
|
|
6653
6663
|
}) : void 0, P = (B) => e1(a) ? a.some((G) => R(G).isSame(B, "day")) : (t1(a), a(B)), q = (B) => {
|
|
6654
|
-
const G = w == null ? void 0 : w(B),
|
|
6664
|
+
const G = w == null ? void 0 : w(B), W = P(B);
|
|
6655
6665
|
return G ? /* @__PURE__ */ n.createElement(Gn, {
|
|
6656
6666
|
placement: "top",
|
|
6657
6667
|
content: G
|
|
6658
6668
|
}, /* @__PURE__ */ n.createElement(Cn, {
|
|
6659
|
-
disabled:
|
|
6669
|
+
disabled: W,
|
|
6660
6670
|
selectedDate: t,
|
|
6661
6671
|
date: B,
|
|
6662
6672
|
getContent: o,
|
|
6663
6673
|
currentMonth: f
|
|
6664
6674
|
})) : /* @__PURE__ */ n.createElement(Cn, {
|
|
6665
|
-
disabled:
|
|
6675
|
+
disabled: W,
|
|
6666
6676
|
selectedDate: t,
|
|
6667
6677
|
date: B,
|
|
6668
6678
|
getContent: o,
|
|
@@ -6678,17 +6688,17 @@ const Nt = {
|
|
|
6678
6688
|
}, "Upcoming"), (x == null ? void 0 : x.length) > 0 ? /* @__PURE__ */ n.createElement("div", {
|
|
6679
6689
|
className: "mt-5"
|
|
6680
6690
|
}, x == null ? void 0 : x.map((B) => {
|
|
6681
|
-
const G = R(B).isSame(R(t), "day"),
|
|
6691
|
+
const G = R(B).isSame(R(t), "day"), W = R(B).format();
|
|
6682
6692
|
return /* @__PURE__ */ n.createElement("div", {
|
|
6683
|
-
key:
|
|
6693
|
+
key: W,
|
|
6684
6694
|
value: !0,
|
|
6685
6695
|
className: I(
|
|
6686
6696
|
"mx-6 mt-3 flex min-w-40 cursor-pointer items-center justify-center",
|
|
6687
6697
|
"rounded border border-gray py-3 hover:border-blue hover:bg-blue hover:text-white",
|
|
6688
6698
|
{ "border-blue bg-blue text-white": G }
|
|
6689
6699
|
),
|
|
6690
|
-
onClick: (
|
|
6691
|
-
E(B, {},
|
|
6700
|
+
onClick: (j) => {
|
|
6701
|
+
E(B, {}, j), M(B);
|
|
6692
6702
|
}
|
|
6693
6703
|
}, R(B).format("ddd DD MMMM"));
|
|
6694
6704
|
})) : /* @__PURE__ */ n.createElement("div", {
|
|
@@ -6846,11 +6856,11 @@ var Xa = { exports: {} };
|
|
|
6846
6856
|
z.call(P, G), V = V.replace(G, "");
|
|
6847
6857
|
}
|
|
6848
6858
|
}
|
|
6849
|
-
return function(
|
|
6850
|
-
var
|
|
6851
|
-
if (
|
|
6852
|
-
var $ =
|
|
6853
|
-
|
|
6859
|
+
return function(W) {
|
|
6860
|
+
var j = W.afternoon;
|
|
6861
|
+
if (j !== void 0) {
|
|
6862
|
+
var $ = W.hours;
|
|
6863
|
+
j ? $ < 12 && (W.hours += 12) : $ === 12 && (W.hours = 0), delete W.afternoon;
|
|
6854
6864
|
}
|
|
6855
6865
|
}(P), P;
|
|
6856
6866
|
};
|
|
@@ -6864,14 +6874,14 @@ var Xa = { exports: {} };
|
|
|
6864
6874
|
var M = L[1];
|
|
6865
6875
|
if (typeof M == "string") {
|
|
6866
6876
|
var V = L[2] === !0, P = L[3] === !0, q = V || P, D = L[2];
|
|
6867
|
-
P && (D = L[2]), s = this.$locale(), !V && D && (s = b.Ls[D]), this.$d = function(B, G,
|
|
6877
|
+
P && (D = L[2]), s = this.$locale(), !V && D && (s = b.Ls[D]), this.$d = function(B, G, W) {
|
|
6868
6878
|
try {
|
|
6869
6879
|
if (["x", "X"].indexOf(G) > -1)
|
|
6870
6880
|
return new Date((G === "X" ? 1e3 : 1) * B);
|
|
6871
|
-
var
|
|
6881
|
+
var j = v(G)(B), $ = j.year, re = j.month, O = j.day, _ = j.hours, ge = j.minutes, he = j.seconds, ue = j.milliseconds, ce = j.zone, ve = new Date(), Ee = O || ($ || re ? 1 : ve.getDate()), Re = $ || ve.getFullYear(), Le = 0;
|
|
6872
6882
|
$ && !re || (Le = re > 0 ? re - 1 : ve.getMonth());
|
|
6873
6883
|
var N = _ || 0, Me = ge || 0, be = he || 0, Fe = ue || 0;
|
|
6874
|
-
return ce ? new Date(Date.UTC(Re, Le, Ee, N, Me, be, Fe + 60 * ce.offset * 1e3)) :
|
|
6884
|
+
return ce ? new Date(Date.UTC(Re, Le, Ee, N, Me, be, Fe + 60 * ce.offset * 1e3)) : W ? new Date(Date.UTC(Re, Le, Ee, N, Me, be, Fe)) : new Date(Re, Le, Ee, N, Me, be, Fe);
|
|
6875
6885
|
} catch {
|
|
6876
6886
|
return new Date("");
|
|
6877
6887
|
}
|