@owp/core 1.29.0 → 2.0.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/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-Cm04EulE.js → Close-C91nHTKM.js} +398 -329
- package/dist/Close-C91nHTKM.js.map +1 -0
- package/dist/{OwpStoreProvider-CFq963Pl.js → OwpStoreProvider-BPa_lWCz.js} +3 -3
- package/dist/OwpStoreProvider-BPa_lWCz.js.map +1 -0
- package/dist/OwpUtils-DV2LSByd.js +411 -0
- package/dist/OwpUtils-DV2LSByd.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 +6 -18
- package/dist/colors.js.map +1 -1
- package/dist/commonCodeUtils-DNfSjP6S.js +42 -0
- package/dist/commonCodeUtils-DNfSjP6S.js.map +1 -0
- package/dist/constants.js +19 -21
- package/dist/constants.js.map +1 -1
- package/dist/contexts.js +104 -0
- package/dist/contexts.js.map +1 -0
- package/dist/dark-DAY0F6Ph.js +21 -0
- 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/hooks.js +116 -100
- package/dist/hooks.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +44321 -86
- package/dist/index.js.map +1 -1
- package/dist/isString-Codtu20I.js +55 -0
- package/dist/isString-Codtu20I.js.map +1 -0
- package/dist/isTypedArray-CCnDZ5HJ.js +609 -0
- package/dist/isTypedArray-CCnDZ5HJ.js.map +1 -0
- package/dist/language-DaxFvPOq.js +35 -0
- package/dist/language-DaxFvPOq.js.map +1 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js +2773 -0
- package/dist/lazyLoadedSlices-C18y0AEB.js.map +1 -0
- package/dist/localStorageKeys-Che0CNci.js +10 -0
- package/dist/localStorageKeys-Che0CNci.js.map +1 -0
- package/dist/owp-app.css +1 -1
- package/dist/storageKeys-C6xHFiTo.js +42 -0
- package/dist/storageKeys-C6xHFiTo.js.map +1 -0
- package/dist/store.js +32 -33
- package/dist/{toUpper-K8I4frC5.js → toUpper-Dmh8Htx_.js} +2 -2
- package/dist/{toUpper-K8I4frC5.js.map → toUpper-Dmh8Htx_.js.map} +1 -1
- package/dist/treeGrid-DtKg-9uf.js +8 -0
- package/dist/treeGrid-DtKg-9uf.js.map +1 -0
- package/dist/{treeGridUtil-C46Qi5LG.js → treeGridUtil-DAfaAk6C.js} +79 -78
- package/dist/{treeGridUtil-C46Qi5LG.js.map → treeGridUtil-DAfaAk6C.js.map} +1 -1
- 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/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} +26 -172
- package/dist/types/{components/layouts/layout2/Layout2Config.d.ts → configs/layoutConfig.d.ts} +12 -15
- package/dist/types/contexts/OwpAppProvider.d.ts +44 -0
- 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/useStorage.d.ts +0 -13
- package/dist/types/hooks/useThemeMediaQuery.d.ts +1 -1
- package/dist/types/index.d.ts +3 -28
- 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 +12 -12
- package/dist/types/store/owpSettingsSlice.d.ts +13 -1806
- 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/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-BGODEt_k.js +39 -0
- package/dist/usePageLockLoading-BGODEt_k.js.map +1 -0
- package/dist/useShortcuts-BjtlXprQ.js +236 -0
- package/dist/useShortcuts-BjtlXprQ.js.map +1 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js +120 -0
- package/dist/useTreeGridExcelExport-BE6h1hsO.js.map +1 -0
- package/dist/utils.js +6893 -6652
- 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-Cm04EulE.js.map +0 -1
- package/dist/OwpStoreProvider-CFq963Pl.js.map +0 -1
- package/dist/OwpUtils-9lHSCdan.js +0 -611
- package/dist/OwpUtils-9lHSCdan.js.map +0 -1
- package/dist/QuickPanel-DlrhsNXW.js +0 -104
- package/dist/QuickPanel-DlrhsNXW.js.map +0 -1
- package/dist/context.js +0 -74
- 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-Dn7pPU3W.js +0 -47049
- package/dist/index-Dn7pPU3W.js.map +0 -1
- package/dist/isTypedArray-xp-fB7W4.js +0 -411
- package/dist/isTypedArray-xp-fB7W4.js.map +0 -1
- package/dist/lazyLoadedSlices-BYAl2fil.js +0 -2786
- package/dist/lazyLoadedSlices-BYAl2fil.js.map +0 -1
- package/dist/storageKeys-DRzte9LZ.js +0 -15
- package/dist/storageKeys-DRzte9LZ.js.map +0 -1
- package/dist/treeGrid-DRAoPLXh.js +0 -35
- package/dist/treeGrid-DRAoPLXh.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/context/OwpAppProvider.d.ts +0 -36
- package/dist/types/hooks/useCurrentLogoSrc.d.ts +0 -8
- package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +0 -8
- package/dist/useOwpTranslation-CMrtqKkT.js +0 -190
- package/dist/useOwpTranslation-CMrtqKkT.js.map +0 -1
- package/dist/useStorage-BA0D8KA7.js +0 -67
- package/dist/useStorage-BA0D8KA7.js.map +0 -1
- package/dist/useTreeGridExcelExport-DLMecvHS.js +0 -186
- package/dist/useTreeGridExcelExport-DLMecvHS.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,18 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (e, t) =>
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
var Jt = Object.defineProperty;
|
|
2
|
+
var r = (e, t) => Jt(e, "name", { value: t, configurable: !0 });
|
|
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-BjtlXprQ.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 "./isString-Codtu20I.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";
|
|
14
|
+
function Pe(e) {
|
|
12
15
|
return typeof e == "number" || e instanceof Number;
|
|
13
16
|
}
|
|
14
|
-
r(
|
|
15
|
-
const
|
|
17
|
+
r(Pe, "isNumber");
|
|
18
|
+
const Je = Qt(
|
|
16
19
|
({
|
|
17
20
|
title: e,
|
|
18
21
|
children: t,
|
|
@@ -25,28 +28,27 @@ const Ue = Kt(
|
|
|
25
28
|
actions: c,
|
|
26
29
|
contentProps: l,
|
|
27
30
|
...y
|
|
28
|
-
},
|
|
29
|
-
const { t:
|
|
30
|
-
i ?
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
qt,
|
|
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
|
+
});
|
|
35
|
+
return /* @__PURE__ */ ge(
|
|
36
|
+
Kt,
|
|
35
37
|
{
|
|
36
|
-
ref:
|
|
38
|
+
ref: B,
|
|
37
39
|
fullWidth: !0,
|
|
38
40
|
component: a ? "form" : void 0,
|
|
39
|
-
onClose: /* @__PURE__ */ r((
|
|
40
|
-
|
|
41
|
+
onClose: /* @__PURE__ */ r((m, R) => {
|
|
42
|
+
R !== "backdropClick" && (s == null || s(m, R));
|
|
41
43
|
}, "onClose"),
|
|
42
44
|
...y,
|
|
43
45
|
children: [
|
|
44
|
-
e && /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
c && /* @__PURE__ */
|
|
48
|
-
n && /* @__PURE__ */
|
|
49
|
-
|
|
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,
|
|
50
52
|
{
|
|
51
53
|
variant: "outlined",
|
|
52
54
|
onClick: /* @__PURE__ */ r(() => {
|
|
@@ -56,11 +58,11 @@ const Ue = Kt(
|
|
|
56
58
|
}
|
|
57
59
|
s == null || s({}, "escapeKeyDown");
|
|
58
60
|
}, "onClick"),
|
|
59
|
-
children:
|
|
61
|
+
children: T
|
|
60
62
|
}
|
|
61
63
|
),
|
|
62
|
-
i && /* @__PURE__ */
|
|
63
|
-
|
|
64
|
+
i && /* @__PURE__ */ M(
|
|
65
|
+
wt,
|
|
64
66
|
{
|
|
65
67
|
variant: "contained",
|
|
66
68
|
color: "secondary",
|
|
@@ -74,7 +76,7 @@ const Ue = Kt(
|
|
|
74
76
|
s == null || s({}, "escapeKeyDown");
|
|
75
77
|
}
|
|
76
78
|
}, "onClick"),
|
|
77
|
-
children:
|
|
79
|
+
children: I
|
|
78
80
|
}
|
|
79
81
|
)
|
|
80
82
|
] })
|
|
@@ -83,83 +85,83 @@ const Ue = Kt(
|
|
|
83
85
|
);
|
|
84
86
|
}
|
|
85
87
|
);
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
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) {
|
|
89
91
|
return function() {
|
|
90
92
|
return t || e((t = { exports: {} }).exports, t), t.exports;
|
|
91
93
|
};
|
|
92
|
-
}, "yr"),
|
|
93
|
-
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) {
|
|
94
96
|
return t[c];
|
|
95
|
-
}).bind(null, a), enumerable: !(i =
|
|
97
|
+
}).bind(null, a), enumerable: !(i = dn(t, a)) || i.enumerable });
|
|
96
98
|
return e;
|
|
97
|
-
}, "gr"),
|
|
98
|
-
return n = e != null ?
|
|
99
|
-
}, "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) {
|
|
100
102
|
(function(n, i) {
|
|
101
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 = {}));
|
|
102
104
|
})(e, function(n) {
|
|
103
|
-
var i = /* @__PURE__ */ r(function(
|
|
104
|
-
return function(
|
|
105
|
-
var m = T
|
|
106
|
-
return
|
|
105
|
+
var i = /* @__PURE__ */ r(function(I) {
|
|
106
|
+
return function(T) {
|
|
107
|
+
var m = I(T);
|
|
108
|
+
return T.add(m), m;
|
|
107
109
|
};
|
|
108
|
-
}, "r"), o = /* @__PURE__ */ r(function(
|
|
109
|
-
return function(
|
|
110
|
-
return
|
|
110
|
+
}, "r"), o = /* @__PURE__ */ r(function(I) {
|
|
111
|
+
return function(T, m) {
|
|
112
|
+
return I.set(T, m), m;
|
|
111
113
|
};
|
|
112
|
-
}, "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) {
|
|
113
115
|
return function(m) {
|
|
114
|
-
var
|
|
115
|
-
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);
|
|
116
118
|
if (m.size < s) {
|
|
117
|
-
for (; m.has(
|
|
118
|
-
return
|
|
119
|
+
for (; m.has(x); ) x = Math.floor(Math.random() * a);
|
|
120
|
+
return I(m, x);
|
|
119
121
|
}
|
|
120
122
|
if (m.size > h) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
|
|
121
|
-
for (; m.has(
|
|
122
|
-
return
|
|
123
|
+
for (; m.has(x); ) x = Math.floor(Math.random() * h);
|
|
124
|
+
return I(m, x);
|
|
123
125
|
};
|
|
124
|
-
}, "s"), l = /* @__PURE__ */ new WeakMap(), y = o(l),
|
|
125
|
-
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;
|
|
126
128
|
});
|
|
127
129
|
});
|
|
128
|
-
function
|
|
130
|
+
function te(e) {
|
|
129
131
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
130
132
|
return e;
|
|
131
133
|
}
|
|
132
|
-
r(
|
|
133
|
-
function
|
|
134
|
-
return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) :
|
|
134
|
+
r(te, "Y");
|
|
135
|
+
function St(e, t) {
|
|
136
|
+
return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : St(e, t);
|
|
135
137
|
}
|
|
136
|
-
r(
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
138
|
+
r(St, "je");
|
|
139
|
+
function ye(e, t) {
|
|
140
|
+
if (!St(e, t)) throw new TypeError("Cannot call a class as a function");
|
|
139
141
|
}
|
|
140
|
-
r(
|
|
141
|
-
function
|
|
142
|
-
return
|
|
142
|
+
r(ye, "z");
|
|
143
|
+
function Ue(e, t) {
|
|
144
|
+
return Ue = Object.setPrototypeOf || function(n, i) {
|
|
143
145
|
return n.__proto__ = i, n;
|
|
144
|
-
},
|
|
146
|
+
}, Ue(e, t);
|
|
145
147
|
}
|
|
146
|
-
r(
|
|
147
|
-
function
|
|
148
|
+
r(Ue, "De");
|
|
149
|
+
function Ot(e, t) {
|
|
148
150
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
149
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t &&
|
|
151
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ue(e, t);
|
|
150
152
|
}
|
|
151
|
-
r(
|
|
153
|
+
r(Ot, "Ke");
|
|
152
154
|
function b(e, t, n) {
|
|
153
155
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
154
156
|
}
|
|
155
157
|
r(b, "h");
|
|
156
|
-
function
|
|
157
|
-
return
|
|
158
|
+
function Re(e) {
|
|
159
|
+
return Re = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
158
160
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
159
|
-
},
|
|
161
|
+
}, Re(e);
|
|
160
162
|
}
|
|
161
|
-
r(
|
|
162
|
-
function
|
|
163
|
+
r(Re, "be");
|
|
164
|
+
function wn() {
|
|
163
165
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
164
166
|
if (typeof Proxy == "function") return !0;
|
|
165
167
|
try {
|
|
@@ -169,100 +171,100 @@ function pn() {
|
|
|
169
171
|
return !1;
|
|
170
172
|
}
|
|
171
173
|
}
|
|
172
|
-
r(
|
|
173
|
-
function
|
|
174
|
+
r(wn, "Pt");
|
|
175
|
+
function Mt(e) {
|
|
174
176
|
"@swc/helpers - typeof";
|
|
175
177
|
return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
|
|
176
178
|
}
|
|
177
|
-
r(
|
|
178
|
-
function
|
|
179
|
-
return t && (
|
|
179
|
+
r(Mt, "Ne");
|
|
180
|
+
function Tn(e, t) {
|
|
181
|
+
return t && (Mt(t) === "object" || typeof t == "function") ? t : te(e);
|
|
180
182
|
}
|
|
181
|
-
r(
|
|
182
|
-
function
|
|
183
|
-
var t =
|
|
183
|
+
r(Tn, "kt");
|
|
184
|
+
function Pt(e) {
|
|
185
|
+
var t = wn();
|
|
184
186
|
return function() {
|
|
185
|
-
var n =
|
|
187
|
+
var n = Re(e), i;
|
|
186
188
|
if (t) {
|
|
187
|
-
var o =
|
|
189
|
+
var o = Re(this).constructor;
|
|
188
190
|
i = Reflect.construct(n, arguments, o);
|
|
189
191
|
} else i = n.apply(this, arguments);
|
|
190
|
-
return
|
|
192
|
+
return Tn(this, i);
|
|
191
193
|
};
|
|
192
194
|
}
|
|
193
|
-
r(
|
|
194
|
-
var
|
|
195
|
-
|
|
196
|
-
var t =
|
|
195
|
+
r(Pt, "Ze");
|
|
196
|
+
var An = (function(e) {
|
|
197
|
+
Ot(n, e);
|
|
198
|
+
var t = Pt(n);
|
|
197
199
|
function n() {
|
|
198
|
-
return
|
|
200
|
+
return ye(this, n), t.apply(this, arguments);
|
|
199
201
|
}
|
|
200
202
|
return r(n, "t"), n;
|
|
201
|
-
}(
|
|
203
|
+
})(nn);
|
|
202
204
|
(function(e) {
|
|
203
|
-
|
|
204
|
-
var t =
|
|
205
|
+
Ot(n, e);
|
|
206
|
+
var t = Pt(n);
|
|
205
207
|
function n(i) {
|
|
206
|
-
|
|
208
|
+
ye(this, n);
|
|
207
209
|
var o;
|
|
208
|
-
return o = t.call(this, i), o.onPresenceChange && i.setOnPresenceChange(o.onPresenceChange.bind(
|
|
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;
|
|
209
211
|
}
|
|
210
212
|
return r(n, "t"), n;
|
|
211
|
-
})(
|
|
212
|
-
function
|
|
213
|
+
})(An);
|
|
214
|
+
function ze(e, t) {
|
|
213
215
|
(t == null || t > e.length) && (t = e.length);
|
|
214
216
|
for (var n = 0, i = new Array(t); n < t; n++) i[n] = e[n];
|
|
215
217
|
return i;
|
|
216
218
|
}
|
|
217
|
-
r(
|
|
218
|
-
function
|
|
219
|
-
if (Array.isArray(e)) return
|
|
219
|
+
r(ze, "Ee");
|
|
220
|
+
function In(e) {
|
|
221
|
+
if (Array.isArray(e)) return ze(e);
|
|
220
222
|
}
|
|
221
|
-
r(
|
|
222
|
-
function
|
|
223
|
+
r(In, "At");
|
|
224
|
+
function kn(e) {
|
|
223
225
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
224
226
|
}
|
|
225
|
-
r(
|
|
226
|
-
function
|
|
227
|
+
r(kn, "Rt");
|
|
228
|
+
function Ln() {
|
|
227
229
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
228
230
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
229
231
|
}
|
|
230
|
-
r(
|
|
231
|
-
function
|
|
232
|
+
r(Ln, "Mt");
|
|
233
|
+
function Sn(e, t) {
|
|
232
234
|
if (e) {
|
|
233
|
-
if (typeof e == "string") return
|
|
235
|
+
if (typeof e == "string") return ze(e, t);
|
|
234
236
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
235
237
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
236
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
238
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ze(e, t);
|
|
237
239
|
}
|
|
238
240
|
}
|
|
239
|
-
r(
|
|
240
|
-
function
|
|
241
|
-
return
|
|
241
|
+
r(Sn, "Ct");
|
|
242
|
+
function _(e) {
|
|
243
|
+
return In(e) || kn(e) || Sn(e) || Ln();
|
|
242
244
|
}
|
|
243
|
-
r(
|
|
244
|
-
function
|
|
245
|
+
r(_, "O");
|
|
246
|
+
function On(e, t) {
|
|
245
247
|
for (var n = 0; n < t.length; n++) {
|
|
246
248
|
var i = t[n];
|
|
247
249
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
|
|
248
250
|
}
|
|
249
251
|
}
|
|
250
|
-
r(
|
|
251
|
-
function
|
|
252
|
-
return t &&
|
|
252
|
+
r(On, "jt");
|
|
253
|
+
function Ye(e, t, n) {
|
|
254
|
+
return t && On(e.prototype, t), e;
|
|
253
255
|
}
|
|
254
|
-
r(
|
|
255
|
-
|
|
256
|
-
var
|
|
257
|
-
function
|
|
258
|
-
|
|
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;
|
|
259
261
|
}
|
|
260
|
-
r(
|
|
261
|
-
var ue = {},
|
|
262
|
+
r(Mn, "Jt");
|
|
263
|
+
var ue = {}, Pn = (function() {
|
|
262
264
|
function e(t) {
|
|
263
|
-
|
|
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);
|
|
264
266
|
}
|
|
265
|
-
return r(e, "e"),
|
|
267
|
+
return r(e, "e"), Ye(e, [{ key: "onStorage", value: /* @__PURE__ */ r(function(t) {
|
|
266
268
|
if (t.storageArea === window.localStorage && t.key.substring(0, this.name.length) === this.name && t.newValue !== null) {
|
|
267
269
|
var n = JSON.parse(t.newValue);
|
|
268
270
|
this.mc.port2.postMessage(n);
|
|
@@ -271,7 +273,7 @@ var ue = {}, kn = function() {
|
|
|
271
273
|
var n = this;
|
|
272
274
|
if (this.closed) throw new Error("InvalidStateError");
|
|
273
275
|
var i = JSON.stringify(t), o = "".concat(this.name, ":").concat(String(Date.now())).concat(String(Math.random()));
|
|
274
|
-
window.localStorage.setItem(o, i),
|
|
276
|
+
window.localStorage.setItem(o, i), V.setTimeout(function() {
|
|
275
277
|
window.localStorage.removeItem(o);
|
|
276
278
|
}, 500), ue[this.name].forEach(function(h) {
|
|
277
279
|
h !== n && h.mc.port2.postMessage(JSON.parse(i));
|
|
@@ -297,8 +299,8 @@ var ue = {}, kn = function() {
|
|
|
297
299
|
}, "value") }, { key: "dispatchEvent", value: /* @__PURE__ */ r(function(t) {
|
|
298
300
|
return this.mc.port1.dispatchEvent(t);
|
|
299
301
|
}, "value") }]), e;
|
|
300
|
-
}(),
|
|
301
|
-
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) {
|
|
302
304
|
try {
|
|
303
305
|
var a = e[h](s), c = a.value;
|
|
304
306
|
} catch (l) {
|
|
@@ -307,25 +309,25 @@ function wt(e, t, n, i, o, h, s) {
|
|
|
307
309
|
}
|
|
308
310
|
a.done ? t(c) : Promise.resolve(c).then(i, o);
|
|
309
311
|
}
|
|
310
|
-
r(
|
|
311
|
-
function
|
|
312
|
+
r(Tt, "Xt");
|
|
313
|
+
function xn(e) {
|
|
312
314
|
return function() {
|
|
313
315
|
var t = this, n = arguments;
|
|
314
316
|
return new Promise(function(i, o) {
|
|
315
317
|
var h = e.apply(t, n);
|
|
316
318
|
function s(c) {
|
|
317
|
-
|
|
319
|
+
Tt(h, i, o, s, a, "next", c);
|
|
318
320
|
}
|
|
319
321
|
r(s, "s");
|
|
320
322
|
function a(c) {
|
|
321
|
-
|
|
323
|
+
Tt(h, i, o, s, a, "throw", c);
|
|
322
324
|
}
|
|
323
325
|
r(a, "a"), s(void 0);
|
|
324
326
|
});
|
|
325
327
|
};
|
|
326
328
|
}
|
|
327
|
-
r(
|
|
328
|
-
function
|
|
329
|
+
r(xn, "$t");
|
|
330
|
+
function Cn(e, t) {
|
|
329
331
|
var n = /* @__PURE__ */ r(function(l) {
|
|
330
332
|
return function(y) {
|
|
331
333
|
return i([l, y]);
|
|
@@ -383,31 +385,31 @@ function Mn(e, t) {
|
|
|
383
385
|
return this;
|
|
384
386
|
}), c;
|
|
385
387
|
}
|
|
386
|
-
r(
|
|
387
|
-
function
|
|
388
|
+
r(Cn, "Ve");
|
|
389
|
+
function Dn() {
|
|
388
390
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
389
391
|
return new Promise(function(t) {
|
|
390
|
-
return
|
|
392
|
+
return V.setTimeout(t, e);
|
|
391
393
|
});
|
|
392
394
|
}
|
|
393
|
-
r(
|
|
394
|
-
function
|
|
395
|
+
r(Dn, "Kt");
|
|
396
|
+
function Rt() {
|
|
395
397
|
return Math.random().toString(36).substring(2);
|
|
396
398
|
}
|
|
397
|
-
r(
|
|
399
|
+
r(Rt, "Ge");
|
|
398
400
|
var d;
|
|
399
401
|
(function(e) {
|
|
400
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";
|
|
401
403
|
})(d || (d = {}));
|
|
402
|
-
var
|
|
404
|
+
var Nn = (function() {
|
|
403
405
|
function e(t, n) {
|
|
404
|
-
|
|
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);
|
|
405
407
|
}
|
|
406
|
-
return r(e, "e"),
|
|
408
|
+
return r(e, "e"), Ye(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
|
|
407
409
|
var t = this;
|
|
408
|
-
return
|
|
410
|
+
return xn(function() {
|
|
409
411
|
var n, i;
|
|
410
|
-
return
|
|
412
|
+
return Cn(this, function(o) {
|
|
411
413
|
switch (o.label) {
|
|
412
414
|
case 0:
|
|
413
415
|
if (t.isLeader) return [2, !1];
|
|
@@ -418,7 +420,7 @@ var Pn = function() {
|
|
|
418
420
|
a !== t.token && (c === d.APPLY && a > t.token && (n = !0), c === d.TELL && (n = !0));
|
|
419
421
|
}, "n"), t.channel.addEventListener("message", i), o.label = 1;
|
|
420
422
|
case 1:
|
|
421
|
-
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)];
|
|
422
424
|
case 2:
|
|
423
425
|
return o.sent(), t.channel.removeEventListener("message", i), t.isApplying = !1, n ? t.reApply ? [2, t.apply()] : [2, !1] : (t.assumeLead(), [2, !0]);
|
|
424
426
|
case 3:
|
|
@@ -437,14 +439,14 @@ var Pn = function() {
|
|
|
437
439
|
if (!n) {
|
|
438
440
|
n = !0;
|
|
439
441
|
try {
|
|
440
|
-
|
|
442
|
+
V.clearInterval(i);
|
|
441
443
|
} catch {
|
|
442
444
|
}
|
|
443
445
|
var a = t.intervals.indexOf(i);
|
|
444
446
|
a >= 0 && t.intervals.splice(a, 1), t.channel.removeEventListener("message", s), o();
|
|
445
447
|
}
|
|
446
448
|
}, "s");
|
|
447
|
-
i =
|
|
449
|
+
i = V.setInterval(function() {
|
|
448
450
|
t.apply().then(function() {
|
|
449
451
|
t.isLeader && h();
|
|
450
452
|
});
|
|
@@ -477,24 +479,24 @@ var Pn = function() {
|
|
|
477
479
|
this.listeners.forEach(function(n) {
|
|
478
480
|
return t.channel.removeEventListener("message", n);
|
|
479
481
|
}), this.intervals.forEach(function(n) {
|
|
480
|
-
return
|
|
482
|
+
return V.clearInterval(n);
|
|
481
483
|
});
|
|
482
484
|
} catch {
|
|
483
485
|
}
|
|
484
486
|
}
|
|
485
487
|
}, "value") }]), e;
|
|
486
|
-
}(), O;
|
|
488
|
+
})(), O;
|
|
487
489
|
(function(e) {
|
|
488
490
|
e[e.PROMPTED = 0] = "PROMPTED", e[e.ACTIVE = 1] = "ACTIVE", e[e.IDLE = 2] = "IDLE";
|
|
489
491
|
})(O || (O = {}));
|
|
490
|
-
var
|
|
492
|
+
var jn = (function() {
|
|
491
493
|
function e(t) {
|
|
492
494
|
var n = this;
|
|
493
|
-
|
|
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);
|
|
494
496
|
var i = t.channelName;
|
|
495
|
-
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) {
|
|
496
498
|
var o = { fallbackInterval: 2e3, responseTime: 100 };
|
|
497
|
-
this.elector = new
|
|
499
|
+
this.elector = new Nn(this.channel, o), this.elector.waitForLeadership();
|
|
498
500
|
}
|
|
499
501
|
this.channel.addEventListener("message", function(h) {
|
|
500
502
|
var s = h.data, a = s.action, c = s.token, l = s.data;
|
|
@@ -535,27 +537,27 @@ var Rn = function() {
|
|
|
535
537
|
}
|
|
536
538
|
}), this.send(d.REGISTER);
|
|
537
539
|
}
|
|
538
|
-
return r(e, "e"),
|
|
540
|
+
return r(e, "e"), Ye(e, [{ key: "isLeader", get: /* @__PURE__ */ r(function() {
|
|
539
541
|
if (!this.elector) throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');
|
|
540
542
|
return this.elector.isLeader;
|
|
541
543
|
}, "get") }, { key: "prompt", value: /* @__PURE__ */ r(function() {
|
|
542
544
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
543
545
|
this.registry.set(t, O.PROMPTED);
|
|
544
|
-
var n =
|
|
546
|
+
var n = _(this.registry.values()).every(function(i) {
|
|
545
547
|
return i === O.PROMPTED;
|
|
546
548
|
});
|
|
547
549
|
t === this.token && this.send(d.PROMPT), n && this.options.onPrompt();
|
|
548
550
|
}, "value") }, { key: "idle", value: /* @__PURE__ */ r(function() {
|
|
549
551
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
550
552
|
this.registry.set(t, O.IDLE);
|
|
551
|
-
var n =
|
|
553
|
+
var n = _(this.registry.values()).every(function(i) {
|
|
552
554
|
return i === O.IDLE;
|
|
553
555
|
});
|
|
554
556
|
t === this.token && this.send(d.IDLE), !this.allIdle && n && (this.allIdle = !0, this.options.onIdle());
|
|
555
557
|
}, "value") }, { key: "active", value: /* @__PURE__ */ r(function() {
|
|
556
558
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
|
|
557
559
|
this.allIdle = !1, this.registry.set(t, O.ACTIVE);
|
|
558
|
-
var n =
|
|
560
|
+
var n = _(this.registry.values()).some(function(i) {
|
|
559
561
|
return i === O.ACTIVE;
|
|
560
562
|
});
|
|
561
563
|
t === this.token && this.send(d.ACTIVE), n && this.options.onActive(), this.isLastActive = t === this.token;
|
|
@@ -587,39 +589,39 @@ var Rn = function() {
|
|
|
587
589
|
}, "value") }, { key: "close", value: /* @__PURE__ */ r(function() {
|
|
588
590
|
this.options.leaderElection && this.elector.close(), this.send(d.DEREGISTER), this.channel.close();
|
|
589
591
|
}, "value") }]), e;
|
|
590
|
-
}(),
|
|
591
|
-
function
|
|
592
|
+
})(), _n = W ? document : null, Vn = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
|
|
593
|
+
function Bn(e, t) {
|
|
592
594
|
var n = /* @__PURE__ */ r(function() {
|
|
593
595
|
for (var o = arguments.length, h = new Array(o), s = 0; s < o; s++) h[s] = arguments[s];
|
|
594
596
|
i && clearTimeout(i), i = setTimeout(function() {
|
|
595
|
-
e.apply(void 0,
|
|
597
|
+
e.apply(void 0, _(h)), i = null;
|
|
596
598
|
}, t);
|
|
597
599
|
}, "t"), i;
|
|
598
600
|
return n.cancel = function() {
|
|
599
601
|
clearTimeout(i);
|
|
600
602
|
}, n;
|
|
601
603
|
}
|
|
602
|
-
r(
|
|
603
|
-
function
|
|
604
|
+
r(Bn, "tr");
|
|
605
|
+
function Be(e, t) {
|
|
604
606
|
var n = 0;
|
|
605
607
|
return function() {
|
|
606
608
|
for (var i = arguments.length, o = new Array(i), h = 0; h < i; h++) o[h] = arguments[h];
|
|
607
609
|
var s = (/* @__PURE__ */ new Date()).getTime();
|
|
608
|
-
if (!(s - n < t)) return n = s, e.apply(void 0,
|
|
610
|
+
if (!(s - n < t)) return n = s, e.apply(void 0, _(o));
|
|
609
611
|
};
|
|
610
612
|
}
|
|
611
|
-
r(
|
|
613
|
+
r(Be, "Fe");
|
|
612
614
|
var E = /* @__PURE__ */ r(function() {
|
|
613
615
|
return Date.now();
|
|
614
616
|
}, "g"), ae = 2147483647;
|
|
615
|
-
function
|
|
616
|
-
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 ?
|
|
617
|
-
} : m,
|
|
618
|
-
} :
|
|
619
|
-
} :
|
|
620
|
-
} :
|
|
621
|
-
} :
|
|
622
|
-
} :
|
|
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);
|
|
623
625
|
w(function() {
|
|
624
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.");
|
|
625
627
|
if (n >= ae) throw new Error("❌ The value for the timeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
|
|
@@ -627,207 +629,207 @@ function jn() {
|
|
|
627
629
|
if (s >= ae) throw new Error("❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ".concat(ae, "."));
|
|
628
630
|
if (s >= n) throw new Error("❌ The value for the promptBeforeIdle property must be less than the timeout property, ".concat(n, "."));
|
|
629
631
|
if (s ? (D.current = n - s, K.current = s) : (D.current = n, K.current = o), !Y.current) {
|
|
630
|
-
if (
|
|
631
|
-
p.current && (re.current(null,
|
|
632
|
+
if (z || U) return;
|
|
633
|
+
p.current && (re.current(null, S), f.current && f.current.active()), ee();
|
|
632
634
|
}
|
|
633
|
-
}, [n, o, s,
|
|
634
|
-
var
|
|
635
|
+
}, [n, o, s, z, U]);
|
|
636
|
+
var lt = v(Ae);
|
|
635
637
|
w(function() {
|
|
636
|
-
|
|
637
|
-
}, [
|
|
638
|
-
var
|
|
638
|
+
lt.current = Ae;
|
|
639
|
+
}, [Ae]);
|
|
640
|
+
var ft = v(T), me = v(c), Ce = v(_(new Set(_(y).concat(_(T))).values())), N = v(U);
|
|
639
641
|
w(function() {
|
|
640
|
-
|
|
641
|
-
}, [
|
|
642
|
-
var pe = v(
|
|
642
|
+
N.current = U, !Y.current && (U ? Me() : z || ee());
|
|
643
|
+
}, [U]);
|
|
644
|
+
var pe = v(R);
|
|
643
645
|
w(function() {
|
|
644
|
-
pe.current =
|
|
645
|
-
}, [
|
|
646
|
-
var Ie = v(ye);
|
|
647
|
-
w(function() {
|
|
648
|
-
Ie.current = ye;
|
|
649
|
-
}, [ye]);
|
|
646
|
+
pe.current = R;
|
|
647
|
+
}, [R]);
|
|
650
648
|
var ke = v(Ee);
|
|
651
649
|
w(function() {
|
|
652
650
|
ke.current = Ee;
|
|
653
651
|
}, [Ee]);
|
|
654
|
-
var
|
|
652
|
+
var Le = v(be);
|
|
655
653
|
w(function() {
|
|
656
|
-
|
|
654
|
+
Le.current = be;
|
|
657
655
|
}, [be]);
|
|
658
|
-
var
|
|
656
|
+
var re = v(we);
|
|
659
657
|
w(function() {
|
|
660
|
-
|
|
658
|
+
re.current = we;
|
|
661
659
|
}, [we]);
|
|
660
|
+
var Se = v(Te);
|
|
661
|
+
w(function() {
|
|
662
|
+
Se.current = Te;
|
|
663
|
+
}, [Te]);
|
|
662
664
|
var ie = v(se);
|
|
663
665
|
w(function() {
|
|
664
666
|
ie.current = se;
|
|
665
667
|
}, [se]);
|
|
666
|
-
var X =
|
|
668
|
+
var X = tn(function() {
|
|
667
669
|
var u = /* @__PURE__ */ r(function(L, oe) {
|
|
668
670
|
return Se.current(L, oe);
|
|
669
671
|
}, "i");
|
|
670
|
-
return ce > 0 ?
|
|
671
|
-
}, [le, ce]),
|
|
672
|
+
return ce > 0 ? Bn(u, ce) : le > 0 ? Be(u, le) : u;
|
|
673
|
+
}, [le, ce]), ht = v();
|
|
672
674
|
w(function() {
|
|
673
|
-
ne && he && (
|
|
675
|
+
ne && he && (ht.current = Be(function() {
|
|
674
676
|
f.current.active();
|
|
675
677
|
}, he));
|
|
676
678
|
}, [ne, he]);
|
|
677
|
-
var
|
|
678
|
-
q.current !== null && (
|
|
679
|
-
}, "N"),
|
|
679
|
+
var j = /* @__PURE__ */ r(function() {
|
|
680
|
+
q.current !== null && (V.clearTimeout(q.current), q.current = null);
|
|
681
|
+
}, "N"), Z = /* @__PURE__ */ r(function(u) {
|
|
680
682
|
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
681
|
-
|
|
682
|
-
}, "Z"),
|
|
683
|
-
!
|
|
684
|
-
}, "wt"),
|
|
685
|
-
|
|
686
|
-
}, "bt"),
|
|
687
|
-
|
|
688
|
-
}, "ze"),
|
|
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);
|
|
688
|
+
}, "bt"), De = /* @__PURE__ */ r(function(u) {
|
|
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();
|
|
690
|
+
}, "ze"), Ne = /* @__PURE__ */ r(function(u) {
|
|
689
691
|
var L = !p.current;
|
|
690
692
|
if (L) {
|
|
691
693
|
X.cancel && X.cancel();
|
|
692
|
-
var oe = E() -
|
|
693
|
-
if (!
|
|
694
|
-
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);
|
|
695
697
|
return;
|
|
696
698
|
}
|
|
697
|
-
f.current ? f.current.idle() :
|
|
699
|
+
f.current ? f.current.idle() : vt();
|
|
698
700
|
return;
|
|
699
701
|
}
|
|
700
|
-
f.current ? f.current.active() :
|
|
702
|
+
f.current ? f.current.active() : De(u);
|
|
701
703
|
}, "Je"), je = /* @__PURE__ */ r(function(u) {
|
|
702
|
-
if (!fe && !
|
|
703
|
-
if (
|
|
704
|
-
|
|
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)) {
|
|
706
|
+
Ne(u);
|
|
705
707
|
return;
|
|
706
708
|
}
|
|
707
|
-
var L = E() -
|
|
708
|
-
if (p.current && !
|
|
709
|
-
|
|
709
|
+
var L = E() - C.current;
|
|
710
|
+
if (p.current && !Ae || !p.current && L >= D.current) {
|
|
711
|
+
Ne(u);
|
|
710
712
|
return;
|
|
711
713
|
}
|
|
712
|
-
J.current = !1, P.current = 0, F.current = 0,
|
|
714
|
+
J.current = !1, P.current = 0, F.current = 0, Z(), ne && he && ht.current();
|
|
713
715
|
}
|
|
714
|
-
}, "He"),
|
|
716
|
+
}, "He"), Oe = v(je);
|
|
715
717
|
w(function() {
|
|
716
718
|
var u = ve.current;
|
|
717
|
-
u &&
|
|
718
|
-
}, [
|
|
719
|
+
u && Q(), xe > 0 ? Oe.current = Be(je, xe) : Oe.current = je, u && H();
|
|
720
|
+
}, [xe, le, ce, Se, ne, he]);
|
|
719
721
|
var H = /* @__PURE__ */ r(function() {
|
|
720
|
-
|
|
721
|
-
me.current.addEventListener(u,
|
|
722
|
+
W && me.current && (ve.current || (Ce.current.forEach(function(u) {
|
|
723
|
+
me.current.addEventListener(u, Oe.current, { capture: !0, passive: !0 });
|
|
722
724
|
}), ve.current = !0));
|
|
723
|
-
}, "H"),
|
|
725
|
+
}, "H"), Q = /* @__PURE__ */ r(function() {
|
|
724
726
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
725
|
-
|
|
726
|
-
me.current.removeEventListener(L,
|
|
727
|
+
W && me.current && (ve.current || u) && (Ce.current.forEach(function(L) {
|
|
728
|
+
me.current.removeEventListener(L, Oe.current, { capture: !0 });
|
|
727
729
|
}), ve.current = !1);
|
|
728
|
-
}, "ee"),
|
|
729
|
-
return
|
|
730
|
-
}, [q, p,
|
|
731
|
-
return
|
|
732
|
-
}, [q, p, D,
|
|
733
|
-
return
|
|
734
|
-
}, [q, p,
|
|
730
|
+
}, "ee"), ee = g(function(u) {
|
|
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() {
|
|
735
737
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
736
|
-
return
|
|
737
|
-
}, [q,
|
|
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() {
|
|
738
740
|
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
739
|
-
return
|
|
740
|
-
}, [q, D,
|
|
741
|
-
return f.current ? (L && ie.current(u,
|
|
742
|
-
}, [se]),
|
|
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;
|
|
744
|
+
}, [se]), Dt = g(function() {
|
|
743
745
|
return p.current;
|
|
744
|
-
}, [p]),
|
|
745
|
-
return
|
|
746
|
-
}, [
|
|
746
|
+
}, [p]), Nt = g(function() {
|
|
747
|
+
return A.current;
|
|
748
|
+
}, [A]), jt = g(function() {
|
|
747
749
|
return f.current ? f.current.isLeader : null;
|
|
748
|
-
}, [f]),
|
|
750
|
+
}, [f]), _t = g(function() {
|
|
749
751
|
return f.current ? f.current.isLastActive : null;
|
|
750
|
-
}, [f]),
|
|
752
|
+
}, [f]), Vt = g(function() {
|
|
751
753
|
return f.current ? f.current.token : null;
|
|
752
|
-
}, [f]),
|
|
754
|
+
}, [f]), pt = g(function() {
|
|
753
755
|
if (J.current) return P.current;
|
|
754
|
-
var u = P.current ? P.current : K.current + D.current, L =
|
|
756
|
+
var u = P.current ? P.current : K.current + D.current, L = C.current ? E() - C.current : 0, oe = Math.floor(u - L);
|
|
755
757
|
return oe < 0 ? 0 : Math.abs(oe);
|
|
756
|
-
}, [D, K,
|
|
757
|
-
return Math.round(E() -
|
|
758
|
-
}, [
|
|
759
|
-
return Math.round(E() -
|
|
760
|
-
}, [
|
|
761
|
-
return
|
|
762
|
-
}, [
|
|
763
|
-
return
|
|
764
|
-
}, [
|
|
765
|
-
return p.current ? Math.round(E() -
|
|
766
|
-
}, [
|
|
767
|
-
return p.current ? Math.round(E() -
|
|
768
|
-
}, [
|
|
769
|
-
var u = Math.round(
|
|
758
|
+
}, [D, K, A, P, C]), gt = g(function() {
|
|
759
|
+
return Math.round(E() - Ie.current);
|
|
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() {
|
|
771
|
+
var u = Math.round(gt() - Et());
|
|
770
772
|
return u >= 0 ? u : 0;
|
|
771
|
-
}, [
|
|
772
|
-
var u = Math.round(
|
|
773
|
+
}, [k, $]), zt = g(function() {
|
|
774
|
+
var u = Math.round(yt() - bt());
|
|
773
775
|
return u >= 0 ? u : 0;
|
|
774
|
-
}, [
|
|
776
|
+
}, [k, $]);
|
|
775
777
|
w(function() {
|
|
776
778
|
if (ce > 0 && le > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
|
|
777
|
-
|
|
779
|
+
G && Mn(G);
|
|
778
780
|
var u = /* @__PURE__ */ r(function() {
|
|
779
|
-
f.current && f.current.close(), X.cancel && X.cancel(),
|
|
781
|
+
f.current && f.current.close(), X.cancel && X.cancel(), j(), Q(!0);
|
|
780
782
|
}, "i");
|
|
781
|
-
return
|
|
782
|
-
|
|
783
|
+
return W && window.addEventListener("beforeunload", u), function() {
|
|
784
|
+
W && window.removeEventListener("beforeunload", u), f.current && f.current.close(), X.cancel && X.cancel(), j(), Q(!0);
|
|
783
785
|
};
|
|
784
786
|
}, []), w(function() {
|
|
785
|
-
f.current && f.current.close(), ne ? f.current = new
|
|
786
|
-
|
|
787
|
+
f.current && f.current.close(), ne ? f.current = new jn({ channelName: it, leaderElection: at, onPrompt: /* @__PURE__ */ r(function() {
|
|
788
|
+
dt();
|
|
787
789
|
}, "onPrompt"), onIdle: /* @__PURE__ */ r(function() {
|
|
788
|
-
|
|
790
|
+
vt();
|
|
789
791
|
}, "onIdle"), onActive: /* @__PURE__ */ r(function() {
|
|
790
|
-
|
|
792
|
+
De();
|
|
791
793
|
}, "onActive"), onMessage: /* @__PURE__ */ r(function(u) {
|
|
792
|
-
ie.current(u,
|
|
793
|
-
}, "onMessage"), start:
|
|
794
|
-
}, [ne,
|
|
795
|
-
Y.current || (
|
|
796
|
-
}, [
|
|
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() {
|
|
797
799
|
if (!Y.current) {
|
|
798
|
-
var u =
|
|
799
|
-
if (
|
|
800
|
-
fe ?
|
|
800
|
+
var u = _(new Set(_(y).concat(_(T))).values());
|
|
801
|
+
if (Q(), Ce.current = u, me.current = c, ft.current = T, z || U) return;
|
|
802
|
+
fe ? ee() : H();
|
|
801
803
|
}
|
|
802
|
-
}, [c, JSON.stringify(y), JSON.stringify(
|
|
804
|
+
}, [c, JSON.stringify(y), JSON.stringify(T), Y, U, z, fe]), w(function() {
|
|
803
805
|
Y.current && (Y.current = !1);
|
|
804
806
|
}, [Y]);
|
|
805
|
-
var
|
|
806
|
-
|
|
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;
|
|
807
809
|
}, "setOnPresenceChange"), setOnPrompt: /* @__PURE__ */ r(function(u) {
|
|
808
|
-
ye = u, Ie.current = u;
|
|
809
|
-
}, "setOnPrompt"), setOnIdle: /* @__PURE__ */ r(function(u) {
|
|
810
810
|
Ee = u, ke.current = u;
|
|
811
|
+
}, "setOnPrompt"), setOnIdle: /* @__PURE__ */ r(function(u) {
|
|
812
|
+
be = u, Le.current = u;
|
|
811
813
|
}, "setOnIdle"), setOnActive: /* @__PURE__ */ r(function(u) {
|
|
812
|
-
|
|
814
|
+
we = u, re.current = u;
|
|
813
815
|
}, "setOnActive"), setOnAction: /* @__PURE__ */ r(function(u) {
|
|
814
|
-
|
|
816
|
+
Te = u, Se.current = u;
|
|
815
817
|
}, "setOnAction"), setOnMessage: /* @__PURE__ */ r(function(u) {
|
|
816
818
|
se = u, ie.current = u;
|
|
817
819
|
}, "setOnMessage") };
|
|
818
|
-
return
|
|
819
|
-
}
|
|
820
|
-
r(
|
|
821
|
-
var
|
|
822
|
-
|
|
823
|
-
const
|
|
824
|
-
function
|
|
825
|
-
return
|
|
826
|
-
}
|
|
827
|
-
r(
|
|
828
|
-
function
|
|
829
|
-
const t =
|
|
830
|
-
timeout: e ??
|
|
820
|
+
return S;
|
|
821
|
+
}
|
|
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) {
|
|
827
|
+
return Pe(e) ? Math.floor(e / 1e3) : "";
|
|
828
|
+
}
|
|
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,
|
|
831
833
|
events: [
|
|
832
834
|
"mousemove",
|
|
833
835
|
"keydown",
|
|
@@ -845,60 +847,127 @@ function Kn({ timeout: e }) {
|
|
|
845
847
|
});
|
|
846
848
|
w(() => {
|
|
847
849
|
const m = setInterval(() => {
|
|
848
|
-
l(
|
|
850
|
+
l(B());
|
|
849
851
|
}, 500);
|
|
850
852
|
return () => {
|
|
851
853
|
clearInterval(m);
|
|
852
854
|
};
|
|
853
|
-
}, [
|
|
854
|
-
const
|
|
855
|
-
a(!1),
|
|
856
|
-
}, [
|
|
855
|
+
}, [B]);
|
|
856
|
+
const I = g(() => {
|
|
857
|
+
a(!1), G();
|
|
858
|
+
}, [G]), T = g(async () => {
|
|
857
859
|
y.current || (y.current = !0, l(null), a(!1), await o({
|
|
858
860
|
title: i("Message.로그인 페이지로 이동합니다.", {
|
|
859
861
|
defaultValue: "로그인 페이지로 이동합니다."
|
|
860
862
|
})
|
|
861
|
-
}), h(), t(
|
|
863
|
+
}), h(), t(It));
|
|
862
864
|
}, [o, t, h, i]);
|
|
863
865
|
return w(() => {
|
|
864
|
-
if (n ===
|
|
866
|
+
if (n === It) {
|
|
865
867
|
a(!1);
|
|
866
868
|
return;
|
|
867
869
|
}
|
|
868
|
-
if (!s &&
|
|
870
|
+
if (!s && Pe(c) && c > 0 && c <= At) {
|
|
869
871
|
a(!0);
|
|
870
872
|
return;
|
|
871
873
|
}
|
|
872
|
-
if (s &&
|
|
873
|
-
|
|
874
|
+
if (s && Pe(c) && c > At) {
|
|
875
|
+
I();
|
|
874
876
|
return;
|
|
875
877
|
}
|
|
876
|
-
|
|
877
|
-
}, [s, c, n,
|
|
878
|
-
|
|
878
|
+
Pe(c) && c <= 0 && T();
|
|
879
|
+
}, [s, c, n, I, T]), /* @__PURE__ */ M(
|
|
880
|
+
Je,
|
|
879
881
|
{
|
|
880
882
|
title: i("Title.로그인 연장", { defaultValue: "로그인 연장" }),
|
|
881
883
|
canConfirm: !1,
|
|
882
884
|
open: s,
|
|
883
|
-
onClose: /* @__PURE__ */ r(() =>
|
|
885
|
+
onClose: /* @__PURE__ */ r(() => I(), "onClose"),
|
|
884
886
|
maxWidth: "xs",
|
|
885
887
|
fullWidth: !0,
|
|
886
|
-
children: /* @__PURE__ */
|
|
888
|
+
children: /* @__PURE__ */ M(kt, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
|
|
887
889
|
defaultValue: "{{seconds}}초 후 로그인 페이지로 이동합니다.",
|
|
888
|
-
seconds:
|
|
890
|
+
seconds: Fn(c)
|
|
889
891
|
}) })
|
|
890
892
|
}
|
|
891
893
|
);
|
|
892
894
|
}
|
|
893
|
-
r(
|
|
894
|
-
|
|
895
|
+
r(ir, "OwpAutoLogoutDialog");
|
|
896
|
+
function xt(e) {
|
|
897
|
+
var t, n, i = "";
|
|
898
|
+
if (typeof e == "string" || typeof e == "number") i += e;
|
|
899
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
900
|
+
var o = e.length;
|
|
901
|
+
for (t = 0; t < o; t++) e[t] && (n = xt(e[t])) && (i && (i += " "), i += n);
|
|
902
|
+
} else for (n in e) e[n] && (i && (i += " "), i += n);
|
|
903
|
+
return i;
|
|
904
|
+
}
|
|
905
|
+
r(xt, "r");
|
|
906
|
+
function Jn() {
|
|
907
|
+
for (var e, t, n = 0, i = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = xt(e)) && (i && (i += " "), i += t);
|
|
908
|
+
return i;
|
|
909
|
+
}
|
|
910
|
+
r(Jn, "clsx");
|
|
911
|
+
function or(e) {
|
|
912
|
+
const { delay: t = 0, className: n } = e, [i, o] = Ge(!t);
|
|
913
|
+
return Wt(() => {
|
|
914
|
+
o(!0);
|
|
915
|
+
}, t), /* @__PURE__ */ ge(
|
|
916
|
+
"div",
|
|
917
|
+
{
|
|
918
|
+
className: Jn(
|
|
919
|
+
n,
|
|
920
|
+
"flex flex-1 h-full w-full self-center flex-col items-center justify-center p-24",
|
|
921
|
+
i ? "" : "hidden"
|
|
922
|
+
),
|
|
923
|
+
children: [
|
|
924
|
+
/* @__PURE__ */ M(sn, { className: "-mb-16 text-md font-medium sm:text-xl", color: "text.secondary" }),
|
|
925
|
+
/* @__PURE__ */ ge(
|
|
926
|
+
an,
|
|
927
|
+
{
|
|
928
|
+
id: "spinner",
|
|
929
|
+
sx: {
|
|
930
|
+
"& > div": {
|
|
931
|
+
backgroundColor: "palette.secondary.main"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
children: [
|
|
935
|
+
/* @__PURE__ */ M("div", { className: "bounce1" }),
|
|
936
|
+
/* @__PURE__ */ M("div", { className: "bounce2" }),
|
|
937
|
+
/* @__PURE__ */ M("div", { className: "bounce3" })
|
|
938
|
+
]
|
|
939
|
+
}
|
|
940
|
+
)
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
r(or, "OwpLoading");
|
|
946
|
+
const ur = /* @__PURE__ */ r(({ loading: e, title: t }) => {
|
|
947
|
+
const { t: n } = Fe(), i = t ?? n("Common.로딩 중...");
|
|
948
|
+
return /* @__PURE__ */ ge(
|
|
949
|
+
cn,
|
|
950
|
+
{
|
|
951
|
+
className: "flex flex-1 flex-col space-y-12",
|
|
952
|
+
sx: /* @__PURE__ */ r((o) => ({ color: "#fff", zIndex: o.zIndex.tooltip + 1 }), "sx"),
|
|
953
|
+
open: !!e,
|
|
954
|
+
children: [
|
|
955
|
+
/* @__PURE__ */ M(ln, { color: "inherit" }),
|
|
956
|
+
i && /* @__PURE__ */ M(kt, { variant: "h6", children: i })
|
|
957
|
+
]
|
|
958
|
+
}
|
|
959
|
+
);
|
|
960
|
+
}, "OwpPageLockLoading"), ar = fn(/* @__PURE__ */ Yt.jsx("path", {
|
|
895
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"
|
|
896
962
|
}), "Close");
|
|
897
963
|
export {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
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,
|
|
971
|
+
Pe as i
|
|
903
972
|
};
|
|
904
|
-
//# sourceMappingURL=Close-
|
|
973
|
+
//# sourceMappingURL=Close-C91nHTKM.js.map
|