@spscommerce/ds-react 7.14.1 → 7.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +1 -1
- package/lib/index.cjs.js +149 -61
- package/lib/index.es.js +386 -294
- package/package.json +13 -13
package/lib/index.es.js
CHANGED
|
@@ -1271,14 +1271,14 @@ function Xl(e, t) {
|
|
|
1271
1271
|
f != null && f === document.body && Ya(f) && !Ya(document.documentElement) || f != null && Ya(f, c) && m.push(f);
|
|
1272
1272
|
}
|
|
1273
1273
|
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(), C = T.height, k = T.width, I = T.top, b = T.right, x = T.bottom, L = T.left, M = a === "start" || a === "nearest" ? I : a === "end" ? x : I + C / 2, O = o === "center" ? L + k / 2 : o === "end" ? b : L, R = [], H = 0; H < m.length; H++) {
|
|
1274
|
-
var _ = m[H],
|
|
1274
|
+
var _ = m[H], F = _.getBoundingClientRect(), N = F.height, B = F.width, Q = F.top, J = F.right, G = F.bottom, X = F.left;
|
|
1275
1275
|
if (r === "if-needed" && I >= 0 && L >= 0 && x <= S && b <= h && I >= Q && x <= G && L >= X && b <= J)
|
|
1276
1276
|
return R;
|
|
1277
|
-
var V = getComputedStyle(_),
|
|
1277
|
+
var V = getComputedStyle(_), $ = parseInt(V.borderLeftWidth, 10), z = parseInt(V.borderTopWidth, 10), Y = parseInt(V.borderRightWidth, 10), re = parseInt(V.borderBottomWidth, 10), q = 0, W = 0, ie = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - $ - Y : 0, se = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - z - re : 0;
|
|
1278
1278
|
if (u === _)
|
|
1279
|
-
q = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? Ps(w, w + S, S, z, re, w + M, w + M + C, C) : M - S / 2, W = o === "start" ? O : o === "center" ? O - h / 2 : o === "end" ? O - h : Ps(y, y + h, h,
|
|
1279
|
+
q = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? Ps(w, w + S, S, z, re, w + M, w + M + C, C) : M - S / 2, W = o === "start" ? O : o === "center" ? O - h / 2 : o === "end" ? O - h : Ps(y, y + h, h, $, Y, y + O, y + O + k, k), q = Math.max(0, q + w), W = Math.max(0, W + y);
|
|
1280
1280
|
else {
|
|
1281
|
-
q = a === "start" ? M - Q - z : a === "end" ? M - G + re + se : a === "nearest" ? Ps(Q, G, N, z, re + se, M, M + C, C) : M - (Q + N / 2) + se / 2, W = o === "start" ? O - X -
|
|
1281
|
+
q = a === "start" ? M - Q - z : a === "end" ? M - G + re + se : a === "nearest" ? Ps(Q, G, N, z, re + se, M, M + C, C) : M - (Q + N / 2) + se / 2, W = o === "start" ? O - X - $ : o === "center" ? O - (X + B / 2) + ie / 2 : o === "end" ? O - J + Y + ie : Ps(X, J, B, $, Y + ie, O, O + k, k);
|
|
1282
1282
|
var ce = _.scrollLeft, ne = _.scrollTop;
|
|
1283
1283
|
M += ne - (q = Math.max(0, Math.min(ne + q, _.scrollHeight - N + se))), O += ce - (W = Math.max(0, Math.min(ce + W, _.scrollWidth - B + ie)));
|
|
1284
1284
|
}
|
|
@@ -1769,7 +1769,7 @@ const os = s.forwardRef((e, t) => {
|
|
|
1769
1769
|
onOptionListChanged: R,
|
|
1770
1770
|
onOptionSelected: H,
|
|
1771
1771
|
onPositionFlip: _,
|
|
1772
|
-
onSelfToggle:
|
|
1772
|
+
onSelfToggle: F,
|
|
1773
1773
|
optionRole: N,
|
|
1774
1774
|
positionOverride: B,
|
|
1775
1775
|
selectedOption: Q,
|
|
@@ -1777,7 +1777,7 @@ const os = s.forwardRef((e, t) => {
|
|
|
1777
1777
|
unsafelyReplaceClassName: G,
|
|
1778
1778
|
loading: X,
|
|
1779
1779
|
filterByTextAndCaptionKey: V,
|
|
1780
|
-
maxHeightPx:
|
|
1780
|
+
maxHeightPx: $,
|
|
1781
1781
|
maxHeightRem: z,
|
|
1782
1782
|
disableOptionsMemoization: Y,
|
|
1783
1783
|
disableDefaultOptionsFiltering: re,
|
|
@@ -1843,10 +1843,10 @@ const os = s.forwardRef((e, t) => {
|
|
|
1843
1843
|
G || "sps-option-list__options",
|
|
1844
1844
|
l && "sps-option-list__options--tall"
|
|
1845
1845
|
), pe = s.useCallback(() => {
|
|
1846
|
-
ne || (we(!0), de.current && de.current.focus(), ce(-1),
|
|
1847
|
-
}, [ne,
|
|
1848
|
-
ne && (we(!1), ce(-1),
|
|
1849
|
-
}, [ne,
|
|
1846
|
+
ne || (we(!0), de.current && de.current.focus(), ce(-1), F && F(!0));
|
|
1847
|
+
}, [ne, F]), Je = s.useCallback(() => {
|
|
1848
|
+
ne && (we(!1), ce(-1), F && F(!1));
|
|
1849
|
+
}, [ne, F]), Ft = s.useCallback((be, ue) => {
|
|
1850
1850
|
ue || be && !be.disabled && (typeof be.value == "function" ? (be.value(), w && w()) : typeof H == "function" && H(be.value), L || Je());
|
|
1851
1851
|
}, [H, Je]), xr = s.useCallback(
|
|
1852
1852
|
(be, ue, pt) => {
|
|
@@ -1916,7 +1916,7 @@ const os = s.forwardRef((e, t) => {
|
|
|
1916
1916
|
s.useEffect(() => {
|
|
1917
1917
|
if (st !== null && document.getElementsByClassName("sps-modal__body").length > 0) {
|
|
1918
1918
|
const be = () => {
|
|
1919
|
-
|
|
1919
|
+
F && F(!1);
|
|
1920
1920
|
}, ue = document.getElementsByClassName("sps-modal__body")[0];
|
|
1921
1921
|
return ue.addEventListener("scroll", be), () => {
|
|
1922
1922
|
ue.removeEventListener("scroll", be);
|
|
@@ -1935,7 +1935,7 @@ const os = s.forwardRef((e, t) => {
|
|
|
1935
1935
|
}, [M]), s.useEffect(() => {
|
|
1936
1936
|
!ne && ae.current && (St({ value: "" }), ae.current.scrollTop = 0), ne && _ && _(Be);
|
|
1937
1937
|
}, [ne]);
|
|
1938
|
-
const Ir =
|
|
1938
|
+
const Ir = $ ? $ / 16 : z, Mr = Ir ? { maxHeight: `${Ir}rem` } : {};
|
|
1939
1939
|
return Ve(
|
|
1940
1940
|
/* @__PURE__ */ s.createElement("div", {
|
|
1941
1941
|
className: ye,
|
|
@@ -2173,7 +2173,7 @@ function Zo({
|
|
|
2173
2173
|
keyDown: null,
|
|
2174
2174
|
opensUpward: !1
|
|
2175
2175
|
}), R = s.useRef(null), H = s.useRef(null), _ = s.useRef(null), {
|
|
2176
|
-
showPopup:
|
|
2176
|
+
showPopup: F,
|
|
2177
2177
|
doShowPopup: N,
|
|
2178
2178
|
doHidePopup: B
|
|
2179
2179
|
} = is(R, _);
|
|
@@ -2198,13 +2198,13 @@ function Zo({
|
|
|
2198
2198
|
function V(Y) {
|
|
2199
2199
|
Y ? N() : B();
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function $(Y) {
|
|
2202
2202
|
O({ opensUpward: Y });
|
|
2203
2203
|
}
|
|
2204
2204
|
const z = K(
|
|
2205
2205
|
m || "sps-autocomplete",
|
|
2206
|
-
|
|
2207
|
-
|
|
2206
|
+
F && "sps-autocomplete--open",
|
|
2207
|
+
F && "z-stratum-dropdown",
|
|
2208
2208
|
M.opensUpward && "sps-autocomplete--opens-upward",
|
|
2209
2209
|
n && "sps-form-control--disabled",
|
|
2210
2210
|
e
|
|
@@ -2247,12 +2247,12 @@ function Zo({
|
|
|
2247
2247
|
id: `${x}_options`,
|
|
2248
2248
|
ref: _,
|
|
2249
2249
|
attachTo: R,
|
|
2250
|
-
isOpen:
|
|
2250
|
+
isOpen: F,
|
|
2251
2251
|
options: u,
|
|
2252
2252
|
hideInlineSearch: !0,
|
|
2253
2253
|
keyDown: M.keyDown,
|
|
2254
2254
|
onOptionSelected: Q,
|
|
2255
|
-
onPositionFlip:
|
|
2255
|
+
onPositionFlip: $,
|
|
2256
2256
|
onSelfToggle: V,
|
|
2257
2257
|
offsets: [1, 0],
|
|
2258
2258
|
search: h,
|
|
@@ -2445,7 +2445,7 @@ function Er(e) {
|
|
|
2445
2445
|
maxHeightOptionListRem: I,
|
|
2446
2446
|
disableOptionsMemoization: b,
|
|
2447
2447
|
...x
|
|
2448
|
-
} = e, { t: L } = s.useContext($e), M = yr(l), [O, R] = s.useState(!1), [H, _] = s.useState(!1), [
|
|
2448
|
+
} = e, { t: L } = s.useContext($e), M = yr(l), [O, R] = s.useState(!1), [H, _] = s.useState(!1), [F, N] = s.useState(), B = u.map((ne) => typeof ne == "function" ? ne : Object.assign(ne[1], {
|
|
2449
2449
|
...Ud,
|
|
2450
2450
|
...ne[0]
|
|
2451
2451
|
})), Q = `${M.current}-button`, J = `${M.current}-menu`;
|
|
@@ -2455,7 +2455,7 @@ function Er(e) {
|
|
|
2455
2455
|
s.useEffect(() => {
|
|
2456
2456
|
O && w ? w() : !O && T && T();
|
|
2457
2457
|
}, [O]);
|
|
2458
|
-
function
|
|
2458
|
+
function $() {
|
|
2459
2459
|
R(!1);
|
|
2460
2460
|
}
|
|
2461
2461
|
function z(ne) {
|
|
@@ -2478,8 +2478,8 @@ function Er(e) {
|
|
|
2478
2478
|
function W(ne) {
|
|
2479
2479
|
ne.detail !== M.current && R(!1);
|
|
2480
2480
|
}
|
|
2481
|
-
s.useEffect(() => (document.addEventListener("click",
|
|
2482
|
-
document.removeEventListener("click",
|
|
2481
|
+
s.useEffect(() => (document.addEventListener("click", $), document.addEventListener("DropdownOpened", W), () => {
|
|
2482
|
+
document.removeEventListener("click", $), document.removeEventListener("DropdownOpened", W);
|
|
2483
2483
|
}), []), s.useEffect(() => {
|
|
2484
2484
|
if (O) {
|
|
2485
2485
|
const ne = document.createEvent("CustomEvent");
|
|
@@ -2509,7 +2509,7 @@ function Er(e) {
|
|
|
2509
2509
|
positionOverride: ce,
|
|
2510
2510
|
isOpen: O,
|
|
2511
2511
|
"aria-labelledby": Q,
|
|
2512
|
-
keyDown:
|
|
2512
|
+
keyDown: F,
|
|
2513
2513
|
onOptionSelected: re,
|
|
2514
2514
|
id: J,
|
|
2515
2515
|
attachTo: V,
|
|
@@ -3940,11 +3940,11 @@ function Rv() {
|
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
-
var x = p, L = u, M = c, O = l, R = t, H = m, _ = r,
|
|
3943
|
+
var x = p, L = u, M = c, O = l, R = t, H = m, _ = r, F = y, N = S, B = n, Q = o, J = a, G = f, X = !1;
|
|
3944
3944
|
function V(ae) {
|
|
3945
|
-
return X || (X = !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.")),
|
|
3945
|
+
return X || (X = !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.")), $(ae) || b(ae) === p;
|
|
3946
3946
|
}
|
|
3947
|
-
function
|
|
3947
|
+
function $(ae) {
|
|
3948
3948
|
return b(ae) === u;
|
|
3949
3949
|
}
|
|
3950
3950
|
function z(ae) {
|
|
@@ -3980,7 +3980,7 @@ function Rv() {
|
|
|
3980
3980
|
function Ne(ae) {
|
|
3981
3981
|
return b(ae) === f;
|
|
3982
3982
|
}
|
|
3983
|
-
Oe.AsyncMode = x, Oe.ConcurrentMode = L, Oe.ContextConsumer = M, Oe.ContextProvider = O, Oe.Element = R, Oe.ForwardRef = H, Oe.Fragment = _, Oe.Lazy =
|
|
3983
|
+
Oe.AsyncMode = x, Oe.ConcurrentMode = L, Oe.ContextConsumer = M, Oe.ContextProvider = O, Oe.Element = R, Oe.ForwardRef = H, Oe.Fragment = _, Oe.Lazy = F, Oe.Memo = N, Oe.Portal = B, Oe.Profiler = Q, Oe.StrictMode = J, Oe.Suspense = G, Oe.isAsyncMode = V, Oe.isConcurrentMode = $, Oe.isContextConsumer = z, Oe.isContextProvider = Y, Oe.isElement = re, Oe.isForwardRef = q, Oe.isFragment = W, Oe.isLazy = ie, Oe.isMemo = se, Oe.isPortal = ce, Oe.isProfiler = ne, Oe.isStrictMode = we, Oe.isSuspense = Ne, Oe.isValidElementType = I, Oe.typeOf = b;
|
|
3984
3984
|
}()), Oe;
|
|
3985
3985
|
}
|
|
3986
3986
|
(function(e) {
|
|
@@ -4117,9 +4117,9 @@ function Av() {
|
|
|
4117
4117
|
return Za = function(c, p) {
|
|
4118
4118
|
var u = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
4119
4119
|
function f(V) {
|
|
4120
|
-
var
|
|
4121
|
-
if (typeof
|
|
4122
|
-
return
|
|
4120
|
+
var $ = V && (u && V[u] || V[m]);
|
|
4121
|
+
if (typeof $ == "function")
|
|
4122
|
+
return $;
|
|
4123
4123
|
}
|
|
4124
4124
|
var h = "<<anonymous>>", S = {
|
|
4125
4125
|
array: C("array"),
|
|
@@ -4139,10 +4139,10 @@ function Av() {
|
|
|
4139
4139
|
oneOf: M,
|
|
4140
4140
|
oneOfType: R,
|
|
4141
4141
|
shape: _,
|
|
4142
|
-
exact:
|
|
4142
|
+
exact: F
|
|
4143
4143
|
};
|
|
4144
|
-
function y(V,
|
|
4145
|
-
return V ===
|
|
4144
|
+
function y(V, $) {
|
|
4145
|
+
return V === $ ? V !== 0 || 1 / V === 1 / $ : V !== V && $ !== $;
|
|
4146
4146
|
}
|
|
4147
4147
|
function w(V) {
|
|
4148
4148
|
this.message = V, this.stack = "";
|
|
@@ -4150,7 +4150,7 @@ function Av() {
|
|
|
4150
4150
|
w.prototype = Error.prototype;
|
|
4151
4151
|
function T(V) {
|
|
4152
4152
|
if (process.env.NODE_ENV !== "production")
|
|
4153
|
-
var
|
|
4153
|
+
var $ = {}, z = 0;
|
|
4154
4154
|
function Y(q, W, ie, se, ce, ne, we) {
|
|
4155
4155
|
if (se = se || h, ne = ne || ie, we !== n) {
|
|
4156
4156
|
if (p) {
|
|
@@ -4160,9 +4160,9 @@ function Av() {
|
|
|
4160
4160
|
throw Ne.name = "Invariant Violation", Ne;
|
|
4161
4161
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4162
4162
|
var ae = se + ":" + ie;
|
|
4163
|
-
|
|
4163
|
+
!$[ae] && z < 3 && (o(
|
|
4164
4164
|
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + se + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4165
|
-
),
|
|
4165
|
+
), $[ae] = !0, z++);
|
|
4166
4166
|
}
|
|
4167
4167
|
}
|
|
4168
4168
|
return W[ie] == null ? q ? W[ie] === null ? new w("The " + ce + " `" + ne + "` is marked as required " + ("in `" + se + "`, but its value is `null`.")) : new w("The " + ce + " `" + ne + "` is marked as required in " + ("`" + se + "`, but its value is `undefined`.")) : null : V(W, ie, se, ce, ne);
|
|
@@ -4171,7 +4171,7 @@ function Av() {
|
|
|
4171
4171
|
return re.isRequired = Y.bind(null, !0), re;
|
|
4172
4172
|
}
|
|
4173
4173
|
function C(V) {
|
|
4174
|
-
function
|
|
4174
|
+
function $(z, Y, re, q, W, ie) {
|
|
4175
4175
|
var se = z[Y], ce = Q(se);
|
|
4176
4176
|
if (ce !== V) {
|
|
4177
4177
|
var ne = J(se);
|
|
@@ -4179,13 +4179,13 @@ function Av() {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
return null;
|
|
4181
4181
|
}
|
|
4182
|
-
return T(
|
|
4182
|
+
return T($);
|
|
4183
4183
|
}
|
|
4184
4184
|
function k() {
|
|
4185
4185
|
return T(l);
|
|
4186
4186
|
}
|
|
4187
4187
|
function I(V) {
|
|
4188
|
-
function
|
|
4188
|
+
function $(z, Y, re, q, W) {
|
|
4189
4189
|
if (typeof V != "function")
|
|
4190
4190
|
return new w("Property `" + W + "` of component `" + re + "` has invalid PropType notation inside arrayOf.");
|
|
4191
4191
|
var ie = z[Y];
|
|
@@ -4200,11 +4200,11 @@ function Av() {
|
|
|
4200
4200
|
}
|
|
4201
4201
|
return null;
|
|
4202
4202
|
}
|
|
4203
|
-
return T(
|
|
4203
|
+
return T($);
|
|
4204
4204
|
}
|
|
4205
4205
|
function b() {
|
|
4206
|
-
function V(
|
|
4207
|
-
var W =
|
|
4206
|
+
function V($, z, Y, re, q) {
|
|
4207
|
+
var W = $[z];
|
|
4208
4208
|
if (!c(W)) {
|
|
4209
4209
|
var ie = Q(W);
|
|
4210
4210
|
return new w("Invalid " + re + " `" + q + "` of type " + ("`" + ie + "` supplied to `" + Y + "`, expected a single ReactElement."));
|
|
@@ -4214,8 +4214,8 @@ function Av() {
|
|
|
4214
4214
|
return T(V);
|
|
4215
4215
|
}
|
|
4216
4216
|
function x() {
|
|
4217
|
-
function V(
|
|
4218
|
-
var W =
|
|
4217
|
+
function V($, z, Y, re, q) {
|
|
4218
|
+
var W = $[z];
|
|
4219
4219
|
if (!e.isValidElementType(W)) {
|
|
4220
4220
|
var ie = Q(W);
|
|
4221
4221
|
return new w("Invalid " + re + " `" + q + "` of type " + ("`" + ie + "` supplied to `" + Y + "`, expected a single ReactElement type."));
|
|
@@ -4225,21 +4225,21 @@ function Av() {
|
|
|
4225
4225
|
return T(V);
|
|
4226
4226
|
}
|
|
4227
4227
|
function L(V) {
|
|
4228
|
-
function
|
|
4228
|
+
function $(z, Y, re, q, W) {
|
|
4229
4229
|
if (!(z[Y] instanceof V)) {
|
|
4230
4230
|
var ie = V.name || h, se = X(z[Y]);
|
|
4231
4231
|
return new w("Invalid " + q + " `" + W + "` of type " + ("`" + se + "` supplied to `" + re + "`, expected ") + ("instance of `" + ie + "`."));
|
|
4232
4232
|
}
|
|
4233
4233
|
return null;
|
|
4234
4234
|
}
|
|
4235
|
-
return T(
|
|
4235
|
+
return T($);
|
|
4236
4236
|
}
|
|
4237
4237
|
function M(V) {
|
|
4238
4238
|
if (!Array.isArray(V))
|
|
4239
4239
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
4240
4240
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4241
4241
|
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
4242
|
-
function
|
|
4242
|
+
function $(z, Y, re, q, W) {
|
|
4243
4243
|
for (var ie = z[Y], se = 0; se < V.length; se++)
|
|
4244
4244
|
if (y(ie, V[se]))
|
|
4245
4245
|
return null;
|
|
@@ -4249,10 +4249,10 @@ function Av() {
|
|
|
4249
4249
|
});
|
|
4250
4250
|
return new w("Invalid " + q + " `" + W + "` of value `" + String(ie) + "` " + ("supplied to `" + re + "`, expected one of " + ce + "."));
|
|
4251
4251
|
}
|
|
4252
|
-
return T(
|
|
4252
|
+
return T($);
|
|
4253
4253
|
}
|
|
4254
4254
|
function O(V) {
|
|
4255
|
-
function
|
|
4255
|
+
function $(z, Y, re, q, W) {
|
|
4256
4256
|
if (typeof V != "function")
|
|
4257
4257
|
return new w("Property `" + W + "` of component `" + re + "` has invalid PropType notation inside objectOf.");
|
|
4258
4258
|
var ie = z[Y], se = Q(ie);
|
|
@@ -4266,16 +4266,16 @@ function Av() {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
return null;
|
|
4268
4268
|
}
|
|
4269
|
-
return T(
|
|
4269
|
+
return T($);
|
|
4270
4270
|
}
|
|
4271
4271
|
function R(V) {
|
|
4272
4272
|
if (!Array.isArray(V))
|
|
4273
4273
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
4274
|
-
for (var
|
|
4275
|
-
var z = V[
|
|
4274
|
+
for (var $ = 0; $ < V.length; $++) {
|
|
4275
|
+
var z = V[$];
|
|
4276
4276
|
if (typeof z != "function")
|
|
4277
4277
|
return o(
|
|
4278
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(z) + " at index " +
|
|
4278
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + G(z) + " at index " + $ + "."
|
|
4279
4279
|
), l;
|
|
4280
4280
|
}
|
|
4281
4281
|
function Y(re, q, W, ie, se) {
|
|
@@ -4289,13 +4289,13 @@ function Av() {
|
|
|
4289
4289
|
return T(Y);
|
|
4290
4290
|
}
|
|
4291
4291
|
function H() {
|
|
4292
|
-
function V(
|
|
4293
|
-
return N(
|
|
4292
|
+
function V($, z, Y, re, q) {
|
|
4293
|
+
return N($[z]) ? null : new w("Invalid " + re + " `" + q + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
|
|
4294
4294
|
}
|
|
4295
4295
|
return T(V);
|
|
4296
4296
|
}
|
|
4297
4297
|
function _(V) {
|
|
4298
|
-
function
|
|
4298
|
+
function $(z, Y, re, q, W) {
|
|
4299
4299
|
var ie = z[Y], se = Q(ie);
|
|
4300
4300
|
if (se !== "object")
|
|
4301
4301
|
return new w("Invalid " + q + " `" + W + "` of type `" + se + "` " + ("supplied to `" + re + "`, expected `object`."));
|
|
@@ -4309,10 +4309,10 @@ function Av() {
|
|
|
4309
4309
|
}
|
|
4310
4310
|
return null;
|
|
4311
4311
|
}
|
|
4312
|
-
return T(
|
|
4312
|
+
return T($);
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4315
|
-
function
|
|
4314
|
+
function F(V) {
|
|
4315
|
+
function $(z, Y, re, q, W) {
|
|
4316
4316
|
var ie = z[Y], se = Q(ie);
|
|
4317
4317
|
if (se !== "object")
|
|
4318
4318
|
return new w("Invalid " + q + " `" + W + "` of type `" + se + "` " + ("supplied to `" + re + "`, expected `object`."));
|
|
@@ -4330,7 +4330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(V), null, " ")
|
|
|
4330
4330
|
}
|
|
4331
4331
|
return null;
|
|
4332
4332
|
}
|
|
4333
|
-
return T(
|
|
4333
|
+
return T($);
|
|
4334
4334
|
}
|
|
4335
4335
|
function N(V) {
|
|
4336
4336
|
switch (typeof V) {
|
|
@@ -4345,10 +4345,10 @@ Valid keys: ` + JSON.stringify(Object.keys(V), null, " ")
|
|
|
4345
4345
|
return V.every(N);
|
|
4346
4346
|
if (V === null || c(V))
|
|
4347
4347
|
return !0;
|
|
4348
|
-
var
|
|
4349
|
-
if (
|
|
4350
|
-
var z =
|
|
4351
|
-
if (
|
|
4348
|
+
var $ = f(V);
|
|
4349
|
+
if ($) {
|
|
4350
|
+
var z = $.call(V), Y;
|
|
4351
|
+
if ($ !== V.entries) {
|
|
4352
4352
|
for (; !(Y = z.next()).done; )
|
|
4353
4353
|
if (!N(Y.value))
|
|
4354
4354
|
return !1;
|
|
@@ -4365,37 +4365,37 @@ Valid keys: ` + JSON.stringify(Object.keys(V), null, " ")
|
|
|
4365
4365
|
return !1;
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
4368
|
-
function B(V,
|
|
4369
|
-
return V === "symbol" ? !0 :
|
|
4368
|
+
function B(V, $) {
|
|
4369
|
+
return V === "symbol" ? !0 : $ ? $["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && $ instanceof Symbol : !1;
|
|
4370
4370
|
}
|
|
4371
4371
|
function Q(V) {
|
|
4372
|
-
var
|
|
4373
|
-
return Array.isArray(V) ? "array" : V instanceof RegExp ? "object" : B(
|
|
4372
|
+
var $ = typeof V;
|
|
4373
|
+
return Array.isArray(V) ? "array" : V instanceof RegExp ? "object" : B($, V) ? "symbol" : $;
|
|
4374
4374
|
}
|
|
4375
4375
|
function J(V) {
|
|
4376
4376
|
if (typeof V > "u" || V === null)
|
|
4377
4377
|
return "" + V;
|
|
4378
|
-
var
|
|
4379
|
-
if (
|
|
4378
|
+
var $ = Q(V);
|
|
4379
|
+
if ($ === "object") {
|
|
4380
4380
|
if (V instanceof Date)
|
|
4381
4381
|
return "date";
|
|
4382
4382
|
if (V instanceof RegExp)
|
|
4383
4383
|
return "regexp";
|
|
4384
4384
|
}
|
|
4385
|
-
return
|
|
4385
|
+
return $;
|
|
4386
4386
|
}
|
|
4387
4387
|
function G(V) {
|
|
4388
|
-
var
|
|
4389
|
-
switch (
|
|
4388
|
+
var $ = J(V);
|
|
4389
|
+
switch ($) {
|
|
4390
4390
|
case "array":
|
|
4391
4391
|
case "object":
|
|
4392
|
-
return "an " +
|
|
4392
|
+
return "an " + $;
|
|
4393
4393
|
case "boolean":
|
|
4394
4394
|
case "date":
|
|
4395
4395
|
case "regexp":
|
|
4396
|
-
return "a " +
|
|
4396
|
+
return "a " + $;
|
|
4397
4397
|
default:
|
|
4398
|
-
return
|
|
4398
|
+
return $;
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
4401
|
function X(V) {
|
|
@@ -4712,7 +4712,7 @@ function iy(e, t) {
|
|
|
4712
4712
|
wrappedComponentName: O,
|
|
4713
4713
|
WrappedComponent: M
|
|
4714
4714
|
}), _ = I.pure;
|
|
4715
|
-
function
|
|
4715
|
+
function F(G) {
|
|
4716
4716
|
return e(G.dispatch, H);
|
|
4717
4717
|
}
|
|
4718
4718
|
var N = _ ? Ue : function(G) {
|
|
@@ -4722,13 +4722,13 @@ function iy(e, t) {
|
|
|
4722
4722
|
var X = Ue(function() {
|
|
4723
4723
|
var xe = G.reactReduxForwardedRef, St = Xs(G, Qv);
|
|
4724
4724
|
return [G.context, xe, St];
|
|
4725
|
-
}, [G]), V = X[0],
|
|
4725
|
+
}, [G]), V = X[0], $ = X[1], z = X[2], Y = Ue(function() {
|
|
4726
4726
|
return V && V.Consumer && gr.exports.isContextConsumer(/* @__PURE__ */ j.createElement(V.Consumer, null)) ? V : x;
|
|
4727
4727
|
}, [V, x]), re = on(Y), q = Boolean(G.store) && Boolean(G.store.getState) && Boolean(G.store.dispatch), W = Boolean(re) && Boolean(re.store);
|
|
4728
4728
|
if (process.env.NODE_ENV !== "production" && !q && !W)
|
|
4729
4729
|
throw new Error('Could not find "store" in the context of ' + ('"' + R + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + R + " in connect options."));
|
|
4730
4730
|
var ie = q ? G.store : re.store, se = Ue(function() {
|
|
4731
|
-
return
|
|
4731
|
+
return F(ie);
|
|
4732
4732
|
}, [ie]), ce = Ue(function() {
|
|
4733
4733
|
if (!m)
|
|
4734
4734
|
return ty;
|
|
@@ -4747,9 +4747,9 @@ function iy(e, t) {
|
|
|
4747
4747
|
yc(sy, [at, gt, Be, z, ze, ve, we]), yc(ay, [m, ie, ne, se, at, gt, Be, ve, we, st], [ie, ne, se]);
|
|
4748
4748
|
var de = Ue(function() {
|
|
4749
4749
|
return /* @__PURE__ */ j.createElement(M, fe({}, ze, {
|
|
4750
|
-
ref:
|
|
4750
|
+
ref: $
|
|
4751
4751
|
}));
|
|
4752
|
-
}, [
|
|
4752
|
+
}, [$, M, ze]), Ce = Ue(function() {
|
|
4753
4753
|
return m ? /* @__PURE__ */ j.createElement(Y.Provider, {
|
|
4754
4754
|
value: Ne
|
|
4755
4755
|
}, de) : de;
|
|
@@ -4947,7 +4947,7 @@ function Iy(e) {
|
|
|
4947
4947
|
var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? iy : n, a = t.mapStateToPropsFactories, o = a === void 0 ? gy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? my : l, p = t.mergePropsFactories, u = p === void 0 ? Ey : p, m = t.selectorFactory, f = m === void 0 ? Ny : m;
|
|
4948
4948
|
return function(S, y, w, T) {
|
|
4949
4949
|
T === void 0 && (T = {});
|
|
4950
|
-
var C = T, k = C.pure, I = k === void 0 ? !0 : k, b = C.areStatesEqual, x = b === void 0 ? ky : b, L = C.areOwnPropsEqual, M = L === void 0 ? Qa : L, O = C.areStatePropsEqual, R = O === void 0 ? Qa : O, H = C.areMergedPropsEqual, _ = H === void 0 ? Qa : H,
|
|
4950
|
+
var C = T, k = C.pure, I = k === void 0 ? !0 : k, b = C.areStatesEqual, x = b === void 0 ? ky : b, L = C.areOwnPropsEqual, M = L === void 0 ? Qa : L, O = C.areStatePropsEqual, R = O === void 0 ? Qa : O, H = C.areMergedPropsEqual, _ = H === void 0 ? Qa : H, F = Xs(C, xy), N = to(S, o, "mapStateToProps"), B = to(y, c, "mapDispatchToProps"), Q = to(w, u, "mergeProps");
|
|
4951
4951
|
return r(f, fe({
|
|
4952
4952
|
methodName: "connect",
|
|
4953
4953
|
getDisplayName: function(G) {
|
|
@@ -4962,7 +4962,7 @@ function Iy(e) {
|
|
|
4962
4962
|
areOwnPropsEqual: M,
|
|
4963
4963
|
areStatePropsEqual: R,
|
|
4964
4964
|
areMergedPropsEqual: _
|
|
4965
|
-
},
|
|
4965
|
+
}, F));
|
|
4966
4966
|
};
|
|
4967
4967
|
}
|
|
4968
4968
|
const Tp = /* @__PURE__ */ Iy();
|
|
@@ -6695,10 +6695,10 @@ var Ac = {
|
|
|
6695
6695
|
var O = t.payload, R = O.id, H = O.isEnabled, _ = e.dimensions.droppables[R];
|
|
6696
6696
|
_ || (process.env.NODE_ENV !== "production" ? A(!1, "Cannot find Droppable[id: " + R + "] to toggle its enabled state") : A(!1)), _.isEnabled === H && (process.env.NODE_ENV !== "production" ? A(!1, "Trying to set droppable isEnabled to " + String(H) + `
|
|
6697
6697
|
but it is already ` + String(_.isEnabled)) : A(!1));
|
|
6698
|
-
var
|
|
6698
|
+
var F = fe({}, _, {
|
|
6699
6699
|
isEnabled: H
|
|
6700
6700
|
});
|
|
6701
|
-
return ro(e,
|
|
6701
|
+
return ro(e, F, !0);
|
|
6702
6702
|
}
|
|
6703
6703
|
if (t.type === "UPDATE_DROPPABLE_IS_COMBINE_ENABLED") {
|
|
6704
6704
|
if (e.phase === "DROP_PENDING")
|
|
@@ -6731,12 +6731,12 @@ var Ac = {
|
|
|
6731
6731
|
if (t.type === "UPDATE_VIEWPORT_MAX_SCROLL") {
|
|
6732
6732
|
if (!On(e))
|
|
6733
6733
|
return e;
|
|
6734
|
-
var
|
|
6735
|
-
if (Sn(
|
|
6734
|
+
var $ = t.payload.maxScroll;
|
|
6735
|
+
if (Sn($, e.viewport.scroll.max))
|
|
6736
6736
|
return e;
|
|
6737
6737
|
var z = fe({}, e.viewport, {
|
|
6738
6738
|
scroll: fe({}, e.viewport.scroll, {
|
|
6739
|
-
max:
|
|
6739
|
+
max: $
|
|
6740
6740
|
})
|
|
6741
6741
|
});
|
|
6742
6742
|
return fe({
|
|
@@ -10081,12 +10081,12 @@ function gD(e) {
|
|
|
10081
10081
|
t || (process.env.NODE_ENV !== "production" ? A(!1, "Could not find app context") : A(!1));
|
|
10082
10082
|
var n = t.contextId, r = t.isMovementAllowed, a = me(null), o = me(null), l = e.children, c = e.droppableId, p = e.type, u = e.mode, m = e.direction, f = e.ignoreContainerClipping, h = e.isDropDisabled, S = e.isCombineEnabled, y = e.snapshot, w = e.useClone, T = e.updateViewportMaxScroll, C = e.getContainerForClone, k = he(function() {
|
|
10083
10083
|
return a.current;
|
|
10084
|
-
}, []), I = he(function(
|
|
10085
|
-
a.current =
|
|
10084
|
+
}, []), I = he(function(F) {
|
|
10085
|
+
a.current = F;
|
|
10086
10086
|
}, []), b = he(function() {
|
|
10087
10087
|
return o.current;
|
|
10088
|
-
}, []), x = he(function(
|
|
10089
|
-
o.current =
|
|
10088
|
+
}, []), x = he(function(F) {
|
|
10089
|
+
o.current = F;
|
|
10090
10090
|
}, []);
|
|
10091
10091
|
jC({
|
|
10092
10092
|
props: e,
|
|
@@ -10111,8 +10111,8 @@ function gD(e) {
|
|
|
10111
10111
|
var M = j.createElement(zC, {
|
|
10112
10112
|
on: e.placeholder,
|
|
10113
10113
|
shouldAnimate: e.shouldAnimatePlaceholder
|
|
10114
|
-
}, function(
|
|
10115
|
-
var N =
|
|
10114
|
+
}, function(F) {
|
|
10115
|
+
var N = F.onClose, B = F.data, Q = F.animate;
|
|
10116
10116
|
return j.createElement(WC, {
|
|
10117
10117
|
placeholder: B,
|
|
10118
10118
|
onClose: N,
|
|
@@ -10140,15 +10140,15 @@ function gD(e) {
|
|
|
10140
10140
|
function _() {
|
|
10141
10141
|
if (!w)
|
|
10142
10142
|
return null;
|
|
10143
|
-
var
|
|
10144
|
-
draggableId:
|
|
10145
|
-
index:
|
|
10143
|
+
var F = w.dragging, N = w.render, B = j.createElement(Cu, {
|
|
10144
|
+
draggableId: F.draggableId,
|
|
10145
|
+
index: F.source.index,
|
|
10146
10146
|
isClone: !0,
|
|
10147
10147
|
isEnabled: !0,
|
|
10148
10148
|
shouldRespectForcePress: !1,
|
|
10149
10149
|
canDragInteractiveElements: !0
|
|
10150
10150
|
}, function(Q, J) {
|
|
10151
|
-
return N(Q, J,
|
|
10151
|
+
return N(Q, J, F);
|
|
10152
10152
|
});
|
|
10153
10153
|
return mb.createPortal(B, C());
|
|
10154
10154
|
}
|
|
@@ -12014,13 +12014,13 @@ function Ea(e) {
|
|
|
12014
12014
|
function _(N) {
|
|
12015
12015
|
N && S && N.month === S.month && Z.isInRange(N, [a, r]) !== !1 && o(N), N && u && w && N.month === w.month && Z.isInRange(N, [a, r]) !== !1 && o(N);
|
|
12016
12016
|
}
|
|
12017
|
-
const
|
|
12017
|
+
const F = K(
|
|
12018
12018
|
mt,
|
|
12019
12019
|
n
|
|
12020
12020
|
);
|
|
12021
12021
|
return S ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
12022
12022
|
"data-testid": `${m}`,
|
|
12023
|
-
className:
|
|
12023
|
+
className: F,
|
|
12024
12024
|
...f,
|
|
12025
12025
|
onMouseOver: R
|
|
12026
12026
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
@@ -12068,7 +12068,7 @@ function Ea(e) {
|
|
|
12068
12068
|
"data-testid": `${m}_${Z.toString(Q)}`
|
|
12069
12069
|
}, Q ? Q.date : "")))))), u && /* @__PURE__ */ s.createElement("div", {
|
|
12070
12070
|
"data-testid": `${m}`,
|
|
12071
|
-
className:
|
|
12071
|
+
className: F,
|
|
12072
12072
|
...f,
|
|
12073
12073
|
onMouseOver: R
|
|
12074
12074
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
@@ -12167,27 +12167,27 @@ function Lu({
|
|
|
12167
12167
|
doShowPopup: I,
|
|
12168
12168
|
doHidePopup: b
|
|
12169
12169
|
} = is(S, y);
|
|
12170
|
-
function x(
|
|
12171
|
-
r && (r.setValue(
|
|
12170
|
+
function x(F) {
|
|
12171
|
+
r && (r.setValue(F), r.markAsDirty()), c && c(F);
|
|
12172
12172
|
}
|
|
12173
|
-
function L(
|
|
12174
|
-
x(
|
|
12173
|
+
function L(F) {
|
|
12174
|
+
x(F), C(Z.toString(F)), w && w.current && w.current.focus();
|
|
12175
12175
|
}
|
|
12176
|
-
function M(
|
|
12177
|
-
C(
|
|
12178
|
-
const
|
|
12179
|
-
x(
|
|
12176
|
+
function M(F) {
|
|
12177
|
+
C(F.target.value);
|
|
12178
|
+
const N = Z.createFrom(F.target.value);
|
|
12179
|
+
x(N);
|
|
12180
12180
|
}
|
|
12181
12181
|
function O() {
|
|
12182
12182
|
b(), C(""), x();
|
|
12183
12183
|
}
|
|
12184
|
-
function R(
|
|
12185
|
-
switch (
|
|
12184
|
+
function R(F) {
|
|
12185
|
+
switch (F.key) {
|
|
12186
12186
|
case "Tab":
|
|
12187
12187
|
b();
|
|
12188
12188
|
break;
|
|
12189
12189
|
case "Backspace":
|
|
12190
|
-
|
|
12190
|
+
F.target.selectionStart === 0 && p && !Array.isArray(p) && O();
|
|
12191
12191
|
break;
|
|
12192
12192
|
}
|
|
12193
12193
|
}
|
|
@@ -12196,9 +12196,9 @@ function Lu({
|
|
|
12196
12196
|
"sps-text-input",
|
|
12197
12197
|
k && `${id}--open`,
|
|
12198
12198
|
t
|
|
12199
|
-
);
|
|
12199
|
+
), _ = s.useRef(!1);
|
|
12200
12200
|
return s.useEffect(() => {
|
|
12201
|
-
p ? Z.isValid(p) && C(Z.toString(p)) : O();
|
|
12201
|
+
_.current ? p ? Z.isValid(p) && C(Z.toString(p)) : O() : _.current = !0;
|
|
12202
12202
|
}, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ct, {
|
|
12203
12203
|
id: f,
|
|
12204
12204
|
className: H,
|
|
@@ -12435,72 +12435,72 @@ function Ou({
|
|
|
12435
12435
|
doShowPopup: H,
|
|
12436
12436
|
doHidePopup: _
|
|
12437
12437
|
} = is(T, k);
|
|
12438
|
-
function $
|
|
12439
|
-
r && (r.setValue(
|
|
12438
|
+
function F($) {
|
|
12439
|
+
r && (r.setValue($), r.markAsDirty()), c && c($);
|
|
12440
12440
|
}
|
|
12441
|
-
function N(
|
|
12441
|
+
function N($) {
|
|
12442
12442
|
const z = u || [];
|
|
12443
12443
|
let Y;
|
|
12444
|
-
!z[0] || z[1] || Z.isBefore(
|
|
12444
|
+
!z[0] || z[1] || Z.isBefore($, z[0]) ? Y = [$, null] : (Y = [z[0], $], _(!0), C && C.current && C.current.focus()), x && X(x) === "Before" && z[0] === null && z[1] === null && (Y = [null, $], _(!0), C && C.current && C.current.focus()), x && X(x) === "After" && (_(!0), C && C.current && C.current.focus()), F(Y), b(Z.toStringRange(Y)), O(void 0), (x && X(x) === "Before" && Y && Y[0] !== null || x && X(x) !== "Before" && X(x) !== "After") && L(null);
|
|
12445
12445
|
}
|
|
12446
|
-
function B(
|
|
12447
|
-
b(
|
|
12448
|
-
const z = Z.createRangeFrom(
|
|
12449
|
-
|
|
12446
|
+
function B($) {
|
|
12447
|
+
b($.target.value);
|
|
12448
|
+
const z = Z.createRangeFrom($.target.value);
|
|
12449
|
+
F(z), O(void 0);
|
|
12450
12450
|
}
|
|
12451
12451
|
function Q() {
|
|
12452
|
-
b(""),
|
|
12452
|
+
b(""), F(), O(void 0), L(null);
|
|
12453
12453
|
}
|
|
12454
|
-
function J(
|
|
12455
|
-
switch (
|
|
12454
|
+
function J($) {
|
|
12455
|
+
switch ($.key) {
|
|
12456
12456
|
case "Tab":
|
|
12457
12457
|
_();
|
|
12458
12458
|
break;
|
|
12459
12459
|
case "Backspace":
|
|
12460
|
-
|
|
12460
|
+
$.target.selectionStart === 0 && u && !Array.isArray(u) && Q();
|
|
12461
12461
|
break;
|
|
12462
12462
|
}
|
|
12463
12463
|
}
|
|
12464
|
-
function G(
|
|
12465
|
-
if (
|
|
12466
|
-
L(null),
|
|
12464
|
+
function G($) {
|
|
12465
|
+
if (!$) {
|
|
12466
|
+
L(null), F(void 0);
|
|
12467
12467
|
return;
|
|
12468
12468
|
}
|
|
12469
|
-
L(
|
|
12470
|
-
const z = Z.createRangeFromPreset(
|
|
12471
|
-
if (
|
|
12469
|
+
L($);
|
|
12470
|
+
const z = Z.createRangeFromPreset($);
|
|
12471
|
+
if ($ && X($) === "Before")
|
|
12472
12472
|
if (u && u[0] && u[1]) {
|
|
12473
12473
|
let Y = Z.createRangeFrom("-");
|
|
12474
|
-
Y &&
|
|
12474
|
+
Y && F(Y);
|
|
12475
12475
|
} else {
|
|
12476
12476
|
let Y = Z.createRangeFrom(`-${Z.toString(u && u[0])}`);
|
|
12477
|
-
Y &&
|
|
12477
|
+
Y && F(Y);
|
|
12478
12478
|
}
|
|
12479
|
-
else if (
|
|
12479
|
+
else if ($ && X($) === "After")
|
|
12480
12480
|
if (u && u[0] && u[1]) {
|
|
12481
12481
|
let Y = Z.createRangeFrom("-");
|
|
12482
|
-
Y &&
|
|
12482
|
+
Y && F(Y);
|
|
12483
12483
|
} else {
|
|
12484
12484
|
let Y = Z.createRangeFrom(`${Z.toString(u && u[0])}-`);
|
|
12485
|
-
Y &&
|
|
12485
|
+
Y && F(Y);
|
|
12486
12486
|
}
|
|
12487
12487
|
else
|
|
12488
|
-
JSON.stringify(u) !== JSON.stringify(z) &&
|
|
12488
|
+
JSON.stringify(u) !== JSON.stringify(z) && F(z);
|
|
12489
12489
|
}
|
|
12490
12490
|
s.useEffect(() => {
|
|
12491
12491
|
if (!!u && p !== cd && Array.isArray(u)) {
|
|
12492
|
-
const
|
|
12493
|
-
(Y) =>
|
|
12492
|
+
const $ = Z.toStringRange(u), z = p.find(
|
|
12493
|
+
(Y) => $ === Z.toStringRange(
|
|
12494
12494
|
Z.createRangeFromPreset(Y)
|
|
12495
12495
|
)
|
|
12496
12496
|
);
|
|
12497
12497
|
z ? G(z) : u[0] === null || u[1] === null || L(null);
|
|
12498
12498
|
}
|
|
12499
12499
|
}, [u]), s.useEffect(() => {
|
|
12500
|
-
u ? Array.isArray(u) && !x ? (u.every((
|
|
12500
|
+
u ? Array.isArray(u) && !x ? (u.every(($) => Z.isValid($) || $ === null) && b(Z.toStringRange(u)), O(void 0)) : Array.isArray(u) && x && X(x) === "Before" ? u && u[0] && u[1] ? L(null) : u.every(($) => Z.isValid($) || $ === null) && b(Z.toStringRange(u)) : Array.isArray(u) && x && X(x) === "After" ? u && u[0] && u[1] ? L(null) : u.every(($) => Z.isValid($) || $ === null) && b(Z.toStringRange(u)) : Array.isArray(u) && x && b("") : Q();
|
|
12501
12501
|
}, [u, x]);
|
|
12502
|
-
function X(
|
|
12503
|
-
return
|
|
12502
|
+
function X($) {
|
|
12503
|
+
return $ && /^design-system:/.test($.label) ? S($.label) : $.label;
|
|
12504
12504
|
}
|
|
12505
12505
|
const V = K(
|
|
12506
12506
|
ld,
|
|
@@ -12562,21 +12562,21 @@ function Ou({
|
|
|
12562
12562
|
}), /* @__PURE__ */ s.createElement("label", {
|
|
12563
12563
|
className: "sps-custom-control__label",
|
|
12564
12564
|
htmlFor: `sps-date-range-picker-${y}__range-custom`
|
|
12565
|
-
}, S("design-system:datepicker.preset.custom"))), p.map((
|
|
12566
|
-
key: X(
|
|
12565
|
+
}, S("design-system:datepicker.preset.custom"))), p.map(($, z) => /* @__PURE__ */ s.createElement("div", {
|
|
12566
|
+
key: X($),
|
|
12567
12567
|
className: "sps-custom-control sps-custom-radio sps-custom-control--no-error"
|
|
12568
12568
|
}, /* @__PURE__ */ s.createElement("input", {
|
|
12569
12569
|
type: "radio",
|
|
12570
|
-
"data-testid": `${f}_preset_option_${
|
|
12570
|
+
"data-testid": `${f}_preset_option_${$.label}`,
|
|
12571
12571
|
id: `sps-date-range-picker-${y}__range-${z}`,
|
|
12572
12572
|
name: `sps-date-range-picker-${y}__range`,
|
|
12573
|
-
onChange: () => G(
|
|
12574
|
-
checked: x != null && x.definition ? x.definition ===
|
|
12573
|
+
onChange: () => G($),
|
|
12574
|
+
checked: x != null && x.definition ? x.definition === $.definition : !1,
|
|
12575
12575
|
className: "sps-custom-control__input"
|
|
12576
12576
|
}), /* @__PURE__ */ s.createElement("label", {
|
|
12577
12577
|
className: "sps-custom-control__label",
|
|
12578
12578
|
htmlFor: `sps-date-range-picker-${y}__range-${z}`
|
|
12579
|
-
}, X(
|
|
12579
|
+
}, X($)))))), /* @__PURE__ */ s.createElement(Ea, {
|
|
12580
12580
|
"data-testid": `${f}_calendar`,
|
|
12581
12581
|
selectedRange: Array.isArray(u) ? u : M,
|
|
12582
12582
|
onNewSelection: N,
|
|
@@ -12817,12 +12817,12 @@ const VD = {
|
|
|
12817
12817
|
loading: R,
|
|
12818
12818
|
filterByTextAndCaptionKey: H,
|
|
12819
12819
|
maxHeightOptionListPx: _,
|
|
12820
|
-
maxHeightOptionListRem:
|
|
12820
|
+
maxHeightOptionListRem: F,
|
|
12821
12821
|
"data-testid": N,
|
|
12822
12822
|
disableOptionsMemoization: B,
|
|
12823
12823
|
disableDefaultOptionsFiltering: Q,
|
|
12824
12824
|
...J
|
|
12825
|
-
} = e, G = u || p, { wrapperId: X, controlId: V } = vt(m, G),
|
|
12825
|
+
} = e, G = u || p, { wrapperId: X, controlId: V } = vt(m, G), $ = s.useRef(null), z = s.useRef(null), Y = s.useRef(null), { t: re } = s.useContext($e), [q, W] = ln({
|
|
12826
12826
|
isOpen: !1,
|
|
12827
12827
|
value: M,
|
|
12828
12828
|
text: "",
|
|
@@ -12882,10 +12882,10 @@ const VD = {
|
|
|
12882
12882
|
s.useEffect(() => (document.addEventListener("click", ne), document.addEventListener("DropdownOpened", Ve), () => {
|
|
12883
12883
|
document.removeEventListener("click", ne), document.removeEventListener("DropdownOpened", Ve);
|
|
12884
12884
|
}), []), s.useLayoutEffect(() => {
|
|
12885
|
-
if (r && Y.current &&
|
|
12886
|
-
|
|
12887
|
-
const Be = `${
|
|
12888
|
-
|
|
12885
|
+
if (r && Y.current && $.current) {
|
|
12886
|
+
$.current.style.width = "";
|
|
12887
|
+
const Be = `${$.current.getBoundingClientRect().width + 6}px`;
|
|
12888
|
+
$.current.style.width = Be, Y.current.style.width = Be, Y.current.style.maxWidth = Be;
|
|
12889
12889
|
}
|
|
12890
12890
|
}), lp(() => {
|
|
12891
12891
|
var ve;
|
|
@@ -12944,7 +12944,7 @@ const VD = {
|
|
|
12944
12944
|
className: "sps-icon sps-icon-chevron-down"
|
|
12945
12945
|
}))), /* @__PURE__ */ s.createElement(os, {
|
|
12946
12946
|
id: `${X}-options`,
|
|
12947
|
-
ref:
|
|
12947
|
+
ref: $,
|
|
12948
12948
|
attachTo: Y,
|
|
12949
12949
|
captionKey: a,
|
|
12950
12950
|
comparisonKey: l,
|
|
@@ -12968,7 +12968,7 @@ const VD = {
|
|
|
12968
12968
|
ignoreWidthStyles: r,
|
|
12969
12969
|
loading: R,
|
|
12970
12970
|
maxHeightPx: _,
|
|
12971
|
-
maxHeightRem:
|
|
12971
|
+
maxHeightRem: F,
|
|
12972
12972
|
disableOptionsMemoization: B,
|
|
12973
12973
|
disableDefaultOptionsFiltering: Q,
|
|
12974
12974
|
"data-testid": `${N}-option-list`
|
|
@@ -13647,13 +13647,13 @@ function Ru({
|
|
|
13647
13647
|
Array.isArray(p) ? p[1] : void 0
|
|
13648
13648
|
), [M, O] = s.useState(
|
|
13649
13649
|
x[0]
|
|
13650
|
-
), [R, H] = s.useState(L[0]), [_,
|
|
13650
|
+
), [R, H] = s.useState(L[0]), [_, F] = s.useState(
|
|
13651
13651
|
x[1]
|
|
13652
13652
|
), [N, B] = s.useState(L[1]), [Q, J] = s.useState(
|
|
13653
13653
|
x[2]
|
|
13654
13654
|
), [G, X] = s.useState(
|
|
13655
13655
|
L[2]
|
|
13656
|
-
), [V,
|
|
13656
|
+
), [V, $] = s.useState(null), { showPopup: z, doShowPopup: Y, doHidePopup: re } = is(T, b);
|
|
13657
13657
|
function q(ee) {
|
|
13658
13658
|
n && (n.setValue(ee), n.markAsDirty()), l && l(ee);
|
|
13659
13659
|
}
|
|
@@ -13675,7 +13675,7 @@ function Ru({
|
|
|
13675
13675
|
ye == null || ye.set(
|
|
13676
13676
|
"hour",
|
|
13677
13677
|
Q === "PM" ? 12 + pe : pe < 12 ? pe : 0
|
|
13678
|
-
), ye == null || ye.set("minute", Je), _e = [ye, null],
|
|
13678
|
+
), ye == null || ye.set("minute", Je), _e = [ye, null], $(null);
|
|
13679
13679
|
} else {
|
|
13680
13680
|
let pe = parseInt((N == null ? void 0 : N.split(":")[0]) || "0", 10);
|
|
13681
13681
|
pe === 12 && (pe = 0);
|
|
@@ -13683,7 +13683,7 @@ function Ru({
|
|
|
13683
13683
|
ye == null || ye.set(
|
|
13684
13684
|
"hour",
|
|
13685
13685
|
G === "PM" ? 12 + pe : pe
|
|
13686
|
-
), ye == null || ye.set("minute", Je), _e = [ge[0], ye], re(!0),
|
|
13686
|
+
), ye == null || ye.set("minute", Je), _e = [ge[0], ye], re(!0), $(null);
|
|
13687
13687
|
}
|
|
13688
13688
|
q(_e);
|
|
13689
13689
|
}
|
|
@@ -13703,7 +13703,7 @@ function Ru({
|
|
|
13703
13703
|
O(ee.target.value);
|
|
13704
13704
|
}
|
|
13705
13705
|
function ae(ee) {
|
|
13706
|
-
ne(ee.target.value) &&
|
|
13706
|
+
ne(ee.target.value) && F(ee.target.value);
|
|
13707
13707
|
}
|
|
13708
13708
|
function je() {
|
|
13709
13709
|
if (M === x[0] && _ === x[1] && Q === x[2])
|
|
@@ -13726,7 +13726,7 @@ function Ru({
|
|
|
13726
13726
|
}
|
|
13727
13727
|
}
|
|
13728
13728
|
function Ve() {
|
|
13729
|
-
ne(_) && (
|
|
13729
|
+
ne(_) && (F(we(_)), setTimeout(je, 0));
|
|
13730
13730
|
}
|
|
13731
13731
|
function st(ee) {
|
|
13732
13732
|
J(ee.target.value);
|
|
@@ -13770,7 +13770,7 @@ function Ru({
|
|
|
13770
13770
|
G !== L[2] && ve();
|
|
13771
13771
|
}, [G]);
|
|
13772
13772
|
function de() {
|
|
13773
|
-
q([null, null]),
|
|
13773
|
+
q([null, null]), $(null);
|
|
13774
13774
|
}
|
|
13775
13775
|
function Ce(ee) {
|
|
13776
13776
|
return function(ge) {
|
|
@@ -13789,10 +13789,10 @@ function Ru({
|
|
|
13789
13789
|
}
|
|
13790
13790
|
function xe(ee) {
|
|
13791
13791
|
if (!ee) {
|
|
13792
|
-
|
|
13792
|
+
$(null), q([null, null]);
|
|
13793
13793
|
return;
|
|
13794
13794
|
}
|
|
13795
|
-
|
|
13795
|
+
$(ee);
|
|
13796
13796
|
const ge = Z.createDateTimeRangeFromPreset(ee);
|
|
13797
13797
|
ee && W(ee) === "Before" ? !p || Array.isArray(p) && p[0] && p[1] ? q([null, null]) : Array.isArray(p) && p[0] ? q([null, Z.toMoment(Z.createFrom(p[0]))]) : Array.isArray(p) && p[1] && q([null, Z.toMoment(Z.createFrom(p[1]))]) : ee && W(ee) === "After" ? !p || Array.isArray(p) && p[0] && p[1] ? q([null, null]) : Array.isArray(p) && p[0] ? q([Z.toMoment(Z.createFrom(p[0])), null]) : Array.isArray(p) && p[1] && q([Z.toMoment(Z.createFrom(p[1])), null]) : JSON.stringify(p) !== JSON.stringify(ge) && q([ge[0], ge[1]]);
|
|
13798
13798
|
}
|
|
@@ -13814,7 +13814,7 @@ function Ru({
|
|
|
13814
13814
|
}
|
|
13815
13815
|
}
|
|
13816
13816
|
}, []), s.useEffect(() => {
|
|
13817
|
-
x[0] ? O(x[0]) : O(""), x[1] ?
|
|
13817
|
+
x[0] ? O(x[0]) : O(""), x[1] ? F(x[1]) : F("12:00"), x[2] ? J(x[2]) : J("AM"), L[0] ? H(L[0]) : H(""), L[1] ? B(L[1]) : B("12:00"), L[2] ? X(L[2]) : X("AM");
|
|
13818
13818
|
}, [
|
|
13819
13819
|
x[0],
|
|
13820
13820
|
x[1],
|
|
@@ -14239,7 +14239,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14239
14239
|
}, d);
|
|
14240
14240
|
}
|
|
14241
14241
|
var _ = {};
|
|
14242
|
-
function
|
|
14242
|
+
function F(i, d) {
|
|
14243
14243
|
r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (R(d), _[i] = !0);
|
|
14244
14244
|
}
|
|
14245
14245
|
r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
|
|
@@ -14284,7 +14284,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14284
14284
|
var v = this._calendar[i] || this._calendar.sameElse;
|
|
14285
14285
|
return N(v) ? v.call(d, g) : v;
|
|
14286
14286
|
}
|
|
14287
|
-
function
|
|
14287
|
+
function $(i, d, g) {
|
|
14288
14288
|
var v = "" + Math.abs(i), D = d - v.length, P = i >= 0;
|
|
14289
14289
|
return (P ? g ? "+" : "" : "-") + Math.pow(10, Math.max(0, D)).toString().substr(1) + v;
|
|
14290
14290
|
}
|
|
@@ -14294,7 +14294,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14294
14294
|
typeof v == "string" && (D = function() {
|
|
14295
14295
|
return this[v]();
|
|
14296
14296
|
}), i && (q[i] = D), d && (q[d[0]] = function() {
|
|
14297
|
-
return
|
|
14297
|
+
return $(D.apply(this, arguments), d[1], d[2]);
|
|
14298
14298
|
}), g && (q[g] = function() {
|
|
14299
14299
|
return this.localeData().ordinal(
|
|
14300
14300
|
D.apply(this, arguments),
|
|
@@ -14598,7 +14598,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14598
14598
|
}
|
|
14599
14599
|
W("Y", 0, 0, function() {
|
|
14600
14600
|
var i = this.year();
|
|
14601
|
-
return i <= 9999 ?
|
|
14601
|
+
return i <= 9999 ? $(i, 4) : "+" + i;
|
|
14602
14602
|
}), W(0, ["YY", 2], 0, function() {
|
|
14603
14603
|
return this.year() % 100;
|
|
14604
14604
|
}), W(0, ["YYYY", 4], 0, "year"), W(0, ["YYYYY", 5], 0, "year"), W(0, ["YYYYYY", 6, !0], 0, "year"), de("year", "y"), ee("year", 1), le("Y", Ss), le("YY", ue, dt), le("YYYY", _r, Mr), le("YYYYY", gs, be), le("YYYYYY", gs, be), Re(["YYYYY", "YYYYYY"], ot), Re("YYYY", function(i, d) {
|
|
@@ -14804,13 +14804,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14804
14804
|
return this.hours() || 24;
|
|
14805
14805
|
}
|
|
14806
14806
|
W("H", ["HH", 2], 0, "hour"), W("h", ["hh", 2], 0, Ma), W("k", ["kk", 2], 0, Xf), W("hmm", 0, 0, function() {
|
|
14807
|
-
return "" + Ma.apply(this) +
|
|
14807
|
+
return "" + Ma.apply(this) + $(this.minutes(), 2);
|
|
14808
14808
|
}), W("hmmss", 0, 0, function() {
|
|
14809
|
-
return "" + Ma.apply(this) +
|
|
14809
|
+
return "" + Ma.apply(this) + $(this.minutes(), 2) + $(this.seconds(), 2);
|
|
14810
14810
|
}), W("Hmm", 0, 0, function() {
|
|
14811
|
-
return "" + this.hours() +
|
|
14811
|
+
return "" + this.hours() + $(this.minutes(), 2);
|
|
14812
14812
|
}), W("Hmmss", 0, 0, function() {
|
|
14813
|
-
return "" + this.hours() +
|
|
14813
|
+
return "" + this.hours() + $(this.minutes(), 2) + $(this.seconds(), 2);
|
|
14814
14814
|
});
|
|
14815
14815
|
function fl(i, d) {
|
|
14816
14816
|
W(i, 0, 0, function() {
|
|
@@ -14910,7 +14910,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
14910
14910
|
if (d !== null) {
|
|
14911
14911
|
var g, v = gl;
|
|
14912
14912
|
if (d.abbr = i, He[i] != null)
|
|
14913
|
-
|
|
14913
|
+
F(
|
|
14914
14914
|
"defineLocaleOverride",
|
|
14915
14915
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
14916
14916
|
), v = He[i]._config;
|
|
@@ -15287,7 +15287,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
15287
15287
|
function wl(i, d) {
|
|
15288
15288
|
W(i, 0, 0, function() {
|
|
15289
15289
|
var g = this.utcOffset(), v = "+";
|
|
15290
|
-
return g < 0 && (g = -g, v = "-"), v +
|
|
15290
|
+
return g < 0 && (g = -g, v = "-"), v + $(~~(g / 60), 2) + d + $(~~g % 60, 2);
|
|
15291
15291
|
});
|
|
15292
15292
|
}
|
|
15293
15293
|
wl("Z", ":"), wl("ZZ", ""), le("Z", bs), le("ZZ", bs), Re(["Z", "ZZ"], function(i, d, g) {
|
|
@@ -15408,7 +15408,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
|
|
|
15408
15408
|
function Nl(i, d) {
|
|
15409
15409
|
return function(g, v) {
|
|
15410
15410
|
var D, P;
|
|
15411
|
-
return v !== null && !isNaN(+v) && (
|
|
15411
|
+
return v !== null && !isNaN(+v) && (F(
|
|
15412
15412
|
d,
|
|
15413
15413
|
"moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
15414
15414
|
), P = g, g = v, v = P), D = Mt(g, v), xl(this, D, i), this;
|
|
@@ -17186,8 +17186,8 @@ function Pt({
|
|
|
17186
17186
|
if (((V = k.current) == null ? void 0 : V.textContent) === "")
|
|
17187
17187
|
return console.warn("SpsTooltip is empty; aborting show"), !1;
|
|
17188
17188
|
x();
|
|
17189
|
-
for (const
|
|
17190
|
-
|
|
17189
|
+
for (const $ of _n.values())
|
|
17190
|
+
$();
|
|
17191
17191
|
return C(!0), !0;
|
|
17192
17192
|
}, []), O = s.useCallback((X) => {
|
|
17193
17193
|
X && X.stopPropagation(), C((V) => V ? (L(), !1) : M());
|
|
@@ -17197,13 +17197,13 @@ function Pt({
|
|
|
17197
17197
|
x(), w.current.hideTimer = window.setTimeout(L, a);
|
|
17198
17198
|
}, []), _ = s.useCallback((X) => {
|
|
17199
17199
|
var W, ie, se, ce, ne, we;
|
|
17200
|
-
const [V,
|
|
17201
|
-
if (["top", "bottom"].includes(V) &&
|
|
17200
|
+
const [V, $] = X.split(" "), z = (W = I == null ? void 0 : I.current) == null ? void 0 : W.getBoundingClientRect(), Y = b.current ? parseInt(((ie = getComputedStyle(b.current)) == null ? void 0 : ie.width) || "0", 10) : 0, re = Y * Math.sqrt(2), q = (re - Y) / 2;
|
|
17201
|
+
if (["top", "bottom"].includes(V) && $ !== "middle") {
|
|
17202
17202
|
if (!(z != null && z.width) || z.width > 50)
|
|
17203
17203
|
return 0;
|
|
17204
17204
|
const Ne = b.current ? parseInt(((se = getComputedStyle(b.current)) == null ? void 0 : se.left) || "0", 10) : 0, ae = b.current ? parseInt(((ce = getComputedStyle(b.current)) == null ? void 0 : ce.right) || "0", 10) : 0, Ve = (Ne < ae ? Ne : ae) - q + re / 2;
|
|
17205
17205
|
return z.width / 2 - Ve;
|
|
17206
|
-
} else if (["left", "right"].includes(V) &&
|
|
17206
|
+
} else if (["left", "right"].includes(V) && $ !== "middle") {
|
|
17207
17207
|
if ((z == null ? void 0 : z.height) && z.height > 50)
|
|
17208
17208
|
return 0;
|
|
17209
17209
|
const Ne = b.current ? parseInt(((ne = getComputedStyle(b.current)) == null ? void 0 : ne.top) || "0", 10) : 0, ae = b.current ? parseInt(((we = getComputedStyle(b.current)) == null ? void 0 : we.bottom) || "0", 10) : 0, Ve = (Ne < ae ? Ne : ae) - q + re / 2;
|
|
@@ -17251,7 +17251,7 @@ function Pt({
|
|
|
17251
17251
|
},
|
|
17252
17252
|
[]
|
|
17253
17253
|
);
|
|
17254
|
-
const
|
|
17254
|
+
const F = as("sps-tooltip-portal"), N = s.useContext(Bt), [[B, Q], J] = s.useState([{}, !1]);
|
|
17255
17255
|
s.useEffect(() => {
|
|
17256
17256
|
J(T ? hr(k, I, u, {
|
|
17257
17257
|
altPosition: m,
|
|
@@ -17282,7 +17282,7 @@ function Pt({
|
|
|
17282
17282
|
T && "sps-tooltip--shown",
|
|
17283
17283
|
t
|
|
17284
17284
|
);
|
|
17285
|
-
return
|
|
17285
|
+
return F(
|
|
17286
17286
|
/* @__PURE__ */ s.createElement("div", {
|
|
17287
17287
|
role: "tooltip",
|
|
17288
17288
|
className: G,
|
|
@@ -19473,18 +19473,18 @@ function Hu({
|
|
|
19473
19473
|
function _(re) {
|
|
19474
19474
|
re.preventDefault(), R(), L(go(x));
|
|
19475
19475
|
}
|
|
19476
|
-
function
|
|
19476
|
+
function F() {
|
|
19477
19477
|
return r && (r instanceof ar && r.isVisibilyInvalid() || !(r instanceof ar) && !r.isValid()) ? [I, b] : r && r instanceof ar && r.hasPreventativeErrors() ? [M, O] : o ? [C, k] : a ? [x, L] : [De.HIDDEN, () => {
|
|
19478
19478
|
}];
|
|
19479
19479
|
}
|
|
19480
19480
|
function N() {
|
|
19481
19481
|
R();
|
|
19482
|
-
const [re, q] =
|
|
19482
|
+
const [re, q] = F();
|
|
19483
19483
|
q(go(re));
|
|
19484
19484
|
}
|
|
19485
19485
|
function B() {
|
|
19486
19486
|
R();
|
|
19487
|
-
const [, re] =
|
|
19487
|
+
const [, re] = F();
|
|
19488
19488
|
re(De.VISIBLE);
|
|
19489
19489
|
}
|
|
19490
19490
|
function Q(re) {
|
|
@@ -19513,7 +19513,7 @@ function Hu({
|
|
|
19513
19513
|
}
|
|
19514
19514
|
return null;
|
|
19515
19515
|
}
|
|
19516
|
-
function
|
|
19516
|
+
function $() {
|
|
19517
19517
|
if (G) {
|
|
19518
19518
|
for (const re of yn)
|
|
19519
19519
|
if (G.hasPreventativeError(re))
|
|
@@ -19588,7 +19588,7 @@ function Hu({
|
|
|
19588
19588
|
showOn: ht.MANUAL,
|
|
19589
19589
|
isShown: M,
|
|
19590
19590
|
altPosition: Ee.LEFT_MIDDLE
|
|
19591
|
-
}, Nt(p) ||
|
|
19591
|
+
}, Nt(p) || $()), /* @__PURE__ */ s.createElement(Pt, {
|
|
19592
19592
|
kind: Ht.DEFAULT,
|
|
19593
19593
|
for: y,
|
|
19594
19594
|
position: Ee.TOP_LEFT,
|
|
@@ -20172,8 +20172,8 @@ const NN = ({
|
|
|
20172
20172
|
if (R && (R.style.overflow = O ? "hidden" : "", R.style.textOverflow = O ? "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) {
|
|
20173
20173
|
const H = f.querySelectorAll("thead > tr > th");
|
|
20174
20174
|
for (let _ = 0; _ < H.length; _ += 1) {
|
|
20175
|
-
const
|
|
20176
|
-
H[_].style.cursor = "default", H[_] !== e.current && N && (H[_].classList.add("sps-table__header--resizeable"), N.style.display = "block"), (
|
|
20175
|
+
const F = H[_].querySelector(".sps-table__header-cell-body"), N = H[_].querySelector(".sps-table__column-resizer");
|
|
20176
|
+
H[_].style.cursor = "default", H[_] !== e.current && N && (H[_].classList.add("sps-table__header--resizeable"), N.style.display = "block"), (F == null ? void 0 : F.textContent) && !F.title && (F.title = F.textContent);
|
|
20177
20177
|
}
|
|
20178
20178
|
}
|
|
20179
20179
|
}
|
|
@@ -22427,7 +22427,7 @@ function Xu(e) {
|
|
|
22427
22427
|
function _(V) {
|
|
22428
22428
|
l && l(V);
|
|
22429
22429
|
}
|
|
22430
|
-
function
|
|
22430
|
+
function F() {
|
|
22431
22431
|
o && o(!(n != null && n.isOpen));
|
|
22432
22432
|
}
|
|
22433
22433
|
function N(V) {
|
|
@@ -22484,7 +22484,7 @@ function Xu(e) {
|
|
|
22484
22484
|
className: "sps-list-toolbar__advanced-search-toggle-button-wrapper"
|
|
22485
22485
|
}, /* @__PURE__ */ s.createElement(Ye, {
|
|
22486
22486
|
kind: qe.LINK,
|
|
22487
|
-
onClick:
|
|
22487
|
+
onClick: F
|
|
22488
22488
|
}, I("design-system:listToolbar.advancedSearchToggle"))), (n.enteredFields || 0) > 0 && /* @__PURE__ */ s.createElement(Wt, {
|
|
22489
22489
|
"data-testid": `${C}__entered_fields`,
|
|
22490
22490
|
kind: ur.INFO
|
|
@@ -24342,7 +24342,7 @@ function rm({
|
|
|
24342
24342
|
"data-testid": H,
|
|
24343
24343
|
..._
|
|
24344
24344
|
}) {
|
|
24345
|
-
const
|
|
24345
|
+
const F = I != null ? I : [], N = u || p, { wrapperId: B, controlId: Q } = vt(f, N), [J, G] = ln({
|
|
24346
24346
|
keyDown: null,
|
|
24347
24347
|
opensUpward: !1,
|
|
24348
24348
|
searchText: "",
|
|
@@ -24352,7 +24352,7 @@ function rm({
|
|
|
24352
24352
|
s.useEffect(() => {
|
|
24353
24353
|
S && S(J.searchText);
|
|
24354
24354
|
}, [J.searchText]);
|
|
24355
|
-
const X = s.useRef(null), V = s.useRef(null),
|
|
24355
|
+
const X = s.useRef(null), V = s.useRef(null), $ = s.useRef(null), z = s.useRef(null), Y = s.useRef(null);
|
|
24356
24356
|
function re() {
|
|
24357
24357
|
r && G({
|
|
24358
24358
|
searchText: ""
|
|
@@ -24369,7 +24369,7 @@ function rm({
|
|
|
24369
24369
|
function ce() {
|
|
24370
24370
|
setTimeout(() => {
|
|
24371
24371
|
var de;
|
|
24372
|
-
(de =
|
|
24372
|
+
(de = $.current) == null || de.focus();
|
|
24373
24373
|
}, 0);
|
|
24374
24374
|
}
|
|
24375
24375
|
function ne(de) {
|
|
@@ -24384,10 +24384,10 @@ function rm({
|
|
|
24384
24384
|
);
|
|
24385
24385
|
}
|
|
24386
24386
|
function Ne(de) {
|
|
24387
|
-
|
|
24387
|
+
F.indexOf(de) === -1 && we([...F, de]), ce();
|
|
24388
24388
|
}
|
|
24389
24389
|
function ae(de) {
|
|
24390
|
-
const Ce =
|
|
24390
|
+
const Ce = F.filter((xe, St) => St !== de);
|
|
24391
24391
|
we(Ce);
|
|
24392
24392
|
}
|
|
24393
24393
|
function je(de) {
|
|
@@ -24396,10 +24396,10 @@ function rm({
|
|
|
24396
24396
|
function Ve(de) {
|
|
24397
24397
|
var Ce;
|
|
24398
24398
|
if (!o) {
|
|
24399
|
-
const xe = !m && !de.target.selectionStart &&
|
|
24399
|
+
const xe = !m && !de.target.selectionStart && F && F.length;
|
|
24400
24400
|
switch (de.key) {
|
|
24401
24401
|
case "Backspace":
|
|
24402
|
-
if (J.activeTagIndex ===
|
|
24402
|
+
if (J.activeTagIndex === F.length - 1) {
|
|
24403
24403
|
ae(J.activeTagIndex), ce();
|
|
24404
24404
|
return;
|
|
24405
24405
|
}
|
|
@@ -24408,7 +24408,7 @@ function rm({
|
|
|
24408
24408
|
return;
|
|
24409
24409
|
}
|
|
24410
24410
|
if (xe) {
|
|
24411
|
-
we(
|
|
24411
|
+
we(F.slice(0, F.length - 1));
|
|
24412
24412
|
return;
|
|
24413
24413
|
}
|
|
24414
24414
|
break;
|
|
@@ -24427,14 +24427,14 @@ function rm({
|
|
|
24427
24427
|
case "Left":
|
|
24428
24428
|
case "ArrowLeft":
|
|
24429
24429
|
if (xe) {
|
|
24430
|
-
J.activeTagIndex === null ? (G({ activeTagIndex:
|
|
24430
|
+
J.activeTagIndex === null ? (G({ activeTagIndex: F.length - 1 }), ie(), ne(F.length - 1)) : J.activeTagIndex > 0 && (G({ activeTagIndex: J.activeTagIndex - 1 }), ie(), ne(J.activeTagIndex - 1));
|
|
24431
24431
|
return;
|
|
24432
24432
|
}
|
|
24433
24433
|
break;
|
|
24434
24434
|
case "Right":
|
|
24435
24435
|
case "ArrowRight":
|
|
24436
24436
|
if (J.activeTagIndex !== null) {
|
|
24437
|
-
J.activeTagIndex ===
|
|
24437
|
+
J.activeTagIndex === F.length - 1 ? (G({ activeTagIndex: null }), W(), (Ce = $.current) == null || Ce.focus()) : (G({ activeTagIndex: J.activeTagIndex + 1 }), ne(J.activeTagIndex + 1));
|
|
24438
24438
|
return;
|
|
24439
24439
|
}
|
|
24440
24440
|
break;
|
|
@@ -24467,14 +24467,14 @@ function rm({
|
|
|
24467
24467
|
J.opensUpward && "sps-multi-select--opens-upward",
|
|
24468
24468
|
o && "sps-form-control--disabled",
|
|
24469
24469
|
n
|
|
24470
|
-
), ze = new Array(
|
|
24470
|
+
), ze = new Array(F.length).fill(0).map((de, Ce) => `${B}_tag-${Ce}`);
|
|
24471
24471
|
return /* @__PURE__ */ s.createElement(ct, {
|
|
24472
24472
|
id: B,
|
|
24473
24473
|
className: Be,
|
|
24474
24474
|
formControl: p,
|
|
24475
24475
|
formMeta: u,
|
|
24476
24476
|
ref: X,
|
|
24477
|
-
inputRef:
|
|
24477
|
+
inputRef: $,
|
|
24478
24478
|
focusInputOnClick: !0,
|
|
24479
24479
|
onKeyDown: Ve,
|
|
24480
24480
|
role: "listbox",
|
|
@@ -24487,14 +24487,14 @@ function rm({
|
|
|
24487
24487
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
24488
24488
|
className: K(
|
|
24489
24489
|
"sps-form-control",
|
|
24490
|
-
|
|
24490
|
+
F && !o && "sps-form-control--clearable"
|
|
24491
24491
|
)
|
|
24492
24492
|
}, L && /* @__PURE__ */ s.createElement("i", {
|
|
24493
24493
|
className: K("sps-text-input__icon", "sps-icon", `sps-icon-${L}`)
|
|
24494
24494
|
}), /* @__PURE__ */ s.createElement("div", {
|
|
24495
24495
|
className: "sps-multi-select__tags-and-input",
|
|
24496
24496
|
ref: Y
|
|
24497
|
-
}, m ? null :
|
|
24497
|
+
}, m ? null : F.map((de, Ce) => /* @__PURE__ */ s.createElement(fa, {
|
|
24498
24498
|
id: ze[Ce],
|
|
24499
24499
|
role: "option",
|
|
24500
24500
|
disabled: o,
|
|
@@ -24503,11 +24503,11 @@ function rm({
|
|
|
24503
24503
|
onRemove: () => ae(Ce)
|
|
24504
24504
|
}, C ? de[C] : de)), /* @__PURE__ */ s.createElement("input", {
|
|
24505
24505
|
type: "text",
|
|
24506
|
-
ref:
|
|
24506
|
+
ref: $,
|
|
24507
24507
|
"data-testid": `${H}__option-list-input`,
|
|
24508
24508
|
value: J.searchText,
|
|
24509
24509
|
className: "sps-text-input__input",
|
|
24510
|
-
placeholder:
|
|
24510
|
+
placeholder: F.length === 0 ? w : void 0,
|
|
24511
24511
|
id: Q,
|
|
24512
24512
|
onClick: se,
|
|
24513
24513
|
onChange: je,
|
|
@@ -24518,7 +24518,7 @@ function rm({
|
|
|
24518
24518
|
"aria-multiselectable": "true",
|
|
24519
24519
|
"aria-owns": ze.join(" "),
|
|
24520
24520
|
..._
|
|
24521
|
-
})),
|
|
24521
|
+
})), F.length !== 0 && !o ? /* @__PURE__ */ s.createElement("i", {
|
|
24522
24522
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
24523
24523
|
onClick: (de) => gt(de)
|
|
24524
24524
|
}) : null)), /* @__PURE__ */ s.createElement(os, {
|
|
@@ -24527,7 +24527,7 @@ function rm({
|
|
|
24527
24527
|
"data-testid": `${H}__option-list`,
|
|
24528
24528
|
attachTo: V,
|
|
24529
24529
|
captionKey: t,
|
|
24530
|
-
disabledOptions: l ?
|
|
24530
|
+
disabledOptions: l ? F : null,
|
|
24531
24531
|
isOpen: q,
|
|
24532
24532
|
comparisonKey: c,
|
|
24533
24533
|
keepOpen: !0,
|
|
@@ -25177,8 +25177,8 @@ function sm(e) {
|
|
|
25177
25177
|
return c !== void 0 ? Math.ceil(c / O) : NaN;
|
|
25178
25178
|
}
|
|
25179
25179
|
function C(O = y.page, R = y.pageSize) {
|
|
25180
|
-
const H = T(R), _ = O === H && c !== void 0 && c % R || R,
|
|
25181
|
-
return H === 0 ? [0, 0] : [N + 1, N +
|
|
25180
|
+
const H = T(R), _ = O === H && c !== void 0 && c % R || R, F = h || (H === 0 ? 0 : _), N = (O - 1) * R;
|
|
25181
|
+
return H === 0 ? [0, 0] : [N + 1, N + F];
|
|
25182
25182
|
}
|
|
25183
25183
|
function k(O) {
|
|
25184
25184
|
const R = {
|
|
@@ -28175,11 +28175,11 @@ function mm({
|
|
|
28175
28175
|
altPosition: t,
|
|
28176
28176
|
...L
|
|
28177
28177
|
}
|
|
28178
|
-
) : [{}, !1], O = r.position || Ee.BOTTOM_RIGHT, R = r.kind || Ht.DEFAULT, H = e.filter((
|
|
28178
|
+
) : [{}, !1], O = r.position || Ee.BOTTOM_RIGHT, R = r.kind || Ht.DEFAULT, H = e.filter(($) => $.unread).length, _ = e.filter(($) => $.status === Os.IN_PROGRESS).length, F = e.some(($) => $.status === Os.COMPLETED || $.status === Os.ERRORED), N = s.useRef(o);
|
|
28179
28179
|
N.current = o;
|
|
28180
28180
|
const B = s.useRef(null), Q = () => {
|
|
28181
28181
|
S && !y ? (w(!0), a && a()) : y && (w(!1), o && o()), B.current && (B.current.scrollTop = 0);
|
|
28182
|
-
}, J = (
|
|
28182
|
+
}, J = ($) => $.status === Os.IN_PROGRESS ? jl[$.status] : `sps-icon sps-icon-${jl[$.status]}`;
|
|
28183
28183
|
s.useEffect(() => {
|
|
28184
28184
|
y && !S && (w(!1), N.current && N.current());
|
|
28185
28185
|
}, [y, S]);
|
|
@@ -28189,11 +28189,11 @@ function mm({
|
|
|
28189
28189
|
G.current = void 0, C(!1);
|
|
28190
28190
|
}, Yl)) : (G.current && (window.clearTimeout(G.current), G.current = void 0), C(!1));
|
|
28191
28191
|
}, [H]), s.useEffect(() => {
|
|
28192
|
-
const
|
|
28192
|
+
const $ = () => {
|
|
28193
28193
|
w((z) => (z && N.current && N.current(), !1));
|
|
28194
28194
|
};
|
|
28195
|
-
return document.addEventListener("click",
|
|
28196
|
-
document.removeEventListener("click",
|
|
28195
|
+
return document.addEventListener("click", $), () => {
|
|
28196
|
+
document.removeEventListener("click", $);
|
|
28197
28197
|
};
|
|
28198
28198
|
}, []), s.useEffect(
|
|
28199
28199
|
() => () => {
|
|
@@ -28208,8 +28208,8 @@ function mm({
|
|
|
28208
28208
|
!S && "sps-task-queue--no-tasks",
|
|
28209
28209
|
c
|
|
28210
28210
|
);
|
|
28211
|
-
function V(
|
|
28212
|
-
return (
|
|
28211
|
+
function V($) {
|
|
28212
|
+
return ($.actions || []).map((z) => {
|
|
28213
28213
|
if (s.isValidElement(z)) {
|
|
28214
28214
|
if (z.type !== Ye || z.props.kind !== qe.ICON)
|
|
28215
28215
|
throw new Error("Task queue task action must be a config object or an SpsButton of kind ICON");
|
|
@@ -28223,7 +28223,7 @@ function mm({
|
|
|
28223
28223
|
title: z.label,
|
|
28224
28224
|
disabled: z.disabled,
|
|
28225
28225
|
onClick: () => {
|
|
28226
|
-
z.onClick && z.onClick(
|
|
28226
|
+
z.onClick && z.onClick($);
|
|
28227
28227
|
}
|
|
28228
28228
|
}, z.caption, z.icon && /* @__PURE__ */ s.createElement("i", {
|
|
28229
28229
|
className: `sps-icon sps-icon-${z.icon}`,
|
|
@@ -28233,8 +28233,8 @@ function mm({
|
|
|
28233
28233
|
}
|
|
28234
28234
|
return /* @__PURE__ */ s.createElement("div", {
|
|
28235
28235
|
className: X,
|
|
28236
|
-
onClick: (
|
|
28237
|
-
|
|
28236
|
+
onClick: ($) => {
|
|
28237
|
+
$.nativeEvent.stopImmediatePropagation();
|
|
28238
28238
|
},
|
|
28239
28239
|
"data-testid": p,
|
|
28240
28240
|
...f
|
|
@@ -28270,24 +28270,24 @@ function mm({
|
|
|
28270
28270
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
28271
28271
|
ref: B,
|
|
28272
28272
|
className: "sps-task-queue__task-list-tasks"
|
|
28273
|
-
}, e.map((
|
|
28273
|
+
}, e.map(($, z) => /* @__PURE__ */ s.createElement("div", {
|
|
28274
28274
|
key: z,
|
|
28275
28275
|
className: K(
|
|
28276
28276
|
"sps-task-queue__task",
|
|
28277
|
-
|
|
28277
|
+
$.unread && "sps-task-queue__task--unread"
|
|
28278
28278
|
)
|
|
28279
28279
|
}, /* @__PURE__ */ s.createElement("i", {
|
|
28280
|
-
className: J(
|
|
28280
|
+
className: J($)
|
|
28281
28281
|
}), /* @__PURE__ */ s.createElement("div", {
|
|
28282
28282
|
className: "sps-task-queue__task-description"
|
|
28283
28283
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
28284
28284
|
className: "sps-task-queue__task-heading"
|
|
28285
|
-
},
|
|
28285
|
+
}, $.heading), $.subheading && /* @__PURE__ */ s.createElement("div", {
|
|
28286
28286
|
className: "sps-task-queue__task-subheading",
|
|
28287
|
-
title:
|
|
28288
|
-
},
|
|
28287
|
+
title: $.subheading
|
|
28288
|
+
}, $.subheading)), $.actions && !!$.actions.length && /* @__PURE__ */ s.createElement("div", {
|
|
28289
28289
|
className: "sps-task-queue__task-actions"
|
|
28290
|
-
}, V(
|
|
28290
|
+
}, V($))))), F && l && /* @__PURE__ */ s.createElement("div", {
|
|
28291
28291
|
className: "sps-task-queue__footer"
|
|
28292
28292
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
28293
28293
|
className: "sps-button sps-button--link"
|
|
@@ -29614,7 +29614,7 @@ Object.assign(Cm, {
|
|
|
29614
29614
|
displayName: "SpsFilterPanel"
|
|
29615
29615
|
});
|
|
29616
29616
|
const Bx = {
|
|
29617
|
-
title: "string",
|
|
29617
|
+
title: "string | ReactNode",
|
|
29618
29618
|
expanded: "boolean",
|
|
29619
29619
|
heightPx: "number",
|
|
29620
29620
|
heightRem: "number",
|
|
@@ -29648,7 +29648,7 @@ function Dm({
|
|
|
29648
29648
|
...p
|
|
29649
29649
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
29650
29650
|
className: "sps-filter-panel__section__title-wrapper"
|
|
29651
|
-
}, /* @__PURE__ */ s.createElement(y, null), /* @__PURE__ */ s.createElement("p", null, n)), f && /* @__PURE__ */ s.createElement("div", {
|
|
29651
|
+
}, /* @__PURE__ */ s.createElement(y, null), n && (typeof n == "string" ? /* @__PURE__ */ s.createElement("p", null, n) : n)), f && /* @__PURE__ */ s.createElement("div", {
|
|
29652
29652
|
className: "sps-filter-panel__section__content-wrapper",
|
|
29653
29653
|
style: S
|
|
29654
29654
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
@@ -30038,6 +30038,98 @@ const Fx = {
|
|
|
30038
30038
|
);
|
|
30039
30039
|
}
|
|
30040
30040
|
`
|
|
30041
|
+
},
|
|
30042
|
+
customSectionTitle: {
|
|
30043
|
+
description: () => /* @__PURE__ */ s.createElement("p", null, "Using components in the section title"),
|
|
30044
|
+
react: E`
|
|
30045
|
+
import {
|
|
30046
|
+
useSpsForm,
|
|
30047
|
+
SpsForm,
|
|
30048
|
+
SpsFilterPanel,
|
|
30049
|
+
SpsFilterPanelCap,
|
|
30050
|
+
SpsFilterPanelSection,
|
|
30051
|
+
SpsCheckbox
|
|
30052
|
+
} from "@spscommerce/ds-react";
|
|
30053
|
+
import { Tag } from "@sps-woodland/tag";
|
|
30054
|
+
|
|
30055
|
+
function Component() {
|
|
30056
|
+
const initialValues = {
|
|
30057
|
+
users: [
|
|
30058
|
+
{ name: "Adam Jones", permissions: "Full", selected: true },
|
|
30059
|
+
{ name: "Amy Smith", permissions: "Full", selected: true },
|
|
30060
|
+
{ name: "Ashton James", permissions: "View", selected: true },
|
|
30061
|
+
{ name: "Betty Wu", permissions: "Full", selected: false },
|
|
30062
|
+
{ name: "Saraswathi Karapala", permissions: "None", selected: true },
|
|
30063
|
+
{ name: "Suzanne Tecca", permissions: "None", selected: false }
|
|
30064
|
+
],
|
|
30065
|
+
filterBoxValue: ""
|
|
30066
|
+
};
|
|
30067
|
+
|
|
30068
|
+
const { formValue, formMeta, updateForm } = useSpsForm(initialValues);
|
|
30069
|
+
|
|
30070
|
+
const handleClear = () => {
|
|
30071
|
+
updateForm(initialValues);
|
|
30072
|
+
formMeta.markAsPristine();
|
|
30073
|
+
};
|
|
30074
|
+
|
|
30075
|
+
const [expanded, setExpanded] = React.useState(true);
|
|
30076
|
+
|
|
30077
|
+
const onExpand = () => {
|
|
30078
|
+
setExpanded(true);
|
|
30079
|
+
};
|
|
30080
|
+
|
|
30081
|
+
const onCollapse = () => {
|
|
30082
|
+
setExpanded(false);
|
|
30083
|
+
};
|
|
30084
|
+
|
|
30085
|
+
const getSelectedUsers = () => formValue.users
|
|
30086
|
+
.filter((user) => user.selected);
|
|
30087
|
+
|
|
30088
|
+
return (
|
|
30089
|
+
<div className="sfg-row">
|
|
30090
|
+
<div className="sfg-col-6">
|
|
30091
|
+
<SpsForm formMeta={formMeta}>
|
|
30092
|
+
<SpsFilterPanel>
|
|
30093
|
+
<SpsFilterPanelCap onClear={handleClear} />
|
|
30094
|
+
<SpsFilterPanelFilterBox
|
|
30095
|
+
value={formValue.filterBoxValue}
|
|
30096
|
+
formMeta={formMeta.fields.filterBoxValue}
|
|
30097
|
+
/>
|
|
30098
|
+
<SpsFilterPanelSection expanded={expanded}
|
|
30099
|
+
onExpand={onExpand}
|
|
30100
|
+
onCollapse={onCollapse}
|
|
30101
|
+
title={(
|
|
30102
|
+
<div className="flex-fill d-flex justify-content-between align-items-center">
|
|
30103
|
+
<div>
|
|
30104
|
+
<span>Users</span>
|
|
30105
|
+
<Tag className="ml-1" kind="key">{getSelectedUsers().length}</Tag>
|
|
30106
|
+
</div>
|
|
30107
|
+
<Tag className="pr-0">Default Access</Tag>
|
|
30108
|
+
</div>
|
|
30109
|
+
)}>
|
|
30110
|
+
{initialValues.users
|
|
30111
|
+
.filter((user) =>
|
|
30112
|
+
user.name.toLowerCase()
|
|
30113
|
+
.includes(formValue.filterBoxValue.toLowerCase()))
|
|
30114
|
+
.map((user, index) => (
|
|
30115
|
+
<div className="flex-fill d-flex justify-content-between align-items-center">
|
|
30116
|
+
<SpsCheckbox
|
|
30117
|
+
key={index}
|
|
30118
|
+
label={user.name}
|
|
30119
|
+
checked={formValue.users[index].selected}
|
|
30120
|
+
formMeta={formMeta.fields.users.fields[index].fields.selected} />
|
|
30121
|
+
<Tag kind="key">{user.permissions}</Tag>
|
|
30122
|
+
</div>
|
|
30123
|
+
))
|
|
30124
|
+
}
|
|
30125
|
+
</SpsFilterPanelSection>
|
|
30126
|
+
</SpsFilterPanel>
|
|
30127
|
+
</SpsForm>
|
|
30128
|
+
</div>
|
|
30129
|
+
</div>
|
|
30130
|
+
);
|
|
30131
|
+
}
|
|
30132
|
+
`
|
|
30041
30133
|
}
|
|
30042
30134
|
}
|
|
30043
30135
|
}
|
|
@@ -30293,7 +30385,7 @@ function Im({
|
|
|
30293
30385
|
);
|
|
30294
30386
|
}
|
|
30295
30387
|
function O(G) {
|
|
30296
|
-
const X = (u || []).filter((V,
|
|
30388
|
+
const X = (u || []).filter((V, $) => $ !== G);
|
|
30297
30389
|
M(X);
|
|
30298
30390
|
}
|
|
30299
30391
|
function R(G) {
|
|
@@ -30317,16 +30409,16 @@ function Im({
|
|
|
30317
30409
|
fd
|
|
30318
30410
|
]
|
|
30319
30411
|
);
|
|
30320
|
-
function
|
|
30412
|
+
function F(G) {
|
|
30321
30413
|
_(G);
|
|
30322
30414
|
}
|
|
30323
30415
|
function N(G) {
|
|
30324
30416
|
var X;
|
|
30325
30417
|
if (!t) {
|
|
30326
|
-
const V = !G.target.selectionStart && u && u.length,
|
|
30418
|
+
const V = !G.target.selectionStart && u && u.length, $ = u ? u.length : 0;
|
|
30327
30419
|
switch (G.key) {
|
|
30328
30420
|
case "Backspace":
|
|
30329
|
-
if (C.activeTagIndex ===
|
|
30421
|
+
if (C.activeTagIndex === $ - 1) {
|
|
30330
30422
|
O(C.activeTagIndex), L();
|
|
30331
30423
|
return;
|
|
30332
30424
|
}
|
|
@@ -30335,7 +30427,7 @@ function Im({
|
|
|
30335
30427
|
return;
|
|
30336
30428
|
}
|
|
30337
30429
|
if (V) {
|
|
30338
|
-
M(u.slice(0,
|
|
30430
|
+
M(u.slice(0, $ - 1)), L();
|
|
30339
30431
|
return;
|
|
30340
30432
|
}
|
|
30341
30433
|
break;
|
|
@@ -30355,14 +30447,14 @@ function Im({
|
|
|
30355
30447
|
case "Left":
|
|
30356
30448
|
case "ArrowLeft":
|
|
30357
30449
|
if (V) {
|
|
30358
|
-
C.activeTagIndex === null ? (k({ activeTagIndex:
|
|
30450
|
+
C.activeTagIndex === null ? (k({ activeTagIndex: $ - 1 }), H($ - 1)) : C.activeTagIndex > 0 && (k({ activeTagIndex: C.activeTagIndex - 1 }), H(C.activeTagIndex - 1));
|
|
30359
30451
|
return;
|
|
30360
30452
|
}
|
|
30361
30453
|
break;
|
|
30362
30454
|
case "Right":
|
|
30363
30455
|
case "ArrowRight":
|
|
30364
30456
|
if (C.activeTagIndex !== null) {
|
|
30365
|
-
C.activeTagIndex ===
|
|
30457
|
+
C.activeTagIndex === $ - 1 ? (k({ activeTagIndex: null }), (X = b.current) == null || X.focus()) : (k({ activeTagIndex: C.activeTagIndex + 1 }), H(C.activeTagIndex + 1));
|
|
30366
30458
|
return;
|
|
30367
30459
|
}
|
|
30368
30460
|
break;
|
|
@@ -30420,7 +30512,7 @@ function Im({
|
|
|
30420
30512
|
className: "sps-text-input__input",
|
|
30421
30513
|
placeholder: C.searchText.length === 0 && (!u || u.length === 0) ? c : void 0,
|
|
30422
30514
|
id: T,
|
|
30423
|
-
onBlur:
|
|
30515
|
+
onBlur: F,
|
|
30424
30516
|
onChange: R,
|
|
30425
30517
|
onKeyDown: N,
|
|
30426
30518
|
disabled: t,
|
|
@@ -31520,22 +31612,22 @@ function Wm(e) {
|
|
|
31520
31612
|
isOverTarget: !1,
|
|
31521
31613
|
pointerType: null
|
|
31522
31614
|
}), { addGlobalListener: C, removeAllGlobalListeners: k } = Vm(), I = Ue(() => {
|
|
31523
|
-
let b = T.current, x = (_,
|
|
31615
|
+
let b = T.current, x = (_, F) => {
|
|
31524
31616
|
let { onPressStart: N, onPressChange: B, isDisabled: Q } = S.current;
|
|
31525
31617
|
Q || b.didFirePressStart || (N && N({
|
|
31526
31618
|
type: "pressstart",
|
|
31527
|
-
pointerType:
|
|
31619
|
+
pointerType: F,
|
|
31528
31620
|
target: _.currentTarget,
|
|
31529
31621
|
shiftKey: _.shiftKey,
|
|
31530
31622
|
metaKey: _.metaKey,
|
|
31531
31623
|
ctrlKey: _.ctrlKey,
|
|
31532
31624
|
altKey: _.altKey
|
|
31533
31625
|
}), B && B(!0), b.didFirePressStart = !0, w(!0));
|
|
31534
|
-
}, L = (_,
|
|
31626
|
+
}, L = (_, F, N = !0) => {
|
|
31535
31627
|
let { onPressEnd: B, onPressChange: Q, onPress: J, isDisabled: G } = S.current;
|
|
31536
31628
|
!b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, B && B({
|
|
31537
31629
|
type: "pressend",
|
|
31538
|
-
pointerType:
|
|
31630
|
+
pointerType: F,
|
|
31539
31631
|
target: _.currentTarget,
|
|
31540
31632
|
shiftKey: _.shiftKey,
|
|
31541
31633
|
metaKey: _.metaKey,
|
|
@@ -31543,18 +31635,18 @@ function Wm(e) {
|
|
|
31543
31635
|
altKey: _.altKey
|
|
31544
31636
|
}), Q && Q(!1), w(!1), J && N && !G && J({
|
|
31545
31637
|
type: "press",
|
|
31546
|
-
pointerType:
|
|
31638
|
+
pointerType: F,
|
|
31547
31639
|
target: _.currentTarget,
|
|
31548
31640
|
shiftKey: _.shiftKey,
|
|
31549
31641
|
metaKey: _.metaKey,
|
|
31550
31642
|
ctrlKey: _.ctrlKey,
|
|
31551
31643
|
altKey: _.altKey
|
|
31552
31644
|
}));
|
|
31553
|
-
}, M = (_,
|
|
31645
|
+
}, M = (_, F) => {
|
|
31554
31646
|
let { onPressUp: N, isDisabled: B } = S.current;
|
|
31555
31647
|
B || N && N({
|
|
31556
31648
|
type: "pressup",
|
|
31557
|
-
pointerType:
|
|
31649
|
+
pointerType: F,
|
|
31558
31650
|
target: _.currentTarget,
|
|
31559
31651
|
shiftKey: _.shiftKey,
|
|
31560
31652
|
metaKey: _.metaKey,
|
|
@@ -31576,8 +31668,8 @@ function Wm(e) {
|
|
|
31576
31668
|
}, H = (_) => {
|
|
31577
31669
|
if (b.isPressed && bo(_, b.target)) {
|
|
31578
31670
|
Nd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
|
|
31579
|
-
let
|
|
31580
|
-
L(nn(b.target, _), "keyboard", b.target.contains(
|
|
31671
|
+
let F = _.target;
|
|
31672
|
+
L(nn(b.target, _), "keyboard", b.target.contains(F)), k(), b.target instanceof HTMLElement && b.target.contains(F) && (Ko(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
|
|
31581
31673
|
}
|
|
31582
31674
|
};
|
|
31583
31675
|
if (typeof PointerEvent < "u") {
|
|
@@ -31587,7 +31679,7 @@ function Wm(e) {
|
|
|
31587
31679
|
b.pointerType = "virtual";
|
|
31588
31680
|
return;
|
|
31589
31681
|
}
|
|
31590
|
-
vo(B.currentTarget) && B.preventDefault(), b.pointerType = B.pointerType, B.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = B.pointerId, b.target = B.currentTarget, !l && !p && cr(B.currentTarget), m || Cd(b.target), x(B, b.pointerType), C(document, "pointermove", _, !1), C(document, "pointerup",
|
|
31682
|
+
vo(B.currentTarget) && B.preventDefault(), b.pointerType = B.pointerType, B.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = B.pointerId, b.target = B.currentTarget, !l && !p && cr(B.currentTarget), m || Cd(b.target), x(B, b.pointerType), C(document, "pointermove", _, !1), C(document, "pointerup", F, !1), C(document, "pointercancel", N, !1));
|
|
31591
31683
|
}
|
|
31592
31684
|
}, R.onMouseDown = (B) => {
|
|
31593
31685
|
!B.currentTarget.contains(B.target) || B.button === 0 && (vo(B.currentTarget) && B.preventDefault(), B.stopPropagation());
|
|
@@ -31596,7 +31688,7 @@ function Wm(e) {
|
|
|
31596
31688
|
};
|
|
31597
31689
|
let _ = (B) => {
|
|
31598
31690
|
B.pointerId === b.activePointerId && (Zn(B, b.target) ? b.isOverTarget || (b.isOverTarget = !0, x(nn(b.target, B), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(nn(b.target, B), b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(B)));
|
|
31599
|
-
},
|
|
31691
|
+
}, F = (B) => {
|
|
31600
31692
|
B.pointerId === b.activePointerId && b.isPressed && B.button === 0 && (Zn(B, b.target) ? L(nn(b.target, B), b.pointerType) : b.isOverTarget && L(nn(b.target, B), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, k(), m || Ws(b.target));
|
|
31601
31693
|
}, N = (B) => {
|
|
31602
31694
|
O(B);
|
|
@@ -31628,7 +31720,7 @@ function Wm(e) {
|
|
|
31628
31720
|
return;
|
|
31629
31721
|
N.stopPropagation();
|
|
31630
31722
|
let B = kk(N.nativeEvent);
|
|
31631
|
-
!B || (b.activePointerId = B.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && cr(N.currentTarget), m || Cd(b.target), x(N, b.pointerType), C(window, "scroll",
|
|
31723
|
+
!B || (b.activePointerId = B.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && cr(N.currentTarget), m || Cd(b.target), x(N, b.pointerType), C(window, "scroll", F, !0));
|
|
31632
31724
|
}, R.onTouchMove = (N) => {
|
|
31633
31725
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
31634
31726
|
return;
|
|
@@ -31642,7 +31734,7 @@ function Wm(e) {
|
|
|
31642
31734
|
}, R.onTouchCancel = (N) => {
|
|
31643
31735
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && O(N));
|
|
31644
31736
|
};
|
|
31645
|
-
let
|
|
31737
|
+
let F = (N) => {
|
|
31646
31738
|
b.isPressed && N.target.contains(b.target) && O({
|
|
31647
31739
|
currentTarget: b.target,
|
|
31648
31740
|
shiftKey: !1,
|
|
@@ -32107,10 +32199,10 @@ function sI(e) {
|
|
|
32107
32199
|
break;
|
|
32108
32200
|
case "ArrowUp":
|
|
32109
32201
|
if (n.getKeyAbove) {
|
|
32110
|
-
var _,
|
|
32202
|
+
var _, F;
|
|
32111
32203
|
M.preventDefault();
|
|
32112
32204
|
let N = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (_ = n.getLastKey) === null || _ === void 0 ? void 0 : _.call(n);
|
|
32113
|
-
N == null && o && (N = (
|
|
32205
|
+
N == null && o && (N = (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n, t.focusedKey)), O(N);
|
|
32114
32206
|
}
|
|
32115
32207
|
break;
|
|
32116
32208
|
case "ArrowLeft":
|
|
@@ -32194,8 +32286,8 @@ function sI(e) {
|
|
|
32194
32286
|
}
|
|
32195
32287
|
if (!!M.currentTarget.contains(M.target)) {
|
|
32196
32288
|
if (t.setFocused(!0), t.focusedKey == null) {
|
|
32197
|
-
let H = (
|
|
32198
|
-
|
|
32289
|
+
let H = (F) => {
|
|
32290
|
+
F != null && (t.setFocusedKey(F), p && t.replaceSelection(F));
|
|
32199
32291
|
}, _ = M.relatedTarget;
|
|
32200
32292
|
var O, R;
|
|
32201
32293
|
_ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? H((O = t.lastSelectedKey) !== null && O !== void 0 ? O : n.getLastKey()) : H((R = t.firstSelectedKey) !== null && R !== void 0 ? R : n.getFirstKey());
|
|
@@ -32248,13 +32340,13 @@ function sI(e) {
|
|
|
32248
32340
|
};
|
|
32249
32341
|
}
|
|
32250
32342
|
function aI(e) {
|
|
32251
|
-
let { selectionManager: t, key: n, ref: r, shouldSelectOnPressUp: a, isVirtualized: o, shouldUseVirtualFocus: l, focus: c, isDisabled: p, onAction: u, allowsDifferentPressOrigin: m } = e, f = (
|
|
32252
|
-
if (
|
|
32343
|
+
let { selectionManager: t, key: n, ref: r, shouldSelectOnPressUp: a, isVirtualized: o, shouldUseVirtualFocus: l, focus: c, isDisabled: p, onAction: u, allowsDifferentPressOrigin: m } = e, f = (F) => {
|
|
32344
|
+
if (F.pointerType === "keyboard" && Jm(F))
|
|
32253
32345
|
t.toggleSelection(n);
|
|
32254
32346
|
else {
|
|
32255
32347
|
if (t.selectionMode === "none")
|
|
32256
32348
|
return;
|
|
32257
|
-
t.selectionMode === "single" ? t.isSelected(n) && !t.disallowEmptySelection ? t.toggleSelection(n) : t.replaceSelection(n) :
|
|
32349
|
+
t.selectionMode === "single" ? t.isSelected(n) && !t.disallowEmptySelection ? t.toggleSelection(n) : t.replaceSelection(n) : F && F.shiftKey ? t.extendSelection(n) : t.selectionBehavior === "toggle" || F && (sr(F) || F.pointerType === "touch" || F.pointerType === "virtual") ? t.toggleSelection(n) : t.replaceSelection(n);
|
|
32258
32350
|
}
|
|
32259
32351
|
};
|
|
32260
32352
|
Pe(() => {
|
|
@@ -32270,40 +32362,40 @@ function aI(e) {
|
|
|
32270
32362
|
let h = {};
|
|
32271
32363
|
l || (h = {
|
|
32272
32364
|
tabIndex: n === t.focusedKey ? 0 : -1,
|
|
32273
|
-
onFocus(
|
|
32274
|
-
|
|
32365
|
+
onFocus(F) {
|
|
32366
|
+
F.target === r.current && t.setFocusedKey(n);
|
|
32275
32367
|
}
|
|
32276
32368
|
}), p = p || t.isDisabled(n);
|
|
32277
32369
|
let S = !p && t.canSelectItem(n), y = u && !p, w = y && (t.selectionBehavior === "replace" ? !S : t.isEmpty), T = y && S && t.selectionBehavior === "replace", C = w || T, k = me(null), I = C && S, b = me(!1), x = me(!1), L = {};
|
|
32278
|
-
a ? (L.onPressStart = (
|
|
32279
|
-
k.current =
|
|
32280
|
-
}, m ? (L.onPressUp = (
|
|
32281
|
-
|
|
32282
|
-
}, L.onPress = w ? () => u() : null) : L.onPress = (
|
|
32283
|
-
if (w || T &&
|
|
32284
|
-
if (
|
|
32370
|
+
a ? (L.onPressStart = (F) => {
|
|
32371
|
+
k.current = F.pointerType, b.current = I, F.pointerType === "keyboard" && (!C || Bd()) && f(F);
|
|
32372
|
+
}, m ? (L.onPressUp = (F) => {
|
|
32373
|
+
F.pointerType !== "keyboard" && f(F);
|
|
32374
|
+
}, L.onPress = w ? () => u() : null) : L.onPress = (F) => {
|
|
32375
|
+
if (w || T && F.pointerType !== "mouse") {
|
|
32376
|
+
if (F.pointerType === "keyboard" && !Pd())
|
|
32285
32377
|
return;
|
|
32286
32378
|
u();
|
|
32287
32379
|
} else
|
|
32288
|
-
|
|
32289
|
-
}) : (L.onPressStart = (
|
|
32290
|
-
k.current =
|
|
32291
|
-
}, L.onPress = (
|
|
32292
|
-
(
|
|
32380
|
+
F.pointerType !== "keyboard" && f(F);
|
|
32381
|
+
}) : (L.onPressStart = (F) => {
|
|
32382
|
+
k.current = F.pointerType, b.current = I, x.current = w, (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!u || Bd())) && f(F);
|
|
32383
|
+
}, L.onPress = (F) => {
|
|
32384
|
+
(F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && C && Pd() || F.pointerType === "mouse" && x.current) && (C ? u() : f(F));
|
|
32293
32385
|
}), o || (h["data-key"] = n), L.preventFocusOnPress = l;
|
|
32294
|
-
let { pressProps: M, isPressed: O } = Wm(L), R = T ? (
|
|
32295
|
-
k.current === "mouse" && (
|
|
32386
|
+
let { pressProps: M, isPressed: O } = Wm(L), R = T ? (F) => {
|
|
32387
|
+
k.current === "mouse" && (F.stopPropagation(), F.preventDefault(), u());
|
|
32296
32388
|
} : void 0, { longPressProps: H } = Fk({
|
|
32297
32389
|
isDisabled: !I,
|
|
32298
|
-
onLongPress(
|
|
32299
|
-
|
|
32390
|
+
onLongPress(F) {
|
|
32391
|
+
F.pointerType === "touch" && (f(F), t.setSelectionBehavior("toggle"));
|
|
32300
32392
|
}
|
|
32301
32393
|
});
|
|
32302
32394
|
return {
|
|
32303
32395
|
itemProps: Ca(h, S || w ? M : {}, I ? H : {}, {
|
|
32304
32396
|
onDoubleClick: R,
|
|
32305
|
-
onDragStart: (
|
|
32306
|
-
k.current === "touch" && b.current &&
|
|
32397
|
+
onDragStart: (F) => {
|
|
32398
|
+
k.current === "touch" && b.current && F.preventDefault();
|
|
32307
32399
|
}
|
|
32308
32400
|
}),
|
|
32309
32401
|
isPressed: O,
|
|
@@ -32386,22 +32478,22 @@ function iI(e) {
|
|
|
32386
32478
|
isOverTarget: !1,
|
|
32387
32479
|
pointerType: null
|
|
32388
32480
|
}), { addGlobalListener: C, removeAllGlobalListeners: k } = lk(), I = Ue(() => {
|
|
32389
|
-
let b = T.current, x = (_,
|
|
32481
|
+
let b = T.current, x = (_, F) => {
|
|
32390
32482
|
let { onPressStart: N, onPressChange: B, isDisabled: Q } = S.current;
|
|
32391
32483
|
Q || b.didFirePressStart || (N && N({
|
|
32392
32484
|
type: "pressstart",
|
|
32393
|
-
pointerType:
|
|
32485
|
+
pointerType: F,
|
|
32394
32486
|
target: _.currentTarget,
|
|
32395
32487
|
shiftKey: _.shiftKey,
|
|
32396
32488
|
metaKey: _.metaKey,
|
|
32397
32489
|
ctrlKey: _.ctrlKey,
|
|
32398
32490
|
altKey: _.altKey
|
|
32399
32491
|
}), B && B(!0), b.didFirePressStart = !0, w(!0));
|
|
32400
|
-
}, L = (_,
|
|
32492
|
+
}, L = (_, F, N = !0) => {
|
|
32401
32493
|
let { onPressEnd: B, onPressChange: Q, onPress: J, isDisabled: G } = S.current;
|
|
32402
32494
|
!b.didFirePressStart || (b.ignoreClickAfterPress = !0, b.didFirePressStart = !1, B && B({
|
|
32403
32495
|
type: "pressend",
|
|
32404
|
-
pointerType:
|
|
32496
|
+
pointerType: F,
|
|
32405
32497
|
target: _.currentTarget,
|
|
32406
32498
|
shiftKey: _.shiftKey,
|
|
32407
32499
|
metaKey: _.metaKey,
|
|
@@ -32409,18 +32501,18 @@ function iI(e) {
|
|
|
32409
32501
|
altKey: _.altKey
|
|
32410
32502
|
}), Q && Q(!1), w(!1), J && N && !G && J({
|
|
32411
32503
|
type: "press",
|
|
32412
|
-
pointerType:
|
|
32504
|
+
pointerType: F,
|
|
32413
32505
|
target: _.currentTarget,
|
|
32414
32506
|
shiftKey: _.shiftKey,
|
|
32415
32507
|
metaKey: _.metaKey,
|
|
32416
32508
|
ctrlKey: _.ctrlKey,
|
|
32417
32509
|
altKey: _.altKey
|
|
32418
32510
|
}));
|
|
32419
|
-
}, M = (_,
|
|
32511
|
+
}, M = (_, F) => {
|
|
32420
32512
|
let { onPressUp: N, isDisabled: B } = S.current;
|
|
32421
32513
|
B || N && N({
|
|
32422
32514
|
type: "pressup",
|
|
32423
|
-
pointerType:
|
|
32515
|
+
pointerType: F,
|
|
32424
32516
|
target: _.currentTarget,
|
|
32425
32517
|
shiftKey: _.shiftKey,
|
|
32426
32518
|
metaKey: _.metaKey,
|
|
@@ -32442,8 +32534,8 @@ function iI(e) {
|
|
|
32442
32534
|
}, H = (_) => {
|
|
32443
32535
|
if (b.isPressed && yo(_, b.target)) {
|
|
32444
32536
|
$d(_.target, _.key) && _.preventDefault(), _.stopPropagation(), b.isPressed = !1;
|
|
32445
|
-
let
|
|
32446
|
-
L(rn(b.target, _), "keyboard", b.target.contains(
|
|
32537
|
+
let F = _.target;
|
|
32538
|
+
L(rn(b.target, _), "keyboard", b.target.contains(F)), k(), b.target instanceof HTMLElement && b.target.contains(F) && (Yo(b.target) || b.target.getAttribute("role") === "link") && b.target.click();
|
|
32447
32539
|
}
|
|
32448
32540
|
};
|
|
32449
32541
|
if (typeof PointerEvent < "u") {
|
|
@@ -32453,7 +32545,7 @@ function iI(e) {
|
|
|
32453
32545
|
b.pointerType = "virtual";
|
|
32454
32546
|
return;
|
|
32455
32547
|
}
|
|
32456
|
-
Eo(B.currentTarget) && B.preventDefault(), b.pointerType = B.pointerType, B.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = B.pointerId, b.target = B.currentTarget, !l && !p && lr(B.currentTarget), m || Ad(b.target), x(B, b.pointerType), C(document, "pointermove", _, !1), C(document, "pointerup",
|
|
32548
|
+
Eo(B.currentTarget) && B.preventDefault(), b.pointerType = B.pointerType, B.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = B.pointerId, b.target = B.currentTarget, !l && !p && lr(B.currentTarget), m || Ad(b.target), x(B, b.pointerType), C(document, "pointermove", _, !1), C(document, "pointerup", F, !1), C(document, "pointercancel", N, !1));
|
|
32457
32549
|
}
|
|
32458
32550
|
}, R.onMouseDown = (B) => {
|
|
32459
32551
|
!B.currentTarget.contains(B.target) || B.button === 0 && (Eo(B.currentTarget) && B.preventDefault(), B.stopPropagation());
|
|
@@ -32462,7 +32554,7 @@ function iI(e) {
|
|
|
32462
32554
|
};
|
|
32463
32555
|
let _ = (B) => {
|
|
32464
32556
|
B.pointerId === b.activePointerId && (er(B, b.target) ? b.isOverTarget || (b.isOverTarget = !0, x(rn(b.target, B), b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, L(rn(b.target, B), b.pointerType, !1), S.current.shouldCancelOnPointerExit && O(B)));
|
|
32465
|
-
},
|
|
32557
|
+
}, F = (B) => {
|
|
32466
32558
|
B.pointerId === b.activePointerId && b.isPressed && B.button === 0 && (er(B, b.target) ? L(rn(b.target, B), b.pointerType) : b.isOverTarget && L(rn(b.target, B), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, k(), m || Gs(b.target));
|
|
32467
32559
|
}, N = (B) => {
|
|
32468
32560
|
O(B);
|
|
@@ -32494,7 +32586,7 @@ function iI(e) {
|
|
|
32494
32586
|
return;
|
|
32495
32587
|
N.stopPropagation();
|
|
32496
32588
|
let B = lI(N.nativeEvent);
|
|
32497
|
-
!B || (b.activePointerId = B.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && lr(N.currentTarget), m || Ad(b.target), x(N, b.pointerType), C(window, "scroll",
|
|
32589
|
+
!B || (b.activePointerId = B.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && lr(N.currentTarget), m || Ad(b.target), x(N, b.pointerType), C(window, "scroll", F, !0));
|
|
32498
32590
|
}, R.onTouchMove = (N) => {
|
|
32499
32591
|
if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
|
|
32500
32592
|
return;
|
|
@@ -32508,7 +32600,7 @@ function iI(e) {
|
|
|
32508
32600
|
}, R.onTouchCancel = (N) => {
|
|
32509
32601
|
!N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && O(N));
|
|
32510
32602
|
};
|
|
32511
|
-
let
|
|
32603
|
+
let F = (N) => {
|
|
32512
32604
|
b.isPressed && N.target.contains(b.target) && O({
|
|
32513
32605
|
currentTarget: b.target,
|
|
32514
32606
|
shiftKey: !1,
|