@scbt-ecom/ui 0.77.3 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-PZSikNMt.js → index-BUV7eJPv.js} +3331 -3295
- package/dist/index-BUV7eJPv.js.map +1 -0
- package/dist/lib/shared/ui/dialog/Dialog.d.ts +0 -1
- package/dist/lib/widgets/buttonWithHandlers/model/types.d.ts +5 -1
- package/dist/lib/widgets/dynamicFormDialog/DynamicFormDialog.d.ts +33 -0
- package/dist/lib/widgets/dynamicFormDialog/index.d.ts +1 -0
- package/dist/lib/widgets/dynamicFormDialog/model/index.d.ts +1 -0
- package/dist/lib/widgets/dynamicFormDialog/model/types.d.ts +18 -0
- package/dist/lib/widgets/index.d.ts +1 -0
- package/dist/lib/widgets/model/helpers.d.ts +2 -1
- package/dist/ui.js +523 -559
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +663 -614
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-PZSikNMt.js.map +0 -1
- package/dist/lib/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -0
package/dist/ui.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { j as w, c as
|
|
2
|
-
import { o as
|
|
1
|
+
import { j as w, c as On, R as An, B as ge, u as Nn, a as Tn, b as jn, d as Hn, P as ke, e as Wt, f as Gn, I as zn, g as et, h as Bn, A as kn, i as be, H as qn, D as Un, V as Kn, O as Xn } from "./index-BUV7eJPv.js";
|
|
2
|
+
import { o as Fi, C as _i, w as Ii, v as Mi, s as Vi, p as bi, K as Pi, L as $i, M as Ei, N as Di, n as Li, q as Oi, r as Ai, U as Ni, t as Ti, k as ji, m as Hi, l as Gi, x as zi } from "./index-BUV7eJPv.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
|
-
import { forwardRef as Q, useState as oe, useRef as
|
|
5
|
-
import { c as F, T as
|
|
6
|
-
import { aQ as
|
|
7
|
-
import { u as qe, a as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const Yn = An(
|
|
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 Nt } from "./typeGuards-CSiImkUY.js";
|
|
6
|
+
import { aQ as ki, aT as qi, aP as Ui, aS as Ki, aR as Xi } from "./utils-CnDzHNQ6.js";
|
|
7
|
+
import { u as qe, a as Wn } from "./useDebounce-BH0d8exl.js";
|
|
8
|
+
import { m as Qn } from "./mergeRefs-qDToYXtM.js";
|
|
9
|
+
const Jn = On(
|
|
11
10
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
12
11
|
{
|
|
13
12
|
variants: {
|
|
@@ -27,10 +26,10 @@ const Yn = An(
|
|
|
27
26
|
size: "lg"
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
),
|
|
31
|
-
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, s) => /* @__PURE__ */ w.jsx("button", { ref: s, type: r, className: F(
|
|
32
|
-
),
|
|
33
|
-
|
|
29
|
+
), ci = Q(
|
|
30
|
+
({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, s) => /* @__PURE__ */ w.jsx("button", { ref: s, type: r, className: F(Jn({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ w.jsx("span", { className: F(n == null ? void 0 : n.icon), children: t }) })
|
|
31
|
+
), di = ({ className: e }) => /* @__PURE__ */ w.jsx("div", { className: F("skeleton-apply h-full w-full", e) }), gi = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ w.jsxs(
|
|
32
|
+
An,
|
|
34
33
|
{
|
|
35
34
|
className: F(
|
|
36
35
|
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
@@ -42,7 +41,7 @@ const Yn = An(
|
|
|
42
41
|
/* @__PURE__ */ w.jsx(ge, { size: "lg", className: F("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
|
-
),
|
|
44
|
+
), fi = {
|
|
46
45
|
group: {
|
|
47
46
|
arrows: [
|
|
48
47
|
"arrows/arrowCircle",
|
|
@@ -155,9 +154,9 @@ const Yn = An(
|
|
|
155
154
|
"status/iconUser"
|
|
156
155
|
]
|
|
157
156
|
};
|
|
158
|
-
var Ue = "Tabs", [
|
|
157
|
+
var Ue = "Tabs", [Yn, pi] = jn(Ue, [
|
|
159
158
|
Wt
|
|
160
|
-
]),
|
|
159
|
+
]), Jt = Wt(), [Zn, St] = Yn(Ue), Yt = ce.forwardRef(
|
|
161
160
|
(e, o) => {
|
|
162
161
|
const {
|
|
163
162
|
__scopeTabs: t,
|
|
@@ -168,24 +167,24 @@ var Ue = "Tabs", [Zn, hi] = Gn(Ue, [
|
|
|
168
167
|
dir: u,
|
|
169
168
|
activationMode: l = "automatic",
|
|
170
169
|
...a
|
|
171
|
-
} = e, d =
|
|
170
|
+
} = e, d = Nn(u), [f, g] = Tn({
|
|
172
171
|
prop: n,
|
|
173
172
|
onChange: r,
|
|
174
173
|
defaultProp: i ?? "",
|
|
175
174
|
caller: Ue
|
|
176
175
|
});
|
|
177
176
|
return /* @__PURE__ */ w.jsx(
|
|
178
|
-
|
|
177
|
+
Zn,
|
|
179
178
|
{
|
|
180
179
|
scope: t,
|
|
181
|
-
baseId:
|
|
180
|
+
baseId: Hn(),
|
|
182
181
|
value: f,
|
|
183
182
|
onValueChange: g,
|
|
184
183
|
orientation: s,
|
|
185
184
|
dir: d,
|
|
186
185
|
activationMode: l,
|
|
187
186
|
children: /* @__PURE__ */ w.jsx(
|
|
188
|
-
|
|
187
|
+
ke.div,
|
|
189
188
|
{
|
|
190
189
|
dir: d,
|
|
191
190
|
"data-orientation": s,
|
|
@@ -197,12 +196,12 @@ var Ue = "Tabs", [Zn, hi] = Gn(Ue, [
|
|
|
197
196
|
);
|
|
198
197
|
}
|
|
199
198
|
);
|
|
200
|
-
|
|
201
|
-
var
|
|
199
|
+
Yt.displayName = Ue;
|
|
200
|
+
var Zt = "TabsList", en = ce.forwardRef(
|
|
202
201
|
(e, o) => {
|
|
203
|
-
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(
|
|
202
|
+
const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(Zt, t), s = Jt(t);
|
|
204
203
|
return /* @__PURE__ */ w.jsx(
|
|
205
|
-
|
|
204
|
+
Gn,
|
|
206
205
|
{
|
|
207
206
|
asChild: !0,
|
|
208
207
|
...s,
|
|
@@ -210,7 +209,7 @@ var tn = "TabsList", nn = ce.forwardRef(
|
|
|
210
209
|
dir: i.dir,
|
|
211
210
|
loop: n,
|
|
212
211
|
children: /* @__PURE__ */ w.jsx(
|
|
213
|
-
|
|
212
|
+
ke.div,
|
|
214
213
|
{
|
|
215
214
|
role: "tablist",
|
|
216
215
|
"aria-orientation": i.orientation,
|
|
@@ -222,19 +221,19 @@ var tn = "TabsList", nn = ce.forwardRef(
|
|
|
222
221
|
);
|
|
223
222
|
}
|
|
224
223
|
);
|
|
225
|
-
|
|
226
|
-
var
|
|
224
|
+
en.displayName = Zt;
|
|
225
|
+
var tn = "TabsTrigger", nn = ce.forwardRef(
|
|
227
226
|
(e, o) => {
|
|
228
|
-
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, s = St(
|
|
227
|
+
const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, s = St(tn, t), u = Jt(t), l = sn(s.baseId, n), a = ln(s.baseId, n), d = n === s.value;
|
|
229
228
|
return /* @__PURE__ */ w.jsx(
|
|
230
|
-
|
|
229
|
+
zn,
|
|
231
230
|
{
|
|
232
231
|
asChild: !0,
|
|
233
232
|
...u,
|
|
234
233
|
focusable: !r,
|
|
235
234
|
active: d,
|
|
236
235
|
children: /* @__PURE__ */ w.jsx(
|
|
237
|
-
|
|
236
|
+
ke.button,
|
|
238
237
|
{
|
|
239
238
|
type: "button",
|
|
240
239
|
role: "tab",
|
|
@@ -262,15 +261,15 @@ var on = "TabsTrigger", rn = ce.forwardRef(
|
|
|
262
261
|
);
|
|
263
262
|
}
|
|
264
263
|
);
|
|
265
|
-
|
|
266
|
-
var
|
|
264
|
+
nn.displayName = tn;
|
|
265
|
+
var on = "TabsContent", rn = ce.forwardRef(
|
|
267
266
|
(e, o) => {
|
|
268
|
-
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...s } = e, u = St(
|
|
267
|
+
const { __scopeTabs: t, value: n, forceMount: r, children: i, ...s } = e, u = St(on, t), l = sn(u.baseId, n), a = ln(u.baseId, n), d = n === u.value, f = ce.useRef(d);
|
|
269
268
|
return ce.useEffect(() => {
|
|
270
269
|
const g = requestAnimationFrame(() => f.current = !1);
|
|
271
270
|
return () => cancelAnimationFrame(g);
|
|
272
|
-
}, []), /* @__PURE__ */ w.jsx(
|
|
273
|
-
|
|
271
|
+
}, []), /* @__PURE__ */ w.jsx(Bn, { present: r || d, children: ({ present: g }) => /* @__PURE__ */ w.jsx(
|
|
272
|
+
ke.div,
|
|
274
273
|
{
|
|
275
274
|
"data-state": d ? "active" : "inactive",
|
|
276
275
|
"data-orientation": u.orientation,
|
|
@@ -290,26 +289,26 @@ var sn = "TabsContent", ln = ce.forwardRef(
|
|
|
290
289
|
) });
|
|
291
290
|
}
|
|
292
291
|
);
|
|
293
|
-
|
|
294
|
-
function
|
|
292
|
+
rn.displayName = on;
|
|
293
|
+
function sn(e, o) {
|
|
295
294
|
return `${e}-trigger-${o}`;
|
|
296
295
|
}
|
|
297
|
-
function
|
|
296
|
+
function ln(e, o) {
|
|
298
297
|
return `${e}-content-${o}`;
|
|
299
298
|
}
|
|
300
|
-
var
|
|
301
|
-
const
|
|
299
|
+
var eo = Yt, to = en, no = nn, Tt = rn;
|
|
300
|
+
const oo = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { className: F("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ w.jsx(Tt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ w.jsx(kn, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ w.jsx(Tt, { value: t, className: F("py-8", e == null ? void 0 : e.content), children: n }, t)) }), mi = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
|
|
302
301
|
var i;
|
|
303
302
|
return /* @__PURE__ */ w.jsxs(
|
|
304
|
-
|
|
303
|
+
eo,
|
|
305
304
|
{
|
|
306
305
|
value: t,
|
|
307
306
|
onValueChange: n,
|
|
308
307
|
defaultValue: o,
|
|
309
308
|
className: F("flex flex-col", r == null ? void 0 : r.root),
|
|
310
309
|
children: [
|
|
311
|
-
/* @__PURE__ */ w.jsx(
|
|
312
|
-
|
|
310
|
+
/* @__PURE__ */ w.jsx(to, { className: F("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: s, label: u }) => /* @__PURE__ */ w.jsx(
|
|
311
|
+
no,
|
|
313
312
|
{
|
|
314
313
|
value: s,
|
|
315
314
|
className: F(
|
|
@@ -320,27 +319,27 @@ const ro = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { class
|
|
|
320
319
|
},
|
|
321
320
|
s
|
|
322
321
|
)) }),
|
|
323
|
-
/* @__PURE__ */ w.jsx(
|
|
322
|
+
/* @__PURE__ */ w.jsx(oo, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
|
|
324
323
|
]
|
|
325
324
|
}
|
|
326
325
|
);
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
const
|
|
338
|
-
|
|
326
|
+
}, un = Q((e, o) => /* @__PURE__ */ w.jsx("table", { ref: o, ...e }));
|
|
327
|
+
un.displayName = "Table";
|
|
328
|
+
const an = Q((e, o) => /* @__PURE__ */ w.jsx("thead", { ref: o, ...e }));
|
|
329
|
+
an.displayName = "TableHeader";
|
|
330
|
+
const cn = Q((e, o) => /* @__PURE__ */ w.jsx("tbody", { ref: o, ...e }));
|
|
331
|
+
cn.displayName = "TableBody";
|
|
332
|
+
const ro = Q((e, o) => /* @__PURE__ */ w.jsx("tfoot", { ref: o, ...e }));
|
|
333
|
+
ro.displayName = "TableFooter";
|
|
334
|
+
const Te = Q((e, o) => /* @__PURE__ */ w.jsx("tr", { ref: o, ...e }));
|
|
335
|
+
Te.displayName = "TableRow";
|
|
336
|
+
const dn = Q((e, o) => /* @__PURE__ */ w.jsx("th", { ref: o, ...e }));
|
|
337
|
+
dn.displayName = "TableHead";
|
|
339
338
|
const ut = Q((e, o) => /* @__PURE__ */ w.jsx("td", { ref: o, ...e }));
|
|
340
339
|
ut.displayName = "TableCell";
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
const
|
|
340
|
+
const io = Q((e, o) => /* @__PURE__ */ w.jsx("caption", { ref: o, ...e }));
|
|
341
|
+
io.displayName = "TableCaption";
|
|
342
|
+
const so = ({
|
|
344
343
|
children: e,
|
|
345
344
|
canSort: o,
|
|
346
345
|
toggleSorting: t,
|
|
@@ -359,7 +358,7 @@ const lo = ({
|
|
|
359
358
|
children: [
|
|
360
359
|
/* @__PURE__ */ w.jsx("span", { className: F("", u), children: e }),
|
|
361
360
|
d && /* @__PURE__ */ w.jsx(
|
|
362
|
-
|
|
361
|
+
be,
|
|
363
362
|
{
|
|
364
363
|
name: "arrows/arrowRight",
|
|
365
364
|
className: F(
|
|
@@ -374,14 +373,14 @@ const lo = ({
|
|
|
374
373
|
]
|
|
375
374
|
}
|
|
376
375
|
);
|
|
377
|
-
},
|
|
376
|
+
}, hi = ({
|
|
378
377
|
row: e,
|
|
379
378
|
getValue: o,
|
|
380
379
|
update: t,
|
|
381
380
|
target: n,
|
|
382
381
|
rowIndex: r = -1
|
|
383
382
|
}) => {
|
|
384
|
-
const [i, s] = oe(!1), [u, l] = oe(o()), a =
|
|
383
|
+
const [i, s] = oe(!1), [u, l] = oe(o()), a = je(!1), d = je(null), { original: f } = e, g = (p) => {
|
|
385
384
|
l(p.target.value), a.current = !0;
|
|
386
385
|
}, c = () => {
|
|
387
386
|
if (a.current) {
|
|
@@ -390,7 +389,7 @@ const lo = ({
|
|
|
390
389
|
}
|
|
391
390
|
s(!1);
|
|
392
391
|
};
|
|
393
|
-
return
|
|
392
|
+
return Wn(d, c), i ? /* @__PURE__ */ w.jsx(
|
|
394
393
|
"input",
|
|
395
394
|
{
|
|
396
395
|
ref: d,
|
|
@@ -414,7 +413,7 @@ const lo = ({
|
|
|
414
413
|
*
|
|
415
414
|
* @license MIT
|
|
416
415
|
*/
|
|
417
|
-
function
|
|
416
|
+
function lo() {
|
|
418
417
|
return {
|
|
419
418
|
accessor: (e, o) => typeof e == "function" ? {
|
|
420
419
|
...o,
|
|
@@ -441,10 +440,10 @@ function q(e, o) {
|
|
|
441
440
|
function Ke(e) {
|
|
442
441
|
return e instanceof Function;
|
|
443
442
|
}
|
|
444
|
-
function
|
|
443
|
+
function uo(e) {
|
|
445
444
|
return Array.isArray(e) && e.every((o) => typeof o == "number");
|
|
446
445
|
}
|
|
447
|
-
function
|
|
446
|
+
function ao(e, o) {
|
|
448
447
|
const t = [], n = (r) => {
|
|
449
448
|
r.forEach((i) => {
|
|
450
449
|
t.push(i);
|
|
@@ -488,7 +487,7 @@ function y(e, o, t, n) {
|
|
|
488
487
|
onChange: n
|
|
489
488
|
};
|
|
490
489
|
}
|
|
491
|
-
function
|
|
490
|
+
function co(e, o, t, n) {
|
|
492
491
|
const r = () => {
|
|
493
492
|
var s;
|
|
494
493
|
return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
|
|
@@ -511,7 +510,7 @@ function go(e, o, t, n) {
|
|
|
511
510
|
s.createCell == null || s.createCell(i, t, o, e);
|
|
512
511
|
}, {}), i;
|
|
513
512
|
}
|
|
514
|
-
function
|
|
513
|
+
function go(e, o, t, n) {
|
|
515
514
|
var r, i;
|
|
516
515
|
const u = {
|
|
517
516
|
...e._getDefaultColumnDef(),
|
|
@@ -581,20 +580,20 @@ function jt(e, o, t) {
|
|
|
581
580
|
s.createHeader == null || s.createHeader(i, e);
|
|
582
581
|
}), i;
|
|
583
582
|
}
|
|
584
|
-
const
|
|
583
|
+
const fo = {
|
|
585
584
|
createTable: (e) => {
|
|
586
585
|
e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
|
|
587
586
|
var i, s;
|
|
588
587
|
const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], l = (s = r == null ? void 0 : r.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? s : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
|
|
589
|
-
return
|
|
590
|
-
}, 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))),
|
|
588
|
+
return Oe(o, [...u, ...a, ...l], 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))), Oe(o, t, e, "center")), y(e.options, H, "getCenterHeaderGroups")), e.getLeftHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
|
|
591
590
|
var r;
|
|
592
591
|
const i = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
593
|
-
return
|
|
592
|
+
return Oe(o, i, e, "left");
|
|
594
593
|
}, y(e.options, H, "getLeftHeaderGroups")), e.getRightHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
|
|
595
594
|
var r;
|
|
596
595
|
const i = (r = n == null ? void 0 : n.map((s) => t.find((u) => u.id === s)).filter(Boolean)) != null ? r : [];
|
|
597
|
-
return
|
|
596
|
+
return Oe(o, i, e, "right");
|
|
598
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) => {
|
|
599
598
|
var n;
|
|
600
599
|
return !((n = t.subHeaders) != null && n.length);
|
|
@@ -610,7 +609,7 @@ const po = {
|
|
|
610
609
|
}, y(e.options, H, "getLeafHeaders"));
|
|
611
610
|
}
|
|
612
611
|
};
|
|
613
|
-
function
|
|
612
|
+
function Oe(e, o, t, n) {
|
|
614
613
|
var r, i;
|
|
615
614
|
let s = 0;
|
|
616
615
|
const u = function(g, c) {
|
|
@@ -636,7 +635,7 @@ function Ne(e, o, t, n) {
|
|
|
636
635
|
const I = jt(t, v, {
|
|
637
636
|
id: [n, c, v.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
638
637
|
isPlaceholder: _,
|
|
639
|
-
placeholderId: _ ? `${m.filter((
|
|
638
|
+
placeholderId: _ ? `${m.filter((V) => V.column === v).length}` : void 0,
|
|
640
639
|
depth: c,
|
|
641
640
|
index: m.length
|
|
642
641
|
});
|
|
@@ -694,7 +693,7 @@ const wt = (e, o, t, n, r, i, s) => {
|
|
|
694
693
|
return (a = u.getValue(l)) != null ? a : e.options.renderFallbackValue;
|
|
695
694
|
},
|
|
696
695
|
subRows: [],
|
|
697
|
-
getLeafRows: () =>
|
|
696
|
+
getLeafRows: () => ao(u.subRows, (l) => l.subRows),
|
|
698
697
|
getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
|
|
699
698
|
getParentRows: () => {
|
|
700
699
|
let l = [], a = u;
|
|
@@ -705,7 +704,7 @@ const wt = (e, o, t, n, r, i, s) => {
|
|
|
705
704
|
}
|
|
706
705
|
return l.reverse();
|
|
707
706
|
},
|
|
708
|
-
getAllCells: x(() => [e.getAllLeafColumns()], (l) => l.map((a) =>
|
|
707
|
+
getAllCells: x(() => [e.getAllLeafColumns()], (l) => l.map((a) => co(e, u, a, a.id)), y(e.options, "debugRows", "getAllCells")),
|
|
709
708
|
_getAllCellsByColumnId: x(() => [u.getAllCells()], (l) => l.reduce((a, d) => (a[d.column.id] = d, a), {}), y(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
710
709
|
};
|
|
711
710
|
for (let l = 0; l < e._features.length; l++) {
|
|
@@ -713,48 +712,48 @@ const wt = (e, o, t, n, r, i, s) => {
|
|
|
713
712
|
a == null || a.createRow == null || a.createRow(u, e);
|
|
714
713
|
}
|
|
715
714
|
return u;
|
|
716
|
-
},
|
|
715
|
+
}, po = {
|
|
717
716
|
createColumn: (e, o) => {
|
|
718
717
|
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
719
718
|
if (e._getFacetedMinMaxValues)
|
|
720
719
|
return e._getFacetedMinMaxValues();
|
|
721
720
|
};
|
|
722
721
|
}
|
|
723
|
-
},
|
|
722
|
+
}, gn = (e, o, t) => {
|
|
724
723
|
var n, r;
|
|
725
724
|
const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
726
725
|
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
727
726
|
};
|
|
728
|
-
|
|
729
|
-
const
|
|
727
|
+
gn.autoRemove = (e) => Z(e);
|
|
728
|
+
const fn = (e, o, t) => {
|
|
730
729
|
var n;
|
|
731
730
|
return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
|
|
732
731
|
};
|
|
733
|
-
|
|
734
|
-
const
|
|
732
|
+
fn.autoRemove = (e) => Z(e);
|
|
733
|
+
const pn = (e, o, t) => {
|
|
735
734
|
var n;
|
|
736
735
|
return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
737
736
|
};
|
|
738
|
-
|
|
739
|
-
const
|
|
737
|
+
pn.autoRemove = (e) => Z(e);
|
|
738
|
+
const mn = (e, o, t) => {
|
|
740
739
|
var n;
|
|
741
740
|
return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
|
|
742
741
|
};
|
|
743
|
-
|
|
744
|
-
const
|
|
742
|
+
mn.autoRemove = (e) => Z(e);
|
|
743
|
+
const hn = (e, o, t) => !t.some((n) => {
|
|
745
744
|
var r;
|
|
746
745
|
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
747
746
|
});
|
|
748
|
-
|
|
749
|
-
const
|
|
747
|
+
hn.autoRemove = (e) => Z(e) || !(e != null && e.length);
|
|
748
|
+
const Sn = (e, o, t) => t.some((n) => {
|
|
750
749
|
var r;
|
|
751
750
|
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
752
751
|
});
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
|
|
752
|
+
Sn.autoRemove = (e) => Z(e) || !(e != null && e.length);
|
|
753
|
+
const wn = (e, o, t) => e.getValue(o) === t;
|
|
754
|
+
wn.autoRemove = (e) => Z(e);
|
|
755
|
+
const Cn = (e, o, t) => e.getValue(o) == t;
|
|
756
|
+
Cn.autoRemove = (e) => Z(e);
|
|
758
757
|
const Ct = (e, o, t) => {
|
|
759
758
|
let [n, r] = t;
|
|
760
759
|
const i = e.getValue(o);
|
|
@@ -770,20 +769,20 @@ Ct.resolveFilterValue = (e) => {
|
|
|
770
769
|
};
|
|
771
770
|
Ct.autoRemove = (e) => Z(e) || Z(e[0]) && Z(e[1]);
|
|
772
771
|
const ae = {
|
|
773
|
-
includesString:
|
|
774
|
-
includesStringSensitive:
|
|
775
|
-
equalsString:
|
|
776
|
-
arrIncludes:
|
|
777
|
-
arrIncludesAll:
|
|
778
|
-
arrIncludesSome:
|
|
779
|
-
equals:
|
|
780
|
-
weakEquals:
|
|
772
|
+
includesString: gn,
|
|
773
|
+
includesStringSensitive: fn,
|
|
774
|
+
equalsString: pn,
|
|
775
|
+
arrIncludes: mn,
|
|
776
|
+
arrIncludesAll: hn,
|
|
777
|
+
arrIncludesSome: Sn,
|
|
778
|
+
equals: wn,
|
|
779
|
+
weakEquals: Cn,
|
|
781
780
|
inNumberRange: Ct
|
|
782
781
|
};
|
|
783
782
|
function Z(e) {
|
|
784
783
|
return e == null || e === "";
|
|
785
784
|
}
|
|
786
|
-
const
|
|
785
|
+
const mo = {
|
|
787
786
|
getDefaultColumnDef: () => ({
|
|
788
787
|
filterFn: "auto"
|
|
789
788
|
}),
|
|
@@ -861,54 +860,54 @@ const ho = {
|
|
|
861
860
|
function Ht(e, o, t) {
|
|
862
861
|
return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
|
|
863
862
|
}
|
|
864
|
-
const
|
|
863
|
+
const ho = (e, o, t) => t.reduce((n, r) => {
|
|
865
864
|
const i = r.getValue(e);
|
|
866
865
|
return n + (typeof i == "number" ? i : 0);
|
|
867
|
-
}, 0),
|
|
866
|
+
}, 0), So = (e, o, t) => {
|
|
868
867
|
let n;
|
|
869
868
|
return t.forEach((r) => {
|
|
870
869
|
const i = r.getValue(e);
|
|
871
870
|
i != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
872
871
|
}), n;
|
|
873
|
-
},
|
|
872
|
+
}, wo = (e, o, t) => {
|
|
874
873
|
let n;
|
|
875
874
|
return t.forEach((r) => {
|
|
876
875
|
const i = r.getValue(e);
|
|
877
876
|
i != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
878
877
|
}), n;
|
|
879
|
-
},
|
|
878
|
+
}, Co = (e, o, t) => {
|
|
880
879
|
let n, r;
|
|
881
880
|
return t.forEach((i) => {
|
|
882
881
|
const s = i.getValue(e);
|
|
883
882
|
s != null && (n === void 0 ? s >= s && (n = r = s) : (n > s && (n = s), r < s && (r = s)));
|
|
884
883
|
}), [n, r];
|
|
885
|
-
},
|
|
884
|
+
}, vo = (e, o) => {
|
|
886
885
|
let t = 0, n = 0;
|
|
887
886
|
if (o.forEach((r) => {
|
|
888
887
|
let i = r.getValue(e);
|
|
889
888
|
i != null && (i = +i) >= i && (++t, n += i);
|
|
890
889
|
}), t) return n / t;
|
|
891
|
-
},
|
|
890
|
+
}, Ro = (e, o) => {
|
|
892
891
|
if (!o.length)
|
|
893
892
|
return;
|
|
894
893
|
const t = o.map((i) => i.getValue(e));
|
|
895
|
-
if (!
|
|
894
|
+
if (!uo(t))
|
|
896
895
|
return;
|
|
897
896
|
if (t.length === 1)
|
|
898
897
|
return t[0];
|
|
899
898
|
const n = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
|
|
900
899
|
return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
|
|
901
|
-
},
|
|
902
|
-
sum:
|
|
903
|
-
min:
|
|
904
|
-
max:
|
|
905
|
-
extent:
|
|
906
|
-
mean:
|
|
907
|
-
median:
|
|
908
|
-
unique:
|
|
909
|
-
uniqueCount:
|
|
910
|
-
count:
|
|
911
|
-
},
|
|
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
|
+
sum: ho,
|
|
902
|
+
min: So,
|
|
903
|
+
max: wo,
|
|
904
|
+
extent: Co,
|
|
905
|
+
mean: vo,
|
|
906
|
+
median: Ro,
|
|
907
|
+
unique: xo,
|
|
908
|
+
uniqueCount: yo,
|
|
909
|
+
count: Fo
|
|
910
|
+
}, _o = {
|
|
912
911
|
getDefaultColumnDef: () => ({
|
|
913
912
|
aggregatedCell: (e) => {
|
|
914
913
|
var o, t;
|
|
@@ -975,13 +974,13 @@ const So = (e, o, t) => t.reduce((n, r) => {
|
|
|
975
974
|
};
|
|
976
975
|
}
|
|
977
976
|
};
|
|
978
|
-
function
|
|
977
|
+
function Io(e, o, t) {
|
|
979
978
|
if (!(o != null && o.length) || !t)
|
|
980
979
|
return e;
|
|
981
980
|
const n = e.filter((i) => !o.includes(i.id));
|
|
982
981
|
return t === "remove" ? n : [...o.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...n];
|
|
983
982
|
}
|
|
984
|
-
const
|
|
983
|
+
const Mo = {
|
|
985
984
|
getInitialState: (e) => ({
|
|
986
985
|
columnOrder: [],
|
|
987
986
|
...e
|
|
@@ -990,12 +989,12 @@ const bo = {
|
|
|
990
989
|
onColumnOrderChange: q("columnOrder", e)
|
|
991
990
|
}),
|
|
992
991
|
createColumn: (e, o) => {
|
|
993
|
-
e.getIndex = x((t) => [
|
|
992
|
+
e.getIndex = x((t) => [Me(o, t)], (t) => t.findIndex((n) => n.id === e.id), y(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
994
993
|
var n;
|
|
995
|
-
return ((n =
|
|
994
|
+
return ((n = Me(o, t)[0]) == null ? void 0 : n.id) === e.id;
|
|
996
995
|
}, e.getIsLastColumn = (t) => {
|
|
997
996
|
var n;
|
|
998
|
-
const r =
|
|
997
|
+
const r = Me(o, t);
|
|
999
998
|
return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
|
|
1000
999
|
};
|
|
1001
1000
|
},
|
|
@@ -1015,7 +1014,7 @@ const bo = {
|
|
|
1015
1014
|
}
|
|
1016
1015
|
i = [...i, ...u];
|
|
1017
1016
|
}
|
|
1018
|
-
return
|
|
1017
|
+
return Io(i, t, n);
|
|
1019
1018
|
}, y(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1020
1019
|
}
|
|
1021
1020
|
}, nt = () => ({
|
|
@@ -1098,7 +1097,7 @@ const bo = {
|
|
|
1098
1097
|
}, y(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1099
1098
|
}
|
|
1100
1099
|
};
|
|
1101
|
-
function
|
|
1100
|
+
function bo(e) {
|
|
1102
1101
|
return e || (typeof document < "u" ? document : null);
|
|
1103
1102
|
}
|
|
1104
1103
|
const Ae = {
|
|
@@ -1112,7 +1111,7 @@ const Ae = {
|
|
|
1112
1111
|
deltaPercentage: null,
|
|
1113
1112
|
isResizingColumn: !1,
|
|
1114
1113
|
columnSizingStart: []
|
|
1115
|
-
}),
|
|
1114
|
+
}), Po = {
|
|
1116
1115
|
getDefaultColumnDef: () => Ae,
|
|
1117
1116
|
getInitialState: (e) => ({
|
|
1118
1117
|
columnSizing: {},
|
|
@@ -1130,7 +1129,7 @@ const Ae = {
|
|
|
1130
1129
|
var t, n, r;
|
|
1131
1130
|
const i = o.getState().columnSizing[e.id];
|
|
1132
1131
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ae.minSize, (n = i ?? e.columnDef.size) != null ? n : Ae.size), (r = e.columnDef.maxSize) != null ? r : Ae.maxSize);
|
|
1133
|
-
}, e.getStart = x((t) => [t,
|
|
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 = () => {
|
|
1134
1133
|
o.setColumnSizing((t) => {
|
|
1135
1134
|
let {
|
|
1136
1135
|
[e.id]: n,
|
|
@@ -1169,14 +1168,14 @@ const Ae = {
|
|
|
1169
1168
|
const s = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l = rt(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, C) => {
|
|
1170
1169
|
typeof C == "number" && (o.setColumnSizingInfo((v) => {
|
|
1171
1170
|
var _, I;
|
|
1172
|
-
const
|
|
1171
|
+
const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, M = (C - ((_ = v == null ? void 0 : v.startOffset) != null ? _ : 0)) * V, b = Math.max(M / ((I = v == null ? void 0 : v.startSize) != null ? I : 0), -0.999999);
|
|
1173
1172
|
return v.columnSizingStart.forEach((P) => {
|
|
1174
1173
|
let [L, $] = P;
|
|
1175
|
-
a[L] = Math.round(Math.max($ + $ *
|
|
1174
|
+
a[L] = Math.round(Math.max($ + $ * b, 0) * 100) / 100;
|
|
1176
1175
|
}), {
|
|
1177
1176
|
...v,
|
|
1178
1177
|
deltaOffset: M,
|
|
1179
|
-
deltaPercentage:
|
|
1178
|
+
deltaPercentage: b
|
|
1180
1179
|
};
|
|
1181
1180
|
}), (o.options.columnResizeMode === "onChange" || h === "end") && o.setColumnSizing((v) => ({
|
|
1182
1181
|
...v,
|
|
@@ -1192,7 +1191,7 @@ const Ae = {
|
|
|
1192
1191
|
deltaPercentage: null,
|
|
1193
1192
|
columnSizingStart: []
|
|
1194
1193
|
}));
|
|
1195
|
-
}, c =
|
|
1194
|
+
}, c = bo(t), p = {
|
|
1196
1195
|
moveHandler: (h) => f(h.clientX),
|
|
1197
1196
|
upHandler: (h) => {
|
|
1198
1197
|
c == null || c.removeEventListener("mousemove", p.moveHandler), c == null || c.removeEventListener("mouseup", p.upHandler), g(h.clientX);
|
|
@@ -1203,7 +1202,7 @@ const Ae = {
|
|
|
1203
1202
|
var C;
|
|
1204
1203
|
c == null || c.removeEventListener("touchmove", m.moveHandler), c == null || c.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
1205
1204
|
}
|
|
1206
|
-
}, S =
|
|
1205
|
+
}, S = $o() ? {
|
|
1207
1206
|
passive: !1
|
|
1208
1207
|
} : !1;
|
|
1209
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) => ({
|
|
@@ -1240,9 +1239,9 @@ const Ae = {
|
|
|
1240
1239
|
};
|
|
1241
1240
|
}
|
|
1242
1241
|
};
|
|
1243
|
-
let
|
|
1244
|
-
function
|
|
1245
|
-
if (typeof
|
|
1242
|
+
let Ne = null;
|
|
1243
|
+
function $o() {
|
|
1244
|
+
if (typeof Ne == "boolean") return Ne;
|
|
1246
1245
|
let e = !1;
|
|
1247
1246
|
try {
|
|
1248
1247
|
const o = {
|
|
@@ -1255,12 +1254,12 @@ function Eo() {
|
|
|
1255
1254
|
} catch {
|
|
1256
1255
|
e = !1;
|
|
1257
1256
|
}
|
|
1258
|
-
return
|
|
1257
|
+
return Ne = e, Ne;
|
|
1259
1258
|
}
|
|
1260
1259
|
function rt(e) {
|
|
1261
1260
|
return e.type === "touchstart";
|
|
1262
1261
|
}
|
|
1263
|
-
const
|
|
1262
|
+
const Eo = {
|
|
1264
1263
|
getInitialState: (e) => ({
|
|
1265
1264
|
columnVisibility: {},
|
|
1266
1265
|
...e
|
|
@@ -1305,17 +1304,17 @@ const Do = {
|
|
|
1305
1304
|
};
|
|
1306
1305
|
}
|
|
1307
1306
|
};
|
|
1308
|
-
function
|
|
1307
|
+
function Me(e, o) {
|
|
1309
1308
|
return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
1310
1309
|
}
|
|
1311
|
-
const
|
|
1310
|
+
const Do = {
|
|
1312
1311
|
createTable: (e) => {
|
|
1313
1312
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
1314
1313
|
if (e._getGlobalFacetedMinMaxValues)
|
|
1315
1314
|
return e._getGlobalFacetedMinMaxValues();
|
|
1316
1315
|
};
|
|
1317
1316
|
}
|
|
1318
|
-
},
|
|
1317
|
+
}, Lo = {
|
|
1319
1318
|
getInitialState: (e) => ({
|
|
1320
1319
|
globalFilter: void 0,
|
|
1321
1320
|
...e
|
|
@@ -1348,7 +1347,7 @@ const Lo = {
|
|
|
1348
1347
|
e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
|
|
1349
1348
|
};
|
|
1350
1349
|
}
|
|
1351
|
-
},
|
|
1350
|
+
}, Oo = {
|
|
1352
1351
|
getInitialState: (e) => ({
|
|
1353
1352
|
expanded: {},
|
|
1354
1353
|
...e
|
|
@@ -1521,7 +1520,7 @@ const Lo = {
|
|
|
1521
1520
|
}, st = () => ({
|
|
1522
1521
|
top: [],
|
|
1523
1522
|
bottom: []
|
|
1524
|
-
}),
|
|
1523
|
+
}), No = {
|
|
1525
1524
|
getInitialState: (e) => ({
|
|
1526
1525
|
rowPinning: st(),
|
|
1527
1526
|
...e
|
|
@@ -1622,7 +1621,7 @@ const Lo = {
|
|
|
1622
1621
|
return o.filter((i) => !r.has(i.id));
|
|
1623
1622
|
}, y(e.options, "debugRows", "getCenterRows"));
|
|
1624
1623
|
}
|
|
1625
|
-
},
|
|
1624
|
+
}, To = {
|
|
1626
1625
|
getInitialState: (e) => ({
|
|
1627
1626
|
rowSelection: {},
|
|
1628
1627
|
...e
|
|
@@ -1778,17 +1777,17 @@ function gt(e, o, t) {
|
|
|
1778
1777
|
}
|
|
1779
1778
|
}), r ? "all" : i ? "some" : !1;
|
|
1780
1779
|
}
|
|
1781
|
-
const ft = /([0-9]+)/gm,
|
|
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))), Bo = (e, o, t) => {
|
|
1782
1781
|
const n = e.getValue(t), r = o.getValue(t);
|
|
1783
1782
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
1784
|
-
},
|
|
1783
|
+
}, ko = (e, o, t) => Rt(e.getValue(t), o.getValue(t));
|
|
1785
1784
|
function Rt(e, o) {
|
|
1786
1785
|
return e === o ? 0 : e > o ? 1 : -1;
|
|
1787
1786
|
}
|
|
1788
1787
|
function pe(e) {
|
|
1789
1788
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1790
1789
|
}
|
|
1791
|
-
function
|
|
1790
|
+
function vn(e, o) {
|
|
1792
1791
|
const t = e.split(ft).filter(Boolean), n = o.split(ft).filter(Boolean);
|
|
1793
1792
|
for (; t.length && n.length; ) {
|
|
1794
1793
|
const r = t.shift(), i = n.shift(), s = parseInt(r, 10), u = parseInt(i, 10), l = [s, u].sort();
|
|
@@ -1808,14 +1807,14 @@ function xn(e, o) {
|
|
|
1808
1807
|
}
|
|
1809
1808
|
return t.length - n.length;
|
|
1810
1809
|
}
|
|
1811
|
-
const
|
|
1812
|
-
alphanumeric:
|
|
1813
|
-
alphanumericCaseSensitive:
|
|
1814
|
-
text:
|
|
1815
|
-
textCaseSensitive:
|
|
1810
|
+
const Fe = {
|
|
1811
|
+
alphanumeric: jo,
|
|
1812
|
+
alphanumericCaseSensitive: Ho,
|
|
1813
|
+
text: Go,
|
|
1814
|
+
textCaseSensitive: zo,
|
|
1816
1815
|
datetime: Bo,
|
|
1817
|
-
basic:
|
|
1818
|
-
},
|
|
1816
|
+
basic: ko
|
|
1817
|
+
}, qo = {
|
|
1819
1818
|
getInitialState: (e) => ({
|
|
1820
1819
|
sorting: [],
|
|
1821
1820
|
...e
|
|
@@ -1835,11 +1834,11 @@ const Ie = {
|
|
|
1835
1834
|
for (const r of t) {
|
|
1836
1835
|
const i = r == null ? void 0 : r.getValue(e.id);
|
|
1837
1836
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
1838
|
-
return
|
|
1837
|
+
return Fe.datetime;
|
|
1839
1838
|
if (typeof i == "string" && (n = !0, i.split(ft).length > 1))
|
|
1840
|
-
return
|
|
1839
|
+
return Fe.alphanumeric;
|
|
1841
1840
|
}
|
|
1842
|
-
return n ?
|
|
1841
|
+
return n ? Fe.text : Fe.basic;
|
|
1843
1842
|
}, e.getAutoSortDir = () => {
|
|
1844
1843
|
const t = o.getFilteredRowModel().flatRows[0];
|
|
1845
1844
|
return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
@@ -1847,7 +1846,7 @@ const Ie = {
|
|
|
1847
1846
|
var t, n;
|
|
1848
1847
|
if (!e)
|
|
1849
1848
|
throw new Error();
|
|
1850
|
-
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 :
|
|
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];
|
|
1851
1850
|
}, e.toggleSorting = (t, n) => {
|
|
1852
1851
|
const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
|
|
1853
1852
|
o.setSorting((s) => {
|
|
@@ -1904,30 +1903,30 @@ const Ie = {
|
|
|
1904
1903
|
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1905
1904
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
1906
1905
|
}
|
|
1907
|
-
},
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1906
|
+
}, Uo = [
|
|
1907
|
+
fo,
|
|
1908
|
+
Eo,
|
|
1909
|
+
Mo,
|
|
1911
1910
|
Vo,
|
|
1911
|
+
po,
|
|
1912
1912
|
mo,
|
|
1913
|
-
|
|
1914
|
-
Lo,
|
|
1913
|
+
Do,
|
|
1915
1914
|
//depends on ColumnFaceting
|
|
1916
|
-
|
|
1915
|
+
Lo,
|
|
1917
1916
|
//depends on ColumnFiltering
|
|
1918
|
-
|
|
1919
|
-
|
|
1917
|
+
qo,
|
|
1918
|
+
_o,
|
|
1920
1919
|
//depends on RowSorting
|
|
1921
|
-
|
|
1920
|
+
Oo,
|
|
1922
1921
|
Ao,
|
|
1922
|
+
No,
|
|
1923
1923
|
To,
|
|
1924
|
-
|
|
1925
|
-
$o
|
|
1924
|
+
Po
|
|
1926
1925
|
];
|
|
1927
|
-
function
|
|
1926
|
+
function Ko(e) {
|
|
1928
1927
|
var o, t;
|
|
1929
1928
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1930
|
-
const n = [...
|
|
1929
|
+
const n = [...Uo, ...(o = e._features) != null ? o : []];
|
|
1931
1930
|
let r = {
|
|
1932
1931
|
_features: n
|
|
1933
1932
|
};
|
|
@@ -2007,7 +2006,7 @@ function Xo(e) {
|
|
|
2007
2006
|
getAllColumns: x(() => [r._getColumnDefs()], (g) => {
|
|
2008
2007
|
const c = function(p, m, S) {
|
|
2009
2008
|
return S === void 0 && (S = 0), p.map((h) => {
|
|
2010
|
-
const C =
|
|
2009
|
+
const C = go(r, h, S, m), v = h;
|
|
2011
2010
|
return C.columns = v.columns ? c(v.columns, C, S + 1) : [], C;
|
|
2012
2011
|
});
|
|
2013
2012
|
};
|
|
@@ -2031,7 +2030,7 @@ function Xo(e) {
|
|
|
2031
2030
|
}
|
|
2032
2031
|
return r;
|
|
2033
2032
|
}
|
|
2034
|
-
function
|
|
2033
|
+
function Xo() {
|
|
2035
2034
|
return (e) => x(() => [e.options.data], (o) => {
|
|
2036
2035
|
const t = {
|
|
2037
2036
|
rows: [],
|
|
@@ -2052,7 +2051,7 @@ function Wo() {
|
|
|
2052
2051
|
return t.rows = n(o), t;
|
|
2053
2052
|
}, y(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
2054
2053
|
}
|
|
2055
|
-
function
|
|
2054
|
+
function Wo(e) {
|
|
2056
2055
|
const o = [], t = (n) => {
|
|
2057
2056
|
var r;
|
|
2058
2057
|
o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
|
|
@@ -2063,10 +2062,10 @@ function Qo(e) {
|
|
|
2063
2062
|
rowsById: e.rowsById
|
|
2064
2063
|
};
|
|
2065
2064
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return t.options.filterFromLeafRows ?
|
|
2065
|
+
function Rn(e, o, t) {
|
|
2066
|
+
return t.options.filterFromLeafRows ? Qo(e, o, t) : Jo(e, o, t);
|
|
2068
2067
|
}
|
|
2069
|
-
function
|
|
2068
|
+
function Qo(e, o, t) {
|
|
2070
2069
|
var n;
|
|
2071
2070
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2072
2071
|
a === void 0 && (a = 0);
|
|
@@ -2095,7 +2094,7 @@ function Jo(e, o, t) {
|
|
|
2095
2094
|
rowsById: i
|
|
2096
2095
|
};
|
|
2097
2096
|
}
|
|
2098
|
-
function
|
|
2097
|
+
function Jo(e, o, t) {
|
|
2099
2098
|
var n;
|
|
2100
2099
|
const r = [], i = {}, s = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(l, a) {
|
|
2101
2100
|
a === void 0 && (a = 0);
|
|
@@ -2119,7 +2118,7 @@ function Yo(e, o, t) {
|
|
|
2119
2118
|
rowsById: i
|
|
2120
2119
|
};
|
|
2121
2120
|
}
|
|
2122
|
-
function
|
|
2121
|
+
function Yo() {
|
|
2123
2122
|
return (e, o) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
|
|
2124
2123
|
if (!t.rows.length || !(n != null && n.length) && !r)
|
|
2125
2124
|
return t;
|
|
@@ -2129,10 +2128,10 @@ function Zo() {
|
|
|
2129
2128
|
return !1;
|
|
2130
2129
|
return !0;
|
|
2131
2130
|
};
|
|
2132
|
-
return
|
|
2131
|
+
return Rn(t.rows, s, e);
|
|
2133
2132
|
}, y(e.options, "debugTable", "getFacetedRowModel"));
|
|
2134
2133
|
}
|
|
2135
|
-
function
|
|
2134
|
+
function Zo() {
|
|
2136
2135
|
return (e, o) => x(() => {
|
|
2137
2136
|
var t;
|
|
2138
2137
|
return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
|
|
@@ -2153,7 +2152,7 @@ function er() {
|
|
|
2153
2152
|
return n;
|
|
2154
2153
|
}, y(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
|
|
2155
2154
|
}
|
|
2156
|
-
function
|
|
2155
|
+
function er() {
|
|
2157
2156
|
return (e) => x(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
|
|
2158
2157
|
if (!o.rows.length || !(t != null && t.length) && !n) {
|
|
2159
2158
|
for (let g = 0; g < o.flatRows.length; g++)
|
|
@@ -2217,10 +2216,10 @@ function tr() {
|
|
|
2217
2216
|
return !1;
|
|
2218
2217
|
return !0;
|
|
2219
2218
|
};
|
|
2220
|
-
return
|
|
2219
|
+
return Rn(o.rows, f, e);
|
|
2221
2220
|
}, y(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
2222
2221
|
}
|
|
2223
|
-
function
|
|
2222
|
+
function tr(e) {
|
|
2224
2223
|
return (o) => x(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
|
|
2225
2224
|
if (!n.rows.length)
|
|
2226
2225
|
return n;
|
|
@@ -2240,7 +2239,7 @@ function nr(e) {
|
|
|
2240
2239
|
rows: s,
|
|
2241
2240
|
flatRows: u,
|
|
2242
2241
|
rowsById: l
|
|
2243
|
-
} : f =
|
|
2242
|
+
} : f = Wo({
|
|
2244
2243
|
rows: s,
|
|
2245
2244
|
flatRows: u,
|
|
2246
2245
|
rowsById: l
|
|
@@ -2251,7 +2250,7 @@ function nr(e) {
|
|
|
2251
2250
|
return f.rows.forEach(g), f;
|
|
2252
2251
|
}, y(o.options, "debugTable", "getPaginationRowModel"));
|
|
2253
2252
|
}
|
|
2254
|
-
function
|
|
2253
|
+
function nr() {
|
|
2255
2254
|
return (e) => x(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
|
|
2256
2255
|
if (!t.rows.length || !(o != null && o.length))
|
|
2257
2256
|
return t;
|
|
@@ -2277,11 +2276,11 @@ function or() {
|
|
|
2277
2276
|
const p = i[c], m = s[p.id], S = m.sortUndefined, h = (g = p == null ? void 0 : p.desc) != null ? g : !1;
|
|
2278
2277
|
let C = 0;
|
|
2279
2278
|
if (S) {
|
|
2280
|
-
const v = d.getValue(p.id), _ = f.getValue(p.id), I = v === void 0,
|
|
2281
|
-
if (I ||
|
|
2279
|
+
const v = d.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, V = _ === void 0;
|
|
2280
|
+
if (I || V) {
|
|
2282
2281
|
if (S === "first") return I ? -1 : 1;
|
|
2283
2282
|
if (S === "last") return I ? 1 : -1;
|
|
2284
|
-
C = I &&
|
|
2283
|
+
C = I && V ? 0 : I ? S : -S;
|
|
2285
2284
|
}
|
|
2286
2285
|
}
|
|
2287
2286
|
if (C === 0 && (C = m.sortingFn(d, f, p.id)), C !== 0)
|
|
@@ -2311,21 +2310,21 @@ function or() {
|
|
|
2311
2310
|
* @license MIT
|
|
2312
2311
|
*/
|
|
2313
2312
|
function Ge(e, o) {
|
|
2314
|
-
return e ?
|
|
2313
|
+
return e ? or(e) ? /* @__PURE__ */ ce.createElement(e, o) : e : null;
|
|
2315
2314
|
}
|
|
2316
|
-
function
|
|
2317
|
-
return
|
|
2315
|
+
function or(e) {
|
|
2316
|
+
return rr(e) || typeof e == "function" || ir(e);
|
|
2318
2317
|
}
|
|
2319
|
-
function
|
|
2318
|
+
function rr(e) {
|
|
2320
2319
|
return typeof e == "function" && (() => {
|
|
2321
2320
|
const o = Object.getPrototypeOf(e);
|
|
2322
2321
|
return o.prototype && o.prototype.isReactComponent;
|
|
2323
2322
|
})();
|
|
2324
2323
|
}
|
|
2325
|
-
function
|
|
2324
|
+
function ir(e) {
|
|
2326
2325
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
2327
2326
|
}
|
|
2328
|
-
function
|
|
2327
|
+
function sr(e) {
|
|
2329
2328
|
const o = {
|
|
2330
2329
|
state: {},
|
|
2331
2330
|
// Dummy state
|
|
@@ -2335,7 +2334,7 @@ function lr(e) {
|
|
|
2335
2334
|
renderFallbackValue: null,
|
|
2336
2335
|
...e
|
|
2337
2336
|
}, [t] = ce.useState(() => ({
|
|
2338
|
-
current:
|
|
2337
|
+
current: Ko(o)
|
|
2339
2338
|
})), [n, r] = ce.useState(() => t.current.initialState);
|
|
2340
2339
|
return t.current.setOptions((i) => ({
|
|
2341
2340
|
...i,
|
|
@@ -2351,7 +2350,7 @@ function lr(e) {
|
|
|
2351
2350
|
}
|
|
2352
2351
|
})), t.current;
|
|
2353
2352
|
}
|
|
2354
|
-
const
|
|
2353
|
+
const lr = ({
|
|
2355
2354
|
page: e = 1,
|
|
2356
2355
|
between: o = 3,
|
|
2357
2356
|
totalPages: t,
|
|
@@ -2375,7 +2374,7 @@ const ur = ({
|
|
|
2375
2374
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", s == null ? void 0 : s.button),
|
|
2376
2375
|
disabled: e <= 1,
|
|
2377
2376
|
onClick: () => e > 1 && n(e - 2),
|
|
2378
|
-
children: /* @__PURE__ */ w.jsx(
|
|
2377
|
+
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight", className: "rotate-180" })
|
|
2379
2378
|
}
|
|
2380
2379
|
),
|
|
2381
2380
|
t > l && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ w.jsx(
|
|
@@ -2446,11 +2445,11 @@ const ur = ({
|
|
|
2446
2445
|
className: F("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", s == null ? void 0 : s.button),
|
|
2447
2446
|
disabled: e >= t,
|
|
2448
2447
|
onClick: () => e < t && n(e),
|
|
2449
|
-
children: /* @__PURE__ */ w.jsx(
|
|
2448
|
+
children: /* @__PURE__ */ w.jsx(be, { name: "arrows/arrowRight" })
|
|
2450
2449
|
}
|
|
2451
2450
|
)
|
|
2452
2451
|
] });
|
|
2453
|
-
},
|
|
2452
|
+
}, ur = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
|
|
2454
2453
|
const s = t * e, u = s > r ? r : s;
|
|
2455
2454
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
|
|
2456
2455
|
/* @__PURE__ */ w.jsxs("span", { className: F("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
|
|
@@ -2460,7 +2459,7 @@ const ur = ({
|
|
|
2460
2459
|
r
|
|
2461
2460
|
] }),
|
|
2462
2461
|
/* @__PURE__ */ w.jsx(
|
|
2463
|
-
|
|
2462
|
+
lr,
|
|
2464
2463
|
{
|
|
2465
2464
|
totalPages: o,
|
|
2466
2465
|
changePage: (l) => n(l),
|
|
@@ -2470,7 +2469,7 @@ const ur = ({
|
|
|
2470
2469
|
}
|
|
2471
2470
|
)
|
|
2472
2471
|
] });
|
|
2473
|
-
},
|
|
2472
|
+
}, ar = ({
|
|
2474
2473
|
mode: e,
|
|
2475
2474
|
enableHeaders: o,
|
|
2476
2475
|
table: t,
|
|
@@ -2487,9 +2486,9 @@ const ur = ({
|
|
|
2487
2486
|
classes: n == null ? void 0 : n.pagination
|
|
2488
2487
|
};
|
|
2489
2488
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
|
|
2490
|
-
/* @__PURE__ */ w.jsxs(
|
|
2491
|
-
o && /* @__PURE__ */ w.jsx(
|
|
2492
|
-
|
|
2489
|
+
/* @__PURE__ */ w.jsxs(un, { className: F("w-full", n == null ? void 0 : n.table), children: [
|
|
2490
|
+
o && /* @__PURE__ */ w.jsx(an, { className: "px-2", children: t.getHeaderGroups().map((l) => /* @__PURE__ */ w.jsx(
|
|
2491
|
+
Te,
|
|
2493
2492
|
{
|
|
2494
2493
|
className: F(
|
|
2495
2494
|
"w-full",
|
|
@@ -2499,7 +2498,7 @@ const ur = ({
|
|
|
2499
2498
|
n == null ? void 0 : n.tableHeader
|
|
2500
2499
|
),
|
|
2501
2500
|
children: l.headers.map((a) => /* @__PURE__ */ w.jsx(
|
|
2502
|
-
|
|
2501
|
+
dn,
|
|
2503
2502
|
{
|
|
2504
2503
|
className: F(
|
|
2505
2504
|
"py-3",
|
|
@@ -2515,8 +2514,8 @@ const ur = ({
|
|
|
2515
2514
|
},
|
|
2516
2515
|
l.id
|
|
2517
2516
|
)) }),
|
|
2518
|
-
/* @__PURE__ */ w.jsx(
|
|
2519
|
-
|
|
2517
|
+
/* @__PURE__ */ w.jsx(cn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((l, a) => /* @__PURE__ */ w.jsx(
|
|
2518
|
+
Te,
|
|
2520
2519
|
{
|
|
2521
2520
|
className: F(
|
|
2522
2521
|
"w-full",
|
|
@@ -2543,11 +2542,11 @@ const ur = ({
|
|
|
2543
2542
|
))
|
|
2544
2543
|
},
|
|
2545
2544
|
l.id
|
|
2546
|
-
)) : /* @__PURE__ */ w.jsx(
|
|
2545
|
+
)) : /* @__PURE__ */ w.jsx(Te, { children: /* @__PURE__ */ w.jsx(ut, { className: "py-4 text-center", colSpan: t.getAllColumns().length, children: i }) }) })
|
|
2547
2546
|
] }),
|
|
2548
|
-
s ? typeof r == "function" ? r(u) : /* @__PURE__ */ w.jsx(
|
|
2547
|
+
s ? typeof r == "function" ? r(u) : /* @__PURE__ */ w.jsx(ur, { ...u }) : null
|
|
2549
2548
|
] });
|
|
2550
|
-
},
|
|
2549
|
+
}, cr = ({
|
|
2551
2550
|
mode: e,
|
|
2552
2551
|
enableHeaders: o,
|
|
2553
2552
|
table: t,
|
|
@@ -2586,7 +2585,7 @@ const ur = ({
|
|
|
2586
2585
|
})
|
|
2587
2586
|
},
|
|
2588
2587
|
i.id
|
|
2589
|
-
)) : /* @__PURE__ */ w.jsx("div", { children: r }) }),
|
|
2588
|
+
)) : /* @__PURE__ */ w.jsx("div", { children: r }) }), Si = ({
|
|
2590
2589
|
columns: e,
|
|
2591
2590
|
data: o,
|
|
2592
2591
|
enableHeaders: t = !0,
|
|
@@ -2599,7 +2598,7 @@ const ur = ({
|
|
|
2599
2598
|
const [l, a] = oe([]), [d, f] = oe([]), [g, c] = oe({
|
|
2600
2599
|
pageIndex: 0,
|
|
2601
2600
|
pageSize: u
|
|
2602
|
-
}), p =
|
|
2601
|
+
}), p = sr({
|
|
2603
2602
|
data: o,
|
|
2604
2603
|
columns: e,
|
|
2605
2604
|
state: { columnFilters: l, sorting: d, pagination: g },
|
|
@@ -2607,18 +2606,18 @@ const ur = ({
|
|
|
2607
2606
|
onSortingChange: f,
|
|
2608
2607
|
onColumnFiltersChange: a,
|
|
2609
2608
|
onPaginationChange: c,
|
|
2610
|
-
getCoreRowModel:
|
|
2611
|
-
getFilteredRowModel:
|
|
2612
|
-
getSortedRowModel:
|
|
2613
|
-
getFacetedRowModel:
|
|
2614
|
-
getFacetedUniqueValues:
|
|
2615
|
-
getPaginationRowModel:
|
|
2609
|
+
getCoreRowModel: Xo(),
|
|
2610
|
+
getFilteredRowModel: er(),
|
|
2611
|
+
getSortedRowModel: nr(),
|
|
2612
|
+
getFacetedRowModel: Yo(),
|
|
2613
|
+
getFacetedUniqueValues: Zo(),
|
|
2614
|
+
getPaginationRowModel: tr()
|
|
2616
2615
|
}), { isMobile: m } = qe();
|
|
2617
|
-
return m ? /* @__PURE__ */ w.jsx(
|
|
2616
|
+
return m ? /* @__PURE__ */ w.jsx(cr, { table: p, enableHeaders: t, empty: s, mode: n, classes: r }) : /* @__PURE__ */ w.jsx(ar, { table: p, enableHeaders: t, empty: s, mode: n, pagination: i, classes: r });
|
|
2618
2617
|
};
|
|
2619
|
-
class
|
|
2618
|
+
class wi {
|
|
2620
2619
|
static getColumnHelper() {
|
|
2621
|
-
return
|
|
2620
|
+
return lo();
|
|
2622
2621
|
}
|
|
2623
2622
|
static getColumns(o, t) {
|
|
2624
2623
|
const {
|
|
@@ -2632,7 +2631,7 @@ class vi {
|
|
|
2632
2631
|
header: (d) => {
|
|
2633
2632
|
const { column: f } = d, g = u ? u[a] : null;
|
|
2634
2633
|
return /* @__PURE__ */ w.jsx(
|
|
2635
|
-
|
|
2634
|
+
so,
|
|
2636
2635
|
{
|
|
2637
2636
|
isSorted: f.getIsSorted() === "desc",
|
|
2638
2637
|
nextSortingOrder: f.getNextSortingOrder(),
|
|
@@ -2646,12 +2645,12 @@ class vi {
|
|
|
2646
2645
|
const f = s ? s[a] : null;
|
|
2647
2646
|
return f ? f(d) : d.getValue();
|
|
2648
2647
|
},
|
|
2649
|
-
enableColumnFilter:
|
|
2650
|
-
enableSorting:
|
|
2648
|
+
enableColumnFilter: Nt.isBoolean(r) ? r : r.includes(a),
|
|
2649
|
+
enableSorting: Nt.isBoolean(i) ? i : i.includes(a)
|
|
2651
2650
|
}));
|
|
2652
2651
|
}
|
|
2653
2652
|
}
|
|
2654
|
-
const
|
|
2653
|
+
const dr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
2655
2654
|
const [t, n] = oe(!0), [r, i] = oe(!0), s = Se(
|
|
2656
2655
|
(l) => {
|
|
2657
2656
|
if (e) {
|
|
@@ -2677,7 +2676,7 @@ const gr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2677
2676
|
nextBtnDisabled: r,
|
|
2678
2677
|
onClickNavigationButton: s
|
|
2679
2678
|
};
|
|
2680
|
-
},
|
|
2679
|
+
}, gr = ({ emblaApi: e, navigationHandler: o, setVisibleIndex: t }) => {
|
|
2681
2680
|
const [n, r] = oe([]), i = Se(
|
|
2682
2681
|
(l) => {
|
|
2683
2682
|
e && (e.scrollTo(l), o && o(e));
|
|
@@ -2694,7 +2693,7 @@ const gr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2694
2693
|
scrollSnaps: n,
|
|
2695
2694
|
onClickDot: i
|
|
2696
2695
|
};
|
|
2697
|
-
},
|
|
2696
|
+
}, fr = {
|
|
2698
2697
|
active: !0,
|
|
2699
2698
|
breakpoints: {},
|
|
2700
2699
|
delay: 4e3,
|
|
@@ -2706,11 +2705,11 @@ const gr = ({ emblaApi: e, navigationHandler: o }) => {
|
|
|
2706
2705
|
stopOnLastSnap: !1,
|
|
2707
2706
|
rootNode: null
|
|
2708
2707
|
};
|
|
2709
|
-
function
|
|
2708
|
+
function pr(e, o) {
|
|
2710
2709
|
const t = e.scrollSnapList();
|
|
2711
2710
|
return typeof o == "number" ? t.map(() => o) : o(t, e);
|
|
2712
2711
|
}
|
|
2713
|
-
function
|
|
2712
|
+
function mr(e, o) {
|
|
2714
2713
|
const t = e.rootNode();
|
|
2715
2714
|
return o && o(t) || t;
|
|
2716
2715
|
}
|
|
@@ -2721,14 +2720,14 @@ function xt(e = {}) {
|
|
|
2721
2720
|
const {
|
|
2722
2721
|
mergeOptions: U,
|
|
2723
2722
|
optionsAtMedia: K
|
|
2724
|
-
} = j, J = U(
|
|
2723
|
+
} = j, J = U(fr, xt.globalOptions), Y = U(J, e);
|
|
2725
2724
|
if (o = K(Y), t.scrollSnapList().length <= 1) return;
|
|
2726
|
-
d = o.jump, n = !1, r =
|
|
2725
|
+
d = o.jump, n = !1, r = pr(t, o.delay);
|
|
2727
2726
|
const {
|
|
2728
2727
|
eventStore: te,
|
|
2729
2728
|
ownerDocument: X
|
|
2730
|
-
} = t.internalEngine(), re = !!t.internalEngine().options.watchDrag, ie =
|
|
2731
|
-
te.add(X, "visibilitychange", h), re && t.on("pointerDown", v), re && !o.stopOnInteraction && t.on("pointerUp", _), o.stopOnMouseEnter && te.add(ie, "mouseenter", I), o.stopOnMouseEnter && !o.stopOnInteraction && te.add(ie, "mouseleave",
|
|
2729
|
+
} = t.internalEngine(), re = !!t.internalEngine().options.watchDrag, ie = mr(t, o.rootNode);
|
|
2730
|
+
te.add(X, "visibilitychange", h), re && t.on("pointerDown", v), re && !o.stopOnInteraction && t.on("pointerUp", _), o.stopOnMouseEnter && te.add(ie, "mouseenter", I), o.stopOnMouseEnter && !o.stopOnInteraction && te.add(ie, "mouseleave", V), o.stopOnFocusIn && t.on("slideFocusStart", S), o.stopOnFocusIn && !o.stopOnInteraction && te.add(t.containerNode(), "focusout", m), o.playOnInit && m();
|
|
2732
2731
|
}
|
|
2733
2732
|
function g() {
|
|
2734
2733
|
t.off("pointerDown", v).off("pointerUp", _).off("slideFocusStart", S), S(), n = !0, u = !1;
|
|
@@ -2777,13 +2776,13 @@ function xt(e = {}) {
|
|
|
2777
2776
|
function I() {
|
|
2778
2777
|
l = !0, S();
|
|
2779
2778
|
}
|
|
2780
|
-
function
|
|
2779
|
+
function V() {
|
|
2781
2780
|
l = !1, m();
|
|
2782
2781
|
}
|
|
2783
2782
|
function M(E) {
|
|
2784
2783
|
typeof E < "u" && (d = E), m();
|
|
2785
2784
|
}
|
|
2786
|
-
function
|
|
2785
|
+
function b() {
|
|
2787
2786
|
u && S();
|
|
2788
2787
|
}
|
|
2789
2788
|
function P() {
|
|
@@ -2799,7 +2798,7 @@ function xt(e = {}) {
|
|
|
2799
2798
|
if (t.canScrollNext() ? t.scrollNext(d) : t.scrollTo(0, d), t.emit("autoplay:select"), K) return S();
|
|
2800
2799
|
m();
|
|
2801
2800
|
}
|
|
2802
|
-
function
|
|
2801
|
+
function N() {
|
|
2803
2802
|
if (!i) return null;
|
|
2804
2803
|
const E = r[t.selectedScrollSnap()], j = (/* @__PURE__ */ new Date()).getTime() - i;
|
|
2805
2804
|
return E - j;
|
|
@@ -2810,20 +2809,20 @@ function xt(e = {}) {
|
|
|
2810
2809
|
init: f,
|
|
2811
2810
|
destroy: g,
|
|
2812
2811
|
play: M,
|
|
2813
|
-
stop:
|
|
2812
|
+
stop: b,
|
|
2814
2813
|
reset: P,
|
|
2815
2814
|
isPlaying: L,
|
|
2816
|
-
timeUntilNext:
|
|
2815
|
+
timeUntilNext: N
|
|
2817
2816
|
};
|
|
2818
2817
|
}
|
|
2819
2818
|
xt.globalOptions = void 0;
|
|
2820
|
-
function
|
|
2819
|
+
function hr(e) {
|
|
2821
2820
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2822
2821
|
}
|
|
2823
2822
|
function Gt(e) {
|
|
2824
|
-
return
|
|
2823
|
+
return hr(e) || Array.isArray(e);
|
|
2825
2824
|
}
|
|
2826
|
-
function
|
|
2825
|
+
function Sr() {
|
|
2827
2826
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2828
2827
|
}
|
|
2829
2828
|
function yt(e, o) {
|
|
@@ -2838,7 +2837,7 @@ function yt(e, o) {
|
|
|
2838
2837
|
function zt(e) {
|
|
2839
2838
|
return e.concat().sort((o, t) => o.name > t.name ? 1 : -1).map((o) => o.options);
|
|
2840
2839
|
}
|
|
2841
|
-
function
|
|
2840
|
+
function wr(e, o) {
|
|
2842
2841
|
if (e.length !== o.length) return !1;
|
|
2843
2842
|
const t = zt(e), n = zt(o);
|
|
2844
2843
|
return t.every((r, i) => {
|
|
@@ -2855,54 +2854,54 @@ function pt(e) {
|
|
|
2855
2854
|
function Xe(e) {
|
|
2856
2855
|
return typeof e == "boolean";
|
|
2857
2856
|
}
|
|
2858
|
-
function
|
|
2857
|
+
function Bt(e) {
|
|
2859
2858
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2860
2859
|
}
|
|
2861
|
-
function
|
|
2860
|
+
function A(e) {
|
|
2862
2861
|
return Math.abs(e);
|
|
2863
2862
|
}
|
|
2864
2863
|
function _t(e) {
|
|
2865
2864
|
return Math.sign(e);
|
|
2866
2865
|
}
|
|
2867
|
-
function
|
|
2868
|
-
return
|
|
2866
|
+
function Ve(e, o) {
|
|
2867
|
+
return A(e - o);
|
|
2869
2868
|
}
|
|
2870
|
-
function
|
|
2871
|
-
if (e === 0 || o === 0 ||
|
|
2872
|
-
const t =
|
|
2873
|
-
return
|
|
2869
|
+
function Cr(e, o) {
|
|
2870
|
+
if (e === 0 || o === 0 || A(e) <= A(o)) return 0;
|
|
2871
|
+
const t = Ve(A(e), A(o));
|
|
2872
|
+
return A(t / e);
|
|
2874
2873
|
}
|
|
2875
|
-
function
|
|
2874
|
+
function vr(e) {
|
|
2876
2875
|
return Math.round(e * 100) / 100;
|
|
2877
2876
|
}
|
|
2878
|
-
function
|
|
2879
|
-
return
|
|
2877
|
+
function Pe(e) {
|
|
2878
|
+
return $e(e).map(Number);
|
|
2880
2879
|
}
|
|
2881
2880
|
function ee(e) {
|
|
2882
|
-
return e[
|
|
2881
|
+
return e[De(e)];
|
|
2883
2882
|
}
|
|
2884
|
-
function
|
|
2883
|
+
function De(e) {
|
|
2885
2884
|
return Math.max(0, e.length - 1);
|
|
2886
2885
|
}
|
|
2887
2886
|
function It(e, o) {
|
|
2888
|
-
return o ===
|
|
2887
|
+
return o === De(e);
|
|
2889
2888
|
}
|
|
2890
|
-
function
|
|
2889
|
+
function kt(e, o = 0) {
|
|
2891
2890
|
return Array.from(Array(e), (t, n) => o + n);
|
|
2892
2891
|
}
|
|
2893
|
-
function
|
|
2892
|
+
function $e(e) {
|
|
2894
2893
|
return Object.keys(e);
|
|
2895
2894
|
}
|
|
2896
|
-
function
|
|
2897
|
-
return [e, o].reduce((t, n) => (
|
|
2898
|
-
const i = t[r], s = n[r], u =
|
|
2899
|
-
t[r] = u ?
|
|
2895
|
+
function xn(e, o) {
|
|
2896
|
+
return [e, o].reduce((t, n) => ($e(n).forEach((r) => {
|
|
2897
|
+
const i = t[r], s = n[r], u = Bt(i) && Bt(s);
|
|
2898
|
+
t[r] = u ? xn(i, s) : s;
|
|
2900
2899
|
}), t), {});
|
|
2901
2900
|
}
|
|
2902
2901
|
function mt(e, o) {
|
|
2903
2902
|
return typeof o.MouseEvent < "u" && e instanceof o.MouseEvent;
|
|
2904
2903
|
}
|
|
2905
|
-
function
|
|
2904
|
+
function Rr(e, o) {
|
|
2906
2905
|
const t = {
|
|
2907
2906
|
start: n,
|
|
2908
2907
|
center: r,
|
|
@@ -2924,7 +2923,7 @@ function xr(e, o) {
|
|
|
2924
2923
|
measure: s
|
|
2925
2924
|
};
|
|
2926
2925
|
}
|
|
2927
|
-
function
|
|
2926
|
+
function Ee() {
|
|
2928
2927
|
let e = [];
|
|
2929
2928
|
function o(r, i, s, u = {
|
|
2930
2929
|
passive: !0
|
|
@@ -2947,8 +2946,8 @@ function De() {
|
|
|
2947
2946
|
};
|
|
2948
2947
|
return n;
|
|
2949
2948
|
}
|
|
2950
|
-
function
|
|
2951
|
-
const r =
|
|
2949
|
+
function xr(e, o, t, n) {
|
|
2950
|
+
const r = Ee(), i = 1e3 / 60;
|
|
2952
2951
|
let s = null, u = 0, l = 0;
|
|
2953
2952
|
function a() {
|
|
2954
2953
|
r.add(e, "visibilitychange", () => {
|
|
@@ -2985,7 +2984,7 @@ function yr(e, o, t, n) {
|
|
|
2985
2984
|
render: n
|
|
2986
2985
|
};
|
|
2987
2986
|
}
|
|
2988
|
-
function
|
|
2987
|
+
function yr(e, o) {
|
|
2989
2988
|
const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", s = !n && t ? -1 : 1, u = d(), l = f();
|
|
2990
2989
|
function a(p) {
|
|
2991
2990
|
const {
|
|
@@ -3013,7 +3012,7 @@ function Fr(e, o) {
|
|
|
3013
3012
|
};
|
|
3014
3013
|
}
|
|
3015
3014
|
function we(e = 0, o = 0) {
|
|
3016
|
-
const t =
|
|
3015
|
+
const t = A(e - o);
|
|
3017
3016
|
function n(a) {
|
|
3018
3017
|
return a < e;
|
|
3019
3018
|
}
|
|
@@ -3040,13 +3039,13 @@ function we(e = 0, o = 0) {
|
|
|
3040
3039
|
removeOffset: u
|
|
3041
3040
|
};
|
|
3042
3041
|
}
|
|
3043
|
-
function
|
|
3042
|
+
function yn(e, o, t) {
|
|
3044
3043
|
const {
|
|
3045
3044
|
constrain: n
|
|
3046
3045
|
} = we(0, e), r = e + 1;
|
|
3047
3046
|
let i = s(o);
|
|
3048
3047
|
function s(g) {
|
|
3049
|
-
return t ?
|
|
3048
|
+
return t ? A((r + g) % r) : n(g);
|
|
3050
3049
|
}
|
|
3051
3050
|
function u() {
|
|
3052
3051
|
return i;
|
|
@@ -3058,7 +3057,7 @@ function _n(e, o, t) {
|
|
|
3058
3057
|
return d().set(u() + g);
|
|
3059
3058
|
}
|
|
3060
3059
|
function d() {
|
|
3061
|
-
return
|
|
3060
|
+
return yn(e, u(), t);
|
|
3062
3061
|
}
|
|
3063
3062
|
const f = {
|
|
3064
3063
|
get: u,
|
|
@@ -3068,36 +3067,36 @@ function _n(e, o, t) {
|
|
|
3068
3067
|
};
|
|
3069
3068
|
return f;
|
|
3070
3069
|
}
|
|
3071
|
-
function
|
|
3070
|
+
function Fr(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
3072
3071
|
const {
|
|
3073
3072
|
cross: v,
|
|
3074
3073
|
direction: _
|
|
3075
|
-
} = e, I = ["INPUT", "SELECT", "TEXTAREA"],
|
|
3074
|
+
} = e, I = ["INPUT", "SELECT", "TEXTAREA"], V = {
|
|
3076
3075
|
passive: !1
|
|
3077
|
-
}, M =
|
|
3076
|
+
}, M = Ee(), b = Ee(), P = we(50, 225).constrain(c.measure(20)), L = {
|
|
3078
3077
|
mouse: 300,
|
|
3079
3078
|
touch: 400
|
|
3080
3079
|
}, $ = {
|
|
3081
3080
|
mouse: 500,
|
|
3082
3081
|
touch: 600
|
|
3083
|
-
},
|
|
3084
|
-
let
|
|
3082
|
+
}, N = p ? 43 : 25;
|
|
3083
|
+
let B = !1, E = 0, j = 0, U = !1, K = !1, J = !1, Y = !1;
|
|
3085
3084
|
function te(R) {
|
|
3086
3085
|
if (!C) return;
|
|
3087
3086
|
function D(z) {
|
|
3088
|
-
(Xe(C) || C(R, z)) &&
|
|
3087
|
+
(Xe(C) || C(R, z)) && xe(z);
|
|
3089
3088
|
}
|
|
3090
3089
|
const T = o;
|
|
3091
|
-
M.add(T, "dragstart", (z) => z.preventDefault(),
|
|
3092
|
-
},
|
|
3090
|
+
M.add(T, "dragstart", (z) => z.preventDefault(), V).add(T, "touchmove", () => {
|
|
3091
|
+
}, V).add(T, "touchend", () => {
|
|
3093
3092
|
}).add(T, "touchstart", D).add(T, "mousedown", D).add(T, "touchcancel", G).add(T, "contextmenu", G).add(T, "click", le, !0);
|
|
3094
3093
|
}
|
|
3095
3094
|
function X() {
|
|
3096
|
-
M.clear(),
|
|
3095
|
+
M.clear(), b.clear();
|
|
3097
3096
|
}
|
|
3098
3097
|
function re() {
|
|
3099
3098
|
const R = Y ? t : o;
|
|
3100
|
-
|
|
3099
|
+
b.add(R, "touchmove", k, V).add(R, "touchend", G).add(R, "mousemove", k, V).add(R, "mouseup", G);
|
|
3101
3100
|
}
|
|
3102
3101
|
function ie(R) {
|
|
3103
3102
|
const D = R.nodeName || "";
|
|
@@ -3106,25 +3105,25 @@ function _r(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
|
3106
3105
|
function se() {
|
|
3107
3106
|
return (p ? $ : L)[Y ? "mouse" : "touch"];
|
|
3108
3107
|
}
|
|
3109
|
-
function
|
|
3108
|
+
function Re(R, D) {
|
|
3110
3109
|
const T = f.add(_t(R) * -1), z = d.byDistance(R, !p).distance;
|
|
3111
|
-
return p ||
|
|
3110
|
+
return p || A(R) < P ? z : S && D ? z * 0.5 : d.byIndex(T.get(), 0).distance;
|
|
3112
3111
|
}
|
|
3113
|
-
function
|
|
3112
|
+
function xe(R) {
|
|
3114
3113
|
const D = mt(R, n);
|
|
3115
|
-
Y = D, J = p && D && !R.buttons &&
|
|
3114
|
+
Y = D, J = p && D && !R.buttons && B, B = Ve(r.get(), s.get()) >= 2, !(D && R.button !== 0) && (ie(R.target) || (U = !0, i.pointerDown(R), a.useFriction(0).useDuration(0), r.set(s), re(), E = i.readPoint(R), j = i.readPoint(R, v), g.emit("pointerDown")));
|
|
3116
3115
|
}
|
|
3117
|
-
function
|
|
3116
|
+
function k(R) {
|
|
3118
3117
|
if (!mt(R, n) && R.touches.length >= 2) return G(R);
|
|
3119
|
-
const T = i.readPoint(R), z = i.readPoint(R, v), ne =
|
|
3118
|
+
const T = i.readPoint(R), z = i.readPoint(R, v), ne = Ve(T, E), ue = Ve(z, j);
|
|
3120
3119
|
if (!K && !Y && (!R.cancelable || (K = ne > ue, !K)))
|
|
3121
3120
|
return G(R);
|
|
3122
3121
|
const me = i.pointerMove(R);
|
|
3123
3122
|
ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(me)), R.preventDefault();
|
|
3124
3123
|
}
|
|
3125
3124
|
function G(R) {
|
|
3126
|
-
const T = d.byDistance(0, !1).index !== f.get(), z = i.pointerUp(R) * se(), ne =
|
|
3127
|
-
K = !1, U = !1,
|
|
3125
|
+
const T = d.byDistance(0, !1).index !== f.get(), z = i.pointerUp(R) * se(), ne = Re(_(z), T), ue = Cr(z, ne), me = N - 10 * ue, de = h + ue / 50;
|
|
3126
|
+
K = !1, U = !1, b.clear(), a.useDuration(me).useFriction(de), l.distance(ne, !p), Y = !1, g.emit("pointerUp");
|
|
3128
3127
|
}
|
|
3129
3128
|
function le(R) {
|
|
3130
3129
|
J && (R.stopPropagation(), R.preventDefault(), J = !1);
|
|
@@ -3138,7 +3137,7 @@ function _r(e, o, t, n, r, i, s, u, l, a, d, f, g, c, p, m, S, h, C) {
|
|
|
3138
3137
|
pointerDown: W
|
|
3139
3138
|
};
|
|
3140
3139
|
}
|
|
3141
|
-
function
|
|
3140
|
+
function _r(e, o) {
|
|
3142
3141
|
let n, r;
|
|
3143
3142
|
function i(f) {
|
|
3144
3143
|
return f.timeStamp;
|
|
@@ -3157,7 +3156,7 @@ function Ir(e, o) {
|
|
|
3157
3156
|
function a(f) {
|
|
3158
3157
|
if (!n || !r) return 0;
|
|
3159
3158
|
const g = s(r) - s(n), c = i(f) - i(n), p = i(f) - i(r) > 170, m = g / c;
|
|
3160
|
-
return c && !p &&
|
|
3159
|
+
return c && !p && A(m) > 0.1 ? m : 0;
|
|
3161
3160
|
}
|
|
3162
3161
|
return {
|
|
3163
3162
|
pointerDown: u,
|
|
@@ -3166,7 +3165,7 @@ function Ir(e, o) {
|
|
|
3166
3165
|
readPoint: s
|
|
3167
3166
|
};
|
|
3168
3167
|
}
|
|
3169
|
-
function
|
|
3168
|
+
function Ir() {
|
|
3170
3169
|
function e(t) {
|
|
3171
3170
|
const {
|
|
3172
3171
|
offsetTop: n,
|
|
@@ -3187,7 +3186,7 @@ function Mr() {
|
|
|
3187
3186
|
measure: e
|
|
3188
3187
|
};
|
|
3189
3188
|
}
|
|
3190
|
-
function
|
|
3189
|
+
function Mr(e) {
|
|
3191
3190
|
function o(n) {
|
|
3192
3191
|
return e * (n / 100);
|
|
3193
3192
|
}
|
|
@@ -3207,8 +3206,8 @@ function Vr(e, o, t, n, r, i, s) {
|
|
|
3207
3206
|
function h(C) {
|
|
3208
3207
|
for (const v of C) {
|
|
3209
3208
|
if (f) return;
|
|
3210
|
-
const _ = v.target === e, I = n.indexOf(v.target),
|
|
3211
|
-
if (
|
|
3209
|
+
const _ = v.target === e, I = n.indexOf(v.target), V = _ ? a : d[I], M = g(_ ? e : n[I]);
|
|
3210
|
+
if (A(M - V) >= 0.5) {
|
|
3212
3211
|
S.reInit(), o.emit("resize");
|
|
3213
3212
|
break;
|
|
3214
3213
|
}
|
|
@@ -3228,16 +3227,16 @@ function Vr(e, o, t, n, r, i, s) {
|
|
|
3228
3227
|
destroy: p
|
|
3229
3228
|
};
|
|
3230
3229
|
}
|
|
3231
|
-
function
|
|
3230
|
+
function br(e, o, t, n, r, i) {
|
|
3232
3231
|
let s = 0, u = 0, l = r, a = i, d = e.get(), f = 0;
|
|
3233
3232
|
function g() {
|
|
3234
|
-
const
|
|
3235
|
-
let
|
|
3236
|
-
return M ? (s = 0, t.set(n), e.set(n),
|
|
3233
|
+
const V = n.get() - e.get(), M = !l;
|
|
3234
|
+
let b = 0;
|
|
3235
|
+
return M ? (s = 0, t.set(n), e.set(n), b = V) : (t.set(e), s += V / l, s *= a, d += s, e.add(s), b = d - f), u = _t(b), f = d, I;
|
|
3237
3236
|
}
|
|
3238
3237
|
function c() {
|
|
3239
|
-
const
|
|
3240
|
-
return
|
|
3238
|
+
const V = n.get() - o.get();
|
|
3239
|
+
return A(V) < 1e-3;
|
|
3241
3240
|
}
|
|
3242
3241
|
function p() {
|
|
3243
3242
|
return l;
|
|
@@ -3254,11 +3253,11 @@ function Pr(e, o, t, n, r, i) {
|
|
|
3254
3253
|
function C() {
|
|
3255
3254
|
return _(i);
|
|
3256
3255
|
}
|
|
3257
|
-
function v(
|
|
3258
|
-
return l =
|
|
3256
|
+
function v(V) {
|
|
3257
|
+
return l = V, I;
|
|
3259
3258
|
}
|
|
3260
|
-
function _(
|
|
3261
|
-
return a =
|
|
3259
|
+
function _(V) {
|
|
3260
|
+
return a = V, I;
|
|
3262
3261
|
}
|
|
3263
3262
|
const I = {
|
|
3264
3263
|
direction: m,
|
|
@@ -3273,7 +3272,7 @@ function Pr(e, o, t, n, r, i) {
|
|
|
3273
3272
|
};
|
|
3274
3273
|
return I;
|
|
3275
3274
|
}
|
|
3276
|
-
function
|
|
3275
|
+
function Pr(e, o, t, n, r) {
|
|
3277
3276
|
const i = r.measure(10), s = r.measure(50), u = we(0.1, 0.99);
|
|
3278
3277
|
let l = !1;
|
|
3279
3278
|
function a() {
|
|
@@ -3281,8 +3280,8 @@ function $r(e, o, t, n, r) {
|
|
|
3281
3280
|
}
|
|
3282
3281
|
function d(c) {
|
|
3283
3282
|
if (!a()) return;
|
|
3284
|
-
const p = e.reachedMin(o.get()) ? "min" : "max", m =
|
|
3285
|
-
t.subtract(S * h), !c &&
|
|
3283
|
+
const p = e.reachedMin(o.get()) ? "min" : "max", m = A(e[p] - o.get()), S = t.get() - o.get(), h = u.constrain(m / s);
|
|
3284
|
+
t.subtract(S * h), !c && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
|
|
3286
3285
|
}
|
|
3287
3286
|
function f(c) {
|
|
3288
3287
|
l = !c;
|
|
@@ -3293,10 +3292,10 @@ function $r(e, o, t, n, r) {
|
|
|
3293
3292
|
toggleActive: f
|
|
3294
3293
|
};
|
|
3295
3294
|
}
|
|
3296
|
-
function
|
|
3295
|
+
function $r(e, o, t, n, r) {
|
|
3297
3296
|
const i = we(-o + e, 0), s = f(), u = d(), l = g();
|
|
3298
3297
|
function a(p, m) {
|
|
3299
|
-
return
|
|
3298
|
+
return Ve(p, m) <= 1;
|
|
3300
3299
|
}
|
|
3301
3300
|
function d() {
|
|
3302
3301
|
const p = s[0], m = ee(s), S = s.lastIndexOf(p), h = s.indexOf(m) + 1;
|
|
@@ -3325,13 +3324,13 @@ function Er(e, o, t, n, r) {
|
|
|
3325
3324
|
scrollContainLimit: u
|
|
3326
3325
|
};
|
|
3327
3326
|
}
|
|
3328
|
-
function
|
|
3327
|
+
function Er(e, o, t) {
|
|
3329
3328
|
const n = o[0], r = t ? n - e : ee(o);
|
|
3330
3329
|
return {
|
|
3331
3330
|
limit: we(r, n)
|
|
3332
3331
|
};
|
|
3333
3332
|
}
|
|
3334
|
-
function
|
|
3333
|
+
function Dr(e, o, t, n) {
|
|
3335
3334
|
const i = o.min + 0.1, s = o.max + 0.1, {
|
|
3336
3335
|
reachedMin: u,
|
|
3337
3336
|
reachedMax: l
|
|
@@ -3348,7 +3347,7 @@ function Lr(e, o, t, n) {
|
|
|
3348
3347
|
loop: d
|
|
3349
3348
|
};
|
|
3350
3349
|
}
|
|
3351
|
-
function
|
|
3350
|
+
function Lr(e) {
|
|
3352
3351
|
const {
|
|
3353
3352
|
max: o,
|
|
3354
3353
|
length: t
|
|
@@ -3361,7 +3360,7 @@ function Or(e) {
|
|
|
3361
3360
|
get: n
|
|
3362
3361
|
};
|
|
3363
3362
|
}
|
|
3364
|
-
function
|
|
3363
|
+
function Or(e, o, t, n, r) {
|
|
3365
3364
|
const {
|
|
3366
3365
|
startEdge: i,
|
|
3367
3366
|
endEdge: s
|
|
@@ -3369,10 +3368,10 @@ function Nr(e, o, t, n, r) {
|
|
|
3369
3368
|
groupSlides: u
|
|
3370
3369
|
} = r, l = f().map(o.measure), a = g(), d = c();
|
|
3371
3370
|
function f() {
|
|
3372
|
-
return u(n).map((m) => ee(m)[s] - m[0][i]).map(
|
|
3371
|
+
return u(n).map((m) => ee(m)[s] - m[0][i]).map(A);
|
|
3373
3372
|
}
|
|
3374
3373
|
function g() {
|
|
3375
|
-
return n.map((m) => t[i] - m[i]).map((m) => -
|
|
3374
|
+
return n.map((m) => t[i] - m[i]).map((m) => -A(m));
|
|
3376
3375
|
}
|
|
3377
3376
|
function c() {
|
|
3378
3377
|
return u(a).map((m) => m[0]).map((m, S) => m + l[S]);
|
|
@@ -3395,11 +3394,11 @@ function Ar(e, o, t, n, r, i) {
|
|
|
3395
3394
|
const h = !m, C = It(S, m);
|
|
3396
3395
|
if (h) {
|
|
3397
3396
|
const v = ee(S[0]) + 1;
|
|
3398
|
-
return
|
|
3397
|
+
return kt(v);
|
|
3399
3398
|
}
|
|
3400
3399
|
if (C) {
|
|
3401
|
-
const v =
|
|
3402
|
-
return
|
|
3400
|
+
const v = De(i) - ee(S)[0] + 1;
|
|
3401
|
+
return kt(v, ee(S)[0]);
|
|
3403
3402
|
}
|
|
3404
3403
|
return p;
|
|
3405
3404
|
});
|
|
@@ -3408,20 +3407,20 @@ function Ar(e, o, t, n, r, i) {
|
|
|
3408
3407
|
slideRegistry: a
|
|
3409
3408
|
};
|
|
3410
3409
|
}
|
|
3411
|
-
function
|
|
3410
|
+
function Nr(e, o, t, n, r) {
|
|
3412
3411
|
const {
|
|
3413
3412
|
reachedAny: i,
|
|
3414
3413
|
removeOffset: s,
|
|
3415
3414
|
constrain: u
|
|
3416
3415
|
} = n;
|
|
3417
3416
|
function l(p) {
|
|
3418
|
-
return p.concat().sort((m, S) =>
|
|
3417
|
+
return p.concat().sort((m, S) => A(m) - A(S))[0];
|
|
3419
3418
|
}
|
|
3420
3419
|
function a(p) {
|
|
3421
3420
|
const m = e ? s(p) : u(p), S = o.map((C, v) => ({
|
|
3422
3421
|
diff: d(C - m, 0),
|
|
3423
3422
|
index: v
|
|
3424
|
-
})).sort((C, v) =>
|
|
3423
|
+
})).sort((C, v) => A(C.diff) - A(v.diff)), {
|
|
3425
3424
|
index: h
|
|
3426
3425
|
} = S[0];
|
|
3427
3426
|
return {
|
|
@@ -3464,7 +3463,7 @@ function Tr(e, o, t, n, r) {
|
|
|
3464
3463
|
shortcut: d
|
|
3465
3464
|
};
|
|
3466
3465
|
}
|
|
3467
|
-
function
|
|
3466
|
+
function Tr(e, o, t, n, r, i, s) {
|
|
3468
3467
|
function u(f) {
|
|
3469
3468
|
const g = f.distance, c = f.index !== o.get();
|
|
3470
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), s.emit("select"));
|
|
@@ -3482,7 +3481,7 @@ function jr(e, o, t, n, r, i, s) {
|
|
|
3482
3481
|
index: a
|
|
3483
3482
|
};
|
|
3484
3483
|
}
|
|
3485
|
-
function
|
|
3484
|
+
function jr(e, o, t, n, r, i, s, u) {
|
|
3486
3485
|
const l = {
|
|
3487
3486
|
passive: !0,
|
|
3488
3487
|
capture: !0
|
|
@@ -3509,7 +3508,7 @@ function Hr(e, o, t, n, r, i, s, u) {
|
|
|
3509
3508
|
init: d
|
|
3510
3509
|
};
|
|
3511
3510
|
}
|
|
3512
|
-
function
|
|
3511
|
+
function _e(e) {
|
|
3513
3512
|
let o = e;
|
|
3514
3513
|
function t() {
|
|
3515
3514
|
return o;
|
|
@@ -3533,7 +3532,7 @@ function Me(e) {
|
|
|
3533
3532
|
subtract: i
|
|
3534
3533
|
};
|
|
3535
3534
|
}
|
|
3536
|
-
function
|
|
3535
|
+
function Fn(e, o) {
|
|
3537
3536
|
const t = e.scroll === "x" ? s : u, n = o.style;
|
|
3538
3537
|
let r = null, i = !1;
|
|
3539
3538
|
function s(g) {
|
|
@@ -3544,7 +3543,7 @@ function In(e, o) {
|
|
|
3544
3543
|
}
|
|
3545
3544
|
function l(g) {
|
|
3546
3545
|
if (i) return;
|
|
3547
|
-
const c =
|
|
3546
|
+
const c = vr(e.direction(g));
|
|
3548
3547
|
c !== r && (n.transform = t(c), r = c);
|
|
3549
3548
|
}
|
|
3550
3549
|
function a(g) {
|
|
@@ -3559,56 +3558,56 @@ function In(e, o) {
|
|
|
3559
3558
|
toggleActive: a
|
|
3560
3559
|
};
|
|
3561
3560
|
}
|
|
3562
|
-
function
|
|
3563
|
-
const d =
|
|
3564
|
-
function c(M,
|
|
3565
|
-
return M.reduce((P, L) => P - r[L],
|
|
3561
|
+
function Hr(e, o, t, n, r, i, s, u, l) {
|
|
3562
|
+
const d = Pe(r), f = Pe(r).reverse(), g = h().concat(C());
|
|
3563
|
+
function c(M, b) {
|
|
3564
|
+
return M.reduce((P, L) => P - r[L], b);
|
|
3566
3565
|
}
|
|
3567
|
-
function p(M,
|
|
3568
|
-
return M.reduce((P, L) => c(P,
|
|
3566
|
+
function p(M, b) {
|
|
3567
|
+
return M.reduce((P, L) => c(P, b) > 0 ? P.concat([L]) : P, []);
|
|
3569
3568
|
}
|
|
3570
3569
|
function m(M) {
|
|
3571
|
-
return i.map((
|
|
3572
|
-
start:
|
|
3573
|
-
end:
|
|
3570
|
+
return i.map((b, P) => ({
|
|
3571
|
+
start: b - n[P] + 0.5 + M,
|
|
3572
|
+
end: b + o - 0.5 + M
|
|
3574
3573
|
}));
|
|
3575
3574
|
}
|
|
3576
|
-
function S(M,
|
|
3577
|
-
const L = m(
|
|
3575
|
+
function S(M, b, P) {
|
|
3576
|
+
const L = m(b);
|
|
3578
3577
|
return M.map(($) => {
|
|
3579
|
-
const
|
|
3578
|
+
const N = P ? 0 : -t, B = P ? t : 0, E = P ? "end" : "start", j = L[$][E];
|
|
3580
3579
|
return {
|
|
3581
3580
|
index: $,
|
|
3582
3581
|
loopPoint: j,
|
|
3583
|
-
slideLocation:
|
|
3584
|
-
translate:
|
|
3585
|
-
target: () => u.get() > j ?
|
|
3582
|
+
slideLocation: _e(-1),
|
|
3583
|
+
translate: Fn(e, l[$]),
|
|
3584
|
+
target: () => u.get() > j ? N : B
|
|
3586
3585
|
};
|
|
3587
3586
|
});
|
|
3588
3587
|
}
|
|
3589
3588
|
function h() {
|
|
3590
|
-
const M = s[0],
|
|
3591
|
-
return S(
|
|
3589
|
+
const M = s[0], b = p(f, M);
|
|
3590
|
+
return S(b, t, !1);
|
|
3592
3591
|
}
|
|
3593
3592
|
function C() {
|
|
3594
|
-
const M = o - s[0] - 1,
|
|
3595
|
-
return S(
|
|
3593
|
+
const M = o - s[0] - 1, b = p(d, M);
|
|
3594
|
+
return S(b, -t, !0);
|
|
3596
3595
|
}
|
|
3597
3596
|
function v() {
|
|
3598
3597
|
return g.every(({
|
|
3599
3598
|
index: M
|
|
3600
3599
|
}) => {
|
|
3601
|
-
const
|
|
3602
|
-
return c(
|
|
3600
|
+
const b = d.filter((P) => P !== M);
|
|
3601
|
+
return c(b, o) <= 0.1;
|
|
3603
3602
|
});
|
|
3604
3603
|
}
|
|
3605
3604
|
function _() {
|
|
3606
3605
|
g.forEach((M) => {
|
|
3607
3606
|
const {
|
|
3608
|
-
target:
|
|
3607
|
+
target: b,
|
|
3609
3608
|
translate: P,
|
|
3610
3609
|
slideLocation: L
|
|
3611
|
-
} = M, $ =
|
|
3610
|
+
} = M, $ = b();
|
|
3612
3611
|
$ !== L.get() && (P.to($), L.set($));
|
|
3613
3612
|
});
|
|
3614
3613
|
}
|
|
@@ -3622,7 +3621,7 @@ function Gr(e, o, t, n, r, i, s, u, l) {
|
|
|
3622
3621
|
loopPoints: g
|
|
3623
3622
|
};
|
|
3624
3623
|
}
|
|
3625
|
-
function
|
|
3624
|
+
function Gr(e, o, t) {
|
|
3626
3625
|
let n, r = !1;
|
|
3627
3626
|
function i(l) {
|
|
3628
3627
|
if (!t) return;
|
|
@@ -3647,7 +3646,7 @@ function zr(e, o, t) {
|
|
|
3647
3646
|
destroy: s
|
|
3648
3647
|
};
|
|
3649
3648
|
}
|
|
3650
|
-
function
|
|
3649
|
+
function zr(e, o, t, n) {
|
|
3651
3650
|
const r = {};
|
|
3652
3651
|
let i = null, s = null, u, l = !1;
|
|
3653
3652
|
function a() {
|
|
@@ -3665,7 +3664,7 @@ function kr(e, o, t, n) {
|
|
|
3665
3664
|
u && u.disconnect(), l = !0;
|
|
3666
3665
|
}
|
|
3667
3666
|
function f(p) {
|
|
3668
|
-
return
|
|
3667
|
+
return $e(r).reduce((m, S) => {
|
|
3669
3668
|
const h = parseInt(S), {
|
|
3670
3669
|
isIntersecting: C
|
|
3671
3670
|
} = r[h];
|
|
@@ -3693,7 +3692,7 @@ function Br(e, o, t, n, r, i) {
|
|
|
3693
3692
|
function p() {
|
|
3694
3693
|
if (!a) return 0;
|
|
3695
3694
|
const C = t[0];
|
|
3696
|
-
return
|
|
3695
|
+
return A(o[u] - C[u]);
|
|
3697
3696
|
}
|
|
3698
3697
|
function m() {
|
|
3699
3698
|
if (!a) return 0;
|
|
@@ -3702,9 +3701,9 @@ function Br(e, o, t, n, r, i) {
|
|
|
3702
3701
|
}
|
|
3703
3702
|
function S() {
|
|
3704
3703
|
return t.map((C, v, _) => {
|
|
3705
|
-
const I = !v,
|
|
3706
|
-
return I ? g[v] + d :
|
|
3707
|
-
}).map(
|
|
3704
|
+
const I = !v, V = It(_, v);
|
|
3705
|
+
return I ? g[v] + d : V ? g[v] + f : _[v + 1][u] - C[u];
|
|
3706
|
+
}).map(A);
|
|
3708
3707
|
}
|
|
3709
3708
|
return {
|
|
3710
3709
|
slideSizes: g,
|
|
@@ -3713,19 +3712,19 @@ function Br(e, o, t, n, r, i) {
|
|
|
3713
3712
|
endGap: f
|
|
3714
3713
|
};
|
|
3715
3714
|
}
|
|
3716
|
-
function
|
|
3715
|
+
function kr(e, o, t, n, r, i, s, u, l) {
|
|
3717
3716
|
const {
|
|
3718
3717
|
startEdge: a,
|
|
3719
3718
|
endEdge: d,
|
|
3720
3719
|
direction: f
|
|
3721
3720
|
} = e, g = Ft(t);
|
|
3722
3721
|
function c(h, C) {
|
|
3723
|
-
return
|
|
3722
|
+
return Pe(h).filter((v) => v % C === 0).map((v) => h.slice(v, v + C));
|
|
3724
3723
|
}
|
|
3725
3724
|
function p(h) {
|
|
3726
|
-
return h.length ?
|
|
3727
|
-
const I = ee(C) || 0,
|
|
3728
|
-
return _ &&
|
|
3725
|
+
return h.length ? Pe(h).reduce((C, v, _) => {
|
|
3726
|
+
const I = ee(C) || 0, V = I === 0, M = v === De(h), b = r[a] - i[I][a], P = r[a] - i[v][d], L = !n && V ? f(s) : 0, $ = !n && M ? f(u) : 0, N = A(P - $ - (b + L));
|
|
3727
|
+
return _ && N > o + l && C.push(v), M && C.push(h.length), C;
|
|
3729
3728
|
}, []).map((C, v, _) => {
|
|
3730
3729
|
const I = Math.max(_[v - 1] || 0);
|
|
3731
3730
|
return h.slice(I, C);
|
|
@@ -3738,7 +3737,7 @@ function qr(e, o, t, n, r, i, s, u, l) {
|
|
|
3738
3737
|
groupSlides: m
|
|
3739
3738
|
};
|
|
3740
3739
|
}
|
|
3741
|
-
function
|
|
3740
|
+
function qr(e, o, t, n, r, i, s) {
|
|
3742
3741
|
const {
|
|
3743
3742
|
align: u,
|
|
3744
3743
|
axis: l,
|
|
@@ -3755,52 +3754,52 @@ function Ur(e, o, t, n, r, i, s) {
|
|
|
3755
3754
|
watchResize: v,
|
|
3756
3755
|
watchSlides: _,
|
|
3757
3756
|
watchDrag: I,
|
|
3758
|
-
watchFocus:
|
|
3759
|
-
} = i, M = 2,
|
|
3757
|
+
watchFocus: V
|
|
3758
|
+
} = i, M = 2, b = Ir(), P = b.measure(o), L = t.map(b.measure), $ = yr(l, a), N = $.measureSize(P), B = Mr(N), E = Rr(u, N), j = !f && !!C, U = f || !!C, {
|
|
3760
3759
|
slideSizes: K,
|
|
3761
3760
|
slideSizesWithGaps: J,
|
|
3762
3761
|
startGap: Y,
|
|
3763
3762
|
endGap: te
|
|
3764
|
-
} = Br($, P, L, t, U, r), X =
|
|
3763
|
+
} = Br($, P, L, t, U, r), X = kr($, N, S, f, P, L, Y, te, M), {
|
|
3765
3764
|
snaps: re,
|
|
3766
3765
|
snapsAligned: ie
|
|
3767
|
-
} =
|
|
3768
|
-
snapsContained:
|
|
3769
|
-
scrollContainLimit:
|
|
3770
|
-
} =
|
|
3766
|
+
} = Or($, E, P, L, X), se = -ee(re) + ee(J), {
|
|
3767
|
+
snapsContained: Re,
|
|
3768
|
+
scrollContainLimit: xe
|
|
3769
|
+
} = $r(N, se, ie, C, M), k = j ? Re : ie, {
|
|
3771
3770
|
limit: G
|
|
3772
|
-
} =
|
|
3771
|
+
} = Er(se, k, f), le = yn(De(k), d, f), W = le.clone(), O = Pe(t), R = ({
|
|
3773
3772
|
dragHandler: Ce,
|
|
3774
3773
|
scrollBody: Ye,
|
|
3775
3774
|
scrollBounds: Ze,
|
|
3776
3775
|
options: {
|
|
3777
|
-
loop:
|
|
3776
|
+
loop: Le
|
|
3778
3777
|
}
|
|
3779
3778
|
}) => {
|
|
3780
|
-
|
|
3779
|
+
Le || Ze.constrain(Ce.pointerDown()), Ye.seek();
|
|
3781
3780
|
}, D = ({
|
|
3782
3781
|
scrollBody: Ce,
|
|
3783
3782
|
translate: Ye,
|
|
3784
3783
|
location: Ze,
|
|
3785
|
-
offsetLocation:
|
|
3786
|
-
previousLocation:
|
|
3787
|
-
scrollLooper:
|
|
3788
|
-
slideLooper:
|
|
3789
|
-
dragHandler:
|
|
3790
|
-
animation:
|
|
3784
|
+
offsetLocation: Le,
|
|
3785
|
+
previousLocation: Mn,
|
|
3786
|
+
scrollLooper: Vn,
|
|
3787
|
+
slideLooper: bn,
|
|
3788
|
+
dragHandler: Pn,
|
|
3789
|
+
animation: $n,
|
|
3791
3790
|
eventHandler: $t,
|
|
3792
|
-
scrollBounds:
|
|
3791
|
+
scrollBounds: En,
|
|
3793
3792
|
options: {
|
|
3794
3793
|
loop: Et
|
|
3795
3794
|
}
|
|
3796
3795
|
}, Dt) => {
|
|
3797
|
-
const Lt = Ce.settled(),
|
|
3798
|
-
|
|
3799
|
-
const
|
|
3800
|
-
|
|
3801
|
-
}, T =
|
|
3796
|
+
const Lt = Ce.settled(), Dn = !En.shouldConstrain(), Ot = Et ? Lt : Lt && Dn, At = Ot && !Pn.pointerDown();
|
|
3797
|
+
At && $n.stop();
|
|
3798
|
+
const Ln = Ze.get() * Dt + Mn.get() * (1 - Dt);
|
|
3799
|
+
Le.set(Ln), Et && (Vn.loop(Ce.direction()), bn.loop()), Ye.to(Le.get()), At && $t.emit("settle"), Ot || $t.emit("scroll");
|
|
3800
|
+
}, T = xr(n, r, () => R(Je), (Ce) => D(Je, Ce)), z = 0.68, ne = k[le.get()], ue = _e(ne), me = _e(ne), de = _e(ne), he = _e(ne), ye = br(ue, de, me, he, g, z), We = Nr(f, k, se, G, he), Qe = Tr(T, le, W, ye, We, he, s), Vt = Lr(G), bt = Ee(), _n = zr(o, t, s, m), {
|
|
3802
3801
|
slideRegistry: Pt
|
|
3803
|
-
} = Ar(j, C,
|
|
3802
|
+
} = Ar(j, C, k, xe, X, O), In = jr(e, t, Pt, Qe, ye, bt, s, V), Je = {
|
|
3804
3803
|
ownerDocument: n,
|
|
3805
3804
|
ownerWindow: r,
|
|
3806
3805
|
eventHandler: s,
|
|
@@ -3808,9 +3807,9 @@ function Ur(e, o, t, n, r, i, s) {
|
|
|
3808
3807
|
slideRects: L,
|
|
3809
3808
|
animation: T,
|
|
3810
3809
|
axis: $,
|
|
3811
|
-
dragHandler:
|
|
3812
|
-
eventStore:
|
|
3813
|
-
percentOfView:
|
|
3810
|
+
dragHandler: Fr($, e, n, r, he, _r($, r), ue, T, Qe, ye, We, le, s, B, c, p, h, z, I),
|
|
3811
|
+
eventStore: bt,
|
|
3812
|
+
percentOfView: B,
|
|
3814
3813
|
index: le,
|
|
3815
3814
|
indexPrevious: W,
|
|
3816
3815
|
limit: G,
|
|
@@ -3818,28 +3817,28 @@ function Ur(e, o, t, n, r, i, s) {
|
|
|
3818
3817
|
offsetLocation: de,
|
|
3819
3818
|
previousLocation: me,
|
|
3820
3819
|
options: i,
|
|
3821
|
-
resizeHandler: Vr(o, s, r, t, $, v,
|
|
3822
|
-
scrollBody:
|
|
3823
|
-
scrollBounds:
|
|
3824
|
-
scrollLooper:
|
|
3825
|
-
scrollProgress:
|
|
3826
|
-
scrollSnapList:
|
|
3827
|
-
scrollSnaps:
|
|
3820
|
+
resizeHandler: Vr(o, s, r, t, $, v, b),
|
|
3821
|
+
scrollBody: ye,
|
|
3822
|
+
scrollBounds: Pr(G, de, he, ye, B),
|
|
3823
|
+
scrollLooper: Dr(se, G, de, [ue, de, me, he]),
|
|
3824
|
+
scrollProgress: Vt,
|
|
3825
|
+
scrollSnapList: k.map(Vt.get),
|
|
3826
|
+
scrollSnaps: k,
|
|
3828
3827
|
scrollTarget: We,
|
|
3829
3828
|
scrollTo: Qe,
|
|
3830
|
-
slideLooper:
|
|
3831
|
-
slideFocus:
|
|
3832
|
-
slidesHandler:
|
|
3833
|
-
slidesInView:
|
|
3829
|
+
slideLooper: Hr($, N, se, K, J, re, k, de, t),
|
|
3830
|
+
slideFocus: In,
|
|
3831
|
+
slidesHandler: Gr(o, s, _),
|
|
3832
|
+
slidesInView: _n,
|
|
3834
3833
|
slideIndexes: O,
|
|
3835
3834
|
slideRegistry: Pt,
|
|
3836
3835
|
slidesToScroll: X,
|
|
3837
3836
|
target: he,
|
|
3838
|
-
translate:
|
|
3837
|
+
translate: Fn($, o)
|
|
3839
3838
|
};
|
|
3840
3839
|
return Je;
|
|
3841
3840
|
}
|
|
3842
|
-
function
|
|
3841
|
+
function Ur() {
|
|
3843
3842
|
let e = {}, o;
|
|
3844
3843
|
function t(a) {
|
|
3845
3844
|
o = a;
|
|
@@ -3868,7 +3867,7 @@ function Kr() {
|
|
|
3868
3867
|
};
|
|
3869
3868
|
return l;
|
|
3870
3869
|
}
|
|
3871
|
-
const
|
|
3870
|
+
const Kr = {
|
|
3872
3871
|
align: "center",
|
|
3873
3872
|
axis: "x",
|
|
3874
3873
|
container: null,
|
|
@@ -3890,16 +3889,16 @@ const Xr = {
|
|
|
3890
3889
|
watchSlides: !0,
|
|
3891
3890
|
watchFocus: !0
|
|
3892
3891
|
};
|
|
3893
|
-
function
|
|
3892
|
+
function Xr(e) {
|
|
3894
3893
|
function o(i, s) {
|
|
3895
|
-
return
|
|
3894
|
+
return xn(i, s || {});
|
|
3896
3895
|
}
|
|
3897
3896
|
function t(i) {
|
|
3898
|
-
const s = i.breakpoints || {}, u =
|
|
3897
|
+
const s = i.breakpoints || {}, u = $e(s).filter((l) => e.matchMedia(l).matches).map((l) => s[l]).reduce((l, a) => o(l, a), {});
|
|
3899
3898
|
return o(i, u);
|
|
3900
3899
|
}
|
|
3901
3900
|
function n(i) {
|
|
3902
|
-
return i.map((s) =>
|
|
3901
|
+
return i.map((s) => $e(s.breakpoints || {})).reduce((s, u) => s.concat(u), []).map(e.matchMedia);
|
|
3903
3902
|
}
|
|
3904
3903
|
return {
|
|
3905
3904
|
mergeOptions: o,
|
|
@@ -3907,7 +3906,7 @@ function Wr(e) {
|
|
|
3907
3906
|
optionsMediaQueries: n
|
|
3908
3907
|
};
|
|
3909
3908
|
}
|
|
3910
|
-
function
|
|
3909
|
+
function Wr(e) {
|
|
3911
3910
|
let o = [];
|
|
3912
3911
|
function t(i, s) {
|
|
3913
3912
|
return o = s.filter(({
|
|
@@ -3925,7 +3924,7 @@ function Qr(e) {
|
|
|
3925
3924
|
};
|
|
3926
3925
|
}
|
|
3927
3926
|
function ze(e, o, t) {
|
|
3928
|
-
const n = e.ownerDocument, r = n.defaultView, i =
|
|
3927
|
+
const n = e.ownerDocument, r = n.defaultView, i = Xr(r), s = Wr(i), u = Ee(), l = Ur(), {
|
|
3929
3928
|
mergeOptions: a,
|
|
3930
3929
|
optionsAtMedia: d,
|
|
3931
3930
|
optionsMediaQueries: f
|
|
@@ -3934,18 +3933,18 @@ function ze(e, o, t) {
|
|
|
3934
3933
|
off: c,
|
|
3935
3934
|
emit: p
|
|
3936
3935
|
} = l, m = $;
|
|
3937
|
-
let S = !1, h, C = a(
|
|
3938
|
-
function
|
|
3936
|
+
let S = !1, h, C = a(Kr, ze.globalOptions), v = a(C), _ = [], I, V, M;
|
|
3937
|
+
function b() {
|
|
3939
3938
|
const {
|
|
3940
3939
|
container: O,
|
|
3941
3940
|
slides: R
|
|
3942
3941
|
} = v;
|
|
3943
|
-
|
|
3944
|
-
const T = pt(R) ?
|
|
3945
|
-
M = [].slice.call(T ||
|
|
3942
|
+
V = (pt(O) ? e.querySelector(O) : O) || e.children[0];
|
|
3943
|
+
const T = pt(R) ? V.querySelectorAll(R) : R;
|
|
3944
|
+
M = [].slice.call(T || V.children);
|
|
3946
3945
|
}
|
|
3947
3946
|
function P(O) {
|
|
3948
|
-
const R =
|
|
3947
|
+
const R = qr(e, V, M, n, r, O, l);
|
|
3949
3948
|
if (O.loop && !R.slideLooper.canLoop()) {
|
|
3950
3949
|
const D = Object.assign({}, O, {
|
|
3951
3950
|
loop: !1
|
|
@@ -3955,21 +3954,21 @@ function ze(e, o, t) {
|
|
|
3955
3954
|
return R;
|
|
3956
3955
|
}
|
|
3957
3956
|
function L(O, R) {
|
|
3958
|
-
S || (C = a(C, O), v = d(C), _ = R || _,
|
|
3957
|
+
S || (C = a(C, O), v = d(C), _ = R || _, b(), h = P(v), f([C, ..._.map(({
|
|
3959
3958
|
options: D
|
|
3960
|
-
}) => D)]).forEach((D) => u.add(D, "change", $)), v.active && (h.translate.to(h.location.get()), h.animation.init(), h.slidesInView.init(), h.slideFocus.init(W), h.eventHandler.init(W), h.resizeHandler.init(W), h.slidesHandler.init(W), h.options.loop && h.slideLooper.loop(),
|
|
3959
|
+
}) => D)]).forEach((D) => u.add(D, "change", $)), v.active && (h.translate.to(h.location.get()), h.animation.init(), h.slidesInView.init(), h.slideFocus.init(W), h.eventHandler.init(W), h.resizeHandler.init(W), h.slidesHandler.init(W), h.options.loop && h.slideLooper.loop(), V.offsetParent && M.length && h.dragHandler.init(W), I = s.init(W, _)));
|
|
3961
3960
|
}
|
|
3962
3961
|
function $(O, R) {
|
|
3963
3962
|
const D = X();
|
|
3964
|
-
|
|
3963
|
+
N(), L(a({
|
|
3965
3964
|
startIndex: D
|
|
3966
3965
|
}, O), R), l.emit("reInit");
|
|
3967
3966
|
}
|
|
3968
|
-
function
|
|
3967
|
+
function N() {
|
|
3969
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(), s.destroy(), u.clear();
|
|
3970
3969
|
}
|
|
3971
|
-
function
|
|
3972
|
-
S || (S = !0, u.clear(),
|
|
3970
|
+
function B() {
|
|
3971
|
+
S || (S = !0, u.clear(), N(), l.emit("destroy"), l.clear());
|
|
3973
3972
|
}
|
|
3974
3973
|
function E(O, R, D) {
|
|
3975
3974
|
!v.active || S || (h.scrollBody.useBaseFriction().useDuration(R === !0 ? 0 : v.duration), h.scrollTo.index(O, D || 0));
|
|
@@ -4006,17 +4005,17 @@ function ze(e, o, t) {
|
|
|
4006
4005
|
function se() {
|
|
4007
4006
|
return h.slidesInView.get(!1);
|
|
4008
4007
|
}
|
|
4009
|
-
function
|
|
4008
|
+
function Re() {
|
|
4010
4009
|
return I;
|
|
4011
4010
|
}
|
|
4012
|
-
function
|
|
4011
|
+
function xe() {
|
|
4013
4012
|
return h;
|
|
4014
4013
|
}
|
|
4015
|
-
function
|
|
4014
|
+
function k() {
|
|
4016
4015
|
return e;
|
|
4017
4016
|
}
|
|
4018
4017
|
function G() {
|
|
4019
|
-
return
|
|
4018
|
+
return V;
|
|
4020
4019
|
}
|
|
4021
4020
|
function le() {
|
|
4022
4021
|
return M;
|
|
@@ -4025,15 +4024,15 @@ function ze(e, o, t) {
|
|
|
4025
4024
|
canScrollNext: K,
|
|
4026
4025
|
canScrollPrev: J,
|
|
4027
4026
|
containerNode: G,
|
|
4028
|
-
internalEngine:
|
|
4029
|
-
destroy:
|
|
4027
|
+
internalEngine: xe,
|
|
4028
|
+
destroy: B,
|
|
4030
4029
|
off: c,
|
|
4031
4030
|
on: g,
|
|
4032
4031
|
emit: p,
|
|
4033
|
-
plugins:
|
|
4032
|
+
plugins: Re,
|
|
4034
4033
|
previousScrollSnap: re,
|
|
4035
4034
|
reInit: m,
|
|
4036
|
-
rootNode:
|
|
4035
|
+
rootNode: k,
|
|
4037
4036
|
scrollNext: j,
|
|
4038
4037
|
scrollPrev: U,
|
|
4039
4038
|
scrollProgress: te,
|
|
@@ -4048,15 +4047,15 @@ function ze(e, o, t) {
|
|
|
4048
4047
|
}
|
|
4049
4048
|
ze.globalOptions = void 0;
|
|
4050
4049
|
function Mt(e = {}, o = []) {
|
|
4051
|
-
const t =
|
|
4050
|
+
const t = je(e), n = je(o), [r, i] = oe(), [s, u] = oe(), l = Se(() => {
|
|
4052
4051
|
r && r.reInit(t.current, n.current);
|
|
4053
4052
|
}, [r]);
|
|
4054
4053
|
return ve(() => {
|
|
4055
4054
|
yt(t.current, e) || (t.current = e, l());
|
|
4056
4055
|
}, [e, l]), ve(() => {
|
|
4057
|
-
|
|
4056
|
+
wr(n.current, o) || (n.current = o, l());
|
|
4058
4057
|
}, [o, l]), ve(() => {
|
|
4059
|
-
if (
|
|
4058
|
+
if (Sr() && s) {
|
|
4060
4059
|
ze.globalOptions = Mt.globalOptions;
|
|
4061
4060
|
const a = ze(s, t.current, n.current);
|
|
4062
4061
|
return i(a), () => a.destroy();
|
|
@@ -4065,7 +4064,7 @@ function Mt(e = {}, o = []) {
|
|
|
4065
4064
|
}, [s, i]), [u, r];
|
|
4066
4065
|
}
|
|
4067
4066
|
Mt.globalOptions = void 0;
|
|
4068
|
-
const
|
|
4067
|
+
const Qr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
4069
4068
|
const [t, n] = Mt(e, [xt(o)]), r = Se((i) => {
|
|
4070
4069
|
var l;
|
|
4071
4070
|
const s = (l = i == null ? void 0 : i.plugins()) == null ? void 0 : l.autoplay;
|
|
@@ -4073,7 +4072,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4073
4072
|
(s.options.stopOnInteraction === !1 ? s.reset : s.stop)();
|
|
4074
4073
|
}, []);
|
|
4075
4074
|
return { emblaRef: t, emblaApi: n, navigationHandler: r };
|
|
4076
|
-
},
|
|
4075
|
+
}, Be = ({ mode: e, onClick: o, children: t, classes: n, ...r }) => /* @__PURE__ */ w.jsxs(
|
|
4077
4076
|
"button",
|
|
4078
4077
|
{
|
|
4079
4078
|
className: F("group flex size-8 cursor-pointer items-center justify-center p-1", n == null ? void 0 : n.button),
|
|
@@ -4082,7 +4081,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4082
4081
|
...r,
|
|
4083
4082
|
children: [
|
|
4084
4083
|
/* @__PURE__ */ w.jsx(
|
|
4085
|
-
|
|
4084
|
+
be,
|
|
4086
4085
|
{
|
|
4087
4086
|
name: "arrows/arrowRight",
|
|
4088
4087
|
className: F(
|
|
@@ -4095,7 +4094,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4095
4094
|
t
|
|
4096
4095
|
]
|
|
4097
4096
|
}
|
|
4098
|
-
),
|
|
4097
|
+
), Jr = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */ w.jsx(
|
|
4099
4098
|
"div",
|
|
4100
4099
|
{
|
|
4101
4100
|
className: F(
|
|
@@ -4130,7 +4129,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4130
4129
|
};
|
|
4131
4130
|
return /* @__PURE__ */ w.jsxs("div", { className: F("mx-auto overflow-hidden", o == null ? void 0 : o.slidesOverlay), ref: i, children: [
|
|
4132
4131
|
/* @__PURE__ */ w.jsx("div", { className: F("flex touch-pan-y gap-6", o == null ? void 0 : o.slidesWrapper), children: t }),
|
|
4133
|
-
(g || f) && /* @__PURE__ */ w.jsx(
|
|
4132
|
+
(g || f) && /* @__PURE__ */ w.jsx(Jr, { ...c, ...d })
|
|
4134
4133
|
] });
|
|
4135
4134
|
}
|
|
4136
4135
|
), Ut = {
|
|
@@ -4146,9 +4145,9 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4146
4145
|
position: "top-right",
|
|
4147
4146
|
deskVisible: !0,
|
|
4148
4147
|
mobVisible: !1
|
|
4149
|
-
},
|
|
4148
|
+
}, Yr = {
|
|
4150
4149
|
active: !0
|
|
4151
|
-
},
|
|
4150
|
+
}, Zr = ({
|
|
4152
4151
|
children: e,
|
|
4153
4152
|
prevBtnDisabled: o,
|
|
4154
4153
|
nextBtnDisabled: t,
|
|
@@ -4158,7 +4157,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4158
4157
|
var i, s, u, l;
|
|
4159
4158
|
return /* @__PURE__ */ w.jsxs("div", { className: F("relative flex items-center gap-1", r == null ? void 0 : r.wrapper), children: [
|
|
4160
4159
|
/* @__PURE__ */ w.jsx(
|
|
4161
|
-
|
|
4160
|
+
Be,
|
|
4162
4161
|
{
|
|
4163
4162
|
mode: "prev",
|
|
4164
4163
|
onClick: n,
|
|
@@ -4171,7 +4170,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4171
4170
|
),
|
|
4172
4171
|
e,
|
|
4173
4172
|
/* @__PURE__ */ w.jsx(
|
|
4174
|
-
|
|
4173
|
+
Be,
|
|
4175
4174
|
{
|
|
4176
4175
|
mode: "next",
|
|
4177
4176
|
onClick: n,
|
|
@@ -4183,7 +4182,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4183
4182
|
}
|
|
4184
4183
|
)
|
|
4185
4184
|
] });
|
|
4186
|
-
},
|
|
4185
|
+
}, Ci = ({
|
|
4187
4186
|
dotsOptions: e = Kt,
|
|
4188
4187
|
navArrowOptions: o = Xt,
|
|
4189
4188
|
carouselOptions: t = Ut,
|
|
@@ -4195,19 +4194,19 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4195
4194
|
classes: l,
|
|
4196
4195
|
...a
|
|
4197
4196
|
}) => {
|
|
4198
|
-
const d = { ...Ut, ...t }, f = { ...
|
|
4197
|
+
const d = { ...Ut, ...t }, f = { ...Yr, ...r }, g = { ...Xt, ...o }, c = { ...Kt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = Qr({
|
|
4199
4198
|
carouselOptions: d,
|
|
4200
4199
|
autoPlayOptions: f
|
|
4201
|
-
}), h =
|
|
4200
|
+
}), h = gr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: C, nextBtnDisabled: v, onClickNavigationButton: _ } = dr({
|
|
4202
4201
|
emblaApi: p,
|
|
4203
4202
|
navigationHandler: m
|
|
4204
|
-
}), { isMobile: I, isDesktop:
|
|
4203
|
+
}), { isMobile: I, isDesktop: V } = qe(), { deskVisible: M, mobVisible: b, position: P } = g ?? {}, N = M && V || b && I, B = !!n || N && P === "top-right";
|
|
4205
4204
|
return /* @__PURE__ */ w.jsxs("div", { className: F("flex flex-col", l == null ? void 0 : l.root), ...a, children: [
|
|
4206
|
-
|
|
4207
|
-
!!n && /* @__PURE__ */ w.jsx(
|
|
4208
|
-
|
|
4205
|
+
B && /* @__PURE__ */ w.jsxs("div", { className: F("flex items-center justify-between gap-6", { "mb-6": B }, l == null ? void 0 : l.header), children: [
|
|
4206
|
+
!!n && /* @__PURE__ */ w.jsx(qn, { as: "h2", className: F(l == null ? void 0 : l.heading), children: "Другие предложения" }),
|
|
4207
|
+
N && P === "top-right" && /* @__PURE__ */ w.jsxs("div", { className: F("ml-auto flex items-center gap-2", l == null ? void 0 : l.arrowsNavWrapper), children: [
|
|
4209
4208
|
/* @__PURE__ */ w.jsx(
|
|
4210
|
-
|
|
4209
|
+
Be,
|
|
4211
4210
|
{
|
|
4212
4211
|
mode: "prev",
|
|
4213
4212
|
onClick: _,
|
|
@@ -4216,7 +4215,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4216
4215
|
}
|
|
4217
4216
|
),
|
|
4218
4217
|
/* @__PURE__ */ w.jsx(
|
|
4219
|
-
|
|
4218
|
+
Be,
|
|
4220
4219
|
{
|
|
4221
4220
|
mode: "next",
|
|
4222
4221
|
onClick: _,
|
|
@@ -4226,8 +4225,8 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4226
4225
|
)
|
|
4227
4226
|
] })
|
|
4228
4227
|
] }),
|
|
4229
|
-
|
|
4230
|
-
|
|
4228
|
+
N && P === "center" ? /* @__PURE__ */ w.jsx(
|
|
4229
|
+
Zr,
|
|
4231
4230
|
{
|
|
4232
4231
|
onClickNavigationButton: _,
|
|
4233
4232
|
prevBtnDisabled: C,
|
|
@@ -4257,47 +4256,12 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4257
4256
|
}
|
|
4258
4257
|
)
|
|
4259
4258
|
] });
|
|
4260
|
-
},
|
|
4261
|
-
const
|
|
4262
|
-
s.current && s.current.close();
|
|
4263
|
-
};
|
|
4264
|
-
Yt(u, l);
|
|
4265
|
-
const a = /* @__PURE__ */ w.jsx(
|
|
4266
|
-
"dialog",
|
|
4267
|
-
{
|
|
4268
|
-
ref: s,
|
|
4269
|
-
...r,
|
|
4270
|
-
className: "border-none",
|
|
4271
|
-
onKeyDown: (d) => {
|
|
4272
|
-
d.key === "Escape" && l();
|
|
4273
|
-
},
|
|
4274
|
-
children: /* @__PURE__ */ w.jsx("div", { className: "fixed inset-0 flex items-center justify-center bg-color-overlay", children: /* @__PURE__ */ w.jsxs(
|
|
4275
|
-
"div",
|
|
4276
|
-
{
|
|
4277
|
-
ref: u,
|
|
4278
|
-
className: F(
|
|
4279
|
-
"w-full bg-color-white px-4 py-6 shadow-sm desktop:max-w-[600px] desktop:rounded-md desktop:px-6 desktop:py-8",
|
|
4280
|
-
"rounded-tl-md rounded-tr-md mobile:absolute mobile:bottom-0",
|
|
4281
|
-
e
|
|
4282
|
-
),
|
|
4283
|
-
children: [
|
|
4284
|
-
/* @__PURE__ */ w.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
4285
|
-
t && /* @__PURE__ */ w.jsx(Qt, { as: "h3", className: "flex-1 text-color-dark", children: t }),
|
|
4286
|
-
/* @__PURE__ */ w.jsx(Re, { onClick: l, name: "general/close", className: "ml-auto size-6 cursor-pointer text-icon-dark-hover" })
|
|
4287
|
-
] }),
|
|
4288
|
-
/* @__PURE__ */ w.jsx("div", { className: "mt-4", children: o })
|
|
4289
|
-
]
|
|
4290
|
-
}
|
|
4291
|
-
) })
|
|
4292
|
-
}
|
|
4293
|
-
);
|
|
4294
|
-
return n ? Qn(a, n) : a;
|
|
4295
|
-
}, yi = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
4296
|
-
const { toasts: t } = Kn();
|
|
4259
|
+
}, vi = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
|
|
4260
|
+
const { toasts: t } = Un();
|
|
4297
4261
|
return ve(() => {
|
|
4298
|
-
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) =>
|
|
4262
|
+
t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => Kn.dismiss(n.id));
|
|
4299
4263
|
}, [e, t]), /* @__PURE__ */ w.jsx(
|
|
4300
|
-
|
|
4264
|
+
Xn,
|
|
4301
4265
|
{
|
|
4302
4266
|
position: "top-center",
|
|
4303
4267
|
toastOptions: {
|
|
@@ -4305,7 +4269,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4305
4269
|
}
|
|
4306
4270
|
}
|
|
4307
4271
|
);
|
|
4308
|
-
},
|
|
4272
|
+
}, Ri = ({ linksList: e }) => /* @__PURE__ */ w.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ w.jsx(w.Fragment, { children: "path" in o ? /* @__PURE__ */ w.jsxs(
|
|
4309
4273
|
"div",
|
|
4310
4274
|
{
|
|
4311
4275
|
className: F(
|
|
@@ -4327,7 +4291,7 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4327
4291
|
}
|
|
4328
4292
|
),
|
|
4329
4293
|
/* @__PURE__ */ w.jsx(
|
|
4330
|
-
|
|
4294
|
+
be,
|
|
4331
4295
|
{
|
|
4332
4296
|
name: "arrows/arrowRight",
|
|
4333
4297
|
className: F("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
|
|
@@ -4335,24 +4299,24 @@ const Jr = ({ carouselOptions: e, autoPlayOptions: o }) => {
|
|
|
4335
4299
|
)
|
|
4336
4300
|
]
|
|
4337
4301
|
}
|
|
4338
|
-
) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }),
|
|
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) => {
|
|
4339
4303
|
if (He(e)) {
|
|
4340
|
-
const n =
|
|
4341
|
-
return
|
|
4342
|
-
...
|
|
4304
|
+
const n = ni(e);
|
|
4305
|
+
return Qt(e, {
|
|
4306
|
+
...oi(o, e.props),
|
|
4343
4307
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4344
4308
|
// @ts-expect-error
|
|
4345
|
-
ref: t ?
|
|
4309
|
+
ref: t ? Qn(t, n) : n
|
|
4346
4310
|
});
|
|
4347
4311
|
}
|
|
4348
|
-
return
|
|
4312
|
+
return Ie.count(e) > 1 ? Ie.only(null) : null;
|
|
4349
4313
|
});
|
|
4350
4314
|
ht.displayName = "SlotClone";
|
|
4351
|
-
const
|
|
4315
|
+
const ti = (e) => He(e) && e.type === ei, ni = (e) => {
|
|
4352
4316
|
var n, r;
|
|
4353
4317
|
let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
|
|
4354
4318
|
return t ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = o && "isReactWarning" in o && o.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
4355
|
-
},
|
|
4319
|
+
}, oi = (e, o) => {
|
|
4356
4320
|
const t = { ...o };
|
|
4357
4321
|
for (const n in o) {
|
|
4358
4322
|
const r = e[n], i = o[n];
|
|
@@ -4361,66 +4325,66 @@ const ni = (e) => He(e) && e.type === ti, oi = (e) => {
|
|
|
4361
4325
|
}) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
|
|
4362
4326
|
}
|
|
4363
4327
|
return { ...e, ...t };
|
|
4364
|
-
},
|
|
4365
|
-
const n =
|
|
4328
|
+
}, ri = Q(({ children: e, ...o }, t) => {
|
|
4329
|
+
const n = Ie.toArray(e), r = n.find(ti);
|
|
4366
4330
|
if (r) {
|
|
4367
|
-
const i = r.props.children, s = n.map((u) => u === r ?
|
|
4368
|
-
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: He(i) ?
|
|
4331
|
+
const i = r.props.children, s = n.map((u) => u === r ? Ie.count(i) > 1 ? Ie.only(null) : He(i) ? i.props.children : null : u);
|
|
4332
|
+
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: He(i) ? Qt(i, void 0, s) : null });
|
|
4369
4333
|
}
|
|
4370
4334
|
return /* @__PURE__ */ w.jsx(ht, { ...o, ref: t, children: e });
|
|
4371
4335
|
});
|
|
4372
|
-
|
|
4336
|
+
ri.displayName = "Slot";
|
|
4373
4337
|
export {
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4338
|
+
kn as Accordion,
|
|
4339
|
+
Fi as Badge,
|
|
4340
|
+
Ri as Breadcrumbs,
|
|
4377
4341
|
ge as Button,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4342
|
+
ci as ButtonIcon,
|
|
4343
|
+
_i as Calendar,
|
|
4344
|
+
Ci as CarouselBase,
|
|
4345
|
+
Ii as Controlled,
|
|
4346
|
+
Mi as CustomLink,
|
|
4347
|
+
ki as DATE_VISIBLE_PATTERN,
|
|
4348
|
+
Si as DataTable,
|
|
4349
|
+
so as DataTableColumnHeader,
|
|
4350
|
+
Vi as Dialog,
|
|
4351
|
+
hi as EditableCell,
|
|
4352
|
+
gi as FloatButton,
|
|
4353
|
+
qn as Heading,
|
|
4354
|
+
bi as Hint,
|
|
4355
|
+
be as Icon,
|
|
4356
|
+
Pi as KeyboardShortcuts,
|
|
4357
|
+
$i as Loader,
|
|
4358
|
+
Ei as Modal,
|
|
4359
|
+
Di as Notification,
|
|
4360
|
+
vi as NotificationProvider,
|
|
4361
|
+
lr as Pagination,
|
|
4362
|
+
Li as PhoneView,
|
|
4363
|
+
Oi as Popover,
|
|
4364
|
+
Ai as ProgressBar,
|
|
4365
|
+
An as ResponsiveContainer,
|
|
4366
|
+
di as Skeleton,
|
|
4367
|
+
ri as Slot,
|
|
4368
|
+
un as Table,
|
|
4369
|
+
cn as TableBody,
|
|
4370
|
+
io as TableCaption,
|
|
4407
4371
|
ut as TableCell,
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4372
|
+
ro as TableFooter,
|
|
4373
|
+
dn as TableHead,
|
|
4374
|
+
an as TableHeader,
|
|
4375
|
+
Te as TableRow,
|
|
4376
|
+
wi as TableUtils,
|
|
4377
|
+
mi as TabsSwitcher,
|
|
4378
|
+
Ni as Uncontrolled,
|
|
4379
|
+
fi as allowedIcons,
|
|
4380
|
+
Ti as brandLogos,
|
|
4381
|
+
ji as buttonPrimitiveIntent,
|
|
4382
|
+
Hi as buttonPrimitiveSize,
|
|
4383
|
+
Gi as buttonPrimitiveTextFormat,
|
|
4384
|
+
qi as defaultClassNames,
|
|
4385
|
+
Ui as formatDateToLocaleString,
|
|
4386
|
+
Ki as formatDateToMonthString,
|
|
4387
|
+
Xi as formatDateToYearString,
|
|
4388
|
+
zi as isSingleOption
|
|
4425
4389
|
};
|
|
4426
4390
|
//# sourceMappingURL=ui.js.map
|