@scbt-ecom/ui 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.js +40 -44
- package/dist/hooks.js.map +1 -1
- package/dist/{index-BC0CWE5w.js → index-CVI7dOhZ.js} +11412 -10821
- package/dist/index-CVI7dOhZ.js.map +1 -0
- package/dist/index-cm9kMt4X.js +435 -0
- package/dist/index-cm9kMt4X.js.map +1 -0
- package/dist/shared/types/dicriminatedUnion.d.ts +7 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/keysOf.d.ts +5 -0
- package/dist/shared/ui/button/model/helpers.d.ts +1 -1
- package/dist/shared/ui/carousel/CarouselBase.d.ts +29 -0
- package/dist/shared/ui/carousel/CarouselNative.d.ts +6 -0
- package/dist/shared/ui/carousel/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/helpers.d.ts +9 -0
- package/dist/shared/ui/carousel/model/hooks/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/hooks/useArrowNavigation.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useCarousel.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useDotsNavigation.d.ts +15 -0
- package/dist/shared/ui/carousel/model/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/types.d.ts +27 -0
- package/dist/shared/ui/carousel/ui/ArrowNavigationButton.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/CarouselContent.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/CarouselSlide.d.ts +10 -0
- package/dist/shared/ui/carousel/ui/ContainerWithNavigation.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/DotsNavigations.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/index.d.ts +5 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideFullScreen.d.ts +19 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideOnlyImage.d.ts +11 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideProductCard.d.ts +20 -0
- package/dist/shared/ui/carousel/ui/slideVariants/index.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupCardControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -6
- package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +3 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemTab.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
- package/dist/shared/ui/heading/Heading.d.ts +1 -1
- package/dist/shared/ui/hint/Hint.d.ts +1 -0
- package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/shared/ui/popover/Popover.d.ts +2 -1
- package/dist/shared/validation/base/base.validators.d.ts +2 -0
- package/dist/shared/validation/base/boolean.validators.d.ts +13 -0
- package/dist/shared/validation/base/number.validators.d.ts +1 -0
- package/dist/shared/validation/base/select.validators.d.ts +1 -0
- package/dist/shared/validation/base/string.validators.d.ts +1 -0
- package/dist/shared/validation/index.d.ts +1 -0
- package/dist/sprites/general.svg +1 -1
- package/dist/ui.js +2574 -1038
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-B-41PFpS.js +1211 -0
- package/dist/useDebounce-B-41PFpS.js.map +1 -0
- package/dist/useFieldsProgress-BQ99Vijl.js +26 -0
- package/dist/useFieldsProgress-BQ99Vijl.js.map +1 -0
- package/dist/validation.js +1 -1
- package/dist/widget.js +1126 -954
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/Calculator.d.ts +7 -0
- package/dist/widgets/calculator/CalculatorRoot.d.ts +8 -0
- package/dist/widgets/calculator/index.d.ts +2 -0
- package/dist/widgets/calculator/model/helpers.d.ts +4 -0
- package/dist/widgets/calculator/model/index.d.ts +3 -0
- package/dist/widgets/calculator/model/types.d.ts +9 -0
- package/dist/widgets/calculator/model/utils.d.ts +11 -0
- package/dist/widgets/calculator/ui/CalculatorTabs.d.ts +12 -0
- package/dist/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +4 -0
- package/dist/widgets/calculator/ui/calculatorInfo/index.d.ts +2 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +8 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoHead.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +15 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/index.d.ts +6 -0
- package/dist/widgets/calculator/ui/index.d.ts +3 -0
- package/dist/widgets/calculator/ui/rootCalculator/RootCalculator.d.ts +14 -0
- package/dist/widgets/calculator/ui/rootCalculator/index.d.ts +1 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CalculatorModal.d.ts +8 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CheckboxGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/RadioGroup.d.ts +11 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SlidersGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SwitchGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/index.d.ts +5 -0
- package/dist/widgets/dynamicForm/DynamicForm.d.ts +2 -1
- package/dist/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -10
- package/dist/widgets/dynamicForm/model/index.d.ts +0 -1
- package/dist/widgets/fieldMapper/index.d.ts +1 -1
- package/dist/widgets/fieldMapper/model/types.d.ts +6 -0
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/model/helpers.d.ts +2 -2
- package/dist/widgets/model/index.d.ts +1 -0
- package/dist/widgets/model/utils.d.ts +10 -0
- package/package.json +6 -2
- package/dist/index-BC0CWE5w.js.map +0 -1
- package/dist/index-BKXpPQ1s.js +0 -426
- package/dist/index-BKXpPQ1s.js.map +0 -1
- package/dist/useDebounce-i1sdXecI.js +0 -1196
- package/dist/useDebounce-i1sdXecI.js.map +0 -1
- package/dist/useFieldsProgress-C3nmU8Vi.js +0 -21
- package/dist/useFieldsProgress-C3nmU8Vi.js.map +0 -1
package/dist/ui.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { c as
|
|
6
|
-
import { D as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const wt = tt(
|
|
1
|
+
import { j as w, c as On, R as An, B as de, u as Nn, a as Tn, b as jn, d as Hn, P as Be, e as Wt, f as Gn, I as zn, g as Ze, h as Bn, A as kn, i as be, H as qn, D as Un, V as Kn, O as Xn } from "./index-CVI7dOhZ.js";
|
|
2
|
+
import { o as xi, C as yi, v as Fi, t as _i, p as Ii, K as Mi, L as Vi, M as bi, N as Pi, n as $i, q as Ei, r as Di, U as Li, s as Oi, k as Ai, m as Ni, l as Ti, w as ji } from "./index-CVI7dOhZ.js";
|
|
3
|
+
import * as ae from "react";
|
|
4
|
+
import { forwardRef as Q, useState as Se, useCallback as he, useEffect as ve, useRef as At, isValidElement as je, cloneElement as Qt, Children as Ie } from "react";
|
|
5
|
+
import { c as F, T as Nt } from "./typeGuards-Bhdr9KYW.js";
|
|
6
|
+
import { D as Gi, d as zi, f as Bi, b as ki, a as qi } from "./utils-DaXd4sci.js";
|
|
7
|
+
import { u as ke } from "./useDebounce-B-41PFpS.js";
|
|
8
|
+
import { m as Wn } from "./mergeRefs-qDToYXtM.js";
|
|
9
|
+
const Qn = On(
|
|
11
10
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
12
11
|
{
|
|
13
12
|
variants: {
|
|
@@ -27,22 +26,22 @@ const wt = tt(
|
|
|
27
26
|
size: "lg"
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
),
|
|
31
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i },
|
|
32
|
-
),
|
|
33
|
-
|
|
29
|
+
), ai = Q(
|
|
30
|
+
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, s) => /* @__PURE__ */ w.jsx("button", { ref: s, type: r, className: F(Qn({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ w.jsx("span", { className: F(n == null ? void 0 : n.icon), children: t }) })
|
|
31
|
+
), ci = ({ className: e }) => /* @__PURE__ */ w.jsx("div", { className: F("skeleton-apply h-full w-full", e) }), di = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ w.jsxs(
|
|
32
|
+
An,
|
|
34
33
|
{
|
|
35
|
-
className:
|
|
34
|
+
className: F(
|
|
36
35
|
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
37
36
|
{ "translate-y-[100%]": !e },
|
|
38
37
|
o == null ? void 0 : o.root
|
|
39
38
|
),
|
|
40
39
|
children: [
|
|
41
40
|
t,
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ w.jsx(de, { size: "lg", className: F("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
|
-
),
|
|
44
|
+
), gi = {
|
|
46
45
|
group: {
|
|
47
46
|
arrows: [
|
|
48
47
|
"arrows/arrowCircle",
|
|
@@ -94,6 +93,7 @@ const wt = tt(
|
|
|
94
93
|
"general/menu",
|
|
95
94
|
"general/plus",
|
|
96
95
|
"general/reorder",
|
|
96
|
+
"general/shield",
|
|
97
97
|
"general/showEye"
|
|
98
98
|
],
|
|
99
99
|
info: [
|
|
@@ -157,6 +157,7 @@ const wt = tt(
|
|
|
157
157
|
"general/menu",
|
|
158
158
|
"general/plus",
|
|
159
159
|
"general/reorder",
|
|
160
|
+
"general/shield",
|
|
160
161
|
"general/showEye",
|
|
161
162
|
"info/helpCircle",
|
|
162
163
|
"info/warningCircle",
|
|
@@ -172,40 +173,41 @@ const wt = tt(
|
|
|
172
173
|
"status/iconUser"
|
|
173
174
|
]
|
|
174
175
|
};
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
]),
|
|
176
|
+
var qe = "Tabs", [Jn, fi] = jn(qe, [
|
|
177
|
+
Wt
|
|
178
|
+
]), Jt = Wt(), [Yn, ht] = Jn(qe), Yt = ae.forwardRef(
|
|
178
179
|
(e, o) => {
|
|
179
180
|
const {
|
|
180
181
|
__scopeTabs: t,
|
|
181
182
|
value: n,
|
|
182
183
|
onValueChange: r,
|
|
183
184
|
defaultValue: i,
|
|
184
|
-
orientation:
|
|
185
|
+
orientation: s = "horizontal",
|
|
185
186
|
dir: u,
|
|
186
|
-
activationMode:
|
|
187
|
-
...
|
|
188
|
-
} = e, d =
|
|
187
|
+
activationMode: l = "automatic",
|
|
188
|
+
...a
|
|
189
|
+
} = e, d = Nn(u), [f, g] = Tn({
|
|
189
190
|
prop: n,
|
|
190
191
|
onChange: r,
|
|
191
|
-
defaultProp: i
|
|
192
|
+
defaultProp: i ?? "",
|
|
193
|
+
caller: qe
|
|
192
194
|
});
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
-
|
|
195
|
+
return /* @__PURE__ */ w.jsx(
|
|
196
|
+
Yn,
|
|
195
197
|
{
|
|
196
198
|
scope: t,
|
|
197
|
-
baseId:
|
|
199
|
+
baseId: Hn(),
|
|
198
200
|
value: f,
|
|
199
|
-
onValueChange:
|
|
200
|
-
orientation:
|
|
201
|
+
onValueChange: g,
|
|
202
|
+
orientation: s,
|
|
201
203
|
dir: d,
|
|
202
|
-
activationMode:
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
|
|
204
|
+
activationMode: l,
|
|
205
|
+
children: /* @__PURE__ */ w.jsx(
|
|
206
|
+
Be.div,
|
|
205
207
|
{
|
|
206
208
|
dir: d,
|
|
207
|
-
"data-orientation":
|
|
208
|
-
...
|
|
209
|
+
"data-orientation": s,
|
|
210
|
+
...a,
|
|
209
211
|
ref: o
|
|
210
212
|
}
|
|
211
213
|
)
|
|
@@ -213,20 +215,20 @@ var ge = "Tabs", [Ct, Yn] = it(ge, [
|
|
|
213
215
|
);
|
|
214
216
|
}
|
|
215
217
|
);
|
|
216
|
-
|
|
217
|
-
var
|
|
218
|
+
Yt.displayName = qe;
|
|
219
|
+
var Zt = "TabsList", en = ae.forwardRef(
|
|
218
220
|
(e, o) => {
|
|
219
|
-
const { __scopeTabs: t, loop: n = !0, ...r } = e, i =
|
|
220
|
-
return /* @__PURE__ */
|
|
221
|
-
|
|
221
|
+
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = ht(Zt, t), s = Jt(t);
|
|
222
|
+
return /* @__PURE__ */ w.jsx(
|
|
223
|
+
Gn,
|
|
222
224
|
{
|
|
223
225
|
asChild: !0,
|
|
224
|
-
...
|
|
226
|
+
...s,
|
|
225
227
|
orientation: i.orientation,
|
|
226
228
|
dir: i.dir,
|
|
227
229
|
loop: n,
|
|
228
|
-
children: /* @__PURE__ */
|
|
229
|
-
|
|
230
|
+
children: /* @__PURE__ */ w.jsx(
|
|
231
|
+
Be.div,
|
|
230
232
|
{
|
|
231
233
|
role: "tablist",
|
|
232
234
|
"aria-orientation": i.orientation,
|
|
@@ -238,39 +240,39 @@ var Ee = "TabsList", De = E.forwardRef(
|
|
|
238
240
|
);
|
|
239
241
|
}
|
|
240
242
|
);
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
+
en.displayName = Zt;
|
|
244
|
+
var tn = "TabsTrigger", nn = ae.forwardRef(
|
|
243
245
|
(e, o) => {
|
|
244
|
-
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e,
|
|
245
|
-
return /* @__PURE__ */
|
|
246
|
-
|
|
246
|
+
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, s = ht(tn, t), u = Jt(t), l = sn(s.baseId, n), a = ln(s.baseId, n), d = n === s.value;
|
|
247
|
+
return /* @__PURE__ */ w.jsx(
|
|
248
|
+
zn,
|
|
247
249
|
{
|
|
248
250
|
asChild: !0,
|
|
249
251
|
...u,
|
|
250
252
|
focusable: !r,
|
|
251
253
|
active: d,
|
|
252
|
-
children: /* @__PURE__ */
|
|
253
|
-
|
|
254
|
+
children: /* @__PURE__ */ w.jsx(
|
|
255
|
+
Be.button,
|
|
254
256
|
{
|
|
255
257
|
type: "button",
|
|
256
258
|
role: "tab",
|
|
257
259
|
"aria-selected": d,
|
|
258
|
-
"aria-controls":
|
|
260
|
+
"aria-controls": a,
|
|
259
261
|
"data-state": d ? "active" : "inactive",
|
|
260
262
|
"data-disabled": r ? "" : void 0,
|
|
261
263
|
disabled: r,
|
|
262
|
-
id:
|
|
264
|
+
id: l,
|
|
263
265
|
...i,
|
|
264
266
|
ref: o,
|
|
265
|
-
onMouseDown:
|
|
266
|
-
!r && f.button === 0 && f.ctrlKey === !1 ?
|
|
267
|
+
onMouseDown: Ze(e.onMouseDown, (f) => {
|
|
268
|
+
!r && f.button === 0 && f.ctrlKey === !1 ? s.onValueChange(n) : f.preventDefault();
|
|
267
269
|
}),
|
|
268
|
-
onKeyDown:
|
|
269
|
-
[" ", "Enter"].includes(f.key) &&
|
|
270
|
+
onKeyDown: Ze(e.onKeyDown, (f) => {
|
|
271
|
+
[" ", "Enter"].includes(f.key) && s.onValueChange(n);
|
|
270
272
|
}),
|
|
271
|
-
onFocus:
|
|
272
|
-
const f =
|
|
273
|
-
!d && !r && f &&
|
|
273
|
+
onFocus: Ze(e.onFocus, () => {
|
|
274
|
+
const f = s.activationMode !== "manual";
|
|
275
|
+
!d && !r && f && s.onValueChange(n);
|
|
274
276
|
})
|
|
275
277
|
}
|
|
276
278
|
)
|
|
@@ -278,162 +280,85 @@ var be = "TabsTrigger", Le = E.forwardRef(
|
|
|
278
280
|
);
|
|
279
281
|
}
|
|
280
282
|
);
|
|
281
|
-
|
|
282
|
-
var
|
|
283
|
+
nn.displayName = tn;
|
|
284
|
+
var on = "TabsContent", rn = ae.forwardRef(
|
|
283
285
|
(e, o) => {
|
|
284
|
-
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...
|
|
285
|
-
return
|
|
286
|
-
const
|
|
287
|
-
return () => cancelAnimationFrame(
|
|
288
|
-
}, []), /* @__PURE__ */
|
|
289
|
-
|
|
286
|
+
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...s } = e, u = ht(on, t), l = sn(u.baseId, n), a = ln(u.baseId, n), d = n === u.value, f = ae.useRef(d);
|
|
287
|
+
return ae.useEffect(() => {
|
|
288
|
+
const g = requestAnimationFrame(() => f.current = !1);
|
|
289
|
+
return () => cancelAnimationFrame(g);
|
|
290
|
+
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r || d, children: ({ present: g }) => /* @__PURE__ */ w.jsx(
|
|
291
|
+
Be.div,
|
|
290
292
|
{
|
|
291
293
|
"data-state": d ? "active" : "inactive",
|
|
292
294
|
"data-orientation": u.orientation,
|
|
293
295
|
role: "tabpanel",
|
|
294
|
-
"aria-labelledby":
|
|
295
|
-
hidden: !
|
|
296
|
-
id:
|
|
296
|
+
"aria-labelledby": l,
|
|
297
|
+
hidden: !g,
|
|
298
|
+
id: a,
|
|
297
299
|
tabIndex: 0,
|
|
298
|
-
...
|
|
300
|
+
...s,
|
|
299
301
|
ref: o,
|
|
300
302
|
style: {
|
|
301
303
|
...e.style,
|
|
302
304
|
animationDuration: f.current ? "0s" : void 0
|
|
303
305
|
},
|
|
304
|
-
children:
|
|
306
|
+
children: g && i
|
|
305
307
|
}
|
|
306
308
|
) });
|
|
307
309
|
}
|
|
308
310
|
);
|
|
309
|
-
|
|
310
|
-
function
|
|
311
|
+
rn.displayName = on;
|
|
312
|
+
function sn(e, o) {
|
|
311
313
|
return `${e}-trigger-${o}`;
|
|
312
314
|
}
|
|
313
|
-
function
|
|
315
|
+
function ln(e, o) {
|
|
314
316
|
return `${e}-content-${o}`;
|
|
315
317
|
}
|
|
316
|
-
var
|
|
317
|
-
const
|
|
318
|
+
var Zn = Yt, eo = en, to = nn, Tt = rn;
|
|
319
|
+
const no = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { className: F("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ w.jsx(Tt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ w.jsx(kn, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ w.jsx(Tt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: n }, t)) }), pi = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
318
320
|
var i;
|
|
319
|
-
return /* @__PURE__ */
|
|
320
|
-
|
|
321
|
+
return /* @__PURE__ */ w.jsxs(
|
|
322
|
+
Zn,
|
|
321
323
|
{
|
|
322
324
|
value: t,
|
|
323
325
|
onValueChange: n,
|
|
324
326
|
defaultValue: o,
|
|
325
|
-
className:
|
|
327
|
+
className: F("flex flex-col", r == null ? void 0 : r.root),
|
|
326
328
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
|
|
329
|
+
/* @__PURE__ */ w.jsx(eo, { className: F("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: s, label: u }) => /* @__PURE__ */ w.jsx(
|
|
330
|
+
to,
|
|
329
331
|
{
|
|
330
|
-
value:
|
|
331
|
-
className:
|
|
332
|
+
value: s,
|
|
333
|
+
className: F(
|
|
332
334
|
'desk-body-regular-l cursor-pointer rounded-sm bg-color-blue-grey-100 px-4 py-2 text-color-secondary outline outline-2 outline-offset-2 outline-transparent transition-colors hover:bg-color-blue-grey-200 hover:text-color-secondary data-[state="active"]:!bg-color-primary-default data-[state="active"]:!text-color-white',
|
|
333
335
|
r == null ? void 0 : r.trigger
|
|
334
336
|
),
|
|
335
337
|
children: u
|
|
336
338
|
},
|
|
337
|
-
|
|
339
|
+
s
|
|
338
340
|
)) }),
|
|
339
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ w.jsx(no, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
|
|
340
342
|
]
|
|
341
343
|
}
|
|
342
344
|
);
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
var g;
|
|
361
|
-
(g = l.contentDocument) == null || g.head.appendChild(s.cloneNode(!0));
|
|
362
|
-
}), i(l.contentDocument.body));
|
|
363
|
-
}, []), /* @__PURE__ */ p.jsx("iframe", { id: "modal-preview", ...t, ref: n, className: C("h-[60vh] w-[60vw]", o), children: r && e(r) });
|
|
364
|
-
}
|
|
365
|
-
), Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: C("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
|
|
366
|
-
e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: C("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
|
|
367
|
-
/* @__PURE__ */ p.jsx(
|
|
368
|
-
N,
|
|
369
|
-
{
|
|
370
|
-
onClick: o,
|
|
371
|
-
name: "general/close",
|
|
372
|
-
className: C("size-8 cursor-pointer text-icon-dark-hover", t == null ? void 0 : t.icon)
|
|
373
|
-
}
|
|
374
|
-
)
|
|
375
|
-
] }), Jn = ({
|
|
376
|
-
title: e,
|
|
377
|
-
children: o,
|
|
378
|
-
isModalOpen: t,
|
|
379
|
-
isPortal: n = !0,
|
|
380
|
-
portalContainer: r = ((s) => (s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body)(),
|
|
381
|
-
closeModal: i,
|
|
382
|
-
classes: l,
|
|
383
|
-
iframe: u
|
|
384
|
-
}) => {
|
|
385
|
-
t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "visible";
|
|
386
|
-
const g = ht(null), d = /* @__PURE__ */ p.jsx(ct, { children: t && /* @__PURE__ */ p.jsx(
|
|
387
|
-
Ce.div,
|
|
388
|
-
{
|
|
389
|
-
tabIndex: -1,
|
|
390
|
-
onClick: i,
|
|
391
|
-
className: C(
|
|
392
|
-
"fixed inset-0 flex h-screen w-screen items-center justify-center bg-color-overlay",
|
|
393
|
-
{ "z-1000": !n },
|
|
394
|
-
l == null ? void 0 : l.overlay
|
|
395
|
-
),
|
|
396
|
-
onKeyDown: (f) => {
|
|
397
|
-
f.key === "Escape" && i();
|
|
398
|
-
},
|
|
399
|
-
"data-test-id": "modal-overlay",
|
|
400
|
-
...yt,
|
|
401
|
-
children: /* @__PURE__ */ p.jsxs(
|
|
402
|
-
Ce.div,
|
|
403
|
-
{
|
|
404
|
-
onClick: (f) => f.stopPropagation(),
|
|
405
|
-
className: C(
|
|
406
|
-
"w-full max-w-[600px] rounded-md bg-color-white px-4 py-6 shadow-sm desktop:px-6 desktop:py-8",
|
|
407
|
-
l == null ? void 0 : l.modal
|
|
408
|
-
),
|
|
409
|
-
"data-test-id": "modal",
|
|
410
|
-
...$t,
|
|
411
|
-
children: [
|
|
412
|
-
/* @__PURE__ */ p.jsx(Mt, { title: e, closeModal: i, classes: l == null ? void 0 : l.modalHeader }),
|
|
413
|
-
u ? /* @__PURE__ */ p.jsx(Vt, { ref: g, className: C("mt-4", l == null ? void 0 : l.content), children: (f) => ve(o, f) }) : /* @__PURE__ */ p.jsx("div", { className: C("mt-4", l == null ? void 0 : l.content), children: o })
|
|
414
|
-
]
|
|
415
|
-
}
|
|
416
|
-
)
|
|
417
|
-
}
|
|
418
|
-
) });
|
|
419
|
-
return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ? ve(d, r) : d });
|
|
420
|
-
}, Ne = V((e, o) => /* @__PURE__ */ p.jsx("table", { ref: o, ...e }));
|
|
421
|
-
Ne.displayName = "Table";
|
|
422
|
-
const ze = V((e, o) => /* @__PURE__ */ p.jsx("thead", { ref: o, ...e }));
|
|
423
|
-
ze.displayName = "TableHeader";
|
|
424
|
-
const Te = V((e, o) => /* @__PURE__ */ p.jsx("tbody", { ref: o, ...e }));
|
|
425
|
-
Te.displayName = "TableBody";
|
|
426
|
-
const It = V((e, o) => /* @__PURE__ */ p.jsx("tfoot", { ref: o, ...e }));
|
|
427
|
-
It.displayName = "TableFooter";
|
|
428
|
-
const B = V((e, o) => /* @__PURE__ */ p.jsx("tr", { ref: o, ...e }));
|
|
429
|
-
B.displayName = "TableRow";
|
|
430
|
-
const Oe = V((e, o) => /* @__PURE__ */ p.jsx("th", { ref: o, ...e }));
|
|
431
|
-
Oe.displayName = "TableHead";
|
|
432
|
-
const oe = V((e, o) => /* @__PURE__ */ p.jsx("td", { ref: o, ...e }));
|
|
433
|
-
oe.displayName = "TableCell";
|
|
434
|
-
const Pt = V((e, o) => /* @__PURE__ */ p.jsx("caption", { ref: o, ...e }));
|
|
435
|
-
Pt.displayName = "TableCaption";
|
|
436
|
-
const Et = ({
|
|
345
|
+
}, un = Q((e, o) => /* @__PURE__ */ w.jsx("table", { ref: o, ...e }));
|
|
346
|
+
un.displayName = "Table";
|
|
347
|
+
const an = Q((e, o) => /* @__PURE__ */ w.jsx("thead", { ref: o, ...e }));
|
|
348
|
+
an.displayName = "TableHeader";
|
|
349
|
+
const cn = Q((e, o) => /* @__PURE__ */ w.jsx("tbody", { ref: o, ...e }));
|
|
350
|
+
cn.displayName = "TableBody";
|
|
351
|
+
const oo = Q((e, o) => /* @__PURE__ */ w.jsx("tfoot", { ref: o, ...e }));
|
|
352
|
+
oo.displayName = "TableFooter";
|
|
353
|
+
const Te = Q((e, o) => /* @__PURE__ */ w.jsx("tr", { ref: o, ...e }));
|
|
354
|
+
Te.displayName = "TableRow";
|
|
355
|
+
const dn = Q((e, o) => /* @__PURE__ */ w.jsx("th", { ref: o, ...e }));
|
|
356
|
+
dn.displayName = "TableHead";
|
|
357
|
+
const lt = Q((e, o) => /* @__PURE__ */ w.jsx("td", { ref: o, ...e }));
|
|
358
|
+
lt.displayName = "TableCell";
|
|
359
|
+
const ro = Q((e, o) => /* @__PURE__ */ w.jsx("caption", { ref: o, ...e }));
|
|
360
|
+
ro.displayName = "TableCaption";
|
|
361
|
+
const io = ({
|
|
437
362
|
children: e,
|
|
438
363
|
canSort: o,
|
|
439
364
|
toggleSorting: t,
|
|
@@ -441,26 +366,26 @@ const Et = ({
|
|
|
441
366
|
isSorted: r,
|
|
442
367
|
classes: i
|
|
443
368
|
}) => {
|
|
444
|
-
const { root:
|
|
445
|
-
return /* @__PURE__ */
|
|
369
|
+
const { root: s, content: u, icon: l } = i || {}, { isDesktop: a } = ke(), d = o && a;
|
|
370
|
+
return /* @__PURE__ */ w.jsxs(
|
|
446
371
|
"button",
|
|
447
372
|
{
|
|
448
373
|
type: "button",
|
|
449
|
-
className:
|
|
374
|
+
className: F("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", s),
|
|
450
375
|
onClick: () => t(!r),
|
|
451
376
|
disabled: !d,
|
|
452
377
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
d && /* @__PURE__ */
|
|
455
|
-
|
|
378
|
+
/* @__PURE__ */ w.jsx("span", { className: F("", u), children: e }),
|
|
379
|
+
d && /* @__PURE__ */ w.jsx(
|
|
380
|
+
be,
|
|
456
381
|
{
|
|
457
382
|
name: "arrows/arrowRight",
|
|
458
|
-
className:
|
|
383
|
+
className: F(
|
|
459
384
|
"size-4 rotate-90 text-color-current duration-100",
|
|
460
385
|
{
|
|
461
386
|
"-rotate-90": !n
|
|
462
387
|
},
|
|
463
|
-
|
|
388
|
+
l
|
|
464
389
|
)
|
|
465
390
|
}
|
|
466
391
|
)
|
|
@@ -478,7 +403,7 @@ const Et = ({
|
|
|
478
403
|
*
|
|
479
404
|
* @license MIT
|
|
480
405
|
*/
|
|
481
|
-
function
|
|
406
|
+
function so() {
|
|
482
407
|
return {
|
|
483
408
|
accessor: (e, o) => typeof e == "function" ? {
|
|
484
409
|
...o,
|
|
@@ -491,58 +416,58 @@ function Dt() {
|
|
|
491
416
|
group: (e) => e
|
|
492
417
|
};
|
|
493
418
|
}
|
|
494
|
-
function
|
|
419
|
+
function ge(e, o) {
|
|
495
420
|
return typeof e == "function" ? e(o) : e;
|
|
496
421
|
}
|
|
497
|
-
function
|
|
422
|
+
function q(e, o) {
|
|
498
423
|
return (t) => {
|
|
499
424
|
o.setState((n) => ({
|
|
500
425
|
...n,
|
|
501
|
-
[e]:
|
|
426
|
+
[e]: ge(t, n[e])
|
|
502
427
|
}));
|
|
503
428
|
};
|
|
504
429
|
}
|
|
505
|
-
function
|
|
430
|
+
function Ue(e) {
|
|
506
431
|
return e instanceof Function;
|
|
507
432
|
}
|
|
508
|
-
function
|
|
433
|
+
function lo(e) {
|
|
509
434
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
510
435
|
}
|
|
511
|
-
function
|
|
436
|
+
function uo(e, o) {
|
|
512
437
|
const t = [], n = (r) => {
|
|
513
438
|
r.forEach((i) => {
|
|
514
439
|
t.push(i);
|
|
515
|
-
const
|
|
516
|
-
|
|
440
|
+
const s = o(i);
|
|
441
|
+
s != null && s.length && n(s);
|
|
517
442
|
});
|
|
518
443
|
};
|
|
519
444
|
return n(e), t;
|
|
520
445
|
}
|
|
521
|
-
function
|
|
446
|
+
function x(e, o, t) {
|
|
522
447
|
let n = [], r;
|
|
523
448
|
return (i) => {
|
|
524
|
-
let
|
|
525
|
-
t.key && t.debug && (
|
|
449
|
+
let s;
|
|
450
|
+
t.key && t.debug && (s = Date.now());
|
|
526
451
|
const u = e(i);
|
|
527
452
|
if (!(u.length !== n.length || u.some((d, f) => n[f] !== d)))
|
|
528
453
|
return r;
|
|
529
454
|
n = u;
|
|
530
|
-
let
|
|
531
|
-
if (t.key && t.debug && (
|
|
532
|
-
const d = Math.round((Date.now() -
|
|
533
|
-
for (
|
|
534
|
-
|
|
535
|
-
return
|
|
455
|
+
let a;
|
|
456
|
+
if (t.key && t.debug && (a = Date.now()), r = o(...u), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
|
|
457
|
+
const d = Math.round((Date.now() - s) * 100) / 100, f = Math.round((Date.now() - a) * 100) / 100, g = f / 16, c = (p, m) => {
|
|
458
|
+
for (p = String(p); p.length < m; )
|
|
459
|
+
p = " " + p;
|
|
460
|
+
return p;
|
|
536
461
|
};
|
|
537
|
-
console.info(`%c⏱ ${
|
|
462
|
+
console.info(`%c⏱ ${c(f, 5)} /${c(d, 5)} ms`, `
|
|
538
463
|
font-size: .6rem;
|
|
539
464
|
font-weight: bold;
|
|
540
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
465
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
541
466
|
}
|
|
542
467
|
return r;
|
|
543
468
|
};
|
|
544
469
|
}
|
|
545
|
-
function
|
|
470
|
+
function y(e, o, t, n) {
|
|
546
471
|
return {
|
|
547
472
|
debug: () => {
|
|
548
473
|
var r;
|
|
@@ -552,71 +477,71 @@ function w(e, o, t, n) {
|
|
|
552
477
|
onChange: n
|
|
553
478
|
};
|
|
554
479
|
}
|
|
555
|
-
function
|
|
480
|
+
function ao(e, o, t, n) {
|
|
556
481
|
const r = () => {
|
|
557
|
-
var
|
|
558
|
-
return (
|
|
482
|
+
var s;
|
|
483
|
+
return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
|
|
559
484
|
}, i = {
|
|
560
485
|
id: `${o.id}_${t.id}`,
|
|
561
486
|
row: o,
|
|
562
487
|
column: t,
|
|
563
488
|
getValue: () => o.getValue(n),
|
|
564
489
|
renderValue: r,
|
|
565
|
-
getContext:
|
|
566
|
-
table:
|
|
490
|
+
getContext: x(() => [e, t, o, i], (s, u, l, a) => ({
|
|
491
|
+
table: s,
|
|
567
492
|
column: u,
|
|
568
|
-
row:
|
|
569
|
-
cell:
|
|
570
|
-
getValue:
|
|
571
|
-
renderValue:
|
|
572
|
-
}),
|
|
493
|
+
row: l,
|
|
494
|
+
cell: a,
|
|
495
|
+
getValue: a.getValue,
|
|
496
|
+
renderValue: a.renderValue
|
|
497
|
+
}), y(e.options, "debugCells", "cell.getContext"))
|
|
573
498
|
};
|
|
574
|
-
return e._features.forEach((
|
|
575
|
-
|
|
499
|
+
return e._features.forEach((s) => {
|
|
500
|
+
s.createCell == null || s.createCell(i, t, o, e);
|
|
576
501
|
}, {}), i;
|
|
577
502
|
}
|
|
578
|
-
function
|
|
503
|
+
function co(e, o, t, n) {
|
|
579
504
|
var r, i;
|
|
580
505
|
const u = {
|
|
581
506
|
...e._getDefaultColumnDef(),
|
|
582
507
|
...o
|
|
583
|
-
},
|
|
584
|
-
let
|
|
585
|
-
if (u.accessorFn ? d = u.accessorFn :
|
|
586
|
-
let
|
|
587
|
-
for (const
|
|
588
|
-
var
|
|
589
|
-
|
|
508
|
+
}, l = u.accessorKey;
|
|
509
|
+
let a = (r = (i = u.id) != null ? i : l ? typeof String.prototype.replaceAll == "function" ? l.replaceAll(".", "_") : l.replace(/\./g, "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, d;
|
|
510
|
+
if (u.accessorFn ? d = u.accessorFn : l && (l.includes(".") ? d = (g) => {
|
|
511
|
+
let c = g;
|
|
512
|
+
for (const m of l.split(".")) {
|
|
513
|
+
var p;
|
|
514
|
+
c = (p = c) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`);
|
|
590
515
|
}
|
|
591
|
-
return
|
|
592
|
-
} : d = (
|
|
516
|
+
return c;
|
|
517
|
+
} : d = (g) => g[u.accessorKey]), !a)
|
|
593
518
|
throw process.env.NODE_ENV !== "production" ? new Error(u.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
594
519
|
let f = {
|
|
595
|
-
id: `${String(
|
|
520
|
+
id: `${String(a)}`,
|
|
596
521
|
accessorFn: d,
|
|
597
522
|
parent: n,
|
|
598
523
|
depth: t,
|
|
599
524
|
columnDef: u,
|
|
600
525
|
columns: [],
|
|
601
|
-
getFlatColumns:
|
|
526
|
+
getFlatColumns: x(() => [!0], () => {
|
|
527
|
+
var g;
|
|
528
|
+
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((c) => c.getFlatColumns())];
|
|
529
|
+
}, y(e.options, "debugColumns", "column.getFlatColumns")),
|
|
530
|
+
getLeafColumns: x(() => [e._getOrderColumnsFn()], (g) => {
|
|
602
531
|
var c;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
var a;
|
|
607
|
-
if ((a = f.columns) != null && a.length) {
|
|
608
|
-
let m = f.columns.flatMap((h) => h.getLeafColumns());
|
|
609
|
-
return c(m);
|
|
532
|
+
if ((c = f.columns) != null && c.length) {
|
|
533
|
+
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
534
|
+
return g(p);
|
|
610
535
|
}
|
|
611
536
|
return [f];
|
|
612
|
-
},
|
|
537
|
+
}, y(e.options, "debugColumns", "column.getLeafColumns"))
|
|
613
538
|
};
|
|
614
|
-
for (const
|
|
615
|
-
|
|
539
|
+
for (const g of e._features)
|
|
540
|
+
g.createColumn == null || g.createColumn(f, e);
|
|
616
541
|
return f;
|
|
617
542
|
}
|
|
618
|
-
const
|
|
619
|
-
function
|
|
543
|
+
const H = "debugHeaders";
|
|
544
|
+
function jt(e, o, t) {
|
|
620
545
|
var n;
|
|
621
546
|
let i = {
|
|
622
547
|
id: (n = t.id) != null ? n : o.id,
|
|
@@ -630,10 +555,10 @@ function _e(e, o, t) {
|
|
|
630
555
|
rowSpan: 0,
|
|
631
556
|
headerGroup: null,
|
|
632
557
|
getLeafHeaders: () => {
|
|
633
|
-
const
|
|
634
|
-
|
|
558
|
+
const s = [], u = (l) => {
|
|
559
|
+
l.subHeaders && l.subHeaders.length && l.subHeaders.map(u), s.push(l);
|
|
635
560
|
};
|
|
636
|
-
return u(i),
|
|
561
|
+
return u(i), s;
|
|
637
562
|
},
|
|
638
563
|
getContext: () => ({
|
|
639
564
|
table: e,
|
|
@@ -641,213 +566,213 @@ function _e(e, o, t) {
|
|
|
641
566
|
column: o
|
|
642
567
|
})
|
|
643
568
|
};
|
|
644
|
-
return e._features.forEach((
|
|
645
|
-
|
|
569
|
+
return e._features.forEach((s) => {
|
|
570
|
+
s.createHeader == null || s.createHeader(i, e);
|
|
646
571
|
}), i;
|
|
647
572
|
}
|
|
648
|
-
const
|
|
573
|
+
const go = {
|
|
649
574
|
createTable: (e) => {
|
|
650
|
-
e.getHeaderGroups =
|
|
651
|
-
var i,
|
|
652
|
-
const u = (i = n == null ? void 0 : n.map((f) => t.find((
|
|
653
|
-
return
|
|
654
|
-
},
|
|
575
|
+
e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
576
|
+
var i, s;
|
|
577
|
+
const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], l = (s = r == null ? void 0 : r.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? s : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
578
|
+
return Oe(o, [...u, ...a, ...l], e);
|
|
579
|
+
}, y(e.options, H, "getHeaderGroups")), e.getCenterHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), Oe(o, t, e, "center")), y(e.options, H, "getCenterHeaderGroups")), e.getLeftHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
655
580
|
var r;
|
|
656
|
-
const i = (r = n == null ? void 0 : n.map((
|
|
657
|
-
return
|
|
658
|
-
},
|
|
581
|
+
const i = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
582
|
+
return Oe(o, i, e, "left");
|
|
583
|
+
}, y(e.options, H, "getLeftHeaderGroups")), e.getRightHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
659
584
|
var r;
|
|
660
|
-
const i = (r = n == null ? void 0 : n.map((
|
|
661
|
-
return
|
|
662
|
-
},
|
|
585
|
+
const i = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
586
|
+
return Oe(o, i, e, "right");
|
|
587
|
+
}, y(e.options, H, "getRightHeaderGroups")), e.getFooterGroups = x(() => [e.getHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getFooterGroups")), e.getLeftFooterGroups = x(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getLeftFooterGroups")), e.getCenterFooterGroups = x(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getCenterFooterGroups")), e.getRightFooterGroups = x(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getRightFooterGroups")), e.getFlatHeaders = x(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getFlatHeaders")), e.getLeftFlatHeaders = x(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getLeftFlatHeaders")), e.getCenterFlatHeaders = x(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getCenterFlatHeaders")), e.getRightFlatHeaders = x(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getRightFlatHeaders")), e.getCenterLeafHeaders = x(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
663
588
|
var n;
|
|
664
589
|
return !((n = t.subHeaders) != null && n.length);
|
|
665
|
-
}),
|
|
590
|
+
}), y(e.options, H, "getCenterLeafHeaders")), e.getLeftLeafHeaders = x(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
|
|
666
591
|
var n;
|
|
667
592
|
return !((n = t.subHeaders) != null && n.length);
|
|
668
|
-
}),
|
|
593
|
+
}), y(e.options, H, "getLeftLeafHeaders")), e.getRightLeafHeaders = x(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
|
|
669
594
|
var n;
|
|
670
595
|
return !((n = t.subHeaders) != null && n.length);
|
|
671
|
-
}),
|
|
672
|
-
var r, i,
|
|
673
|
-
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(
|
|
674
|
-
},
|
|
596
|
+
}), y(e.options, H, "getRightLeafHeaders")), e.getLeafHeaders = x(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
597
|
+
var r, i, s, u, l, a;
|
|
598
|
+
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(s = (u = t[0]) == null ? void 0 : u.headers) != null ? s : [], ...(l = (a = n[0]) == null ? void 0 : a.headers) != null ? l : []].map((d) => d.getLeafHeaders()).flat();
|
|
599
|
+
}, y(e.options, H, "getLeafHeaders"));
|
|
675
600
|
}
|
|
676
601
|
};
|
|
677
|
-
function
|
|
602
|
+
function Oe(e, o, t, n) {
|
|
678
603
|
var r, i;
|
|
679
|
-
let
|
|
680
|
-
const u = function(
|
|
681
|
-
|
|
682
|
-
var
|
|
683
|
-
(
|
|
604
|
+
let s = 0;
|
|
605
|
+
const u = function(g, c) {
|
|
606
|
+
c === void 0 && (c = 1), s = Math.max(s, c), g.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
607
|
+
var m;
|
|
608
|
+
(m = p.columns) != null && m.length && u(p.columns, c + 1);
|
|
684
609
|
}, 0);
|
|
685
610
|
};
|
|
686
611
|
u(e);
|
|
687
|
-
let
|
|
688
|
-
const
|
|
689
|
-
const
|
|
690
|
-
depth:
|
|
691
|
-
id: [n, `${
|
|
612
|
+
let l = [];
|
|
613
|
+
const a = (g, c) => {
|
|
614
|
+
const p = {
|
|
615
|
+
depth: c,
|
|
616
|
+
id: [n, `${c}`].filter(Boolean).join("_"),
|
|
692
617
|
headers: []
|
|
693
|
-
},
|
|
694
|
-
|
|
695
|
-
const
|
|
696
|
-
let
|
|
697
|
-
if (
|
|
698
|
-
|
|
618
|
+
}, m = [];
|
|
619
|
+
g.forEach((S) => {
|
|
620
|
+
const h = [...m].reverse()[0], C = S.column.depth === p.depth;
|
|
621
|
+
let v, _ = !1;
|
|
622
|
+
if (C && S.column.parent ? v = S.column.parent : (v = S.column, _ = !0), h && (h == null ? void 0 : h.column) === v)
|
|
623
|
+
h.subHeaders.push(S);
|
|
699
624
|
else {
|
|
700
|
-
const
|
|
701
|
-
id: [n,
|
|
702
|
-
isPlaceholder:
|
|
703
|
-
placeholderId:
|
|
704
|
-
depth:
|
|
705
|
-
index:
|
|
625
|
+
const I = jt(t, v, {
|
|
626
|
+
id: [n, c, v.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
627
|
+
isPlaceholder: _,
|
|
628
|
+
placeholderId: _ ? `${m.filter((V) => V.column === v).length}` : void 0,
|
|
629
|
+
depth: c,
|
|
630
|
+
index: m.length
|
|
706
631
|
});
|
|
707
|
-
|
|
632
|
+
I.subHeaders.push(S), m.push(I);
|
|
708
633
|
}
|
|
709
|
-
|
|
710
|
-
}),
|
|
711
|
-
}, d = o.map((
|
|
712
|
-
depth:
|
|
713
|
-
index:
|
|
634
|
+
p.headers.push(S), S.headerGroup = p;
|
|
635
|
+
}), l.push(p), c > 0 && a(m, c - 1);
|
|
636
|
+
}, d = o.map((g, c) => jt(t, g, {
|
|
637
|
+
depth: s,
|
|
638
|
+
index: c
|
|
714
639
|
}));
|
|
715
|
-
|
|
716
|
-
const f = (
|
|
717
|
-
let
|
|
718
|
-
|
|
640
|
+
a(d, s - 1), l.reverse();
|
|
641
|
+
const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
642
|
+
let m = 0, S = 0, h = [0];
|
|
643
|
+
p.subHeaders && p.subHeaders.length ? (h = [], f(p.subHeaders).forEach((v) => {
|
|
719
644
|
let {
|
|
720
|
-
colSpan:
|
|
721
|
-
rowSpan:
|
|
722
|
-
} =
|
|
723
|
-
|
|
724
|
-
})) :
|
|
725
|
-
const
|
|
726
|
-
return
|
|
727
|
-
colSpan:
|
|
728
|
-
rowSpan:
|
|
645
|
+
colSpan: _,
|
|
646
|
+
rowSpan: I
|
|
647
|
+
} = v;
|
|
648
|
+
m += _, h.push(I);
|
|
649
|
+
})) : m = 1;
|
|
650
|
+
const C = Math.min(...h);
|
|
651
|
+
return S = S + C, p.colSpan = m, p.rowSpan = S, {
|
|
652
|
+
colSpan: m,
|
|
653
|
+
rowSpan: S
|
|
729
654
|
};
|
|
730
655
|
});
|
|
731
|
-
return f((r = (i =
|
|
656
|
+
return f((r = (i = l[0]) == null ? void 0 : i.headers) != null ? r : []), l;
|
|
732
657
|
}
|
|
733
|
-
const
|
|
658
|
+
const St = (e, o, t, n, r, i, s) => {
|
|
734
659
|
let u = {
|
|
735
660
|
id: o,
|
|
736
661
|
index: n,
|
|
737
662
|
original: t,
|
|
738
663
|
depth: r,
|
|
739
|
-
parentId:
|
|
664
|
+
parentId: s,
|
|
740
665
|
_valuesCache: {},
|
|
741
666
|
_uniqueValuesCache: {},
|
|
742
|
-
getValue: (
|
|
743
|
-
if (u._valuesCache.hasOwnProperty(
|
|
744
|
-
return u._valuesCache[
|
|
745
|
-
const
|
|
746
|
-
if (
|
|
747
|
-
return u._valuesCache[
|
|
667
|
+
getValue: (l) => {
|
|
668
|
+
if (u._valuesCache.hasOwnProperty(l))
|
|
669
|
+
return u._valuesCache[l];
|
|
670
|
+
const a = e.getColumn(l);
|
|
671
|
+
if (a != null && a.accessorFn)
|
|
672
|
+
return u._valuesCache[l] = a.accessorFn(u.original, n), u._valuesCache[l];
|
|
748
673
|
},
|
|
749
|
-
getUniqueValues: (
|
|
750
|
-
if (u._uniqueValuesCache.hasOwnProperty(
|
|
751
|
-
return u._uniqueValuesCache[
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
754
|
-
return
|
|
674
|
+
getUniqueValues: (l) => {
|
|
675
|
+
if (u._uniqueValuesCache.hasOwnProperty(l))
|
|
676
|
+
return u._uniqueValuesCache[l];
|
|
677
|
+
const a = e.getColumn(l);
|
|
678
|
+
if (a != null && a.accessorFn)
|
|
679
|
+
return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[l] = a.columnDef.getUniqueValues(u.original, n), u._uniqueValuesCache[l]) : (u._uniqueValuesCache[l] = [u.getValue(l)], u._uniqueValuesCache[l]);
|
|
755
680
|
},
|
|
756
|
-
renderValue: (
|
|
757
|
-
var
|
|
758
|
-
return (
|
|
681
|
+
renderValue: (l) => {
|
|
682
|
+
var a;
|
|
683
|
+
return (a = u.getValue(l)) != null ? a : e.options.renderFallbackValue;
|
|
759
684
|
},
|
|
760
685
|
subRows: [],
|
|
761
|
-
getLeafRows: () =>
|
|
686
|
+
getLeafRows: () => uo(u.subRows, (l) => l.subRows),
|
|
762
687
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
763
688
|
getParentRows: () => {
|
|
764
|
-
let
|
|
689
|
+
let l = [], a = u;
|
|
765
690
|
for (; ; ) {
|
|
766
|
-
const d =
|
|
691
|
+
const d = a.getParentRow();
|
|
767
692
|
if (!d) break;
|
|
768
|
-
|
|
693
|
+
l.push(d), a = d;
|
|
769
694
|
}
|
|
770
|
-
return
|
|
695
|
+
return l.reverse();
|
|
771
696
|
},
|
|
772
|
-
getAllCells:
|
|
773
|
-
_getAllCellsByColumnId:
|
|
697
|
+
getAllCells: x(() => [e.getAllLeafColumns()], (l) => l.map((a) => ao(e, u, a, a.id)), y(e.options, "debugRows", "getAllCells")),
|
|
698
|
+
_getAllCellsByColumnId: x(() => [u.getAllCells()], (l) => l.reduce((a, d) => (a[d.column.id] = d, a), {}), y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
774
699
|
};
|
|
775
|
-
for (let
|
|
776
|
-
const
|
|
777
|
-
|
|
700
|
+
for (let l = 0; l < e._features.length; l++) {
|
|
701
|
+
const a = e._features[l];
|
|
702
|
+
a == null || a.createRow == null || a.createRow(u, e);
|
|
778
703
|
}
|
|
779
704
|
return u;
|
|
780
|
-
},
|
|
705
|
+
}, fo = {
|
|
781
706
|
createColumn: (e, o) => {
|
|
782
707
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
783
708
|
if (e._getFacetedMinMaxValues)
|
|
784
709
|
return e._getFacetedMinMaxValues();
|
|
785
710
|
};
|
|
786
711
|
}
|
|
787
|
-
},
|
|
712
|
+
}, gn = (e, o, t) => {
|
|
788
713
|
var n, r;
|
|
789
714
|
const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
790
715
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
791
716
|
};
|
|
792
|
-
|
|
793
|
-
const
|
|
717
|
+
gn.autoRemove = (e) => Z(e);
|
|
718
|
+
const fn = (e, o, t) => {
|
|
794
719
|
var n;
|
|
795
720
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
796
721
|
};
|
|
797
|
-
|
|
798
|
-
const
|
|
722
|
+
fn.autoRemove = (e) => Z(e);
|
|
723
|
+
const pn = (e, o, t) => {
|
|
799
724
|
var n;
|
|
800
725
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
801
726
|
};
|
|
802
|
-
|
|
803
|
-
const
|
|
727
|
+
pn.autoRemove = (e) => Z(e);
|
|
728
|
+
const mn = (e, o, t) => {
|
|
804
729
|
var n;
|
|
805
730
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
806
731
|
};
|
|
807
|
-
|
|
808
|
-
const
|
|
732
|
+
mn.autoRemove = (e) => Z(e);
|
|
733
|
+
const hn = (e, o, t) => !t.some((n) => {
|
|
809
734
|
var r;
|
|
810
735
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
811
736
|
});
|
|
812
|
-
|
|
813
|
-
const
|
|
737
|
+
hn.autoRemove = (e) => Z(e) || !(e != null && e.length);
|
|
738
|
+
const Sn = (e, o, t) => t.some((n) => {
|
|
814
739
|
var r;
|
|
815
740
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
816
741
|
});
|
|
817
|
-
|
|
818
|
-
const
|
|
819
|
-
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
const
|
|
742
|
+
Sn.autoRemove = (e) => Z(e) || !(e != null && e.length);
|
|
743
|
+
const wn = (e, o, t) => e.getValue(o) === t;
|
|
744
|
+
wn.autoRemove = (e) => Z(e);
|
|
745
|
+
const Cn = (e, o, t) => e.getValue(o) == t;
|
|
746
|
+
Cn.autoRemove = (e) => Z(e);
|
|
747
|
+
const wt = (e, o, t) => {
|
|
823
748
|
let [n, r] = t;
|
|
824
749
|
const i = e.getValue(o);
|
|
825
750
|
return i >= n && i <= r;
|
|
826
751
|
};
|
|
827
|
-
|
|
828
|
-
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n,
|
|
829
|
-
if (i >
|
|
752
|
+
wt.resolveFilterValue = (e) => {
|
|
753
|
+
let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, s = t === null || Number.isNaN(r) ? 1 / 0 : r;
|
|
754
|
+
if (i > s) {
|
|
830
755
|
const u = i;
|
|
831
|
-
i =
|
|
756
|
+
i = s, s = u;
|
|
832
757
|
}
|
|
833
|
-
return [i,
|
|
758
|
+
return [i, s];
|
|
834
759
|
};
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
includesString:
|
|
838
|
-
includesStringSensitive:
|
|
839
|
-
equalsString:
|
|
840
|
-
arrIncludes:
|
|
841
|
-
arrIncludesAll:
|
|
842
|
-
arrIncludesSome:
|
|
843
|
-
equals:
|
|
844
|
-
weakEquals:
|
|
845
|
-
inNumberRange:
|
|
760
|
+
wt.autoRemove = (e) => Z(e) || Z(e[0]) && Z(e[1]);
|
|
761
|
+
const ue = {
|
|
762
|
+
includesString: gn,
|
|
763
|
+
includesStringSensitive: fn,
|
|
764
|
+
equalsString: pn,
|
|
765
|
+
arrIncludes: mn,
|
|
766
|
+
arrIncludesAll: hn,
|
|
767
|
+
arrIncludesSome: Sn,
|
|
768
|
+
equals: wn,
|
|
769
|
+
weakEquals: Cn,
|
|
770
|
+
inNumberRange: wt
|
|
846
771
|
};
|
|
847
|
-
function
|
|
772
|
+
function Z(e) {
|
|
848
773
|
return e == null || e === "";
|
|
849
774
|
}
|
|
850
|
-
const
|
|
775
|
+
const po = {
|
|
851
776
|
getDefaultColumnDef: () => ({
|
|
852
777
|
filterFn: "auto"
|
|
853
778
|
}),
|
|
@@ -856,19 +781,19 @@ const Nt = {
|
|
|
856
781
|
...e
|
|
857
782
|
}),
|
|
858
783
|
getDefaultOptions: (e) => ({
|
|
859
|
-
onColumnFiltersChange:
|
|
784
|
+
onColumnFiltersChange: q("columnFilters", e),
|
|
860
785
|
filterFromLeafRows: !1,
|
|
861
786
|
maxLeafRowFilterDepth: 100
|
|
862
787
|
}),
|
|
863
788
|
createColumn: (e, o) => {
|
|
864
789
|
e.getAutoFilterFn = () => {
|
|
865
790
|
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
866
|
-
return typeof n == "string" ?
|
|
791
|
+
return typeof n == "string" ? ue.includesString : typeof n == "number" ? ue.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? ue.equals : Array.isArray(n) ? ue.arrIncludes : ue.weakEquals;
|
|
867
792
|
}, e.getFilterFn = () => {
|
|
868
793
|
var t, n;
|
|
869
|
-
return
|
|
794
|
+
return Ue(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
870
795
|
// @ts-ignore
|
|
871
|
-
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t :
|
|
796
|
+
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : ue[e.columnDef.filterFn]
|
|
872
797
|
);
|
|
873
798
|
}, e.getCanFilter = () => {
|
|
874
799
|
var t, n, r;
|
|
@@ -881,20 +806,20 @@ const Nt = {
|
|
|
881
806
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
882
807
|
}, e.setFilterValue = (t) => {
|
|
883
808
|
o.setColumnFilters((n) => {
|
|
884
|
-
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id),
|
|
885
|
-
if (
|
|
809
|
+
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), s = ge(t, i ? i.value : void 0);
|
|
810
|
+
if (Ht(r, s, e)) {
|
|
886
811
|
var u;
|
|
887
812
|
return (u = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? u : [];
|
|
888
813
|
}
|
|
889
|
-
const
|
|
814
|
+
const l = {
|
|
890
815
|
id: e.id,
|
|
891
|
-
value:
|
|
816
|
+
value: s
|
|
892
817
|
};
|
|
893
818
|
if (i) {
|
|
894
|
-
var
|
|
895
|
-
return (
|
|
819
|
+
var a;
|
|
820
|
+
return (a = n == null ? void 0 : n.map((d) => d.id === e.id ? l : d)) != null ? a : [];
|
|
896
821
|
}
|
|
897
|
-
return n != null && n.length ? [...n,
|
|
822
|
+
return n != null && n.length ? [...n, l] : [l];
|
|
898
823
|
});
|
|
899
824
|
};
|
|
900
825
|
},
|
|
@@ -905,11 +830,11 @@ const Nt = {
|
|
|
905
830
|
e.setColumnFilters = (o) => {
|
|
906
831
|
const t = e.getAllLeafColumns(), n = (r) => {
|
|
907
832
|
var i;
|
|
908
|
-
return (i =
|
|
909
|
-
const u = t.find((
|
|
833
|
+
return (i = ge(o, r)) == null ? void 0 : i.filter((s) => {
|
|
834
|
+
const u = t.find((l) => l.id === s.id);
|
|
910
835
|
if (u) {
|
|
911
|
-
const
|
|
912
|
-
if (
|
|
836
|
+
const l = u.getFilterFn();
|
|
837
|
+
if (Ht(l, s.value, u))
|
|
913
838
|
return !1;
|
|
914
839
|
}
|
|
915
840
|
return !0;
|
|
@@ -922,57 +847,57 @@ const Nt = {
|
|
|
922
847
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
923
848
|
}
|
|
924
849
|
};
|
|
925
|
-
function
|
|
850
|
+
function Ht(e, o, t) {
|
|
926
851
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
927
852
|
}
|
|
928
|
-
const
|
|
853
|
+
const mo = (e, o, t) => t.reduce((n, r) => {
|
|
929
854
|
const i = r.getValue(e);
|
|
930
855
|
return n + (typeof i == "number" ? i : 0);
|
|
931
|
-
}, 0),
|
|
856
|
+
}, 0), ho = (e, o, t) => {
|
|
932
857
|
let n;
|
|
933
858
|
return t.forEach((r) => {
|
|
934
859
|
const i = r.getValue(e);
|
|
935
860
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
936
861
|
}), n;
|
|
937
|
-
},
|
|
862
|
+
}, So = (e, o, t) => {
|
|
938
863
|
let n;
|
|
939
864
|
return t.forEach((r) => {
|
|
940
865
|
const i = r.getValue(e);
|
|
941
866
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
942
867
|
}), n;
|
|
943
|
-
},
|
|
868
|
+
}, wo = (e, o, t) => {
|
|
944
869
|
let n, r;
|
|
945
870
|
return t.forEach((i) => {
|
|
946
|
-
const
|
|
947
|
-
|
|
871
|
+
const s = i.getValue(e);
|
|
872
|
+
s != null && (n === void 0 ? s >= s && (n = r = s) : (n > s && (n = s), r < s && (r = s)));
|
|
948
873
|
}), [n, r];
|
|
949
|
-
},
|
|
874
|
+
}, Co = (e, o) => {
|
|
950
875
|
let t = 0, n = 0;
|
|
951
876
|
if (o.forEach((r) => {
|
|
952
877
|
let i = r.getValue(e);
|
|
953
878
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
954
879
|
}), t) return n / t;
|
|
955
|
-
},
|
|
880
|
+
}, vo = (e, o) => {
|
|
956
881
|
if (!o.length)
|
|
957
882
|
return;
|
|
958
883
|
const t = o.map((i) => i.getValue(e));
|
|
959
|
-
if (!
|
|
884
|
+
if (!lo(t))
|
|
960
885
|
return;
|
|
961
886
|
if (t.length === 1)
|
|
962
887
|
return t[0];
|
|
963
|
-
const n = Math.floor(t.length / 2), r = t.sort((i,
|
|
888
|
+
const n = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
|
|
964
889
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
965
|
-
},
|
|
966
|
-
sum:
|
|
967
|
-
min:
|
|
968
|
-
max:
|
|
969
|
-
extent:
|
|
970
|
-
mean:
|
|
971
|
-
median:
|
|
972
|
-
unique:
|
|
973
|
-
uniqueCount:
|
|
974
|
-
count:
|
|
975
|
-
},
|
|
890
|
+
}, Ro = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), xo = (e, o) => new Set(o.map((t) => t.getValue(e))).size, yo = (e, o) => o.length, et = {
|
|
891
|
+
sum: mo,
|
|
892
|
+
min: ho,
|
|
893
|
+
max: So,
|
|
894
|
+
extent: wo,
|
|
895
|
+
mean: Co,
|
|
896
|
+
median: vo,
|
|
897
|
+
unique: Ro,
|
|
898
|
+
uniqueCount: xo,
|
|
899
|
+
count: yo
|
|
900
|
+
}, Fo = {
|
|
976
901
|
getDefaultColumnDef: () => ({
|
|
977
902
|
aggregatedCell: (e) => {
|
|
978
903
|
var o, t;
|
|
@@ -985,7 +910,7 @@ const zt = (e, o, t) => t.reduce((n, r) => {
|
|
|
985
910
|
...e
|
|
986
911
|
}),
|
|
987
912
|
getDefaultOptions: (e) => ({
|
|
988
|
-
onGroupingChange:
|
|
913
|
+
onGroupingChange: q("grouping", e),
|
|
989
914
|
groupedColumnMode: "reorder"
|
|
990
915
|
}),
|
|
991
916
|
createColumn: (e, o) => {
|
|
@@ -1008,14 +933,14 @@ const zt = (e, o, t) => t.reduce((n, r) => {
|
|
|
1008
933
|
}, e.getAutoAggregationFn = () => {
|
|
1009
934
|
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
1010
935
|
if (typeof n == "number")
|
|
1011
|
-
return
|
|
936
|
+
return et.sum;
|
|
1012
937
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
1013
|
-
return
|
|
938
|
+
return et.extent;
|
|
1014
939
|
}, e.getAggregationFn = () => {
|
|
1015
940
|
var t, n;
|
|
1016
941
|
if (!e)
|
|
1017
942
|
throw new Error();
|
|
1018
|
-
return
|
|
943
|
+
return Ue(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : et[e.columnDef.aggregationFn];
|
|
1019
944
|
};
|
|
1020
945
|
},
|
|
1021
946
|
createTable: (e) => {
|
|
@@ -1039,27 +964,27 @@ const zt = (e, o, t) => t.reduce((n, r) => {
|
|
|
1039
964
|
};
|
|
1040
965
|
}
|
|
1041
966
|
};
|
|
1042
|
-
function
|
|
967
|
+
function _o(e, o, t) {
|
|
1043
968
|
if (!(o != null && o.length) || !t)
|
|
1044
969
|
return e;
|
|
1045
970
|
const n = e.filter((i) => !o.includes(i.id));
|
|
1046
|
-
return t === "remove" ? n : [...o.map((i) => e.find((
|
|
971
|
+
return t === "remove" ? n : [...o.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...n];
|
|
1047
972
|
}
|
|
1048
|
-
const
|
|
973
|
+
const Io = {
|
|
1049
974
|
getInitialState: (e) => ({
|
|
1050
975
|
columnOrder: [],
|
|
1051
976
|
...e
|
|
1052
977
|
}),
|
|
1053
978
|
getDefaultOptions: (e) => ({
|
|
1054
|
-
onColumnOrderChange:
|
|
979
|
+
onColumnOrderChange: q("columnOrder", e)
|
|
1055
980
|
}),
|
|
1056
981
|
createColumn: (e, o) => {
|
|
1057
|
-
e.getIndex =
|
|
982
|
+
e.getIndex = x((t) => [Me(o, t)], (t) => t.findIndex((n) => n.id === e.id), y(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
1058
983
|
var n;
|
|
1059
|
-
return ((n =
|
|
984
|
+
return ((n = Me(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
1060
985
|
}, e.getIsLastColumn = (t) => {
|
|
1061
986
|
var n;
|
|
1062
|
-
const r =
|
|
987
|
+
const r = Me(o, t);
|
|
1063
988
|
return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
|
|
1064
989
|
};
|
|
1065
990
|
},
|
|
@@ -1067,65 +992,65 @@ const Zt = {
|
|
|
1067
992
|
e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
|
|
1068
993
|
var t;
|
|
1069
994
|
e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
1070
|
-
}, e._getOrderColumnsFn =
|
|
995
|
+
}, e._getOrderColumnsFn = x(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
|
|
1071
996
|
let i = [];
|
|
1072
997
|
if (!(o != null && o.length))
|
|
1073
998
|
i = r;
|
|
1074
999
|
else {
|
|
1075
|
-
const
|
|
1076
|
-
for (; u.length &&
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1000
|
+
const s = [...o], u = [...r];
|
|
1001
|
+
for (; u.length && s.length; ) {
|
|
1002
|
+
const l = s.shift(), a = u.findIndex((d) => d.id === l);
|
|
1003
|
+
a > -1 && i.push(u.splice(a, 1)[0]);
|
|
1079
1004
|
}
|
|
1080
1005
|
i = [...i, ...u];
|
|
1081
1006
|
}
|
|
1082
|
-
return
|
|
1083
|
-
},
|
|
1007
|
+
return _o(i, t, n);
|
|
1008
|
+
}, y(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1084
1009
|
}
|
|
1085
|
-
},
|
|
1010
|
+
}, tt = () => ({
|
|
1086
1011
|
left: [],
|
|
1087
1012
|
right: []
|
|
1088
|
-
}),
|
|
1013
|
+
}), Mo = {
|
|
1089
1014
|
getInitialState: (e) => ({
|
|
1090
|
-
columnPinning:
|
|
1015
|
+
columnPinning: tt(),
|
|
1091
1016
|
...e
|
|
1092
1017
|
}),
|
|
1093
1018
|
getDefaultOptions: (e) => ({
|
|
1094
|
-
onColumnPinningChange:
|
|
1019
|
+
onColumnPinningChange: q("columnPinning", e)
|
|
1095
1020
|
}),
|
|
1096
1021
|
createColumn: (e, o) => {
|
|
1097
1022
|
e.pin = (t) => {
|
|
1098
1023
|
const n = e.getLeafColumns().map((r) => r.id).filter(Boolean);
|
|
1099
1024
|
o.setColumnPinning((r) => {
|
|
1100
|
-
var i,
|
|
1025
|
+
var i, s;
|
|
1101
1026
|
if (t === "right") {
|
|
1102
|
-
var u,
|
|
1027
|
+
var u, l;
|
|
1103
1028
|
return {
|
|
1104
1029
|
left: ((u = r == null ? void 0 : r.left) != null ? u : []).filter((f) => !(n != null && n.includes(f))),
|
|
1105
|
-
right: [...((
|
|
1030
|
+
right: [...((l = r == null ? void 0 : r.right) != null ? l : []).filter((f) => !(n != null && n.includes(f))), ...n]
|
|
1106
1031
|
};
|
|
1107
1032
|
}
|
|
1108
1033
|
if (t === "left") {
|
|
1109
|
-
var
|
|
1034
|
+
var a, d;
|
|
1110
1035
|
return {
|
|
1111
|
-
left: [...((
|
|
1036
|
+
left: [...((a = r == null ? void 0 : r.left) != null ? a : []).filter((f) => !(n != null && n.includes(f))), ...n],
|
|
1112
1037
|
right: ((d = r == null ? void 0 : r.right) != null ? d : []).filter((f) => !(n != null && n.includes(f)))
|
|
1113
1038
|
};
|
|
1114
1039
|
}
|
|
1115
1040
|
return {
|
|
1116
1041
|
left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((f) => !(n != null && n.includes(f))),
|
|
1117
|
-
right: ((
|
|
1042
|
+
right: ((s = r == null ? void 0 : r.right) != null ? s : []).filter((f) => !(n != null && n.includes(f)))
|
|
1118
1043
|
};
|
|
1119
1044
|
});
|
|
1120
1045
|
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
|
1121
|
-
var r, i,
|
|
1122
|
-
return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (
|
|
1046
|
+
var r, i, s;
|
|
1047
|
+
return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (s = o.options.enableColumnPinning) != null ? s : o.options.enablePinning) != null ? i : !0);
|
|
1123
1048
|
}), e.getIsPinned = () => {
|
|
1124
1049
|
const t = e.getLeafColumns().map((u) => u.id), {
|
|
1125
1050
|
left: n,
|
|
1126
1051
|
right: r
|
|
1127
|
-
} = o.getState().columnPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)),
|
|
1128
|
-
return i ? "left" :
|
|
1052
|
+
} = o.getState().columnPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), s = t.some((u) => r == null ? void 0 : r.includes(u));
|
|
1053
|
+
return i ? "left" : s ? "right" : !1;
|
|
1129
1054
|
}, e.getPinnedIndex = () => {
|
|
1130
1055
|
var t, n;
|
|
1131
1056
|
const r = e.getIsPinned();
|
|
@@ -1133,21 +1058,21 @@ const Zt = {
|
|
|
1133
1058
|
};
|
|
1134
1059
|
},
|
|
1135
1060
|
createRow: (e, o) => {
|
|
1136
|
-
e.getCenterVisibleCells =
|
|
1061
|
+
e.getCenterVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
|
1137
1062
|
const i = [...n ?? [], ...r ?? []];
|
|
1138
|
-
return t.filter((
|
|
1139
|
-
},
|
|
1063
|
+
return t.filter((s) => !i.includes(s.column.id));
|
|
1064
|
+
}, y(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
|
|
1140
1065
|
...i,
|
|
1141
1066
|
position: "left"
|
|
1142
|
-
})),
|
|
1067
|
+
})), y(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
|
|
1143
1068
|
...i,
|
|
1144
1069
|
position: "right"
|
|
1145
|
-
})),
|
|
1070
|
+
})), y(o.options, "debugRows", "getRightVisibleCells"));
|
|
1146
1071
|
},
|
|
1147
1072
|
createTable: (e) => {
|
|
1148
1073
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
1149
1074
|
var t, n;
|
|
1150
|
-
return e.setColumnPinning(o ?
|
|
1075
|
+
return e.setColumnPinning(o ? tt() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : tt());
|
|
1151
1076
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
1152
1077
|
var t;
|
|
1153
1078
|
const n = e.getState().columnPinning;
|
|
@@ -1156,41 +1081,45 @@ const Zt = {
|
|
|
1156
1081
|
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
|
1157
1082
|
}
|
|
1158
1083
|
return !!((t = n[o]) != null && t.length);
|
|
1159
|
-
}, e.getLeftLeafColumns =
|
|
1084
|
+
}, e.getLeftLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), y(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), y(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
|
|
1160
1085
|
const r = [...t ?? [], ...n ?? []];
|
|
1161
1086
|
return o.filter((i) => !r.includes(i.id));
|
|
1162
|
-
},
|
|
1087
|
+
}, y(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1163
1088
|
}
|
|
1164
|
-
}
|
|
1089
|
+
};
|
|
1090
|
+
function Vo(e) {
|
|
1091
|
+
return e || (typeof document < "u" ? document : null);
|
|
1092
|
+
}
|
|
1093
|
+
const Ae = {
|
|
1165
1094
|
size: 150,
|
|
1166
1095
|
minSize: 20,
|
|
1167
1096
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1168
|
-
},
|
|
1097
|
+
}, nt = () => ({
|
|
1169
1098
|
startOffset: null,
|
|
1170
1099
|
startSize: null,
|
|
1171
1100
|
deltaOffset: null,
|
|
1172
1101
|
deltaPercentage: null,
|
|
1173
1102
|
isResizingColumn: !1,
|
|
1174
1103
|
columnSizingStart: []
|
|
1175
|
-
}),
|
|
1176
|
-
getDefaultColumnDef: () =>
|
|
1104
|
+
}), bo = {
|
|
1105
|
+
getDefaultColumnDef: () => Ae,
|
|
1177
1106
|
getInitialState: (e) => ({
|
|
1178
1107
|
columnSizing: {},
|
|
1179
|
-
columnSizingInfo:
|
|
1108
|
+
columnSizingInfo: nt(),
|
|
1180
1109
|
...e
|
|
1181
1110
|
}),
|
|
1182
1111
|
getDefaultOptions: (e) => ({
|
|
1183
1112
|
columnResizeMode: "onEnd",
|
|
1184
1113
|
columnResizeDirection: "ltr",
|
|
1185
|
-
onColumnSizingChange:
|
|
1186
|
-
onColumnSizingInfoChange:
|
|
1114
|
+
onColumnSizingChange: q("columnSizing", e),
|
|
1115
|
+
onColumnSizingInfoChange: q("columnSizingInfo", e)
|
|
1187
1116
|
}),
|
|
1188
1117
|
createColumn: (e, o) => {
|
|
1189
1118
|
e.getSize = () => {
|
|
1190
1119
|
var t, n, r;
|
|
1191
1120
|
const i = o.getState().columnSizing[e.id];
|
|
1192
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
1193
|
-
}, e.getStart =
|
|
1121
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ae.minSize, (n = i ?? e.columnDef.size) != null ? n : Ae.size), (r = e.columnDef.maxSize) != null ? r : Ae.maxSize);
|
|
1122
|
+
}, e.getStart = x((t) => [t, Me(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), y(o.options, "debugColumns", "getStart")), e.getAfter = x((t) => [t, Me(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), y(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
1194
1123
|
o.setColumnSizing((t) => {
|
|
1195
1124
|
let {
|
|
1196
1125
|
[e.id]: n,
|
|
@@ -1224,27 +1153,27 @@ const Zt = {
|
|
|
1224
1153
|
}, e.getResizeHandler = (t) => {
|
|
1225
1154
|
const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
|
|
1226
1155
|
return (i) => {
|
|
1227
|
-
if (!n || !r || (i.persist == null || i.persist(),
|
|
1156
|
+
if (!n || !r || (i.persist == null || i.persist(), ot(i) && i.touches && i.touches.length > 1))
|
|
1228
1157
|
return;
|
|
1229
|
-
const
|
|
1230
|
-
typeof
|
|
1231
|
-
var
|
|
1232
|
-
const
|
|
1233
|
-
return
|
|
1234
|
-
let [
|
|
1235
|
-
|
|
1158
|
+
const s = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l = ot(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, C) => {
|
|
1159
|
+
typeof C == "number" && (o.setColumnSizingInfo((v) => {
|
|
1160
|
+
var _, I;
|
|
1161
|
+
const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, M = (C - ((_ = v == null ? void 0 : v.startOffset) != null ? _ : 0)) * V, b = Math.max(M / ((I = v == null ? void 0 : v.startSize) != null ? I : 0), -0.999999);
|
|
1162
|
+
return v.columnSizingStart.forEach((P) => {
|
|
1163
|
+
let [L, $] = P;
|
|
1164
|
+
a[L] = Math.round(Math.max($ + $ * b, 0) * 100) / 100;
|
|
1236
1165
|
}), {
|
|
1237
|
-
...
|
|
1238
|
-
deltaOffset:
|
|
1239
|
-
deltaPercentage:
|
|
1166
|
+
...v,
|
|
1167
|
+
deltaOffset: M,
|
|
1168
|
+
deltaPercentage: b
|
|
1240
1169
|
};
|
|
1241
|
-
}), (o.options.columnResizeMode === "onChange" ||
|
|
1242
|
-
...
|
|
1243
|
-
...
|
|
1170
|
+
}), (o.options.columnResizeMode === "onChange" || h === "end") && o.setColumnSizing((v) => ({
|
|
1171
|
+
...v,
|
|
1172
|
+
...a
|
|
1244
1173
|
})));
|
|
1245
|
-
}, f = (
|
|
1246
|
-
d("end",
|
|
1247
|
-
...
|
|
1174
|
+
}, f = (h) => d("move", h), g = (h) => {
|
|
1175
|
+
d("end", h), o.setColumnSizingInfo((C) => ({
|
|
1176
|
+
...C,
|
|
1248
1177
|
isResizingColumn: !1,
|
|
1249
1178
|
startOffset: null,
|
|
1250
1179
|
startSize: null,
|
|
@@ -1252,24 +1181,24 @@ const Zt = {
|
|
|
1252
1181
|
deltaPercentage: null,
|
|
1253
1182
|
columnSizingStart: []
|
|
1254
1183
|
}));
|
|
1255
|
-
},
|
|
1256
|
-
moveHandler: (
|
|
1257
|
-
upHandler: (
|
|
1258
|
-
|
|
1184
|
+
}, c = Vo(t), p = {
|
|
1185
|
+
moveHandler: (h) => f(h.clientX),
|
|
1186
|
+
upHandler: (h) => {
|
|
1187
|
+
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler), g(h.clientX);
|
|
1259
1188
|
}
|
|
1260
|
-
},
|
|
1261
|
-
moveHandler: (
|
|
1262
|
-
upHandler: (
|
|
1263
|
-
var
|
|
1264
|
-
|
|
1189
|
+
}, m = {
|
|
1190
|
+
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
1191
|
+
upHandler: (h) => {
|
|
1192
|
+
var C;
|
|
1193
|
+
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
1265
1194
|
}
|
|
1266
|
-
},
|
|
1195
|
+
}, S = Po() ? {
|
|
1267
1196
|
passive: !1
|
|
1268
1197
|
} : !1;
|
|
1269
|
-
|
|
1270
|
-
...
|
|
1271
|
-
startOffset:
|
|
1272
|
-
startSize:
|
|
1198
|
+
ot(i) ? (c == null || c.addEventListener("touchmove", m.moveHandler, S), c == null || c.addEventListener("touchend", m.upHandler, S)) : (c == null || c.addEventListener("mousemove", p.moveHandler, S), c == null || c.addEventListener("mouseup", p.upHandler, S)), o.setColumnSizingInfo((h) => ({
|
|
1199
|
+
...h,
|
|
1200
|
+
startOffset: l,
|
|
1201
|
+
startSize: s,
|
|
1273
1202
|
deltaOffset: 0,
|
|
1274
1203
|
deltaPercentage: 0,
|
|
1275
1204
|
columnSizingStart: u,
|
|
@@ -1284,7 +1213,7 @@ const Zt = {
|
|
|
1284
1213
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
1285
1214
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
1286
1215
|
var t;
|
|
1287
|
-
e.setColumnSizingInfo(o ?
|
|
1216
|
+
e.setColumnSizingInfo(o ? nt() : (t = e.initialState.columnSizingInfo) != null ? t : nt());
|
|
1288
1217
|
}, e.getTotalSize = () => {
|
|
1289
1218
|
var o, t;
|
|
1290
1219
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
@@ -1300,9 +1229,9 @@ const Zt = {
|
|
|
1300
1229
|
};
|
|
1301
1230
|
}
|
|
1302
1231
|
};
|
|
1303
|
-
let
|
|
1304
|
-
function
|
|
1305
|
-
if (typeof
|
|
1232
|
+
let Ne = null;
|
|
1233
|
+
function Po() {
|
|
1234
|
+
if (typeof Ne == "boolean") return Ne;
|
|
1306
1235
|
let e = !1;
|
|
1307
1236
|
try {
|
|
1308
1237
|
const o = {
|
|
@@ -1315,18 +1244,18 @@ function en() {
|
|
|
1315
1244
|
} catch {
|
|
1316
1245
|
e = !1;
|
|
1317
1246
|
}
|
|
1318
|
-
return
|
|
1247
|
+
return Ne = e, Ne;
|
|
1319
1248
|
}
|
|
1320
|
-
function
|
|
1249
|
+
function ot(e) {
|
|
1321
1250
|
return e.type === "touchstart";
|
|
1322
1251
|
}
|
|
1323
|
-
const
|
|
1252
|
+
const $o = {
|
|
1324
1253
|
getInitialState: (e) => ({
|
|
1325
1254
|
columnVisibility: {},
|
|
1326
1255
|
...e
|
|
1327
1256
|
}),
|
|
1328
1257
|
getDefaultOptions: (e) => ({
|
|
1329
|
-
onColumnVisibilityChange:
|
|
1258
|
+
onColumnVisibilityChange: q("columnVisibility", e)
|
|
1330
1259
|
}),
|
|
1331
1260
|
createColumn: (e, o) => {
|
|
1332
1261
|
e.toggleVisibility = (t) => {
|
|
@@ -1346,10 +1275,10 @@ const tn = {
|
|
|
1346
1275
|
};
|
|
1347
1276
|
},
|
|
1348
1277
|
createRow: (e, o) => {
|
|
1349
|
-
e._getAllVisibleCells =
|
|
1278
|
+
e._getAllVisibleCells = x(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), y(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = x(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], y(o.options, "debugRows", "getVisibleCells"));
|
|
1350
1279
|
},
|
|
1351
1280
|
createTable: (e) => {
|
|
1352
|
-
const o = (t, n) =>
|
|
1281
|
+
const o = (t, n) => x(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), y(e.options, "debugColumns", t));
|
|
1353
1282
|
e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
1354
1283
|
var n;
|
|
1355
1284
|
e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
|
|
@@ -1365,23 +1294,23 @@ const tn = {
|
|
|
1365
1294
|
};
|
|
1366
1295
|
}
|
|
1367
1296
|
};
|
|
1368
|
-
function
|
|
1297
|
+
function Me(e, o) {
|
|
1369
1298
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1370
1299
|
}
|
|
1371
|
-
const
|
|
1300
|
+
const Eo = {
|
|
1372
1301
|
createTable: (e) => {
|
|
1373
1302
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
1374
1303
|
if (e._getGlobalFacetedMinMaxValues)
|
|
1375
1304
|
return e._getGlobalFacetedMinMaxValues();
|
|
1376
1305
|
};
|
|
1377
1306
|
}
|
|
1378
|
-
},
|
|
1307
|
+
}, Do = {
|
|
1379
1308
|
getInitialState: (e) => ({
|
|
1380
1309
|
globalFilter: void 0,
|
|
1381
1310
|
...e
|
|
1382
1311
|
}),
|
|
1383
1312
|
getDefaultOptions: (e) => ({
|
|
1384
|
-
onGlobalFilterChange:
|
|
1313
|
+
onGlobalFilterChange: q("globalFilter", e),
|
|
1385
1314
|
globalFilterFn: "auto",
|
|
1386
1315
|
getColumnCanGlobalFilter: (o) => {
|
|
1387
1316
|
var t;
|
|
@@ -1396,25 +1325,25 @@ const nn = {
|
|
|
1396
1325
|
};
|
|
1397
1326
|
},
|
|
1398
1327
|
createTable: (e) => {
|
|
1399
|
-
e.getGlobalAutoFilterFn = () =>
|
|
1328
|
+
e.getGlobalAutoFilterFn = () => ue.includesString, e.getGlobalFilterFn = () => {
|
|
1400
1329
|
var o, t;
|
|
1401
1330
|
const {
|
|
1402
1331
|
globalFilterFn: n
|
|
1403
1332
|
} = e.options;
|
|
1404
|
-
return
|
|
1333
|
+
return Ue(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : ue[n];
|
|
1405
1334
|
}, e.setGlobalFilter = (o) => {
|
|
1406
1335
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
1407
1336
|
}, e.resetGlobalFilter = (o) => {
|
|
1408
1337
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
1409
1338
|
};
|
|
1410
1339
|
}
|
|
1411
|
-
},
|
|
1340
|
+
}, Lo = {
|
|
1412
1341
|
getInitialState: (e) => ({
|
|
1413
1342
|
expanded: {},
|
|
1414
1343
|
...e
|
|
1415
1344
|
}),
|
|
1416
1345
|
getDefaultOptions: (e) => ({
|
|
1417
|
-
onExpandedChange:
|
|
1346
|
+
onExpandedChange: q("expanded", e),
|
|
1418
1347
|
paginateExpandedRows: !0
|
|
1419
1348
|
}),
|
|
1420
1349
|
createTable: (e) => {
|
|
@@ -1449,8 +1378,8 @@ const nn = {
|
|
|
1449
1378
|
}, e.getExpandedDepth = () => {
|
|
1450
1379
|
let n = 0;
|
|
1451
1380
|
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
|
|
1452
|
-
const
|
|
1453
|
-
n = Math.max(n,
|
|
1381
|
+
const s = i.split(".");
|
|
1382
|
+
n = Math.max(n, s.length);
|
|
1454
1383
|
}), n;
|
|
1455
1384
|
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
|
1456
1385
|
},
|
|
@@ -1459,20 +1388,20 @@ const nn = {
|
|
|
1459
1388
|
o.setExpanded((n) => {
|
|
1460
1389
|
var r;
|
|
1461
1390
|
const i = n === !0 ? !0 : !!(n != null && n[e.id]);
|
|
1462
|
-
let
|
|
1391
|
+
let s = {};
|
|
1463
1392
|
if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((u) => {
|
|
1464
|
-
|
|
1465
|
-
}) :
|
|
1393
|
+
s[u] = !0;
|
|
1394
|
+
}) : s = n, t = (r = t) != null ? r : !i, !i && t)
|
|
1466
1395
|
return {
|
|
1467
|
-
...
|
|
1396
|
+
...s,
|
|
1468
1397
|
[e.id]: !0
|
|
1469
1398
|
};
|
|
1470
1399
|
if (i && !t) {
|
|
1471
1400
|
const {
|
|
1472
1401
|
[e.id]: u,
|
|
1473
|
-
...
|
|
1474
|
-
} =
|
|
1475
|
-
return
|
|
1402
|
+
...l
|
|
1403
|
+
} = s;
|
|
1404
|
+
return l;
|
|
1476
1405
|
}
|
|
1477
1406
|
return n;
|
|
1478
1407
|
});
|
|
@@ -1495,19 +1424,19 @@ const nn = {
|
|
|
1495
1424
|
};
|
|
1496
1425
|
};
|
|
1497
1426
|
}
|
|
1498
|
-
},
|
|
1499
|
-
pageIndex:
|
|
1500
|
-
pageSize:
|
|
1501
|
-
}),
|
|
1427
|
+
}, ut = 0, at = 10, rt = () => ({
|
|
1428
|
+
pageIndex: ut,
|
|
1429
|
+
pageSize: at
|
|
1430
|
+
}), Oo = {
|
|
1502
1431
|
getInitialState: (e) => ({
|
|
1503
1432
|
...e,
|
|
1504
1433
|
pagination: {
|
|
1505
|
-
...
|
|
1434
|
+
...rt(),
|
|
1506
1435
|
...e == null ? void 0 : e.pagination
|
|
1507
1436
|
}
|
|
1508
1437
|
}),
|
|
1509
1438
|
getDefaultOptions: (e) => ({
|
|
1510
|
-
onPaginationChange:
|
|
1439
|
+
onPaginationChange: q("pagination", e)
|
|
1511
1440
|
}),
|
|
1512
1441
|
createTable: (e) => {
|
|
1513
1442
|
let o = !1, t = !1;
|
|
@@ -1526,29 +1455,29 @@ const nn = {
|
|
|
1526
1455
|
});
|
|
1527
1456
|
}
|
|
1528
1457
|
}, e.setPagination = (n) => {
|
|
1529
|
-
const r = (i) =>
|
|
1458
|
+
const r = (i) => ge(n, i);
|
|
1530
1459
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1531
1460
|
}, e.resetPagination = (n) => {
|
|
1532
1461
|
var r;
|
|
1533
|
-
e.setPagination(n ?
|
|
1462
|
+
e.setPagination(n ? rt() : (r = e.initialState.pagination) != null ? r : rt());
|
|
1534
1463
|
}, e.setPageIndex = (n) => {
|
|
1535
1464
|
e.setPagination((r) => {
|
|
1536
|
-
let i =
|
|
1537
|
-
const
|
|
1538
|
-
return i = Math.max(0, Math.min(i,
|
|
1465
|
+
let i = ge(n, r.pageIndex);
|
|
1466
|
+
const s = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
1467
|
+
return i = Math.max(0, Math.min(i, s)), {
|
|
1539
1468
|
...r,
|
|
1540
1469
|
pageIndex: i
|
|
1541
1470
|
};
|
|
1542
1471
|
});
|
|
1543
1472
|
}, e.resetPageIndex = (n) => {
|
|
1544
1473
|
var r, i;
|
|
1545
|
-
e.setPageIndex(n ?
|
|
1474
|
+
e.setPageIndex(n ? ut : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : ut);
|
|
1546
1475
|
}, e.resetPageSize = (n) => {
|
|
1547
1476
|
var r, i;
|
|
1548
|
-
e.setPageSize(n ?
|
|
1477
|
+
e.setPageSize(n ? at : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : at);
|
|
1549
1478
|
}, e.setPageSize = (n) => {
|
|
1550
1479
|
e.setPagination((r) => {
|
|
1551
|
-
const i = Math.max(1,
|
|
1480
|
+
const i = Math.max(1, ge(n, r.pageSize)), s = r.pageSize * r.pageIndex, u = Math.floor(s / i);
|
|
1552
1481
|
return {
|
|
1553
1482
|
...r,
|
|
1554
1483
|
pageIndex: u,
|
|
@@ -1557,15 +1486,15 @@ const nn = {
|
|
|
1557
1486
|
});
|
|
1558
1487
|
}, e.setPageCount = (n) => e.setPagination((r) => {
|
|
1559
1488
|
var i;
|
|
1560
|
-
let
|
|
1561
|
-
return typeof
|
|
1489
|
+
let s = ge(n, (i = e.options.pageCount) != null ? i : -1);
|
|
1490
|
+
return typeof s == "number" && (s = Math.max(-1, s)), {
|
|
1562
1491
|
...r,
|
|
1563
|
-
pageCount:
|
|
1492
|
+
pageCount: s
|
|
1564
1493
|
};
|
|
1565
|
-
}), e.getPageOptions =
|
|
1494
|
+
}), e.getPageOptions = x(() => [e.getPageCount()], (n) => {
|
|
1566
1495
|
let r = [];
|
|
1567
|
-
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i,
|
|
1568
|
-
},
|
|
1496
|
+
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, s) => s)), r;
|
|
1497
|
+
}, y(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1569
1498
|
const {
|
|
1570
1499
|
pageIndex: n
|
|
1571
1500
|
} = e.getState().pagination, r = e.getPageCount();
|
|
@@ -1578,49 +1507,49 @@ const nn = {
|
|
|
1578
1507
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1579
1508
|
};
|
|
1580
1509
|
}
|
|
1581
|
-
},
|
|
1510
|
+
}, it = () => ({
|
|
1582
1511
|
top: [],
|
|
1583
1512
|
bottom: []
|
|
1584
|
-
}),
|
|
1513
|
+
}), Ao = {
|
|
1585
1514
|
getInitialState: (e) => ({
|
|
1586
|
-
rowPinning:
|
|
1515
|
+
rowPinning: it(),
|
|
1587
1516
|
...e
|
|
1588
1517
|
}),
|
|
1589
1518
|
getDefaultOptions: (e) => ({
|
|
1590
|
-
onRowPinningChange:
|
|
1519
|
+
onRowPinningChange: q("rowPinning", e)
|
|
1591
1520
|
}),
|
|
1592
1521
|
createRow: (e, o) => {
|
|
1593
1522
|
e.pin = (t, n, r) => {
|
|
1594
|
-
const i = n ? e.getLeafRows().map((
|
|
1523
|
+
const i = n ? e.getLeafRows().map((l) => {
|
|
1595
1524
|
let {
|
|
1596
|
-
id:
|
|
1597
|
-
} =
|
|
1598
|
-
return
|
|
1599
|
-
}) : [],
|
|
1525
|
+
id: a
|
|
1526
|
+
} = l;
|
|
1527
|
+
return a;
|
|
1528
|
+
}) : [], s = r ? e.getParentRows().map((l) => {
|
|
1600
1529
|
let {
|
|
1601
|
-
id:
|
|
1602
|
-
} =
|
|
1603
|
-
return
|
|
1604
|
-
}) : [], u = /* @__PURE__ */ new Set([...
|
|
1605
|
-
o.setRowPinning((
|
|
1606
|
-
var
|
|
1530
|
+
id: a
|
|
1531
|
+
} = l;
|
|
1532
|
+
return a;
|
|
1533
|
+
}) : [], u = /* @__PURE__ */ new Set([...s, e.id, ...i]);
|
|
1534
|
+
o.setRowPinning((l) => {
|
|
1535
|
+
var a, d;
|
|
1607
1536
|
if (t === "bottom") {
|
|
1608
|
-
var f,
|
|
1537
|
+
var f, g;
|
|
1609
1538
|
return {
|
|
1610
|
-
top: ((f =
|
|
1611
|
-
bottom: [...((
|
|
1539
|
+
top: ((f = l == null ? void 0 : l.top) != null ? f : []).filter((m) => !(u != null && u.has(m))),
|
|
1540
|
+
bottom: [...((g = l == null ? void 0 : l.bottom) != null ? g : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)]
|
|
1612
1541
|
};
|
|
1613
1542
|
}
|
|
1614
1543
|
if (t === "top") {
|
|
1615
|
-
var
|
|
1544
|
+
var c, p;
|
|
1616
1545
|
return {
|
|
1617
|
-
top: [...((
|
|
1618
|
-
bottom: ((
|
|
1546
|
+
top: [...((c = l == null ? void 0 : l.top) != null ? c : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)],
|
|
1547
|
+
bottom: ((p = l == null ? void 0 : l.bottom) != null ? p : []).filter((m) => !(u != null && u.has(m)))
|
|
1619
1548
|
};
|
|
1620
1549
|
}
|
|
1621
1550
|
return {
|
|
1622
|
-
top: ((
|
|
1623
|
-
bottom: ((d =
|
|
1551
|
+
top: ((a = l == null ? void 0 : l.top) != null ? a : []).filter((m) => !(u != null && u.has(m))),
|
|
1552
|
+
bottom: ((d = l == null ? void 0 : l.bottom) != null ? d : []).filter((m) => !(u != null && u.has(m)))
|
|
1624
1553
|
};
|
|
1625
1554
|
});
|
|
1626
1555
|
}, e.getCanPin = () => {
|
|
@@ -1634,16 +1563,16 @@ const nn = {
|
|
|
1634
1563
|
const t = [e.id], {
|
|
1635
1564
|
top: n,
|
|
1636
1565
|
bottom: r
|
|
1637
|
-
} = o.getState().rowPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)),
|
|
1638
|
-
return i ? "top" :
|
|
1566
|
+
} = o.getState().rowPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), s = t.some((u) => r == null ? void 0 : r.includes(u));
|
|
1567
|
+
return i ? "top" : s ? "bottom" : !1;
|
|
1639
1568
|
}, e.getPinnedIndex = () => {
|
|
1640
1569
|
var t, n;
|
|
1641
1570
|
const r = e.getIsPinned();
|
|
1642
1571
|
if (!r) return -1;
|
|
1643
|
-
const i = (t = r === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((
|
|
1572
|
+
const i = (t = r === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((s) => {
|
|
1644
1573
|
let {
|
|
1645
1574
|
id: u
|
|
1646
|
-
} =
|
|
1575
|
+
} = s;
|
|
1647
1576
|
return u;
|
|
1648
1577
|
});
|
|
1649
1578
|
return (n = i == null ? void 0 : i.indexOf(e.id)) != null ? n : -1;
|
|
@@ -1652,7 +1581,7 @@ const nn = {
|
|
|
1652
1581
|
createTable: (e) => {
|
|
1653
1582
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1654
1583
|
var t, n;
|
|
1655
|
-
return e.setRowPinning(o ?
|
|
1584
|
+
return e.setRowPinning(o ? it() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : it());
|
|
1656
1585
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1657
1586
|
var t;
|
|
1658
1587
|
const n = e.getState().rowPinning;
|
|
@@ -1666,29 +1595,29 @@ const nn = {
|
|
|
1666
1595
|
return ((r = e.options.keepPinnedRows) == null || r ? (
|
|
1667
1596
|
//get all rows that are pinned even if they would not be otherwise visible
|
|
1668
1597
|
//account for expanded parent rows, but not pagination or filtering
|
|
1669
|
-
(t ?? []).map((
|
|
1670
|
-
const u = e.getRow(
|
|
1598
|
+
(t ?? []).map((s) => {
|
|
1599
|
+
const u = e.getRow(s, !0);
|
|
1671
1600
|
return u.getIsAllParentsExpanded() ? u : null;
|
|
1672
1601
|
})
|
|
1673
1602
|
) : (
|
|
1674
1603
|
//else get only visible rows that are pinned
|
|
1675
|
-
(t ?? []).map((
|
|
1676
|
-
)).filter(Boolean).map((
|
|
1677
|
-
...
|
|
1604
|
+
(t ?? []).map((s) => o.find((u) => u.id === s))
|
|
1605
|
+
)).filter(Boolean).map((s) => ({
|
|
1606
|
+
...s,
|
|
1678
1607
|
position: n
|
|
1679
1608
|
}));
|
|
1680
|
-
}, e.getTopRows =
|
|
1609
|
+
}, e.getTopRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), y(e.options, "debugRows", "getTopRows")), e.getBottomRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), y(e.options, "debugRows", "getBottomRows")), e.getCenterRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
|
|
1681
1610
|
const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1682
1611
|
return o.filter((i) => !r.has(i.id));
|
|
1683
|
-
},
|
|
1612
|
+
}, y(e.options, "debugRows", "getCenterRows"));
|
|
1684
1613
|
}
|
|
1685
|
-
},
|
|
1614
|
+
}, No = {
|
|
1686
1615
|
getInitialState: (e) => ({
|
|
1687
1616
|
rowSelection: {},
|
|
1688
1617
|
...e
|
|
1689
1618
|
}),
|
|
1690
1619
|
getDefaultOptions: (e) => ({
|
|
1691
|
-
onRowSelectionChange:
|
|
1620
|
+
onRowSelectionChange: q("rowSelection", e),
|
|
1692
1621
|
enableRowSelection: !0,
|
|
1693
1622
|
enableMultiRowSelection: !0,
|
|
1694
1623
|
enableSubRowSelection: !0
|
|
@@ -1717,21 +1646,21 @@ const nn = {
|
|
|
1717
1646
|
...t
|
|
1718
1647
|
};
|
|
1719
1648
|
return e.getRowModel().rows.forEach((i) => {
|
|
1720
|
-
|
|
1649
|
+
ct(r, i.id, n, !0, e);
|
|
1721
1650
|
}), r;
|
|
1722
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
1651
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1723
1652
|
rows: [],
|
|
1724
1653
|
flatRows: [],
|
|
1725
1654
|
rowsById: {}
|
|
1726
|
-
},
|
|
1655
|
+
}, y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1727
1656
|
rows: [],
|
|
1728
1657
|
flatRows: [],
|
|
1729
1658
|
rowsById: {}
|
|
1730
|
-
},
|
|
1659
|
+
}, y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1731
1660
|
rows: [],
|
|
1732
1661
|
flatRows: [],
|
|
1733
1662
|
rowsById: {}
|
|
1734
|
-
},
|
|
1663
|
+
}, y(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1735
1664
|
const o = e.getFilteredRowModel().flatRows, {
|
|
1736
1665
|
rowSelection: t
|
|
1737
1666
|
} = e.getState();
|
|
@@ -1760,29 +1689,29 @@ const nn = {
|
|
|
1760
1689
|
e.toggleSelected = (t, n) => {
|
|
1761
1690
|
const r = e.getIsSelected();
|
|
1762
1691
|
o.setRowSelection((i) => {
|
|
1763
|
-
var
|
|
1692
|
+
var s;
|
|
1764
1693
|
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
|
|
1765
1694
|
return i;
|
|
1766
1695
|
const u = {
|
|
1767
1696
|
...i
|
|
1768
1697
|
};
|
|
1769
|
-
return
|
|
1698
|
+
return ct(u, e.id, t, (s = n == null ? void 0 : n.selectChildren) != null ? s : !0, o), u;
|
|
1770
1699
|
});
|
|
1771
1700
|
}, e.getIsSelected = () => {
|
|
1772
1701
|
const {
|
|
1773
1702
|
rowSelection: t
|
|
1774
1703
|
} = o.getState();
|
|
1775
|
-
return
|
|
1704
|
+
return Ct(e, t);
|
|
1776
1705
|
}, e.getIsSomeSelected = () => {
|
|
1777
1706
|
const {
|
|
1778
1707
|
rowSelection: t
|
|
1779
1708
|
} = o.getState();
|
|
1780
|
-
return
|
|
1709
|
+
return dt(e, t) === "some";
|
|
1781
1710
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1782
1711
|
const {
|
|
1783
1712
|
rowSelection: t
|
|
1784
1713
|
} = o.getState();
|
|
1785
|
-
return
|
|
1714
|
+
return dt(e, t) === "all";
|
|
1786
1715
|
}, e.getCanSelect = () => {
|
|
1787
1716
|
var t;
|
|
1788
1717
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1800,21 +1729,21 @@ const nn = {
|
|
|
1800
1729
|
};
|
|
1801
1730
|
};
|
|
1802
1731
|
}
|
|
1803
|
-
},
|
|
1732
|
+
}, ct = (e, o, t, n, r) => {
|
|
1804
1733
|
var i;
|
|
1805
|
-
const
|
|
1806
|
-
t ? (
|
|
1734
|
+
const s = r.getRow(o, !0);
|
|
1735
|
+
t ? (s.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), s.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((u) => ct(e, u.id, t, n, r));
|
|
1807
1736
|
};
|
|
1808
|
-
function
|
|
1809
|
-
const t = e.getState().rowSelection, n = [], r = {}, i = function(
|
|
1810
|
-
return
|
|
1811
|
-
var
|
|
1812
|
-
const d =
|
|
1813
|
-
if (d && (n.push(
|
|
1814
|
-
...
|
|
1815
|
-
subRows: i(
|
|
1737
|
+
function st(e, o) {
|
|
1738
|
+
const t = e.getState().rowSelection, n = [], r = {}, i = function(s, u) {
|
|
1739
|
+
return s.map((l) => {
|
|
1740
|
+
var a;
|
|
1741
|
+
const d = Ct(l, t);
|
|
1742
|
+
if (d && (n.push(l), r[l.id] = l), (a = l.subRows) != null && a.length && (l = {
|
|
1743
|
+
...l,
|
|
1744
|
+
subRows: i(l.subRows)
|
|
1816
1745
|
}), d)
|
|
1817
|
-
return
|
|
1746
|
+
return l;
|
|
1818
1747
|
}).filter(Boolean);
|
|
1819
1748
|
};
|
|
1820
1749
|
return {
|
|
@@ -1823,59 +1752,59 @@ function te(e, o) {
|
|
|
1823
1752
|
rowsById: r
|
|
1824
1753
|
};
|
|
1825
1754
|
}
|
|
1826
|
-
function
|
|
1755
|
+
function Ct(e, o) {
|
|
1827
1756
|
var t;
|
|
1828
1757
|
return (t = o[e.id]) != null ? t : !1;
|
|
1829
1758
|
}
|
|
1830
|
-
function
|
|
1759
|
+
function dt(e, o, t) {
|
|
1831
1760
|
var n;
|
|
1832
1761
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1833
1762
|
let r = !0, i = !1;
|
|
1834
|
-
return e.subRows.forEach((
|
|
1835
|
-
if (!(i && !r) && (
|
|
1836
|
-
const u =
|
|
1763
|
+
return e.subRows.forEach((s) => {
|
|
1764
|
+
if (!(i && !r) && (s.getCanSelect() && (Ct(s, o) ? i = !0 : r = !1), s.subRows && s.subRows.length)) {
|
|
1765
|
+
const u = dt(s, o);
|
|
1837
1766
|
u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
|
|
1838
1767
|
}
|
|
1839
1768
|
}), r ? "all" : i ? "some" : !1;
|
|
1840
1769
|
}
|
|
1841
|
-
const
|
|
1770
|
+
const gt = /([0-9]+)/gm, To = (e, o, t) => vn(fe(e.getValue(t)).toLowerCase(), fe(o.getValue(t)).toLowerCase()), jo = (e, o, t) => vn(fe(e.getValue(t)), fe(o.getValue(t))), Ho = (e, o, t) => vt(fe(e.getValue(t)).toLowerCase(), fe(o.getValue(t)).toLowerCase()), Go = (e, o, t) => vt(fe(e.getValue(t)), fe(o.getValue(t))), zo = (e, o, t) => {
|
|
1842
1771
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1843
1772
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1844
|
-
},
|
|
1845
|
-
function
|
|
1773
|
+
}, Bo = (e, o, t) => vt(e.getValue(t), o.getValue(t));
|
|
1774
|
+
function vt(e, o) {
|
|
1846
1775
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1847
1776
|
}
|
|
1848
|
-
function
|
|
1777
|
+
function fe(e) {
|
|
1849
1778
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1850
1779
|
}
|
|
1851
|
-
function
|
|
1852
|
-
const t = e.split(
|
|
1780
|
+
function vn(e, o) {
|
|
1781
|
+
const t = e.split(gt).filter(Boolean), n = o.split(gt).filter(Boolean);
|
|
1853
1782
|
for (; t.length && n.length; ) {
|
|
1854
|
-
const r = t.shift(), i = n.shift(),
|
|
1855
|
-
if (isNaN(
|
|
1783
|
+
const r = t.shift(), i = n.shift(), s = parseInt(r, 10), u = parseInt(i, 10), l = [s, u].sort();
|
|
1784
|
+
if (isNaN(l[0])) {
|
|
1856
1785
|
if (r > i)
|
|
1857
1786
|
return 1;
|
|
1858
1787
|
if (i > r)
|
|
1859
1788
|
return -1;
|
|
1860
1789
|
continue;
|
|
1861
1790
|
}
|
|
1862
|
-
if (isNaN(
|
|
1863
|
-
return isNaN(
|
|
1864
|
-
if (
|
|
1791
|
+
if (isNaN(l[1]))
|
|
1792
|
+
return isNaN(s) ? -1 : 1;
|
|
1793
|
+
if (s > u)
|
|
1865
1794
|
return 1;
|
|
1866
|
-
if (u >
|
|
1795
|
+
if (u > s)
|
|
1867
1796
|
return -1;
|
|
1868
1797
|
}
|
|
1869
1798
|
return t.length - n.length;
|
|
1870
1799
|
}
|
|
1871
|
-
const
|
|
1872
|
-
alphanumeric:
|
|
1873
|
-
alphanumericCaseSensitive:
|
|
1874
|
-
text:
|
|
1875
|
-
textCaseSensitive:
|
|
1876
|
-
datetime:
|
|
1877
|
-
basic:
|
|
1878
|
-
},
|
|
1800
|
+
const Fe = {
|
|
1801
|
+
alphanumeric: To,
|
|
1802
|
+
alphanumericCaseSensitive: jo,
|
|
1803
|
+
text: Ho,
|
|
1804
|
+
textCaseSensitive: Go,
|
|
1805
|
+
datetime: zo,
|
|
1806
|
+
basic: Bo
|
|
1807
|
+
}, ko = {
|
|
1879
1808
|
getInitialState: (e) => ({
|
|
1880
1809
|
sorting: [],
|
|
1881
1810
|
...e
|
|
@@ -1885,7 +1814,7 @@ const H = {
|
|
|
1885
1814
|
sortUndefined: 1
|
|
1886
1815
|
}),
|
|
1887
1816
|
getDefaultOptions: (e) => ({
|
|
1888
|
-
onSortingChange:
|
|
1817
|
+
onSortingChange: q("sorting", e),
|
|
1889
1818
|
isMultiSortEvent: (o) => o.shiftKey
|
|
1890
1819
|
}),
|
|
1891
1820
|
createColumn: (e, o) => {
|
|
@@ -1895,11 +1824,11 @@ const H = {
|
|
|
1895
1824
|
for (const r of t) {
|
|
1896
1825
|
const i = r == null ? void 0 : r.getValue(e.id);
|
|
1897
1826
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1898
|
-
return
|
|
1899
|
-
if (typeof i == "string" && (n = !0, i.split(
|
|
1900
|
-
return
|
|
1827
|
+
return Fe.datetime;
|
|
1828
|
+
if (typeof i == "string" && (n = !0, i.split(gt).length > 1))
|
|
1829
|
+
return Fe.alphanumeric;
|
|
1901
1830
|
}
|
|
1902
|
-
return n ?
|
|
1831
|
+
return n ? Fe.text : Fe.basic;
|
|
1903
1832
|
}, e.getAutoSortDir = () => {
|
|
1904
1833
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1905
1834
|
return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
@@ -1907,35 +1836,35 @@ const H = {
|
|
|
1907
1836
|
var t, n;
|
|
1908
1837
|
if (!e)
|
|
1909
1838
|
throw new Error();
|
|
1910
|
-
return
|
|
1839
|
+
return Ue(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : Fe[e.columnDef.sortingFn];
|
|
1911
1840
|
}, e.toggleSorting = (t, n) => {
|
|
1912
1841
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1913
|
-
o.setSorting((
|
|
1914
|
-
const u =
|
|
1915
|
-
let
|
|
1916
|
-
if (
|
|
1917
|
-
var
|
|
1918
|
-
|
|
1842
|
+
o.setSorting((s) => {
|
|
1843
|
+
const u = s == null ? void 0 : s.find((c) => c.id === e.id), l = s == null ? void 0 : s.findIndex((c) => c.id === e.id);
|
|
1844
|
+
let a = [], d, f = i ? t : r === "desc";
|
|
1845
|
+
if (s != null && s.length && e.getCanMultiSort() && n ? u ? d = "toggle" : d = "add" : s != null && s.length && l !== s.length - 1 ? d = "replace" : u ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
|
|
1846
|
+
var g;
|
|
1847
|
+
a = [...s, {
|
|
1919
1848
|
id: e.id,
|
|
1920
1849
|
desc: f
|
|
1921
|
-
}],
|
|
1922
|
-
} else d === "toggle" ?
|
|
1923
|
-
...
|
|
1850
|
+
}], a.splice(0, a.length - ((g = o.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
|
|
1851
|
+
} else d === "toggle" ? a = s.map((c) => c.id === e.id ? {
|
|
1852
|
+
...c,
|
|
1924
1853
|
desc: f
|
|
1925
|
-
} :
|
|
1854
|
+
} : c) : d === "remove" ? a = s.filter((c) => c.id !== e.id) : a = [{
|
|
1926
1855
|
id: e.id,
|
|
1927
1856
|
desc: f
|
|
1928
1857
|
}];
|
|
1929
|
-
return
|
|
1858
|
+
return a;
|
|
1930
1859
|
});
|
|
1931
1860
|
}, e.getFirstSortDir = () => {
|
|
1932
1861
|
var t, n;
|
|
1933
1862
|
return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
|
|
1934
1863
|
}, e.getNextSortingOrder = (t) => {
|
|
1935
1864
|
var n, r;
|
|
1936
|
-
const i = e.getFirstSortDir(),
|
|
1937
|
-
return
|
|
1938
|
-
(!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 :
|
|
1865
|
+
const i = e.getFirstSortDir(), s = e.getIsSorted();
|
|
1866
|
+
return s ? s !== i && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
|
|
1867
|
+
(!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : s === "desc" ? "asc" : "desc" : i;
|
|
1939
1868
|
}, e.getCanSort = () => {
|
|
1940
1869
|
var t, n;
|
|
1941
1870
|
return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
|
|
@@ -1964,46 +1893,46 @@ const H = {
|
|
|
1964
1893
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1965
1894
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
1966
1895
|
}
|
|
1967
|
-
},
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1896
|
+
}, qo = [
|
|
1897
|
+
go,
|
|
1898
|
+
$o,
|
|
1899
|
+
Io,
|
|
1900
|
+
Mo,
|
|
1901
|
+
fo,
|
|
1902
|
+
po,
|
|
1903
|
+
Eo,
|
|
1975
1904
|
//depends on ColumnFaceting
|
|
1976
|
-
|
|
1905
|
+
Do,
|
|
1977
1906
|
//depends on ColumnFiltering
|
|
1978
|
-
|
|
1979
|
-
|
|
1907
|
+
ko,
|
|
1908
|
+
Fo,
|
|
1980
1909
|
//depends on RowSorting
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1910
|
+
Lo,
|
|
1911
|
+
Oo,
|
|
1912
|
+
Ao,
|
|
1913
|
+
No,
|
|
1914
|
+
bo
|
|
1986
1915
|
];
|
|
1987
|
-
function
|
|
1916
|
+
function Uo(e) {
|
|
1988
1917
|
var o, t;
|
|
1989
1918
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1990
|
-
const n = [...
|
|
1919
|
+
const n = [...qo, ...(o = e._features) != null ? o : []];
|
|
1991
1920
|
let r = {
|
|
1992
1921
|
_features: n
|
|
1993
1922
|
};
|
|
1994
|
-
const i = r._features.reduce((
|
|
1923
|
+
const i = r._features.reduce((g, c) => Object.assign(g, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}), s = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
|
|
1995
1924
|
...i,
|
|
1996
|
-
...
|
|
1925
|
+
...g
|
|
1997
1926
|
};
|
|
1998
|
-
let
|
|
1927
|
+
let l = {
|
|
1999
1928
|
...{},
|
|
2000
1929
|
...(t = e.initialState) != null ? t : {}
|
|
2001
1930
|
};
|
|
2002
|
-
r._features.forEach((
|
|
2003
|
-
var
|
|
2004
|
-
|
|
1931
|
+
r._features.forEach((g) => {
|
|
1932
|
+
var c;
|
|
1933
|
+
l = (c = g.getInitialState == null ? void 0 : g.getInitialState(l)) != null ? c : l;
|
|
2005
1934
|
});
|
|
2006
|
-
const
|
|
1935
|
+
const a = [];
|
|
2007
1936
|
let d = !1;
|
|
2008
1937
|
const f = {
|
|
2009
1938
|
_features: n,
|
|
@@ -2011,108 +1940,108 @@ function Sn(e) {
|
|
|
2011
1940
|
...i,
|
|
2012
1941
|
...e
|
|
2013
1942
|
},
|
|
2014
|
-
initialState:
|
|
2015
|
-
_queue: (
|
|
2016
|
-
|
|
2017
|
-
for (;
|
|
2018
|
-
|
|
1943
|
+
initialState: l,
|
|
1944
|
+
_queue: (g) => {
|
|
1945
|
+
a.push(g), d || (d = !0, Promise.resolve().then(() => {
|
|
1946
|
+
for (; a.length; )
|
|
1947
|
+
a.shift()();
|
|
2019
1948
|
d = !1;
|
|
2020
|
-
}).catch((
|
|
2021
|
-
throw
|
|
1949
|
+
}).catch((c) => setTimeout(() => {
|
|
1950
|
+
throw c;
|
|
2022
1951
|
})));
|
|
2023
1952
|
},
|
|
2024
1953
|
reset: () => {
|
|
2025
1954
|
r.setState(r.initialState);
|
|
2026
1955
|
},
|
|
2027
|
-
setOptions: (
|
|
2028
|
-
const
|
|
2029
|
-
r.options =
|
|
1956
|
+
setOptions: (g) => {
|
|
1957
|
+
const c = ge(g, r.options);
|
|
1958
|
+
r.options = s(c);
|
|
2030
1959
|
},
|
|
2031
1960
|
getState: () => r.options.state,
|
|
2032
|
-
setState: (
|
|
2033
|
-
r.options.onStateChange == null || r.options.onStateChange(
|
|
1961
|
+
setState: (g) => {
|
|
1962
|
+
r.options.onStateChange == null || r.options.onStateChange(g);
|
|
2034
1963
|
},
|
|
2035
|
-
_getRowId: (
|
|
2036
|
-
var
|
|
2037
|
-
return (
|
|
1964
|
+
_getRowId: (g, c, p) => {
|
|
1965
|
+
var m;
|
|
1966
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(g, c, p)) != null ? m : `${p ? [p.id, c].join(".") : c}`;
|
|
2038
1967
|
},
|
|
2039
1968
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
2040
1969
|
// The final calls start at the bottom of the model,
|
|
2041
1970
|
// expanded rows, which then work their way up
|
|
2042
1971
|
getRowModel: () => r.getPaginationRowModel(),
|
|
2043
1972
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
2044
|
-
getRow: (
|
|
2045
|
-
let
|
|
2046
|
-
if (!
|
|
2047
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${
|
|
2048
|
-
return
|
|
1973
|
+
getRow: (g, c) => {
|
|
1974
|
+
let p = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[g];
|
|
1975
|
+
if (!p && (p = r.getCoreRowModel().rowsById[g], !p))
|
|
1976
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
1977
|
+
return p;
|
|
2049
1978
|
},
|
|
2050
|
-
_getDefaultColumnDef:
|
|
2051
|
-
var
|
|
2052
|
-
return
|
|
2053
|
-
header: (
|
|
2054
|
-
const
|
|
2055
|
-
return
|
|
1979
|
+
_getDefaultColumnDef: x(() => [r.options.defaultColumn], (g) => {
|
|
1980
|
+
var c;
|
|
1981
|
+
return g = (c = g) != null ? c : {}, {
|
|
1982
|
+
header: (p) => {
|
|
1983
|
+
const m = p.header.column.columnDef;
|
|
1984
|
+
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
2056
1985
|
},
|
|
2057
1986
|
// footer: props => props.header.column.id,
|
|
2058
|
-
cell: (
|
|
2059
|
-
var
|
|
2060
|
-
return (
|
|
1987
|
+
cell: (p) => {
|
|
1988
|
+
var m, S;
|
|
1989
|
+
return (m = (S = p.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? m : null;
|
|
2061
1990
|
},
|
|
2062
|
-
...r._features.reduce((
|
|
2063
|
-
...
|
|
1991
|
+
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
1992
|
+
...g
|
|
2064
1993
|
};
|
|
2065
|
-
},
|
|
1994
|
+
}, y(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2066
1995
|
_getColumnDefs: () => r.options.columns,
|
|
2067
|
-
getAllColumns:
|
|
2068
|
-
const
|
|
2069
|
-
return
|
|
2070
|
-
const
|
|
2071
|
-
return
|
|
1996
|
+
getAllColumns: x(() => [r._getColumnDefs()], (g) => {
|
|
1997
|
+
const c = function(p, m, S) {
|
|
1998
|
+
return S === void 0 && (S = 0), p.map((h) => {
|
|
1999
|
+
const C = co(r, h, S, m), v = h;
|
|
2000
|
+
return C.columns = v.columns ? c(v.columns, C, S + 1) : [], C;
|
|
2072
2001
|
});
|
|
2073
2002
|
};
|
|
2074
|
-
return
|
|
2075
|
-
},
|
|
2076
|
-
getAllFlatColumns:
|
|
2077
|
-
_getAllFlatColumnsById:
|
|
2078
|
-
getAllLeafColumns:
|
|
2079
|
-
let
|
|
2080
|
-
return
|
|
2081
|
-
},
|
|
2082
|
-
getColumn: (
|
|
2083
|
-
const
|
|
2084
|
-
return process.env.NODE_ENV !== "production" && !
|
|
2003
|
+
return c(g);
|
|
2004
|
+
}, y(e, "debugColumns", "getAllColumns")),
|
|
2005
|
+
getAllFlatColumns: x(() => [r.getAllColumns()], (g) => g.flatMap((c) => c.getFlatColumns()), y(e, "debugColumns", "getAllFlatColumns")),
|
|
2006
|
+
_getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (g) => g.reduce((c, p) => (c[p.id] = p, c), {}), y(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2007
|
+
getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (g, c) => {
|
|
2008
|
+
let p = g.flatMap((m) => m.getLeafColumns());
|
|
2009
|
+
return c(p);
|
|
2010
|
+
}, y(e, "debugColumns", "getAllLeafColumns")),
|
|
2011
|
+
getColumn: (g) => {
|
|
2012
|
+
const c = r._getAllFlatColumnsById()[g];
|
|
2013
|
+
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${g}' does not exist.`), c;
|
|
2085
2014
|
}
|
|
2086
2015
|
};
|
|
2087
2016
|
Object.assign(r, f);
|
|
2088
|
-
for (let
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2017
|
+
for (let g = 0; g < r._features.length; g++) {
|
|
2018
|
+
const c = r._features[g];
|
|
2019
|
+
c == null || c.createTable == null || c.createTable(r);
|
|
2091
2020
|
}
|
|
2092
2021
|
return r;
|
|
2093
2022
|
}
|
|
2094
|
-
function
|
|
2095
|
-
return (e) =>
|
|
2023
|
+
function Ko() {
|
|
2024
|
+
return (e) => x(() => [e.options.data], (o) => {
|
|
2096
2025
|
const t = {
|
|
2097
2026
|
rows: [],
|
|
2098
2027
|
flatRows: [],
|
|
2099
2028
|
rowsById: {}
|
|
2100
|
-
}, n = function(r, i,
|
|
2029
|
+
}, n = function(r, i, s) {
|
|
2101
2030
|
i === void 0 && (i = 0);
|
|
2102
2031
|
const u = [];
|
|
2103
|
-
for (let
|
|
2104
|
-
const d =
|
|
2032
|
+
for (let a = 0; a < r.length; a++) {
|
|
2033
|
+
const d = St(e, e._getRowId(r[a], a, s), r[a], a, i, void 0, s == null ? void 0 : s.id);
|
|
2105
2034
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, u.push(d), e.options.getSubRows) {
|
|
2106
|
-
var
|
|
2107
|
-
d.originalSubRows = e.options.getSubRows(r[
|
|
2035
|
+
var l;
|
|
2036
|
+
d.originalSubRows = e.options.getSubRows(r[a], a), (l = d.originalSubRows) != null && l.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
2108
2037
|
}
|
|
2109
2038
|
}
|
|
2110
2039
|
return u;
|
|
2111
2040
|
};
|
|
2112
2041
|
return t.rows = n(o), t;
|
|
2113
|
-
},
|
|
2042
|
+
}, y(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2114
2043
|
}
|
|
2115
|
-
function
|
|
2044
|
+
function Xo(e) {
|
|
2116
2045
|
const o = [], t = (n) => {
|
|
2117
2046
|
var r;
|
|
2118
2047
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2123,29 +2052,29 @@ function Cn(e) {
|
|
|
2123
2052
|
rowsById: e.rowsById
|
|
2124
2053
|
};
|
|
2125
2054
|
}
|
|
2126
|
-
function Je(e, o, t) {
|
|
2127
|
-
return t.options.filterFromLeafRows ? Rn(e, o, t) : vn(e, o, t);
|
|
2128
|
-
}
|
|
2129
2055
|
function Rn(e, o, t) {
|
|
2056
|
+
return t.options.filterFromLeafRows ? Wo(e, o, t) : Qo(e, o, t);
|
|
2057
|
+
}
|
|
2058
|
+
function Wo(e, o, t) {
|
|
2130
2059
|
var n;
|
|
2131
|
-
const r = [], i = {},
|
|
2132
|
-
|
|
2060
|
+
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2061
|
+
a === void 0 && (a = 0);
|
|
2133
2062
|
const d = [];
|
|
2134
|
-
for (let
|
|
2063
|
+
for (let g = 0; g < l.length; g++) {
|
|
2135
2064
|
var f;
|
|
2136
|
-
let
|
|
2137
|
-
const
|
|
2138
|
-
if (
|
|
2139
|
-
if (
|
|
2140
|
-
d.push(
|
|
2065
|
+
let c = l[g];
|
|
2066
|
+
const p = St(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2067
|
+
if (p.columnFilters = c.columnFilters, (f = c.subRows) != null && f.length && a < s) {
|
|
2068
|
+
if (p.subRows = u(c.subRows, a + 1), c = p, o(c) && !p.subRows.length) {
|
|
2069
|
+
d.push(c), i[c.id] = c, r.push(c);
|
|
2141
2070
|
continue;
|
|
2142
2071
|
}
|
|
2143
|
-
if (o(
|
|
2144
|
-
d.push(
|
|
2072
|
+
if (o(c) || p.subRows.length) {
|
|
2073
|
+
d.push(c), i[c.id] = c, r.push(c);
|
|
2145
2074
|
continue;
|
|
2146
2075
|
}
|
|
2147
2076
|
} else
|
|
2148
|
-
|
|
2077
|
+
c = p, o(c) && (d.push(c), i[c.id] = c, r.push(c));
|
|
2149
2078
|
}
|
|
2150
2079
|
return d;
|
|
2151
2080
|
};
|
|
@@ -2155,20 +2084,20 @@ function Rn(e, o, t) {
|
|
|
2155
2084
|
rowsById: i
|
|
2156
2085
|
};
|
|
2157
2086
|
}
|
|
2158
|
-
function
|
|
2087
|
+
function Qo(e, o, t) {
|
|
2159
2088
|
var n;
|
|
2160
|
-
const r = [], i = {},
|
|
2161
|
-
|
|
2089
|
+
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2090
|
+
a === void 0 && (a = 0);
|
|
2162
2091
|
const d = [];
|
|
2163
|
-
for (let
|
|
2164
|
-
let
|
|
2165
|
-
if (o(
|
|
2092
|
+
for (let g = 0; g < l.length; g++) {
|
|
2093
|
+
let c = l[g];
|
|
2094
|
+
if (o(c)) {
|
|
2166
2095
|
var f;
|
|
2167
|
-
if ((f =
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2096
|
+
if ((f = c.subRows) != null && f.length && a < s) {
|
|
2097
|
+
const m = St(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2098
|
+
m.subRows = u(c.subRows, a + 1), c = m;
|
|
2170
2099
|
}
|
|
2171
|
-
d.push(
|
|
2100
|
+
d.push(c), r.push(c), i[c.id] = c;
|
|
2172
2101
|
}
|
|
2173
2102
|
}
|
|
2174
2103
|
return d;
|
|
@@ -2179,109 +2108,109 @@ function vn(e, o, t) {
|
|
|
2179
2108
|
rowsById: i
|
|
2180
2109
|
};
|
|
2181
2110
|
}
|
|
2182
|
-
function
|
|
2183
|
-
return (e, o) =>
|
|
2111
|
+
function Jo() {
|
|
2112
|
+
return (e, o) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
|
|
2184
2113
|
if (!t.rows.length || !(n != null && n.length) && !r)
|
|
2185
2114
|
return t;
|
|
2186
|
-
const i = [...n.map((u) => u.id).filter((u) => u !== o), r ? "__global__" : void 0].filter(Boolean),
|
|
2187
|
-
for (let
|
|
2188
|
-
if (u.columnFilters[i[
|
|
2115
|
+
const i = [...n.map((u) => u.id).filter((u) => u !== o), r ? "__global__" : void 0].filter(Boolean), s = (u) => {
|
|
2116
|
+
for (let l = 0; l < i.length; l++)
|
|
2117
|
+
if (u.columnFilters[i[l]] === !1)
|
|
2189
2118
|
return !1;
|
|
2190
2119
|
return !0;
|
|
2191
2120
|
};
|
|
2192
|
-
return
|
|
2193
|
-
},
|
|
2121
|
+
return Rn(t.rows, s, e);
|
|
2122
|
+
}, y(e.options, "debugTable", "getFacetedRowModel"));
|
|
2194
2123
|
}
|
|
2195
|
-
function
|
|
2196
|
-
return (e, o) =>
|
|
2124
|
+
function Yo() {
|
|
2125
|
+
return (e, o) => x(() => {
|
|
2197
2126
|
var t;
|
|
2198
2127
|
return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
|
|
2199
2128
|
}, (t) => {
|
|
2200
2129
|
if (!t) return /* @__PURE__ */ new Map();
|
|
2201
2130
|
let n = /* @__PURE__ */ new Map();
|
|
2202
2131
|
for (let i = 0; i < t.flatRows.length; i++) {
|
|
2203
|
-
const
|
|
2204
|
-
for (let u = 0; u <
|
|
2205
|
-
const
|
|
2206
|
-
if (n.has(
|
|
2132
|
+
const s = t.flatRows[i].getUniqueValues(o);
|
|
2133
|
+
for (let u = 0; u < s.length; u++) {
|
|
2134
|
+
const l = s[u];
|
|
2135
|
+
if (n.has(l)) {
|
|
2207
2136
|
var r;
|
|
2208
|
-
n.set(
|
|
2137
|
+
n.set(l, ((r = n.get(l)) != null ? r : 0) + 1);
|
|
2209
2138
|
} else
|
|
2210
|
-
n.set(
|
|
2139
|
+
n.set(l, 1);
|
|
2211
2140
|
}
|
|
2212
2141
|
}
|
|
2213
2142
|
return n;
|
|
2214
|
-
},
|
|
2143
|
+
}, y(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
|
|
2215
2144
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return (e) =>
|
|
2145
|
+
function Zo() {
|
|
2146
|
+
return (e) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2218
2147
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2219
|
-
for (let
|
|
2220
|
-
o.flatRows[
|
|
2148
|
+
for (let g = 0; g < o.flatRows.length; g++)
|
|
2149
|
+
o.flatRows[g].columnFilters = {}, o.flatRows[g].columnFiltersMeta = {};
|
|
2221
2150
|
return o;
|
|
2222
2151
|
}
|
|
2223
2152
|
const r = [], i = [];
|
|
2224
|
-
(t ?? []).forEach((
|
|
2225
|
-
var
|
|
2226
|
-
const
|
|
2227
|
-
if (!
|
|
2153
|
+
(t ?? []).forEach((g) => {
|
|
2154
|
+
var c;
|
|
2155
|
+
const p = e.getColumn(g.id);
|
|
2156
|
+
if (!p)
|
|
2228
2157
|
return;
|
|
2229
|
-
const
|
|
2230
|
-
if (!
|
|
2231
|
-
process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${
|
|
2158
|
+
const m = p.getFilterFn();
|
|
2159
|
+
if (!m) {
|
|
2160
|
+
process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${p.id}.`);
|
|
2232
2161
|
return;
|
|
2233
2162
|
}
|
|
2234
2163
|
r.push({
|
|
2235
|
-
id:
|
|
2236
|
-
filterFn:
|
|
2237
|
-
resolvedValue: (
|
|
2164
|
+
id: g.id,
|
|
2165
|
+
filterFn: m,
|
|
2166
|
+
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(g.value)) != null ? c : g.value
|
|
2238
2167
|
});
|
|
2239
2168
|
});
|
|
2240
|
-
const
|
|
2241
|
-
n && u &&
|
|
2242
|
-
var
|
|
2169
|
+
const s = (t ?? []).map((g) => g.id), u = e.getGlobalFilterFn(), l = e.getAllLeafColumns().filter((g) => g.getCanGlobalFilter());
|
|
2170
|
+
n && u && l.length && (s.push("__global__"), l.forEach((g) => {
|
|
2171
|
+
var c;
|
|
2243
2172
|
i.push({
|
|
2244
|
-
id:
|
|
2173
|
+
id: g.id,
|
|
2245
2174
|
filterFn: u,
|
|
2246
|
-
resolvedValue: (
|
|
2175
|
+
resolvedValue: (c = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? c : n
|
|
2247
2176
|
});
|
|
2248
2177
|
}));
|
|
2249
|
-
let
|
|
2250
|
-
for (let
|
|
2251
|
-
const
|
|
2252
|
-
if (
|
|
2253
|
-
for (let
|
|
2254
|
-
|
|
2255
|
-
const
|
|
2256
|
-
|
|
2257
|
-
|
|
2178
|
+
let a, d;
|
|
2179
|
+
for (let g = 0; g < o.flatRows.length; g++) {
|
|
2180
|
+
const c = o.flatRows[g];
|
|
2181
|
+
if (c.columnFilters = {}, r.length)
|
|
2182
|
+
for (let p = 0; p < r.length; p++) {
|
|
2183
|
+
a = r[p];
|
|
2184
|
+
const m = a.id;
|
|
2185
|
+
c.columnFilters[m] = a.filterFn(c, m, a.resolvedValue, (S) => {
|
|
2186
|
+
c.columnFiltersMeta[m] = S;
|
|
2258
2187
|
});
|
|
2259
2188
|
}
|
|
2260
2189
|
if (i.length) {
|
|
2261
|
-
for (let
|
|
2262
|
-
d = i[
|
|
2263
|
-
const
|
|
2264
|
-
if (d.filterFn(
|
|
2265
|
-
|
|
2190
|
+
for (let p = 0; p < i.length; p++) {
|
|
2191
|
+
d = i[p];
|
|
2192
|
+
const m = d.id;
|
|
2193
|
+
if (d.filterFn(c, m, d.resolvedValue, (S) => {
|
|
2194
|
+
c.columnFiltersMeta[m] = S;
|
|
2266
2195
|
})) {
|
|
2267
|
-
|
|
2196
|
+
c.columnFilters.__global__ = !0;
|
|
2268
2197
|
break;
|
|
2269
2198
|
}
|
|
2270
2199
|
}
|
|
2271
|
-
|
|
2200
|
+
c.columnFilters.__global__ !== !0 && (c.columnFilters.__global__ = !1);
|
|
2272
2201
|
}
|
|
2273
2202
|
}
|
|
2274
|
-
const f = (
|
|
2275
|
-
for (let
|
|
2276
|
-
if (
|
|
2203
|
+
const f = (g) => {
|
|
2204
|
+
for (let c = 0; c < s.length; c++)
|
|
2205
|
+
if (g.columnFilters[s[c]] === !1)
|
|
2277
2206
|
return !1;
|
|
2278
2207
|
return !0;
|
|
2279
2208
|
};
|
|
2280
|
-
return
|
|
2281
|
-
},
|
|
2209
|
+
return Rn(o.rows, f, e);
|
|
2210
|
+
}, y(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2282
2211
|
}
|
|
2283
|
-
function
|
|
2284
|
-
return (o) =>
|
|
2212
|
+
function er(e) {
|
|
2213
|
+
return (o) => x(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2285
2214
|
if (!n.rows.length)
|
|
2286
2215
|
return n;
|
|
2287
2216
|
const {
|
|
@@ -2289,76 +2218,76 @@ function yn(e) {
|
|
|
2289
2218
|
pageIndex: i
|
|
2290
2219
|
} = t;
|
|
2291
2220
|
let {
|
|
2292
|
-
rows:
|
|
2221
|
+
rows: s,
|
|
2293
2222
|
flatRows: u,
|
|
2294
|
-
rowsById:
|
|
2223
|
+
rowsById: l
|
|
2295
2224
|
} = n;
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2225
|
+
const a = r * i, d = a + r;
|
|
2226
|
+
s = s.slice(a, d);
|
|
2298
2227
|
let f;
|
|
2299
2228
|
o.options.paginateExpandedRows ? f = {
|
|
2300
|
-
rows:
|
|
2229
|
+
rows: s,
|
|
2301
2230
|
flatRows: u,
|
|
2302
|
-
rowsById:
|
|
2303
|
-
} : f =
|
|
2304
|
-
rows:
|
|
2231
|
+
rowsById: l
|
|
2232
|
+
} : f = Xo({
|
|
2233
|
+
rows: s,
|
|
2305
2234
|
flatRows: u,
|
|
2306
|
-
rowsById:
|
|
2235
|
+
rowsById: l
|
|
2307
2236
|
}), f.flatRows = [];
|
|
2308
|
-
const
|
|
2309
|
-
f.flatRows.push(
|
|
2237
|
+
const g = (c) => {
|
|
2238
|
+
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(g);
|
|
2310
2239
|
};
|
|
2311
|
-
return f.rows.forEach(
|
|
2312
|
-
},
|
|
2240
|
+
return f.rows.forEach(g), f;
|
|
2241
|
+
}, y(o.options, "debugTable", "getPaginationRowModel"));
|
|
2313
2242
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return (e) =>
|
|
2243
|
+
function tr() {
|
|
2244
|
+
return (e) => x(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2316
2245
|
if (!t.rows.length || !(o != null && o.length))
|
|
2317
2246
|
return t;
|
|
2318
|
-
const n = e.getState().sorting, r = [], i = n.filter((
|
|
2319
|
-
var
|
|
2320
|
-
return (
|
|
2321
|
-
}),
|
|
2322
|
-
i.forEach((
|
|
2323
|
-
const
|
|
2324
|
-
|
|
2325
|
-
sortUndefined:
|
|
2326
|
-
invertSorting:
|
|
2327
|
-
sortingFn:
|
|
2247
|
+
const n = e.getState().sorting, r = [], i = n.filter((l) => {
|
|
2248
|
+
var a;
|
|
2249
|
+
return (a = e.getColumn(l.id)) == null ? void 0 : a.getCanSort();
|
|
2250
|
+
}), s = {};
|
|
2251
|
+
i.forEach((l) => {
|
|
2252
|
+
const a = e.getColumn(l.id);
|
|
2253
|
+
a && (s[l.id] = {
|
|
2254
|
+
sortUndefined: a.columnDef.sortUndefined,
|
|
2255
|
+
invertSorting: a.columnDef.invertSorting,
|
|
2256
|
+
sortingFn: a.getSortingFn()
|
|
2328
2257
|
});
|
|
2329
2258
|
});
|
|
2330
|
-
const u = (
|
|
2331
|
-
const
|
|
2259
|
+
const u = (l) => {
|
|
2260
|
+
const a = l.map((d) => ({
|
|
2332
2261
|
...d
|
|
2333
2262
|
}));
|
|
2334
|
-
return
|
|
2335
|
-
for (let
|
|
2336
|
-
var
|
|
2337
|
-
const
|
|
2338
|
-
let
|
|
2339
|
-
if (
|
|
2340
|
-
const
|
|
2341
|
-
if (
|
|
2342
|
-
if (
|
|
2343
|
-
if (
|
|
2344
|
-
|
|
2263
|
+
return a.sort((d, f) => {
|
|
2264
|
+
for (let c = 0; c < i.length; c += 1) {
|
|
2265
|
+
var g;
|
|
2266
|
+
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (g = p == null ? void 0 : p.desc) != null ? g : !1;
|
|
2267
|
+
let C = 0;
|
|
2268
|
+
if (S) {
|
|
2269
|
+
const v = d.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, V = _ === void 0;
|
|
2270
|
+
if (I || V) {
|
|
2271
|
+
if (S === "first") return I ? -1 : 1;
|
|
2272
|
+
if (S === "last") return I ? 1 : -1;
|
|
2273
|
+
C = I && V ? 0 : I ? S : -S;
|
|
2345
2274
|
}
|
|
2346
2275
|
}
|
|
2347
|
-
if (
|
|
2348
|
-
return
|
|
2276
|
+
if (C === 0 && (C = m.sortingFn(d, f, p.id)), C !== 0)
|
|
2277
|
+
return h && (C *= -1), m.invertSorting && (C *= -1), C;
|
|
2349
2278
|
}
|
|
2350
2279
|
return d.index - f.index;
|
|
2351
|
-
}),
|
|
2280
|
+
}), a.forEach((d) => {
|
|
2352
2281
|
var f;
|
|
2353
2282
|
r.push(d), (f = d.subRows) != null && f.length && (d.subRows = u(d.subRows));
|
|
2354
|
-
}),
|
|
2283
|
+
}), a;
|
|
2355
2284
|
};
|
|
2356
2285
|
return {
|
|
2357
2286
|
rows: u(t.rows),
|
|
2358
2287
|
flatRows: r,
|
|
2359
2288
|
rowsById: t.rowsById
|
|
2360
2289
|
};
|
|
2361
|
-
},
|
|
2290
|
+
}, y(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
2362
2291
|
}
|
|
2363
2292
|
/**
|
|
2364
2293
|
* react-table
|
|
@@ -2370,22 +2299,22 @@ function $n() {
|
|
|
2370
2299
|
*
|
|
2371
2300
|
* @license MIT
|
|
2372
2301
|
*/
|
|
2373
|
-
function
|
|
2374
|
-
return e ?
|
|
2302
|
+
function He(e, o) {
|
|
2303
|
+
return e ? nr(e) ? /* @__PURE__ */ ae.createElement(e, o) : e : null;
|
|
2375
2304
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return
|
|
2305
|
+
function nr(e) {
|
|
2306
|
+
return or(e) || typeof e == "function" || rr(e);
|
|
2378
2307
|
}
|
|
2379
|
-
function
|
|
2308
|
+
function or(e) {
|
|
2380
2309
|
return typeof e == "function" && (() => {
|
|
2381
2310
|
const o = Object.getPrototypeOf(e);
|
|
2382
2311
|
return o.prototype && o.prototype.isReactComponent;
|
|
2383
2312
|
})();
|
|
2384
2313
|
}
|
|
2385
|
-
function
|
|
2314
|
+
function rr(e) {
|
|
2386
2315
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2387
2316
|
}
|
|
2388
|
-
function
|
|
2317
|
+
function ir(e) {
|
|
2389
2318
|
const o = {
|
|
2390
2319
|
state: {},
|
|
2391
2320
|
// Dummy state
|
|
@@ -2394,9 +2323,9 @@ function Pn(e) {
|
|
|
2394
2323
|
// noop
|
|
2395
2324
|
renderFallbackValue: null,
|
|
2396
2325
|
...e
|
|
2397
|
-
}, [t] =
|
|
2398
|
-
current:
|
|
2399
|
-
})), [n, r] =
|
|
2326
|
+
}, [t] = ae.useState(() => ({
|
|
2327
|
+
current: Uo(o)
|
|
2328
|
+
})), [n, r] = ae.useState(() => t.current.initialState);
|
|
2400
2329
|
return t.current.setOptions((i) => ({
|
|
2401
2330
|
...i,
|
|
2402
2331
|
...e,
|
|
@@ -2406,70 +2335,70 @@ function Pn(e) {
|
|
|
2406
2335
|
},
|
|
2407
2336
|
// Similarly, we'll maintain both our internal state and any user-provided
|
|
2408
2337
|
// state.
|
|
2409
|
-
onStateChange: (
|
|
2410
|
-
r(
|
|
2338
|
+
onStateChange: (s) => {
|
|
2339
|
+
r(s), e.onStateChange == null || e.onStateChange(s);
|
|
2411
2340
|
}
|
|
2412
2341
|
})), t.current;
|
|
2413
2342
|
}
|
|
2414
|
-
const
|
|
2343
|
+
const sr = ({
|
|
2415
2344
|
page: e = 1,
|
|
2416
2345
|
between: o = 3,
|
|
2417
2346
|
totalPages: t,
|
|
2418
2347
|
changePage: n,
|
|
2419
2348
|
next: r = !0,
|
|
2420
2349
|
ellipsis: i = 0,
|
|
2421
|
-
classes:
|
|
2350
|
+
classes: s
|
|
2422
2351
|
}) => {
|
|
2423
2352
|
o = o < 1 ? 1 : o, e = Math.min(Math.max(e, 1), t), i = Math.min(Math.max(i, 0), o - 2);
|
|
2424
|
-
const u = Array.from({ length: t }, (d, f) => f),
|
|
2425
|
-
let
|
|
2426
|
-
return t <
|
|
2353
|
+
const u = Array.from({ length: t }, (d, f) => f), l = o * 2 + 1;
|
|
2354
|
+
let a;
|
|
2355
|
+
return t < l ? a = u : e - 1 <= o ? a = u.slice(0, l - (i > 0 ? i + 1 : 0)) : e + o >= t ? a = u.slice(t - l + (i > 0 ? i + 1 : 0), t) : a = u.slice(
|
|
2427
2356
|
e - 1 - (o - (i > 0 ? i + 1 : 0)),
|
|
2428
2357
|
e + (o - (i > 0 ? i + 1 : 0))
|
|
2429
|
-
), /* @__PURE__ */
|
|
2430
|
-
r && /* @__PURE__ */
|
|
2431
|
-
|
|
2358
|
+
), /* @__PURE__ */ w.jsxs("div", { className: F("flex", s == null ? void 0 : s.root), children: [
|
|
2359
|
+
r && /* @__PURE__ */ w.jsx(
|
|
2360
|
+
de,
|
|
2432
2361
|
{
|
|
2433
2362
|
size: "sm",
|
|
2434
2363
|
intent: "ghost",
|
|
2435
|
-
className:
|
|
2364
|
+
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", s == null ? void 0 : s.button),
|
|
2436
2365
|
disabled: e <= 1,
|
|
2437
2366
|
onClick: () => e > 1 && n(e - 2),
|
|
2438
|
-
children: /* @__PURE__ */
|
|
2367
|
+
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2439
2368
|
}
|
|
2440
2369
|
),
|
|
2441
|
-
t >
|
|
2442
|
-
|
|
2370
|
+
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ w.jsx(
|
|
2371
|
+
de,
|
|
2443
2372
|
{
|
|
2444
2373
|
size: "sm",
|
|
2445
2374
|
intent: "ghost",
|
|
2446
|
-
className:
|
|
2375
|
+
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2447
2376
|
onClick: () => d !== e - 1 && n(d),
|
|
2448
2377
|
children: d + 1
|
|
2449
2378
|
},
|
|
2450
2379
|
d
|
|
2451
2380
|
)),
|
|
2452
|
-
t >
|
|
2453
|
-
|
|
2381
|
+
t > l && i > 0 && e - 1 > o && /* @__PURE__ */ w.jsx(
|
|
2382
|
+
de,
|
|
2454
2383
|
{
|
|
2455
2384
|
size: "sm",
|
|
2456
2385
|
intent: "ghost",
|
|
2457
|
-
className:
|
|
2386
|
+
className: F("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", s == null ? void 0 : s.ellipsis),
|
|
2458
2387
|
children: "..."
|
|
2459
2388
|
}
|
|
2460
2389
|
),
|
|
2461
|
-
|
|
2390
|
+
a.map((d) => {
|
|
2462
2391
|
const f = d === e - 1;
|
|
2463
|
-
return /* @__PURE__ */
|
|
2464
|
-
|
|
2392
|
+
return /* @__PURE__ */ w.jsx(
|
|
2393
|
+
de,
|
|
2465
2394
|
{
|
|
2466
2395
|
size: "sm",
|
|
2467
|
-
className:
|
|
2396
|
+
className: F(
|
|
2468
2397
|
"mob-body-regular-l w-[40px] p-0 text-color-dark",
|
|
2469
2398
|
{
|
|
2470
|
-
[`text-color-primary-default ${
|
|
2399
|
+
[`text-color-primary-default ${s == null ? void 0 : s.active}`]: f
|
|
2471
2400
|
},
|
|
2472
|
-
|
|
2401
|
+
s == null ? void 0 : s.button
|
|
2473
2402
|
),
|
|
2474
2403
|
intent: f ? "secondary" : "ghost",
|
|
2475
2404
|
onClick: () => !f && n(d),
|
|
@@ -2478,60 +2407,60 @@ const En = ({
|
|
|
2478
2407
|
d
|
|
2479
2408
|
);
|
|
2480
2409
|
}),
|
|
2481
|
-
t >
|
|
2482
|
-
|
|
2410
|
+
t > l && i > 0 && e < t - o && /* @__PURE__ */ w.jsx(
|
|
2411
|
+
de,
|
|
2483
2412
|
{
|
|
2484
2413
|
size: "sm",
|
|
2485
2414
|
intent: "ghost",
|
|
2486
|
-
className:
|
|
2415
|
+
className: F("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", s == null ? void 0 : s.ellipsis),
|
|
2487
2416
|
children: "..."
|
|
2488
2417
|
}
|
|
2489
2418
|
),
|
|
2490
|
-
t >
|
|
2491
|
-
|
|
2419
|
+
t > l && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((d) => /* @__PURE__ */ w.jsx(
|
|
2420
|
+
de,
|
|
2492
2421
|
{
|
|
2493
2422
|
size: "sm",
|
|
2494
|
-
className:
|
|
2423
|
+
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2495
2424
|
intent: "ghost",
|
|
2496
2425
|
onClick: () => d !== e - 1 && n(d),
|
|
2497
2426
|
children: d + 1
|
|
2498
2427
|
},
|
|
2499
2428
|
d
|
|
2500
2429
|
)),
|
|
2501
|
-
r && /* @__PURE__ */
|
|
2502
|
-
|
|
2430
|
+
r && /* @__PURE__ */ w.jsx(
|
|
2431
|
+
de,
|
|
2503
2432
|
{
|
|
2504
2433
|
size: "sm",
|
|
2505
2434
|
intent: "ghost",
|
|
2506
|
-
className:
|
|
2435
|
+
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", s == null ? void 0 : s.button),
|
|
2507
2436
|
disabled: e >= t,
|
|
2508
2437
|
onClick: () => e < t && n(e),
|
|
2509
|
-
children: /* @__PURE__ */
|
|
2438
|
+
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight" })
|
|
2510
2439
|
}
|
|
2511
2440
|
)
|
|
2512
2441
|
] });
|
|
2513
|
-
},
|
|
2514
|
-
const
|
|
2515
|
-
return /* @__PURE__ */
|
|
2516
|
-
/* @__PURE__ */
|
|
2442
|
+
}, lr = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2443
|
+
const s = t * e, u = s > r ? r : s;
|
|
2444
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2445
|
+
/* @__PURE__ */ w.jsxs("span", { className: F("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
2517
2446
|
"Показано ",
|
|
2518
2447
|
u,
|
|
2519
2448
|
" из ",
|
|
2520
2449
|
r
|
|
2521
2450
|
] }),
|
|
2522
|
-
/* @__PURE__ */
|
|
2523
|
-
|
|
2451
|
+
/* @__PURE__ */ w.jsx(
|
|
2452
|
+
sr,
|
|
2524
2453
|
{
|
|
2525
2454
|
totalPages: o,
|
|
2526
|
-
changePage: (
|
|
2455
|
+
changePage: (l) => n(l),
|
|
2527
2456
|
page: e,
|
|
2528
2457
|
ellipsis: 1,
|
|
2529
2458
|
classes: i == null ? void 0 : i.pagination
|
|
2530
2459
|
}
|
|
2531
2460
|
)
|
|
2532
2461
|
] });
|
|
2533
|
-
},
|
|
2534
|
-
const i = r !== !1 && t.getPageCount() > 1,
|
|
2462
|
+
}, ur = ({ mode: e, enableHeaders: o, table: t, classes: n, pagination: r }) => {
|
|
2463
|
+
const i = r !== !1 && t.getPageCount() > 1, s = {
|
|
2535
2464
|
pageCount: t.getPageCount(),
|
|
2536
2465
|
rowsCount: t.getCoreRowModel().rows.length,
|
|
2537
2466
|
pageSize: t.getState().pagination.pageSize,
|
|
@@ -2539,39 +2468,39 @@ const En = ({
|
|
|
2539
2468
|
onPageIndexChange: t.setPageIndex,
|
|
2540
2469
|
classes: n == null ? void 0 : n.pagination
|
|
2541
2470
|
};
|
|
2542
|
-
return /* @__PURE__ */
|
|
2543
|
-
/* @__PURE__ */
|
|
2544
|
-
o && /* @__PURE__ */
|
|
2545
|
-
|
|
2471
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2472
|
+
/* @__PURE__ */ w.jsxs(un, { className: F("w-full", n == null ? void 0 : n.table), children: [
|
|
2473
|
+
o && /* @__PURE__ */ w.jsx(an, { className: "px-2", children: t.getHeaderGroups().map((u) => /* @__PURE__ */ w.jsx(
|
|
2474
|
+
Te,
|
|
2546
2475
|
{
|
|
2547
|
-
className:
|
|
2476
|
+
className: F(
|
|
2548
2477
|
"w-full",
|
|
2549
2478
|
{
|
|
2550
2479
|
"border-b border-b-[rgba(234,237,241,1)]": e === "solid"
|
|
2551
2480
|
},
|
|
2552
2481
|
n == null ? void 0 : n.tableHeader
|
|
2553
2482
|
),
|
|
2554
|
-
children: u.headers.map((
|
|
2555
|
-
|
|
2483
|
+
children: u.headers.map((l) => /* @__PURE__ */ w.jsx(
|
|
2484
|
+
dn,
|
|
2556
2485
|
{
|
|
2557
|
-
className:
|
|
2486
|
+
className: F(
|
|
2558
2487
|
"py-3",
|
|
2559
2488
|
{
|
|
2560
2489
|
"px-2": e === "odd"
|
|
2561
2490
|
},
|
|
2562
2491
|
n == null ? void 0 : n.tableHead
|
|
2563
2492
|
),
|
|
2564
|
-
children:
|
|
2493
|
+
children: l.isPlaceholder ? null : He(l.column.columnDef.header, l.getContext())
|
|
2565
2494
|
},
|
|
2566
|
-
|
|
2495
|
+
l.id
|
|
2567
2496
|
))
|
|
2568
2497
|
},
|
|
2569
2498
|
u.id
|
|
2570
2499
|
)) }),
|
|
2571
|
-
/* @__PURE__ */
|
|
2572
|
-
|
|
2500
|
+
/* @__PURE__ */ w.jsx(cn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((u) => /* @__PURE__ */ w.jsx(
|
|
2501
|
+
Te,
|
|
2573
2502
|
{
|
|
2574
|
-
className:
|
|
2503
|
+
className: F(
|
|
2575
2504
|
"w-full",
|
|
2576
2505
|
{
|
|
2577
2506
|
"[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
|
|
@@ -2579,58 +2508,58 @@ const En = ({
|
|
|
2579
2508
|
},
|
|
2580
2509
|
n == null ? void 0 : n.tableRow
|
|
2581
2510
|
),
|
|
2582
|
-
children: u.getVisibleCells().map((
|
|
2583
|
-
|
|
2511
|
+
children: u.getVisibleCells().map((l, a) => /* @__PURE__ */ w.jsx(
|
|
2512
|
+
lt,
|
|
2584
2513
|
{
|
|
2585
|
-
className:
|
|
2514
|
+
className: F(
|
|
2586
2515
|
"py-3",
|
|
2587
2516
|
{
|
|
2588
2517
|
"px-2": e === "odd",
|
|
2589
|
-
"font-medium":
|
|
2518
|
+
"font-medium": a !== 0
|
|
2590
2519
|
},
|
|
2591
2520
|
n == null ? void 0 : n.tableCell
|
|
2592
2521
|
),
|
|
2593
|
-
children:
|
|
2522
|
+
children: He(l.column.columnDef.cell, l.getContext())
|
|
2594
2523
|
},
|
|
2595
|
-
|
|
2524
|
+
l.id
|
|
2596
2525
|
))
|
|
2597
2526
|
},
|
|
2598
2527
|
u.id
|
|
2599
|
-
)) : /* @__PURE__ */
|
|
2528
|
+
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(lt, { colSpan: t.getRowCount(), children: "Not found" }) }) })
|
|
2600
2529
|
] }),
|
|
2601
|
-
i ? typeof r == "function" ? r(
|
|
2530
|
+
i ? typeof r == "function" ? r(s) : /* @__PURE__ */ w.jsx(lr, { ...s }) : null
|
|
2602
2531
|
] });
|
|
2603
|
-
},
|
|
2532
|
+
}, ar = ({
|
|
2604
2533
|
mode: e,
|
|
2605
2534
|
enableHeaders: o,
|
|
2606
2535
|
table: t,
|
|
2607
2536
|
classes: n
|
|
2608
|
-
}) => /* @__PURE__ */
|
|
2537
|
+
}) => /* @__PURE__ */ w.jsx("div", { className: F("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((r) => /* @__PURE__ */ w.jsx(
|
|
2609
2538
|
"div",
|
|
2610
2539
|
{
|
|
2611
|
-
className:
|
|
2540
|
+
className: F(
|
|
2612
2541
|
{
|
|
2613
2542
|
"[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
|
|
2614
2543
|
"[&:nth-child(odd)]:bg-color-primary-light-default": e === "odd"
|
|
2615
2544
|
},
|
|
2616
2545
|
n == null ? void 0 : n.tableRow
|
|
2617
2546
|
),
|
|
2618
|
-
children: r.getVisibleCells().map((i,
|
|
2619
|
-
const u = t.getHeaderGroups()[0].headers[
|
|
2620
|
-
return /* @__PURE__ */
|
|
2547
|
+
children: r.getVisibleCells().map((i, s) => {
|
|
2548
|
+
const u = t.getHeaderGroups()[0].headers[s];
|
|
2549
|
+
return /* @__PURE__ */ w.jsxs(
|
|
2621
2550
|
"div",
|
|
2622
2551
|
{
|
|
2623
|
-
className:
|
|
2552
|
+
className: F(
|
|
2624
2553
|
"grid grid-cols-2 p-2",
|
|
2625
2554
|
{
|
|
2626
2555
|
"px-2": e === "odd",
|
|
2627
|
-
"font-medium":
|
|
2556
|
+
"font-medium": s !== 0
|
|
2628
2557
|
},
|
|
2629
2558
|
n == null ? void 0 : n.tableCell
|
|
2630
2559
|
),
|
|
2631
2560
|
children: [
|
|
2632
|
-
o && /* @__PURE__ */
|
|
2633
|
-
/* @__PURE__ */
|
|
2561
|
+
o && /* @__PURE__ */ w.jsx("p", { className: "font-bold", children: He(u.column.columnDef.header, u.getContext()) }),
|
|
2562
|
+
/* @__PURE__ */ w.jsx("p", { children: He(i.column.columnDef.cell, i.getContext()) })
|
|
2634
2563
|
]
|
|
2635
2564
|
},
|
|
2636
2565
|
i.id
|
|
@@ -2638,7 +2567,7 @@ const En = ({
|
|
|
2638
2567
|
})
|
|
2639
2568
|
},
|
|
2640
2569
|
r.id
|
|
2641
|
-
)) : /* @__PURE__ */
|
|
2570
|
+
)) : /* @__PURE__ */ w.jsx("div", { children: "Not found" }) }), mi = ({
|
|
2642
2571
|
columns: e,
|
|
2643
2572
|
data: o,
|
|
2644
2573
|
enableHeaders: t = !0,
|
|
@@ -2646,63 +2575,1669 @@ const En = ({
|
|
|
2646
2575
|
classes: r,
|
|
2647
2576
|
pagination: i = !0
|
|
2648
2577
|
}) => {
|
|
2649
|
-
const [
|
|
2578
|
+
const [s, u] = Se([]), [l, a] = Se([]), d = ir({
|
|
2650
2579
|
data: o,
|
|
2651
2580
|
columns: e,
|
|
2652
|
-
state: { columnFilters:
|
|
2581
|
+
state: { columnFilters: s, sorting: l },
|
|
2653
2582
|
enableRowSelection: !0,
|
|
2654
|
-
onSortingChange:
|
|
2583
|
+
onSortingChange: a,
|
|
2655
2584
|
onColumnFiltersChange: u,
|
|
2656
|
-
getCoreRowModel:
|
|
2657
|
-
getFilteredRowModel:
|
|
2658
|
-
getSortedRowModel:
|
|
2659
|
-
getFacetedRowModel:
|
|
2660
|
-
getFacetedUniqueValues:
|
|
2661
|
-
getPaginationRowModel:
|
|
2662
|
-
}), { isMobile: f } =
|
|
2663
|
-
return f ? /* @__PURE__ */
|
|
2585
|
+
getCoreRowModel: Ko(),
|
|
2586
|
+
getFilteredRowModel: Zo(),
|
|
2587
|
+
getSortedRowModel: tr(),
|
|
2588
|
+
getFacetedRowModel: Jo(),
|
|
2589
|
+
getFacetedUniqueValues: Yo(),
|
|
2590
|
+
getPaginationRowModel: er()
|
|
2591
|
+
}), { isMobile: f } = ke();
|
|
2592
|
+
return f ? /* @__PURE__ */ w.jsx(ar, { table: d, enableHeaders: t, mode: n, classes: r }) : /* @__PURE__ */ w.jsx(ur, { table: d, enableHeaders: t, mode: n, pagination: i, classes: r });
|
|
2664
2593
|
};
|
|
2665
|
-
class
|
|
2594
|
+
class hi {
|
|
2666
2595
|
static getColumnHelper() {
|
|
2667
|
-
return
|
|
2596
|
+
return so();
|
|
2668
2597
|
}
|
|
2669
2598
|
static getColumns(o, t) {
|
|
2670
2599
|
const {
|
|
2671
2600
|
helper: n = this.getColumnHelper(),
|
|
2672
2601
|
enableColumnFilter: r = !1,
|
|
2673
2602
|
enableSorting: i = !1,
|
|
2674
|
-
cellAccessor:
|
|
2603
|
+
cellAccessor: s,
|
|
2675
2604
|
headerAccessor: u
|
|
2676
2605
|
} = t || {};
|
|
2677
|
-
return Object.keys(o).map((
|
|
2606
|
+
return Object.keys(o).map((a) => n.accessor(a, {
|
|
2678
2607
|
header: (d) => {
|
|
2679
|
-
const { column: f } = d,
|
|
2680
|
-
return /* @__PURE__ */
|
|
2681
|
-
|
|
2608
|
+
const { column: f } = d, g = u ? u[a] : null;
|
|
2609
|
+
return /* @__PURE__ */ w.jsx(
|
|
2610
|
+
io,
|
|
2682
2611
|
{
|
|
2683
2612
|
isSorted: f.getIsSorted() === "desc",
|
|
2684
2613
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
2685
2614
|
toggleSorting: f.toggleSorting,
|
|
2686
2615
|
canSort: f.getCanSort(),
|
|
2687
|
-
children:
|
|
2616
|
+
children: g ? g(a, d) : a
|
|
2688
2617
|
}
|
|
2689
2618
|
);
|
|
2690
2619
|
},
|
|
2691
2620
|
cell: (d) => {
|
|
2692
|
-
const f =
|
|
2621
|
+
const f = s ? s[a] : null;
|
|
2693
2622
|
return f ? f(d) : d.getValue();
|
|
2694
2623
|
},
|
|
2695
|
-
enableColumnFilter:
|
|
2696
|
-
enableSorting:
|
|
2624
|
+
enableColumnFilter: Nt.isBoolean(r) ? r : r.includes(a),
|
|
2625
|
+
enableSorting: Nt.isBoolean(i) ? i : i.includes(a)
|
|
2697
2626
|
}));
|
|
2698
2627
|
}
|
|
2699
2628
|
}
|
|
2700
|
-
const
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2629
|
+
const cr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
2630
|
+
const [t, n] = Se(!0), [r, i] = Se(!0), s = he(
|
|
2631
|
+
(l) => {
|
|
2632
|
+
if (e) {
|
|
2633
|
+
switch (l) {
|
|
2634
|
+
case "prev":
|
|
2635
|
+
e.scrollPrev();
|
|
2636
|
+
break;
|
|
2637
|
+
case "next":
|
|
2638
|
+
e.scrollNext();
|
|
2639
|
+
break;
|
|
2640
|
+
}
|
|
2641
|
+
o && o(e);
|
|
2642
|
+
}
|
|
2643
|
+
},
|
|
2644
|
+
[e, o]
|
|
2645
|
+
), u = he((l) => {
|
|
2646
|
+
n(!l.canScrollPrev()), i(!l.canScrollNext());
|
|
2647
|
+
}, []);
|
|
2648
|
+
return ve(() => {
|
|
2649
|
+
e && (u(e), e.on("reInit", u).on("select", u));
|
|
2650
|
+
}, [e, u]), {
|
|
2651
|
+
prevBtnDisabled: t,
|
|
2652
|
+
nextBtnDisabled: r,
|
|
2653
|
+
onClickNavigationButton: s
|
|
2654
|
+
};
|
|
2655
|
+
}, dr = ({ emblaApi: e, navigationHandler: o, setVisibleIndex: t }) => {
|
|
2656
|
+
const [n, r] = Se([]), i = he(
|
|
2657
|
+
(l) => {
|
|
2658
|
+
e && (e.scrollTo(l), o && o(e));
|
|
2659
|
+
},
|
|
2660
|
+
[e, o]
|
|
2661
|
+
), s = he((l) => {
|
|
2662
|
+
r(l.scrollSnapList());
|
|
2663
|
+
}, []), u = he((l) => {
|
|
2664
|
+
t(l.selectedScrollSnap());
|
|
2665
|
+
}, []);
|
|
2666
|
+
return ve(() => {
|
|
2667
|
+
e && (s(e), u(e), e.on("reInit", s).on("reInit", u).on("select", u));
|
|
2668
|
+
}, [e, s, u]), {
|
|
2669
|
+
scrollSnaps: n,
|
|
2670
|
+
onClickDot: i
|
|
2671
|
+
};
|
|
2672
|
+
}, gr = {
|
|
2673
|
+
active: !0,
|
|
2674
|
+
breakpoints: {},
|
|
2675
|
+
delay: 4e3,
|
|
2676
|
+
jump: !1,
|
|
2677
|
+
playOnInit: !0,
|
|
2678
|
+
stopOnFocusIn: !0,
|
|
2679
|
+
stopOnInteraction: !0,
|
|
2680
|
+
stopOnMouseEnter: !1,
|
|
2681
|
+
stopOnLastSnap: !1,
|
|
2682
|
+
rootNode: null
|
|
2683
|
+
};
|
|
2684
|
+
function fr(e, o) {
|
|
2685
|
+
const t = e.scrollSnapList();
|
|
2686
|
+
return typeof o == "number" ? t.map(() => o) : o(t, e);
|
|
2687
|
+
}
|
|
2688
|
+
function pr(e, o) {
|
|
2689
|
+
const t = e.rootNode();
|
|
2690
|
+
return o && o(t) || t;
|
|
2691
|
+
}
|
|
2692
|
+
function Rt(e = {}) {
|
|
2693
|
+
let o, t, n, r, i = null, s = 0, u = !1, l = !1, a = !1, d = !1;
|
|
2694
|
+
function f(E, j) {
|
|
2695
|
+
t = E;
|
|
2696
|
+
const {
|
|
2697
|
+
mergeOptions: U,
|
|
2698
|
+
optionsAtMedia: K
|
|
2699
|
+
} = j, J = U(gr, Rt.globalOptions), Y = U(J, e);
|
|
2700
|
+
if (o = K(Y), t.scrollSnapList().length <= 1) return;
|
|
2701
|
+
d = o.jump, n = !1, r = fr(t, o.delay);
|
|
2702
|
+
const {
|
|
2703
|
+
eventStore: te,
|
|
2704
|
+
ownerDocument: X
|
|
2705
|
+
} = t.internalEngine(), oe = !!t.internalEngine().options.watchDrag, re = pr(t, o.rootNode);
|
|
2706
|
+
te.add(X, "visibilitychange", h), oe && t.on("pointerDown", v), oe && !o.stopOnInteraction && t.on("pointerUp", _), o.stopOnMouseEnter && te.add(re, "mouseenter", I), o.stopOnMouseEnter && !o.stopOnInteraction && te.add(re, "mouseleave", V), o.stopOnFocusIn && t.on("slideFocusStart", S), o.stopOnFocusIn && !o.stopOnInteraction && te.add(t.containerNode(), "focusout", m), o.playOnInit && m();
|
|
2707
|
+
}
|
|
2708
|
+
function g() {
|
|
2709
|
+
t.off("pointerDown", v).off("pointerUp", _).off("slideFocusStart", S), S(), n = !0, u = !1;
|
|
2710
|
+
}
|
|
2711
|
+
function c() {
|
|
2712
|
+
const {
|
|
2713
|
+
ownerWindow: E
|
|
2714
|
+
} = t.internalEngine();
|
|
2715
|
+
E.clearTimeout(s), s = E.setTimeout($, r[t.selectedScrollSnap()]), i = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
|
|
2716
|
+
}
|
|
2717
|
+
function p() {
|
|
2718
|
+
const {
|
|
2719
|
+
ownerWindow: E
|
|
2720
|
+
} = t.internalEngine();
|
|
2721
|
+
E.clearTimeout(s), s = 0, i = null, t.emit("autoplay:timerstopped");
|
|
2722
|
+
}
|
|
2723
|
+
function m() {
|
|
2724
|
+
if (!n) {
|
|
2725
|
+
if (C()) {
|
|
2726
|
+
a = !0;
|
|
2727
|
+
return;
|
|
2728
|
+
}
|
|
2729
|
+
u || t.emit("autoplay:play"), c(), u = !0;
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
function S() {
|
|
2733
|
+
n || (u && t.emit("autoplay:stop"), p(), u = !1);
|
|
2734
|
+
}
|
|
2735
|
+
function h() {
|
|
2736
|
+
if (C())
|
|
2737
|
+
return a = u, S();
|
|
2738
|
+
a && m();
|
|
2739
|
+
}
|
|
2740
|
+
function C() {
|
|
2741
|
+
const {
|
|
2742
|
+
ownerDocument: E
|
|
2743
|
+
} = t.internalEngine();
|
|
2744
|
+
return E.visibilityState === "hidden";
|
|
2745
|
+
}
|
|
2746
|
+
function v() {
|
|
2747
|
+
l || S();
|
|
2748
|
+
}
|
|
2749
|
+
function _() {
|
|
2750
|
+
l || m();
|
|
2751
|
+
}
|
|
2752
|
+
function I() {
|
|
2753
|
+
l = !0, S();
|
|
2754
|
+
}
|
|
2755
|
+
function V() {
|
|
2756
|
+
l = !1, m();
|
|
2757
|
+
}
|
|
2758
|
+
function M(E) {
|
|
2759
|
+
typeof E < "u" && (d = E), m();
|
|
2760
|
+
}
|
|
2761
|
+
function b() {
|
|
2762
|
+
u && S();
|
|
2763
|
+
}
|
|
2764
|
+
function P() {
|
|
2765
|
+
u && m();
|
|
2766
|
+
}
|
|
2767
|
+
function L() {
|
|
2768
|
+
return u;
|
|
2769
|
+
}
|
|
2770
|
+
function $() {
|
|
2771
|
+
const {
|
|
2772
|
+
index: E
|
|
2773
|
+
} = t.internalEngine(), j = E.clone().add(1).get(), U = t.scrollSnapList().length - 1, K = o.stopOnLastSnap && j === U;
|
|
2774
|
+
if (t.canScrollNext() ? t.scrollNext(d) : t.scrollTo(0, d), t.emit("autoplay:select"), K) return S();
|
|
2775
|
+
m();
|
|
2776
|
+
}
|
|
2777
|
+
function N() {
|
|
2778
|
+
if (!i) return null;
|
|
2779
|
+
const E = r[t.selectedScrollSnap()], j = (/* @__PURE__ */ new Date()).getTime() - i;
|
|
2780
|
+
return E - j;
|
|
2781
|
+
}
|
|
2782
|
+
return {
|
|
2783
|
+
name: "autoplay",
|
|
2784
|
+
options: e,
|
|
2785
|
+
init: f,
|
|
2786
|
+
destroy: g,
|
|
2787
|
+
play: M,
|
|
2788
|
+
stop: b,
|
|
2789
|
+
reset: P,
|
|
2790
|
+
isPlaying: L,
|
|
2791
|
+
timeUntilNext: N
|
|
2792
|
+
};
|
|
2793
|
+
}
|
|
2794
|
+
Rt.globalOptions = void 0;
|
|
2795
|
+
function mr(e) {
|
|
2796
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2797
|
+
}
|
|
2798
|
+
function Gt(e) {
|
|
2799
|
+
return mr(e) || Array.isArray(e);
|
|
2800
|
+
}
|
|
2801
|
+
function hr() {
|
|
2802
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2803
|
+
}
|
|
2804
|
+
function xt(e, o) {
|
|
2805
|
+
const t = Object.keys(e), n = Object.keys(o);
|
|
2806
|
+
if (t.length !== n.length) return !1;
|
|
2807
|
+
const r = JSON.stringify(Object.keys(e.breakpoints || {})), i = JSON.stringify(Object.keys(o.breakpoints || {}));
|
|
2808
|
+
return r !== i ? !1 : t.every((s) => {
|
|
2809
|
+
const u = e[s], l = o[s];
|
|
2810
|
+
return typeof u == "function" ? `${u}` == `${l}` : !Gt(u) || !Gt(l) ? u === l : xt(u, l);
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
function zt(e) {
|
|
2814
|
+
return e.concat().sort((o, t) => o.name > t.name ? 1 : -1).map((o) => o.options);
|
|
2815
|
+
}
|
|
2816
|
+
function Sr(e, o) {
|
|
2817
|
+
if (e.length !== o.length) return !1;
|
|
2818
|
+
const t = zt(e), n = zt(o);
|
|
2819
|
+
return t.every((r, i) => {
|
|
2820
|
+
const s = n[i];
|
|
2821
|
+
return xt(r, s);
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
function yt(e) {
|
|
2825
|
+
return typeof e == "number";
|
|
2826
|
+
}
|
|
2827
|
+
function ft(e) {
|
|
2828
|
+
return typeof e == "string";
|
|
2829
|
+
}
|
|
2830
|
+
function Ke(e) {
|
|
2831
|
+
return typeof e == "boolean";
|
|
2832
|
+
}
|
|
2833
|
+
function Bt(e) {
|
|
2834
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2835
|
+
}
|
|
2836
|
+
function A(e) {
|
|
2837
|
+
return Math.abs(e);
|
|
2838
|
+
}
|
|
2839
|
+
function Ft(e) {
|
|
2840
|
+
return Math.sign(e);
|
|
2841
|
+
}
|
|
2842
|
+
function Ve(e, o) {
|
|
2843
|
+
return A(e - o);
|
|
2844
|
+
}
|
|
2845
|
+
function wr(e, o) {
|
|
2846
|
+
if (e === 0 || o === 0 || A(e) <= A(o)) return 0;
|
|
2847
|
+
const t = Ve(A(e), A(o));
|
|
2848
|
+
return A(t / e);
|
|
2849
|
+
}
|
|
2850
|
+
function Cr(e) {
|
|
2851
|
+
return Math.round(e * 100) / 100;
|
|
2852
|
+
}
|
|
2853
|
+
function Pe(e) {
|
|
2854
|
+
return $e(e).map(Number);
|
|
2855
|
+
}
|
|
2856
|
+
function ee(e) {
|
|
2857
|
+
return e[De(e)];
|
|
2858
|
+
}
|
|
2859
|
+
function De(e) {
|
|
2860
|
+
return Math.max(0, e.length - 1);
|
|
2861
|
+
}
|
|
2862
|
+
function _t(e, o) {
|
|
2863
|
+
return o === De(e);
|
|
2864
|
+
}
|
|
2865
|
+
function kt(e, o = 0) {
|
|
2866
|
+
return Array.from(Array(e), (t, n) => o + n);
|
|
2867
|
+
}
|
|
2868
|
+
function $e(e) {
|
|
2869
|
+
return Object.keys(e);
|
|
2870
|
+
}
|
|
2871
|
+
function xn(e, o) {
|
|
2872
|
+
return [e, o].reduce((t, n) => ($e(n).forEach((r) => {
|
|
2873
|
+
const i = t[r], s = n[r], u = Bt(i) && Bt(s);
|
|
2874
|
+
t[r] = u ? xn(i, s) : s;
|
|
2875
|
+
}), t), {});
|
|
2876
|
+
}
|
|
2877
|
+
function pt(e, o) {
|
|
2878
|
+
return typeof o.MouseEvent < "u" && e instanceof o.MouseEvent;
|
|
2879
|
+
}
|
|
2880
|
+
function vr(e, o) {
|
|
2881
|
+
const t = {
|
|
2882
|
+
start: n,
|
|
2883
|
+
center: r,
|
|
2884
|
+
end: i
|
|
2885
|
+
};
|
|
2886
|
+
function n() {
|
|
2887
|
+
return 0;
|
|
2888
|
+
}
|
|
2889
|
+
function r(l) {
|
|
2890
|
+
return i(l) / 2;
|
|
2891
|
+
}
|
|
2892
|
+
function i(l) {
|
|
2893
|
+
return o - l;
|
|
2894
|
+
}
|
|
2895
|
+
function s(l, a) {
|
|
2896
|
+
return ft(e) ? t[e](l) : e(o, l, a);
|
|
2897
|
+
}
|
|
2898
|
+
return {
|
|
2899
|
+
measure: s
|
|
2900
|
+
};
|
|
2901
|
+
}
|
|
2902
|
+
function Ee() {
|
|
2903
|
+
let e = [];
|
|
2904
|
+
function o(r, i, s, u = {
|
|
2905
|
+
passive: !0
|
|
2906
|
+
}) {
|
|
2907
|
+
let l;
|
|
2908
|
+
if ("addEventListener" in r)
|
|
2909
|
+
r.addEventListener(i, s, u), l = () => r.removeEventListener(i, s, u);
|
|
2910
|
+
else {
|
|
2911
|
+
const a = r;
|
|
2912
|
+
a.addListener(s), l = () => a.removeListener(s);
|
|
2913
|
+
}
|
|
2914
|
+
return e.push(l), n;
|
|
2915
|
+
}
|
|
2916
|
+
function t() {
|
|
2917
|
+
e = e.filter((r) => r());
|
|
2918
|
+
}
|
|
2919
|
+
const n = {
|
|
2920
|
+
add: o,
|
|
2921
|
+
clear: t
|
|
2922
|
+
};
|
|
2923
|
+
return n;
|
|
2924
|
+
}
|
|
2925
|
+
function Rr(e, o, t, n) {
|
|
2926
|
+
const r = Ee(), i = 1e3 / 60;
|
|
2927
|
+
let s = null, u = 0, l = 0;
|
|
2928
|
+
function a() {
|
|
2929
|
+
r.add(e, "visibilitychange", () => {
|
|
2930
|
+
e.hidden && p();
|
|
2931
|
+
});
|
|
2932
|
+
}
|
|
2933
|
+
function d() {
|
|
2934
|
+
c(), r.clear();
|
|
2935
|
+
}
|
|
2936
|
+
function f(S) {
|
|
2937
|
+
if (!l) return;
|
|
2938
|
+
s || (s = S, t(), t());
|
|
2939
|
+
const h = S - s;
|
|
2940
|
+
for (s = S, u += h; u >= i; )
|
|
2941
|
+
t(), u -= i;
|
|
2942
|
+
const C = u / i;
|
|
2943
|
+
n(C), l && (l = o.requestAnimationFrame(f));
|
|
2944
|
+
}
|
|
2945
|
+
function g() {
|
|
2946
|
+
l || (l = o.requestAnimationFrame(f));
|
|
2947
|
+
}
|
|
2948
|
+
function c() {
|
|
2949
|
+
o.cancelAnimationFrame(l), s = null, u = 0, l = 0;
|
|
2950
|
+
}
|
|
2951
|
+
function p() {
|
|
2952
|
+
s = null, u = 0;
|
|
2953
|
+
}
|
|
2954
|
+
return {
|
|
2955
|
+
init: a,
|
|
2956
|
+
destroy: d,
|
|
2957
|
+
start: g,
|
|
2958
|
+
stop: c,
|
|
2959
|
+
update: t,
|
|
2960
|
+
render: n
|
|
2961
|
+
};
|
|
2962
|
+
}
|
|
2963
|
+
function xr(e, o) {
|
|
2964
|
+
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", s = !n && t ? -1 : 1, u = d(), l = f();
|
|
2965
|
+
function a(p) {
|
|
2966
|
+
const {
|
|
2967
|
+
height: m,
|
|
2968
|
+
width: S
|
|
2969
|
+
} = p;
|
|
2970
|
+
return n ? m : S;
|
|
2971
|
+
}
|
|
2972
|
+
function d() {
|
|
2973
|
+
return n ? "top" : t ? "right" : "left";
|
|
2974
|
+
}
|
|
2975
|
+
function f() {
|
|
2976
|
+
return n ? "bottom" : t ? "left" : "right";
|
|
2977
|
+
}
|
|
2978
|
+
function g(p) {
|
|
2979
|
+
return p * s;
|
|
2980
|
+
}
|
|
2981
|
+
return {
|
|
2982
|
+
scroll: r,
|
|
2983
|
+
cross: i,
|
|
2984
|
+
startEdge: u,
|
|
2985
|
+
endEdge: l,
|
|
2986
|
+
measureSize: a,
|
|
2987
|
+
direction: g
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
function we(e = 0, o = 0) {
|
|
2991
|
+
const t = A(e - o);
|
|
2992
|
+
function n(a) {
|
|
2993
|
+
return a < e;
|
|
2994
|
+
}
|
|
2995
|
+
function r(a) {
|
|
2996
|
+
return a > o;
|
|
2997
|
+
}
|
|
2998
|
+
function i(a) {
|
|
2999
|
+
return n(a) || r(a);
|
|
3000
|
+
}
|
|
3001
|
+
function s(a) {
|
|
3002
|
+
return i(a) ? n(a) ? e : o : a;
|
|
3003
|
+
}
|
|
3004
|
+
function u(a) {
|
|
3005
|
+
return t ? a - t * Math.ceil((a - o) / t) : a;
|
|
3006
|
+
}
|
|
3007
|
+
return {
|
|
3008
|
+
length: t,
|
|
3009
|
+
max: o,
|
|
3010
|
+
min: e,
|
|
3011
|
+
constrain: s,
|
|
3012
|
+
reachedAny: i,
|
|
3013
|
+
reachedMax: r,
|
|
3014
|
+
reachedMin: n,
|
|
3015
|
+
removeOffset: u
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
function yn(e, o, t) {
|
|
3019
|
+
const {
|
|
3020
|
+
constrain: n
|
|
3021
|
+
} = we(0, e), r = e + 1;
|
|
3022
|
+
let i = s(o);
|
|
3023
|
+
function s(g) {
|
|
3024
|
+
return t ? A((r + g) % r) : n(g);
|
|
3025
|
+
}
|
|
3026
|
+
function u() {
|
|
3027
|
+
return i;
|
|
3028
|
+
}
|
|
3029
|
+
function l(g) {
|
|
3030
|
+
return i = s(g), f;
|
|
3031
|
+
}
|
|
3032
|
+
function a(g) {
|
|
3033
|
+
return d().set(u() + g);
|
|
3034
|
+
}
|
|
3035
|
+
function d() {
|
|
3036
|
+
return yn(e, u(), t);
|
|
3037
|
+
}
|
|
3038
|
+
const f = {
|
|
3039
|
+
get: u,
|
|
3040
|
+
set: l,
|
|
3041
|
+
add: a,
|
|
3042
|
+
clone: d
|
|
3043
|
+
};
|
|
3044
|
+
return f;
|
|
3045
|
+
}
|
|
3046
|
+
function yr(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
3047
|
+
const {
|
|
3048
|
+
cross: v,
|
|
3049
|
+
direction: _
|
|
3050
|
+
} = e, I = ["INPUT", "SELECT", "TEXTAREA"], V = {
|
|
3051
|
+
passive: !1
|
|
3052
|
+
}, M = Ee(), b = Ee(), P = we(50, 225).constrain(c.measure(20)), L = {
|
|
3053
|
+
mouse: 300,
|
|
3054
|
+
touch: 400
|
|
3055
|
+
}, $ = {
|
|
3056
|
+
mouse: 500,
|
|
3057
|
+
touch: 600
|
|
3058
|
+
}, N = p ? 43 : 25;
|
|
3059
|
+
let B = !1, E = 0, j = 0, U = !1, K = !1, J = !1, Y = !1;
|
|
3060
|
+
function te(R) {
|
|
3061
|
+
if (!C) return;
|
|
3062
|
+
function D(z) {
|
|
3063
|
+
(Ke(C) || C(R, z)) && xe(z);
|
|
3064
|
+
}
|
|
3065
|
+
const T = o;
|
|
3066
|
+
M.add(T, "dragstart", (z) => z.preventDefault(), V).add(T, "touchmove", () => {
|
|
3067
|
+
}, V).add(T, "touchend", () => {
|
|
3068
|
+
}).add(T, "touchstart", D).add(T, "mousedown", D).add(T, "touchcancel", G).add(T, "contextmenu", G).add(T, "click", se, !0);
|
|
3069
|
+
}
|
|
3070
|
+
function X() {
|
|
3071
|
+
M.clear(), b.clear();
|
|
3072
|
+
}
|
|
3073
|
+
function oe() {
|
|
3074
|
+
const R = Y ? t : o;
|
|
3075
|
+
b.add(R, "touchmove", k, V).add(R, "touchend", G).add(R, "mousemove", k, V).add(R, "mouseup", G);
|
|
3076
|
+
}
|
|
3077
|
+
function re(R) {
|
|
3078
|
+
const D = R.nodeName || "";
|
|
3079
|
+
return I.includes(D);
|
|
3080
|
+
}
|
|
3081
|
+
function ie() {
|
|
3082
|
+
return (p ? $ : L)[Y ? "mouse" : "touch"];
|
|
3083
|
+
}
|
|
3084
|
+
function Re(R, D) {
|
|
3085
|
+
const T = f.add(Ft(R) * -1), z = d.byDistance(R, !p).distance;
|
|
3086
|
+
return p || A(R) < P ? z : S && D ? z * 0.5 : d.byIndex(T.get(), 0).distance;
|
|
3087
|
+
}
|
|
3088
|
+
function xe(R) {
|
|
3089
|
+
const D = pt(R, n);
|
|
3090
|
+
Y = D, J = p && D && !R.buttons && B, B = Ve(r.get(), s.get()) >= 2, !(D && R.button !== 0) && (re(R.target) || (U = !0, i.pointerDown(R), a.useFriction(0).useDuration(0), r.set(s), oe(), E = i.readPoint(R), j = i.readPoint(R, v), g.emit("pointerDown")));
|
|
3091
|
+
}
|
|
3092
|
+
function k(R) {
|
|
3093
|
+
if (!pt(R, n) && R.touches.length >= 2) return G(R);
|
|
3094
|
+
const T = i.readPoint(R), z = i.readPoint(R, v), ne = Ve(T, E), le = Ve(z, j);
|
|
3095
|
+
if (!K && !Y && (!R.cancelable || (K = ne > le, !K)))
|
|
3096
|
+
return G(R);
|
|
3097
|
+
const pe = i.pointerMove(R);
|
|
3098
|
+
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(pe)), R.preventDefault();
|
|
3099
|
+
}
|
|
3100
|
+
function G(R) {
|
|
3101
|
+
const T = d.byDistance(0, !1).index !== f.get(), z = i.pointerUp(R) * ie(), ne = Re(_(z), T), le = wr(z, ne), pe = N - 10 * le, ce = h + le / 50;
|
|
3102
|
+
K = !1, U = !1, b.clear(), a.useDuration(pe).useFriction(ce), l.distance(ne, !p), Y = !1, g.emit("pointerUp");
|
|
3103
|
+
}
|
|
3104
|
+
function se(R) {
|
|
3105
|
+
J && (R.stopPropagation(), R.preventDefault(), J = !1);
|
|
3106
|
+
}
|
|
3107
|
+
function W() {
|
|
3108
|
+
return U;
|
|
3109
|
+
}
|
|
3110
|
+
return {
|
|
3111
|
+
init: te,
|
|
3112
|
+
destroy: X,
|
|
3113
|
+
pointerDown: W
|
|
3114
|
+
};
|
|
3115
|
+
}
|
|
3116
|
+
function Fr(e, o) {
|
|
3117
|
+
let n, r;
|
|
3118
|
+
function i(f) {
|
|
3119
|
+
return f.timeStamp;
|
|
3120
|
+
}
|
|
3121
|
+
function s(f, g) {
|
|
3122
|
+
const p = `client${(g || e.scroll) === "x" ? "X" : "Y"}`;
|
|
3123
|
+
return (pt(f, o) ? f : f.touches[0])[p];
|
|
3124
|
+
}
|
|
3125
|
+
function u(f) {
|
|
3126
|
+
return n = f, r = f, s(f);
|
|
3127
|
+
}
|
|
3128
|
+
function l(f) {
|
|
3129
|
+
const g = s(f) - s(r), c = i(f) - i(n) > 170;
|
|
3130
|
+
return r = f, c && (n = f), g;
|
|
3131
|
+
}
|
|
3132
|
+
function a(f) {
|
|
3133
|
+
if (!n || !r) return 0;
|
|
3134
|
+
const g = s(r) - s(n), c = i(f) - i(n), p = i(f) - i(r) > 170, m = g / c;
|
|
3135
|
+
return c && !p && A(m) > 0.1 ? m : 0;
|
|
3136
|
+
}
|
|
3137
|
+
return {
|
|
3138
|
+
pointerDown: u,
|
|
3139
|
+
pointerMove: l,
|
|
3140
|
+
pointerUp: a,
|
|
3141
|
+
readPoint: s
|
|
3142
|
+
};
|
|
3143
|
+
}
|
|
3144
|
+
function _r() {
|
|
3145
|
+
function e(t) {
|
|
3146
|
+
const {
|
|
3147
|
+
offsetTop: n,
|
|
3148
|
+
offsetLeft: r,
|
|
3149
|
+
offsetWidth: i,
|
|
3150
|
+
offsetHeight: s
|
|
3151
|
+
} = t;
|
|
3152
|
+
return {
|
|
3153
|
+
top: n,
|
|
3154
|
+
right: r + i,
|
|
3155
|
+
bottom: n + s,
|
|
3156
|
+
left: r,
|
|
3157
|
+
width: i,
|
|
3158
|
+
height: s
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
return {
|
|
3162
|
+
measure: e
|
|
3163
|
+
};
|
|
3164
|
+
}
|
|
3165
|
+
function Ir(e) {
|
|
3166
|
+
function o(n) {
|
|
3167
|
+
return e * (n / 100);
|
|
3168
|
+
}
|
|
3169
|
+
return {
|
|
3170
|
+
measure: o
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
function Mr(e, o, t, n, r, i, s) {
|
|
3174
|
+
const u = [e].concat(n);
|
|
3175
|
+
let l, a, d = [], f = !1;
|
|
3176
|
+
function g(S) {
|
|
3177
|
+
return r.measureSize(s.measure(S));
|
|
3178
|
+
}
|
|
3179
|
+
function c(S) {
|
|
3180
|
+
if (!i) return;
|
|
3181
|
+
a = g(e), d = n.map(g);
|
|
3182
|
+
function h(C) {
|
|
3183
|
+
for (const v of C) {
|
|
3184
|
+
if (f) return;
|
|
3185
|
+
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a : d[I], M = g(_ ? e : n[I]);
|
|
3186
|
+
if (A(M - V) >= 0.5) {
|
|
3187
|
+
S.reInit(), o.emit("resize");
|
|
3188
|
+
break;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
l = new ResizeObserver((C) => {
|
|
3193
|
+
(Ke(i) || i(S, C)) && h(C);
|
|
3194
|
+
}), t.requestAnimationFrame(() => {
|
|
3195
|
+
u.forEach((C) => l.observe(C));
|
|
3196
|
+
});
|
|
3197
|
+
}
|
|
3198
|
+
function p() {
|
|
3199
|
+
f = !0, l && l.disconnect();
|
|
3200
|
+
}
|
|
3201
|
+
return {
|
|
3202
|
+
init: c,
|
|
3203
|
+
destroy: p
|
|
3204
|
+
};
|
|
3205
|
+
}
|
|
3206
|
+
function Vr(e, o, t, n, r, i) {
|
|
3207
|
+
let s = 0, u = 0, l = r, a = i, d = e.get(), f = 0;
|
|
3208
|
+
function g() {
|
|
3209
|
+
const V = n.get() - e.get(), M = !l;
|
|
3210
|
+
let b = 0;
|
|
3211
|
+
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a, d += s, e.add(s), b = d - f), u = Ft(b), f = d, I;
|
|
3212
|
+
}
|
|
3213
|
+
function c() {
|
|
3214
|
+
const V = n.get() - o.get();
|
|
3215
|
+
return A(V) < 1e-3;
|
|
3216
|
+
}
|
|
3217
|
+
function p() {
|
|
3218
|
+
return l;
|
|
3219
|
+
}
|
|
3220
|
+
function m() {
|
|
3221
|
+
return u;
|
|
3222
|
+
}
|
|
3223
|
+
function S() {
|
|
3224
|
+
return s;
|
|
3225
|
+
}
|
|
3226
|
+
function h() {
|
|
3227
|
+
return v(r);
|
|
3228
|
+
}
|
|
3229
|
+
function C() {
|
|
3230
|
+
return _(i);
|
|
3231
|
+
}
|
|
3232
|
+
function v(V) {
|
|
3233
|
+
return l = V, I;
|
|
3234
|
+
}
|
|
3235
|
+
function _(V) {
|
|
3236
|
+
return a = V, I;
|
|
3237
|
+
}
|
|
3238
|
+
const I = {
|
|
3239
|
+
direction: m,
|
|
3240
|
+
duration: p,
|
|
3241
|
+
velocity: S,
|
|
3242
|
+
seek: g,
|
|
3243
|
+
settled: c,
|
|
3244
|
+
useBaseFriction: C,
|
|
3245
|
+
useBaseDuration: h,
|
|
3246
|
+
useFriction: _,
|
|
3247
|
+
useDuration: v
|
|
3248
|
+
};
|
|
3249
|
+
return I;
|
|
3250
|
+
}
|
|
3251
|
+
function br(e, o, t, n, r) {
|
|
3252
|
+
const i = r.measure(10), s = r.measure(50), u = we(0.1, 0.99);
|
|
3253
|
+
let l = !1;
|
|
3254
|
+
function a() {
|
|
3255
|
+
return !(l || !e.reachedAny(t.get()) || !e.reachedAny(o.get()));
|
|
3256
|
+
}
|
|
3257
|
+
function d(c) {
|
|
3258
|
+
if (!a()) return;
|
|
3259
|
+
const p = e.reachedMin(o.get()) ? "min" : "max", m = A(e[p] - o.get()), S = t.get() - o.get(), h = u.constrain(m / s);
|
|
3260
|
+
t.subtract(S * h), !c && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
|
|
3261
|
+
}
|
|
3262
|
+
function f(c) {
|
|
3263
|
+
l = !c;
|
|
3264
|
+
}
|
|
3265
|
+
return {
|
|
3266
|
+
shouldConstrain: a,
|
|
3267
|
+
constrain: d,
|
|
3268
|
+
toggleActive: f
|
|
3269
|
+
};
|
|
3270
|
+
}
|
|
3271
|
+
function Pr(e, o, t, n, r) {
|
|
3272
|
+
const i = we(-o + e, 0), s = f(), u = d(), l = g();
|
|
3273
|
+
function a(p, m) {
|
|
3274
|
+
return Ve(p, m) <= 1;
|
|
3275
|
+
}
|
|
3276
|
+
function d() {
|
|
3277
|
+
const p = s[0], m = ee(s), S = s.lastIndexOf(p), h = s.indexOf(m) + 1;
|
|
3278
|
+
return we(S, h);
|
|
3279
|
+
}
|
|
3280
|
+
function f() {
|
|
3281
|
+
return t.map((p, m) => {
|
|
3282
|
+
const {
|
|
3283
|
+
min: S,
|
|
3284
|
+
max: h
|
|
3285
|
+
} = i, C = i.constrain(p), v = !m, _ = _t(t, m);
|
|
3286
|
+
return v ? h : _ || a(S, C) ? S : a(h, C) ? h : C;
|
|
3287
|
+
}).map((p) => parseFloat(p.toFixed(3)));
|
|
3288
|
+
}
|
|
3289
|
+
function g() {
|
|
3290
|
+
if (o <= e + r) return [i.max];
|
|
3291
|
+
if (n === "keepSnaps") return s;
|
|
3292
|
+
const {
|
|
3293
|
+
min: p,
|
|
3294
|
+
max: m
|
|
3295
|
+
} = u;
|
|
3296
|
+
return s.slice(p, m);
|
|
3297
|
+
}
|
|
3298
|
+
return {
|
|
3299
|
+
snapsContained: l,
|
|
3300
|
+
scrollContainLimit: u
|
|
3301
|
+
};
|
|
3302
|
+
}
|
|
3303
|
+
function $r(e, o, t) {
|
|
3304
|
+
const n = o[0], r = t ? n - e : ee(o);
|
|
3305
|
+
return {
|
|
3306
|
+
limit: we(r, n)
|
|
3307
|
+
};
|
|
3308
|
+
}
|
|
3309
|
+
function Er(e, o, t, n) {
|
|
3310
|
+
const i = o.min + 0.1, s = o.max + 0.1, {
|
|
3311
|
+
reachedMin: u,
|
|
3312
|
+
reachedMax: l
|
|
3313
|
+
} = we(i, s);
|
|
3314
|
+
function a(g) {
|
|
3315
|
+
return g === 1 ? l(t.get()) : g === -1 ? u(t.get()) : !1;
|
|
3316
|
+
}
|
|
3317
|
+
function d(g) {
|
|
3318
|
+
if (!a(g)) return;
|
|
3319
|
+
const c = e * (g * -1);
|
|
3320
|
+
n.forEach((p) => p.add(c));
|
|
3321
|
+
}
|
|
3322
|
+
return {
|
|
3323
|
+
loop: d
|
|
3324
|
+
};
|
|
3325
|
+
}
|
|
3326
|
+
function Dr(e) {
|
|
3327
|
+
const {
|
|
3328
|
+
max: o,
|
|
3329
|
+
length: t
|
|
3330
|
+
} = e;
|
|
3331
|
+
function n(i) {
|
|
3332
|
+
const s = i - o;
|
|
3333
|
+
return t ? s / -t : 0;
|
|
3334
|
+
}
|
|
3335
|
+
return {
|
|
3336
|
+
get: n
|
|
3337
|
+
};
|
|
3338
|
+
}
|
|
3339
|
+
function Lr(e, o, t, n, r) {
|
|
3340
|
+
const {
|
|
3341
|
+
startEdge: i,
|
|
3342
|
+
endEdge: s
|
|
3343
|
+
} = e, {
|
|
3344
|
+
groupSlides: u
|
|
3345
|
+
} = r, l = f().map(o.measure), a = g(), d = c();
|
|
3346
|
+
function f() {
|
|
3347
|
+
return u(n).map((m) => ee(m)[s] - m[0][i]).map(A);
|
|
3348
|
+
}
|
|
3349
|
+
function g() {
|
|
3350
|
+
return n.map((m) => t[i] - m[i]).map((m) => -A(m));
|
|
3351
|
+
}
|
|
3352
|
+
function c() {
|
|
3353
|
+
return u(a).map((m) => m[0]).map((m, S) => m + l[S]);
|
|
3354
|
+
}
|
|
3355
|
+
return {
|
|
3356
|
+
snaps: a,
|
|
3357
|
+
snapsAligned: d
|
|
3358
|
+
};
|
|
3359
|
+
}
|
|
3360
|
+
function Or(e, o, t, n, r, i) {
|
|
3361
|
+
const {
|
|
3362
|
+
groupSlides: s
|
|
3363
|
+
} = r, {
|
|
3364
|
+
min: u,
|
|
3365
|
+
max: l
|
|
3366
|
+
} = n, a = d();
|
|
3367
|
+
function d() {
|
|
3368
|
+
const g = s(i), c = !e || o === "keepSnaps";
|
|
3369
|
+
return t.length === 1 ? [i] : c ? g : g.slice(u, l).map((p, m, S) => {
|
|
3370
|
+
const h = !m, C = _t(S, m);
|
|
3371
|
+
if (h) {
|
|
3372
|
+
const v = ee(S[0]) + 1;
|
|
3373
|
+
return kt(v);
|
|
3374
|
+
}
|
|
3375
|
+
if (C) {
|
|
3376
|
+
const v = De(i) - ee(S)[0] + 1;
|
|
3377
|
+
return kt(v, ee(S)[0]);
|
|
3378
|
+
}
|
|
3379
|
+
return p;
|
|
3380
|
+
});
|
|
3381
|
+
}
|
|
3382
|
+
return {
|
|
3383
|
+
slideRegistry: a
|
|
3384
|
+
};
|
|
3385
|
+
}
|
|
3386
|
+
function Ar(e, o, t, n, r) {
|
|
3387
|
+
const {
|
|
3388
|
+
reachedAny: i,
|
|
3389
|
+
removeOffset: s,
|
|
3390
|
+
constrain: u
|
|
3391
|
+
} = n;
|
|
3392
|
+
function l(p) {
|
|
3393
|
+
return p.concat().sort((m, S) => A(m) - A(S))[0];
|
|
3394
|
+
}
|
|
3395
|
+
function a(p) {
|
|
3396
|
+
const m = e ? s(p) : u(p), S = o.map((C, v) => ({
|
|
3397
|
+
diff: d(C - m, 0),
|
|
3398
|
+
index: v
|
|
3399
|
+
})).sort((C, v) => A(C.diff) - A(v.diff)), {
|
|
3400
|
+
index: h
|
|
3401
|
+
} = S[0];
|
|
3402
|
+
return {
|
|
3403
|
+
index: h,
|
|
3404
|
+
distance: m
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
function d(p, m) {
|
|
3408
|
+
const S = [p, p + t, p - t];
|
|
3409
|
+
if (!e) return p;
|
|
3410
|
+
if (!m) return l(S);
|
|
3411
|
+
const h = S.filter((C) => Ft(C) === m);
|
|
3412
|
+
return h.length ? l(h) : ee(S) - t;
|
|
3413
|
+
}
|
|
3414
|
+
function f(p, m) {
|
|
3415
|
+
const S = o[p] - r.get(), h = d(S, m);
|
|
3416
|
+
return {
|
|
3417
|
+
index: p,
|
|
3418
|
+
distance: h
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
function g(p, m) {
|
|
3422
|
+
const S = r.get() + p, {
|
|
3423
|
+
index: h,
|
|
3424
|
+
distance: C
|
|
3425
|
+
} = a(S), v = !e && i(S);
|
|
3426
|
+
if (!m || v) return {
|
|
3427
|
+
index: h,
|
|
3428
|
+
distance: p
|
|
3429
|
+
};
|
|
3430
|
+
const _ = o[h] - C, I = p + d(_, 0);
|
|
3431
|
+
return {
|
|
3432
|
+
index: h,
|
|
3433
|
+
distance: I
|
|
3434
|
+
};
|
|
3435
|
+
}
|
|
3436
|
+
return {
|
|
3437
|
+
byDistance: g,
|
|
3438
|
+
byIndex: f,
|
|
3439
|
+
shortcut: d
|
|
3440
|
+
};
|
|
3441
|
+
}
|
|
3442
|
+
function Nr(e, o, t, n, r, i, s) {
|
|
3443
|
+
function u(f) {
|
|
3444
|
+
const g = f.distance, c = f.index !== o.get();
|
|
3445
|
+
i.add(g), g && (n.duration() ? e.start() : (e.update(), e.render(1), e.update())), c && (t.set(o.get()), o.set(f.index), s.emit("select"));
|
|
3446
|
+
}
|
|
3447
|
+
function l(f, g) {
|
|
3448
|
+
const c = r.byDistance(f, g);
|
|
3449
|
+
u(c);
|
|
3450
|
+
}
|
|
3451
|
+
function a(f, g) {
|
|
3452
|
+
const c = o.clone().set(f), p = r.byIndex(c.get(), g);
|
|
3453
|
+
u(p);
|
|
3454
|
+
}
|
|
3455
|
+
return {
|
|
3456
|
+
distance: l,
|
|
3457
|
+
index: a
|
|
3458
|
+
};
|
|
3459
|
+
}
|
|
3460
|
+
function Tr(e, o, t, n, r, i, s, u) {
|
|
3461
|
+
const l = {
|
|
3462
|
+
passive: !0,
|
|
3463
|
+
capture: !0
|
|
3464
|
+
};
|
|
3465
|
+
let a = 0;
|
|
3466
|
+
function d(c) {
|
|
3467
|
+
if (!u) return;
|
|
3468
|
+
function p(m) {
|
|
3469
|
+
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
3470
|
+
s.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
3471
|
+
const C = t.findIndex((v) => v.includes(m));
|
|
3472
|
+
yt(C) && (r.useDuration(0), n.index(C, 0), s.emit("slideFocus"));
|
|
3473
|
+
}
|
|
3474
|
+
i.add(document, "keydown", f, !1), o.forEach((m, S) => {
|
|
3475
|
+
i.add(m, "focus", (h) => {
|
|
3476
|
+
(Ke(u) || u(c, h)) && p(S);
|
|
3477
|
+
}, l);
|
|
3478
|
+
});
|
|
3479
|
+
}
|
|
3480
|
+
function f(c) {
|
|
3481
|
+
c.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
|
|
3482
|
+
}
|
|
3483
|
+
return {
|
|
3484
|
+
init: d
|
|
3485
|
+
};
|
|
3486
|
+
}
|
|
3487
|
+
function _e(e) {
|
|
3488
|
+
let o = e;
|
|
3489
|
+
function t() {
|
|
3490
|
+
return o;
|
|
3491
|
+
}
|
|
3492
|
+
function n(l) {
|
|
3493
|
+
o = s(l);
|
|
3494
|
+
}
|
|
3495
|
+
function r(l) {
|
|
3496
|
+
o += s(l);
|
|
3497
|
+
}
|
|
3498
|
+
function i(l) {
|
|
3499
|
+
o -= s(l);
|
|
3500
|
+
}
|
|
3501
|
+
function s(l) {
|
|
3502
|
+
return yt(l) ? l : l.get();
|
|
3503
|
+
}
|
|
3504
|
+
return {
|
|
3505
|
+
get: t,
|
|
3506
|
+
set: n,
|
|
3507
|
+
add: r,
|
|
3508
|
+
subtract: i
|
|
3509
|
+
};
|
|
3510
|
+
}
|
|
3511
|
+
function Fn(e, o) {
|
|
3512
|
+
const t = e.scroll === "x" ? s : u, n = o.style;
|
|
3513
|
+
let r = null, i = !1;
|
|
3514
|
+
function s(g) {
|
|
3515
|
+
return `translate3d(${g}px,0px,0px)`;
|
|
3516
|
+
}
|
|
3517
|
+
function u(g) {
|
|
3518
|
+
return `translate3d(0px,${g}px,0px)`;
|
|
3519
|
+
}
|
|
3520
|
+
function l(g) {
|
|
3521
|
+
if (i) return;
|
|
3522
|
+
const c = Cr(e.direction(g));
|
|
3523
|
+
c !== r && (n.transform = t(c), r = c);
|
|
3524
|
+
}
|
|
3525
|
+
function a(g) {
|
|
3526
|
+
i = !g;
|
|
3527
|
+
}
|
|
3528
|
+
function d() {
|
|
3529
|
+
i || (n.transform = "", o.getAttribute("style") || o.removeAttribute("style"));
|
|
3530
|
+
}
|
|
3531
|
+
return {
|
|
3532
|
+
clear: d,
|
|
3533
|
+
to: l,
|
|
3534
|
+
toggleActive: a
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
function jr(e, o, t, n, r, i, s, u, l) {
|
|
3538
|
+
const d = Pe(r), f = Pe(r).reverse(), g = h().concat(C());
|
|
3539
|
+
function c(M, b) {
|
|
3540
|
+
return M.reduce((P, L) => P - r[L], b);
|
|
3541
|
+
}
|
|
3542
|
+
function p(M, b) {
|
|
3543
|
+
return M.reduce((P, L) => c(P, b) > 0 ? P.concat([L]) : P, []);
|
|
3544
|
+
}
|
|
3545
|
+
function m(M) {
|
|
3546
|
+
return i.map((b, P) => ({
|
|
3547
|
+
start: b - n[P] + 0.5 + M,
|
|
3548
|
+
end: b + o - 0.5 + M
|
|
3549
|
+
}));
|
|
3550
|
+
}
|
|
3551
|
+
function S(M, b, P) {
|
|
3552
|
+
const L = m(b);
|
|
3553
|
+
return M.map(($) => {
|
|
3554
|
+
const N = P ? 0 : -t, B = P ? t : 0, E = P ? "end" : "start", j = L[$][E];
|
|
3555
|
+
return {
|
|
3556
|
+
index: $,
|
|
3557
|
+
loopPoint: j,
|
|
3558
|
+
slideLocation: _e(-1),
|
|
3559
|
+
translate: Fn(e, l[$]),
|
|
3560
|
+
target: () => u.get() > j ? N : B
|
|
3561
|
+
};
|
|
3562
|
+
});
|
|
3563
|
+
}
|
|
3564
|
+
function h() {
|
|
3565
|
+
const M = s[0], b = p(f, M);
|
|
3566
|
+
return S(b, t, !1);
|
|
3567
|
+
}
|
|
3568
|
+
function C() {
|
|
3569
|
+
const M = o - s[0] - 1, b = p(d, M);
|
|
3570
|
+
return S(b, -t, !0);
|
|
3571
|
+
}
|
|
3572
|
+
function v() {
|
|
3573
|
+
return g.every(({
|
|
3574
|
+
index: M
|
|
3575
|
+
}) => {
|
|
3576
|
+
const b = d.filter((P) => P !== M);
|
|
3577
|
+
return c(b, o) <= 0.1;
|
|
3578
|
+
});
|
|
3579
|
+
}
|
|
3580
|
+
function _() {
|
|
3581
|
+
g.forEach((M) => {
|
|
3582
|
+
const {
|
|
3583
|
+
target: b,
|
|
3584
|
+
translate: P,
|
|
3585
|
+
slideLocation: L
|
|
3586
|
+
} = M, $ = b();
|
|
3587
|
+
$ !== L.get() && (P.to($), L.set($));
|
|
3588
|
+
});
|
|
3589
|
+
}
|
|
3590
|
+
function I() {
|
|
3591
|
+
g.forEach((M) => M.translate.clear());
|
|
3592
|
+
}
|
|
3593
|
+
return {
|
|
3594
|
+
canLoop: v,
|
|
3595
|
+
clear: I,
|
|
3596
|
+
loop: _,
|
|
3597
|
+
loopPoints: g
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
function Hr(e, o, t) {
|
|
3601
|
+
let n, r = !1;
|
|
3602
|
+
function i(l) {
|
|
3603
|
+
if (!t) return;
|
|
3604
|
+
function a(d) {
|
|
3605
|
+
for (const f of d)
|
|
3606
|
+
if (f.type === "childList") {
|
|
3607
|
+
l.reInit(), o.emit("slidesChanged");
|
|
3608
|
+
break;
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
n = new MutationObserver((d) => {
|
|
3612
|
+
r || (Ke(t) || t(l, d)) && a(d);
|
|
3613
|
+
}), n.observe(e, {
|
|
3614
|
+
childList: !0
|
|
3615
|
+
});
|
|
3616
|
+
}
|
|
3617
|
+
function s() {
|
|
3618
|
+
n && n.disconnect(), r = !0;
|
|
3619
|
+
}
|
|
3620
|
+
return {
|
|
3621
|
+
init: i,
|
|
3622
|
+
destroy: s
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
function Gr(e, o, t, n) {
|
|
3626
|
+
const r = {};
|
|
3627
|
+
let i = null, s = null, u, l = !1;
|
|
3628
|
+
function a() {
|
|
3629
|
+
u = new IntersectionObserver((p) => {
|
|
3630
|
+
l || (p.forEach((m) => {
|
|
3631
|
+
const S = o.indexOf(m.target);
|
|
3632
|
+
r[S] = m;
|
|
3633
|
+
}), i = null, s = null, t.emit("slidesInView"));
|
|
3634
|
+
}, {
|
|
3635
|
+
root: e.parentElement,
|
|
3636
|
+
threshold: n
|
|
3637
|
+
}), o.forEach((p) => u.observe(p));
|
|
3638
|
+
}
|
|
3639
|
+
function d() {
|
|
3640
|
+
u && u.disconnect(), l = !0;
|
|
3641
|
+
}
|
|
3642
|
+
function f(p) {
|
|
3643
|
+
return $e(r).reduce((m, S) => {
|
|
3644
|
+
const h = parseInt(S), {
|
|
3645
|
+
isIntersecting: C
|
|
3646
|
+
} = r[h];
|
|
3647
|
+
return (p && C || !p && !C) && m.push(h), m;
|
|
3648
|
+
}, []);
|
|
3649
|
+
}
|
|
3650
|
+
function g(p = !0) {
|
|
3651
|
+
if (p && i) return i;
|
|
3652
|
+
if (!p && s) return s;
|
|
3653
|
+
const m = f(p);
|
|
3654
|
+
return p && (i = m), p || (s = m), m;
|
|
3655
|
+
}
|
|
3656
|
+
return {
|
|
3657
|
+
init: a,
|
|
3658
|
+
destroy: d,
|
|
3659
|
+
get: g
|
|
3660
|
+
};
|
|
3661
|
+
}
|
|
3662
|
+
function zr(e, o, t, n, r, i) {
|
|
3663
|
+
const {
|
|
3664
|
+
measureSize: s,
|
|
3665
|
+
startEdge: u,
|
|
3666
|
+
endEdge: l
|
|
3667
|
+
} = e, a = t[0] && r, d = p(), f = m(), g = t.map(s), c = S();
|
|
3668
|
+
function p() {
|
|
3669
|
+
if (!a) return 0;
|
|
3670
|
+
const C = t[0];
|
|
3671
|
+
return A(o[u] - C[u]);
|
|
3672
|
+
}
|
|
3673
|
+
function m() {
|
|
3674
|
+
if (!a) return 0;
|
|
3675
|
+
const C = i.getComputedStyle(ee(n));
|
|
3676
|
+
return parseFloat(C.getPropertyValue(`margin-${l}`));
|
|
3677
|
+
}
|
|
3678
|
+
function S() {
|
|
3679
|
+
return t.map((C, v, _) => {
|
|
3680
|
+
const I = !v, V = _t(_, v);
|
|
3681
|
+
return I ? g[v] + d : V ? g[v] + f : _[v + 1][u] - C[u];
|
|
3682
|
+
}).map(A);
|
|
3683
|
+
}
|
|
3684
|
+
return {
|
|
3685
|
+
slideSizes: g,
|
|
3686
|
+
slideSizesWithGaps: c,
|
|
3687
|
+
startGap: d,
|
|
3688
|
+
endGap: f
|
|
3689
|
+
};
|
|
3690
|
+
}
|
|
3691
|
+
function Br(e, o, t, n, r, i, s, u, l) {
|
|
3692
|
+
const {
|
|
3693
|
+
startEdge: a,
|
|
3694
|
+
endEdge: d,
|
|
3695
|
+
direction: f
|
|
3696
|
+
} = e, g = yt(t);
|
|
3697
|
+
function c(h, C) {
|
|
3698
|
+
return Pe(h).filter((v) => v % C === 0).map((v) => h.slice(v, v + C));
|
|
3699
|
+
}
|
|
3700
|
+
function p(h) {
|
|
3701
|
+
return h.length ? Pe(h).reduce((C, v, _) => {
|
|
3702
|
+
const I = ee(C) || 0, V = I === 0, M = v === De(h), b = r[a] - i[I][a], P = r[a] - i[v][d], L = !n && V ? f(s) : 0, $ = !n && M ? f(u) : 0, N = A(P - $ - (b + L));
|
|
3703
|
+
return _ && N > o + l && C.push(v), M && C.push(h.length), C;
|
|
3704
|
+
}, []).map((C, v, _) => {
|
|
3705
|
+
const I = Math.max(_[v - 1] || 0);
|
|
3706
|
+
return h.slice(I, C);
|
|
3707
|
+
}) : [];
|
|
3708
|
+
}
|
|
3709
|
+
function m(h) {
|
|
3710
|
+
return g ? c(h, t) : p(h);
|
|
3711
|
+
}
|
|
3712
|
+
return {
|
|
3713
|
+
groupSlides: m
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3716
|
+
function kr(e, o, t, n, r, i, s) {
|
|
3717
|
+
const {
|
|
3718
|
+
align: u,
|
|
3719
|
+
axis: l,
|
|
3720
|
+
direction: a,
|
|
3721
|
+
startIndex: d,
|
|
3722
|
+
loop: f,
|
|
3723
|
+
duration: g,
|
|
3724
|
+
dragFree: c,
|
|
3725
|
+
dragThreshold: p,
|
|
3726
|
+
inViewThreshold: m,
|
|
3727
|
+
slidesToScroll: S,
|
|
3728
|
+
skipSnaps: h,
|
|
3729
|
+
containScroll: C,
|
|
3730
|
+
watchResize: v,
|
|
3731
|
+
watchSlides: _,
|
|
3732
|
+
watchDrag: I,
|
|
3733
|
+
watchFocus: V
|
|
3734
|
+
} = i, M = 2, b = _r(), P = b.measure(o), L = t.map(b.measure), $ = xr(l, a), N = $.measureSize(P), B = Ir(N), E = vr(u, N), j = !f && !!C, U = f || !!C, {
|
|
3735
|
+
slideSizes: K,
|
|
3736
|
+
slideSizesWithGaps: J,
|
|
3737
|
+
startGap: Y,
|
|
3738
|
+
endGap: te
|
|
3739
|
+
} = zr($, P, L, t, U, r), X = Br($, N, S, f, P, L, Y, te, M), {
|
|
3740
|
+
snaps: oe,
|
|
3741
|
+
snapsAligned: re
|
|
3742
|
+
} = Lr($, E, P, L, X), ie = -ee(oe) + ee(J), {
|
|
3743
|
+
snapsContained: Re,
|
|
3744
|
+
scrollContainLimit: xe
|
|
3745
|
+
} = Pr(N, ie, re, C, M), k = j ? Re : re, {
|
|
3746
|
+
limit: G
|
|
3747
|
+
} = $r(ie, k, f), se = yn(De(k), d, f), W = se.clone(), O = Pe(t), R = ({
|
|
3748
|
+
dragHandler: Ce,
|
|
3749
|
+
scrollBody: Je,
|
|
3750
|
+
scrollBounds: Ye,
|
|
3751
|
+
options: {
|
|
3752
|
+
loop: Le
|
|
3753
|
+
}
|
|
3754
|
+
}) => {
|
|
3755
|
+
Le || Ye.constrain(Ce.pointerDown()), Je.seek();
|
|
3756
|
+
}, D = ({
|
|
3757
|
+
scrollBody: Ce,
|
|
3758
|
+
translate: Je,
|
|
3759
|
+
location: Ye,
|
|
3760
|
+
offsetLocation: Le,
|
|
3761
|
+
previousLocation: Mn,
|
|
3762
|
+
scrollLooper: Vn,
|
|
3763
|
+
slideLooper: bn,
|
|
3764
|
+
dragHandler: Pn,
|
|
3765
|
+
animation: $n,
|
|
3766
|
+
eventHandler: Pt,
|
|
3767
|
+
scrollBounds: En,
|
|
3768
|
+
options: {
|
|
3769
|
+
loop: $t
|
|
3770
|
+
}
|
|
3771
|
+
}, Et) => {
|
|
3772
|
+
const Dt = Ce.settled(), Dn = !En.shouldConstrain(), Lt = $t ? Dt : Dt && Dn, Ot = Lt && !Pn.pointerDown();
|
|
3773
|
+
Ot && $n.stop();
|
|
3774
|
+
const Ln = Ye.get() * Et + Mn.get() * (1 - Et);
|
|
3775
|
+
Le.set(Ln), $t && (Vn.loop(Ce.direction()), bn.loop()), Je.to(Le.get()), Ot && Pt.emit("settle"), Lt || Pt.emit("scroll");
|
|
3776
|
+
}, T = Rr(n, r, () => R(Qe), (Ce) => D(Qe, Ce)), z = 0.68, ne = k[se.get()], le = _e(ne), pe = _e(ne), ce = _e(ne), me = _e(ne), ye = Vr(le, ce, pe, me, g, z), Xe = Ar(f, k, ie, G, me), We = Nr(T, se, W, ye, Xe, me, s), Mt = Dr(G), Vt = Ee(), _n = Gr(o, t, s, m), {
|
|
3777
|
+
slideRegistry: bt
|
|
3778
|
+
} = Or(j, C, k, xe, X, O), In = Tr(e, t, bt, We, ye, Vt, s, V), Qe = {
|
|
3779
|
+
ownerDocument: n,
|
|
3780
|
+
ownerWindow: r,
|
|
3781
|
+
eventHandler: s,
|
|
3782
|
+
containerRect: P,
|
|
3783
|
+
slideRects: L,
|
|
3784
|
+
animation: T,
|
|
3785
|
+
axis: $,
|
|
3786
|
+
dragHandler: yr($, e, n, r, me, Fr($, r), le, T, We, ye, Xe, se, s, B, c, p, h, z, I),
|
|
3787
|
+
eventStore: Vt,
|
|
3788
|
+
percentOfView: B,
|
|
3789
|
+
index: se,
|
|
3790
|
+
indexPrevious: W,
|
|
3791
|
+
limit: G,
|
|
3792
|
+
location: le,
|
|
3793
|
+
offsetLocation: ce,
|
|
3794
|
+
previousLocation: pe,
|
|
3795
|
+
options: i,
|
|
3796
|
+
resizeHandler: Mr(o, s, r, t, $, v, b),
|
|
3797
|
+
scrollBody: ye,
|
|
3798
|
+
scrollBounds: br(G, ce, me, ye, B),
|
|
3799
|
+
scrollLooper: Er(ie, G, ce, [le, ce, pe, me]),
|
|
3800
|
+
scrollProgress: Mt,
|
|
3801
|
+
scrollSnapList: k.map(Mt.get),
|
|
3802
|
+
scrollSnaps: k,
|
|
3803
|
+
scrollTarget: Xe,
|
|
3804
|
+
scrollTo: We,
|
|
3805
|
+
slideLooper: jr($, N, ie, K, J, oe, k, ce, t),
|
|
3806
|
+
slideFocus: In,
|
|
3807
|
+
slidesHandler: Hr(o, s, _),
|
|
3808
|
+
slidesInView: _n,
|
|
3809
|
+
slideIndexes: O,
|
|
3810
|
+
slideRegistry: bt,
|
|
3811
|
+
slidesToScroll: X,
|
|
3812
|
+
target: me,
|
|
3813
|
+
translate: Fn($, o)
|
|
3814
|
+
};
|
|
3815
|
+
return Qe;
|
|
3816
|
+
}
|
|
3817
|
+
function qr() {
|
|
3818
|
+
let e = {}, o;
|
|
3819
|
+
function t(a) {
|
|
3820
|
+
o = a;
|
|
3821
|
+
}
|
|
3822
|
+
function n(a) {
|
|
3823
|
+
return e[a] || [];
|
|
3824
|
+
}
|
|
3825
|
+
function r(a) {
|
|
3826
|
+
return n(a).forEach((d) => d(o, a)), l;
|
|
3827
|
+
}
|
|
3828
|
+
function i(a, d) {
|
|
3829
|
+
return e[a] = n(a).concat([d]), l;
|
|
3830
|
+
}
|
|
3831
|
+
function s(a, d) {
|
|
3832
|
+
return e[a] = n(a).filter((f) => f !== d), l;
|
|
3833
|
+
}
|
|
3834
|
+
function u() {
|
|
3835
|
+
e = {};
|
|
3836
|
+
}
|
|
3837
|
+
const l = {
|
|
3838
|
+
init: t,
|
|
3839
|
+
emit: r,
|
|
3840
|
+
off: s,
|
|
3841
|
+
on: i,
|
|
3842
|
+
clear: u
|
|
3843
|
+
};
|
|
3844
|
+
return l;
|
|
3845
|
+
}
|
|
3846
|
+
const Ur = {
|
|
3847
|
+
align: "center",
|
|
3848
|
+
axis: "x",
|
|
3849
|
+
container: null,
|
|
3850
|
+
slides: null,
|
|
3851
|
+
containScroll: "trimSnaps",
|
|
3852
|
+
direction: "ltr",
|
|
3853
|
+
slidesToScroll: 1,
|
|
3854
|
+
inViewThreshold: 0,
|
|
3855
|
+
breakpoints: {},
|
|
3856
|
+
dragFree: !1,
|
|
3857
|
+
dragThreshold: 10,
|
|
3858
|
+
loop: !1,
|
|
3859
|
+
skipSnaps: !1,
|
|
3860
|
+
duration: 25,
|
|
3861
|
+
startIndex: 0,
|
|
3862
|
+
active: !0,
|
|
3863
|
+
watchDrag: !0,
|
|
3864
|
+
watchResize: !0,
|
|
3865
|
+
watchSlides: !0,
|
|
3866
|
+
watchFocus: !0
|
|
3867
|
+
};
|
|
3868
|
+
function Kr(e) {
|
|
3869
|
+
function o(i, s) {
|
|
3870
|
+
return xn(i, s || {});
|
|
3871
|
+
}
|
|
3872
|
+
function t(i) {
|
|
3873
|
+
const s = i.breakpoints || {}, u = $e(s).filter((l) => e.matchMedia(l).matches).map((l) => s[l]).reduce((l, a) => o(l, a), {});
|
|
3874
|
+
return o(i, u);
|
|
3875
|
+
}
|
|
3876
|
+
function n(i) {
|
|
3877
|
+
return i.map((s) => $e(s.breakpoints || {})).reduce((s, u) => s.concat(u), []).map(e.matchMedia);
|
|
3878
|
+
}
|
|
3879
|
+
return {
|
|
3880
|
+
mergeOptions: o,
|
|
3881
|
+
optionsAtMedia: t,
|
|
3882
|
+
optionsMediaQueries: n
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
function Xr(e) {
|
|
3886
|
+
let o = [];
|
|
3887
|
+
function t(i, s) {
|
|
3888
|
+
return o = s.filter(({
|
|
3889
|
+
options: u
|
|
3890
|
+
}) => e.optionsAtMedia(u).active !== !1), o.forEach((u) => u.init(i, e)), s.reduce((u, l) => Object.assign(u, {
|
|
3891
|
+
[l.name]: l
|
|
3892
|
+
}), {});
|
|
3893
|
+
}
|
|
3894
|
+
function n() {
|
|
3895
|
+
o = o.filter((i) => i.destroy());
|
|
3896
|
+
}
|
|
3897
|
+
return {
|
|
3898
|
+
init: t,
|
|
3899
|
+
destroy: n
|
|
3900
|
+
};
|
|
3901
|
+
}
|
|
3902
|
+
function Ge(e, o, t) {
|
|
3903
|
+
const n = e.ownerDocument, r = n.defaultView, i = Kr(r), s = Xr(i), u = Ee(), l = qr(), {
|
|
3904
|
+
mergeOptions: a,
|
|
3905
|
+
optionsAtMedia: d,
|
|
3906
|
+
optionsMediaQueries: f
|
|
3907
|
+
} = i, {
|
|
3908
|
+
on: g,
|
|
3909
|
+
off: c,
|
|
3910
|
+
emit: p
|
|
3911
|
+
} = l, m = $;
|
|
3912
|
+
let S = !1, h, C = a(Ur, Ge.globalOptions), v = a(C), _ = [], I, V, M;
|
|
3913
|
+
function b() {
|
|
3914
|
+
const {
|
|
3915
|
+
container: O,
|
|
3916
|
+
slides: R
|
|
3917
|
+
} = v;
|
|
3918
|
+
V = (ft(O) ? e.querySelector(O) : O) || e.children[0];
|
|
3919
|
+
const T = ft(R) ? V.querySelectorAll(R) : R;
|
|
3920
|
+
M = [].slice.call(T || V.children);
|
|
3921
|
+
}
|
|
3922
|
+
function P(O) {
|
|
3923
|
+
const R = kr(e, V, M, n, r, O, l);
|
|
3924
|
+
if (O.loop && !R.slideLooper.canLoop()) {
|
|
3925
|
+
const D = Object.assign({}, O, {
|
|
3926
|
+
loop: !1
|
|
3927
|
+
});
|
|
3928
|
+
return P(D);
|
|
3929
|
+
}
|
|
3930
|
+
return R;
|
|
3931
|
+
}
|
|
3932
|
+
function L(O, R) {
|
|
3933
|
+
S || (C = a(C, O), v = d(C), _ = R || _, b(), h = P(v), f([C, ..._.map(({
|
|
3934
|
+
options: D
|
|
3935
|
+
}) => D)]).forEach((D) => u.add(D, "change", $)), v.active && (h.translate.to(h.location.get()), h.animation.init(), h.slidesInView.init(), h.slideFocus.init(W), h.eventHandler.init(W), h.resizeHandler.init(W), h.slidesHandler.init(W), h.options.loop && h.slideLooper.loop(), V.offsetParent && M.length && h.dragHandler.init(W), I = s.init(W, _)));
|
|
3936
|
+
}
|
|
3937
|
+
function $(O, R) {
|
|
3938
|
+
const D = X();
|
|
3939
|
+
N(), L(a({
|
|
3940
|
+
startIndex: D
|
|
3941
|
+
}, O), R), l.emit("reInit");
|
|
3942
|
+
}
|
|
3943
|
+
function N() {
|
|
3944
|
+
h.dragHandler.destroy(), h.eventStore.clear(), h.translate.clear(), h.slideLooper.clear(), h.resizeHandler.destroy(), h.slidesHandler.destroy(), h.slidesInView.destroy(), h.animation.destroy(), s.destroy(), u.clear();
|
|
3945
|
+
}
|
|
3946
|
+
function B() {
|
|
3947
|
+
S || (S = !0, u.clear(), N(), l.emit("destroy"), l.clear());
|
|
3948
|
+
}
|
|
3949
|
+
function E(O, R, D) {
|
|
3950
|
+
!v.active || S || (h.scrollBody.useBaseFriction().useDuration(R === !0 ? 0 : v.duration), h.scrollTo.index(O, D || 0));
|
|
3951
|
+
}
|
|
3952
|
+
function j(O) {
|
|
3953
|
+
const R = h.index.add(1).get();
|
|
3954
|
+
E(R, O, -1);
|
|
3955
|
+
}
|
|
3956
|
+
function U(O) {
|
|
3957
|
+
const R = h.index.add(-1).get();
|
|
3958
|
+
E(R, O, 1);
|
|
3959
|
+
}
|
|
3960
|
+
function K() {
|
|
3961
|
+
return h.index.add(1).get() !== X();
|
|
3962
|
+
}
|
|
3963
|
+
function J() {
|
|
3964
|
+
return h.index.add(-1).get() !== X();
|
|
3965
|
+
}
|
|
3966
|
+
function Y() {
|
|
3967
|
+
return h.scrollSnapList;
|
|
3968
|
+
}
|
|
3969
|
+
function te() {
|
|
3970
|
+
return h.scrollProgress.get(h.offsetLocation.get());
|
|
3971
|
+
}
|
|
3972
|
+
function X() {
|
|
3973
|
+
return h.index.get();
|
|
3974
|
+
}
|
|
3975
|
+
function oe() {
|
|
3976
|
+
return h.indexPrevious.get();
|
|
3977
|
+
}
|
|
3978
|
+
function re() {
|
|
3979
|
+
return h.slidesInView.get();
|
|
3980
|
+
}
|
|
3981
|
+
function ie() {
|
|
3982
|
+
return h.slidesInView.get(!1);
|
|
3983
|
+
}
|
|
3984
|
+
function Re() {
|
|
3985
|
+
return I;
|
|
3986
|
+
}
|
|
3987
|
+
function xe() {
|
|
3988
|
+
return h;
|
|
3989
|
+
}
|
|
3990
|
+
function k() {
|
|
3991
|
+
return e;
|
|
3992
|
+
}
|
|
3993
|
+
function G() {
|
|
3994
|
+
return V;
|
|
3995
|
+
}
|
|
3996
|
+
function se() {
|
|
3997
|
+
return M;
|
|
3998
|
+
}
|
|
3999
|
+
const W = {
|
|
4000
|
+
canScrollNext: K,
|
|
4001
|
+
canScrollPrev: J,
|
|
4002
|
+
containerNode: G,
|
|
4003
|
+
internalEngine: xe,
|
|
4004
|
+
destroy: B,
|
|
4005
|
+
off: c,
|
|
4006
|
+
on: g,
|
|
4007
|
+
emit: p,
|
|
4008
|
+
plugins: Re,
|
|
4009
|
+
previousScrollSnap: oe,
|
|
4010
|
+
reInit: m,
|
|
4011
|
+
rootNode: k,
|
|
4012
|
+
scrollNext: j,
|
|
4013
|
+
scrollPrev: U,
|
|
4014
|
+
scrollProgress: te,
|
|
4015
|
+
scrollSnapList: Y,
|
|
4016
|
+
scrollTo: E,
|
|
4017
|
+
selectedScrollSnap: X,
|
|
4018
|
+
slideNodes: se,
|
|
4019
|
+
slidesInView: re,
|
|
4020
|
+
slidesNotInView: ie
|
|
4021
|
+
};
|
|
4022
|
+
return L(o, t), setTimeout(() => l.emit("init"), 0), W;
|
|
4023
|
+
}
|
|
4024
|
+
Ge.globalOptions = void 0;
|
|
4025
|
+
function It(e = {}, o = []) {
|
|
4026
|
+
const t = At(e), n = At(o), [r, i] = Se(), [s, u] = Se(), l = he(() => {
|
|
4027
|
+
r && r.reInit(t.current, n.current);
|
|
4028
|
+
}, [r]);
|
|
4029
|
+
return ve(() => {
|
|
4030
|
+
xt(t.current, e) || (t.current = e, l());
|
|
4031
|
+
}, [e, l]), ve(() => {
|
|
4032
|
+
Sr(n.current, o) || (n.current = o, l());
|
|
4033
|
+
}, [o, l]), ve(() => {
|
|
4034
|
+
if (hr() && s) {
|
|
4035
|
+
Ge.globalOptions = It.globalOptions;
|
|
4036
|
+
const a = Ge(s, t.current, n.current);
|
|
4037
|
+
return i(a), () => a.destroy();
|
|
4038
|
+
} else
|
|
4039
|
+
i(void 0);
|
|
4040
|
+
}, [s, i]), [u, r];
|
|
4041
|
+
}
|
|
4042
|
+
It.globalOptions = void 0;
|
|
4043
|
+
const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
4044
|
+
const [t, n] = It(e, [Rt(o)]), r = he((i) => {
|
|
4045
|
+
var l;
|
|
4046
|
+
const s = (l = i == null ? void 0 : i.plugins()) == null ? void 0 : l.autoplay;
|
|
4047
|
+
if (!s) return;
|
|
4048
|
+
(s.options.stopOnInteraction === !1 ? s.reset : s.stop)();
|
|
4049
|
+
}, []);
|
|
4050
|
+
return { emblaRef: t, emblaApi: n, navigationHandler: r };
|
|
4051
|
+
}, ze = ({ mode: e, onClick: o, children: t, classes: n, ...r }) => /* @__PURE__ */ w.jsxs(
|
|
4052
|
+
"button",
|
|
4053
|
+
{
|
|
4054
|
+
className: F("group flex size-8 cursor-pointer items-center justify-center p-1", n == null ? void 0 : n.button),
|
|
4055
|
+
type: "button",
|
|
4056
|
+
onClick: () => o(e),
|
|
4057
|
+
...r,
|
|
4058
|
+
children: [
|
|
4059
|
+
/* @__PURE__ */ w.jsx(
|
|
4060
|
+
be,
|
|
4061
|
+
{
|
|
4062
|
+
name: "arrows/arrowRight",
|
|
4063
|
+
className: F(
|
|
4064
|
+
"h-full w-full text-icon-primary-default transition-colors group-disabled:text-icon-disabled",
|
|
4065
|
+
{ "rotate-180": e === "prev" },
|
|
4066
|
+
n == null ? void 0 : n.icon
|
|
4067
|
+
)
|
|
4068
|
+
}
|
|
4069
|
+
),
|
|
4070
|
+
t
|
|
4071
|
+
]
|
|
4072
|
+
}
|
|
4073
|
+
), Qr = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */ w.jsx(
|
|
4074
|
+
"div",
|
|
4075
|
+
{
|
|
4076
|
+
className: F(
|
|
4077
|
+
"mt-4 flex items-center gap-[6px]",
|
|
4078
|
+
{
|
|
4079
|
+
"justify-center": n === "center",
|
|
4080
|
+
"justify-end": n === "bot-right",
|
|
4081
|
+
"justify-start": n === "bot-left"
|
|
4082
|
+
},
|
|
4083
|
+
r == null ? void 0 : r.dotsWrapper
|
|
4084
|
+
),
|
|
4085
|
+
children: e.map((s, u) => /* @__PURE__ */ w.jsx(
|
|
4086
|
+
"button",
|
|
4087
|
+
{
|
|
4088
|
+
type: "button",
|
|
4089
|
+
onClick: () => t(u),
|
|
4090
|
+
className: F(
|
|
4091
|
+
"size-2 cursor-pointer rounded-full bg-color-primary-tr-pressed",
|
|
4092
|
+
{ "h-2 w-4 rounded-md bg-color-primary-default": u === o },
|
|
4093
|
+
r == null ? void 0 : r.dot
|
|
4094
|
+
),
|
|
4095
|
+
...i
|
|
4096
|
+
},
|
|
4097
|
+
u
|
|
4098
|
+
))
|
|
4099
|
+
}
|
|
4100
|
+
), qt = Q(
|
|
4101
|
+
({ visibleIndex: e, classes: o, children: t, dotsProps: n, dotsOptions: r }, i) => {
|
|
4102
|
+
const { isMobile: s, isDesktop: u } = ke(), { mobVisible: l, deskVisible: a, ...d } = r ?? {}, f = l && s, g = a && u, c = {
|
|
4103
|
+
visibleIndex: e,
|
|
4104
|
+
...n
|
|
4105
|
+
};
|
|
4106
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F("mx-auto overflow-hidden", o == null ? void 0 : o.slidesOverlay), ref: i, children: [
|
|
4107
|
+
/* @__PURE__ */ w.jsx("div", { className: F("flex touch-pan-y gap-6", o == null ? void 0 : o.slidesWrapper), children: t }),
|
|
4108
|
+
(g || f) && /* @__PURE__ */ w.jsx(Qr, { ...c, ...d })
|
|
4109
|
+
] });
|
|
4110
|
+
}
|
|
4111
|
+
), Ut = {
|
|
4112
|
+
dragFree: !0,
|
|
4113
|
+
loop: !1,
|
|
4114
|
+
align: "start",
|
|
4115
|
+
slidesToScroll: 1
|
|
4116
|
+
}, Kt = {
|
|
4117
|
+
position: "center",
|
|
4118
|
+
deskVisible: !0,
|
|
4119
|
+
mobVisible: !0
|
|
4120
|
+
}, Xt = {
|
|
4121
|
+
position: "top-right",
|
|
4122
|
+
deskVisible: !0,
|
|
4123
|
+
mobVisible: !1
|
|
4124
|
+
}, Jr = {
|
|
4125
|
+
active: !0
|
|
4126
|
+
}, Yr = ({
|
|
4127
|
+
children: e,
|
|
4128
|
+
prevBtnDisabled: o,
|
|
4129
|
+
nextBtnDisabled: t,
|
|
4130
|
+
onClickNavigationButton: n,
|
|
4131
|
+
classes: r
|
|
4132
|
+
}) => {
|
|
4133
|
+
var i, s, u, l;
|
|
4134
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F("relative flex items-center gap-1", r == null ? void 0 : r.wrapper), children: [
|
|
4135
|
+
/* @__PURE__ */ w.jsx(
|
|
4136
|
+
ze,
|
|
4137
|
+
{
|
|
4138
|
+
mode: "prev",
|
|
4139
|
+
onClick: n,
|
|
4140
|
+
disabled: o,
|
|
4141
|
+
classes: {
|
|
4142
|
+
button: F("absolute -left-12 top-1/2 -transform-y-1/2", (i = r == null ? void 0 : r.arrowLeftClasses) == null ? void 0 : i.button),
|
|
4143
|
+
icon: F((s = r == null ? void 0 : r.arrowLeftClasses) == null ? void 0 : s.icon)
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
),
|
|
4147
|
+
e,
|
|
4148
|
+
/* @__PURE__ */ w.jsx(
|
|
4149
|
+
ze,
|
|
4150
|
+
{
|
|
4151
|
+
mode: "next",
|
|
4152
|
+
onClick: n,
|
|
4153
|
+
disabled: t,
|
|
4154
|
+
classes: {
|
|
4155
|
+
button: F("absolute -right-12 top-1/2 -transform-y-1/2", (u = r == null ? void 0 : r.arrowRightClasses) == null ? void 0 : u.button),
|
|
4156
|
+
icon: F((l = r == null ? void 0 : r.arrowRightClasses) == null ? void 0 : l.icon)
|
|
4157
|
+
}
|
|
4158
|
+
}
|
|
4159
|
+
)
|
|
4160
|
+
] });
|
|
4161
|
+
}, Si = ({
|
|
4162
|
+
dotsOptions: e = Kt,
|
|
4163
|
+
navArrowOptions: o = Xt,
|
|
4164
|
+
carouselOptions: t = Ut,
|
|
4165
|
+
heading: n,
|
|
4166
|
+
autoPlayOptions: r,
|
|
4167
|
+
setVisibleIndex: i,
|
|
4168
|
+
visibleIndex: s,
|
|
4169
|
+
children: u,
|
|
4170
|
+
classes: l,
|
|
4171
|
+
...a
|
|
4172
|
+
}) => {
|
|
4173
|
+
const d = { ...Ut, ...t }, f = { ...Jr, ...r }, g = { ...Xt, ...o }, c = { ...Kt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = Wr({
|
|
4174
|
+
carouselOptions: d,
|
|
4175
|
+
autoPlayOptions: f
|
|
4176
|
+
}), h = dr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: C, nextBtnDisabled: v, onClickNavigationButton: _ } = cr({
|
|
4177
|
+
emblaApi: p,
|
|
4178
|
+
navigationHandler: m
|
|
4179
|
+
}), { isMobile: I, isDesktop: V } = ke(), { deskVisible: M, mobVisible: b, position: P } = g ?? {}, N = M && V || b && I, B = !!n || N && P === "top-right";
|
|
4180
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F("flex flex-col", l == null ? void 0 : l.root), ...a, children: [
|
|
4181
|
+
B && /* @__PURE__ */ w.jsxs("div", { className: F("flex items-center justify-between gap-6", { "mb-6": B }, l == null ? void 0 : l.header), children: [
|
|
4182
|
+
!!n && /* @__PURE__ */ w.jsx(qn, { as: "h2", className: F(l == null ? void 0 : l.heading), children: "Другие предложения" }),
|
|
4183
|
+
N && P === "top-right" && /* @__PURE__ */ w.jsxs("div", { className: F("ml-auto flex items-center gap-2", l == null ? void 0 : l.arrowsNavWrapper), children: [
|
|
4184
|
+
/* @__PURE__ */ w.jsx(
|
|
4185
|
+
ze,
|
|
4186
|
+
{
|
|
4187
|
+
mode: "prev",
|
|
4188
|
+
onClick: _,
|
|
4189
|
+
disabled: C,
|
|
4190
|
+
classes: l == null ? void 0 : l.arrowLeftClasses
|
|
4191
|
+
}
|
|
4192
|
+
),
|
|
4193
|
+
/* @__PURE__ */ w.jsx(
|
|
4194
|
+
ze,
|
|
4195
|
+
{
|
|
4196
|
+
mode: "next",
|
|
4197
|
+
onClick: _,
|
|
4198
|
+
disabled: v,
|
|
4199
|
+
classes: l == null ? void 0 : l.arrowRightClasses
|
|
4200
|
+
}
|
|
4201
|
+
)
|
|
4202
|
+
] })
|
|
4203
|
+
] }),
|
|
4204
|
+
N && P === "center" ? /* @__PURE__ */ w.jsx(
|
|
4205
|
+
Yr,
|
|
4206
|
+
{
|
|
4207
|
+
onClickNavigationButton: _,
|
|
4208
|
+
prevBtnDisabled: C,
|
|
4209
|
+
nextBtnDisabled: v,
|
|
4210
|
+
classes: l == null ? void 0 : l.containerWithNavClasses,
|
|
4211
|
+
children: /* @__PURE__ */ w.jsx(
|
|
4212
|
+
qt,
|
|
4213
|
+
{
|
|
4214
|
+
visibleIndex: s,
|
|
4215
|
+
dotsOptions: c,
|
|
4216
|
+
ref: S,
|
|
4217
|
+
dotsProps: h,
|
|
4218
|
+
classes: l == null ? void 0 : l.carouselContentClasses,
|
|
4219
|
+
children: u
|
|
4220
|
+
}
|
|
4221
|
+
)
|
|
4222
|
+
}
|
|
4223
|
+
) : /* @__PURE__ */ w.jsx(
|
|
4224
|
+
qt,
|
|
4225
|
+
{
|
|
4226
|
+
visibleIndex: s,
|
|
4227
|
+
dotsOptions: c,
|
|
4228
|
+
ref: S,
|
|
4229
|
+
dotsProps: h,
|
|
4230
|
+
classes: l == null ? void 0 : l.carouselContentClasses,
|
|
4231
|
+
children: u
|
|
4232
|
+
}
|
|
4233
|
+
)
|
|
4234
|
+
] });
|
|
4235
|
+
}, wi = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
4236
|
+
const { toasts: t } = Un();
|
|
4237
|
+
return ve(() => {
|
|
4238
|
+
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => Kn.dismiss(n.id));
|
|
4239
|
+
}, [e, t]), /* @__PURE__ */ w.jsx(
|
|
4240
|
+
Xn,
|
|
2706
4241
|
{
|
|
2707
4242
|
position: "top-center",
|
|
2708
4243
|
toastOptions: {
|
|
@@ -2710,119 +4245,120 @@ const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
|
2710
4245
|
}
|
|
2711
4246
|
}
|
|
2712
4247
|
);
|
|
2713
|
-
},
|
|
4248
|
+
}, Ci = ({ linksList: e }) => /* @__PURE__ */ w.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ w.jsx(w.Fragment, { children: "path" in o ? /* @__PURE__ */ w.jsxs(
|
|
2714
4249
|
"div",
|
|
2715
4250
|
{
|
|
2716
|
-
className:
|
|
4251
|
+
className: F(
|
|
2717
4252
|
"flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
|
|
2718
4253
|
{ "pointer-events-none !border-transparent": o == null ? void 0 : o.isDisabled }
|
|
2719
4254
|
),
|
|
2720
4255
|
children: [
|
|
2721
|
-
/* @__PURE__ */
|
|
4256
|
+
/* @__PURE__ */ w.jsx(
|
|
2722
4257
|
"a",
|
|
2723
4258
|
{
|
|
2724
4259
|
href: o.path,
|
|
2725
4260
|
target: "_blank",
|
|
2726
4261
|
rel: "noreferrer",
|
|
2727
|
-
className:
|
|
4262
|
+
className: F(
|
|
2728
4263
|
"desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
|
|
2729
4264
|
{ "!text-color-disabled": o == null ? void 0 : o.isDisabled }
|
|
2730
4265
|
),
|
|
2731
4266
|
children: o.label
|
|
2732
4267
|
}
|
|
2733
4268
|
),
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
|
|
4269
|
+
/* @__PURE__ */ w.jsx(
|
|
4270
|
+
be,
|
|
2736
4271
|
{
|
|
2737
4272
|
name: "arrows/arrowRight",
|
|
2738
|
-
className:
|
|
4273
|
+
className: F("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
|
|
2739
4274
|
}
|
|
2740
4275
|
)
|
|
2741
4276
|
]
|
|
2742
4277
|
}
|
|
2743
|
-
) : /* @__PURE__ */
|
|
2744
|
-
if (
|
|
2745
|
-
const n =
|
|
2746
|
-
return
|
|
2747
|
-
...
|
|
4278
|
+
) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), Zr = ({ children: e }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: e }), mt = Q(({ children: e, ...o }, t) => {
|
|
4279
|
+
if (je(e)) {
|
|
4280
|
+
const n = ti(e);
|
|
4281
|
+
return Qt(e, {
|
|
4282
|
+
...ni(o, e.props),
|
|
2748
4283
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2749
4284
|
// @ts-expect-error
|
|
2750
|
-
ref: t ?
|
|
4285
|
+
ref: t ? Wn(t, n) : n
|
|
2751
4286
|
});
|
|
2752
4287
|
}
|
|
2753
|
-
return
|
|
4288
|
+
return Ie.count(e) > 1 ? Ie.only(null) : null;
|
|
2754
4289
|
});
|
|
2755
|
-
|
|
2756
|
-
const
|
|
4290
|
+
mt.displayName = "SlotClone";
|
|
4291
|
+
const ei = (e) => je(e) && e.type === Zr, ti = (e) => {
|
|
2757
4292
|
var n, r;
|
|
2758
4293
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
|
|
2759
4294
|
return t ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = o && "isReactWarning" in o && o.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
2760
|
-
},
|
|
4295
|
+
}, ni = (e, o) => {
|
|
2761
4296
|
const t = { ...o };
|
|
2762
4297
|
for (const n in o) {
|
|
2763
4298
|
const r = e[n], i = o[n];
|
|
2764
|
-
/^on[A-Z]/.test(n) ? r && i && (t[n] = (...
|
|
2765
|
-
r(...
|
|
4299
|
+
/^on[A-Z]/.test(n) ? r && i && (t[n] = (...s) => {
|
|
4300
|
+
r(...s), i(...s);
|
|
2766
4301
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
2767
4302
|
}
|
|
2768
4303
|
return { ...e, ...t };
|
|
2769
|
-
},
|
|
2770
|
-
const n =
|
|
4304
|
+
}, oi = Q(({ children: e, ...o }, t) => {
|
|
4305
|
+
const n = Ie.toArray(e), r = n.find(ei);
|
|
2771
4306
|
if (r) {
|
|
2772
|
-
const i = r.props.children,
|
|
2773
|
-
return /* @__PURE__ */
|
|
4307
|
+
const i = r.props.children, s = n.map((u) => u === r ? Ie.count(i) > 1 ? Ie.only(null) : je(i) ? i.props.children : null : u);
|
|
4308
|
+
return /* @__PURE__ */ w.jsx(mt, { ...o, ref: t, children: je(i) ? Qt(i, void 0, s) : null });
|
|
2774
4309
|
}
|
|
2775
|
-
return /* @__PURE__ */
|
|
4310
|
+
return /* @__PURE__ */ w.jsx(mt, { ...o, ref: t, children: e });
|
|
2776
4311
|
});
|
|
2777
|
-
|
|
4312
|
+
oi.displayName = "Slot";
|
|
2778
4313
|
export {
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
4314
|
+
kn as Accordion,
|
|
4315
|
+
xi as Badge,
|
|
4316
|
+
Ci as Breadcrumbs,
|
|
4317
|
+
de as Button,
|
|
4318
|
+
ai as ButtonIcon,
|
|
4319
|
+
yi as Calendar,
|
|
4320
|
+
Si as CarouselBase,
|
|
4321
|
+
Fi as Controlled,
|
|
4322
|
+
_i as CustomLink,
|
|
4323
|
+
Gi as DATE_VISIBLE_PATTERN,
|
|
4324
|
+
mi as DataTable,
|
|
4325
|
+
io as DataTableColumnHeader,
|
|
4326
|
+
di as FloatButton,
|
|
4327
|
+
qn as Heading,
|
|
4328
|
+
Ii as Hint,
|
|
4329
|
+
be as Icon,
|
|
4330
|
+
Mi as KeyboardShortcuts,
|
|
4331
|
+
Vi as Loader,
|
|
4332
|
+
bi as Modal,
|
|
4333
|
+
Pi as Notification,
|
|
4334
|
+
wi as NotificationProvider,
|
|
4335
|
+
sr as Pagination,
|
|
4336
|
+
$i as PhoneView,
|
|
4337
|
+
Ei as Popover,
|
|
4338
|
+
Di as ProgressBar,
|
|
4339
|
+
An as ResponsiveContainer,
|
|
4340
|
+
ci as Skeleton,
|
|
4341
|
+
oi as Slot,
|
|
4342
|
+
un as Table,
|
|
4343
|
+
cn as TableBody,
|
|
4344
|
+
ro as TableCaption,
|
|
4345
|
+
lt as TableCell,
|
|
4346
|
+
oo as TableFooter,
|
|
4347
|
+
dn as TableHead,
|
|
4348
|
+
an as TableHeader,
|
|
4349
|
+
Te as TableRow,
|
|
4350
|
+
hi as TableUtils,
|
|
4351
|
+
pi as TabsSwitcher,
|
|
4352
|
+
Li as Uncontrolled,
|
|
4353
|
+
gi as allowedIcons,
|
|
4354
|
+
Oi as brandLogos,
|
|
4355
|
+
Ai as buttonPrimitiveIntent,
|
|
4356
|
+
Ni as buttonPrimitiveSize,
|
|
4357
|
+
Ti as buttonPrimitiveTextFormat,
|
|
4358
|
+
zi as defaultClassNames,
|
|
4359
|
+
Bi as formatDateToLocaleString,
|
|
4360
|
+
ki as formatDateToMonthString,
|
|
4361
|
+
qi as formatDateToYearString,
|
|
4362
|
+
ji as isSingleOption
|
|
2827
4363
|
};
|
|
2828
4364
|
//# sourceMappingURL=ui.js.map
|