@owp/core 2.1.1 → 2.1.2

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.
@@ -0,0 +1,981 @@
1
+ var Ht = Object.defineProperty;
2
+ var n = (e, t) => Ht(e, "name", { value: t, configurable: !0 });
3
+ import { a as ye, j as M, b as Wt } from "./emotion-react-jsx-runtime.browser.esm-BMvSswBW.js";
4
+ import { b as Fe, l as $t, t as Kt } from "./useShortcuts-BjtlXprQ.js";
5
+ import { DialogContent as Xt, DialogActions as Zt, Dialog as Qt, DialogTitle as er, Box as tr, Button as Tt, Typography as Ot } from "@mui/material";
6
+ import { forwardRef as rr, createContext as nr, useRef as v, useEffect as w, useCallback as g, useMemo as or, Component as ir, useState as Ye } from "react";
7
+ import { u as ur } from "./isString-Codtu20I.js";
8
+ import { useNavigate as ar, useLocation as sr } from "react-router-dom";
9
+ import cr from "@mui/material/Box";
10
+ import lr from "@mui/material/Typography";
11
+ import fr from "@mui/material/Backdrop";
12
+ import hr from "@mui/material/CircularProgress";
13
+ import { createSvgIcon as dr } from "@mui/material/utils";
14
+ function Re(e) {
15
+ return typeof e == "number" || e instanceof Number;
16
+ }
17
+ n(Re, "isNumber");
18
+ const Je = rr(
19
+ ({
20
+ title: e,
21
+ children: t,
22
+ canCancel: r = !0,
23
+ canConfirm: o = !0,
24
+ onConfirm: i,
25
+ onCancel: l,
26
+ onClose: a,
27
+ useSubmit: s,
28
+ actions: c,
29
+ contentProps: f,
30
+ ...y
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(o ? "Button.취소" : "Button.닫기", {
33
+ defaultValue: o ? "취소" : "닫기"
34
+ });
35
+ return /* @__PURE__ */ ye(
36
+ Qt,
37
+ {
38
+ ref: B,
39
+ fullWidth: !0,
40
+ component: s ? "form" : void 0,
41
+ onClose: /* @__PURE__ */ n((m, R) => {
42
+ R !== "backdropClick" && (a == null || a(m, R));
43
+ }, "onClose"),
44
+ ...y,
45
+ children: [
46
+ e && /* @__PURE__ */ M(er, { children: e }),
47
+ /* @__PURE__ */ M(Xt, { dividers: !0, ...f, children: t }),
48
+ /* @__PURE__ */ ye(Zt, { children: [
49
+ c && /* @__PURE__ */ M(tr, { className: "flex w-full items-start", children: c }),
50
+ r && /* @__PURE__ */ M(
51
+ Tt,
52
+ {
53
+ variant: "outlined",
54
+ onClick: /* @__PURE__ */ n(() => {
55
+ if (typeof l == "function") {
56
+ l();
57
+ return;
58
+ }
59
+ a == null || a({}, "escapeKeyDown");
60
+ }, "onClick"),
61
+ children: T
62
+ }
63
+ ),
64
+ o && /* @__PURE__ */ M(
65
+ Tt,
66
+ {
67
+ variant: "contained",
68
+ color: "secondary",
69
+ type: s ? "submit" : "button",
70
+ onClick: /* @__PURE__ */ n(() => {
71
+ if (!s) {
72
+ if (typeof i == "function") {
73
+ i();
74
+ return;
75
+ }
76
+ a == null || a({}, "escapeKeyDown");
77
+ }
78
+ }, "onClick"),
79
+ children: I
80
+ }
81
+ )
82
+ ] })
83
+ ]
84
+ }
85
+ );
86
+ }
87
+ );
88
+ Je.displayName = "OwpDialog";
89
+ const un = Je;
90
+ var vr = Object.create, Mt = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, pr = Object.getOwnPropertyNames, gr = Object.getPrototypeOf, yr = Object.prototype.hasOwnProperty, Er = /* @__PURE__ */ n(function(e, t) {
91
+ return function() {
92
+ return t || e((t = { exports: {} }).exports, t), t.exports;
93
+ };
94
+ }, "yr"), br = /* @__PURE__ */ n(function(e, t, r, o) {
95
+ if (t && typeof t == "object" || typeof t == "function") for (var i = pr(t), l = 0, a = i.length, s; l < a; l++) s = i[l], !yr.call(e, s) && s !== r && Mt(e, s, { get: (function(c) {
96
+ return t[c];
97
+ }).bind(null, s), enumerable: !(o = mr(t, s)) || o.enumerable });
98
+ return e;
99
+ }, "gr"), wr = /* @__PURE__ */ n(function(e, t, r) {
100
+ return r = e != null ? vr(gr(e)) : {}, br(!e || !e.__esModule ? Mt(r, "default", { value: e, enumerable: !0 }) : r, e);
101
+ }, "wr"), Tr = Er(function(e, t) {
102
+ (function(r, o) {
103
+ typeof e == "object" && typeof t < "u" ? o(e) : typeof define == "function" && define.amd ? define(["exports"], o) : (r = typeof globalThis < "u" ? globalThis : r || self, o(r.fastUniqueNumbers = {}));
104
+ })(e, function(r) {
105
+ var o = /* @__PURE__ */ n(function(I) {
106
+ return function(T) {
107
+ var m = I(T);
108
+ return T.add(m), m;
109
+ };
110
+ }, "r"), i = /* @__PURE__ */ n(function(I) {
111
+ return function(T, m) {
112
+ return I.set(T, m), m;
113
+ };
114
+ }, "t"), l = Number.MAX_SAFE_INTEGER === void 0 ? 9007199254740991 : Number.MAX_SAFE_INTEGER, a = 536870912, s = a * 2, c = /* @__PURE__ */ n(function(I, T) {
115
+ return function(m) {
116
+ var R = T.get(m), x = R === void 0 ? m.size : R < s ? R + 1 : 0;
117
+ if (!m.has(x)) return I(m, x);
118
+ if (m.size < a) {
119
+ for (; m.has(x); ) x = Math.floor(Math.random() * s);
120
+ return I(m, x);
121
+ }
122
+ if (m.size > l) throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");
123
+ for (; m.has(x); ) x = Math.floor(Math.random() * l);
124
+ return I(m, x);
125
+ };
126
+ }, "s"), f = /* @__PURE__ */ new WeakMap(), y = i(f), B = c(y, f), G = o(B);
127
+ r.addUniqueNumber = G, r.generateUniqueNumber = B;
128
+ });
129
+ });
130
+ function te(e) {
131
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
132
+ return e;
133
+ }
134
+ n(te, "Y");
135
+ function Pt(e, t) {
136
+ return t != null && typeof Symbol < "u" && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : Pt(e, t);
137
+ }
138
+ n(Pt, "je");
139
+ function Ee(e, t) {
140
+ if (!Pt(e, t)) throw new TypeError("Cannot call a class as a function");
141
+ }
142
+ n(Ee, "z");
143
+ function Ue(e, t) {
144
+ return Ue = Object.setPrototypeOf || function(r, o) {
145
+ return r.__proto__ = o, r;
146
+ }, Ue(e, t);
147
+ }
148
+ n(Ue, "De");
149
+ function Rt(e, t) {
150
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
151
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Ue(e, t);
152
+ }
153
+ n(Rt, "Ke");
154
+ function b(e, t, r) {
155
+ return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
156
+ }
157
+ n(b, "h");
158
+ function xe(e) {
159
+ return xe = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
160
+ return t.__proto__ || Object.getPrototypeOf(t);
161
+ }, xe(e);
162
+ }
163
+ n(xe, "be");
164
+ function Ar() {
165
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
166
+ if (typeof Proxy == "function") return !0;
167
+ try {
168
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
169
+ })), !0;
170
+ } catch {
171
+ return !1;
172
+ }
173
+ }
174
+ n(Ar, "Pt");
175
+ function xt(e) {
176
+ "@swc/helpers - typeof";
177
+ return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
178
+ }
179
+ n(xt, "Ne");
180
+ function Ir(e, t) {
181
+ return t && (xt(t) === "object" || typeof t == "function") ? t : te(e);
182
+ }
183
+ n(Ir, "kt");
184
+ function Ct(e) {
185
+ var t = Ar();
186
+ return function() {
187
+ var r = xe(e), o;
188
+ if (t) {
189
+ var i = xe(this).constructor;
190
+ o = Reflect.construct(r, arguments, i);
191
+ } else o = r.apply(this, arguments);
192
+ return Ir(this, o);
193
+ };
194
+ }
195
+ n(Ct, "Ze");
196
+ var kr = (function(e) {
197
+ Rt(r, e);
198
+ var t = Ct(r);
199
+ function r() {
200
+ return Ee(this, r), t.apply(this, arguments);
201
+ }
202
+ return n(r, "t"), r;
203
+ })(ir);
204
+ (function(e) {
205
+ Rt(r, e);
206
+ var t = Ct(r);
207
+ function r(o) {
208
+ Ee(this, r);
209
+ var i;
210
+ return i = t.call(this, o), i.onPresenceChange && o.setOnPresenceChange(i.onPresenceChange.bind(te(i))), i.onPrompt && o.setOnPrompt(i.onPrompt.bind(te(i))), i.onIdle && o.setOnIdle(i.onIdle.bind(te(i))), i.onActive && o.setOnActive(i.onActive.bind(te(i))), i.onAction && o.setOnAction(i.onAction.bind(te(i))), i.onMessage && o.setOnMessage(i.onMessage.bind(te(i))), i;
211
+ }
212
+ return n(r, "t"), r;
213
+ })(kr);
214
+ function ze(e, t) {
215
+ (t == null || t > e.length) && (t = e.length);
216
+ for (var r = 0, o = new Array(t); r < t; r++) o[r] = e[r];
217
+ return o;
218
+ }
219
+ n(ze, "Ee");
220
+ function Lr(e) {
221
+ if (Array.isArray(e)) return ze(e);
222
+ }
223
+ n(Lr, "At");
224
+ function Sr(e) {
225
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
226
+ }
227
+ n(Sr, "Rt");
228
+ function Or() {
229
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
230
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
231
+ }
232
+ n(Or, "Mt");
233
+ function Mr(e, t) {
234
+ if (e) {
235
+ if (typeof e == "string") return ze(e, t);
236
+ var r = Object.prototype.toString.call(e).slice(8, -1);
237
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(r);
238
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return ze(e, t);
239
+ }
240
+ }
241
+ n(Mr, "Ct");
242
+ function _(e) {
243
+ return Lr(e) || Sr(e) || Mr(e) || Or();
244
+ }
245
+ n(_, "O");
246
+ function Pr(e, t) {
247
+ for (var r = 0; r < t.length; r++) {
248
+ var o = t[r];
249
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
250
+ }
251
+ }
252
+ n(Pr, "jt");
253
+ function qe(e, t, r) {
254
+ return t && Pr(e.prototype, t), e;
255
+ }
256
+ n(qe, "ce");
257
+ wr(Tr());
258
+ var H = (typeof window > "u" || typeof window > "u" ? "undefined" : xt(window)) === "object", V = { setTimeout: H ? setTimeout.bind(window) : setTimeout, clearTimeout: H ? clearTimeout.bind(window) : clearTimeout, setInterval: H ? setInterval.bind(window) : setInterval, clearInterval: H ? clearInterval.bind(window) : clearInterval };
259
+ function Rr(e) {
260
+ V.setTimeout = e.setTimeout, V.clearTimeout = e.clearTimeout, V.setInterval = e.setInterval, V.clearInterval = e.clearInterval;
261
+ }
262
+ n(Rr, "Jt");
263
+ var ue = {}, xr = (function() {
264
+ function e(t) {
265
+ Ee(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);
266
+ }
267
+ return n(e, "e"), qe(e, [{ key: "onStorage", value: /* @__PURE__ */ n(function(t) {
268
+ if (t.storageArea === window.localStorage && t.key.substring(0, this.name.length) === this.name && t.newValue !== null) {
269
+ var r = JSON.parse(t.newValue);
270
+ this.mc.port2.postMessage(r);
271
+ }
272
+ }, "value") }, { key: "postMessage", value: /* @__PURE__ */ n(function(t) {
273
+ var r = this;
274
+ if (this.closed) throw new Error("InvalidStateError");
275
+ var o = JSON.stringify(t), i = "".concat(this.name, ":").concat(String(Date.now())).concat(String(Math.random()));
276
+ window.localStorage.setItem(i, o), V.setTimeout(function() {
277
+ window.localStorage.removeItem(i);
278
+ }, 500), ue[this.name].forEach(function(l) {
279
+ l !== r && l.mc.port2.postMessage(JSON.parse(o));
280
+ });
281
+ }, "value") }, { key: "close", value: /* @__PURE__ */ n(function() {
282
+ if (!this.closed) {
283
+ this.closed = !0, this.mc.port1.close(), this.mc.port2.close(), window.removeEventListener("storage", this.onStorage);
284
+ var t = ue[this.name].indexOf(this);
285
+ ue[this.name].splice(t, 1);
286
+ }
287
+ }, "value") }, { key: "onmessage", get: /* @__PURE__ */ n(function() {
288
+ return this.mc.port1.onmessage;
289
+ }, "get"), set: /* @__PURE__ */ n(function(t) {
290
+ this.mc.port1.onmessage = t;
291
+ }, "set") }, { key: "onmessageerror", get: /* @__PURE__ */ n(function() {
292
+ return this.mc.port1.onmessageerror;
293
+ }, "get"), set: /* @__PURE__ */ n(function(t) {
294
+ this.mc.port1.onmessageerror = t;
295
+ }, "set") }, { key: "addEventListener", value: /* @__PURE__ */ n(function(t, r) {
296
+ return this.mc.port1.addEventListener(t, r);
297
+ }, "value") }, { key: "removeEventListener", value: /* @__PURE__ */ n(function(t, r) {
298
+ return this.mc.port1.removeEventListener(t, r);
299
+ }, "value") }, { key: "dispatchEvent", value: /* @__PURE__ */ n(function(t) {
300
+ return this.mc.port1.dispatchEvent(t);
301
+ }, "value") }]), e;
302
+ })(), Cr = typeof window > "u" ? void 0 : typeof window.BroadcastChannel == "function" ? window.BroadcastChannel : xr;
303
+ function At(e, t, r, o, i, l, a) {
304
+ try {
305
+ var s = e[l](a), c = s.value;
306
+ } catch (f) {
307
+ r(f);
308
+ return;
309
+ }
310
+ s.done ? t(c) : Promise.resolve(c).then(o, i);
311
+ }
312
+ n(At, "Xt");
313
+ function Dr(e) {
314
+ return function() {
315
+ var t = this, r = arguments;
316
+ return new Promise(function(o, i) {
317
+ var l = e.apply(t, r);
318
+ function a(c) {
319
+ At(l, o, i, a, s, "next", c);
320
+ }
321
+ n(a, "s");
322
+ function s(c) {
323
+ At(l, o, i, a, s, "throw", c);
324
+ }
325
+ n(s, "a"), a(void 0);
326
+ });
327
+ };
328
+ }
329
+ n(Dr, "$t");
330
+ function Nr(e, t) {
331
+ var r = /* @__PURE__ */ n(function(f) {
332
+ return function(y) {
333
+ return o([f, y]);
334
+ };
335
+ }, "t"), o = /* @__PURE__ */ n(function(f) {
336
+ if (l) throw new TypeError("Generator is already executing.");
337
+ for (; c && (c = 0, f[0] && (i = 0)), i; ) try {
338
+ if (l = 1, a && (s = f[0] & 2 ? a.return : f[0] ? a.throw || ((s = a.return) && s.call(a), 0) : a.next) && !(s = s.call(a, f[1])).done) return s;
339
+ switch (a = 0, s && (f = [f[0] & 2, s.value]), f[0]) {
340
+ case 0:
341
+ case 1:
342
+ s = f;
343
+ break;
344
+ case 4:
345
+ return i.label++, { value: f[1], done: !1 };
346
+ case 5:
347
+ i.label++, a = f[1], f = [0];
348
+ continue;
349
+ case 7:
350
+ f = i.ops.pop(), i.trys.pop();
351
+ continue;
352
+ default:
353
+ if (s = i.trys, !(s = s.length > 0 && s[s.length - 1]) && (f[0] === 6 || f[0] === 2)) {
354
+ i = 0;
355
+ continue;
356
+ }
357
+ if (f[0] === 3 && (!s || f[1] > s[0] && f[1] < s[3])) {
358
+ i.label = f[1];
359
+ break;
360
+ }
361
+ if (f[0] === 6 && i.label < s[1]) {
362
+ i.label = s[1], s = f;
363
+ break;
364
+ }
365
+ if (s && i.label < s[2]) {
366
+ i.label = s[2], i.ops.push(f);
367
+ break;
368
+ }
369
+ s[2] && i.ops.pop(), i.trys.pop();
370
+ continue;
371
+ }
372
+ f = t.call(e, i);
373
+ } catch (y) {
374
+ f = [6, y], a = 0;
375
+ } finally {
376
+ l = s = 0;
377
+ }
378
+ if (f[0] & 5) throw f[1];
379
+ return { value: f[0] ? f[1] : void 0, done: !0 };
380
+ }, "o"), i = { label: 0, sent: /* @__PURE__ */ n(function() {
381
+ if (s[0] & 1) throw s[1];
382
+ return s[1];
383
+ }, "sent"), trys: [], ops: [] }, l, a, s, c;
384
+ return c = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
385
+ return this;
386
+ }), c;
387
+ }
388
+ n(Nr, "Ve");
389
+ function jr() {
390
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
391
+ return new Promise(function(t) {
392
+ return V.setTimeout(t, e);
393
+ });
394
+ }
395
+ n(jr, "Kt");
396
+ function Dt() {
397
+ return Math.random().toString(36).substring(2);
398
+ }
399
+ n(Dt, "Ge");
400
+ var d;
401
+ (function(e) {
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";
403
+ })(d || (d = {}));
404
+ var _r = (function() {
405
+ function e(t, r) {
406
+ Ee(this, e), b(this, "options", void 0), b(this, "channel", void 0), b(this, "token", Dt()), 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 = r, this.apply = this.apply.bind(this), this.awaitLeadership = this.awaitLeadership.bind(this), this.sendAction = this.sendAction.bind(this);
407
+ }
408
+ return n(e, "e"), qe(e, [{ key: "apply", value: /* @__PURE__ */ n(function() {
409
+ var t = this;
410
+ return Dr(function() {
411
+ var r, o;
412
+ return Nr(this, function(i) {
413
+ switch (i.label) {
414
+ case 0:
415
+ if (t.isLeader) return [2, !1];
416
+ if (t.isDead) return [2, !1];
417
+ if (t.isApplying) return t.reApply = !0, [2, !1];
418
+ t.isApplying = !0, r = !1, o = /* @__PURE__ */ n(function(l) {
419
+ var a = l.data, s = a.token, c = a.action;
420
+ s !== t.token && (c === d.APPLY && s > t.token && (r = !0), c === d.TELL && (r = !0));
421
+ }, "n"), t.channel.addEventListener("message", o), i.label = 1;
422
+ case 1:
423
+ return i.trys.push([1, 3, , 4]), t.sendAction(d.APPLY), [4, jr(t.options.responseTime)];
424
+ case 2:
425
+ return i.sent(), t.channel.removeEventListener("message", o), t.isApplying = !1, r ? t.reApply ? [2, t.apply()] : [2, !1] : (t.assumeLead(), [2, !0]);
426
+ case 3:
427
+ return i.sent(), [2, !1];
428
+ case 4:
429
+ return [2];
430
+ }
431
+ });
432
+ })();
433
+ }, "value") }, { key: "awaitLeadership", value: /* @__PURE__ */ n(function() {
434
+ var t = this;
435
+ if (this.isLeader) return Promise.resolve();
436
+ var r = !1, o = null;
437
+ return new Promise(function(i) {
438
+ var l = /* @__PURE__ */ n(function() {
439
+ if (!r) {
440
+ r = !0;
441
+ try {
442
+ V.clearInterval(o);
443
+ } catch {
444
+ }
445
+ var s = t.intervals.indexOf(o);
446
+ s >= 0 && t.intervals.splice(s, 1), t.channel.removeEventListener("message", a), i();
447
+ }
448
+ }, "s");
449
+ o = V.setInterval(function() {
450
+ t.apply().then(function() {
451
+ t.isLeader && l();
452
+ });
453
+ }, t.options.fallbackInterval), t.intervals.push(o);
454
+ var a = /* @__PURE__ */ n(function(s) {
455
+ var c = s.data.action;
456
+ c === d.CLOSE && t.apply().then(function() {
457
+ t.isLeader && l();
458
+ });
459
+ }, "a");
460
+ t.channel.addEventListener("message", a);
461
+ });
462
+ }, "value") }, { key: "sendAction", value: /* @__PURE__ */ n(function(t) {
463
+ this.channel.postMessage({ action: t, token: this.token });
464
+ }, "value") }, { key: "assumeLead", value: /* @__PURE__ */ n(function() {
465
+ var t = this;
466
+ this.isLeader = !0;
467
+ var r = /* @__PURE__ */ n(function(o) {
468
+ var i = o.data.action;
469
+ i === d.APPLY && t.sendAction(d.TELL);
470
+ }, "o");
471
+ return this.channel.addEventListener("message", r), this.listeners.push(r), this.sendAction(d.TELL);
472
+ }, "value") }, { key: "waitForLeadership", value: /* @__PURE__ */ n(function() {
473
+ return this.deferred ? this.deferred : (this.deferred = this.awaitLeadership(), this.deferred);
474
+ }, "value") }, { key: "close", value: /* @__PURE__ */ n(function() {
475
+ var t = this;
476
+ if (!this.isDead) {
477
+ this.isDead = !0, this.isLeader = !1, this.sendAction(d.CLOSE);
478
+ try {
479
+ this.listeners.forEach(function(r) {
480
+ return t.channel.removeEventListener("message", r);
481
+ }), this.intervals.forEach(function(r) {
482
+ return V.clearInterval(r);
483
+ });
484
+ } catch {
485
+ }
486
+ }
487
+ }, "value") }]), e;
488
+ })(), O;
489
+ (function(e) {
490
+ e[e.PROMPTED = 0] = "PROMPTED", e[e.ACTIVE = 1] = "ACTIVE", e[e.IDLE = 2] = "IDLE";
491
+ })(O || (O = {}));
492
+ var Vr = (function() {
493
+ function e(t) {
494
+ var r = this;
495
+ Ee(this, e), b(this, "channel", void 0), b(this, "options", void 0), b(this, "elector", void 0), b(this, "token", Dt()), b(this, "registry", /* @__PURE__ */ new Map()), b(this, "allIdle", !1), b(this, "isLastActive", !1);
496
+ var o = t.channelName;
497
+ if (this.options = t, this.channel = new Cr(o), this.registry.set(this.token, O.ACTIVE), t.leaderElection) {
498
+ var i = { fallbackInterval: 2e3, responseTime: 100 };
499
+ this.elector = new _r(this.channel, i), this.elector.waitForLeadership();
500
+ }
501
+ this.channel.addEventListener("message", function(l) {
502
+ var a = l.data, s = a.action, c = a.token, f = a.data;
503
+ switch (s) {
504
+ case d.REGISTER:
505
+ r.registry.set(c, O.IDLE);
506
+ break;
507
+ case d.DEREGISTER:
508
+ r.registry.delete(c);
509
+ break;
510
+ case d.IDLE:
511
+ r.idle(c);
512
+ break;
513
+ case d.ACTIVE:
514
+ r.active(c);
515
+ break;
516
+ case d.PROMPT:
517
+ r.prompt(c);
518
+ break;
519
+ case d.START:
520
+ r.start(c);
521
+ break;
522
+ case d.RESET:
523
+ r.reset(c);
524
+ break;
525
+ case d.ACTIVATE:
526
+ r.activate(c);
527
+ break;
528
+ case d.PAUSE:
529
+ r.pause(c);
530
+ break;
531
+ case d.RESUME:
532
+ r.resume(c);
533
+ break;
534
+ case d.MESSAGE:
535
+ r.options.onMessage(f);
536
+ break;
537
+ }
538
+ }), this.send(d.REGISTER);
539
+ }
540
+ return n(e, "e"), qe(e, [{ key: "isLeader", get: /* @__PURE__ */ n(function() {
541
+ if (!this.elector) throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');
542
+ return this.elector.isLeader;
543
+ }, "get") }, { key: "prompt", value: /* @__PURE__ */ n(function() {
544
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
545
+ this.registry.set(t, O.PROMPTED);
546
+ var r = _(this.registry.values()).every(function(o) {
547
+ return o === O.PROMPTED;
548
+ });
549
+ t === this.token && this.send(d.PROMPT), r && this.options.onPrompt();
550
+ }, "value") }, { key: "idle", value: /* @__PURE__ */ n(function() {
551
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
552
+ this.registry.set(t, O.IDLE);
553
+ var r = _(this.registry.values()).every(function(o) {
554
+ return o === O.IDLE;
555
+ });
556
+ t === this.token && this.send(d.IDLE), !this.allIdle && r && (this.allIdle = !0, this.options.onIdle());
557
+ }, "value") }, { key: "active", value: /* @__PURE__ */ n(function() {
558
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
559
+ this.allIdle = !1, this.registry.set(t, O.ACTIVE);
560
+ var r = _(this.registry.values()).some(function(o) {
561
+ return o === O.ACTIVE;
562
+ });
563
+ t === this.token && this.send(d.ACTIVE), r && this.options.onActive(), this.isLastActive = t === this.token;
564
+ }, "value") }, { key: "start", value: /* @__PURE__ */ n(function() {
565
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 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;
567
+ }, "value") }, { key: "reset", value: /* @__PURE__ */ n(function() {
568
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 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;
570
+ }, "value") }, { key: "activate", value: /* @__PURE__ */ n(function() {
571
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 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;
573
+ }, "value") }, { key: "pause", value: /* @__PURE__ */ n(function() {
574
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
575
+ t === this.token ? this.send(d.PAUSE) : this.options.pause(!0);
576
+ }, "value") }, { key: "resume", value: /* @__PURE__ */ n(function() {
577
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.token;
578
+ t === this.token ? this.send(d.RESUME) : this.options.resume(!0);
579
+ }, "value") }, { key: "message", value: /* @__PURE__ */ n(function(t) {
580
+ try {
581
+ this.channel.postMessage({ action: d.MESSAGE, token: this.token, data: t });
582
+ } catch {
583
+ }
584
+ }, "value") }, { key: "send", value: /* @__PURE__ */ n(function(t) {
585
+ try {
586
+ this.channel.postMessage({ action: t, token: this.token });
587
+ } catch {
588
+ }
589
+ }, "value") }, { key: "close", value: /* @__PURE__ */ n(function() {
590
+ this.options.leaderElection && this.elector.close(), this.send(d.DEREGISTER), this.channel.close();
591
+ }, "value") }]), e;
592
+ })(), Br = H ? document : null, Gr = ["mousemove", "keydown", "wheel", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "MSPointerDown", "MSPointerMove", "visibilitychange", "focus"];
593
+ function Yr(e, t) {
594
+ var r = /* @__PURE__ */ n(function() {
595
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
596
+ o && clearTimeout(o), o = setTimeout(function() {
597
+ e.apply(void 0, _(l)), o = null;
598
+ }, t);
599
+ }, "t"), o;
600
+ return r.cancel = function() {
601
+ clearTimeout(o);
602
+ }, r;
603
+ }
604
+ n(Yr, "tr");
605
+ function Ge(e, t) {
606
+ var r = 0;
607
+ return function() {
608
+ for (var o = arguments.length, i = new Array(o), l = 0; l < o; l++) i[l] = arguments[l];
609
+ var a = (/* @__PURE__ */ new Date()).getTime();
610
+ if (!(a - r < t)) return r = a, e.apply(void 0, _(i));
611
+ };
612
+ }
613
+ n(Ge, "Fe");
614
+ var E = /* @__PURE__ */ n(function() {
615
+ return Date.now();
616
+ }, "g"), ae = 2147483647;
617
+ function Ur() {
618
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.timeout, r = t === void 0 ? 1e3 * 60 * 20 : t, o = e.promptTimeout, i = o === void 0 ? 0 : o, l = e.promptBeforeIdle, a = l === void 0 ? 0 : l, s = e.element, c = s === void 0 ? Br : s, f = e.events, y = f === void 0 ? Gr : f, 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, be = x === void 0 ? function() {
620
+ } : x, He = e.onIdle, we = He === void 0 ? function() {
621
+ } : He, We = e.onActive, Te = We === void 0 ? function() {
622
+ } : We, $e = e.onAction, Ae = $e === void 0 ? function() {
623
+ } : $e, Ke = e.onMessage, se = Ke === void 0 ? function() {
624
+ } : Ke, Xe = e.debounce, ce = Xe === void 0 ? 0 : Xe, Ze = e.throttle, le = Ze === void 0 ? 0 : Ze, Qe = e.eventsThrottle, Ce = Qe === void 0 ? 200 : Qe, et = e.startOnMount, fe = et === void 0 ? !0 : et, tt = e.startManually, U = tt === void 0 ? !1 : tt, rt = e.stopOnIdle, Ie = rt === void 0 ? !1 : rt, nt = e.crossTab, re = nt === void 0 ? !1 : nt, ot = e.name, it = ot === void 0 ? "idle-timer" : ot, ut = e.syncTimers, he = ut === void 0 ? 0 : ut, at = e.leaderElection, st = at === void 0 ? !1 : at, ct = e.disabled, Y = ct === void 0 ? !1 : ct, lt = v(E()), ke = v(E()), k = v(null), C = v(null), W = v(0), de = v(0), z = v(0), P = v(0), p = v(!1), A = v(!1), F = v(!1), J = v(!0), ve = v(!1), q = v(null), h = v(null), D = v(r), K = v(0);
625
+ w(function() {
626
+ if (i && console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."), a && i) throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");
627
+ if (r >= ae) throw new Error("❌ The value for the timeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
628
+ if (i >= ae) throw new Error("❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ".concat(ae, "."));
629
+ if (a >= ae) throw new Error("❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ".concat(ae, "."));
630
+ if (a >= r) throw new Error("❌ The value for the promptBeforeIdle property must be less than the timeout property, ".concat(r, "."));
631
+ if (a ? (D.current = r - a, K.current = a) : (D.current = r, K.current = i), !J.current) {
632
+ if (U || Y) return;
633
+ p.current && (ne.current(null, S), h.current && h.current.active()), ee();
634
+ }
635
+ }, [r, i, a, U, Y]);
636
+ var ft = v(Ie);
637
+ w(function() {
638
+ ft.current = Ie;
639
+ }, [Ie]);
640
+ var ht = v(T), me = v(c), De = v(_(new Set(_(y).concat(_(T))).values())), N = v(Y);
641
+ w(function() {
642
+ N.current = Y, !J.current && (Y ? Pe() : U || ee());
643
+ }, [Y]);
644
+ var pe = v(R);
645
+ w(function() {
646
+ pe.current = R;
647
+ }, [R]);
648
+ var Le = v(be);
649
+ w(function() {
650
+ Le.current = be;
651
+ }, [be]);
652
+ var Se = v(we);
653
+ w(function() {
654
+ Se.current = we;
655
+ }, [we]);
656
+ var ne = v(Te);
657
+ w(function() {
658
+ ne.current = Te;
659
+ }, [Te]);
660
+ var Oe = v(Ae);
661
+ w(function() {
662
+ Oe.current = Ae;
663
+ }, [Ae]);
664
+ var oe = v(se);
665
+ w(function() {
666
+ oe.current = se;
667
+ }, [se]);
668
+ var X = or(function() {
669
+ var u = /* @__PURE__ */ n(function(L, ie) {
670
+ return Oe.current(L, ie);
671
+ }, "i");
672
+ return ce > 0 ? Yr(u, ce) : le > 0 ? Ge(u, le) : u;
673
+ }, [le, ce]), dt = v();
674
+ w(function() {
675
+ re && he && (dt.current = Ge(function() {
676
+ h.current.active();
677
+ }, he));
678
+ }, [re, he]);
679
+ var j = /* @__PURE__ */ n(function() {
680
+ q.current !== null && (V.clearTimeout(q.current), q.current = null);
681
+ }, "N"), Z = /* @__PURE__ */ n(function(u) {
682
+ var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
683
+ j(), q.current = V.setTimeout(je, u || D.current), L && (C.current = E());
684
+ }, "Z"), vt = /* @__PURE__ */ n(function(u) {
685
+ !A.current && !p.current && (Le.current(u, S), pe.current({ type: "active", prompted: !0 }, S)), P.current = 0, z.current = E(), A.current = !0, Z(K.current, !1);
686
+ }, "wt"), mt = /* @__PURE__ */ n(function() {
687
+ j(), p.current || (Se.current(null, S), pe.current({ type: "idle" }, S)), p.current = !0, k.current = E(), ft.current ? Q() : A.current && (z.current = 0, A.current = !1);
688
+ }, "bt"), Ne = /* @__PURE__ */ n(function(u) {
689
+ j(), (p.current || A.current) && (ne.current(u, S), pe.current({ type: "active", prompted: !1 }, S)), A.current = !1, z.current = 0, p.current = !1, W.current += E() - k.current, de.current += E() - k.current, $(), Z();
690
+ }, "ze"), je = /* @__PURE__ */ n(function(u) {
691
+ var L = !p.current;
692
+ if (L) {
693
+ X.cancel && X.cancel();
694
+ var ie = E() - C.current, qt = D.current + K.current < ie;
695
+ if (!qt && K.current > 0 && !A.current) {
696
+ h.current ? h.current.prompt() : vt(u);
697
+ return;
698
+ }
699
+ h.current ? h.current.idle() : mt();
700
+ return;
701
+ }
702
+ h.current ? h.current.active() : Ne(u);
703
+ }, "Je"), _e = /* @__PURE__ */ n(function(u) {
704
+ if (!fe && !C.current && (C.current = E(), ne.current(null, S)), X(u, S), !A.current) {
705
+ if (j(), !p.current && ht.current.includes(u.type)) {
706
+ je(u);
707
+ return;
708
+ }
709
+ var L = E() - C.current;
710
+ if (p.current && !Ie || !p.current && L >= D.current) {
711
+ je(u);
712
+ return;
713
+ }
714
+ F.current = !1, P.current = 0, z.current = 0, Z(), re && he && dt.current();
715
+ }
716
+ }, "He"), Me = v(_e);
717
+ w(function() {
718
+ var u = ve.current;
719
+ u && Q(), Ce > 0 ? Me.current = Ge(_e, Ce) : Me.current = _e, u && $();
720
+ }, [Ce, le, ce, Oe, re, he]);
721
+ var $ = /* @__PURE__ */ n(function() {
722
+ H && me.current && (ve.current || (De.current.forEach(function(u) {
723
+ me.current.addEventListener(u, Me.current, { capture: !0, passive: !0 });
724
+ }), ve.current = !0));
725
+ }, "H"), Q = /* @__PURE__ */ n(function() {
726
+ var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
727
+ H && me.current && (ve.current || u) && (De.current.forEach(function(L) {
728
+ me.current.removeEventListener(L, Me.current, { capture: !0 });
729
+ }), ve.current = !1);
730
+ }, "ee"), ee = g(function(u) {
731
+ return N.current ? !1 : (j(), $(), p.current = !1, A.current = !1, F.current = !1, P.current = 0, z.current = 0, h.current && !u && h.current.start(), Z(), !0);
732
+ }, [q, p, N, D, h]), Ve = g(function(u) {
733
+ return N.current ? !1 : (j(), $(), ke.current = E(), W.current += E() - k.current, de.current += E() - k.current, W.current = 0, p.current = !1, A.current = !1, F.current = !1, P.current = 0, z.current = 0, h.current && !u && h.current.reset(), U || Z(), !0);
734
+ }, [q, p, D, U, N, h]), pt = g(function(u) {
735
+ return N.current ? !1 : (j(), $(), (p.current || A.current) && Ne(), p.current = !1, A.current = !1, F.current = !1, P.current = 0, z.current = 0, ke.current = E(), h.current && !u && h.current.activate(), Z(), !0);
736
+ }, [q, p, A, N, D, h]), Pe = g(function() {
737
+ var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
738
+ return N.current || F.current ? !1 : (P.current = gt(), F.current = !0, Q(), j(), h.current && !u && h.current.pause(), !0);
739
+ }, [q, N, h]), Be = g(function() {
740
+ var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
741
+ return N.current || !F.current ? !1 : (F.current = !1, A.current || $(), p.current || Z(P.current), z.current && (z.current = E()), h.current && !u && h.current.resume(), !0);
742
+ }, [q, D, N, P, h]), jt = g(function(u, L) {
743
+ return h.current ? (L && oe.current(u, S), h.current.message(u)) : L && oe.current(u, S), !0;
744
+ }, [se]), _t = g(function() {
745
+ return p.current;
746
+ }, [p]), Vt = g(function() {
747
+ return A.current;
748
+ }, [A]), Bt = g(function() {
749
+ return h.current ? h.current.isLeader : null;
750
+ }, [h]), Gt = g(function() {
751
+ return h.current ? h.current.isLastActive : null;
752
+ }, [h]), Yt = g(function() {
753
+ return h.current ? h.current.token : null;
754
+ }, [h]), gt = g(function() {
755
+ if (F.current) return P.current;
756
+ var u = P.current ? P.current : K.current + D.current, L = C.current ? E() - C.current : 0, ie = Math.floor(u - L);
757
+ return ie < 0 ? 0 : Math.abs(ie);
758
+ }, [D, K, A, P, C]), yt = g(function() {
759
+ return Math.round(E() - ke.current);
760
+ }, [ke]), Et = g(function() {
761
+ return Math.round(E() - lt.current);
762
+ }, [lt]), Ut = g(function() {
763
+ return k.current ? new Date(k.current) : null;
764
+ }, [k]), zt = g(function() {
765
+ return C.current ? new Date(C.current) : null;
766
+ }, [C]), bt = g(function() {
767
+ return p.current ? Math.round(E() - k.current + W.current) : Math.round(W.current);
768
+ }, [k, W]), wt = g(function() {
769
+ return p.current ? Math.round(E() - k.current + de.current) : Math.round(de.current);
770
+ }, [k, de]), Ft = g(function() {
771
+ var u = Math.round(yt() - bt());
772
+ return u >= 0 ? u : 0;
773
+ }, [k, W]), Jt = g(function() {
774
+ var u = Math.round(Et() - wt());
775
+ return u >= 0 ? u : 0;
776
+ }, [k, W]);
777
+ w(function() {
778
+ if (ce > 0 && le > 0) throw new Error("❌ onAction can either be throttled or debounced, not both.");
779
+ G && Rr(G);
780
+ var u = /* @__PURE__ */ n(function() {
781
+ h.current && h.current.close(), X.cancel && X.cancel(), j(), Q(!0);
782
+ }, "i");
783
+ return H && window.addEventListener("beforeunload", u), function() {
784
+ H && window.removeEventListener("beforeunload", u), h.current && h.current.close(), X.cancel && X.cancel(), j(), Q(!0);
785
+ };
786
+ }, []), w(function() {
787
+ h.current && h.current.close(), re ? h.current = new Vr({ channelName: it, leaderElection: st, onPrompt: /* @__PURE__ */ n(function() {
788
+ vt();
789
+ }, "onPrompt"), onIdle: /* @__PURE__ */ n(function() {
790
+ mt();
791
+ }, "onIdle"), onActive: /* @__PURE__ */ n(function() {
792
+ Ne();
793
+ }, "onActive"), onMessage: /* @__PURE__ */ n(function(u) {
794
+ oe.current(u, S);
795
+ }, "onMessage"), start: ee, reset: Ve, activate: pt, pause: Pe, resume: Be }) : h.current = null;
796
+ }, [re, it, st, Le, Se, ne, oe, ee, Ve, Pe, Be]), w(function() {
797
+ J.current || (j(), Q(!0)), !(U || Y) && (fe ? ee() : $());
798
+ }, [U, fe, Y, J]), w(function() {
799
+ if (!J.current) {
800
+ var u = _(new Set(_(y).concat(_(T))).values());
801
+ if (Q(), De.current = u, me.current = c, ht.current = T, U || Y) return;
802
+ fe ? ee() : $();
803
+ }
804
+ }, [c, JSON.stringify(y), JSON.stringify(T), J, Y, U, fe]), w(function() {
805
+ J.current && (J.current = !1);
806
+ }, [J]);
807
+ var S = { message: jt, start: ee, reset: Ve, activate: pt, pause: Pe, resume: Be, isIdle: _t, isPrompted: Vt, isLeader: Bt, isLastActiveTab: Gt, getTabId: Yt, getRemainingTime: gt, getElapsedTime: yt, getTotalElapsedTime: Et, getLastIdleTime: Ut, getLastActiveTime: zt, getIdleTime: bt, getTotalIdleTime: wt, getActiveTime: Ft, getTotalActiveTime: Jt, setOnPresenceChange: /* @__PURE__ */ n(function(u) {
808
+ R = u, pe.current = u;
809
+ }, "setOnPresenceChange"), setOnPrompt: /* @__PURE__ */ n(function(u) {
810
+ be = u, Le.current = u;
811
+ }, "setOnPrompt"), setOnIdle: /* @__PURE__ */ n(function(u) {
812
+ we = u, Se.current = u;
813
+ }, "setOnIdle"), setOnActive: /* @__PURE__ */ n(function(u) {
814
+ Te = u, ne.current = u;
815
+ }, "setOnActive"), setOnAction: /* @__PURE__ */ n(function(u) {
816
+ Ae = u, Oe.current = u;
817
+ }, "setOnAction"), setOnMessage: /* @__PURE__ */ n(function(u) {
818
+ se = u, oe.current = u;
819
+ }, "setOnMessage") };
820
+ return S;
821
+ }
822
+ n(Ur, "Te");
823
+ var zr = nr(null);
824
+ zr.Consumer;
825
+ const It = 6e4, Fr = 36e5, kt = "/auth/login";
826
+ function Jr(e) {
827
+ return Re(e) ? Math.floor(e / 1e3) : "";
828
+ }
829
+ n(Jr, "millisToSeconds");
830
+ function an({ timeout: e }) {
831
+ const t = ar(), { pathname: r } = sr(), { t: o } = Fe(), { confirmInfo: i } = $t(), { resetStorage: l } = ur(), [a, s] = Ye(!1), [c, f] = Ye(null), y = v(!1), { getRemainingTime: B, reset: G } = Ur({
832
+ timeout: e ?? Fr,
833
+ events: [
834
+ "mousemove",
835
+ "keydown",
836
+ "wheel",
837
+ "DOMMouseScroll",
838
+ "mousewheel",
839
+ "mousedown",
840
+ "touchstart",
841
+ "touchmove",
842
+ "MSPointerDown",
843
+ "MSPointerMove",
844
+ "visibilitychange"
845
+ ],
846
+ throttle: 500
847
+ });
848
+ w(() => {
849
+ const m = setInterval(() => {
850
+ f(B());
851
+ }, 500);
852
+ return () => {
853
+ clearInterval(m);
854
+ };
855
+ }, [B]);
856
+ const I = g(() => {
857
+ s(!1), G();
858
+ }, [G]), T = g(async () => {
859
+ y.current || (y.current = !0, f(null), s(!1), await i({
860
+ title: o("Message.로그인 페이지로 이동합니다.", {
861
+ defaultValue: "로그인 페이지로 이동합니다."
862
+ })
863
+ }), l(), t(kt));
864
+ }, [i, t, l, o]);
865
+ return w(() => {
866
+ if (r === kt) {
867
+ s(!1);
868
+ return;
869
+ }
870
+ if (!a && Re(c) && c > 0 && c <= It) {
871
+ s(!0);
872
+ return;
873
+ }
874
+ if (a && Re(c) && c > It) {
875
+ I();
876
+ return;
877
+ }
878
+ Re(c) && c <= 0 && T();
879
+ }, [a, c, r, I, T]), /* @__PURE__ */ M(
880
+ Je,
881
+ {
882
+ title: o("Title.로그인 연장", { defaultValue: "로그인 연장" }),
883
+ canConfirm: !1,
884
+ open: a,
885
+ onClose: /* @__PURE__ */ n(() => I(), "onClose"),
886
+ maxWidth: "xs",
887
+ fullWidth: !0,
888
+ children: /* @__PURE__ */ M(Ot, { variant: "h6", children: o("Message.자동 로그아웃 남은 시간 안내", {
889
+ defaultValue: "{{seconds}}초 후 로그인 페이지로 이동합니다.",
890
+ seconds: Jr(c)
891
+ }) })
892
+ }
893
+ );
894
+ }
895
+ n(an, "OwpAutoLogoutDialog");
896
+ function Nt(e) {
897
+ var t, r, o = "";
898
+ if (typeof e == "string" || typeof e == "number") o += e;
899
+ else if (typeof e == "object") if (Array.isArray(e)) {
900
+ var i = e.length;
901
+ for (t = 0; t < i; t++) e[t] && (r = Nt(e[t])) && (o && (o += " "), o += r);
902
+ } else for (r in e) e[r] && (o && (o += " "), o += r);
903
+ return o;
904
+ }
905
+ n(Nt, "r");
906
+ function qr() {
907
+ for (var e, t, r = 0, o = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Nt(e)) && (o && (o += " "), o += t);
908
+ return o;
909
+ }
910
+ n(qr, "clsx");
911
+ let ge = 0, Lt = "", St = "";
912
+ function sn(e) {
913
+ const { delay: t = 0, className: r } = e, [o, i] = Ye(!t);
914
+ return Kt(() => {
915
+ i(!0);
916
+ }, t), w(() => {
917
+ if (!o || typeof document > "u")
918
+ return;
919
+ const { documentElement: l, body: a } = document;
920
+ return ge === 0 && (Lt = l.style.overflowY, St = a.style.overflowY, l.style.overflowY = "hidden", a.style.overflowY = "hidden"), ge += 1, () => {
921
+ ge = Math.max(0, ge - 1), !(ge > 0) && (l.style.overflowY = Lt, a.style.overflowY = St);
922
+ };
923
+ }, [o]), /* @__PURE__ */ ye(
924
+ "div",
925
+ {
926
+ className: qr(
927
+ r,
928
+ "box-border flex h-full min-h-0 w-full flex-1 flex-col items-center justify-center p-24",
929
+ o ? "" : "hidden"
930
+ ),
931
+ children: [
932
+ /* @__PURE__ */ M(lr, { className: "-mb-16 text-md font-medium sm:text-xl", color: "text.secondary" }),
933
+ /* @__PURE__ */ ye(
934
+ cr,
935
+ {
936
+ id: "spinner",
937
+ sx: {
938
+ "& > div": {
939
+ backgroundColor: "palette.secondary.main"
940
+ }
941
+ },
942
+ children: [
943
+ /* @__PURE__ */ M("div", { className: "bounce1" }),
944
+ /* @__PURE__ */ M("div", { className: "bounce2" }),
945
+ /* @__PURE__ */ M("div", { className: "bounce3" })
946
+ ]
947
+ }
948
+ )
949
+ ]
950
+ }
951
+ );
952
+ }
953
+ n(sn, "OwpLoading");
954
+ const cn = /* @__PURE__ */ n(({ loading: e, title: t }) => {
955
+ const { t: r } = Fe(), o = t ?? r("Common.로딩 중...");
956
+ return /* @__PURE__ */ ye(
957
+ fr,
958
+ {
959
+ className: "flex flex-1 flex-col space-y-12",
960
+ sx: /* @__PURE__ */ n((i) => ({ color: "#fff", zIndex: i.zIndex.tooltip + 1 }), "sx"),
961
+ open: !!e,
962
+ children: [
963
+ /* @__PURE__ */ M(hr, { color: "inherit" }),
964
+ o && /* @__PURE__ */ M(Ot, { variant: "h6", children: o })
965
+ ]
966
+ }
967
+ );
968
+ }, "OwpPageLockLoading"), ln = dr(/* @__PURE__ */ Wt.jsx("path", {
969
+ 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"
970
+ }), "Close");
971
+ export {
972
+ ln as C,
973
+ sn as O,
974
+ cn as a,
975
+ an as b,
976
+ qr as c,
977
+ Je as d,
978
+ un as e,
979
+ Re as i
980
+ };
981
+ //# sourceMappingURL=Close-DvFvpcJW.js.map