@owp/core 1.27.0 → 1.28.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 (99) hide show
  1. package/colors.d.ts +2 -0
  2. package/constants.d.ts +2 -0
  3. package/context.d.ts +2 -0
  4. package/dist/{Close-DA97hwNx.js → Close-DnXhM4Ms.js} +128 -124
  5. package/dist/Close-DnXhM4Ms.js.map +1 -0
  6. package/dist/{OwpStoreProvider-BKRp9Maw.js → OwpStoreProvider-B7W25pkq.js} +13 -13
  7. package/dist/OwpStoreProvider-B7W25pkq.js.map +1 -0
  8. package/dist/{QuickPanel-EyvjMTxX.js → QuickPanel-BOgEYOAw.js} +2 -2
  9. package/dist/{QuickPanel-EyvjMTxX.js.map → QuickPanel-BOgEYOAw.js.map} +1 -1
  10. package/dist/context.js +4 -3
  11. package/dist/context.js.map +1 -1
  12. package/dist/hooks.js +31 -28
  13. package/dist/hooks.js.map +1 -1
  14. package/dist/{index-CdxKoZlQ.js → index-B8tZAW8i.js} +9743 -10363
  15. package/dist/index-B8tZAW8i.js.map +1 -0
  16. package/dist/index.js +86 -88
  17. package/dist/{lazyLoadedSlices-Bjy1crVY.js → lazyLoadedSlices-BAbcXcEU.js} +33 -35
  18. package/dist/lazyLoadedSlices-BAbcXcEU.js.map +1 -0
  19. package/dist/owp-app.css +1 -1
  20. package/dist/store.js +1 -1
  21. package/dist/types/components/OwpCommonDialog/OwpCommonDialog.d.ts +1 -26
  22. package/dist/types/components/OwpDialog/OwpDialog.d.ts +32 -6
  23. package/dist/types/components/OwpDialog/index.d.ts +1 -4
  24. package/dist/types/components/OwpLanguageSwitcherSelect/index.d.ts +1 -0
  25. package/dist/types/components/OwpMrtTable/OwpMrtTable.d.ts +7 -3
  26. package/dist/types/components/OwpMrtTable/OwpMrtTableTopToolbar.d.ts +6 -0
  27. package/dist/types/components/OwpNavLinkAdapter/OwpNavLinkAdapter.d.ts +16 -0
  28. package/dist/types/components/OwpNavLinkAdapter/index.d.ts +2 -0
  29. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalGroup.d.ts +1 -2
  30. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalItem.d.ts +1 -2
  31. package/dist/types/components/OwpNavigation/horizontal/types/OwpNavHorizontalLink.d.ts +1 -2
  32. package/dist/types/components/{shared-components/PageBreadcrumb.d.ts → OwpPageBreadcrumb/OwpPageBreadcrumb.d.ts} +1 -1
  33. package/dist/types/components/OwpPageBreadcrumb/index.d.ts +2 -0
  34. package/dist/types/components/OwpSettings/OwpLayoutConfig.d.ts +1 -1
  35. package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
  36. package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTab.d.ts +1 -1
  37. package/dist/types/components/{shared-components/tabs → OwpTabs}/OwpTabs.d.ts +1 -1
  38. package/dist/types/components/OwpTabs/index.d.ts +2 -0
  39. package/dist/types/components/OwpTreeGrid/OwpTreeGridToolbar.d.ts +1 -1
  40. package/dist/types/components/layouts/shared-components/navigation/store/navigationSlice.d.ts +9 -9
  41. package/dist/types/context/OwpCoreProvider.d.ts +1 -1
  42. package/dist/types/{store → context}/OwpStoreProvider.d.ts +1 -1
  43. package/dist/types/context/index.d.ts +1 -0
  44. package/dist/types/hooks/useStorage.d.ts +10 -1
  45. package/dist/types/index.d.ts +4 -8
  46. package/dist/types/store/apiService.d.ts +3 -0
  47. package/dist/types/store/generateReducersFromSlices.d.ts +4 -1
  48. package/dist/types/store/hooks.d.ts +3 -0
  49. package/dist/types/store/index.d.ts +4 -1
  50. package/dist/types/store/lazyLoadedSlices.d.ts +3 -0
  51. package/dist/types/store/middleware.d.ts +3 -0
  52. package/dist/types/store/store.d.ts +3 -0
  53. package/dist/types/store/withSlices.d.ts +2 -2
  54. package/dist/types/utils/createDateRangeSearchParams.d.ts +16 -0
  55. package/dist/types/utils/fetchFile.d.ts +12 -0
  56. package/dist/types/utils/index.d.ts +3 -0
  57. package/dist/types/utils/sanitizeAuthInputValue.d.ts +10 -0
  58. package/dist/useOwpTranslation-BelpX-fd.js +174 -0
  59. package/dist/useOwpTranslation-BelpX-fd.js.map +1 -0
  60. package/dist/useStorage-BA0D8KA7.js +67 -0
  61. package/dist/useStorage-BA0D8KA7.js.map +1 -0
  62. package/dist/{useTreeGridExcelExport-BGh2y8Cg.js → useTreeGridExcelExport-QNcWzx5v.js} +2 -2
  63. package/dist/{useTreeGridExcelExport-BGh2y8Cg.js.map → useTreeGridExcelExport-QNcWzx5v.js.map} +1 -1
  64. package/dist/utils.js +2066 -2026
  65. package/dist/utils.js.map +1 -1
  66. package/hooks.d.ts +2 -0
  67. package/index.d.ts +3 -0
  68. package/package.json +4 -2
  69. package/store.d.ts +2 -0
  70. package/treegrid-global.d.ts +4904 -0
  71. package/utils.d.ts +2 -0
  72. package/dist/Close-DA97hwNx.js.map +0 -1
  73. package/dist/OwpStoreProvider-BKRp9Maw.js.map +0 -1
  74. package/dist/index-CdxKoZlQ.js.map +0 -1
  75. package/dist/lazyLoadedSlices-Bjy1crVY.js.map +0 -1
  76. package/dist/types/auth/authRoles.d.ts +0 -21
  77. package/dist/types/components/NavLinkAdapter/NavLinkAdapter.d.ts +0 -18
  78. package/dist/types/components/NavLinkAdapter/index.d.ts +0 -1
  79. package/dist/types/components/OwpDialog/owpDialogSlice.d.ts +0 -14
  80. package/dist/types/components/OwpMessage/OwpMessage.d.ts +0 -11
  81. package/dist/types/components/OwpMessage/index.d.ts +0 -4
  82. package/dist/types/components/OwpMessage/owpMessageSlice.d.ts +0 -14
  83. package/dist/types/components/layouts/shared-components/AdjustFontSize.d.ts +0 -8
  84. package/dist/types/components/layouts/shared-components/OwpSettingsViewerDialog.d.ts +0 -8
  85. package/dist/types/components/layouts/shared-components/configurator/Configurator.d.ts +0 -9
  86. package/dist/types/components/layouts/shared-components/configurator/SettingsPanel.d.ts +0 -12
  87. package/dist/types/components/layouts/shared-components/configurator/ThemesPanel.d.ts +0 -12
  88. package/dist/types/components/shared-components/LightDarkModeToggle.d.ts +0 -8
  89. package/dist/types/components/shared-components/PageTitle.d.ts +0 -11
  90. package/dist/types/components/shared-components/data-table/DataTable.d.ts +0 -12
  91. package/dist/types/components/shared-components/data-table/DataTableTopToolbar.d.ts +0 -6
  92. package/dist/types/components/shared-components/index.d.ts +0 -7
  93. package/dist/types/components/withRouter/index.d.ts +0 -1
  94. package/dist/types/components/withRouter/withRouter.d.ts +0 -14
  95. package/dist/types/store/withReducer.d.ts +0 -5
  96. package/dist/useOwpTranslation-VarZsCQ4.js +0 -233
  97. package/dist/useOwpTranslation-VarZsCQ4.js.map +0 -1
  98. /package/dist/types/components/{layouts/shared-components → OwpLanguageSwitcherSelect}/OwpLanguageSwitcherSelect.d.ts +0 -0
  99. /package/dist/types/components/{shared-components/data-table → OwpMrtTable}/utils/parseFromValuesOrFunc.d.ts +0 -0
package/colors.d.ts CHANGED
@@ -1 +1,3 @@
1
+ import './treegrid-global';
2
+
1
3
  export * from './dist/types/colors/index';
package/constants.d.ts CHANGED
@@ -1 +1,3 @@
1
+ import './treegrid-global';
2
+
1
3
  export * from './dist/types/constants/index';
package/context.d.ts CHANGED
@@ -1 +1,3 @@
1
+ import './treegrid-global';
2
+
1
3
  export * from './dist/types/context/index';
@@ -1,19 +1,20 @@
1
- var Jt = Object.defineProperty;
2
- var r = (e, t) => Jt(e, "name", { value: t, configurable: !0 });
3
- import { j as K, a as gt, b as Yt } from "./emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js";
4
- import { b as At, a as qt, u as zt } from "./useOwpTranslation-VarZsCQ4.js";
5
- import { createContext as It, useContext as Wt, useRef as d, useLayoutEffect as Ht, forwardRef as Kt, useEffect as w, useCallback as g, useMemo as Xt, Component as $t, useState as yt } from "react";
6
- import { DialogContent as Zt, DialogActions as Qt, Dialog as en, DialogTitle as tn, Box as nn, Button as Et, Typography as rn } from "@mui/material";
7
- import { useTranslation as on } from "react-i18next";
8
- import { useNavigate as un, useLocation as an } from "react-router-dom";
9
- import { createSvgIcon as sn } from "@mui/material/utils";
10
- const kt = It(void 0), Xn = /* @__PURE__ */ r(({ configs: e, slots: t, children: n, env: i }) => {
11
- const o = d({ ...e, env: i, slots: t }), { setEnv: l } = At();
12
- return Ht(() => {
1
+ var Yt = Object.defineProperty;
2
+ var r = (e, t) => Yt(e, "name", { value: t, configurable: !0 });
3
+ import { j as K, a as yt, b as qt } from "./emotion-react-jsx-runtime.browser.esm-Cb9H5d3i.js";
4
+ import { u as It } from "./useStorage-BA0D8KA7.js";
5
+ import { createContext as kt, useContext as zt, useRef as d, useLayoutEffect as Wt, forwardRef as Ht, useEffect as w, useCallback as g, useMemo as Kt, Component as Xt, useState as Et } from "react";
6
+ import { DialogContent as $t, DialogActions as Zt, Dialog as Qt, DialogTitle as en, Box as tn, Button as bt, Typography as nn } from "@mui/material";
7
+ import { useTranslation as rn } from "react-i18next";
8
+ import { a as on, u as un } from "./useOwpTranslation-BelpX-fd.js";
9
+ import { useNavigate as an, useLocation as sn } from "react-router-dom";
10
+ import { createSvgIcon as cn } from "@mui/material/utils";
11
+ const Lt = kt(void 0), $n = /* @__PURE__ */ r(({ configs: e, slots: t, children: n, env: i }) => {
12
+ const o = d({ ...e, env: i, slots: t }), { setEnv: l } = It();
13
+ return Wt(() => {
13
14
  l(i ?? {});
14
- }, [i, l]), /* @__PURE__ */ K(kt.Provider, { value: o.current, children: n });
15
- }, "OwpAppProvider"), $n = /* @__PURE__ */ r(() => {
16
- const e = Wt(kt);
15
+ }, [i, l]), /* @__PURE__ */ K(Lt.Provider, { value: o.current, children: n });
16
+ }, "OwpAppProvider"), Zn = /* @__PURE__ */ r(() => {
17
+ const e = zt(Lt);
17
18
  if (e === void 0)
18
19
  throw new Error("useOwpAppContext must be used within a OwpAppProvider");
19
20
  return e;
@@ -22,7 +23,7 @@ function Me(e) {
22
23
  return typeof e == "number" || e instanceof Number;
23
24
  }
24
25
  r(Me, "isNumber");
25
- const cn = Kt(
26
+ const Ue = Ht(
26
27
  ({
27
28
  title: e,
28
29
  children: t,
@@ -36,12 +37,12 @@ const cn = Kt(
36
37
  contentProps: f,
37
38
  ...y
38
39
  }, _) => {
39
- const { t: V, i18n: T } = on("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(
40
+ const { t: V, i18n: T } = rn("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(
40
41
  i ? T.exists("button.cancel") ? "button.cancel" : "Button.취소" : "Button.닫기",
41
42
  { defaultValue: i ? "취소" : "닫기" }
42
43
  );
43
- return /* @__PURE__ */ gt(
44
- en,
44
+ return /* @__PURE__ */ yt(
45
+ Qt,
45
46
  {
46
47
  ref: _,
47
48
  fullWidth: !0,
@@ -51,12 +52,12 @@ const cn = Kt(
51
52
  }, "onClose"),
52
53
  ...y,
53
54
  children: [
54
- e && /* @__PURE__ */ K(tn, { children: e }),
55
- /* @__PURE__ */ K(Zt, { dividers: !0, ...f, children: t }),
56
- /* @__PURE__ */ gt(Qt, { children: [
57
- c && /* @__PURE__ */ K(nn, { className: "flex w-full items-start", children: c }),
55
+ e && /* @__PURE__ */ K(en, { children: e }),
56
+ /* @__PURE__ */ K($t, { dividers: !0, ...f, children: t }),
57
+ /* @__PURE__ */ yt(Zt, { children: [
58
+ c && /* @__PURE__ */ K(tn, { className: "flex w-full items-start", children: c }),
58
59
  n && /* @__PURE__ */ K(
59
- Et,
60
+ bt,
60
61
  {
61
62
  variant: "outlined",
62
63
  onClick: /* @__PURE__ */ r(() => {
@@ -70,7 +71,7 @@ const cn = Kt(
70
71
  }
71
72
  ),
72
73
  i && /* @__PURE__ */ K(
73
- Et,
74
+ bt,
74
75
  {
75
76
  variant: "contained",
76
77
  color: "secondary",
@@ -93,17 +94,19 @@ const cn = Kt(
93
94
  );
94
95
  }
95
96
  );
96
- var ln = Object.create, Lt = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, hn = Object.getOwnPropertyNames, dn = Object.getPrototypeOf, vn = Object.prototype.hasOwnProperty, mn = /* @__PURE__ */ r(function(e, t) {
97
+ Ue.displayName = "OwpDialog";
98
+ const Qn = Ue;
99
+ var ln = Object.create, St = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, hn = Object.getOwnPropertyNames, dn = Object.getPrototypeOf, vn = Object.prototype.hasOwnProperty, mn = /* @__PURE__ */ r(function(e, t) {
97
100
  return function() {
98
101
  return t || e((t = { exports: {} }).exports, t), t.exports;
99
102
  };
100
103
  }, "yr"), pn = /* @__PURE__ */ r(function(e, t, n, i) {
101
- if (t && typeof t == "object" || typeof t == "function") for (var o = hn(t), l = 0, s = o.length, a; l < s; l++) a = o[l], !vn.call(e, a) && a !== n && Lt(e, a, { get: (function(c) {
104
+ if (t && typeof t == "object" || typeof t == "function") for (var o = hn(t), l = 0, s = o.length, a; l < s; l++) a = o[l], !vn.call(e, a) && a !== n && St(e, a, { get: (function(c) {
102
105
  return t[c];
103
106
  }).bind(null, a), enumerable: !(i = fn(t, a)) || i.enumerable });
104
107
  return e;
105
108
  }, "gr"), gn = /* @__PURE__ */ r(function(e, t, n) {
106
- return n = e != null ? ln(dn(e)) : {}, pn(!e || !e.__esModule ? Lt(n, "default", { value: e, enumerable: !0 }) : n, e);
109
+ return n = e != null ? ln(dn(e)) : {}, pn(!e || !e.__esModule ? St(n, "default", { value: e, enumerable: !0 }) : n, e);
107
110
  }, "wr"), yn = mn(function(e, t) {
108
111
  (function(n, i) {
109
112
  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 = {}));
@@ -138,12 +141,12 @@ function te(e) {
138
141
  return e;
139
142
  }
140
143
  r(te, "Y");
141
- function St(e, t) {
142
- return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : St(e, t);
144
+ function Ot(e, t) {
145
+ return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : Ot(e, t);
143
146
  }
144
- r(St, "je");
147
+ r(Ot, "je");
145
148
  function ge(e, t) {
146
- if (!St(e, t)) throw new TypeError("Cannot call a class as a function");
149
+ if (!Ot(e, t)) throw new TypeError("Cannot call a class as a function");
147
150
  }
148
151
  r(ge, "z");
149
152
  function Ge(e, t) {
@@ -152,11 +155,11 @@ function Ge(e, t) {
152
155
  }, Ge(e, t);
153
156
  }
154
157
  r(Ge, "De");
155
- function Ot(e, t) {
158
+ function Mt(e, t) {
156
159
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
157
160
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ge(e, t);
158
161
  }
159
- r(Ot, "Ke");
162
+ r(Mt, "Ke");
160
163
  function b(e, t, n) {
161
164
  return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
162
165
  }
@@ -178,16 +181,16 @@ function En() {
178
181
  }
179
182
  }
180
183
  r(En, "Pt");
181
- function Mt(e) {
184
+ function Pt(e) {
182
185
  "@swc/helpers - typeof";
183
186
  return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
184
187
  }
185
- r(Mt, "Ne");
188
+ r(Pt, "Ne");
186
189
  function bn(e, t) {
187
- return t && (Mt(t) === "object" || typeof t == "function") ? t : te(e);
190
+ return t && (Pt(t) === "object" || typeof t == "function") ? t : te(e);
188
191
  }
189
192
  r(bn, "kt");
190
- function Pt(e) {
193
+ function Rt(e) {
191
194
  var t = En();
192
195
  return function() {
193
196
  var n = Pe(e), i;
@@ -198,18 +201,18 @@ function Pt(e) {
198
201
  return bn(this, i);
199
202
  };
200
203
  }
201
- r(Pt, "Ze");
204
+ r(Rt, "Ze");
202
205
  var wn = function(e) {
203
- Ot(n, e);
204
- var t = Pt(n);
206
+ Mt(n, e);
207
+ var t = Rt(n);
205
208
  function n() {
206
209
  return ge(this, n), t.apply(this, arguments);
207
210
  }
208
211
  return r(n, "t"), n;
209
- }($t);
212
+ }(Xt);
210
213
  (function(e) {
211
- Ot(n, e);
212
- var t = Pt(n);
214
+ Mt(n, e);
215
+ var t = Rt(n);
213
216
  function n(i) {
214
217
  ge(this, n);
215
218
  var o;
@@ -256,12 +259,12 @@ function Ln(e, t) {
256
259
  }
257
260
  }
258
261
  r(Ln, "jt");
259
- function Ue(e, t, n) {
262
+ function Fe(e, t, n) {
260
263
  return t && Ln(e.prototype, t), e;
261
264
  }
262
- r(Ue, "ce");
265
+ r(Fe, "ce");
263
266
  gn(yn());
264
- var z = (typeof window > "u" || typeof window > "u" ? "undefined" : Mt(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 };
267
+ var z = (typeof window > "u" || typeof window > "u" ? "undefined" : Pt(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 };
265
268
  function Sn(e) {
266
269
  N.setTimeout = e.setTimeout, N.clearTimeout = e.clearTimeout, N.setInterval = e.setInterval, N.clearInterval = e.clearInterval;
267
270
  }
@@ -270,7 +273,7 @@ var ue = {}, On = function() {
270
273
  function e(t) {
271
274
  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);
272
275
  }
273
- return r(e, "e"), Ue(e, [{ key: "onStorage", value: /* @__PURE__ */ r(function(t) {
276
+ return r(e, "e"), Fe(e, [{ key: "onStorage", value: /* @__PURE__ */ r(function(t) {
274
277
  if (t.storageArea === window.localStorage && t.key.substring(0, this.name.length) === this.name && t.newValue !== null) {
275
278
  var n = JSON.parse(t.newValue);
276
279
  this.mc.port2.postMessage(n);
@@ -306,7 +309,7 @@ var ue = {}, On = function() {
306
309
  return this.mc.port1.dispatchEvent(t);
307
310
  }, "value") }]), e;
308
311
  }(), Mn = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : On;
309
- function bt(e, t, n, i, o, l, s) {
312
+ function wt(e, t, n, i, o, l, s) {
310
313
  try {
311
314
  var a = e[l](s), c = a.value;
312
315
  } catch (f) {
@@ -315,18 +318,18 @@ function bt(e, t, n, i, o, l, s) {
315
318
  }
316
319
  a.done ? t(c) : Promise.resolve(c).then(i, o);
317
320
  }
318
- r(bt, "Xt");
321
+ r(wt, "Xt");
319
322
  function Pn(e) {
320
323
  return function() {
321
324
  var t = this, n = arguments;
322
325
  return new Promise(function(i, o) {
323
326
  var l = e.apply(t, n);
324
327
  function s(c) {
325
- bt(l, i, o, s, a, "next", c);
328
+ wt(l, i, o, s, a, "next", c);
326
329
  }
327
330
  r(s, "s");
328
331
  function a(c) {
329
- bt(l, i, o, s, a, "throw", c);
332
+ wt(l, i, o, s, a, "throw", c);
330
333
  }
331
334
  r(a, "a"), s(void 0);
332
335
  });
@@ -399,19 +402,19 @@ function Cn() {
399
402
  });
400
403
  }
401
404
  r(Cn, "Kt");
402
- function Rt() {
405
+ function Ct() {
403
406
  return Math.random().toString(36).substring(2);
404
407
  }
405
- r(Rt, "Ge");
408
+ r(Ct, "Ge");
406
409
  var v;
407
410
  (function(e) {
408
411
  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";
409
412
  })(v || (v = {}));
410
413
  var Dn = function() {
411
414
  function e(t, n) {
412
- ge(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);
415
+ ge(this, e), b(this, "options", void 0), b(this, "channel", void 0), b(this, "token", Ct()), 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);
413
416
  }
414
- return r(e, "e"), Ue(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
417
+ return r(e, "e"), Fe(e, [{ key: "apply", value: /* @__PURE__ */ r(function() {
415
418
  var t = this;
416
419
  return Pn(function() {
417
420
  var n, i;
@@ -498,7 +501,7 @@ var Dn = function() {
498
501
  var xn = function() {
499
502
  function e(t) {
500
503
  var n = this;
501
- ge(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);
504
+ ge(this, e), b(this, "channel", void 0), b(this, "options", void 0), b(this, "elector", void 0), b(this, "token", Ct()), b(this, "registry", /* @__PURE__ */ new Map()), b(this, "allIdle", !1), b(this, "isLastActive", !1);
502
505
  var i = t.channelName;
503
506
  if (this.options = t, this.channel = new Mn(i), this.registry.set(this.token, M.ACTIVE), t.leaderElection) {
504
507
  var o = { fallbackInterval: 2e3, responseTime: 100 };
@@ -543,7 +546,7 @@ var xn = function() {
543
546
  }
544
547
  }), this.send(v.REGISTER);
545
548
  }
546
- return r(e, "e"), Ue(e, [{ key: "isLeader", get: /* @__PURE__ */ r(function() {
549
+ return r(e, "e"), Fe(e, [{ key: "isLeader", get: /* @__PURE__ */ r(function() {
547
550
  if (!this.elector) throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');
548
551
  return this.elector.isLeader;
549
552
  }, "get") }, { key: "prompt", value: /* @__PURE__ */ r(function() {
@@ -623,11 +626,11 @@ var E = /* @__PURE__ */ r(function() {
623
626
  function Vn() {
624
627
  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, l = e.promptBeforeIdle, s = l === void 0 ? 0 : l, a = e.element, c = a === void 0 ? jn : a, f = e.events, y = f === void 0 ? Nn : f, _ = e.timers, V = _ === void 0 ? void 0 : _, T = e.immediateEvents, A = T === void 0 ? [] : T, m = e.onPresenceChange, G = m === void 0 ? function() {
625
628
  } : m, k = e.onPrompt, ye = k === void 0 ? function() {
626
- } : k, Fe = e.onIdle, Ee = Fe === void 0 ? function() {
627
- } : Fe, Je = e.onActive, be = Je === void 0 ? function() {
628
- } : Je, Ye = e.onAction, we = Ye === void 0 ? function() {
629
- } : Ye, qe = e.onMessage, se = qe === void 0 ? function() {
630
- } : qe, ze = e.debounce, ce = ze === void 0 ? 0 : ze, We = e.throttle, le = We === void 0 ? 0 : We, He = e.eventsThrottle, Re = He === void 0 ? 200 : He, Ke = e.startOnMount, fe = Ke === void 0 ? !0 : Ke, Xe = e.startManually, U = Xe === void 0 ? !1 : Xe, $e = e.stopOnIdle, Te = $e === void 0 ? !1 : $e, Ze = e.crossTab, ne = Ze === void 0 ? !1 : Ze, Qe = e.name, et = Qe === void 0 ? "idle-timer" : Qe, tt = e.syncTimers, he = tt === void 0 ? 0 : tt, nt = e.leaderElection, rt = nt === void 0 ? !1 : nt, it = e.disabled, B = it === void 0 ? !1 : it, ot = d(E()), Ae = d(E()), L = d(null), R = d(null), W = d(0), de = d(0), F = d(0), P = d(0), p = d(!1), I = d(!1), J = d(!1), Y = d(!0), ve = d(!1), q = d(null), h = d(null), C = d(n), X = d(0);
629
+ } : k, Je = e.onIdle, Ee = Je === void 0 ? function() {
630
+ } : Je, Ye = e.onActive, be = Ye === void 0 ? function() {
631
+ } : Ye, qe = e.onAction, we = qe === void 0 ? function() {
632
+ } : qe, ze = e.onMessage, se = ze === void 0 ? function() {
633
+ } : 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 = d(E()), Ae = d(E()), L = d(null), R = d(null), W = d(0), de = d(0), F = d(0), P = d(0), p = d(!1), I = d(!1), J = d(!1), Y = d(!0), ve = d(!1), q = d(null), h = d(null), C = d(n), X = d(0);
631
634
  w(function() {
632
635
  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.");
633
636
  if (n >= ae) throw new Error("❌ The value for the timeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
@@ -639,11 +642,11 @@ function Vn() {
639
642
  p.current && (re.current(null, O), h.current && h.current.active()), ee();
640
643
  }
641
644
  }, [n, o, s, U, B]);
642
- var ut = d(Te);
645
+ var at = d(Te);
643
646
  w(function() {
644
- ut.current = Te;
647
+ at.current = Te;
645
648
  }, [Te]);
646
- var at = d(A), me = d(c), Ce = d(j(new Set(j(y).concat(j(A))).values())), D = d(B);
649
+ var st = d(A), me = d(c), Ce = d(j(new Set(j(y).concat(j(A))).values())), D = d(B);
647
650
  w(function() {
648
651
  D.current = B, !Y.current && (B ? Oe() : U || ee());
649
652
  }, [B]);
@@ -671,14 +674,14 @@ function Vn() {
671
674
  w(function() {
672
675
  ie.current = se;
673
676
  }, [se]);
674
- var $ = Xt(function() {
677
+ var $ = Kt(function() {
675
678
  var u = /* @__PURE__ */ r(function(S, oe) {
676
679
  return Le.current(S, oe);
677
680
  }, "i");
678
681
  return ce > 0 ? _n(u, ce) : le > 0 ? Ve(u, le) : u;
679
- }, [le, ce]), st = d();
682
+ }, [le, ce]), ct = d();
680
683
  w(function() {
681
- ne && he && (st.current = Ve(function() {
684
+ ne && he && (ct.current = Ve(function() {
682
685
  h.current.active();
683
686
  }, he));
684
687
  }, [ne, he]);
@@ -687,28 +690,28 @@ function Vn() {
687
690
  }, "N"), Z = /* @__PURE__ */ r(function(u) {
688
691
  var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
689
692
  x(), q.current = N.setTimeout(xe, u || C.current), S && (R.current = E());
690
- }, "Z"), ct = /* @__PURE__ */ r(function(u) {
693
+ }, "Z"), lt = /* @__PURE__ */ r(function(u) {
691
694
  !I.current && !p.current && (Ie.current(u, O), pe.current({ type: "active", prompted: !0 }, O)), P.current = 0, F.current = E(), I.current = !0, Z(X.current, !1);
692
- }, "wt"), lt = /* @__PURE__ */ r(function() {
693
- x(), p.current || (ke.current(null, O), pe.current({ type: "idle" }, O)), p.current = !0, L.current = E(), ut.current ? Q() : I.current && (F.current = 0, I.current = !1);
695
+ }, "wt"), ft = /* @__PURE__ */ r(function() {
696
+ x(), p.current || (ke.current(null, O), pe.current({ type: "idle" }, O)), p.current = !0, L.current = E(), at.current ? Q() : I.current && (F.current = 0, I.current = !1);
694
697
  }, "bt"), De = /* @__PURE__ */ r(function(u) {
695
698
  x(), (p.current || I.current) && (re.current(u, O), pe.current({ type: "active", prompted: !1 }, O)), I.current = !1, F.current = 0, p.current = !1, W.current += E() - L.current, de.current += E() - L.current, H(), Z();
696
699
  }, "ze"), xe = /* @__PURE__ */ r(function(u) {
697
700
  var S = !p.current;
698
701
  if (S) {
699
702
  $.cancel && $.cancel();
700
- var oe = E() - R.current, Ft = C.current + X.current < oe;
701
- if (!Ft && X.current > 0 && !I.current) {
702
- h.current ? h.current.prompt() : ct(u);
703
+ var oe = E() - R.current, Jt = C.current + X.current < oe;
704
+ if (!Jt && X.current > 0 && !I.current) {
705
+ h.current ? h.current.prompt() : lt(u);
703
706
  return;
704
707
  }
705
- h.current ? h.current.idle() : lt();
708
+ h.current ? h.current.idle() : ft();
706
709
  return;
707
710
  }
708
711
  h.current ? h.current.active() : De(u);
709
712
  }, "Je"), je = /* @__PURE__ */ r(function(u) {
710
713
  if (!fe && !R.current && (R.current = E(), re.current(null, O)), $(u, O), !I.current) {
711
- if (x(), !p.current && at.current.includes(u.type)) {
714
+ if (x(), !p.current && st.current.includes(u.type)) {
712
715
  xe(u);
713
716
  return;
714
717
  }
@@ -717,7 +720,7 @@ function Vn() {
717
720
  xe(u);
718
721
  return;
719
722
  }
720
- J.current = !1, P.current = 0, F.current = 0, Z(), ne && he && st.current();
723
+ J.current = !1, P.current = 0, F.current = 0, Z(), ne && he && ct.current();
721
724
  }
722
725
  }, "He"), Se = d(je);
723
726
  w(function() {
@@ -737,48 +740,48 @@ function Vn() {
737
740
  return D.current ? !1 : (x(), H(), p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, h.current && !u && h.current.start(), Z(), !0);
738
741
  }, [q, p, D, C, h]), Ne = g(function(u) {
739
742
  return D.current ? !1 : (x(), H(), Ae.current = E(), W.current += E() - L.current, de.current += E() - L.current, W.current = 0, p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, h.current && !u && h.current.reset(), U || Z(), !0);
740
- }, [q, p, C, U, D, h]), ft = g(function(u) {
743
+ }, [q, p, C, U, D, h]), ht = g(function(u) {
741
744
  return D.current ? !1 : (x(), H(), (p.current || I.current) && De(), p.current = !1, I.current = !1, J.current = !1, P.current = 0, F.current = 0, Ae.current = E(), h.current && !u && h.current.activate(), Z(), !0);
742
745
  }, [q, p, I, D, C, h]), Oe = g(function() {
743
746
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
744
- return D.current || J.current ? !1 : (P.current = ht(), J.current = !0, Q(), x(), h.current && !u && h.current.pause(), !0);
747
+ return D.current || J.current ? !1 : (P.current = dt(), J.current = !0, Q(), x(), h.current && !u && h.current.pause(), !0);
745
748
  }, [q, D, h]), _e = g(function() {
746
749
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
747
750
  return D.current || !J.current ? !1 : (J.current = !1, I.current || H(), p.current || Z(P.current), F.current && (F.current = E()), h.current && !u && h.current.resume(), !0);
748
- }, [q, C, D, P, h]), Ct = g(function(u, S) {
751
+ }, [q, C, D, P, h]), Dt = g(function(u, S) {
749
752
  return h.current ? (S && ie.current(u, O), h.current.message(u)) : S && ie.current(u, O), !0;
750
- }, [se]), Dt = g(function() {
753
+ }, [se]), xt = g(function() {
751
754
  return p.current;
752
- }, [p]), xt = g(function() {
755
+ }, [p]), jt = g(function() {
753
756
  return I.current;
754
- }, [I]), jt = g(function() {
757
+ }, [I]), Nt = g(function() {
755
758
  return h.current ? h.current.isLeader : null;
756
- }, [h]), Nt = g(function() {
757
- return h.current ? h.current.isLastActive : null;
758
759
  }, [h]), _t = g(function() {
760
+ return h.current ? h.current.isLastActive : null;
761
+ }, [h]), Vt = g(function() {
759
762
  return h.current ? h.current.token : null;
760
- }, [h]), ht = g(function() {
763
+ }, [h]), dt = g(function() {
761
764
  if (J.current) return P.current;
762
765
  var u = P.current ? P.current : X.current + C.current, S = R.current ? E() - R.current : 0, oe = Math.floor(u - S);
763
766
  return oe < 0 ? 0 : Math.abs(oe);
764
- }, [C, X, I, P, R]), dt = g(function() {
767
+ }, [C, X, I, P, R]), vt = g(function() {
765
768
  return Math.round(E() - Ae.current);
766
- }, [Ae]), vt = g(function() {
767
- return Math.round(E() - ot.current);
768
- }, [ot]), Vt = g(function() {
769
+ }, [Ae]), mt = g(function() {
770
+ return Math.round(E() - ut.current);
771
+ }, [ut]), Gt = g(function() {
769
772
  return L.current ? new Date(L.current) : null;
770
- }, [L]), Gt = g(function() {
773
+ }, [L]), Bt = g(function() {
771
774
  return R.current ? new Date(R.current) : null;
772
- }, [R]), mt = g(function() {
775
+ }, [R]), pt = g(function() {
773
776
  return p.current ? Math.round(E() - L.current + W.current) : Math.round(W.current);
774
- }, [L, W]), pt = g(function() {
777
+ }, [L, W]), gt = g(function() {
775
778
  return p.current ? Math.round(E() - L.current + de.current) : Math.round(de.current);
776
- }, [L, de]), Bt = g(function() {
777
- var u = Math.round(dt() - mt());
778
- return u >= 0 ? u : 0;
779
- }, [L, W]), Ut = g(function() {
779
+ }, [L, de]), Ut = g(function() {
780
780
  var u = Math.round(vt() - pt());
781
781
  return u >= 0 ? u : 0;
782
+ }, [L, W]), Ft = g(function() {
783
+ var u = Math.round(mt() - gt());
784
+ return u >= 0 ? u : 0;
782
785
  }, [L, W]);
783
786
  w(function() {
784
787
  if (ce > 0 && le > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
@@ -790,27 +793,27 @@ function Vn() {
790
793
  z && window.removeEventListener("beforeunload", u), h.current && h.current.close(), $.cancel && $.cancel(), x(), Q(!0);
791
794
  };
792
795
  }, []), w(function() {
793
- h.current && h.current.close(), ne ? h.current = new xn({ channelName: et, leaderElection: rt, onPrompt: /* @__PURE__ */ r(function() {
794
- ct();
795
- }, "onPrompt"), onIdle: /* @__PURE__ */ r(function() {
796
+ h.current && h.current.close(), ne ? h.current = new xn({ channelName: tt, leaderElection: it, onPrompt: /* @__PURE__ */ r(function() {
796
797
  lt();
798
+ }, "onPrompt"), onIdle: /* @__PURE__ */ r(function() {
799
+ ft();
797
800
  }, "onIdle"), onActive: /* @__PURE__ */ r(function() {
798
801
  De();
799
802
  }, "onActive"), onMessage: /* @__PURE__ */ r(function(u) {
800
803
  ie.current(u, O);
801
- }, "onMessage"), start: ee, reset: Ne, activate: ft, pause: Oe, resume: _e }) : h.current = null;
802
- }, [ne, et, rt, Ie, ke, re, ie, ee, Ne, Oe, _e]), w(function() {
804
+ }, "onMessage"), start: ee, reset: Ne, activate: ht, pause: Oe, resume: _e }) : h.current = null;
805
+ }, [ne, tt, it, Ie, ke, re, ie, ee, Ne, Oe, _e]), w(function() {
803
806
  Y.current || (x(), Q(!0)), !(U || B) && (fe ? ee() : H());
804
807
  }, [U, fe, B, Y]), w(function() {
805
808
  if (!Y.current) {
806
809
  var u = j(new Set(j(y).concat(j(A))).values());
807
- if (Q(), Ce.current = u, me.current = c, at.current = A, U || B) return;
810
+ if (Q(), Ce.current = u, me.current = c, st.current = A, U || B) return;
808
811
  fe ? ee() : H();
809
812
  }
810
813
  }, [c, JSON.stringify(y), JSON.stringify(A), Y, B, U, fe]), w(function() {
811
814
  Y.current && (Y.current = !1);
812
815
  }, [Y]);
813
- var O = { message: Ct, start: ee, reset: Ne, activate: ft, pause: Oe, resume: _e, isIdle: Dt, isPrompted: xt, isLeader: jt, isLastActiveTab: Nt, getTabId: _t, getRemainingTime: ht, getElapsedTime: dt, getTotalElapsedTime: vt, getLastIdleTime: Vt, getLastActiveTime: Gt, getIdleTime: mt, getTotalIdleTime: pt, getActiveTime: Bt, getTotalActiveTime: Ut, setOnPresenceChange: /* @__PURE__ */ r(function(u) {
816
+ var O = { message: Dt, start: ee, reset: Ne, activate: ht, pause: Oe, resume: _e, isIdle: xt, isPrompted: jt, isLeader: Nt, isLastActiveTab: _t, getTabId: Vt, getRemainingTime: dt, getElapsedTime: vt, getTotalElapsedTime: mt, getLastIdleTime: Gt, getLastActiveTime: Bt, getIdleTime: pt, getTotalIdleTime: gt, getActiveTime: Ut, getTotalActiveTime: Ft, setOnPresenceChange: /* @__PURE__ */ r(function(u) {
814
817
  G = u, pe.current = u;
815
818
  }, "setOnPresenceChange"), setOnPrompt: /* @__PURE__ */ r(function(u) {
816
819
  ye = u, Ie.current = u;
@@ -826,15 +829,15 @@ function Vn() {
826
829
  return O;
827
830
  }
828
831
  r(Vn, "Te");
829
- var Gn = It(null);
832
+ var Gn = kt(null);
830
833
  Gn.Consumer;
831
- const wt = 6e4, Bn = 36e5, Tt = "/auth/login";
834
+ const Tt = 6e4, Bn = 36e5, At = "/auth/login";
832
835
  function Un(e) {
833
836
  return Me(e) ? Math.floor(e / 1e3) : "";
834
837
  }
835
838
  r(Un, "millisToSeconds");
836
- function Zn({ timeout: e }) {
837
- const t = un(), { pathname: n } = an(), { t: i } = qt(), { confirmInfo: o } = zt(), { resetStorage: l } = At(), [s, a] = yt(!1), [c, f] = yt(null), y = d(!1), { getRemainingTime: _, reset: V } = Vn({
839
+ function er({ timeout: e }) {
840
+ const t = an(), { pathname: n } = sn(), { t: i } = on(), { confirmInfo: o } = un(), { resetStorage: l } = It(), [s, a] = Et(!1), [c, f] = Et(null), y = d(!1), { getRemainingTime: _, reset: V } = Vn({
838
841
  timeout: e ?? Bn,
839
842
  events: [
840
843
  "mousemove",
@@ -866,24 +869,24 @@ function Zn({ timeout: e }) {
866
869
  title: i("Message.로그인 페이지로 이동합니다.", {
867
870
  defaultValue: "로그인 페이지로 이동합니다."
868
871
  })
869
- }), l(), t(Tt));
872
+ }), l(), t(At));
870
873
  }, [o, t, l, i]);
871
874
  return w(() => {
872
- if (n === Tt) {
875
+ if (n === At) {
873
876
  a(!1);
874
877
  return;
875
878
  }
876
- if (!s && Me(c) && c > 0 && c <= wt) {
879
+ if (!s && Me(c) && c > 0 && c <= Tt) {
877
880
  a(!0);
878
881
  return;
879
882
  }
880
- if (s && Me(c) && c > wt) {
883
+ if (s && Me(c) && c > Tt) {
881
884
  T();
882
885
  return;
883
886
  }
884
887
  Me(c) && c <= 0 && A();
885
888
  }, [s, c, n, T, A]), /* @__PURE__ */ K(
886
- cn,
889
+ Ue,
887
890
  {
888
891
  title: i("Title.로그인 연장", { defaultValue: "로그인 연장" }),
889
892
  canConfirm: !1,
@@ -891,24 +894,25 @@ function Zn({ timeout: e }) {
891
894
  onClose: /* @__PURE__ */ r(() => T(), "onClose"),
892
895
  maxWidth: "xs",
893
896
  fullWidth: !0,
894
- children: /* @__PURE__ */ K(rn, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
897
+ children: /* @__PURE__ */ K(nn, { variant: "h6", children: i("Message.자동 로그아웃 남은 시간 안내", {
895
898
  defaultValue: "{{seconds}}초 후 로그인 페이지로 이동합니다.",
896
899
  seconds: Un(c)
897
900
  }) })
898
901
  }
899
902
  );
900
903
  }
901
- r(Zn, "OwpAutoLogoutDialog");
902
- const Qn = sn(/* @__PURE__ */ Yt.jsx("path", {
904
+ r(er, "OwpAutoLogoutDialog");
905
+ const tr = cn(/* @__PURE__ */ qt.jsx("path", {
903
906
  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"
904
907
  }), "Close");
905
908
  export {
906
- Qn as C,
907
- Xn as O,
908
- Zn as a,
909
- kt as b,
910
- cn as c,
909
+ tr as C,
910
+ $n as O,
911
+ er as a,
912
+ Lt as b,
913
+ Ue as c,
914
+ Qn as d,
911
915
  Me as i,
912
- $n as u
916
+ Zn as u
913
917
  };
914
- //# sourceMappingURL=Close-DA97hwNx.js.map
918
+ //# sourceMappingURL=Close-DnXhM4Ms.js.map