@scbt-ecom/ui 0.78.4 → 0.78.6
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/capitalize-B7CPmCdk.js +23 -0
- package/dist/capitalize-B7CPmCdk.js.map +1 -0
- package/dist/hooks.js +2 -2
- package/dist/{index-B2IoSSqc.js → index-B1ToCEer.js} +58 -58
- package/dist/{index-B2IoSSqc.js.map → index-B1ToCEer.js.map} +1 -1
- package/dist/{index-DwZjTCDF.js → index-B6WYooej.js} +2 -2
- package/dist/{index-DwZjTCDF.js.map → index-B6WYooej.js.map} +1 -1
- package/dist/lib/shared/ui/index.d.ts +0 -1
- package/dist/lib/widgets/breadcrumbs/Breadcrumbs.d.ts +6 -2
- package/dist/lib/widgets/breadcrumbs/hooks/constants.d.ts +2 -0
- package/dist/lib/widgets/breadcrumbs/hooks/index.d.ts +1 -1
- package/dist/lib/widgets/breadcrumbs/hooks/types.d.ts +2 -3
- package/dist/lib/widgets/breadcrumbs/index.d.ts +1 -0
- package/dist/lib/widgets/model/helpers.d.ts +1 -1
- package/dist/lib/widgets/seoHeader/SeoHeader.d.ts +3 -1
- package/dist/ui.js +803 -834
- package/dist/ui.js.map +1 -1
- package/dist/{useDebounce-BH0d8exl.js → useDebounce-DcKs_mq9.js} +3 -3
- package/dist/{useDebounce-BH0d8exl.js.map → useDebounce-DcKs_mq9.js.map} +1 -1
- package/dist/{useFieldsProgress-dcSmd8dw.js → useFieldsProgress-COFjjZK4.js} +6 -6
- package/dist/{useFieldsProgress-dcSmd8dw.js.map → useFieldsProgress-COFjjZK4.js.map} +1 -1
- package/dist/{utils-CnDzHNQ6.js → utils-Bu1Zg675.js} +62 -62
- package/dist/{utils-CnDzHNQ6.js.map → utils-Bu1Zg675.js.map} +1 -1
- package/dist/utils.js +30 -45
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +969 -981
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/shared/ui/breadcrumbs/Breadcrumbs.d.ts +0 -16
- package/dist/lib/shared/ui/breadcrumbs/index.d.ts +0 -1
- package/dist/lib/widgets/breadcrumbs/hooks/useBreadcrumbs.d.ts +0 -2
package/dist/ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { k as C, l as On, q as An, B as ge, F as Tn, G as Nn, J as jn, K as Hn, N as Be, O as Wt, T as Gn, V as zn, W as et, X as kn, A as Bn, I as Ne, H as qn, Y as Un, Z as Kn, _ as Xn } from "./index-B1ToCEer.js";
|
|
2
|
+
import { v as yi, a3 as Fi, w as _i, C as Ii, D as Mi, a4 as Vi, a6 as Pi, L as $i, M as bi, a5 as Ei, P as Di, u as Li, y as Oi, U as Ai, t as Ti, $ as Ni, a1 as ji, a0 as Hi, a2 as Gi, a7 as zi } from "./index-B1ToCEer.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
4
|
import { forwardRef as Q, useState as oe, useRef as je, useCallback as Se, useEffect as ve, isValidElement as He, cloneElement as Qt, Children as Ie } from "react";
|
|
5
|
-
import { c as F, T as
|
|
6
|
-
import { aQ as
|
|
7
|
-
import { u as qe, a as Wn } from "./useDebounce-
|
|
5
|
+
import { c as F, T as Tt } from "./typeGuards-CSiImkUY.js";
|
|
6
|
+
import { aQ as Bi, aT as qi, aP as Ui, aS as Ki, aR as Xi } from "./utils-Bu1Zg675.js";
|
|
7
|
+
import { u as qe, a as Wn } from "./useDebounce-DcKs_mq9.js";
|
|
8
8
|
import { m as Qn } from "./mergeRefs-qDToYXtM.js";
|
|
9
9
|
const Jn = On(
|
|
10
10
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
@@ -27,8 +27,8 @@ const Jn = On(
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
), ci = Q(
|
|
30
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i },
|
|
31
|
-
), di = ({ className: e }) => /* @__PURE__ */
|
|
30
|
+
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ C.jsx("button", { ref: l, type: r, className: F(Jn({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ C.jsx("span", { className: F(n == null ? void 0 : n.icon), children: t }) })
|
|
31
|
+
), di = ({ className: e }) => /* @__PURE__ */ C.jsx("div", { className: F("skeleton-apply h-full w-full", e) }), gi = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ C.jsxs(
|
|
32
32
|
An,
|
|
33
33
|
{
|
|
34
34
|
className: F(
|
|
@@ -38,7 +38,7 @@ const Jn = On(
|
|
|
38
38
|
),
|
|
39
39
|
children: [
|
|
40
40
|
t,
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ C.jsx(ge, { size: "lg", className: F("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
), fi = {
|
|
@@ -163,31 +163,31 @@ var Ue = "Tabs", [Yn, pi] = jn(Ue, [
|
|
|
163
163
|
value: n,
|
|
164
164
|
onValueChange: r,
|
|
165
165
|
defaultValue: i,
|
|
166
|
-
orientation:
|
|
166
|
+
orientation: l = "horizontal",
|
|
167
167
|
dir: u,
|
|
168
|
-
activationMode:
|
|
168
|
+
activationMode: s = "automatic",
|
|
169
169
|
...a
|
|
170
|
-
} = e, d =
|
|
170
|
+
} = e, d = Tn(u), [f, g] = Nn({
|
|
171
171
|
prop: n,
|
|
172
172
|
onChange: r,
|
|
173
173
|
defaultProp: i ?? "",
|
|
174
174
|
caller: Ue
|
|
175
175
|
});
|
|
176
|
-
return /* @__PURE__ */
|
|
176
|
+
return /* @__PURE__ */ C.jsx(
|
|
177
177
|
Zn,
|
|
178
178
|
{
|
|
179
179
|
scope: t,
|
|
180
180
|
baseId: Hn(),
|
|
181
181
|
value: f,
|
|
182
182
|
onValueChange: g,
|
|
183
|
-
orientation:
|
|
183
|
+
orientation: l,
|
|
184
184
|
dir: d,
|
|
185
|
-
activationMode:
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
|
|
185
|
+
activationMode: s,
|
|
186
|
+
children: /* @__PURE__ */ C.jsx(
|
|
187
|
+
Be.div,
|
|
188
188
|
{
|
|
189
189
|
dir: d,
|
|
190
|
-
"data-orientation":
|
|
190
|
+
"data-orientation": l,
|
|
191
191
|
...a,
|
|
192
192
|
ref: o
|
|
193
193
|
}
|
|
@@ -199,17 +199,17 @@ var Ue = "Tabs", [Yn, pi] = jn(Ue, [
|
|
|
199
199
|
Yt.displayName = Ue;
|
|
200
200
|
var Zt = "TabsList", en = ce.forwardRef(
|
|
201
201
|
(e, o) => {
|
|
202
|
-
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(Zt, t),
|
|
203
|
-
return /* @__PURE__ */
|
|
202
|
+
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(Zt, t), l = Jt(t);
|
|
203
|
+
return /* @__PURE__ */ C.jsx(
|
|
204
204
|
Gn,
|
|
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__ */ C.jsx(
|
|
212
|
+
Be.div,
|
|
213
213
|
{
|
|
214
214
|
role: "tablist",
|
|
215
215
|
"aria-orientation": i.orientation,
|
|
@@ -224,16 +224,16 @@ var Zt = "TabsList", en = ce.forwardRef(
|
|
|
224
224
|
en.displayName = Zt;
|
|
225
225
|
var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
226
226
|
(e, o) => {
|
|
227
|
-
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e,
|
|
228
|
-
return /* @__PURE__ */
|
|
227
|
+
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, l = St(tn, t), u = Jt(t), s = ln(l.baseId, n), a = sn(l.baseId, n), d = n === l.value;
|
|
228
|
+
return /* @__PURE__ */ C.jsx(
|
|
229
229
|
zn,
|
|
230
230
|
{
|
|
231
231
|
asChild: !0,
|
|
232
232
|
...u,
|
|
233
233
|
focusable: !r,
|
|
234
234
|
active: d,
|
|
235
|
-
children: /* @__PURE__ */
|
|
236
|
-
|
|
235
|
+
children: /* @__PURE__ */ C.jsx(
|
|
236
|
+
Be.button,
|
|
237
237
|
{
|
|
238
238
|
type: "button",
|
|
239
239
|
role: "tab",
|
|
@@ -242,18 +242,18 @@ var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
|
242
242
|
"data-state": d ? "active" : "inactive",
|
|
243
243
|
"data-disabled": r ? "" : void 0,
|
|
244
244
|
disabled: r,
|
|
245
|
-
id:
|
|
245
|
+
id: s,
|
|
246
246
|
...i,
|
|
247
247
|
ref: o,
|
|
248
248
|
onMouseDown: et(e.onMouseDown, (f) => {
|
|
249
|
-
!r && f.button === 0 && f.ctrlKey === !1 ?
|
|
249
|
+
!r && f.button === 0 && f.ctrlKey === !1 ? l.onValueChange(n) : f.preventDefault();
|
|
250
250
|
}),
|
|
251
251
|
onKeyDown: et(e.onKeyDown, (f) => {
|
|
252
|
-
[" ", "Enter"].includes(f.key) &&
|
|
252
|
+
[" ", "Enter"].includes(f.key) && l.onValueChange(n);
|
|
253
253
|
}),
|
|
254
254
|
onFocus: et(e.onFocus, () => {
|
|
255
|
-
const f =
|
|
256
|
-
!d && !r && f &&
|
|
255
|
+
const f = l.activationMode !== "manual";
|
|
256
|
+
!d && !r && f && l.onValueChange(n);
|
|
257
257
|
})
|
|
258
258
|
}
|
|
259
259
|
)
|
|
@@ -264,21 +264,21 @@ var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
|
264
264
|
nn.displayName = tn;
|
|
265
265
|
var on = "TabsContent", rn = ce.forwardRef(
|
|
266
266
|
(e, o) => {
|
|
267
|
-
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...
|
|
267
|
+
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...l } = e, u = St(on, t), s = ln(u.baseId, n), a = sn(u.baseId, n), d = n === u.value, f = ce.useRef(d);
|
|
268
268
|
return ce.useEffect(() => {
|
|
269
269
|
const g = requestAnimationFrame(() => f.current = !1);
|
|
270
270
|
return () => cancelAnimationFrame(g);
|
|
271
|
-
}, []), /* @__PURE__ */
|
|
272
|
-
|
|
271
|
+
}, []), /* @__PURE__ */ C.jsx(kn, { present: r || d, children: ({ present: g }) => /* @__PURE__ */ C.jsx(
|
|
272
|
+
Be.div,
|
|
273
273
|
{
|
|
274
274
|
"data-state": d ? "active" : "inactive",
|
|
275
275
|
"data-orientation": u.orientation,
|
|
276
276
|
role: "tabpanel",
|
|
277
|
-
"aria-labelledby":
|
|
277
|
+
"aria-labelledby": s,
|
|
278
278
|
hidden: !g,
|
|
279
279
|
id: a,
|
|
280
280
|
tabIndex: 0,
|
|
281
|
-
...
|
|
281
|
+
...l,
|
|
282
282
|
ref: o,
|
|
283
283
|
style: {
|
|
284
284
|
...e.style,
|
|
@@ -290,16 +290,16 @@ var on = "TabsContent", rn = ce.forwardRef(
|
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
292
|
rn.displayName = on;
|
|
293
|
-
function
|
|
293
|
+
function ln(e, o) {
|
|
294
294
|
return `${e}-trigger-${o}`;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function sn(e, o) {
|
|
297
297
|
return `${e}-content-${o}`;
|
|
298
298
|
}
|
|
299
|
-
var eo = Yt, to = en, no = nn,
|
|
300
|
-
const oo = ({ classes: e, contents: o }) => /* @__PURE__ */
|
|
299
|
+
var eo = Yt, to = en, no = nn, Nt = rn;
|
|
300
|
+
const oo = ({ classes: e, contents: o }) => /* @__PURE__ */ C.jsx("div", { className: F("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ C.jsx(Nt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ C.jsx(Bn, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ C.jsx(Nt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: n }, t)) }), mi = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
301
301
|
var i;
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ C.jsxs(
|
|
303
303
|
eo,
|
|
304
304
|
{
|
|
305
305
|
value: t,
|
|
@@ -307,39 +307,39 @@ const oo = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { class
|
|
|
307
307
|
defaultValue: o,
|
|
308
308
|
className: F("flex flex-col", r == null ? void 0 : r.root),
|
|
309
309
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ C.jsx(to, { className: F("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: l, label: u }) => /* @__PURE__ */ C.jsx(
|
|
311
311
|
no,
|
|
312
312
|
{
|
|
313
|
-
value:
|
|
313
|
+
value: l,
|
|
314
314
|
className: F(
|
|
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
318
|
children: u
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
l
|
|
321
321
|
)) }),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ C.jsx(oo, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
|
|
323
323
|
]
|
|
324
324
|
}
|
|
325
325
|
);
|
|
326
|
-
}, un = Q((e, o) => /* @__PURE__ */
|
|
326
|
+
}, un = Q((e, o) => /* @__PURE__ */ C.jsx("table", { ref: o, ...e }));
|
|
327
327
|
un.displayName = "Table";
|
|
328
|
-
const an = Q((e, o) => /* @__PURE__ */
|
|
328
|
+
const an = Q((e, o) => /* @__PURE__ */ C.jsx("thead", { ref: o, ...e }));
|
|
329
329
|
an.displayName = "TableHeader";
|
|
330
|
-
const cn = Q((e, o) => /* @__PURE__ */
|
|
330
|
+
const cn = Q((e, o) => /* @__PURE__ */ C.jsx("tbody", { ref: o, ...e }));
|
|
331
331
|
cn.displayName = "TableBody";
|
|
332
|
-
const ro = Q((e, o) => /* @__PURE__ */
|
|
332
|
+
const ro = Q((e, o) => /* @__PURE__ */ C.jsx("tfoot", { ref: o, ...e }));
|
|
333
333
|
ro.displayName = "TableFooter";
|
|
334
|
-
const Te = Q((e, o) => /* @__PURE__ */
|
|
334
|
+
const Te = Q((e, o) => /* @__PURE__ */ C.jsx("tr", { ref: o, ...e }));
|
|
335
335
|
Te.displayName = "TableRow";
|
|
336
|
-
const dn = Q((e, o) => /* @__PURE__ */
|
|
336
|
+
const dn = Q((e, o) => /* @__PURE__ */ C.jsx("th", { ref: o, ...e }));
|
|
337
337
|
dn.displayName = "TableHead";
|
|
338
|
-
const ut = Q((e, o) => /* @__PURE__ */
|
|
338
|
+
const ut = Q((e, o) => /* @__PURE__ */ C.jsx("td", { ref: o, ...e }));
|
|
339
339
|
ut.displayName = "TableCell";
|
|
340
|
-
const io = Q((e, o) => /* @__PURE__ */
|
|
340
|
+
const io = Q((e, o) => /* @__PURE__ */ C.jsx("caption", { ref: o, ...e }));
|
|
341
341
|
io.displayName = "TableCaption";
|
|
342
|
-
const
|
|
342
|
+
const lo = ({
|
|
343
343
|
children: e,
|
|
344
344
|
canSort: o,
|
|
345
345
|
toggleSorting: t,
|
|
@@ -347,18 +347,18 @@ const so = ({
|
|
|
347
347
|
isSorted: r,
|
|
348
348
|
classes: i
|
|
349
349
|
}) => {
|
|
350
|
-
const { root:
|
|
351
|
-
return /* @__PURE__ */
|
|
350
|
+
const { root: l, content: u, icon: s } = i || {}, { isDesktop: a } = qe(), d = o && a;
|
|
351
|
+
return /* @__PURE__ */ C.jsxs(
|
|
352
352
|
"button",
|
|
353
353
|
{
|
|
354
354
|
type: "button",
|
|
355
|
-
className: F("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary",
|
|
355
|
+
className: F("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__ */ C.jsx("span", { className: F("", u), children: e }),
|
|
360
|
+
d && /* @__PURE__ */ C.jsx(
|
|
361
|
+
Ne,
|
|
362
362
|
{
|
|
363
363
|
name: "arrows/arrowRight",
|
|
364
364
|
className: F(
|
|
@@ -366,7 +366,7 @@ const so = ({
|
|
|
366
366
|
{
|
|
367
367
|
"-rotate-90": !n
|
|
368
368
|
},
|
|
369
|
-
|
|
369
|
+
s
|
|
370
370
|
)
|
|
371
371
|
}
|
|
372
372
|
)
|
|
@@ -380,16 +380,16 @@ const so = ({
|
|
|
380
380
|
target: n,
|
|
381
381
|
rowIndex: r = -1
|
|
382
382
|
}) => {
|
|
383
|
-
const [i,
|
|
384
|
-
|
|
383
|
+
const [i, l] = oe(!1), [u, s] = oe(o()), a = je(!1), d = je(null), { original: f } = e, g = (p) => {
|
|
384
|
+
s(p.target.value), a.current = !0;
|
|
385
385
|
}, c = () => {
|
|
386
386
|
if (a.current) {
|
|
387
387
|
const p = { ...f, [n]: u };
|
|
388
388
|
t(r, p), a.current = !1;
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
l(!1);
|
|
391
391
|
};
|
|
392
|
-
return Wn(d, c), i ? /* @__PURE__ */
|
|
392
|
+
return Wn(d, c), i ? /* @__PURE__ */ C.jsx(
|
|
393
393
|
"input",
|
|
394
394
|
{
|
|
395
395
|
ref: d,
|
|
@@ -401,7 +401,7 @@ const so = ({
|
|
|
401
401
|
p.key === "Enter" && (p.preventDefault(), c());
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
) : /* @__PURE__ */
|
|
404
|
+
) : /* @__PURE__ */ C.jsx("p", { className: "w-full", onClick: () => l(!0), children: o() });
|
|
405
405
|
};
|
|
406
406
|
/**
|
|
407
407
|
* table-core
|
|
@@ -413,7 +413,7 @@ const so = ({
|
|
|
413
413
|
*
|
|
414
414
|
* @license MIT
|
|
415
415
|
*/
|
|
416
|
-
function
|
|
416
|
+
function so() {
|
|
417
417
|
return {
|
|
418
418
|
accessor: (e, o) => typeof e == "function" ? {
|
|
419
419
|
...o,
|
|
@@ -447,8 +447,8 @@ function ao(e, o) {
|
|
|
447
447
|
const t = [], n = (r) => {
|
|
448
448
|
r.forEach((i) => {
|
|
449
449
|
t.push(i);
|
|
450
|
-
const
|
|
451
|
-
|
|
450
|
+
const l = o(i);
|
|
451
|
+
l != null && l.length && n(l);
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
454
|
return n(e), t;
|
|
@@ -456,15 +456,15 @@ function ao(e, o) {
|
|
|
456
456
|
function x(e, o, t) {
|
|
457
457
|
let n = [], r;
|
|
458
458
|
return (i) => {
|
|
459
|
-
let
|
|
460
|
-
t.key && t.debug && (
|
|
459
|
+
let l;
|
|
460
|
+
t.key && t.debug && (l = Date.now());
|
|
461
461
|
const u = e(i);
|
|
462
462
|
if (!(u.length !== n.length || u.some((d, f) => n[f] !== d)))
|
|
463
463
|
return r;
|
|
464
464
|
n = u;
|
|
465
465
|
let a;
|
|
466
466
|
if (t.key && t.debug && (a = Date.now()), r = o(...u), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
|
|
467
|
-
const d = Math.round((Date.now() -
|
|
467
|
+
const d = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - a) * 100) / 100, g = f / 16, c = (p, m) => {
|
|
468
468
|
for (p = String(p); p.length < m; )
|
|
469
469
|
p = " " + p;
|
|
470
470
|
return p;
|
|
@@ -489,25 +489,25 @@ function y(e, o, t, n) {
|
|
|
489
489
|
}
|
|
490
490
|
function co(e, o, t, n) {
|
|
491
491
|
const r = () => {
|
|
492
|
-
var
|
|
493
|
-
return (
|
|
492
|
+
var l;
|
|
493
|
+
return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
494
494
|
}, i = {
|
|
495
495
|
id: `${o.id}_${t.id}`,
|
|
496
496
|
row: o,
|
|
497
497
|
column: t,
|
|
498
498
|
getValue: () => o.getValue(n),
|
|
499
499
|
renderValue: r,
|
|
500
|
-
getContext: x(() => [e, t, o, i], (
|
|
501
|
-
table:
|
|
500
|
+
getContext: x(() => [e, t, o, i], (l, u, s, a) => ({
|
|
501
|
+
table: l,
|
|
502
502
|
column: u,
|
|
503
|
-
row:
|
|
503
|
+
row: s,
|
|
504
504
|
cell: a,
|
|
505
505
|
getValue: a.getValue,
|
|
506
506
|
renderValue: a.renderValue
|
|
507
507
|
}), y(e.options, "debugCells", "cell.getContext"))
|
|
508
508
|
};
|
|
509
|
-
return e._features.forEach((
|
|
510
|
-
|
|
509
|
+
return e._features.forEach((l) => {
|
|
510
|
+
l.createCell == null || l.createCell(i, t, o, e);
|
|
511
511
|
}, {}), i;
|
|
512
512
|
}
|
|
513
513
|
function go(e, o, t, n) {
|
|
@@ -515,13 +515,13 @@ function go(e, o, t, n) {
|
|
|
515
515
|
const u = {
|
|
516
516
|
...e._getDefaultColumnDef(),
|
|
517
517
|
...o
|
|
518
|
-
},
|
|
519
|
-
let a = (r = (i = u.id) != null ? i :
|
|
520
|
-
if (u.accessorFn ? d = u.accessorFn :
|
|
518
|
+
}, s = u.accessorKey;
|
|
519
|
+
let a = (r = (i = u.id) != null ? i : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, d;
|
|
520
|
+
if (u.accessorFn ? d = u.accessorFn : s && (s.includes(".") ? d = (g) => {
|
|
521
521
|
let c = g;
|
|
522
|
-
for (const m of
|
|
522
|
+
for (const m of s.split(".")) {
|
|
523
523
|
var p;
|
|
524
|
-
c = (p = c) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${m}" in deeply nested key "${
|
|
524
|
+
c = (p = c) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${m}" in deeply nested key "${s}" returned undefined.`);
|
|
525
525
|
}
|
|
526
526
|
return c;
|
|
527
527
|
} : d = (g) => g[u.accessorKey]), !a)
|
|
@@ -565,10 +565,10 @@ function jt(e, o, t) {
|
|
|
565
565
|
rowSpan: 0,
|
|
566
566
|
headerGroup: null,
|
|
567
567
|
getLeafHeaders: () => {
|
|
568
|
-
const
|
|
569
|
-
|
|
568
|
+
const l = [], u = (s) => {
|
|
569
|
+
s.subHeaders && s.subHeaders.length && s.subHeaders.map(u), l.push(s);
|
|
570
570
|
};
|
|
571
|
-
return u(i),
|
|
571
|
+
return u(i), l;
|
|
572
572
|
},
|
|
573
573
|
getContext: () => ({
|
|
574
574
|
table: e,
|
|
@@ -576,24 +576,24 @@ function jt(e, o, t) {
|
|
|
576
576
|
column: o
|
|
577
577
|
})
|
|
578
578
|
};
|
|
579
|
-
return e._features.forEach((
|
|
580
|
-
|
|
579
|
+
return e._features.forEach((l) => {
|
|
580
|
+
l.createHeader == null || l.createHeader(i, e);
|
|
581
581
|
}), i;
|
|
582
582
|
}
|
|
583
583
|
const fo = {
|
|
584
584
|
createTable: (e) => {
|
|
585
585
|
e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
586
|
-
var i,
|
|
587
|
-
const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [],
|
|
588
|
-
return
|
|
589
|
-
}, y(e.options, H, "getHeaderGroups")), e.getCenterHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))),
|
|
586
|
+
var i, l;
|
|
587
|
+
const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], s = (l = r == null ? void 0 : r.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? l : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
588
|
+
return Le(o, [...u, ...a, ...s], e);
|
|
589
|
+
}, y(e.options, H, "getHeaderGroups")), e.getCenterHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), Le(o, t, e, "center")), y(e.options, H, "getCenterHeaderGroups")), e.getLeftHeaderGroups = x(() => [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((
|
|
592
|
-
return
|
|
591
|
+
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
592
|
+
return Le(o, i, e, "left");
|
|
593
593
|
}, y(e.options, H, "getLeftHeaderGroups")), e.getRightHeaderGroups = x(() => [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((
|
|
596
|
-
return
|
|
595
|
+
const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
|
|
596
|
+
return Le(o, i, e, "right");
|
|
597
597
|
}, y(e.options, H, "getRightHeaderGroups")), e.getFooterGroups = x(() => [e.getHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getFooterGroups")), e.getLeftFooterGroups = x(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getLeftFooterGroups")), e.getCenterFooterGroups = x(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getCenterFooterGroups")), e.getRightFooterGroups = x(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), y(e.options, H, "getRightFooterGroups")), e.getFlatHeaders = x(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getFlatHeaders")), e.getLeftFlatHeaders = x(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getLeftFlatHeaders")), e.getCenterFlatHeaders = x(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getCenterFlatHeaders")), e.getRightFlatHeaders = x(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), y(e.options, H, "getRightFlatHeaders")), e.getCenterLeafHeaders = x(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
|
|
598
598
|
var n;
|
|
599
599
|
return !((n = t.subHeaders) != null && n.length);
|
|
@@ -604,22 +604,22 @@ const fo = {
|
|
|
604
604
|
var n;
|
|
605
605
|
return !((n = t.subHeaders) != null && n.length);
|
|
606
606
|
}), y(e.options, H, "getRightLeafHeaders")), e.getLeafHeaders = x(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
|
|
607
|
-
var r, i,
|
|
608
|
-
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(
|
|
607
|
+
var r, i, l, u, s, a;
|
|
608
|
+
return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (a = n[0]) == null ? void 0 : a.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
|
|
609
609
|
}, y(e.options, H, "getLeafHeaders"));
|
|
610
610
|
}
|
|
611
611
|
};
|
|
612
|
-
function
|
|
612
|
+
function Le(e, o, t, n) {
|
|
613
613
|
var r, i;
|
|
614
|
-
let
|
|
614
|
+
let l = 0;
|
|
615
615
|
const u = function(g, c) {
|
|
616
|
-
c === void 0 && (c = 1),
|
|
616
|
+
c === void 0 && (c = 1), l = Math.max(l, c), g.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
617
617
|
var m;
|
|
618
618
|
(m = p.columns) != null && m.length && u(p.columns, c + 1);
|
|
619
619
|
}, 0);
|
|
620
620
|
};
|
|
621
621
|
u(e);
|
|
622
|
-
let
|
|
622
|
+
let s = [];
|
|
623
623
|
const a = (g, c) => {
|
|
624
624
|
const p = {
|
|
625
625
|
depth: c,
|
|
@@ -627,9 +627,9 @@ function Oe(e, o, t, n) {
|
|
|
627
627
|
headers: []
|
|
628
628
|
}, m = [];
|
|
629
629
|
g.forEach((S) => {
|
|
630
|
-
const h = [...m].reverse()[0],
|
|
630
|
+
const h = [...m].reverse()[0], w = S.column.depth === p.depth;
|
|
631
631
|
let v, _ = !1;
|
|
632
|
-
if (
|
|
632
|
+
if (w && S.column.parent ? v = S.column.parent : (v = S.column, _ = !0), h && (h == null ? void 0 : h.column) === v)
|
|
633
633
|
h.subHeaders.push(S);
|
|
634
634
|
else {
|
|
635
635
|
const I = jt(t, v, {
|
|
@@ -642,12 +642,12 @@ function Oe(e, o, t, n) {
|
|
|
642
642
|
I.subHeaders.push(S), m.push(I);
|
|
643
643
|
}
|
|
644
644
|
p.headers.push(S), S.headerGroup = p;
|
|
645
|
-
}),
|
|
645
|
+
}), s.push(p), c > 0 && a(m, c - 1);
|
|
646
646
|
}, d = o.map((g, c) => jt(t, g, {
|
|
647
|
-
depth:
|
|
647
|
+
depth: l,
|
|
648
648
|
index: c
|
|
649
649
|
}));
|
|
650
|
-
a(d,
|
|
650
|
+
a(d, l - 1), s.reverse();
|
|
651
651
|
const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
652
652
|
let m = 0, S = 0, h = [0];
|
|
653
653
|
p.subHeaders && p.subHeaders.length ? (h = [], f(p.subHeaders).forEach((v) => {
|
|
@@ -657,58 +657,58 @@ function Oe(e, o, t, n) {
|
|
|
657
657
|
} = v;
|
|
658
658
|
m += _, h.push(I);
|
|
659
659
|
})) : m = 1;
|
|
660
|
-
const
|
|
661
|
-
return S = S +
|
|
660
|
+
const w = Math.min(...h);
|
|
661
|
+
return S = S + w, p.colSpan = m, p.rowSpan = S, {
|
|
662
662
|
colSpan: m,
|
|
663
663
|
rowSpan: S
|
|
664
664
|
};
|
|
665
665
|
});
|
|
666
|
-
return f((r = (i =
|
|
666
|
+
return f((r = (i = s[0]) == null ? void 0 : i.headers) != null ? r : []), s;
|
|
667
667
|
}
|
|
668
|
-
const wt = (e, o, t, n, r, i,
|
|
668
|
+
const wt = (e, o, t, n, r, i, l) => {
|
|
669
669
|
let u = {
|
|
670
670
|
id: o,
|
|
671
671
|
index: n,
|
|
672
672
|
original: t,
|
|
673
673
|
depth: r,
|
|
674
|
-
parentId:
|
|
674
|
+
parentId: l,
|
|
675
675
|
_valuesCache: {},
|
|
676
676
|
_uniqueValuesCache: {},
|
|
677
|
-
getValue: (
|
|
678
|
-
if (u._valuesCache.hasOwnProperty(
|
|
679
|
-
return u._valuesCache[
|
|
680
|
-
const a = e.getColumn(
|
|
677
|
+
getValue: (s) => {
|
|
678
|
+
if (u._valuesCache.hasOwnProperty(s))
|
|
679
|
+
return u._valuesCache[s];
|
|
680
|
+
const a = e.getColumn(s);
|
|
681
681
|
if (a != null && a.accessorFn)
|
|
682
|
-
return u._valuesCache[
|
|
682
|
+
return u._valuesCache[s] = a.accessorFn(u.original, n), u._valuesCache[s];
|
|
683
683
|
},
|
|
684
|
-
getUniqueValues: (
|
|
685
|
-
if (u._uniqueValuesCache.hasOwnProperty(
|
|
686
|
-
return u._uniqueValuesCache[
|
|
687
|
-
const a = e.getColumn(
|
|
684
|
+
getUniqueValues: (s) => {
|
|
685
|
+
if (u._uniqueValuesCache.hasOwnProperty(s))
|
|
686
|
+
return u._uniqueValuesCache[s];
|
|
687
|
+
const a = e.getColumn(s);
|
|
688
688
|
if (a != null && a.accessorFn)
|
|
689
|
-
return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[
|
|
689
|
+
return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = a.columnDef.getUniqueValues(u.original, n), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
|
|
690
690
|
},
|
|
691
|
-
renderValue: (
|
|
691
|
+
renderValue: (s) => {
|
|
692
692
|
var a;
|
|
693
|
-
return (a = u.getValue(
|
|
693
|
+
return (a = u.getValue(s)) != null ? a : e.options.renderFallbackValue;
|
|
694
694
|
},
|
|
695
695
|
subRows: [],
|
|
696
|
-
getLeafRows: () => ao(u.subRows, (
|
|
696
|
+
getLeafRows: () => ao(u.subRows, (s) => s.subRows),
|
|
697
697
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
698
698
|
getParentRows: () => {
|
|
699
|
-
let
|
|
699
|
+
let s = [], a = u;
|
|
700
700
|
for (; ; ) {
|
|
701
701
|
const d = a.getParentRow();
|
|
702
702
|
if (!d) break;
|
|
703
|
-
|
|
703
|
+
s.push(d), a = d;
|
|
704
704
|
}
|
|
705
|
-
return
|
|
705
|
+
return s.reverse();
|
|
706
706
|
},
|
|
707
|
-
getAllCells: x(() => [e.getAllLeafColumns()], (
|
|
708
|
-
_getAllCellsByColumnId: x(() => [u.getAllCells()], (
|
|
707
|
+
getAllCells: x(() => [e.getAllLeafColumns()], (s) => s.map((a) => co(e, u, a, a.id)), y(e.options, "debugRows", "getAllCells")),
|
|
708
|
+
_getAllCellsByColumnId: x(() => [u.getAllCells()], (s) => s.reduce((a, d) => (a[d.column.id] = d, a), {}), y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
709
709
|
};
|
|
710
|
-
for (let
|
|
711
|
-
const a = e._features[
|
|
710
|
+
for (let s = 0; s < e._features.length; s++) {
|
|
711
|
+
const a = e._features[s];
|
|
712
712
|
a == null || a.createRow == null || a.createRow(u, e);
|
|
713
713
|
}
|
|
714
714
|
return u;
|
|
@@ -760,12 +760,12 @@ const Ct = (e, o, t) => {
|
|
|
760
760
|
return i >= n && i <= r;
|
|
761
761
|
};
|
|
762
762
|
Ct.resolveFilterValue = (e) => {
|
|
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,
|
|
764
|
-
if (i >
|
|
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
|
+
if (i > l) {
|
|
765
765
|
const u = i;
|
|
766
|
-
i =
|
|
766
|
+
i = l, l = u;
|
|
767
767
|
}
|
|
768
|
-
return [i,
|
|
768
|
+
return [i, l];
|
|
769
769
|
};
|
|
770
770
|
Ct.autoRemove = (e) => Z(e) || Z(e[0]) && Z(e[1]);
|
|
771
771
|
const ae = {
|
|
@@ -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),
|
|
820
|
-
if (Ht(r,
|
|
819
|
+
const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), l = fe(t, i ? i.value : void 0);
|
|
820
|
+
if (Ht(r, l, e)) {
|
|
821
821
|
var u;
|
|
822
822
|
return (u = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? u : [];
|
|
823
823
|
}
|
|
824
|
-
const
|
|
824
|
+
const s = {
|
|
825
825
|
id: e.id,
|
|
826
|
-
value:
|
|
826
|
+
value: l
|
|
827
827
|
};
|
|
828
828
|
if (i) {
|
|
829
829
|
var a;
|
|
830
|
-
return (a = n == null ? void 0 : n.map((d) => d.id === e.id ?
|
|
830
|
+
return (a = n == null ? void 0 : n.map((d) => d.id === e.id ? s : d)) != null ? a : [];
|
|
831
831
|
}
|
|
832
|
-
return n != null && n.length ? [...n,
|
|
832
|
+
return n != null && n.length ? [...n, s] : [s];
|
|
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 = fe(o, r)) == null ? void 0 : i.filter((
|
|
844
|
-
const u = t.find((
|
|
843
|
+
return (i = fe(o, r)) == null ? void 0 : i.filter((l) => {
|
|
844
|
+
const u = t.find((s) => s.id === l.id);
|
|
845
845
|
if (u) {
|
|
846
|
-
const
|
|
847
|
-
if (Ht(
|
|
846
|
+
const s = u.getFilterFn();
|
|
847
|
+
if (Ht(s, l.value, u))
|
|
848
848
|
return !1;
|
|
849
849
|
}
|
|
850
850
|
return !0;
|
|
@@ -878,8 +878,8 @@ const ho = (e, o, t) => t.reduce((n, r) => {
|
|
|
878
878
|
}, Co = (e, o, t) => {
|
|
879
879
|
let n, r;
|
|
880
880
|
return t.forEach((i) => {
|
|
881
|
-
const
|
|
882
|
-
|
|
881
|
+
const l = i.getValue(e);
|
|
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
|
}, vo = (e, o) => {
|
|
885
885
|
let t = 0, n = 0;
|
|
@@ -895,7 +895,7 @@ const ho = (e, o, t) => t.reduce((n, r) => {
|
|
|
895
895
|
return;
|
|
896
896
|
if (t.length === 1)
|
|
897
897
|
return t[0];
|
|
898
|
-
const n = Math.floor(t.length / 2), r = t.sort((i,
|
|
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
900
|
}, xo = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), yo = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Fo = (e, o) => o.length, tt = {
|
|
901
901
|
sum: ho,
|
|
@@ -978,7 +978,7 @@ function Io(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
|
-
return t === "remove" ? n : [...o.map((i) => e.find((
|
|
981
|
+
return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
|
|
982
982
|
}
|
|
983
983
|
const Mo = {
|
|
984
984
|
getInitialState: (e) => ({
|
|
@@ -1007,9 +1007,9 @@ const Mo = {
|
|
|
1007
1007
|
if (!(o != null && o.length))
|
|
1008
1008
|
i = r;
|
|
1009
1009
|
else {
|
|
1010
|
-
const
|
|
1011
|
-
for (; u.length &&
|
|
1012
|
-
const
|
|
1010
|
+
const l = [...o], u = [...r];
|
|
1011
|
+
for (; u.length && l.length; ) {
|
|
1012
|
+
const s = l.shift(), a = u.findIndex((d) => d.id === s);
|
|
1013
1013
|
a > -1 && i.push(u.splice(a, 1)[0]);
|
|
1014
1014
|
}
|
|
1015
1015
|
i = [...i, ...u];
|
|
@@ -1032,12 +1032,12 @@ const Mo = {
|
|
|
1032
1032
|
e.pin = (t) => {
|
|
1033
1033
|
const n = e.getLeafColumns().map((r) => r.id).filter(Boolean);
|
|
1034
1034
|
o.setColumnPinning((r) => {
|
|
1035
|
-
var i,
|
|
1035
|
+
var i, l;
|
|
1036
1036
|
if (t === "right") {
|
|
1037
|
-
var u,
|
|
1037
|
+
var u, s;
|
|
1038
1038
|
return {
|
|
1039
1039
|
left: ((u = r == null ? void 0 : r.left) != null ? u : []).filter((f) => !(n != null && n.includes(f))),
|
|
1040
|
-
right: [...((
|
|
1040
|
+
right: [...((s = r == null ? void 0 : r.right) != null ? s : []).filter((f) => !(n != null && n.includes(f))), ...n]
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
1043
|
if (t === "left") {
|
|
@@ -1049,18 +1049,18 @@ const Mo = {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return {
|
|
1051
1051
|
left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((f) => !(n != null && n.includes(f))),
|
|
1052
|
-
right: ((
|
|
1052
|
+
right: ((l = r == null ? void 0 : r.right) != null ? l : []).filter((f) => !(n != null && n.includes(f)))
|
|
1053
1053
|
};
|
|
1054
1054
|
});
|
|
1055
1055
|
}, e.getCanPin = () => e.getLeafColumns().some((n) => {
|
|
1056
|
-
var r, i,
|
|
1057
|
-
return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (
|
|
1056
|
+
var r, i, l;
|
|
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
1059
|
const t = e.getLeafColumns().map((u) => u.id), {
|
|
1060
1060
|
left: n,
|
|
1061
1061
|
right: r
|
|
1062
|
-
} = o.getState().columnPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)),
|
|
1063
|
-
return i ? "left" :
|
|
1062
|
+
} = o.getState().columnPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), l = t.some((u) => r == null ? void 0 : r.includes(u));
|
|
1063
|
+
return i ? "left" : l ? "right" : !1;
|
|
1064
1064
|
}, e.getPinnedIndex = () => {
|
|
1065
1065
|
var t, n;
|
|
1066
1066
|
const r = e.getIsPinned();
|
|
@@ -1070,11 +1070,11 @@ const Mo = {
|
|
|
1070
1070
|
createRow: (e, o) => {
|
|
1071
1071
|
e.getCenterVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
|
|
1072
1072
|
const i = [...n ?? [], ...r ?? []];
|
|
1073
|
-
return t.filter((
|
|
1074
|
-
}, y(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((
|
|
1073
|
+
return t.filter((l) => !i.includes(l.column.id));
|
|
1074
|
+
}, y(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = x(() => [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
|
-
})), y(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = x(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((
|
|
1077
|
+
})), y(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = x(() => [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
|
})), y(o.options, "debugRows", "getRightVisibleCells"));
|
|
@@ -1097,10 +1097,10 @@ const Mo = {
|
|
|
1097
1097
|
}, y(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
function
|
|
1100
|
+
function Po(e) {
|
|
1101
1101
|
return e || (typeof document < "u" ? document : null);
|
|
1102
1102
|
}
|
|
1103
|
-
const
|
|
1103
|
+
const Oe = {
|
|
1104
1104
|
size: 150,
|
|
1105
1105
|
minSize: 20,
|
|
1106
1106
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
@@ -1111,8 +1111,8 @@ const Ae = {
|
|
|
1111
1111
|
deltaPercentage: null,
|
|
1112
1112
|
isResizingColumn: !1,
|
|
1113
1113
|
columnSizingStart: []
|
|
1114
|
-
}),
|
|
1115
|
-
getDefaultColumnDef: () =>
|
|
1114
|
+
}), $o = {
|
|
1115
|
+
getDefaultColumnDef: () => Oe,
|
|
1116
1116
|
getInitialState: (e) => ({
|
|
1117
1117
|
columnSizing: {},
|
|
1118
1118
|
columnSizingInfo: ot(),
|
|
@@ -1128,7 +1128,7 @@ const Ae = {
|
|
|
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 :
|
|
1131
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Oe.minSize, (n = i ?? e.columnDef.size) != null ? n : Oe.size), (r = e.columnDef.maxSize) != null ? r : Oe.maxSize);
|
|
1132
1132
|
}, e.getStart = x((t) => [t, Me(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), y(o.options, "debugColumns", "getStart")), e.getAfter = x((t) => [t, Me(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), y(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
1133
1133
|
o.setColumnSizing((t) => {
|
|
1134
1134
|
let {
|
|
@@ -1165,25 +1165,25 @@ const Ae = {
|
|
|
1165
1165
|
return (i) => {
|
|
1166
1166
|
if (!n || !r || (i.persist == null || i.persist(), rt(i) && i.touches && i.touches.length > 1))
|
|
1167
1167
|
return;
|
|
1168
|
-
const
|
|
1169
|
-
typeof
|
|
1168
|
+
const l = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], s = rt(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, w) => {
|
|
1169
|
+
typeof w == "number" && (o.setColumnSizingInfo((v) => {
|
|
1170
1170
|
var _, I;
|
|
1171
|
-
const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, M = (
|
|
1172
|
-
return v.columnSizingStart.forEach((
|
|
1173
|
-
let [L,
|
|
1174
|
-
a[L] = Math.round(Math.max(
|
|
1171
|
+
const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, M = (w - ((_ = v == null ? void 0 : v.startOffset) != null ? _ : 0)) * V, P = Math.max(M / ((I = v == null ? void 0 : v.startSize) != null ? I : 0), -0.999999);
|
|
1172
|
+
return v.columnSizingStart.forEach(($) => {
|
|
1173
|
+
let [L, b] = $;
|
|
1174
|
+
a[L] = Math.round(Math.max(b + b * P, 0) * 100) / 100;
|
|
1175
1175
|
}), {
|
|
1176
1176
|
...v,
|
|
1177
1177
|
deltaOffset: M,
|
|
1178
|
-
deltaPercentage:
|
|
1178
|
+
deltaPercentage: P
|
|
1179
1179
|
};
|
|
1180
1180
|
}), (o.options.columnResizeMode === "onChange" || h === "end") && o.setColumnSizing((v) => ({
|
|
1181
1181
|
...v,
|
|
1182
1182
|
...a
|
|
1183
1183
|
})));
|
|
1184
1184
|
}, f = (h) => d("move", h), g = (h) => {
|
|
1185
|
-
d("end", h), o.setColumnSizingInfo((
|
|
1186
|
-
...
|
|
1185
|
+
d("end", h), o.setColumnSizingInfo((w) => ({
|
|
1186
|
+
...w,
|
|
1187
1187
|
isResizingColumn: !1,
|
|
1188
1188
|
startOffset: null,
|
|
1189
1189
|
startSize: null,
|
|
@@ -1191,7 +1191,7 @@ const Ae = {
|
|
|
1191
1191
|
deltaPercentage: null,
|
|
1192
1192
|
columnSizingStart: []
|
|
1193
1193
|
}));
|
|
1194
|
-
}, c =
|
|
1194
|
+
}, c = Po(t), p = {
|
|
1195
1195
|
moveHandler: (h) => f(h.clientX),
|
|
1196
1196
|
upHandler: (h) => {
|
|
1197
1197
|
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler), g(h.clientX);
|
|
@@ -1199,16 +1199,16 @@ const Ae = {
|
|
|
1199
1199
|
}, m = {
|
|
1200
1200
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
1201
1201
|
upHandler: (h) => {
|
|
1202
|
-
var
|
|
1203
|
-
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((
|
|
1202
|
+
var w;
|
|
1203
|
+
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((w = h.touches[0]) == null ? void 0 : w.clientX);
|
|
1204
1204
|
}
|
|
1205
|
-
}, S =
|
|
1205
|
+
}, S = bo() ? {
|
|
1206
1206
|
passive: !1
|
|
1207
1207
|
} : !1;
|
|
1208
1208
|
rt(i) ? (c == null || c.addEventListener("touchmove", m.moveHandler, S), c == null || c.addEventListener("touchend", m.upHandler, S)) : (c == null || c.addEventListener("mousemove", p.moveHandler, S), c == null || c.addEventListener("mouseup", p.upHandler, S)), o.setColumnSizingInfo((h) => ({
|
|
1209
1209
|
...h,
|
|
1210
|
-
startOffset:
|
|
1211
|
-
startSize:
|
|
1210
|
+
startOffset: s,
|
|
1211
|
+
startSize: l,
|
|
1212
1212
|
deltaOffset: 0,
|
|
1213
1213
|
deltaPercentage: 0,
|
|
1214
1214
|
columnSizingStart: u,
|
|
@@ -1239,9 +1239,9 @@ const Ae = {
|
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
|
-
let
|
|
1243
|
-
function
|
|
1244
|
-
if (typeof
|
|
1242
|
+
let Ae = null;
|
|
1243
|
+
function bo() {
|
|
1244
|
+
if (typeof Ae == "boolean") return Ae;
|
|
1245
1245
|
let e = !1;
|
|
1246
1246
|
try {
|
|
1247
1247
|
const o = {
|
|
@@ -1254,7 +1254,7 @@ function $o() {
|
|
|
1254
1254
|
} catch {
|
|
1255
1255
|
e = !1;
|
|
1256
1256
|
}
|
|
1257
|
-
return
|
|
1257
|
+
return Ae = e, Ae;
|
|
1258
1258
|
}
|
|
1259
1259
|
function rt(e) {
|
|
1260
1260
|
return e.type === "touchstart";
|
|
@@ -1388,8 +1388,8 @@ const Do = {
|
|
|
1388
1388
|
}, e.getExpandedDepth = () => {
|
|
1389
1389
|
let n = 0;
|
|
1390
1390
|
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
|
|
1391
|
-
const
|
|
1392
|
-
n = Math.max(n,
|
|
1391
|
+
const l = i.split(".");
|
|
1392
|
+
n = Math.max(n, l.length);
|
|
1393
1393
|
}), n;
|
|
1394
1394
|
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
|
1395
1395
|
},
|
|
@@ -1398,20 +1398,20 @@ const Do = {
|
|
|
1398
1398
|
o.setExpanded((n) => {
|
|
1399
1399
|
var r;
|
|
1400
1400
|
const i = n === !0 ? !0 : !!(n != null && n[e.id]);
|
|
1401
|
-
let
|
|
1401
|
+
let l = {};
|
|
1402
1402
|
if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((u) => {
|
|
1403
|
-
|
|
1404
|
-
}) :
|
|
1403
|
+
l[u] = !0;
|
|
1404
|
+
}) : l = n, t = (r = t) != null ? r : !i, !i && t)
|
|
1405
1405
|
return {
|
|
1406
|
-
...
|
|
1406
|
+
...l,
|
|
1407
1407
|
[e.id]: !0
|
|
1408
1408
|
};
|
|
1409
1409
|
if (i && !t) {
|
|
1410
1410
|
const {
|
|
1411
1411
|
[e.id]: u,
|
|
1412
|
-
...
|
|
1413
|
-
} =
|
|
1414
|
-
return
|
|
1412
|
+
...s
|
|
1413
|
+
} = l;
|
|
1414
|
+
return s;
|
|
1415
1415
|
}
|
|
1416
1416
|
return n;
|
|
1417
1417
|
});
|
|
@@ -1473,8 +1473,8 @@ const Do = {
|
|
|
1473
1473
|
}, e.setPageIndex = (n) => {
|
|
1474
1474
|
e.setPagination((r) => {
|
|
1475
1475
|
let i = fe(n, r.pageIndex);
|
|
1476
|
-
const
|
|
1477
|
-
return i = Math.max(0, Math.min(i,
|
|
1476
|
+
const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
1477
|
+
return i = Math.max(0, Math.min(i, l)), {
|
|
1478
1478
|
...r,
|
|
1479
1479
|
pageIndex: i
|
|
1480
1480
|
};
|
|
@@ -1487,7 +1487,7 @@ const Do = {
|
|
|
1487
1487
|
e.setPageSize(n ? ct : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : ct);
|
|
1488
1488
|
}, e.setPageSize = (n) => {
|
|
1489
1489
|
e.setPagination((r) => {
|
|
1490
|
-
const i = Math.max(1, fe(n, r.pageSize)),
|
|
1490
|
+
const i = Math.max(1, fe(n, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
|
|
1491
1491
|
return {
|
|
1492
1492
|
...r,
|
|
1493
1493
|
pageIndex: u,
|
|
@@ -1496,14 +1496,14 @@ const Do = {
|
|
|
1496
1496
|
});
|
|
1497
1497
|
}, e.setPageCount = (n) => e.setPagination((r) => {
|
|
1498
1498
|
var i;
|
|
1499
|
-
let
|
|
1500
|
-
return typeof
|
|
1499
|
+
let l = fe(n, (i = e.options.pageCount) != null ? i : -1);
|
|
1500
|
+
return typeof l == "number" && (l = Math.max(-1, l)), {
|
|
1501
1501
|
...r,
|
|
1502
|
-
pageCount:
|
|
1502
|
+
pageCount: l
|
|
1503
1503
|
};
|
|
1504
1504
|
}), e.getPageOptions = x(() => [e.getPageCount()], (n) => {
|
|
1505
1505
|
let r = [];
|
|
1506
|
-
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i,
|
|
1506
|
+
return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
|
|
1507
1507
|
}, y(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
1508
1508
|
const {
|
|
1509
1509
|
pageIndex: n
|
|
@@ -1517,12 +1517,12 @@ const Do = {
|
|
|
1517
1517
|
return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
},
|
|
1520
|
+
}, lt = () => ({
|
|
1521
1521
|
top: [],
|
|
1522
1522
|
bottom: []
|
|
1523
|
-
}),
|
|
1523
|
+
}), To = {
|
|
1524
1524
|
getInitialState: (e) => ({
|
|
1525
|
-
rowPinning:
|
|
1525
|
+
rowPinning: lt(),
|
|
1526
1526
|
...e
|
|
1527
1527
|
}),
|
|
1528
1528
|
getDefaultOptions: (e) => ({
|
|
@@ -1530,36 +1530,36 @@ const Do = {
|
|
|
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((s) => {
|
|
1534
1534
|
let {
|
|
1535
1535
|
id: a
|
|
1536
|
-
} =
|
|
1536
|
+
} = s;
|
|
1537
1537
|
return a;
|
|
1538
|
-
}) : [],
|
|
1538
|
+
}) : [], l = r ? e.getParentRows().map((s) => {
|
|
1539
1539
|
let {
|
|
1540
1540
|
id: a
|
|
1541
|
-
} =
|
|
1541
|
+
} = s;
|
|
1542
1542
|
return a;
|
|
1543
|
-
}) : [], u = /* @__PURE__ */ new Set([...
|
|
1544
|
-
o.setRowPinning((
|
|
1543
|
+
}) : [], u = /* @__PURE__ */ new Set([...l, e.id, ...i]);
|
|
1544
|
+
o.setRowPinning((s) => {
|
|
1545
1545
|
var a, d;
|
|
1546
1546
|
if (t === "bottom") {
|
|
1547
1547
|
var f, g;
|
|
1548
1548
|
return {
|
|
1549
|
-
top: ((f =
|
|
1550
|
-
bottom: [...((g =
|
|
1549
|
+
top: ((f = s == null ? void 0 : s.top) != null ? f : []).filter((m) => !(u != null && u.has(m))),
|
|
1550
|
+
bottom: [...((g = s == null ? void 0 : s.bottom) != null ? g : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)]
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
1553
|
if (t === "top") {
|
|
1554
1554
|
var c, p;
|
|
1555
1555
|
return {
|
|
1556
|
-
top: [...((c =
|
|
1557
|
-
bottom: ((p =
|
|
1556
|
+
top: [...((c = s == null ? void 0 : s.top) != null ? c : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)],
|
|
1557
|
+
bottom: ((p = s == null ? void 0 : s.bottom) != null ? p : []).filter((m) => !(u != null && u.has(m)))
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
1560
|
return {
|
|
1561
|
-
top: ((a =
|
|
1562
|
-
bottom: ((d =
|
|
1561
|
+
top: ((a = s == null ? void 0 : s.top) != null ? a : []).filter((m) => !(u != null && u.has(m))),
|
|
1562
|
+
bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((m) => !(u != null && u.has(m)))
|
|
1563
1563
|
};
|
|
1564
1564
|
});
|
|
1565
1565
|
}, e.getCanPin = () => {
|
|
@@ -1573,16 +1573,16 @@ const Do = {
|
|
|
1573
1573
|
const t = [e.id], {
|
|
1574
1574
|
top: n,
|
|
1575
1575
|
bottom: r
|
|
1576
|
-
} = o.getState().rowPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)),
|
|
1577
|
-
return i ? "top" :
|
|
1576
|
+
} = o.getState().rowPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), l = t.some((u) => r == null ? void 0 : r.includes(u));
|
|
1577
|
+
return i ? "top" : l ? "bottom" : !1;
|
|
1578
1578
|
}, e.getPinnedIndex = () => {
|
|
1579
1579
|
var t, n;
|
|
1580
1580
|
const r = e.getIsPinned();
|
|
1581
1581
|
if (!r) return -1;
|
|
1582
|
-
const i = (t = r === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((
|
|
1582
|
+
const i = (t = r === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((l) => {
|
|
1583
1583
|
let {
|
|
1584
1584
|
id: u
|
|
1585
|
-
} =
|
|
1585
|
+
} = l;
|
|
1586
1586
|
return u;
|
|
1587
1587
|
});
|
|
1588
1588
|
return (n = i == null ? void 0 : i.indexOf(e.id)) != null ? n : -1;
|
|
@@ -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 ? lt() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : lt());
|
|
1595
1595
|
}, e.getIsSomeRowsPinned = (o) => {
|
|
1596
1596
|
var t;
|
|
1597
1597
|
const n = e.getState().rowPinning;
|
|
@@ -1605,15 +1605,15 @@ const Do = {
|
|
|
1605
1605
|
return ((r = e.options.keepPinnedRows) == null || r ? (
|
|
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
|
-
(t ?? []).map((
|
|
1609
|
-
const u = e.getRow(
|
|
1608
|
+
(t ?? []).map((l) => {
|
|
1609
|
+
const u = e.getRow(l, !0);
|
|
1610
1610
|
return u.getIsAllParentsExpanded() ? u : null;
|
|
1611
1611
|
})
|
|
1612
1612
|
) : (
|
|
1613
1613
|
//else get only visible rows that are pinned
|
|
1614
|
-
(t ?? []).map((
|
|
1615
|
-
)).filter(Boolean).map((
|
|
1616
|
-
...
|
|
1614
|
+
(t ?? []).map((l) => o.find((u) => u.id === l))
|
|
1615
|
+
)).filter(Boolean).map((l) => ({
|
|
1616
|
+
...l,
|
|
1617
1617
|
position: n
|
|
1618
1618
|
}));
|
|
1619
1619
|
}, e.getTopRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), y(e.options, "debugRows", "getTopRows")), e.getBottomRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), y(e.options, "debugRows", "getBottomRows")), e.getCenterRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
|
|
@@ -1621,7 +1621,7 @@ const Do = {
|
|
|
1621
1621
|
return o.filter((i) => !r.has(i.id));
|
|
1622
1622
|
}, y(e.options, "debugRows", "getCenterRows"));
|
|
1623
1623
|
}
|
|
1624
|
-
},
|
|
1624
|
+
}, No = {
|
|
1625
1625
|
getInitialState: (e) => ({
|
|
1626
1626
|
rowSelection: {},
|
|
1627
1627
|
...e
|
|
@@ -1658,15 +1658,15 @@ const Do = {
|
|
|
1658
1658
|
return e.getRowModel().rows.forEach((i) => {
|
|
1659
1659
|
dt(r, i.id, n, !0, e);
|
|
1660
1660
|
}), r;
|
|
1661
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ?
|
|
1661
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1662
1662
|
rows: [],
|
|
1663
1663
|
flatRows: [],
|
|
1664
1664
|
rowsById: {}
|
|
1665
|
-
}, y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ?
|
|
1665
|
+
}, y(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1666
1666
|
rows: [],
|
|
1667
1667
|
flatRows: [],
|
|
1668
1668
|
rowsById: {}
|
|
1669
|
-
}, y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ?
|
|
1669
|
+
}, y(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? st(e, t) : {
|
|
1670
1670
|
rows: [],
|
|
1671
1671
|
flatRows: [],
|
|
1672
1672
|
rowsById: {}
|
|
@@ -1699,13 +1699,13 @@ const Do = {
|
|
|
1699
1699
|
e.toggleSelected = (t, n) => {
|
|
1700
1700
|
const r = e.getIsSelected();
|
|
1701
1701
|
o.setRowSelection((i) => {
|
|
1702
|
-
var
|
|
1702
|
+
var l;
|
|
1703
1703
|
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
|
|
1704
1704
|
return i;
|
|
1705
1705
|
const u = {
|
|
1706
1706
|
...i
|
|
1707
1707
|
};
|
|
1708
|
-
return dt(u, e.id, t, (
|
|
1708
|
+
return dt(u, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), u;
|
|
1709
1709
|
});
|
|
1710
1710
|
}, e.getIsSelected = () => {
|
|
1711
1711
|
const {
|
|
@@ -1741,19 +1741,19 @@ const Do = {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
}, dt = (e, o, t, n, r) => {
|
|
1743
1743
|
var i;
|
|
1744
|
-
const
|
|
1745
|
-
t ? (
|
|
1744
|
+
const l = r.getRow(o, !0);
|
|
1745
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => dt(e, u.id, t, n, r));
|
|
1746
1746
|
};
|
|
1747
|
-
function
|
|
1748
|
-
const t = e.getState().rowSelection, n = [], r = {}, i = function(
|
|
1749
|
-
return
|
|
1747
|
+
function st(e, o) {
|
|
1748
|
+
const t = e.getState().rowSelection, n = [], r = {}, i = function(l, u) {
|
|
1749
|
+
return l.map((s) => {
|
|
1750
1750
|
var a;
|
|
1751
|
-
const d = vt(
|
|
1752
|
-
if (d && (n.push(
|
|
1753
|
-
...
|
|
1754
|
-
subRows: i(
|
|
1751
|
+
const d = vt(s, t);
|
|
1752
|
+
if (d && (n.push(s), r[s.id] = s), (a = s.subRows) != null && a.length && (s = {
|
|
1753
|
+
...s,
|
|
1754
|
+
subRows: i(s.subRows)
|
|
1755
1755
|
}), d)
|
|
1756
|
-
return
|
|
1756
|
+
return s;
|
|
1757
1757
|
}).filter(Boolean);
|
|
1758
1758
|
};
|
|
1759
1759
|
return {
|
|
@@ -1770,17 +1770,17 @@ function gt(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
|
-
return e.subRows.forEach((
|
|
1774
|
-
if (!(i && !r) && (
|
|
1775
|
-
const u = gt(
|
|
1773
|
+
return e.subRows.forEach((l) => {
|
|
1774
|
+
if (!(i && !r) && (l.getCanSelect() && (vt(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
|
|
1775
|
+
const u = gt(l, o);
|
|
1776
1776
|
u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
|
|
1777
1777
|
}
|
|
1778
1778
|
}), r ? "all" : i ? "some" : !1;
|
|
1779
1779
|
}
|
|
1780
|
-
const ft = /([0-9]+)/gm, jo = (e, o, t) => vn(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), Ho = (e, o, t) => vn(pe(e.getValue(t)), pe(o.getValue(t))), Go = (e, o, t) => Rt(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), zo = (e, o, t) => Rt(pe(e.getValue(t)), pe(o.getValue(t))),
|
|
1780
|
+
const ft = /([0-9]+)/gm, jo = (e, o, t) => vn(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), Ho = (e, o, t) => vn(pe(e.getValue(t)), pe(o.getValue(t))), Go = (e, o, t) => Rt(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), zo = (e, o, t) => Rt(pe(e.getValue(t)), pe(o.getValue(t))), ko = (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
|
-
},
|
|
1783
|
+
}, Bo = (e, o, t) => Rt(e.getValue(t), o.getValue(t));
|
|
1784
1784
|
function Rt(e, o) {
|
|
1785
1785
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1786
1786
|
}
|
|
@@ -1790,19 +1790,19 @@ function pe(e) {
|
|
|
1790
1790
|
function vn(e, o) {
|
|
1791
1791
|
const t = e.split(ft).filter(Boolean), n = o.split(ft).filter(Boolean);
|
|
1792
1792
|
for (; t.length && n.length; ) {
|
|
1793
|
-
const r = t.shift(), i = n.shift(),
|
|
1794
|
-
if (isNaN(
|
|
1793
|
+
const r = t.shift(), i = n.shift(), l = parseInt(r, 10), u = parseInt(i, 10), s = [l, u].sort();
|
|
1794
|
+
if (isNaN(s[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(
|
|
1802
|
-
return isNaN(
|
|
1803
|
-
if (
|
|
1801
|
+
if (isNaN(s[1]))
|
|
1802
|
+
return isNaN(l) ? -1 : 1;
|
|
1803
|
+
if (l > u)
|
|
1804
1804
|
return 1;
|
|
1805
|
-
if (u >
|
|
1805
|
+
if (u > l)
|
|
1806
1806
|
return -1;
|
|
1807
1807
|
}
|
|
1808
1808
|
return t.length - n.length;
|
|
@@ -1812,8 +1812,8 @@ const Fe = {
|
|
|
1812
1812
|
alphanumericCaseSensitive: Ho,
|
|
1813
1813
|
text: Go,
|
|
1814
1814
|
textCaseSensitive: zo,
|
|
1815
|
-
datetime:
|
|
1816
|
-
basic:
|
|
1815
|
+
datetime: ko,
|
|
1816
|
+
basic: Bo
|
|
1817
1817
|
}, qo = {
|
|
1818
1818
|
getInitialState: (e) => ({
|
|
1819
1819
|
sorting: [],
|
|
@@ -1849,19 +1849,19 @@ const Fe = {
|
|
|
1849
1849
|
return Ke(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : Fe[e.columnDef.sortingFn];
|
|
1850
1850
|
}, e.toggleSorting = (t, n) => {
|
|
1851
1851
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1852
|
-
o.setSorting((
|
|
1853
|
-
const u =
|
|
1852
|
+
o.setSorting((l) => {
|
|
1853
|
+
const u = l == null ? void 0 : l.find((c) => c.id === e.id), s = l == null ? void 0 : l.findIndex((c) => c.id === e.id);
|
|
1854
1854
|
let a = [], d, f = i ? t : r === "desc";
|
|
1855
|
-
if (
|
|
1855
|
+
if (l != null && l.length && e.getCanMultiSort() && n ? u ? d = "toggle" : d = "add" : l != null && l.length && s !== l.length - 1 ? d = "replace" : u ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
|
|
1856
1856
|
var g;
|
|
1857
|
-
a = [...
|
|
1857
|
+
a = [...l, {
|
|
1858
1858
|
id: e.id,
|
|
1859
1859
|
desc: f
|
|
1860
1860
|
}], a.splice(0, a.length - ((g = o.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
|
|
1861
|
-
} else d === "toggle" ? a =
|
|
1861
|
+
} else d === "toggle" ? a = l.map((c) => c.id === e.id ? {
|
|
1862
1862
|
...c,
|
|
1863
1863
|
desc: f
|
|
1864
|
-
} : c) : d === "remove" ? a =
|
|
1864
|
+
} : c) : d === "remove" ? a = l.filter((c) => c.id !== e.id) : a = [{
|
|
1865
1865
|
id: e.id,
|
|
1866
1866
|
desc: f
|
|
1867
1867
|
}];
|
|
@@ -1872,9 +1872,9 @@ const Fe = {
|
|
|
1872
1872
|
return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
|
|
1873
1873
|
}, e.getNextSortingOrder = (t) => {
|
|
1874
1874
|
var n, r;
|
|
1875
|
-
const i = e.getFirstSortDir(),
|
|
1876
|
-
return
|
|
1877
|
-
(!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 :
|
|
1875
|
+
const i = e.getFirstSortDir(), l = e.getIsSorted();
|
|
1876
|
+
return l ? l !== i && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
|
|
1877
|
+
(!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
|
|
1878
1878
|
}, e.getCanSort = () => {
|
|
1879
1879
|
var t, n;
|
|
1880
1880
|
return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
|
|
@@ -1919,9 +1919,9 @@ const Fe = {
|
|
|
1919
1919
|
//depends on RowSorting
|
|
1920
1920
|
Oo,
|
|
1921
1921
|
Ao,
|
|
1922
|
-
No,
|
|
1923
1922
|
To,
|
|
1924
|
-
|
|
1923
|
+
No,
|
|
1924
|
+
$o
|
|
1925
1925
|
];
|
|
1926
1926
|
function Ko(e) {
|
|
1927
1927
|
var o, t;
|
|
@@ -1930,17 +1930,17 @@ function Ko(e) {
|
|
|
1930
1930
|
let r = {
|
|
1931
1931
|
_features: n
|
|
1932
1932
|
};
|
|
1933
|
-
const i = r._features.reduce((g, c) => Object.assign(g, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}),
|
|
1933
|
+
const i = r._features.reduce((g, c) => Object.assign(g, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}), l = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
|
|
1934
1934
|
...i,
|
|
1935
1935
|
...g
|
|
1936
1936
|
};
|
|
1937
|
-
let
|
|
1937
|
+
let s = {
|
|
1938
1938
|
...{},
|
|
1939
1939
|
...(t = e.initialState) != null ? t : {}
|
|
1940
1940
|
};
|
|
1941
1941
|
r._features.forEach((g) => {
|
|
1942
1942
|
var c;
|
|
1943
|
-
|
|
1943
|
+
s = (c = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? c : s;
|
|
1944
1944
|
});
|
|
1945
1945
|
const a = [];
|
|
1946
1946
|
let d = !1;
|
|
@@ -1950,7 +1950,7 @@ function Ko(e) {
|
|
|
1950
1950
|
...i,
|
|
1951
1951
|
...e
|
|
1952
1952
|
},
|
|
1953
|
-
initialState:
|
|
1953
|
+
initialState: s,
|
|
1954
1954
|
_queue: (g) => {
|
|
1955
1955
|
a.push(g), d || (d = !0, Promise.resolve().then(() => {
|
|
1956
1956
|
for (; a.length; )
|
|
@@ -1965,7 +1965,7 @@ function Ko(e) {
|
|
|
1965
1965
|
},
|
|
1966
1966
|
setOptions: (g) => {
|
|
1967
1967
|
const c = fe(g, r.options);
|
|
1968
|
-
r.options =
|
|
1968
|
+
r.options = l(c);
|
|
1969
1969
|
},
|
|
1970
1970
|
getState: () => r.options.state,
|
|
1971
1971
|
setState: (g) => {
|
|
@@ -2006,8 +2006,8 @@ function Ko(e) {
|
|
|
2006
2006
|
getAllColumns: x(() => [r._getColumnDefs()], (g) => {
|
|
2007
2007
|
const c = function(p, m, S) {
|
|
2008
2008
|
return S === void 0 && (S = 0), p.map((h) => {
|
|
2009
|
-
const
|
|
2010
|
-
return
|
|
2009
|
+
const w = go(r, h, S, m), v = h;
|
|
2010
|
+
return w.columns = v.columns ? c(v.columns, w, S + 1) : [], w;
|
|
2011
2011
|
});
|
|
2012
2012
|
};
|
|
2013
2013
|
return c(g);
|
|
@@ -2036,14 +2036,14 @@ function Xo() {
|
|
|
2036
2036
|
rows: [],
|
|
2037
2037
|
flatRows: [],
|
|
2038
2038
|
rowsById: {}
|
|
2039
|
-
}, n = function(r, i,
|
|
2039
|
+
}, n = function(r, i, l) {
|
|
2040
2040
|
i === void 0 && (i = 0);
|
|
2041
2041
|
const u = [];
|
|
2042
2042
|
for (let a = 0; a < r.length; a++) {
|
|
2043
|
-
const d = wt(e, e._getRowId(r[a], a,
|
|
2043
|
+
const d = wt(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l == null ? void 0 : l.id);
|
|
2044
2044
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, u.push(d), e.options.getSubRows) {
|
|
2045
|
-
var
|
|
2046
|
-
d.originalSubRows = e.options.getSubRows(r[a], a), (
|
|
2045
|
+
var s;
|
|
2046
|
+
d.originalSubRows = e.options.getSubRows(r[a], a), (s = d.originalSubRows) != null && s.length && (d.subRows = n(d.originalSubRows, i + 1, d));
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
return u;
|
|
@@ -2067,14 +2067,14 @@ function Rn(e, o, t) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
function Qo(e, o, t) {
|
|
2069
2069
|
var n;
|
|
2070
|
-
const r = [], i = {},
|
|
2070
|
+
const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, a) {
|
|
2071
2071
|
a === void 0 && (a = 0);
|
|
2072
2072
|
const d = [];
|
|
2073
|
-
for (let g = 0; g <
|
|
2073
|
+
for (let g = 0; g < s.length; g++) {
|
|
2074
2074
|
var f;
|
|
2075
|
-
let c =
|
|
2075
|
+
let c = s[g];
|
|
2076
2076
|
const p = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2077
|
-
if (p.columnFilters = c.columnFilters, (f = c.subRows) != null && f.length && a <
|
|
2077
|
+
if (p.columnFilters = c.columnFilters, (f = c.subRows) != null && f.length && a < l) {
|
|
2078
2078
|
if (p.subRows = u(c.subRows, a + 1), c = p, o(c) && !p.subRows.length) {
|
|
2079
2079
|
d.push(c), i[c.id] = c, r.push(c);
|
|
2080
2080
|
continue;
|
|
@@ -2096,14 +2096,14 @@ function Qo(e, o, t) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
function Jo(e, o, t) {
|
|
2098
2098
|
var n;
|
|
2099
|
-
const r = [], i = {},
|
|
2099
|
+
const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, a) {
|
|
2100
2100
|
a === void 0 && (a = 0);
|
|
2101
2101
|
const d = [];
|
|
2102
|
-
for (let g = 0; g <
|
|
2103
|
-
let c =
|
|
2102
|
+
for (let g = 0; g < s.length; g++) {
|
|
2103
|
+
let c = s[g];
|
|
2104
2104
|
if (o(c)) {
|
|
2105
2105
|
var f;
|
|
2106
|
-
if ((f = c.subRows) != null && f.length && a <
|
|
2106
|
+
if ((f = c.subRows) != null && f.length && a < l) {
|
|
2107
2107
|
const m = wt(t, c.id, c.original, c.index, c.depth, void 0, c.parentId);
|
|
2108
2108
|
m.subRows = u(c.subRows, a + 1), c = m;
|
|
2109
2109
|
}
|
|
@@ -2122,13 +2122,13 @@ function Yo() {
|
|
|
2122
2122
|
return (e, o) => x(() => [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((u) => u.id).filter((u) => u !== o), r ? "__global__" : void 0].filter(Boolean),
|
|
2126
|
-
for (let
|
|
2127
|
-
if (u.columnFilters[i[
|
|
2125
|
+
const i = [...n.map((u) => u.id).filter((u) => u !== o), r ? "__global__" : void 0].filter(Boolean), l = (u) => {
|
|
2126
|
+
for (let s = 0; s < i.length; s++)
|
|
2127
|
+
if (u.columnFilters[i[s]] === !1)
|
|
2128
2128
|
return !1;
|
|
2129
2129
|
return !0;
|
|
2130
2130
|
};
|
|
2131
|
-
return Rn(t.rows,
|
|
2131
|
+
return Rn(t.rows, l, e);
|
|
2132
2132
|
}, y(e.options, "debugTable", "getFacetedRowModel"));
|
|
2133
2133
|
}
|
|
2134
2134
|
function Zo() {
|
|
@@ -2139,14 +2139,14 @@ function Zo() {
|
|
|
2139
2139
|
if (!t) return /* @__PURE__ */ new Map();
|
|
2140
2140
|
let n = /* @__PURE__ */ new Map();
|
|
2141
2141
|
for (let i = 0; i < t.flatRows.length; i++) {
|
|
2142
|
-
const
|
|
2143
|
-
for (let u = 0; u <
|
|
2144
|
-
const
|
|
2145
|
-
if (n.has(
|
|
2142
|
+
const l = t.flatRows[i].getUniqueValues(o);
|
|
2143
|
+
for (let u = 0; u < l.length; u++) {
|
|
2144
|
+
const s = l[u];
|
|
2145
|
+
if (n.has(s)) {
|
|
2146
2146
|
var r;
|
|
2147
|
-
n.set(
|
|
2147
|
+
n.set(s, ((r = n.get(s)) != null ? r : 0) + 1);
|
|
2148
2148
|
} else
|
|
2149
|
-
n.set(
|
|
2149
|
+
n.set(s, 1);
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
return n;
|
|
@@ -2176,8 +2176,8 @@ function er() {
|
|
|
2176
2176
|
resolvedValue: (c = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(g.value)) != null ? c : g.value
|
|
2177
2177
|
});
|
|
2178
2178
|
});
|
|
2179
|
-
const
|
|
2180
|
-
n && u &&
|
|
2179
|
+
const l = (t ?? []).map((g) => g.id), u = e.getGlobalFilterFn(), s = e.getAllLeafColumns().filter((g) => g.getCanGlobalFilter());
|
|
2180
|
+
n && u && s.length && (l.push("__global__"), s.forEach((g) => {
|
|
2181
2181
|
var c;
|
|
2182
2182
|
i.push({
|
|
2183
2183
|
id: g.id,
|
|
@@ -2211,8 +2211,8 @@ function er() {
|
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
2213
|
const f = (g) => {
|
|
2214
|
-
for (let c = 0; c <
|
|
2215
|
-
if (g.columnFilters[
|
|
2214
|
+
for (let c = 0; c < l.length; c++)
|
|
2215
|
+
if (g.columnFilters[l[c]] === !1)
|
|
2216
2216
|
return !1;
|
|
2217
2217
|
return !0;
|
|
2218
2218
|
};
|
|
@@ -2228,21 +2228,21 @@ function tr(e) {
|
|
|
2228
2228
|
pageIndex: i
|
|
2229
2229
|
} = t;
|
|
2230
2230
|
let {
|
|
2231
|
-
rows:
|
|
2231
|
+
rows: l,
|
|
2232
2232
|
flatRows: u,
|
|
2233
|
-
rowsById:
|
|
2233
|
+
rowsById: s
|
|
2234
2234
|
} = n;
|
|
2235
2235
|
const a = r * i, d = a + r;
|
|
2236
|
-
|
|
2236
|
+
l = l.slice(a, d);
|
|
2237
2237
|
let f;
|
|
2238
2238
|
o.options.paginateExpandedRows ? f = {
|
|
2239
|
-
rows:
|
|
2239
|
+
rows: l,
|
|
2240
2240
|
flatRows: u,
|
|
2241
|
-
rowsById:
|
|
2241
|
+
rowsById: s
|
|
2242
2242
|
} : f = Wo({
|
|
2243
|
-
rows:
|
|
2243
|
+
rows: l,
|
|
2244
2244
|
flatRows: u,
|
|
2245
|
-
rowsById:
|
|
2245
|
+
rowsById: s
|
|
2246
2246
|
}), f.flatRows = [];
|
|
2247
2247
|
const g = (c) => {
|
|
2248
2248
|
f.flatRows.push(c), c.subRows.length && c.subRows.forEach(g);
|
|
@@ -2254,37 +2254,37 @@ function nr() {
|
|
|
2254
2254
|
return (e) => x(() => [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((
|
|
2257
|
+
const n = e.getState().sorting, r = [], i = n.filter((s) => {
|
|
2258
2258
|
var a;
|
|
2259
|
-
return (a = e.getColumn(
|
|
2260
|
-
}),
|
|
2261
|
-
i.forEach((
|
|
2262
|
-
const a = e.getColumn(
|
|
2263
|
-
a && (s
|
|
2259
|
+
return (a = e.getColumn(s.id)) == null ? void 0 : a.getCanSort();
|
|
2260
|
+
}), l = {};
|
|
2261
|
+
i.forEach((s) => {
|
|
2262
|
+
const a = e.getColumn(s.id);
|
|
2263
|
+
a && (l[s.id] = {
|
|
2264
2264
|
sortUndefined: a.columnDef.sortUndefined,
|
|
2265
2265
|
invertSorting: a.columnDef.invertSorting,
|
|
2266
2266
|
sortingFn: a.getSortingFn()
|
|
2267
2267
|
});
|
|
2268
2268
|
});
|
|
2269
|
-
const u = (
|
|
2270
|
-
const a =
|
|
2269
|
+
const u = (s) => {
|
|
2270
|
+
const a = s.map((d) => ({
|
|
2271
2271
|
...d
|
|
2272
2272
|
}));
|
|
2273
2273
|
return a.sort((d, f) => {
|
|
2274
2274
|
for (let c = 0; c < i.length; c += 1) {
|
|
2275
2275
|
var g;
|
|
2276
|
-
const p = i[c], m =
|
|
2277
|
-
let
|
|
2276
|
+
const p = i[c], m = l[p.id], S = m.sortUndefined, h = (g = p == null ? void 0 : p.desc) != null ? g : !1;
|
|
2277
|
+
let w = 0;
|
|
2278
2278
|
if (S) {
|
|
2279
2279
|
const v = d.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, V = _ === void 0;
|
|
2280
2280
|
if (I || V) {
|
|
2281
2281
|
if (S === "first") return I ? -1 : 1;
|
|
2282
2282
|
if (S === "last") return I ? 1 : -1;
|
|
2283
|
-
|
|
2283
|
+
w = I && V ? 0 : I ? S : -S;
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
if (
|
|
2287
|
-
return h && (
|
|
2286
|
+
if (w === 0 && (w = m.sortingFn(d, f, p.id)), w !== 0)
|
|
2287
|
+
return h && (w *= -1), m.invertSorting && (w *= -1), w;
|
|
2288
2288
|
}
|
|
2289
2289
|
return d.index - f.index;
|
|
2290
2290
|
}), a.forEach((d) => {
|
|
@@ -2324,7 +2324,7 @@ function rr(e) {
|
|
|
2324
2324
|
function ir(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 lr(e) {
|
|
2328
2328
|
const o = {
|
|
2329
2329
|
state: {},
|
|
2330
2330
|
// Dummy state
|
|
@@ -2345,70 +2345,70 @@ function sr(e) {
|
|
|
2345
2345
|
},
|
|
2346
2346
|
// Similarly, we'll maintain both our internal state and any user-provided
|
|
2347
2347
|
// state.
|
|
2348
|
-
onStateChange: (
|
|
2349
|
-
r(
|
|
2348
|
+
onStateChange: (l) => {
|
|
2349
|
+
r(l), e.onStateChange == null || e.onStateChange(l);
|
|
2350
2350
|
}
|
|
2351
2351
|
})), t.current;
|
|
2352
2352
|
}
|
|
2353
|
-
const
|
|
2353
|
+
const sr = ({
|
|
2354
2354
|
page: e = 1,
|
|
2355
2355
|
between: o = 3,
|
|
2356
2356
|
totalPages: t,
|
|
2357
2357
|
changePage: n,
|
|
2358
2358
|
next: r = !0,
|
|
2359
2359
|
ellipsis: i = 0,
|
|
2360
|
-
classes:
|
|
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 u = Array.from({ length: t }, (d, f) => f),
|
|
2363
|
+
const u = Array.from({ length: t }, (d, f) => f), s = o * 2 + 1;
|
|
2364
2364
|
let a;
|
|
2365
|
-
return t <
|
|
2365
|
+
return t < s ? a = u : e - 1 <= o ? a = u.slice(0, s - (i > 0 ? i + 1 : 0)) : e + o >= t ? a = u.slice(t - s + (i > 0 ? i + 1 : 0), t) : a = u.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__ */
|
|
2368
|
+
), /* @__PURE__ */ C.jsxs("div", { className: F("flex", l == null ? void 0 : l.root), children: [
|
|
2369
|
+
r && /* @__PURE__ */ C.jsx(
|
|
2370
2370
|
ge,
|
|
2371
2371
|
{
|
|
2372
2372
|
size: "sm",
|
|
2373
2373
|
intent: "ghost",
|
|
2374
|
-
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled",
|
|
2374
|
+
className: F("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__ */ C.jsx(Ne, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2378
2378
|
}
|
|
2379
2379
|
),
|
|
2380
|
-
t >
|
|
2380
|
+
t > s && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ C.jsx(
|
|
2381
2381
|
ge,
|
|
2382
2382
|
{
|
|
2383
2383
|
size: "sm",
|
|
2384
2384
|
intent: "ghost",
|
|
2385
|
-
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark",
|
|
2385
|
+
className: F("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 >
|
|
2391
|
+
t > s && i > 0 && e - 1 > o && /* @__PURE__ */ C.jsx(
|
|
2392
2392
|
ge,
|
|
2393
2393
|
{
|
|
2394
2394
|
size: "sm",
|
|
2395
2395
|
intent: "ghost",
|
|
2396
|
-
className: F("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark",
|
|
2396
|
+
className: F("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
|
a.map((d) => {
|
|
2401
2401
|
const f = d === e - 1;
|
|
2402
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ C.jsx(
|
|
2403
2403
|
ge,
|
|
2404
2404
|
{
|
|
2405
2405
|
size: "sm",
|
|
2406
2406
|
className: F(
|
|
2407
2407
|
"mob-body-regular-l w-[40px] p-0 text-color-dark",
|
|
2408
2408
|
{
|
|
2409
|
-
[`text-color-primary-default ${
|
|
2409
|
+
[`text-color-primary-default ${l == null ? void 0 : l.active}`]: f
|
|
2410
2410
|
},
|
|
2411
|
-
|
|
2411
|
+
l == null ? void 0 : l.button
|
|
2412
2412
|
),
|
|
2413
2413
|
intent: f ? "secondary" : "ghost",
|
|
2414
2414
|
onClick: () => !f && n(d),
|
|
@@ -2417,52 +2417,52 @@ const lr = ({
|
|
|
2417
2417
|
d
|
|
2418
2418
|
);
|
|
2419
2419
|
}),
|
|
2420
|
-
t >
|
|
2420
|
+
t > s && i > 0 && e < t - o && /* @__PURE__ */ C.jsx(
|
|
2421
2421
|
ge,
|
|
2422
2422
|
{
|
|
2423
2423
|
size: "sm",
|
|
2424
2424
|
intent: "ghost",
|
|
2425
|
-
className: F("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark",
|
|
2425
|
+
className: F("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 >
|
|
2429
|
+
t > s && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((d) => /* @__PURE__ */ C.jsx(
|
|
2430
2430
|
ge,
|
|
2431
2431
|
{
|
|
2432
2432
|
size: "sm",
|
|
2433
|
-
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark",
|
|
2433
|
+
className: F("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__ */
|
|
2440
|
+
r && /* @__PURE__ */ C.jsx(
|
|
2441
2441
|
ge,
|
|
2442
2442
|
{
|
|
2443
2443
|
size: "sm",
|
|
2444
2444
|
intent: "ghost",
|
|
2445
|
-
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled",
|
|
2445
|
+
className: F("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__ */ C.jsx(Ne, { name: "arrows/arrowRight" })
|
|
2449
2449
|
}
|
|
2450
2450
|
)
|
|
2451
2451
|
] });
|
|
2452
2452
|
}, ur = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2453
|
-
const
|
|
2454
|
-
return /* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2453
|
+
const l = t * e, u = l > r ? r : l;
|
|
2454
|
+
return /* @__PURE__ */ C.jsxs("div", { className: F("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2455
|
+
/* @__PURE__ */ C.jsxs("span", { className: F("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
2456
2456
|
"Показано ",
|
|
2457
2457
|
u,
|
|
2458
2458
|
" из ",
|
|
2459
2459
|
r
|
|
2460
2460
|
] }),
|
|
2461
|
-
/* @__PURE__ */
|
|
2462
|
-
|
|
2461
|
+
/* @__PURE__ */ C.jsx(
|
|
2462
|
+
sr,
|
|
2463
2463
|
{
|
|
2464
2464
|
totalPages: o,
|
|
2465
|
-
changePage: (
|
|
2465
|
+
changePage: (s) => n(s),
|
|
2466
2466
|
page: e,
|
|
2467
2467
|
ellipsis: 1,
|
|
2468
2468
|
classes: i == null ? void 0 : i.pagination
|
|
@@ -2477,7 +2477,7 @@ const lr = ({
|
|
|
2477
2477
|
pagination: r,
|
|
2478
2478
|
empty: i = "Not found"
|
|
2479
2479
|
}) => {
|
|
2480
|
-
const
|
|
2480
|
+
const l = r !== !1 && t.getPageCount() > 1, u = {
|
|
2481
2481
|
pageCount: t.getPageCount(),
|
|
2482
2482
|
rowsCount: t.getCoreRowModel().rows.length,
|
|
2483
2483
|
pageSize: t.getState().pagination.pageSize,
|
|
@@ -2485,9 +2485,9 @@ const lr = ({
|
|
|
2485
2485
|
onPageIndexChange: t.setPageIndex,
|
|
2486
2486
|
classes: n == null ? void 0 : n.pagination
|
|
2487
2487
|
};
|
|
2488
|
-
return /* @__PURE__ */
|
|
2489
|
-
/* @__PURE__ */
|
|
2490
|
-
o && /* @__PURE__ */
|
|
2488
|
+
return /* @__PURE__ */ C.jsxs("div", { className: F("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2489
|
+
/* @__PURE__ */ C.jsxs(un, { className: F("w-full", n == null ? void 0 : n.table), children: [
|
|
2490
|
+
o && /* @__PURE__ */ C.jsx(an, { className: "px-2", children: t.getHeaderGroups().map((s) => /* @__PURE__ */ C.jsx(
|
|
2491
2491
|
Te,
|
|
2492
2492
|
{
|
|
2493
2493
|
className: F(
|
|
@@ -2497,7 +2497,7 @@ const lr = ({
|
|
|
2497
2497
|
},
|
|
2498
2498
|
n == null ? void 0 : n.tableHeader
|
|
2499
2499
|
),
|
|
2500
|
-
children:
|
|
2500
|
+
children: s.headers.map((a) => /* @__PURE__ */ C.jsx(
|
|
2501
2501
|
dn,
|
|
2502
2502
|
{
|
|
2503
2503
|
className: F(
|
|
@@ -2512,9 +2512,9 @@ const lr = ({
|
|
|
2512
2512
|
a.id
|
|
2513
2513
|
))
|
|
2514
2514
|
},
|
|
2515
|
-
|
|
2515
|
+
s.id
|
|
2516
2516
|
)) }),
|
|
2517
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ C.jsx(cn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((s, a) => /* @__PURE__ */ C.jsx(
|
|
2518
2518
|
Te,
|
|
2519
2519
|
{
|
|
2520
2520
|
className: F(
|
|
@@ -2525,7 +2525,7 @@ const lr = ({
|
|
|
2525
2525
|
},
|
|
2526
2526
|
n == null ? void 0 : n.tableRow
|
|
2527
2527
|
),
|
|
2528
|
-
children:
|
|
2528
|
+
children: s.getVisibleCells().map((d, f) => /* @__PURE__ */ C.jsx(
|
|
2529
2529
|
ut,
|
|
2530
2530
|
{
|
|
2531
2531
|
className: F(
|
|
@@ -2541,10 +2541,10 @@ const lr = ({
|
|
|
2541
2541
|
d.id
|
|
2542
2542
|
))
|
|
2543
2543
|
},
|
|
2544
|
-
|
|
2545
|
-
)) : /* @__PURE__ */
|
|
2544
|
+
s.id
|
|
2545
|
+
)) : /* @__PURE__ */ C.jsx(Te, { children: /* @__PURE__ */ C.jsx(ut, { className: "py-4 text-center", colSpan: t.getAllColumns().length, children: i }) }) })
|
|
2546
2546
|
] }),
|
|
2547
|
-
|
|
2547
|
+
l ? typeof r == "function" ? r(u) : /* @__PURE__ */ C.jsx(ur, { ...u }) : null
|
|
2548
2548
|
] });
|
|
2549
2549
|
}, cr = ({
|
|
2550
2550
|
mode: e,
|
|
@@ -2552,7 +2552,7 @@ const lr = ({
|
|
|
2552
2552
|
table: t,
|
|
2553
2553
|
classes: n,
|
|
2554
2554
|
empty: r = "Not found"
|
|
2555
|
-
}) => /* @__PURE__ */
|
|
2555
|
+
}) => /* @__PURE__ */ C.jsx("div", { className: F("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((i) => /* @__PURE__ */ C.jsx(
|
|
2556
2556
|
"div",
|
|
2557
2557
|
{
|
|
2558
2558
|
className: F(
|
|
@@ -2562,9 +2562,9 @@ const lr = ({
|
|
|
2562
2562
|
},
|
|
2563
2563
|
n == null ? void 0 : n.tableRow
|
|
2564
2564
|
),
|
|
2565
|
-
children: i.getVisibleCells().map((
|
|
2566
|
-
const
|
|
2567
|
-
return /* @__PURE__ */
|
|
2565
|
+
children: i.getVisibleCells().map((l, u) => {
|
|
2566
|
+
const s = t.getHeaderGroups()[0].headers[u];
|
|
2567
|
+
return /* @__PURE__ */ C.jsxs(
|
|
2568
2568
|
"div",
|
|
2569
2569
|
{
|
|
2570
2570
|
className: F(
|
|
@@ -2576,32 +2576,32 @@ const lr = ({
|
|
|
2576
2576
|
n == null ? void 0 : n.tableCell
|
|
2577
2577
|
),
|
|
2578
2578
|
children: [
|
|
2579
|
-
o && /* @__PURE__ */
|
|
2580
|
-
/* @__PURE__ */
|
|
2579
|
+
o && /* @__PURE__ */ C.jsx("p", { className: "font-bold", children: Ge(s.column.columnDef.header, s.getContext()) }),
|
|
2580
|
+
/* @__PURE__ */ C.jsx("p", { children: Ge(l.column.columnDef.cell, l.getContext()) })
|
|
2581
2581
|
]
|
|
2582
2582
|
},
|
|
2583
|
-
|
|
2583
|
+
l.id
|
|
2584
2584
|
);
|
|
2585
2585
|
})
|
|
2586
2586
|
},
|
|
2587
2587
|
i.id
|
|
2588
|
-
)) : /* @__PURE__ */
|
|
2588
|
+
)) : /* @__PURE__ */ C.jsx("div", { children: r }) }), Si = ({
|
|
2589
2589
|
columns: e,
|
|
2590
2590
|
data: o,
|
|
2591
2591
|
enableHeaders: t = !0,
|
|
2592
2592
|
mode: n = "solid",
|
|
2593
2593
|
classes: r,
|
|
2594
2594
|
pagination: i = !0,
|
|
2595
|
-
empty:
|
|
2595
|
+
empty: l,
|
|
2596
2596
|
pageSize: u = 10
|
|
2597
2597
|
}) => {
|
|
2598
|
-
const [
|
|
2598
|
+
const [s, a] = oe([]), [d, f] = oe([]), [g, c] = oe({
|
|
2599
2599
|
pageIndex: 0,
|
|
2600
2600
|
pageSize: u
|
|
2601
|
-
}), p =
|
|
2601
|
+
}), p = lr({
|
|
2602
2602
|
data: o,
|
|
2603
2603
|
columns: e,
|
|
2604
|
-
state: { columnFilters:
|
|
2604
|
+
state: { columnFilters: s, sorting: d, pagination: g },
|
|
2605
2605
|
enableRowSelection: !0,
|
|
2606
2606
|
onSortingChange: f,
|
|
2607
2607
|
onColumnFiltersChange: a,
|
|
@@ -2613,25 +2613,25 @@ const lr = ({
|
|
|
2613
2613
|
getFacetedUniqueValues: Zo(),
|
|
2614
2614
|
getPaginationRowModel: tr()
|
|
2615
2615
|
}), { isMobile: m } = qe();
|
|
2616
|
-
return m ? /* @__PURE__ */
|
|
2616
|
+
return m ? /* @__PURE__ */ C.jsx(cr, { table: p, enableHeaders: t, empty: l, mode: n, classes: r }) : /* @__PURE__ */ C.jsx(ar, { table: p, enableHeaders: t, empty: l, mode: n, pagination: i, classes: r });
|
|
2617
2617
|
};
|
|
2618
2618
|
class wi {
|
|
2619
2619
|
static getColumnHelper() {
|
|
2620
|
-
return
|
|
2620
|
+
return so();
|
|
2621
2621
|
}
|
|
2622
2622
|
static getColumns(o, t) {
|
|
2623
2623
|
const {
|
|
2624
2624
|
helper: n = this.getColumnHelper(),
|
|
2625
2625
|
enableColumnFilter: r = !1,
|
|
2626
2626
|
enableSorting: i = !1,
|
|
2627
|
-
cellAccessor:
|
|
2627
|
+
cellAccessor: l,
|
|
2628
2628
|
headerAccessor: u
|
|
2629
2629
|
} = t || {};
|
|
2630
2630
|
return Object.keys(o).map((a) => n.accessor(a, {
|
|
2631
2631
|
header: (d) => {
|
|
2632
2632
|
const { column: f } = d, g = u ? u[a] : null;
|
|
2633
|
-
return /* @__PURE__ */
|
|
2634
|
-
|
|
2633
|
+
return /* @__PURE__ */ C.jsx(
|
|
2634
|
+
lo,
|
|
2635
2635
|
{
|
|
2636
2636
|
isSorted: f.getIsSorted() === "desc",
|
|
2637
2637
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
@@ -2642,19 +2642,19 @@ class wi {
|
|
|
2642
2642
|
);
|
|
2643
2643
|
},
|
|
2644
2644
|
cell: (d) => {
|
|
2645
|
-
const f =
|
|
2645
|
+
const f = l ? l[a] : null;
|
|
2646
2646
|
return f ? f(d) : d.getValue();
|
|
2647
2647
|
},
|
|
2648
|
-
enableColumnFilter:
|
|
2649
|
-
enableSorting:
|
|
2648
|
+
enableColumnFilter: Tt.isBoolean(r) ? r : r.includes(a),
|
|
2649
|
+
enableSorting: Tt.isBoolean(i) ? i : i.includes(a)
|
|
2650
2650
|
}));
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
2653
|
const dr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
2654
|
-
const [t, n] = oe(!0), [r, i] = oe(!0),
|
|
2655
|
-
(
|
|
2654
|
+
const [t, n] = oe(!0), [r, i] = oe(!0), l = Se(
|
|
2655
|
+
(s) => {
|
|
2656
2656
|
if (e) {
|
|
2657
|
-
switch (
|
|
2657
|
+
switch (s) {
|
|
2658
2658
|
case "prev":
|
|
2659
2659
|
e.scrollPrev();
|
|
2660
2660
|
break;
|
|
@@ -2666,30 +2666,30 @@ const dr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
},
|
|
2668
2668
|
[e, o]
|
|
2669
|
-
), u = Se((
|
|
2670
|
-
n(!
|
|
2669
|
+
), u = Se((s) => {
|
|
2670
|
+
n(!s.canScrollPrev()), i(!s.canScrollNext());
|
|
2671
2671
|
}, []);
|
|
2672
2672
|
return ve(() => {
|
|
2673
2673
|
e && (u(e), e.on("reInit", u).on("select", u));
|
|
2674
2674
|
}, [e, u]), {
|
|
2675
2675
|
prevBtnDisabled: t,
|
|
2676
2676
|
nextBtnDisabled: r,
|
|
2677
|
-
onClickNavigationButton:
|
|
2677
|
+
onClickNavigationButton: l
|
|
2678
2678
|
};
|
|
2679
2679
|
}, gr = ({ emblaApi: e, navigationHandler: o, setVisibleIndex: t }) => {
|
|
2680
2680
|
const [n, r] = oe([]), i = Se(
|
|
2681
|
-
(
|
|
2682
|
-
e && (e.scrollTo(
|
|
2681
|
+
(s) => {
|
|
2682
|
+
e && (e.scrollTo(s), o && o(e));
|
|
2683
2683
|
},
|
|
2684
2684
|
[e, o]
|
|
2685
|
-
),
|
|
2686
|
-
r(
|
|
2687
|
-
}, []), u = Se((
|
|
2688
|
-
t(
|
|
2685
|
+
), l = Se((s) => {
|
|
2686
|
+
r(s.scrollSnapList());
|
|
2687
|
+
}, []), u = Se((s) => {
|
|
2688
|
+
t(s.selectedScrollSnap());
|
|
2689
2689
|
}, []);
|
|
2690
2690
|
return ve(() => {
|
|
2691
|
-
e && (
|
|
2692
|
-
}, [e,
|
|
2691
|
+
e && (l(e), u(e), e.on("reInit", l).on("reInit", u).on("select", u));
|
|
2692
|
+
}, [e, l, u]), {
|
|
2693
2693
|
scrollSnaps: n,
|
|
2694
2694
|
onClickDot: i
|
|
2695
2695
|
};
|
|
@@ -2714,7 +2714,7 @@ function mr(e, o) {
|
|
|
2714
2714
|
return o && o(t) || t;
|
|
2715
2715
|
}
|
|
2716
2716
|
function xt(e = {}) {
|
|
2717
|
-
let o, t, n, r, i = null,
|
|
2717
|
+
let o, t, n, r, i = null, l = 0, u = !1, s = !1, a = !1, d = !1;
|
|
2718
2718
|
function f(E, j) {
|
|
2719
2719
|
t = E;
|
|
2720
2720
|
const {
|
|
@@ -2736,17 +2736,17 @@ function xt(e = {}) {
|
|
|
2736
2736
|
const {
|
|
2737
2737
|
ownerWindow: E
|
|
2738
2738
|
} = t.internalEngine();
|
|
2739
|
-
E.clearTimeout(
|
|
2739
|
+
E.clearTimeout(l), l = E.setTimeout(b, r[t.selectedScrollSnap()]), i = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
|
|
2740
2740
|
}
|
|
2741
2741
|
function p() {
|
|
2742
2742
|
const {
|
|
2743
2743
|
ownerWindow: E
|
|
2744
2744
|
} = t.internalEngine();
|
|
2745
|
-
E.clearTimeout(
|
|
2745
|
+
E.clearTimeout(l), l = 0, i = null, t.emit("autoplay:timerstopped");
|
|
2746
2746
|
}
|
|
2747
2747
|
function m() {
|
|
2748
2748
|
if (!n) {
|
|
2749
|
-
if (
|
|
2749
|
+
if (w()) {
|
|
2750
2750
|
a = !0;
|
|
2751
2751
|
return;
|
|
2752
2752
|
}
|
|
@@ -2757,48 +2757,48 @@ function xt(e = {}) {
|
|
|
2757
2757
|
n || (u && t.emit("autoplay:stop"), p(), u = !1);
|
|
2758
2758
|
}
|
|
2759
2759
|
function h() {
|
|
2760
|
-
if (
|
|
2760
|
+
if (w())
|
|
2761
2761
|
return a = u, S();
|
|
2762
2762
|
a && m();
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function w() {
|
|
2765
2765
|
const {
|
|
2766
2766
|
ownerDocument: E
|
|
2767
2767
|
} = t.internalEngine();
|
|
2768
2768
|
return E.visibilityState === "hidden";
|
|
2769
2769
|
}
|
|
2770
2770
|
function v() {
|
|
2771
|
-
|
|
2771
|
+
s || S();
|
|
2772
2772
|
}
|
|
2773
2773
|
function _() {
|
|
2774
|
-
|
|
2774
|
+
s || m();
|
|
2775
2775
|
}
|
|
2776
2776
|
function I() {
|
|
2777
|
-
|
|
2777
|
+
s = !0, S();
|
|
2778
2778
|
}
|
|
2779
2779
|
function V() {
|
|
2780
|
-
|
|
2780
|
+
s = !1, m();
|
|
2781
2781
|
}
|
|
2782
2782
|
function M(E) {
|
|
2783
2783
|
typeof E < "u" && (d = E), m();
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function P() {
|
|
2786
2786
|
u && S();
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function $() {
|
|
2789
2789
|
u && m();
|
|
2790
2790
|
}
|
|
2791
2791
|
function L() {
|
|
2792
2792
|
return u;
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function b() {
|
|
2795
2795
|
const {
|
|
2796
2796
|
index: E
|
|
2797
2797
|
} = t.internalEngine(), j = E.clone().add(1).get(), U = t.scrollSnapList().length - 1, K = o.stopOnLastSnap && j === U;
|
|
2798
2798
|
if (t.canScrollNext() ? t.scrollNext(d) : t.scrollTo(0, d), t.emit("autoplay:select"), K) return S();
|
|
2799
2799
|
m();
|
|
2800
2800
|
}
|
|
2801
|
-
function
|
|
2801
|
+
function T() {
|
|
2802
2802
|
if (!i) return null;
|
|
2803
2803
|
const E = r[t.selectedScrollSnap()], j = (/* @__PURE__ */ new Date()).getTime() - i;
|
|
2804
2804
|
return E - j;
|
|
@@ -2809,10 +2809,10 @@ function xt(e = {}) {
|
|
|
2809
2809
|
init: f,
|
|
2810
2810
|
destroy: g,
|
|
2811
2811
|
play: M,
|
|
2812
|
-
stop:
|
|
2813
|
-
reset:
|
|
2812
|
+
stop: P,
|
|
2813
|
+
reset: $,
|
|
2814
2814
|
isPlaying: L,
|
|
2815
|
-
timeUntilNext:
|
|
2815
|
+
timeUntilNext: T
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
2818
2818
|
xt.globalOptions = void 0;
|
|
@@ -2829,9 +2829,9 @@ function yt(e, o) {
|
|
|
2829
2829
|
const t = Object.keys(e), n = Object.keys(o);
|
|
2830
2830
|
if (t.length !== n.length) return !1;
|
|
2831
2831
|
const r = JSON.stringify(Object.keys(e.breakpoints || {})), i = JSON.stringify(Object.keys(o.breakpoints || {}));
|
|
2832
|
-
return r !== i ? !1 : t.every((
|
|
2833
|
-
const u = e[
|
|
2834
|
-
return typeof u == "function" ? `${u}` == `${
|
|
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
2835
|
});
|
|
2836
2836
|
}
|
|
2837
2837
|
function zt(e) {
|
|
@@ -2841,8 +2841,8 @@ function wr(e, o) {
|
|
|
2841
2841
|
if (e.length !== o.length) return !1;
|
|
2842
2842
|
const t = zt(e), n = zt(o);
|
|
2843
2843
|
return t.every((r, i) => {
|
|
2844
|
-
const
|
|
2845
|
-
return yt(r,
|
|
2844
|
+
const l = n[i];
|
|
2845
|
+
return yt(r, l);
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
2848
|
function Ft(e) {
|
|
@@ -2854,7 +2854,7 @@ function pt(e) {
|
|
|
2854
2854
|
function Xe(e) {
|
|
2855
2855
|
return typeof e == "boolean";
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function kt(e) {
|
|
2858
2858
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2859
2859
|
}
|
|
2860
2860
|
function A(e) {
|
|
@@ -2878,15 +2878,15 @@ function Pe(e) {
|
|
|
2878
2878
|
return $e(e).map(Number);
|
|
2879
2879
|
}
|
|
2880
2880
|
function ee(e) {
|
|
2881
|
-
return e[
|
|
2881
|
+
return e[Ee(e)];
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function Ee(e) {
|
|
2884
2884
|
return Math.max(0, e.length - 1);
|
|
2885
2885
|
}
|
|
2886
2886
|
function It(e, o) {
|
|
2887
|
-
return o ===
|
|
2887
|
+
return o === Ee(e);
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function Bt(e, o = 0) {
|
|
2890
2890
|
return Array.from(Array(e), (t, n) => o + n);
|
|
2891
2891
|
}
|
|
2892
2892
|
function $e(e) {
|
|
@@ -2894,8 +2894,8 @@ function $e(e) {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
function xn(e, o) {
|
|
2896
2896
|
return [e, o].reduce((t, n) => ($e(n).forEach((r) => {
|
|
2897
|
-
const i = t[r],
|
|
2898
|
-
t[r] = u ? xn(i,
|
|
2897
|
+
const i = t[r], l = n[r], u = kt(i) && kt(l);
|
|
2898
|
+
t[r] = u ? xn(i, l) : l;
|
|
2899
2899
|
}), t), {});
|
|
2900
2900
|
}
|
|
2901
2901
|
function mt(e, o) {
|
|
@@ -2910,32 +2910,32 @@ function Rr(e, o) {
|
|
|
2910
2910
|
function n() {
|
|
2911
2911
|
return 0;
|
|
2912
2912
|
}
|
|
2913
|
-
function r(
|
|
2914
|
-
return i(
|
|
2913
|
+
function r(s) {
|
|
2914
|
+
return i(s) / 2;
|
|
2915
2915
|
}
|
|
2916
|
-
function i(
|
|
2917
|
-
return o -
|
|
2916
|
+
function i(s) {
|
|
2917
|
+
return o - s;
|
|
2918
2918
|
}
|
|
2919
|
-
function s
|
|
2920
|
-
return pt(e) ? t[e](
|
|
2919
|
+
function l(s, a) {
|
|
2920
|
+
return pt(e) ? t[e](s) : e(o, s, a);
|
|
2921
2921
|
}
|
|
2922
2922
|
return {
|
|
2923
|
-
measure:
|
|
2923
|
+
measure: l
|
|
2924
2924
|
};
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function be() {
|
|
2927
2927
|
let e = [];
|
|
2928
|
-
function o(r, i,
|
|
2928
|
+
function o(r, i, l, u = {
|
|
2929
2929
|
passive: !0
|
|
2930
2930
|
}) {
|
|
2931
|
-
let
|
|
2931
|
+
let s;
|
|
2932
2932
|
if ("addEventListener" in r)
|
|
2933
|
-
r.addEventListener(i,
|
|
2933
|
+
r.addEventListener(i, l, u), s = () => r.removeEventListener(i, l, u);
|
|
2934
2934
|
else {
|
|
2935
2935
|
const a = r;
|
|
2936
|
-
a.addListener(
|
|
2936
|
+
a.addListener(l), s = () => a.removeListener(l);
|
|
2937
2937
|
}
|
|
2938
|
-
return e.push(
|
|
2938
|
+
return e.push(s), n;
|
|
2939
2939
|
}
|
|
2940
2940
|
function t() {
|
|
2941
2941
|
e = e.filter((r) => r());
|
|
@@ -2947,8 +2947,8 @@ function Ee() {
|
|
|
2947
2947
|
return n;
|
|
2948
2948
|
}
|
|
2949
2949
|
function xr(e, o, t, n) {
|
|
2950
|
-
const r =
|
|
2951
|
-
let
|
|
2950
|
+
const r = be(), i = 1e3 / 60;
|
|
2951
|
+
let l = null, u = 0, s = 0;
|
|
2952
2952
|
function a() {
|
|
2953
2953
|
r.add(e, "visibilitychange", () => {
|
|
2954
2954
|
e.hidden && p();
|
|
@@ -2958,22 +2958,22 @@ function xr(e, o, t, n) {
|
|
|
2958
2958
|
c(), r.clear();
|
|
2959
2959
|
}
|
|
2960
2960
|
function f(S) {
|
|
2961
|
-
if (!
|
|
2962
|
-
|
|
2963
|
-
const h = S -
|
|
2964
|
-
for (
|
|
2961
|
+
if (!s) return;
|
|
2962
|
+
l || (l = S, t(), t());
|
|
2963
|
+
const h = S - l;
|
|
2964
|
+
for (l = S, u += h; u >= i; )
|
|
2965
2965
|
t(), u -= i;
|
|
2966
|
-
const
|
|
2967
|
-
n(
|
|
2966
|
+
const w = u / i;
|
|
2967
|
+
n(w), s && (s = o.requestAnimationFrame(f));
|
|
2968
2968
|
}
|
|
2969
2969
|
function g() {
|
|
2970
|
-
|
|
2970
|
+
s || (s = o.requestAnimationFrame(f));
|
|
2971
2971
|
}
|
|
2972
2972
|
function c() {
|
|
2973
|
-
o.cancelAnimationFrame(
|
|
2973
|
+
o.cancelAnimationFrame(s), l = null, u = 0, s = 0;
|
|
2974
2974
|
}
|
|
2975
2975
|
function p() {
|
|
2976
|
-
|
|
2976
|
+
l = null, u = 0;
|
|
2977
2977
|
}
|
|
2978
2978
|
return {
|
|
2979
2979
|
init: a,
|
|
@@ -2985,7 +2985,7 @@ function xr(e, o, t, n) {
|
|
|
2985
2985
|
};
|
|
2986
2986
|
}
|
|
2987
2987
|
function yr(e, o) {
|
|
2988
|
-
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y",
|
|
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
2989
|
function a(p) {
|
|
2990
2990
|
const {
|
|
2991
2991
|
height: m,
|
|
@@ -3000,13 +3000,13 @@ function yr(e, o) {
|
|
|
3000
3000
|
return n ? "bottom" : t ? "left" : "right";
|
|
3001
3001
|
}
|
|
3002
3002
|
function g(p) {
|
|
3003
|
-
return p *
|
|
3003
|
+
return p * l;
|
|
3004
3004
|
}
|
|
3005
3005
|
return {
|
|
3006
3006
|
scroll: r,
|
|
3007
3007
|
cross: i,
|
|
3008
3008
|
startEdge: u,
|
|
3009
|
-
endEdge:
|
|
3009
|
+
endEdge: s,
|
|
3010
3010
|
measureSize: a,
|
|
3011
3011
|
direction: g
|
|
3012
3012
|
};
|
|
@@ -3022,7 +3022,7 @@ function we(e = 0, o = 0) {
|
|
|
3022
3022
|
function i(a) {
|
|
3023
3023
|
return n(a) || r(a);
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3025
|
+
function l(a) {
|
|
3026
3026
|
return i(a) ? n(a) ? e : o : a;
|
|
3027
3027
|
}
|
|
3028
3028
|
function u(a) {
|
|
@@ -3032,7 +3032,7 @@ function we(e = 0, o = 0) {
|
|
|
3032
3032
|
length: t,
|
|
3033
3033
|
max: o,
|
|
3034
3034
|
min: e,
|
|
3035
|
-
constrain:
|
|
3035
|
+
constrain: l,
|
|
3036
3036
|
reachedAny: i,
|
|
3037
3037
|
reachedMax: r,
|
|
3038
3038
|
reachedMin: n,
|
|
@@ -3043,15 +3043,15 @@ function yn(e, o, t) {
|
|
|
3043
3043
|
const {
|
|
3044
3044
|
constrain: n
|
|
3045
3045
|
} = we(0, e), r = e + 1;
|
|
3046
|
-
let i =
|
|
3047
|
-
function
|
|
3046
|
+
let i = l(o);
|
|
3047
|
+
function l(g) {
|
|
3048
3048
|
return t ? A((r + g) % r) : n(g);
|
|
3049
3049
|
}
|
|
3050
3050
|
function u() {
|
|
3051
3051
|
return i;
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return i =
|
|
3053
|
+
function s(g) {
|
|
3054
|
+
return i = l(g), f;
|
|
3055
3055
|
}
|
|
3056
3056
|
function a(g) {
|
|
3057
3057
|
return d().set(u() + g);
|
|
@@ -3061,71 +3061,71 @@ function yn(e, o, t) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
const f = {
|
|
3063
3063
|
get: u,
|
|
3064
|
-
set:
|
|
3064
|
+
set: s,
|
|
3065
3065
|
add: a,
|
|
3066
3066
|
clone: d
|
|
3067
3067
|
};
|
|
3068
3068
|
return f;
|
|
3069
3069
|
}
|
|
3070
|
-
function Fr(e, o, t, n, r, i,
|
|
3070
|
+
function Fr(e, o, t, n, r, i, l, u, s, a, d, f, g, c, p, m, S, h, w) {
|
|
3071
3071
|
const {
|
|
3072
3072
|
cross: v,
|
|
3073
3073
|
direction: _
|
|
3074
3074
|
} = e, I = ["INPUT", "SELECT", "TEXTAREA"], V = {
|
|
3075
3075
|
passive: !1
|
|
3076
|
-
}, M =
|
|
3076
|
+
}, M = be(), P = be(), $ = we(50, 225).constrain(c.measure(20)), L = {
|
|
3077
3077
|
mouse: 300,
|
|
3078
3078
|
touch: 400
|
|
3079
|
-
},
|
|
3079
|
+
}, b = {
|
|
3080
3080
|
mouse: 500,
|
|
3081
3081
|
touch: 600
|
|
3082
|
-
},
|
|
3083
|
-
let
|
|
3082
|
+
}, T = p ? 43 : 25;
|
|
3083
|
+
let k = !1, E = 0, j = 0, U = !1, K = !1, J = !1, Y = !1;
|
|
3084
3084
|
function te(R) {
|
|
3085
|
-
if (!
|
|
3085
|
+
if (!w) return;
|
|
3086
3086
|
function D(z) {
|
|
3087
|
-
(Xe(
|
|
3087
|
+
(Xe(w) || w(R, z)) && xe(z);
|
|
3088
3088
|
}
|
|
3089
|
-
const
|
|
3090
|
-
M.add(
|
|
3091
|
-
}, V).add(
|
|
3092
|
-
}).add(
|
|
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
3093
|
}
|
|
3094
3094
|
function X() {
|
|
3095
|
-
M.clear(),
|
|
3095
|
+
M.clear(), P.clear();
|
|
3096
3096
|
}
|
|
3097
3097
|
function re() {
|
|
3098
3098
|
const R = Y ? t : o;
|
|
3099
|
-
|
|
3099
|
+
P.add(R, "touchmove", B, V).add(R, "touchend", G).add(R, "mousemove", B, V).add(R, "mouseup", G);
|
|
3100
3100
|
}
|
|
3101
3101
|
function ie(R) {
|
|
3102
3102
|
const D = R.nodeName || "";
|
|
3103
3103
|
return I.includes(D);
|
|
3104
3104
|
}
|
|
3105
|
-
function
|
|
3106
|
-
return (p ?
|
|
3105
|
+
function le() {
|
|
3106
|
+
return (p ? b : L)[Y ? "mouse" : "touch"];
|
|
3107
3107
|
}
|
|
3108
3108
|
function Re(R, D) {
|
|
3109
|
-
const
|
|
3110
|
-
return p || A(R) <
|
|
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
3111
|
}
|
|
3112
3112
|
function xe(R) {
|
|
3113
3113
|
const D = mt(R, n);
|
|
3114
|
-
Y = D, J = p && D && !R.buttons &&
|
|
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
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function B(R) {
|
|
3117
3117
|
if (!mt(R, n) && R.touches.length >= 2) return G(R);
|
|
3118
|
-
const
|
|
3118
|
+
const N = i.readPoint(R), z = i.readPoint(R, v), ne = Ve(N, E), ue = Ve(z, j);
|
|
3119
3119
|
if (!K && !Y && (!R.cancelable || (K = ne > ue, !K)))
|
|
3120
3120
|
return G(R);
|
|
3121
3121
|
const me = i.pointerMove(R);
|
|
3122
3122
|
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(me)), R.preventDefault();
|
|
3123
3123
|
}
|
|
3124
3124
|
function G(R) {
|
|
3125
|
-
const
|
|
3126
|
-
K = !1, U = !1,
|
|
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
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function se(R) {
|
|
3129
3129
|
J && (R.stopPropagation(), R.preventDefault(), J = !1);
|
|
3130
3130
|
}
|
|
3131
3131
|
function W() {
|
|
@@ -3142,27 +3142,27 @@ function _r(e, o) {
|
|
|
3142
3142
|
function i(f) {
|
|
3143
3143
|
return f.timeStamp;
|
|
3144
3144
|
}
|
|
3145
|
-
function
|
|
3145
|
+
function l(f, g) {
|
|
3146
3146
|
const p = `client${(g || e.scroll) === "x" ? "X" : "Y"}`;
|
|
3147
3147
|
return (mt(f, o) ? f : f.touches[0])[p];
|
|
3148
3148
|
}
|
|
3149
3149
|
function u(f) {
|
|
3150
|
-
return n = f, r = f,
|
|
3150
|
+
return n = f, r = f, l(f);
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3153
|
-
const g =
|
|
3152
|
+
function s(f) {
|
|
3153
|
+
const g = l(f) - l(r), c = i(f) - i(n) > 170;
|
|
3154
3154
|
return r = f, c && (n = f), g;
|
|
3155
3155
|
}
|
|
3156
3156
|
function a(f) {
|
|
3157
3157
|
if (!n || !r) return 0;
|
|
3158
|
-
const g =
|
|
3158
|
+
const g = l(r) - l(n), c = i(f) - i(n), p = i(f) - i(r) > 170, m = g / c;
|
|
3159
3159
|
return c && !p && A(m) > 0.1 ? m : 0;
|
|
3160
3160
|
}
|
|
3161
3161
|
return {
|
|
3162
3162
|
pointerDown: u,
|
|
3163
|
-
pointerMove:
|
|
3163
|
+
pointerMove: s,
|
|
3164
3164
|
pointerUp: a,
|
|
3165
|
-
readPoint:
|
|
3165
|
+
readPoint: l
|
|
3166
3166
|
};
|
|
3167
3167
|
}
|
|
3168
3168
|
function Ir() {
|
|
@@ -3171,15 +3171,15 @@ function Ir() {
|
|
|
3171
3171
|
offsetTop: n,
|
|
3172
3172
|
offsetLeft: r,
|
|
3173
3173
|
offsetWidth: i,
|
|
3174
|
-
offsetHeight:
|
|
3174
|
+
offsetHeight: l
|
|
3175
3175
|
} = t;
|
|
3176
3176
|
return {
|
|
3177
3177
|
top: n,
|
|
3178
3178
|
right: r + i,
|
|
3179
|
-
bottom: n +
|
|
3179
|
+
bottom: n + l,
|
|
3180
3180
|
left: r,
|
|
3181
3181
|
width: i,
|
|
3182
|
-
height:
|
|
3182
|
+
height: l
|
|
3183
3183
|
};
|
|
3184
3184
|
}
|
|
3185
3185
|
return {
|
|
@@ -3194,17 +3194,17 @@ function Mr(e) {
|
|
|
3194
3194
|
measure: o
|
|
3195
3195
|
};
|
|
3196
3196
|
}
|
|
3197
|
-
function Vr(e, o, t, n, r, i,
|
|
3197
|
+
function Vr(e, o, t, n, r, i, l) {
|
|
3198
3198
|
const u = [e].concat(n);
|
|
3199
|
-
let
|
|
3199
|
+
let s, a, d = [], f = !1;
|
|
3200
3200
|
function g(S) {
|
|
3201
|
-
return r.measureSize(
|
|
3201
|
+
return r.measureSize(l.measure(S));
|
|
3202
3202
|
}
|
|
3203
3203
|
function c(S) {
|
|
3204
3204
|
if (!i) return;
|
|
3205
3205
|
a = g(e), d = n.map(g);
|
|
3206
|
-
function h(
|
|
3207
|
-
for (const v of
|
|
3206
|
+
function h(w) {
|
|
3207
|
+
for (const v of w) {
|
|
3208
3208
|
if (f) return;
|
|
3209
3209
|
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a : d[I], M = g(_ ? e : n[I]);
|
|
3210
3210
|
if (A(M - V) >= 0.5) {
|
|
@@ -3213,48 +3213,48 @@ function Vr(e, o, t, n, r, i, s) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
3215
3215
|
}
|
|
3216
|
-
|
|
3217
|
-
(Xe(i) || i(S,
|
|
3216
|
+
s = new ResizeObserver((w) => {
|
|
3217
|
+
(Xe(i) || i(S, w)) && h(w);
|
|
3218
3218
|
}), t.requestAnimationFrame(() => {
|
|
3219
|
-
u.forEach((
|
|
3219
|
+
u.forEach((w) => s.observe(w));
|
|
3220
3220
|
});
|
|
3221
3221
|
}
|
|
3222
3222
|
function p() {
|
|
3223
|
-
f = !0,
|
|
3223
|
+
f = !0, s && s.disconnect();
|
|
3224
3224
|
}
|
|
3225
3225
|
return {
|
|
3226
3226
|
init: c,
|
|
3227
3227
|
destroy: p
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3231
|
-
let
|
|
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
3232
|
function g() {
|
|
3233
|
-
const V = n.get() - e.get(), M = !
|
|
3234
|
-
let
|
|
3235
|
-
return M ? (
|
|
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
3236
|
}
|
|
3237
3237
|
function c() {
|
|
3238
3238
|
const V = n.get() - o.get();
|
|
3239
3239
|
return A(V) < 1e-3;
|
|
3240
3240
|
}
|
|
3241
3241
|
function p() {
|
|
3242
|
-
return
|
|
3242
|
+
return s;
|
|
3243
3243
|
}
|
|
3244
3244
|
function m() {
|
|
3245
3245
|
return u;
|
|
3246
3246
|
}
|
|
3247
3247
|
function S() {
|
|
3248
|
-
return
|
|
3248
|
+
return l;
|
|
3249
3249
|
}
|
|
3250
3250
|
function h() {
|
|
3251
3251
|
return v(r);
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function w() {
|
|
3254
3254
|
return _(i);
|
|
3255
3255
|
}
|
|
3256
3256
|
function v(V) {
|
|
3257
|
-
return
|
|
3257
|
+
return s = V, I;
|
|
3258
3258
|
}
|
|
3259
3259
|
function _(V) {
|
|
3260
3260
|
return a = V, I;
|
|
@@ -3265,26 +3265,26 @@ function br(e, o, t, n, r, i) {
|
|
|
3265
3265
|
velocity: S,
|
|
3266
3266
|
seek: g,
|
|
3267
3267
|
settled: c,
|
|
3268
|
-
useBaseFriction:
|
|
3268
|
+
useBaseFriction: w,
|
|
3269
3269
|
useBaseDuration: h,
|
|
3270
3270
|
useFriction: _,
|
|
3271
3271
|
useDuration: v
|
|
3272
3272
|
};
|
|
3273
3273
|
return I;
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3276
|
-
const i = r.measure(10),
|
|
3277
|
-
let
|
|
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
3278
|
function a() {
|
|
3279
|
-
return !(
|
|
3279
|
+
return !(s || !e.reachedAny(t.get()) || !e.reachedAny(o.get()));
|
|
3280
3280
|
}
|
|
3281
3281
|
function d(c) {
|
|
3282
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 /
|
|
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
3284
|
t.subtract(S * h), !c && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
|
|
3285
3285
|
}
|
|
3286
3286
|
function f(c) {
|
|
3287
|
-
|
|
3287
|
+
s = !c;
|
|
3288
3288
|
}
|
|
3289
3289
|
return {
|
|
3290
3290
|
shouldConstrain: a,
|
|
@@ -3292,13 +3292,13 @@ function Pr(e, o, t, n, r) {
|
|
|
3292
3292
|
toggleActive: f
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3296
|
-
const i = we(-o + e, 0),
|
|
3295
|
+
function br(e, o, t, n, r) {
|
|
3296
|
+
const i = we(-o + e, 0), l = f(), u = d(), s = g();
|
|
3297
3297
|
function a(p, m) {
|
|
3298
3298
|
return Ve(p, m) <= 1;
|
|
3299
3299
|
}
|
|
3300
3300
|
function d() {
|
|
3301
|
-
const p =
|
|
3301
|
+
const p = l[0], m = ee(l), S = l.lastIndexOf(p), h = l.indexOf(m) + 1;
|
|
3302
3302
|
return we(S, h);
|
|
3303
3303
|
}
|
|
3304
3304
|
function f() {
|
|
@@ -3306,21 +3306,21 @@ function $r(e, o, t, n, r) {
|
|
|
3306
3306
|
const {
|
|
3307
3307
|
min: S,
|
|
3308
3308
|
max: h
|
|
3309
|
-
} = i,
|
|
3310
|
-
return v ? h : _ || a(S,
|
|
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
3311
|
}).map((p) => parseFloat(p.toFixed(3)));
|
|
3312
3312
|
}
|
|
3313
3313
|
function g() {
|
|
3314
3314
|
if (o <= e + r) return [i.max];
|
|
3315
|
-
if (n === "keepSnaps") return
|
|
3315
|
+
if (n === "keepSnaps") return l;
|
|
3316
3316
|
const {
|
|
3317
3317
|
min: p,
|
|
3318
3318
|
max: m
|
|
3319
3319
|
} = u;
|
|
3320
|
-
return
|
|
3320
|
+
return l.slice(p, m);
|
|
3321
3321
|
}
|
|
3322
3322
|
return {
|
|
3323
|
-
snapsContained:
|
|
3323
|
+
snapsContained: s,
|
|
3324
3324
|
scrollContainLimit: u
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
@@ -3331,12 +3331,12 @@ function Er(e, o, t) {
|
|
|
3331
3331
|
};
|
|
3332
3332
|
}
|
|
3333
3333
|
function Dr(e, o, t, n) {
|
|
3334
|
-
const i = o.min + 0.1,
|
|
3334
|
+
const i = o.min + 0.1, l = o.max + 0.1, {
|
|
3335
3335
|
reachedMin: u,
|
|
3336
|
-
reachedMax:
|
|
3337
|
-
} = we(i,
|
|
3336
|
+
reachedMax: s
|
|
3337
|
+
} = we(i, l);
|
|
3338
3338
|
function a(g) {
|
|
3339
|
-
return g === 1 ?
|
|
3339
|
+
return g === 1 ? s(t.get()) : g === -1 ? u(t.get()) : !1;
|
|
3340
3340
|
}
|
|
3341
3341
|
function d(g) {
|
|
3342
3342
|
if (!a(g)) return;
|
|
@@ -3353,8 +3353,8 @@ function Lr(e) {
|
|
|
3353
3353
|
length: t
|
|
3354
3354
|
} = e;
|
|
3355
3355
|
function n(i) {
|
|
3356
|
-
const
|
|
3357
|
-
return t ?
|
|
3356
|
+
const l = i - o;
|
|
3357
|
+
return t ? l / -t : 0;
|
|
3358
3358
|
}
|
|
3359
3359
|
return {
|
|
3360
3360
|
get: n
|
|
@@ -3363,18 +3363,18 @@ function Lr(e) {
|
|
|
3363
3363
|
function Or(e, o, t, n, r) {
|
|
3364
3364
|
const {
|
|
3365
3365
|
startEdge: i,
|
|
3366
|
-
endEdge:
|
|
3366
|
+
endEdge: l
|
|
3367
3367
|
} = e, {
|
|
3368
3368
|
groupSlides: u
|
|
3369
|
-
} = r,
|
|
3369
|
+
} = r, s = f().map(o.measure), a = g(), d = c();
|
|
3370
3370
|
function f() {
|
|
3371
|
-
return u(n).map((m) => ee(m)[
|
|
3371
|
+
return u(n).map((m) => ee(m)[l] - m[0][i]).map(A);
|
|
3372
3372
|
}
|
|
3373
3373
|
function g() {
|
|
3374
3374
|
return n.map((m) => t[i] - m[i]).map((m) => -A(m));
|
|
3375
3375
|
}
|
|
3376
3376
|
function c() {
|
|
3377
|
-
return u(a).map((m) => m[0]).map((m, S) => m +
|
|
3377
|
+
return u(a).map((m) => m[0]).map((m, S) => m + s[S]);
|
|
3378
3378
|
}
|
|
3379
3379
|
return {
|
|
3380
3380
|
snaps: a,
|
|
@@ -3383,22 +3383,22 @@ function Or(e, o, t, n, r) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
function Ar(e, o, t, n, r, i) {
|
|
3385
3385
|
const {
|
|
3386
|
-
groupSlides:
|
|
3386
|
+
groupSlides: l
|
|
3387
3387
|
} = r, {
|
|
3388
3388
|
min: u,
|
|
3389
|
-
max:
|
|
3389
|
+
max: s
|
|
3390
3390
|
} = n, a = d();
|
|
3391
3391
|
function d() {
|
|
3392
|
-
const g =
|
|
3393
|
-
return t.length === 1 ? [i] : c ? g : g.slice(u,
|
|
3394
|
-
const h = !m,
|
|
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
3395
|
if (h) {
|
|
3396
3396
|
const v = ee(S[0]) + 1;
|
|
3397
|
-
return
|
|
3397
|
+
return Bt(v);
|
|
3398
3398
|
}
|
|
3399
|
-
if (
|
|
3400
|
-
const v =
|
|
3401
|
-
return
|
|
3399
|
+
if (w) {
|
|
3400
|
+
const v = Ee(i) - ee(S)[0] + 1;
|
|
3401
|
+
return Bt(v, ee(S)[0]);
|
|
3402
3402
|
}
|
|
3403
3403
|
return p;
|
|
3404
3404
|
});
|
|
@@ -3407,20 +3407,20 @@ function Ar(e, o, t, n, r, i) {
|
|
|
3407
3407
|
slideRegistry: a
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
|
-
function
|
|
3410
|
+
function Tr(e, o, t, n, r) {
|
|
3411
3411
|
const {
|
|
3412
3412
|
reachedAny: i,
|
|
3413
|
-
removeOffset:
|
|
3413
|
+
removeOffset: l,
|
|
3414
3414
|
constrain: u
|
|
3415
3415
|
} = n;
|
|
3416
|
-
function
|
|
3416
|
+
function s(p) {
|
|
3417
3417
|
return p.concat().sort((m, S) => A(m) - A(S))[0];
|
|
3418
3418
|
}
|
|
3419
3419
|
function a(p) {
|
|
3420
|
-
const m = e ?
|
|
3421
|
-
diff: d(
|
|
3420
|
+
const m = e ? l(p) : u(p), S = o.map((w, v) => ({
|
|
3421
|
+
diff: d(w - m, 0),
|
|
3422
3422
|
index: v
|
|
3423
|
-
})).sort((
|
|
3423
|
+
})).sort((w, v) => A(w.diff) - A(v.diff)), {
|
|
3424
3424
|
index: h
|
|
3425
3425
|
} = S[0];
|
|
3426
3426
|
return {
|
|
@@ -3431,9 +3431,9 @@ function Nr(e, o, t, n, r) {
|
|
|
3431
3431
|
function d(p, m) {
|
|
3432
3432
|
const S = [p, p + t, p - t];
|
|
3433
3433
|
if (!e) return p;
|
|
3434
|
-
if (!m) return
|
|
3435
|
-
const h = S.filter((
|
|
3436
|
-
return h.length ?
|
|
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
3437
|
}
|
|
3438
3438
|
function f(p, m) {
|
|
3439
3439
|
const S = o[p] - r.get(), h = d(S, m);
|
|
@@ -3445,13 +3445,13 @@ function Nr(e, o, t, n, r) {
|
|
|
3445
3445
|
function g(p, m) {
|
|
3446
3446
|
const S = r.get() + p, {
|
|
3447
3447
|
index: h,
|
|
3448
|
-
distance:
|
|
3448
|
+
distance: w
|
|
3449
3449
|
} = a(S), v = !e && i(S);
|
|
3450
3450
|
if (!m || v) return {
|
|
3451
3451
|
index: h,
|
|
3452
3452
|
distance: p
|
|
3453
3453
|
};
|
|
3454
|
-
const _ = o[h] -
|
|
3454
|
+
const _ = o[h] - w, I = p + d(_, 0);
|
|
3455
3455
|
return {
|
|
3456
3456
|
index: h,
|
|
3457
3457
|
distance: I
|
|
@@ -3463,12 +3463,12 @@ function Nr(e, o, t, n, r) {
|
|
|
3463
3463
|
shortcut: d
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3466
|
+
function Nr(e, o, t, n, r, i, l) {
|
|
3467
3467
|
function u(f) {
|
|
3468
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),
|
|
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
3470
|
}
|
|
3471
|
-
function
|
|
3471
|
+
function s(f, g) {
|
|
3472
3472
|
const c = r.byDistance(f, g);
|
|
3473
3473
|
u(c);
|
|
3474
3474
|
}
|
|
@@ -3477,12 +3477,12 @@ function Tr(e, o, t, n, r, i, s) {
|
|
|
3477
3477
|
u(p);
|
|
3478
3478
|
}
|
|
3479
3479
|
return {
|
|
3480
|
-
distance:
|
|
3480
|
+
distance: s,
|
|
3481
3481
|
index: a
|
|
3482
3482
|
};
|
|
3483
3483
|
}
|
|
3484
|
-
function jr(e, o, t, n, r, i,
|
|
3485
|
-
const
|
|
3484
|
+
function jr(e, o, t, n, r, i, l, u) {
|
|
3485
|
+
const s = {
|
|
3486
3486
|
passive: !0,
|
|
3487
3487
|
capture: !0
|
|
3488
3488
|
};
|
|
@@ -3491,14 +3491,14 @@ function jr(e, o, t, n, r, i, s, u) {
|
|
|
3491
3491
|
if (!u) return;
|
|
3492
3492
|
function p(m) {
|
|
3493
3493
|
if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
|
|
3494
|
-
|
|
3495
|
-
const
|
|
3496
|
-
Ft(
|
|
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
3497
|
}
|
|
3498
3498
|
i.add(document, "keydown", f, !1), o.forEach((m, S) => {
|
|
3499
3499
|
i.add(m, "focus", (h) => {
|
|
3500
3500
|
(Xe(u) || u(c, h)) && p(S);
|
|
3501
|
-
},
|
|
3501
|
+
}, s);
|
|
3502
3502
|
});
|
|
3503
3503
|
}
|
|
3504
3504
|
function f(c) {
|
|
@@ -3513,17 +3513,17 @@ function _e(e) {
|
|
|
3513
3513
|
function t() {
|
|
3514
3514
|
return o;
|
|
3515
3515
|
}
|
|
3516
|
-
function n(
|
|
3517
|
-
o = s
|
|
3516
|
+
function n(s) {
|
|
3517
|
+
o = l(s);
|
|
3518
3518
|
}
|
|
3519
|
-
function r(
|
|
3520
|
-
o += s
|
|
3519
|
+
function r(s) {
|
|
3520
|
+
o += l(s);
|
|
3521
3521
|
}
|
|
3522
|
-
function i(
|
|
3523
|
-
o -= s
|
|
3522
|
+
function i(s) {
|
|
3523
|
+
o -= l(s);
|
|
3524
3524
|
}
|
|
3525
|
-
function s
|
|
3526
|
-
return Ft(
|
|
3525
|
+
function l(s) {
|
|
3526
|
+
return Ft(s) ? s : s.get();
|
|
3527
3527
|
}
|
|
3528
3528
|
return {
|
|
3529
3529
|
get: t,
|
|
@@ -3533,15 +3533,15 @@ function _e(e) {
|
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
3535
|
function Fn(e, o) {
|
|
3536
|
-
const t = e.scroll === "x" ?
|
|
3536
|
+
const t = e.scroll === "x" ? l : u, n = o.style;
|
|
3537
3537
|
let r = null, i = !1;
|
|
3538
|
-
function
|
|
3538
|
+
function l(g) {
|
|
3539
3539
|
return `translate3d(${g}px,0px,0px)`;
|
|
3540
3540
|
}
|
|
3541
3541
|
function u(g) {
|
|
3542
3542
|
return `translate3d(0px,${g}px,0px)`;
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function s(g) {
|
|
3545
3545
|
if (i) return;
|
|
3546
3546
|
const c = vr(e.direction(g));
|
|
3547
3547
|
c !== r && (n.transform = t(c), r = c);
|
|
@@ -3554,61 +3554,61 @@ function Fn(e, o) {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
return {
|
|
3556
3556
|
clear: d,
|
|
3557
|
-
to:
|
|
3557
|
+
to: s,
|
|
3558
3558
|
toggleActive: a
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
|
-
function Hr(e, o, t, n, r, i,
|
|
3562
|
-
const d = Pe(r), f = Pe(r).reverse(), g = h().concat(
|
|
3563
|
-
function c(M,
|
|
3564
|
-
return M.reduce((
|
|
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
3565
|
}
|
|
3566
|
-
function p(M,
|
|
3567
|
-
return M.reduce((
|
|
3566
|
+
function p(M, P) {
|
|
3567
|
+
return M.reduce(($, L) => c($, P) > 0 ? $.concat([L]) : $, []);
|
|
3568
3568
|
}
|
|
3569
3569
|
function m(M) {
|
|
3570
|
-
return i.map((
|
|
3571
|
-
start:
|
|
3572
|
-
end:
|
|
3570
|
+
return i.map((P, $) => ({
|
|
3571
|
+
start: P - n[$] + 0.5 + M,
|
|
3572
|
+
end: P + o - 0.5 + M
|
|
3573
3573
|
}));
|
|
3574
3574
|
}
|
|
3575
|
-
function S(M,
|
|
3576
|
-
const L = m(
|
|
3577
|
-
return M.map((
|
|
3578
|
-
const
|
|
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
3579
|
return {
|
|
3580
|
-
index:
|
|
3580
|
+
index: b,
|
|
3581
3581
|
loopPoint: j,
|
|
3582
3582
|
slideLocation: _e(-1),
|
|
3583
|
-
translate: Fn(e,
|
|
3584
|
-
target: () => u.get() > j ?
|
|
3583
|
+
translate: Fn(e, s[b]),
|
|
3584
|
+
target: () => u.get() > j ? T : k
|
|
3585
3585
|
};
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
3588
|
function h() {
|
|
3589
|
-
const M =
|
|
3590
|
-
return S(
|
|
3589
|
+
const M = l[0], P = p(f, M);
|
|
3590
|
+
return S(P, t, !1);
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3593
|
-
const M = o -
|
|
3594
|
-
return S(
|
|
3592
|
+
function w() {
|
|
3593
|
+
const M = o - l[0] - 1, P = p(d, M);
|
|
3594
|
+
return S(P, -t, !0);
|
|
3595
3595
|
}
|
|
3596
3596
|
function v() {
|
|
3597
3597
|
return g.every(({
|
|
3598
3598
|
index: M
|
|
3599
3599
|
}) => {
|
|
3600
|
-
const
|
|
3601
|
-
return c(
|
|
3600
|
+
const P = d.filter(($) => $ !== M);
|
|
3601
|
+
return c(P, o) <= 0.1;
|
|
3602
3602
|
});
|
|
3603
3603
|
}
|
|
3604
3604
|
function _() {
|
|
3605
3605
|
g.forEach((M) => {
|
|
3606
3606
|
const {
|
|
3607
|
-
target:
|
|
3608
|
-
translate:
|
|
3607
|
+
target: P,
|
|
3608
|
+
translate: $,
|
|
3609
3609
|
slideLocation: L
|
|
3610
|
-
} = M,
|
|
3611
|
-
|
|
3610
|
+
} = M, b = P();
|
|
3611
|
+
b !== L.get() && ($.to(b), L.set(b));
|
|
3612
3612
|
});
|
|
3613
3613
|
}
|
|
3614
3614
|
function I() {
|
|
@@ -3623,59 +3623,59 @@ function Hr(e, o, t, n, r, i, s, u, l) {
|
|
|
3623
3623
|
}
|
|
3624
3624
|
function Gr(e, o, t) {
|
|
3625
3625
|
let n, r = !1;
|
|
3626
|
-
function i(
|
|
3626
|
+
function i(s) {
|
|
3627
3627
|
if (!t) return;
|
|
3628
3628
|
function a(d) {
|
|
3629
3629
|
for (const f of d)
|
|
3630
3630
|
if (f.type === "childList") {
|
|
3631
|
-
|
|
3631
|
+
s.reInit(), o.emit("slidesChanged");
|
|
3632
3632
|
break;
|
|
3633
3633
|
}
|
|
3634
3634
|
}
|
|
3635
3635
|
n = new MutationObserver((d) => {
|
|
3636
|
-
r || (Xe(t) || t(
|
|
3636
|
+
r || (Xe(t) || t(s, d)) && a(d);
|
|
3637
3637
|
}), n.observe(e, {
|
|
3638
3638
|
childList: !0
|
|
3639
3639
|
});
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3641
|
+
function l() {
|
|
3642
3642
|
n && n.disconnect(), r = !0;
|
|
3643
3643
|
}
|
|
3644
3644
|
return {
|
|
3645
3645
|
init: i,
|
|
3646
|
-
destroy:
|
|
3646
|
+
destroy: l
|
|
3647
3647
|
};
|
|
3648
3648
|
}
|
|
3649
3649
|
function zr(e, o, t, n) {
|
|
3650
3650
|
const r = {};
|
|
3651
|
-
let i = null,
|
|
3651
|
+
let i = null, l = null, u, s = !1;
|
|
3652
3652
|
function a() {
|
|
3653
3653
|
u = new IntersectionObserver((p) => {
|
|
3654
|
-
|
|
3654
|
+
s || (p.forEach((m) => {
|
|
3655
3655
|
const S = o.indexOf(m.target);
|
|
3656
3656
|
r[S] = m;
|
|
3657
|
-
}), i = null,
|
|
3657
|
+
}), i = null, l = null, t.emit("slidesInView"));
|
|
3658
3658
|
}, {
|
|
3659
3659
|
root: e.parentElement,
|
|
3660
3660
|
threshold: n
|
|
3661
3661
|
}), o.forEach((p) => u.observe(p));
|
|
3662
3662
|
}
|
|
3663
3663
|
function d() {
|
|
3664
|
-
u && u.disconnect(),
|
|
3664
|
+
u && u.disconnect(), s = !0;
|
|
3665
3665
|
}
|
|
3666
3666
|
function f(p) {
|
|
3667
3667
|
return $e(r).reduce((m, S) => {
|
|
3668
3668
|
const h = parseInt(S), {
|
|
3669
|
-
isIntersecting:
|
|
3669
|
+
isIntersecting: w
|
|
3670
3670
|
} = r[h];
|
|
3671
|
-
return (p &&
|
|
3671
|
+
return (p && w || !p && !w) && m.push(h), m;
|
|
3672
3672
|
}, []);
|
|
3673
3673
|
}
|
|
3674
3674
|
function g(p = !0) {
|
|
3675
3675
|
if (p && i) return i;
|
|
3676
|
-
if (!p &&
|
|
3676
|
+
if (!p && l) return l;
|
|
3677
3677
|
const m = f(p);
|
|
3678
|
-
return p && (i = m), p || (
|
|
3678
|
+
return p && (i = m), p || (l = m), m;
|
|
3679
3679
|
}
|
|
3680
3680
|
return {
|
|
3681
3681
|
init: a,
|
|
@@ -3683,26 +3683,26 @@ function zr(e, o, t, n) {
|
|
|
3683
3683
|
get: g
|
|
3684
3684
|
};
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3686
|
+
function kr(e, o, t, n, r, i) {
|
|
3687
3687
|
const {
|
|
3688
|
-
measureSize:
|
|
3688
|
+
measureSize: l,
|
|
3689
3689
|
startEdge: u,
|
|
3690
|
-
endEdge:
|
|
3691
|
-
} = e, a = t[0] && r, d = p(), f = m(), g = t.map(
|
|
3690
|
+
endEdge: s
|
|
3691
|
+
} = e, a = t[0] && r, d = p(), f = m(), g = t.map(l), c = S();
|
|
3692
3692
|
function p() {
|
|
3693
3693
|
if (!a) return 0;
|
|
3694
|
-
const
|
|
3695
|
-
return A(o[u] -
|
|
3694
|
+
const w = t[0];
|
|
3695
|
+
return A(o[u] - w[u]);
|
|
3696
3696
|
}
|
|
3697
3697
|
function m() {
|
|
3698
3698
|
if (!a) return 0;
|
|
3699
|
-
const
|
|
3700
|
-
return parseFloat(
|
|
3699
|
+
const w = i.getComputedStyle(ee(n));
|
|
3700
|
+
return parseFloat(w.getPropertyValue(`margin-${s}`));
|
|
3701
3701
|
}
|
|
3702
3702
|
function S() {
|
|
3703
|
-
return t.map((
|
|
3703
|
+
return t.map((w, v, _) => {
|
|
3704
3704
|
const I = !v, V = It(_, v);
|
|
3705
|
-
return I ? g[v] + d : V ? g[v] + f : _[v + 1][u] -
|
|
3705
|
+
return I ? g[v] + d : V ? g[v] + f : _[v + 1][u] - w[u];
|
|
3706
3706
|
}).map(A);
|
|
3707
3707
|
}
|
|
3708
3708
|
return {
|
|
@@ -3712,22 +3712,22 @@ function Br(e, o, t, n, r, i) {
|
|
|
3712
3712
|
endGap: f
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function Br(e, o, t, n, r, i, l, u, s) {
|
|
3716
3716
|
const {
|
|
3717
3717
|
startEdge: a,
|
|
3718
3718
|
endEdge: d,
|
|
3719
3719
|
direction: f
|
|
3720
3720
|
} = e, g = Ft(t);
|
|
3721
|
-
function c(h,
|
|
3722
|
-
return Pe(h).filter((v) => v %
|
|
3721
|
+
function c(h, w) {
|
|
3722
|
+
return Pe(h).filter((v) => v % w === 0).map((v) => h.slice(v, v + w));
|
|
3723
3723
|
}
|
|
3724
3724
|
function p(h) {
|
|
3725
|
-
return h.length ? Pe(h).reduce((
|
|
3726
|
-
const I = ee(
|
|
3727
|
-
return _ &&
|
|
3728
|
-
}, []).map((
|
|
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
3729
|
const I = Math.max(_[v - 1] || 0);
|
|
3730
|
-
return h.slice(I,
|
|
3730
|
+
return h.slice(I, w);
|
|
3731
3731
|
}) : [];
|
|
3732
3732
|
}
|
|
3733
3733
|
function m(h) {
|
|
@@ -3737,10 +3737,10 @@ function kr(e, o, t, n, r, i, s, u, l) {
|
|
|
3737
3737
|
groupSlides: m
|
|
3738
3738
|
};
|
|
3739
3739
|
}
|
|
3740
|
-
function qr(e, o, t, n, r, i,
|
|
3740
|
+
function qr(e, o, t, n, r, i, l) {
|
|
3741
3741
|
const {
|
|
3742
3742
|
align: u,
|
|
3743
|
-
axis:
|
|
3743
|
+
axis: s,
|
|
3744
3744
|
direction: a,
|
|
3745
3745
|
startIndex: d,
|
|
3746
3746
|
loop: f,
|
|
@@ -3750,91 +3750,91 @@ function qr(e, o, t, n, r, i, s) {
|
|
|
3750
3750
|
inViewThreshold: m,
|
|
3751
3751
|
slidesToScroll: S,
|
|
3752
3752
|
skipSnaps: h,
|
|
3753
|
-
containScroll:
|
|
3753
|
+
containScroll: w,
|
|
3754
3754
|
watchResize: v,
|
|
3755
3755
|
watchSlides: _,
|
|
3756
3756
|
watchDrag: I,
|
|
3757
3757
|
watchFocus: V
|
|
3758
|
-
} = i, M = 2,
|
|
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
3759
|
slideSizes: K,
|
|
3760
3760
|
slideSizesWithGaps: J,
|
|
3761
3761
|
startGap: Y,
|
|
3762
3762
|
endGap: te
|
|
3763
|
-
} =
|
|
3763
|
+
} = kr(b, $, L, t, U, r), X = Br(b, T, S, f, $, L, Y, te, M), {
|
|
3764
3764
|
snaps: re,
|
|
3765
3765
|
snapsAligned: ie
|
|
3766
|
-
} = Or(
|
|
3766
|
+
} = Or(b, E, $, L, X), le = -ee(re) + ee(J), {
|
|
3767
3767
|
snapsContained: Re,
|
|
3768
3768
|
scrollContainLimit: xe
|
|
3769
|
-
} =
|
|
3769
|
+
} = br(T, le, ie, w, M), B = j ? Re : ie, {
|
|
3770
3770
|
limit: G
|
|
3771
|
-
} = Er(
|
|
3771
|
+
} = Er(le, B, f), se = yn(Ee(B), d, f), W = se.clone(), O = Pe(t), R = ({
|
|
3772
3772
|
dragHandler: Ce,
|
|
3773
3773
|
scrollBody: Ye,
|
|
3774
3774
|
scrollBounds: Ze,
|
|
3775
3775
|
options: {
|
|
3776
|
-
loop:
|
|
3776
|
+
loop: De
|
|
3777
3777
|
}
|
|
3778
3778
|
}) => {
|
|
3779
|
-
|
|
3779
|
+
De || Ze.constrain(Ce.pointerDown()), Ye.seek();
|
|
3780
3780
|
}, D = ({
|
|
3781
3781
|
scrollBody: Ce,
|
|
3782
3782
|
translate: Ye,
|
|
3783
3783
|
location: Ze,
|
|
3784
|
-
offsetLocation:
|
|
3784
|
+
offsetLocation: De,
|
|
3785
3785
|
previousLocation: Mn,
|
|
3786
3786
|
scrollLooper: Vn,
|
|
3787
|
-
slideLooper:
|
|
3788
|
-
dragHandler:
|
|
3789
|
-
animation:
|
|
3790
|
-
eventHandler:
|
|
3787
|
+
slideLooper: Pn,
|
|
3788
|
+
dragHandler: $n,
|
|
3789
|
+
animation: bn,
|
|
3790
|
+
eventHandler: bt,
|
|
3791
3791
|
scrollBounds: En,
|
|
3792
3792
|
options: {
|
|
3793
3793
|
loop: Et
|
|
3794
3794
|
}
|
|
3795
3795
|
}, Dt) => {
|
|
3796
|
-
const Lt = Ce.settled(), Dn = !En.shouldConstrain(), Ot = Et ? Lt : Lt && Dn, At = Ot &&
|
|
3797
|
-
At &&
|
|
3796
|
+
const Lt = Ce.settled(), Dn = !En.shouldConstrain(), Ot = Et ? Lt : Lt && Dn, At = Ot && !$n.pointerDown();
|
|
3797
|
+
At && bn.stop();
|
|
3798
3798
|
const Ln = Ze.get() * Dt + Mn.get() * (1 - Dt);
|
|
3799
|
-
|
|
3800
|
-
},
|
|
3801
|
-
slideRegistry:
|
|
3802
|
-
} = Ar(j,
|
|
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
3803
|
ownerDocument: n,
|
|
3804
3804
|
ownerWindow: r,
|
|
3805
|
-
eventHandler:
|
|
3806
|
-
containerRect:
|
|
3805
|
+
eventHandler: l,
|
|
3806
|
+
containerRect: $,
|
|
3807
3807
|
slideRects: L,
|
|
3808
|
-
animation:
|
|
3809
|
-
axis:
|
|
3810
|
-
dragHandler: Fr(
|
|
3811
|
-
eventStore:
|
|
3812
|
-
percentOfView:
|
|
3813
|
-
index:
|
|
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
3814
|
indexPrevious: W,
|
|
3815
3815
|
limit: G,
|
|
3816
3816
|
location: ue,
|
|
3817
3817
|
offsetLocation: de,
|
|
3818
3818
|
previousLocation: me,
|
|
3819
3819
|
options: i,
|
|
3820
|
-
resizeHandler: Vr(o,
|
|
3820
|
+
resizeHandler: Vr(o, l, r, t, b, v, P),
|
|
3821
3821
|
scrollBody: ye,
|
|
3822
|
-
scrollBounds:
|
|
3823
|
-
scrollLooper: Dr(
|
|
3822
|
+
scrollBounds: $r(G, de, he, ye, k),
|
|
3823
|
+
scrollLooper: Dr(le, G, de, [ue, de, me, he]),
|
|
3824
3824
|
scrollProgress: Vt,
|
|
3825
|
-
scrollSnapList:
|
|
3826
|
-
scrollSnaps:
|
|
3825
|
+
scrollSnapList: B.map(Vt.get),
|
|
3826
|
+
scrollSnaps: B,
|
|
3827
3827
|
scrollTarget: We,
|
|
3828
3828
|
scrollTo: Qe,
|
|
3829
|
-
slideLooper: Hr(
|
|
3829
|
+
slideLooper: Hr(b, T, le, K, J, re, B, de, t),
|
|
3830
3830
|
slideFocus: In,
|
|
3831
|
-
slidesHandler: Gr(o,
|
|
3831
|
+
slidesHandler: Gr(o, l, _),
|
|
3832
3832
|
slidesInView: _n,
|
|
3833
3833
|
slideIndexes: O,
|
|
3834
|
-
slideRegistry:
|
|
3834
|
+
slideRegistry: $t,
|
|
3835
3835
|
slidesToScroll: X,
|
|
3836
3836
|
target: he,
|
|
3837
|
-
translate: Fn(
|
|
3837
|
+
translate: Fn(b, o)
|
|
3838
3838
|
};
|
|
3839
3839
|
return Je;
|
|
3840
3840
|
}
|
|
@@ -3847,25 +3847,25 @@ function Ur() {
|
|
|
3847
3847
|
return e[a] || [];
|
|
3848
3848
|
}
|
|
3849
3849
|
function r(a) {
|
|
3850
|
-
return n(a).forEach((d) => d(o, a)),
|
|
3850
|
+
return n(a).forEach((d) => d(o, a)), s;
|
|
3851
3851
|
}
|
|
3852
3852
|
function i(a, d) {
|
|
3853
|
-
return e[a] = n(a).concat([d]),
|
|
3853
|
+
return e[a] = n(a).concat([d]), s;
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3856
|
-
return e[a] = n(a).filter((f) => f !== d),
|
|
3855
|
+
function l(a, d) {
|
|
3856
|
+
return e[a] = n(a).filter((f) => f !== d), s;
|
|
3857
3857
|
}
|
|
3858
3858
|
function u() {
|
|
3859
3859
|
e = {};
|
|
3860
3860
|
}
|
|
3861
|
-
const
|
|
3861
|
+
const s = {
|
|
3862
3862
|
init: t,
|
|
3863
3863
|
emit: r,
|
|
3864
|
-
off:
|
|
3864
|
+
off: l,
|
|
3865
3865
|
on: i,
|
|
3866
3866
|
clear: u
|
|
3867
3867
|
};
|
|
3868
|
-
return
|
|
3868
|
+
return s;
|
|
3869
3869
|
}
|
|
3870
3870
|
const Kr = {
|
|
3871
3871
|
align: "center",
|
|
@@ -3890,15 +3890,15 @@ const Kr = {
|
|
|
3890
3890
|
watchFocus: !0
|
|
3891
3891
|
};
|
|
3892
3892
|
function Xr(e) {
|
|
3893
|
-
function o(i,
|
|
3894
|
-
return xn(i,
|
|
3893
|
+
function o(i, l) {
|
|
3894
|
+
return xn(i, l || {});
|
|
3895
3895
|
}
|
|
3896
3896
|
function t(i) {
|
|
3897
|
-
const
|
|
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
3898
|
return o(i, u);
|
|
3899
3899
|
}
|
|
3900
3900
|
function n(i) {
|
|
3901
|
-
return i.map((
|
|
3901
|
+
return i.map((l) => $e(l.breakpoints || {})).reduce((l, u) => l.concat(u), []).map(e.matchMedia);
|
|
3902
3902
|
}
|
|
3903
3903
|
return {
|
|
3904
3904
|
mergeOptions: o,
|
|
@@ -3908,11 +3908,11 @@ function Xr(e) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
function Wr(e) {
|
|
3910
3910
|
let o = [];
|
|
3911
|
-
function t(i,
|
|
3912
|
-
return o =
|
|
3911
|
+
function t(i, l) {
|
|
3912
|
+
return o = l.filter(({
|
|
3913
3913
|
options: u
|
|
3914
|
-
}) => e.optionsAtMedia(u).active !== !1), o.forEach((u) => u.init(i, e)),
|
|
3915
|
-
[
|
|
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
3916
|
}), {});
|
|
3917
3917
|
}
|
|
3918
3918
|
function n() {
|
|
@@ -3924,7 +3924,7 @@ function Wr(e) {
|
|
|
3924
3924
|
};
|
|
3925
3925
|
}
|
|
3926
3926
|
function ze(e, o, t) {
|
|
3927
|
-
const n = e.ownerDocument, r = n.defaultView, i = Xr(r),
|
|
3927
|
+
const n = e.ownerDocument, r = n.defaultView, i = Xr(r), l = Wr(i), u = be(), s = Ur(), {
|
|
3928
3928
|
mergeOptions: a,
|
|
3929
3929
|
optionsAtMedia: d,
|
|
3930
3930
|
optionsMediaQueries: f
|
|
@@ -3932,43 +3932,43 @@ function ze(e, o, t) {
|
|
|
3932
3932
|
on: g,
|
|
3933
3933
|
off: c,
|
|
3934
3934
|
emit: p
|
|
3935
|
-
} =
|
|
3936
|
-
let S = !1, h,
|
|
3937
|
-
function
|
|
3935
|
+
} = s, m = b;
|
|
3936
|
+
let S = !1, h, w = a(Kr, ze.globalOptions), v = a(w), _ = [], I, V, M;
|
|
3937
|
+
function P() {
|
|
3938
3938
|
const {
|
|
3939
3939
|
container: O,
|
|
3940
3940
|
slides: R
|
|
3941
3941
|
} = v;
|
|
3942
3942
|
V = (pt(O) ? e.querySelector(O) : O) || e.children[0];
|
|
3943
|
-
const
|
|
3944
|
-
M = [].slice.call(
|
|
3943
|
+
const N = pt(R) ? V.querySelectorAll(R) : R;
|
|
3944
|
+
M = [].slice.call(N || V.children);
|
|
3945
3945
|
}
|
|
3946
|
-
function
|
|
3947
|
-
const R = qr(e, V, M, n, r, O,
|
|
3946
|
+
function $(O) {
|
|
3947
|
+
const R = qr(e, V, M, n, r, O, s);
|
|
3948
3948
|
if (O.loop && !R.slideLooper.canLoop()) {
|
|
3949
3949
|
const D = Object.assign({}, O, {
|
|
3950
3950
|
loop: !1
|
|
3951
3951
|
});
|
|
3952
|
-
return
|
|
3952
|
+
return $(D);
|
|
3953
3953
|
}
|
|
3954
3954
|
return R;
|
|
3955
3955
|
}
|
|
3956
3956
|
function L(O, R) {
|
|
3957
|
-
S || (
|
|
3957
|
+
S || (w = a(w, O), v = d(w), _ = R || _, P(), h = $(v), f([w, ..._.map(({
|
|
3958
3958
|
options: D
|
|
3959
|
-
}) => D)]).forEach((D) => u.add(D, "change",
|
|
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
3960
|
}
|
|
3961
|
-
function
|
|
3961
|
+
function b(O, R) {
|
|
3962
3962
|
const D = X();
|
|
3963
|
-
|
|
3963
|
+
T(), L(a({
|
|
3964
3964
|
startIndex: D
|
|
3965
|
-
}, O), R),
|
|
3965
|
+
}, O), R), s.emit("reInit");
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
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(),
|
|
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
3969
|
}
|
|
3970
|
-
function
|
|
3971
|
-
S || (S = !0, u.clear(),
|
|
3970
|
+
function k() {
|
|
3971
|
+
S || (S = !0, u.clear(), T(), s.emit("destroy"), s.clear());
|
|
3972
3972
|
}
|
|
3973
3973
|
function E(O, R, D) {
|
|
3974
3974
|
!v.active || S || (h.scrollBody.useBaseFriction().useDuration(R === !0 ? 0 : v.duration), h.scrollTo.index(O, D || 0));
|
|
@@ -4002,7 +4002,7 @@ function ze(e, o, t) {
|
|
|
4002
4002
|
function ie() {
|
|
4003
4003
|
return h.slidesInView.get();
|
|
4004
4004
|
}
|
|
4005
|
-
function
|
|
4005
|
+
function le() {
|
|
4006
4006
|
return h.slidesInView.get(!1);
|
|
4007
4007
|
}
|
|
4008
4008
|
function Re() {
|
|
@@ -4011,13 +4011,13 @@ function ze(e, o, t) {
|
|
|
4011
4011
|
function xe() {
|
|
4012
4012
|
return h;
|
|
4013
4013
|
}
|
|
4014
|
-
function
|
|
4014
|
+
function B() {
|
|
4015
4015
|
return e;
|
|
4016
4016
|
}
|
|
4017
4017
|
function G() {
|
|
4018
4018
|
return V;
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function se() {
|
|
4021
4021
|
return M;
|
|
4022
4022
|
}
|
|
4023
4023
|
const W = {
|
|
@@ -4025,54 +4025,54 @@ function ze(e, o, t) {
|
|
|
4025
4025
|
canScrollPrev: J,
|
|
4026
4026
|
containerNode: G,
|
|
4027
4027
|
internalEngine: xe,
|
|
4028
|
-
destroy:
|
|
4028
|
+
destroy: k,
|
|
4029
4029
|
off: c,
|
|
4030
4030
|
on: g,
|
|
4031
4031
|
emit: p,
|
|
4032
4032
|
plugins: Re,
|
|
4033
4033
|
previousScrollSnap: re,
|
|
4034
4034
|
reInit: m,
|
|
4035
|
-
rootNode:
|
|
4035
|
+
rootNode: B,
|
|
4036
4036
|
scrollNext: j,
|
|
4037
4037
|
scrollPrev: U,
|
|
4038
4038
|
scrollProgress: te,
|
|
4039
4039
|
scrollSnapList: Y,
|
|
4040
4040
|
scrollTo: E,
|
|
4041
4041
|
selectedScrollSnap: X,
|
|
4042
|
-
slideNodes:
|
|
4042
|
+
slideNodes: se,
|
|
4043
4043
|
slidesInView: ie,
|
|
4044
|
-
slidesNotInView:
|
|
4044
|
+
slidesNotInView: le
|
|
4045
4045
|
};
|
|
4046
|
-
return L(o, t), setTimeout(() =>
|
|
4046
|
+
return L(o, t), setTimeout(() => s.emit("init"), 0), W;
|
|
4047
4047
|
}
|
|
4048
4048
|
ze.globalOptions = void 0;
|
|
4049
4049
|
function Mt(e = {}, o = []) {
|
|
4050
|
-
const t = je(e), n = je(o), [r, i] = oe(), [
|
|
4050
|
+
const t = je(e), n = je(o), [r, i] = oe(), [l, u] = oe(), s = Se(() => {
|
|
4051
4051
|
r && r.reInit(t.current, n.current);
|
|
4052
4052
|
}, [r]);
|
|
4053
4053
|
return ve(() => {
|
|
4054
|
-
yt(t.current, e) || (t.current = e,
|
|
4055
|
-
}, [e,
|
|
4056
|
-
wr(n.current, o) || (n.current = o,
|
|
4057
|
-
}, [o,
|
|
4058
|
-
if (Sr() &&
|
|
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
4059
|
ze.globalOptions = Mt.globalOptions;
|
|
4060
|
-
const a = ze(
|
|
4060
|
+
const a = ze(l, t.current, n.current);
|
|
4061
4061
|
return i(a), () => a.destroy();
|
|
4062
4062
|
} else
|
|
4063
4063
|
i(void 0);
|
|
4064
|
-
}, [
|
|
4064
|
+
}, [l, i]), [u, r];
|
|
4065
4065
|
}
|
|
4066
4066
|
Mt.globalOptions = void 0;
|
|
4067
4067
|
const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
4068
4068
|
const [t, n] = Mt(e, [xt(o)]), r = Se((i) => {
|
|
4069
|
-
var
|
|
4070
|
-
const
|
|
4071
|
-
if (!
|
|
4072
|
-
(
|
|
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
4073
|
}, []);
|
|
4074
4074
|
return { emblaRef: t, emblaApi: n, navigationHandler: r };
|
|
4075
|
-
},
|
|
4075
|
+
}, ke = ({ mode: e, onClick: o, children: t, classes: n, ...r }) => /* @__PURE__ */ C.jsxs(
|
|
4076
4076
|
"button",
|
|
4077
4077
|
{
|
|
4078
4078
|
className: F("group flex size-8 cursor-pointer items-center justify-center p-1", n == null ? void 0 : n.button),
|
|
@@ -4080,8 +4080,8 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4080
4080
|
onClick: () => o(e),
|
|
4081
4081
|
...r,
|
|
4082
4082
|
children: [
|
|
4083
|
-
/* @__PURE__ */
|
|
4084
|
-
|
|
4083
|
+
/* @__PURE__ */ C.jsx(
|
|
4084
|
+
Ne,
|
|
4085
4085
|
{
|
|
4086
4086
|
name: "arrows/arrowRight",
|
|
4087
4087
|
className: F(
|
|
@@ -4094,7 +4094,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4094
4094
|
t
|
|
4095
4095
|
]
|
|
4096
4096
|
}
|
|
4097
|
-
), Jr = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */
|
|
4097
|
+
), Jr = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */ C.jsx(
|
|
4098
4098
|
"div",
|
|
4099
4099
|
{
|
|
4100
4100
|
className: F(
|
|
@@ -4106,7 +4106,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4106
4106
|
},
|
|
4107
4107
|
r == null ? void 0 : r.dotsWrapper
|
|
4108
4108
|
),
|
|
4109
|
-
children: e.map((
|
|
4109
|
+
children: e.map((l, u) => /* @__PURE__ */ C.jsx(
|
|
4110
4110
|
"button",
|
|
4111
4111
|
{
|
|
4112
4112
|
type: "button",
|
|
@@ -4123,13 +4123,13 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4123
4123
|
}
|
|
4124
4124
|
), qt = Q(
|
|
4125
4125
|
({ visibleIndex: e, classes: o, children: t, dotsProps: n, dotsOptions: r }, i) => {
|
|
4126
|
-
const { isMobile:
|
|
4126
|
+
const { isMobile: l, isDesktop: u } = qe(), { mobVisible: s, deskVisible: a, ...d } = r ?? {}, f = s && l, g = a && u, c = {
|
|
4127
4127
|
visibleIndex: e,
|
|
4128
4128
|
...n
|
|
4129
4129
|
};
|
|
4130
|
-
return /* @__PURE__ */
|
|
4131
|
-
/* @__PURE__ */
|
|
4132
|
-
(g || f) && /* @__PURE__ */
|
|
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
4133
|
] });
|
|
4134
4134
|
}
|
|
4135
4135
|
), Ut = {
|
|
@@ -4154,30 +4154,30 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4154
4154
|
onClickNavigationButton: n,
|
|
4155
4155
|
classes: r
|
|
4156
4156
|
}) => {
|
|
4157
|
-
var i,
|
|
4158
|
-
return /* @__PURE__ */
|
|
4159
|
-
/* @__PURE__ */
|
|
4160
|
-
|
|
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
4161
|
{
|
|
4162
4162
|
mode: "prev",
|
|
4163
4163
|
onClick: n,
|
|
4164
4164
|
disabled: o,
|
|
4165
4165
|
classes: {
|
|
4166
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((
|
|
4167
|
+
icon: F((l = r == null ? void 0 : r.arrowLeftClasses) == null ? void 0 : l.icon)
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
4170
4170
|
),
|
|
4171
4171
|
e,
|
|
4172
|
-
/* @__PURE__ */
|
|
4173
|
-
|
|
4172
|
+
/* @__PURE__ */ C.jsx(
|
|
4173
|
+
ke,
|
|
4174
4174
|
{
|
|
4175
4175
|
mode: "next",
|
|
4176
4176
|
onClick: n,
|
|
4177
4177
|
disabled: t,
|
|
4178
4178
|
classes: {
|
|
4179
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((
|
|
4180
|
+
icon: F((s = r == null ? void 0 : r.arrowRightClasses) == null ? void 0 : s.icon)
|
|
4181
4181
|
}
|
|
4182
4182
|
}
|
|
4183
4183
|
)
|
|
@@ -4189,69 +4189,69 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4189
4189
|
heading: n,
|
|
4190
4190
|
autoPlayOptions: r,
|
|
4191
4191
|
setVisibleIndex: i,
|
|
4192
|
-
visibleIndex:
|
|
4192
|
+
visibleIndex: l,
|
|
4193
4193
|
children: u,
|
|
4194
|
-
classes:
|
|
4194
|
+
classes: s,
|
|
4195
4195
|
...a
|
|
4196
4196
|
}) => {
|
|
4197
4197
|
const d = { ...Ut, ...t }, f = { ...Yr, ...r }, g = { ...Xt, ...o }, c = { ...Kt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = Qr({
|
|
4198
4198
|
carouselOptions: d,
|
|
4199
4199
|
autoPlayOptions: f
|
|
4200
|
-
}), h = gr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled:
|
|
4200
|
+
}), h = gr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: w, nextBtnDisabled: v, onClickNavigationButton: _ } = dr({
|
|
4201
4201
|
emblaApi: p,
|
|
4202
4202
|
navigationHandler: m
|
|
4203
|
-
}), { isMobile: I, isDesktop: V } = qe(), { deskVisible: M, mobVisible:
|
|
4204
|
-
return /* @__PURE__ */
|
|
4205
|
-
|
|
4206
|
-
!!n && /* @__PURE__ */
|
|
4207
|
-
|
|
4208
|
-
/* @__PURE__ */
|
|
4209
|
-
|
|
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
4210
|
{
|
|
4211
4211
|
mode: "prev",
|
|
4212
4212
|
onClick: _,
|
|
4213
|
-
disabled:
|
|
4214
|
-
classes:
|
|
4213
|
+
disabled: w,
|
|
4214
|
+
classes: s == null ? void 0 : s.arrowLeftClasses
|
|
4215
4215
|
}
|
|
4216
4216
|
),
|
|
4217
|
-
/* @__PURE__ */
|
|
4218
|
-
|
|
4217
|
+
/* @__PURE__ */ C.jsx(
|
|
4218
|
+
ke,
|
|
4219
4219
|
{
|
|
4220
4220
|
mode: "next",
|
|
4221
4221
|
onClick: _,
|
|
4222
4222
|
disabled: v,
|
|
4223
|
-
classes:
|
|
4223
|
+
classes: s == null ? void 0 : s.arrowRightClasses
|
|
4224
4224
|
}
|
|
4225
4225
|
)
|
|
4226
4226
|
] })
|
|
4227
4227
|
] }),
|
|
4228
|
-
|
|
4228
|
+
T && $ === "center" ? /* @__PURE__ */ C.jsx(
|
|
4229
4229
|
Zr,
|
|
4230
4230
|
{
|
|
4231
4231
|
onClickNavigationButton: _,
|
|
4232
|
-
prevBtnDisabled:
|
|
4232
|
+
prevBtnDisabled: w,
|
|
4233
4233
|
nextBtnDisabled: v,
|
|
4234
|
-
classes:
|
|
4235
|
-
children: /* @__PURE__ */
|
|
4234
|
+
classes: s == null ? void 0 : s.containerWithNavClasses,
|
|
4235
|
+
children: /* @__PURE__ */ C.jsx(
|
|
4236
4236
|
qt,
|
|
4237
4237
|
{
|
|
4238
|
-
visibleIndex:
|
|
4238
|
+
visibleIndex: l,
|
|
4239
4239
|
dotsOptions: c,
|
|
4240
4240
|
ref: S,
|
|
4241
4241
|
dotsProps: h,
|
|
4242
|
-
classes:
|
|
4242
|
+
classes: s == null ? void 0 : s.carouselContentClasses,
|
|
4243
4243
|
children: u
|
|
4244
4244
|
}
|
|
4245
4245
|
)
|
|
4246
4246
|
}
|
|
4247
|
-
) : /* @__PURE__ */
|
|
4247
|
+
) : /* @__PURE__ */ C.jsx(
|
|
4248
4248
|
qt,
|
|
4249
4249
|
{
|
|
4250
|
-
visibleIndex:
|
|
4250
|
+
visibleIndex: l,
|
|
4251
4251
|
dotsOptions: c,
|
|
4252
4252
|
ref: S,
|
|
4253
4253
|
dotsProps: h,
|
|
4254
|
-
classes:
|
|
4254
|
+
classes: s == null ? void 0 : s.carouselContentClasses,
|
|
4255
4255
|
children: u
|
|
4256
4256
|
}
|
|
4257
4257
|
)
|
|
@@ -4260,7 +4260,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4260
4260
|
const { toasts: t } = Un();
|
|
4261
4261
|
return ve(() => {
|
|
4262
4262
|
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => Kn.dismiss(n.id));
|
|
4263
|
-
}, [e, t]), /* @__PURE__ */
|
|
4263
|
+
}, [e, t]), /* @__PURE__ */ C.jsx(
|
|
4264
4264
|
Xn,
|
|
4265
4265
|
{
|
|
4266
4266
|
position: "top-center",
|
|
@@ -4269,37 +4269,7 @@ const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
}
|
|
4271
4271
|
);
|
|
4272
|
-
},
|
|
4273
|
-
"div",
|
|
4274
|
-
{
|
|
4275
|
-
className: F(
|
|
4276
|
-
"flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
|
|
4277
|
-
{ "pointer-events-none !border-transparent": o == null ? void 0 : o.isDisabled }
|
|
4278
|
-
),
|
|
4279
|
-
children: [
|
|
4280
|
-
/* @__PURE__ */ w.jsx(
|
|
4281
|
-
"a",
|
|
4282
|
-
{
|
|
4283
|
-
href: o.path,
|
|
4284
|
-
target: "_blank",
|
|
4285
|
-
rel: "noreferrer",
|
|
4286
|
-
className: F(
|
|
4287
|
-
"desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
|
|
4288
|
-
{ "!text-color-disabled": o == null ? void 0 : o.isDisabled }
|
|
4289
|
-
),
|
|
4290
|
-
children: o.label
|
|
4291
|
-
}
|
|
4292
|
-
),
|
|
4293
|
-
/* @__PURE__ */ w.jsx(
|
|
4294
|
-
be,
|
|
4295
|
-
{
|
|
4296
|
-
name: "arrows/arrowRight",
|
|
4297
|
-
className: F("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
|
|
4298
|
-
}
|
|
4299
|
-
)
|
|
4300
|
-
]
|
|
4301
|
-
}
|
|
4302
|
-
) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), ei = ({ children: e }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: e }), ht = Q(({ children: e, ...o }, t) => {
|
|
4272
|
+
}, ei = ({ children: e }) => /* @__PURE__ */ C.jsx(C.Fragment, { children: e }), ht = Q(({ children: e, ...o }, t) => {
|
|
4303
4273
|
if (He(e)) {
|
|
4304
4274
|
const n = ni(e);
|
|
4305
4275
|
return Qt(e, {
|
|
@@ -4320,48 +4290,47 @@ const ti = (e) => He(e) && e.type === ei, ni = (e) => {
|
|
|
4320
4290
|
const t = { ...o };
|
|
4321
4291
|
for (const n in o) {
|
|
4322
4292
|
const r = e[n], i = o[n];
|
|
4323
|
-
/^on[A-Z]/.test(n) ? r && i && (t[n] = (...
|
|
4324
|
-
r(...
|
|
4293
|
+
/^on[A-Z]/.test(n) ? r && i && (t[n] = (...l) => {
|
|
4294
|
+
r(...l), i(...l);
|
|
4325
4295
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
4326
4296
|
}
|
|
4327
4297
|
return { ...e, ...t };
|
|
4328
4298
|
}, ri = Q(({ children: e, ...o }, t) => {
|
|
4329
4299
|
const n = Ie.toArray(e), r = n.find(ti);
|
|
4330
4300
|
if (r) {
|
|
4331
|
-
const i = r.props.children,
|
|
4332
|
-
return /* @__PURE__ */
|
|
4301
|
+
const i = r.props.children, l = n.map((u) => u === r ? Ie.count(i) > 1 ? Ie.only(null) : He(i) ? i.props.children : null : u);
|
|
4302
|
+
return /* @__PURE__ */ C.jsx(ht, { ...o, ref: t, children: He(i) ? Qt(i, void 0, l) : null });
|
|
4333
4303
|
}
|
|
4334
|
-
return /* @__PURE__ */
|
|
4304
|
+
return /* @__PURE__ */ C.jsx(ht, { ...o, ref: t, children: e });
|
|
4335
4305
|
});
|
|
4336
4306
|
ri.displayName = "Slot";
|
|
4337
4307
|
export {
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
Ri as Breadcrumbs,
|
|
4308
|
+
Bn as Accordion,
|
|
4309
|
+
yi as Badge,
|
|
4341
4310
|
ge as Button,
|
|
4342
4311
|
ci as ButtonIcon,
|
|
4343
|
-
|
|
4312
|
+
Fi as Calendar,
|
|
4344
4313
|
Ci as CarouselBase,
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4314
|
+
_i as Controlled,
|
|
4315
|
+
Ii as CustomLink,
|
|
4316
|
+
Bi as DATE_VISIBLE_PATTERN,
|
|
4348
4317
|
Si as DataTable,
|
|
4349
|
-
|
|
4350
|
-
|
|
4318
|
+
lo as DataTableColumnHeader,
|
|
4319
|
+
Mi as Dialog,
|
|
4351
4320
|
hi as EditableCell,
|
|
4352
4321
|
gi as FloatButton,
|
|
4353
4322
|
qn as Heading,
|
|
4354
|
-
|
|
4355
|
-
|
|
4323
|
+
Vi as Hint,
|
|
4324
|
+
Ne as Icon,
|
|
4356
4325
|
Pi as KeyboardShortcuts,
|
|
4357
4326
|
$i as Loader,
|
|
4358
|
-
|
|
4359
|
-
|
|
4327
|
+
bi as Modal,
|
|
4328
|
+
Ei as Notification,
|
|
4360
4329
|
vi as NotificationProvider,
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4330
|
+
sr as Pagination,
|
|
4331
|
+
Di as PhoneView,
|
|
4332
|
+
Li as Popover,
|
|
4333
|
+
Oi as ProgressBar,
|
|
4365
4334
|
An as ResponsiveContainer,
|
|
4366
4335
|
di as Skeleton,
|
|
4367
4336
|
ri as Slot,
|
|
@@ -4375,17 +4344,17 @@ export {
|
|
|
4375
4344
|
Te as TableRow,
|
|
4376
4345
|
wi as TableUtils,
|
|
4377
4346
|
mi as TabsSwitcher,
|
|
4378
|
-
|
|
4347
|
+
Ai as Uncontrolled,
|
|
4379
4348
|
fi as allowedIcons,
|
|
4380
4349
|
Ti as brandLogos,
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4350
|
+
Ni as buttonPrimitiveIntent,
|
|
4351
|
+
ji as buttonPrimitiveSize,
|
|
4352
|
+
Hi as buttonPrimitiveTextFormat,
|
|
4353
|
+
Gi as buttonPrimitiveType,
|
|
4354
|
+
qi as defaultClassNames,
|
|
4355
|
+
Ui as formatDateToLocaleString,
|
|
4356
|
+
Ki as formatDateToMonthString,
|
|
4357
|
+
Xi as formatDateToYearString,
|
|
4358
|
+
zi as isSingleOption
|
|
4390
4359
|
};
|
|
4391
4360
|
//# sourceMappingURL=ui.js.map
|