@idbrnd/design-system 1.3.3 → 1.4.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.
package/dist/index.js CHANGED
@@ -1,856 +1,856 @@
1
- import { jsx as n, jsxs as b, Fragment as ge } from "react/jsx-runtime";
2
- import { Children as Be, useMemo as ne, useId as Ee, useState as Z, useRef as G, useEffect as ie, useCallback as H, useLayoutEffect as Ye } from "react";
3
- import Xe, { createPortal as Ae } from "react-dom";
4
- import './style.css';const Ge = "_clipWrapper_3mxht_1", Je = "_clip_3mxht_1", Qe = "_sync_3mxht_59", en = "_syncDot_3mxht_65", nn = "_fade_3mxht_72", tn = "_fadeBar_3mxht_77", re = {
5
- clipWrapper: Ge,
6
- clip: Je,
7
- sync: Qe,
8
- syncDot: en,
9
- fade: nn,
10
- fadeBar: tn
11
- }, He = "var(--semantic-before-main)";
12
- function Yl() {
13
- return /* @__PURE__ */ n(on, {});
1
+ import { jsx as t, jsxs as x, Fragment as ue } from "react/jsx-runtime";
2
+ import { Children as Se, useMemo as ae, useId as Me, useState as O, useRef as W, useEffect as ce, useCallback as T, useLayoutEffect as Ke, createElement as at } from "react";
3
+ import ct, { createPortal as je } from "react-dom";
4
+ import './style.css';const dt = "_clipWrapper_3mxht_1", _t = "_clip_3mxht_1", ut = "_sync_3mxht_59", pt = "_syncDot_3mxht_65", mt = "_fade_3mxht_72", ft = "_fadeBar_3mxht_77", pe = {
5
+ clipWrapper: dt,
6
+ clip: _t,
7
+ sync: ut,
8
+ syncDot: pt,
9
+ fade: mt,
10
+ fadeBar: ft
11
+ }, Ze = "var(--semantic-before-main)";
12
+ function Ll() {
13
+ return /* @__PURE__ */ t(ht, {});
14
14
  }
15
- function on({ color: e = He, size: t = 10 }) {
16
- const o = Math.max(2, Math.round(t)), s = Math.max(2, Math.round(t * 0.5));
15
+ function ht({ color: e = Ze, size: n = 10 }) {
16
+ const o = Math.max(2, Math.round(n)), s = Math.max(2, Math.round(n * 0.5));
17
17
  return (
18
18
  // 점 3개를 가로로 배치하는 컨테이너
19
- /* @__PURE__ */ n("span", { className: re.sync, style: { color: e, gap: s }, children: Array.from({ length: 3 }).map((l, _) => /* @__PURE__ */ n(
19
+ /* @__PURE__ */ t("span", { className: pe.sync, style: { color: e, gap: s }, children: Array.from({ length: 3 }).map((r, c) => /* @__PURE__ */ t(
20
20
  "span",
21
21
  {
22
- className: re.syncDot,
22
+ className: pe.syncDot,
23
23
  style: {
24
24
  width: o,
25
25
  height: o,
26
- animationDelay: `${_ * 0.12}s`
26
+ animationDelay: `${c * 0.12}s`
27
27
  }
28
28
  },
29
- _
29
+ c
30
30
  )) })
31
31
  );
32
32
  }
33
- function xe({ color: e = He, size: t = 10, text: o = "" }) {
34
- const s = Math.max(2, Math.round(t / 12)), l = {
35
- width: t,
36
- height: t,
37
- "--clip-size": `${t}px`,
33
+ function $e({ color: e = Ze, size: n = 10, text: o = "" }) {
34
+ const s = Math.max(2, Math.round(n / 12)), r = {
35
+ width: n,
36
+ height: n,
37
+ "--clip-size": `${n}px`,
38
38
  "--clip-stroke": `${s}px`
39
39
  };
40
- return /* @__PURE__ */ b(
40
+ return /* @__PURE__ */ x(
41
41
  "span",
42
42
  {
43
- className: re.clipWrapper,
43
+ className: pe.clipWrapper,
44
44
  style: {
45
45
  color: e
46
46
  },
47
47
  children: [
48
- /* @__PURE__ */ n("span", { className: re.clip, style: l }),
49
- o ? /* @__PURE__ */ n("span", { style: { color: "var(--semantic-bg-default)", fontSize: "1rem", marginTop: "10px" }, children: o }) : null
48
+ /* @__PURE__ */ t("span", { className: pe.clip, style: r }),
49
+ o ? /* @__PURE__ */ t("span", { style: { color: "var(--semantic-bg-default)", fontSize: "1rem", marginTop: "10px" }, children: o }) : null
50
50
  ]
51
51
  }
52
52
  );
53
53
  }
54
- function Xl({ color: e = He, width: t = 4, height: o = 12, radius: s = 2, margin: l = 2 }) {
55
- const r = Math.max(6, Math.round(o + l + 1)), a = r * 2 + o, i = 1, d = i / 8;
54
+ function El({ color: e = Ze, width: n = 4, height: o = 12, radius: s = 2, margin: r = 2 }) {
55
+ const a = Math.max(6, Math.round(o + r + 1)), i = a * 2 + o, l = 1, _ = l / 8;
56
56
  return (
57
57
  // 원형 막대 스피너의 기준 좌표가 되는 컨테이너(막대 위치는 고정)
58
- /* @__PURE__ */ n("span", { className: re.fade, style: { color: e, width: a, height: a }, children: Array.from({ length: 8 }).map((p, u) => /* @__PURE__ */ n(
58
+ /* @__PURE__ */ t("span", { className: pe.fade, style: { color: e, width: i, height: i }, children: Array.from({ length: 8 }).map((f, u) => /* @__PURE__ */ t(
59
59
  "span",
60
60
  {
61
- className: re.fadeBar,
61
+ className: pe.fadeBar,
62
62
  style: {
63
- width: t,
63
+ width: n,
64
64
  height: o,
65
65
  borderRadius: s,
66
- transform: `translate(-50%, -50%) rotate(${360 / 8 * u}deg) translateY(-${r}px)`,
67
- animationDelay: `${-(7 - u) * d}s`,
68
- animationDuration: `${i}s`
66
+ transform: `translate(-50%, -50%) rotate(${360 / 8 * u}deg) translateY(-${a}px)`,
67
+ animationDelay: `${-(7 - u) * _}s`,
68
+ animationDuration: `${l}s`
69
69
  }
70
70
  },
71
71
  u
72
72
  )) })
73
73
  );
74
74
  }
75
- const sn = "_button_1h0bn_1", ln = "_content_1h0bn_12", rn = "_fixed_1h0bn_33", an = "_fixedContent_1h0bn_39", cn = "_node_1h0bn_48", dn = "_text_1h0bn_54", _n = "_large_1h0bn_64", un = "_medium_1h0bn_65", mn = "_small_1h0bn_66", pn = "_xsmall_1h0bn_70", fn = "_flexible_1h0bn_74", hn = "_primary_1h0bn_90", gn = "_loading_1h0bn_90", bn = "_assistive_1h0bn_91", Cn = "_error_1h0bn_92", xn = "_spinnerWrapper_1h0bn_151", F = {
76
- button: sn,
77
- content: ln,
78
- fixed: rn,
79
- fixedContent: an,
80
- node: cn,
81
- text: dn,
82
- large: _n,
83
- medium: un,
84
- small: mn,
85
- xsmall: pn,
86
- flexible: fn,
87
- primary: hn,
88
- loading: gn,
89
- assistive: bn,
90
- error: Cn,
91
- spinnerWrapper: xn,
75
+ const gt = "_button_1h0bn_1", bt = "_content_1h0bn_12", wt = "_fixed_1h0bn_33", xt = "_fixedContent_1h0bn_39", Ct = "_node_1h0bn_48", vt = "_text_1h0bn_54", yt = "_large_1h0bn_64", $t = "_medium_1h0bn_65", kt = "_small_1h0bn_66", Nt = "_xsmall_1h0bn_70", Bt = "_flexible_1h0bn_74", Lt = "_primary_1h0bn_90", Et = "_loading_1h0bn_90", It = "_assistive_1h0bn_91", Tt = "_error_1h0bn_92", Rt = "_spinnerWrapper_1h0bn_151", Y = {
76
+ button: gt,
77
+ content: bt,
78
+ fixed: wt,
79
+ fixedContent: xt,
80
+ node: Ct,
81
+ text: vt,
82
+ large: yt,
83
+ medium: $t,
84
+ small: kt,
85
+ xsmall: Nt,
86
+ flexible: Bt,
87
+ primary: Lt,
88
+ loading: Et,
89
+ assistive: It,
90
+ error: Tt,
91
+ spinnerWrapper: Rt,
92
92
  "spinner-primary": "_spinner-primary_1h0bn_157",
93
93
  "spinner-error": "_spinner-error_1h0bn_158",
94
94
  "spinner-assistive": "_spinner-assistive_1h0bn_162"
95
95
  };
96
- function Gl({
96
+ function Il({
97
97
  widthType: e = "flexible",
98
- variant: t = "primary",
98
+ variant: n = "primary",
99
99
  size: o = "medium",
100
100
  disabled: s = !1,
101
- loading: l = !1,
102
- keepFocusOnClick: _ = !1,
103
- customStyle: r = {},
104
- onClick: a,
105
- className: i,
106
- children: d,
107
- type: p = "button",
101
+ loading: r = !1,
102
+ keepFocusOnClick: c = !1,
103
+ customStyle: a = {},
104
+ onClick: i,
105
+ className: l,
106
+ children: _,
107
+ type: f = "button",
108
108
  ...u
109
109
  }) {
110
- const x = [
111
- F.button,
112
- F[e],
113
- F[t],
114
- F[o],
115
- l ? F.loading : "",
116
- i ?? ""
117
- ].filter(Boolean).join(" "), f = [F.spinnerWrapper, F[`spinner-${t}`]].filter(Boolean).join(" "), C = [F.content, e === "fixed" ? F.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? Be.map(d, (c) => {
118
- const h = typeof c == "string" || typeof c == "number" ? F.text : F.node;
119
- return /* @__PURE__ */ n("span", { className: h, children: c });
120
- }) : d, $ = ne(() => ({
110
+ const w = [
111
+ Y.button,
112
+ Y[e],
113
+ Y[n],
114
+ Y[o],
115
+ r ? Y.loading : "",
116
+ l ?? ""
117
+ ].filter(Boolean).join(" "), p = [Y.spinnerWrapper, Y[`spinner-${n}`]].filter(Boolean).join(" "), g = [Y.content, e === "fixed" ? Y.fixedContent : ""].filter(Boolean).join(" "), C = e === "fixed" ? Se.map(_, (d) => {
118
+ const m = typeof d == "string" || typeof d == "number" ? Y.text : Y.node;
119
+ return /* @__PURE__ */ t("span", { className: m, children: d });
120
+ }) : _, v = ae(() => ({
121
121
  large: 24,
122
122
  medium: 24,
123
123
  small: 24,
124
124
  xsmall: 16
125
125
  })[o], [o]);
126
- return /* @__PURE__ */ n(
126
+ return /* @__PURE__ */ t(
127
127
  "button",
128
128
  {
129
129
  "data-idb-component": !0,
130
- type: p,
131
- className: x,
132
- onClick: l ? void 0 : (c) => {
133
- a?.(c), !_ && !c.defaultPrevented && c.currentTarget.blur();
130
+ type: f,
131
+ className: w,
132
+ onClick: r ? void 0 : (d) => {
133
+ i?.(d), !c && !d.defaultPrevented && d.currentTarget.blur();
134
134
  },
135
135
  disabled: s,
136
- style: r,
136
+ style: a,
137
137
  ...u,
138
- children: l ? /* @__PURE__ */ n("span", { className: f, children: /* @__PURE__ */ n(xe, { size: $, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
138
+ children: r ? /* @__PURE__ */ t("span", { className: p, children: /* @__PURE__ */ t($e, { size: v, color: "currentColor" }) }) : /* @__PURE__ */ t("span", { className: g, children: C })
139
139
  }
140
140
  );
141
141
  }
142
- const wn = "_button_1wh5k_1", vn = "_content_1wh5k_19", yn = "_fixed_1wh5k_37", $n = "_fixedContent_1wh5k_43", Nn = "_node_1wh5k_53", kn = "_text_1wh5k_59", In = "_large_1wh5k_69", Bn = "_medium_1wh5k_70", En = "_small_1wh5k_71", Ln = "_xsmall_1wh5k_75", Sn = "_flexible_1wh5k_80", Tn = "_primary_1wh5k_98", jn = "_secondary_1wh5k_99", Mn = "_assistive_1wh5k_100", Dn = "_loading_1wh5k_101", Rn = "_spinnerWrapper_1wh5k_172", z = {
143
- button: wn,
144
- content: vn,
145
- fixed: yn,
146
- fixedContent: $n,
147
- node: Nn,
148
- text: kn,
149
- large: In,
150
- medium: Bn,
151
- small: En,
152
- xsmall: Ln,
153
- flexible: Sn,
154
- primary: Tn,
155
- secondary: jn,
156
- assistive: Mn,
157
- loading: Dn,
158
- spinnerWrapper: Rn,
142
+ const St = "_button_1wh5k_1", Mt = "_content_1wh5k_19", jt = "_fixed_1wh5k_37", Dt = "_fixedContent_1wh5k_43", At = "_node_1wh5k_53", Ht = "_text_1wh5k_59", Wt = "_large_1wh5k_69", Ot = "_medium_1wh5k_70", Pt = "_small_1wh5k_71", qt = "_xsmall_1wh5k_75", Ft = "_flexible_1wh5k_80", zt = "_primary_1wh5k_98", Kt = "_secondary_1wh5k_99", Zt = "_assistive_1wh5k_100", Vt = "_loading_1wh5k_101", Ut = "_spinnerWrapper_1wh5k_172", X = {
143
+ button: St,
144
+ content: Mt,
145
+ fixed: jt,
146
+ fixedContent: Dt,
147
+ node: At,
148
+ text: Ht,
149
+ large: Wt,
150
+ medium: Ot,
151
+ small: Pt,
152
+ xsmall: qt,
153
+ flexible: Ft,
154
+ primary: zt,
155
+ secondary: Kt,
156
+ assistive: Zt,
157
+ loading: Vt,
158
+ spinnerWrapper: Ut,
159
159
  "spinner-primary": "_spinner-primary_1wh5k_179",
160
160
  "spinner-assistive": "_spinner-assistive_1wh5k_180",
161
161
  "spinner-secondary": "_spinner-secondary_1wh5k_184"
162
162
  };
163
- function Jl({
163
+ function Tl({
164
164
  widthType: e = "flexible",
165
- variant: t = "primary",
165
+ variant: n = "primary",
166
166
  size: o = "medium",
167
167
  disabled: s = !1,
168
- loading: l = !1,
169
- keepFocusOnClick: _ = !1,
170
- customStyle: r = {},
171
- onClick: a,
172
- className: i,
173
- children: d,
174
- type: p = "button",
168
+ loading: r = !1,
169
+ keepFocusOnClick: c = !1,
170
+ customStyle: a = {},
171
+ onClick: i,
172
+ className: l,
173
+ children: _,
174
+ type: f = "button",
175
175
  ...u
176
176
  }) {
177
- const x = [
178
- z.button,
179
- z[e],
180
- z[t],
181
- z[o],
182
- l ? z.loading : "",
183
- i ?? ""
184
- ].filter(Boolean).join(" "), f = [z.spinnerWrapper, z[`spinner-${t}`]].filter(Boolean).join(" "), C = [z.content, e === "fixed" ? z.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? Be.map(d, (c) => {
185
- const h = typeof c == "string" || typeof c == "number" ? z.text : z.node;
186
- return /* @__PURE__ */ n("span", { className: h, children: c });
187
- }) : d, $ = ne(() => ({
177
+ const w = [
178
+ X.button,
179
+ X[e],
180
+ X[n],
181
+ X[o],
182
+ r ? X.loading : "",
183
+ l ?? ""
184
+ ].filter(Boolean).join(" "), p = [X.spinnerWrapper, X[`spinner-${n}`]].filter(Boolean).join(" "), g = [X.content, e === "fixed" ? X.fixedContent : ""].filter(Boolean).join(" "), C = e === "fixed" ? Se.map(_, (d) => {
185
+ const m = typeof d == "string" || typeof d == "number" ? X.text : X.node;
186
+ return /* @__PURE__ */ t("span", { className: m, children: d });
187
+ }) : _, v = ae(() => ({
188
188
  large: 24,
189
189
  medium: 24,
190
190
  small: 24,
191
191
  xsmall: 16
192
192
  })[o], [o]);
193
- return /* @__PURE__ */ n(
193
+ return /* @__PURE__ */ t(
194
194
  "button",
195
195
  {
196
196
  "data-idb-component": !0,
197
- type: p,
198
- className: x,
199
- onClick: l ? void 0 : (c) => {
200
- a?.(c), !_ && !c.defaultPrevented && c.currentTarget.blur();
197
+ type: f,
198
+ className: w,
199
+ onClick: r ? void 0 : (d) => {
200
+ i?.(d), !c && !d.defaultPrevented && d.currentTarget.blur();
201
201
  },
202
202
  disabled: s,
203
- style: r,
203
+ style: a,
204
204
  ...u,
205
- children: l ? /* @__PURE__ */ n("span", { className: f, children: /* @__PURE__ */ n(xe, { size: $, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
205
+ children: r ? /* @__PURE__ */ t("span", { className: p, children: /* @__PURE__ */ t($e, { size: v, color: "currentColor" }) }) : /* @__PURE__ */ t("span", { className: g, children: C })
206
206
  }
207
207
  );
208
208
  }
209
- const An = "_button_xqfx2_1", Hn = "_content_xqfx2_18", qn = "_fixed_xqfx2_36", On = "_fixedContent_xqfx2_42", Wn = "_node_xqfx2_52", Pn = "_text_xqfx2_58", Fn = "_large_xqfx2_68", zn = "_medium_xqfx2_69", Kn = "_small_xqfx2_70", Vn = "_xsmall_xqfx2_74", Zn = "_flexible_xqfx2_79", Un = "_primary_xqfx2_109", Yn = "_secondary_xqfx2_110", Xn = "_assistive_xqfx2_111", Gn = "_loading_xqfx2_112", Jn = "_spinnerWrapper_xqfx2_180", K = {
210
- button: An,
211
- content: Hn,
212
- fixed: qn,
213
- fixedContent: On,
214
- node: Wn,
215
- text: Pn,
216
- large: Fn,
217
- medium: zn,
218
- small: Kn,
219
- xsmall: Vn,
220
- flexible: Zn,
221
- primary: Un,
222
- secondary: Yn,
223
- assistive: Xn,
224
- loading: Gn,
225
- spinnerWrapper: Jn,
209
+ const Yt = "_button_xqfx2_1", Xt = "_content_xqfx2_18", Gt = "_fixed_xqfx2_36", Jt = "_fixedContent_xqfx2_42", Qt = "_node_xqfx2_52", en = "_text_xqfx2_58", tn = "_large_xqfx2_68", nn = "_medium_xqfx2_69", on = "_small_xqfx2_70", sn = "_xsmall_xqfx2_74", rn = "_flexible_xqfx2_79", ln = "_primary_xqfx2_109", an = "_secondary_xqfx2_110", cn = "_assistive_xqfx2_111", dn = "_loading_xqfx2_112", _n = "_spinnerWrapper_xqfx2_180", G = {
210
+ button: Yt,
211
+ content: Xt,
212
+ fixed: Gt,
213
+ fixedContent: Jt,
214
+ node: Qt,
215
+ text: en,
216
+ large: tn,
217
+ medium: nn,
218
+ small: on,
219
+ xsmall: sn,
220
+ flexible: rn,
221
+ primary: ln,
222
+ secondary: an,
223
+ assistive: cn,
224
+ loading: dn,
225
+ spinnerWrapper: _n,
226
226
  "spinner-primary": "_spinner-primary_xqfx2_187",
227
227
  "spinner-secondary": "_spinner-secondary_xqfx2_191",
228
228
  "spinner-assistive": "_spinner-assistive_xqfx2_192"
229
229
  };
230
- function Qn({
230
+ function un({
231
231
  widthType: e = "flexible",
232
- variant: t = "primary",
232
+ variant: n = "primary",
233
233
  size: o = "medium",
234
234
  disabled: s = !1,
235
- loading: l = !1,
236
- keepFocusOnClick: _ = !1,
237
- customStyle: r = {},
238
- onClick: a,
239
- className: i,
240
- children: d,
241
- type: p = "button",
235
+ loading: r = !1,
236
+ keepFocusOnClick: c = !1,
237
+ customStyle: a = {},
238
+ onClick: i,
239
+ className: l,
240
+ children: _,
241
+ type: f = "button",
242
242
  ...u
243
243
  }) {
244
- const x = [
245
- K.button,
246
- K[e],
247
- K[t],
248
- K[o],
249
- l ? K.loading : "",
250
- i ?? ""
251
- ].filter(Boolean).join(" "), f = [K.spinnerWrapper, K[`spinner-${t}`]].filter(Boolean).join(" "), C = [K.content, e === "fixed" ? K.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? Be.map(d, (c) => {
252
- const h = typeof c == "string" || typeof c == "number" ? K.text : K.node;
253
- return /* @__PURE__ */ n("span", { className: h, children: c });
254
- }) : d, $ = ne(() => ({
244
+ const w = [
245
+ G.button,
246
+ G[e],
247
+ G[n],
248
+ G[o],
249
+ r ? G.loading : "",
250
+ l ?? ""
251
+ ].filter(Boolean).join(" "), p = [G.spinnerWrapper, G[`spinner-${n}`]].filter(Boolean).join(" "), g = [G.content, e === "fixed" ? G.fixedContent : ""].filter(Boolean).join(" "), C = e === "fixed" ? Se.map(_, (d) => {
252
+ const m = typeof d == "string" || typeof d == "number" ? G.text : G.node;
253
+ return /* @__PURE__ */ t("span", { className: m, children: d });
254
+ }) : _, v = ae(() => ({
255
255
  large: 24,
256
256
  medium: 24,
257
257
  small: 24,
258
258
  xsmall: 16
259
259
  })[o], [o]);
260
- return /* @__PURE__ */ n(
260
+ return /* @__PURE__ */ t(
261
261
  "button",
262
262
  {
263
263
  "data-idb-component": !0,
264
- type: p,
265
- className: x,
266
- onClick: l ? void 0 : (c) => {
267
- a?.(c), !_ && !c.defaultPrevented && c.currentTarget.blur();
264
+ type: f,
265
+ className: w,
266
+ onClick: r ? void 0 : (d) => {
267
+ i?.(d), !c && !d.defaultPrevented && d.currentTarget.blur();
268
268
  },
269
269
  disabled: s,
270
- style: r,
270
+ style: a,
271
271
  ...u,
272
- children: l ? /* @__PURE__ */ n("span", { className: f, children: /* @__PURE__ */ n(xe, { size: $, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
272
+ children: r ? /* @__PURE__ */ t("span", { className: p, children: /* @__PURE__ */ t($e, { size: v, color: "currentColor" }) }) : /* @__PURE__ */ t("span", { className: g, children: C })
273
273
  }
274
274
  );
275
275
  }
276
- const et = "_button_16957_1", nt = "_content_16957_18", tt = "_fixed_16957_36", ot = "_fixedContent_16957_42", st = "_node_16957_52", lt = "_text_16957_58", it = "_large_16957_68", rt = "_medium_16957_69", at = "_small_16957_70", ct = "_xsmall_16957_74", dt = "_flexible_16957_79", _t = "_primary_16957_97", ut = "_assistive_16957_98", mt = "_error_16957_99", pt = "_loading_16957_100", ft = "_spinnerWrapper_16957_171", V = {
277
- button: et,
278
- content: nt,
279
- fixed: tt,
280
- fixedContent: ot,
281
- node: st,
282
- text: lt,
283
- large: it,
284
- medium: rt,
285
- small: at,
286
- xsmall: ct,
287
- flexible: dt,
288
- primary: _t,
289
- assistive: ut,
290
- error: mt,
291
- loading: pt,
292
- spinnerWrapper: ft,
276
+ const pn = "_button_16957_1", mn = "_content_16957_18", fn = "_fixed_16957_36", hn = "_fixedContent_16957_42", gn = "_node_16957_52", bn = "_text_16957_58", wn = "_large_16957_68", xn = "_medium_16957_69", Cn = "_small_16957_70", vn = "_xsmall_16957_74", yn = "_flexible_16957_79", $n = "_primary_16957_97", kn = "_assistive_16957_98", Nn = "_error_16957_99", Bn = "_loading_16957_100", Ln = "_spinnerWrapper_16957_171", J = {
277
+ button: pn,
278
+ content: mn,
279
+ fixed: fn,
280
+ fixedContent: hn,
281
+ node: gn,
282
+ text: bn,
283
+ large: wn,
284
+ medium: xn,
285
+ small: Cn,
286
+ xsmall: vn,
287
+ flexible: yn,
288
+ primary: $n,
289
+ assistive: kn,
290
+ error: Nn,
291
+ loading: Bn,
292
+ spinnerWrapper: Ln,
293
293
  "spinner-primary": "_spinner-primary_16957_178",
294
294
  "spinner-error": "_spinner-error_16957_182",
295
295
  "spinner-assistive": "_spinner-assistive_16957_183"
296
296
  };
297
- function Ql({
297
+ function Rl({
298
298
  widthType: e = "flexible",
299
- variant: t = "primary",
299
+ variant: n = "primary",
300
300
  size: o = "medium",
301
301
  disabled: s = !1,
302
- loading: l = !1,
303
- keepFocusOnClick: _ = !1,
304
- customStyle: r = {},
305
- onClick: a,
306
- className: i,
307
- children: d,
308
- type: p = "button",
302
+ loading: r = !1,
303
+ keepFocusOnClick: c = !1,
304
+ customStyle: a = {},
305
+ onClick: i,
306
+ className: l,
307
+ children: _,
308
+ type: f = "button",
309
309
  ...u
310
310
  }) {
311
- const x = [
312
- V.button,
313
- V[e],
314
- V[t],
315
- V[o],
316
- l ? V.loading : "",
317
- i ?? ""
318
- ].filter(Boolean).join(" "), f = [V.spinnerWrapper, V[`spinner-${t}`]].filter(Boolean).join(" "), C = [V.content, e === "fixed" ? V.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? Be.map(d, (c) => {
319
- const h = typeof c == "string" || typeof c == "number" ? V.text : V.node;
320
- return /* @__PURE__ */ n("span", { className: h, children: c });
321
- }) : d, $ = ne(() => ({
311
+ const w = [
312
+ J.button,
313
+ J[e],
314
+ J[n],
315
+ J[o],
316
+ r ? J.loading : "",
317
+ l ?? ""
318
+ ].filter(Boolean).join(" "), p = [J.spinnerWrapper, J[`spinner-${n}`]].filter(Boolean).join(" "), g = [J.content, e === "fixed" ? J.fixedContent : ""].filter(Boolean).join(" "), C = e === "fixed" ? Se.map(_, (d) => {
319
+ const m = typeof d == "string" || typeof d == "number" ? J.text : J.node;
320
+ return /* @__PURE__ */ t("span", { className: m, children: d });
321
+ }) : _, v = ae(() => ({
322
322
  large: 24,
323
323
  medium: 24,
324
324
  small: 24,
325
325
  xsmall: 16
326
326
  })[o], [o]);
327
- return /* @__PURE__ */ n(
327
+ return /* @__PURE__ */ t(
328
328
  "button",
329
329
  {
330
330
  "data-idb-component": !0,
331
- type: p,
332
- className: x,
333
- onClick: l ? void 0 : (c) => {
334
- a?.(c), !_ && !c.defaultPrevented && c.currentTarget.blur();
331
+ type: f,
332
+ className: w,
333
+ onClick: r ? void 0 : (d) => {
334
+ i?.(d), !c && !d.defaultPrevented && d.currentTarget.blur();
335
335
  },
336
336
  disabled: s,
337
- style: r,
337
+ style: a,
338
338
  ...u,
339
- children: l ? /* @__PURE__ */ n("span", { className: f, children: /* @__PURE__ */ n(xe, { size: $, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
339
+ children: r ? /* @__PURE__ */ t("span", { className: p, children: /* @__PURE__ */ t($e, { size: v, color: "currentColor" }) }) : /* @__PURE__ */ t("span", { className: g, children: C })
340
340
  }
341
341
  );
342
342
  }
343
- const ht = "_button_r7m14_1", gt = "_large_r7m14_37", bt = "_small_r7m14_49", Oe = {
344
- button: ht,
345
- large: gt,
346
- small: bt
343
+ const En = "_button_r7m14_1", In = "_large_r7m14_37", Tn = "_small_r7m14_49", Ue = {
344
+ button: En,
345
+ large: In,
346
+ small: Tn
347
347
  };
348
- function Te({
348
+ function Oe({
349
349
  size: e = "large",
350
- disabled: t = !1,
350
+ disabled: n = !1,
351
351
  keepFocusOnClick: o = !1,
352
352
  customStyle: s = {},
353
- onClick: l,
354
- className: _,
355
- children: r,
356
- type: a = "button",
357
- ...i
353
+ onClick: r,
354
+ className: c,
355
+ children: a,
356
+ type: i = "button",
357
+ ...l
358
358
  }) {
359
- const d = [
360
- Oe.button,
361
- Oe[e],
362
- _ ?? ""
359
+ const _ = [
360
+ Ue.button,
361
+ Ue[e],
362
+ c ?? ""
363
363
  ].filter(Boolean).join(" ");
364
- return /* @__PURE__ */ n(
364
+ return /* @__PURE__ */ t(
365
365
  "button",
366
366
  {
367
367
  "data-idb-component": !0,
368
- type: a,
369
- className: d,
368
+ type: i,
369
+ className: _,
370
370
  onClick: (u) => {
371
- l?.(u), !o && !u.defaultPrevented && u.currentTarget.blur();
371
+ r?.(u), !o && !u.defaultPrevented && u.currentTarget.blur();
372
372
  },
373
- disabled: t,
373
+ disabled: n,
374
374
  style: s,
375
- ...i,
376
- children: r
375
+ ...l,
376
+ children: a
377
377
  }
378
378
  );
379
379
  }
380
- const Ct = "_button_1mqol_1", xt = "_basic_1mqol_27", wt = "_overlay_1mqol_45", vt = "_primary_1mqol_63", yt = "_large_1mqol_83", $t = "_medium_1mqol_95", Le = {
381
- button: Ct,
382
- basic: xt,
383
- overlay: wt,
384
- primary: vt,
385
- large: yt,
386
- medium: $t
380
+ const Rn = "_button_1mqol_1", Sn = "_basic_1mqol_27", Mn = "_overlay_1mqol_45", jn = "_primary_1mqol_63", Dn = "_large_1mqol_83", An = "_medium_1mqol_95", He = {
381
+ button: Rn,
382
+ basic: Sn,
383
+ overlay: Mn,
384
+ primary: jn,
385
+ large: Dn,
386
+ medium: An
387
387
  };
388
- function ei({
388
+ function Sl({
389
389
  variant: e = "basic",
390
- size: t = "medium",
390
+ size: n = "medium",
391
391
  disabled: o = !1,
392
392
  keepFocusOnClick: s = !1,
393
- customStyle: l = {},
394
- onClick: _,
395
- children: r,
396
- type: a = "button",
397
- ...i
393
+ customStyle: r = {},
394
+ onClick: c,
395
+ children: a,
396
+ type: i = "button",
397
+ ...l
398
398
  }) {
399
- const d = [Le.button, Le[e], Le[t]].filter(Boolean).join(" ");
400
- return /* @__PURE__ */ n(
399
+ const _ = [He.button, He[e], He[n]].filter(Boolean).join(" ");
400
+ return /* @__PURE__ */ t(
401
401
  "button",
402
402
  {
403
403
  "data-idb-component": !0,
404
- type: a,
405
- className: d,
404
+ type: i,
405
+ className: _,
406
406
  onClick: (u) => {
407
- _?.(u), !s && !u.defaultPrevented && u.currentTarget.blur();
407
+ c?.(u), !s && !u.defaultPrevented && u.currentTarget.blur();
408
408
  },
409
409
  disabled: o,
410
- style: l,
411
- ...i,
412
- children: r
410
+ style: r,
411
+ ...l,
412
+ children: a
413
413
  }
414
414
  );
415
415
  }
416
- const Nt = "_button_1ur9u_1", kt = "_large_1ur9u_40", It = "_medium_1ur9u_52", We = {
417
- button: Nt,
418
- large: kt,
419
- medium: It
416
+ const Hn = "_button_1ur9u_1", Wn = "_large_1ur9u_40", On = "_medium_1ur9u_52", Ye = {
417
+ button: Hn,
418
+ large: Wn,
419
+ medium: On
420
420
  };
421
- function ni({
421
+ function Ml({
422
422
  size: e = "medium",
423
- disabled: t = !1,
423
+ disabled: n = !1,
424
424
  keepFocusOnClick: o = !1,
425
425
  customStyle: s = {},
426
- onClick: l,
427
- children: _,
428
- type: r = "button",
429
- ...a
426
+ onClick: r,
427
+ children: c,
428
+ type: a = "button",
429
+ ...i
430
430
  }) {
431
- const i = [We.button, We[e]].filter(Boolean).join(" ");
432
- return /* @__PURE__ */ n(
431
+ const l = [Ye.button, Ye[e]].filter(Boolean).join(" ");
432
+ return /* @__PURE__ */ t(
433
433
  "button",
434
434
  {
435
435
  "data-idb-component": !0,
436
- type: r,
437
- className: i,
438
- onClick: (p) => {
439
- l?.(p), !o && !p.defaultPrevented && p.currentTarget.blur();
436
+ type: a,
437
+ className: l,
438
+ onClick: (f) => {
439
+ r?.(f), !o && !f.defaultPrevented && f.currentTarget.blur();
440
440
  },
441
- disabled: t,
441
+ disabled: n,
442
442
  style: s,
443
- ...a,
444
- children: _
443
+ ...i,
444
+ children: c
445
445
  }
446
446
  );
447
447
  }
448
- const Bt = "_root_ir5jh_1", Et = "_label_ir5jh_8", Lt = "_labelDisabled_ir5jh_16", St = "_requiredMark_ir5jh_20", Tt = "_controlRow_ir5jh_24", jt = "_control_ir5jh_24", Mt = "_small_ir5jh_48", Dt = "_outline_ir5jh_53", Rt = "_fill_ir5jh_57", At = "_basic_ir5jh_61", Ht = "_success_ir5jh_65", qt = "_error_ir5jh_70", Ot = "_focused_ir5jh_82", Wt = "_disabled_ir5jh_87", Pt = "_leadingIcon_ir5jh_102", Ft = "_trailingIcon_ir5jh_103", zt = "_trailingText_ir5jh_104", Kt = "_inputField_ir5jh_126", Vt = "_trailingButton_ir5jh_173", Zt = "_trailingIconButton_ir5jh_174", Ut = "_trailingSlot_ir5jh_178", Yt = "_trailingSlotDisabled_ir5jh_185", Xt = "_trailingBasicIconButton_ir5jh_189", Gt = "_helper_ir5jh_270", Jt = "_helperFixed_ir5jh_276", Qt = "_helperPlaceholder_ir5jh_280", eo = "_errorHelper_ir5jh_284", no = "_errorHelperBounce_ir5jh_288", to = "_errorMessageBounceY_ir5jh_1", oo = "_helperDisabled_ir5jh_292", y = {
449
- root: Bt,
450
- label: Et,
451
- labelDisabled: Lt,
452
- requiredMark: St,
453
- controlRow: Tt,
454
- control: jt,
448
+ const Pn = "_root_ir5jh_1", qn = "_label_ir5jh_8", Fn = "_labelDisabled_ir5jh_16", zn = "_requiredMark_ir5jh_20", Kn = "_controlRow_ir5jh_24", Zn = "_control_ir5jh_24", Vn = "_small_ir5jh_48", Un = "_outline_ir5jh_53", Yn = "_fill_ir5jh_57", Xn = "_basic_ir5jh_61", Gn = "_success_ir5jh_65", Jn = "_error_ir5jh_70", Qn = "_focused_ir5jh_82", eo = "_disabled_ir5jh_87", to = "_leadingIcon_ir5jh_102", no = "_trailingIcon_ir5jh_103", oo = "_trailingText_ir5jh_104", so = "_inputField_ir5jh_126", ro = "_trailingButton_ir5jh_173", lo = "_trailingIconButton_ir5jh_174", io = "_trailingSlot_ir5jh_178", ao = "_trailingSlotDisabled_ir5jh_185", co = "_trailingBasicIconButton_ir5jh_189", _o = "_helper_ir5jh_270", uo = "_helperFixed_ir5jh_276", po = "_helperPlaceholder_ir5jh_280", mo = "_errorHelper_ir5jh_284", fo = "_errorHelperBounce_ir5jh_288", ho = "_errorMessageBounceY_ir5jh_1", go = "_helperDisabled_ir5jh_292", k = {
449
+ root: Pn,
450
+ label: qn,
451
+ labelDisabled: Fn,
452
+ requiredMark: zn,
453
+ controlRow: Kn,
454
+ control: Zn,
455
455
  default: "_default_ir5jh_43",
456
- small: Mt,
457
- outline: Dt,
458
- fill: Rt,
459
- basic: At,
460
- success: Ht,
461
- error: qt,
462
- focused: Ot,
463
- disabled: Wt,
464
- leadingIcon: Pt,
465
- trailingIcon: Ft,
466
- trailingText: zt,
467
- inputField: Kt,
456
+ small: Vn,
457
+ outline: Un,
458
+ fill: Yn,
459
+ basic: Xn,
460
+ success: Gn,
461
+ error: Jn,
462
+ focused: Qn,
463
+ disabled: eo,
464
+ leadingIcon: to,
465
+ trailingIcon: no,
466
+ trailingText: oo,
467
+ inputField: so,
468
468
  "input-default": "_input-default_ir5jh_137",
469
469
  "input-small": "_input-small_ir5jh_141",
470
- trailingButton: Vt,
471
- trailingIconButton: Zt,
472
- trailingSlot: Ut,
473
- trailingSlotDisabled: Yt,
474
- trailingBasicIconButton: Xt,
475
- helper: Gt,
476
- helperFixed: Jt,
477
- helperPlaceholder: Qt,
478
- errorHelper: eo,
479
- errorHelperBounce: no,
480
- errorMessageBounceY: to,
481
- helperDisabled: oo
470
+ trailingButton: ro,
471
+ trailingIconButton: lo,
472
+ trailingSlot: io,
473
+ trailingSlotDisabled: ao,
474
+ trailingBasicIconButton: co,
475
+ helper: _o,
476
+ helperFixed: uo,
477
+ helperPlaceholder: po,
478
+ errorHelper: mo,
479
+ errorHelperBounce: fo,
480
+ errorMessageBounceY: ho,
481
+ helperDisabled: go
482
482
  };
483
- function so({
483
+ function bo({
484
484
  content: e,
485
- disabled: t = !1
485
+ disabled: n = !1
486
486
  }) {
487
487
  if (e == null)
488
488
  return null;
489
489
  const o = (s) => {
490
490
  s.preventDefault();
491
491
  };
492
- return /* @__PURE__ */ n(
492
+ return /* @__PURE__ */ t(
493
493
  "span",
494
494
  {
495
- className: [y.trailingSlot, t ? y.trailingSlotDisabled : ""].filter(Boolean).join(" "),
495
+ className: [k.trailingSlot, n ? k.trailingSlotDisabled : ""].filter(Boolean).join(" "),
496
496
  onMouseDownCapture: o,
497
497
  children: e
498
498
  }
499
499
  );
500
500
  }
501
- function lo({
501
+ function wo({
502
502
  value: e,
503
- onFocus: t,
503
+ onFocus: n,
504
504
  onBlur: o,
505
505
  onChange: s
506
506
  }) {
507
507
  return {
508
508
  currentValue: e,
509
- handleFocus: (i) => {
510
- t?.(i);
509
+ handleFocus: (l) => {
510
+ n?.(l);
511
511
  },
512
- handleBlur: (i) => {
513
- o?.(i);
512
+ handleBlur: (l) => {
513
+ o?.(l);
514
514
  },
515
- handleChange: (i) => {
516
- s?.(i);
515
+ handleChange: (l) => {
516
+ s?.(l);
517
517
  }
518
518
  };
519
519
  }
520
- function io({
520
+ function xo({
521
521
  type: e = "text",
522
522
  // input HTML 타입
523
- designType: t = "outline",
523
+ designType: n = "outline",
524
524
  // 인풋 외형 타입
525
525
  size: o = "default",
526
526
  // 인풋 높이 크기
527
527
  variant: s,
528
528
  // 상태 variant
529
- width: l,
529
+ width: r,
530
530
  // 루트 너비
531
- heading: _ = !0,
531
+ heading: c = !0,
532
532
  // 라벨 표시 여부
533
- headingContent: r = "Label",
533
+ headingContent: a = "Label",
534
534
  // 라벨 내용
535
- required: a = !1,
535
+ required: i = !1,
536
536
  // 라벨 우측 *
537
- description: i = !1,
537
+ description: l = !1,
538
538
  // 하단 안내 문구
539
- fixedDescriptionHeight: d = !0,
539
+ fixedDescriptionHeight: _ = !0,
540
540
  // 하단 문구 영역 높이 고정 여부
541
- errorMessage: p,
541
+ errorMessage: f,
542
542
  // 에러 상태 문구
543
543
  leadingIcon: u,
544
544
  // 좌측 아이콘 슬롯
545
- trailingContent: x,
545
+ trailingContent: w,
546
546
  // 우측 trailing 슬롯 콘텐츠
547
- customStyle: f = {},
547
+ customStyle: p = {},
548
548
  // 루트 커스텀 스타일
549
- id: C,
549
+ id: g,
550
550
  // input id
551
- onFocus: N,
551
+ onFocus: C,
552
552
  // 포커스 진입 핸들러
553
- onBlur: $,
553
+ onBlur: v,
554
554
  // 포커스 이탈 핸들러
555
- onChange: I,
555
+ onChange: N,
556
556
  // 값 변경 핸들러
557
- value: c,
557
+ value: d,
558
558
  // 현재 값
559
- disabled: h = !1,
559
+ disabled: m = !1,
560
560
  // 전체 비활성화 여부
561
- readOnly: m = !1,
561
+ readOnly: y = !1,
562
562
  // 읽기 전용 여부
563
- ...R
563
+ ...b
564
564
  }) {
565
- const v = Ee(), k = C ?? v, q = _, U = r, { currentValue: w, handleFocus: B, handleBlur: A, handleChange: O } = lo({
566
- value: c,
567
- onFocus: N,
568
- onBlur: $,
569
- onChange: I
570
- }), W = ne(() => w == null ? !1 : Array.isArray(w) ? w.length > 0 : typeof w == "number" ? !0 : String(w).length > 0, [w]), T = ne(() => s !== void 0 ? s : W ? "typed" : "basic", [s, W]), Y = T === "error", ce = T === "success", de = T === "onFocus" || T === "onTyping", te = [
571
- y.control,
572
- y[t],
573
- Y ? y.error : ce ? y.success : y.basic,
574
- y[o],
575
- !h && de ? y.focused : "",
576
- h ? y.disabled : ""
577
- ].filter(Boolean).join(" "), oe = [y.inputField, y[`input-${o}`]].join(" "), _e = y.root, ue = [y.label, h ? y.labelDisabled : ""].filter(Boolean).join(" "), L = ne(() => Y ? p ?? "에러 메시지가 표시됩니다." : i === !1 || i === void 0 || i === null ? null : i === !0 ? "2~19자 이내로 입력해 주세요." : i, [i, p, Y]), g = [
578
- y.helper,
579
- d ? y.helperFixed : "",
580
- Y ? y.errorHelper : "",
581
- Y && L !== null ? y.errorHelperBounce : "",
582
- h ? y.helperDisabled : "",
583
- d && L === null ? y.helperPlaceholder : ""
565
+ const B = Me(), $ = g ?? B, P = c, z = a, { currentValue: h, handleFocus: E, handleBlur: H, handleChange: q } = wo({
566
+ value: d,
567
+ onFocus: C,
568
+ onBlur: v,
569
+ onChange: N
570
+ }), se = ae(() => h == null ? !1 : Array.isArray(h) ? h.length > 0 : typeof h == "number" ? !0 : String(h).length > 0, [h]), K = ae(() => s !== void 0 ? s : se ? "typed" : "basic", [s, se]), V = K === "error", de = K === "success", te = K === "onFocus" || K === "onTyping", F = [
571
+ k.control,
572
+ k[n],
573
+ V ? k.error : de ? k.success : k.basic,
574
+ k[o],
575
+ !m && te ? k.focused : "",
576
+ m ? k.disabled : ""
577
+ ].filter(Boolean).join(" "), fe = [k.inputField, k[`input-${o}`]].join(" "), he = k.root, ge = [k.label, m ? k.labelDisabled : ""].filter(Boolean).join(" "), re = ae(() => V ? f ?? "에러 메시지가 표시됩니다." : l === !1 || l === void 0 || l === null ? null : l === !0 ? "2~19자 이내로 입력해 주세요." : l, [l, f, V]), L = [
578
+ k.helper,
579
+ _ ? k.helperFixed : "",
580
+ V ? k.errorHelper : "",
581
+ V && re !== null ? k.errorHelperBounce : "",
582
+ m ? k.helperDisabled : "",
583
+ _ && re === null ? k.helperPlaceholder : ""
584
584
  ].filter(Boolean).join(" ");
585
- return /* @__PURE__ */ b(
585
+ return /* @__PURE__ */ x(
586
586
  "div",
587
587
  {
588
588
  "data-idb-component": !0,
589
- className: _e,
589
+ className: he,
590
590
  style: {
591
- width: l ?? "100%",
592
- ...f
591
+ width: r ?? "100%",
592
+ ...p
593
593
  },
594
594
  children: [
595
- q ? /* @__PURE__ */ b("label", { htmlFor: k, className: ue, children: [
596
- /* @__PURE__ */ n("span", { children: U }),
597
- a ? /* @__PURE__ */ n("span", { className: y.requiredMark, children: "*" }) : null
595
+ P ? /* @__PURE__ */ x("label", { htmlFor: $, className: ge, children: [
596
+ /* @__PURE__ */ t("span", { children: z }),
597
+ i ? /* @__PURE__ */ t("span", { className: k.requiredMark, children: "*" }) : null
598
598
  ] }) : null,
599
- /* @__PURE__ */ n("div", { className: y.controlRow, children: /* @__PURE__ */ b("div", { className: te, children: [
600
- u ? /* @__PURE__ */ n("span", { className: y.leadingIcon, children: u }) : null,
601
- /* @__PURE__ */ n(
599
+ /* @__PURE__ */ t("div", { className: k.controlRow, children: /* @__PURE__ */ x("div", { className: F, children: [
600
+ u ? /* @__PURE__ */ t("span", { className: k.leadingIcon, children: u }) : null,
601
+ /* @__PURE__ */ t(
602
602
  "input",
603
603
  {
604
- id: k,
604
+ id: $,
605
605
  type: e,
606
- value: w,
607
- className: oe,
608
- onFocus: B,
609
- onBlur: A,
610
- onChange: O,
611
- disabled: h,
612
- readOnly: m,
613
- required: a,
614
- ...R
606
+ value: h,
607
+ className: fe,
608
+ onFocus: E,
609
+ onBlur: H,
610
+ onChange: q,
611
+ disabled: m,
612
+ readOnly: y,
613
+ required: i,
614
+ ...b
615
615
  }
616
616
  ),
617
- /* @__PURE__ */ n(
618
- so,
617
+ /* @__PURE__ */ t(
618
+ bo,
619
619
  {
620
- content: x,
621
- disabled: h
620
+ content: w,
621
+ disabled: m
622
622
  }
623
623
  )
624
624
  ] }) }),
625
- d || L !== null ? /* @__PURE__ */ n("p", { className: g, children: L }) : null
625
+ _ || re !== null ? /* @__PURE__ */ t("p", { className: L, children: re }) : null
626
626
  ]
627
627
  }
628
628
  );
629
629
  }
630
- const ro = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM7.61358%206.55302C7.32069%206.26013%206.84582%206.26013%206.55293%206.55302C6.26003%206.84592%206.26003%207.32079%206.55293%207.61368L8.93925%2010L6.55293%2012.3864C6.26003%2012.6793%206.26003%2013.1541%206.55293%2013.447C6.84582%2013.7399%207.32069%2013.7399%207.61358%2013.447L9.99991%2011.0607L12.3862%2013.447C12.6791%2013.7399%2013.154%2013.7399%2013.4469%2013.447C13.7398%2013.1541%2013.7398%2012.6793%2013.4469%2012.3864L11.0606%2010L13.4469%207.61368C13.7398%207.32079%2013.7398%206.84592%2013.4469%206.55302C13.154%206.26013%2012.6791%206.26013%2012.3862%206.55302L9.99991%208.93936L7.61358%206.55302Z'%20fill='%23C2C4C8'/%3e%3c/svg%3e", ze = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.33331%201.75C4.69745%201.75%201.75%204.69746%201.75%208.33333C1.75%2011.9692%204.69745%2014.9167%208.33331%2014.9167C9.88105%2014.9167%2011.3041%2014.3826%2012.428%2013.4886L16.5531%2017.6136C16.846%2017.9065%2017.3208%2017.9065%2017.6137%2017.6136C17.9066%2017.3207%2017.9066%2016.8459%2017.6137%2016.553L13.4887%2012.4279C14.3826%2011.3039%2014.9166%209.88101%2014.9166%208.33333C14.9166%204.69746%2011.9692%201.75%208.33331%201.75ZM3.24999%208.33333C3.24999%205.52589%205.52587%203.25%208.33331%203.25C11.1407%203.25%2013.4166%205.52589%2013.4166%208.33333C13.4166%2011.1408%2011.1407%2013.4167%208.33331%2013.4167C5.52587%2013.4167%203.24999%2011.1408%203.24999%208.33333Z'%20fill='%23171719'/%3e%3c/svg%3e", ao = "_actionButtons_1ngrw_1", co = {
631
- actionButtons: ao
632
- }, _o = {
630
+ const Co = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM7.61358%206.55302C7.32069%206.26013%206.84582%206.26013%206.55293%206.55302C6.26003%206.84592%206.26003%207.32079%206.55293%207.61368L8.93925%2010L6.55293%2012.3864C6.26003%2012.6793%206.26003%2013.1541%206.55293%2013.447C6.84582%2013.7399%207.32069%2013.7399%207.61358%2013.447L9.99991%2011.0607L12.3862%2013.447C12.6791%2013.7399%2013.154%2013.7399%2013.4469%2013.447C13.7398%2013.1541%2013.7398%2012.6793%2013.4469%2012.3864L11.0606%2010L13.4469%207.61368C13.7398%207.32079%2013.7398%206.84592%2013.4469%206.55302C13.154%206.26013%2012.6791%206.26013%2012.3862%206.55302L9.99991%208.93936L7.61358%206.55302Z'%20fill='%23C2C4C8'/%3e%3c/svg%3e", Je = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.33331%201.75C4.69745%201.75%201.75%204.69746%201.75%208.33333C1.75%2011.9692%204.69745%2014.9167%208.33331%2014.9167C9.88105%2014.9167%2011.3041%2014.3826%2012.428%2013.4886L16.5531%2017.6136C16.846%2017.9065%2017.3208%2017.9065%2017.6137%2017.6136C17.9066%2017.3207%2017.9066%2016.8459%2017.6137%2016.553L13.4887%2012.4279C14.3826%2011.3039%2014.9166%209.88101%2014.9166%208.33333C14.9166%204.69746%2011.9692%201.75%208.33331%201.75ZM3.24999%208.33333C3.24999%205.52589%205.52587%203.25%208.33331%203.25C11.1407%203.25%2013.4166%205.52589%2013.4166%208.33333C13.4166%2011.1408%2011.1407%2013.4167%208.33331%2013.4167C5.52587%2013.4167%203.24999%2011.1408%203.24999%208.33333Z'%20fill='%23171719'/%3e%3c/svg%3e", vo = "_actionButtons_1ngrw_1", yo = {
631
+ actionButtons: vo
632
+ }, $o = {
633
633
  default: "basic",
634
634
  onTyping: "onTyping",
635
635
  typed: "typed",
636
636
  error: "error"
637
637
  };
638
- function ti({
638
+ function jl({
639
639
  value: e,
640
640
  // 검색어 값
641
- onChange: t,
641
+ onChange: n,
642
642
  // 입력 변경 핸들러
643
643
  onSearch: o,
644
644
  // 검색 실행 핸들러
645
645
  onClear: s,
646
646
  // 입력내용 전체 삭제 핸들러(미전달 시 기본 삭제 동작)
647
- size: l = "default",
647
+ size: r = "default",
648
648
  // 인풋 크기
649
- width: _,
649
+ width: c,
650
650
  // 컴포넌트 너비
651
- designType: r = "outline",
651
+ designType: a = "outline",
652
652
  // 인풋 외형 타입
653
- heading: a = !1,
653
+ heading: i = !1,
654
654
  // 라벨 표시 여부
655
- headingContent: i,
655
+ headingContent: l,
656
656
  // 라벨 내용
657
- variant: d,
657
+ variant: _,
658
658
  // SearchBar 상태 variant
659
- description: p = !1,
659
+ description: f = !1,
660
660
  // 하단 안내 문구
661
661
  fixedDescriptionHeight: u = !0,
662
662
  // 하단 문구 영역 높이 고정 여부
663
- disabled: x = !1,
663
+ disabled: w = !1,
664
664
  // 전체 비활성화 여부
665
- readOnly: f = !1,
665
+ readOnly: p = !1,
666
666
  // 읽기 전용 여부
667
- id: C,
667
+ id: g,
668
668
  // input id
669
- name: N,
669
+ name: C,
670
670
  // input name
671
- placeholder: $,
671
+ placeholder: v,
672
672
  // placeholder 텍스트
673
- leadingIcon: I,
673
+ leadingIcon: N,
674
674
  // 좌측 아이콘 슬롯
675
- trailingContent: c,
675
+ trailingContent: d,
676
676
  // 우측 trailing 콘텐츠(미지정 시 검색 버튼 사용)
677
- maxLength: h = 20,
677
+ maxLength: m = 20,
678
678
  // 최대 입력 길이
679
- required: m = !1,
679
+ required: y = !1,
680
680
  // 필수 입력 여부
681
- errorMessage: R,
681
+ errorMessage: b,
682
682
  // 에러 상태 문구
683
- onBlur: v,
683
+ onBlur: B,
684
684
  // 포커스 이탈 핸들러
685
- onKeyDown: k,
685
+ onKeyDown: $,
686
686
  // 키다운 핸들러
687
- ...q
687
+ ...P
688
688
  }) {
689
- const [U, w] = Z(null), B = Ee(), A = C ?? B, O = (g) => g.length >= h, W = (g) => g.length === 1, T = (g) => {
690
- const P = g.target.value;
691
- O(P) ? w("max") : U !== null && w(null), t(g);
692
- }, Y = () => {
693
- if (O(e)) {
694
- w("max");
689
+ const [z, h] = O(null), E = Me(), H = g ?? E, q = (L) => L.length >= m, se = (L) => L.length === 1, K = (L) => {
690
+ const U = L.target.value;
691
+ q(U) ? h("max") : z !== null && h(null), n(L);
692
+ }, V = () => {
693
+ if (q(e)) {
694
+ h("max");
695
695
  return;
696
696
  }
697
- if (W(e)) {
698
- w("min");
697
+ if (se(e)) {
698
+ h("min");
699
699
  return;
700
700
  }
701
- w(null), o(e);
702
- }, ce = () => {
703
- const g = document.getElementById(A);
704
- if (!(g instanceof HTMLInputElement))
705
- return;
706
- const P = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
707
- P !== void 0 && (P.call(g, ""), g.dispatchEvent(new Event("input", { bubbles: !0 })));
701
+ h(null), o(e);
708
702
  }, de = () => {
709
- if (!(x || f || e.length === 0)) {
710
- if (w(null), s !== void 0) {
703
+ const L = document.getElementById(H);
704
+ if (!(L instanceof HTMLInputElement))
705
+ return;
706
+ const U = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
707
+ U !== void 0 && (U.call(L, ""), L.dispatchEvent(new Event("input", { bubbles: !0 })));
708
+ }, te = () => {
709
+ if (!(w || p || e.length === 0)) {
710
+ if (h(null), s !== void 0) {
711
711
  s();
712
712
  return;
713
713
  }
714
- ce();
714
+ de();
715
715
  }
716
- }, te = (g) => {
717
- const P = g.currentTarget.value;
718
- O(P) ? w("max") : W(P) ? w("min") : w(null), v?.(g);
719
- }, oe = (g) => {
720
- k?.(g), !g.defaultPrevented && (g.key !== "Enter" || g.nativeEvent.isComposing || (g.preventDefault(), Y()));
721
- }, _e = U !== null ? "error" : d === void 0 ? void 0 : _o[d], ue = U === "max" ? `최대 ${Math.max(0, h - 1)}자 까지 가능합니다.` : U === "min" ? "최소 2자 이상 입력해 주세요." : R, L = c ?? /* @__PURE__ */ b("span", { className: co.actionButtons, children: [
722
- e.length > 0 ? /* @__PURE__ */ n(
723
- Te,
716
+ }, F = (L) => {
717
+ const U = L.currentTarget.value;
718
+ q(U) ? h("max") : se(U) ? h("min") : h(null), B?.(L);
719
+ }, fe = (L) => {
720
+ $?.(L), !L.defaultPrevented && (L.key !== "Enter" || L.nativeEvent.isComposing || (L.preventDefault(), V()));
721
+ }, he = z !== null ? "error" : _ === void 0 ? void 0 : $o[_], ge = z === "max" ? `최대 ${Math.max(0, m - 1)}자 까지 가능합니다.` : z === "min" ? "최소 2자 이상 입력해 주세요." : b, re = d ?? /* @__PURE__ */ x("span", { className: yo.actionButtons, children: [
722
+ e.length > 0 ? /* @__PURE__ */ t(
723
+ Oe,
724
724
  {
725
725
  size: "small",
726
726
  keepFocusOnClick: !0,
727
- onClick: de,
728
- disabled: x || f,
729
- children: /* @__PURE__ */ n(
727
+ onClick: te,
728
+ disabled: w || p,
729
+ children: /* @__PURE__ */ t(
730
730
  "img",
731
731
  {
732
- src: ro,
732
+ src: Co,
733
733
  alt: ""
734
734
  }
735
735
  )
736
736
  }
737
737
  ) : null,
738
- /* @__PURE__ */ n(
739
- Te,
738
+ /* @__PURE__ */ t(
739
+ Oe,
740
740
  {
741
741
  size: "small",
742
742
  keepFocusOnClick: !0,
743
- onClick: Y,
744
- disabled: x,
745
- children: /* @__PURE__ */ n(
743
+ onClick: V,
744
+ disabled: w,
745
+ children: /* @__PURE__ */ t(
746
746
  "img",
747
747
  {
748
- src: ze,
748
+ src: Je,
749
749
  alt: ""
750
750
  }
751
751
  )
752
752
  }
753
753
  )
754
754
  ] });
755
- return /* @__PURE__ */ n(
756
- io,
755
+ return /* @__PURE__ */ t(
756
+ xo,
757
757
  {
758
- ...q,
759
- id: A,
760
- name: N,
758
+ ...P,
759
+ id: H,
760
+ name: C,
761
761
  value: e,
762
- placeholder: $,
763
- onChange: T,
764
- onBlur: te,
765
- onKeyDown: oe,
762
+ placeholder: v,
763
+ onChange: K,
764
+ onBlur: F,
765
+ onKeyDown: fe,
766
766
  type: "text",
767
- width: _,
768
- designType: r,
769
- size: l,
770
- heading: a,
771
- headingContent: i,
772
- required: m,
773
- description: p,
767
+ width: c,
768
+ designType: a,
769
+ size: r,
770
+ heading: i,
771
+ headingContent: l,
772
+ required: y,
773
+ description: f,
774
774
  fixedDescriptionHeight: u,
775
- variant: _e,
776
- errorMessage: ue,
777
- leadingIcon: I,
778
- trailingContent: L,
779
- maxLength: h,
780
- disabled: x,
781
- readOnly: f
775
+ variant: he,
776
+ errorMessage: ge,
777
+ leadingIcon: N,
778
+ trailingContent: re,
779
+ maxLength: m,
780
+ disabled: w,
781
+ readOnly: p
782
782
  }
783
783
  );
784
784
  }
785
- const uo = "data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.2773%200.197703C11.5409%200.461307%2011.5409%200.888693%2011.2773%201.1523L4.52728%207.9023C4.26368%208.1659%203.83629%208.1659%203.57269%207.9023L0.197702%204.5273C-0.0659007%204.26369%20-0.0659007%203.83631%200.197702%203.5727C0.461305%203.3091%200.88869%203.3091%201.15229%203.5727L4.04998%206.47041L10.3227%200.197703C10.5863%20-0.065901%2011.0136%20-0.065901%2011.2773%200.197703Z'%20fill='white'/%3e%3c/svg%3e", mo = "data:image/svg+xml,%3csvg%20width='11'%20height='8'%20viewBox='0%200%2011%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0242%200.175736C10.2585%200.410051%2010.2585%200.78995%2010.0242%201.02426L4.02425%207.02426C3.78993%207.25858%203.41004%207.25858%203.17572%207.02426L0.175735%204.02426C-0.0585784%203.78995%20-0.0585784%203.41005%200.175735%203.17574C0.410049%202.94142%200.789946%202.94142%201.02426%203.17574L3.59999%205.75147L9.1757%200.175736C9.41001%20-0.0585787%209.78991%20-0.0585787%2010.0242%200.175736Z'%20fill='white'/%3e%3c/svg%3e", po = "data:image/svg+xml,%3csvg%20width='11'%20height='2'%20viewBox='0%200%2011%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%200.675C0%200.302208%200.302208%200%200.675%200H9.675C10.0478%200%2010.35%200.302208%2010.35%200.675C10.35%201.04779%2010.0478%201.35%209.675%201.35H0.675C0.302208%201.35%200%201.04779%200%200.675Z'%20fill='white'/%3e%3c/svg%3e", fo = "_wrapper_zleo7_1", ho = "_disabled_zleo7_9", go = "_input_zleo7_13", bo = "_box_zleo7_22", Co = "_checkIcon_zleo7_36", xo = "_dashIcon_zleo7_41", wo = "_medium_zleo7_48", vo = "_small_zleo7_53", yo = "_compact_zleo7_68", $o = "_active_zleo7_80", No = "_primary_zleo7_87", ko = "_assistive_zleo7_92", X = {
786
- wrapper: fo,
787
- disabled: ho,
788
- input: go,
789
- box: bo,
790
- checkIcon: Co,
791
- dashIcon: xo,
792
- medium: wo,
793
- small: vo,
794
- compact: yo,
795
- active: $o,
796
- primary: No,
797
- assistive: ko
785
+ const ko = "data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.2773%200.197703C11.5409%200.461307%2011.5409%200.888693%2011.2773%201.1523L4.52728%207.9023C4.26368%208.1659%203.83629%208.1659%203.57269%207.9023L0.197702%204.5273C-0.0659007%204.26369%20-0.0659007%203.83631%200.197702%203.5727C0.461305%203.3091%200.88869%203.3091%201.15229%203.5727L4.04998%206.47041L10.3227%200.197703C10.5863%20-0.065901%2011.0136%20-0.065901%2011.2773%200.197703Z'%20fill='white'/%3e%3c/svg%3e", No = "data:image/svg+xml,%3csvg%20width='11'%20height='8'%20viewBox='0%200%2011%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0242%200.175736C10.2585%200.410051%2010.2585%200.78995%2010.0242%201.02426L4.02425%207.02426C3.78993%207.25858%203.41004%207.25858%203.17572%207.02426L0.175735%204.02426C-0.0585784%203.78995%20-0.0585784%203.41005%200.175735%203.17574C0.410049%202.94142%200.789946%202.94142%201.02426%203.17574L3.59999%205.75147L9.1757%200.175736C9.41001%20-0.0585787%209.78991%20-0.0585787%2010.0242%200.175736Z'%20fill='white'/%3e%3c/svg%3e", Bo = "data:image/svg+xml,%3csvg%20width='11'%20height='2'%20viewBox='0%200%2011%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%200.675C0%200.302208%200.302208%200%200.675%200H9.675C10.0478%200%2010.35%200.302208%2010.35%200.675C10.35%201.04779%2010.0478%201.35%209.675%201.35H0.675C0.302208%201.35%200%201.04779%200%200.675Z'%20fill='white'/%3e%3c/svg%3e", Lo = "_wrapper_zleo7_1", Eo = "_disabled_zleo7_9", Io = "_input_zleo7_13", To = "_box_zleo7_22", Ro = "_checkIcon_zleo7_36", So = "_dashIcon_zleo7_41", Mo = "_medium_zleo7_48", jo = "_small_zleo7_53", Do = "_compact_zleo7_68", Ao = "_active_zleo7_80", Ho = "_primary_zleo7_87", Wo = "_assistive_zleo7_92", Q = {
786
+ wrapper: Lo,
787
+ disabled: Eo,
788
+ input: Io,
789
+ box: To,
790
+ checkIcon: Ro,
791
+ dashIcon: So,
792
+ medium: Mo,
793
+ small: jo,
794
+ compact: Do,
795
+ active: Ao,
796
+ primary: Ho,
797
+ assistive: Wo
798
798
  };
799
- function oi({
799
+ function Dl({
800
800
  variant: e = "primary",
801
- size: t = "medium",
801
+ size: n = "medium",
802
802
  density: o = "default",
803
803
  disabled: s = !1,
804
- customStyle: l = {},
805
- className: _,
806
- checked: r = !1,
807
- indeterminate: a = !1,
808
- onChange: i,
809
- ...d
804
+ customStyle: r = {},
805
+ className: c,
806
+ checked: a = !1,
807
+ indeterminate: i = !1,
808
+ onChange: l,
809
+ ..._
810
810
  }) {
811
- const p = G(null);
812
- ie(() => {
813
- p.current && (p.current.indeterminate = a);
814
- }, [a]);
815
- const u = (C) => {
816
- i?.(C.target.checked);
817
- }, x = t === "small" ? mo : uo, f = [
818
- X.wrapper,
819
- X[e],
820
- X[t],
821
- X[o],
822
- r ? X.active : "",
823
- s ? X.disabled : "",
824
- _ ?? ""
811
+ const f = W(null);
812
+ ce(() => {
813
+ f.current && (f.current.indeterminate = i);
814
+ }, [i]);
815
+ const u = (g) => {
816
+ l?.(g.target.checked);
817
+ }, w = n === "small" ? No : ko, p = [
818
+ Q.wrapper,
819
+ Q[e],
820
+ Q[n],
821
+ Q[o],
822
+ a ? Q.active : "",
823
+ s ? Q.disabled : "",
824
+ c ?? ""
825
825
  ].filter(Boolean).join(" ");
826
- return /* @__PURE__ */ b("label", { "data-idb-component": !0, className: f, style: l, children: [
827
- /* @__PURE__ */ n(
826
+ return /* @__PURE__ */ x("label", { "data-idb-component": !0, className: p, style: r, children: [
827
+ /* @__PURE__ */ t(
828
828
  "input",
829
829
  {
830
- ref: p,
830
+ ref: f,
831
831
  type: "checkbox",
832
- className: X.input,
833
- checked: r,
832
+ className: Q.input,
833
+ checked: a,
834
834
  disabled: s,
835
835
  onChange: u,
836
- ...d
836
+ ..._
837
837
  }
838
838
  ),
839
- /* @__PURE__ */ b("span", { className: X.box, children: [
840
- r && a && /* @__PURE__ */ n(
839
+ /* @__PURE__ */ x("span", { className: Q.box, children: [
840
+ a && i && /* @__PURE__ */ t(
841
841
  "img",
842
842
  {
843
- src: po,
844
- className: X.dashIcon,
843
+ src: Bo,
844
+ className: Q.dashIcon,
845
845
  alt: "",
846
846
  "aria-hidden": "true"
847
847
  }
848
848
  ),
849
- r && !a && /* @__PURE__ */ n(
849
+ a && !i && /* @__PURE__ */ t(
850
850
  "img",
851
851
  {
852
- src: x,
853
- className: X.checkIcon,
852
+ src: w,
853
+ className: Q.checkIcon,
854
854
  alt: "",
855
855
  "aria-hidden": "true"
856
856
  }
@@ -858,375 +858,375 @@ function oi({
858
858
  ] })
859
859
  ] });
860
860
  }
861
- const Io = "_wrapper_kav3p_1", Bo = "_disabled_kav3p_9", Eo = "_input_kav3p_14", Lo = "_circle_kav3p_23", So = "_medium_kav3p_40", To = "_small_kav3p_45", jo = "_compact_kav3p_60", Mo = "_checked_kav3p_82", Do = "_primary_kav3p_82", Ro = "_assistive_kav3p_87", J = {
862
- wrapper: Io,
863
- disabled: Bo,
864
- input: Eo,
865
- circle: Lo,
866
- medium: So,
867
- small: To,
868
- compact: jo,
869
- checked: Mo,
870
- primary: Do,
871
- assistive: Ro
861
+ const Oo = "_wrapper_kav3p_1", Po = "_disabled_kav3p_9", qo = "_input_kav3p_14", Fo = "_circle_kav3p_23", zo = "_medium_kav3p_40", Ko = "_small_kav3p_45", Zo = "_compact_kav3p_60", Vo = "_checked_kav3p_82", Uo = "_primary_kav3p_82", Yo = "_assistive_kav3p_87", ne = {
862
+ wrapper: Oo,
863
+ disabled: Po,
864
+ input: qo,
865
+ circle: Fo,
866
+ medium: zo,
867
+ small: Ko,
868
+ compact: Zo,
869
+ checked: Vo,
870
+ primary: Uo,
871
+ assistive: Yo
872
872
  };
873
- function si({
873
+ function Al({
874
874
  variant: e = "primary",
875
- size: t = "medium",
875
+ size: n = "medium",
876
876
  density: o = "default",
877
877
  disabled: s = !1,
878
- checked: l = !1,
879
- customStyle: _ = {},
880
- className: r,
881
- onChange: a,
882
- ...i
878
+ checked: r = !1,
879
+ customStyle: c = {},
880
+ className: a,
881
+ onChange: i,
882
+ ...l
883
883
  }) {
884
- const d = (u) => {
885
- a?.(u.target.checked);
886
- }, p = [
887
- J.wrapper,
888
- J[e],
889
- J[t],
890
- J[o],
891
- l ? J.checked : J.unchecked,
892
- s ? J.disabled : "",
893
- r ?? ""
884
+ const _ = (u) => {
885
+ i?.(u.target.checked);
886
+ }, f = [
887
+ ne.wrapper,
888
+ ne[e],
889
+ ne[n],
890
+ ne[o],
891
+ r ? ne.checked : ne.unchecked,
892
+ s ? ne.disabled : "",
893
+ a ?? ""
894
894
  ].filter(Boolean).join(" ");
895
- return /* @__PURE__ */ b("label", { "data-idb-component": !0, className: p, style: _, children: [
896
- /* @__PURE__ */ n(
895
+ return /* @__PURE__ */ x("label", { "data-idb-component": !0, className: f, style: c, children: [
896
+ /* @__PURE__ */ t(
897
897
  "input",
898
898
  {
899
899
  type: "radio",
900
- className: J.input,
901
- checked: l,
900
+ className: ne.input,
901
+ checked: r,
902
902
  disabled: s,
903
- onChange: d,
904
- ...i
903
+ onChange: _,
904
+ ...l
905
905
  }
906
906
  ),
907
- /* @__PURE__ */ n("span", { className: J.circle })
907
+ /* @__PURE__ */ t("span", { className: ne.circle })
908
908
  ] });
909
909
  }
910
- const Ao = "_wrapper_tycam_1", Ho = "_disabled_tycam_8", qo = "_input_tycam_13", Oo = "_track_tycam_22", Wo = "_thumb_tycam_31", Po = "_small_tycam_41", Fo = "_medium_tycam_52", zo = "_large_tycam_63", Ko = "_off_tycam_76", Vo = "_on_tycam_82", ee = {
911
- wrapper: Ao,
912
- disabled: Ho,
913
- input: qo,
914
- track: Oo,
915
- thumb: Wo,
916
- small: Po,
917
- medium: Fo,
918
- large: zo,
919
- off: Ko,
920
- on: Vo
910
+ const Xo = "_wrapper_tycam_1", Go = "_disabled_tycam_8", Jo = "_input_tycam_13", Qo = "_track_tycam_22", es = "_thumb_tycam_31", ts = "_small_tycam_41", ns = "_medium_tycam_52", os = "_large_tycam_63", ss = "_off_tycam_76", rs = "_on_tycam_82", ie = {
911
+ wrapper: Xo,
912
+ disabled: Go,
913
+ input: Jo,
914
+ track: Qo,
915
+ thumb: es,
916
+ small: ts,
917
+ medium: ns,
918
+ large: os,
919
+ off: ss,
920
+ on: rs
921
921
  };
922
- function li({
922
+ function Hl({
923
923
  size: e = "medium",
924
- active: t = !1,
924
+ active: n = !1,
925
925
  disabled: o = !1,
926
926
  customStyle: s = {},
927
- className: l,
928
- onChange: _,
929
- ...r
927
+ className: r,
928
+ onChange: c,
929
+ ...a
930
930
  }) {
931
- const a = (d) => {
932
- _?.(d.target.checked);
933
- }, i = [
934
- ee.wrapper,
935
- ee[e],
936
- t ? ee.on : ee.off,
937
- o ? ee.disabled : "",
938
- l ?? ""
931
+ const i = (_) => {
932
+ c?.(_.target.checked);
933
+ }, l = [
934
+ ie.wrapper,
935
+ ie[e],
936
+ n ? ie.on : ie.off,
937
+ o ? ie.disabled : "",
938
+ r ?? ""
939
939
  ].filter(Boolean).join(" ");
940
- return /* @__PURE__ */ b("label", { "data-idb-component": !0, className: i, style: s, children: [
941
- /* @__PURE__ */ n(
940
+ return /* @__PURE__ */ x("label", { "data-idb-component": !0, className: l, style: s, children: [
941
+ /* @__PURE__ */ t(
942
942
  "input",
943
943
  {
944
944
  type: "checkbox",
945
- className: ee.input,
946
- checked: t,
945
+ className: ie.input,
946
+ checked: n,
947
947
  disabled: o,
948
- onChange: a,
949
- ...r
948
+ onChange: i,
949
+ ...a
950
950
  }
951
951
  ),
952
- /* @__PURE__ */ n("span", { className: ee.track, children: /* @__PURE__ */ n("span", { className: ee.thumb }) })
952
+ /* @__PURE__ */ t("span", { className: ie.track, children: /* @__PURE__ */ t("span", { className: ie.thumb }) })
953
953
  ] });
954
954
  }
955
- const Zo = "_badge_iiym7_1", Uo = "_dot_iiym7_16", Yo = "_number_iiym7_23", Xo = "_info_iiym7_36", Pe = {
956
- badge: Zo,
957
- dot: Uo,
958
- number: Yo,
959
- info: Xo
955
+ const ls = "_badge_iiym7_1", is = "_dot_iiym7_16", as = "_number_iiym7_23", cs = "_info_iiym7_36", Xe = {
956
+ badge: ls,
957
+ dot: is,
958
+ number: as,
959
+ info: cs
960
960
  };
961
- function ii({
961
+ function Wl({
962
962
  variant: e = "number",
963
- count: t = 1,
963
+ count: n = 1,
964
964
  bgColor: o,
965
965
  color: s,
966
- disabled: l = !1,
967
- customStyle: _ = {},
968
- className: r
966
+ disabled: r = !1,
967
+ customStyle: c = {},
968
+ className: a
969
969
  }) {
970
- if (l)
970
+ if (r)
971
971
  return null;
972
- const a = t > 999 ? "999+" : t, i = {
972
+ const i = n > 999 ? "999+" : n, l = {
973
973
  ...o ? { backgroundColor: o } : {},
974
974
  ...s ? { color: s } : {},
975
- ..._
976
- }, d = [Pe.badge, Pe[e], r ?? ""].filter(Boolean).join(" ");
977
- return /* @__PURE__ */ b("span", { "data-idb-component": !0, className: d, style: i, children: [
978
- e === "number" ? a : null,
975
+ ...c
976
+ }, _ = [Xe.badge, Xe[e], a ?? ""].filter(Boolean).join(" ");
977
+ return /* @__PURE__ */ x("span", { "data-idb-component": !0, className: _, style: l, children: [
978
+ e === "number" ? i : null,
979
979
  e === "info" ? "?" : null
980
980
  ] });
981
981
  }
982
- var le = {}, Fe;
983
- function Go() {
984
- if (Fe) return le;
985
- Fe = 1;
986
- var e = Xe;
982
+ var _e = {}, Ge;
983
+ function ds() {
984
+ if (Ge) return _e;
985
+ Ge = 1;
986
+ var e = ct;
987
987
  if (process.env.NODE_ENV === "production")
988
- le.createRoot = e.createRoot, le.hydrateRoot = e.hydrateRoot;
988
+ _e.createRoot = e.createRoot, _e.hydrateRoot = e.hydrateRoot;
989
989
  else {
990
- var t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
991
- le.createRoot = function(o, s) {
992
- t.usingClientEntryPoint = !0;
990
+ var n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
991
+ _e.createRoot = function(o, s) {
992
+ n.usingClientEntryPoint = !0;
993
993
  try {
994
994
  return e.createRoot(o, s);
995
995
  } finally {
996
- t.usingClientEntryPoint = !1;
996
+ n.usingClientEntryPoint = !1;
997
997
  }
998
- }, le.hydrateRoot = function(o, s, l) {
999
- t.usingClientEntryPoint = !0;
998
+ }, _e.hydrateRoot = function(o, s, r) {
999
+ n.usingClientEntryPoint = !0;
1000
1000
  try {
1001
- return e.hydrateRoot(o, s, l);
1001
+ return e.hydrateRoot(o, s, r);
1002
1002
  } finally {
1003
- t.usingClientEntryPoint = !1;
1003
+ n.usingClientEntryPoint = !1;
1004
1004
  }
1005
1005
  };
1006
1006
  }
1007
- return le;
1007
+ return _e;
1008
1008
  }
1009
- var Ke = Go();
1010
- const Jo = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM13.8722%208.22987C14.1602%207.93224%2014.1525%207.45743%2013.8549%207.16935C13.5572%206.88127%2013.0824%206.88901%2012.7944%207.18664L8.89773%2011.2124L7.20623%209.4601C6.91856%209.16208%206.44376%209.15369%206.14574%209.44137C5.84772%209.72904%205.83933%2010.2038%206.12701%2010.5019L8.35739%2012.8125C8.4986%2012.9588%208.69316%2013.0414%208.89649%2013.0416C9.09982%2013.0417%209.29449%2012.9593%209.4359%2012.8132L13.8722%208.22987Z'%20fill='%2300CC89'/%3e%3c/svg%3e", Qo = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.01687%202.58344C9.64256%202.30487%2010.3571%202.30487%2010.9828%202.58344C11.4189%202.77761%2011.7337%203.13353%2012.0073%203.52081C12.2786%203.90474%2012.577%204.42169%2012.9401%205.05063L17.1992%2012.4276C17.5623%2013.0565%2017.8608%2013.5734%2018.0576%2014.0003C18.2562%2014.4309%2018.407%2014.8815%2018.3571%2015.3563C18.2855%2016.0374%2017.9283%2016.6562%2017.3742%2017.0588C16.988%2017.3394%2016.5223%2017.4341%2016.0501%2017.4774C15.582%2017.5204%2014.9851%2017.5204%2014.2588%2017.5203H5.74078C5.01454%2017.5204%204.41762%2017.5204%203.94949%2017.4774C3.4773%2017.4341%203.01164%2017.3394%202.62544%2017.0588C2.07134%2016.6562%201.71409%2016.0374%201.64249%2015.3563C1.59259%2014.8815%201.74341%2014.4309%201.94199%2014.0003C2.13886%2013.5734%202.43733%2013.0565%202.80046%2012.4275L7.0595%205.05064C7.42261%204.42169%207.72106%203.90474%207.99231%203.5208C8.26593%203.13353%208.58077%202.77761%209.01687%202.58344ZM9.99995%206.74951C10.4142%206.74951%2010.7499%207.0853%2010.7499%207.49951V10.8328C10.7499%2011.2471%2010.4142%2011.5828%209.99995%2011.5828C9.58574%2011.5828%209.24995%2011.2471%209.24995%2010.8328V7.49951C9.24995%207.0853%209.58574%206.74951%209.99995%206.74951ZM10.8332%2013.7495C10.8332%2014.2097%2010.4601%2014.5828%209.99985%2014.5828C9.53961%2014.5828%209.16652%2014.2097%209.16652%2013.7495C9.16652%2013.2893%209.53961%2012.9162%209.99985%2012.9162C10.4601%2012.9162%2010.8332%2013.2893%2010.8332%2013.7495Z'%20fill='%23FF334B'/%3e%3c/svg%3e", es = "_designContainer_1kal7_1", ns = "_toast_1kal7_11", ts = "_toastEnter_1kal7_1", os = "_basic_1kal7_32", ss = "_positive_1kal7_36", ls = "_negative_1kal7_40", is = "_content_1kal7_44", rs = "_iconSlot_1kal7_55", as = "_message_1kal7_64", cs = "_icon_1kal7_55", ds = "_toastExit_1kal7_89", Q = {
1011
- designContainer: es,
1012
- toast: ns,
1013
- toastEnter: ts,
1014
- basic: os,
1015
- positive: ss,
1016
- negative: ls,
1017
- content: is,
1018
- iconSlot: rs,
1019
- message: as,
1020
- icon: cs,
1021
- toastExit: ds
1022
- }, _s = 3e3, us = 180;
1023
- let me = null, we = null, j = null, ms = 0, ye = null, $e = null;
1024
- function je() {
1025
- ye !== null && (window.clearTimeout(ye), ye = null);
1009
+ var Qe = ds();
1010
+ const _s = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM13.8722%208.22987C14.1602%207.93224%2014.1525%207.45743%2013.8549%207.16935C13.5572%206.88127%2013.0824%206.88901%2012.7944%207.18664L8.89773%2011.2124L7.20623%209.4601C6.91856%209.16208%206.44376%209.15369%206.14574%209.44137C5.84772%209.72904%205.83933%2010.2038%206.12701%2010.5019L8.35739%2012.8125C8.4986%2012.9588%208.69316%2013.0414%208.89649%2013.0416C9.09982%2013.0417%209.29449%2012.9593%209.4359%2012.8132L13.8722%208.22987Z'%20fill='%2300CC89'/%3e%3c/svg%3e", us = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.01687%202.58344C9.64256%202.30487%2010.3571%202.30487%2010.9828%202.58344C11.4189%202.77761%2011.7337%203.13353%2012.0073%203.52081C12.2786%203.90474%2012.577%204.42169%2012.9401%205.05063L17.1992%2012.4276C17.5623%2013.0565%2017.8608%2013.5734%2018.0576%2014.0003C18.2562%2014.4309%2018.407%2014.8815%2018.3571%2015.3563C18.2855%2016.0374%2017.9283%2016.6562%2017.3742%2017.0588C16.988%2017.3394%2016.5223%2017.4341%2016.0501%2017.4774C15.582%2017.5204%2014.9851%2017.5204%2014.2588%2017.5203H5.74078C5.01454%2017.5204%204.41762%2017.5204%203.94949%2017.4774C3.4773%2017.4341%203.01164%2017.3394%202.62544%2017.0588C2.07134%2016.6562%201.71409%2016.0374%201.64249%2015.3563C1.59259%2014.8815%201.74341%2014.4309%201.94199%2014.0003C2.13886%2013.5734%202.43733%2013.0565%202.80046%2012.4275L7.0595%205.05064C7.42261%204.42169%207.72106%203.90474%207.99231%203.5208C8.26593%203.13353%208.58077%202.77761%209.01687%202.58344ZM9.99995%206.74951C10.4142%206.74951%2010.7499%207.0853%2010.7499%207.49951V10.8328C10.7499%2011.2471%2010.4142%2011.5828%209.99995%2011.5828C9.58574%2011.5828%209.24995%2011.2471%209.24995%2010.8328V7.49951C9.24995%207.0853%209.58574%206.74951%209.99995%206.74951ZM10.8332%2013.7495C10.8332%2014.2097%2010.4601%2014.5828%209.99985%2014.5828C9.53961%2014.5828%209.16652%2014.2097%209.16652%2013.7495C9.16652%2013.2893%209.53961%2012.9162%209.99985%2012.9162C10.4601%2012.9162%2010.8332%2013.2893%2010.8332%2013.7495Z'%20fill='%23FF334B'/%3e%3c/svg%3e", ps = "_designContainer_1kal7_1", ms = "_toast_1kal7_11", fs = "_toastEnter_1kal7_1", hs = "_basic_1kal7_32", gs = "_positive_1kal7_36", bs = "_negative_1kal7_40", ws = "_content_1kal7_44", xs = "_iconSlot_1kal7_55", Cs = "_message_1kal7_64", vs = "_icon_1kal7_55", ys = "_toastExit_1kal7_89", oe = {
1011
+ designContainer: ps,
1012
+ toast: ms,
1013
+ toastEnter: fs,
1014
+ basic: hs,
1015
+ positive: gs,
1016
+ negative: bs,
1017
+ content: ws,
1018
+ iconSlot: xs,
1019
+ message: Cs,
1020
+ icon: vs,
1021
+ toastExit: ys
1022
+ }, $s = 3e3, ks = 180;
1023
+ let be = null, ke = null, j = null, Ns = 0, Le = null, Ee = null;
1024
+ function Pe() {
1025
+ Le !== null && (window.clearTimeout(Le), Le = null);
1026
1026
  }
1027
- function Me() {
1028
- $e !== null && (window.clearTimeout($e), $e = null);
1027
+ function qe() {
1028
+ Ee !== null && (window.clearTimeout(Ee), Ee = null);
1029
1029
  }
1030
- function ke() {
1031
- if (!me)
1030
+ function Te() {
1031
+ if (!be)
1032
1032
  return;
1033
1033
  if (!j) {
1034
- me.render(null);
1034
+ be.render(null);
1035
1035
  return;
1036
1036
  }
1037
- const e = j.variant === "positive" ? /* @__PURE__ */ n("img", { src: Jo, className: Q.icon, alt: "", "aria-hidden": "true" }) : j.variant === "negative" ? /* @__PURE__ */ n("img", { src: Qo, className: Q.icon, alt: "", "aria-hidden": "true" }) : null, t = j.icon !== void 0 ? j.icon : e;
1038
- me.render(
1039
- /* @__PURE__ */ n("div", { className: Q.designContainer, children: /* @__PURE__ */ n(
1037
+ const e = j.variant === "positive" ? /* @__PURE__ */ t("img", { src: _s, className: oe.icon, alt: "", "aria-hidden": "true" }) : j.variant === "negative" ? /* @__PURE__ */ t("img", { src: us, className: oe.icon, alt: "", "aria-hidden": "true" }) : null, n = j.icon !== void 0 ? j.icon : e;
1038
+ be.render(
1039
+ /* @__PURE__ */ t("div", { className: oe.designContainer, children: /* @__PURE__ */ t(
1040
1040
  "div",
1041
1041
  {
1042
1042
  className: [
1043
- Q.toast,
1044
- Q[j.variant],
1045
- j.isExiting ? Q.toastExit : ""
1043
+ oe.toast,
1044
+ oe[j.variant],
1045
+ j.isExiting ? oe.toastExit : ""
1046
1046
  ].filter(Boolean).join(" "),
1047
1047
  style: j.customStyle,
1048
- children: /* @__PURE__ */ b("span", { className: Q.content, children: [
1049
- t ? /* @__PURE__ */ n("span", { className: Q.iconSlot, children: t }) : null,
1050
- /* @__PURE__ */ n("span", { className: Q.message, children: j.message })
1048
+ children: /* @__PURE__ */ x("span", { className: oe.content, children: [
1049
+ n ? /* @__PURE__ */ t("span", { className: oe.iconSlot, children: n }) : null,
1050
+ /* @__PURE__ */ t("span", { className: oe.message, children: j.message })
1051
1051
  ] })
1052
1052
  },
1053
1053
  j.renderKey
1054
1054
  ) })
1055
1055
  );
1056
1056
  }
1057
- function Ve() {
1058
- !j || j.isExiting || (je(), Me(), j = {
1057
+ function et() {
1058
+ !j || j.isExiting || (Pe(), qe(), j = {
1059
1059
  ...j,
1060
1060
  isExiting: !0
1061
- }, ke(), $e = window.setTimeout(() => {
1062
- j = null, ke(), Me();
1063
- }, us));
1061
+ }, Te(), Ee = window.setTimeout(() => {
1062
+ j = null, Te(), qe();
1063
+ }, ks));
1064
1064
  }
1065
- function ps() {
1066
- je(), Me(), ye = window.setTimeout(() => {
1067
- Ve(), je();
1068
- }, _s);
1065
+ function Bs() {
1066
+ Pe(), qe(), Le = window.setTimeout(() => {
1067
+ et(), Pe();
1068
+ }, $s);
1069
1069
  }
1070
- function fs() {
1071
- return typeof window > "u" || typeof document > "u" ? !1 : (me || (we = document.createElement("div"), we.setAttribute("data-idb-toast-root", "true"), document.body.appendChild(we), me = Ke.createRoot(we), ke()), !0);
1070
+ function Ls() {
1071
+ return typeof window > "u" || typeof document > "u" ? !1 : (be || (ke = document.createElement("div"), ke.setAttribute("data-idb-toast-root", "true"), document.body.appendChild(ke), be = Qe.createRoot(ke), Te()), !0);
1072
1072
  }
1073
- function ri({ message: e, variant: t = "basic", customStyle: o, icon: s }) {
1074
- e != null && fs() && (j = {
1073
+ function Ol({ message: e, variant: n = "basic", customStyle: o, icon: s }) {
1074
+ e != null && Ls() && (j = {
1075
1075
  message: e,
1076
- variant: t,
1076
+ variant: n,
1077
1077
  customStyle: o,
1078
1078
  icon: s,
1079
1079
  isExiting: !1,
1080
- renderKey: ms++
1081
- }, ke(), ps());
1080
+ renderKey: Ns++
1081
+ }, Te(), Bs());
1082
1082
  }
1083
- function ai() {
1084
- Ve();
1083
+ function Pl() {
1084
+ et();
1085
1085
  }
1086
- const hs = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1969_3981)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9354%204.93441C14.2478%204.62219%2014.7539%204.62206%2015.0662%204.93441C15.3786%205.24677%2015.3785%205.75284%2015.0662%206.06527L11.1307%2010.0008L15.0643%2013.9344C15.3767%2014.2468%2015.3767%2014.7529%2015.0643%2015.0653C14.7519%2015.3777%2014.2459%2015.3777%2013.9334%2015.0653L9.99984%2011.1317L6.06625%2015.0653C5.75383%2015.3777%205.24781%2015.3777%204.93539%2015.0653C4.62297%2014.7529%204.62297%2014.2468%204.93539%2013.9344L8.86898%2010.0008L4.93344%206.06527C4.62121%205.75284%204.62108%205.24677%204.93344%204.93441C5.24579%204.62206%205.75186%204.62219%206.06429%204.93441L9.99984%208.86996L13.9354%204.93441Z'%20fill='%2370737C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1969_3981'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", gs = "_designContainer_2k7ic_1", bs = "_snackbar_2k7ic_12", Cs = "_snackbarEnter_2k7ic_1", xs = "_content_2k7ic_32", ws = "_leading_2k7ic_41", vs = "_iconSlot_2k7ic_51", ys = "_message_2k7ic_67", $s = "_heading_2k7ic_77", Ns = "_description_2k7ic_78", ks = "_measureContent_2k7ic_93", Is = "_closeButton_2k7ic_107", Bs = "_trailing_2k7ic_111", Es = "_actionButton_2k7ic_118", Ls = "_closeIcon_2k7ic_122", Ss = "_basic_2k7ic_129", Ts = "_loading_2k7ic_130", js = "_snackbarExit_2k7ic_138", E = {
1087
- designContainer: gs,
1088
- snackbar: bs,
1089
- snackbarEnter: Cs,
1090
- content: xs,
1091
- leading: ws,
1092
- iconSlot: vs,
1093
- message: ys,
1094
- heading: $s,
1095
- description: Ns,
1096
- measureContent: ks,
1097
- closeButton: Is,
1098
- trailing: Bs,
1099
- actionButton: Es,
1100
- closeIcon: Ls,
1101
- basic: Ss,
1102
- loading: Ts,
1103
- snackbarExit: js
1104
- }, Ms = 6e3, Ds = 1e4, Rs = 180;
1105
- let pe = null, D = null, As = 0, fe = null, Ne = null, Ie = null, be = 0;
1106
- function he(e) {
1086
+ const Es = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1969_3981)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9354%204.93441C14.2478%204.62219%2014.7539%204.62206%2015.0662%204.93441C15.3786%205.24677%2015.3785%205.75284%2015.0662%206.06527L11.1307%2010.0008L15.0643%2013.9344C15.3767%2014.2468%2015.3767%2014.7529%2015.0643%2015.0653C14.7519%2015.3777%2014.2459%2015.3777%2013.9334%2015.0653L9.99984%2011.1317L6.06625%2015.0653C5.75383%2015.3777%205.24781%2015.3777%204.93539%2015.0653C4.62297%2014.7529%204.62297%2014.2468%204.93539%2013.9344L8.86898%2010.0008L4.93344%206.06527C4.62121%205.75284%204.62108%205.24677%204.93344%204.93441C5.24579%204.62206%205.75186%204.62219%206.06429%204.93441L9.99984%208.86996L13.9354%204.93441Z'%20fill='%2370737C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1969_3981'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Is = "_designContainer_2k7ic_1", Ts = "_snackbar_2k7ic_12", Rs = "_snackbarEnter_2k7ic_1", Ss = "_content_2k7ic_32", Ms = "_leading_2k7ic_41", js = "_iconSlot_2k7ic_51", Ds = "_message_2k7ic_67", As = "_heading_2k7ic_77", Hs = "_description_2k7ic_78", Ws = "_measureContent_2k7ic_93", Os = "_closeButton_2k7ic_107", Ps = "_trailing_2k7ic_111", qs = "_actionButton_2k7ic_118", Fs = "_closeIcon_2k7ic_122", zs = "_basic_2k7ic_129", Ks = "_loading_2k7ic_130", Zs = "_snackbarExit_2k7ic_138", R = {
1087
+ designContainer: Is,
1088
+ snackbar: Ts,
1089
+ snackbarEnter: Rs,
1090
+ content: Ss,
1091
+ leading: Ms,
1092
+ iconSlot: js,
1093
+ message: Ds,
1094
+ heading: As,
1095
+ description: Hs,
1096
+ measureContent: Ws,
1097
+ closeButton: Os,
1098
+ trailing: Ps,
1099
+ actionButton: qs,
1100
+ closeIcon: Fs,
1101
+ basic: zs,
1102
+ loading: Ks,
1103
+ snackbarExit: Zs
1104
+ }, Vs = 6e3, Us = 1e4, Ys = 180;
1105
+ let we = null, A = null, Xs = 0, xe = null, Ie = null, Re = null, ve = 0;
1106
+ function Ce(e) {
1107
1107
  return e != null && typeof e != "boolean" && (typeof e != "string" || e.trim() !== "");
1108
1108
  }
1109
- function ae() {
1110
- fe !== null && (window.clearTimeout(fe), fe = null), Ie = null;
1109
+ function me() {
1110
+ xe !== null && (window.clearTimeout(xe), xe = null), Re = null;
1111
1111
  }
1112
- function Ce() {
1113
- Ne !== null && (window.clearTimeout(Ne), Ne = null);
1112
+ function ye() {
1113
+ Ie !== null && (window.clearTimeout(Ie), Ie = null);
1114
1114
  }
1115
- function Hs() {
1115
+ function Gs() {
1116
1116
  if (typeof window > "u" || typeof document > "u")
1117
1117
  return !1;
1118
- if (pe)
1118
+ if (we)
1119
1119
  return !0;
1120
1120
  const e = document.createElement("div");
1121
- return e.setAttribute("data-idb-snackbar-root", "true"), document.body.appendChild(e), pe = Ke.createRoot(e), !0;
1121
+ return e.setAttribute("data-idb-snackbar-root", "true"), document.body.appendChild(e), we = Qe.createRoot(e), !0;
1122
1122
  }
1123
- function qs() {
1124
- if (fe === null || Ie === null || !D || D.isExiting)
1123
+ function Js() {
1124
+ if (xe === null || Re === null || !A || A.isExiting)
1125
1125
  return;
1126
- const e = Date.now() - Ie;
1127
- be = Math.max(0, be - e), ae();
1126
+ const e = Date.now() - Re;
1127
+ ve = Math.max(0, ve - e), me();
1128
1128
  }
1129
- function De() {
1130
- if (!D || D.isExiting)
1129
+ function Fe() {
1130
+ if (!A || A.isExiting)
1131
1131
  return;
1132
- ae(), Ce(), D = {
1133
- ...D,
1132
+ me(), ye(), A = {
1133
+ ...A,
1134
1134
  isExiting: !0
1135
1135
  };
1136
- const e = D.renderKey;
1137
- Re(), Ne = window.setTimeout(() => {
1138
- D?.renderKey === e && D.isExiting && (D = null, Re()), Ce();
1139
- }, Rs);
1136
+ const e = A.renderKey;
1137
+ ze(), Ie = window.setTimeout(() => {
1138
+ A?.renderKey === e && A.isExiting && (A = null, ze()), ye();
1139
+ }, Ys);
1140
1140
  }
1141
- function Ze() {
1142
- if (!(!D || D.isExiting)) {
1143
- if (be <= 0) {
1144
- De();
1141
+ function tt() {
1142
+ if (!(!A || A.isExiting)) {
1143
+ if (ve <= 0) {
1144
+ Fe();
1145
1145
  return;
1146
1146
  }
1147
- ae(), Ie = Date.now(), fe = window.setTimeout(() => {
1148
- De();
1149
- }, be);
1147
+ me(), Re = Date.now(), xe = window.setTimeout(() => {
1148
+ Fe();
1149
+ }, ve);
1150
1150
  }
1151
1151
  }
1152
- function Os(e) {
1153
- ae(), Ce(), be = e, Ze();
1152
+ function Qs(e) {
1153
+ me(), ye(), ve = e, tt();
1154
1154
  }
1155
- function Ws({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: s }) {
1156
- const l = G(null), [_, r] = Z(!1), a = he(e.heading), i = he(e.description);
1157
- ie(() => {
1158
- if (!a) {
1159
- r(!1);
1155
+ function er({ snackbar: e, onPauseAutoHide: n, onResumeAutoHide: o, onClose: s }) {
1156
+ const r = W(null), [c, a] = O(!1), i = Ce(e.heading), l = Ce(e.description);
1157
+ ce(() => {
1158
+ if (!i) {
1159
+ a(!1);
1160
1160
  return;
1161
1161
  }
1162
- const f = l.current;
1163
- if (!f)
1162
+ const p = r.current;
1163
+ if (!p)
1164
1164
  return;
1165
- let C = null;
1166
- const N = () => {
1167
- r(f.scrollHeight > f.clientHeight + 1);
1168
- }, $ = () => {
1169
- C !== null && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(N);
1165
+ let g = null;
1166
+ const C = () => {
1167
+ a(p.scrollHeight > p.clientHeight + 1);
1168
+ }, v = () => {
1169
+ g !== null && window.cancelAnimationFrame(g), g = window.requestAnimationFrame(C);
1170
1170
  };
1171
- $();
1172
- const I = typeof ResizeObserver < "u";
1173
- let c = null;
1174
- return I ? (c = new ResizeObserver($), c.observe(f)) : window.addEventListener("resize", $), () => {
1175
- C !== null && window.cancelAnimationFrame(C), c?.disconnect(), I || window.removeEventListener("resize", $);
1171
+ v();
1172
+ const N = typeof ResizeObserver < "u";
1173
+ let d = null;
1174
+ return N ? (d = new ResizeObserver(v), d.observe(p)) : window.addEventListener("resize", v), () => {
1175
+ g !== null && window.cancelAnimationFrame(g), d?.disconnect(), N || window.removeEventListener("resize", v);
1176
1176
  };
1177
- }, [a, e.description, e.heading]);
1178
- const d = a && !_, p = a ? i ? /* @__PURE__ */ b(ge, { children: [
1177
+ }, [i, e.description, e.heading]);
1178
+ const _ = i && !c, f = i ? l ? /* @__PURE__ */ x(ue, { children: [
1179
1179
  e.heading,
1180
1180
  " ",
1181
1181
  e.description
1182
- ] }) : e.heading : e.description, u = e.icon ? /* @__PURE__ */ n("span", { className: E.iconSlot, children: e.icon }) : e.variant === "loading" ? /* @__PURE__ */ n(xe, { size: 20, color: "currentColor" }) : null, x = he(e.actionLabel);
1183
- return /* @__PURE__ */ n("div", { className: E.designContainer, children: /* @__PURE__ */ n(
1182
+ ] }) : e.heading : e.description, u = e.icon ? /* @__PURE__ */ t("span", { className: R.iconSlot, children: e.icon }) : e.variant === "loading" ? /* @__PURE__ */ t($e, { size: 20, color: "currentColor" }) : null, w = Ce(e.actionLabel);
1183
+ return /* @__PURE__ */ t("div", { className: R.designContainer, children: /* @__PURE__ */ t(
1184
1184
  "div",
1185
1185
  {
1186
1186
  "data-idb-component": !0,
1187
1187
  className: [
1188
- E.snackbar,
1189
- E[e.variant],
1190
- e.isExiting ? E.snackbarExit : ""
1188
+ R.snackbar,
1189
+ R[e.variant],
1190
+ e.isExiting ? R.snackbarExit : ""
1191
1191
  ].filter(Boolean).join(" "),
1192
1192
  style: e.customStyle,
1193
1193
  role: "status",
1194
1194
  "aria-live": "polite",
1195
- onMouseEnter: t,
1195
+ onMouseEnter: n,
1196
1196
  onMouseLeave: o,
1197
- children: /* @__PURE__ */ b("div", { className: E.content, children: [
1198
- u ? /* @__PURE__ */ n("span", { className: E.leading, children: u }) : null,
1199
- /* @__PURE__ */ b("div", { className: E.message, children: [
1200
- d ? /* @__PURE__ */ b(ge, { children: [
1201
- /* @__PURE__ */ n("p", { className: E.heading, children: e.heading }),
1202
- i ? /* @__PURE__ */ n("p", { className: E.description, children: e.description }) : null
1203
- ] }) : /* @__PURE__ */ n("p", { className: E.description, children: p }),
1204
- a ? (
1197
+ children: /* @__PURE__ */ x("div", { className: R.content, children: [
1198
+ u ? /* @__PURE__ */ t("span", { className: R.leading, children: u }) : null,
1199
+ /* @__PURE__ */ x("div", { className: R.message, children: [
1200
+ _ ? /* @__PURE__ */ x(ue, { children: [
1201
+ /* @__PURE__ */ t("p", { className: R.heading, children: e.heading }),
1202
+ l ? /* @__PURE__ */ t("p", { className: R.description, children: e.description }) : null
1203
+ ] }) : /* @__PURE__ */ t("p", { className: R.description, children: f }),
1204
+ i ? (
1205
1205
  // 실제 화면에는 보이지 않지만 heading 2줄 초과 여부를 안정적으로 측정하기 위한 숨김 영역
1206
- /* @__PURE__ */ b("div", { ref: l, className: E.measureContent, "aria-hidden": "true", children: [
1207
- /* @__PURE__ */ n("p", { className: E.heading, children: e.heading }),
1208
- i ? /* @__PURE__ */ n("p", { className: E.description, children: e.description }) : null
1206
+ /* @__PURE__ */ x("div", { ref: r, className: R.measureContent, "aria-hidden": "true", children: [
1207
+ /* @__PURE__ */ t("p", { className: R.heading, children: e.heading }),
1208
+ l ? /* @__PURE__ */ t("p", { className: R.description, children: e.description }) : null
1209
1209
  ] })
1210
1210
  ) : null
1211
1211
  ] }),
1212
- x || e.closeButton ? /* @__PURE__ */ b("span", { className: E.trailing, children: [
1213
- x ? /* @__PURE__ */ n(
1214
- Qn,
1212
+ w || e.closeButton ? /* @__PURE__ */ x("span", { className: R.trailing, children: [
1213
+ w ? /* @__PURE__ */ t(
1214
+ un,
1215
1215
  {
1216
1216
  widthType: "flexible",
1217
1217
  variant: "primary",
1218
- className: E.actionButton,
1218
+ className: R.actionButton,
1219
1219
  onClick: e.onActionClick,
1220
1220
  children: e.actionLabel
1221
1221
  }
1222
1222
  ) : null,
1223
- e.closeButton ? /* @__PURE__ */ n(
1224
- Te,
1223
+ e.closeButton ? /* @__PURE__ */ t(
1224
+ Oe,
1225
1225
  {
1226
1226
  size: "small",
1227
- className: E.closeButton,
1227
+ className: R.closeButton,
1228
1228
  onClick: s,
1229
- children: /* @__PURE__ */ n("img", { src: hs, alt: "", "aria-hidden": "true", className: E.closeIcon })
1229
+ children: /* @__PURE__ */ t("img", { src: Es, alt: "", "aria-hidden": "true", className: R.closeIcon })
1230
1230
  }
1231
1231
  ) : null
1232
1232
  ] }) : null
@@ -1235,386 +1235,605 @@ function Ws({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: s }
1235
1235
  e.renderKey
1236
1236
  ) });
1237
1237
  }
1238
- function Re() {
1239
- if (pe) {
1240
- if (!D) {
1241
- ae(), Ce(), pe.render(null);
1238
+ function ze() {
1239
+ if (we) {
1240
+ if (!A) {
1241
+ me(), ye(), we.render(null);
1242
1242
  return;
1243
1243
  }
1244
- pe.render(
1245
- /* @__PURE__ */ n(
1246
- Ws,
1244
+ we.render(
1245
+ /* @__PURE__ */ t(
1246
+ er,
1247
1247
  {
1248
- snackbar: D,
1249
- onPauseAutoHide: qs,
1250
- onResumeAutoHide: Ze,
1251
- onClose: Ps
1248
+ snackbar: A,
1249
+ onPauseAutoHide: Js,
1250
+ onResumeAutoHide: tt,
1251
+ onClose: tr
1252
1252
  }
1253
1253
  )
1254
1254
  );
1255
1255
  }
1256
1256
  }
1257
- function ci({
1257
+ function ql({
1258
1258
  variant: e = "basic",
1259
- heading: t,
1259
+ heading: n,
1260
1260
  description: o,
1261
1261
  icon: s,
1262
- actionLabel: l,
1263
- onActionClick: _,
1264
- closeButton: r = !1,
1265
- customStyle: a
1262
+ actionLabel: r,
1263
+ onActionClick: c,
1264
+ closeButton: a = !1,
1265
+ customStyle: i
1266
1266
  }) {
1267
- if (!he(t) && !he(o) || !Hs())
1267
+ if (!Ce(n) && !Ce(o) || !Gs())
1268
1268
  return;
1269
- ae(), Ce();
1270
- const i = r ? Ds : Ms;
1271
- D = {
1269
+ me(), ye();
1270
+ const l = a ? Us : Vs;
1271
+ A = {
1272
1272
  variant: e,
1273
- heading: t,
1273
+ heading: n,
1274
1274
  description: o,
1275
1275
  icon: s,
1276
- actionLabel: l,
1277
- onActionClick: _,
1278
- closeButton: r,
1279
- customStyle: a,
1276
+ actionLabel: r,
1277
+ onActionClick: c,
1278
+ closeButton: a,
1279
+ customStyle: i,
1280
1280
  isExiting: !1,
1281
- renderKey: As++
1282
- }, Re(), Os(i);
1281
+ renderKey: Xs++
1282
+ }, ze(), Qs(l);
1283
1283
  }
1284
- function Ps() {
1285
- De();
1284
+ function tr() {
1285
+ Fe();
1286
1286
  }
1287
- const Fs = "_badge_1rfcr_1", zs = "_basic_1rfcr_13", Ks = "_primary_1rfcr_19", Vs = "_compact_1rfcr_31", Se = {
1288
- badge: Fs,
1289
- basic: zs,
1290
- primary: Ks,
1287
+ const nr = "_badge_1rfcr_1", or = "_basic_1rfcr_13", sr = "_primary_1rfcr_19", rr = "_compact_1rfcr_31", We = {
1288
+ badge: nr,
1289
+ basic: or,
1290
+ primary: sr,
1291
1291
  default: "_default_1rfcr_26",
1292
- compact: Vs,
1292
+ compact: rr,
1293
1293
  "compact-small": "_compact-small_1rfcr_36"
1294
1294
  };
1295
- function di({
1295
+ function Fl({
1296
1296
  variant: e = "basic",
1297
- size: t = "default",
1297
+ size: n = "default",
1298
1298
  contentColor: o,
1299
1299
  backgroundColor: s,
1300
- borderColor: l,
1301
- customStyle: _ = {},
1302
- className: r,
1303
- children: a
1300
+ borderColor: r,
1301
+ customStyle: c = {},
1302
+ className: a,
1303
+ children: i
1304
1304
  }) {
1305
- const i = [
1306
- Se.badge,
1307
- Se[e],
1308
- Se[t],
1309
- r ?? ""
1310
- ].filter(Boolean).join(" "), d = {
1305
+ const l = [
1306
+ We.badge,
1307
+ We[e],
1308
+ We[n],
1309
+ a ?? ""
1310
+ ].filter(Boolean).join(" "), _ = {
1311
1311
  ...o ? { color: o } : {},
1312
1312
  ...s ? { backgroundColor: s } : {},
1313
- ...l ? { borderColor: l } : {},
1314
- ..._
1313
+ ...r ? { borderColor: r } : {},
1314
+ ...c
1315
1315
  };
1316
- return /* @__PURE__ */ n("span", { "data-idb-component": !0, className: i, style: d, children: a });
1316
+ return /* @__PURE__ */ t("span", { "data-idb-component": !0, className: l, style: _, children: i });
1317
1317
  }
1318
- const Zs = "_badge_pssu9_1", Us = "_basic_pssu9_13", Ys = "_error_pssu9_19", Xs = "_success_pssu9_25", Gs = "_info_pssu9_31", Js = "_warning_pssu9_37", Qs = "_compact_pssu9_49", el = "_dot_pssu9_55", ve = {
1319
- badge: Zs,
1320
- basic: Us,
1321
- error: Ys,
1322
- success: Xs,
1323
- info: Gs,
1324
- warning: Js,
1318
+ const lr = "_badge_pssu9_1", ir = "_basic_pssu9_13", ar = "_error_pssu9_19", cr = "_success_pssu9_25", dr = "_info_pssu9_31", _r = "_warning_pssu9_37", ur = "_compact_pssu9_49", pr = "_dot_pssu9_55", Ne = {
1319
+ badge: lr,
1320
+ basic: ir,
1321
+ error: ar,
1322
+ success: cr,
1323
+ info: dr,
1324
+ warning: _r,
1325
1325
  default: "_default_pssu9_44",
1326
- compact: Qs,
1327
- dot: el
1326
+ compact: ur,
1327
+ dot: pr
1328
1328
  };
1329
- function _i({
1329
+ function zl({
1330
1330
  variant: e = "basic",
1331
- size: t = "default",
1331
+ size: n = "default",
1332
1332
  stateIcon: o = !1,
1333
1333
  customStyle: s = {},
1334
- className: l,
1335
- children: _
1334
+ className: r,
1335
+ children: c
1336
1336
  }) {
1337
- const r = [
1338
- ve.badge,
1339
- ve[e],
1340
- ve[t],
1341
- l ?? ""
1337
+ const a = [
1338
+ Ne.badge,
1339
+ Ne[e],
1340
+ Ne[n],
1341
+ r ?? ""
1342
1342
  ].filter(Boolean).join(" ");
1343
- return /* @__PURE__ */ b("span", { "data-idb-component": !0, className: r, style: s, children: [
1344
- o ? /* @__PURE__ */ n("span", { className: ve.dot }) : null,
1345
- _
1343
+ return /* @__PURE__ */ x("span", { "data-idb-component": !0, className: a, style: s, children: [
1344
+ o ? /* @__PURE__ */ t("span", { className: Ne.dot }) : null,
1345
+ c
1346
1346
  ] });
1347
1347
  }
1348
- const nl = "_root_hbn36_3", tl = "_label_hbn36_13", ol = "_requiredMark_hbn36_21", sl = "_select_hbn36_29", ll = "_large_hbn36_46", il = "_medium_hbn36_49", rl = "_small_hbn36_52", al = "_disabled_hbn36_61", cl = "_choosing_hbn36_61", dl = "_error_hbn36_70", _l = "_selected_hbn36_74", ul = "_value_hbn36_85", ml = "_contentWrapper_hbn36_90", pl = "_leadingContent_hbn36_98", fl = "_placeholder_hbn36_124", hl = "_trailingIcon_hbn36_128", gl = "_helper_hbn36_140", bl = "_errorHelper_hbn36_148", Cl = "_helperDisabled_hbn36_152", M = {
1349
- root: nl,
1350
- label: tl,
1351
- requiredMark: ol,
1352
- select: sl,
1353
- large: ll,
1354
- medium: il,
1355
- small: rl,
1356
- default: "_default_hbn36_57",
1357
- disabled: al,
1358
- choosing: cl,
1359
- error: dl,
1360
- selected: _l,
1361
- value: ul,
1362
- contentWrapper: ml,
1363
- leadingContent: pl,
1364
- placeholder: fl,
1365
- trailingIcon: hl,
1366
- helper: gl,
1367
- errorHelper: bl,
1368
- helperDisabled: Cl
1348
+ const mr = "_root_1p9m1_3", fr = "_label_1p9m1_13", hr = "_requiredMark_1p9m1_21", gr = "_select_1p9m1_29", br = "_large_1p9m1_45", wr = "_medium_1p9m1_48", xr = "_small_1p9m1_51", Cr = "_disabled_1p9m1_60", vr = "_choosing_1p9m1_60", yr = "_error_1p9m1_69", $r = "_selected_1p9m1_73", kr = "_value_1p9m1_84", Nr = "_contentWrapper_1p9m1_89", Br = "_leadingContent_1p9m1_97", Lr = "_placeholder_1p9m1_123", Er = "_trailingIcon_1p9m1_127", Ir = "_helper_1p9m1_139", Tr = "_errorHelper_1p9m1_147", Rr = "_helperDisabled_1p9m1_151", D = {
1349
+ root: mr,
1350
+ label: fr,
1351
+ requiredMark: hr,
1352
+ select: gr,
1353
+ large: br,
1354
+ medium: wr,
1355
+ small: xr,
1356
+ default: "_default_1p9m1_56",
1357
+ disabled: Cr,
1358
+ choosing: vr,
1359
+ error: yr,
1360
+ selected: $r,
1361
+ value: kr,
1362
+ contentWrapper: Nr,
1363
+ leadingContent: Br,
1364
+ placeholder: Lr,
1365
+ trailingIcon: Er,
1366
+ helper: Ir,
1367
+ errorHelper: Tr,
1368
+ helperDisabled: Rr
1369
1369
  };
1370
- function se(...e) {
1370
+ function ee(...e) {
1371
1371
  return e.filter(Boolean).join(" ");
1372
1372
  }
1373
- const xl = "_dropdownList_aaflm_27", wl = "_dropdownEnter_aaflm_1", vl = "_closing_aaflm_42", yl = "_dropdownExit_aaflm_1", $l = "_searchWrapper_aaflm_48", Nl = "_searchInput_aaflm_60", kl = "_searchTrailing_aaflm_75", Il = "_searchIcon_aaflm_83", Bl = "_menu_aaflm_91", El = "_noScroll_aaflm_104", Ll = "_left_aaflm_127", Sl = "_optionContent_aaflm_127", Tl = "_center_aaflm_132", jl = "_optionIcon_aaflm_137", Ml = "_optionLabel_aaflm_141", Dl = "_optionItem_aaflm_148", Rl = "_selectedItem_aaflm_166", Al = "_emptyItem_aaflm_203", Hl = "_tooltipBox_aaflm_212", S = {
1374
- dropdownList: xl,
1375
- dropdownEnter: wl,
1376
- closing: vl,
1377
- dropdownExit: yl,
1378
- searchWrapper: $l,
1379
- searchInput: Nl,
1380
- searchTrailing: kl,
1381
- searchIcon: Il,
1382
- menu: Bl,
1383
- noScroll: El,
1384
- left: Ll,
1385
- optionContent: Sl,
1386
- center: Tl,
1387
- optionIcon: jl,
1388
- optionLabel: Ml,
1389
- optionItem: Dl,
1390
- selectedItem: Rl,
1391
- emptyItem: Al,
1392
- tooltipBox: Hl
1373
+ const Sr = "_dropdownList_1cfao_27", Mr = "_dropdownEnter_1cfao_1", jr = "_closing_1cfao_42", Dr = "_dropdownExit_1cfao_1", Ar = "_searchWrapper_1cfao_48", Hr = "_searchInput_1cfao_60", Wr = "_searchTrailing_1cfao_75", Or = "_searchIcon_1cfao_83", Pr = "_menu_1cfao_91", qr = "_noScroll_1cfao_104", Fr = "_left_1cfao_127", zr = "_optionContent_1cfao_127", Kr = "_center_1cfao_132", Zr = "_optionIcon_1cfao_137", Vr = "_optionLabel_1cfao_141", Ur = "_optionItem_1cfao_148", Yr = "_selectedItem_1cfao_166", Xr = "_emptyItem_1cfao_203", M = {
1374
+ dropdownList: Sr,
1375
+ dropdownEnter: Mr,
1376
+ closing: jr,
1377
+ dropdownExit: Dr,
1378
+ searchWrapper: Ar,
1379
+ searchInput: Hr,
1380
+ searchTrailing: Wr,
1381
+ searchIcon: Or,
1382
+ menu: Pr,
1383
+ noScroll: qr,
1384
+ left: Fr,
1385
+ optionContent: zr,
1386
+ center: Kr,
1387
+ optionIcon: Zr,
1388
+ optionLabel: Vr,
1389
+ optionItem: Ur,
1390
+ selectedItem: Yr,
1391
+ emptyItem: Xr
1392
+ }, Gr = "_tooltip_3x8xx_3", Jr = "_compact_3x8xx_22", Qr = "_body_3x8xx_28", el = "_content_3x8xx_34", tl = "_arrow_3x8xx_41", nl = "_arrowTop_3x8xx_52", ol = "_arrowTopLeft_3x8xx_53", sl = "_arrowTopRight_3x8xx_54", rl = "_arrowBottom_3x8xx_76", ll = "_arrowBottomLeft_3x8xx_77", il = "_arrowBottomRight_3x8xx_78", al = "_arrowLeft_3x8xx_100", cl = "_arrowLeftTop_3x8xx_101", dl = "_arrowLeftBottom_3x8xx_102", _l = "_arrowRight_3x8xx_124", ul = "_arrowRightTop_3x8xx_125", pl = "_arrowRightBottom_3x8xx_126", ml = "_trigger_3x8xx_149", I = {
1393
+ tooltip: Gr,
1394
+ default: "_default_3x8xx_18",
1395
+ compact: Jr,
1396
+ body: Qr,
1397
+ content: el,
1398
+ arrow: tl,
1399
+ arrowTop: nl,
1400
+ arrowTopLeft: ol,
1401
+ arrowTopRight: sl,
1402
+ arrowBottom: rl,
1403
+ arrowBottomLeft: ll,
1404
+ arrowBottomRight: il,
1405
+ arrowLeft: al,
1406
+ arrowLeftTop: cl,
1407
+ arrowLeftBottom: dl,
1408
+ arrowRight: _l,
1409
+ arrowRightTop: ul,
1410
+ arrowRightBottom: pl,
1411
+ trigger: ml
1412
+ }, fl = 6, hl = 4, Z = fl + hl, Be = 20;
1413
+ function nt(e, n, o) {
1414
+ const s = n.offsetWidth, r = n.offsetHeight, c = e.left + e.width / 2, a = e.top + e.height / 2;
1415
+ let i = 0, l = 0;
1416
+ switch (o) {
1417
+ // ─── Top ──────────────────────────────────────────
1418
+ case "top":
1419
+ i = e.top - r - Z, l = c - s / 2;
1420
+ break;
1421
+ case "top-left":
1422
+ i = e.top - r - Z, l = c - s + Be;
1423
+ break;
1424
+ case "top-right":
1425
+ i = e.top - r - Z, l = c - Be;
1426
+ break;
1427
+ // ─── Bottom ───────────────────────────────────────
1428
+ case "bottom":
1429
+ i = e.bottom + Z, l = c - s / 2;
1430
+ break;
1431
+ case "bottom-left":
1432
+ i = e.bottom + Z, l = c - s + Be;
1433
+ break;
1434
+ case "bottom-right":
1435
+ i = e.bottom + Z, l = c - Be;
1436
+ break;
1437
+ // ─── Left ─────────────────────────────────────────
1438
+ case "left":
1439
+ i = a - r / 2, l = e.left - s - Z;
1440
+ break;
1441
+ case "left-top":
1442
+ i = e.top, l = e.left - s - Z;
1443
+ break;
1444
+ case "left-bottom":
1445
+ i = e.bottom - r, l = e.left - s - Z;
1446
+ break;
1447
+ // ─── Right ────────────────────────────────────────
1448
+ case "right":
1449
+ i = a - r / 2, l = e.right + Z;
1450
+ break;
1451
+ case "right-top":
1452
+ i = e.top, l = e.right + Z;
1453
+ break;
1454
+ case "right-bottom":
1455
+ i = e.bottom - r, l = e.right + Z;
1456
+ break;
1457
+ }
1458
+ return { top: i, left: l };
1459
+ }
1460
+ function ot() {
1461
+ const [e, n] = O(null), o = T(
1462
+ (r, c, a) => {
1463
+ const i = r.getBoundingClientRect();
1464
+ n({ content: c, rect: i, position: a });
1465
+ },
1466
+ []
1467
+ ), s = T(() => {
1468
+ n(null);
1469
+ }, []);
1470
+ return { tooltip: e, showTooltip: o, hideTooltip: s };
1471
+ }
1472
+ const gl = {
1473
+ top: I.arrowTop,
1474
+ "top-left": I.arrowTopRight,
1475
+ "top-right": I.arrowTopLeft,
1476
+ bottom: I.arrowBottom,
1477
+ "bottom-left": I.arrowBottomRight,
1478
+ "bottom-right": I.arrowBottomLeft,
1479
+ left: I.arrowLeft,
1480
+ "left-top": I.arrowLeftTop,
1481
+ "left-bottom": I.arrowLeftBottom,
1482
+ right: I.arrowRight,
1483
+ "right-top": I.arrowRightTop,
1484
+ "right-bottom": I.arrowRightBottom
1393
1485
  };
1394
- function Ue({
1486
+ function st({ tooltip: e, backgroundColor: n, contentColor: o }) {
1487
+ const s = W(null), [r, c] = O(null);
1488
+ if (Ke(() => {
1489
+ e && s.current ? c(nt(e.rect, s.current, e.position)) : c(null);
1490
+ }, [e]), !e) return null;
1491
+ const a = n ? { backgroundColor: n, borderColor: n } : void 0;
1492
+ return je(
1493
+ /* @__PURE__ */ t(
1494
+ "div",
1495
+ {
1496
+ ref: s,
1497
+ className: ee(I.tooltip, I.compact),
1498
+ "data-idb-component": "tooltip",
1499
+ style: {
1500
+ ...a,
1501
+ color: o,
1502
+ top: r?.top,
1503
+ left: r?.left,
1504
+ visibility: r ? "visible" : "hidden",
1505
+ pointerEvents: "none"
1506
+ },
1507
+ children: /* @__PURE__ */ t("span", { className: I.content, children: e.content })
1508
+ }
1509
+ ),
1510
+ document.body
1511
+ );
1512
+ }
1513
+ function Kl({
1514
+ content: e,
1515
+ trigger: n = "hover",
1516
+ variant: o = "default",
1517
+ position: s = "top",
1518
+ arrow: r = !0,
1519
+ as: c,
1520
+ visibleOnEllipsis: a = !1,
1521
+ // 자식 엘리먼트에 말줄임(ellipsis)이 발생했을 때만 툴팁을 표시.
1522
+ backgroundColor: i,
1523
+ contentColor: l,
1524
+ customStyle: _,
1525
+ children: f
1526
+ }) {
1527
+ const [u, w] = O(!1), p = W(null), g = W(null), [C, v] = O(null);
1528
+ Ke(() => {
1529
+ if (u && g.current && p.current) {
1530
+ const h = p.current.getBoundingClientRect();
1531
+ v(nt(h, g.current, s));
1532
+ }
1533
+ }, [u, s]);
1534
+ const N = T(() => {
1535
+ if (!a || !p.current) return !0;
1536
+ const h = p.current.firstElementChild ?? p.current;
1537
+ return h.scrollWidth > h.clientWidth || h.scrollHeight > h.clientHeight;
1538
+ }, [a]), d = T(() => {
1539
+ N() && w(!0);
1540
+ }, [N]), m = T(() => {
1541
+ w(!1), v(null);
1542
+ }, []), y = T(() => {
1543
+ if (u)
1544
+ m();
1545
+ else {
1546
+ if (!N()) return;
1547
+ w(!0);
1548
+ }
1549
+ }, [u, m, N]);
1550
+ ce(() => {
1551
+ if (n !== "click" || !u) return;
1552
+ const h = (E) => {
1553
+ const H = E.target;
1554
+ p.current?.contains(H) || g.current?.contains(H) || m();
1555
+ };
1556
+ return document.addEventListener("mousedown", h), window.addEventListener("scroll", m, !0), window.addEventListener("resize", m), () => {
1557
+ document.removeEventListener("mousedown", h), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
1558
+ };
1559
+ }, [n, u, m]);
1560
+ const b = typeof e == "function" ? e(m) : e, B = i ? { backgroundColor: i } : void 0, $ = i ? (() => {
1561
+ const h = s.split("-")[0];
1562
+ return { [{
1563
+ top: "borderTopColor",
1564
+ bottom: "borderBottomColor",
1565
+ left: "borderLeftColor",
1566
+ right: "borderRightColor"
1567
+ }[h]]: i };
1568
+ })() : void 0, P = c ?? "span", z = ee(
1569
+ I.tooltip,
1570
+ I[o]
1571
+ );
1572
+ return /* @__PURE__ */ x(ue, { children: [
1573
+ at(
1574
+ P,
1575
+ {
1576
+ ref: p,
1577
+ className: I.trigger,
1578
+ ...n === "hover" ? { onMouseEnter: d, onMouseLeave: m } : { onClick: y }
1579
+ },
1580
+ f
1581
+ ),
1582
+ u && je(
1583
+ /* @__PURE__ */ x(
1584
+ "div",
1585
+ {
1586
+ ref: g,
1587
+ className: z,
1588
+ "data-idb-component": "tooltip",
1589
+ style: {
1590
+ ...B,
1591
+ ..._,
1592
+ color: l,
1593
+ top: C?.top,
1594
+ left: C?.left,
1595
+ visibility: C ? "visible" : "hidden"
1596
+ },
1597
+ children: [
1598
+ r && /* @__PURE__ */ t(
1599
+ "span",
1600
+ {
1601
+ className: ee(I.arrow, gl[s]),
1602
+ style: $
1603
+ }
1604
+ ),
1605
+ /* @__PURE__ */ t("div", { className: I.body, children: /* @__PURE__ */ t("span", { className: I.content, children: b }) })
1606
+ ]
1607
+ }
1608
+ ),
1609
+ document.body
1610
+ )
1611
+ ] });
1612
+ }
1613
+ function rt({
1395
1614
  listboxId: e,
1396
- type: t = "basic",
1615
+ type: n = "basic",
1397
1616
  align: o = "left",
1398
1617
  content: s = !1,
1399
- options: l,
1400
- selectedValue: _,
1401
- onSelect: r,
1402
- textColor: a,
1403
- closing: i = !1
1618
+ options: r,
1619
+ selectedValue: c,
1620
+ onSelect: a,
1621
+ textColor: i,
1622
+ closing: l = !1
1404
1623
  }) {
1405
- const [d, p] = Z(""), [u, x] = Z(null), f = G(null), [C, N] = Z(!1), $ = H((m, R) => {
1406
- const v = m.currentTarget.querySelector(`.${S.optionLabel}`);
1407
- if (v && v.scrollWidth > v.clientWidth) {
1408
- const k = m.currentTarget.getBoundingClientRect(), q = window.innerHeight - k.bottom > 80 ? "below" : "above";
1409
- x({ text: R, top: k.top, bottom: k.bottom, left: k.left, width: k.width, placement: q });
1624
+ const [_, f] = O(""), { tooltip: u, showTooltip: w, hideTooltip: p } = ot(), g = W(null), [C, v] = O(!1), N = T((b, B) => {
1625
+ const $ = b.currentTarget.querySelector(`.${M.optionLabel}`);
1626
+ if ($ && $.scrollWidth > $.clientWidth) {
1627
+ const P = window.innerHeight - b.currentTarget.getBoundingClientRect().bottom > 80 ? "bottom" : "top";
1628
+ w(b.currentTarget, B, P);
1410
1629
  }
1411
- }, []), I = H(() => x(null), []), c = se(S.menu, S[o]), h = ne(
1412
- () => t === "search" ? l.filter((m) => m.label.toLowerCase().includes(d.toLowerCase())) : l,
1413
- [t, l, d]
1630
+ }, [w]), d = T(() => p(), [p]), m = ee(M.menu, M[o]), y = ae(
1631
+ () => n === "search" ? r.filter((b) => b.label.toLowerCase().includes(_.toLowerCase())) : r,
1632
+ [n, r, _]
1414
1633
  );
1415
- return Ye(() => {
1416
- const m = f.current;
1417
- m && N(m.scrollHeight > m.clientHeight);
1418
- }, [h]), /* @__PURE__ */ b(ge, { children: [
1419
- /* @__PURE__ */ b("div", { className: se(S.dropdownList, i && S.closing), children: [
1420
- t === "search" && /* @__PURE__ */ b("div", { className: S.searchWrapper, children: [
1421
- /* @__PURE__ */ n(
1634
+ return Ke(() => {
1635
+ const b = g.current;
1636
+ b && v(b.scrollHeight > b.clientHeight);
1637
+ }, [y]), /* @__PURE__ */ x(ue, { children: [
1638
+ /* @__PURE__ */ x("div", { className: ee(M.dropdownList, l && M.closing), children: [
1639
+ n === "search" && /* @__PURE__ */ x("div", { className: M.searchWrapper, children: [
1640
+ /* @__PURE__ */ t(
1422
1641
  "input",
1423
1642
  {
1424
1643
  type: "text",
1425
1644
  "aria-label": "옵션 검색",
1426
1645
  title: "옵션 검색",
1427
- className: S.searchInput,
1646
+ className: M.searchInput,
1428
1647
  placeholder: "검색어를 입력해주세요.",
1429
- value: d,
1430
- onChange: (m) => p(m.target.value),
1431
- onClick: (m) => m.stopPropagation(),
1648
+ value: _,
1649
+ onChange: (b) => f(b.target.value),
1650
+ onClick: (b) => b.stopPropagation(),
1432
1651
  autoFocus: !0
1433
1652
  }
1434
1653
  ),
1435
- /* @__PURE__ */ n("span", { className: S.searchTrailing, children: /* @__PURE__ */ n("span", { className: S.searchIcon, children: /* @__PURE__ */ n("img", { src: ze, alt: "" }) }) })
1654
+ /* @__PURE__ */ t("span", { className: M.searchTrailing, children: /* @__PURE__ */ t("span", { className: M.searchIcon, children: /* @__PURE__ */ t("img", { src: Je, alt: "" }) }) })
1436
1655
  ] }),
1437
- /* @__PURE__ */ n("ul", { ref: f, id: e, className: se(c, !C && S.noScroll), role: "listbox", "aria-label": "옵션 목록", children: h.map((m) => {
1438
- const R = m.value === _;
1439
- return /* @__PURE__ */ n(
1656
+ /* @__PURE__ */ t("ul", { ref: g, id: e, className: ee(m, !C && M.noScroll), role: "listbox", "aria-label": "옵션 목록", children: y.map((b) => {
1657
+ const B = b.value === c;
1658
+ return /* @__PURE__ */ t(
1440
1659
  "li",
1441
1660
  {
1442
- className: se(S.optionItem, R && S.selectedItem),
1443
- onClick: (v) => {
1444
- v.stopPropagation(), r(m);
1661
+ className: ee(M.optionItem, B && M.selectedItem),
1662
+ onClick: ($) => {
1663
+ $.stopPropagation(), a(b);
1445
1664
  },
1446
- onMouseEnter: (v) => $(v, m.label),
1447
- onMouseLeave: I,
1665
+ onMouseEnter: ($) => N($, b.label),
1666
+ onMouseLeave: d,
1448
1667
  role: "option",
1449
- "aria-selected": R,
1450
- children: /* @__PURE__ */ b("div", { className: S.optionContent, children: [
1451
- s && m.icon && /* @__PURE__ */ n("span", { className: S.optionIcon, children: m.icon }),
1452
- /* @__PURE__ */ n("span", { className: S.optionLabel, style: a ? { color: a } : void 0, children: m.label })
1668
+ "aria-selected": B,
1669
+ children: /* @__PURE__ */ x("div", { className: M.optionContent, children: [
1670
+ s && b.icon && /* @__PURE__ */ t("span", { className: M.optionIcon, children: b.icon }),
1671
+ /* @__PURE__ */ t("span", { className: M.optionLabel, style: i ? { color: i } : void 0, children: b.label })
1453
1672
  ] })
1454
1673
  },
1455
- m.value
1674
+ b.value
1456
1675
  );
1457
1676
  }) }),
1458
- h.length === 0 && /* @__PURE__ */ n("div", { className: S.emptyItem, children: t === "search" && d ? "검색 결과가 없습니다." : "-" })
1677
+ y.length === 0 && /* @__PURE__ */ t("div", { className: M.emptyItem, children: n === "search" && _ ? "검색 결과가 없습니다." : "-" })
1459
1678
  ] }),
1460
- u && Ae(
1461
- /* @__PURE__ */ n(
1462
- "div",
1463
- {
1464
- className: S.tooltipBox,
1465
- style: {
1466
- position: "fixed",
1467
- top: u.placement === "below" ? u.bottom + 4 : u.top,
1468
- left: u.left,
1469
- width: u.width,
1470
- zIndex: 1e4,
1471
- transform: u.placement === "above" ? "translateY(calc(-100% - 4px))" : void 0
1472
- },
1473
- children: u.text
1474
- }
1475
- ),
1476
- document.body
1477
- )
1679
+ /* @__PURE__ */ t(st, { tooltip: u })
1478
1680
  ] });
1479
1681
  }
1480
- const ql = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.4697%207.38666C14.7626%207.09377%2015.2373%207.09377%2015.5302%207.38666C15.823%207.67956%2015.8231%208.15435%2015.5302%208.44721L10.5302%2013.4472C10.2374%2013.7401%209.76257%2013.74%209.46967%2013.4472L4.46967%208.44721C4.17678%208.15432%204.17678%207.67956%204.46967%207.38666C4.76256%207.09377%205.23732%207.09377%205.53022%207.38666L9.99994%2011.8564L14.4697%207.38666Z'%20fill='%23171719'/%3e%3c/svg%3e", Ol = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2447_11634)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.4697%207.38666C14.7626%207.09377%2015.2373%207.09377%2015.5302%207.38666C15.823%207.67956%2015.8231%208.15435%2015.5302%208.44721L10.5302%2013.4472C10.2374%2013.7401%209.76257%2013.74%209.46967%2013.4472L4.46967%208.44721C4.17678%208.15432%204.17678%207.67956%204.46967%207.38666C4.76256%207.09377%205.23732%207.09377%205.53022%207.38666L9.99994%2011.8564L14.4697%207.38666Z'%20fill='%2346474C'%20fill-opacity='0.28'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2447_11634'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Wl = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.5263%206.50105C9.82087%206.26081%2010.2556%206.27825%2010.5302%206.55281L15.5302%2011.5528C15.8231%2011.8457%2015.823%2012.3205%2015.5302%2012.6134C15.2373%2012.9062%2014.7626%2012.9062%2014.4697%2012.6134L9.99993%208.14363L5.5302%2012.6134C5.23731%2012.9062%204.76255%2012.9062%204.46966%2012.6134C4.17679%2012.3205%204.17677%2011.8457%204.46966%2011.5528L9.46966%206.55281L9.5263%206.50105Z'%20fill='%23181D27'/%3e%3c/svg%3e", Pl = 150;
1481
- function ui({
1682
+ const bl = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.4697%207.38666C14.7626%207.09377%2015.2373%207.09377%2015.5302%207.38666C15.823%207.67956%2015.8231%208.15435%2015.5302%208.44721L10.5302%2013.4472C10.2374%2013.7401%209.76257%2013.74%209.46967%2013.4472L4.46967%208.44721C4.17678%208.15432%204.17678%207.67956%204.46967%207.38666C4.76256%207.09377%205.23732%207.09377%205.53022%207.38666L9.99994%2011.8564L14.4697%207.38666Z'%20fill='%23171719'/%3e%3c/svg%3e", wl = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2447_11634)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.4697%207.38666C14.7626%207.09377%2015.2373%207.09377%2015.5302%207.38666C15.823%207.67956%2015.8231%208.15435%2015.5302%208.44721L10.5302%2013.4472C10.2374%2013.7401%209.76257%2013.74%209.46967%2013.4472L4.46967%208.44721C4.17678%208.15432%204.17678%207.67956%204.46967%207.38666C4.76256%207.09377%205.23732%207.09377%205.53022%207.38666L9.99994%2011.8564L14.4697%207.38666Z'%20fill='%2346474C'%20fill-opacity='0.28'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2447_11634'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", xl = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.5263%206.50105C9.82087%206.26081%2010.2556%206.27825%2010.5302%206.55281L15.5302%2011.5528C15.8231%2011.8457%2015.823%2012.3205%2015.5302%2012.6134C15.2373%2012.9062%2014.7626%2012.9062%2014.4697%2012.6134L9.99993%208.14363L5.5302%2012.6134C5.23731%2012.9062%204.76255%2012.9062%204.46966%2012.6134C4.17679%2012.3205%204.17677%2011.8457%204.46966%2011.5528L9.46966%206.55281L9.5263%206.50105Z'%20fill='%23181D27'/%3e%3c/svg%3e", Cl = 150;
1683
+ function Zl({
1482
1684
  variant: e = "default",
1483
- size: t = "medium",
1685
+ size: n = "medium",
1484
1686
  heading: o,
1485
1687
  required: s = !1,
1486
- leadingContent: l,
1487
- description: _,
1488
- disabled: r = !1,
1489
- placeholder: a = "선택해주세요.",
1490
- value: i,
1491
- onSelect: d,
1492
- options: p = [],
1688
+ leadingContent: r,
1689
+ description: c,
1690
+ disabled: a = !1,
1691
+ placeholder: i = "선택해주세요.",
1692
+ selectedValue: l,
1693
+ onSelect: _,
1694
+ options: f = [],
1695
+ // 아래는 드롭다운 관련 Props
1493
1696
  type: u = "basic",
1494
- align: x = "left",
1495
- content: f = !1,
1496
- buttonWidth: C,
1497
- descriptionWidth: N,
1498
- customStyle: $,
1499
- textColor: I
1697
+ align: w = "left",
1698
+ content: p = !1,
1699
+ buttonWidth: g,
1700
+ descriptionWidth: C,
1701
+ customStyle: v,
1702
+ textColor: N
1500
1703
  }) {
1501
- const c = Ee(), h = `${c}-listbox`, [m, R] = Z(!1), [v, k] = Z(!1), [q, U] = Z(null), w = G(null), B = G(null), A = G(null), O = G(), W = H(() => {
1502
- const L = B.current ?? w.current;
1503
- if (L) {
1504
- const g = L.getBoundingClientRect();
1505
- U({
1506
- top: g.bottom + window.scrollY + 4,
1507
- left: g.left + window.scrollX,
1508
- width: g.width
1704
+ const d = Me(), m = `${d}-listbox`, [y, b] = O(!1), [B, $] = O(!1), [P, z] = O(null), { tooltip: h, showTooltip: E, hideTooltip: H } = ot(), q = W(null), se = W(null), K = W(null), V = W(null), de = W(), te = T(() => {
1705
+ const S = se.current ?? q.current;
1706
+ if (S) {
1707
+ const le = S.getBoundingClientRect();
1708
+ z({
1709
+ top: le.bottom + window.scrollY + 4,
1710
+ left: le.left + window.scrollX,
1711
+ width: le.width
1509
1712
  });
1510
1713
  }
1511
- }, []), T = H(() => {
1512
- k(!0), O.current = setTimeout(() => {
1513
- R(!1), k(!1);
1514
- }, Pl);
1515
- }, []), Y = H(() => {
1516
- m && !v ? T() : m || (W(), R(!0));
1517
- }, [m, v, W, T]), ce = H((L) => {
1518
- d?.(L), T();
1519
- }, [d, T]);
1520
- ie(() => () => clearTimeout(O.current), []), ie(() => {
1521
- const L = (P) => {
1522
- const qe = P.target;
1523
- w.current && w.current.contains(qe) || A.current && A.current.contains(qe) || T();
1524
- }, g = (P) => {
1525
- A.current && A.current.contains(P.target) || T();
1714
+ }, []), F = T(() => {
1715
+ $(!0), de.current = setTimeout(() => {
1716
+ b(!1), $(!1);
1717
+ }, Cl);
1718
+ }, []), fe = T(() => {
1719
+ H(), y && !B ? F() : y || (te(), b(!0));
1720
+ }, [y, B, te, F, H]), he = T((S) => {
1721
+ _?.(S), F();
1722
+ }, [_, F]);
1723
+ ce(() => () => clearTimeout(de.current), []), ce(() => {
1724
+ const S = (Ae) => {
1725
+ const Ve = Ae.target;
1726
+ q.current && q.current.contains(Ve) || K.current && K.current.contains(Ve) || F();
1727
+ }, le = (Ae) => {
1728
+ K.current && K.current.contains(Ae.target) || F();
1526
1729
  };
1527
- return m && (document.addEventListener("click", L), window.addEventListener("resize", W), window.addEventListener("scroll", g, !0)), () => {
1528
- document.removeEventListener("click", L), window.removeEventListener("resize", W), window.removeEventListener("scroll", g, !0);
1730
+ return y && (document.addEventListener("click", S), window.addEventListener("resize", te), window.addEventListener("scroll", le, !0)), () => {
1731
+ document.removeEventListener("click", S), window.removeEventListener("resize", te), window.removeEventListener("scroll", le, !0);
1529
1732
  };
1530
- }, [m, W, T]);
1531
- const de = H((L) => {
1532
- L.key === "Escape" && m && (L.preventDefault(), T());
1533
- }, [m, T]), te = e === "error";
1534
- let oe = e;
1535
- (m || v) && !te ? oe = "choosing" : i && !te && (oe = "selected");
1536
- const _e = se(
1537
- M.select,
1538
- M[t],
1539
- M[oe],
1540
- r && M.disabled
1541
- ), ue = se(
1542
- M.helper,
1543
- te && M.errorHelper,
1544
- r && M.helperDisabled
1733
+ }, [y, te, F]);
1734
+ const ge = T((S) => {
1735
+ S.key === "Escape" && y && (S.preventDefault(), F());
1736
+ }, [y, F]), re = T(() => {
1737
+ const S = V.current;
1738
+ if (S && S.scrollWidth > S.clientWidth && l?.label) {
1739
+ const le = window.innerHeight - S.getBoundingClientRect().bottom > 80 ? "bottom" : "top";
1740
+ E(S, l.label, le);
1741
+ }
1742
+ }, [l?.label, E]), L = T(() => H(), [H]), U = e === "error";
1743
+ let De = e;
1744
+ y && !B && !U ? De = "choosing" : l && !U && (De = "selected");
1745
+ const lt = ee(
1746
+ D.select,
1747
+ D[n],
1748
+ D[De],
1749
+ a && D.disabled
1750
+ ), it = ee(
1751
+ D.helper,
1752
+ U && D.errorHelper,
1753
+ a && D.helperDisabled
1545
1754
  );
1546
- return /* @__PURE__ */ b(ge, { children: [
1547
- /* @__PURE__ */ b(
1755
+ return /* @__PURE__ */ x(ue, { children: [
1756
+ /* @__PURE__ */ x(
1548
1757
  "div",
1549
1758
  {
1550
- ref: w,
1551
- className: M.root,
1759
+ ref: q,
1760
+ className: D.root,
1552
1761
  "data-idb-component": "select",
1553
- style: $,
1762
+ style: v,
1554
1763
  children: [
1555
- o && /* @__PURE__ */ b("label", { className: M.label, children: [
1556
- /* @__PURE__ */ n("span", { children: o }),
1557
- s && /* @__PURE__ */ n("span", { className: M.requiredMark, children: "*" })
1764
+ o && /* @__PURE__ */ x("label", { className: D.label, children: [
1765
+ /* @__PURE__ */ t("span", { children: o }),
1766
+ s && /* @__PURE__ */ t("span", { className: D.requiredMark, children: "*" })
1558
1767
  ] }),
1559
- /* @__PURE__ */ b(
1768
+ /* @__PURE__ */ x(
1560
1769
  "button",
1561
1770
  {
1562
- ref: B,
1771
+ ref: se,
1563
1772
  type: "button",
1564
- id: c,
1565
- className: _e,
1566
- disabled: r,
1567
- "aria-expanded": m,
1773
+ id: d,
1774
+ className: lt,
1775
+ disabled: a,
1776
+ "aria-expanded": y,
1568
1777
  "aria-haspopup": "listbox",
1569
- "aria-controls": m ? h : void 0,
1570
- onClick: Y,
1571
- onKeyDown: de,
1572
- style: C != null ? { width: `${C}px` } : void 0,
1778
+ "aria-controls": y ? m : void 0,
1779
+ onClick: fe,
1780
+ onKeyDown: ge,
1781
+ style: g != null ? { width: `${g}px` } : void 0,
1573
1782
  children: [
1574
- /* @__PURE__ */ b("div", { className: M.contentWrapper, children: [
1575
- l && /* @__PURE__ */ n("span", { className: M.leadingContent, children: l }),
1576
- /* @__PURE__ */ n("span", { className: se(M.value, !i?.label && M.placeholder), children: i?.label ?? a })
1783
+ /* @__PURE__ */ x("div", { className: D.contentWrapper, children: [
1784
+ r && /* @__PURE__ */ t("span", { className: D.leadingContent, children: r }),
1785
+ /* @__PURE__ */ t(
1786
+ "span",
1787
+ {
1788
+ ref: V,
1789
+ className: ee(D.value, !l?.label && D.placeholder),
1790
+ onMouseEnter: re,
1791
+ onMouseLeave: L,
1792
+ children: l?.label ?? i
1793
+ }
1794
+ )
1577
1795
  ] }),
1578
- /* @__PURE__ */ n("span", { className: M.trailingIcon, children: /* @__PURE__ */ n("img", { src: r ? Ol : m ? Wl : ql, alt: "" }) })
1796
+ /* @__PURE__ */ t("span", { className: D.trailingIcon, children: /* @__PURE__ */ t("img", { src: a ? wl : y ? xl : bl, alt: "" }) })
1579
1797
  ]
1580
1798
  }
1581
1799
  ),
1582
- _ && /* @__PURE__ */ n(
1583
- "p",
1800
+ c && /* @__PURE__ */ t(
1801
+ "div",
1584
1802
  {
1585
- className: ue,
1586
- style: N != null ? { width: `${N}px` } : void 0,
1587
- children: _
1803
+ className: it,
1804
+ style: C != null ? { width: `${C}px` } : void 0,
1805
+ children: c
1588
1806
  }
1589
1807
  )
1590
1808
  ]
1591
1809
  }
1592
1810
  ),
1593
- m && Ae(
1594
- /* @__PURE__ */ n(
1811
+ /* @__PURE__ */ t(st, { tooltip: h }),
1812
+ y && je(
1813
+ /* @__PURE__ */ t(
1595
1814
  "div",
1596
1815
  {
1597
- ref: A,
1816
+ ref: K,
1598
1817
  "data-idb-component": "select-dropdown",
1599
1818
  style: {
1600
1819
  position: "absolute",
1601
- top: q?.top,
1602
- left: q?.left,
1603
- width: q?.width,
1820
+ top: P?.top,
1821
+ left: P?.left,
1822
+ width: P?.width,
1604
1823
  zIndex: 9999
1605
1824
  },
1606
- children: /* @__PURE__ */ n(
1607
- Ue,
1825
+ children: /* @__PURE__ */ t(
1826
+ rt,
1608
1827
  {
1609
- listboxId: h,
1828
+ listboxId: m,
1610
1829
  type: u,
1611
- align: x,
1612
- content: f,
1613
- options: p,
1614
- selectedValue: i?.value,
1615
- onSelect: ce,
1616
- textColor: I,
1617
- closing: v
1830
+ align: w,
1831
+ content: p,
1832
+ options: f,
1833
+ selectedValue: l?.value,
1834
+ onSelect: he,
1835
+ textColor: N,
1836
+ closing: B
1618
1837
  }
1619
1838
  )
1620
1839
  }
@@ -1623,90 +1842,90 @@ function ui({
1623
1842
  )
1624
1843
  ] });
1625
1844
  }
1626
- const Fl = "_root_vt7k4_3", zl = {
1627
- root: Fl
1628
- }, Kl = 150;
1629
- function mi({
1845
+ const vl = "_root_vt7k4_3", yl = {
1846
+ root: vl
1847
+ }, $l = 150;
1848
+ function Vl({
1630
1849
  children: e,
1631
- type: t = "basic",
1850
+ type: n = "basic",
1632
1851
  align: o = "left",
1633
1852
  content: s = !1,
1634
- options: l = [],
1635
- onSelect: _,
1636
- selectedValue: r,
1637
- textColor: a,
1638
- customStyle: i,
1639
- disabled: d = !1,
1640
- width: p
1853
+ options: r = [],
1854
+ onSelect: c,
1855
+ selectedValue: a,
1856
+ textColor: i,
1857
+ customStyle: l,
1858
+ disabled: _ = !1,
1859
+ width: f
1641
1860
  }) {
1642
- const x = `${Ee()}-listbox`, [f, C] = Z(!1), [N, $] = Z(!1), [I, c] = Z(null), h = G(null), m = G(null), R = G(), v = H(() => {
1643
- if (h.current) {
1644
- const B = h.current.getBoundingClientRect();
1645
- c({
1646
- top: B.bottom + window.scrollY + 4,
1647
- left: B.left + window.scrollX,
1648
- width: p ?? B.width
1861
+ const w = `${Me()}-listbox`, [p, g] = O(!1), [C, v] = O(!1), [N, d] = O(null), m = W(null), y = W(null), b = W(), B = T(() => {
1862
+ if (m.current) {
1863
+ const E = m.current.getBoundingClientRect();
1864
+ d({
1865
+ top: E.bottom + window.scrollY + 4,
1866
+ left: E.left + window.scrollX,
1867
+ width: f ?? E.width
1649
1868
  });
1650
1869
  }
1651
- }, [p]), k = H(() => {
1652
- $(!0), R.current = setTimeout(() => {
1653
- C(!1), $(!1);
1654
- }, Kl);
1655
- }, []), q = H(() => {
1656
- d || (f && !N ? k() : f || (v(), C(!0)));
1657
- }, [d, f, N, v, k]), U = H((B) => {
1658
- _(B), k();
1659
- }, [_, k]);
1660
- ie(() => () => clearTimeout(R.current), []), ie(() => {
1661
- const B = (A) => {
1662
- const O = A.target;
1663
- h.current && h.current.contains(O) || m.current && m.current.contains(O) || k();
1870
+ }, [f]), $ = T(() => {
1871
+ v(!0), b.current = setTimeout(() => {
1872
+ g(!1), v(!1);
1873
+ }, $l);
1874
+ }, []), P = T(() => {
1875
+ _ || (p && !C ? $() : p || (B(), g(!0)));
1876
+ }, [_, p, C, B, $]), z = T((E) => {
1877
+ c(E), $();
1878
+ }, [c, $]);
1879
+ ce(() => () => clearTimeout(b.current), []), ce(() => {
1880
+ const E = (H) => {
1881
+ const q = H.target;
1882
+ m.current && m.current.contains(q) || y.current && y.current.contains(q) || $();
1664
1883
  };
1665
- return f && (document.addEventListener("click", B), window.addEventListener("resize", v), window.addEventListener("scroll", v, !0)), () => {
1666
- document.removeEventListener("click", B), window.removeEventListener("resize", v), window.removeEventListener("scroll", v, !0);
1884
+ return p && (document.addEventListener("click", E), window.addEventListener("resize", B), window.addEventListener("scroll", B, !0)), () => {
1885
+ document.removeEventListener("click", E), window.removeEventListener("resize", B), window.removeEventListener("scroll", B, !0);
1667
1886
  };
1668
- }, [f, v, k]);
1669
- const w = H((B) => {
1670
- B.key === "Escape" && f && (B.preventDefault(), k());
1671
- }, [f, k]);
1672
- return /* @__PURE__ */ b(ge, { children: [
1673
- /* @__PURE__ */ n(
1887
+ }, [p, B, $]);
1888
+ const h = T((E) => {
1889
+ E.key === "Escape" && p && (E.preventDefault(), $());
1890
+ }, [p, $]);
1891
+ return /* @__PURE__ */ x(ue, { children: [
1892
+ /* @__PURE__ */ t(
1674
1893
  "div",
1675
1894
  {
1676
- ref: h,
1677
- className: zl.root,
1895
+ ref: m,
1896
+ className: yl.root,
1678
1897
  "data-idb-component": "dropdown",
1679
- style: i,
1680
- onClick: q,
1681
- onKeyDown: w,
1898
+ style: l,
1899
+ onClick: P,
1900
+ onKeyDown: h,
1682
1901
  children: e
1683
1902
  }
1684
1903
  ),
1685
- f && Ae(
1686
- /* @__PURE__ */ n(
1904
+ p && je(
1905
+ /* @__PURE__ */ t(
1687
1906
  "div",
1688
1907
  {
1689
- ref: m,
1908
+ ref: y,
1690
1909
  "data-idb-component": "dropdown-list",
1691
1910
  style: {
1692
1911
  position: "absolute",
1693
- top: I?.top,
1694
- left: I?.left,
1695
- width: I?.width,
1912
+ top: N?.top,
1913
+ left: N?.left,
1914
+ width: N?.width,
1696
1915
  zIndex: 9999
1697
1916
  },
1698
- children: /* @__PURE__ */ n(
1699
- Ue,
1917
+ children: /* @__PURE__ */ t(
1918
+ rt,
1700
1919
  {
1701
- listboxId: x,
1702
- type: t,
1920
+ listboxId: w,
1921
+ type: n,
1703
1922
  align: o,
1704
1923
  content: s,
1705
- options: l,
1706
- selectedValue: r,
1707
- onSelect: U,
1708
- textColor: a,
1709
- closing: N
1924
+ options: r,
1925
+ selectedValue: a,
1926
+ onSelect: z,
1927
+ textColor: i,
1928
+ closing: C
1710
1929
  }
1711
1930
  )
1712
1931
  }
@@ -1716,29 +1935,30 @@ function mi({
1716
1935
  ] });
1717
1936
  }
1718
1937
  export {
1719
- Te as BasicIconButton,
1720
- oi as CheckBox,
1721
- xe as Clip,
1722
- di as ContentBadge,
1723
- on as CustomSpinner,
1724
- mi as Dropdown,
1725
- Xl as FadeSpinner,
1726
- Gl as FillButton,
1727
- ei as FillIconButton,
1728
- io as Input,
1729
- Jl as OutlineButton,
1730
- ni as OutlineIconButton,
1731
- ii as PushBadge,
1732
- si as Radio,
1733
- ti as SearchBar,
1734
- ui as Select,
1735
- Yl as Spinner,
1736
- _i as StateBadge,
1737
- Qn as TextButton,
1738
- li as ToggleSwitch,
1739
- Ql as WeakButton,
1740
- Ps as dismissSnackbar,
1741
- ai as dismissToast,
1742
- ci as showSnackbar,
1743
- ri as showToast
1938
+ Oe as BasicIconButton,
1939
+ Dl as CheckBox,
1940
+ $e as Clip,
1941
+ Fl as ContentBadge,
1942
+ ht as CustomSpinner,
1943
+ Vl as Dropdown,
1944
+ El as FadeSpinner,
1945
+ Il as FillButton,
1946
+ Sl as FillIconButton,
1947
+ xo as Input,
1948
+ Tl as OutlineButton,
1949
+ Ml as OutlineIconButton,
1950
+ Wl as PushBadge,
1951
+ Al as Radio,
1952
+ jl as SearchBar,
1953
+ Zl as Select,
1954
+ Ll as Spinner,
1955
+ zl as StateBadge,
1956
+ un as TextButton,
1957
+ Hl as ToggleSwitch,
1958
+ Kl as Tooltip,
1959
+ Rl as WeakButton,
1960
+ tr as dismissSnackbar,
1961
+ Pl as dismissToast,
1962
+ ql as showSnackbar,
1963
+ Ol as showToast
1744
1964
  };