@owp/core 1.30.0 → 2.0.1

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