@owp/core 1.30.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/colors/chart.d.ts +3 -0
- package/colors/chart.js +1 -0
- package/contexts.d.ts +3 -0
- package/contexts.js +1 -0
- package/dist/{Close-DnXyQZKh.js → Close-JeenM19L.js} +280 -282
- package/dist/Close-JeenM19L.js.map +1 -0
- package/dist/{OwpStoreProvider-Bx5p7ooQ.js → OwpStoreProvider-Cl8MlcxC.js} +3 -3
- package/dist/OwpStoreProvider-Cl8MlcxC.js.map +1 -0
- package/dist/OwpUtils-CDsU9hQL.js +383 -0
- package/dist/OwpUtils-CDsU9hQL.js.map +1 -0
- package/dist/colorMap-DP-DCZbV.js +82 -0
- package/dist/colorMap-DP-DCZbV.js.map +1 -0
- package/dist/colors/chart.js +6 -0
- package/dist/colors/chart.js.map +1 -0
- package/dist/colors.js +4 -1
- package/dist/colors.js.map +1 -1
- package/dist/commonCodeUtils-Dt6TXOku.js +42 -0
- package/dist/commonCodeUtils-Dt6TXOku.js.map +1 -0
- package/dist/contexts.js +103 -0
- package/dist/contexts.js.map +1 -0
- package/dist/{owpDark-DAY0F6Ph.js → dark-DAY0F6Ph.js} +1 -1
- package/dist/dark-DAY0F6Ph.js.map +1 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js +1496 -0
- package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js.map +1 -0
- package/dist/exceljs.min-CwK2XNVA.js +23595 -0
- package/dist/exceljs.min-CwK2XNVA.js.map +1 -0
- package/dist/hooks.js +119 -73
- package/dist/hooks.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +27332 -96
- package/dist/index.js.map +1 -1
- package/dist/isTypedArray-DGEiG32J.js +637 -0
- package/dist/isTypedArray-DGEiG32J.js.map +1 -0
- package/dist/language-s_jJgpD5.js +35 -0
- package/dist/language-s_jJgpD5.js.map +1 -0
- package/dist/lazyLoadedSlices-D_EtusDd.js +2773 -0
- package/dist/lazyLoadedSlices-D_EtusDd.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/store.js +2 -2
- package/dist/{toUpper-i_I6Tyuv.js → toUpper-D7kus_mL.js} +2 -2
- package/dist/{toUpper-i_I6Tyuv.js.map → toUpper-D7kus_mL.js.map} +1 -1
- package/dist/{treeGridUtil-WTM_djsN.js → treeGridUtil-Ch99srur.js} +116 -115
- package/dist/treeGridUtil-Ch99srur.js.map +1 -0
- package/dist/types/colors/chart/colorMap.d.ts +8 -0
- package/dist/types/colors/chart/index.d.ts +1 -0
- package/dist/types/colors/index.d.ts +2 -2
- package/dist/types/colors/palettes/index.d.ts +2 -0
- package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
- package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +2 -2
- package/dist/types/components/OwpHidden/OwpHidden.d.ts +19 -0
- package/dist/types/components/OwpHidden/index.d.ts +2 -0
- package/dist/types/components/OwpLayout/OwpLayout.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -2
- package/dist/types/components/OwpPageCarded/OwpPageCardedSidebar.d.ts +1 -1
- package/dist/types/components/OwpPicker/DatePickerInput.d.ts +1 -1
- package/dist/types/components/OwpPicker/OwpTimePicker.d.ts +0 -2
- package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +5 -5
- package/dist/types/components/OwpTable/OwpTable.d.ts +1 -3
- package/dist/types/components/OwpTabs/OwpTab.d.ts +2 -4
- package/dist/types/components/OwpTabs/OwpTabs.d.ts +2 -4
- package/dist/types/{default-settings/OwpDefaultSettings.d.ts → configs/defaultConfig.d.ts} +1 -1
- package/dist/types/{components/layouts/layout2/Layout2Config.d.ts → configs/layoutConfig.d.ts} +12 -15
- package/dist/types/{context → contexts}/OwpAppProvider.d.ts +10 -3
- package/dist/types/hooks/index.d.ts +4 -2
- package/dist/types/{store/hooks.d.ts → hooks/useAppStore.d.ts} +1 -1
- package/dist/types/hooks/useCurrentLanguage.d.ts +1 -5
- package/dist/types/hooks/useInitApp.d.ts +8 -0
- package/dist/types/hooks/useInitCommonCodes.d.ts +4 -0
- package/dist/types/hooks/useLogoSrc.d.ts +8 -0
- package/dist/types/hooks/useNavigation.d.ts +3 -18
- package/dist/types/hooks/useOwpTranslation.d.ts +0 -2
- package/dist/types/hooks/useThemeMediaQuery.d.ts +1 -1
- package/dist/types/index.d.ts +3 -29
- package/dist/types/{components/layouts/layout3/Layout3.d.ts → layout/Layout.d.ts} +4 -4
- package/dist/types/layout/components/layouts/FooterLayout.d.ts +9 -0
- package/dist/types/layout/components/layouts/LeftSideLayout.d.ts +6 -0
- package/dist/types/layout/components/layouts/NavbarToggleFabLayout.d.ts +8 -0
- package/dist/types/layout/components/layouts/NavbarWrapperLayout.d.ts +5 -0
- package/dist/types/layout/components/menus/LogoutMenu.d.ts +8 -0
- package/dist/types/layout/components/menus/PasswordChangeMenu.d.ts +8 -0
- package/dist/types/{components/layouts/shared-components → layout/components/menus}/UserMenu.d.ts +1 -1
- package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarPinToggleButton.d.ts +1 -1
- package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +11 -0
- package/dist/types/layout/components/navbar/style/NavbarStyle.d.ts +5 -0
- package/dist/types/layout/components/navbar/style/NavbarStyleContent.d.ts +9 -0
- package/dist/types/layout/components/navigation/NavBadge.d.ts +17 -0
- package/dist/types/layout/components/navigation/NavItem.d.ts +14 -0
- package/dist/types/layout/components/navigation/Navigation.d.ts +3 -0
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +23 -0
- package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +9 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +6 -0
- package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +7 -0
- package/dist/types/layout/components/toggles/FullScreenToggle.d.ts +8 -0
- package/dist/types/layout/components/toggles/LanguageSwitcherToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +16 -0
- package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +9 -0
- package/dist/types/layout/components/toggles/toggleStyles.d.ts +10 -0
- package/dist/types/{components/layouts/layout3/components/FooterLayout3.d.ts → layout/components/toolbar/ToolbarLayout.d.ts} +4 -4
- package/dist/types/{components/layouts → layout}/themeLayoutConfigs.d.ts +2 -4
- package/dist/types/store/index.d.ts +1 -1
- package/dist/types/store/lazyLoadedSlices.d.ts +2 -2
- package/dist/types/{components/layouts/shared-components/navigation/store → store}/navigationSlice.d.ts +10 -10
- package/dist/types/store/owpSettingsSlice.d.ts +18 -1356
- package/dist/types/{components/OwpNavigation/types/OwpNavItemType.d.ts → types/OwpNavigationTypes.d.ts} +14 -4
- package/dist/types/types/OwpSettingsTypes.d.ts +2 -2
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/utils/dayjsBrowser.d.ts +7 -0
- package/dist/types/utils/excelUtil.d.ts +1 -1
- package/dist/types/utils/exceljsBrowser.d.ts +3 -0
- package/dist/types/utils/getEstimatedTextCellWidth.d.ts +12 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/language.d.ts +8 -0
- package/dist/types/{components/OwpNavigation/utils/OwpNavigationHelper.d.ts → utils/navigationUtils.d.ts} +17 -5
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/{usePageLockLoading-BUI_3PlR.js → usePageLockLoading-Vx7WVcGX.js} +5 -5
- package/dist/usePageLockLoading-Vx7WVcGX.js.map +1 -0
- package/dist/useShortcuts-DY5fnx6L.js +236 -0
- package/dist/useShortcuts-DY5fnx6L.js.map +1 -0
- package/dist/useTreeGridExcelExport-615UIM92.js +120 -0
- package/dist/useTreeGridExcelExport-615UIM92.js.map +1 -0
- package/dist/utils.js +6891 -6656
- package/dist/utils.js.map +1 -1
- package/owp-app.css +1 -0
- package/package.json +51 -47
- package/types.d.ts +3 -0
- package/types.js +1 -0
- package/context.d.ts +0 -3
- package/context.js +0 -1
- package/dist/Close-DnXyQZKh.js.map +0 -1
- package/dist/OwpStoreProvider-Bx5p7ooQ.js.map +0 -1
- package/dist/OwpUtils-C81bM1Gz.js +0 -611
- package/dist/OwpUtils-C81bM1Gz.js.map +0 -1
- package/dist/QuickPanel-CO7Tyc8C.js +0 -104
- package/dist/QuickPanel-CO7Tyc8C.js.map +0 -1
- package/dist/context.js +0 -101
- package/dist/context.js.map +0 -1
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +0 -1751
- package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +0 -1
- package/dist/index-KlA5Es4t.js +0 -46971
- package/dist/index-KlA5Es4t.js.map +0 -1
- package/dist/isTypedArray-DPyC49cI.js +0 -411
- package/dist/isTypedArray-DPyC49cI.js.map +0 -1
- package/dist/lazyLoadedSlices-DC7yg4GT.js +0 -2832
- package/dist/lazyLoadedSlices-DC7yg4GT.js.map +0 -1
- package/dist/owpDark-DAY0F6Ph.js.map +0 -1
- package/dist/treeGridUtil-WTM_djsN.js.map +0 -1
- package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +0 -1
- package/dist/types/components/OwpCommonDialog/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/OwpNavBadge.d.ts +0 -17
- package/dist/types/components/OwpNavigation/OwpNavItem.d.ts +0 -14
- package/dist/types/components/OwpNavigation/OwpNavigation.d.ts +0 -23
- package/dist/types/components/OwpNavigation/horizontal/OwpNavHorizontalLayout1.d.ts +0 -7
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse.d.ts +0 -15
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +0 -13
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +0 -11
- package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/index.d.ts +0 -1
- package/dist/types/components/OwpNavigation/isUrlInChildren.d.ts +0 -7
- package/dist/types/components/OwpNavigation/models/OwpNavItemModel.d.ts +0 -8
- package/dist/types/components/OwpNavigation/types/OwpNavBadgeType.d.ts +0 -9
- package/dist/types/components/OwpNavigation/utils/components.d.ts +0 -4
- package/dist/types/components/OwpNavigation/utils/registerComponent.d.ts +0 -4
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout1.d.ts +0 -9
- package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout2.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalCollapse.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalGroup.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalItem.d.ts +0 -7
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalLink.d.ts +0 -8
- package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalTab.d.ts +0 -11
- package/dist/types/components/OwpSearch/OwpSearch.d.ts +0 -23
- package/dist/types/components/OwpSearch/index.d.ts +0 -1
- package/dist/types/components/OwpShortcuts/OwpShortcuts.d.ts +0 -19
- package/dist/types/components/OwpShortcuts/index.d.ts +0 -1
- package/dist/types/components/OwpSidePanel/OwpSidePanel.d.ts +0 -18
- package/dist/types/components/OwpSidePanel/index.d.ts +0 -1
- package/dist/types/components/OwpTheme/OwpTheme.d.ts +0 -18
- package/dist/types/components/OwpTheme/index.d.ts +0 -1
- package/dist/types/components/OwpThemeSelector/OwpThemeSelector.d.ts +0 -16
- package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +0 -14
- package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +0 -17
- package/dist/types/components/OwpThemeSelector/index.d.ts +0 -1
- package/dist/types/components/layouts/layout1/Layout1.d.ts +0 -10
- package/dist/types/components/layouts/layout1/Layout1Config.d.ts +0 -114
- package/dist/types/components/layouts/layout1/components/FooterLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/LeftSideLayout1.d.ts +0 -6
- package/dist/types/components/layouts/layout1/components/NavbarToggleFabLayout1.d.ts +0 -8
- package/dist/types/components/layouts/layout1/components/NavbarWrapperLayout1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/ToolbarLayout1.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2.d.ts +0 -5
- package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2Content.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3.d.ts +0 -9
- package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3Content.d.ts +0 -10
- package/dist/types/components/layouts/layout2/Layout2.d.ts +0 -10
- package/dist/types/components/layouts/layout2/components/FooterLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/LeftSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/NavbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarMobileLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout2/components/NavbarToggleFabLayout2.d.ts +0 -8
- package/dist/types/components/layouts/layout2/components/NavbarWrapperLayout2.d.ts +0 -5
- package/dist/types/components/layouts/layout2/components/RightSideLayout2.d.ts +0 -6
- package/dist/types/components/layouts/layout2/components/ToolbarLayout2.d.ts +0 -9
- package/dist/types/components/layouts/layout3/Layout3Config.d.ts +0 -110
- package/dist/types/components/layouts/layout3/components/LeftSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/NavbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarMobileLayout3.d.ts +0 -9
- package/dist/types/components/layouts/layout3/components/NavbarWrapperLayout3.d.ts +0 -5
- package/dist/types/components/layouts/layout3/components/RightSideLayout3.d.ts +0 -6
- package/dist/types/components/layouts/layout3/components/ToolbarLayout3.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/FullScreenToggle.d.ts +0 -8
- package/dist/types/components/layouts/shared-components/LanguageSwitcher.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/PasswordChangeForm.d.ts +0 -2
- package/dist/types/components/layouts/shared-components/navbar/NavbarToggleButton.d.ts +0 -7
- package/dist/types/components/layouts/shared-components/navigation/Navigation.d.ts +0 -3
- package/dist/types/components/layouts/shared-components/navigation/NavigationSearch.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/navigation/NavigationShortcuts.d.ts +0 -6
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanel.d.ts +0 -5
- package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts +0 -9
- package/dist/types/components/layouts/shared-components/quickPanel/quickPanelSlice.d.ts +0 -14
- package/dist/types/hooks/useCurrentLogoSrc.d.ts +0 -8
- package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +0 -8
- package/dist/usePageLockLoading-BUI_3PlR.js.map +0 -1
- package/dist/useShortcuts-CCf98L8m.js +0 -241
- package/dist/useShortcuts-CCf98L8m.js.map +0 -1
- package/dist/useStorage-CuUmH4fD.js +0 -50
- package/dist/useStorage-CuUmH4fD.js.map +0 -1
- package/dist/useTreeGridExcelExport-N2nOKmkz.js +0 -138
- package/dist/useTreeGridExcelExport-N2nOKmkz.js.map +0 -1
- /package/dist/types/colors/{owpDark.d.ts → palettes/dark.d.ts} +0 -0
- /package/dist/types/colors/{skyBlue.d.ts → palettes/skyBlue.d.ts} +0 -0
- /package/dist/types/{context → contexts}/OwpCoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpStoreProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/OwpUiProvider.d.ts +0 -0
- /package/dist/types/{context → contexts}/index.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/logo}/Logo.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarToggleFab.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components → layout/components/toggles}/LogoutToggle.d.ts +0 -0
- /package/dist/types/{components/layouts → layout}/themeLayouts.d.ts +0 -0
- /package/dist/types/{components/layouts/shared-components/navbar → store}/navbarSlice.d.ts +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
var Jt = Object.defineProperty;
|
|
2
2
|
var r = (e, t) => Jt(e, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { a as ge, j as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import sn from "@mui/material/
|
|
11
|
-
import cn from "@mui/material/
|
|
12
|
-
import ln from "@mui/material/
|
|
13
|
-
import fn from "@mui/material/
|
|
14
|
-
import { createSvgIcon as hn } from "@mui/material/utils";
|
|
3
|
+
import { a as ge, j as M, b as Yt } from "./emotion-react-jsx-runtime.browser.esm-BMvSswBW.js";
|
|
4
|
+
import { b as Fe, l as qt, t as Wt } from "./useShortcuts-DY5fnx6L.js";
|
|
5
|
+
import { DialogContent as $t, DialogActions as Ht, Dialog as Kt, DialogTitle as Xt, Box as Zt, Button as wt, Typography as kt } from "@mui/material";
|
|
6
|
+
import { forwardRef as Qt, createContext as en, useRef as v, useEffect as w, useCallback as g, useMemo as tn, Component as nn, useState as Ge } from "react";
|
|
7
|
+
import { u as rn } from "./exceljs.min-CwK2XNVA.js";
|
|
8
|
+
import { useNavigate as on, useLocation as un } from "react-router-dom";
|
|
9
|
+
import an from "@mui/material/Box";
|
|
10
|
+
import sn from "@mui/material/Typography";
|
|
11
|
+
import cn from "@mui/material/Backdrop";
|
|
12
|
+
import ln from "@mui/material/CircularProgress";
|
|
13
|
+
import { createSvgIcon as fn } from "@mui/material/utils";
|
|
15
14
|
function Pe(e) {
|
|
16
15
|
return typeof e == "number" || e instanceof Number;
|
|
17
16
|
}
|
|
18
17
|
r(Pe, "isNumber");
|
|
19
|
-
const
|
|
18
|
+
const Je = Qt(
|
|
20
19
|
({
|
|
21
20
|
title: e,
|
|
22
21
|
children: t,
|
|
@@ -29,28 +28,27 @@ const Fe = Xt(
|
|
|
29
28
|
actions: c,
|
|
30
29
|
contentProps: l,
|
|
31
30
|
...y
|
|
32
|
-
},
|
|
33
|
-
const { t:
|
|
34
|
-
i ?
|
|
35
|
-
|
|
36
|
-
);
|
|
31
|
+
}, B) => {
|
|
32
|
+
const { t: G } = Fe(), I = (y == null ? void 0 : y.confirmText) ?? G("Button.저장", { defaultValue: "저장" }), T = (y == null ? void 0 : y.cancelText) ?? G(i ? "Button.취소" : "Button.닫기", {
|
|
33
|
+
defaultValue: i ? "취소" : "닫기"
|
|
34
|
+
});
|
|
37
35
|
return /* @__PURE__ */ ge(
|
|
38
|
-
|
|
36
|
+
Kt,
|
|
39
37
|
{
|
|
40
|
-
ref:
|
|
38
|
+
ref: B,
|
|
41
39
|
fullWidth: !0,
|
|
42
40
|
component: a ? "form" : void 0,
|
|
43
|
-
onClose: /* @__PURE__ */ r((
|
|
44
|
-
|
|
41
|
+
onClose: /* @__PURE__ */ r((m, R) => {
|
|
42
|
+
R !== "backdropClick" && (s == null || s(m, R));
|
|
45
43
|
}, "onClose"),
|
|
46
44
|
...y,
|
|
47
45
|
children: [
|
|
48
|
-
e && /* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */ ge(
|
|
51
|
-
c && /* @__PURE__ */
|
|
52
|
-
n && /* @__PURE__ */
|
|
53
|
-
|
|
46
|
+
e && /* @__PURE__ */ M(Xt, { children: e }),
|
|
47
|
+
/* @__PURE__ */ M($t, { dividers: !0, ...l, children: t }),
|
|
48
|
+
/* @__PURE__ */ ge(Ht, { children: [
|
|
49
|
+
c && /* @__PURE__ */ M(Zt, { className: "flex w-full items-start", children: c }),
|
|
50
|
+
n && /* @__PURE__ */ M(
|
|
51
|
+
wt,
|
|
54
52
|
{
|
|
55
53
|
variant: "outlined",
|
|
56
54
|
onClick: /* @__PURE__ */ r(() => {
|
|
@@ -60,11 +58,11 @@ const Fe = Xt(
|
|
|
60
58
|
}
|
|
61
59
|
s == null || s({}, "escapeKeyDown");
|
|
62
60
|
}, "onClick"),
|
|
63
|
-
children:
|
|
61
|
+
children: T
|
|
64
62
|
}
|
|
65
63
|
),
|
|
66
|
-
i && /* @__PURE__ */
|
|
67
|
-
|
|
64
|
+
i && /* @__PURE__ */ M(
|
|
65
|
+
wt,
|
|
68
66
|
{
|
|
69
67
|
variant: "contained",
|
|
70
68
|
color: "secondary",
|
|
@@ -78,7 +76,7 @@ const Fe = Xt(
|
|
|
78
76
|
s == null || s({}, "escapeKeyDown");
|
|
79
77
|
}
|
|
80
78
|
}, "onClick"),
|
|
81
|
-
children:
|
|
79
|
+
children: I
|
|
82
80
|
}
|
|
83
81
|
)
|
|
84
82
|
] })
|
|
@@ -87,46 +85,46 @@ const Fe = Xt(
|
|
|
87
85
|
);
|
|
88
86
|
}
|
|
89
87
|
);
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
var
|
|
88
|
+
Je.displayName = "OwpDialog";
|
|
89
|
+
const rr = Je;
|
|
90
|
+
var hn = Object.create, Lt = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, vn = Object.getOwnPropertyNames, mn = Object.getPrototypeOf, pn = Object.prototype.hasOwnProperty, gn = /* @__PURE__ */ r(function(e, t) {
|
|
93
91
|
return function() {
|
|
94
92
|
return t || e((t = { exports: {} }).exports, t), t.exports;
|
|
95
93
|
};
|
|
96
|
-
}, "yr"),
|
|
97
|
-
if (t && typeof t == "object" || typeof t == "function") for (var o =
|
|
94
|
+
}, "yr"), yn = /* @__PURE__ */ r(function(e, t, n, i) {
|
|
95
|
+
if (t && typeof t == "object" || typeof t == "function") for (var o = vn(t), h = 0, s = o.length, a; h < s; h++) a = o[h], !pn.call(e, a) && a !== n && Lt(e, a, { get: (function(c) {
|
|
98
96
|
return t[c];
|
|
99
|
-
}).bind(null, a), enumerable: !(i =
|
|
97
|
+
}).bind(null, a), enumerable: !(i = dn(t, a)) || i.enumerable });
|
|
100
98
|
return e;
|
|
101
|
-
}, "gr"),
|
|
102
|
-
return n = e != null ?
|
|
103
|
-
}, "wr"),
|
|
99
|
+
}, "gr"), En = /* @__PURE__ */ r(function(e, t, n) {
|
|
100
|
+
return n = e != null ? hn(mn(e)) : {}, yn(!e || !e.__esModule ? Lt(n, "default", { value: e, enumerable: !0 }) : n, e);
|
|
101
|
+
}, "wr"), bn = gn(function(e, t) {
|
|
104
102
|
(function(n, i) {
|
|
105
103
|
typeof e == "object" && typeof t < "u" ? i(e) : typeof define == "function" && define.amd ? define(["exports"], i) : (n = typeof globalThis < "u" ? globalThis : n || self, i(n.fastUniqueNumbers = {}));
|
|
106
104
|
})(e, function(n) {
|
|
107
|
-
var i = /* @__PURE__ */ r(function(
|
|
108
|
-
return function(
|
|
109
|
-
var m = T
|
|
110
|
-
return
|
|
105
|
+
var i = /* @__PURE__ */ r(function(I) {
|
|
106
|
+
return function(T) {
|
|
107
|
+
var m = I(T);
|
|
108
|
+
return T.add(m), m;
|
|
111
109
|
};
|
|
112
|
-
}, "r"), o = /* @__PURE__ */ r(function(
|
|
113
|
-
return function(
|
|
114
|
-
return
|
|
110
|
+
}, "r"), o = /* @__PURE__ */ r(function(I) {
|
|
111
|
+
return function(T, m) {
|
|
112
|
+
return I.set(T, m), m;
|
|
115
113
|
};
|
|
116
|
-
}, "t"), h = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, s = 536870912, a = s * 2, c = /* @__PURE__ */ r(function(
|
|
114
|
+
}, "t"), h = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, s = 536870912, a = s * 2, c = /* @__PURE__ */ r(function(I, T) {
|
|
117
115
|
return function(m) {
|
|
118
|
-
var
|
|
119
|
-
if (!m.has(
|
|
116
|
+
var R = T.get(m), x = R === void 0 ? m.size : R < a ? R + 1 : 0;
|
|
117
|
+
if (!m.has(x)) return I(m, x);
|
|
120
118
|
if (m.size < s) {
|
|
121
|
-
for (; m.has(
|
|
122
|
-
return
|
|
119
|
+
for (; m.has(x); ) x = Math.floor(Math.random() * a);
|
|
120
|
+
return I(m, x);
|
|
123
121
|
}
|
|
124
122
|
if (m.size > h) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
125
|
-
for (; m.has(
|
|
126
|
-
return
|
|
123
|
+
for (; m.has(x); ) x = Math.floor(Math.random() * h);
|
|
124
|
+
return I(m, x);
|
|
127
125
|
};
|
|
128
|
-
}, "s"), l = /* @__PURE__ */ new WeakMap(), y = o(l),
|
|
129
|
-
n.addUniqueNumber =
|
|
126
|
+
}, "s"), l = /* @__PURE__ */ new WeakMap(), y = o(l), B = c(y, l), G = i(B);
|
|
127
|
+
n.addUniqueNumber = G, n.generateUniqueNumber = B;
|
|
130
128
|
});
|
|
131
129
|
});
|
|
132
130
|
function te(e) {
|
|
@@ -163,7 +161,7 @@ function Re(e) {
|
|
|
163
161
|
}, Re(e);
|
|
164
162
|
}
|
|
165
163
|
r(Re, "be");
|
|
166
|
-
function
|
|
164
|
+
function wn() {
|
|
167
165
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
168
166
|
if (typeof Proxy == "function") return !0;
|
|
169
167
|
try {
|
|
@@ -173,36 +171,36 @@ function Tn() {
|
|
|
173
171
|
return !1;
|
|
174
172
|
}
|
|
175
173
|
}
|
|
176
|
-
r(
|
|
174
|
+
r(wn, "Pt");
|
|
177
175
|
function Mt(e) {
|
|
178
176
|
"@swc/helpers - typeof";
|
|
179
177
|
return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
|
|
180
178
|
}
|
|
181
179
|
r(Mt, "Ne");
|
|
182
|
-
function
|
|
180
|
+
function Tn(e, t) {
|
|
183
181
|
return t && (Mt(t) === "object" || typeof t == "function") ? t : te(e);
|
|
184
182
|
}
|
|
185
|
-
r(
|
|
183
|
+
r(Tn, "kt");
|
|
186
184
|
function Pt(e) {
|
|
187
|
-
var t =
|
|
185
|
+
var t = wn();
|
|
188
186
|
return function() {
|
|
189
187
|
var n = Re(e), i;
|
|
190
188
|
if (t) {
|
|
191
189
|
var o = Re(this).constructor;
|
|
192
190
|
i = Reflect.construct(n, arguments, o);
|
|
193
191
|
} else i = n.apply(this, arguments);
|
|
194
|
-
return
|
|
192
|
+
return Tn(this, i);
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
195
|
r(Pt, "Ze");
|
|
198
|
-
var
|
|
196
|
+
var An = (function(e) {
|
|
199
197
|
Ot(n, e);
|
|
200
198
|
var t = Pt(n);
|
|
201
199
|
function n() {
|
|
202
200
|
return ye(this, n), t.apply(this, arguments);
|
|
203
201
|
}
|
|
204
202
|
return r(n, "t"), n;
|
|
205
|
-
}(
|
|
203
|
+
})(nn);
|
|
206
204
|
(function(e) {
|
|
207
205
|
Ot(n, e);
|
|
208
206
|
var t = Pt(n);
|
|
@@ -212,27 +210,27 @@ var In = function(e) {
|
|
|
212
210
|
return o = t.call(this, i), o.onPresenceChange && i.setOnPresenceChange(o.onPresenceChange.bind(te(o))), o.onPrompt && i.setOnPrompt(o.onPrompt.bind(te(o))), o.onIdle && i.setOnIdle(o.onIdle.bind(te(o))), o.onActive && i.setOnActive(o.onActive.bind(te(o))), o.onAction && i.setOnAction(o.onAction.bind(te(o))), o.onMessage && i.setOnMessage(o.onMessage.bind(te(o))), o;
|
|
213
211
|
}
|
|
214
212
|
return r(n, "t"), n;
|
|
215
|
-
})(
|
|
213
|
+
})(An);
|
|
216
214
|
function ze(e, t) {
|
|
217
215
|
(t == null || t > e.length) && (t = e.length);
|
|
218
216
|
for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
|
|
219
217
|
return i;
|
|
220
218
|
}
|
|
221
219
|
r(ze, "Ee");
|
|
222
|
-
function
|
|
220
|
+
function In(e) {
|
|
223
221
|
if (Array.isArray(e)) return ze(e);
|
|
224
222
|
}
|
|
225
|
-
r(
|
|
226
|
-
function
|
|
223
|
+
r(In, "At");
|
|
224
|
+
function kn(e) {
|
|
227
225
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
228
226
|
}
|
|
229
|
-
r(
|
|
230
|
-
function
|
|
227
|
+
r(kn, "Rt");
|
|
228
|
+
function Ln() {
|
|
231
229
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
232
230
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
233
231
|
}
|
|
234
|
-
r(
|
|
235
|
-
function
|
|
232
|
+
r(Ln, "Mt");
|
|
233
|
+
function Sn(e, t) {
|
|
236
234
|
if (e) {
|
|
237
235
|
if (typeof e == "string") return ze(e, t);
|
|
238
236
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -240,33 +238,33 @@ function On(e, t) {
|
|
|
240
238
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ze(e, t);
|
|
241
239
|
}
|
|
242
240
|
}
|
|
243
|
-
r(
|
|
244
|
-
function
|
|
245
|
-
return
|
|
241
|
+
r(Sn, "Ct");
|
|
242
|
+
function _(e) {
|
|
243
|
+
return In(e) || kn(e) || Sn(e) || Ln();
|
|
246
244
|
}
|
|
247
|
-
r(
|
|
248
|
-
function
|
|
245
|
+
r(_, "O");
|
|
246
|
+
function On(e, t) {
|
|
249
247
|
for (var n = 0; n < t.length; n++) {
|
|
250
248
|
var i = t[n];
|
|
251
249
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
|
|
252
250
|
}
|
|
253
251
|
}
|
|
254
|
-
r(
|
|
255
|
-
function
|
|
256
|
-
return t &&
|
|
252
|
+
r(On, "jt");
|
|
253
|
+
function Ye(e, t, n) {
|
|
254
|
+
return t && On(e.prototype, t), e;
|
|
257
255
|
}
|
|
258
|
-
r(
|
|
259
|
-
bn(
|
|
260
|
-
var W = (typeof window > "u" || typeof window > "u" ? "undefined" : Mt(window)) === "object",
|
|
261
|
-
function
|
|
262
|
-
|
|
256
|
+
r(Ye, "ce");
|
|
257
|
+
En(bn());
|
|
258
|
+
var W = (typeof window > "u" || typeof window > "u" ? "undefined" : Mt(window)) === "object", V = { setTimeout: W ? setTimeout.bind(window) : setTimeout, clearTimeout: W ? clearTimeout.bind(window) : clearTimeout, setInterval: W ? setInterval.bind(window) : setInterval, clearInterval: W ? clearInterval.bind(window) : clearInterval };
|
|
259
|
+
function Mn(e) {
|
|
260
|
+
V.setTimeout = e.setTimeout, V.clearTimeout = e.clearTimeout, V.setInterval = e.setInterval, V.clearInterval = e.clearInterval;
|
|
263
261
|
}
|
|
264
|
-
r(
|
|
265
|
-
var ue = {},
|
|
262
|
+
r(Mn, "Jt");
|
|
263
|
+
var ue = {}, Pn = (function() {
|
|
266
264
|
function e(t) {
|
|
267
265
|
ye(this, e), b(this, "name", void 0), b(this, "closed", !1), b(this, "mc", new MessageChannel()), this.name = t, ue[t] = ue[t] || [], ue[t].push(this), this.mc.port1.start(), this.mc.port2.start(), this.onStorage = this.onStorage.bind(this), window.addEventListener("storage", this.onStorage);
|
|
268
266
|
}
|
|
269
|
-
return r(e, "e"),
|
|
267
|
+
return r(e, "e"), Ye(e, [{ key: "onStorage", value: /* @__PURE__ */ r(function(t) {
|
|
270
268
|
if (t.storageArea === window.localStorage && t.key.substring(0, this.name.length) === this.name && t.newValue !== null) {
|
|
271
269
|
var n = JSON.parse(t.newValue);
|
|
272
270
|
this.mc.port2.postMessage(n);
|
|
@@ -275,7 +273,7 @@ var ue = {}, Rn = function() {
|
|
|
275
273
|
var n = this;
|
|
276
274
|
if (this.closed) throw new Error("InvalidStateError");
|
|
277
275
|
var i = JSON.stringify(t), o = "".concat(this.name, ":").concat(String(Date.now())).concat(String(Math.random()));
|
|
278
|
-
window.localStorage.setItem(o, i),
|
|
276
|
+
window.localStorage.setItem(o, i), V.setTimeout(function() {
|
|
279
277
|
window.localStorage.removeItem(o);
|
|
280
278
|
}, 500), ue[this.name].forEach(function(h) {
|
|
281
279
|
h !== n && h.mc.port2.postMessage(JSON.parse(i));
|
|
@@ -301,8 +299,8 @@ var ue = {}, Rn = function() {
|
|
|
301
299
|
}, "value") }, { key: "dispatchEvent", value: /* @__PURE__ */ r(function(t) {
|
|
302
300
|
return this.mc.port1.dispatchEvent(t);
|
|
303
301
|
}, "value") }]), e;
|
|
304
|
-
}(),
|
|
305
|
-
function
|
|
302
|
+
})(), Rn = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : Pn;
|
|
303
|
+
function Tt(e, t, n, i, o, h, s) {
|
|
306
304
|
try {
|
|
307
305
|
var a = e[h](s), c = a.value;
|
|
308
306
|
} catch (l) {
|
|
@@ -311,25 +309,25 @@ function wt(e, t, n, i, o, h, s) {
|
|
|
311
309
|
}
|
|
312
310
|
a.done ? t(c) : Promise.resolve(c).then(i, o);
|
|
313
311
|
}
|
|
314
|
-
r(
|
|
315
|
-
function
|
|
312
|
+
r(Tt, "Xt");
|
|
313
|
+
function xn(e) {
|
|
316
314
|
return function() {
|
|
317
315
|
var t = this, n = arguments;
|
|
318
316
|
return new Promise(function(i, o) {
|
|
319
317
|
var h = e.apply(t, n);
|
|
320
318
|
function s(c) {
|
|
321
|
-
|
|
319
|
+
Tt(h, i, o, s, a, "next", c);
|
|
322
320
|
}
|
|
323
321
|
r(s, "s");
|
|
324
322
|
function a(c) {
|
|
325
|
-
|
|
323
|
+
Tt(h, i, o, s, a, "throw", c);
|
|
326
324
|
}
|
|
327
325
|
r(a, "a"), s(void 0);
|
|
328
326
|
});
|
|
329
327
|
};
|
|
330
328
|
}
|
|
331
|
-
r(
|
|
332
|
-
function
|
|
329
|
+
r(xn, "$t");
|
|
330
|
+
function Cn(e, t) {
|
|
333
331
|
var n = /* @__PURE__ */ r(function(l) {
|
|
334
332
|
return function(y) {
|
|
335
333
|
return i([l, y]);
|
|
@@ -387,14 +385,14 @@ function Dn(e, t) {
|
|
|
387
385
|
return this;
|
|
388
386
|
}), c;
|
|
389
387
|
}
|
|
390
|
-
r(
|
|
391
|
-
function
|
|
388
|
+
r(Cn, "Ve");
|
|
389
|
+
function Dn() {
|
|
392
390
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
393
391
|
return new Promise(function(t) {
|
|
394
|
-
return
|
|
392
|
+
return V.setTimeout(t, e);
|
|
395
393
|
});
|
|
396
394
|
}
|
|
397
|
-
r(
|
|
395
|
+
r(Dn, "Kt");
|
|
398
396
|
function Rt() {
|
|
399
397
|
return Math.random().toString(36).substring(2);
|
|
400
398
|
}
|
|
@@ -403,15 +401,15 @@ var d;
|
|
|
403
401
|
(function(e) {
|
|
404
402
|
e[e.APPLY = 0] = "APPLY", e[e.TELL = 1] = "TELL", e[e.CLOSE = 2] = "CLOSE", e[e.REGISTER = 3] = "REGISTER", e[e.DEREGISTER = 4] = "DEREGISTER", e[e.IDLE = 5] = "IDLE", e[e.ACTIVE = 6] = "ACTIVE", e[e.PROMPT = 7] = "PROMPT", e[e.START = 8] = "START", e[e.RESET = 9] = "RESET", e[e.ACTIVATE = 10] = "ACTIVATE", e[e.PAUSE = 11] = "PAUSE", e[e.RESUME = 12] = "RESUME", e[e.MESSAGE = 13] = "MESSAGE";
|
|
405
403
|
})(d || (d = {}));
|
|
406
|
-
var
|
|
404
|
+
var Nn = (function() {
|
|
407
405
|
function e(t, n) {
|
|
408
406
|
ye(this, e), b(this, "options", void 0), b(this, "channel", void 0), b(this, "token", Rt()), b(this, "isLeader", !1), b(this, "isDead", !1), b(this, "isApplying", !1), b(this, "reApply", !1), b(this, "intervals", []), b(this, "listeners", []), b(this, "deferred", void 0), this.channel = t, this.options = n, this.apply = this.apply.bind(this), this.awaitLeadership = this.awaitLeadership.bind(this), this.sendAction = this.sendAction.bind(this);
|
|
409
407
|
}
|
|
410
|
-
return r(e, "e"),
|
|
408
|
+
return r(e, "e"), Ye(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
|
|
411
409
|
var t = this;
|
|
412
|
-
return
|
|
410
|
+
return xn(function() {
|
|
413
411
|
var n, i;
|
|
414
|
-
return
|
|
412
|
+
return Cn(this, function(o) {
|
|
415
413
|
switch (o.label) {
|
|
416
414
|
case 0:
|
|
417
415
|
if (t.isLeader) return [2, !1];
|
|
@@ -422,7 +420,7 @@ var jn = function() {
|
|
|
422
420
|
a !== t.token && (c === d.APPLY && a > t.token && (n = !0), c === d.TELL && (n = !0));
|
|
423
421
|
}, "n"), t.channel.addEventListener("message", i), o.label = 1;
|
|
424
422
|
case 1:
|
|
425
|
-
return o.trys.push([1, 3, , 4]), t.sendAction(d.APPLY), [4,
|
|
423
|
+
return o.trys.push([1, 3, , 4]), t.sendAction(d.APPLY), [4, Dn(t.options.responseTime)];
|
|
426
424
|
case 2:
|
|
427
425
|
return o.sent(), t.channel.removeEventListener("message", i), t.isApplying = !1, n ? t.reApply ? [2, t.apply()] : [2, !1] : (t.assumeLead(), [2, !0]);
|
|
428
426
|
case 3:
|
|
@@ -441,14 +439,14 @@ var jn = function() {
|
|
|
441
439
|
if (!n) {
|
|
442
440
|
n = !0;
|
|
443
441
|
try {
|
|
444
|
-
|
|
442
|
+
V.clearInterval(i);
|
|
445
443
|
} catch {
|
|
446
444
|
}
|
|
447
445
|
var a = t.intervals.indexOf(i);
|
|
448
446
|
a >= 0 && t.intervals.splice(a, 1), t.channel.removeEventListener("message", s), o();
|
|
449
447
|
}
|
|
450
448
|
}, "s");
|
|
451
|
-
i =
|
|
449
|
+
i = V.setInterval(function() {
|
|
452
450
|
t.apply().then(function() {
|
|
453
451
|
t.isLeader && h();
|
|
454
452
|
});
|
|
@@ -481,30 +479,30 @@ var jn = function() {
|
|
|
481
479
|
this.listeners.forEach(function(n) {
|
|
482
480
|
return t.channel.removeEventListener("message", n);
|
|
483
481
|
}), this.intervals.forEach(function(n) {
|
|
484
|
-
return
|
|
482
|
+
return V.clearInterval(n);
|
|
485
483
|
});
|
|
486
484
|
} catch {
|
|
487
485
|
}
|
|
488
486
|
}
|
|
489
487
|
}, "value") }]), e;
|
|
490
|
-
}(),
|
|
488
|
+
})(), O;
|
|
491
489
|
(function(e) {
|
|
492
490
|
e[e.PROMPTED = 0] = "PROMPTED", e[e.ACTIVE = 1] = "ACTIVE", e[e.IDLE = 2] = "IDLE";
|
|
493
|
-
})(
|
|
494
|
-
var
|
|
491
|
+
})(O || (O = {}));
|
|
492
|
+
var jn = (function() {
|
|
495
493
|
function e(t) {
|
|
496
494
|
var n = this;
|
|
497
495
|
ye(this, e), b(this, "channel", void 0), b(this, "options", void 0), b(this, "elector", void 0), b(this, "token", Rt()), b(this, "registry", /* @__PURE__ */ new Map()), b(this, "allIdle", !1), b(this, "isLastActive", !1);
|
|
498
496
|
var i = t.channelName;
|
|
499
|
-
if (this.options = t, this.channel = new
|
|
497
|
+
if (this.options = t, this.channel = new Rn(i), this.registry.set(this.token, O.ACTIVE), t.leaderElection) {
|
|
500
498
|
var o = { fallbackInterval: 2e3, responseTime: 100 };
|
|
501
|
-
this.elector = new
|
|
499
|
+
this.elector = new Nn(this.channel, o), this.elector.waitForLeadership();
|
|
502
500
|
}
|
|
503
501
|
this.channel.addEventListener("message", function(h) {
|
|
504
502
|
var s = h.data, a = s.action, c = s.token, l = s.data;
|
|
505
503
|
switch (a) {
|
|
506
504
|
case d.REGISTER:
|
|
507
|
-
n.registry.set(c,
|
|
505
|
+
n.registry.set(c, O.IDLE);
|
|
508
506
|
break;
|
|
509
507
|
case d.DEREGISTER:
|
|
510
508
|
n.registry.delete(c);
|
|
@@ -539,39 +537,39 @@ var _n = function() {
|
|
|
539
537
|
}
|
|
540
538
|
}), this.send(d.REGISTER);
|
|
541
539
|
}
|
|
542
|
-
return r(e, "e"),
|
|
540
|
+
return r(e, "e"), Ye(e, [{ key: "isLeader", get: /* @__PURE__ */ r(function() {
|
|
543
541
|
if (!this.elector) throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');
|
|
544
542
|
return this.elector.isLeader;
|
|
545
543
|
}, "get") }, { key: "prompt", value: /* @__PURE__ */ r(function() {
|
|
546
544
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
547
|
-
this.registry.set(t,
|
|
548
|
-
var n =
|
|
549
|
-
return i ===
|
|
545
|
+
this.registry.set(t, O.PROMPTED);
|
|
546
|
+
var n = _(this.registry.values()).every(function(i) {
|
|
547
|
+
return i === O.PROMPTED;
|
|
550
548
|
});
|
|
551
549
|
t === this.token && this.send(d.PROMPT), n && this.options.onPrompt();
|
|
552
550
|
}, "value") }, { key: "idle", value: /* @__PURE__ */ r(function() {
|
|
553
551
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
554
|
-
this.registry.set(t,
|
|
555
|
-
var n =
|
|
556
|
-
return i ===
|
|
552
|
+
this.registry.set(t, O.IDLE);
|
|
553
|
+
var n = _(this.registry.values()).every(function(i) {
|
|
554
|
+
return i === O.IDLE;
|
|
557
555
|
});
|
|
558
556
|
t === this.token && this.send(d.IDLE), !this.allIdle && n && (this.allIdle = !0, this.options.onIdle());
|
|
559
557
|
}, "value") }, { key: "active", value: /* @__PURE__ */ r(function() {
|
|
560
558
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
561
|
-
this.allIdle = !1, this.registry.set(t,
|
|
562
|
-
var n =
|
|
563
|
-
return i ===
|
|
559
|
+
this.allIdle = !1, this.registry.set(t, O.ACTIVE);
|
|
560
|
+
var n = _(this.registry.values()).some(function(i) {
|
|
561
|
+
return i === O.ACTIVE;
|
|
564
562
|
});
|
|
565
563
|
t === this.token && this.send(d.ACTIVE), n && this.options.onActive(), this.isLastActive = t === this.token;
|
|
566
564
|
}, "value") }, { key: "start", value: /* @__PURE__ */ r(function() {
|
|
567
565
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
568
|
-
this.allIdle = !1, this.registry.set(t,
|
|
566
|
+
this.allIdle = !1, this.registry.set(t, O.ACTIVE), t === this.token ? this.send(d.START) : this.options.start(!0), this.isLastActive = t === this.token;
|
|
569
567
|
}, "value") }, { key: "reset", value: /* @__PURE__ */ r(function() {
|
|
570
568
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
571
|
-
this.allIdle = !1, this.registry.set(t,
|
|
569
|
+
this.allIdle = !1, this.registry.set(t, O.ACTIVE), t === this.token ? this.send(d.RESET) : this.options.reset(!0), this.isLastActive = t === this.token;
|
|
572
570
|
}, "value") }, { key: "activate", value: /* @__PURE__ */ r(function() {
|
|
573
571
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
574
|
-
this.allIdle = !1, this.registry.set(t,
|
|
572
|
+
this.allIdle = !1, this.registry.set(t, O.ACTIVE), t === this.token ? this.send(d.ACTIVATE) : this.options.activate(!0), this.isLastActive = t === this.token;
|
|
575
573
|
}, "value") }, { key: "pause", value: /* @__PURE__ */ r(function() {
|
|
576
574
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
577
575
|
t === this.token ? this.send(d.PAUSE) : this.options.pause(!0);
|
|
@@ -591,62 +589,62 @@ var _n = function() {
|
|
|
591
589
|
}, "value") }, { key: "close", value: /* @__PURE__ */ r(function() {
|
|
592
590
|
this.options.leaderElection && this.elector.close(), this.send(d.DEREGISTER), this.channel.close();
|
|
593
591
|
}, "value") }]), e;
|
|
594
|
-
}(),
|
|
595
|
-
function
|
|
592
|
+
})(), _n = W ? document : null, Vn = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
593
|
+
function Bn(e, t) {
|
|
596
594
|
var n = /* @__PURE__ */ r(function() {
|
|
597
595
|
for (var o = arguments.length, h = new Array(o), s = 0; s < o; s++) h[s] = arguments[s];
|
|
598
596
|
i && clearTimeout(i), i = setTimeout(function() {
|
|
599
|
-
e.apply(void 0,
|
|
597
|
+
e.apply(void 0, _(h)), i = null;
|
|
600
598
|
}, t);
|
|
601
599
|
}, "t"), i;
|
|
602
600
|
return n.cancel = function() {
|
|
603
601
|
clearTimeout(i);
|
|
604
602
|
}, n;
|
|
605
603
|
}
|
|
606
|
-
r(
|
|
604
|
+
r(Bn, "tr");
|
|
607
605
|
function Be(e, t) {
|
|
608
606
|
var n = 0;
|
|
609
607
|
return function() {
|
|
610
608
|
for (var i = arguments.length, o = new Array(i), h = 0; h < i; h++) o[h] = arguments[h];
|
|
611
609
|
var s = (/* @__PURE__ */ new Date()).getTime();
|
|
612
|
-
if (!(s - n < t)) return n = s, e.apply(void 0,
|
|
610
|
+
if (!(s - n < t)) return n = s, e.apply(void 0, _(o));
|
|
613
611
|
};
|
|
614
612
|
}
|
|
615
613
|
r(Be, "Fe");
|
|
616
614
|
var E = /* @__PURE__ */ r(function() {
|
|
617
615
|
return Date.now();
|
|
618
616
|
}, "g"), ae = 2147483647;
|
|
619
|
-
function
|
|
620
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.timeout, n = t === void 0 ? 1e3 * 60 * 20 : t, i = e.promptTimeout, o = i === void 0 ? 0 : i, h = e.promptBeforeIdle, s = h === void 0 ? 0 : h, a = e.element, c = a === void 0 ?
|
|
621
|
-
} : m,
|
|
622
|
-
} :
|
|
623
|
-
} : qe,
|
|
624
|
-
} :
|
|
625
|
-
} :
|
|
626
|
-
} :
|
|
617
|
+
function Gn() {
|
|
618
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.timeout, n = t === void 0 ? 1e3 * 60 * 20 : t, i = e.promptTimeout, o = i === void 0 ? 0 : i, h = e.promptBeforeIdle, s = h === void 0 ? 0 : h, a = e.element, c = a === void 0 ? _n : a, l = e.events, y = l === void 0 ? Vn : l, B = e.timers, G = B === void 0 ? void 0 : B, I = e.immediateEvents, T = I === void 0 ? [] : I, m = e.onPresenceChange, R = m === void 0 ? function() {
|
|
619
|
+
} : m, x = e.onPrompt, Ee = x === void 0 ? function() {
|
|
620
|
+
} : x, qe = e.onIdle, be = qe === void 0 ? function() {
|
|
621
|
+
} : qe, We = e.onActive, we = We === void 0 ? function() {
|
|
622
|
+
} : We, $e = e.onAction, Te = $e === void 0 ? function() {
|
|
623
|
+
} : $e, He = e.onMessage, se = He === void 0 ? function() {
|
|
624
|
+
} : He, Ke = e.debounce, ce = Ke === void 0 ? 0 : Ke, Xe = e.throttle, le = Xe === void 0 ? 0 : Xe, Ze = e.eventsThrottle, xe = Ze === void 0 ? 200 : Ze, Qe = e.startOnMount, fe = Qe === void 0 ? !0 : Qe, et = e.startManually, z = et === void 0 ? !1 : et, tt = e.stopOnIdle, Ae = tt === void 0 ? !1 : tt, nt = e.crossTab, ne = nt === void 0 ? !1 : nt, rt = e.name, it = rt === void 0 ? "idle-timer" : rt, ot = e.syncTimers, he = ot === void 0 ? 0 : ot, ut = e.leaderElection, at = ut === void 0 ? !1 : ut, st = e.disabled, U = st === void 0 ? !1 : st, ct = v(E()), Ie = v(E()), k = v(null), C = v(null), $ = v(0), de = v(0), F = v(0), P = v(0), p = v(!1), A = v(!1), J = v(!1), Y = v(!0), ve = v(!1), q = v(null), f = v(null), D = v(n), K = v(0);
|
|
627
625
|
w(function() {
|
|
628
626
|
if (o && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), s && o) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
|
|
629
627
|
if (n >= ae) throw new Error("❌ The value for the timeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
|
|
630
628
|
if (o >= ae) throw new Error("❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
|
|
631
629
|
if (s >= ae) throw new Error("❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ".concat(ae, "."));
|
|
632
630
|
if (s >= n) throw new Error("❌ The value for the promptBeforeIdle property must be less than the timeout property, ".concat(n, "."));
|
|
633
|
-
if (s ? (
|
|
631
|
+
if (s ? (D.current = n - s, K.current = s) : (D.current = n, K.current = o), !Y.current) {
|
|
634
632
|
if (z || U) return;
|
|
635
|
-
p.current && (re.current(null,
|
|
633
|
+
p.current && (re.current(null, S), f.current && f.current.active()), ee();
|
|
636
634
|
}
|
|
637
635
|
}, [n, o, s, z, U]);
|
|
638
|
-
var
|
|
636
|
+
var lt = v(Ae);
|
|
639
637
|
w(function() {
|
|
640
|
-
|
|
638
|
+
lt.current = Ae;
|
|
641
639
|
}, [Ae]);
|
|
642
|
-
var
|
|
640
|
+
var ft = v(T), me = v(c), Ce = v(_(new Set(_(y).concat(_(T))).values())), N = v(U);
|
|
643
641
|
w(function() {
|
|
644
|
-
|
|
642
|
+
N.current = U, !Y.current && (U ? Me() : z || ee());
|
|
645
643
|
}, [U]);
|
|
646
|
-
var pe = v(
|
|
644
|
+
var pe = v(R);
|
|
647
645
|
w(function() {
|
|
648
|
-
pe.current =
|
|
649
|
-
}, [
|
|
646
|
+
pe.current = R;
|
|
647
|
+
}, [R]);
|
|
650
648
|
var ke = v(Ee);
|
|
651
649
|
w(function() {
|
|
652
650
|
ke.current = Ee;
|
|
@@ -667,53 +665,53 @@ function Un() {
|
|
|
667
665
|
w(function() {
|
|
668
666
|
ie.current = se;
|
|
669
667
|
}, [se]);
|
|
670
|
-
var X =
|
|
671
|
-
var u = /* @__PURE__ */ r(function(
|
|
672
|
-
return Se.current(
|
|
668
|
+
var X = tn(function() {
|
|
669
|
+
var u = /* @__PURE__ */ r(function(L, oe) {
|
|
670
|
+
return Se.current(L, oe);
|
|
673
671
|
}, "i");
|
|
674
|
-
return ce > 0 ?
|
|
675
|
-
}, [le, ce]),
|
|
672
|
+
return ce > 0 ? Bn(u, ce) : le > 0 ? Be(u, le) : u;
|
|
673
|
+
}, [le, ce]), ht = v();
|
|
676
674
|
w(function() {
|
|
677
|
-
ne && he && (
|
|
675
|
+
ne && he && (ht.current = Be(function() {
|
|
678
676
|
f.current.active();
|
|
679
677
|
}, he));
|
|
680
678
|
}, [ne, he]);
|
|
681
|
-
var
|
|
682
|
-
|
|
679
|
+
var j = /* @__PURE__ */ r(function() {
|
|
680
|
+
q.current !== null && (V.clearTimeout(q.current), q.current = null);
|
|
683
681
|
}, "N"), Z = /* @__PURE__ */ r(function(u) {
|
|
684
|
-
var
|
|
685
|
-
|
|
686
|
-
}, "Z"),
|
|
687
|
-
!
|
|
688
|
-
}, "wt"),
|
|
689
|
-
|
|
682
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
683
|
+
j(), q.current = V.setTimeout(Ne, u || D.current), L && (C.current = E());
|
|
684
|
+
}, "Z"), dt = /* @__PURE__ */ r(function(u) {
|
|
685
|
+
!A.current && !p.current && (ke.current(u, S), pe.current({ type: "active", prompted: !0 }, S)), P.current = 0, F.current = E(), A.current = !0, Z(K.current, !1);
|
|
686
|
+
}, "wt"), vt = /* @__PURE__ */ r(function() {
|
|
687
|
+
j(), p.current || (Le.current(null, S), pe.current({ type: "idle" }, S)), p.current = !0, k.current = E(), lt.current ? Q() : A.current && (F.current = 0, A.current = !1);
|
|
690
688
|
}, "bt"), De = /* @__PURE__ */ r(function(u) {
|
|
691
|
-
|
|
689
|
+
j(), (p.current || A.current) && (re.current(u, S), pe.current({ type: "active", prompted: !1 }, S)), A.current = !1, F.current = 0, p.current = !1, $.current += E() - k.current, de.current += E() - k.current, H(), Z();
|
|
692
690
|
}, "ze"), Ne = /* @__PURE__ */ r(function(u) {
|
|
693
|
-
var
|
|
694
|
-
if (
|
|
691
|
+
var L = !p.current;
|
|
692
|
+
if (L) {
|
|
695
693
|
X.cancel && X.cancel();
|
|
696
|
-
var oe = E() -
|
|
697
|
-
if (!Ft && K.current > 0 && !
|
|
698
|
-
f.current ? f.current.prompt() :
|
|
694
|
+
var oe = E() - C.current, Ft = D.current + K.current < oe;
|
|
695
|
+
if (!Ft && K.current > 0 && !A.current) {
|
|
696
|
+
f.current ? f.current.prompt() : dt(u);
|
|
699
697
|
return;
|
|
700
698
|
}
|
|
701
|
-
f.current ? f.current.idle() :
|
|
699
|
+
f.current ? f.current.idle() : vt();
|
|
702
700
|
return;
|
|
703
701
|
}
|
|
704
702
|
f.current ? f.current.active() : De(u);
|
|
705
703
|
}, "Je"), je = /* @__PURE__ */ r(function(u) {
|
|
706
|
-
if (!fe && !
|
|
707
|
-
if (
|
|
704
|
+
if (!fe && !C.current && (C.current = E(), re.current(null, S)), X(u, S), !A.current) {
|
|
705
|
+
if (j(), !p.current && ft.current.includes(u.type)) {
|
|
708
706
|
Ne(u);
|
|
709
707
|
return;
|
|
710
708
|
}
|
|
711
|
-
var
|
|
712
|
-
if (p.current && !Ae || !p.current &&
|
|
709
|
+
var L = E() - C.current;
|
|
710
|
+
if (p.current && !Ae || !p.current && L >= D.current) {
|
|
713
711
|
Ne(u);
|
|
714
712
|
return;
|
|
715
713
|
}
|
|
716
|
-
J.current = !1,
|
|
714
|
+
J.current = !1, P.current = 0, F.current = 0, Z(), ne && he && ht.current();
|
|
717
715
|
}
|
|
718
716
|
}, "He"), Oe = v(je);
|
|
719
717
|
w(function() {
|
|
@@ -726,88 +724,88 @@ function Un() {
|
|
|
726
724
|
}), ve.current = !0));
|
|
727
725
|
}, "H"), Q = /* @__PURE__ */ r(function() {
|
|
728
726
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
729
|
-
W && me.current && (ve.current || u) && (Ce.current.forEach(function(
|
|
730
|
-
me.current.removeEventListener(
|
|
727
|
+
W && me.current && (ve.current || u) && (Ce.current.forEach(function(L) {
|
|
728
|
+
me.current.removeEventListener(L, Oe.current, { capture: !0 });
|
|
731
729
|
}), ve.current = !1);
|
|
732
730
|
}, "ee"), ee = g(function(u) {
|
|
733
|
-
return
|
|
734
|
-
}, [
|
|
735
|
-
return
|
|
736
|
-
}, [
|
|
737
|
-
return
|
|
738
|
-
}, [
|
|
731
|
+
return N.current ? !1 : (j(), H(), p.current = !1, A.current = !1, J.current = !1, P.current = 0, F.current = 0, f.current && !u && f.current.start(), Z(), !0);
|
|
732
|
+
}, [q, p, N, D, f]), _e = g(function(u) {
|
|
733
|
+
return N.current ? !1 : (j(), H(), Ie.current = E(), $.current += E() - k.current, de.current += E() - k.current, $.current = 0, p.current = !1, A.current = !1, J.current = !1, P.current = 0, F.current = 0, f.current && !u && f.current.reset(), z || Z(), !0);
|
|
734
|
+
}, [q, p, D, z, N, f]), mt = g(function(u) {
|
|
735
|
+
return N.current ? !1 : (j(), H(), (p.current || A.current) && De(), p.current = !1, A.current = !1, J.current = !1, P.current = 0, F.current = 0, Ie.current = E(), f.current && !u && f.current.activate(), Z(), !0);
|
|
736
|
+
}, [q, p, A, N, D, f]), Me = g(function() {
|
|
739
737
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
740
|
-
return
|
|
741
|
-
}, [
|
|
738
|
+
return N.current || J.current ? !1 : (P.current = pt(), J.current = !0, Q(), j(), f.current && !u && f.current.pause(), !0);
|
|
739
|
+
}, [q, N, f]), Ve = g(function() {
|
|
742
740
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
743
|
-
return
|
|
744
|
-
}, [
|
|
745
|
-
return f.current ? (
|
|
741
|
+
return N.current || !J.current ? !1 : (J.current = !1, A.current || H(), p.current || Z(P.current), F.current && (F.current = E()), f.current && !u && f.current.resume(), !0);
|
|
742
|
+
}, [q, D, N, P, f]), Ct = g(function(u, L) {
|
|
743
|
+
return f.current ? (L && ie.current(u, S), f.current.message(u)) : L && ie.current(u, S), !0;
|
|
746
744
|
}, [se]), Dt = g(function() {
|
|
747
745
|
return p.current;
|
|
748
746
|
}, [p]), Nt = g(function() {
|
|
749
|
-
return
|
|
750
|
-
}, [
|
|
747
|
+
return A.current;
|
|
748
|
+
}, [A]), jt = g(function() {
|
|
751
749
|
return f.current ? f.current.isLeader : null;
|
|
752
750
|
}, [f]), _t = g(function() {
|
|
753
751
|
return f.current ? f.current.isLastActive : null;
|
|
754
752
|
}, [f]), Vt = g(function() {
|
|
755
753
|
return f.current ? f.current.token : null;
|
|
756
|
-
}, [f]),
|
|
757
|
-
if (J.current) return
|
|
758
|
-
var u =
|
|
754
|
+
}, [f]), pt = g(function() {
|
|
755
|
+
if (J.current) return P.current;
|
|
756
|
+
var u = P.current ? P.current : K.current + D.current, L = C.current ? E() - C.current : 0, oe = Math.floor(u - L);
|
|
759
757
|
return oe < 0 ? 0 : Math.abs(oe);
|
|
760
|
-
}, [
|
|
758
|
+
}, [D, K, A, P, C]), gt = g(function() {
|
|
761
759
|
return Math.round(E() - Ie.current);
|
|
762
|
-
}, [Ie]),
|
|
763
|
-
return Math.round(E() -
|
|
764
|
-
}, [
|
|
765
|
-
return
|
|
766
|
-
}, [
|
|
767
|
-
return
|
|
768
|
-
}, [
|
|
769
|
-
return p.current ? Math.round(E() -
|
|
770
|
-
}, [
|
|
771
|
-
return p.current ? Math.round(E() -
|
|
772
|
-
}, [
|
|
773
|
-
var u = Math.round(pt() - yt());
|
|
774
|
-
return u >= 0 ? u : 0;
|
|
775
|
-
}, [L, $]), zt = g(function() {
|
|
760
|
+
}, [Ie]), yt = g(function() {
|
|
761
|
+
return Math.round(E() - ct.current);
|
|
762
|
+
}, [ct]), Bt = g(function() {
|
|
763
|
+
return k.current ? new Date(k.current) : null;
|
|
764
|
+
}, [k]), Gt = g(function() {
|
|
765
|
+
return C.current ? new Date(C.current) : null;
|
|
766
|
+
}, [C]), Et = g(function() {
|
|
767
|
+
return p.current ? Math.round(E() - k.current + $.current) : Math.round($.current);
|
|
768
|
+
}, [k, $]), bt = g(function() {
|
|
769
|
+
return p.current ? Math.round(E() - k.current + de.current) : Math.round(de.current);
|
|
770
|
+
}, [k, de]), Ut = g(function() {
|
|
776
771
|
var u = Math.round(gt() - Et());
|
|
777
772
|
return u >= 0 ? u : 0;
|
|
778
|
-
}, [
|
|
773
|
+
}, [k, $]), zt = g(function() {
|
|
774
|
+
var u = Math.round(yt() - bt());
|
|
775
|
+
return u >= 0 ? u : 0;
|
|
776
|
+
}, [k, $]);
|
|
779
777
|
w(function() {
|
|
780
778
|
if (ce > 0 && le > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
781
|
-
|
|
779
|
+
G && Mn(G);
|
|
782
780
|
var u = /* @__PURE__ */ r(function() {
|
|
783
|
-
f.current && f.current.close(), X.cancel && X.cancel(),
|
|
781
|
+
f.current && f.current.close(), X.cancel && X.cancel(), j(), Q(!0);
|
|
784
782
|
}, "i");
|
|
785
783
|
return W && window.addEventListener("beforeunload", u), function() {
|
|
786
|
-
W && window.removeEventListener("beforeunload", u), f.current && f.current.close(), X.cancel && X.cancel(),
|
|
784
|
+
W && window.removeEventListener("beforeunload", u), f.current && f.current.close(), X.cancel && X.cancel(), j(), Q(!0);
|
|
787
785
|
};
|
|
788
786
|
}, []), w(function() {
|
|
789
|
-
f.current && f.current.close(), ne ? f.current = new
|
|
790
|
-
ht();
|
|
791
|
-
}, "onPrompt"), onIdle: /* @__PURE__ */ r(function() {
|
|
787
|
+
f.current && f.current.close(), ne ? f.current = new jn({ channelName: it, leaderElection: at, onPrompt: /* @__PURE__ */ r(function() {
|
|
792
788
|
dt();
|
|
789
|
+
}, "onPrompt"), onIdle: /* @__PURE__ */ r(function() {
|
|
790
|
+
vt();
|
|
793
791
|
}, "onIdle"), onActive: /* @__PURE__ */ r(function() {
|
|
794
792
|
De();
|
|
795
793
|
}, "onActive"), onMessage: /* @__PURE__ */ r(function(u) {
|
|
796
|
-
ie.current(u,
|
|
797
|
-
}, "onMessage"), start: ee, reset: _e, activate:
|
|
798
|
-
}, [ne,
|
|
799
|
-
|
|
800
|
-
}, [z, fe, U,
|
|
801
|
-
if (!
|
|
802
|
-
var u =
|
|
803
|
-
if (Q(), Ce.current = u, me.current = c,
|
|
794
|
+
ie.current(u, S);
|
|
795
|
+
}, "onMessage"), start: ee, reset: _e, activate: mt, pause: Me, resume: Ve }) : f.current = null;
|
|
796
|
+
}, [ne, it, at, ke, Le, re, ie, ee, _e, Me, Ve]), w(function() {
|
|
797
|
+
Y.current || (j(), Q(!0)), !(z || U) && (fe ? ee() : H());
|
|
798
|
+
}, [z, fe, U, Y]), w(function() {
|
|
799
|
+
if (!Y.current) {
|
|
800
|
+
var u = _(new Set(_(y).concat(_(T))).values());
|
|
801
|
+
if (Q(), Ce.current = u, me.current = c, ft.current = T, z || U) return;
|
|
804
802
|
fe ? ee() : H();
|
|
805
803
|
}
|
|
806
|
-
}, [c, JSON.stringify(y), JSON.stringify(
|
|
807
|
-
|
|
808
|
-
}, [
|
|
809
|
-
var
|
|
810
|
-
|
|
804
|
+
}, [c, JSON.stringify(y), JSON.stringify(T), Y, U, z, fe]), w(function() {
|
|
805
|
+
Y.current && (Y.current = !1);
|
|
806
|
+
}, [Y]);
|
|
807
|
+
var S = { message: Ct, start: ee, reset: _e, activate: mt, pause: Me, resume: Ve, isIdle: Dt, isPrompted: Nt, isLeader: jt, isLastActiveTab: _t, getTabId: Vt, getRemainingTime: pt, getElapsedTime: gt, getTotalElapsedTime: yt, getLastIdleTime: Bt, getLastActiveTime: Gt, getIdleTime: Et, getTotalIdleTime: bt, getActiveTime: Ut, getTotalActiveTime: zt, setOnPresenceChange: /* @__PURE__ */ r(function(u) {
|
|
808
|
+
R = u, pe.current = u;
|
|
811
809
|
}, "setOnPresenceChange"), setOnPrompt: /* @__PURE__ */ r(function(u) {
|
|
812
810
|
Ee = u, ke.current = u;
|
|
813
811
|
}, "setOnPrompt"), setOnIdle: /* @__PURE__ */ r(function(u) {
|
|
@@ -819,19 +817,19 @@ function Un() {
|
|
|
819
817
|
}, "setOnAction"), setOnMessage: /* @__PURE__ */ r(function(u) {
|
|
820
818
|
se = u, ie.current = u;
|
|
821
819
|
}, "setOnMessage") };
|
|
822
|
-
return
|
|
820
|
+
return S;
|
|
823
821
|
}
|
|
824
|
-
r(
|
|
825
|
-
var
|
|
826
|
-
|
|
827
|
-
const
|
|
828
|
-
function
|
|
822
|
+
r(Gn, "Te");
|
|
823
|
+
var Un = en(null);
|
|
824
|
+
Un.Consumer;
|
|
825
|
+
const At = 6e4, zn = 36e5, It = "/auth/login";
|
|
826
|
+
function Fn(e) {
|
|
829
827
|
return Pe(e) ? Math.floor(e / 1e3) : "";
|
|
830
828
|
}
|
|
831
|
-
r(
|
|
832
|
-
function
|
|
833
|
-
const t =
|
|
834
|
-
timeout: e ??
|
|
829
|
+
r(Fn, "millisToSeconds");
|
|
830
|
+
function ir({ timeout: e }) {
|
|
831
|
+
const t = on(), { pathname: n } = un(), { t: i } = Fe(), { confirmInfo: o } = qt(), { resetStorage: h } = rn(), [s, a] = Ge(!1), [c, l] = Ge(null), y = v(!1), { getRemainingTime: B, reset: G } = Gn({
|
|
832
|
+
timeout: e ?? zn,
|
|
835
833
|
events: [
|
|
836
834
|
"mousemove",
|
|
837
835
|
"keydown",
|
|
@@ -849,52 +847,52 @@ function ur({ timeout: e }) {
|
|
|
849
847
|
});
|
|
850
848
|
w(() => {
|
|
851
849
|
const m = setInterval(() => {
|
|
852
|
-
l(
|
|
850
|
+
l(B());
|
|
853
851
|
}, 500);
|
|
854
852
|
return () => {
|
|
855
853
|
clearInterval(m);
|
|
856
854
|
};
|
|
857
|
-
}, [
|
|
858
|
-
const
|
|
859
|
-
a(!1),
|
|
860
|
-
}, [
|
|
855
|
+
}, [B]);
|
|
856
|
+
const I = g(() => {
|
|
857
|
+
a(!1), G();
|
|
858
|
+
}, [G]), T = g(async () => {
|
|
861
859
|
y.current || (y.current = !0, l(null), a(!1), await o({
|
|
862
860
|
title: i("Message.로그인 페이지로 이동합니다.", {
|
|
863
861
|
defaultValue: "로그인 페이지로 이동합니다."
|
|
864
862
|
})
|
|
865
|
-
}), h(), t(
|
|
863
|
+
}), h(), t(It));
|
|
866
864
|
}, [o, t, h, i]);
|
|
867
865
|
return w(() => {
|
|
868
|
-
if (n ===
|
|
866
|
+
if (n === It) {
|
|
869
867
|
a(!1);
|
|
870
868
|
return;
|
|
871
869
|
}
|
|
872
|
-
if (!s && Pe(c) && c > 0 && c <=
|
|
870
|
+
if (!s && Pe(c) && c > 0 && c <= At) {
|
|
873
871
|
a(!0);
|
|
874
872
|
return;
|
|
875
873
|
}
|
|
876
|
-
if (s && Pe(c) && c >
|
|
877
|
-
|
|
874
|
+
if (s && Pe(c) && c > At) {
|
|
875
|
+
I();
|
|
878
876
|
return;
|
|
879
877
|
}
|
|
880
|
-
Pe(c) && c <= 0 &&
|
|
881
|
-
}, [s, c, n,
|
|
882
|
-
|
|
878
|
+
Pe(c) && c <= 0 && T();
|
|
879
|
+
}, [s, c, n, I, T]), /* @__PURE__ */ M(
|
|
880
|
+
Je,
|
|
883
881
|
{
|
|
884
882
|
title: i("Title.로그인 연장", { defaultValue: "로그인 연장" }),
|
|
885
883
|
canConfirm: !1,
|
|
886
884
|
open: s,
|
|
887
|
-
onClose: /* @__PURE__ */ r(() =>
|
|
885
|
+
onClose: /* @__PURE__ */ r(() => I(), "onClose"),
|
|
888
886
|
maxWidth: "xs",
|
|
889
887
|
fullWidth: !0,
|
|
890
|
-
children: /* @__PURE__ */
|
|
888
|
+
children: /* @__PURE__ */ M(kt, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
|
|
891
889
|
defaultValue: "{{seconds}}초 후 로그인 페이지로 이동합니다.",
|
|
892
|
-
seconds:
|
|
890
|
+
seconds: Fn(c)
|
|
893
891
|
}) })
|
|
894
892
|
}
|
|
895
893
|
);
|
|
896
894
|
}
|
|
897
|
-
r(
|
|
895
|
+
r(ir, "OwpAutoLogoutDialog");
|
|
898
896
|
function xt(e) {
|
|
899
897
|
var t, n, i = "";
|
|
900
898
|
if (typeof e == "string" || typeof e == "number") i += e;
|
|
@@ -905,27 +903,27 @@ function xt(e) {
|
|
|
905
903
|
return i;
|
|
906
904
|
}
|
|
907
905
|
r(xt, "r");
|
|
908
|
-
function
|
|
906
|
+
function Jn() {
|
|
909
907
|
for (var e, t, n = 0, i = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = xt(e)) && (i && (i += " "), i += t);
|
|
910
908
|
return i;
|
|
911
909
|
}
|
|
912
|
-
r(
|
|
913
|
-
function
|
|
910
|
+
r(Jn, "clsx");
|
|
911
|
+
function or(e) {
|
|
914
912
|
const { delay: t = 0, className: n } = e, [i, o] = Ge(!t);
|
|
915
|
-
return
|
|
913
|
+
return Wt(() => {
|
|
916
914
|
o(!0);
|
|
917
915
|
}, t), /* @__PURE__ */ ge(
|
|
918
916
|
"div",
|
|
919
917
|
{
|
|
920
|
-
className:
|
|
918
|
+
className: Jn(
|
|
921
919
|
n,
|
|
922
920
|
"flex flex-1 h-full w-full self-center flex-col items-center justify-center p-24",
|
|
923
921
|
i ? "" : "hidden"
|
|
924
922
|
),
|
|
925
923
|
children: [
|
|
926
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ M(sn, { className: "-mb-16 text-md font-medium sm:text-xl", color: "text.secondary" }),
|
|
927
925
|
/* @__PURE__ */ ge(
|
|
928
|
-
|
|
926
|
+
an,
|
|
929
927
|
{
|
|
930
928
|
id: "spinner",
|
|
931
929
|
sx: {
|
|
@@ -934,9 +932,9 @@ function ar(e) {
|
|
|
934
932
|
}
|
|
935
933
|
},
|
|
936
934
|
children: [
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
935
|
+
/* @__PURE__ */ M("div", { className: "bounce1" }),
|
|
936
|
+
/* @__PURE__ */ M("div", { className: "bounce2" }),
|
|
937
|
+
/* @__PURE__ */ M("div", { className: "bounce3" })
|
|
940
938
|
]
|
|
941
939
|
}
|
|
942
940
|
)
|
|
@@ -944,32 +942,32 @@ function ar(e) {
|
|
|
944
942
|
}
|
|
945
943
|
);
|
|
946
944
|
}
|
|
947
|
-
r(
|
|
948
|
-
const
|
|
949
|
-
const { t: n } =
|
|
945
|
+
r(or, "OwpLoading");
|
|
946
|
+
const ur = /* @__PURE__ */ r(({ loading: e, title: t }) => {
|
|
947
|
+
const { t: n } = Fe(), i = t ?? n("Common.로딩 중...");
|
|
950
948
|
return /* @__PURE__ */ ge(
|
|
951
|
-
|
|
949
|
+
cn,
|
|
952
950
|
{
|
|
953
951
|
className: "flex flex-1 flex-col space-y-12",
|
|
954
952
|
sx: /* @__PURE__ */ r((o) => ({ color: "#fff", zIndex: o.zIndex.tooltip + 1 }), "sx"),
|
|
955
953
|
open: !!e,
|
|
956
954
|
children: [
|
|
957
|
-
/* @__PURE__ */
|
|
958
|
-
i && /* @__PURE__ */
|
|
955
|
+
/* @__PURE__ */ M(ln, { color: "inherit" }),
|
|
956
|
+
i && /* @__PURE__ */ M(kt, { variant: "h6", children: i })
|
|
959
957
|
]
|
|
960
958
|
}
|
|
961
959
|
);
|
|
962
|
-
}, "OwpPageLockLoading"),
|
|
960
|
+
}, "OwpPageLockLoading"), ar = fn(/* @__PURE__ */ Yt.jsx("path", {
|
|
963
961
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
964
962
|
}), "Close");
|
|
965
963
|
export {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
964
|
+
ar as C,
|
|
965
|
+
or as O,
|
|
966
|
+
ur as a,
|
|
967
|
+
ir as b,
|
|
968
|
+
Jn as c,
|
|
969
|
+
Je as d,
|
|
970
|
+
rr as e,
|
|
973
971
|
Pe as i
|
|
974
972
|
};
|
|
975
|
-
//# sourceMappingURL=Close-
|
|
973
|
+
//# sourceMappingURL=Close-JeenM19L.js.map
|