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