@scbt-ecom/ui 0.71.3 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-cFFEEZ33.js → index-CXVnBzNh.js} +10502 -10395
- package/dist/index-CXVnBzNh.js.map +1 -0
- package/dist/shared/ui/table/Table.d.ts +1 -1
- package/dist/shared/ui/table/model/types.d.ts +4 -0
- package/dist/shared/ui/table/ui/editableCell/EditableCell.d.ts +7 -0
- package/dist/shared/ui/table/ui/editableCell/index.d.ts +1 -0
- package/dist/shared/ui/table/ui/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/ui.js +705 -674
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
- package/dist/index-cFFEEZ33.js.map +0 -1
package/dist/ui.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as w, c as On, R as An, B as
|
|
2
|
-
import { o as
|
|
3
|
-
import * as
|
|
4
|
-
import { forwardRef as Q, useState as
|
|
1
|
+
import { j as w, c as On, R as An, B as ge, 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-CXVnBzNh.js";
|
|
2
|
+
import { o as Fi, C as _i, v as Ii, t as Mi, p as Vi, K as bi, L as Pi, M as $i, N as Ei, n as Di, q as Li, r as Oi, U as Ai, s as Ni, k as Ti, m as ji, l as Hi, w as Gi } from "./index-CXVnBzNh.js";
|
|
3
|
+
import * as ce from "react";
|
|
4
|
+
import { forwardRef as Q, useState as oe, useRef as lt, useCallback as Se, useEffect as ve, isValidElement as je, cloneElement as Qt, Children as Ie } from "react";
|
|
5
5
|
import { c as F, T as Nt } from "./typeGuards-CSiImkUY.js";
|
|
6
|
-
import { D as
|
|
7
|
-
import { u as ke } from "./useDebounce-B__kmLt7.js";
|
|
8
|
-
import { m as
|
|
9
|
-
const
|
|
6
|
+
import { D as Bi, d as ki, f as qi, b as Ui, a as Ki } from "./utils-k3uzuyeN.js";
|
|
7
|
+
import { u as ke, a as Wn } from "./useDebounce-B__kmLt7.js";
|
|
8
|
+
import { m as Qn } from "./mergeRefs-qDToYXtM.js";
|
|
9
|
+
const Jn = On(
|
|
10
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",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
@@ -26,9 +26,9 @@ const Qn = On(
|
|
|
26
26
|
size: "lg"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
),
|
|
30
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, s) => /* @__PURE__ */ w.jsx("button", { ref: s, type: r, className: F(
|
|
31
|
-
),
|
|
29
|
+
), ci = 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(Jn({ 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
|
+
), di = ({ className: e }) => /* @__PURE__ */ w.jsx("div", { className: F("skeleton-apply h-full w-full", e) }), gi = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ w.jsxs(
|
|
32
32
|
An,
|
|
33
33
|
{
|
|
34
34
|
className: F(
|
|
@@ -38,10 +38,10 @@ const Qn = On(
|
|
|
38
38
|
),
|
|
39
39
|
children: [
|
|
40
40
|
t,
|
|
41
|
-
/* @__PURE__ */ w.jsx(
|
|
41
|
+
/* @__PURE__ */ w.jsx(ge, { size: "lg", className: F("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
|
-
),
|
|
44
|
+
), fi = {
|
|
45
45
|
group: {
|
|
46
46
|
arrows: [
|
|
47
47
|
"arrows/arrowCircle",
|
|
@@ -173,9 +173,9 @@ const Qn = On(
|
|
|
173
173
|
"status/iconUser"
|
|
174
174
|
]
|
|
175
175
|
};
|
|
176
|
-
var qe = "Tabs", [
|
|
176
|
+
var qe = "Tabs", [Yn, pi] = jn(qe, [
|
|
177
177
|
Wt
|
|
178
|
-
]), Jt = Wt(), [
|
|
178
|
+
]), Jt = Wt(), [Zn, St] = Yn(qe), Yt = ce.forwardRef(
|
|
179
179
|
(e, o) => {
|
|
180
180
|
const {
|
|
181
181
|
__scopeTabs: t,
|
|
@@ -186,26 +186,26 @@ var qe = "Tabs", [Jn, fi] = jn(qe, [
|
|
|
186
186
|
dir: u,
|
|
187
187
|
activationMode: l = "automatic",
|
|
188
188
|
...a
|
|
189
|
-
} = e,
|
|
189
|
+
} = e, g = Nn(u), [f, d] = Tn({
|
|
190
190
|
prop: n,
|
|
191
191
|
onChange: r,
|
|
192
192
|
defaultProp: i ?? "",
|
|
193
193
|
caller: qe
|
|
194
194
|
});
|
|
195
195
|
return /* @__PURE__ */ w.jsx(
|
|
196
|
-
|
|
196
|
+
Zn,
|
|
197
197
|
{
|
|
198
198
|
scope: t,
|
|
199
199
|
baseId: Hn(),
|
|
200
200
|
value: f,
|
|
201
|
-
onValueChange:
|
|
201
|
+
onValueChange: d,
|
|
202
202
|
orientation: s,
|
|
203
|
-
dir:
|
|
203
|
+
dir: g,
|
|
204
204
|
activationMode: l,
|
|
205
205
|
children: /* @__PURE__ */ w.jsx(
|
|
206
206
|
Be.div,
|
|
207
207
|
{
|
|
208
|
-
dir:
|
|
208
|
+
dir: g,
|
|
209
209
|
"data-orientation": s,
|
|
210
210
|
...a,
|
|
211
211
|
ref: o
|
|
@@ -216,9 +216,9 @@ var qe = "Tabs", [Jn, fi] = jn(qe, [
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
Yt.displayName = qe;
|
|
219
|
-
var Zt = "TabsList", en =
|
|
219
|
+
var Zt = "TabsList", en = ce.forwardRef(
|
|
220
220
|
(e, o) => {
|
|
221
|
-
const { __scopeTabs: t, loop: n = !0, ...r } = e, i =
|
|
221
|
+
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(Zt, t), s = Jt(t);
|
|
222
222
|
return /* @__PURE__ */ w.jsx(
|
|
223
223
|
Gn,
|
|
224
224
|
{
|
|
@@ -241,24 +241,24 @@ var Zt = "TabsList", en = ae.forwardRef(
|
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
en.displayName = Zt;
|
|
244
|
-
var tn = "TabsTrigger", nn =
|
|
244
|
+
var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
245
245
|
(e, o) => {
|
|
246
|
-
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, s =
|
|
246
|
+
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, s = St(tn, t), u = Jt(t), l = sn(s.baseId, n), a = ln(s.baseId, n), g = n === s.value;
|
|
247
247
|
return /* @__PURE__ */ w.jsx(
|
|
248
248
|
zn,
|
|
249
249
|
{
|
|
250
250
|
asChild: !0,
|
|
251
251
|
...u,
|
|
252
252
|
focusable: !r,
|
|
253
|
-
active:
|
|
253
|
+
active: g,
|
|
254
254
|
children: /* @__PURE__ */ w.jsx(
|
|
255
255
|
Be.button,
|
|
256
256
|
{
|
|
257
257
|
type: "button",
|
|
258
258
|
role: "tab",
|
|
259
|
-
"aria-selected":
|
|
259
|
+
"aria-selected": g,
|
|
260
260
|
"aria-controls": a,
|
|
261
|
-
"data-state":
|
|
261
|
+
"data-state": g ? "active" : "inactive",
|
|
262
262
|
"data-disabled": r ? "" : void 0,
|
|
263
263
|
disabled: r,
|
|
264
264
|
id: l,
|
|
@@ -272,7 +272,7 @@ var tn = "TabsTrigger", nn = ae.forwardRef(
|
|
|
272
272
|
}),
|
|
273
273
|
onFocus: Ze(e.onFocus, () => {
|
|
274
274
|
const f = s.activationMode !== "manual";
|
|
275
|
-
!
|
|
275
|
+
!g && !r && f && s.onValueChange(n);
|
|
276
276
|
})
|
|
277
277
|
}
|
|
278
278
|
)
|
|
@@ -281,20 +281,20 @@ var tn = "TabsTrigger", nn = ae.forwardRef(
|
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
nn.displayName = tn;
|
|
284
|
-
var on = "TabsContent", rn =
|
|
284
|
+
var on = "TabsContent", rn = ce.forwardRef(
|
|
285
285
|
(e, o) => {
|
|
286
|
-
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...s } = e, u =
|
|
287
|
-
return
|
|
288
|
-
const
|
|
289
|
-
return () => cancelAnimationFrame(
|
|
290
|
-
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r ||
|
|
286
|
+
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...s } = e, u = St(on, t), l = sn(u.baseId, n), a = ln(u.baseId, n), g = n === u.value, f = ce.useRef(g);
|
|
287
|
+
return ce.useEffect(() => {
|
|
288
|
+
const d = requestAnimationFrame(() => f.current = !1);
|
|
289
|
+
return () => cancelAnimationFrame(d);
|
|
290
|
+
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r || g, children: ({ present: d }) => /* @__PURE__ */ w.jsx(
|
|
291
291
|
Be.div,
|
|
292
292
|
{
|
|
293
|
-
"data-state":
|
|
293
|
+
"data-state": g ? "active" : "inactive",
|
|
294
294
|
"data-orientation": u.orientation,
|
|
295
295
|
role: "tabpanel",
|
|
296
296
|
"aria-labelledby": l,
|
|
297
|
-
hidden: !
|
|
297
|
+
hidden: !d,
|
|
298
298
|
id: a,
|
|
299
299
|
tabIndex: 0,
|
|
300
300
|
...s,
|
|
@@ -303,7 +303,7 @@ var on = "TabsContent", rn = ae.forwardRef(
|
|
|
303
303
|
...e.style,
|
|
304
304
|
animationDuration: f.current ? "0s" : void 0
|
|
305
305
|
},
|
|
306
|
-
children:
|
|
306
|
+
children: d && i
|
|
307
307
|
}
|
|
308
308
|
) });
|
|
309
309
|
}
|
|
@@ -315,19 +315,19 @@ function sn(e, o) {
|
|
|
315
315
|
function ln(e, o) {
|
|
316
316
|
return `${e}-content-${o}`;
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
const
|
|
318
|
+
var eo = Yt, to = en, no = nn, Tt = rn;
|
|
319
|
+
const oo = ({ 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)) }), mi = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
320
320
|
var i;
|
|
321
321
|
return /* @__PURE__ */ w.jsxs(
|
|
322
|
-
|
|
322
|
+
eo,
|
|
323
323
|
{
|
|
324
324
|
value: t,
|
|
325
325
|
onValueChange: n,
|
|
326
326
|
defaultValue: o,
|
|
327
327
|
className: F("flex flex-col", r == null ? void 0 : r.root),
|
|
328
328
|
children: [
|
|
329
|
-
/* @__PURE__ */ w.jsx(
|
|
330
|
-
|
|
329
|
+
/* @__PURE__ */ w.jsx(to, { 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
|
+
no,
|
|
331
331
|
{
|
|
332
332
|
value: s,
|
|
333
333
|
className: F(
|
|
@@ -338,7 +338,7 @@ const no = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { class
|
|
|
338
338
|
},
|
|
339
339
|
s
|
|
340
340
|
)) }),
|
|
341
|
-
/* @__PURE__ */ w.jsx(
|
|
341
|
+
/* @__PURE__ */ w.jsx(oo, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
|
|
342
342
|
]
|
|
343
343
|
}
|
|
344
344
|
);
|
|
@@ -348,17 +348,17 @@ const an = Q((e, o) => /* @__PURE__ */ w.jsx("thead", { ref: o, ...e }));
|
|
|
348
348
|
an.displayName = "TableHeader";
|
|
349
349
|
const cn = Q((e, o) => /* @__PURE__ */ w.jsx("tbody", { ref: o, ...e }));
|
|
350
350
|
cn.displayName = "TableBody";
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const ro = Q((e, o) => /* @__PURE__ */ w.jsx("tfoot", { ref: o, ...e }));
|
|
352
|
+
ro.displayName = "TableFooter";
|
|
353
353
|
const Te = Q((e, o) => /* @__PURE__ */ w.jsx("tr", { ref: o, ...e }));
|
|
354
354
|
Te.displayName = "TableRow";
|
|
355
355
|
const dn = Q((e, o) => /* @__PURE__ */ w.jsx("th", { ref: o, ...e }));
|
|
356
356
|
dn.displayName = "TableHead";
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
const
|
|
357
|
+
const ut = Q((e, o) => /* @__PURE__ */ w.jsx("td", { ref: o, ...e }));
|
|
358
|
+
ut.displayName = "TableCell";
|
|
359
|
+
const io = Q((e, o) => /* @__PURE__ */ w.jsx("caption", { ref: o, ...e }));
|
|
360
|
+
io.displayName = "TableCaption";
|
|
361
|
+
const so = ({
|
|
362
362
|
children: e,
|
|
363
363
|
canSort: o,
|
|
364
364
|
toggleSorting: t,
|
|
@@ -366,17 +366,17 @@ const io = ({
|
|
|
366
366
|
isSorted: r,
|
|
367
367
|
classes: i
|
|
368
368
|
}) => {
|
|
369
|
-
const { root: s, content: u, icon: l } = i || {}, { isDesktop: a } = ke(),
|
|
369
|
+
const { root: s, content: u, icon: l } = i || {}, { isDesktop: a } = ke(), g = o && a;
|
|
370
370
|
return /* @__PURE__ */ w.jsxs(
|
|
371
371
|
"button",
|
|
372
372
|
{
|
|
373
373
|
type: "button",
|
|
374
374
|
className: F("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", s),
|
|
375
375
|
onClick: () => t(!r),
|
|
376
|
-
disabled: !
|
|
376
|
+
disabled: !g,
|
|
377
377
|
children: [
|
|
378
378
|
/* @__PURE__ */ w.jsx("span", { className: F("", u), children: e }),
|
|
379
|
-
|
|
379
|
+
g && /* @__PURE__ */ w.jsx(
|
|
380
380
|
be,
|
|
381
381
|
{
|
|
382
382
|
name: "arrows/arrowRight",
|
|
@@ -392,6 +392,31 @@ const io = ({
|
|
|
392
392
|
]
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
|
+
}, hi = ({
|
|
396
|
+
row: e,
|
|
397
|
+
getValue: o,
|
|
398
|
+
update: t,
|
|
399
|
+
target: n
|
|
400
|
+
}) => {
|
|
401
|
+
const [r, i] = oe(!1), [s, u] = oe(o()), l = lt(null), { original: a } = e, g = (d) => {
|
|
402
|
+
u(d.target.value);
|
|
403
|
+
}, f = () => {
|
|
404
|
+
const d = { ...a, [n]: s };
|
|
405
|
+
t(d), i(!1);
|
|
406
|
+
};
|
|
407
|
+
return Wn(l, f), r ? /* @__PURE__ */ w.jsx(
|
|
408
|
+
"input",
|
|
409
|
+
{
|
|
410
|
+
ref: l,
|
|
411
|
+
className: "w-full border-b outline-none",
|
|
412
|
+
type: "text",
|
|
413
|
+
value: s,
|
|
414
|
+
onChange: g,
|
|
415
|
+
onKeyDown: (d) => {
|
|
416
|
+
d.key === "Enter" && (d.preventDefault(), f());
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
) : /* @__PURE__ */ w.jsx("p", { className: "w-full", onClick: () => i(!0), children: o() });
|
|
395
420
|
};
|
|
396
421
|
/**
|
|
397
422
|
* table-core
|
|
@@ -403,7 +428,7 @@ const io = ({
|
|
|
403
428
|
*
|
|
404
429
|
* @license MIT
|
|
405
430
|
*/
|
|
406
|
-
function
|
|
431
|
+
function lo() {
|
|
407
432
|
return {
|
|
408
433
|
accessor: (e, o) => typeof e == "function" ? {
|
|
409
434
|
...o,
|
|
@@ -416,24 +441,24 @@ function so() {
|
|
|
416
441
|
group: (e) => e
|
|
417
442
|
};
|
|
418
443
|
}
|
|
419
|
-
function
|
|
444
|
+
function fe(e, o) {
|
|
420
445
|
return typeof e == "function" ? e(o) : e;
|
|
421
446
|
}
|
|
422
447
|
function q(e, o) {
|
|
423
448
|
return (t) => {
|
|
424
449
|
o.setState((n) => ({
|
|
425
450
|
...n,
|
|
426
|
-
[e]:
|
|
451
|
+
[e]: fe(t, n[e])
|
|
427
452
|
}));
|
|
428
453
|
};
|
|
429
454
|
}
|
|
430
455
|
function Ue(e) {
|
|
431
456
|
return e instanceof Function;
|
|
432
457
|
}
|
|
433
|
-
function
|
|
458
|
+
function uo(e) {
|
|
434
459
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
435
460
|
}
|
|
436
|
-
function
|
|
461
|
+
function ao(e, o) {
|
|
437
462
|
const t = [], n = (r) => {
|
|
438
463
|
r.forEach((i) => {
|
|
439
464
|
t.push(i);
|
|
@@ -449,20 +474,20 @@ function x(e, o, t) {
|
|
|
449
474
|
let s;
|
|
450
475
|
t.key && t.debug && (s = Date.now());
|
|
451
476
|
const u = e(i);
|
|
452
|
-
if (!(u.length !== n.length || u.some((
|
|
477
|
+
if (!(u.length !== n.length || u.some((g, f) => n[f] !== g)))
|
|
453
478
|
return r;
|
|
454
479
|
n = u;
|
|
455
480
|
let a;
|
|
456
481
|
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
|
|
482
|
+
const g = Math.round((Date.now() - s) * 100) / 100, f = Math.round((Date.now() - a) * 100) / 100, d = f / 16, c = (p, m) => {
|
|
458
483
|
for (p = String(p); p.length < m; )
|
|
459
484
|
p = " " + p;
|
|
460
485
|
return p;
|
|
461
486
|
};
|
|
462
|
-
console.info(`%c⏱ ${c(f, 5)} /${c(
|
|
487
|
+
console.info(`%c⏱ ${c(f, 5)} /${c(g, 5)} ms`, `
|
|
463
488
|
font-size: .6rem;
|
|
464
489
|
font-weight: bold;
|
|
465
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
490
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
466
491
|
}
|
|
467
492
|
return r;
|
|
468
493
|
};
|
|
@@ -477,7 +502,7 @@ function y(e, o, t, n) {
|
|
|
477
502
|
onChange: n
|
|
478
503
|
};
|
|
479
504
|
}
|
|
480
|
-
function
|
|
505
|
+
function co(e, o, t, n) {
|
|
481
506
|
const r = () => {
|
|
482
507
|
var s;
|
|
483
508
|
return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
|
|
@@ -500,44 +525,44 @@ function ao(e, o, t, n) {
|
|
|
500
525
|
s.createCell == null || s.createCell(i, t, o, e);
|
|
501
526
|
}, {}), i;
|
|
502
527
|
}
|
|
503
|
-
function
|
|
528
|
+
function go(e, o, t, n) {
|
|
504
529
|
var r, i;
|
|
505
530
|
const u = {
|
|
506
531
|
...e._getDefaultColumnDef(),
|
|
507
532
|
...o
|
|
508
533
|
}, 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,
|
|
510
|
-
if (u.accessorFn ?
|
|
511
|
-
let c =
|
|
534
|
+
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, g;
|
|
535
|
+
if (u.accessorFn ? g = u.accessorFn : l && (l.includes(".") ? g = (d) => {
|
|
536
|
+
let c = d;
|
|
512
537
|
for (const m of l.split(".")) {
|
|
513
538
|
var p;
|
|
514
539
|
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.`);
|
|
515
540
|
}
|
|
516
541
|
return c;
|
|
517
|
-
} :
|
|
542
|
+
} : g = (d) => d[u.accessorKey]), !a)
|
|
518
543
|
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();
|
|
519
544
|
let f = {
|
|
520
545
|
id: `${String(a)}`,
|
|
521
|
-
accessorFn:
|
|
546
|
+
accessorFn: g,
|
|
522
547
|
parent: n,
|
|
523
548
|
depth: t,
|
|
524
549
|
columnDef: u,
|
|
525
550
|
columns: [],
|
|
526
551
|
getFlatColumns: x(() => [!0], () => {
|
|
527
|
-
var
|
|
528
|
-
return [f, ...(
|
|
552
|
+
var d;
|
|
553
|
+
return [f, ...(d = f.columns) == null ? void 0 : d.flatMap((c) => c.getFlatColumns())];
|
|
529
554
|
}, y(e.options, "debugColumns", "column.getFlatColumns")),
|
|
530
|
-
getLeafColumns: x(() => [e._getOrderColumnsFn()], (
|
|
555
|
+
getLeafColumns: x(() => [e._getOrderColumnsFn()], (d) => {
|
|
531
556
|
var c;
|
|
532
557
|
if ((c = f.columns) != null && c.length) {
|
|
533
558
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
534
|
-
return
|
|
559
|
+
return d(p);
|
|
535
560
|
}
|
|
536
561
|
return [f];
|
|
537
562
|
}, y(e.options, "debugColumns", "column.getLeafColumns"))
|
|
538
563
|
};
|
|
539
|
-
for (const
|
|
540
|
-
|
|
564
|
+
for (const d of e._features)
|
|
565
|
+
d.createColumn == null || d.createColumn(f, e);
|
|
541
566
|
return f;
|
|
542
567
|
}
|
|
543
568
|
const H = "debugHeaders";
|
|
@@ -570,11 +595,11 @@ function jt(e, o, t) {
|
|
|
570
595
|
s.createHeader == null || s.createHeader(i, e);
|
|
571
596
|
}), i;
|
|
572
597
|
}
|
|
573
|
-
const
|
|
598
|
+
const fo = {
|
|
574
599
|
createTable: (e) => {
|
|
575
600
|
e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
576
601
|
var i, s;
|
|
577
|
-
const u = (i = n == null ? void 0 : n.map((f) => t.find((
|
|
602
|
+
const u = (i = n == null ? void 0 : n.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? i : [], l = (s = r == null ? void 0 : r.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? s : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
578
603
|
return Oe(o, [...u, ...a, ...l], e);
|
|
579
604
|
}, 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) => {
|
|
580
605
|
var r;
|
|
@@ -595,28 +620,28 @@ const go = {
|
|
|
595
620
|
return !((n = t.subHeaders) != null && n.length);
|
|
596
621
|
}), y(e.options, H, "getRightLeafHeaders")), e.getLeafHeaders = x(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
597
622
|
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((
|
|
623
|
+
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((g) => g.getLeafHeaders()).flat();
|
|
599
624
|
}, y(e.options, H, "getLeafHeaders"));
|
|
600
625
|
}
|
|
601
626
|
};
|
|
602
627
|
function Oe(e, o, t, n) {
|
|
603
628
|
var r, i;
|
|
604
629
|
let s = 0;
|
|
605
|
-
const u = function(
|
|
606
|
-
c === void 0 && (c = 1), s = Math.max(s, c),
|
|
630
|
+
const u = function(d, c) {
|
|
631
|
+
c === void 0 && (c = 1), s = Math.max(s, c), d.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
607
632
|
var m;
|
|
608
633
|
(m = p.columns) != null && m.length && u(p.columns, c + 1);
|
|
609
634
|
}, 0);
|
|
610
635
|
};
|
|
611
636
|
u(e);
|
|
612
637
|
let l = [];
|
|
613
|
-
const a = (
|
|
638
|
+
const a = (d, c) => {
|
|
614
639
|
const p = {
|
|
615
640
|
depth: c,
|
|
616
641
|
id: [n, `${c}`].filter(Boolean).join("_"),
|
|
617
642
|
headers: []
|
|
618
643
|
}, m = [];
|
|
619
|
-
|
|
644
|
+
d.forEach((S) => {
|
|
620
645
|
const h = [...m].reverse()[0], C = S.column.depth === p.depth;
|
|
621
646
|
let v, _ = !1;
|
|
622
647
|
if (C && S.column.parent ? v = S.column.parent : (v = S.column, _ = !0), h && (h == null ? void 0 : h.column) === v)
|
|
@@ -633,12 +658,12 @@ function Oe(e, o, t, n) {
|
|
|
633
658
|
}
|
|
634
659
|
p.headers.push(S), S.headerGroup = p;
|
|
635
660
|
}), l.push(p), c > 0 && a(m, c - 1);
|
|
636
|
-
},
|
|
661
|
+
}, g = o.map((d, c) => jt(t, d, {
|
|
637
662
|
depth: s,
|
|
638
663
|
index: c
|
|
639
664
|
}));
|
|
640
|
-
a(
|
|
641
|
-
const f = (
|
|
665
|
+
a(g, s - 1), l.reverse();
|
|
666
|
+
const f = (d) => d.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
642
667
|
let m = 0, S = 0, h = [0];
|
|
643
668
|
p.subHeaders && p.subHeaders.length ? (h = [], f(p.subHeaders).forEach((v) => {
|
|
644
669
|
let {
|
|
@@ -655,7 +680,7 @@ function Oe(e, o, t, n) {
|
|
|
655
680
|
});
|
|
656
681
|
return f((r = (i = l[0]) == null ? void 0 : i.headers) != null ? r : []), l;
|
|
657
682
|
}
|
|
658
|
-
const
|
|
683
|
+
const wt = (e, o, t, n, r, i, s) => {
|
|
659
684
|
let u = {
|
|
660
685
|
id: o,
|
|
661
686
|
index: n,
|
|
@@ -683,26 +708,26 @@ const St = (e, o, t, n, r, i, s) => {
|
|
|
683
708
|
return (a = u.getValue(l)) != null ? a : e.options.renderFallbackValue;
|
|
684
709
|
},
|
|
685
710
|
subRows: [],
|
|
686
|
-
getLeafRows: () =>
|
|
711
|
+
getLeafRows: () => ao(u.subRows, (l) => l.subRows),
|
|
687
712
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
688
713
|
getParentRows: () => {
|
|
689
714
|
let l = [], a = u;
|
|
690
715
|
for (; ; ) {
|
|
691
|
-
const
|
|
692
|
-
if (!
|
|
693
|
-
l.push(
|
|
716
|
+
const g = a.getParentRow();
|
|
717
|
+
if (!g) break;
|
|
718
|
+
l.push(g), a = g;
|
|
694
719
|
}
|
|
695
720
|
return l.reverse();
|
|
696
721
|
},
|
|
697
|
-
getAllCells: x(() => [e.getAllLeafColumns()], (l) => l.map((a) =>
|
|
698
|
-
_getAllCellsByColumnId: x(() => [u.getAllCells()], (l) => l.reduce((a,
|
|
722
|
+
getAllCells: x(() => [e.getAllLeafColumns()], (l) => l.map((a) => co(e, u, a, a.id)), y(e.options, "debugRows", "getAllCells")),
|
|
723
|
+
_getAllCellsByColumnId: x(() => [u.getAllCells()], (l) => l.reduce((a, g) => (a[g.column.id] = g, a), {}), y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
699
724
|
};
|
|
700
725
|
for (let l = 0; l < e._features.length; l++) {
|
|
701
726
|
const a = e._features[l];
|
|
702
727
|
a == null || a.createRow == null || a.createRow(u, e);
|
|
703
728
|
}
|
|
704
729
|
return u;
|
|
705
|
-
},
|
|
730
|
+
}, po = {
|
|
706
731
|
createColumn: (e, o) => {
|
|
707
732
|
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 = () => {
|
|
708
733
|
if (e._getFacetedMinMaxValues)
|
|
@@ -744,12 +769,12 @@ const wn = (e, o, t) => e.getValue(o) === t;
|
|
|
744
769
|
wn.autoRemove = (e) => Z(e);
|
|
745
770
|
const Cn = (e, o, t) => e.getValue(o) == t;
|
|
746
771
|
Cn.autoRemove = (e) => Z(e);
|
|
747
|
-
const
|
|
772
|
+
const Ct = (e, o, t) => {
|
|
748
773
|
let [n, r] = t;
|
|
749
774
|
const i = e.getValue(o);
|
|
750
775
|
return i >= n && i <= r;
|
|
751
776
|
};
|
|
752
|
-
|
|
777
|
+
Ct.resolveFilterValue = (e) => {
|
|
753
778
|
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
779
|
if (i > s) {
|
|
755
780
|
const u = i;
|
|
@@ -757,8 +782,8 @@ wt.resolveFilterValue = (e) => {
|
|
|
757
782
|
}
|
|
758
783
|
return [i, s];
|
|
759
784
|
};
|
|
760
|
-
|
|
761
|
-
const
|
|
785
|
+
Ct.autoRemove = (e) => Z(e) || Z(e[0]) && Z(e[1]);
|
|
786
|
+
const ae = {
|
|
762
787
|
includesString: gn,
|
|
763
788
|
includesStringSensitive: fn,
|
|
764
789
|
equalsString: pn,
|
|
@@ -767,12 +792,12 @@ const ue = {
|
|
|
767
792
|
arrIncludesSome: Sn,
|
|
768
793
|
equals: wn,
|
|
769
794
|
weakEquals: Cn,
|
|
770
|
-
inNumberRange:
|
|
795
|
+
inNumberRange: Ct
|
|
771
796
|
};
|
|
772
797
|
function Z(e) {
|
|
773
798
|
return e == null || e === "";
|
|
774
799
|
}
|
|
775
|
-
const
|
|
800
|
+
const mo = {
|
|
776
801
|
getDefaultColumnDef: () => ({
|
|
777
802
|
filterFn: "auto"
|
|
778
803
|
}),
|
|
@@ -788,12 +813,12 @@ const po = {
|
|
|
788
813
|
createColumn: (e, o) => {
|
|
789
814
|
e.getAutoFilterFn = () => {
|
|
790
815
|
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
791
|
-
return typeof n == "string" ?
|
|
816
|
+
return typeof n == "string" ? ae.includesString : typeof n == "number" ? ae.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? ae.equals : Array.isArray(n) ? ae.arrIncludes : ae.weakEquals;
|
|
792
817
|
}, e.getFilterFn = () => {
|
|
793
818
|
var t, n;
|
|
794
819
|
return Ue(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
795
820
|
// @ts-ignore
|
|
796
|
-
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t :
|
|
821
|
+
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : ae[e.columnDef.filterFn]
|
|
797
822
|
);
|
|
798
823
|
}, e.getCanFilter = () => {
|
|
799
824
|
var t, n, r;
|
|
@@ -806,10 +831,10 @@ const po = {
|
|
|
806
831
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
807
832
|
}, e.setFilterValue = (t) => {
|
|
808
833
|
o.setColumnFilters((n) => {
|
|
809
|
-
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((
|
|
834
|
+
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((g) => g.id === e.id), s = fe(t, i ? i.value : void 0);
|
|
810
835
|
if (Ht(r, s, e)) {
|
|
811
836
|
var u;
|
|
812
|
-
return (u = n == null ? void 0 : n.filter((
|
|
837
|
+
return (u = n == null ? void 0 : n.filter((g) => g.id !== e.id)) != null ? u : [];
|
|
813
838
|
}
|
|
814
839
|
const l = {
|
|
815
840
|
id: e.id,
|
|
@@ -817,7 +842,7 @@ const po = {
|
|
|
817
842
|
};
|
|
818
843
|
if (i) {
|
|
819
844
|
var a;
|
|
820
|
-
return (a = n == null ? void 0 : n.map((
|
|
845
|
+
return (a = n == null ? void 0 : n.map((g) => g.id === e.id ? l : g)) != null ? a : [];
|
|
821
846
|
}
|
|
822
847
|
return n != null && n.length ? [...n, l] : [l];
|
|
823
848
|
});
|
|
@@ -830,7 +855,7 @@ const po = {
|
|
|
830
855
|
e.setColumnFilters = (o) => {
|
|
831
856
|
const t = e.getAllLeafColumns(), n = (r) => {
|
|
832
857
|
var i;
|
|
833
|
-
return (i =
|
|
858
|
+
return (i = fe(o, r)) == null ? void 0 : i.filter((s) => {
|
|
834
859
|
const u = t.find((l) => l.id === s.id);
|
|
835
860
|
if (u) {
|
|
836
861
|
const l = u.getFilterFn();
|
|
@@ -850,54 +875,54 @@ const po = {
|
|
|
850
875
|
function Ht(e, o, t) {
|
|
851
876
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
852
877
|
}
|
|
853
|
-
const
|
|
878
|
+
const ho = (e, o, t) => t.reduce((n, r) => {
|
|
854
879
|
const i = r.getValue(e);
|
|
855
880
|
return n + (typeof i == "number" ? i : 0);
|
|
856
|
-
}, 0),
|
|
881
|
+
}, 0), So = (e, o, t) => {
|
|
857
882
|
let n;
|
|
858
883
|
return t.forEach((r) => {
|
|
859
884
|
const i = r.getValue(e);
|
|
860
885
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
861
886
|
}), n;
|
|
862
|
-
},
|
|
887
|
+
}, wo = (e, o, t) => {
|
|
863
888
|
let n;
|
|
864
889
|
return t.forEach((r) => {
|
|
865
890
|
const i = r.getValue(e);
|
|
866
891
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
867
892
|
}), n;
|
|
868
|
-
},
|
|
893
|
+
}, Co = (e, o, t) => {
|
|
869
894
|
let n, r;
|
|
870
895
|
return t.forEach((i) => {
|
|
871
896
|
const s = i.getValue(e);
|
|
872
897
|
s != null && (n === void 0 ? s >= s && (n = r = s) : (n > s && (n = s), r < s && (r = s)));
|
|
873
898
|
}), [n, r];
|
|
874
|
-
},
|
|
899
|
+
}, vo = (e, o) => {
|
|
875
900
|
let t = 0, n = 0;
|
|
876
901
|
if (o.forEach((r) => {
|
|
877
902
|
let i = r.getValue(e);
|
|
878
903
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
879
904
|
}), t) return n / t;
|
|
880
|
-
},
|
|
905
|
+
}, Ro = (e, o) => {
|
|
881
906
|
if (!o.length)
|
|
882
907
|
return;
|
|
883
908
|
const t = o.map((i) => i.getValue(e));
|
|
884
|
-
if (!
|
|
909
|
+
if (!uo(t))
|
|
885
910
|
return;
|
|
886
911
|
if (t.length === 1)
|
|
887
912
|
return t[0];
|
|
888
913
|
const n = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
|
|
889
914
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
890
|
-
},
|
|
891
|
-
sum:
|
|
892
|
-
min:
|
|
893
|
-
max:
|
|
894
|
-
extent:
|
|
895
|
-
mean:
|
|
896
|
-
median:
|
|
897
|
-
unique:
|
|
898
|
-
uniqueCount:
|
|
899
|
-
count:
|
|
900
|
-
},
|
|
915
|
+
}, xo = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), yo = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Fo = (e, o) => o.length, et = {
|
|
916
|
+
sum: ho,
|
|
917
|
+
min: So,
|
|
918
|
+
max: wo,
|
|
919
|
+
extent: Co,
|
|
920
|
+
mean: vo,
|
|
921
|
+
median: Ro,
|
|
922
|
+
unique: xo,
|
|
923
|
+
uniqueCount: yo,
|
|
924
|
+
count: Fo
|
|
925
|
+
}, _o = {
|
|
901
926
|
getDefaultColumnDef: () => ({
|
|
902
927
|
aggregatedCell: (e) => {
|
|
903
928
|
var o, t;
|
|
@@ -964,13 +989,13 @@ const mo = (e, o, t) => t.reduce((n, r) => {
|
|
|
964
989
|
};
|
|
965
990
|
}
|
|
966
991
|
};
|
|
967
|
-
function
|
|
992
|
+
function Io(e, o, t) {
|
|
968
993
|
if (!(o != null && o.length) || !t)
|
|
969
994
|
return e;
|
|
970
995
|
const n = e.filter((i) => !o.includes(i.id));
|
|
971
996
|
return t === "remove" ? n : [...o.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...n];
|
|
972
997
|
}
|
|
973
|
-
const
|
|
998
|
+
const Mo = {
|
|
974
999
|
getInitialState: (e) => ({
|
|
975
1000
|
columnOrder: [],
|
|
976
1001
|
...e
|
|
@@ -999,18 +1024,18 @@ const Io = {
|
|
|
999
1024
|
else {
|
|
1000
1025
|
const s = [...o], u = [...r];
|
|
1001
1026
|
for (; u.length && s.length; ) {
|
|
1002
|
-
const l = s.shift(), a = u.findIndex((
|
|
1027
|
+
const l = s.shift(), a = u.findIndex((g) => g.id === l);
|
|
1003
1028
|
a > -1 && i.push(u.splice(a, 1)[0]);
|
|
1004
1029
|
}
|
|
1005
1030
|
i = [...i, ...u];
|
|
1006
1031
|
}
|
|
1007
|
-
return
|
|
1032
|
+
return Io(i, t, n);
|
|
1008
1033
|
}, y(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1009
1034
|
}
|
|
1010
1035
|
}, tt = () => ({
|
|
1011
1036
|
left: [],
|
|
1012
1037
|
right: []
|
|
1013
|
-
}),
|
|
1038
|
+
}), Vo = {
|
|
1014
1039
|
getInitialState: (e) => ({
|
|
1015
1040
|
columnPinning: tt(),
|
|
1016
1041
|
...e
|
|
@@ -1031,10 +1056,10 @@ const Io = {
|
|
|
1031
1056
|
};
|
|
1032
1057
|
}
|
|
1033
1058
|
if (t === "left") {
|
|
1034
|
-
var a,
|
|
1059
|
+
var a, g;
|
|
1035
1060
|
return {
|
|
1036
1061
|
left: [...((a = r == null ? void 0 : r.left) != null ? a : []).filter((f) => !(n != null && n.includes(f))), ...n],
|
|
1037
|
-
right: ((
|
|
1062
|
+
right: ((g = r == null ? void 0 : r.right) != null ? g : []).filter((f) => !(n != null && n.includes(f)))
|
|
1038
1063
|
};
|
|
1039
1064
|
}
|
|
1040
1065
|
return {
|
|
@@ -1087,7 +1112,7 @@ const Io = {
|
|
|
1087
1112
|
}, y(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1088
1113
|
}
|
|
1089
1114
|
};
|
|
1090
|
-
function
|
|
1115
|
+
function bo(e) {
|
|
1091
1116
|
return e || (typeof document < "u" ? document : null);
|
|
1092
1117
|
}
|
|
1093
1118
|
const Ae = {
|
|
@@ -1101,7 +1126,7 @@ const Ae = {
|
|
|
1101
1126
|
deltaPercentage: null,
|
|
1102
1127
|
isResizingColumn: !1,
|
|
1103
1128
|
columnSizingStart: []
|
|
1104
|
-
}),
|
|
1129
|
+
}), Po = {
|
|
1105
1130
|
getDefaultColumnDef: () => Ae,
|
|
1106
1131
|
getInitialState: (e) => ({
|
|
1107
1132
|
columnSizing: {},
|
|
@@ -1155,7 +1180,7 @@ const Ae = {
|
|
|
1155
1180
|
return (i) => {
|
|
1156
1181
|
if (!n || !r || (i.persist == null || i.persist(), ot(i) && i.touches && i.touches.length > 1))
|
|
1157
1182
|
return;
|
|
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 = {},
|
|
1183
|
+
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 = {}, g = (h, C) => {
|
|
1159
1184
|
typeof C == "number" && (o.setColumnSizingInfo((v) => {
|
|
1160
1185
|
var _, I;
|
|
1161
1186
|
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);
|
|
@@ -1171,8 +1196,8 @@ const Ae = {
|
|
|
1171
1196
|
...v,
|
|
1172
1197
|
...a
|
|
1173
1198
|
})));
|
|
1174
|
-
}, f = (h) =>
|
|
1175
|
-
|
|
1199
|
+
}, f = (h) => g("move", h), d = (h) => {
|
|
1200
|
+
g("end", h), o.setColumnSizingInfo((C) => ({
|
|
1176
1201
|
...C,
|
|
1177
1202
|
isResizingColumn: !1,
|
|
1178
1203
|
startOffset: null,
|
|
@@ -1181,18 +1206,18 @@ const Ae = {
|
|
|
1181
1206
|
deltaPercentage: null,
|
|
1182
1207
|
columnSizingStart: []
|
|
1183
1208
|
}));
|
|
1184
|
-
}, c =
|
|
1209
|
+
}, c = bo(t), p = {
|
|
1185
1210
|
moveHandler: (h) => f(h.clientX),
|
|
1186
1211
|
upHandler: (h) => {
|
|
1187
|
-
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler),
|
|
1212
|
+
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler), d(h.clientX);
|
|
1188
1213
|
}
|
|
1189
1214
|
}, m = {
|
|
1190
1215
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
1191
1216
|
upHandler: (h) => {
|
|
1192
1217
|
var C;
|
|
1193
|
-
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()),
|
|
1218
|
+
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), d((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
1194
1219
|
}
|
|
1195
|
-
}, S =
|
|
1220
|
+
}, S = $o() ? {
|
|
1196
1221
|
passive: !1
|
|
1197
1222
|
} : !1;
|
|
1198
1223
|
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) => ({
|
|
@@ -1230,7 +1255,7 @@ const Ae = {
|
|
|
1230
1255
|
}
|
|
1231
1256
|
};
|
|
1232
1257
|
let Ne = null;
|
|
1233
|
-
function
|
|
1258
|
+
function $o() {
|
|
1234
1259
|
if (typeof Ne == "boolean") return Ne;
|
|
1235
1260
|
let e = !1;
|
|
1236
1261
|
try {
|
|
@@ -1249,7 +1274,7 @@ function Po() {
|
|
|
1249
1274
|
function ot(e) {
|
|
1250
1275
|
return e.type === "touchstart";
|
|
1251
1276
|
}
|
|
1252
|
-
const
|
|
1277
|
+
const Eo = {
|
|
1253
1278
|
getInitialState: (e) => ({
|
|
1254
1279
|
columnVisibility: {},
|
|
1255
1280
|
...e
|
|
@@ -1297,14 +1322,14 @@ const $o = {
|
|
|
1297
1322
|
function Me(e, o) {
|
|
1298
1323
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1299
1324
|
}
|
|
1300
|
-
const
|
|
1325
|
+
const Do = {
|
|
1301
1326
|
createTable: (e) => {
|
|
1302
1327
|
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 = () => {
|
|
1303
1328
|
if (e._getGlobalFacetedMinMaxValues)
|
|
1304
1329
|
return e._getGlobalFacetedMinMaxValues();
|
|
1305
1330
|
};
|
|
1306
1331
|
}
|
|
1307
|
-
},
|
|
1332
|
+
}, Lo = {
|
|
1308
1333
|
getInitialState: (e) => ({
|
|
1309
1334
|
globalFilter: void 0,
|
|
1310
1335
|
...e
|
|
@@ -1325,19 +1350,19 @@ const Eo = {
|
|
|
1325
1350
|
};
|
|
1326
1351
|
},
|
|
1327
1352
|
createTable: (e) => {
|
|
1328
|
-
e.getGlobalAutoFilterFn = () =>
|
|
1353
|
+
e.getGlobalAutoFilterFn = () => ae.includesString, e.getGlobalFilterFn = () => {
|
|
1329
1354
|
var o, t;
|
|
1330
1355
|
const {
|
|
1331
1356
|
globalFilterFn: n
|
|
1332
1357
|
} = e.options;
|
|
1333
|
-
return Ue(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o :
|
|
1358
|
+
return Ue(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : ae[n];
|
|
1334
1359
|
}, e.setGlobalFilter = (o) => {
|
|
1335
1360
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
1336
1361
|
}, e.resetGlobalFilter = (o) => {
|
|
1337
1362
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
1338
1363
|
};
|
|
1339
1364
|
}
|
|
1340
|
-
},
|
|
1365
|
+
}, Oo = {
|
|
1341
1366
|
getInitialState: (e) => ({
|
|
1342
1367
|
expanded: {},
|
|
1343
1368
|
...e
|
|
@@ -1424,10 +1449,10 @@ const Eo = {
|
|
|
1424
1449
|
};
|
|
1425
1450
|
};
|
|
1426
1451
|
}
|
|
1427
|
-
},
|
|
1428
|
-
pageIndex:
|
|
1429
|
-
pageSize:
|
|
1430
|
-
}),
|
|
1452
|
+
}, at = 0, ct = 10, rt = () => ({
|
|
1453
|
+
pageIndex: at,
|
|
1454
|
+
pageSize: ct
|
|
1455
|
+
}), Ao = {
|
|
1431
1456
|
getInitialState: (e) => ({
|
|
1432
1457
|
...e,
|
|
1433
1458
|
pagination: {
|
|
@@ -1455,14 +1480,14 @@ const Eo = {
|
|
|
1455
1480
|
});
|
|
1456
1481
|
}
|
|
1457
1482
|
}, e.setPagination = (n) => {
|
|
1458
|
-
const r = (i) =>
|
|
1483
|
+
const r = (i) => fe(n, i);
|
|
1459
1484
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1460
1485
|
}, e.resetPagination = (n) => {
|
|
1461
1486
|
var r;
|
|
1462
1487
|
e.setPagination(n ? rt() : (r = e.initialState.pagination) != null ? r : rt());
|
|
1463
1488
|
}, e.setPageIndex = (n) => {
|
|
1464
1489
|
e.setPagination((r) => {
|
|
1465
|
-
let i =
|
|
1490
|
+
let i = fe(n, r.pageIndex);
|
|
1466
1491
|
const s = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
1467
1492
|
return i = Math.max(0, Math.min(i, s)), {
|
|
1468
1493
|
...r,
|
|
@@ -1471,13 +1496,13 @@ const Eo = {
|
|
|
1471
1496
|
});
|
|
1472
1497
|
}, e.resetPageIndex = (n) => {
|
|
1473
1498
|
var r, i;
|
|
1474
|
-
e.setPageIndex(n ?
|
|
1499
|
+
e.setPageIndex(n ? at : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : at);
|
|
1475
1500
|
}, e.resetPageSize = (n) => {
|
|
1476
1501
|
var r, i;
|
|
1477
|
-
e.setPageSize(n ?
|
|
1502
|
+
e.setPageSize(n ? ct : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : ct);
|
|
1478
1503
|
}, e.setPageSize = (n) => {
|
|
1479
1504
|
e.setPagination((r) => {
|
|
1480
|
-
const i = Math.max(1,
|
|
1505
|
+
const i = Math.max(1, fe(n, r.pageSize)), s = r.pageSize * r.pageIndex, u = Math.floor(s / i);
|
|
1481
1506
|
return {
|
|
1482
1507
|
...r,
|
|
1483
1508
|
pageIndex: u,
|
|
@@ -1486,7 +1511,7 @@ const Eo = {
|
|
|
1486
1511
|
});
|
|
1487
1512
|
}, e.setPageCount = (n) => e.setPagination((r) => {
|
|
1488
1513
|
var i;
|
|
1489
|
-
let s =
|
|
1514
|
+
let s = fe(n, (i = e.options.pageCount) != null ? i : -1);
|
|
1490
1515
|
return typeof s == "number" && (s = Math.max(-1, s)), {
|
|
1491
1516
|
...r,
|
|
1492
1517
|
pageCount: s
|
|
@@ -1510,7 +1535,7 @@ const Eo = {
|
|
|
1510
1535
|
}, it = () => ({
|
|
1511
1536
|
top: [],
|
|
1512
1537
|
bottom: []
|
|
1513
|
-
}),
|
|
1538
|
+
}), No = {
|
|
1514
1539
|
getInitialState: (e) => ({
|
|
1515
1540
|
rowPinning: it(),
|
|
1516
1541
|
...e
|
|
@@ -1532,12 +1557,12 @@ const Eo = {
|
|
|
1532
1557
|
return a;
|
|
1533
1558
|
}) : [], u = /* @__PURE__ */ new Set([...s, e.id, ...i]);
|
|
1534
1559
|
o.setRowPinning((l) => {
|
|
1535
|
-
var a,
|
|
1560
|
+
var a, g;
|
|
1536
1561
|
if (t === "bottom") {
|
|
1537
|
-
var f,
|
|
1562
|
+
var f, d;
|
|
1538
1563
|
return {
|
|
1539
1564
|
top: ((f = l == null ? void 0 : l.top) != null ? f : []).filter((m) => !(u != null && u.has(m))),
|
|
1540
|
-
bottom: [...((
|
|
1565
|
+
bottom: [...((d = l == null ? void 0 : l.bottom) != null ? d : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)]
|
|
1541
1566
|
};
|
|
1542
1567
|
}
|
|
1543
1568
|
if (t === "top") {
|
|
@@ -1549,7 +1574,7 @@ const Eo = {
|
|
|
1549
1574
|
}
|
|
1550
1575
|
return {
|
|
1551
1576
|
top: ((a = l == null ? void 0 : l.top) != null ? a : []).filter((m) => !(u != null && u.has(m))),
|
|
1552
|
-
bottom: ((
|
|
1577
|
+
bottom: ((g = l == null ? void 0 : l.bottom) != null ? g : []).filter((m) => !(u != null && u.has(m)))
|
|
1553
1578
|
};
|
|
1554
1579
|
});
|
|
1555
1580
|
}, e.getCanPin = () => {
|
|
@@ -1611,7 +1636,7 @@ const Eo = {
|
|
|
1611
1636
|
return o.filter((i) => !r.has(i.id));
|
|
1612
1637
|
}, y(e.options, "debugRows", "getCenterRows"));
|
|
1613
1638
|
}
|
|
1614
|
-
},
|
|
1639
|
+
}, To = {
|
|
1615
1640
|
getInitialState: (e) => ({
|
|
1616
1641
|
rowSelection: {},
|
|
1617
1642
|
...e
|
|
@@ -1646,7 +1671,7 @@ const Eo = {
|
|
|
1646
1671
|
...t
|
|
1647
1672
|
};
|
|
1648
1673
|
return e.getRowModel().rows.forEach((i) => {
|
|
1649
|
-
|
|
1674
|
+
dt(r, i.id, n, !0, e);
|
|
1650
1675
|
}), r;
|
|
1651
1676
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1652
1677
|
rows: [],
|
|
@@ -1695,23 +1720,23 @@ const Eo = {
|
|
|
1695
1720
|
const u = {
|
|
1696
1721
|
...i
|
|
1697
1722
|
};
|
|
1698
|
-
return
|
|
1723
|
+
return dt(u, e.id, t, (s = n == null ? void 0 : n.selectChildren) != null ? s : !0, o), u;
|
|
1699
1724
|
});
|
|
1700
1725
|
}, e.getIsSelected = () => {
|
|
1701
1726
|
const {
|
|
1702
1727
|
rowSelection: t
|
|
1703
1728
|
} = o.getState();
|
|
1704
|
-
return
|
|
1729
|
+
return vt(e, t);
|
|
1705
1730
|
}, e.getIsSomeSelected = () => {
|
|
1706
1731
|
const {
|
|
1707
1732
|
rowSelection: t
|
|
1708
1733
|
} = o.getState();
|
|
1709
|
-
return
|
|
1734
|
+
return gt(e, t) === "some";
|
|
1710
1735
|
}, e.getIsAllSubRowsSelected = () => {
|
|
1711
1736
|
const {
|
|
1712
1737
|
rowSelection: t
|
|
1713
1738
|
} = o.getState();
|
|
1714
|
-
return
|
|
1739
|
+
return gt(e, t) === "all";
|
|
1715
1740
|
}, e.getCanSelect = () => {
|
|
1716
1741
|
var t;
|
|
1717
1742
|
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
@@ -1729,20 +1754,20 @@ const Eo = {
|
|
|
1729
1754
|
};
|
|
1730
1755
|
};
|
|
1731
1756
|
}
|
|
1732
|
-
},
|
|
1757
|
+
}, dt = (e, o, t, n, r) => {
|
|
1733
1758
|
var i;
|
|
1734
1759
|
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) =>
|
|
1760
|
+
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) => dt(e, u.id, t, n, r));
|
|
1736
1761
|
};
|
|
1737
1762
|
function st(e, o) {
|
|
1738
1763
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(s, u) {
|
|
1739
1764
|
return s.map((l) => {
|
|
1740
1765
|
var a;
|
|
1741
|
-
const
|
|
1742
|
-
if (
|
|
1766
|
+
const g = vt(l, t);
|
|
1767
|
+
if (g && (n.push(l), r[l.id] = l), (a = l.subRows) != null && a.length && (l = {
|
|
1743
1768
|
...l,
|
|
1744
1769
|
subRows: i(l.subRows)
|
|
1745
|
-
}),
|
|
1770
|
+
}), g)
|
|
1746
1771
|
return l;
|
|
1747
1772
|
}).filter(Boolean);
|
|
1748
1773
|
};
|
|
@@ -1752,33 +1777,33 @@ function st(e, o) {
|
|
|
1752
1777
|
rowsById: r
|
|
1753
1778
|
};
|
|
1754
1779
|
}
|
|
1755
|
-
function
|
|
1780
|
+
function vt(e, o) {
|
|
1756
1781
|
var t;
|
|
1757
1782
|
return (t = o[e.id]) != null ? t : !1;
|
|
1758
1783
|
}
|
|
1759
|
-
function
|
|
1784
|
+
function gt(e, o, t) {
|
|
1760
1785
|
var n;
|
|
1761
1786
|
if (!((n = e.subRows) != null && n.length)) return !1;
|
|
1762
1787
|
let r = !0, i = !1;
|
|
1763
1788
|
return e.subRows.forEach((s) => {
|
|
1764
|
-
if (!(i && !r) && (s.getCanSelect() && (
|
|
1765
|
-
const u =
|
|
1789
|
+
if (!(i && !r) && (s.getCanSelect() && (vt(s, o) ? i = !0 : r = !1), s.subRows && s.subRows.length)) {
|
|
1790
|
+
const u = gt(s, o);
|
|
1766
1791
|
u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
|
|
1767
1792
|
}
|
|
1768
1793
|
}), r ? "all" : i ? "some" : !1;
|
|
1769
1794
|
}
|
|
1770
|
-
const
|
|
1795
|
+
const ft = /([0-9]+)/gm, jo = (e, o, t) => vn(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), Ho = (e, o, t) => vn(pe(e.getValue(t)), pe(o.getValue(t))), Go = (e, o, t) => Rt(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), zo = (e, o, t) => Rt(pe(e.getValue(t)), pe(o.getValue(t))), Bo = (e, o, t) => {
|
|
1771
1796
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1772
1797
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1773
|
-
},
|
|
1774
|
-
function
|
|
1798
|
+
}, ko = (e, o, t) => Rt(e.getValue(t), o.getValue(t));
|
|
1799
|
+
function Rt(e, o) {
|
|
1775
1800
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1776
1801
|
}
|
|
1777
|
-
function
|
|
1802
|
+
function pe(e) {
|
|
1778
1803
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1779
1804
|
}
|
|
1780
1805
|
function vn(e, o) {
|
|
1781
|
-
const t = e.split(
|
|
1806
|
+
const t = e.split(ft).filter(Boolean), n = o.split(ft).filter(Boolean);
|
|
1782
1807
|
for (; t.length && n.length; ) {
|
|
1783
1808
|
const r = t.shift(), i = n.shift(), s = parseInt(r, 10), u = parseInt(i, 10), l = [s, u].sort();
|
|
1784
1809
|
if (isNaN(l[0])) {
|
|
@@ -1798,13 +1823,13 @@ function vn(e, o) {
|
|
|
1798
1823
|
return t.length - n.length;
|
|
1799
1824
|
}
|
|
1800
1825
|
const Fe = {
|
|
1801
|
-
alphanumeric:
|
|
1802
|
-
alphanumericCaseSensitive:
|
|
1803
|
-
text:
|
|
1804
|
-
textCaseSensitive:
|
|
1805
|
-
datetime:
|
|
1806
|
-
basic:
|
|
1807
|
-
},
|
|
1826
|
+
alphanumeric: jo,
|
|
1827
|
+
alphanumericCaseSensitive: Ho,
|
|
1828
|
+
text: Go,
|
|
1829
|
+
textCaseSensitive: zo,
|
|
1830
|
+
datetime: Bo,
|
|
1831
|
+
basic: ko
|
|
1832
|
+
}, qo = {
|
|
1808
1833
|
getInitialState: (e) => ({
|
|
1809
1834
|
sorting: [],
|
|
1810
1835
|
...e
|
|
@@ -1825,7 +1850,7 @@ const Fe = {
|
|
|
1825
1850
|
const i = r == null ? void 0 : r.getValue(e.id);
|
|
1826
1851
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1827
1852
|
return Fe.datetime;
|
|
1828
|
-
if (typeof i == "string" && (n = !0, i.split(
|
|
1853
|
+
if (typeof i == "string" && (n = !0, i.split(ft).length > 1))
|
|
1829
1854
|
return Fe.alphanumeric;
|
|
1830
1855
|
}
|
|
1831
1856
|
return n ? Fe.text : Fe.basic;
|
|
@@ -1841,17 +1866,17 @@ const Fe = {
|
|
|
1841
1866
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1842
1867
|
o.setSorting((s) => {
|
|
1843
1868
|
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 = [],
|
|
1845
|
-
if (s != null && s.length && e.getCanMultiSort() && n ? u ?
|
|
1846
|
-
var
|
|
1869
|
+
let a = [], g, f = i ? t : r === "desc";
|
|
1870
|
+
if (s != null && s.length && e.getCanMultiSort() && n ? u ? g = "toggle" : g = "add" : s != null && s.length && l !== s.length - 1 ? g = "replace" : u ? g = "toggle" : g = "replace", g === "toggle" && (i || r || (g = "remove")), g === "add") {
|
|
1871
|
+
var d;
|
|
1847
1872
|
a = [...s, {
|
|
1848
1873
|
id: e.id,
|
|
1849
1874
|
desc: f
|
|
1850
|
-
}], a.splice(0, a.length - ((
|
|
1851
|
-
} else
|
|
1875
|
+
}], a.splice(0, a.length - ((d = o.options.maxMultiSortColCount) != null ? d : Number.MAX_SAFE_INTEGER));
|
|
1876
|
+
} else g === "toggle" ? a = s.map((c) => c.id === e.id ? {
|
|
1852
1877
|
...c,
|
|
1853
1878
|
desc: f
|
|
1854
|
-
} : c) :
|
|
1879
|
+
} : c) : g === "remove" ? a = s.filter((c) => c.id !== e.id) : a = [{
|
|
1855
1880
|
id: e.id,
|
|
1856
1881
|
desc: f
|
|
1857
1882
|
}];
|
|
@@ -1893,47 +1918,47 @@ const Fe = {
|
|
|
1893
1918
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1894
1919
|
}, 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());
|
|
1895
1920
|
}
|
|
1896
|
-
},
|
|
1897
|
-
go,
|
|
1898
|
-
$o,
|
|
1899
|
-
Io,
|
|
1900
|
-
Mo,
|
|
1921
|
+
}, Uo = [
|
|
1901
1922
|
fo,
|
|
1902
|
-
po,
|
|
1903
1923
|
Eo,
|
|
1904
|
-
|
|
1924
|
+
Mo,
|
|
1925
|
+
Vo,
|
|
1926
|
+
po,
|
|
1927
|
+
mo,
|
|
1905
1928
|
Do,
|
|
1929
|
+
//depends on ColumnFaceting
|
|
1930
|
+
Lo,
|
|
1906
1931
|
//depends on ColumnFiltering
|
|
1907
|
-
|
|
1908
|
-
|
|
1932
|
+
qo,
|
|
1933
|
+
_o,
|
|
1909
1934
|
//depends on RowSorting
|
|
1910
|
-
Lo,
|
|
1911
1935
|
Oo,
|
|
1912
1936
|
Ao,
|
|
1913
1937
|
No,
|
|
1914
|
-
|
|
1938
|
+
To,
|
|
1939
|
+
Po
|
|
1915
1940
|
];
|
|
1916
|
-
function
|
|
1941
|
+
function Ko(e) {
|
|
1917
1942
|
var o, t;
|
|
1918
1943
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1919
|
-
const n = [...
|
|
1944
|
+
const n = [...Uo, ...(o = e._features) != null ? o : []];
|
|
1920
1945
|
let r = {
|
|
1921
1946
|
_features: n
|
|
1922
1947
|
};
|
|
1923
|
-
const i = r._features.reduce((
|
|
1948
|
+
const i = r._features.reduce((d, c) => Object.assign(d, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}), s = (d) => r.options.mergeOptions ? r.options.mergeOptions(i, d) : {
|
|
1924
1949
|
...i,
|
|
1925
|
-
...
|
|
1950
|
+
...d
|
|
1926
1951
|
};
|
|
1927
1952
|
let l = {
|
|
1928
1953
|
...{},
|
|
1929
1954
|
...(t = e.initialState) != null ? t : {}
|
|
1930
1955
|
};
|
|
1931
|
-
r._features.forEach((
|
|
1956
|
+
r._features.forEach((d) => {
|
|
1932
1957
|
var c;
|
|
1933
|
-
l = (c =
|
|
1958
|
+
l = (c = d.getInitialState == null ? void 0 : d.getInitialState(l)) != null ? c : l;
|
|
1934
1959
|
});
|
|
1935
1960
|
const a = [];
|
|
1936
|
-
let
|
|
1961
|
+
let g = !1;
|
|
1937
1962
|
const f = {
|
|
1938
1963
|
_features: n,
|
|
1939
1964
|
options: {
|
|
@@ -1941,11 +1966,11 @@ function Uo(e) {
|
|
|
1941
1966
|
...e
|
|
1942
1967
|
},
|
|
1943
1968
|
initialState: l,
|
|
1944
|
-
_queue: (
|
|
1945
|
-
a.push(
|
|
1969
|
+
_queue: (d) => {
|
|
1970
|
+
a.push(d), g || (g = !0, Promise.resolve().then(() => {
|
|
1946
1971
|
for (; a.length; )
|
|
1947
1972
|
a.shift()();
|
|
1948
|
-
|
|
1973
|
+
g = !1;
|
|
1949
1974
|
}).catch((c) => setTimeout(() => {
|
|
1950
1975
|
throw c;
|
|
1951
1976
|
})));
|
|
@@ -1953,32 +1978,32 @@ function Uo(e) {
|
|
|
1953
1978
|
reset: () => {
|
|
1954
1979
|
r.setState(r.initialState);
|
|
1955
1980
|
},
|
|
1956
|
-
setOptions: (
|
|
1957
|
-
const c =
|
|
1981
|
+
setOptions: (d) => {
|
|
1982
|
+
const c = fe(d, r.options);
|
|
1958
1983
|
r.options = s(c);
|
|
1959
1984
|
},
|
|
1960
1985
|
getState: () => r.options.state,
|
|
1961
|
-
setState: (
|
|
1962
|
-
r.options.onStateChange == null || r.options.onStateChange(
|
|
1986
|
+
setState: (d) => {
|
|
1987
|
+
r.options.onStateChange == null || r.options.onStateChange(d);
|
|
1963
1988
|
},
|
|
1964
|
-
_getRowId: (
|
|
1989
|
+
_getRowId: (d, c, p) => {
|
|
1965
1990
|
var m;
|
|
1966
|
-
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(
|
|
1991
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(d, c, p)) != null ? m : `${p ? [p.id, c].join(".") : c}`;
|
|
1967
1992
|
},
|
|
1968
1993
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
1969
1994
|
// The final calls start at the bottom of the model,
|
|
1970
1995
|
// expanded rows, which then work their way up
|
|
1971
1996
|
getRowModel: () => r.getPaginationRowModel(),
|
|
1972
1997
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
1973
|
-
getRow: (
|
|
1974
|
-
let p = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[
|
|
1975
|
-
if (!p && (p = r.getCoreRowModel().rowsById[
|
|
1976
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${
|
|
1998
|
+
getRow: (d, c) => {
|
|
1999
|
+
let p = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[d];
|
|
2000
|
+
if (!p && (p = r.getCoreRowModel().rowsById[d], !p))
|
|
2001
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${d}`) : new Error();
|
|
1977
2002
|
return p;
|
|
1978
2003
|
},
|
|
1979
|
-
_getDefaultColumnDef: x(() => [r.options.defaultColumn], (
|
|
2004
|
+
_getDefaultColumnDef: x(() => [r.options.defaultColumn], (d) => {
|
|
1980
2005
|
var c;
|
|
1981
|
-
return
|
|
2006
|
+
return d = (c = d) != null ? c : {}, {
|
|
1982
2007
|
header: (p) => {
|
|
1983
2008
|
const m = p.header.column.columnDef;
|
|
1984
2009
|
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
@@ -1989,38 +2014,38 @@ function Uo(e) {
|
|
|
1989
2014
|
return (m = (S = p.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? m : null;
|
|
1990
2015
|
},
|
|
1991
2016
|
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
1992
|
-
...
|
|
2017
|
+
...d
|
|
1993
2018
|
};
|
|
1994
2019
|
}, y(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1995
2020
|
_getColumnDefs: () => r.options.columns,
|
|
1996
|
-
getAllColumns: x(() => [r._getColumnDefs()], (
|
|
2021
|
+
getAllColumns: x(() => [r._getColumnDefs()], (d) => {
|
|
1997
2022
|
const c = function(p, m, S) {
|
|
1998
2023
|
return S === void 0 && (S = 0), p.map((h) => {
|
|
1999
|
-
const C =
|
|
2024
|
+
const C = go(r, h, S, m), v = h;
|
|
2000
2025
|
return C.columns = v.columns ? c(v.columns, C, S + 1) : [], C;
|
|
2001
2026
|
});
|
|
2002
2027
|
};
|
|
2003
|
-
return c(
|
|
2028
|
+
return c(d);
|
|
2004
2029
|
}, y(e, "debugColumns", "getAllColumns")),
|
|
2005
|
-
getAllFlatColumns: x(() => [r.getAllColumns()], (
|
|
2006
|
-
_getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (
|
|
2007
|
-
getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (
|
|
2008
|
-
let p =
|
|
2030
|
+
getAllFlatColumns: x(() => [r.getAllColumns()], (d) => d.flatMap((c) => c.getFlatColumns()), y(e, "debugColumns", "getAllFlatColumns")),
|
|
2031
|
+
_getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (d) => d.reduce((c, p) => (c[p.id] = p, c), {}), y(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2032
|
+
getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, c) => {
|
|
2033
|
+
let p = d.flatMap((m) => m.getLeafColumns());
|
|
2009
2034
|
return c(p);
|
|
2010
2035
|
}, y(e, "debugColumns", "getAllLeafColumns")),
|
|
2011
|
-
getColumn: (
|
|
2012
|
-
const c = r._getAllFlatColumnsById()[
|
|
2013
|
-
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${
|
|
2036
|
+
getColumn: (d) => {
|
|
2037
|
+
const c = r._getAllFlatColumnsById()[d];
|
|
2038
|
+
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${d}' does not exist.`), c;
|
|
2014
2039
|
}
|
|
2015
2040
|
};
|
|
2016
2041
|
Object.assign(r, f);
|
|
2017
|
-
for (let
|
|
2018
|
-
const c = r._features[
|
|
2042
|
+
for (let d = 0; d < r._features.length; d++) {
|
|
2043
|
+
const c = r._features[d];
|
|
2019
2044
|
c == null || c.createTable == null || c.createTable(r);
|
|
2020
2045
|
}
|
|
2021
2046
|
return r;
|
|
2022
2047
|
}
|
|
2023
|
-
function
|
|
2048
|
+
function Xo() {
|
|
2024
2049
|
return (e) => x(() => [e.options.data], (o) => {
|
|
2025
2050
|
const t = {
|
|
2026
2051
|
rows: [],
|
|
@@ -2030,10 +2055,10 @@ function Ko() {
|
|
|
2030
2055
|
i === void 0 && (i = 0);
|
|
2031
2056
|
const u = [];
|
|
2032
2057
|
for (let a = 0; a < r.length; a++) {
|
|
2033
|
-
const
|
|
2034
|
-
if (t.flatRows.push(
|
|
2058
|
+
const g = wt(e, e._getRowId(r[a], a, s), r[a], a, i, void 0, s == null ? void 0 : s.id);
|
|
2059
|
+
if (t.flatRows.push(g), t.rowsById[g.id] = g, u.push(g), e.options.getSubRows) {
|
|
2035
2060
|
var l;
|
|
2036
|
-
|
|
2061
|
+
g.originalSubRows = e.options.getSubRows(r[a], a), (l = g.originalSubRows) != null && l.length && (g.subRows = n(g.originalSubRows, i + 1, g));
|
|
2037
2062
|
}
|
|
2038
2063
|
}
|
|
2039
2064
|
return u;
|
|
@@ -2041,7 +2066,7 @@ function Ko() {
|
|
|
2041
2066
|
return t.rows = n(o), t;
|
|
2042
2067
|
}, y(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2043
2068
|
}
|
|
2044
|
-
function
|
|
2069
|
+
function Wo(e) {
|
|
2045
2070
|
const o = [], t = (n) => {
|
|
2046
2071
|
var r;
|
|
2047
2072
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2053,30 +2078,30 @@ function Xo(e) {
|
|
|
2053
2078
|
};
|
|
2054
2079
|
}
|
|
2055
2080
|
function Rn(e, o, t) {
|
|
2056
|
-
return t.options.filterFromLeafRows ?
|
|
2081
|
+
return t.options.filterFromLeafRows ? Qo(e, o, t) : Jo(e, o, t);
|
|
2057
2082
|
}
|
|
2058
|
-
function
|
|
2083
|
+
function Qo(e, o, t) {
|
|
2059
2084
|
var n;
|
|
2060
2085
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2061
2086
|
a === void 0 && (a = 0);
|
|
2062
|
-
const
|
|
2063
|
-
for (let
|
|
2087
|
+
const g = [];
|
|
2088
|
+
for (let d = 0; d < l.length; d++) {
|
|
2064
2089
|
var f;
|
|
2065
|
-
let c = l[
|
|
2066
|
-
const p =
|
|
2090
|
+
let c = l[d];
|
|
2091
|
+
const p = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2067
2092
|
if (p.columnFilters = c.columnFilters, (f = c.subRows) != null && f.length && a < s) {
|
|
2068
2093
|
if (p.subRows = u(c.subRows, a + 1), c = p, o(c) && !p.subRows.length) {
|
|
2069
|
-
|
|
2094
|
+
g.push(c), i[c.id] = c, r.push(c);
|
|
2070
2095
|
continue;
|
|
2071
2096
|
}
|
|
2072
2097
|
if (o(c) || p.subRows.length) {
|
|
2073
|
-
|
|
2098
|
+
g.push(c), i[c.id] = c, r.push(c);
|
|
2074
2099
|
continue;
|
|
2075
2100
|
}
|
|
2076
2101
|
} else
|
|
2077
|
-
c = p, o(c) && (
|
|
2102
|
+
c = p, o(c) && (g.push(c), i[c.id] = c, r.push(c));
|
|
2078
2103
|
}
|
|
2079
|
-
return
|
|
2104
|
+
return g;
|
|
2080
2105
|
};
|
|
2081
2106
|
return {
|
|
2082
2107
|
rows: u(e),
|
|
@@ -2084,23 +2109,23 @@ function Wo(e, o, t) {
|
|
|
2084
2109
|
rowsById: i
|
|
2085
2110
|
};
|
|
2086
2111
|
}
|
|
2087
|
-
function
|
|
2112
|
+
function Jo(e, o, t) {
|
|
2088
2113
|
var n;
|
|
2089
2114
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2090
2115
|
a === void 0 && (a = 0);
|
|
2091
|
-
const
|
|
2092
|
-
for (let
|
|
2093
|
-
let c = l[
|
|
2116
|
+
const g = [];
|
|
2117
|
+
for (let d = 0; d < l.length; d++) {
|
|
2118
|
+
let c = l[d];
|
|
2094
2119
|
if (o(c)) {
|
|
2095
2120
|
var f;
|
|
2096
2121
|
if ((f = c.subRows) != null && f.length && a < s) {
|
|
2097
|
-
const m =
|
|
2122
|
+
const m = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2098
2123
|
m.subRows = u(c.subRows, a + 1), c = m;
|
|
2099
2124
|
}
|
|
2100
|
-
|
|
2125
|
+
g.push(c), r.push(c), i[c.id] = c;
|
|
2101
2126
|
}
|
|
2102
2127
|
}
|
|
2103
|
-
return
|
|
2128
|
+
return g;
|
|
2104
2129
|
};
|
|
2105
2130
|
return {
|
|
2106
2131
|
rows: u(e),
|
|
@@ -2108,7 +2133,7 @@ function Qo(e, o, t) {
|
|
|
2108
2133
|
rowsById: i
|
|
2109
2134
|
};
|
|
2110
2135
|
}
|
|
2111
|
-
function
|
|
2136
|
+
function Yo() {
|
|
2112
2137
|
return (e, o) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
|
|
2113
2138
|
if (!t.rows.length || !(n != null && n.length) && !r)
|
|
2114
2139
|
return t;
|
|
@@ -2121,7 +2146,7 @@ function Jo() {
|
|
|
2121
2146
|
return Rn(t.rows, s, e);
|
|
2122
2147
|
}, y(e.options, "debugTable", "getFacetedRowModel"));
|
|
2123
2148
|
}
|
|
2124
|
-
function
|
|
2149
|
+
function Zo() {
|
|
2125
2150
|
return (e, o) => x(() => {
|
|
2126
2151
|
var t;
|
|
2127
2152
|
return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
|
|
@@ -2142,17 +2167,17 @@ function Yo() {
|
|
|
2142
2167
|
return n;
|
|
2143
2168
|
}, y(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
|
|
2144
2169
|
}
|
|
2145
|
-
function
|
|
2170
|
+
function er() {
|
|
2146
2171
|
return (e) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2147
2172
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2148
|
-
for (let
|
|
2149
|
-
o.flatRows[
|
|
2173
|
+
for (let d = 0; d < o.flatRows.length; d++)
|
|
2174
|
+
o.flatRows[d].columnFilters = {}, o.flatRows[d].columnFiltersMeta = {};
|
|
2150
2175
|
return o;
|
|
2151
2176
|
}
|
|
2152
2177
|
const r = [], i = [];
|
|
2153
|
-
(t ?? []).forEach((
|
|
2178
|
+
(t ?? []).forEach((d) => {
|
|
2154
2179
|
var c;
|
|
2155
|
-
const p = e.getColumn(
|
|
2180
|
+
const p = e.getColumn(d.id);
|
|
2156
2181
|
if (!p)
|
|
2157
2182
|
return;
|
|
2158
2183
|
const m = p.getFilterFn();
|
|
@@ -2161,23 +2186,23 @@ function Zo() {
|
|
|
2161
2186
|
return;
|
|
2162
2187
|
}
|
|
2163
2188
|
r.push({
|
|
2164
|
-
id:
|
|
2189
|
+
id: d.id,
|
|
2165
2190
|
filterFn: m,
|
|
2166
|
-
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(
|
|
2191
|
+
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(d.value)) != null ? c : d.value
|
|
2167
2192
|
});
|
|
2168
2193
|
});
|
|
2169
|
-
const s = (t ?? []).map((
|
|
2170
|
-
n && u && l.length && (s.push("__global__"), l.forEach((
|
|
2194
|
+
const s = (t ?? []).map((d) => d.id), u = e.getGlobalFilterFn(), l = e.getAllLeafColumns().filter((d) => d.getCanGlobalFilter());
|
|
2195
|
+
n && u && l.length && (s.push("__global__"), l.forEach((d) => {
|
|
2171
2196
|
var c;
|
|
2172
2197
|
i.push({
|
|
2173
|
-
id:
|
|
2198
|
+
id: d.id,
|
|
2174
2199
|
filterFn: u,
|
|
2175
2200
|
resolvedValue: (c = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? c : n
|
|
2176
2201
|
});
|
|
2177
2202
|
}));
|
|
2178
|
-
let a,
|
|
2179
|
-
for (let
|
|
2180
|
-
const c = o.flatRows[
|
|
2203
|
+
let a, g;
|
|
2204
|
+
for (let d = 0; d < o.flatRows.length; d++) {
|
|
2205
|
+
const c = o.flatRows[d];
|
|
2181
2206
|
if (c.columnFilters = {}, r.length)
|
|
2182
2207
|
for (let p = 0; p < r.length; p++) {
|
|
2183
2208
|
a = r[p];
|
|
@@ -2188,9 +2213,9 @@ function Zo() {
|
|
|
2188
2213
|
}
|
|
2189
2214
|
if (i.length) {
|
|
2190
2215
|
for (let p = 0; p < i.length; p++) {
|
|
2191
|
-
|
|
2192
|
-
const m =
|
|
2193
|
-
if (
|
|
2216
|
+
g = i[p];
|
|
2217
|
+
const m = g.id;
|
|
2218
|
+
if (g.filterFn(c, m, g.resolvedValue, (S) => {
|
|
2194
2219
|
c.columnFiltersMeta[m] = S;
|
|
2195
2220
|
})) {
|
|
2196
2221
|
c.columnFilters.__global__ = !0;
|
|
@@ -2200,16 +2225,16 @@ function Zo() {
|
|
|
2200
2225
|
c.columnFilters.__global__ !== !0 && (c.columnFilters.__global__ = !1);
|
|
2201
2226
|
}
|
|
2202
2227
|
}
|
|
2203
|
-
const f = (
|
|
2228
|
+
const f = (d) => {
|
|
2204
2229
|
for (let c = 0; c < s.length; c++)
|
|
2205
|
-
if (
|
|
2230
|
+
if (d.columnFilters[s[c]] === !1)
|
|
2206
2231
|
return !1;
|
|
2207
2232
|
return !0;
|
|
2208
2233
|
};
|
|
2209
2234
|
return Rn(o.rows, f, e);
|
|
2210
2235
|
}, y(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2211
2236
|
}
|
|
2212
|
-
function
|
|
2237
|
+
function tr(e) {
|
|
2213
2238
|
return (o) => x(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2214
2239
|
if (!n.rows.length)
|
|
2215
2240
|
return n;
|
|
@@ -2222,25 +2247,25 @@ function er(e) {
|
|
|
2222
2247
|
flatRows: u,
|
|
2223
2248
|
rowsById: l
|
|
2224
2249
|
} = n;
|
|
2225
|
-
const a = r * i,
|
|
2226
|
-
s = s.slice(a,
|
|
2250
|
+
const a = r * i, g = a + r;
|
|
2251
|
+
s = s.slice(a, g);
|
|
2227
2252
|
let f;
|
|
2228
2253
|
o.options.paginateExpandedRows ? f = {
|
|
2229
2254
|
rows: s,
|
|
2230
2255
|
flatRows: u,
|
|
2231
2256
|
rowsById: l
|
|
2232
|
-
} : f =
|
|
2257
|
+
} : f = Wo({
|
|
2233
2258
|
rows: s,
|
|
2234
2259
|
flatRows: u,
|
|
2235
2260
|
rowsById: l
|
|
2236
2261
|
}), f.flatRows = [];
|
|
2237
|
-
const
|
|
2238
|
-
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(
|
|
2262
|
+
const d = (c) => {
|
|
2263
|
+
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(d);
|
|
2239
2264
|
};
|
|
2240
|
-
return f.rows.forEach(
|
|
2265
|
+
return f.rows.forEach(d), f;
|
|
2241
2266
|
}, y(o.options, "debugTable", "getPaginationRowModel"));
|
|
2242
2267
|
}
|
|
2243
|
-
function
|
|
2268
|
+
function nr() {
|
|
2244
2269
|
return (e) => x(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2245
2270
|
if (!t.rows.length || !(o != null && o.length))
|
|
2246
2271
|
return t;
|
|
@@ -2257,29 +2282,29 @@ function tr() {
|
|
|
2257
2282
|
});
|
|
2258
2283
|
});
|
|
2259
2284
|
const u = (l) => {
|
|
2260
|
-
const a = l.map((
|
|
2261
|
-
...
|
|
2285
|
+
const a = l.map((g) => ({
|
|
2286
|
+
...g
|
|
2262
2287
|
}));
|
|
2263
|
-
return a.sort((
|
|
2288
|
+
return a.sort((g, f) => {
|
|
2264
2289
|
for (let c = 0; c < i.length; c += 1) {
|
|
2265
|
-
var
|
|
2266
|
-
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (
|
|
2290
|
+
var d;
|
|
2291
|
+
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (d = p == null ? void 0 : p.desc) != null ? d : !1;
|
|
2267
2292
|
let C = 0;
|
|
2268
2293
|
if (S) {
|
|
2269
|
-
const v =
|
|
2294
|
+
const v = g.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, V = _ === void 0;
|
|
2270
2295
|
if (I || V) {
|
|
2271
2296
|
if (S === "first") return I ? -1 : 1;
|
|
2272
2297
|
if (S === "last") return I ? 1 : -1;
|
|
2273
2298
|
C = I && V ? 0 : I ? S : -S;
|
|
2274
2299
|
}
|
|
2275
2300
|
}
|
|
2276
|
-
if (C === 0 && (C = m.sortingFn(
|
|
2301
|
+
if (C === 0 && (C = m.sortingFn(g, f, p.id)), C !== 0)
|
|
2277
2302
|
return h && (C *= -1), m.invertSorting && (C *= -1), C;
|
|
2278
2303
|
}
|
|
2279
|
-
return
|
|
2280
|
-
}), a.forEach((
|
|
2304
|
+
return g.index - f.index;
|
|
2305
|
+
}), a.forEach((g) => {
|
|
2281
2306
|
var f;
|
|
2282
|
-
r.push(
|
|
2307
|
+
r.push(g), (f = g.subRows) != null && f.length && (g.subRows = u(g.subRows));
|
|
2283
2308
|
}), a;
|
|
2284
2309
|
};
|
|
2285
2310
|
return {
|
|
@@ -2300,21 +2325,21 @@ function tr() {
|
|
|
2300
2325
|
* @license MIT
|
|
2301
2326
|
*/
|
|
2302
2327
|
function He(e, o) {
|
|
2303
|
-
return e ?
|
|
2304
|
-
}
|
|
2305
|
-
function nr(e) {
|
|
2306
|
-
return or(e) || typeof e == "function" || rr(e);
|
|
2328
|
+
return e ? or(e) ? /* @__PURE__ */ ce.createElement(e, o) : e : null;
|
|
2307
2329
|
}
|
|
2308
2330
|
function or(e) {
|
|
2331
|
+
return rr(e) || typeof e == "function" || ir(e);
|
|
2332
|
+
}
|
|
2333
|
+
function rr(e) {
|
|
2309
2334
|
return typeof e == "function" && (() => {
|
|
2310
2335
|
const o = Object.getPrototypeOf(e);
|
|
2311
2336
|
return o.prototype && o.prototype.isReactComponent;
|
|
2312
2337
|
})();
|
|
2313
2338
|
}
|
|
2314
|
-
function
|
|
2339
|
+
function ir(e) {
|
|
2315
2340
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2316
2341
|
}
|
|
2317
|
-
function
|
|
2342
|
+
function sr(e) {
|
|
2318
2343
|
const o = {
|
|
2319
2344
|
state: {},
|
|
2320
2345
|
// Dummy state
|
|
@@ -2323,9 +2348,9 @@ function ir(e) {
|
|
|
2323
2348
|
// noop
|
|
2324
2349
|
renderFallbackValue: null,
|
|
2325
2350
|
...e
|
|
2326
|
-
}, [t] =
|
|
2327
|
-
current:
|
|
2328
|
-
})), [n, r] =
|
|
2351
|
+
}, [t] = ce.useState(() => ({
|
|
2352
|
+
current: Ko(o)
|
|
2353
|
+
})), [n, r] = ce.useState(() => t.current.initialState);
|
|
2329
2354
|
return t.current.setOptions((i) => ({
|
|
2330
2355
|
...i,
|
|
2331
2356
|
...e,
|
|
@@ -2340,7 +2365,7 @@ function ir(e) {
|
|
|
2340
2365
|
}
|
|
2341
2366
|
})), t.current;
|
|
2342
2367
|
}
|
|
2343
|
-
const
|
|
2368
|
+
const lr = ({
|
|
2344
2369
|
page: e = 1,
|
|
2345
2370
|
between: o = 3,
|
|
2346
2371
|
totalPages: t,
|
|
@@ -2350,14 +2375,14 @@ const sr = ({
|
|
|
2350
2375
|
classes: s
|
|
2351
2376
|
}) => {
|
|
2352
2377
|
o = o < 1 ? 1 : o, e = Math.min(Math.max(e, 1), t), i = Math.min(Math.max(i, 0), o - 2);
|
|
2353
|
-
const u = Array.from({ length: t }, (
|
|
2378
|
+
const u = Array.from({ length: t }, (g, f) => f), l = o * 2 + 1;
|
|
2354
2379
|
let a;
|
|
2355
2380
|
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(
|
|
2356
2381
|
e - 1 - (o - (i > 0 ? i + 1 : 0)),
|
|
2357
2382
|
e + (o - (i > 0 ? i + 1 : 0))
|
|
2358
2383
|
), /* @__PURE__ */ w.jsxs("div", { className: F("flex", s == null ? void 0 : s.root), children: [
|
|
2359
2384
|
r && /* @__PURE__ */ w.jsx(
|
|
2360
|
-
|
|
2385
|
+
ge,
|
|
2361
2386
|
{
|
|
2362
2387
|
size: "sm",
|
|
2363
2388
|
intent: "ghost",
|
|
@@ -2367,19 +2392,19 @@ const sr = ({
|
|
|
2367
2392
|
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2368
2393
|
}
|
|
2369
2394
|
),
|
|
2370
|
-
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((
|
|
2371
|
-
|
|
2395
|
+
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((g) => /* @__PURE__ */ w.jsx(
|
|
2396
|
+
ge,
|
|
2372
2397
|
{
|
|
2373
2398
|
size: "sm",
|
|
2374
2399
|
intent: "ghost",
|
|
2375
2400
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2376
|
-
onClick: () =>
|
|
2377
|
-
children:
|
|
2401
|
+
onClick: () => g !== e - 1 && n(g),
|
|
2402
|
+
children: g + 1
|
|
2378
2403
|
},
|
|
2379
|
-
|
|
2404
|
+
g
|
|
2380
2405
|
)),
|
|
2381
2406
|
t > l && i > 0 && e - 1 > o && /* @__PURE__ */ w.jsx(
|
|
2382
|
-
|
|
2407
|
+
ge,
|
|
2383
2408
|
{
|
|
2384
2409
|
size: "sm",
|
|
2385
2410
|
intent: "ghost",
|
|
@@ -2387,10 +2412,10 @@ const sr = ({
|
|
|
2387
2412
|
children: "..."
|
|
2388
2413
|
}
|
|
2389
2414
|
),
|
|
2390
|
-
a.map((
|
|
2391
|
-
const f =
|
|
2415
|
+
a.map((g) => {
|
|
2416
|
+
const f = g === e - 1;
|
|
2392
2417
|
return /* @__PURE__ */ w.jsx(
|
|
2393
|
-
|
|
2418
|
+
ge,
|
|
2394
2419
|
{
|
|
2395
2420
|
size: "sm",
|
|
2396
2421
|
className: F(
|
|
@@ -2401,14 +2426,14 @@ const sr = ({
|
|
|
2401
2426
|
s == null ? void 0 : s.button
|
|
2402
2427
|
),
|
|
2403
2428
|
intent: f ? "secondary" : "ghost",
|
|
2404
|
-
onClick: () => !f && n(
|
|
2405
|
-
children:
|
|
2429
|
+
onClick: () => !f && n(g),
|
|
2430
|
+
children: g + 1
|
|
2406
2431
|
},
|
|
2407
|
-
|
|
2432
|
+
g
|
|
2408
2433
|
);
|
|
2409
2434
|
}),
|
|
2410
2435
|
t > l && i > 0 && e < t - o && /* @__PURE__ */ w.jsx(
|
|
2411
|
-
|
|
2436
|
+
ge,
|
|
2412
2437
|
{
|
|
2413
2438
|
size: "sm",
|
|
2414
2439
|
intent: "ghost",
|
|
@@ -2416,19 +2441,19 @@ const sr = ({
|
|
|
2416
2441
|
children: "..."
|
|
2417
2442
|
}
|
|
2418
2443
|
),
|
|
2419
|
-
t > l && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((
|
|
2420
|
-
|
|
2444
|
+
t > l && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((g) => /* @__PURE__ */ w.jsx(
|
|
2445
|
+
ge,
|
|
2421
2446
|
{
|
|
2422
2447
|
size: "sm",
|
|
2423
2448
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2424
2449
|
intent: "ghost",
|
|
2425
|
-
onClick: () =>
|
|
2426
|
-
children:
|
|
2450
|
+
onClick: () => g !== e - 1 && n(g),
|
|
2451
|
+
children: g + 1
|
|
2427
2452
|
},
|
|
2428
|
-
|
|
2453
|
+
g
|
|
2429
2454
|
)),
|
|
2430
2455
|
r && /* @__PURE__ */ w.jsx(
|
|
2431
|
-
|
|
2456
|
+
ge,
|
|
2432
2457
|
{
|
|
2433
2458
|
size: "sm",
|
|
2434
2459
|
intent: "ghost",
|
|
@@ -2439,7 +2464,7 @@ const sr = ({
|
|
|
2439
2464
|
}
|
|
2440
2465
|
)
|
|
2441
2466
|
] });
|
|
2442
|
-
},
|
|
2467
|
+
}, ur = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2443
2468
|
const s = t * e, u = s > r ? r : s;
|
|
2444
2469
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2445
2470
|
/* @__PURE__ */ w.jsxs("span", { className: F("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
@@ -2449,7 +2474,7 @@ const sr = ({
|
|
|
2449
2474
|
r
|
|
2450
2475
|
] }),
|
|
2451
2476
|
/* @__PURE__ */ w.jsx(
|
|
2452
|
-
|
|
2477
|
+
lr,
|
|
2453
2478
|
{
|
|
2454
2479
|
totalPages: o,
|
|
2455
2480
|
changePage: (l) => n(l),
|
|
@@ -2459,7 +2484,7 @@ const sr = ({
|
|
|
2459
2484
|
}
|
|
2460
2485
|
)
|
|
2461
2486
|
] });
|
|
2462
|
-
},
|
|
2487
|
+
}, ar = ({ mode: e, enableHeaders: o, table: t, classes: n, pagination: r }) => {
|
|
2463
2488
|
const i = r !== !1 && t.getPageCount() > 1, s = {
|
|
2464
2489
|
pageCount: t.getPageCount(),
|
|
2465
2490
|
rowsCount: t.getCoreRowModel().rows.length,
|
|
@@ -2509,7 +2534,7 @@ const sr = ({
|
|
|
2509
2534
|
n == null ? void 0 : n.tableRow
|
|
2510
2535
|
),
|
|
2511
2536
|
children: u.getVisibleCells().map((l, a) => /* @__PURE__ */ w.jsx(
|
|
2512
|
-
|
|
2537
|
+
ut,
|
|
2513
2538
|
{
|
|
2514
2539
|
className: F(
|
|
2515
2540
|
"py-3",
|
|
@@ -2525,11 +2550,11 @@ const sr = ({
|
|
|
2525
2550
|
))
|
|
2526
2551
|
},
|
|
2527
2552
|
u.id
|
|
2528
|
-
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(
|
|
2553
|
+
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(ut, { className: "py-4 text-center", colSpan: t.getAllColumns().length, children: "Not found" }) }) })
|
|
2529
2554
|
] }),
|
|
2530
|
-
i ? typeof r == "function" ? r(s) : /* @__PURE__ */ w.jsx(
|
|
2555
|
+
i ? typeof r == "function" ? r(s) : /* @__PURE__ */ w.jsx(ur, { ...s }) : null
|
|
2531
2556
|
] });
|
|
2532
|
-
},
|
|
2557
|
+
}, cr = ({
|
|
2533
2558
|
mode: e,
|
|
2534
2559
|
enableHeaders: o,
|
|
2535
2560
|
table: t,
|
|
@@ -2567,33 +2592,38 @@ const sr = ({
|
|
|
2567
2592
|
})
|
|
2568
2593
|
},
|
|
2569
2594
|
r.id
|
|
2570
|
-
)) : /* @__PURE__ */ w.jsx("div", { children: "Not found" }) }),
|
|
2595
|
+
)) : /* @__PURE__ */ w.jsx("div", { children: "Not found" }) }), Si = ({
|
|
2571
2596
|
columns: e,
|
|
2572
2597
|
data: o,
|
|
2573
2598
|
enableHeaders: t = !0,
|
|
2574
2599
|
mode: n = "solid",
|
|
2575
2600
|
classes: r,
|
|
2576
|
-
pagination: i = !0
|
|
2601
|
+
pagination: i = !0,
|
|
2602
|
+
pageSize: s = 10
|
|
2577
2603
|
}) => {
|
|
2578
|
-
const [
|
|
2604
|
+
const [u, l] = oe([]), [a, g] = oe([]), [f, d] = oe({
|
|
2605
|
+
pageIndex: 0,
|
|
2606
|
+
pageSize: s
|
|
2607
|
+
}), c = sr({
|
|
2579
2608
|
data: o,
|
|
2580
2609
|
columns: e,
|
|
2581
|
-
state: { columnFilters:
|
|
2610
|
+
state: { columnFilters: u, sorting: a, pagination: f },
|
|
2582
2611
|
enableRowSelection: !0,
|
|
2583
|
-
onSortingChange:
|
|
2584
|
-
onColumnFiltersChange:
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2612
|
+
onSortingChange: g,
|
|
2613
|
+
onColumnFiltersChange: l,
|
|
2614
|
+
onPaginationChange: d,
|
|
2615
|
+
getCoreRowModel: Xo(),
|
|
2616
|
+
getFilteredRowModel: er(),
|
|
2617
|
+
getSortedRowModel: nr(),
|
|
2618
|
+
getFacetedRowModel: Yo(),
|
|
2619
|
+
getFacetedUniqueValues: Zo(),
|
|
2620
|
+
getPaginationRowModel: tr()
|
|
2621
|
+
}), { isMobile: p } = ke();
|
|
2622
|
+
return p ? /* @__PURE__ */ w.jsx(cr, { table: c, enableHeaders: t, mode: n, classes: r }) : /* @__PURE__ */ w.jsx(ar, { table: c, enableHeaders: t, mode: n, pagination: i, classes: r });
|
|
2593
2623
|
};
|
|
2594
|
-
class
|
|
2624
|
+
class wi {
|
|
2595
2625
|
static getColumnHelper() {
|
|
2596
|
-
return
|
|
2626
|
+
return lo();
|
|
2597
2627
|
}
|
|
2598
2628
|
static getColumns(o, t) {
|
|
2599
2629
|
const {
|
|
@@ -2604,30 +2634,30 @@ class hi {
|
|
|
2604
2634
|
headerAccessor: u
|
|
2605
2635
|
} = t || {};
|
|
2606
2636
|
return Object.keys(o).map((a) => n.accessor(a, {
|
|
2607
|
-
header: (
|
|
2608
|
-
const { column: f } =
|
|
2637
|
+
header: (g) => {
|
|
2638
|
+
const { column: f } = g, d = u ? u[a] : null;
|
|
2609
2639
|
return /* @__PURE__ */ w.jsx(
|
|
2610
|
-
|
|
2640
|
+
so,
|
|
2611
2641
|
{
|
|
2612
2642
|
isSorted: f.getIsSorted() === "desc",
|
|
2613
2643
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
2614
2644
|
toggleSorting: f.toggleSorting,
|
|
2615
2645
|
canSort: f.getCanSort(),
|
|
2616
|
-
children:
|
|
2646
|
+
children: d ? d(a, g) : a
|
|
2617
2647
|
}
|
|
2618
2648
|
);
|
|
2619
2649
|
},
|
|
2620
|
-
cell: (
|
|
2650
|
+
cell: (g) => {
|
|
2621
2651
|
const f = s ? s[a] : null;
|
|
2622
|
-
return f ? f(
|
|
2652
|
+
return f ? f(g) : g.getValue();
|
|
2623
2653
|
},
|
|
2624
2654
|
enableColumnFilter: Nt.isBoolean(r) ? r : r.includes(a),
|
|
2625
2655
|
enableSorting: Nt.isBoolean(i) ? i : i.includes(a)
|
|
2626
2656
|
}));
|
|
2627
2657
|
}
|
|
2628
2658
|
}
|
|
2629
|
-
const
|
|
2630
|
-
const [t, n] =
|
|
2659
|
+
const dr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
2660
|
+
const [t, n] = oe(!0), [r, i] = oe(!0), s = Se(
|
|
2631
2661
|
(l) => {
|
|
2632
2662
|
if (e) {
|
|
2633
2663
|
switch (l) {
|
|
@@ -2642,7 +2672,7 @@ const cr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2642
2672
|
}
|
|
2643
2673
|
},
|
|
2644
2674
|
[e, o]
|
|
2645
|
-
), u =
|
|
2675
|
+
), u = Se((l) => {
|
|
2646
2676
|
n(!l.canScrollPrev()), i(!l.canScrollNext());
|
|
2647
2677
|
}, []);
|
|
2648
2678
|
return ve(() => {
|
|
@@ -2652,15 +2682,15 @@ const cr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2652
2682
|
nextBtnDisabled: r,
|
|
2653
2683
|
onClickNavigationButton: s
|
|
2654
2684
|
};
|
|
2655
|
-
},
|
|
2656
|
-
const [n, r] =
|
|
2685
|
+
}, gr = ({ emblaApi: e, navigationHandler: o, setVisibleIndex: t }) => {
|
|
2686
|
+
const [n, r] = oe([]), i = Se(
|
|
2657
2687
|
(l) => {
|
|
2658
2688
|
e && (e.scrollTo(l), o && o(e));
|
|
2659
2689
|
},
|
|
2660
2690
|
[e, o]
|
|
2661
|
-
), s =
|
|
2691
|
+
), s = Se((l) => {
|
|
2662
2692
|
r(l.scrollSnapList());
|
|
2663
|
-
}, []), u =
|
|
2693
|
+
}, []), u = Se((l) => {
|
|
2664
2694
|
t(l.selectedScrollSnap());
|
|
2665
2695
|
}, []);
|
|
2666
2696
|
return ve(() => {
|
|
@@ -2669,7 +2699,7 @@ const cr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2669
2699
|
scrollSnaps: n,
|
|
2670
2700
|
onClickDot: i
|
|
2671
2701
|
};
|
|
2672
|
-
},
|
|
2702
|
+
}, fr = {
|
|
2673
2703
|
active: !0,
|
|
2674
2704
|
breakpoints: {},
|
|
2675
2705
|
delay: 4e3,
|
|
@@ -2681,31 +2711,31 @@ const cr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2681
2711
|
stopOnLastSnap: !1,
|
|
2682
2712
|
rootNode: null
|
|
2683
2713
|
};
|
|
2684
|
-
function
|
|
2714
|
+
function pr(e, o) {
|
|
2685
2715
|
const t = e.scrollSnapList();
|
|
2686
2716
|
return typeof o == "number" ? t.map(() => o) : o(t, e);
|
|
2687
2717
|
}
|
|
2688
|
-
function
|
|
2718
|
+
function mr(e, o) {
|
|
2689
2719
|
const t = e.rootNode();
|
|
2690
2720
|
return o && o(t) || t;
|
|
2691
2721
|
}
|
|
2692
|
-
function
|
|
2693
|
-
let o, t, n, r, i = null, s = 0, u = !1, l = !1, a = !1,
|
|
2722
|
+
function xt(e = {}) {
|
|
2723
|
+
let o, t, n, r, i = null, s = 0, u = !1, l = !1, a = !1, g = !1;
|
|
2694
2724
|
function f(E, j) {
|
|
2695
2725
|
t = E;
|
|
2696
2726
|
const {
|
|
2697
2727
|
mergeOptions: U,
|
|
2698
2728
|
optionsAtMedia: K
|
|
2699
|
-
} = j, J = U(
|
|
2729
|
+
} = j, J = U(fr, xt.globalOptions), Y = U(J, e);
|
|
2700
2730
|
if (o = K(Y), t.scrollSnapList().length <= 1) return;
|
|
2701
|
-
|
|
2731
|
+
g = o.jump, n = !1, r = pr(t, o.delay);
|
|
2702
2732
|
const {
|
|
2703
2733
|
eventStore: te,
|
|
2704
2734
|
ownerDocument: X
|
|
2705
|
-
} = t.internalEngine(),
|
|
2706
|
-
te.add(X, "visibilitychange", h),
|
|
2735
|
+
} = t.internalEngine(), re = !!t.internalEngine().options.watchDrag, ie = mr(t, o.rootNode);
|
|
2736
|
+
te.add(X, "visibilitychange", h), re && t.on("pointerDown", v), re && !o.stopOnInteraction && t.on("pointerUp", _), o.stopOnMouseEnter && te.add(ie, "mouseenter", I), o.stopOnMouseEnter && !o.stopOnInteraction && te.add(ie, "mouseleave", V), o.stopOnFocusIn && t.on("slideFocusStart", S), o.stopOnFocusIn && !o.stopOnInteraction && te.add(t.containerNode(), "focusout", m), o.playOnInit && m();
|
|
2707
2737
|
}
|
|
2708
|
-
function
|
|
2738
|
+
function d() {
|
|
2709
2739
|
t.off("pointerDown", v).off("pointerUp", _).off("slideFocusStart", S), S(), n = !0, u = !1;
|
|
2710
2740
|
}
|
|
2711
2741
|
function c() {
|
|
@@ -2756,7 +2786,7 @@ function Rt(e = {}) {
|
|
|
2756
2786
|
l = !1, m();
|
|
2757
2787
|
}
|
|
2758
2788
|
function M(E) {
|
|
2759
|
-
typeof E < "u" && (
|
|
2789
|
+
typeof E < "u" && (g = E), m();
|
|
2760
2790
|
}
|
|
2761
2791
|
function b() {
|
|
2762
2792
|
u && S();
|
|
@@ -2771,7 +2801,7 @@ function Rt(e = {}) {
|
|
|
2771
2801
|
const {
|
|
2772
2802
|
index: E
|
|
2773
2803
|
} = t.internalEngine(), j = E.clone().add(1).get(), U = t.scrollSnapList().length - 1, K = o.stopOnLastSnap && j === U;
|
|
2774
|
-
if (t.canScrollNext() ? t.scrollNext(
|
|
2804
|
+
if (t.canScrollNext() ? t.scrollNext(g) : t.scrollTo(0, g), t.emit("autoplay:select"), K) return S();
|
|
2775
2805
|
m();
|
|
2776
2806
|
}
|
|
2777
2807
|
function N() {
|
|
@@ -2783,7 +2813,7 @@ function Rt(e = {}) {
|
|
|
2783
2813
|
name: "autoplay",
|
|
2784
2814
|
options: e,
|
|
2785
2815
|
init: f,
|
|
2786
|
-
destroy:
|
|
2816
|
+
destroy: d,
|
|
2787
2817
|
play: M,
|
|
2788
2818
|
stop: b,
|
|
2789
2819
|
reset: P,
|
|
@@ -2791,40 +2821,40 @@ function Rt(e = {}) {
|
|
|
2791
2821
|
timeUntilNext: N
|
|
2792
2822
|
};
|
|
2793
2823
|
}
|
|
2794
|
-
|
|
2795
|
-
function
|
|
2824
|
+
xt.globalOptions = void 0;
|
|
2825
|
+
function hr(e) {
|
|
2796
2826
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2797
2827
|
}
|
|
2798
2828
|
function Gt(e) {
|
|
2799
|
-
return
|
|
2829
|
+
return hr(e) || Array.isArray(e);
|
|
2800
2830
|
}
|
|
2801
|
-
function
|
|
2831
|
+
function Sr() {
|
|
2802
2832
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2803
2833
|
}
|
|
2804
|
-
function
|
|
2834
|
+
function yt(e, o) {
|
|
2805
2835
|
const t = Object.keys(e), n = Object.keys(o);
|
|
2806
2836
|
if (t.length !== n.length) return !1;
|
|
2807
2837
|
const r = JSON.stringify(Object.keys(e.breakpoints || {})), i = JSON.stringify(Object.keys(o.breakpoints || {}));
|
|
2808
2838
|
return r !== i ? !1 : t.every((s) => {
|
|
2809
2839
|
const u = e[s], l = o[s];
|
|
2810
|
-
return typeof u == "function" ? `${u}` == `${l}` : !Gt(u) || !Gt(l) ? u === l :
|
|
2840
|
+
return typeof u == "function" ? `${u}` == `${l}` : !Gt(u) || !Gt(l) ? u === l : yt(u, l);
|
|
2811
2841
|
});
|
|
2812
2842
|
}
|
|
2813
2843
|
function zt(e) {
|
|
2814
2844
|
return e.concat().sort((o, t) => o.name > t.name ? 1 : -1).map((o) => o.options);
|
|
2815
2845
|
}
|
|
2816
|
-
function
|
|
2846
|
+
function wr(e, o) {
|
|
2817
2847
|
if (e.length !== o.length) return !1;
|
|
2818
2848
|
const t = zt(e), n = zt(o);
|
|
2819
2849
|
return t.every((r, i) => {
|
|
2820
2850
|
const s = n[i];
|
|
2821
|
-
return
|
|
2851
|
+
return yt(r, s);
|
|
2822
2852
|
});
|
|
2823
2853
|
}
|
|
2824
|
-
function
|
|
2854
|
+
function Ft(e) {
|
|
2825
2855
|
return typeof e == "number";
|
|
2826
2856
|
}
|
|
2827
|
-
function
|
|
2857
|
+
function pt(e) {
|
|
2828
2858
|
return typeof e == "string";
|
|
2829
2859
|
}
|
|
2830
2860
|
function Ke(e) {
|
|
@@ -2836,18 +2866,18 @@ function Bt(e) {
|
|
|
2836
2866
|
function A(e) {
|
|
2837
2867
|
return Math.abs(e);
|
|
2838
2868
|
}
|
|
2839
|
-
function
|
|
2869
|
+
function _t(e) {
|
|
2840
2870
|
return Math.sign(e);
|
|
2841
2871
|
}
|
|
2842
2872
|
function Ve(e, o) {
|
|
2843
2873
|
return A(e - o);
|
|
2844
2874
|
}
|
|
2845
|
-
function
|
|
2875
|
+
function Cr(e, o) {
|
|
2846
2876
|
if (e === 0 || o === 0 || A(e) <= A(o)) return 0;
|
|
2847
2877
|
const t = Ve(A(e), A(o));
|
|
2848
2878
|
return A(t / e);
|
|
2849
2879
|
}
|
|
2850
|
-
function
|
|
2880
|
+
function vr(e) {
|
|
2851
2881
|
return Math.round(e * 100) / 100;
|
|
2852
2882
|
}
|
|
2853
2883
|
function Pe(e) {
|
|
@@ -2859,7 +2889,7 @@ function ee(e) {
|
|
|
2859
2889
|
function De(e) {
|
|
2860
2890
|
return Math.max(0, e.length - 1);
|
|
2861
2891
|
}
|
|
2862
|
-
function
|
|
2892
|
+
function It(e, o) {
|
|
2863
2893
|
return o === De(e);
|
|
2864
2894
|
}
|
|
2865
2895
|
function kt(e, o = 0) {
|
|
@@ -2874,10 +2904,10 @@ function xn(e, o) {
|
|
|
2874
2904
|
t[r] = u ? xn(i, s) : s;
|
|
2875
2905
|
}), t), {});
|
|
2876
2906
|
}
|
|
2877
|
-
function
|
|
2907
|
+
function mt(e, o) {
|
|
2878
2908
|
return typeof o.MouseEvent < "u" && e instanceof o.MouseEvent;
|
|
2879
2909
|
}
|
|
2880
|
-
function
|
|
2910
|
+
function Rr(e, o) {
|
|
2881
2911
|
const t = {
|
|
2882
2912
|
start: n,
|
|
2883
2913
|
center: r,
|
|
@@ -2893,7 +2923,7 @@ function vr(e, o) {
|
|
|
2893
2923
|
return o - l;
|
|
2894
2924
|
}
|
|
2895
2925
|
function s(l, a) {
|
|
2896
|
-
return
|
|
2926
|
+
return pt(e) ? t[e](l) : e(o, l, a);
|
|
2897
2927
|
}
|
|
2898
2928
|
return {
|
|
2899
2929
|
measure: s
|
|
@@ -2922,7 +2952,7 @@ function Ee() {
|
|
|
2922
2952
|
};
|
|
2923
2953
|
return n;
|
|
2924
2954
|
}
|
|
2925
|
-
function
|
|
2955
|
+
function xr(e, o, t, n) {
|
|
2926
2956
|
const r = Ee(), i = 1e3 / 60;
|
|
2927
2957
|
let s = null, u = 0, l = 0;
|
|
2928
2958
|
function a() {
|
|
@@ -2930,7 +2960,7 @@ function Rr(e, o, t, n) {
|
|
|
2930
2960
|
e.hidden && p();
|
|
2931
2961
|
});
|
|
2932
2962
|
}
|
|
2933
|
-
function
|
|
2963
|
+
function g() {
|
|
2934
2964
|
c(), r.clear();
|
|
2935
2965
|
}
|
|
2936
2966
|
function f(S) {
|
|
@@ -2942,7 +2972,7 @@ function Rr(e, o, t, n) {
|
|
|
2942
2972
|
const C = u / i;
|
|
2943
2973
|
n(C), l && (l = o.requestAnimationFrame(f));
|
|
2944
2974
|
}
|
|
2945
|
-
function
|
|
2975
|
+
function d() {
|
|
2946
2976
|
l || (l = o.requestAnimationFrame(f));
|
|
2947
2977
|
}
|
|
2948
2978
|
function c() {
|
|
@@ -2953,15 +2983,15 @@ function Rr(e, o, t, n) {
|
|
|
2953
2983
|
}
|
|
2954
2984
|
return {
|
|
2955
2985
|
init: a,
|
|
2956
|
-
destroy:
|
|
2957
|
-
start:
|
|
2986
|
+
destroy: g,
|
|
2987
|
+
start: d,
|
|
2958
2988
|
stop: c,
|
|
2959
2989
|
update: t,
|
|
2960
2990
|
render: n
|
|
2961
2991
|
};
|
|
2962
2992
|
}
|
|
2963
|
-
function
|
|
2964
|
-
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", s = !n && t ? -1 : 1, u =
|
|
2993
|
+
function yr(e, o) {
|
|
2994
|
+
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", s = !n && t ? -1 : 1, u = g(), l = f();
|
|
2965
2995
|
function a(p) {
|
|
2966
2996
|
const {
|
|
2967
2997
|
height: m,
|
|
@@ -2969,13 +2999,13 @@ function xr(e, o) {
|
|
|
2969
2999
|
} = p;
|
|
2970
3000
|
return n ? m : S;
|
|
2971
3001
|
}
|
|
2972
|
-
function
|
|
3002
|
+
function g() {
|
|
2973
3003
|
return n ? "top" : t ? "right" : "left";
|
|
2974
3004
|
}
|
|
2975
3005
|
function f() {
|
|
2976
3006
|
return n ? "bottom" : t ? "left" : "right";
|
|
2977
3007
|
}
|
|
2978
|
-
function
|
|
3008
|
+
function d(p) {
|
|
2979
3009
|
return p * s;
|
|
2980
3010
|
}
|
|
2981
3011
|
return {
|
|
@@ -2984,7 +3014,7 @@ function xr(e, o) {
|
|
|
2984
3014
|
startEdge: u,
|
|
2985
3015
|
endEdge: l,
|
|
2986
3016
|
measureSize: a,
|
|
2987
|
-
direction:
|
|
3017
|
+
direction: d
|
|
2988
3018
|
};
|
|
2989
3019
|
}
|
|
2990
3020
|
function we(e = 0, o = 0) {
|
|
@@ -3020,30 +3050,30 @@ function yn(e, o, t) {
|
|
|
3020
3050
|
constrain: n
|
|
3021
3051
|
} = we(0, e), r = e + 1;
|
|
3022
3052
|
let i = s(o);
|
|
3023
|
-
function s(
|
|
3024
|
-
return t ? A((r +
|
|
3053
|
+
function s(d) {
|
|
3054
|
+
return t ? A((r + d) % r) : n(d);
|
|
3025
3055
|
}
|
|
3026
3056
|
function u() {
|
|
3027
3057
|
return i;
|
|
3028
3058
|
}
|
|
3029
|
-
function l(
|
|
3030
|
-
return i = s(
|
|
3059
|
+
function l(d) {
|
|
3060
|
+
return i = s(d), f;
|
|
3031
3061
|
}
|
|
3032
|
-
function a(
|
|
3033
|
-
return
|
|
3062
|
+
function a(d) {
|
|
3063
|
+
return g().set(u() + d);
|
|
3034
3064
|
}
|
|
3035
|
-
function
|
|
3065
|
+
function g() {
|
|
3036
3066
|
return yn(e, u(), t);
|
|
3037
3067
|
}
|
|
3038
3068
|
const f = {
|
|
3039
3069
|
get: u,
|
|
3040
3070
|
set: l,
|
|
3041
3071
|
add: a,
|
|
3042
|
-
clone:
|
|
3072
|
+
clone: g
|
|
3043
3073
|
};
|
|
3044
3074
|
return f;
|
|
3045
3075
|
}
|
|
3046
|
-
function
|
|
3076
|
+
function Fr(e, o, t, n, r, i, s, u, l, a, g, f, d, c, p, m, S, h, C) {
|
|
3047
3077
|
const {
|
|
3048
3078
|
cross: v,
|
|
3049
3079
|
direction: _
|
|
@@ -3065,43 +3095,43 @@ function yr(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
|
3065
3095
|
const T = o;
|
|
3066
3096
|
M.add(T, "dragstart", (z) => z.preventDefault(), V).add(T, "touchmove", () => {
|
|
3067
3097
|
}, V).add(T, "touchend", () => {
|
|
3068
|
-
}).add(T, "touchstart", D).add(T, "mousedown", D).add(T, "touchcancel", G).add(T, "contextmenu", G).add(T, "click",
|
|
3098
|
+
}).add(T, "touchstart", D).add(T, "mousedown", D).add(T, "touchcancel", G).add(T, "contextmenu", G).add(T, "click", le, !0);
|
|
3069
3099
|
}
|
|
3070
3100
|
function X() {
|
|
3071
3101
|
M.clear(), b.clear();
|
|
3072
3102
|
}
|
|
3073
|
-
function
|
|
3103
|
+
function re() {
|
|
3074
3104
|
const R = Y ? t : o;
|
|
3075
3105
|
b.add(R, "touchmove", k, V).add(R, "touchend", G).add(R, "mousemove", k, V).add(R, "mouseup", G);
|
|
3076
3106
|
}
|
|
3077
|
-
function
|
|
3107
|
+
function ie(R) {
|
|
3078
3108
|
const D = R.nodeName || "";
|
|
3079
3109
|
return I.includes(D);
|
|
3080
3110
|
}
|
|
3081
|
-
function
|
|
3111
|
+
function se() {
|
|
3082
3112
|
return (p ? $ : L)[Y ? "mouse" : "touch"];
|
|
3083
3113
|
}
|
|
3084
3114
|
function Re(R, D) {
|
|
3085
|
-
const T = f.add(
|
|
3086
|
-
return p || A(R) < P ? z : S && D ? z * 0.5 :
|
|
3115
|
+
const T = f.add(_t(R) * -1), z = g.byDistance(R, !p).distance;
|
|
3116
|
+
return p || A(R) < P ? z : S && D ? z * 0.5 : g.byIndex(T.get(), 0).distance;
|
|
3087
3117
|
}
|
|
3088
3118
|
function xe(R) {
|
|
3089
|
-
const D =
|
|
3090
|
-
Y = D, J = p && D && !R.buttons && B, B = Ve(r.get(), s.get()) >= 2, !(D && R.button !== 0) && (
|
|
3119
|
+
const D = mt(R, n);
|
|
3120
|
+
Y = D, J = p && D && !R.buttons && B, B = Ve(r.get(), s.get()) >= 2, !(D && R.button !== 0) && (ie(R.target) || (U = !0, i.pointerDown(R), a.useFriction(0).useDuration(0), r.set(s), re(), E = i.readPoint(R), j = i.readPoint(R, v), d.emit("pointerDown")));
|
|
3091
3121
|
}
|
|
3092
3122
|
function k(R) {
|
|
3093
|
-
if (!
|
|
3094
|
-
const T = i.readPoint(R), z = i.readPoint(R, v), ne = Ve(T, E),
|
|
3095
|
-
if (!K && !Y && (!R.cancelable || (K = ne >
|
|
3123
|
+
if (!mt(R, n) && R.touches.length >= 2) return G(R);
|
|
3124
|
+
const T = i.readPoint(R), z = i.readPoint(R, v), ne = Ve(T, E), ue = Ve(z, j);
|
|
3125
|
+
if (!K && !Y && (!R.cancelable || (K = ne > ue, !K)))
|
|
3096
3126
|
return G(R);
|
|
3097
|
-
const
|
|
3098
|
-
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(
|
|
3127
|
+
const me = i.pointerMove(R);
|
|
3128
|
+
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(me)), R.preventDefault();
|
|
3099
3129
|
}
|
|
3100
3130
|
function G(R) {
|
|
3101
|
-
const T =
|
|
3102
|
-
K = !1, U = !1, b.clear(), a.useDuration(
|
|
3131
|
+
const T = g.byDistance(0, !1).index !== f.get(), z = i.pointerUp(R) * se(), ne = Re(_(z), T), ue = Cr(z, ne), me = N - 10 * ue, de = h + ue / 50;
|
|
3132
|
+
K = !1, U = !1, b.clear(), a.useDuration(me).useFriction(de), l.distance(ne, !p), Y = !1, d.emit("pointerUp");
|
|
3103
3133
|
}
|
|
3104
|
-
function
|
|
3134
|
+
function le(R) {
|
|
3105
3135
|
J && (R.stopPropagation(), R.preventDefault(), J = !1);
|
|
3106
3136
|
}
|
|
3107
3137
|
function W() {
|
|
@@ -3113,25 +3143,25 @@ function yr(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
|
3113
3143
|
pointerDown: W
|
|
3114
3144
|
};
|
|
3115
3145
|
}
|
|
3116
|
-
function
|
|
3146
|
+
function _r(e, o) {
|
|
3117
3147
|
let n, r;
|
|
3118
3148
|
function i(f) {
|
|
3119
3149
|
return f.timeStamp;
|
|
3120
3150
|
}
|
|
3121
|
-
function s(f,
|
|
3122
|
-
const p = `client${(
|
|
3123
|
-
return (
|
|
3151
|
+
function s(f, d) {
|
|
3152
|
+
const p = `client${(d || e.scroll) === "x" ? "X" : "Y"}`;
|
|
3153
|
+
return (mt(f, o) ? f : f.touches[0])[p];
|
|
3124
3154
|
}
|
|
3125
3155
|
function u(f) {
|
|
3126
3156
|
return n = f, r = f, s(f);
|
|
3127
3157
|
}
|
|
3128
3158
|
function l(f) {
|
|
3129
|
-
const
|
|
3130
|
-
return r = f, c && (n = f),
|
|
3159
|
+
const d = s(f) - s(r), c = i(f) - i(n) > 170;
|
|
3160
|
+
return r = f, c && (n = f), d;
|
|
3131
3161
|
}
|
|
3132
3162
|
function a(f) {
|
|
3133
3163
|
if (!n || !r) return 0;
|
|
3134
|
-
const
|
|
3164
|
+
const d = s(r) - s(n), c = i(f) - i(n), p = i(f) - i(r) > 170, m = d / c;
|
|
3135
3165
|
return c && !p && A(m) > 0.1 ? m : 0;
|
|
3136
3166
|
}
|
|
3137
3167
|
return {
|
|
@@ -3141,7 +3171,7 @@ function Fr(e, o) {
|
|
|
3141
3171
|
readPoint: s
|
|
3142
3172
|
};
|
|
3143
3173
|
}
|
|
3144
|
-
function
|
|
3174
|
+
function Ir() {
|
|
3145
3175
|
function e(t) {
|
|
3146
3176
|
const {
|
|
3147
3177
|
offsetTop: n,
|
|
@@ -3162,7 +3192,7 @@ function _r() {
|
|
|
3162
3192
|
measure: e
|
|
3163
3193
|
};
|
|
3164
3194
|
}
|
|
3165
|
-
function
|
|
3195
|
+
function Mr(e) {
|
|
3166
3196
|
function o(n) {
|
|
3167
3197
|
return e * (n / 100);
|
|
3168
3198
|
}
|
|
@@ -3170,19 +3200,19 @@ function Ir(e) {
|
|
|
3170
3200
|
measure: o
|
|
3171
3201
|
};
|
|
3172
3202
|
}
|
|
3173
|
-
function
|
|
3203
|
+
function Vr(e, o, t, n, r, i, s) {
|
|
3174
3204
|
const u = [e].concat(n);
|
|
3175
|
-
let l, a,
|
|
3176
|
-
function
|
|
3205
|
+
let l, a, g = [], f = !1;
|
|
3206
|
+
function d(S) {
|
|
3177
3207
|
return r.measureSize(s.measure(S));
|
|
3178
3208
|
}
|
|
3179
3209
|
function c(S) {
|
|
3180
3210
|
if (!i) return;
|
|
3181
|
-
a =
|
|
3211
|
+
a = d(e), g = n.map(d);
|
|
3182
3212
|
function h(C) {
|
|
3183
3213
|
for (const v of C) {
|
|
3184
3214
|
if (f) return;
|
|
3185
|
-
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a :
|
|
3215
|
+
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a : g[I], M = d(_ ? e : n[I]);
|
|
3186
3216
|
if (A(M - V) >= 0.5) {
|
|
3187
3217
|
S.reInit(), o.emit("resize");
|
|
3188
3218
|
break;
|
|
@@ -3203,12 +3233,12 @@ function Mr(e, o, t, n, r, i, s) {
|
|
|
3203
3233
|
destroy: p
|
|
3204
3234
|
};
|
|
3205
3235
|
}
|
|
3206
|
-
function
|
|
3207
|
-
let s = 0, u = 0, l = r, a = i,
|
|
3208
|
-
function
|
|
3236
|
+
function br(e, o, t, n, r, i) {
|
|
3237
|
+
let s = 0, u = 0, l = r, a = i, g = e.get(), f = 0;
|
|
3238
|
+
function d() {
|
|
3209
3239
|
const V = n.get() - e.get(), M = !l;
|
|
3210
3240
|
let b = 0;
|
|
3211
|
-
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a,
|
|
3241
|
+
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a, g += s, e.add(s), b = g - f), u = _t(b), f = g, I;
|
|
3212
3242
|
}
|
|
3213
3243
|
function c() {
|
|
3214
3244
|
const V = n.get() - o.get();
|
|
@@ -3239,7 +3269,7 @@ function Vr(e, o, t, n, r, i) {
|
|
|
3239
3269
|
direction: m,
|
|
3240
3270
|
duration: p,
|
|
3241
3271
|
velocity: S,
|
|
3242
|
-
seek:
|
|
3272
|
+
seek: d,
|
|
3243
3273
|
settled: c,
|
|
3244
3274
|
useBaseFriction: C,
|
|
3245
3275
|
useBaseDuration: h,
|
|
@@ -3248,13 +3278,13 @@ function Vr(e, o, t, n, r, i) {
|
|
|
3248
3278
|
};
|
|
3249
3279
|
return I;
|
|
3250
3280
|
}
|
|
3251
|
-
function
|
|
3281
|
+
function Pr(e, o, t, n, r) {
|
|
3252
3282
|
const i = r.measure(10), s = r.measure(50), u = we(0.1, 0.99);
|
|
3253
3283
|
let l = !1;
|
|
3254
3284
|
function a() {
|
|
3255
3285
|
return !(l || !e.reachedAny(t.get()) || !e.reachedAny(o.get()));
|
|
3256
3286
|
}
|
|
3257
|
-
function
|
|
3287
|
+
function g(c) {
|
|
3258
3288
|
if (!a()) return;
|
|
3259
3289
|
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
3290
|
t.subtract(S * h), !c && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
|
|
@@ -3264,16 +3294,16 @@ function br(e, o, t, n, r) {
|
|
|
3264
3294
|
}
|
|
3265
3295
|
return {
|
|
3266
3296
|
shouldConstrain: a,
|
|
3267
|
-
constrain:
|
|
3297
|
+
constrain: g,
|
|
3268
3298
|
toggleActive: f
|
|
3269
3299
|
};
|
|
3270
3300
|
}
|
|
3271
|
-
function
|
|
3272
|
-
const i = we(-o + e, 0), s = f(), u =
|
|
3301
|
+
function $r(e, o, t, n, r) {
|
|
3302
|
+
const i = we(-o + e, 0), s = f(), u = g(), l = d();
|
|
3273
3303
|
function a(p, m) {
|
|
3274
3304
|
return Ve(p, m) <= 1;
|
|
3275
3305
|
}
|
|
3276
|
-
function
|
|
3306
|
+
function g() {
|
|
3277
3307
|
const p = s[0], m = ee(s), S = s.lastIndexOf(p), h = s.indexOf(m) + 1;
|
|
3278
3308
|
return we(S, h);
|
|
3279
3309
|
}
|
|
@@ -3282,11 +3312,11 @@ function Pr(e, o, t, n, r) {
|
|
|
3282
3312
|
const {
|
|
3283
3313
|
min: S,
|
|
3284
3314
|
max: h
|
|
3285
|
-
} = i, C = i.constrain(p), v = !m, _ =
|
|
3315
|
+
} = i, C = i.constrain(p), v = !m, _ = It(t, m);
|
|
3286
3316
|
return v ? h : _ || a(S, C) ? S : a(h, C) ? h : C;
|
|
3287
3317
|
}).map((p) => parseFloat(p.toFixed(3)));
|
|
3288
3318
|
}
|
|
3289
|
-
function
|
|
3319
|
+
function d() {
|
|
3290
3320
|
if (o <= e + r) return [i.max];
|
|
3291
3321
|
if (n === "keepSnaps") return s;
|
|
3292
3322
|
const {
|
|
@@ -3300,30 +3330,30 @@ function Pr(e, o, t, n, r) {
|
|
|
3300
3330
|
scrollContainLimit: u
|
|
3301
3331
|
};
|
|
3302
3332
|
}
|
|
3303
|
-
function
|
|
3333
|
+
function Er(e, o, t) {
|
|
3304
3334
|
const n = o[0], r = t ? n - e : ee(o);
|
|
3305
3335
|
return {
|
|
3306
3336
|
limit: we(r, n)
|
|
3307
3337
|
};
|
|
3308
3338
|
}
|
|
3309
|
-
function
|
|
3339
|
+
function Dr(e, o, t, n) {
|
|
3310
3340
|
const i = o.min + 0.1, s = o.max + 0.1, {
|
|
3311
3341
|
reachedMin: u,
|
|
3312
3342
|
reachedMax: l
|
|
3313
3343
|
} = we(i, s);
|
|
3314
|
-
function a(
|
|
3315
|
-
return
|
|
3344
|
+
function a(d) {
|
|
3345
|
+
return d === 1 ? l(t.get()) : d === -1 ? u(t.get()) : !1;
|
|
3316
3346
|
}
|
|
3317
|
-
function d
|
|
3318
|
-
if (!a(
|
|
3319
|
-
const c = e * (
|
|
3347
|
+
function g(d) {
|
|
3348
|
+
if (!a(d)) return;
|
|
3349
|
+
const c = e * (d * -1);
|
|
3320
3350
|
n.forEach((p) => p.add(c));
|
|
3321
3351
|
}
|
|
3322
3352
|
return {
|
|
3323
|
-
loop:
|
|
3353
|
+
loop: g
|
|
3324
3354
|
};
|
|
3325
3355
|
}
|
|
3326
|
-
function
|
|
3356
|
+
function Lr(e) {
|
|
3327
3357
|
const {
|
|
3328
3358
|
max: o,
|
|
3329
3359
|
length: t
|
|
@@ -3336,17 +3366,17 @@ function Dr(e) {
|
|
|
3336
3366
|
get: n
|
|
3337
3367
|
};
|
|
3338
3368
|
}
|
|
3339
|
-
function
|
|
3369
|
+
function Or(e, o, t, n, r) {
|
|
3340
3370
|
const {
|
|
3341
3371
|
startEdge: i,
|
|
3342
3372
|
endEdge: s
|
|
3343
3373
|
} = e, {
|
|
3344
3374
|
groupSlides: u
|
|
3345
|
-
} = r, l = f().map(o.measure), a =
|
|
3375
|
+
} = r, l = f().map(o.measure), a = d(), g = c();
|
|
3346
3376
|
function f() {
|
|
3347
3377
|
return u(n).map((m) => ee(m)[s] - m[0][i]).map(A);
|
|
3348
3378
|
}
|
|
3349
|
-
function
|
|
3379
|
+
function d() {
|
|
3350
3380
|
return n.map((m) => t[i] - m[i]).map((m) => -A(m));
|
|
3351
3381
|
}
|
|
3352
3382
|
function c() {
|
|
@@ -3354,20 +3384,20 @@ function Lr(e, o, t, n, r) {
|
|
|
3354
3384
|
}
|
|
3355
3385
|
return {
|
|
3356
3386
|
snaps: a,
|
|
3357
|
-
snapsAligned:
|
|
3387
|
+
snapsAligned: g
|
|
3358
3388
|
};
|
|
3359
3389
|
}
|
|
3360
|
-
function
|
|
3390
|
+
function Ar(e, o, t, n, r, i) {
|
|
3361
3391
|
const {
|
|
3362
3392
|
groupSlides: s
|
|
3363
3393
|
} = r, {
|
|
3364
3394
|
min: u,
|
|
3365
3395
|
max: l
|
|
3366
|
-
} = n, a =
|
|
3367
|
-
function
|
|
3368
|
-
const
|
|
3369
|
-
return t.length === 1 ? [i] : c ?
|
|
3370
|
-
const h = !m, C =
|
|
3396
|
+
} = n, a = g();
|
|
3397
|
+
function g() {
|
|
3398
|
+
const d = s(i), c = !e || o === "keepSnaps";
|
|
3399
|
+
return t.length === 1 ? [i] : c ? d : d.slice(u, l).map((p, m, S) => {
|
|
3400
|
+
const h = !m, C = It(S, m);
|
|
3371
3401
|
if (h) {
|
|
3372
3402
|
const v = ee(S[0]) + 1;
|
|
3373
3403
|
return kt(v);
|
|
@@ -3383,7 +3413,7 @@ function Or(e, o, t, n, r, i) {
|
|
|
3383
3413
|
slideRegistry: a
|
|
3384
3414
|
};
|
|
3385
3415
|
}
|
|
3386
|
-
function
|
|
3416
|
+
function Nr(e, o, t, n, r) {
|
|
3387
3417
|
const {
|
|
3388
3418
|
reachedAny: i,
|
|
3389
3419
|
removeOffset: s,
|
|
@@ -3394,7 +3424,7 @@ function Ar(e, o, t, n, r) {
|
|
|
3394
3424
|
}
|
|
3395
3425
|
function a(p) {
|
|
3396
3426
|
const m = e ? s(p) : u(p), S = o.map((C, v) => ({
|
|
3397
|
-
diff:
|
|
3427
|
+
diff: g(C - m, 0),
|
|
3398
3428
|
index: v
|
|
3399
3429
|
})).sort((C, v) => A(C.diff) - A(v.diff)), {
|
|
3400
3430
|
index: h
|
|
@@ -3404,21 +3434,21 @@ function Ar(e, o, t, n, r) {
|
|
|
3404
3434
|
distance: m
|
|
3405
3435
|
};
|
|
3406
3436
|
}
|
|
3407
|
-
function
|
|
3437
|
+
function g(p, m) {
|
|
3408
3438
|
const S = [p, p + t, p - t];
|
|
3409
3439
|
if (!e) return p;
|
|
3410
3440
|
if (!m) return l(S);
|
|
3411
|
-
const h = S.filter((C) =>
|
|
3441
|
+
const h = S.filter((C) => _t(C) === m);
|
|
3412
3442
|
return h.length ? l(h) : ee(S) - t;
|
|
3413
3443
|
}
|
|
3414
3444
|
function f(p, m) {
|
|
3415
|
-
const S = o[p] - r.get(), h =
|
|
3445
|
+
const S = o[p] - r.get(), h = g(S, m);
|
|
3416
3446
|
return {
|
|
3417
3447
|
index: p,
|
|
3418
3448
|
distance: h
|
|
3419
3449
|
};
|
|
3420
3450
|
}
|
|
3421
|
-
function
|
|
3451
|
+
function d(p, m) {
|
|
3422
3452
|
const S = r.get() + p, {
|
|
3423
3453
|
index: h,
|
|
3424
3454
|
distance: C
|
|
@@ -3427,29 +3457,29 @@ function Ar(e, o, t, n, r) {
|
|
|
3427
3457
|
index: h,
|
|
3428
3458
|
distance: p
|
|
3429
3459
|
};
|
|
3430
|
-
const _ = o[h] - C, I = p +
|
|
3460
|
+
const _ = o[h] - C, I = p + g(_, 0);
|
|
3431
3461
|
return {
|
|
3432
3462
|
index: h,
|
|
3433
3463
|
distance: I
|
|
3434
3464
|
};
|
|
3435
3465
|
}
|
|
3436
3466
|
return {
|
|
3437
|
-
byDistance:
|
|
3467
|
+
byDistance: d,
|
|
3438
3468
|
byIndex: f,
|
|
3439
|
-
shortcut:
|
|
3469
|
+
shortcut: g
|
|
3440
3470
|
};
|
|
3441
3471
|
}
|
|
3442
|
-
function
|
|
3472
|
+
function Tr(e, o, t, n, r, i, s) {
|
|
3443
3473
|
function u(f) {
|
|
3444
|
-
const
|
|
3445
|
-
i.add(
|
|
3474
|
+
const d = f.distance, c = f.index !== o.get();
|
|
3475
|
+
i.add(d), d && (n.duration() ? e.start() : (e.update(), e.render(1), e.update())), c && (t.set(o.get()), o.set(f.index), s.emit("select"));
|
|
3446
3476
|
}
|
|
3447
|
-
function l(f,
|
|
3448
|
-
const c = r.byDistance(f,
|
|
3477
|
+
function l(f, d) {
|
|
3478
|
+
const c = r.byDistance(f, d);
|
|
3449
3479
|
u(c);
|
|
3450
3480
|
}
|
|
3451
|
-
function a(f,
|
|
3452
|
-
const c = o.clone().set(f), p = r.byIndex(c.get(),
|
|
3481
|
+
function a(f, d) {
|
|
3482
|
+
const c = o.clone().set(f), p = r.byIndex(c.get(), d);
|
|
3453
3483
|
u(p);
|
|
3454
3484
|
}
|
|
3455
3485
|
return {
|
|
@@ -3457,19 +3487,19 @@ function Nr(e, o, t, n, r, i, s) {
|
|
|
3457
3487
|
index: a
|
|
3458
3488
|
};
|
|
3459
3489
|
}
|
|
3460
|
-
function
|
|
3490
|
+
function jr(e, o, t, n, r, i, s, u) {
|
|
3461
3491
|
const l = {
|
|
3462
3492
|
passive: !0,
|
|
3463
3493
|
capture: !0
|
|
3464
3494
|
};
|
|
3465
3495
|
let a = 0;
|
|
3466
|
-
function
|
|
3496
|
+
function g(c) {
|
|
3467
3497
|
if (!u) return;
|
|
3468
3498
|
function p(m) {
|
|
3469
3499
|
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
3470
3500
|
s.emit("slideFocusStart"), e.scrollLeft = 0;
|
|
3471
3501
|
const C = t.findIndex((v) => v.includes(m));
|
|
3472
|
-
|
|
3502
|
+
Ft(C) && (r.useDuration(0), n.index(C, 0), s.emit("slideFocus"));
|
|
3473
3503
|
}
|
|
3474
3504
|
i.add(document, "keydown", f, !1), o.forEach((m, S) => {
|
|
3475
3505
|
i.add(m, "focus", (h) => {
|
|
@@ -3481,7 +3511,7 @@ function Tr(e, o, t, n, r, i, s, u) {
|
|
|
3481
3511
|
c.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
|
|
3482
3512
|
}
|
|
3483
3513
|
return {
|
|
3484
|
-
init:
|
|
3514
|
+
init: g
|
|
3485
3515
|
};
|
|
3486
3516
|
}
|
|
3487
3517
|
function _e(e) {
|
|
@@ -3499,7 +3529,7 @@ function _e(e) {
|
|
|
3499
3529
|
o -= s(l);
|
|
3500
3530
|
}
|
|
3501
3531
|
function s(l) {
|
|
3502
|
-
return
|
|
3532
|
+
return Ft(l) ? l : l.get();
|
|
3503
3533
|
}
|
|
3504
3534
|
return {
|
|
3505
3535
|
get: t,
|
|
@@ -3511,31 +3541,31 @@ function _e(e) {
|
|
|
3511
3541
|
function Fn(e, o) {
|
|
3512
3542
|
const t = e.scroll === "x" ? s : u, n = o.style;
|
|
3513
3543
|
let r = null, i = !1;
|
|
3514
|
-
function s(
|
|
3515
|
-
return `translate3d(${
|
|
3544
|
+
function s(d) {
|
|
3545
|
+
return `translate3d(${d}px,0px,0px)`;
|
|
3516
3546
|
}
|
|
3517
|
-
function u(
|
|
3518
|
-
return `translate3d(0px,${
|
|
3547
|
+
function u(d) {
|
|
3548
|
+
return `translate3d(0px,${d}px,0px)`;
|
|
3519
3549
|
}
|
|
3520
|
-
function l(
|
|
3550
|
+
function l(d) {
|
|
3521
3551
|
if (i) return;
|
|
3522
|
-
const c =
|
|
3552
|
+
const c = vr(e.direction(d));
|
|
3523
3553
|
c !== r && (n.transform = t(c), r = c);
|
|
3524
3554
|
}
|
|
3525
|
-
function a(
|
|
3526
|
-
i = !
|
|
3555
|
+
function a(d) {
|
|
3556
|
+
i = !d;
|
|
3527
3557
|
}
|
|
3528
|
-
function
|
|
3558
|
+
function g() {
|
|
3529
3559
|
i || (n.transform = "", o.getAttribute("style") || o.removeAttribute("style"));
|
|
3530
3560
|
}
|
|
3531
3561
|
return {
|
|
3532
|
-
clear:
|
|
3562
|
+
clear: g,
|
|
3533
3563
|
to: l,
|
|
3534
3564
|
toggleActive: a
|
|
3535
3565
|
};
|
|
3536
3566
|
}
|
|
3537
|
-
function
|
|
3538
|
-
const
|
|
3567
|
+
function Hr(e, o, t, n, r, i, s, u, l) {
|
|
3568
|
+
const g = Pe(r), f = Pe(r).reverse(), d = h().concat(C());
|
|
3539
3569
|
function c(M, b) {
|
|
3540
3570
|
return M.reduce((P, L) => P - r[L], b);
|
|
3541
3571
|
}
|
|
@@ -3566,19 +3596,19 @@ function jr(e, o, t, n, r, i, s, u, l) {
|
|
|
3566
3596
|
return S(b, t, !1);
|
|
3567
3597
|
}
|
|
3568
3598
|
function C() {
|
|
3569
|
-
const M = o - s[0] - 1, b = p(
|
|
3599
|
+
const M = o - s[0] - 1, b = p(g, M);
|
|
3570
3600
|
return S(b, -t, !0);
|
|
3571
3601
|
}
|
|
3572
3602
|
function v() {
|
|
3573
|
-
return
|
|
3603
|
+
return d.every(({
|
|
3574
3604
|
index: M
|
|
3575
3605
|
}) => {
|
|
3576
|
-
const b =
|
|
3606
|
+
const b = g.filter((P) => P !== M);
|
|
3577
3607
|
return c(b, o) <= 0.1;
|
|
3578
3608
|
});
|
|
3579
3609
|
}
|
|
3580
3610
|
function _() {
|
|
3581
|
-
|
|
3611
|
+
d.forEach((M) => {
|
|
3582
3612
|
const {
|
|
3583
3613
|
target: b,
|
|
3584
3614
|
translate: P,
|
|
@@ -3588,28 +3618,28 @@ function jr(e, o, t, n, r, i, s, u, l) {
|
|
|
3588
3618
|
});
|
|
3589
3619
|
}
|
|
3590
3620
|
function I() {
|
|
3591
|
-
|
|
3621
|
+
d.forEach((M) => M.translate.clear());
|
|
3592
3622
|
}
|
|
3593
3623
|
return {
|
|
3594
3624
|
canLoop: v,
|
|
3595
3625
|
clear: I,
|
|
3596
3626
|
loop: _,
|
|
3597
|
-
loopPoints:
|
|
3627
|
+
loopPoints: d
|
|
3598
3628
|
};
|
|
3599
3629
|
}
|
|
3600
|
-
function
|
|
3630
|
+
function Gr(e, o, t) {
|
|
3601
3631
|
let n, r = !1;
|
|
3602
3632
|
function i(l) {
|
|
3603
3633
|
if (!t) return;
|
|
3604
|
-
function a(
|
|
3605
|
-
for (const f of
|
|
3634
|
+
function a(g) {
|
|
3635
|
+
for (const f of g)
|
|
3606
3636
|
if (f.type === "childList") {
|
|
3607
3637
|
l.reInit(), o.emit("slidesChanged");
|
|
3608
3638
|
break;
|
|
3609
3639
|
}
|
|
3610
3640
|
}
|
|
3611
|
-
n = new MutationObserver((
|
|
3612
|
-
r || (Ke(t) || t(l,
|
|
3641
|
+
n = new MutationObserver((g) => {
|
|
3642
|
+
r || (Ke(t) || t(l, g)) && a(g);
|
|
3613
3643
|
}), n.observe(e, {
|
|
3614
3644
|
childList: !0
|
|
3615
3645
|
});
|
|
@@ -3622,7 +3652,7 @@ function Hr(e, o, t) {
|
|
|
3622
3652
|
destroy: s
|
|
3623
3653
|
};
|
|
3624
3654
|
}
|
|
3625
|
-
function
|
|
3655
|
+
function zr(e, o, t, n) {
|
|
3626
3656
|
const r = {};
|
|
3627
3657
|
let i = null, s = null, u, l = !1;
|
|
3628
3658
|
function a() {
|
|
@@ -3636,7 +3666,7 @@ function Gr(e, o, t, n) {
|
|
|
3636
3666
|
threshold: n
|
|
3637
3667
|
}), o.forEach((p) => u.observe(p));
|
|
3638
3668
|
}
|
|
3639
|
-
function
|
|
3669
|
+
function g() {
|
|
3640
3670
|
u && u.disconnect(), l = !0;
|
|
3641
3671
|
}
|
|
3642
3672
|
function f(p) {
|
|
@@ -3647,7 +3677,7 @@ function Gr(e, o, t, n) {
|
|
|
3647
3677
|
return (p && C || !p && !C) && m.push(h), m;
|
|
3648
3678
|
}, []);
|
|
3649
3679
|
}
|
|
3650
|
-
function
|
|
3680
|
+
function d(p = !0) {
|
|
3651
3681
|
if (p && i) return i;
|
|
3652
3682
|
if (!p && s) return s;
|
|
3653
3683
|
const m = f(p);
|
|
@@ -3655,16 +3685,16 @@ function Gr(e, o, t, n) {
|
|
|
3655
3685
|
}
|
|
3656
3686
|
return {
|
|
3657
3687
|
init: a,
|
|
3658
|
-
destroy:
|
|
3659
|
-
get:
|
|
3688
|
+
destroy: g,
|
|
3689
|
+
get: d
|
|
3660
3690
|
};
|
|
3661
3691
|
}
|
|
3662
|
-
function
|
|
3692
|
+
function Br(e, o, t, n, r, i) {
|
|
3663
3693
|
const {
|
|
3664
3694
|
measureSize: s,
|
|
3665
3695
|
startEdge: u,
|
|
3666
3696
|
endEdge: l
|
|
3667
|
-
} = e, a = t[0] && r,
|
|
3697
|
+
} = e, a = t[0] && r, g = p(), f = m(), d = t.map(s), c = S();
|
|
3668
3698
|
function p() {
|
|
3669
3699
|
if (!a) return 0;
|
|
3670
3700
|
const C = t[0];
|
|
@@ -3677,29 +3707,29 @@ function zr(e, o, t, n, r, i) {
|
|
|
3677
3707
|
}
|
|
3678
3708
|
function S() {
|
|
3679
3709
|
return t.map((C, v, _) => {
|
|
3680
|
-
const I = !v, V =
|
|
3681
|
-
return I ?
|
|
3710
|
+
const I = !v, V = It(_, v);
|
|
3711
|
+
return I ? d[v] + g : V ? d[v] + f : _[v + 1][u] - C[u];
|
|
3682
3712
|
}).map(A);
|
|
3683
3713
|
}
|
|
3684
3714
|
return {
|
|
3685
|
-
slideSizes:
|
|
3715
|
+
slideSizes: d,
|
|
3686
3716
|
slideSizesWithGaps: c,
|
|
3687
|
-
startGap:
|
|
3717
|
+
startGap: g,
|
|
3688
3718
|
endGap: f
|
|
3689
3719
|
};
|
|
3690
3720
|
}
|
|
3691
|
-
function
|
|
3721
|
+
function kr(e, o, t, n, r, i, s, u, l) {
|
|
3692
3722
|
const {
|
|
3693
3723
|
startEdge: a,
|
|
3694
|
-
endEdge:
|
|
3724
|
+
endEdge: g,
|
|
3695
3725
|
direction: f
|
|
3696
|
-
} = e,
|
|
3726
|
+
} = e, d = Ft(t);
|
|
3697
3727
|
function c(h, C) {
|
|
3698
3728
|
return Pe(h).filter((v) => v % C === 0).map((v) => h.slice(v, v + C));
|
|
3699
3729
|
}
|
|
3700
3730
|
function p(h) {
|
|
3701
3731
|
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][
|
|
3732
|
+
const I = ee(C) || 0, V = I === 0, M = v === De(h), b = r[a] - i[I][a], P = r[a] - i[v][g], L = !n && V ? f(s) : 0, $ = !n && M ? f(u) : 0, N = A(P - $ - (b + L));
|
|
3703
3733
|
return _ && N > o + l && C.push(v), M && C.push(h.length), C;
|
|
3704
3734
|
}, []).map((C, v, _) => {
|
|
3705
3735
|
const I = Math.max(_[v - 1] || 0);
|
|
@@ -3707,20 +3737,20 @@ function Br(e, o, t, n, r, i, s, u, l) {
|
|
|
3707
3737
|
}) : [];
|
|
3708
3738
|
}
|
|
3709
3739
|
function m(h) {
|
|
3710
|
-
return
|
|
3740
|
+
return d ? c(h, t) : p(h);
|
|
3711
3741
|
}
|
|
3712
3742
|
return {
|
|
3713
3743
|
groupSlides: m
|
|
3714
3744
|
};
|
|
3715
3745
|
}
|
|
3716
|
-
function
|
|
3746
|
+
function qr(e, o, t, n, r, i, s) {
|
|
3717
3747
|
const {
|
|
3718
3748
|
align: u,
|
|
3719
3749
|
axis: l,
|
|
3720
3750
|
direction: a,
|
|
3721
|
-
startIndex:
|
|
3751
|
+
startIndex: g,
|
|
3722
3752
|
loop: f,
|
|
3723
|
-
duration:
|
|
3753
|
+
duration: d,
|
|
3724
3754
|
dragFree: c,
|
|
3725
3755
|
dragThreshold: p,
|
|
3726
3756
|
inViewThreshold: m,
|
|
@@ -3731,20 +3761,20 @@ function kr(e, o, t, n, r, i, s) {
|
|
|
3731
3761
|
watchSlides: _,
|
|
3732
3762
|
watchDrag: I,
|
|
3733
3763
|
watchFocus: V
|
|
3734
|
-
} = i, M = 2, b =
|
|
3764
|
+
} = i, M = 2, b = Ir(), P = b.measure(o), L = t.map(b.measure), $ = yr(l, a), N = $.measureSize(P), B = Mr(N), E = Rr(u, N), j = !f && !!C, U = f || !!C, {
|
|
3735
3765
|
slideSizes: K,
|
|
3736
3766
|
slideSizesWithGaps: J,
|
|
3737
3767
|
startGap: Y,
|
|
3738
3768
|
endGap: te
|
|
3739
|
-
} =
|
|
3740
|
-
snaps:
|
|
3741
|
-
snapsAligned:
|
|
3742
|
-
} =
|
|
3769
|
+
} = Br($, P, L, t, U, r), X = kr($, N, S, f, P, L, Y, te, M), {
|
|
3770
|
+
snaps: re,
|
|
3771
|
+
snapsAligned: ie
|
|
3772
|
+
} = Or($, E, P, L, X), se = -ee(re) + ee(J), {
|
|
3743
3773
|
snapsContained: Re,
|
|
3744
3774
|
scrollContainLimit: xe
|
|
3745
|
-
} =
|
|
3775
|
+
} = $r(N, se, ie, C, M), k = j ? Re : ie, {
|
|
3746
3776
|
limit: G
|
|
3747
|
-
} =
|
|
3777
|
+
} = Er(se, k, f), le = yn(De(k), g, f), W = le.clone(), O = Pe(t), R = ({
|
|
3748
3778
|
dragHandler: Ce,
|
|
3749
3779
|
scrollBody: Je,
|
|
3750
3780
|
scrollBounds: Ye,
|
|
@@ -3763,19 +3793,19 @@ function kr(e, o, t, n, r, i, s) {
|
|
|
3763
3793
|
slideLooper: bn,
|
|
3764
3794
|
dragHandler: Pn,
|
|
3765
3795
|
animation: $n,
|
|
3766
|
-
eventHandler:
|
|
3796
|
+
eventHandler: $t,
|
|
3767
3797
|
scrollBounds: En,
|
|
3768
3798
|
options: {
|
|
3769
|
-
loop:
|
|
3799
|
+
loop: Et
|
|
3770
3800
|
}
|
|
3771
|
-
},
|
|
3772
|
-
const
|
|
3773
|
-
|
|
3774
|
-
const Ln = Ye.get() *
|
|
3775
|
-
Le.set(Ln),
|
|
3776
|
-
}, T =
|
|
3777
|
-
slideRegistry:
|
|
3778
|
-
} =
|
|
3801
|
+
}, Dt) => {
|
|
3802
|
+
const Lt = Ce.settled(), Dn = !En.shouldConstrain(), Ot = Et ? Lt : Lt && Dn, At = Ot && !Pn.pointerDown();
|
|
3803
|
+
At && $n.stop();
|
|
3804
|
+
const Ln = Ye.get() * Dt + Mn.get() * (1 - Dt);
|
|
3805
|
+
Le.set(Ln), Et && (Vn.loop(Ce.direction()), bn.loop()), Je.to(Le.get()), At && $t.emit("settle"), Ot || $t.emit("scroll");
|
|
3806
|
+
}, T = xr(n, r, () => R(Qe), (Ce) => D(Qe, Ce)), z = 0.68, ne = k[le.get()], ue = _e(ne), me = _e(ne), de = _e(ne), he = _e(ne), ye = br(ue, de, me, he, d, z), Xe = Nr(f, k, se, G, he), We = Tr(T, le, W, ye, Xe, he, s), Vt = Lr(G), bt = Ee(), _n = zr(o, t, s, m), {
|
|
3807
|
+
slideRegistry: Pt
|
|
3808
|
+
} = Ar(j, C, k, xe, X, O), In = jr(e, t, Pt, We, ye, bt, s, V), Qe = {
|
|
3779
3809
|
ownerDocument: n,
|
|
3780
3810
|
ownerWindow: r,
|
|
3781
3811
|
eventHandler: s,
|
|
@@ -3783,38 +3813,38 @@ function kr(e, o, t, n, r, i, s) {
|
|
|
3783
3813
|
slideRects: L,
|
|
3784
3814
|
animation: T,
|
|
3785
3815
|
axis: $,
|
|
3786
|
-
dragHandler:
|
|
3787
|
-
eventStore:
|
|
3816
|
+
dragHandler: Fr($, e, n, r, he, _r($, r), ue, T, We, ye, Xe, le, s, B, c, p, h, z, I),
|
|
3817
|
+
eventStore: bt,
|
|
3788
3818
|
percentOfView: B,
|
|
3789
|
-
index:
|
|
3819
|
+
index: le,
|
|
3790
3820
|
indexPrevious: W,
|
|
3791
3821
|
limit: G,
|
|
3792
|
-
location:
|
|
3793
|
-
offsetLocation:
|
|
3794
|
-
previousLocation:
|
|
3822
|
+
location: ue,
|
|
3823
|
+
offsetLocation: de,
|
|
3824
|
+
previousLocation: me,
|
|
3795
3825
|
options: i,
|
|
3796
|
-
resizeHandler:
|
|
3826
|
+
resizeHandler: Vr(o, s, r, t, $, v, b),
|
|
3797
3827
|
scrollBody: ye,
|
|
3798
|
-
scrollBounds:
|
|
3799
|
-
scrollLooper:
|
|
3800
|
-
scrollProgress:
|
|
3801
|
-
scrollSnapList: k.map(
|
|
3828
|
+
scrollBounds: Pr(G, de, he, ye, B),
|
|
3829
|
+
scrollLooper: Dr(se, G, de, [ue, de, me, he]),
|
|
3830
|
+
scrollProgress: Vt,
|
|
3831
|
+
scrollSnapList: k.map(Vt.get),
|
|
3802
3832
|
scrollSnaps: k,
|
|
3803
3833
|
scrollTarget: Xe,
|
|
3804
3834
|
scrollTo: We,
|
|
3805
|
-
slideLooper:
|
|
3835
|
+
slideLooper: Hr($, N, se, K, J, re, k, de, t),
|
|
3806
3836
|
slideFocus: In,
|
|
3807
|
-
slidesHandler:
|
|
3837
|
+
slidesHandler: Gr(o, s, _),
|
|
3808
3838
|
slidesInView: _n,
|
|
3809
3839
|
slideIndexes: O,
|
|
3810
|
-
slideRegistry:
|
|
3840
|
+
slideRegistry: Pt,
|
|
3811
3841
|
slidesToScroll: X,
|
|
3812
|
-
target:
|
|
3842
|
+
target: he,
|
|
3813
3843
|
translate: Fn($, o)
|
|
3814
3844
|
};
|
|
3815
3845
|
return Qe;
|
|
3816
3846
|
}
|
|
3817
|
-
function
|
|
3847
|
+
function Ur() {
|
|
3818
3848
|
let e = {}, o;
|
|
3819
3849
|
function t(a) {
|
|
3820
3850
|
o = a;
|
|
@@ -3823,13 +3853,13 @@ function qr() {
|
|
|
3823
3853
|
return e[a] || [];
|
|
3824
3854
|
}
|
|
3825
3855
|
function r(a) {
|
|
3826
|
-
return n(a).forEach((
|
|
3856
|
+
return n(a).forEach((g) => g(o, a)), l;
|
|
3827
3857
|
}
|
|
3828
|
-
function i(a,
|
|
3829
|
-
return e[a] = n(a).concat([
|
|
3858
|
+
function i(a, g) {
|
|
3859
|
+
return e[a] = n(a).concat([g]), l;
|
|
3830
3860
|
}
|
|
3831
|
-
function s(a,
|
|
3832
|
-
return e[a] = n(a).filter((f) => f !==
|
|
3861
|
+
function s(a, g) {
|
|
3862
|
+
return e[a] = n(a).filter((f) => f !== g), l;
|
|
3833
3863
|
}
|
|
3834
3864
|
function u() {
|
|
3835
3865
|
e = {};
|
|
@@ -3843,7 +3873,7 @@ function qr() {
|
|
|
3843
3873
|
};
|
|
3844
3874
|
return l;
|
|
3845
3875
|
}
|
|
3846
|
-
const
|
|
3876
|
+
const Kr = {
|
|
3847
3877
|
align: "center",
|
|
3848
3878
|
axis: "x",
|
|
3849
3879
|
container: null,
|
|
@@ -3865,7 +3895,7 @@ const Ur = {
|
|
|
3865
3895
|
watchSlides: !0,
|
|
3866
3896
|
watchFocus: !0
|
|
3867
3897
|
};
|
|
3868
|
-
function
|
|
3898
|
+
function Xr(e) {
|
|
3869
3899
|
function o(i, s) {
|
|
3870
3900
|
return xn(i, s || {});
|
|
3871
3901
|
}
|
|
@@ -3882,7 +3912,7 @@ function Kr(e) {
|
|
|
3882
3912
|
optionsMediaQueries: n
|
|
3883
3913
|
};
|
|
3884
3914
|
}
|
|
3885
|
-
function
|
|
3915
|
+
function Wr(e) {
|
|
3886
3916
|
let o = [];
|
|
3887
3917
|
function t(i, s) {
|
|
3888
3918
|
return o = s.filter(({
|
|
@@ -3900,27 +3930,27 @@ function Xr(e) {
|
|
|
3900
3930
|
};
|
|
3901
3931
|
}
|
|
3902
3932
|
function Ge(e, o, t) {
|
|
3903
|
-
const n = e.ownerDocument, r = n.defaultView, i =
|
|
3933
|
+
const n = e.ownerDocument, r = n.defaultView, i = Xr(r), s = Wr(i), u = Ee(), l = Ur(), {
|
|
3904
3934
|
mergeOptions: a,
|
|
3905
|
-
optionsAtMedia:
|
|
3935
|
+
optionsAtMedia: g,
|
|
3906
3936
|
optionsMediaQueries: f
|
|
3907
3937
|
} = i, {
|
|
3908
|
-
on:
|
|
3938
|
+
on: d,
|
|
3909
3939
|
off: c,
|
|
3910
3940
|
emit: p
|
|
3911
3941
|
} = l, m = $;
|
|
3912
|
-
let S = !1, h, C = a(
|
|
3942
|
+
let S = !1, h, C = a(Kr, Ge.globalOptions), v = a(C), _ = [], I, V, M;
|
|
3913
3943
|
function b() {
|
|
3914
3944
|
const {
|
|
3915
3945
|
container: O,
|
|
3916
3946
|
slides: R
|
|
3917
3947
|
} = v;
|
|
3918
|
-
V = (
|
|
3919
|
-
const T =
|
|
3948
|
+
V = (pt(O) ? e.querySelector(O) : O) || e.children[0];
|
|
3949
|
+
const T = pt(R) ? V.querySelectorAll(R) : R;
|
|
3920
3950
|
M = [].slice.call(T || V.children);
|
|
3921
3951
|
}
|
|
3922
3952
|
function P(O) {
|
|
3923
|
-
const R =
|
|
3953
|
+
const R = qr(e, V, M, n, r, O, l);
|
|
3924
3954
|
if (O.loop && !R.slideLooper.canLoop()) {
|
|
3925
3955
|
const D = Object.assign({}, O, {
|
|
3926
3956
|
loop: !1
|
|
@@ -3930,7 +3960,7 @@ function Ge(e, o, t) {
|
|
|
3930
3960
|
return R;
|
|
3931
3961
|
}
|
|
3932
3962
|
function L(O, R) {
|
|
3933
|
-
S || (C = a(C, O), v =
|
|
3963
|
+
S || (C = a(C, O), v = g(C), _ = R || _, b(), h = P(v), f([C, ..._.map(({
|
|
3934
3964
|
options: D
|
|
3935
3965
|
}) => 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
3966
|
}
|
|
@@ -3972,13 +4002,13 @@ function Ge(e, o, t) {
|
|
|
3972
4002
|
function X() {
|
|
3973
4003
|
return h.index.get();
|
|
3974
4004
|
}
|
|
3975
|
-
function
|
|
4005
|
+
function re() {
|
|
3976
4006
|
return h.indexPrevious.get();
|
|
3977
4007
|
}
|
|
3978
|
-
function
|
|
4008
|
+
function ie() {
|
|
3979
4009
|
return h.slidesInView.get();
|
|
3980
4010
|
}
|
|
3981
|
-
function
|
|
4011
|
+
function se() {
|
|
3982
4012
|
return h.slidesInView.get(!1);
|
|
3983
4013
|
}
|
|
3984
4014
|
function Re() {
|
|
@@ -3993,7 +4023,7 @@ function Ge(e, o, t) {
|
|
|
3993
4023
|
function G() {
|
|
3994
4024
|
return V;
|
|
3995
4025
|
}
|
|
3996
|
-
function
|
|
4026
|
+
function le() {
|
|
3997
4027
|
return M;
|
|
3998
4028
|
}
|
|
3999
4029
|
const W = {
|
|
@@ -4003,10 +4033,10 @@ function Ge(e, o, t) {
|
|
|
4003
4033
|
internalEngine: xe,
|
|
4004
4034
|
destroy: B,
|
|
4005
4035
|
off: c,
|
|
4006
|
-
on:
|
|
4036
|
+
on: d,
|
|
4007
4037
|
emit: p,
|
|
4008
4038
|
plugins: Re,
|
|
4009
|
-
previousScrollSnap:
|
|
4039
|
+
previousScrollSnap: re,
|
|
4010
4040
|
reInit: m,
|
|
4011
4041
|
rootNode: k,
|
|
4012
4042
|
scrollNext: j,
|
|
@@ -4015,33 +4045,33 @@ function Ge(e, o, t) {
|
|
|
4015
4045
|
scrollSnapList: Y,
|
|
4016
4046
|
scrollTo: E,
|
|
4017
4047
|
selectedScrollSnap: X,
|
|
4018
|
-
slideNodes:
|
|
4019
|
-
slidesInView:
|
|
4020
|
-
slidesNotInView:
|
|
4048
|
+
slideNodes: le,
|
|
4049
|
+
slidesInView: ie,
|
|
4050
|
+
slidesNotInView: se
|
|
4021
4051
|
};
|
|
4022
4052
|
return L(o, t), setTimeout(() => l.emit("init"), 0), W;
|
|
4023
4053
|
}
|
|
4024
4054
|
Ge.globalOptions = void 0;
|
|
4025
|
-
function
|
|
4026
|
-
const t =
|
|
4055
|
+
function Mt(e = {}, o = []) {
|
|
4056
|
+
const t = lt(e), n = lt(o), [r, i] = oe(), [s, u] = oe(), l = Se(() => {
|
|
4027
4057
|
r && r.reInit(t.current, n.current);
|
|
4028
4058
|
}, [r]);
|
|
4029
4059
|
return ve(() => {
|
|
4030
|
-
|
|
4060
|
+
yt(t.current, e) || (t.current = e, l());
|
|
4031
4061
|
}, [e, l]), ve(() => {
|
|
4032
|
-
|
|
4062
|
+
wr(n.current, o) || (n.current = o, l());
|
|
4033
4063
|
}, [o, l]), ve(() => {
|
|
4034
|
-
if (
|
|
4035
|
-
Ge.globalOptions =
|
|
4064
|
+
if (Sr() && s) {
|
|
4065
|
+
Ge.globalOptions = Mt.globalOptions;
|
|
4036
4066
|
const a = Ge(s, t.current, n.current);
|
|
4037
4067
|
return i(a), () => a.destroy();
|
|
4038
4068
|
} else
|
|
4039
4069
|
i(void 0);
|
|
4040
4070
|
}, [s, i]), [u, r];
|
|
4041
4071
|
}
|
|
4042
|
-
|
|
4043
|
-
const
|
|
4044
|
-
const [t, n] =
|
|
4072
|
+
Mt.globalOptions = void 0;
|
|
4073
|
+
const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
4074
|
+
const [t, n] = Mt(e, [xt(o)]), r = Se((i) => {
|
|
4045
4075
|
var l;
|
|
4046
4076
|
const s = (l = i == null ? void 0 : i.plugins()) == null ? void 0 : l.autoplay;
|
|
4047
4077
|
if (!s) return;
|
|
@@ -4070,7 +4100,7 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4070
4100
|
t
|
|
4071
4101
|
]
|
|
4072
4102
|
}
|
|
4073
|
-
),
|
|
4103
|
+
), Jr = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */ w.jsx(
|
|
4074
4104
|
"div",
|
|
4075
4105
|
{
|
|
4076
4106
|
className: F(
|
|
@@ -4099,13 +4129,13 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4099
4129
|
}
|
|
4100
4130
|
), qt = Q(
|
|
4101
4131
|
({ visibleIndex: e, classes: o, children: t, dotsProps: n, dotsOptions: r }, i) => {
|
|
4102
|
-
const { isMobile: s, isDesktop: u } = ke(), { mobVisible: l, deskVisible: a, ...
|
|
4132
|
+
const { isMobile: s, isDesktop: u } = ke(), { mobVisible: l, deskVisible: a, ...g } = r ?? {}, f = l && s, d = a && u, c = {
|
|
4103
4133
|
visibleIndex: e,
|
|
4104
4134
|
...n
|
|
4105
4135
|
};
|
|
4106
4136
|
return /* @__PURE__ */ w.jsxs("div", { className: F("mx-auto overflow-hidden", o == null ? void 0 : o.slidesOverlay), ref: i, children: [
|
|
4107
4137
|
/* @__PURE__ */ w.jsx("div", { className: F("flex touch-pan-y gap-6", o == null ? void 0 : o.slidesWrapper), children: t }),
|
|
4108
|
-
(
|
|
4138
|
+
(d || f) && /* @__PURE__ */ w.jsx(Jr, { ...c, ...g })
|
|
4109
4139
|
] });
|
|
4110
4140
|
}
|
|
4111
4141
|
), Ut = {
|
|
@@ -4121,9 +4151,9 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4121
4151
|
position: "top-right",
|
|
4122
4152
|
deskVisible: !0,
|
|
4123
4153
|
mobVisible: !1
|
|
4124
|
-
},
|
|
4154
|
+
}, Yr = {
|
|
4125
4155
|
active: !0
|
|
4126
|
-
},
|
|
4156
|
+
}, Zr = ({
|
|
4127
4157
|
children: e,
|
|
4128
4158
|
prevBtnDisabled: o,
|
|
4129
4159
|
nextBtnDisabled: t,
|
|
@@ -4158,7 +4188,7 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4158
4188
|
}
|
|
4159
4189
|
)
|
|
4160
4190
|
] });
|
|
4161
|
-
},
|
|
4191
|
+
}, Ci = ({
|
|
4162
4192
|
dotsOptions: e = Kt,
|
|
4163
4193
|
navArrowOptions: o = Xt,
|
|
4164
4194
|
carouselOptions: t = Ut,
|
|
@@ -4170,13 +4200,13 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4170
4200
|
classes: l,
|
|
4171
4201
|
...a
|
|
4172
4202
|
}) => {
|
|
4173
|
-
const
|
|
4174
|
-
carouselOptions:
|
|
4203
|
+
const g = { ...Ut, ...t }, f = { ...Yr, ...r }, d = { ...Xt, ...o }, c = { ...Kt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = Qr({
|
|
4204
|
+
carouselOptions: g,
|
|
4175
4205
|
autoPlayOptions: f
|
|
4176
|
-
}), h =
|
|
4206
|
+
}), h = gr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: C, nextBtnDisabled: v, onClickNavigationButton: _ } = dr({
|
|
4177
4207
|
emblaApi: p,
|
|
4178
4208
|
navigationHandler: m
|
|
4179
|
-
}), { isMobile: I, isDesktop: V } = ke(), { deskVisible: M, mobVisible: b, position: P } =
|
|
4209
|
+
}), { isMobile: I, isDesktop: V } = ke(), { deskVisible: M, mobVisible: b, position: P } = d ?? {}, N = M && V || b && I, B = !!n || N && P === "top-right";
|
|
4180
4210
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex flex-col", l == null ? void 0 : l.root), ...a, children: [
|
|
4181
4211
|
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
4212
|
!!n && /* @__PURE__ */ w.jsx(qn, { as: "h2", className: F(l == null ? void 0 : l.heading), children: "Другие предложения" }),
|
|
@@ -4202,7 +4232,7 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4202
4232
|
] })
|
|
4203
4233
|
] }),
|
|
4204
4234
|
N && P === "center" ? /* @__PURE__ */ w.jsx(
|
|
4205
|
-
|
|
4235
|
+
Zr,
|
|
4206
4236
|
{
|
|
4207
4237
|
onClickNavigationButton: _,
|
|
4208
4238
|
prevBtnDisabled: C,
|
|
@@ -4232,7 +4262,7 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4232
4262
|
}
|
|
4233
4263
|
)
|
|
4234
4264
|
] });
|
|
4235
|
-
},
|
|
4265
|
+
}, vi = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
4236
4266
|
const { toasts: t } = Un();
|
|
4237
4267
|
return ve(() => {
|
|
4238
4268
|
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => Kn.dismiss(n.id));
|
|
@@ -4245,7 +4275,7 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4245
4275
|
}
|
|
4246
4276
|
}
|
|
4247
4277
|
);
|
|
4248
|
-
},
|
|
4278
|
+
}, Ri = ({ 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(
|
|
4249
4279
|
"div",
|
|
4250
4280
|
{
|
|
4251
4281
|
className: F(
|
|
@@ -4275,24 +4305,24 @@ const Wr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4275
4305
|
)
|
|
4276
4306
|
]
|
|
4277
4307
|
}
|
|
4278
|
-
) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }),
|
|
4308
|
+
) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), ei = ({ children: e }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: e }), ht = Q(({ children: e, ...o }, t) => {
|
|
4279
4309
|
if (je(e)) {
|
|
4280
|
-
const n =
|
|
4310
|
+
const n = ni(e);
|
|
4281
4311
|
return Qt(e, {
|
|
4282
|
-
...
|
|
4312
|
+
...oi(o, e.props),
|
|
4283
4313
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4284
4314
|
// @ts-expect-error
|
|
4285
|
-
ref: t ?
|
|
4315
|
+
ref: t ? Qn(t, n) : n
|
|
4286
4316
|
});
|
|
4287
4317
|
}
|
|
4288
4318
|
return Ie.count(e) > 1 ? Ie.only(null) : null;
|
|
4289
4319
|
});
|
|
4290
|
-
|
|
4291
|
-
const
|
|
4320
|
+
ht.displayName = "SlotClone";
|
|
4321
|
+
const ti = (e) => je(e) && e.type === ei, ni = (e) => {
|
|
4292
4322
|
var n, r;
|
|
4293
4323
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
|
|
4294
4324
|
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);
|
|
4295
|
-
},
|
|
4325
|
+
}, oi = (e, o) => {
|
|
4296
4326
|
const t = { ...o };
|
|
4297
4327
|
for (const n in o) {
|
|
4298
4328
|
const r = e[n], i = o[n];
|
|
@@ -4301,64 +4331,65 @@ const ei = (e) => je(e) && e.type === Zr, ti = (e) => {
|
|
|
4301
4331
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
4302
4332
|
}
|
|
4303
4333
|
return { ...e, ...t };
|
|
4304
|
-
},
|
|
4305
|
-
const n = Ie.toArray(e), r = n.find(
|
|
4334
|
+
}, ri = Q(({ children: e, ...o }, t) => {
|
|
4335
|
+
const n = Ie.toArray(e), r = n.find(ti);
|
|
4306
4336
|
if (r) {
|
|
4307
4337
|
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(
|
|
4338
|
+
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: je(i) ? Qt(i, void 0, s) : null });
|
|
4309
4339
|
}
|
|
4310
|
-
return /* @__PURE__ */ w.jsx(
|
|
4340
|
+
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: e });
|
|
4311
4341
|
});
|
|
4312
|
-
|
|
4342
|
+
ri.displayName = "Slot";
|
|
4313
4343
|
export {
|
|
4314
4344
|
kn as Accordion,
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4345
|
+
Fi as Badge,
|
|
4346
|
+
Ri as Breadcrumbs,
|
|
4347
|
+
ge as Button,
|
|
4348
|
+
ci as ButtonIcon,
|
|
4349
|
+
_i as Calendar,
|
|
4350
|
+
Ci as CarouselBase,
|
|
4351
|
+
Ii as Controlled,
|
|
4352
|
+
Mi as CustomLink,
|
|
4353
|
+
Bi as DATE_VISIBLE_PATTERN,
|
|
4354
|
+
Si as DataTable,
|
|
4355
|
+
so as DataTableColumnHeader,
|
|
4356
|
+
hi as EditableCell,
|
|
4357
|
+
gi as FloatButton,
|
|
4327
4358
|
qn as Heading,
|
|
4328
|
-
|
|
4359
|
+
Vi as Hint,
|
|
4329
4360
|
be as Icon,
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4361
|
+
bi as KeyboardShortcuts,
|
|
4362
|
+
Pi as Loader,
|
|
4363
|
+
$i as Modal,
|
|
4364
|
+
Ei as Notification,
|
|
4365
|
+
vi as NotificationProvider,
|
|
4366
|
+
lr as Pagination,
|
|
4367
|
+
Di as PhoneView,
|
|
4368
|
+
Li as Popover,
|
|
4369
|
+
Oi as ProgressBar,
|
|
4339
4370
|
An as ResponsiveContainer,
|
|
4340
|
-
|
|
4341
|
-
|
|
4371
|
+
di as Skeleton,
|
|
4372
|
+
ri as Slot,
|
|
4342
4373
|
un as Table,
|
|
4343
4374
|
cn as TableBody,
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4375
|
+
io as TableCaption,
|
|
4376
|
+
ut as TableCell,
|
|
4377
|
+
ro as TableFooter,
|
|
4347
4378
|
dn as TableHead,
|
|
4348
4379
|
an as TableHeader,
|
|
4349
4380
|
Te as TableRow,
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4381
|
+
wi as TableUtils,
|
|
4382
|
+
mi as TabsSwitcher,
|
|
4383
|
+
Ai as Uncontrolled,
|
|
4384
|
+
fi as allowedIcons,
|
|
4385
|
+
Ni as brandLogos,
|
|
4386
|
+
Ti as buttonPrimitiveIntent,
|
|
4387
|
+
ji as buttonPrimitiveSize,
|
|
4388
|
+
Hi as buttonPrimitiveTextFormat,
|
|
4389
|
+
ki as defaultClassNames,
|
|
4390
|
+
qi as formatDateToLocaleString,
|
|
4391
|
+
Ui as formatDateToMonthString,
|
|
4392
|
+
Ki as formatDateToYearString,
|
|
4393
|
+
Gi as isSingleOption
|
|
4363
4394
|
};
|
|
4364
4395
|
//# sourceMappingURL=ui.js.map
|