@interopio/groups-ui-react 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +873 -872
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +873 -872
- package/dist/esm/index.js.map +1 -1
- package/dist/styles/groups.css +4 -0
- package/dist/styles/vars.css +3 -3
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global2, factory) {
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("react"), require("react-dom"), require("@interopio/react-hooks")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "react", "react-dom", "@interopio/react-hooks"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["groups-ui-react"] = {}, global2.jsxRuntime, global2.React, global2.ReactDOM, global2["interopio-hooks"]));
|
|
3
|
-
})(this, function(exports2, jsxRuntime, o,
|
|
3
|
+
})(this, function(exports2, jsxRuntime, o, w, reactHooks) {
|
|
4
4
|
"use strict";
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
return Object.freeze(n);
|
|
20
20
|
}
|
|
21
21
|
const o__namespace = /* @__PURE__ */ _interopNamespaceDefault(o);
|
|
22
|
-
const
|
|
22
|
+
const w__namespace = /* @__PURE__ */ _interopNamespaceDefault(w);
|
|
23
23
|
var StandardButtonTarget = /* @__PURE__ */ ((StandardButtonTarget2) => {
|
|
24
24
|
StandardButtonTarget2["Default"] = "default";
|
|
25
25
|
StandardButtonTarget2["Frame"] = "frame";
|
|
@@ -187,8 +187,8 @@
|
|
|
187
187
|
removePopupById(elementId) {
|
|
188
188
|
return window.webGroupsManager.removePopupById(elementId);
|
|
189
189
|
}
|
|
190
|
-
subscribeForWindowFocused(
|
|
191
|
-
return window.webGroupsManager.subscribeForWindowFocused(
|
|
190
|
+
subscribeForWindowFocused(cb2) {
|
|
191
|
+
return window.webGroupsManager.subscribeForWindowFocused(cb2);
|
|
192
192
|
}
|
|
193
193
|
unmount() {
|
|
194
194
|
return window.webGroupsManager.unmount();
|
|
@@ -515,8 +515,8 @@
|
|
|
515
515
|
const channel = x / 255;
|
|
516
516
|
return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);
|
|
517
517
|
}
|
|
518
|
-
const [r2, g,
|
|
519
|
-
return 0.2126 * f(r2) + 0.7152 * f(g) + 0.0722 * f(
|
|
518
|
+
const [r2, g, b] = parseToRgba(color);
|
|
519
|
+
return 0.2126 * f(r2) + 0.7152 * f(g) + 0.0722 * f(b);
|
|
520
520
|
}
|
|
521
521
|
function readableColorIsBlack(color) {
|
|
522
522
|
return getLuminance(color) > 0.179;
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
const rgba = parseToRgba(color);
|
|
527
527
|
const r2 = rgba[0];
|
|
528
528
|
const g = rgba[1];
|
|
529
|
-
const
|
|
530
|
-
const backgroundWeight = (0.2126 * r2 + 0.7152 * g + 0.0722 *
|
|
529
|
+
const b = rgba[2];
|
|
530
|
+
const backgroundWeight = (0.2126 * r2 + 0.7152 * g + 0.0722 * b) / 255;
|
|
531
531
|
return backgroundWeight > 0.5;
|
|
532
532
|
} catch {
|
|
533
533
|
}
|
|
@@ -752,13 +752,13 @@
|
|
|
752
752
|
};
|
|
753
753
|
const waitForWindow = (io2, windowId) => {
|
|
754
754
|
return new Promise((res, rej) => {
|
|
755
|
-
const unsub = io2.windows.onWindowAdded((
|
|
756
|
-
if (
|
|
757
|
-
res(
|
|
755
|
+
const unsub = io2.windows.onWindowAdded((w2) => {
|
|
756
|
+
if (w2.id === windowId) {
|
|
757
|
+
res(w2);
|
|
758
758
|
unsub();
|
|
759
759
|
}
|
|
760
760
|
});
|
|
761
|
-
const windowInCollection = io2.windows.list().find((
|
|
761
|
+
const windowInCollection = io2.windows.list().find((w2) => w2.id === windowId);
|
|
762
762
|
if (windowInCollection) {
|
|
763
763
|
res(windowInCollection);
|
|
764
764
|
unsub();
|
|
@@ -982,7 +982,7 @@
|
|
|
982
982
|
this.connected_ = false;
|
|
983
983
|
};
|
|
984
984
|
ResizeObserverController2.prototype.onTransitionEnd_ = function(_a2) {
|
|
985
|
-
var
|
|
985
|
+
var _b2 = _a2.propertyName, propertyName = _b2 === void 0 ? "" : _b2;
|
|
986
986
|
var isReflowProperty = transitionKeys.some(function(key) {
|
|
987
987
|
return !!~propertyName.indexOf(key);
|
|
988
988
|
});
|
|
@@ -1484,7 +1484,7 @@
|
|
|
1484
1484
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: moveAreaId, className: "t42-move-area t42-frame-caption-bar-element", children });
|
|
1485
1485
|
};
|
|
1486
1486
|
const BaseMultiChannelSelector = ({ outsideClass, contentClass, showSelector, selectedChannels, channelLabel, channelRestrictions }) => {
|
|
1487
|
-
var _a2,
|
|
1487
|
+
var _a2, _b2;
|
|
1488
1488
|
const ref = o.useRef(null);
|
|
1489
1489
|
const len = selectedChannels.length;
|
|
1490
1490
|
const showBaseChannelSelector = len < 2;
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
{
|
|
1521
1521
|
showSelector,
|
|
1522
1522
|
selectedChannel: (_a2 = selectedChannels[0]) == null ? void 0 : _a2.name,
|
|
1523
|
-
selectedChannelColor: (
|
|
1523
|
+
selectedChannelColor: (_b2 = selectedChannels[0]) == null ? void 0 : _b2.color,
|
|
1524
1524
|
outsideClass,
|
|
1525
1525
|
contentClass,
|
|
1526
1526
|
channelLabel,
|
|
@@ -1871,7 +1871,7 @@
|
|
|
1871
1871
|
var shimExports = shim.exports;
|
|
1872
1872
|
class GroupWrapper extends o.Component {
|
|
1873
1873
|
componentDidMount() {
|
|
1874
|
-
var _a2,
|
|
1874
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
1875
1875
|
const componentFactory = {
|
|
1876
1876
|
createGroupCaptionBar: this.props.onCreateGroupCaptionBarRequested,
|
|
1877
1877
|
updateGroupCaptionBar: this.props.onUpdateGroupCaptionBarRequested,
|
|
@@ -1922,13 +1922,13 @@
|
|
|
1922
1922
|
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested
|
|
1923
1923
|
};
|
|
1924
1924
|
webGroupsManager.init(void 0, componentFactory);
|
|
1925
|
-
webGroupsManager.updateTabHeaderStyles(((
|
|
1925
|
+
webGroupsManager.updateTabHeaderStyles(((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) ?? {});
|
|
1926
1926
|
webGroupsManager.updateTabMoveAreaStyles(((_d2 = (_c2 = this.props.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.moveArea) ?? {});
|
|
1927
1927
|
webGroupsManager.updateFrameStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.frame) == null ? void 0 : _f2.element) ?? {});
|
|
1928
1928
|
}
|
|
1929
1929
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
|
1930
|
-
var _a2,
|
|
1931
|
-
if (((
|
|
1930
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2;
|
|
1931
|
+
if (((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) !== ((_d2 = (_c2 = prevProps.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.header)) {
|
|
1932
1932
|
webGroupsManager.updateTabHeaderStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.tabs) == null ? void 0 : _f2.header) ?? {});
|
|
1933
1933
|
}
|
|
1934
1934
|
if (((_h = (_g2 = this.props.styles) == null ? void 0 : _g2.tabs) == null ? void 0 : _h.moveArea) !== ((_j = (_i2 = prevProps.styles) == null ? void 0 : _i2.tabs) == null ? void 0 : _j.moveArea)) {
|
|
@@ -1946,7 +1946,7 @@
|
|
|
1946
1946
|
}
|
|
1947
1947
|
class Portal extends o.Component {
|
|
1948
1948
|
render() {
|
|
1949
|
-
return
|
|
1949
|
+
return w.createPortal(this.props.children, this.props.parentElement);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
class WebGroupsStore {
|
|
@@ -1984,10 +1984,10 @@
|
|
|
1984
1984
|
htmlButtons: {}
|
|
1985
1985
|
// dict frameId to crate html buttons options
|
|
1986
1986
|
};
|
|
1987
|
-
this.subscribe = (
|
|
1988
|
-
this.listeners.add(
|
|
1987
|
+
this.subscribe = (cb2) => {
|
|
1988
|
+
this.listeners.add(cb2);
|
|
1989
1989
|
return () => {
|
|
1990
|
-
this.listeners.delete(
|
|
1990
|
+
this.listeners.delete(cb2);
|
|
1991
1991
|
};
|
|
1992
1992
|
};
|
|
1993
1993
|
this.getSnapshot = () => {
|
|
@@ -2506,8 +2506,8 @@
|
|
|
2506
2506
|
};
|
|
2507
2507
|
});
|
|
2508
2508
|
};
|
|
2509
|
-
this.setState = (
|
|
2510
|
-
this.state =
|
|
2509
|
+
this.setState = (cb2) => {
|
|
2510
|
+
this.state = cb2(this.state);
|
|
2511
2511
|
this.listeners.forEach((l) => l());
|
|
2512
2512
|
};
|
|
2513
2513
|
}
|
|
@@ -2520,7 +2520,7 @@
|
|
|
2520
2520
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
2521
2521
|
};
|
|
2522
2522
|
const GroupElementCreationWrapper = ({ components, styles }) => {
|
|
2523
|
-
var _a2,
|
|
2523
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2, _s, _t2, _u2, _v, _w, _x;
|
|
2524
2524
|
const state = shimExports.useSyncExternalStore(webGroupsStore.subscribe, webGroupsStore.getSnapshot);
|
|
2525
2525
|
const LoadingAnimation = ((_a2 = components == null ? void 0 : components.frame) == null ? void 0 : _a2.LoadingAnimation) ?? FrameLoadingAnimation;
|
|
2526
2526
|
const renderGroupCaptionBar = () => {
|
|
@@ -3182,7 +3182,7 @@
|
|
|
3182
3182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3183
3183
|
GroupWrapper,
|
|
3184
3184
|
{
|
|
3185
|
-
onCreateGroupCaptionBarRequested: ((
|
|
3185
|
+
onCreateGroupCaptionBarRequested: ((_b2 = components == null ? void 0 : components.group) == null ? void 0 : _b2.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : void 0,
|
|
3186
3186
|
onCreateGroupOverlayRequested: ((_c2 = components == null ? void 0 : components.group) == null ? void 0 : _c2.Overlay) ? webGroupsStore.onCreateGroupOverlayRequested : void 0,
|
|
3187
3187
|
onCreateFrameCaptionBarRequested: ((_d2 = components == null ? void 0 : components.flat) == null ? void 0 : _d2.CaptionBar) ? webGroupsStore.onCreateFrameCaptionBarRequested : void 0,
|
|
3188
3188
|
onCreateFrameWindowOverlayRequested: ((_e2 = components == null ? void 0 : components.frame) == null ? void 0 : _e2.Overlay) ? webGroupsStore.onCreateFrameWindowOverlayRequested : void 0,
|
|
@@ -3207,7 +3207,7 @@
|
|
|
3207
3207
|
onUpdateAboveTabsRequested: ((_t2 = components == null ? void 0 : components.tabs) == null ? void 0 : _t2.Above) ? webGroupsStore.onUpdateAboveTabsRequested : void 0,
|
|
3208
3208
|
onUpdateBeforeTabsComponentRequested: ((_u2 = components == null ? void 0 : components.tabs) == null ? void 0 : _u2.Before) ? webGroupsStore.onUpdateBeforeTabsRequested : void 0,
|
|
3209
3209
|
onUpdateTabRequested: ((_v = components == null ? void 0 : components.tabs) == null ? void 0 : _v.Element) ? webGroupsStore.onUpdateTabElementRequested : void 0,
|
|
3210
|
-
onUpdateAfterTabsComponentRequested: ((
|
|
3210
|
+
onUpdateAfterTabsComponentRequested: ((_w = components == null ? void 0 : components.tabs) == null ? void 0 : _w.After) ? webGroupsStore.onUpdateAfterTabsRequested : void 0,
|
|
3211
3211
|
onUpdateBelowTabsRequested: ((_x = components == null ? void 0 : components.tabs) == null ? void 0 : _x.Below) ? webGroupsStore.onUpdateBelowTabsRequested : void 0,
|
|
3212
3212
|
onRemoveFrameCaptionBarRequested: webGroupsStore.onRemoveFrameCaptionBarRequested,
|
|
3213
3213
|
onRemoveFrameWindowOverlayRequested: webGroupsStore.onRemoveFrameWindowOverlayRequested,
|
|
@@ -3237,13 +3237,13 @@
|
|
|
3237
3237
|
const [IOConnectWindow, setIOConnectWindow] = o.useState(void 0);
|
|
3238
3238
|
const io2 = window.io || o.useContext(reactHooks.IOConnectContext);
|
|
3239
3239
|
o.useEffect(() => {
|
|
3240
|
-
const unsub = io2.windows.onWindowAdded((
|
|
3241
|
-
if (
|
|
3242
|
-
setIOConnectWindow(
|
|
3240
|
+
const unsub = io2.windows.onWindowAdded((w2) => {
|
|
3241
|
+
if (w2.id === windowId) {
|
|
3242
|
+
setIOConnectWindow(w2);
|
|
3243
3243
|
unsub();
|
|
3244
3244
|
}
|
|
3245
3245
|
});
|
|
3246
|
-
const windowInCollection = io2.windows.list().find((
|
|
3246
|
+
const windowInCollection = io2.windows.list().find((w2) => w2.id === windowId);
|
|
3247
3247
|
if (windowInCollection) {
|
|
3248
3248
|
setIOConnectWindow(windowInCollection);
|
|
3249
3249
|
unsub();
|
|
@@ -3347,16 +3347,16 @@
|
|
|
3347
3347
|
hiddenTabsToTheRight.length > 0 && createSection(hiddenTabsToTheRight, "Open right")
|
|
3348
3348
|
] });
|
|
3349
3349
|
};
|
|
3350
|
-
function
|
|
3350
|
+
function C(e) {
|
|
3351
3351
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3352
3352
|
}
|
|
3353
|
-
var
|
|
3353
|
+
var S, N = { exports: {} };
|
|
3354
3354
|
/*!
|
|
3355
3355
|
Copyright (c) 2018 Jed Watson.
|
|
3356
3356
|
Licensed under the MIT License (MIT), see
|
|
3357
3357
|
http://jedwatson.github.io/classnames
|
|
3358
3358
|
*/
|
|
3359
|
-
|
|
3359
|
+
S = N, function() {
|
|
3360
3360
|
var e = {}.hasOwnProperty;
|
|
3361
3361
|
function t() {
|
|
3362
3362
|
for (var e2 = "", t2 = 0; t2 < arguments.length; t2++) {
|
|
@@ -3382,22 +3382,22 @@
|
|
|
3382
3382
|
function o2(e2, t2) {
|
|
3383
3383
|
return t2 ? e2 ? e2 + " " + t2 : e2 + t2 : e2;
|
|
3384
3384
|
}
|
|
3385
|
-
|
|
3385
|
+
S.exports ? (t.default = t, S.exports = t) : window.classNames = t;
|
|
3386
3386
|
}();
|
|
3387
|
-
var E =
|
|
3388
|
-
function
|
|
3387
|
+
var E = C(N.exports);
|
|
3388
|
+
function P({ className: t, size: n = "16", variant: o2 = "workspace", ...i }) {
|
|
3389
3389
|
const r2 = E("icon", n && [`icon-size-${n}`], t);
|
|
3390
3390
|
return jsxRuntime.jsx("span", { className: r2, "aria-label": `icon-${o2}`, role: "presentation", ...i, children: jsxRuntime.jsx("i", { className: `icon-${o2}` }) });
|
|
3391
3391
|
}
|
|
3392
|
-
const
|
|
3392
|
+
const I = o.forwardRef(({ className: t, variant: n = "default", icon: o$1 = "workspace", size: i = "16", tooltip: r2, iconSize: s = "16", onClick: c, disabled: l, children: u, ...d }, f) => {
|
|
3393
3393
|
const p = E("io-btn-icon", "default" !== n && [`io-btn-icon-${n}`], [`io-btn-icon-size-${i}`], t), m = o.useCallback((e) => {
|
|
3394
3394
|
if (!l)
|
|
3395
3395
|
return c ? c(e) : void 0;
|
|
3396
3396
|
e.preventDefault();
|
|
3397
3397
|
}, [c, l]);
|
|
3398
|
-
return jsxRuntime.jsx("button", { className: p, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": l, title: r2, onClick: m, disabled: l, ...d, children: u ?? (o$1 && jsxRuntime.jsx(
|
|
3398
|
+
return jsxRuntime.jsx("button", { className: p, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": l, title: r2, onClick: m, disabled: l, ...d, children: u ?? (o$1 && jsxRuntime.jsx(P, { variant: o$1, size: s })) });
|
|
3399
3399
|
});
|
|
3400
|
-
|
|
3400
|
+
I.displayName = "ButtonIcon";
|
|
3401
3401
|
function L({ className: t, variant: n = "default", children: o2, ...i }) {
|
|
3402
3402
|
const r2 = E("io-badge", "default" !== n && [`io-badge-${n}`], t);
|
|
3403
3403
|
return jsxRuntime.jsx("div", { className: r2, ...i, children: o2 });
|
|
@@ -3445,7 +3445,7 @@
|
|
|
3445
3445
|
}, [u, d]), y = o.useCallback((e) => {
|
|
3446
3446
|
d || R(e) && (e.preventDefault(), g(e));
|
|
3447
3447
|
}, [g, d]);
|
|
3448
|
-
return jsxRuntime.jsxs("button", { className: h, ref: m, type: "button", "aria-disabled": d, onClick: g, onKeyDown: y, disabled: d, tabIndex: 0, ...p, children: [r2 && !c && jsxRuntime.jsx(
|
|
3448
|
+
return jsxRuntime.jsxs("button", { className: h, ref: m, type: "button", "aria-disabled": d, onClick: g, onKeyDown: y, disabled: d, tabIndex: 0, ...p, children: [r2 && !c && jsxRuntime.jsx(P, { variant: r2, size: s }), f ?? l, r2 && c && jsxRuntime.jsx(P, { variant: r2, size: s })] });
|
|
3449
3449
|
});
|
|
3450
3450
|
$.displayName = "Button";
|
|
3451
3451
|
const _ = o.createContext({}), j = o.forwardRef(({ icon: t = "chevron-down", onClick: n, onKeyDown: o$1, ...i }, r2) => {
|
|
@@ -3467,7 +3467,7 @@
|
|
|
3467
3467
|
}, [n, s]), p = o.useCallback((e) => {
|
|
3468
3468
|
o$1 == null ? void 0 : o$1(e), e.defaultPrevented || R(e) && (e.preventDefault(), e.stopPropagation(), s == null ? void 0 : s());
|
|
3469
3469
|
}, [o$1, s]);
|
|
3470
|
-
return jsxRuntime.jsx(
|
|
3470
|
+
return jsxRuntime.jsx(I, { size: t, onClick: f, onKeyDown: p, disabled: l, ref: d, ...i });
|
|
3471
3471
|
});
|
|
3472
3472
|
function H({ className: t, ...n }) {
|
|
3473
3473
|
const o2 = E("io-dropdown-content", t);
|
|
@@ -3475,10 +3475,10 @@
|
|
|
3475
3475
|
}
|
|
3476
3476
|
z.displayName = "DropdownButtonIcon";
|
|
3477
3477
|
const W = o.createContext({}), V = o.forwardRef((n, o$1) => {
|
|
3478
|
-
const { className: i, prepend: r2, append: a, isSelected: s, onClick: l, description: u, disabled: d = false, children: f, tooltip: p, ...m } = n, { variant: h = "default", selected: g, checkIcon: y, handleItemClick: v } = o.useContext(W),
|
|
3478
|
+
const { className: i, prepend: r2, append: a, isSelected: s, onClick: l, description: u, disabled: d = false, children: f, tooltip: p, ...m } = n, { variant: h = "default", selected: g, checkIcon: y, handleItemClick: v } = o.useContext(W), b = s ?? (g == null ? void 0 : g.some((e) => e.children === f)), w2 = "default" !== h && !!y, k = w2 || r2, x = E("io-list-item", k && "io-list-item-left", a && "io-list-item-right", "default" !== h && b && "selected", u && "io-list-item-description", d && "io-list-item-disabled", i);
|
|
3479
3479
|
return jsxRuntime.jsxs("li", { className: x, ref: o$1, role: "menuitem", "aria-roledescription": "menuitem", tabIndex: 0, onClick: (e) => {
|
|
3480
3480
|
d ? e.preventDefault() : (v == null ? void 0 : v(e, { children: f }), l == null ? void 0 : l(e));
|
|
3481
|
-
}, ...m, children: [k && jsxRuntime.jsxs("div", { className: "io-list-left-column", children: [
|
|
3481
|
+
}, ...m, children: [k && jsxRuntime.jsxs("div", { className: "io-list-left-column", children: [w2 && jsxRuntime.jsx(P, { variant: y.variant, title: b ? y.tooltip : void 0, "data-testid": "list-item-check-icon" }), r2] }), jsxRuntime.jsx("span", { className: "io-list-text", title: p, "data-testid": "list-item-title", children: f }), a && jsxRuntime.jsx("div", { className: "io-list-right-column", children: a }), u && jsxRuntime.jsx("div", { className: "io-list-text-description", children: u })] });
|
|
3482
3482
|
});
|
|
3483
3483
|
V.displayName = "ListItem";
|
|
3484
3484
|
const U = o.forwardRef(({ className: n, prepend: o2, append: i, children: r2, tooltip: a, ...s }, c) => {
|
|
@@ -3515,8 +3515,8 @@
|
|
|
3515
3515
|
if ("default" === i)
|
|
3516
3516
|
return;
|
|
3517
3517
|
const n2 = d.some((e2) => {
|
|
3518
|
-
var _a2,
|
|
3519
|
-
return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((
|
|
3518
|
+
var _a2, _b2;
|
|
3519
|
+
return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((_b2 = t2.children) == null ? void 0 : _b2.toString());
|
|
3520
3520
|
});
|
|
3521
3521
|
"single" === i ? f([t2]) : (() => {
|
|
3522
3522
|
const e2 = n2 ? d.filter((e3) => e3.children !== t2.children) : [...d, t2];
|
|
@@ -3566,7 +3566,7 @@
|
|
|
3566
3566
|
const re = o.forwardRef(({ className: t, variant: n = "outline", align: o$1 = "down", disabled: i, isOpen: r2, onOpenChange: s, children: c, ...m }, h) => {
|
|
3567
3567
|
const g = o.useRef(null), y = o.useRef(null);
|
|
3568
3568
|
o.useImperativeHandle(h, () => y.current, []);
|
|
3569
|
-
const { isOpen: v, handleOpen:
|
|
3569
|
+
const { isOpen: v, handleOpen: b, handleClose: w2 } = ((e, t2) => {
|
|
3570
3570
|
const [n2, o$12] = o.useState(false), i2 = void 0 !== e, r3 = i2 ? e : n2, s2 = o.useCallback((e2) => {
|
|
3571
3571
|
i2 || o$12(e2), t2 == null ? void 0 : t2(e2);
|
|
3572
3572
|
}, [i2, t2]), c2 = o.useCallback(() => s2(true), [s2]), u = o.useCallback(() => s2(false), [s2]);
|
|
@@ -3586,12 +3586,12 @@
|
|
|
3586
3586
|
cancelAnimationFrame(i2), document.removeEventListener("mousedown", o2, true);
|
|
3587
3587
|
};
|
|
3588
3588
|
}, [e, t2, n2]);
|
|
3589
|
-
})(y,
|
|
3590
|
-
v &&
|
|
3589
|
+
})(y, w2, v), ie(() => {
|
|
3590
|
+
v && w2();
|
|
3591
3591
|
}, ["Escape"], y), ie(() => {
|
|
3592
|
-
v || i || g.current !== document.activeElement ||
|
|
3592
|
+
v || i || g.current !== document.activeElement || b();
|
|
3593
3593
|
}, ["ArrowDown", "ArrowUp"], y);
|
|
3594
|
-
const k = o.useMemo(() => ({ variant: n, align: o$1, disabled: i, isOpen: v, handleOpen:
|
|
3594
|
+
const k = o.useMemo(() => ({ variant: n, align: o$1, disabled: i, isOpen: v, handleOpen: b, handleClose: w2, handleToggle: v ? w2 : b, setTriggerRef: (e) => g.current = e }), [n, o$1, i, v, b, w2]), x = E("io-dropdown", v && "io-dropdown-open", "default" !== n && `io-dropdown-${n}`, t);
|
|
3595
3595
|
return jsxRuntime.jsx(_.Provider, { value: k, children: jsxRuntime.jsx("div", { className: x, ref: y, ...m, children: c }) });
|
|
3596
3596
|
});
|
|
3597
3597
|
function ae({ className: t, variant: n = "default", align: o2 = "left", children: i, ...r2 }) {
|
|
@@ -3630,7 +3630,7 @@
|
|
|
3630
3630
|
}, onKeyDown: (e) => {
|
|
3631
3631
|
const t = e.target instanceof HTMLDialogElement && "DIALOG" === e.target.nodeName;
|
|
3632
3632
|
r2 && s && " " === e.key && t && s();
|
|
3633
|
-
}, ...l, children: [jsxRuntime.jsxs(ce, { draggable: a, children: [jsxRuntime.jsx("h3", { "data-testid": "io-dialog-title", children: i }), jsxRuntime.jsx(ae, { children: jsxRuntime.jsx(
|
|
3633
|
+
}, ...l, children: [jsxRuntime.jsxs(ce, { draggable: a, children: [jsxRuntime.jsx("h3", { "data-testid": "io-dialog-title", children: i }), jsxRuntime.jsx(ae, { children: jsxRuntime.jsx(I, { className: "non-draggable", "data-testid": "io-dialog-close-button", size: "24", icon: "close", iconSize: "12", onClick: s, tabIndex: -1 }) })] }), c] });
|
|
3634
3634
|
}
|
|
3635
3635
|
function pe() {
|
|
3636
3636
|
return "undefined" != typeof window;
|
|
@@ -3652,24 +3652,24 @@
|
|
|
3652
3652
|
function ve(e) {
|
|
3653
3653
|
return !!pe() && (e instanceof Element || e instanceof he(e).Element);
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function be(e) {
|
|
3656
3656
|
return !!pe() && (e instanceof HTMLElement || e instanceof he(e).HTMLElement);
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3658
|
+
function we(e) {
|
|
3659
3659
|
return !(!pe() || "undefined" == typeof ShadowRoot) && (e instanceof ShadowRoot || e instanceof he(e).ShadowRoot);
|
|
3660
3660
|
}
|
|
3661
|
-
re.Button = j, re.ButtonIcon = z, re.Content = H, re.List = Z, re.Item = ee, re.ItemTitle = te, re.ItemSection = ne, re.Separator = oe, ae.Button = $, ae.ButtonIcon =
|
|
3661
|
+
re.Button = j, re.ButtonIcon = z, re.Content = H, re.List = Z, re.Item = ee, re.ItemTitle = te, re.ItemSection = ne, re.Separator = oe, ae.Button = $, ae.ButtonIcon = I, ae.Dropdown = re, se.Title = D, se.ButtonGroup = ae, se.Button = $, se.ButtonIcon = I, se.Dropdown = re, ce.Title = D, ce.ButtonGroup = ae, ce.Button = $, ce.ButtonIcon = I, ce.Dropdown = re, le.Content = function({ className: t, children: n, ...o2 }) {
|
|
3662
3662
|
const i = E("io-dialog-content", t);
|
|
3663
3663
|
return jsxRuntime.jsx("div", { className: i, ...o2, children: n });
|
|
3664
|
-
}, ue.ButtonGroup = ae, ue.Button = $, ue.ButtonIcon =
|
|
3664
|
+
}, ue.ButtonGroup = ae, ue.Button = $, ue.ButtonIcon = I, ue.Dropdown = re, de.ButtonGroup = ae, de.Button = $, de.ButtonIcon = I, de.Dropdown = re, fe.Header = ce, fe.Body = le, fe.Footer = de;
|
|
3665
3665
|
const ke = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
3666
3666
|
function xe(e) {
|
|
3667
3667
|
const { overflow: t, overflowX: n, overflowY: o2, display: i } = Re(e);
|
|
3668
3668
|
return /auto|scroll|overlay|hidden|clip/.test(t + o2 + n) && !ke.has(i);
|
|
3669
3669
|
}
|
|
3670
|
-
const
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
3670
|
+
const Ce = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
3671
|
+
function Se(e) {
|
|
3672
|
+
return Ce.has(me(e));
|
|
3673
3673
|
}
|
|
3674
3674
|
const Ne = [":popover-open", ":modal"];
|
|
3675
3675
|
function Ee(e) {
|
|
@@ -3681,10 +3681,10 @@
|
|
|
3681
3681
|
}
|
|
3682
3682
|
});
|
|
3683
3683
|
}
|
|
3684
|
-
const
|
|
3684
|
+
const Pe = ["transform", "translate", "scale", "rotate", "perspective"], Ie = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ae = ["paint", "layout", "strict", "content"];
|
|
3685
3685
|
function Oe(e) {
|
|
3686
3686
|
const t = Le(), n = ve(e) ? Re(e) : e;
|
|
3687
|
-
return
|
|
3687
|
+
return Pe.some((e2) => !!n[e2] && "none" !== n[e2]) || !!n.containerType && "normal" !== n.containerType || !t && !!n.backdropFilter && "none" !== n.backdropFilter || !t && !!n.filter && "none" !== n.filter || Ie.some((e2) => (n.willChange || "").includes(e2)) || Ae.some((e2) => (n.contain || "").includes(e2));
|
|
3688
3688
|
}
|
|
3689
3689
|
function Le() {
|
|
3690
3690
|
return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
|
|
@@ -3702,12 +3702,12 @@
|
|
|
3702
3702
|
function Me(e) {
|
|
3703
3703
|
if ("html" === me(e))
|
|
3704
3704
|
return e;
|
|
3705
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
3706
|
-
return
|
|
3705
|
+
const t = e.assignedSlot || e.parentNode || we(e) && e.host || ge(e);
|
|
3706
|
+
return we(t) ? t.host : t;
|
|
3707
3707
|
}
|
|
3708
3708
|
function Fe(e) {
|
|
3709
3709
|
const t = Me(e);
|
|
3710
|
-
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
3710
|
+
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && xe(t) ? t : Fe(t);
|
|
3711
3711
|
}
|
|
3712
3712
|
function $e(e, t, n) {
|
|
3713
3713
|
var o2;
|
|
@@ -3736,7 +3736,7 @@
|
|
|
3736
3736
|
const n = null == t.getRootNode ? void 0 : t.getRootNode();
|
|
3737
3737
|
if (e.contains(t))
|
|
3738
3738
|
return true;
|
|
3739
|
-
if (n &&
|
|
3739
|
+
if (n && we(n)) {
|
|
3740
3740
|
let n2 = t;
|
|
3741
3741
|
for (; n2; ) {
|
|
3742
3742
|
if (e === n2)
|
|
@@ -3789,7 +3789,7 @@
|
|
|
3789
3789
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
3790
3790
|
}
|
|
3791
3791
|
function Qe(e) {
|
|
3792
|
-
return
|
|
3792
|
+
return be(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
|
|
3793
3793
|
}
|
|
3794
3794
|
function Ze(e) {
|
|
3795
3795
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -3826,27 +3826,27 @@
|
|
|
3826
3826
|
function yt(e) {
|
|
3827
3827
|
return e.replace(/start|end/g, (e2) => st[e2]);
|
|
3828
3828
|
}
|
|
3829
|
-
const vt = ["left", "right"],
|
|
3829
|
+
const vt = ["left", "right"], bt = ["right", "left"], wt = ["top", "bottom"], kt = ["bottom", "top"];
|
|
3830
3830
|
function xt(e, t, n, o2) {
|
|
3831
3831
|
const i = dt(e);
|
|
3832
3832
|
let r2 = function(e2, t2, n2) {
|
|
3833
3833
|
switch (e2) {
|
|
3834
3834
|
case "top":
|
|
3835
3835
|
case "bottom":
|
|
3836
|
-
return n2 ? t2 ?
|
|
3836
|
+
return n2 ? t2 ? bt : vt : t2 ? vt : bt;
|
|
3837
3837
|
case "left":
|
|
3838
3838
|
case "right":
|
|
3839
|
-
return t2 ?
|
|
3839
|
+
return t2 ? wt : kt;
|
|
3840
3840
|
default:
|
|
3841
3841
|
return [];
|
|
3842
3842
|
}
|
|
3843
3843
|
}(ut(e), "start" === n, o2);
|
|
3844
3844
|
return i && (r2 = r2.map((e2) => e2 + "-" + i), t && (r2 = r2.concat(r2.map(yt)))), r2;
|
|
3845
3845
|
}
|
|
3846
|
-
function
|
|
3846
|
+
function Ct(e) {
|
|
3847
3847
|
return e.replace(/left|right|bottom|top/g, (e2) => at[e2]);
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function St(e) {
|
|
3850
3850
|
const { x: t, y: n, width: o2, height: i } = e;
|
|
3851
3851
|
return { width: o2, height: i, top: n, left: t, right: t + o2, bottom: n + i, x: t, y: n };
|
|
3852
3852
|
}
|
|
@@ -3854,8 +3854,8 @@
|
|
|
3854
3854
|
* tabbable 6.4.0
|
|
3855
3855
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3856
3856
|
*/
|
|
3857
|
-
var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"].join(","), Et = "undefined" == typeof Element,
|
|
3858
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
3857
|
+
var Nt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"].join(","), Et = "undefined" == typeof Element, Pt = Et ? function() {
|
|
3858
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, It = !Et && Element.prototype.getRootNode ? function(e) {
|
|
3859
3859
|
var t;
|
|
3860
3860
|
return null == e || null === (t = e.getRootNode) || void 0 === t ? void 0 : t.call(e);
|
|
3861
3861
|
} : function(e) {
|
|
@@ -3873,7 +3873,7 @@
|
|
|
3873
3873
|
var a = r2.assignedElements(), s = a.length ? a : r2.children, c = Ot(s, true, n);
|
|
3874
3874
|
n.flatten ? o2.push.apply(o2, c) : o2.push({ scopeParent: r2, candidates: c });
|
|
3875
3875
|
} else {
|
|
3876
|
-
|
|
3876
|
+
Pt.call(r2, Nt) && n.filter(r2) && (t || !e.includes(r2)) && o2.push(r2);
|
|
3877
3877
|
var l = r2.shadowRoot || "function" == typeof n.getShadowRoot && n.getShadowRoot(r2), u = !At(l, false) && (!n.shadowRootFilter || n.shadowRootFilter(r2));
|
|
3878
3878
|
if (l && u) {
|
|
3879
3879
|
var d = Ot(true === l ? r2.children : l.children, true, n);
|
|
@@ -3902,7 +3902,7 @@
|
|
|
3902
3902
|
}(e) && !function(e2) {
|
|
3903
3903
|
if (!e2.name)
|
|
3904
3904
|
return true;
|
|
3905
|
-
var t, n = e2.form ||
|
|
3905
|
+
var t, n = e2.form || It(e2), o2 = function(e3) {
|
|
3906
3906
|
return n.querySelectorAll('input[type="radio"][name="' + e3 + '"]');
|
|
3907
3907
|
};
|
|
3908
3908
|
if ("undefined" != typeof window && void 0 !== window.CSS && "function" == typeof window.CSS.escape)
|
|
@@ -3929,8 +3929,8 @@
|
|
|
3929
3929
|
return !e.checkVisibility({ checkOpacity: false, opacityProperty: false, contentVisibilityAuto: true, visibilityProperty: true, checkVisibilityCSS: true });
|
|
3930
3930
|
if ("hidden" === getComputedStyle(e).visibility)
|
|
3931
3931
|
return true;
|
|
3932
|
-
var i =
|
|
3933
|
-
if (
|
|
3932
|
+
var i = Pt.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
3933
|
+
if (Pt.call(i, "details:not([open]) *"))
|
|
3934
3934
|
return true;
|
|
3935
3935
|
if (n && "full" !== n && "full-native" !== n && "legacy-full" !== n) {
|
|
3936
3936
|
if ("non-zero-area" === n)
|
|
@@ -3938,7 +3938,7 @@
|
|
|
3938
3938
|
} else {
|
|
3939
3939
|
if ("function" == typeof o2) {
|
|
3940
3940
|
for (var r2 = e; e; ) {
|
|
3941
|
-
var a = e.parentElement, s =
|
|
3941
|
+
var a = e.parentElement, s = It(e);
|
|
3942
3942
|
if (a && !a.shadowRoot && true === o2(a))
|
|
3943
3943
|
return Mt(e);
|
|
3944
3944
|
e = e.assignedSlot ? e.assignedSlot : a || s === e.ownerDocument ? a : s.host;
|
|
@@ -3946,11 +3946,11 @@
|
|
|
3946
3946
|
e = r2;
|
|
3947
3947
|
}
|
|
3948
3948
|
if (function(e2) {
|
|
3949
|
-
var t2, n2, o3, i2, r3 = e2 &&
|
|
3949
|
+
var t2, n2, o3, i2, r3 = e2 && It(e2), a2 = null === (t2 = r3) || void 0 === t2 ? void 0 : t2.host, s2 = false;
|
|
3950
3950
|
if (r3 && r3 !== e2)
|
|
3951
3951
|
for (s2 = !!(null !== (n2 = a2) && void 0 !== n2 && null !== (o3 = n2.ownerDocument) && void 0 !== o3 && o3.contains(a2) || null != e2 && null !== (i2 = e2.ownerDocument) && void 0 !== i2 && i2.contains(e2)); !s2 && a2; ) {
|
|
3952
3952
|
var c, l, u;
|
|
3953
|
-
s2 = !(null === (l = a2 = null === (c = r3 =
|
|
3953
|
+
s2 = !(null === (l = a2 = null === (c = r3 = It(a2)) || void 0 === c ? void 0 : c.host) || void 0 === l || null === (u = l.ownerDocument) || void 0 === u || !u.contains(a2));
|
|
3954
3954
|
}
|
|
3955
3955
|
return s2;
|
|
3956
3956
|
}(e))
|
|
@@ -3973,7 +3973,7 @@
|
|
|
3973
3973
|
for (var n = 0; n < t2.children.length; n++) {
|
|
3974
3974
|
var o2 = t2.children.item(n);
|
|
3975
3975
|
if ("LEGEND" === o2.tagName)
|
|
3976
|
-
return !!
|
|
3976
|
+
return !!Pt.call(t2, "fieldset[disabled] *") || !o2.contains(e2);
|
|
3977
3977
|
}
|
|
3978
3978
|
return true;
|
|
3979
3979
|
}
|
|
@@ -4003,7 +4003,7 @@
|
|
|
4003
4003
|
if (At(e2))
|
|
4004
4004
|
return [];
|
|
4005
4005
|
var o2 = Array.prototype.slice.apply(e2.querySelectorAll(Nt));
|
|
4006
|
-
return t2 &&
|
|
4006
|
+
return t2 && Pt.call(e2, Nt) && o2.unshift(e2), o2.filter(n2);
|
|
4007
4007
|
}(e, t.includeContainer, _t.bind(null, t)), zt(n);
|
|
4008
4008
|
};
|
|
4009
4009
|
function Wt(e, t, n) {
|
|
@@ -4042,14 +4042,14 @@
|
|
|
4042
4042
|
return "number" != typeof e2 ? function(e3) {
|
|
4043
4043
|
return { top: 0, right: 0, bottom: 0, left: 0, ...e3 };
|
|
4044
4044
|
}(e2) : { top: e2, right: e2, bottom: e2, left: e2 };
|
|
4045
|
-
}(p), h = s[f ? "floating" === d ? "reference" : "floating" : d], g =
|
|
4046
|
-
return { top: (g.top -
|
|
4045
|
+
}(p), h = s[f ? "floating" === d ? "reference" : "floating" : d], g = St(await r2.getClippingRect({ element: null == (n = await (null == r2.isElement ? void 0 : r2.isElement(h))) || n ? h : h.contextElement || await (null == r2.getDocumentElement ? void 0 : r2.getDocumentElement(s.floating)), boundary: l, rootBoundary: u, strategy: c })), y = "floating" === d ? { x: o2, y: i, width: a.floating.width, height: a.floating.height } : a.reference, v = await (null == r2.getOffsetParent ? void 0 : r2.getOffsetParent(s.floating)), b = await (null == r2.isElement ? void 0 : r2.isElement(v)) && await (null == r2.getScale ? void 0 : r2.getScale(v)) || { x: 1, y: 1 }, w2 = St(r2.convertOffsetParentRelativeRectToViewportRelativeRect ? await r2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: s, rect: y, offsetParent: v, strategy: c }) : y);
|
|
4046
|
+
return { top: (g.top - w2.top + m.top) / b.y, bottom: (w2.bottom - g.bottom + m.bottom) / b.y, left: (g.left - w2.left + m.left) / b.x, right: (w2.right - g.right + m.right) / b.x };
|
|
4047
4047
|
}
|
|
4048
4048
|
const Ut = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4049
4049
|
function Kt(e) {
|
|
4050
4050
|
const t = Re(e);
|
|
4051
4051
|
let n = parseFloat(t.width) || 0, o2 = parseFloat(t.height) || 0;
|
|
4052
|
-
const i =
|
|
4052
|
+
const i = be(e), r2 = i ? e.offsetWidth : n, a = i ? e.offsetHeight : o2, s = ot(n) !== r2 || ot(o2) !== a;
|
|
4053
4053
|
return s && (n = r2, o2 = a), { width: n, height: o2, $: s };
|
|
4054
4054
|
}
|
|
4055
4055
|
function Gt(e) {
|
|
@@ -4057,7 +4057,7 @@
|
|
|
4057
4057
|
}
|
|
4058
4058
|
function qt(e) {
|
|
4059
4059
|
const t = Gt(e);
|
|
4060
|
-
if (!
|
|
4060
|
+
if (!be(t))
|
|
4061
4061
|
return rt(1);
|
|
4062
4062
|
const n = t.getBoundingClientRect(), { width: o2, height: i, $: r2 } = Kt(t);
|
|
4063
4063
|
let a = (r2 ? ot(n.width) : n.width) / o2, s = (r2 ? ot(n.height) : n.height) / i;
|
|
@@ -4085,7 +4085,7 @@
|
|
|
4085
4085
|
c *= e3.x, l *= e3.y, u *= e3.x, d *= e3.y, c += r3, l += a2, n2 = he(i2), i2 = _e(n2);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
|
-
return
|
|
4088
|
+
return St({ width: u, height: d, x: c, y: l });
|
|
4089
4089
|
}
|
|
4090
4090
|
function Qt(e, t) {
|
|
4091
4091
|
const n = Be(e).scrollLeft;
|
|
@@ -4124,21 +4124,21 @@
|
|
|
4124
4124
|
}(ge(e));
|
|
4125
4125
|
else if (ve(t))
|
|
4126
4126
|
o2 = function(e2, t2) {
|
|
4127
|
-
const n2 = Xt(e2, true, "fixed" === t2), o3 = n2.top + e2.clientTop, i = n2.left + e2.clientLeft, r2 =
|
|
4127
|
+
const n2 = Xt(e2, true, "fixed" === t2), o3 = n2.top + e2.clientTop, i = n2.left + e2.clientLeft, r2 = be(e2) ? qt(e2) : rt(1);
|
|
4128
4128
|
return { width: e2.clientWidth * r2.x, height: e2.clientHeight * r2.y, x: i * r2.x, y: o3 * r2.y };
|
|
4129
4129
|
}(t, n);
|
|
4130
4130
|
else {
|
|
4131
4131
|
const n2 = Yt(e);
|
|
4132
4132
|
o2 = { x: t.x - n2.x, y: t.y - n2.y, width: t.width, height: t.height };
|
|
4133
4133
|
}
|
|
4134
|
-
return
|
|
4134
|
+
return St(o2);
|
|
4135
4135
|
}
|
|
4136
4136
|
function nn(e, t) {
|
|
4137
4137
|
const n = Me(e);
|
|
4138
4138
|
return !(n === t || !ve(n) || Te(n)) && ("fixed" === Re(n).position || nn(n, t));
|
|
4139
4139
|
}
|
|
4140
4140
|
function on(e, t, n) {
|
|
4141
|
-
const o2 =
|
|
4141
|
+
const o2 = be(t), i = ge(t), r2 = "fixed" === n, a = Xt(e, true, r2, t);
|
|
4142
4142
|
let s = { scrollLeft: 0, scrollTop: 0 };
|
|
4143
4143
|
const c = rt(0);
|
|
4144
4144
|
function l() {
|
|
@@ -4158,7 +4158,7 @@
|
|
|
4158
4158
|
return "static" === Re(e).position;
|
|
4159
4159
|
}
|
|
4160
4160
|
function an(e, t) {
|
|
4161
|
-
if (!
|
|
4161
|
+
if (!be(e) || "fixed" === Re(e).position)
|
|
4162
4162
|
return null;
|
|
4163
4163
|
if (t)
|
|
4164
4164
|
return t(e);
|
|
@@ -4169,7 +4169,7 @@
|
|
|
4169
4169
|
const n = he(e);
|
|
4170
4170
|
if (Ee(e))
|
|
4171
4171
|
return n;
|
|
4172
|
-
if (!
|
|
4172
|
+
if (!be(e)) {
|
|
4173
4173
|
let t2 = Me(e);
|
|
4174
4174
|
for (; t2 && !Te(t2); ) {
|
|
4175
4175
|
if (ve(t2) && !rn(t2))
|
|
@@ -4179,11 +4179,11 @@
|
|
|
4179
4179
|
return n;
|
|
4180
4180
|
}
|
|
4181
4181
|
let o2 = an(e, t);
|
|
4182
|
-
for (; o2 &&
|
|
4182
|
+
for (; o2 && Se(o2) && rn(o2); )
|
|
4183
4183
|
o2 = an(o2, t);
|
|
4184
4184
|
return o2 && Te(o2) && rn(o2) && !Oe(o2) ? n : o2 || function(e2) {
|
|
4185
4185
|
let t2 = Me(e2);
|
|
4186
|
-
for (;
|
|
4186
|
+
for (; be(t2) && !Te(t2); ) {
|
|
4187
4187
|
if (Oe(t2))
|
|
4188
4188
|
return t2;
|
|
4189
4189
|
if (Ee(t2))
|
|
@@ -4199,8 +4199,8 @@
|
|
|
4199
4199
|
if (o2 === a || s && r2)
|
|
4200
4200
|
return n;
|
|
4201
4201
|
let c = { scrollLeft: 0, scrollTop: 0 }, l = rt(1);
|
|
4202
|
-
const u = rt(0), d =
|
|
4203
|
-
if ((d || !d && !r2) && (("body" !== me(o2) || xe(a)) && (c = Be(o2)),
|
|
4202
|
+
const u = rt(0), d = be(o2);
|
|
4203
|
+
if ((d || !d && !r2) && (("body" !== me(o2) || xe(a)) && (c = Be(o2)), be(o2))) {
|
|
4204
4204
|
const e2 = Xt(o2);
|
|
4205
4205
|
l = qt(o2), u.x = e2.x + o2.clientLeft, u.y = e2.y + o2.clientTop;
|
|
4206
4206
|
}
|
|
@@ -4332,30 +4332,30 @@
|
|
|
4332
4332
|
const { placement: i, middlewareData: r2, rects: a, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = true, crossAxis: d = true, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = true, ...g } = lt(e, t);
|
|
4333
4333
|
if (null != (n = r2.arrow) && n.alignmentOffset)
|
|
4334
4334
|
return {};
|
|
4335
|
-
const y = ut(i), v = ht(s),
|
|
4336
|
-
const t2 =
|
|
4335
|
+
const y = ut(i), v = ht(s), b = ut(s) === s, w2 = await (null == c.isRTL ? void 0 : c.isRTL(l.floating)), k = f || (b || !h ? [Ct(s)] : function(e2) {
|
|
4336
|
+
const t2 = Ct(e2);
|
|
4337
4337
|
return [yt(e2), t2, yt(t2)];
|
|
4338
4338
|
}(s)), x = "none" !== m;
|
|
4339
|
-
!f && x && k.push(...xt(s, h, m,
|
|
4340
|
-
const
|
|
4339
|
+
!f && x && k.push(...xt(s, h, m, w2));
|
|
4340
|
+
const C2 = [s, ...k], S2 = await c.detectOverflow(t, g), N2 = [];
|
|
4341
4341
|
let E2 = (null == (o2 = r2.flip) ? void 0 : o2.overflows) || [];
|
|
4342
|
-
if (u && N2.push(
|
|
4342
|
+
if (u && N2.push(S2[y]), d) {
|
|
4343
4343
|
const e2 = function(e3, t2, n2) {
|
|
4344
4344
|
void 0 === n2 && (n2 = false);
|
|
4345
4345
|
const o3 = dt(e3), i2 = gt(e3), r3 = pt(i2);
|
|
4346
4346
|
let a2 = "x" === i2 ? o3 === (n2 ? "end" : "start") ? "right" : "left" : "start" === o3 ? "bottom" : "top";
|
|
4347
|
-
return t2.reference[r3] > t2.floating[r3] && (a2 =
|
|
4348
|
-
}(i, a,
|
|
4349
|
-
N2.push(
|
|
4347
|
+
return t2.reference[r3] > t2.floating[r3] && (a2 = Ct(a2)), [a2, Ct(a2)];
|
|
4348
|
+
}(i, a, w2);
|
|
4349
|
+
N2.push(S2[e2[0]], S2[e2[1]]);
|
|
4350
4350
|
}
|
|
4351
4351
|
if (E2 = [...E2, { placement: i, overflows: N2 }], !N2.every((e2) => e2 <= 0)) {
|
|
4352
|
-
var
|
|
4353
|
-
const e2 = ((null == (
|
|
4352
|
+
var P2, I2;
|
|
4353
|
+
const e2 = ((null == (P2 = r2.flip) ? void 0 : P2.index) || 0) + 1, t2 = C2[e2];
|
|
4354
4354
|
if (t2) {
|
|
4355
4355
|
if (!("alignment" === d && v !== ht(t2)) || E2.every((e3) => ht(e3.placement) !== v || e3.overflows[0] > 0))
|
|
4356
4356
|
return { data: { index: e2, overflows: E2 }, reset: { placement: t2 } };
|
|
4357
4357
|
}
|
|
4358
|
-
let n2 = null == (
|
|
4358
|
+
let n2 = null == (I2 = E2.filter((e3) => e3.overflows[0] <= 0).sort((e3, t3) => e3.overflows[1] - t3.overflows[1])[0]) ? void 0 : I2.placement;
|
|
4359
4359
|
if (!n2)
|
|
4360
4360
|
switch (p) {
|
|
4361
4361
|
case "bestFit": {
|
|
@@ -4385,8 +4385,8 @@
|
|
|
4385
4385
|
let l = await a.getElementRects({ reference: e2, floating: t2, strategy: i2 }), { x: u, y: d } = Wt(l, o3, c), f = o3, p = {}, m = 0;
|
|
4386
4386
|
for (let n3 = 0; n3 < s.length; n3++) {
|
|
4387
4387
|
var h;
|
|
4388
|
-
const { name: r4, fn: g } = s[n3], { x: y, y: v, data:
|
|
4389
|
-
u = null != y ? y : u, d = null != v ? v : d, p = { ...p, [r4]: { ...p[r4], ...
|
|
4388
|
+
const { name: r4, fn: g } = s[n3], { x: y, y: v, data: b, reset: w2 } = await g({ x: u, y: d, initialPlacement: o3, placement: f, strategy: i2, middlewareData: p, rects: l, platform: { ...a, detectOverflow: null != (h = a.detectOverflow) ? h : Vt }, elements: { reference: e2, floating: t2 } });
|
|
4389
|
+
u = null != y ? y : u, d = null != v ? v : d, p = { ...p, [r4]: { ...p[r4], ...b } }, w2 && m <= 50 && (m++, "object" == typeof w2 && (w2.placement && (f = w2.placement), w2.rects && (l = true === w2.rects ? await a.getElementRects({ reference: e2, floating: t2, strategy: i2 }) : w2.rects), { x: u, y: d } = Wt(l, f, c)), n3 = -1);
|
|
4390
4390
|
}
|
|
4391
4391
|
return { x: u, y: d, placement: f, strategy: i2, middlewareData: p };
|
|
4392
4392
|
})(e, t, { ...i, platform: r2 });
|
|
@@ -4433,13 +4433,13 @@
|
|
|
4433
4433
|
const n = yn(e);
|
|
4434
4434
|
return Math.round(t * n) / n;
|
|
4435
4435
|
}
|
|
4436
|
-
function
|
|
4436
|
+
function bn(e) {
|
|
4437
4437
|
const t = o__namespace.useRef(e);
|
|
4438
4438
|
return hn(() => {
|
|
4439
4439
|
t.current = e;
|
|
4440
4440
|
}), t;
|
|
4441
4441
|
}
|
|
4442
|
-
const
|
|
4442
|
+
const wn = (e, t) => ({ ...fn(e), options: [e, t] }), kn = (e, t) => ({ ...pn(e), options: [e, t] });
|
|
4443
4443
|
function xn(e) {
|
|
4444
4444
|
return o__namespace.useMemo(() => e.every((e2) => null == e2) ? null : (t) => {
|
|
4445
4445
|
e.forEach((e2) => {
|
|
@@ -4447,13 +4447,13 @@
|
|
|
4447
4447
|
});
|
|
4448
4448
|
}, e);
|
|
4449
4449
|
}
|
|
4450
|
-
const
|
|
4450
|
+
const Cn = { ...o__namespace }, Sn = Cn.useInsertionEffect || ((e) => e());
|
|
4451
4451
|
function Nn(e) {
|
|
4452
4452
|
const t = o__namespace.useRef(() => {
|
|
4453
4453
|
if ("production" !== process.env.NODE_ENV)
|
|
4454
4454
|
throw new Error("Cannot call an event handler while rendering.");
|
|
4455
4455
|
});
|
|
4456
|
-
return
|
|
4456
|
+
return Sn(() => {
|
|
4457
4457
|
t.current = e;
|
|
4458
4458
|
}), o__namespace.useCallback(function() {
|
|
4459
4459
|
for (var e2 = arguments.length, n = new Array(e2), o2 = 0; o2 < e2; o2++)
|
|
@@ -4461,7 +4461,7 @@
|
|
|
4461
4461
|
return null == t.current ? void 0 : t.current(...n);
|
|
4462
4462
|
}, []);
|
|
4463
4463
|
}
|
|
4464
|
-
const En = "ArrowUp",
|
|
4464
|
+
const En = "ArrowUp", Pn = "ArrowDown", In = "ArrowLeft", An = "ArrowRight";
|
|
4465
4465
|
function On(e, t, n) {
|
|
4466
4466
|
return Math.floor(e / t) !== n;
|
|
4467
4467
|
}
|
|
@@ -4570,7 +4570,7 @@
|
|
|
4570
4570
|
}
|
|
4571
4571
|
let Vn = false, Un = 0;
|
|
4572
4572
|
const Kn = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + Un++;
|
|
4573
|
-
const Gn =
|
|
4573
|
+
const Gn = Cn.useId || function() {
|
|
4574
4574
|
const [e, t] = o__namespace.useState(() => Vn ? Kn() : void 0);
|
|
4575
4575
|
return $n(() => {
|
|
4576
4576
|
null == e && t(Kn());
|
|
@@ -4691,13 +4691,13 @@
|
|
|
4691
4691
|
return go(e.concat(Array.from(o2.querySelectorAll("[aria-live]"))), o2, t, n);
|
|
4692
4692
|
}
|
|
4693
4693
|
const vo = () => ({ getShadowRoot: true, displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none" });
|
|
4694
|
-
function
|
|
4694
|
+
function bo(e, t) {
|
|
4695
4695
|
const n = Ht(e, vo());
|
|
4696
4696
|
"prev" === t && n.reverse();
|
|
4697
4697
|
const o2 = n.indexOf(je(Je(e)));
|
|
4698
4698
|
return n.slice(o2 + 1)[0];
|
|
4699
4699
|
}
|
|
4700
|
-
function
|
|
4700
|
+
function wo(e, t) {
|
|
4701
4701
|
const n = t || e.currentTarget, o2 = e.relatedTarget;
|
|
4702
4702
|
return !o2 || !ze(n, o2);
|
|
4703
4703
|
}
|
|
@@ -4705,45 +4705,45 @@
|
|
|
4705
4705
|
function xo(e) {
|
|
4706
4706
|
"Tab" === e.key && (e.target, clearTimeout(void 0));
|
|
4707
4707
|
}
|
|
4708
|
-
const
|
|
4708
|
+
const Co = o__namespace.forwardRef(function(e, t) {
|
|
4709
4709
|
const [n, i] = o__namespace.useState();
|
|
4710
4710
|
$n(() => (Ke() && i("button"), document.addEventListener("keydown", xo), () => {
|
|
4711
4711
|
document.removeEventListener("keydown", xo);
|
|
4712
4712
|
}), []);
|
|
4713
4713
|
const r2 = { ref: t, tabIndex: 0, role: n, "aria-hidden": !n || void 0, [oo("focus-guard")]: "", style: ko };
|
|
4714
4714
|
return o__namespace.createElement("span", Wn({}, e, r2));
|
|
4715
|
-
}),
|
|
4715
|
+
}), So = o__namespace.createContext(null), No = "data-floating-ui-focusable";
|
|
4716
4716
|
function Eo(e) {
|
|
4717
4717
|
return e ? e.hasAttribute(No) ? e : e.querySelector("[" + No + "]") || e : null;
|
|
4718
4718
|
}
|
|
4719
|
-
let
|
|
4720
|
-
function
|
|
4721
|
-
|
|
4719
|
+
let Po = [];
|
|
4720
|
+
function Io(e) {
|
|
4721
|
+
Po = Po.filter((e2) => e2.isConnected);
|
|
4722
4722
|
let t = e;
|
|
4723
4723
|
if (t && "body" !== me(t)) {
|
|
4724
4724
|
if (!function(e2, t2) {
|
|
4725
4725
|
if (t2 = t2 || {}, !e2)
|
|
4726
4726
|
throw new Error("No node provided");
|
|
4727
|
-
return false !==
|
|
4727
|
+
return false !== Pt.call(e2, Nt) && _t(t2, e2);
|
|
4728
4728
|
}(t, vo())) {
|
|
4729
4729
|
const e2 = Ht(t, vo())[0];
|
|
4730
4730
|
e2 && (t = e2);
|
|
4731
4731
|
}
|
|
4732
|
-
|
|
4732
|
+
Po.push(t), Po.length > 20 && (Po = Po.slice(-20));
|
|
4733
4733
|
}
|
|
4734
4734
|
}
|
|
4735
4735
|
function Ao() {
|
|
4736
|
-
return
|
|
4736
|
+
return Po.slice().reverse().find((e) => e.isConnected);
|
|
4737
4737
|
}
|
|
4738
4738
|
const Oo = o__namespace.forwardRef(function(e, t) {
|
|
4739
4739
|
return o__namespace.createElement("button", Wn({}, e, { type: "button", ref: t, tabIndex: -1, style: ko }));
|
|
4740
4740
|
});
|
|
4741
4741
|
function Lo(e) {
|
|
4742
|
-
const { context: t, children: n, disabled: i = false, order: r2 = ["content"], guards: a = true, initialFocus: s = 0, returnFocus: c = true, restoreFocus: l = false, modal: u = true, visuallyHiddenDismiss: d = false, closeOnFocusOut: f = true } = e, { open: p, refs: m, nodeId: h, onOpenChange: g, events: y, dataRef: v, floatingId:
|
|
4742
|
+
const { context: t, children: n, disabled: i = false, order: r2 = ["content"], guards: a = true, initialFocus: s = 0, returnFocus: c = true, restoreFocus: l = false, modal: u = true, visuallyHiddenDismiss: d = false, closeOnFocusOut: f = true } = e, { open: p, refs: m, nodeId: h, onOpenChange: g, events: y, dataRef: v, floatingId: b, elements: { domReference: w2, floating: k } } = t, x = "number" == typeof s && s < 0, C2 = et(w2) && x, S2 = "undefined" == typeof HTMLElement || !("inert" in HTMLElement.prototype) || a, N2 = io(r2), E2 = io(s), P2 = io(c), I2 = eo(), A = o__namespace.useContext(So), O = o__namespace.useRef(null), L2 = o__namespace.useRef(null), D2 = o__namespace.useRef(false), T2 = o__namespace.useRef(false), R2 = o__namespace.useRef(-1), B2 = null != A, M2 = Eo(k), F = Nn(function(e2) {
|
|
4743
4743
|
return void 0 === e2 && (e2 = M2), e2 ? Ht(e2, vo()) : [];
|
|
4744
4744
|
}), $2 = Nn((e2) => {
|
|
4745
4745
|
const t2 = F(e2);
|
|
4746
|
-
return N2.current.map((e3) =>
|
|
4746
|
+
return N2.current.map((e3) => w2 && "reference" === e3 ? w2 : M2 && "floating" === e3 ? M2 : t2).filter(Boolean).flat();
|
|
4747
4747
|
});
|
|
4748
4748
|
function _2(e2) {
|
|
4749
4749
|
return !i && d && u ? o__namespace.createElement(Oo, { ref: "start" === e2 ? O : L2, onClick: (e3) => g(false, e3.nativeEvent) }, "string" == typeof d ? d : "Dismiss") : null;
|
|
@@ -4755,16 +4755,16 @@
|
|
|
4755
4755
|
return;
|
|
4756
4756
|
function e2(e3) {
|
|
4757
4757
|
if ("Tab" === e3.key) {
|
|
4758
|
-
ze(M2, je(Je(M2))) && 0 === F().length && !
|
|
4758
|
+
ze(M2, je(Je(M2))) && 0 === F().length && !C2 && Ze(e3);
|
|
4759
4759
|
const t3 = $2(), n2 = Xe(e3);
|
|
4760
|
-
"reference" === N2.current[0] && n2 ===
|
|
4760
|
+
"reference" === N2.current[0] && n2 === w2 && (Ze(e3), e3.shiftKey ? co(t3[t3.length - 1]) : co(t3[1])), "floating" === N2.current[1] && n2 === M2 && e3.shiftKey && (Ze(e3), co(t3[0]));
|
|
4761
4761
|
}
|
|
4762
4762
|
}
|
|
4763
4763
|
const t2 = Je(M2);
|
|
4764
4764
|
return t2.addEventListener("keydown", e2), () => {
|
|
4765
4765
|
t2.removeEventListener("keydown", e2);
|
|
4766
4766
|
};
|
|
4767
|
-
}, [i,
|
|
4767
|
+
}, [i, w2, M2, u, N2, C2, F, $2]), o__namespace.useEffect(() => {
|
|
4768
4768
|
if (!i && k)
|
|
4769
4769
|
return k.addEventListener("focusin", e2), () => {
|
|
4770
4770
|
k.removeEventListener("focusin", e2);
|
|
@@ -4775,8 +4775,8 @@
|
|
|
4775
4775
|
}
|
|
4776
4776
|
}, [i, k, F]), o__namespace.useEffect(() => {
|
|
4777
4777
|
if (!i && f)
|
|
4778
|
-
return k &&
|
|
4779
|
-
|
|
4778
|
+
return k && be(w2) ? (w2.addEventListener("focusout", t2), w2.addEventListener("pointerdown", e2), k.addEventListener("focusout", t2), () => {
|
|
4779
|
+
w2.removeEventListener("focusout", t2), w2.removeEventListener("pointerdown", e2), k.removeEventListener("focusout", t2);
|
|
4780
4780
|
}) : void 0;
|
|
4781
4781
|
function e2() {
|
|
4782
4782
|
T2.current = true, setTimeout(() => {
|
|
@@ -4786,7 +4786,7 @@
|
|
|
4786
4786
|
function t2(e3) {
|
|
4787
4787
|
const t3 = e3.relatedTarget;
|
|
4788
4788
|
queueMicrotask(() => {
|
|
4789
|
-
const n2 = !(ze(
|
|
4789
|
+
const n2 = !(ze(w2, t3) || ze(k, t3) || ze(t3, k) || ze(null == A ? void 0 : A.portalNode, t3) || null != t3 && t3.hasAttribute(oo("focus-guard")) || I2 && (lo(I2.nodesRef.current, h).find((e4) => {
|
|
4790
4790
|
var n3, o2;
|
|
4791
4791
|
return ze(null == (n3 = e4.context) ? void 0 : n3.elements.floating, t3) || ze(null == (o2 = e4.context) ? void 0 : o2.elements.domReference, t3);
|
|
4792
4792
|
}) || function(e4, t4) {
|
|
@@ -4797,31 +4797,31 @@
|
|
|
4797
4797
|
i2 = null == t5 ? void 0 : t5.parentId, t5 && (o2 = o2.concat(t5));
|
|
4798
4798
|
}
|
|
4799
4799
|
return o2;
|
|
4800
|
-
}(
|
|
4800
|
+
}(I2.nodesRef.current, h).find((e4) => {
|
|
4801
4801
|
var n3, o2;
|
|
4802
4802
|
return (null == (n3 = e4.context) ? void 0 : n3.elements.floating) === t3 || (null == (o2 = e4.context) ? void 0 : o2.elements.domReference) === t3;
|
|
4803
4803
|
})));
|
|
4804
4804
|
if (l && n2 && je(Je(M2)) === Je(M2).body) {
|
|
4805
|
-
|
|
4805
|
+
be(M2) && M2.focus();
|
|
4806
4806
|
const e4 = R2.current, t4 = F(), n3 = t4[e4] || t4[t4.length - 1] || M2;
|
|
4807
|
-
|
|
4807
|
+
be(n3) && n3.focus();
|
|
4808
4808
|
}
|
|
4809
|
-
!
|
|
4809
|
+
!C2 && u || !t3 || !n2 || T2.current || t3 === Ao() || (D2.current = true, g(false, e3, "focus-out"));
|
|
4810
4810
|
});
|
|
4811
4811
|
}
|
|
4812
|
-
}, [i,
|
|
4812
|
+
}, [i, w2, k, M2, u, h, I2, A, g, f, l, F, C2]), o__namespace.useEffect(() => {
|
|
4813
4813
|
var e2;
|
|
4814
4814
|
if (i)
|
|
4815
4815
|
return;
|
|
4816
4816
|
const t2 = Array.from((null == A || null == (e2 = A.portalNode) ? void 0 : e2.querySelectorAll("[" + oo("portal") + "]")) || []);
|
|
4817
4817
|
if (k) {
|
|
4818
|
-
const e3 = [k, ...t2, O.current, L2.current, N2.current.includes("reference") ||
|
|
4818
|
+
const e3 = [k, ...t2, O.current, L2.current, N2.current.includes("reference") || C2 ? w2 : null].filter((e4) => null != e4), n2 = u || C2 ? yo(e3, S2, !S2) : yo(e3);
|
|
4819
4819
|
return () => {
|
|
4820
4820
|
n2();
|
|
4821
4821
|
};
|
|
4822
4822
|
}
|
|
4823
|
-
}, [i,
|
|
4824
|
-
if (i || !
|
|
4823
|
+
}, [i, w2, k, u, N2, A, C2, S2]), $n(() => {
|
|
4824
|
+
if (i || !be(M2))
|
|
4825
4825
|
return;
|
|
4826
4826
|
const e2 = je(Je(M2));
|
|
4827
4827
|
queueMicrotask(() => {
|
|
@@ -4836,23 +4836,23 @@
|
|
|
4836
4836
|
let o2 = v.current.openEvent;
|
|
4837
4837
|
function r3(t3) {
|
|
4838
4838
|
let { open: n3, reason: i2, event: r4, nested: a3 } = t3;
|
|
4839
|
-
n3 && (o2 = r4), "escape-key" === i2 && m.domReference.current &&
|
|
4839
|
+
n3 && (o2 = r4), "escape-key" === i2 && m.domReference.current && Io(m.domReference.current), "hover" === i2 && "mouseleave" === r4.type && (D2.current = true), "outside-press" === i2 && (a3 ? (D2.current = false, e2 = true) : D2.current = !(Ve(r4) || Ue(r4)));
|
|
4840
4840
|
}
|
|
4841
|
-
|
|
4841
|
+
Io(n2), y.on("openchange", r3);
|
|
4842
4842
|
const a2 = t2.createElement("span");
|
|
4843
|
-
return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 &&
|
|
4843
|
+
return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 && w2 && w2.insertAdjacentElement("afterend", a2), () => {
|
|
4844
4844
|
y.off("openchange", r3);
|
|
4845
|
-
const n3 = je(t2), i2 = ze(k, n3) ||
|
|
4845
|
+
const n3 = je(t2), i2 = ze(k, n3) || I2 && lo(I2.nodesRef.current, h).some((e3) => {
|
|
4846
4846
|
var t3;
|
|
4847
4847
|
return ze(null == (t3 = e3.context) ? void 0 : t3.elements.floating, n3);
|
|
4848
4848
|
});
|
|
4849
|
-
(i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current &&
|
|
4850
|
-
const s2 = "boolean" == typeof
|
|
4849
|
+
(i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current && Io(m.domReference.current);
|
|
4850
|
+
const s2 = "boolean" == typeof P2.current ? Ao() || a2 : P2.current.current || a2;
|
|
4851
4851
|
queueMicrotask(() => {
|
|
4852
|
-
|
|
4852
|
+
P2.current && !D2.current && be(s2) && (s2 === n3 || n3 === t2.body || i2) && s2.focus({ preventScroll: e2 }), a2.remove();
|
|
4853
4853
|
});
|
|
4854
4854
|
};
|
|
4855
|
-
}, [i, k, M2,
|
|
4855
|
+
}, [i, k, M2, P2, v, m, y, I2, h, B2, w2]), o__namespace.useEffect(() => {
|
|
4856
4856
|
queueMicrotask(() => {
|
|
4857
4857
|
D2.current = false;
|
|
4858
4858
|
});
|
|
@@ -4880,25 +4880,25 @@
|
|
|
4880
4880
|
t2.disconnect();
|
|
4881
4881
|
};
|
|
4882
4882
|
}, [i, k, M2, m, N2, F, x]);
|
|
4883
|
-
const j2 = !i &&
|
|
4884
|
-
return o__namespace.createElement(o__namespace.Fragment, null, j2 && o__namespace.createElement(
|
|
4883
|
+
const j2 = !i && S2 && (!u || !C2) && (B2 || u);
|
|
4884
|
+
return o__namespace.createElement(o__namespace.Fragment, null, j2 && o__namespace.createElement(Co, { "data-type": "inside", ref: null == A ? void 0 : A.beforeInsideRef, onFocus: (e2) => {
|
|
4885
4885
|
if (u) {
|
|
4886
4886
|
const e3 = $2();
|
|
4887
4887
|
co("reference" === r2[0] ? e3[0] : e3[e3.length - 1]);
|
|
4888
4888
|
} else if (null != A && A.preserveTabOrder && A.portalNode)
|
|
4889
|
-
if (D2.current = false,
|
|
4890
|
-
const e3 =
|
|
4889
|
+
if (D2.current = false, wo(e2, A.portalNode)) {
|
|
4890
|
+
const e3 = bo(document.body, "next") || w2;
|
|
4891
4891
|
null == e3 || e3.focus();
|
|
4892
4892
|
} else {
|
|
4893
4893
|
var t2;
|
|
4894
4894
|
null == (t2 = A.beforeOutsideRef.current) || t2.focus();
|
|
4895
4895
|
}
|
|
4896
|
-
} }), !
|
|
4896
|
+
} }), !C2 && _2("start"), n, _2("end"), j2 && o__namespace.createElement(Co, { "data-type": "inside", ref: null == A ? void 0 : A.afterInsideRef, onFocus: (e2) => {
|
|
4897
4897
|
if (u)
|
|
4898
4898
|
co($2()[0]);
|
|
4899
4899
|
else if (null != A && A.preserveTabOrder && A.portalNode)
|
|
4900
|
-
if (f && (D2.current = true),
|
|
4901
|
-
const e3 =
|
|
4900
|
+
if (f && (D2.current = true), wo(e2, A.portalNode)) {
|
|
4901
|
+
const e3 = bo(document.body, "prev") || w2;
|
|
4902
4902
|
null == e3 || e3.focus();
|
|
4903
4903
|
} else {
|
|
4904
4904
|
var t2;
|
|
@@ -4907,7 +4907,7 @@
|
|
|
4907
4907
|
} }));
|
|
4908
4908
|
}
|
|
4909
4909
|
function Do(e) {
|
|
4910
|
-
return
|
|
4910
|
+
return be(e.target) && "BUTTON" === e.target.tagName;
|
|
4911
4911
|
}
|
|
4912
4912
|
function To(e) {
|
|
4913
4913
|
return Qe(e);
|
|
@@ -4943,17 +4943,17 @@
|
|
|
4943
4943
|
void 0 === e2 && (e2 = {});
|
|
4944
4944
|
const { placement: t2 = "bottom", strategy: n2 = "absolute", middleware: i2 = [], platform: r3, elements: { reference: a2, floating: s2 } = {}, transform: c2 = true, whileElementsMounted: l2, open: u2 } = e2, [d2, f2] = o__namespace.useState({ x: 0, y: 0, strategy: n2, placement: t2, middlewareData: {}, isPositioned: false }), [p2, m2] = o__namespace.useState(i2);
|
|
4945
4945
|
gn(p2, i2) || m2(i2);
|
|
4946
|
-
const [h2, g2] = o__namespace.useState(null), [y2, v2] = o__namespace.useState(null),
|
|
4947
|
-
e3 !==
|
|
4946
|
+
const [h2, g2] = o__namespace.useState(null), [y2, v2] = o__namespace.useState(null), w2 = o__namespace.useCallback((e3) => {
|
|
4947
|
+
e3 !== S2.current && (S2.current = e3, g2(e3));
|
|
4948
4948
|
}, []), k = o__namespace.useCallback((e3) => {
|
|
4949
4949
|
e3 !== N2.current && (N2.current = e3, v2(e3));
|
|
4950
|
-
}, []), x = a2 || h2,
|
|
4951
|
-
if (!
|
|
4950
|
+
}, []), x = a2 || h2, C2 = s2 || y2, S2 = o__namespace.useRef(null), N2 = o__namespace.useRef(null), E2 = o__namespace.useRef(d2), P2 = null != l2, I2 = bn(l2), A = bn(r3), O = bn(u2), L2 = o__namespace.useCallback(() => {
|
|
4951
|
+
if (!S2.current || !N2.current)
|
|
4952
4952
|
return;
|
|
4953
4953
|
const e3 = { placement: t2, strategy: n2, middleware: p2 };
|
|
4954
|
-
A.current && (e3.platform = A.current), mn(
|
|
4954
|
+
A.current && (e3.platform = A.current), mn(S2.current, N2.current, e3).then((e4) => {
|
|
4955
4955
|
const t3 = { ...e4, isPositioned: false !== O.current };
|
|
4956
|
-
D2.current && !gn(E2.current, t3) && (E2.current = t3,
|
|
4956
|
+
D2.current && !gn(E2.current, t3) && (E2.current = t3, w__namespace.flushSync(() => {
|
|
4957
4957
|
f2(t3);
|
|
4958
4958
|
}));
|
|
4959
4959
|
});
|
|
@@ -4965,13 +4965,13 @@
|
|
|
4965
4965
|
hn(() => (D2.current = true, () => {
|
|
4966
4966
|
D2.current = false;
|
|
4967
4967
|
}), []), hn(() => {
|
|
4968
|
-
if (x && (
|
|
4969
|
-
if (
|
|
4970
|
-
return
|
|
4968
|
+
if (x && (S2.current = x), C2 && (N2.current = C2), x && C2) {
|
|
4969
|
+
if (I2.current)
|
|
4970
|
+
return I2.current(x, C2, L2);
|
|
4971
4971
|
L2();
|
|
4972
4972
|
}
|
|
4973
|
-
}, [x,
|
|
4974
|
-
const T2 = o__namespace.useMemo(() => ({ reference:
|
|
4973
|
+
}, [x, C2, L2, I2, P2]);
|
|
4974
|
+
const T2 = o__namespace.useMemo(() => ({ reference: S2, floating: N2, setReference: w2, setFloating: k }), [w2, k]), R2 = o__namespace.useMemo(() => ({ reference: x, floating: C2 }), [x, C2]), B2 = o__namespace.useMemo(() => {
|
|
4975
4975
|
const e3 = { position: n2, left: 0, top: 0 };
|
|
4976
4976
|
if (!R2.floating)
|
|
4977
4977
|
return e3;
|
|
@@ -5024,21 +5024,21 @@
|
|
|
5024
5024
|
}
|
|
5025
5025
|
}
|
|
5026
5026
|
function Vo(e, t) {
|
|
5027
|
-
return Wo(t, e === En || e ===
|
|
5027
|
+
return Wo(t, e === En || e === Pn, e === In || e === An);
|
|
5028
5028
|
}
|
|
5029
5029
|
function Uo(e, t, n) {
|
|
5030
|
-
return Wo(t, e ===
|
|
5030
|
+
return Wo(t, e === Pn, n ? e === In : e === An) || "Enter" === e || " " === e || "" === e;
|
|
5031
5031
|
}
|
|
5032
5032
|
function Ko(e, t, n) {
|
|
5033
|
-
return Wo(t, n ? e === An : e ===
|
|
5033
|
+
return Wo(t, n ? e === An : e === In, e === En);
|
|
5034
5034
|
}
|
|
5035
5035
|
function Go(e, t) {
|
|
5036
5036
|
const { open: n, onOpenChange: i, elements: r2 } = e, { listRef: a, activeIndex: s, onNavigate: c = () => {
|
|
5037
|
-
}, enabled: l = true, selectedIndex: u = null, allowEscape: d = false, loop: f = false, nested: p = false, rtl: m = false, virtual: h = false, focusItemOnOpen: g = "auto", focusItemOnHover: y = true, openOnArrowKeyDown: v = true, disabledIndices:
|
|
5038
|
-
"production" !== process.env.NODE_ENV && (d && (f || Jn("`useListNavigation` looping must be enabled to allow escaping."), h || Jn("`useListNavigation` must be virtual to allow escaping.")), "vertical" ===
|
|
5039
|
-
const E2 = io(Eo(r2.floating)),
|
|
5037
|
+
}, enabled: l = true, selectedIndex: u = null, allowEscape: d = false, loop: f = false, nested: p = false, rtl: m = false, virtual: h = false, focusItemOnOpen: g = "auto", focusItemOnHover: y = true, openOnArrowKeyDown: v = true, disabledIndices: b, orientation: w2 = "vertical", cols: k = 1, scrollItemIntoView: x = true, virtualItemRef: C2, itemSizes: S2, dense: N2 = false } = t;
|
|
5038
|
+
"production" !== process.env.NODE_ENV && (d && (f || Jn("`useListNavigation` looping must be enabled to allow escaping."), h || Jn("`useListNavigation` must be virtual to allow escaping.")), "vertical" === w2 && k > 1 && Jn("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
|
|
5039
|
+
const E2 = io(Eo(r2.floating)), P2 = Zn(), I2 = eo(), A = Nn(c), O = et(r2.domReference), L2 = o__namespace.useRef(g), D2 = o__namespace.useRef(null != u ? u : -1), T2 = o__namespace.useRef(null), R2 = o__namespace.useRef(true), B2 = o__namespace.useRef(A), M2 = o__namespace.useRef(!!r2.floating), F = o__namespace.useRef(n), $2 = o__namespace.useRef(false), _2 = o__namespace.useRef(false), j2 = io(b), z2 = io(n), H2 = io(x), W2 = io(u), [V2, U2] = o__namespace.useState(), [K2, G2] = o__namespace.useState(), q2 = Nn(function(e2, t2, n2) {
|
|
5040
5040
|
function o2(e3) {
|
|
5041
|
-
h ? (U2(e3.id), null ==
|
|
5041
|
+
h ? (U2(e3.id), null == I2 || I2.events.emit("virtualfocus", e3), C2 && (C2.current = e3)) : co(e3, { preventScroll: true, sync: !(!He().toLowerCase().startsWith("mac") || navigator.maxTouchPoints || !Ke()) && (Ho || $2.current) });
|
|
5042
5042
|
}
|
|
5043
5043
|
void 0 === n2 && (n2 = false);
|
|
5044
5044
|
const i2 = e2.current[t2.current];
|
|
@@ -5071,27 +5071,27 @@
|
|
|
5071
5071
|
}
|
|
5072
5072
|
e2++;
|
|
5073
5073
|
} else
|
|
5074
|
-
D2.current = null == T2.current || Uo(T2.current,
|
|
5074
|
+
D2.current = null == T2.current || Uo(T2.current, w2, m) || p ? Dn(a, j2.current) : Tn(a, j2.current), T2.current = null, A(D2.current);
|
|
5075
5075
|
};
|
|
5076
5076
|
t2();
|
|
5077
5077
|
}
|
|
5078
5078
|
} else
|
|
5079
5079
|
Ln(a, s) || (D2.current = s, q2(a, D2, _2.current), _2.current = false);
|
|
5080
|
-
}, [l, n, r2.floating, s, W2, p, a,
|
|
5080
|
+
}, [l, n, r2.floating, s, W2, p, a, w2, m, A, q2, j2]), $n(() => {
|
|
5081
5081
|
var e2;
|
|
5082
|
-
if (!l || r2.floating || !
|
|
5082
|
+
if (!l || r2.floating || !I2 || h || !M2.current)
|
|
5083
5083
|
return;
|
|
5084
|
-
const t2 =
|
|
5084
|
+
const t2 = I2.nodesRef.current, n2 = null == (e2 = t2.find((e3) => e3.id === P2)) || null == (e2 = e2.context) ? void 0 : e2.elements.floating, o2 = je(Je(r2.floating)), i2 = t2.some((e3) => e3.context && ze(e3.context.elements.floating, o2));
|
|
5085
5085
|
n2 && !i2 && R2.current && n2.focus({ preventScroll: true });
|
|
5086
|
-
}, [l, r2.floating,
|
|
5087
|
-
if (l &&
|
|
5088
|
-
return
|
|
5089
|
-
|
|
5086
|
+
}, [l, r2.floating, I2, P2, h]), $n(() => {
|
|
5087
|
+
if (l && I2 && h && !P2)
|
|
5088
|
+
return I2.events.on("virtualfocus", e2), () => {
|
|
5089
|
+
I2.events.off("virtualfocus", e2);
|
|
5090
5090
|
};
|
|
5091
5091
|
function e2(e3) {
|
|
5092
|
-
G2(e3.id),
|
|
5092
|
+
G2(e3.id), C2 && (C2.current = e3);
|
|
5093
5093
|
}
|
|
5094
|
-
}, [l,
|
|
5094
|
+
}, [l, I2, h, P2, C2]), $n(() => {
|
|
5095
5095
|
B2.current = A, M2.current = !!r2.floating;
|
|
5096
5096
|
}), $n(() => {
|
|
5097
5097
|
n || (T2.current = null);
|
|
@@ -5123,11 +5123,11 @@
|
|
|
5123
5123
|
return;
|
|
5124
5124
|
if (!z2.current && e2.currentTarget === E2.current)
|
|
5125
5125
|
return;
|
|
5126
|
-
if (p && Ko(e2.key,
|
|
5127
|
-
return Ze(e2), i(false, e2.nativeEvent, "list-navigation"), void (
|
|
5128
|
-
const t2 = D2.current, o2 = Dn(a,
|
|
5126
|
+
if (p && Ko(e2.key, w2, m))
|
|
5127
|
+
return Ze(e2), i(false, e2.nativeEvent, "list-navigation"), void (be(r2.domReference) && (h ? null == I2 || I2.events.emit("virtualfocus", r2.domReference) : r2.domReference.focus()));
|
|
5128
|
+
const t2 = D2.current, o2 = Dn(a, b), s2 = Tn(a, b);
|
|
5129
5129
|
if (O || ("Home" === e2.key && (Ze(e2), D2.current = o2, A(D2.current)), "End" === e2.key && (Ze(e2), D2.current = s2, A(D2.current))), k > 1) {
|
|
5130
|
-
const t3 =
|
|
5130
|
+
const t3 = S2 || Array.from({ length: a.current.length }, () => ({ width: 1, height: 1 })), n2 = function(e3, t4, n3) {
|
|
5131
5131
|
const o3 = [];
|
|
5132
5132
|
let i3 = 0;
|
|
5133
5133
|
return e3.forEach((e4, r4) => {
|
|
@@ -5145,7 +5145,7 @@
|
|
|
5145
5145
|
}), c3 = true) : i3++;
|
|
5146
5146
|
}
|
|
5147
5147
|
}), [...o3];
|
|
5148
|
-
}(t3, k, N2), i2 = n2.findIndex((e3) => null != e3 && !Fn(a.current, e3,
|
|
5148
|
+
}(t3, k, N2), i2 = n2.findIndex((e3) => null != e3 && !Fn(a.current, e3, b)), r3 = n2.reduce((e3, t4, n3) => null == t4 || Fn(a.current, t4, b) ? e3 : n3, -1), c2 = n2[function(e3, t4) {
|
|
5149
5149
|
let { event: n3, orientation: o3, loop: i3, rtl: r4, cols: a2, disabledIndices: s3, minIndex: c3, maxIndex: l2, prevIndex: u2, stopEvent: d2 = false } = t4, f2 = u2;
|
|
5150
5150
|
if (n3.key === En) {
|
|
5151
5151
|
if (d2 && Ze(n3), -1 === u2)
|
|
@@ -5156,43 +5156,43 @@
|
|
|
5156
5156
|
}
|
|
5157
5157
|
Ln(e3, f2) && (f2 = u2);
|
|
5158
5158
|
}
|
|
5159
|
-
if (n3.key ===
|
|
5159
|
+
if (n3.key === Pn && (d2 && Ze(n3), -1 === u2 ? f2 = c3 : (f2 = Rn(e3, { startingIndex: u2, amount: a2, disabledIndices: s3 }), i3 && u2 + a2 > l2 && (f2 = Rn(e3, { startingIndex: u2 % a2 - a2, amount: a2, disabledIndices: s3 }))), Ln(e3, f2) && (f2 = u2)), "both" === o3) {
|
|
5160
5160
|
const t5 = it(u2 / a2);
|
|
5161
|
-
n3.key === (r4 ?
|
|
5161
|
+
n3.key === (r4 ? In : An) && (d2 && Ze(n3), u2 % a2 !== a2 - 1 ? (f2 = Rn(e3, { startingIndex: u2, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2)), n3.key === (r4 ? An : In) && (d2 && Ze(n3), u2 % a2 !== 0 ? (f2 = Rn(e3, { startingIndex: u2, decrement: true, disabledIndices: s3 }), i3 && On(f2, a2, t5) && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 }))) : i3 && (f2 = Rn(e3, { startingIndex: u2 + (a2 - u2 % a2), decrement: true, disabledIndices: s3 })), On(f2, a2, t5) && (f2 = u2));
|
|
5162
5162
|
const o4 = it(l2 / a2) === t5;
|
|
5163
|
-
Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An :
|
|
5163
|
+
Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An : In) ? l2 : Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }) : u2);
|
|
5164
5164
|
}
|
|
5165
5165
|
return f2;
|
|
5166
|
-
}({ current: n2.map((e3) => null != e3 ? a.current[e3] : null) }, { event: e2, orientation:
|
|
5167
|
-
if (null != c2 && (D2.current = c2, A(D2.current)), "both" ===
|
|
5166
|
+
}({ current: n2.map((e3) => null != e3 ? a.current[e3] : null) }, { event: e2, orientation: w2, loop: f, rtl: m, cols: k, disabledIndices: Mn([...b || a.current.map((e3, t4) => Fn(a.current, t4) ? t4 : void 0), void 0], n2), minIndex: i2, maxIndex: r3, prevIndex: Bn(D2.current > s2 ? o2 : D2.current, t3, n2, k, e2.key === Pn ? "bl" : e2.key === (m ? In : An) ? "tr" : "tl"), stopEvent: true })];
|
|
5167
|
+
if (null != c2 && (D2.current = c2, A(D2.current)), "both" === w2)
|
|
5168
5168
|
return;
|
|
5169
5169
|
}
|
|
5170
|
-
if (Vo(e2.key,
|
|
5170
|
+
if (Vo(e2.key, w2)) {
|
|
5171
5171
|
if (Ze(e2), n && !h && je(e2.currentTarget.ownerDocument) === e2.currentTarget)
|
|
5172
|
-
return D2.current = Uo(e2.key,
|
|
5173
|
-
Uo(e2.key,
|
|
5172
|
+
return D2.current = Uo(e2.key, w2, m) ? o2 : s2, void A(D2.current);
|
|
5173
|
+
Uo(e2.key, w2, m) ? D2.current = f ? t2 >= s2 ? d && t2 !== a.current.length ? -1 : o2 : Rn(a, { startingIndex: t2, disabledIndices: b }) : Math.min(s2, Rn(a, { startingIndex: t2, disabledIndices: b })) : D2.current = f ? t2 <= o2 ? d && -1 !== t2 ? a.current.length : s2 : Rn(a, { startingIndex: t2, decrement: true, disabledIndices: b }) : Math.max(o2, Rn(a, { startingIndex: t2, decrement: true, disabledIndices: b })), Ln(a, D2.current) ? A(null) : A(D2.current);
|
|
5174
5174
|
}
|
|
5175
|
-
}), Q2 = o__namespace.useMemo(() => h && n && J2 && { "aria-activedescendant": K2 || V2 }, [h, n, J2, K2, V2]), Z2 = o__namespace.useMemo(() => ({ "aria-orientation": "both" ===
|
|
5175
|
+
}), Q2 = o__namespace.useMemo(() => h && n && J2 && { "aria-activedescendant": K2 || V2 }, [h, n, J2, K2, V2]), Z2 = o__namespace.useMemo(() => ({ "aria-orientation": "both" === w2 ? void 0 : w2, ...!et(r2.domReference) && Q2, onKeyDown: X2, onPointerMove() {
|
|
5176
5176
|
R2.current = true;
|
|
5177
|
-
} }), [Q2, X2, r2.domReference,
|
|
5177
|
+
} }), [Q2, X2, r2.domReference, w2]), ee2 = o__namespace.useMemo(() => {
|
|
5178
5178
|
function e2(e3) {
|
|
5179
5179
|
"auto" === g && Ve(e3.nativeEvent) && (L2.current = true);
|
|
5180
5180
|
}
|
|
5181
5181
|
return { ...Q2, onKeyDown(e3) {
|
|
5182
5182
|
R2.current = false;
|
|
5183
5183
|
const t2 = e3.key.startsWith("Arrow"), o2 = ["Home", "End"].includes(e3.key), r3 = t2 || o2, s2 = function(e4, t3, n2) {
|
|
5184
|
-
return Wo(t3, n2 ? e4 ===
|
|
5185
|
-
}(e3.key,
|
|
5184
|
+
return Wo(t3, n2 ? e4 === In : e4 === An, e4 === Pn);
|
|
5185
|
+
}(e3.key, w2, m), c2 = Ko(e3.key, w2, m), l2 = Vo(e3.key, w2), d2 = (p ? s2 : l2) || "Enter" === e3.key || "" === e3.key.trim();
|
|
5186
5186
|
if (h && n) {
|
|
5187
|
-
const t3 = null ==
|
|
5187
|
+
const t3 = null == I2 ? void 0 : I2.nodesRef.current.find((e4) => null == e4.parentId), n2 = I2 && t3 ? function(e4, t4) {
|
|
5188
5188
|
let n3, o3 = -1;
|
|
5189
5189
|
return function t5(i2, r4) {
|
|
5190
5190
|
r4 > o3 && (n3 = i2, o3 = r4), lo(e4, i2).forEach((e5) => {
|
|
5191
5191
|
t5(e5.id, r4 + 1);
|
|
5192
5192
|
});
|
|
5193
5193
|
}(t4, 0), e4.find((e5) => e5.id === n3);
|
|
5194
|
-
}(
|
|
5195
|
-
if (r3 && n2 &&
|
|
5194
|
+
}(I2.nodesRef.current, t3.id) : null;
|
|
5195
|
+
if (r3 && n2 && C2) {
|
|
5196
5196
|
const t4 = new KeyboardEvent("keydown", { key: e3.key, bubbles: true });
|
|
5197
5197
|
if (s2 || c2) {
|
|
5198
5198
|
var f2, g2;
|
|
@@ -5213,7 +5213,7 @@
|
|
|
5213
5213
|
}, onPointerDown: function(e3) {
|
|
5214
5214
|
L2.current = g, "auto" === g && Ue(e3.nativeEvent) && (L2.current = true);
|
|
5215
5215
|
}, onMouseDown: e2, onClick: e2 };
|
|
5216
|
-
}, [V2, Q2, X2, j2, g, a, p, A, i, n, v,
|
|
5216
|
+
}, [V2, Q2, X2, j2, g, a, p, A, i, n, v, w2, m, u, I2, h, C2]);
|
|
5217
5217
|
return o__namespace.useMemo(() => l ? { reference: ee2, floating: Z2, item: Y2 } : {}, [l, ee2, Z2, Y2]);
|
|
5218
5218
|
}
|
|
5219
5219
|
const qo = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", false]]);
|
|
@@ -5239,40 +5239,40 @@
|
|
|
5239
5239
|
}
|
|
5240
5240
|
if (clearTimeout(i), !d.domReference || !d.floating || null == u || null == n2 || null == l2)
|
|
5241
5241
|
return;
|
|
5242
|
-
const { clientX: g, clientY: y } = e3, v = [g, y],
|
|
5242
|
+
const { clientX: g, clientY: y } = e3, v = [g, y], b = Xe(e3), w2 = "mouseleave" === e3.type, k = ze(d.floating, b), x = ze(d.domReference, b), C2 = d.domReference.getBoundingClientRect(), S2 = d.floating.getBoundingClientRect(), N2 = u.split("-")[0], E2 = n2 > S2.right - S2.width / 2, P2 = l2 > S2.bottom - S2.height / 2, I2 = function(e4, t2) {
|
|
5243
5243
|
return e4[0] >= t2.x && e4[0] <= t2.x + t2.width && e4[1] >= t2.y && e4[1] <= t2.y + t2.height;
|
|
5244
|
-
}(v,
|
|
5245
|
-
if (k && (r2 = true, !
|
|
5244
|
+
}(v, C2), A = S2.width > C2.width, O = S2.height > C2.height, L2 = (A ? C2 : S2).left, D2 = (A ? C2 : S2).right, T2 = (O ? C2 : S2).top, R2 = (O ? C2 : S2).bottom;
|
|
5245
|
+
if (k && (r2 = true, !w2))
|
|
5246
5246
|
return;
|
|
5247
|
-
if (x && (r2 = false), x && !
|
|
5247
|
+
if (x && (r2 = false), x && !w2)
|
|
5248
5248
|
return void (r2 = true);
|
|
5249
|
-
if (
|
|
5249
|
+
if (w2 && ve(e3.relatedTarget) && ze(d.floating, e3.relatedTarget))
|
|
5250
5250
|
return;
|
|
5251
5251
|
if (m && lo(m.nodesRef.current, p).some((e4) => {
|
|
5252
5252
|
let { context: t2 } = e4;
|
|
5253
5253
|
return null == t2 ? void 0 : t2.open;
|
|
5254
5254
|
}))
|
|
5255
5255
|
return;
|
|
5256
|
-
if ("top" === N2 && l2 >=
|
|
5256
|
+
if ("top" === N2 && l2 >= C2.bottom - 1 || "bottom" === N2 && l2 <= C2.top + 1 || "left" === N2 && n2 >= C2.right - 1 || "right" === N2 && n2 <= C2.left + 1)
|
|
5257
5257
|
return h();
|
|
5258
5258
|
let B2 = [];
|
|
5259
5259
|
switch (N2) {
|
|
5260
5260
|
case "top":
|
|
5261
|
-
B2 = [[L2,
|
|
5261
|
+
B2 = [[L2, C2.top + 1], [L2, S2.bottom - 1], [D2, S2.bottom - 1], [D2, C2.top + 1]];
|
|
5262
5262
|
break;
|
|
5263
5263
|
case "bottom":
|
|
5264
|
-
B2 = [[L2,
|
|
5264
|
+
B2 = [[L2, S2.top + 1], [L2, C2.bottom - 1], [D2, C2.bottom - 1], [D2, S2.top + 1]];
|
|
5265
5265
|
break;
|
|
5266
5266
|
case "left":
|
|
5267
|
-
B2 = [[
|
|
5267
|
+
B2 = [[S2.right - 1, R2], [S2.right - 1, T2], [C2.left + 1, T2], [C2.left + 1, R2]];
|
|
5268
5268
|
break;
|
|
5269
5269
|
case "right":
|
|
5270
|
-
B2 = [[
|
|
5270
|
+
B2 = [[C2.right - 1, R2], [C2.right - 1, T2], [S2.left + 1, T2], [S2.left + 1, R2]];
|
|
5271
5271
|
}
|
|
5272
5272
|
if (!Jo([g, y], B2)) {
|
|
5273
|
-
if (r2 && !
|
|
5273
|
+
if (r2 && !I2)
|
|
5274
5274
|
return h();
|
|
5275
|
-
if (!
|
|
5275
|
+
if (!w2 && o2) {
|
|
5276
5276
|
const t2 = function(e4, t3) {
|
|
5277
5277
|
const n3 = performance.now(), o3 = n3 - c;
|
|
5278
5278
|
if (null === a || null === s || 0 === o3)
|
|
@@ -5287,15 +5287,15 @@
|
|
|
5287
5287
|
let [n3, o3] = e4;
|
|
5288
5288
|
switch (N2) {
|
|
5289
5289
|
case "top":
|
|
5290
|
-
return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], ...[[
|
|
5290
|
+
return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 + t + 1], ...[[S2.left, E2 || A ? S2.bottom - t : S2.top], [S2.right, E2 ? A ? S2.bottom - t : S2.top : S2.bottom - t]]];
|
|
5291
5291
|
case "bottom":
|
|
5292
|
-
return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], ...[[
|
|
5292
|
+
return [[A ? n3 + t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], [A ? n3 - t / 2 : E2 ? n3 + 4 * t : n3 - 4 * t, o3 - t], ...[[S2.left, E2 || A ? S2.top + t : S2.bottom], [S2.right, E2 ? A ? S2.top + t : S2.bottom : S2.top + t]]];
|
|
5293
5293
|
case "left": {
|
|
5294
|
-
const e5 = [n3 + t + 1, O ? o3 + t / 2 :
|
|
5295
|
-
return [...[[
|
|
5294
|
+
const e5 = [n3 + t + 1, O ? o3 + t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], i2 = [n3 + t + 1, O ? o3 - t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t];
|
|
5295
|
+
return [...[[P2 || O ? S2.right - t : S2.left, S2.top], [P2 ? O ? S2.right - t : S2.left : S2.right - t, S2.bottom]], e5, i2];
|
|
5296
5296
|
}
|
|
5297
5297
|
case "right":
|
|
5298
|
-
return [[n3 - t, O ? o3 + t / 2 :
|
|
5298
|
+
return [[n3 - t, O ? o3 + t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], [n3 - t, O ? o3 - t / 2 : P2 ? o3 + 4 * t : o3 - 4 * t], ...[[P2 || O ? S2.left + t : S2.right, S2.top], [P2 ? O ? S2.left + t : S2.right : S2.left + t, S2.bottom]]];
|
|
5299
5299
|
}
|
|
5300
5300
|
}([n2, l2])) ? !r2 && o2 && (i = window.setTimeout(h, 40)) : h();
|
|
5301
5301
|
}
|
|
@@ -5320,7 +5320,7 @@
|
|
|
5320
5320
|
});
|
|
5321
5321
|
Qo.displayName = "DropdownMenuItem";
|
|
5322
5322
|
const Zo = o.forwardRef(({ className: n, variant: i = "default", icon: r2, iconRight: a, text: s = "", disabled: p, children: m, ...h }, g) => {
|
|
5323
|
-
const [y, v] = o.useState(false), [
|
|
5323
|
+
const [y, v] = o.useState(false), [b, w2] = o.useState(false), [k, x] = o.useState(null), C2 = o.useRef([]), S2 = o.useRef([]), N2 = o.useContext(Xo), P2 = eo(), I2 = function() {
|
|
5324
5324
|
const e = Gn(), t = eo(), n2 = Zn();
|
|
5325
5325
|
return $n(() => {
|
|
5326
5326
|
const o2 = { id: e, parentId: n2 };
|
|
@@ -5328,12 +5328,12 @@
|
|
|
5328
5328
|
null == t || t.removeNode(o2);
|
|
5329
5329
|
};
|
|
5330
5330
|
}, [t, e, n2]), e;
|
|
5331
|
-
}(), A = Zn(), O = Hn(), L2 = null != A, { floatingStyles: D2, refs: T2, context: R2 } = $o({ nodeId:
|
|
5331
|
+
}(), A = Zn(), O = Hn(), L2 = null != A, { floatingStyles: D2, refs: T2, context: R2 } = $o({ nodeId: I2, open: y, onOpenChange: v, placement: L2 ? "right-start" : "bottom-start", middleware: [(B2 = { mainAxis: L2 ? 0 : 4, alignmentAxis: L2 ? -4 : 0 }, { ...dn(B2), options: [B2, M2] }), kn(), wn()], whileElementsMounted: un });
|
|
5332
5332
|
var B2, M2;
|
|
5333
5333
|
const F = function(e, t) {
|
|
5334
5334
|
void 0 === t && (t = {});
|
|
5335
|
-
const { open: n2, onOpenChange: i2, dataRef: r3, events: a2, elements: s2 } = e, { enabled: c = true, delay: l = 0, handleClose: u = null, mouseOnly: d = false, restMs: f = 0, move: p2 = true } = t, m2 = eo(), h2 = Zn(), g2 = io(u), y2 = io(l), v2 = io(n2),
|
|
5336
|
-
}), E2 = o__namespace.useRef(false),
|
|
5335
|
+
const { open: n2, onOpenChange: i2, dataRef: r3, events: a2, elements: s2 } = e, { enabled: c = true, delay: l = 0, handleClose: u = null, mouseOnly: d = false, restMs: f = 0, move: p2 = true } = t, m2 = eo(), h2 = Zn(), g2 = io(u), y2 = io(l), v2 = io(n2), b2 = o__namespace.useRef(), w3 = o__namespace.useRef(-1), k2 = o__namespace.useRef(), x2 = o__namespace.useRef(-1), C3 = o__namespace.useRef(true), S3 = o__namespace.useRef(false), N3 = o__namespace.useRef(() => {
|
|
5336
|
+
}), E2 = o__namespace.useRef(false), P3 = o__namespace.useCallback(() => {
|
|
5337
5337
|
var e2;
|
|
5338
5338
|
const t2 = null == (e2 = r3.current.openEvent) ? void 0 : e2.type;
|
|
5339
5339
|
return (null == t2 ? void 0 : t2.includes("mouse")) && "mousedown" !== t2;
|
|
@@ -5345,7 +5345,7 @@
|
|
|
5345
5345
|
};
|
|
5346
5346
|
function e2(e3) {
|
|
5347
5347
|
let { open: t2 } = e3;
|
|
5348
|
-
t2 || (clearTimeout(
|
|
5348
|
+
t2 || (clearTimeout(w3.current), clearTimeout(x2.current), C3.current = true, E2.current = false);
|
|
5349
5349
|
}
|
|
5350
5350
|
}, [c, a2]), o__namespace.useEffect(() => {
|
|
5351
5351
|
if (!c)
|
|
@@ -5355,23 +5355,23 @@
|
|
|
5355
5355
|
if (!n2)
|
|
5356
5356
|
return;
|
|
5357
5357
|
function e2(e3) {
|
|
5358
|
-
|
|
5358
|
+
P3() && i2(false, e3, "hover");
|
|
5359
5359
|
}
|
|
5360
5360
|
const t2 = Je(s2.floating).documentElement;
|
|
5361
5361
|
return t2.addEventListener("mouseleave", e2), () => {
|
|
5362
5362
|
t2.removeEventListener("mouseleave", e2);
|
|
5363
5363
|
};
|
|
5364
|
-
}, [s2.floating, n2, i2, c, g2,
|
|
5365
|
-
const
|
|
5364
|
+
}, [s2.floating, n2, i2, c, g2, P3]);
|
|
5365
|
+
const I3 = o__namespace.useCallback(function(e2, t2, n3) {
|
|
5366
5366
|
void 0 === t2 && (t2 = true), void 0 === n3 && (n3 = "hover");
|
|
5367
|
-
const o2 = ao(y2.current, "close",
|
|
5368
|
-
o2 && !k2.current ? (clearTimeout(
|
|
5367
|
+
const o2 = ao(y2.current, "close", b2.current);
|
|
5368
|
+
o2 && !k2.current ? (clearTimeout(w3.current), w3.current = window.setTimeout(() => i2(false, e2, n3), o2)) : t2 && (clearTimeout(w3.current), i2(false, e2, n3));
|
|
5369
5369
|
}, [y2, i2]), A2 = Nn(() => {
|
|
5370
5370
|
N3.current(), k2.current = void 0;
|
|
5371
5371
|
}), O2 = Nn(() => {
|
|
5372
|
-
if (
|
|
5372
|
+
if (S3.current) {
|
|
5373
5373
|
const e2 = Je(s2.floating).body;
|
|
5374
|
-
e2.style.pointerEvents = "", e2.removeAttribute(ro),
|
|
5374
|
+
e2.style.pointerEvents = "", e2.removeAttribute(ro), S3.current = false;
|
|
5375
5375
|
}
|
|
5376
5376
|
}), L3 = Nn(() => !!r3.current.openEvent && ["click", "mousedown"].includes(r3.current.openEvent.type));
|
|
5377
5377
|
o__namespace.useEffect(() => {
|
|
@@ -5384,10 +5384,10 @@
|
|
|
5384
5384
|
};
|
|
5385
5385
|
}
|
|
5386
5386
|
function t2(e3) {
|
|
5387
|
-
if (clearTimeout(
|
|
5387
|
+
if (clearTimeout(w3.current), C3.current = false, d && !qe(b2.current) || f > 0 && !ao(y2.current, "open"))
|
|
5388
5388
|
return;
|
|
5389
|
-
const t3 = ao(y2.current, "open",
|
|
5390
|
-
t3 ?
|
|
5389
|
+
const t3 = ao(y2.current, "open", b2.current);
|
|
5390
|
+
t3 ? w3.current = window.setTimeout(() => {
|
|
5391
5391
|
v2.current || i2(true, e3, "hover");
|
|
5392
5392
|
}, t3) : n2 || i2(true, e3, "hover");
|
|
5393
5393
|
}
|
|
@@ -5397,25 +5397,25 @@
|
|
|
5397
5397
|
N3.current();
|
|
5398
5398
|
const t3 = Je(s2.floating);
|
|
5399
5399
|
if (clearTimeout(x2.current), E2.current = false, g2.current && r3.current.floatingContext) {
|
|
5400
|
-
n2 || clearTimeout(
|
|
5401
|
-
O2(), A2(), L3() ||
|
|
5400
|
+
n2 || clearTimeout(w3.current), k2.current = g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
|
|
5401
|
+
O2(), A2(), L3() || I3(e3, true, "safe-polygon");
|
|
5402
5402
|
} });
|
|
5403
5403
|
const o3 = k2.current;
|
|
5404
5404
|
return t3.addEventListener("mousemove", o3), void (N3.current = () => {
|
|
5405
5405
|
t3.removeEventListener("mousemove", o3);
|
|
5406
5406
|
});
|
|
5407
5407
|
}
|
|
5408
|
-
("touch" !==
|
|
5408
|
+
("touch" !== b2.current || !ze(s2.floating, e3.relatedTarget)) && I3(e3);
|
|
5409
5409
|
}
|
|
5410
5410
|
function a3(e3) {
|
|
5411
5411
|
L3() || r3.current.floatingContext && (null == g2.current || g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
|
|
5412
|
-
O2(), A2(), L3() ||
|
|
5412
|
+
O2(), A2(), L3() || I3(e3);
|
|
5413
5413
|
} })(e3));
|
|
5414
5414
|
}
|
|
5415
|
-
}, [s2, c, e, d, f, p2,
|
|
5415
|
+
}, [s2, c, e, d, f, p2, I3, A2, O2, i2, n2, v2, m2, y2, g2, r3, L3]), $n(() => {
|
|
5416
5416
|
var e2;
|
|
5417
|
-
if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents &&
|
|
5418
|
-
|
|
5417
|
+
if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents && P3()) {
|
|
5418
|
+
S3.current = true;
|
|
5419
5419
|
const e3 = s2.floating;
|
|
5420
5420
|
if (ve(s2.domReference) && e3) {
|
|
5421
5421
|
var t2;
|
|
@@ -5427,27 +5427,27 @@
|
|
|
5427
5427
|
};
|
|
5428
5428
|
}
|
|
5429
5429
|
}
|
|
5430
|
-
}, [c, n2, h2, s2, m2, g2,
|
|
5431
|
-
n2 || (
|
|
5430
|
+
}, [c, n2, h2, s2, m2, g2, P3]), $n(() => {
|
|
5431
|
+
n2 || (b2.current = void 0, E2.current = false, A2(), O2());
|
|
5432
5432
|
}, [n2, A2, O2]), o__namespace.useEffect(() => () => {
|
|
5433
|
-
A2(), clearTimeout(
|
|
5433
|
+
A2(), clearTimeout(w3.current), clearTimeout(x2.current), O2();
|
|
5434
5434
|
}, [c, s2.domReference, A2, O2]);
|
|
5435
5435
|
const D3 = o__namespace.useMemo(() => {
|
|
5436
5436
|
function e2(e3) {
|
|
5437
|
-
|
|
5437
|
+
b2.current = e3.pointerType;
|
|
5438
5438
|
}
|
|
5439
5439
|
return { onPointerDown: e2, onPointerEnter: e2, onMouseMove(e3) {
|
|
5440
5440
|
const { nativeEvent: t2 } = e3;
|
|
5441
5441
|
function o2() {
|
|
5442
|
-
|
|
5442
|
+
C3.current || v2.current || i2(true, t2, "hover");
|
|
5443
5443
|
}
|
|
5444
|
-
d && !qe(
|
|
5444
|
+
d && !qe(b2.current) || n2 || 0 === f || E2.current && e3.movementX ** 2 + e3.movementY ** 2 < 2 || (clearTimeout(x2.current), "touch" === b2.current ? o2() : (E2.current = true, x2.current = window.setTimeout(o2, f)));
|
|
5445
5445
|
} };
|
|
5446
5446
|
}, [d, i2, n2, v2, f]), T3 = o__namespace.useMemo(() => ({ onMouseEnter() {
|
|
5447
|
-
clearTimeout(
|
|
5447
|
+
clearTimeout(w3.current);
|
|
5448
5448
|
}, onMouseLeave(e2) {
|
|
5449
|
-
L3() ||
|
|
5450
|
-
} }), [
|
|
5449
|
+
L3() || I3(e2.nativeEvent, false);
|
|
5450
|
+
} }), [I3, L3]);
|
|
5451
5451
|
return o__namespace.useMemo(() => c ? { reference: D3, floating: T3 } : {}, [c, D3, T3]);
|
|
5452
5452
|
}(R2, { enabled: L2, delay: { open: 75 }, handleClose: Yo({ blockPointerEvents: true }) }), _2 = function(e, t) {
|
|
5453
5453
|
void 0 === t && (t = {});
|
|
@@ -5485,7 +5485,7 @@
|
|
|
5485
5485
|
return o__namespace.useMemo(() => a2 ? { reference: d, floating: f, item: p2 } : {}, [a2, d, f, p2]);
|
|
5486
5486
|
}(R2, { role: "menu" }), z2 = function(e, t) {
|
|
5487
5487
|
void 0 === t && (t = {});
|
|
5488
|
-
const { open: n2, onOpenChange: i2, elements: r3, dataRef: a2 } = e, { enabled: s2 = true, escapeKey: c = true, outsidePress: l = true, outsidePressEvent: u = "pointerdown", referencePress: d = false, referencePressEvent: f = "pointerdown", ancestorScroll: p2 = false, bubbles: m2, capture: h2 } = t, g2 = eo(), y2 = Nn("function" == typeof l ? l : () => false), v2 = "function" == typeof l ? y2 : l,
|
|
5488
|
+
const { open: n2, onOpenChange: i2, elements: r3, dataRef: a2 } = e, { enabled: s2 = true, escapeKey: c = true, outsidePress: l = true, outsidePressEvent: u = "pointerdown", referencePress: d = false, referencePressEvent: f = "pointerdown", ancestorScroll: p2 = false, bubbles: m2, capture: h2 } = t, g2 = eo(), y2 = Nn("function" == typeof l ? l : () => false), v2 = "function" == typeof l ? y2 : l, b2 = o__namespace.useRef(false), w3 = o__namespace.useRef(false), { escapeKey: k2, outsidePress: x2 } = Mo(m2), { escapeKey: C3, outsidePress: S3 } = Mo(h2), N3 = o__namespace.useRef(false), E2 = Nn((e2) => {
|
|
5489
5489
|
var t2;
|
|
5490
5490
|
if (!n2 || !s2 || !c || "Escape" !== e2.key)
|
|
5491
5491
|
return;
|
|
@@ -5503,19 +5503,19 @@
|
|
|
5503
5503
|
i2(false, function(e3) {
|
|
5504
5504
|
return "nativeEvent" in e3;
|
|
5505
5505
|
}(e2) ? e2.nativeEvent : e2, "escape-key");
|
|
5506
|
-
}),
|
|
5506
|
+
}), P3 = Nn((e2) => {
|
|
5507
5507
|
var t2;
|
|
5508
5508
|
const n3 = () => {
|
|
5509
5509
|
var t3;
|
|
5510
5510
|
E2(e2), null == (t3 = Xe(e2)) || t3.removeEventListener("keydown", n3);
|
|
5511
5511
|
};
|
|
5512
5512
|
null == (t2 = Xe(e2)) || t2.addEventListener("keydown", n3);
|
|
5513
|
-
}),
|
|
5513
|
+
}), I3 = Nn((e2) => {
|
|
5514
5514
|
var t2;
|
|
5515
|
-
const n3 =
|
|
5516
|
-
|
|
5517
|
-
const o2 =
|
|
5518
|
-
if (
|
|
5515
|
+
const n3 = b2.current;
|
|
5516
|
+
b2.current = false;
|
|
5517
|
+
const o2 = w3.current;
|
|
5518
|
+
if (w3.current = false, "click" === u && o2)
|
|
5519
5519
|
return;
|
|
5520
5520
|
if (n3)
|
|
5521
5521
|
return;
|
|
@@ -5531,7 +5531,7 @@
|
|
|
5531
5531
|
}
|
|
5532
5532
|
if (l2.length && ve(s3) && !s3.matches("html,body") && !ze(s3, r3.floating) && Array.from(l2).every((e3) => !ze(d2, e3)))
|
|
5533
5533
|
return;
|
|
5534
|
-
if (
|
|
5534
|
+
if (be(s3) && L3) {
|
|
5535
5535
|
const t3 = s3.clientWidth > 0 && s3.scrollWidth > s3.clientWidth, n4 = s3.clientHeight > 0 && s3.scrollHeight > s3.clientHeight;
|
|
5536
5536
|
let o3 = n4 && e2.offsetX > s3.clientWidth;
|
|
5537
5537
|
if (n4 && "rtl" === Re(s3).direction && (o3 = e2.offsetX <= s3.offsetWidth - s3.clientWidth), o3 || t3 && e2.offsetY > s3.clientHeight)
|
|
@@ -5557,7 +5557,7 @@
|
|
|
5557
5557
|
var t2;
|
|
5558
5558
|
const n3 = () => {
|
|
5559
5559
|
var t3;
|
|
5560
|
-
|
|
5560
|
+
I3(e2), null == (t3 = Xe(e2)) || t3.removeEventListener(u, n3);
|
|
5561
5561
|
};
|
|
5562
5562
|
null == (t2 = Xe(e2)) || t2.addEventListener(u, n3);
|
|
5563
5563
|
});
|
|
@@ -5578,7 +5578,7 @@
|
|
|
5578
5578
|
}, Le() ? 5 : 0);
|
|
5579
5579
|
}
|
|
5580
5580
|
const d2 = Je(r3.floating);
|
|
5581
|
-
c && (d2.addEventListener("keydown",
|
|
5581
|
+
c && (d2.addEventListener("keydown", C3 ? P3 : E2, C3), d2.addEventListener("compositionstart", o2), d2.addEventListener("compositionend", l2)), v2 && d2.addEventListener(u, S3 ? A2 : I3, S3);
|
|
5582
5582
|
let f2 = [];
|
|
5583
5583
|
return p2 && (ve(r3.domReference) && (f2 = $e(r3.domReference)), ve(r3.floating) && (f2 = f2.concat($e(r3.floating))), !ve(r3.reference) && r3.reference && r3.reference.contextElement && (f2 = f2.concat($e(r3.reference.contextElement)))), f2 = f2.filter((e3) => {
|
|
5584
5584
|
var t3;
|
|
@@ -5586,47 +5586,47 @@
|
|
|
5586
5586
|
}), f2.forEach((e3) => {
|
|
5587
5587
|
e3.addEventListener("scroll", t2, { passive: true });
|
|
5588
5588
|
}), () => {
|
|
5589
|
-
c && (d2.removeEventListener("keydown",
|
|
5589
|
+
c && (d2.removeEventListener("keydown", C3 ? P3 : E2, C3), d2.removeEventListener("compositionstart", o2), d2.removeEventListener("compositionend", l2)), v2 && d2.removeEventListener(u, S3 ? A2 : I3, S3), f2.forEach((e3) => {
|
|
5590
5590
|
e3.removeEventListener("scroll", t2);
|
|
5591
5591
|
}), window.clearTimeout(e2);
|
|
5592
5592
|
};
|
|
5593
|
-
}, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2,
|
|
5594
|
-
|
|
5593
|
+
}, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2, C3, P3, I3, S3, A2]), o__namespace.useEffect(() => {
|
|
5594
|
+
b2.current = false;
|
|
5595
5595
|
}, [v2, u]);
|
|
5596
5596
|
const O2 = o__namespace.useMemo(() => ({ onKeyDown: E2, [Ro[f]]: (e2) => {
|
|
5597
5597
|
d && i2(false, e2.nativeEvent, "reference-press");
|
|
5598
5598
|
} }), [E2, i2, d, f]), L3 = o__namespace.useMemo(() => ({ onKeyDown: E2, onMouseDown() {
|
|
5599
|
-
|
|
5599
|
+
w3.current = true;
|
|
5600
5600
|
}, onMouseUp() {
|
|
5601
|
-
|
|
5601
|
+
w3.current = true;
|
|
5602
5602
|
}, [Bo[u]]: () => {
|
|
5603
|
-
|
|
5603
|
+
b2.current = true;
|
|
5604
5604
|
} }), [E2, u]);
|
|
5605
5605
|
return o__namespace.useMemo(() => s2 ? { reference: O2, floating: L3 } : {}, [s2, O2, L3]);
|
|
5606
|
-
}(R2, { bubbles: true }), H2 = Go(R2, { listRef:
|
|
5606
|
+
}(R2, { bubbles: true }), H2 = Go(R2, { listRef: C2, activeIndex: k, nested: L2, onNavigate: x }), { getReferenceProps: W2, getFloatingProps: V2, getItemProps: U2 } = function(e) {
|
|
5607
5607
|
void 0 === e && (e = []);
|
|
5608
5608
|
const t = e.map((e2) => null == e2 ? void 0 : e2.reference), n2 = e.map((e2) => null == e2 ? void 0 : e2.floating), i2 = e.map((e2) => null == e2 ? void 0 : e2.item), r3 = o__namespace.useCallback((t2) => zo(t2, e, "reference"), t), a2 = o__namespace.useCallback((t2) => zo(t2, e, "floating"), n2), s2 = o__namespace.useCallback((t2) => zo(t2, e, "item"), i2);
|
|
5609
5609
|
return o__namespace.useMemo(() => ({ getReferenceProps: r3, getFloatingProps: a2, getItemProps: s2 }), [r3, a2, s2]);
|
|
5610
5610
|
}([F, _2, j2, z2, H2]);
|
|
5611
5611
|
o.useEffect(() => {
|
|
5612
|
-
if (
|
|
5613
|
-
return
|
|
5614
|
-
|
|
5612
|
+
if (P2)
|
|
5613
|
+
return P2.events.on("click", e), P2.events.on("menuopen", t), () => {
|
|
5614
|
+
P2.events.off("click", e), P2.events.off("menuopen", t);
|
|
5615
5615
|
};
|
|
5616
5616
|
function e() {
|
|
5617
5617
|
v(false);
|
|
5618
5618
|
}
|
|
5619
5619
|
function t(e2) {
|
|
5620
|
-
e2.nodeId !==
|
|
5620
|
+
e2.nodeId !== I2 && e2.parentId === A && v(false);
|
|
5621
5621
|
}
|
|
5622
|
-
}, [
|
|
5623
|
-
y &&
|
|
5624
|
-
}, [
|
|
5625
|
-
const K2 = { activeIndex: k, setActiveIndex: x, getItemProps: U2, setHasFocusInside:
|
|
5626
|
-
return jsxRuntime.jsxs(to, { id:
|
|
5622
|
+
}, [P2, I2, A]), o.useEffect(() => {
|
|
5623
|
+
y && P2 && P2.events.emit("menuopen", { parentId: A, nodeId: I2 });
|
|
5624
|
+
}, [P2, y, I2, A]);
|
|
5625
|
+
const K2 = { activeIndex: k, setActiveIndex: x, getItemProps: U2, setHasFocusInside: w2, isOpen: y, setIsOpen: v }, G2 = o.useMemo(() => K2, [k, x, U2, w2, y]), q2 = E("io-dropdown-menu-button", L2 && "io-dropdown-menu-item", y && !L2 && "active", n), J2 = xn([T2.setReference, O.ref, g]), Y2 = N2.activeIndex === O.index ? 0 : -1;
|
|
5626
|
+
return jsxRuntime.jsxs(to, { id: I2, children: [jsxRuntime.jsx($, { className: q2, ref: J2, variant: L2 ? "link" : i, tabIndex: L2 ? Y2 : void 0, role: L2 ? "menuitem" : void 0, "data-open": y ? "" : void 0, "data-nested": L2 ? "" : void 0, "data-focus-inside": b ? "" : void 0, text: s, icon: L2 ? "chevron-right" : r2, iconSize: "10", iconRight: !!L2 || a, disabled: p, ...W2(N2.getItemProps({ onFocus(e) {
|
|
5627
5627
|
var _a2;
|
|
5628
|
-
(_a2 = h.onFocus) == null ? void 0 : _a2.call(h, e),
|
|
5629
|
-
}, ...h })) }), jsxRuntime.jsx(Xo.Provider, { value: G2, children: jsxRuntime.jsx(zn, { elementsRef:
|
|
5628
|
+
(_a2 = h.onFocus) == null ? void 0 : _a2.call(h, e), w2(false), N2.setHasFocusInside(true);
|
|
5629
|
+
}, ...h })) }), jsxRuntime.jsx(Xo.Provider, { value: G2, children: jsxRuntime.jsx(zn, { elementsRef: C2, labelsRef: S2, children: y && jsxRuntime.jsx(Lo, { context: R2, modal: false, initialFocus: L2 ? -1 : 0, returnFocus: !L2, children: jsxRuntime.jsx("div", { ref: T2.setFloating, className: "io-dropdown-menu", style: D2, ...V2(), children: m }) }) }) })] });
|
|
5630
5630
|
});
|
|
5631
5631
|
Zo.displayName = "DropdownMenu";
|
|
5632
5632
|
const ei = o.forwardRef(({ ...t }, n) => null === Zn() ? jsxRuntime.jsx(no, { children: jsxRuntime.jsx(Zo, { ref: n, ...t }) }) : jsxRuntime.jsx(Zo, { ref: n, ...t }));
|
|
@@ -5651,17 +5651,17 @@
|
|
|
5651
5651
|
function vi(e) {
|
|
5652
5652
|
return e instanceof yi(e).Element || e instanceof Element;
|
|
5653
5653
|
}
|
|
5654
|
-
function
|
|
5654
|
+
function bi(e) {
|
|
5655
5655
|
return e instanceof yi(e).HTMLElement || e instanceof HTMLElement;
|
|
5656
5656
|
}
|
|
5657
|
-
function
|
|
5657
|
+
function wi(e) {
|
|
5658
5658
|
return "undefined" != typeof ShadowRoot && (e instanceof yi(e).ShadowRoot || e instanceof ShadowRoot);
|
|
5659
5659
|
}
|
|
5660
5660
|
var ki = { name: "applyStyles", enabled: true, phase: "write", fn: function(e) {
|
|
5661
5661
|
var t = e.state;
|
|
5662
5662
|
Object.keys(t.elements).forEach(function(e2) {
|
|
5663
5663
|
var n = t.styles[e2] || {}, o2 = t.attributes[e2] || {}, i = t.elements[e2];
|
|
5664
|
-
|
|
5664
|
+
bi(i) && gi(i) && (Object.assign(i.style, n), Object.keys(o2).forEach(function(e3) {
|
|
5665
5665
|
var t2 = o2[e3];
|
|
5666
5666
|
false === t2 ? i.removeAttribute(e3) : i.setAttribute(e3, true === t2 ? "" : t2);
|
|
5667
5667
|
}));
|
|
@@ -5673,7 +5673,7 @@
|
|
|
5673
5673
|
var o2 = t.elements[e2], i = t.attributes[e2] || {}, r2 = Object.keys(t.styles.hasOwnProperty(e2) ? t.styles[e2] : n[e2]).reduce(function(e3, t2) {
|
|
5674
5674
|
return e3[t2] = "", e3;
|
|
5675
5675
|
}, {});
|
|
5676
|
-
|
|
5676
|
+
bi(o2) && gi(o2) && (Object.assign(o2.style, r2), Object.keys(i).forEach(function(e3) {
|
|
5677
5677
|
o2.removeAttribute(e3);
|
|
5678
5678
|
}));
|
|
5679
5679
|
});
|
|
@@ -5682,32 +5682,32 @@
|
|
|
5682
5682
|
function xi(e) {
|
|
5683
5683
|
return e.split("-")[0];
|
|
5684
5684
|
}
|
|
5685
|
-
var
|
|
5685
|
+
var Ci = Math.max, Si = Math.min, Ni = Math.round;
|
|
5686
5686
|
function Ei() {
|
|
5687
5687
|
var e = navigator.userAgentData;
|
|
5688
5688
|
return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e2) {
|
|
5689
5689
|
return e2.brand + "/" + e2.version;
|
|
5690
5690
|
}).join(" ") : navigator.userAgent;
|
|
5691
5691
|
}
|
|
5692
|
-
function
|
|
5692
|
+
function Pi() {
|
|
5693
5693
|
return !/^((?!chrome|android).)*safari/i.test(Ei());
|
|
5694
5694
|
}
|
|
5695
|
-
function
|
|
5695
|
+
function Ii(e, t, n) {
|
|
5696
5696
|
void 0 === t && (t = false), void 0 === n && (n = false);
|
|
5697
5697
|
var o2 = e.getBoundingClientRect(), i = 1, r2 = 1;
|
|
5698
|
-
t &&
|
|
5699
|
-
var a = (vi(e) ? yi(e) : window).visualViewport, s = !
|
|
5698
|
+
t && bi(e) && (i = e.offsetWidth > 0 && Ni(o2.width) / e.offsetWidth || 1, r2 = e.offsetHeight > 0 && Ni(o2.height) / e.offsetHeight || 1);
|
|
5699
|
+
var a = (vi(e) ? yi(e) : window).visualViewport, s = !Pi() && n, c = (o2.left + (s && a ? a.offsetLeft : 0)) / i, l = (o2.top + (s && a ? a.offsetTop : 0)) / r2, u = o2.width / i, d = o2.height / r2;
|
|
5700
5700
|
return { width: u, height: d, top: l, right: c + u, bottom: l + d, left: c, x: c, y: l };
|
|
5701
5701
|
}
|
|
5702
5702
|
function Ai(e) {
|
|
5703
|
-
var t =
|
|
5703
|
+
var t = Ii(e), n = e.offsetWidth, o2 = e.offsetHeight;
|
|
5704
5704
|
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o2) <= 1 && (o2 = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o2 };
|
|
5705
5705
|
}
|
|
5706
5706
|
function Oi(e, t) {
|
|
5707
5707
|
var n = t.getRootNode && t.getRootNode();
|
|
5708
5708
|
if (e.contains(t))
|
|
5709
5709
|
return true;
|
|
5710
|
-
if (n &&
|
|
5710
|
+
if (n && wi(n)) {
|
|
5711
5711
|
var o2 = t;
|
|
5712
5712
|
do {
|
|
5713
5713
|
if (o2 && e.isSameNode(o2))
|
|
@@ -5727,20 +5727,20 @@
|
|
|
5727
5727
|
return ((vi(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
5728
5728
|
}
|
|
5729
5729
|
function Ri(e) {
|
|
5730
|
-
return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (
|
|
5730
|
+
return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (wi(e) ? e.host : null) || Ti(e);
|
|
5731
5731
|
}
|
|
5732
5732
|
function Bi(e) {
|
|
5733
|
-
return
|
|
5733
|
+
return bi(e) && "fixed" !== Li(e).position ? e.offsetParent : null;
|
|
5734
5734
|
}
|
|
5735
5735
|
function Mi(e) {
|
|
5736
5736
|
for (var t = yi(e), n = Bi(e); n && Di(n) && "static" === Li(n).position; )
|
|
5737
5737
|
n = Bi(n);
|
|
5738
5738
|
return n && ("html" === gi(n) || "body" === gi(n) && "static" === Li(n).position) ? t : n || function(e2) {
|
|
5739
5739
|
var t2 = /firefox/i.test(Ei());
|
|
5740
|
-
if (/Trident/i.test(Ei()) &&
|
|
5740
|
+
if (/Trident/i.test(Ei()) && bi(e2) && "fixed" === Li(e2).position)
|
|
5741
5741
|
return null;
|
|
5742
5742
|
var n2 = Ri(e2);
|
|
5743
|
-
for (
|
|
5743
|
+
for (wi(n2) && (n2 = n2.host); bi(n2) && ["html", "body"].indexOf(gi(n2)) < 0; ) {
|
|
5744
5744
|
var o2 = Li(n2);
|
|
5745
5745
|
if ("none" !== o2.transform || "none" !== o2.perspective || "paint" === o2.contain || -1 !== ["transform", "perspective"].indexOf(o2.willChange) || t2 && "filter" === o2.willChange || t2 && o2.filter && "none" !== o2.filter)
|
|
5746
5746
|
return n2;
|
|
@@ -5753,7 +5753,7 @@
|
|
|
5753
5753
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
5754
5754
|
}
|
|
5755
5755
|
function $i(e, t, n) {
|
|
5756
|
-
return
|
|
5756
|
+
return Ci(e, Si(t, n));
|
|
5757
5757
|
}
|
|
5758
5758
|
function _i(e) {
|
|
5759
5759
|
return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e);
|
|
@@ -5768,8 +5768,8 @@
|
|
|
5768
5768
|
if (r2 && a) {
|
|
5769
5769
|
var u = function(e2, t2) {
|
|
5770
5770
|
return _i("number" != typeof (e2 = "function" == typeof e2 ? e2(Object.assign({}, t2.rects, { placement: t2.placement })) : e2) ? e2 : ji(e2, ci));
|
|
5771
|
-
}(i.padding, n), d = Ai(r2), f = "y" === c ? oi : ai, p = "y" === c ? ii : ri, m = n.rects.reference[l] + n.rects.reference[c] - a[c] - n.rects.popper[l], h = a[c] - n.rects.reference[c], g = Mi(r2), y = g ? "y" === c ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2,
|
|
5772
|
-
n.modifiersData[o2] = ((t = {})[
|
|
5771
|
+
}(i.padding, n), d = Ai(r2), f = "y" === c ? oi : ai, p = "y" === c ? ii : ri, m = n.rects.reference[l] + n.rects.reference[c] - a[c] - n.rects.popper[l], h = a[c] - n.rects.reference[c], g = Mi(r2), y = g ? "y" === c ? g.clientHeight || 0 : g.clientWidth || 0 : 0, v = m / 2 - h / 2, b = u[f], w2 = y - d[l] - u[p], k = y / 2 - d[l] / 2 + v, x = $i(b, k, w2), C2 = c;
|
|
5772
|
+
n.modifiersData[o2] = ((t = {})[C2] = x, t.centerOffset = x - k, t);
|
|
5773
5773
|
}
|
|
5774
5774
|
}, effect: function(e) {
|
|
5775
5775
|
var t = e.state, n = e.options.element, o2 = void 0 === n ? "[data-popper-arrow]" : n;
|
|
@@ -5782,19 +5782,19 @@
|
|
|
5782
5782
|
function Vi(e) {
|
|
5783
5783
|
var t, n = e.popper, o2 = e.popperRect, i = e.placement, r2 = e.variation, a = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = a.x, p = void 0 === f ? 0 : f, m = a.y, h = void 0 === m ? 0 : m, g = "function" == typeof u ? u({ x: p, y: h }) : { x: p, y: h };
|
|
5784
5784
|
p = g.x, h = g.y;
|
|
5785
|
-
var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"),
|
|
5785
|
+
var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"), b = ai, w2 = oi, k = window;
|
|
5786
5786
|
if (l) {
|
|
5787
|
-
var x = Mi(n),
|
|
5788
|
-
if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (
|
|
5789
|
-
|
|
5787
|
+
var x = Mi(n), C2 = "clientHeight", S2 = "clientWidth";
|
|
5788
|
+
if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (C2 = "scrollHeight", S2 = "scrollWidth"), i === oi || (i === ai || i === ri) && r2 === ui)
|
|
5789
|
+
w2 = ii, h -= (d && x === k && k.visualViewport ? k.visualViewport.height : x[C2]) - o2.height, h *= c ? 1 : -1;
|
|
5790
5790
|
if (i === ai || (i === oi || i === ii) && r2 === ui)
|
|
5791
|
-
|
|
5791
|
+
b = ri, p -= (d && x === k && k.visualViewport ? k.visualViewport.width : x[S2]) - o2.width, p *= c ? 1 : -1;
|
|
5792
5792
|
}
|
|
5793
|
-
var N2, E2 = Object.assign({ position: s }, l && Wi),
|
|
5793
|
+
var N2, E2 = Object.assign({ position: s }, l && Wi), P2 = true === u ? function(e2, t2) {
|
|
5794
5794
|
var n2 = e2.x, o3 = e2.y, i2 = t2.devicePixelRatio || 1;
|
|
5795
5795
|
return { x: Ni(n2 * i2) / i2 || 0, y: Ni(o3 * i2) / i2 || 0 };
|
|
5796
5796
|
}({ x: p, y: h }, yi(n)) : { x: p, y: h };
|
|
5797
|
-
return p =
|
|
5797
|
+
return p = P2.x, h = P2.y, c ? Object.assign({}, E2, ((N2 = {})[w2] = v ? "0" : "", N2[b] = y ? "0" : "", N2.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N2)) : Object.assign({}, E2, ((t = {})[w2] = v ? h + "px" : "", t[b] = y ? p + "px" : "", t.transform = "", t));
|
|
5798
5798
|
}
|
|
5799
5799
|
var Ui = { passive: true };
|
|
5800
5800
|
var Ki = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
@@ -5814,14 +5814,14 @@
|
|
|
5814
5814
|
return { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
|
|
5815
5815
|
}
|
|
5816
5816
|
function Xi(e) {
|
|
5817
|
-
return
|
|
5817
|
+
return Ii(Ti(e)).left + Yi(e).scrollLeft;
|
|
5818
5818
|
}
|
|
5819
5819
|
function Qi(e) {
|
|
5820
5820
|
var t = Li(e), n = t.overflow, o2 = t.overflowX, i = t.overflowY;
|
|
5821
5821
|
return /auto|scroll|overlay|hidden/.test(n + i + o2);
|
|
5822
5822
|
}
|
|
5823
5823
|
function Zi(e) {
|
|
5824
|
-
return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body :
|
|
5824
|
+
return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body : bi(e) && Qi(e) ? e : Zi(Ri(e));
|
|
5825
5825
|
}
|
|
5826
5826
|
function er(e, t) {
|
|
5827
5827
|
var n;
|
|
@@ -5837,27 +5837,27 @@
|
|
|
5837
5837
|
var n2 = yi(e2), o2 = Ti(e2), i = n2.visualViewport, r2 = o2.clientWidth, a = o2.clientHeight, s = 0, c = 0;
|
|
5838
5838
|
if (i) {
|
|
5839
5839
|
r2 = i.width, a = i.height;
|
|
5840
|
-
var l =
|
|
5840
|
+
var l = Pi();
|
|
5841
5841
|
(l || !l && "fixed" === t2) && (s = i.offsetLeft, c = i.offsetTop);
|
|
5842
5842
|
}
|
|
5843
5843
|
return { width: r2, height: a, x: s + Xi(e2), y: c };
|
|
5844
5844
|
}(e, n)) : vi(t) ? function(e2, t2) {
|
|
5845
|
-
var n2 =
|
|
5845
|
+
var n2 = Ii(e2, false, "fixed" === t2);
|
|
5846
5846
|
return n2.top = n2.top + e2.clientTop, n2.left = n2.left + e2.clientLeft, n2.bottom = n2.top + e2.clientHeight, n2.right = n2.left + e2.clientWidth, n2.width = e2.clientWidth, n2.height = e2.clientHeight, n2.x = n2.left, n2.y = n2.top, n2;
|
|
5847
5847
|
}(t, n) : tr(function(e2) {
|
|
5848
|
-
var t2, n2 = Ti(e2), o2 = Yi(e2), i = null == (t2 = e2.ownerDocument) ? void 0 : t2.body, r2 =
|
|
5849
|
-
return "rtl" === Li(i || n2).direction && (s +=
|
|
5848
|
+
var t2, n2 = Ti(e2), o2 = Yi(e2), i = null == (t2 = e2.ownerDocument) ? void 0 : t2.body, r2 = Ci(n2.scrollWidth, n2.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Ci(n2.scrollHeight, n2.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -o2.scrollLeft + Xi(e2), c = -o2.scrollTop;
|
|
5849
|
+
return "rtl" === Li(i || n2).direction && (s += Ci(n2.clientWidth, i ? i.clientWidth : 0) - r2), { width: r2, height: a, x: s, y: c };
|
|
5850
5850
|
}(Ti(e)));
|
|
5851
5851
|
}
|
|
5852
5852
|
function or(e, t, n, o2) {
|
|
5853
5853
|
var i = "clippingParents" === t ? function(e2) {
|
|
5854
|
-
var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 &&
|
|
5854
|
+
var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 && bi(e2) ? Mi(e2) : e2;
|
|
5855
5855
|
return vi(n2) ? t2.filter(function(e3) {
|
|
5856
5856
|
return vi(e3) && Oi(e3, n2) && "body" !== gi(e3);
|
|
5857
5857
|
}) : [];
|
|
5858
5858
|
}(e) : [].concat(t), r2 = [].concat(i, [n]), a = r2[0], s = r2.reduce(function(t2, n2) {
|
|
5859
5859
|
var i2 = nr(e, n2, o2);
|
|
5860
|
-
return t2.top =
|
|
5860
|
+
return t2.top = Ci(i2.top, t2.top), t2.right = Si(i2.right, t2.right), t2.bottom = Si(i2.bottom, t2.bottom), t2.left = Ci(i2.left, t2.left), t2;
|
|
5861
5861
|
}, nr(e, a, o2));
|
|
5862
5862
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
5863
5863
|
}
|
|
@@ -5894,12 +5894,12 @@
|
|
|
5894
5894
|
}
|
|
5895
5895
|
function rr(e, t) {
|
|
5896
5896
|
void 0 === t && (t = {});
|
|
5897
|
-
var n = t, o2 = n.placement, i = void 0 === o2 ? e.placement : o2, r2 = n.strategy, a = void 0 === r2 ? e.strategy : r2, s = n.boundary, c = void 0 === s ? "clippingParents" : s, l = n.rootBoundary, u = void 0 === l ? di : l, d = n.elementContext, f = void 0 === d ? fi : d, p = n.altBoundary, m = void 0 !== p && p, h = n.padding, g = void 0 === h ? 0 : h, y = _i("number" != typeof g ? g : ji(g, ci)), v = f === fi ? "reference" : fi,
|
|
5898
|
-
if (f === fi &&
|
|
5899
|
-
var
|
|
5897
|
+
var n = t, o2 = n.placement, i = void 0 === o2 ? e.placement : o2, r2 = n.strategy, a = void 0 === r2 ? e.strategy : r2, s = n.boundary, c = void 0 === s ? "clippingParents" : s, l = n.rootBoundary, u = void 0 === l ? di : l, d = n.elementContext, f = void 0 === d ? fi : d, p = n.altBoundary, m = void 0 !== p && p, h = n.padding, g = void 0 === h ? 0 : h, y = _i("number" != typeof g ? g : ji(g, ci)), v = f === fi ? "reference" : fi, b = e.rects.popper, w2 = e.elements[m ? v : f], k = or(vi(w2) ? w2 : w2.contextElement || Ti(e.elements.popper), c, u, a), x = Ii(e.elements.reference), C2 = ir({ reference: x, element: b, strategy: "absolute", placement: i }), S2 = tr(Object.assign({}, b, C2)), N2 = f === fi ? S2 : x, E2 = { top: k.top - N2.top + y.top, bottom: N2.bottom - k.bottom + y.bottom, left: k.left - N2.left + y.left, right: N2.right - k.right + y.right }, P2 = e.modifiersData.offset;
|
|
5898
|
+
if (f === fi && P2) {
|
|
5899
|
+
var I2 = P2[i];
|
|
5900
5900
|
Object.keys(E2).forEach(function(e2) {
|
|
5901
5901
|
var t2 = [ri, ii].indexOf(e2) >= 0 ? 1 : -1, n2 = [oi, ii].indexOf(e2) >= 0 ? "y" : "x";
|
|
5902
|
-
E2[e2] +=
|
|
5902
|
+
E2[e2] += I2[n2] * t2;
|
|
5903
5903
|
});
|
|
5904
5904
|
}
|
|
5905
5905
|
return E2;
|
|
@@ -5927,23 +5927,23 @@
|
|
|
5927
5927
|
return [];
|
|
5928
5928
|
var t2 = Gi(e2);
|
|
5929
5929
|
return [Ji(e2), t2, Ji(t2)];
|
|
5930
|
-
}(g)),
|
|
5930
|
+
}(g)), b = [g].concat(v).reduce(function(e2, n2) {
|
|
5931
5931
|
return e2.concat(xi(n2) === si ? ar(t, { placement: n2, boundary: u, rootBoundary: d, padding: l, flipVariations: m, allowedAutoPlacements: h }) : n2);
|
|
5932
|
-
}, []),
|
|
5933
|
-
var E2 =
|
|
5934
|
-
|
|
5932
|
+
}, []), w2 = t.rects.reference, k = t.rects.popper, x = /* @__PURE__ */ new Map(), C2 = true, S2 = b[0], N2 = 0; N2 < b.length; N2++) {
|
|
5933
|
+
var E2 = b[N2], P2 = xi(E2), I2 = Hi(E2) === li, A = [oi, ii].indexOf(P2) >= 0, O = A ? "width" : "height", L2 = rr(t, { placement: E2, boundary: u, rootBoundary: d, altBoundary: f, padding: l }), D2 = A ? I2 ? ri : ai : I2 ? ii : oi;
|
|
5934
|
+
w2[O] > k[O] && (D2 = Gi(D2));
|
|
5935
5935
|
var T2 = Gi(D2), R2 = [];
|
|
5936
|
-
if (r2 && R2.push(L2[
|
|
5936
|
+
if (r2 && R2.push(L2[P2] <= 0), s && R2.push(L2[D2] <= 0, L2[T2] <= 0), R2.every(function(e2) {
|
|
5937
5937
|
return e2;
|
|
5938
5938
|
})) {
|
|
5939
|
-
|
|
5939
|
+
S2 = E2, C2 = false;
|
|
5940
5940
|
break;
|
|
5941
5941
|
}
|
|
5942
5942
|
x.set(E2, R2);
|
|
5943
5943
|
}
|
|
5944
|
-
if (
|
|
5944
|
+
if (C2)
|
|
5945
5945
|
for (var B2 = function(e2) {
|
|
5946
|
-
var t2 =
|
|
5946
|
+
var t2 = b.find(function(t3) {
|
|
5947
5947
|
var n2 = x.get(t3);
|
|
5948
5948
|
if (n2)
|
|
5949
5949
|
return n2.slice(0, e2).every(function(e3) {
|
|
@@ -5951,12 +5951,12 @@
|
|
|
5951
5951
|
});
|
|
5952
5952
|
});
|
|
5953
5953
|
if (t2)
|
|
5954
|
-
return
|
|
5954
|
+
return S2 = t2, "break";
|
|
5955
5955
|
}, M2 = m ? 3 : 1; M2 > 0; M2--) {
|
|
5956
5956
|
if ("break" === B2(M2))
|
|
5957
5957
|
break;
|
|
5958
5958
|
}
|
|
5959
|
-
t.placement !==
|
|
5959
|
+
t.placement !== S2 && (t.modifiersData[o2]._skip = true, t.placement = S2, t.reset = true);
|
|
5960
5960
|
}
|
|
5961
5961
|
}, requiresIfExists: ["offset"], data: { _skip: false } };
|
|
5962
5962
|
function cr(e, t, n) {
|
|
@@ -5977,29 +5977,29 @@
|
|
|
5977
5977
|
null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[o2] = a;
|
|
5978
5978
|
} };
|
|
5979
5979
|
var dr = { name: "preventOverflow", enabled: true, phase: "main", fn: function(e) {
|
|
5980
|
-
var t = e.state, n = e.options, o2 = e.name, i = n.mainAxis, r2 = void 0 === i || i, a = n.altAxis, s = void 0 !== a && a, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = void 0 === f || f, m = n.tetherOffset, h = void 0 === m ? 0 : m, g = rr(t, { boundary: c, rootBoundary: l, padding: d, altBoundary: u }), y = xi(t.placement), v = Hi(t.placement),
|
|
5980
|
+
var t = e.state, n = e.options, o2 = e.name, i = n.mainAxis, r2 = void 0 === i || i, a = n.altAxis, s = void 0 !== a && a, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = void 0 === f || f, m = n.tetherOffset, h = void 0 === m ? 0 : m, g = rr(t, { boundary: c, rootBoundary: l, padding: d, altBoundary: u }), y = xi(t.placement), v = Hi(t.placement), b = !v, w2 = Fi(y), k = "x" === w2 ? "y" : "x", x = t.modifiersData.popperOffsets, C2 = t.rects.reference, S2 = t.rects.popper, N2 = "function" == typeof h ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, E2 = "number" == typeof N2 ? { mainAxis: N2, altAxis: N2 } : Object.assign({ mainAxis: 0, altAxis: 0 }, N2), P2 = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I2 = { x: 0, y: 0 };
|
|
5981
5981
|
if (x) {
|
|
5982
5982
|
if (r2) {
|
|
5983
|
-
var A, O = "y" ===
|
|
5984
|
-
x[
|
|
5983
|
+
var A, O = "y" === w2 ? oi : ai, L2 = "y" === w2 ? ii : ri, D2 = "y" === w2 ? "height" : "width", T2 = x[w2], R2 = T2 + g[O], B2 = T2 - g[L2], M2 = p ? -S2[D2] / 2 : 0, F = v === li ? C2[D2] : S2[D2], $2 = v === li ? -S2[D2] : -C2[D2], _2 = t.elements.arrow, j2 = p && _2 ? Ai(_2) : { width: 0, height: 0 }, z2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, H2 = z2[O], W2 = z2[L2], V2 = $i(0, C2[D2], j2[D2]), U2 = b ? C2[D2] / 2 - M2 - V2 - H2 - E2.mainAxis : F - V2 - H2 - E2.mainAxis, K2 = b ? -C2[D2] / 2 + M2 + V2 + W2 + E2.mainAxis : $2 + V2 + W2 + E2.mainAxis, G2 = t.elements.arrow && Mi(t.elements.arrow), q2 = G2 ? "y" === w2 ? G2.clientTop || 0 : G2.clientLeft || 0 : 0, J2 = null != (A = null == P2 ? void 0 : P2[w2]) ? A : 0, Y2 = T2 + K2 - J2, X2 = $i(p ? Si(R2, T2 + U2 - J2 - q2) : R2, T2, p ? Ci(B2, Y2) : B2);
|
|
5984
|
+
x[w2] = X2, I2[w2] = X2 - T2;
|
|
5985
5985
|
}
|
|
5986
5986
|
if (s) {
|
|
5987
|
-
var Q2, Z2 = "x" ===
|
|
5987
|
+
var Q2, Z2 = "x" === w2 ? oi : ai, ee2 = "x" === w2 ? ii : ri, te2 = x[k], ne2 = "y" === k ? "height" : "width", oe2 = te2 + g[Z2], ie2 = te2 - g[ee2], re2 = -1 !== [oi, ai].indexOf(y), ae2 = null != (Q2 = null == P2 ? void 0 : P2[k]) ? Q2 : 0, se2 = re2 ? oe2 : te2 - C2[ne2] - S2[ne2] - ae2 + E2.altAxis, ce2 = re2 ? te2 + C2[ne2] + S2[ne2] - ae2 - E2.altAxis : ie2, le2 = p && re2 ? function(e2, t2, n2) {
|
|
5988
5988
|
var o3 = $i(e2, t2, n2);
|
|
5989
5989
|
return o3 > n2 ? n2 : o3;
|
|
5990
5990
|
}(se2, te2, ce2) : $i(p ? se2 : oe2, te2, p ? ce2 : ie2);
|
|
5991
|
-
x[k] = le2,
|
|
5991
|
+
x[k] = le2, I2[k] = le2 - te2;
|
|
5992
5992
|
}
|
|
5993
|
-
t.modifiersData[o2] =
|
|
5993
|
+
t.modifiersData[o2] = I2;
|
|
5994
5994
|
}
|
|
5995
5995
|
}, requiresIfExists: ["offset"] };
|
|
5996
5996
|
function fr(e, t, n) {
|
|
5997
5997
|
void 0 === n && (n = false);
|
|
5998
|
-
var o2, i, r2 =
|
|
5998
|
+
var o2, i, r2 = bi(t), a = bi(t) && function(e2) {
|
|
5999
5999
|
var t2 = e2.getBoundingClientRect(), n2 = Ni(t2.width) / e2.offsetWidth || 1, o3 = Ni(t2.height) / e2.offsetHeight || 1;
|
|
6000
6000
|
return 1 !== n2 || 1 !== o3;
|
|
6001
|
-
}(t), s = Ti(t), c =
|
|
6002
|
-
return (r2 || !r2 && !n) && (("body" !== gi(t) || Qi(s)) && (l = (o2 = t) !== yi(o2) &&
|
|
6001
|
+
}(t), s = Ti(t), c = Ii(e, a, n), l = { scrollLeft: 0, scrollTop: 0 }, u = { x: 0, y: 0 };
|
|
6002
|
+
return (r2 || !r2 && !n) && (("body" !== gi(t) || Qi(s)) && (l = (o2 = t) !== yi(o2) && bi(o2) ? { scrollLeft: (i = o2).scrollLeft, scrollTop: i.scrollTop } : Yi(o2)), bi(t) ? ((u = Ii(t, true)).x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Xi(s))), { x: c.left + l.scrollLeft - u.x, y: c.top + l.scrollTop - u.y, width: c.width, height: c.height };
|
|
6003
6003
|
}
|
|
6004
6004
|
function pr(e) {
|
|
6005
6005
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o2 = [];
|
|
@@ -6116,7 +6116,7 @@
|
|
|
6116
6116
|
var t = e.state, n = e.name, o2 = t.rects.reference, i = t.rects.popper, r2 = t.modifiersData.preventOverflow, a = rr(t, { elementContext: "reference" }), s = rr(t, { altBoundary: true }), c = cr(a, o2), l = cr(s, i, r2), u = lr(c), d = lr(l);
|
|
6117
6117
|
t.modifiersData[n] = { referenceClippingOffsets: c, popperEscapeOffsets: l, isReferenceHidden: u, hasPopperEscaped: d }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": u, "data-popper-escaped": d });
|
|
6118
6118
|
} }] });
|
|
6119
|
-
var vr = "undefined" != typeof Element,
|
|
6119
|
+
var vr = "undefined" != typeof Element, br = "function" == typeof Map, wr = "function" == typeof Set, kr = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView;
|
|
6120
6120
|
function xr(e, t) {
|
|
6121
6121
|
if (e === t)
|
|
6122
6122
|
return true;
|
|
@@ -6132,7 +6132,7 @@
|
|
|
6132
6132
|
return false;
|
|
6133
6133
|
return true;
|
|
6134
6134
|
}
|
|
6135
|
-
if (
|
|
6135
|
+
if (br && e instanceof Map && t instanceof Map) {
|
|
6136
6136
|
if (e.size !== t.size)
|
|
6137
6137
|
return false;
|
|
6138
6138
|
for (r2 = e.entries(); !(o2 = r2.next()).done; )
|
|
@@ -6143,7 +6143,7 @@
|
|
|
6143
6143
|
return false;
|
|
6144
6144
|
return true;
|
|
6145
6145
|
}
|
|
6146
|
-
if (
|
|
6146
|
+
if (wr && e instanceof Set && t instanceof Set) {
|
|
6147
6147
|
if (e.size !== t.size)
|
|
6148
6148
|
return false;
|
|
6149
6149
|
for (r2 = e.entries(); !(o2 = r2.next()).done; )
|
|
@@ -6179,7 +6179,7 @@
|
|
|
6179
6179
|
}
|
|
6180
6180
|
return e != e && t != t;
|
|
6181
6181
|
}
|
|
6182
|
-
var
|
|
6182
|
+
var Cr = function(e, t) {
|
|
6183
6183
|
try {
|
|
6184
6184
|
return xr(e, t);
|
|
6185
6185
|
} catch (e2) {
|
|
@@ -6188,12 +6188,12 @@
|
|
|
6188
6188
|
throw e2;
|
|
6189
6189
|
}
|
|
6190
6190
|
};
|
|
6191
|
-
|
|
6191
|
+
C(Cr);
|
|
6192
6192
|
function Er({ className: t, variant: n = "default", size: o2 = "16", src: i, alt: r2, ...a }) {
|
|
6193
6193
|
const s = E("io-image-icon", "grayscale" === n && [`io-image-icon-${n}`], o2 && [`io-image-icon-${o2}`], t);
|
|
6194
6194
|
return jsxRuntime.jsx("img", { className: s, style: { width: `${o2}px`, filter: "grayscale" === n ? "grayscale(100%)" : "none" }, src: i, alt: r2, ...a });
|
|
6195
6195
|
}
|
|
6196
|
-
const
|
|
6196
|
+
const Pr = o.forwardRef((n, o$1) => {
|
|
6197
6197
|
const { title: i, actions: r2, className: a, onClose: s, onActionItemClick: c, "data-testid": u = "context-menu", ...p } = n, m = o.useRef({}), [g, y] = o.useState(0), v = (e) => {
|
|
6198
6198
|
var _a2;
|
|
6199
6199
|
(_a2 = m.current[e]) == null ? void 0 : _a2.focus(), y(e);
|
|
@@ -6202,11 +6202,11 @@
|
|
|
6202
6202
|
var _a2;
|
|
6203
6203
|
(_a2 = m.current[g]) == null ? void 0 : _a2.focus();
|
|
6204
6204
|
}, []), jsxRuntime.jsxs(Q, { ref: o$1, className: E(a, "context-menu"), onClick: (e) => e.stopPropagation(), onKeyDown: (e) => M({ event: e, currentIndex: g, min: 0, max: r2.length - 1, moveFocus: v, onClose: s }), "data-testid": u, ...p, children: [i && jsxRuntime.jsx(Q.ItemSection, { children: i }), r2.map((n2, o$12) => {
|
|
6205
|
-
const i2 = n2.displayName || n2.name, r3 = n2.iconSrc ? jsxRuntime.jsx(Er, { size: "16", src: n2.iconSrc, alt: `${i2} icon` }) : n2.icon && jsxRuntime.jsx(
|
|
6205
|
+
const i2 = n2.displayName || n2.name, r3 = n2.iconSrc ? jsxRuntime.jsx(Er, { size: "16", src: n2.iconSrc, alt: `${i2} icon` }) : n2.icon && jsxRuntime.jsx(P, { size: "16", variant: n2.icon });
|
|
6206
6206
|
return jsxRuntime.jsxs(o.Fragment, { children: [jsxRuntime.jsx(Q.Item, { ref: (e) => m.current[o$12] = e, prepend: r3, disabled: n2.disabled, tabIndex: -1, ...B((e) => c(e, n2)), "data-testid": `${u}-item-${n2.name}`, children: i2 }), n2.separatorAfter && jsxRuntime.jsx("li", { className: "context-menu-separator", "aria-hidden": true, "data-testid": `${u}-separator` })] }, n2.name);
|
|
6207
6207
|
})] });
|
|
6208
6208
|
});
|
|
6209
|
-
|
|
6209
|
+
Pr.displayName = "ContextMenuActionsList";
|
|
6210
6210
|
const Or = () => void 0 !== window.glue42gd || void 0 !== window.glue42alert || void 0 !== window.glue42dialog || void 0 !== window.iodesktop, $r = "warning", _r = { success: 5e3, warning: 1e4 }, jr = (e) => "string" == typeof e ? e : (e == null ? void 0 : e.message) ? "string" == typeof e.message ? e.message : JSON.stringify(e.message) : JSON.stringify(e), zr = async (e) => {
|
|
6211
6211
|
const { io: t, variant: n, text: o2, error: i } = e, r2 = jr(i);
|
|
6212
6212
|
try {
|
|
@@ -6543,7 +6543,7 @@
|
|
|
6543
6543
|
const i = E("io-panel-header", t);
|
|
6544
6544
|
return jsxRuntime.jsx(se, { className: i, ...o2, children: n });
|
|
6545
6545
|
}
|
|
6546
|
-
Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon =
|
|
6546
|
+
Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon = I, Vs.Dropdown = re;
|
|
6547
6547
|
const Us = o.forwardRef(({ className: t, children: n, ...o2 }, i) => {
|
|
6548
6548
|
const r2 = E("io-panel-body", t);
|
|
6549
6549
|
return jsxRuntime.jsx("div", { className: r2, ref: i, "data-testid": "panel-body", ...o2, children: n });
|
|
@@ -6574,7 +6574,7 @@
|
|
|
6574
6574
|
*
|
|
6575
6575
|
* Released under the MIT license.
|
|
6576
6576
|
*/
|
|
6577
|
-
Us.displayName = "PanelBody", Ks.ButtonGroup = ae, Ks.Button = $, Ks.ButtonIcon =
|
|
6577
|
+
Us.displayName = "PanelBody", Ks.ButtonGroup = ae, Ks.Button = $, Ks.ButtonIcon = I, Ks.Dropdown = re, Gs.Header = Vs, Gs.Body = Us, Gs.Footer = Ks, qs.Icon = P;
|
|
6578
6578
|
const Ys = (e, t) => {
|
|
6579
6579
|
const { o: n, i: o2, u: i } = e;
|
|
6580
6580
|
let r2, a = n;
|
|
@@ -6583,24 +6583,24 @@
|
|
|
6583
6583
|
return (c || i) && (a = s2, r2 = n2), [a, c, r2];
|
|
6584
6584
|
};
|
|
6585
6585
|
return [t ? (e2) => s(t(a, r2), e2) : s, (e2) => [a, !!e2, r2]];
|
|
6586
|
-
}, Xs = "undefined" != typeof window && "undefined" != typeof HTMLElement && !!window.document ? window : {}, Qs = Math.max, Zs = Math.min, ec = Math.round, tc = Math.abs, nc = Math.sign, oc = Xs.cancelAnimationFrame, ic = Xs.requestAnimationFrame, rc = Xs.setTimeout, ac = Xs.clearTimeout, sc = (e) => void 0 !== Xs[e] ? Xs[e] : void 0, cc = sc("MutationObserver"), lc = sc("IntersectionObserver"), uc = sc("ResizeObserver"), dc = sc("ScrollTimeline"), fc = (e) => void 0 === e, pc = (e) => null === e, mc = (e) => "number" == typeof e, hc = (e) => "string" == typeof e, gc = (e) => "boolean" == typeof e, yc = (e) => "function" == typeof e, vc = (e) => Array.isArray(e),
|
|
6586
|
+
}, Xs = "undefined" != typeof window && "undefined" != typeof HTMLElement && !!window.document ? window : {}, Qs = Math.max, Zs = Math.min, ec = Math.round, tc = Math.abs, nc = Math.sign, oc = Xs.cancelAnimationFrame, ic = Xs.requestAnimationFrame, rc = Xs.setTimeout, ac = Xs.clearTimeout, sc = (e) => void 0 !== Xs[e] ? Xs[e] : void 0, cc = sc("MutationObserver"), lc = sc("IntersectionObserver"), uc = sc("ResizeObserver"), dc = sc("ScrollTimeline"), fc = (e) => void 0 === e, pc = (e) => null === e, mc = (e) => "number" == typeof e, hc = (e) => "string" == typeof e, gc = (e) => "boolean" == typeof e, yc = (e) => "function" == typeof e, vc = (e) => Array.isArray(e), bc = (e) => "object" == typeof e && !vc(e) && !pc(e), wc = (e) => {
|
|
6587
6587
|
const t = !!e && e.length, n = mc(t) && t > -1 && t % 1 == 0;
|
|
6588
|
-
return !!(vc(e) || !yc(e) && n) && (!(t > 0 &&
|
|
6589
|
-
}, kc = (e) => !!e && e.constructor === Object, xc = (e) => e instanceof HTMLElement,
|
|
6590
|
-
function
|
|
6591
|
-
if (
|
|
6588
|
+
return !!(vc(e) || !yc(e) && n) && (!(t > 0 && bc(e)) || t - 1 in e);
|
|
6589
|
+
}, kc = (e) => !!e && e.constructor === Object, xc = (e) => e instanceof HTMLElement, Cc = (e) => e instanceof Element;
|
|
6590
|
+
function Sc(e, t) {
|
|
6591
|
+
if (wc(e))
|
|
6592
6592
|
for (let n = 0; n < e.length && false !== t(e[n], n, e); n++)
|
|
6593
6593
|
;
|
|
6594
6594
|
else
|
|
6595
|
-
e &&
|
|
6595
|
+
e && Sc(Object.keys(e), (n) => t(e[n], n, e));
|
|
6596
6596
|
return e;
|
|
6597
6597
|
}
|
|
6598
|
-
const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t),
|
|
6599
|
-
|
|
6598
|
+
const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t), Pc = (e, t, n) => (!hc(t) && wc(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), Ic = (e) => Array.from(e || []), Ac = (e) => vc(e) ? e : !hc(e) && wc(e) ? Ic(e) : [e], Oc = (e) => !!e && !e.length, Lc = (e) => Ic(new Set(e)), Dc = (e, t, n) => {
|
|
6599
|
+
Sc(e, (e2) => !e2 || e2.apply(void 0, t || [])), n || (e.length = 0);
|
|
6600
6600
|
}, Tc = "paddingTop", Rc = "paddingRight", Bc = "paddingLeft", Mc = "paddingBottom", Fc = "marginLeft", $c = "marginRight", _c = "marginBottom", jc = "overflowX", zc = "overflowY", Hc = "width", Wc = "height", Vc = "visible", Uc = "hidden", Kc = "scroll", Gc = (e, t, n, o2) => {
|
|
6601
6601
|
if (e && t) {
|
|
6602
6602
|
let o3 = true;
|
|
6603
|
-
return
|
|
6603
|
+
return Sc(n, (n2) => {
|
|
6604
6604
|
e[n2] !== t[n2] && (o3 = false);
|
|
6605
6605
|
}), o3;
|
|
6606
6606
|
}
|
|
@@ -6631,7 +6631,7 @@
|
|
|
6631
6631
|
}, d = (e2) => r2 && c ? r2(c, e2) : e2, f = () => {
|
|
6632
6632
|
s && c && u(d(c) || c);
|
|
6633
6633
|
}, p = function() {
|
|
6634
|
-
const e2 =
|
|
6634
|
+
const e2 = Ic(arguments), t2 = Zc(n);
|
|
6635
6635
|
if (t2) {
|
|
6636
6636
|
const n2 = "function" == typeof i ? i() : i, r3 = Zc(o2), p2 = d(e2) || e2, m = u.bind(0, p2);
|
|
6637
6637
|
s && s(), n2 && !l ? (m(), l = true, s = t2(() => l = void 0)) : (s = t2(m), r3 && !a && (a = r3(f))), c = p2;
|
|
@@ -6641,8 +6641,8 @@
|
|
|
6641
6641
|
return p.O = f, p;
|
|
6642
6642
|
}, tl = (e, t) => Object.prototype.hasOwnProperty.call(e, t), nl = (e) => e ? Object.keys(e) : [], ol = (e, t, n, o2, i, r2, a) => {
|
|
6643
6643
|
const s = [t, n, o2, i, r2, a];
|
|
6644
|
-
return "object" == typeof e && !pc(e) || yc(e) || (e = {}),
|
|
6645
|
-
|
|
6644
|
+
return "object" == typeof e && !pc(e) || yc(e) || (e = {}), Sc(s, (t2) => {
|
|
6645
|
+
Sc(t2, (n2, o3) => {
|
|
6646
6646
|
const i2 = t2[o3];
|
|
6647
6647
|
if (e === i2)
|
|
6648
6648
|
return true;
|
|
@@ -6655,43 +6655,43 @@
|
|
|
6655
6655
|
e[o3] = r3 ? i2.slice() : i2;
|
|
6656
6656
|
});
|
|
6657
6657
|
}), e;
|
|
6658
|
-
}, il = (e, t) =>
|
|
6658
|
+
}, il = (e, t) => Sc(ol({}, e), (e2, t2, n) => {
|
|
6659
6659
|
void 0 === e2 ? delete n[t2] : e2 && kc(e2) && (n[t2] = il(e2));
|
|
6660
6660
|
}), rl = (e) => !nl(e).length, al = () => {
|
|
6661
6661
|
}, sl = (e, t, n) => Qs(e, Zs(t, n)), cl = (e) => Lc((vc(e) ? e : (e || "").split(" ")).filter((e2) => e2)), ll = (e, t) => e && e.getAttribute(t), ul = (e, t) => e && e.hasAttribute(t), dl = (e, t, n) => {
|
|
6662
|
-
|
|
6662
|
+
Sc(cl(t), (t2) => {
|
|
6663
6663
|
e && e.setAttribute(t2, String(n || ""));
|
|
6664
6664
|
});
|
|
6665
6665
|
}, fl = (e, t) => {
|
|
6666
|
-
|
|
6666
|
+
Sc(cl(t), (t2) => e && e.removeAttribute(t2));
|
|
6667
6667
|
}, pl = (e, t) => {
|
|
6668
6668
|
const n = cl(ll(e, t)), o2 = Xc(dl, e, t), i = (e2, t2) => {
|
|
6669
6669
|
const o3 = new Set(n);
|
|
6670
|
-
return
|
|
6670
|
+
return Sc(cl(e2), (e3) => {
|
|
6671
6671
|
o3[t2](e3);
|
|
6672
|
-
}),
|
|
6672
|
+
}), Ic(o3).join(" ");
|
|
6673
6673
|
};
|
|
6674
6674
|
return { C: (e2) => o2(i(e2, "delete")), $: (e2) => o2(i(e2, "add")), H: (e2) => {
|
|
6675
6675
|
const t2 = cl(e2);
|
|
6676
6676
|
return t2.reduce((e3, t3) => e3 && n.includes(t3), t2.length > 0);
|
|
6677
6677
|
} };
|
|
6678
|
-
}, ml = (e, t, n) => (pl(e, t).C(n), Xc(hl, e, t, n)), hl = (e, t, n) => (pl(e, t).$(n), Xc(ml, e, t, n)), gl = (e, t, n, o2) => (o2 ? hl : ml)(e, t, n), yl = (e, t, n) => pl(e, t).H(n), vl = (e) => pl(e, "class"),
|
|
6678
|
+
}, ml = (e, t, n) => (pl(e, t).C(n), Xc(hl, e, t, n)), hl = (e, t, n) => (pl(e, t).$(n), Xc(ml, e, t, n)), gl = (e, t, n, o2) => (o2 ? hl : ml)(e, t, n), yl = (e, t, n) => pl(e, t).H(n), vl = (e) => pl(e, "class"), bl = (e, t) => {
|
|
6679
6679
|
vl(e).C(t);
|
|
6680
|
-
},
|
|
6681
|
-
const n = t ?
|
|
6682
|
-
return n ?
|
|
6683
|
-
}, xl = (e, t) =>
|
|
6680
|
+
}, wl = (e, t) => (vl(e).$(t), Xc(bl, e, t)), kl = (e, t) => {
|
|
6681
|
+
const n = t ? Cc(t) && t : document;
|
|
6682
|
+
return n ? Ic(n.querySelectorAll(e)) : [];
|
|
6683
|
+
}, xl = (e, t) => Cc(e) && e.matches(t), Cl = (e) => xl(e, "body"), Sl = (e) => e ? Ic(e.childNodes) : [], Nl = (e) => e && e.parentElement, El = (e, t) => Cc(e) && e.closest(t), Pl = (e) => document.activeElement, Il = (e, t, n) => {
|
|
6684
6684
|
const o2 = El(e, t), i = e && ((e2, t2) => {
|
|
6685
|
-
const n2 = t2 ?
|
|
6685
|
+
const n2 = t2 ? Cc(t2) && t2 : document;
|
|
6686
6686
|
return n2 && n2.querySelector(e2);
|
|
6687
6687
|
})(n, o2), r2 = El(i, t) === o2;
|
|
6688
6688
|
return !(!o2 || !i) && (o2 === e || i === e || r2 && El(El(e, n), t) !== o2);
|
|
6689
6689
|
}, Al = (e) => {
|
|
6690
|
-
|
|
6690
|
+
Sc(Ac(e), (e2) => {
|
|
6691
6691
|
const t = Nl(e2);
|
|
6692
6692
|
e2 && t && t.removeChild(e2);
|
|
6693
6693
|
});
|
|
6694
|
-
}, Ol = (e, t) => Xc(Al, e && t &&
|
|
6694
|
+
}, Ol = (e, t) => Xc(Al, e && t && Sc(Ac(t), (t2) => {
|
|
6695
6695
|
t2 && e.appendChild(t2);
|
|
6696
6696
|
}));
|
|
6697
6697
|
let Ll;
|
|
@@ -6700,13 +6700,13 @@
|
|
|
6700
6700
|
return dl(t, "class", e), t;
|
|
6701
6701
|
}, Tl = (e) => {
|
|
6702
6702
|
const t = Dl(), n = Ll, o2 = e.trim();
|
|
6703
|
-
return t.innerHTML = n ? n.createHTML(o2) : o2,
|
|
6703
|
+
return t.innerHTML = n ? n.createHTML(o2) : o2, Sc(Sl(t), (e2) => Al(e2));
|
|
6704
6704
|
}, Rl = (e, t) => e.getPropertyValue(t) || e[t] || "", Bl = (e) => {
|
|
6705
6705
|
const t = e || 0;
|
|
6706
6706
|
return isFinite(t) ? t : 0;
|
|
6707
6707
|
}, Ml = (e) => Bl(parseFloat(e || "")), Fl = (e) => Math.round(1e4 * e) / 1e4, $l = (e) => `${Fl(Bl(e))}px`;
|
|
6708
6708
|
function _l(e, t) {
|
|
6709
|
-
e && t &&
|
|
6709
|
+
e && t && Sc(t, (t2, n) => {
|
|
6710
6710
|
try {
|
|
6711
6711
|
const o2 = e.style, i = pc(t2) || gc(t2) ? "" : mc(t2) ? $l(t2) : t2;
|
|
6712
6712
|
0 === n.indexOf("--") ? o2.setProperty(n, i) : o2[n] = i;
|
|
@@ -6719,21 +6719,21 @@
|
|
|
6719
6719
|
let i = o2 ? "" : {};
|
|
6720
6720
|
if (e) {
|
|
6721
6721
|
const r2 = Xs.getComputedStyle(e, n) || e.style;
|
|
6722
|
-
i = o2 ? Rl(r2, t) :
|
|
6722
|
+
i = o2 ? Rl(r2, t) : Ic(t).reduce((e2, t2) => (e2[t2] = Rl(r2, t2), e2), i);
|
|
6723
6723
|
}
|
|
6724
6724
|
return i;
|
|
6725
6725
|
}
|
|
6726
6726
|
const zl = (e, t, n) => {
|
|
6727
6727
|
const o2 = t ? `${t}-` : "", i = n ? `-${n}` : "", r2 = `${o2}top${i}`, a = `${o2}right${i}`, s = `${o2}bottom${i}`, c = `${o2}left${i}`, l = jl(e, [r2, a, s, c]);
|
|
6728
6728
|
return { t: Ml(l[r2]), r: Ml(l[a]), b: Ml(l[s]), l: Ml(l[c]) };
|
|
6729
|
-
}, Hl = (e, t) => "translate" + (
|
|
6729
|
+
}, Hl = (e, t) => "translate" + (bc(e) ? `(${e.x},${e.y})` : `${t ? "X" : "Y"}(${e})`), Wl = { w: 0, h: 0 }, Vl = (e, t) => t ? { w: t[`${e}Width`], h: t[`${e}Height`] } : Wl, Ul = (e) => Vl("inner", e || Xs), Kl = Xc(Vl, "offset"), Gl = Xc(Vl, "client"), ql = Xc(Vl, "scroll"), Jl = (e) => {
|
|
6730
6730
|
const t = parseFloat(jl(e, Hc)) || 0, n = parseFloat(jl(e, Wc)) || 0;
|
|
6731
6731
|
return { w: t - ec(t), h: n - ec(n) };
|
|
6732
6732
|
}, Yl = (e) => e.getBoundingClientRect(), Xl = (e) => !(!e || !e[Wc] && !e[Hc]), Ql = (e, t) => {
|
|
6733
6733
|
const n = Xl(e);
|
|
6734
6734
|
return !Xl(t) && n;
|
|
6735
6735
|
}, Zl = (e, t, n, o2) => {
|
|
6736
|
-
|
|
6736
|
+
Sc(cl(t), (t2) => {
|
|
6737
6737
|
e && e.removeEventListener(t2, n, o2);
|
|
6738
6738
|
});
|
|
6739
6739
|
}, eu = (e, t, n, o2) => {
|
|
@@ -6767,7 +6767,7 @@
|
|
|
6767
6767
|
}, lu = (e) => {
|
|
6768
6768
|
e && e.focus && e.focus({ preventScroll: true, focusVisible: false });
|
|
6769
6769
|
}, uu = (e, t) => {
|
|
6770
|
-
|
|
6770
|
+
Sc(Ac(t), e);
|
|
6771
6771
|
}, du = (e) => {
|
|
6772
6772
|
const t = /* @__PURE__ */ new Map(), n = (e2, n2) => {
|
|
6773
6773
|
if (e2) {
|
|
@@ -6788,13 +6788,13 @@
|
|
|
6788
6788
|
}
|
|
6789
6789
|
gc(i) && i && n();
|
|
6790
6790
|
const r2 = nl(e2), a = [];
|
|
6791
|
-
return
|
|
6791
|
+
return Sc(r2, (t2) => {
|
|
6792
6792
|
const n2 = e2[t2];
|
|
6793
|
-
n2 &&
|
|
6793
|
+
n2 && Pc(a, o2(t2, n2));
|
|
6794
6794
|
}), Xc(Dc, a);
|
|
6795
6795
|
};
|
|
6796
6796
|
return o2(e || {}), [o2, n, (e2, n2) => {
|
|
6797
|
-
|
|
6797
|
+
Sc(Ic(t.get(e2)), (e3) => {
|
|
6798
6798
|
n2 && !Oc(n2) ? e3.apply(0, n2) : e3();
|
|
6799
6799
|
});
|
|
6800
6800
|
}];
|
|
@@ -6804,7 +6804,7 @@
|
|
|
6804
6804
|
const e2 = n ? l(a, s, t) : l(t);
|
|
6805
6805
|
return (c || pu)[o2] = e2;
|
|
6806
6806
|
}
|
|
6807
|
-
}), hu = (e) => pu[e], gu = "data-overlayscrollbars", yu = "os-environment", vu = `${yu}-scrollbar-hidden`,
|
|
6807
|
+
}), hu = (e) => pu[e], gu = "data-overlayscrollbars", yu = "os-environment", vu = `${yu}-scrollbar-hidden`, bu = `${gu}-initialize`, wu = "noClipping", ku = `${gu}-body`, xu = gu, Cu = `${gu}-viewport`, Su = jc, Nu = zc, Eu = "measuring", Pu = "scrollbarHidden", Iu = `${gu}-padding`, Au = `${gu}-content`, Ou = "os-size-observer", Lu = `${Ou}-appear`, Du = `${Ou}-listener`, Tu = "os-scrollbar", Ru = `${Tu}-rtl`, Bu = `${Tu}-horizontal`, Mu = `${Tu}-vertical`, Fu = `${Tu}-track`, $u = `${Tu}-handle`, _u = `${Tu}-visible`, ju = `${Tu}-cornerless`, zu = `${Tu}-interaction`, Hu = `${Tu}-unusable`, Wu = `${Tu}-auto-hide`, Vu = `${Wu}-hidden`, Uu = `${Tu}-wheel`, Ku = `${Fu}-interactive`, Gu = `${$u}-interactive`, qu = (e) => 0 === e.indexOf(Vc), Ju = (e, t) => {
|
|
6808
6808
|
if ("auto" === e)
|
|
6809
6809
|
return t ? Kc : Uc;
|
|
6810
6810
|
const n = e || Uc;
|
|
@@ -6818,9 +6818,9 @@
|
|
|
6818
6818
|
return t;
|
|
6819
6819
|
}), Zu = (e, t) => e ? `${t}`.split(".").reduce((e2, t2) => e2 && tl(e2, t2) ? e2[t2] : void 0, e) : void 0, ed = [33, 99], td = [222, 666, true], nd = { paddingAbsolute: false, showNativeOverlaidScrollbars: false, update: { elementEvents: [["img", "load"]], debounce: { mutation: [0, 33], resize: null, event: ed, env: td }, attributes: null, ignoreMutation: null, flowDirectionStyles: null }, overflow: { x: "scroll", y: "scroll" }, scrollbars: { theme: "os-theme-dark", visibility: "auto", autoHide: "never", autoHideDelay: 1300, autoHideSuspend: false, dragScroll: true, clickScroll: false, pointers: ["mouse", "touch", "pen"] } }, od = (e, t) => {
|
|
6820
6820
|
const n = {};
|
|
6821
|
-
return
|
|
6821
|
+
return Sc(Ec(nl(t), nl(e)), (o2) => {
|
|
6822
6822
|
const i = e[o2], r2 = t[o2];
|
|
6823
|
-
if (
|
|
6823
|
+
if (bc(i) && bc(r2))
|
|
6824
6824
|
ol(n[o2] = {}, od(i, r2)), rl(n[o2]) && delete n[o2];
|
|
6825
6825
|
else if (tl(t, o2) && r2 !== i) {
|
|
6826
6826
|
let e2 = true;
|
|
@@ -6844,13 +6844,13 @@
|
|
|
6844
6844
|
i && (o2.nonce = i);
|
|
6845
6845
|
const [r2, , a] = du(), [s, c] = Ys({ o: e(t, n), i: Jc }, Xc(e, t, n, true)), [l] = c(), u = ((e2) => {
|
|
6846
6846
|
let t2 = false;
|
|
6847
|
-
const n2 =
|
|
6847
|
+
const n2 = wl(e2, vu);
|
|
6848
6848
|
try {
|
|
6849
6849
|
t2 = "none" === jl(e2, "scrollbar-width") || "none" === jl(e2, "display", "::-webkit-scrollbar");
|
|
6850
6850
|
} catch (e3) {
|
|
6851
6851
|
}
|
|
6852
6852
|
return n2(), t2;
|
|
6853
|
-
})(t), d = { x: 0 === l.x, y: 0 === l.y }, f = { elements: { host: null, padding: !u, viewport: (e2) => u &&
|
|
6853
|
+
})(t), d = { x: 0 === l.x, y: 0 === l.y }, f = { elements: { host: null, padding: !u, viewport: (e2) => u && Cl(e2) && e2, content: false }, scrollbars: { slot: true }, cancel: { nativeScrollbarsOverlaid: false, body: null } }, p = ol({}, nd), m = Xc(ol, {}, p), h = Xc(ol, {}, f), g = { P: l, k: d, U: u, J: !!dc, G: Xc(r2, "r"), K: h, Z: (e2) => ol(f, e2) && h(), tt: m, nt: (e2) => ol(p, e2) && m(), ot: ol({}, f), st: ol({}, p) };
|
|
6854
6854
|
if (fl(t, "style"), Al(t), eu(Xs, "resize", () => {
|
|
6855
6855
|
a("r", []);
|
|
6856
6856
|
}), yc(Xs.matchMedia) && !u && (!d.x || !d.y)) {
|
|
@@ -6876,13 +6876,13 @@
|
|
|
6876
6876
|
const [n3, o4] = t3 || [];
|
|
6877
6877
|
return [o4 && n3 ? (r4 || kl)(n3, e2) : [], o4];
|
|
6878
6878
|
});
|
|
6879
|
-
|
|
6879
|
+
Sc(a2, (n3) => Sc(n3[0], (r5) => {
|
|
6880
6880
|
const a3 = n3[1], s2 = i2.get(r5) || [];
|
|
6881
6881
|
if (e2.contains(r5) && a3) {
|
|
6882
6882
|
const e3 = eu(r5, a3, (n4) => {
|
|
6883
6883
|
o3 ? (e3(), i2.delete(r5)) : t2(n4);
|
|
6884
6884
|
});
|
|
6885
|
-
i2.set(r5,
|
|
6885
|
+
i2.set(r5, Pc(s2, e3));
|
|
6886
6886
|
} else
|
|
6887
6887
|
Dc(s2), i2.delete(r5);
|
|
6888
6888
|
}));
|
|
@@ -6895,14 +6895,14 @@
|
|
|
6895
6895
|
if (!Oc(r3)) {
|
|
6896
6896
|
const a2 = l || al, s2 = u || al, d2 = [], m2 = [];
|
|
6897
6897
|
let h2 = false, g2 = false;
|
|
6898
|
-
if (
|
|
6899
|
-
const { attributeName: i3, target: r4, type: l2, oldValue: u2, addedNodes: f2, removedNodes: y } = n2, v = "attributes" === l2,
|
|
6900
|
-
if (t && (
|
|
6901
|
-
const t2 = v &&
|
|
6902
|
-
|
|
6898
|
+
if (Sc(r3, (n2) => {
|
|
6899
|
+
const { attributeName: i3, target: r4, type: l2, oldValue: u2, addedNodes: f2, removedNodes: y } = n2, v = "attributes" === l2, b = "childList" === l2, w2 = e === r4, k = v && i3, x = k && ll(r4, i3 || ""), C2 = hc(x) ? x : null, S2 = k && u2 !== C2, N2 = Nc(p, i3) && S2;
|
|
6900
|
+
if (t && (b || !w2)) {
|
|
6901
|
+
const t2 = v && S2, l3 = t2 && c && xl(r4, c), p2 = (l3 ? !a2(r4, i3, u2, C2) : !v || t2) && !s2(n2, !!l3, e, o2);
|
|
6902
|
+
Sc(f2, (e2) => Pc(d2, e2)), Sc(y, (e2) => Pc(d2, e2)), g2 = g2 || p2;
|
|
6903
6903
|
}
|
|
6904
|
-
!t &&
|
|
6905
|
-
}), f((e2) => Lc(d2).reduce((t2, n2) => (
|
|
6904
|
+
!t && w2 && S2 && !a2(r4, i3, u2, C2) && (Pc(m2, i3), h2 = h2 || N2);
|
|
6905
|
+
}), f((e2) => Lc(d2).reduce((t2, n2) => (Pc(t2, kl(e2, n2)), xl(n2, e2) ? Pc(t2, n2) : t2), [])), t)
|
|
6906
6906
|
return !i2 && g2 && n(false), [false];
|
|
6907
6907
|
if (!Oc(m2) || h2) {
|
|
6908
6908
|
const e2 = [Lc(m2), h2];
|
|
@@ -6938,18 +6938,18 @@
|
|
|
6938
6938
|
} }), ud = ud || false, t3.disconnect();
|
|
6939
6939
|
}
|
|
6940
6940
|
const t2 = el(c, { p: 0, v: 0 }), o3 = (e2) => t2(e2), i2 = new uc(o3);
|
|
6941
|
-
if (i2.observe(ud ? e : s),
|
|
6941
|
+
if (i2.observe(ud ? e : s), Pc(n2, [() => {
|
|
6942
6942
|
i2.disconnect();
|
|
6943
6943
|
}, !ud && Ol(e, a)]), ud) {
|
|
6944
6944
|
const t3 = new uc(o3);
|
|
6945
|
-
t3.observe(e, { box: "border-box" }),
|
|
6945
|
+
t3.observe(e, { box: "border-box" }), Pc(n2, () => t3.disconnect());
|
|
6946
6946
|
}
|
|
6947
6947
|
} else {
|
|
6948
6948
|
if (!i)
|
|
6949
6949
|
return al;
|
|
6950
6950
|
{
|
|
6951
6951
|
const [t2, r3] = i(s, c, o2);
|
|
6952
|
-
|
|
6952
|
+
Pc(n2, Ec([wl(a, Lu), eu(a, "animationstart", t2), Ol(e, a)], r3));
|
|
6953
6953
|
}
|
|
6954
6954
|
}
|
|
6955
6955
|
return Xc(Dc, n2);
|
|
@@ -6965,7 +6965,7 @@
|
|
|
6965
6965
|
return [() => {
|
|
6966
6966
|
const t2 = [];
|
|
6967
6967
|
if (lc)
|
|
6968
|
-
n = new lc(Xc(a, false), { root: e }), n.observe(o2),
|
|
6968
|
+
n = new lc(Xc(a, false), { root: e }), n.observe(o2), Pc(t2, () => {
|
|
6969
6969
|
n.disconnect();
|
|
6970
6970
|
});
|
|
6971
6971
|
else {
|
|
@@ -6973,14 +6973,14 @@
|
|
|
6973
6973
|
const e3 = Kl(o2);
|
|
6974
6974
|
r2(e3);
|
|
6975
6975
|
};
|
|
6976
|
-
|
|
6976
|
+
Pc(t2, dd(o2, e2)()), e2();
|
|
6977
6977
|
}
|
|
6978
|
-
return Xc(Dc,
|
|
6978
|
+
return Xc(Dc, Pc(t2, Ol(e, o2)));
|
|
6979
6979
|
}, () => n && a(true, n.takeRecords())];
|
|
6980
6980
|
}, pd = (e, t, n, o2) => {
|
|
6981
6981
|
let i, r2, a, s, c, l, u, d;
|
|
6982
|
-
const f = `[${xu}]`, p = `[${
|
|
6983
|
-
const o3 =
|
|
6982
|
+
const f = `[${xu}]`, p = `[${Cu}]`, m = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: h, vt: g, L: y, gt: v, ht: b, V: w2, bt: k, wt: x, yt: C2, St: S2 } = e, N2 = (e2) => "rtl" === jl(e2, "direction"), E2 = { Ot: false, B: N2(h) }, P2 = cd(), I2 = hu(Xu), [A] = Ys({ i: qc, o: { w: 0, h: 0 } }, () => {
|
|
6983
|
+
const o3 = I2 && I2.R(e, t, E2, P2, n).Y, i2 = !(k && w2) && yl(g, xu, wu), r3 = !w2 && x("arrange"), a2 = r3 && ru(v), s2 = a2 && S2(), c2 = C2(Eu, i2), l2 = r3 && o3 && o3(), u2 = ql(y), d2 = Jl(y);
|
|
6984
6984
|
return l2 && l2(), iu(v, a2), s2 && s2(), i2 && c2(), { w: u2.w + d2.w, h: u2.h + d2.h };
|
|
6985
6985
|
}), O = (() => {
|
|
6986
6986
|
let e2, t2, n2;
|
|
@@ -7011,13 +7011,13 @@
|
|
|
7011
7011
|
}, B2 = (e2, t2, n2) => {
|
|
7012
7012
|
const o3 = { Ht: t2 };
|
|
7013
7013
|
return L2(o3), t2 && !n2 && O(o3, i), o3;
|
|
7014
|
-
}, [M2, F] =
|
|
7014
|
+
}, [M2, F] = b ? fd(g, D2) : [], $2 = !w2 && dd(g, T2, { ft: true }), [_2, j2] = ld(g, false, B2, { ct: m, et: m }), z2 = w2 && uc && new uc((e2) => {
|
|
7015
7015
|
const t2 = e2[e2.length - 1].contentRect;
|
|
7016
7016
|
T2({ _t: true, ft: Ql(t2, u) }), u = t2;
|
|
7017
7017
|
});
|
|
7018
7018
|
return [() => {
|
|
7019
7019
|
z2 && z2.observe(g);
|
|
7020
|
-
const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 =
|
|
7020
|
+
const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 = P2.G((e3) => {
|
|
7021
7021
|
const [, t3] = A();
|
|
7022
7022
|
O({ Et: e3, xt: t3, _t: k }, s);
|
|
7023
7023
|
});
|
|
@@ -7025,18 +7025,18 @@
|
|
|
7025
7025
|
z2 && z2.disconnect(), e2 && e2(), t2 && t2(), l && l(), n2(), o3();
|
|
7026
7026
|
};
|
|
7027
7027
|
}, ({ zt: e2, It: t2, At: n2 }) => {
|
|
7028
|
-
const o3 = {}, [u2] = e2("update.ignoreMutation"), [d2, h2] = e2("update.attributes"), [g2, v2] = e2("update.elementEvents"), [k2, x2] = e2("update.debounce"),
|
|
7028
|
+
const o3 = {}, [u2] = e2("update.ignoreMutation"), [d2, h2] = e2("update.attributes"), [g2, v2] = e2("update.elementEvents"), [k2, x2] = e2("update.debounce"), C3 = t2 || n2;
|
|
7029
7029
|
if (v2 || h2) {
|
|
7030
7030
|
c && c(), l && l();
|
|
7031
|
-
const [e3, t3] = ld(
|
|
7031
|
+
const [e3, t3] = ld(b || y, true, R2, { et: Ec(m, d2 || []), rt: g2, it: f, ut: (e4, t4) => {
|
|
7032
7032
|
const { target: n3, attributeName: o4 } = e4;
|
|
7033
|
-
return !(t4 || !o4 ||
|
|
7033
|
+
return !(t4 || !o4 || w2) && Il(n3, f, p) || !!El(n3, `.${Tu}`) || !!((e5) => yc(u2) && u2(e5))(e4);
|
|
7034
7034
|
} });
|
|
7035
7035
|
l = e3(), c = t3;
|
|
7036
7036
|
}
|
|
7037
|
-
if (x2 && (O.O(), vc(k2) || mc(k2) ? (i = k2, r2 = false, a = ed, s = td) : kc(k2) ? (i = k2.mutation, r2 = k2.resize, a = k2.event, s = k2.env) : (i = false, r2 = false, a = false, s = false)),
|
|
7037
|
+
if (x2 && (O.O(), vc(k2) || mc(k2) ? (i = k2, r2 = false, a = ed, s = td) : kc(k2) ? (i = k2.mutation, r2 = k2.resize, a = k2.event, s = k2.env) : (i = false, r2 = false, a = false, s = false)), C3) {
|
|
7038
7038
|
const e3 = j2(), t3 = F && F(), n3 = c && c();
|
|
7039
|
-
e3 && ol(o3, B2(e3[0], e3[1],
|
|
7039
|
+
e3 && ol(o3, B2(e3[0], e3[1], C3)), t3 && ol(o3, D2(t3[0], C3)), n3 && ol(o3, R2(n3[0], C3));
|
|
7040
7040
|
}
|
|
7041
7041
|
return L2(o3), o3;
|
|
7042
7042
|
}, E2];
|
|
@@ -7047,7 +7047,7 @@
|
|
|
7047
7047
|
const i = fc(o2) ? n : o2, r2 = md(e, i);
|
|
7048
7048
|
return !!r2 && (xc(r2) ? r2 : t.apply(0, e));
|
|
7049
7049
|
}, yd = (e, t, n, o2) => {
|
|
7050
|
-
const i = "--os-viewport-percent", r2 = "--os-scroll-percent", a = "--os-scroll-direction", { K: s } = cd(), { scrollbars: c } = s(), { slot: l } = c, { dt: u, vt: d, L: f, Tt: p, gt: m, bt: h, V: g } = t, { scrollbars: y } = p ? {} : e, { slot: v } = y || {},
|
|
7050
|
+
const i = "--os-viewport-percent", r2 = "--os-scroll-percent", a = "--os-scroll-direction", { K: s } = cd(), { scrollbars: c } = s(), { slot: l } = c, { dt: u, vt: d, L: f, Tt: p, gt: m, bt: h, V: g } = t, { scrollbars: y } = p ? {} : e, { slot: v } = y || {}, b = [], w2 = [], k = [], x = gd([u, d, f], () => g && h ? u : d, l, v), C2 = (e2) => {
|
|
7051
7051
|
if (dc) {
|
|
7052
7052
|
let t2 = null, o3 = [];
|
|
7053
7053
|
const i2 = new dc({ source: m, axis: e2 }), r3 = () => {
|
|
@@ -7058,37 +7058,37 @@
|
|
|
7058
7058
|
};
|
|
7059
7059
|
return { kt: a2 };
|
|
7060
7060
|
}
|
|
7061
|
-
},
|
|
7062
|
-
const o3 = n2 ?
|
|
7063
|
-
|
|
7061
|
+
}, S2 = { x: C2("x"), y: C2("y") }, N2 = (e2, t2, n2) => {
|
|
7062
|
+
const o3 = n2 ? wl : bl;
|
|
7063
|
+
Sc(e2, (e3) => {
|
|
7064
7064
|
o3(e3.Lt, t2);
|
|
7065
7065
|
});
|
|
7066
7066
|
}, E2 = (e2, t2) => {
|
|
7067
|
-
|
|
7067
|
+
Sc(e2, (e3) => {
|
|
7068
7068
|
const [n2, o3] = t2(e3);
|
|
7069
7069
|
_l(n2, o3);
|
|
7070
7070
|
});
|
|
7071
|
-
},
|
|
7071
|
+
}, P2 = (e2, t2, n2) => {
|
|
7072
7072
|
const o3 = gc(n2), i2 = !o3 || !n2;
|
|
7073
|
-
(!o3 || n2) && N2(
|
|
7074
|
-
},
|
|
7075
|
-
const t2 = e2 ? "x" : "y", n2 = Dl(`${Tu} ${e2 ? Bu : Mu}`), i2 = Dl(Fu), r3 = Dl($u), a2 = { Lt: n2, Ut: i2, Mt: r3 }, s2 =
|
|
7076
|
-
return
|
|
7077
|
-
}, A = Xc(
|
|
7073
|
+
(!o3 || n2) && N2(w2, e2, t2), i2 && N2(k, e2, t2);
|
|
7074
|
+
}, I2 = (e2) => {
|
|
7075
|
+
const t2 = e2 ? "x" : "y", n2 = Dl(`${Tu} ${e2 ? Bu : Mu}`), i2 = Dl(Fu), r3 = Dl($u), a2 = { Lt: n2, Ut: i2, Mt: r3 }, s2 = S2[t2];
|
|
7076
|
+
return Pc(e2 ? w2 : k, a2), Pc(b, [Ol(n2, i2), Ol(i2, r3), Xc(Al, n2), s2 && s2.kt(a2), o2(a2, P2, e2)]), a2;
|
|
7077
|
+
}, A = Xc(I2, true), O = Xc(I2, false);
|
|
7078
7078
|
return A(), O(), [{ Pt: () => {
|
|
7079
7079
|
const e2 = (() => {
|
|
7080
7080
|
const { Rt: e3, Vt: t3 } = n, o3 = (e4, t4) => sl(0, 1, e4 / (e4 + t4) || 0);
|
|
7081
7081
|
return { x: o3(t3.x, e3.x), y: o3(t3.y, e3.y) };
|
|
7082
7082
|
})(), t2 = (e3) => (t3) => [t3.Lt, { [i]: Fl(e3) + "" }];
|
|
7083
|
-
E2(
|
|
7083
|
+
E2(w2, t2(e2.x)), E2(k, t2(e2.y));
|
|
7084
7084
|
}, Nt: () => {
|
|
7085
7085
|
if (!dc) {
|
|
7086
7086
|
const { Dt: e2 } = n, t2 = cu(e2, ru(m)), o3 = (e3) => (t3) => [t3.Lt, { [r2]: Fl(e3) + "" }];
|
|
7087
|
-
E2(
|
|
7087
|
+
E2(w2, o3(t2.x)), E2(k, o3(t2.y));
|
|
7088
7088
|
}
|
|
7089
7089
|
}, qt: () => {
|
|
7090
7090
|
const { Dt: e2 } = n, t2 = su(e2), o3 = (e3) => (t3) => [t3.Lt, { [a]: e3 ? "0" : "1" }];
|
|
7091
|
-
E2(
|
|
7091
|
+
E2(w2, o3(t2.x)), E2(k, o3(t2.y)), dc && (w2.forEach(S2.x.kt), k.forEach(S2.y.kt));
|
|
7092
7092
|
}, Bt: () => {
|
|
7093
7093
|
if (g && !h) {
|
|
7094
7094
|
const { Rt: e2, Dt: t2 } = n, o3 = su(t2), i2 = cu(t2, ru(m)), r3 = (t3) => {
|
|
@@ -7098,11 +7098,11 @@
|
|
|
7098
7098
|
};
|
|
7099
7099
|
return [r4, r4 && { transform: Hl({ x: a2(i2.x, e2.x, o3.x), y: a2(i2.y, e2.y, o3.y) }) }];
|
|
7100
7100
|
};
|
|
7101
|
-
E2(
|
|
7101
|
+
E2(w2, r3), E2(k, r3);
|
|
7102
7102
|
}
|
|
7103
|
-
}, Ft:
|
|
7103
|
+
}, Ft: P2, jt: { Xt: w2, Yt: A, Wt: Xc(E2, w2) }, Jt: { Xt: k, Yt: O, Wt: Xc(E2, k) } }, () => (Ol(x, w2[0].Lt), Ol(x, k[0].Lt), Xc(Dc, b))];
|
|
7104
7104
|
}, vd = (e, t, n, o2) => (i, r2, a) => {
|
|
7105
|
-
const { vt: s, L: c, V: l, gt: u, Gt: d, St: f } = t, { Lt: p, Ut: m, Mt: h } = i, [g, y] = Qc(333), [v,
|
|
7105
|
+
const { vt: s, L: c, V: l, gt: u, Gt: d, St: f } = t, { Lt: p, Ut: m, Mt: h } = i, [g, y] = Qc(333), [v, b] = Qc(444), w2 = (e2) => {
|
|
7106
7106
|
yc(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: e2.x, top: e2.y });
|
|
7107
7107
|
};
|
|
7108
7108
|
let k = true;
|
|
@@ -7111,11 +7111,11 @@
|
|
|
7111
7111
|
}), eu(p, "pointerleave pointercancel", () => {
|
|
7112
7112
|
r2(zu, false);
|
|
7113
7113
|
}), !l && eu(p, "mousedown", () => {
|
|
7114
|
-
const e2 =
|
|
7115
|
-
(ul(e2,
|
|
7114
|
+
const e2 = Pl();
|
|
7115
|
+
(ul(e2, Cu) || ul(e2, xu) || e2 === document.body) && rc(Xc(lu, c), 25);
|
|
7116
7116
|
}), eu(p, "wheel", (e2) => {
|
|
7117
7117
|
const { deltaX: t2, deltaY: n2, deltaMode: o3 } = e2;
|
|
7118
|
-
k && 0 === o3 && Nl(p) === s &&
|
|
7118
|
+
k && 0 === o3 && Nl(p) === s && w2({ x: t2, y: n2 }), k = false, r2(Uu, true), g(() => {
|
|
7119
7119
|
k = true, r2(Uu);
|
|
7120
7120
|
}), nu(e2);
|
|
7121
7121
|
}, { I: false, A: true }), eu(p, "pointerdown", () => {
|
|
@@ -7130,16 +7130,16 @@
|
|
|
7130
7130
|
iu(u, { [c2]: e2 + a2 });
|
|
7131
7131
|
}, p2 = [];
|
|
7132
7132
|
return eu(m, "pointerdown", (n2) => {
|
|
7133
|
-
const a2 = El(n2.target, `.${$u}`) === h, g2 = a2 ? h : m, y2 = e.scrollbars, k2 = y2[a2 ? "dragScroll" : "clickScroll"], { button: x, isPrimary:
|
|
7134
|
-
if (0 === x &&
|
|
7135
|
-
Dc(p2),
|
|
7136
|
-
const e2 = !a2 && (n2.shiftKey || "instant" === k2), y3 = Xc(Yl, h), x2 = Xc(Yl, m),
|
|
7133
|
+
const a2 = El(n2.target, `.${$u}`) === h, g2 = a2 ? h : m, y2 = e.scrollbars, k2 = y2[a2 ? "dragScroll" : "clickScroll"], { button: x, isPrimary: C2, pointerType: S2 } = n2, { pointers: N2 } = y2;
|
|
7134
|
+
if (0 === x && C2 && k2 && (N2 || []).includes(S2)) {
|
|
7135
|
+
Dc(p2), b();
|
|
7136
|
+
const e2 = !a2 && (n2.shiftKey || "instant" === k2), y3 = Xc(Yl, h), x2 = Xc(Yl, m), C3 = (e3, t3) => (e3 || y3())[r3] - (t3 || x2())[r3], S3 = ec(Yl(u)[i2]) / Kl(u)[s2] || 1, N3 = l2(ru(u)[c2], 1 / S3), E2 = n2[o3], P2 = y3(), I2 = x2(), A = P2[i2], O = C3(P2, I2) + A / 2, L2 = E2 - I2[r3], D2 = a2 ? 0 : L2 - O, T2 = (e3) => {
|
|
7137
7137
|
Dc(M2), g2.releasePointerCapture(e3.pointerId);
|
|
7138
7138
|
}, R2 = a2 || e2, B2 = f(), M2 = [eu(d, t2, T2), eu(d, "selectstart", (e3) => nu(e3), { I: false }), eu(m, t2, T2), R2 && eu(m, "pointermove", (e3) => N3(D2 + (e3[o3] - E2))), R2 && (() => {
|
|
7139
7139
|
const e3 = ru(u);
|
|
7140
7140
|
B2();
|
|
7141
7141
|
const t3 = ru(u), n3 = { x: t3.x - e3.x, y: t3.y - e3.y };
|
|
7142
|
-
(tc(n3.x) > 3 || tc(n3.y) > 3) && (f(), iu(u, e3),
|
|
7142
|
+
(tc(n3.x) > 3 || tc(n3.y) > 3) && (f(), iu(u, e3), w2(n3), v(B2));
|
|
7143
7143
|
})];
|
|
7144
7144
|
if (g2.setPointerCapture(n2.pointerId), e2)
|
|
7145
7145
|
N3(D2);
|
|
@@ -7147,33 +7147,33 @@
|
|
|
7147
7147
|
const e3 = hu("__osClickScrollPlugin");
|
|
7148
7148
|
if (e3) {
|
|
7149
7149
|
const t3 = e3(N3, D2, A, (e4) => {
|
|
7150
|
-
e4 ? B2() :
|
|
7150
|
+
e4 ? B2() : Pc(M2, B2);
|
|
7151
7151
|
});
|
|
7152
|
-
|
|
7152
|
+
Pc(M2, t3), Pc(p2, Xc(t3, true));
|
|
7153
7153
|
}
|
|
7154
7154
|
}
|
|
7155
7155
|
}
|
|
7156
7156
|
});
|
|
7157
|
-
})(), y,
|
|
7158
|
-
},
|
|
7159
|
-
const t = cd(), { K: n, U: o2 } = t, { elements: i } = n(), { padding: r2, viewport: a, content: s } = i, c = xc(e), l = c ? {} : e, { elements: u } = l, { padding: d, viewport: f, content: p } = u || {}, m = c ? e : l.target, h =
|
|
7157
|
+
})(), y, b]);
|
|
7158
|
+
}, bd = (e) => {
|
|
7159
|
+
const t = cd(), { K: n, U: o2 } = t, { elements: i } = n(), { padding: r2, viewport: a, content: s } = i, c = xc(e), l = c ? {} : e, { elements: u } = l, { padding: d, viewport: f, content: p } = u || {}, m = c ? e : l.target, h = Cl(m), g = m.ownerDocument, y = g.documentElement, v = () => g.defaultView || Xs, b = Xc(hd, [m]), w2 = Xc(gd, [m]), k = Xc(Dl, ""), x = Xc(b, k, a), C2 = Xc(w2, k, s), S2 = x(f), N2 = S2 === m, E2 = N2 && h, P2 = !N2 && C2(p), I2 = !N2 && S2 === P2, A = E2 ? y : S2, O = E2 ? A : m, L2 = !N2 && w2(k, r2, d), D2 = !I2 && P2, T2 = [D2, A, L2, O].map((e2) => xc(e2) && !Nl(e2) && e2), R2 = (e2) => e2 && Nc(T2, e2), B2 = !R2(A) && ((e2) => {
|
|
7160
7160
|
const t2 = Kl(e2), n2 = ql(e2), o3 = jl(e2, jc), i2 = jl(e2, zc);
|
|
7161
7161
|
return n2.w - t2.w > 0 && !qu(o3) || n2.h - t2.h > 0 && !qu(i2);
|
|
7162
|
-
})(A) ? A : m, M2 = E2 ? y : A, F = { dt: m, vt: O, L: A, rn: L2, ht: D2, gt: M2, Kt: E2 ? g : A, ln: h ? y : B2, Gt: g, bt: h, Tt: c, V: N2, an: v, wt: (e2) => yl(A,
|
|
7163
|
-
fl(_2, [xu,
|
|
7162
|
+
})(A) ? A : m, M2 = E2 ? y : A, F = { dt: m, vt: O, L: A, rn: L2, ht: D2, gt: M2, Kt: E2 ? g : A, ln: h ? y : B2, Gt: g, bt: h, Tt: c, V: N2, an: v, wt: (e2) => yl(A, Cu, e2), yt: (e2, t2) => gl(A, Cu, e2, t2), St: () => gl(M2, Cu, "scrolling", true) }, { dt: $2, vt: _2, rn: j2, L: z2, ht: H2 } = F, W2 = [() => {
|
|
7163
|
+
fl(_2, [xu, bu]), fl($2, bu), h && fl(y, [bu, xu]);
|
|
7164
7164
|
}];
|
|
7165
|
-
let V2 =
|
|
7165
|
+
let V2 = Sl([H2, z2, j2, _2, $2].find((e2) => e2 && !R2(e2)));
|
|
7166
7166
|
const U2 = E2 ? $2 : H2 || z2, K2 = Xc(Dc, W2);
|
|
7167
7167
|
return [F, () => {
|
|
7168
|
-
const e2 = v(), t2 =
|
|
7169
|
-
Ol(Nl(e3),
|
|
7168
|
+
const e2 = v(), t2 = Pl(), n2 = (e3) => {
|
|
7169
|
+
Ol(Nl(e3), Sl(e3)), Al(e3);
|
|
7170
7170
|
}, i2 = (e3) => eu(e3, "focusin focusout focus blur", ou, { A: true, I: false }), r3 = "tabindex", a2 = ll(z2, r3), s2 = i2(t2);
|
|
7171
|
-
return dl(_2, xu, N2 ? "" : "host"), dl(j2,
|
|
7172
|
-
const e3 =
|
|
7173
|
-
fl(j2,
|
|
7174
|
-
}]), o2 && !N2 && (hl(z2,
|
|
7171
|
+
return dl(_2, xu, N2 ? "" : "host"), dl(j2, Iu, ""), dl(z2, Cu, ""), dl(H2, Au, ""), N2 || (dl(z2, r3, a2 || "-1"), h && dl(y, ku, "")), Ol(U2, V2), Ol(_2, j2), Ol(j2 || _2, !N2 && z2), Ol(z2, H2), Pc(W2, [s2, () => {
|
|
7172
|
+
const e3 = Pl(), t3 = R2(z2), o3 = t3 && e3 === z2 ? $2 : e3, s3 = i2(o3);
|
|
7173
|
+
fl(j2, Iu), fl(H2, Au), fl(z2, Cu), h && fl(y, ku), a2 ? dl(z2, r3, a2) : fl(z2, r3), R2(H2) && n2(H2), t3 && n2(z2), R2(j2) && n2(j2), lu(o3), s3();
|
|
7174
|
+
}]), o2 && !N2 && (hl(z2, Cu, Pu), Pc(W2, Xc(fl, z2, Cu))), lu(!N2 && h && t2 === $2 && e2.top === e2 ? z2 : t2), s2(), V2 = 0, K2;
|
|
7175
7175
|
}, K2];
|
|
7176
|
-
},
|
|
7176
|
+
}, wd = ({ ht: e }) => ({ Qt: t, un: n, At: o2 }) => {
|
|
7177
7177
|
const { $t: i } = t || {}, { Ot: r2 } = n;
|
|
7178
7178
|
e && (i || o2) && _l(e, { [Wc]: r2 && "100%" });
|
|
7179
7179
|
}, kd = ({ vt: e, rn: t, L: n, V: o2 }, i) => {
|
|
@@ -7182,24 +7182,24 @@
|
|
|
7182
7182
|
let [u, d] = a(l);
|
|
7183
7183
|
const { U: f } = cd(), { _t: p, xt: m, Ct: h } = s || {}, { B: g } = c, [y, v] = e2("paddingAbsolute");
|
|
7184
7184
|
(p || d || (l || m)) && ([u, d] = r2(l));
|
|
7185
|
-
const
|
|
7186
|
-
if (
|
|
7185
|
+
const b = !o2 && (v || h || d);
|
|
7186
|
+
if (b) {
|
|
7187
7187
|
const e3 = !y || !t && !f, o3 = u.r + u.l, r3 = u.t + u.b, a2 = { [$c]: e3 && !g ? -o3 : 0, [_c]: e3 ? -r3 : 0, [Fc]: e3 && g ? -o3 : 0, top: e3 ? -u.t : 0, right: e3 ? g ? -u.r : "auto" : 0, left: e3 ? g ? "auto" : -u.l : 0, [Hc]: e3 && `calc(100% + ${o3}px)` }, s2 = { [Tc]: e3 ? u.t : 0, [Rc]: e3 ? u.r : 0, [Mc]: e3 ? u.b : 0, [Bc]: e3 ? u.l : 0 };
|
|
7188
7188
|
_l(t || n, a2), _l(n, s2), ol(i, { rn: u, fn: !e3, F: t ? s2 : ol({}, a2, s2) });
|
|
7189
7189
|
}
|
|
7190
|
-
return { _n:
|
|
7190
|
+
return { _n: b };
|
|
7191
7191
|
};
|
|
7192
7192
|
}, xd = (e, t) => {
|
|
7193
|
-
const n = cd(), { vt: o2, rn: i, L: r2, V: a, Kt: s, gt: c, bt: l, yt: u, an: d } = e, { U: f } = n, p = l && a, m = Xc(Qs, 0), h = { display: () => false, direction: (e2) => "ltr" !== e2, flexDirection: (e2) => e2.endsWith("-reverse"), writingMode: (e2) => "horizontal-tb" !== e2 }, g = nl(h), y = { i: qc, o: { w: 0, h: 0 } }, v = { i: Jc, o: {} },
|
|
7193
|
+
const n = cd(), { vt: o2, rn: i, L: r2, V: a, Kt: s, gt: c, bt: l, yt: u, an: d } = e, { U: f } = n, p = l && a, m = Xc(Qs, 0), h = { display: () => false, direction: (e2) => "ltr" !== e2, flexDirection: (e2) => e2.endsWith("-reverse"), writingMode: (e2) => "horizontal-tb" !== e2 }, g = nl(h), y = { i: qc, o: { w: 0, h: 0 } }, v = { i: Jc, o: {} }, b = (e2) => {
|
|
7194
7194
|
u(Eu, !p && e2);
|
|
7195
|
-
},
|
|
7195
|
+
}, w2 = () => jl(r2, g), k = (e2, t2) => {
|
|
7196
7196
|
const n2 = !nl(e2).length, o3 = !t2 && g.some((t3) => {
|
|
7197
7197
|
const n3 = e2[t3];
|
|
7198
7198
|
return hc(n3) && h[t3](n3);
|
|
7199
7199
|
});
|
|
7200
7200
|
if (n2 && !o3 || !((e3) => !!e3 && ((e4) => !!(e4.offsetWidth || e4.offsetHeight || e4.getClientRects().length))(e3))(r2))
|
|
7201
7201
|
return { D: { x: 0, y: 0 }, M: { x: 1, y: 1 } };
|
|
7202
|
-
|
|
7202
|
+
b(true);
|
|
7203
7203
|
const i2 = ru(c), a2 = eu(s, Kc, (e3) => {
|
|
7204
7204
|
const t3 = ru(c);
|
|
7205
7205
|
e3.isTrusted && t3.x === i2.x && t3.y === i2.y && tu(e3);
|
|
@@ -7209,12 +7209,12 @@
|
|
|
7209
7209
|
iu(c, { x: f2.w, y: f2.h });
|
|
7210
7210
|
const p2 = ru(c), m2 = { x: p2.x - d2.x, y: p2.y - d2.y };
|
|
7211
7211
|
iu(c, { x: -f2.w, y: -f2.h });
|
|
7212
|
-
const y2 = ru(c), v2 = { x: y2.x - d2.x, y: y2.y - d2.y },
|
|
7213
|
-
return iu(c, i2), ic(() => a2()), { D: d2, M:
|
|
7212
|
+
const y2 = ru(c), v2 = { x: y2.x - d2.x, y: y2.y - d2.y }, w3 = { x: tc(m2.x) >= tc(v2.x) ? p2.x : y2.x, y: tc(m2.y) >= tc(v2.y) ? p2.y : y2.y };
|
|
7213
|
+
return iu(c, i2), ic(() => a2()), { D: d2, M: w3 };
|
|
7214
7214
|
}, x = (e2, t2) => {
|
|
7215
7215
|
const n2 = Xs.devicePixelRatio % 1 != 0 ? 1 : 0, o3 = { w: m(e2.w - t2.w), h: m(e2.h - t2.h) };
|
|
7216
7216
|
return { w: o3.w > n2 ? o3.w : 0, h: o3.h > n2 ? o3.h : 0 };
|
|
7217
|
-
},
|
|
7217
|
+
}, C2 = (e2, t2) => {
|
|
7218
7218
|
const n2 = (e3, t3, n3, o3) => {
|
|
7219
7219
|
const i2 = e3 === Vc ? Uc : ((e4) => e4.replace(`${Vc}-`, ""))(e3), r3 = qu(e3), a2 = qu(n3);
|
|
7220
7220
|
if (!t3 && !o3)
|
|
@@ -7227,10 +7227,10 @@
|
|
|
7227
7227
|
return t3 ? i2 : a2 && o3 ? Vc : Uc;
|
|
7228
7228
|
};
|
|
7229
7229
|
return { x: n2(t2.x, e2.x, t2.y, e2.y), y: n2(t2.y, e2.y, t2.x, e2.x) };
|
|
7230
|
-
},
|
|
7230
|
+
}, S2 = (e2) => {
|
|
7231
7231
|
const t2 = (e3) => [Vc, Uc, Kc].map((t3) => _2(Ju(t3), e3)), n2 = t2(true).concat(t2()).join(" ");
|
|
7232
7232
|
u(n2), u(nl(e2).map((t3) => _2(e2[t3], "x" === t3)).join(" "), true);
|
|
7233
|
-
}, [N2, E2] = Ys(y, Xc(Jl, r2)), [
|
|
7233
|
+
}, [N2, E2] = Ys(y, Xc(Jl, r2)), [P2, I2] = Ys(y, Xc(ql, r2)), [A, O] = Ys(y), [L2] = Ys(v), [D2, T2] = Ys(y), [R2] = Ys(v), [B2] = Ys({ i: (e2, t2) => Gc(e2, t2, Lc(Ec(nl(e2), nl(t2)))), o: {} }), [M2, F] = Ys({ i: (e2, t2) => Jc(e2.D, t2.D) && Jc(e2.M, t2.M), o: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }), $2 = hu(Xu), _2 = (e2, t2) => `${t2 ? Su : Nu}${((e3) => {
|
|
7234
7234
|
const t3 = String(e3 || "");
|
|
7235
7235
|
return t3 ? t3[0].toUpperCase() + t3.slice(1) : "";
|
|
7236
7236
|
})(e2)}`;
|
|
@@ -7239,37 +7239,37 @@
|
|
|
7239
7239
|
const { k: n2 } = t2, [o3, i2] = e2("showNativeOverlaidScrollbars");
|
|
7240
7240
|
return [o3 && n2.x && n2.y, i2];
|
|
7241
7241
|
})(a2, n), [q2, J2] = a2("overflow"), Y2 = qu(q2.x), X2 = qu(q2.y), Q2 = g2 || h2 || v2 || _3 || z2 || G2;
|
|
7242
|
-
let Z2 = E2(l2), ee2 =
|
|
7243
|
-
if (G2 && f && u(
|
|
7244
|
-
yl(o2, xu,
|
|
7245
|
-
const e2 = V2 && V2(), [t2] = Z2 = N2(l2), [n2] = ee2 =
|
|
7242
|
+
let Z2 = E2(l2), ee2 = I2(l2), te2 = O(l2), ne2 = T2(l2);
|
|
7243
|
+
if (G2 && f && u(Pu, !K2), Q2) {
|
|
7244
|
+
yl(o2, xu, wu) && b(true);
|
|
7245
|
+
const e2 = V2 && V2(), [t2] = Z2 = N2(l2), [n2] = ee2 = P2(l2), i2 = Gl(r2), a3 = p && Ul(d()), s3 = { w: m(n2.w + t2.w), h: m(n2.h + t2.h) }, c3 = { w: m((a3 ? a3.w : i2.w + m(i2.w - n2.w)) + t2.w), h: m((a3 ? a3.h : i2.h + m(i2.h - n2.h)) + t2.h) };
|
|
7246
7246
|
e2 && e2(), ne2 = D2(c3), te2 = A(x(s3, c3), l2);
|
|
7247
7247
|
}
|
|
7248
|
-
const [oe2, ie2] = ne2, [re2, ae2] = te2, [se2, ce2] = ee2, [le2, ue2] = Z2, [de2, fe2] = L2({ x: re2.w > 0, y: re2.h > 0 }), pe2 = Y2 && X2 && (de2.x || de2.y) || Y2 && de2.x && !de2.y || X2 && de2.y && !de2.x, me2 = h2 || _3 || z2 || ue2 || ce2 || ie2 || ae2 || J2 || G2 || Q2 || y2 && p, [he2] = a2("update.flowDirectionStyles"), [ge2, ye2] = B2(he2 ? he2(r2) :
|
|
7249
|
-
let ke2 =
|
|
7250
|
-
|
|
7251
|
-
const [xe2,
|
|
7252
|
-
return gl(o2, xu,
|
|
7248
|
+
const [oe2, ie2] = ne2, [re2, ae2] = te2, [se2, ce2] = ee2, [le2, ue2] = Z2, [de2, fe2] = L2({ x: re2.w > 0, y: re2.h > 0 }), pe2 = Y2 && X2 && (de2.x || de2.y) || Y2 && de2.x && !de2.y || X2 && de2.y && !de2.x, me2 = h2 || _3 || z2 || ue2 || ce2 || ie2 || ae2 || J2 || G2 || Q2 || y2 && p, [he2] = a2("update.flowDirectionStyles"), [ge2, ye2] = B2(he2 ? he2(r2) : w2(), l2), ve2 = _3 || j2 || ye2 || fe2 || l2, [be2, we2] = ve2 ? M2(k(ge2, !!he2), l2) : F();
|
|
7249
|
+
let ke2 = C2(de2, q2);
|
|
7250
|
+
b(false), me2 && (S2(ke2), ke2 = Yu(r2, de2), U2 && W2 && (W2(ke2, se2, le2), _l(r2, U2(ke2))));
|
|
7251
|
+
const [xe2, Ce2] = R2(ke2);
|
|
7252
|
+
return gl(o2, xu, wu, pe2), gl(i, Iu, wu, pe2), ol(t, { cn: xe2, Vt: { x: oe2.w, y: oe2.h }, Rt: { x: re2.w, y: re2.h }, j: de2, Dt: au(be2, re2) }), { sn: Ce2, tn: ie2, nn: ae2, en: we2 || ae2 };
|
|
7253
7253
|
};
|
|
7254
|
-
},
|
|
7255
|
-
const [t, n, o2] =
|
|
7254
|
+
}, Cd = (e) => {
|
|
7255
|
+
const [t, n, o2] = bd(e), i = { rn: { t: 0, r: 0, b: 0, l: 0 }, fn: false, F: { [$c]: 0, [_c]: 0, [Fc]: 0, [Tc]: 0, [Rc]: 0, [Mc]: 0, [Bc]: 0 }, Vt: { x: 0, y: 0 }, Rt: { x: 0, y: 0 }, cn: { x: Uc, y: Uc }, j: { x: false, y: false }, Dt: { D: { x: 0, y: 0 }, M: { x: 0, y: 0 } } }, { dt: r2, gt: a, V: s, St: c } = t, { U: l, k: u } = cd(), d = !l && (u.x || u.y), f = [wd(t), kd(t, i), xd(t, i)];
|
|
7256
7256
|
return [n, (e2) => {
|
|
7257
7257
|
const t2 = {}, n2 = d && ru(a), o3 = n2 && c();
|
|
7258
|
-
return
|
|
7258
|
+
return Sc(f, (n3) => {
|
|
7259
7259
|
ol(t2, n3(e2, t2) || {});
|
|
7260
7260
|
}), iu(a, n2), o3 && o3(), s || iu(r2, 0), t2;
|
|
7261
7261
|
}, i, t, o2];
|
|
7262
|
-
},
|
|
7262
|
+
}, Sd = (e, t, n, o2, i) => {
|
|
7263
7263
|
let r2 = false;
|
|
7264
|
-
const a = id(t, {}), [s, c, l, u, d] =
|
|
7265
|
-
|
|
7264
|
+
const a = id(t, {}), [s, c, l, u, d] = Cd(e), [f, p, m] = pd(u, l, a, (e2) => {
|
|
7265
|
+
b({}, e2);
|
|
7266
7266
|
}), [h, g, , y] = ((e2, t2, n2, o3, i2, r3) => {
|
|
7267
7267
|
let a2, s2, c2, l2, u2, d2 = al, f2 = 0;
|
|
7268
|
-
const p2 = ["mouse", "pen"], m2 = (e3) => p2.includes(e3.pointerType), [h2, g2] = Qc(), [y2, v2] = Qc(100), [
|
|
7268
|
+
const p2 = ["mouse", "pen"], m2 = (e3) => p2.includes(e3.pointerType), [h2, g2] = Qc(), [y2, v2] = Qc(100), [b2, w2] = Qc(100), [k, x] = Qc(() => f2), [C2, S2] = yd(e2, i2, o3, vd(t2, i2, o3, (e3) => m2(e3) && R2())), { vt: N2, Kt: E2, bt: P2 } = i2, { Ft: I2, Pt: A, Nt: O, qt: L2, Bt: D2 } = C2, T2 = (e3, t3) => {
|
|
7269
7269
|
if (x(), e3)
|
|
7270
|
-
|
|
7270
|
+
I2(Vu);
|
|
7271
7271
|
else {
|
|
7272
|
-
const e4 = Xc(
|
|
7272
|
+
const e4 = Xc(I2, Vu, true);
|
|
7273
7273
|
f2 > 0 && !t3 ? k(e4) : e4();
|
|
7274
7274
|
}
|
|
7275
7275
|
}, R2 = () => {
|
|
@@ -7277,10 +7277,10 @@
|
|
|
7277
7277
|
T2(false);
|
|
7278
7278
|
}));
|
|
7279
7279
|
}, B2 = (e3) => {
|
|
7280
|
-
|
|
7280
|
+
I2(Wu, e3, true), I2(Wu, e3, false);
|
|
7281
7281
|
}, M2 = (e3) => {
|
|
7282
7282
|
m2(e3) && (a2 = c2, c2 && T2(true));
|
|
7283
|
-
}, F = [x, v2,
|
|
7283
|
+
}, F = [x, v2, w2, g2, () => d2(), eu(N2, "pointerover", M2, { T: true }), eu(N2, "pointerenter", M2), eu(N2, "pointerleave", (e3) => {
|
|
7284
7284
|
m2(e3) && (a2 = false, c2 && T2(false));
|
|
7285
7285
|
}), eu(N2, "pointermove", (e3) => {
|
|
7286
7286
|
m2(e3) && s2 && R2();
|
|
@@ -7289,35 +7289,35 @@
|
|
|
7289
7289
|
O(), R2();
|
|
7290
7290
|
}), r3(e3), D2();
|
|
7291
7291
|
})], $2 = hu(Xu);
|
|
7292
|
-
return [() => Xc(Dc,
|
|
7293
|
-
const { tn: a3, nn: p3, sn: m3, en: h3 } = r4 || {}, { Ct: g3, ft: y3 } = i3 || {}, { B: v3 } = n2, { k:
|
|
7292
|
+
return [() => Xc(Dc, Pc(F, S2())), ({ zt: e3, At: t3, Qt: i3, Zt: r4 }) => {
|
|
7293
|
+
const { tn: a3, nn: p3, sn: m3, en: h3 } = r4 || {}, { Ct: g3, ft: y3 } = i3 || {}, { B: v3 } = n2, { k: w3, U: k2 } = cd(), { cn: x2, j: C3 } = o3, [S3, N3] = e3("showNativeOverlaidScrollbars"), [R3, M3] = e3("scrollbars.theme"), [F2, _2] = e3("scrollbars.visibility"), [j2, z2] = e3("scrollbars.autoHide"), [H2, W2] = e3("scrollbars.autoHideSuspend"), [V2] = e3("scrollbars.autoHideDelay"), [U2, K2] = e3("scrollbars.dragScroll"), [G2, q2] = e3("scrollbars.clickScroll"), [J2, Y2] = e3("overflow"), X2 = y3 && !t3, Q2 = C3.x || C3.y, Z2 = a3 || p3 || h3 || g3 || t3, ee2 = m3 || _2 || Y2, te2 = S3 && w3.x && w3.y, ne2 = !k2 && !$2, oe2 = te2 || ne2, ie2 = (e4, t4, n3) => {
|
|
7294
7294
|
const o4 = e4.includes(Kc) && (F2 === Vc || "auto" === F2 && t4 === Kc);
|
|
7295
|
-
return
|
|
7295
|
+
return I2(_u, o4, n3), o4;
|
|
7296
7296
|
};
|
|
7297
|
-
if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(),
|
|
7297
|
+
if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(), b2(() => {
|
|
7298
7298
|
d2 = eu(E2, "scroll", Xc(B2, true), { T: true });
|
|
7299
|
-
})) : B2(true)), (N3 || ne2) &&
|
|
7299
|
+
})) : B2(true)), (N3 || ne2) && I2("os-theme-none", oe2), M3 && (I2(u2), I2(R3, true), u2 = R3), W2 && !H2 && B2(true), z2 && (s2 = "move" === j2, c2 = "leave" === j2, l2 = "never" === j2, T2(l2, true)), K2 && I2(Gu, U2), q2 && I2(Ku, !!G2), ee2) {
|
|
7300
7300
|
const e4 = ie2(J2.x, x2.x, true), t4 = ie2(J2.y, x2.y, false);
|
|
7301
|
-
|
|
7301
|
+
I2(ju, !(e4 && t4));
|
|
7302
7302
|
}
|
|
7303
|
-
Z2 && (O(), A(), D2(), h3 && L2(),
|
|
7304
|
-
}, {},
|
|
7305
|
-
})(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]),
|
|
7303
|
+
Z2 && (O(), A(), D2(), h3 && L2(), I2(Hu, !C3.x, true), I2(Hu, !C3.y, false), I2(Ru, v3 && !P2));
|
|
7304
|
+
}, {}, C2];
|
|
7305
|
+
})(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]), b = (e2, i2) => {
|
|
7306
7306
|
if (n())
|
|
7307
7307
|
return false;
|
|
7308
7308
|
const { dn: a2, At: s2, It: l2, pn: u2 } = e2, d2 = a2 || {}, f2 = !!s2 || !r2, h2 = { zt: id(t, d2, f2), dn: d2, At: f2 };
|
|
7309
7309
|
if (u2)
|
|
7310
7310
|
return g(h2), false;
|
|
7311
|
-
const y2 = i2 || p(ol({}, h2, { It: l2 })),
|
|
7312
|
-
g(ol({}, h2, { Qt: y2, Zt:
|
|
7313
|
-
const
|
|
7314
|
-
return r2 = true, x && o2(e2, { Qt: y2, Zt:
|
|
7311
|
+
const y2 = i2 || p(ol({}, h2, { It: l2 })), b2 = c(ol({}, h2, { un: m, Qt: y2 }));
|
|
7312
|
+
g(ol({}, h2, { Qt: y2, Zt: b2 }));
|
|
7313
|
+
const w2 = v(y2), k = v(b2), x = w2 || k || !rl(d2) || f2;
|
|
7314
|
+
return r2 = true, x && o2(e2, { Qt: y2, Zt: b2 }), x;
|
|
7315
7315
|
};
|
|
7316
7316
|
return [() => {
|
|
7317
7317
|
const { ln: e2, gt: t2, St: n2 } = u, o3 = ru(e2), i2 = [f(), s(), h()], r3 = n2();
|
|
7318
7318
|
return iu(t2, o3), r3(), Xc(Dc, i2);
|
|
7319
|
-
},
|
|
7320
|
-
}, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e),
|
|
7319
|
+
}, b, () => ({ vn: m, gn: l }), { hn: u, bn: y }, d];
|
|
7320
|
+
}, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e), Pd = (e, t, n) => {
|
|
7321
7321
|
const { tt: o2 } = cd(), i = xc(e), r2 = i ? e : e.target, a = Ed(r2);
|
|
7322
7322
|
if (t && !a) {
|
|
7323
7323
|
let a2 = false;
|
|
@@ -7326,23 +7326,23 @@
|
|
|
7326
7326
|
return n2 ? n2(t2, true) : t2;
|
|
7327
7327
|
}, u = ol({}, o2(), l(t)), [d, f, p] = du(), [m, h, g] = du(n), y = (e2, t2) => {
|
|
7328
7328
|
g(e2, t2), p(e2, t2);
|
|
7329
|
-
}, [v,
|
|
7329
|
+
}, [v, b, w2, k, x] = Sd(e, u, () => a2, ({ dn: e2, At: t2 }, { Qt: n2, Zt: o3 }) => {
|
|
7330
7330
|
const { _t: i2, Ct: r3, $t: a3, xt: s2, Ht: c2, ft: l2 } = n2, { tn: u2, nn: d2, sn: f2, en: p2 } = o3;
|
|
7331
|
-
y("updated", [
|
|
7332
|
-
}, (e2) => y("scroll", [
|
|
7331
|
+
y("updated", [S2, { updateHints: { sizeChanged: !!i2, directionChanged: !!r3, heightIntrinsicChanged: !!a3, overflowEdgeChanged: !!u2, overflowAmountChanged: !!d2, overflowStyleChanged: !!f2, scrollCoordinatesChanged: !!p2, contentMutation: !!s2, hostMutation: !!c2, appear: !!l2 }, changedOptions: e2 || {}, force: !!t2 }]);
|
|
7332
|
+
}, (e2) => y("scroll", [S2, e2])), C2 = (e2) => {
|
|
7333
7333
|
((e3) => {
|
|
7334
7334
|
Nd.delete(e3);
|
|
7335
|
-
})(r2), Dc(s), a2 = true, y("destroyed", [
|
|
7336
|
-
},
|
|
7335
|
+
})(r2), Dc(s), a2 = true, y("destroyed", [S2, e2]), f(), h();
|
|
7336
|
+
}, S2 = { options(e2, t2) {
|
|
7337
7337
|
if (e2) {
|
|
7338
7338
|
const n2 = t2 ? o2() : {}, i2 = od(u, ol(n2, l(e2)));
|
|
7339
|
-
rl(i2) || (ol(u, i2),
|
|
7339
|
+
rl(i2) || (ol(u, i2), b({ dn: i2 }));
|
|
7340
7340
|
}
|
|
7341
7341
|
return ol({}, u);
|
|
7342
7342
|
}, on: m, off: (e2, t2) => {
|
|
7343
7343
|
e2 && t2 && h(e2, t2);
|
|
7344
7344
|
}, state() {
|
|
7345
|
-
const { vn: e2, gn: t2 } =
|
|
7345
|
+
const { vn: e2, gn: t2 } = w2(), { B: n2 } = e2, { Vt: o3, Rt: i2, cn: r3, j: s2, rn: c2, fn: l2, Dt: u2 } = t2;
|
|
7346
7346
|
return ol({}, { overflowEdge: o3, overflowAmount: i2, overflowStyle: r3, hasOverflow: s2, scrollCoordinates: { start: u2.D, end: u2.M }, padding: c2, paddingAbsolute: l2, directionRTL: n2, destroyed: a2 });
|
|
7347
7347
|
}, elements() {
|
|
7348
7348
|
const { dt: e2, vt: t2, rn: n2, L: o3, ht: i2, gt: r3, Kt: a3 } = k.hn, { jt: s2, Jt: c2 } = k.bn, l2 = (e3) => {
|
|
@@ -7352,39 +7352,39 @@
|
|
|
7352
7352
|
const { Xt: t3, Yt: n3 } = e3, o4 = l2(t3[0]);
|
|
7353
7353
|
return ol({}, o4, { clone: () => {
|
|
7354
7354
|
const e4 = l2(n3());
|
|
7355
|
-
return
|
|
7355
|
+
return b({ pn: true }), e4;
|
|
7356
7356
|
} });
|
|
7357
7357
|
};
|
|
7358
7358
|
return ol({}, { target: e2, host: t2, padding: n2 || o3, viewport: o3, content: i2 || o3, scrollOffsetElement: r3, scrollEventElement: a3, scrollbarHorizontal: u2(s2), scrollbarVertical: u2(c2) });
|
|
7359
|
-
}, update: (e2) =>
|
|
7360
|
-
return
|
|
7359
|
+
}, update: (e2) => b({ At: e2, It: true }), destroy: Xc(C2, false), plugin: (e2) => c[nl(e2)[0]] };
|
|
7360
|
+
return Pc(s, [x]), ((e2, t2) => {
|
|
7361
7361
|
Nd.set(e2, t2);
|
|
7362
|
-
})(r2,
|
|
7362
|
+
})(r2, S2), mu(fu, Pd, [S2, d, c]), ((e2, t2) => {
|
|
7363
7363
|
const { nativeScrollbarsOverlaid: n2, body: o3 } = t2 || {}, { k: i2, U: r3, K: a3 } = cd(), { nativeScrollbarsOverlaid: s2, body: c2 } = a3().cancel, l2 = null != n2 ? n2 : s2, u2 = fc(o3) ? c2 : o3, d2 = (i2.x || i2.y) && l2, f2 = e2 && (pc(u2) ? !r3 : u2);
|
|
7364
7364
|
return !!d2 || !!f2;
|
|
7365
|
-
})(k.hn.bt, !i && e.cancel) ? (
|
|
7365
|
+
})(k.hn.bt, !i && e.cancel) ? (C2(true), S2) : (Pc(s, v()), y("initialized", [S2]), S2.update(), S2);
|
|
7366
7366
|
}
|
|
7367
7367
|
return a;
|
|
7368
7368
|
};
|
|
7369
|
-
|
|
7370
|
-
const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2,
|
|
7369
|
+
Pd.plugin = (e) => {
|
|
7370
|
+
const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2, Pd)[0]);
|
|
7371
7371
|
return ((e2) => {
|
|
7372
|
-
|
|
7372
|
+
Sc(e2, (e3) => Sc(e3, (t2, n2) => {
|
|
7373
7373
|
fu[n2] = e3[n2];
|
|
7374
7374
|
}));
|
|
7375
7375
|
})(n), t ? o2 : o2[0];
|
|
7376
|
-
},
|
|
7376
|
+
}, Pd.valid = (e) => {
|
|
7377
7377
|
const t = e && e.elements, n = yc(t) && t();
|
|
7378
7378
|
return kc(n) && !!Ed(n.target);
|
|
7379
|
-
},
|
|
7379
|
+
}, Pd.env = () => {
|
|
7380
7380
|
const { P: e, k: t, U: n, J: o2, ot: i, st: r2, K: a, Z: s, tt: c, nt: l } = cd();
|
|
7381
7381
|
return ol({}, { scrollbarsSize: e, scrollbarsOverlaid: t, scrollbarsHiding: n, scrollTimeline: o2, staticDefaultInitialization: i, staticDefaultOptions: r2, getDefaultInitialization: a, setDefaultInitialization: s, getDefaultOptions: c, setDefaultOptions: l });
|
|
7382
|
-
},
|
|
7382
|
+
}, Pd.nonce = (e) => {
|
|
7383
7383
|
rd = e;
|
|
7384
|
-
},
|
|
7384
|
+
}, Pd.trustedTypePolicy = (e) => {
|
|
7385
7385
|
Ll = e;
|
|
7386
7386
|
};
|
|
7387
|
-
const
|
|
7387
|
+
const Id = () => {
|
|
7388
7388
|
if (typeof window > "u") {
|
|
7389
7389
|
const e2 = () => {
|
|
7390
7390
|
};
|
|
@@ -7400,23 +7400,23 @@
|
|
|
7400
7400
|
} : n2, "object" == typeof r3 ? r3 : { timeout: 2233 });
|
|
7401
7401
|
}, c];
|
|
7402
7402
|
}, Ad = (e) => {
|
|
7403
|
-
const { options: t, events: n, defer: o$1 } = e || {}, [i, r2] = o.useMemo(
|
|
7403
|
+
const { options: t, events: n, defer: o$1 } = e || {}, [i, r2] = o.useMemo(Id, []), a = o.useRef(null), s = o.useRef(o$1), c = o.useRef(t), l = o.useRef(n);
|
|
7404
7404
|
return o.useEffect(() => {
|
|
7405
7405
|
s.current = o$1;
|
|
7406
7406
|
}, [o$1]), o.useEffect(() => {
|
|
7407
7407
|
const { current: e2 } = a;
|
|
7408
|
-
c.current = t,
|
|
7408
|
+
c.current = t, Pd.valid(e2) && e2.options(t || {}, true);
|
|
7409
7409
|
}, [t]), o.useEffect(() => {
|
|
7410
7410
|
const { current: e2 } = a;
|
|
7411
|
-
l.current = n,
|
|
7411
|
+
l.current = n, Pd.valid(e2) && e2.on(n || {}, true);
|
|
7412
7412
|
}, [n]), o.useEffect(() => () => {
|
|
7413
7413
|
var e2;
|
|
7414
7414
|
r2(), null == (e2 = a.current) || e2.destroy();
|
|
7415
7415
|
}, []), o.useMemo(() => [(e2) => {
|
|
7416
7416
|
const t2 = a.current;
|
|
7417
|
-
if (
|
|
7417
|
+
if (Pd.valid(t2))
|
|
7418
7418
|
return;
|
|
7419
|
-
const n2 = s.current, o2 = c.current || {}, r3 = l.current || {}, u = () => a.current =
|
|
7419
|
+
const n2 = s.current, o2 = c.current || {}, r3 = l.current || {}, u = () => a.current = Pd(e2, o2, r3);
|
|
7420
7420
|
n2 ? i(u, n2) : u();
|
|
7421
7421
|
}, () => a.current], []);
|
|
7422
7422
|
};
|
|
@@ -7458,13 +7458,13 @@
|
|
|
7458
7458
|
function Fd() {
|
|
7459
7459
|
return ("function" == typeof o.useId ? o.useId : Md)() ?? "";
|
|
7460
7460
|
}
|
|
7461
|
-
const $d = o.forwardRef(({ id: n, className: o$1, type: i = "text", name: r2 = "input", align: s = "up", label: c, iconPrepend: l, iconPrependOnClick: u, iconAppend: d, iconAppendOnClick: f, placeholder: p, disabled: m, readOnly: h, errorMessage: g, errorDataTestId: y, ...v },
|
|
7462
|
-
const
|
|
7461
|
+
const $d = o.forwardRef(({ id: n, className: o$1, type: i = "text", name: r2 = "input", align: s = "up", label: c, iconPrepend: l, iconPrependOnClick: u, iconAppend: d, iconAppendOnClick: f, placeholder: p, disabled: m, readOnly: h, errorMessage: g, errorDataTestId: y, ...v }, b) => {
|
|
7462
|
+
const w2 = Fd(), k = n || `input-${w2}`, x = E("io-control-input", l && "io-control-leading-icon", d && "io-control-trailing-icon", m && "io-control-disabled", h && "io-control-readonly", g && "io-control-error", s && [`direction-${s}`], o$1), C2 = o.useCallback((e) => {
|
|
7463
7463
|
m ? e.preventDefault() : u && u(e);
|
|
7464
|
-
}, [u, m]),
|
|
7464
|
+
}, [u, m]), S2 = o.useCallback((e) => {
|
|
7465
7465
|
m ? e.preventDefault() : f && f(e);
|
|
7466
7466
|
}, [f, m]);
|
|
7467
|
-
return jsxRuntime.jsxs("div", { className: x, children: [c && jsxRuntime.jsx(Ld, { htmlFor: k, text: c }), l && jsxRuntime.jsx(
|
|
7467
|
+
return jsxRuntime.jsxs("div", { className: x, children: [c && jsxRuntime.jsx(Ld, { htmlFor: k, text: c }), l && jsxRuntime.jsx(P, { variant: l, onClick: (e) => C2(e) }), jsxRuntime.jsx("input", { id: k, className: "io-input", ref: b, type: i, name: r2, tabIndex: 0, placeholder: p ?? (() => {
|
|
7468
7468
|
switch (i) {
|
|
7469
7469
|
case "email":
|
|
7470
7470
|
return "Enter your email here...";
|
|
@@ -7479,7 +7479,7 @@
|
|
|
7479
7479
|
default:
|
|
7480
7480
|
return "Enter text here...";
|
|
7481
7481
|
}
|
|
7482
|
-
})(), "aria-label": c, disabled: m, readOnly: h, ...g ? { "aria-invalid": true, "aria-describedby": `${k}-error` } : {}, ...v }), d && jsxRuntime.jsx(
|
|
7482
|
+
})(), "aria-label": c, disabled: m, readOnly: h, ...g ? { "aria-invalid": true, "aria-describedby": `${k}-error` } : {}, ...v }), d && jsxRuntime.jsx(P, { variant: d, onClick: (e) => S2(e) }), g && jsxRuntime.jsxs("div", { "data-testid": y, id: `${k}-error`, className: "io-input-error", children: [jsxRuntime.jsx(P, { variant: "close" }), g] })] });
|
|
7483
7483
|
});
|
|
7484
7484
|
$d.displayName = "Input";
|
|
7485
7485
|
const _d = o.forwardRef(({ id: n, className: o2, name: i = "textarea", align: r2 = "up", label: a, rows: s = 4, placeholder: c = "Enter text here...", disabled: l, readOnly: u, ...d }, f) => {
|
|
@@ -7503,14 +7503,14 @@
|
|
|
7503
7503
|
return (_a2 = e == null ? void 0 : e.themes) == null ? void 0 : _a2.select(t2);
|
|
7504
7504
|
}, [e]);
|
|
7505
7505
|
return o.useEffect(() => {
|
|
7506
|
-
var _a2,
|
|
7506
|
+
var _a2, _b2;
|
|
7507
7507
|
if (!e)
|
|
7508
7508
|
return;
|
|
7509
7509
|
let t2 = false;
|
|
7510
7510
|
const o2 = (e2) => {
|
|
7511
7511
|
t2 || n(e2);
|
|
7512
7512
|
};
|
|
7513
|
-
return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o2), (
|
|
7513
|
+
return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o2), (_b2 = e.themes) == null ? void 0 : _b2.getCurrent().then(o2).catch(console.warn), () => {
|
|
7514
7514
|
t2 = true;
|
|
7515
7515
|
};
|
|
7516
7516
|
}, [e]), { currentTheme: t, selectTheme: o$1 };
|
|
@@ -7534,7 +7534,7 @@
|
|
|
7534
7534
|
}), []), o.useCallback(() => e.current, []);
|
|
7535
7535
|
}
|
|
7536
7536
|
const Qd = () => {
|
|
7537
|
-
const e = o.useContext(reactHooks.IOConnectContext), t = e == null ? void 0 : e.windows, n = e == null ? void 0 : e.workspaces, o$1 = o.useRef(null), [i, r2] = o.useState(null), [s, u] = o.useState(null), [p, m] = o.useState(false), [h, g] = o.useState(false), [y, v] = o.useState(null),
|
|
7537
|
+
const e = o.useContext(reactHooks.IOConnectContext), t = e == null ? void 0 : e.windows, n = e == null ? void 0 : e.workspaces, o$1 = o.useRef(null), [i, r2] = o.useState(null), [s, u] = o.useState(null), [p, m] = o.useState(false), [h, g] = o.useState(false), [y, v] = o.useState(null), b = o.useRef(void 0), w2 = Kd(), { currentTheme: k } = Hd();
|
|
7538
7538
|
o.useEffect(() => {
|
|
7539
7539
|
o$1.current = i;
|
|
7540
7540
|
const e2 = i == null ? void 0 : i.ioConnectWindow.onVisibilityChanged(() => {
|
|
@@ -7544,7 +7544,7 @@
|
|
|
7544
7544
|
e2 == null ? void 0 : e2();
|
|
7545
7545
|
};
|
|
7546
7546
|
}, [i]);
|
|
7547
|
-
const
|
|
7547
|
+
const C2 = o.useCallback(async (e2, o2) => {
|
|
7548
7548
|
const i2 = { windowId: e2 == null ? void 0 : e2.ioConnectWindow.id, ...o2 }, r3 = window.glue42gd.windowId;
|
|
7549
7549
|
if ((() => {
|
|
7550
7550
|
const e3 = Or() && !!window.workspacesManager, t2 = !Or() && !!window.ioworkspaces;
|
|
@@ -7563,7 +7563,7 @@
|
|
|
7563
7563
|
return void console.warn("Cannot access my window to show popup");
|
|
7564
7564
|
await e3.showPopup({ ...i2 });
|
|
7565
7565
|
}
|
|
7566
|
-
}, [t, n]),
|
|
7566
|
+
}, [t, n]), S2 = o.useCallback((e2) => {
|
|
7567
7567
|
try {
|
|
7568
7568
|
const t2 = e2.document;
|
|
7569
7569
|
(k == null ? void 0 : k.name) && (t2.documentElement.className = k.name);
|
|
@@ -7571,35 +7571,35 @@
|
|
|
7571
7571
|
return n2.id = "io-popup-window-container", t2.body.innerHTML = "", t2.body.appendChild(n2), t2;
|
|
7572
7572
|
} catch (e3) {
|
|
7573
7573
|
const t2 = `Failed to setup popup document: ${String(e3)}`;
|
|
7574
|
-
return console.error("usePopupWindow:", t2, e3),
|
|
7574
|
+
return console.error("usePopupWindow:", t2, e3), w2() && v(t2), null;
|
|
7575
7575
|
}
|
|
7576
|
-
}, [k,
|
|
7576
|
+
}, [k, w2]), N2 = o.useCallback(async (e2) => {
|
|
7577
7577
|
if (!t) {
|
|
7578
7578
|
const e3 = "io.Connect API not available";
|
|
7579
|
-
return console.error("usePopupWindow:", e3),
|
|
7579
|
+
return console.error("usePopupWindow:", e3), w2() && v(e3), null;
|
|
7580
7580
|
}
|
|
7581
|
-
|
|
7581
|
+
w2() && (g(true), v(null));
|
|
7582
7582
|
try {
|
|
7583
7583
|
const n2 = new Promise((e3, t2) => {
|
|
7584
7584
|
setTimeout(() => t2(new Error("Popup creation timeout after 5 seconds")), 5e3);
|
|
7585
7585
|
}), o2 = t.createPopup({ ...e2 }), i2 = await Promise.race([o2, n2]);
|
|
7586
|
-
if (!
|
|
7586
|
+
if (!w2())
|
|
7587
7587
|
return await i2.ioConnectWindow.close().catch(() => {
|
|
7588
7588
|
}), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null;
|
|
7589
7589
|
r2(i2);
|
|
7590
7590
|
const a = i2.browserWindow;
|
|
7591
7591
|
if (a == null ? void 0 : a.document) {
|
|
7592
|
-
const e3 =
|
|
7593
|
-
|
|
7592
|
+
const e3 = S2(a);
|
|
7593
|
+
w2() && e3 && u(e3);
|
|
7594
7594
|
}
|
|
7595
7595
|
return i2;
|
|
7596
7596
|
} catch (e3) {
|
|
7597
7597
|
const t2 = `Failed to create popup: ${String(e3)}`;
|
|
7598
|
-
return console.error("usePopupWindow:", t2, e3),
|
|
7598
|
+
return console.error("usePopupWindow:", t2, e3), w2() && (v(t2), r2(null), u(null)), null;
|
|
7599
7599
|
} finally {
|
|
7600
|
-
|
|
7600
|
+
w2() && g(false);
|
|
7601
7601
|
}
|
|
7602
|
-
}, [t,
|
|
7602
|
+
}, [t, S2, w2]), E2 = o.useCallback(() => {
|
|
7603
7603
|
if (!i || !t)
|
|
7604
7604
|
return false;
|
|
7605
7605
|
try {
|
|
@@ -7607,7 +7607,7 @@
|
|
|
7607
7607
|
} catch (e2) {
|
|
7608
7608
|
return console.warn("usePopupWindow: Failed to verify popup existence", e2), false;
|
|
7609
7609
|
}
|
|
7610
|
-
}, [i, t]),
|
|
7610
|
+
}, [i, t]), P2 = o.useCallback(async () => {
|
|
7611
7611
|
if (!i)
|
|
7612
7612
|
return null;
|
|
7613
7613
|
if (E2())
|
|
@@ -7616,16 +7616,16 @@
|
|
|
7616
7616
|
const e2 = i.ioConnectWindow.bounds, t2 = await N2({ left: e2.left, top: e2.top, width: e2.width, height: e2.height });
|
|
7617
7617
|
if (!t2) {
|
|
7618
7618
|
const e3 = "Failed to recreate destroyed popup window";
|
|
7619
|
-
console.error("usePopupWindow:", e3),
|
|
7619
|
+
console.error("usePopupWindow:", e3), w2() && v(e3);
|
|
7620
7620
|
}
|
|
7621
7621
|
return t2;
|
|
7622
|
-
}, [i, E2, N2,
|
|
7622
|
+
}, [i, E2, N2, w2]), I2 = o.useCallback(async (e2) => {
|
|
7623
7623
|
if (i)
|
|
7624
|
-
return await
|
|
7624
|
+
return await P2();
|
|
7625
7625
|
const t2 = await N2(e2);
|
|
7626
|
-
return t2 ?
|
|
7626
|
+
return t2 ? w2() ? t2 : (await t2.ioConnectWindow.close().catch(() => {
|
|
7627
7627
|
}), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null) : (console.warn("usePopupWindow: Failed to create popup, operation aborted"), null);
|
|
7628
|
-
}, [i,
|
|
7628
|
+
}, [i, P2, N2, w2]);
|
|
7629
7629
|
o.useEffect(() => {
|
|
7630
7630
|
if ((i == null ? void 0 : i.browserWindow) && s)
|
|
7631
7631
|
try {
|
|
@@ -7640,32 +7640,32 @@
|
|
|
7640
7640
|
if (i) {
|
|
7641
7641
|
if (!t) {
|
|
7642
7642
|
const e3 = "io.Connect API not available";
|
|
7643
|
-
return console.error("usePopupWindow:", e3), void (
|
|
7643
|
+
return console.error("usePopupWindow:", e3), void (w2() && v(e3));
|
|
7644
7644
|
}
|
|
7645
7645
|
try {
|
|
7646
|
-
const t2 = e2 ||
|
|
7646
|
+
const t2 = e2 || b.current;
|
|
7647
7647
|
if (!t2)
|
|
7648
7648
|
return void console.warn("usePopupWindow: No show options available");
|
|
7649
|
-
const n2 = await
|
|
7650
|
-
if (!n2 || !
|
|
7649
|
+
const n2 = await P2();
|
|
7650
|
+
if (!n2 || !w2())
|
|
7651
7651
|
return;
|
|
7652
|
-
await
|
|
7652
|
+
await C2(n2, t2), w2() && m(true);
|
|
7653
7653
|
} catch (e3) {
|
|
7654
7654
|
const t2 = `Failed to show popup: ${JSON.stringify(e3)}`;
|
|
7655
|
-
console.error("usePopupWindow:", t2, e3),
|
|
7655
|
+
console.error("usePopupWindow:", t2, e3), w2() && v(t2);
|
|
7656
7656
|
}
|
|
7657
7657
|
} else
|
|
7658
7658
|
console.warn("usePopupWindow: Cannot show popup - popup not created yet");
|
|
7659
|
-
}, [i, t,
|
|
7659
|
+
}, [i, t, C2, w2, P2]), L2 = o.useCallback(async (e2) => {
|
|
7660
7660
|
await (i == null ? void 0 : i.ioConnectWindow.moveResize({ ...e2 }));
|
|
7661
7661
|
}, [i]), D2 = o.useCallback(async () => {
|
|
7662
|
-
if (
|
|
7662
|
+
if (w2() && (m(false), o$1.current))
|
|
7663
7663
|
try {
|
|
7664
7664
|
await o$1.current.ioConnectWindow.hide();
|
|
7665
7665
|
} catch (e2) {
|
|
7666
7666
|
console.error("usePopupWindow: Failed to hide popup", e2);
|
|
7667
7667
|
}
|
|
7668
|
-
}, [o$1,
|
|
7668
|
+
}, [o$1, w2]);
|
|
7669
7669
|
ie(() => {
|
|
7670
7670
|
p && D2().catch((e2) => {
|
|
7671
7671
|
console.error("Failed to hide popup on Escape key press in parent window", e2);
|
|
@@ -7688,35 +7688,35 @@
|
|
|
7688
7688
|
await o$1.current.ioConnectWindow.close(), o$1.current = null;
|
|
7689
7689
|
} catch (e2) {
|
|
7690
7690
|
const t2 = `Failed to close popup: ${String(e2)}`;
|
|
7691
|
-
console.error("usePopupWindow:", t2, e2),
|
|
7691
|
+
console.error("usePopupWindow:", t2, e2), w2() && v(t2);
|
|
7692
7692
|
} finally {
|
|
7693
|
-
|
|
7693
|
+
w2() && (r2(null), u(null), m(false), b.current = void 0);
|
|
7694
7694
|
}
|
|
7695
|
-
}, [o$1,
|
|
7695
|
+
}, [o$1, w2]), R2 = o.useCallback(async (e2, n2, o2) => {
|
|
7696
7696
|
if (!t) {
|
|
7697
7697
|
const e3 = "io.Connect API not available";
|
|
7698
|
-
return console.error("usePopupWindow:", e3), void (
|
|
7698
|
+
return console.error("usePopupWindow:", e3), void (w2() && v(e3));
|
|
7699
7699
|
}
|
|
7700
|
-
|
|
7700
|
+
w2() && (g(true), v(null));
|
|
7701
7701
|
try {
|
|
7702
|
-
let e3 = await
|
|
7702
|
+
let e3 = await I2(n2);
|
|
7703
7703
|
if (!e3) {
|
|
7704
7704
|
const t2 = await N2(n2);
|
|
7705
7705
|
if (!t2)
|
|
7706
7706
|
return void console.warn("usePopupWindow: Failed to create popup, operation aborted");
|
|
7707
|
-
if (!
|
|
7707
|
+
if (!w2())
|
|
7708
7708
|
return await t2.ioConnectWindow.close().catch(() => {
|
|
7709
7709
|
}), void console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup");
|
|
7710
7710
|
e3 = t2;
|
|
7711
7711
|
}
|
|
7712
|
-
o2 && (
|
|
7712
|
+
o2 && (b.current = o2), await C2(e3, o2), w2() && m(true);
|
|
7713
7713
|
} catch (e3) {
|
|
7714
7714
|
const t2 = `Failed to create and show popup: ${String(e3)}`;
|
|
7715
|
-
console.error("usePopupWindow:", t2, e3),
|
|
7715
|
+
console.error("usePopupWindow:", t2, e3), w2() && v(t2);
|
|
7716
7716
|
} finally {
|
|
7717
|
-
|
|
7717
|
+
w2() && g(false);
|
|
7718
7718
|
}
|
|
7719
|
-
}, [N2, t,
|
|
7719
|
+
}, [N2, t, C2, w2, I2]);
|
|
7720
7720
|
return { popup: i, loading: h, error: y, clearError: A, isOpen: !!i, isVisible: p, createPopup: N2, showPopup: O, createAndShowPopup: R2, hidePopup: D2, closePopup: T2, getContainer: () => (s == null ? void 0 : s.getElementById("io-popup-window-container")) || null, resizePopup: L2 };
|
|
7721
7721
|
};
|
|
7722
7722
|
const ef = () => {
|
|
@@ -7738,7 +7738,7 @@
|
|
|
7738
7738
|
}
|
|
7739
7739
|
sf.displayName = "Toggle";
|
|
7740
7740
|
const uf = { getMyApplication: async function(e) {
|
|
7741
|
-
var _a2,
|
|
7741
|
+
var _a2, _b2;
|
|
7742
7742
|
if (e)
|
|
7743
7743
|
try {
|
|
7744
7744
|
const t = e.apps;
|
|
@@ -7751,7 +7751,7 @@
|
|
|
7751
7751
|
return;
|
|
7752
7752
|
return cf(n2);
|
|
7753
7753
|
}
|
|
7754
|
-
const n = (
|
|
7754
|
+
const n = (_b2 = e.appManager) == null ? void 0 : _b2.myApplication;
|
|
7755
7755
|
if (!n)
|
|
7756
7756
|
return;
|
|
7757
7757
|
return lf(n);
|
|
@@ -7759,7 +7759,7 @@
|
|
|
7759
7759
|
return void console.error("Failed to get my application", e2);
|
|
7760
7760
|
}
|
|
7761
7761
|
}, getApplications: async function(e) {
|
|
7762
|
-
var _a2,
|
|
7762
|
+
var _a2, _b2;
|
|
7763
7763
|
if (!e)
|
|
7764
7764
|
return [];
|
|
7765
7765
|
try {
|
|
@@ -7768,14 +7768,14 @@
|
|
|
7768
7768
|
const e2 = await t.getMany() ?? [];
|
|
7769
7769
|
return e2.map((e3) => cf(e3));
|
|
7770
7770
|
}
|
|
7771
|
-
const n = ((
|
|
7771
|
+
const n = ((_b2 = e.appManager) == null ? void 0 : _b2.applications()) ?? [];
|
|
7772
7772
|
return n.map((e2) => lf(e2));
|
|
7773
7773
|
} catch (e2) {
|
|
7774
7774
|
console.error("Failed to get applications", e2);
|
|
7775
7775
|
}
|
|
7776
7776
|
return [];
|
|
7777
7777
|
}, startApplication: async function(e, t, n) {
|
|
7778
|
-
var _a2,
|
|
7778
|
+
var _a2, _b2;
|
|
7779
7779
|
if (e)
|
|
7780
7780
|
try {
|
|
7781
7781
|
const o2 = e.apps;
|
|
@@ -7784,7 +7784,7 @@
|
|
|
7784
7784
|
const e2 = o2.instances;
|
|
7785
7785
|
return e2 ? void await e2.start({ name: t, ...n }) : void console.error("io.apps.instances API is not available");
|
|
7786
7786
|
}
|
|
7787
|
-
const i = (
|
|
7787
|
+
const i = (_b2 = e.appManager) == null ? void 0 : _b2.application(t);
|
|
7788
7788
|
if (!i)
|
|
7789
7789
|
return void console.error(`Application "${t}" not found`);
|
|
7790
7790
|
await i.start(n);
|
|
@@ -7807,7 +7807,7 @@
|
|
|
7807
7807
|
return void console.error(`Failed to stop application instance "${t.id}"`, e2);
|
|
7808
7808
|
}
|
|
7809
7809
|
}, onAppAdded: async function(e, t) {
|
|
7810
|
-
var _a2,
|
|
7810
|
+
var _a2, _b2;
|
|
7811
7811
|
if (e)
|
|
7812
7812
|
try {
|
|
7813
7813
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7817,7 +7817,7 @@
|
|
|
7817
7817
|
t(n2);
|
|
7818
7818
|
});
|
|
7819
7819
|
}
|
|
7820
|
-
const o2 = (
|
|
7820
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppAdded((e2) => {
|
|
7821
7821
|
const n2 = lf(e2);
|
|
7822
7822
|
t(n2);
|
|
7823
7823
|
});
|
|
@@ -7826,7 +7826,7 @@
|
|
|
7826
7826
|
return void console.error("Failed to subscribe to app added events", e2);
|
|
7827
7827
|
}
|
|
7828
7828
|
}, onAppRemoved: async function(e, t) {
|
|
7829
|
-
var _a2,
|
|
7829
|
+
var _a2, _b2;
|
|
7830
7830
|
if (e)
|
|
7831
7831
|
try {
|
|
7832
7832
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7835,7 +7835,7 @@
|
|
|
7835
7835
|
t({ name: e2 });
|
|
7836
7836
|
});
|
|
7837
7837
|
}
|
|
7838
|
-
const o2 = (
|
|
7838
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppRemoved((e2) => {
|
|
7839
7839
|
t({ name: e2.name });
|
|
7840
7840
|
});
|
|
7841
7841
|
return o2;
|
|
@@ -7843,7 +7843,7 @@
|
|
|
7843
7843
|
return void console.error("Failed to subscribe to app removed events", e2);
|
|
7844
7844
|
}
|
|
7845
7845
|
}, onAppChanged: async function(e, t) {
|
|
7846
|
-
var _a2,
|
|
7846
|
+
var _a2, _b2;
|
|
7847
7847
|
if (e)
|
|
7848
7848
|
try {
|
|
7849
7849
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7853,7 +7853,7 @@
|
|
|
7853
7853
|
t(n2);
|
|
7854
7854
|
});
|
|
7855
7855
|
}
|
|
7856
|
-
const o2 = (
|
|
7856
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppChanged((e2) => {
|
|
7857
7857
|
const n2 = lf(e2);
|
|
7858
7858
|
t(n2);
|
|
7859
7859
|
});
|
|
@@ -7862,26 +7862,26 @@
|
|
|
7862
7862
|
return void console.error("Failed to subscribe to app changed events", e2);
|
|
7863
7863
|
}
|
|
7864
7864
|
}, restartPlatform: async function(e, t = true) {
|
|
7865
|
-
var _a2,
|
|
7865
|
+
var _a2, _b2;
|
|
7866
7866
|
if (!e)
|
|
7867
7867
|
return;
|
|
7868
7868
|
const n = { autoSave: t, showDialog: true };
|
|
7869
7869
|
try {
|
|
7870
7870
|
if ((_a2 = e.platform) == null ? void 0 : _a2.restart)
|
|
7871
7871
|
return void await e.platform.restart(n);
|
|
7872
|
-
await ((
|
|
7872
|
+
await ((_b2 = e.appManager) == null ? void 0 : _b2.restart(n));
|
|
7873
7873
|
} catch (e2) {
|
|
7874
7874
|
console.error("Failed to restart platform", e2);
|
|
7875
7875
|
}
|
|
7876
7876
|
}, shutdownPlatform: async function(e, t = true) {
|
|
7877
|
-
var _a2,
|
|
7877
|
+
var _a2, _b2;
|
|
7878
7878
|
if (!e)
|
|
7879
7879
|
return;
|
|
7880
7880
|
const n = { autoSave: t, showDialog: true };
|
|
7881
7881
|
try {
|
|
7882
7882
|
if ((_a2 = e.platform) == null ? void 0 : _a2.shutdown)
|
|
7883
7883
|
return void await e.platform.shutdown(n);
|
|
7884
|
-
await ((
|
|
7884
|
+
await ((_b2 = e.appManager) == null ? void 0 : _b2.exit(n));
|
|
7885
7885
|
} catch (e2) {
|
|
7886
7886
|
console.error("Failed to shutdown platform", e2);
|
|
7887
7887
|
}
|
|
@@ -7908,18 +7908,18 @@
|
|
|
7908
7908
|
o.createContext({ theme: "dark" });
|
|
7909
7909
|
o.createContext(void 0);
|
|
7910
7910
|
const gf = (n) => {
|
|
7911
|
-
const { General:
|
|
7912
|
-
return jsxRuntime.
|
|
7911
|
+
const { General: o$1, Launchpad: i, Docking: r2, ExtendedArea: a, Layouts: s, Downloads: c, System: l } = Np(), u = [[{ key: "general", Component: o$1 }], [{ key: "launchpad", Component: i }, { key: "docking", Component: r2 }, { key: "extended-area", Component: a }], [{ key: "layouts", Component: s }], [{ key: "downloads", Component: c }], [{ key: "system", Component: l }]];
|
|
7912
|
+
return jsxRuntime.jsx(Od, { element: Us, elementProps: n, children: u.map((n2, o$12) => jsxRuntime.jsxs(o.Fragment, { children: [n2.map(({ key: t, Component: n3 }) => jsxRuntime.jsx(n3, {}, t)), o$12 < u.length - 1 && jsxRuntime.jsx(J, {})] }, n2[0].key)) });
|
|
7913
7913
|
}, yf = ({ title: t = "General", ...n }) => {
|
|
7914
7914
|
const { Theme: o2 } = Np();
|
|
7915
7915
|
return jsxRuntime.jsx(T, { title: t, ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
7916
7916
|
}, vf = ({ className: n, title: o2 = "Theme", ...i }) => {
|
|
7917
7917
|
const { currentTheme: r2, selectTheme: a } = Hd(), s = ef();
|
|
7918
7918
|
return jsxRuntime.jsxs("div", { className: E("flex jc-between ai-center", n), "data-testid": "theme-container", ...i, children: [jsxRuntime.jsx("label", { className: "io-text-clipper", "data-testid": "theme-label", children: o2 }), jsxRuntime.jsxs(re, { variant: "light", "data-testid": "theme-dropdown", children: [jsxRuntime.jsx(re.Button, { text: (r2 == null ? void 0 : r2.displayName) ?? "Dark", "data-testid": "theme-dropdown-button" }), jsxRuntime.jsx(re.Content, { "data-testid": "theme-dropdown-content", children: jsxRuntime.jsx(re.List, { children: s.map(({ displayName: t, name: n2 }) => jsxRuntime.jsx(re.Item, { onClick: () => a(n2), "data-testid": `theme-dropdown-item-${n2}`, children: t }, n2)) }) })] })] });
|
|
7919
|
-
},
|
|
7919
|
+
}, bf = ({ prefKey: t, ...n }) => {
|
|
7920
7920
|
const { isLoading: o2, value: i = false, update: r2 } = ks({ prefKey: t });
|
|
7921
7921
|
return jsxRuntime.jsx(sf, { checked: i, disabled: o2, onChange: (e) => r2(e.target.checked), ...n });
|
|
7922
|
-
},
|
|
7922
|
+
}, wf = ({ align: t = "right", label: n = "Minimize to tray", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Fa, ...o2 }), kf = ({ prefKey: n, options: o2, disabled: i, ...r2 }) => {
|
|
7923
7923
|
const { isLoading: a, value: s = "Select option", update: c } = ks({ prefKey: n });
|
|
7924
7924
|
return jsxRuntime.jsxs(re, { variant: "light", disabled: a || i, ...r2, children: [jsxRuntime.jsx(re.Button, { children: s }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { children: o2.map((t) => jsxRuntime.jsx(re.Item, { onClick: () => (async (e) => {
|
|
7925
7925
|
if (e !== s)
|
|
@@ -7929,19 +7929,19 @@
|
|
|
7929
7929
|
console.error("Failed to update platform preference:", e2);
|
|
7930
7930
|
}
|
|
7931
7931
|
})(t), children: t }, t)) }) })] });
|
|
7932
|
-
}, xf = ({ className: n, label: o2 = "Pinned position", ...i }) => jsxRuntime.jsx(T, { className: E("io-block-list-gap", n), ...i, children: jsxRuntime.jsxs("div", { className: "flex jc-between ai-center", children: [jsxRuntime.jsx("label", { className: "io-text-clipper", children: o2 }), jsxRuntime.jsx(kf, { className: n, prefKey: _a, options: ["Left", "Right"], ...i })] }) }),
|
|
7932
|
+
}, xf = ({ className: n, label: o2 = "Pinned position", ...i }) => jsxRuntime.jsx(T, { className: E("io-block-list-gap", n), ...i, children: jsxRuntime.jsxs("div", { className: "flex jc-between ai-center", children: [jsxRuntime.jsx("label", { className: "io-text-clipper", children: o2 }), jsxRuntime.jsx(kf, { className: n, prefKey: _a, options: ["Left", "Right"], ...i })] }) }), Cf = ({ align: t = "right", label: n = 'Hide "Favorites"', ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ka, ...o2 }), Sf = ({ align: t = "right", label: n = "Allow docking to top", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: ja, ...o2 }), Nf = ({ align: t = "right", label: n = "Always on top", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: za, ...o2 }), Ef = ({ align: t = "right", label: n = "Claim occupied space", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ha, ...o2 }), Pf = ({ align: t = "right", label: n = "Show the extended Launchpad area", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Wa, ...o2 }), If = ({ align: t = "right", label: n = "Hide labels", ...o2 }) => {
|
|
7933
7933
|
const { value: i } = ks({ prefKey: Wa });
|
|
7934
|
-
return jsxRuntime.jsx(
|
|
7934
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Va, disabled: !i, ...o2 });
|
|
7935
7935
|
}, Af = ({ align: t = "right", label: n = 'Show "Favorites"', ...o2 }) => {
|
|
7936
7936
|
const { value: i } = ks({ prefKey: Wa });
|
|
7937
|
-
return jsxRuntime.jsx(
|
|
7937
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ua, disabled: !i, ...o2 });
|
|
7938
7938
|
}, Of = ({ align: t = "right", label: n = 'Show "Recent"', ...o2 }) => {
|
|
7939
7939
|
const { value: i } = ks({ prefKey: Wa });
|
|
7940
|
-
return jsxRuntime.jsx(
|
|
7940
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ga, disabled: !i, ...o2 });
|
|
7941
7941
|
}, Lf = ({ title: n = "Layouts", ...o2 }) => {
|
|
7942
7942
|
const { LayoutsSaveCurrentOnExit: i, LayoutsShowDeletePrompt: r2, LayoutsShowUnsavedChangesPrompt: a } = Np();
|
|
7943
7943
|
return jsxRuntime.jsxs(T, { title: n, ...o2, children: [jsxRuntime.jsx(i, {}), jsxRuntime.jsx(a, {}), jsxRuntime.jsx(r2, {})] });
|
|
7944
|
-
}, Df = ({ align: t = "right", label: n = "Save current on exit", ...o2 }) => jsxRuntime.jsx(
|
|
7944
|
+
}, Df = ({ align: t = "right", label: n = "Save current on exit", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ja, ...o2 }), Tf = ({ align: t = "right", label: n = "Show prompt for unsaved changes", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ya, "data-testid": "layouts-show-unsaved-changes-prompt-toggle-button", ...o2 }), Rf = ({ align: t = "right", label: n = "Show prompt for deleting", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Xa, "data-testid": "layouts-show-delete-prompt-toggle", ...o2 }), Bf = ({ title: t = "Downloads", ...n }) => {
|
|
7945
7945
|
const { DownloadsLocation: o2 } = Np();
|
|
7946
7946
|
return jsxRuntime.jsx(T, { title: t, ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
7947
7947
|
};
|
|
@@ -7983,11 +7983,11 @@
|
|
|
7983
7983
|
console.error("Failed to open Download Manager", e);
|
|
7984
7984
|
});
|
|
7985
7985
|
}, [i]);
|
|
7986
|
-
return jsxRuntime.jsx(
|
|
7986
|
+
return jsxRuntime.jsx(I, { className: E("io-dm-compact-mode-only", t), icon: n, variant: "circle", size: "32", onClick: r2, ...o$1 });
|
|
7987
7987
|
}
|
|
7988
7988
|
function Vf({ icon: t = "close", size: n = "32", variant: o$1 = "circle", onClick: i, ...r2 }) {
|
|
7989
7989
|
const a = o.useContext(reactHooks.IOConnectContext);
|
|
7990
|
-
return jsxRuntime.jsx(
|
|
7990
|
+
return jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, onClick: (e) => {
|
|
7991
7991
|
i ? i(e) : df.closeWindow(a).catch((e2) => {
|
|
7992
7992
|
console.error("Failed to close window:", e2);
|
|
7993
7993
|
});
|
|
@@ -8013,7 +8013,7 @@
|
|
|
8013
8013
|
}
|
|
8014
8014
|
function qf({ className: n, icon: o2 = "download", text: i = "No downloads to display.", ...r2 }) {
|
|
8015
8015
|
const a = E("io-dm-no-items", n);
|
|
8016
|
-
return jsxRuntime.jsxs("div", { className: a, ...r2, children: [jsxRuntime.jsx(
|
|
8016
|
+
return jsxRuntime.jsxs("div", { className: a, ...r2, children: [jsxRuntime.jsx(P, { variant: o2 }), jsxRuntime.jsx("p", { children: i })] });
|
|
8017
8017
|
}
|
|
8018
8018
|
function Jf({ className: n, title: o2, children: i, ...r2 }) {
|
|
8019
8019
|
const a = E("io-dm-item-group", n);
|
|
@@ -8031,12 +8031,12 @@
|
|
|
8031
8031
|
return jsxRuntime.jsx(Js, { value: i(), ...o$1 });
|
|
8032
8032
|
}
|
|
8033
8033
|
function Qf({ className: n, itemID: o$1, filename: i, state: r2, pauseResume: s, showInFolder: c, cancel: l, remove: u, ...d }) {
|
|
8034
|
-
const f = E("io-dm-item-header", n), { pauseResumeItem: p, showItemInFolder: m, cancelItem: h, removeItem: g } = _f(), y = "progressing" === r2 || "paused" === r2, v = "interrupted" === r2 || "cancelled" === r2,
|
|
8034
|
+
const f = E("io-dm-item-header", n), { pauseResumeItem: p, showItemInFolder: m, cancelItem: h, removeItem: g } = _f(), y = "progressing" === r2 || "paused" === r2, v = "interrupted" === r2 || "cancelled" === r2, b = y ? "Cancel Download" : "Remove Download", w2 = l ?? h, k = u ?? g, x = function(e, t, n2, o2) {
|
|
8035
8035
|
return "paused" === e || "progressing" === e ? { statusIcon: "paused" === e ? "play" : "pause", onStatusActionClick: () => n2(t) } : "completed" === e ? { statusIcon: "folder", onStatusActionClick: () => o2(t) } : null;
|
|
8036
|
-
}(r2, o$1, s ?? p, c ?? m),
|
|
8037
|
-
y ?
|
|
8038
|
-
}, [y,
|
|
8039
|
-
return jsxRuntime.jsxs("div", { className: f, ...d, children: [jsxRuntime.jsx(D, { text: i, style: { textDecoration: v ? "line-through" : "none" } }), jsxRuntime.jsxs(ae, { children: [x && jsxRuntime.jsx(
|
|
8036
|
+
}(r2, o$1, s ?? p, c ?? m), C2 = o.useCallback(() => {
|
|
8037
|
+
y ? w2(o$1) : k(o$1);
|
|
8038
|
+
}, [y, w2, o$1, k]);
|
|
8039
|
+
return jsxRuntime.jsxs("div", { className: f, ...d, children: [jsxRuntime.jsx(D, { text: i, style: { textDecoration: v ? "line-through" : "none" } }), jsxRuntime.jsxs(ae, { children: [x && jsxRuntime.jsx(I, { icon: x.statusIcon, iconSize: "12", onClick: x.onStatusActionClick, className: "io-dm-compact-mode-only" }), jsxRuntime.jsx(I, { icon: "close", iconSize: "12", title: b, onClick: C2 })] })] });
|
|
8040
8040
|
}
|
|
8041
8041
|
function Zf({ className: n, state: o2, url: i, bytesReceived: r2 = 0, bytesTotal: a = 0, speed: s = 0, timeRemaining: c = 0, ...l }) {
|
|
8042
8042
|
const u = E("io-dm-item-body", n), d = (e) => {
|
|
@@ -8056,7 +8056,7 @@
|
|
|
8056
8056
|
const ep = { success: "check-solid", warning: "exclamation-mark", critical: "exclamation-mark" };
|
|
8057
8057
|
function tp({ className: n, variant: o2, text: i }) {
|
|
8058
8058
|
const r2 = E("io-dm-item-status", `io-dm-item-status-${o2}`, n);
|
|
8059
|
-
return jsxRuntime.jsxs("div", { className: r2, children: [o2 && jsxRuntime.jsx(
|
|
8059
|
+
return jsxRuntime.jsxs("div", { className: r2, children: [o2 && jsxRuntime.jsx(P, { variant: ep[o2], className: "icon-severity", size: "10" }), i && jsxRuntime.jsx("p", { className: "io-text-smaller", children: i })] });
|
|
8060
8060
|
}
|
|
8061
8061
|
function np({ className: o$1, itemID: i, state: r2, pauseResume: s, showInFolder: c, cancel: l, ...u }) {
|
|
8062
8062
|
const d = E("io-dm-item-footer", o$1), { pauseResumeItem: f, showItemInFolder: p, cancelItem: m } = _f(), h = o.useCallback((e) => {
|
|
@@ -8085,7 +8085,7 @@
|
|
|
8085
8085
|
}
|
|
8086
8086
|
function op({ className: n, title: o2 = "Download Settings", ...i }) {
|
|
8087
8087
|
const r2 = E("io-dm-settings-panel", n), { configuration: { downloadFolder: a }, hideSettings: s, setDownloadLocation: c, setDownloadLocationWithDialog: l, isDownloadLocationDialogVisible: u, downloadLocationList: d } = _f();
|
|
8088
|
-
return jsxRuntime.jsxs(Gs, { className: r2, ...i, children: [jsxRuntime.jsxs(Gs.Header, { children: [jsxRuntime.jsx(Gs.Header.Title, { size: "large", text: o2, tag: "h1" }), jsxRuntime.jsx(Gs.Header.ButtonGroup, { children: jsxRuntime.jsx(
|
|
8088
|
+
return jsxRuntime.jsxs(Gs, { className: r2, ...i, children: [jsxRuntime.jsxs(Gs.Header, { children: [jsxRuntime.jsx(Gs.Header.Title, { size: "large", text: o2, tag: "h1" }), jsxRuntime.jsx(Gs.Header.ButtonGroup, { children: jsxRuntime.jsx(I, { className: "non-draggable", variant: "circle", icon: "close", size: "32", onClick: () => {
|
|
8089
8089
|
s();
|
|
8090
8090
|
}, disabled: u }) })] }), jsxRuntime.jsx(Gs.Body, { children: jsxRuntime.jsxs(ae, { children: [jsxRuntime.jsxs(re, { variant: "light", disabled: u, children: [jsxRuntime.jsx(re.Button, { children: jsxRuntime.jsx("span", { className: "io-dm-settings-panel-download-location", children: a ?? d[0] }) }), d.length > 1 && jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { children: d.map((t, n2) => !t || 0 === n2 || n2 > 3 ? null : jsxRuntime.jsx(re.Item, { onClick: () => {
|
|
8091
8091
|
c(t);
|
|
@@ -8102,7 +8102,7 @@
|
|
|
8102
8102
|
const up = ({ className: n, label: o2 = "Location", ...i }) => {
|
|
8103
8103
|
const { configuration: { downloadFolder: r2 }, setDownloadLocationWithDialog: a, isDownloadLocationDialogVisible: s, downloadLocationList: c } = _f();
|
|
8104
8104
|
return jsxRuntime.jsxs(T, { className: E("io-preferences-download-section", n), ...i, children: [jsxRuntime.jsxs("div", { className: "flex jc-between ai-center", children: [jsxRuntime.jsx("label", { className: "io-text-clipper", children: o2 }), jsxRuntime.jsx($, { text: "Change", onClick: a, disabled: s })] }), jsxRuntime.jsx("p", { children: r2 ?? (c == null ? void 0 : c[0]) ?? "Not set" })] });
|
|
8105
|
-
}, dp = ({ align: t = "right", label: n = "Ask where to save each file before downloading", ...o2 }) => jsxRuntime.jsx(
|
|
8105
|
+
}, dp = ({ align: t = "right", label: n = "Ask where to save each file before downloading", ...o2 }) => jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Qa, ...o2 }), fp = ({ title: n = "System", ...o2 }) => {
|
|
8106
8106
|
const { SystemRestartSection: i, SystemShutdownSection: r2 } = Np();
|
|
8107
8107
|
return jsxRuntime.jsxs(T, { title: n, ...o2, children: [jsxRuntime.jsx(i, {}), jsxRuntime.jsx(r2, {})] });
|
|
8108
8108
|
}, pp = "T42.GD.Execute", mp = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], hp = (e, t) => e in t;
|
|
@@ -8169,36 +8169,32 @@
|
|
|
8169
8169
|
const n = "restart" === e ? "_system_scheduleRestart" : "_system_scheduleShutdown";
|
|
8170
8170
|
return t ? `${n}${t}` : n;
|
|
8171
8171
|
}
|
|
8172
|
-
function
|
|
8172
|
+
function bp({ className: n, variant: o2, ...i }) {
|
|
8173
8173
|
const r2 = E("io-block-list-gap", o2, n), { enabled: a, time: s, frequency: c, day: l, setEnabled: u, setTime: d, setFrequency: f, setDay: p } = yp(o2);
|
|
8174
8174
|
return jsxRuntime.jsxs(T, { className: r2, ...i, children: [jsxRuntime.jsx(sf, { label: `Schedule ${o2}`, align: "right", onChange: (e) => u(e.target.checked), checked: a }), jsxRuntime.jsxs("div", { className: "scheduler-controls", children: [jsxRuntime.jsx("div", { className: "io-control-input io-control-leading-icon direction-up", children: jsxRuntime.jsx("input", { type: "time", className: "io-input", value: s, onChange: (e) => d(e.target.value) }) }), jsxRuntime.jsxs(ei, { text: c.charAt(0).toUpperCase() + c.slice(1), icon: "chevron-down", iconRight: true, children: [jsxRuntime.jsx(ei.Item, { onClick: () => f("daily"), children: "Daily" }), jsxRuntime.jsx(ei.Item, { onClick: () => f("weekly"), children: "Weekly" })] }), "weekly" === c && jsxRuntime.jsx(ei, { text: l, icon: "chevron-down", iconRight: true, children: mp.map((t) => jsxRuntime.jsx(ei.Item, { onClick: () => p(t), children: t }, t)) })] })] });
|
|
8175
8175
|
}
|
|
8176
|
-
function
|
|
8177
|
-
return jsxRuntime.jsx(
|
|
8176
|
+
function wp({ className: t, ...n }) {
|
|
8177
|
+
return jsxRuntime.jsx(bp, { ...n, className: t, variant: "restart" });
|
|
8178
8178
|
}
|
|
8179
8179
|
function kp({ className: t, ...n }) {
|
|
8180
|
-
return jsxRuntime.jsx(
|
|
8180
|
+
return jsxRuntime.jsx(bp, { ...n, className: t, variant: "shutdown" });
|
|
8181
8181
|
}
|
|
8182
8182
|
const xp = { Body: gf, General: yf, Theme: vf, Launchpad: ({ title: n = "Launchpad", ...o2 }) => {
|
|
8183
8183
|
const { MinimizeToTray: i, PinnedPosition: r2, HideFavoritesFromLaunchpad: a } = Np();
|
|
8184
8184
|
return jsxRuntime.jsxs(T, { title: n, ...o2, children: [jsxRuntime.jsx(i, {}), jsxRuntime.jsx(r2, {}), jsxRuntime.jsx(a, {})] });
|
|
8185
|
-
}, MinimizeToTray:
|
|
8186
|
-
const { AllowDocking:
|
|
8187
|
-
return jsxRuntime.jsxs(T, { title:
|
|
8188
|
-
}, AllowDocking:
|
|
8189
|
-
const { ShowExtendedArea:
|
|
8190
|
-
return jsxRuntime.jsxs(T, { title:
|
|
8191
|
-
}, ShowExtendedArea:
|
|
8185
|
+
}, MinimizeToTray: wf, PinnedPosition: xf, HideFavoritesFromLaunchpad: Cf, Docking: ({ className: n, title: o2 = "Docking", ...i }) => {
|
|
8186
|
+
const r2 = E("io-preferences-panel-docking", n), { AllowDocking: a, DockedAlwaysOnTop: s, DockedClaimsSpace: c } = Np();
|
|
8187
|
+
return jsxRuntime.jsxs(T, { className: r2, title: o2, ...i, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {})] });
|
|
8188
|
+
}, AllowDocking: Sf, DockedAlwaysOnTop: Nf, DockedClaimsSpace: Ef, ExtendedArea: ({ className: n, title: o2 = "Extended Area", ...i }) => {
|
|
8189
|
+
const r2 = E("io-preferences-panel-extended-area", n), { ShowExtendedArea: a, HideLabelsInExtendedArea: s, ShowFavoritesInExtendedArea: c, ShowRecentAppsInExtendedArea: l } = Np();
|
|
8190
|
+
return jsxRuntime.jsxs(T, { className: r2, title: o2, ...i, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {}), jsxRuntime.jsx(l, {})] });
|
|
8191
|
+
}, ShowExtendedArea: Pf, HideLabelsInExtendedArea: If, ShowFavoritesInExtendedArea: Af, ShowRecentAppsInExtendedArea: Of, Layouts: Lf, LayoutsSaveCurrentOnExit: Df, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf, Downloads: Bf, DownloadsLocation: up, DownloadsAskForEachDownload: dp, System: fp, SystemRestartSection: wp, SystemShutdownSection: kp }, Cp = o.createContext(xp), Sp = o.memo(({ children: t, components: n }) => {
|
|
8192
8192
|
const o$1 = o.useMemo(() => ({ ...xp, ...n }), [n]);
|
|
8193
|
-
return jsxRuntime.jsx(
|
|
8193
|
+
return jsxRuntime.jsx(Cp.Provider, { value: o$1, children: t });
|
|
8194
8194
|
});
|
|
8195
|
-
|
|
8196
|
-
const Np = () => o.useContext(
|
|
8197
|
-
function Ap(
|
|
8198
|
-
const r2 = E("io-notifications-settings-panel-general", n), { AllowNotifications: a, AllowNotificationToasts: s, ShowNotificationBadge: c, CloseNotificationOnClick: l, PanelAutoHide: u, HideToastsAfter: d } = mm(), f = Ud();
|
|
8199
|
-
return jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsxs(T, { title: o2, children: [f && jsxRuntime.jsx(a, {}), f && jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {}), f && jsxRuntime.jsx(u, {}), f && jsxRuntime.jsx(l, {}), f && jsxRuntime.jsx(d, {})] }) });
|
|
8200
|
-
}
|
|
8201
|
-
function Op(e) {
|
|
8195
|
+
Sp.displayName = "PreferencesPanelComponentsStoreProvider";
|
|
8196
|
+
const Np = () => o.useContext(Cp);
|
|
8197
|
+
function Ap(e) {
|
|
8202
8198
|
if (e && e.errorHandling && "function" != typeof e.errorHandling && "log" !== e.errorHandling && "silent" !== e.errorHandling && "throw" !== e.errorHandling)
|
|
8203
8199
|
throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but ' + typeof e.errorHandling + " was passed");
|
|
8204
8200
|
var t = e && "function" == typeof e.errorHandling && e.errorHandling, n = {};
|
|
@@ -8259,9 +8255,9 @@
|
|
|
8259
8255
|
n[e2] && delete n[e2];
|
|
8260
8256
|
} };
|
|
8261
8257
|
}
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
function
|
|
8258
|
+
Ap.default = Ap;
|
|
8259
|
+
C(Ap);
|
|
8260
|
+
function Dp(e) {
|
|
8265
8261
|
const t = o.useContext(reactHooks.IOConnectContext), n = Ud(), [o$1, i] = o.useState([]), [r2, s] = o.useState(0), d = "Platform", p = o.useCallback((e2 = "asc") => {
|
|
8266
8262
|
if (null === n)
|
|
8267
8263
|
return [];
|
|
@@ -8326,7 +8322,7 @@
|
|
|
8326
8322
|
return s(a), c;
|
|
8327
8323
|
}, [e, o$1]), allowedApps: r2, sortedAppsAsc: m, sortedAppsDesc: h, sortAppsAlphabetically: p };
|
|
8328
8324
|
}
|
|
8329
|
-
const
|
|
8325
|
+
const $p = o.createContext({ allApps: [], settings: {}, configuration: {}, notifications: [], notificationsCount: 0, onClose: () => {
|
|
8330
8326
|
}, allApplications: 0, clearAll: () => {
|
|
8331
8327
|
}, showPanel: () => {
|
|
8332
8328
|
}, hidePanel: () => {
|
|
@@ -8342,33 +8338,37 @@
|
|
|
8342
8338
|
}, setState: () => {
|
|
8343
8339
|
}, setStates: () => {
|
|
8344
8340
|
}, setCount: () => {
|
|
8345
|
-
} }),
|
|
8341
|
+
} }), _p = () => o.useContext($p);
|
|
8342
|
+
function jp({ className: n, title: o2 = "General", ...i }) {
|
|
8343
|
+
const r2 = E("io-notifications-settings-panel-general", n), { AllowNotifications: a, AllowNotificationToasts: s, ShowNotificationBadge: c, CloseNotificationOnClick: l, PanelAutoHide: u, HideToastsAfter: d } = mm(), f = Ud();
|
|
8344
|
+
return jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsxs(T, { title: o2, children: [f && jsxRuntime.jsx(a, {}), f && jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {}), f && jsxRuntime.jsx(u, {}), f && jsxRuntime.jsx(l, {}), f && jsxRuntime.jsx(d, {})] }) });
|
|
8345
|
+
}
|
|
8346
8346
|
function zp({ label: t = "Allow notifications", align: n = "right", ...o$1 }) {
|
|
8347
|
-
const { settings: i, saveSetting: r2 } =
|
|
8347
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = o.useCallback((e) => {
|
|
8348
8348
|
r2({ enabledNotifications: e.target.checked });
|
|
8349
8349
|
}, [r2]);
|
|
8350
8350
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.enabledNotifications ?? false, ...o$1 }) : null;
|
|
8351
8351
|
}
|
|
8352
8352
|
function Hp({ label: t = "Allow notification toasts", align: n = "right", ...o$1 }) {
|
|
8353
|
-
const { settings: i, saveSetting: r2 } =
|
|
8353
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8354
8354
|
r2({ enabledToasts: e.target.checked });
|
|
8355
8355
|
}, [r2]);
|
|
8356
8356
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.enabledToasts ?? false, disabled: c, ...o$1 }) : null;
|
|
8357
8357
|
}
|
|
8358
8358
|
function Wp({ label: t = "Show notification badge", align: n = "right", ...o$1 }) {
|
|
8359
|
-
const { settings: i, saveSetting: r2 } =
|
|
8359
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud() && !i.enabledNotifications, c = o.useCallback((e) => {
|
|
8360
8360
|
r2({ showNotificationBadge: e.target.checked });
|
|
8361
8361
|
}, [r2]);
|
|
8362
8362
|
return jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.showNotificationBadge ?? false, disabled: s, ...o$1 });
|
|
8363
8363
|
}
|
|
8364
8364
|
function Vp({ label: t = "Close notification on click", align: n = "right", ...o$1 }) {
|
|
8365
|
-
const { settings: i, saveSetting: r2 } =
|
|
8365
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8366
8366
|
r2({ closeNotificationOnClick: e.target.checked });
|
|
8367
8367
|
}, [r2]);
|
|
8368
8368
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.closeNotificationOnClick ?? false, disabled: c, ...o$1 }) : null;
|
|
8369
8369
|
}
|
|
8370
8370
|
function Up({ label: t = "Auto hide panel", align: n = "right", ...o$1 }) {
|
|
8371
|
-
const { settings: i, saveSetting: r2 } =
|
|
8371
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = o.useCallback((e) => {
|
|
8372
8372
|
r2({ autoHidePanel: e.target.checked });
|
|
8373
8373
|
}, [r2]);
|
|
8374
8374
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.autoHidePanel ?? false, ...o$1 }) : null;
|
|
@@ -8378,7 +8378,7 @@
|
|
|
8378
8378
|
return o2 + (o2 && i ? " " : "") + i;
|
|
8379
8379
|
};
|
|
8380
8380
|
function qp({ className: n, title: o$1 = "Hide toasts after", items: i = [15, 30, 45, 60], ...r2 }) {
|
|
8381
|
-
const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } =
|
|
8381
|
+
const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = _p(), u = Ud(), d = u && !c.enabledNotifications, f = o.useCallback((e = 15e3) => {
|
|
8382
8382
|
c.toastExpiry !== e && l({ toastExpiry: 1e3 * e });
|
|
8383
8383
|
}, [c.toastExpiry, l]);
|
|
8384
8384
|
return u ? jsxRuntime.jsxs("div", { className: s, ...r2, children: [jsxRuntime.jsx("div", { className: "io-text-clipper " + (d ? "io-text-disabled" : ""), children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", disabled: d, children: [jsxRuntime.jsx(re.Button, { text: Gp((c.toastExpiry ?? 0) / 1e3) }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", children: i.map((t) => jsxRuntime.jsx(re.Item, { onClick: () => {
|
|
@@ -8390,14 +8390,14 @@
|
|
|
8390
8390
|
return Ud() ? jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsxs(T, { title: o2, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {})] }) }) : null;
|
|
8391
8391
|
}
|
|
8392
8392
|
function Yp({ label: t = "Allow toast stacking", align: n = "right", ...o$1 }) {
|
|
8393
|
-
const { settings: i, saveSetting: r2 } =
|
|
8393
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8394
8394
|
r2({ toastStacking: e.target.checked });
|
|
8395
8395
|
}, [r2]);
|
|
8396
8396
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.toastStacking ?? false, disabled: c, ...o$1 }) : null;
|
|
8397
8397
|
}
|
|
8398
8398
|
const Xp = { application: "Application", severity: "Priority" }, Qp = Object.fromEntries(Object.entries(Xp).map(([e, t]) => [t, e]));
|
|
8399
8399
|
function Zp({ className: n, title: o$1 = "Group by", ...i }) {
|
|
8400
|
-
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } =
|
|
8400
|
+
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = l && !s.enabledNotifications, d = o.useCallback((e = "severity") => {
|
|
8401
8401
|
s.stackBy !== e && c({ stackBy: e.toLowerCase() });
|
|
8402
8402
|
}, [s.stackBy, c]);
|
|
8403
8403
|
if (!l)
|
|
@@ -8414,20 +8414,20 @@
|
|
|
8414
8414
|
}
|
|
8415
8415
|
const tm = (e) => e.replace(/(^|-)\w/g, (e2) => e2.toUpperCase().replace("-", " "));
|
|
8416
8416
|
function nm({ className: n, title: o$1 = "Panel position", ...i }) {
|
|
8417
|
-
var _a2,
|
|
8418
|
-
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } =
|
|
8417
|
+
var _a2, _b2;
|
|
8418
|
+
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = o.useCallback((e) => {
|
|
8419
8419
|
var _a3;
|
|
8420
8420
|
e || (e = "right"), ((_a3 = s.placement) == null ? void 0 : _a3.panel) !== e && c({ placement: { ...s.placement, panel: e.toLowerCase() } });
|
|
8421
8421
|
}, [s.placement, c]);
|
|
8422
8422
|
if (!l)
|
|
8423
8423
|
return null;
|
|
8424
|
-
return jsxRuntime.jsxs("div", { className: r2, ...i, children: [jsxRuntime.jsx("div", { className: "io-text-clipper", children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", children: [jsxRuntime.jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.panel) ? tm((
|
|
8424
|
+
return jsxRuntime.jsxs("div", { className: r2, ...i, children: [jsxRuntime.jsx("div", { className: "io-text-clipper", children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", children: [jsxRuntime.jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.panel) ? tm((_b2 = s.placement) == null ? void 0 : _b2.panel) : "Right" }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", children: ["Right", "Left"].map((t) => jsxRuntime.jsx(re.Item, { onClick: () => {
|
|
8425
8425
|
u(t);
|
|
8426
8426
|
}, children: t }, t)) }) })] })] });
|
|
8427
8427
|
}
|
|
8428
8428
|
function om({ className: n, title: o$1 = "Toasts position", ...i }) {
|
|
8429
|
-
var _a2,
|
|
8430
|
-
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } =
|
|
8429
|
+
var _a2, _b2;
|
|
8430
|
+
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = o.useCallback((e) => {
|
|
8431
8431
|
var _a3;
|
|
8432
8432
|
if (e || (e = "bottom-right"), ((_a3 = s.placement) == null ? void 0 : _a3.toasts) === e)
|
|
8433
8433
|
return;
|
|
@@ -8436,64 +8436,64 @@
|
|
|
8436
8436
|
}, [s.placement, c]);
|
|
8437
8437
|
if (!l)
|
|
8438
8438
|
return null;
|
|
8439
|
-
return jsxRuntime.jsxs("div", { className: r2, ...i, children: [jsxRuntime.jsx("div", { className: "io-text-clipper", children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", children: [jsxRuntime.jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.toasts) ? tm((
|
|
8439
|
+
return jsxRuntime.jsxs("div", { className: r2, ...i, children: [jsxRuntime.jsx("div", { className: "io-text-clipper", children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", children: [jsxRuntime.jsx(re.Button, { text: ((_a2 = s.placement) == null ? void 0 : _a2.toasts) ? tm((_b2 = s.placement) == null ? void 0 : _b2.toasts) : "Bottom Right" }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", children: ["Top Right", "Top Left", "Bottom Right", "Bottom Left"].map((t) => jsxRuntime.jsx(re.Item, { onClick: () => {
|
|
8440
8440
|
u(t);
|
|
8441
8441
|
}, children: t }, t)) }) })] })] });
|
|
8442
8442
|
}
|
|
8443
8443
|
function im({ className: t, title: n = "Snooze", ...o2 }) {
|
|
8444
8444
|
var _a2;
|
|
8445
|
-
const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } =
|
|
8445
|
+
const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } = _p();
|
|
8446
8446
|
return Ud() && ((_a2 = a.snooze) == null ? void 0 : _a2.enabled) ? jsxRuntime.jsx("div", { className: i, ...o2, children: jsxRuntime.jsx(T, { title: n, children: jsxRuntime.jsx(r2, {}) }) }) : null;
|
|
8447
8447
|
}
|
|
8448
8448
|
function rm({ className: n, title: o$1 = "Default duration", items: i = [60, 120, 180, 300], ...r2 }) {
|
|
8449
|
-
var _a2,
|
|
8450
|
-
const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } =
|
|
8449
|
+
var _a2, _b2;
|
|
8450
|
+
const s = E("flex", "jc-between", "ai-center", n), { settings: c, saveSetting: l } = _p(), u = Ud(), d = u && !c.enabledNotifications, f = o.useCallback((e = 6e4) => {
|
|
8451
8451
|
var _a3;
|
|
8452
8452
|
c.snooze && ((_a3 = c.snooze) == null ? void 0 : _a3.duration) !== e && l({ snooze: { ...c.snooze, duration: 1e3 * e } });
|
|
8453
8453
|
}, [c.snooze, l]);
|
|
8454
|
-
return u && ((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? jsxRuntime.jsxs("div", { className: s, ...r2, children: [jsxRuntime.jsx("div", { className: E("io-text-clipper", { "io-text-disabled": d }), children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", disabled: d, children: [jsxRuntime.jsx(re.Button, { text: Gp((((
|
|
8454
|
+
return u && ((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? jsxRuntime.jsxs("div", { className: s, ...r2, children: [jsxRuntime.jsx("div", { className: E("io-text-clipper", { "io-text-disabled": d }), children: jsxRuntime.jsx("span", { children: o$1 }) }), jsxRuntime.jsxs(re, { variant: "light", disabled: d, children: [jsxRuntime.jsx(re.Button, { text: Gp((((_b2 = c.snooze) == null ? void 0 : _b2.duration) ?? 0) / 1e3) }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", children: i.map((t) => jsxRuntime.jsx(re.Item, { onClick: () => {
|
|
8455
8455
|
f(t);
|
|
8456
8456
|
}, children: Gp(t) }, t)) }) })] })] }) : null;
|
|
8457
8457
|
}
|
|
8458
8458
|
function am({ className: n, title: o2, ...i }) {
|
|
8459
|
-
const r2 = E("io-notifications-settings-panel-subscriptions", n), { SubscribeAll: a, SubscribeApp: s, SubscribeMuteAll: c, SubscribeMuteApp: l } = mm(), { sortAppsAlphabetically: u } =
|
|
8459
|
+
const r2 = E("io-notifications-settings-panel-subscriptions", n), { SubscribeAll: a, SubscribeApp: s, SubscribeMuteAll: c, SubscribeMuteApp: l } = mm(), { sortAppsAlphabetically: u } = Dp(), d = Ud(), f = u(), p = "io-notifications-subscriptions-grid " + (d ? "with-three-columns" : "with-two-columns");
|
|
8460
8460
|
return jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsxs(T, { title: o2 ?? (d ? "Subscribe & Mute" : "Subscribe"), children: [jsxRuntime.jsxs("div", { className: p, children: [jsxRuntime.jsx("p", { className: "io-text-section", children: "Sources" }), jsxRuntime.jsx("p", { className: "io-text-section", children: "Subscribe" }), d && jsxRuntime.jsx("p", { className: "io-text-section", children: "Mute" })] }), jsxRuntime.jsxs("div", { className: p, children: [jsxRuntime.jsx("p", { children: "All Sources" }), jsxRuntime.jsx(a, { label: "" }), d && jsxRuntime.jsx(c, { label: "" })] }), f.map((n2) => {
|
|
8461
8461
|
var _a2;
|
|
8462
8462
|
return !n2 || n2.hidden || ((_a2 = n2 == null ? void 0 : n2.userProperties) == null ? void 0 : _a2.hidden) ? null : jsxRuntime.jsxs("div", { className: p, children: [jsxRuntime.jsx("p", { children: n2.title ?? n2.name }), jsxRuntime.jsx(s, { app: n2, label: "" }), d && jsxRuntime.jsx(l, { app: n2, label: "" })] }, n2.name);
|
|
8463
8463
|
})] }) });
|
|
8464
8464
|
}
|
|
8465
8465
|
function sm({ label: t = "All apps", align: n = "right", ...o$1 }) {
|
|
8466
|
-
var _a2,
|
|
8467
|
-
const { settings: i, configuration: r2, saveAllFilter: s } =
|
|
8466
|
+
var _a2, _b2, _c2, _d2;
|
|
8467
|
+
const { settings: i, configuration: r2, saveAllFilter: s } = _p(), c = Ud() && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8468
8468
|
s({ subscribe: e.target.checked });
|
|
8469
8469
|
}, [s]);
|
|
8470
|
-
return jsxRuntime.jsx(sf, { align: n, label: t, onChange: l, checked: (((
|
|
8470
|
+
return jsxRuntime.jsx(sf, { align: n, label: t, onChange: l, checked: (((_b2 = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.includes("*")) && 0 === ((_d2 = (_c2 = r2.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.length)) ?? false, disabled: c, ...o$1 });
|
|
8471
8471
|
}
|
|
8472
8472
|
function cm({ label: t = "App", align: n = "right", app: o$1, ...i }) {
|
|
8473
|
-
var _a2,
|
|
8474
|
-
const { allApps: r2, settings: s, configuration: c, saveFilter: l } =
|
|
8475
|
-
var _a3,
|
|
8473
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
8474
|
+
const { allApps: r2, settings: s, configuration: c, saveFilter: l } = _p(), u = Ud() && !s.enabledNotifications, d = o.useCallback((e, t2) => {
|
|
8475
|
+
var _a3, _b3, _c3, _d3, _e3, _f3;
|
|
8476
8476
|
const n2 = { ...c.sourceFilter }, o2 = (_a3 = n2.allowed) == null ? void 0 : _a3.indexOf("*");
|
|
8477
|
-
"number" == typeof o2 && o2 > -1 && ((
|
|
8477
|
+
"number" == typeof o2 && o2 > -1 && ((_b3 = n2.allowed) == null ? void 0 : _b3.splice(o2, 1), r2.forEach((e2) => {
|
|
8478
8478
|
var _a4;
|
|
8479
8479
|
e2.name !== t2.name && ((_a4 = n2.allowed) == null ? void 0 : _a4.push(e2.name));
|
|
8480
8480
|
})), e ? (n2.allowed = [.../* @__PURE__ */ new Set([...n2.allowed ?? [], t2.name])], n2.blocked = (_c3 = n2.blocked) == null ? void 0 : _c3.filter((e2) => e2 !== t2.name)) : (n2.allowed = (_d3 = n2.allowed) == null ? void 0 : _d3.filter((e2) => e2 !== t2.name), n2.blocked = [.../* @__PURE__ */ new Set([...n2.blocked ?? [], t2.name])]), ((_e3 = n2.allowed) == null ? void 0 : _e3.length) && ((_f3 = n2.blocked) == null ? void 0 : _f3.includes("*")) && n2.blocked.splice(n2.blocked.indexOf("*"), 1), l(n2);
|
|
8481
8481
|
}, [r2, c.sourceFilter, l]);
|
|
8482
|
-
return jsxRuntime.jsx(sf, { id: `subscribe-${o$1.name}`, label: t, align: n, onChange: (e) => d(e.target.checked, o$1), checked: (((
|
|
8482
|
+
return jsxRuntime.jsx(sf, { id: `subscribe-${o$1.name}`, label: t, align: n, onChange: (e) => d(e.target.checked, o$1), checked: (((_b2 = (_a2 = c.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.includes("*")) && !((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o$1.name)) || ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.includes(o$1.name))) ?? false, disabled: u, ...i });
|
|
8483
8483
|
}
|
|
8484
8484
|
function lm({ label: t = "Mute all", align: n = "right", ...o$1 }) {
|
|
8485
|
-
var _a2,
|
|
8486
|
-
const { settings: i, configuration: r2, saveAllFilter: s } =
|
|
8485
|
+
var _a2, _b2, _c2, _d2;
|
|
8486
|
+
const { settings: i, configuration: r2, saveAllFilter: s } = _p(), c = Ud(), l = c && (!i.enabledNotifications || -1 === ((_b2 = (_a2 = r2.sourceFilter) == null ? void 0 : _a2.allowed) == null ? void 0 : _b2.indexOf("*"))), u = o.useCallback((e) => {
|
|
8487
8487
|
s({ mute: e.target.checked });
|
|
8488
8488
|
}, [s]);
|
|
8489
8489
|
return c ? jsxRuntime.jsx(sf, { align: n, label: t, onChange: u, checked: ((_d2 = (_c2 = r2.sourceFilter) == null ? void 0 : _c2.muted) == null ? void 0 : _d2.includes("*")) ?? false, disabled: l ?? false, ...o$1 }) : null;
|
|
8490
8490
|
}
|
|
8491
8491
|
function um({ label: t = "App", align: n = "right", app: o$1, ...i }) {
|
|
8492
|
-
var _a2,
|
|
8493
|
-
const { allApps: r2, settings: s, configuration: c, saveFilter: l } =
|
|
8494
|
-
var _a3,
|
|
8492
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2;
|
|
8493
|
+
const { allApps: r2, settings: s, configuration: c, saveFilter: l } = _p(), u = Ud(), d = u && (!s.enabledNotifications || ((_b2 = (_a2 = c.sourceFilter) == null ? void 0 : _a2.blocked) == null ? void 0 : _b2.includes("*")) || ((_d2 = (_c2 = c.sourceFilter) == null ? void 0 : _c2.blocked) == null ? void 0 : _d2.includes(o$1.name)) || 0 === ((_f2 = (_e2 = c.sourceFilter) == null ? void 0 : _e2.allowed) == null ? void 0 : _f2.length) || -1 === ((_h = (_g2 = c.sourceFilter) == null ? void 0 : _g2.allowed) == null ? void 0 : _h.indexOf(o$1.name)) && -1 === ((_j = (_i2 = c.sourceFilter) == null ? void 0 : _i2.allowed) == null ? void 0 : _j.indexOf("*")) && 0 === ((_l2 = (_k = c.sourceFilter) == null ? void 0 : _k.blocked) == null ? void 0 : _l2.length)), f = o.useCallback((e, t2) => {
|
|
8494
|
+
var _a3, _b3, _c3, _d3;
|
|
8495
8495
|
const n2 = { ...c.sourceFilter }, o2 = (_a3 = n2 == null ? void 0 : n2.muted) == null ? void 0 : _a3.indexOf("*");
|
|
8496
|
-
"number" == typeof o2 && o2 > -1 && ((
|
|
8496
|
+
"number" == typeof o2 && o2 > -1 && ((_b3 = n2.muted) == null ? void 0 : _b3.splice(o2, 1), r2.forEach((e2) => {
|
|
8497
8497
|
var _a4;
|
|
8498
8498
|
e2.name === t2.name || e2.hidden || ((_a4 = n2.muted) == null ? void 0 : _a4.push(e2.name));
|
|
8499
8499
|
})), e ? (_c3 = n2.muted) == null ? void 0 : _c3.push(t2.name) : n2.muted = (_d3 = n2.muted) == null ? void 0 : _d3.filter((e2) => e2 !== t2.name), l(n2);
|
|
@@ -8501,21 +8501,22 @@
|
|
|
8501
8501
|
return !u || o$1.hidden ? null : jsxRuntime.jsx(sf, { id: `mute-${o$1.name}`, label: t, align: n, onChange: (e) => f(e.target.checked, o$1), checked: (((_n2 = (_m = c.sourceFilter) == null ? void 0 : _m.muted) == null ? void 0 : _n2.includes("*")) || ((_p2 = (_o2 = c.sourceFilter) == null ? void 0 : _o2.muted) == null ? void 0 : _p2.includes(o$1.name))) ?? false, disabled: d ?? false, ...i });
|
|
8502
8502
|
}
|
|
8503
8503
|
const dm = { Body: (n) => {
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8504
|
+
var _a2;
|
|
8505
|
+
const { General: o$1, Placement: i, Stacking: r2, Snooze: a, Subscriptions: s } = mm(), { settings: c } = _p(), l = [{ key: "general", Component: o$1 }, { key: "stacking", Component: r2 }, { key: "placement", Component: i }, ...Ud() && !!((_a2 = c.snooze) == null ? void 0 : _a2.enabled) ? [{ key: "snooze", Component: a }] : [], { key: "subscriptions", Component: s }];
|
|
8506
|
+
return jsxRuntime.jsx(Od, { element: Us, elementProps: n, children: l.map(({ key: n2, Component: o$12 }, i2) => jsxRuntime.jsxs(o.Fragment, { children: [jsxRuntime.jsx(o$12, {}), i2 < l.length - 1 && jsxRuntime.jsx(J, {})] }, n2)) });
|
|
8507
|
+
}, General: jp, AllowNotifications: zp, AllowNotificationToasts: Hp, ShowNotificationBadge: Wp, CloseNotificationOnClick: Vp, PanelAutoHide: Up, HideToastsAfter: qp, Stacking: Jp, ToastStacking: Yp, ToastStackBy: Zp, Placement: em, PlacementPanel: nm, PlacementToasts: om, Snooze: im, SnoozeDuration: rm, Subscriptions: am, SubscribeAll: sm, SubscribeApp: cm, SubscribeMuteAll: lm, SubscribeMuteApp: um }, fm = o.createContext(dm), pm = o.memo(({ children: t, components: n }) => {
|
|
8507
8508
|
const o$1 = o.useMemo(() => ({ ...dm, ...n }), [n]);
|
|
8508
8509
|
return jsxRuntime.jsx(fm.Provider, { value: o$1, children: t });
|
|
8509
8510
|
});
|
|
8510
8511
|
pm.displayName = "NotificationsSettingsPanelComponentsStoreProvider";
|
|
8511
|
-
const mm = () => o.useContext(fm), ym = ({ name: n, value: o2 }) => jsxRuntime.jsxs("div", { className: "io-profile-section-item", children: [jsxRuntime.jsx("div", { className: "io-profile-section-item-name", children: n }), jsxRuntime.jsx("div", { className: "io-profile-section-item-value", children: o2 })] }), vm = ({ className: n, items: o2, title: i }) => jsxRuntime.jsxs("div", { className: E("io-profile-section-body", n), children: [i && jsxRuntime.jsx(D, { className: "io-profile-section-title", text: i }), o2.map(({ name: t, value: n2 }) => jsxRuntime.jsx(ym, { name: t, value: n2 }, t))] }),
|
|
8512
|
+
const mm = () => o.useContext(fm), ym = ({ name: n, value: o2 }) => jsxRuntime.jsxs("div", { className: "io-profile-section-item", children: [jsxRuntime.jsx("div", { className: "io-profile-section-item-name", children: n }), jsxRuntime.jsx("div", { className: "io-profile-section-item-value", children: o2 })] }), vm = ({ className: n, items: o2, title: i }) => jsxRuntime.jsxs("div", { className: E("io-profile-section-body", n), children: [i && jsxRuntime.jsx(D, { className: "io-profile-section-title", text: i }), o2.map(({ name: t, value: n2 }) => jsxRuntime.jsx(ym, { name: t, value: n2 }, t))] }), bm = ({ className: n, items: o2, title: i }) => jsxRuntime.jsxs("section", { className: E("io-profile-section", n), children: [jsxRuntime.jsx(vm, { items: o2, title: i }), jsxRuntime.jsx(J, { className: "mt-8" })] }), wm = ({ title: t = "License", ...n }) => jsxRuntime.jsx(bm, { title: t, ...n }), km = ({ title: t = "Version", ...n }) => jsxRuntime.jsx(bm, { title: t, ...n }), xm = ({ title: t = "Plugins", ...n }) => jsxRuntime.jsx(bm, { title: t, ...n }), Cm = ({ className: n }) => {
|
|
8512
8513
|
const o2 = Or() ? "io.Connect Desktop" : "io.Connect Browser";
|
|
8513
8514
|
return jsxRuntime.jsxs("div", { className: E("io-trademark-container", n), children: [jsxRuntime.jsx("h4", { className: "io-trademark-title", children: o2 }), jsxRuntime.jsxs("p", { className: "io-trademark-text", children: [o2, "® is a registered trademark of", " ", jsxRuntime.jsx("a", { href: "https://www.interop.io", rel: "noreferrer", target: "_blank", children: "Interop Inc©" }), " ", (/* @__PURE__ */ new Date()).getFullYear(), ". All rights reserved."] })] });
|
|
8514
|
-
},
|
|
8515
|
+
}, Sm = ({ avatarInitials: n = Or() ? "CD" : "CB", className: o2, items: i, onLogout: r2, title: a }) => jsxRuntime.jsxs("section", { className: E("io-profile-section", o2), children: [jsxRuntime.jsxs("div", { className: "io-user-details-container", children: [jsxRuntime.jsx("div", { className: "io-user-avatar", children: n }), jsxRuntime.jsx(vm, { className: "mt-12", items: i, title: a })] }), r2 && jsxRuntime.jsx($, { className: "io-log-out-button", onClick: r2, variant: "primary", icon: "arrow-right-from-bracket", children: "Log out" }), jsxRuntime.jsx(J, { className: "mt-8" })] }), Nm = { LicenseSection: wm, ProductsInfoSection: km, PluginsSection: xm, Trademark: Cm, UserSection: Sm }, Em = o.createContext(Nm), Pm = o.memo(({ children: t, components: n }) => {
|
|
8515
8516
|
const o$1 = o.useMemo(() => ({ ...Nm, ...n }), [n]);
|
|
8516
8517
|
return jsxRuntime.jsx(Em.Provider, { value: o$1, children: t });
|
|
8517
8518
|
});
|
|
8518
|
-
|
|
8519
|
+
Pm.displayName = "ProfilePanelComponentsStoreProvider";
|
|
8519
8520
|
document.querySelector("#root") ?? document.body;
|
|
8520
8521
|
o.createContext({ theme: "dark" });
|
|
8521
8522
|
const Jm = "var(--io-neutrals-0)", Ym = "var(--io-neutrals-900)";
|
|
@@ -8547,7 +8548,7 @@
|
|
|
8547
8548
|
return jsxRuntime.jsx("div", { className: i, style: { color: r2, backgroundColor: n.color }, "data-testid": `channel-selector-badge-${n.color}`, ...o$1, children: jsxRuntime.jsx("span", { className: "io-channel-selector-badge-label", "data-testid": "channel-selector-label", children: n.label }) });
|
|
8548
8549
|
}
|
|
8549
8550
|
function Zm() {
|
|
8550
|
-
return jsxRuntime.jsx(
|
|
8551
|
+
return jsxRuntime.jsx(P, { variant: "check", "data-testid": "channel-selector-channel-selected" });
|
|
8551
8552
|
}
|
|
8552
8553
|
function eh({ channel: o2, handleChannelRestricted: i, lockedChannelRestriction: r2 }) {
|
|
8553
8554
|
const a = (e, t) => (n) => {
|
|
@@ -8632,15 +8633,15 @@
|
|
|
8632
8633
|
} }) })] });
|
|
8633
8634
|
}
|
|
8634
8635
|
function fh({ children: t }) {
|
|
8635
|
-
return jsxRuntime.jsx("
|
|
8636
|
+
return jsxRuntime.jsx("h1", { "data-testid": "io-dialog-heading", className: "io-dialog-template-heading", children: t });
|
|
8636
8637
|
}
|
|
8637
8638
|
function ph({ onCompletion: n, size: o2, variables: i }) {
|
|
8638
8639
|
const { actionButtons: r2, heading: a, text: s, title: c } = i;
|
|
8639
|
-
return jsxRuntime.jsx(dh, { actionButtons: r2, onCompletion: n, size: o2, title: c, children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(fh, { children: a }), jsxRuntime.jsx("p", { "data-testid": "io-dialog-text", children: s })] }) });
|
|
8640
|
+
return jsxRuntime.jsx(dh, { actionButtons: r2, onCompletion: n, size: o2, title: c, children: jsxRuntime.jsx(fe.Body.Content, { children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(fh, { children: a }), jsxRuntime.jsx("p", { "data-testid": "io-dialog-text", children: s })] }) }) });
|
|
8640
8641
|
}
|
|
8641
8642
|
function mh({ onCompletion: n, size: o$1, variables: i }) {
|
|
8642
8643
|
const { actionButtons: r2, checkbox: s, heading: c, text: u, title: d } = i, [f, p] = o.useState(s.initialValue), m = o.useCallback(() => p((e) => !e), []), h = [{ id: s.id, type: "checkbox", checked: f }];
|
|
8643
|
-
return jsxRuntime.jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: h }), size: o$1, title: d, children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(fh, { children: c }), jsxRuntime.jsx("p", { "data-testid": "io-dialog-text", children: u })] }), jsxRuntime.jsx(jd, { "data-testid": `io-dialog-checkbox-${s.id}`, checked: f, id: s.id, label: s.label, name: s.id, onChange: m })] });
|
|
8644
|
+
return jsxRuntime.jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: h }), size: o$1, title: d, children: [jsxRuntime.jsx(fe.Body.Content, { children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(fh, { children: c }), jsxRuntime.jsx("p", { "data-testid": "io-dialog-text", children: u })] }) }), jsxRuntime.jsx(jd, { "data-testid": `io-dialog-checkbox-${s.id}`, checked: f, id: s.id, label: s.label, name: s.id, onChange: m })] });
|
|
8644
8645
|
}
|
|
8645
8646
|
function hh({ onCompletion: n, size: o$1, variables: i }) {
|
|
8646
8647
|
const { actionButtons: r2, heading: a, input: s, title: c } = i, [u, f] = o.useState(s.initialValue ?? ""), p = o.useRef(null), h = (g = u, !(y = s.validation) || new RegExp(y.regexPattern).test(g) ? null : { disabledButtonIds: y.disabledButtonIds, message: y.errorMessage });
|
|
@@ -8649,13 +8650,13 @@
|
|
|
8649
8650
|
return o.useLayoutEffect(() => {
|
|
8650
8651
|
var _a2;
|
|
8651
8652
|
(_a2 = p.current) == null ? void 0 : _a2.select();
|
|
8652
|
-
}, []), jsxRuntime.jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: v }), size: o$1, title: c, validationErrors: h ? [h] : [], children: [jsxRuntime.jsx(fh, { children: a }), jsxRuntime.jsx($d, { "data-testid": `io-dialog-input-${s.id}`, ref: p, errorDataTestId: `io-dialog-input-${s.id}-error-message`, errorMessage: h == null ? void 0 : h.message, id: s.id, label: s.label, name: s.id, onChange: (e) => f(e.target.value), placeholder: s.placeholder, type: "text", value: u })] });
|
|
8653
|
+
}, []), jsxRuntime.jsxs(dh, { actionButtons: r2, onCompletion: (e) => n({ ...e, inputs: v }), size: o$1, title: c, validationErrors: h ? [h] : [], children: [jsxRuntime.jsx(fe.Body.Content, { children: jsxRuntime.jsx(fh, { children: a }) }), jsxRuntime.jsx($d, { "data-testid": `io-dialog-input-${s.id}`, ref: p, errorDataTestId: `io-dialog-input-${s.id}-error-message`, errorMessage: h == null ? void 0 : h.message, id: s.id, label: s.label, name: s.id, onChange: (e) => f(e.target.value), placeholder: s.placeholder, type: "text", value: u })] });
|
|
8653
8654
|
}
|
|
8654
8655
|
const gh = ua({ width: ga, height: ga }), yh = ca().andThen((e) => ((e2, t) => {
|
|
8655
8656
|
const n = typeof e2;
|
|
8656
8657
|
return "function" === n ? ca() : ma(`The argument provided as "${t}" must be a function, received: ${n}`);
|
|
8657
|
-
})(e, "onCompletion")), vh = ua({ autofocus: fa(sa()), id: ha, text: ha, variant: pa(la("default"), la("primary"), la("critical"), la("outline"), la("link")) }),
|
|
8658
|
-
[{ name: "noInputsConfirmationDialog", Dialog: ph, validate: kh.runWithException }, { name: "singleCheckboxDialog", Dialog: mh, validate:
|
|
8658
|
+
})(e, "onCompletion")), vh = ua({ autofocus: fa(sa()), id: ha, text: ha, variant: pa(la("default"), la("primary"), la("critical"), la("outline"), la("link")) }), bh = ua({ disabledButtonIds: da(ha), errorMessage: ha, regexPattern: ha }), wh = ua({ actionButtons: da(vh), heading: ra(), text: ra(), title: fa(ra()) }), kh = ua({ templateName: la("noInputsConfirmationDialog"), onCompletion: yh, size: fa(gh), variables: wh }), xh = ua({ actionButtons: da(vh), checkbox: ua({ id: ha, initialValue: fa(sa()), label: fa(ra()) }), heading: ra(), text: ra(), title: fa(ra()) }), Ch = ua({ templateName: la("singleCheckboxDialog"), onCompletion: yh, size: fa(gh), variables: xh }), Sh = ua({ actionButtons: da(vh), heading: ra(), input: ua({ id: ha, initialValue: fa(ra()), label: fa(ra()), placeholder: fa(ra()), validation: fa(bh) }), title: fa(ra()) }), Nh = ua({ templateName: la("singleTextInputDialog"), onCompletion: yh, size: fa(gh), variables: Sh });
|
|
8659
|
+
[{ name: "noInputsConfirmationDialog", Dialog: ph, validate: kh.runWithException }, { name: "singleCheckboxDialog", Dialog: mh, validate: Ch.runWithException }, { name: "singleTextInputDialog", Dialog: hh, validate: Nh.runWithException }];
|
|
8659
8660
|
o.createContext({ config: { message: "" }, theme: "dark", setResult: () => {
|
|
8660
8661
|
} });
|
|
8661
8662
|
const jh = { env: "", region: "", version: "", buildVersion: "", theme: "", isError: false, mailingList: "", createJiraTicket: true, sendEmail: false, attachments: [], applicationTitle: "", allowEditRecipients: true, attachmentsViewMode: "category", environmentInfo: "", selectedCategories: [], errorMessage: "", showEnvironmentInfo: false, context: {}, technicalInfo: "", sendEmailClient: "Outlook" };
|
|
@@ -8744,7 +8745,7 @@
|
|
|
8744
8745
|
return { ...o.useContext(cg), ...e };
|
|
8745
8746
|
}
|
|
8746
8747
|
lg.displayName = "ComponentsStore";
|
|
8747
|
-
var Eg,
|
|
8748
|
+
var Eg, Pg = { exports: {} }, Ig = { exports: {} }, Ag = {};
|
|
8748
8749
|
var Og, Lg, Dg, Tg, Rg, Bg, Mg, Fg, $g, _g, jg, zg, Hg, Wg, Vg = {};
|
|
8749
8750
|
/** @license React v16.13.1
|
|
8750
8751
|
* react-is.development.js
|
|
@@ -8755,12 +8756,12 @@
|
|
|
8755
8756
|
* LICENSE file in the root directory of this source tree.
|
|
8756
8757
|
*/
|
|
8757
8758
|
function Ug() {
|
|
8758
|
-
return Lg || (Lg = 1, "production" === process.env.NODE_ENV ?
|
|
8759
|
+
return Lg || (Lg = 1, "production" === process.env.NODE_ENV ? Ig.exports = function() {
|
|
8759
8760
|
if (Eg)
|
|
8760
8761
|
return Ag;
|
|
8761
8762
|
Eg = 1;
|
|
8762
8763
|
var e = "function" == typeof Symbol && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o2 = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r2 = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
8763
|
-
function
|
|
8764
|
+
function b(e2) {
|
|
8764
8765
|
if ("object" == typeof e2 && null !== e2) {
|
|
8765
8766
|
var f2 = e2.$$typeof;
|
|
8766
8767
|
switch (f2) {
|
|
@@ -8790,39 +8791,39 @@
|
|
|
8790
8791
|
}
|
|
8791
8792
|
}
|
|
8792
8793
|
}
|
|
8793
|
-
function
|
|
8794
|
-
return
|
|
8794
|
+
function w2(e2) {
|
|
8795
|
+
return b(e2) === l;
|
|
8795
8796
|
}
|
|
8796
8797
|
return Ag.AsyncMode = c, Ag.ConcurrentMode = l, Ag.ContextConsumer = s, Ag.ContextProvider = a, Ag.Element = t, Ag.ForwardRef = u, Ag.Fragment = o2, Ag.Lazy = m, Ag.Memo = p, Ag.Portal = n, Ag.Profiler = r2, Ag.StrictMode = i, Ag.Suspense = d, Ag.isAsyncMode = function(e2) {
|
|
8797
|
-
return
|
|
8798
|
-
}, Ag.isConcurrentMode =
|
|
8799
|
-
return
|
|
8798
|
+
return w2(e2) || b(e2) === c;
|
|
8799
|
+
}, Ag.isConcurrentMode = w2, Ag.isContextConsumer = function(e2) {
|
|
8800
|
+
return b(e2) === s;
|
|
8800
8801
|
}, Ag.isContextProvider = function(e2) {
|
|
8801
|
-
return
|
|
8802
|
+
return b(e2) === a;
|
|
8802
8803
|
}, Ag.isElement = function(e2) {
|
|
8803
8804
|
return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
|
|
8804
8805
|
}, Ag.isForwardRef = function(e2) {
|
|
8805
|
-
return
|
|
8806
|
+
return b(e2) === u;
|
|
8806
8807
|
}, Ag.isFragment = function(e2) {
|
|
8807
|
-
return
|
|
8808
|
+
return b(e2) === o2;
|
|
8808
8809
|
}, Ag.isLazy = function(e2) {
|
|
8809
|
-
return
|
|
8810
|
+
return b(e2) === m;
|
|
8810
8811
|
}, Ag.isMemo = function(e2) {
|
|
8811
|
-
return
|
|
8812
|
+
return b(e2) === p;
|
|
8812
8813
|
}, Ag.isPortal = function(e2) {
|
|
8813
|
-
return
|
|
8814
|
+
return b(e2) === n;
|
|
8814
8815
|
}, Ag.isProfiler = function(e2) {
|
|
8815
|
-
return
|
|
8816
|
+
return b(e2) === r2;
|
|
8816
8817
|
}, Ag.isStrictMode = function(e2) {
|
|
8817
|
-
return
|
|
8818
|
+
return b(e2) === i;
|
|
8818
8819
|
}, Ag.isSuspense = function(e2) {
|
|
8819
|
-
return
|
|
8820
|
+
return b(e2) === d;
|
|
8820
8821
|
}, Ag.isValidElementType = function(e2) {
|
|
8821
8822
|
return "string" == typeof e2 || "function" == typeof e2 || e2 === o2 || e2 === l || e2 === r2 || e2 === i || e2 === d || e2 === f || "object" == typeof e2 && null !== e2 && (e2.$$typeof === m || e2.$$typeof === p || e2.$$typeof === a || e2.$$typeof === s || e2.$$typeof === u || e2.$$typeof === g || e2.$$typeof === y || e2.$$typeof === v || e2.$$typeof === h);
|
|
8822
|
-
}, Ag.typeOf =
|
|
8823
|
-
}() :
|
|
8823
|
+
}, Ag.typeOf = b, Ag;
|
|
8824
|
+
}() : Ig.exports = (Og || (Og = 1, "production" !== process.env.NODE_ENV && function() {
|
|
8824
8825
|
var e = "function" == typeof Symbol && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o2 = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r2 = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
8825
|
-
function
|
|
8826
|
+
function b(e2) {
|
|
8826
8827
|
if ("object" == typeof e2 && null !== e2) {
|
|
8827
8828
|
var f2 = e2.$$typeof;
|
|
8828
8829
|
switch (f2) {
|
|
@@ -8854,38 +8855,38 @@
|
|
|
8854
8855
|
}
|
|
8855
8856
|
}
|
|
8856
8857
|
}
|
|
8857
|
-
var
|
|
8858
|
+
var w2 = c, k = l, x = s, C2 = a, S2 = t, N2 = u, E2 = o2, P2 = m, I2 = p, A = n, O = r2, L2 = i, D2 = d, T2 = false;
|
|
8858
8859
|
function R2(e2) {
|
|
8859
|
-
return
|
|
8860
|
+
return b(e2) === l;
|
|
8860
8861
|
}
|
|
8861
|
-
Vg.AsyncMode =
|
|
8862
|
-
return T2 || (T2 = true, 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.")), R2(e2) ||
|
|
8862
|
+
Vg.AsyncMode = w2, Vg.ConcurrentMode = k, Vg.ContextConsumer = x, Vg.ContextProvider = C2, Vg.Element = S2, Vg.ForwardRef = N2, Vg.Fragment = E2, Vg.Lazy = P2, Vg.Memo = I2, Vg.Portal = A, Vg.Profiler = O, Vg.StrictMode = L2, Vg.Suspense = D2, Vg.isAsyncMode = function(e2) {
|
|
8863
|
+
return T2 || (T2 = true, 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.")), R2(e2) || b(e2) === c;
|
|
8863
8864
|
}, Vg.isConcurrentMode = R2, Vg.isContextConsumer = function(e2) {
|
|
8864
|
-
return
|
|
8865
|
+
return b(e2) === s;
|
|
8865
8866
|
}, Vg.isContextProvider = function(e2) {
|
|
8866
|
-
return
|
|
8867
|
+
return b(e2) === a;
|
|
8867
8868
|
}, Vg.isElement = function(e2) {
|
|
8868
8869
|
return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
|
|
8869
8870
|
}, Vg.isForwardRef = function(e2) {
|
|
8870
|
-
return
|
|
8871
|
+
return b(e2) === u;
|
|
8871
8872
|
}, Vg.isFragment = function(e2) {
|
|
8872
|
-
return
|
|
8873
|
+
return b(e2) === o2;
|
|
8873
8874
|
}, Vg.isLazy = function(e2) {
|
|
8874
|
-
return
|
|
8875
|
+
return b(e2) === m;
|
|
8875
8876
|
}, Vg.isMemo = function(e2) {
|
|
8876
|
-
return
|
|
8877
|
+
return b(e2) === p;
|
|
8877
8878
|
}, Vg.isPortal = function(e2) {
|
|
8878
|
-
return
|
|
8879
|
+
return b(e2) === n;
|
|
8879
8880
|
}, Vg.isProfiler = function(e2) {
|
|
8880
|
-
return
|
|
8881
|
+
return b(e2) === r2;
|
|
8881
8882
|
}, Vg.isStrictMode = function(e2) {
|
|
8882
|
-
return
|
|
8883
|
+
return b(e2) === i;
|
|
8883
8884
|
}, Vg.isSuspense = function(e2) {
|
|
8884
|
-
return
|
|
8885
|
+
return b(e2) === d;
|
|
8885
8886
|
}, Vg.isValidElementType = function(e2) {
|
|
8886
8887
|
return "string" == typeof e2 || "function" == typeof e2 || e2 === o2 || e2 === l || e2 === r2 || e2 === i || e2 === d || e2 === f || "object" == typeof e2 && null !== e2 && (e2.$$typeof === m || e2.$$typeof === p || e2.$$typeof === a || e2.$$typeof === s || e2.$$typeof === u || e2.$$typeof === g || e2.$$typeof === y || e2.$$typeof === v || e2.$$typeof === h);
|
|
8887
|
-
}, Vg.typeOf =
|
|
8888
|
-
}()), Vg)),
|
|
8888
|
+
}, Vg.typeOf = b;
|
|
8889
|
+
}()), Vg)), Ig.exports;
|
|
8889
8890
|
}
|
|
8890
8891
|
/*
|
|
8891
8892
|
object-assign
|
|
@@ -8946,7 +8947,7 @@
|
|
|
8946
8947
|
}
|
|
8947
8948
|
if ("production" !== process.env.NODE_ENV) {
|
|
8948
8949
|
var Jg = Ug();
|
|
8949
|
-
|
|
8950
|
+
Pg.exports = function() {
|
|
8950
8951
|
if (zg)
|
|
8951
8952
|
return jg;
|
|
8952
8953
|
zg = 1;
|
|
@@ -9057,7 +9058,7 @@
|
|
|
9057
9058
|
if (f(a2, e2[s2]))
|
|
9058
9059
|
return null;
|
|
9059
9060
|
var c2 = JSON.stringify(e2, function(e3, t3) {
|
|
9060
|
-
return "symbol" ===
|
|
9061
|
+
return "symbol" === b(t3) ? String(t3) : t3;
|
|
9061
9062
|
});
|
|
9062
9063
|
return new p("Invalid " + i2 + " `" + r3 + "` of value `" + String(a2) + "` supplied to `" + o3 + "`, expected one of " + c2 + ".");
|
|
9063
9064
|
}) : ("production" !== process.env.NODE_ENV && r2(arguments.length > 1 ? "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])." : "Invalid argument supplied to oneOf, expected an array."), a);
|
|
@@ -9067,7 +9068,7 @@
|
|
|
9067
9068
|
for (var t2 = 0; t2 < e2.length; t2++) {
|
|
9068
9069
|
var i2 = e2[t2];
|
|
9069
9070
|
if ("function" != typeof i2)
|
|
9070
|
-
return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
9071
|
+
return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + w2(i2) + " at index " + t2 + "."), a;
|
|
9071
9072
|
}
|
|
9072
9073
|
return m(function(t3, i3, r3, a2, s2) {
|
|
9073
9074
|
for (var c2 = [], l2 = 0; l2 < e2.length; l2++) {
|
|
@@ -9086,7 +9087,7 @@
|
|
|
9086
9087
|
for (var l2 in e2) {
|
|
9087
9088
|
var u2 = e2[l2];
|
|
9088
9089
|
if ("function" != typeof u2)
|
|
9089
|
-
return g(i2, r3, a2, l2,
|
|
9090
|
+
return g(i2, r3, a2, l2, b(u2));
|
|
9090
9091
|
var d2 = u2(s2, l2, i2, r3, a2 + "." + l2, n);
|
|
9091
9092
|
if (d2)
|
|
9092
9093
|
return d2;
|
|
@@ -9102,7 +9103,7 @@
|
|
|
9102
9103
|
for (var f2 in d2) {
|
|
9103
9104
|
var m2 = e2[f2];
|
|
9104
9105
|
if (o2(e2, f2) && "function" != typeof m2)
|
|
9105
|
-
return g(a2, s2, c2, f2,
|
|
9106
|
+
return g(a2, s2, c2, f2, b(m2));
|
|
9106
9107
|
if (!m2)
|
|
9107
9108
|
return new p("Invalid " + s2 + " `" + c2 + "` key `" + f2 + "` supplied to `" + a2 + "`.\nBad object: " + JSON.stringify(i2[r3], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e2), null, " "));
|
|
9108
9109
|
var h2 = m2(l2, f2, a2, s2, c2 + "." + f2, n);
|
|
@@ -9140,7 +9141,7 @@
|
|
|
9140
9141
|
function h(e2) {
|
|
9141
9142
|
return m(function(t2, n2, o3, i2, r3, a2) {
|
|
9142
9143
|
var s2 = t2[n2];
|
|
9143
|
-
return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" +
|
|
9144
|
+
return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" + b(s2) + "` supplied to `" + o3 + "`, expected `" + e2 + "`.", { expectedType: e2 }) : null;
|
|
9144
9145
|
});
|
|
9145
9146
|
}
|
|
9146
9147
|
function g(e2, t2, n2, o3, i2) {
|
|
@@ -9188,7 +9189,7 @@
|
|
|
9188
9189
|
return "symbol" === e3 || !!t3 && ("Symbol" === t3["@@toStringTag"] || "function" == typeof Symbol && t3 instanceof Symbol);
|
|
9189
9190
|
}(t2, e2) ? "symbol" : t2;
|
|
9190
9191
|
}
|
|
9191
|
-
function
|
|
9192
|
+
function b(e2) {
|
|
9192
9193
|
if (null == e2)
|
|
9193
9194
|
return "" + e2;
|
|
9194
9195
|
var t2 = v(e2);
|
|
@@ -9200,8 +9201,8 @@
|
|
|
9200
9201
|
}
|
|
9201
9202
|
return t2;
|
|
9202
9203
|
}
|
|
9203
|
-
function
|
|
9204
|
-
var t2 =
|
|
9204
|
+
function w2(e2) {
|
|
9205
|
+
var t2 = b(e2);
|
|
9205
9206
|
switch (t2) {
|
|
9206
9207
|
case "array":
|
|
9207
9208
|
case "object":
|
|
@@ -9218,7 +9219,7 @@
|
|
|
9218
9219
|
}, jg;
|
|
9219
9220
|
}()(Jg.isElement, true);
|
|
9220
9221
|
} else
|
|
9221
|
-
|
|
9222
|
+
Pg.exports = function() {
|
|
9222
9223
|
if (Wg)
|
|
9223
9224
|
return Hg;
|
|
9224
9225
|
Wg = 1;
|
|
@@ -9242,7 +9243,7 @@
|
|
|
9242
9243
|
return r2.PropTypes = r2, r2;
|
|
9243
9244
|
}, Hg;
|
|
9244
9245
|
}()();
|
|
9245
|
-
var Yg =
|
|
9246
|
+
var Yg = C(Pg.exports);
|
|
9246
9247
|
function Xg(e) {
|
|
9247
9248
|
return Xg = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
|
|
9248
9249
|
return typeof e2;
|
|
@@ -9271,12 +9272,12 @@
|
|
|
9271
9272
|
}
|
|
9272
9273
|
var my = false, hy = "production" !== process.env.NODE_ENV ? Yg.oneOfType([Yg.number, Yg.shape({ enter: Yg.number, exit: Yg.number, appear: Yg.number }).isRequired]) : null;
|
|
9273
9274
|
"production" !== process.env.NODE_ENV && Yg.oneOfType([Yg.string, Yg.shape({ enter: Yg.string, exit: Yg.string, active: Yg.string }), Yg.shape({ enter: Yg.string, enterDone: Yg.string, enterActive: Yg.string, exit: Yg.string, exitDone: Yg.string, exitActive: Yg.string })]);
|
|
9274
|
-
var gy = o.createContext(null), yy = "unmounted", vy = "exited",
|
|
9275
|
+
var gy = o.createContext(null), yy = "unmounted", vy = "exited", by = "entering", wy = "entered", ky = "exiting", xy = function(e) {
|
|
9275
9276
|
function t(t2, n2) {
|
|
9276
9277
|
var o2;
|
|
9277
9278
|
o2 = e.call(this, t2, n2) || this;
|
|
9278
9279
|
var i, r2 = n2 && !n2.isMounting ? t2.enter : t2.appear;
|
|
9279
|
-
return o2.appearStatus = null, t2.in ? r2 ? (i = vy, o2.appearStatus =
|
|
9280
|
+
return o2.appearStatus = null, t2.in ? r2 ? (i = vy, o2.appearStatus = by) : i = wy : i = t2.unmountOnExit || t2.mountOnEnter ? yy : vy, o2.state = { status: i }, o2.nextCallback = null, o2;
|
|
9280
9281
|
}
|
|
9281
9282
|
!function(e2, t2) {
|
|
9282
9283
|
e2.prototype = Object.create(t2.prototype), e2.prototype.constructor = e2, py(e2, t2);
|
|
@@ -9290,7 +9291,7 @@
|
|
|
9290
9291
|
var t2 = null;
|
|
9291
9292
|
if (e2 !== this.props) {
|
|
9292
9293
|
var n2 = this.state.status;
|
|
9293
|
-
this.props.in ? n2 !==
|
|
9294
|
+
this.props.in ? n2 !== by && n2 !== wy && (t2 = by) : n2 !== by && n2 !== wy || (t2 = ky);
|
|
9294
9295
|
}
|
|
9295
9296
|
this.updateStatus(false, t2);
|
|
9296
9297
|
}, n.componentWillUnmount = function() {
|
|
@@ -9300,9 +9301,9 @@
|
|
|
9300
9301
|
return e2 = t2 = n2 = o2, null != o2 && "number" != typeof o2 && (e2 = o2.exit, t2 = o2.enter, n2 = void 0 !== o2.appear ? o2.appear : t2), { exit: e2, enter: t2, appear: n2 };
|
|
9301
9302
|
}, n.updateStatus = function(e2, t2) {
|
|
9302
9303
|
if (void 0 === e2 && (e2 = false), null !== t2)
|
|
9303
|
-
if (this.cancelNextCallback(), t2 ===
|
|
9304
|
+
if (this.cancelNextCallback(), t2 === by) {
|
|
9304
9305
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
9305
|
-
var n2 = this.props.nodeRef ? this.props.nodeRef.current :
|
|
9306
|
+
var n2 = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this);
|
|
9306
9307
|
n2 && function(e3) {
|
|
9307
9308
|
e3.scrollTop;
|
|
9308
9309
|
}(n2);
|
|
@@ -9313,18 +9314,18 @@
|
|
|
9313
9314
|
else
|
|
9314
9315
|
this.props.unmountOnExit && this.state.status === vy && this.setState({ status: yy });
|
|
9315
9316
|
}, n.performEnter = function(e2) {
|
|
9316
|
-
var t2 = this, n2 = this.props.enter, o2 = this.context ? this.context.isMounting : e2, i = this.props.nodeRef ? [o2] : [
|
|
9317
|
-
!e2 && !n2 || my ? this.safeSetState({ status:
|
|
9317
|
+
var t2 = this, n2 = this.props.enter, o2 = this.context ? this.context.isMounting : e2, i = this.props.nodeRef ? [o2] : [w.findDOMNode(this), o2], r2 = i[0], a = i[1], s = this.getTimeouts(), c = o2 ? s.appear : s.enter;
|
|
9318
|
+
!e2 && !n2 || my ? this.safeSetState({ status: wy }, function() {
|
|
9318
9319
|
t2.props.onEntered(r2);
|
|
9319
|
-
}) : (this.props.onEnter(r2, a), this.safeSetState({ status:
|
|
9320
|
+
}) : (this.props.onEnter(r2, a), this.safeSetState({ status: by }, function() {
|
|
9320
9321
|
t2.props.onEntering(r2, a), t2.onTransitionEnd(c, function() {
|
|
9321
|
-
t2.safeSetState({ status:
|
|
9322
|
+
t2.safeSetState({ status: wy }, function() {
|
|
9322
9323
|
t2.props.onEntered(r2, a);
|
|
9323
9324
|
});
|
|
9324
9325
|
});
|
|
9325
9326
|
}));
|
|
9326
9327
|
}, n.performExit = function() {
|
|
9327
|
-
var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 :
|
|
9328
|
+
var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 : w.findDOMNode(this);
|
|
9328
9329
|
t2 && !my ? (this.props.onExit(o2), this.safeSetState({ status: ky }, function() {
|
|
9329
9330
|
e2.props.onExiting(o2), e2.onTransitionEnd(n2.exit, function() {
|
|
9330
9331
|
e2.safeSetState({ status: vy }, function() {
|
|
@@ -9347,7 +9348,7 @@
|
|
|
9347
9348
|
}, this.nextCallback;
|
|
9348
9349
|
}, n.onTransitionEnd = function(e2, t2) {
|
|
9349
9350
|
this.setNextCallback(t2);
|
|
9350
|
-
var n2 = this.props.nodeRef ? this.props.nodeRef.current :
|
|
9351
|
+
var n2 = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this), o2 = null == e2 && !this.props.addEndListener;
|
|
9351
9352
|
if (n2 && !o2) {
|
|
9352
9353
|
if (this.props.addEndListener) {
|
|
9353
9354
|
var i = this.props.nodeRef ? [this.nextCallback] : [n2, this.nextCallback], r2 = i[0], a = i[1];
|
|
@@ -9377,14 +9378,14 @@
|
|
|
9377
9378
|
return o.createElement(gy.Provider, { value: null }, "function" == typeof n2 ? n2(e2, o$1) : o.cloneElement(o.Children.only(n2), o$1));
|
|
9378
9379
|
}, t;
|
|
9379
9380
|
}(o.Component);
|
|
9380
|
-
function
|
|
9381
|
+
function Cy() {
|
|
9381
9382
|
}
|
|
9382
|
-
function
|
|
9383
|
-
return
|
|
9383
|
+
function Sy(e) {
|
|
9384
|
+
return Sy = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
|
|
9384
9385
|
return typeof e2;
|
|
9385
9386
|
} : function(e2) {
|
|
9386
9387
|
return e2 && "function" == typeof Symbol && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2;
|
|
9387
|
-
},
|
|
9388
|
+
}, Sy(e);
|
|
9388
9389
|
}
|
|
9389
9390
|
xy.contextType = gy, xy.propTypes = "production" !== process.env.NODE_ENV ? { nodeRef: Yg.shape({ current: "undefined" == typeof Element ? Yg.any : function(e, t, n, o2, i, r2) {
|
|
9390
9391
|
var a = e[t];
|
|
@@ -9395,19 +9396,19 @@
|
|
|
9395
9396
|
for (var n = arguments.length, o2 = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
9396
9397
|
o2[i - 1] = arguments[i];
|
|
9397
9398
|
return t.apply(void 0, [e].concat(o2));
|
|
9398
|
-
}, addEndListener: Yg.func, onEnter: Yg.func, onEntering: Yg.func, onEntered: Yg.func, onExit: Yg.func, onExiting: Yg.func, onExited: Yg.func } : {}, xy.defaultProps = { in: false, mountOnEnter: false, unmountOnExit: false, appear: false, enter: true, exit: true, onEnter:
|
|
9399
|
+
}, addEndListener: Yg.func, onEnter: Yg.func, onEntering: Yg.func, onEntered: Yg.func, onExit: Yg.func, onExiting: Yg.func, onExited: Yg.func } : {}, xy.defaultProps = { in: false, mountOnEnter: false, unmountOnExit: false, appear: false, enter: true, exit: true, onEnter: Cy, onEntering: Cy, onEntered: Cy, onExit: Cy, onExiting: Cy, onExited: Cy }, xy.UNMOUNTED = yy, xy.EXITED = vy, xy.ENTERING = by, xy.ENTERED = wy, xy.EXITING = ky;
|
|
9399
9400
|
var Ny, Ey = ["tag", "horizontal", "isOpen", "className", "navbar", "cssModule", "children", "innerRef"];
|
|
9400
|
-
function
|
|
9401
|
-
return
|
|
9401
|
+
function Py() {
|
|
9402
|
+
return Py = Object.assign ? Object.assign.bind() : function(e) {
|
|
9402
9403
|
for (var t = 1; t < arguments.length; t++) {
|
|
9403
9404
|
var n = arguments[t];
|
|
9404
9405
|
for (var o2 in n)
|
|
9405
9406
|
Object.prototype.hasOwnProperty.call(n, o2) && (e[o2] = n[o2]);
|
|
9406
9407
|
}
|
|
9407
9408
|
return e;
|
|
9408
|
-
},
|
|
9409
|
+
}, Py.apply(this, arguments);
|
|
9409
9410
|
}
|
|
9410
|
-
function
|
|
9411
|
+
function Iy(e, t) {
|
|
9411
9412
|
if (null == e)
|
|
9412
9413
|
return {};
|
|
9413
9414
|
var n, o2, i = function(e2, t2) {
|
|
@@ -9461,7 +9462,7 @@
|
|
|
9461
9462
|
} else
|
|
9462
9463
|
n = o2.apply(this, arguments);
|
|
9463
9464
|
return function(e2, t2) {
|
|
9464
|
-
if (t2 && ("object" ===
|
|
9465
|
+
if (t2 && ("object" === Sy(t2) || "function" == typeof t2))
|
|
9465
9466
|
return t2;
|
|
9466
9467
|
if (void 0 !== t2)
|
|
9467
9468
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -9542,18 +9543,18 @@
|
|
|
9542
9543
|
} }, { key: "render", value: function() {
|
|
9543
9544
|
var e2 = this, t2 = this.props, n = t2.tag, o$1 = t2.horizontal, r2 = t2.isOpen, a = t2.className, s = t2.navbar, c = t2.cssModule, l = t2.children;
|
|
9544
9545
|
t2.innerRef;
|
|
9545
|
-
var u, d, f, p =
|
|
9546
|
+
var u, d, f, p = Iy(t2, Ey), m = this.state.dimension, h = function(e3, t3) {
|
|
9546
9547
|
for (var n2, o2 = Array.isArray(t3) ? t3 : [t3], i = o2.length, r3 = {}; i > 0; )
|
|
9547
9548
|
r3[n2 = o2[i -= 1]] = e3[n2];
|
|
9548
9549
|
return r3;
|
|
9549
9550
|
}(p, ty), g = (u = p, d = ty, f = {}, Object.keys(u).forEach(function(e3) {
|
|
9550
9551
|
-1 === d.indexOf(e3) && (f[e3] = u[e3]);
|
|
9551
9552
|
}), f);
|
|
9552
|
-
return o.createElement(xy,
|
|
9553
|
+
return o.createElement(xy, Py({}, h, { in: r2, nodeRef: this.nodeRef, onEntering: this.onEntering, onEntered: this.onEntered, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }), function(t3) {
|
|
9553
9554
|
var r3 = function(e3) {
|
|
9554
9555
|
return _y[e3] || "collapse";
|
|
9555
9556
|
}(t3), u2 = Qg(E(a, o$1 && "collapse-horizontal", r3, s && "navbar-collapse"), c), d2 = null === m ? null : My({}, o$1 ? "width" : "height", m);
|
|
9556
|
-
return o.createElement(n,
|
|
9557
|
+
return o.createElement(n, Py({}, g, { style: By(By({}, g.style), d2), className: u2, ref: e2.nodeRef }), l);
|
|
9557
9558
|
});
|
|
9558
9559
|
} }]), t;
|
|
9559
9560
|
}();
|
|
@@ -9567,18 +9568,18 @@
|
|
|
9567
9568
|
}(e) && !function(e2) {
|
|
9568
9569
|
var t = Object.prototype.toString.call(e2);
|
|
9569
9570
|
return "[object RegExp]" === t || "[object Date]" === t || function(e3) {
|
|
9570
|
-
return e3.$$typeof ===
|
|
9571
|
+
return e3.$$typeof === Pv;
|
|
9571
9572
|
}(e2);
|
|
9572
9573
|
}(e);
|
|
9573
9574
|
};
|
|
9574
|
-
var
|
|
9575
|
-
function
|
|
9575
|
+
var Pv = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
9576
|
+
function Iv(e, t) {
|
|
9576
9577
|
return false !== t.clone && t.isMergeableObject(e) ? Tv((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
9577
9578
|
var n;
|
|
9578
9579
|
}
|
|
9579
9580
|
function Av(e, t, n) {
|
|
9580
9581
|
return e.concat(t).map(function(e2) {
|
|
9581
|
-
return
|
|
9582
|
+
return Iv(e2, n);
|
|
9582
9583
|
});
|
|
9583
9584
|
}
|
|
9584
9585
|
function Ov(e) {
|
|
@@ -9598,7 +9599,7 @@
|
|
|
9598
9599
|
function Dv(e, t, n) {
|
|
9599
9600
|
var o2 = {};
|
|
9600
9601
|
return n.isMergeableObject(e) && Ov(e).forEach(function(t2) {
|
|
9601
|
-
o2[t2] =
|
|
9602
|
+
o2[t2] = Iv(e[t2], n);
|
|
9602
9603
|
}), Ov(t).forEach(function(i) {
|
|
9603
9604
|
(function(e2, t2) {
|
|
9604
9605
|
return Lv(e2, t2) && !(Object.hasOwnProperty.call(e2, t2) && Object.propertyIsEnumerable.call(e2, t2));
|
|
@@ -9607,13 +9608,13 @@
|
|
|
9607
9608
|
return Tv;
|
|
9608
9609
|
var n2 = t2.customMerge(e2);
|
|
9609
9610
|
return "function" == typeof n2 ? n2 : Tv;
|
|
9610
|
-
}(i, n)(e[i], t[i], n) : o2[i] =
|
|
9611
|
+
}(i, n)(e[i], t[i], n) : o2[i] = Iv(t[i], n));
|
|
9611
9612
|
}), o2;
|
|
9612
9613
|
}
|
|
9613
9614
|
function Tv(e, t, n) {
|
|
9614
|
-
(n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified =
|
|
9615
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified = Iv;
|
|
9615
9616
|
var o2 = Array.isArray(t);
|
|
9616
|
-
return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) :
|
|
9617
|
+
return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) : Iv(t, n);
|
|
9617
9618
|
}
|
|
9618
9619
|
Tv.all = function(e, t) {
|
|
9619
9620
|
if (!Array.isArray(e))
|
|
@@ -9622,7 +9623,7 @@
|
|
|
9622
9623
|
return Tv(e2, n, t);
|
|
9623
9624
|
}, {});
|
|
9624
9625
|
};
|
|
9625
|
-
|
|
9626
|
+
C(Tv);
|
|
9626
9627
|
const Mv = o.forwardRef((t, n) => {
|
|
9627
9628
|
const { onSearch: o$1, searchTerm: i, onClear: r2, className: a } = t, s = o.useContext(reactHooks.IOConnectContext);
|
|
9628
9629
|
return o.useEffect(() => {
|
|
@@ -9638,11 +9639,11 @@
|
|
|
9638
9639
|
}, hideBulkActions: () => {
|
|
9639
9640
|
} }), Hv = () => o.useContext(zv);
|
|
9640
9641
|
function Wv({ title: n, onOpenSettings: o2, onClose: i, ...r2 }) {
|
|
9641
|
-
const { HeaderCaptionTitle: a, HeaderCaptionCount: s, HeaderCaptionButtonSettings: c, HeaderCaptionButtonClose: l, HeaderActions: u, HeaderBulkActions: d, HeaderSearch: f } =
|
|
9642
|
+
const { HeaderCaptionTitle: a, HeaderCaptionCount: s, HeaderCaptionButtonSettings: c, HeaderCaptionButtonClose: l, HeaderActions: u, HeaderBulkActions: d, HeaderSearch: f } = Rb(), { isBulkActionsSupported: p, notificationsCount: m } = _p(), { isBulkActionsVisible: h } = Hv(), g = Ud();
|
|
9642
9643
|
return jsxRuntime.jsxs(Vs, { ...r2, children: [jsxRuntime.jsxs("div", { className: "io-panel-header-caption", children: [jsxRuntime.jsx(a, { title: n }), jsxRuntime.jsx(s, {}), jsxRuntime.jsxs(Vs.ButtonGroup, { children: [g && jsxRuntime.jsx(c, { onClick: o2 }), jsxRuntime.jsx(l, { onClick: i })] })] }), jsxRuntime.jsx(f, {}), p ? jsxRuntime.jsxs("div", { className: `io-panel-header-actions-wrapper ${h && m > 0 ? "io-panel-header-bulk-actions-opened" : ""} `, children: [jsxRuntime.jsx(u, {}), jsxRuntime.jsx(d, {})] }) : jsxRuntime.jsx(u, {})] });
|
|
9643
9644
|
}
|
|
9644
9645
|
function Vv({ text: n = "Notifications", counter: o2, ...i }) {
|
|
9645
|
-
const { notificationsCount: r2 } =
|
|
9646
|
+
const { notificationsCount: r2 } = _p();
|
|
9646
9647
|
return jsxRuntime.jsx(D, { text: n, size: "large", ...i, children: (o2 ?? true) && jsxRuntime.jsxs("span", { children: ["(", r2, ")"] }) });
|
|
9647
9648
|
}
|
|
9648
9649
|
const Uv = "newest", Kv = "oldest", Gv = "severity", qv = ["None", "Low", "Medium", "High", "Critical"], Jv = { key: Uv, descending: true }, Yv = (e) => [...e].sort((e2, t) => (t.timestamp || 0) - (e2.timestamp || 0)), Xv = (e) => [...e].sort((e2, t) => (e2.timestamp || 0) - (t.timestamp || 0)), Qv = (e, t) => {
|
|
@@ -9651,9 +9652,9 @@
|
|
|
9651
9652
|
const i = qv.indexOf(e2.severity || n), r2 = qv.indexOf(o2.severity || n);
|
|
9652
9653
|
return (t ? -1 : 1) * (i - r2);
|
|
9653
9654
|
});
|
|
9654
|
-
}, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv },
|
|
9655
|
-
function
|
|
9656
|
-
const [n, o$1] = o.useState([]), { NotificationsList: i, Notification: r2 } =
|
|
9655
|
+
}, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv }, eb = { severity: "Priority", newest: "Newest", oldest: "Oldest" };
|
|
9656
|
+
function tb({ ...t }) {
|
|
9657
|
+
const [n, o$1] = o.useState([]), { NotificationsList: i, Notification: r2 } = Rb(), { notifications: a, setCount: s, notificationsCount: c } = _p(), { sortNotificationsBy: p, viewNotificationsBy: m, searchQuery: h } = Hv(), g = o.useRef(null), y = Wd(h), v = o.useMemo(() => {
|
|
9657
9658
|
const e = ((e2, t2) => {
|
|
9658
9659
|
if (!e2)
|
|
9659
9660
|
return [];
|
|
@@ -9670,8 +9671,8 @@
|
|
|
9670
9671
|
}
|
|
9671
9672
|
})(a, m);
|
|
9672
9673
|
return e.filter((e2) => {
|
|
9673
|
-
var _a2,
|
|
9674
|
-
return e2.title.toLowerCase().includes(y.toLowerCase()) || ((_a2 = e2.source) == null ? void 0 : _a2.toLowerCase().includes(y.toLowerCase())) || ((
|
|
9674
|
+
var _a2, _b2;
|
|
9675
|
+
return e2.title.toLowerCase().includes(y.toLowerCase()) || ((_a2 = e2.source) == null ? void 0 : _a2.toLowerCase().includes(y.toLowerCase())) || ((_b2 = e2.body) == null ? void 0 : _b2.toLowerCase().includes(y.toLowerCase()));
|
|
9675
9676
|
});
|
|
9676
9677
|
}, [y, a, m]);
|
|
9677
9678
|
return o.useEffect(() => {
|
|
@@ -9694,30 +9695,30 @@
|
|
|
9694
9695
|
g.current && ((_a2 = g.current) == null ? void 0 : _a2.scrollTo({ top: 0, behavior: "smooth" }));
|
|
9695
9696
|
}, [y, c, p, m]), jsxRuntime.jsx(Od, { ref: g, element: Us, elementProps: t, children: jsxRuntime.jsx(i, { notifications: n, Notification: r2 }) });
|
|
9696
9697
|
}
|
|
9697
|
-
function
|
|
9698
|
-
const { FooterButtons: n } =
|
|
9698
|
+
function nb({ ...t }) {
|
|
9699
|
+
const { FooterButtons: n } = Rb();
|
|
9699
9700
|
return jsxRuntime.jsx(Ks, { ...t, children: jsxRuntime.jsx(n, {}) });
|
|
9700
9701
|
}
|
|
9701
|
-
function
|
|
9702
|
-
const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } =
|
|
9702
|
+
function ob({ className: n, ...o$1 }) {
|
|
9703
|
+
const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } = Rb(), { notifications: a } = _p(), [s, c] = o.useState(false);
|
|
9703
9704
|
return o.useEffect(() => {
|
|
9704
9705
|
a.filter((e) => "Stale" === e.state || "Acknowledged" === e.state).length > 0 ? c(true) : c(false);
|
|
9705
9706
|
}, [a]), jsxRuntime.jsxs(ae, { className: n, align: "right", ...o$1, children: [jsxRuntime.jsx(r2, { disabled: !s }), jsxRuntime.jsx(i, { disabled: a.length <= 0 })] });
|
|
9706
9707
|
}
|
|
9707
|
-
function
|
|
9708
|
-
const { clearAll: o2 } =
|
|
9708
|
+
function ib({ text: t = "Clear All", ...n }) {
|
|
9709
|
+
const { clearAll: o2 } = _p();
|
|
9709
9710
|
return jsxRuntime.jsx($, { text: t, onClick: () => {
|
|
9710
9711
|
o2();
|
|
9711
9712
|
}, ...n });
|
|
9712
9713
|
}
|
|
9713
|
-
function
|
|
9714
|
-
const { clearAllOld: o2 } =
|
|
9714
|
+
function rb({ text: t = "Clear Old", ...n }) {
|
|
9715
|
+
const { clearAllOld: o2 } = _p();
|
|
9715
9716
|
return jsxRuntime.jsx($, { text: t, onClick: () => {
|
|
9716
9717
|
o2();
|
|
9717
9718
|
}, ...n });
|
|
9718
9719
|
}
|
|
9719
|
-
function
|
|
9720
|
-
const t = Ud(), { onClose: n, settings: o$1 } =
|
|
9720
|
+
function ab(e) {
|
|
9721
|
+
const t = Ud(), { onClose: n, settings: o$1 } = _p(), { isPanelVisible: i } = Hv(), { id: r2, onClick: s, updateState: c } = e, l = o.useCallback(async () => {
|
|
9721
9722
|
if (!s)
|
|
9722
9723
|
return;
|
|
9723
9724
|
if (!t) {
|
|
@@ -9742,14 +9743,14 @@
|
|
|
9742
9743
|
}, [l]);
|
|
9743
9744
|
return { handleClick: l, handleWrapperClick: u };
|
|
9744
9745
|
}
|
|
9745
|
-
function
|
|
9746
|
-
const a = E("io-notification-header", n), { HeaderCount: s, HeaderBadge: c, HeaderTitle: l, HeaderTimestamp: u, HeaderButtonSnooze: d, HeaderButtonClose: f } =
|
|
9746
|
+
function sb({ className: n, notification: o2, onClick: i, ...r2 }) {
|
|
9747
|
+
const a = E("io-notification-header", n), { HeaderCount: s, HeaderBadge: c, HeaderTitle: l, HeaderTimestamp: u, HeaderButtonSnooze: d, HeaderButtonClose: f } = Sb(), { handleWrapperClick: p } = ab(o2);
|
|
9747
9748
|
return jsxRuntime.jsxs("div", { className: a, onClick: async (e) => {
|
|
9748
9749
|
await p(e), i == null ? void 0 : i(e);
|
|
9749
9750
|
}, ...r2, children: [jsxRuntime.jsx(c, { notification: o2 }), jsxRuntime.jsx(s, { notification: o2 }), jsxRuntime.jsx(l, { notification: o2 }), jsxRuntime.jsx(u, { notification: o2 }), jsxRuntime.jsxs(ae, { children: [jsxRuntime.jsx(d, { notification: o2 }), jsxRuntime.jsx(f, { notification: o2 })] })] });
|
|
9750
9751
|
}
|
|
9751
|
-
function
|
|
9752
|
-
const { settings: o2, notificationStacks: i } =
|
|
9752
|
+
function cb({ notification: t, ...n }) {
|
|
9753
|
+
const { settings: o2, notificationStacks: i } = _p(), { isPanelVisible: r2 } = Hv(), { toastStacking: a, stackBy: s } = o2, c = "application" === s ? "source" : s ?? "source";
|
|
9753
9754
|
let l = 0;
|
|
9754
9755
|
if (a) {
|
|
9755
9756
|
const e = i.find((e2) => e2.key === t[c]);
|
|
@@ -9757,59 +9758,59 @@
|
|
|
9757
9758
|
}
|
|
9758
9759
|
return r2 || !a || l <= 1 ? null : jsxRuntime.jsx(qs, { ...n, children: l > 9 ? "9+" : l });
|
|
9759
9760
|
}
|
|
9760
|
-
function
|
|
9761
|
+
function lb({ className: t, notification: n, ...o2 }) {
|
|
9761
9762
|
if (!(n == null ? void 0 : n.severity) || "None" === n.severity)
|
|
9762
9763
|
return null;
|
|
9763
9764
|
const i = E("io-notification-header-badge", t);
|
|
9764
9765
|
return jsxRuntime.jsx(qs, { className: i, ...o2, children: n.severity });
|
|
9765
9766
|
}
|
|
9766
|
-
function
|
|
9767
|
+
function ub({ className: n, state: o2, severity: i = "None", icon: r2, ...a }) {
|
|
9767
9768
|
const s = E("io-notification-header-icon", n), { isPanelVisible: c } = Hv();
|
|
9768
9769
|
return jsxRuntime.jsxs("div", { className: s, ...a, children: [r2 && jsxRuntime.jsx("span", { className: "io-notification-header-icon-image", children: jsxRuntime.jsx("img", { src: r2, alt: `io-notification-header-icon-${r2}` }) }), jsxRuntime.jsx("span", { className: `io-notification-header-icon-badge color-${i.toLowerCase()}`, children: c && "Acknowledged" !== o2 && "New" })] });
|
|
9769
9770
|
}
|
|
9770
|
-
function
|
|
9771
|
+
function db({ className: t, notification: { appTitle: n }, ...o2 }) {
|
|
9771
9772
|
const i = E("io-notification-header-title", t);
|
|
9772
9773
|
return jsxRuntime.jsx("div", { className: i, ...o2, children: n });
|
|
9773
9774
|
}
|
|
9774
|
-
function
|
|
9775
|
+
function fb({ className: t, notification: { timestamp: n, state: o2, snooze: i }, ...r2 }) {
|
|
9775
9776
|
const a = E("io-notification-timestamp", t);
|
|
9776
9777
|
return jsxRuntime.jsx("small", i && "Snoozed" === o2 ? { className: a, ...r2, children: "Snoozed" } : { className: a, ...r2, children: Kf(n ?? 0) ?? "Just Now" });
|
|
9777
9778
|
}
|
|
9778
|
-
function
|
|
9779
|
-
var _a2,
|
|
9780
|
-
const { settings: i, snooze: r2 } =
|
|
9779
|
+
function pb({ notification: { id: t, state: n }, ...o$1 }) {
|
|
9780
|
+
var _a2, _b2;
|
|
9781
|
+
const { settings: i, snooze: r2 } = _p(), s = o.useCallback((e) => {
|
|
9781
9782
|
var _a3;
|
|
9782
9783
|
e.stopPropagation(), r2 && r2(t, ((_a3 = i.snooze) == null ? void 0 : _a3.duration) ?? 0);
|
|
9783
9784
|
}, [t, r2, (_a2 = i.snooze) == null ? void 0 : _a2.duration]);
|
|
9784
|
-
return r2 && "Snoozed" !== n && ((
|
|
9785
|
+
return r2 && "Snoozed" !== n && ((_b2 = i.snooze) == null ? void 0 : _b2.enabled) ? jsxRuntime.jsx($, { icon: "snooze", variant: "link", text: "Snooze", tabIndex: -1, onClick: s, ...o$1 }) : null;
|
|
9785
9786
|
}
|
|
9786
|
-
function
|
|
9787
|
-
const i = Ud(), { onClose: r2 } =
|
|
9787
|
+
function mb({ notification: { id: t, updateState: n }, ...o$1 }) {
|
|
9788
|
+
const i = Ud(), { onClose: r2 } = _p(), { isPanelVisible: s } = Hv(), c = o.useCallback((e) => {
|
|
9788
9789
|
e.stopPropagation(), !i || s ? r2(t) : n("Acknowledged").catch(console.error);
|
|
9789
9790
|
}, [i, t, r2, s, n]);
|
|
9790
|
-
return jsxRuntime.jsx(
|
|
9791
|
+
return jsxRuntime.jsx(I, { icon: "close", iconSize: "10", tabIndex: -1, onClick: c, ...o$1 });
|
|
9791
9792
|
}
|
|
9792
|
-
function
|
|
9793
|
-
const r2 = E("io-notification-body", n), { BodyIcon: a, BodyTitle: s, BodyDescription: c } =
|
|
9793
|
+
function hb({ className: n, notification: o2, ...i }) {
|
|
9794
|
+
const r2 = E("io-notification-body", n), { BodyIcon: a, BodyTitle: s, BodyDescription: c } = Sb(), { icon: l, title: u, body: d } = o2, { handleClick: f } = ab(o2);
|
|
9794
9795
|
return jsxRuntime.jsxs("div", { className: r2, role: "button", tabIndex: 0, onKeyDown: async (e) => {
|
|
9795
9796
|
R(e) && await f();
|
|
9796
9797
|
}, onClick: f, ...i, children: [jsxRuntime.jsx(a, { icon: l }), jsxRuntime.jsxs("div", { className: "io-notification-body-content", children: [jsxRuntime.jsx(s, { text: u }), jsxRuntime.jsx(c, { text: d })] })] });
|
|
9797
9798
|
}
|
|
9798
|
-
function
|
|
9799
|
+
function gb({ className: t, icon: n, altText: o2 = "notification icon", ...i }) {
|
|
9799
9800
|
if (!n)
|
|
9800
9801
|
return null;
|
|
9801
9802
|
const r2 = E("io-notification-body-icon", t);
|
|
9802
9803
|
return jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsx("img", { src: n, alt: o2 }) });
|
|
9803
9804
|
}
|
|
9804
|
-
function
|
|
9805
|
+
function yb({ text: t, ...n }) {
|
|
9805
9806
|
return jsxRuntime.jsx(D, { text: t, ...n });
|
|
9806
9807
|
}
|
|
9807
|
-
function
|
|
9808
|
+
function vb({ className: t, text: n, ...o2 }) {
|
|
9808
9809
|
const i = E("io-notification-body-description", t);
|
|
9809
9810
|
return jsxRuntime.jsx("p", { className: i, ...o2, children: n });
|
|
9810
9811
|
}
|
|
9811
|
-
function
|
|
9812
|
-
const i = E("io-notification-footer", n), { FooterButton: r2 } =
|
|
9812
|
+
function bb({ className: n, notification: o$1 }) {
|
|
9813
|
+
const i = E("io-notification-footer", n), { FooterButton: r2 } = Sb(), { handleWrapperClick: a } = ab(o$1), s = o.useMemo(() => function(e) {
|
|
9813
9814
|
const t = [], n2 = {};
|
|
9814
9815
|
if (!e)
|
|
9815
9816
|
return;
|
|
@@ -9836,27 +9837,27 @@
|
|
|
9836
9837
|
}(o$1.actions), [o$1.actions]), c = (t, n2) => t.children ? jsxRuntime.jsx(ei, { text: t.title, children: t.children.map(c) }, `${t.title}-${n2}`) : ((t2, n3) => jsxRuntime.jsx(ei.Item, { children: jsxRuntime.jsx(r2, { variant: "link", className: "io-dropdown-menu-item io-dropdown-menu-button", notificationAction: t2 }) }, `${t2.title}-${n3}`))(t, n2);
|
|
9837
9838
|
return jsxRuntime.jsx("div", { className: i, onClick: a, children: jsxRuntime.jsx(ae, { align: "right", children: s == null ? void 0 : s.map((n2, o2) => n2.children ? jsxRuntime.jsxs(ae, { variant: "append", children: [jsxRuntime.jsx(r2, { notificationAction: n2, variant: 0 === o2 ? "primary" : "default" }), jsxRuntime.jsx(ei, { variant: 0 === o2 ? "primary" : "default", icon: "ellipsis", children: n2.children.map(c) })] }, `${n2.title}-${o2}`) : jsxRuntime.jsx(r2, { notificationAction: n2, variant: 0 === o2 ? "primary" : "link" }, `${n2.title}-${o2}`)) }) });
|
|
9838
9839
|
}
|
|
9839
|
-
function
|
|
9840
|
+
function wb({ notificationAction: t, ...n }) {
|
|
9840
9841
|
const o$1 = o.useCallback((e) => {
|
|
9841
9842
|
e.stopPropagation(), t.onClick({ close: true });
|
|
9842
9843
|
}, [t]);
|
|
9843
9844
|
return jsxRuntime.jsx($, { text: t.title, onClick: o$1, ...n });
|
|
9844
9845
|
}
|
|
9845
|
-
const
|
|
9846
|
-
const o$1 = o.useMemo(() => ({ ...
|
|
9847
|
-
return jsxRuntime.jsx(
|
|
9846
|
+
const kb = { Header: sb, HeaderCount: cb, HeaderBadge: lb, HeaderIcon: ub, HeaderTitle: db, HeaderTimestamp: fb, HeaderButtonSnooze: pb, HeaderButtonClose: mb, Body: hb, BodyIcon: gb, BodyTitle: yb, BodyDescription: vb, Footer: bb, FooterButton: wb }, xb = o.createContext(kb), Cb = o.memo(({ children: t, components: n }) => {
|
|
9847
|
+
const o$1 = o.useMemo(() => ({ ...kb, ...n }), [n]);
|
|
9848
|
+
return jsxRuntime.jsx(xb.Provider, { value: o$1, children: t });
|
|
9848
9849
|
});
|
|
9849
|
-
function
|
|
9850
|
-
return { ...o.useContext(
|
|
9850
|
+
function Sb(e) {
|
|
9851
|
+
return { ...o.useContext(xb), ...e };
|
|
9851
9852
|
}
|
|
9852
|
-
function
|
|
9853
|
-
const { Header: r2, Body: a, Footer: s } =
|
|
9853
|
+
function Nb({ className: n, notification: o2, ...i }) {
|
|
9854
|
+
const { Header: r2, Body: a, Footer: s } = Sb(), { severity: c } = o2, l = E("io-notification", `severity-${(c == null ? void 0 : c.toLowerCase()) ?? "none"}`, "Acknowledged" !== o2.state && "state-new", n);
|
|
9854
9855
|
return jsxRuntime.jsxs("div", { className: l, ...i, children: [jsxRuntime.jsx(r2, { notification: o2 }), jsxRuntime.jsx(a, { notification: o2 }), jsxRuntime.jsx(s, { notification: o2 })] });
|
|
9855
9856
|
}
|
|
9856
|
-
function
|
|
9857
|
-
return jsxRuntime.jsx(
|
|
9857
|
+
function Eb({ components: t, notification: n, ...o2 }) {
|
|
9858
|
+
return jsxRuntime.jsx(Cb, { components: t, children: jsxRuntime.jsx(Nb, { notification: n, ...o2 }) });
|
|
9858
9859
|
}
|
|
9859
|
-
function
|
|
9860
|
+
function Pb({ className: n, notifications: o$1, ...i }) {
|
|
9860
9861
|
const [r2, s] = o.useState(false), c = o$1.length >= 3 ? "large" : "normal", u = 2 === o$1.length ? "small" : c, d = o$1[0].severity, f = E("io-notification-stack", r2 && "io-notification-stack-open", "normal" !== u && [`io-notification-stack-${u}`], d && "None" !== d && [`io-notification-stack-${d.toLowerCase()}`], n), p = o.useCallback(() => {
|
|
9861
9862
|
s(true);
|
|
9862
9863
|
}, []), m = o.useCallback((e) => {
|
|
@@ -9864,46 +9865,46 @@
|
|
|
9864
9865
|
e2.close();
|
|
9865
9866
|
});
|
|
9866
9867
|
}, [o$1]);
|
|
9867
|
-
return jsxRuntime.jsxs("div", { className: f, onClick: p, ...i, children: [r2 && "normal" !== u && jsxRuntime.jsx("div", { className: "io-notification-stack-btn", children: jsxRuntime.jsx($, { icon: "close", onClick: (e) => m(e), children: jsxRuntime.jsx("span", { className: "io-btn-text", children: "Clear Stack" }) }) }), o$1.map((t) => jsxRuntime.jsx(
|
|
9868
|
+
return jsxRuntime.jsxs("div", { className: f, onClick: p, ...i, children: [r2 && "normal" !== u && jsxRuntime.jsx("div", { className: "io-notification-stack-btn", children: jsxRuntime.jsx($, { icon: "close", onClick: (e) => m(e), children: jsxRuntime.jsx("span", { className: "io-btn-text", children: "Clear Stack" }) }) }), o$1.map((t) => jsxRuntime.jsx(Eb, { notification: t }, t.id))] });
|
|
9868
9869
|
}
|
|
9869
|
-
function
|
|
9870
|
-
const { notificationStacks: o2 } =
|
|
9871
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: o2.map((n) => jsxRuntime.jsx(
|
|
9870
|
+
function Ib({ ...t }) {
|
|
9871
|
+
const { notificationStacks: o2 } = _p();
|
|
9872
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: o2.map((n) => jsxRuntime.jsx(Pb, { notifications: n.items, ...t }, n.key)) });
|
|
9872
9873
|
}
|
|
9873
|
-
|
|
9874
|
-
const
|
|
9874
|
+
Cb.displayName = "ComponentsStoreProvider";
|
|
9875
|
+
const Ab = ({ notification: n, Notification: o2, ...i }) => {
|
|
9875
9876
|
var _a2;
|
|
9876
|
-
const { configuration: r2, isBulkActionsSupported: a, selectedNotifications: s, selectNotification: c } =
|
|
9877
|
+
const { configuration: r2, isBulkActionsSupported: a, selectedNotifications: s, selectNotification: c } = _p(), { isPanelVisible: l, isBulkActionsVisible: u } = Hv(), d = ((_a2 = r2.sourceFilter) == null ? void 0 : _a2.muted) ?? [], f = n.source && d.includes(n.source) || d.includes("*");
|
|
9877
9878
|
if (!l && f)
|
|
9878
9879
|
return null;
|
|
9879
9880
|
const p = l && a && u, m = s.includes(n.id);
|
|
9880
9881
|
return p ? jsxRuntime.jsxs("div", { className: E("io-notification-list-bulk-action-item", { selected: m }), children: [jsxRuntime.jsx(jd, { checked: m, onChange: (e) => c(n.id, e.target.checked) }), jsxRuntime.jsx(o2, { notification: n, ...i })] }) : jsxRuntime.jsx(o2, { notification: n, ...i });
|
|
9881
9882
|
};
|
|
9882
|
-
function
|
|
9883
|
-
const s = E("io-notification-list", n), { settings: c } =
|
|
9884
|
-
return jsxRuntime.jsxs("div", { className: s, ...a, children: [d && jsxRuntime.jsx(
|
|
9883
|
+
function Ob({ className: n, Notification: o2, notifications: i = [], noNotificationText: r2 = "No notifications to display", ...a }) {
|
|
9884
|
+
const s = E("io-notification-list", n), { settings: c } = _p(), { isPanelVisible: l } = Hv(), { toastStacking: u } = c, d = u && !l, f = i.length > 0;
|
|
9885
|
+
return jsxRuntime.jsxs("div", { className: s, ...a, children: [d && jsxRuntime.jsx(Ib, {}), !d && (f ? i.map((t) => jsxRuntime.jsx(Ab, { notification: t, Notification: o2, ...a }, t.id)) : jsxRuntime.jsx("div", { className: "io-notification-list-no-notifications", children: r2 }))] });
|
|
9885
9886
|
}
|
|
9886
|
-
const
|
|
9887
|
-
const { notificationsCount: o2 = 0 } =
|
|
9887
|
+
const Lb = { Header: Wv, HeaderCaptionTitle: Vv, HeaderCaptionCount: function({ variant: t = "primary", ...n }) {
|
|
9888
|
+
const { notificationsCount: o2 = 0 } = _p();
|
|
9888
9889
|
return 0 === o2 ? null : jsxRuntime.jsx(L, { variant: t, ...n, children: o2 > 99 ? "99+" : o2 });
|
|
9889
9890
|
}, HeaderCaptionButtonSettings: function({ icon: t = "cog", size: n = "32", variant: o2 = "circle", ...i }) {
|
|
9890
|
-
return Ud() ? jsxRuntime.jsx(
|
|
9891
|
+
return Ud() ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o2, ...i }) : null;
|
|
9891
9892
|
}, HeaderCaptionButtonClose: function({ icon: t = "close", size: n = "32", variant: o2 = "circle", onClick: i, ...r2 }) {
|
|
9892
|
-
const { hidePanel: a } =
|
|
9893
|
-
return jsxRuntime.jsx(
|
|
9893
|
+
const { hidePanel: a } = _p(), s = Ud();
|
|
9894
|
+
return jsxRuntime.jsx(I, { icon: t, size: n, variant: o2, onClick: (e) => {
|
|
9894
9895
|
i ? i(e) : s && a();
|
|
9895
9896
|
}, ...r2 });
|
|
9896
9897
|
}, HeaderActions: function({ className: n, ...o2 }) {
|
|
9897
|
-
const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } =
|
|
9898
|
+
const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } = Rb();
|
|
9898
9899
|
return jsxRuntime.jsxs("div", { className: i, ...o2, children: [jsxRuntime.jsxs(ae, { children: [jsxRuntime.jsx(r2, {}), jsxRuntime.jsx(a, {})] }), jsxRuntime.jsxs(ae, { children: [jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {})] })] });
|
|
9899
9900
|
}, HeaderActionSort: function({ text: n = "Sort by", ...o$1 }) {
|
|
9900
9901
|
const { sortNotificationsBy: i, setSortBy: r2 } = Hv(), { onNotificationsSort: s } = (() => {
|
|
9901
|
-
const { notifications: e } =
|
|
9902
|
+
const { notifications: e } = _p(), [t, n2] = o.useState(Jv), { key: o$12, descending: i2 } = t, r3 = o.useMemo(() => Zv[o$12](e, i2), [e, o$12, i2]), s2 = o.useCallback((e2) => {
|
|
9902
9903
|
n2((t2) => ({ key: e2, descending: t2.key !== e2 ? Jv.descending : !t2.descending }));
|
|
9903
9904
|
}, []);
|
|
9904
9905
|
return { onNotificationsSort: s2, sortedNotifications: r3 };
|
|
9905
9906
|
})();
|
|
9906
|
-
return jsxRuntime.jsxs(re, { variant: "light", ...o$1, children: [jsxRuntime.jsxs(re.Button, { variant: "link", children: [n, " ", jsxRuntime.jsx("strong", { children:
|
|
9907
|
+
return jsxRuntime.jsxs(re, { variant: "light", ...o$1, children: [jsxRuntime.jsxs(re.Button, { variant: "link", children: [n, " ", jsxRuntime.jsx("strong", { children: eb[i].toLowerCase() })] }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", checkIcon: "check", children: ["Newest", "Oldest", "Priority"].map((t) => {
|
|
9907
9908
|
const n2 = "Priority" === t ? "severity" : t.toLowerCase();
|
|
9908
9909
|
return jsxRuntime.jsx(re.Item, { isSelected: i === n2, onClick: () => {
|
|
9909
9910
|
r2(n2), s(n2);
|
|
@@ -9911,63 +9912,63 @@
|
|
|
9911
9912
|
}) }) })] });
|
|
9912
9913
|
}, HeaderActionView: function({ text: n = "View", ...o2 }) {
|
|
9913
9914
|
var _a2;
|
|
9914
|
-
const { settings: i } =
|
|
9915
|
+
const { settings: i } = _p(), { viewNotificationsBy: r2, setViewBy: a } = Hv(), s = ((_a2 = i.snooze) == null ? void 0 : _a2.enabled) ? ["All", "Read", "Unread", "Snoozed"] : ["All", "Read", "Unread"];
|
|
9915
9916
|
return jsxRuntime.jsxs(re, { variant: "light", ...o2, children: [jsxRuntime.jsxs(re.Button, { variant: "link", children: [n, " ", jsxRuntime.jsx("strong", { children: r2 })] }), jsxRuntime.jsx(re.Content, { children: jsxRuntime.jsx(re.List, { variant: "single", checkIcon: "check", children: s.map((t) => jsxRuntime.jsx(re.Item, { isSelected: r2 === t.toLowerCase(), onClick: () => a(t.toLowerCase()), children: t }, t)) }) })] });
|
|
9916
9917
|
}, HeaderActionClear: function({ text: t = "Clear All", ...n }) {
|
|
9917
|
-
const { clearAll: o2, notificationsCount: i } =
|
|
9918
|
+
const { clearAll: o2, notificationsCount: i } = _p();
|
|
9918
9919
|
return jsxRuntime.jsx($, { variant: "link", text: t, onClick: o2, disabled: 0 === i, ...n });
|
|
9919
9920
|
}, HeaderActionEdit: function({ tooltip: t = "Bulk Edit", ...n }) {
|
|
9920
|
-
const { isBulkActionsSupported: o2, notificationsCount: i } =
|
|
9921
|
-
return o2 ? jsxRuntime.jsx(
|
|
9921
|
+
const { isBulkActionsSupported: o2, notificationsCount: i } = _p(), { showBulkActions: r2 } = Hv();
|
|
9922
|
+
return o2 ? jsxRuntime.jsx(I, { icon: "pen-to-square", title: t, size: "32", onClick: r2, disabled: 0 === i, ...n }) : null;
|
|
9922
9923
|
}, HeaderBulkActions: function({ className: n, ...o2 }) {
|
|
9923
|
-
const i = E("io-panel-header-bulk-actions", n), { HeaderBulkActionSelect: r2, HeaderBulkActionSelectDropdown: a, HeaderBulkActionMarkAsRead: s, HeaderBulkActionMarkAsUnread: c, HeaderBulkActionSnooze: l, HeaderBulkActionClear: u, HeaderBulkActionClose: d } =
|
|
9924
|
+
const i = E("io-panel-header-bulk-actions", n), { HeaderBulkActionSelect: r2, HeaderBulkActionSelectDropdown: a, HeaderBulkActionMarkAsRead: s, HeaderBulkActionMarkAsUnread: c, HeaderBulkActionSnooze: l, HeaderBulkActionClear: u, HeaderBulkActionClose: d } = Rb(), { isBulkActionsSupported: f } = _p();
|
|
9924
9925
|
return f ? jsxRuntime.jsx("div", { className: i, ...o2, children: jsxRuntime.jsxs(ae, { children: [jsxRuntime.jsx(r2, {}), jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {}), jsxRuntime.jsx(l, {}), jsxRuntime.jsx(u, {}), jsxRuntime.jsx(d, {})] }) }) : null;
|
|
9925
9926
|
}, HeaderBulkActionSelect: function({ ...t }) {
|
|
9926
|
-
const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } =
|
|
9927
|
+
const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
|
|
9927
9928
|
return n ? jsxRuntime.jsx(jd, { checked: r2 === o2.length && r2 > 0, onChange: (e) => i("all", e.target.checked), disabled: 0 === r2, ...t }) : null;
|
|
9928
9929
|
}, HeaderBulkActionSelectDropdown: function({ ...n }) {
|
|
9929
|
-
const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } =
|
|
9930
|
+
const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
|
|
9930
9931
|
return o2 ? jsxRuntime.jsxs(re, { variant: "light", ...n, children: [jsxRuntime.jsx(re.ButtonIcon, { variant: "default", icon: "chevron-down", size: "16", iconSize: "10", disabled: 0 === r2 }), jsxRuntime.jsx(H, { children: jsxRuntime.jsxs(re.List, { variant: "single", checkIcon: "check", children: [jsxRuntime.jsx(re.ItemSection, { children: "Select" }), ["All", "Read", "Unread", "Snoozed"].map((t) => jsxRuntime.jsx(re.Item, { onClick: () => i(t.toLowerCase(), true), children: t }, t))] }) })] }) : null;
|
|
9931
9932
|
}, HeaderBulkActionMarkAsRead: function({ icon: t = "envelope-open", size: n = "32", variant: o$1 = "circle", tooltip: i = "Mark as read", ...r2 }) {
|
|
9932
|
-
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } =
|
|
9933
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9933
9934
|
l(c, "Seen");
|
|
9934
9935
|
}, [c, l]);
|
|
9935
|
-
return s ? jsxRuntime.jsx(
|
|
9936
|
+
return s ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
|
|
9936
9937
|
}, HeaderBulkActionMarkAsUnread: function({ icon: t = "envelope", size: n = "32", variant: o$1 = "circle", tooltip: i = "Mark as unread", ...r2 }) {
|
|
9937
|
-
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } =
|
|
9938
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9938
9939
|
l(c, "Active");
|
|
9939
9940
|
}, [c, l]);
|
|
9940
|
-
return s ? jsxRuntime.jsx(
|
|
9941
|
+
return s ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
|
|
9941
9942
|
}, HeaderBulkActionSnooze: function({ icon: t = "snooze", size: n = "32", variant: o$1 = "circle", tooltip: i = "Snooze", ...r2 }) {
|
|
9942
|
-
var _a2,
|
|
9943
|
-
const { isBulkActionsSupported: s, selectedNotifications: c, snoozeMany: l, settings: u, notificationsCount: d } =
|
|
9943
|
+
var _a2, _b2;
|
|
9944
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, snoozeMany: l, settings: u, notificationsCount: d } = _p(), f = o.useCallback(() => {
|
|
9944
9945
|
var _a3;
|
|
9945
9946
|
l(c, ((_a3 = u.snooze) == null ? void 0 : _a3.duration) ?? 0);
|
|
9946
9947
|
}, [c, l, (_a2 = u.snooze) == null ? void 0 : _a2.duration]);
|
|
9947
|
-
return s && ((
|
|
9948
|
+
return s && ((_b2 = u.snooze) == null ? void 0 : _b2.enabled) ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: f, disabled: 0 === d, ...r2 }) : null;
|
|
9948
9949
|
}, HeaderBulkActionClear: function({ icon: t = "trash", size: n = "32", variant: o$1 = "circle", tooltip: i = "Clear", ...r2 }) {
|
|
9949
|
-
const { isBulkActionsSupported: s, selectedNotifications: c, clearMany: l, notificationsCount: u } =
|
|
9950
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, clearMany: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9950
9951
|
l(c);
|
|
9951
9952
|
}, [c, l]);
|
|
9952
|
-
return s ? jsxRuntime.jsx(
|
|
9953
|
+
return s ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
|
|
9953
9954
|
}, HeaderBulkActionClose: function({ text: t = "Done", variant: n = "primary", ...o2 }) {
|
|
9954
|
-
const { isBulkActionsSupported: i, notificationsCount: r2 } =
|
|
9955
|
+
const { isBulkActionsSupported: i, notificationsCount: r2 } = _p(), { hideBulkActions: a } = Hv();
|
|
9955
9956
|
return i ? jsxRuntime.jsx($, { variant: n, text: t, onClick: a, disabled: 0 === r2, ...o2 }) : null;
|
|
9956
9957
|
}, HeaderSearch: function({ className: n, placeholder: o$1 = "Search", iconPrepend: i = "search", iconAppend: r2 = "close", ...s }) {
|
|
9957
|
-
const c = E("io-panel-header-search", n), l = o.useRef(null), { notificationsCount: u } =
|
|
9958
|
+
const c = E("io-panel-header-search", n), l = o.useRef(null), { notificationsCount: u } = _p(), { searchQuery: f, setSearch: p } = Hv(), m = f.length > 0, h = o.useCallback(() => {
|
|
9958
9959
|
p(""), l.current && l.current.focus();
|
|
9959
9960
|
}, [p]);
|
|
9960
9961
|
return jsxRuntime.jsxs("div", { className: c, children: [jsxRuntime.jsx($d, { ref: l, value: f, iconPrepend: i, iconAppend: m ? r2 : void 0, iconAppendOnClick: m ? h : void 0, placeholder: o$1, onChange: (e) => p(e.target.value), ...s }), m && jsxRuntime.jsx("p", { className: "io-panel-header-search-count", children: `${u} results` })] });
|
|
9961
|
-
}, Body:
|
|
9962
|
-
const o$1 = o.useMemo(() => ({ ...
|
|
9963
|
-
return jsxRuntime.jsx(
|
|
9962
|
+
}, Body: tb, Footer: nb, FooterButtons: ob, FooterButtonClearAll: ib, FooterButtonClearAllOld: rb, Notification: Eb, NotificationsList: Ob }, Db = o.createContext(Lb), Tb = o.memo(({ children: t, components: n }) => {
|
|
9963
|
+
const o$1 = o.useMemo(() => ({ ...Lb, ...n }), [n]);
|
|
9964
|
+
return jsxRuntime.jsx(Db.Provider, { value: o$1, children: t });
|
|
9964
9965
|
});
|
|
9965
|
-
function
|
|
9966
|
-
return { ...o.useContext(
|
|
9966
|
+
function Rb(e) {
|
|
9967
|
+
return { ...o.useContext(Db), ...e };
|
|
9967
9968
|
}
|
|
9968
|
-
|
|
9969
|
-
const
|
|
9970
|
-
const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } =
|
|
9969
|
+
Tb.displayName = "ComponentsStoreProvider";
|
|
9970
|
+
const Fb = ({ className: t, notifications: n, maxToasts: o$1 = 1, ...i }) => {
|
|
9971
|
+
const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } = zb(), [c, u] = o.useState([]);
|
|
9971
9972
|
return o.useEffect(() => {
|
|
9972
9973
|
const e = o$1 < 0 ? n.length : o$1, t2 = n.filter((e2) => "Active" === e2.state).slice(0, e);
|
|
9973
9974
|
for (const e2 of t2)
|
|
@@ -9975,30 +9976,30 @@
|
|
|
9975
9976
|
u(t2);
|
|
9976
9977
|
}, [n, o$1]), jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsx(a, { Notification: s, notifications: c, noNotificationText: "" }) });
|
|
9977
9978
|
};
|
|
9978
|
-
|
|
9979
|
-
const $
|
|
9980
|
-
const o$1 = o.useMemo(() => ({ ...$
|
|
9981
|
-
return jsxRuntime.jsx(
|
|
9979
|
+
Fb.displayName = "Body";
|
|
9980
|
+
const $b = { Body: Fb, Notification: Eb, NotificationsList: Ob }, _b = o.createContext($b), jb = o.memo(({ children: t, components: n }) => {
|
|
9981
|
+
const o$1 = o.useMemo(() => ({ ...$b, ...n }), [n]);
|
|
9982
|
+
return jsxRuntime.jsx(_b.Provider, { value: o$1, children: t });
|
|
9982
9983
|
});
|
|
9983
|
-
function
|
|
9984
|
-
return { ...o.useContext(
|
|
9985
|
-
}
|
|
9986
|
-
|
|
9987
|
-
const
|
|
9988
|
-
const { General:
|
|
9989
|
-
return jsxRuntime.
|
|
9990
|
-
},
|
|
9991
|
-
const { Theme: o2 } =
|
|
9984
|
+
function zb(e) {
|
|
9985
|
+
return { ...o.useContext(_b), ...e };
|
|
9986
|
+
}
|
|
9987
|
+
jb.displayName = "ComponentsStoreProvider";
|
|
9988
|
+
const Kb = (n) => {
|
|
9989
|
+
const { General: o$1, Layouts: i } = Qb(), r2 = [{ key: "general", Component: o$1 }, { key: "layouts", Component: i }];
|
|
9990
|
+
return jsxRuntime.jsx(Od, { element: Us, elementProps: n, children: r2.map(({ key: n2, Component: o$12 }, i2) => jsxRuntime.jsxs(o.Fragment, { children: [jsxRuntime.jsx(o$12, {}), i2 < r2.length - 1 && jsxRuntime.jsx(J, {})] }, n2)) });
|
|
9991
|
+
}, Gb = ({ title: t = "General", ...n }) => {
|
|
9992
|
+
const { Theme: o2 } = Qb();
|
|
9992
9993
|
return jsxRuntime.jsx(T, { title: t, "data-testid": "preferences-panel-general-block", ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
9993
|
-
},
|
|
9994
|
-
const { LayoutsShowDeletePrompt: o2 } =
|
|
9994
|
+
}, qb = ({ title: t = "Layouts", ...n }) => {
|
|
9995
|
+
const { LayoutsShowDeletePrompt: o2 } = Qb();
|
|
9995
9996
|
return jsxRuntime.jsx(T, { title: t, "data-testid": "preferences-panel-layouts-block", ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
9996
|
-
},
|
|
9997
|
-
const o$1 = o.useMemo(() => ({ ...
|
|
9998
|
-
return jsxRuntime.jsx(
|
|
9997
|
+
}, Jb = { Body: Kb, General: Gb, Theme: vf, Layouts: qb, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf }, Yb = o.createContext(Jb), Xb = o.memo(({ children: t, components: n }) => {
|
|
9998
|
+
const o$1 = o.useMemo(() => ({ ...Jb, ...n }), [n]);
|
|
9999
|
+
return jsxRuntime.jsx(Yb.Provider, { value: o$1, children: t });
|
|
9999
10000
|
});
|
|
10000
|
-
|
|
10001
|
-
const
|
|
10001
|
+
Xb.displayName = "PreferencesPanelComponentsStoreProvider";
|
|
10002
|
+
const Qb = () => o.useContext(Yb);
|
|
10002
10003
|
function useExternalWindowPopup() {
|
|
10003
10004
|
const { getContainer, closePopup, createPopup, hidePopup, showPopup, isOpen, isVisible, popup } = Qd();
|
|
10004
10005
|
const resizePopup = o.useCallback(async (size) => {
|
|
@@ -10021,9 +10022,9 @@
|
|
|
10021
10022
|
const requestFrameFocus = (frameId) => webGroupsManager == null ? void 0 : webGroupsManager.requestFrameFocus(frameId);
|
|
10022
10023
|
const requestGroupFocus = () => webGroupsManager == null ? void 0 : webGroupsManager.requestGroupFocus();
|
|
10023
10024
|
const openTabOverflowPopup = ({ frameId, location }) => webGroupsManager.openTabOverflowPopup(frameId, location);
|
|
10024
|
-
const onCommitGroupCaptionEditingRequested = (targetId,
|
|
10025
|
-
const onCommitFlatCaptionEditingRequested = (targetId,
|
|
10026
|
-
const onCommitTabCaptionEditingRequested = (targetId,
|
|
10025
|
+
const onCommitGroupCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Group, targetId, cb2);
|
|
10026
|
+
const onCommitFlatCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Frame, targetId, cb2);
|
|
10027
|
+
const onCommitTabCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Tab, targetId, cb2);
|
|
10027
10028
|
exports2.CloneButton = CloneButton;
|
|
10028
10029
|
exports2.CloseButton = CloseButton;
|
|
10029
10030
|
exports2.CustomButton = CustomButton;
|