@bwg-ui/core 1.1.16 → 1.1.17

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 (129) hide show
  1. package/dist/chunks/{BwgLargeUploader-Nx2-wiD8.js → BwgLargeUploader-CBwGaHh6.js} +69 -70
  2. package/dist/chunks/BwgLargeUploader-CBwGaHh6.js.map +1 -0
  3. package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs +3 -0
  4. package/dist/chunks/BwgLargeUploader-CVdp_rxx.cjs.map +1 -0
  5. package/dist/chunks/{SSOHandler-DrKRTb6h.js → SSOHandler-BfRH51hZ.js} +250 -249
  6. package/dist/chunks/SSOHandler-BfRH51hZ.js.map +1 -0
  7. package/dist/chunks/{SSOHandler-DZeC8Xgh.cjs → SSOHandler-DoidypM2.cjs} +43 -43
  8. package/dist/chunks/SSOHandler-DoidypM2.cjs.map +1 -0
  9. package/dist/chunks/{SearchBoxContext-Cpr9xa1S.cjs → SearchBoxContext-CNoEc4uu.cjs} +2 -2
  10. package/dist/chunks/{SearchBoxContext-Cpr9xa1S.cjs.map → SearchBoxContext-CNoEc4uu.cjs.map} +1 -1
  11. package/dist/chunks/{SearchBoxContext-BxtHF9BO.js → SearchBoxContext-CjdCL1e9.js} +10 -10
  12. package/dist/chunks/{SearchBoxContext-BxtHF9BO.js.map → SearchBoxContext-CjdCL1e9.js.map} +1 -1
  13. package/dist/chunks/{ViewContainer-BJQtASUE.cjs → ViewContainer-DUjKBgcl.cjs} +2 -2
  14. package/dist/chunks/{ViewContainer-BJQtASUE.cjs.map → ViewContainer-DUjKBgcl.cjs.map} +1 -1
  15. package/dist/chunks/{ViewContainer-D6ne-F5v.js → ViewContainer-Du3IzFYo.js} +7 -7
  16. package/dist/chunks/{ViewContainer-D6ne-F5v.js.map → ViewContainer-Du3IzFYo.js.map} +1 -1
  17. package/dist/chunks/apiUtils-DlsnkCO4.cjs +3 -0
  18. package/dist/chunks/apiUtils-DlsnkCO4.cjs.map +1 -0
  19. package/dist/chunks/apiUtils-IzgDPO-1.js +1277 -0
  20. package/dist/chunks/apiUtils-IzgDPO-1.js.map +1 -0
  21. package/dist/chunks/{codeStore-BzT5wSd9.js → codeStore-Dsjc4uXs.js} +2 -2
  22. package/dist/chunks/{codeStore-BzT5wSd9.js.map → codeStore-Dsjc4uXs.js.map} +1 -1
  23. package/dist/chunks/{codeStore-BGLhSpAM.cjs → codeStore-HfLmmkAL.cjs} +2 -2
  24. package/dist/chunks/{codeStore-BGLhSpAM.cjs.map → codeStore-HfLmmkAL.cjs.map} +1 -1
  25. package/dist/chunks/envUtils-C4Yv5Nfg.cjs +2 -0
  26. package/dist/chunks/{envUtils-CduTHoHu.cjs.map → envUtils-C4Yv5Nfg.cjs.map} +1 -1
  27. package/dist/chunks/envUtils-Ck_DT0s_.js +43 -0
  28. package/dist/chunks/{envUtils-C9Gf5aek.js.map → envUtils-Ck_DT0s_.js.map} +1 -1
  29. package/dist/chunks/{favoriteStore-C9utQ6sm.js → favoriteStore-C0o6Sj55.js} +6 -6
  30. package/dist/chunks/favoriteStore-C0o6Sj55.js.map +1 -0
  31. package/dist/chunks/{favoriteStore-3YceyayF.cjs → favoriteStore-DOz2rAJu.cjs} +2 -2
  32. package/dist/chunks/favoriteStore-DOz2rAJu.cjs.map +1 -0
  33. package/dist/chunks/popupStore-Cm5utmtA.cjs +2 -0
  34. package/dist/chunks/popupStore-Cm5utmtA.cjs.map +1 -0
  35. package/dist/chunks/popupStore-D6b6b5-T.js +92 -0
  36. package/dist/chunks/popupStore-D6b6b5-T.js.map +1 -0
  37. package/dist/chunks/usePopup-BG24CocH.cjs +2 -0
  38. package/dist/chunks/usePopup-BG24CocH.cjs.map +1 -0
  39. package/dist/chunks/usePopup-Dm-UyUbV.js +109 -0
  40. package/dist/chunks/usePopup-Dm-UyUbV.js.map +1 -0
  41. package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
  42. package/dist/components/common/BwgGrid.d.ts +5 -1
  43. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  44. package/dist/components/common/index.cjs +1 -1
  45. package/dist/components/common/index.js +1 -1
  46. package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
  47. package/dist/components/core/BwgLargeUploader.d.ts.map +1 -1
  48. package/dist/components/core/BwgMaskedInput.d.ts +1 -1
  49. package/dist/components/core/BwgMaskedInput.d.ts.map +1 -1
  50. package/dist/components/core/BwgMaskedPicker.d.ts +1 -1
  51. package/dist/components/core/BwgMaskedPicker.d.ts.map +1 -1
  52. package/dist/components/core/BwgNumber.d.ts +0 -1
  53. package/dist/components/core/BwgNumber.d.ts.map +1 -1
  54. package/dist/components/core/BwgUploader.d.ts.map +1 -1
  55. package/dist/components/core/index.cjs +1 -1
  56. package/dist/components/core/index.js +1 -1
  57. package/dist/components/layout/index.cjs +1 -1
  58. package/dist/components/layout/index.js +1 -1
  59. package/dist/index.cjs +1 -1
  60. package/dist/index.js +218 -314
  61. package/dist/index.js.map +1 -1
  62. package/dist/provider/contexts/index.d.ts +0 -1
  63. package/dist/provider/contexts/index.d.ts.map +1 -1
  64. package/dist/provider/index.cjs +1 -1
  65. package/dist/provider/index.js +24 -31
  66. package/dist/stores/favoriteStore.d.ts.map +1 -1
  67. package/dist/stores/index.cjs +1 -1
  68. package/dist/stores/index.js +8 -8
  69. package/dist/utils/commonUtils.d.ts +236 -37
  70. package/dist/utils/commonUtils.d.ts.map +1 -1
  71. package/dist/utils/{FileUtils.d.ts → fileUtils.d.ts} +9 -1
  72. package/dist/utils/fileUtils.d.ts.map +1 -0
  73. package/dist/utils/index.cjs +1 -1
  74. package/dist/utils/index.cjs.map +1 -1
  75. package/dist/utils/index.d.ts +381 -15
  76. package/dist/utils/index.d.ts.map +1 -1
  77. package/dist/utils/index.js +215 -208
  78. package/dist/utils/index.js.map +1 -1
  79. package/dist/utils/notificationUtils.d.ts +5 -5
  80. package/dist/utils/notificationUtils.d.ts.map +1 -1
  81. package/package.json +2 -1
  82. package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs +0 -3
  83. package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs.map +0 -1
  84. package/dist/chunks/BwgLargeUploader-Nx2-wiD8.js.map +0 -1
  85. package/dist/chunks/FileUtils-Bbz3AvQn.js +0 -141
  86. package/dist/chunks/FileUtils-Bbz3AvQn.js.map +0 -1
  87. package/dist/chunks/FileUtils-D73GVmB8.cjs +0 -2
  88. package/dist/chunks/FileUtils-D73GVmB8.cjs.map +0 -1
  89. package/dist/chunks/SSOHandler-DZeC8Xgh.cjs.map +0 -1
  90. package/dist/chunks/SSOHandler-DrKRTb6h.js.map +0 -1
  91. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs +0 -2
  92. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.map +0 -1
  93. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +0 -9
  94. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  95. package/dist/chunks/apiUtils-C45AWfu-.js +0 -957
  96. package/dist/chunks/apiUtils-C45AWfu-.js.map +0 -1
  97. package/dist/chunks/apiUtils-Cbg6NQLv.cjs +0 -4
  98. package/dist/chunks/apiUtils-Cbg6NQLv.cjs.map +0 -1
  99. package/dist/chunks/commonUtils-BH6QwGUb.cjs +0 -2
  100. package/dist/chunks/commonUtils-BH6QwGUb.cjs.map +0 -1
  101. package/dist/chunks/commonUtils-Bb16Yqjk.js +0 -629
  102. package/dist/chunks/commonUtils-Bb16Yqjk.js.map +0 -1
  103. package/dist/chunks/envUtils-C9Gf5aek.js +0 -30
  104. package/dist/chunks/envUtils-CduTHoHu.cjs +0 -2
  105. package/dist/chunks/favoriteStore-3YceyayF.cjs.map +0 -1
  106. package/dist/chunks/favoriteStore-C9utQ6sm.js.map +0 -1
  107. package/dist/chunks/popupStore-DmFbkkjd.js +0 -98
  108. package/dist/chunks/popupStore-DmFbkkjd.js.map +0 -1
  109. package/dist/chunks/popupStore-DnWLaQ70.cjs +0 -2
  110. package/dist/chunks/popupStore-DnWLaQ70.cjs.map +0 -1
  111. package/dist/chunks/usePopup-C8FrbrDD.cjs +0 -2
  112. package/dist/chunks/usePopup-C8FrbrDD.cjs.map +0 -1
  113. package/dist/chunks/usePopup-pfh-ajfP.js +0 -241
  114. package/dist/chunks/usePopup-pfh-ajfP.js.map +0 -1
  115. package/dist/provider/contexts/UtilsContext.d.ts +0 -195
  116. package/dist/provider/contexts/UtilsContext.d.ts.map +0 -1
  117. package/dist/utils/FileUtils.d.ts.map +0 -1
  118. package/dist/utils/arrayUtils.d.ts +0 -35
  119. package/dist/utils/arrayUtils.d.ts.map +0 -1
  120. package/dist/utils/cookieUtils.d.ts +0 -5
  121. package/dist/utils/cookieUtils.d.ts.map +0 -1
  122. package/dist/utils/dateUtils.d.ts +0 -27
  123. package/dist/utils/dateUtils.d.ts.map +0 -1
  124. package/dist/utils/imageUtils.d.ts +0 -32
  125. package/dist/utils/imageUtils.d.ts.map +0 -1
  126. package/dist/utils/objectUtils.d.ts +0 -28
  127. package/dist/utils/objectUtils.d.ts.map +0 -1
  128. package/dist/utils/stringUtils.d.ts +0 -143
  129. package/dist/utils/stringUtils.d.ts.map +0 -1
@@ -1,629 +0,0 @@
1
- import i from "dayjs";
2
- import { g as N } from "./_commonjsHelpers-DaMA6jEr.js";
3
- var E = { exports: {} }, Z = E.exports, U;
4
- function V() {
5
- return U || (U = 1, (function(t, e) {
6
- (function(r, n) {
7
- t.exports = n(i);
8
- })(Z, (function(r) {
9
- function n(a) {
10
- return a && typeof a == "object" && "default" in a ? a : { default: a };
11
- }
12
- var o = n(r), c = { name: "ko", weekdays: "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"), weekdaysShort: "일_월_화_수_목_금_토".split("_"), weekdaysMin: "일_월_화_수_목_금_토".split("_"), months: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), monthsShort: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), ordinal: function(a) {
13
- return a + "일";
14
- }, formats: { LT: "A h:mm", LTS: "A h:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY년 MMMM D일", LLL: "YYYY년 MMMM D일 A h:mm", LLLL: "YYYY년 MMMM D일 dddd A h:mm", l: "YYYY.MM.DD.", ll: "YYYY년 MMMM D일", lll: "YYYY년 MMMM D일 A h:mm", llll: "YYYY년 MMMM D일 dddd A h:mm" }, meridiem: function(a) {
15
- return a < 12 ? "오전" : "오후";
16
- }, relativeTime: { future: "%s 후", past: "%s 전", s: "몇 초", m: "1분", mm: "%d분", h: "한 시간", hh: "%d시간", d: "하루", dd: "%d일", M: "한 달", MM: "%d달", y: "일 년", yy: "%d년" } };
17
- return o.default.locale(c, null, !0), c;
18
- }));
19
- })(E)), E.exports;
20
- }
21
- V();
22
- var A = { exports: {} }, J = A.exports, I;
23
- function Q() {
24
- return I || (I = 1, (function(t, e) {
25
- (function(r, n) {
26
- t.exports = n();
27
- })(J, (function() {
28
- return function(r, n, o) {
29
- r = r || {};
30
- var c = n.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
31
- function h(y, $, _, f) {
32
- return c.fromToBase(y, $, _, f);
33
- }
34
- o.en.relativeTime = a, c.fromToBase = function(y, $, _, f, M) {
35
- for (var l, s, u, p = _.$locale().relativeTime || a, g = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], v = g.length, S = 0; S < v; S += 1) {
36
- var d = g[S];
37
- d.d && (l = f ? o(y).diff(_, d.d, !0) : _.diff(y, d.d, !0));
38
- var O = (r.rounding || Math.round)(Math.abs(l));
39
- if (u = l > 0, O <= d.r || !d.r) {
40
- O <= 1 && S > 0 && (d = g[S - 1]);
41
- var Y = p[d.l];
42
- M && (O = M("" + O)), s = typeof Y == "string" ? Y.replace("%d", O) : Y(O, $, d.l, u);
43
- break;
44
- }
45
- }
46
- if ($) return s;
47
- var D = u ? p.future : p.past;
48
- return typeof D == "function" ? D(s) : D.replace("%s", s);
49
- }, c.to = function(y, $) {
50
- return h(y, $, this, !0);
51
- }, c.from = function(y, $) {
52
- return h(y, $, this);
53
- };
54
- var m = function(y) {
55
- return y.$u ? o.utc() : o();
56
- };
57
- c.toNow = function(y) {
58
- return this.to(m(this), y);
59
- }, c.fromNow = function(y) {
60
- return this.from(m(this), y);
61
- };
62
- };
63
- }));
64
- })(A)), A.exports;
65
- }
66
- var G = Q();
67
- const j = /* @__PURE__ */ N(G);
68
- var L = { exports: {} }, X = L.exports, R;
69
- function tt() {
70
- return R || (R = 1, (function(t, e) {
71
- (function(r, n) {
72
- t.exports = n();
73
- })(X, (function() {
74
- var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
75
- return function(c, a, h) {
76
- var m = a.prototype;
77
- h.utc = function(s) {
78
- var u = { date: s, utc: !0, args: arguments };
79
- return new a(u);
80
- }, m.utc = function(s) {
81
- var u = h(this.toDate(), { locale: this.$L, utc: !0 });
82
- return s ? u.add(this.utcOffset(), r) : u;
83
- }, m.local = function() {
84
- return h(this.toDate(), { locale: this.$L, utc: !1 });
85
- };
86
- var y = m.parse;
87
- m.parse = function(s) {
88
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), y.call(this, s);
89
- };
90
- var $ = m.init;
91
- m.init = function() {
92
- if (this.$u) {
93
- var s = this.$d;
94
- this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
95
- } else $.call(this);
96
- };
97
- var _ = m.utcOffset;
98
- m.utcOffset = function(s, u) {
99
- var p = this.$utils().u;
100
- if (p(s)) return this.$u ? 0 : p(this.$offset) ? _.call(this) : this.$offset;
101
- if (typeof s == "string" && (s = (function(d) {
102
- d === void 0 && (d = "");
103
- var O = d.match(n);
104
- if (!O) return null;
105
- var Y = ("" + O[0]).match(o) || ["-", 0, 0], D = Y[0], w = 60 * +Y[1] + +Y[2];
106
- return w === 0 ? 0 : D === "+" ? w : -w;
107
- })(s), s === null)) return this;
108
- var g = Math.abs(s) <= 16 ? 60 * s : s;
109
- if (g === 0) return this.utc(u);
110
- var v = this.clone();
111
- if (u) return v.$offset = g, v.$u = !1, v;
112
- var S = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
113
- return (v = this.local().add(g + S, r)).$offset = g, v.$x.$localOffset = S, v;
114
- };
115
- var f = m.format;
116
- m.format = function(s) {
117
- var u = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
118
- return f.call(this, u);
119
- }, m.valueOf = function() {
120
- var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
121
- return this.$d.valueOf() - 6e4 * s;
122
- }, m.isUTC = function() {
123
- return !!this.$u;
124
- }, m.toISOString = function() {
125
- return this.toDate().toISOString();
126
- }, m.toString = function() {
127
- return this.toDate().toUTCString();
128
- };
129
- var M = m.toDate;
130
- m.toDate = function(s) {
131
- return s === "s" && this.$offset ? h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
132
- };
133
- var l = m.diff;
134
- m.diff = function(s, u, p) {
135
- if (s && this.$u === s.$u) return l.call(this, s, u, p);
136
- var g = this.local(), v = h(s).local();
137
- return l.call(g, v, u, p);
138
- };
139
- };
140
- }));
141
- })(L)), L.exports;
142
- }
143
- var et = tt();
144
- const rt = /* @__PURE__ */ N(et);
145
- var b = { exports: {} }, nt = b.exports, H;
146
- function ot() {
147
- return H || (H = 1, (function(t, e) {
148
- (function(r, n) {
149
- t.exports = n();
150
- })(nt, (function() {
151
- var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
152
- return function(o, c, a) {
153
- var h, m = function(f, M, l) {
154
- l === void 0 && (l = {});
155
- var s = new Date(f), u = (function(p, g) {
156
- g === void 0 && (g = {});
157
- var v = g.timeZoneName || "short", S = p + "|" + v, d = n[S];
158
- return d || (d = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: p, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: v }), n[S] = d), d;
159
- })(M, l);
160
- return u.formatToParts(s);
161
- }, y = function(f, M) {
162
- for (var l = m(f, M), s = [], u = 0; u < l.length; u += 1) {
163
- var p = l[u], g = p.type, v = p.value, S = r[g];
164
- S >= 0 && (s[S] = parseInt(v, 10));
165
- }
166
- var d = s[3], O = d === 24 ? 0 : d, Y = s[0] + "-" + s[1] + "-" + s[2] + " " + O + ":" + s[4] + ":" + s[5] + ":000", D = +f;
167
- return (a.utc(Y).valueOf() - (D -= D % 1e3)) / 6e4;
168
- }, $ = c.prototype;
169
- $.tz = function(f, M) {
170
- f === void 0 && (f = h);
171
- var l, s = this.utcOffset(), u = this.toDate(), p = u.toLocaleString("en-US", { timeZone: f }), g = Math.round((u - new Date(p)) / 1e3 / 60), v = 15 * -Math.round(u.getTimezoneOffset() / 15) - g;
172
- if (!Number(v)) l = this.utcOffset(0, M);
173
- else if (l = a(p, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(v, !0), M) {
174
- var S = l.utcOffset();
175
- l = l.add(s - S, "minute");
176
- }
177
- return l.$x.$timezone = f, l;
178
- }, $.offsetName = function(f) {
179
- var M = this.$x.$timezone || a.tz.guess(), l = m(this.valueOf(), M, { timeZoneName: f }).find((function(s) {
180
- return s.type.toLowerCase() === "timezonename";
181
- }));
182
- return l && l.value;
183
- };
184
- var _ = $.startOf;
185
- $.startOf = function(f, M) {
186
- if (!this.$x || !this.$x.$timezone) return _.call(this, f, M);
187
- var l = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
188
- return _.call(l, f, M).tz(this.$x.$timezone, !0);
189
- }, a.tz = function(f, M, l) {
190
- var s = l && M, u = l || M || h, p = y(+a(), u);
191
- if (typeof f != "string") return a(f).tz(u);
192
- var g = (function(O, Y, D) {
193
- var w = O - 60 * Y * 1e3, T = y(w, D);
194
- if (Y === T) return [w, Y];
195
- var z = y(w -= 60 * (T - Y) * 1e3, D);
196
- return T === z ? [w, T] : [O - 60 * Math.min(T, z) * 1e3, Math.max(T, z)];
197
- })(a.utc(f, s).valueOf(), p, u), v = g[0], S = g[1], d = a(v).utcOffset(S);
198
- return d.$x.$timezone = u, d;
199
- }, a.tz.guess = function() {
200
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
201
- }, a.tz.setDefault = function(f) {
202
- h = f;
203
- };
204
- };
205
- }));
206
- })(b)), b.exports;
207
- }
208
- var st = ot();
209
- const at = /* @__PURE__ */ N(st);
210
- i.extend(j);
211
- i.extend(rt);
212
- i.extend(at);
213
- i.locale("ko");
214
- const it = () => i(), ct = (t = "YYYY-MM-DD") => i().format(t), ut = (t, e = "YYYY-MM-DD") => i(t).format(e), lt = (t, e = "YYYY-MM-DD HH:mm:ss") => i(t).tz("Asia/Seoul").format(e), ft = (t) => i(t).fromNow(), mt = (t, e, r = "day") => i(t).diff(i(e), r), dt = (t) => i(t).isSame(i(), "day"), ht = (t) => i(t).isSame(i(), "week"), gt = (t) => i(t).isSame(i(), "month"), yt = (t = i()) => i(t).startOf("week"), pt = (t = i()) => i(t).endOf("week"), vt = (t = i()) => i(t).startOf("month"), Mt = (t = i()) => i(t).endOf("month"), St = (t, e) => {
215
- const r = [];
216
- let n = i(t);
217
- const o = i(e);
218
- for (; n.isBefore(o) || n.isSame(o, "day"); )
219
- r.push(n), n = n.add(1, "day");
220
- return r;
221
- }, $t = (t, e) => [i(t), i(e)], Ot = (t) => i(t).isValid(), Yt = (t) => i().diff(i(t), "year"), K = (t) => {
222
- const e = i(t).day();
223
- return e === 0 || e === 6;
224
- }, Dt = (t) => !K(t), _t = (t) => i(t).format("YYYY년 MM월 DD일"), wt = (t) => i(t).format("HH시 mm분"), Tt = (t) => i(t).format("YYYY년 MM월 DD일 HH시 mm분"), Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
225
- __proto__: null,
226
- calculateAge: Yt,
227
- formatDate: ut,
228
- formatDateKST: lt,
229
- formatDateKorean: _t,
230
- formatDateTimeKorean: Tt,
231
- formatTimeKorean: wt,
232
- getCurrentDate: it,
233
- getCurrentDateString: ct,
234
- getDateDiff: mt,
235
- getDateRange: St,
236
- getDateRangeForPicker: $t,
237
- getMonthEnd: Mt,
238
- getMonthStart: vt,
239
- getRelativeTime: ft,
240
- getWeekEnd: pt,
241
- getWeekStart: yt,
242
- isThisMonth: gt,
243
- isThisWeek: ht,
244
- isToday: dt,
245
- isValidDate: Ot,
246
- isWeekday: Dt,
247
- isWeekend: K
248
- }, Symbol.toStringTag, { value: "Module" })), q = (t) => Object.keys(t).length === 0, kt = (t) => !q(t), k = (t) => {
249
- if (t === null || typeof t != "object") return t;
250
- if (t instanceof Date) return new Date(t.getTime());
251
- if (t instanceof Array) return t.map((e) => k(e));
252
- if (typeof t == "object") {
253
- const e = {};
254
- for (const r in t)
255
- t.hasOwnProperty(r) && (e[r] = k(t[r]));
256
- return e;
257
- }
258
- return t;
259
- }, xt = (t, e) => {
260
- const r = {};
261
- return e.forEach((n) => {
262
- n in t && (r[n] = t[n]);
263
- }), r;
264
- }, Et = (t, e) => {
265
- const r = { ...t };
266
- return e.forEach((n) => {
267
- delete r[n];
268
- }), r;
269
- }, At = (t) => Object.values(t), Lt = (t) => Object.keys(t), bt = (t) => Object.entries(t), B = (t, ...e) => {
270
- const r = k(t);
271
- return e.forEach((n) => {
272
- n && Object.keys(n).forEach((o) => {
273
- const c = o, a = n[c], h = r[c];
274
- a && typeof a == "object" && !Array.isArray(a) && h && typeof h == "object" && !Array.isArray(h) ? r[c] = B(h, a) : r[c] = a;
275
- });
276
- }), r;
277
- }, zt = (t) => {
278
- const e = {};
279
- return Object.keys(t).forEach((r) => {
280
- const n = t[r];
281
- n != null && (e[r] = n);
282
- }), e;
283
- }, Nt = (t) => {
284
- const e = {};
285
- return Object.keys(t).forEach((r) => {
286
- const n = t[r];
287
- n !== "" && (e[r] = n);
288
- }), e;
289
- }, Ct = (t) => {
290
- const e = new URLSearchParams();
291
- return Object.keys(t).forEach((r) => {
292
- const n = t[r];
293
- n != null && e.append(r, String(n));
294
- }), e.toString();
295
- }, Ut = (t) => {
296
- const e = new URLSearchParams(t), r = {};
297
- return e.forEach((n, o) => {
298
- r[o] = n;
299
- }), r;
300
- }, It = (t, e, r) => {
301
- const n = e.split(".");
302
- let o = t;
303
- for (const c of n) {
304
- if (o == null)
305
- return r;
306
- o = o[c];
307
- }
308
- return o !== void 0 ? o : r;
309
- }, Rt = (t, e, r) => {
310
- const n = e.split("."), o = k(t);
311
- let c = o;
312
- for (let a = 0; a < n.length - 1; a++) {
313
- const h = n[a];
314
- (!(h in c) || typeof c[h] != "object") && (c[h] = {}), c = c[h];
315
- }
316
- return c[n[n.length - 1]] = r, o;
317
- }, F = (t, e = "") => {
318
- const r = [];
319
- for (const n in t)
320
- if (t.hasOwnProperty(n)) {
321
- const o = e ? `${e}.${n}` : n;
322
- r.push(o), t[n] && typeof t[n] == "object" && !Array.isArray(t[n]) && r.push(...F(t[n], o));
323
- }
324
- return r;
325
- }, P = (t, e = "") => {
326
- const r = {};
327
- for (const n in t)
328
- if (t.hasOwnProperty(n)) {
329
- const o = e ? `${e}.${n}` : n;
330
- t[n] && typeof t[n] == "object" && !Array.isArray(t[n]) ? Object.assign(r, P(t[n], o)) : r[o] = t[n];
331
- }
332
- return r;
333
- }, W = (t, e) => {
334
- if (t === e) return !0;
335
- if (t == null || e == null || typeof t != typeof e) return !1;
336
- if (typeof t != "object") return t === e;
337
- const r = Object.keys(t), n = Object.keys(e);
338
- if (r.length !== n.length) return !1;
339
- for (const o of r)
340
- if (!n.includes(o) || !W(t[o], e[o])) return !1;
341
- return !0;
342
- }, Ht = (t) => Object.keys(t).length, Kt = (t, e) => Object.prototype.hasOwnProperty.call(t, e), qt = (t, e) => Object.keys(t).every(
343
- (r) => e(t[r], r)
344
- ), Bt = (t, e) => Object.keys(t).some(
345
- (r) => e(t[r], r)
346
- ), Ft = (t, e) => {
347
- const r = {};
348
- return Object.keys(t).forEach((n) => {
349
- const o = n;
350
- e(t[o], o) && (r[o] = t[o]);
351
- }), r;
352
- }, Pt = (t, e) => {
353
- const r = {};
354
- return Object.keys(t).forEach((n) => {
355
- const o = n;
356
- r[o] = e(t[o], o);
357
- }), r;
358
- }, jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
359
- __proto__: null,
360
- deepClone: k,
361
- entries: bt,
362
- every: qt,
363
- filter: Ft,
364
- flatten: P,
365
- fromQueryString: Ut,
366
- get: It,
367
- getAllKeys: F,
368
- has: Kt,
369
- isEmptyObject: q,
370
- isEqual: W,
371
- isNotEmptyObject: kt,
372
- keys: Lt,
373
- map: Pt,
374
- merge: B,
375
- omit: Et,
376
- pick: xt,
377
- removeEmptyStrings: Nt,
378
- removeNullValues: zt,
379
- set: Rt,
380
- size: Ht,
381
- some: Bt,
382
- toQueryString: Ct,
383
- values: At
384
- }, Symbol.toStringTag, { value: "Module" })), x = (t) => !t || t.length === 0, Xt = (t) => !x(t), Wt = (t) => [...new Set(t)], te = (t, e) => {
385
- const r = /* @__PURE__ */ new Set();
386
- return t.filter((n) => {
387
- const o = n[e];
388
- return r.has(o) ? !1 : (r.add(o), !0);
389
- });
390
- }, ee = (t, e) => {
391
- const r = [];
392
- for (let n = 0; n < t.length; n += e)
393
- r.push(t.slice(n, n + e));
394
- return r;
395
- }, Zt = (t) => {
396
- const e = [...t];
397
- for (let r = e.length - 1; r > 0; r--) {
398
- const n = Math.floor(Math.random() * (r + 1));
399
- [e[r], e[n]] = [e[n], e[r]];
400
- }
401
- return e;
402
- }, re = (t) => {
403
- if (!x(t))
404
- return t[Math.floor(Math.random() * t.length)];
405
- }, ne = (t, e) => Zt(t).slice(0, Math.min(e, t.length)), oe = (t, e = !0) => [...t].sort((r, n) => e ? r - n : n - r), se = (t, e, r = !0) => [...t].sort((n, o) => {
406
- const c = n[e], a = o[e];
407
- return c < a ? r ? -1 : 1 : c > a ? r ? 1 : -1 : 0;
408
- }), ae = (t) => {
409
- if (!x(t))
410
- return Math.max(...t);
411
- }, ie = (t) => {
412
- if (!x(t))
413
- return Math.min(...t);
414
- }, ce = (t) => {
415
- if (!x(t))
416
- return t.reduce((e, r) => e + r, 0) / t.length;
417
- }, ue = (t) => t.reduce((e, r) => e + r, 0), le = (t, e) => t.filter(e).length, fe = (t, e) => {
418
- for (let r = t.length - 1; r >= 0; r--)
419
- if (t[r] === e) return r;
420
- return -1;
421
- }, me = (t, e) => t.find(e), de = (t, e) => {
422
- for (let r = t.length - 1; r >= 0; r--)
423
- if (e(t[r])) return t[r];
424
- }, he = (t, e) => t.filter((r) => r !== e), ge = (t, e) => e < 0 || e >= t.length ? t : [...t.slice(0, e), ...t.slice(e + 1)], ye = (t, e) => t.filter((r) => !e(r)), pe = (t, e) => t.includes(e), ve = (t, e) => t.filter((r) => e.includes(r)), Me = (t, e) => Wt([...t, ...e]), Se = (t, e) => t.filter((r) => !e.includes(r)), $e = (t, e) => t.reduce((r, n) => {
425
- const o = e(n);
426
- return r[o] || (r[o] = []), r[o].push(n), r;
427
- }, {}), Oe = (t) => t.flat(), Vt = (t) => t.reduce((e, r) => e.concat(Array.isArray(r) ? Vt(r) : r), []), Ye = (t, e, r) => {
428
- const n = r ?? t.length;
429
- return t.slice(e, n);
430
- }, De = (t) => {
431
- const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
432
- return t.forEach((n) => {
433
- e.has(n) ? r.add(n) : e.add(n);
434
- }), Array.from(r);
435
- }, _e = (t) => typeof t == "string", we = (t) => typeof t == "number" && !isNaN(t), Te = (t) => typeof t == "boolean", ke = (t) => typeof t == "function", xe = (t) => t !== null && typeof t == "object", Ee = (t) => Array.isArray(t), Ae = (t) => t === null, Le = (t) => t === void 0, be = (t) => t == null, ze = (t, e, r) => Math.min(Math.max(t, e), r), Ne = (t, e = 0) => Math.round(t * Math.pow(10, e)) / Math.pow(10, e), Ce = (t, e = "ko-KR") => new Intl.NumberFormat(e).format(t), Ue = (t, e = "KRW", r = "ko-KR") => new Intl.NumberFormat(r, {
436
- style: "currency",
437
- currency: e
438
- }).format(t), Ie = (t, e) => Math.random() * (e - t) + t, Re = (t, e) => Math.floor(Math.random() * (e - t + 1)) + t, He = (t) => {
439
- if (t.length !== 0)
440
- return t[Math.floor(Math.random() * t.length)];
441
- }, Ke = (t, e) => {
442
- let r;
443
- return (...n) => {
444
- clearTimeout(r), r = setTimeout(() => t(...n), e);
445
- };
446
- }, qe = (t, e) => {
447
- let r = 0;
448
- return (...n) => {
449
- const o = Date.now();
450
- o - r >= e && (r = o, t(...n));
451
- };
452
- }, Be = (t) => new Promise((e) => setTimeout(e, t)), Fe = (t, e) => {
453
- try {
454
- localStorage.setItem(t, JSON.stringify(e));
455
- } catch (r) {
456
- console.error("Error saving to localStorage:", r);
457
- }
458
- }, Pe = (t, e) => {
459
- try {
460
- const r = localStorage.getItem(t);
461
- return r ? JSON.parse(r) : e || null;
462
- } catch (r) {
463
- return console.error("Error reading from localStorage:", r), e || null;
464
- }
465
- }, We = (t) => {
466
- try {
467
- localStorage.removeItem(t);
468
- } catch (e) {
469
- console.error("Error removing from localStorage:", e);
470
- }
471
- }, Ze = () => {
472
- try {
473
- localStorage.clear();
474
- } catch (t) {
475
- console.error("Error clearing localStorage:", t);
476
- }
477
- }, Ve = (t, e) => {
478
- try {
479
- sessionStorage.setItem(t, JSON.stringify(e));
480
- } catch (r) {
481
- console.error("Error saving to sessionStorage:", r);
482
- }
483
- }, Je = (t, e) => {
484
- try {
485
- const r = sessionStorage.getItem(t);
486
- return r ? JSON.parse(r) : e || null;
487
- } catch (r) {
488
- return console.error("Error reading from sessionStorage:", r), e || null;
489
- }
490
- }, Qe = (t) => {
491
- try {
492
- sessionStorage.removeItem(t);
493
- } catch (e) {
494
- console.error("Error removing from sessionStorage:", e);
495
- }
496
- }, Ge = () => {
497
- try {
498
- sessionStorage.clear();
499
- } catch (t) {
500
- console.error("Error clearing sessionStorage:", t);
501
- }
502
- }, je = () => "#" + Math.floor(Math.random() * 16777215).toString(16), Xe = async (t) => {
503
- try {
504
- return await navigator.clipboard.writeText(t), !0;
505
- } catch (e) {
506
- return console.error("Error copying to clipboard:", e), !1;
507
- }
508
- }, tr = (t, e, r = "text/plain") => {
509
- const n = new Blob([t], { type: r }), o = URL.createObjectURL(n), c = document.createElement("a");
510
- c.href = o, c.download = e, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(o);
511
- }, er = () => {
512
- window.scrollTo({ top: 0, behavior: "smooth" });
513
- }, rr = (t) => {
514
- const e = document.getElementById(t);
515
- e && e.scrollIntoView({ behavior: "smooth" });
516
- }, nr = (t) => {
517
- const e = t.getBoundingClientRect();
518
- return e.top >= 0 && e.left >= 0 && e.bottom <= (window.innerHeight || document.documentElement.clientHeight) && e.right <= (window.innerWidth || document.documentElement.clientWidth);
519
- }, C = () => {
520
- const t = window.innerWidth;
521
- return t < 768 ? "mobile" : t < 1024 ? "tablet" : "desktop";
522
- }, or = () => C() === "mobile", sr = () => C() === "tablet", ar = () => C() === "desktop";
523
- export {
524
- fe as $,
525
- Pt as A,
526
- B,
527
- Et as C,
528
- xt as D,
529
- Nt as E,
530
- zt as F,
531
- Rt as G,
532
- Ht as H,
533
- At as I,
534
- ee as J,
535
- Se as K,
536
- De as L,
537
- $e as M,
538
- ve as N,
539
- Zt as O,
540
- se as P,
541
- Me as Q,
542
- Wt as R,
543
- te as S,
544
- re as T,
545
- ne as U,
546
- oe as V,
547
- ae as W,
548
- ie as X,
549
- ce as Y,
550
- ue as Z,
551
- le as _,
552
- lt as a,
553
- me as a0,
554
- de as a1,
555
- he as a2,
556
- ge as a3,
557
- ye as a4,
558
- pe as a5,
559
- Oe as a6,
560
- Vt as a7,
561
- Ye as a8,
562
- ze as a9,
563
- We as aA,
564
- Qe as aB,
565
- Ne as aC,
566
- rr as aD,
567
- er as aE,
568
- Fe as aF,
569
- Ve as aG,
570
- qe as aH,
571
- Ue as aI,
572
- Ce as aJ,
573
- jt as aK,
574
- Xt as aL,
575
- x as aM,
576
- Gt as aN,
577
- Ze as aa,
578
- Ge as ab,
579
- Xe as ac,
580
- Ke as ad,
581
- Be as ae,
582
- tr as af,
583
- je as ag,
584
- C as ah,
585
- Pe as ai,
586
- Je as aj,
587
- Ee as ak,
588
- Te as al,
589
- ar as am,
590
- ke as an,
591
- nr as ao,
592
- or as ap,
593
- Ae as aq,
594
- be as ar,
595
- we as as,
596
- xe as at,
597
- _e as au,
598
- sr as av,
599
- Le as aw,
600
- Ie as ax,
601
- He as ay,
602
- Re as az,
603
- _t as b,
604
- Tt as c,
605
- wt as d,
606
- ct as e,
607
- ut as f,
608
- it as g,
609
- mt as h,
610
- St as i,
611
- $t as j,
612
- Mt as k,
613
- vt as l,
614
- ft as m,
615
- pt as n,
616
- yt as o,
617
- gt as p,
618
- ht as q,
619
- dt as r,
620
- Ot as s,
621
- Yt as t,
622
- k as u,
623
- bt as v,
624
- F as w,
625
- Kt as x,
626
- W as y,
627
- Lt as z
628
- };
629
- //# sourceMappingURL=commonUtils-Bb16Yqjk.js.map