@idbrnd/design-system 2.1.2 → 2.2.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/README.md +50 -14
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +10 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -6
- package/dist/dev/pages/SegmentedControlPage.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +979 -969
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as p, Fragment as S1 } from "react/jsx-runtime";
|
|
2
2
|
import * as $2 from "react";
|
|
3
|
-
import { Children as $1, useMemo as Z1, useId as _9, isValidElement as D2, useRef as F, useEffect as
|
|
3
|
+
import { Children as $1, useMemo as Z1, useId as _9, isValidElement as D2, useRef as F, useEffect as J, useState as q, useCallback as G, useLayoutEffect as o9, createElement as F2, Fragment as O2 } from "react";
|
|
4
4
|
import P2, { createPortal as b9 } from "react-dom";
|
|
5
5
|
import './style.css';const j2 = "_clipWrapper_3mxht_1", W2 = "_clip_3mxht_1", q2 = "_sync_3mxht_59", G2 = "_syncDot_3mxht_65", U2 = "_fade_3mxht_72", Q2 = "_fadeBar_3mxht_77", j1 = {
|
|
6
6
|
clipWrapper: j2,
|
|
@@ -17,17 +17,17 @@ function X2({ color: e = F9, size: t = 10 }) {
|
|
|
17
17
|
const o = Math.max(2, Math.round(t)), l = Math.max(2, Math.round(t * 0.5));
|
|
18
18
|
return (
|
|
19
19
|
// 점 3개를 가로로 배치하는 컨테이너
|
|
20
|
-
/* @__PURE__ */ n("span", { className: j1.sync, style: { color: e, gap: l }, children: Array.from({ length: 3 }).map((r,
|
|
20
|
+
/* @__PURE__ */ n("span", { className: j1.sync, style: { color: e, gap: l }, children: Array.from({ length: 3 }).map((r, c) => /* @__PURE__ */ n(
|
|
21
21
|
"span",
|
|
22
22
|
{
|
|
23
23
|
className: j1.syncDot,
|
|
24
24
|
style: {
|
|
25
25
|
width: o,
|
|
26
26
|
height: o,
|
|
27
|
-
animationDelay: `${
|
|
27
|
+
animationDelay: `${c * 0.12}s`
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
c
|
|
31
31
|
)) })
|
|
32
32
|
);
|
|
33
33
|
}
|
|
@@ -53,10 +53,10 @@ function l9({ color: e = F9, size: t = 10, text: o = "" }) {
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
function Zr({ color: e = F9, width: t = 4, height: o = 12, radius: l = 2, margin: r = 2 }) {
|
|
56
|
-
const i = Math.max(6, Math.round(o + r + 1)),
|
|
56
|
+
const i = Math.max(6, Math.round(o + r + 1)), s = i * 2 + o, C = 1, a = C / 8;
|
|
57
57
|
return (
|
|
58
58
|
// 원형 막대 스피너의 기준 좌표가 되는 컨테이너(막대 위치는 고정)
|
|
59
|
-
/* @__PURE__ */ n("span", { className: j1.fade, style: { color: e, width:
|
|
59
|
+
/* @__PURE__ */ n("span", { className: j1.fade, style: { color: e, width: s, height: s }, children: Array.from({ length: 8 }).map((f, d) => /* @__PURE__ */ n(
|
|
60
60
|
"span",
|
|
61
61
|
{
|
|
62
62
|
className: j1.fadeBar,
|
|
@@ -100,9 +100,9 @@ function Vr({
|
|
|
100
100
|
size: o = "medium",
|
|
101
101
|
disabled: l = !1,
|
|
102
102
|
loading: r = !1,
|
|
103
|
-
keepFocusOnClick:
|
|
103
|
+
keepFocusOnClick: c = !1,
|
|
104
104
|
customStyle: i = {},
|
|
105
|
-
onClick:
|
|
105
|
+
onClick: s,
|
|
106
106
|
className: C,
|
|
107
107
|
children: a,
|
|
108
108
|
type: f = "button",
|
|
@@ -115,10 +115,10 @@ function Vr({
|
|
|
115
115
|
_1[o],
|
|
116
116
|
r ? _1.loading : "",
|
|
117
117
|
C ?? ""
|
|
118
|
-
].filter(Boolean).join(" "), v = [_1.spinnerWrapper, _1[`spinner-${t}`]].filter(Boolean).join(" "), h = [_1.content, e === "fixed" ? _1.fixedContent : ""].filter(Boolean).join(" "),
|
|
119
|
-
const
|
|
120
|
-
return /* @__PURE__ */ n("span", { className:
|
|
121
|
-
}) : a,
|
|
118
|
+
].filter(Boolean).join(" "), v = [_1.spinnerWrapper, _1[`spinner-${t}`]].filter(Boolean).join(" "), h = [_1.content, e === "fixed" ? _1.fixedContent : ""].filter(Boolean).join(" "), w = e === "fixed" ? $1.map(a, (m) => {
|
|
119
|
+
const _ = typeof m == "string" || typeof m == "number" ? _1.text : _1.node;
|
|
120
|
+
return /* @__PURE__ */ n("span", { className: _, children: m });
|
|
121
|
+
}) : a, L = Z1(() => ({
|
|
122
122
|
large: 24,
|
|
123
123
|
medium: 24,
|
|
124
124
|
small: 24,
|
|
@@ -130,13 +130,13 @@ function Vr({
|
|
|
130
130
|
"data-idb-component": !0,
|
|
131
131
|
type: f,
|
|
132
132
|
className: u,
|
|
133
|
-
onClick: r ? void 0 : (
|
|
134
|
-
|
|
133
|
+
onClick: r ? void 0 : (m) => {
|
|
134
|
+
s?.(m), !c && !m.defaultPrevented && m.currentTarget.blur();
|
|
135
135
|
},
|
|
136
136
|
disabled: l,
|
|
137
137
|
style: i,
|
|
138
138
|
...d,
|
|
139
|
-
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size:
|
|
139
|
+
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size: L, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: h, children: w })
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
}
|
|
@@ -167,9 +167,9 @@ function Ir({
|
|
|
167
167
|
size: o = "medium",
|
|
168
168
|
disabled: l = !1,
|
|
169
169
|
loading: r = !1,
|
|
170
|
-
keepFocusOnClick:
|
|
170
|
+
keepFocusOnClick: c = !1,
|
|
171
171
|
customStyle: i = {},
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: s,
|
|
173
173
|
className: C,
|
|
174
174
|
children: a,
|
|
175
175
|
type: f = "button",
|
|
@@ -182,10 +182,10 @@ function Ir({
|
|
|
182
182
|
b1[o],
|
|
183
183
|
r ? b1.loading : "",
|
|
184
184
|
C ?? ""
|
|
185
|
-
].filter(Boolean).join(" "), v = [b1.spinnerWrapper, b1[`spinner-${t}`]].filter(Boolean).join(" "), h = [b1.content, e === "fixed" ? b1.fixedContent : ""].filter(Boolean).join(" "),
|
|
186
|
-
const
|
|
187
|
-
return /* @__PURE__ */ n("span", { className:
|
|
188
|
-
}) : a,
|
|
185
|
+
].filter(Boolean).join(" "), v = [b1.spinnerWrapper, b1[`spinner-${t}`]].filter(Boolean).join(" "), h = [b1.content, e === "fixed" ? b1.fixedContent : ""].filter(Boolean).join(" "), w = e === "fixed" ? $1.map(a, (m) => {
|
|
186
|
+
const _ = typeof m == "string" || typeof m == "number" ? b1.text : b1.node;
|
|
187
|
+
return /* @__PURE__ */ n("span", { className: _, children: m });
|
|
188
|
+
}) : a, L = Z1(() => ({
|
|
189
189
|
large: 24,
|
|
190
190
|
medium: 24,
|
|
191
191
|
small: 24,
|
|
@@ -197,13 +197,13 @@ function Ir({
|
|
|
197
197
|
"data-idb-component": !0,
|
|
198
198
|
type: f,
|
|
199
199
|
className: u,
|
|
200
|
-
onClick: r ? void 0 : (
|
|
201
|
-
|
|
200
|
+
onClick: r ? void 0 : (m) => {
|
|
201
|
+
s?.(m), !c && !m.defaultPrevented && m.currentTarget.blur();
|
|
202
202
|
},
|
|
203
203
|
disabled: l,
|
|
204
204
|
style: i,
|
|
205
205
|
...d,
|
|
206
|
-
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size:
|
|
206
|
+
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size: L, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: h, children: w })
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
209
|
}
|
|
@@ -234,9 +234,9 @@ function u9({
|
|
|
234
234
|
size: o = "medium",
|
|
235
235
|
disabled: l = !1,
|
|
236
236
|
loading: r = !1,
|
|
237
|
-
keepFocusOnClick:
|
|
237
|
+
keepFocusOnClick: c = !1,
|
|
238
238
|
customStyle: i = {},
|
|
239
|
-
onClick:
|
|
239
|
+
onClick: s,
|
|
240
240
|
className: C,
|
|
241
241
|
children: a,
|
|
242
242
|
type: f = "button",
|
|
@@ -249,10 +249,10 @@ function u9({
|
|
|
249
249
|
x1[o],
|
|
250
250
|
r ? x1.loading : "",
|
|
251
251
|
C ?? ""
|
|
252
|
-
].filter(Boolean).join(" "), v = [x1.spinnerWrapper, x1[`spinner-${t}`]].filter(Boolean).join(" "), h = [x1.content, e === "fixed" ? x1.fixedContent : ""].filter(Boolean).join(" "),
|
|
253
|
-
const
|
|
254
|
-
return /* @__PURE__ */ n("span", { className:
|
|
255
|
-
}) : a,
|
|
252
|
+
].filter(Boolean).join(" "), v = [x1.spinnerWrapper, x1[`spinner-${t}`]].filter(Boolean).join(" "), h = [x1.content, e === "fixed" ? x1.fixedContent : ""].filter(Boolean).join(" "), w = e === "fixed" ? $1.map(a, (m) => {
|
|
253
|
+
const _ = typeof m == "string" || typeof m == "number" ? x1.text : x1.node;
|
|
254
|
+
return /* @__PURE__ */ n("span", { className: _, children: m });
|
|
255
|
+
}) : a, L = Z1(() => ({
|
|
256
256
|
large: 24,
|
|
257
257
|
medium: 24,
|
|
258
258
|
small: 24,
|
|
@@ -264,13 +264,13 @@ function u9({
|
|
|
264
264
|
"data-idb-component": !0,
|
|
265
265
|
type: f,
|
|
266
266
|
className: u,
|
|
267
|
-
onClick: r ? void 0 : (
|
|
268
|
-
|
|
267
|
+
onClick: r ? void 0 : (m) => {
|
|
268
|
+
s?.(m), !c && !m.defaultPrevented && m.currentTarget.blur();
|
|
269
269
|
},
|
|
270
270
|
disabled: l,
|
|
271
271
|
style: i,
|
|
272
272
|
...d,
|
|
273
|
-
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size:
|
|
273
|
+
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size: L, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: h, children: w })
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
}
|
|
@@ -301,9 +301,9 @@ function Br({
|
|
|
301
301
|
size: o = "medium",
|
|
302
302
|
disabled: l = !1,
|
|
303
303
|
loading: r = !1,
|
|
304
|
-
keepFocusOnClick:
|
|
304
|
+
keepFocusOnClick: c = !1,
|
|
305
305
|
customStyle: i = {},
|
|
306
|
-
onClick:
|
|
306
|
+
onClick: s,
|
|
307
307
|
className: C,
|
|
308
308
|
children: a,
|
|
309
309
|
type: f = "button",
|
|
@@ -316,10 +316,10 @@ function Br({
|
|
|
316
316
|
M1[o],
|
|
317
317
|
r ? M1.loading : "",
|
|
318
318
|
C ?? ""
|
|
319
|
-
].filter(Boolean).join(" "), v = [M1.spinnerWrapper, M1[`spinner-${t}`]].filter(Boolean).join(" "), h = [M1.content, e === "fixed" ? M1.fixedContent : ""].filter(Boolean).join(" "),
|
|
320
|
-
const
|
|
321
|
-
return /* @__PURE__ */ n("span", { className:
|
|
322
|
-
}) : a,
|
|
319
|
+
].filter(Boolean).join(" "), v = [M1.spinnerWrapper, M1[`spinner-${t}`]].filter(Boolean).join(" "), h = [M1.content, e === "fixed" ? M1.fixedContent : ""].filter(Boolean).join(" "), w = e === "fixed" ? $1.map(a, (m) => {
|
|
320
|
+
const _ = typeof m == "string" || typeof m == "number" ? M1.text : M1.node;
|
|
321
|
+
return /* @__PURE__ */ n("span", { className: _, children: m });
|
|
322
|
+
}) : a, L = Z1(() => ({
|
|
323
323
|
large: 24,
|
|
324
324
|
medium: 24,
|
|
325
325
|
small: 24,
|
|
@@ -331,13 +331,13 @@ function Br({
|
|
|
331
331
|
"data-idb-component": !0,
|
|
332
332
|
type: f,
|
|
333
333
|
className: u,
|
|
334
|
-
onClick: r ? void 0 : (
|
|
335
|
-
|
|
334
|
+
onClick: r ? void 0 : (m) => {
|
|
335
|
+
s?.(m), !c && !m.defaultPrevented && m.currentTarget.blur();
|
|
336
336
|
},
|
|
337
337
|
disabled: l,
|
|
338
338
|
style: i,
|
|
339
339
|
...d,
|
|
340
|
-
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size:
|
|
340
|
+
children: r ? /* @__PURE__ */ n("span", { className: v, children: /* @__PURE__ */ n(l9, { size: L, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: h, children: w })
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
}
|
|
@@ -352,21 +352,21 @@ function S9({
|
|
|
352
352
|
keepFocusOnClick: o = !1,
|
|
353
353
|
customStyle: l = {},
|
|
354
354
|
onClick: r,
|
|
355
|
-
className:
|
|
355
|
+
className: c,
|
|
356
356
|
children: i,
|
|
357
|
-
type:
|
|
357
|
+
type: s = "button",
|
|
358
358
|
...C
|
|
359
359
|
}) {
|
|
360
360
|
const a = [
|
|
361
361
|
e2.button,
|
|
362
362
|
e2[e],
|
|
363
|
-
|
|
363
|
+
c ?? ""
|
|
364
364
|
].filter(Boolean).join(" ");
|
|
365
365
|
return /* @__PURE__ */ n(
|
|
366
366
|
"button",
|
|
367
367
|
{
|
|
368
368
|
"data-idb-component": !0,
|
|
369
|
-
type:
|
|
369
|
+
type: s,
|
|
370
370
|
className: a,
|
|
371
371
|
onClick: (d) => {
|
|
372
372
|
r?.(d), !o && !d.defaultPrevented && d.currentTarget.blur();
|
|
@@ -392,9 +392,9 @@ function Rr({
|
|
|
392
392
|
disabled: o = !1,
|
|
393
393
|
keepFocusOnClick: l = !1,
|
|
394
394
|
customStyle: r = {},
|
|
395
|
-
onClick:
|
|
395
|
+
onClick: c,
|
|
396
396
|
children: i,
|
|
397
|
-
type:
|
|
397
|
+
type: s = "button",
|
|
398
398
|
...C
|
|
399
399
|
}) {
|
|
400
400
|
const a = [I9.button, I9[e], I9[t]].filter(Boolean).join(" ");
|
|
@@ -402,10 +402,10 @@ function Rr({
|
|
|
402
402
|
"button",
|
|
403
403
|
{
|
|
404
404
|
"data-idb-component": !0,
|
|
405
|
-
type:
|
|
405
|
+
type: s,
|
|
406
406
|
className: a,
|
|
407
407
|
onClick: (d) => {
|
|
408
|
-
|
|
408
|
+
c?.(d), !l && !d.defaultPrevented && d.currentTarget.blur();
|
|
409
409
|
},
|
|
410
410
|
disabled: o,
|
|
411
411
|
style: r,
|
|
@@ -425,9 +425,9 @@ function kr({
|
|
|
425
425
|
keepFocusOnClick: o = !1,
|
|
426
426
|
customStyle: l = {},
|
|
427
427
|
onClick: r,
|
|
428
|
-
children:
|
|
428
|
+
children: c,
|
|
429
429
|
type: i = "button",
|
|
430
|
-
...
|
|
430
|
+
...s
|
|
431
431
|
}) {
|
|
432
432
|
const C = [t2.button, t2[e]].filter(Boolean).join(" ");
|
|
433
433
|
return /* @__PURE__ */ n(
|
|
@@ -441,8 +441,8 @@ function kr({
|
|
|
441
441
|
},
|
|
442
442
|
disabled: t,
|
|
443
443
|
style: l,
|
|
444
|
-
...
|
|
445
|
-
children:
|
|
444
|
+
...s,
|
|
445
|
+
children: c
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
448
|
}
|
|
@@ -544,11 +544,11 @@ function K4({
|
|
|
544
544
|
// 상태 variant
|
|
545
545
|
width: r,
|
|
546
546
|
// 루트 너비
|
|
547
|
-
heading:
|
|
547
|
+
heading: c = !0,
|
|
548
548
|
// 라벨 표시 여부
|
|
549
549
|
headingContent: i = "Label",
|
|
550
550
|
// 라벨 내용
|
|
551
|
-
required:
|
|
551
|
+
required: s = !1,
|
|
552
552
|
// 라벨 우측 *
|
|
553
553
|
description: C = !1,
|
|
554
554
|
// 하단 안내 문구
|
|
@@ -564,38 +564,38 @@ function K4({
|
|
|
564
564
|
// 루트 커스텀 스타일
|
|
565
565
|
id: h,
|
|
566
566
|
// input id
|
|
567
|
-
onFocus:
|
|
567
|
+
onFocus: w,
|
|
568
568
|
// 포커스 진입 핸들러
|
|
569
|
-
onBlur:
|
|
569
|
+
onBlur: L,
|
|
570
570
|
// 포커스 이탈 핸들러
|
|
571
571
|
onChange: g,
|
|
572
572
|
// 값 변경 핸들러
|
|
573
|
-
value:
|
|
573
|
+
value: m,
|
|
574
574
|
// 현재 값
|
|
575
|
-
disabled:
|
|
575
|
+
disabled: _ = !1,
|
|
576
576
|
// 전체 비활성화 여부
|
|
577
|
-
readOnly:
|
|
577
|
+
readOnly: H = !1,
|
|
578
578
|
// 읽기 전용 여부
|
|
579
|
-
...
|
|
579
|
+
...k
|
|
580
580
|
}) {
|
|
581
|
-
const x = _9(),
|
|
582
|
-
value:
|
|
583
|
-
onFocus:
|
|
584
|
-
onBlur:
|
|
581
|
+
const x = _9(), V = h ?? x, I = c, A = i, { currentValue: M, handleFocus: b, handleBlur: B, handleChange: S } = X4({
|
|
582
|
+
value: m,
|
|
583
|
+
onFocus: w,
|
|
584
|
+
onBlur: L,
|
|
585
585
|
onChange: g
|
|
586
|
-
}), y = Z1(() =>
|
|
586
|
+
}), y = Z1(() => M == null ? !1 : Array.isArray(M) ? M.length > 0 : typeof M == "number" ? !0 : String(M).length > 0, [M]), Z = Z1(() => g9(f), [f]), T = Z1(() => g9(C), [C]), N = Z !== void 0, D = Z1(() => N ? "error" : l !== void 0 ? l : y ? "typed" : "basic", [N, l, y]), O = D === "error", U = D === "success", a1 = D === "onFocus" || D === "onTyping", h1 = [
|
|
587
587
|
Q.control,
|
|
588
588
|
Q[t],
|
|
589
589
|
O ? Q.error : U ? Q.success : Q.basic,
|
|
590
590
|
Q[o],
|
|
591
|
-
!
|
|
592
|
-
|
|
593
|
-
].filter(Boolean).join(" "), l1 = [Q.inputField, Q[`input-${o}`]].join(" "), K = Q.root, B1 = [Q.label,
|
|
591
|
+
!_ && a1 ? Q.focused : "",
|
|
592
|
+
_ ? Q.disabled : ""
|
|
593
|
+
].filter(Boolean).join(" "), l1 = [Q.inputField, Q[`input-${o}`]].join(" "), K = Q.root, B1 = [Q.label, _ ? Q.labelDisabled : ""].filter(Boolean).join(" "), g1 = Z1(() => O ? N ? Z : "에러 메시지가 표시됩니다." : C === !1 || C === void 0 || C === null ? null : C === !0 ? "2~19자 이내로 입력해 주세요." : T ?? null, [C, O, N, T, Z]), r1 = [
|
|
594
594
|
Q.helper,
|
|
595
595
|
a ? Q.helperFixed : "",
|
|
596
596
|
O ? Q.errorHelper : "",
|
|
597
597
|
O && g1 !== null ? Q.errorHelperBounce : "",
|
|
598
|
-
|
|
598
|
+
_ ? Q.helperDisabled : "",
|
|
599
599
|
a && g1 === null ? Q.helperPlaceholder : ""
|
|
600
600
|
].filter(Boolean).join(" ");
|
|
601
601
|
return /* @__PURE__ */ p(
|
|
@@ -608,33 +608,33 @@ function K4({
|
|
|
608
608
|
...v
|
|
609
609
|
},
|
|
610
610
|
children: [
|
|
611
|
-
|
|
612
|
-
/* @__PURE__ */ n("span", { children:
|
|
613
|
-
|
|
611
|
+
I ? /* @__PURE__ */ p("label", { htmlFor: V, className: B1, children: [
|
|
612
|
+
/* @__PURE__ */ n("span", { children: A }),
|
|
613
|
+
s ? /* @__PURE__ */ n("span", { className: Q.requiredMark, children: "*" }) : null
|
|
614
614
|
] }) : null,
|
|
615
615
|
/* @__PURE__ */ n("div", { className: Q.controlRow, children: /* @__PURE__ */ p("div", { className: h1, children: [
|
|
616
616
|
d ? /* @__PURE__ */ n("span", { className: Q.leadingIcon, children: d }) : null,
|
|
617
617
|
/* @__PURE__ */ n(
|
|
618
618
|
"input",
|
|
619
619
|
{
|
|
620
|
-
id:
|
|
620
|
+
id: V,
|
|
621
621
|
type: e,
|
|
622
|
-
value:
|
|
622
|
+
value: M,
|
|
623
623
|
className: l1,
|
|
624
|
-
onFocus:
|
|
625
|
-
onBlur:
|
|
626
|
-
onChange:
|
|
627
|
-
disabled:
|
|
628
|
-
readOnly:
|
|
629
|
-
required:
|
|
630
|
-
...
|
|
624
|
+
onFocus: b,
|
|
625
|
+
onBlur: B,
|
|
626
|
+
onChange: S,
|
|
627
|
+
disabled: _,
|
|
628
|
+
readOnly: H,
|
|
629
|
+
required: s,
|
|
630
|
+
...k
|
|
631
631
|
}
|
|
632
632
|
),
|
|
633
633
|
/* @__PURE__ */ n(
|
|
634
634
|
Q4,
|
|
635
635
|
{
|
|
636
636
|
content: u,
|
|
637
|
-
disabled:
|
|
637
|
+
disabled: _
|
|
638
638
|
}
|
|
639
639
|
)
|
|
640
640
|
] }) }),
|
|
@@ -662,11 +662,11 @@ function Sr({
|
|
|
662
662
|
// 입력내용 전체 삭제 핸들러(미전달 시 기본 삭제 동작)
|
|
663
663
|
size: r = "default",
|
|
664
664
|
// 인풋 크기
|
|
665
|
-
width:
|
|
665
|
+
width: c,
|
|
666
666
|
// 컴포넌트 너비
|
|
667
667
|
designType: i = "outline",
|
|
668
668
|
// 인풋 외형 타입
|
|
669
|
-
heading:
|
|
669
|
+
heading: s = !1,
|
|
670
670
|
// 라벨 표시 여부
|
|
671
671
|
headingContent: C,
|
|
672
672
|
// 라벨 내용
|
|
@@ -682,49 +682,49 @@ function Sr({
|
|
|
682
682
|
// 읽기 전용 여부
|
|
683
683
|
id: h,
|
|
684
684
|
// input id
|
|
685
|
-
name:
|
|
685
|
+
name: w,
|
|
686
686
|
// input name
|
|
687
|
-
placeholder:
|
|
687
|
+
placeholder: L,
|
|
688
688
|
// placeholder 텍스트
|
|
689
689
|
leadingIcon: g,
|
|
690
690
|
// 좌측 아이콘 슬롯
|
|
691
|
-
trailingContent:
|
|
691
|
+
trailingContent: m,
|
|
692
692
|
// 우측 trailing 콘텐츠(미지정 시 검색 버튼 사용)
|
|
693
|
-
maxLength:
|
|
693
|
+
maxLength: _ = 20,
|
|
694
694
|
// 최대 입력 길이
|
|
695
|
-
required:
|
|
695
|
+
required: H = !1,
|
|
696
696
|
// 필수 입력 여부
|
|
697
|
-
errorMessage:
|
|
697
|
+
errorMessage: k,
|
|
698
698
|
// 에러 상태 문구
|
|
699
699
|
onBlur: x,
|
|
700
700
|
// 포커스 이탈 핸들러
|
|
701
|
-
onKeyDown:
|
|
701
|
+
onKeyDown: V,
|
|
702
702
|
// 키다운 핸들러
|
|
703
|
-
...
|
|
703
|
+
...I
|
|
704
704
|
}) {
|
|
705
|
-
const
|
|
706
|
-
const
|
|
707
|
-
if (!(
|
|
705
|
+
const A = _9(), M = h ?? A, b = () => o(e), B = () => {
|
|
706
|
+
const N = document.getElementById(M);
|
|
707
|
+
if (!(N instanceof HTMLInputElement))
|
|
708
708
|
return;
|
|
709
709
|
const D = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
|
|
710
|
-
D !== void 0 && (D.call(
|
|
711
|
-
},
|
|
710
|
+
D !== void 0 && (D.call(N, ""), N.dispatchEvent(new Event("input", { bubbles: !0 })));
|
|
711
|
+
}, S = () => {
|
|
712
712
|
if (!(u || v || e.length === 0)) {
|
|
713
713
|
if (l !== void 0) {
|
|
714
714
|
l();
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
B();
|
|
718
718
|
}
|
|
719
|
-
}, y = (
|
|
720
|
-
|
|
721
|
-
},
|
|
719
|
+
}, y = (N) => {
|
|
720
|
+
V?.(N), !N.defaultPrevented && (N.key !== "Enter" || N.nativeEvent.isComposing || (N.preventDefault(), b()));
|
|
721
|
+
}, Z = a === void 0 ? void 0 : e6[a], T = m ?? /* @__PURE__ */ p("span", { className: z4.actionButtons, children: [
|
|
722
722
|
e.length > 0 ? /* @__PURE__ */ n(
|
|
723
723
|
S9,
|
|
724
724
|
{
|
|
725
725
|
size: "small",
|
|
726
726
|
keepFocusOnClick: !0,
|
|
727
|
-
onClick:
|
|
727
|
+
onClick: S,
|
|
728
728
|
disabled: u || v,
|
|
729
729
|
children: /* @__PURE__ */ n(
|
|
730
730
|
"img",
|
|
@@ -740,7 +740,7 @@ function Sr({
|
|
|
740
740
|
{
|
|
741
741
|
size: "small",
|
|
742
742
|
keepFocusOnClick: !0,
|
|
743
|
-
onClick:
|
|
743
|
+
onClick: b,
|
|
744
744
|
disabled: u,
|
|
745
745
|
children: /* @__PURE__ */ n(
|
|
746
746
|
"img",
|
|
@@ -755,28 +755,28 @@ function Sr({
|
|
|
755
755
|
return /* @__PURE__ */ n(
|
|
756
756
|
K4,
|
|
757
757
|
{
|
|
758
|
-
...
|
|
759
|
-
id:
|
|
760
|
-
name:
|
|
758
|
+
...I,
|
|
759
|
+
id: M,
|
|
760
|
+
name: w,
|
|
761
761
|
value: e,
|
|
762
|
-
placeholder:
|
|
762
|
+
placeholder: L,
|
|
763
763
|
onChange: t,
|
|
764
764
|
onBlur: x,
|
|
765
765
|
onKeyDown: y,
|
|
766
766
|
type: "text",
|
|
767
|
-
width:
|
|
767
|
+
width: c,
|
|
768
768
|
designType: i,
|
|
769
769
|
size: r,
|
|
770
|
-
heading:
|
|
770
|
+
heading: s,
|
|
771
771
|
headingContent: C,
|
|
772
|
-
required:
|
|
772
|
+
required: H,
|
|
773
773
|
description: f,
|
|
774
774
|
fixedDescriptionHeight: d,
|
|
775
|
-
variant:
|
|
776
|
-
errorMessage:
|
|
775
|
+
variant: Z,
|
|
776
|
+
errorMessage: k,
|
|
777
777
|
leadingIcon: g,
|
|
778
778
|
trailingContent: T,
|
|
779
|
-
maxLength:
|
|
779
|
+
maxLength: _,
|
|
780
780
|
disabled: u,
|
|
781
781
|
readOnly: v
|
|
782
782
|
}
|
|
@@ -804,19 +804,19 @@ function n2({
|
|
|
804
804
|
density: o = "default",
|
|
805
805
|
disabled: l = !1,
|
|
806
806
|
customStyle: r = {},
|
|
807
|
-
className:
|
|
807
|
+
className: c,
|
|
808
808
|
checked: i = !1,
|
|
809
|
-
indeterminate:
|
|
809
|
+
indeterminate: s = !1,
|
|
810
810
|
children: C,
|
|
811
811
|
onChange: a,
|
|
812
812
|
...f
|
|
813
813
|
}) {
|
|
814
814
|
const d = F(null);
|
|
815
|
-
|
|
816
|
-
d.current && (d.current.indeterminate =
|
|
817
|
-
}, [
|
|
818
|
-
const u = (
|
|
819
|
-
a?.(
|
|
815
|
+
J(() => {
|
|
816
|
+
d.current && (d.current.indeterminate = s);
|
|
817
|
+
}, [s]);
|
|
818
|
+
const u = (w) => {
|
|
819
|
+
a?.(w.target.checked);
|
|
820
820
|
}, v = t === "small" ? n6 : t6, h = [
|
|
821
821
|
m1.wrapper,
|
|
822
822
|
m1[e],
|
|
@@ -824,7 +824,7 @@ function n2({
|
|
|
824
824
|
m1[o],
|
|
825
825
|
i ? m1.active : "",
|
|
826
826
|
l ? m1.disabled : "",
|
|
827
|
-
|
|
827
|
+
c ?? ""
|
|
828
828
|
].filter(Boolean).join(" ");
|
|
829
829
|
return /* @__PURE__ */ p("label", { "data-idb-component": !0, className: h, style: r, children: [
|
|
830
830
|
/* @__PURE__ */ n(
|
|
@@ -840,7 +840,7 @@ function n2({
|
|
|
840
840
|
}
|
|
841
841
|
),
|
|
842
842
|
/* @__PURE__ */ n("span", { className: m1.control, children: /* @__PURE__ */ p("span", { className: m1.box, children: [
|
|
843
|
-
i &&
|
|
843
|
+
i && s && /* @__PURE__ */ n(
|
|
844
844
|
"img",
|
|
845
845
|
{
|
|
846
846
|
src: o6,
|
|
@@ -849,7 +849,7 @@ function n2({
|
|
|
849
849
|
"aria-hidden": "true"
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
|
-
i && !
|
|
852
|
+
i && !s && /* @__PURE__ */ n(
|
|
853
853
|
"img",
|
|
854
854
|
{
|
|
855
855
|
src: v,
|
|
@@ -882,9 +882,9 @@ function Ar({
|
|
|
882
882
|
density: o = "default",
|
|
883
883
|
disabled: l = !1,
|
|
884
884
|
checked: r = !1,
|
|
885
|
-
customStyle:
|
|
885
|
+
customStyle: c = {},
|
|
886
886
|
className: i,
|
|
887
|
-
children:
|
|
887
|
+
children: s,
|
|
888
888
|
onChange: C,
|
|
889
889
|
...a
|
|
890
890
|
}) {
|
|
@@ -899,7 +899,7 @@ function Ar({
|
|
|
899
899
|
l ? y1.disabled : "",
|
|
900
900
|
i ?? ""
|
|
901
901
|
].filter(Boolean).join(" ");
|
|
902
|
-
return /* @__PURE__ */ p("label", { "data-idb-component": !0, className: d, style:
|
|
902
|
+
return /* @__PURE__ */ p("label", { "data-idb-component": !0, className: d, style: c, children: [
|
|
903
903
|
/* @__PURE__ */ n(
|
|
904
904
|
"input",
|
|
905
905
|
{
|
|
@@ -912,7 +912,7 @@ function Ar({
|
|
|
912
912
|
}
|
|
913
913
|
),
|
|
914
914
|
/* @__PURE__ */ n("span", { className: y1.control, children: /* @__PURE__ */ n("span", { className: y1.circle }) }),
|
|
915
|
-
|
|
915
|
+
s != null ? /* @__PURE__ */ n("span", { className: y1.content, children: s }) : null
|
|
916
916
|
] });
|
|
917
917
|
}
|
|
918
918
|
const B6 = "_wrapper_tycam_1", R6 = "_disabled_tycam_8", k6 = "_input_tycam_13", S6 = "_track_tycam_22", A6 = "_thumb_tycam_31", N6 = "_small_tycam_41", E6 = "_medium_tycam_52", T6 = "_large_tycam_63", $6 = "_off_tycam_76", D6 = "_on_tycam_82", A1 = {
|
|
@@ -933,11 +933,11 @@ function Nr({
|
|
|
933
933
|
disabled: o = !1,
|
|
934
934
|
customStyle: l = {},
|
|
935
935
|
className: r,
|
|
936
|
-
onChange:
|
|
936
|
+
onChange: c,
|
|
937
937
|
...i
|
|
938
938
|
}) {
|
|
939
|
-
const
|
|
940
|
-
|
|
939
|
+
const s = (a) => {
|
|
940
|
+
c?.(a.target.checked);
|
|
941
941
|
}, C = [
|
|
942
942
|
A1.wrapper,
|
|
943
943
|
A1[e],
|
|
@@ -953,7 +953,7 @@ function Nr({
|
|
|
953
953
|
className: A1.input,
|
|
954
954
|
checked: t,
|
|
955
955
|
disabled: o,
|
|
956
|
-
onChange:
|
|
956
|
+
onChange: s,
|
|
957
957
|
...i
|
|
958
958
|
}
|
|
959
959
|
),
|
|
@@ -972,17 +972,17 @@ function Er({
|
|
|
972
972
|
maxCount: o = 999,
|
|
973
973
|
bgColor: l,
|
|
974
974
|
color: r,
|
|
975
|
-
disabled:
|
|
975
|
+
disabled: c = !1,
|
|
976
976
|
customStyle: i = {},
|
|
977
|
-
className:
|
|
977
|
+
className: s
|
|
978
978
|
}) {
|
|
979
|
-
if (
|
|
979
|
+
if (c)
|
|
980
980
|
return null;
|
|
981
981
|
const C = t > o ? `${o}+` : t, a = {
|
|
982
982
|
...l ? { backgroundColor: l } : {},
|
|
983
983
|
...r ? { color: r } : {},
|
|
984
984
|
...i
|
|
985
|
-
}, f = [o2.badge, o2[e],
|
|
985
|
+
}, f = [o2.badge, o2[e], s ?? ""].filter(Boolean).join(" ");
|
|
986
986
|
return /* @__PURE__ */ p("span", { "data-idb-component": !0, className: f, style: a, children: [
|
|
987
987
|
e === "number" ? C : null,
|
|
988
988
|
e === "info" ? "?" : null
|
|
@@ -1162,9 +1162,9 @@ function A3(e) {
|
|
|
1162
1162
|
W1(), z1(), J1 = e, w2();
|
|
1163
1163
|
}
|
|
1164
1164
|
function N3({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: l }) {
|
|
1165
|
-
const r = F(null), [
|
|
1166
|
-
|
|
1167
|
-
if (!
|
|
1165
|
+
const r = F(null), [c, i] = q(!1), s = K1(e.heading), C = K1(e.description);
|
|
1166
|
+
J(() => {
|
|
1167
|
+
if (!s) {
|
|
1168
1168
|
i(!1);
|
|
1169
1169
|
return;
|
|
1170
1170
|
}
|
|
@@ -1172,19 +1172,19 @@ function N3({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: l }
|
|
|
1172
1172
|
if (!v)
|
|
1173
1173
|
return;
|
|
1174
1174
|
let h = null;
|
|
1175
|
-
const
|
|
1175
|
+
const w = () => {
|
|
1176
1176
|
i(v.scrollHeight > v.clientHeight + 1);
|
|
1177
|
-
},
|
|
1178
|
-
h !== null && window.cancelAnimationFrame(h), h = window.requestAnimationFrame(
|
|
1177
|
+
}, L = () => {
|
|
1178
|
+
h !== null && window.cancelAnimationFrame(h), h = window.requestAnimationFrame(w);
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1180
|
+
L();
|
|
1181
1181
|
const g = typeof ResizeObserver < "u";
|
|
1182
|
-
let
|
|
1183
|
-
return g ? (
|
|
1184
|
-
h !== null && window.cancelAnimationFrame(h),
|
|
1182
|
+
let m = null;
|
|
1183
|
+
return g ? (m = new ResizeObserver(L), m.observe(v)) : window.addEventListener("resize", L), () => {
|
|
1184
|
+
h !== null && window.cancelAnimationFrame(h), m?.disconnect(), g || window.removeEventListener("resize", L);
|
|
1185
1185
|
};
|
|
1186
|
-
}, [
|
|
1187
|
-
const a =
|
|
1186
|
+
}, [s, e.description, e.heading]);
|
|
1187
|
+
const a = s && !c, f = s ? C ? /* @__PURE__ */ p(S1, { children: [
|
|
1188
1188
|
e.heading,
|
|
1189
1189
|
" ",
|
|
1190
1190
|
e.description
|
|
@@ -1210,7 +1210,7 @@ function N3({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: l }
|
|
|
1210
1210
|
/* @__PURE__ */ n("p", { className: t1.heading, children: e.heading }),
|
|
1211
1211
|
C ? /* @__PURE__ */ n("p", { className: t1.description, children: e.description }) : null
|
|
1212
1212
|
] }) : /* @__PURE__ */ n("p", { className: t1.description, children: f }),
|
|
1213
|
-
|
|
1213
|
+
s ? (
|
|
1214
1214
|
// 실제 화면에는 보이지 않지만 heading 2줄 초과 여부를 안정적으로 측정하기 위한 숨김 영역
|
|
1215
1215
|
/* @__PURE__ */ p("div", { ref: r, className: t1.measureContent, "aria-hidden": "true", children: [
|
|
1216
1216
|
/* @__PURE__ */ n("p", { className: t1.heading, children: e.heading }),
|
|
@@ -1269,9 +1269,9 @@ function $r({
|
|
|
1269
1269
|
description: o,
|
|
1270
1270
|
icon: l,
|
|
1271
1271
|
actionLabel: r,
|
|
1272
|
-
onActionClick:
|
|
1272
|
+
onActionClick: c,
|
|
1273
1273
|
closeButton: i = !1,
|
|
1274
|
-
customStyle:
|
|
1274
|
+
customStyle: s
|
|
1275
1275
|
}) {
|
|
1276
1276
|
if (!K1(t) && !K1(o) || !k3())
|
|
1277
1277
|
return;
|
|
@@ -1283,9 +1283,9 @@ function $r({
|
|
|
1283
1283
|
description: o,
|
|
1284
1284
|
icon: l,
|
|
1285
1285
|
actionLabel: r,
|
|
1286
|
-
onActionClick:
|
|
1286
|
+
onActionClick: c,
|
|
1287
1287
|
closeButton: i,
|
|
1288
|
-
customStyle:
|
|
1288
|
+
customStyle: s,
|
|
1289
1289
|
isExiting: !1,
|
|
1290
1290
|
renderKey: R3++
|
|
1291
1291
|
}, T9(), A3(C);
|
|
@@ -1312,10 +1312,10 @@ function q3({
|
|
|
1312
1312
|
circular: o = !1,
|
|
1313
1313
|
interactionActive: l = !1,
|
|
1314
1314
|
onClick: r,
|
|
1315
|
-
customStyle:
|
|
1315
|
+
customStyle: c = {},
|
|
1316
1316
|
...i
|
|
1317
1317
|
}) {
|
|
1318
|
-
const
|
|
1318
|
+
const s = e || T3, C = l ? 0 : void 0, a = e1(
|
|
1319
1319
|
O1.avatar,
|
|
1320
1320
|
O1[t],
|
|
1321
1321
|
o && O1.circular
|
|
@@ -1323,15 +1323,15 @@ function q3({
|
|
|
1323
1323
|
O1.interactionSurface,
|
|
1324
1324
|
O1[t],
|
|
1325
1325
|
o && O1.circular
|
|
1326
|
-
), d = l ? "pointer" : "default", u = (
|
|
1327
|
-
r && (
|
|
1328
|
-
}, v = (
|
|
1329
|
-
r?.(
|
|
1326
|
+
), d = l ? "pointer" : "default", u = (w) => {
|
|
1327
|
+
r && (w.key === "Enter" || w.key === " ") && (w.preventDefault(), w.currentTarget.click());
|
|
1328
|
+
}, v = (w) => {
|
|
1329
|
+
r?.(w), w.defaultPrevented || w.currentTarget.blur();
|
|
1330
1330
|
}, h = /* @__PURE__ */ n(
|
|
1331
1331
|
"img",
|
|
1332
1332
|
{
|
|
1333
1333
|
"data-idb-component": l ? void 0 : !0,
|
|
1334
|
-
src:
|
|
1334
|
+
src: s,
|
|
1335
1335
|
alt: r2,
|
|
1336
1336
|
className: a,
|
|
1337
1337
|
onClick: l ? void 0 : r,
|
|
@@ -1340,7 +1340,7 @@ function q3({
|
|
|
1340
1340
|
draggable: !1,
|
|
1341
1341
|
style: {
|
|
1342
1342
|
cursor: d,
|
|
1343
|
-
...
|
|
1343
|
+
...c
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
);
|
|
@@ -1375,11 +1375,11 @@ function Dr({
|
|
|
1375
1375
|
c9.stack,
|
|
1376
1376
|
c9[t]
|
|
1377
1377
|
), l = e.slice(0, K3);
|
|
1378
|
-
return l.length === 0 ? null : /* @__PURE__ */ n("div", { "data-idb-component": !0, className: o, children: l.map((r,
|
|
1378
|
+
return l.length === 0 ? null : /* @__PURE__ */ n("div", { "data-idb-component": !0, className: o, children: l.map((r, c) => /* @__PURE__ */ n(
|
|
1379
1379
|
"span",
|
|
1380
1380
|
{
|
|
1381
1381
|
className: c9.item,
|
|
1382
|
-
style: { zIndex:
|
|
1382
|
+
style: { zIndex: c + 1 },
|
|
1383
1383
|
children: /* @__PURE__ */ n("span", { className: c9.avatarSlot, children: /* @__PURE__ */ n(
|
|
1384
1384
|
q3,
|
|
1385
1385
|
{
|
|
@@ -1388,7 +1388,7 @@ function Dr({
|
|
|
1388
1388
|
}
|
|
1389
1389
|
) })
|
|
1390
1390
|
},
|
|
1391
|
-
`${r ?? "default"}-${
|
|
1391
|
+
`${r ?? "default"}-${c}`
|
|
1392
1392
|
)) });
|
|
1393
1393
|
}
|
|
1394
1394
|
const Y3 = "_badge_1rfcr_1", J3 = "_basic_1rfcr_13", z3 = "_primary_1rfcr_19", e5 = "_compact_1rfcr_31", B9 = {
|
|
@@ -1405,9 +1405,9 @@ function Fr({
|
|
|
1405
1405
|
contentColor: o,
|
|
1406
1406
|
backgroundColor: l,
|
|
1407
1407
|
borderColor: r,
|
|
1408
|
-
customStyle:
|
|
1408
|
+
customStyle: c = {},
|
|
1409
1409
|
className: i,
|
|
1410
|
-
children:
|
|
1410
|
+
children: s
|
|
1411
1411
|
}) {
|
|
1412
1412
|
const C = [
|
|
1413
1413
|
B9.badge,
|
|
@@ -1418,9 +1418,9 @@ function Fr({
|
|
|
1418
1418
|
...o ? { color: o } : {},
|
|
1419
1419
|
...l ? { backgroundColor: l } : {},
|
|
1420
1420
|
...r ? { borderColor: r } : {},
|
|
1421
|
-
...
|
|
1421
|
+
...c
|
|
1422
1422
|
};
|
|
1423
|
-
return /* @__PURE__ */ n("span", { "data-idb-component": !0, className: C, style: a, children:
|
|
1423
|
+
return /* @__PURE__ */ n("span", { "data-idb-component": !0, className: C, style: a, children: s });
|
|
1424
1424
|
}
|
|
1425
1425
|
const t5 = "_badge_pssu9_1", n5 = "_basic_pssu9_13", o5 = "_error_pssu9_19", l5 = "_success_pssu9_25", r5 = "_info_pssu9_31", i5 = "_warning_pssu9_37", C5 = "_compact_pssu9_49", s5 = "_dot_pssu9_55", a9 = {
|
|
1426
1426
|
badge: t5,
|
|
@@ -1439,7 +1439,7 @@ function Or({
|
|
|
1439
1439
|
stateIcon: o = !1,
|
|
1440
1440
|
customStyle: l = {},
|
|
1441
1441
|
className: r,
|
|
1442
|
-
children:
|
|
1442
|
+
children: c
|
|
1443
1443
|
}) {
|
|
1444
1444
|
const i = [
|
|
1445
1445
|
a9.badge,
|
|
@@ -1449,7 +1449,7 @@ function Or({
|
|
|
1449
1449
|
].filter(Boolean).join(" ");
|
|
1450
1450
|
return /* @__PURE__ */ p("span", { "data-idb-component": !0, className: i, style: l, children: [
|
|
1451
1451
|
o ? /* @__PURE__ */ n("span", { className: a9.dot }) : null,
|
|
1452
|
-
|
|
1452
|
+
c
|
|
1453
1453
|
] });
|
|
1454
1454
|
}
|
|
1455
1455
|
const c5 = "_root_1p9m1_3", a5 = "_label_1p9m1_13", d5 = "_requiredMark_1p9m1_21", u5 = "_select_1p9m1_29", h5 = "_large_1p9m1_45", f5 = "_medium_1p9m1_48", p5 = "_small_1p9m1_51", g5 = "_disabled_1p9m1_60", m5 = "_choosing_1p9m1_60", w5 = "_error_1p9m1_69", v5 = "_selected_1p9m1_73", L5 = "_value_1p9m1_84", _5 = "_contentWrapper_1p9m1_89", b5 = "_leadingContent_1p9m1_97", x5 = "_placeholder_1p9m1_123", M5 = "_trailingIcon_1p9m1_127", y5 = "_helper_1p9m1_139", H5 = "_errorHelper_1p9m1_147", Z5 = "_helperDisabled_1p9m1_151", d1 = {
|
|
@@ -1518,57 +1518,57 @@ const c5 = "_root_1p9m1_3", a5 = "_label_1p9m1_13", d5 = "_requiredMark_1p9m1_21
|
|
|
1518
1518
|
trigger: h7
|
|
1519
1519
|
}, f7 = 6, p7 = 4, w1 = f7 + p7, d9 = 20;
|
|
1520
1520
|
function v2(e, t, o) {
|
|
1521
|
-
const l = t.offsetWidth, r = t.offsetHeight,
|
|
1522
|
-
let
|
|
1521
|
+
const l = t.offsetWidth, r = t.offsetHeight, c = e.left + e.width / 2, i = e.top + e.height / 2;
|
|
1522
|
+
let s = 0, C = 0;
|
|
1523
1523
|
switch (o) {
|
|
1524
1524
|
// ─── Top ──────────────────────────────────────────
|
|
1525
1525
|
case "top":
|
|
1526
|
-
|
|
1526
|
+
s = e.top - r - w1, C = c - l / 2;
|
|
1527
1527
|
break;
|
|
1528
1528
|
case "top-left":
|
|
1529
|
-
|
|
1529
|
+
s = e.top - r - w1, C = c - l + d9;
|
|
1530
1530
|
break;
|
|
1531
1531
|
case "top-right":
|
|
1532
|
-
|
|
1532
|
+
s = e.top - r - w1, C = c - d9;
|
|
1533
1533
|
break;
|
|
1534
1534
|
// ─── Bottom ───────────────────────────────────────
|
|
1535
1535
|
case "bottom":
|
|
1536
|
-
|
|
1536
|
+
s = e.bottom + w1, C = c - l / 2;
|
|
1537
1537
|
break;
|
|
1538
1538
|
case "bottom-left":
|
|
1539
|
-
|
|
1539
|
+
s = e.bottom + w1, C = c - l + d9;
|
|
1540
1540
|
break;
|
|
1541
1541
|
case "bottom-right":
|
|
1542
|
-
|
|
1542
|
+
s = e.bottom + w1, C = c - d9;
|
|
1543
1543
|
break;
|
|
1544
1544
|
// ─── Left ─────────────────────────────────────────
|
|
1545
1545
|
case "left":
|
|
1546
|
-
|
|
1546
|
+
s = i - r / 2, C = e.left - l - w1;
|
|
1547
1547
|
break;
|
|
1548
1548
|
case "left-top":
|
|
1549
|
-
|
|
1549
|
+
s = e.top, C = e.left - l - w1;
|
|
1550
1550
|
break;
|
|
1551
1551
|
case "left-bottom":
|
|
1552
|
-
|
|
1552
|
+
s = e.bottom - r, C = e.left - l - w1;
|
|
1553
1553
|
break;
|
|
1554
1554
|
// ─── Right ────────────────────────────────────────
|
|
1555
1555
|
case "right":
|
|
1556
|
-
|
|
1556
|
+
s = i - r / 2, C = e.right + w1;
|
|
1557
1557
|
break;
|
|
1558
1558
|
case "right-top":
|
|
1559
|
-
|
|
1559
|
+
s = e.top, C = e.right + w1;
|
|
1560
1560
|
break;
|
|
1561
1561
|
case "right-bottom":
|
|
1562
|
-
|
|
1562
|
+
s = e.bottom - r, C = e.right + w1;
|
|
1563
1563
|
break;
|
|
1564
1564
|
}
|
|
1565
|
-
return { top: Math.round(
|
|
1565
|
+
return { top: Math.round(s), left: Math.round(C) };
|
|
1566
1566
|
}
|
|
1567
1567
|
function L2() {
|
|
1568
1568
|
const [e, t] = q(null), o = G(
|
|
1569
|
-
(r,
|
|
1570
|
-
const
|
|
1571
|
-
t({ content:
|
|
1569
|
+
(r, c, i) => {
|
|
1570
|
+
const s = r.getBoundingClientRect();
|
|
1571
|
+
t({ content: c, rect: s, position: i });
|
|
1572
1572
|
},
|
|
1573
1573
|
[]
|
|
1574
1574
|
), l = G(() => {
|
|
@@ -1591,9 +1591,9 @@ const g7 = {
|
|
|
1591
1591
|
"right-bottom": Y.arrowRightBottom
|
|
1592
1592
|
};
|
|
1593
1593
|
function _2({ tooltip: e, backgroundColor: t, contentColor: o }) {
|
|
1594
|
-
const l = F(null), [r,
|
|
1594
|
+
const l = F(null), [r, c] = q(null);
|
|
1595
1595
|
if (o9(() => {
|
|
1596
|
-
e && l.current ?
|
|
1596
|
+
e && l.current ? c(v2(e.rect, l.current, e.position)) : c(null);
|
|
1597
1597
|
}, [e]), !e) return null;
|
|
1598
1598
|
const i = t ? { backgroundColor: t, borderColor: t } : void 0;
|
|
1599
1599
|
return b9(
|
|
@@ -1623,48 +1623,55 @@ function Pr({
|
|
|
1623
1623
|
variant: o = "default",
|
|
1624
1624
|
position: l = "top",
|
|
1625
1625
|
arrow: r = !0,
|
|
1626
|
-
as:
|
|
1626
|
+
as: c,
|
|
1627
1627
|
visibleOnEllipsis: i = !1,
|
|
1628
1628
|
// 자식 엘리먼트에 말줄임(ellipsis)이 발생했을 때만 툴팁을 표시.
|
|
1629
|
-
backgroundColor:
|
|
1629
|
+
backgroundColor: s,
|
|
1630
1630
|
contentColor: C,
|
|
1631
1631
|
customStyle: a,
|
|
1632
1632
|
children: f
|
|
1633
1633
|
}) {
|
|
1634
|
-
const [d, u] = q(!1), v = F(null), h = F(null), [
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
_(v2(V, h.current, l));
|
|
1634
|
+
const [d, u] = q(!1), v = F(null), h = F(null), [w, L] = q(null), g = G(() => {
|
|
1635
|
+
if (h.current && v.current) {
|
|
1636
|
+
const M = v.current.getBoundingClientRect();
|
|
1637
|
+
L(v2(M, h.current, l));
|
|
1639
1638
|
}
|
|
1640
|
-
}, [
|
|
1641
|
-
|
|
1639
|
+
}, [l]);
|
|
1640
|
+
o9(() => {
|
|
1641
|
+
d && g();
|
|
1642
|
+
}, [d, g]);
|
|
1643
|
+
const m = G(() => {
|
|
1642
1644
|
if (!i || !v.current) return !0;
|
|
1643
|
-
const
|
|
1644
|
-
return
|
|
1645
|
-
}, [i]),
|
|
1646
|
-
|
|
1647
|
-
}, [
|
|
1648
|
-
u(!1),
|
|
1649
|
-
}, []),
|
|
1645
|
+
const M = v.current.firstElementChild ?? v.current;
|
|
1646
|
+
return M.scrollWidth > M.clientWidth || M.scrollHeight > M.clientHeight;
|
|
1647
|
+
}, [i]), _ = G(() => {
|
|
1648
|
+
m() && u(!0);
|
|
1649
|
+
}, [m]), H = G(() => {
|
|
1650
|
+
u(!1), L(null);
|
|
1651
|
+
}, []), k = G(() => {
|
|
1650
1652
|
if (d)
|
|
1651
|
-
|
|
1653
|
+
H();
|
|
1652
1654
|
else {
|
|
1653
|
-
if (!
|
|
1655
|
+
if (!m()) return;
|
|
1654
1656
|
u(!0);
|
|
1655
1657
|
}
|
|
1656
|
-
}, [d,
|
|
1657
|
-
|
|
1658
|
+
}, [d, H, m]);
|
|
1659
|
+
J(() => {
|
|
1658
1660
|
if (t !== "click" || !d) return;
|
|
1659
|
-
const
|
|
1660
|
-
const
|
|
1661
|
-
v.current?.contains(
|
|
1661
|
+
const M = (b) => {
|
|
1662
|
+
const B = b.target;
|
|
1663
|
+
v.current?.contains(B) || h.current?.contains(B) || H();
|
|
1662
1664
|
};
|
|
1663
|
-
return document.addEventListener("mousedown",
|
|
1664
|
-
document.removeEventListener("mousedown",
|
|
1665
|
+
return document.addEventListener("mousedown", M), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H), () => {
|
|
1666
|
+
document.removeEventListener("mousedown", M), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
|
|
1665
1667
|
};
|
|
1666
|
-
}, [t, d,
|
|
1667
|
-
|
|
1668
|
+
}, [t, d, H]), J(() => {
|
|
1669
|
+
if (t === "always")
|
|
1670
|
+
return _(), window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), () => {
|
|
1671
|
+
window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
|
|
1672
|
+
};
|
|
1673
|
+
}, [t, _, g]);
|
|
1674
|
+
const x = typeof e == "function" ? e(H) : e, V = s ? { backgroundColor: s } : void 0, I = c ?? "span", A = e1(
|
|
1668
1675
|
Y.tooltip,
|
|
1669
1676
|
Y[o]
|
|
1670
1677
|
);
|
|
@@ -1674,7 +1681,8 @@ function Pr({
|
|
|
1674
1681
|
{
|
|
1675
1682
|
ref: v,
|
|
1676
1683
|
className: Y.trigger,
|
|
1677
|
-
...t === "hover" ? { onMouseEnter:
|
|
1684
|
+
...t === "hover" ? { onMouseEnter: _, onMouseLeave: H } : t === "click" ? { onClick: k } : {}
|
|
1685
|
+
// always: 이벤트 핸들러 없이 항상 표시
|
|
1678
1686
|
},
|
|
1679
1687
|
f
|
|
1680
1688
|
),
|
|
@@ -1683,15 +1691,15 @@ function Pr({
|
|
|
1683
1691
|
"div",
|
|
1684
1692
|
{
|
|
1685
1693
|
ref: h,
|
|
1686
|
-
className:
|
|
1694
|
+
className: A,
|
|
1687
1695
|
"data-idb-component": "tooltip",
|
|
1688
1696
|
style: {
|
|
1689
|
-
...
|
|
1697
|
+
...V,
|
|
1690
1698
|
...a,
|
|
1691
1699
|
color: C,
|
|
1692
|
-
top:
|
|
1693
|
-
left:
|
|
1694
|
-
visibility:
|
|
1700
|
+
top: w?.top,
|
|
1701
|
+
left: w?.left,
|
|
1702
|
+
visibility: w ? "visible" : "hidden"
|
|
1695
1703
|
},
|
|
1696
1704
|
children: [
|
|
1697
1705
|
r && /* @__PURE__ */ n(
|
|
@@ -1700,7 +1708,7 @@ function Pr({
|
|
|
1700
1708
|
className: e1(Y.arrow, g7[l])
|
|
1701
1709
|
}
|
|
1702
1710
|
),
|
|
1703
|
-
/* @__PURE__ */ n("div", { className: Y.body, children: /* @__PURE__ */ n("span", { className: Y.content, children:
|
|
1711
|
+
/* @__PURE__ */ n("div", { className: Y.body, children: /* @__PURE__ */ n("span", { className: Y.content, children: x }) })
|
|
1704
1712
|
]
|
|
1705
1713
|
}
|
|
1706
1714
|
),
|
|
@@ -1740,8 +1748,8 @@ function m7(e, t) {
|
|
|
1740
1748
|
const o = e.toLowerCase().replace(/\s/g, ""), l = t.toLowerCase().replace(/\s/g, "");
|
|
1741
1749
|
if (!l || o.includes(l)) return !0;
|
|
1742
1750
|
if (!l.split("").some(C2)) return !1;
|
|
1743
|
-
const
|
|
1744
|
-
return
|
|
1751
|
+
const c = o.split("").map(i2).join(""), i = l.split("").map((s) => C2(s) ? s : i2(s)).join("");
|
|
1752
|
+
return c.includes(i);
|
|
1745
1753
|
}
|
|
1746
1754
|
function x2({
|
|
1747
1755
|
listboxId: e,
|
|
@@ -1749,34 +1757,34 @@ function x2({
|
|
|
1749
1757
|
align: o = "left",
|
|
1750
1758
|
content: l = !1,
|
|
1751
1759
|
options: r,
|
|
1752
|
-
selectedValue:
|
|
1760
|
+
selectedValue: c,
|
|
1753
1761
|
onSelect: i,
|
|
1754
|
-
textColor:
|
|
1762
|
+
textColor: s,
|
|
1755
1763
|
closing: C = !1,
|
|
1756
1764
|
placement: a = "bottom"
|
|
1757
1765
|
}) {
|
|
1758
|
-
const [f, d] = q(""), { tooltip: u, showTooltip: v, hideTooltip: h } = L2(),
|
|
1759
|
-
(x,
|
|
1760
|
-
const
|
|
1766
|
+
const [f, d] = q(""), { tooltip: u, showTooltip: v, hideTooltip: h } = L2(), w = F(null), [L, g] = q(!1), m = G(
|
|
1767
|
+
(x, V) => {
|
|
1768
|
+
const I = x.currentTarget.querySelector(
|
|
1761
1769
|
`.${n1.optionLabel}`
|
|
1762
1770
|
);
|
|
1763
|
-
if (
|
|
1764
|
-
const
|
|
1765
|
-
v(x.currentTarget,
|
|
1771
|
+
if (I && I.scrollWidth > I.clientWidth) {
|
|
1772
|
+
const A = window.innerHeight - x.currentTarget.getBoundingClientRect().bottom > 80 ? "bottom" : "top";
|
|
1773
|
+
v(x.currentTarget, V, A);
|
|
1766
1774
|
}
|
|
1767
1775
|
},
|
|
1768
1776
|
[v]
|
|
1769
|
-
),
|
|
1777
|
+
), _ = G(
|
|
1770
1778
|
() => h(),
|
|
1771
1779
|
[h]
|
|
1772
|
-
),
|
|
1780
|
+
), H = e1(n1.menu, n1[o]), k = Z1(
|
|
1773
1781
|
() => t === "search" ? r.filter((x) => m7(x.label, f)) : r,
|
|
1774
1782
|
[t, r, f]
|
|
1775
1783
|
);
|
|
1776
1784
|
return o9(() => {
|
|
1777
|
-
const x =
|
|
1785
|
+
const x = w.current;
|
|
1778
1786
|
x && g(x.scrollHeight > x.clientHeight);
|
|
1779
|
-
}, [
|
|
1787
|
+
}, [k]), /* @__PURE__ */ p(S1, { children: [
|
|
1780
1788
|
/* @__PURE__ */ p(
|
|
1781
1789
|
"div",
|
|
1782
1790
|
{
|
|
@@ -1806,36 +1814,36 @@ function x2({
|
|
|
1806
1814
|
/* @__PURE__ */ n(
|
|
1807
1815
|
"ul",
|
|
1808
1816
|
{
|
|
1809
|
-
ref:
|
|
1817
|
+
ref: w,
|
|
1810
1818
|
id: e,
|
|
1811
|
-
className: e1(
|
|
1819
|
+
className: e1(H, !L && n1.noScroll),
|
|
1812
1820
|
role: "listbox",
|
|
1813
1821
|
"aria-label": "옵션 목록",
|
|
1814
|
-
children:
|
|
1815
|
-
const
|
|
1822
|
+
children: k.map((x) => {
|
|
1823
|
+
const V = x.value === c, I = !!x.disabled;
|
|
1816
1824
|
return /* @__PURE__ */ n(
|
|
1817
1825
|
"li",
|
|
1818
1826
|
{
|
|
1819
1827
|
className: e1(
|
|
1820
1828
|
n1.optionItem,
|
|
1821
|
-
|
|
1822
|
-
|
|
1829
|
+
V && !I && n1.selectedItem,
|
|
1830
|
+
I && n1.disabledItem
|
|
1823
1831
|
),
|
|
1824
|
-
onClick: (
|
|
1825
|
-
|
|
1832
|
+
onClick: (A) => {
|
|
1833
|
+
A.stopPropagation(), I || i(x);
|
|
1826
1834
|
},
|
|
1827
|
-
onMouseEnter: (
|
|
1828
|
-
onMouseLeave:
|
|
1835
|
+
onMouseEnter: (A) => m(A, x.label),
|
|
1836
|
+
onMouseLeave: _,
|
|
1829
1837
|
role: "option",
|
|
1830
|
-
"aria-selected":
|
|
1831
|
-
"aria-disabled":
|
|
1838
|
+
"aria-selected": V,
|
|
1839
|
+
"aria-disabled": I || void 0,
|
|
1832
1840
|
children: /* @__PURE__ */ p("div", { className: n1.optionContent, children: [
|
|
1833
1841
|
l && x.icon && /* @__PURE__ */ n("span", { className: n1.optionIcon, children: x.icon }),
|
|
1834
1842
|
/* @__PURE__ */ n(
|
|
1835
1843
|
"span",
|
|
1836
1844
|
{
|
|
1837
1845
|
className: n1.optionLabel,
|
|
1838
|
-
style:
|
|
1846
|
+
style: s && !I ? { color: s } : void 0,
|
|
1839
1847
|
children: x.label
|
|
1840
1848
|
}
|
|
1841
1849
|
)
|
|
@@ -1846,7 +1854,7 @@ function x2({
|
|
|
1846
1854
|
})
|
|
1847
1855
|
}
|
|
1848
1856
|
),
|
|
1849
|
-
|
|
1857
|
+
k.length === 0 && /* @__PURE__ */ n("div", { className: n1.emptyItem, children: t === "search" && f ? "검색 결과가 없습니다." : "-" })
|
|
1850
1858
|
]
|
|
1851
1859
|
}
|
|
1852
1860
|
),
|
|
@@ -1860,9 +1868,9 @@ function jr({
|
|
|
1860
1868
|
heading: o,
|
|
1861
1869
|
required: l = !1,
|
|
1862
1870
|
leadingContent: r,
|
|
1863
|
-
description:
|
|
1871
|
+
description: c,
|
|
1864
1872
|
disabled: i = !1,
|
|
1865
|
-
placeholder:
|
|
1873
|
+
placeholder: s = "선택해주세요.",
|
|
1866
1874
|
selectedValue: C,
|
|
1867
1875
|
onSelect: a,
|
|
1868
1876
|
options: f = [],
|
|
@@ -1871,52 +1879,52 @@ function jr({
|
|
|
1871
1879
|
align: u = "left",
|
|
1872
1880
|
content: v = !1,
|
|
1873
1881
|
buttonWidth: h,
|
|
1874
|
-
descriptionWidth:
|
|
1875
|
-
customStyle:
|
|
1882
|
+
descriptionWidth: w,
|
|
1883
|
+
customStyle: L,
|
|
1876
1884
|
textColor: g
|
|
1877
1885
|
}) {
|
|
1878
|
-
const
|
|
1879
|
-
const $ = T.current ??
|
|
1886
|
+
const m = _9(), _ = `${m}-listbox`, [H, k] = q(!1), [x, V] = q(!1), [I, A] = q(null), [M, b] = q("bottom"), { tooltip: B, showTooltip: S, hideTooltip: y } = L2(), Z = F(null), T = F(null), N = F(null), D = F(null), O = F(), U = 4, a1 = 204, h1 = 16, l1 = G(() => {
|
|
1887
|
+
const $ = T.current ?? Z.current;
|
|
1880
1888
|
if ($) {
|
|
1881
1889
|
const W = $.getBoundingClientRect(), C1 = window.innerHeight - W.bottom, f1 = W.top, R1 = a1 + h1 + U, L1 = C1 < R1 && f1 > C1;
|
|
1882
|
-
|
|
1890
|
+
b(L1 ? "top" : "bottom"), A({
|
|
1883
1891
|
top: L1 ? W.top + window.scrollY - U : W.bottom + window.scrollY + U,
|
|
1884
1892
|
left: W.left + window.scrollX,
|
|
1885
1893
|
width: W.width
|
|
1886
1894
|
});
|
|
1887
1895
|
}
|
|
1888
1896
|
}, []), K = G(() => {
|
|
1889
|
-
|
|
1890
|
-
|
|
1897
|
+
V(!0), O.current = setTimeout(() => {
|
|
1898
|
+
k(!1), V(!1);
|
|
1891
1899
|
}, _7);
|
|
1892
1900
|
}, []), B1 = G(() => {
|
|
1893
|
-
y(),
|
|
1894
|
-
}, [
|
|
1901
|
+
y(), H && !x ? K() : H || (l1(), k(!0));
|
|
1902
|
+
}, [H, x, l1, K, y]), g1 = G(($) => {
|
|
1895
1903
|
a?.($), K();
|
|
1896
1904
|
}, [a, K]);
|
|
1897
|
-
|
|
1905
|
+
J(() => () => clearTimeout(O.current), []), J(() => {
|
|
1898
1906
|
const $ = (C1) => {
|
|
1899
1907
|
const f1 = C1.target;
|
|
1900
|
-
|
|
1908
|
+
Z.current && Z.current.contains(f1) || N.current && N.current.contains(f1) || K();
|
|
1901
1909
|
}, W = (C1) => {
|
|
1902
|
-
|
|
1910
|
+
N.current && N.current.contains(C1.target) || K();
|
|
1903
1911
|
};
|
|
1904
|
-
return
|
|
1912
|
+
return H && (document.addEventListener("click", $), window.addEventListener("resize", l1), window.addEventListener("scroll", W, !0)), () => {
|
|
1905
1913
|
document.removeEventListener("click", $), window.removeEventListener("resize", l1), window.removeEventListener("scroll", W, !0);
|
|
1906
1914
|
};
|
|
1907
|
-
}, [
|
|
1915
|
+
}, [H, l1, K]);
|
|
1908
1916
|
const r1 = G(($) => {
|
|
1909
|
-
$.key === "Escape" &&
|
|
1910
|
-
}, [
|
|
1917
|
+
$.key === "Escape" && H && ($.preventDefault(), K());
|
|
1918
|
+
}, [H, K]), i1 = G(() => {
|
|
1911
1919
|
const $ = D.current;
|
|
1912
1920
|
if ($ && $.scrollWidth > $.clientWidth && C?.label) {
|
|
1913
1921
|
const W = window.innerHeight - $.getBoundingClientRect().bottom > 80 ? "bottom" : "top";
|
|
1914
|
-
|
|
1922
|
+
S($, C.label, W);
|
|
1915
1923
|
}
|
|
1916
|
-
}, [C?.label,
|
|
1924
|
+
}, [C?.label, S]), v1 = G(() => y(), [y]), s1 = e === "error";
|
|
1917
1925
|
let j = e;
|
|
1918
|
-
|
|
1919
|
-
const
|
|
1926
|
+
H && !x && !s1 ? j = "choosing" : C && !s1 && (j = "selected");
|
|
1927
|
+
const R = e1(
|
|
1920
1928
|
d1.select,
|
|
1921
1929
|
d1[t],
|
|
1922
1930
|
d1[j],
|
|
@@ -1930,10 +1938,10 @@ function jr({
|
|
|
1930
1938
|
/* @__PURE__ */ p(
|
|
1931
1939
|
"div",
|
|
1932
1940
|
{
|
|
1933
|
-
ref:
|
|
1941
|
+
ref: Z,
|
|
1934
1942
|
className: d1.root,
|
|
1935
1943
|
"data-idb-component": "select",
|
|
1936
|
-
style:
|
|
1944
|
+
style: L,
|
|
1937
1945
|
children: [
|
|
1938
1946
|
o && /* @__PURE__ */ p("label", { className: d1.label, children: [
|
|
1939
1947
|
/* @__PURE__ */ n("span", { children: o }),
|
|
@@ -1944,12 +1952,12 @@ function jr({
|
|
|
1944
1952
|
{
|
|
1945
1953
|
ref: T,
|
|
1946
1954
|
type: "button",
|
|
1947
|
-
id:
|
|
1948
|
-
className:
|
|
1955
|
+
id: m,
|
|
1956
|
+
className: R,
|
|
1949
1957
|
disabled: i,
|
|
1950
|
-
"aria-expanded":
|
|
1958
|
+
"aria-expanded": H,
|
|
1951
1959
|
"aria-haspopup": "listbox",
|
|
1952
|
-
"aria-controls":
|
|
1960
|
+
"aria-controls": H ? _ : void 0,
|
|
1953
1961
|
onClick: B1,
|
|
1954
1962
|
onKeyDown: r1,
|
|
1955
1963
|
style: h != null ? { width: `${h}px` } : void 0,
|
|
@@ -1963,44 +1971,44 @@ function jr({
|
|
|
1963
1971
|
className: e1(d1.value, !C?.label && d1.placeholder),
|
|
1964
1972
|
onMouseEnter: i1,
|
|
1965
1973
|
onMouseLeave: v1,
|
|
1966
|
-
children: C?.label ??
|
|
1974
|
+
children: C?.label ?? s
|
|
1967
1975
|
}
|
|
1968
1976
|
)
|
|
1969
1977
|
] }),
|
|
1970
|
-
/* @__PURE__ */ n("span", { className: d1.trailingIcon, children: /* @__PURE__ */ n("img", { src: i ? v7 :
|
|
1978
|
+
/* @__PURE__ */ n("span", { className: d1.trailingIcon, children: /* @__PURE__ */ n("img", { src: i ? v7 : H ? L7 : w7, alt: "" }) })
|
|
1971
1979
|
]
|
|
1972
1980
|
}
|
|
1973
1981
|
),
|
|
1974
|
-
|
|
1982
|
+
c && /* @__PURE__ */ n(
|
|
1975
1983
|
"div",
|
|
1976
1984
|
{
|
|
1977
1985
|
className: P,
|
|
1978
|
-
style:
|
|
1979
|
-
children:
|
|
1986
|
+
style: w != null ? { width: `${w}px` } : void 0,
|
|
1987
|
+
children: c
|
|
1980
1988
|
}
|
|
1981
1989
|
)
|
|
1982
1990
|
]
|
|
1983
1991
|
}
|
|
1984
1992
|
),
|
|
1985
|
-
/* @__PURE__ */ n(_2, { tooltip:
|
|
1986
|
-
|
|
1993
|
+
/* @__PURE__ */ n(_2, { tooltip: B }),
|
|
1994
|
+
H && b9(
|
|
1987
1995
|
/* @__PURE__ */ n(
|
|
1988
1996
|
"div",
|
|
1989
1997
|
{
|
|
1990
|
-
ref:
|
|
1998
|
+
ref: N,
|
|
1991
1999
|
"data-idb-component": "select-dropdown",
|
|
1992
2000
|
style: {
|
|
1993
2001
|
position: "absolute",
|
|
1994
|
-
top:
|
|
1995
|
-
left:
|
|
1996
|
-
width:
|
|
2002
|
+
top: I?.top,
|
|
2003
|
+
left: I?.left,
|
|
2004
|
+
width: I?.width,
|
|
1997
2005
|
zIndex: 9999,
|
|
1998
|
-
...
|
|
2006
|
+
...M === "top" && { transform: "translateY(-100%)" }
|
|
1999
2007
|
},
|
|
2000
2008
|
children: /* @__PURE__ */ n(
|
|
2001
2009
|
x2,
|
|
2002
2010
|
{
|
|
2003
|
-
listboxId:
|
|
2011
|
+
listboxId: _,
|
|
2004
2012
|
type: d,
|
|
2005
2013
|
align: u,
|
|
2006
2014
|
content: v,
|
|
@@ -2009,7 +2017,7 @@ function jr({
|
|
|
2009
2017
|
onSelect: g1,
|
|
2010
2018
|
textColor: g,
|
|
2011
2019
|
closing: x,
|
|
2012
|
-
placement:
|
|
2020
|
+
placement: M
|
|
2013
2021
|
}
|
|
2014
2022
|
)
|
|
2015
2023
|
}
|
|
@@ -2027,53 +2035,53 @@ function y7({
|
|
|
2027
2035
|
align: o = "left",
|
|
2028
2036
|
content: l = !1,
|
|
2029
2037
|
options: r = [],
|
|
2030
|
-
onSelect:
|
|
2038
|
+
onSelect: c,
|
|
2031
2039
|
selectedValue: i,
|
|
2032
|
-
textColor:
|
|
2040
|
+
textColor: s,
|
|
2033
2041
|
customStyle: C,
|
|
2034
2042
|
disabled: a = !1,
|
|
2035
2043
|
width: f
|
|
2036
2044
|
}) {
|
|
2037
|
-
const u = `${_9()}-listbox`, [v, h] = q(!1), [
|
|
2038
|
-
if (
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2041
|
-
top:
|
|
2042
|
-
left:
|
|
2043
|
-
width: f ??
|
|
2045
|
+
const u = `${_9()}-listbox`, [v, h] = q(!1), [w, L] = q(!1), [g, m] = q(null), _ = F(null), H = F(null), k = F(), x = G(() => {
|
|
2046
|
+
if (_.current) {
|
|
2047
|
+
const b = _.current.getBoundingClientRect();
|
|
2048
|
+
m({
|
|
2049
|
+
top: b.bottom + window.scrollY + 4,
|
|
2050
|
+
left: b.left + window.scrollX,
|
|
2051
|
+
width: f ?? b.width
|
|
2044
2052
|
});
|
|
2045
2053
|
}
|
|
2046
|
-
}, [f]),
|
|
2047
|
-
|
|
2048
|
-
h(!1),
|
|
2054
|
+
}, [f]), V = G(() => {
|
|
2055
|
+
L(!0), k.current = setTimeout(() => {
|
|
2056
|
+
h(!1), L(!1);
|
|
2049
2057
|
}, M7);
|
|
2050
|
-
}, []),
|
|
2051
|
-
a || (v && !
|
|
2052
|
-
}, [a, v,
|
|
2053
|
-
|
|
2054
|
-
}, [
|
|
2055
|
-
|
|
2056
|
-
const
|
|
2057
|
-
const
|
|
2058
|
-
|
|
2058
|
+
}, []), I = G(() => {
|
|
2059
|
+
a || (v && !w ? V() : v || (x(), h(!0)));
|
|
2060
|
+
}, [a, v, w, x, V]), A = G((b) => {
|
|
2061
|
+
c(b), V();
|
|
2062
|
+
}, [c, V]);
|
|
2063
|
+
J(() => () => clearTimeout(k.current), []), J(() => {
|
|
2064
|
+
const b = (B) => {
|
|
2065
|
+
const S = B.target;
|
|
2066
|
+
_.current && _.current.contains(S) || H.current && H.current.contains(S) || V();
|
|
2059
2067
|
};
|
|
2060
|
-
return v && (document.addEventListener("click",
|
|
2061
|
-
document.removeEventListener("click",
|
|
2068
|
+
return v && (document.addEventListener("click", b), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0)), () => {
|
|
2069
|
+
document.removeEventListener("click", b), window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0);
|
|
2062
2070
|
};
|
|
2063
|
-
}, [v, x,
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2066
|
-
}, [v,
|
|
2071
|
+
}, [v, x, V]);
|
|
2072
|
+
const M = G((b) => {
|
|
2073
|
+
b.key === "Escape" && v && (b.preventDefault(), V());
|
|
2074
|
+
}, [v, V]);
|
|
2067
2075
|
return /* @__PURE__ */ p(S1, { children: [
|
|
2068
2076
|
/* @__PURE__ */ n(
|
|
2069
2077
|
"div",
|
|
2070
2078
|
{
|
|
2071
|
-
ref:
|
|
2079
|
+
ref: _,
|
|
2072
2080
|
className: x7.root,
|
|
2073
2081
|
"data-idb-component": "dropdown",
|
|
2074
2082
|
style: C,
|
|
2075
|
-
onClick:
|
|
2076
|
-
onKeyDown:
|
|
2083
|
+
onClick: I,
|
|
2084
|
+
onKeyDown: M,
|
|
2077
2085
|
children: e
|
|
2078
2086
|
}
|
|
2079
2087
|
),
|
|
@@ -2081,7 +2089,7 @@ function y7({
|
|
|
2081
2089
|
/* @__PURE__ */ n(
|
|
2082
2090
|
"div",
|
|
2083
2091
|
{
|
|
2084
|
-
ref:
|
|
2092
|
+
ref: H,
|
|
2085
2093
|
"data-idb-component": "dropdown-list",
|
|
2086
2094
|
style: {
|
|
2087
2095
|
position: "absolute",
|
|
@@ -2099,9 +2107,9 @@ function y7({
|
|
|
2099
2107
|
content: l,
|
|
2100
2108
|
options: r,
|
|
2101
2109
|
selectedValue: i,
|
|
2102
|
-
onSelect:
|
|
2103
|
-
textColor:
|
|
2104
|
-
closing:
|
|
2110
|
+
onSelect: A,
|
|
2111
|
+
textColor: s,
|
|
2112
|
+
closing: w
|
|
2105
2113
|
}
|
|
2106
2114
|
)
|
|
2107
2115
|
}
|
|
@@ -2132,9 +2140,9 @@ function F7({
|
|
|
2132
2140
|
selected: o = !1,
|
|
2133
2141
|
disabled: l = !1,
|
|
2134
2142
|
leadingSlot: r,
|
|
2135
|
-
trailingSlot:
|
|
2143
|
+
trailingSlot: c,
|
|
2136
2144
|
customStyle: i = {},
|
|
2137
|
-
className:
|
|
2145
|
+
className: s,
|
|
2138
2146
|
onClick: C,
|
|
2139
2147
|
children: a,
|
|
2140
2148
|
...f
|
|
@@ -2145,7 +2153,7 @@ function F7({
|
|
|
2145
2153
|
N1[t],
|
|
2146
2154
|
o ? N1.selected : "",
|
|
2147
2155
|
l ? N1.disabled : "",
|
|
2148
|
-
|
|
2156
|
+
s ?? ""
|
|
2149
2157
|
].filter(Boolean).join(" ");
|
|
2150
2158
|
return /* @__PURE__ */ p(
|
|
2151
2159
|
"button",
|
|
@@ -2160,7 +2168,7 @@ function F7({
|
|
|
2160
2168
|
children: [
|
|
2161
2169
|
r ? /* @__PURE__ */ n("span", { className: N1.leadingSlot, children: r }) : null,
|
|
2162
2170
|
a ? /* @__PURE__ */ n("span", { className: N1.label, children: a }) : null,
|
|
2163
|
-
|
|
2171
|
+
c ? /* @__PURE__ */ n("span", { className: N1.trailingSlot, children: c }) : null
|
|
2164
2172
|
]
|
|
2165
2173
|
}
|
|
2166
2174
|
);
|
|
@@ -2177,10 +2185,10 @@ function P7() {
|
|
|
2177
2185
|
function O9(e, t) {
|
|
2178
2186
|
const o = Object.keys(e), l = Object.keys(t);
|
|
2179
2187
|
if (o.length !== l.length) return !1;
|
|
2180
|
-
const r = JSON.stringify(Object.keys(e.breakpoints || {})),
|
|
2181
|
-
return r !==
|
|
2182
|
-
const
|
|
2183
|
-
return typeof
|
|
2188
|
+
const r = JSON.stringify(Object.keys(e.breakpoints || {})), c = JSON.stringify(Object.keys(t.breakpoints || {}));
|
|
2189
|
+
return r !== c ? !1 : o.every((i) => {
|
|
2190
|
+
const s = e[i], C = t[i];
|
|
2191
|
+
return typeof s == "function" ? `${s}` == `${C}` : !s2(s) || !s2(C) ? s === C : O9(s, C);
|
|
2184
2192
|
});
|
|
2185
2193
|
}
|
|
2186
2194
|
function c2(e) {
|
|
@@ -2189,8 +2197,8 @@ function c2(e) {
|
|
|
2189
2197
|
function j7(e, t) {
|
|
2190
2198
|
if (e.length !== t.length) return !1;
|
|
2191
2199
|
const o = c2(e), l = c2(t);
|
|
2192
|
-
return o.every((r,
|
|
2193
|
-
const i = l[
|
|
2200
|
+
return o.every((r, c) => {
|
|
2201
|
+
const i = l[c];
|
|
2194
2202
|
return O9(r, i);
|
|
2195
2203
|
});
|
|
2196
2204
|
}
|
|
@@ -2243,8 +2251,8 @@ function t9(e) {
|
|
|
2243
2251
|
}
|
|
2244
2252
|
function M2(e, t) {
|
|
2245
2253
|
return [e, t].reduce((o, l) => (t9(l).forEach((r) => {
|
|
2246
|
-
const
|
|
2247
|
-
o[r] =
|
|
2254
|
+
const c = o[r], i = l[r], s = a2(c) && a2(i);
|
|
2255
|
+
o[r] = s ? M2(c, i) : i;
|
|
2248
2256
|
}), o), {});
|
|
2249
2257
|
}
|
|
2250
2258
|
function D9(e, t) {
|
|
@@ -2254,15 +2262,15 @@ function G7(e, t) {
|
|
|
2254
2262
|
const o = {
|
|
2255
2263
|
start: l,
|
|
2256
2264
|
center: r,
|
|
2257
|
-
end:
|
|
2265
|
+
end: c
|
|
2258
2266
|
};
|
|
2259
2267
|
function l() {
|
|
2260
2268
|
return 0;
|
|
2261
2269
|
}
|
|
2262
2270
|
function r(C) {
|
|
2263
|
-
return
|
|
2271
|
+
return c(C) / 2;
|
|
2264
2272
|
}
|
|
2265
|
-
function
|
|
2273
|
+
function c(C) {
|
|
2266
2274
|
return t - C;
|
|
2267
2275
|
}
|
|
2268
2276
|
function i(C, a) {
|
|
@@ -2274,12 +2282,12 @@ function G7(e, t) {
|
|
|
2274
2282
|
}
|
|
2275
2283
|
function n9() {
|
|
2276
2284
|
let e = [];
|
|
2277
|
-
function t(r,
|
|
2285
|
+
function t(r, c, i, s = {
|
|
2278
2286
|
passive: !0
|
|
2279
2287
|
}) {
|
|
2280
2288
|
let C;
|
|
2281
2289
|
if ("addEventListener" in r)
|
|
2282
|
-
r.addEventListener(
|
|
2290
|
+
r.addEventListener(c, i, s), C = () => r.removeEventListener(c, i, s);
|
|
2283
2291
|
else {
|
|
2284
2292
|
const a = r;
|
|
2285
2293
|
a.addListener(i), C = () => a.removeListener(i);
|
|
@@ -2296,8 +2304,8 @@ function n9() {
|
|
|
2296
2304
|
return l;
|
|
2297
2305
|
}
|
|
2298
2306
|
function U7(e, t, o, l) {
|
|
2299
|
-
const r = n9(),
|
|
2300
|
-
let i = null,
|
|
2307
|
+
const r = n9(), c = 1e3 / 60;
|
|
2308
|
+
let i = null, s = 0, C = 0;
|
|
2301
2309
|
function a() {
|
|
2302
2310
|
r.add(e, "visibilitychange", () => {
|
|
2303
2311
|
e.hidden && h();
|
|
@@ -2306,23 +2314,23 @@ function U7(e, t, o, l) {
|
|
|
2306
2314
|
function f() {
|
|
2307
2315
|
v(), r.clear();
|
|
2308
2316
|
}
|
|
2309
|
-
function d(
|
|
2317
|
+
function d(L) {
|
|
2310
2318
|
if (!C) return;
|
|
2311
|
-
i || (i =
|
|
2312
|
-
const g =
|
|
2313
|
-
for (i =
|
|
2314
|
-
o(),
|
|
2315
|
-
const
|
|
2316
|
-
l(
|
|
2319
|
+
i || (i = L, o(), o());
|
|
2320
|
+
const g = L - i;
|
|
2321
|
+
for (i = L, s += g; s >= c; )
|
|
2322
|
+
o(), s -= c;
|
|
2323
|
+
const m = s / c;
|
|
2324
|
+
l(m), C && (C = t.requestAnimationFrame(d));
|
|
2317
2325
|
}
|
|
2318
2326
|
function u() {
|
|
2319
2327
|
C || (C = t.requestAnimationFrame(d));
|
|
2320
2328
|
}
|
|
2321
2329
|
function v() {
|
|
2322
|
-
t.cancelAnimationFrame(C), i = null,
|
|
2330
|
+
t.cancelAnimationFrame(C), i = null, s = 0, C = 0;
|
|
2323
2331
|
}
|
|
2324
2332
|
function h() {
|
|
2325
|
-
i = null,
|
|
2333
|
+
i = null, s = 0;
|
|
2326
2334
|
}
|
|
2327
2335
|
return {
|
|
2328
2336
|
init: a,
|
|
@@ -2334,13 +2342,13 @@ function U7(e, t, o, l) {
|
|
|
2334
2342
|
};
|
|
2335
2343
|
}
|
|
2336
2344
|
function Q7(e, t) {
|
|
2337
|
-
const o = t === "rtl", l = e === "y", r = l ? "y" : "x",
|
|
2345
|
+
const o = t === "rtl", l = e === "y", r = l ? "y" : "x", c = l ? "x" : "y", i = !l && o ? -1 : 1, s = f(), C = d();
|
|
2338
2346
|
function a(h) {
|
|
2339
2347
|
const {
|
|
2340
|
-
height:
|
|
2341
|
-
width:
|
|
2348
|
+
height: w,
|
|
2349
|
+
width: L
|
|
2342
2350
|
} = h;
|
|
2343
|
-
return l ?
|
|
2351
|
+
return l ? w : L;
|
|
2344
2352
|
}
|
|
2345
2353
|
function f() {
|
|
2346
2354
|
return l ? "top" : o ? "right" : "left";
|
|
@@ -2353,8 +2361,8 @@ function Q7(e, t) {
|
|
|
2353
2361
|
}
|
|
2354
2362
|
return {
|
|
2355
2363
|
scroll: r,
|
|
2356
|
-
cross:
|
|
2357
|
-
startEdge:
|
|
2364
|
+
cross: c,
|
|
2365
|
+
startEdge: s,
|
|
2358
2366
|
endEdge: C,
|
|
2359
2367
|
measureSize: a,
|
|
2360
2368
|
direction: u
|
|
@@ -2368,13 +2376,13 @@ function T1(e = 0, t = 0) {
|
|
|
2368
2376
|
function r(a) {
|
|
2369
2377
|
return a > t;
|
|
2370
2378
|
}
|
|
2371
|
-
function
|
|
2379
|
+
function c(a) {
|
|
2372
2380
|
return l(a) || r(a);
|
|
2373
2381
|
}
|
|
2374
2382
|
function i(a) {
|
|
2375
|
-
return
|
|
2383
|
+
return c(a) ? l(a) ? e : t : a;
|
|
2376
2384
|
}
|
|
2377
|
-
function
|
|
2385
|
+
function s(a) {
|
|
2378
2386
|
return o ? a - o * Math.ceil((a - t) / o) : a;
|
|
2379
2387
|
}
|
|
2380
2388
|
return {
|
|
@@ -2382,100 +2390,100 @@ function T1(e = 0, t = 0) {
|
|
|
2382
2390
|
max: t,
|
|
2383
2391
|
min: e,
|
|
2384
2392
|
constrain: i,
|
|
2385
|
-
reachedAny:
|
|
2393
|
+
reachedAny: c,
|
|
2386
2394
|
reachedMax: r,
|
|
2387
2395
|
reachedMin: l,
|
|
2388
|
-
removeOffset:
|
|
2396
|
+
removeOffset: s
|
|
2389
2397
|
};
|
|
2390
2398
|
}
|
|
2391
2399
|
function y2(e, t, o) {
|
|
2392
2400
|
const {
|
|
2393
2401
|
constrain: l
|
|
2394
2402
|
} = T1(0, e), r = e + 1;
|
|
2395
|
-
let
|
|
2403
|
+
let c = i(t);
|
|
2396
2404
|
function i(u) {
|
|
2397
2405
|
return o ? X((r + u) % r) : l(u);
|
|
2398
2406
|
}
|
|
2399
|
-
function
|
|
2400
|
-
return
|
|
2407
|
+
function s() {
|
|
2408
|
+
return c;
|
|
2401
2409
|
}
|
|
2402
2410
|
function C(u) {
|
|
2403
|
-
return
|
|
2411
|
+
return c = i(u), d;
|
|
2404
2412
|
}
|
|
2405
2413
|
function a(u) {
|
|
2406
|
-
return f().set(
|
|
2414
|
+
return f().set(s() + u);
|
|
2407
2415
|
}
|
|
2408
2416
|
function f() {
|
|
2409
|
-
return y2(e,
|
|
2417
|
+
return y2(e, s(), o);
|
|
2410
2418
|
}
|
|
2411
2419
|
const d = {
|
|
2412
|
-
get:
|
|
2420
|
+
get: s,
|
|
2413
2421
|
set: C,
|
|
2414
2422
|
add: a,
|
|
2415
2423
|
clone: f
|
|
2416
2424
|
};
|
|
2417
2425
|
return d;
|
|
2418
2426
|
}
|
|
2419
|
-
function X7(e, t, o, l, r,
|
|
2427
|
+
function X7(e, t, o, l, r, c, i, s, C, a, f, d, u, v, h, w, L, g, m) {
|
|
2420
2428
|
const {
|
|
2421
|
-
cross:
|
|
2422
|
-
direction:
|
|
2423
|
-
} = e,
|
|
2429
|
+
cross: _,
|
|
2430
|
+
direction: H
|
|
2431
|
+
} = e, k = ["INPUT", "SELECT", "TEXTAREA"], x = {
|
|
2424
2432
|
passive: !1
|
|
2425
|
-
},
|
|
2433
|
+
}, V = n9(), I = n9(), A = T1(50, 225).constrain(v.measure(20)), M = {
|
|
2426
2434
|
mouse: 300,
|
|
2427
2435
|
touch: 400
|
|
2428
|
-
},
|
|
2436
|
+
}, b = {
|
|
2429
2437
|
mouse: 500,
|
|
2430
2438
|
touch: 600
|
|
2431
|
-
},
|
|
2432
|
-
let
|
|
2433
|
-
function U(
|
|
2434
|
-
if (!
|
|
2439
|
+
}, B = h ? 43 : 25;
|
|
2440
|
+
let S = !1, y = 0, Z = 0, T = !1, N = !1, D = !1, O = !1;
|
|
2441
|
+
function U(R) {
|
|
2442
|
+
if (!m) return;
|
|
2435
2443
|
function P(W) {
|
|
2436
|
-
(x9(
|
|
2444
|
+
(x9(m) || m(R, W)) && g1(W);
|
|
2437
2445
|
}
|
|
2438
2446
|
const $ = t;
|
|
2439
|
-
|
|
2447
|
+
V.add($, "dragstart", (W) => W.preventDefault(), x).add($, "touchmove", () => {
|
|
2440
2448
|
}, x).add($, "touchend", () => {
|
|
2441
2449
|
}).add($, "touchstart", P).add($, "mousedown", P).add($, "touchcancel", i1).add($, "contextmenu", i1).add($, "click", v1, !0);
|
|
2442
2450
|
}
|
|
2443
2451
|
function a1() {
|
|
2444
|
-
|
|
2452
|
+
V.clear(), I.clear();
|
|
2445
2453
|
}
|
|
2446
2454
|
function h1() {
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2455
|
+
const R = O ? o : t;
|
|
2456
|
+
I.add(R, "touchmove", r1, x).add(R, "touchend", i1).add(R, "mousemove", r1, x).add(R, "mouseup", i1);
|
|
2449
2457
|
}
|
|
2450
|
-
function l1(
|
|
2451
|
-
const P =
|
|
2452
|
-
return
|
|
2458
|
+
function l1(R) {
|
|
2459
|
+
const P = R.nodeName || "";
|
|
2460
|
+
return k.includes(P);
|
|
2453
2461
|
}
|
|
2454
2462
|
function K() {
|
|
2455
|
-
return (h ?
|
|
2463
|
+
return (h ? b : M)[O ? "mouse" : "touch"];
|
|
2456
2464
|
}
|
|
2457
|
-
function B1(
|
|
2458
|
-
const $ = d.add(j9(
|
|
2459
|
-
return h || X(
|
|
2465
|
+
function B1(R, P) {
|
|
2466
|
+
const $ = d.add(j9(R) * -1), W = f.byDistance(R, !h).distance;
|
|
2467
|
+
return h || X(R) < A ? W : L && P ? W * 0.5 : f.byIndex($.get(), 0).distance;
|
|
2460
2468
|
}
|
|
2461
|
-
function g1(
|
|
2462
|
-
const P = D9(
|
|
2463
|
-
O = P, D = h && P && !
|
|
2469
|
+
function g1(R) {
|
|
2470
|
+
const P = D9(R, l);
|
|
2471
|
+
O = P, D = h && P && !R.buttons && S, S = Y1(r.get(), i.get()) >= 2, !(P && R.button !== 0) && (l1(R.target) || (T = !0, c.pointerDown(R), a.useFriction(0).useDuration(0), r.set(i), h1(), y = c.readPoint(R), Z = c.readPoint(R, _), u.emit("pointerDown")));
|
|
2464
2472
|
}
|
|
2465
|
-
function r1(
|
|
2466
|
-
if (!D9(
|
|
2467
|
-
const $ =
|
|
2468
|
-
if (!
|
|
2469
|
-
return i1(
|
|
2470
|
-
const R1 =
|
|
2471
|
-
C1 >
|
|
2473
|
+
function r1(R) {
|
|
2474
|
+
if (!D9(R, l) && R.touches.length >= 2) return i1(R);
|
|
2475
|
+
const $ = c.readPoint(R), W = c.readPoint(R, _), C1 = Y1($, y), f1 = Y1(W, Z);
|
|
2476
|
+
if (!N && !O && (!R.cancelable || (N = C1 > f1, !N)))
|
|
2477
|
+
return i1(R);
|
|
2478
|
+
const R1 = c.pointerMove(R);
|
|
2479
|
+
C1 > w && (D = !0), a.useFriction(0.3).useDuration(0.75), s.start(), r.add(H(R1)), R.preventDefault();
|
|
2472
2480
|
}
|
|
2473
|
-
function i1(
|
|
2474
|
-
const $ = f.byDistance(0, !1).index !== d.get(), W =
|
|
2475
|
-
|
|
2481
|
+
function i1(R) {
|
|
2482
|
+
const $ = f.byDistance(0, !1).index !== d.get(), W = c.pointerUp(R) * K(), C1 = B1(H(W), $), f1 = W7(W, C1), R1 = B - 10 * f1, L1 = g + f1 / 50;
|
|
2483
|
+
N = !1, T = !1, I.clear(), a.useDuration(R1).useFriction(L1), C.distance(C1, !h), O = !1, u.emit("pointerUp");
|
|
2476
2484
|
}
|
|
2477
|
-
function v1(
|
|
2478
|
-
D && (
|
|
2485
|
+
function v1(R) {
|
|
2486
|
+
D && (R.stopPropagation(), R.preventDefault(), D = !1);
|
|
2479
2487
|
}
|
|
2480
2488
|
function s1() {
|
|
2481
2489
|
return T;
|
|
@@ -2488,27 +2496,27 @@ function X7(e, t, o, l, r, s, i, c, C, a, f, d, u, v, h, m, _, g, w) {
|
|
|
2488
2496
|
}
|
|
2489
2497
|
function K7(e, t) {
|
|
2490
2498
|
let l, r;
|
|
2491
|
-
function
|
|
2499
|
+
function c(d) {
|
|
2492
2500
|
return d.timeStamp;
|
|
2493
2501
|
}
|
|
2494
2502
|
function i(d, u) {
|
|
2495
2503
|
const h = `client${(u || e.scroll) === "x" ? "X" : "Y"}`;
|
|
2496
2504
|
return (D9(d, t) ? d : d.touches[0])[h];
|
|
2497
2505
|
}
|
|
2498
|
-
function
|
|
2506
|
+
function s(d) {
|
|
2499
2507
|
return l = d, r = d, i(d);
|
|
2500
2508
|
}
|
|
2501
2509
|
function C(d) {
|
|
2502
|
-
const u = i(d) - i(r), v =
|
|
2510
|
+
const u = i(d) - i(r), v = c(d) - c(l) > 170;
|
|
2503
2511
|
return r = d, v && (l = d), u;
|
|
2504
2512
|
}
|
|
2505
2513
|
function a(d) {
|
|
2506
2514
|
if (!l || !r) return 0;
|
|
2507
|
-
const u = i(r) - i(l), v =
|
|
2508
|
-
return v && !h && X(
|
|
2515
|
+
const u = i(r) - i(l), v = c(d) - c(l), h = c(d) - c(r) > 170, w = u / v;
|
|
2516
|
+
return v && !h && X(w) > 0.1 ? w : 0;
|
|
2509
2517
|
}
|
|
2510
2518
|
return {
|
|
2511
|
-
pointerDown:
|
|
2519
|
+
pointerDown: s,
|
|
2512
2520
|
pointerMove: C,
|
|
2513
2521
|
pointerUp: a,
|
|
2514
2522
|
readPoint: i
|
|
@@ -2519,15 +2527,15 @@ function Y7() {
|
|
|
2519
2527
|
const {
|
|
2520
2528
|
offsetTop: l,
|
|
2521
2529
|
offsetLeft: r,
|
|
2522
|
-
offsetWidth:
|
|
2530
|
+
offsetWidth: c,
|
|
2523
2531
|
offsetHeight: i
|
|
2524
2532
|
} = o;
|
|
2525
2533
|
return {
|
|
2526
2534
|
top: l,
|
|
2527
|
-
right: r +
|
|
2535
|
+
right: r + c,
|
|
2528
2536
|
bottom: l + i,
|
|
2529
2537
|
left: r,
|
|
2530
|
-
width:
|
|
2538
|
+
width: c,
|
|
2531
2539
|
height: i
|
|
2532
2540
|
};
|
|
2533
2541
|
}
|
|
@@ -2543,29 +2551,29 @@ function J7(e) {
|
|
|
2543
2551
|
measure: t
|
|
2544
2552
|
};
|
|
2545
2553
|
}
|
|
2546
|
-
function z7(e, t, o, l, r,
|
|
2547
|
-
const
|
|
2554
|
+
function z7(e, t, o, l, r, c, i) {
|
|
2555
|
+
const s = [e].concat(l);
|
|
2548
2556
|
let C, a, f = [], d = !1;
|
|
2549
|
-
function u(
|
|
2550
|
-
return r.measureSize(i.measure(
|
|
2557
|
+
function u(L) {
|
|
2558
|
+
return r.measureSize(i.measure(L));
|
|
2551
2559
|
}
|
|
2552
|
-
function v(
|
|
2553
|
-
if (!
|
|
2560
|
+
function v(L) {
|
|
2561
|
+
if (!c) return;
|
|
2554
2562
|
a = u(e), f = l.map(u);
|
|
2555
|
-
function g(
|
|
2556
|
-
for (const
|
|
2563
|
+
function g(m) {
|
|
2564
|
+
for (const _ of m) {
|
|
2557
2565
|
if (d) return;
|
|
2558
|
-
const
|
|
2559
|
-
if (X(
|
|
2560
|
-
|
|
2566
|
+
const H = _.target === e, k = l.indexOf(_.target), x = H ? a : f[k], V = u(H ? e : l[k]);
|
|
2567
|
+
if (X(V - x) >= 0.5) {
|
|
2568
|
+
L.reInit(), t.emit("resize");
|
|
2561
2569
|
break;
|
|
2562
2570
|
}
|
|
2563
2571
|
}
|
|
2564
2572
|
}
|
|
2565
|
-
C = new ResizeObserver((
|
|
2566
|
-
(x9(
|
|
2573
|
+
C = new ResizeObserver((m) => {
|
|
2574
|
+
(x9(c) || c(L, m)) && g(m);
|
|
2567
2575
|
}), o.requestAnimationFrame(() => {
|
|
2568
|
-
|
|
2576
|
+
s.forEach((m) => C.observe(m));
|
|
2569
2577
|
});
|
|
2570
2578
|
}
|
|
2571
2579
|
function h() {
|
|
@@ -2576,12 +2584,12 @@ function z7(e, t, o, l, r, s, i) {
|
|
|
2576
2584
|
destroy: h
|
|
2577
2585
|
};
|
|
2578
2586
|
}
|
|
2579
|
-
function e8(e, t, o, l, r,
|
|
2580
|
-
let i = 0,
|
|
2587
|
+
function e8(e, t, o, l, r, c) {
|
|
2588
|
+
let i = 0, s = 0, C = r, a = c, f = e.get(), d = 0;
|
|
2581
2589
|
function u() {
|
|
2582
|
-
const x = l.get() - e.get(),
|
|
2583
|
-
let
|
|
2584
|
-
return
|
|
2590
|
+
const x = l.get() - e.get(), V = !C;
|
|
2591
|
+
let I = 0;
|
|
2592
|
+
return V ? (i = 0, o.set(l), e.set(l), I = x) : (o.set(e), i += x / C, i *= a, f += i, e.add(i), I = f - d), s = j9(I), d = f, k;
|
|
2585
2593
|
}
|
|
2586
2594
|
function v() {
|
|
2587
2595
|
const x = l.get() - t.get();
|
|
@@ -2590,47 +2598,47 @@ function e8(e, t, o, l, r, s) {
|
|
|
2590
2598
|
function h() {
|
|
2591
2599
|
return C;
|
|
2592
2600
|
}
|
|
2593
|
-
function
|
|
2594
|
-
return
|
|
2601
|
+
function w() {
|
|
2602
|
+
return s;
|
|
2595
2603
|
}
|
|
2596
|
-
function
|
|
2604
|
+
function L() {
|
|
2597
2605
|
return i;
|
|
2598
2606
|
}
|
|
2599
2607
|
function g() {
|
|
2600
|
-
return
|
|
2608
|
+
return _(r);
|
|
2601
2609
|
}
|
|
2602
|
-
function
|
|
2603
|
-
return
|
|
2610
|
+
function m() {
|
|
2611
|
+
return H(c);
|
|
2604
2612
|
}
|
|
2605
|
-
function
|
|
2606
|
-
return C = x,
|
|
2613
|
+
function _(x) {
|
|
2614
|
+
return C = x, k;
|
|
2607
2615
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return a = x,
|
|
2616
|
+
function H(x) {
|
|
2617
|
+
return a = x, k;
|
|
2610
2618
|
}
|
|
2611
|
-
const
|
|
2612
|
-
direction:
|
|
2619
|
+
const k = {
|
|
2620
|
+
direction: w,
|
|
2613
2621
|
duration: h,
|
|
2614
|
-
velocity:
|
|
2622
|
+
velocity: L,
|
|
2615
2623
|
seek: u,
|
|
2616
2624
|
settled: v,
|
|
2617
|
-
useBaseFriction:
|
|
2625
|
+
useBaseFriction: m,
|
|
2618
2626
|
useBaseDuration: g,
|
|
2619
|
-
useFriction:
|
|
2620
|
-
useDuration:
|
|
2627
|
+
useFriction: H,
|
|
2628
|
+
useDuration: _
|
|
2621
2629
|
};
|
|
2622
|
-
return
|
|
2630
|
+
return k;
|
|
2623
2631
|
}
|
|
2624
2632
|
function t8(e, t, o, l, r) {
|
|
2625
|
-
const
|
|
2633
|
+
const c = r.measure(10), i = r.measure(50), s = T1(0.1, 0.99);
|
|
2626
2634
|
let C = !1;
|
|
2627
2635
|
function a() {
|
|
2628
2636
|
return !(C || !e.reachedAny(o.get()) || !e.reachedAny(t.get()));
|
|
2629
2637
|
}
|
|
2630
2638
|
function f(v) {
|
|
2631
2639
|
if (!a()) return;
|
|
2632
|
-
const h = e.reachedMin(t.get()) ? "min" : "max",
|
|
2633
|
-
o.subtract(
|
|
2640
|
+
const h = e.reachedMin(t.get()) ? "min" : "max", w = X(e[h] - t.get()), L = o.get() - t.get(), g = s.constrain(w / i);
|
|
2641
|
+
o.subtract(L * g), !v && X(L) < c && (o.set(e.constrain(o.get())), l.useDuration(25).useBaseFriction());
|
|
2634
2642
|
}
|
|
2635
2643
|
function d(v) {
|
|
2636
2644
|
C = !v;
|
|
@@ -2642,35 +2650,35 @@ function t8(e, t, o, l, r) {
|
|
|
2642
2650
|
};
|
|
2643
2651
|
}
|
|
2644
2652
|
function n8(e, t, o, l, r) {
|
|
2645
|
-
const
|
|
2646
|
-
function a(h,
|
|
2647
|
-
return Y1(h,
|
|
2653
|
+
const c = T1(-t + e, 0), i = d(), s = f(), C = u();
|
|
2654
|
+
function a(h, w) {
|
|
2655
|
+
return Y1(h, w) <= 1;
|
|
2648
2656
|
}
|
|
2649
2657
|
function f() {
|
|
2650
|
-
const h = i[0],
|
|
2651
|
-
return T1(
|
|
2658
|
+
const h = i[0], w = V1(i), L = i.lastIndexOf(h), g = i.indexOf(w) + 1;
|
|
2659
|
+
return T1(L, g);
|
|
2652
2660
|
}
|
|
2653
2661
|
function d() {
|
|
2654
|
-
return o.map((h,
|
|
2662
|
+
return o.map((h, w) => {
|
|
2655
2663
|
const {
|
|
2656
|
-
min:
|
|
2664
|
+
min: L,
|
|
2657
2665
|
max: g
|
|
2658
|
-
} =
|
|
2659
|
-
return
|
|
2666
|
+
} = c, m = c.constrain(h), _ = !w, H = W9(o, w);
|
|
2667
|
+
return _ ? g : H || a(L, m) ? L : a(g, m) ? g : m;
|
|
2660
2668
|
}).map((h) => parseFloat(h.toFixed(3)));
|
|
2661
2669
|
}
|
|
2662
2670
|
function u() {
|
|
2663
|
-
if (t <= e + r) return [
|
|
2671
|
+
if (t <= e + r) return [c.max];
|
|
2664
2672
|
if (l === "keepSnaps") return i;
|
|
2665
2673
|
const {
|
|
2666
2674
|
min: h,
|
|
2667
|
-
max:
|
|
2668
|
-
} =
|
|
2669
|
-
return i.slice(h,
|
|
2675
|
+
max: w
|
|
2676
|
+
} = s;
|
|
2677
|
+
return i.slice(h, w);
|
|
2670
2678
|
}
|
|
2671
2679
|
return {
|
|
2672
2680
|
snapsContained: C,
|
|
2673
|
-
scrollContainLimit:
|
|
2681
|
+
scrollContainLimit: s
|
|
2674
2682
|
};
|
|
2675
2683
|
}
|
|
2676
2684
|
function o8(e, t, o) {
|
|
@@ -2680,12 +2688,12 @@ function o8(e, t, o) {
|
|
|
2680
2688
|
};
|
|
2681
2689
|
}
|
|
2682
2690
|
function l8(e, t, o, l) {
|
|
2683
|
-
const
|
|
2684
|
-
reachedMin:
|
|
2691
|
+
const c = t.min + 0.1, i = t.max + 0.1, {
|
|
2692
|
+
reachedMin: s,
|
|
2685
2693
|
reachedMax: C
|
|
2686
|
-
} = T1(
|
|
2694
|
+
} = T1(c, i);
|
|
2687
2695
|
function a(u) {
|
|
2688
|
-
return u === 1 ? C(o.get()) : u === -1 ?
|
|
2696
|
+
return u === 1 ? C(o.get()) : u === -1 ? s(o.get()) : !1;
|
|
2689
2697
|
}
|
|
2690
2698
|
function f(u) {
|
|
2691
2699
|
if (!a(u)) return;
|
|
@@ -2701,8 +2709,8 @@ function r8(e) {
|
|
|
2701
2709
|
max: t,
|
|
2702
2710
|
length: o
|
|
2703
2711
|
} = e;
|
|
2704
|
-
function l(
|
|
2705
|
-
const i =
|
|
2712
|
+
function l(c) {
|
|
2713
|
+
const i = c - t;
|
|
2706
2714
|
return o ? i / -o : 0;
|
|
2707
2715
|
}
|
|
2708
2716
|
return {
|
|
@@ -2711,43 +2719,43 @@ function r8(e) {
|
|
|
2711
2719
|
}
|
|
2712
2720
|
function i8(e, t, o, l, r) {
|
|
2713
2721
|
const {
|
|
2714
|
-
startEdge:
|
|
2722
|
+
startEdge: c,
|
|
2715
2723
|
endEdge: i
|
|
2716
2724
|
} = e, {
|
|
2717
|
-
groupSlides:
|
|
2725
|
+
groupSlides: s
|
|
2718
2726
|
} = r, C = d().map(t.measure), a = u(), f = v();
|
|
2719
2727
|
function d() {
|
|
2720
|
-
return
|
|
2728
|
+
return s(l).map((w) => V1(w)[i] - w[0][c]).map(X);
|
|
2721
2729
|
}
|
|
2722
2730
|
function u() {
|
|
2723
|
-
return l.map((
|
|
2731
|
+
return l.map((w) => o[c] - w[c]).map((w) => -X(w));
|
|
2724
2732
|
}
|
|
2725
2733
|
function v() {
|
|
2726
|
-
return
|
|
2734
|
+
return s(a).map((w) => w[0]).map((w, L) => w + C[L]);
|
|
2727
2735
|
}
|
|
2728
2736
|
return {
|
|
2729
2737
|
snaps: a,
|
|
2730
2738
|
snapsAligned: f
|
|
2731
2739
|
};
|
|
2732
2740
|
}
|
|
2733
|
-
function C8(e, t, o, l, r,
|
|
2741
|
+
function C8(e, t, o, l, r, c) {
|
|
2734
2742
|
const {
|
|
2735
2743
|
groupSlides: i
|
|
2736
2744
|
} = r, {
|
|
2737
|
-
min:
|
|
2745
|
+
min: s,
|
|
2738
2746
|
max: C
|
|
2739
2747
|
} = l, a = f();
|
|
2740
2748
|
function f() {
|
|
2741
|
-
const u = i(
|
|
2742
|
-
return o.length === 1 ? [
|
|
2743
|
-
const g = !
|
|
2749
|
+
const u = i(c), v = !e || t === "keepSnaps";
|
|
2750
|
+
return o.length === 1 ? [c] : v ? u : u.slice(s, C).map((h, w, L) => {
|
|
2751
|
+
const g = !w, m = W9(L, w);
|
|
2744
2752
|
if (g) {
|
|
2745
|
-
const
|
|
2746
|
-
return d2(
|
|
2753
|
+
const _ = V1(L[0]) + 1;
|
|
2754
|
+
return d2(_);
|
|
2747
2755
|
}
|
|
2748
|
-
if (
|
|
2749
|
-
const
|
|
2750
|
-
return d2(
|
|
2756
|
+
if (m) {
|
|
2757
|
+
const _ = r9(c) - V1(L)[0] + 1;
|
|
2758
|
+
return d2(_, V1(L)[0]);
|
|
2751
2759
|
}
|
|
2752
2760
|
return h;
|
|
2753
2761
|
});
|
|
@@ -2758,52 +2766,52 @@ function C8(e, t, o, l, r, s) {
|
|
|
2758
2766
|
}
|
|
2759
2767
|
function s8(e, t, o, l, r) {
|
|
2760
2768
|
const {
|
|
2761
|
-
reachedAny:
|
|
2769
|
+
reachedAny: c,
|
|
2762
2770
|
removeOffset: i,
|
|
2763
|
-
constrain:
|
|
2771
|
+
constrain: s
|
|
2764
2772
|
} = l;
|
|
2765
2773
|
function C(h) {
|
|
2766
|
-
return h.concat().sort((
|
|
2774
|
+
return h.concat().sort((w, L) => X(w) - X(L))[0];
|
|
2767
2775
|
}
|
|
2768
2776
|
function a(h) {
|
|
2769
|
-
const
|
|
2770
|
-
diff: f(
|
|
2771
|
-
index:
|
|
2772
|
-
})).sort((
|
|
2777
|
+
const w = e ? i(h) : s(h), L = t.map((m, _) => ({
|
|
2778
|
+
diff: f(m - w, 0),
|
|
2779
|
+
index: _
|
|
2780
|
+
})).sort((m, _) => X(m.diff) - X(_.diff)), {
|
|
2773
2781
|
index: g
|
|
2774
|
-
} =
|
|
2782
|
+
} = L[0];
|
|
2775
2783
|
return {
|
|
2776
2784
|
index: g,
|
|
2777
|
-
distance:
|
|
2785
|
+
distance: w
|
|
2778
2786
|
};
|
|
2779
2787
|
}
|
|
2780
|
-
function f(h,
|
|
2781
|
-
const
|
|
2788
|
+
function f(h, w) {
|
|
2789
|
+
const L = [h, h + o, h - o];
|
|
2782
2790
|
if (!e) return h;
|
|
2783
|
-
if (!
|
|
2784
|
-
const g =
|
|
2785
|
-
return g.length ? C(g) : V1(
|
|
2791
|
+
if (!w) return C(L);
|
|
2792
|
+
const g = L.filter((m) => j9(m) === w);
|
|
2793
|
+
return g.length ? C(g) : V1(L) - o;
|
|
2786
2794
|
}
|
|
2787
|
-
function d(h,
|
|
2788
|
-
const
|
|
2795
|
+
function d(h, w) {
|
|
2796
|
+
const L = t[h] - r.get(), g = f(L, w);
|
|
2789
2797
|
return {
|
|
2790
2798
|
index: h,
|
|
2791
2799
|
distance: g
|
|
2792
2800
|
};
|
|
2793
2801
|
}
|
|
2794
|
-
function u(h,
|
|
2795
|
-
const
|
|
2802
|
+
function u(h, w) {
|
|
2803
|
+
const L = r.get() + h, {
|
|
2796
2804
|
index: g,
|
|
2797
|
-
distance:
|
|
2798
|
-
} = a(
|
|
2799
|
-
if (!
|
|
2805
|
+
distance: m
|
|
2806
|
+
} = a(L), _ = !e && c(L);
|
|
2807
|
+
if (!w || _) return {
|
|
2800
2808
|
index: g,
|
|
2801
2809
|
distance: h
|
|
2802
2810
|
};
|
|
2803
|
-
const
|
|
2811
|
+
const H = t[g] - m, k = h + f(H, 0);
|
|
2804
2812
|
return {
|
|
2805
2813
|
index: g,
|
|
2806
|
-
distance:
|
|
2814
|
+
distance: k
|
|
2807
2815
|
};
|
|
2808
2816
|
}
|
|
2809
2817
|
return {
|
|
@@ -2812,41 +2820,41 @@ function s8(e, t, o, l, r) {
|
|
|
2812
2820
|
shortcut: f
|
|
2813
2821
|
};
|
|
2814
2822
|
}
|
|
2815
|
-
function c8(e, t, o, l, r,
|
|
2816
|
-
function
|
|
2823
|
+
function c8(e, t, o, l, r, c, i) {
|
|
2824
|
+
function s(d) {
|
|
2817
2825
|
const u = d.distance, v = d.index !== t.get();
|
|
2818
|
-
|
|
2826
|
+
c.add(u), u && (l.duration() ? e.start() : (e.update(), e.render(1), e.update())), v && (o.set(t.get()), t.set(d.index), i.emit("select"));
|
|
2819
2827
|
}
|
|
2820
2828
|
function C(d, u) {
|
|
2821
2829
|
const v = r.byDistance(d, u);
|
|
2822
|
-
|
|
2830
|
+
s(v);
|
|
2823
2831
|
}
|
|
2824
2832
|
function a(d, u) {
|
|
2825
2833
|
const v = t.clone().set(d), h = r.byIndex(v.get(), u);
|
|
2826
|
-
|
|
2834
|
+
s(h);
|
|
2827
2835
|
}
|
|
2828
2836
|
return {
|
|
2829
2837
|
distance: C,
|
|
2830
2838
|
index: a
|
|
2831
2839
|
};
|
|
2832
2840
|
}
|
|
2833
|
-
function a8(e, t, o, l, r,
|
|
2841
|
+
function a8(e, t, o, l, r, c, i, s) {
|
|
2834
2842
|
const C = {
|
|
2835
2843
|
passive: !0,
|
|
2836
2844
|
capture: !0
|
|
2837
2845
|
};
|
|
2838
2846
|
let a = 0;
|
|
2839
2847
|
function f(v) {
|
|
2840
|
-
if (!
|
|
2841
|
-
function h(
|
|
2848
|
+
if (!s) return;
|
|
2849
|
+
function h(w) {
|
|
2842
2850
|
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
2843
2851
|
i.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
2844
|
-
const
|
|
2845
|
-
P9(
|
|
2852
|
+
const m = o.findIndex((_) => _.includes(w));
|
|
2853
|
+
P9(m) && (r.useDuration(0), l.index(m, 0), i.emit("slideFocus"));
|
|
2846
2854
|
}
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
(x9(
|
|
2855
|
+
c.add(document, "keydown", d, !1), t.forEach((w, L) => {
|
|
2856
|
+
c.add(w, "focus", (g) => {
|
|
2857
|
+
(x9(s) || s(v, g)) && h(L);
|
|
2850
2858
|
}, C);
|
|
2851
2859
|
});
|
|
2852
2860
|
}
|
|
@@ -2868,7 +2876,7 @@ function G1(e) {
|
|
|
2868
2876
|
function r(C) {
|
|
2869
2877
|
t += i(C);
|
|
2870
2878
|
}
|
|
2871
|
-
function
|
|
2879
|
+
function c(C) {
|
|
2872
2880
|
t -= i(C);
|
|
2873
2881
|
}
|
|
2874
2882
|
function i(C) {
|
|
@@ -2878,28 +2886,28 @@ function G1(e) {
|
|
|
2878
2886
|
get: o,
|
|
2879
2887
|
set: l,
|
|
2880
2888
|
add: r,
|
|
2881
|
-
subtract:
|
|
2889
|
+
subtract: c
|
|
2882
2890
|
};
|
|
2883
2891
|
}
|
|
2884
2892
|
function H2(e, t) {
|
|
2885
|
-
const o = e.scroll === "x" ? i :
|
|
2886
|
-
let r = null,
|
|
2893
|
+
const o = e.scroll === "x" ? i : s, l = t.style;
|
|
2894
|
+
let r = null, c = !1;
|
|
2887
2895
|
function i(u) {
|
|
2888
2896
|
return `translate3d(${u}px,0px,0px)`;
|
|
2889
2897
|
}
|
|
2890
|
-
function
|
|
2898
|
+
function s(u) {
|
|
2891
2899
|
return `translate3d(0px,${u}px,0px)`;
|
|
2892
2900
|
}
|
|
2893
2901
|
function C(u) {
|
|
2894
|
-
if (
|
|
2902
|
+
if (c) return;
|
|
2895
2903
|
const v = q7(e.direction(u));
|
|
2896
2904
|
v !== r && (l.transform = o(v), r = v);
|
|
2897
2905
|
}
|
|
2898
2906
|
function a(u) {
|
|
2899
|
-
|
|
2907
|
+
c = !u;
|
|
2900
2908
|
}
|
|
2901
2909
|
function f() {
|
|
2902
|
-
|
|
2910
|
+
c || (l.transform = "", t.getAttribute("style") || t.removeAttribute("style"));
|
|
2903
2911
|
}
|
|
2904
2912
|
return {
|
|
2905
2913
|
clear: f,
|
|
@@ -2907,72 +2915,72 @@ function H2(e, t) {
|
|
|
2907
2915
|
toggleActive: a
|
|
2908
2916
|
};
|
|
2909
2917
|
}
|
|
2910
|
-
function d8(e, t, o, l, r,
|
|
2911
|
-
const f = e9(r), d = e9(r).reverse(), u = g().concat(
|
|
2912
|
-
function v(
|
|
2913
|
-
return
|
|
2918
|
+
function d8(e, t, o, l, r, c, i, s, C) {
|
|
2919
|
+
const f = e9(r), d = e9(r).reverse(), u = g().concat(m());
|
|
2920
|
+
function v(V, I) {
|
|
2921
|
+
return V.reduce((A, M) => A - r[M], I);
|
|
2914
2922
|
}
|
|
2915
|
-
function h(
|
|
2916
|
-
return
|
|
2923
|
+
function h(V, I) {
|
|
2924
|
+
return V.reduce((A, M) => v(A, I) > 0 ? A.concat([M]) : A, []);
|
|
2917
2925
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2920
|
-
start:
|
|
2921
|
-
end:
|
|
2926
|
+
function w(V) {
|
|
2927
|
+
return c.map((I, A) => ({
|
|
2928
|
+
start: I - l[A] + 0.5 + V,
|
|
2929
|
+
end: I + t - 0.5 + V
|
|
2922
2930
|
}));
|
|
2923
2931
|
}
|
|
2924
|
-
function
|
|
2925
|
-
const
|
|
2926
|
-
return
|
|
2927
|
-
const
|
|
2932
|
+
function L(V, I, A) {
|
|
2933
|
+
const M = w(I);
|
|
2934
|
+
return V.map((b) => {
|
|
2935
|
+
const B = A ? 0 : -o, S = A ? o : 0, y = A ? "end" : "start", Z = M[b][y];
|
|
2928
2936
|
return {
|
|
2929
|
-
index:
|
|
2930
|
-
loopPoint:
|
|
2937
|
+
index: b,
|
|
2938
|
+
loopPoint: Z,
|
|
2931
2939
|
slideLocation: G1(-1),
|
|
2932
|
-
translate: H2(e, C[
|
|
2933
|
-
target: () =>
|
|
2940
|
+
translate: H2(e, C[b]),
|
|
2941
|
+
target: () => s.get() > Z ? B : S
|
|
2934
2942
|
};
|
|
2935
2943
|
});
|
|
2936
2944
|
}
|
|
2937
2945
|
function g() {
|
|
2938
|
-
const
|
|
2939
|
-
return
|
|
2946
|
+
const V = i[0], I = h(d, V);
|
|
2947
|
+
return L(I, o, !1);
|
|
2940
2948
|
}
|
|
2941
|
-
function
|
|
2942
|
-
const
|
|
2943
|
-
return
|
|
2949
|
+
function m() {
|
|
2950
|
+
const V = t - i[0] - 1, I = h(f, V);
|
|
2951
|
+
return L(I, -o, !0);
|
|
2944
2952
|
}
|
|
2945
|
-
function
|
|
2953
|
+
function _() {
|
|
2946
2954
|
return u.every(({
|
|
2947
|
-
index:
|
|
2955
|
+
index: V
|
|
2948
2956
|
}) => {
|
|
2949
|
-
const
|
|
2950
|
-
return v(
|
|
2957
|
+
const I = f.filter((A) => A !== V);
|
|
2958
|
+
return v(I, t) <= 0.1;
|
|
2951
2959
|
});
|
|
2952
2960
|
}
|
|
2953
|
-
function
|
|
2954
|
-
u.forEach((
|
|
2961
|
+
function H() {
|
|
2962
|
+
u.forEach((V) => {
|
|
2955
2963
|
const {
|
|
2956
|
-
target:
|
|
2957
|
-
translate:
|
|
2958
|
-
slideLocation:
|
|
2959
|
-
} =
|
|
2960
|
-
|
|
2964
|
+
target: I,
|
|
2965
|
+
translate: A,
|
|
2966
|
+
slideLocation: M
|
|
2967
|
+
} = V, b = I();
|
|
2968
|
+
b !== M.get() && (A.to(b), M.set(b));
|
|
2961
2969
|
});
|
|
2962
2970
|
}
|
|
2963
|
-
function
|
|
2964
|
-
u.forEach((
|
|
2971
|
+
function k() {
|
|
2972
|
+
u.forEach((V) => V.translate.clear());
|
|
2965
2973
|
}
|
|
2966
2974
|
return {
|
|
2967
|
-
canLoop:
|
|
2968
|
-
clear:
|
|
2969
|
-
loop:
|
|
2975
|
+
canLoop: _,
|
|
2976
|
+
clear: k,
|
|
2977
|
+
loop: H,
|
|
2970
2978
|
loopPoints: u
|
|
2971
2979
|
};
|
|
2972
2980
|
}
|
|
2973
2981
|
function u8(e, t, o) {
|
|
2974
2982
|
let l, r = !1;
|
|
2975
|
-
function
|
|
2983
|
+
function c(C) {
|
|
2976
2984
|
if (!o) return;
|
|
2977
2985
|
function a(f) {
|
|
2978
2986
|
for (const d of f)
|
|
@@ -2991,40 +2999,40 @@ function u8(e, t, o) {
|
|
|
2991
2999
|
l && l.disconnect(), r = !0;
|
|
2992
3000
|
}
|
|
2993
3001
|
return {
|
|
2994
|
-
init:
|
|
3002
|
+
init: c,
|
|
2995
3003
|
destroy: i
|
|
2996
3004
|
};
|
|
2997
3005
|
}
|
|
2998
3006
|
function h8(e, t, o, l) {
|
|
2999
3007
|
const r = {};
|
|
3000
|
-
let
|
|
3008
|
+
let c = null, i = null, s, C = !1;
|
|
3001
3009
|
function a() {
|
|
3002
|
-
|
|
3003
|
-
C || (h.forEach((
|
|
3004
|
-
const
|
|
3005
|
-
r[
|
|
3006
|
-
}),
|
|
3010
|
+
s = new IntersectionObserver((h) => {
|
|
3011
|
+
C || (h.forEach((w) => {
|
|
3012
|
+
const L = t.indexOf(w.target);
|
|
3013
|
+
r[L] = w;
|
|
3014
|
+
}), c = null, i = null, o.emit("slidesInView"));
|
|
3007
3015
|
}, {
|
|
3008
3016
|
root: e.parentElement,
|
|
3009
3017
|
threshold: l
|
|
3010
|
-
}), t.forEach((h) =>
|
|
3018
|
+
}), t.forEach((h) => s.observe(h));
|
|
3011
3019
|
}
|
|
3012
3020
|
function f() {
|
|
3013
|
-
|
|
3021
|
+
s && s.disconnect(), C = !0;
|
|
3014
3022
|
}
|
|
3015
3023
|
function d(h) {
|
|
3016
|
-
return t9(r).reduce((
|
|
3017
|
-
const g = parseInt(
|
|
3018
|
-
isIntersecting:
|
|
3024
|
+
return t9(r).reduce((w, L) => {
|
|
3025
|
+
const g = parseInt(L), {
|
|
3026
|
+
isIntersecting: m
|
|
3019
3027
|
} = r[g];
|
|
3020
|
-
return (h &&
|
|
3028
|
+
return (h && m || !h && !m) && w.push(g), w;
|
|
3021
3029
|
}, []);
|
|
3022
3030
|
}
|
|
3023
3031
|
function u(h = !0) {
|
|
3024
|
-
if (h &&
|
|
3032
|
+
if (h && c) return c;
|
|
3025
3033
|
if (!h && i) return i;
|
|
3026
|
-
const
|
|
3027
|
-
return h && (
|
|
3034
|
+
const w = d(h);
|
|
3035
|
+
return h && (c = w), h || (i = w), w;
|
|
3028
3036
|
}
|
|
3029
3037
|
return {
|
|
3030
3038
|
init: a,
|
|
@@ -3032,26 +3040,26 @@ function h8(e, t, o, l) {
|
|
|
3032
3040
|
get: u
|
|
3033
3041
|
};
|
|
3034
3042
|
}
|
|
3035
|
-
function f8(e, t, o, l, r,
|
|
3043
|
+
function f8(e, t, o, l, r, c) {
|
|
3036
3044
|
const {
|
|
3037
3045
|
measureSize: i,
|
|
3038
|
-
startEdge:
|
|
3046
|
+
startEdge: s,
|
|
3039
3047
|
endEdge: C
|
|
3040
|
-
} = e, a = o[0] && r, f = h(), d =
|
|
3048
|
+
} = e, a = o[0] && r, f = h(), d = w(), u = o.map(i), v = L();
|
|
3041
3049
|
function h() {
|
|
3042
3050
|
if (!a) return 0;
|
|
3043
|
-
const
|
|
3044
|
-
return X(t[
|
|
3051
|
+
const m = o[0];
|
|
3052
|
+
return X(t[s] - m[s]);
|
|
3045
3053
|
}
|
|
3046
|
-
function
|
|
3054
|
+
function w() {
|
|
3047
3055
|
if (!a) return 0;
|
|
3048
|
-
const
|
|
3049
|
-
return parseFloat(
|
|
3056
|
+
const m = c.getComputedStyle(V1(l));
|
|
3057
|
+
return parseFloat(m.getPropertyValue(`margin-${C}`));
|
|
3050
3058
|
}
|
|
3051
|
-
function
|
|
3052
|
-
return o.map((
|
|
3053
|
-
const
|
|
3054
|
-
return
|
|
3059
|
+
function L() {
|
|
3060
|
+
return o.map((m, _, H) => {
|
|
3061
|
+
const k = !_, x = W9(H, _);
|
|
3062
|
+
return k ? u[_] + f : x ? u[_] + d : H[_ + 1][s] - m[s];
|
|
3055
3063
|
}).map(X);
|
|
3056
3064
|
}
|
|
3057
3065
|
return {
|
|
@@ -3061,34 +3069,34 @@ function f8(e, t, o, l, r, s) {
|
|
|
3061
3069
|
endGap: d
|
|
3062
3070
|
};
|
|
3063
3071
|
}
|
|
3064
|
-
function p8(e, t, o, l, r,
|
|
3072
|
+
function p8(e, t, o, l, r, c, i, s, C) {
|
|
3065
3073
|
const {
|
|
3066
3074
|
startEdge: a,
|
|
3067
3075
|
endEdge: f,
|
|
3068
3076
|
direction: d
|
|
3069
3077
|
} = e, u = P9(o);
|
|
3070
|
-
function v(g,
|
|
3071
|
-
return e9(g).filter((
|
|
3078
|
+
function v(g, m) {
|
|
3079
|
+
return e9(g).filter((_) => _ % m === 0).map((_) => g.slice(_, _ + m));
|
|
3072
3080
|
}
|
|
3073
3081
|
function h(g) {
|
|
3074
|
-
return g.length ? e9(g).reduce((
|
|
3075
|
-
const
|
|
3076
|
-
return
|
|
3077
|
-
}, []).map((
|
|
3078
|
-
const
|
|
3079
|
-
return g.slice(
|
|
3082
|
+
return g.length ? e9(g).reduce((m, _, H) => {
|
|
3083
|
+
const k = V1(m) || 0, x = k === 0, V = _ === r9(g), I = r[a] - c[k][a], A = r[a] - c[_][f], M = !l && x ? d(i) : 0, b = !l && V ? d(s) : 0, B = X(A - b - (I + M));
|
|
3084
|
+
return H && B > t + C && m.push(_), V && m.push(g.length), m;
|
|
3085
|
+
}, []).map((m, _, H) => {
|
|
3086
|
+
const k = Math.max(H[_ - 1] || 0);
|
|
3087
|
+
return g.slice(k, m);
|
|
3080
3088
|
}) : [];
|
|
3081
3089
|
}
|
|
3082
|
-
function
|
|
3090
|
+
function w(g) {
|
|
3083
3091
|
return u ? v(g, o) : h(g);
|
|
3084
3092
|
}
|
|
3085
3093
|
return {
|
|
3086
|
-
groupSlides:
|
|
3094
|
+
groupSlides: w
|
|
3087
3095
|
};
|
|
3088
3096
|
}
|
|
3089
|
-
function g8(e, t, o, l, r,
|
|
3097
|
+
function g8(e, t, o, l, r, c, i) {
|
|
3090
3098
|
const {
|
|
3091
|
-
align:
|
|
3099
|
+
align: s,
|
|
3092
3100
|
axis: C,
|
|
3093
3101
|
direction: a,
|
|
3094
3102
|
startIndex: f,
|
|
@@ -3096,28 +3104,28 @@ function g8(e, t, o, l, r, s, i) {
|
|
|
3096
3104
|
duration: u,
|
|
3097
3105
|
dragFree: v,
|
|
3098
3106
|
dragThreshold: h,
|
|
3099
|
-
inViewThreshold:
|
|
3100
|
-
slidesToScroll:
|
|
3107
|
+
inViewThreshold: w,
|
|
3108
|
+
slidesToScroll: L,
|
|
3101
3109
|
skipSnaps: g,
|
|
3102
|
-
containScroll:
|
|
3103
|
-
watchResize:
|
|
3104
|
-
watchSlides:
|
|
3105
|
-
watchDrag:
|
|
3110
|
+
containScroll: m,
|
|
3111
|
+
watchResize: _,
|
|
3112
|
+
watchSlides: H,
|
|
3113
|
+
watchDrag: k,
|
|
3106
3114
|
watchFocus: x
|
|
3107
|
-
} =
|
|
3108
|
-
slideSizes:
|
|
3115
|
+
} = c, V = 2, I = Y7(), A = I.measure(t), M = o.map(I.measure), b = Q7(C, a), B = b.measureSize(A), S = J7(B), y = G7(s, B), Z = !d && !!m, T = d || !!m, {
|
|
3116
|
+
slideSizes: N,
|
|
3109
3117
|
slideSizesWithGaps: D,
|
|
3110
3118
|
startGap: O,
|
|
3111
3119
|
endGap: U
|
|
3112
|
-
} = f8(
|
|
3120
|
+
} = f8(b, A, M, o, T, r), a1 = p8(b, B, L, d, A, M, O, U, V), {
|
|
3113
3121
|
snaps: h1,
|
|
3114
3122
|
snapsAligned: l1
|
|
3115
|
-
} = i8(
|
|
3123
|
+
} = i8(b, y, A, M, a1), K = -V1(h1) + V1(D), {
|
|
3116
3124
|
snapsContained: B1,
|
|
3117
3125
|
scrollContainLimit: g1
|
|
3118
|
-
} = n8(
|
|
3126
|
+
} = n8(B, K, l1, m, V), r1 = Z ? B1 : l1, {
|
|
3119
3127
|
limit: i1
|
|
3120
|
-
} = o8(K, r1, d), v1 = y2(r9(r1), f, d), s1 = v1.clone(), j = e9(o),
|
|
3128
|
+
} = o8(K, r1, d), v1 = y2(r9(r1), f, d), s1 = v1.clone(), j = e9(o), R = ({
|
|
3121
3129
|
dragHandler: D1,
|
|
3122
3130
|
scrollBody: Z9,
|
|
3123
3131
|
scrollBounds: V9,
|
|
@@ -3146,44 +3154,44 @@ function g8(e, t, o, l, r, s, i) {
|
|
|
3146
3154
|
z9 && A2.stop();
|
|
3147
3155
|
const T2 = V9.get() * K9 + B2.get() * (1 - K9);
|
|
3148
3156
|
C9.set(T2), X9 && (R2.loop(D1.direction()), k2.loop()), Z9.to(C9.get()), z9 && Q9.emit("settle"), J9 || Q9.emit("scroll");
|
|
3149
|
-
}, $ = U7(l, r, () =>
|
|
3157
|
+
}, $ = U7(l, r, () => R(H9), (D1) => P(H9, D1)), W = 0.68, C1 = r1[v1.get()], f1 = G1(C1), R1 = G1(C1), L1 = G1(C1), E1 = G1(C1), q1 = e8(f1, L1, R1, E1, u, W), M9 = s8(d, r1, K, i1, E1), y9 = c8($, v1, s1, q1, M9, E1, i), q9 = r8(i1), G9 = n9(), V2 = h8(t, o, i, w), {
|
|
3150
3158
|
slideRegistry: U9
|
|
3151
|
-
} = C8(
|
|
3159
|
+
} = C8(Z, m, r1, g1, a1, j), I2 = a8(e, o, U9, y9, q1, G9, i, x), H9 = {
|
|
3152
3160
|
ownerDocument: l,
|
|
3153
3161
|
ownerWindow: r,
|
|
3154
3162
|
eventHandler: i,
|
|
3155
|
-
containerRect:
|
|
3156
|
-
slideRects:
|
|
3163
|
+
containerRect: A,
|
|
3164
|
+
slideRects: M,
|
|
3157
3165
|
animation: $,
|
|
3158
|
-
axis:
|
|
3159
|
-
dragHandler: X7(
|
|
3166
|
+
axis: b,
|
|
3167
|
+
dragHandler: X7(b, e, l, r, E1, K7(b, r), f1, $, y9, q1, M9, v1, i, S, v, h, g, W, k),
|
|
3160
3168
|
eventStore: G9,
|
|
3161
|
-
percentOfView:
|
|
3169
|
+
percentOfView: S,
|
|
3162
3170
|
index: v1,
|
|
3163
3171
|
indexPrevious: s1,
|
|
3164
3172
|
limit: i1,
|
|
3165
3173
|
location: f1,
|
|
3166
3174
|
offsetLocation: L1,
|
|
3167
3175
|
previousLocation: R1,
|
|
3168
|
-
options:
|
|
3169
|
-
resizeHandler: z7(t, i, r, o,
|
|
3176
|
+
options: c,
|
|
3177
|
+
resizeHandler: z7(t, i, r, o, b, _, I),
|
|
3170
3178
|
scrollBody: q1,
|
|
3171
|
-
scrollBounds: t8(i1, L1, E1, q1,
|
|
3179
|
+
scrollBounds: t8(i1, L1, E1, q1, S),
|
|
3172
3180
|
scrollLooper: l8(K, i1, L1, [f1, L1, R1, E1]),
|
|
3173
3181
|
scrollProgress: q9,
|
|
3174
3182
|
scrollSnapList: r1.map(q9.get),
|
|
3175
3183
|
scrollSnaps: r1,
|
|
3176
3184
|
scrollTarget: M9,
|
|
3177
3185
|
scrollTo: y9,
|
|
3178
|
-
slideLooper: d8(
|
|
3186
|
+
slideLooper: d8(b, B, K, N, D, h1, r1, L1, o),
|
|
3179
3187
|
slideFocus: I2,
|
|
3180
|
-
slidesHandler: u8(t, i,
|
|
3188
|
+
slidesHandler: u8(t, i, H),
|
|
3181
3189
|
slidesInView: V2,
|
|
3182
3190
|
slideIndexes: j,
|
|
3183
3191
|
slideRegistry: U9,
|
|
3184
3192
|
slidesToScroll: a1,
|
|
3185
3193
|
target: E1,
|
|
3186
|
-
translate: H2(
|
|
3194
|
+
translate: H2(b, t)
|
|
3187
3195
|
};
|
|
3188
3196
|
return H9;
|
|
3189
3197
|
}
|
|
@@ -3198,21 +3206,21 @@ function m8() {
|
|
|
3198
3206
|
function r(a) {
|
|
3199
3207
|
return l(a).forEach((f) => f(t, a)), C;
|
|
3200
3208
|
}
|
|
3201
|
-
function
|
|
3209
|
+
function c(a, f) {
|
|
3202
3210
|
return e[a] = l(a).concat([f]), C;
|
|
3203
3211
|
}
|
|
3204
3212
|
function i(a, f) {
|
|
3205
3213
|
return e[a] = l(a).filter((d) => d !== f), C;
|
|
3206
3214
|
}
|
|
3207
|
-
function
|
|
3215
|
+
function s() {
|
|
3208
3216
|
e = {};
|
|
3209
3217
|
}
|
|
3210
3218
|
const C = {
|
|
3211
3219
|
init: o,
|
|
3212
3220
|
emit: r,
|
|
3213
3221
|
off: i,
|
|
3214
|
-
on:
|
|
3215
|
-
clear:
|
|
3222
|
+
on: c,
|
|
3223
|
+
clear: s
|
|
3216
3224
|
};
|
|
3217
3225
|
return C;
|
|
3218
3226
|
}
|
|
@@ -3239,15 +3247,15 @@ const w8 = {
|
|
|
3239
3247
|
watchFocus: !0
|
|
3240
3248
|
};
|
|
3241
3249
|
function v8(e) {
|
|
3242
|
-
function t(
|
|
3243
|
-
return M2(
|
|
3250
|
+
function t(c, i) {
|
|
3251
|
+
return M2(c, i || {});
|
|
3244
3252
|
}
|
|
3245
|
-
function o(
|
|
3246
|
-
const i =
|
|
3247
|
-
return t(
|
|
3253
|
+
function o(c) {
|
|
3254
|
+
const i = c.breakpoints || {}, s = t9(i).filter((C) => e.matchMedia(C).matches).map((C) => i[C]).reduce((C, a) => t(C, a), {});
|
|
3255
|
+
return t(c, s);
|
|
3248
3256
|
}
|
|
3249
|
-
function l(
|
|
3250
|
-
return
|
|
3257
|
+
function l(c) {
|
|
3258
|
+
return c.map((i) => t9(i.breakpoints || {})).reduce((i, s) => i.concat(s), []).map(e.matchMedia);
|
|
3251
3259
|
}
|
|
3252
3260
|
return {
|
|
3253
3261
|
mergeOptions: t,
|
|
@@ -3257,15 +3265,15 @@ function v8(e) {
|
|
|
3257
3265
|
}
|
|
3258
3266
|
function L8(e) {
|
|
3259
3267
|
let t = [];
|
|
3260
|
-
function o(
|
|
3268
|
+
function o(c, i) {
|
|
3261
3269
|
return t = i.filter(({
|
|
3262
|
-
options:
|
|
3263
|
-
}) => e.optionsAtMedia(
|
|
3270
|
+
options: s
|
|
3271
|
+
}) => e.optionsAtMedia(s).active !== !1), t.forEach((s) => s.init(c, e)), i.reduce((s, C) => Object.assign(s, {
|
|
3264
3272
|
[C.name]: C
|
|
3265
3273
|
}), {});
|
|
3266
3274
|
}
|
|
3267
3275
|
function l() {
|
|
3268
|
-
t = t.filter((
|
|
3276
|
+
t = t.filter((c) => c.destroy());
|
|
3269
3277
|
}
|
|
3270
3278
|
return {
|
|
3271
3279
|
init: o,
|
|
@@ -3273,64 +3281,64 @@ function L8(e) {
|
|
|
3273
3281
|
};
|
|
3274
3282
|
}
|
|
3275
3283
|
function v9(e, t, o) {
|
|
3276
|
-
const l = e.ownerDocument, r = l.defaultView,
|
|
3284
|
+
const l = e.ownerDocument, r = l.defaultView, c = v8(r), i = L8(c), s = n9(), C = m8(), {
|
|
3277
3285
|
mergeOptions: a,
|
|
3278
3286
|
optionsAtMedia: f,
|
|
3279
3287
|
optionsMediaQueries: d
|
|
3280
|
-
} =
|
|
3288
|
+
} = c, {
|
|
3281
3289
|
on: u,
|
|
3282
3290
|
off: v,
|
|
3283
3291
|
emit: h
|
|
3284
|
-
} = C,
|
|
3285
|
-
let
|
|
3286
|
-
function
|
|
3292
|
+
} = C, w = b;
|
|
3293
|
+
let L = !1, g, m = a(w8, v9.globalOptions), _ = a(m), H = [], k, x, V;
|
|
3294
|
+
function I() {
|
|
3287
3295
|
const {
|
|
3288
3296
|
container: j,
|
|
3289
|
-
slides:
|
|
3290
|
-
} =
|
|
3297
|
+
slides: R
|
|
3298
|
+
} = _;
|
|
3291
3299
|
x = ($9(j) ? e.querySelector(j) : j) || e.children[0];
|
|
3292
|
-
const $ = $9(
|
|
3293
|
-
|
|
3300
|
+
const $ = $9(R) ? x.querySelectorAll(R) : R;
|
|
3301
|
+
V = [].slice.call($ || x.children);
|
|
3294
3302
|
}
|
|
3295
|
-
function
|
|
3296
|
-
const
|
|
3297
|
-
if (j.loop && !
|
|
3303
|
+
function A(j) {
|
|
3304
|
+
const R = g8(e, x, V, l, r, j, C);
|
|
3305
|
+
if (j.loop && !R.slideLooper.canLoop()) {
|
|
3298
3306
|
const P = Object.assign({}, j, {
|
|
3299
3307
|
loop: !1
|
|
3300
3308
|
});
|
|
3301
|
-
return
|
|
3309
|
+
return A(P);
|
|
3302
3310
|
}
|
|
3303
|
-
return
|
|
3311
|
+
return R;
|
|
3304
3312
|
}
|
|
3305
|
-
function
|
|
3306
|
-
|
|
3313
|
+
function M(j, R) {
|
|
3314
|
+
L || (m = a(m, j), _ = f(m), H = R || H, I(), g = A(_), d([m, ...H.map(({
|
|
3307
3315
|
options: P
|
|
3308
|
-
}) => P)]).forEach((P) =>
|
|
3316
|
+
}) => P)]).forEach((P) => s.add(P, "change", b)), _.active && (g.translate.to(g.location.get()), g.animation.init(), g.slidesInView.init(), g.slideFocus.init(s1), g.eventHandler.init(s1), g.resizeHandler.init(s1), g.slidesHandler.init(s1), g.options.loop && g.slideLooper.loop(), x.offsetParent && V.length && g.dragHandler.init(s1), k = i.init(s1, H)));
|
|
3309
3317
|
}
|
|
3310
|
-
function
|
|
3318
|
+
function b(j, R) {
|
|
3311
3319
|
const P = a1();
|
|
3312
|
-
|
|
3320
|
+
B(), M(a({
|
|
3313
3321
|
startIndex: P
|
|
3314
|
-
}, j),
|
|
3322
|
+
}, j), R), C.emit("reInit");
|
|
3315
3323
|
}
|
|
3316
|
-
function
|
|
3317
|
-
g.dragHandler.destroy(), g.eventStore.clear(), g.translate.clear(), g.slideLooper.clear(), g.resizeHandler.destroy(), g.slidesHandler.destroy(), g.slidesInView.destroy(), g.animation.destroy(), i.destroy(),
|
|
3324
|
+
function B() {
|
|
3325
|
+
g.dragHandler.destroy(), g.eventStore.clear(), g.translate.clear(), g.slideLooper.clear(), g.resizeHandler.destroy(), g.slidesHandler.destroy(), g.slidesInView.destroy(), g.animation.destroy(), i.destroy(), s.clear();
|
|
3318
3326
|
}
|
|
3319
|
-
function
|
|
3320
|
-
|
|
3327
|
+
function S() {
|
|
3328
|
+
L || (L = !0, s.clear(), B(), C.emit("destroy"), C.clear());
|
|
3321
3329
|
}
|
|
3322
|
-
function y(j,
|
|
3323
|
-
!
|
|
3330
|
+
function y(j, R, P) {
|
|
3331
|
+
!_.active || L || (g.scrollBody.useBaseFriction().useDuration(R === !0 ? 0 : _.duration), g.scrollTo.index(j, P || 0));
|
|
3324
3332
|
}
|
|
3325
|
-
function
|
|
3326
|
-
const
|
|
3327
|
-
y(
|
|
3333
|
+
function Z(j) {
|
|
3334
|
+
const R = g.index.add(1).get();
|
|
3335
|
+
y(R, j, -1);
|
|
3328
3336
|
}
|
|
3329
3337
|
function T(j) {
|
|
3330
|
-
const
|
|
3331
|
-
y(
|
|
3338
|
+
const R = g.index.add(-1).get();
|
|
3339
|
+
y(R, j, 1);
|
|
3332
3340
|
}
|
|
3333
|
-
function
|
|
3341
|
+
function N() {
|
|
3334
3342
|
return g.index.add(1).get() !== a1();
|
|
3335
3343
|
}
|
|
3336
3344
|
function D() {
|
|
@@ -3355,7 +3363,7 @@ function v9(e, t, o) {
|
|
|
3355
3363
|
return g.slidesInView.get(!1);
|
|
3356
3364
|
}
|
|
3357
3365
|
function B1() {
|
|
3358
|
-
return
|
|
3366
|
+
return k;
|
|
3359
3367
|
}
|
|
3360
3368
|
function g1() {
|
|
3361
3369
|
return g;
|
|
@@ -3367,22 +3375,22 @@ function v9(e, t, o) {
|
|
|
3367
3375
|
return x;
|
|
3368
3376
|
}
|
|
3369
3377
|
function v1() {
|
|
3370
|
-
return
|
|
3378
|
+
return V;
|
|
3371
3379
|
}
|
|
3372
3380
|
const s1 = {
|
|
3373
|
-
canScrollNext:
|
|
3381
|
+
canScrollNext: N,
|
|
3374
3382
|
canScrollPrev: D,
|
|
3375
3383
|
containerNode: i1,
|
|
3376
3384
|
internalEngine: g1,
|
|
3377
|
-
destroy:
|
|
3385
|
+
destroy: S,
|
|
3378
3386
|
off: v,
|
|
3379
3387
|
on: u,
|
|
3380
3388
|
emit: h,
|
|
3381
3389
|
plugins: B1,
|
|
3382
3390
|
previousScrollSnap: h1,
|
|
3383
|
-
reInit:
|
|
3391
|
+
reInit: w,
|
|
3384
3392
|
rootNode: r1,
|
|
3385
|
-
scrollNext:
|
|
3393
|
+
scrollNext: Z,
|
|
3386
3394
|
scrollPrev: T,
|
|
3387
3395
|
scrollProgress: U,
|
|
3388
3396
|
scrollSnapList: O,
|
|
@@ -3392,25 +3400,25 @@ function v9(e, t, o) {
|
|
|
3392
3400
|
slidesInView: l1,
|
|
3393
3401
|
slidesNotInView: K
|
|
3394
3402
|
};
|
|
3395
|
-
return
|
|
3403
|
+
return M(t, o), setTimeout(() => C.emit("init"), 0), s1;
|
|
3396
3404
|
}
|
|
3397
3405
|
v9.globalOptions = void 0;
|
|
3398
3406
|
function i9(e = {}, t = []) {
|
|
3399
|
-
const o = F(e), l = F(t), [r,
|
|
3407
|
+
const o = F(e), l = F(t), [r, c] = q(), [i, s] = q(), C = G(() => {
|
|
3400
3408
|
r && r.reInit(o.current, l.current);
|
|
3401
3409
|
}, [r]);
|
|
3402
|
-
return
|
|
3410
|
+
return J(() => {
|
|
3403
3411
|
O9(o.current, e) || (o.current = e, C());
|
|
3404
|
-
}, [e, C]),
|
|
3412
|
+
}, [e, C]), J(() => {
|
|
3405
3413
|
j7(l.current, t) || (l.current = t, C());
|
|
3406
|
-
}, [t, C]),
|
|
3414
|
+
}, [t, C]), J(() => {
|
|
3407
3415
|
if (P7() && i) {
|
|
3408
3416
|
v9.globalOptions = i9.globalOptions;
|
|
3409
3417
|
const a = v9(i, o.current, l.current);
|
|
3410
|
-
return
|
|
3418
|
+
return c(a), () => a.destroy();
|
|
3411
3419
|
} else
|
|
3412
|
-
|
|
3413
|
-
}, [i,
|
|
3420
|
+
c(void 0);
|
|
3421
|
+
}, [i, c]), [s, r];
|
|
3414
3422
|
}
|
|
3415
3423
|
i9.globalOptions = void 0;
|
|
3416
3424
|
const _8 = "_group_6ffes_1", b8 = "_leadingElementSlot_6ffes_7", x8 = "_divider_6ffes_14", M8 = "_large_6ffes_23", y8 = "_medium_6ffes_27", H8 = "_small_6ffes_31", Z8 = "_xsmall_6ffes_35", V8 = "_leadingSlot_6ffes_39", I8 = "_chipList_6ffes_45", B8 = "_selection_6ffes_53", R8 = "_emblaWrapper_6ffes_58", k8 = "_emblaViewport_6ffes_64", S8 = "_emblaContainer_6ffes_68", A8 = "_emblaSlide_6ffes_73", H1 = {
|
|
@@ -3435,18 +3443,18 @@ function Wr({
|
|
|
3435
3443
|
leadingElementSlot: o,
|
|
3436
3444
|
size: l = "medium",
|
|
3437
3445
|
gradient: r = !1,
|
|
3438
|
-
customStyle:
|
|
3446
|
+
customStyle: c,
|
|
3439
3447
|
children: i
|
|
3440
3448
|
}) {
|
|
3441
|
-
const [
|
|
3449
|
+
const [s, C] = i9({
|
|
3442
3450
|
dragFree: !0,
|
|
3443
3451
|
containScroll: "keepSnaps"
|
|
3444
3452
|
}), [a, f] = q(!1), [d, u] = q(r && e === "suggestion");
|
|
3445
|
-
return
|
|
3453
|
+
return J(() => {
|
|
3446
3454
|
if (!C || !r || e !== "suggestion") return;
|
|
3447
3455
|
const v = () => {
|
|
3448
|
-
const h = C.canScrollNext() || C.canScrollPrev(),
|
|
3449
|
-
f(h &&
|
|
3456
|
+
const h = C.canScrollNext() || C.canScrollPrev(), w = C.scrollProgress();
|
|
3457
|
+
f(h && w > 0.01), u(h && w < 0.99);
|
|
3450
3458
|
};
|
|
3451
3459
|
return C.on("scroll", v), C.on("reInit", v), v(), () => {
|
|
3452
3460
|
C.off("scroll", v), C.off("reInit", v);
|
|
@@ -3456,7 +3464,7 @@ function Wr({
|
|
|
3456
3464
|
{
|
|
3457
3465
|
"data-idb-component": !0,
|
|
3458
3466
|
className: [H1.group, H1[l], H1[e]].filter(Boolean).join(" "),
|
|
3459
|
-
style:
|
|
3467
|
+
style: c,
|
|
3460
3468
|
children: [
|
|
3461
3469
|
o ? /* @__PURE__ */ p(S1, { children: [
|
|
3462
3470
|
/* @__PURE__ */ n("span", { className: H1.leadingElementSlot, children: o }),
|
|
@@ -3469,7 +3477,7 @@ function Wr({
|
|
|
3469
3477
|
className: H1.emblaWrapper,
|
|
3470
3478
|
"data-gradient-left": r && a ? "" : void 0,
|
|
3471
3479
|
"data-gradient-right": r && d ? "" : void 0,
|
|
3472
|
-
children: /* @__PURE__ */ n("div", { ref:
|
|
3480
|
+
children: /* @__PURE__ */ n("div", { ref: s, className: H1.emblaViewport, children: /* @__PURE__ */ n("div", { className: H1.emblaContainer, children: $1.map(i, (v) => /* @__PURE__ */ n("div", { className: H1.emblaSlide, children: v })) }) })
|
|
3473
3481
|
}
|
|
3474
3482
|
) : /* @__PURE__ */ n("div", { className: H1.chipList, children: i })
|
|
3475
3483
|
]
|
|
@@ -3487,46 +3495,46 @@ function qr({
|
|
|
3487
3495
|
selectedValue: o,
|
|
3488
3496
|
dropdownType: l = "basic",
|
|
3489
3497
|
dropdownAlign: r = "left",
|
|
3490
|
-
dropdownWidth:
|
|
3498
|
+
dropdownWidth: c,
|
|
3491
3499
|
showSelectedLabel: i = !1,
|
|
3492
|
-
variant:
|
|
3500
|
+
variant: s,
|
|
3493
3501
|
size: C,
|
|
3494
3502
|
disabled: a,
|
|
3495
3503
|
selected: f,
|
|
3496
3504
|
children: d,
|
|
3497
3505
|
...u
|
|
3498
3506
|
}) {
|
|
3499
|
-
const v = i && o ? e.find((g) => g.value === o) : null, [h,
|
|
3500
|
-
return
|
|
3507
|
+
const v = i && o ? e.find((g) => g.value === o) : null, [h, w] = q(!1), L = F(null);
|
|
3508
|
+
return J(() => {
|
|
3501
3509
|
if (!h) return;
|
|
3502
|
-
const g = (
|
|
3503
|
-
|
|
3504
|
-
},
|
|
3505
|
-
|
|
3510
|
+
const g = (_) => {
|
|
3511
|
+
L.current?.contains(_.target) || w(!1);
|
|
3512
|
+
}, m = (_) => {
|
|
3513
|
+
_.key === "Escape" && w(!1);
|
|
3506
3514
|
};
|
|
3507
|
-
return document.addEventListener("click", g), document.addEventListener("keydown",
|
|
3508
|
-
document.removeEventListener("click", g), document.removeEventListener("keydown",
|
|
3515
|
+
return document.addEventListener("click", g), document.addEventListener("keydown", m), () => {
|
|
3516
|
+
document.removeEventListener("click", g), document.removeEventListener("keydown", m);
|
|
3509
3517
|
};
|
|
3510
|
-
}, [h]), /* @__PURE__ */ n("div", { ref:
|
|
3518
|
+
}, [h]), /* @__PURE__ */ n("div", { ref: L, style: { display: "inline-flex" }, children: /* @__PURE__ */ n(
|
|
3511
3519
|
y7,
|
|
3512
3520
|
{
|
|
3513
3521
|
type: l,
|
|
3514
3522
|
align: r,
|
|
3515
3523
|
options: e,
|
|
3516
3524
|
onSelect: (g) => {
|
|
3517
|
-
t(o && g.value === o ? void 0 : g),
|
|
3525
|
+
t(o && g.value === o ? void 0 : g), w(!1);
|
|
3518
3526
|
},
|
|
3519
3527
|
selectedValue: o,
|
|
3520
3528
|
disabled: a,
|
|
3521
|
-
width:
|
|
3529
|
+
width: c,
|
|
3522
3530
|
children: /* @__PURE__ */ n(
|
|
3523
3531
|
F7,
|
|
3524
3532
|
{
|
|
3525
|
-
variant:
|
|
3533
|
+
variant: s,
|
|
3526
3534
|
size: C,
|
|
3527
3535
|
selected: f ?? !!o,
|
|
3528
3536
|
disabled: a,
|
|
3529
|
-
onClick: () => !a &&
|
|
3537
|
+
onClick: () => !a && w((g) => !g),
|
|
3530
3538
|
trailingSlot: /* @__PURE__ */ n(
|
|
3531
3539
|
"svg",
|
|
3532
3540
|
{
|
|
@@ -3579,25 +3587,25 @@ function Gr({
|
|
|
3579
3587
|
size: o = "medium",
|
|
3580
3588
|
verticalPadding: l = !1,
|
|
3581
3589
|
customStyle: r,
|
|
3582
|
-
children:
|
|
3590
|
+
children: c
|
|
3583
3591
|
}) {
|
|
3584
|
-
const [i,
|
|
3592
|
+
const [i, s] = i9({
|
|
3585
3593
|
dragFree: !0,
|
|
3586
3594
|
containScroll: "keepSnaps"
|
|
3587
3595
|
}), [C, a] = q(!1), [f, d] = q(!l);
|
|
3588
|
-
return
|
|
3589
|
-
if (!
|
|
3596
|
+
return J(() => {
|
|
3597
|
+
if (!s || l) {
|
|
3590
3598
|
a(!1), d(!l);
|
|
3591
3599
|
return;
|
|
3592
3600
|
}
|
|
3593
3601
|
const u = () => {
|
|
3594
|
-
const v =
|
|
3602
|
+
const v = s.canScrollNext() || s.canScrollPrev(), h = s.scrollProgress();
|
|
3595
3603
|
a(v && h > 0.01), d(v && h < 0.99);
|
|
3596
3604
|
};
|
|
3597
|
-
return
|
|
3598
|
-
|
|
3605
|
+
return s.on("scroll", u), s.on("reInit", u), u(), () => {
|
|
3606
|
+
s.off("scroll", u), s.off("reInit", u);
|
|
3599
3607
|
};
|
|
3600
|
-
}, [
|
|
3608
|
+
}, [s, l]), /* @__PURE__ */ p(
|
|
3601
3609
|
"div",
|
|
3602
3610
|
{
|
|
3603
3611
|
"data-idb-component": !0,
|
|
@@ -3618,7 +3626,7 @@ function Gr({
|
|
|
3618
3626
|
className: I1.emblaWrapper,
|
|
3619
3627
|
"data-gradient-left": !l && C ? "" : void 0,
|
|
3620
3628
|
"data-gradient-right": !l && f ? "" : void 0,
|
|
3621
|
-
children: /* @__PURE__ */ n("div", { ref: i, className: I1.emblaViewport, children: /* @__PURE__ */ n("div", { className: I1.emblaContainer, children: $1.map(
|
|
3629
|
+
children: /* @__PURE__ */ n("div", { ref: i, className: I1.emblaViewport, children: /* @__PURE__ */ n("div", { className: I1.emblaContainer, children: $1.map(c, (u) => /* @__PURE__ */ n("div", { className: I1.emblaSlide, children: u })) }) })
|
|
3622
3630
|
}
|
|
3623
3631
|
),
|
|
3624
3632
|
t ? /* @__PURE__ */ n("span", { className: I1.trailingElementSlot, children: t }) : null
|
|
@@ -3654,96 +3662,96 @@ function Ur({
|
|
|
3654
3662
|
onChange: o,
|
|
3655
3663
|
size: l = "medium",
|
|
3656
3664
|
resize: r = "hug",
|
|
3657
|
-
horizontalPadding:
|
|
3665
|
+
horizontalPadding: c = !1,
|
|
3658
3666
|
trailingIcon: i,
|
|
3659
|
-
label:
|
|
3667
|
+
label: s,
|
|
3660
3668
|
customStyle: C
|
|
3661
3669
|
}) {
|
|
3662
3670
|
const a = F(null), f = F(/* @__PURE__ */ new Map()), d = F(e);
|
|
3663
3671
|
d.current = e;
|
|
3664
|
-
const u = F(!1), v = F(null), h = F(null),
|
|
3665
|
-
|
|
3666
|
-
const
|
|
3667
|
-
|
|
3668
|
-
const [g,
|
|
3672
|
+
const u = F(!1), v = F(null), h = F(null), w = F(t);
|
|
3673
|
+
w.current = t;
|
|
3674
|
+
const L = F(r);
|
|
3675
|
+
L.current = r;
|
|
3676
|
+
const [g, m] = q({
|
|
3669
3677
|
opacity: 0
|
|
3670
|
-
}), [
|
|
3678
|
+
}), [_, H] = q(!1), [k, x] = i9({
|
|
3671
3679
|
dragFree: !0,
|
|
3672
3680
|
containScroll: "keepSnaps",
|
|
3673
3681
|
align: "start",
|
|
3674
3682
|
active: !1
|
|
3675
|
-
}),
|
|
3676
|
-
const y = f.current.get(t),
|
|
3677
|
-
if (!y || !
|
|
3678
|
-
const T = y.firstElementChild ?? y, D = (T.firstElementChild ?? T).getBoundingClientRect(), O =
|
|
3679
|
-
|
|
3683
|
+
}), A = e.findIndex((y) => y.value === t) !== -1 ? t : e.find((y) => !y.disabled)?.value ?? null, M = e.map((y) => `${y.value}:${y.numberBadge ?? ""}`).join(","), b = G(() => {
|
|
3684
|
+
const y = f.current.get(t), Z = a.current;
|
|
3685
|
+
if (!y || !Z) return;
|
|
3686
|
+
const T = y.firstElementChild ?? y, D = (T.firstElementChild ?? T).getBoundingClientRect(), O = Z.getBoundingClientRect();
|
|
3687
|
+
m({
|
|
3680
3688
|
// position: labelText 기준(= labelWrapper 시작점), width: labelWrapper 기준 → numberBadge 포함
|
|
3681
3689
|
width: T.offsetWidth,
|
|
3682
3690
|
transform: `translateX(${D.left - O.left}px)`,
|
|
3683
3691
|
opacity: 1
|
|
3684
3692
|
});
|
|
3685
|
-
}, [t]),
|
|
3693
|
+
}, [t]), B = G(() => {
|
|
3686
3694
|
if (!x) return;
|
|
3687
|
-
const y = x.containerNode(),
|
|
3688
|
-
if (!y || !
|
|
3695
|
+
const y = x.containerNode(), Z = y?.parentElement;
|
|
3696
|
+
if (!y || !Z) return;
|
|
3689
3697
|
let T;
|
|
3690
|
-
if (
|
|
3691
|
-
const
|
|
3698
|
+
if (L.current === "fill") {
|
|
3699
|
+
const N = parseFloat(getComputedStyle(y).columnGap) || 0;
|
|
3692
3700
|
T = d.current.reduce((O, U) => {
|
|
3693
3701
|
const h1 = f.current.get(U.value)?.firstElementChild, l1 = h1?.firstElementChild;
|
|
3694
3702
|
return O + (l1 ? l1.scrollWidth : h1 ? h1.scrollWidth : 0);
|
|
3695
|
-
}, 0) +
|
|
3703
|
+
}, 0) + N * Math.max(0, d.current.length - 1) > Z.clientWidth;
|
|
3696
3704
|
} else
|
|
3697
|
-
T = y.scrollWidth >
|
|
3698
|
-
T !== v.current && (v.current = T,
|
|
3705
|
+
T = y.scrollWidth > Z.clientWidth;
|
|
3706
|
+
T !== v.current && (v.current = T, H(T), x.reInit({
|
|
3699
3707
|
active: T,
|
|
3700
3708
|
dragFree: !0,
|
|
3701
3709
|
containScroll: "keepSnaps",
|
|
3702
3710
|
align: "start"
|
|
3703
3711
|
}), T && (h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
|
|
3704
3712
|
h.current = null;
|
|
3705
|
-
const
|
|
3706
|
-
(D) => D.value ===
|
|
3713
|
+
const N = d.current.findIndex(
|
|
3714
|
+
(D) => D.value === w.current
|
|
3707
3715
|
);
|
|
3708
|
-
|
|
3716
|
+
N !== -1 && x.scrollTo(N, !0);
|
|
3709
3717
|
})));
|
|
3710
3718
|
}, [x]);
|
|
3711
3719
|
o9(() => {
|
|
3712
|
-
|
|
3720
|
+
b();
|
|
3713
3721
|
const y = a.current;
|
|
3714
3722
|
if (!y) return;
|
|
3715
|
-
const
|
|
3716
|
-
return
|
|
3717
|
-
}, [l, r,
|
|
3723
|
+
const Z = new ResizeObserver(b);
|
|
3724
|
+
return Z.observe(y), () => Z.disconnect();
|
|
3725
|
+
}, [l, r, M, b]), J(() => {
|
|
3718
3726
|
if (!x) return;
|
|
3719
|
-
|
|
3720
|
-
const y = new ResizeObserver(
|
|
3727
|
+
B();
|
|
3728
|
+
const y = new ResizeObserver(B);
|
|
3721
3729
|
return a.current && y.observe(a.current), () => {
|
|
3722
3730
|
h.current !== null && cancelAnimationFrame(h.current), v.current = null, y.disconnect();
|
|
3723
3731
|
};
|
|
3724
|
-
}, [x,
|
|
3732
|
+
}, [x, B, M]), J(() => {
|
|
3725
3733
|
if (!x) return;
|
|
3726
|
-
const y = () => requestAnimationFrame(
|
|
3727
|
-
return x.on("scroll", y), x.on("reInit",
|
|
3728
|
-
x.off("scroll", y), x.off("reInit",
|
|
3734
|
+
const y = () => requestAnimationFrame(b), Z = () => requestAnimationFrame(b);
|
|
3735
|
+
return x.on("scroll", y), x.on("reInit", Z), () => {
|
|
3736
|
+
x.off("scroll", y), x.off("reInit", Z);
|
|
3729
3737
|
};
|
|
3730
|
-
}, [x,
|
|
3738
|
+
}, [x, b]), J(() => {
|
|
3731
3739
|
if (!x || !v.current) return;
|
|
3732
|
-
const y = d.current.findIndex((
|
|
3740
|
+
const y = d.current.findIndex((Z) => Z.value === t);
|
|
3733
3741
|
y !== -1 && x.scrollTo(y);
|
|
3734
|
-
}, [x, t]),
|
|
3742
|
+
}, [x, t]), J(() => {
|
|
3735
3743
|
u.current && (f.current.get(t)?.focus(), u.current = !1);
|
|
3736
3744
|
}, [t]);
|
|
3737
|
-
const
|
|
3745
|
+
const S = G(
|
|
3738
3746
|
(y) => {
|
|
3739
3747
|
if (!["ArrowLeft", "ArrowRight", "Home", "End"].includes(y.key)) return;
|
|
3740
3748
|
y.preventDefault();
|
|
3741
|
-
const
|
|
3749
|
+
const Z = d.current.filter((O) => !O.disabled), T = Z.findIndex(
|
|
3742
3750
|
(O) => O.value === t
|
|
3743
3751
|
);
|
|
3744
|
-
let
|
|
3745
|
-
T === -1 ?
|
|
3746
|
-
const D =
|
|
3752
|
+
let N;
|
|
3753
|
+
T === -1 ? N = y.key === "ArrowLeft" || y.key === "End" ? Z.length - 1 : 0 : y.key === "ArrowRight" ? N = (T + 1) % Z.length : y.key === "ArrowLeft" ? N = (T - 1 + Z.length) % Z.length : y.key === "Home" ? N = 0 : N = Z.length - 1;
|
|
3754
|
+
const D = Z[N];
|
|
3747
3755
|
D && D.value !== t && (u.current = !0, o?.(D.value));
|
|
3748
3756
|
},
|
|
3749
3757
|
[t, o]
|
|
@@ -3754,18 +3762,18 @@ function Ur({
|
|
|
3754
3762
|
ref: a,
|
|
3755
3763
|
"data-idb-component": !0,
|
|
3756
3764
|
role: "tablist",
|
|
3757
|
-
"aria-label":
|
|
3765
|
+
"aria-label": s,
|
|
3758
3766
|
className: e1(
|
|
3759
3767
|
o1.tab,
|
|
3760
3768
|
o1[l],
|
|
3761
3769
|
r === "fill" && o1.fill,
|
|
3762
|
-
|
|
3763
|
-
|
|
3770
|
+
_ && o1.overflowing,
|
|
3771
|
+
c && o1.horizontalPadding
|
|
3764
3772
|
),
|
|
3765
3773
|
style: C,
|
|
3766
3774
|
children: [
|
|
3767
|
-
/* @__PURE__ */ n("div", { className: o1.emblaWrapper, children: /* @__PURE__ */ n("div", { ref:
|
|
3768
|
-
const
|
|
3775
|
+
/* @__PURE__ */ n("div", { className: o1.emblaWrapper, children: /* @__PURE__ */ n("div", { ref: k, className: o1.emblaViewport, children: /* @__PURE__ */ n("div", { className: o1.emblaContainer, children: e.map((y) => {
|
|
3776
|
+
const Z = y.value === t, T = y.numberBadge !== void 0 && y.numberBadge > 0, N = y.badge && !T;
|
|
3769
3777
|
return /* @__PURE__ */ n(
|
|
3770
3778
|
"button",
|
|
3771
3779
|
{
|
|
@@ -3776,19 +3784,19 @@ function Ur({
|
|
|
3776
3784
|
},
|
|
3777
3785
|
className: e1(
|
|
3778
3786
|
o1.tabItem,
|
|
3779
|
-
|
|
3787
|
+
Z && o1.selected,
|
|
3780
3788
|
y.disabled && o1.disabled
|
|
3781
3789
|
),
|
|
3782
3790
|
disabled: y.disabled,
|
|
3783
|
-
"aria-selected":
|
|
3784
|
-
tabIndex: y.value ===
|
|
3791
|
+
"aria-selected": Z,
|
|
3792
|
+
tabIndex: y.value === A ? 0 : -1,
|
|
3785
3793
|
onClick: () => {
|
|
3786
3794
|
y.value !== t && o?.(y.value);
|
|
3787
3795
|
},
|
|
3788
|
-
onKeyDown:
|
|
3796
|
+
onKeyDown: S,
|
|
3789
3797
|
children: /* @__PURE__ */ p("span", { className: o1.labelWrapper, children: [
|
|
3790
3798
|
/* @__PURE__ */ n("span", { className: o1.labelText, children: y.label }),
|
|
3791
|
-
|
|
3799
|
+
N && /* @__PURE__ */ n("span", { className: o1.dotBadge, "aria-hidden": !0 }),
|
|
3792
3800
|
T && /* @__PURE__ */ n(
|
|
3793
3801
|
"span",
|
|
3794
3802
|
{
|
|
@@ -3811,7 +3819,7 @@ function Ur({
|
|
|
3811
3819
|
}
|
|
3812
3820
|
);
|
|
3813
3821
|
}
|
|
3814
|
-
const me = "
|
|
3822
|
+
const me = "_segmentedControl_nwt3m_2", we = "_basic_nwt3m_9", ve = "_fill_nwt3m_15", Le = "_outlined_nwt3m_19", _e = "_icon_nwt3m_25", be = "_segment_nwt3m_2", xe = "_iconSlot_nwt3m_101", Me = "_label_nwt3m_107", ye = "_indicator_nwt3m_114", He = "_indicatorBg_nwt3m_139", Ze = "_indicatorFill_nwt3m_153", Ve = "_indicatorOutlined_nwt3m_158", Ie = "_small_nwt3m_164", Be = "_medium_nwt3m_177", Re = "_large_nwt3m_190", ke = "_selected_nwt3m_204", Se = "_disabled_nwt3m_225", Ae = "_withIcon_nwt3m_281", p1 = {
|
|
3815
3823
|
segmentedControl: me,
|
|
3816
3824
|
basic: we,
|
|
3817
3825
|
fill: ve,
|
|
@@ -3835,43 +3843,44 @@ function Qr({
|
|
|
3835
3843
|
variant: e = "basic",
|
|
3836
3844
|
type: t = "fill",
|
|
3837
3845
|
size: o = "medium",
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3846
|
+
layout: l,
|
|
3847
|
+
icon: r = !1,
|
|
3848
|
+
label: c,
|
|
3849
|
+
items: i,
|
|
3850
|
+
value: s,
|
|
3851
|
+
onChange: C,
|
|
3852
|
+
customStyle: a
|
|
3844
3853
|
}) {
|
|
3845
|
-
const
|
|
3846
|
-
|
|
3847
|
-
const
|
|
3854
|
+
const f = l ?? (e === "icon" ? "hug" : "fill"), d = r || e === "icon", u = F(null), v = F(/* @__PURE__ */ new Map()), h = F(i);
|
|
3855
|
+
h.current = i;
|
|
3856
|
+
const w = F(!1), [L, g] = q({
|
|
3848
3857
|
opacity: 0
|
|
3849
3858
|
});
|
|
3850
|
-
process.env.NODE_ENV !== "production" && e === "icon" &&
|
|
3851
|
-
|
|
3852
|
-
`[SegmentedControl] item "${
|
|
3859
|
+
process.env.NODE_ENV !== "production" && e === "icon" && i.forEach((M) => {
|
|
3860
|
+
M.ariaLabel || console.warn(
|
|
3861
|
+
`[SegmentedControl] item "${M.value}" is missing ariaLabel for variant="icon".`
|
|
3853
3862
|
);
|
|
3854
3863
|
});
|
|
3855
|
-
const
|
|
3864
|
+
const m = i.findIndex((M) => M.value === s), _ = m !== -1, H = _ && m === 0, k = _ && m === i.length - 1, x = t === "outlined" ? H && k ? "single" : H ? "first" : k ? "last" : "middle" : void 0, V = _ ? s : i.find((M) => !M.disabled)?.value ?? null, I = i.map((M) => M.value).join(",");
|
|
3856
3865
|
o9(() => {
|
|
3857
|
-
const
|
|
3858
|
-
const
|
|
3859
|
-
|
|
3860
|
-
width:
|
|
3861
|
-
transform: `translateX(${
|
|
3866
|
+
const M = () => {
|
|
3867
|
+
const S = v.current.get(s);
|
|
3868
|
+
S && g({
|
|
3869
|
+
width: S.offsetWidth,
|
|
3870
|
+
transform: `translateX(${S.offsetLeft}px)`,
|
|
3862
3871
|
opacity: 1
|
|
3863
3872
|
});
|
|
3864
3873
|
};
|
|
3865
|
-
|
|
3866
|
-
const
|
|
3867
|
-
if (!
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3870
|
-
}, [
|
|
3871
|
-
|
|
3872
|
-
}, [
|
|
3873
|
-
const
|
|
3874
|
-
(
|
|
3874
|
+
M();
|
|
3875
|
+
const b = u.current;
|
|
3876
|
+
if (!b) return;
|
|
3877
|
+
const B = new ResizeObserver(M);
|
|
3878
|
+
return B.observe(b), () => B.disconnect();
|
|
3879
|
+
}, [s, e, t, o, I]), J(() => {
|
|
3880
|
+
w.current && (v.current.get(s)?.focus(), w.current = !1);
|
|
3881
|
+
}, [s]);
|
|
3882
|
+
const A = G(
|
|
3883
|
+
(M) => {
|
|
3875
3884
|
if (![
|
|
3876
3885
|
"ArrowLeft",
|
|
3877
3886
|
"ArrowRight",
|
|
@@ -3879,84 +3888,85 @@ function Qr({
|
|
|
3879
3888
|
"ArrowDown",
|
|
3880
3889
|
"Home",
|
|
3881
3890
|
"End"
|
|
3882
|
-
].includes(
|
|
3891
|
+
].includes(M.key))
|
|
3883
3892
|
return;
|
|
3884
|
-
|
|
3885
|
-
const
|
|
3886
|
-
(
|
|
3893
|
+
M.preventDefault();
|
|
3894
|
+
const b = h.current.filter((Z) => !Z.disabled), B = b.findIndex(
|
|
3895
|
+
(Z) => Z.value === s
|
|
3887
3896
|
);
|
|
3888
|
-
let
|
|
3889
|
-
|
|
3890
|
-
const
|
|
3891
|
-
|
|
3897
|
+
let S;
|
|
3898
|
+
B === -1 ? S = M.key === "ArrowLeft" || M.key === "ArrowUp" || M.key === "End" ? b.length - 1 : 0 : M.key === "ArrowRight" || M.key === "ArrowDown" ? S = (B + 1) % b.length : M.key === "ArrowLeft" || M.key === "ArrowUp" ? S = (B - 1 + b.length) % b.length : M.key === "Home" ? S = 0 : S = b.length - 1;
|
|
3899
|
+
const y = b[S];
|
|
3900
|
+
y && y.value !== s && (w.current = !0, C?.(y.value));
|
|
3892
3901
|
},
|
|
3893
|
-
[
|
|
3902
|
+
[s, C]
|
|
3894
3903
|
);
|
|
3895
3904
|
return /* @__PURE__ */ p(
|
|
3896
3905
|
"div",
|
|
3897
3906
|
{
|
|
3898
|
-
ref:
|
|
3907
|
+
ref: u,
|
|
3899
3908
|
"data-idb-component": !0,
|
|
3909
|
+
"data-layout": f,
|
|
3900
3910
|
role: "tablist",
|
|
3901
|
-
"aria-label":
|
|
3911
|
+
"aria-label": c,
|
|
3902
3912
|
className: e1(
|
|
3903
3913
|
p1.segmentedControl,
|
|
3904
3914
|
p1[e],
|
|
3905
3915
|
p1[t],
|
|
3906
3916
|
p1[o],
|
|
3907
|
-
e === "basic" &&
|
|
3917
|
+
e === "basic" && r && p1.withIcon
|
|
3908
3918
|
),
|
|
3909
|
-
style:
|
|
3919
|
+
style: a,
|
|
3910
3920
|
children: [
|
|
3911
3921
|
t === "outlined" && /* @__PURE__ */ n(
|
|
3912
3922
|
"span",
|
|
3913
3923
|
{
|
|
3914
3924
|
"aria-hidden": !0,
|
|
3915
3925
|
className: p1.indicatorBg,
|
|
3916
|
-
style:
|
|
3926
|
+
style: L
|
|
3917
3927
|
}
|
|
3918
3928
|
),
|
|
3919
3929
|
/* @__PURE__ */ n(
|
|
3920
3930
|
"span",
|
|
3921
3931
|
{
|
|
3922
3932
|
"aria-hidden": !0,
|
|
3923
|
-
"data-position":
|
|
3933
|
+
"data-position": x,
|
|
3924
3934
|
className: e1(
|
|
3925
3935
|
p1.indicator,
|
|
3926
3936
|
t === "fill" ? p1.indicatorFill : p1.indicatorOutlined
|
|
3927
3937
|
),
|
|
3928
|
-
style:
|
|
3938
|
+
style: L
|
|
3929
3939
|
}
|
|
3930
3940
|
),
|
|
3931
|
-
|
|
3932
|
-
const
|
|
3941
|
+
i.map((M) => {
|
|
3942
|
+
const b = M.value === s;
|
|
3933
3943
|
return /* @__PURE__ */ p(
|
|
3934
3944
|
"button",
|
|
3935
3945
|
{
|
|
3936
3946
|
type: "button",
|
|
3937
3947
|
role: "tab",
|
|
3938
|
-
ref: (
|
|
3939
|
-
|
|
3948
|
+
ref: (B) => {
|
|
3949
|
+
B ? v.current.set(M.value, B) : v.current.delete(M.value);
|
|
3940
3950
|
},
|
|
3941
3951
|
className: e1(
|
|
3942
3952
|
p1.segment,
|
|
3943
|
-
|
|
3944
|
-
|
|
3953
|
+
b && p1.selected,
|
|
3954
|
+
M.disabled && p1.disabled
|
|
3945
3955
|
),
|
|
3946
|
-
disabled:
|
|
3947
|
-
"aria-selected":
|
|
3948
|
-
"aria-label": e === "icon" ?
|
|
3949
|
-
tabIndex:
|
|
3956
|
+
disabled: M.disabled,
|
|
3957
|
+
"aria-selected": b,
|
|
3958
|
+
"aria-label": e === "icon" ? M.ariaLabel : void 0,
|
|
3959
|
+
tabIndex: M.value === V ? 0 : -1,
|
|
3950
3960
|
onClick: () => {
|
|
3951
|
-
|
|
3961
|
+
M.value !== s && C?.(M.value);
|
|
3952
3962
|
},
|
|
3953
|
-
onKeyDown:
|
|
3963
|
+
onKeyDown: A,
|
|
3954
3964
|
children: [
|
|
3955
|
-
|
|
3956
|
-
e === "basic" &&
|
|
3965
|
+
d && M.icon ? /* @__PURE__ */ n("span", { className: p1.iconSlot, children: M.icon }) : null,
|
|
3966
|
+
e === "basic" && M.label ? /* @__PURE__ */ n("span", { className: p1.label, children: M.label }) : null
|
|
3957
3967
|
]
|
|
3958
3968
|
},
|
|
3959
|
-
|
|
3969
|
+
M.value
|
|
3960
3970
|
);
|
|
3961
3971
|
})
|
|
3962
3972
|
]
|
|
@@ -4018,9 +4028,9 @@ function Xr({
|
|
|
4018
4028
|
selectable: o = !1,
|
|
4019
4029
|
interactive: l = !1,
|
|
4020
4030
|
loading: r = !1,
|
|
4021
|
-
skeletonRowCount:
|
|
4031
|
+
skeletonRowCount: c = 5,
|
|
4022
4032
|
emptyContent: i,
|
|
4023
|
-
emptyTitle:
|
|
4033
|
+
emptyTitle: s,
|
|
4024
4034
|
emptyDescription: C,
|
|
4025
4035
|
customStyle: a,
|
|
4026
4036
|
className: f,
|
|
@@ -4028,41 +4038,41 @@ function Xr({
|
|
|
4028
4038
|
accordion: u = !1,
|
|
4029
4039
|
canExpand: v,
|
|
4030
4040
|
renderAccordionContent: h,
|
|
4031
|
-
maxRows:
|
|
4041
|
+
maxRows: w
|
|
4032
4042
|
}) {
|
|
4033
|
-
const [
|
|
4034
|
-
|
|
4043
|
+
const [L, g] = q(/* @__PURE__ */ new Set()), [m, _] = q(/* @__PURE__ */ new Set()), H = e.getRowModel().rows.map((b) => b.id).join(",");
|
|
4044
|
+
J(() => {
|
|
4035
4045
|
if (!u) return;
|
|
4036
|
-
const
|
|
4037
|
-
g((
|
|
4038
|
-
const
|
|
4039
|
-
return
|
|
4040
|
-
}),
|
|
4041
|
-
const
|
|
4042
|
-
return
|
|
4046
|
+
const b = new Set(H.split(",").filter(Boolean));
|
|
4047
|
+
g((B) => {
|
|
4048
|
+
const S = new Set([...B].filter((y) => b.has(y)));
|
|
4049
|
+
return S.size === B.size ? B : S;
|
|
4050
|
+
}), _((B) => {
|
|
4051
|
+
const S = new Set([...B].filter((y) => b.has(y)));
|
|
4052
|
+
return S.size === B.size ? B : S;
|
|
4043
4053
|
});
|
|
4044
|
-
}, [u,
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
const
|
|
4048
|
-
return
|
|
4054
|
+
}, [u, H]);
|
|
4055
|
+
const k = (b) => {
|
|
4056
|
+
_((B) => new Set(B).add(b)), g((B) => {
|
|
4057
|
+
const S = new Set(B);
|
|
4058
|
+
return S.has(b) ? S.delete(b) : S.add(b), S;
|
|
4049
4059
|
});
|
|
4050
|
-
}, x = e.getVisibleLeafColumns(),
|
|
4060
|
+
}, x = e.getVisibleLeafColumns(), V = x.length + (o ? 1 : 0) + (u ? 1 : 0), I = () => {
|
|
4051
4061
|
if (i != null) return i;
|
|
4052
|
-
if (
|
|
4062
|
+
if (s != null || C != null)
|
|
4053
4063
|
return /* @__PURE__ */ p("div", { className: E.emptyState, children: [
|
|
4054
|
-
|
|
4064
|
+
s && /* @__PURE__ */ n("span", { className: E.emptyTitle, children: s }),
|
|
4055
4065
|
C && /* @__PURE__ */ n("span", { className: E.emptyDescription, children: C })
|
|
4056
4066
|
] });
|
|
4057
|
-
},
|
|
4067
|
+
}, A = [E.tableWrapper, E[t], f ?? ""].filter(Boolean).join(" "), M = {
|
|
4058
4068
|
...a,
|
|
4059
|
-
...
|
|
4060
|
-
maxHeight: pt +
|
|
4069
|
+
...w != null && {
|
|
4070
|
+
maxHeight: pt + w * ft,
|
|
4061
4071
|
overflowY: "auto"
|
|
4062
4072
|
}
|
|
4063
4073
|
};
|
|
4064
|
-
return /* @__PURE__ */ n("div", { "data-idb-component": !0, className:
|
|
4065
|
-
/* @__PURE__ */ n("thead", { className: E.thead, children: e.getHeaderGroups().map((
|
|
4074
|
+
return /* @__PURE__ */ n("div", { "data-idb-component": !0, className: A, style: M, children: /* @__PURE__ */ p("table", { className: E.table, children: [
|
|
4075
|
+
/* @__PURE__ */ n("thead", { className: E.thead, children: e.getHeaderGroups().map((b) => /* @__PURE__ */ p("tr", { className: E.tr, children: [
|
|
4066
4076
|
u && /* @__PURE__ */ n("th", { className: `${E.th} ${E.accordionCell}` }),
|
|
4067
4077
|
o && /* @__PURE__ */ n("th", { className: `${E.th} ${E.checkboxCell}`, children: /* @__PURE__ */ n(
|
|
4068
4078
|
n2,
|
|
@@ -4074,34 +4084,34 @@ function Xr({
|
|
|
4074
4084
|
onChange: () => e.toggleAllRowsSelected(!e.getIsAllRowsSelected())
|
|
4075
4085
|
}
|
|
4076
4086
|
) }),
|
|
4077
|
-
|
|
4087
|
+
b.headers.map((B) => /* @__PURE__ */ n(
|
|
4078
4088
|
"th",
|
|
4079
4089
|
{
|
|
4080
4090
|
className: [
|
|
4081
4091
|
E.th,
|
|
4082
|
-
|
|
4092
|
+
B.column.getCanSort() ? E.sortable : ""
|
|
4083
4093
|
].filter(Boolean).join(" "),
|
|
4084
|
-
onClick:
|
|
4085
|
-
style: { width:
|
|
4086
|
-
children:
|
|
4087
|
-
|
|
4088
|
-
|
|
4094
|
+
onClick: B.column.getToggleSortingHandler(),
|
|
4095
|
+
style: { width: B.getSize() },
|
|
4096
|
+
children: B.isPlaceholder ? null : u2(
|
|
4097
|
+
B.column.columnDef.header,
|
|
4098
|
+
B.getContext()
|
|
4089
4099
|
)
|
|
4090
4100
|
},
|
|
4091
|
-
|
|
4101
|
+
B.id
|
|
4092
4102
|
))
|
|
4093
|
-
] },
|
|
4094
|
-
/* @__PURE__ */ n("tbody", { className: E.tbody, children: r ? Array.from({ length:
|
|
4103
|
+
] }, b.id)) }),
|
|
4104
|
+
/* @__PURE__ */ n("tbody", { className: E.tbody, children: r ? Array.from({ length: c }, (b, B) => /* @__PURE__ */ p("tr", { className: E.tr, children: [
|
|
4095
4105
|
u && /* @__PURE__ */ n("td", { className: `${E.td} ${E.accordionCell}` }),
|
|
4096
4106
|
o && /* @__PURE__ */ n("td", { className: `${E.td} ${E.checkboxCell}`, children: /* @__PURE__ */ n("span", { className: E.skeletonCheckbox }) }),
|
|
4097
|
-
x.map((
|
|
4098
|
-
] }, `skeleton-${
|
|
4099
|
-
const
|
|
4107
|
+
x.map((S) => /* @__PURE__ */ n("td", { className: E.td, children: /* @__PURE__ */ n("span", { className: E.skeleton }) }, S.id))
|
|
4108
|
+
] }, `skeleton-${B}`)) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { colSpan: V, className: E.stateCell, children: I() }) }) : e.getRowModel().rows.map((b) => {
|
|
4109
|
+
const B = b.getIsSelected(), S = b.getCanSelect(), y = !!d || o && S, Z = L.has(b.id), T = m.has(b.id), N = u && (v ? v(b) : !!h), D = N && T && h ? h(b) : null, O = [
|
|
4100
4110
|
E.tr,
|
|
4101
4111
|
l || d ? E.interactiveRow : "",
|
|
4102
|
-
o &&
|
|
4103
|
-
|
|
4104
|
-
|
|
4112
|
+
o && S && !l && !d ? E.clickableRow : "",
|
|
4113
|
+
B ? E.selectedRow : "",
|
|
4114
|
+
N && Z ? E.expandedRow : ""
|
|
4105
4115
|
].filter(Boolean).join(" ");
|
|
4106
4116
|
return /* @__PURE__ */ p(O2, { children: [
|
|
4107
4117
|
/* @__PURE__ */ p(
|
|
@@ -4109,20 +4119,20 @@ function Xr({
|
|
|
4109
4119
|
{
|
|
4110
4120
|
className: O,
|
|
4111
4121
|
tabIndex: l || d ? 0 : void 0,
|
|
4112
|
-
onClick: y ? () => d ? d(
|
|
4122
|
+
onClick: y ? () => d ? d(b) : b.toggleSelected() : void 0,
|
|
4113
4123
|
children: [
|
|
4114
|
-
u && /* @__PURE__ */ n("td", { className: `${E.td} ${E.accordionCell}`, children:
|
|
4124
|
+
u && /* @__PURE__ */ n("td", { className: `${E.td} ${E.accordionCell}`, children: N && /* @__PURE__ */ n(
|
|
4115
4125
|
"button",
|
|
4116
4126
|
{
|
|
4117
4127
|
type: "button",
|
|
4118
|
-
"aria-expanded":
|
|
4119
|
-
"aria-controls": `accordion-content-${
|
|
4128
|
+
"aria-expanded": Z,
|
|
4129
|
+
"aria-controls": `accordion-content-${b.id}`,
|
|
4120
4130
|
className: [
|
|
4121
4131
|
E.accordionToggle,
|
|
4122
|
-
|
|
4132
|
+
Z ? E.accordionToggleExpanded : ""
|
|
4123
4133
|
].filter(Boolean).join(" "),
|
|
4124
4134
|
onClick: (U) => {
|
|
4125
|
-
U.stopPropagation(),
|
|
4135
|
+
U.stopPropagation(), k(b.id);
|
|
4126
4136
|
},
|
|
4127
4137
|
dangerouslySetInnerHTML: { __html: ht }
|
|
4128
4138
|
}
|
|
@@ -4132,44 +4142,44 @@ function Xr({
|
|
|
4132
4142
|
{
|
|
4133
4143
|
className: `${E.td} ${E.checkboxCell}`,
|
|
4134
4144
|
onClick: (U) => {
|
|
4135
|
-
U.stopPropagation(), !U.target.closest("label") &&
|
|
4145
|
+
U.stopPropagation(), !U.target.closest("label") && S && b.toggleSelected();
|
|
4136
4146
|
},
|
|
4137
4147
|
children: /* @__PURE__ */ n(
|
|
4138
4148
|
n2,
|
|
4139
4149
|
{
|
|
4140
4150
|
size: "small",
|
|
4141
|
-
checked:
|
|
4142
|
-
disabled: !
|
|
4143
|
-
onChange: (U) =>
|
|
4151
|
+
checked: B,
|
|
4152
|
+
disabled: !S,
|
|
4153
|
+
onChange: (U) => b.toggleSelected(U)
|
|
4144
4154
|
}
|
|
4145
4155
|
)
|
|
4146
4156
|
}
|
|
4147
4157
|
),
|
|
4148
|
-
|
|
4158
|
+
b.getVisibleCells().map((U) => /* @__PURE__ */ n("td", { className: E.td, children: u2(
|
|
4149
4159
|
U.column.columnDef.cell,
|
|
4150
4160
|
U.getContext()
|
|
4151
4161
|
) }, U.id))
|
|
4152
4162
|
]
|
|
4153
4163
|
}
|
|
4154
4164
|
),
|
|
4155
|
-
|
|
4165
|
+
N && /* @__PURE__ */ n("tr", { className: E.accordionRow, children: /* @__PURE__ */ n("td", { colSpan: V, className: E.accordionContent, children: /* @__PURE__ */ n(
|
|
4156
4166
|
"div",
|
|
4157
4167
|
{
|
|
4158
4168
|
className: [
|
|
4159
4169
|
E.accordionGrid,
|
|
4160
|
-
|
|
4170
|
+
Z ? E.accordionGridExpanded : ""
|
|
4161
4171
|
].filter(Boolean).join(" "),
|
|
4162
4172
|
children: /* @__PURE__ */ n("div", { className: E.accordionInner, children: /* @__PURE__ */ n("div", { className: E.accordionBody, children: /* @__PURE__ */ n(
|
|
4163
4173
|
"div",
|
|
4164
4174
|
{
|
|
4165
|
-
id: `accordion-content-${
|
|
4175
|
+
id: `accordion-content-${b.id}`,
|
|
4166
4176
|
className: E.accordionBodyContent,
|
|
4167
4177
|
children: D
|
|
4168
4178
|
}
|
|
4169
4179
|
) }) })
|
|
4170
4180
|
}
|
|
4171
4181
|
) }) })
|
|
4172
|
-
] },
|
|
4182
|
+
] }, b.id);
|
|
4173
4183
|
}) })
|
|
4174
4184
|
] }) });
|
|
4175
4185
|
}
|
|
@@ -4201,7 +4211,7 @@ const wt = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
4201
4211
|
<path d="M13.7496 12C13.7496 12.9665 12.9661 13.75 11.9996 13.75C11.0331 13.75 10.2496 12.9665 10.2496 12C10.2496 11.0335 11.0331 10.25 11.9996 10.25C12.9661 10.25 13.7496 11.0335 13.7496 12Z" fill="currentColor"/>
|
|
4202
4212
|
<path d="M20.4996 12C20.4996 12.9665 19.7161 13.75 18.7496 13.75C17.7831 13.75 16.9996 12.9665 16.9996 12C16.9996 11.0335 17.7831 10.25 18.7496 10.25C19.7161 10.25 20.4996 11.0335 20.4996 12Z" fill="currentColor"/>
|
|
4203
4213
|
</svg>
|
|
4204
|
-
`, _t = "_pagination_10akw_1", bt = "_withTrailingContent_10akw_11", xt = "_buttonContainer_10akw_18", Mt = "_trailingContent_10akw_22", yt = "_minimizeButtonContainer_10akw_37", Ht = "_pageList_10akw_42", Zt = "_pageButtonItem_10akw_48", Vt = "_arrowButtonContent_10akw_55", It = "_arrowButtonLabel_10akw_61", Bt = "_previousButtonLabel_10akw_65", Rt = "_nextButtonLabel_10akw_69", kt = "_ellipsis_10akw_74", St = "_minimizeText_10akw_83", At = "_skeletonPage_10akw_95", Nt = "_skeletonMinimize_10akw_111", Et = "_trailingLabel_10akw_134", Tt = "_trailingInput_10akw_139",
|
|
4214
|
+
`, _t = "_pagination_10akw_1", bt = "_withTrailingContent_10akw_11", xt = "_buttonContainer_10akw_18", Mt = "_trailingContent_10akw_22", yt = "_minimizeButtonContainer_10akw_37", Ht = "_pageList_10akw_42", Zt = "_pageButtonItem_10akw_48", Vt = "_arrowButtonContent_10akw_55", It = "_arrowButtonLabel_10akw_61", Bt = "_previousButtonLabel_10akw_65", Rt = "_nextButtonLabel_10akw_69", kt = "_ellipsis_10akw_74", St = "_minimizeText_10akw_83", At = "_skeletonPage_10akw_95", Nt = "_skeletonMinimize_10akw_111", Et = "_trailingLabel_10akw_134", Tt = "_trailingInput_10akw_139", z = {
|
|
4205
4215
|
pagination: _t,
|
|
4206
4216
|
withTrailingContent: bt,
|
|
4207
4217
|
buttonContainer: xt,
|
|
@@ -4243,8 +4253,8 @@ function Pt(e, t, o) {
|
|
|
4243
4253
|
page: i
|
|
4244
4254
|
}));
|
|
4245
4255
|
const l = Math.floor(o / 2);
|
|
4246
|
-
let r = t - l,
|
|
4247
|
-
return r < 0 && (r = 0,
|
|
4256
|
+
let r = t - l, c = r + o - 1;
|
|
4257
|
+
return r < 0 && (r = 0, c = o - 1), c >= e && (c = e - 1, r = c - o + 1), P1(r, c).map((i) => ({ type: "page", page: i }));
|
|
4248
4258
|
}
|
|
4249
4259
|
function jt(e, t, o, l) {
|
|
4250
4260
|
if (e <= 0) return [];
|
|
@@ -4253,21 +4263,21 @@ function jt(e, t, o, l) {
|
|
|
4253
4263
|
type: "page",
|
|
4254
4264
|
page: f
|
|
4255
4265
|
}));
|
|
4256
|
-
const r = $t[o] ?? 2,
|
|
4257
|
-
if (
|
|
4258
|
-
const f = Math.max(C,
|
|
4266
|
+
const r = $t[o] ?? 2, c = Dt[o] ?? 7, i = e - 1, s = t - r, C = t + r;
|
|
4267
|
+
if (s <= 1) {
|
|
4268
|
+
const f = Math.max(C, c - 1), d = P1(0, Math.min(f, i - 1)).map(
|
|
4259
4269
|
(u) => ({ type: "page", page: u })
|
|
4260
4270
|
);
|
|
4261
4271
|
return f < i - 1 && d.push({ type: "ellipsis", key: "trailing" }), d.push({ type: "page", page: i }), d;
|
|
4262
4272
|
}
|
|
4263
4273
|
if (C >= i - 1) {
|
|
4264
|
-
const f = Math.min(
|
|
4274
|
+
const f = Math.min(s, i - c + 1), d = [{ type: "page", page: 0 }];
|
|
4265
4275
|
return f > 1 && d.push({ type: "ellipsis", key: "leading" }), P1(Math.max(f, 1), i).forEach((u) => {
|
|
4266
4276
|
d.push({ type: "page", page: u });
|
|
4267
4277
|
}), d;
|
|
4268
4278
|
}
|
|
4269
4279
|
const a = [{ type: "page", page: 0 }];
|
|
4270
|
-
return a.push({ type: "ellipsis", key: "leading" }), P1(
|
|
4280
|
+
return a.push({ type: "ellipsis", key: "leading" }), P1(s, C).forEach(
|
|
4271
4281
|
(f) => a.push({ type: "page", page: f })
|
|
4272
4282
|
), a.push({ type: "ellipsis", key: "trailing" }), a.push({ type: "page", page: i }), a;
|
|
4273
4283
|
}
|
|
@@ -4309,9 +4319,9 @@ function Yr({
|
|
|
4309
4319
|
onPageChange: o,
|
|
4310
4320
|
canPreviousPage: l,
|
|
4311
4321
|
canNextPage: r,
|
|
4312
|
-
onPreviousPage:
|
|
4322
|
+
onPreviousPage: c,
|
|
4313
4323
|
onNextPage: i,
|
|
4314
|
-
variant:
|
|
4324
|
+
variant: s,
|
|
4315
4325
|
boundary: C = !0,
|
|
4316
4326
|
trailingContent: a = !1,
|
|
4317
4327
|
trailingContentGap: f = 40,
|
|
@@ -4319,44 +4329,44 @@ function Yr({
|
|
|
4319
4329
|
loading: u = !1,
|
|
4320
4330
|
prevLabel: v = "이전",
|
|
4321
4331
|
nextLabel: h = "다음",
|
|
4322
|
-
jumpLabel:
|
|
4323
|
-
outOfRangeToastText:
|
|
4332
|
+
jumpLabel: w = "페이지 이동",
|
|
4333
|
+
outOfRangeToastText: L,
|
|
4324
4334
|
customStyle: g,
|
|
4325
|
-
className:
|
|
4335
|
+
className: m
|
|
4326
4336
|
}) {
|
|
4327
|
-
const
|
|
4328
|
-
() => Wt(
|
|
4329
|
-
[
|
|
4337
|
+
const _ = Ot(s), H = Math.max(Number(t) || 0, 0), k = _ === "minimize", x = H > 0 ? `${e + 1}` : "", [V, I] = q(x), A = Z1(
|
|
4338
|
+
() => Wt(H, e, _, C),
|
|
4339
|
+
[H, e, _, C]
|
|
4330
4340
|
);
|
|
4331
|
-
|
|
4332
|
-
|
|
4341
|
+
J(() => {
|
|
4342
|
+
I(x);
|
|
4333
4343
|
}, [x]);
|
|
4334
|
-
const
|
|
4335
|
-
|
|
4336
|
-
},
|
|
4337
|
-
if (!
|
|
4338
|
-
|
|
4344
|
+
const M = (Z) => {
|
|
4345
|
+
Z < 0 || Z >= H || Z === e || o(Z);
|
|
4346
|
+
}, b = () => {
|
|
4347
|
+
if (!V || H <= 0) {
|
|
4348
|
+
I(x);
|
|
4339
4349
|
return;
|
|
4340
4350
|
}
|
|
4341
|
-
const
|
|
4342
|
-
if (!Number.isFinite(
|
|
4343
|
-
|
|
4351
|
+
const Z = Number(V);
|
|
4352
|
+
if (!Number.isFinite(Z)) {
|
|
4353
|
+
I(x);
|
|
4344
4354
|
return;
|
|
4345
4355
|
}
|
|
4346
|
-
if ((
|
|
4347
|
-
|
|
4356
|
+
if ((Z < 1 || Z > H) && L) {
|
|
4357
|
+
I(x), c3({ message: L });
|
|
4348
4358
|
return;
|
|
4349
4359
|
}
|
|
4350
|
-
const
|
|
4351
|
-
|
|
4352
|
-
},
|
|
4353
|
-
|
|
4354
|
-
},
|
|
4355
|
-
|
|
4360
|
+
const N = Math.min(Math.max(Z, 1), H) - 1;
|
|
4361
|
+
M(N), I(`${N + 1}`);
|
|
4362
|
+
}, B = (Z) => {
|
|
4363
|
+
I(Z.target.value.replace(/\D/g, ""));
|
|
4364
|
+
}, S = (Z) => {
|
|
4365
|
+
Z.key === "Enter" && (Z.preventDefault(), b());
|
|
4356
4366
|
}, y = [
|
|
4357
|
-
|
|
4358
|
-
a ?
|
|
4359
|
-
|
|
4367
|
+
z.pagination,
|
|
4368
|
+
a ? z.withTrailingContent : "",
|
|
4369
|
+
m ?? ""
|
|
4360
4370
|
].filter(Boolean).join(" ");
|
|
4361
4371
|
return /* @__PURE__ */ p(
|
|
4362
4372
|
"div",
|
|
@@ -4372,8 +4382,8 @@ function Yr({
|
|
|
4372
4382
|
"div",
|
|
4373
4383
|
{
|
|
4374
4384
|
className: [
|
|
4375
|
-
|
|
4376
|
-
|
|
4385
|
+
z.buttonContainer,
|
|
4386
|
+
k ? z.minimizeButtonContainer : ""
|
|
4377
4387
|
].filter(Boolean).join(" "),
|
|
4378
4388
|
children: [
|
|
4379
4389
|
/* @__PURE__ */ n(
|
|
@@ -4381,38 +4391,38 @@ function Yr({
|
|
|
4381
4391
|
{
|
|
4382
4392
|
variant: "secondary",
|
|
4383
4393
|
size: "medium",
|
|
4384
|
-
onClick:
|
|
4394
|
+
onClick: c,
|
|
4385
4395
|
disabled: u || !l,
|
|
4386
4396
|
customStyle: f2(u || !l),
|
|
4387
|
-
children: /* @__PURE__ */ p("div", { className:
|
|
4397
|
+
children: /* @__PURE__ */ p("div", { className: z.arrowButtonContent, children: [
|
|
4388
4398
|
/* @__PURE__ */ n(k9, { svg: wt }),
|
|
4389
|
-
!
|
|
4399
|
+
!k && /* @__PURE__ */ n(
|
|
4390
4400
|
"span",
|
|
4391
4401
|
{
|
|
4392
|
-
className: `${
|
|
4402
|
+
className: `${z.arrowButtonLabel} ${z.previousButtonLabel}`,
|
|
4393
4403
|
children: v
|
|
4394
4404
|
}
|
|
4395
4405
|
)
|
|
4396
4406
|
] })
|
|
4397
4407
|
}
|
|
4398
4408
|
),
|
|
4399
|
-
|
|
4400
|
-
{ length: L9[
|
|
4401
|
-
(
|
|
4402
|
-
) }) : /* @__PURE__ */ n("div", { className:
|
|
4403
|
-
(
|
|
4409
|
+
k ? u ? /* @__PURE__ */ n("span", { className: z.skeletonMinimize }) : /* @__PURE__ */ n("span", { className: z.minimizeText, children: H > 0 ? `${e + 1}/${H}` : "0/0" }) : u ? /* @__PURE__ */ n("div", { className: z.pageList, children: Array.from(
|
|
4410
|
+
{ length: L9[_] ?? L9.extended },
|
|
4411
|
+
(Z, T) => /* @__PURE__ */ n("span", { className: z.skeletonPage }, T)
|
|
4412
|
+
) }) : /* @__PURE__ */ n("div", { className: z.pageList, children: A.map(
|
|
4413
|
+
(Z) => Z.type === "ellipsis" ? /* @__PURE__ */ n("span", { className: z.ellipsis, children: /* @__PURE__ */ n(k9, { svg: Lt }) }, Z.key) : /* @__PURE__ */ n("div", { className: z.pageButtonItem, children: /* @__PURE__ */ n(
|
|
4404
4414
|
u9,
|
|
4405
4415
|
{
|
|
4406
4416
|
widthType: "flexible",
|
|
4407
|
-
onClick: () =>
|
|
4408
|
-
variant:
|
|
4417
|
+
onClick: () => M(Z.page),
|
|
4418
|
+
variant: Z.page === e ? "primary" : "secondary",
|
|
4409
4419
|
customStyle: {
|
|
4410
4420
|
...Gt,
|
|
4411
|
-
...
|
|
4421
|
+
...Z.page === e ? qt : Z2
|
|
4412
4422
|
},
|
|
4413
|
-
children:
|
|
4423
|
+
children: Z.page + 1
|
|
4414
4424
|
}
|
|
4415
|
-
) },
|
|
4425
|
+
) }, Z.page)
|
|
4416
4426
|
) }),
|
|
4417
4427
|
/* @__PURE__ */ n(
|
|
4418
4428
|
u9,
|
|
@@ -4422,11 +4432,11 @@ function Yr({
|
|
|
4422
4432
|
onClick: i,
|
|
4423
4433
|
disabled: u || !r,
|
|
4424
4434
|
customStyle: f2(u || !r),
|
|
4425
|
-
children: /* @__PURE__ */ p("div", { className:
|
|
4426
|
-
!
|
|
4435
|
+
children: /* @__PURE__ */ p("div", { className: z.arrowButtonContent, children: [
|
|
4436
|
+
!k && /* @__PURE__ */ n(
|
|
4427
4437
|
"span",
|
|
4428
4438
|
{
|
|
4429
|
-
className: `${
|
|
4439
|
+
className: `${z.arrowButtonLabel} ${z.nextButtonLabel}`,
|
|
4430
4440
|
children: h
|
|
4431
4441
|
}
|
|
4432
4442
|
),
|
|
@@ -4440,21 +4450,21 @@ function Yr({
|
|
|
4440
4450
|
a && /* @__PURE__ */ p(
|
|
4441
4451
|
"div",
|
|
4442
4452
|
{
|
|
4443
|
-
className:
|
|
4453
|
+
className: z.trailingContent,
|
|
4444
4454
|
style: d ? { justifySelf: "end", marginLeft: 0 } : void 0,
|
|
4445
4455
|
children: [
|
|
4446
|
-
/* @__PURE__ */ n("span", { className:
|
|
4456
|
+
/* @__PURE__ */ n("span", { className: z.trailingLabel, children: w }),
|
|
4447
4457
|
/* @__PURE__ */ n(
|
|
4448
4458
|
"input",
|
|
4449
4459
|
{
|
|
4450
4460
|
type: "text",
|
|
4451
4461
|
inputMode: "numeric",
|
|
4452
|
-
value:
|
|
4453
|
-
onChange:
|
|
4454
|
-
onKeyDown:
|
|
4455
|
-
onBlur:
|
|
4456
|
-
className:
|
|
4457
|
-
disabled:
|
|
4462
|
+
value: V,
|
|
4463
|
+
onChange: B,
|
|
4464
|
+
onKeyDown: S,
|
|
4465
|
+
onBlur: b,
|
|
4466
|
+
className: z.trailingInput,
|
|
4467
|
+
disabled: H <= 0
|
|
4458
4468
|
}
|
|
4459
4469
|
)
|
|
4460
4470
|
]
|