@spscommerce/ds-react 7.12.1 → 7.12.3
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/lib/datepicker/SpsDatepicker.d.ts +1 -1
- package/lib/index.cjs.js +76 -48
- package/lib/index.es.js +733 -681
- package/package.json +12 -12
package/lib/index.es.js
CHANGED
|
@@ -4,15 +4,15 @@ var It = (e, t, n) => ($S(e, typeof t != "symbol" ? t + "" : t, n), n), Kl = (e,
|
|
|
4
4
|
if (!t.has(e))
|
|
5
5
|
throw TypeError("Cannot " + n);
|
|
6
6
|
};
|
|
7
|
-
var Dn = (e, t, n) => (Kl(e, t, "read from private field"), n ? n.call(e) : t.get(e)),
|
|
7
|
+
var Dn = (e, t, n) => (Kl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), xs = (e, t, n) => {
|
|
8
8
|
if (t.has(e))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
11
11
|
}, Xt = (e, t, n, r) => (Kl(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
12
12
|
import * as s from "react";
|
|
13
13
|
import Y, { useRef as pe, useEffect as Le, useMemo as He, useCallback as nn, useReducer as sa, createContext as VS, useContext as rn, useLayoutEffect as aa, useState as Ve } from "react";
|
|
14
|
-
import { noI18nI18n as KS, ButtonKind as Ge, ButtonType as So, SpinnerSize as HS, Position as be, ZStratum as WS, SpsOptionListOption as bo, SPS_ACTION_DEFAULTS as Kd, DropdownKind as $a, SpsIcon as je, ClickableTagKind as GS, TagKind as dr, SpsIconSize as oa, TooltipShowTrigger as it, TOOLTIP_HIDE_DELAY_MS_DEFAULT as US, TooltipKind as $t, GrowlerKind as vo, GrowlerIcon as YS, GROWLER_VISIBLE_DURATION_MS as Hl, GROWLER_FADEOUT_DURATION_MS as jS, SortDirection as Ft, FeedbackBlockKind as Hd, FeedbackBlockIcons as Wd, ModalKind as Wl, ModalSize as zS, DEFAULT_PAGE_SIZE_OPTIONS as qS, SteppedProgressBarColor as JS, StdButtonKind as ZS, SpsTaskStatus as
|
|
15
|
-
import { code as E, deepFreeze as jl, getPath as
|
|
14
|
+
import { noI18nI18n as KS, ButtonKind as Ge, ButtonType as So, SpinnerSize as HS, Position as be, ZStratum as WS, SpsOptionListOption as bo, SPS_ACTION_DEFAULTS as Kd, DropdownKind as $a, SpsIcon as je, ClickableTagKind as GS, TagKind as dr, SpsIconSize as oa, TooltipShowTrigger as it, TOOLTIP_HIDE_DELAY_MS_DEFAULT as US, TooltipKind as $t, GrowlerKind as vo, GrowlerIcon as YS, GROWLER_VISIBLE_DURATION_MS as Hl, GROWLER_FADEOUT_DURATION_MS as jS, SortDirection as Ft, FeedbackBlockKind as Hd, FeedbackBlockIcons as Wd, ModalKind as Wl, ModalSize as zS, DEFAULT_PAGE_SIZE_OPTIONS as qS, SteppedProgressBarColor as JS, StdButtonKind as ZS, SpsTaskStatus as Is, TASK_QUEUE_NOTIFICATION_DURATION_MS as Gl, SpsTaskStatusIcons as Ul, RingSize as Gd, WizardSubstepConditions as Yl, SpsInsightTileIcons as XS, KeyValueListTitleColor as QS, SpsFilterTileKind as eb } from "@spscommerce/ds-shared";
|
|
15
|
+
import { code as E, deepFreeze as jl, getPath as Vs, setPath as tb, diff as nb, DiffChange as Nn, debounce as rb, flatten as sb, crumblePath as ab, traversePath as ob, forEachNestedObject as ib, lockToAnimationFrames as lb, constrain as cb } from "@spscommerce/utils";
|
|
16
16
|
import * as pr from "moment-timezone";
|
|
17
17
|
import tt from "moment-timezone";
|
|
18
18
|
import db, { createPortal as pb, unstable_batchedUpdates as ub } from "react-dom";
|
|
@@ -510,12 +510,12 @@ function xb(e) {
|
|
|
510
510
|
return typeof n == "function" && n instanceof n && Jd.call(n) == wb;
|
|
511
511
|
}
|
|
512
512
|
var Zd = xb;
|
|
513
|
-
const Ct = /* @__PURE__ */ new Set(),
|
|
513
|
+
const Ct = /* @__PURE__ */ new Set(), Qr = /* @__PURE__ */ new Set(), Sn = /* @__PURE__ */ new Set(), Ho = /* @__PURE__ */ new Set();
|
|
514
514
|
function Ib(e) {
|
|
515
|
-
Ct.has(e) || Sn.has(e) || Ho.has(e) ||
|
|
515
|
+
Ct.has(e) || Sn.has(e) || Ho.has(e) || Qr.add(e);
|
|
516
516
|
}
|
|
517
517
|
function kb(e) {
|
|
518
|
-
Ct.has(e) || Sn.has(e) ||
|
|
518
|
+
Ct.has(e) || Sn.has(e) || Qr.has(e) || Ho.add(e);
|
|
519
519
|
}
|
|
520
520
|
const Va = pr.default || pr, la = "MM/DD/YYYY", Mb = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, Xd = Symbol("Date Parse Error");
|
|
521
521
|
function jn(e) {
|
|
@@ -697,11 +697,11 @@ const Pb = function(t) {
|
|
|
697
697
|
}
|
|
698
698
|
return (r) => bn(r, n);
|
|
699
699
|
};
|
|
700
|
-
|
|
700
|
+
Qr.add("max");
|
|
701
701
|
const Bb = function(t) {
|
|
702
702
|
return typeof t > "u" || t === null || t === "" || Number.isNaN(t) || (t == null ? void 0 : t.length) === 0 ? { required: !0 } : null;
|
|
703
703
|
};
|
|
704
|
-
|
|
704
|
+
Qr.add("required");
|
|
705
705
|
const Ab = function(t) {
|
|
706
706
|
function n(r) {
|
|
707
707
|
return r === void 0 || r.toString().length < t ? { minLength: t } : null;
|
|
@@ -787,20 +787,20 @@ function _M(e, t = {}, n = []) {
|
|
|
787
787
|
a === 0 ? Ib(r) : a === 2 && kb(r);
|
|
788
788
|
return s.useCallback(e, n);
|
|
789
789
|
}
|
|
790
|
-
var
|
|
790
|
+
var _n, pn, un;
|
|
791
791
|
class rr {
|
|
792
792
|
constructor(t, n) {
|
|
793
793
|
It(this, "validators", []);
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
794
|
+
xs(this, _n, null);
|
|
795
|
+
xs(this, pn, null);
|
|
796
|
+
xs(this, un, null);
|
|
797
797
|
It(this, "preventativeErrors", []);
|
|
798
798
|
It(this, "submitted", !1);
|
|
799
799
|
this.path = t, this.update = n;
|
|
800
800
|
}
|
|
801
801
|
get errors() {
|
|
802
802
|
var t, n, r;
|
|
803
|
-
return Dn(this,
|
|
803
|
+
return Dn(this, _n) === null && Dn(this, pn) === null && Dn(this, un) === null ? null : { ...(t = Dn(this, _n)) != null ? t : {}, ...(n = Dn(this, pn)) != null ? n : {}, ...(r = Dn(this, un)) != null ? r : {} };
|
|
804
804
|
}
|
|
805
805
|
setValidators(t) {
|
|
806
806
|
return this.update(this.path, null, void 0, t), this;
|
|
@@ -809,9 +809,9 @@ class rr {
|
|
|
809
809
|
if (this.validators && this.validators.length > 0) {
|
|
810
810
|
const a = Go(t, this.validators);
|
|
811
811
|
let o = { onSubmit: {}, onChange: {}, onBlur: {} };
|
|
812
|
-
a && (o = Object.keys(a).reduce((l, c) => (Ho.has(c) ? l.onSubmit[c] = a[c] :
|
|
812
|
+
a && (o = Object.keys(a).reduce((l, c) => (Ho.has(c) ? l.onSubmit[c] = a[c] : Qr.has(c) ? l.onChange[c] = a[c] : l.onBlur[c] = a[c], l), o)), (typeof n > "u" || n === tn.ON_CHANGE) && Xt(this, pn, Object.keys(o.onChange).length === 0 ? null : o.onChange), (typeof n > "u" || n === tn.ON_BLUR) && Xt(this, un, Object.keys(o.onBlur).length === 0 ? null : o.onBlur), (typeof n > "u" || n === tn.ON_SUBMIT) && (Xt(this, _n, Object.keys(o.onSubmit).length === 0 ? null : o.onSubmit), Xt(this, pn, Object.keys(o.onChange).length === 0 ? null : o.onChange), Xt(this, un, Object.keys(o.onBlur).length === 0 ? null : o.onBlur)), r || this.update(), this.isFocused() && this.onFocus && this.onFocus();
|
|
813
813
|
} else
|
|
814
|
-
this.errors && (Xt(this,
|
|
814
|
+
this.errors && (Xt(this, _n, null), Xt(this, un, null), Xt(this, pn, null), r || this.update());
|
|
815
815
|
return this;
|
|
816
816
|
}
|
|
817
817
|
isValid() {
|
|
@@ -843,7 +843,7 @@ class rr {
|
|
|
843
843
|
onBlur() {
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
_n = new WeakMap(), pn = new WeakMap(), un = new WeakMap();
|
|
847
847
|
class Ys extends rr {
|
|
848
848
|
constructor() {
|
|
849
849
|
super(...arguments);
|
|
@@ -929,7 +929,7 @@ class sr extends Ys {
|
|
|
929
929
|
return this;
|
|
930
930
|
}
|
|
931
931
|
inferSpsControl(n, r) {
|
|
932
|
-
return
|
|
932
|
+
return Ks(n, [...this.path, r], this.update);
|
|
933
933
|
}
|
|
934
934
|
rollup(n) {
|
|
935
935
|
return Object.keys(this.fields).reduce(
|
|
@@ -950,11 +950,11 @@ class Yb extends sr {
|
|
|
950
950
|
this.fields = t.map((n, r) => this.inferSpsControl(n, String(r)));
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Ks(e, t, n) {
|
|
954
954
|
return e instanceof rr ? (e.path = t, e.update = n, e) : Array.isArray(e) ? new Yb(e, t, n) : Zd(e) ? new Ub(e, t, n) : new Ys(t, n);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
return t.length === 0 || !e ? e :
|
|
956
|
+
function Hr(e, t) {
|
|
957
|
+
return t.length === 0 || !e ? e : Hr(e.fields[t[0]], t.slice(1, t.length));
|
|
958
958
|
}
|
|
959
959
|
function Eo(e, t) {
|
|
960
960
|
if (t.length === 0 || !e)
|
|
@@ -976,9 +976,9 @@ function Qd(e, t, n) {
|
|
|
976
976
|
o && a && n(o, a);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function ks(e, t, n, r = !1, a = !1) {
|
|
980
980
|
Qd(t, n, (o, l) => {
|
|
981
|
-
o.validators = typeof l == "function" ? l(e) : l, r && o.validate(
|
|
981
|
+
o.validators = typeof l == "function" ? l(e) : l, r && o.validate(Vs(e, o.path), void 0, a);
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
function To(e, t) {
|
|
@@ -998,18 +998,18 @@ function zb(e, t = {}) {
|
|
|
998
998
|
jb(e);
|
|
999
999
|
const n = He(() => {
|
|
1000
1000
|
jl(e);
|
|
1001
|
-
const m =
|
|
1002
|
-
return t &&
|
|
1001
|
+
const m = Ks(e, [], p);
|
|
1002
|
+
return t && ks(e, m, t, !1, !0), m;
|
|
1003
1003
|
}, []), r = pe(), a = pe(t), o = nn((m, f) => {
|
|
1004
1004
|
var S, y, w;
|
|
1005
1005
|
let h;
|
|
1006
1006
|
if (r.current = void 0, f)
|
|
1007
1007
|
if (f.path)
|
|
1008
1008
|
if (f.markAsBlurred) {
|
|
1009
|
-
const T =
|
|
1009
|
+
const T = Hr(m.formMeta, f.path);
|
|
1010
1010
|
if (T) {
|
|
1011
1011
|
T.focused = !1;
|
|
1012
|
-
const D =
|
|
1012
|
+
const D = Vs(m.formValue, f.path);
|
|
1013
1013
|
T.validate(D, tn.ON_BLUR);
|
|
1014
1014
|
}
|
|
1015
1015
|
} else if (f.newValidators) {
|
|
@@ -1018,7 +1018,7 @@ function zb(e, t = {}) {
|
|
|
1018
1018
|
a.current = {
|
|
1019
1019
|
...a.current,
|
|
1020
1020
|
[T]: f.newValidators
|
|
1021
|
-
},
|
|
1021
|
+
}, ks(
|
|
1022
1022
|
m.formValue,
|
|
1023
1023
|
m.formMeta,
|
|
1024
1024
|
a.current,
|
|
@@ -1026,10 +1026,10 @@ function zb(e, t = {}) {
|
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
1028
|
} else if (f.markAsSubmitted) {
|
|
1029
|
-
const T =
|
|
1029
|
+
const T = Hr(m.formMeta, f.path);
|
|
1030
1030
|
if (T) {
|
|
1031
1031
|
T.submitted = !0;
|
|
1032
|
-
const D =
|
|
1032
|
+
const D = Vs(m.formValue, f.path);
|
|
1033
1033
|
T.validate(D, tn.ON_SUBMIT);
|
|
1034
1034
|
}
|
|
1035
1035
|
} else
|
|
@@ -1039,7 +1039,7 @@ function zb(e, t = {}) {
|
|
|
1039
1039
|
if ((S = f.updateFormOptions) != null && S.validators && (a.current = {
|
|
1040
1040
|
...a.current,
|
|
1041
1041
|
...f.updateFormOptions.validators
|
|
1042
|
-
},
|
|
1042
|
+
}, ks(
|
|
1043
1043
|
m.formValue,
|
|
1044
1044
|
m.formMeta,
|
|
1045
1045
|
a.current,
|
|
@@ -1051,64 +1051,68 @@ function zb(e, t = {}) {
|
|
|
1051
1051
|
h
|
|
1052
1052
|
);
|
|
1053
1053
|
for (const {
|
|
1054
|
-
type:
|
|
1055
|
-
key:
|
|
1056
|
-
parentPath:
|
|
1057
|
-
objects: [,
|
|
1054
|
+
type: x,
|
|
1055
|
+
key: k,
|
|
1056
|
+
parentPath: b,
|
|
1057
|
+
objects: [, I]
|
|
1058
1058
|
} of T) {
|
|
1059
|
-
const
|
|
1059
|
+
const O = Hr(
|
|
1060
1060
|
m.formMeta,
|
|
1061
|
-
|
|
1061
|
+
b
|
|
1062
1062
|
);
|
|
1063
|
-
if (typeof
|
|
1064
|
-
let
|
|
1065
|
-
switch (
|
|
1066
|
-
case
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
[...
|
|
1063
|
+
if (typeof k != "symbol" && O) {
|
|
1064
|
+
let M;
|
|
1065
|
+
switch (x) {
|
|
1066
|
+
case Nn.ADDITION:
|
|
1067
|
+
O.fields[k] = Ks(
|
|
1068
|
+
I[k],
|
|
1069
|
+
[...b, k],
|
|
1070
1070
|
p
|
|
1071
1071
|
);
|
|
1072
1072
|
break;
|
|
1073
|
-
case
|
|
1074
|
-
Array.isArray(
|
|
1073
|
+
case Nn.DELETION:
|
|
1074
|
+
Array.isArray(O.fields) ? O.fields[k] = void 0 : delete O.fields[k];
|
|
1075
1075
|
break;
|
|
1076
|
-
case
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
[...
|
|
1076
|
+
case Nn.ALTERATION:
|
|
1077
|
+
M = Ks(
|
|
1078
|
+
I[k],
|
|
1079
|
+
[...b, k],
|
|
1080
1080
|
p
|
|
1081
|
-
), (
|
|
1081
|
+
), (M instanceof sr && !(O.fields[k] instanceof sr) || !(M instanceof sr) && O.fields[k] instanceof sr) && (O.fields[k] = M);
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
const D = /* @__PURE__ */ new Set();
|
|
1087
|
+
if (T.filter((x) => x.type === Nn.DELETION).reduce((x, k) => (x.has(k.parentPath) || x.add(k.parentPath), x), D), Array.from(D).forEach((x) => {
|
|
1088
|
+
const k = Hr(m.formMeta, x);
|
|
1089
|
+
Array.isArray(k.fields) && (k.fields = k.fields.filter((b) => b !== void 0));
|
|
1090
|
+
}), a.current) {
|
|
1091
|
+
ks(
|
|
1088
1092
|
h,
|
|
1089
1093
|
m.formMeta,
|
|
1090
1094
|
a.current
|
|
1091
1095
|
);
|
|
1092
|
-
const
|
|
1093
|
-
t && Qd(m.formMeta, t, (
|
|
1094
|
-
typeof
|
|
1096
|
+
const x = /* @__PURE__ */ new Set();
|
|
1097
|
+
t && Qd(m.formMeta, t, (k, b) => {
|
|
1098
|
+
typeof b == "function" && (k.validate(Vs(h, k.path)), x.add(k));
|
|
1095
1099
|
});
|
|
1096
1100
|
for (const {
|
|
1097
|
-
type:
|
|
1098
|
-
key:
|
|
1099
|
-
parentPath:
|
|
1100
|
-
objects: [,
|
|
1101
|
+
type: k,
|
|
1102
|
+
key: b,
|
|
1103
|
+
parentPath: I,
|
|
1104
|
+
objects: [, O]
|
|
1101
1105
|
} of T)
|
|
1102
|
-
if (typeof
|
|
1103
|
-
let
|
|
1104
|
-
if (
|
|
1105
|
-
for (const
|
|
1106
|
-
|
|
1107
|
-
if (
|
|
1108
|
-
const
|
|
1109
|
-
if (!
|
|
1110
|
-
for (const [
|
|
1111
|
-
|
|
1106
|
+
if (typeof b != "symbol") {
|
|
1107
|
+
let M = m.formMeta, L = h;
|
|
1108
|
+
if (M) {
|
|
1109
|
+
for (const P of I)
|
|
1110
|
+
M = M.fields[P], L = L[P], x.has(M) || M.validate(L, tn.ON_CHANGE);
|
|
1111
|
+
if (k === Nn.ADDITION || k === Nn.ALTERATION) {
|
|
1112
|
+
const P = M.fields[b];
|
|
1113
|
+
if (!x.has(P) && (M.fields[b].validate(O[b], tn.ON_CHANGE), k === Nn.ADDITION && P.fields))
|
|
1114
|
+
for (const [K, _] of Object.entries(P.fields))
|
|
1115
|
+
_.validate(O[b][K], tn.ON_CHANGE);
|
|
1112
1116
|
}
|
|
1113
1117
|
}
|
|
1114
1118
|
}
|
|
@@ -1219,7 +1223,7 @@ function Ka(e, t) {
|
|
|
1219
1223
|
}
|
|
1220
1224
|
return !1;
|
|
1221
1225
|
}
|
|
1222
|
-
function
|
|
1226
|
+
function Ms(e, t, n, r, a, o, l, c) {
|
|
1223
1227
|
return o < e && l > t || o > e && l < t ? 0 : o <= e && c <= n || l >= t && c >= n ? o - e - r : l > t && c < n || o < e && c > n ? l - t + a : 0;
|
|
1224
1228
|
}
|
|
1225
1229
|
function Jl(e, t) {
|
|
@@ -1235,21 +1239,21 @@ function Jl(e, t) {
|
|
|
1235
1239
|
}
|
|
1236
1240
|
f != null && f === document.body && Ka(f) && !Ka(document.documentElement) || f != null && Ka(f, c) && m.push(f);
|
|
1237
1241
|
}
|
|
1238
|
-
for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + x / 2 : o === "end" ? b : O,
|
|
1242
|
+
for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + x / 2 : o === "end" ? b : O, P = [], K = 0; K < m.length; K++) {
|
|
1239
1243
|
var _ = m[K], $ = _.getBoundingClientRect(), N = $.height, A = $.width, Q = $.top, q = $.right, W = $.bottom, J = $.left;
|
|
1240
1244
|
if (r === "if-needed" && k >= 0 && O >= 0 && I <= S && b <= h && k >= Q && I <= W && O >= J && b <= q)
|
|
1241
|
-
return
|
|
1245
|
+
return P;
|
|
1242
1246
|
var H = getComputedStyle(_), F = parseInt(H.borderLeftWidth, 10), z = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), te = parseInt(H.borderBottomWidth, 10), X = 0, G = 0, oe = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - F - j : 0, ne = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - z - te : 0;
|
|
1243
1247
|
if (u === _)
|
|
1244
|
-
X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ?
|
|
1248
|
+
X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? Ms(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ? L : o === "center" ? L - h / 2 : o === "end" ? L - h : Ms(y, y + h, h, F, j, y + L, y + L + x, x), X = Math.max(0, X + w), G = Math.max(0, G + y);
|
|
1245
1249
|
else {
|
|
1246
|
-
X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ?
|
|
1250
|
+
X = a === "start" ? M - Q - z : a === "end" ? M - W + te + ne : a === "nearest" ? Ms(Q, W, N, z, te + ne, M, M + D, D) : M - (Q + N / 2) + ne / 2, G = o === "start" ? L - J - F : o === "center" ? L - (J + A / 2) + oe / 2 : o === "end" ? L - q + j + oe : Ms(J, q, A, F, j + oe, L, L + x, x);
|
|
1247
1251
|
var le = _.scrollLeft, ee = _.scrollTop;
|
|
1248
1252
|
M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - N + ne))), L += le - (G = Math.max(0, Math.min(le + G, _.scrollWidth - A + oe)));
|
|
1249
1253
|
}
|
|
1250
|
-
|
|
1254
|
+
P.push({ el: _, top: X, left: G });
|
|
1251
1255
|
}
|
|
1252
|
-
return
|
|
1256
|
+
return P;
|
|
1253
1257
|
}
|
|
1254
1258
|
function ep(e) {
|
|
1255
1259
|
return e === Object(e) && Object.keys(e).length !== 0;
|
|
@@ -1318,7 +1322,7 @@ Object.assign(np, {
|
|
|
1318
1322
|
displayName: "SpsSpinner"
|
|
1319
1323
|
});
|
|
1320
1324
|
const Qb = 60;
|
|
1321
|
-
function
|
|
1325
|
+
function _s(e) {
|
|
1322
1326
|
return typeof e > "u" ? "inherit" : `${e}px`;
|
|
1323
1327
|
}
|
|
1324
1328
|
function rp(e) {
|
|
@@ -1431,17 +1435,17 @@ function ur(e, t, n, {
|
|
|
1431
1435
|
l,
|
|
1432
1436
|
c
|
|
1433
1437
|
), M = {
|
|
1434
|
-
top:
|
|
1435
|
-
right:
|
|
1436
|
-
bottom:
|
|
1437
|
-
left:
|
|
1438
|
+
top: _s(k),
|
|
1439
|
+
right: _s(b),
|
|
1440
|
+
bottom: _s(I),
|
|
1441
|
+
left: _s(O)
|
|
1438
1442
|
};
|
|
1439
1443
|
return c && (M.position = "fixed", M.zIndex = WS.BAR), a && (M.minWidth = `${y.width}px`), o && (M.width = `${y.width}px`), [M, T === r];
|
|
1440
1444
|
}
|
|
1441
1445
|
return [{}, !1];
|
|
1442
1446
|
}
|
|
1443
1447
|
const Ot = VS(null);
|
|
1444
|
-
function
|
|
1448
|
+
function es(e, t = []) {
|
|
1445
1449
|
const n = rn(Ot);
|
|
1446
1450
|
return He(() => (r) => {
|
|
1447
1451
|
const o = n && n.parentElementRef && n.parentElementRef.current || document.body;
|
|
@@ -1519,7 +1523,7 @@ function tv(e, t, n) {
|
|
|
1519
1523
|
e.disabledOptions
|
|
1520
1524
|
]), [r, o];
|
|
1521
1525
|
}
|
|
1522
|
-
class
|
|
1526
|
+
class Bn {
|
|
1523
1527
|
constructor(t, n) {
|
|
1524
1528
|
It(this, "nativeEvent");
|
|
1525
1529
|
It(this, "currentTarget");
|
|
@@ -1595,7 +1599,7 @@ function rv({
|
|
|
1595
1599
|
}, [n]), u = s.useCallback((S) => {
|
|
1596
1600
|
S.nativeEvent.stopImmediatePropagation(), S.stopPropagation();
|
|
1597
1601
|
}, []), m = s.useCallback((S) => {
|
|
1598
|
-
S.nativeEvent.stopImmediatePropagation(), c({ value: "" }), o != null && o.current && (n && n(new
|
|
1602
|
+
S.nativeEvent.stopImmediatePropagation(), c({ value: "" }), o != null && o.current && (n && n(new Bn(o.current)), o.current.focus());
|
|
1599
1603
|
}, [n]), f = (S) => {
|
|
1600
1604
|
!S || [
|
|
1601
1605
|
"Tab",
|
|
@@ -1706,7 +1710,7 @@ function Xl(e, t, n) {
|
|
|
1706
1710
|
}
|
|
1707
1711
|
)) : !1;
|
|
1708
1712
|
}
|
|
1709
|
-
const
|
|
1713
|
+
const ts = s.forwardRef((e, t) => {
|
|
1710
1714
|
const {
|
|
1711
1715
|
captionKey: n,
|
|
1712
1716
|
comparisonKey: r,
|
|
@@ -1731,7 +1735,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1731
1735
|
keepOpen: O,
|
|
1732
1736
|
keyDown: M,
|
|
1733
1737
|
nullOption: L,
|
|
1734
|
-
onOptionListChanged:
|
|
1738
|
+
onOptionListChanged: P,
|
|
1735
1739
|
onOptionSelected: K,
|
|
1736
1740
|
onPositionFlip: _,
|
|
1737
1741
|
onSelfToggle: $,
|
|
@@ -1754,13 +1758,13 @@ const es = s.forwardRef((e, t) => {
|
|
|
1754
1758
|
captionKey: "caption"
|
|
1755
1759
|
}) : null,
|
|
1756
1760
|
[q]
|
|
1757
|
-
), [ne, le] = s.useState(-1), [ee, Te] = s.useState(I), De = t || s.useRef(null), re = s.useRef(null), Ze = s.useRef(null), Ke =
|
|
1761
|
+
), [ne, le] = s.useState(-1), [ee, Te] = s.useState(I), De = t || s.useRef(null), re = s.useRef(null), Ze = s.useRef(null), Ke = es("sps-option-list-portal"), lt = s.useContext(Ot), [St, ct] = A || [be.BOTTOM_LEFT, be.TOP_LEFT], [[ge, Ae], Ye] = s.useState([{}, !1]), de = s.useRef(null), [
|
|
1758
1762
|
Ne,
|
|
1759
1763
|
Me,
|
|
1760
1764
|
Dt
|
|
1761
1765
|
] = rv(
|
|
1762
1766
|
{ ...e, searchInputRef: de }
|
|
1763
|
-
), [we,
|
|
1767
|
+
), [we, cs] = tv(
|
|
1764
1768
|
e,
|
|
1765
1769
|
Me,
|
|
1766
1770
|
Dt
|
|
@@ -1796,7 +1800,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1796
1800
|
}, [ee]), s.useEffect(() => {
|
|
1797
1801
|
le(-1);
|
|
1798
1802
|
}, [Me]);
|
|
1799
|
-
const
|
|
1803
|
+
const Vn = V(
|
|
1800
1804
|
W || "sps-option-list",
|
|
1801
1805
|
"z-stratum-dropdown",
|
|
1802
1806
|
ee && "sps-option-list--open",
|
|
@@ -1858,7 +1862,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1858
1862
|
K,
|
|
1859
1863
|
Ae,
|
|
1860
1864
|
we
|
|
1861
|
-
]),
|
|
1865
|
+
]), ds = s.useCallback((he) => {
|
|
1862
1866
|
const ce = we.findIndex((rt) => {
|
|
1863
1867
|
if (rt.textKey) {
|
|
1864
1868
|
const yn = rt.textKey;
|
|
@@ -1868,7 +1872,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1868
1872
|
});
|
|
1869
1873
|
ce > -1 && le(ce);
|
|
1870
1874
|
}, [we]), nt = s.useCallback((he) => {
|
|
1871
|
-
!he || (av.includes(he.key) ? ya(he) : ov.includes(he.key) && !m &&
|
|
1875
|
+
!he || (av.includes(he.key) ? ya(he) : ov.includes(he.key) && !m && ds(he));
|
|
1872
1876
|
}, [
|
|
1873
1877
|
bt,
|
|
1874
1878
|
Se,
|
|
@@ -1903,7 +1907,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1903
1907
|
const Nr = F ? F / 16 : z, xr = Nr ? { maxHeight: `${Nr}rem` } : {};
|
|
1904
1908
|
return Ke(
|
|
1905
1909
|
/* @__PURE__ */ s.createElement("div", {
|
|
1906
|
-
className:
|
|
1910
|
+
className: Vn,
|
|
1907
1911
|
id: k,
|
|
1908
1912
|
"aria-activedescendant": ne > -1 ? `${k}-option-${ne}` : "",
|
|
1909
1913
|
tabIndex: -1,
|
|
@@ -1952,7 +1956,7 @@ const es = s.forwardRef((e, t) => {
|
|
|
1952
1956
|
"sps-option-list__option-icon",
|
|
1953
1957
|
`sps-icon-${String(he.value.icon)}`
|
|
1954
1958
|
)
|
|
1955
|
-
}), (!he.value || !he.value.icon &&
|
|
1959
|
+
}), (!he.value || !he.value.icon && cs) && /* @__PURE__ */ s.createElement("span", {
|
|
1956
1960
|
className: "sps-option-list__option-icon-spacer"
|
|
1957
1961
|
}), /* @__PURE__ */ s.createElement("span", {
|
|
1958
1962
|
dangerouslySetInnerHTML: {
|
|
@@ -1983,12 +1987,12 @@ const es = s.forwardRef((e, t) => {
|
|
|
1983
1987
|
"sps-option-list__option-icon",
|
|
1984
1988
|
`sps-icon-${String(q.icon)}`
|
|
1985
1989
|
)
|
|
1986
|
-
}), !q.icon &&
|
|
1990
|
+
}), !q.icon && cs && /* @__PURE__ */ s.createElement("span", {
|
|
1987
1991
|
className: "sps-option-list__option-icon-spacer"
|
|
1988
1992
|
}), /* @__PURE__ */ s.createElement("span", null, q.label)))
|
|
1989
1993
|
);
|
|
1990
1994
|
});
|
|
1991
|
-
Object.assign(
|
|
1995
|
+
Object.assign(ts, {
|
|
1992
1996
|
displayName: "SpsOptionList"
|
|
1993
1997
|
});
|
|
1994
1998
|
function LM(e, t, n = []) {
|
|
@@ -2137,13 +2141,13 @@ function Uo({
|
|
|
2137
2141
|
const b = a || r, { wrapperId: I, controlId: O } = wt(c, b), [M, L] = sn({
|
|
2138
2142
|
keyDown: null,
|
|
2139
2143
|
opensUpward: !1
|
|
2140
|
-
}),
|
|
2144
|
+
}), P = s.useRef(null), K = s.useRef(null), _ = s.useRef(null), {
|
|
2141
2145
|
showPopup: $,
|
|
2142
2146
|
doShowPopup: N,
|
|
2143
2147
|
doHidePopup: A
|
|
2144
|
-
} = ca(
|
|
2148
|
+
} = ca(P, _);
|
|
2145
2149
|
function Q(j, te) {
|
|
2146
|
-
b && (b.setValue(j), b.markAsDirty()), o && o(te || new
|
|
2150
|
+
b && (b.setValue(j), b.markAsDirty()), o && o(te || new Bn({ value: j }));
|
|
2147
2151
|
}
|
|
2148
2152
|
function q(j) {
|
|
2149
2153
|
K.current && (K.current.value = "", Q("")), j.stopPropagation();
|
|
@@ -2180,7 +2184,7 @@ function Uo({
|
|
|
2180
2184
|
formControl: r,
|
|
2181
2185
|
formMeta: a,
|
|
2182
2186
|
inputRef: K,
|
|
2183
|
-
ref:
|
|
2187
|
+
ref: P,
|
|
2184
2188
|
focusInputOnClick: !0,
|
|
2185
2189
|
onClick: (j) => j.nativeEvent.stopImmediatePropagation(),
|
|
2186
2190
|
"data-testId": `${x}`
|
|
@@ -2208,10 +2212,10 @@ function Uo({
|
|
|
2208
2212
|
"aria-label": "clear",
|
|
2209
2213
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
2210
2214
|
onClick: (j) => q(j)
|
|
2211
|
-
}))), /* @__PURE__ */ s.createElement(
|
|
2215
|
+
}))), /* @__PURE__ */ s.createElement(ts, {
|
|
2212
2216
|
id: `${I}_options`,
|
|
2213
2217
|
ref: _,
|
|
2214
|
-
attachTo:
|
|
2218
|
+
attachTo: P,
|
|
2215
2219
|
isOpen: $,
|
|
2216
2220
|
options: u,
|
|
2217
2221
|
hideInlineSearch: !0,
|
|
@@ -2410,7 +2414,7 @@ function br(e) {
|
|
|
2410
2414
|
maxHeightOptionListRem: k,
|
|
2411
2415
|
disableOptionsMemoization: b,
|
|
2412
2416
|
...I
|
|
2413
|
-
} = e, { t: O } = s.useContext(Be), M = Sr(l), [L,
|
|
2417
|
+
} = e, { t: O } = s.useContext(Be), M = Sr(l), [L, P] = s.useState(!1), [K, _] = s.useState(!1), [$, N] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
|
|
2414
2418
|
...Kd,
|
|
2415
2419
|
...ee[0]
|
|
2416
2420
|
})), Q = `${M.current}-button`, q = `${M.current}-menu`;
|
|
@@ -2421,16 +2425,16 @@ function br(e) {
|
|
|
2421
2425
|
L && w ? w() : !L && T && T();
|
|
2422
2426
|
}, [L]);
|
|
2423
2427
|
function F() {
|
|
2424
|
-
|
|
2428
|
+
P(!1);
|
|
2425
2429
|
}
|
|
2426
2430
|
function z(ee) {
|
|
2427
|
-
ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f &&
|
|
2431
|
+
ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && P(!L);
|
|
2428
2432
|
}
|
|
2429
2433
|
function j(ee) {
|
|
2430
|
-
|
|
2434
|
+
P(ee);
|
|
2431
2435
|
}
|
|
2432
2436
|
function te() {
|
|
2433
|
-
|
|
2437
|
+
P(!1);
|
|
2434
2438
|
}
|
|
2435
2439
|
function X(ee) {
|
|
2436
2440
|
a || ([
|
|
@@ -2441,7 +2445,7 @@ function br(e) {
|
|
|
2441
2445
|
].indexOf(ee.key) > -1 && ee.preventDefault(), ee.persist(), N(ee));
|
|
2442
2446
|
}
|
|
2443
2447
|
function G(ee) {
|
|
2444
|
-
ee.detail !== M.current &&
|
|
2448
|
+
ee.detail !== M.current && P(!1);
|
|
2445
2449
|
}
|
|
2446
2450
|
s.useEffect(() => (document.addEventListener("click", F), document.addEventListener("DropdownOpened", G), () => {
|
|
2447
2451
|
document.removeEventListener("click", F), document.removeEventListener("DropdownOpened", G);
|
|
@@ -2470,7 +2474,7 @@ function br(e) {
|
|
|
2470
2474
|
id: M.current,
|
|
2471
2475
|
className: oe,
|
|
2472
2476
|
onKeyDown: X
|
|
2473
|
-
}, /* @__PURE__ */ s.createElement(
|
|
2477
|
+
}, /* @__PURE__ */ s.createElement(ts, {
|
|
2474
2478
|
positionOverride: le,
|
|
2475
2479
|
isOpen: L,
|
|
2476
2480
|
"aria-labelledby": Q,
|
|
@@ -3629,7 +3633,7 @@ function Dv(e) {
|
|
|
3629
3633
|
function Nv(e) {
|
|
3630
3634
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
3631
3635
|
}
|
|
3632
|
-
function
|
|
3636
|
+
function kn(e) {
|
|
3633
3637
|
var t = typeof e;
|
|
3634
3638
|
return process.env.NODE_ENV !== "production" && (t = wv(e)), t;
|
|
3635
3639
|
}
|
|
@@ -3639,11 +3643,11 @@ function lp(e, t, n) {
|
|
|
3639
3643
|
throw new Error(process.env.NODE_ENV === "production" ? pt(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
3640
3644
|
if (typeof t == "function" && typeof n > "u" && (n = t, t = void 0), typeof n < "u") {
|
|
3641
3645
|
if (typeof n != "function")
|
|
3642
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(1) : "Expected the enhancer to be a function. Instead, received: '" +
|
|
3646
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(1) : "Expected the enhancer to be a function. Instead, received: '" + kn(n) + "'");
|
|
3643
3647
|
return n(lp)(e, t);
|
|
3644
3648
|
}
|
|
3645
3649
|
if (typeof e != "function")
|
|
3646
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(2) : "Expected the root reducer to be a function. Instead, received: '" +
|
|
3650
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(2) : "Expected the root reducer to be a function. Instead, received: '" + kn(e) + "'");
|
|
3647
3651
|
var a = e, o = t, l = [], c = l, p = !1;
|
|
3648
3652
|
function u() {
|
|
3649
3653
|
c === l && (c = l.slice());
|
|
@@ -3655,7 +3659,7 @@ function lp(e, t, n) {
|
|
|
3655
3659
|
}
|
|
3656
3660
|
function f(w) {
|
|
3657
3661
|
if (typeof w != "function")
|
|
3658
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(4) : "Expected the listener to be a function. Instead, received: '" +
|
|
3662
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(4) : "Expected the listener to be a function. Instead, received: '" + kn(w) + "'");
|
|
3659
3663
|
if (p)
|
|
3660
3664
|
throw new Error(process.env.NODE_ENV === "production" ? pt(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
3661
3665
|
var T = !0;
|
|
@@ -3671,7 +3675,7 @@ function lp(e, t, n) {
|
|
|
3671
3675
|
}
|
|
3672
3676
|
function h(w) {
|
|
3673
3677
|
if (!Tv(w))
|
|
3674
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(7) : "Actions must be plain objects. Instead, the actual type was: '" +
|
|
3678
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(7) : "Actions must be plain objects. Instead, the actual type was: '" + kn(w) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
3675
3679
|
if (typeof w.type > "u")
|
|
3676
3680
|
throw new Error(process.env.NODE_ENV === "production" ? pt(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
3677
3681
|
if (p)
|
|
@@ -3689,7 +3693,7 @@ function lp(e, t, n) {
|
|
|
3689
3693
|
}
|
|
3690
3694
|
function S(w) {
|
|
3691
3695
|
if (typeof w != "function")
|
|
3692
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(10) : "Expected the nextReducer to be a function. Instead, received: '" +
|
|
3696
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(10) : "Expected the nextReducer to be a function. Instead, received: '" + kn(w));
|
|
3693
3697
|
a = w, h({
|
|
3694
3698
|
type: nc.REPLACE
|
|
3695
3699
|
});
|
|
@@ -3699,7 +3703,7 @@ function lp(e, t, n) {
|
|
|
3699
3703
|
return w = {
|
|
3700
3704
|
subscribe: function(x) {
|
|
3701
3705
|
if (typeof x != "object" || x === null)
|
|
3702
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(11) : "Expected the observer to be an object. Instead, received: '" +
|
|
3706
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(11) : "Expected the observer to be an object. Instead, received: '" + kn(x) + "'");
|
|
3703
3707
|
function k() {
|
|
3704
3708
|
x.next && x.next(m());
|
|
3705
3709
|
}
|
|
@@ -3738,7 +3742,7 @@ function sc(e, t) {
|
|
|
3738
3742
|
if (typeof e == "function")
|
|
3739
3743
|
return rc(e, t);
|
|
3740
3744
|
if (typeof e != "object" || e === null)
|
|
3741
|
-
throw new Error(process.env.NODE_ENV === "production" ? pt(16) : "bindActionCreators expected an object or a function, but instead received: '" +
|
|
3745
|
+
throw new Error(process.env.NODE_ENV === "production" ? pt(16) : "bindActionCreators expected an object or a function, but instead received: '" + kn(e) + `'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
|
|
3742
3746
|
var n = {};
|
|
3743
3747
|
for (var r in e) {
|
|
3744
3748
|
var a = e[r];
|
|
@@ -3905,7 +3909,7 @@ function Mv() {
|
|
|
3905
3909
|
}
|
|
3906
3910
|
}
|
|
3907
3911
|
}
|
|
3908
|
-
var I = p, O = u, M = c, L = l,
|
|
3912
|
+
var I = p, O = u, M = c, L = l, P = t, K = m, _ = r, $ = y, N = S, A = n, Q = o, q = a, W = f, J = !1;
|
|
3909
3913
|
function H(re) {
|
|
3910
3914
|
return J || (J = !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.")), F(re) || b(re) === p;
|
|
3911
3915
|
}
|
|
@@ -3945,7 +3949,7 @@ function Mv() {
|
|
|
3945
3949
|
function De(re) {
|
|
3946
3950
|
return b(re) === f;
|
|
3947
3951
|
}
|
|
3948
|
-
ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element =
|
|
3952
|
+
ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element = P, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = N, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
|
|
3949
3953
|
}()), ke;
|
|
3950
3954
|
}
|
|
3951
3955
|
(function(e) {
|
|
@@ -4102,7 +4106,7 @@ function Ov() {
|
|
|
4102
4106
|
node: K(),
|
|
4103
4107
|
objectOf: L,
|
|
4104
4108
|
oneOf: M,
|
|
4105
|
-
oneOfType:
|
|
4109
|
+
oneOfType: P,
|
|
4106
4110
|
shape: _,
|
|
4107
4111
|
exact: $
|
|
4108
4112
|
};
|
|
@@ -4233,7 +4237,7 @@ function Ov() {
|
|
|
4233
4237
|
}
|
|
4234
4238
|
return T(F);
|
|
4235
4239
|
}
|
|
4236
|
-
function
|
|
4240
|
+
function P(H) {
|
|
4237
4241
|
if (!Array.isArray(H))
|
|
4238
4242
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
4239
4243
|
for (var F = 0; F < H.length; F++) {
|
|
@@ -4667,13 +4671,13 @@ function ry(e, t) {
|
|
|
4667
4671
|
return function(M) {
|
|
4668
4672
|
if (process.env.NODE_ENV !== "production" && !mr.exports.isValidElementType(M))
|
|
4669
4673
|
throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + Xv(M)));
|
|
4670
|
-
var L = M.displayName || M.name || "Component",
|
|
4674
|
+
var L = M.displayName || M.name || "Component", P = a(L), K = ue({}, k, {
|
|
4671
4675
|
getDisplayName: a,
|
|
4672
4676
|
methodName: l,
|
|
4673
4677
|
renderCountProp: p,
|
|
4674
4678
|
shouldHandleStateChanges: m,
|
|
4675
4679
|
storeKey: h,
|
|
4676
|
-
displayName:
|
|
4680
|
+
displayName: P,
|
|
4677
4681
|
wrappedComponentName: L,
|
|
4678
4682
|
WrappedComponent: M
|
|
4679
4683
|
}), _ = k.pure;
|
|
@@ -4691,7 +4695,7 @@ function ry(e, t) {
|
|
|
4691
4695
|
return H && H.Consumer && mr.exports.isContextConsumer(/* @__PURE__ */ Y.createElement(H.Consumer, null)) ? H : I;
|
|
4692
4696
|
}, [H, I]), te = rn(j), X = Boolean(W.store) && Boolean(W.store.getState) && Boolean(W.store.dispatch), G = Boolean(te) && Boolean(te.store);
|
|
4693
4697
|
if (process.env.NODE_ENV !== "production" && !X && !G)
|
|
4694
|
-
throw new Error('Could not find "store" in the context of ' + ('"' +
|
|
4698
|
+
throw new Error('Could not find "store" in the context of ' + ('"' + P + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + P + " in connect options."));
|
|
4695
4699
|
var oe = X ? W.store : te.store, ne = He(function() {
|
|
4696
4700
|
return $(oe);
|
|
4697
4701
|
}, [oe]), le = He(function() {
|
|
@@ -4722,13 +4726,13 @@ function ry(e, t) {
|
|
|
4722
4726
|
return Ne;
|
|
4723
4727
|
}
|
|
4724
4728
|
var Q = _ ? Y.memo(A) : A;
|
|
4725
|
-
if (Q.WrappedComponent = M, Q.displayName = A.displayName =
|
|
4729
|
+
if (Q.WrappedComponent = M, Q.displayName = A.displayName = P, T) {
|
|
4726
4730
|
var q = Y.forwardRef(function(J, H) {
|
|
4727
4731
|
return /* @__PURE__ */ Y.createElement(Q, ue({}, J, {
|
|
4728
4732
|
reactReduxForwardedRef: H
|
|
4729
4733
|
}));
|
|
4730
4734
|
});
|
|
4731
|
-
return q.displayName =
|
|
4735
|
+
return q.displayName = P, q.WrappedComponent = M, Sc(q, M);
|
|
4732
4736
|
}
|
|
4733
4737
|
return Sc(Q, M);
|
|
4734
4738
|
};
|
|
@@ -4912,7 +4916,7 @@ function Dy(e) {
|
|
|
4912
4916
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? ry : n, a = t.mapStateToPropsFactories, o = a === void 0 ? uy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? cy : l, p = t.mergePropsFactories, u = p === void 0 ? Sy : p, m = t.selectorFactory, f = m === void 0 ? Ty : m;
|
|
4913
4917
|
return function(S, y, w, T) {
|
|
4914
4918
|
T === void 0 && (T = {});
|
|
4915
|
-
var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual,
|
|
4919
|
+
var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual, P = L === void 0 ? za : L, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), N = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
|
|
4916
4920
|
return r(f, ue({
|
|
4917
4921
|
methodName: "connect",
|
|
4918
4922
|
getDisplayName: function(W) {
|
|
@@ -4925,7 +4929,7 @@ function Dy(e) {
|
|
|
4925
4929
|
pure: k,
|
|
4926
4930
|
areStatesEqual: I,
|
|
4927
4931
|
areOwnPropsEqual: M,
|
|
4928
|
-
areStatePropsEqual:
|
|
4932
|
+
areStatePropsEqual: P,
|
|
4929
4933
|
areMergedPropsEqual: _
|
|
4930
4934
|
}, $));
|
|
4931
4935
|
};
|
|
@@ -5100,7 +5104,7 @@ var Oy = function(t) {
|
|
|
5100
5104
|
!r || (cancelAnimationFrame(r), r = null);
|
|
5101
5105
|
}, a;
|
|
5102
5106
|
};
|
|
5103
|
-
const
|
|
5107
|
+
const Yr = Oy;
|
|
5104
5108
|
var Ry = process.env.NODE_ENV === "production", Py = /[ \t]{2,}/g, By = /^[ \t]*/gm, Dc = function(t) {
|
|
5105
5109
|
return t.replace(Py, " ").replace(By, "").trim();
|
|
5106
5110
|
}, Ay = function(t) {
|
|
@@ -5138,15 +5142,15 @@ function yt(e, t, n) {
|
|
|
5138
5142
|
};
|
|
5139
5143
|
}
|
|
5140
5144
|
var Ky = process.env.NODE_ENV === "production", Nc = "Invariant failed";
|
|
5141
|
-
function
|
|
5145
|
+
function jr(e) {
|
|
5142
5146
|
this.message = e;
|
|
5143
5147
|
}
|
|
5144
|
-
|
|
5148
|
+
jr.prototype.toString = function() {
|
|
5145
5149
|
return this.message;
|
|
5146
5150
|
};
|
|
5147
5151
|
function B(e, t) {
|
|
5148
5152
|
if (!e)
|
|
5149
|
-
throw Ky ? new
|
|
5153
|
+
throw Ky ? new jr(Nc) : new jr(Nc + ": " + (t || ""));
|
|
5150
5154
|
}
|
|
5151
5155
|
var Hy = function(e) {
|
|
5152
5156
|
ip(t, e);
|
|
@@ -5160,7 +5164,7 @@ var Hy = function(e) {
|
|
|
5160
5164
|
The active drag has been aborted.
|
|
5161
5165
|
`));
|
|
5162
5166
|
var u = c.error;
|
|
5163
|
-
u instanceof
|
|
5167
|
+
u instanceof jr && (c.preventDefault(), process.env.NODE_ENV !== "production" && Co(u.message));
|
|
5164
5168
|
}, r.getCallbacks = function() {
|
|
5165
5169
|
if (!r.callbacks)
|
|
5166
5170
|
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
|
|
@@ -5176,7 +5180,7 @@ var Hy = function(e) {
|
|
|
5176
5180
|
fn: this.onWindowError
|
|
5177
5181
|
}]);
|
|
5178
5182
|
}, n.componentDidCatch = function(a) {
|
|
5179
|
-
if (a instanceof
|
|
5183
|
+
if (a instanceof jr) {
|
|
5180
5184
|
process.env.NODE_ENV !== "production" && Co(a.message), this.setState({});
|
|
5181
5185
|
return;
|
|
5182
5186
|
}
|
|
@@ -5270,14 +5274,14 @@ var Hy = function(e) {
|
|
|
5270
5274
|
x: t.x !== 0 ? -t.x : 0,
|
|
5271
5275
|
y: t.y !== 0 ? -t.y : 0
|
|
5272
5276
|
};
|
|
5273
|
-
},
|
|
5277
|
+
}, Ln = function(t, n, r) {
|
|
5274
5278
|
var a;
|
|
5275
5279
|
return r === void 0 && (r = 0), a = {}, a[t] = n, a[t === "x" ? "y" : "x"] = r, a;
|
|
5276
|
-
},
|
|
5280
|
+
}, zr = function(t, n) {
|
|
5277
5281
|
return Math.sqrt(Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2));
|
|
5278
5282
|
}, Ic = function(t, n) {
|
|
5279
5283
|
return Math.min.apply(Math, n.map(function(r) {
|
|
5280
|
-
return
|
|
5284
|
+
return zr(t, r);
|
|
5281
5285
|
}));
|
|
5282
5286
|
}, Np = function(t) {
|
|
5283
5287
|
return function(n) {
|
|
@@ -5294,7 +5298,7 @@ var Hy = function(e) {
|
|
|
5294
5298
|
left: Math.max(t.left, e.left)
|
|
5295
5299
|
});
|
|
5296
5300
|
return n.width <= 0 || n.height <= 0 ? null : n;
|
|
5297
|
-
},
|
|
5301
|
+
}, ns = function(t, n) {
|
|
5298
5302
|
return {
|
|
5299
5303
|
top: t.top + n.y,
|
|
5300
5304
|
left: t.left + n.x,
|
|
@@ -5321,7 +5325,7 @@ var Hy = function(e) {
|
|
|
5321
5325
|
bottom: 0,
|
|
5322
5326
|
left: 0
|
|
5323
5327
|
}, qy = function(t, n) {
|
|
5324
|
-
return n ?
|
|
5328
|
+
return n ? ns(t, n.scroll.diff.displacement) : t;
|
|
5325
5329
|
}, Jy = function(t, n, r) {
|
|
5326
5330
|
if (r && r.increasedBy) {
|
|
5327
5331
|
var a;
|
|
@@ -5398,7 +5402,7 @@ var Ip = qe(function(e) {
|
|
|
5398
5402
|
return Zs(e);
|
|
5399
5403
|
}), Qy = qe(function(e) {
|
|
5400
5404
|
return Zs(e);
|
|
5401
|
-
}),
|
|
5405
|
+
}), An = qe(function(e, t) {
|
|
5402
5406
|
var n = Qy(t).filter(function(r) {
|
|
5403
5407
|
return e === r.descriptor.droppableId;
|
|
5404
5408
|
}).sort(function(r, a) {
|
|
@@ -5459,12 +5463,12 @@ var ma = qe(function(e, t) {
|
|
|
5459
5463
|
}, Mp = {
|
|
5460
5464
|
point: Je,
|
|
5461
5465
|
value: 0
|
|
5462
|
-
},
|
|
5466
|
+
}, qr = {
|
|
5463
5467
|
invisible: {},
|
|
5464
5468
|
visible: {},
|
|
5465
5469
|
all: []
|
|
5466
5470
|
}, tE = {
|
|
5467
|
-
displaced:
|
|
5471
|
+
displaced: qr,
|
|
5468
5472
|
displacedBy: Mp,
|
|
5469
5473
|
at: null
|
|
5470
5474
|
}, Tt = function(e, t) {
|
|
@@ -5521,7 +5525,7 @@ var ma = qe(function(e, t) {
|
|
|
5521
5525
|
};
|
|
5522
5526
|
}, sE = function(t, n) {
|
|
5523
5527
|
var r = n.frame ? n.frame.scroll.diff.displacement : Je;
|
|
5524
|
-
return
|
|
5528
|
+
return ns(t, r);
|
|
5525
5529
|
}, aE = function(t, n, r) {
|
|
5526
5530
|
return n.subject.active ? r(n.subject.active)(t) : !1;
|
|
5527
5531
|
}, oE = function(t, n, r) {
|
|
@@ -5561,7 +5565,7 @@ function dE(e, t) {
|
|
|
5561
5565
|
};
|
|
5562
5566
|
return _t(Zo(n, r));
|
|
5563
5567
|
}
|
|
5564
|
-
function
|
|
5568
|
+
function Jr(e) {
|
|
5565
5569
|
var t = e.afterDragging, n = e.destination, r = e.displacedBy, a = e.viewport, o = e.forceShouldAnimate, l = e.last;
|
|
5566
5570
|
return t.reduce(function(p, u) {
|
|
5567
5571
|
var m = dE(u, r), f = u.descriptor.id;
|
|
@@ -5596,7 +5600,7 @@ function Mc(e) {
|
|
|
5596
5600
|
inHomeList: n
|
|
5597
5601
|
});
|
|
5598
5602
|
return {
|
|
5599
|
-
displaced:
|
|
5603
|
+
displaced: qr,
|
|
5600
5604
|
displacedBy: r,
|
|
5601
5605
|
at: {
|
|
5602
5606
|
type: "REORDER",
|
|
@@ -5626,7 +5630,7 @@ function Xs(e) {
|
|
|
5626
5630
|
displacedBy: o,
|
|
5627
5631
|
destination: r
|
|
5628
5632
|
});
|
|
5629
|
-
var f = ma(t, n), h = n.indexOf(m), S = f.slice(h), y =
|
|
5633
|
+
var f = ma(t, n), h = n.indexOf(m), S = f.slice(h), y = Jr({
|
|
5630
5634
|
afterDragging: S,
|
|
5631
5635
|
destination: r,
|
|
5632
5636
|
displacedBy: o,
|
|
@@ -5718,15 +5722,15 @@ var uE = function(e) {
|
|
|
5718
5722
|
return n[t.crossAxisStart] + r.margin[t.crossAxisStart] + r.borderBox[t.crossAxisSize] / 2;
|
|
5719
5723
|
}, _c = function(t) {
|
|
5720
5724
|
var n = t.axis, r = t.moveRelativeTo, a = t.isMoving;
|
|
5721
|
-
return
|
|
5725
|
+
return Ln(n.line, r.marginBox[n.end] + Rp(n, a), si(n, r.marginBox, a));
|
|
5722
5726
|
}, Lc = function(t) {
|
|
5723
5727
|
var n = t.axis, r = t.moveRelativeTo, a = t.isMoving;
|
|
5724
|
-
return
|
|
5728
|
+
return Ln(n.line, r.marginBox[n.start] - SE(n, a), si(n, r.marginBox, a));
|
|
5725
5729
|
}, bE = function(t) {
|
|
5726
5730
|
var n = t.axis, r = t.moveInto, a = t.isMoving;
|
|
5727
|
-
return
|
|
5731
|
+
return Ln(n.line, r.contentBox[n.start] + Rp(n, a), si(n, r.contentBox, a));
|
|
5728
5732
|
}, vE = function(e) {
|
|
5729
|
-
var t = e.impact, n = e.draggable, r = e.draggables, a = e.droppable, o = e.afterCritical, l =
|
|
5733
|
+
var t = e.impact, n = e.draggable, r = e.draggables, a = e.droppable, o = e.afterCritical, l = An(a.descriptor.id, r), c = n.page, p = a.axis;
|
|
5730
5734
|
if (!l.length)
|
|
5731
5735
|
return bE({
|
|
5732
5736
|
axis: p,
|
|
@@ -5818,14 +5822,14 @@ function EE(e, t) {
|
|
|
5818
5822
|
return null;
|
|
5819
5823
|
}
|
|
5820
5824
|
var TE = function(e) {
|
|
5821
|
-
var t = e.impact, n = e.viewport, r = e.destination, a = e.draggables, o = e.maxScrollChange, l = Pp(n, Xe(n.scroll.current, o)), c = r.frame ? Qo(r, Xe(r.frame.scroll.current, o)) : r, p = t.displaced, u =
|
|
5825
|
+
var t = e.impact, n = e.viewport, r = e.destination, a = e.draggables, o = e.maxScrollChange, l = Pp(n, Xe(n.scroll.current, o)), c = r.frame ? Qo(r, Xe(r.frame.scroll.current, o)) : r, p = t.displaced, u = Jr({
|
|
5822
5826
|
afterDragging: Oc(p.all, a),
|
|
5823
5827
|
destination: r,
|
|
5824
5828
|
displacedBy: t.displacedBy,
|
|
5825
5829
|
viewport: l.frame,
|
|
5826
5830
|
last: p,
|
|
5827
5831
|
forceShouldAnimate: !1
|
|
5828
|
-
}), m =
|
|
5832
|
+
}), m = Jr({
|
|
5829
5833
|
afterDragging: Oc(p.all, a),
|
|
5830
5834
|
destination: c,
|
|
5831
5835
|
displacedBy: t.displacedBy,
|
|
@@ -5855,7 +5859,7 @@ var TE = function(e) {
|
|
|
5855
5859
|
var t = e.pageBorderBoxCenter, n = e.draggable, r = e.viewport, a = wE(r, t), o = ft(a, n.page.borderBox.center);
|
|
5856
5860
|
return Xe(n.client.borderBox.center, o);
|
|
5857
5861
|
}, Bp = function(e) {
|
|
5858
|
-
var t = e.draggable, n = e.destination, r = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, l = e.onlyOnMainAxis, c = l === void 0 ? !1 : l, p = ft(r, t.page.borderBox.center), u =
|
|
5862
|
+
var t = e.draggable, n = e.destination, r = e.newPageBorderBoxCenter, a = e.viewport, o = e.withDroppableDisplacement, l = e.onlyOnMainAxis, c = l === void 0 ? !1 : l, p = ft(r, t.page.borderBox.center), u = ns(t.page.borderBox, p), m = {
|
|
5859
5863
|
target: u,
|
|
5860
5864
|
destination: n,
|
|
5861
5865
|
withDroppableDisplacement: o,
|
|
@@ -5866,7 +5870,7 @@ var TE = function(e) {
|
|
|
5866
5870
|
var t = e.isMovingForward, n = e.draggable, r = e.destination, a = e.draggables, o = e.previousImpact, l = e.viewport, c = e.previousPageBorderBoxCenter, p = e.previousClientSelection, u = e.afterCritical;
|
|
5867
5871
|
if (!r.isEnabled)
|
|
5868
5872
|
return null;
|
|
5869
|
-
var m =
|
|
5873
|
+
var m = An(r.descriptor.id, a), f = Er(n, r), h = eE({
|
|
5870
5874
|
isMovingForward: t,
|
|
5871
5875
|
draggable: n,
|
|
5872
5876
|
destination: r,
|
|
@@ -5969,7 +5973,7 @@ var TE = function(e) {
|
|
|
5969
5973
|
return gn(t.descriptor.id, n) ? ft(r, n.displacedBy.point) : r;
|
|
5970
5974
|
}, NE = function(t, n) {
|
|
5971
5975
|
var r = t.page.borderBox;
|
|
5972
|
-
return gn(t.descriptor.id, n) ?
|
|
5976
|
+
return gn(t.descriptor.id, n) ? ns(r, yr(n.displacedBy.point)) : r;
|
|
5973
5977
|
}, xE = function(e) {
|
|
5974
5978
|
var t = e.pageBorderBoxCenter, n = e.viewport, r = e.destination, a = e.insideDestination, o = e.afterCritical, l = a.filter(function(c) {
|
|
5975
5979
|
return Op({
|
|
@@ -5979,24 +5983,24 @@ var TE = function(e) {
|
|
|
5979
5983
|
withDroppableDisplacement: !0
|
|
5980
5984
|
});
|
|
5981
5985
|
}).sort(function(c, p) {
|
|
5982
|
-
var u =
|
|
5986
|
+
var u = zr(t, Do(r, Rc(c, o))), m = zr(t, Do(r, Rc(p, o)));
|
|
5983
5987
|
return u < m ? -1 : m < u ? 1 : c.descriptor.index - p.descriptor.index;
|
|
5984
5988
|
});
|
|
5985
5989
|
return l[0] || null;
|
|
5986
|
-
},
|
|
5990
|
+
}, rs = qe(function(t, n) {
|
|
5987
5991
|
var r = n[t.line];
|
|
5988
5992
|
return {
|
|
5989
5993
|
value: r,
|
|
5990
|
-
point:
|
|
5994
|
+
point: Ln(t.line, r)
|
|
5991
5995
|
};
|
|
5992
5996
|
}), IE = function(t, n, r) {
|
|
5993
5997
|
var a = t.axis;
|
|
5994
5998
|
if (t.descriptor.mode === "virtual")
|
|
5995
|
-
return
|
|
5996
|
-
var o = t.subject.page.contentBox[a.size], l =
|
|
5999
|
+
return Ln(a.line, n[a.line]);
|
|
6000
|
+
var o = t.subject.page.contentBox[a.size], l = An(t.descriptor.id, r), c = l.reduce(function(m, f) {
|
|
5997
6001
|
return m + f.client.marginBox[a.size];
|
|
5998
6002
|
}, 0), p = c + n[a.line], u = p - o;
|
|
5999
|
-
return u <= 0 ? null :
|
|
6003
|
+
return u <= 0 ? null : Ln(a.line, u);
|
|
6000
6004
|
}, Ap = function(t, n) {
|
|
6001
6005
|
return ue({}, t, {
|
|
6002
6006
|
scroll: ue({}, t.scroll, {
|
|
@@ -6006,7 +6010,7 @@ var TE = function(e) {
|
|
|
6006
6010
|
}, Fp = function(t, n, r) {
|
|
6007
6011
|
var a = t.frame;
|
|
6008
6012
|
Er(n, t) && (process.env.NODE_ENV !== "production" ? B(!1, "Should not add placeholder space to home list") : B(!1)), t.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot add placeholder size to a subject when it already has one") : B(!1));
|
|
6009
|
-
var o =
|
|
6013
|
+
var o = rs(t.axis, n.displaceBy).point, l = IE(t, o, r), c = {
|
|
6010
6014
|
placeholderSize: o,
|
|
6011
6015
|
increasedBy: l,
|
|
6012
6016
|
oldFrameMaxScroll: t.frame ? t.frame.scroll.max : null
|
|
@@ -6065,7 +6069,7 @@ var TE = function(e) {
|
|
|
6065
6069
|
if (r.length)
|
|
6066
6070
|
return null;
|
|
6067
6071
|
var u = {
|
|
6068
|
-
displaced:
|
|
6072
|
+
displaced: qr,
|
|
6069
6073
|
displacedBy: Mp,
|
|
6070
6074
|
at: {
|
|
6071
6075
|
type: "REORDER",
|
|
@@ -6093,14 +6097,14 @@ var TE = function(e) {
|
|
|
6093
6097
|
var S = Boolean(t[l.axis.line] <= n.page.borderBox.center[l.axis.line]), y = function() {
|
|
6094
6098
|
var T = n.descriptor.index;
|
|
6095
6099
|
return n.descriptor.id === a.descriptor.id || S ? T : T + 1;
|
|
6096
|
-
}(), w =
|
|
6100
|
+
}(), w = rs(l.axis, a.displaceBy);
|
|
6097
6101
|
return Xs({
|
|
6098
6102
|
draggable: a,
|
|
6099
6103
|
insideDestination: r,
|
|
6100
6104
|
destination: l,
|
|
6101
6105
|
viewport: c,
|
|
6102
6106
|
displacedBy: w,
|
|
6103
|
-
last:
|
|
6107
|
+
last: qr,
|
|
6104
6108
|
index: y
|
|
6105
6109
|
});
|
|
6106
6110
|
}, _E = function(e) {
|
|
@@ -6113,7 +6117,7 @@ var TE = function(e) {
|
|
|
6113
6117
|
});
|
|
6114
6118
|
if (!u)
|
|
6115
6119
|
return null;
|
|
6116
|
-
var m =
|
|
6120
|
+
var m = An(u.descriptor.id, o), f = xE({
|
|
6117
6121
|
pageBorderBoxCenter: n,
|
|
6118
6122
|
viewport: c,
|
|
6119
6123
|
destination: u,
|
|
@@ -6179,7 +6183,7 @@ var TE = function(e) {
|
|
|
6179
6183
|
afterCritical: t.afterCritical
|
|
6180
6184
|
});
|
|
6181
6185
|
};
|
|
6182
|
-
function
|
|
6186
|
+
function Mn(e) {
|
|
6183
6187
|
return e.phase === "DRAGGING" || e.phase === "COLLECTING";
|
|
6184
6188
|
}
|
|
6185
6189
|
function $p(e) {
|
|
@@ -6193,10 +6197,10 @@ function RE(e, t) {
|
|
|
6193
6197
|
}
|
|
6194
6198
|
function PE(e) {
|
|
6195
6199
|
var t = e.pageBorderBox, n = e.draggable, r = e.candidates, a = n.page.borderBox.center, o = r.map(function(l) {
|
|
6196
|
-
var c = l.axis, p =
|
|
6200
|
+
var c = l.axis, p = Ln(l.axis.line, t.center[c.line], l.page.borderBox.center[c.crossAxisLine]);
|
|
6197
6201
|
return {
|
|
6198
6202
|
id: l.descriptor.id,
|
|
6199
|
-
distance:
|
|
6203
|
+
distance: zr(a, p)
|
|
6200
6204
|
};
|
|
6201
6205
|
}).sort(function(l, c) {
|
|
6202
6206
|
return c.distance - l.distance;
|
|
@@ -6222,7 +6226,7 @@ function BE(e) {
|
|
|
6222
6226
|
}) : null;
|
|
6223
6227
|
}
|
|
6224
6228
|
var Vp = function(t, n) {
|
|
6225
|
-
return _t(
|
|
6229
|
+
return _t(ns(t, n));
|
|
6226
6230
|
}, AE = function(e, t) {
|
|
6227
6231
|
var n = e.frame;
|
|
6228
6232
|
return n ? Vp(t, n.scroll.diff.value) : t;
|
|
@@ -6236,7 +6240,7 @@ function FE(e) {
|
|
|
6236
6240
|
return n ? r && n.descriptor.index > t.descriptor.index ? n.descriptor.index - 1 : n.descriptor.index : null;
|
|
6237
6241
|
}
|
|
6238
6242
|
var $E = function(e) {
|
|
6239
|
-
var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, a = e.insideDestination, o = e.last, l = e.viewport, c = e.afterCritical, p = r.axis, u =
|
|
6243
|
+
var t = e.pageBorderBoxWithDroppableScroll, n = e.draggable, r = e.destination, a = e.insideDestination, o = e.last, l = e.viewport, c = e.afterCritical, p = r.axis, u = rs(r.axis, n.displaceBy), m = u.value, f = t[p.start], h = t[p.end], S = ma(n, a), y = vn(S, function(T) {
|
|
6240
6244
|
var D = T.descriptor.id, x = T.page.borderBox.center[p.line], k = gn(D, c), b = Kp({
|
|
6241
6245
|
displaced: o,
|
|
6242
6246
|
id: D
|
|
@@ -6260,7 +6264,7 @@ var $E = function(e) {
|
|
|
6260
6264
|
var t = e.draggable, n = e.pageBorderBoxWithDroppableScroll, r = e.previousImpact, a = e.destination, o = e.insideDestination, l = e.afterCritical;
|
|
6261
6265
|
if (!a.isCombineEnabled)
|
|
6262
6266
|
return null;
|
|
6263
|
-
var c = a.axis, p =
|
|
6267
|
+
var c = a.axis, p = rs(a.axis, t.displaceBy), u = p.value, m = n[c.start], f = n[c.end], h = ma(t, o), S = vn(h, function(w) {
|
|
6264
6268
|
var T = w.descriptor.id, D = w.page.borderBox, x = D[c.size], k = x / VE, b = gn(T, l), I = Kp({
|
|
6265
6269
|
displaced: r.displaced,
|
|
6266
6270
|
id: T
|
|
@@ -6289,7 +6293,7 @@ var $E = function(e) {
|
|
|
6289
6293
|
});
|
|
6290
6294
|
if (!u)
|
|
6291
6295
|
return tE;
|
|
6292
|
-
var m = a[u], f =
|
|
6296
|
+
var m = a[u], f = An(m.descriptor.id, r), h = AE(m, p);
|
|
6293
6297
|
return KE({
|
|
6294
6298
|
pageBorderBoxWithDroppableScroll: h,
|
|
6295
6299
|
draggable: n,
|
|
@@ -6331,7 +6335,7 @@ var $E = function(e) {
|
|
|
6331
6335
|
return l;
|
|
6332
6336
|
var u = Fp(p, t, n);
|
|
6333
6337
|
return oi(l, u);
|
|
6334
|
-
},
|
|
6338
|
+
}, Gr = function(e) {
|
|
6335
6339
|
var t = e.state, n = e.clientSelection, r = e.dimensions, a = e.viewport, o = e.impact, l = e.scrollJumpRequest, c = a || t.viewport, p = r || t.dimensions, u = n || t.current.client.selection, m = ft(u, t.initial.client.selection), f = {
|
|
6336
6340
|
offset: m,
|
|
6337
6341
|
selection: u,
|
|
@@ -6385,7 +6389,7 @@ function GE(e, t) {
|
|
|
6385
6389
|
});
|
|
6386
6390
|
}
|
|
6387
6391
|
var Wp = function(e) {
|
|
6388
|
-
var t = e.impact, n = e.viewport, r = e.draggables, a = e.destination, o = e.forceShouldAnimate, l = t.displaced, c = GE(l.all, r), p =
|
|
6392
|
+
var t = e.impact, n = e.viewport, r = e.draggables, a = e.destination, o = e.forceShouldAnimate, l = t.displaced, c = GE(l.all, r), p = Jr({
|
|
6389
6393
|
afterDragging: c,
|
|
6390
6394
|
destination: a,
|
|
6391
6395
|
displacedBy: t.displacedBy,
|
|
@@ -6427,7 +6431,7 @@ var Wp = function(e) {
|
|
|
6427
6431
|
viewport: o,
|
|
6428
6432
|
afterCritical: t.afterCritical
|
|
6429
6433
|
});
|
|
6430
|
-
return
|
|
6434
|
+
return Gr({
|
|
6431
6435
|
impact: h,
|
|
6432
6436
|
clientSelection: S,
|
|
6433
6437
|
state: t,
|
|
@@ -6440,7 +6444,7 @@ var Wp = function(e) {
|
|
|
6440
6444
|
droppableId: e.droppableId
|
|
6441
6445
|
};
|
|
6442
6446
|
}, Yp = function(e) {
|
|
6443
|
-
var t = e.draggable, n = e.home, r = e.draggables, a = e.viewport, o =
|
|
6447
|
+
var t = e.draggable, n = e.home, r = e.draggables, a = e.viewport, o = rs(n.axis, t.displaceBy), l = An(n.descriptor.id, r), c = l.indexOf(t);
|
|
6444
6448
|
c === -1 && (process.env.NODE_ENV !== "production" ? B(!1, "Expected draggable to be inside home list") : B(!1));
|
|
6445
6449
|
var p = l.slice(c + 1), u = p.reduce(function(S, y) {
|
|
6446
6450
|
return S[y.descriptor.id] = !0, S;
|
|
@@ -6448,7 +6452,7 @@ var Wp = function(e) {
|
|
|
6448
6452
|
inVirtualList: n.descriptor.mode === "virtual",
|
|
6449
6453
|
displacedBy: o,
|
|
6450
6454
|
effected: u
|
|
6451
|
-
}, f =
|
|
6455
|
+
}, f = Jr({
|
|
6452
6456
|
afterDragging: p,
|
|
6453
6457
|
destination: n,
|
|
6454
6458
|
displacedBy: o,
|
|
@@ -6472,10 +6476,10 @@ var Wp = function(e) {
|
|
|
6472
6476
|
draggables: e.draggables,
|
|
6473
6477
|
droppables: oi(e.droppables, t)
|
|
6474
6478
|
};
|
|
6475
|
-
}, rs = function(t) {
|
|
6476
|
-
process.env.NODE_ENV;
|
|
6477
6479
|
}, ss = function(t) {
|
|
6478
6480
|
process.env.NODE_ENV;
|
|
6481
|
+
}, as = function(t) {
|
|
6482
|
+
process.env.NODE_ENV;
|
|
6479
6483
|
}, jE = function(e) {
|
|
6480
6484
|
var t = e.draggable, n = e.offset, r = e.initialWindowScroll, a = zs(t.client, n), o = qs(a, r), l = ue({}, t, {
|
|
6481
6485
|
placeholder: ue({}, t.placeholder, {
|
|
@@ -6500,7 +6504,7 @@ var Wp = function(e) {
|
|
|
6500
6504
|
});
|
|
6501
6505
|
}, JE = function(e) {
|
|
6502
6506
|
var t = e.state, n = e.published;
|
|
6503
|
-
|
|
6507
|
+
ss();
|
|
6504
6508
|
var r = n.modified.map(function(k) {
|
|
6505
6509
|
var b = t.dimensions.droppables[k.droppableId], I = Qo(b, k.scroll);
|
|
6506
6510
|
return I;
|
|
@@ -6529,7 +6533,7 @@ var Wp = function(e) {
|
|
|
6529
6533
|
viewport: t.viewport,
|
|
6530
6534
|
afterCritical: y
|
|
6531
6535
|
});
|
|
6532
|
-
|
|
6536
|
+
as();
|
|
6533
6537
|
var D = ue({
|
|
6534
6538
|
phase: "DRAGGING"
|
|
6535
6539
|
}, t, {
|
|
@@ -6554,7 +6558,7 @@ var Wp = function(e) {
|
|
|
6554
6558
|
return t.movementMode === "SNAP";
|
|
6555
6559
|
}, Xa = function(t, n, r) {
|
|
6556
6560
|
var a = YE(t.dimensions, n);
|
|
6557
|
-
return !No(t) || r ?
|
|
6561
|
+
return !No(t) || r ? Gr({
|
|
6558
6562
|
state: t,
|
|
6559
6563
|
dimensions: a
|
|
6560
6564
|
}) : Up({
|
|
@@ -6635,9 +6639,9 @@ var Pc = {
|
|
|
6635
6639
|
if (t.type === "MOVE") {
|
|
6636
6640
|
if (e.phase === "DROP_PENDING")
|
|
6637
6641
|
return e;
|
|
6638
|
-
|
|
6642
|
+
Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, t.type + " not permitted in phase " + e.phase) : B(!1));
|
|
6639
6643
|
var x = t.payload.client;
|
|
6640
|
-
return fn(x, e.current.client.selection) ? e :
|
|
6644
|
+
return fn(x, e.current.client.selection) ? e : Gr({
|
|
6641
6645
|
state: e,
|
|
6642
6646
|
clientSelection: x,
|
|
6643
6647
|
impact: No(e) ? e.impact : null
|
|
@@ -6646,7 +6650,7 @@ var Pc = {
|
|
|
6646
6650
|
if (t.type === "UPDATE_DROPPABLE_SCROLL") {
|
|
6647
6651
|
if (e.phase === "DROP_PENDING" || e.phase === "COLLECTING")
|
|
6648
6652
|
return Qa(e);
|
|
6649
|
-
|
|
6653
|
+
Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, t.type + " not permitted in phase " + e.phase) : B(!1));
|
|
6650
6654
|
var k = t.payload, b = k.id, I = k.newScroll, O = e.dimensions.droppables[b];
|
|
6651
6655
|
if (!O)
|
|
6652
6656
|
return e;
|
|
@@ -6656,9 +6660,9 @@ var Pc = {
|
|
|
6656
6660
|
if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
|
|
6657
6661
|
if (e.phase === "DROP_PENDING")
|
|
6658
6662
|
return e;
|
|
6659
|
-
|
|
6660
|
-
var L = t.payload,
|
|
6661
|
-
_ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " +
|
|
6663
|
+
Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
|
|
6664
|
+
var L = t.payload, P = L.id, K = L.isEnabled, _ = e.dimensions.droppables[P];
|
|
6665
|
+
_ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + P + "] to toggle its enabled state") : B(!1)), _.isEnabled === K && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isEnabled to " + String(K) + `
|
|
6662
6666
|
but it is already ` + String(_.isEnabled)) : B(!1));
|
|
6663
6667
|
var $ = ue({}, _, {
|
|
6664
6668
|
isEnabled: K
|
|
@@ -6668,7 +6672,7 @@ var Pc = {
|
|
|
6668
6672
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
6669
6673
|
if (e.phase === "DROP_PENDING")
|
|
6670
6674
|
return e;
|
|
6671
|
-
|
|
6675
|
+
Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
|
|
6672
6676
|
var N = t.payload, A = N.id, Q = N.isCombineEnabled, q = e.dimensions.droppables[A];
|
|
6673
6677
|
q || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + A + "] to toggle its isCombineEnabled state") : B(!1)), q.isCombineEnabled === Q && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isCombineEnabled to " + String(Q) + `
|
|
6674
6678
|
but it is already ` + String(q.isCombineEnabled)) : B(!1));
|
|
@@ -6680,7 +6684,7 @@ var Pc = {
|
|
|
6680
6684
|
if (t.type === "MOVE_BY_WINDOW_SCROLL") {
|
|
6681
6685
|
if (e.phase === "DROP_PENDING" || e.phase === "DROP_ANIMATING")
|
|
6682
6686
|
return e;
|
|
6683
|
-
|
|
6687
|
+
Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot move by window in phase " + e.phase) : B(!1)), e.isWindowScrollAllowed || (process.env.NODE_ENV !== "production" ? B(!1, "Window scrolling is currently not supported for fixed lists") : B(!1));
|
|
6684
6688
|
var J = t.payload.newScroll;
|
|
6685
6689
|
if (fn(e.viewport.scroll.current, J))
|
|
6686
6690
|
return Qa(e);
|
|
@@ -6688,13 +6692,13 @@ var Pc = {
|
|
|
6688
6692
|
return No(e) ? Up({
|
|
6689
6693
|
state: e,
|
|
6690
6694
|
viewport: H
|
|
6691
|
-
}) :
|
|
6695
|
+
}) : Gr({
|
|
6692
6696
|
state: e,
|
|
6693
6697
|
viewport: H
|
|
6694
6698
|
});
|
|
6695
6699
|
}
|
|
6696
6700
|
if (t.type === "UPDATE_VIEWPORT_MAX_SCROLL") {
|
|
6697
|
-
if (!
|
|
6701
|
+
if (!Mn(e))
|
|
6698
6702
|
return e;
|
|
6699
6703
|
var F = t.payload.maxScroll;
|
|
6700
6704
|
if (fn(F, e.viewport.scroll.max))
|
|
@@ -6718,7 +6722,7 @@ var Pc = {
|
|
|
6718
6722
|
state: e,
|
|
6719
6723
|
type: t.type
|
|
6720
6724
|
});
|
|
6721
|
-
return j ?
|
|
6725
|
+
return j ? Gr({
|
|
6722
6726
|
state: e,
|
|
6723
6727
|
impact: j.impact,
|
|
6724
6728
|
clientSelection: j.clientSelection,
|
|
@@ -6889,7 +6893,7 @@ function fT(e) {
|
|
|
6889
6893
|
}
|
|
6890
6894
|
function hT(e, t) {
|
|
6891
6895
|
if (process.env.NODE_ENV !== "production") {
|
|
6892
|
-
var n =
|
|
6896
|
+
var n = An(e.droppable.id, t.draggables);
|
|
6893
6897
|
fT(n);
|
|
6894
6898
|
}
|
|
6895
6899
|
}
|
|
@@ -6936,7 +6940,7 @@ var gT = function(e) {
|
|
|
6936
6940
|
}, ci = {
|
|
6937
6941
|
outOfTheWay: "cubic-bezier(0.2, 0, 0, 1)",
|
|
6938
6942
|
drop: "cubic-bezier(.2,1,.1,1)"
|
|
6939
|
-
},
|
|
6943
|
+
}, Zr = {
|
|
6940
6944
|
opacity: {
|
|
6941
6945
|
drop: 0,
|
|
6942
6946
|
combining: 0.7
|
|
@@ -6948,25 +6952,25 @@ var gT = function(e) {
|
|
|
6948
6952
|
outOfTheWay: 0.2,
|
|
6949
6953
|
minDropTime: 0.33,
|
|
6950
6954
|
maxDropTime: 0.55
|
|
6951
|
-
},
|
|
6952
|
-
fluid: "opacity " +
|
|
6953
|
-
snap: "transform " +
|
|
6955
|
+
}, xn = di.outOfTheWay + "s " + ci.outOfTheWay, Ur = {
|
|
6956
|
+
fluid: "opacity " + xn,
|
|
6957
|
+
snap: "transform " + xn + ", opacity " + xn,
|
|
6954
6958
|
drop: function(t) {
|
|
6955
6959
|
var n = t + "s " + ci.drop;
|
|
6956
6960
|
return "transform " + n + ", opacity " + n;
|
|
6957
6961
|
},
|
|
6958
|
-
outOfTheWay: "transform " +
|
|
6959
|
-
placeholder: "height " +
|
|
6962
|
+
outOfTheWay: "transform " + xn,
|
|
6963
|
+
placeholder: "height " + xn + ", width " + xn + ", margin " + xn
|
|
6960
6964
|
}, Bc = function(t) {
|
|
6961
6965
|
return fn(t, Je) ? null : "translate(" + t.x + "px, " + t.y + "px)";
|
|
6962
6966
|
}, xo = {
|
|
6963
6967
|
moveTo: Bc,
|
|
6964
6968
|
drop: function(t, n) {
|
|
6965
6969
|
var r = Bc(t);
|
|
6966
|
-
return r ? n ? r + " scale(" +
|
|
6970
|
+
return r ? n ? r + " scale(" + Zr.scale.drop + ")" : r : null;
|
|
6967
6971
|
}
|
|
6968
6972
|
}, Io = di.minDropTime, Jp = di.maxDropTime, bT = Jp - Io, Ac = 1500, vT = 0.6, yT = function(e) {
|
|
6969
|
-
var t = e.current, n = e.destination, r = e.reason, a =
|
|
6973
|
+
var t = e.current, n = e.destination, r = e.reason, a = zr(t, n);
|
|
6970
6974
|
if (a <= 0)
|
|
6971
6975
|
return Io;
|
|
6972
6976
|
if (a >= Ac)
|
|
@@ -7004,7 +7008,7 @@ var gT = function(e) {
|
|
|
7004
7008
|
didDropInsideDroppable: !0
|
|
7005
7009
|
};
|
|
7006
7010
|
var p = ue({}, r, {
|
|
7007
|
-
displaced:
|
|
7011
|
+
displaced: qr
|
|
7008
7012
|
});
|
|
7009
7013
|
return {
|
|
7010
7014
|
impact: p,
|
|
@@ -7101,7 +7105,7 @@ function DT(e) {
|
|
|
7101
7105
|
function n() {
|
|
7102
7106
|
t(Zp());
|
|
7103
7107
|
}
|
|
7104
|
-
var r =
|
|
7108
|
+
var r = Yr(n), a = CT(r), o = mn;
|
|
7105
7109
|
function l() {
|
|
7106
7110
|
return o !== mn;
|
|
7107
7111
|
}
|
|
@@ -7190,8 +7194,8 @@ var NT = function(t) {
|
|
|
7190
7194
|
var r = t.draggable.id === n.draggable.id && t.draggable.droppableId === n.draggable.droppableId && t.draggable.type === n.draggable.type && t.draggable.index === n.draggable.index, a = t.droppable.id === n.droppable.id && t.droppable.type === n.droppable.type;
|
|
7191
7195
|
return r && a;
|
|
7192
7196
|
}, Ar = function(t, n) {
|
|
7193
|
-
|
|
7194
|
-
},
|
|
7197
|
+
ss(), n(), as();
|
|
7198
|
+
}, Ls = function(t, n) {
|
|
7195
7199
|
return {
|
|
7196
7200
|
draggableId: t.draggable.id,
|
|
7197
7201
|
type: t.droppable.type,
|
|
@@ -7225,11 +7229,11 @@ var NT = function(t) {
|
|
|
7225
7229
|
}, o = function(h, S) {
|
|
7226
7230
|
r && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : B(!1)), Ar("onBeforeDragStart", function() {
|
|
7227
7231
|
var y = e().onBeforeDragStart;
|
|
7228
|
-
y && y(
|
|
7232
|
+
y && y(Ls(h, S));
|
|
7229
7233
|
});
|
|
7230
7234
|
}, l = function(h, S) {
|
|
7231
7235
|
r && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : B(!1));
|
|
7232
|
-
var y =
|
|
7236
|
+
var y = Ls(h, S);
|
|
7233
7237
|
r = {
|
|
7234
7238
|
mode: S,
|
|
7235
7239
|
lastCritical: h,
|
|
@@ -7249,7 +7253,7 @@ var NT = function(t) {
|
|
|
7249
7253
|
D && (r.lastLocation = y);
|
|
7250
7254
|
var x = !_T(r.lastCombine, w);
|
|
7251
7255
|
if (x && (r.lastCombine = w), !(!T && !D && !x)) {
|
|
7252
|
-
var k = ue({},
|
|
7256
|
+
var k = ue({}, Ls(h, r.mode), {
|
|
7253
7257
|
combine: w,
|
|
7254
7258
|
destination: y
|
|
7255
7259
|
});
|
|
@@ -7267,7 +7271,7 @@ var NT = function(t) {
|
|
|
7267
7271
|
});
|
|
7268
7272
|
}, m = function() {
|
|
7269
7273
|
if (!!r) {
|
|
7270
|
-
var h = ue({},
|
|
7274
|
+
var h = ue({}, Ls(r.lastCritical, r.mode), {
|
|
7271
7275
|
combine: null,
|
|
7272
7276
|
destination: null,
|
|
7273
7277
|
reason: "CANCEL"
|
|
@@ -7428,7 +7432,7 @@ var NT = function(t) {
|
|
|
7428
7432
|
function GT(e) {
|
|
7429
7433
|
var t = e.registry, n = e.callbacks, r = to(), a = null, o = function() {
|
|
7430
7434
|
a || (n.collectionStarting(), a = requestAnimationFrame(function() {
|
|
7431
|
-
a = null,
|
|
7435
|
+
a = null, ss();
|
|
7432
7436
|
var m = r, f = m.additions, h = m.removals, S = m.modified, y = Object.keys(f).map(function(D) {
|
|
7433
7437
|
return t.draggable.getById(D).getDimension(Je);
|
|
7434
7438
|
}).sort(function(D, x) {
|
|
@@ -7444,7 +7448,7 @@ function GT(e) {
|
|
|
7444
7448
|
removals: Object.keys(h),
|
|
7445
7449
|
modified: w
|
|
7446
7450
|
};
|
|
7447
|
-
r = to(),
|
|
7451
|
+
r = to(), as(), n.publish(T);
|
|
7448
7452
|
}));
|
|
7449
7453
|
}, l = function(m) {
|
|
7450
7454
|
var f = m.descriptor.id;
|
|
@@ -7505,7 +7509,7 @@ var Xp = function(e) {
|
|
|
7505
7509
|
return m;
|
|
7506
7510
|
}, YT = function(e) {
|
|
7507
7511
|
var t = e.critical, n = e.scrollOptions, r = e.registry;
|
|
7508
|
-
|
|
7512
|
+
ss();
|
|
7509
7513
|
var a = UT(), o = a.scroll.current, l = t.droppable, c = r.droppable.getAllByType(l.type).map(function(f) {
|
|
7510
7514
|
return f.callbacks.getDimensionAndWatchScroll(o, n);
|
|
7511
7515
|
}), p = r.draggable.getAllByType(t.draggable.type).map(function(f) {
|
|
@@ -7514,7 +7518,7 @@ var Xp = function(e) {
|
|
|
7514
7518
|
draggables: kp(p),
|
|
7515
7519
|
droppables: Ip(c)
|
|
7516
7520
|
};
|
|
7517
|
-
|
|
7521
|
+
as();
|
|
7518
7522
|
var m = {
|
|
7519
7523
|
dimensions: u,
|
|
7520
7524
|
critical: t,
|
|
@@ -7823,7 +7827,7 @@ var jT = function(e, t) {
|
|
|
7823
7827
|
h && o(f.descriptor.id, h);
|
|
7824
7828
|
}
|
|
7825
7829
|
}, lw = function(e) {
|
|
7826
|
-
var t = e.scrollWindow, n = e.scrollDroppable, r =
|
|
7830
|
+
var t = e.scrollWindow, n = e.scrollDroppable, r = Yr(t), a = Yr(n), o = null, l = function(m) {
|
|
7827
7831
|
o || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot fluid scroll if not dragging") : B(!1));
|
|
7828
7832
|
var f = o, h = f.shouldUseTimeDampening, S = f.dragStartTime;
|
|
7829
7833
|
Wc({
|
|
@@ -7834,7 +7838,7 @@ var jT = function(e, t) {
|
|
|
7834
7838
|
shouldUseTimeDampening: h
|
|
7835
7839
|
});
|
|
7836
7840
|
}, c = function(m) {
|
|
7837
|
-
|
|
7841
|
+
ss(), o && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot start auto scrolling when already started") : B(!1));
|
|
7838
7842
|
var f = Date.now(), h = !1, S = function() {
|
|
7839
7843
|
h = !0;
|
|
7840
7844
|
};
|
|
@@ -7847,7 +7851,7 @@ var jT = function(e, t) {
|
|
|
7847
7851
|
}), o = {
|
|
7848
7852
|
dragStartTime: f,
|
|
7849
7853
|
shouldUseTimeDampening: h
|
|
7850
|
-
},
|
|
7854
|
+
}, as(), h && l(m);
|
|
7851
7855
|
}, p = function() {
|
|
7852
7856
|
!o || (r.cancel(), a.cancel(), o = null);
|
|
7853
7857
|
};
|
|
@@ -7970,7 +7974,7 @@ var jT = function(e, t) {
|
|
|
7970
7974
|
};
|
|
7971
7975
|
}(), r = function() {
|
|
7972
7976
|
var c = `
|
|
7973
|
-
transition: ` +
|
|
7977
|
+
transition: ` + Ur.outOfTheWay + `;
|
|
7974
7978
|
`;
|
|
7975
7979
|
return {
|
|
7976
7980
|
selector: t(ko.contextId),
|
|
@@ -8056,7 +8060,7 @@ function hw(e, t) {
|
|
|
8056
8060
|
var au = function(e) {
|
|
8057
8061
|
return e && e.ownerDocument ? e.ownerDocument.defaultView : window;
|
|
8058
8062
|
};
|
|
8059
|
-
function
|
|
8063
|
+
function os(e) {
|
|
8060
8064
|
return e instanceof au(e).HTMLElement;
|
|
8061
8065
|
}
|
|
8062
8066
|
function ou(e, t) {
|
|
@@ -8066,7 +8070,7 @@ function ou(e, t) {
|
|
|
8066
8070
|
var a = vn(r, function(o) {
|
|
8067
8071
|
return o.getAttribute(gr.draggableId) === t;
|
|
8068
8072
|
});
|
|
8069
|
-
return a ?
|
|
8073
|
+
return a ? os(a) ? a : (process.env.NODE_ENV !== "production" && Re("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && Re('Unable to find drag handle with id "' + t + '" as no handle with a matching id was found'), null);
|
|
8070
8074
|
}
|
|
8071
8075
|
function gw(e) {
|
|
8072
8076
|
var t = pe({}), n = pe(null), r = pe(null), a = pe(!1), o = me(function(h, S) {
|
|
@@ -8207,7 +8211,7 @@ function bw() {
|
|
|
8207
8211
|
};
|
|
8208
8212
|
}, [e]), e;
|
|
8209
8213
|
}
|
|
8210
|
-
var hi = Y.createContext(null),
|
|
8214
|
+
var hi = Y.createContext(null), Xr = function() {
|
|
8211
8215
|
var e = document.body;
|
|
8212
8216
|
return e || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find document.body") : B(!1)), e;
|
|
8213
8217
|
}, vw = {
|
|
@@ -8229,9 +8233,9 @@ function Ew(e) {
|
|
|
8229
8233
|
}, [e]), n = pe(null);
|
|
8230
8234
|
Le(function() {
|
|
8231
8235
|
var o = document.createElement("div");
|
|
8232
|
-
return n.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), ue(o.style, vw),
|
|
8236
|
+
return n.current = o, o.id = t, o.setAttribute("aria-live", "assertive"), o.setAttribute("aria-atomic", "true"), ue(o.style, vw), Xr().appendChild(o), function() {
|
|
8233
8237
|
setTimeout(function() {
|
|
8234
|
-
var p =
|
|
8238
|
+
var p = Xr();
|
|
8235
8239
|
p.contains(o) && p.removeChild(o), o === n.current && (n.current = null);
|
|
8236
8240
|
});
|
|
8237
8241
|
};
|
|
@@ -8281,8 +8285,8 @@ function Dw(e) {
|
|
|
8281
8285
|
}, [r, t]);
|
|
8282
8286
|
return Le(function() {
|
|
8283
8287
|
var l = document.createElement("div");
|
|
8284
|
-
return l.id = a, l.textContent = n, l.style.display = "none",
|
|
8285
|
-
var p =
|
|
8288
|
+
return l.id = a, l.textContent = n, l.style.display = "none", Xr().appendChild(l), function() {
|
|
8289
|
+
var p = Xr();
|
|
8286
8290
|
p.contains(l) && p.removeChild(l);
|
|
8287
8291
|
};
|
|
8288
8292
|
}, [a, n]), a;
|
|
@@ -8339,7 +8343,7 @@ var ha = Y.createContext(null), Nw = {
|
|
|
8339
8343
|
function Si(e) {
|
|
8340
8344
|
process.env.NODE_ENV !== "production" && e();
|
|
8341
8345
|
}
|
|
8342
|
-
function
|
|
8346
|
+
function is(e, t) {
|
|
8343
8347
|
Si(function() {
|
|
8344
8348
|
Le(function() {
|
|
8345
8349
|
try {
|
|
@@ -8355,7 +8359,7 @@ function os(e, t) {
|
|
|
8355
8359
|
});
|
|
8356
8360
|
}
|
|
8357
8361
|
function _w() {
|
|
8358
|
-
|
|
8362
|
+
is(function() {
|
|
8359
8363
|
kw(Nw.react, Y.version), Mw(document);
|
|
8360
8364
|
}, []);
|
|
8361
8365
|
}
|
|
@@ -8394,7 +8398,7 @@ function Lw() {
|
|
|
8394
8398
|
tryAbandon: o
|
|
8395
8399
|
};
|
|
8396
8400
|
}
|
|
8397
|
-
var Ow = 9, Rw = 13, vi = 27, lu = 32, Pw = 33, Bw = 34, Aw = 35, Fw = 36, $w = 37, Vw = 38, Kw = 39, Hw = 40,
|
|
8401
|
+
var Ow = 9, Rw = 13, vi = 27, lu = 32, Pw = 33, Bw = 34, Aw = 35, Fw = 36, $w = 37, Vw = 38, Kw = 39, Hw = 40, Os, Ww = (Os = {}, Os[Rw] = !0, Os[Ow] = !0, Os), cu = function(e) {
|
|
8398
8402
|
Ww[e.keyCode] && e.preventDefault();
|
|
8399
8403
|
}, ga = function() {
|
|
8400
8404
|
var e = "visibilitychange";
|
|
@@ -8879,7 +8883,7 @@ function tC(e) {
|
|
|
8879
8883
|
function nC(e) {
|
|
8880
8884
|
Si(function() {
|
|
8881
8885
|
var t = bi(e);
|
|
8882
|
-
|
|
8886
|
+
is(function() {
|
|
8883
8887
|
t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot change the amount of sensor hooks after mounting") : B(!1));
|
|
8884
8888
|
});
|
|
8885
8889
|
});
|
|
@@ -8905,7 +8909,7 @@ function pu(e, t) {
|
|
|
8905
8909
|
}
|
|
8906
8910
|
function sC(e, t) {
|
|
8907
8911
|
var n = t.target;
|
|
8908
|
-
return
|
|
8912
|
+
return os(n) ? pu(e, n) : !1;
|
|
8909
8913
|
}
|
|
8910
8914
|
var aC = function(e) {
|
|
8911
8915
|
return _t(e.getBoundingClientRect()).center;
|
|
@@ -8936,7 +8940,7 @@ function dC(e, t) {
|
|
|
8936
8940
|
if (!oC(n))
|
|
8937
8941
|
return process.env.NODE_ENV !== "production" && Re("event.target must be a Element"), null;
|
|
8938
8942
|
var r = cC(e), a = lC(n, r);
|
|
8939
|
-
return a ?
|
|
8943
|
+
return a ? os(a) ? a : (process.env.NODE_ENV !== "production" && Re("drag handle must be a HTMLElement"), null) : null;
|
|
8940
8944
|
}
|
|
8941
8945
|
function pC(e, t) {
|
|
8942
8946
|
var n = dC(e, t);
|
|
@@ -8946,12 +8950,12 @@ function uC(e, t) {
|
|
|
8946
8950
|
var n = "[" + ko.contextId + '="' + e + '"]', r = xp(document.querySelectorAll(n)), a = vn(r, function(o) {
|
|
8947
8951
|
return o.getAttribute(ko.id) === t;
|
|
8948
8952
|
});
|
|
8949
|
-
return a ?
|
|
8953
|
+
return a ? os(a) ? a : (process.env.NODE_ENV !== "production" && Re("Draggable element is not a HTMLElement"), null) : null;
|
|
8950
8954
|
}
|
|
8951
8955
|
function mC(e) {
|
|
8952
8956
|
e.preventDefault();
|
|
8953
8957
|
}
|
|
8954
|
-
function
|
|
8958
|
+
function Rs(e) {
|
|
8955
8959
|
var t = e.expected, n = e.phase, r = e.isLockActive, a = e.shouldWarn;
|
|
8956
8960
|
return r() ? t !== n ? (a && process.env.NODE_ENV !== "production" && Re(`
|
|
8957
8961
|
Cannot perform action.
|
|
@@ -9002,7 +9006,7 @@ function fC(e) {
|
|
|
9002
9006
|
return t.isActive(f);
|
|
9003
9007
|
}
|
|
9004
9008
|
function w(O, M) {
|
|
9005
|
-
|
|
9009
|
+
Rs({
|
|
9006
9010
|
expected: O,
|
|
9007
9011
|
phase: h,
|
|
9008
9012
|
isLockActive: y,
|
|
@@ -9015,7 +9019,7 @@ function fC(e) {
|
|
|
9015
9019
|
t.release(), h = "COMPLETED";
|
|
9016
9020
|
}
|
|
9017
9021
|
h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(O.liftActionArgs)), h = "DRAGGING";
|
|
9018
|
-
function L(
|
|
9022
|
+
function L(P, K) {
|
|
9019
9023
|
if (K === void 0 && (K = {
|
|
9020
9024
|
shouldBlockNextClick: !1
|
|
9021
9025
|
}), O.cleanup(), K.shouldBlockNextClick) {
|
|
@@ -9031,12 +9035,12 @@ function fC(e) {
|
|
|
9031
9035
|
setTimeout(_);
|
|
9032
9036
|
}
|
|
9033
9037
|
M(), r.dispatch(zp({
|
|
9034
|
-
reason:
|
|
9038
|
+
reason: P
|
|
9035
9039
|
}));
|
|
9036
9040
|
}
|
|
9037
9041
|
return ue({
|
|
9038
9042
|
isActive: function() {
|
|
9039
|
-
return
|
|
9043
|
+
return Rs({
|
|
9040
9044
|
expected: "DRAGGING",
|
|
9041
9045
|
phase: h,
|
|
9042
9046
|
isLockActive: y,
|
|
@@ -9053,10 +9057,10 @@ function fC(e) {
|
|
|
9053
9057
|
}, O.actions);
|
|
9054
9058
|
}
|
|
9055
9059
|
function x(O) {
|
|
9056
|
-
var M =
|
|
9060
|
+
var M = Yr(function(P) {
|
|
9057
9061
|
T(function() {
|
|
9058
9062
|
return jp({
|
|
9059
|
-
client:
|
|
9063
|
+
client: P
|
|
9060
9064
|
});
|
|
9061
9065
|
});
|
|
9062
9066
|
}), L = D({
|
|
@@ -9102,7 +9106,7 @@ function fC(e) {
|
|
|
9102
9106
|
});
|
|
9103
9107
|
}
|
|
9104
9108
|
function b() {
|
|
9105
|
-
var O =
|
|
9109
|
+
var O = Rs({
|
|
9106
9110
|
expected: "PRE_DRAG",
|
|
9107
9111
|
phase: h,
|
|
9108
9112
|
isLockActive: y,
|
|
@@ -9112,7 +9116,7 @@ function fC(e) {
|
|
|
9112
9116
|
}
|
|
9113
9117
|
var I = {
|
|
9114
9118
|
isActive: function() {
|
|
9115
|
-
return
|
|
9119
|
+
return Rs({
|
|
9116
9120
|
expected: "PRE_DRAG",
|
|
9117
9121
|
phase: h,
|
|
9118
9122
|
isLockActive: y,
|
|
@@ -9200,8 +9204,8 @@ function bC(e) {
|
|
|
9200
9204
|
}, [c]), u = Ew(t), m = Dw({
|
|
9201
9205
|
contextId: t,
|
|
9202
9206
|
text: o
|
|
9203
|
-
}), f = hw(t, a), h = me(function(
|
|
9204
|
-
$r(l).dispatch(
|
|
9207
|
+
}), f = hw(t, a), h = me(function(P) {
|
|
9208
|
+
$r(l).dispatch(P);
|
|
9205
9209
|
}, []), S = Ce(function() {
|
|
9206
9210
|
return sc({
|
|
9207
9211
|
publishWhileDragging: tT,
|
|
@@ -9231,11 +9235,11 @@ function bC(e) {
|
|
|
9231
9235
|
}, [u, T, w, D, p, f]);
|
|
9232
9236
|
process.env.NODE_ENV !== "production" && l.current && l.current !== x && process.env.NODE_ENV !== "production" && Re("unexpected store change"), l.current = x;
|
|
9233
9237
|
var k = me(function() {
|
|
9234
|
-
var
|
|
9235
|
-
K.phase !== "IDLE" &&
|
|
9238
|
+
var P = $r(l), K = P.getState();
|
|
9239
|
+
K.phase !== "IDLE" && P.dispatch(ii());
|
|
9236
9240
|
}, []), b = me(function() {
|
|
9237
|
-
var
|
|
9238
|
-
return
|
|
9241
|
+
var P = $r(l).getState();
|
|
9242
|
+
return P.isDragging || P.phase === "DROP_ANIMATING";
|
|
9239
9243
|
}, []), I = Ce(function() {
|
|
9240
9244
|
return {
|
|
9241
9245
|
isDragging: b,
|
|
@@ -9243,10 +9247,10 @@ function bC(e) {
|
|
|
9243
9247
|
};
|
|
9244
9248
|
}, [b, k]);
|
|
9245
9249
|
n(I);
|
|
9246
|
-
var O = me(function(
|
|
9247
|
-
return tu($r(l).getState(),
|
|
9250
|
+
var O = me(function(P) {
|
|
9251
|
+
return tu($r(l).getState(), P);
|
|
9248
9252
|
}, []), M = me(function() {
|
|
9249
|
-
return
|
|
9253
|
+
return Mn($r(l).getState());
|
|
9250
9254
|
}, []), L = Ce(function() {
|
|
9251
9255
|
return {
|
|
9252
9256
|
marshal: w,
|
|
@@ -9320,7 +9324,7 @@ var yi = function(t) {
|
|
|
9320
9324
|
}, NC = function() {
|
|
9321
9325
|
if (process.env.NODE_ENV === "production")
|
|
9322
9326
|
return !1;
|
|
9323
|
-
var t =
|
|
9327
|
+
var t = Xr(), n = document.documentElement;
|
|
9324
9328
|
if (n || (process.env.NODE_ENV, B(!1)), !hu(t))
|
|
9325
9329
|
return !1;
|
|
9326
9330
|
var r = window.getComputedStyle(n), a = {
|
|
@@ -9461,7 +9465,7 @@ function Qs(e) {
|
|
|
9461
9465
|
var t = rn(e);
|
|
9462
9466
|
return t || (process.env.NODE_ENV !== "production" ? B(!1, "Could not find required context") : B(!1)), t;
|
|
9463
9467
|
}
|
|
9464
|
-
var
|
|
9468
|
+
var Ps = function(t) {
|
|
9465
9469
|
return t && t.env.closestScrollable || null;
|
|
9466
9470
|
};
|
|
9467
9471
|
function PC(e) {
|
|
@@ -9487,9 +9491,9 @@ function PC(e) {
|
|
|
9487
9491
|
var b = m();
|
|
9488
9492
|
u(b.x, b.y);
|
|
9489
9493
|
}, [m, u]), h = Ce(function() {
|
|
9490
|
-
return
|
|
9494
|
+
return Yr(f);
|
|
9491
9495
|
}, [f]), S = me(function() {
|
|
9492
|
-
var b = t.current, I =
|
|
9496
|
+
var b = t.current, I = Ps(b);
|
|
9493
9497
|
b && I || (process.env.NODE_ENV !== "production" ? B(!1, "Could not find scroll options while scrolling") : B(!1));
|
|
9494
9498
|
var O = b.scrollOptions;
|
|
9495
9499
|
if (O.shouldPublishImmediately) {
|
|
@@ -9501,13 +9505,13 @@ function PC(e) {
|
|
|
9501
9505
|
t.current && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect a droppable while a drag is occurring") : B(!1));
|
|
9502
9506
|
var O = l.current, M = O.getDroppableRef();
|
|
9503
9507
|
M || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect without a droppable ref") : B(!1));
|
|
9504
|
-
var L = kC(M),
|
|
9508
|
+
var L = kC(M), P = {
|
|
9505
9509
|
ref: M,
|
|
9506
9510
|
descriptor: c,
|
|
9507
9511
|
env: L,
|
|
9508
9512
|
scrollOptions: I
|
|
9509
9513
|
};
|
|
9510
|
-
t.current =
|
|
9514
|
+
t.current = P;
|
|
9511
9515
|
var K = LC({
|
|
9512
9516
|
ref: M,
|
|
9513
9517
|
descriptor: c,
|
|
@@ -9518,19 +9522,19 @@ function PC(e) {
|
|
|
9518
9522
|
isCombineEnabled: O.isCombineEnabled,
|
|
9519
9523
|
shouldClipSubject: !O.ignoreContainerClipping
|
|
9520
9524
|
}), _ = L.closestScrollable;
|
|
9521
|
-
return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(
|
|
9525
|
+
return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(P.scrollOptions)), process.env.NODE_ENV !== "production" && xC(_)), K;
|
|
9522
9526
|
}, [n.contextId, c, S, l]), w = me(function() {
|
|
9523
|
-
var b = t.current, I =
|
|
9527
|
+
var b = t.current, I = Ps(b);
|
|
9524
9528
|
return b && I || (process.env.NODE_ENV !== "production" ? B(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : B(!1)), Mo(I);
|
|
9525
9529
|
}, []), T = me(function() {
|
|
9526
9530
|
var b = t.current;
|
|
9527
9531
|
b || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot stop drag when no active drag") : B(!1));
|
|
9528
|
-
var I =
|
|
9532
|
+
var I = Ps(b);
|
|
9529
9533
|
t.current = null, I && (h.cancel(), I.removeAttribute(Gc.contextId), I.removeEventListener("scroll", S, Jc(b.scrollOptions)));
|
|
9530
9534
|
}, [S, h]), D = me(function(b) {
|
|
9531
9535
|
var I = t.current;
|
|
9532
9536
|
I || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll when there is no drag") : B(!1));
|
|
9533
|
-
var O =
|
|
9537
|
+
var O = Ps(I);
|
|
9534
9538
|
O || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot scroll a droppable with no closest scrollable") : B(!1)), O.scrollTop += b.y, O.scrollLeft += b.x;
|
|
9535
9539
|
}, []), x = Ce(function() {
|
|
9536
9540
|
return {
|
|
@@ -9587,7 +9591,7 @@ var Zc = {
|
|
|
9587
9591
|
flexShrink: "0",
|
|
9588
9592
|
flexGrow: "0",
|
|
9589
9593
|
pointerEvents: "none",
|
|
9590
|
-
transition: a !== "none" ?
|
|
9594
|
+
transition: a !== "none" ? Ur.placeholder : null
|
|
9591
9595
|
};
|
|
9592
9596
|
};
|
|
9593
9597
|
function FC(e) {
|
|
@@ -9615,7 +9619,7 @@ function FC(e) {
|
|
|
9615
9619
|
}
|
|
9616
9620
|
var $C = Y.memo(FC), Ei = Y.createContext(null);
|
|
9617
9621
|
function Su(e) {
|
|
9618
|
-
e &&
|
|
9622
|
+
e && os(e) || (process.env.NODE_ENV !== "production" ? B(!1, `
|
|
9619
9623
|
provided.innerRef has not been provided with a HTMLElement.
|
|
9620
9624
|
|
|
9621
9625
|
You can find a guide on using the innerRef callback functions at:
|
|
@@ -9659,7 +9663,7 @@ var VC = [function(t) {
|
|
|
9659
9663
|
n() && (process.env.NODE_ENV !== "production" ? B(!1, "Expected virtual list to not have a placeholder") : B(!1));
|
|
9660
9664
|
}];
|
|
9661
9665
|
function WC(e) {
|
|
9662
|
-
|
|
9666
|
+
is(function() {
|
|
9663
9667
|
io(e, VC), e.props.mode === "standard" && io(e, KC), e.props.mode === "virtual" && io(e, HC);
|
|
9664
9668
|
});
|
|
9665
9669
|
}
|
|
@@ -9712,9 +9716,9 @@ var GC = function(e) {
|
|
|
9712
9716
|
dragging: 5e3,
|
|
9713
9717
|
dropAnimating: 4500
|
|
9714
9718
|
}, UC = function(t, n) {
|
|
9715
|
-
return n ?
|
|
9719
|
+
return n ? Ur.drop(n.duration) : t ? Ur.snap : Ur.fluid;
|
|
9716
9720
|
}, YC = function(t, n) {
|
|
9717
|
-
return t ? n ?
|
|
9721
|
+
return t ? n ? Zr.opacity.drop : Zr.opacity.combining : null;
|
|
9718
9722
|
}, jC = function(t) {
|
|
9719
9723
|
return t.forceShouldAnimate != null ? t.forceShouldAnimate : t.mode === "SNAP";
|
|
9720
9724
|
};
|
|
@@ -9793,7 +9797,7 @@ function XC(e) {
|
|
|
9793
9797
|
}, [m, r.draggable]);
|
|
9794
9798
|
}
|
|
9795
9799
|
function QC(e, t, n) {
|
|
9796
|
-
|
|
9800
|
+
is(function() {
|
|
9797
9801
|
function r(o) {
|
|
9798
9802
|
return "Draggable[id: " + o + "]: ";
|
|
9799
9803
|
}
|
|
@@ -9805,7 +9809,7 @@ function QC(e, t, n) {
|
|
|
9805
9809
|
function eD(e) {
|
|
9806
9810
|
Si(function() {
|
|
9807
9811
|
var t = pe(e);
|
|
9808
|
-
|
|
9812
|
+
is(function() {
|
|
9809
9813
|
e !== t.current && (process.env.NODE_ENV !== "production" ? B(!1, "Draggable isClone prop value changed during component life") : B(!1));
|
|
9810
9814
|
}, [e]);
|
|
9811
9815
|
});
|
|
@@ -9814,8 +9818,8 @@ function tD(e) {
|
|
|
9814
9818
|
e.preventDefault();
|
|
9815
9819
|
}
|
|
9816
9820
|
function nD(e) {
|
|
9817
|
-
var t = pe(null), n = me(function(
|
|
9818
|
-
t.current =
|
|
9821
|
+
var t = pe(null), n = me(function(P) {
|
|
9822
|
+
t.current = P;
|
|
9819
9823
|
}, []), r = me(function() {
|
|
9820
9824
|
return t.current;
|
|
9821
9825
|
}, []), a = Qs(ha), o = a.contextId, l = a.dragHandleUsageInstructionsId, c = a.registry, p = Qs(Ei), u = p.type, m = p.droppableId, f = Ce(function() {
|
|
@@ -9849,15 +9853,15 @@ function nD(e) {
|
|
|
9849
9853
|
draggable: !1,
|
|
9850
9854
|
onDragStart: tD
|
|
9851
9855
|
} : null;
|
|
9852
|
-
}, [o, l, S, y]), O = me(function(
|
|
9853
|
-
x.type === "DRAGGING" && (!x.dropping ||
|
|
9856
|
+
}, [o, l, S, y]), O = me(function(P) {
|
|
9857
|
+
x.type === "DRAGGING" && (!x.dropping || P.propertyName === "transform" && k());
|
|
9854
9858
|
}, [k, x]), M = Ce(function() {
|
|
9855
|
-
var
|
|
9859
|
+
var P = JC(x), K = x.type === "DRAGGING" && x.dropping ? O : null, _ = {
|
|
9856
9860
|
innerRef: n,
|
|
9857
9861
|
draggableProps: {
|
|
9858
9862
|
"data-rbd-draggable-context-id": o,
|
|
9859
9863
|
"data-rbd-draggable-id": S,
|
|
9860
|
-
style:
|
|
9864
|
+
style: P,
|
|
9861
9865
|
onTransitionEnd: K
|
|
9862
9866
|
},
|
|
9863
9867
|
dragHandleProps: I
|
|
@@ -9931,8 +9935,8 @@ function aD() {
|
|
|
9931
9935
|
duration: k,
|
|
9932
9936
|
curve: ci.drop,
|
|
9933
9937
|
moveTo: o.newHomeClientOffset,
|
|
9934
|
-
opacity: x ?
|
|
9935
|
-
scale: x ?
|
|
9938
|
+
opacity: x ? Zr.opacity.drop : null,
|
|
9939
|
+
scale: x ? Zr.scale.drop : null
|
|
9936
9940
|
};
|
|
9937
9941
|
return {
|
|
9938
9942
|
mapped: {
|
|
@@ -10095,13 +10099,13 @@ function uD(e) {
|
|
|
10095
10099
|
"data-rbd-droppable-context-id": n
|
|
10096
10100
|
}
|
|
10097
10101
|
};
|
|
10098
|
-
}, [n, c, M, k]),
|
|
10102
|
+
}, [n, c, M, k]), P = w ? w.dragging.draggableId : null, K = Ce(function() {
|
|
10099
10103
|
return {
|
|
10100
10104
|
droppableId: c,
|
|
10101
10105
|
type: p,
|
|
10102
|
-
isUsingCloneFor:
|
|
10106
|
+
isUsingCloneFor: P
|
|
10103
10107
|
};
|
|
10104
|
-
}, [c,
|
|
10108
|
+
}, [c, P, p]);
|
|
10105
10109
|
function _() {
|
|
10106
10110
|
if (!w)
|
|
10107
10111
|
return null;
|
|
@@ -10999,42 +11003,42 @@ function xu(e) {
|
|
|
10999
11003
|
}), h = { searchSelectedColumn: "" }, S = V(m.isVisible && "sps-button--open", c), { formMeta: y, formValue: w, updateForm: T } = zb(h);
|
|
11000
11004
|
function D(M) {
|
|
11001
11005
|
if (M.target.value) {
|
|
11002
|
-
const L = [...m.pendingSelectedColumns],
|
|
11006
|
+
const L = [...m.pendingSelectedColumns], P = [];
|
|
11003
11007
|
m.pendingUnselectedColumns.forEach((K) => {
|
|
11004
11008
|
M.target.value === K.name ? (T(h), L.push({
|
|
11005
11009
|
columnId: ot(),
|
|
11006
11010
|
name: K.name,
|
|
11007
11011
|
value: K.value
|
|
11008
|
-
})) :
|
|
11012
|
+
})) : P.push(K);
|
|
11009
11013
|
}), f({
|
|
11010
11014
|
pendingSelectedColumns: L,
|
|
11011
|
-
pendingUnselectedColumns:
|
|
11015
|
+
pendingUnselectedColumns: P
|
|
11012
11016
|
});
|
|
11013
11017
|
}
|
|
11014
11018
|
}
|
|
11015
11019
|
function x(M) {
|
|
11016
|
-
const L = [],
|
|
11020
|
+
const L = [], P = [...m.pendingUnselectedColumns];
|
|
11017
11021
|
m.pendingSelectedColumns.forEach((K) => {
|
|
11018
|
-
M === K.value ?
|
|
11022
|
+
M === K.value ? P.push({
|
|
11019
11023
|
columnId: ot(),
|
|
11020
11024
|
name: K.name,
|
|
11021
11025
|
value: K.value
|
|
11022
11026
|
}) : L.push(K);
|
|
11023
11027
|
}), f({
|
|
11024
11028
|
pendingSelectedColumns: L,
|
|
11025
|
-
pendingUnselectedColumns:
|
|
11029
|
+
pendingUnselectedColumns: P
|
|
11026
11030
|
});
|
|
11027
11031
|
}
|
|
11028
11032
|
function k(M) {
|
|
11029
11033
|
if (!M.destination)
|
|
11030
11034
|
return;
|
|
11031
|
-
const L = [...m.pendingSelectedColumns], [
|
|
11032
|
-
L.splice(M.destination.index, 0,
|
|
11035
|
+
const L = [...m.pendingSelectedColumns], [P] = L.splice(M.source.index, 1);
|
|
11036
|
+
L.splice(M.destination.index, 0, P), f({ pendingSelectedColumns: L });
|
|
11033
11037
|
}
|
|
11034
11038
|
function b() {
|
|
11035
11039
|
const M = m.pendingSelectedColumns.map((L) => {
|
|
11036
|
-
const
|
|
11037
|
-
return
|
|
11040
|
+
const P = { ...L };
|
|
11041
|
+
return P.columnId && delete P.columnId, P;
|
|
11038
11042
|
});
|
|
11039
11043
|
T(h), f({
|
|
11040
11044
|
isVisible: !1,
|
|
@@ -11051,7 +11055,7 @@ function xu(e) {
|
|
|
11051
11055
|
const O = s.useCallback(
|
|
11052
11056
|
(M) => {
|
|
11053
11057
|
const L = new RegExp(M != null ? M : "", "i");
|
|
11054
|
-
return o ? m.pendingUnselectedColumns.filter((
|
|
11058
|
+
return o ? m.pendingUnselectedColumns.filter((P) => L.test(P.name)).map((P) => P.name).slice(0, o) : m.pendingUnselectedColumns.map((P) => P.name);
|
|
11055
11059
|
},
|
|
11056
11060
|
[m.pendingUnselectedColumns, o]
|
|
11057
11061
|
);
|
|
@@ -11134,8 +11138,8 @@ function xu(e) {
|
|
|
11134
11138
|
}, (M) => /* @__PURE__ */ s.createElement("div", {
|
|
11135
11139
|
...M.droppableProps,
|
|
11136
11140
|
ref: M.innerRef
|
|
11137
|
-
}, m.pendingSelectedColumns.map((L,
|
|
11138
|
-
index:
|
|
11141
|
+
}, m.pendingSelectedColumns.map((L, P) => /* @__PURE__ */ s.createElement(Ti, {
|
|
11142
|
+
index: P,
|
|
11139
11143
|
key: L.columnId,
|
|
11140
11144
|
columnId: L.columnId,
|
|
11141
11145
|
name: L.name,
|
|
@@ -11328,7 +11332,7 @@ function Iu(e) {
|
|
|
11328
11332
|
S && "sps-content-row--selected",
|
|
11329
11333
|
t && "sps-content-row--alternate-layout",
|
|
11330
11334
|
r
|
|
11331
|
-
), [
|
|
11335
|
+
), [P, [K]] = Rt(n, [
|
|
11332
11336
|
{ type: ar },
|
|
11333
11337
|
{ type: wi }
|
|
11334
11338
|
]);
|
|
@@ -11345,7 +11349,7 @@ function Iu(e) {
|
|
|
11345
11349
|
widthPx: 44
|
|
11346
11350
|
}, /* @__PURE__ */ s.createElement(M, null)), K && h && t && /* @__PURE__ */ s.createElement(ar, {
|
|
11347
11351
|
widthPx: 46
|
|
11348
|
-
}, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))),
|
|
11352
|
+
}, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), P), K);
|
|
11349
11353
|
}
|
|
11350
11354
|
Object.assign(Iu, {
|
|
11351
11355
|
props: kD,
|
|
@@ -11942,7 +11946,7 @@ function Ci(e) {
|
|
|
11942
11946
|
function L() {
|
|
11943
11947
|
y(se.nextMonth({ ...S, date: 15 })), u && T(se.nextMonth({ ...w, date: 15 }));
|
|
11944
11948
|
}
|
|
11945
|
-
function
|
|
11949
|
+
function P(N) {
|
|
11946
11950
|
N.target && N.target.classList.contains(`${at}-day`) ? u && N.target.classList.contains(`${w.month}`) ? O({
|
|
11947
11951
|
...w,
|
|
11948
11952
|
date: Number(N.target.textContent)
|
|
@@ -11987,7 +11991,7 @@ function Ci(e) {
|
|
|
11987
11991
|
"data-testid": `${m}`,
|
|
11988
11992
|
className: $,
|
|
11989
11993
|
...f,
|
|
11990
|
-
onMouseOver:
|
|
11994
|
+
onMouseOver: P
|
|
11991
11995
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
11992
11996
|
className: `${at}-head`
|
|
11993
11997
|
}, /* @__PURE__ */ s.createElement("button", {
|
|
@@ -12035,7 +12039,7 @@ function Ci(e) {
|
|
|
12035
12039
|
"data-testid": `${m}`,
|
|
12036
12040
|
className: $,
|
|
12037
12041
|
...f,
|
|
12038
|
-
onMouseOver:
|
|
12042
|
+
onMouseOver: P
|
|
12039
12043
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
12040
12044
|
className: `${at}-head`
|
|
12041
12045
|
}, /* @__PURE__ */ s.createElement("span", {
|
|
@@ -12082,7 +12086,7 @@ const sd = "sps-datepicker__popup", Di = s.forwardRef(
|
|
|
12082
12086
|
isOpen: r,
|
|
12083
12087
|
...a
|
|
12084
12088
|
}, o) => {
|
|
12085
|
-
const l = o || s.useRef(null), c =
|
|
12089
|
+
const l = o || s.useRef(null), c = es("sps-datepicker-popup-portal"), p = s.useContext(Ot), [u] = r ? ur(l, e, be.BOTTOM_LEFT, {
|
|
12086
12090
|
altPosition: rp(be.BOTTOM_LEFT),
|
|
12087
12091
|
...p
|
|
12088
12092
|
}) : [{}], m = V(
|
|
@@ -12129,33 +12133,44 @@ function ku({
|
|
|
12129
12133
|
se.toString(p)
|
|
12130
12134
|
), {
|
|
12131
12135
|
showPopup: x,
|
|
12132
|
-
doShowPopup: k
|
|
12136
|
+
doShowPopup: k,
|
|
12137
|
+
doHidePopup: b
|
|
12133
12138
|
} = ca(S, y);
|
|
12134
|
-
function
|
|
12135
|
-
r && (r.setValue(
|
|
12139
|
+
function I(_) {
|
|
12140
|
+
r && (r.setValue(_), r.markAsDirty()), c && c(_);
|
|
12136
12141
|
}
|
|
12137
|
-
function
|
|
12138
|
-
|
|
12142
|
+
function O(_) {
|
|
12143
|
+
I(_), D(se.toString(_)), w && w.current && w.current.focus();
|
|
12139
12144
|
}
|
|
12140
|
-
function
|
|
12141
|
-
D(
|
|
12142
|
-
const
|
|
12143
|
-
|
|
12145
|
+
function M(_) {
|
|
12146
|
+
D(_.target.value);
|
|
12147
|
+
const $ = se.createFrom(_.target.value);
|
|
12148
|
+
I($);
|
|
12144
12149
|
}
|
|
12145
|
-
function
|
|
12146
|
-
D(""),
|
|
12150
|
+
function L() {
|
|
12151
|
+
b(), D(""), I();
|
|
12147
12152
|
}
|
|
12148
|
-
|
|
12153
|
+
function P(_) {
|
|
12154
|
+
switch (_.key) {
|
|
12155
|
+
case "Tab":
|
|
12156
|
+
b();
|
|
12157
|
+
break;
|
|
12158
|
+
case "Backspace":
|
|
12159
|
+
_.target.selectionStart === 0 && p && !Array.isArray(p) && L();
|
|
12160
|
+
break;
|
|
12161
|
+
}
|
|
12162
|
+
}
|
|
12163
|
+
const K = V(
|
|
12149
12164
|
ad,
|
|
12150
12165
|
"sps-text-input",
|
|
12151
12166
|
x && `${ad}--open`,
|
|
12152
12167
|
t
|
|
12153
12168
|
);
|
|
12154
12169
|
return s.useEffect(() => {
|
|
12155
|
-
|
|
12170
|
+
p ? se.isValid(p) && D(se.toString(p)) : L();
|
|
12156
12171
|
}, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
|
|
12157
12172
|
id: f,
|
|
12158
|
-
className:
|
|
12173
|
+
className: K,
|
|
12159
12174
|
formMeta: r,
|
|
12160
12175
|
inputRef: w,
|
|
12161
12176
|
focusInputOnClick: !0,
|
|
@@ -12170,16 +12185,17 @@ function ku({
|
|
|
12170
12185
|
className: "sps-text-input__input",
|
|
12171
12186
|
id: h,
|
|
12172
12187
|
placeholder: la,
|
|
12173
|
-
onChange:
|
|
12188
|
+
onChange: M,
|
|
12174
12189
|
onClick: k,
|
|
12175
12190
|
onFocus: k,
|
|
12191
|
+
onKeyDown: P,
|
|
12176
12192
|
value: T,
|
|
12177
12193
|
disabled: n,
|
|
12178
12194
|
"data-testid": `${u}_date_input`,
|
|
12179
12195
|
...m
|
|
12180
12196
|
}), p && !n && /* @__PURE__ */ s.createElement("i", {
|
|
12181
12197
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
12182
|
-
onClick:
|
|
12198
|
+
onClick: L
|
|
12183
12199
|
}))), /* @__PURE__ */ s.createElement(Di, {
|
|
12184
12200
|
isOpen: x,
|
|
12185
12201
|
attachTo: S,
|
|
@@ -12187,7 +12203,7 @@ function ku({
|
|
|
12187
12203
|
}, /* @__PURE__ */ s.createElement(Ci, {
|
|
12188
12204
|
"data-testid": `${u}_calendar`,
|
|
12189
12205
|
selectedDate: p,
|
|
12190
|
-
onNewSelection:
|
|
12206
|
+
onNewSelection: O,
|
|
12191
12207
|
minDate: l,
|
|
12192
12208
|
maxDate: o
|
|
12193
12209
|
})));
|
|
@@ -12310,6 +12326,42 @@ const RD = {
|
|
|
12310
12326
|
`
|
|
12311
12327
|
}
|
|
12312
12328
|
}
|
|
12329
|
+
},
|
|
12330
|
+
required: {
|
|
12331
|
+
label: "Required",
|
|
12332
|
+
examples: {
|
|
12333
|
+
required: {
|
|
12334
|
+
react: E`
|
|
12335
|
+
import {
|
|
12336
|
+
useSpsForm,
|
|
12337
|
+
SpsLabel,
|
|
12338
|
+
SpsDatepicker,
|
|
12339
|
+
SpsValidators,
|
|
12340
|
+
} from "@spscommerce/ds-react";
|
|
12341
|
+
|
|
12342
|
+
function Component() {
|
|
12343
|
+
const { formValue, formMeta, updateForm } = useSpsForm({
|
|
12344
|
+
date: { year: 2018, month: 10, date: 31 },
|
|
12345
|
+
}, {
|
|
12346
|
+
"date": [SpsValidators.required, SpsValidators.date]
|
|
12347
|
+
});
|
|
12348
|
+
|
|
12349
|
+
return (
|
|
12350
|
+
<div className="sfg-row">
|
|
12351
|
+
<div className="sfg-col-3">
|
|
12352
|
+
<SpsLabel for={formMeta.fields.date}>Date</SpsLabel>
|
|
12353
|
+
<SpsDatepicker
|
|
12354
|
+
value={formValue.date}
|
|
12355
|
+
formMeta={formMeta.fields.date}
|
|
12356
|
+
data-testid="datepicker-required"
|
|
12357
|
+
/>
|
|
12358
|
+
</div>
|
|
12359
|
+
</div>
|
|
12360
|
+
);
|
|
12361
|
+
}
|
|
12362
|
+
`
|
|
12363
|
+
}
|
|
12364
|
+
}
|
|
12313
12365
|
}
|
|
12314
12366
|
}, PD = {
|
|
12315
12367
|
disabled: "boolean",
|
|
@@ -12348,7 +12400,7 @@ function Mu({
|
|
|
12348
12400
|
const { t: S } = s.useContext(Be), { wrapperId: y, controlId: w } = wt(a, r), T = s.useRef(null), D = s.useRef(null), x = s.useRef(null), [k, b] = s.useState(
|
|
12349
12401
|
Array.isArray(u) ? se.toStringRange(u) : ""
|
|
12350
12402
|
), [I, O] = s.useState(null), [M, L] = s.useState(), {
|
|
12351
|
-
showPopup:
|
|
12403
|
+
showPopup: P,
|
|
12352
12404
|
doShowPopup: K,
|
|
12353
12405
|
doHidePopup: _
|
|
12354
12406
|
} = ca(T, x);
|
|
@@ -12422,7 +12474,7 @@ function Mu({
|
|
|
12422
12474
|
const H = V(
|
|
12423
12475
|
od,
|
|
12424
12476
|
"sps-text-input",
|
|
12425
|
-
|
|
12477
|
+
P && `${od}--open`,
|
|
12426
12478
|
t
|
|
12427
12479
|
);
|
|
12428
12480
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
|
|
@@ -12459,7 +12511,7 @@ function Mu({
|
|
|
12459
12511
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
12460
12512
|
onClick: Q
|
|
12461
12513
|
}))), /* @__PURE__ */ s.createElement(Di, {
|
|
12462
|
-
isOpen:
|
|
12514
|
+
isOpen: P,
|
|
12463
12515
|
attachTo: T,
|
|
12464
12516
|
ref: x
|
|
12465
12517
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
@@ -12800,26 +12852,26 @@ function an() {
|
|
|
12800
12852
|
function L(i) {
|
|
12801
12853
|
return i instanceof M || i != null && i._isAMomentObject != null;
|
|
12802
12854
|
}
|
|
12803
|
-
function
|
|
12855
|
+
function P(i) {
|
|
12804
12856
|
r.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + i);
|
|
12805
12857
|
}
|
|
12806
12858
|
function K(i, d) {
|
|
12807
12859
|
var g = !0;
|
|
12808
12860
|
return S(function() {
|
|
12809
12861
|
if (r.deprecationHandler != null && r.deprecationHandler(null, i), g) {
|
|
12810
|
-
var v = [], C,
|
|
12811
|
-
for (
|
|
12812
|
-
if (C = "", typeof arguments[
|
|
12862
|
+
var v = [], C, R, U;
|
|
12863
|
+
for (R = 0; R < arguments.length; R++) {
|
|
12864
|
+
if (C = "", typeof arguments[R] == "object") {
|
|
12813
12865
|
C += `
|
|
12814
|
-
[` +
|
|
12866
|
+
[` + R + "] ";
|
|
12815
12867
|
for (U in arguments[0])
|
|
12816
12868
|
c(arguments[0], U) && (C += U + ": " + arguments[0][U] + ", ");
|
|
12817
12869
|
C = C.slice(0, -2);
|
|
12818
12870
|
} else
|
|
12819
|
-
C = arguments[
|
|
12871
|
+
C = arguments[R];
|
|
12820
12872
|
v.push(C);
|
|
12821
12873
|
}
|
|
12822
|
-
|
|
12874
|
+
P(
|
|
12823
12875
|
i + `
|
|
12824
12876
|
Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
12825
12877
|
` + new Error().stack
|
|
@@ -12830,7 +12882,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
12830
12882
|
}
|
|
12831
12883
|
var _ = {};
|
|
12832
12884
|
function $(i, d) {
|
|
12833
|
-
r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (
|
|
12885
|
+
r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (P(d), _[i] = !0);
|
|
12834
12886
|
}
|
|
12835
12887
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
12836
12888
|
function N(i) {
|
|
@@ -12875,8 +12927,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
12875
12927
|
return N(v) ? v.call(d, g) : v;
|
|
12876
12928
|
}
|
|
12877
12929
|
function F(i, d, g) {
|
|
12878
|
-
var v = "" + Math.abs(i), C = d - v.length,
|
|
12879
|
-
return (
|
|
12930
|
+
var v = "" + Math.abs(i), C = d - v.length, R = i >= 0;
|
|
12931
|
+
return (R ? g ? "+" : "" : "-") + Math.pow(10, Math.max(0, C)).toString().substr(1) + v;
|
|
12880
12932
|
}
|
|
12881
12933
|
var z = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, j = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, te = {}, X = {};
|
|
12882
12934
|
function G(i, d, g, v) {
|
|
@@ -12900,10 +12952,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
12900
12952
|
for (g = 0, v = d.length; g < v; g++)
|
|
12901
12953
|
X[d[g]] ? d[g] = X[d[g]] : d[g] = oe(d[g]);
|
|
12902
12954
|
return function(C) {
|
|
12903
|
-
var
|
|
12955
|
+
var R = "", U;
|
|
12904
12956
|
for (U = 0; U < v; U++)
|
|
12905
|
-
|
|
12906
|
-
return
|
|
12957
|
+
R += N(d[U]) ? d[U].call(C, i) : d[U];
|
|
12958
|
+
return R;
|
|
12907
12959
|
};
|
|
12908
12960
|
}
|
|
12909
12961
|
function le(i, d) {
|
|
@@ -12987,7 +13039,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
12987
13039
|
function we(i, d) {
|
|
12988
13040
|
Dt[i] = d;
|
|
12989
13041
|
}
|
|
12990
|
-
function
|
|
13042
|
+
function cs(i) {
|
|
12991
13043
|
var d = [], g;
|
|
12992
13044
|
for (g in i)
|
|
12993
13045
|
c(i, g) && d.push({ unit: g, priority: Dt[g] });
|
|
@@ -12995,7 +13047,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
12995
13047
|
return v.priority - C.priority;
|
|
12996
13048
|
}), d;
|
|
12997
13049
|
}
|
|
12998
|
-
function
|
|
13050
|
+
function Vn(i) {
|
|
12999
13051
|
return i % 4 === 0 && i % 100 !== 0 || i % 400 === 0;
|
|
13000
13052
|
}
|
|
13001
13053
|
function dt(i) {
|
|
@@ -13014,10 +13066,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13014
13066
|
return i.isValid() ? i._d["get" + (i._isUTC ? "UTC" : "") + d]() : NaN;
|
|
13015
13067
|
}
|
|
13016
13068
|
function Cr(i, d, g) {
|
|
13017
|
-
i.isValid() && !isNaN(g) && (d === "FullYear" &&
|
|
13069
|
+
i.isValid() && !isNaN(g) && (d === "FullYear" && Vn(i.year()) && i.month() === 1 && i.date() === 29 ? (g = Se(g), i._d["set" + (i._isUTC ? "UTC" : "") + d](
|
|
13018
13070
|
g,
|
|
13019
13071
|
i.month(),
|
|
13020
|
-
|
|
13072
|
+
hs(g, i.month())
|
|
13021
13073
|
)) : i._d["set" + (i._isUTC ? "UTC" : "") + d](g));
|
|
13022
13074
|
}
|
|
13023
13075
|
function Dr(i) {
|
|
@@ -13026,27 +13078,27 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13026
13078
|
function ya(i, d) {
|
|
13027
13079
|
if (typeof i == "object") {
|
|
13028
13080
|
i = Me(i);
|
|
13029
|
-
var g =
|
|
13081
|
+
var g = cs(i), v;
|
|
13030
13082
|
for (v = 0; v < g.length; v++)
|
|
13031
13083
|
this[g[v].unit](i[g[v].unit]);
|
|
13032
13084
|
} else if (i = Ne(i), N(this[i]))
|
|
13033
13085
|
return this[i](d);
|
|
13034
13086
|
return this;
|
|
13035
13087
|
}
|
|
13036
|
-
var
|
|
13037
|
-
|
|
13088
|
+
var ds = /\d/, nt = /\d\d/, Nr = /\d{3}/, xr = /\d{4}/, he = /[+-]?\d{6}/, ce = /\d\d?/, rt = /\d\d\d\d?/, yn = /\d\d\d\d\d\d?/, En = /\d{1,3}/, Ir = /\d{1,4}/, ps = /[+-]?\d{1,6}/, Kn = /\d+/, us = /[+-]?\d+/, sf = /Z|[+-]\d\d:?\d\d/gi, ms = /Z|[+-]\d\d(?::?\d\d)?/gi, af = /[+-]?\d+(\.\d{1,3})?/, kr = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, fs;
|
|
13089
|
+
fs = {};
|
|
13038
13090
|
function ie(i, d, g) {
|
|
13039
|
-
|
|
13091
|
+
fs[i] = N(d) ? d : function(v, C) {
|
|
13040
13092
|
return v && g ? g : d;
|
|
13041
13093
|
};
|
|
13042
13094
|
}
|
|
13043
13095
|
function of(i, d) {
|
|
13044
|
-
return c(
|
|
13096
|
+
return c(fs, i) ? fs[i](d._strict, d._locale) : new RegExp(lf(i));
|
|
13045
13097
|
}
|
|
13046
13098
|
function lf(i) {
|
|
13047
13099
|
return mt(
|
|
13048
|
-
i.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(d, g, v, C,
|
|
13049
|
-
return g || v || C ||
|
|
13100
|
+
i.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(d, g, v, C, R) {
|
|
13101
|
+
return g || v || C || R;
|
|
13050
13102
|
})
|
|
13051
13103
|
);
|
|
13052
13104
|
}
|
|
@@ -13056,14 +13108,14 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13056
13108
|
var Ea = {};
|
|
13057
13109
|
function _e(i, d) {
|
|
13058
13110
|
var g, v = d;
|
|
13059
|
-
for (typeof i == "string" && (i = [i]), m(d) && (v = function(C,
|
|
13060
|
-
|
|
13111
|
+
for (typeof i == "string" && (i = [i]), m(d) && (v = function(C, R) {
|
|
13112
|
+
R[d] = Se(C);
|
|
13061
13113
|
}), g = 0; g < i.length; g++)
|
|
13062
13114
|
Ea[i[g]] = v;
|
|
13063
13115
|
}
|
|
13064
13116
|
function Mr(i, d) {
|
|
13065
|
-
_e(i, function(g, v, C,
|
|
13066
|
-
C._w = C._w || {}, d(g, C._w, C,
|
|
13117
|
+
_e(i, function(g, v, C, R) {
|
|
13118
|
+
C._w = C._w || {}, d(g, C._w, C, R);
|
|
13067
13119
|
});
|
|
13068
13120
|
}
|
|
13069
13121
|
function cf(i, d, g) {
|
|
@@ -13081,11 +13133,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13081
13133
|
return d;
|
|
13082
13134
|
return -1;
|
|
13083
13135
|
};
|
|
13084
|
-
function
|
|
13136
|
+
function hs(i, d) {
|
|
13085
13137
|
if (isNaN(i) || isNaN(d))
|
|
13086
13138
|
return NaN;
|
|
13087
13139
|
var g = uf(d, 12);
|
|
13088
|
-
return i += (d - g) / 12, g === 1 ?
|
|
13140
|
+
return i += (d - g) / 12, g === 1 ? Vn(i) ? 29 : 28 : 31 - g % 7 % 2;
|
|
13089
13141
|
}
|
|
13090
13142
|
G("M", ["MM", 2], "Mo", function() {
|
|
13091
13143
|
return this.month() + 1;
|
|
@@ -13115,17 +13167,17 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13115
13167
|
return i ? o(this._monthsShort) ? this._monthsShort[i.month()] : this._monthsShort[al.test(d) ? "format" : "standalone"][i.month()] : o(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
13116
13168
|
}
|
|
13117
13169
|
function bf(i, d, g) {
|
|
13118
|
-
var v, C,
|
|
13170
|
+
var v, C, R, U = i.toLocaleLowerCase();
|
|
13119
13171
|
if (!this._monthsParse)
|
|
13120
13172
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], v = 0; v < 12; ++v)
|
|
13121
|
-
|
|
13122
|
-
|
|
13173
|
+
R = y([2e3, v]), this._shortMonthsParse[v] = this.monthsShort(
|
|
13174
|
+
R,
|
|
13123
13175
|
""
|
|
13124
|
-
).toLocaleLowerCase(), this._longMonthsParse[v] = this.months(
|
|
13176
|
+
).toLocaleLowerCase(), this._longMonthsParse[v] = this.months(R, "").toLocaleLowerCase();
|
|
13125
13177
|
return g ? d === "MMM" ? (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : null) : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : null) : d === "MMM" ? (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : null)) : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : null));
|
|
13126
13178
|
}
|
|
13127
13179
|
function vf(i, d, g) {
|
|
13128
|
-
var v, C,
|
|
13180
|
+
var v, C, R;
|
|
13129
13181
|
if (this._monthsParseExact)
|
|
13130
13182
|
return bf.call(this, i, d, g);
|
|
13131
13183
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), v = 0; v < 12; v++) {
|
|
@@ -13135,7 +13187,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13135
13187
|
), this._shortMonthsParse[v] = new RegExp(
|
|
13136
13188
|
"^" + this.monthsShort(C, "").replace(".", "") + "$",
|
|
13137
13189
|
"i"
|
|
13138
|
-
)), !g && !this._monthsParse[v] && (
|
|
13190
|
+
)), !g && !this._monthsParse[v] && (R = "^" + this.months(C, "") + "|^" + this.monthsShort(C, ""), this._monthsParse[v] = new RegExp(R.replace(".", ""), "i")), g && d === "MMMM" && this._longMonthsParse[v].test(i))
|
|
13139
13191
|
return v;
|
|
13140
13192
|
if (g && d === "MMM" && this._shortMonthsParse[v].test(i))
|
|
13141
13193
|
return v;
|
|
@@ -13153,13 +13205,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13153
13205
|
else if (d = i.localeData().monthsParse(d), !m(d))
|
|
13154
13206
|
return i;
|
|
13155
13207
|
}
|
|
13156
|
-
return g = Math.min(i.date(),
|
|
13208
|
+
return g = Math.min(i.date(), hs(i.year(), d)), i._d["set" + (i._isUTC ? "UTC" : "") + "Month"](d, g), i;
|
|
13157
13209
|
}
|
|
13158
13210
|
function il(i) {
|
|
13159
13211
|
return i != null ? (ol(this, i), r.updateOffset(this, !0), this) : Pt(this, "Month");
|
|
13160
13212
|
}
|
|
13161
13213
|
function yf() {
|
|
13162
|
-
return
|
|
13214
|
+
return hs(this.year(), this.month());
|
|
13163
13215
|
}
|
|
13164
13216
|
function Ef(i) {
|
|
13165
13217
|
return this._monthsParseExact ? (c(this, "_monthsRegex") || ll.call(this), i ? this._monthsShortStrictRegex : this._monthsShortRegex) : (c(this, "_monthsShortRegex") || (this._monthsShortRegex = ff), this._monthsShortStrictRegex && i ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
@@ -13171,9 +13223,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13171
13223
|
function i(U, fe) {
|
|
13172
13224
|
return fe.length - U.length;
|
|
13173
13225
|
}
|
|
13174
|
-
var d = [], g = [], v = [], C,
|
|
13226
|
+
var d = [], g = [], v = [], C, R;
|
|
13175
13227
|
for (C = 0; C < 12; C++)
|
|
13176
|
-
|
|
13228
|
+
R = y([2e3, C]), d.push(this.monthsShort(R, "")), g.push(this.months(R, "")), v.push(this.months(R, "")), v.push(this.monthsShort(R, ""));
|
|
13177
13229
|
for (d.sort(i), g.sort(i), v.sort(i), C = 0; C < 12; C++)
|
|
13178
13230
|
d[C] = mt(d[C]), g[C] = mt(g[C]);
|
|
13179
13231
|
for (C = 0; C < 24; C++)
|
|
@@ -13191,7 +13243,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13191
13243
|
return i <= 9999 ? F(i, 4) : "+" + i;
|
|
13192
13244
|
}), G(0, ["YY", 2], 0, function() {
|
|
13193
13245
|
return this.year() % 100;
|
|
13194
|
-
}), G(0, ["YYYY", 4], 0, "year"), G(0, ["YYYYY", 5], 0, "year"), G(0, ["YYYYYY", 6, !0], 0, "year"), de("year", "y"), we("year", 1), ie("Y",
|
|
13246
|
+
}), G(0, ["YYYY", 4], 0, "year"), G(0, ["YYYYY", 5], 0, "year"), G(0, ["YYYYYY", 6, !0], 0, "year"), de("year", "y"), we("year", 1), ie("Y", us), ie("YY", ce, nt), ie("YYYY", Ir, xr), ie("YYYYY", ps, he), ie("YYYYYY", ps, he), _e(["YYYYY", "YYYYYY"], et), _e("YYYY", function(i, d) {
|
|
13195
13247
|
d[et] = i.length === 2 ? r.parseTwoDigitYear(i) : Se(i);
|
|
13196
13248
|
}), _e("YY", function(i, d) {
|
|
13197
13249
|
d[et] = r.parseTwoDigitYear(i);
|
|
@@ -13199,43 +13251,43 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13199
13251
|
d[et] = parseInt(i, 10);
|
|
13200
13252
|
});
|
|
13201
13253
|
function _r(i) {
|
|
13202
|
-
return
|
|
13254
|
+
return Vn(i) ? 366 : 365;
|
|
13203
13255
|
}
|
|
13204
13256
|
r.parseTwoDigitYear = function(i) {
|
|
13205
13257
|
return Se(i) + (Se(i) > 68 ? 1900 : 2e3);
|
|
13206
13258
|
};
|
|
13207
13259
|
var cl = bt("FullYear", !0);
|
|
13208
13260
|
function wf() {
|
|
13209
|
-
return
|
|
13261
|
+
return Vn(this.year());
|
|
13210
13262
|
}
|
|
13211
|
-
function Cf(i, d, g, v, C,
|
|
13263
|
+
function Cf(i, d, g, v, C, R, U) {
|
|
13212
13264
|
var fe;
|
|
13213
|
-
return i < 100 && i >= 0 ? (fe = new Date(i + 400, d, g, v, C,
|
|
13265
|
+
return i < 100 && i >= 0 ? (fe = new Date(i + 400, d, g, v, C, R, U), isFinite(fe.getFullYear()) && fe.setFullYear(i)) : fe = new Date(i, d, g, v, C, R, U), fe;
|
|
13214
13266
|
}
|
|
13215
13267
|
function Lr(i) {
|
|
13216
13268
|
var d, g;
|
|
13217
13269
|
return i < 100 && i >= 0 ? (g = Array.prototype.slice.call(arguments), g[0] = i + 400, d = new Date(Date.UTC.apply(null, g)), isFinite(d.getUTCFullYear()) && d.setUTCFullYear(i)) : d = new Date(Date.UTC.apply(null, arguments)), d;
|
|
13218
13270
|
}
|
|
13219
|
-
function
|
|
13271
|
+
function gs(i, d, g) {
|
|
13220
13272
|
var v = 7 + d - g, C = (7 + Lr(i, 0, v).getUTCDay() - d) % 7;
|
|
13221
13273
|
return -C + v - 1;
|
|
13222
13274
|
}
|
|
13223
13275
|
function dl(i, d, g, v, C) {
|
|
13224
|
-
var
|
|
13276
|
+
var R = (7 + g - v) % 7, U = gs(i, v, C), fe = 1 + 7 * (d - 1) + R + U, ve, Oe;
|
|
13225
13277
|
return fe <= 0 ? (ve = i - 1, Oe = _r(ve) + fe) : fe > _r(i) ? (ve = i + 1, Oe = fe - _r(i)) : (ve = i, Oe = fe), {
|
|
13226
13278
|
year: ve,
|
|
13227
13279
|
dayOfYear: Oe
|
|
13228
13280
|
};
|
|
13229
13281
|
}
|
|
13230
13282
|
function Or(i, d, g) {
|
|
13231
|
-
var v =
|
|
13232
|
-
return C < 1 ? (U = i.year() - 1,
|
|
13233
|
-
week:
|
|
13283
|
+
var v = gs(i.year(), d, g), C = Math.floor((i.dayOfYear() - v - 1) / 7) + 1, R, U;
|
|
13284
|
+
return C < 1 ? (U = i.year() - 1, R = C + Yt(U, d, g)) : C > Yt(i.year(), d, g) ? (R = C - Yt(i.year(), d, g), U = i.year() + 1) : (U = i.year(), R = C), {
|
|
13285
|
+
week: R,
|
|
13234
13286
|
year: U
|
|
13235
13287
|
};
|
|
13236
13288
|
}
|
|
13237
13289
|
function Yt(i, d, g) {
|
|
13238
|
-
var v =
|
|
13290
|
+
var v = gs(i, d, g), C = gs(i + 1, d, g);
|
|
13239
13291
|
return (_r(i) - v + C) / 7;
|
|
13240
13292
|
}
|
|
13241
13293
|
G("w", ["ww", 2], "wo", "week"), G("W", ["WW", 2], "Wo", "isoWeek"), de("week", "w"), de("isoWeek", "W"), we("week", 5), we("isoWeek", 5), ie("w", ce), ie("ww", ce, nt), ie("W", ce), ie("WW", ce, nt), Mr(["w", "ww", "W", "WW"], function(i, d, g, v) {
|
|
@@ -13303,20 +13355,20 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13303
13355
|
return i === !0 ? Ta(this._weekdaysMin, this._week.dow) : i ? this._weekdaysMin[i.day()] : this._weekdaysMin;
|
|
13304
13356
|
}
|
|
13305
13357
|
function Kf(i, d, g) {
|
|
13306
|
-
var v, C,
|
|
13358
|
+
var v, C, R, U = i.toLocaleLowerCase();
|
|
13307
13359
|
if (!this._weekdaysParse)
|
|
13308
13360
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], v = 0; v < 7; ++v)
|
|
13309
|
-
|
|
13310
|
-
|
|
13361
|
+
R = y([2e3, 1]).day(v), this._minWeekdaysParse[v] = this.weekdaysMin(
|
|
13362
|
+
R,
|
|
13311
13363
|
""
|
|
13312
13364
|
).toLocaleLowerCase(), this._shortWeekdaysParse[v] = this.weekdaysShort(
|
|
13313
|
-
|
|
13365
|
+
R,
|
|
13314
13366
|
""
|
|
13315
|
-
).toLocaleLowerCase(), this._weekdaysParse[v] = this.weekdays(
|
|
13367
|
+
).toLocaleLowerCase(), this._weekdaysParse[v] = this.weekdays(R, "").toLocaleLowerCase();
|
|
13316
13368
|
return g ? d === "dddd" ? (C = Ue.call(this._weekdaysParse, U), C !== -1 ? C : null) : d === "ddd" ? (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 ? C : null) : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null) : d === "dddd" ? (C = Ue.call(this._weekdaysParse, U), C !== -1 || (C = Ue.call(this._shortWeekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null)) : d === "ddd" ? (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 || (C = Ue.call(this._weekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null)) : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 || (C = Ue.call(this._weekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 ? C : null));
|
|
13317
13369
|
}
|
|
13318
13370
|
function Hf(i, d, g) {
|
|
13319
|
-
var v, C,
|
|
13371
|
+
var v, C, R;
|
|
13320
13372
|
if (this._weekdaysParseExact)
|
|
13321
13373
|
return Kf.call(this, i, d, g);
|
|
13322
13374
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), v = 0; v < 7; v++) {
|
|
@@ -13329,7 +13381,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13329
13381
|
), this._minWeekdaysParse[v] = new RegExp(
|
|
13330
13382
|
"^" + this.weekdaysMin(C, "").replace(".", "\\.?") + "$",
|
|
13331
13383
|
"i"
|
|
13332
|
-
)), this._weekdaysParse[v] || (
|
|
13384
|
+
)), this._weekdaysParse[v] || (R = "^" + this.weekdays(C, "") + "|^" + this.weekdaysShort(C, "") + "|^" + this.weekdaysMin(C, ""), this._weekdaysParse[v] = new RegExp(R.replace(".", ""), "i")), g && d === "dddd" && this._fullWeekdaysParse[v].test(i))
|
|
13333
13385
|
return v;
|
|
13334
13386
|
if (g && d === "ddd" && this._shortWeekdaysParse[v].test(i))
|
|
13335
13387
|
return v;
|
|
@@ -13373,9 +13425,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13373
13425
|
function i(At, Zt) {
|
|
13374
13426
|
return Zt.length - At.length;
|
|
13375
13427
|
}
|
|
13376
|
-
var d = [], g = [], v = [], C = [],
|
|
13377
|
-
for (
|
|
13378
|
-
U = y([2e3, 1]).day(
|
|
13428
|
+
var d = [], g = [], v = [], C = [], R, U, fe, ve, Oe;
|
|
13429
|
+
for (R = 0; R < 7; R++)
|
|
13430
|
+
U = y([2e3, 1]).day(R), fe = mt(this.weekdaysMin(U, "")), ve = mt(this.weekdaysShort(U, "")), Oe = mt(this.weekdays(U, "")), d.push(fe), g.push(ve), v.push(Oe), C.push(fe), C.push(ve), C.push(Oe);
|
|
13379
13431
|
d.sort(i), g.sort(i), v.sort(i), C.sort(i), this._weekdaysRegex = new RegExp("^(" + C.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
13380
13432
|
"^(" + v.join("|") + ")",
|
|
13381
13433
|
"i"
|
|
@@ -13468,11 +13520,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13468
13520
|
return i && i.toLowerCase().replace("_", "-");
|
|
13469
13521
|
}
|
|
13470
13522
|
function th(i) {
|
|
13471
|
-
for (var d = 0, g, v, C,
|
|
13472
|
-
for (
|
|
13473
|
-
if (C =
|
|
13523
|
+
for (var d = 0, g, v, C, R; d < i.length; ) {
|
|
13524
|
+
for (R = hl(i[d]).split("-"), g = R.length, v = hl(i[d + 1]), v = v ? v.split("-") : null; g > 0; ) {
|
|
13525
|
+
if (C = Ss(R.slice(0, g).join("-")), C)
|
|
13474
13526
|
return C;
|
|
13475
|
-
if (v && v.length >= g && eh(
|
|
13527
|
+
if (v && v.length >= g && eh(R, v) >= g - 1)
|
|
13476
13528
|
break;
|
|
13477
13529
|
g--;
|
|
13478
13530
|
}
|
|
@@ -13480,7 +13532,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13480
13532
|
}
|
|
13481
13533
|
return Pr;
|
|
13482
13534
|
}
|
|
13483
|
-
function
|
|
13535
|
+
function Ss(i) {
|
|
13484
13536
|
var d = null, g;
|
|
13485
13537
|
if (Fe[i] === void 0 && !0 && e && e.exports)
|
|
13486
13538
|
try {
|
|
@@ -13507,7 +13559,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13507
13559
|
else if (d.parentLocale != null)
|
|
13508
13560
|
if (Fe[d.parentLocale] != null)
|
|
13509
13561
|
v = Fe[d.parentLocale]._config;
|
|
13510
|
-
else if (g =
|
|
13562
|
+
else if (g = Ss(d.parentLocale), g != null)
|
|
13511
13563
|
v = g._config;
|
|
13512
13564
|
else
|
|
13513
13565
|
return Rr[d.parentLocale] || (Rr[d.parentLocale] = []), Rr[d.parentLocale].push({
|
|
@@ -13523,7 +13575,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13523
13575
|
function nh(i, d) {
|
|
13524
13576
|
if (d != null) {
|
|
13525
13577
|
var g, v, C = fl;
|
|
13526
|
-
Fe[i] != null && Fe[i].parentLocale != null ? Fe[i].set(Q(Fe[i]._config, d)) : (v =
|
|
13578
|
+
Fe[i] != null && Fe[i].parentLocale != null ? Fe[i].set(Q(Fe[i]._config, d)) : (v = Ss(i), v != null && (C = v._config), d = Q(C, d), v == null && (d.abbr = i), g = new q(d), g.parentLocale = Fe[i], Fe[i] = g), on(i);
|
|
13527
13579
|
} else
|
|
13528
13580
|
Fe[i] != null && (Fe[i].parentLocale != null ? (Fe[i] = Fe[i].parentLocale, i === on() && on(i)) : Fe[i] != null && delete Fe[i]);
|
|
13529
13581
|
return Fe[i];
|
|
@@ -13533,7 +13585,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13533
13585
|
if (i && i._locale && i._locale._abbr && (i = i._locale._abbr), !i)
|
|
13534
13586
|
return Pr;
|
|
13535
13587
|
if (!o(i)) {
|
|
13536
|
-
if (d =
|
|
13588
|
+
if (d = Ss(i), d)
|
|
13537
13589
|
return d;
|
|
13538
13590
|
i = [i];
|
|
13539
13591
|
}
|
|
@@ -13544,9 +13596,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13544
13596
|
}
|
|
13545
13597
|
function Na(i) {
|
|
13546
13598
|
var d, g = i._a;
|
|
13547
|
-
return g && T(i).overflow === -2 && (d = g[Gt] < 0 || g[Gt] > 11 ? Gt : g[Bt] < 1 || g[Bt] >
|
|
13599
|
+
return g && T(i).overflow === -2 && (d = g[Gt] < 0 || g[Gt] > 11 ? Gt : g[Bt] < 1 || g[Bt] > hs(g[et], g[Gt]) ? Bt : g[ze] < 0 || g[ze] > 24 || g[ze] === 24 && (g[Nt] !== 0 || g[Ut] !== 0 || g[Tn] !== 0) ? ze : g[Nt] < 0 || g[Nt] > 59 ? Nt : g[Ut] < 0 || g[Ut] > 59 ? Ut : g[Tn] < 0 || g[Tn] > 999 ? Tn : -1, T(i)._overflowDayOfYear && (d < et || d > Bt) && (d = Bt), T(i)._overflowWeeks && d === -1 && (d = df), T(i)._overflowWeekday && d === -1 && (d = pf), T(i).overflow = d), i;
|
|
13548
13600
|
}
|
|
13549
|
-
var sh = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ah = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, oh = /Z|[+-]\d\d(?::?\d\d)?/,
|
|
13601
|
+
var sh = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ah = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, oh = /Z|[+-]\d\d(?::?\d\d)?/, bs = [
|
|
13550
13602
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
13551
13603
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
13552
13604
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -13583,11 +13635,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13583
13635
|
PST: -8 * 60
|
|
13584
13636
|
};
|
|
13585
13637
|
function gl(i) {
|
|
13586
|
-
var d, g, v = i._i, C = sh.exec(v) || ah.exec(v),
|
|
13638
|
+
var d, g, v = i._i, C = sh.exec(v) || ah.exec(v), R, U, fe, ve;
|
|
13587
13639
|
if (C) {
|
|
13588
|
-
for (T(i).iso = !0, d = 0, g =
|
|
13589
|
-
if (
|
|
13590
|
-
U =
|
|
13640
|
+
for (T(i).iso = !0, d = 0, g = bs.length; d < g; d++)
|
|
13641
|
+
if (bs[d][1].exec(C[1])) {
|
|
13642
|
+
U = bs[d][0], R = bs[d][2] !== !1;
|
|
13591
13643
|
break;
|
|
13592
13644
|
}
|
|
13593
13645
|
if (U == null) {
|
|
@@ -13605,7 +13657,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13605
13657
|
return;
|
|
13606
13658
|
}
|
|
13607
13659
|
}
|
|
13608
|
-
if (!
|
|
13660
|
+
if (!R && fe != null) {
|
|
13609
13661
|
i._isValid = !1;
|
|
13610
13662
|
return;
|
|
13611
13663
|
}
|
|
@@ -13620,7 +13672,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13620
13672
|
} else
|
|
13621
13673
|
i._isValid = !1;
|
|
13622
13674
|
}
|
|
13623
|
-
function dh(i, d, g, v, C,
|
|
13675
|
+
function dh(i, d, g, v, C, R) {
|
|
13624
13676
|
var U = [
|
|
13625
13677
|
ph(i),
|
|
13626
13678
|
sl.indexOf(d),
|
|
@@ -13628,7 +13680,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13628
13680
|
parseInt(v, 10),
|
|
13629
13681
|
parseInt(C, 10)
|
|
13630
13682
|
];
|
|
13631
|
-
return
|
|
13683
|
+
return R && U.push(parseInt(R, 10)), U;
|
|
13632
13684
|
}
|
|
13633
13685
|
function ph(i) {
|
|
13634
13686
|
var d = parseInt(i, 10);
|
|
@@ -13654,8 +13706,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13654
13706
|
return ch[i];
|
|
13655
13707
|
if (d)
|
|
13656
13708
|
return 0;
|
|
13657
|
-
var v = parseInt(g, 10), C = v % 100,
|
|
13658
|
-
return
|
|
13709
|
+
var v = parseInt(g, 10), C = v % 100, R = (v - C) / 100;
|
|
13710
|
+
return R * 60 + C;
|
|
13659
13711
|
}
|
|
13660
13712
|
function Sl(i) {
|
|
13661
13713
|
var d = lh.exec(uh(i._i)), g;
|
|
@@ -13695,7 +13747,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13695
13747
|
i._d = new Date(i._i + (i._useUTC ? " UTC" : ""));
|
|
13696
13748
|
}
|
|
13697
13749
|
);
|
|
13698
|
-
function
|
|
13750
|
+
function Hn(i, d, g) {
|
|
13699
13751
|
return i != null ? i : d != null ? d : g;
|
|
13700
13752
|
}
|
|
13701
13753
|
function gh(i) {
|
|
@@ -13707,25 +13759,25 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13707
13759
|
] : [d.getFullYear(), d.getMonth(), d.getDate()];
|
|
13708
13760
|
}
|
|
13709
13761
|
function Ia(i) {
|
|
13710
|
-
var d, g, v = [], C,
|
|
13762
|
+
var d, g, v = [], C, R, U;
|
|
13711
13763
|
if (!i._d) {
|
|
13712
|
-
for (C = gh(i), i._w && i._a[Bt] == null && i._a[Gt] == null && Sh(i), i._dayOfYear != null && (U =
|
|
13764
|
+
for (C = gh(i), i._w && i._a[Bt] == null && i._a[Gt] == null && Sh(i), i._dayOfYear != null && (U = Hn(i._a[et], C[et]), (i._dayOfYear > _r(U) || i._dayOfYear === 0) && (T(i)._overflowDayOfYear = !0), g = Lr(U, 0, i._dayOfYear), i._a[Gt] = g.getUTCMonth(), i._a[Bt] = g.getUTCDate()), d = 0; d < 3 && i._a[d] == null; ++d)
|
|
13713
13765
|
i._a[d] = v[d] = C[d];
|
|
13714
13766
|
for (; d < 7; d++)
|
|
13715
13767
|
i._a[d] = v[d] = i._a[d] == null ? d === 2 ? 1 : 0 : i._a[d];
|
|
13716
13768
|
i._a[ze] === 24 && i._a[Nt] === 0 && i._a[Ut] === 0 && i._a[Tn] === 0 && (i._nextDay = !0, i._a[ze] = 0), i._d = (i._useUTC ? Lr : Cf).apply(
|
|
13717
13769
|
null,
|
|
13718
13770
|
v
|
|
13719
|
-
),
|
|
13771
|
+
), R = i._useUTC ? i._d.getUTCDay() : i._d.getDay(), i._tzm != null && i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), i._nextDay && (i._a[ze] = 24), i._w && typeof i._w.d < "u" && i._w.d !== R && (T(i).weekdayMismatch = !0);
|
|
13720
13772
|
}
|
|
13721
13773
|
}
|
|
13722
13774
|
function Sh(i) {
|
|
13723
|
-
var d, g, v, C,
|
|
13724
|
-
d = i._w, d.GG != null || d.W != null || d.E != null ? (
|
|
13775
|
+
var d, g, v, C, R, U, fe, ve, Oe;
|
|
13776
|
+
d = i._w, d.GG != null || d.W != null || d.E != null ? (R = 1, U = 4, g = Hn(
|
|
13725
13777
|
d.GG,
|
|
13726
13778
|
i._a[et],
|
|
13727
13779
|
Or(Pe(), 1, 4).year
|
|
13728
|
-
), v =
|
|
13780
|
+
), v = Hn(d.W, 1), C = Hn(d.E, 1), (C < 1 || C > 7) && (ve = !0)) : (R = i._locale._week.dow, U = i._locale._week.doy, Oe = Or(Pe(), R, U), g = Hn(d.gg, i._a[et], Oe.year), v = Hn(d.w, Oe.week), d.d != null ? (C = d.d, (C < 0 || C > 6) && (ve = !0)) : d.e != null ? (C = d.e + R, (d.e < 0 || d.e > 6) && (ve = !0)) : C = R), v < 1 || v > Yt(g, R, U) ? T(i)._overflowWeeks = !0 : ve != null ? T(i)._overflowWeekday = !0 : (fe = dl(g, v, C, R, U), i._a[et] = fe.year, i._dayOfYear = fe.dayOfYear);
|
|
13729
13781
|
}
|
|
13730
13782
|
r.ISO_8601 = function() {
|
|
13731
13783
|
}, r.RFC_2822 = function() {
|
|
@@ -13740,11 +13792,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13740
13792
|
return;
|
|
13741
13793
|
}
|
|
13742
13794
|
i._a = [], T(i).empty = !0;
|
|
13743
|
-
var d = "" + i._i, g, v, C,
|
|
13795
|
+
var d = "" + i._i, g, v, C, R, U, fe = d.length, ve = 0, Oe;
|
|
13744
13796
|
for (C = ee(i._f, i._locale).match(z) || [], g = 0; g < C.length; g++)
|
|
13745
|
-
|
|
13797
|
+
R = C[g], v = (d.match(of(R, i)) || [])[0], v && (U = d.substr(0, d.indexOf(v)), U.length > 0 && T(i).unusedInput.push(U), d = d.slice(
|
|
13746
13798
|
d.indexOf(v) + v.length
|
|
13747
|
-
), ve += v.length), X[
|
|
13799
|
+
), ve += v.length), X[R] ? (v ? T(i).empty = !1 : T(i).unusedTokens.push(R), cf(R, v, i)) : i._strict && !v && T(i).unusedTokens.push(R);
|
|
13748
13800
|
T(i).charsLeftOver = fe - ve, d.length > 0 && T(i).unusedInput.push(d), i._a[ze] <= 12 && T(i).bigHour === !0 && i._a[ze] > 0 && (T(i).bigHour = void 0), T(i).parsedDateParts = i._a.slice(0), T(i).meridiem = i._meridiem, i._a[ze] = bh(
|
|
13749
13801
|
i._locale,
|
|
13750
13802
|
i._a[ze],
|
|
@@ -13756,13 +13808,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13756
13808
|
return g == null ? d : i.meridiemHour != null ? i.meridiemHour(d, g) : (i.isPM != null && (v = i.isPM(g), v && d < 12 && (d += 12), !v && d === 12 && (d = 0)), d);
|
|
13757
13809
|
}
|
|
13758
13810
|
function vh(i) {
|
|
13759
|
-
var d, g, v, C,
|
|
13811
|
+
var d, g, v, C, R, U, fe = !1;
|
|
13760
13812
|
if (i._f.length === 0) {
|
|
13761
13813
|
T(i).invalidFormat = !0, i._d = new Date(NaN);
|
|
13762
13814
|
return;
|
|
13763
13815
|
}
|
|
13764
13816
|
for (C = 0; C < i._f.length; C++)
|
|
13765
|
-
|
|
13817
|
+
R = 0, U = !1, d = O({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), x(d) && (U = !0), R += T(d).charsLeftOver, R += T(d).unusedTokens.length * 10, T(d).score = R, fe ? R < v && (v = R, g = d) : (v == null || R < v || U) && (v = R, g = d, U && (fe = !0));
|
|
13766
13818
|
S(i, g || d);
|
|
13767
13819
|
}
|
|
13768
13820
|
function yh(i) {
|
|
@@ -13791,8 +13843,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13791
13843
|
}), Ia(i)) : l(d) ? yh(i) : m(d) ? i._d = new Date(d) : r.createFromInputFallback(i);
|
|
13792
13844
|
}
|
|
13793
13845
|
function vl(i, d, g, v, C) {
|
|
13794
|
-
var
|
|
13795
|
-
return (d === !0 || d === !1) && (v = d, d = void 0), (g === !0 || g === !1) && (v = g, g = void 0), (l(i) && p(i) || o(i) && i.length === 0) && (i = void 0),
|
|
13846
|
+
var R = {};
|
|
13847
|
+
return (d === !0 || d === !1) && (v = d, d = void 0), (g === !0 || g === !1) && (v = g, g = void 0), (l(i) && p(i) || o(i) && i.length === 0) && (i = void 0), R._isAMomentObject = !0, R._useUTC = R._isUTC = C, R._l = g, R._i = i, R._f = d, R._strict = v, Eh(R);
|
|
13796
13848
|
}
|
|
13797
13849
|
function Pe(i, d, g, v) {
|
|
13798
13850
|
return vl(i, d, g, v, !1);
|
|
@@ -13858,21 +13910,21 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13858
13910
|
function Mh() {
|
|
13859
13911
|
return xt(NaN);
|
|
13860
13912
|
}
|
|
13861
|
-
function bs(i) {
|
|
13862
|
-
var d = Me(i), g = d.year || 0, v = d.quarter || 0, C = d.month || 0, P = d.week || d.isoWeek || 0, U = d.day || 0, fe = d.hour || 0, ve = d.minute || 0, Oe = d.second || 0, At = d.millisecond || 0;
|
|
13863
|
-
this._isValid = Ih(d), this._milliseconds = +At + Oe * 1e3 + ve * 6e4 + fe * 1e3 * 60 * 60, this._days = +U + P * 7, this._months = +C + v * 3 + g * 12, this._data = {}, this._locale = jt(), this._bubble();
|
|
13864
|
-
}
|
|
13865
13913
|
function vs(i) {
|
|
13866
|
-
|
|
13914
|
+
var d = Me(i), g = d.year || 0, v = d.quarter || 0, C = d.month || 0, R = d.week || d.isoWeek || 0, U = d.day || 0, fe = d.hour || 0, ve = d.minute || 0, Oe = d.second || 0, At = d.millisecond || 0;
|
|
13915
|
+
this._isValid = Ih(d), this._milliseconds = +At + Oe * 1e3 + ve * 6e4 + fe * 1e3 * 60 * 60, this._days = +U + R * 7, this._months = +C + v * 3 + g * 12, this._data = {}, this._locale = jt(), this._bubble();
|
|
13916
|
+
}
|
|
13917
|
+
function ys(i) {
|
|
13918
|
+
return i instanceof vs;
|
|
13867
13919
|
}
|
|
13868
13920
|
function Ma(i) {
|
|
13869
13921
|
return i < 0 ? Math.round(-1 * i) * -1 : Math.round(i);
|
|
13870
13922
|
}
|
|
13871
13923
|
function _h(i, d, g) {
|
|
13872
|
-
var v = Math.min(i.length, d.length), C = Math.abs(i.length - d.length),
|
|
13924
|
+
var v = Math.min(i.length, d.length), C = Math.abs(i.length - d.length), R = 0, U;
|
|
13873
13925
|
for (U = 0; U < v; U++)
|
|
13874
|
-
(g && i[U] !== d[U] || !g && Se(i[U]) !== Se(d[U])) &&
|
|
13875
|
-
return
|
|
13926
|
+
(g && i[U] !== d[U] || !g && Se(i[U]) !== Se(d[U])) && R++;
|
|
13927
|
+
return R + C;
|
|
13876
13928
|
}
|
|
13877
13929
|
function El(i, d) {
|
|
13878
13930
|
G(i, 0, 0, function() {
|
|
@@ -13880,13 +13932,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13880
13932
|
return g < 0 && (g = -g, v = "-"), v + F(~~(g / 60), 2) + d + F(~~g % 60, 2);
|
|
13881
13933
|
});
|
|
13882
13934
|
}
|
|
13883
|
-
El("Z", ":"), El("ZZ", ""), ie("Z",
|
|
13884
|
-
g._useUTC = !0, g._tzm = _a(
|
|
13935
|
+
El("Z", ":"), El("ZZ", ""), ie("Z", ms), ie("ZZ", ms), _e(["Z", "ZZ"], function(i, d, g) {
|
|
13936
|
+
g._useUTC = !0, g._tzm = _a(ms, i);
|
|
13885
13937
|
});
|
|
13886
13938
|
var Lh = /([\+\-]|\d\d)/gi;
|
|
13887
13939
|
function _a(i, d) {
|
|
13888
|
-
var g = (d || "").match(i), v, C,
|
|
13889
|
-
return g === null ? null : (v = g[g.length - 1] || [], C = (v + "").match(Lh) || ["-", 0, 0],
|
|
13940
|
+
var g = (d || "").match(i), v, C, R;
|
|
13941
|
+
return g === null ? null : (v = g[g.length - 1] || [], C = (v + "").match(Lh) || ["-", 0, 0], R = +(C[1] * 60) + Se(C[2]), R === 0 ? 0 : C[0] === "+" ? R : -R);
|
|
13890
13942
|
}
|
|
13891
13943
|
function La(i, d) {
|
|
13892
13944
|
var g, v;
|
|
@@ -13903,7 +13955,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13903
13955
|
return i != null ? this : NaN;
|
|
13904
13956
|
if (i != null) {
|
|
13905
13957
|
if (typeof i == "string") {
|
|
13906
|
-
if (i = _a(
|
|
13958
|
+
if (i = _a(ms, i), i === null)
|
|
13907
13959
|
return this;
|
|
13908
13960
|
} else
|
|
13909
13961
|
Math.abs(i) < 16 && !g && (i = i * 60);
|
|
@@ -13957,8 +14009,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13957
14009
|
}
|
|
13958
14010
|
var Wh = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Gh = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
13959
14011
|
function xt(i, d) {
|
|
13960
|
-
var g = i, v = null, C,
|
|
13961
|
-
return
|
|
14012
|
+
var g = i, v = null, C, R, U;
|
|
14013
|
+
return ys(i) ? g = {
|
|
13962
14014
|
ms: i._milliseconds,
|
|
13963
14015
|
d: i._days,
|
|
13964
14016
|
M: i._months
|
|
@@ -13980,9 +14032,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13980
14032
|
}) : g == null ? g = {} : typeof g == "object" && ("from" in g || "to" in g) && (U = Uh(
|
|
13981
14033
|
Pe(g.from),
|
|
13982
14034
|
Pe(g.to)
|
|
13983
|
-
), g = {}, g.ms = U.milliseconds, g.M = U.months),
|
|
14035
|
+
), g = {}, g.ms = U.milliseconds, g.M = U.months), R = new vs(g), ys(i) && c(i, "_locale") && (R._locale = i._locale), ys(i) && c(i, "_isValid") && (R._isValid = i._isValid), R;
|
|
13984
14036
|
}
|
|
13985
|
-
xt.fn =
|
|
14037
|
+
xt.fn = vs.prototype, xt.invalid = Mh;
|
|
13986
14038
|
function wn(i, d) {
|
|
13987
14039
|
var g = i && parseFloat(i.replace(",", "."));
|
|
13988
14040
|
return (isNaN(g) ? 0 : g) * d;
|
|
@@ -13997,16 +14049,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
13997
14049
|
}
|
|
13998
14050
|
function Cl(i, d) {
|
|
13999
14051
|
return function(g, v) {
|
|
14000
|
-
var C,
|
|
14052
|
+
var C, R;
|
|
14001
14053
|
return v !== null && !isNaN(+v) && ($(
|
|
14002
14054
|
d,
|
|
14003
14055
|
"moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
14004
|
-
),
|
|
14056
|
+
), R = g, g = v, v = R), C = xt(g, v), Dl(this, C, i), this;
|
|
14005
14057
|
};
|
|
14006
14058
|
}
|
|
14007
14059
|
function Dl(i, d, g, v) {
|
|
14008
|
-
var C = d._milliseconds,
|
|
14009
|
-
!i.isValid() || (v = v == null ? !0 : v, U && ol(i, Pt(i, "Month") + U * g),
|
|
14060
|
+
var C = d._milliseconds, R = Ma(d._days), U = Ma(d._months);
|
|
14061
|
+
!i.isValid() || (v = v == null ? !0 : v, U && ol(i, Pt(i, "Month") + U * g), R && Cr(i, "Date", Pt(i, "Date") + R * g), C && i._d.setTime(i._d.valueOf() + C * g), v && r.updateOffset(i, R || U));
|
|
14010
14062
|
}
|
|
14011
14063
|
var Yh = Cl(1, "add"), jh = Cl(-1, "subtract");
|
|
14012
14064
|
function Nl(i) {
|
|
@@ -14041,9 +14093,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14041
14093
|
"milliseconds",
|
|
14042
14094
|
"millisecond",
|
|
14043
14095
|
"ms"
|
|
14044
|
-
], C,
|
|
14096
|
+
], C, R;
|
|
14045
14097
|
for (C = 0; C < v.length; C += 1)
|
|
14046
|
-
|
|
14098
|
+
R = v[C], g = g || c(i, R);
|
|
14047
14099
|
return d && g;
|
|
14048
14100
|
}
|
|
14049
14101
|
function Jh(i) {
|
|
@@ -14060,9 +14112,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14060
14112
|
"nextWeek",
|
|
14061
14113
|
"lastWeek",
|
|
14062
14114
|
"sameElse"
|
|
14063
|
-
], C,
|
|
14115
|
+
], C, R;
|
|
14064
14116
|
for (C = 0; C < v.length; C += 1)
|
|
14065
|
-
|
|
14117
|
+
R = v[C], g = g || c(i, R);
|
|
14066
14118
|
return d && g;
|
|
14067
14119
|
}
|
|
14068
14120
|
function Xh(i, d) {
|
|
@@ -14071,9 +14123,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14071
14123
|
}
|
|
14072
14124
|
function Qh(i, d) {
|
|
14073
14125
|
arguments.length === 1 && (arguments[0] ? zh(arguments[0]) ? (i = arguments[0], d = void 0) : Zh(arguments[0]) && (d = arguments[0], i = void 0) : (i = void 0, d = void 0));
|
|
14074
|
-
var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse",
|
|
14126
|
+
var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse", R = d && (N(d[C]) ? d[C].call(this, g) : d[C]);
|
|
14075
14127
|
return this.format(
|
|
14076
|
-
|
|
14128
|
+
R || this.localeData().calendar(C, this, Pe(g))
|
|
14077
14129
|
);
|
|
14078
14130
|
}
|
|
14079
14131
|
function eg() {
|
|
@@ -14088,8 +14140,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14088
14140
|
return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() < g.valueOf() : this.clone().endOf(d).valueOf() < g.valueOf()) : !1;
|
|
14089
14141
|
}
|
|
14090
14142
|
function rg(i, d, g, v) {
|
|
14091
|
-
var C = L(i) ? i : Pe(i),
|
|
14092
|
-
return this.isValid() && C.isValid() &&
|
|
14143
|
+
var C = L(i) ? i : Pe(i), R = L(d) ? d : Pe(d);
|
|
14144
|
+
return this.isValid() && C.isValid() && R.isValid() ? (v = v || "()", (v[0] === "(" ? this.isAfter(C, g) : !this.isBefore(C, g)) && (v[1] === ")" ? this.isBefore(R, g) : !this.isAfter(R, g))) : !1;
|
|
14093
14145
|
}
|
|
14094
14146
|
function sg(i, d) {
|
|
14095
14147
|
var g = L(i) ? i : Pe(i), v;
|
|
@@ -14102,46 +14154,46 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14102
14154
|
return this.isSame(i, d) || this.isBefore(i, d);
|
|
14103
14155
|
}
|
|
14104
14156
|
function ig(i, d, g) {
|
|
14105
|
-
var v, C,
|
|
14157
|
+
var v, C, R;
|
|
14106
14158
|
if (!this.isValid())
|
|
14107
14159
|
return NaN;
|
|
14108
14160
|
if (v = La(i, this), !v.isValid())
|
|
14109
14161
|
return NaN;
|
|
14110
14162
|
switch (C = (v.utcOffset() - this.utcOffset()) * 6e4, d = Ne(d), d) {
|
|
14111
14163
|
case "year":
|
|
14112
|
-
|
|
14164
|
+
R = Es(this, v) / 12;
|
|
14113
14165
|
break;
|
|
14114
14166
|
case "month":
|
|
14115
|
-
|
|
14167
|
+
R = Es(this, v);
|
|
14116
14168
|
break;
|
|
14117
14169
|
case "quarter":
|
|
14118
|
-
|
|
14170
|
+
R = Es(this, v) / 3;
|
|
14119
14171
|
break;
|
|
14120
14172
|
case "second":
|
|
14121
|
-
|
|
14173
|
+
R = (this - v) / 1e3;
|
|
14122
14174
|
break;
|
|
14123
14175
|
case "minute":
|
|
14124
|
-
|
|
14176
|
+
R = (this - v) / 6e4;
|
|
14125
14177
|
break;
|
|
14126
14178
|
case "hour":
|
|
14127
|
-
|
|
14179
|
+
R = (this - v) / 36e5;
|
|
14128
14180
|
break;
|
|
14129
14181
|
case "day":
|
|
14130
|
-
|
|
14182
|
+
R = (this - v - C) / 864e5;
|
|
14131
14183
|
break;
|
|
14132
14184
|
case "week":
|
|
14133
|
-
|
|
14185
|
+
R = (this - v - C) / 6048e5;
|
|
14134
14186
|
break;
|
|
14135
14187
|
default:
|
|
14136
|
-
|
|
14188
|
+
R = this - v;
|
|
14137
14189
|
}
|
|
14138
|
-
return g ?
|
|
14190
|
+
return g ? R : dt(R);
|
|
14139
14191
|
}
|
|
14140
|
-
function
|
|
14192
|
+
function Es(i, d) {
|
|
14141
14193
|
if (i.date() < d.date())
|
|
14142
|
-
return -
|
|
14143
|
-
var g = (d.year() - i.year()) * 12 + (d.month() - i.month()), v = i.clone().add(g, "months"), C,
|
|
14144
|
-
return d - v < 0 ? (C = i.clone().add(g - 1, "months"),
|
|
14194
|
+
return -Es(d, i);
|
|
14195
|
+
var g = (d.year() - i.year()) * 12 + (d.month() - i.month()), v = i.clone().add(g, "months"), C, R;
|
|
14196
|
+
return d - v < 0 ? (C = i.clone().add(g - 1, "months"), R = (d - v) / (v - C)) : (C = i.clone().add(g + 1, "months"), R = (d - v) / (C - v)), -(g + R) || 0;
|
|
14145
14197
|
}
|
|
14146
14198
|
r.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", r.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
14147
14199
|
function lg() {
|
|
@@ -14162,8 +14214,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14162
14214
|
function dg() {
|
|
14163
14215
|
if (!this.isValid())
|
|
14164
14216
|
return "moment.invalid(/* " + this._i + " */)";
|
|
14165
|
-
var i = "moment", d = "", g, v, C,
|
|
14166
|
-
return this.isLocal() || (i = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), g = "[" + i + '("]', v = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", C = "-MM-DD[T]HH:mm:ss.SSS",
|
|
14217
|
+
var i = "moment", d = "", g, v, C, R;
|
|
14218
|
+
return this.isLocal() || (i = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), g = "[" + i + '("]', v = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", C = "-MM-DD[T]HH:mm:ss.SSS", R = d + '[")]', this.format(g + v + C + R);
|
|
14167
14219
|
}
|
|
14168
14220
|
function pg(i) {
|
|
14169
14221
|
i || (i = this.isUtc() ? r.defaultFormatUtc : r.defaultFormat);
|
|
@@ -14195,8 +14247,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14195
14247
|
function kl() {
|
|
14196
14248
|
return this._locale;
|
|
14197
14249
|
}
|
|
14198
|
-
var
|
|
14199
|
-
function
|
|
14250
|
+
var Ts = 1e3, Wn = 60 * Ts, ws = 60 * Wn, Ml = (365 * 400 + 97) * 24 * ws;
|
|
14251
|
+
function Gn(i, d) {
|
|
14200
14252
|
return (i % d + d) % d;
|
|
14201
14253
|
}
|
|
14202
14254
|
function _l(i, d, g) {
|
|
@@ -14242,16 +14294,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14242
14294
|
d = g(this.year(), this.month(), this.date());
|
|
14243
14295
|
break;
|
|
14244
14296
|
case "hour":
|
|
14245
|
-
d = this._d.valueOf(), d -=
|
|
14246
|
-
d + (this._isUTC ? 0 : this.utcOffset() *
|
|
14247
|
-
|
|
14297
|
+
d = this._d.valueOf(), d -= Gn(
|
|
14298
|
+
d + (this._isUTC ? 0 : this.utcOffset() * Wn),
|
|
14299
|
+
ws
|
|
14248
14300
|
);
|
|
14249
14301
|
break;
|
|
14250
14302
|
case "minute":
|
|
14251
|
-
d = this._d.valueOf(), d -=
|
|
14303
|
+
d = this._d.valueOf(), d -= Gn(d, Wn);
|
|
14252
14304
|
break;
|
|
14253
14305
|
case "second":
|
|
14254
|
-
d = this._d.valueOf(), d -=
|
|
14306
|
+
d = this._d.valueOf(), d -= Gn(d, Ts);
|
|
14255
14307
|
break;
|
|
14256
14308
|
}
|
|
14257
14309
|
return this._d.setTime(d), r.updateOffset(this, !0), this;
|
|
@@ -14293,16 +14345,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14293
14345
|
d = g(this.year(), this.month(), this.date() + 1) - 1;
|
|
14294
14346
|
break;
|
|
14295
14347
|
case "hour":
|
|
14296
|
-
d = this._d.valueOf(), d +=
|
|
14297
|
-
d + (this._isUTC ? 0 : this.utcOffset() *
|
|
14298
|
-
|
|
14348
|
+
d = this._d.valueOf(), d += ws - Gn(
|
|
14349
|
+
d + (this._isUTC ? 0 : this.utcOffset() * Wn),
|
|
14350
|
+
ws
|
|
14299
14351
|
) - 1;
|
|
14300
14352
|
break;
|
|
14301
14353
|
case "minute":
|
|
14302
|
-
d = this._d.valueOf(), d +=
|
|
14354
|
+
d = this._d.valueOf(), d += Wn - Gn(d, Wn) - 1;
|
|
14303
14355
|
break;
|
|
14304
14356
|
case "second":
|
|
14305
|
-
d = this._d.valueOf(), d +=
|
|
14357
|
+
d = this._d.valueOf(), d += Ts - Gn(d, Ts) - 1;
|
|
14306
14358
|
break;
|
|
14307
14359
|
}
|
|
14308
14360
|
return this._d.setTime(d), r.updateOffset(this, !0), this;
|
|
@@ -14364,51 +14416,51 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14364
14416
|
G("N", 0, 0, "eraAbbr"), G("NN", 0, 0, "eraAbbr"), G("NNN", 0, 0, "eraAbbr"), G("NNNN", 0, 0, "eraName"), G("NNNNN", 0, 0, "eraNarrow"), G("y", ["y", 1], "yo", "eraYear"), G("y", ["yy", 2], 0, "eraYear"), G("y", ["yyy", 3], 0, "eraYear"), G("y", ["yyyy", 4], 0, "eraYear"), ie("N", Ra), ie("NN", Ra), ie("NNN", Ra), ie("NNNN", Fg), ie("NNNNN", $g), _e(["N", "NN", "NNN", "NNNN", "NNNNN"], function(i, d, g, v) {
|
|
14365
14417
|
var C = g._locale.erasParse(i, v, g._strict);
|
|
14366
14418
|
C ? T(g).era = C : T(g).invalidEra = i;
|
|
14367
|
-
}), ie("y",
|
|
14419
|
+
}), ie("y", Kn), ie("yy", Kn), ie("yyy", Kn), ie("yyyy", Kn), ie("yo", Vg), _e(["y", "yy", "yyy", "yyyy"], et), _e(["yo"], function(i, d, g, v) {
|
|
14368
14420
|
var C;
|
|
14369
14421
|
g._locale._eraYearOrdinalRegex && (C = i.match(g._locale._eraYearOrdinalRegex)), g._locale.eraYearOrdinalParse ? d[et] = g._locale.eraYearOrdinalParse(i, C) : d[et] = parseInt(i, 10);
|
|
14370
14422
|
});
|
|
14371
14423
|
function Ig(i, d) {
|
|
14372
|
-
var g, v, C,
|
|
14373
|
-
for (g = 0, v =
|
|
14374
|
-
switch (typeof
|
|
14424
|
+
var g, v, C, R = this._eras || jt("en")._eras;
|
|
14425
|
+
for (g = 0, v = R.length; g < v; ++g) {
|
|
14426
|
+
switch (typeof R[g].since) {
|
|
14375
14427
|
case "string":
|
|
14376
|
-
C = r(
|
|
14428
|
+
C = r(R[g].since).startOf("day"), R[g].since = C.valueOf();
|
|
14377
14429
|
break;
|
|
14378
14430
|
}
|
|
14379
|
-
switch (typeof
|
|
14431
|
+
switch (typeof R[g].until) {
|
|
14380
14432
|
case "undefined":
|
|
14381
|
-
|
|
14433
|
+
R[g].until = 1 / 0;
|
|
14382
14434
|
break;
|
|
14383
14435
|
case "string":
|
|
14384
|
-
C = r(
|
|
14436
|
+
C = r(R[g].until).startOf("day").valueOf(), R[g].until = C.valueOf();
|
|
14385
14437
|
break;
|
|
14386
14438
|
}
|
|
14387
14439
|
}
|
|
14388
|
-
return
|
|
14440
|
+
return R;
|
|
14389
14441
|
}
|
|
14390
14442
|
function kg(i, d, g) {
|
|
14391
|
-
var v, C,
|
|
14392
|
-
for (i = i.toUpperCase(), v = 0, C =
|
|
14393
|
-
if (U =
|
|
14443
|
+
var v, C, R = this.eras(), U, fe, ve;
|
|
14444
|
+
for (i = i.toUpperCase(), v = 0, C = R.length; v < C; ++v)
|
|
14445
|
+
if (U = R[v].name.toUpperCase(), fe = R[v].abbr.toUpperCase(), ve = R[v].narrow.toUpperCase(), g)
|
|
14394
14446
|
switch (d) {
|
|
14395
14447
|
case "N":
|
|
14396
14448
|
case "NN":
|
|
14397
14449
|
case "NNN":
|
|
14398
14450
|
if (fe === i)
|
|
14399
|
-
return
|
|
14451
|
+
return R[v];
|
|
14400
14452
|
break;
|
|
14401
14453
|
case "NNNN":
|
|
14402
14454
|
if (U === i)
|
|
14403
|
-
return
|
|
14455
|
+
return R[v];
|
|
14404
14456
|
break;
|
|
14405
14457
|
case "NNNNN":
|
|
14406
14458
|
if (ve === i)
|
|
14407
|
-
return
|
|
14459
|
+
return R[v];
|
|
14408
14460
|
break;
|
|
14409
14461
|
}
|
|
14410
14462
|
else if ([U, fe, ve].indexOf(i) >= 0)
|
|
14411
|
-
return
|
|
14463
|
+
return R[v];
|
|
14412
14464
|
}
|
|
14413
14465
|
function Mg(i, d) {
|
|
14414
14466
|
var g = i.since <= i.until ? 1 : -1;
|
|
@@ -14461,11 +14513,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14461
14513
|
return d.erasNarrowRegex(i);
|
|
14462
14514
|
}
|
|
14463
14515
|
function Vg(i, d) {
|
|
14464
|
-
return d._eraYearOrdinalRegex ||
|
|
14516
|
+
return d._eraYearOrdinalRegex || Kn;
|
|
14465
14517
|
}
|
|
14466
14518
|
function Pa() {
|
|
14467
|
-
var i = [], d = [], g = [], v = [], C,
|
|
14468
|
-
for (C = 0,
|
|
14519
|
+
var i = [], d = [], g = [], v = [], C, R, U = this.eras();
|
|
14520
|
+
for (C = 0, R = U.length; C < R; ++C)
|
|
14469
14521
|
d.push(mt(U[C].name)), i.push(mt(U[C].abbr)), g.push(mt(U[C].narrow)), v.push(mt(U[C].name)), v.push(mt(U[C].abbr)), v.push(mt(U[C].narrow));
|
|
14470
14522
|
this._erasRegex = new RegExp("^(" + v.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
14471
14523
|
"^(" + g.join("|") + ")",
|
|
@@ -14477,10 +14529,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14477
14529
|
}), G(0, ["GG", 2], 0, function() {
|
|
14478
14530
|
return this.isoWeekYear() % 100;
|
|
14479
14531
|
});
|
|
14480
|
-
function
|
|
14532
|
+
function Cs(i, d) {
|
|
14481
14533
|
G(0, [i, i.length], 0, d);
|
|
14482
14534
|
}
|
|
14483
|
-
|
|
14535
|
+
Cs("gggg", "weekYear"), Cs("ggggg", "weekYear"), Cs("GGGG", "isoWeekYear"), Cs("GGGGG", "isoWeekYear"), de("weekYear", "gg"), de("isoWeekYear", "GG"), we("weekYear", 1), we("isoWeekYear", 1), ie("G", us), ie("g", us), ie("GG", ce, nt), ie("gg", ce, nt), ie("GGGG", Ir, xr), ie("gggg", Ir, xr), ie("GGGGG", ps, he), ie("ggggg", ps, he), Mr(["gggg", "ggggg", "GGGG", "GGGGG"], function(i, d, g, v) {
|
|
14484
14536
|
d[v.substr(0, 2)] = Se(i);
|
|
14485
14537
|
}), Mr(["gg", "GG"], function(i, d, g, v) {
|
|
14486
14538
|
d[v] = r.parseTwoDigitYear(i);
|
|
@@ -14520,14 +14572,14 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14520
14572
|
return Yt(this.weekYear(), i.dow, i.doy);
|
|
14521
14573
|
}
|
|
14522
14574
|
function Ol(i, d, g, v, C) {
|
|
14523
|
-
var
|
|
14524
|
-
return i == null ? Or(this, v, C).year : (
|
|
14575
|
+
var R;
|
|
14576
|
+
return i == null ? Or(this, v, C).year : (R = Yt(i, v, C), d > R && (d = R), jg.call(this, i, d, g, v, C));
|
|
14525
14577
|
}
|
|
14526
14578
|
function jg(i, d, g, v, C) {
|
|
14527
|
-
var
|
|
14579
|
+
var R = dl(i, d, g, v, C), U = Lr(R.year, 0, R.dayOfYear);
|
|
14528
14580
|
return this.year(U.getUTCFullYear()), this.month(U.getUTCMonth()), this.date(U.getUTCDate()), this;
|
|
14529
14581
|
}
|
|
14530
|
-
G("Q", 0, "Qo", "quarter"), de("quarter", "Q"), we("quarter", 7), ie("Q",
|
|
14582
|
+
G("Q", 0, "Qo", "quarter"), de("quarter", "Q"), we("quarter", 7), ie("Q", ds), _e("Q", function(i, d) {
|
|
14531
14583
|
d[Gt] = (Se(i) - 1) * 3;
|
|
14532
14584
|
});
|
|
14533
14585
|
function zg(i) {
|
|
@@ -14568,10 +14620,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14568
14620
|
return this.millisecond() * 1e5;
|
|
14569
14621
|
}), G(0, ["SSSSSSSSS", 9], 0, function() {
|
|
14570
14622
|
return this.millisecond() * 1e6;
|
|
14571
|
-
}), de("millisecond", "ms"), we("millisecond", 16), ie("S", En,
|
|
14623
|
+
}), de("millisecond", "ms"), we("millisecond", 16), ie("S", En, ds), ie("SS", En, nt), ie("SSS", En, Nr);
|
|
14572
14624
|
var ln, Pl;
|
|
14573
14625
|
for (ln = "SSSS"; ln.length <= 9; ln += "S")
|
|
14574
|
-
ie(ln,
|
|
14626
|
+
ie(ln, Kn);
|
|
14575
14627
|
function Xg(i, d) {
|
|
14576
14628
|
d[Tn] = Se(("0." + i) * 1e3);
|
|
14577
14629
|
}
|
|
@@ -14614,25 +14666,25 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14614
14666
|
}
|
|
14615
14667
|
var xe = q.prototype;
|
|
14616
14668
|
xe.calendar = H, xe.longDateFormat = De, xe.invalidDate = Ze, xe.ordinal = St, xe.preparse = Bl, xe.postformat = Bl, xe.relativeTime = ge, xe.pastFuture = Ae, xe.set = A, xe.eras = Ig, xe.erasParse = kg, xe.erasConvertYear = Mg, xe.erasAbbrRegex = Bg, xe.erasNameRegex = Pg, xe.erasNarrowRegex = Ag, xe.months = gf, xe.monthsShort = Sf, xe.monthsParse = vf, xe.monthsRegex = Tf, xe.monthsShortRegex = Ef, xe.week = Df, xe.firstDayOfYear = If, xe.firstDayOfWeek = xf, xe.weekdays = Ff, xe.weekdaysMin = Vf, xe.weekdaysShort = $f, xe.weekdaysParse = Hf, xe.weekdaysRegex = Yf, xe.weekdaysShortRegex = jf, xe.weekdaysMinRegex = zf, xe.isPM = Jf, xe.meridiem = Qf;
|
|
14617
|
-
function
|
|
14618
|
-
var C = jt(),
|
|
14619
|
-
return C[g](
|
|
14669
|
+
function Ds(i, d, g, v) {
|
|
14670
|
+
var C = jt(), R = y().set(v, d);
|
|
14671
|
+
return C[g](R, i);
|
|
14620
14672
|
}
|
|
14621
14673
|
function Al(i, d, g) {
|
|
14622
14674
|
if (m(i) && (d = i, i = void 0), i = i || "", d != null)
|
|
14623
|
-
return
|
|
14675
|
+
return Ds(i, d, g, "month");
|
|
14624
14676
|
var v, C = [];
|
|
14625
14677
|
for (v = 0; v < 12; v++)
|
|
14626
|
-
C[v] =
|
|
14678
|
+
C[v] = Ds(i, v, g, "month");
|
|
14627
14679
|
return C;
|
|
14628
14680
|
}
|
|
14629
14681
|
function Ba(i, d, g, v) {
|
|
14630
14682
|
typeof i == "boolean" ? (m(d) && (g = d, d = void 0), d = d || "") : (d = i, g = d, i = !1, m(d) && (g = d, d = void 0), d = d || "");
|
|
14631
|
-
var C = jt(),
|
|
14683
|
+
var C = jt(), R = i ? C._week.dow : 0, U, fe = [];
|
|
14632
14684
|
if (g != null)
|
|
14633
|
-
return
|
|
14685
|
+
return Ds(d, (g + R) % 7, v, "day");
|
|
14634
14686
|
for (U = 0; U < 7; U++)
|
|
14635
|
-
fe[U] =
|
|
14687
|
+
fe[U] = Ds(d, (U + R) % 7, v, "day");
|
|
14636
14688
|
return fe;
|
|
14637
14689
|
}
|
|
14638
14690
|
function rS(i, d) {
|
|
@@ -14700,8 +14752,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14700
14752
|
return i < 0 ? Math.floor(i) : Math.ceil(i);
|
|
14701
14753
|
}
|
|
14702
14754
|
function pS() {
|
|
14703
|
-
var i = this._milliseconds, d = this._days, g = this._months, v = this._data, C,
|
|
14704
|
-
return i >= 0 && d >= 0 && g >= 0 || i <= 0 && d <= 0 && g <= 0 || (i += $l(Aa(g) + d) * 864e5, d = 0, g = 0), v.milliseconds = i % 1e3, C = dt(i / 1e3), v.seconds = C % 60,
|
|
14755
|
+
var i = this._milliseconds, d = this._days, g = this._months, v = this._data, C, R, U, fe, ve;
|
|
14756
|
+
return i >= 0 && d >= 0 && g >= 0 || i <= 0 && d <= 0 && g <= 0 || (i += $l(Aa(g) + d) * 864e5, d = 0, g = 0), v.milliseconds = i % 1e3, C = dt(i / 1e3), v.seconds = C % 60, R = dt(C / 60), v.minutes = R % 60, U = dt(R / 60), v.hours = U % 24, d += dt(U / 24), ve = dt(Vl(d)), g += ve, d -= $l(Aa(ve)), fe = dt(g / 12), g %= 12, v.days = d, v.months = g, v.years = fe, this;
|
|
14705
14757
|
}
|
|
14706
14758
|
function Vl(i) {
|
|
14707
14759
|
return i * 4800 / 146097;
|
|
@@ -14764,7 +14816,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14764
14816
|
function LS() {
|
|
14765
14817
|
return dt(this.days() / 7);
|
|
14766
14818
|
}
|
|
14767
|
-
var Jt = Math.round,
|
|
14819
|
+
var Jt = Math.round, Un = {
|
|
14768
14820
|
ss: 44,
|
|
14769
14821
|
s: 45,
|
|
14770
14822
|
m: 45,
|
|
@@ -14777,42 +14829,42 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14777
14829
|
return C.relativeTime(d || 1, !!g, i, v);
|
|
14778
14830
|
}
|
|
14779
14831
|
function RS(i, d, g, v) {
|
|
14780
|
-
var C = xt(i).abs(),
|
|
14832
|
+
var C = xt(i).abs(), R = Jt(C.as("s")), U = Jt(C.as("m")), fe = Jt(C.as("h")), ve = Jt(C.as("d")), Oe = Jt(C.as("M")), At = Jt(C.as("w")), Zt = Jt(C.as("y")), cn = R <= g.ss && ["s", R] || R < g.s && ["ss", R] || U <= 1 && ["m"] || U < g.m && ["mm", U] || fe <= 1 && ["h"] || fe < g.h && ["hh", fe] || ve <= 1 && ["d"] || ve < g.d && ["dd", ve];
|
|
14781
14833
|
return g.w != null && (cn = cn || At <= 1 && ["w"] || At < g.w && ["ww", At]), cn = cn || Oe <= 1 && ["M"] || Oe < g.M && ["MM", Oe] || Zt <= 1 && ["y"] || ["yy", Zt], cn[2] = d, cn[3] = +i > 0, cn[4] = v, OS.apply(null, cn);
|
|
14782
14834
|
}
|
|
14783
14835
|
function PS(i) {
|
|
14784
14836
|
return i === void 0 ? Jt : typeof i == "function" ? (Jt = i, !0) : !1;
|
|
14785
14837
|
}
|
|
14786
14838
|
function BS(i, d) {
|
|
14787
|
-
return
|
|
14839
|
+
return Un[i] === void 0 ? !1 : d === void 0 ? Un[i] : (Un[i] = d, i === "s" && (Un.ss = d - 1), !0);
|
|
14788
14840
|
}
|
|
14789
14841
|
function AS(i, d) {
|
|
14790
14842
|
if (!this.isValid())
|
|
14791
14843
|
return this.localeData().invalidDate();
|
|
14792
|
-
var g = !1, v =
|
|
14793
|
-
return typeof i == "object" && (d = i, i = !1), typeof i == "boolean" && (g = i), typeof d == "object" && (v = Object.assign({},
|
|
14844
|
+
var g = !1, v = Un, C, R;
|
|
14845
|
+
return typeof i == "object" && (d = i, i = !1), typeof i == "boolean" && (g = i), typeof d == "object" && (v = Object.assign({}, Un, d), d.s != null && d.ss == null && (v.ss = d.s - 1)), C = this.localeData(), R = RS(this, !g, v, C), g && (R = C.pastFuture(+this, R)), C.postformat(R);
|
|
14794
14846
|
}
|
|
14795
14847
|
var Fa = Math.abs;
|
|
14796
|
-
function
|
|
14848
|
+
function Yn(i) {
|
|
14797
14849
|
return (i > 0) - (i < 0) || +i;
|
|
14798
14850
|
}
|
|
14799
|
-
function
|
|
14851
|
+
function Ns() {
|
|
14800
14852
|
if (!this.isValid())
|
|
14801
14853
|
return this.localeData().invalidDate();
|
|
14802
|
-
var i = Fa(this._milliseconds) / 1e3, d = Fa(this._days), g = Fa(this._months), v, C,
|
|
14803
|
-
return fe ? (v = dt(i / 60), C = dt(v / 60), i %= 60, v %= 60,
|
|
14854
|
+
var i = Fa(this._milliseconds) / 1e3, d = Fa(this._days), g = Fa(this._months), v, C, R, U, fe = this.asSeconds(), ve, Oe, At, Zt;
|
|
14855
|
+
return fe ? (v = dt(i / 60), C = dt(v / 60), i %= 60, v %= 60, R = dt(g / 12), g %= 12, U = i ? i.toFixed(3).replace(/\.?0+$/, "") : "", ve = fe < 0 ? "-" : "", Oe = Yn(this._months) !== Yn(fe) ? "-" : "", At = Yn(this._days) !== Yn(fe) ? "-" : "", Zt = Yn(this._milliseconds) !== Yn(fe) ? "-" : "", ve + "P" + (R ? Oe + R + "Y" : "") + (g ? Oe + g + "M" : "") + (d ? At + d + "D" : "") + (C || v || i ? "T" : "") + (C ? Zt + C + "H" : "") + (v ? Zt + v + "M" : "") + (i ? Zt + U + "S" : "")) : "P0D";
|
|
14804
14856
|
}
|
|
14805
|
-
var Ee =
|
|
14806
|
-
Ee.isValid = kh, Ee.abs = lS, Ee.add = cS, Ee.subtract = dS, Ee.as = uS, Ee.asMilliseconds = fS, Ee.asSeconds = hS, Ee.asMinutes = gS, Ee.asHours = SS, Ee.asDays = bS, Ee.asWeeks = vS, Ee.asMonths = yS, Ee.asQuarters = ES, Ee.asYears = TS, Ee.valueOf = mS, Ee._bubble = pS, Ee.clone = wS, Ee.get = CS, Ee.milliseconds = DS, Ee.seconds = NS, Ee.minutes = xS, Ee.hours = IS, Ee.days = kS, Ee.weeks = LS, Ee.months = MS, Ee.years = _S, Ee.humanize = AS, Ee.toISOString =
|
|
14857
|
+
var Ee = vs.prototype;
|
|
14858
|
+
Ee.isValid = kh, Ee.abs = lS, Ee.add = cS, Ee.subtract = dS, Ee.as = uS, Ee.asMilliseconds = fS, Ee.asSeconds = hS, Ee.asMinutes = gS, Ee.asHours = SS, Ee.asDays = bS, Ee.asWeeks = vS, Ee.asMonths = yS, Ee.asQuarters = ES, Ee.asYears = TS, Ee.valueOf = mS, Ee._bubble = pS, Ee.clone = wS, Ee.get = CS, Ee.milliseconds = DS, Ee.seconds = NS, Ee.minutes = xS, Ee.hours = IS, Ee.days = kS, Ee.weeks = LS, Ee.months = MS, Ee.years = _S, Ee.humanize = AS, Ee.toISOString = Ns, Ee.toString = Ns, Ee.toJSON = Ns, Ee.locale = xl, Ee.localeData = kl, Ee.toIsoString = K(
|
|
14807
14859
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
14808
|
-
|
|
14809
|
-
), Ee.lang = Il, G("X", 0, 0, "unix"), G("x", 0, 0, "valueOf"), ie("x",
|
|
14860
|
+
Ns
|
|
14861
|
+
), Ee.lang = Il, G("X", 0, 0, "unix"), G("x", 0, 0, "valueOf"), ie("x", us), ie("X", af), _e("X", function(i, d, g) {
|
|
14810
14862
|
g._d = new Date(parseFloat(i) * 1e3);
|
|
14811
14863
|
}), _e("x", function(i, d, g) {
|
|
14812
14864
|
g._d = new Date(Se(i));
|
|
14813
14865
|
});
|
|
14814
14866
|
//! moment.js
|
|
14815
|
-
return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment = L, r.weekdays = aS, r.parseZone = nS, r.localeData = jt, r.isDuration =
|
|
14867
|
+
return r.version = "2.29.1", a(Pe), r.fn = Z, r.min = Dh, r.max = Nh, r.now = xh, r.utc = y, r.unix = tS, r.months = rS, r.isDate = f, r.locale = on, r.invalid = k, r.duration = xt, r.isMoment = L, r.weekdays = aS, r.parseZone = nS, r.localeData = jt, r.isDuration = ys, r.monthsShort = sS, r.weekdaysMin = iS, r.defineLocale = Da, r.updateLocale = nh, r.locales = rh, r.weekdaysShort = oS, r.normalizeUnits = Ne, r.relativeTimeRounding = PS, r.relativeTimeThreshold = BS, r.calendarFormat = Xh, r.prototype = Z, r.HTML5_FMT = {
|
|
14816
14868
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
14817
14869
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
14818
14870
|
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
@@ -15732,7 +15784,7 @@ var ye = /* @__PURE__ */ ((e) => (e.VISIBLE = "visible", e.DEFER_VISIBLE = "defe
|
|
|
15732
15784
|
function po(e) {
|
|
15733
15785
|
return e === "visible" ? "hidden" : "visible";
|
|
15734
15786
|
}
|
|
15735
|
-
const cd = 13,
|
|
15787
|
+
const cd = 13, In = /* @__PURE__ */ new Map(), UD = {
|
|
15736
15788
|
for: { type: "React.MutableRefObject<any> | string", required: !0 },
|
|
15737
15789
|
hideDelay: "number",
|
|
15738
15790
|
isShown: "TooltipVisibility",
|
|
@@ -15771,17 +15823,17 @@ function Lt({
|
|
|
15771
15823
|
I(), D(!1);
|
|
15772
15824
|
}, []), M = s.useCallback((J = !1) => {
|
|
15773
15825
|
var H;
|
|
15774
|
-
if (J === !0 &&
|
|
15826
|
+
if (J === !0 && In.size > 0)
|
|
15775
15827
|
return p && p(), !1;
|
|
15776
15828
|
if (((H = x.current) == null ? void 0 : H.textContent) === "")
|
|
15777
15829
|
return console.warn("SpsTooltip is empty; aborting show"), !1;
|
|
15778
15830
|
I();
|
|
15779
|
-
for (const F of
|
|
15831
|
+
for (const F of In.values())
|
|
15780
15832
|
F();
|
|
15781
15833
|
return D(!0), !0;
|
|
15782
15834
|
}, []), L = s.useCallback((J) => {
|
|
15783
15835
|
J && J.stopPropagation(), D((H) => H ? (O(), !1) : M());
|
|
15784
|
-
}, []),
|
|
15836
|
+
}, []), P = s.useCallback((J) => {
|
|
15785
15837
|
x.current && !x.current.contains(J.target) && O();
|
|
15786
15838
|
}, []), K = s.useCallback(() => {
|
|
15787
15839
|
I(), w.current.hideTimer = window.setTimeout(O, a);
|
|
@@ -15802,7 +15854,7 @@ function Lt({
|
|
|
15802
15854
|
return 0;
|
|
15803
15855
|
}, []);
|
|
15804
15856
|
s.useEffect(() => {
|
|
15805
|
-
if (typeof n == "string" && (k.current = document.getElementById(n)), T ?
|
|
15857
|
+
if (typeof n == "string" && (k.current = document.getElementById(n)), T ? In.set(w.current.instanceKey, O) : In.has(w.current.instanceKey) && In.delete(w.current.instanceKey), f === it.MANUAL) {
|
|
15806
15858
|
if (o !== w.current.prevIsShown)
|
|
15807
15859
|
switch (o) {
|
|
15808
15860
|
case "visible":
|
|
@@ -15827,7 +15879,7 @@ function Lt({
|
|
|
15827
15879
|
k.current.addEventListener("mouseenter", M), k.current.addEventListener("mouseleave", K);
|
|
15828
15880
|
break;
|
|
15829
15881
|
case it.CLICK:
|
|
15830
|
-
k.current.addEventListener("click", L), document.addEventListener("click",
|
|
15882
|
+
k.current.addEventListener("click", L), document.addEventListener("click", P);
|
|
15831
15883
|
break;
|
|
15832
15884
|
case it.MANUAL:
|
|
15833
15885
|
break;
|
|
@@ -15837,11 +15889,11 @@ function Lt({
|
|
|
15837
15889
|
((J = x.current) == null ? void 0 : J.textContent) === "" && T && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), D(!1));
|
|
15838
15890
|
}, [e, T]), s.useEffect(
|
|
15839
15891
|
() => () => {
|
|
15840
|
-
|
|
15892
|
+
In.has(w.current.instanceKey) && In.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", L), document.removeEventListener("click", P));
|
|
15841
15893
|
},
|
|
15842
15894
|
[]
|
|
15843
15895
|
);
|
|
15844
|
-
const $ =
|
|
15896
|
+
const $ = es("sps-tooltip-portal"), N = s.useContext(Ot), [[A, Q], q] = s.useState([{}, !1]);
|
|
15845
15897
|
s.useEffect(() => {
|
|
15846
15898
|
q(T ? ur(x, k, u, {
|
|
15847
15899
|
altPosition: m,
|
|
@@ -16928,7 +16980,7 @@ function Bu({
|
|
|
16928
16980
|
u && !O && "sps-fieldset--collapsed",
|
|
16929
16981
|
p && "sps-fieldset--required-fields"
|
|
16930
16982
|
);
|
|
16931
|
-
function
|
|
16983
|
+
function P() {
|
|
16932
16984
|
k(x === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
|
|
16933
16985
|
}
|
|
16934
16986
|
return /* @__PURE__ */ s.createElement("div", {
|
|
@@ -16941,7 +16993,7 @@ function Bu({
|
|
|
16941
16993
|
ref: T,
|
|
16942
16994
|
onMouseEnter: () => k(ye.VISIBLE),
|
|
16943
16995
|
onMouseLeave: () => k(ye.DELAYED_HIDDEN),
|
|
16944
|
-
onClick:
|
|
16996
|
+
onClick: P
|
|
16945
16997
|
}, u && /* @__PURE__ */ s.createElement(vr, {
|
|
16946
16998
|
checked: O,
|
|
16947
16999
|
className: "d-inline-flex pr-1",
|
|
@@ -17504,8 +17556,8 @@ function _i(e) {
|
|
|
17504
17556
|
l || (D.current = T());
|
|
17505
17557
|
}
|
|
17506
17558
|
function k() {
|
|
17507
|
-
for (const
|
|
17508
|
-
window.clearTimeout(
|
|
17559
|
+
for (const P of D.current)
|
|
17560
|
+
window.clearTimeout(P);
|
|
17509
17561
|
D.current = [];
|
|
17510
17562
|
}
|
|
17511
17563
|
function b() {
|
|
@@ -17523,7 +17575,7 @@ function _i(e) {
|
|
|
17523
17575
|
);
|
|
17524
17576
|
return s.useEffect(() => (x(), () => {
|
|
17525
17577
|
k();
|
|
17526
|
-
}), []),
|
|
17578
|
+
}), []), es("sps-growler-display-area", ["sps-growler-area", "z-stratum-growlers"])(
|
|
17527
17579
|
/* @__PURE__ */ s.createElement("div", {
|
|
17528
17580
|
role: "alert",
|
|
17529
17581
|
className: M,
|
|
@@ -18054,34 +18106,34 @@ function Fu({
|
|
|
18054
18106
|
const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, x] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I, O] = s.useState(ye.HIDDEN), [M, L] = s.useState(
|
|
18055
18107
|
ye.HIDDEN
|
|
18056
18108
|
);
|
|
18057
|
-
function
|
|
18109
|
+
function P() {
|
|
18058
18110
|
x(ye.HIDDEN), b(ye.HIDDEN), O(ye.HIDDEN), L(ye.HIDDEN);
|
|
18059
18111
|
}
|
|
18060
18112
|
function K() {
|
|
18061
18113
|
x(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN), O(ye.DELAYED_HIDDEN);
|
|
18062
18114
|
}
|
|
18063
18115
|
function _(te) {
|
|
18064
|
-
te.preventDefault(),
|
|
18116
|
+
te.preventDefault(), P(), O(po(I));
|
|
18065
18117
|
}
|
|
18066
18118
|
function $() {
|
|
18067
18119
|
return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M, L] : o ? [D, x] : a ? [I, O] : [ye.HIDDEN, () => {
|
|
18068
18120
|
}];
|
|
18069
18121
|
}
|
|
18070
18122
|
function N() {
|
|
18071
|
-
|
|
18123
|
+
P();
|
|
18072
18124
|
const [te, X] = $();
|
|
18073
18125
|
X(po(te));
|
|
18074
18126
|
}
|
|
18075
18127
|
function A() {
|
|
18076
|
-
|
|
18128
|
+
P();
|
|
18077
18129
|
const [, te] = $();
|
|
18078
18130
|
te(ye.VISIBLE);
|
|
18079
18131
|
}
|
|
18080
18132
|
function Q(te) {
|
|
18081
|
-
te.preventDefault(),
|
|
18133
|
+
te.preventDefault(), P(), x(po(D));
|
|
18082
18134
|
}
|
|
18083
18135
|
s.useEffect(() => {
|
|
18084
|
-
r && (r.onFocus = A, r.onBlur =
|
|
18136
|
+
r && (r.onFocus = A, r.onBlur = P);
|
|
18085
18137
|
}, [r]);
|
|
18086
18138
|
const q = V(u || "sps-form-group__label", t), [W, J] = r instanceof rr ? [r, void 0] : [void 0, r];
|
|
18087
18139
|
function H() {
|
|
@@ -18743,9 +18795,9 @@ const fN = ({
|
|
|
18743
18795
|
function y() {
|
|
18744
18796
|
if (e.current && p && (h && (h.style.backgroundColor = yo.blue200), S && f && (S.style.height = `${f.getBoundingClientRect().height}px`, S.style.display = "block"), f)) {
|
|
18745
18797
|
const L = f.querySelectorAll("thead > tr > th");
|
|
18746
|
-
for (let
|
|
18747
|
-
const K = L[
|
|
18748
|
-
L[
|
|
18798
|
+
for (let P = 0; P < L.length; P += 1) {
|
|
18799
|
+
const K = L[P].querySelector(".sps-table__column-resizer");
|
|
18800
|
+
L[P].style.cursor = "col-resize", L[P] !== e.current && K && (L[P].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
|
|
18749
18801
|
}
|
|
18750
18802
|
}
|
|
18751
18803
|
}
|
|
@@ -18756,8 +18808,8 @@ const fN = ({
|
|
|
18756
18808
|
if (e.current) {
|
|
18757
18809
|
const L = u ? `${u}px` : "";
|
|
18758
18810
|
e.current.style.width = L, e.current.style.maxWidth = L, e.current.style.minWidth = L;
|
|
18759
|
-
const
|
|
18760
|
-
if (
|
|
18811
|
+
const P = e.current.querySelector(".sps-table__header-cell-body");
|
|
18812
|
+
if (P && (P.style.overflow = L ? "hidden" : "", P.style.textOverflow = L ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
|
|
18761
18813
|
const K = f.querySelectorAll("thead > tr > th");
|
|
18762
18814
|
for (let _ = 0; _ < K.length; _ += 1) {
|
|
18763
18815
|
const $ = K[_].querySelector(".sps-table__header-cell-body"), N = K[_].querySelector(".sps-table__column-resizer");
|
|
@@ -18771,8 +18823,8 @@ const fN = ({
|
|
|
18771
18823
|
}, x = (L) => {
|
|
18772
18824
|
if (!p || !e.current)
|
|
18773
18825
|
return;
|
|
18774
|
-
const
|
|
18775
|
-
|
|
18826
|
+
const P = Math.max(Math.min(p - L.clientX, 40), -40);
|
|
18827
|
+
P !== 0 && (p = L.clientX, m += P, u = Math.max(u - P, 40), w());
|
|
18776
18828
|
}, k = () => {
|
|
18777
18829
|
!e.current || !p || (p = 0, m = 0, T(), o(n, u));
|
|
18778
18830
|
}, b = () => {
|
|
@@ -18880,7 +18932,7 @@ Object.assign(gN, {
|
|
|
18880
18932
|
const Wu = {
|
|
18881
18933
|
pinned: "boolean"
|
|
18882
18934
|
};
|
|
18883
|
-
function
|
|
18935
|
+
function Fn({
|
|
18884
18936
|
children: e,
|
|
18885
18937
|
className: t,
|
|
18886
18938
|
"data-testid": n,
|
|
@@ -18899,12 +18951,12 @@ function An({
|
|
|
18899
18951
|
...o
|
|
18900
18952
|
}, e);
|
|
18901
18953
|
}
|
|
18902
|
-
Object.assign(
|
|
18954
|
+
Object.assign(Fn, {
|
|
18903
18955
|
props: Wu,
|
|
18904
18956
|
displayName: "SpsTableHead"
|
|
18905
18957
|
});
|
|
18906
18958
|
function SN(e) {
|
|
18907
|
-
return /* @__PURE__ */ s.createElement(
|
|
18959
|
+
return /* @__PURE__ */ s.createElement(Fn, {
|
|
18908
18960
|
...e
|
|
18909
18961
|
});
|
|
18910
18962
|
}
|
|
@@ -18942,7 +18994,7 @@ Object.assign(bN, {
|
|
|
18942
18994
|
displayName: "SpsTr"
|
|
18943
18995
|
});
|
|
18944
18996
|
const Uu = {};
|
|
18945
|
-
function
|
|
18997
|
+
function $n(e) {
|
|
18946
18998
|
const {
|
|
18947
18999
|
children: t,
|
|
18948
19000
|
className: n,
|
|
@@ -18959,12 +19011,12 @@ function Fn(e) {
|
|
|
18959
19011
|
...o
|
|
18960
19012
|
}, t);
|
|
18961
19013
|
}
|
|
18962
|
-
Object.assign(
|
|
19014
|
+
Object.assign($n, {
|
|
18963
19015
|
props: Uu,
|
|
18964
19016
|
displayName: "SpsTableBody"
|
|
18965
19017
|
});
|
|
18966
19018
|
function vN(e) {
|
|
18967
|
-
return /* @__PURE__ */ s.createElement(
|
|
19019
|
+
return /* @__PURE__ */ s.createElement($n, {
|
|
18968
19020
|
...e
|
|
18969
19021
|
});
|
|
18970
19022
|
}
|
|
@@ -20459,7 +20511,7 @@ const CN = {
|
|
|
20459
20511
|
src: "assets/images/list-action-bar-example.svg",
|
|
20460
20512
|
alt: "A List Action Bar with labels on each section",
|
|
20461
20513
|
className: "w-100 mb-3"
|
|
20462
|
-
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(
|
|
20514
|
+
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(Fn, null, /* @__PURE__ */ s.createElement(Qe, null, "Order"), /* @__PURE__ */ s.createElement(Qe, null, "Section"), /* @__PURE__ */ s.createElement(Qe, null, "Content Varieties")), /* @__PURE__ */ s.createElement($n, null, /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
20463
20515
|
className: "sps-tag sps-tag--info"
|
|
20464
20516
|
}, "1")), /* @__PURE__ */ s.createElement(ae, null, "Selection Counter"), /* @__PURE__ */ s.createElement(ae, null)), /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
20465
20517
|
className: "sps-tag sps-tag--info"
|
|
@@ -21026,14 +21078,14 @@ function qu(e) {
|
|
|
21026
21078
|
...x
|
|
21027
21079
|
} = e, { t: k } = s.useContext(Be);
|
|
21028
21080
|
let b = null;
|
|
21029
|
-
const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null),
|
|
21081
|
+
const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null), P = lb(() => {
|
|
21030
21082
|
if (M.current && T) {
|
|
21031
21083
|
const H = M.current.getBoundingClientRect();
|
|
21032
21084
|
H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, O(!1)) : (b = window.scrollY, O(!0), o && o(!1)));
|
|
21033
21085
|
}
|
|
21034
21086
|
});
|
|
21035
|
-
s.useEffect(() => (window.addEventListener("scroll",
|
|
21036
|
-
window.removeEventListener("scroll",
|
|
21087
|
+
s.useEffect(() => (window.addEventListener("scroll", P), () => {
|
|
21088
|
+
window.removeEventListener("scroll", P);
|
|
21037
21089
|
}), []);
|
|
21038
21090
|
const K = s.useRef();
|
|
21039
21091
|
s.useLayoutEffect(() => {
|
|
@@ -21182,9 +21234,9 @@ function PN() {
|
|
|
21182
21234
|
src: "assets/images/list-toolbar-example.svg",
|
|
21183
21235
|
alt: "A List Toolbar with labels on each section",
|
|
21184
21236
|
className: "w-100 mb-3"
|
|
21185
|
-
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(
|
|
21237
|
+
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(Fn, null, /* @__PURE__ */ s.createElement(Qe, {
|
|
21186
21238
|
style: { width: "80px" }
|
|
21187
|
-
}, "Order"), /* @__PURE__ */ s.createElement(Qe, null, "Section"), /* @__PURE__ */ s.createElement(Qe, null, "Notes")), /* @__PURE__ */ s.createElement(
|
|
21239
|
+
}, "Order"), /* @__PURE__ */ s.createElement(Qe, null, "Section"), /* @__PURE__ */ s.createElement(Qe, null, "Notes")), /* @__PURE__ */ s.createElement($n, null, /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
21188
21240
|
className: "sps-tag sps-tag--info"
|
|
21189
21241
|
}, "1")), /* @__PURE__ */ s.createElement(ae, null, "Checkbox"), /* @__PURE__ */ s.createElement(ae, null, "For Content Rows and Content Tiles only.")), /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
21190
21242
|
className: "sps-tag sps-tag--info"
|
|
@@ -22965,7 +23017,7 @@ function em({
|
|
|
22965
23017
|
icon: O,
|
|
22966
23018
|
maxHeightOptionListPx: M,
|
|
22967
23019
|
maxHeightOptionListRem: L,
|
|
22968
|
-
disableOptionsMemoization:
|
|
23020
|
+
disableOptionsMemoization: P,
|
|
22969
23021
|
"data-testid": K,
|
|
22970
23022
|
..._
|
|
22971
23023
|
}) {
|
|
@@ -23007,7 +23059,7 @@ function em({
|
|
|
23007
23059
|
}
|
|
23008
23060
|
function Te(de) {
|
|
23009
23061
|
W({ searchText: "" }), N && (N.setValue(de), N.markAsDirty()), h && h(
|
|
23010
|
-
new
|
|
23062
|
+
new Bn({ value: de })
|
|
23011
23063
|
);
|
|
23012
23064
|
}
|
|
23013
23065
|
function De(de) {
|
|
@@ -23148,7 +23200,7 @@ function em({
|
|
|
23148
23200
|
})), $.length !== 0 && !o ? /* @__PURE__ */ s.createElement("i", {
|
|
23149
23201
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
23150
23202
|
onClick: (de) => St(de)
|
|
23151
|
-
}) : null)), /* @__PURE__ */ s.createElement(
|
|
23203
|
+
}) : null)), /* @__PURE__ */ s.createElement(ts, {
|
|
23152
23204
|
id: `${A}_options`,
|
|
23153
23205
|
ref: z,
|
|
23154
23206
|
"data-testid": `${K}__option-list`,
|
|
@@ -23174,7 +23226,7 @@ function em({
|
|
|
23174
23226
|
loading: I,
|
|
23175
23227
|
maxHeightPx: M,
|
|
23176
23228
|
maxHeightRem: L,
|
|
23177
|
-
disableOptionsMemoization:
|
|
23229
|
+
disableOptionsMemoization: P,
|
|
23178
23230
|
onSpecialActionSelect: ge
|
|
23179
23231
|
}));
|
|
23180
23232
|
}
|
|
@@ -23722,7 +23774,7 @@ const GN = {
|
|
|
23722
23774
|
unsafelyReplaceClassName: O,
|
|
23723
23775
|
value: M,
|
|
23724
23776
|
zeroState: L,
|
|
23725
|
-
loading:
|
|
23777
|
+
loading: P,
|
|
23726
23778
|
filterByTextAndCaptionKey: K,
|
|
23727
23779
|
maxHeightOptionListPx: _,
|
|
23728
23780
|
maxHeightOptionListRem: $,
|
|
@@ -23748,7 +23800,7 @@ const GN = {
|
|
|
23748
23800
|
oe(ge);
|
|
23749
23801
|
const Ae = ge && I && typeof ge == "object" ? ge[I] : ge;
|
|
23750
23802
|
W && (W.setValue(Ae), W.markAsDirty()), S && S(
|
|
23751
|
-
new
|
|
23803
|
+
new Bn({ value: Ae })
|
|
23752
23804
|
);
|
|
23753
23805
|
}
|
|
23754
23806
|
s.useEffect(() => {
|
|
@@ -23850,7 +23902,7 @@ const GN = {
|
|
|
23850
23902
|
"data-testid": `${N}-clear-value`
|
|
23851
23903
|
}), /* @__PURE__ */ s.createElement("i", {
|
|
23852
23904
|
className: "sps-icon sps-icon-chevron-down"
|
|
23853
|
-
}))), /* @__PURE__ */ s.createElement(
|
|
23905
|
+
}))), /* @__PURE__ */ s.createElement(ts, {
|
|
23854
23906
|
id: `${J}-options`,
|
|
23855
23907
|
ref: F,
|
|
23856
23908
|
attachTo: j,
|
|
@@ -23874,7 +23926,7 @@ const GN = {
|
|
|
23874
23926
|
onOptionListChanged: lt,
|
|
23875
23927
|
zeroState: L,
|
|
23876
23928
|
ignoreWidthStyles: r,
|
|
23877
|
-
loading:
|
|
23929
|
+
loading: P,
|
|
23878
23930
|
maxHeightPx: _,
|
|
23879
23931
|
maxHeightRem: $,
|
|
23880
23932
|
disableOptionsMemoization: A,
|
|
@@ -24018,23 +24070,23 @@ function tm(e) {
|
|
|
24018
24070
|
function T(L = y.pageSize) {
|
|
24019
24071
|
return c !== void 0 ? Math.ceil(c / L) : NaN;
|
|
24020
24072
|
}
|
|
24021
|
-
function D(L = y.page,
|
|
24022
|
-
const K = T(
|
|
24073
|
+
function D(L = y.page, P = y.pageSize) {
|
|
24074
|
+
const K = T(P), _ = L === K && c !== void 0 && c % P || P, $ = h || (K === 0 ? 0 : _), N = (L - 1) * P;
|
|
24023
24075
|
return K === 0 ? [0, 0] : [N + 1, N + $];
|
|
24024
24076
|
}
|
|
24025
24077
|
function x(L) {
|
|
24026
|
-
const
|
|
24078
|
+
const P = {
|
|
24027
24079
|
page: L,
|
|
24028
24080
|
indices: D(L)
|
|
24029
24081
|
};
|
|
24030
|
-
return w(
|
|
24082
|
+
return w(P), P;
|
|
24031
24083
|
}
|
|
24032
|
-
function k(L,
|
|
24084
|
+
function k(L, P) {
|
|
24033
24085
|
const K = {
|
|
24034
|
-
page:
|
|
24086
|
+
page: P,
|
|
24035
24087
|
pageSize: L,
|
|
24036
24088
|
numPages: T(L),
|
|
24037
|
-
indices: D(
|
|
24089
|
+
indices: D(P, L)
|
|
24038
24090
|
};
|
|
24039
24091
|
return w(K), K;
|
|
24040
24092
|
}
|
|
@@ -24052,12 +24104,12 @@ function tm(e) {
|
|
|
24052
24104
|
return typeof c == "number" ? c : "many";
|
|
24053
24105
|
}
|
|
24054
24106
|
function I(L) {
|
|
24055
|
-
const
|
|
24056
|
-
n(
|
|
24107
|
+
const P = k(L.target.value, 1);
|
|
24108
|
+
n(P.page, P.pageSize, P.indices);
|
|
24057
24109
|
}
|
|
24058
24110
|
function O(L) {
|
|
24059
|
-
const
|
|
24060
|
-
n(
|
|
24111
|
+
const P = x(L);
|
|
24112
|
+
n(P.page, y.pageSize, P.indices);
|
|
24061
24113
|
}
|
|
24062
24114
|
const M = V(p || "sps-pagination", t);
|
|
24063
24115
|
return /* @__PURE__ */ s.createElement("div", {
|
|
@@ -24284,7 +24336,7 @@ const JN = {
|
|
|
24284
24336
|
src: "assets/images/stepped-progress-bar-example.svg",
|
|
24285
24337
|
alt: "A Progress Bar with labels on each section",
|
|
24286
24338
|
className: "w-100 mb-3"
|
|
24287
|
-
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(
|
|
24339
|
+
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(Fn, null, /* @__PURE__ */ s.createElement(Qe, null, "Section"), /* @__PURE__ */ s.createElement(Qe, null, "Content Type"), /* @__PURE__ */ s.createElement(Qe, null, "Required"), /* @__PURE__ */ s.createElement(Qe, null, "Description/Guidelines")), /* @__PURE__ */ s.createElement($n, null, /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
24288
24340
|
className: "sps-tag sps-tag--info"
|
|
24289
24341
|
}, "1")), /* @__PURE__ */ s.createElement(ae, null, "Title"), /* @__PURE__ */ s.createElement(ae, null, "No"), /* @__PURE__ */ s.createElement(ae, {
|
|
24290
24342
|
wrap: 400
|
|
@@ -25061,7 +25113,7 @@ const ex = {
|
|
|
25061
25113
|
src: "assets/images/progress-bar-example.svg",
|
|
25062
25114
|
alt: "A Progress Bar with labels on each section",
|
|
25063
25115
|
className: "w-100 mb-3"
|
|
25064
|
-
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(
|
|
25116
|
+
}), /* @__PURE__ */ s.createElement(wr, null, /* @__PURE__ */ s.createElement(Fn, null, /* @__PURE__ */ s.createElement(Qe, null, "Section"), /* @__PURE__ */ s.createElement(Qe, null, "Content Type"), /* @__PURE__ */ s.createElement(Qe, null, "Required"), /* @__PURE__ */ s.createElement(Qe, null, "Description/Guidelines")), /* @__PURE__ */ s.createElement($n, null, /* @__PURE__ */ s.createElement($e, null, /* @__PURE__ */ s.createElement(ae, null, /* @__PURE__ */ s.createElement("span", {
|
|
25065
25117
|
className: "sps-tag sps-tag--info"
|
|
25066
25118
|
}, "1")), /* @__PURE__ */ s.createElement(ae, null, "Title"), /* @__PURE__ */ s.createElement(ae, null, "No"), /* @__PURE__ */ s.createElement(ae, {
|
|
25067
25119
|
wrap: 400
|
|
@@ -26329,8 +26381,8 @@ const nx = {
|
|
|
26329
26381
|
)
|
|
26330
26382
|
},
|
|
26331
26383
|
activeBranch: f,
|
|
26332
|
-
setActiveBranch: (
|
|
26333
|
-
D(
|
|
26384
|
+
setActiveBranch: (P, K) => {
|
|
26385
|
+
D(P, K);
|
|
26334
26386
|
},
|
|
26335
26387
|
key: (L = M.key) != null ? L : M.name
|
|
26336
26388
|
});
|
|
@@ -27375,7 +27427,7 @@ function dm({
|
|
|
27375
27427
|
s.useEffect(() => {
|
|
27376
27428
|
y ? window.addEventListener("resize", b) : window.removeEventListener("resize", b);
|
|
27377
27429
|
}, [y]);
|
|
27378
|
-
const I =
|
|
27430
|
+
const I = es("sps-task-queue-portal"), O = s.useContext(Ot), [M] = y ? ur(
|
|
27379
27431
|
k,
|
|
27380
27432
|
x,
|
|
27381
27433
|
t,
|
|
@@ -27383,11 +27435,11 @@ function dm({
|
|
|
27383
27435
|
altPosition: t,
|
|
27384
27436
|
...O
|
|
27385
27437
|
}
|
|
27386
|
-
) : [{}, !1], L = r.position || be.BOTTOM_RIGHT,
|
|
27438
|
+
) : [{}, !1], L = r.position || be.BOTTOM_RIGHT, P = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === Is.IN_PROGRESS).length, $ = e.some((F) => F.status === Is.COMPLETED || F.status === Is.ERRORED), N = s.useRef(o);
|
|
27387
27439
|
N.current = o;
|
|
27388
27440
|
const A = s.useRef(null), Q = () => {
|
|
27389
27441
|
S && !y ? (w(!0), a && a()) : y && (w(!1), o && o()), A.current && (A.current.scrollTop = 0);
|
|
27390
|
-
}, q = (F) => F.status ===
|
|
27442
|
+
}, q = (F) => F.status === Is.IN_PROGRESS ? Ul[F.status] : `sps-icon sps-icon-${Ul[F.status]}`;
|
|
27391
27443
|
s.useEffect(() => {
|
|
27392
27444
|
y && !S && (w(!1), N.current && N.current());
|
|
27393
27445
|
}, [y, S]);
|
|
@@ -27462,7 +27514,7 @@ function dm({
|
|
|
27462
27514
|
})), /* @__PURE__ */ s.createElement(Lt, {
|
|
27463
27515
|
for: x,
|
|
27464
27516
|
position: L,
|
|
27465
|
-
kind:
|
|
27517
|
+
kind: P,
|
|
27466
27518
|
showOn: S ? it.MANUAL : it.MOUSEOVER,
|
|
27467
27519
|
isShown: T && !y ? ye.VISIBLE : ye.HIDDEN,
|
|
27468
27520
|
hideDelay: Number(S) && Gl
|
|
@@ -27863,8 +27915,8 @@ const mx = {
|
|
|
27863
27915
|
...y
|
|
27864
27916
|
}, w) => {
|
|
27865
27917
|
const T = r || n, { wrapperId: D, controlId: x } = wt(o, T), k = s.useRef(null);
|
|
27866
|
-
function b(L,
|
|
27867
|
-
T && (T.setValue(L), T.markAsDirty()), c && k.current && c(
|
|
27918
|
+
function b(L, P) {
|
|
27919
|
+
T && (T.setValue(L), T.markAsDirty()), c && k.current && c(P || new Bn(k.current));
|
|
27868
27920
|
}
|
|
27869
27921
|
function I() {
|
|
27870
27922
|
k.current && (k.current.value = "", b(""));
|
|
@@ -28076,7 +28128,7 @@ function pm({
|
|
|
28076
28128
|
}) {
|
|
28077
28129
|
const w = r || n, { wrapperId: T, controlId: D } = wt(a, w), x = s.useRef(null);
|
|
28078
28130
|
function k(M, L) {
|
|
28079
|
-
w && (w.setValue(M), w.markAsDirty()), l && x.current && l(L || new
|
|
28131
|
+
w && (w.setValue(M), w.markAsDirty()), l && x.current && l(L || new Bn(x.current));
|
|
28080
28132
|
}
|
|
28081
28133
|
function b() {
|
|
28082
28134
|
x.current && (x.current.value = "", k(""));
|
|
@@ -28280,9 +28332,9 @@ function mm(e) {
|
|
|
28280
28332
|
cv("SpsToggle", um, e);
|
|
28281
28333
|
const w = l || o, [T, D] = s.useState(t), { wrapperId: x, controlId: k } = wt(c, w), b = `${x}_status-label`, I = `${x}_description`, O = s.useRef(null);
|
|
28282
28334
|
s.useEffect(() => D(t), [t]);
|
|
28283
|
-
function M(
|
|
28335
|
+
function M(P) {
|
|
28284
28336
|
var K;
|
|
28285
|
-
D(
|
|
28337
|
+
D(P.target.checked), w && (w.setValue(P.target.checked), w.markAsDirty()), m && m(P.target.checked), (K = O.current) == null || K.focus();
|
|
28286
28338
|
}
|
|
28287
28339
|
const L = V(
|
|
28288
28340
|
S || "sps-toggle",
|
|
@@ -29709,14 +29761,14 @@ function Nm({
|
|
|
29709
29761
|
}
|
|
29710
29762
|
function M(W) {
|
|
29711
29763
|
x({ searchText: "" }), y && (y.setValue(W), y.markAsDirty()), o && o(
|
|
29712
|
-
new
|
|
29764
|
+
new Bn({ value: W })
|
|
29713
29765
|
);
|
|
29714
29766
|
}
|
|
29715
29767
|
function L(W) {
|
|
29716
29768
|
const J = (u || []).filter((H, F) => F !== W);
|
|
29717
29769
|
M(J);
|
|
29718
29770
|
}
|
|
29719
|
-
function
|
|
29771
|
+
function P(W) {
|
|
29720
29772
|
x({ searchText: W.target.value });
|
|
29721
29773
|
}
|
|
29722
29774
|
function K(W) {
|
|
@@ -29841,7 +29893,7 @@ function Nm({
|
|
|
29841
29893
|
placeholder: D.searchText.length === 0 && (!u || u.length === 0) ? c : void 0,
|
|
29842
29894
|
id: T,
|
|
29843
29895
|
onBlur: $,
|
|
29844
|
-
onChange:
|
|
29896
|
+
onChange: P,
|
|
29845
29897
|
onKeyDown: N,
|
|
29846
29898
|
disabled: t,
|
|
29847
29899
|
role: "listbox",
|
|
@@ -30239,7 +30291,7 @@ const Bx = {
|
|
|
30239
30291
|
}, "Content Tiles"), ") are one of three options for displaying a list of records on a page."), /* @__PURE__ */ s.createElement("br", null), /* @__PURE__ */ s.createElement("div", {
|
|
30240
30292
|
className: "sps-body-14"
|
|
30241
30293
|
}, "Tables are the ideal solution for displaying tabular data, especially when the listed records contain a considerable amount of data points. While tables are primarily used to display an extensive list of records, often in a paginated format, they can also be used to display smaller sets of tabular data in any context.")),
|
|
30242
|
-
components: [wr,
|
|
30294
|
+
components: [wr, $n, ae, Fn, Qe, $e],
|
|
30243
30295
|
examples: CN
|
|
30244
30296
|
},
|
|
30245
30297
|
"Task Queue": {
|
|
@@ -30352,16 +30404,16 @@ function Im() {
|
|
|
30352
30404
|
direction: Hx(e) ? "rtl" : "ltr"
|
|
30353
30405
|
};
|
|
30354
30406
|
}
|
|
30355
|
-
let _o = Im(),
|
|
30407
|
+
let _o = Im(), Wr = /* @__PURE__ */ new Set();
|
|
30356
30408
|
function pd() {
|
|
30357
30409
|
_o = Im();
|
|
30358
|
-
for (let e of
|
|
30410
|
+
for (let e of Wr)
|
|
30359
30411
|
e(_o);
|
|
30360
30412
|
}
|
|
30361
30413
|
function Wx() {
|
|
30362
30414
|
let e = $x(), [t, n] = Ve(_o);
|
|
30363
|
-
return Le(() => (
|
|
30364
|
-
|
|
30415
|
+
return Le(() => (Wr.size === 0 && window.addEventListener("languagechange", pd), Wr.add(n), () => {
|
|
30416
|
+
Wr.delete(n), Wr.size === 0 && window.removeEventListener("languagechange", pd);
|
|
30365
30417
|
}), []), e ? {
|
|
30366
30418
|
locale: "en-US",
|
|
30367
30419
|
direction: "ltr"
|
|
@@ -30529,21 +30581,21 @@ function or(e) {
|
|
|
30529
30581
|
e.focus(), Qx(t);
|
|
30530
30582
|
}
|
|
30531
30583
|
}
|
|
30532
|
-
let
|
|
30584
|
+
let Bs = null;
|
|
30533
30585
|
function Zx() {
|
|
30534
|
-
if (
|
|
30535
|
-
|
|
30586
|
+
if (Bs == null) {
|
|
30587
|
+
Bs = !1;
|
|
30536
30588
|
try {
|
|
30537
30589
|
var e = document.createElement("div");
|
|
30538
30590
|
e.focus({
|
|
30539
30591
|
get preventScroll() {
|
|
30540
|
-
return
|
|
30592
|
+
return Bs = !0, !0;
|
|
30541
30593
|
}
|
|
30542
30594
|
});
|
|
30543
30595
|
} catch {
|
|
30544
30596
|
}
|
|
30545
30597
|
}
|
|
30546
|
-
return
|
|
30598
|
+
return Bs;
|
|
30547
30599
|
}
|
|
30548
30600
|
function Xx(e) {
|
|
30549
30601
|
for (var t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement; t instanceof HTMLElement && t !== r; )
|
|
@@ -30720,21 +30772,21 @@ function ir(e) {
|
|
|
30720
30772
|
e.focus(), pI(t);
|
|
30721
30773
|
}
|
|
30722
30774
|
}
|
|
30723
|
-
let
|
|
30775
|
+
let As = null;
|
|
30724
30776
|
function cI() {
|
|
30725
|
-
if (
|
|
30726
|
-
|
|
30777
|
+
if (As == null) {
|
|
30778
|
+
As = !1;
|
|
30727
30779
|
try {
|
|
30728
30780
|
var e = document.createElement("div");
|
|
30729
30781
|
e.focus({
|
|
30730
30782
|
get preventScroll() {
|
|
30731
|
-
return
|
|
30783
|
+
return As = !0, !0;
|
|
30732
30784
|
}
|
|
30733
30785
|
});
|
|
30734
30786
|
} catch {
|
|
30735
30787
|
}
|
|
30736
30788
|
}
|
|
30737
|
-
return
|
|
30789
|
+
return As;
|
|
30738
30790
|
}
|
|
30739
30791
|
function dI(e) {
|
|
30740
30792
|
for (var t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement; t instanceof HTMLElement && t !== r; )
|
|
@@ -30878,7 +30930,7 @@ let lr = "default", Ro = "", Ws = /* @__PURE__ */ new WeakMap();
|
|
|
30878
30930
|
function yd(e) {
|
|
30879
30931
|
Fm() ? (lr === "default" && (Ro = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), lr = "disabled") : (e instanceof HTMLElement || e instanceof SVGElement) && (Ws.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
30880
30932
|
}
|
|
30881
|
-
function
|
|
30933
|
+
function Fs(e) {
|
|
30882
30934
|
if (Fm()) {
|
|
30883
30935
|
if (lr !== "disabled")
|
|
30884
30936
|
return;
|
|
@@ -30978,8 +31030,8 @@ function Vm(e) {
|
|
|
30978
31030
|
altKey: _.altKey
|
|
30979
31031
|
});
|
|
30980
31032
|
}, L = (_) => {
|
|
30981
|
-
b.isPressed && (b.isOverTarget && O(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m ||
|
|
30982
|
-
},
|
|
31033
|
+
b.isPressed && (b.isOverTarget && O(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
|
|
31034
|
+
}, P = {
|
|
30983
31035
|
onKeyDown(_) {
|
|
30984
31036
|
mo(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Po(_.currentTarget) && _.stopPropagation();
|
|
30985
31037
|
},
|
|
@@ -30997,7 +31049,7 @@ function Vm(e) {
|
|
|
30997
31049
|
}
|
|
30998
31050
|
};
|
|
30999
31051
|
if (typeof PointerEvent < "u") {
|
|
31000
|
-
|
|
31052
|
+
P.onPointerDown = (A) => {
|
|
31001
31053
|
if (!(A.button !== 0 || !A.currentTarget.contains(A.target))) {
|
|
31002
31054
|
if (vI(A.nativeEvent)) {
|
|
31003
31055
|
b.pointerType = "virtual";
|
|
@@ -31005,29 +31057,29 @@ function Vm(e) {
|
|
|
31005
31057
|
}
|
|
31006
31058
|
fo(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && ir(A.currentTarget), m || yd(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
|
|
31007
31059
|
}
|
|
31008
|
-
},
|
|
31060
|
+
}, P.onMouseDown = (A) => {
|
|
31009
31061
|
!A.currentTarget.contains(A.target) || A.button === 0 && (fo(A.currentTarget) && A.preventDefault(), A.stopPropagation());
|
|
31010
|
-
},
|
|
31062
|
+
}, P.onPointerUp = (A) => {
|
|
31011
31063
|
!A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && qn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
|
|
31012
31064
|
};
|
|
31013
31065
|
let _ = (A) => {
|
|
31014
31066
|
A.pointerId === b.activePointerId && (qn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(Qt(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(Qt(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
|
|
31015
31067
|
}, $ = (A) => {
|
|
31016
|
-
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ? O(Qt(b.target, A), b.pointerType) : b.isOverTarget && O(Qt(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m ||
|
|
31068
|
+
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (qn(A, b.target) ? O(Qt(b.target, A), b.pointerType) : b.isOverTarget && O(Qt(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
|
|
31017
31069
|
}, N = (A) => {
|
|
31018
31070
|
L(A);
|
|
31019
31071
|
};
|
|
31020
|
-
|
|
31072
|
+
P.onDragStart = (A) => {
|
|
31021
31073
|
!A.currentTarget.contains(A.target) || L(A);
|
|
31022
31074
|
};
|
|
31023
31075
|
} else {
|
|
31024
|
-
|
|
31076
|
+
P.onMouseDown = (N) => {
|
|
31025
31077
|
N.button !== 0 || !N.currentTarget.contains(N.target) || (fo(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = na(N.nativeEvent) ? "virtual" : "mouse", !l && !p && ir(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
|
|
31026
|
-
},
|
|
31078
|
+
}, P.onMouseEnter = (N) => {
|
|
31027
31079
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
|
|
31028
|
-
},
|
|
31080
|
+
}, P.onMouseLeave = (N) => {
|
|
31029
31081
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
|
|
31030
|
-
},
|
|
31082
|
+
}, P.onMouseUp = (N) => {
|
|
31031
31083
|
!N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
|
|
31032
31084
|
};
|
|
31033
31085
|
let _ = (N) => {
|
|
@@ -31039,23 +31091,23 @@ function Vm(e) {
|
|
|
31039
31091
|
qn(N, b.target) ? O(Qt(b.target, N), b.pointerType) : b.isOverTarget && O(Qt(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
|
|
31040
31092
|
}
|
|
31041
31093
|
};
|
|
31042
|
-
|
|
31094
|
+
P.onTouchStart = (N) => {
|
|
31043
31095
|
if (!N.currentTarget.contains(N.target))
|
|
31044
31096
|
return;
|
|
31045
31097
|
N.stopPropagation();
|
|
31046
31098
|
let A = EI(N.nativeEvent);
|
|
31047
31099
|
!A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && ir(N.currentTarget), m || yd(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
|
|
31048
|
-
},
|
|
31100
|
+
}, P.onTouchMove = (N) => {
|
|
31049
31101
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31050
31102
|
return;
|
|
31051
31103
|
let A = Ed(N.nativeEvent, b.activePointerId);
|
|
31052
31104
|
A && qn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
|
|
31053
|
-
},
|
|
31105
|
+
}, P.onTouchEnd = (N) => {
|
|
31054
31106
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31055
31107
|
return;
|
|
31056
31108
|
let A = Ed(N.nativeEvent, b.activePointerId);
|
|
31057
|
-
A && qn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m ||
|
|
31058
|
-
},
|
|
31109
|
+
A && qn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || Fs(b.target), x();
|
|
31110
|
+
}, P.onTouchCancel = (N) => {
|
|
31059
31111
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
|
|
31060
31112
|
};
|
|
31061
31113
|
let $ = (N) => {
|
|
@@ -31067,11 +31119,11 @@ function Vm(e) {
|
|
|
31067
31119
|
altKey: !1
|
|
31068
31120
|
});
|
|
31069
31121
|
};
|
|
31070
|
-
|
|
31122
|
+
P.onDragStart = (N) => {
|
|
31071
31123
|
!N.currentTarget.contains(N.target) || L(N);
|
|
31072
31124
|
};
|
|
31073
31125
|
}
|
|
31074
|
-
return
|
|
31126
|
+
return P;
|
|
31075
31127
|
}, [
|
|
31076
31128
|
D,
|
|
31077
31129
|
l,
|
|
@@ -31080,7 +31132,7 @@ function Vm(e) {
|
|
|
31080
31132
|
m
|
|
31081
31133
|
]);
|
|
31082
31134
|
return Le(() => () => {
|
|
31083
|
-
m ||
|
|
31135
|
+
m || Fs(T.current.target);
|
|
31084
31136
|
}, [
|
|
31085
31137
|
m
|
|
31086
31138
|
]), {
|
|
@@ -31153,7 +31205,7 @@ const CI = /* @__PURE__ */ new Set([
|
|
|
31153
31205
|
function Km(e, t) {
|
|
31154
31206
|
return e.type === "checkbox" || e.type === "radio" ? t === " " : CI.has(e.type);
|
|
31155
31207
|
}
|
|
31156
|
-
let DI = /* @__PURE__ */ new Set(), wd = !1,
|
|
31208
|
+
let DI = /* @__PURE__ */ new Set(), wd = !1, On = !1, Bo = !1;
|
|
31157
31209
|
function Zi(e, t) {
|
|
31158
31210
|
for (let n of DI)
|
|
31159
31211
|
n(e, t);
|
|
@@ -31162,26 +31214,26 @@ function NI(e) {
|
|
|
31162
31214
|
return !(e.metaKey || !Ji() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
31163
31215
|
}
|
|
31164
31216
|
function Cd(e) {
|
|
31165
|
-
|
|
31217
|
+
On = !0, NI(e) && Zi("keyboard", e);
|
|
31166
31218
|
}
|
|
31167
31219
|
function Jn(e) {
|
|
31168
|
-
(e.type === "mousedown" || e.type === "pointerdown") && (
|
|
31220
|
+
(e.type === "mousedown" || e.type === "pointerdown") && (On = !0, Zi("pointer", e));
|
|
31169
31221
|
}
|
|
31170
31222
|
function xI(e) {
|
|
31171
|
-
na(e) && (
|
|
31223
|
+
na(e) && (On = !0);
|
|
31172
31224
|
}
|
|
31173
31225
|
function II(e) {
|
|
31174
|
-
e.target === window || e.target === document || (!
|
|
31226
|
+
e.target === window || e.target === document || (!On && !Bo && Zi("virtual", e), On = !1, Bo = !1);
|
|
31175
31227
|
}
|
|
31176
31228
|
function kI() {
|
|
31177
|
-
|
|
31229
|
+
On = !1, Bo = !0;
|
|
31178
31230
|
}
|
|
31179
31231
|
function Dd() {
|
|
31180
31232
|
if (typeof window > "u" || wd)
|
|
31181
31233
|
return;
|
|
31182
31234
|
let e = HTMLElement.prototype.focus;
|
|
31183
31235
|
HTMLElement.prototype.focus = function() {
|
|
31184
|
-
|
|
31236
|
+
On = !0, e.apply(this, arguments);
|
|
31185
31237
|
}, document.addEventListener("keydown", Cd, !0), document.addEventListener("keyup", Cd, !0), document.addEventListener("click", xI, !0), window.addEventListener("focus", II, !0), window.addEventListener("blur", kI, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Jn, !0), document.addEventListener("pointermove", Jn, !0), document.addEventListener("pointerup", Jn, !0)) : (document.addEventListener("mousedown", Jn, !0), document.addEventListener("mousemove", Jn, !0), document.addEventListener("mouseup", Jn, !0)), wd = !0;
|
|
31186
31238
|
}
|
|
31187
31239
|
typeof document < "u" && (document.readyState !== "loading" ? Dd() : document.addEventListener("DOMContentLoaded", Dd));
|
|
@@ -31331,7 +31383,7 @@ class Nd {
|
|
|
31331
31383
|
new Qi();
|
|
31332
31384
|
const AI = Y.createContext(null);
|
|
31333
31385
|
AI.displayName = "PressResponderContext";
|
|
31334
|
-
let
|
|
31386
|
+
let ls = null, FI = /* @__PURE__ */ new Set(), xd = !1, Rn = !1, Ao = !1;
|
|
31335
31387
|
function el(e, t) {
|
|
31336
31388
|
for (let n of FI)
|
|
31337
31389
|
n(e, t);
|
|
@@ -31340,31 +31392,31 @@ function $I(e) {
|
|
|
31340
31392
|
return !(e.metaKey || !Ji() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
31341
31393
|
}
|
|
31342
31394
|
function Id(e) {
|
|
31343
|
-
|
|
31395
|
+
Rn = !0, $I(e) && (ls = "keyboard", el("keyboard", e));
|
|
31344
31396
|
}
|
|
31345
31397
|
function Zn(e) {
|
|
31346
|
-
|
|
31398
|
+
ls = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Rn = !0, el("pointer", e));
|
|
31347
31399
|
}
|
|
31348
31400
|
function VI(e) {
|
|
31349
|
-
na(e) && (
|
|
31401
|
+
na(e) && (Rn = !0, ls = "virtual");
|
|
31350
31402
|
}
|
|
31351
31403
|
function KI(e) {
|
|
31352
|
-
e.target === window || e.target === document || (!
|
|
31404
|
+
e.target === window || e.target === document || (!Rn && !Ao && (ls = "virtual", el("virtual", e)), Rn = !1, Ao = !1);
|
|
31353
31405
|
}
|
|
31354
31406
|
function HI() {
|
|
31355
|
-
|
|
31407
|
+
Rn = !1, Ao = !0;
|
|
31356
31408
|
}
|
|
31357
31409
|
function kd() {
|
|
31358
31410
|
if (typeof window > "u" || xd)
|
|
31359
31411
|
return;
|
|
31360
31412
|
let e = HTMLElement.prototype.focus;
|
|
31361
31413
|
HTMLElement.prototype.focus = function() {
|
|
31362
|
-
|
|
31414
|
+
Rn = !0, e.apply(this, arguments);
|
|
31363
31415
|
}, document.addEventListener("keydown", Id, !0), document.addEventListener("keyup", Id, !0), document.addEventListener("click", VI, !0), window.addEventListener("focus", KI, !0), window.addEventListener("blur", HI, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Zn, !0), document.addEventListener("pointermove", Zn, !0), document.addEventListener("pointerup", Zn, !0)) : (document.addEventListener("mousedown", Zn, !0), document.addEventListener("mousemove", Zn, !0), document.addEventListener("mouseup", Zn, !0)), xd = !0;
|
|
31364
31416
|
}
|
|
31365
31417
|
typeof document < "u" && (document.readyState !== "loading" ? kd() : document.addEventListener("DOMContentLoaded", kd));
|
|
31366
31418
|
function WI() {
|
|
31367
|
-
return
|
|
31419
|
+
return ls;
|
|
31368
31420
|
}
|
|
31369
31421
|
function Gm(e) {
|
|
31370
31422
|
if (WI() === "virtual") {
|
|
@@ -31515,9 +31567,9 @@ function ZI(e) {
|
|
|
31515
31567
|
switch (M.key) {
|
|
31516
31568
|
case "ArrowDown":
|
|
31517
31569
|
if (n.getKeyBelow) {
|
|
31518
|
-
var
|
|
31570
|
+
var P, K;
|
|
31519
31571
|
M.preventDefault();
|
|
31520
|
-
let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (
|
|
31572
|
+
let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (P = n.getFirstKey) === null || P === void 0 ? void 0 : P.call(n);
|
|
31521
31573
|
N == null && o && (N = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), L(N);
|
|
31522
31574
|
}
|
|
31523
31575
|
break;
|
|
@@ -31613,8 +31665,8 @@ function ZI(e) {
|
|
|
31613
31665
|
let K = ($) => {
|
|
31614
31666
|
$ != null && (t.setFocusedKey($), p && t.replaceSelection($));
|
|
31615
31667
|
}, _ = M.relatedTarget;
|
|
31616
|
-
var L,
|
|
31617
|
-
_ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((
|
|
31668
|
+
var L, P;
|
|
31669
|
+
_ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((P = t.firstSelectedKey) !== null && P !== void 0 ? P : n.getFirstKey());
|
|
31618
31670
|
} else if (!h) {
|
|
31619
31671
|
S.current.scrollTop = T.current.top, S.current.scrollLeft = T.current.left;
|
|
31620
31672
|
let K = S.current.querySelector(`[data-key="${t.focusedKey}"]`);
|
|
@@ -31707,7 +31759,7 @@ function XI(e) {
|
|
|
31707
31759
|
}, O.onPress = ($) => {
|
|
31708
31760
|
($.pointerType === "touch" || $.pointerType === "pen" || $.pointerType === "virtual" || $.pointerType === "keyboard" && D && _d() || $.pointerType === "mouse" && I.current) && (D ? u() : f($));
|
|
31709
31761
|
}), o || (h["data-key"] = n), O.preventFocusOnPress = l;
|
|
31710
|
-
let { pressProps: M, isPressed: L } = Vm(O),
|
|
31762
|
+
let { pressProps: M, isPressed: L } = Vm(O), P = T ? ($) => {
|
|
31711
31763
|
x.current === "mouse" && ($.stopPropagation(), $.preventDefault(), u());
|
|
31712
31764
|
} : void 0, { longPressProps: K } = _I({
|
|
31713
31765
|
isDisabled: !k,
|
|
@@ -31717,7 +31769,7 @@ function XI(e) {
|
|
|
31717
31769
|
});
|
|
31718
31770
|
return {
|
|
31719
31771
|
itemProps: ba(h, S || w ? M : {}, k ? K : {}, {
|
|
31720
|
-
onDoubleClick:
|
|
31772
|
+
onDoubleClick: P,
|
|
31721
31773
|
onDragStart: ($) => {
|
|
31722
31774
|
x.current === "touch" && b.current && $.preventDefault();
|
|
31723
31775
|
}
|
|
@@ -31741,7 +31793,7 @@ let cr = "default", Fo = "", Gs = /* @__PURE__ */ new WeakMap();
|
|
|
31741
31793
|
function Od(e) {
|
|
31742
31794
|
ji() ? (cr === "default" && (Fo = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), cr = "disabled") : (e instanceof HTMLElement || e instanceof SVGElement) && (Gs.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
31743
31795
|
}
|
|
31744
|
-
function
|
|
31796
|
+
function $s(e) {
|
|
31745
31797
|
if (ji()) {
|
|
31746
31798
|
if (cr !== "disabled")
|
|
31747
31799
|
return;
|
|
@@ -31844,8 +31896,8 @@ function ek(e) {
|
|
|
31844
31896
|
altKey: _.altKey
|
|
31845
31897
|
});
|
|
31846
31898
|
}, L = (_) => {
|
|
31847
|
-
b.isPressed && (b.isOverTarget && O(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m ||
|
|
31848
|
-
},
|
|
31899
|
+
b.isPressed && (b.isOverTarget && O(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || $s(b.target));
|
|
31900
|
+
}, P = {
|
|
31849
31901
|
onKeyDown(_) {
|
|
31850
31902
|
ho(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Vo(_.currentTarget) && _.stopPropagation();
|
|
31851
31903
|
},
|
|
@@ -31863,7 +31915,7 @@ function ek(e) {
|
|
|
31863
31915
|
}
|
|
31864
31916
|
};
|
|
31865
31917
|
if (typeof PointerEvent < "u") {
|
|
31866
|
-
|
|
31918
|
+
P.onPointerDown = (A) => {
|
|
31867
31919
|
if (!(A.button !== 0 || !A.currentTarget.contains(A.target))) {
|
|
31868
31920
|
if (ak(A.nativeEvent)) {
|
|
31869
31921
|
b.pointerType = "virtual";
|
|
@@ -31871,29 +31923,29 @@ function ek(e) {
|
|
|
31871
31923
|
}
|
|
31872
31924
|
go(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && or(A.currentTarget), m || Od(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
|
|
31873
31925
|
}
|
|
31874
|
-
},
|
|
31926
|
+
}, P.onMouseDown = (A) => {
|
|
31875
31927
|
!A.currentTarget.contains(A.target) || A.button === 0 && (go(A.currentTarget) && A.preventDefault(), A.stopPropagation());
|
|
31876
|
-
},
|
|
31928
|
+
}, P.onPointerUp = (A) => {
|
|
31877
31929
|
!A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && Xn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
|
|
31878
31930
|
};
|
|
31879
31931
|
let _ = (A) => {
|
|
31880
31932
|
A.pointerId === b.activePointerId && (Xn(A, b.target) ? b.isOverTarget || (b.isOverTarget = !0, I(en(b.target, A), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(en(b.target, A), b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(A)));
|
|
31881
31933
|
}, $ = (A) => {
|
|
31882
|
-
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ? O(en(b.target, A), b.pointerType) : b.isOverTarget && O(en(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m ||
|
|
31934
|
+
A.pointerId === b.activePointerId && b.isPressed && A.button === 0 && (Xn(A, b.target) ? O(en(b.target, A), b.pointerType) : b.isOverTarget && O(en(b.target, A), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || $s(b.target));
|
|
31883
31935
|
}, N = (A) => {
|
|
31884
31936
|
L(A);
|
|
31885
31937
|
};
|
|
31886
|
-
|
|
31938
|
+
P.onDragStart = (A) => {
|
|
31887
31939
|
!A.currentTarget.contains(A.target) || L(A);
|
|
31888
31940
|
};
|
|
31889
31941
|
} else {
|
|
31890
|
-
|
|
31942
|
+
P.onMouseDown = (N) => {
|
|
31891
31943
|
N.button !== 0 || !N.currentTarget.contains(N.target) || (go(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = $o(N.nativeEvent) ? "virtual" : "mouse", !l && !p && or(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
|
|
31892
|
-
},
|
|
31944
|
+
}, P.onMouseEnter = (N) => {
|
|
31893
31945
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
|
|
31894
|
-
},
|
|
31946
|
+
}, P.onMouseLeave = (N) => {
|
|
31895
31947
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
|
|
31896
|
-
},
|
|
31948
|
+
}, P.onMouseUp = (N) => {
|
|
31897
31949
|
!N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
|
|
31898
31950
|
};
|
|
31899
31951
|
let _ = (N) => {
|
|
@@ -31905,23 +31957,23 @@ function ek(e) {
|
|
|
31905
31957
|
Xn(N, b.target) ? O(en(b.target, N), b.pointerType) : b.isOverTarget && O(en(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
|
|
31906
31958
|
}
|
|
31907
31959
|
};
|
|
31908
|
-
|
|
31960
|
+
P.onTouchStart = (N) => {
|
|
31909
31961
|
if (!N.currentTarget.contains(N.target))
|
|
31910
31962
|
return;
|
|
31911
31963
|
N.stopPropagation();
|
|
31912
31964
|
let A = tk(N.nativeEvent);
|
|
31913
31965
|
!A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && or(N.currentTarget), m || Od(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
|
|
31914
|
-
},
|
|
31966
|
+
}, P.onTouchMove = (N) => {
|
|
31915
31967
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31916
31968
|
return;
|
|
31917
31969
|
let A = Rd(N.nativeEvent, b.activePointerId);
|
|
31918
31970
|
A && Xn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
|
|
31919
|
-
},
|
|
31971
|
+
}, P.onTouchEnd = (N) => {
|
|
31920
31972
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31921
31973
|
return;
|
|
31922
31974
|
let A = Rd(N.nativeEvent, b.activePointerId);
|
|
31923
|
-
A && Xn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m ||
|
|
31924
|
-
},
|
|
31975
|
+
A && Xn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || $s(b.target), x();
|
|
31976
|
+
}, P.onTouchCancel = (N) => {
|
|
31925
31977
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
|
|
31926
31978
|
};
|
|
31927
31979
|
let $ = (N) => {
|
|
@@ -31933,11 +31985,11 @@ function ek(e) {
|
|
|
31933
31985
|
altKey: !1
|
|
31934
31986
|
});
|
|
31935
31987
|
};
|
|
31936
|
-
|
|
31988
|
+
P.onDragStart = (N) => {
|
|
31937
31989
|
!N.currentTarget.contains(N.target) || L(N);
|
|
31938
31990
|
};
|
|
31939
31991
|
}
|
|
31940
|
-
return
|
|
31992
|
+
return P;
|
|
31941
31993
|
}, [
|
|
31942
31994
|
D,
|
|
31943
31995
|
l,
|
|
@@ -31946,7 +31998,7 @@ function ek(e) {
|
|
|
31946
31998
|
m
|
|
31947
31999
|
]);
|
|
31948
32000
|
return Le(() => () => {
|
|
31949
|
-
m ||
|
|
32001
|
+
m || $s(T.current.target);
|
|
31950
32002
|
}, [
|
|
31951
32003
|
m
|
|
31952
32004
|
]), {
|
|
@@ -32022,7 +32074,7 @@ function qm(e, t) {
|
|
|
32022
32074
|
function ak(e) {
|
|
32023
32075
|
return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
32024
32076
|
}
|
|
32025
|
-
let ok = /* @__PURE__ */ new Set(), Bd = !1,
|
|
32077
|
+
let ok = /* @__PURE__ */ new Set(), Bd = !1, Pn = !1, Ko = !1;
|
|
32026
32078
|
function rl(e, t) {
|
|
32027
32079
|
for (let n of ok)
|
|
32028
32080
|
n(e, t);
|
|
@@ -32031,26 +32083,26 @@ function ik(e) {
|
|
|
32031
32083
|
return !(e.metaKey || !va() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
32032
32084
|
}
|
|
32033
32085
|
function Ad(e) {
|
|
32034
|
-
|
|
32086
|
+
Pn = !0, ik(e) && rl("keyboard", e);
|
|
32035
32087
|
}
|
|
32036
32088
|
function Qn(e) {
|
|
32037
|
-
(e.type === "mousedown" || e.type === "pointerdown") && (
|
|
32089
|
+
(e.type === "mousedown" || e.type === "pointerdown") && (Pn = !0, rl("pointer", e));
|
|
32038
32090
|
}
|
|
32039
32091
|
function lk(e) {
|
|
32040
|
-
$o(e) && (
|
|
32092
|
+
$o(e) && (Pn = !0);
|
|
32041
32093
|
}
|
|
32042
32094
|
function ck(e) {
|
|
32043
|
-
e.target === window || e.target === document || (!
|
|
32095
|
+
e.target === window || e.target === document || (!Pn && !Ko && rl("virtual", e), Pn = !1, Ko = !1);
|
|
32044
32096
|
}
|
|
32045
32097
|
function dk() {
|
|
32046
|
-
|
|
32098
|
+
Pn = !1, Ko = !0;
|
|
32047
32099
|
}
|
|
32048
32100
|
function Fd() {
|
|
32049
32101
|
if (typeof window > "u" || Bd)
|
|
32050
32102
|
return;
|
|
32051
32103
|
let e = HTMLElement.prototype.focus;
|
|
32052
32104
|
HTMLElement.prototype.focus = function() {
|
|
32053
|
-
|
|
32105
|
+
Pn = !0, e.apply(this, arguments);
|
|
32054
32106
|
}, document.addEventListener("keydown", Ad, !0), document.addEventListener("keyup", Ad, !0), document.addEventListener("click", lk, !0), window.addEventListener("focus", ck, !0), window.addEventListener("blur", dk, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Qn, !0), document.addEventListener("pointermove", Qn, !0), document.addEventListener("pointerup", Qn, !0)) : (document.addEventListener("mousedown", Qn, !0), document.addEventListener("mousemove", Qn, !0), document.addEventListener("mouseup", Qn, !0)), Bd = !0;
|
|
32055
32107
|
}
|
|
32056
32108
|
typeof document < "u" && (document.readyState !== "loading" ? Fd() : document.addEventListener("DOMContentLoaded", Fd));
|
|
@@ -34662,13 +34714,13 @@ const r_ = {
|
|
|
34662
34714
|
}
|
|
34663
34715
|
};
|
|
34664
34716
|
export {
|
|
34665
|
-
|
|
34717
|
+
Qr as AsTypingErrorKeys,
|
|
34666
34718
|
PN as ContentOrderExample,
|
|
34667
34719
|
id as DEFAULT_PRESETS,
|
|
34668
34720
|
EC as DragDropContext,
|
|
34669
34721
|
pD as Draggable,
|
|
34670
34722
|
Tu as Droppable,
|
|
34671
|
-
|
|
34723
|
+
Bn as FauxChangeEvent,
|
|
34672
34724
|
Be as I18nContext,
|
|
34673
34725
|
HM as MANIFEST,
|
|
34674
34726
|
jk as ModalAction,
|
|
@@ -34821,10 +34873,10 @@ export {
|
|
|
34821
34873
|
hk as SpsTab,
|
|
34822
34874
|
gk as SpsTabPanel,
|
|
34823
34875
|
wr as SpsTable,
|
|
34824
|
-
|
|
34876
|
+
$n as SpsTableBody,
|
|
34825
34877
|
ae as SpsTableCell,
|
|
34826
34878
|
CN as SpsTableExamples,
|
|
34827
|
-
|
|
34879
|
+
Fn as SpsTableHead,
|
|
34828
34880
|
Qe as SpsTableHeader,
|
|
34829
34881
|
$e as SpsTableRow,
|
|
34830
34882
|
Zm as SpsTabsV2,
|
|
@@ -34899,7 +34951,7 @@ export {
|
|
|
34899
34951
|
qM as useModals,
|
|
34900
34952
|
Yw as useMouseSensor,
|
|
34901
34953
|
sn as usePatchReducer,
|
|
34902
|
-
|
|
34954
|
+
es as usePortal,
|
|
34903
34955
|
$M as useServerSideValidation,
|
|
34904
34956
|
JM as useSpsAction,
|
|
34905
34957
|
zb as useSpsForm,
|