@scbt-ecom/ui 0.72.0 → 0.74.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-CrR6G9lz.js +446 -0
- package/dist/index-CrR6G9lz.js.map +1 -0
- package/dist/{index-CXVnBzNh.js → index-HbdkFbuN.js} +1809 -1808
- package/dist/index-HbdkFbuN.js.map +1 -0
- package/dist/shared/ui/icon/allowedIcons.d.ts +2 -2
- package/dist/shared/ui/icon/iconsMap.d.ts +6 -0
- package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
- package/dist/shared/ui/table/Desktop.d.ts +2 -2
- package/dist/shared/ui/table/Mobile.d.ts +1 -1
- 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 +6 -3
- package/dist/shared/validation/base/base.constants.d.ts +1 -0
- package/dist/shared/validation/base/base.validators.d.ts +2 -0
- package/dist/shared/validation/base/regex.validators.d.ts +21 -0
- package/dist/shared/validation/index.d.ts +1 -0
- package/dist/sprites/general.svg +1 -1
- package/dist/static/static/general/search.svg +3 -0
- package/dist/ui.js +431 -416
- package/dist/ui.js.map +1 -1
- package/dist/validation.js +1 -1
- package/dist/widget.js +2 -2
- package/package.json +1 -1
- package/dist/index-CXVnBzNh.js.map +0 -1
- package/dist/index-lfBvBrWg.js +0 -436
- package/dist/index-lfBvBrWg.js.map +0 -1
package/dist/ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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-
|
|
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 ke, e as Wt, f as Gn, I as zn, g as et, h as Bn, A as kn, i as be, H as qn, D as Un, V as Kn, O as Xn } from "./index-HbdkFbuN.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-HbdkFbuN.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
|
-
import { forwardRef as Q, useState as oe, useRef as
|
|
4
|
+
import { forwardRef as Q, useState as oe, useRef as je, useCallback as Se, useEffect as ve, isValidElement as He, cloneElement as Qt, Children as Ie } from "react";
|
|
5
5
|
import { c as F, T as Nt } from "./typeGuards-CSiImkUY.js";
|
|
6
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
|
|
7
|
+
import { u as qe, a as Wn } from "./useDebounce-B__kmLt7.js";
|
|
8
8
|
import { m as Qn } from "./mergeRefs-qDToYXtM.js";
|
|
9
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",
|
|
@@ -93,6 +93,7 @@ const Jn = On(
|
|
|
93
93
|
"general/menu",
|
|
94
94
|
"general/plus",
|
|
95
95
|
"general/reorder",
|
|
96
|
+
"general/search",
|
|
96
97
|
"general/shield",
|
|
97
98
|
"general/showEye"
|
|
98
99
|
],
|
|
@@ -157,6 +158,7 @@ const Jn = On(
|
|
|
157
158
|
"general/menu",
|
|
158
159
|
"general/plus",
|
|
159
160
|
"general/reorder",
|
|
161
|
+
"general/search",
|
|
160
162
|
"general/shield",
|
|
161
163
|
"general/showEye",
|
|
162
164
|
"info/helpCircle",
|
|
@@ -173,9 +175,9 @@ const Jn = On(
|
|
|
173
175
|
"status/iconUser"
|
|
174
176
|
]
|
|
175
177
|
};
|
|
176
|
-
var
|
|
178
|
+
var Ue = "Tabs", [Yn, pi] = jn(Ue, [
|
|
177
179
|
Wt
|
|
178
|
-
]), Jt = Wt(), [Zn, St] = Yn(
|
|
180
|
+
]), Jt = Wt(), [Zn, St] = Yn(Ue), Yt = ce.forwardRef(
|
|
179
181
|
(e, o) => {
|
|
180
182
|
const {
|
|
181
183
|
__scopeTabs: t,
|
|
@@ -186,11 +188,11 @@ var qe = "Tabs", [Yn, pi] = jn(qe, [
|
|
|
186
188
|
dir: u,
|
|
187
189
|
activationMode: l = "automatic",
|
|
188
190
|
...a
|
|
189
|
-
} = e,
|
|
191
|
+
} = e, d = Nn(u), [f, g] = Tn({
|
|
190
192
|
prop: n,
|
|
191
193
|
onChange: r,
|
|
192
194
|
defaultProp: i ?? "",
|
|
193
|
-
caller:
|
|
195
|
+
caller: Ue
|
|
194
196
|
});
|
|
195
197
|
return /* @__PURE__ */ w.jsx(
|
|
196
198
|
Zn,
|
|
@@ -198,14 +200,14 @@ var qe = "Tabs", [Yn, pi] = jn(qe, [
|
|
|
198
200
|
scope: t,
|
|
199
201
|
baseId: Hn(),
|
|
200
202
|
value: f,
|
|
201
|
-
onValueChange:
|
|
203
|
+
onValueChange: g,
|
|
202
204
|
orientation: s,
|
|
203
|
-
dir:
|
|
205
|
+
dir: d,
|
|
204
206
|
activationMode: l,
|
|
205
207
|
children: /* @__PURE__ */ w.jsx(
|
|
206
|
-
|
|
208
|
+
ke.div,
|
|
207
209
|
{
|
|
208
|
-
dir:
|
|
210
|
+
dir: d,
|
|
209
211
|
"data-orientation": s,
|
|
210
212
|
...a,
|
|
211
213
|
ref: o
|
|
@@ -215,7 +217,7 @@ var qe = "Tabs", [Yn, pi] = jn(qe, [
|
|
|
215
217
|
);
|
|
216
218
|
}
|
|
217
219
|
);
|
|
218
|
-
Yt.displayName =
|
|
220
|
+
Yt.displayName = Ue;
|
|
219
221
|
var Zt = "TabsList", en = ce.forwardRef(
|
|
220
222
|
(e, o) => {
|
|
221
223
|
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(Zt, t), s = Jt(t);
|
|
@@ -228,7 +230,7 @@ var Zt = "TabsList", en = ce.forwardRef(
|
|
|
228
230
|
dir: i.dir,
|
|
229
231
|
loop: n,
|
|
230
232
|
children: /* @__PURE__ */ w.jsx(
|
|
231
|
-
|
|
233
|
+
ke.div,
|
|
232
234
|
{
|
|
233
235
|
role: "tablist",
|
|
234
236
|
"aria-orientation": i.orientation,
|
|
@@ -243,36 +245,36 @@ var Zt = "TabsList", en = ce.forwardRef(
|
|
|
243
245
|
en.displayName = Zt;
|
|
244
246
|
var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
245
247
|
(e, o) => {
|
|
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),
|
|
248
|
+
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), d = n === s.value;
|
|
247
249
|
return /* @__PURE__ */ w.jsx(
|
|
248
250
|
zn,
|
|
249
251
|
{
|
|
250
252
|
asChild: !0,
|
|
251
253
|
...u,
|
|
252
254
|
focusable: !r,
|
|
253
|
-
active:
|
|
255
|
+
active: d,
|
|
254
256
|
children: /* @__PURE__ */ w.jsx(
|
|
255
|
-
|
|
257
|
+
ke.button,
|
|
256
258
|
{
|
|
257
259
|
type: "button",
|
|
258
260
|
role: "tab",
|
|
259
|
-
"aria-selected":
|
|
261
|
+
"aria-selected": d,
|
|
260
262
|
"aria-controls": a,
|
|
261
|
-
"data-state":
|
|
263
|
+
"data-state": d ? "active" : "inactive",
|
|
262
264
|
"data-disabled": r ? "" : void 0,
|
|
263
265
|
disabled: r,
|
|
264
266
|
id: l,
|
|
265
267
|
...i,
|
|
266
268
|
ref: o,
|
|
267
|
-
onMouseDown:
|
|
269
|
+
onMouseDown: et(e.onMouseDown, (f) => {
|
|
268
270
|
!r && f.button === 0 && f.ctrlKey === !1 ? s.onValueChange(n) : f.preventDefault();
|
|
269
271
|
}),
|
|
270
|
-
onKeyDown:
|
|
272
|
+
onKeyDown: et(e.onKeyDown, (f) => {
|
|
271
273
|
[" ", "Enter"].includes(f.key) && s.onValueChange(n);
|
|
272
274
|
}),
|
|
273
|
-
onFocus:
|
|
275
|
+
onFocus: et(e.onFocus, () => {
|
|
274
276
|
const f = s.activationMode !== "manual";
|
|
275
|
-
!
|
|
277
|
+
!d && !r && f && s.onValueChange(n);
|
|
276
278
|
})
|
|
277
279
|
}
|
|
278
280
|
)
|
|
@@ -283,18 +285,18 @@ var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
|
283
285
|
nn.displayName = tn;
|
|
284
286
|
var on = "TabsContent", rn = ce.forwardRef(
|
|
285
287
|
(e, o) => {
|
|
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),
|
|
288
|
+
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), d = n === u.value, f = ce.useRef(d);
|
|
287
289
|
return ce.useEffect(() => {
|
|
288
|
-
const
|
|
289
|
-
return () => cancelAnimationFrame(
|
|
290
|
-
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r ||
|
|
291
|
-
|
|
290
|
+
const g = requestAnimationFrame(() => f.current = !1);
|
|
291
|
+
return () => cancelAnimationFrame(g);
|
|
292
|
+
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r || d, children: ({ present: g }) => /* @__PURE__ */ w.jsx(
|
|
293
|
+
ke.div,
|
|
292
294
|
{
|
|
293
|
-
"data-state":
|
|
295
|
+
"data-state": d ? "active" : "inactive",
|
|
294
296
|
"data-orientation": u.orientation,
|
|
295
297
|
role: "tabpanel",
|
|
296
298
|
"aria-labelledby": l,
|
|
297
|
-
hidden: !
|
|
299
|
+
hidden: !g,
|
|
298
300
|
id: a,
|
|
299
301
|
tabIndex: 0,
|
|
300
302
|
...s,
|
|
@@ -303,7 +305,7 @@ var on = "TabsContent", rn = ce.forwardRef(
|
|
|
303
305
|
...e.style,
|
|
304
306
|
animationDuration: f.current ? "0s" : void 0
|
|
305
307
|
},
|
|
306
|
-
children:
|
|
308
|
+
children: g && i
|
|
307
309
|
}
|
|
308
310
|
) });
|
|
309
311
|
}
|
|
@@ -366,17 +368,17 @@ const so = ({
|
|
|
366
368
|
isSorted: r,
|
|
367
369
|
classes: i
|
|
368
370
|
}) => {
|
|
369
|
-
const { root: s, content: u, icon: l } = i || {}, { isDesktop: a } =
|
|
371
|
+
const { root: s, content: u, icon: l } = i || {}, { isDesktop: a } = qe(), d = o && a;
|
|
370
372
|
return /* @__PURE__ */ w.jsxs(
|
|
371
373
|
"button",
|
|
372
374
|
{
|
|
373
375
|
type: "button",
|
|
374
376
|
className: F("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", s),
|
|
375
377
|
onClick: () => t(!r),
|
|
376
|
-
disabled: !
|
|
378
|
+
disabled: !d,
|
|
377
379
|
children: [
|
|
378
380
|
/* @__PURE__ */ w.jsx("span", { className: F("", u), children: e }),
|
|
379
|
-
|
|
381
|
+
d && /* @__PURE__ */ w.jsx(
|
|
380
382
|
be,
|
|
381
383
|
{
|
|
382
384
|
name: "arrows/arrowRight",
|
|
@@ -396,27 +398,31 @@ const so = ({
|
|
|
396
398
|
row: e,
|
|
397
399
|
getValue: o,
|
|
398
400
|
update: t,
|
|
399
|
-
target: n
|
|
401
|
+
target: n,
|
|
402
|
+
rowIndex: r = -1
|
|
400
403
|
}) => {
|
|
401
|
-
const [
|
|
402
|
-
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
const [i, s] = oe(!1), [u, l] = oe(o()), a = je(!1), d = je(null), { original: f } = e, g = (p) => {
|
|
405
|
+
l(p.target.value), a.current = !0;
|
|
406
|
+
}, c = () => {
|
|
407
|
+
if (a.current) {
|
|
408
|
+
const p = { ...f, [n]: u };
|
|
409
|
+
t(r, p), a.current = !1;
|
|
410
|
+
}
|
|
411
|
+
s(!1);
|
|
406
412
|
};
|
|
407
|
-
return Wn(
|
|
413
|
+
return Wn(d, c), i ? /* @__PURE__ */ w.jsx(
|
|
408
414
|
"input",
|
|
409
415
|
{
|
|
410
|
-
ref:
|
|
411
|
-
className: "w-full
|
|
416
|
+
ref: d,
|
|
417
|
+
className: "mr-2 w-full outline-none",
|
|
412
418
|
type: "text",
|
|
413
|
-
value:
|
|
419
|
+
value: u,
|
|
414
420
|
onChange: g,
|
|
415
|
-
onKeyDown: (
|
|
416
|
-
|
|
421
|
+
onKeyDown: (p) => {
|
|
422
|
+
p.key === "Enter" && (p.preventDefault(), c());
|
|
417
423
|
}
|
|
418
424
|
}
|
|
419
|
-
) : /* @__PURE__ */ w.jsx("p", { className: "w-full", onClick: () =>
|
|
425
|
+
) : /* @__PURE__ */ w.jsx("p", { className: "w-full", onClick: () => s(!0), children: o() });
|
|
420
426
|
};
|
|
421
427
|
/**
|
|
422
428
|
* table-core
|
|
@@ -452,7 +458,7 @@ function q(e, o) {
|
|
|
452
458
|
}));
|
|
453
459
|
};
|
|
454
460
|
}
|
|
455
|
-
function
|
|
461
|
+
function Ke(e) {
|
|
456
462
|
return e instanceof Function;
|
|
457
463
|
}
|
|
458
464
|
function uo(e) {
|
|
@@ -474,20 +480,20 @@ function x(e, o, t) {
|
|
|
474
480
|
let s;
|
|
475
481
|
t.key && t.debug && (s = Date.now());
|
|
476
482
|
const u = e(i);
|
|
477
|
-
if (!(u.length !== n.length || u.some((
|
|
483
|
+
if (!(u.length !== n.length || u.some((d, f) => n[f] !== d)))
|
|
478
484
|
return r;
|
|
479
485
|
n = u;
|
|
480
486
|
let a;
|
|
481
487
|
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()) {
|
|
482
|
-
const
|
|
488
|
+
const d = Math.round((Date.now() - s) * 100) / 100, f = Math.round((Date.now() - a) * 100) / 100, g = f / 16, c = (p, m) => {
|
|
483
489
|
for (p = String(p); p.length < m; )
|
|
484
490
|
p = " " + p;
|
|
485
491
|
return p;
|
|
486
492
|
};
|
|
487
|
-
console.info(`%c⏱ ${c(f, 5)} /${c(
|
|
493
|
+
console.info(`%c⏱ ${c(f, 5)} /${c(d, 5)} ms`, `
|
|
488
494
|
font-size: .6rem;
|
|
489
495
|
font-weight: bold;
|
|
490
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
496
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
491
497
|
}
|
|
492
498
|
return r;
|
|
493
499
|
};
|
|
@@ -531,38 +537,38 @@ function go(e, o, t, n) {
|
|
|
531
537
|
...e._getDefaultColumnDef(),
|
|
532
538
|
...o
|
|
533
539
|
}, l = u.accessorKey;
|
|
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,
|
|
535
|
-
if (u.accessorFn ?
|
|
536
|
-
let c =
|
|
540
|
+
let a = (r = (i = u.id) != null ? i : l ? typeof String.prototype.replaceAll == "function" ? l.replaceAll(".", "_") : l.replace(/\./g, "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, d;
|
|
541
|
+
if (u.accessorFn ? d = u.accessorFn : l && (l.includes(".") ? d = (g) => {
|
|
542
|
+
let c = g;
|
|
537
543
|
for (const m of l.split(".")) {
|
|
538
544
|
var p;
|
|
539
545
|
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.`);
|
|
540
546
|
}
|
|
541
547
|
return c;
|
|
542
|
-
} :
|
|
548
|
+
} : d = (g) => g[u.accessorKey]), !a)
|
|
543
549
|
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();
|
|
544
550
|
let f = {
|
|
545
551
|
id: `${String(a)}`,
|
|
546
|
-
accessorFn:
|
|
552
|
+
accessorFn: d,
|
|
547
553
|
parent: n,
|
|
548
554
|
depth: t,
|
|
549
555
|
columnDef: u,
|
|
550
556
|
columns: [],
|
|
551
557
|
getFlatColumns: x(() => [!0], () => {
|
|
552
|
-
var
|
|
553
|
-
return [f, ...(
|
|
558
|
+
var g;
|
|
559
|
+
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((c) => c.getFlatColumns())];
|
|
554
560
|
}, y(e.options, "debugColumns", "column.getFlatColumns")),
|
|
555
|
-
getLeafColumns: x(() => [e._getOrderColumnsFn()], (
|
|
561
|
+
getLeafColumns: x(() => [e._getOrderColumnsFn()], (g) => {
|
|
556
562
|
var c;
|
|
557
563
|
if ((c = f.columns) != null && c.length) {
|
|
558
564
|
let p = f.columns.flatMap((m) => m.getLeafColumns());
|
|
559
|
-
return
|
|
565
|
+
return g(p);
|
|
560
566
|
}
|
|
561
567
|
return [f];
|
|
562
568
|
}, y(e.options, "debugColumns", "column.getLeafColumns"))
|
|
563
569
|
};
|
|
564
|
-
for (const
|
|
565
|
-
|
|
570
|
+
for (const g of e._features)
|
|
571
|
+
g.createColumn == null || g.createColumn(f, e);
|
|
566
572
|
return f;
|
|
567
573
|
}
|
|
568
574
|
const H = "debugHeaders";
|
|
@@ -599,7 +605,7 @@ const fo = {
|
|
|
599
605
|
createTable: (e) => {
|
|
600
606
|
e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
601
607
|
var i, s;
|
|
602
|
-
const u = (i = n == null ? void 0 : n.map((f) => t.find((
|
|
608
|
+
const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], l = (s = r == null ? void 0 : r.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? s : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
603
609
|
return Oe(o, [...u, ...a, ...l], e);
|
|
604
610
|
}, 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) => {
|
|
605
611
|
var r;
|
|
@@ -620,28 +626,28 @@ const fo = {
|
|
|
620
626
|
return !((n = t.subHeaders) != null && n.length);
|
|
621
627
|
}), y(e.options, H, "getRightLeafHeaders")), e.getLeafHeaders = x(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
622
628
|
var r, i, s, u, l, a;
|
|
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((
|
|
629
|
+
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(s = (u = t[0]) == null ? void 0 : u.headers) != null ? s : [], ...(l = (a = n[0]) == null ? void 0 : a.headers) != null ? l : []].map((d) => d.getLeafHeaders()).flat();
|
|
624
630
|
}, y(e.options, H, "getLeafHeaders"));
|
|
625
631
|
}
|
|
626
632
|
};
|
|
627
633
|
function Oe(e, o, t, n) {
|
|
628
634
|
var r, i;
|
|
629
635
|
let s = 0;
|
|
630
|
-
const u = function(
|
|
631
|
-
c === void 0 && (c = 1), s = Math.max(s, c),
|
|
636
|
+
const u = function(g, c) {
|
|
637
|
+
c === void 0 && (c = 1), s = Math.max(s, c), g.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
632
638
|
var m;
|
|
633
639
|
(m = p.columns) != null && m.length && u(p.columns, c + 1);
|
|
634
640
|
}, 0);
|
|
635
641
|
};
|
|
636
642
|
u(e);
|
|
637
643
|
let l = [];
|
|
638
|
-
const a = (
|
|
644
|
+
const a = (g, c) => {
|
|
639
645
|
const p = {
|
|
640
646
|
depth: c,
|
|
641
647
|
id: [n, `${c}`].filter(Boolean).join("_"),
|
|
642
648
|
headers: []
|
|
643
649
|
}, m = [];
|
|
644
|
-
|
|
650
|
+
g.forEach((S) => {
|
|
645
651
|
const h = [...m].reverse()[0], C = S.column.depth === p.depth;
|
|
646
652
|
let v, _ = !1;
|
|
647
653
|
if (C && S.column.parent ? v = S.column.parent : (v = S.column, _ = !0), h && (h == null ? void 0 : h.column) === v)
|
|
@@ -658,12 +664,12 @@ function Oe(e, o, t, n) {
|
|
|
658
664
|
}
|
|
659
665
|
p.headers.push(S), S.headerGroup = p;
|
|
660
666
|
}), l.push(p), c > 0 && a(m, c - 1);
|
|
661
|
-
},
|
|
667
|
+
}, d = o.map((g, c) => jt(t, g, {
|
|
662
668
|
depth: s,
|
|
663
669
|
index: c
|
|
664
670
|
}));
|
|
665
|
-
a(
|
|
666
|
-
const f = (
|
|
671
|
+
a(d, s - 1), l.reverse();
|
|
672
|
+
const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
667
673
|
let m = 0, S = 0, h = [0];
|
|
668
674
|
p.subHeaders && p.subHeaders.length ? (h = [], f(p.subHeaders).forEach((v) => {
|
|
669
675
|
let {
|
|
@@ -713,14 +719,14 @@ const wt = (e, o, t, n, r, i, s) => {
|
|
|
713
719
|
getParentRows: () => {
|
|
714
720
|
let l = [], a = u;
|
|
715
721
|
for (; ; ) {
|
|
716
|
-
const
|
|
717
|
-
if (!
|
|
718
|
-
l.push(
|
|
722
|
+
const d = a.getParentRow();
|
|
723
|
+
if (!d) break;
|
|
724
|
+
l.push(d), a = d;
|
|
719
725
|
}
|
|
720
726
|
return l.reverse();
|
|
721
727
|
},
|
|
722
728
|
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,
|
|
729
|
+
_getAllCellsByColumnId: x(() => [u.getAllCells()], (l) => l.reduce((a, d) => (a[d.column.id] = d, a), {}), y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
724
730
|
};
|
|
725
731
|
for (let l = 0; l < e._features.length; l++) {
|
|
726
732
|
const a = e._features[l];
|
|
@@ -816,7 +822,7 @@ const mo = {
|
|
|
816
822
|
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;
|
|
817
823
|
}, e.getFilterFn = () => {
|
|
818
824
|
var t, n;
|
|
819
|
-
return
|
|
825
|
+
return Ke(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
820
826
|
// @ts-ignore
|
|
821
827
|
(t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : ae[e.columnDef.filterFn]
|
|
822
828
|
);
|
|
@@ -831,10 +837,10 @@ const mo = {
|
|
|
831
837
|
return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
|
|
832
838
|
}, e.setFilterValue = (t) => {
|
|
833
839
|
o.setColumnFilters((n) => {
|
|
834
|
-
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((
|
|
840
|
+
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), s = fe(t, i ? i.value : void 0);
|
|
835
841
|
if (Ht(r, s, e)) {
|
|
836
842
|
var u;
|
|
837
|
-
return (u = n == null ? void 0 : n.filter((
|
|
843
|
+
return (u = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? u : [];
|
|
838
844
|
}
|
|
839
845
|
const l = {
|
|
840
846
|
id: e.id,
|
|
@@ -842,7 +848,7 @@ const mo = {
|
|
|
842
848
|
};
|
|
843
849
|
if (i) {
|
|
844
850
|
var a;
|
|
845
|
-
return (a = n == null ? void 0 : n.map((
|
|
851
|
+
return (a = n == null ? void 0 : n.map((d) => d.id === e.id ? l : d)) != null ? a : [];
|
|
846
852
|
}
|
|
847
853
|
return n != null && n.length ? [...n, l] : [l];
|
|
848
854
|
});
|
|
@@ -912,7 +918,7 @@ const ho = (e, o, t) => t.reduce((n, r) => {
|
|
|
912
918
|
return t[0];
|
|
913
919
|
const n = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
|
|
914
920
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
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,
|
|
921
|
+
}, 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, tt = {
|
|
916
922
|
sum: ho,
|
|
917
923
|
min: So,
|
|
918
924
|
max: wo,
|
|
@@ -958,14 +964,14 @@ const ho = (e, o, t) => t.reduce((n, r) => {
|
|
|
958
964
|
}, e.getAutoAggregationFn = () => {
|
|
959
965
|
const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
|
|
960
966
|
if (typeof n == "number")
|
|
961
|
-
return
|
|
967
|
+
return tt.sum;
|
|
962
968
|
if (Object.prototype.toString.call(n) === "[object Date]")
|
|
963
|
-
return
|
|
969
|
+
return tt.extent;
|
|
964
970
|
}, e.getAggregationFn = () => {
|
|
965
971
|
var t, n;
|
|
966
972
|
if (!e)
|
|
967
973
|
throw new Error();
|
|
968
|
-
return
|
|
974
|
+
return Ke(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : tt[e.columnDef.aggregationFn];
|
|
969
975
|
};
|
|
970
976
|
},
|
|
971
977
|
createTable: (e) => {
|
|
@@ -1024,7 +1030,7 @@ const Mo = {
|
|
|
1024
1030
|
else {
|
|
1025
1031
|
const s = [...o], u = [...r];
|
|
1026
1032
|
for (; u.length && s.length; ) {
|
|
1027
|
-
const l = s.shift(), a = u.findIndex((
|
|
1033
|
+
const l = s.shift(), a = u.findIndex((d) => d.id === l);
|
|
1028
1034
|
a > -1 && i.push(u.splice(a, 1)[0]);
|
|
1029
1035
|
}
|
|
1030
1036
|
i = [...i, ...u];
|
|
@@ -1032,12 +1038,12 @@ const Mo = {
|
|
|
1032
1038
|
return Io(i, t, n);
|
|
1033
1039
|
}, y(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1034
1040
|
}
|
|
1035
|
-
},
|
|
1041
|
+
}, nt = () => ({
|
|
1036
1042
|
left: [],
|
|
1037
1043
|
right: []
|
|
1038
1044
|
}), Vo = {
|
|
1039
1045
|
getInitialState: (e) => ({
|
|
1040
|
-
columnPinning:
|
|
1046
|
+
columnPinning: nt(),
|
|
1041
1047
|
...e
|
|
1042
1048
|
}),
|
|
1043
1049
|
getDefaultOptions: (e) => ({
|
|
@@ -1056,10 +1062,10 @@ const Mo = {
|
|
|
1056
1062
|
};
|
|
1057
1063
|
}
|
|
1058
1064
|
if (t === "left") {
|
|
1059
|
-
var a,
|
|
1065
|
+
var a, d;
|
|
1060
1066
|
return {
|
|
1061
1067
|
left: [...((a = r == null ? void 0 : r.left) != null ? a : []).filter((f) => !(n != null && n.includes(f))), ...n],
|
|
1062
|
-
right: ((
|
|
1068
|
+
right: ((d = r == null ? void 0 : r.right) != null ? d : []).filter((f) => !(n != null && n.includes(f)))
|
|
1063
1069
|
};
|
|
1064
1070
|
}
|
|
1065
1071
|
return {
|
|
@@ -1097,7 +1103,7 @@ const Mo = {
|
|
|
1097
1103
|
createTable: (e) => {
|
|
1098
1104
|
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
1099
1105
|
var t, n;
|
|
1100
|
-
return e.setColumnPinning(o ?
|
|
1106
|
+
return e.setColumnPinning(o ? nt() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : nt());
|
|
1101
1107
|
}, e.getIsSomeColumnsPinned = (o) => {
|
|
1102
1108
|
var t;
|
|
1103
1109
|
const n = e.getState().columnPinning;
|
|
@@ -1119,7 +1125,7 @@ const Ae = {
|
|
|
1119
1125
|
size: 150,
|
|
1120
1126
|
minSize: 20,
|
|
1121
1127
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1122
|
-
},
|
|
1128
|
+
}, ot = () => ({
|
|
1123
1129
|
startOffset: null,
|
|
1124
1130
|
startSize: null,
|
|
1125
1131
|
deltaOffset: null,
|
|
@@ -1130,7 +1136,7 @@ const Ae = {
|
|
|
1130
1136
|
getDefaultColumnDef: () => Ae,
|
|
1131
1137
|
getInitialState: (e) => ({
|
|
1132
1138
|
columnSizing: {},
|
|
1133
|
-
columnSizingInfo:
|
|
1139
|
+
columnSizingInfo: ot(),
|
|
1134
1140
|
...e
|
|
1135
1141
|
}),
|
|
1136
1142
|
getDefaultOptions: (e) => ({
|
|
@@ -1178,9 +1184,9 @@ const Ae = {
|
|
|
1178
1184
|
}, e.getResizeHandler = (t) => {
|
|
1179
1185
|
const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
|
|
1180
1186
|
return (i) => {
|
|
1181
|
-
if (!n || !r || (i.persist == null || i.persist(),
|
|
1187
|
+
if (!n || !r || (i.persist == null || i.persist(), rt(i) && i.touches && i.touches.length > 1))
|
|
1182
1188
|
return;
|
|
1183
|
-
const s = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l =
|
|
1189
|
+
const s = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l = rt(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, C) => {
|
|
1184
1190
|
typeof C == "number" && (o.setColumnSizingInfo((v) => {
|
|
1185
1191
|
var _, I;
|
|
1186
1192
|
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);
|
|
@@ -1196,8 +1202,8 @@ const Ae = {
|
|
|
1196
1202
|
...v,
|
|
1197
1203
|
...a
|
|
1198
1204
|
})));
|
|
1199
|
-
}, f = (h) =>
|
|
1200
|
-
|
|
1205
|
+
}, f = (h) => d("move", h), g = (h) => {
|
|
1206
|
+
d("end", h), o.setColumnSizingInfo((C) => ({
|
|
1201
1207
|
...C,
|
|
1202
1208
|
isResizingColumn: !1,
|
|
1203
1209
|
startOffset: null,
|
|
@@ -1209,18 +1215,18 @@ const Ae = {
|
|
|
1209
1215
|
}, c = bo(t), p = {
|
|
1210
1216
|
moveHandler: (h) => f(h.clientX),
|
|
1211
1217
|
upHandler: (h) => {
|
|
1212
|
-
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler),
|
|
1218
|
+
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler), g(h.clientX);
|
|
1213
1219
|
}
|
|
1214
1220
|
}, m = {
|
|
1215
1221
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
1216
1222
|
upHandler: (h) => {
|
|
1217
1223
|
var C;
|
|
1218
|
-
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()),
|
|
1224
|
+
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
1219
1225
|
}
|
|
1220
1226
|
}, S = $o() ? {
|
|
1221
1227
|
passive: !1
|
|
1222
1228
|
} : !1;
|
|
1223
|
-
|
|
1229
|
+
rt(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) => ({
|
|
1224
1230
|
...h,
|
|
1225
1231
|
startOffset: l,
|
|
1226
1232
|
startSize: s,
|
|
@@ -1238,7 +1244,7 @@ const Ae = {
|
|
|
1238
1244
|
e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
1239
1245
|
}, e.resetHeaderSizeInfo = (o) => {
|
|
1240
1246
|
var t;
|
|
1241
|
-
e.setColumnSizingInfo(o ?
|
|
1247
|
+
e.setColumnSizingInfo(o ? ot() : (t = e.initialState.columnSizingInfo) != null ? t : ot());
|
|
1242
1248
|
}, e.getTotalSize = () => {
|
|
1243
1249
|
var o, t;
|
|
1244
1250
|
return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
@@ -1271,7 +1277,7 @@ function $o() {
|
|
|
1271
1277
|
}
|
|
1272
1278
|
return Ne = e, Ne;
|
|
1273
1279
|
}
|
|
1274
|
-
function
|
|
1280
|
+
function rt(e) {
|
|
1275
1281
|
return e.type === "touchstart";
|
|
1276
1282
|
}
|
|
1277
1283
|
const Eo = {
|
|
@@ -1355,7 +1361,7 @@ const Do = {
|
|
|
1355
1361
|
const {
|
|
1356
1362
|
globalFilterFn: n
|
|
1357
1363
|
} = e.options;
|
|
1358
|
-
return
|
|
1364
|
+
return Ke(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : ae[n];
|
|
1359
1365
|
}, e.setGlobalFilter = (o) => {
|
|
1360
1366
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
|
|
1361
1367
|
}, e.resetGlobalFilter = (o) => {
|
|
@@ -1449,14 +1455,14 @@ const Do = {
|
|
|
1449
1455
|
};
|
|
1450
1456
|
};
|
|
1451
1457
|
}
|
|
1452
|
-
}, at = 0, ct = 10,
|
|
1458
|
+
}, at = 0, ct = 10, it = () => ({
|
|
1453
1459
|
pageIndex: at,
|
|
1454
1460
|
pageSize: ct
|
|
1455
1461
|
}), Ao = {
|
|
1456
1462
|
getInitialState: (e) => ({
|
|
1457
1463
|
...e,
|
|
1458
1464
|
pagination: {
|
|
1459
|
-
...
|
|
1465
|
+
...it(),
|
|
1460
1466
|
...e == null ? void 0 : e.pagination
|
|
1461
1467
|
}
|
|
1462
1468
|
}),
|
|
@@ -1484,7 +1490,7 @@ const Do = {
|
|
|
1484
1490
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
|
|
1485
1491
|
}, e.resetPagination = (n) => {
|
|
1486
1492
|
var r;
|
|
1487
|
-
e.setPagination(n ?
|
|
1493
|
+
e.setPagination(n ? it() : (r = e.initialState.pagination) != null ? r : it());
|
|
1488
1494
|
}, e.setPageIndex = (n) => {
|
|
1489
1495
|
e.setPagination((r) => {
|
|
1490
1496
|
let i = fe(n, r.pageIndex);
|
|
@@ -1532,12 +1538,12 @@ const Do = {
|
|
|
1532
1538
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1533
1539
|
};
|
|
1534
1540
|
}
|
|
1535
|
-
},
|
|
1541
|
+
}, st = () => ({
|
|
1536
1542
|
top: [],
|
|
1537
1543
|
bottom: []
|
|
1538
1544
|
}), No = {
|
|
1539
1545
|
getInitialState: (e) => ({
|
|
1540
|
-
rowPinning:
|
|
1546
|
+
rowPinning: st(),
|
|
1541
1547
|
...e
|
|
1542
1548
|
}),
|
|
1543
1549
|
getDefaultOptions: (e) => ({
|
|
@@ -1557,12 +1563,12 @@ const Do = {
|
|
|
1557
1563
|
return a;
|
|
1558
1564
|
}) : [], u = /* @__PURE__ */ new Set([...s, e.id, ...i]);
|
|
1559
1565
|
o.setRowPinning((l) => {
|
|
1560
|
-
var a,
|
|
1566
|
+
var a, d;
|
|
1561
1567
|
if (t === "bottom") {
|
|
1562
|
-
var f,
|
|
1568
|
+
var f, g;
|
|
1563
1569
|
return {
|
|
1564
1570
|
top: ((f = l == null ? void 0 : l.top) != null ? f : []).filter((m) => !(u != null && u.has(m))),
|
|
1565
|
-
bottom: [...((
|
|
1571
|
+
bottom: [...((g = l == null ? void 0 : l.bottom) != null ? g : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)]
|
|
1566
1572
|
};
|
|
1567
1573
|
}
|
|
1568
1574
|
if (t === "top") {
|
|
@@ -1574,7 +1580,7 @@ const Do = {
|
|
|
1574
1580
|
}
|
|
1575
1581
|
return {
|
|
1576
1582
|
top: ((a = l == null ? void 0 : l.top) != null ? a : []).filter((m) => !(u != null && u.has(m))),
|
|
1577
|
-
bottom: ((
|
|
1583
|
+
bottom: ((d = l == null ? void 0 : l.bottom) != null ? d : []).filter((m) => !(u != null && u.has(m)))
|
|
1578
1584
|
};
|
|
1579
1585
|
});
|
|
1580
1586
|
}, e.getCanPin = () => {
|
|
@@ -1606,7 +1612,7 @@ const Do = {
|
|
|
1606
1612
|
createTable: (e) => {
|
|
1607
1613
|
e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
|
|
1608
1614
|
var t, n;
|
|
1609
|
-
return e.setRowPinning(o ?
|
|
1615
|
+
return e.setRowPinning(o ? st() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : st());
|
|
1610
1616
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1611
1617
|
var t;
|
|
1612
1618
|
const n = e.getState().rowPinning;
|
|
@@ -1673,15 +1679,15 @@ const Do = {
|
|
|
1673
1679
|
return e.getRowModel().rows.forEach((i) => {
|
|
1674
1680
|
dt(r, i.id, n, !0, e);
|
|
1675
1681
|
}), r;
|
|
1676
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1682
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? lt(e, t) : {
|
|
1677
1683
|
rows: [],
|
|
1678
1684
|
flatRows: [],
|
|
1679
1685
|
rowsById: {}
|
|
1680
|
-
}, y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1686
|
+
}, y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? lt(e, t) : {
|
|
1681
1687
|
rows: [],
|
|
1682
1688
|
flatRows: [],
|
|
1683
1689
|
rowsById: {}
|
|
1684
|
-
}, y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1690
|
+
}, y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? lt(e, t) : {
|
|
1685
1691
|
rows: [],
|
|
1686
1692
|
flatRows: [],
|
|
1687
1693
|
rowsById: {}
|
|
@@ -1759,15 +1765,15 @@ const Do = {
|
|
|
1759
1765
|
const s = r.getRow(o, !0);
|
|
1760
1766
|
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));
|
|
1761
1767
|
};
|
|
1762
|
-
function
|
|
1768
|
+
function lt(e, o) {
|
|
1763
1769
|
const t = e.getState().rowSelection, n = [], r = {}, i = function(s, u) {
|
|
1764
1770
|
return s.map((l) => {
|
|
1765
1771
|
var a;
|
|
1766
|
-
const
|
|
1767
|
-
if (
|
|
1772
|
+
const d = vt(l, t);
|
|
1773
|
+
if (d && (n.push(l), r[l.id] = l), (a = l.subRows) != null && a.length && (l = {
|
|
1768
1774
|
...l,
|
|
1769
1775
|
subRows: i(l.subRows)
|
|
1770
|
-
}),
|
|
1776
|
+
}), d)
|
|
1771
1777
|
return l;
|
|
1772
1778
|
}).filter(Boolean);
|
|
1773
1779
|
};
|
|
@@ -1861,22 +1867,22 @@ const Fe = {
|
|
|
1861
1867
|
var t, n;
|
|
1862
1868
|
if (!e)
|
|
1863
1869
|
throw new Error();
|
|
1864
|
-
return
|
|
1870
|
+
return Ke(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : Fe[e.columnDef.sortingFn];
|
|
1865
1871
|
}, e.toggleSorting = (t, n) => {
|
|
1866
1872
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1867
1873
|
o.setSorting((s) => {
|
|
1868
1874
|
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);
|
|
1869
|
-
let a = [],
|
|
1870
|
-
if (s != null && s.length && e.getCanMultiSort() && n ? u ?
|
|
1871
|
-
var
|
|
1875
|
+
let a = [], d, f = i ? t : r === "desc";
|
|
1876
|
+
if (s != null && s.length && e.getCanMultiSort() && n ? u ? d = "toggle" : d = "add" : s != null && s.length && l !== s.length - 1 ? d = "replace" : u ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
|
|
1877
|
+
var g;
|
|
1872
1878
|
a = [...s, {
|
|
1873
1879
|
id: e.id,
|
|
1874
1880
|
desc: f
|
|
1875
|
-
}], a.splice(0, a.length - ((
|
|
1876
|
-
} else
|
|
1881
|
+
}], a.splice(0, a.length - ((g = o.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
|
|
1882
|
+
} else d === "toggle" ? a = s.map((c) => c.id === e.id ? {
|
|
1877
1883
|
...c,
|
|
1878
1884
|
desc: f
|
|
1879
|
-
} : c) :
|
|
1885
|
+
} : c) : d === "remove" ? a = s.filter((c) => c.id !== e.id) : a = [{
|
|
1880
1886
|
id: e.id,
|
|
1881
1887
|
desc: f
|
|
1882
1888
|
}];
|
|
@@ -1945,20 +1951,20 @@ function Ko(e) {
|
|
|
1945
1951
|
let r = {
|
|
1946
1952
|
_features: n
|
|
1947
1953
|
};
|
|
1948
|
-
const i = r._features.reduce((
|
|
1954
|
+
const i = r._features.reduce((g, c) => Object.assign(g, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}), s = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
|
|
1949
1955
|
...i,
|
|
1950
|
-
...
|
|
1956
|
+
...g
|
|
1951
1957
|
};
|
|
1952
1958
|
let l = {
|
|
1953
1959
|
...{},
|
|
1954
1960
|
...(t = e.initialState) != null ? t : {}
|
|
1955
1961
|
};
|
|
1956
|
-
r._features.forEach((
|
|
1962
|
+
r._features.forEach((g) => {
|
|
1957
1963
|
var c;
|
|
1958
|
-
l = (c =
|
|
1964
|
+
l = (c = g.getInitialState == null ? void 0 : g.getInitialState(l)) != null ? c : l;
|
|
1959
1965
|
});
|
|
1960
1966
|
const a = [];
|
|
1961
|
-
let
|
|
1967
|
+
let d = !1;
|
|
1962
1968
|
const f = {
|
|
1963
1969
|
_features: n,
|
|
1964
1970
|
options: {
|
|
@@ -1966,11 +1972,11 @@ function Ko(e) {
|
|
|
1966
1972
|
...e
|
|
1967
1973
|
},
|
|
1968
1974
|
initialState: l,
|
|
1969
|
-
_queue: (
|
|
1970
|
-
a.push(
|
|
1975
|
+
_queue: (g) => {
|
|
1976
|
+
a.push(g), d || (d = !0, Promise.resolve().then(() => {
|
|
1971
1977
|
for (; a.length; )
|
|
1972
1978
|
a.shift()();
|
|
1973
|
-
|
|
1979
|
+
d = !1;
|
|
1974
1980
|
}).catch((c) => setTimeout(() => {
|
|
1975
1981
|
throw c;
|
|
1976
1982
|
})));
|
|
@@ -1978,32 +1984,32 @@ function Ko(e) {
|
|
|
1978
1984
|
reset: () => {
|
|
1979
1985
|
r.setState(r.initialState);
|
|
1980
1986
|
},
|
|
1981
|
-
setOptions: (
|
|
1982
|
-
const c = fe(
|
|
1987
|
+
setOptions: (g) => {
|
|
1988
|
+
const c = fe(g, r.options);
|
|
1983
1989
|
r.options = s(c);
|
|
1984
1990
|
},
|
|
1985
1991
|
getState: () => r.options.state,
|
|
1986
|
-
setState: (
|
|
1987
|
-
r.options.onStateChange == null || r.options.onStateChange(
|
|
1992
|
+
setState: (g) => {
|
|
1993
|
+
r.options.onStateChange == null || r.options.onStateChange(g);
|
|
1988
1994
|
},
|
|
1989
|
-
_getRowId: (
|
|
1995
|
+
_getRowId: (g, c, p) => {
|
|
1990
1996
|
var m;
|
|
1991
|
-
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(
|
|
1997
|
+
return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(g, c, p)) != null ? m : `${p ? [p.id, c].join(".") : c}`;
|
|
1992
1998
|
},
|
|
1993
1999
|
getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
|
|
1994
2000
|
// The final calls start at the bottom of the model,
|
|
1995
2001
|
// expanded rows, which then work their way up
|
|
1996
2002
|
getRowModel: () => r.getPaginationRowModel(),
|
|
1997
2003
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
1998
|
-
getRow: (
|
|
1999
|
-
let p = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[
|
|
2000
|
-
if (!p && (p = r.getCoreRowModel().rowsById[
|
|
2001
|
-
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${
|
|
2004
|
+
getRow: (g, c) => {
|
|
2005
|
+
let p = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[g];
|
|
2006
|
+
if (!p && (p = r.getCoreRowModel().rowsById[g], !p))
|
|
2007
|
+
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
2002
2008
|
return p;
|
|
2003
2009
|
},
|
|
2004
|
-
_getDefaultColumnDef: x(() => [r.options.defaultColumn], (
|
|
2010
|
+
_getDefaultColumnDef: x(() => [r.options.defaultColumn], (g) => {
|
|
2005
2011
|
var c;
|
|
2006
|
-
return
|
|
2012
|
+
return g = (c = g) != null ? c : {}, {
|
|
2007
2013
|
header: (p) => {
|
|
2008
2014
|
const m = p.header.column.columnDef;
|
|
2009
2015
|
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
@@ -2014,33 +2020,33 @@ function Ko(e) {
|
|
|
2014
2020
|
return (m = (S = p.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? m : null;
|
|
2015
2021
|
},
|
|
2016
2022
|
...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
2017
|
-
...
|
|
2023
|
+
...g
|
|
2018
2024
|
};
|
|
2019
2025
|
}, y(e, "debugColumns", "_getDefaultColumnDef")),
|
|
2020
2026
|
_getColumnDefs: () => r.options.columns,
|
|
2021
|
-
getAllColumns: x(() => [r._getColumnDefs()], (
|
|
2027
|
+
getAllColumns: x(() => [r._getColumnDefs()], (g) => {
|
|
2022
2028
|
const c = function(p, m, S) {
|
|
2023
2029
|
return S === void 0 && (S = 0), p.map((h) => {
|
|
2024
2030
|
const C = go(r, h, S, m), v = h;
|
|
2025
2031
|
return C.columns = v.columns ? c(v.columns, C, S + 1) : [], C;
|
|
2026
2032
|
});
|
|
2027
2033
|
};
|
|
2028
|
-
return c(
|
|
2034
|
+
return c(g);
|
|
2029
2035
|
}, y(e, "debugColumns", "getAllColumns")),
|
|
2030
|
-
getAllFlatColumns: x(() => [r.getAllColumns()], (
|
|
2031
|
-
_getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (
|
|
2032
|
-
getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (
|
|
2033
|
-
let p =
|
|
2036
|
+
getAllFlatColumns: x(() => [r.getAllColumns()], (g) => g.flatMap((c) => c.getFlatColumns()), y(e, "debugColumns", "getAllFlatColumns")),
|
|
2037
|
+
_getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (g) => g.reduce((c, p) => (c[p.id] = p, c), {}), y(e, "debugColumns", "getAllFlatColumnsById")),
|
|
2038
|
+
getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (g, c) => {
|
|
2039
|
+
let p = g.flatMap((m) => m.getLeafColumns());
|
|
2034
2040
|
return c(p);
|
|
2035
2041
|
}, y(e, "debugColumns", "getAllLeafColumns")),
|
|
2036
|
-
getColumn: (
|
|
2037
|
-
const c = r._getAllFlatColumnsById()[
|
|
2038
|
-
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${
|
|
2042
|
+
getColumn: (g) => {
|
|
2043
|
+
const c = r._getAllFlatColumnsById()[g];
|
|
2044
|
+
return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${g}' does not exist.`), c;
|
|
2039
2045
|
}
|
|
2040
2046
|
};
|
|
2041
2047
|
Object.assign(r, f);
|
|
2042
|
-
for (let
|
|
2043
|
-
const c = r._features[
|
|
2048
|
+
for (let g = 0; g < r._features.length; g++) {
|
|
2049
|
+
const c = r._features[g];
|
|
2044
2050
|
c == null || c.createTable == null || c.createTable(r);
|
|
2045
2051
|
}
|
|
2046
2052
|
return r;
|
|
@@ -2055,10 +2061,10 @@ function Xo() {
|
|
|
2055
2061
|
i === void 0 && (i = 0);
|
|
2056
2062
|
const u = [];
|
|
2057
2063
|
for (let a = 0; a < r.length; a++) {
|
|
2058
|
-
const
|
|
2059
|
-
if (t.flatRows.push(
|
|
2064
|
+
const d = wt(e, e._getRowId(r[a], a, s), r[a], a, i, void 0, s == null ? void 0 : s.id);
|
|
2065
|
+
if (t.flatRows.push(d), t.rowsById[d.id] = d, u.push(d), e.options.getSubRows) {
|
|
2060
2066
|
var l;
|
|
2061
|
-
|
|
2067
|
+
d.originalSubRows = e.options.getSubRows(r[a], a), (l = d.originalSubRows) != null && l.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
2062
2068
|
}
|
|
2063
2069
|
}
|
|
2064
2070
|
return u;
|
|
@@ -2084,24 +2090,24 @@ function Qo(e, o, t) {
|
|
|
2084
2090
|
var n;
|
|
2085
2091
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2086
2092
|
a === void 0 && (a = 0);
|
|
2087
|
-
const
|
|
2088
|
-
for (let
|
|
2093
|
+
const d = [];
|
|
2094
|
+
for (let g = 0; g < l.length; g++) {
|
|
2089
2095
|
var f;
|
|
2090
|
-
let c = l[
|
|
2096
|
+
let c = l[g];
|
|
2091
2097
|
const p = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2092
2098
|
if (p.columnFilters = c.columnFilters, (f = c.subRows) != null && f.length && a < s) {
|
|
2093
2099
|
if (p.subRows = u(c.subRows, a + 1), c = p, o(c) && !p.subRows.length) {
|
|
2094
|
-
|
|
2100
|
+
d.push(c), i[c.id] = c, r.push(c);
|
|
2095
2101
|
continue;
|
|
2096
2102
|
}
|
|
2097
2103
|
if (o(c) || p.subRows.length) {
|
|
2098
|
-
|
|
2104
|
+
d.push(c), i[c.id] = c, r.push(c);
|
|
2099
2105
|
continue;
|
|
2100
2106
|
}
|
|
2101
2107
|
} else
|
|
2102
|
-
c = p, o(c) && (
|
|
2108
|
+
c = p, o(c) && (d.push(c), i[c.id] = c, r.push(c));
|
|
2103
2109
|
}
|
|
2104
|
-
return
|
|
2110
|
+
return d;
|
|
2105
2111
|
};
|
|
2106
2112
|
return {
|
|
2107
2113
|
rows: u(e),
|
|
@@ -2113,19 +2119,19 @@ function Jo(e, o, t) {
|
|
|
2113
2119
|
var n;
|
|
2114
2120
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2115
2121
|
a === void 0 && (a = 0);
|
|
2116
|
-
const
|
|
2117
|
-
for (let
|
|
2118
|
-
let c = l[
|
|
2122
|
+
const d = [];
|
|
2123
|
+
for (let g = 0; g < l.length; g++) {
|
|
2124
|
+
let c = l[g];
|
|
2119
2125
|
if (o(c)) {
|
|
2120
2126
|
var f;
|
|
2121
2127
|
if ((f = c.subRows) != null && f.length && a < s) {
|
|
2122
2128
|
const m = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2123
2129
|
m.subRows = u(c.subRows, a + 1), c = m;
|
|
2124
2130
|
}
|
|
2125
|
-
|
|
2131
|
+
d.push(c), r.push(c), i[c.id] = c;
|
|
2126
2132
|
}
|
|
2127
2133
|
}
|
|
2128
|
-
return
|
|
2134
|
+
return d;
|
|
2129
2135
|
};
|
|
2130
2136
|
return {
|
|
2131
2137
|
rows: u(e),
|
|
@@ -2170,14 +2176,14 @@ function Zo() {
|
|
|
2170
2176
|
function er() {
|
|
2171
2177
|
return (e) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2172
2178
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2173
|
-
for (let
|
|
2174
|
-
o.flatRows[
|
|
2179
|
+
for (let g = 0; g < o.flatRows.length; g++)
|
|
2180
|
+
o.flatRows[g].columnFilters = {}, o.flatRows[g].columnFiltersMeta = {};
|
|
2175
2181
|
return o;
|
|
2176
2182
|
}
|
|
2177
2183
|
const r = [], i = [];
|
|
2178
|
-
(t ?? []).forEach((
|
|
2184
|
+
(t ?? []).forEach((g) => {
|
|
2179
2185
|
var c;
|
|
2180
|
-
const p = e.getColumn(
|
|
2186
|
+
const p = e.getColumn(g.id);
|
|
2181
2187
|
if (!p)
|
|
2182
2188
|
return;
|
|
2183
2189
|
const m = p.getFilterFn();
|
|
@@ -2186,23 +2192,23 @@ function er() {
|
|
|
2186
2192
|
return;
|
|
2187
2193
|
}
|
|
2188
2194
|
r.push({
|
|
2189
|
-
id:
|
|
2195
|
+
id: g.id,
|
|
2190
2196
|
filterFn: m,
|
|
2191
|
-
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(
|
|
2197
|
+
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(g.value)) != null ? c : g.value
|
|
2192
2198
|
});
|
|
2193
2199
|
});
|
|
2194
|
-
const s = (t ?? []).map((
|
|
2195
|
-
n && u && l.length && (s.push("__global__"), l.forEach((
|
|
2200
|
+
const s = (t ?? []).map((g) => g.id), u = e.getGlobalFilterFn(), l = e.getAllLeafColumns().filter((g) => g.getCanGlobalFilter());
|
|
2201
|
+
n && u && l.length && (s.push("__global__"), l.forEach((g) => {
|
|
2196
2202
|
var c;
|
|
2197
2203
|
i.push({
|
|
2198
|
-
id:
|
|
2204
|
+
id: g.id,
|
|
2199
2205
|
filterFn: u,
|
|
2200
2206
|
resolvedValue: (c = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? c : n
|
|
2201
2207
|
});
|
|
2202
2208
|
}));
|
|
2203
|
-
let a,
|
|
2204
|
-
for (let
|
|
2205
|
-
const c = o.flatRows[
|
|
2209
|
+
let a, d;
|
|
2210
|
+
for (let g = 0; g < o.flatRows.length; g++) {
|
|
2211
|
+
const c = o.flatRows[g];
|
|
2206
2212
|
if (c.columnFilters = {}, r.length)
|
|
2207
2213
|
for (let p = 0; p < r.length; p++) {
|
|
2208
2214
|
a = r[p];
|
|
@@ -2213,9 +2219,9 @@ function er() {
|
|
|
2213
2219
|
}
|
|
2214
2220
|
if (i.length) {
|
|
2215
2221
|
for (let p = 0; p < i.length; p++) {
|
|
2216
|
-
|
|
2217
|
-
const m =
|
|
2218
|
-
if (
|
|
2222
|
+
d = i[p];
|
|
2223
|
+
const m = d.id;
|
|
2224
|
+
if (d.filterFn(c, m, d.resolvedValue, (S) => {
|
|
2219
2225
|
c.columnFiltersMeta[m] = S;
|
|
2220
2226
|
})) {
|
|
2221
2227
|
c.columnFilters.__global__ = !0;
|
|
@@ -2225,9 +2231,9 @@ function er() {
|
|
|
2225
2231
|
c.columnFilters.__global__ !== !0 && (c.columnFilters.__global__ = !1);
|
|
2226
2232
|
}
|
|
2227
2233
|
}
|
|
2228
|
-
const f = (
|
|
2234
|
+
const f = (g) => {
|
|
2229
2235
|
for (let c = 0; c < s.length; c++)
|
|
2230
|
-
if (
|
|
2236
|
+
if (g.columnFilters[s[c]] === !1)
|
|
2231
2237
|
return !1;
|
|
2232
2238
|
return !0;
|
|
2233
2239
|
};
|
|
@@ -2247,8 +2253,8 @@ function tr(e) {
|
|
|
2247
2253
|
flatRows: u,
|
|
2248
2254
|
rowsById: l
|
|
2249
2255
|
} = n;
|
|
2250
|
-
const a = r * i,
|
|
2251
|
-
s = s.slice(a,
|
|
2256
|
+
const a = r * i, d = a + r;
|
|
2257
|
+
s = s.slice(a, d);
|
|
2252
2258
|
let f;
|
|
2253
2259
|
o.options.paginateExpandedRows ? f = {
|
|
2254
2260
|
rows: s,
|
|
@@ -2259,10 +2265,10 @@ function tr(e) {
|
|
|
2259
2265
|
flatRows: u,
|
|
2260
2266
|
rowsById: l
|
|
2261
2267
|
}), f.flatRows = [];
|
|
2262
|
-
const
|
|
2263
|
-
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(
|
|
2268
|
+
const g = (c) => {
|
|
2269
|
+
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(g);
|
|
2264
2270
|
};
|
|
2265
|
-
return f.rows.forEach(
|
|
2271
|
+
return f.rows.forEach(g), f;
|
|
2266
2272
|
}, y(o.options, "debugTable", "getPaginationRowModel"));
|
|
2267
2273
|
}
|
|
2268
2274
|
function nr() {
|
|
@@ -2282,29 +2288,29 @@ function nr() {
|
|
|
2282
2288
|
});
|
|
2283
2289
|
});
|
|
2284
2290
|
const u = (l) => {
|
|
2285
|
-
const a = l.map((
|
|
2286
|
-
...
|
|
2291
|
+
const a = l.map((d) => ({
|
|
2292
|
+
...d
|
|
2287
2293
|
}));
|
|
2288
|
-
return a.sort((
|
|
2294
|
+
return a.sort((d, f) => {
|
|
2289
2295
|
for (let c = 0; c < i.length; c += 1) {
|
|
2290
|
-
var
|
|
2291
|
-
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (
|
|
2296
|
+
var g;
|
|
2297
|
+
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (g = p == null ? void 0 : p.desc) != null ? g : !1;
|
|
2292
2298
|
let C = 0;
|
|
2293
2299
|
if (S) {
|
|
2294
|
-
const v =
|
|
2300
|
+
const v = d.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, V = _ === void 0;
|
|
2295
2301
|
if (I || V) {
|
|
2296
2302
|
if (S === "first") return I ? -1 : 1;
|
|
2297
2303
|
if (S === "last") return I ? 1 : -1;
|
|
2298
2304
|
C = I && V ? 0 : I ? S : -S;
|
|
2299
2305
|
}
|
|
2300
2306
|
}
|
|
2301
|
-
if (C === 0 && (C = m.sortingFn(
|
|
2307
|
+
if (C === 0 && (C = m.sortingFn(d, f, p.id)), C !== 0)
|
|
2302
2308
|
return h && (C *= -1), m.invertSorting && (C *= -1), C;
|
|
2303
2309
|
}
|
|
2304
|
-
return
|
|
2305
|
-
}), a.forEach((
|
|
2310
|
+
return d.index - f.index;
|
|
2311
|
+
}), a.forEach((d) => {
|
|
2306
2312
|
var f;
|
|
2307
|
-
r.push(
|
|
2313
|
+
r.push(d), (f = d.subRows) != null && f.length && (d.subRows = u(d.subRows));
|
|
2308
2314
|
}), a;
|
|
2309
2315
|
};
|
|
2310
2316
|
return {
|
|
@@ -2324,7 +2330,7 @@ function nr() {
|
|
|
2324
2330
|
*
|
|
2325
2331
|
* @license MIT
|
|
2326
2332
|
*/
|
|
2327
|
-
function
|
|
2333
|
+
function Ge(e, o) {
|
|
2328
2334
|
return e ? or(e) ? /* @__PURE__ */ ce.createElement(e, o) : e : null;
|
|
2329
2335
|
}
|
|
2330
2336
|
function or(e) {
|
|
@@ -2375,7 +2381,7 @@ const lr = ({
|
|
|
2375
2381
|
classes: s
|
|
2376
2382
|
}) => {
|
|
2377
2383
|
o = o < 1 ? 1 : o, e = Math.min(Math.max(e, 1), t), i = Math.min(Math.max(i, 0), o - 2);
|
|
2378
|
-
const u = Array.from({ length: t }, (
|
|
2384
|
+
const u = Array.from({ length: t }, (d, f) => f), l = o * 2 + 1;
|
|
2379
2385
|
let a;
|
|
2380
2386
|
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(
|
|
2381
2387
|
e - 1 - (o - (i > 0 ? i + 1 : 0)),
|
|
@@ -2392,16 +2398,16 @@ const lr = ({
|
|
|
2392
2398
|
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2393
2399
|
}
|
|
2394
2400
|
),
|
|
2395
|
-
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((
|
|
2401
|
+
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ w.jsx(
|
|
2396
2402
|
ge,
|
|
2397
2403
|
{
|
|
2398
2404
|
size: "sm",
|
|
2399
2405
|
intent: "ghost",
|
|
2400
2406
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2401
|
-
onClick: () =>
|
|
2402
|
-
children:
|
|
2407
|
+
onClick: () => d !== e - 1 && n(d),
|
|
2408
|
+
children: d + 1
|
|
2403
2409
|
},
|
|
2404
|
-
|
|
2410
|
+
d
|
|
2405
2411
|
)),
|
|
2406
2412
|
t > l && i > 0 && e - 1 > o && /* @__PURE__ */ w.jsx(
|
|
2407
2413
|
ge,
|
|
@@ -2412,8 +2418,8 @@ const lr = ({
|
|
|
2412
2418
|
children: "..."
|
|
2413
2419
|
}
|
|
2414
2420
|
),
|
|
2415
|
-
a.map((
|
|
2416
|
-
const f =
|
|
2421
|
+
a.map((d) => {
|
|
2422
|
+
const f = d === e - 1;
|
|
2417
2423
|
return /* @__PURE__ */ w.jsx(
|
|
2418
2424
|
ge,
|
|
2419
2425
|
{
|
|
@@ -2426,10 +2432,10 @@ const lr = ({
|
|
|
2426
2432
|
s == null ? void 0 : s.button
|
|
2427
2433
|
),
|
|
2428
2434
|
intent: f ? "secondary" : "ghost",
|
|
2429
|
-
onClick: () => !f && n(
|
|
2430
|
-
children:
|
|
2435
|
+
onClick: () => !f && n(d),
|
|
2436
|
+
children: d + 1
|
|
2431
2437
|
},
|
|
2432
|
-
|
|
2438
|
+
d
|
|
2433
2439
|
);
|
|
2434
2440
|
}),
|
|
2435
2441
|
t > l && i > 0 && e < t - o && /* @__PURE__ */ w.jsx(
|
|
@@ -2441,16 +2447,16 @@ const lr = ({
|
|
|
2441
2447
|
children: "..."
|
|
2442
2448
|
}
|
|
2443
2449
|
),
|
|
2444
|
-
t > l && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((
|
|
2450
|
+
t > l && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((d) => /* @__PURE__ */ w.jsx(
|
|
2445
2451
|
ge,
|
|
2446
2452
|
{
|
|
2447
2453
|
size: "sm",
|
|
2448
2454
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark", s == null ? void 0 : s.button),
|
|
2449
2455
|
intent: "ghost",
|
|
2450
|
-
onClick: () =>
|
|
2451
|
-
children:
|
|
2456
|
+
onClick: () => d !== e - 1 && n(d),
|
|
2457
|
+
children: d + 1
|
|
2452
2458
|
},
|
|
2453
|
-
|
|
2459
|
+
d
|
|
2454
2460
|
)),
|
|
2455
2461
|
r && /* @__PURE__ */ w.jsx(
|
|
2456
2462
|
ge,
|
|
@@ -2484,8 +2490,15 @@ const lr = ({
|
|
|
2484
2490
|
}
|
|
2485
2491
|
)
|
|
2486
2492
|
] });
|
|
2487
|
-
}, ar = ({
|
|
2488
|
-
|
|
2493
|
+
}, ar = ({
|
|
2494
|
+
mode: e,
|
|
2495
|
+
enableHeaders: o,
|
|
2496
|
+
table: t,
|
|
2497
|
+
classes: n,
|
|
2498
|
+
pagination: r,
|
|
2499
|
+
empty: i = "Not found"
|
|
2500
|
+
}) => {
|
|
2501
|
+
const s = r !== !1 && t.getPageCount() > 1, u = {
|
|
2489
2502
|
pageCount: t.getPageCount(),
|
|
2490
2503
|
rowsCount: t.getCoreRowModel().rows.length,
|
|
2491
2504
|
pageSize: t.getState().pagination.pageSize,
|
|
@@ -2495,7 +2508,7 @@ const lr = ({
|
|
|
2495
2508
|
};
|
|
2496
2509
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2497
2510
|
/* @__PURE__ */ w.jsxs(un, { className: F("w-full", n == null ? void 0 : n.table), children: [
|
|
2498
|
-
o && /* @__PURE__ */ w.jsx(an, { className: "px-2", children: t.getHeaderGroups().map((
|
|
2511
|
+
o && /* @__PURE__ */ w.jsx(an, { className: "px-2", children: t.getHeaderGroups().map((l) => /* @__PURE__ */ w.jsx(
|
|
2499
2512
|
Te,
|
|
2500
2513
|
{
|
|
2501
2514
|
className: F(
|
|
@@ -2505,7 +2518,7 @@ const lr = ({
|
|
|
2505
2518
|
},
|
|
2506
2519
|
n == null ? void 0 : n.tableHeader
|
|
2507
2520
|
),
|
|
2508
|
-
children:
|
|
2521
|
+
children: l.headers.map((a) => /* @__PURE__ */ w.jsx(
|
|
2509
2522
|
dn,
|
|
2510
2523
|
{
|
|
2511
2524
|
className: F(
|
|
@@ -2515,14 +2528,14 @@ const lr = ({
|
|
|
2515
2528
|
},
|
|
2516
2529
|
n == null ? void 0 : n.tableHead
|
|
2517
2530
|
),
|
|
2518
|
-
children:
|
|
2531
|
+
children: a.isPlaceholder ? null : Ge(a.column.columnDef.header, a.getContext())
|
|
2519
2532
|
},
|
|
2520
|
-
|
|
2533
|
+
a.id
|
|
2521
2534
|
))
|
|
2522
2535
|
},
|
|
2523
|
-
|
|
2536
|
+
l.id
|
|
2524
2537
|
)) }),
|
|
2525
|
-
/* @__PURE__ */ w.jsx(cn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((
|
|
2538
|
+
/* @__PURE__ */ w.jsx(cn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((l, a) => /* @__PURE__ */ w.jsx(
|
|
2526
2539
|
Te,
|
|
2527
2540
|
{
|
|
2528
2541
|
className: F(
|
|
@@ -2533,33 +2546,34 @@ const lr = ({
|
|
|
2533
2546
|
},
|
|
2534
2547
|
n == null ? void 0 : n.tableRow
|
|
2535
2548
|
),
|
|
2536
|
-
children:
|
|
2549
|
+
children: l.getVisibleCells().map((d, f) => /* @__PURE__ */ w.jsx(
|
|
2537
2550
|
ut,
|
|
2538
2551
|
{
|
|
2539
2552
|
className: F(
|
|
2540
2553
|
"py-3",
|
|
2541
2554
|
{
|
|
2542
2555
|
"px-2": e === "odd",
|
|
2543
|
-
"font-medium":
|
|
2556
|
+
"font-medium": f !== 0
|
|
2544
2557
|
},
|
|
2545
2558
|
n == null ? void 0 : n.tableCell
|
|
2546
2559
|
),
|
|
2547
|
-
children:
|
|
2560
|
+
children: Ge(d.column.columnDef.cell, { ...d.getContext(), rowIndex: a })
|
|
2548
2561
|
},
|
|
2549
|
-
|
|
2562
|
+
d.id
|
|
2550
2563
|
))
|
|
2551
2564
|
},
|
|
2552
|
-
|
|
2553
|
-
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(ut, { className: "py-4 text-center", colSpan: t.getAllColumns().length, children:
|
|
2565
|
+
l.id
|
|
2566
|
+
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(ut, { className: "py-4 text-center", colSpan: t.getAllColumns().length, children: i }) }) })
|
|
2554
2567
|
] }),
|
|
2555
|
-
|
|
2568
|
+
s ? typeof r == "function" ? r(u) : /* @__PURE__ */ w.jsx(ur, { ...u }) : null
|
|
2556
2569
|
] });
|
|
2557
2570
|
}, cr = ({
|
|
2558
2571
|
mode: e,
|
|
2559
2572
|
enableHeaders: o,
|
|
2560
2573
|
table: t,
|
|
2561
|
-
classes: n
|
|
2562
|
-
|
|
2574
|
+
classes: n,
|
|
2575
|
+
empty: r = "Not found"
|
|
2576
|
+
}) => /* @__PURE__ */ w.jsx("div", { className: F("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((i) => /* @__PURE__ */ w.jsx(
|
|
2563
2577
|
"div",
|
|
2564
2578
|
{
|
|
2565
2579
|
className: F(
|
|
@@ -2569,8 +2583,8 @@ const lr = ({
|
|
|
2569
2583
|
},
|
|
2570
2584
|
n == null ? void 0 : n.tableRow
|
|
2571
2585
|
),
|
|
2572
|
-
children:
|
|
2573
|
-
const
|
|
2586
|
+
children: i.getVisibleCells().map((s, u) => {
|
|
2587
|
+
const l = t.getHeaderGroups()[0].headers[u];
|
|
2574
2588
|
return /* @__PURE__ */ w.jsxs(
|
|
2575
2589
|
"div",
|
|
2576
2590
|
{
|
|
@@ -2578,48 +2592,49 @@ const lr = ({
|
|
|
2578
2592
|
"grid grid-cols-2 p-2",
|
|
2579
2593
|
{
|
|
2580
2594
|
"px-2": e === "odd",
|
|
2581
|
-
"font-medium":
|
|
2595
|
+
"font-medium": u !== 0
|
|
2582
2596
|
},
|
|
2583
2597
|
n == null ? void 0 : n.tableCell
|
|
2584
2598
|
),
|
|
2585
2599
|
children: [
|
|
2586
|
-
o && /* @__PURE__ */ w.jsx("p", { className: "font-bold", children:
|
|
2587
|
-
/* @__PURE__ */ w.jsx("p", { children:
|
|
2600
|
+
o && /* @__PURE__ */ w.jsx("p", { className: "font-bold", children: Ge(l.column.columnDef.header, l.getContext()) }),
|
|
2601
|
+
/* @__PURE__ */ w.jsx("p", { children: Ge(s.column.columnDef.cell, s.getContext()) })
|
|
2588
2602
|
]
|
|
2589
2603
|
},
|
|
2590
|
-
|
|
2604
|
+
s.id
|
|
2591
2605
|
);
|
|
2592
2606
|
})
|
|
2593
2607
|
},
|
|
2594
|
-
|
|
2595
|
-
)) : /* @__PURE__ */ w.jsx("div", { children:
|
|
2608
|
+
i.id
|
|
2609
|
+
)) : /* @__PURE__ */ w.jsx("div", { children: r }) }), Si = ({
|
|
2596
2610
|
columns: e,
|
|
2597
2611
|
data: o,
|
|
2598
2612
|
enableHeaders: t = !0,
|
|
2599
2613
|
mode: n = "solid",
|
|
2600
2614
|
classes: r,
|
|
2601
2615
|
pagination: i = !0,
|
|
2602
|
-
|
|
2616
|
+
empty: s,
|
|
2617
|
+
pageSize: u = 10
|
|
2603
2618
|
}) => {
|
|
2604
|
-
const [
|
|
2619
|
+
const [l, a] = oe([]), [d, f] = oe([]), [g, c] = oe({
|
|
2605
2620
|
pageIndex: 0,
|
|
2606
|
-
pageSize:
|
|
2607
|
-
}),
|
|
2621
|
+
pageSize: u
|
|
2622
|
+
}), p = sr({
|
|
2608
2623
|
data: o,
|
|
2609
2624
|
columns: e,
|
|
2610
|
-
state: { columnFilters:
|
|
2625
|
+
state: { columnFilters: l, sorting: d, pagination: g },
|
|
2611
2626
|
enableRowSelection: !0,
|
|
2612
|
-
onSortingChange:
|
|
2613
|
-
onColumnFiltersChange:
|
|
2614
|
-
onPaginationChange:
|
|
2627
|
+
onSortingChange: f,
|
|
2628
|
+
onColumnFiltersChange: a,
|
|
2629
|
+
onPaginationChange: c,
|
|
2615
2630
|
getCoreRowModel: Xo(),
|
|
2616
2631
|
getFilteredRowModel: er(),
|
|
2617
2632
|
getSortedRowModel: nr(),
|
|
2618
2633
|
getFacetedRowModel: Yo(),
|
|
2619
2634
|
getFacetedUniqueValues: Zo(),
|
|
2620
2635
|
getPaginationRowModel: tr()
|
|
2621
|
-
}), { isMobile:
|
|
2622
|
-
return
|
|
2636
|
+
}), { isMobile: m } = qe();
|
|
2637
|
+
return m ? /* @__PURE__ */ w.jsx(cr, { table: p, enableHeaders: t, empty: s, mode: n, classes: r }) : /* @__PURE__ */ w.jsx(ar, { table: p, enableHeaders: t, empty: s, mode: n, pagination: i, classes: r });
|
|
2623
2638
|
};
|
|
2624
2639
|
class wi {
|
|
2625
2640
|
static getColumnHelper() {
|
|
@@ -2634,8 +2649,8 @@ class wi {
|
|
|
2634
2649
|
headerAccessor: u
|
|
2635
2650
|
} = t || {};
|
|
2636
2651
|
return Object.keys(o).map((a) => n.accessor(a, {
|
|
2637
|
-
header: (
|
|
2638
|
-
const { column: f } =
|
|
2652
|
+
header: (d) => {
|
|
2653
|
+
const { column: f } = d, g = u ? u[a] : null;
|
|
2639
2654
|
return /* @__PURE__ */ w.jsx(
|
|
2640
2655
|
so,
|
|
2641
2656
|
{
|
|
@@ -2643,13 +2658,13 @@ class wi {
|
|
|
2643
2658
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
2644
2659
|
toggleSorting: f.toggleSorting,
|
|
2645
2660
|
canSort: f.getCanSort(),
|
|
2646
|
-
children:
|
|
2661
|
+
children: g ? g(a, d) : a
|
|
2647
2662
|
}
|
|
2648
2663
|
);
|
|
2649
2664
|
},
|
|
2650
|
-
cell: (
|
|
2665
|
+
cell: (d) => {
|
|
2651
2666
|
const f = s ? s[a] : null;
|
|
2652
|
-
return f ? f(
|
|
2667
|
+
return f ? f(d) : d.getValue();
|
|
2653
2668
|
},
|
|
2654
2669
|
enableColumnFilter: Nt.isBoolean(r) ? r : r.includes(a),
|
|
2655
2670
|
enableSorting: Nt.isBoolean(i) ? i : i.includes(a)
|
|
@@ -2720,7 +2735,7 @@ function mr(e, o) {
|
|
|
2720
2735
|
return o && o(t) || t;
|
|
2721
2736
|
}
|
|
2722
2737
|
function xt(e = {}) {
|
|
2723
|
-
let o, t, n, r, i = null, s = 0, u = !1, l = !1, a = !1,
|
|
2738
|
+
let o, t, n, r, i = null, s = 0, u = !1, l = !1, a = !1, d = !1;
|
|
2724
2739
|
function f(E, j) {
|
|
2725
2740
|
t = E;
|
|
2726
2741
|
const {
|
|
@@ -2728,14 +2743,14 @@ function xt(e = {}) {
|
|
|
2728
2743
|
optionsAtMedia: K
|
|
2729
2744
|
} = j, J = U(fr, xt.globalOptions), Y = U(J, e);
|
|
2730
2745
|
if (o = K(Y), t.scrollSnapList().length <= 1) return;
|
|
2731
|
-
|
|
2746
|
+
d = o.jump, n = !1, r = pr(t, o.delay);
|
|
2732
2747
|
const {
|
|
2733
2748
|
eventStore: te,
|
|
2734
2749
|
ownerDocument: X
|
|
2735
2750
|
} = t.internalEngine(), re = !!t.internalEngine().options.watchDrag, ie = mr(t, o.rootNode);
|
|
2736
2751
|
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();
|
|
2737
2752
|
}
|
|
2738
|
-
function
|
|
2753
|
+
function g() {
|
|
2739
2754
|
t.off("pointerDown", v).off("pointerUp", _).off("slideFocusStart", S), S(), n = !0, u = !1;
|
|
2740
2755
|
}
|
|
2741
2756
|
function c() {
|
|
@@ -2786,7 +2801,7 @@ function xt(e = {}) {
|
|
|
2786
2801
|
l = !1, m();
|
|
2787
2802
|
}
|
|
2788
2803
|
function M(E) {
|
|
2789
|
-
typeof E < "u" && (
|
|
2804
|
+
typeof E < "u" && (d = E), m();
|
|
2790
2805
|
}
|
|
2791
2806
|
function b() {
|
|
2792
2807
|
u && S();
|
|
@@ -2801,7 +2816,7 @@ function xt(e = {}) {
|
|
|
2801
2816
|
const {
|
|
2802
2817
|
index: E
|
|
2803
2818
|
} = t.internalEngine(), j = E.clone().add(1).get(), U = t.scrollSnapList().length - 1, K = o.stopOnLastSnap && j === U;
|
|
2804
|
-
if (t.canScrollNext() ? t.scrollNext(
|
|
2819
|
+
if (t.canScrollNext() ? t.scrollNext(d) : t.scrollTo(0, d), t.emit("autoplay:select"), K) return S();
|
|
2805
2820
|
m();
|
|
2806
2821
|
}
|
|
2807
2822
|
function N() {
|
|
@@ -2813,7 +2828,7 @@ function xt(e = {}) {
|
|
|
2813
2828
|
name: "autoplay",
|
|
2814
2829
|
options: e,
|
|
2815
2830
|
init: f,
|
|
2816
|
-
destroy:
|
|
2831
|
+
destroy: g,
|
|
2817
2832
|
play: M,
|
|
2818
2833
|
stop: b,
|
|
2819
2834
|
reset: P,
|
|
@@ -2857,7 +2872,7 @@ function Ft(e) {
|
|
|
2857
2872
|
function pt(e) {
|
|
2858
2873
|
return typeof e == "string";
|
|
2859
2874
|
}
|
|
2860
|
-
function
|
|
2875
|
+
function Xe(e) {
|
|
2861
2876
|
return typeof e == "boolean";
|
|
2862
2877
|
}
|
|
2863
2878
|
function Bt(e) {
|
|
@@ -2960,7 +2975,7 @@ function xr(e, o, t, n) {
|
|
|
2960
2975
|
e.hidden && p();
|
|
2961
2976
|
});
|
|
2962
2977
|
}
|
|
2963
|
-
function
|
|
2978
|
+
function d() {
|
|
2964
2979
|
c(), r.clear();
|
|
2965
2980
|
}
|
|
2966
2981
|
function f(S) {
|
|
@@ -2972,7 +2987,7 @@ function xr(e, o, t, n) {
|
|
|
2972
2987
|
const C = u / i;
|
|
2973
2988
|
n(C), l && (l = o.requestAnimationFrame(f));
|
|
2974
2989
|
}
|
|
2975
|
-
function
|
|
2990
|
+
function g() {
|
|
2976
2991
|
l || (l = o.requestAnimationFrame(f));
|
|
2977
2992
|
}
|
|
2978
2993
|
function c() {
|
|
@@ -2983,15 +2998,15 @@ function xr(e, o, t, n) {
|
|
|
2983
2998
|
}
|
|
2984
2999
|
return {
|
|
2985
3000
|
init: a,
|
|
2986
|
-
destroy:
|
|
2987
|
-
start:
|
|
3001
|
+
destroy: d,
|
|
3002
|
+
start: g,
|
|
2988
3003
|
stop: c,
|
|
2989
3004
|
update: t,
|
|
2990
3005
|
render: n
|
|
2991
3006
|
};
|
|
2992
3007
|
}
|
|
2993
3008
|
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 =
|
|
3009
|
+
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", s = !n && t ? -1 : 1, u = d(), l = f();
|
|
2995
3010
|
function a(p) {
|
|
2996
3011
|
const {
|
|
2997
3012
|
height: m,
|
|
@@ -2999,13 +3014,13 @@ function yr(e, o) {
|
|
|
2999
3014
|
} = p;
|
|
3000
3015
|
return n ? m : S;
|
|
3001
3016
|
}
|
|
3002
|
-
function
|
|
3017
|
+
function d() {
|
|
3003
3018
|
return n ? "top" : t ? "right" : "left";
|
|
3004
3019
|
}
|
|
3005
3020
|
function f() {
|
|
3006
3021
|
return n ? "bottom" : t ? "left" : "right";
|
|
3007
3022
|
}
|
|
3008
|
-
function
|
|
3023
|
+
function g(p) {
|
|
3009
3024
|
return p * s;
|
|
3010
3025
|
}
|
|
3011
3026
|
return {
|
|
@@ -3014,7 +3029,7 @@ function yr(e, o) {
|
|
|
3014
3029
|
startEdge: u,
|
|
3015
3030
|
endEdge: l,
|
|
3016
3031
|
measureSize: a,
|
|
3017
|
-
direction:
|
|
3032
|
+
direction: g
|
|
3018
3033
|
};
|
|
3019
3034
|
}
|
|
3020
3035
|
function we(e = 0, o = 0) {
|
|
@@ -3050,30 +3065,30 @@ function yn(e, o, t) {
|
|
|
3050
3065
|
constrain: n
|
|
3051
3066
|
} = we(0, e), r = e + 1;
|
|
3052
3067
|
let i = s(o);
|
|
3053
|
-
function s(
|
|
3054
|
-
return t ? A((r +
|
|
3068
|
+
function s(g) {
|
|
3069
|
+
return t ? A((r + g) % r) : n(g);
|
|
3055
3070
|
}
|
|
3056
3071
|
function u() {
|
|
3057
3072
|
return i;
|
|
3058
3073
|
}
|
|
3059
|
-
function l(
|
|
3060
|
-
return i = s(
|
|
3074
|
+
function l(g) {
|
|
3075
|
+
return i = s(g), f;
|
|
3061
3076
|
}
|
|
3062
|
-
function a(
|
|
3063
|
-
return
|
|
3077
|
+
function a(g) {
|
|
3078
|
+
return d().set(u() + g);
|
|
3064
3079
|
}
|
|
3065
|
-
function
|
|
3080
|
+
function d() {
|
|
3066
3081
|
return yn(e, u(), t);
|
|
3067
3082
|
}
|
|
3068
3083
|
const f = {
|
|
3069
3084
|
get: u,
|
|
3070
3085
|
set: l,
|
|
3071
3086
|
add: a,
|
|
3072
|
-
clone:
|
|
3087
|
+
clone: d
|
|
3073
3088
|
};
|
|
3074
3089
|
return f;
|
|
3075
3090
|
}
|
|
3076
|
-
function Fr(e, o, t, n, r, i, s, u, l, a,
|
|
3091
|
+
function Fr(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
3077
3092
|
const {
|
|
3078
3093
|
cross: v,
|
|
3079
3094
|
direction: _
|
|
@@ -3090,7 +3105,7 @@ function Fr(e, o, t, n, r, i, s, u, l, a, g, f, d, c, p, m, S, h, C) {
|
|
|
3090
3105
|
function te(R) {
|
|
3091
3106
|
if (!C) return;
|
|
3092
3107
|
function D(z) {
|
|
3093
|
-
(
|
|
3108
|
+
(Xe(C) || C(R, z)) && xe(z);
|
|
3094
3109
|
}
|
|
3095
3110
|
const T = o;
|
|
3096
3111
|
M.add(T, "dragstart", (z) => z.preventDefault(), V).add(T, "touchmove", () => {
|
|
@@ -3112,12 +3127,12 @@ function Fr(e, o, t, n, r, i, s, u, l, a, g, f, d, c, p, m, S, h, C) {
|
|
|
3112
3127
|
return (p ? $ : L)[Y ? "mouse" : "touch"];
|
|
3113
3128
|
}
|
|
3114
3129
|
function Re(R, D) {
|
|
3115
|
-
const T = f.add(_t(R) * -1), z =
|
|
3116
|
-
return p || A(R) < P ? z : S && D ? z * 0.5 :
|
|
3130
|
+
const T = f.add(_t(R) * -1), z = d.byDistance(R, !p).distance;
|
|
3131
|
+
return p || A(R) < P ? z : S && D ? z * 0.5 : d.byIndex(T.get(), 0).distance;
|
|
3117
3132
|
}
|
|
3118
3133
|
function xe(R) {
|
|
3119
3134
|
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),
|
|
3135
|
+
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), g.emit("pointerDown")));
|
|
3121
3136
|
}
|
|
3122
3137
|
function k(R) {
|
|
3123
3138
|
if (!mt(R, n) && R.touches.length >= 2) return G(R);
|
|
@@ -3128,8 +3143,8 @@ function Fr(e, o, t, n, r, i, s, u, l, a, g, f, d, c, p, m, S, h, C) {
|
|
|
3128
3143
|
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(me)), R.preventDefault();
|
|
3129
3144
|
}
|
|
3130
3145
|
function G(R) {
|
|
3131
|
-
const T =
|
|
3132
|
-
K = !1, U = !1, b.clear(), a.useDuration(me).useFriction(de), l.distance(ne, !p), Y = !1,
|
|
3146
|
+
const T = d.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;
|
|
3147
|
+
K = !1, U = !1, b.clear(), a.useDuration(me).useFriction(de), l.distance(ne, !p), Y = !1, g.emit("pointerUp");
|
|
3133
3148
|
}
|
|
3134
3149
|
function le(R) {
|
|
3135
3150
|
J && (R.stopPropagation(), R.preventDefault(), J = !1);
|
|
@@ -3148,20 +3163,20 @@ function _r(e, o) {
|
|
|
3148
3163
|
function i(f) {
|
|
3149
3164
|
return f.timeStamp;
|
|
3150
3165
|
}
|
|
3151
|
-
function s(f,
|
|
3152
|
-
const p = `client${(
|
|
3166
|
+
function s(f, g) {
|
|
3167
|
+
const p = `client${(g || e.scroll) === "x" ? "X" : "Y"}`;
|
|
3153
3168
|
return (mt(f, o) ? f : f.touches[0])[p];
|
|
3154
3169
|
}
|
|
3155
3170
|
function u(f) {
|
|
3156
3171
|
return n = f, r = f, s(f);
|
|
3157
3172
|
}
|
|
3158
3173
|
function l(f) {
|
|
3159
|
-
const
|
|
3160
|
-
return r = f, c && (n = f),
|
|
3174
|
+
const g = s(f) - s(r), c = i(f) - i(n) > 170;
|
|
3175
|
+
return r = f, c && (n = f), g;
|
|
3161
3176
|
}
|
|
3162
3177
|
function a(f) {
|
|
3163
3178
|
if (!n || !r) return 0;
|
|
3164
|
-
const
|
|
3179
|
+
const g = s(r) - s(n), c = i(f) - i(n), p = i(f) - i(r) > 170, m = g / c;
|
|
3165
3180
|
return c && !p && A(m) > 0.1 ? m : 0;
|
|
3166
3181
|
}
|
|
3167
3182
|
return {
|
|
@@ -3202,17 +3217,17 @@ function Mr(e) {
|
|
|
3202
3217
|
}
|
|
3203
3218
|
function Vr(e, o, t, n, r, i, s) {
|
|
3204
3219
|
const u = [e].concat(n);
|
|
3205
|
-
let l, a,
|
|
3206
|
-
function
|
|
3220
|
+
let l, a, d = [], f = !1;
|
|
3221
|
+
function g(S) {
|
|
3207
3222
|
return r.measureSize(s.measure(S));
|
|
3208
3223
|
}
|
|
3209
3224
|
function c(S) {
|
|
3210
3225
|
if (!i) return;
|
|
3211
|
-
a =
|
|
3226
|
+
a = g(e), d = n.map(g);
|
|
3212
3227
|
function h(C) {
|
|
3213
3228
|
for (const v of C) {
|
|
3214
3229
|
if (f) return;
|
|
3215
|
-
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a :
|
|
3230
|
+
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a : d[I], M = g(_ ? e : n[I]);
|
|
3216
3231
|
if (A(M - V) >= 0.5) {
|
|
3217
3232
|
S.reInit(), o.emit("resize");
|
|
3218
3233
|
break;
|
|
@@ -3220,7 +3235,7 @@ function Vr(e, o, t, n, r, i, s) {
|
|
|
3220
3235
|
}
|
|
3221
3236
|
}
|
|
3222
3237
|
l = new ResizeObserver((C) => {
|
|
3223
|
-
(
|
|
3238
|
+
(Xe(i) || i(S, C)) && h(C);
|
|
3224
3239
|
}), t.requestAnimationFrame(() => {
|
|
3225
3240
|
u.forEach((C) => l.observe(C));
|
|
3226
3241
|
});
|
|
@@ -3234,11 +3249,11 @@ function Vr(e, o, t, n, r, i, s) {
|
|
|
3234
3249
|
};
|
|
3235
3250
|
}
|
|
3236
3251
|
function br(e, o, t, n, r, i) {
|
|
3237
|
-
let s = 0, u = 0, l = r, a = i,
|
|
3238
|
-
function
|
|
3252
|
+
let s = 0, u = 0, l = r, a = i, d = e.get(), f = 0;
|
|
3253
|
+
function g() {
|
|
3239
3254
|
const V = n.get() - e.get(), M = !l;
|
|
3240
3255
|
let b = 0;
|
|
3241
|
-
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a,
|
|
3256
|
+
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a, d += s, e.add(s), b = d - f), u = _t(b), f = d, I;
|
|
3242
3257
|
}
|
|
3243
3258
|
function c() {
|
|
3244
3259
|
const V = n.get() - o.get();
|
|
@@ -3269,7 +3284,7 @@ function br(e, o, t, n, r, i) {
|
|
|
3269
3284
|
direction: m,
|
|
3270
3285
|
duration: p,
|
|
3271
3286
|
velocity: S,
|
|
3272
|
-
seek:
|
|
3287
|
+
seek: g,
|
|
3273
3288
|
settled: c,
|
|
3274
3289
|
useBaseFriction: C,
|
|
3275
3290
|
useBaseDuration: h,
|
|
@@ -3284,7 +3299,7 @@ function Pr(e, o, t, n, r) {
|
|
|
3284
3299
|
function a() {
|
|
3285
3300
|
return !(l || !e.reachedAny(t.get()) || !e.reachedAny(o.get()));
|
|
3286
3301
|
}
|
|
3287
|
-
function
|
|
3302
|
+
function d(c) {
|
|
3288
3303
|
if (!a()) return;
|
|
3289
3304
|
const p = e.reachedMin(o.get()) ? "min" : "max", m = A(e[p] - o.get()), S = t.get() - o.get(), h = u.constrain(m / s);
|
|
3290
3305
|
t.subtract(S * h), !c && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
|
|
@@ -3294,16 +3309,16 @@ function Pr(e, o, t, n, r) {
|
|
|
3294
3309
|
}
|
|
3295
3310
|
return {
|
|
3296
3311
|
shouldConstrain: a,
|
|
3297
|
-
constrain:
|
|
3312
|
+
constrain: d,
|
|
3298
3313
|
toggleActive: f
|
|
3299
3314
|
};
|
|
3300
3315
|
}
|
|
3301
3316
|
function $r(e, o, t, n, r) {
|
|
3302
|
-
const i = we(-o + e, 0), s = f(), u =
|
|
3317
|
+
const i = we(-o + e, 0), s = f(), u = d(), l = g();
|
|
3303
3318
|
function a(p, m) {
|
|
3304
3319
|
return Ve(p, m) <= 1;
|
|
3305
3320
|
}
|
|
3306
|
-
function
|
|
3321
|
+
function d() {
|
|
3307
3322
|
const p = s[0], m = ee(s), S = s.lastIndexOf(p), h = s.indexOf(m) + 1;
|
|
3308
3323
|
return we(S, h);
|
|
3309
3324
|
}
|
|
@@ -3316,7 +3331,7 @@ function $r(e, o, t, n, r) {
|
|
|
3316
3331
|
return v ? h : _ || a(S, C) ? S : a(h, C) ? h : C;
|
|
3317
3332
|
}).map((p) => parseFloat(p.toFixed(3)));
|
|
3318
3333
|
}
|
|
3319
|
-
function
|
|
3334
|
+
function g() {
|
|
3320
3335
|
if (o <= e + r) return [i.max];
|
|
3321
3336
|
if (n === "keepSnaps") return s;
|
|
3322
3337
|
const {
|
|
@@ -3341,16 +3356,16 @@ function Dr(e, o, t, n) {
|
|
|
3341
3356
|
reachedMin: u,
|
|
3342
3357
|
reachedMax: l
|
|
3343
3358
|
} = we(i, s);
|
|
3344
|
-
function a(
|
|
3345
|
-
return
|
|
3359
|
+
function a(g) {
|
|
3360
|
+
return g === 1 ? l(t.get()) : g === -1 ? u(t.get()) : !1;
|
|
3346
3361
|
}
|
|
3347
|
-
function g
|
|
3348
|
-
if (!a(
|
|
3349
|
-
const c = e * (
|
|
3362
|
+
function d(g) {
|
|
3363
|
+
if (!a(g)) return;
|
|
3364
|
+
const c = e * (g * -1);
|
|
3350
3365
|
n.forEach((p) => p.add(c));
|
|
3351
3366
|
}
|
|
3352
3367
|
return {
|
|
3353
|
-
loop:
|
|
3368
|
+
loop: d
|
|
3354
3369
|
};
|
|
3355
3370
|
}
|
|
3356
3371
|
function Lr(e) {
|
|
@@ -3372,11 +3387,11 @@ function Or(e, o, t, n, r) {
|
|
|
3372
3387
|
endEdge: s
|
|
3373
3388
|
} = e, {
|
|
3374
3389
|
groupSlides: u
|
|
3375
|
-
} = r, l = f().map(o.measure), a =
|
|
3390
|
+
} = r, l = f().map(o.measure), a = g(), d = c();
|
|
3376
3391
|
function f() {
|
|
3377
3392
|
return u(n).map((m) => ee(m)[s] - m[0][i]).map(A);
|
|
3378
3393
|
}
|
|
3379
|
-
function
|
|
3394
|
+
function g() {
|
|
3380
3395
|
return n.map((m) => t[i] - m[i]).map((m) => -A(m));
|
|
3381
3396
|
}
|
|
3382
3397
|
function c() {
|
|
@@ -3384,7 +3399,7 @@ function Or(e, o, t, n, r) {
|
|
|
3384
3399
|
}
|
|
3385
3400
|
return {
|
|
3386
3401
|
snaps: a,
|
|
3387
|
-
snapsAligned:
|
|
3402
|
+
snapsAligned: d
|
|
3388
3403
|
};
|
|
3389
3404
|
}
|
|
3390
3405
|
function Ar(e, o, t, n, r, i) {
|
|
@@ -3393,10 +3408,10 @@ function Ar(e, o, t, n, r, i) {
|
|
|
3393
3408
|
} = r, {
|
|
3394
3409
|
min: u,
|
|
3395
3410
|
max: l
|
|
3396
|
-
} = n, a =
|
|
3397
|
-
function
|
|
3398
|
-
const
|
|
3399
|
-
return t.length === 1 ? [i] : c ?
|
|
3411
|
+
} = n, a = d();
|
|
3412
|
+
function d() {
|
|
3413
|
+
const g = s(i), c = !e || o === "keepSnaps";
|
|
3414
|
+
return t.length === 1 ? [i] : c ? g : g.slice(u, l).map((p, m, S) => {
|
|
3400
3415
|
const h = !m, C = It(S, m);
|
|
3401
3416
|
if (h) {
|
|
3402
3417
|
const v = ee(S[0]) + 1;
|
|
@@ -3424,7 +3439,7 @@ function Nr(e, o, t, n, r) {
|
|
|
3424
3439
|
}
|
|
3425
3440
|
function a(p) {
|
|
3426
3441
|
const m = e ? s(p) : u(p), S = o.map((C, v) => ({
|
|
3427
|
-
diff:
|
|
3442
|
+
diff: d(C - m, 0),
|
|
3428
3443
|
index: v
|
|
3429
3444
|
})).sort((C, v) => A(C.diff) - A(v.diff)), {
|
|
3430
3445
|
index: h
|
|
@@ -3434,7 +3449,7 @@ function Nr(e, o, t, n, r) {
|
|
|
3434
3449
|
distance: m
|
|
3435
3450
|
};
|
|
3436
3451
|
}
|
|
3437
|
-
function
|
|
3452
|
+
function d(p, m) {
|
|
3438
3453
|
const S = [p, p + t, p - t];
|
|
3439
3454
|
if (!e) return p;
|
|
3440
3455
|
if (!m) return l(S);
|
|
@@ -3442,13 +3457,13 @@ function Nr(e, o, t, n, r) {
|
|
|
3442
3457
|
return h.length ? l(h) : ee(S) - t;
|
|
3443
3458
|
}
|
|
3444
3459
|
function f(p, m) {
|
|
3445
|
-
const S = o[p] - r.get(), h =
|
|
3460
|
+
const S = o[p] - r.get(), h = d(S, m);
|
|
3446
3461
|
return {
|
|
3447
3462
|
index: p,
|
|
3448
3463
|
distance: h
|
|
3449
3464
|
};
|
|
3450
3465
|
}
|
|
3451
|
-
function
|
|
3466
|
+
function g(p, m) {
|
|
3452
3467
|
const S = r.get() + p, {
|
|
3453
3468
|
index: h,
|
|
3454
3469
|
distance: C
|
|
@@ -3457,29 +3472,29 @@ function Nr(e, o, t, n, r) {
|
|
|
3457
3472
|
index: h,
|
|
3458
3473
|
distance: p
|
|
3459
3474
|
};
|
|
3460
|
-
const _ = o[h] - C, I = p +
|
|
3475
|
+
const _ = o[h] - C, I = p + d(_, 0);
|
|
3461
3476
|
return {
|
|
3462
3477
|
index: h,
|
|
3463
3478
|
distance: I
|
|
3464
3479
|
};
|
|
3465
3480
|
}
|
|
3466
3481
|
return {
|
|
3467
|
-
byDistance:
|
|
3482
|
+
byDistance: g,
|
|
3468
3483
|
byIndex: f,
|
|
3469
|
-
shortcut:
|
|
3484
|
+
shortcut: d
|
|
3470
3485
|
};
|
|
3471
3486
|
}
|
|
3472
3487
|
function Tr(e, o, t, n, r, i, s) {
|
|
3473
3488
|
function u(f) {
|
|
3474
|
-
const
|
|
3475
|
-
i.add(
|
|
3489
|
+
const g = f.distance, c = f.index !== o.get();
|
|
3490
|
+
i.add(g), g && (n.duration() ? e.start() : (e.update(), e.render(1), e.update())), c && (t.set(o.get()), o.set(f.index), s.emit("select"));
|
|
3476
3491
|
}
|
|
3477
|
-
function l(f,
|
|
3478
|
-
const c = r.byDistance(f,
|
|
3492
|
+
function l(f, g) {
|
|
3493
|
+
const c = r.byDistance(f, g);
|
|
3479
3494
|
u(c);
|
|
3480
3495
|
}
|
|
3481
|
-
function a(f,
|
|
3482
|
-
const c = o.clone().set(f), p = r.byIndex(c.get(),
|
|
3496
|
+
function a(f, g) {
|
|
3497
|
+
const c = o.clone().set(f), p = r.byIndex(c.get(), g);
|
|
3483
3498
|
u(p);
|
|
3484
3499
|
}
|
|
3485
3500
|
return {
|
|
@@ -3493,7 +3508,7 @@ function jr(e, o, t, n, r, i, s, u) {
|
|
|
3493
3508
|
capture: !0
|
|
3494
3509
|
};
|
|
3495
3510
|
let a = 0;
|
|
3496
|
-
function
|
|
3511
|
+
function d(c) {
|
|
3497
3512
|
if (!u) return;
|
|
3498
3513
|
function p(m) {
|
|
3499
3514
|
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
@@ -3503,7 +3518,7 @@ function jr(e, o, t, n, r, i, s, u) {
|
|
|
3503
3518
|
}
|
|
3504
3519
|
i.add(document, "keydown", f, !1), o.forEach((m, S) => {
|
|
3505
3520
|
i.add(m, "focus", (h) => {
|
|
3506
|
-
(
|
|
3521
|
+
(Xe(u) || u(c, h)) && p(S);
|
|
3507
3522
|
}, l);
|
|
3508
3523
|
});
|
|
3509
3524
|
}
|
|
@@ -3511,7 +3526,7 @@ function jr(e, o, t, n, r, i, s, u) {
|
|
|
3511
3526
|
c.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
|
|
3512
3527
|
}
|
|
3513
3528
|
return {
|
|
3514
|
-
init:
|
|
3529
|
+
init: d
|
|
3515
3530
|
};
|
|
3516
3531
|
}
|
|
3517
3532
|
function _e(e) {
|
|
@@ -3541,31 +3556,31 @@ function _e(e) {
|
|
|
3541
3556
|
function Fn(e, o) {
|
|
3542
3557
|
const t = e.scroll === "x" ? s : u, n = o.style;
|
|
3543
3558
|
let r = null, i = !1;
|
|
3544
|
-
function s(
|
|
3545
|
-
return `translate3d(${
|
|
3559
|
+
function s(g) {
|
|
3560
|
+
return `translate3d(${g}px,0px,0px)`;
|
|
3546
3561
|
}
|
|
3547
|
-
function u(
|
|
3548
|
-
return `translate3d(0px,${
|
|
3562
|
+
function u(g) {
|
|
3563
|
+
return `translate3d(0px,${g}px,0px)`;
|
|
3549
3564
|
}
|
|
3550
|
-
function l(
|
|
3565
|
+
function l(g) {
|
|
3551
3566
|
if (i) return;
|
|
3552
|
-
const c = vr(e.direction(
|
|
3567
|
+
const c = vr(e.direction(g));
|
|
3553
3568
|
c !== r && (n.transform = t(c), r = c);
|
|
3554
3569
|
}
|
|
3555
|
-
function a(
|
|
3556
|
-
i = !
|
|
3570
|
+
function a(g) {
|
|
3571
|
+
i = !g;
|
|
3557
3572
|
}
|
|
3558
|
-
function
|
|
3573
|
+
function d() {
|
|
3559
3574
|
i || (n.transform = "", o.getAttribute("style") || o.removeAttribute("style"));
|
|
3560
3575
|
}
|
|
3561
3576
|
return {
|
|
3562
|
-
clear:
|
|
3577
|
+
clear: d,
|
|
3563
3578
|
to: l,
|
|
3564
3579
|
toggleActive: a
|
|
3565
3580
|
};
|
|
3566
3581
|
}
|
|
3567
3582
|
function Hr(e, o, t, n, r, i, s, u, l) {
|
|
3568
|
-
const
|
|
3583
|
+
const d = Pe(r), f = Pe(r).reverse(), g = h().concat(C());
|
|
3569
3584
|
function c(M, b) {
|
|
3570
3585
|
return M.reduce((P, L) => P - r[L], b);
|
|
3571
3586
|
}
|
|
@@ -3596,19 +3611,19 @@ function Hr(e, o, t, n, r, i, s, u, l) {
|
|
|
3596
3611
|
return S(b, t, !1);
|
|
3597
3612
|
}
|
|
3598
3613
|
function C() {
|
|
3599
|
-
const M = o - s[0] - 1, b = p(
|
|
3614
|
+
const M = o - s[0] - 1, b = p(d, M);
|
|
3600
3615
|
return S(b, -t, !0);
|
|
3601
3616
|
}
|
|
3602
3617
|
function v() {
|
|
3603
|
-
return
|
|
3618
|
+
return g.every(({
|
|
3604
3619
|
index: M
|
|
3605
3620
|
}) => {
|
|
3606
|
-
const b =
|
|
3621
|
+
const b = d.filter((P) => P !== M);
|
|
3607
3622
|
return c(b, o) <= 0.1;
|
|
3608
3623
|
});
|
|
3609
3624
|
}
|
|
3610
3625
|
function _() {
|
|
3611
|
-
|
|
3626
|
+
g.forEach((M) => {
|
|
3612
3627
|
const {
|
|
3613
3628
|
target: b,
|
|
3614
3629
|
translate: P,
|
|
@@ -3618,28 +3633,28 @@ function Hr(e, o, t, n, r, i, s, u, l) {
|
|
|
3618
3633
|
});
|
|
3619
3634
|
}
|
|
3620
3635
|
function I() {
|
|
3621
|
-
|
|
3636
|
+
g.forEach((M) => M.translate.clear());
|
|
3622
3637
|
}
|
|
3623
3638
|
return {
|
|
3624
3639
|
canLoop: v,
|
|
3625
3640
|
clear: I,
|
|
3626
3641
|
loop: _,
|
|
3627
|
-
loopPoints:
|
|
3642
|
+
loopPoints: g
|
|
3628
3643
|
};
|
|
3629
3644
|
}
|
|
3630
3645
|
function Gr(e, o, t) {
|
|
3631
3646
|
let n, r = !1;
|
|
3632
3647
|
function i(l) {
|
|
3633
3648
|
if (!t) return;
|
|
3634
|
-
function a(
|
|
3635
|
-
for (const f of
|
|
3649
|
+
function a(d) {
|
|
3650
|
+
for (const f of d)
|
|
3636
3651
|
if (f.type === "childList") {
|
|
3637
3652
|
l.reInit(), o.emit("slidesChanged");
|
|
3638
3653
|
break;
|
|
3639
3654
|
}
|
|
3640
3655
|
}
|
|
3641
|
-
n = new MutationObserver((
|
|
3642
|
-
r || (
|
|
3656
|
+
n = new MutationObserver((d) => {
|
|
3657
|
+
r || (Xe(t) || t(l, d)) && a(d);
|
|
3643
3658
|
}), n.observe(e, {
|
|
3644
3659
|
childList: !0
|
|
3645
3660
|
});
|
|
@@ -3666,7 +3681,7 @@ function zr(e, o, t, n) {
|
|
|
3666
3681
|
threshold: n
|
|
3667
3682
|
}), o.forEach((p) => u.observe(p));
|
|
3668
3683
|
}
|
|
3669
|
-
function
|
|
3684
|
+
function d() {
|
|
3670
3685
|
u && u.disconnect(), l = !0;
|
|
3671
3686
|
}
|
|
3672
3687
|
function f(p) {
|
|
@@ -3677,7 +3692,7 @@ function zr(e, o, t, n) {
|
|
|
3677
3692
|
return (p && C || !p && !C) && m.push(h), m;
|
|
3678
3693
|
}, []);
|
|
3679
3694
|
}
|
|
3680
|
-
function
|
|
3695
|
+
function g(p = !0) {
|
|
3681
3696
|
if (p && i) return i;
|
|
3682
3697
|
if (!p && s) return s;
|
|
3683
3698
|
const m = f(p);
|
|
@@ -3685,8 +3700,8 @@ function zr(e, o, t, n) {
|
|
|
3685
3700
|
}
|
|
3686
3701
|
return {
|
|
3687
3702
|
init: a,
|
|
3688
|
-
destroy:
|
|
3689
|
-
get:
|
|
3703
|
+
destroy: d,
|
|
3704
|
+
get: g
|
|
3690
3705
|
};
|
|
3691
3706
|
}
|
|
3692
3707
|
function Br(e, o, t, n, r, i) {
|
|
@@ -3694,7 +3709,7 @@ function Br(e, o, t, n, r, i) {
|
|
|
3694
3709
|
measureSize: s,
|
|
3695
3710
|
startEdge: u,
|
|
3696
3711
|
endEdge: l
|
|
3697
|
-
} = e, a = t[0] && r,
|
|
3712
|
+
} = e, a = t[0] && r, d = p(), f = m(), g = t.map(s), c = S();
|
|
3698
3713
|
function p() {
|
|
3699
3714
|
if (!a) return 0;
|
|
3700
3715
|
const C = t[0];
|
|
@@ -3708,28 +3723,28 @@ function Br(e, o, t, n, r, i) {
|
|
|
3708
3723
|
function S() {
|
|
3709
3724
|
return t.map((C, v, _) => {
|
|
3710
3725
|
const I = !v, V = It(_, v);
|
|
3711
|
-
return I ?
|
|
3726
|
+
return I ? g[v] + d : V ? g[v] + f : _[v + 1][u] - C[u];
|
|
3712
3727
|
}).map(A);
|
|
3713
3728
|
}
|
|
3714
3729
|
return {
|
|
3715
|
-
slideSizes:
|
|
3730
|
+
slideSizes: g,
|
|
3716
3731
|
slideSizesWithGaps: c,
|
|
3717
|
-
startGap:
|
|
3732
|
+
startGap: d,
|
|
3718
3733
|
endGap: f
|
|
3719
3734
|
};
|
|
3720
3735
|
}
|
|
3721
3736
|
function kr(e, o, t, n, r, i, s, u, l) {
|
|
3722
3737
|
const {
|
|
3723
3738
|
startEdge: a,
|
|
3724
|
-
endEdge:
|
|
3739
|
+
endEdge: d,
|
|
3725
3740
|
direction: f
|
|
3726
|
-
} = e,
|
|
3741
|
+
} = e, g = Ft(t);
|
|
3727
3742
|
function c(h, C) {
|
|
3728
3743
|
return Pe(h).filter((v) => v % C === 0).map((v) => h.slice(v, v + C));
|
|
3729
3744
|
}
|
|
3730
3745
|
function p(h) {
|
|
3731
3746
|
return h.length ? Pe(h).reduce((C, 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][
|
|
3747
|
+
const I = ee(C) || 0, V = I === 0, M = v === De(h), b = r[a] - i[I][a], P = r[a] - i[v][d], L = !n && V ? f(s) : 0, $ = !n && M ? f(u) : 0, N = A(P - $ - (b + L));
|
|
3733
3748
|
return _ && N > o + l && C.push(v), M && C.push(h.length), C;
|
|
3734
3749
|
}, []).map((C, v, _) => {
|
|
3735
3750
|
const I = Math.max(_[v - 1] || 0);
|
|
@@ -3737,7 +3752,7 @@ function kr(e, o, t, n, r, i, s, u, l) {
|
|
|
3737
3752
|
}) : [];
|
|
3738
3753
|
}
|
|
3739
3754
|
function m(h) {
|
|
3740
|
-
return
|
|
3755
|
+
return g ? c(h, t) : p(h);
|
|
3741
3756
|
}
|
|
3742
3757
|
return {
|
|
3743
3758
|
groupSlides: m
|
|
@@ -3748,9 +3763,9 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3748
3763
|
align: u,
|
|
3749
3764
|
axis: l,
|
|
3750
3765
|
direction: a,
|
|
3751
|
-
startIndex:
|
|
3766
|
+
startIndex: d,
|
|
3752
3767
|
loop: f,
|
|
3753
|
-
duration:
|
|
3768
|
+
duration: g,
|
|
3754
3769
|
dragFree: c,
|
|
3755
3770
|
dragThreshold: p,
|
|
3756
3771
|
inViewThreshold: m,
|
|
@@ -3774,19 +3789,19 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3774
3789
|
scrollContainLimit: xe
|
|
3775
3790
|
} = $r(N, se, ie, C, M), k = j ? Re : ie, {
|
|
3776
3791
|
limit: G
|
|
3777
|
-
} = Er(se, k, f), le = yn(De(k),
|
|
3792
|
+
} = Er(se, k, f), le = yn(De(k), d, f), W = le.clone(), O = Pe(t), R = ({
|
|
3778
3793
|
dragHandler: Ce,
|
|
3779
|
-
scrollBody:
|
|
3780
|
-
scrollBounds:
|
|
3794
|
+
scrollBody: Ye,
|
|
3795
|
+
scrollBounds: Ze,
|
|
3781
3796
|
options: {
|
|
3782
3797
|
loop: Le
|
|
3783
3798
|
}
|
|
3784
3799
|
}) => {
|
|
3785
|
-
Le ||
|
|
3800
|
+
Le || Ze.constrain(Ce.pointerDown()), Ye.seek();
|
|
3786
3801
|
}, D = ({
|
|
3787
3802
|
scrollBody: Ce,
|
|
3788
|
-
translate:
|
|
3789
|
-
location:
|
|
3803
|
+
translate: Ye,
|
|
3804
|
+
location: Ze,
|
|
3790
3805
|
offsetLocation: Le,
|
|
3791
3806
|
previousLocation: Mn,
|
|
3792
3807
|
scrollLooper: Vn,
|
|
@@ -3801,11 +3816,11 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3801
3816
|
}, Dt) => {
|
|
3802
3817
|
const Lt = Ce.settled(), Dn = !En.shouldConstrain(), Ot = Et ? Lt : Lt && Dn, At = Ot && !Pn.pointerDown();
|
|
3803
3818
|
At && $n.stop();
|
|
3804
|
-
const Ln =
|
|
3805
|
-
Le.set(Ln), Et && (Vn.loop(Ce.direction()), bn.loop()),
|
|
3806
|
-
}, T = xr(n, r, () => R(
|
|
3819
|
+
const Ln = Ze.get() * Dt + Mn.get() * (1 - Dt);
|
|
3820
|
+
Le.set(Ln), Et && (Vn.loop(Ce.direction()), bn.loop()), Ye.to(Le.get()), At && $t.emit("settle"), Ot || $t.emit("scroll");
|
|
3821
|
+
}, T = xr(n, r, () => R(Je), (Ce) => D(Je, 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, g, z), We = Nr(f, k, se, G, he), Qe = Tr(T, le, W, ye, We, he, s), Vt = Lr(G), bt = Ee(), _n = zr(o, t, s, m), {
|
|
3807
3822
|
slideRegistry: Pt
|
|
3808
|
-
} = Ar(j, C, k, xe, X, O), In = jr(e, t, Pt,
|
|
3823
|
+
} = Ar(j, C, k, xe, X, O), In = jr(e, t, Pt, Qe, ye, bt, s, V), Je = {
|
|
3809
3824
|
ownerDocument: n,
|
|
3810
3825
|
ownerWindow: r,
|
|
3811
3826
|
eventHandler: s,
|
|
@@ -3813,7 +3828,7 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3813
3828
|
slideRects: L,
|
|
3814
3829
|
animation: T,
|
|
3815
3830
|
axis: $,
|
|
3816
|
-
dragHandler: Fr($, e, n, r, he, _r($, r), ue, T,
|
|
3831
|
+
dragHandler: Fr($, e, n, r, he, _r($, r), ue, T, Qe, ye, We, le, s, B, c, p, h, z, I),
|
|
3817
3832
|
eventStore: bt,
|
|
3818
3833
|
percentOfView: B,
|
|
3819
3834
|
index: le,
|
|
@@ -3830,8 +3845,8 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3830
3845
|
scrollProgress: Vt,
|
|
3831
3846
|
scrollSnapList: k.map(Vt.get),
|
|
3832
3847
|
scrollSnaps: k,
|
|
3833
|
-
scrollTarget:
|
|
3834
|
-
scrollTo:
|
|
3848
|
+
scrollTarget: We,
|
|
3849
|
+
scrollTo: Qe,
|
|
3835
3850
|
slideLooper: Hr($, N, se, K, J, re, k, de, t),
|
|
3836
3851
|
slideFocus: In,
|
|
3837
3852
|
slidesHandler: Gr(o, s, _),
|
|
@@ -3842,7 +3857,7 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3842
3857
|
target: he,
|
|
3843
3858
|
translate: Fn($, o)
|
|
3844
3859
|
};
|
|
3845
|
-
return
|
|
3860
|
+
return Je;
|
|
3846
3861
|
}
|
|
3847
3862
|
function Ur() {
|
|
3848
3863
|
let e = {}, o;
|
|
@@ -3853,13 +3868,13 @@ function Ur() {
|
|
|
3853
3868
|
return e[a] || [];
|
|
3854
3869
|
}
|
|
3855
3870
|
function r(a) {
|
|
3856
|
-
return n(a).forEach((
|
|
3871
|
+
return n(a).forEach((d) => d(o, a)), l;
|
|
3857
3872
|
}
|
|
3858
|
-
function i(a,
|
|
3859
|
-
return e[a] = n(a).concat([
|
|
3873
|
+
function i(a, d) {
|
|
3874
|
+
return e[a] = n(a).concat([d]), l;
|
|
3860
3875
|
}
|
|
3861
|
-
function s(a,
|
|
3862
|
-
return e[a] = n(a).filter((f) => f !==
|
|
3876
|
+
function s(a, d) {
|
|
3877
|
+
return e[a] = n(a).filter((f) => f !== d), l;
|
|
3863
3878
|
}
|
|
3864
3879
|
function u() {
|
|
3865
3880
|
e = {};
|
|
@@ -3929,17 +3944,17 @@ function Wr(e) {
|
|
|
3929
3944
|
destroy: n
|
|
3930
3945
|
};
|
|
3931
3946
|
}
|
|
3932
|
-
function
|
|
3947
|
+
function ze(e, o, t) {
|
|
3933
3948
|
const n = e.ownerDocument, r = n.defaultView, i = Xr(r), s = Wr(i), u = Ee(), l = Ur(), {
|
|
3934
3949
|
mergeOptions: a,
|
|
3935
|
-
optionsAtMedia:
|
|
3950
|
+
optionsAtMedia: d,
|
|
3936
3951
|
optionsMediaQueries: f
|
|
3937
3952
|
} = i, {
|
|
3938
|
-
on:
|
|
3953
|
+
on: g,
|
|
3939
3954
|
off: c,
|
|
3940
3955
|
emit: p
|
|
3941
3956
|
} = l, m = $;
|
|
3942
|
-
let S = !1, h, C = a(Kr,
|
|
3957
|
+
let S = !1, h, C = a(Kr, ze.globalOptions), v = a(C), _ = [], I, V, M;
|
|
3943
3958
|
function b() {
|
|
3944
3959
|
const {
|
|
3945
3960
|
container: O,
|
|
@@ -3960,7 +3975,7 @@ function Ge(e, o, t) {
|
|
|
3960
3975
|
return R;
|
|
3961
3976
|
}
|
|
3962
3977
|
function L(O, R) {
|
|
3963
|
-
S || (C = a(C, O), v =
|
|
3978
|
+
S || (C = a(C, O), v = d(C), _ = R || _, b(), h = P(v), f([C, ..._.map(({
|
|
3964
3979
|
options: D
|
|
3965
3980
|
}) => 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, _)));
|
|
3966
3981
|
}
|
|
@@ -4033,7 +4048,7 @@ function Ge(e, o, t) {
|
|
|
4033
4048
|
internalEngine: xe,
|
|
4034
4049
|
destroy: B,
|
|
4035
4050
|
off: c,
|
|
4036
|
-
on:
|
|
4051
|
+
on: g,
|
|
4037
4052
|
emit: p,
|
|
4038
4053
|
plugins: Re,
|
|
4039
4054
|
previousScrollSnap: re,
|
|
@@ -4051,9 +4066,9 @@ function Ge(e, o, t) {
|
|
|
4051
4066
|
};
|
|
4052
4067
|
return L(o, t), setTimeout(() => l.emit("init"), 0), W;
|
|
4053
4068
|
}
|
|
4054
|
-
|
|
4069
|
+
ze.globalOptions = void 0;
|
|
4055
4070
|
function Mt(e = {}, o = []) {
|
|
4056
|
-
const t =
|
|
4071
|
+
const t = je(e), n = je(o), [r, i] = oe(), [s, u] = oe(), l = Se(() => {
|
|
4057
4072
|
r && r.reInit(t.current, n.current);
|
|
4058
4073
|
}, [r]);
|
|
4059
4074
|
return ve(() => {
|
|
@@ -4062,8 +4077,8 @@ function Mt(e = {}, o = []) {
|
|
|
4062
4077
|
wr(n.current, o) || (n.current = o, l());
|
|
4063
4078
|
}, [o, l]), ve(() => {
|
|
4064
4079
|
if (Sr() && s) {
|
|
4065
|
-
|
|
4066
|
-
const a =
|
|
4080
|
+
ze.globalOptions = Mt.globalOptions;
|
|
4081
|
+
const a = ze(s, t.current, n.current);
|
|
4067
4082
|
return i(a), () => a.destroy();
|
|
4068
4083
|
} else
|
|
4069
4084
|
i(void 0);
|
|
@@ -4078,7 +4093,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4078
4093
|
(s.options.stopOnInteraction === !1 ? s.reset : s.stop)();
|
|
4079
4094
|
}, []);
|
|
4080
4095
|
return { emblaRef: t, emblaApi: n, navigationHandler: r };
|
|
4081
|
-
},
|
|
4096
|
+
}, Be = ({ mode: e, onClick: o, children: t, classes: n, ...r }) => /* @__PURE__ */ w.jsxs(
|
|
4082
4097
|
"button",
|
|
4083
4098
|
{
|
|
4084
4099
|
className: F("group flex size-8 cursor-pointer items-center justify-center p-1", n == null ? void 0 : n.button),
|
|
@@ -4129,13 +4144,13 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4129
4144
|
}
|
|
4130
4145
|
), qt = Q(
|
|
4131
4146
|
({ visibleIndex: e, classes: o, children: t, dotsProps: n, dotsOptions: r }, i) => {
|
|
4132
|
-
const { isMobile: s, isDesktop: u } =
|
|
4147
|
+
const { isMobile: s, isDesktop: u } = qe(), { mobVisible: l, deskVisible: a, ...d } = r ?? {}, f = l && s, g = a && u, c = {
|
|
4133
4148
|
visibleIndex: e,
|
|
4134
4149
|
...n
|
|
4135
4150
|
};
|
|
4136
4151
|
return /* @__PURE__ */ w.jsxs("div", { className: F("mx-auto overflow-hidden", o == null ? void 0 : o.slidesOverlay), ref: i, children: [
|
|
4137
4152
|
/* @__PURE__ */ w.jsx("div", { className: F("flex touch-pan-y gap-6", o == null ? void 0 : o.slidesWrapper), children: t }),
|
|
4138
|
-
(
|
|
4153
|
+
(g || f) && /* @__PURE__ */ w.jsx(Jr, { ...c, ...d })
|
|
4139
4154
|
] });
|
|
4140
4155
|
}
|
|
4141
4156
|
), Ut = {
|
|
@@ -4163,7 +4178,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4163
4178
|
var i, s, u, l;
|
|
4164
4179
|
return /* @__PURE__ */ w.jsxs("div", { className: F("relative flex items-center gap-1", r == null ? void 0 : r.wrapper), children: [
|
|
4165
4180
|
/* @__PURE__ */ w.jsx(
|
|
4166
|
-
|
|
4181
|
+
Be,
|
|
4167
4182
|
{
|
|
4168
4183
|
mode: "prev",
|
|
4169
4184
|
onClick: n,
|
|
@@ -4176,7 +4191,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4176
4191
|
),
|
|
4177
4192
|
e,
|
|
4178
4193
|
/* @__PURE__ */ w.jsx(
|
|
4179
|
-
|
|
4194
|
+
Be,
|
|
4180
4195
|
{
|
|
4181
4196
|
mode: "next",
|
|
4182
4197
|
onClick: n,
|
|
@@ -4200,19 +4215,19 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4200
4215
|
classes: l,
|
|
4201
4216
|
...a
|
|
4202
4217
|
}) => {
|
|
4203
|
-
const
|
|
4204
|
-
carouselOptions:
|
|
4218
|
+
const d = { ...Ut, ...t }, f = { ...Yr, ...r }, g = { ...Xt, ...o }, c = { ...Kt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = Qr({
|
|
4219
|
+
carouselOptions: d,
|
|
4205
4220
|
autoPlayOptions: f
|
|
4206
4221
|
}), h = gr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: C, nextBtnDisabled: v, onClickNavigationButton: _ } = dr({
|
|
4207
4222
|
emblaApi: p,
|
|
4208
4223
|
navigationHandler: m
|
|
4209
|
-
}), { isMobile: I, isDesktop: V } =
|
|
4224
|
+
}), { isMobile: I, isDesktop: V } = qe(), { deskVisible: M, mobVisible: b, position: P } = g ?? {}, N = M && V || b && I, B = !!n || N && P === "top-right";
|
|
4210
4225
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex flex-col", l == null ? void 0 : l.root), ...a, children: [
|
|
4211
4226
|
B && /* @__PURE__ */ w.jsxs("div", { className: F("flex items-center justify-between gap-6", { "mb-6": B }, l == null ? void 0 : l.header), children: [
|
|
4212
4227
|
!!n && /* @__PURE__ */ w.jsx(qn, { as: "h2", className: F(l == null ? void 0 : l.heading), children: "Другие предложения" }),
|
|
4213
4228
|
N && P === "top-right" && /* @__PURE__ */ w.jsxs("div", { className: F("ml-auto flex items-center gap-2", l == null ? void 0 : l.arrowsNavWrapper), children: [
|
|
4214
4229
|
/* @__PURE__ */ w.jsx(
|
|
4215
|
-
|
|
4230
|
+
Be,
|
|
4216
4231
|
{
|
|
4217
4232
|
mode: "prev",
|
|
4218
4233
|
onClick: _,
|
|
@@ -4221,7 +4236,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4221
4236
|
}
|
|
4222
4237
|
),
|
|
4223
4238
|
/* @__PURE__ */ w.jsx(
|
|
4224
|
-
|
|
4239
|
+
Be,
|
|
4225
4240
|
{
|
|
4226
4241
|
mode: "next",
|
|
4227
4242
|
onClick: _,
|
|
@@ -4306,7 +4321,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4306
4321
|
]
|
|
4307
4322
|
}
|
|
4308
4323
|
) : /* @__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) => {
|
|
4309
|
-
if (
|
|
4324
|
+
if (He(e)) {
|
|
4310
4325
|
const n = ni(e);
|
|
4311
4326
|
return Qt(e, {
|
|
4312
4327
|
...oi(o, e.props),
|
|
@@ -4318,7 +4333,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4318
4333
|
return Ie.count(e) > 1 ? Ie.only(null) : null;
|
|
4319
4334
|
});
|
|
4320
4335
|
ht.displayName = "SlotClone";
|
|
4321
|
-
const ti = (e) =>
|
|
4336
|
+
const ti = (e) => He(e) && e.type === ei, ni = (e) => {
|
|
4322
4337
|
var n, r;
|
|
4323
4338
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
|
|
4324
4339
|
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);
|
|
@@ -4334,8 +4349,8 @@ const ti = (e) => je(e) && e.type === ei, ni = (e) => {
|
|
|
4334
4349
|
}, ri = Q(({ children: e, ...o }, t) => {
|
|
4335
4350
|
const n = Ie.toArray(e), r = n.find(ti);
|
|
4336
4351
|
if (r) {
|
|
4337
|
-
const i = r.props.children, s = n.map((u) => u === r ? Ie.count(i) > 1 ? Ie.only(null) :
|
|
4338
|
-
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children:
|
|
4352
|
+
const i = r.props.children, s = n.map((u) => u === r ? Ie.count(i) > 1 ? Ie.only(null) : He(i) ? i.props.children : null : u);
|
|
4353
|
+
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: He(i) ? Qt(i, void 0, s) : null });
|
|
4339
4354
|
}
|
|
4340
4355
|
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: e });
|
|
4341
4356
|
});
|