@interopio/groups-ui-react 4.5.0-next.0 → 4.5.1-next.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/featureDetector.d.ts +6 -0
- package/dist/cjs/index.js +886 -873
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/internal.d.ts +2 -0
- package/dist/esm/featureDetector.d.ts +6 -0
- package/dist/esm/index.js +886 -873
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/internal.d.ts +2 -0
- package/dist/styles/groups.css +4 -0
- package/dist/styles/vars.css +1 -1
- 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,
|
|
@@ -1869,9 +1869,20 @@
|
|
|
1869
1869
|
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
1870
1870
|
}
|
|
1871
1871
|
var shimExports = shim.exports;
|
|
1872
|
+
class WebGroupsFeatureDetector {
|
|
1873
|
+
isFeatureSupported(feature) {
|
|
1874
|
+
switch (feature) {
|
|
1875
|
+
case "internal-universal-popups":
|
|
1876
|
+
return true;
|
|
1877
|
+
default:
|
|
1878
|
+
return false;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
const featureDetector = new WebGroupsFeatureDetector();
|
|
1872
1883
|
class GroupWrapper extends o.Component {
|
|
1873
1884
|
componentDidMount() {
|
|
1874
|
-
var _a2,
|
|
1885
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
1875
1886
|
const componentFactory = {
|
|
1876
1887
|
createGroupCaptionBar: this.props.onCreateGroupCaptionBarRequested,
|
|
1877
1888
|
updateGroupCaptionBar: this.props.onUpdateGroupCaptionBarRequested,
|
|
@@ -1919,16 +1930,17 @@
|
|
|
1919
1930
|
commitCaptionEditing: this.props.onCommitCaptionEditingRequested,
|
|
1920
1931
|
hideCaptionEditor: this.props.onHideCaptionEditorRequested,
|
|
1921
1932
|
showLoadingAnimation: this.props.onShowLoadingAnimationRequested,
|
|
1922
|
-
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested
|
|
1933
|
+
hideLoadingAnimation: this.props.onHideLoadingAnimationRequested,
|
|
1934
|
+
isFeatureSupported: featureDetector.isFeatureSupported.bind(featureDetector)
|
|
1923
1935
|
};
|
|
1924
1936
|
webGroupsManager.init(void 0, componentFactory);
|
|
1925
|
-
webGroupsManager.updateTabHeaderStyles(((
|
|
1937
|
+
webGroupsManager.updateTabHeaderStyles(((_b2 = (_a2 = this.props.styles) == null ? void 0 : _a2.tabs) == null ? void 0 : _b2.header) ?? {});
|
|
1926
1938
|
webGroupsManager.updateTabMoveAreaStyles(((_d2 = (_c2 = this.props.styles) == null ? void 0 : _c2.tabs) == null ? void 0 : _d2.moveArea) ?? {});
|
|
1927
1939
|
webGroupsManager.updateFrameStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.frame) == null ? void 0 : _f2.element) ?? {});
|
|
1928
1940
|
}
|
|
1929
1941
|
componentDidUpdate(prevProps, prevState, snapshot) {
|
|
1930
|
-
var _a2,
|
|
1931
|
-
if (((
|
|
1942
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2, _q, _r2;
|
|
1943
|
+
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
1944
|
webGroupsManager.updateTabHeaderStyles(((_f2 = (_e2 = this.props.styles) == null ? void 0 : _e2.tabs) == null ? void 0 : _f2.header) ?? {});
|
|
1933
1945
|
}
|
|
1934
1946
|
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 +1958,7 @@
|
|
|
1946
1958
|
}
|
|
1947
1959
|
class Portal extends o.Component {
|
|
1948
1960
|
render() {
|
|
1949
|
-
return
|
|
1961
|
+
return w.createPortal(this.props.children, this.props.parentElement);
|
|
1950
1962
|
}
|
|
1951
1963
|
}
|
|
1952
1964
|
class WebGroupsStore {
|
|
@@ -1984,10 +1996,10 @@
|
|
|
1984
1996
|
htmlButtons: {}
|
|
1985
1997
|
// dict frameId to crate html buttons options
|
|
1986
1998
|
};
|
|
1987
|
-
this.subscribe = (
|
|
1988
|
-
this.listeners.add(
|
|
1999
|
+
this.subscribe = (cb2) => {
|
|
2000
|
+
this.listeners.add(cb2);
|
|
1989
2001
|
return () => {
|
|
1990
|
-
this.listeners.delete(
|
|
2002
|
+
this.listeners.delete(cb2);
|
|
1991
2003
|
};
|
|
1992
2004
|
};
|
|
1993
2005
|
this.getSnapshot = () => {
|
|
@@ -2506,8 +2518,8 @@
|
|
|
2506
2518
|
};
|
|
2507
2519
|
});
|
|
2508
2520
|
};
|
|
2509
|
-
this.setState = (
|
|
2510
|
-
this.state =
|
|
2521
|
+
this.setState = (cb2) => {
|
|
2522
|
+
this.state = cb2(this.state);
|
|
2511
2523
|
this.listeners.forEach((l) => l());
|
|
2512
2524
|
};
|
|
2513
2525
|
}
|
|
@@ -2520,7 +2532,7 @@
|
|
|
2520
2532
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
2521
2533
|
};
|
|
2522
2534
|
const GroupElementCreationWrapper = ({ components, styles }) => {
|
|
2523
|
-
var _a2,
|
|
2535
|
+
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
2536
|
const state = shimExports.useSyncExternalStore(webGroupsStore.subscribe, webGroupsStore.getSnapshot);
|
|
2525
2537
|
const LoadingAnimation = ((_a2 = components == null ? void 0 : components.frame) == null ? void 0 : _a2.LoadingAnimation) ?? FrameLoadingAnimation;
|
|
2526
2538
|
const renderGroupCaptionBar = () => {
|
|
@@ -3182,7 +3194,7 @@
|
|
|
3182
3194
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3183
3195
|
GroupWrapper,
|
|
3184
3196
|
{
|
|
3185
|
-
onCreateGroupCaptionBarRequested: ((
|
|
3197
|
+
onCreateGroupCaptionBarRequested: ((_b2 = components == null ? void 0 : components.group) == null ? void 0 : _b2.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : void 0,
|
|
3186
3198
|
onCreateGroupOverlayRequested: ((_c2 = components == null ? void 0 : components.group) == null ? void 0 : _c2.Overlay) ? webGroupsStore.onCreateGroupOverlayRequested : void 0,
|
|
3187
3199
|
onCreateFrameCaptionBarRequested: ((_d2 = components == null ? void 0 : components.flat) == null ? void 0 : _d2.CaptionBar) ? webGroupsStore.onCreateFrameCaptionBarRequested : void 0,
|
|
3188
3200
|
onCreateFrameWindowOverlayRequested: ((_e2 = components == null ? void 0 : components.frame) == null ? void 0 : _e2.Overlay) ? webGroupsStore.onCreateFrameWindowOverlayRequested : void 0,
|
|
@@ -3207,7 +3219,7 @@
|
|
|
3207
3219
|
onUpdateAboveTabsRequested: ((_t2 = components == null ? void 0 : components.tabs) == null ? void 0 : _t2.Above) ? webGroupsStore.onUpdateAboveTabsRequested : void 0,
|
|
3208
3220
|
onUpdateBeforeTabsComponentRequested: ((_u2 = components == null ? void 0 : components.tabs) == null ? void 0 : _u2.Before) ? webGroupsStore.onUpdateBeforeTabsRequested : void 0,
|
|
3209
3221
|
onUpdateTabRequested: ((_v = components == null ? void 0 : components.tabs) == null ? void 0 : _v.Element) ? webGroupsStore.onUpdateTabElementRequested : void 0,
|
|
3210
|
-
onUpdateAfterTabsComponentRequested: ((
|
|
3222
|
+
onUpdateAfterTabsComponentRequested: ((_w = components == null ? void 0 : components.tabs) == null ? void 0 : _w.After) ? webGroupsStore.onUpdateAfterTabsRequested : void 0,
|
|
3211
3223
|
onUpdateBelowTabsRequested: ((_x = components == null ? void 0 : components.tabs) == null ? void 0 : _x.Below) ? webGroupsStore.onUpdateBelowTabsRequested : void 0,
|
|
3212
3224
|
onRemoveFrameCaptionBarRequested: webGroupsStore.onRemoveFrameCaptionBarRequested,
|
|
3213
3225
|
onRemoveFrameWindowOverlayRequested: webGroupsStore.onRemoveFrameWindowOverlayRequested,
|
|
@@ -3237,13 +3249,13 @@
|
|
|
3237
3249
|
const [IOConnectWindow, setIOConnectWindow] = o.useState(void 0);
|
|
3238
3250
|
const io2 = window.io || o.useContext(reactHooks.IOConnectContext);
|
|
3239
3251
|
o.useEffect(() => {
|
|
3240
|
-
const unsub = io2.windows.onWindowAdded((
|
|
3241
|
-
if (
|
|
3242
|
-
setIOConnectWindow(
|
|
3252
|
+
const unsub = io2.windows.onWindowAdded((w2) => {
|
|
3253
|
+
if (w2.id === windowId) {
|
|
3254
|
+
setIOConnectWindow(w2);
|
|
3243
3255
|
unsub();
|
|
3244
3256
|
}
|
|
3245
3257
|
});
|
|
3246
|
-
const windowInCollection = io2.windows.list().find((
|
|
3258
|
+
const windowInCollection = io2.windows.list().find((w2) => w2.id === windowId);
|
|
3247
3259
|
if (windowInCollection) {
|
|
3248
3260
|
setIOConnectWindow(windowInCollection);
|
|
3249
3261
|
unsub();
|
|
@@ -3347,16 +3359,16 @@
|
|
|
3347
3359
|
hiddenTabsToTheRight.length > 0 && createSection(hiddenTabsToTheRight, "Open right")
|
|
3348
3360
|
] });
|
|
3349
3361
|
};
|
|
3350
|
-
function
|
|
3362
|
+
function C(e) {
|
|
3351
3363
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3352
3364
|
}
|
|
3353
|
-
var
|
|
3365
|
+
var S, N = { exports: {} };
|
|
3354
3366
|
/*!
|
|
3355
3367
|
Copyright (c) 2018 Jed Watson.
|
|
3356
3368
|
Licensed under the MIT License (MIT), see
|
|
3357
3369
|
http://jedwatson.github.io/classnames
|
|
3358
3370
|
*/
|
|
3359
|
-
|
|
3371
|
+
S = N, function() {
|
|
3360
3372
|
var e = {}.hasOwnProperty;
|
|
3361
3373
|
function t() {
|
|
3362
3374
|
for (var e2 = "", t2 = 0; t2 < arguments.length; t2++) {
|
|
@@ -3382,22 +3394,22 @@
|
|
|
3382
3394
|
function o2(e2, t2) {
|
|
3383
3395
|
return t2 ? e2 ? e2 + " " + t2 : e2 + t2 : e2;
|
|
3384
3396
|
}
|
|
3385
|
-
|
|
3397
|
+
S.exports ? (t.default = t, S.exports = t) : window.classNames = t;
|
|
3386
3398
|
}();
|
|
3387
|
-
var E =
|
|
3388
|
-
function
|
|
3399
|
+
var E = C(N.exports);
|
|
3400
|
+
function P({ className: t, size: n = "16", variant: o2 = "workspace", ...i }) {
|
|
3389
3401
|
const r2 = E("icon", n && [`icon-size-${n}`], t);
|
|
3390
3402
|
return jsxRuntime.jsx("span", { className: r2, "aria-label": `icon-${o2}`, role: "presentation", ...i, children: jsxRuntime.jsx("i", { className: `icon-${o2}` }) });
|
|
3391
3403
|
}
|
|
3392
|
-
const
|
|
3404
|
+
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
3405
|
const p = E("io-btn-icon", "default" !== n && [`io-btn-icon-${n}`], [`io-btn-icon-size-${i}`], t), m = o.useCallback((e) => {
|
|
3394
3406
|
if (!l)
|
|
3395
3407
|
return c ? c(e) : void 0;
|
|
3396
3408
|
e.preventDefault();
|
|
3397
3409
|
}, [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(
|
|
3410
|
+
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
3411
|
});
|
|
3400
|
-
|
|
3412
|
+
I.displayName = "ButtonIcon";
|
|
3401
3413
|
function L({ className: t, variant: n = "default", children: o2, ...i }) {
|
|
3402
3414
|
const r2 = E("io-badge", "default" !== n && [`io-badge-${n}`], t);
|
|
3403
3415
|
return jsxRuntime.jsx("div", { className: r2, ...i, children: o2 });
|
|
@@ -3445,7 +3457,7 @@
|
|
|
3445
3457
|
}, [u, d]), y = o.useCallback((e) => {
|
|
3446
3458
|
d || R(e) && (e.preventDefault(), g(e));
|
|
3447
3459
|
}, [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(
|
|
3460
|
+
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
3461
|
});
|
|
3450
3462
|
$.displayName = "Button";
|
|
3451
3463
|
const _ = o.createContext({}), j = o.forwardRef(({ icon: t = "chevron-down", onClick: n, onKeyDown: o$1, ...i }, r2) => {
|
|
@@ -3467,7 +3479,7 @@
|
|
|
3467
3479
|
}, [n, s]), p = o.useCallback((e) => {
|
|
3468
3480
|
o$1 == null ? void 0 : o$1(e), e.defaultPrevented || R(e) && (e.preventDefault(), e.stopPropagation(), s == null ? void 0 : s());
|
|
3469
3481
|
}, [o$1, s]);
|
|
3470
|
-
return jsxRuntime.jsx(
|
|
3482
|
+
return jsxRuntime.jsx(I, { size: t, onClick: f, onKeyDown: p, disabled: l, ref: d, ...i });
|
|
3471
3483
|
});
|
|
3472
3484
|
function H({ className: t, ...n }) {
|
|
3473
3485
|
const o2 = E("io-dropdown-content", t);
|
|
@@ -3475,10 +3487,10 @@
|
|
|
3475
3487
|
}
|
|
3476
3488
|
z.displayName = "DropdownButtonIcon";
|
|
3477
3489
|
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),
|
|
3490
|
+
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
3491
|
return jsxRuntime.jsxs("li", { className: x, ref: o$1, role: "menuitem", "aria-roledescription": "menuitem", tabIndex: 0, onClick: (e) => {
|
|
3480
3492
|
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: [
|
|
3493
|
+
}, ...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
3494
|
});
|
|
3483
3495
|
V.displayName = "ListItem";
|
|
3484
3496
|
const U = o.forwardRef(({ className: n, prepend: o2, append: i, children: r2, tooltip: a, ...s }, c) => {
|
|
@@ -3515,8 +3527,8 @@
|
|
|
3515
3527
|
if ("default" === i)
|
|
3516
3528
|
return;
|
|
3517
3529
|
const n2 = d.some((e2) => {
|
|
3518
|
-
var _a2,
|
|
3519
|
-
return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((
|
|
3530
|
+
var _a2, _b2;
|
|
3531
|
+
return ((_a2 = e2.children) == null ? void 0 : _a2.toString()) === ((_b2 = t2.children) == null ? void 0 : _b2.toString());
|
|
3520
3532
|
});
|
|
3521
3533
|
"single" === i ? f([t2]) : (() => {
|
|
3522
3534
|
const e2 = n2 ? d.filter((e3) => e3.children !== t2.children) : [...d, t2];
|
|
@@ -3566,7 +3578,7 @@
|
|
|
3566
3578
|
const re = o.forwardRef(({ className: t, variant: n = "outline", align: o$1 = "down", disabled: i, isOpen: r2, onOpenChange: s, children: c, ...m }, h) => {
|
|
3567
3579
|
const g = o.useRef(null), y = o.useRef(null);
|
|
3568
3580
|
o.useImperativeHandle(h, () => y.current, []);
|
|
3569
|
-
const { isOpen: v, handleOpen:
|
|
3581
|
+
const { isOpen: v, handleOpen: b, handleClose: w2 } = ((e, t2) => {
|
|
3570
3582
|
const [n2, o$12] = o.useState(false), i2 = void 0 !== e, r3 = i2 ? e : n2, s2 = o.useCallback((e2) => {
|
|
3571
3583
|
i2 || o$12(e2), t2 == null ? void 0 : t2(e2);
|
|
3572
3584
|
}, [i2, t2]), c2 = o.useCallback(() => s2(true), [s2]), u = o.useCallback(() => s2(false), [s2]);
|
|
@@ -3586,12 +3598,12 @@
|
|
|
3586
3598
|
cancelAnimationFrame(i2), document.removeEventListener("mousedown", o2, true);
|
|
3587
3599
|
};
|
|
3588
3600
|
}, [e, t2, n2]);
|
|
3589
|
-
})(y,
|
|
3590
|
-
v &&
|
|
3601
|
+
})(y, w2, v), ie(() => {
|
|
3602
|
+
v && w2();
|
|
3591
3603
|
}, ["Escape"], y), ie(() => {
|
|
3592
|
-
v || i || g.current !== document.activeElement ||
|
|
3604
|
+
v || i || g.current !== document.activeElement || b();
|
|
3593
3605
|
}, ["ArrowDown", "ArrowUp"], y);
|
|
3594
|
-
const k = o.useMemo(() => ({ variant: n, align: o$1, disabled: i, isOpen: v, handleOpen:
|
|
3606
|
+
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
3607
|
return jsxRuntime.jsx(_.Provider, { value: k, children: jsxRuntime.jsx("div", { className: x, ref: y, ...m, children: c }) });
|
|
3596
3608
|
});
|
|
3597
3609
|
function ae({ className: t, variant: n = "default", align: o2 = "left", children: i, ...r2 }) {
|
|
@@ -3630,7 +3642,7 @@
|
|
|
3630
3642
|
}, onKeyDown: (e) => {
|
|
3631
3643
|
const t = e.target instanceof HTMLDialogElement && "DIALOG" === e.target.nodeName;
|
|
3632
3644
|
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(
|
|
3645
|
+
}, ...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
3646
|
}
|
|
3635
3647
|
function pe() {
|
|
3636
3648
|
return "undefined" != typeof window;
|
|
@@ -3652,24 +3664,24 @@
|
|
|
3652
3664
|
function ve(e) {
|
|
3653
3665
|
return !!pe() && (e instanceof Element || e instanceof he(e).Element);
|
|
3654
3666
|
}
|
|
3655
|
-
function
|
|
3667
|
+
function be(e) {
|
|
3656
3668
|
return !!pe() && (e instanceof HTMLElement || e instanceof he(e).HTMLElement);
|
|
3657
3669
|
}
|
|
3658
|
-
function
|
|
3670
|
+
function we(e) {
|
|
3659
3671
|
return !(!pe() || "undefined" == typeof ShadowRoot) && (e instanceof ShadowRoot || e instanceof he(e).ShadowRoot);
|
|
3660
3672
|
}
|
|
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 =
|
|
3673
|
+
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
3674
|
const i = E("io-dialog-content", t);
|
|
3663
3675
|
return jsxRuntime.jsx("div", { className: i, ...o2, children: n });
|
|
3664
|
-
}, ue.ButtonGroup = ae, ue.Button = $, ue.ButtonIcon =
|
|
3676
|
+
}, 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
3677
|
const ke = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
3666
3678
|
function xe(e) {
|
|
3667
3679
|
const { overflow: t, overflowX: n, overflowY: o2, display: i } = Re(e);
|
|
3668
3680
|
return /auto|scroll|overlay|hidden|clip/.test(t + o2 + n) && !ke.has(i);
|
|
3669
3681
|
}
|
|
3670
|
-
const
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
3682
|
+
const Ce = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
3683
|
+
function Se(e) {
|
|
3684
|
+
return Ce.has(me(e));
|
|
3673
3685
|
}
|
|
3674
3686
|
const Ne = [":popover-open", ":modal"];
|
|
3675
3687
|
function Ee(e) {
|
|
@@ -3681,10 +3693,10 @@
|
|
|
3681
3693
|
}
|
|
3682
3694
|
});
|
|
3683
3695
|
}
|
|
3684
|
-
const
|
|
3696
|
+
const Pe = ["transform", "translate", "scale", "rotate", "perspective"], Ie = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ae = ["paint", "layout", "strict", "content"];
|
|
3685
3697
|
function Oe(e) {
|
|
3686
3698
|
const t = Le(), n = ve(e) ? Re(e) : e;
|
|
3687
|
-
return
|
|
3699
|
+
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
3700
|
}
|
|
3689
3701
|
function Le() {
|
|
3690
3702
|
return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
|
|
@@ -3702,12 +3714,12 @@
|
|
|
3702
3714
|
function Me(e) {
|
|
3703
3715
|
if ("html" === me(e))
|
|
3704
3716
|
return e;
|
|
3705
|
-
const t = e.assignedSlot || e.parentNode ||
|
|
3706
|
-
return
|
|
3717
|
+
const t = e.assignedSlot || e.parentNode || we(e) && e.host || ge(e);
|
|
3718
|
+
return we(t) ? t.host : t;
|
|
3707
3719
|
}
|
|
3708
3720
|
function Fe(e) {
|
|
3709
3721
|
const t = Me(e);
|
|
3710
|
-
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
3722
|
+
return Te(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && xe(t) ? t : Fe(t);
|
|
3711
3723
|
}
|
|
3712
3724
|
function $e(e, t, n) {
|
|
3713
3725
|
var o2;
|
|
@@ -3736,7 +3748,7 @@
|
|
|
3736
3748
|
const n = null == t.getRootNode ? void 0 : t.getRootNode();
|
|
3737
3749
|
if (e.contains(t))
|
|
3738
3750
|
return true;
|
|
3739
|
-
if (n &&
|
|
3751
|
+
if (n && we(n)) {
|
|
3740
3752
|
let n2 = t;
|
|
3741
3753
|
for (; n2; ) {
|
|
3742
3754
|
if (e === n2)
|
|
@@ -3789,7 +3801,7 @@
|
|
|
3789
3801
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
3790
3802
|
}
|
|
3791
3803
|
function Qe(e) {
|
|
3792
|
-
return
|
|
3804
|
+
return be(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
|
|
3793
3805
|
}
|
|
3794
3806
|
function Ze(e) {
|
|
3795
3807
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -3826,27 +3838,27 @@
|
|
|
3826
3838
|
function yt(e) {
|
|
3827
3839
|
return e.replace(/start|end/g, (e2) => st[e2]);
|
|
3828
3840
|
}
|
|
3829
|
-
const vt = ["left", "right"],
|
|
3841
|
+
const vt = ["left", "right"], bt = ["right", "left"], wt = ["top", "bottom"], kt = ["bottom", "top"];
|
|
3830
3842
|
function xt(e, t, n, o2) {
|
|
3831
3843
|
const i = dt(e);
|
|
3832
3844
|
let r2 = function(e2, t2, n2) {
|
|
3833
3845
|
switch (e2) {
|
|
3834
3846
|
case "top":
|
|
3835
3847
|
case "bottom":
|
|
3836
|
-
return n2 ? t2 ?
|
|
3848
|
+
return n2 ? t2 ? bt : vt : t2 ? vt : bt;
|
|
3837
3849
|
case "left":
|
|
3838
3850
|
case "right":
|
|
3839
|
-
return t2 ?
|
|
3851
|
+
return t2 ? wt : kt;
|
|
3840
3852
|
default:
|
|
3841
3853
|
return [];
|
|
3842
3854
|
}
|
|
3843
3855
|
}(ut(e), "start" === n, o2);
|
|
3844
3856
|
return i && (r2 = r2.map((e2) => e2 + "-" + i), t && (r2 = r2.concat(r2.map(yt)))), r2;
|
|
3845
3857
|
}
|
|
3846
|
-
function
|
|
3858
|
+
function Ct(e) {
|
|
3847
3859
|
return e.replace(/left|right|bottom|top/g, (e2) => at[e2]);
|
|
3848
3860
|
}
|
|
3849
|
-
function
|
|
3861
|
+
function St(e) {
|
|
3850
3862
|
const { x: t, y: n, width: o2, height: i } = e;
|
|
3851
3863
|
return { width: o2, height: i, top: n, left: t, right: t + o2, bottom: n + i, x: t, y: n };
|
|
3852
3864
|
}
|
|
@@ -3854,8 +3866,8 @@
|
|
|
3854
3866
|
* tabbable 6.4.0
|
|
3855
3867
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3856
3868
|
*/
|
|
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,
|
|
3869
|
+
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() {
|
|
3870
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, It = !Et && Element.prototype.getRootNode ? function(e) {
|
|
3859
3871
|
var t;
|
|
3860
3872
|
return null == e || null === (t = e.getRootNode) || void 0 === t ? void 0 : t.call(e);
|
|
3861
3873
|
} : function(e) {
|
|
@@ -3873,7 +3885,7 @@
|
|
|
3873
3885
|
var a = r2.assignedElements(), s = a.length ? a : r2.children, c = Ot(s, true, n);
|
|
3874
3886
|
n.flatten ? o2.push.apply(o2, c) : o2.push({ scopeParent: r2, candidates: c });
|
|
3875
3887
|
} else {
|
|
3876
|
-
|
|
3888
|
+
Pt.call(r2, Nt) && n.filter(r2) && (t || !e.includes(r2)) && o2.push(r2);
|
|
3877
3889
|
var l = r2.shadowRoot || "function" == typeof n.getShadowRoot && n.getShadowRoot(r2), u = !At(l, false) && (!n.shadowRootFilter || n.shadowRootFilter(r2));
|
|
3878
3890
|
if (l && u) {
|
|
3879
3891
|
var d = Ot(true === l ? r2.children : l.children, true, n);
|
|
@@ -3902,7 +3914,7 @@
|
|
|
3902
3914
|
}(e) && !function(e2) {
|
|
3903
3915
|
if (!e2.name)
|
|
3904
3916
|
return true;
|
|
3905
|
-
var t, n = e2.form ||
|
|
3917
|
+
var t, n = e2.form || It(e2), o2 = function(e3) {
|
|
3906
3918
|
return n.querySelectorAll('input[type="radio"][name="' + e3 + '"]');
|
|
3907
3919
|
};
|
|
3908
3920
|
if ("undefined" != typeof window && void 0 !== window.CSS && "function" == typeof window.CSS.escape)
|
|
@@ -3929,8 +3941,8 @@
|
|
|
3929
3941
|
return !e.checkVisibility({ checkOpacity: false, opacityProperty: false, contentVisibilityAuto: true, visibilityProperty: true, checkVisibilityCSS: true });
|
|
3930
3942
|
if ("hidden" === getComputedStyle(e).visibility)
|
|
3931
3943
|
return true;
|
|
3932
|
-
var i =
|
|
3933
|
-
if (
|
|
3944
|
+
var i = Pt.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
3945
|
+
if (Pt.call(i, "details:not([open]) *"))
|
|
3934
3946
|
return true;
|
|
3935
3947
|
if (n && "full" !== n && "full-native" !== n && "legacy-full" !== n) {
|
|
3936
3948
|
if ("non-zero-area" === n)
|
|
@@ -3938,7 +3950,7 @@
|
|
|
3938
3950
|
} else {
|
|
3939
3951
|
if ("function" == typeof o2) {
|
|
3940
3952
|
for (var r2 = e; e; ) {
|
|
3941
|
-
var a = e.parentElement, s =
|
|
3953
|
+
var a = e.parentElement, s = It(e);
|
|
3942
3954
|
if (a && !a.shadowRoot && true === o2(a))
|
|
3943
3955
|
return Mt(e);
|
|
3944
3956
|
e = e.assignedSlot ? e.assignedSlot : a || s === e.ownerDocument ? a : s.host;
|
|
@@ -3946,11 +3958,11 @@
|
|
|
3946
3958
|
e = r2;
|
|
3947
3959
|
}
|
|
3948
3960
|
if (function(e2) {
|
|
3949
|
-
var t2, n2, o3, i2, r3 = e2 &&
|
|
3961
|
+
var t2, n2, o3, i2, r3 = e2 && It(e2), a2 = null === (t2 = r3) || void 0 === t2 ? void 0 : t2.host, s2 = false;
|
|
3950
3962
|
if (r3 && r3 !== e2)
|
|
3951
3963
|
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
3964
|
var c, l, u;
|
|
3953
|
-
s2 = !(null === (l = a2 = null === (c = r3 =
|
|
3965
|
+
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
3966
|
}
|
|
3955
3967
|
return s2;
|
|
3956
3968
|
}(e))
|
|
@@ -3973,7 +3985,7 @@
|
|
|
3973
3985
|
for (var n = 0; n < t2.children.length; n++) {
|
|
3974
3986
|
var o2 = t2.children.item(n);
|
|
3975
3987
|
if ("LEGEND" === o2.tagName)
|
|
3976
|
-
return !!
|
|
3988
|
+
return !!Pt.call(t2, "fieldset[disabled] *") || !o2.contains(e2);
|
|
3977
3989
|
}
|
|
3978
3990
|
return true;
|
|
3979
3991
|
}
|
|
@@ -4003,7 +4015,7 @@
|
|
|
4003
4015
|
if (At(e2))
|
|
4004
4016
|
return [];
|
|
4005
4017
|
var o2 = Array.prototype.slice.apply(e2.querySelectorAll(Nt));
|
|
4006
|
-
return t2 &&
|
|
4018
|
+
return t2 && Pt.call(e2, Nt) && o2.unshift(e2), o2.filter(n2);
|
|
4007
4019
|
}(e, t.includeContainer, _t.bind(null, t)), zt(n);
|
|
4008
4020
|
};
|
|
4009
4021
|
function Wt(e, t, n) {
|
|
@@ -4042,14 +4054,14 @@
|
|
|
4042
4054
|
return "number" != typeof e2 ? function(e3) {
|
|
4043
4055
|
return { top: 0, right: 0, bottom: 0, left: 0, ...e3 };
|
|
4044
4056
|
}(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 -
|
|
4057
|
+
}(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);
|
|
4058
|
+
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
4059
|
}
|
|
4048
4060
|
const Ut = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4049
4061
|
function Kt(e) {
|
|
4050
4062
|
const t = Re(e);
|
|
4051
4063
|
let n = parseFloat(t.width) || 0, o2 = parseFloat(t.height) || 0;
|
|
4052
|
-
const i =
|
|
4064
|
+
const i = be(e), r2 = i ? e.offsetWidth : n, a = i ? e.offsetHeight : o2, s = ot(n) !== r2 || ot(o2) !== a;
|
|
4053
4065
|
return s && (n = r2, o2 = a), { width: n, height: o2, $: s };
|
|
4054
4066
|
}
|
|
4055
4067
|
function Gt(e) {
|
|
@@ -4057,7 +4069,7 @@
|
|
|
4057
4069
|
}
|
|
4058
4070
|
function qt(e) {
|
|
4059
4071
|
const t = Gt(e);
|
|
4060
|
-
if (!
|
|
4072
|
+
if (!be(t))
|
|
4061
4073
|
return rt(1);
|
|
4062
4074
|
const n = t.getBoundingClientRect(), { width: o2, height: i, $: r2 } = Kt(t);
|
|
4063
4075
|
let a = (r2 ? ot(n.width) : n.width) / o2, s = (r2 ? ot(n.height) : n.height) / i;
|
|
@@ -4085,7 +4097,7 @@
|
|
|
4085
4097
|
c *= e3.x, l *= e3.y, u *= e3.x, d *= e3.y, c += r3, l += a2, n2 = he(i2), i2 = _e(n2);
|
|
4086
4098
|
}
|
|
4087
4099
|
}
|
|
4088
|
-
return
|
|
4100
|
+
return St({ width: u, height: d, x: c, y: l });
|
|
4089
4101
|
}
|
|
4090
4102
|
function Qt(e, t) {
|
|
4091
4103
|
const n = Be(e).scrollLeft;
|
|
@@ -4124,21 +4136,21 @@
|
|
|
4124
4136
|
}(ge(e));
|
|
4125
4137
|
else if (ve(t))
|
|
4126
4138
|
o2 = function(e2, t2) {
|
|
4127
|
-
const n2 = Xt(e2, true, "fixed" === t2), o3 = n2.top + e2.clientTop, i = n2.left + e2.clientLeft, r2 =
|
|
4139
|
+
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
4140
|
return { width: e2.clientWidth * r2.x, height: e2.clientHeight * r2.y, x: i * r2.x, y: o3 * r2.y };
|
|
4129
4141
|
}(t, n);
|
|
4130
4142
|
else {
|
|
4131
4143
|
const n2 = Yt(e);
|
|
4132
4144
|
o2 = { x: t.x - n2.x, y: t.y - n2.y, width: t.width, height: t.height };
|
|
4133
4145
|
}
|
|
4134
|
-
return
|
|
4146
|
+
return St(o2);
|
|
4135
4147
|
}
|
|
4136
4148
|
function nn(e, t) {
|
|
4137
4149
|
const n = Me(e);
|
|
4138
4150
|
return !(n === t || !ve(n) || Te(n)) && ("fixed" === Re(n).position || nn(n, t));
|
|
4139
4151
|
}
|
|
4140
4152
|
function on(e, t, n) {
|
|
4141
|
-
const o2 =
|
|
4153
|
+
const o2 = be(t), i = ge(t), r2 = "fixed" === n, a = Xt(e, true, r2, t);
|
|
4142
4154
|
let s = { scrollLeft: 0, scrollTop: 0 };
|
|
4143
4155
|
const c = rt(0);
|
|
4144
4156
|
function l() {
|
|
@@ -4158,7 +4170,7 @@
|
|
|
4158
4170
|
return "static" === Re(e).position;
|
|
4159
4171
|
}
|
|
4160
4172
|
function an(e, t) {
|
|
4161
|
-
if (!
|
|
4173
|
+
if (!be(e) || "fixed" === Re(e).position)
|
|
4162
4174
|
return null;
|
|
4163
4175
|
if (t)
|
|
4164
4176
|
return t(e);
|
|
@@ -4169,7 +4181,7 @@
|
|
|
4169
4181
|
const n = he(e);
|
|
4170
4182
|
if (Ee(e))
|
|
4171
4183
|
return n;
|
|
4172
|
-
if (!
|
|
4184
|
+
if (!be(e)) {
|
|
4173
4185
|
let t2 = Me(e);
|
|
4174
4186
|
for (; t2 && !Te(t2); ) {
|
|
4175
4187
|
if (ve(t2) && !rn(t2))
|
|
@@ -4179,11 +4191,11 @@
|
|
|
4179
4191
|
return n;
|
|
4180
4192
|
}
|
|
4181
4193
|
let o2 = an(e, t);
|
|
4182
|
-
for (; o2 &&
|
|
4194
|
+
for (; o2 && Se(o2) && rn(o2); )
|
|
4183
4195
|
o2 = an(o2, t);
|
|
4184
4196
|
return o2 && Te(o2) && rn(o2) && !Oe(o2) ? n : o2 || function(e2) {
|
|
4185
4197
|
let t2 = Me(e2);
|
|
4186
|
-
for (;
|
|
4198
|
+
for (; be(t2) && !Te(t2); ) {
|
|
4187
4199
|
if (Oe(t2))
|
|
4188
4200
|
return t2;
|
|
4189
4201
|
if (Ee(t2))
|
|
@@ -4199,8 +4211,8 @@
|
|
|
4199
4211
|
if (o2 === a || s && r2)
|
|
4200
4212
|
return n;
|
|
4201
4213
|
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)),
|
|
4214
|
+
const u = rt(0), d = be(o2);
|
|
4215
|
+
if ((d || !d && !r2) && (("body" !== me(o2) || xe(a)) && (c = Be(o2)), be(o2))) {
|
|
4204
4216
|
const e2 = Xt(o2);
|
|
4205
4217
|
l = qt(o2), u.x = e2.x + o2.clientLeft, u.y = e2.y + o2.clientTop;
|
|
4206
4218
|
}
|
|
@@ -4332,30 +4344,30 @@
|
|
|
4332
4344
|
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
4345
|
if (null != (n = r2.arrow) && n.alignmentOffset)
|
|
4334
4346
|
return {};
|
|
4335
|
-
const y = ut(i), v = ht(s),
|
|
4336
|
-
const t2 =
|
|
4347
|
+
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) {
|
|
4348
|
+
const t2 = Ct(e2);
|
|
4337
4349
|
return [yt(e2), t2, yt(t2)];
|
|
4338
4350
|
}(s)), x = "none" !== m;
|
|
4339
|
-
!f && x && k.push(...xt(s, h, m,
|
|
4340
|
-
const
|
|
4351
|
+
!f && x && k.push(...xt(s, h, m, w2));
|
|
4352
|
+
const C2 = [s, ...k], S2 = await c.detectOverflow(t, g), N2 = [];
|
|
4341
4353
|
let E2 = (null == (o2 = r2.flip) ? void 0 : o2.overflows) || [];
|
|
4342
|
-
if (u && N2.push(
|
|
4354
|
+
if (u && N2.push(S2[y]), d) {
|
|
4343
4355
|
const e2 = function(e3, t2, n2) {
|
|
4344
4356
|
void 0 === n2 && (n2 = false);
|
|
4345
4357
|
const o3 = dt(e3), i2 = gt(e3), r3 = pt(i2);
|
|
4346
4358
|
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(
|
|
4359
|
+
return t2.reference[r3] > t2.floating[r3] && (a2 = Ct(a2)), [a2, Ct(a2)];
|
|
4360
|
+
}(i, a, w2);
|
|
4361
|
+
N2.push(S2[e2[0]], S2[e2[1]]);
|
|
4350
4362
|
}
|
|
4351
4363
|
if (E2 = [...E2, { placement: i, overflows: N2 }], !N2.every((e2) => e2 <= 0)) {
|
|
4352
|
-
var
|
|
4353
|
-
const e2 = ((null == (
|
|
4364
|
+
var P2, I2;
|
|
4365
|
+
const e2 = ((null == (P2 = r2.flip) ? void 0 : P2.index) || 0) + 1, t2 = C2[e2];
|
|
4354
4366
|
if (t2) {
|
|
4355
4367
|
if (!("alignment" === d && v !== ht(t2)) || E2.every((e3) => ht(e3.placement) !== v || e3.overflows[0] > 0))
|
|
4356
4368
|
return { data: { index: e2, overflows: E2 }, reset: { placement: t2 } };
|
|
4357
4369
|
}
|
|
4358
|
-
let n2 = null == (
|
|
4370
|
+
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
4371
|
if (!n2)
|
|
4360
4372
|
switch (p) {
|
|
4361
4373
|
case "bestFit": {
|
|
@@ -4385,8 +4397,8 @@
|
|
|
4385
4397
|
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
4398
|
for (let n3 = 0; n3 < s.length; n3++) {
|
|
4387
4399
|
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], ...
|
|
4400
|
+
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 } });
|
|
4401
|
+
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
4402
|
}
|
|
4391
4403
|
return { x: u, y: d, placement: f, strategy: i2, middlewareData: p };
|
|
4392
4404
|
})(e, t, { ...i, platform: r2 });
|
|
@@ -4433,13 +4445,13 @@
|
|
|
4433
4445
|
const n = yn(e);
|
|
4434
4446
|
return Math.round(t * n) / n;
|
|
4435
4447
|
}
|
|
4436
|
-
function
|
|
4448
|
+
function bn(e) {
|
|
4437
4449
|
const t = o__namespace.useRef(e);
|
|
4438
4450
|
return hn(() => {
|
|
4439
4451
|
t.current = e;
|
|
4440
4452
|
}), t;
|
|
4441
4453
|
}
|
|
4442
|
-
const
|
|
4454
|
+
const wn = (e, t) => ({ ...fn(e), options: [e, t] }), kn = (e, t) => ({ ...pn(e), options: [e, t] });
|
|
4443
4455
|
function xn(e) {
|
|
4444
4456
|
return o__namespace.useMemo(() => e.every((e2) => null == e2) ? null : (t) => {
|
|
4445
4457
|
e.forEach((e2) => {
|
|
@@ -4447,13 +4459,13 @@
|
|
|
4447
4459
|
});
|
|
4448
4460
|
}, e);
|
|
4449
4461
|
}
|
|
4450
|
-
const
|
|
4462
|
+
const Cn = { ...o__namespace }, Sn = Cn.useInsertionEffect || ((e) => e());
|
|
4451
4463
|
function Nn(e) {
|
|
4452
4464
|
const t = o__namespace.useRef(() => {
|
|
4453
4465
|
if ("production" !== process.env.NODE_ENV)
|
|
4454
4466
|
throw new Error("Cannot call an event handler while rendering.");
|
|
4455
4467
|
});
|
|
4456
|
-
return
|
|
4468
|
+
return Sn(() => {
|
|
4457
4469
|
t.current = e;
|
|
4458
4470
|
}), o__namespace.useCallback(function() {
|
|
4459
4471
|
for (var e2 = arguments.length, n = new Array(e2), o2 = 0; o2 < e2; o2++)
|
|
@@ -4461,7 +4473,7 @@
|
|
|
4461
4473
|
return null == t.current ? void 0 : t.current(...n);
|
|
4462
4474
|
}, []);
|
|
4463
4475
|
}
|
|
4464
|
-
const En = "ArrowUp",
|
|
4476
|
+
const En = "ArrowUp", Pn = "ArrowDown", In = "ArrowLeft", An = "ArrowRight";
|
|
4465
4477
|
function On(e, t, n) {
|
|
4466
4478
|
return Math.floor(e / t) !== n;
|
|
4467
4479
|
}
|
|
@@ -4570,7 +4582,7 @@
|
|
|
4570
4582
|
}
|
|
4571
4583
|
let Vn = false, Un = 0;
|
|
4572
4584
|
const Kn = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + Un++;
|
|
4573
|
-
const Gn =
|
|
4585
|
+
const Gn = Cn.useId || function() {
|
|
4574
4586
|
const [e, t] = o__namespace.useState(() => Vn ? Kn() : void 0);
|
|
4575
4587
|
return $n(() => {
|
|
4576
4588
|
null == e && t(Kn());
|
|
@@ -4691,13 +4703,13 @@
|
|
|
4691
4703
|
return go(e.concat(Array.from(o2.querySelectorAll("[aria-live]"))), o2, t, n);
|
|
4692
4704
|
}
|
|
4693
4705
|
const vo = () => ({ getShadowRoot: true, displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none" });
|
|
4694
|
-
function
|
|
4706
|
+
function bo(e, t) {
|
|
4695
4707
|
const n = Ht(e, vo());
|
|
4696
4708
|
"prev" === t && n.reverse();
|
|
4697
4709
|
const o2 = n.indexOf(je(Je(e)));
|
|
4698
4710
|
return n.slice(o2 + 1)[0];
|
|
4699
4711
|
}
|
|
4700
|
-
function
|
|
4712
|
+
function wo(e, t) {
|
|
4701
4713
|
const n = t || e.currentTarget, o2 = e.relatedTarget;
|
|
4702
4714
|
return !o2 || !ze(n, o2);
|
|
4703
4715
|
}
|
|
@@ -4705,45 +4717,45 @@
|
|
|
4705
4717
|
function xo(e) {
|
|
4706
4718
|
"Tab" === e.key && (e.target, clearTimeout(void 0));
|
|
4707
4719
|
}
|
|
4708
|
-
const
|
|
4720
|
+
const Co = o__namespace.forwardRef(function(e, t) {
|
|
4709
4721
|
const [n, i] = o__namespace.useState();
|
|
4710
4722
|
$n(() => (Ke() && i("button"), document.addEventListener("keydown", xo), () => {
|
|
4711
4723
|
document.removeEventListener("keydown", xo);
|
|
4712
4724
|
}), []);
|
|
4713
4725
|
const r2 = { ref: t, tabIndex: 0, role: n, "aria-hidden": !n || void 0, [oo("focus-guard")]: "", style: ko };
|
|
4714
4726
|
return o__namespace.createElement("span", Wn({}, e, r2));
|
|
4715
|
-
}),
|
|
4727
|
+
}), So = o__namespace.createContext(null), No = "data-floating-ui-focusable";
|
|
4716
4728
|
function Eo(e) {
|
|
4717
4729
|
return e ? e.hasAttribute(No) ? e : e.querySelector("[" + No + "]") || e : null;
|
|
4718
4730
|
}
|
|
4719
|
-
let
|
|
4720
|
-
function
|
|
4721
|
-
|
|
4731
|
+
let Po = [];
|
|
4732
|
+
function Io(e) {
|
|
4733
|
+
Po = Po.filter((e2) => e2.isConnected);
|
|
4722
4734
|
let t = e;
|
|
4723
4735
|
if (t && "body" !== me(t)) {
|
|
4724
4736
|
if (!function(e2, t2) {
|
|
4725
4737
|
if (t2 = t2 || {}, !e2)
|
|
4726
4738
|
throw new Error("No node provided");
|
|
4727
|
-
return false !==
|
|
4739
|
+
return false !== Pt.call(e2, Nt) && _t(t2, e2);
|
|
4728
4740
|
}(t, vo())) {
|
|
4729
4741
|
const e2 = Ht(t, vo())[0];
|
|
4730
4742
|
e2 && (t = e2);
|
|
4731
4743
|
}
|
|
4732
|
-
|
|
4744
|
+
Po.push(t), Po.length > 20 && (Po = Po.slice(-20));
|
|
4733
4745
|
}
|
|
4734
4746
|
}
|
|
4735
4747
|
function Ao() {
|
|
4736
|
-
return
|
|
4748
|
+
return Po.slice().reverse().find((e) => e.isConnected);
|
|
4737
4749
|
}
|
|
4738
4750
|
const Oo = o__namespace.forwardRef(function(e, t) {
|
|
4739
4751
|
return o__namespace.createElement("button", Wn({}, e, { type: "button", ref: t, tabIndex: -1, style: ko }));
|
|
4740
4752
|
});
|
|
4741
4753
|
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:
|
|
4754
|
+
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
4755
|
return void 0 === e2 && (e2 = M2), e2 ? Ht(e2, vo()) : [];
|
|
4744
4756
|
}), $2 = Nn((e2) => {
|
|
4745
4757
|
const t2 = F(e2);
|
|
4746
|
-
return N2.current.map((e3) =>
|
|
4758
|
+
return N2.current.map((e3) => w2 && "reference" === e3 ? w2 : M2 && "floating" === e3 ? M2 : t2).filter(Boolean).flat();
|
|
4747
4759
|
});
|
|
4748
4760
|
function _2(e2) {
|
|
4749
4761
|
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 +4767,16 @@
|
|
|
4755
4767
|
return;
|
|
4756
4768
|
function e2(e3) {
|
|
4757
4769
|
if ("Tab" === e3.key) {
|
|
4758
|
-
ze(M2, je(Je(M2))) && 0 === F().length && !
|
|
4770
|
+
ze(M2, je(Je(M2))) && 0 === F().length && !C2 && Ze(e3);
|
|
4759
4771
|
const t3 = $2(), n2 = Xe(e3);
|
|
4760
|
-
"reference" === N2.current[0] && n2 ===
|
|
4772
|
+
"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
4773
|
}
|
|
4762
4774
|
}
|
|
4763
4775
|
const t2 = Je(M2);
|
|
4764
4776
|
return t2.addEventListener("keydown", e2), () => {
|
|
4765
4777
|
t2.removeEventListener("keydown", e2);
|
|
4766
4778
|
};
|
|
4767
|
-
}, [i,
|
|
4779
|
+
}, [i, w2, M2, u, N2, C2, F, $2]), o__namespace.useEffect(() => {
|
|
4768
4780
|
if (!i && k)
|
|
4769
4781
|
return k.addEventListener("focusin", e2), () => {
|
|
4770
4782
|
k.removeEventListener("focusin", e2);
|
|
@@ -4775,8 +4787,8 @@
|
|
|
4775
4787
|
}
|
|
4776
4788
|
}, [i, k, F]), o__namespace.useEffect(() => {
|
|
4777
4789
|
if (!i && f)
|
|
4778
|
-
return k &&
|
|
4779
|
-
|
|
4790
|
+
return k && be(w2) ? (w2.addEventListener("focusout", t2), w2.addEventListener("pointerdown", e2), k.addEventListener("focusout", t2), () => {
|
|
4791
|
+
w2.removeEventListener("focusout", t2), w2.removeEventListener("pointerdown", e2), k.removeEventListener("focusout", t2);
|
|
4780
4792
|
}) : void 0;
|
|
4781
4793
|
function e2() {
|
|
4782
4794
|
T2.current = true, setTimeout(() => {
|
|
@@ -4786,7 +4798,7 @@
|
|
|
4786
4798
|
function t2(e3) {
|
|
4787
4799
|
const t3 = e3.relatedTarget;
|
|
4788
4800
|
queueMicrotask(() => {
|
|
4789
|
-
const n2 = !(ze(
|
|
4801
|
+
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
4802
|
var n3, o2;
|
|
4791
4803
|
return ze(null == (n3 = e4.context) ? void 0 : n3.elements.floating, t3) || ze(null == (o2 = e4.context) ? void 0 : o2.elements.domReference, t3);
|
|
4792
4804
|
}) || function(e4, t4) {
|
|
@@ -4797,31 +4809,31 @@
|
|
|
4797
4809
|
i2 = null == t5 ? void 0 : t5.parentId, t5 && (o2 = o2.concat(t5));
|
|
4798
4810
|
}
|
|
4799
4811
|
return o2;
|
|
4800
|
-
}(
|
|
4812
|
+
}(I2.nodesRef.current, h).find((e4) => {
|
|
4801
4813
|
var n3, o2;
|
|
4802
4814
|
return (null == (n3 = e4.context) ? void 0 : n3.elements.floating) === t3 || (null == (o2 = e4.context) ? void 0 : o2.elements.domReference) === t3;
|
|
4803
4815
|
})));
|
|
4804
4816
|
if (l && n2 && je(Je(M2)) === Je(M2).body) {
|
|
4805
|
-
|
|
4817
|
+
be(M2) && M2.focus();
|
|
4806
4818
|
const e4 = R2.current, t4 = F(), n3 = t4[e4] || t4[t4.length - 1] || M2;
|
|
4807
|
-
|
|
4819
|
+
be(n3) && n3.focus();
|
|
4808
4820
|
}
|
|
4809
|
-
!
|
|
4821
|
+
!C2 && u || !t3 || !n2 || T2.current || t3 === Ao() || (D2.current = true, g(false, e3, "focus-out"));
|
|
4810
4822
|
});
|
|
4811
4823
|
}
|
|
4812
|
-
}, [i,
|
|
4824
|
+
}, [i, w2, k, M2, u, h, I2, A, g, f, l, F, C2]), o__namespace.useEffect(() => {
|
|
4813
4825
|
var e2;
|
|
4814
4826
|
if (i)
|
|
4815
4827
|
return;
|
|
4816
4828
|
const t2 = Array.from((null == A || null == (e2 = A.portalNode) ? void 0 : e2.querySelectorAll("[" + oo("portal") + "]")) || []);
|
|
4817
4829
|
if (k) {
|
|
4818
|
-
const e3 = [k, ...t2, O.current, L2.current, N2.current.includes("reference") ||
|
|
4830
|
+
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
4831
|
return () => {
|
|
4820
4832
|
n2();
|
|
4821
4833
|
};
|
|
4822
4834
|
}
|
|
4823
|
-
}, [i,
|
|
4824
|
-
if (i || !
|
|
4835
|
+
}, [i, w2, k, u, N2, A, C2, S2]), $n(() => {
|
|
4836
|
+
if (i || !be(M2))
|
|
4825
4837
|
return;
|
|
4826
4838
|
const e2 = je(Je(M2));
|
|
4827
4839
|
queueMicrotask(() => {
|
|
@@ -4836,23 +4848,23 @@
|
|
|
4836
4848
|
let o2 = v.current.openEvent;
|
|
4837
4849
|
function r3(t3) {
|
|
4838
4850
|
let { open: n3, reason: i2, event: r4, nested: a3 } = t3;
|
|
4839
|
-
n3 && (o2 = r4), "escape-key" === i2 && m.domReference.current &&
|
|
4851
|
+
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
4852
|
}
|
|
4841
|
-
|
|
4853
|
+
Io(n2), y.on("openchange", r3);
|
|
4842
4854
|
const a2 = t2.createElement("span");
|
|
4843
|
-
return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 &&
|
|
4855
|
+
return a2.setAttribute("tabindex", "-1"), a2.setAttribute("aria-hidden", "true"), Object.assign(a2.style, ko), B2 && w2 && w2.insertAdjacentElement("afterend", a2), () => {
|
|
4844
4856
|
y.off("openchange", r3);
|
|
4845
|
-
const n3 = je(t2), i2 = ze(k, n3) ||
|
|
4857
|
+
const n3 = je(t2), i2 = ze(k, n3) || I2 && lo(I2.nodesRef.current, h).some((e3) => {
|
|
4846
4858
|
var t3;
|
|
4847
4859
|
return ze(null == (t3 = e3.context) ? void 0 : t3.elements.floating, n3);
|
|
4848
4860
|
});
|
|
4849
|
-
(i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current &&
|
|
4850
|
-
const s2 = "boolean" == typeof
|
|
4861
|
+
(i2 || o2 && ["click", "mousedown"].includes(o2.type)) && m.domReference.current && Io(m.domReference.current);
|
|
4862
|
+
const s2 = "boolean" == typeof P2.current ? Ao() || a2 : P2.current.current || a2;
|
|
4851
4863
|
queueMicrotask(() => {
|
|
4852
|
-
|
|
4864
|
+
P2.current && !D2.current && be(s2) && (s2 === n3 || n3 === t2.body || i2) && s2.focus({ preventScroll: e2 }), a2.remove();
|
|
4853
4865
|
});
|
|
4854
4866
|
};
|
|
4855
|
-
}, [i, k, M2,
|
|
4867
|
+
}, [i, k, M2, P2, v, m, y, I2, h, B2, w2]), o__namespace.useEffect(() => {
|
|
4856
4868
|
queueMicrotask(() => {
|
|
4857
4869
|
D2.current = false;
|
|
4858
4870
|
});
|
|
@@ -4880,25 +4892,25 @@
|
|
|
4880
4892
|
t2.disconnect();
|
|
4881
4893
|
};
|
|
4882
4894
|
}, [i, k, M2, m, N2, F, x]);
|
|
4883
|
-
const j2 = !i &&
|
|
4884
|
-
return o__namespace.createElement(o__namespace.Fragment, null, j2 && o__namespace.createElement(
|
|
4895
|
+
const j2 = !i && S2 && (!u || !C2) && (B2 || u);
|
|
4896
|
+
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
4897
|
if (u) {
|
|
4886
4898
|
const e3 = $2();
|
|
4887
4899
|
co("reference" === r2[0] ? e3[0] : e3[e3.length - 1]);
|
|
4888
4900
|
} else if (null != A && A.preserveTabOrder && A.portalNode)
|
|
4889
|
-
if (D2.current = false,
|
|
4890
|
-
const e3 =
|
|
4901
|
+
if (D2.current = false, wo(e2, A.portalNode)) {
|
|
4902
|
+
const e3 = bo(document.body, "next") || w2;
|
|
4891
4903
|
null == e3 || e3.focus();
|
|
4892
4904
|
} else {
|
|
4893
4905
|
var t2;
|
|
4894
4906
|
null == (t2 = A.beforeOutsideRef.current) || t2.focus();
|
|
4895
4907
|
}
|
|
4896
|
-
} }), !
|
|
4908
|
+
} }), !C2 && _2("start"), n, _2("end"), j2 && o__namespace.createElement(Co, { "data-type": "inside", ref: null == A ? void 0 : A.afterInsideRef, onFocus: (e2) => {
|
|
4897
4909
|
if (u)
|
|
4898
4910
|
co($2()[0]);
|
|
4899
4911
|
else if (null != A && A.preserveTabOrder && A.portalNode)
|
|
4900
|
-
if (f && (D2.current = true),
|
|
4901
|
-
const e3 =
|
|
4912
|
+
if (f && (D2.current = true), wo(e2, A.portalNode)) {
|
|
4913
|
+
const e3 = bo(document.body, "prev") || w2;
|
|
4902
4914
|
null == e3 || e3.focus();
|
|
4903
4915
|
} else {
|
|
4904
4916
|
var t2;
|
|
@@ -4907,7 +4919,7 @@
|
|
|
4907
4919
|
} }));
|
|
4908
4920
|
}
|
|
4909
4921
|
function Do(e) {
|
|
4910
|
-
return
|
|
4922
|
+
return be(e.target) && "BUTTON" === e.target.tagName;
|
|
4911
4923
|
}
|
|
4912
4924
|
function To(e) {
|
|
4913
4925
|
return Qe(e);
|
|
@@ -4943,17 +4955,17 @@
|
|
|
4943
4955
|
void 0 === e2 && (e2 = {});
|
|
4944
4956
|
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
4957
|
gn(p2, i2) || m2(i2);
|
|
4946
|
-
const [h2, g2] = o__namespace.useState(null), [y2, v2] = o__namespace.useState(null),
|
|
4947
|
-
e3 !==
|
|
4958
|
+
const [h2, g2] = o__namespace.useState(null), [y2, v2] = o__namespace.useState(null), w2 = o__namespace.useCallback((e3) => {
|
|
4959
|
+
e3 !== S2.current && (S2.current = e3, g2(e3));
|
|
4948
4960
|
}, []), k = o__namespace.useCallback((e3) => {
|
|
4949
4961
|
e3 !== N2.current && (N2.current = e3, v2(e3));
|
|
4950
|
-
}, []), x = a2 || h2,
|
|
4951
|
-
if (!
|
|
4962
|
+
}, []), 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(() => {
|
|
4963
|
+
if (!S2.current || !N2.current)
|
|
4952
4964
|
return;
|
|
4953
4965
|
const e3 = { placement: t2, strategy: n2, middleware: p2 };
|
|
4954
|
-
A.current && (e3.platform = A.current), mn(
|
|
4966
|
+
A.current && (e3.platform = A.current), mn(S2.current, N2.current, e3).then((e4) => {
|
|
4955
4967
|
const t3 = { ...e4, isPositioned: false !== O.current };
|
|
4956
|
-
D2.current && !gn(E2.current, t3) && (E2.current = t3,
|
|
4968
|
+
D2.current && !gn(E2.current, t3) && (E2.current = t3, w__namespace.flushSync(() => {
|
|
4957
4969
|
f2(t3);
|
|
4958
4970
|
}));
|
|
4959
4971
|
});
|
|
@@ -4965,13 +4977,13 @@
|
|
|
4965
4977
|
hn(() => (D2.current = true, () => {
|
|
4966
4978
|
D2.current = false;
|
|
4967
4979
|
}), []), hn(() => {
|
|
4968
|
-
if (x && (
|
|
4969
|
-
if (
|
|
4970
|
-
return
|
|
4980
|
+
if (x && (S2.current = x), C2 && (N2.current = C2), x && C2) {
|
|
4981
|
+
if (I2.current)
|
|
4982
|
+
return I2.current(x, C2, L2);
|
|
4971
4983
|
L2();
|
|
4972
4984
|
}
|
|
4973
|
-
}, [x,
|
|
4974
|
-
const T2 = o__namespace.useMemo(() => ({ reference:
|
|
4985
|
+
}, [x, C2, L2, I2, P2]);
|
|
4986
|
+
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
4987
|
const e3 = { position: n2, left: 0, top: 0 };
|
|
4976
4988
|
if (!R2.floating)
|
|
4977
4989
|
return e3;
|
|
@@ -5024,21 +5036,21 @@
|
|
|
5024
5036
|
}
|
|
5025
5037
|
}
|
|
5026
5038
|
function Vo(e, t) {
|
|
5027
|
-
return Wo(t, e === En || e ===
|
|
5039
|
+
return Wo(t, e === En || e === Pn, e === In || e === An);
|
|
5028
5040
|
}
|
|
5029
5041
|
function Uo(e, t, n) {
|
|
5030
|
-
return Wo(t, e ===
|
|
5042
|
+
return Wo(t, e === Pn, n ? e === In : e === An) || "Enter" === e || " " === e || "" === e;
|
|
5031
5043
|
}
|
|
5032
5044
|
function Ko(e, t, n) {
|
|
5033
|
-
return Wo(t, n ? e === An : e ===
|
|
5045
|
+
return Wo(t, n ? e === An : e === In, e === En);
|
|
5034
5046
|
}
|
|
5035
5047
|
function Go(e, t) {
|
|
5036
5048
|
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)),
|
|
5049
|
+
}, 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;
|
|
5050
|
+
"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".'));
|
|
5051
|
+
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
5052
|
function o2(e3) {
|
|
5041
|
-
h ? (U2(e3.id), null ==
|
|
5053
|
+
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
5054
|
}
|
|
5043
5055
|
void 0 === n2 && (n2 = false);
|
|
5044
5056
|
const i2 = e2.current[t2.current];
|
|
@@ -5071,27 +5083,27 @@
|
|
|
5071
5083
|
}
|
|
5072
5084
|
e2++;
|
|
5073
5085
|
} else
|
|
5074
|
-
D2.current = null == T2.current || Uo(T2.current,
|
|
5086
|
+
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
5087
|
};
|
|
5076
5088
|
t2();
|
|
5077
5089
|
}
|
|
5078
5090
|
} else
|
|
5079
5091
|
Ln(a, s) || (D2.current = s, q2(a, D2, _2.current), _2.current = false);
|
|
5080
|
-
}, [l, n, r2.floating, s, W2, p, a,
|
|
5092
|
+
}, [l, n, r2.floating, s, W2, p, a, w2, m, A, q2, j2]), $n(() => {
|
|
5081
5093
|
var e2;
|
|
5082
|
-
if (!l || r2.floating || !
|
|
5094
|
+
if (!l || r2.floating || !I2 || h || !M2.current)
|
|
5083
5095
|
return;
|
|
5084
|
-
const t2 =
|
|
5096
|
+
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
5097
|
n2 && !i2 && R2.current && n2.focus({ preventScroll: true });
|
|
5086
|
-
}, [l, r2.floating,
|
|
5087
|
-
if (l &&
|
|
5088
|
-
return
|
|
5089
|
-
|
|
5098
|
+
}, [l, r2.floating, I2, P2, h]), $n(() => {
|
|
5099
|
+
if (l && I2 && h && !P2)
|
|
5100
|
+
return I2.events.on("virtualfocus", e2), () => {
|
|
5101
|
+
I2.events.off("virtualfocus", e2);
|
|
5090
5102
|
};
|
|
5091
5103
|
function e2(e3) {
|
|
5092
|
-
G2(e3.id),
|
|
5104
|
+
G2(e3.id), C2 && (C2.current = e3);
|
|
5093
5105
|
}
|
|
5094
|
-
}, [l,
|
|
5106
|
+
}, [l, I2, h, P2, C2]), $n(() => {
|
|
5095
5107
|
B2.current = A, M2.current = !!r2.floating;
|
|
5096
5108
|
}), $n(() => {
|
|
5097
5109
|
n || (T2.current = null);
|
|
@@ -5123,11 +5135,11 @@
|
|
|
5123
5135
|
return;
|
|
5124
5136
|
if (!z2.current && e2.currentTarget === E2.current)
|
|
5125
5137
|
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,
|
|
5138
|
+
if (p && Ko(e2.key, w2, m))
|
|
5139
|
+
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()));
|
|
5140
|
+
const t2 = D2.current, o2 = Dn(a, b), s2 = Tn(a, b);
|
|
5129
5141
|
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 =
|
|
5142
|
+
const t3 = S2 || Array.from({ length: a.current.length }, () => ({ width: 1, height: 1 })), n2 = function(e3, t4, n3) {
|
|
5131
5143
|
const o3 = [];
|
|
5132
5144
|
let i3 = 0;
|
|
5133
5145
|
return e3.forEach((e4, r4) => {
|
|
@@ -5145,7 +5157,7 @@
|
|
|
5145
5157
|
}), c3 = true) : i3++;
|
|
5146
5158
|
}
|
|
5147
5159
|
}), [...o3];
|
|
5148
|
-
}(t3, k, N2), i2 = n2.findIndex((e3) => null != e3 && !Fn(a.current, e3,
|
|
5160
|
+
}(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
5161
|
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
5162
|
if (n3.key === En) {
|
|
5151
5163
|
if (d2 && Ze(n3), -1 === u2)
|
|
@@ -5156,43 +5168,43 @@
|
|
|
5156
5168
|
}
|
|
5157
5169
|
Ln(e3, f2) && (f2 = u2);
|
|
5158
5170
|
}
|
|
5159
|
-
if (n3.key ===
|
|
5171
|
+
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
5172
|
const t5 = it(u2 / a2);
|
|
5161
|
-
n3.key === (r4 ?
|
|
5173
|
+
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
5174
|
const o4 = it(l2 / a2) === t5;
|
|
5163
|
-
Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An :
|
|
5175
|
+
Ln(e3, f2) && (f2 = i3 && o4 ? n3.key === (r4 ? An : In) ? l2 : Rn(e3, { startingIndex: u2 - u2 % a2 - 1, disabledIndices: s3 }) : u2);
|
|
5164
5176
|
}
|
|
5165
5177
|
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" ===
|
|
5178
|
+
}({ 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 })];
|
|
5179
|
+
if (null != c2 && (D2.current = c2, A(D2.current)), "both" === w2)
|
|
5168
5180
|
return;
|
|
5169
5181
|
}
|
|
5170
|
-
if (Vo(e2.key,
|
|
5182
|
+
if (Vo(e2.key, w2)) {
|
|
5171
5183
|
if (Ze(e2), n && !h && je(e2.currentTarget.ownerDocument) === e2.currentTarget)
|
|
5172
|
-
return D2.current = Uo(e2.key,
|
|
5173
|
-
Uo(e2.key,
|
|
5184
|
+
return D2.current = Uo(e2.key, w2, m) ? o2 : s2, void A(D2.current);
|
|
5185
|
+
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
5186
|
}
|
|
5175
|
-
}), Q2 = o__namespace.useMemo(() => h && n && J2 && { "aria-activedescendant": K2 || V2 }, [h, n, J2, K2, V2]), Z2 = o__namespace.useMemo(() => ({ "aria-orientation": "both" ===
|
|
5187
|
+
}), 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
5188
|
R2.current = true;
|
|
5177
|
-
} }), [Q2, X2, r2.domReference,
|
|
5189
|
+
} }), [Q2, X2, r2.domReference, w2]), ee2 = o__namespace.useMemo(() => {
|
|
5178
5190
|
function e2(e3) {
|
|
5179
5191
|
"auto" === g && Ve(e3.nativeEvent) && (L2.current = true);
|
|
5180
5192
|
}
|
|
5181
5193
|
return { ...Q2, onKeyDown(e3) {
|
|
5182
5194
|
R2.current = false;
|
|
5183
5195
|
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,
|
|
5196
|
+
return Wo(t3, n2 ? e4 === In : e4 === An, e4 === Pn);
|
|
5197
|
+
}(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
5198
|
if (h && n) {
|
|
5187
|
-
const t3 = null ==
|
|
5199
|
+
const t3 = null == I2 ? void 0 : I2.nodesRef.current.find((e4) => null == e4.parentId), n2 = I2 && t3 ? function(e4, t4) {
|
|
5188
5200
|
let n3, o3 = -1;
|
|
5189
5201
|
return function t5(i2, r4) {
|
|
5190
5202
|
r4 > o3 && (n3 = i2, o3 = r4), lo(e4, i2).forEach((e5) => {
|
|
5191
5203
|
t5(e5.id, r4 + 1);
|
|
5192
5204
|
});
|
|
5193
5205
|
}(t4, 0), e4.find((e5) => e5.id === n3);
|
|
5194
|
-
}(
|
|
5195
|
-
if (r3 && n2 &&
|
|
5206
|
+
}(I2.nodesRef.current, t3.id) : null;
|
|
5207
|
+
if (r3 && n2 && C2) {
|
|
5196
5208
|
const t4 = new KeyboardEvent("keydown", { key: e3.key, bubbles: true });
|
|
5197
5209
|
if (s2 || c2) {
|
|
5198
5210
|
var f2, g2;
|
|
@@ -5213,7 +5225,7 @@
|
|
|
5213
5225
|
}, onPointerDown: function(e3) {
|
|
5214
5226
|
L2.current = g, "auto" === g && Ue(e3.nativeEvent) && (L2.current = true);
|
|
5215
5227
|
}, onMouseDown: e2, onClick: e2 };
|
|
5216
|
-
}, [V2, Q2, X2, j2, g, a, p, A, i, n, v,
|
|
5228
|
+
}, [V2, Q2, X2, j2, g, a, p, A, i, n, v, w2, m, u, I2, h, C2]);
|
|
5217
5229
|
return o__namespace.useMemo(() => l ? { reference: ee2, floating: Z2, item: Y2 } : {}, [l, ee2, Z2, Y2]);
|
|
5218
5230
|
}
|
|
5219
5231
|
const qo = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", false]]);
|
|
@@ -5239,40 +5251,40 @@
|
|
|
5239
5251
|
}
|
|
5240
5252
|
if (clearTimeout(i), !d.domReference || !d.floating || null == u || null == n2 || null == l2)
|
|
5241
5253
|
return;
|
|
5242
|
-
const { clientX: g, clientY: y } = e3, v = [g, y],
|
|
5254
|
+
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
5255
|
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, !
|
|
5256
|
+
}(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;
|
|
5257
|
+
if (k && (r2 = true, !w2))
|
|
5246
5258
|
return;
|
|
5247
|
-
if (x && (r2 = false), x && !
|
|
5259
|
+
if (x && (r2 = false), x && !w2)
|
|
5248
5260
|
return void (r2 = true);
|
|
5249
|
-
if (
|
|
5261
|
+
if (w2 && ve(e3.relatedTarget) && ze(d.floating, e3.relatedTarget))
|
|
5250
5262
|
return;
|
|
5251
5263
|
if (m && lo(m.nodesRef.current, p).some((e4) => {
|
|
5252
5264
|
let { context: t2 } = e4;
|
|
5253
5265
|
return null == t2 ? void 0 : t2.open;
|
|
5254
5266
|
}))
|
|
5255
5267
|
return;
|
|
5256
|
-
if ("top" === N2 && l2 >=
|
|
5268
|
+
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
5269
|
return h();
|
|
5258
5270
|
let B2 = [];
|
|
5259
5271
|
switch (N2) {
|
|
5260
5272
|
case "top":
|
|
5261
|
-
B2 = [[L2,
|
|
5273
|
+
B2 = [[L2, C2.top + 1], [L2, S2.bottom - 1], [D2, S2.bottom - 1], [D2, C2.top + 1]];
|
|
5262
5274
|
break;
|
|
5263
5275
|
case "bottom":
|
|
5264
|
-
B2 = [[L2,
|
|
5276
|
+
B2 = [[L2, S2.top + 1], [L2, C2.bottom - 1], [D2, C2.bottom - 1], [D2, S2.top + 1]];
|
|
5265
5277
|
break;
|
|
5266
5278
|
case "left":
|
|
5267
|
-
B2 = [[
|
|
5279
|
+
B2 = [[S2.right - 1, R2], [S2.right - 1, T2], [C2.left + 1, T2], [C2.left + 1, R2]];
|
|
5268
5280
|
break;
|
|
5269
5281
|
case "right":
|
|
5270
|
-
B2 = [[
|
|
5282
|
+
B2 = [[C2.right - 1, R2], [C2.right - 1, T2], [S2.left + 1, T2], [S2.left + 1, R2]];
|
|
5271
5283
|
}
|
|
5272
5284
|
if (!Jo([g, y], B2)) {
|
|
5273
|
-
if (r2 && !
|
|
5285
|
+
if (r2 && !I2)
|
|
5274
5286
|
return h();
|
|
5275
|
-
if (!
|
|
5287
|
+
if (!w2 && o2) {
|
|
5276
5288
|
const t2 = function(e4, t3) {
|
|
5277
5289
|
const n3 = performance.now(), o3 = n3 - c;
|
|
5278
5290
|
if (null === a || null === s || 0 === o3)
|
|
@@ -5287,15 +5299,15 @@
|
|
|
5287
5299
|
let [n3, o3] = e4;
|
|
5288
5300
|
switch (N2) {
|
|
5289
5301
|
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], ...[[
|
|
5302
|
+
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
5303
|
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], ...[[
|
|
5304
|
+
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
5305
|
case "left": {
|
|
5294
|
-
const e5 = [n3 + t + 1, O ? o3 + t / 2 :
|
|
5295
|
-
return [...[[
|
|
5306
|
+
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];
|
|
5307
|
+
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
5308
|
}
|
|
5297
5309
|
case "right":
|
|
5298
|
-
return [[n3 - t, O ? o3 + t / 2 :
|
|
5310
|
+
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
5311
|
}
|
|
5300
5312
|
}([n2, l2])) ? !r2 && o2 && (i = window.setTimeout(h, 40)) : h();
|
|
5301
5313
|
}
|
|
@@ -5320,7 +5332,7 @@
|
|
|
5320
5332
|
});
|
|
5321
5333
|
Qo.displayName = "DropdownMenuItem";
|
|
5322
5334
|
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), [
|
|
5335
|
+
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
5336
|
const e = Gn(), t = eo(), n2 = Zn();
|
|
5325
5337
|
return $n(() => {
|
|
5326
5338
|
const o2 = { id: e, parentId: n2 };
|
|
@@ -5328,12 +5340,12 @@
|
|
|
5328
5340
|
null == t || t.removeNode(o2);
|
|
5329
5341
|
};
|
|
5330
5342
|
}, [t, e, n2]), e;
|
|
5331
|
-
}(), A = Zn(), O = Hn(), L2 = null != A, { floatingStyles: D2, refs: T2, context: R2 } = $o({ nodeId:
|
|
5343
|
+
}(), 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
5344
|
var B2, M2;
|
|
5333
5345
|
const F = function(e, t) {
|
|
5334
5346
|
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),
|
|
5347
|
+
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(() => {
|
|
5348
|
+
}), E2 = o__namespace.useRef(false), P3 = o__namespace.useCallback(() => {
|
|
5337
5349
|
var e2;
|
|
5338
5350
|
const t2 = null == (e2 = r3.current.openEvent) ? void 0 : e2.type;
|
|
5339
5351
|
return (null == t2 ? void 0 : t2.includes("mouse")) && "mousedown" !== t2;
|
|
@@ -5345,7 +5357,7 @@
|
|
|
5345
5357
|
};
|
|
5346
5358
|
function e2(e3) {
|
|
5347
5359
|
let { open: t2 } = e3;
|
|
5348
|
-
t2 || (clearTimeout(
|
|
5360
|
+
t2 || (clearTimeout(w3.current), clearTimeout(x2.current), C3.current = true, E2.current = false);
|
|
5349
5361
|
}
|
|
5350
5362
|
}, [c, a2]), o__namespace.useEffect(() => {
|
|
5351
5363
|
if (!c)
|
|
@@ -5355,23 +5367,23 @@
|
|
|
5355
5367
|
if (!n2)
|
|
5356
5368
|
return;
|
|
5357
5369
|
function e2(e3) {
|
|
5358
|
-
|
|
5370
|
+
P3() && i2(false, e3, "hover");
|
|
5359
5371
|
}
|
|
5360
5372
|
const t2 = Je(s2.floating).documentElement;
|
|
5361
5373
|
return t2.addEventListener("mouseleave", e2), () => {
|
|
5362
5374
|
t2.removeEventListener("mouseleave", e2);
|
|
5363
5375
|
};
|
|
5364
|
-
}, [s2.floating, n2, i2, c, g2,
|
|
5365
|
-
const
|
|
5376
|
+
}, [s2.floating, n2, i2, c, g2, P3]);
|
|
5377
|
+
const I3 = o__namespace.useCallback(function(e2, t2, n3) {
|
|
5366
5378
|
void 0 === t2 && (t2 = true), void 0 === n3 && (n3 = "hover");
|
|
5367
|
-
const o2 = ao(y2.current, "close",
|
|
5368
|
-
o2 && !k2.current ? (clearTimeout(
|
|
5379
|
+
const o2 = ao(y2.current, "close", b2.current);
|
|
5380
|
+
o2 && !k2.current ? (clearTimeout(w3.current), w3.current = window.setTimeout(() => i2(false, e2, n3), o2)) : t2 && (clearTimeout(w3.current), i2(false, e2, n3));
|
|
5369
5381
|
}, [y2, i2]), A2 = Nn(() => {
|
|
5370
5382
|
N3.current(), k2.current = void 0;
|
|
5371
5383
|
}), O2 = Nn(() => {
|
|
5372
|
-
if (
|
|
5384
|
+
if (S3.current) {
|
|
5373
5385
|
const e2 = Je(s2.floating).body;
|
|
5374
|
-
e2.style.pointerEvents = "", e2.removeAttribute(ro),
|
|
5386
|
+
e2.style.pointerEvents = "", e2.removeAttribute(ro), S3.current = false;
|
|
5375
5387
|
}
|
|
5376
5388
|
}), L3 = Nn(() => !!r3.current.openEvent && ["click", "mousedown"].includes(r3.current.openEvent.type));
|
|
5377
5389
|
o__namespace.useEffect(() => {
|
|
@@ -5384,10 +5396,10 @@
|
|
|
5384
5396
|
};
|
|
5385
5397
|
}
|
|
5386
5398
|
function t2(e3) {
|
|
5387
|
-
if (clearTimeout(
|
|
5399
|
+
if (clearTimeout(w3.current), C3.current = false, d && !qe(b2.current) || f > 0 && !ao(y2.current, "open"))
|
|
5388
5400
|
return;
|
|
5389
|
-
const t3 = ao(y2.current, "open",
|
|
5390
|
-
t3 ?
|
|
5401
|
+
const t3 = ao(y2.current, "open", b2.current);
|
|
5402
|
+
t3 ? w3.current = window.setTimeout(() => {
|
|
5391
5403
|
v2.current || i2(true, e3, "hover");
|
|
5392
5404
|
}, t3) : n2 || i2(true, e3, "hover");
|
|
5393
5405
|
}
|
|
@@ -5397,25 +5409,25 @@
|
|
|
5397
5409
|
N3.current();
|
|
5398
5410
|
const t3 = Je(s2.floating);
|
|
5399
5411
|
if (clearTimeout(x2.current), E2.current = false, g2.current && r3.current.floatingContext) {
|
|
5400
|
-
n2 || clearTimeout(
|
|
5401
|
-
O2(), A2(), L3() ||
|
|
5412
|
+
n2 || clearTimeout(w3.current), k2.current = g2.current({ ...r3.current.floatingContext, tree: m2, x: e3.clientX, y: e3.clientY, onClose() {
|
|
5413
|
+
O2(), A2(), L3() || I3(e3, true, "safe-polygon");
|
|
5402
5414
|
} });
|
|
5403
5415
|
const o3 = k2.current;
|
|
5404
5416
|
return t3.addEventListener("mousemove", o3), void (N3.current = () => {
|
|
5405
5417
|
t3.removeEventListener("mousemove", o3);
|
|
5406
5418
|
});
|
|
5407
5419
|
}
|
|
5408
|
-
("touch" !==
|
|
5420
|
+
("touch" !== b2.current || !ze(s2.floating, e3.relatedTarget)) && I3(e3);
|
|
5409
5421
|
}
|
|
5410
5422
|
function a3(e3) {
|
|
5411
5423
|
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() ||
|
|
5424
|
+
O2(), A2(), L3() || I3(e3);
|
|
5413
5425
|
} })(e3));
|
|
5414
5426
|
}
|
|
5415
|
-
}, [s2, c, e, d, f, p2,
|
|
5427
|
+
}, [s2, c, e, d, f, p2, I3, A2, O2, i2, n2, v2, m2, y2, g2, r3, L3]), $n(() => {
|
|
5416
5428
|
var e2;
|
|
5417
|
-
if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents &&
|
|
5418
|
-
|
|
5429
|
+
if (c && n2 && null != (e2 = g2.current) && e2.__options.blockPointerEvents && P3()) {
|
|
5430
|
+
S3.current = true;
|
|
5419
5431
|
const e3 = s2.floating;
|
|
5420
5432
|
if (ve(s2.domReference) && e3) {
|
|
5421
5433
|
var t2;
|
|
@@ -5427,27 +5439,27 @@
|
|
|
5427
5439
|
};
|
|
5428
5440
|
}
|
|
5429
5441
|
}
|
|
5430
|
-
}, [c, n2, h2, s2, m2, g2,
|
|
5431
|
-
n2 || (
|
|
5442
|
+
}, [c, n2, h2, s2, m2, g2, P3]), $n(() => {
|
|
5443
|
+
n2 || (b2.current = void 0, E2.current = false, A2(), O2());
|
|
5432
5444
|
}, [n2, A2, O2]), o__namespace.useEffect(() => () => {
|
|
5433
|
-
A2(), clearTimeout(
|
|
5445
|
+
A2(), clearTimeout(w3.current), clearTimeout(x2.current), O2();
|
|
5434
5446
|
}, [c, s2.domReference, A2, O2]);
|
|
5435
5447
|
const D3 = o__namespace.useMemo(() => {
|
|
5436
5448
|
function e2(e3) {
|
|
5437
|
-
|
|
5449
|
+
b2.current = e3.pointerType;
|
|
5438
5450
|
}
|
|
5439
5451
|
return { onPointerDown: e2, onPointerEnter: e2, onMouseMove(e3) {
|
|
5440
5452
|
const { nativeEvent: t2 } = e3;
|
|
5441
5453
|
function o2() {
|
|
5442
|
-
|
|
5454
|
+
C3.current || v2.current || i2(true, t2, "hover");
|
|
5443
5455
|
}
|
|
5444
|
-
d && !qe(
|
|
5456
|
+
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
5457
|
} };
|
|
5446
5458
|
}, [d, i2, n2, v2, f]), T3 = o__namespace.useMemo(() => ({ onMouseEnter() {
|
|
5447
|
-
clearTimeout(
|
|
5459
|
+
clearTimeout(w3.current);
|
|
5448
5460
|
}, onMouseLeave(e2) {
|
|
5449
|
-
L3() ||
|
|
5450
|
-
} }), [
|
|
5461
|
+
L3() || I3(e2.nativeEvent, false);
|
|
5462
|
+
} }), [I3, L3]);
|
|
5451
5463
|
return o__namespace.useMemo(() => c ? { reference: D3, floating: T3 } : {}, [c, D3, T3]);
|
|
5452
5464
|
}(R2, { enabled: L2, delay: { open: 75 }, handleClose: Yo({ blockPointerEvents: true }) }), _2 = function(e, t) {
|
|
5453
5465
|
void 0 === t && (t = {});
|
|
@@ -5485,7 +5497,7 @@
|
|
|
5485
5497
|
return o__namespace.useMemo(() => a2 ? { reference: d, floating: f, item: p2 } : {}, [a2, d, f, p2]);
|
|
5486
5498
|
}(R2, { role: "menu" }), z2 = function(e, t) {
|
|
5487
5499
|
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,
|
|
5500
|
+
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
5501
|
var t2;
|
|
5490
5502
|
if (!n2 || !s2 || !c || "Escape" !== e2.key)
|
|
5491
5503
|
return;
|
|
@@ -5503,19 +5515,19 @@
|
|
|
5503
5515
|
i2(false, function(e3) {
|
|
5504
5516
|
return "nativeEvent" in e3;
|
|
5505
5517
|
}(e2) ? e2.nativeEvent : e2, "escape-key");
|
|
5506
|
-
}),
|
|
5518
|
+
}), P3 = Nn((e2) => {
|
|
5507
5519
|
var t2;
|
|
5508
5520
|
const n3 = () => {
|
|
5509
5521
|
var t3;
|
|
5510
5522
|
E2(e2), null == (t3 = Xe(e2)) || t3.removeEventListener("keydown", n3);
|
|
5511
5523
|
};
|
|
5512
5524
|
null == (t2 = Xe(e2)) || t2.addEventListener("keydown", n3);
|
|
5513
|
-
}),
|
|
5525
|
+
}), I3 = Nn((e2) => {
|
|
5514
5526
|
var t2;
|
|
5515
|
-
const n3 =
|
|
5516
|
-
|
|
5517
|
-
const o2 =
|
|
5518
|
-
if (
|
|
5527
|
+
const n3 = b2.current;
|
|
5528
|
+
b2.current = false;
|
|
5529
|
+
const o2 = w3.current;
|
|
5530
|
+
if (w3.current = false, "click" === u && o2)
|
|
5519
5531
|
return;
|
|
5520
5532
|
if (n3)
|
|
5521
5533
|
return;
|
|
@@ -5531,7 +5543,7 @@
|
|
|
5531
5543
|
}
|
|
5532
5544
|
if (l2.length && ve(s3) && !s3.matches("html,body") && !ze(s3, r3.floating) && Array.from(l2).every((e3) => !ze(d2, e3)))
|
|
5533
5545
|
return;
|
|
5534
|
-
if (
|
|
5546
|
+
if (be(s3) && L3) {
|
|
5535
5547
|
const t3 = s3.clientWidth > 0 && s3.scrollWidth > s3.clientWidth, n4 = s3.clientHeight > 0 && s3.scrollHeight > s3.clientHeight;
|
|
5536
5548
|
let o3 = n4 && e2.offsetX > s3.clientWidth;
|
|
5537
5549
|
if (n4 && "rtl" === Re(s3).direction && (o3 = e2.offsetX <= s3.offsetWidth - s3.clientWidth), o3 || t3 && e2.offsetY > s3.clientHeight)
|
|
@@ -5557,7 +5569,7 @@
|
|
|
5557
5569
|
var t2;
|
|
5558
5570
|
const n3 = () => {
|
|
5559
5571
|
var t3;
|
|
5560
|
-
|
|
5572
|
+
I3(e2), null == (t3 = Xe(e2)) || t3.removeEventListener(u, n3);
|
|
5561
5573
|
};
|
|
5562
5574
|
null == (t2 = Xe(e2)) || t2.addEventListener(u, n3);
|
|
5563
5575
|
});
|
|
@@ -5578,7 +5590,7 @@
|
|
|
5578
5590
|
}, Le() ? 5 : 0);
|
|
5579
5591
|
}
|
|
5580
5592
|
const d2 = Je(r3.floating);
|
|
5581
|
-
c && (d2.addEventListener("keydown",
|
|
5593
|
+
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
5594
|
let f2 = [];
|
|
5583
5595
|
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
5596
|
var t3;
|
|
@@ -5586,47 +5598,47 @@
|
|
|
5586
5598
|
}), f2.forEach((e3) => {
|
|
5587
5599
|
e3.addEventListener("scroll", t2, { passive: true });
|
|
5588
5600
|
}), () => {
|
|
5589
|
-
c && (d2.removeEventListener("keydown",
|
|
5601
|
+
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
5602
|
e3.removeEventListener("scroll", t2);
|
|
5591
5603
|
}), window.clearTimeout(e2);
|
|
5592
5604
|
};
|
|
5593
|
-
}, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2,
|
|
5594
|
-
|
|
5605
|
+
}, [a2, r3, c, v2, u, n2, i2, p2, s2, k2, x2, E2, C3, P3, I3, S3, A2]), o__namespace.useEffect(() => {
|
|
5606
|
+
b2.current = false;
|
|
5595
5607
|
}, [v2, u]);
|
|
5596
5608
|
const O2 = o__namespace.useMemo(() => ({ onKeyDown: E2, [Ro[f]]: (e2) => {
|
|
5597
5609
|
d && i2(false, e2.nativeEvent, "reference-press");
|
|
5598
5610
|
} }), [E2, i2, d, f]), L3 = o__namespace.useMemo(() => ({ onKeyDown: E2, onMouseDown() {
|
|
5599
|
-
|
|
5611
|
+
w3.current = true;
|
|
5600
5612
|
}, onMouseUp() {
|
|
5601
|
-
|
|
5613
|
+
w3.current = true;
|
|
5602
5614
|
}, [Bo[u]]: () => {
|
|
5603
|
-
|
|
5615
|
+
b2.current = true;
|
|
5604
5616
|
} }), [E2, u]);
|
|
5605
5617
|
return o__namespace.useMemo(() => s2 ? { reference: O2, floating: L3 } : {}, [s2, O2, L3]);
|
|
5606
|
-
}(R2, { bubbles: true }), H2 = Go(R2, { listRef:
|
|
5618
|
+
}(R2, { bubbles: true }), H2 = Go(R2, { listRef: C2, activeIndex: k, nested: L2, onNavigate: x }), { getReferenceProps: W2, getFloatingProps: V2, getItemProps: U2 } = function(e) {
|
|
5607
5619
|
void 0 === e && (e = []);
|
|
5608
5620
|
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
5621
|
return o__namespace.useMemo(() => ({ getReferenceProps: r3, getFloatingProps: a2, getItemProps: s2 }), [r3, a2, s2]);
|
|
5610
5622
|
}([F, _2, j2, z2, H2]);
|
|
5611
5623
|
o.useEffect(() => {
|
|
5612
|
-
if (
|
|
5613
|
-
return
|
|
5614
|
-
|
|
5624
|
+
if (P2)
|
|
5625
|
+
return P2.events.on("click", e), P2.events.on("menuopen", t), () => {
|
|
5626
|
+
P2.events.off("click", e), P2.events.off("menuopen", t);
|
|
5615
5627
|
};
|
|
5616
5628
|
function e() {
|
|
5617
5629
|
v(false);
|
|
5618
5630
|
}
|
|
5619
5631
|
function t(e2) {
|
|
5620
|
-
e2.nodeId !==
|
|
5632
|
+
e2.nodeId !== I2 && e2.parentId === A && v(false);
|
|
5621
5633
|
}
|
|
5622
|
-
}, [
|
|
5623
|
-
y &&
|
|
5624
|
-
}, [
|
|
5625
|
-
const K2 = { activeIndex: k, setActiveIndex: x, getItemProps: U2, setHasFocusInside:
|
|
5626
|
-
return jsxRuntime.jsxs(to, { id:
|
|
5634
|
+
}, [P2, I2, A]), o.useEffect(() => {
|
|
5635
|
+
y && P2 && P2.events.emit("menuopen", { parentId: A, nodeId: I2 });
|
|
5636
|
+
}, [P2, y, I2, A]);
|
|
5637
|
+
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;
|
|
5638
|
+
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
5639
|
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:
|
|
5640
|
+
(_a2 = h.onFocus) == null ? void 0 : _a2.call(h, e), w2(false), N2.setHasFocusInside(true);
|
|
5641
|
+
}, ...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
5642
|
});
|
|
5631
5643
|
Zo.displayName = "DropdownMenu";
|
|
5632
5644
|
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 +5663,17 @@
|
|
|
5651
5663
|
function vi(e) {
|
|
5652
5664
|
return e instanceof yi(e).Element || e instanceof Element;
|
|
5653
5665
|
}
|
|
5654
|
-
function
|
|
5666
|
+
function bi(e) {
|
|
5655
5667
|
return e instanceof yi(e).HTMLElement || e instanceof HTMLElement;
|
|
5656
5668
|
}
|
|
5657
|
-
function
|
|
5669
|
+
function wi(e) {
|
|
5658
5670
|
return "undefined" != typeof ShadowRoot && (e instanceof yi(e).ShadowRoot || e instanceof ShadowRoot);
|
|
5659
5671
|
}
|
|
5660
5672
|
var ki = { name: "applyStyles", enabled: true, phase: "write", fn: function(e) {
|
|
5661
5673
|
var t = e.state;
|
|
5662
5674
|
Object.keys(t.elements).forEach(function(e2) {
|
|
5663
5675
|
var n = t.styles[e2] || {}, o2 = t.attributes[e2] || {}, i = t.elements[e2];
|
|
5664
|
-
|
|
5676
|
+
bi(i) && gi(i) && (Object.assign(i.style, n), Object.keys(o2).forEach(function(e3) {
|
|
5665
5677
|
var t2 = o2[e3];
|
|
5666
5678
|
false === t2 ? i.removeAttribute(e3) : i.setAttribute(e3, true === t2 ? "" : t2);
|
|
5667
5679
|
}));
|
|
@@ -5673,7 +5685,7 @@
|
|
|
5673
5685
|
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
5686
|
return e3[t2] = "", e3;
|
|
5675
5687
|
}, {});
|
|
5676
|
-
|
|
5688
|
+
bi(o2) && gi(o2) && (Object.assign(o2.style, r2), Object.keys(i).forEach(function(e3) {
|
|
5677
5689
|
o2.removeAttribute(e3);
|
|
5678
5690
|
}));
|
|
5679
5691
|
});
|
|
@@ -5682,32 +5694,32 @@
|
|
|
5682
5694
|
function xi(e) {
|
|
5683
5695
|
return e.split("-")[0];
|
|
5684
5696
|
}
|
|
5685
|
-
var
|
|
5697
|
+
var Ci = Math.max, Si = Math.min, Ni = Math.round;
|
|
5686
5698
|
function Ei() {
|
|
5687
5699
|
var e = navigator.userAgentData;
|
|
5688
5700
|
return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e2) {
|
|
5689
5701
|
return e2.brand + "/" + e2.version;
|
|
5690
5702
|
}).join(" ") : navigator.userAgent;
|
|
5691
5703
|
}
|
|
5692
|
-
function
|
|
5704
|
+
function Pi() {
|
|
5693
5705
|
return !/^((?!chrome|android).)*safari/i.test(Ei());
|
|
5694
5706
|
}
|
|
5695
|
-
function
|
|
5707
|
+
function Ii(e, t, n) {
|
|
5696
5708
|
void 0 === t && (t = false), void 0 === n && (n = false);
|
|
5697
5709
|
var o2 = e.getBoundingClientRect(), i = 1, r2 = 1;
|
|
5698
|
-
t &&
|
|
5699
|
-
var a = (vi(e) ? yi(e) : window).visualViewport, s = !
|
|
5710
|
+
t && bi(e) && (i = e.offsetWidth > 0 && Ni(o2.width) / e.offsetWidth || 1, r2 = e.offsetHeight > 0 && Ni(o2.height) / e.offsetHeight || 1);
|
|
5711
|
+
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
5712
|
return { width: u, height: d, top: l, right: c + u, bottom: l + d, left: c, x: c, y: l };
|
|
5701
5713
|
}
|
|
5702
5714
|
function Ai(e) {
|
|
5703
|
-
var t =
|
|
5715
|
+
var t = Ii(e), n = e.offsetWidth, o2 = e.offsetHeight;
|
|
5704
5716
|
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
5717
|
}
|
|
5706
5718
|
function Oi(e, t) {
|
|
5707
5719
|
var n = t.getRootNode && t.getRootNode();
|
|
5708
5720
|
if (e.contains(t))
|
|
5709
5721
|
return true;
|
|
5710
|
-
if (n &&
|
|
5722
|
+
if (n && wi(n)) {
|
|
5711
5723
|
var o2 = t;
|
|
5712
5724
|
do {
|
|
5713
5725
|
if (o2 && e.isSameNode(o2))
|
|
@@ -5727,20 +5739,20 @@
|
|
|
5727
5739
|
return ((vi(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
5728
5740
|
}
|
|
5729
5741
|
function Ri(e) {
|
|
5730
|
-
return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (
|
|
5742
|
+
return "html" === gi(e) ? e : e.assignedSlot || e.parentNode || (wi(e) ? e.host : null) || Ti(e);
|
|
5731
5743
|
}
|
|
5732
5744
|
function Bi(e) {
|
|
5733
|
-
return
|
|
5745
|
+
return bi(e) && "fixed" !== Li(e).position ? e.offsetParent : null;
|
|
5734
5746
|
}
|
|
5735
5747
|
function Mi(e) {
|
|
5736
5748
|
for (var t = yi(e), n = Bi(e); n && Di(n) && "static" === Li(n).position; )
|
|
5737
5749
|
n = Bi(n);
|
|
5738
5750
|
return n && ("html" === gi(n) || "body" === gi(n) && "static" === Li(n).position) ? t : n || function(e2) {
|
|
5739
5751
|
var t2 = /firefox/i.test(Ei());
|
|
5740
|
-
if (/Trident/i.test(Ei()) &&
|
|
5752
|
+
if (/Trident/i.test(Ei()) && bi(e2) && "fixed" === Li(e2).position)
|
|
5741
5753
|
return null;
|
|
5742
5754
|
var n2 = Ri(e2);
|
|
5743
|
-
for (
|
|
5755
|
+
for (wi(n2) && (n2 = n2.host); bi(n2) && ["html", "body"].indexOf(gi(n2)) < 0; ) {
|
|
5744
5756
|
var o2 = Li(n2);
|
|
5745
5757
|
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
5758
|
return n2;
|
|
@@ -5753,7 +5765,7 @@
|
|
|
5753
5765
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
5754
5766
|
}
|
|
5755
5767
|
function $i(e, t, n) {
|
|
5756
|
-
return
|
|
5768
|
+
return Ci(e, Si(t, n));
|
|
5757
5769
|
}
|
|
5758
5770
|
function _i(e) {
|
|
5759
5771
|
return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e);
|
|
@@ -5768,8 +5780,8 @@
|
|
|
5768
5780
|
if (r2 && a) {
|
|
5769
5781
|
var u = function(e2, t2) {
|
|
5770
5782
|
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 = {})[
|
|
5783
|
+
}(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;
|
|
5784
|
+
n.modifiersData[o2] = ((t = {})[C2] = x, t.centerOffset = x - k, t);
|
|
5773
5785
|
}
|
|
5774
5786
|
}, effect: function(e) {
|
|
5775
5787
|
var t = e.state, n = e.options.element, o2 = void 0 === n ? "[data-popper-arrow]" : n;
|
|
@@ -5782,19 +5794,19 @@
|
|
|
5782
5794
|
function Vi(e) {
|
|
5783
5795
|
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
5796
|
p = g.x, h = g.y;
|
|
5785
|
-
var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"),
|
|
5797
|
+
var y = a.hasOwnProperty("x"), v = a.hasOwnProperty("y"), b = ai, w2 = oi, k = window;
|
|
5786
5798
|
if (l) {
|
|
5787
|
-
var x = Mi(n),
|
|
5788
|
-
if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (
|
|
5789
|
-
|
|
5799
|
+
var x = Mi(n), C2 = "clientHeight", S2 = "clientWidth";
|
|
5800
|
+
if (x === yi(n) && "static" !== Li(x = Ti(n)).position && "absolute" === s && (C2 = "scrollHeight", S2 = "scrollWidth"), i === oi || (i === ai || i === ri) && r2 === ui)
|
|
5801
|
+
w2 = ii, h -= (d && x === k && k.visualViewport ? k.visualViewport.height : x[C2]) - o2.height, h *= c ? 1 : -1;
|
|
5790
5802
|
if (i === ai || (i === oi || i === ii) && r2 === ui)
|
|
5791
|
-
|
|
5803
|
+
b = ri, p -= (d && x === k && k.visualViewport ? k.visualViewport.width : x[S2]) - o2.width, p *= c ? 1 : -1;
|
|
5792
5804
|
}
|
|
5793
|
-
var N2, E2 = Object.assign({ position: s }, l && Wi),
|
|
5805
|
+
var N2, E2 = Object.assign({ position: s }, l && Wi), P2 = true === u ? function(e2, t2) {
|
|
5794
5806
|
var n2 = e2.x, o3 = e2.y, i2 = t2.devicePixelRatio || 1;
|
|
5795
5807
|
return { x: Ni(n2 * i2) / i2 || 0, y: Ni(o3 * i2) / i2 || 0 };
|
|
5796
5808
|
}({ x: p, y: h }, yi(n)) : { x: p, y: h };
|
|
5797
|
-
return p =
|
|
5809
|
+
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
5810
|
}
|
|
5799
5811
|
var Ui = { passive: true };
|
|
5800
5812
|
var Ki = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
@@ -5814,14 +5826,14 @@
|
|
|
5814
5826
|
return { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
|
|
5815
5827
|
}
|
|
5816
5828
|
function Xi(e) {
|
|
5817
|
-
return
|
|
5829
|
+
return Ii(Ti(e)).left + Yi(e).scrollLeft;
|
|
5818
5830
|
}
|
|
5819
5831
|
function Qi(e) {
|
|
5820
5832
|
var t = Li(e), n = t.overflow, o2 = t.overflowX, i = t.overflowY;
|
|
5821
5833
|
return /auto|scroll|overlay|hidden/.test(n + i + o2);
|
|
5822
5834
|
}
|
|
5823
5835
|
function Zi(e) {
|
|
5824
|
-
return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body :
|
|
5836
|
+
return ["html", "body", "#document"].indexOf(gi(e)) >= 0 ? e.ownerDocument.body : bi(e) && Qi(e) ? e : Zi(Ri(e));
|
|
5825
5837
|
}
|
|
5826
5838
|
function er(e, t) {
|
|
5827
5839
|
var n;
|
|
@@ -5837,27 +5849,27 @@
|
|
|
5837
5849
|
var n2 = yi(e2), o2 = Ti(e2), i = n2.visualViewport, r2 = o2.clientWidth, a = o2.clientHeight, s = 0, c = 0;
|
|
5838
5850
|
if (i) {
|
|
5839
5851
|
r2 = i.width, a = i.height;
|
|
5840
|
-
var l =
|
|
5852
|
+
var l = Pi();
|
|
5841
5853
|
(l || !l && "fixed" === t2) && (s = i.offsetLeft, c = i.offsetTop);
|
|
5842
5854
|
}
|
|
5843
5855
|
return { width: r2, height: a, x: s + Xi(e2), y: c };
|
|
5844
5856
|
}(e, n)) : vi(t) ? function(e2, t2) {
|
|
5845
|
-
var n2 =
|
|
5857
|
+
var n2 = Ii(e2, false, "fixed" === t2);
|
|
5846
5858
|
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
5859
|
}(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 +=
|
|
5860
|
+
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;
|
|
5861
|
+
return "rtl" === Li(i || n2).direction && (s += Ci(n2.clientWidth, i ? i.clientWidth : 0) - r2), { width: r2, height: a, x: s, y: c };
|
|
5850
5862
|
}(Ti(e)));
|
|
5851
5863
|
}
|
|
5852
5864
|
function or(e, t, n, o2) {
|
|
5853
5865
|
var i = "clippingParents" === t ? function(e2) {
|
|
5854
|
-
var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 &&
|
|
5866
|
+
var t2 = er(Ri(e2)), n2 = ["absolute", "fixed"].indexOf(Li(e2).position) >= 0 && bi(e2) ? Mi(e2) : e2;
|
|
5855
5867
|
return vi(n2) ? t2.filter(function(e3) {
|
|
5856
5868
|
return vi(e3) && Oi(e3, n2) && "body" !== gi(e3);
|
|
5857
5869
|
}) : [];
|
|
5858
5870
|
}(e) : [].concat(t), r2 = [].concat(i, [n]), a = r2[0], s = r2.reduce(function(t2, n2) {
|
|
5859
5871
|
var i2 = nr(e, n2, o2);
|
|
5860
|
-
return t2.top =
|
|
5872
|
+
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
5873
|
}, nr(e, a, o2));
|
|
5862
5874
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
5863
5875
|
}
|
|
@@ -5894,12 +5906,12 @@
|
|
|
5894
5906
|
}
|
|
5895
5907
|
function rr(e, t) {
|
|
5896
5908
|
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
|
|
5909
|
+
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;
|
|
5910
|
+
if (f === fi && P2) {
|
|
5911
|
+
var I2 = P2[i];
|
|
5900
5912
|
Object.keys(E2).forEach(function(e2) {
|
|
5901
5913
|
var t2 = [ri, ii].indexOf(e2) >= 0 ? 1 : -1, n2 = [oi, ii].indexOf(e2) >= 0 ? "y" : "x";
|
|
5902
|
-
E2[e2] +=
|
|
5914
|
+
E2[e2] += I2[n2] * t2;
|
|
5903
5915
|
});
|
|
5904
5916
|
}
|
|
5905
5917
|
return E2;
|
|
@@ -5927,23 +5939,23 @@
|
|
|
5927
5939
|
return [];
|
|
5928
5940
|
var t2 = Gi(e2);
|
|
5929
5941
|
return [Ji(e2), t2, Ji(t2)];
|
|
5930
|
-
}(g)),
|
|
5942
|
+
}(g)), b = [g].concat(v).reduce(function(e2, n2) {
|
|
5931
5943
|
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
|
-
|
|
5944
|
+
}, []), w2 = t.rects.reference, k = t.rects.popper, x = /* @__PURE__ */ new Map(), C2 = true, S2 = b[0], N2 = 0; N2 < b.length; N2++) {
|
|
5945
|
+
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;
|
|
5946
|
+
w2[O] > k[O] && (D2 = Gi(D2));
|
|
5935
5947
|
var T2 = Gi(D2), R2 = [];
|
|
5936
|
-
if (r2 && R2.push(L2[
|
|
5948
|
+
if (r2 && R2.push(L2[P2] <= 0), s && R2.push(L2[D2] <= 0, L2[T2] <= 0), R2.every(function(e2) {
|
|
5937
5949
|
return e2;
|
|
5938
5950
|
})) {
|
|
5939
|
-
|
|
5951
|
+
S2 = E2, C2 = false;
|
|
5940
5952
|
break;
|
|
5941
5953
|
}
|
|
5942
5954
|
x.set(E2, R2);
|
|
5943
5955
|
}
|
|
5944
|
-
if (
|
|
5956
|
+
if (C2)
|
|
5945
5957
|
for (var B2 = function(e2) {
|
|
5946
|
-
var t2 =
|
|
5958
|
+
var t2 = b.find(function(t3) {
|
|
5947
5959
|
var n2 = x.get(t3);
|
|
5948
5960
|
if (n2)
|
|
5949
5961
|
return n2.slice(0, e2).every(function(e3) {
|
|
@@ -5951,12 +5963,12 @@
|
|
|
5951
5963
|
});
|
|
5952
5964
|
});
|
|
5953
5965
|
if (t2)
|
|
5954
|
-
return
|
|
5966
|
+
return S2 = t2, "break";
|
|
5955
5967
|
}, M2 = m ? 3 : 1; M2 > 0; M2--) {
|
|
5956
5968
|
if ("break" === B2(M2))
|
|
5957
5969
|
break;
|
|
5958
5970
|
}
|
|
5959
|
-
t.placement !==
|
|
5971
|
+
t.placement !== S2 && (t.modifiersData[o2]._skip = true, t.placement = S2, t.reset = true);
|
|
5960
5972
|
}
|
|
5961
5973
|
}, requiresIfExists: ["offset"], data: { _skip: false } };
|
|
5962
5974
|
function cr(e, t, n) {
|
|
@@ -5977,29 +5989,29 @@
|
|
|
5977
5989
|
null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[o2] = a;
|
|
5978
5990
|
} };
|
|
5979
5991
|
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),
|
|
5992
|
+
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
5993
|
if (x) {
|
|
5982
5994
|
if (r2) {
|
|
5983
|
-
var A, O = "y" ===
|
|
5984
|
-
x[
|
|
5995
|
+
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);
|
|
5996
|
+
x[w2] = X2, I2[w2] = X2 - T2;
|
|
5985
5997
|
}
|
|
5986
5998
|
if (s) {
|
|
5987
|
-
var Q2, Z2 = "x" ===
|
|
5999
|
+
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
6000
|
var o3 = $i(e2, t2, n2);
|
|
5989
6001
|
return o3 > n2 ? n2 : o3;
|
|
5990
6002
|
}(se2, te2, ce2) : $i(p ? se2 : oe2, te2, p ? ce2 : ie2);
|
|
5991
|
-
x[k] = le2,
|
|
6003
|
+
x[k] = le2, I2[k] = le2 - te2;
|
|
5992
6004
|
}
|
|
5993
|
-
t.modifiersData[o2] =
|
|
6005
|
+
t.modifiersData[o2] = I2;
|
|
5994
6006
|
}
|
|
5995
6007
|
}, requiresIfExists: ["offset"] };
|
|
5996
6008
|
function fr(e, t, n) {
|
|
5997
6009
|
void 0 === n && (n = false);
|
|
5998
|
-
var o2, i, r2 =
|
|
6010
|
+
var o2, i, r2 = bi(t), a = bi(t) && function(e2) {
|
|
5999
6011
|
var t2 = e2.getBoundingClientRect(), n2 = Ni(t2.width) / e2.offsetWidth || 1, o3 = Ni(t2.height) / e2.offsetHeight || 1;
|
|
6000
6012
|
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) &&
|
|
6013
|
+
}(t), s = Ti(t), c = Ii(e, a, n), l = { scrollLeft: 0, scrollTop: 0 }, u = { x: 0, y: 0 };
|
|
6014
|
+
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
6015
|
}
|
|
6004
6016
|
function pr(e) {
|
|
6005
6017
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o2 = [];
|
|
@@ -6116,7 +6128,7 @@
|
|
|
6116
6128
|
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
6129
|
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
6130
|
} }] });
|
|
6119
|
-
var vr = "undefined" != typeof Element,
|
|
6131
|
+
var vr = "undefined" != typeof Element, br = "function" == typeof Map, wr = "function" == typeof Set, kr = "function" == typeof ArrayBuffer && !!ArrayBuffer.isView;
|
|
6120
6132
|
function xr(e, t) {
|
|
6121
6133
|
if (e === t)
|
|
6122
6134
|
return true;
|
|
@@ -6132,7 +6144,7 @@
|
|
|
6132
6144
|
return false;
|
|
6133
6145
|
return true;
|
|
6134
6146
|
}
|
|
6135
|
-
if (
|
|
6147
|
+
if (br && e instanceof Map && t instanceof Map) {
|
|
6136
6148
|
if (e.size !== t.size)
|
|
6137
6149
|
return false;
|
|
6138
6150
|
for (r2 = e.entries(); !(o2 = r2.next()).done; )
|
|
@@ -6143,7 +6155,7 @@
|
|
|
6143
6155
|
return false;
|
|
6144
6156
|
return true;
|
|
6145
6157
|
}
|
|
6146
|
-
if (
|
|
6158
|
+
if (wr && e instanceof Set && t instanceof Set) {
|
|
6147
6159
|
if (e.size !== t.size)
|
|
6148
6160
|
return false;
|
|
6149
6161
|
for (r2 = e.entries(); !(o2 = r2.next()).done; )
|
|
@@ -6179,7 +6191,7 @@
|
|
|
6179
6191
|
}
|
|
6180
6192
|
return e != e && t != t;
|
|
6181
6193
|
}
|
|
6182
|
-
var
|
|
6194
|
+
var Cr = function(e, t) {
|
|
6183
6195
|
try {
|
|
6184
6196
|
return xr(e, t);
|
|
6185
6197
|
} catch (e2) {
|
|
@@ -6188,12 +6200,12 @@
|
|
|
6188
6200
|
throw e2;
|
|
6189
6201
|
}
|
|
6190
6202
|
};
|
|
6191
|
-
|
|
6203
|
+
C(Cr);
|
|
6192
6204
|
function Er({ className: t, variant: n = "default", size: o2 = "16", src: i, alt: r2, ...a }) {
|
|
6193
6205
|
const s = E("io-image-icon", "grayscale" === n && [`io-image-icon-${n}`], o2 && [`io-image-icon-${o2}`], t);
|
|
6194
6206
|
return jsxRuntime.jsx("img", { className: s, style: { width: `${o2}px`, filter: "grayscale" === n ? "grayscale(100%)" : "none" }, src: i, alt: r2, ...a });
|
|
6195
6207
|
}
|
|
6196
|
-
const
|
|
6208
|
+
const Pr = o.forwardRef((n, o$1) => {
|
|
6197
6209
|
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
6210
|
var _a2;
|
|
6199
6211
|
(_a2 = m.current[e]) == null ? void 0 : _a2.focus(), y(e);
|
|
@@ -6202,11 +6214,11 @@
|
|
|
6202
6214
|
var _a2;
|
|
6203
6215
|
(_a2 = m.current[g]) == null ? void 0 : _a2.focus();
|
|
6204
6216
|
}, []), 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(
|
|
6217
|
+
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
6218
|
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
6219
|
})] });
|
|
6208
6220
|
});
|
|
6209
|
-
|
|
6221
|
+
Pr.displayName = "ContextMenuActionsList";
|
|
6210
6222
|
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
6223
|
const { io: t, variant: n, text: o2, error: i } = e, r2 = jr(i);
|
|
6212
6224
|
try {
|
|
@@ -6543,7 +6555,7 @@
|
|
|
6543
6555
|
const i = E("io-panel-header", t);
|
|
6544
6556
|
return jsxRuntime.jsx(se, { className: i, ...o2, children: n });
|
|
6545
6557
|
}
|
|
6546
|
-
Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon =
|
|
6558
|
+
Vs.Title = D, Vs.ButtonGroup = ae, Vs.Button = $, Vs.ButtonIcon = I, Vs.Dropdown = re;
|
|
6547
6559
|
const Us = o.forwardRef(({ className: t, children: n, ...o2 }, i) => {
|
|
6548
6560
|
const r2 = E("io-panel-body", t);
|
|
6549
6561
|
return jsxRuntime.jsx("div", { className: r2, ref: i, "data-testid": "panel-body", ...o2, children: n });
|
|
@@ -6574,7 +6586,7 @@
|
|
|
6574
6586
|
*
|
|
6575
6587
|
* Released under the MIT license.
|
|
6576
6588
|
*/
|
|
6577
|
-
Us.displayName = "PanelBody", Ks.ButtonGroup = ae, Ks.Button = $, Ks.ButtonIcon =
|
|
6589
|
+
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
6590
|
const Ys = (e, t) => {
|
|
6579
6591
|
const { o: n, i: o2, u: i } = e;
|
|
6580
6592
|
let r2, a = n;
|
|
@@ -6583,24 +6595,24 @@
|
|
|
6583
6595
|
return (c || i) && (a = s2, r2 = n2), [a, c, r2];
|
|
6584
6596
|
};
|
|
6585
6597
|
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),
|
|
6598
|
+
}, 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
6599
|
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 (
|
|
6600
|
+
return !!(vc(e) || !yc(e) && n) && (!(t > 0 && bc(e)) || t - 1 in e);
|
|
6601
|
+
}, kc = (e) => !!e && e.constructor === Object, xc = (e) => e instanceof HTMLElement, Cc = (e) => e instanceof Element;
|
|
6602
|
+
function Sc(e, t) {
|
|
6603
|
+
if (wc(e))
|
|
6592
6604
|
for (let n = 0; n < e.length && false !== t(e[n], n, e); n++)
|
|
6593
6605
|
;
|
|
6594
6606
|
else
|
|
6595
|
-
e &&
|
|
6607
|
+
e && Sc(Object.keys(e), (n) => t(e[n], n, e));
|
|
6596
6608
|
return e;
|
|
6597
6609
|
}
|
|
6598
|
-
const Nc = (e, t) => e.indexOf(t) >= 0, Ec = (e, t) => e.concat(t),
|
|
6599
|
-
|
|
6610
|
+
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) => {
|
|
6611
|
+
Sc(e, (e2) => !e2 || e2.apply(void 0, t || [])), n || (e.length = 0);
|
|
6600
6612
|
}, 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
6613
|
if (e && t) {
|
|
6602
6614
|
let o3 = true;
|
|
6603
|
-
return
|
|
6615
|
+
return Sc(n, (n2) => {
|
|
6604
6616
|
e[n2] !== t[n2] && (o3 = false);
|
|
6605
6617
|
}), o3;
|
|
6606
6618
|
}
|
|
@@ -6631,7 +6643,7 @@
|
|
|
6631
6643
|
}, d = (e2) => r2 && c ? r2(c, e2) : e2, f = () => {
|
|
6632
6644
|
s && c && u(d(c) || c);
|
|
6633
6645
|
}, p = function() {
|
|
6634
|
-
const e2 =
|
|
6646
|
+
const e2 = Ic(arguments), t2 = Zc(n);
|
|
6635
6647
|
if (t2) {
|
|
6636
6648
|
const n2 = "function" == typeof i ? i() : i, r3 = Zc(o2), p2 = d(e2) || e2, m = u.bind(0, p2);
|
|
6637
6649
|
s && s(), n2 && !l ? (m(), l = true, s = t2(() => l = void 0)) : (s = t2(m), r3 && !a && (a = r3(f))), c = p2;
|
|
@@ -6641,8 +6653,8 @@
|
|
|
6641
6653
|
return p.O = f, p;
|
|
6642
6654
|
}, tl = (e, t) => Object.prototype.hasOwnProperty.call(e, t), nl = (e) => e ? Object.keys(e) : [], ol = (e, t, n, o2, i, r2, a) => {
|
|
6643
6655
|
const s = [t, n, o2, i, r2, a];
|
|
6644
|
-
return "object" == typeof e && !pc(e) || yc(e) || (e = {}),
|
|
6645
|
-
|
|
6656
|
+
return "object" == typeof e && !pc(e) || yc(e) || (e = {}), Sc(s, (t2) => {
|
|
6657
|
+
Sc(t2, (n2, o3) => {
|
|
6646
6658
|
const i2 = t2[o3];
|
|
6647
6659
|
if (e === i2)
|
|
6648
6660
|
return true;
|
|
@@ -6655,43 +6667,43 @@
|
|
|
6655
6667
|
e[o3] = r3 ? i2.slice() : i2;
|
|
6656
6668
|
});
|
|
6657
6669
|
}), e;
|
|
6658
|
-
}, il = (e, t) =>
|
|
6670
|
+
}, il = (e, t) => Sc(ol({}, e), (e2, t2, n) => {
|
|
6659
6671
|
void 0 === e2 ? delete n[t2] : e2 && kc(e2) && (n[t2] = il(e2));
|
|
6660
6672
|
}), rl = (e) => !nl(e).length, al = () => {
|
|
6661
6673
|
}, 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
|
-
|
|
6674
|
+
Sc(cl(t), (t2) => {
|
|
6663
6675
|
e && e.setAttribute(t2, String(n || ""));
|
|
6664
6676
|
});
|
|
6665
6677
|
}, fl = (e, t) => {
|
|
6666
|
-
|
|
6678
|
+
Sc(cl(t), (t2) => e && e.removeAttribute(t2));
|
|
6667
6679
|
}, pl = (e, t) => {
|
|
6668
6680
|
const n = cl(ll(e, t)), o2 = Xc(dl, e, t), i = (e2, t2) => {
|
|
6669
6681
|
const o3 = new Set(n);
|
|
6670
|
-
return
|
|
6682
|
+
return Sc(cl(e2), (e3) => {
|
|
6671
6683
|
o3[t2](e3);
|
|
6672
|
-
}),
|
|
6684
|
+
}), Ic(o3).join(" ");
|
|
6673
6685
|
};
|
|
6674
6686
|
return { C: (e2) => o2(i(e2, "delete")), $: (e2) => o2(i(e2, "add")), H: (e2) => {
|
|
6675
6687
|
const t2 = cl(e2);
|
|
6676
6688
|
return t2.reduce((e3, t3) => e3 && n.includes(t3), t2.length > 0);
|
|
6677
6689
|
} };
|
|
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"),
|
|
6690
|
+
}, 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
6691
|
vl(e).C(t);
|
|
6680
|
-
},
|
|
6681
|
-
const n = t ?
|
|
6682
|
-
return n ?
|
|
6683
|
-
}, xl = (e, t) =>
|
|
6692
|
+
}, wl = (e, t) => (vl(e).$(t), Xc(bl, e, t)), kl = (e, t) => {
|
|
6693
|
+
const n = t ? Cc(t) && t : document;
|
|
6694
|
+
return n ? Ic(n.querySelectorAll(e)) : [];
|
|
6695
|
+
}, 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
6696
|
const o2 = El(e, t), i = e && ((e2, t2) => {
|
|
6685
|
-
const n2 = t2 ?
|
|
6697
|
+
const n2 = t2 ? Cc(t2) && t2 : document;
|
|
6686
6698
|
return n2 && n2.querySelector(e2);
|
|
6687
6699
|
})(n, o2), r2 = El(i, t) === o2;
|
|
6688
6700
|
return !(!o2 || !i) && (o2 === e || i === e || r2 && El(El(e, n), t) !== o2);
|
|
6689
6701
|
}, Al = (e) => {
|
|
6690
|
-
|
|
6702
|
+
Sc(Ac(e), (e2) => {
|
|
6691
6703
|
const t = Nl(e2);
|
|
6692
6704
|
e2 && t && t.removeChild(e2);
|
|
6693
6705
|
});
|
|
6694
|
-
}, Ol = (e, t) => Xc(Al, e && t &&
|
|
6706
|
+
}, Ol = (e, t) => Xc(Al, e && t && Sc(Ac(t), (t2) => {
|
|
6695
6707
|
t2 && e.appendChild(t2);
|
|
6696
6708
|
}));
|
|
6697
6709
|
let Ll;
|
|
@@ -6700,13 +6712,13 @@
|
|
|
6700
6712
|
return dl(t, "class", e), t;
|
|
6701
6713
|
}, Tl = (e) => {
|
|
6702
6714
|
const t = Dl(), n = Ll, o2 = e.trim();
|
|
6703
|
-
return t.innerHTML = n ? n.createHTML(o2) : o2,
|
|
6715
|
+
return t.innerHTML = n ? n.createHTML(o2) : o2, Sc(Sl(t), (e2) => Al(e2));
|
|
6704
6716
|
}, Rl = (e, t) => e.getPropertyValue(t) || e[t] || "", Bl = (e) => {
|
|
6705
6717
|
const t = e || 0;
|
|
6706
6718
|
return isFinite(t) ? t : 0;
|
|
6707
6719
|
}, Ml = (e) => Bl(parseFloat(e || "")), Fl = (e) => Math.round(1e4 * e) / 1e4, $l = (e) => `${Fl(Bl(e))}px`;
|
|
6708
6720
|
function _l(e, t) {
|
|
6709
|
-
e && t &&
|
|
6721
|
+
e && t && Sc(t, (t2, n) => {
|
|
6710
6722
|
try {
|
|
6711
6723
|
const o2 = e.style, i = pc(t2) || gc(t2) ? "" : mc(t2) ? $l(t2) : t2;
|
|
6712
6724
|
0 === n.indexOf("--") ? o2.setProperty(n, i) : o2[n] = i;
|
|
@@ -6719,21 +6731,21 @@
|
|
|
6719
6731
|
let i = o2 ? "" : {};
|
|
6720
6732
|
if (e) {
|
|
6721
6733
|
const r2 = Xs.getComputedStyle(e, n) || e.style;
|
|
6722
|
-
i = o2 ? Rl(r2, t) :
|
|
6734
|
+
i = o2 ? Rl(r2, t) : Ic(t).reduce((e2, t2) => (e2[t2] = Rl(r2, t2), e2), i);
|
|
6723
6735
|
}
|
|
6724
6736
|
return i;
|
|
6725
6737
|
}
|
|
6726
6738
|
const zl = (e, t, n) => {
|
|
6727
6739
|
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
6740
|
return { t: Ml(l[r2]), r: Ml(l[a]), b: Ml(l[s]), l: Ml(l[c]) };
|
|
6729
|
-
}, Hl = (e, t) => "translate" + (
|
|
6741
|
+
}, 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
6742
|
const t = parseFloat(jl(e, Hc)) || 0, n = parseFloat(jl(e, Wc)) || 0;
|
|
6731
6743
|
return { w: t - ec(t), h: n - ec(n) };
|
|
6732
6744
|
}, Yl = (e) => e.getBoundingClientRect(), Xl = (e) => !(!e || !e[Wc] && !e[Hc]), Ql = (e, t) => {
|
|
6733
6745
|
const n = Xl(e);
|
|
6734
6746
|
return !Xl(t) && n;
|
|
6735
6747
|
}, Zl = (e, t, n, o2) => {
|
|
6736
|
-
|
|
6748
|
+
Sc(cl(t), (t2) => {
|
|
6737
6749
|
e && e.removeEventListener(t2, n, o2);
|
|
6738
6750
|
});
|
|
6739
6751
|
}, eu = (e, t, n, o2) => {
|
|
@@ -6767,7 +6779,7 @@
|
|
|
6767
6779
|
}, lu = (e) => {
|
|
6768
6780
|
e && e.focus && e.focus({ preventScroll: true, focusVisible: false });
|
|
6769
6781
|
}, uu = (e, t) => {
|
|
6770
|
-
|
|
6782
|
+
Sc(Ac(t), e);
|
|
6771
6783
|
}, du = (e) => {
|
|
6772
6784
|
const t = /* @__PURE__ */ new Map(), n = (e2, n2) => {
|
|
6773
6785
|
if (e2) {
|
|
@@ -6788,13 +6800,13 @@
|
|
|
6788
6800
|
}
|
|
6789
6801
|
gc(i) && i && n();
|
|
6790
6802
|
const r2 = nl(e2), a = [];
|
|
6791
|
-
return
|
|
6803
|
+
return Sc(r2, (t2) => {
|
|
6792
6804
|
const n2 = e2[t2];
|
|
6793
|
-
n2 &&
|
|
6805
|
+
n2 && Pc(a, o2(t2, n2));
|
|
6794
6806
|
}), Xc(Dc, a);
|
|
6795
6807
|
};
|
|
6796
6808
|
return o2(e || {}), [o2, n, (e2, n2) => {
|
|
6797
|
-
|
|
6809
|
+
Sc(Ic(t.get(e2)), (e3) => {
|
|
6798
6810
|
n2 && !Oc(n2) ? e3.apply(0, n2) : e3();
|
|
6799
6811
|
});
|
|
6800
6812
|
}];
|
|
@@ -6804,7 +6816,7 @@
|
|
|
6804
6816
|
const e2 = n ? l(a, s, t) : l(t);
|
|
6805
6817
|
return (c || pu)[o2] = e2;
|
|
6806
6818
|
}
|
|
6807
|
-
}), hu = (e) => pu[e], gu = "data-overlayscrollbars", yu = "os-environment", vu = `${yu}-scrollbar-hidden`,
|
|
6819
|
+
}), 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
6820
|
if ("auto" === e)
|
|
6809
6821
|
return t ? Kc : Uc;
|
|
6810
6822
|
const n = e || Uc;
|
|
@@ -6818,9 +6830,9 @@
|
|
|
6818
6830
|
return t;
|
|
6819
6831
|
}), 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
6832
|
const n = {};
|
|
6821
|
-
return
|
|
6833
|
+
return Sc(Ec(nl(t), nl(e)), (o2) => {
|
|
6822
6834
|
const i = e[o2], r2 = t[o2];
|
|
6823
|
-
if (
|
|
6835
|
+
if (bc(i) && bc(r2))
|
|
6824
6836
|
ol(n[o2] = {}, od(i, r2)), rl(n[o2]) && delete n[o2];
|
|
6825
6837
|
else if (tl(t, o2) && r2 !== i) {
|
|
6826
6838
|
let e2 = true;
|
|
@@ -6844,13 +6856,13 @@
|
|
|
6844
6856
|
i && (o2.nonce = i);
|
|
6845
6857
|
const [r2, , a] = du(), [s, c] = Ys({ o: e(t, n), i: Jc }, Xc(e, t, n, true)), [l] = c(), u = ((e2) => {
|
|
6846
6858
|
let t2 = false;
|
|
6847
|
-
const n2 =
|
|
6859
|
+
const n2 = wl(e2, vu);
|
|
6848
6860
|
try {
|
|
6849
6861
|
t2 = "none" === jl(e2, "scrollbar-width") || "none" === jl(e2, "display", "::-webkit-scrollbar");
|
|
6850
6862
|
} catch (e3) {
|
|
6851
6863
|
}
|
|
6852
6864
|
return n2(), t2;
|
|
6853
|
-
})(t), d = { x: 0 === l.x, y: 0 === l.y }, f = { elements: { host: null, padding: !u, viewport: (e2) => u &&
|
|
6865
|
+
})(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
6866
|
if (fl(t, "style"), Al(t), eu(Xs, "resize", () => {
|
|
6855
6867
|
a("r", []);
|
|
6856
6868
|
}), yc(Xs.matchMedia) && !u && (!d.x || !d.y)) {
|
|
@@ -6876,13 +6888,13 @@
|
|
|
6876
6888
|
const [n3, o4] = t3 || [];
|
|
6877
6889
|
return [o4 && n3 ? (r4 || kl)(n3, e2) : [], o4];
|
|
6878
6890
|
});
|
|
6879
|
-
|
|
6891
|
+
Sc(a2, (n3) => Sc(n3[0], (r5) => {
|
|
6880
6892
|
const a3 = n3[1], s2 = i2.get(r5) || [];
|
|
6881
6893
|
if (e2.contains(r5) && a3) {
|
|
6882
6894
|
const e3 = eu(r5, a3, (n4) => {
|
|
6883
6895
|
o3 ? (e3(), i2.delete(r5)) : t2(n4);
|
|
6884
6896
|
});
|
|
6885
|
-
i2.set(r5,
|
|
6897
|
+
i2.set(r5, Pc(s2, e3));
|
|
6886
6898
|
} else
|
|
6887
6899
|
Dc(s2), i2.delete(r5);
|
|
6888
6900
|
}));
|
|
@@ -6895,14 +6907,14 @@
|
|
|
6895
6907
|
if (!Oc(r3)) {
|
|
6896
6908
|
const a2 = l || al, s2 = u || al, d2 = [], m2 = [];
|
|
6897
6909
|
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
|
-
|
|
6910
|
+
if (Sc(r3, (n2) => {
|
|
6911
|
+
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;
|
|
6912
|
+
if (t && (b || !w2)) {
|
|
6913
|
+
const t2 = v && S2, l3 = t2 && c && xl(r4, c), p2 = (l3 ? !a2(r4, i3, u2, C2) : !v || t2) && !s2(n2, !!l3, e, o2);
|
|
6914
|
+
Sc(f2, (e2) => Pc(d2, e2)), Sc(y, (e2) => Pc(d2, e2)), g2 = g2 || p2;
|
|
6903
6915
|
}
|
|
6904
|
-
!t &&
|
|
6905
|
-
}), f((e2) => Lc(d2).reduce((t2, n2) => (
|
|
6916
|
+
!t && w2 && S2 && !a2(r4, i3, u2, C2) && (Pc(m2, i3), h2 = h2 || N2);
|
|
6917
|
+
}), f((e2) => Lc(d2).reduce((t2, n2) => (Pc(t2, kl(e2, n2)), xl(n2, e2) ? Pc(t2, n2) : t2), [])), t)
|
|
6906
6918
|
return !i2 && g2 && n(false), [false];
|
|
6907
6919
|
if (!Oc(m2) || h2) {
|
|
6908
6920
|
const e2 = [Lc(m2), h2];
|
|
@@ -6938,18 +6950,18 @@
|
|
|
6938
6950
|
} }), ud = ud || false, t3.disconnect();
|
|
6939
6951
|
}
|
|
6940
6952
|
const t2 = el(c, { p: 0, v: 0 }), o3 = (e2) => t2(e2), i2 = new uc(o3);
|
|
6941
|
-
if (i2.observe(ud ? e : s),
|
|
6953
|
+
if (i2.observe(ud ? e : s), Pc(n2, [() => {
|
|
6942
6954
|
i2.disconnect();
|
|
6943
6955
|
}, !ud && Ol(e, a)]), ud) {
|
|
6944
6956
|
const t3 = new uc(o3);
|
|
6945
|
-
t3.observe(e, { box: "border-box" }),
|
|
6957
|
+
t3.observe(e, { box: "border-box" }), Pc(n2, () => t3.disconnect());
|
|
6946
6958
|
}
|
|
6947
6959
|
} else {
|
|
6948
6960
|
if (!i)
|
|
6949
6961
|
return al;
|
|
6950
6962
|
{
|
|
6951
6963
|
const [t2, r3] = i(s, c, o2);
|
|
6952
|
-
|
|
6964
|
+
Pc(n2, Ec([wl(a, Lu), eu(a, "animationstart", t2), Ol(e, a)], r3));
|
|
6953
6965
|
}
|
|
6954
6966
|
}
|
|
6955
6967
|
return Xc(Dc, n2);
|
|
@@ -6965,7 +6977,7 @@
|
|
|
6965
6977
|
return [() => {
|
|
6966
6978
|
const t2 = [];
|
|
6967
6979
|
if (lc)
|
|
6968
|
-
n = new lc(Xc(a, false), { root: e }), n.observe(o2),
|
|
6980
|
+
n = new lc(Xc(a, false), { root: e }), n.observe(o2), Pc(t2, () => {
|
|
6969
6981
|
n.disconnect();
|
|
6970
6982
|
});
|
|
6971
6983
|
else {
|
|
@@ -6973,14 +6985,14 @@
|
|
|
6973
6985
|
const e3 = Kl(o2);
|
|
6974
6986
|
r2(e3);
|
|
6975
6987
|
};
|
|
6976
|
-
|
|
6988
|
+
Pc(t2, dd(o2, e2)()), e2();
|
|
6977
6989
|
}
|
|
6978
|
-
return Xc(Dc,
|
|
6990
|
+
return Xc(Dc, Pc(t2, Ol(e, o2)));
|
|
6979
6991
|
}, () => n && a(true, n.takeRecords())];
|
|
6980
6992
|
}, pd = (e, t, n, o2) => {
|
|
6981
6993
|
let i, r2, a, s, c, l, u, d;
|
|
6982
|
-
const f = `[${xu}]`, p = `[${
|
|
6983
|
-
const o3 =
|
|
6994
|
+
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 } }, () => {
|
|
6995
|
+
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
6996
|
return l2 && l2(), iu(v, a2), s2 && s2(), i2 && c2(), { w: u2.w + d2.w, h: u2.h + d2.h };
|
|
6985
6997
|
}), O = (() => {
|
|
6986
6998
|
let e2, t2, n2;
|
|
@@ -7011,13 +7023,13 @@
|
|
|
7011
7023
|
}, B2 = (e2, t2, n2) => {
|
|
7012
7024
|
const o3 = { Ht: t2 };
|
|
7013
7025
|
return L2(o3), t2 && !n2 && O(o3, i), o3;
|
|
7014
|
-
}, [M2, F] =
|
|
7026
|
+
}, [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
7027
|
const t2 = e2[e2.length - 1].contentRect;
|
|
7016
7028
|
T2({ _t: true, ft: Ql(t2, u) }), u = t2;
|
|
7017
7029
|
});
|
|
7018
7030
|
return [() => {
|
|
7019
7031
|
z2 && z2.observe(g);
|
|
7020
|
-
const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 =
|
|
7032
|
+
const e2 = $2 && $2(), t2 = M2 && M2(), n2 = _2(), o3 = P2.G((e3) => {
|
|
7021
7033
|
const [, t3] = A();
|
|
7022
7034
|
O({ Et: e3, xt: t3, _t: k }, s);
|
|
7023
7035
|
});
|
|
@@ -7025,18 +7037,18 @@
|
|
|
7025
7037
|
z2 && z2.disconnect(), e2 && e2(), t2 && t2(), l && l(), n2(), o3();
|
|
7026
7038
|
};
|
|
7027
7039
|
}, ({ 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"),
|
|
7040
|
+
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
7041
|
if (v2 || h2) {
|
|
7030
7042
|
c && c(), l && l();
|
|
7031
|
-
const [e3, t3] = ld(
|
|
7043
|
+
const [e3, t3] = ld(b || y, true, R2, { et: Ec(m, d2 || []), rt: g2, it: f, ut: (e4, t4) => {
|
|
7032
7044
|
const { target: n3, attributeName: o4 } = e4;
|
|
7033
|
-
return !(t4 || !o4 ||
|
|
7045
|
+
return !(t4 || !o4 || w2) && Il(n3, f, p) || !!El(n3, `.${Tu}`) || !!((e5) => yc(u2) && u2(e5))(e4);
|
|
7034
7046
|
} });
|
|
7035
7047
|
l = e3(), c = t3;
|
|
7036
7048
|
}
|
|
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)),
|
|
7049
|
+
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
7050
|
const e3 = j2(), t3 = F && F(), n3 = c && c();
|
|
7039
|
-
e3 && ol(o3, B2(e3[0], e3[1],
|
|
7051
|
+
e3 && ol(o3, B2(e3[0], e3[1], C3)), t3 && ol(o3, D2(t3[0], C3)), n3 && ol(o3, R2(n3[0], C3));
|
|
7040
7052
|
}
|
|
7041
7053
|
return L2(o3), o3;
|
|
7042
7054
|
}, E2];
|
|
@@ -7047,7 +7059,7 @@
|
|
|
7047
7059
|
const i = fc(o2) ? n : o2, r2 = md(e, i);
|
|
7048
7060
|
return !!r2 && (xc(r2) ? r2 : t.apply(0, e));
|
|
7049
7061
|
}, 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 || {},
|
|
7062
|
+
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
7063
|
if (dc) {
|
|
7052
7064
|
let t2 = null, o3 = [];
|
|
7053
7065
|
const i2 = new dc({ source: m, axis: e2 }), r3 = () => {
|
|
@@ -7058,37 +7070,37 @@
|
|
|
7058
7070
|
};
|
|
7059
7071
|
return { kt: a2 };
|
|
7060
7072
|
}
|
|
7061
|
-
},
|
|
7062
|
-
const o3 = n2 ?
|
|
7063
|
-
|
|
7073
|
+
}, S2 = { x: C2("x"), y: C2("y") }, N2 = (e2, t2, n2) => {
|
|
7074
|
+
const o3 = n2 ? wl : bl;
|
|
7075
|
+
Sc(e2, (e3) => {
|
|
7064
7076
|
o3(e3.Lt, t2);
|
|
7065
7077
|
});
|
|
7066
7078
|
}, E2 = (e2, t2) => {
|
|
7067
|
-
|
|
7079
|
+
Sc(e2, (e3) => {
|
|
7068
7080
|
const [n2, o3] = t2(e3);
|
|
7069
7081
|
_l(n2, o3);
|
|
7070
7082
|
});
|
|
7071
|
-
},
|
|
7083
|
+
}, P2 = (e2, t2, n2) => {
|
|
7072
7084
|
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(
|
|
7085
|
+
(!o3 || n2) && N2(w2, e2, t2), i2 && N2(k, e2, t2);
|
|
7086
|
+
}, I2 = (e2) => {
|
|
7087
|
+
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];
|
|
7088
|
+
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;
|
|
7089
|
+
}, A = Xc(I2, true), O = Xc(I2, false);
|
|
7078
7090
|
return A(), O(), [{ Pt: () => {
|
|
7079
7091
|
const e2 = (() => {
|
|
7080
7092
|
const { Rt: e3, Vt: t3 } = n, o3 = (e4, t4) => sl(0, 1, e4 / (e4 + t4) || 0);
|
|
7081
7093
|
return { x: o3(t3.x, e3.x), y: o3(t3.y, e3.y) };
|
|
7082
7094
|
})(), t2 = (e3) => (t3) => [t3.Lt, { [i]: Fl(e3) + "" }];
|
|
7083
|
-
E2(
|
|
7095
|
+
E2(w2, t2(e2.x)), E2(k, t2(e2.y));
|
|
7084
7096
|
}, Nt: () => {
|
|
7085
7097
|
if (!dc) {
|
|
7086
7098
|
const { Dt: e2 } = n, t2 = cu(e2, ru(m)), o3 = (e3) => (t3) => [t3.Lt, { [r2]: Fl(e3) + "" }];
|
|
7087
|
-
E2(
|
|
7099
|
+
E2(w2, o3(t2.x)), E2(k, o3(t2.y));
|
|
7088
7100
|
}
|
|
7089
7101
|
}, qt: () => {
|
|
7090
7102
|
const { Dt: e2 } = n, t2 = su(e2), o3 = (e3) => (t3) => [t3.Lt, { [a]: e3 ? "0" : "1" }];
|
|
7091
|
-
E2(
|
|
7103
|
+
E2(w2, o3(t2.x)), E2(k, o3(t2.y)), dc && (w2.forEach(S2.x.kt), k.forEach(S2.y.kt));
|
|
7092
7104
|
}, Bt: () => {
|
|
7093
7105
|
if (g && !h) {
|
|
7094
7106
|
const { Rt: e2, Dt: t2 } = n, o3 = su(t2), i2 = cu(t2, ru(m)), r3 = (t3) => {
|
|
@@ -7098,11 +7110,11 @@
|
|
|
7098
7110
|
};
|
|
7099
7111
|
return [r4, r4 && { transform: Hl({ x: a2(i2.x, e2.x, o3.x), y: a2(i2.y, e2.y, o3.y) }) }];
|
|
7100
7112
|
};
|
|
7101
|
-
E2(
|
|
7113
|
+
E2(w2, r3), E2(k, r3);
|
|
7102
7114
|
}
|
|
7103
|
-
}, Ft:
|
|
7115
|
+
}, 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
7116
|
}, 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,
|
|
7117
|
+
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
7118
|
yc(u.scrollBy) && u.scrollBy({ behavior: "smooth", left: e2.x, top: e2.y });
|
|
7107
7119
|
};
|
|
7108
7120
|
let k = true;
|
|
@@ -7111,11 +7123,11 @@
|
|
|
7111
7123
|
}), eu(p, "pointerleave pointercancel", () => {
|
|
7112
7124
|
r2(zu, false);
|
|
7113
7125
|
}), !l && eu(p, "mousedown", () => {
|
|
7114
|
-
const e2 =
|
|
7115
|
-
(ul(e2,
|
|
7126
|
+
const e2 = Pl();
|
|
7127
|
+
(ul(e2, Cu) || ul(e2, xu) || e2 === document.body) && rc(Xc(lu, c), 25);
|
|
7116
7128
|
}), eu(p, "wheel", (e2) => {
|
|
7117
7129
|
const { deltaX: t2, deltaY: n2, deltaMode: o3 } = e2;
|
|
7118
|
-
k && 0 === o3 && Nl(p) === s &&
|
|
7130
|
+
k && 0 === o3 && Nl(p) === s && w2({ x: t2, y: n2 }), k = false, r2(Uu, true), g(() => {
|
|
7119
7131
|
k = true, r2(Uu);
|
|
7120
7132
|
}), nu(e2);
|
|
7121
7133
|
}, { I: false, A: true }), eu(p, "pointerdown", () => {
|
|
@@ -7130,16 +7142,16 @@
|
|
|
7130
7142
|
iu(u, { [c2]: e2 + a2 });
|
|
7131
7143
|
}, p2 = [];
|
|
7132
7144
|
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),
|
|
7145
|
+
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;
|
|
7146
|
+
if (0 === x && C2 && k2 && (N2 || []).includes(S2)) {
|
|
7147
|
+
Dc(p2), b();
|
|
7148
|
+
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
7149
|
Dc(M2), g2.releasePointerCapture(e3.pointerId);
|
|
7138
7150
|
}, 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
7151
|
const e3 = ru(u);
|
|
7140
7152
|
B2();
|
|
7141
7153
|
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),
|
|
7154
|
+
(tc(n3.x) > 3 || tc(n3.y) > 3) && (f(), iu(u, e3), w2(n3), v(B2));
|
|
7143
7155
|
})];
|
|
7144
7156
|
if (g2.setPointerCapture(n2.pointerId), e2)
|
|
7145
7157
|
N3(D2);
|
|
@@ -7147,33 +7159,33 @@
|
|
|
7147
7159
|
const e3 = hu("__osClickScrollPlugin");
|
|
7148
7160
|
if (e3) {
|
|
7149
7161
|
const t3 = e3(N3, D2, A, (e4) => {
|
|
7150
|
-
e4 ? B2() :
|
|
7162
|
+
e4 ? B2() : Pc(M2, B2);
|
|
7151
7163
|
});
|
|
7152
|
-
|
|
7164
|
+
Pc(M2, t3), Pc(p2, Xc(t3, true));
|
|
7153
7165
|
}
|
|
7154
7166
|
}
|
|
7155
7167
|
}
|
|
7156
7168
|
});
|
|
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 =
|
|
7169
|
+
})(), y, b]);
|
|
7170
|
+
}, bd = (e) => {
|
|
7171
|
+
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
7172
|
const t2 = Kl(e2), n2 = ql(e2), o3 = jl(e2, jc), i2 = jl(e2, zc);
|
|
7161
7173
|
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,
|
|
7174
|
+
})(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 = [() => {
|
|
7175
|
+
fl(_2, [xu, bu]), fl($2, bu), h && fl(y, [bu, xu]);
|
|
7164
7176
|
}];
|
|
7165
|
-
let V2 =
|
|
7177
|
+
let V2 = Sl([H2, z2, j2, _2, $2].find((e2) => e2 && !R2(e2)));
|
|
7166
7178
|
const U2 = E2 ? $2 : H2 || z2, K2 = Xc(Dc, W2);
|
|
7167
7179
|
return [F, () => {
|
|
7168
|
-
const e2 = v(), t2 =
|
|
7169
|
-
Ol(Nl(e3),
|
|
7180
|
+
const e2 = v(), t2 = Pl(), n2 = (e3) => {
|
|
7181
|
+
Ol(Nl(e3), Sl(e3)), Al(e3);
|
|
7170
7182
|
}, 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,
|
|
7183
|
+
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, () => {
|
|
7184
|
+
const e3 = Pl(), t3 = R2(z2), o3 = t3 && e3 === z2 ? $2 : e3, s3 = i2(o3);
|
|
7185
|
+
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();
|
|
7186
|
+
}]), 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
7187
|
}, K2];
|
|
7176
|
-
},
|
|
7188
|
+
}, wd = ({ ht: e }) => ({ Qt: t, un: n, At: o2 }) => {
|
|
7177
7189
|
const { $t: i } = t || {}, { Ot: r2 } = n;
|
|
7178
7190
|
e && (i || o2) && _l(e, { [Wc]: r2 && "100%" });
|
|
7179
7191
|
}, kd = ({ vt: e, rn: t, L: n, V: o2 }, i) => {
|
|
@@ -7182,24 +7194,24 @@
|
|
|
7182
7194
|
let [u, d] = a(l);
|
|
7183
7195
|
const { U: f } = cd(), { _t: p, xt: m, Ct: h } = s || {}, { B: g } = c, [y, v] = e2("paddingAbsolute");
|
|
7184
7196
|
(p || d || (l || m)) && ([u, d] = r2(l));
|
|
7185
|
-
const
|
|
7186
|
-
if (
|
|
7197
|
+
const b = !o2 && (v || h || d);
|
|
7198
|
+
if (b) {
|
|
7187
7199
|
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
7200
|
_l(t || n, a2), _l(n, s2), ol(i, { rn: u, fn: !e3, F: t ? s2 : ol({}, a2, s2) });
|
|
7189
7201
|
}
|
|
7190
|
-
return { _n:
|
|
7202
|
+
return { _n: b };
|
|
7191
7203
|
};
|
|
7192
7204
|
}, 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: {} },
|
|
7205
|
+
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
7206
|
u(Eu, !p && e2);
|
|
7195
|
-
},
|
|
7207
|
+
}, w2 = () => jl(r2, g), k = (e2, t2) => {
|
|
7196
7208
|
const n2 = !nl(e2).length, o3 = !t2 && g.some((t3) => {
|
|
7197
7209
|
const n3 = e2[t3];
|
|
7198
7210
|
return hc(n3) && h[t3](n3);
|
|
7199
7211
|
});
|
|
7200
7212
|
if (n2 && !o3 || !((e3) => !!e3 && ((e4) => !!(e4.offsetWidth || e4.offsetHeight || e4.getClientRects().length))(e3))(r2))
|
|
7201
7213
|
return { D: { x: 0, y: 0 }, M: { x: 1, y: 1 } };
|
|
7202
|
-
|
|
7214
|
+
b(true);
|
|
7203
7215
|
const i2 = ru(c), a2 = eu(s, Kc, (e3) => {
|
|
7204
7216
|
const t3 = ru(c);
|
|
7205
7217
|
e3.isTrusted && t3.x === i2.x && t3.y === i2.y && tu(e3);
|
|
@@ -7209,12 +7221,12 @@
|
|
|
7209
7221
|
iu(c, { x: f2.w, y: f2.h });
|
|
7210
7222
|
const p2 = ru(c), m2 = { x: p2.x - d2.x, y: p2.y - d2.y };
|
|
7211
7223
|
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:
|
|
7224
|
+
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 };
|
|
7225
|
+
return iu(c, i2), ic(() => a2()), { D: d2, M: w3 };
|
|
7214
7226
|
}, x = (e2, t2) => {
|
|
7215
7227
|
const n2 = Xs.devicePixelRatio % 1 != 0 ? 1 : 0, o3 = { w: m(e2.w - t2.w), h: m(e2.h - t2.h) };
|
|
7216
7228
|
return { w: o3.w > n2 ? o3.w : 0, h: o3.h > n2 ? o3.h : 0 };
|
|
7217
|
-
},
|
|
7229
|
+
}, C2 = (e2, t2) => {
|
|
7218
7230
|
const n2 = (e3, t3, n3, o3) => {
|
|
7219
7231
|
const i2 = e3 === Vc ? Uc : ((e4) => e4.replace(`${Vc}-`, ""))(e3), r3 = qu(e3), a2 = qu(n3);
|
|
7220
7232
|
if (!t3 && !o3)
|
|
@@ -7227,10 +7239,10 @@
|
|
|
7227
7239
|
return t3 ? i2 : a2 && o3 ? Vc : Uc;
|
|
7228
7240
|
};
|
|
7229
7241
|
return { x: n2(t2.x, e2.x, t2.y, e2.y), y: n2(t2.y, e2.y, t2.x, e2.x) };
|
|
7230
|
-
},
|
|
7242
|
+
}, S2 = (e2) => {
|
|
7231
7243
|
const t2 = (e3) => [Vc, Uc, Kc].map((t3) => _2(Ju(t3), e3)), n2 = t2(true).concat(t2()).join(" ");
|
|
7232
7244
|
u(n2), u(nl(e2).map((t3) => _2(e2[t3], "x" === t3)).join(" "), true);
|
|
7233
|
-
}, [N2, E2] = Ys(y, Xc(Jl, r2)), [
|
|
7245
|
+
}, [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
7246
|
const t3 = String(e3 || "");
|
|
7235
7247
|
return t3 ? t3[0].toUpperCase() + t3.slice(1) : "";
|
|
7236
7248
|
})(e2)}`;
|
|
@@ -7239,37 +7251,37 @@
|
|
|
7239
7251
|
const { k: n2 } = t2, [o3, i2] = e2("showNativeOverlaidScrollbars");
|
|
7240
7252
|
return [o3 && n2.x && n2.y, i2];
|
|
7241
7253
|
})(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 =
|
|
7254
|
+
let Z2 = E2(l2), ee2 = I2(l2), te2 = O(l2), ne2 = T2(l2);
|
|
7255
|
+
if (G2 && f && u(Pu, !K2), Q2) {
|
|
7256
|
+
yl(o2, xu, wu) && b(true);
|
|
7257
|
+
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
7258
|
e2 && e2(), ne2 = D2(c3), te2 = A(x(s3, c3), l2);
|
|
7247
7259
|
}
|
|
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,
|
|
7260
|
+
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();
|
|
7261
|
+
let ke2 = C2(de2, q2);
|
|
7262
|
+
b(false), me2 && (S2(ke2), ke2 = Yu(r2, de2), U2 && W2 && (W2(ke2, se2, le2), _l(r2, U2(ke2))));
|
|
7263
|
+
const [xe2, Ce2] = R2(ke2);
|
|
7264
|
+
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
7265
|
};
|
|
7254
|
-
},
|
|
7255
|
-
const [t, n, o2] =
|
|
7266
|
+
}, Cd = (e) => {
|
|
7267
|
+
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
7268
|
return [n, (e2) => {
|
|
7257
7269
|
const t2 = {}, n2 = d && ru(a), o3 = n2 && c();
|
|
7258
|
-
return
|
|
7270
|
+
return Sc(f, (n3) => {
|
|
7259
7271
|
ol(t2, n3(e2, t2) || {});
|
|
7260
7272
|
}), iu(a, n2), o3 && o3(), s || iu(r2, 0), t2;
|
|
7261
7273
|
}, i, t, o2];
|
|
7262
|
-
},
|
|
7274
|
+
}, Sd = (e, t, n, o2, i) => {
|
|
7263
7275
|
let r2 = false;
|
|
7264
|
-
const a = id(t, {}), [s, c, l, u, d] =
|
|
7265
|
-
|
|
7276
|
+
const a = id(t, {}), [s, c, l, u, d] = Cd(e), [f, p, m] = pd(u, l, a, (e2) => {
|
|
7277
|
+
b({}, e2);
|
|
7266
7278
|
}), [h, g, , y] = ((e2, t2, n2, o3, i2, r3) => {
|
|
7267
7279
|
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), [
|
|
7280
|
+
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
7281
|
if (x(), e3)
|
|
7270
|
-
|
|
7282
|
+
I2(Vu);
|
|
7271
7283
|
else {
|
|
7272
|
-
const e4 = Xc(
|
|
7284
|
+
const e4 = Xc(I2, Vu, true);
|
|
7273
7285
|
f2 > 0 && !t3 ? k(e4) : e4();
|
|
7274
7286
|
}
|
|
7275
7287
|
}, R2 = () => {
|
|
@@ -7277,10 +7289,10 @@
|
|
|
7277
7289
|
T2(false);
|
|
7278
7290
|
}));
|
|
7279
7291
|
}, B2 = (e3) => {
|
|
7280
|
-
|
|
7292
|
+
I2(Wu, e3, true), I2(Wu, e3, false);
|
|
7281
7293
|
}, M2 = (e3) => {
|
|
7282
7294
|
m2(e3) && (a2 = c2, c2 && T2(true));
|
|
7283
|
-
}, F = [x, v2,
|
|
7295
|
+
}, F = [x, v2, w2, g2, () => d2(), eu(N2, "pointerover", M2, { T: true }), eu(N2, "pointerenter", M2), eu(N2, "pointerleave", (e3) => {
|
|
7284
7296
|
m2(e3) && (a2 = false, c2 && T2(false));
|
|
7285
7297
|
}), eu(N2, "pointermove", (e3) => {
|
|
7286
7298
|
m2(e3) && s2 && R2();
|
|
@@ -7289,35 +7301,35 @@
|
|
|
7289
7301
|
O(), R2();
|
|
7290
7302
|
}), r3(e3), D2();
|
|
7291
7303
|
})], $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:
|
|
7304
|
+
return [() => Xc(Dc, Pc(F, S2())), ({ zt: e3, At: t3, Qt: i3, Zt: r4 }) => {
|
|
7305
|
+
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
7306
|
const o4 = e4.includes(Kc) && (F2 === Vc || "auto" === F2 && t4 === Kc);
|
|
7295
|
-
return
|
|
7307
|
+
return I2(_u, o4, n3), o4;
|
|
7296
7308
|
};
|
|
7297
|
-
if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(),
|
|
7309
|
+
if (f2 = V2, X2 && (H2 && Q2 ? (B2(false), d2(), b2(() => {
|
|
7298
7310
|
d2 = eu(E2, "scroll", Xc(B2, true), { T: true });
|
|
7299
|
-
})) : B2(true)), (N3 || ne2) &&
|
|
7311
|
+
})) : 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
7312
|
const e4 = ie2(J2.x, x2.x, true), t4 = ie2(J2.y, x2.y, false);
|
|
7301
|
-
|
|
7313
|
+
I2(ju, !(e4 && t4));
|
|
7302
7314
|
}
|
|
7303
|
-
Z2 && (O(), A(), D2(), h3 && L2(),
|
|
7304
|
-
}, {},
|
|
7305
|
-
})(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]),
|
|
7315
|
+
Z2 && (O(), A(), D2(), h3 && L2(), I2(Hu, !C3.x, true), I2(Hu, !C3.y, false), I2(Ru, v3 && !P2));
|
|
7316
|
+
}, {}, C2];
|
|
7317
|
+
})(e, t, m, l, u, i), v = (e2) => nl(e2).some((t2) => !!e2[t2]), b = (e2, i2) => {
|
|
7306
7318
|
if (n())
|
|
7307
7319
|
return false;
|
|
7308
7320
|
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
7321
|
if (u2)
|
|
7310
7322
|
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:
|
|
7323
|
+
const y2 = i2 || p(ol({}, h2, { It: l2 })), b2 = c(ol({}, h2, { un: m, Qt: y2 }));
|
|
7324
|
+
g(ol({}, h2, { Qt: y2, Zt: b2 }));
|
|
7325
|
+
const w2 = v(y2), k = v(b2), x = w2 || k || !rl(d2) || f2;
|
|
7326
|
+
return r2 = true, x && o2(e2, { Qt: y2, Zt: b2 }), x;
|
|
7315
7327
|
};
|
|
7316
7328
|
return [() => {
|
|
7317
7329
|
const { ln: e2, gt: t2, St: n2 } = u, o3 = ru(e2), i2 = [f(), s(), h()], r3 = n2();
|
|
7318
7330
|
return iu(t2, o3), r3(), Xc(Dc, i2);
|
|
7319
|
-
},
|
|
7320
|
-
}, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e),
|
|
7331
|
+
}, b, () => ({ vn: m, gn: l }), { hn: u, bn: y }, d];
|
|
7332
|
+
}, Nd = /* @__PURE__ */ new WeakMap(), Ed = (e) => Nd.get(e), Pd = (e, t, n) => {
|
|
7321
7333
|
const { tt: o2 } = cd(), i = xc(e), r2 = i ? e : e.target, a = Ed(r2);
|
|
7322
7334
|
if (t && !a) {
|
|
7323
7335
|
let a2 = false;
|
|
@@ -7326,23 +7338,23 @@
|
|
|
7326
7338
|
return n2 ? n2(t2, true) : t2;
|
|
7327
7339
|
}, u = ol({}, o2(), l(t)), [d, f, p] = du(), [m, h, g] = du(n), y = (e2, t2) => {
|
|
7328
7340
|
g(e2, t2), p(e2, t2);
|
|
7329
|
-
}, [v,
|
|
7341
|
+
}, [v, b, w2, k, x] = Sd(e, u, () => a2, ({ dn: e2, At: t2 }, { Qt: n2, Zt: o3 }) => {
|
|
7330
7342
|
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", [
|
|
7343
|
+
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 }]);
|
|
7344
|
+
}, (e2) => y("scroll", [S2, e2])), C2 = (e2) => {
|
|
7333
7345
|
((e3) => {
|
|
7334
7346
|
Nd.delete(e3);
|
|
7335
|
-
})(r2), Dc(s), a2 = true, y("destroyed", [
|
|
7336
|
-
},
|
|
7347
|
+
})(r2), Dc(s), a2 = true, y("destroyed", [S2, e2]), f(), h();
|
|
7348
|
+
}, S2 = { options(e2, t2) {
|
|
7337
7349
|
if (e2) {
|
|
7338
7350
|
const n2 = t2 ? o2() : {}, i2 = od(u, ol(n2, l(e2)));
|
|
7339
|
-
rl(i2) || (ol(u, i2),
|
|
7351
|
+
rl(i2) || (ol(u, i2), b({ dn: i2 }));
|
|
7340
7352
|
}
|
|
7341
7353
|
return ol({}, u);
|
|
7342
7354
|
}, on: m, off: (e2, t2) => {
|
|
7343
7355
|
e2 && t2 && h(e2, t2);
|
|
7344
7356
|
}, state() {
|
|
7345
|
-
const { vn: e2, gn: t2 } =
|
|
7357
|
+
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
7358
|
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
7359
|
}, elements() {
|
|
7348
7360
|
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 +7364,39 @@
|
|
|
7352
7364
|
const { Xt: t3, Yt: n3 } = e3, o4 = l2(t3[0]);
|
|
7353
7365
|
return ol({}, o4, { clone: () => {
|
|
7354
7366
|
const e4 = l2(n3());
|
|
7355
|
-
return
|
|
7367
|
+
return b({ pn: true }), e4;
|
|
7356
7368
|
} });
|
|
7357
7369
|
};
|
|
7358
7370
|
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
|
|
7371
|
+
}, update: (e2) => b({ At: e2, It: true }), destroy: Xc(C2, false), plugin: (e2) => c[nl(e2)[0]] };
|
|
7372
|
+
return Pc(s, [x]), ((e2, t2) => {
|
|
7361
7373
|
Nd.set(e2, t2);
|
|
7362
|
-
})(r2,
|
|
7374
|
+
})(r2, S2), mu(fu, Pd, [S2, d, c]), ((e2, t2) => {
|
|
7363
7375
|
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
7376
|
return !!d2 || !!f2;
|
|
7365
|
-
})(k.hn.bt, !i && e.cancel) ? (
|
|
7377
|
+
})(k.hn.bt, !i && e.cancel) ? (C2(true), S2) : (Pc(s, v()), y("initialized", [S2]), S2.update(), S2);
|
|
7366
7378
|
}
|
|
7367
7379
|
return a;
|
|
7368
7380
|
};
|
|
7369
|
-
|
|
7370
|
-
const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2,
|
|
7381
|
+
Pd.plugin = (e) => {
|
|
7382
|
+
const t = vc(e), n = t ? e : [e], o2 = n.map((e2) => mu(e2, Pd)[0]);
|
|
7371
7383
|
return ((e2) => {
|
|
7372
|
-
|
|
7384
|
+
Sc(e2, (e3) => Sc(e3, (t2, n2) => {
|
|
7373
7385
|
fu[n2] = e3[n2];
|
|
7374
7386
|
}));
|
|
7375
7387
|
})(n), t ? o2 : o2[0];
|
|
7376
|
-
},
|
|
7388
|
+
}, Pd.valid = (e) => {
|
|
7377
7389
|
const t = e && e.elements, n = yc(t) && t();
|
|
7378
7390
|
return kc(n) && !!Ed(n.target);
|
|
7379
|
-
},
|
|
7391
|
+
}, Pd.env = () => {
|
|
7380
7392
|
const { P: e, k: t, U: n, J: o2, ot: i, st: r2, K: a, Z: s, tt: c, nt: l } = cd();
|
|
7381
7393
|
return ol({}, { scrollbarsSize: e, scrollbarsOverlaid: t, scrollbarsHiding: n, scrollTimeline: o2, staticDefaultInitialization: i, staticDefaultOptions: r2, getDefaultInitialization: a, setDefaultInitialization: s, getDefaultOptions: c, setDefaultOptions: l });
|
|
7382
|
-
},
|
|
7394
|
+
}, Pd.nonce = (e) => {
|
|
7383
7395
|
rd = e;
|
|
7384
|
-
},
|
|
7396
|
+
}, Pd.trustedTypePolicy = (e) => {
|
|
7385
7397
|
Ll = e;
|
|
7386
7398
|
};
|
|
7387
|
-
const
|
|
7399
|
+
const Id = () => {
|
|
7388
7400
|
if (typeof window > "u") {
|
|
7389
7401
|
const e2 = () => {
|
|
7390
7402
|
};
|
|
@@ -7400,23 +7412,23 @@
|
|
|
7400
7412
|
} : n2, "object" == typeof r3 ? r3 : { timeout: 2233 });
|
|
7401
7413
|
}, c];
|
|
7402
7414
|
}, Ad = (e) => {
|
|
7403
|
-
const { options: t, events: n, defer: o$1 } = e || {}, [i, r2] = o.useMemo(
|
|
7415
|
+
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
7416
|
return o.useEffect(() => {
|
|
7405
7417
|
s.current = o$1;
|
|
7406
7418
|
}, [o$1]), o.useEffect(() => {
|
|
7407
7419
|
const { current: e2 } = a;
|
|
7408
|
-
c.current = t,
|
|
7420
|
+
c.current = t, Pd.valid(e2) && e2.options(t || {}, true);
|
|
7409
7421
|
}, [t]), o.useEffect(() => {
|
|
7410
7422
|
const { current: e2 } = a;
|
|
7411
|
-
l.current = n,
|
|
7423
|
+
l.current = n, Pd.valid(e2) && e2.on(n || {}, true);
|
|
7412
7424
|
}, [n]), o.useEffect(() => () => {
|
|
7413
7425
|
var e2;
|
|
7414
7426
|
r2(), null == (e2 = a.current) || e2.destroy();
|
|
7415
7427
|
}, []), o.useMemo(() => [(e2) => {
|
|
7416
7428
|
const t2 = a.current;
|
|
7417
|
-
if (
|
|
7429
|
+
if (Pd.valid(t2))
|
|
7418
7430
|
return;
|
|
7419
|
-
const n2 = s.current, o2 = c.current || {}, r3 = l.current || {}, u = () => a.current =
|
|
7431
|
+
const n2 = s.current, o2 = c.current || {}, r3 = l.current || {}, u = () => a.current = Pd(e2, o2, r3);
|
|
7420
7432
|
n2 ? i(u, n2) : u();
|
|
7421
7433
|
}, () => a.current], []);
|
|
7422
7434
|
};
|
|
@@ -7458,13 +7470,13 @@
|
|
|
7458
7470
|
function Fd() {
|
|
7459
7471
|
return ("function" == typeof o.useId ? o.useId : Md)() ?? "";
|
|
7460
7472
|
}
|
|
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
|
|
7473
|
+
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) => {
|
|
7474
|
+
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
7475
|
m ? e.preventDefault() : u && u(e);
|
|
7464
|
-
}, [u, m]),
|
|
7476
|
+
}, [u, m]), S2 = o.useCallback((e) => {
|
|
7465
7477
|
m ? e.preventDefault() : f && f(e);
|
|
7466
7478
|
}, [f, m]);
|
|
7467
|
-
return jsxRuntime.jsxs("div", { className: x, children: [c && jsxRuntime.jsx(Ld, { htmlFor: k, text: c }), l && jsxRuntime.jsx(
|
|
7479
|
+
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
7480
|
switch (i) {
|
|
7469
7481
|
case "email":
|
|
7470
7482
|
return "Enter your email here...";
|
|
@@ -7479,7 +7491,7 @@
|
|
|
7479
7491
|
default:
|
|
7480
7492
|
return "Enter text here...";
|
|
7481
7493
|
}
|
|
7482
|
-
})(), "aria-label": c, disabled: m, readOnly: h, ...g ? { "aria-invalid": true, "aria-describedby": `${k}-error` } : {}, ...v }), d && jsxRuntime.jsx(
|
|
7494
|
+
})(), "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
7495
|
});
|
|
7484
7496
|
$d.displayName = "Input";
|
|
7485
7497
|
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 +7515,14 @@
|
|
|
7503
7515
|
return (_a2 = e == null ? void 0 : e.themes) == null ? void 0 : _a2.select(t2);
|
|
7504
7516
|
}, [e]);
|
|
7505
7517
|
return o.useEffect(() => {
|
|
7506
|
-
var _a2,
|
|
7518
|
+
var _a2, _b2;
|
|
7507
7519
|
if (!e)
|
|
7508
7520
|
return;
|
|
7509
7521
|
let t2 = false;
|
|
7510
7522
|
const o2 = (e2) => {
|
|
7511
7523
|
t2 || n(e2);
|
|
7512
7524
|
};
|
|
7513
|
-
return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o2), (
|
|
7525
|
+
return (_a2 = e.themes) == null ? void 0 : _a2.onChanged(o2), (_b2 = e.themes) == null ? void 0 : _b2.getCurrent().then(o2).catch(console.warn), () => {
|
|
7514
7526
|
t2 = true;
|
|
7515
7527
|
};
|
|
7516
7528
|
}, [e]), { currentTheme: t, selectTheme: o$1 };
|
|
@@ -7534,7 +7546,7 @@
|
|
|
7534
7546
|
}), []), o.useCallback(() => e.current, []);
|
|
7535
7547
|
}
|
|
7536
7548
|
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),
|
|
7549
|
+
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
7550
|
o.useEffect(() => {
|
|
7539
7551
|
o$1.current = i;
|
|
7540
7552
|
const e2 = i == null ? void 0 : i.ioConnectWindow.onVisibilityChanged(() => {
|
|
@@ -7544,7 +7556,7 @@
|
|
|
7544
7556
|
e2 == null ? void 0 : e2();
|
|
7545
7557
|
};
|
|
7546
7558
|
}, [i]);
|
|
7547
|
-
const
|
|
7559
|
+
const C2 = o.useCallback(async (e2, o2) => {
|
|
7548
7560
|
const i2 = { windowId: e2 == null ? void 0 : e2.ioConnectWindow.id, ...o2 }, r3 = window.glue42gd.windowId;
|
|
7549
7561
|
if ((() => {
|
|
7550
7562
|
const e3 = Or() && !!window.workspacesManager, t2 = !Or() && !!window.ioworkspaces;
|
|
@@ -7563,7 +7575,7 @@
|
|
|
7563
7575
|
return void console.warn("Cannot access my window to show popup");
|
|
7564
7576
|
await e3.showPopup({ ...i2 });
|
|
7565
7577
|
}
|
|
7566
|
-
}, [t, n]),
|
|
7578
|
+
}, [t, n]), S2 = o.useCallback((e2) => {
|
|
7567
7579
|
try {
|
|
7568
7580
|
const t2 = e2.document;
|
|
7569
7581
|
(k == null ? void 0 : k.name) && (t2.documentElement.className = k.name);
|
|
@@ -7571,35 +7583,35 @@
|
|
|
7571
7583
|
return n2.id = "io-popup-window-container", t2.body.innerHTML = "", t2.body.appendChild(n2), t2;
|
|
7572
7584
|
} catch (e3) {
|
|
7573
7585
|
const t2 = `Failed to setup popup document: ${String(e3)}`;
|
|
7574
|
-
return console.error("usePopupWindow:", t2, e3),
|
|
7586
|
+
return console.error("usePopupWindow:", t2, e3), w2() && v(t2), null;
|
|
7575
7587
|
}
|
|
7576
|
-
}, [k,
|
|
7588
|
+
}, [k, w2]), N2 = o.useCallback(async (e2) => {
|
|
7577
7589
|
if (!t) {
|
|
7578
7590
|
const e3 = "io.Connect API not available";
|
|
7579
|
-
return console.error("usePopupWindow:", e3),
|
|
7591
|
+
return console.error("usePopupWindow:", e3), w2() && v(e3), null;
|
|
7580
7592
|
}
|
|
7581
|
-
|
|
7593
|
+
w2() && (g(true), v(null));
|
|
7582
7594
|
try {
|
|
7583
7595
|
const n2 = new Promise((e3, t2) => {
|
|
7584
7596
|
setTimeout(() => t2(new Error("Popup creation timeout after 5 seconds")), 5e3);
|
|
7585
7597
|
}), o2 = t.createPopup({ ...e2 }), i2 = await Promise.race([o2, n2]);
|
|
7586
|
-
if (!
|
|
7598
|
+
if (!w2())
|
|
7587
7599
|
return await i2.ioConnectWindow.close().catch(() => {
|
|
7588
7600
|
}), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null;
|
|
7589
7601
|
r2(i2);
|
|
7590
7602
|
const a = i2.browserWindow;
|
|
7591
7603
|
if (a == null ? void 0 : a.document) {
|
|
7592
|
-
const e3 =
|
|
7593
|
-
|
|
7604
|
+
const e3 = S2(a);
|
|
7605
|
+
w2() && e3 && u(e3);
|
|
7594
7606
|
}
|
|
7595
7607
|
return i2;
|
|
7596
7608
|
} catch (e3) {
|
|
7597
7609
|
const t2 = `Failed to create popup: ${String(e3)}`;
|
|
7598
|
-
return console.error("usePopupWindow:", t2, e3),
|
|
7610
|
+
return console.error("usePopupWindow:", t2, e3), w2() && (v(t2), r2(null), u(null)), null;
|
|
7599
7611
|
} finally {
|
|
7600
|
-
|
|
7612
|
+
w2() && g(false);
|
|
7601
7613
|
}
|
|
7602
|
-
}, [t,
|
|
7614
|
+
}, [t, S2, w2]), E2 = o.useCallback(() => {
|
|
7603
7615
|
if (!i || !t)
|
|
7604
7616
|
return false;
|
|
7605
7617
|
try {
|
|
@@ -7607,7 +7619,7 @@
|
|
|
7607
7619
|
} catch (e2) {
|
|
7608
7620
|
return console.warn("usePopupWindow: Failed to verify popup existence", e2), false;
|
|
7609
7621
|
}
|
|
7610
|
-
}, [i, t]),
|
|
7622
|
+
}, [i, t]), P2 = o.useCallback(async () => {
|
|
7611
7623
|
if (!i)
|
|
7612
7624
|
return null;
|
|
7613
7625
|
if (E2())
|
|
@@ -7616,16 +7628,16 @@
|
|
|
7616
7628
|
const e2 = i.ioConnectWindow.bounds, t2 = await N2({ left: e2.left, top: e2.top, width: e2.width, height: e2.height });
|
|
7617
7629
|
if (!t2) {
|
|
7618
7630
|
const e3 = "Failed to recreate destroyed popup window";
|
|
7619
|
-
console.error("usePopupWindow:", e3),
|
|
7631
|
+
console.error("usePopupWindow:", e3), w2() && v(e3);
|
|
7620
7632
|
}
|
|
7621
7633
|
return t2;
|
|
7622
|
-
}, [i, E2, N2,
|
|
7634
|
+
}, [i, E2, N2, w2]), I2 = o.useCallback(async (e2) => {
|
|
7623
7635
|
if (i)
|
|
7624
|
-
return await
|
|
7636
|
+
return await P2();
|
|
7625
7637
|
const t2 = await N2(e2);
|
|
7626
|
-
return t2 ?
|
|
7638
|
+
return t2 ? w2() ? t2 : (await t2.ioConnectWindow.close().catch(() => {
|
|
7627
7639
|
}), console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup"), null) : (console.warn("usePopupWindow: Failed to create popup, operation aborted"), null);
|
|
7628
|
-
}, [i,
|
|
7640
|
+
}, [i, P2, N2, w2]);
|
|
7629
7641
|
o.useEffect(() => {
|
|
7630
7642
|
if ((i == null ? void 0 : i.browserWindow) && s)
|
|
7631
7643
|
try {
|
|
@@ -7640,32 +7652,32 @@
|
|
|
7640
7652
|
if (i) {
|
|
7641
7653
|
if (!t) {
|
|
7642
7654
|
const e3 = "io.Connect API not available";
|
|
7643
|
-
return console.error("usePopupWindow:", e3), void (
|
|
7655
|
+
return console.error("usePopupWindow:", e3), void (w2() && v(e3));
|
|
7644
7656
|
}
|
|
7645
7657
|
try {
|
|
7646
|
-
const t2 = e2 ||
|
|
7658
|
+
const t2 = e2 || b.current;
|
|
7647
7659
|
if (!t2)
|
|
7648
7660
|
return void console.warn("usePopupWindow: No show options available");
|
|
7649
|
-
const n2 = await
|
|
7650
|
-
if (!n2 || !
|
|
7661
|
+
const n2 = await P2();
|
|
7662
|
+
if (!n2 || !w2())
|
|
7651
7663
|
return;
|
|
7652
|
-
await
|
|
7664
|
+
await C2(n2, t2), w2() && m(true);
|
|
7653
7665
|
} catch (e3) {
|
|
7654
7666
|
const t2 = `Failed to show popup: ${JSON.stringify(e3)}`;
|
|
7655
|
-
console.error("usePopupWindow:", t2, e3),
|
|
7667
|
+
console.error("usePopupWindow:", t2, e3), w2() && v(t2);
|
|
7656
7668
|
}
|
|
7657
7669
|
} else
|
|
7658
7670
|
console.warn("usePopupWindow: Cannot show popup - popup not created yet");
|
|
7659
|
-
}, [i, t,
|
|
7671
|
+
}, [i, t, C2, w2, P2]), L2 = o.useCallback(async (e2) => {
|
|
7660
7672
|
await (i == null ? void 0 : i.ioConnectWindow.moveResize({ ...e2 }));
|
|
7661
7673
|
}, [i]), D2 = o.useCallback(async () => {
|
|
7662
|
-
if (
|
|
7674
|
+
if (w2() && (m(false), o$1.current))
|
|
7663
7675
|
try {
|
|
7664
7676
|
await o$1.current.ioConnectWindow.hide();
|
|
7665
7677
|
} catch (e2) {
|
|
7666
7678
|
console.error("usePopupWindow: Failed to hide popup", e2);
|
|
7667
7679
|
}
|
|
7668
|
-
}, [o$1,
|
|
7680
|
+
}, [o$1, w2]);
|
|
7669
7681
|
ie(() => {
|
|
7670
7682
|
p && D2().catch((e2) => {
|
|
7671
7683
|
console.error("Failed to hide popup on Escape key press in parent window", e2);
|
|
@@ -7688,35 +7700,35 @@
|
|
|
7688
7700
|
await o$1.current.ioConnectWindow.close(), o$1.current = null;
|
|
7689
7701
|
} catch (e2) {
|
|
7690
7702
|
const t2 = `Failed to close popup: ${String(e2)}`;
|
|
7691
|
-
console.error("usePopupWindow:", t2, e2),
|
|
7703
|
+
console.error("usePopupWindow:", t2, e2), w2() && v(t2);
|
|
7692
7704
|
} finally {
|
|
7693
|
-
|
|
7705
|
+
w2() && (r2(null), u(null), m(false), b.current = void 0);
|
|
7694
7706
|
}
|
|
7695
|
-
}, [o$1,
|
|
7707
|
+
}, [o$1, w2]), R2 = o.useCallback(async (e2, n2, o2) => {
|
|
7696
7708
|
if (!t) {
|
|
7697
7709
|
const e3 = "io.Connect API not available";
|
|
7698
|
-
return console.error("usePopupWindow:", e3), void (
|
|
7710
|
+
return console.error("usePopupWindow:", e3), void (w2() && v(e3));
|
|
7699
7711
|
}
|
|
7700
|
-
|
|
7712
|
+
w2() && (g(true), v(null));
|
|
7701
7713
|
try {
|
|
7702
|
-
let e3 = await
|
|
7714
|
+
let e3 = await I2(n2);
|
|
7703
7715
|
if (!e3) {
|
|
7704
7716
|
const t2 = await N2(n2);
|
|
7705
7717
|
if (!t2)
|
|
7706
7718
|
return void console.warn("usePopupWindow: Failed to create popup, operation aborted");
|
|
7707
|
-
if (!
|
|
7719
|
+
if (!w2())
|
|
7708
7720
|
return await t2.ioConnectWindow.close().catch(() => {
|
|
7709
7721
|
}), void console.warn("usePopupWindow: Component unmounted during popup creation, cleaned up popup");
|
|
7710
7722
|
e3 = t2;
|
|
7711
7723
|
}
|
|
7712
|
-
o2 && (
|
|
7724
|
+
o2 && (b.current = o2), await C2(e3, o2), w2() && m(true);
|
|
7713
7725
|
} catch (e3) {
|
|
7714
7726
|
const t2 = `Failed to create and show popup: ${String(e3)}`;
|
|
7715
|
-
console.error("usePopupWindow:", t2, e3),
|
|
7727
|
+
console.error("usePopupWindow:", t2, e3), w2() && v(t2);
|
|
7716
7728
|
} finally {
|
|
7717
|
-
|
|
7729
|
+
w2() && g(false);
|
|
7718
7730
|
}
|
|
7719
|
-
}, [N2, t,
|
|
7731
|
+
}, [N2, t, C2, w2, I2]);
|
|
7720
7732
|
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
7733
|
};
|
|
7722
7734
|
const ef = () => {
|
|
@@ -7738,7 +7750,7 @@
|
|
|
7738
7750
|
}
|
|
7739
7751
|
sf.displayName = "Toggle";
|
|
7740
7752
|
const uf = { getMyApplication: async function(e) {
|
|
7741
|
-
var _a2,
|
|
7753
|
+
var _a2, _b2;
|
|
7742
7754
|
if (e)
|
|
7743
7755
|
try {
|
|
7744
7756
|
const t = e.apps;
|
|
@@ -7751,7 +7763,7 @@
|
|
|
7751
7763
|
return;
|
|
7752
7764
|
return cf(n2);
|
|
7753
7765
|
}
|
|
7754
|
-
const n = (
|
|
7766
|
+
const n = (_b2 = e.appManager) == null ? void 0 : _b2.myApplication;
|
|
7755
7767
|
if (!n)
|
|
7756
7768
|
return;
|
|
7757
7769
|
return lf(n);
|
|
@@ -7759,7 +7771,7 @@
|
|
|
7759
7771
|
return void console.error("Failed to get my application", e2);
|
|
7760
7772
|
}
|
|
7761
7773
|
}, getApplications: async function(e) {
|
|
7762
|
-
var _a2,
|
|
7774
|
+
var _a2, _b2;
|
|
7763
7775
|
if (!e)
|
|
7764
7776
|
return [];
|
|
7765
7777
|
try {
|
|
@@ -7768,14 +7780,14 @@
|
|
|
7768
7780
|
const e2 = await t.getMany() ?? [];
|
|
7769
7781
|
return e2.map((e3) => cf(e3));
|
|
7770
7782
|
}
|
|
7771
|
-
const n = ((
|
|
7783
|
+
const n = ((_b2 = e.appManager) == null ? void 0 : _b2.applications()) ?? [];
|
|
7772
7784
|
return n.map((e2) => lf(e2));
|
|
7773
7785
|
} catch (e2) {
|
|
7774
7786
|
console.error("Failed to get applications", e2);
|
|
7775
7787
|
}
|
|
7776
7788
|
return [];
|
|
7777
7789
|
}, startApplication: async function(e, t, n) {
|
|
7778
|
-
var _a2,
|
|
7790
|
+
var _a2, _b2;
|
|
7779
7791
|
if (e)
|
|
7780
7792
|
try {
|
|
7781
7793
|
const o2 = e.apps;
|
|
@@ -7784,7 +7796,7 @@
|
|
|
7784
7796
|
const e2 = o2.instances;
|
|
7785
7797
|
return e2 ? void await e2.start({ name: t, ...n }) : void console.error("io.apps.instances API is not available");
|
|
7786
7798
|
}
|
|
7787
|
-
const i = (
|
|
7799
|
+
const i = (_b2 = e.appManager) == null ? void 0 : _b2.application(t);
|
|
7788
7800
|
if (!i)
|
|
7789
7801
|
return void console.error(`Application "${t}" not found`);
|
|
7790
7802
|
await i.start(n);
|
|
@@ -7807,7 +7819,7 @@
|
|
|
7807
7819
|
return void console.error(`Failed to stop application instance "${t.id}"`, e2);
|
|
7808
7820
|
}
|
|
7809
7821
|
}, onAppAdded: async function(e, t) {
|
|
7810
|
-
var _a2,
|
|
7822
|
+
var _a2, _b2;
|
|
7811
7823
|
if (e)
|
|
7812
7824
|
try {
|
|
7813
7825
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7817,7 +7829,7 @@
|
|
|
7817
7829
|
t(n2);
|
|
7818
7830
|
});
|
|
7819
7831
|
}
|
|
7820
|
-
const o2 = (
|
|
7832
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppAdded((e2) => {
|
|
7821
7833
|
const n2 = lf(e2);
|
|
7822
7834
|
t(n2);
|
|
7823
7835
|
});
|
|
@@ -7826,7 +7838,7 @@
|
|
|
7826
7838
|
return void console.error("Failed to subscribe to app added events", e2);
|
|
7827
7839
|
}
|
|
7828
7840
|
}, onAppRemoved: async function(e, t) {
|
|
7829
|
-
var _a2,
|
|
7841
|
+
var _a2, _b2;
|
|
7830
7842
|
if (e)
|
|
7831
7843
|
try {
|
|
7832
7844
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7835,7 +7847,7 @@
|
|
|
7835
7847
|
t({ name: e2 });
|
|
7836
7848
|
});
|
|
7837
7849
|
}
|
|
7838
|
-
const o2 = (
|
|
7850
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppRemoved((e2) => {
|
|
7839
7851
|
t({ name: e2.name });
|
|
7840
7852
|
});
|
|
7841
7853
|
return o2;
|
|
@@ -7843,7 +7855,7 @@
|
|
|
7843
7855
|
return void console.error("Failed to subscribe to app removed events", e2);
|
|
7844
7856
|
}
|
|
7845
7857
|
}, onAppChanged: async function(e, t) {
|
|
7846
|
-
var _a2,
|
|
7858
|
+
var _a2, _b2;
|
|
7847
7859
|
if (e)
|
|
7848
7860
|
try {
|
|
7849
7861
|
const n = (_a2 = e.apps) == null ? void 0 : _a2.registry;
|
|
@@ -7853,7 +7865,7 @@
|
|
|
7853
7865
|
t(n2);
|
|
7854
7866
|
});
|
|
7855
7867
|
}
|
|
7856
|
-
const o2 = (
|
|
7868
|
+
const o2 = (_b2 = e.appManager) == null ? void 0 : _b2.onAppChanged((e2) => {
|
|
7857
7869
|
const n2 = lf(e2);
|
|
7858
7870
|
t(n2);
|
|
7859
7871
|
});
|
|
@@ -7862,26 +7874,26 @@
|
|
|
7862
7874
|
return void console.error("Failed to subscribe to app changed events", e2);
|
|
7863
7875
|
}
|
|
7864
7876
|
}, restartPlatform: async function(e, t = true) {
|
|
7865
|
-
var _a2,
|
|
7877
|
+
var _a2, _b2;
|
|
7866
7878
|
if (!e)
|
|
7867
7879
|
return;
|
|
7868
7880
|
const n = { autoSave: t, showDialog: true };
|
|
7869
7881
|
try {
|
|
7870
7882
|
if ((_a2 = e.platform) == null ? void 0 : _a2.restart)
|
|
7871
7883
|
return void await e.platform.restart(n);
|
|
7872
|
-
await ((
|
|
7884
|
+
await ((_b2 = e.appManager) == null ? void 0 : _b2.restart(n));
|
|
7873
7885
|
} catch (e2) {
|
|
7874
7886
|
console.error("Failed to restart platform", e2);
|
|
7875
7887
|
}
|
|
7876
7888
|
}, shutdownPlatform: async function(e, t = true) {
|
|
7877
|
-
var _a2,
|
|
7889
|
+
var _a2, _b2;
|
|
7878
7890
|
if (!e)
|
|
7879
7891
|
return;
|
|
7880
7892
|
const n = { autoSave: t, showDialog: true };
|
|
7881
7893
|
try {
|
|
7882
7894
|
if ((_a2 = e.platform) == null ? void 0 : _a2.shutdown)
|
|
7883
7895
|
return void await e.platform.shutdown(n);
|
|
7884
|
-
await ((
|
|
7896
|
+
await ((_b2 = e.appManager) == null ? void 0 : _b2.exit(n));
|
|
7885
7897
|
} catch (e2) {
|
|
7886
7898
|
console.error("Failed to shutdown platform", e2);
|
|
7887
7899
|
}
|
|
@@ -7908,18 +7920,18 @@
|
|
|
7908
7920
|
o.createContext({ theme: "dark" });
|
|
7909
7921
|
o.createContext(void 0);
|
|
7910
7922
|
const gf = (n) => {
|
|
7911
|
-
const { General:
|
|
7912
|
-
return jsxRuntime.
|
|
7923
|
+
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 }]];
|
|
7924
|
+
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
7925
|
}, yf = ({ title: t = "General", ...n }) => {
|
|
7914
7926
|
const { Theme: o2 } = Np();
|
|
7915
7927
|
return jsxRuntime.jsx(T, { title: t, ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
7916
7928
|
}, vf = ({ className: n, title: o2 = "Theme", ...i }) => {
|
|
7917
7929
|
const { currentTheme: r2, selectTheme: a } = Hd(), s = ef();
|
|
7918
7930
|
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
|
-
},
|
|
7931
|
+
}, bf = ({ prefKey: t, ...n }) => {
|
|
7920
7932
|
const { isLoading: o2, value: i = false, update: r2 } = ks({ prefKey: t });
|
|
7921
7933
|
return jsxRuntime.jsx(sf, { checked: i, disabled: o2, onChange: (e) => r2(e.target.checked), ...n });
|
|
7922
|
-
},
|
|
7934
|
+
}, 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
7935
|
const { isLoading: a, value: s = "Select option", update: c } = ks({ prefKey: n });
|
|
7924
7936
|
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
7937
|
if (e !== s)
|
|
@@ -7929,19 +7941,19 @@
|
|
|
7929
7941
|
console.error("Failed to update platform preference:", e2);
|
|
7930
7942
|
}
|
|
7931
7943
|
})(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 })] }) }),
|
|
7944
|
+
}, 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
7945
|
const { value: i } = ks({ prefKey: Wa });
|
|
7934
|
-
return jsxRuntime.jsx(
|
|
7946
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Va, disabled: !i, ...o2 });
|
|
7935
7947
|
}, Af = ({ align: t = "right", label: n = 'Show "Favorites"', ...o2 }) => {
|
|
7936
7948
|
const { value: i } = ks({ prefKey: Wa });
|
|
7937
|
-
return jsxRuntime.jsx(
|
|
7949
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ua, disabled: !i, ...o2 });
|
|
7938
7950
|
}, Of = ({ align: t = "right", label: n = 'Show "Recent"', ...o2 }) => {
|
|
7939
7951
|
const { value: i } = ks({ prefKey: Wa });
|
|
7940
|
-
return jsxRuntime.jsx(
|
|
7952
|
+
return jsxRuntime.jsx(bf, { align: t, label: n, prefKey: Ga, disabled: !i, ...o2 });
|
|
7941
7953
|
}, Lf = ({ title: n = "Layouts", ...o2 }) => {
|
|
7942
7954
|
const { LayoutsSaveCurrentOnExit: i, LayoutsShowDeletePrompt: r2, LayoutsShowUnsavedChangesPrompt: a } = Np();
|
|
7943
7955
|
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(
|
|
7956
|
+
}, 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
7957
|
const { DownloadsLocation: o2 } = Np();
|
|
7946
7958
|
return jsxRuntime.jsx(T, { title: t, ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
7947
7959
|
};
|
|
@@ -7983,11 +7995,11 @@
|
|
|
7983
7995
|
console.error("Failed to open Download Manager", e);
|
|
7984
7996
|
});
|
|
7985
7997
|
}, [i]);
|
|
7986
|
-
return jsxRuntime.jsx(
|
|
7998
|
+
return jsxRuntime.jsx(I, { className: E("io-dm-compact-mode-only", t), icon: n, variant: "circle", size: "32", onClick: r2, ...o$1 });
|
|
7987
7999
|
}
|
|
7988
8000
|
function Vf({ icon: t = "close", size: n = "32", variant: o$1 = "circle", onClick: i, ...r2 }) {
|
|
7989
8001
|
const a = o.useContext(reactHooks.IOConnectContext);
|
|
7990
|
-
return jsxRuntime.jsx(
|
|
8002
|
+
return jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, onClick: (e) => {
|
|
7991
8003
|
i ? i(e) : df.closeWindow(a).catch((e2) => {
|
|
7992
8004
|
console.error("Failed to close window:", e2);
|
|
7993
8005
|
});
|
|
@@ -8013,7 +8025,7 @@
|
|
|
8013
8025
|
}
|
|
8014
8026
|
function qf({ className: n, icon: o2 = "download", text: i = "No downloads to display.", ...r2 }) {
|
|
8015
8027
|
const a = E("io-dm-no-items", n);
|
|
8016
|
-
return jsxRuntime.jsxs("div", { className: a, ...r2, children: [jsxRuntime.jsx(
|
|
8028
|
+
return jsxRuntime.jsxs("div", { className: a, ...r2, children: [jsxRuntime.jsx(P, { variant: o2 }), jsxRuntime.jsx("p", { children: i })] });
|
|
8017
8029
|
}
|
|
8018
8030
|
function Jf({ className: n, title: o2, children: i, ...r2 }) {
|
|
8019
8031
|
const a = E("io-dm-item-group", n);
|
|
@@ -8031,12 +8043,12 @@
|
|
|
8031
8043
|
return jsxRuntime.jsx(Js, { value: i(), ...o$1 });
|
|
8032
8044
|
}
|
|
8033
8045
|
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,
|
|
8046
|
+
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
8047
|
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(
|
|
8048
|
+
}(r2, o$1, s ?? p, c ?? m), C2 = o.useCallback(() => {
|
|
8049
|
+
y ? w2(o$1) : k(o$1);
|
|
8050
|
+
}, [y, w2, o$1, k]);
|
|
8051
|
+
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
8052
|
}
|
|
8041
8053
|
function Zf({ className: n, state: o2, url: i, bytesReceived: r2 = 0, bytesTotal: a = 0, speed: s = 0, timeRemaining: c = 0, ...l }) {
|
|
8042
8054
|
const u = E("io-dm-item-body", n), d = (e) => {
|
|
@@ -8056,7 +8068,7 @@
|
|
|
8056
8068
|
const ep = { success: "check-solid", warning: "exclamation-mark", critical: "exclamation-mark" };
|
|
8057
8069
|
function tp({ className: n, variant: o2, text: i }) {
|
|
8058
8070
|
const r2 = E("io-dm-item-status", `io-dm-item-status-${o2}`, n);
|
|
8059
|
-
return jsxRuntime.jsxs("div", { className: r2, children: [o2 && jsxRuntime.jsx(
|
|
8071
|
+
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
8072
|
}
|
|
8061
8073
|
function np({ className: o$1, itemID: i, state: r2, pauseResume: s, showInFolder: c, cancel: l, ...u }) {
|
|
8062
8074
|
const d = E("io-dm-item-footer", o$1), { pauseResumeItem: f, showItemInFolder: p, cancelItem: m } = _f(), h = o.useCallback((e) => {
|
|
@@ -8085,7 +8097,7 @@
|
|
|
8085
8097
|
}
|
|
8086
8098
|
function op({ className: n, title: o2 = "Download Settings", ...i }) {
|
|
8087
8099
|
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(
|
|
8100
|
+
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
8101
|
s();
|
|
8090
8102
|
}, 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
8103
|
c(t);
|
|
@@ -8102,7 +8114,7 @@
|
|
|
8102
8114
|
const up = ({ className: n, label: o2 = "Location", ...i }) => {
|
|
8103
8115
|
const { configuration: { downloadFolder: r2 }, setDownloadLocationWithDialog: a, isDownloadLocationDialogVisible: s, downloadLocationList: c } = _f();
|
|
8104
8116
|
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(
|
|
8117
|
+
}, 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
8118
|
const { SystemRestartSection: i, SystemShutdownSection: r2 } = Np();
|
|
8107
8119
|
return jsxRuntime.jsxs(T, { title: n, ...o2, children: [jsxRuntime.jsx(i, {}), jsxRuntime.jsx(r2, {})] });
|
|
8108
8120
|
}, pp = "T42.GD.Execute", mp = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], hp = (e, t) => e in t;
|
|
@@ -8169,36 +8181,32 @@
|
|
|
8169
8181
|
const n = "restart" === e ? "_system_scheduleRestart" : "_system_scheduleShutdown";
|
|
8170
8182
|
return t ? `${n}${t}` : n;
|
|
8171
8183
|
}
|
|
8172
|
-
function
|
|
8184
|
+
function bp({ className: n, variant: o2, ...i }) {
|
|
8173
8185
|
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
8186
|
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
8187
|
}
|
|
8176
|
-
function
|
|
8177
|
-
return jsxRuntime.jsx(
|
|
8188
|
+
function wp({ className: t, ...n }) {
|
|
8189
|
+
return jsxRuntime.jsx(bp, { ...n, className: t, variant: "restart" });
|
|
8178
8190
|
}
|
|
8179
8191
|
function kp({ className: t, ...n }) {
|
|
8180
|
-
return jsxRuntime.jsx(
|
|
8192
|
+
return jsxRuntime.jsx(bp, { ...n, className: t, variant: "shutdown" });
|
|
8181
8193
|
}
|
|
8182
8194
|
const xp = { Body: gf, General: yf, Theme: vf, Launchpad: ({ title: n = "Launchpad", ...o2 }) => {
|
|
8183
8195
|
const { MinimizeToTray: i, PinnedPosition: r2, HideFavoritesFromLaunchpad: a } = Np();
|
|
8184
8196
|
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:
|
|
8197
|
+
}, MinimizeToTray: wf, PinnedPosition: xf, HideFavoritesFromLaunchpad: Cf, Docking: ({ className: n, title: o2 = "Docking", ...i }) => {
|
|
8198
|
+
const r2 = E("io-preferences-panel-docking", n), { AllowDocking: a, DockedAlwaysOnTop: s, DockedClaimsSpace: c } = Np();
|
|
8199
|
+
return jsxRuntime.jsxs(T, { className: r2, title: o2, ...i, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {})] });
|
|
8200
|
+
}, AllowDocking: Sf, DockedAlwaysOnTop: Nf, DockedClaimsSpace: Ef, ExtendedArea: ({ className: n, title: o2 = "Extended Area", ...i }) => {
|
|
8201
|
+
const r2 = E("io-preferences-panel-extended-area", n), { ShowExtendedArea: a, HideLabelsInExtendedArea: s, ShowFavoritesInExtendedArea: c, ShowRecentAppsInExtendedArea: l } = Np();
|
|
8202
|
+
return jsxRuntime.jsxs(T, { className: r2, title: o2, ...i, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {}), jsxRuntime.jsx(c, {}), jsxRuntime.jsx(l, {})] });
|
|
8203
|
+
}, 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
8204
|
const o$1 = o.useMemo(() => ({ ...xp, ...n }), [n]);
|
|
8193
|
-
return jsxRuntime.jsx(
|
|
8205
|
+
return jsxRuntime.jsx(Cp.Provider, { value: o$1, children: t });
|
|
8194
8206
|
});
|
|
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) {
|
|
8207
|
+
Sp.displayName = "PreferencesPanelComponentsStoreProvider";
|
|
8208
|
+
const Np = () => o.useContext(Cp);
|
|
8209
|
+
function Ap(e) {
|
|
8202
8210
|
if (e && e.errorHandling && "function" != typeof e.errorHandling && "log" !== e.errorHandling && "silent" !== e.errorHandling && "throw" !== e.errorHandling)
|
|
8203
8211
|
throw new Error('Invalid options passed to createRegistry. Prop errorHandling should be ["log" | "silent" | "throw" | (err) => void], but ' + typeof e.errorHandling + " was passed");
|
|
8204
8212
|
var t = e && "function" == typeof e.errorHandling && e.errorHandling, n = {};
|
|
@@ -8259,9 +8267,9 @@
|
|
|
8259
8267
|
n[e2] && delete n[e2];
|
|
8260
8268
|
} };
|
|
8261
8269
|
}
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
function
|
|
8270
|
+
Ap.default = Ap;
|
|
8271
|
+
C(Ap);
|
|
8272
|
+
function Dp(e) {
|
|
8265
8273
|
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
8274
|
if (null === n)
|
|
8267
8275
|
return [];
|
|
@@ -8326,7 +8334,7 @@
|
|
|
8326
8334
|
return s(a), c;
|
|
8327
8335
|
}, [e, o$1]), allowedApps: r2, sortedAppsAsc: m, sortedAppsDesc: h, sortAppsAlphabetically: p };
|
|
8328
8336
|
}
|
|
8329
|
-
const
|
|
8337
|
+
const $p = o.createContext({ allApps: [], settings: {}, configuration: {}, notifications: [], notificationsCount: 0, onClose: () => {
|
|
8330
8338
|
}, allApplications: 0, clearAll: () => {
|
|
8331
8339
|
}, showPanel: () => {
|
|
8332
8340
|
}, hidePanel: () => {
|
|
@@ -8342,33 +8350,37 @@
|
|
|
8342
8350
|
}, setState: () => {
|
|
8343
8351
|
}, setStates: () => {
|
|
8344
8352
|
}, setCount: () => {
|
|
8345
|
-
} }),
|
|
8353
|
+
} }), _p = () => o.useContext($p);
|
|
8354
|
+
function jp({ className: n, title: o2 = "General", ...i }) {
|
|
8355
|
+
const r2 = E("io-notifications-settings-panel-general", n), { AllowNotifications: a, AllowNotificationToasts: s, ShowNotificationBadge: c, CloseNotificationOnClick: l, PanelAutoHide: u, HideToastsAfter: d } = mm(), f = Ud();
|
|
8356
|
+
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, {})] }) });
|
|
8357
|
+
}
|
|
8346
8358
|
function zp({ label: t = "Allow notifications", align: n = "right", ...o$1 }) {
|
|
8347
|
-
const { settings: i, saveSetting: r2 } =
|
|
8359
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = o.useCallback((e) => {
|
|
8348
8360
|
r2({ enabledNotifications: e.target.checked });
|
|
8349
8361
|
}, [r2]);
|
|
8350
8362
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.enabledNotifications ?? false, ...o$1 }) : null;
|
|
8351
8363
|
}
|
|
8352
8364
|
function Hp({ label: t = "Allow notification toasts", align: n = "right", ...o$1 }) {
|
|
8353
|
-
const { settings: i, saveSetting: r2 } =
|
|
8365
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8354
8366
|
r2({ enabledToasts: e.target.checked });
|
|
8355
8367
|
}, [r2]);
|
|
8356
8368
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.enabledToasts ?? false, disabled: c, ...o$1 }) : null;
|
|
8357
8369
|
}
|
|
8358
8370
|
function Wp({ label: t = "Show notification badge", align: n = "right", ...o$1 }) {
|
|
8359
|
-
const { settings: i, saveSetting: r2 } =
|
|
8371
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud() && !i.enabledNotifications, c = o.useCallback((e) => {
|
|
8360
8372
|
r2({ showNotificationBadge: e.target.checked });
|
|
8361
8373
|
}, [r2]);
|
|
8362
8374
|
return jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.showNotificationBadge ?? false, disabled: s, ...o$1 });
|
|
8363
8375
|
}
|
|
8364
8376
|
function Vp({ label: t = "Close notification on click", align: n = "right", ...o$1 }) {
|
|
8365
|
-
const { settings: i, saveSetting: r2 } =
|
|
8377
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8366
8378
|
r2({ closeNotificationOnClick: e.target.checked });
|
|
8367
8379
|
}, [r2]);
|
|
8368
8380
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.closeNotificationOnClick ?? false, disabled: c, ...o$1 }) : null;
|
|
8369
8381
|
}
|
|
8370
8382
|
function Up({ label: t = "Auto hide panel", align: n = "right", ...o$1 }) {
|
|
8371
|
-
const { settings: i, saveSetting: r2 } =
|
|
8383
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = o.useCallback((e) => {
|
|
8372
8384
|
r2({ autoHidePanel: e.target.checked });
|
|
8373
8385
|
}, [r2]);
|
|
8374
8386
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: c, checked: i.autoHidePanel ?? false, ...o$1 }) : null;
|
|
@@ -8378,7 +8390,7 @@
|
|
|
8378
8390
|
return o2 + (o2 && i ? " " : "") + i;
|
|
8379
8391
|
};
|
|
8380
8392
|
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 } =
|
|
8393
|
+
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
8394
|
c.toastExpiry !== e && l({ toastExpiry: 1e3 * e });
|
|
8383
8395
|
}, [c.toastExpiry, l]);
|
|
8384
8396
|
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 +8402,14 @@
|
|
|
8390
8402
|
return Ud() ? jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsxs(T, { title: o2, children: [jsxRuntime.jsx(a, {}), jsxRuntime.jsx(s, {})] }) }) : null;
|
|
8391
8403
|
}
|
|
8392
8404
|
function Yp({ label: t = "Allow toast stacking", align: n = "right", ...o$1 }) {
|
|
8393
|
-
const { settings: i, saveSetting: r2 } =
|
|
8405
|
+
const { settings: i, saveSetting: r2 } = _p(), s = Ud(), c = s && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8394
8406
|
r2({ toastStacking: e.target.checked });
|
|
8395
8407
|
}, [r2]);
|
|
8396
8408
|
return s ? jsxRuntime.jsx(sf, { label: t, align: n, onChange: l, checked: i.toastStacking ?? false, disabled: c, ...o$1 }) : null;
|
|
8397
8409
|
}
|
|
8398
8410
|
const Xp = { application: "Application", severity: "Priority" }, Qp = Object.fromEntries(Object.entries(Xp).map(([e, t]) => [t, e]));
|
|
8399
8411
|
function Zp({ className: n, title: o$1 = "Group by", ...i }) {
|
|
8400
|
-
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } =
|
|
8412
|
+
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
8413
|
s.stackBy !== e && c({ stackBy: e.toLowerCase() });
|
|
8402
8414
|
}, [s.stackBy, c]);
|
|
8403
8415
|
if (!l)
|
|
@@ -8414,20 +8426,20 @@
|
|
|
8414
8426
|
}
|
|
8415
8427
|
const tm = (e) => e.replace(/(^|-)\w/g, (e2) => e2.toUpperCase().replace("-", " "));
|
|
8416
8428
|
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 } =
|
|
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) => {
|
|
8419
8431
|
var _a3;
|
|
8420
8432
|
e || (e = "right"), ((_a3 = s.placement) == null ? void 0 : _a3.panel) !== e && c({ placement: { ...s.placement, panel: e.toLowerCase() } });
|
|
8421
8433
|
}, [s.placement, c]);
|
|
8422
8434
|
if (!l)
|
|
8423
8435
|
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((
|
|
8436
|
+
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
8437
|
u(t);
|
|
8426
8438
|
}, children: t }, t)) }) })] })] });
|
|
8427
8439
|
}
|
|
8428
8440
|
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 } =
|
|
8441
|
+
var _a2, _b2;
|
|
8442
|
+
const r2 = E("flex", "jc-between", "ai-center", n), { settings: s, saveSetting: c } = _p(), l = Ud(), u = o.useCallback((e) => {
|
|
8431
8443
|
var _a3;
|
|
8432
8444
|
if (e || (e = "bottom-right"), ((_a3 = s.placement) == null ? void 0 : _a3.toasts) === e)
|
|
8433
8445
|
return;
|
|
@@ -8436,64 +8448,64 @@
|
|
|
8436
8448
|
}, [s.placement, c]);
|
|
8437
8449
|
if (!l)
|
|
8438
8450
|
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((
|
|
8451
|
+
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
8452
|
u(t);
|
|
8441
8453
|
}, children: t }, t)) }) })] })] });
|
|
8442
8454
|
}
|
|
8443
8455
|
function im({ className: t, title: n = "Snooze", ...o2 }) {
|
|
8444
8456
|
var _a2;
|
|
8445
|
-
const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } =
|
|
8457
|
+
const i = E("io-notifications-settings-panel-snooze", t), { SnoozeDuration: r2 } = mm(), { settings: a } = _p();
|
|
8446
8458
|
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
8459
|
}
|
|
8448
8460
|
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 } =
|
|
8461
|
+
var _a2, _b2;
|
|
8462
|
+
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
8463
|
var _a3;
|
|
8452
8464
|
c.snooze && ((_a3 = c.snooze) == null ? void 0 : _a3.duration) !== e && l({ snooze: { ...c.snooze, duration: 1e3 * e } });
|
|
8453
8465
|
}, [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((((
|
|
8466
|
+
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
8467
|
f(t);
|
|
8456
8468
|
}, children: Gp(t) }, t)) }) })] })] }) : null;
|
|
8457
8469
|
}
|
|
8458
8470
|
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 } =
|
|
8471
|
+
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
8472
|
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
8473
|
var _a2;
|
|
8462
8474
|
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
8475
|
})] }) });
|
|
8464
8476
|
}
|
|
8465
8477
|
function sm({ label: t = "All apps", align: n = "right", ...o$1 }) {
|
|
8466
|
-
var _a2,
|
|
8467
|
-
const { settings: i, configuration: r2, saveAllFilter: s } =
|
|
8478
|
+
var _a2, _b2, _c2, _d2;
|
|
8479
|
+
const { settings: i, configuration: r2, saveAllFilter: s } = _p(), c = Ud() && !i.enabledNotifications, l = o.useCallback((e) => {
|
|
8468
8480
|
s({ subscribe: e.target.checked });
|
|
8469
8481
|
}, [s]);
|
|
8470
|
-
return jsxRuntime.jsx(sf, { align: n, label: t, onChange: l, checked: (((
|
|
8482
|
+
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
8483
|
}
|
|
8472
8484
|
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,
|
|
8485
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
8486
|
+
const { allApps: r2, settings: s, configuration: c, saveFilter: l } = _p(), u = Ud() && !s.enabledNotifications, d = o.useCallback((e, t2) => {
|
|
8487
|
+
var _a3, _b3, _c3, _d3, _e3, _f3;
|
|
8476
8488
|
const n2 = { ...c.sourceFilter }, o2 = (_a3 = n2.allowed) == null ? void 0 : _a3.indexOf("*");
|
|
8477
|
-
"number" == typeof o2 && o2 > -1 && ((
|
|
8489
|
+
"number" == typeof o2 && o2 > -1 && ((_b3 = n2.allowed) == null ? void 0 : _b3.splice(o2, 1), r2.forEach((e2) => {
|
|
8478
8490
|
var _a4;
|
|
8479
8491
|
e2.name !== t2.name && ((_a4 = n2.allowed) == null ? void 0 : _a4.push(e2.name));
|
|
8480
8492
|
})), 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
8493
|
}, [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: (((
|
|
8494
|
+
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
8495
|
}
|
|
8484
8496
|
function lm({ label: t = "Mute all", align: n = "right", ...o$1 }) {
|
|
8485
|
-
var _a2,
|
|
8486
|
-
const { settings: i, configuration: r2, saveAllFilter: s } =
|
|
8497
|
+
var _a2, _b2, _c2, _d2;
|
|
8498
|
+
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
8499
|
s({ mute: e.target.checked });
|
|
8488
8500
|
}, [s]);
|
|
8489
8501
|
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
8502
|
}
|
|
8491
8503
|
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,
|
|
8504
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i2, _j, _k, _l2, _m, _n2, _o2, _p2;
|
|
8505
|
+
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) => {
|
|
8506
|
+
var _a3, _b3, _c3, _d3;
|
|
8495
8507
|
const n2 = { ...c.sourceFilter }, o2 = (_a3 = n2 == null ? void 0 : n2.muted) == null ? void 0 : _a3.indexOf("*");
|
|
8496
|
-
"number" == typeof o2 && o2 > -1 && ((
|
|
8508
|
+
"number" == typeof o2 && o2 > -1 && ((_b3 = n2.muted) == null ? void 0 : _b3.splice(o2, 1), r2.forEach((e2) => {
|
|
8497
8509
|
var _a4;
|
|
8498
8510
|
e2.name === t2.name || e2.hidden || ((_a4 = n2.muted) == null ? void 0 : _a4.push(e2.name));
|
|
8499
8511
|
})), 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 +8513,22 @@
|
|
|
8501
8513
|
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
8514
|
}
|
|
8503
8515
|
const dm = { Body: (n) => {
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8516
|
+
var _a2;
|
|
8517
|
+
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 }];
|
|
8518
|
+
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)) });
|
|
8519
|
+
}, 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
8520
|
const o$1 = o.useMemo(() => ({ ...dm, ...n }), [n]);
|
|
8508
8521
|
return jsxRuntime.jsx(fm.Provider, { value: o$1, children: t });
|
|
8509
8522
|
});
|
|
8510
8523
|
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))] }),
|
|
8524
|
+
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
8525
|
const o2 = Or() ? "io.Connect Desktop" : "io.Connect Browser";
|
|
8513
8526
|
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
|
-
},
|
|
8527
|
+
}, 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
8528
|
const o$1 = o.useMemo(() => ({ ...Nm, ...n }), [n]);
|
|
8516
8529
|
return jsxRuntime.jsx(Em.Provider, { value: o$1, children: t });
|
|
8517
8530
|
});
|
|
8518
|
-
|
|
8531
|
+
Pm.displayName = "ProfilePanelComponentsStoreProvider";
|
|
8519
8532
|
document.querySelector("#root") ?? document.body;
|
|
8520
8533
|
o.createContext({ theme: "dark" });
|
|
8521
8534
|
const Jm = "var(--io-neutrals-0)", Ym = "var(--io-neutrals-900)";
|
|
@@ -8547,7 +8560,7 @@
|
|
|
8547
8560
|
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
8561
|
}
|
|
8549
8562
|
function Zm() {
|
|
8550
|
-
return jsxRuntime.jsx(
|
|
8563
|
+
return jsxRuntime.jsx(P, { variant: "check", "data-testid": "channel-selector-channel-selected" });
|
|
8551
8564
|
}
|
|
8552
8565
|
function eh({ channel: o2, handleChannelRestricted: i, lockedChannelRestriction: r2 }) {
|
|
8553
8566
|
const a = (e, t) => (n) => {
|
|
@@ -8632,15 +8645,15 @@
|
|
|
8632
8645
|
} }) })] });
|
|
8633
8646
|
}
|
|
8634
8647
|
function fh({ children: t }) {
|
|
8635
|
-
return jsxRuntime.jsx("
|
|
8648
|
+
return jsxRuntime.jsx("h1", { "data-testid": "io-dialog-heading", className: "io-dialog-template-heading", children: t });
|
|
8636
8649
|
}
|
|
8637
8650
|
function ph({ onCompletion: n, size: o2, variables: i }) {
|
|
8638
8651
|
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 })] }) });
|
|
8652
|
+
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
8653
|
}
|
|
8641
8654
|
function mh({ onCompletion: n, size: o$1, variables: i }) {
|
|
8642
8655
|
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 })] });
|
|
8656
|
+
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
8657
|
}
|
|
8645
8658
|
function hh({ onCompletion: n, size: o$1, variables: i }) {
|
|
8646
8659
|
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 +8662,13 @@
|
|
|
8649
8662
|
return o.useLayoutEffect(() => {
|
|
8650
8663
|
var _a2;
|
|
8651
8664
|
(_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 })] });
|
|
8665
|
+
}, []), 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
8666
|
}
|
|
8654
8667
|
const gh = ua({ width: ga, height: ga }), yh = ca().andThen((e) => ((e2, t) => {
|
|
8655
8668
|
const n = typeof e2;
|
|
8656
8669
|
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:
|
|
8670
|
+
})(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 });
|
|
8671
|
+
[{ name: "noInputsConfirmationDialog", Dialog: ph, validate: kh.runWithException }, { name: "singleCheckboxDialog", Dialog: mh, validate: Ch.runWithException }, { name: "singleTextInputDialog", Dialog: hh, validate: Nh.runWithException }];
|
|
8659
8672
|
o.createContext({ config: { message: "" }, theme: "dark", setResult: () => {
|
|
8660
8673
|
} });
|
|
8661
8674
|
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 +8757,7 @@
|
|
|
8744
8757
|
return { ...o.useContext(cg), ...e };
|
|
8745
8758
|
}
|
|
8746
8759
|
lg.displayName = "ComponentsStore";
|
|
8747
|
-
var Eg,
|
|
8760
|
+
var Eg, Pg = { exports: {} }, Ig = { exports: {} }, Ag = {};
|
|
8748
8761
|
var Og, Lg, Dg, Tg, Rg, Bg, Mg, Fg, $g, _g, jg, zg, Hg, Wg, Vg = {};
|
|
8749
8762
|
/** @license React v16.13.1
|
|
8750
8763
|
* react-is.development.js
|
|
@@ -8755,12 +8768,12 @@
|
|
|
8755
8768
|
* LICENSE file in the root directory of this source tree.
|
|
8756
8769
|
*/
|
|
8757
8770
|
function Ug() {
|
|
8758
|
-
return Lg || (Lg = 1, "production" === process.env.NODE_ENV ?
|
|
8771
|
+
return Lg || (Lg = 1, "production" === process.env.NODE_ENV ? Ig.exports = function() {
|
|
8759
8772
|
if (Eg)
|
|
8760
8773
|
return Ag;
|
|
8761
8774
|
Eg = 1;
|
|
8762
8775
|
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
|
|
8776
|
+
function b(e2) {
|
|
8764
8777
|
if ("object" == typeof e2 && null !== e2) {
|
|
8765
8778
|
var f2 = e2.$$typeof;
|
|
8766
8779
|
switch (f2) {
|
|
@@ -8790,39 +8803,39 @@
|
|
|
8790
8803
|
}
|
|
8791
8804
|
}
|
|
8792
8805
|
}
|
|
8793
|
-
function
|
|
8794
|
-
return
|
|
8806
|
+
function w2(e2) {
|
|
8807
|
+
return b(e2) === l;
|
|
8795
8808
|
}
|
|
8796
8809
|
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
|
|
8810
|
+
return w2(e2) || b(e2) === c;
|
|
8811
|
+
}, Ag.isConcurrentMode = w2, Ag.isContextConsumer = function(e2) {
|
|
8812
|
+
return b(e2) === s;
|
|
8800
8813
|
}, Ag.isContextProvider = function(e2) {
|
|
8801
|
-
return
|
|
8814
|
+
return b(e2) === a;
|
|
8802
8815
|
}, Ag.isElement = function(e2) {
|
|
8803
8816
|
return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
|
|
8804
8817
|
}, Ag.isForwardRef = function(e2) {
|
|
8805
|
-
return
|
|
8818
|
+
return b(e2) === u;
|
|
8806
8819
|
}, Ag.isFragment = function(e2) {
|
|
8807
|
-
return
|
|
8820
|
+
return b(e2) === o2;
|
|
8808
8821
|
}, Ag.isLazy = function(e2) {
|
|
8809
|
-
return
|
|
8822
|
+
return b(e2) === m;
|
|
8810
8823
|
}, Ag.isMemo = function(e2) {
|
|
8811
|
-
return
|
|
8824
|
+
return b(e2) === p;
|
|
8812
8825
|
}, Ag.isPortal = function(e2) {
|
|
8813
|
-
return
|
|
8826
|
+
return b(e2) === n;
|
|
8814
8827
|
}, Ag.isProfiler = function(e2) {
|
|
8815
|
-
return
|
|
8828
|
+
return b(e2) === r2;
|
|
8816
8829
|
}, Ag.isStrictMode = function(e2) {
|
|
8817
|
-
return
|
|
8830
|
+
return b(e2) === i;
|
|
8818
8831
|
}, Ag.isSuspense = function(e2) {
|
|
8819
|
-
return
|
|
8832
|
+
return b(e2) === d;
|
|
8820
8833
|
}, Ag.isValidElementType = function(e2) {
|
|
8821
8834
|
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
|
-
}() :
|
|
8835
|
+
}, Ag.typeOf = b, Ag;
|
|
8836
|
+
}() : Ig.exports = (Og || (Og = 1, "production" !== process.env.NODE_ENV && function() {
|
|
8824
8837
|
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
|
|
8838
|
+
function b(e2) {
|
|
8826
8839
|
if ("object" == typeof e2 && null !== e2) {
|
|
8827
8840
|
var f2 = e2.$$typeof;
|
|
8828
8841
|
switch (f2) {
|
|
@@ -8854,38 +8867,38 @@
|
|
|
8854
8867
|
}
|
|
8855
8868
|
}
|
|
8856
8869
|
}
|
|
8857
|
-
var
|
|
8870
|
+
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
8871
|
function R2(e2) {
|
|
8859
|
-
return
|
|
8872
|
+
return b(e2) === l;
|
|
8860
8873
|
}
|
|
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) ||
|
|
8874
|
+
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) {
|
|
8875
|
+
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
8876
|
}, Vg.isConcurrentMode = R2, Vg.isContextConsumer = function(e2) {
|
|
8864
|
-
return
|
|
8877
|
+
return b(e2) === s;
|
|
8865
8878
|
}, Vg.isContextProvider = function(e2) {
|
|
8866
|
-
return
|
|
8879
|
+
return b(e2) === a;
|
|
8867
8880
|
}, Vg.isElement = function(e2) {
|
|
8868
8881
|
return "object" == typeof e2 && null !== e2 && e2.$$typeof === t;
|
|
8869
8882
|
}, Vg.isForwardRef = function(e2) {
|
|
8870
|
-
return
|
|
8883
|
+
return b(e2) === u;
|
|
8871
8884
|
}, Vg.isFragment = function(e2) {
|
|
8872
|
-
return
|
|
8885
|
+
return b(e2) === o2;
|
|
8873
8886
|
}, Vg.isLazy = function(e2) {
|
|
8874
|
-
return
|
|
8887
|
+
return b(e2) === m;
|
|
8875
8888
|
}, Vg.isMemo = function(e2) {
|
|
8876
|
-
return
|
|
8889
|
+
return b(e2) === p;
|
|
8877
8890
|
}, Vg.isPortal = function(e2) {
|
|
8878
|
-
return
|
|
8891
|
+
return b(e2) === n;
|
|
8879
8892
|
}, Vg.isProfiler = function(e2) {
|
|
8880
|
-
return
|
|
8893
|
+
return b(e2) === r2;
|
|
8881
8894
|
}, Vg.isStrictMode = function(e2) {
|
|
8882
|
-
return
|
|
8895
|
+
return b(e2) === i;
|
|
8883
8896
|
}, Vg.isSuspense = function(e2) {
|
|
8884
|
-
return
|
|
8897
|
+
return b(e2) === d;
|
|
8885
8898
|
}, Vg.isValidElementType = function(e2) {
|
|
8886
8899
|
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)),
|
|
8900
|
+
}, Vg.typeOf = b;
|
|
8901
|
+
}()), Vg)), Ig.exports;
|
|
8889
8902
|
}
|
|
8890
8903
|
/*
|
|
8891
8904
|
object-assign
|
|
@@ -8946,7 +8959,7 @@
|
|
|
8946
8959
|
}
|
|
8947
8960
|
if ("production" !== process.env.NODE_ENV) {
|
|
8948
8961
|
var Jg = Ug();
|
|
8949
|
-
|
|
8962
|
+
Pg.exports = function() {
|
|
8950
8963
|
if (zg)
|
|
8951
8964
|
return jg;
|
|
8952
8965
|
zg = 1;
|
|
@@ -9057,7 +9070,7 @@
|
|
|
9057
9070
|
if (f(a2, e2[s2]))
|
|
9058
9071
|
return null;
|
|
9059
9072
|
var c2 = JSON.stringify(e2, function(e3, t3) {
|
|
9060
|
-
return "symbol" ===
|
|
9073
|
+
return "symbol" === b(t3) ? String(t3) : t3;
|
|
9061
9074
|
});
|
|
9062
9075
|
return new p("Invalid " + i2 + " `" + r3 + "` of value `" + String(a2) + "` supplied to `" + o3 + "`, expected one of " + c2 + ".");
|
|
9063
9076
|
}) : ("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 +9080,7 @@
|
|
|
9067
9080
|
for (var t2 = 0; t2 < e2.length; t2++) {
|
|
9068
9081
|
var i2 = e2[t2];
|
|
9069
9082
|
if ("function" != typeof i2)
|
|
9070
|
-
return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
9083
|
+
return r2("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + w2(i2) + " at index " + t2 + "."), a;
|
|
9071
9084
|
}
|
|
9072
9085
|
return m(function(t3, i3, r3, a2, s2) {
|
|
9073
9086
|
for (var c2 = [], l2 = 0; l2 < e2.length; l2++) {
|
|
@@ -9086,7 +9099,7 @@
|
|
|
9086
9099
|
for (var l2 in e2) {
|
|
9087
9100
|
var u2 = e2[l2];
|
|
9088
9101
|
if ("function" != typeof u2)
|
|
9089
|
-
return g(i2, r3, a2, l2,
|
|
9102
|
+
return g(i2, r3, a2, l2, b(u2));
|
|
9090
9103
|
var d2 = u2(s2, l2, i2, r3, a2 + "." + l2, n);
|
|
9091
9104
|
if (d2)
|
|
9092
9105
|
return d2;
|
|
@@ -9102,7 +9115,7 @@
|
|
|
9102
9115
|
for (var f2 in d2) {
|
|
9103
9116
|
var m2 = e2[f2];
|
|
9104
9117
|
if (o2(e2, f2) && "function" != typeof m2)
|
|
9105
|
-
return g(a2, s2, c2, f2,
|
|
9118
|
+
return g(a2, s2, c2, f2, b(m2));
|
|
9106
9119
|
if (!m2)
|
|
9107
9120
|
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
9121
|
var h2 = m2(l2, f2, a2, s2, c2 + "." + f2, n);
|
|
@@ -9140,7 +9153,7 @@
|
|
|
9140
9153
|
function h(e2) {
|
|
9141
9154
|
return m(function(t2, n2, o3, i2, r3, a2) {
|
|
9142
9155
|
var s2 = t2[n2];
|
|
9143
|
-
return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" +
|
|
9156
|
+
return v(s2) !== e2 ? new p("Invalid " + i2 + " `" + r3 + "` of type `" + b(s2) + "` supplied to `" + o3 + "`, expected `" + e2 + "`.", { expectedType: e2 }) : null;
|
|
9144
9157
|
});
|
|
9145
9158
|
}
|
|
9146
9159
|
function g(e2, t2, n2, o3, i2) {
|
|
@@ -9188,7 +9201,7 @@
|
|
|
9188
9201
|
return "symbol" === e3 || !!t3 && ("Symbol" === t3["@@toStringTag"] || "function" == typeof Symbol && t3 instanceof Symbol);
|
|
9189
9202
|
}(t2, e2) ? "symbol" : t2;
|
|
9190
9203
|
}
|
|
9191
|
-
function
|
|
9204
|
+
function b(e2) {
|
|
9192
9205
|
if (null == e2)
|
|
9193
9206
|
return "" + e2;
|
|
9194
9207
|
var t2 = v(e2);
|
|
@@ -9200,8 +9213,8 @@
|
|
|
9200
9213
|
}
|
|
9201
9214
|
return t2;
|
|
9202
9215
|
}
|
|
9203
|
-
function
|
|
9204
|
-
var t2 =
|
|
9216
|
+
function w2(e2) {
|
|
9217
|
+
var t2 = b(e2);
|
|
9205
9218
|
switch (t2) {
|
|
9206
9219
|
case "array":
|
|
9207
9220
|
case "object":
|
|
@@ -9218,7 +9231,7 @@
|
|
|
9218
9231
|
}, jg;
|
|
9219
9232
|
}()(Jg.isElement, true);
|
|
9220
9233
|
} else
|
|
9221
|
-
|
|
9234
|
+
Pg.exports = function() {
|
|
9222
9235
|
if (Wg)
|
|
9223
9236
|
return Hg;
|
|
9224
9237
|
Wg = 1;
|
|
@@ -9242,7 +9255,7 @@
|
|
|
9242
9255
|
return r2.PropTypes = r2, r2;
|
|
9243
9256
|
}, Hg;
|
|
9244
9257
|
}()();
|
|
9245
|
-
var Yg =
|
|
9258
|
+
var Yg = C(Pg.exports);
|
|
9246
9259
|
function Xg(e) {
|
|
9247
9260
|
return Xg = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
|
|
9248
9261
|
return typeof e2;
|
|
@@ -9271,12 +9284,12 @@
|
|
|
9271
9284
|
}
|
|
9272
9285
|
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
9286
|
"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",
|
|
9287
|
+
var gy = o.createContext(null), yy = "unmounted", vy = "exited", by = "entering", wy = "entered", ky = "exiting", xy = function(e) {
|
|
9275
9288
|
function t(t2, n2) {
|
|
9276
9289
|
var o2;
|
|
9277
9290
|
o2 = e.call(this, t2, n2) || this;
|
|
9278
9291
|
var i, r2 = n2 && !n2.isMounting ? t2.enter : t2.appear;
|
|
9279
|
-
return o2.appearStatus = null, t2.in ? r2 ? (i = vy, o2.appearStatus =
|
|
9292
|
+
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
9293
|
}
|
|
9281
9294
|
!function(e2, t2) {
|
|
9282
9295
|
e2.prototype = Object.create(t2.prototype), e2.prototype.constructor = e2, py(e2, t2);
|
|
@@ -9290,7 +9303,7 @@
|
|
|
9290
9303
|
var t2 = null;
|
|
9291
9304
|
if (e2 !== this.props) {
|
|
9292
9305
|
var n2 = this.state.status;
|
|
9293
|
-
this.props.in ? n2 !==
|
|
9306
|
+
this.props.in ? n2 !== by && n2 !== wy && (t2 = by) : n2 !== by && n2 !== wy || (t2 = ky);
|
|
9294
9307
|
}
|
|
9295
9308
|
this.updateStatus(false, t2);
|
|
9296
9309
|
}, n.componentWillUnmount = function() {
|
|
@@ -9300,9 +9313,9 @@
|
|
|
9300
9313
|
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
9314
|
}, n.updateStatus = function(e2, t2) {
|
|
9302
9315
|
if (void 0 === e2 && (e2 = false), null !== t2)
|
|
9303
|
-
if (this.cancelNextCallback(), t2 ===
|
|
9316
|
+
if (this.cancelNextCallback(), t2 === by) {
|
|
9304
9317
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
9305
|
-
var n2 = this.props.nodeRef ? this.props.nodeRef.current :
|
|
9318
|
+
var n2 = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this);
|
|
9306
9319
|
n2 && function(e3) {
|
|
9307
9320
|
e3.scrollTop;
|
|
9308
9321
|
}(n2);
|
|
@@ -9313,18 +9326,18 @@
|
|
|
9313
9326
|
else
|
|
9314
9327
|
this.props.unmountOnExit && this.state.status === vy && this.setState({ status: yy });
|
|
9315
9328
|
}, 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:
|
|
9329
|
+
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;
|
|
9330
|
+
!e2 && !n2 || my ? this.safeSetState({ status: wy }, function() {
|
|
9318
9331
|
t2.props.onEntered(r2);
|
|
9319
|
-
}) : (this.props.onEnter(r2, a), this.safeSetState({ status:
|
|
9332
|
+
}) : (this.props.onEnter(r2, a), this.safeSetState({ status: by }, function() {
|
|
9320
9333
|
t2.props.onEntering(r2, a), t2.onTransitionEnd(c, function() {
|
|
9321
|
-
t2.safeSetState({ status:
|
|
9334
|
+
t2.safeSetState({ status: wy }, function() {
|
|
9322
9335
|
t2.props.onEntered(r2, a);
|
|
9323
9336
|
});
|
|
9324
9337
|
});
|
|
9325
9338
|
}));
|
|
9326
9339
|
}, n.performExit = function() {
|
|
9327
|
-
var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 :
|
|
9340
|
+
var e2 = this, t2 = this.props.exit, n2 = this.getTimeouts(), o2 = this.props.nodeRef ? void 0 : w.findDOMNode(this);
|
|
9328
9341
|
t2 && !my ? (this.props.onExit(o2), this.safeSetState({ status: ky }, function() {
|
|
9329
9342
|
e2.props.onExiting(o2), e2.onTransitionEnd(n2.exit, function() {
|
|
9330
9343
|
e2.safeSetState({ status: vy }, function() {
|
|
@@ -9347,7 +9360,7 @@
|
|
|
9347
9360
|
}, this.nextCallback;
|
|
9348
9361
|
}, n.onTransitionEnd = function(e2, t2) {
|
|
9349
9362
|
this.setNextCallback(t2);
|
|
9350
|
-
var n2 = this.props.nodeRef ? this.props.nodeRef.current :
|
|
9363
|
+
var n2 = this.props.nodeRef ? this.props.nodeRef.current : w.findDOMNode(this), o2 = null == e2 && !this.props.addEndListener;
|
|
9351
9364
|
if (n2 && !o2) {
|
|
9352
9365
|
if (this.props.addEndListener) {
|
|
9353
9366
|
var i = this.props.nodeRef ? [this.nextCallback] : [n2, this.nextCallback], r2 = i[0], a = i[1];
|
|
@@ -9377,14 +9390,14 @@
|
|
|
9377
9390
|
return o.createElement(gy.Provider, { value: null }, "function" == typeof n2 ? n2(e2, o$1) : o.cloneElement(o.Children.only(n2), o$1));
|
|
9378
9391
|
}, t;
|
|
9379
9392
|
}(o.Component);
|
|
9380
|
-
function
|
|
9393
|
+
function Cy() {
|
|
9381
9394
|
}
|
|
9382
|
-
function
|
|
9383
|
-
return
|
|
9395
|
+
function Sy(e) {
|
|
9396
|
+
return Sy = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e2) {
|
|
9384
9397
|
return typeof e2;
|
|
9385
9398
|
} : function(e2) {
|
|
9386
9399
|
return e2 && "function" == typeof Symbol && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2;
|
|
9387
|
-
},
|
|
9400
|
+
}, Sy(e);
|
|
9388
9401
|
}
|
|
9389
9402
|
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
9403
|
var a = e[t];
|
|
@@ -9395,19 +9408,19 @@
|
|
|
9395
9408
|
for (var n = arguments.length, o2 = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
9396
9409
|
o2[i - 1] = arguments[i];
|
|
9397
9410
|
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:
|
|
9411
|
+
}, 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
9412
|
var Ny, Ey = ["tag", "horizontal", "isOpen", "className", "navbar", "cssModule", "children", "innerRef"];
|
|
9400
|
-
function
|
|
9401
|
-
return
|
|
9413
|
+
function Py() {
|
|
9414
|
+
return Py = Object.assign ? Object.assign.bind() : function(e) {
|
|
9402
9415
|
for (var t = 1; t < arguments.length; t++) {
|
|
9403
9416
|
var n = arguments[t];
|
|
9404
9417
|
for (var o2 in n)
|
|
9405
9418
|
Object.prototype.hasOwnProperty.call(n, o2) && (e[o2] = n[o2]);
|
|
9406
9419
|
}
|
|
9407
9420
|
return e;
|
|
9408
|
-
},
|
|
9421
|
+
}, Py.apply(this, arguments);
|
|
9409
9422
|
}
|
|
9410
|
-
function
|
|
9423
|
+
function Iy(e, t) {
|
|
9411
9424
|
if (null == e)
|
|
9412
9425
|
return {};
|
|
9413
9426
|
var n, o2, i = function(e2, t2) {
|
|
@@ -9461,7 +9474,7 @@
|
|
|
9461
9474
|
} else
|
|
9462
9475
|
n = o2.apply(this, arguments);
|
|
9463
9476
|
return function(e2, t2) {
|
|
9464
|
-
if (t2 && ("object" ===
|
|
9477
|
+
if (t2 && ("object" === Sy(t2) || "function" == typeof t2))
|
|
9465
9478
|
return t2;
|
|
9466
9479
|
if (void 0 !== t2)
|
|
9467
9480
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -9542,18 +9555,18 @@
|
|
|
9542
9555
|
} }, { key: "render", value: function() {
|
|
9543
9556
|
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
9557
|
t2.innerRef;
|
|
9545
|
-
var u, d, f, p =
|
|
9558
|
+
var u, d, f, p = Iy(t2, Ey), m = this.state.dimension, h = function(e3, t3) {
|
|
9546
9559
|
for (var n2, o2 = Array.isArray(t3) ? t3 : [t3], i = o2.length, r3 = {}; i > 0; )
|
|
9547
9560
|
r3[n2 = o2[i -= 1]] = e3[n2];
|
|
9548
9561
|
return r3;
|
|
9549
9562
|
}(p, ty), g = (u = p, d = ty, f = {}, Object.keys(u).forEach(function(e3) {
|
|
9550
9563
|
-1 === d.indexOf(e3) && (f[e3] = u[e3]);
|
|
9551
9564
|
}), f);
|
|
9552
|
-
return o.createElement(xy,
|
|
9565
|
+
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
9566
|
var r3 = function(e3) {
|
|
9554
9567
|
return _y[e3] || "collapse";
|
|
9555
9568
|
}(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,
|
|
9569
|
+
return o.createElement(n, Py({}, g, { style: By(By({}, g.style), d2), className: u2, ref: e2.nodeRef }), l);
|
|
9557
9570
|
});
|
|
9558
9571
|
} }]), t;
|
|
9559
9572
|
}();
|
|
@@ -9567,18 +9580,18 @@
|
|
|
9567
9580
|
}(e) && !function(e2) {
|
|
9568
9581
|
var t = Object.prototype.toString.call(e2);
|
|
9569
9582
|
return "[object RegExp]" === t || "[object Date]" === t || function(e3) {
|
|
9570
|
-
return e3.$$typeof ===
|
|
9583
|
+
return e3.$$typeof === Pv;
|
|
9571
9584
|
}(e2);
|
|
9572
9585
|
}(e);
|
|
9573
9586
|
};
|
|
9574
|
-
var
|
|
9575
|
-
function
|
|
9587
|
+
var Pv = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
9588
|
+
function Iv(e, t) {
|
|
9576
9589
|
return false !== t.clone && t.isMergeableObject(e) ? Tv((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
9577
9590
|
var n;
|
|
9578
9591
|
}
|
|
9579
9592
|
function Av(e, t, n) {
|
|
9580
9593
|
return e.concat(t).map(function(e2) {
|
|
9581
|
-
return
|
|
9594
|
+
return Iv(e2, n);
|
|
9582
9595
|
});
|
|
9583
9596
|
}
|
|
9584
9597
|
function Ov(e) {
|
|
@@ -9598,7 +9611,7 @@
|
|
|
9598
9611
|
function Dv(e, t, n) {
|
|
9599
9612
|
var o2 = {};
|
|
9600
9613
|
return n.isMergeableObject(e) && Ov(e).forEach(function(t2) {
|
|
9601
|
-
o2[t2] =
|
|
9614
|
+
o2[t2] = Iv(e[t2], n);
|
|
9602
9615
|
}), Ov(t).forEach(function(i) {
|
|
9603
9616
|
(function(e2, t2) {
|
|
9604
9617
|
return Lv(e2, t2) && !(Object.hasOwnProperty.call(e2, t2) && Object.propertyIsEnumerable.call(e2, t2));
|
|
@@ -9607,13 +9620,13 @@
|
|
|
9607
9620
|
return Tv;
|
|
9608
9621
|
var n2 = t2.customMerge(e2);
|
|
9609
9622
|
return "function" == typeof n2 ? n2 : Tv;
|
|
9610
|
-
}(i, n)(e[i], t[i], n) : o2[i] =
|
|
9623
|
+
}(i, n)(e[i], t[i], n) : o2[i] = Iv(t[i], n));
|
|
9611
9624
|
}), o2;
|
|
9612
9625
|
}
|
|
9613
9626
|
function Tv(e, t, n) {
|
|
9614
|
-
(n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified =
|
|
9627
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Av, n.isMergeableObject = n.isMergeableObject || Ev, n.cloneUnlessOtherwiseSpecified = Iv;
|
|
9615
9628
|
var o2 = Array.isArray(t);
|
|
9616
|
-
return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) :
|
|
9629
|
+
return o2 === Array.isArray(e) ? o2 ? n.arrayMerge(e, t, n) : Dv(e, t, n) : Iv(t, n);
|
|
9617
9630
|
}
|
|
9618
9631
|
Tv.all = function(e, t) {
|
|
9619
9632
|
if (!Array.isArray(e))
|
|
@@ -9622,7 +9635,7 @@
|
|
|
9622
9635
|
return Tv(e2, n, t);
|
|
9623
9636
|
}, {});
|
|
9624
9637
|
};
|
|
9625
|
-
|
|
9638
|
+
C(Tv);
|
|
9626
9639
|
const Mv = o.forwardRef((t, n) => {
|
|
9627
9640
|
const { onSearch: o$1, searchTerm: i, onClear: r2, className: a } = t, s = o.useContext(reactHooks.IOConnectContext);
|
|
9628
9641
|
return o.useEffect(() => {
|
|
@@ -9638,11 +9651,11 @@
|
|
|
9638
9651
|
}, hideBulkActions: () => {
|
|
9639
9652
|
} }), Hv = () => o.useContext(zv);
|
|
9640
9653
|
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 } =
|
|
9654
|
+
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
9655
|
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
9656
|
}
|
|
9644
9657
|
function Vv({ text: n = "Notifications", counter: o2, ...i }) {
|
|
9645
|
-
const { notificationsCount: r2 } =
|
|
9658
|
+
const { notificationsCount: r2 } = _p();
|
|
9646
9659
|
return jsxRuntime.jsx(D, { text: n, size: "large", ...i, children: (o2 ?? true) && jsxRuntime.jsxs("span", { children: ["(", r2, ")"] }) });
|
|
9647
9660
|
}
|
|
9648
9661
|
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 +9664,9 @@
|
|
|
9651
9664
|
const i = qv.indexOf(e2.severity || n), r2 = qv.indexOf(o2.severity || n);
|
|
9652
9665
|
return (t ? -1 : 1) * (i - r2);
|
|
9653
9666
|
});
|
|
9654
|
-
}, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv },
|
|
9655
|
-
function
|
|
9656
|
-
const [n, o$1] = o.useState([]), { NotificationsList: i, Notification: r2 } =
|
|
9667
|
+
}, Zv = { [Uv]: Yv, [Kv]: Xv, [Gv]: Qv }, eb = { severity: "Priority", newest: "Newest", oldest: "Oldest" };
|
|
9668
|
+
function tb({ ...t }) {
|
|
9669
|
+
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
9670
|
const e = ((e2, t2) => {
|
|
9658
9671
|
if (!e2)
|
|
9659
9672
|
return [];
|
|
@@ -9670,8 +9683,8 @@
|
|
|
9670
9683
|
}
|
|
9671
9684
|
})(a, m);
|
|
9672
9685
|
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())) || ((
|
|
9686
|
+
var _a2, _b2;
|
|
9687
|
+
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
9688
|
});
|
|
9676
9689
|
}, [y, a, m]);
|
|
9677
9690
|
return o.useEffect(() => {
|
|
@@ -9694,30 +9707,30 @@
|
|
|
9694
9707
|
g.current && ((_a2 = g.current) == null ? void 0 : _a2.scrollTo({ top: 0, behavior: "smooth" }));
|
|
9695
9708
|
}, [y, c, p, m]), jsxRuntime.jsx(Od, { ref: g, element: Us, elementProps: t, children: jsxRuntime.jsx(i, { notifications: n, Notification: r2 }) });
|
|
9696
9709
|
}
|
|
9697
|
-
function
|
|
9698
|
-
const { FooterButtons: n } =
|
|
9710
|
+
function nb({ ...t }) {
|
|
9711
|
+
const { FooterButtons: n } = Rb();
|
|
9699
9712
|
return jsxRuntime.jsx(Ks, { ...t, children: jsxRuntime.jsx(n, {}) });
|
|
9700
9713
|
}
|
|
9701
|
-
function
|
|
9702
|
-
const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } =
|
|
9714
|
+
function ob({ className: n, ...o$1 }) {
|
|
9715
|
+
const { FooterButtonClearAll: i, FooterButtonClearAllOld: r2 } = Rb(), { notifications: a } = _p(), [s, c] = o.useState(false);
|
|
9703
9716
|
return o.useEffect(() => {
|
|
9704
9717
|
a.filter((e) => "Stale" === e.state || "Acknowledged" === e.state).length > 0 ? c(true) : c(false);
|
|
9705
9718
|
}, [a]), jsxRuntime.jsxs(ae, { className: n, align: "right", ...o$1, children: [jsxRuntime.jsx(r2, { disabled: !s }), jsxRuntime.jsx(i, { disabled: a.length <= 0 })] });
|
|
9706
9719
|
}
|
|
9707
|
-
function
|
|
9708
|
-
const { clearAll: o2 } =
|
|
9720
|
+
function ib({ text: t = "Clear All", ...n }) {
|
|
9721
|
+
const { clearAll: o2 } = _p();
|
|
9709
9722
|
return jsxRuntime.jsx($, { text: t, onClick: () => {
|
|
9710
9723
|
o2();
|
|
9711
9724
|
}, ...n });
|
|
9712
9725
|
}
|
|
9713
|
-
function
|
|
9714
|
-
const { clearAllOld: o2 } =
|
|
9726
|
+
function rb({ text: t = "Clear Old", ...n }) {
|
|
9727
|
+
const { clearAllOld: o2 } = _p();
|
|
9715
9728
|
return jsxRuntime.jsx($, { text: t, onClick: () => {
|
|
9716
9729
|
o2();
|
|
9717
9730
|
}, ...n });
|
|
9718
9731
|
}
|
|
9719
|
-
function
|
|
9720
|
-
const t = Ud(), { onClose: n, settings: o$1 } =
|
|
9732
|
+
function ab(e) {
|
|
9733
|
+
const t = Ud(), { onClose: n, settings: o$1 } = _p(), { isPanelVisible: i } = Hv(), { id: r2, onClick: s, updateState: c } = e, l = o.useCallback(async () => {
|
|
9721
9734
|
if (!s)
|
|
9722
9735
|
return;
|
|
9723
9736
|
if (!t) {
|
|
@@ -9742,14 +9755,14 @@
|
|
|
9742
9755
|
}, [l]);
|
|
9743
9756
|
return { handleClick: l, handleWrapperClick: u };
|
|
9744
9757
|
}
|
|
9745
|
-
function
|
|
9746
|
-
const a = E("io-notification-header", n), { HeaderCount: s, HeaderBadge: c, HeaderTitle: l, HeaderTimestamp: u, HeaderButtonSnooze: d, HeaderButtonClose: f } =
|
|
9758
|
+
function sb({ className: n, notification: o2, onClick: i, ...r2 }) {
|
|
9759
|
+
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
9760
|
return jsxRuntime.jsxs("div", { className: a, onClick: async (e) => {
|
|
9748
9761
|
await p(e), i == null ? void 0 : i(e);
|
|
9749
9762
|
}, ...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
9763
|
}
|
|
9751
|
-
function
|
|
9752
|
-
const { settings: o2, notificationStacks: i } =
|
|
9764
|
+
function cb({ notification: t, ...n }) {
|
|
9765
|
+
const { settings: o2, notificationStacks: i } = _p(), { isPanelVisible: r2 } = Hv(), { toastStacking: a, stackBy: s } = o2, c = "application" === s ? "source" : s ?? "source";
|
|
9753
9766
|
let l = 0;
|
|
9754
9767
|
if (a) {
|
|
9755
9768
|
const e = i.find((e2) => e2.key === t[c]);
|
|
@@ -9757,59 +9770,59 @@
|
|
|
9757
9770
|
}
|
|
9758
9771
|
return r2 || !a || l <= 1 ? null : jsxRuntime.jsx(qs, { ...n, children: l > 9 ? "9+" : l });
|
|
9759
9772
|
}
|
|
9760
|
-
function
|
|
9773
|
+
function lb({ className: t, notification: n, ...o2 }) {
|
|
9761
9774
|
if (!(n == null ? void 0 : n.severity) || "None" === n.severity)
|
|
9762
9775
|
return null;
|
|
9763
9776
|
const i = E("io-notification-header-badge", t);
|
|
9764
9777
|
return jsxRuntime.jsx(qs, { className: i, ...o2, children: n.severity });
|
|
9765
9778
|
}
|
|
9766
|
-
function
|
|
9779
|
+
function ub({ className: n, state: o2, severity: i = "None", icon: r2, ...a }) {
|
|
9767
9780
|
const s = E("io-notification-header-icon", n), { isPanelVisible: c } = Hv();
|
|
9768
9781
|
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
9782
|
}
|
|
9770
|
-
function
|
|
9783
|
+
function db({ className: t, notification: { appTitle: n }, ...o2 }) {
|
|
9771
9784
|
const i = E("io-notification-header-title", t);
|
|
9772
9785
|
return jsxRuntime.jsx("div", { className: i, ...o2, children: n });
|
|
9773
9786
|
}
|
|
9774
|
-
function
|
|
9787
|
+
function fb({ className: t, notification: { timestamp: n, state: o2, snooze: i }, ...r2 }) {
|
|
9775
9788
|
const a = E("io-notification-timestamp", t);
|
|
9776
9789
|
return jsxRuntime.jsx("small", i && "Snoozed" === o2 ? { className: a, ...r2, children: "Snoozed" } : { className: a, ...r2, children: Kf(n ?? 0) ?? "Just Now" });
|
|
9777
9790
|
}
|
|
9778
|
-
function
|
|
9779
|
-
var _a2,
|
|
9780
|
-
const { settings: i, snooze: r2 } =
|
|
9791
|
+
function pb({ notification: { id: t, state: n }, ...o$1 }) {
|
|
9792
|
+
var _a2, _b2;
|
|
9793
|
+
const { settings: i, snooze: r2 } = _p(), s = o.useCallback((e) => {
|
|
9781
9794
|
var _a3;
|
|
9782
9795
|
e.stopPropagation(), r2 && r2(t, ((_a3 = i.snooze) == null ? void 0 : _a3.duration) ?? 0);
|
|
9783
9796
|
}, [t, r2, (_a2 = i.snooze) == null ? void 0 : _a2.duration]);
|
|
9784
|
-
return r2 && "Snoozed" !== n && ((
|
|
9797
|
+
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
9798
|
}
|
|
9786
|
-
function
|
|
9787
|
-
const i = Ud(), { onClose: r2 } =
|
|
9799
|
+
function mb({ notification: { id: t, updateState: n }, ...o$1 }) {
|
|
9800
|
+
const i = Ud(), { onClose: r2 } = _p(), { isPanelVisible: s } = Hv(), c = o.useCallback((e) => {
|
|
9788
9801
|
e.stopPropagation(), !i || s ? r2(t) : n("Acknowledged").catch(console.error);
|
|
9789
9802
|
}, [i, t, r2, s, n]);
|
|
9790
|
-
return jsxRuntime.jsx(
|
|
9803
|
+
return jsxRuntime.jsx(I, { icon: "close", iconSize: "10", tabIndex: -1, onClick: c, ...o$1 });
|
|
9791
9804
|
}
|
|
9792
|
-
function
|
|
9793
|
-
const r2 = E("io-notification-body", n), { BodyIcon: a, BodyTitle: s, BodyDescription: c } =
|
|
9805
|
+
function hb({ className: n, notification: o2, ...i }) {
|
|
9806
|
+
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
9807
|
return jsxRuntime.jsxs("div", { className: r2, role: "button", tabIndex: 0, onKeyDown: async (e) => {
|
|
9795
9808
|
R(e) && await f();
|
|
9796
9809
|
}, 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
9810
|
}
|
|
9798
|
-
function
|
|
9811
|
+
function gb({ className: t, icon: n, altText: o2 = "notification icon", ...i }) {
|
|
9799
9812
|
if (!n)
|
|
9800
9813
|
return null;
|
|
9801
9814
|
const r2 = E("io-notification-body-icon", t);
|
|
9802
9815
|
return jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsx("img", { src: n, alt: o2 }) });
|
|
9803
9816
|
}
|
|
9804
|
-
function
|
|
9817
|
+
function yb({ text: t, ...n }) {
|
|
9805
9818
|
return jsxRuntime.jsx(D, { text: t, ...n });
|
|
9806
9819
|
}
|
|
9807
|
-
function
|
|
9820
|
+
function vb({ className: t, text: n, ...o2 }) {
|
|
9808
9821
|
const i = E("io-notification-body-description", t);
|
|
9809
9822
|
return jsxRuntime.jsx("p", { className: i, ...o2, children: n });
|
|
9810
9823
|
}
|
|
9811
|
-
function
|
|
9812
|
-
const i = E("io-notification-footer", n), { FooterButton: r2 } =
|
|
9824
|
+
function bb({ className: n, notification: o$1 }) {
|
|
9825
|
+
const i = E("io-notification-footer", n), { FooterButton: r2 } = Sb(), { handleWrapperClick: a } = ab(o$1), s = o.useMemo(() => function(e) {
|
|
9813
9826
|
const t = [], n2 = {};
|
|
9814
9827
|
if (!e)
|
|
9815
9828
|
return;
|
|
@@ -9836,27 +9849,27 @@
|
|
|
9836
9849
|
}(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
9850
|
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
9851
|
}
|
|
9839
|
-
function
|
|
9852
|
+
function wb({ notificationAction: t, ...n }) {
|
|
9840
9853
|
const o$1 = o.useCallback((e) => {
|
|
9841
9854
|
e.stopPropagation(), t.onClick({ close: true });
|
|
9842
9855
|
}, [t]);
|
|
9843
9856
|
return jsxRuntime.jsx($, { text: t.title, onClick: o$1, ...n });
|
|
9844
9857
|
}
|
|
9845
|
-
const
|
|
9846
|
-
const o$1 = o.useMemo(() => ({ ...
|
|
9847
|
-
return jsxRuntime.jsx(
|
|
9858
|
+
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 }) => {
|
|
9859
|
+
const o$1 = o.useMemo(() => ({ ...kb, ...n }), [n]);
|
|
9860
|
+
return jsxRuntime.jsx(xb.Provider, { value: o$1, children: t });
|
|
9848
9861
|
});
|
|
9849
|
-
function
|
|
9850
|
-
return { ...o.useContext(
|
|
9862
|
+
function Sb(e) {
|
|
9863
|
+
return { ...o.useContext(xb), ...e };
|
|
9851
9864
|
}
|
|
9852
|
-
function
|
|
9853
|
-
const { Header: r2, Body: a, Footer: s } =
|
|
9865
|
+
function Nb({ className: n, notification: o2, ...i }) {
|
|
9866
|
+
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
9867
|
return jsxRuntime.jsxs("div", { className: l, ...i, children: [jsxRuntime.jsx(r2, { notification: o2 }), jsxRuntime.jsx(a, { notification: o2 }), jsxRuntime.jsx(s, { notification: o2 })] });
|
|
9855
9868
|
}
|
|
9856
|
-
function
|
|
9857
|
-
return jsxRuntime.jsx(
|
|
9869
|
+
function Eb({ components: t, notification: n, ...o2 }) {
|
|
9870
|
+
return jsxRuntime.jsx(Cb, { components: t, children: jsxRuntime.jsx(Nb, { notification: n, ...o2 }) });
|
|
9858
9871
|
}
|
|
9859
|
-
function
|
|
9872
|
+
function Pb({ className: n, notifications: o$1, ...i }) {
|
|
9860
9873
|
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
9874
|
s(true);
|
|
9862
9875
|
}, []), m = o.useCallback((e) => {
|
|
@@ -9864,46 +9877,46 @@
|
|
|
9864
9877
|
e2.close();
|
|
9865
9878
|
});
|
|
9866
9879
|
}, [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(
|
|
9880
|
+
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
9881
|
}
|
|
9869
|
-
function
|
|
9870
|
-
const { notificationStacks: o2 } =
|
|
9871
|
-
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: o2.map((n) => jsxRuntime.jsx(
|
|
9882
|
+
function Ib({ ...t }) {
|
|
9883
|
+
const { notificationStacks: o2 } = _p();
|
|
9884
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: o2.map((n) => jsxRuntime.jsx(Pb, { notifications: n.items, ...t }, n.key)) });
|
|
9872
9885
|
}
|
|
9873
|
-
|
|
9874
|
-
const
|
|
9886
|
+
Cb.displayName = "ComponentsStoreProvider";
|
|
9887
|
+
const Ab = ({ notification: n, Notification: o2, ...i }) => {
|
|
9875
9888
|
var _a2;
|
|
9876
|
-
const { configuration: r2, isBulkActionsSupported: a, selectedNotifications: s, selectNotification: c } =
|
|
9889
|
+
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
9890
|
if (!l && f)
|
|
9878
9891
|
return null;
|
|
9879
9892
|
const p = l && a && u, m = s.includes(n.id);
|
|
9880
9893
|
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
9894
|
};
|
|
9882
|
-
function
|
|
9883
|
-
const s = E("io-notification-list", n), { settings: c } =
|
|
9884
|
-
return jsxRuntime.jsxs("div", { className: s, ...a, children: [d && jsxRuntime.jsx(
|
|
9895
|
+
function Ob({ className: n, Notification: o2, notifications: i = [], noNotificationText: r2 = "No notifications to display", ...a }) {
|
|
9896
|
+
const s = E("io-notification-list", n), { settings: c } = _p(), { isPanelVisible: l } = Hv(), { toastStacking: u } = c, d = u && !l, f = i.length > 0;
|
|
9897
|
+
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
9898
|
}
|
|
9886
|
-
const
|
|
9887
|
-
const { notificationsCount: o2 = 0 } =
|
|
9899
|
+
const Lb = { Header: Wv, HeaderCaptionTitle: Vv, HeaderCaptionCount: function({ variant: t = "primary", ...n }) {
|
|
9900
|
+
const { notificationsCount: o2 = 0 } = _p();
|
|
9888
9901
|
return 0 === o2 ? null : jsxRuntime.jsx(L, { variant: t, ...n, children: o2 > 99 ? "99+" : o2 });
|
|
9889
9902
|
}, HeaderCaptionButtonSettings: function({ icon: t = "cog", size: n = "32", variant: o2 = "circle", ...i }) {
|
|
9890
|
-
return Ud() ? jsxRuntime.jsx(
|
|
9903
|
+
return Ud() ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o2, ...i }) : null;
|
|
9891
9904
|
}, HeaderCaptionButtonClose: function({ icon: t = "close", size: n = "32", variant: o2 = "circle", onClick: i, ...r2 }) {
|
|
9892
|
-
const { hidePanel: a } =
|
|
9893
|
-
return jsxRuntime.jsx(
|
|
9905
|
+
const { hidePanel: a } = _p(), s = Ud();
|
|
9906
|
+
return jsxRuntime.jsx(I, { icon: t, size: n, variant: o2, onClick: (e) => {
|
|
9894
9907
|
i ? i(e) : s && a();
|
|
9895
9908
|
}, ...r2 });
|
|
9896
9909
|
}, HeaderActions: function({ className: n, ...o2 }) {
|
|
9897
|
-
const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } =
|
|
9910
|
+
const i = E("io-panel-header-actions", n), { HeaderActionSort: r2, HeaderActionView: a, HeaderActionClear: s, HeaderActionEdit: c } = Rb();
|
|
9898
9911
|
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
9912
|
}, HeaderActionSort: function({ text: n = "Sort by", ...o$1 }) {
|
|
9900
9913
|
const { sortNotificationsBy: i, setSortBy: r2 } = Hv(), { onNotificationsSort: s } = (() => {
|
|
9901
|
-
const { notifications: e } =
|
|
9914
|
+
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
9915
|
n2((t2) => ({ key: e2, descending: t2.key !== e2 ? Jv.descending : !t2.descending }));
|
|
9903
9916
|
}, []);
|
|
9904
9917
|
return { onNotificationsSort: s2, sortedNotifications: r3 };
|
|
9905
9918
|
})();
|
|
9906
|
-
return jsxRuntime.jsxs(re, { variant: "light", ...o$1, children: [jsxRuntime.jsxs(re.Button, { variant: "link", children: [n, " ", jsxRuntime.jsx("strong", { children:
|
|
9919
|
+
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
9920
|
const n2 = "Priority" === t ? "severity" : t.toLowerCase();
|
|
9908
9921
|
return jsxRuntime.jsx(re.Item, { isSelected: i === n2, onClick: () => {
|
|
9909
9922
|
r2(n2), s(n2);
|
|
@@ -9911,63 +9924,63 @@
|
|
|
9911
9924
|
}) }) })] });
|
|
9912
9925
|
}, HeaderActionView: function({ text: n = "View", ...o2 }) {
|
|
9913
9926
|
var _a2;
|
|
9914
|
-
const { settings: i } =
|
|
9927
|
+
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
9928
|
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
9929
|
}, HeaderActionClear: function({ text: t = "Clear All", ...n }) {
|
|
9917
|
-
const { clearAll: o2, notificationsCount: i } =
|
|
9930
|
+
const { clearAll: o2, notificationsCount: i } = _p();
|
|
9918
9931
|
return jsxRuntime.jsx($, { variant: "link", text: t, onClick: o2, disabled: 0 === i, ...n });
|
|
9919
9932
|
}, HeaderActionEdit: function({ tooltip: t = "Bulk Edit", ...n }) {
|
|
9920
|
-
const { isBulkActionsSupported: o2, notificationsCount: i } =
|
|
9921
|
-
return o2 ? jsxRuntime.jsx(
|
|
9933
|
+
const { isBulkActionsSupported: o2, notificationsCount: i } = _p(), { showBulkActions: r2 } = Hv();
|
|
9934
|
+
return o2 ? jsxRuntime.jsx(I, { icon: "pen-to-square", title: t, size: "32", onClick: r2, disabled: 0 === i, ...n }) : null;
|
|
9922
9935
|
}, 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 } =
|
|
9936
|
+
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
9937
|
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
9938
|
}, HeaderBulkActionSelect: function({ ...t }) {
|
|
9926
|
-
const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } =
|
|
9939
|
+
const { isBulkActionsSupported: n, selectedNotifications: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
|
|
9927
9940
|
return n ? jsxRuntime.jsx(jd, { checked: r2 === o2.length && r2 > 0, onChange: (e) => i("all", e.target.checked), disabled: 0 === r2, ...t }) : null;
|
|
9928
9941
|
}, HeaderBulkActionSelectDropdown: function({ ...n }) {
|
|
9929
|
-
const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } =
|
|
9942
|
+
const { isBulkActionsSupported: o2, selectAllNotifications: i, notificationsCount: r2 } = _p();
|
|
9930
9943
|
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
9944
|
}, 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 } =
|
|
9945
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9933
9946
|
l(c, "Seen");
|
|
9934
9947
|
}, [c, l]);
|
|
9935
|
-
return s ? jsxRuntime.jsx(
|
|
9948
|
+
return s ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
|
|
9936
9949
|
}, 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 } =
|
|
9950
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, setStates: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9938
9951
|
l(c, "Active");
|
|
9939
9952
|
}, [c, l]);
|
|
9940
|
-
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;
|
|
9941
9954
|
}, 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 } =
|
|
9955
|
+
var _a2, _b2;
|
|
9956
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, snoozeMany: l, settings: u, notificationsCount: d } = _p(), f = o.useCallback(() => {
|
|
9944
9957
|
var _a3;
|
|
9945
9958
|
l(c, ((_a3 = u.snooze) == null ? void 0 : _a3.duration) ?? 0);
|
|
9946
9959
|
}, [c, l, (_a2 = u.snooze) == null ? void 0 : _a2.duration]);
|
|
9947
|
-
return s && ((
|
|
9960
|
+
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
9961
|
}, 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 } =
|
|
9962
|
+
const { isBulkActionsSupported: s, selectedNotifications: c, clearMany: l, notificationsCount: u } = _p(), d = o.useCallback(() => {
|
|
9950
9963
|
l(c);
|
|
9951
9964
|
}, [c, l]);
|
|
9952
|
-
return s ? jsxRuntime.jsx(
|
|
9965
|
+
return s ? jsxRuntime.jsx(I, { icon: t, size: n, variant: o$1, title: i, onClick: d, disabled: 0 === u, ...r2 }) : null;
|
|
9953
9966
|
}, HeaderBulkActionClose: function({ text: t = "Done", variant: n = "primary", ...o2 }) {
|
|
9954
|
-
const { isBulkActionsSupported: i, notificationsCount: r2 } =
|
|
9967
|
+
const { isBulkActionsSupported: i, notificationsCount: r2 } = _p(), { hideBulkActions: a } = Hv();
|
|
9955
9968
|
return i ? jsxRuntime.jsx($, { variant: n, text: t, onClick: a, disabled: 0 === r2, ...o2 }) : null;
|
|
9956
9969
|
}, 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 } =
|
|
9970
|
+
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
9971
|
p(""), l.current && l.current.focus();
|
|
9959
9972
|
}, [p]);
|
|
9960
9973
|
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(
|
|
9974
|
+
}, 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 }) => {
|
|
9975
|
+
const o$1 = o.useMemo(() => ({ ...Lb, ...n }), [n]);
|
|
9976
|
+
return jsxRuntime.jsx(Db.Provider, { value: o$1, children: t });
|
|
9964
9977
|
});
|
|
9965
|
-
function
|
|
9966
|
-
return { ...o.useContext(
|
|
9978
|
+
function Rb(e) {
|
|
9979
|
+
return { ...o.useContext(Db), ...e };
|
|
9967
9980
|
}
|
|
9968
|
-
|
|
9969
|
-
const
|
|
9970
|
-
const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } =
|
|
9981
|
+
Tb.displayName = "ComponentsStoreProvider";
|
|
9982
|
+
const Fb = ({ className: t, notifications: n, maxToasts: o$1 = 1, ...i }) => {
|
|
9983
|
+
const r2 = E("io-toasts-body", t), { NotificationsList: a, Notification: s } = zb(), [c, u] = o.useState([]);
|
|
9971
9984
|
return o.useEffect(() => {
|
|
9972
9985
|
const e = o$1 < 0 ? n.length : o$1, t2 = n.filter((e2) => "Active" === e2.state).slice(0, e);
|
|
9973
9986
|
for (const e2 of t2)
|
|
@@ -9975,30 +9988,30 @@
|
|
|
9975
9988
|
u(t2);
|
|
9976
9989
|
}, [n, o$1]), jsxRuntime.jsx("div", { className: r2, ...i, children: jsxRuntime.jsx(a, { Notification: s, notifications: c, noNotificationText: "" }) });
|
|
9977
9990
|
};
|
|
9978
|
-
|
|
9979
|
-
const $
|
|
9980
|
-
const o$1 = o.useMemo(() => ({ ...$
|
|
9981
|
-
return jsxRuntime.jsx(
|
|
9991
|
+
Fb.displayName = "Body";
|
|
9992
|
+
const $b = { Body: Fb, Notification: Eb, NotificationsList: Ob }, _b = o.createContext($b), jb = o.memo(({ children: t, components: n }) => {
|
|
9993
|
+
const o$1 = o.useMemo(() => ({ ...$b, ...n }), [n]);
|
|
9994
|
+
return jsxRuntime.jsx(_b.Provider, { value: o$1, children: t });
|
|
9982
9995
|
});
|
|
9983
|
-
function
|
|
9984
|
-
return { ...o.useContext(
|
|
9985
|
-
}
|
|
9986
|
-
|
|
9987
|
-
const
|
|
9988
|
-
const { General:
|
|
9989
|
-
return jsxRuntime.
|
|
9990
|
-
},
|
|
9991
|
-
const { Theme: o2 } =
|
|
9996
|
+
function zb(e) {
|
|
9997
|
+
return { ...o.useContext(_b), ...e };
|
|
9998
|
+
}
|
|
9999
|
+
jb.displayName = "ComponentsStoreProvider";
|
|
10000
|
+
const Kb = (n) => {
|
|
10001
|
+
const { General: o$1, Layouts: i } = Qb(), r2 = [{ key: "general", Component: o$1 }, { key: "layouts", Component: i }];
|
|
10002
|
+
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)) });
|
|
10003
|
+
}, Gb = ({ title: t = "General", ...n }) => {
|
|
10004
|
+
const { Theme: o2 } = Qb();
|
|
9992
10005
|
return jsxRuntime.jsx(T, { title: t, "data-testid": "preferences-panel-general-block", ...n, children: jsxRuntime.jsx(o2, {}) });
|
|
9993
|
-
},
|
|
9994
|
-
const { LayoutsShowDeletePrompt: o2 } =
|
|
10006
|
+
}, qb = ({ title: t = "Layouts", ...n }) => {
|
|
10007
|
+
const { LayoutsShowDeletePrompt: o2 } = Qb();
|
|
9995
10008
|
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(
|
|
10009
|
+
}, Jb = { Body: Kb, General: Gb, Theme: vf, Layouts: qb, LayoutsShowUnsavedChangesPrompt: Tf, LayoutsShowDeletePrompt: Rf }, Yb = o.createContext(Jb), Xb = o.memo(({ children: t, components: n }) => {
|
|
10010
|
+
const o$1 = o.useMemo(() => ({ ...Jb, ...n }), [n]);
|
|
10011
|
+
return jsxRuntime.jsx(Yb.Provider, { value: o$1, children: t });
|
|
9999
10012
|
});
|
|
10000
|
-
|
|
10001
|
-
const
|
|
10013
|
+
Xb.displayName = "PreferencesPanelComponentsStoreProvider";
|
|
10014
|
+
const Qb = () => o.useContext(Yb);
|
|
10002
10015
|
function useExternalWindowPopup() {
|
|
10003
10016
|
const { getContainer, closePopup, createPopup, hidePopup, showPopup, isOpen, isVisible, popup } = Qd();
|
|
10004
10017
|
const resizePopup = o.useCallback(async (size) => {
|
|
@@ -10021,9 +10034,9 @@
|
|
|
10021
10034
|
const requestFrameFocus = (frameId) => webGroupsManager == null ? void 0 : webGroupsManager.requestFrameFocus(frameId);
|
|
10022
10035
|
const requestGroupFocus = () => webGroupsManager == null ? void 0 : webGroupsManager.requestGroupFocus();
|
|
10023
10036
|
const openTabOverflowPopup = ({ frameId, location }) => webGroupsManager.openTabOverflowPopup(frameId, location);
|
|
10024
|
-
const onCommitGroupCaptionEditingRequested = (targetId,
|
|
10025
|
-
const onCommitFlatCaptionEditingRequested = (targetId,
|
|
10026
|
-
const onCommitTabCaptionEditingRequested = (targetId,
|
|
10037
|
+
const onCommitGroupCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Group, targetId, cb2);
|
|
10038
|
+
const onCommitFlatCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Frame, targetId, cb2);
|
|
10039
|
+
const onCommitTabCaptionEditingRequested = (targetId, cb2) => webGroupsManager.onCommitCaptionEditingRequested(TargetType.Tab, targetId, cb2);
|
|
10027
10040
|
exports2.CloneButton = CloneButton;
|
|
10028
10041
|
exports2.CloseButton = CloseButton;
|
|
10029
10042
|
exports2.CustomButton = CustomButton;
|