@idbrnd/design-system 2.1.1 → 2.1.3
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 +12 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -6
- package/dist/index.js +647 -637
- 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,
|
|
@@ -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 b = typeof m == "string" || typeof m == "number" ? _1.text : _1.node;
|
|
120
|
+
return /* @__PURE__ */ n("span", { className: b, 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
|
-
c?.(
|
|
133
|
+
onClick: r ? void 0 : (m) => {
|
|
134
|
+
c?.(m), !s && !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
|
}
|
|
@@ -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 b = typeof m == "string" || typeof m == "number" ? b1.text : b1.node;
|
|
187
|
+
return /* @__PURE__ */ n("span", { className: b, 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
|
-
c?.(
|
|
200
|
+
onClick: r ? void 0 : (m) => {
|
|
201
|
+
c?.(m), !s && !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
|
}
|
|
@@ -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 b = typeof m == "string" || typeof m == "number" ? x1.text : x1.node;
|
|
254
|
+
return /* @__PURE__ */ n("span", { className: b, 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
|
-
c?.(
|
|
267
|
+
onClick: r ? void 0 : (m) => {
|
|
268
|
+
c?.(m), !s && !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
|
}
|
|
@@ -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 b = typeof m == "string" || typeof m == "number" ? M1.text : M1.node;
|
|
321
|
+
return /* @__PURE__ */ n("span", { className: b, 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
|
-
c?.(
|
|
334
|
+
onClick: r ? void 0 : (m) => {
|
|
335
|
+
c?.(m), !s && !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
|
}
|
|
@@ -446,7 +446,7 @@ function kr({
|
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
448
|
}
|
|
449
|
-
const w4 = "_root_hoo4h_1", v4 = "_label_hoo4h_8", L4 = "_labelDisabled_hoo4h_16", _4 = "_requiredMark_hoo4h_20", b4 = "_controlRow_hoo4h_24", x4 = "_control_hoo4h_24", M4 = "_small_hoo4h_48", y4 = "_outline_hoo4h_53", H4 = "_fill_hoo4h_57", Z4 = "_basic_hoo4h_61", V4 = "_success_hoo4h_65", I4 = "_error_hoo4h_70", B4 = "_focused_hoo4h_82", R4 = "_disabled_hoo4h_87", k4 = "_leadingIcon_hoo4h_101", S4 = "_trailingIcon_hoo4h_102", A4 = "_trailingText_hoo4h_103", N4 = "_inputField_hoo4h_125", E4 = "_trailingButton_hoo4h_172", T4 = "_trailingIconButton_hoo4h_173", $4 = "_trailingSlot_hoo4h_177", D4 = "_trailingSlotDisabled_hoo4h_184", F4 = "_trailingBasicIconButton_hoo4h_188", O4 = "_helper_hoo4h_269", P4 = "_helperFixed_hoo4h_278", j4 = "_helperPlaceholder_hoo4h_282", W4 = "_errorHelper_hoo4h_286", q4 = "_errorHelperBounce_hoo4h_290", G4 = "_errorMessageBounceY_hoo4h_1", U4 = "_helperDisabled_hoo4h_294",
|
|
449
|
+
const w4 = "_root_hoo4h_1", v4 = "_label_hoo4h_8", L4 = "_labelDisabled_hoo4h_16", _4 = "_requiredMark_hoo4h_20", b4 = "_controlRow_hoo4h_24", x4 = "_control_hoo4h_24", M4 = "_small_hoo4h_48", y4 = "_outline_hoo4h_53", H4 = "_fill_hoo4h_57", Z4 = "_basic_hoo4h_61", V4 = "_success_hoo4h_65", I4 = "_error_hoo4h_70", B4 = "_focused_hoo4h_82", R4 = "_disabled_hoo4h_87", k4 = "_leadingIcon_hoo4h_101", S4 = "_trailingIcon_hoo4h_102", A4 = "_trailingText_hoo4h_103", N4 = "_inputField_hoo4h_125", E4 = "_trailingButton_hoo4h_172", T4 = "_trailingIconButton_hoo4h_173", $4 = "_trailingSlot_hoo4h_177", D4 = "_trailingSlotDisabled_hoo4h_184", F4 = "_trailingBasicIconButton_hoo4h_188", O4 = "_helper_hoo4h_269", P4 = "_helperFixed_hoo4h_278", j4 = "_helperPlaceholder_hoo4h_282", W4 = "_errorHelper_hoo4h_286", q4 = "_errorHelperBounce_hoo4h_290", G4 = "_errorMessageBounceY_hoo4h_1", U4 = "_helperDisabled_hoo4h_294", Q = {
|
|
450
450
|
root: w4,
|
|
451
451
|
label: v4,
|
|
452
452
|
labelDisabled: L4,
|
|
@@ -493,7 +493,7 @@ function Q4({
|
|
|
493
493
|
return /* @__PURE__ */ n(
|
|
494
494
|
"span",
|
|
495
495
|
{
|
|
496
|
-
className: [
|
|
496
|
+
className: [Q.trailingSlot, t ? Q.trailingSlotDisabled : ""].filter(Boolean).join(" "),
|
|
497
497
|
onMouseDownCapture: o,
|
|
498
498
|
children: e
|
|
499
499
|
}
|
|
@@ -564,39 +564,39 @@ 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: b = !1,
|
|
576
576
|
// 전체 비활성화 여부
|
|
577
|
-
readOnly:
|
|
577
|
+
readOnly: H = !1,
|
|
578
578
|
// 읽기 전용 여부
|
|
579
579
|
...S
|
|
580
580
|
}) {
|
|
581
|
-
const x = _9(),
|
|
582
|
-
value:
|
|
583
|
-
onFocus:
|
|
584
|
-
onBlur:
|
|
581
|
+
const x = _9(), V = h ?? x, _ = s, B = i, { currentValue: I, handleFocus: M, handleBlur: R, handleChange: N } = X4({
|
|
582
|
+
value: m,
|
|
583
|
+
onFocus: w,
|
|
584
|
+
onBlur: L,
|
|
585
585
|
onChange: g
|
|
586
|
-
}), y = Z1(() =>
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
O ?
|
|
590
|
-
|
|
591
|
-
!
|
|
592
|
-
|
|
593
|
-
].filter(Boolean).join(" "), l1 = [
|
|
594
|
-
|
|
595
|
-
a ?
|
|
596
|
-
O ?
|
|
597
|
-
O && g1 !== null ?
|
|
598
|
-
|
|
599
|
-
a && g1 === null ?
|
|
586
|
+
}), y = Z1(() => I == null ? !1 : Array.isArray(I) ? I.length > 0 : typeof I == "number" ? !0 : String(I).length > 0, [I]), Z = Z1(() => g9(f), [f]), T = Z1(() => g9(C), [C]), A = Z !== void 0, D = Z1(() => A ? "error" : l !== void 0 ? l : y ? "typed" : "basic", [A, l, y]), O = D === "error", U = D === "success", a1 = D === "onFocus" || D === "onTyping", h1 = [
|
|
587
|
+
Q.control,
|
|
588
|
+
Q[t],
|
|
589
|
+
O ? Q.error : U ? Q.success : Q.basic,
|
|
590
|
+
Q[o],
|
|
591
|
+
!b && a1 ? Q.focused : "",
|
|
592
|
+
b ? Q.disabled : ""
|
|
593
|
+
].filter(Boolean).join(" "), l1 = [Q.inputField, Q[`input-${o}`]].join(" "), K = Q.root, B1 = [Q.label, b ? Q.labelDisabled : ""].filter(Boolean).join(" "), g1 = Z1(() => O ? A ? Z : "에러 메시지가 표시됩니다." : C === !1 || C === void 0 || C === null ? null : C === !0 ? "2~19자 이내로 입력해 주세요." : T ?? null, [C, O, A, T, Z]), r1 = [
|
|
594
|
+
Q.helper,
|
|
595
|
+
a ? Q.helperFixed : "",
|
|
596
|
+
O ? Q.errorHelper : "",
|
|
597
|
+
O && g1 !== null ? Q.errorHelperBounce : "",
|
|
598
|
+
b ? Q.helperDisabled : "",
|
|
599
|
+
a && g1 === null ? Q.helperPlaceholder : ""
|
|
600
600
|
].filter(Boolean).join(" ");
|
|
601
601
|
return /* @__PURE__ */ p(
|
|
602
602
|
"div",
|
|
@@ -608,24 +608,24 @@ function K4({
|
|
|
608
608
|
...v
|
|
609
609
|
},
|
|
610
610
|
children: [
|
|
611
|
-
|
|
612
|
-
/* @__PURE__ */ n("span", { children:
|
|
613
|
-
c ? /* @__PURE__ */ n("span", { className:
|
|
611
|
+
_ ? /* @__PURE__ */ p("label", { htmlFor: V, className: B1, children: [
|
|
612
|
+
/* @__PURE__ */ n("span", { children: B }),
|
|
613
|
+
c ? /* @__PURE__ */ n("span", { className: Q.requiredMark, children: "*" }) : null
|
|
614
614
|
] }) : null,
|
|
615
|
-
/* @__PURE__ */ n("div", { className:
|
|
616
|
-
d ? /* @__PURE__ */ n("span", { className:
|
|
615
|
+
/* @__PURE__ */ n("div", { className: Q.controlRow, children: /* @__PURE__ */ p("div", { className: h1, children: [
|
|
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: I,
|
|
623
623
|
className: l1,
|
|
624
624
|
onFocus: M,
|
|
625
|
-
onBlur:
|
|
625
|
+
onBlur: R,
|
|
626
626
|
onChange: N,
|
|
627
|
-
disabled:
|
|
628
|
-
readOnly:
|
|
627
|
+
disabled: b,
|
|
628
|
+
readOnly: H,
|
|
629
629
|
required: c,
|
|
630
630
|
...S
|
|
631
631
|
}
|
|
@@ -634,7 +634,7 @@ function K4({
|
|
|
634
634
|
Q4,
|
|
635
635
|
{
|
|
636
636
|
content: u,
|
|
637
|
-
disabled:
|
|
637
|
+
disabled: b
|
|
638
638
|
}
|
|
639
639
|
)
|
|
640
640
|
] }) }),
|
|
@@ -682,28 +682,28 @@ 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: b = 20,
|
|
694
694
|
// 최대 입력 길이
|
|
695
|
-
required:
|
|
695
|
+
required: H = !1,
|
|
696
696
|
// 필수 입력 여부
|
|
697
697
|
errorMessage: S,
|
|
698
698
|
// 에러 상태 문구
|
|
699
699
|
onBlur: x,
|
|
700
700
|
// 포커스 이탈 핸들러
|
|
701
|
-
onKeyDown:
|
|
701
|
+
onKeyDown: V,
|
|
702
702
|
// 키다운 핸들러
|
|
703
|
-
...
|
|
703
|
+
..._
|
|
704
704
|
}) {
|
|
705
|
-
const
|
|
706
|
-
const A = document.getElementById(
|
|
705
|
+
const B = _9(), I = h ?? B, M = () => o(e), R = () => {
|
|
706
|
+
const A = document.getElementById(I);
|
|
707
707
|
if (!(A instanceof HTMLInputElement))
|
|
708
708
|
return;
|
|
709
709
|
const D = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
|
|
@@ -714,11 +714,11 @@ function Sr({
|
|
|
714
714
|
l();
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
R();
|
|
718
718
|
}
|
|
719
719
|
}, y = (A) => {
|
|
720
|
-
|
|
721
|
-
},
|
|
720
|
+
V?.(A), !A.defaultPrevented && (A.key !== "Enter" || A.nativeEvent.isComposing || (A.preventDefault(), M()));
|
|
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
|
{
|
|
@@ -755,11 +755,11 @@ function Sr({
|
|
|
755
755
|
return /* @__PURE__ */ n(
|
|
756
756
|
K4,
|
|
757
757
|
{
|
|
758
|
-
...
|
|
759
|
-
id:
|
|
760
|
-
name:
|
|
758
|
+
..._,
|
|
759
|
+
id: I,
|
|
760
|
+
name: w,
|
|
761
761
|
value: e,
|
|
762
|
-
placeholder:
|
|
762
|
+
placeholder: L,
|
|
763
763
|
onChange: t,
|
|
764
764
|
onBlur: x,
|
|
765
765
|
onKeyDown: y,
|
|
@@ -769,14 +769,14 @@ function Sr({
|
|
|
769
769
|
size: r,
|
|
770
770
|
heading: c,
|
|
771
771
|
headingContent: C,
|
|
772
|
-
required:
|
|
772
|
+
required: H,
|
|
773
773
|
description: f,
|
|
774
774
|
fixedDescriptionHeight: d,
|
|
775
|
-
variant:
|
|
775
|
+
variant: Z,
|
|
776
776
|
errorMessage: S,
|
|
777
777
|
leadingIcon: g,
|
|
778
778
|
trailingContent: T,
|
|
779
|
-
maxLength:
|
|
779
|
+
maxLength: b,
|
|
780
780
|
disabled: u,
|
|
781
781
|
readOnly: v
|
|
782
782
|
}
|
|
@@ -812,11 +812,11 @@ function n2({
|
|
|
812
812
|
...f
|
|
813
813
|
}) {
|
|
814
814
|
const d = F(null);
|
|
815
|
-
|
|
815
|
+
J(() => {
|
|
816
816
|
d.current && (d.current.indeterminate = c);
|
|
817
817
|
}, [c]);
|
|
818
|
-
const u = (
|
|
819
|
-
a?.(
|
|
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],
|
|
@@ -1163,7 +1163,7 @@ function A3(e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
function N3({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: o, onClose: l }) {
|
|
1165
1165
|
const r = F(null), [s, i] = q(!1), c = K1(e.heading), C = K1(e.description);
|
|
1166
|
-
|
|
1166
|
+
J(() => {
|
|
1167
1167
|
if (!c) {
|
|
1168
1168
|
i(!1);
|
|
1169
1169
|
return;
|
|
@@ -1172,16 +1172,16 @@ 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
1186
|
}, [c, e.description, e.heading]);
|
|
1187
1187
|
const a = c && !s, f = c ? C ? /* @__PURE__ */ p(S1, { children: [
|
|
@@ -1323,10 +1323,10 @@ 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
|
{
|
|
@@ -1631,50 +1631,58 @@ function Pr({
|
|
|
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 I = v.current.getBoundingClientRect();
|
|
1637
|
+
L(v2(I, 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 I = v.current.firstElementChild ?? v.current;
|
|
1646
|
+
return I.scrollWidth > I.clientWidth || I.scrollHeight > I.clientHeight;
|
|
1647
|
+
}, [i]), b = G(() => {
|
|
1648
|
+
m() && u(!0);
|
|
1649
|
+
}, [m]), H = G(() => {
|
|
1650
|
+
u(!1), L(null);
|
|
1651
|
+
}, []), S = 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 I = (M) => {
|
|
1662
|
+
const R = M.target;
|
|
1663
|
+
v.current?.contains(R) || h.current?.contains(R) || H();
|
|
1662
1664
|
};
|
|
1663
|
-
return document.addEventListener("mousedown",
|
|
1664
|
-
document.removeEventListener("mousedown",
|
|
1665
|
+
return document.addEventListener("mousedown", I), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H), () => {
|
|
1666
|
+
document.removeEventListener("mousedown", I), 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 b(), window.addEventListener("scroll", g, !0), window.addEventListener("resize", g), () => {
|
|
1671
|
+
window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
|
|
1672
|
+
};
|
|
1673
|
+
}, [t, b, g]);
|
|
1674
|
+
const x = typeof e == "function" ? e(H) : e, V = c ? { backgroundColor: c } : void 0, _ = s ?? "span", B = e1(
|
|
1668
1675
|
Y.tooltip,
|
|
1669
1676
|
Y[o]
|
|
1670
1677
|
);
|
|
1671
1678
|
return /* @__PURE__ */ p(S1, { children: [
|
|
1672
1679
|
F2(
|
|
1673
|
-
|
|
1680
|
+
_,
|
|
1674
1681
|
{
|
|
1675
1682
|
ref: v,
|
|
1676
1683
|
className: Y.trigger,
|
|
1677
|
-
...t === "hover" ? { onMouseEnter:
|
|
1684
|
+
...t === "hover" ? { onMouseEnter: b, onMouseLeave: H } : t === "click" ? { onClick: S } : {}
|
|
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: B,
|
|
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
|
),
|
|
@@ -1755,26 +1763,26 @@ function x2({
|
|
|
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 _ = x.currentTarget.querySelector(
|
|
1761
1769
|
`.${n1.optionLabel}`
|
|
1762
1770
|
);
|
|
1763
|
-
if (
|
|
1764
|
-
const
|
|
1765
|
-
v(x.currentTarget,
|
|
1771
|
+
if (_ && _.scrollWidth > _.clientWidth) {
|
|
1772
|
+
const B = window.innerHeight - x.currentTarget.getBoundingClientRect().bottom > 80 ? "bottom" : "top";
|
|
1773
|
+
v(x.currentTarget, V, B);
|
|
1766
1774
|
}
|
|
1767
1775
|
},
|
|
1768
1776
|
[v]
|
|
1769
|
-
),
|
|
1777
|
+
), b = G(
|
|
1770
1778
|
() => h(),
|
|
1771
1779
|
[h]
|
|
1772
|
-
),
|
|
1780
|
+
), H = e1(n1.menu, n1[o]), S = 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
|
}, [S]), /* @__PURE__ */ p(S1, { children: [
|
|
1780
1788
|
/* @__PURE__ */ p(
|
|
@@ -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
1822
|
children: S.map((x) => {
|
|
1815
|
-
const
|
|
1823
|
+
const V = x.value === s, _ = !!x.disabled;
|
|
1816
1824
|
return /* @__PURE__ */ n(
|
|
1817
1825
|
"li",
|
|
1818
1826
|
{
|
|
1819
1827
|
className: e1(
|
|
1820
1828
|
n1.optionItem,
|
|
1821
|
-
|
|
1822
|
-
|
|
1829
|
+
V && !_ && n1.selectedItem,
|
|
1830
|
+
_ && n1.disabledItem
|
|
1823
1831
|
),
|
|
1824
|
-
onClick: (
|
|
1825
|
-
|
|
1832
|
+
onClick: (B) => {
|
|
1833
|
+
B.stopPropagation(), _ || i(x);
|
|
1826
1834
|
},
|
|
1827
|
-
onMouseEnter: (
|
|
1828
|
-
onMouseLeave:
|
|
1835
|
+
onMouseEnter: (B) => m(B, x.label),
|
|
1836
|
+
onMouseLeave: b,
|
|
1829
1837
|
role: "option",
|
|
1830
|
-
"aria-selected":
|
|
1831
|
-
"aria-disabled":
|
|
1838
|
+
"aria-selected": V,
|
|
1839
|
+
"aria-disabled": _ || 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: c && !
|
|
1846
|
+
style: c && !_ ? { color: c } : void 0,
|
|
1839
1847
|
children: x.label
|
|
1840
1848
|
}
|
|
1841
1849
|
)
|
|
@@ -1871,43 +1879,43 @@ 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(), b = `${m}-listbox`, [H, S] = q(!1), [x, V] = q(!1), [_, B] = q(null), [I, M] = q("bottom"), { tooltip: R, showTooltip: N, hideTooltip: y } = L2(), Z = F(null), T = F(null), A = 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
|
-
const W = $.getBoundingClientRect(), C1 = window.innerHeight - W.bottom, f1 = W.top, R1 = a1 + h1 +
|
|
1882
|
-
M(L1 ? "top" : "bottom"),
|
|
1883
|
-
top: L1 ? W.top + window.scrollY -
|
|
1889
|
+
const W = $.getBoundingClientRect(), C1 = window.innerHeight - W.bottom, f1 = W.top, R1 = a1 + h1 + U, L1 = C1 < R1 && f1 > C1;
|
|
1890
|
+
M(L1 ? "top" : "bottom"), B({
|
|
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
|
-
S(!1),
|
|
1897
|
+
V(!0), O.current = setTimeout(() => {
|
|
1898
|
+
S(!1), V(!1);
|
|
1891
1899
|
}, _7);
|
|
1892
1900
|
}, []), B1 = G(() => {
|
|
1893
|
-
y(),
|
|
1894
|
-
}, [
|
|
1901
|
+
y(), H && !x ? K() : H || (l1(), S(!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) || A.current && A.current.contains(f1) || K();
|
|
1901
1909
|
}, W = (C1) => {
|
|
1902
1910
|
A.current && A.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";
|
|
@@ -1915,8 +1923,8 @@ function jr({
|
|
|
1915
1923
|
}
|
|
1916
1924
|
}, [C?.label, N]), 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 k = 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: k,
|
|
1949
1957
|
disabled: i,
|
|
1950
|
-
"aria-expanded":
|
|
1958
|
+
"aria-expanded": H,
|
|
1951
1959
|
"aria-haspopup": "listbox",
|
|
1952
|
-
"aria-controls":
|
|
1960
|
+
"aria-controls": H ? b : void 0,
|
|
1953
1961
|
onClick: B1,
|
|
1954
1962
|
onKeyDown: r1,
|
|
1955
1963
|
style: h != null ? { width: `${h}px` } : void 0,
|
|
@@ -1967,7 +1975,7 @@ function jr({
|
|
|
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
|
),
|
|
@@ -1975,15 +1983,15 @@ function jr({
|
|
|
1975
1983
|
"div",
|
|
1976
1984
|
{
|
|
1977
1985
|
className: P,
|
|
1978
|
-
style:
|
|
1986
|
+
style: w != null ? { width: `${w}px` } : void 0,
|
|
1979
1987
|
children: s
|
|
1980
1988
|
}
|
|
1981
1989
|
)
|
|
1982
1990
|
]
|
|
1983
1991
|
}
|
|
1984
1992
|
),
|
|
1985
|
-
/* @__PURE__ */ n(_2, { tooltip:
|
|
1986
|
-
|
|
1993
|
+
/* @__PURE__ */ n(_2, { tooltip: R }),
|
|
1994
|
+
H && b9(
|
|
1987
1995
|
/* @__PURE__ */ n(
|
|
1988
1996
|
"div",
|
|
1989
1997
|
{
|
|
@@ -1991,16 +1999,16 @@ function jr({
|
|
|
1991
1999
|
"data-idb-component": "select-dropdown",
|
|
1992
2000
|
style: {
|
|
1993
2001
|
position: "absolute",
|
|
1994
|
-
top:
|
|
1995
|
-
left:
|
|
1996
|
-
width:
|
|
2002
|
+
top: _?.top,
|
|
2003
|
+
left: _?.left,
|
|
2004
|
+
width: _?.width,
|
|
1997
2005
|
zIndex: 9999,
|
|
1998
|
-
...
|
|
2006
|
+
...I === "top" && { transform: "translateY(-100%)" }
|
|
1999
2007
|
},
|
|
2000
2008
|
children: /* @__PURE__ */ n(
|
|
2001
2009
|
x2,
|
|
2002
2010
|
{
|
|
2003
|
-
listboxId:
|
|
2011
|
+
listboxId: b,
|
|
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: I
|
|
2013
2021
|
}
|
|
2014
2022
|
)
|
|
2015
2023
|
}
|
|
@@ -2034,46 +2042,46 @@ function y7({
|
|
|
2034
2042
|
disabled: a = !1,
|
|
2035
2043
|
width: f
|
|
2036
2044
|
}) {
|
|
2037
|
-
const u = `${_9()}-listbox`, [v, h] = q(!1), [
|
|
2038
|
-
if (
|
|
2039
|
-
const M =
|
|
2040
|
-
|
|
2045
|
+
const u = `${_9()}-listbox`, [v, h] = q(!1), [w, L] = q(!1), [g, m] = q(null), b = F(null), H = F(null), S = F(), x = G(() => {
|
|
2046
|
+
if (b.current) {
|
|
2047
|
+
const M = b.current.getBoundingClientRect();
|
|
2048
|
+
m({
|
|
2041
2049
|
top: M.bottom + window.scrollY + 4,
|
|
2042
2050
|
left: M.left + window.scrollX,
|
|
2043
2051
|
width: f ?? M.width
|
|
2044
2052
|
});
|
|
2045
2053
|
}
|
|
2046
|
-
}, [f]),
|
|
2047
|
-
|
|
2048
|
-
h(!1),
|
|
2054
|
+
}, [f]), V = G(() => {
|
|
2055
|
+
L(!0), S.current = setTimeout(() => {
|
|
2056
|
+
h(!1), L(!1);
|
|
2049
2057
|
}, M7);
|
|
2050
|
-
}, []),
|
|
2051
|
-
a || (v && !
|
|
2052
|
-
}, [a, v,
|
|
2053
|
-
s(M),
|
|
2054
|
-
}, [s,
|
|
2055
|
-
|
|
2056
|
-
const M = (
|
|
2057
|
-
const N =
|
|
2058
|
-
|
|
2058
|
+
}, []), _ = G(() => {
|
|
2059
|
+
a || (v && !w ? V() : v || (x(), h(!0)));
|
|
2060
|
+
}, [a, v, w, x, V]), B = G((M) => {
|
|
2061
|
+
s(M), V();
|
|
2062
|
+
}, [s, V]);
|
|
2063
|
+
J(() => () => clearTimeout(S.current), []), J(() => {
|
|
2064
|
+
const M = (R) => {
|
|
2065
|
+
const N = R.target;
|
|
2066
|
+
b.current && b.current.contains(N) || H.current && H.current.contains(N) || V();
|
|
2059
2067
|
};
|
|
2060
2068
|
return v && (document.addEventListener("click", M), window.addEventListener("resize", x), window.addEventListener("scroll", x, !0)), () => {
|
|
2061
2069
|
document.removeEventListener("click", M), window.removeEventListener("resize", x), window.removeEventListener("scroll", x, !0);
|
|
2062
2070
|
};
|
|
2063
|
-
}, [v, x,
|
|
2064
|
-
const
|
|
2065
|
-
M.key === "Escape" && v && (M.preventDefault(),
|
|
2066
|
-
}, [v,
|
|
2071
|
+
}, [v, x, V]);
|
|
2072
|
+
const I = G((M) => {
|
|
2073
|
+
M.key === "Escape" && v && (M.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: b,
|
|
2072
2080
|
className: x7.root,
|
|
2073
2081
|
"data-idb-component": "dropdown",
|
|
2074
2082
|
style: C,
|
|
2075
|
-
onClick:
|
|
2076
|
-
onKeyDown:
|
|
2083
|
+
onClick: _,
|
|
2084
|
+
onKeyDown: I,
|
|
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:
|
|
2110
|
+
onSelect: B,
|
|
2103
2111
|
textColor: c,
|
|
2104
|
-
closing:
|
|
2112
|
+
closing: w
|
|
2105
2113
|
}
|
|
2106
2114
|
)
|
|
2107
2115
|
}
|
|
@@ -2306,14 +2314,14 @@ 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 =
|
|
2319
|
+
i || (i = L, o(), o());
|
|
2320
|
+
const g = L - i;
|
|
2321
|
+
for (i = L, c += g; c >= s; )
|
|
2314
2322
|
o(), c -= s;
|
|
2315
|
-
const
|
|
2316
|
-
l(
|
|
2323
|
+
const m = c / s;
|
|
2324
|
+
l(m), C && (C = t.requestAnimationFrame(d));
|
|
2317
2325
|
}
|
|
2318
2326
|
function u() {
|
|
2319
2327
|
C || (C = t.requestAnimationFrame(d));
|
|
@@ -2337,10 +2345,10 @@ function Q7(e, t) {
|
|
|
2337
2345
|
const o = t === "rtl", l = e === "y", r = l ? "y" : "x", s = l ? "x" : "y", i = !l && o ? -1 : 1, c = 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";
|
|
@@ -2416,72 +2424,72 @@ function y2(e, t, o) {
|
|
|
2416
2424
|
};
|
|
2417
2425
|
return d;
|
|
2418
2426
|
}
|
|
2419
|
-
function X7(e, t, o, l, r, s, i, c, C, a, f, d, u, v, h,
|
|
2427
|
+
function X7(e, t, o, l, r, s, i, c, C, a, f, d, u, v, h, w, L, g, m) {
|
|
2420
2428
|
const {
|
|
2421
|
-
cross:
|
|
2422
|
-
direction:
|
|
2429
|
+
cross: b,
|
|
2430
|
+
direction: H
|
|
2423
2431
|
} = e, S = ["INPUT", "SELECT", "TEXTAREA"], x = {
|
|
2424
2432
|
passive: !1
|
|
2425
|
-
},
|
|
2433
|
+
}, V = n9(), _ = n9(), B = T1(50, 225).constrain(v.measure(20)), I = {
|
|
2426
2434
|
mouse: 300,
|
|
2427
2435
|
touch: 400
|
|
2428
2436
|
}, M = {
|
|
2429
2437
|
mouse: 500,
|
|
2430
2438
|
touch: 600
|
|
2431
|
-
},
|
|
2432
|
-
let N = !1, y = 0,
|
|
2433
|
-
function
|
|
2434
|
-
if (!
|
|
2439
|
+
}, R = h ? 43 : 25;
|
|
2440
|
+
let N = !1, y = 0, Z = 0, T = !1, A = !1, D = !1, O = !1;
|
|
2441
|
+
function U(k) {
|
|
2442
|
+
if (!m) return;
|
|
2435
2443
|
function P(W) {
|
|
2436
|
-
(x9(
|
|
2444
|
+
(x9(m) || m(k, 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(), _.clear();
|
|
2445
2453
|
}
|
|
2446
2454
|
function h1() {
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2455
|
+
const k = O ? o : t;
|
|
2456
|
+
_.add(k, "touchmove", r1, x).add(k, "touchend", i1).add(k, "mousemove", r1, x).add(k, "mouseup", i1);
|
|
2449
2457
|
}
|
|
2450
|
-
function l1(
|
|
2451
|
-
const P =
|
|
2458
|
+
function l1(k) {
|
|
2459
|
+
const P = k.nodeName || "";
|
|
2452
2460
|
return S.includes(P);
|
|
2453
2461
|
}
|
|
2454
2462
|
function K() {
|
|
2455
|
-
return (h ? M :
|
|
2463
|
+
return (h ? M : I)[O ? "mouse" : "touch"];
|
|
2456
2464
|
}
|
|
2457
|
-
function B1(
|
|
2458
|
-
const $ = d.add(j9(
|
|
2459
|
-
return h || X(
|
|
2465
|
+
function B1(k, P) {
|
|
2466
|
+
const $ = d.add(j9(k) * -1), W = f.byDistance(k, !h).distance;
|
|
2467
|
+
return h || X(k) < B ? 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(k) {
|
|
2470
|
+
const P = D9(k, l);
|
|
2471
|
+
O = P, D = h && P && !k.buttons && N, N = Y1(r.get(), i.get()) >= 2, !(P && k.button !== 0) && (l1(k.target) || (T = !0, s.pointerDown(k), a.useFriction(0).useDuration(0), r.set(i), h1(), y = s.readPoint(k), Z = s.readPoint(k, b), u.emit("pointerDown")));
|
|
2464
2472
|
}
|
|
2465
|
-
function r1(
|
|
2466
|
-
if (!D9(
|
|
2467
|
-
const $ = s.readPoint(
|
|
2468
|
-
if (!A && !O && (!
|
|
2469
|
-
return i1(
|
|
2470
|
-
const R1 = s.pointerMove(
|
|
2471
|
-
C1 >
|
|
2473
|
+
function r1(k) {
|
|
2474
|
+
if (!D9(k, l) && k.touches.length >= 2) return i1(k);
|
|
2475
|
+
const $ = s.readPoint(k), W = s.readPoint(k, b), C1 = Y1($, y), f1 = Y1(W, Z);
|
|
2476
|
+
if (!A && !O && (!k.cancelable || (A = C1 > f1, !A)))
|
|
2477
|
+
return i1(k);
|
|
2478
|
+
const R1 = s.pointerMove(k);
|
|
2479
|
+
C1 > w && (D = !0), a.useFriction(0.3).useDuration(0.75), c.start(), r.add(H(R1)), k.preventDefault();
|
|
2472
2480
|
}
|
|
2473
|
-
function i1(
|
|
2474
|
-
const $ = f.byDistance(0, !1).index !== d.get(), W = s.pointerUp(
|
|
2475
|
-
A = !1, T = !1,
|
|
2481
|
+
function i1(k) {
|
|
2482
|
+
const $ = f.byDistance(0, !1).index !== d.get(), W = s.pointerUp(k) * K(), C1 = B1(H(W), $), f1 = W7(W, C1), R1 = R - 10 * f1, L1 = g + f1 / 50;
|
|
2483
|
+
A = !1, T = !1, _.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(k) {
|
|
2486
|
+
D && (k.stopPropagation(), k.preventDefault(), D = !1);
|
|
2479
2487
|
}
|
|
2480
2488
|
function s1() {
|
|
2481
2489
|
return T;
|
|
2482
2490
|
}
|
|
2483
2491
|
return {
|
|
2484
|
-
init:
|
|
2492
|
+
init: U,
|
|
2485
2493
|
destroy: a1,
|
|
2486
2494
|
pointerDown: s1
|
|
2487
2495
|
};
|
|
@@ -2504,8 +2512,8 @@ function K7(e, t) {
|
|
|
2504
2512
|
}
|
|
2505
2513
|
function a(d) {
|
|
2506
2514
|
if (!l || !r) return 0;
|
|
2507
|
-
const u = i(r) - i(l), v = s(d) - s(l), h = s(d) - s(r) > 170,
|
|
2508
|
-
return v && !h && X(
|
|
2515
|
+
const u = i(r) - i(l), v = s(d) - s(l), h = s(d) - s(r) > 170, w = u / v;
|
|
2516
|
+
return v && !h && X(w) > 0.1 ? w : 0;
|
|
2509
2517
|
}
|
|
2510
2518
|
return {
|
|
2511
2519
|
pointerDown: c,
|
|
@@ -2546,26 +2554,26 @@ function J7(e) {
|
|
|
2546
2554
|
function z7(e, t, o, l, r, s, i) {
|
|
2547
2555
|
const c = [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(
|
|
2560
|
+
function v(L) {
|
|
2553
2561
|
if (!s) return;
|
|
2554
2562
|
a = u(e), f = l.map(u);
|
|
2555
|
-
function g(
|
|
2556
|
-
for (const
|
|
2563
|
+
function g(m) {
|
|
2564
|
+
for (const b of m) {
|
|
2557
2565
|
if (d) return;
|
|
2558
|
-
const
|
|
2559
|
-
if (X(
|
|
2560
|
-
|
|
2566
|
+
const H = b.target === e, S = l.indexOf(b.target), x = H ? a : f[S], V = u(H ? e : l[S]);
|
|
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(s) || s(
|
|
2573
|
+
C = new ResizeObserver((m) => {
|
|
2574
|
+
(x9(s) || s(L, m)) && g(m);
|
|
2567
2575
|
}), o.requestAnimationFrame(() => {
|
|
2568
|
-
c.forEach((
|
|
2576
|
+
c.forEach((m) => C.observe(m));
|
|
2569
2577
|
});
|
|
2570
2578
|
}
|
|
2571
2579
|
function h() {
|
|
@@ -2579,9 +2587,9 @@ function z7(e, t, o, l, r, s, i) {
|
|
|
2579
2587
|
function e8(e, t, o, l, r, s) {
|
|
2580
2588
|
let i = 0, c = 0, C = r, a = s, 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 _ = 0;
|
|
2592
|
+
return V ? (i = 0, o.set(l), e.set(l), _ = x) : (o.set(e), i += x / C, i *= a, f += i, e.add(i), _ = f - d), c = j9(_), d = f, S;
|
|
2585
2593
|
}
|
|
2586
2594
|
function v() {
|
|
2587
2595
|
const x = l.get() - t.get();
|
|
@@ -2590,34 +2598,34 @@ function e8(e, t, o, l, r, s) {
|
|
|
2590
2598
|
function h() {
|
|
2591
2599
|
return C;
|
|
2592
2600
|
}
|
|
2593
|
-
function
|
|
2601
|
+
function w() {
|
|
2594
2602
|
return c;
|
|
2595
2603
|
}
|
|
2596
|
-
function
|
|
2604
|
+
function L() {
|
|
2597
2605
|
return i;
|
|
2598
2606
|
}
|
|
2599
2607
|
function g() {
|
|
2600
|
-
return
|
|
2608
|
+
return b(r);
|
|
2601
2609
|
}
|
|
2602
|
-
function
|
|
2603
|
-
return
|
|
2610
|
+
function m() {
|
|
2611
|
+
return H(s);
|
|
2604
2612
|
}
|
|
2605
|
-
function
|
|
2613
|
+
function b(x) {
|
|
2606
2614
|
return C = x, S;
|
|
2607
2615
|
}
|
|
2608
|
-
function
|
|
2616
|
+
function H(x) {
|
|
2609
2617
|
return a = x, S;
|
|
2610
2618
|
}
|
|
2611
2619
|
const S = {
|
|
2612
|
-
direction:
|
|
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: b
|
|
2621
2629
|
};
|
|
2622
2630
|
return S;
|
|
2623
2631
|
}
|
|
@@ -2629,8 +2637,8 @@ function t8(e, t, o, l, r) {
|
|
|
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 = c.constrain(w / i);
|
|
2641
|
+
o.subtract(L * g), !v && X(L) < s && (o.set(e.constrain(o.get())), l.useDuration(25).useBaseFriction());
|
|
2634
2642
|
}
|
|
2635
2643
|
function d(v) {
|
|
2636
2644
|
C = !v;
|
|
@@ -2643,20 +2651,20 @@ function t8(e, t, o, l, r) {
|
|
|
2643
2651
|
}
|
|
2644
2652
|
function n8(e, t, o, l, r) {
|
|
2645
2653
|
const s = T1(-t + e, 0), i = d(), c = f(), C = u();
|
|
2646
|
-
function a(h,
|
|
2647
|
-
return Y1(h,
|
|
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
|
-
} = s,
|
|
2659
|
-
return
|
|
2666
|
+
} = s, m = s.constrain(h), b = !w, H = W9(o, w);
|
|
2667
|
+
return b ? 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() {
|
|
@@ -2664,9 +2672,9 @@ function n8(e, t, o, l, r) {
|
|
|
2664
2672
|
if (l === "keepSnaps") return i;
|
|
2665
2673
|
const {
|
|
2666
2674
|
min: h,
|
|
2667
|
-
max:
|
|
2675
|
+
max: w
|
|
2668
2676
|
} = c;
|
|
2669
|
-
return i.slice(h,
|
|
2677
|
+
return i.slice(h, w);
|
|
2670
2678
|
}
|
|
2671
2679
|
return {
|
|
2672
2680
|
snapsContained: C,
|
|
@@ -2717,13 +2725,13 @@ function i8(e, t, o, l, r) {
|
|
|
2717
2725
|
groupSlides: c
|
|
2718
2726
|
} = r, C = d().map(t.measure), a = u(), f = v();
|
|
2719
2727
|
function d() {
|
|
2720
|
-
return c(l).map((
|
|
2728
|
+
return c(l).map((w) => V1(w)[i] - w[0][s]).map(X);
|
|
2721
2729
|
}
|
|
2722
2730
|
function u() {
|
|
2723
|
-
return l.map((
|
|
2731
|
+
return l.map((w) => o[s] - w[s]).map((w) => -X(w));
|
|
2724
2732
|
}
|
|
2725
2733
|
function v() {
|
|
2726
|
-
return c(a).map((
|
|
2734
|
+
return c(a).map((w) => w[0]).map((w, L) => w + C[L]);
|
|
2727
2735
|
}
|
|
2728
2736
|
return {
|
|
2729
2737
|
snaps: a,
|
|
@@ -2739,15 +2747,15 @@ function C8(e, t, o, l, r, s) {
|
|
|
2739
2747
|
} = l, a = f();
|
|
2740
2748
|
function f() {
|
|
2741
2749
|
const u = i(s), v = !e || t === "keepSnaps";
|
|
2742
|
-
return o.length === 1 ? [s] : v ? u : u.slice(c, C).map((h,
|
|
2743
|
-
const g = !
|
|
2750
|
+
return o.length === 1 ? [s] : v ? u : u.slice(c, C).map((h, w, L) => {
|
|
2751
|
+
const g = !w, m = W9(L, w);
|
|
2744
2752
|
if (g) {
|
|
2745
|
-
const
|
|
2746
|
-
return d2(
|
|
2753
|
+
const b = V1(L[0]) + 1;
|
|
2754
|
+
return d2(b);
|
|
2747
2755
|
}
|
|
2748
|
-
if (
|
|
2749
|
-
const
|
|
2750
|
-
return d2(
|
|
2756
|
+
if (m) {
|
|
2757
|
+
const b = r9(s) - V1(L)[0] + 1;
|
|
2758
|
+
return d2(b, V1(L)[0]);
|
|
2751
2759
|
}
|
|
2752
2760
|
return h;
|
|
2753
2761
|
});
|
|
@@ -2763,44 +2771,44 @@ function s8(e, t, o, l, r) {
|
|
|
2763
2771
|
constrain: c
|
|
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) : c(h), L = t.map((m, b) => ({
|
|
2778
|
+
diff: f(m - w, 0),
|
|
2779
|
+
index: b
|
|
2780
|
+
})).sort((m, b) => X(m.diff) - X(b.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), b = !e && s(L);
|
|
2807
|
+
if (!w || b) return {
|
|
2800
2808
|
index: g,
|
|
2801
2809
|
distance: h
|
|
2802
2810
|
};
|
|
2803
|
-
const
|
|
2811
|
+
const H = t[g] - m, S = h + f(H, 0);
|
|
2804
2812
|
return {
|
|
2805
2813
|
index: g,
|
|
2806
2814
|
distance: S
|
|
@@ -2838,15 +2846,15 @@ function a8(e, t, o, l, r, s, i, c) {
|
|
|
2838
2846
|
let a = 0;
|
|
2839
2847
|
function f(v) {
|
|
2840
2848
|
if (!c) return;
|
|
2841
|
-
function h(
|
|
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((b) => b.includes(w));
|
|
2853
|
+
P9(m) && (r.useDuration(0), l.index(m, 0), i.emit("slideFocus"));
|
|
2846
2854
|
}
|
|
2847
|
-
s.add(document, "keydown", d, !1), t.forEach((
|
|
2848
|
-
s.add(
|
|
2849
|
-
(x9(c) || c(v, g)) && h(
|
|
2855
|
+
s.add(document, "keydown", d, !1), t.forEach((w, L) => {
|
|
2856
|
+
s.add(w, "focus", (g) => {
|
|
2857
|
+
(x9(c) || c(v, g)) && h(L);
|
|
2850
2858
|
}, C);
|
|
2851
2859
|
});
|
|
2852
2860
|
}
|
|
@@ -2908,65 +2916,65 @@ function H2(e, t) {
|
|
|
2908
2916
|
};
|
|
2909
2917
|
}
|
|
2910
2918
|
function d8(e, t, o, l, r, s, i, c, C) {
|
|
2911
|
-
const f = e9(r), d = e9(r).reverse(), u = g().concat(
|
|
2912
|
-
function v(
|
|
2913
|
-
return
|
|
2919
|
+
const f = e9(r), d = e9(r).reverse(), u = g().concat(m());
|
|
2920
|
+
function v(V, _) {
|
|
2921
|
+
return V.reduce((B, I) => B - r[I], _);
|
|
2914
2922
|
}
|
|
2915
|
-
function h(
|
|
2916
|
-
return
|
|
2923
|
+
function h(V, _) {
|
|
2924
|
+
return V.reduce((B, I) => v(B, _) > 0 ? B.concat([I]) : B, []);
|
|
2917
2925
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return s.map((
|
|
2920
|
-
start:
|
|
2921
|
-
end:
|
|
2926
|
+
function w(V) {
|
|
2927
|
+
return s.map((_, B) => ({
|
|
2928
|
+
start: _ - l[B] + 0.5 + V,
|
|
2929
|
+
end: _ + t - 0.5 + V
|
|
2922
2930
|
}));
|
|
2923
2931
|
}
|
|
2924
|
-
function
|
|
2925
|
-
const
|
|
2926
|
-
return
|
|
2927
|
-
const
|
|
2932
|
+
function L(V, _, B) {
|
|
2933
|
+
const I = w(_);
|
|
2934
|
+
return V.map((M) => {
|
|
2935
|
+
const R = B ? 0 : -o, N = B ? o : 0, y = B ? "end" : "start", Z = I[M][y];
|
|
2928
2936
|
return {
|
|
2929
2937
|
index: M,
|
|
2930
|
-
loopPoint:
|
|
2938
|
+
loopPoint: Z,
|
|
2931
2939
|
slideLocation: G1(-1),
|
|
2932
2940
|
translate: H2(e, C[M]),
|
|
2933
|
-
target: () => c.get() >
|
|
2941
|
+
target: () => c.get() > Z ? R : N
|
|
2934
2942
|
};
|
|
2935
2943
|
});
|
|
2936
2944
|
}
|
|
2937
2945
|
function g() {
|
|
2938
|
-
const
|
|
2939
|
-
return _
|
|
2946
|
+
const V = i[0], _ = h(d, V);
|
|
2947
|
+
return L(_, o, !1);
|
|
2940
2948
|
}
|
|
2941
|
-
function
|
|
2942
|
-
const
|
|
2943
|
-
return _
|
|
2949
|
+
function m() {
|
|
2950
|
+
const V = t - i[0] - 1, _ = h(f, V);
|
|
2951
|
+
return L(_, -o, !0);
|
|
2944
2952
|
}
|
|
2945
|
-
function
|
|
2953
|
+
function b() {
|
|
2946
2954
|
return u.every(({
|
|
2947
|
-
index:
|
|
2955
|
+
index: V
|
|
2948
2956
|
}) => {
|
|
2949
|
-
const
|
|
2950
|
-
return v(
|
|
2957
|
+
const _ = f.filter((B) => B !== V);
|
|
2958
|
+
return v(_, 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
|
-
M !==
|
|
2964
|
+
target: _,
|
|
2965
|
+
translate: B,
|
|
2966
|
+
slideLocation: I
|
|
2967
|
+
} = V, M = _();
|
|
2968
|
+
M !== I.get() && (B.to(M), I.set(M));
|
|
2961
2969
|
});
|
|
2962
2970
|
}
|
|
2963
2971
|
function S() {
|
|
2964
|
-
u.forEach((
|
|
2972
|
+
u.forEach((V) => V.translate.clear());
|
|
2965
2973
|
}
|
|
2966
2974
|
return {
|
|
2967
|
-
canLoop:
|
|
2975
|
+
canLoop: b,
|
|
2968
2976
|
clear: S,
|
|
2969
|
-
loop:
|
|
2977
|
+
loop: H,
|
|
2970
2978
|
loopPoints: u
|
|
2971
2979
|
};
|
|
2972
2980
|
}
|
|
@@ -3000,9 +3008,9 @@ function h8(e, t, o, l) {
|
|
|
3000
3008
|
let s = null, i = null, c, C = !1;
|
|
3001
3009
|
function a() {
|
|
3002
3010
|
c = new IntersectionObserver((h) => {
|
|
3003
|
-
C || (h.forEach((
|
|
3004
|
-
const
|
|
3005
|
-
r[
|
|
3011
|
+
C || (h.forEach((w) => {
|
|
3012
|
+
const L = t.indexOf(w.target);
|
|
3013
|
+
r[L] = w;
|
|
3006
3014
|
}), s = null, i = null, o.emit("slidesInView"));
|
|
3007
3015
|
}, {
|
|
3008
3016
|
root: e.parentElement,
|
|
@@ -3013,18 +3021,18 @@ function h8(e, t, o, l) {
|
|
|
3013
3021
|
c && c.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
3032
|
if (h && s) return s;
|
|
3025
3033
|
if (!h && i) return i;
|
|
3026
|
-
const
|
|
3027
|
-
return h && (s =
|
|
3034
|
+
const w = d(h);
|
|
3035
|
+
return h && (s = w), h || (i = w), w;
|
|
3028
3036
|
}
|
|
3029
3037
|
return {
|
|
3030
3038
|
init: a,
|
|
@@ -3037,21 +3045,21 @@ function f8(e, t, o, l, r, s) {
|
|
|
3037
3045
|
measureSize: i,
|
|
3038
3046
|
startEdge: c,
|
|
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[c] -
|
|
3051
|
+
const m = o[0];
|
|
3052
|
+
return X(t[c] - m[c]);
|
|
3045
3053
|
}
|
|
3046
|
-
function
|
|
3054
|
+
function w() {
|
|
3047
3055
|
if (!a) return 0;
|
|
3048
|
-
const
|
|
3049
|
-
return parseFloat(
|
|
3056
|
+
const m = s.getComputedStyle(V1(l));
|
|
3057
|
+
return parseFloat(m.getPropertyValue(`margin-${C}`));
|
|
3050
3058
|
}
|
|
3051
|
-
function
|
|
3052
|
-
return o.map((
|
|
3053
|
-
const S = !
|
|
3054
|
-
return S ? u[
|
|
3059
|
+
function L() {
|
|
3060
|
+
return o.map((m, b, H) => {
|
|
3061
|
+
const S = !b, x = W9(H, b);
|
|
3062
|
+
return S ? u[b] + f : x ? u[b] + d : H[b + 1][c] - m[c];
|
|
3055
3063
|
}).map(X);
|
|
3056
3064
|
}
|
|
3057
3065
|
return {
|
|
@@ -3067,23 +3075,23 @@ function p8(e, t, o, l, r, s, i, c, C) {
|
|
|
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((b) => b % m === 0).map((b) => g.slice(b, b + m));
|
|
3072
3080
|
}
|
|
3073
3081
|
function h(g) {
|
|
3074
|
-
return g.length ? e9(g).reduce((
|
|
3075
|
-
const S = V1(
|
|
3076
|
-
return
|
|
3077
|
-
}, []).map((
|
|
3078
|
-
const S = Math.max(
|
|
3079
|
-
return g.slice(S,
|
|
3082
|
+
return g.length ? e9(g).reduce((m, b, H) => {
|
|
3083
|
+
const S = V1(m) || 0, x = S === 0, V = b === r9(g), _ = r[a] - s[S][a], B = r[a] - s[b][f], I = !l && x ? d(i) : 0, M = !l && V ? d(c) : 0, R = X(B - M - (_ + I));
|
|
3084
|
+
return H && R > t + C && m.push(b), V && m.push(g.length), m;
|
|
3085
|
+
}, []).map((m, b, H) => {
|
|
3086
|
+
const S = Math.max(H[b - 1] || 0);
|
|
3087
|
+
return g.slice(S, 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
3097
|
function g8(e, t, o, l, r, s, i) {
|
|
@@ -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:
|
|
3110
|
+
containScroll: m,
|
|
3111
|
+
watchResize: b,
|
|
3112
|
+
watchSlides: H,
|
|
3105
3113
|
watchDrag: S,
|
|
3106
3114
|
watchFocus: x
|
|
3107
|
-
} = s,
|
|
3115
|
+
} = s, V = 2, _ = Y7(), B = _.measure(t), I = o.map(_.measure), M = Q7(C, a), R = M.measureSize(B), N = J7(R), y = G7(c, R), Z = !d && !!m, T = d || !!m, {
|
|
3108
3116
|
slideSizes: A,
|
|
3109
3117
|
slideSizesWithGaps: D,
|
|
3110
3118
|
startGap: O,
|
|
3111
|
-
endGap:
|
|
3112
|
-
} = f8(M,
|
|
3119
|
+
endGap: U
|
|
3120
|
+
} = f8(M, B, I, o, T, r), a1 = p8(M, R, L, d, B, I, O, U, V), {
|
|
3113
3121
|
snaps: h1,
|
|
3114
3122
|
snapsAligned: l1
|
|
3115
|
-
} = i8(M, y,
|
|
3123
|
+
} = i8(M, y, B, I, a1), K = -V1(h1) + V1(D), {
|
|
3116
3124
|
snapsContained: B1,
|
|
3117
3125
|
scrollContainLimit: g1
|
|
3118
|
-
} = n8(
|
|
3126
|
+
} = n8(R, 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), k = ({
|
|
3121
3129
|
dragHandler: D1,
|
|
3122
3130
|
scrollBody: Z9,
|
|
3123
3131
|
scrollBounds: V9,
|
|
@@ -3146,14 +3154,14 @@ 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, () => k(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: B,
|
|
3164
|
+
slideRects: I,
|
|
3157
3165
|
animation: $,
|
|
3158
3166
|
axis: M,
|
|
3159
3167
|
dragHandler: X7(M, e, l, r, E1, K7(M, r), f1, $, y9, q1, M9, v1, i, N, v, h, g, W, S),
|
|
@@ -3166,7 +3174,7 @@ function g8(e, t, o, l, r, s, i) {
|
|
|
3166
3174
|
offsetLocation: L1,
|
|
3167
3175
|
previousLocation: R1,
|
|
3168
3176
|
options: s,
|
|
3169
|
-
resizeHandler: z7(t, i, r, o, M,
|
|
3177
|
+
resizeHandler: z7(t, i, r, o, M, b, _),
|
|
3170
3178
|
scrollBody: q1,
|
|
3171
3179
|
scrollBounds: t8(i1, L1, E1, q1, N),
|
|
3172
3180
|
scrollLooper: l8(K, i1, L1, [f1, L1, R1, E1]),
|
|
@@ -3175,9 +3183,9 @@ function g8(e, t, o, l, r, s, i) {
|
|
|
3175
3183
|
scrollSnaps: r1,
|
|
3176
3184
|
scrollTarget: M9,
|
|
3177
3185
|
scrollTo: y9,
|
|
3178
|
-
slideLooper: d8(M,
|
|
3186
|
+
slideLooper: d8(M, R, K, A, 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,
|
|
@@ -3281,54 +3289,54 @@ function v9(e, t, o) {
|
|
|
3281
3289
|
on: u,
|
|
3282
3290
|
off: v,
|
|
3283
3291
|
emit: h
|
|
3284
|
-
} = C,
|
|
3285
|
-
let
|
|
3286
|
-
function
|
|
3292
|
+
} = C, w = M;
|
|
3293
|
+
let L = !1, g, m = a(w8, v9.globalOptions), b = a(m), H = [], S, x, V;
|
|
3294
|
+
function _() {
|
|
3287
3295
|
const {
|
|
3288
3296
|
container: j,
|
|
3289
|
-
slides:
|
|
3290
|
-
} =
|
|
3297
|
+
slides: k
|
|
3298
|
+
} = b;
|
|
3291
3299
|
x = ($9(j) ? e.querySelector(j) : j) || e.children[0];
|
|
3292
|
-
const $ = $9(
|
|
3293
|
-
|
|
3300
|
+
const $ = $9(k) ? x.querySelectorAll(k) : k;
|
|
3301
|
+
V = [].slice.call($ || x.children);
|
|
3294
3302
|
}
|
|
3295
|
-
function
|
|
3296
|
-
const
|
|
3297
|
-
if (j.loop && !
|
|
3303
|
+
function B(j) {
|
|
3304
|
+
const k = g8(e, x, V, l, r, j, C);
|
|
3305
|
+
if (j.loop && !k.slideLooper.canLoop()) {
|
|
3298
3306
|
const P = Object.assign({}, j, {
|
|
3299
3307
|
loop: !1
|
|
3300
3308
|
});
|
|
3301
|
-
return
|
|
3309
|
+
return B(P);
|
|
3302
3310
|
}
|
|
3303
|
-
return
|
|
3311
|
+
return k;
|
|
3304
3312
|
}
|
|
3305
|
-
function
|
|
3306
|
-
|
|
3313
|
+
function I(j, k) {
|
|
3314
|
+
L || (m = a(m, j), b = f(m), H = k || H, _(), g = B(b), d([m, ...H.map(({
|
|
3307
3315
|
options: P
|
|
3308
|
-
}) => P)]).forEach((P) => c.add(P, "change", M)),
|
|
3316
|
+
}) => P)]).forEach((P) => c.add(P, "change", M)), 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), S = i.init(s1, H)));
|
|
3309
3317
|
}
|
|
3310
|
-
function M(j,
|
|
3318
|
+
function M(j, k) {
|
|
3311
3319
|
const P = a1();
|
|
3312
|
-
|
|
3320
|
+
R(), I(a({
|
|
3313
3321
|
startIndex: P
|
|
3314
|
-
}, j),
|
|
3322
|
+
}, j), k), C.emit("reInit");
|
|
3315
3323
|
}
|
|
3316
|
-
function
|
|
3324
|
+
function R() {
|
|
3317
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(), c.clear();
|
|
3318
3326
|
}
|
|
3319
3327
|
function N() {
|
|
3320
|
-
|
|
3328
|
+
L || (L = !0, c.clear(), R(), C.emit("destroy"), C.clear());
|
|
3321
3329
|
}
|
|
3322
|
-
function y(j,
|
|
3323
|
-
!
|
|
3330
|
+
function y(j, k, P) {
|
|
3331
|
+
!b.active || L || (g.scrollBody.useBaseFriction().useDuration(k === !0 ? 0 : b.duration), g.scrollTo.index(j, P || 0));
|
|
3324
3332
|
}
|
|
3325
|
-
function
|
|
3326
|
-
const
|
|
3327
|
-
y(
|
|
3333
|
+
function Z(j) {
|
|
3334
|
+
const k = g.index.add(1).get();
|
|
3335
|
+
y(k, j, -1);
|
|
3328
3336
|
}
|
|
3329
3337
|
function T(j) {
|
|
3330
|
-
const
|
|
3331
|
-
y(
|
|
3338
|
+
const k = g.index.add(-1).get();
|
|
3339
|
+
y(k, j, 1);
|
|
3332
3340
|
}
|
|
3333
3341
|
function A() {
|
|
3334
3342
|
return g.index.add(1).get() !== a1();
|
|
@@ -3339,7 +3347,7 @@ function v9(e, t, o) {
|
|
|
3339
3347
|
function O() {
|
|
3340
3348
|
return g.scrollSnapList;
|
|
3341
3349
|
}
|
|
3342
|
-
function
|
|
3350
|
+
function U() {
|
|
3343
3351
|
return g.scrollProgress.get(g.offsetLocation.get());
|
|
3344
3352
|
}
|
|
3345
3353
|
function a1() {
|
|
@@ -3367,7 +3375,7 @@ 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
3381
|
canScrollNext: A,
|
|
@@ -3380,11 +3388,11 @@ function v9(e, t, o) {
|
|
|
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
|
-
scrollProgress:
|
|
3395
|
+
scrollProgress: U,
|
|
3388
3396
|
scrollSnapList: O,
|
|
3389
3397
|
scrollTo: y,
|
|
3390
3398
|
selectedScrollSnap: a1,
|
|
@@ -3392,18 +3400,18 @@ function v9(e, t, o) {
|
|
|
3392
3400
|
slidesInView: l1,
|
|
3393
3401
|
slidesNotInView: K
|
|
3394
3402
|
};
|
|
3395
|
-
return
|
|
3403
|
+
return I(t, o), setTimeout(() => C.emit("init"), 0), s1;
|
|
3396
3404
|
}
|
|
3397
3405
|
v9.globalOptions = void 0;
|
|
3398
3406
|
function i9(e = {}, t = []) {
|
|
3399
3407
|
const o = F(e), l = F(t), [r, s] = q(), [i, c] = 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);
|
|
@@ -3442,11 +3450,11 @@ function Wr({
|
|
|
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);
|
|
@@ -3496,25 +3504,25 @@ function qr({
|
|
|
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 = (b) => {
|
|
3511
|
+
L.current?.contains(b.target) || w(!1);
|
|
3512
|
+
}, m = (b) => {
|
|
3513
|
+
b.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,
|
|
@@ -3526,7 +3534,7 @@ function qr({
|
|
|
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
|
{
|
|
@@ -3585,7 +3593,7 @@ function Gr({
|
|
|
3585
3593
|
dragFree: !0,
|
|
3586
3594
|
containScroll: "keepSnaps"
|
|
3587
3595
|
}), [C, a] = q(!1), [f, d] = q(!l);
|
|
3588
|
-
return
|
|
3596
|
+
return J(() => {
|
|
3589
3597
|
if (!c || l) {
|
|
3590
3598
|
a(!1), d(!l);
|
|
3591
3599
|
return;
|
|
@@ -3661,41 +3669,41 @@ function Ur({
|
|
|
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
|
+
}), [b, H] = q(!1), [S, 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
|
+
}), B = e.findIndex((y) => y.value === t) !== -1 ? t : e.find((y) => !y.disabled)?.value ?? null, I = e.map((y) => `${y.value}:${y.numberBadge ?? ""}`).join(","), M = 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]), R = 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 (
|
|
3698
|
+
if (L.current === "fill") {
|
|
3691
3699
|
const A = parseFloat(getComputedStyle(y).columnGap) || 0;
|
|
3692
|
-
T = d.current.reduce((O,
|
|
3693
|
-
const h1 = f.current.get(
|
|
3700
|
+
T = d.current.reduce((O, U) => {
|
|
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) + A * Math.max(0, d.current.length - 1) >
|
|
3703
|
+
}, 0) + A * 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",
|
|
@@ -3703,7 +3711,7 @@ function Ur({
|
|
|
3703
3711
|
}), T && (h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
|
|
3704
3712
|
h.current = null;
|
|
3705
3713
|
const A = d.current.findIndex(
|
|
3706
|
-
(D) => D.value ===
|
|
3714
|
+
(D) => D.value === w.current
|
|
3707
3715
|
);
|
|
3708
3716
|
A !== -1 && x.scrollTo(A, !0);
|
|
3709
3717
|
})));
|
|
@@ -3712,38 +3720,38 @@ function Ur({
|
|
|
3712
3720
|
M();
|
|
3713
3721
|
const y = a.current;
|
|
3714
3722
|
if (!y) return;
|
|
3715
|
-
const
|
|
3716
|
-
return
|
|
3717
|
-
}, [l, r,
|
|
3723
|
+
const Z = new ResizeObserver(M);
|
|
3724
|
+
return Z.observe(y), () => Z.disconnect();
|
|
3725
|
+
}, [l, r, I, M]), J(() => {
|
|
3718
3726
|
if (!x) return;
|
|
3719
|
-
|
|
3720
|
-
const y = new ResizeObserver(
|
|
3727
|
+
R();
|
|
3728
|
+
const y = new ResizeObserver(R);
|
|
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, R, I]), J(() => {
|
|
3725
3733
|
if (!x) return;
|
|
3726
|
-
const y = () => requestAnimationFrame(M),
|
|
3727
|
-
return x.on("scroll", y), x.on("reInit",
|
|
3728
|
-
x.off("scroll", y), x.off("reInit",
|
|
3734
|
+
const y = () => requestAnimationFrame(M), Z = () => requestAnimationFrame(M);
|
|
3735
|
+
return x.on("scroll", y), x.on("reInit", Z), () => {
|
|
3736
|
+
x.off("scroll", y), x.off("reInit", Z);
|
|
3729
3737
|
};
|
|
3730
|
-
}, [x, M]),
|
|
3738
|
+
}, [x, M]), 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
3745
|
const N = 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
3752
|
let A;
|
|
3745
|
-
T === -1 ? A = y.key === "ArrowLeft" || y.key === "End" ?
|
|
3746
|
-
const D =
|
|
3753
|
+
T === -1 ? A = y.key === "ArrowLeft" || y.key === "End" ? Z.length - 1 : 0 : y.key === "ArrowRight" ? A = (T + 1) % Z.length : y.key === "ArrowLeft" ? A = (T - 1 + Z.length) % Z.length : y.key === "Home" ? A = 0 : A = Z.length - 1;
|
|
3754
|
+
const D = Z[A];
|
|
3747
3755
|
D && D.value !== t && (u.current = !0, o?.(D.value));
|
|
3748
3756
|
},
|
|
3749
3757
|
[t, o]
|
|
@@ -3759,13 +3767,13 @@ function Ur({
|
|
|
3759
3767
|
o1.tab,
|
|
3760
3768
|
o1[l],
|
|
3761
3769
|
r === "fill" && o1.fill,
|
|
3762
|
-
|
|
3770
|
+
b && o1.overflowing,
|
|
3763
3771
|
s && o1.horizontalPadding
|
|
3764
3772
|
),
|
|
3765
3773
|
style: C,
|
|
3766
3774
|
children: [
|
|
3767
3775
|
/* @__PURE__ */ n("div", { className: o1.emblaWrapper, children: /* @__PURE__ */ n("div", { ref: S, className: o1.emblaViewport, children: /* @__PURE__ */ n("div", { className: o1.emblaContainer, children: e.map((y) => {
|
|
3768
|
-
const
|
|
3776
|
+
const Z = y.value === t, T = y.numberBadge !== void 0 && y.numberBadge > 0, A = y.badge && !T;
|
|
3769
3777
|
return /* @__PURE__ */ n(
|
|
3770
3778
|
"button",
|
|
3771
3779
|
{
|
|
@@ -3776,12 +3784,12 @@ 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 === B ? 0 : -1,
|
|
3785
3793
|
onClick: () => {
|
|
3786
3794
|
y.value !== t && o?.(y.value);
|
|
3787
3795
|
},
|
|
@@ -3844,34 +3852,34 @@ function Qr({
|
|
|
3844
3852
|
}) {
|
|
3845
3853
|
const a = l || e === "icon", f = F(null), d = F(/* @__PURE__ */ new Map()), u = F(s);
|
|
3846
3854
|
u.current = s;
|
|
3847
|
-
const v = F(!1), [h,
|
|
3855
|
+
const v = F(!1), [h, w] = q({
|
|
3848
3856
|
opacity: 0
|
|
3849
3857
|
});
|
|
3850
|
-
process.env.NODE_ENV !== "production" && e === "icon" && s.forEach((
|
|
3851
|
-
|
|
3852
|
-
`[SegmentedControl] item "${
|
|
3858
|
+
process.env.NODE_ENV !== "production" && e === "icon" && s.forEach((_) => {
|
|
3859
|
+
_.ariaLabel || console.warn(
|
|
3860
|
+
`[SegmentedControl] item "${_.value}" is missing ariaLabel for variant="icon".`
|
|
3853
3861
|
);
|
|
3854
3862
|
});
|
|
3855
|
-
const
|
|
3863
|
+
const L = s.findIndex((_) => _.value === i), g = L !== -1, m = g && L === 0, b = g && L === s.length - 1, H = t === "outlined" ? m && b ? "single" : m ? "first" : b ? "last" : "middle" : void 0, S = g ? i : s.find((_) => !_.disabled)?.value ?? null, x = s.map((_) => _.value).join(",");
|
|
3856
3864
|
o9(() => {
|
|
3857
|
-
const
|
|
3865
|
+
const _ = () => {
|
|
3858
3866
|
const M = d.current.get(i);
|
|
3859
|
-
M &&
|
|
3867
|
+
M && w({
|
|
3860
3868
|
width: M.offsetWidth,
|
|
3861
3869
|
transform: `translateX(${M.offsetLeft}px)`,
|
|
3862
3870
|
opacity: 1
|
|
3863
3871
|
});
|
|
3864
3872
|
};
|
|
3865
|
-
|
|
3866
|
-
const
|
|
3867
|
-
if (!
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3870
|
-
}, [i, e, t, o, x]),
|
|
3873
|
+
_();
|
|
3874
|
+
const B = f.current;
|
|
3875
|
+
if (!B) return;
|
|
3876
|
+
const I = new ResizeObserver(_);
|
|
3877
|
+
return I.observe(B), () => I.disconnect();
|
|
3878
|
+
}, [i, e, t, o, x]), J(() => {
|
|
3871
3879
|
v.current && (d.current.get(i)?.focus(), v.current = !1);
|
|
3872
3880
|
}, [i]);
|
|
3873
|
-
const
|
|
3874
|
-
(
|
|
3881
|
+
const V = G(
|
|
3882
|
+
(_) => {
|
|
3875
3883
|
if (![
|
|
3876
3884
|
"ArrowLeft",
|
|
3877
3885
|
"ArrowRight",
|
|
@@ -3879,16 +3887,16 @@ function Qr({
|
|
|
3879
3887
|
"ArrowDown",
|
|
3880
3888
|
"Home",
|
|
3881
3889
|
"End"
|
|
3882
|
-
].includes(
|
|
3890
|
+
].includes(_.key))
|
|
3883
3891
|
return;
|
|
3884
|
-
|
|
3885
|
-
const
|
|
3892
|
+
_.preventDefault();
|
|
3893
|
+
const B = u.current.filter((N) => !N.disabled), I = B.findIndex(
|
|
3886
3894
|
(N) => N.value === i
|
|
3887
3895
|
);
|
|
3888
3896
|
let M;
|
|
3889
|
-
|
|
3890
|
-
const
|
|
3891
|
-
|
|
3897
|
+
I === -1 ? M = _.key === "ArrowLeft" || _.key === "ArrowUp" || _.key === "End" ? B.length - 1 : 0 : _.key === "ArrowRight" || _.key === "ArrowDown" ? M = (I + 1) % B.length : _.key === "ArrowLeft" || _.key === "ArrowUp" ? M = (I - 1 + B.length) % B.length : _.key === "Home" ? M = 0 : M = B.length - 1;
|
|
3898
|
+
const R = B[M];
|
|
3899
|
+
R && R.value !== i && (v.current = !0, c?.(R.value));
|
|
3892
3900
|
},
|
|
3893
3901
|
[i, c]
|
|
3894
3902
|
);
|
|
@@ -3920,7 +3928,7 @@ function Qr({
|
|
|
3920
3928
|
"span",
|
|
3921
3929
|
{
|
|
3922
3930
|
"aria-hidden": !0,
|
|
3923
|
-
"data-position":
|
|
3931
|
+
"data-position": H,
|
|
3924
3932
|
className: e1(
|
|
3925
3933
|
p1.indicator,
|
|
3926
3934
|
t === "fill" ? p1.indicatorFill : p1.indicatorOutlined
|
|
@@ -3928,35 +3936,35 @@ function Qr({
|
|
|
3928
3936
|
style: h
|
|
3929
3937
|
}
|
|
3930
3938
|
),
|
|
3931
|
-
s.map((
|
|
3932
|
-
const
|
|
3939
|
+
s.map((_) => {
|
|
3940
|
+
const B = _.value === i;
|
|
3933
3941
|
return /* @__PURE__ */ p(
|
|
3934
3942
|
"button",
|
|
3935
3943
|
{
|
|
3936
3944
|
type: "button",
|
|
3937
3945
|
role: "tab",
|
|
3938
|
-
ref: (
|
|
3939
|
-
|
|
3946
|
+
ref: (I) => {
|
|
3947
|
+
I ? d.current.set(_.value, I) : d.current.delete(_.value);
|
|
3940
3948
|
},
|
|
3941
3949
|
className: e1(
|
|
3942
3950
|
p1.segment,
|
|
3943
|
-
|
|
3944
|
-
|
|
3951
|
+
B && p1.selected,
|
|
3952
|
+
_.disabled && p1.disabled
|
|
3945
3953
|
),
|
|
3946
|
-
disabled:
|
|
3947
|
-
"aria-selected":
|
|
3948
|
-
"aria-label": e === "icon" ?
|
|
3949
|
-
tabIndex:
|
|
3954
|
+
disabled: _.disabled,
|
|
3955
|
+
"aria-selected": B,
|
|
3956
|
+
"aria-label": e === "icon" ? _.ariaLabel : void 0,
|
|
3957
|
+
tabIndex: _.value === S ? 0 : -1,
|
|
3950
3958
|
onClick: () => {
|
|
3951
|
-
|
|
3959
|
+
_.value !== i && c?.(_.value);
|
|
3952
3960
|
},
|
|
3953
|
-
onKeyDown:
|
|
3961
|
+
onKeyDown: V,
|
|
3954
3962
|
children: [
|
|
3955
|
-
a &&
|
|
3956
|
-
e === "basic" &&
|
|
3963
|
+
a && _.icon ? /* @__PURE__ */ n("span", { className: p1.iconSlot, children: _.icon }) : null,
|
|
3964
|
+
e === "basic" && _.label ? /* @__PURE__ */ n("span", { className: p1.label, children: _.label }) : null
|
|
3957
3965
|
]
|
|
3958
3966
|
},
|
|
3959
|
-
|
|
3967
|
+
_.value
|
|
3960
3968
|
);
|
|
3961
3969
|
})
|
|
3962
3970
|
]
|
|
@@ -4028,40 +4036,40 @@ function Xr({
|
|
|
4028
4036
|
accordion: u = !1,
|
|
4029
4037
|
canExpand: v,
|
|
4030
4038
|
renderAccordionContent: h,
|
|
4031
|
-
maxRows:
|
|
4039
|
+
maxRows: w
|
|
4032
4040
|
}) {
|
|
4033
|
-
const [
|
|
4034
|
-
|
|
4041
|
+
const [L, g] = q(/* @__PURE__ */ new Set()), [m, b] = q(/* @__PURE__ */ new Set()), H = e.getRowModel().rows.map((M) => M.id).join(",");
|
|
4042
|
+
J(() => {
|
|
4035
4043
|
if (!u) return;
|
|
4036
|
-
const M = new Set(
|
|
4037
|
-
g((
|
|
4038
|
-
const N = new Set([...
|
|
4039
|
-
return N.size ===
|
|
4040
|
-
}),
|
|
4041
|
-
const N = new Set([...
|
|
4042
|
-
return N.size ===
|
|
4044
|
+
const M = new Set(H.split(",").filter(Boolean));
|
|
4045
|
+
g((R) => {
|
|
4046
|
+
const N = new Set([...R].filter((y) => M.has(y)));
|
|
4047
|
+
return N.size === R.size ? R : N;
|
|
4048
|
+
}), b((R) => {
|
|
4049
|
+
const N = new Set([...R].filter((y) => M.has(y)));
|
|
4050
|
+
return N.size === R.size ? R : N;
|
|
4043
4051
|
});
|
|
4044
|
-
}, [u,
|
|
4052
|
+
}, [u, H]);
|
|
4045
4053
|
const S = (M) => {
|
|
4046
|
-
|
|
4047
|
-
const N = new Set(
|
|
4054
|
+
b((R) => new Set(R).add(M)), g((R) => {
|
|
4055
|
+
const N = new Set(R);
|
|
4048
4056
|
return N.has(M) ? N.delete(M) : N.add(M), N;
|
|
4049
4057
|
});
|
|
4050
|
-
}, x = e.getVisibleLeafColumns(),
|
|
4058
|
+
}, x = e.getVisibleLeafColumns(), V = x.length + (o ? 1 : 0) + (u ? 1 : 0), _ = () => {
|
|
4051
4059
|
if (i != null) return i;
|
|
4052
4060
|
if (c != null || C != null)
|
|
4053
4061
|
return /* @__PURE__ */ p("div", { className: E.emptyState, children: [
|
|
4054
4062
|
c && /* @__PURE__ */ n("span", { className: E.emptyTitle, children: c }),
|
|
4055
4063
|
C && /* @__PURE__ */ n("span", { className: E.emptyDescription, children: C })
|
|
4056
4064
|
] });
|
|
4057
|
-
},
|
|
4065
|
+
}, B = [E.tableWrapper, E[t], f ?? ""].filter(Boolean).join(" "), I = {
|
|
4058
4066
|
...a,
|
|
4059
|
-
...
|
|
4060
|
-
maxHeight: pt +
|
|
4067
|
+
...w != null && {
|
|
4068
|
+
maxHeight: pt + w * ft,
|
|
4061
4069
|
overflowY: "auto"
|
|
4062
4070
|
}
|
|
4063
4071
|
};
|
|
4064
|
-
return /* @__PURE__ */ n("div", { "data-idb-component": !0, className:
|
|
4072
|
+
return /* @__PURE__ */ n("div", { "data-idb-component": !0, className: B, style: I, children: /* @__PURE__ */ p("table", { className: E.table, children: [
|
|
4065
4073
|
/* @__PURE__ */ n("thead", { className: E.thead, children: e.getHeaderGroups().map((M) => /* @__PURE__ */ p("tr", { className: E.tr, children: [
|
|
4066
4074
|
u && /* @__PURE__ */ n("th", { className: `${E.th} ${E.accordionCell}` }),
|
|
4067
4075
|
o && /* @__PURE__ */ n("th", { className: `${E.th} ${E.checkboxCell}`, children: /* @__PURE__ */ n(
|
|
@@ -4074,34 +4082,34 @@ function Xr({
|
|
|
4074
4082
|
onChange: () => e.toggleAllRowsSelected(!e.getIsAllRowsSelected())
|
|
4075
4083
|
}
|
|
4076
4084
|
) }),
|
|
4077
|
-
M.headers.map((
|
|
4085
|
+
M.headers.map((R) => /* @__PURE__ */ n(
|
|
4078
4086
|
"th",
|
|
4079
4087
|
{
|
|
4080
4088
|
className: [
|
|
4081
4089
|
E.th,
|
|
4082
|
-
|
|
4090
|
+
R.column.getCanSort() ? E.sortable : ""
|
|
4083
4091
|
].filter(Boolean).join(" "),
|
|
4084
|
-
onClick:
|
|
4085
|
-
style: { width:
|
|
4086
|
-
children:
|
|
4087
|
-
|
|
4088
|
-
|
|
4092
|
+
onClick: R.column.getToggleSortingHandler(),
|
|
4093
|
+
style: { width: R.getSize() },
|
|
4094
|
+
children: R.isPlaceholder ? null : u2(
|
|
4095
|
+
R.column.columnDef.header,
|
|
4096
|
+
R.getContext()
|
|
4089
4097
|
)
|
|
4090
4098
|
},
|
|
4091
|
-
|
|
4099
|
+
R.id
|
|
4092
4100
|
))
|
|
4093
4101
|
] }, M.id)) }),
|
|
4094
|
-
/* @__PURE__ */ n("tbody", { className: E.tbody, children: r ? Array.from({ length: s }, (M,
|
|
4102
|
+
/* @__PURE__ */ n("tbody", { className: E.tbody, children: r ? Array.from({ length: s }, (M, R) => /* @__PURE__ */ p("tr", { className: E.tr, children: [
|
|
4095
4103
|
u && /* @__PURE__ */ n("td", { className: `${E.td} ${E.accordionCell}` }),
|
|
4096
4104
|
o && /* @__PURE__ */ n("td", { className: `${E.td} ${E.checkboxCell}`, children: /* @__PURE__ */ n("span", { className: E.skeletonCheckbox }) }),
|
|
4097
4105
|
x.map((N) => /* @__PURE__ */ n("td", { className: E.td, children: /* @__PURE__ */ n("span", { className: E.skeleton }) }, N.id))
|
|
4098
|
-
] }, `skeleton-${
|
|
4099
|
-
const
|
|
4106
|
+
] }, `skeleton-${R}`)) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { colSpan: V, className: E.stateCell, children: _() }) }) : e.getRowModel().rows.map((M) => {
|
|
4107
|
+
const R = M.getIsSelected(), N = M.getCanSelect(), y = !!d || o && N, Z = L.has(M.id), T = m.has(M.id), A = u && (v ? v(M) : !!h), D = A && T && h ? h(M) : null, O = [
|
|
4100
4108
|
E.tr,
|
|
4101
4109
|
l || d ? E.interactiveRow : "",
|
|
4102
4110
|
o && N && !l && !d ? E.clickableRow : "",
|
|
4103
|
-
|
|
4104
|
-
A &&
|
|
4111
|
+
R ? E.selectedRow : "",
|
|
4112
|
+
A && Z ? E.expandedRow : ""
|
|
4105
4113
|
].filter(Boolean).join(" ");
|
|
4106
4114
|
return /* @__PURE__ */ p(O2, { children: [
|
|
4107
4115
|
/* @__PURE__ */ p(
|
|
@@ -4115,14 +4123,14 @@ function Xr({
|
|
|
4115
4123
|
"button",
|
|
4116
4124
|
{
|
|
4117
4125
|
type: "button",
|
|
4118
|
-
"aria-expanded":
|
|
4126
|
+
"aria-expanded": Z,
|
|
4119
4127
|
"aria-controls": `accordion-content-${M.id}`,
|
|
4120
4128
|
className: [
|
|
4121
4129
|
E.accordionToggle,
|
|
4122
|
-
|
|
4130
|
+
Z ? E.accordionToggleExpanded : ""
|
|
4123
4131
|
].filter(Boolean).join(" "),
|
|
4124
|
-
onClick: (
|
|
4125
|
-
|
|
4132
|
+
onClick: (U) => {
|
|
4133
|
+
U.stopPropagation(), S(M.id);
|
|
4126
4134
|
},
|
|
4127
4135
|
dangerouslySetInnerHTML: { __html: ht }
|
|
4128
4136
|
}
|
|
@@ -4131,31 +4139,33 @@ function Xr({
|
|
|
4131
4139
|
"td",
|
|
4132
4140
|
{
|
|
4133
4141
|
className: `${E.td} ${E.checkboxCell}`,
|
|
4134
|
-
onClick: (
|
|
4142
|
+
onClick: (U) => {
|
|
4143
|
+
U.stopPropagation(), !U.target.closest("label") && N && M.toggleSelected();
|
|
4144
|
+
},
|
|
4135
4145
|
children: /* @__PURE__ */ n(
|
|
4136
4146
|
n2,
|
|
4137
4147
|
{
|
|
4138
4148
|
size: "small",
|
|
4139
|
-
checked:
|
|
4149
|
+
checked: R,
|
|
4140
4150
|
disabled: !N,
|
|
4141
|
-
onChange: (
|
|
4151
|
+
onChange: (U) => M.toggleSelected(U)
|
|
4142
4152
|
}
|
|
4143
4153
|
)
|
|
4144
4154
|
}
|
|
4145
4155
|
),
|
|
4146
|
-
M.getVisibleCells().map((
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
) },
|
|
4156
|
+
M.getVisibleCells().map((U) => /* @__PURE__ */ n("td", { className: E.td, children: u2(
|
|
4157
|
+
U.column.columnDef.cell,
|
|
4158
|
+
U.getContext()
|
|
4159
|
+
) }, U.id))
|
|
4150
4160
|
]
|
|
4151
4161
|
}
|
|
4152
4162
|
),
|
|
4153
|
-
A && /* @__PURE__ */ n("tr", { className: E.accordionRow, children: /* @__PURE__ */ n("td", { colSpan:
|
|
4163
|
+
A && /* @__PURE__ */ n("tr", { className: E.accordionRow, children: /* @__PURE__ */ n("td", { colSpan: V, className: E.accordionContent, children: /* @__PURE__ */ n(
|
|
4154
4164
|
"div",
|
|
4155
4165
|
{
|
|
4156
4166
|
className: [
|
|
4157
4167
|
E.accordionGrid,
|
|
4158
|
-
|
|
4168
|
+
Z ? E.accordionGridExpanded : ""
|
|
4159
4169
|
].filter(Boolean).join(" "),
|
|
4160
4170
|
children: /* @__PURE__ */ n("div", { className: E.accordionInner, children: /* @__PURE__ */ n("div", { className: E.accordionBody, children: /* @__PURE__ */ n(
|
|
4161
4171
|
"div",
|
|
@@ -4199,7 +4209,7 @@ const wt = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
4199
4209
|
<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"/>
|
|
4200
4210
|
<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"/>
|
|
4201
4211
|
</svg>
|
|
4202
|
-
`, _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",
|
|
4212
|
+
`, _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 = {
|
|
4203
4213
|
pagination: _t,
|
|
4204
4214
|
withTrailingContent: bt,
|
|
4205
4215
|
buttonContainer: xt,
|
|
@@ -4317,44 +4327,44 @@ function Yr({
|
|
|
4317
4327
|
loading: u = !1,
|
|
4318
4328
|
prevLabel: v = "이전",
|
|
4319
4329
|
nextLabel: h = "다음",
|
|
4320
|
-
jumpLabel:
|
|
4321
|
-
outOfRangeToastText:
|
|
4330
|
+
jumpLabel: w = "페이지 이동",
|
|
4331
|
+
outOfRangeToastText: L,
|
|
4322
4332
|
customStyle: g,
|
|
4323
|
-
className:
|
|
4333
|
+
className: m
|
|
4324
4334
|
}) {
|
|
4325
|
-
const
|
|
4326
|
-
() => Wt(
|
|
4327
|
-
[
|
|
4335
|
+
const b = Ot(c), H = Math.max(Number(t) || 0, 0), S = b === "minimize", x = H > 0 ? `${e + 1}` : "", [V, _] = q(x), B = Z1(
|
|
4336
|
+
() => Wt(H, e, b, C),
|
|
4337
|
+
[H, e, b, C]
|
|
4328
4338
|
);
|
|
4329
|
-
|
|
4330
|
-
|
|
4339
|
+
J(() => {
|
|
4340
|
+
_(x);
|
|
4331
4341
|
}, [x]);
|
|
4332
|
-
const
|
|
4333
|
-
|
|
4342
|
+
const I = (Z) => {
|
|
4343
|
+
Z < 0 || Z >= H || Z === e || o(Z);
|
|
4334
4344
|
}, M = () => {
|
|
4335
|
-
if (!
|
|
4336
|
-
|
|
4345
|
+
if (!V || H <= 0) {
|
|
4346
|
+
_(x);
|
|
4337
4347
|
return;
|
|
4338
4348
|
}
|
|
4339
|
-
const
|
|
4340
|
-
if (!Number.isFinite(
|
|
4341
|
-
|
|
4349
|
+
const Z = Number(V);
|
|
4350
|
+
if (!Number.isFinite(Z)) {
|
|
4351
|
+
_(x);
|
|
4342
4352
|
return;
|
|
4343
4353
|
}
|
|
4344
|
-
if ((
|
|
4345
|
-
|
|
4354
|
+
if ((Z < 1 || Z > H) && L) {
|
|
4355
|
+
_(x), c3({ message: L });
|
|
4346
4356
|
return;
|
|
4347
4357
|
}
|
|
4348
|
-
const A = Math.min(Math.max(
|
|
4349
|
-
|
|
4350
|
-
},
|
|
4351
|
-
|
|
4352
|
-
}, N = (
|
|
4353
|
-
|
|
4358
|
+
const A = Math.min(Math.max(Z, 1), H) - 1;
|
|
4359
|
+
I(A), _(`${A + 1}`);
|
|
4360
|
+
}, R = (Z) => {
|
|
4361
|
+
_(Z.target.value.replace(/\D/g, ""));
|
|
4362
|
+
}, N = (Z) => {
|
|
4363
|
+
Z.key === "Enter" && (Z.preventDefault(), M());
|
|
4354
4364
|
}, y = [
|
|
4355
|
-
|
|
4356
|
-
a ?
|
|
4357
|
-
|
|
4365
|
+
z.pagination,
|
|
4366
|
+
a ? z.withTrailingContent : "",
|
|
4367
|
+
m ?? ""
|
|
4358
4368
|
].filter(Boolean).join(" ");
|
|
4359
4369
|
return /* @__PURE__ */ p(
|
|
4360
4370
|
"div",
|
|
@@ -4370,8 +4380,8 @@ function Yr({
|
|
|
4370
4380
|
"div",
|
|
4371
4381
|
{
|
|
4372
4382
|
className: [
|
|
4373
|
-
|
|
4374
|
-
S ?
|
|
4383
|
+
z.buttonContainer,
|
|
4384
|
+
S ? z.minimizeButtonContainer : ""
|
|
4375
4385
|
].filter(Boolean).join(" "),
|
|
4376
4386
|
children: [
|
|
4377
4387
|
/* @__PURE__ */ n(
|
|
@@ -4382,35 +4392,35 @@ function Yr({
|
|
|
4382
4392
|
onClick: s,
|
|
4383
4393
|
disabled: u || !l,
|
|
4384
4394
|
customStyle: f2(u || !l),
|
|
4385
|
-
children: /* @__PURE__ */ p("div", { className:
|
|
4395
|
+
children: /* @__PURE__ */ p("div", { className: z.arrowButtonContent, children: [
|
|
4386
4396
|
/* @__PURE__ */ n(k9, { svg: wt }),
|
|
4387
4397
|
!S && /* @__PURE__ */ n(
|
|
4388
4398
|
"span",
|
|
4389
4399
|
{
|
|
4390
|
-
className: `${
|
|
4400
|
+
className: `${z.arrowButtonLabel} ${z.previousButtonLabel}`,
|
|
4391
4401
|
children: v
|
|
4392
4402
|
}
|
|
4393
4403
|
)
|
|
4394
4404
|
] })
|
|
4395
4405
|
}
|
|
4396
4406
|
),
|
|
4397
|
-
S ? u ? /* @__PURE__ */ n("span", { className:
|
|
4398
|
-
{ length: L9[
|
|
4399
|
-
(
|
|
4400
|
-
) }) : /* @__PURE__ */ n("div", { className:
|
|
4401
|
-
(
|
|
4407
|
+
S ? 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(
|
|
4408
|
+
{ length: L9[b] ?? L9.extended },
|
|
4409
|
+
(Z, T) => /* @__PURE__ */ n("span", { className: z.skeletonPage }, T)
|
|
4410
|
+
) }) : /* @__PURE__ */ n("div", { className: z.pageList, children: B.map(
|
|
4411
|
+
(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(
|
|
4402
4412
|
u9,
|
|
4403
4413
|
{
|
|
4404
4414
|
widthType: "flexible",
|
|
4405
|
-
onClick: () =>
|
|
4406
|
-
variant:
|
|
4415
|
+
onClick: () => I(Z.page),
|
|
4416
|
+
variant: Z.page === e ? "primary" : "secondary",
|
|
4407
4417
|
customStyle: {
|
|
4408
4418
|
...Gt,
|
|
4409
|
-
...
|
|
4419
|
+
...Z.page === e ? qt : Z2
|
|
4410
4420
|
},
|
|
4411
|
-
children:
|
|
4421
|
+
children: Z.page + 1
|
|
4412
4422
|
}
|
|
4413
|
-
) },
|
|
4423
|
+
) }, Z.page)
|
|
4414
4424
|
) }),
|
|
4415
4425
|
/* @__PURE__ */ n(
|
|
4416
4426
|
u9,
|
|
@@ -4420,11 +4430,11 @@ function Yr({
|
|
|
4420
4430
|
onClick: i,
|
|
4421
4431
|
disabled: u || !r,
|
|
4422
4432
|
customStyle: f2(u || !r),
|
|
4423
|
-
children: /* @__PURE__ */ p("div", { className:
|
|
4433
|
+
children: /* @__PURE__ */ p("div", { className: z.arrowButtonContent, children: [
|
|
4424
4434
|
!S && /* @__PURE__ */ n(
|
|
4425
4435
|
"span",
|
|
4426
4436
|
{
|
|
4427
|
-
className: `${
|
|
4437
|
+
className: `${z.arrowButtonLabel} ${z.nextButtonLabel}`,
|
|
4428
4438
|
children: h
|
|
4429
4439
|
}
|
|
4430
4440
|
),
|
|
@@ -4438,21 +4448,21 @@ function Yr({
|
|
|
4438
4448
|
a && /* @__PURE__ */ p(
|
|
4439
4449
|
"div",
|
|
4440
4450
|
{
|
|
4441
|
-
className:
|
|
4451
|
+
className: z.trailingContent,
|
|
4442
4452
|
style: d ? { justifySelf: "end", marginLeft: 0 } : void 0,
|
|
4443
4453
|
children: [
|
|
4444
|
-
/* @__PURE__ */ n("span", { className:
|
|
4454
|
+
/* @__PURE__ */ n("span", { className: z.trailingLabel, children: w }),
|
|
4445
4455
|
/* @__PURE__ */ n(
|
|
4446
4456
|
"input",
|
|
4447
4457
|
{
|
|
4448
4458
|
type: "text",
|
|
4449
4459
|
inputMode: "numeric",
|
|
4450
|
-
value:
|
|
4451
|
-
onChange:
|
|
4460
|
+
value: V,
|
|
4461
|
+
onChange: R,
|
|
4452
4462
|
onKeyDown: N,
|
|
4453
4463
|
onBlur: M,
|
|
4454
|
-
className:
|
|
4455
|
-
disabled:
|
|
4464
|
+
className: z.trailingInput,
|
|
4465
|
+
disabled: H <= 0
|
|
4456
4466
|
}
|
|
4457
4467
|
)
|
|
4458
4468
|
]
|