@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.
Files changed (250) hide show
  1. package/colors/chart.d.ts +3 -0
  2. package/colors/chart.js +1 -0
  3. package/contexts.d.ts +3 -0
  4. package/contexts.js +1 -0
  5. package/dist/{Close-Cm04EulE.js → Close-C91nHTKM.js} +398 -329
  6. package/dist/Close-C91nHTKM.js.map +1 -0
  7. package/dist/{OwpStoreProvider-CFq963Pl.js → OwpStoreProvider-BPa_lWCz.js} +3 -3
  8. package/dist/OwpStoreProvider-BPa_lWCz.js.map +1 -0
  9. package/dist/OwpUtils-DV2LSByd.js +411 -0
  10. package/dist/OwpUtils-DV2LSByd.js.map +1 -0
  11. package/dist/colorMap-DP-DCZbV.js +82 -0
  12. package/dist/colorMap-DP-DCZbV.js.map +1 -0
  13. package/dist/colors/chart.js +6 -0
  14. package/dist/colors/chart.js.map +1 -0
  15. package/dist/colors.js +6 -18
  16. package/dist/colors.js.map +1 -1
  17. package/dist/commonCodeUtils-DNfSjP6S.js +42 -0
  18. package/dist/commonCodeUtils-DNfSjP6S.js.map +1 -0
  19. package/dist/constants.js +19 -21
  20. package/dist/constants.js.map +1 -1
  21. package/dist/contexts.js +104 -0
  22. package/dist/contexts.js.map +1 -0
  23. package/dist/dark-DAY0F6Ph.js +21 -0
  24. package/dist/dark-DAY0F6Ph.js.map +1 -0
  25. package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js +1496 -0
  26. package/dist/emotion-react-jsx-runtime.browser.esm-BMvSswBW.js.map +1 -0
  27. package/dist/hooks.js +116 -100
  28. package/dist/hooks.js.map +1 -1
  29. package/dist/index.css +1 -1
  30. package/dist/index.js +44321 -86
  31. package/dist/index.js.map +1 -1
  32. package/dist/isString-Codtu20I.js +55 -0
  33. package/dist/isString-Codtu20I.js.map +1 -0
  34. package/dist/isTypedArray-CCnDZ5HJ.js +609 -0
  35. package/dist/isTypedArray-CCnDZ5HJ.js.map +1 -0
  36. package/dist/language-DaxFvPOq.js +35 -0
  37. package/dist/language-DaxFvPOq.js.map +1 -0
  38. package/dist/lazyLoadedSlices-C18y0AEB.js +2773 -0
  39. package/dist/lazyLoadedSlices-C18y0AEB.js.map +1 -0
  40. package/dist/localStorageKeys-Che0CNci.js +10 -0
  41. package/dist/localStorageKeys-Che0CNci.js.map +1 -0
  42. package/dist/owp-app.css +1 -1
  43. package/dist/storageKeys-C6xHFiTo.js +42 -0
  44. package/dist/storageKeys-C6xHFiTo.js.map +1 -0
  45. package/dist/store.js +32 -33
  46. package/dist/{toUpper-K8I4frC5.js → toUpper-Dmh8Htx_.js} +2 -2
  47. package/dist/{toUpper-K8I4frC5.js.map → toUpper-Dmh8Htx_.js.map} +1 -1
  48. package/dist/treeGrid-DtKg-9uf.js +8 -0
  49. package/dist/treeGrid-DtKg-9uf.js.map +1 -0
  50. package/dist/{treeGridUtil-C46Qi5LG.js → treeGridUtil-DAfaAk6C.js} +79 -78
  51. package/dist/{treeGridUtil-C46Qi5LG.js.map → treeGridUtil-DAfaAk6C.js.map} +1 -1
  52. package/dist/types/colors/chart/colorMap.d.ts +8 -0
  53. package/dist/types/colors/chart/index.d.ts +1 -0
  54. package/dist/types/colors/index.d.ts +2 -2
  55. package/dist/types/colors/palettes/index.d.ts +2 -0
  56. package/dist/types/components/OwpErrorBoundary/OwpErrorBoundary.d.ts +1 -1
  57. package/dist/types/components/OwpFileUploadButton/OwpFileUploadButton.d.ts +2 -2
  58. package/dist/types/components/OwpHidden/OwpHidden.d.ts +19 -0
  59. package/dist/types/components/OwpHidden/index.d.ts +2 -0
  60. package/dist/types/components/OwpLayout/OwpLayout.d.ts +2 -2
  61. package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +2 -2
  62. package/dist/types/components/OwpPageCarded/OwpPageCardedSidebar.d.ts +1 -1
  63. package/dist/types/components/OwpPicker/DatePickerInput.d.ts +1 -1
  64. package/dist/types/components/OwpStyleProvider/OwpStyleProvider.d.ts +5 -5
  65. package/dist/types/components/OwpTable/OwpTable.d.ts +1 -3
  66. package/dist/types/components/OwpTabs/OwpTab.d.ts +2 -4
  67. package/dist/types/components/OwpTabs/OwpTabs.d.ts +2 -4
  68. package/dist/types/{default-settings/OwpDefaultSettings.d.ts → configs/defaultConfig.d.ts} +26 -172
  69. package/dist/types/{components/layouts/layout2/Layout2Config.d.ts → configs/layoutConfig.d.ts} +12 -15
  70. package/dist/types/contexts/OwpAppProvider.d.ts +44 -0
  71. package/dist/types/hooks/index.d.ts +4 -2
  72. package/dist/types/{store/hooks.d.ts → hooks/useAppStore.d.ts} +1 -1
  73. package/dist/types/hooks/useCurrentLanguage.d.ts +1 -5
  74. package/dist/types/hooks/useInitApp.d.ts +8 -0
  75. package/dist/types/hooks/useInitCommonCodes.d.ts +4 -0
  76. package/dist/types/hooks/useLogoSrc.d.ts +8 -0
  77. package/dist/types/hooks/useNavigation.d.ts +3 -18
  78. package/dist/types/hooks/useOwpTranslation.d.ts +0 -2
  79. package/dist/types/hooks/useStorage.d.ts +0 -13
  80. package/dist/types/hooks/useThemeMediaQuery.d.ts +1 -1
  81. package/dist/types/index.d.ts +3 -28
  82. package/dist/types/{components/layouts/layout3/Layout3.d.ts → layout/Layout.d.ts} +4 -4
  83. package/dist/types/layout/components/layouts/FooterLayout.d.ts +9 -0
  84. package/dist/types/layout/components/layouts/LeftSideLayout.d.ts +6 -0
  85. package/dist/types/layout/components/layouts/NavbarToggleFabLayout.d.ts +8 -0
  86. package/dist/types/layout/components/layouts/NavbarWrapperLayout.d.ts +5 -0
  87. package/dist/types/layout/components/menus/LogoutMenu.d.ts +8 -0
  88. package/dist/types/layout/components/menus/PasswordChangeMenu.d.ts +8 -0
  89. package/dist/types/{components/layouts/shared-components → layout/components/menus}/UserMenu.d.ts +1 -1
  90. package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarPinToggleButton.d.ts +1 -1
  91. package/dist/types/layout/components/navbar/NavbarToggleButton.d.ts +11 -0
  92. package/dist/types/layout/components/navbar/style/NavbarStyle.d.ts +5 -0
  93. package/dist/types/layout/components/navbar/style/NavbarStyleContent.d.ts +9 -0
  94. package/dist/types/layout/components/navigation/NavBadge.d.ts +17 -0
  95. package/dist/types/layout/components/navigation/NavItem.d.ts +14 -0
  96. package/dist/types/layout/components/navigation/Navigation.d.ts +3 -0
  97. package/dist/types/layout/components/navigation/NavigationMenu.d.ts +23 -0
  98. package/dist/types/layout/components/navigation/vertical/NavVerticalLayout.d.ts +9 -0
  99. package/dist/types/layout/components/navigation/vertical/types/NavVerticalCollapse.d.ts +6 -0
  100. package/dist/types/layout/components/navigation/vertical/types/NavVerticalGroup.d.ts +6 -0
  101. package/dist/types/layout/components/navigation/vertical/types/NavVerticalItem.d.ts +6 -0
  102. package/dist/types/layout/components/navigation/vertical/types/NavVerticalLink.d.ts +7 -0
  103. package/dist/types/layout/components/toggles/FullScreenToggle.d.ts +8 -0
  104. package/dist/types/layout/components/toggles/LanguageSwitcherToggle.d.ts +9 -0
  105. package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +16 -0
  106. package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +9 -0
  107. package/dist/types/layout/components/toggles/toggleStyles.d.ts +10 -0
  108. package/dist/types/{components/layouts/layout3/components/FooterLayout3.d.ts → layout/components/toolbar/ToolbarLayout.d.ts} +4 -4
  109. package/dist/types/{components/layouts → layout}/themeLayoutConfigs.d.ts +2 -4
  110. package/dist/types/store/index.d.ts +1 -1
  111. package/dist/types/store/lazyLoadedSlices.d.ts +2 -2
  112. package/dist/types/{components/layouts/shared-components/navigation/store → store}/navigationSlice.d.ts +12 -12
  113. package/dist/types/store/owpSettingsSlice.d.ts +13 -1806
  114. package/dist/types/{components/OwpNavigation/types/OwpNavItemType.d.ts → types/OwpNavigationTypes.d.ts} +14 -4
  115. package/dist/types/types/OwpSettingsTypes.d.ts +2 -2
  116. package/dist/types/types/index.d.ts +3 -0
  117. package/dist/types/utils/getEstimatedTextCellWidth.d.ts +12 -0
  118. package/dist/types/utils/index.d.ts +2 -0
  119. package/dist/types/utils/language.d.ts +8 -0
  120. package/dist/types/{components/OwpNavigation/utils/OwpNavigationHelper.d.ts → utils/navigationUtils.d.ts} +17 -5
  121. package/dist/types.js +2 -0
  122. package/dist/types.js.map +1 -0
  123. package/dist/usePageLockLoading-BGODEt_k.js +39 -0
  124. package/dist/usePageLockLoading-BGODEt_k.js.map +1 -0
  125. package/dist/useShortcuts-BjtlXprQ.js +236 -0
  126. package/dist/useShortcuts-BjtlXprQ.js.map +1 -0
  127. package/dist/useTreeGridExcelExport-BE6h1hsO.js +120 -0
  128. package/dist/useTreeGridExcelExport-BE6h1hsO.js.map +1 -0
  129. package/dist/utils.js +6893 -6652
  130. package/dist/utils.js.map +1 -1
  131. package/owp-app.css +1 -0
  132. package/package.json +51 -47
  133. package/types.d.ts +3 -0
  134. package/types.js +1 -0
  135. package/context.d.ts +0 -3
  136. package/context.js +0 -1
  137. package/dist/Close-Cm04EulE.js.map +0 -1
  138. package/dist/OwpStoreProvider-CFq963Pl.js.map +0 -1
  139. package/dist/OwpUtils-9lHSCdan.js +0 -611
  140. package/dist/OwpUtils-9lHSCdan.js.map +0 -1
  141. package/dist/QuickPanel-DlrhsNXW.js +0 -104
  142. package/dist/QuickPanel-DlrhsNXW.js.map +0 -1
  143. package/dist/context.js +0 -74
  144. package/dist/context.js.map +0 -1
  145. package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js +0 -1751
  146. package/dist/emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js.map +0 -1
  147. package/dist/index-Dn7pPU3W.js +0 -47049
  148. package/dist/index-Dn7pPU3W.js.map +0 -1
  149. package/dist/isTypedArray-xp-fB7W4.js +0 -411
  150. package/dist/isTypedArray-xp-fB7W4.js.map +0 -1
  151. package/dist/lazyLoadedSlices-BYAl2fil.js +0 -2786
  152. package/dist/lazyLoadedSlices-BYAl2fil.js.map +0 -1
  153. package/dist/storageKeys-DRzte9LZ.js +0 -15
  154. package/dist/storageKeys-DRzte9LZ.js.map +0 -1
  155. package/dist/treeGrid-DRAoPLXh.js +0 -35
  156. package/dist/treeGrid-DRAoPLXh.js.map +0 -1
  157. package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +0 -1
  158. package/dist/types/components/OwpCommonDialog/index.d.ts +0 -1
  159. package/dist/types/components/OwpNavigation/OwpNavBadge.d.ts +0 -17
  160. package/dist/types/components/OwpNavigation/OwpNavItem.d.ts +0 -14
  161. package/dist/types/components/OwpNavigation/OwpNavigation.d.ts +0 -23
  162. package/dist/types/components/OwpNavigation/horizontal/OwpNavHorizontalLayout1.d.ts +0 -7
  163. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalCollapse.d.ts +0 -15
  164. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +0 -13
  165. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +0 -11
  166. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +0 -8
  167. package/dist/types/components/OwpNavigation/index.d.ts +0 -1
  168. package/dist/types/components/OwpNavigation/isUrlInChildren.d.ts +0 -7
  169. package/dist/types/components/OwpNavigation/models/OwpNavItemModel.d.ts +0 -8
  170. package/dist/types/components/OwpNavigation/types/OwpNavBadgeType.d.ts +0 -9
  171. package/dist/types/components/OwpNavigation/utils/components.d.ts +0 -4
  172. package/dist/types/components/OwpNavigation/utils/registerComponent.d.ts +0 -4
  173. package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout1.d.ts +0 -9
  174. package/dist/types/components/OwpNavigation/vertical/OwpNavVerticalLayout2.d.ts +0 -7
  175. package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalCollapse.d.ts +0 -7
  176. package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalGroup.d.ts +0 -7
  177. package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalItem.d.ts +0 -7
  178. package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalLink.d.ts +0 -8
  179. package/dist/types/components/OwpNavigation/vertical/types/OwpNavVerticalTab.d.ts +0 -11
  180. package/dist/types/components/OwpSearch/OwpSearch.d.ts +0 -23
  181. package/dist/types/components/OwpSearch/index.d.ts +0 -1
  182. package/dist/types/components/OwpShortcuts/OwpShortcuts.d.ts +0 -19
  183. package/dist/types/components/OwpShortcuts/index.d.ts +0 -1
  184. package/dist/types/components/OwpSidePanel/OwpSidePanel.d.ts +0 -18
  185. package/dist/types/components/OwpSidePanel/index.d.ts +0 -1
  186. package/dist/types/components/OwpTheme/OwpTheme.d.ts +0 -18
  187. package/dist/types/components/OwpTheme/index.d.ts +0 -1
  188. package/dist/types/components/OwpThemeSelector/OwpThemeSelector.d.ts +0 -16
  189. package/dist/types/components/OwpThemeSelector/SchemePreview.d.ts +0 -14
  190. package/dist/types/components/OwpThemeSelector/ThemePreview.d.ts +0 -17
  191. package/dist/types/components/OwpThemeSelector/index.d.ts +0 -1
  192. package/dist/types/components/layouts/layout1/Layout1.d.ts +0 -10
  193. package/dist/types/components/layouts/layout1/Layout1Config.d.ts +0 -114
  194. package/dist/types/components/layouts/layout1/components/FooterLayout1.d.ts +0 -9
  195. package/dist/types/components/layouts/layout1/components/LeftSideLayout1.d.ts +0 -6
  196. package/dist/types/components/layouts/layout1/components/NavbarToggleFabLayout1.d.ts +0 -8
  197. package/dist/types/components/layouts/layout1/components/NavbarWrapperLayout1.d.ts +0 -5
  198. package/dist/types/components/layouts/layout1/components/ToolbarLayout1.d.ts +0 -9
  199. package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1.d.ts +0 -5
  200. package/dist/types/components/layouts/layout1/components/navbar/style-1/NavbarStyle1Content.d.ts +0 -9
  201. package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2.d.ts +0 -5
  202. package/dist/types/components/layouts/layout1/components/navbar/style-2/NavbarStyle2Content.d.ts +0 -9
  203. package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3.d.ts +0 -9
  204. package/dist/types/components/layouts/layout1/components/navbar/style-3/NavbarStyle3Content.d.ts +0 -10
  205. package/dist/types/components/layouts/layout2/Layout2.d.ts +0 -10
  206. package/dist/types/components/layouts/layout2/components/FooterLayout2.d.ts +0 -9
  207. package/dist/types/components/layouts/layout2/components/LeftSideLayout2.d.ts +0 -6
  208. package/dist/types/components/layouts/layout2/components/NavbarLayout2.d.ts +0 -9
  209. package/dist/types/components/layouts/layout2/components/NavbarMobileLayout2.d.ts +0 -9
  210. package/dist/types/components/layouts/layout2/components/NavbarToggleFabLayout2.d.ts +0 -8
  211. package/dist/types/components/layouts/layout2/components/NavbarWrapperLayout2.d.ts +0 -5
  212. package/dist/types/components/layouts/layout2/components/RightSideLayout2.d.ts +0 -6
  213. package/dist/types/components/layouts/layout2/components/ToolbarLayout2.d.ts +0 -9
  214. package/dist/types/components/layouts/layout3/Layout3Config.d.ts +0 -110
  215. package/dist/types/components/layouts/layout3/components/LeftSideLayout3.d.ts +0 -6
  216. package/dist/types/components/layouts/layout3/components/NavbarLayout3.d.ts +0 -9
  217. package/dist/types/components/layouts/layout3/components/NavbarMobileLayout3.d.ts +0 -9
  218. package/dist/types/components/layouts/layout3/components/NavbarWrapperLayout3.d.ts +0 -5
  219. package/dist/types/components/layouts/layout3/components/RightSideLayout3.d.ts +0 -6
  220. package/dist/types/components/layouts/layout3/components/ToolbarLayout3.d.ts +0 -9
  221. package/dist/types/components/layouts/shared-components/FullScreenToggle.d.ts +0 -8
  222. package/dist/types/components/layouts/shared-components/LanguageSwitcher.d.ts +0 -7
  223. package/dist/types/components/layouts/shared-components/PasswordChangeForm.d.ts +0 -2
  224. package/dist/types/components/layouts/shared-components/navbar/NavbarToggleButton.d.ts +0 -7
  225. package/dist/types/components/layouts/shared-components/navigation/Navigation.d.ts +0 -3
  226. package/dist/types/components/layouts/shared-components/navigation/NavigationSearch.d.ts +0 -6
  227. package/dist/types/components/layouts/shared-components/navigation/NavigationShortcuts.d.ts +0 -6
  228. package/dist/types/components/layouts/shared-components/quickPanel/QuickPanel.d.ts +0 -5
  229. package/dist/types/components/layouts/shared-components/quickPanel/QuickPanelToggleButton.d.ts +0 -9
  230. package/dist/types/components/layouts/shared-components/quickPanel/quickPanelSlice.d.ts +0 -14
  231. package/dist/types/context/OwpAppProvider.d.ts +0 -36
  232. package/dist/types/hooks/useCurrentLogoSrc.d.ts +0 -8
  233. package/dist/types/hooks/useTreeGridCommonCodeEnum.d.ts +0 -8
  234. package/dist/useOwpTranslation-CMrtqKkT.js +0 -190
  235. package/dist/useOwpTranslation-CMrtqKkT.js.map +0 -1
  236. package/dist/useStorage-BA0D8KA7.js +0 -67
  237. package/dist/useStorage-BA0D8KA7.js.map +0 -1
  238. package/dist/useTreeGridExcelExport-DLMecvHS.js +0 -186
  239. package/dist/useTreeGridExcelExport-DLMecvHS.js.map +0 -1
  240. /package/dist/types/colors/{owpDark.d.ts → palettes/dark.d.ts} +0 -0
  241. /package/dist/types/colors/{skyBlue.d.ts → palettes/skyBlue.d.ts} +0 -0
  242. /package/dist/types/{context → contexts}/OwpCoreProvider.d.ts +0 -0
  243. /package/dist/types/{context → contexts}/OwpStoreProvider.d.ts +0 -0
  244. /package/dist/types/{context → contexts}/OwpUiProvider.d.ts +0 -0
  245. /package/dist/types/{context → contexts}/index.d.ts +0 -0
  246. /package/dist/types/{components/layouts/shared-components → layout/components/logo}/Logo.d.ts +0 -0
  247. /package/dist/types/{components/layouts/shared-components → layout/components}/navbar/NavbarToggleFab.d.ts +0 -0
  248. /package/dist/types/{components/layouts/shared-components → layout/components/toggles}/LogoutToggle.d.ts +0 -0
  249. /package/dist/types/{components/layouts → layout}/themeLayouts.d.ts +0 -0
  250. /package/dist/types/{components/layouts/shared-components/navbar → store}/navbarSlice.d.ts +0 -0
@@ -1,18 +1,21 @@
1
- var Ut = Object.defineProperty;
2
- var r = (e, t) => Ut(e, "name", { value: t, configurable: !0 });
3
- import { a as yt, j as te, b as Ft } from "./emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js";
4
- import { DialogContent as Jt, DialogActions as Yt, Dialog as qt, DialogTitle as zt, Box as Wt, Button as Et, Typography as Ht } from "@mui/material";
5
- import { forwardRef as Kt, createContext as Xt, useRef as v, useEffect as w, useCallback as g, useMemo as $t, Component as Zt, useState as bt } from "react";
6
- import { useTranslation as Qt } from "react-i18next";
7
- import { b as en, c as tn } from "./useOwpTranslation-CMrtqKkT.js";
8
- import { u as nn } from "./useStorage-BA0D8KA7.js";
9
- import { useNavigate as rn, useLocation as on } from "react-router-dom";
10
- import { createSvgIcon as un } from "@mui/material/utils";
11
- function Oe(e) {
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(Oe, "isNumber");
15
- const Ue = Kt(
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: V, i18n: T } = Qt("owp"), A = (y == null ? void 0 : y.confirmText) ?? V(T.exists("button.save") ? "button.save" : "Button.저장", { defaultValue: "저장" }), m = (y == null ? void 0 : y.cancelText) ?? V(
30
- i ? T.exists("button.cancel") ? "button.cancel" : "Button.취소" : "Button.닫기",
31
- { defaultValue: i ? "취소" : "닫기" }
32
- );
33
- return /* @__PURE__ */ yt(
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((G, k) => {
40
- k !== "backdropClick" && (s == null || s(G, k));
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__ */ te(zt, { children: e }),
45
- /* @__PURE__ */ te(Jt, { dividers: !0, ...l, children: t }),
46
- /* @__PURE__ */ yt(Yt, { children: [
47
- c && /* @__PURE__ */ te(Wt, { className: "flex w-full items-start", children: c }),
48
- n && /* @__PURE__ */ te(
49
- Et,
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: m
61
+ children: T
60
62
  }
61
63
  ),
62
- i && /* @__PURE__ */ te(
63
- Et,
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: A
79
+ children: I
78
80
  }
79
81
  )
80
82
  ] })
@@ -83,83 +85,83 @@ const Ue = Kt(
83
85
  );
84
86
  }
85
87
  );
86
- Ue.displayName = "OwpDialog";
87
- const Hn = Ue;
88
- var an = Object.create, It = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, cn = Object.getOwnPropertyNames, ln = Object.getPrototypeOf, fn = Object.prototype.hasOwnProperty, hn = /* @__PURE__ */ r(function(e, t) {
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"), dn = /* @__PURE__ */ r(function(e, t, n, i) {
93
- if (t && typeof t == "object" || typeof t == "function") for (var o = cn(t), h = 0, s = o.length, a; h < s; h++) a = o[h], !fn.call(e, a) && a !== n && It(e, a, { get: (function(c) {
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 = sn(t, a)) || i.enumerable });
97
+ }).bind(null, a), enumerable: !(i = dn(t, a)) || i.enumerable });
96
98
  return e;
97
- }, "gr"), vn = /* @__PURE__ */ r(function(e, t, n) {
98
- return n = e != null ? an(ln(e)) : {}, dn(!e || !e.__esModule ? It(n, "default", { value: e, enumerable: !0 }) : n, e);
99
- }, "wr"), mn = hn(function(e, t) {
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(T) {
104
- return function(A) {
105
- var m = T(A);
106
- return A.add(m), m;
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(T) {
109
- return function(A, m) {
110
- return T.set(A, m), m;
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(T, A) {
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 G = A.get(m), k = G === void 0 ? m.size : G < a ? G + 1 : 0;
115
- if (!m.has(k)) return T(m, k);
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(k); ) k = Math.floor(Math.random() * a);
118
- return T(m, k);
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(k); ) k = Math.floor(Math.random() * h);
122
- return T(m, k);
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), _ = c(y, l), V = i(_);
125
- n.addUniqueNumber = V, n.generateUniqueNumber = _;
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 ee(e) {
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(ee, "Y");
133
- function kt(e, t) {
134
- return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : kt(e, t);
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(kt, "je");
137
- function ge(e, t) {
138
- if (!kt(e, t)) throw new TypeError("Cannot call a class as a function");
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(ge, "z");
141
- function Ge(e, t) {
142
- return Ge = Object.setPrototypeOf || function(n, i) {
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
- }, Ge(e, t);
146
+ }, Ue(e, t);
145
147
  }
146
- r(Ge, "De");
147
- function St(e, t) {
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 && Ge(e, t);
151
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ue(e, t);
150
152
  }
151
- r(St, "Ke");
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 Pe(e) {
157
- return Pe = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
158
+ function Re(e) {
159
+ return Re = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
158
160
  return t.__proto__ || Object.getPrototypeOf(t);
159
- }, Pe(e);
161
+ }, Re(e);
160
162
  }
161
- r(Pe, "be");
162
- function pn() {
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(pn, "Pt");
173
- function Lt(e) {
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(Lt, "Ne");
178
- function gn(e, t) {
179
- return t && (Lt(t) === "object" || typeof t == "function") ? t : ee(e);
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(gn, "kt");
182
- function Mt(e) {
183
- var t = pn();
183
+ r(Tn, "kt");
184
+ function Pt(e) {
185
+ var t = wn();
184
186
  return function() {
185
- var n = Pe(e), i;
187
+ var n = Re(e), i;
186
188
  if (t) {
187
- var o = Pe(this).constructor;
189
+ var o = Re(this).constructor;
188
190
  i = Reflect.construct(n, arguments, o);
189
191
  } else i = n.apply(this, arguments);
190
- return gn(this, i);
192
+ return Tn(this, i);
191
193
  };
192
194
  }
193
- r(Mt, "Ze");
194
- var yn = function(e) {
195
- St(n, e);
196
- var t = Mt(n);
195
+ r(Pt, "Ze");
196
+ var An = (function(e) {
197
+ Ot(n, e);
198
+ var t = Pt(n);
197
199
  function n() {
198
- return ge(this, n), t.apply(this, arguments);
200
+ return ye(this, n), t.apply(this, arguments);
199
201
  }
200
202
  return r(n, "t"), n;
201
- }(Zt);
203
+ })(nn);
202
204
  (function(e) {
203
- St(n, e);
204
- var t = Mt(n);
205
+ Ot(n, e);
206
+ var t = Pt(n);
205
207
  function n(i) {
206
- ge(this, n);
208
+ ye(this, n);
207
209
  var o;
208
- return o = t.call(this, i), o.onPresenceChange && i.setOnPresenceChange(o.onPresenceChange.bind(ee(o))), o.onPrompt && i.setOnPrompt(o.onPrompt.bind(ee(o))), o.onIdle && i.setOnIdle(o.onIdle.bind(ee(o))), o.onActive && i.setOnActive(o.onActive.bind(ee(o))), o.onAction && i.setOnAction(o.onAction.bind(ee(o))), o.onMessage && i.setOnMessage(o.onMessage.bind(ee(o))), o;
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
- })(yn);
212
- function Be(e, t) {
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(Be, "Ee");
218
- function En(e) {
219
- if (Array.isArray(e)) return Be(e);
219
+ r(ze, "Ee");
220
+ function In(e) {
221
+ if (Array.isArray(e)) return ze(e);
220
222
  }
221
- r(En, "At");
222
- function bn(e) {
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(bn, "Rt");
226
- function wn() {
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(wn, "Mt");
231
- function Tn(e, t) {
232
+ r(Ln, "Mt");
233
+ function Sn(e, t) {
232
234
  if (e) {
233
- if (typeof e == "string") return Be(e, t);
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 Be(e, t);
238
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ze(e, t);
237
239
  }
238
240
  }
239
- r(Tn, "Ct");
240
- function j(e) {
241
- return En(e) || bn(e) || Tn(e) || wn();
241
+ r(Sn, "Ct");
242
+ function _(e) {
243
+ return In(e) || kn(e) || Sn(e) || Ln();
242
244
  }
243
- r(j, "O");
244
- function An(e, t) {
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(An, "jt");
251
- function Fe(e, t, n) {
252
- return t && An(e.prototype, t), e;
252
+ r(On, "jt");
253
+ function Ye(e, t, n) {
254
+ return t && On(e.prototype, t), e;
253
255
  }
254
- r(Fe, "ce");
255
- vn(mn());
256
- var z = (typeof window > "u" || typeof window > "u" ? "undefined" : Lt(window)) === "object", N = { setTimeout: z ? setTimeout.bind(window) : setTimeout, clearTimeout: z ? clearTimeout.bind(window) : clearTimeout, setInterval: z ? setInterval.bind(window) : setInterval, clearInterval: z ? clearInterval.bind(window) : clearInterval };
257
- function In(e) {
258
- N.setTimeout = e.setTimeout, N.clearTimeout = e.clearTimeout, N.setInterval = e.setInterval, N.clearInterval = e.clearInterval;
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(In, "Jt");
261
- var ue = {}, kn = function() {
262
+ r(Mn, "Jt");
263
+ var ue = {}, Pn = (function() {
262
264
  function e(t) {
263
- ge(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);
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"), Fe(e, [{ key: "onStorage", value: /* @__PURE__ */ r(function(t) {
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), N.setTimeout(function() {
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
- }(), Sn = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : kn;
301
- function wt(e, t, n, i, o, h, s) {
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(wt, "Xt");
311
- function Ln(e) {
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
- wt(h, i, o, s, a, "next", c);
319
+ Tt(h, i, o, s, a, "next", c);
318
320
  }
319
321
  r(s, "s");
320
322
  function a(c) {
321
- wt(h, i, o, s, a, "throw", c);
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(Ln, "$t");
328
- function Mn(e, t) {
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(Mn, "Ve");
387
- function On() {
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 N.setTimeout(t, e);
392
+ return V.setTimeout(t, e);
391
393
  });
392
394
  }
393
- r(On, "Kt");
394
- function Ot() {
395
+ r(Dn, "Kt");
396
+ function Rt() {
395
397
  return Math.random().toString(36).substring(2);
396
398
  }
397
- r(Ot, "Ge");
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 Pn = function() {
404
+ var Nn = (function() {
403
405
  function e(t, n) {
404
- ge(this, e), b(this, "options", void 0), b(this, "channel", void 0), b(this, "token", Ot()), 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);
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"), Fe(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
408
+ return r(e, "e"), Ye(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
407
409
  var t = this;
408
- return Ln(function() {
410
+ return xn(function() {
409
411
  var n, i;
410
- return Mn(this, function(o) {
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, On(t.options.responseTime)];
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
- N.clearInterval(i);
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 = N.setInterval(function() {
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 N.clearInterval(n);
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 Rn = function() {
492
+ var jn = (function() {
491
493
  function e(t) {
492
494
  var n = this;
493
- ge(this, e), b(this, "channel", void 0), b(this, "options", void 0), b(this, "elector", void 0), b(this, "token", Ot()), b(this, "registry", /* @__PURE__ */ new Map()), b(this, "allIdle", !1), b(this, "isLastActive", !1);
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 Sn(i), this.registry.set(this.token, O.ACTIVE), t.leaderElection) {
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 Pn(this.channel, o), this.elector.waitForLeadership();
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"), Fe(e, [{ key: "isLeader", get: /* @__PURE__ */ r(function() {
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 = j(this.registry.values()).every(function(i) {
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 = j(this.registry.values()).every(function(i) {
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 = j(this.registry.values()).some(function(i) {
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
- }(), Dn = z ? document : null, Cn = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
591
- function xn(e, t) {
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, j(h)), i = null;
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(xn, "tr");
603
- function Ve(e, t) {
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, j(o));
610
+ if (!(s - n < t)) return n = s, e.apply(void 0, _(o));
609
611
  };
610
612
  }
611
- r(Ve, "Fe");
613
+ r(Be, "Fe");
612
614
  var E = /* @__PURE__ */ r(function() {
613
615
  return Date.now();
614
616
  }, "g"), ae = 2147483647;
615
- function jn() {
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 ? Dn : a, l = e.events, y = l === void 0 ? Cn : l, _ = e.timers, V = _ === void 0 ? void 0 : _, T = e.immediateEvents, A = T === void 0 ? [] : T, m = e.onPresenceChange, G = m === void 0 ? function() {
617
- } : m, k = e.onPrompt, ye = k === void 0 ? function() {
618
- } : k, Je = e.onIdle, Ee = Je === void 0 ? function() {
619
- } : Je, Ye = e.onActive, be = Ye === void 0 ? function() {
620
- } : Ye, qe = e.onAction, we = qe === void 0 ? function() {
621
- } : qe, ze = e.onMessage, se = ze === void 0 ? function() {
622
- } : ze, We = e.debounce, ce = We === void 0 ? 0 : We, He = e.throttle, le = He === void 0 ? 0 : He, Ke = e.eventsThrottle, Re = Ke === void 0 ? 200 : Ke, Xe = e.startOnMount, fe = Xe === void 0 ? !0 : Xe, $e = e.startManually, U = $e === void 0 ? !1 : $e, Ze = e.stopOnIdle, Te = Ze === void 0 ? !1 : Ze, Qe = e.crossTab, ne = Qe === void 0 ? !1 : Qe, et = e.name, tt = et === void 0 ? "idle-timer" : et, nt = e.syncTimers, he = nt === void 0 ? 0 : nt, rt = e.leaderElection, it = rt === void 0 ? !1 : rt, ot = e.disabled, B = ot === void 0 ? !1 : ot, ut = v(E()), Ae = v(E()), S = v(null), R = v(null), W = v(0), de = v(0), F = v(0), P = v(0), p = v(!1), I = v(!1), J = v(!1), Y = v(!0), ve = v(!1), q = v(null), f = v(null), D = v(n), K = v(0);
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 (U || B) return;
631
- p.current && (re.current(null, M), f.current && f.current.active()), Q();
632
+ if (z || U) return;
633
+ p.current && (re.current(null, S), f.current && f.current.active()), ee();
632
634
  }
633
- }, [n, o, s, U, B]);
634
- var at = v(Te);
635
+ }, [n, o, s, z, U]);
636
+ var lt = v(Ae);
635
637
  w(function() {
636
- at.current = Te;
637
- }, [Te]);
638
- var st = v(A), me = v(c), De = v(j(new Set(j(y).concat(j(A))).values())), C = v(B);
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
- C.current = B, !Y.current && (B ? Me() : U || Q());
641
- }, [B]);
642
- var pe = v(G);
642
+ N.current = U, !Y.current && (U ? Me() : z || ee());
643
+ }, [U]);
644
+ var pe = v(R);
643
645
  w(function() {
644
- pe.current = G;
645
- }, [G]);
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 re = v(be);
652
+ var Le = v(be);
655
653
  w(function() {
656
- re.current = be;
654
+ Le.current = be;
657
655
  }, [be]);
658
- var Se = v(we);
656
+ var re = v(we);
659
657
  w(function() {
660
- Se.current = we;
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 = $t(function() {
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 ? xn(u, ce) : le > 0 ? Ve(u, le) : u;
671
- }, [le, ce]), ct = v();
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 && (ct.current = Ve(function() {
675
+ ne && he && (ht.current = Be(function() {
674
676
  f.current.active();
675
677
  }, he));
676
678
  }, [ne, he]);
677
- var x = /* @__PURE__ */ r(function() {
678
- q.current !== null && (N.clearTimeout(q.current), q.current = null);
679
- }, "N"), $ = /* @__PURE__ */ r(function(u) {
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
- x(), q.current = N.setTimeout(xe, u || D.current), L && (R.current = E());
682
- }, "Z"), lt = /* @__PURE__ */ r(function(u) {
683
- !I.current && !p.current && (Ie.current(u, M), pe.current({ type: "active", prompted: !0 }, M)), P.current = 0, F.current = E(), I.current = !0, $(K.current, !1);
684
- }, "wt"), ft = /* @__PURE__ */ r(function() {
685
- x(), p.current || (ke.current(null, M), pe.current({ type: "idle" }, M)), p.current = !0, S.current = E(), at.current ? Z() : I.current && (F.current = 0, I.current = !1);
686
- }, "bt"), Ce = /* @__PURE__ */ r(function(u) {
687
- x(), (p.current || I.current) && (re.current(u, M), pe.current({ type: "active", prompted: !1 }, M)), I.current = !1, F.current = 0, p.current = !1, W.current += E() - S.current, de.current += E() - S.current, H(), $();
688
- }, "ze"), xe = /* @__PURE__ */ r(function(u) {
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() - R.current, Bt = D.current + K.current < oe;
693
- if (!Bt && K.current > 0 && !I.current) {
694
- f.current ? f.current.prompt() : lt(u);
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() : ft();
699
+ f.current ? f.current.idle() : vt();
698
700
  return;
699
701
  }
700
- f.current ? f.current.active() : Ce(u);
702
+ f.current ? f.current.active() : De(u);
701
703
  }, "Je"), je = /* @__PURE__ */ r(function(u) {
702
- if (!fe && !R.current && (R.current = E(), re.current(null, M)), X(u, M), !I.current) {
703
- if (x(), !p.current && st.current.includes(u.type)) {
704
- xe(u);
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() - R.current;
708
- if (p.current && !Te || !p.current && L >= D.current) {
709
- xe(u);
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, $(), ne && he && ct.current();
714
+ J.current = !1, P.current = 0, F.current = 0, Z(), ne && he && ht.current();
713
715
  }
714
- }, "He"), Le = v(je);
716
+ }, "He"), Oe = v(je);
715
717
  w(function() {
716
718
  var u = ve.current;
717
- u && Z(), Re > 0 ? Le.current = Ve(je, Re) : Le.current = je, u && H();
718
- }, [Re, le, ce, Se, ne, he]);
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
- z && me.current && (ve.current || (De.current.forEach(function(u) {
721
- me.current.addEventListener(u, Le.current, { capture: !0, passive: !0 });
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"), Z = /* @__PURE__ */ r(function() {
725
+ }, "H"), Q = /* @__PURE__ */ r(function() {
724
726
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
725
- z && me.current && (ve.current || u) && (De.current.forEach(function(L) {
726
- me.current.removeEventListener(L, Le.current, { capture: !0 });
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"), Q = g(function(u) {
729
- return C.current ? !1 : (x(), H(), p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, f.current && !u && f.current.start(), $(), !0);
730
- }, [q, p, C, D, f]), Ne = g(function(u) {
731
- return C.current ? !1 : (x(), H(), Ae.current = E(), W.current += E() - S.current, de.current += E() - S.current, W.current = 0, p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, f.current && !u && f.current.reset(), U || $(), !0);
732
- }, [q, p, D, U, C, f]), ht = g(function(u) {
733
- return C.current ? !1 : (x(), H(), (p.current || I.current) && Ce(), p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, Ae.current = E(), f.current && !u && f.current.activate(), $(), !0);
734
- }, [q, p, I, C, D, f]), Me = g(function() {
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 C.current || J.current ? !1 : (P.current = dt(), J.current = !0, Z(), x(), f.current && !u && f.current.pause(), !0);
737
- }, [q, C, f]), _e = g(function() {
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 C.current || !J.current ? !1 : (J.current = !1, I.current || H(), p.current || $(P.current), F.current && (F.current = E()), f.current && !u && f.current.resume(), !0);
740
- }, [q, D, C, P, f]), Pt = g(function(u, L) {
741
- return f.current ? (L && ie.current(u, M), f.current.message(u)) : L && ie.current(u, M), !0;
742
- }, [se]), Rt = g(function() {
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]), Dt = g(function() {
745
- return I.current;
746
- }, [I]), Ct = g(function() {
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]), xt = g(function() {
750
+ }, [f]), _t = g(function() {
749
751
  return f.current ? f.current.isLastActive : null;
750
- }, [f]), jt = g(function() {
752
+ }, [f]), Vt = g(function() {
751
753
  return f.current ? f.current.token : null;
752
- }, [f]), dt = g(function() {
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 = R.current ? E() - R.current : 0, oe = Math.floor(u - 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, I, P, R]), vt = g(function() {
757
- return Math.round(E() - Ae.current);
758
- }, [Ae]), mt = g(function() {
759
- return Math.round(E() - ut.current);
760
- }, [ut]), Nt = g(function() {
761
- return S.current ? new Date(S.current) : null;
762
- }, [S]), _t = g(function() {
763
- return R.current ? new Date(R.current) : null;
764
- }, [R]), pt = g(function() {
765
- return p.current ? Math.round(E() - S.current + W.current) : Math.round(W.current);
766
- }, [S, W]), gt = g(function() {
767
- return p.current ? Math.round(E() - S.current + de.current) : Math.round(de.current);
768
- }, [S, de]), Vt = g(function() {
769
- var u = Math.round(vt() - pt());
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
- }, [S, W]), Gt = g(function() {
772
- var u = Math.round(mt() - gt());
773
+ }, [k, $]), zt = g(function() {
774
+ var u = Math.round(yt() - bt());
773
775
  return u >= 0 ? u : 0;
774
- }, [S, W]);
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
- V && In(V);
779
+ G && Mn(G);
778
780
  var u = /* @__PURE__ */ r(function() {
779
- f.current && f.current.close(), X.cancel && X.cancel(), x(), Z(!0);
781
+ f.current && f.current.close(), X.cancel && X.cancel(), j(), Q(!0);
780
782
  }, "i");
781
- return z && window.addEventListener("beforeunload", u), function() {
782
- z && window.removeEventListener("beforeunload", u), f.current && f.current.close(), X.cancel && X.cancel(), x(), Z(!0);
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 Rn({ channelName: tt, leaderElection: it, onPrompt: /* @__PURE__ */ r(function() {
786
- lt();
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
- ft();
790
+ vt();
789
791
  }, "onIdle"), onActive: /* @__PURE__ */ r(function() {
790
- Ce();
792
+ De();
791
793
  }, "onActive"), onMessage: /* @__PURE__ */ r(function(u) {
792
- ie.current(u, M);
793
- }, "onMessage"), start: Q, reset: Ne, activate: ht, pause: Me, resume: _e }) : f.current = null;
794
- }, [ne, tt, it, Ie, ke, re, ie, Q, Ne, Me, _e]), w(function() {
795
- Y.current || (x(), Z(!0)), !(U || B) && (fe ? Q() : H());
796
- }, [U, fe, B, Y]), w(function() {
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 = j(new Set(j(y).concat(j(A))).values());
799
- if (Z(), De.current = u, me.current = c, st.current = A, U || B) return;
800
- fe ? Q() : H();
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(A), Y, B, U, fe]), w(function() {
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 M = { message: Pt, start: Q, reset: Ne, activate: ht, pause: Me, resume: _e, isIdle: Rt, isPrompted: Dt, isLeader: Ct, isLastActiveTab: xt, getTabId: jt, getRemainingTime: dt, getElapsedTime: vt, getTotalElapsedTime: mt, getLastIdleTime: Nt, getLastActiveTime: _t, getIdleTime: pt, getTotalIdleTime: gt, getActiveTime: Vt, getTotalActiveTime: Gt, setOnPresenceChange: /* @__PURE__ */ r(function(u) {
806
- G = u, pe.current = u;
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
- be = u, re.current = u;
814
+ we = u, re.current = u;
813
815
  }, "setOnActive"), setOnAction: /* @__PURE__ */ r(function(u) {
814
- we = u, Se.current = u;
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 M;
819
- }
820
- r(jn, "Te");
821
- var Nn = Xt(null);
822
- Nn.Consumer;
823
- const Tt = 6e4, _n = 36e5, At = "/auth/login";
824
- function Vn(e) {
825
- return Oe(e) ? Math.floor(e / 1e3) : "";
826
- }
827
- r(Vn, "millisToSeconds");
828
- function Kn({ timeout: e }) {
829
- const t = rn(), { pathname: n } = on(), { t: i } = en(), { confirmInfo: o } = tn(), { resetStorage: h } = nn(), [s, a] = bt(!1), [c, l] = bt(null), y = v(!1), { getRemainingTime: _, reset: V } = jn({
830
- timeout: e ?? _n,
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 T = g(() => {
855
- a(!1), V();
856
- }, [V]), A = g(async () => {
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(At));
863
+ }), h(), t(It));
862
864
  }, [o, t, h, i]);
863
865
  return w(() => {
864
- if (n === At) {
866
+ if (n === It) {
865
867
  a(!1);
866
868
  return;
867
869
  }
868
- if (!s && Oe(c) && c > 0 && c <= Tt) {
870
+ if (!s && Pe(c) && c > 0 && c <= At) {
869
871
  a(!0);
870
872
  return;
871
873
  }
872
- if (s && Oe(c) && c > Tt) {
873
- T();
874
+ if (s && Pe(c) && c > At) {
875
+ I();
874
876
  return;
875
877
  }
876
- Oe(c) && c <= 0 && A();
877
- }, [s, c, n, T, A]), /* @__PURE__ */ te(
878
- Ue,
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(() => T(), "onClose"),
885
+ onClose: /* @__PURE__ */ r(() => I(), "onClose"),
884
886
  maxWidth: "xs",
885
887
  fullWidth: !0,
886
- children: /* @__PURE__ */ te(Ht, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
888
+ children: /* @__PURE__ */ M(kt, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
887
889
  defaultValue: "{{seconds}}초 후 로그인 페이지로 이동합니다.",
888
- seconds: Vn(c)
890
+ seconds: Fn(c)
889
891
  }) })
890
892
  }
891
893
  );
892
894
  }
893
- r(Kn, "OwpAutoLogoutDialog");
894
- const Xn = un(/* @__PURE__ */ Ft.jsx("path", {
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
- Xn as C,
899
- Kn as O,
900
- Ue as a,
901
- Hn as b,
902
- Oe as i
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-Cm04EulE.js.map
973
+ //# sourceMappingURL=Close-C91nHTKM.js.map