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