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