@senitix/ui 0.4.2 → 0.4.3
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/{command-BPtg-XK3.cjs → command-BEpaOk-5.cjs} +2 -2
- package/dist/{command-BPtg-XK3.cjs.map → command-BEpaOk-5.cjs.map} +1 -1
- package/dist/{command-VraXPLVI.js → command-CYhMM7gX.js} +2 -2
- package/dist/{command-VraXPLVI.js.map → command-CYhMM7gX.js.map} +1 -1
- package/dist/components/builders/index.cjs.js +1 -1
- package/dist/components/builders/index.es.js +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +2 -2
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +1 -1
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +4 -4
- package/dist/{dialog-DO5i1PED.cjs → dialog-Cr9SYCaD.cjs} +2 -2
- package/dist/{dialog-DO5i1PED.cjs.map → dialog-Cr9SYCaD.cjs.map} +1 -1
- package/dist/{dialog-BFBDL8_i.js → dialog-MYAx3Qrc.js} +25 -20
- package/dist/{dialog-BFBDL8_i.js.map → dialog-MYAx3Qrc.js.map} +1 -1
- package/dist/{form-preview-C6WfeXyD.js → form-preview-Bm5xHtkw.js} +3 -3
- package/dist/{form-preview-C6WfeXyD.js.map → form-preview-Bm5xHtkw.js.map} +1 -1
- package/dist/{form-preview-BGdea5K7.cjs → form-preview-IPEZdspX.cjs} +2 -2
- package/dist/{form-preview-BGdea5K7.cjs.map → form-preview-IPEZdspX.cjs.map} +1 -1
- package/dist/full-calendar-4Ut52QNO.cjs +18 -0
- package/dist/full-calendar-4Ut52QNO.cjs.map +1 -0
- package/dist/{full-calendar-CjaDgutS.js → full-calendar-DD_tBy69.js} +288 -288
- package/dist/full-calendar-DD_tBy69.js.map +1 -0
- package/dist/{global-search-msFICB8l.cjs → global-search-DcBKVaM4.cjs} +2 -2
- package/dist/{global-search-msFICB8l.cjs.map → global-search-DcBKVaM4.cjs.map} +1 -1
- package/dist/{global-search-Dhv8goH8.js → global-search-Dul9CD6-.js} +3 -3
- package/dist/{global-search-Dhv8goH8.js.map → global-search-Dul9CD6-.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/{locale-selector-D0jV4-90.cjs → locale-selector-CRC0VBKl.cjs} +2 -2
- package/dist/{locale-selector-D0jV4-90.cjs.map → locale-selector-CRC0VBKl.cjs.map} +1 -1
- package/dist/{locale-selector-n75sM9qA.js → locale-selector-HuzfE0zZ.js} +4 -4
- package/dist/{locale-selector-n75sM9qA.js.map → locale-selector-HuzfE0zZ.js.map} +1 -1
- package/dist/{multi-select-DxN_LuXC.cjs → multi-select-Bj_kIDHE.cjs} +2 -2
- package/dist/{multi-select-DxN_LuXC.cjs.map → multi-select-Bj_kIDHE.cjs.map} +1 -1
- package/dist/{multi-select-D9akBt7B.js → multi-select-CPF7w871.js} +2 -2
- package/dist/{multi-select-D9akBt7B.js.map → multi-select-CPF7w871.js.map} +1 -1
- package/dist/{permission-matrix-CTQ1OiTO.js → permission-matrix-BRqw2RPb.js} +3 -3
- package/dist/{permission-matrix-CTQ1OiTO.js.map → permission-matrix-BRqw2RPb.js.map} +1 -1
- package/dist/{permission-matrix-DRu-cV44.cjs → permission-matrix-CqE8q8Hi.cjs} +2 -2
- package/dist/{permission-matrix-DRu-cV44.cjs.map → permission-matrix-CqE8q8Hi.cjs.map} +1 -1
- package/dist/{record-dialog-footer-CQPnqhfv.js → record-dialog-footer-DbH9A6eA.js} +3 -3
- package/dist/{record-dialog-footer-CQPnqhfv.js.map → record-dialog-footer-DbH9A6eA.js.map} +1 -1
- package/dist/{record-dialog-footer-DLH96eAV.cjs → record-dialog-footer-DpDxH5wX.cjs} +2 -2
- package/dist/{record-dialog-footer-DLH96eAV.cjs.map → record-dialog-footer-DpDxH5wX.cjs.map} +1 -1
- package/dist/{sheet-C0-aBGln.cjs → sheet-DTimb4SJ.cjs} +2 -2
- package/dist/{sheet-C0-aBGln.cjs.map → sheet-DTimb4SJ.cjs.map} +1 -1
- package/dist/{sheet-Cyq_eDFW.js → sheet-DgpAPCAp.js} +2 -2
- package/dist/{sheet-Cyq_eDFW.js.map → sheet-DgpAPCAp.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/full-calendar-CZMK_rPy.cjs +0 -18
- package/dist/full-calendar-CZMK_rPy.cjs.map +0 -1
- package/dist/full-calendar-CjaDgutS.js.map +0 -1
|
@@ -9,22 +9,22 @@ import { c as De, T as ee, a as te, b as re } from "./tooltip-Dee-pNPI.js";
|
|
|
9
9
|
import { B as le, C as $r } from "./badge-D0C_rP2l.js";
|
|
10
10
|
import { R as Br, C as Hr, d as Kr } from "./accordion-BwnJKrKm.js";
|
|
11
11
|
import { c as tt, d as U, b as Re, e as F, P as z, u as jr, k as rt, f as zr, j as ce, l as Wr, h as Ur } from "./scroll-area-CGNbDUBQ.js";
|
|
12
|
-
import { u as Yr, S as Xr, c as Gr, b as qr, d as Jr, f as
|
|
12
|
+
import { u as Yr, S as Xr, c as Gr, b as qr, d as Jr, f as oe } from "./select-Ce2C2acZ.js";
|
|
13
13
|
import { u as Zr } from "./use-toast-DG2qdYhl.js";
|
|
14
14
|
import * as Qr from "react-dom";
|
|
15
15
|
import { a as st } from "./index-D8-pHJim.js";
|
|
16
16
|
import { X as es } from "./x-BBkgEhUv.js";
|
|
17
|
-
import { m as at, R as ts, P as rs, T as ss, O as as, W as
|
|
17
|
+
import { m as at, R as ts, P as rs, T as ss, O as as, W as ns, C as os, k as is, l as ls, j as nt } from "./dialog-MYAx3Qrc.js";
|
|
18
18
|
import { L as cs } from "./label-CExiitfO.js";
|
|
19
19
|
import { C as ds, F as He, M as us } from "./map-pin-CHh0xl6i.js";
|
|
20
20
|
import { I as Ke, C as ms, T as fs } from "./progress-BPpsmZ48.js";
|
|
21
|
-
import { A as
|
|
21
|
+
import { A as ot, a as it, b as lt } from "./avatar-BlEcWE7T.js";
|
|
22
22
|
import { C as ct } from "./chevron-left-DD5mQuvf.js";
|
|
23
23
|
import { C as dt } from "./chevron-right-Di90aqSn.js";
|
|
24
24
|
import { i as Y, a as Ae, b as ut, s as Pe, e as Me, c as _e, d as ue, f as mt, g as ps } from "./calendar-86qoSnO7.js";
|
|
25
25
|
import { c as hs, t as W, n as gs, a as me, f as K, u as Z, s as ke, p as ft } from "./use-formatters-xeMS4gdV.js";
|
|
26
26
|
import { C as vs, a as bs, c as ws, d as ys, e as xs } from "./card-yxbWFvZ1.js";
|
|
27
|
-
import { S as ve } from "./sheet-
|
|
27
|
+
import { S as ve } from "./sheet-DgpAPCAp.js";
|
|
28
28
|
import { L as je } from "./loader-circle-CBVYGIRp.js";
|
|
29
29
|
import { F as Ns } from "./file-spreadsheet-EqZMR-mM.js";
|
|
30
30
|
import { S } from "./skeleton-C_dwS3_6.js";
|
|
@@ -104,8 +104,8 @@ var pt = "AlertDialog", [Is] = Re(pt, [
|
|
|
104
104
|
ht.displayName = pt;
|
|
105
105
|
var Fs = "AlertDialogTrigger", gt = d.forwardRef(
|
|
106
106
|
(t, s) => {
|
|
107
|
-
const { __scopeAlertDialog: r, ...a } = t,
|
|
108
|
-
return /* @__PURE__ */ e(ss, { ...
|
|
107
|
+
const { __scopeAlertDialog: r, ...a } = t, n = X(r);
|
|
108
|
+
return /* @__PURE__ */ e(ss, { ...n, ...a, ref: s });
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
gt.displayName = Fs;
|
|
@@ -116,28 +116,28 @@ var Os = "AlertDialogPortal", vt = (t) => {
|
|
|
116
116
|
vt.displayName = Os;
|
|
117
117
|
var Ls = "AlertDialogOverlay", bt = d.forwardRef(
|
|
118
118
|
(t, s) => {
|
|
119
|
-
const { __scopeAlertDialog: r, ...a } = t,
|
|
120
|
-
return /* @__PURE__ */ e(as, { ...
|
|
119
|
+
const { __scopeAlertDialog: r, ...a } = t, n = X(r);
|
|
120
|
+
return /* @__PURE__ */ e(as, { ...n, ...a, ref: s });
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
bt.displayName = Ls;
|
|
124
124
|
var q = "AlertDialogContent", [Vs, $s] = Is(q), Bs = /* @__PURE__ */ ks("AlertDialogContent"), wt = d.forwardRef(
|
|
125
125
|
(t, s) => {
|
|
126
|
-
const { __scopeAlertDialog: r, children: a, ...
|
|
126
|
+
const { __scopeAlertDialog: r, children: a, ...n } = t, c = X(r), o = d.useRef(null), m = U(s, o), l = d.useRef(null);
|
|
127
127
|
return /* @__PURE__ */ e(
|
|
128
|
-
|
|
128
|
+
ns,
|
|
129
129
|
{
|
|
130
130
|
contentName: q,
|
|
131
131
|
titleName: yt,
|
|
132
132
|
docsSlug: "alert-dialog",
|
|
133
133
|
children: /* @__PURE__ */ e(Vs, { scope: r, cancelRef: l, children: /* @__PURE__ */ f(
|
|
134
|
-
|
|
134
|
+
os,
|
|
135
135
|
{
|
|
136
136
|
role: "alertdialog",
|
|
137
137
|
...c,
|
|
138
|
-
...
|
|
138
|
+
...n,
|
|
139
139
|
ref: m,
|
|
140
|
-
onOpenAutoFocus: F(
|
|
140
|
+
onOpenAutoFocus: F(n.onOpenAutoFocus, (u) => {
|
|
141
141
|
var p;
|
|
142
142
|
u.preventDefault(), (p = l.current) == null || p.focus({ preventScroll: !0 });
|
|
143
143
|
}),
|
|
@@ -145,7 +145,7 @@ var q = "AlertDialogContent", [Vs, $s] = Is(q), Bs = /* @__PURE__ */ ks("AlertDi
|
|
|
145
145
|
onInteractOutside: (u) => u.preventDefault(),
|
|
146
146
|
children: [
|
|
147
147
|
/* @__PURE__ */ e(Bs, { children: a }),
|
|
148
|
-
/* @__PURE__ */ e(Ks, { contentRef:
|
|
148
|
+
/* @__PURE__ */ e(Ks, { contentRef: o })
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
) })
|
|
@@ -156,27 +156,27 @@ var q = "AlertDialogContent", [Vs, $s] = Is(q), Bs = /* @__PURE__ */ ks("AlertDi
|
|
|
156
156
|
wt.displayName = q;
|
|
157
157
|
var yt = "AlertDialogTitle", xt = d.forwardRef(
|
|
158
158
|
(t, s) => {
|
|
159
|
-
const { __scopeAlertDialog: r, ...a } = t,
|
|
160
|
-
return /* @__PURE__ */ e(is, { ...
|
|
159
|
+
const { __scopeAlertDialog: r, ...a } = t, n = X(r);
|
|
160
|
+
return /* @__PURE__ */ e(is, { ...n, ...a, ref: s });
|
|
161
161
|
}
|
|
162
162
|
);
|
|
163
163
|
xt.displayName = yt;
|
|
164
164
|
var Nt = "AlertDialogDescription", Tt = d.forwardRef((t, s) => {
|
|
165
|
-
const { __scopeAlertDialog: r, ...a } = t,
|
|
166
|
-
return /* @__PURE__ */ e(ls, { ...
|
|
165
|
+
const { __scopeAlertDialog: r, ...a } = t, n = X(r);
|
|
166
|
+
return /* @__PURE__ */ e(ls, { ...n, ...a, ref: s });
|
|
167
167
|
});
|
|
168
168
|
Tt.displayName = Nt;
|
|
169
169
|
var Hs = "AlertDialogAction", St = d.forwardRef(
|
|
170
170
|
(t, s) => {
|
|
171
|
-
const { __scopeAlertDialog: r, ...a } = t,
|
|
172
|
-
return /* @__PURE__ */ e(
|
|
171
|
+
const { __scopeAlertDialog: r, ...a } = t, n = X(r);
|
|
172
|
+
return /* @__PURE__ */ e(nt, { ...n, ...a, ref: s });
|
|
173
173
|
}
|
|
174
174
|
);
|
|
175
175
|
St.displayName = Hs;
|
|
176
176
|
var Et = "AlertDialogCancel", Ct = d.forwardRef(
|
|
177
177
|
(t, s) => {
|
|
178
|
-
const { __scopeAlertDialog: r, ...a } = t, { cancelRef:
|
|
179
|
-
return /* @__PURE__ */ e(
|
|
178
|
+
const { __scopeAlertDialog: r, ...a } = t, { cancelRef: n } = $s(Et, r), c = X(r), o = U(s, n);
|
|
179
|
+
return /* @__PURE__ */ e(nt, { ...c, ...a, ref: o });
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
182
|
Ct.displayName = Et;
|
|
@@ -195,7 +195,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
195
195
|
) || console.warn(s);
|
|
196
196
|
}, [s, t]), null;
|
|
197
197
|
}, js = ht, zs = gt, Ws = vt, Dt = bt, Rt = wt, At = St, Pt = Ct, Mt = xt, _t = Tt;
|
|
198
|
-
const Us = js,
|
|
198
|
+
const Us = js, Qn = zs, Ys = Ws, kt = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
199
199
|
Dt,
|
|
200
200
|
{
|
|
201
201
|
className: y(
|
|
@@ -214,7 +214,7 @@ const It = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ f(Ys, { c
|
|
|
214
214
|
{
|
|
215
215
|
ref: r,
|
|
216
216
|
className: y(
|
|
217
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg
|
|
217
|
+
"dialog-animate fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-top-[15%] data-[state=open]:slide-in-from-top-[20%] sm:rounded-lg",
|
|
218
218
|
t
|
|
219
219
|
),
|
|
220
220
|
...s
|
|
@@ -267,9 +267,9 @@ const Xs = d.forwardRef(
|
|
|
267
267
|
variant: s = "default",
|
|
268
268
|
size: r = "default",
|
|
269
269
|
children: a,
|
|
270
|
-
options:
|
|
270
|
+
options: n,
|
|
271
271
|
onClick: c,
|
|
272
|
-
dropdownAlign:
|
|
272
|
+
dropdownAlign: o = "end",
|
|
273
273
|
disabled: m,
|
|
274
274
|
...l
|
|
275
275
|
}, u) => {
|
|
@@ -302,7 +302,7 @@ const Xs = d.forwardRef(
|
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
304
|
) }),
|
|
305
|
-
/* @__PURE__ */ e(qe, { align:
|
|
305
|
+
/* @__PURE__ */ e(qe, { align: o, children: n.map((i, g) => /* @__PURE__ */ f(
|
|
306
306
|
Je,
|
|
307
307
|
{
|
|
308
308
|
onClick: i.onClick,
|
|
@@ -350,9 +350,9 @@ const Gs = Ce(
|
|
|
350
350
|
variant: s,
|
|
351
351
|
size: r,
|
|
352
352
|
icon: a,
|
|
353
|
-
tooltip:
|
|
353
|
+
tooltip: n,
|
|
354
354
|
tooltipSide: c = "top",
|
|
355
|
-
loading:
|
|
355
|
+
loading: o = !1,
|
|
356
356
|
disabled: m,
|
|
357
357
|
...l
|
|
358
358
|
}, u) => {
|
|
@@ -361,9 +361,9 @@ const Gs = Ce(
|
|
|
361
361
|
{
|
|
362
362
|
ref: u,
|
|
363
363
|
className: y(Gs({ variant: s, size: r }), t),
|
|
364
|
-
disabled: m ||
|
|
364
|
+
disabled: m || o,
|
|
365
365
|
...l,
|
|
366
|
-
children:
|
|
366
|
+
children: o ? /* @__PURE__ */ f(
|
|
367
367
|
"svg",
|
|
368
368
|
{
|
|
369
369
|
className: "h-4 w-4 animate-spin",
|
|
@@ -395,9 +395,9 @@ const Gs = Ce(
|
|
|
395
395
|
) : a
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
|
-
return
|
|
398
|
+
return n ? /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f(ee, { children: [
|
|
399
399
|
/* @__PURE__ */ e(te, { asChild: !0, children: p }),
|
|
400
|
-
/* @__PURE__ */ e(re, { side: c, children: /* @__PURE__ */ e("p", { children:
|
|
400
|
+
/* @__PURE__ */ e(re, { side: c, children: /* @__PURE__ */ e("p", { children: n }) })
|
|
401
401
|
] }) }) : p;
|
|
402
402
|
}
|
|
403
403
|
);
|
|
@@ -408,13 +408,13 @@ const Js = d.forwardRef(
|
|
|
408
408
|
children: s,
|
|
409
409
|
badge: r,
|
|
410
410
|
badgeVariant: a = "destructive",
|
|
411
|
-
badgePosition:
|
|
411
|
+
badgePosition: n = "top-right",
|
|
412
412
|
showBadge: c = !0,
|
|
413
|
-
...
|
|
413
|
+
...o
|
|
414
414
|
}, m) => {
|
|
415
415
|
const l = c && r !== void 0 && r !== null && r !== "";
|
|
416
|
-
if (
|
|
417
|
-
return /* @__PURE__ */ f(j, { ref: m, className: y("gap-2", t), ...
|
|
416
|
+
if (n === "inline")
|
|
417
|
+
return /* @__PURE__ */ f(j, { ref: m, className: y("gap-2", t), ...o, children: [
|
|
418
418
|
s,
|
|
419
419
|
l && /* @__PURE__ */ e(le, { variant: a, className: "ml-1 h-5 min-w-5 rounded-full px-1.5", children: r })
|
|
420
420
|
] });
|
|
@@ -425,14 +425,14 @@ const Js = d.forwardRef(
|
|
|
425
425
|
"bottom-left": "-bottom-1 -left-1"
|
|
426
426
|
};
|
|
427
427
|
return /* @__PURE__ */ f("div", { className: "relative inline-flex", children: [
|
|
428
|
-
/* @__PURE__ */ e(j, { ref: m, className: t, ...
|
|
428
|
+
/* @__PURE__ */ e(j, { ref: m, className: t, ...o, children: s }),
|
|
429
429
|
l && /* @__PURE__ */ e(
|
|
430
430
|
le,
|
|
431
431
|
{
|
|
432
432
|
variant: a,
|
|
433
433
|
className: y(
|
|
434
434
|
"absolute flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs",
|
|
435
|
-
u[
|
|
435
|
+
u[n]
|
|
436
436
|
),
|
|
437
437
|
children: typeof r == "number" && r > 99 ? "99+" : r
|
|
438
438
|
}
|
|
@@ -441,7 +441,7 @@ const Js = d.forwardRef(
|
|
|
441
441
|
}
|
|
442
442
|
);
|
|
443
443
|
Js.displayName = "ButtonWithBadge";
|
|
444
|
-
const
|
|
444
|
+
const eo = Br, to = Hr, ro = Kr;
|
|
445
445
|
var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], jt = {
|
|
446
446
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
447
447
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
@@ -454,9 +454,9 @@ var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
454
454
|
const {
|
|
455
455
|
name: r,
|
|
456
456
|
min: a = 0,
|
|
457
|
-
max:
|
|
457
|
+
max: n = 100,
|
|
458
458
|
step: c = 1,
|
|
459
|
-
orientation:
|
|
459
|
+
orientation: o = "horizontal",
|
|
460
460
|
disabled: m = !1,
|
|
461
461
|
minStepsBetweenThumbs: l = 0,
|
|
462
462
|
defaultValue: u = [a],
|
|
@@ -468,7 +468,7 @@ var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
468
468
|
inverted: v = !1,
|
|
469
469
|
form: b,
|
|
470
470
|
...h
|
|
471
|
-
} = t, w = d.useRef(/* @__PURE__ */ new Set()), x = d.useRef(0), N =
|
|
471
|
+
} = t, w = d.useRef(/* @__PURE__ */ new Set()), x = d.useRef(0), N = o === "horizontal" ? ta : ra, [T = [], D] = Qe({
|
|
472
472
|
prop: p,
|
|
473
473
|
defaultProp: u,
|
|
474
474
|
onChange: (A) => {
|
|
@@ -488,9 +488,9 @@ var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
488
488
|
T[x.current] !== A && g(T);
|
|
489
489
|
}
|
|
490
490
|
function P(A, k, { commit: V } = { commit: !1 }) {
|
|
491
|
-
const C = ua(c), O = ma(Math.round((A - a) / c) * c + a, C), $ = rt(O, [a,
|
|
491
|
+
const C = ua(c), O = ma(Math.round((A - a) / c) * c + a, C), $ = rt(O, [a, n]);
|
|
492
492
|
D((H = []) => {
|
|
493
|
-
const B =
|
|
493
|
+
const B = na(H, $, k);
|
|
494
494
|
if (da(B, l * c)) {
|
|
495
495
|
x.current = B.indexOf($);
|
|
496
496
|
const G = String(B) !== String(H);
|
|
@@ -506,11 +506,11 @@ var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
506
506
|
name: r,
|
|
507
507
|
disabled: m,
|
|
508
508
|
min: a,
|
|
509
|
-
max:
|
|
509
|
+
max: n,
|
|
510
510
|
valueIndexToChangeRef: x,
|
|
511
511
|
thumbs: w.current,
|
|
512
512
|
values: T,
|
|
513
|
-
orientation:
|
|
513
|
+
orientation: o,
|
|
514
514
|
form: b,
|
|
515
515
|
children: /* @__PURE__ */ e(ye.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ e(ye.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ e(
|
|
516
516
|
N,
|
|
@@ -523,13 +523,13 @@ var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
523
523
|
m || (M.current = T);
|
|
524
524
|
}),
|
|
525
525
|
min: a,
|
|
526
|
-
max:
|
|
526
|
+
max: n,
|
|
527
527
|
inverted: v,
|
|
528
528
|
onSlideStart: m ? void 0 : R,
|
|
529
529
|
onSlideMove: m ? void 0 : L,
|
|
530
530
|
onSlideEnd: m ? void 0 : _,
|
|
531
531
|
onHomeKeyDown: () => !m && P(a, 0, { commit: !0 }),
|
|
532
|
-
onEndKeyDown: () => !m && P(
|
|
532
|
+
onEndKeyDown: () => !m && P(n, T.length - 1, { commit: !0 }),
|
|
533
533
|
onStepKeyDown: ({ event: A, direction: k }) => {
|
|
534
534
|
if (!m) {
|
|
535
535
|
const O = Ht.includes(A.key) || A.shiftKey && Kt.includes(A.key) ? 10 : 1, $ = x.current, H = T[$], B = c * O * k;
|
|
@@ -553,14 +553,14 @@ var [Ut, Yt] = zt(Q, {
|
|
|
553
553
|
const {
|
|
554
554
|
min: r,
|
|
555
555
|
max: a,
|
|
556
|
-
dir:
|
|
556
|
+
dir: n,
|
|
557
557
|
inverted: c,
|
|
558
|
-
onSlideStart:
|
|
558
|
+
onSlideStart: o,
|
|
559
559
|
onSlideMove: m,
|
|
560
560
|
onSlideEnd: l,
|
|
561
561
|
onStepKeyDown: u,
|
|
562
562
|
...p
|
|
563
|
-
} = t, [i, g] = d.useState(null), v = U(s, (N) => g(N)), b = d.useRef(void 0), h = jr(
|
|
563
|
+
} = t, [i, g] = d.useState(null), v = U(s, (N) => g(N)), b = d.useRef(void 0), h = jr(n), w = h === "ltr", x = w && !c || !w && c;
|
|
564
564
|
function E(N) {
|
|
565
565
|
const T = b.current || i.getBoundingClientRect(), D = [0, T.width], R = Ie(D, x ? [r, a] : [a, r]);
|
|
566
566
|
return b.current = T, R(N - T.left);
|
|
@@ -586,7 +586,7 @@ var [Ut, Yt] = zt(Q, {
|
|
|
586
586
|
},
|
|
587
587
|
onSlideStart: (N) => {
|
|
588
588
|
const T = E(N.clientX);
|
|
589
|
-
|
|
589
|
+
o == null || o(T);
|
|
590
590
|
},
|
|
591
591
|
onSlideMove: (N) => {
|
|
592
592
|
const T = E(N.clientX);
|
|
@@ -609,13 +609,13 @@ var [Ut, Yt] = zt(Q, {
|
|
|
609
609
|
const {
|
|
610
610
|
min: r,
|
|
611
611
|
max: a,
|
|
612
|
-
inverted:
|
|
612
|
+
inverted: n,
|
|
613
613
|
onSlideStart: c,
|
|
614
|
-
onSlideMove:
|
|
614
|
+
onSlideMove: o,
|
|
615
615
|
onSlideEnd: m,
|
|
616
616
|
onStepKeyDown: l,
|
|
617
617
|
...u
|
|
618
|
-
} = t, p = d.useRef(null), i = U(s, p), g = d.useRef(void 0), v = !
|
|
618
|
+
} = t, p = d.useRef(null), i = U(s, p), g = d.useRef(void 0), v = !n;
|
|
619
619
|
function b(h) {
|
|
620
620
|
const w = g.current || p.current.getBoundingClientRect(), x = [0, w.height], N = Ie(x, v ? [a, r] : [r, a]);
|
|
621
621
|
return g.current = w, N(h - w.top);
|
|
@@ -644,7 +644,7 @@ var [Ut, Yt] = zt(Q, {
|
|
|
644
644
|
},
|
|
645
645
|
onSlideMove: (h) => {
|
|
646
646
|
const w = b(h.clientY);
|
|
647
|
-
|
|
647
|
+
o == null || o(w);
|
|
648
648
|
},
|
|
649
649
|
onSlideEnd: () => {
|
|
650
650
|
g.current = void 0, m == null || m();
|
|
@@ -663,9 +663,9 @@ var [Ut, Yt] = zt(Q, {
|
|
|
663
663
|
const {
|
|
664
664
|
__scopeSlider: r,
|
|
665
665
|
onSlideStart: a,
|
|
666
|
-
onSlideMove:
|
|
666
|
+
onSlideMove: n,
|
|
667
667
|
onSlideEnd: c,
|
|
668
|
-
onHomeKeyDown:
|
|
668
|
+
onHomeKeyDown: o,
|
|
669
669
|
onEndKeyDown: m,
|
|
670
670
|
onStepKeyDown: l,
|
|
671
671
|
...u
|
|
@@ -676,14 +676,14 @@ var [Ut, Yt] = zt(Q, {
|
|
|
676
676
|
...u,
|
|
677
677
|
ref: s,
|
|
678
678
|
onKeyDown: F(t.onKeyDown, (i) => {
|
|
679
|
-
i.key === "Home" ? (
|
|
679
|
+
i.key === "Home" ? (o(i), i.preventDefault()) : i.key === "End" ? (m(i), i.preventDefault()) : Ht.concat(Kt).includes(i.key) && (l(i), i.preventDefault());
|
|
680
680
|
}),
|
|
681
681
|
onPointerDown: F(t.onPointerDown, (i) => {
|
|
682
682
|
const g = i.target;
|
|
683
683
|
g.setPointerCapture(i.pointerId), i.preventDefault(), p.thumbs.has(g) ? g.focus() : a(i);
|
|
684
684
|
}),
|
|
685
685
|
onPointerMove: F(t.onPointerMove, (i) => {
|
|
686
|
-
i.target.hasPointerCapture(i.pointerId) &&
|
|
686
|
+
i.target.hasPointerCapture(i.pointerId) && n(i);
|
|
687
687
|
}),
|
|
688
688
|
onPointerUp: F(t.onPointerUp, (i) => {
|
|
689
689
|
const g = i.target;
|
|
@@ -694,12 +694,12 @@ var [Ut, Yt] = zt(Q, {
|
|
|
694
694
|
}
|
|
695
695
|
), Gt = "SliderTrack", qt = d.forwardRef(
|
|
696
696
|
(t, s) => {
|
|
697
|
-
const { __scopeSlider: r, ...a } = t,
|
|
697
|
+
const { __scopeSlider: r, ...a } = t, n = fe(Gt, r);
|
|
698
698
|
return /* @__PURE__ */ e(
|
|
699
699
|
z.span,
|
|
700
700
|
{
|
|
701
|
-
"data-disabled":
|
|
702
|
-
"data-orientation":
|
|
701
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
702
|
+
"data-orientation": n.orientation,
|
|
703
703
|
...a,
|
|
704
704
|
ref: s
|
|
705
705
|
}
|
|
@@ -709,14 +709,14 @@ var [Ut, Yt] = zt(Q, {
|
|
|
709
709
|
qt.displayName = Gt;
|
|
710
710
|
var xe = "SliderRange", Jt = d.forwardRef(
|
|
711
711
|
(t, s) => {
|
|
712
|
-
const { __scopeSlider: r, ...a } = t,
|
|
713
|
-
(g) => er(g,
|
|
712
|
+
const { __scopeSlider: r, ...a } = t, n = fe(xe, r), c = Yt(xe, r), o = d.useRef(null), m = U(s, o), l = n.values.length, u = n.values.map(
|
|
713
|
+
(g) => er(g, n.min, n.max)
|
|
714
714
|
), p = l > 1 ? Math.min(...u) : 0, i = 100 - Math.max(...u);
|
|
715
715
|
return /* @__PURE__ */ e(
|
|
716
716
|
z.span,
|
|
717
717
|
{
|
|
718
|
-
"data-orientation":
|
|
719
|
-
"data-disabled":
|
|
718
|
+
"data-orientation": n.orientation,
|
|
719
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
720
720
|
...a,
|
|
721
721
|
ref: m,
|
|
722
722
|
style: {
|
|
@@ -731,21 +731,21 @@ var xe = "SliderRange", Jt = d.forwardRef(
|
|
|
731
731
|
Jt.displayName = xe;
|
|
732
732
|
var Ne = "SliderThumb", Zt = d.forwardRef(
|
|
733
733
|
(t, s) => {
|
|
734
|
-
const r = Zs(t.__scopeSlider), [a,
|
|
734
|
+
const r = Zs(t.__scopeSlider), [a, n] = d.useState(null), c = U(s, (m) => n(m)), o = d.useMemo(
|
|
735
735
|
() => a ? r().findIndex((m) => m.ref.current === a) : -1,
|
|
736
736
|
[r, a]
|
|
737
737
|
);
|
|
738
|
-
return /* @__PURE__ */ e(sa, { ...t, ref: c, index:
|
|
738
|
+
return /* @__PURE__ */ e(sa, { ...t, ref: c, index: o });
|
|
739
739
|
}
|
|
740
740
|
), sa = d.forwardRef(
|
|
741
741
|
(t, s) => {
|
|
742
|
-
const { __scopeSlider: r, index: a, name:
|
|
742
|
+
const { __scopeSlider: r, index: a, name: n, ...c } = t, o = fe(Ne, r), m = Yt(Ne, r), [l, u] = d.useState(null), p = U(s, (E) => u(E)), i = l ? o.form || !!l.closest("form") : !0, g = Ir(l), v = o.values[a], b = v === void 0 ? 0 : er(v, o.min, o.max), h = oa(a, o.values.length), w = g == null ? void 0 : g[m.size], x = w ? la(w, b, m.direction) : 0;
|
|
743
743
|
return d.useEffect(() => {
|
|
744
744
|
if (l)
|
|
745
|
-
return
|
|
746
|
-
|
|
745
|
+
return o.thumbs.add(l), () => {
|
|
746
|
+
o.thumbs.delete(l);
|
|
747
747
|
};
|
|
748
|
-
}, [l,
|
|
748
|
+
}, [l, o.thumbs]), /* @__PURE__ */ f(
|
|
749
749
|
"span",
|
|
750
750
|
{
|
|
751
751
|
style: {
|
|
@@ -759,26 +759,26 @@ var Ne = "SliderThumb", Zt = d.forwardRef(
|
|
|
759
759
|
{
|
|
760
760
|
role: "slider",
|
|
761
761
|
"aria-label": t["aria-label"] || h,
|
|
762
|
-
"aria-valuemin":
|
|
762
|
+
"aria-valuemin": o.min,
|
|
763
763
|
"aria-valuenow": v,
|
|
764
|
-
"aria-valuemax":
|
|
765
|
-
"aria-orientation":
|
|
766
|
-
"data-orientation":
|
|
767
|
-
"data-disabled":
|
|
768
|
-
tabIndex:
|
|
764
|
+
"aria-valuemax": o.max,
|
|
765
|
+
"aria-orientation": o.orientation,
|
|
766
|
+
"data-orientation": o.orientation,
|
|
767
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
768
|
+
tabIndex: o.disabled ? void 0 : 0,
|
|
769
769
|
...c,
|
|
770
770
|
ref: p,
|
|
771
771
|
style: v === void 0 ? { display: "none" } : t.style,
|
|
772
772
|
onFocus: F(t.onFocus, () => {
|
|
773
|
-
|
|
773
|
+
o.valueIndexToChangeRef.current = a;
|
|
774
774
|
})
|
|
775
775
|
}
|
|
776
776
|
) }),
|
|
777
777
|
i && /* @__PURE__ */ e(
|
|
778
778
|
Qt,
|
|
779
779
|
{
|
|
780
|
-
name:
|
|
781
|
-
form:
|
|
780
|
+
name: n ?? (o.name ? o.name + (o.values.length > 1 ? "[]" : "") : void 0),
|
|
781
|
+
form: o.form,
|
|
782
782
|
value: v
|
|
783
783
|
},
|
|
784
784
|
a
|
|
@@ -791,16 +791,16 @@ var Ne = "SliderThumb", Zt = d.forwardRef(
|
|
|
791
791
|
Zt.displayName = Ne;
|
|
792
792
|
var aa = "RadioBubbleInput", Qt = d.forwardRef(
|
|
793
793
|
({ __scopeSlider: t, value: s, ...r }, a) => {
|
|
794
|
-
const
|
|
794
|
+
const n = d.useRef(null), c = U(n, a), o = Yr(s);
|
|
795
795
|
return d.useEffect(() => {
|
|
796
|
-
const m =
|
|
796
|
+
const m = n.current;
|
|
797
797
|
if (!m) return;
|
|
798
798
|
const l = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
799
|
-
if (
|
|
799
|
+
if (o !== s && p) {
|
|
800
800
|
const i = new Event("input", { bubbles: !0 });
|
|
801
801
|
p.call(m, s), m.dispatchEvent(i);
|
|
802
802
|
}
|
|
803
|
-
}, [
|
|
803
|
+
}, [o, s]), /* @__PURE__ */ e(
|
|
804
804
|
z.input,
|
|
805
805
|
{
|
|
806
806
|
style: { display: "none" },
|
|
@@ -812,20 +812,20 @@ var aa = "RadioBubbleInput", Qt = d.forwardRef(
|
|
|
812
812
|
}
|
|
813
813
|
);
|
|
814
814
|
Qt.displayName = aa;
|
|
815
|
-
function
|
|
815
|
+
function na(t = [], s, r) {
|
|
816
816
|
const a = [...t];
|
|
817
|
-
return a[r] = s, a.sort((
|
|
817
|
+
return a[r] = s, a.sort((n, c) => n - c);
|
|
818
818
|
}
|
|
819
819
|
function er(t, s, r) {
|
|
820
820
|
const c = 100 / (r - s) * (t - s);
|
|
821
821
|
return rt(c, [0, 100]);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function oa(t, s) {
|
|
824
824
|
return s > 2 ? `Value ${t + 1} of ${s}` : s === 2 ? ["Minimum", "Maximum"][t] : void 0;
|
|
825
825
|
}
|
|
826
826
|
function ia(t, s) {
|
|
827
827
|
if (t.length === 1) return 0;
|
|
828
|
-
const r = t.map((
|
|
828
|
+
const r = t.map((n) => Math.abs(n - s)), a = Math.min(...r);
|
|
829
829
|
return r.indexOf(a);
|
|
830
830
|
}
|
|
831
831
|
function la(t, s, r) {
|
|
@@ -875,9 +875,9 @@ var Fe = "ToastProvider", [Oe, va, ba] = et("Toast"), [rr] = Re("Toast", [ba]),
|
|
|
875
875
|
__scopeToast: s,
|
|
876
876
|
label: r = "Notification",
|
|
877
877
|
duration: a = 5e3,
|
|
878
|
-
swipeDirection:
|
|
878
|
+
swipeDirection: n = "right",
|
|
879
879
|
swipeThreshold: c = 50,
|
|
880
|
-
children:
|
|
880
|
+
children: o
|
|
881
881
|
} = t, [m, l] = d.useState(null), [u, p] = d.useState(0), i = d.useRef(!1), g = d.useRef(!1);
|
|
882
882
|
return r.trim() || console.error(
|
|
883
883
|
`Invalid prop \`label\` supplied to \`${Fe}\`. Expected non-empty \`string\`.`
|
|
@@ -887,7 +887,7 @@ var Fe = "ToastProvider", [Oe, va, ba] = et("Toast"), [rr] = Re("Toast", [ba]),
|
|
|
887
887
|
scope: s,
|
|
888
888
|
label: r,
|
|
889
889
|
duration: a,
|
|
890
|
-
swipeDirection:
|
|
890
|
+
swipeDirection: n,
|
|
891
891
|
swipeThreshold: c,
|
|
892
892
|
toastCount: u,
|
|
893
893
|
viewport: m,
|
|
@@ -896,19 +896,19 @@ var Fe = "ToastProvider", [Oe, va, ba] = et("Toast"), [rr] = Re("Toast", [ba]),
|
|
|
896
896
|
onToastRemove: d.useCallback(() => p((v) => v - 1), []),
|
|
897
897
|
isFocusedToastEscapeKeyDownRef: i,
|
|
898
898
|
isClosePausedRef: g,
|
|
899
|
-
children:
|
|
899
|
+
children: o
|
|
900
900
|
}
|
|
901
901
|
) });
|
|
902
902
|
};
|
|
903
903
|
sr.displayName = Fe;
|
|
904
|
-
var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.viewportResume",
|
|
904
|
+
var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.viewportResume", nr = d.forwardRef(
|
|
905
905
|
(t, s) => {
|
|
906
906
|
const {
|
|
907
907
|
__scopeToast: r,
|
|
908
908
|
hotkey: a = ya,
|
|
909
|
-
label:
|
|
909
|
+
label: n = "Notifications ({hotkey})",
|
|
910
910
|
...c
|
|
911
|
-
} = t,
|
|
911
|
+
} = t, o = pe(ar, r), m = va(r), l = d.useRef(null), u = d.useRef(null), p = d.useRef(null), i = d.useRef(null), g = U(s, i, o.onViewportChange), v = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = o.toastCount > 0;
|
|
912
912
|
d.useEffect(() => {
|
|
913
913
|
const w = (x) => {
|
|
914
914
|
var N;
|
|
@@ -919,14 +919,14 @@ var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.v
|
|
|
919
919
|
const w = l.current, x = i.current;
|
|
920
920
|
if (b && w && x) {
|
|
921
921
|
const E = () => {
|
|
922
|
-
if (!
|
|
922
|
+
if (!o.isClosePausedRef.current) {
|
|
923
923
|
const M = new CustomEvent(Te);
|
|
924
|
-
x.dispatchEvent(M),
|
|
924
|
+
x.dispatchEvent(M), o.isClosePausedRef.current = !0;
|
|
925
925
|
}
|
|
926
926
|
}, N = () => {
|
|
927
|
-
if (
|
|
927
|
+
if (o.isClosePausedRef.current) {
|
|
928
928
|
const M = new CustomEvent(Se);
|
|
929
|
-
x.dispatchEvent(M),
|
|
929
|
+
x.dispatchEvent(M), o.isClosePausedRef.current = !1;
|
|
930
930
|
}
|
|
931
931
|
}, T = (M) => {
|
|
932
932
|
!w.contains(M.relatedTarget) && N();
|
|
@@ -937,7 +937,7 @@ var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.v
|
|
|
937
937
|
w.removeEventListener("focusin", E), w.removeEventListener("focusout", T), w.removeEventListener("pointermove", E), w.removeEventListener("pointerleave", D), window.removeEventListener("blur", E), window.removeEventListener("focus", N);
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
|
-
}, [b,
|
|
940
|
+
}, [b, o.isClosePausedRef]);
|
|
941
941
|
const h = d.useCallback(
|
|
942
942
|
({ tabbingDirection: w }) => {
|
|
943
943
|
const E = m().map((N) => {
|
|
@@ -971,7 +971,7 @@ var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.v
|
|
|
971
971
|
{
|
|
972
972
|
ref: l,
|
|
973
973
|
role: "region",
|
|
974
|
-
"aria-label":
|
|
974
|
+
"aria-label": n.replace("{hotkey}", v),
|
|
975
975
|
tabIndex: -1,
|
|
976
976
|
style: { pointerEvents: b ? void 0 : "none" },
|
|
977
977
|
children: [
|
|
@@ -1005,32 +1005,32 @@ var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.v
|
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
|
-
|
|
1009
|
-
var
|
|
1008
|
+
nr.displayName = ar;
|
|
1009
|
+
var or = "ToastFocusProxy", Ee = d.forwardRef(
|
|
1010
1010
|
(t, s) => {
|
|
1011
|
-
const { __scopeToast: r, onFocusFromOutsideViewport: a, ...
|
|
1011
|
+
const { __scopeToast: r, onFocusFromOutsideViewport: a, ...n } = t, c = pe(or, r);
|
|
1012
1012
|
return /* @__PURE__ */ e(
|
|
1013
1013
|
st,
|
|
1014
1014
|
{
|
|
1015
1015
|
tabIndex: 0,
|
|
1016
|
-
...
|
|
1016
|
+
...n,
|
|
1017
1017
|
ref: s,
|
|
1018
1018
|
style: { position: "fixed" },
|
|
1019
|
-
onFocus: (
|
|
1019
|
+
onFocus: (o) => {
|
|
1020
1020
|
var u;
|
|
1021
|
-
const m =
|
|
1021
|
+
const m = o.relatedTarget;
|
|
1022
1022
|
!((u = c.viewport) != null && u.contains(m)) && a();
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
}
|
|
1027
1027
|
);
|
|
1028
|
-
Ee.displayName =
|
|
1028
|
+
Ee.displayName = or;
|
|
1029
1029
|
var ae = "Toast", xa = "toast.swipeStart", Na = "toast.swipeMove", Ta = "toast.swipeCancel", Sa = "toast.swipeEnd", ir = d.forwardRef(
|
|
1030
1030
|
(t, s) => {
|
|
1031
|
-
const { forceMount: r, open: a, defaultOpen:
|
|
1031
|
+
const { forceMount: r, open: a, defaultOpen: n, onOpenChange: c, ...o } = t, [m, l] = Qe({
|
|
1032
1032
|
prop: a,
|
|
1033
|
-
defaultProp:
|
|
1033
|
+
defaultProp: n ?? !0,
|
|
1034
1034
|
onChange: c,
|
|
1035
1035
|
caller: ae
|
|
1036
1036
|
});
|
|
@@ -1038,7 +1038,7 @@ var ae = "Toast", xa = "toast.swipeStart", Na = "toast.swipeMove", Ta = "toast.s
|
|
|
1038
1038
|
Da,
|
|
1039
1039
|
{
|
|
1040
1040
|
open: m,
|
|
1041
|
-
...
|
|
1041
|
+
...o,
|
|
1042
1042
|
ref: s,
|
|
1043
1043
|
onClose: () => l(!1),
|
|
1044
1044
|
onPause: ce(t.onPause),
|
|
@@ -1070,9 +1070,9 @@ var [Ea, Ca] = rr(ae, {
|
|
|
1070
1070
|
const {
|
|
1071
1071
|
__scopeToast: r,
|
|
1072
1072
|
type: a = "foreground",
|
|
1073
|
-
duration:
|
|
1073
|
+
duration: n,
|
|
1074
1074
|
open: c,
|
|
1075
|
-
onClose:
|
|
1075
|
+
onClose: o,
|
|
1076
1076
|
onEscapeKeyDown: m,
|
|
1077
1077
|
onPause: l,
|
|
1078
1078
|
onResume: u,
|
|
@@ -1081,9 +1081,9 @@ var [Ea, Ca] = rr(ae, {
|
|
|
1081
1081
|
onSwipeCancel: g,
|
|
1082
1082
|
onSwipeEnd: v,
|
|
1083
1083
|
...b
|
|
1084
|
-
} = t, h = pe(ae, r), [w, x] = d.useState(null), E = U(s, (C) => x(C)), N = d.useRef(null), T = d.useRef(null), D =
|
|
1084
|
+
} = t, h = pe(ae, r), [w, x] = d.useState(null), E = U(s, (C) => x(C)), N = d.useRef(null), T = d.useRef(null), D = n || h.duration, M = d.useRef(0), R = d.useRef(D), L = d.useRef(0), { onToastAdd: _, onToastRemove: P } = h, A = ce(() => {
|
|
1085
1085
|
var O;
|
|
1086
|
-
(w == null ? void 0 : w.contains(document.activeElement)) && ((O = h.viewport) == null || O.focus()),
|
|
1086
|
+
(w == null ? void 0 : w.contains(document.activeElement)) && ((O = h.viewport) == null || O.focus()), o();
|
|
1087
1087
|
}), k = d.useCallback(
|
|
1088
1088
|
(C) => {
|
|
1089
1089
|
!C || C === 1 / 0 || (window.clearTimeout(L.current), M.current = (/* @__PURE__ */ new Date()).getTime(), L.current = window.setTimeout(A, C));
|
|
@@ -1142,10 +1142,10 @@ var [Ea, Ca] = rr(ae, {
|
|
|
1142
1142
|
}),
|
|
1143
1143
|
onPointerMove: F(t.onPointerMove, (C) => {
|
|
1144
1144
|
if (!N.current) return;
|
|
1145
|
-
const O = C.clientX - N.current.x, $ = C.clientY - N.current.y, H = !!T.current, B = ["left", "right"].includes(h.swipeDirection), G = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, Mr = B ? G(0, O) : 0, _r = B ? 0 : G(0, $), ge = C.pointerType === "touch" ? 10 : 2,
|
|
1146
|
-
H ? (T.current =
|
|
1145
|
+
const O = C.clientX - N.current.x, $ = C.clientY - N.current.y, H = !!T.current, B = ["left", "right"].includes(h.swipeDirection), G = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, Mr = B ? G(0, O) : 0, _r = B ? 0 : G(0, $), ge = C.pointerType === "touch" ? 10 : 2, ne = { x: Mr, y: _r }, Be = { originalEvent: C, delta: ne };
|
|
1146
|
+
H ? (T.current = ne, ie(Na, i, Be, {
|
|
1147
1147
|
discrete: !1
|
|
1148
|
-
})) : We(
|
|
1148
|
+
})) : We(ne, h.swipeDirection, ge) ? (T.current = ne, ie(xa, p, Be, {
|
|
1149
1149
|
discrete: !1
|
|
1150
1150
|
}), C.target.setPointerCapture(C.pointerId)) : (Math.abs(O) > ge || Math.abs($) > ge) && (N.current = null);
|
|
1151
1151
|
}),
|
|
@@ -1176,12 +1176,12 @@ var [Ea, Ca] = rr(ae, {
|
|
|
1176
1176
|
] }) : null;
|
|
1177
1177
|
}
|
|
1178
1178
|
), Ra = (t) => {
|
|
1179
|
-
const { __scopeToast: s, children: r, ...a } = t,
|
|
1180
|
-
return Ma(() =>
|
|
1179
|
+
const { __scopeToast: s, children: r, ...a } = t, n = pe(ae, s), [c, o] = d.useState(!1), [m, l] = d.useState(!1);
|
|
1180
|
+
return Ma(() => o(!0)), d.useEffect(() => {
|
|
1181
1181
|
const u = window.setTimeout(() => l(!0), 1e3);
|
|
1182
1182
|
return () => window.clearTimeout(u);
|
|
1183
1183
|
}, []), m ? null : /* @__PURE__ */ e(Lr, { asChild: !0, children: /* @__PURE__ */ e(st, { ...a, children: c && /* @__PURE__ */ f(se, { children: [
|
|
1184
|
-
|
|
1184
|
+
n.label,
|
|
1185
1185
|
" ",
|
|
1186
1186
|
r
|
|
1187
1187
|
] }) }) });
|
|
@@ -1210,27 +1210,27 @@ var dr = "ToastAction", ur = d.forwardRef(
|
|
|
1210
1210
|
ur.displayName = dr;
|
|
1211
1211
|
var mr = "ToastClose", Le = d.forwardRef(
|
|
1212
1212
|
(t, s) => {
|
|
1213
|
-
const { __scopeToast: r, ...a } = t,
|
|
1213
|
+
const { __scopeToast: r, ...a } = t, n = Ca(mr, r);
|
|
1214
1214
|
return /* @__PURE__ */ e(fr, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1215
1215
|
z.button,
|
|
1216
1216
|
{
|
|
1217
1217
|
type: "button",
|
|
1218
1218
|
...a,
|
|
1219
1219
|
ref: s,
|
|
1220
|
-
onClick: F(t.onClick,
|
|
1220
|
+
onClick: F(t.onClick, n.onClose)
|
|
1221
1221
|
}
|
|
1222
1222
|
) });
|
|
1223
1223
|
}
|
|
1224
1224
|
);
|
|
1225
1225
|
Le.displayName = mr;
|
|
1226
1226
|
var fr = d.forwardRef((t, s) => {
|
|
1227
|
-
const { __scopeToast: r, altText: a, ...
|
|
1227
|
+
const { __scopeToast: r, altText: a, ...n } = t;
|
|
1228
1228
|
return /* @__PURE__ */ e(
|
|
1229
1229
|
z.div,
|
|
1230
1230
|
{
|
|
1231
1231
|
"data-radix-toast-announce-exclude": "",
|
|
1232
1232
|
"data-radix-toast-announce-alt": a || void 0,
|
|
1233
|
-
...
|
|
1233
|
+
...n,
|
|
1234
1234
|
ref: s
|
|
1235
1235
|
}
|
|
1236
1236
|
);
|
|
@@ -1239,23 +1239,23 @@ function pr(t) {
|
|
|
1239
1239
|
const s = [];
|
|
1240
1240
|
return Array.from(t.childNodes).forEach((a) => {
|
|
1241
1241
|
if (a.nodeType === a.TEXT_NODE && a.textContent && s.push(a.textContent), _a(a)) {
|
|
1242
|
-
const
|
|
1243
|
-
if (!
|
|
1242
|
+
const n = a.ariaHidden || a.hidden || a.style.display === "none", c = a.dataset.radixToastAnnounceExclude === "";
|
|
1243
|
+
if (!n)
|
|
1244
1244
|
if (c) {
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1245
|
+
const o = a.dataset.radixToastAnnounceAlt;
|
|
1246
|
+
o && s.push(o);
|
|
1247
1247
|
} else
|
|
1248
1248
|
s.push(...pr(a));
|
|
1249
1249
|
}
|
|
1250
1250
|
}), s;
|
|
1251
1251
|
}
|
|
1252
1252
|
function ie(t, s, r, { discrete: a }) {
|
|
1253
|
-
const
|
|
1254
|
-
s &&
|
|
1253
|
+
const n = r.originalEvent.currentTarget, c = new CustomEvent(t, { bubbles: !0, cancelable: !0, detail: r });
|
|
1254
|
+
s && n.addEventListener(t, s, { once: !0 }), a ? Wr(n, c) : n.dispatchEvent(c);
|
|
1255
1255
|
}
|
|
1256
1256
|
var We = (t, s, r = 0) => {
|
|
1257
|
-
const a = Math.abs(t.x),
|
|
1258
|
-
return s === "left" || s === "right" ? c && a > r : !c &&
|
|
1257
|
+
const a = Math.abs(t.x), n = Math.abs(t.y), c = a > n;
|
|
1258
|
+
return s === "left" || s === "right" ? c && a > r : !c && n > r;
|
|
1259
1259
|
};
|
|
1260
1260
|
function Ma(t = () => {
|
|
1261
1261
|
}) {
|
|
@@ -1273,8 +1273,8 @@ function _a(t) {
|
|
|
1273
1273
|
function ka(t) {
|
|
1274
1274
|
const s = [], r = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
|
|
1275
1275
|
acceptNode: (a) => {
|
|
1276
|
-
const
|
|
1277
|
-
return a.disabled || a.hidden ||
|
|
1276
|
+
const n = a.tagName === "INPUT" && a.type === "hidden";
|
|
1277
|
+
return a.disabled || a.hidden || n ? NodeFilter.FILTER_SKIP : a.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1278
1278
|
}
|
|
1279
1279
|
});
|
|
1280
1280
|
for (; r.nextNode(); ) s.push(r.currentNode);
|
|
@@ -1284,7 +1284,7 @@ function be(t) {
|
|
|
1284
1284
|
const s = document.activeElement;
|
|
1285
1285
|
return t.some((r) => r === s ? !0 : (r.focus(), document.activeElement !== s));
|
|
1286
1286
|
}
|
|
1287
|
-
var Ia = sr, hr =
|
|
1287
|
+
var Ia = sr, hr = nr, gr = ir, vr = lr, br = cr, wr = ur, yr = Le;
|
|
1288
1288
|
const Fa = Ia, xr = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
1289
1289
|
hr,
|
|
1290
1290
|
{
|
|
@@ -1358,16 +1358,16 @@ const Er = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
|
1358
1358
|
}
|
|
1359
1359
|
));
|
|
1360
1360
|
Er.displayName = br.displayName;
|
|
1361
|
-
function
|
|
1361
|
+
function so() {
|
|
1362
1362
|
const { toasts: t } = Zr();
|
|
1363
1363
|
return /* @__PURE__ */ f(Fa, { children: [
|
|
1364
|
-
t.map(function({ id: s, title: r, description: a, action:
|
|
1364
|
+
t.map(function({ id: s, title: r, description: a, action: n, ...c }) {
|
|
1365
1365
|
return /* @__PURE__ */ f(Nr, { ...c, children: [
|
|
1366
1366
|
/* @__PURE__ */ f("div", { className: "grid gap-1", children: [
|
|
1367
1367
|
r && /* @__PURE__ */ e(Sr, { children: r }),
|
|
1368
1368
|
a && /* @__PURE__ */ e(Er, { children: a })
|
|
1369
1369
|
] }),
|
|
1370
|
-
|
|
1370
|
+
n,
|
|
1371
1371
|
/* @__PURE__ */ e(Tr, {})
|
|
1372
1372
|
] }, s);
|
|
1373
1373
|
}),
|
|
@@ -1404,11 +1404,11 @@ function he(t) {
|
|
|
1404
1404
|
return Y(t, Va(t));
|
|
1405
1405
|
}
|
|
1406
1406
|
function $e(t, s) {
|
|
1407
|
-
const r = +W(t), [a,
|
|
1407
|
+
const r = +W(t), [a, n] = [
|
|
1408
1408
|
+W(s.start),
|
|
1409
1409
|
+W(s.end)
|
|
1410
|
-
].sort((c,
|
|
1411
|
-
return r >= a && r <=
|
|
1410
|
+
].sort((c, o) => c - o);
|
|
1411
|
+
return r >= a && r <= n;
|
|
1412
1412
|
}
|
|
1413
1413
|
function de(t, s) {
|
|
1414
1414
|
const r = W(t);
|
|
@@ -1456,9 +1456,9 @@ const Ka = {
|
|
|
1456
1456
|
onOpenChange: s,
|
|
1457
1457
|
title: r,
|
|
1458
1458
|
description: a,
|
|
1459
|
-
confirmLabel:
|
|
1459
|
+
confirmLabel: n = "Confirm",
|
|
1460
1460
|
cancelLabel: c = "Cancel",
|
|
1461
|
-
onConfirm:
|
|
1461
|
+
onConfirm: o,
|
|
1462
1462
|
onCancel: m,
|
|
1463
1463
|
variant: l = "default",
|
|
1464
1464
|
loading: u = !1,
|
|
@@ -1466,7 +1466,7 @@ const Ka = {
|
|
|
1466
1466
|
confirmationPlaceholder: i = "Type to confirm"
|
|
1467
1467
|
}, g) => {
|
|
1468
1468
|
const [v, b] = d.useState(""), h = Ka[l], w = h.icon, x = p && v !== p || u, E = () => {
|
|
1469
|
-
|
|
1469
|
+
o(), b("");
|
|
1470
1470
|
}, N = () => {
|
|
1471
1471
|
m == null || m(), b(""), s(!1);
|
|
1472
1472
|
};
|
|
@@ -1518,7 +1518,7 @@ const Ka = {
|
|
|
1518
1518
|
className: y(
|
|
1519
1519
|
l === "destructive" && "bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
1520
1520
|
),
|
|
1521
|
-
children: u ? "Loading..." :
|
|
1521
|
+
children: u ? "Loading..." : n
|
|
1522
1522
|
}
|
|
1523
1523
|
)
|
|
1524
1524
|
] })
|
|
@@ -1536,13 +1536,13 @@ const we = {
|
|
|
1536
1536
|
avatars: s,
|
|
1537
1537
|
max: r = 4,
|
|
1538
1538
|
size: a = "md",
|
|
1539
|
-
showTooltip:
|
|
1539
|
+
showTooltip: n = !0,
|
|
1540
1540
|
onMoreClick: c,
|
|
1541
|
-
...
|
|
1541
|
+
...o
|
|
1542
1542
|
}, m) => {
|
|
1543
1543
|
const l = s.slice(0, r), u = s.length - r, p = u > 0, i = (v) => v.split(" ").map((b) => b[0]).join("").toUpperCase().slice(0, 2), g = (v, b) => {
|
|
1544
1544
|
const h = /* @__PURE__ */ f(
|
|
1545
|
-
|
|
1545
|
+
ot,
|
|
1546
1546
|
{
|
|
1547
1547
|
className: y(
|
|
1548
1548
|
we[a],
|
|
@@ -1556,15 +1556,15 @@ const we = {
|
|
|
1556
1556
|
},
|
|
1557
1557
|
b
|
|
1558
1558
|
);
|
|
1559
|
-
return v.href ? /* @__PURE__ */ e("a", { href: v.href, className: "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 rounded-full", children:
|
|
1559
|
+
return v.href ? /* @__PURE__ */ e("a", { href: v.href, className: "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 rounded-full", children: n ? /* @__PURE__ */ f(ee, { children: [
|
|
1560
1560
|
/* @__PURE__ */ e(te, { asChild: !0, children: h }),
|
|
1561
1561
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("p", { children: v.name }) })
|
|
1562
|
-
] }) : h }, b) :
|
|
1562
|
+
] }) : h }, b) : n ? /* @__PURE__ */ f(ee, { children: [
|
|
1563
1563
|
/* @__PURE__ */ e(te, { asChild: !0, children: h }),
|
|
1564
1564
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("p", { children: v.name }) })
|
|
1565
1565
|
] }, b) : h;
|
|
1566
1566
|
};
|
|
1567
|
-
return /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f("div", { ref: m, className: y("flex items-center", t), ...
|
|
1567
|
+
return /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f("div", { ref: m, className: y("flex items-center", t), ...o, children: [
|
|
1568
1568
|
l.map((v, b) => g(v, b)),
|
|
1569
1569
|
p && /* @__PURE__ */ f(ee, { children: [
|
|
1570
1570
|
/* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ f(
|
|
@@ -1615,25 +1615,25 @@ const Wa = {
|
|
|
1615
1615
|
name: s,
|
|
1616
1616
|
image: r,
|
|
1617
1617
|
status: a = "offline",
|
|
1618
|
-
showStatus:
|
|
1618
|
+
showStatus: n = !0,
|
|
1619
1619
|
size: c = "md",
|
|
1620
|
-
statusPosition:
|
|
1620
|
+
statusPosition: o = "bottom-right",
|
|
1621
1621
|
...m
|
|
1622
1622
|
}, l) => {
|
|
1623
1623
|
const u = (p) => p.split(" ").map((i) => i[0]).join("").toUpperCase().slice(0, 2);
|
|
1624
1624
|
return /* @__PURE__ */ f("div", { ref: l, className: y("relative inline-block", t), ...m, children: [
|
|
1625
|
-
/* @__PURE__ */ f(
|
|
1625
|
+
/* @__PURE__ */ f(ot, { className: Wa[c], children: [
|
|
1626
1626
|
r && /* @__PURE__ */ e(it, { src: r, alt: s }),
|
|
1627
1627
|
/* @__PURE__ */ e(lt, { children: u(s) })
|
|
1628
1628
|
] }),
|
|
1629
|
-
|
|
1629
|
+
n && /* @__PURE__ */ e(
|
|
1630
1630
|
"span",
|
|
1631
1631
|
{
|
|
1632
1632
|
className: y(
|
|
1633
1633
|
"absolute block rounded-full border-2 border-background",
|
|
1634
1634
|
Ua[c],
|
|
1635
1635
|
Ya[a],
|
|
1636
|
-
Xa[
|
|
1636
|
+
Xa[o]
|
|
1637
1637
|
),
|
|
1638
1638
|
title: a.charAt(0).toUpperCase() + a.slice(1)
|
|
1639
1639
|
}
|
|
@@ -1648,13 +1648,13 @@ const qa = d.forwardRef(
|
|
|
1648
1648
|
steps: s,
|
|
1649
1649
|
currentStep: r,
|
|
1650
1650
|
orientation: a = "horizontal",
|
|
1651
|
-
onStepClick:
|
|
1651
|
+
onStepClick: n,
|
|
1652
1652
|
allowClickPast: c = !1,
|
|
1653
|
-
showStepNumber:
|
|
1653
|
+
showStepNumber: o = !0,
|
|
1654
1654
|
...m
|
|
1655
1655
|
}, l) => {
|
|
1656
1656
|
const u = (p) => {
|
|
1657
|
-
|
|
1657
|
+
n && (c || p <= r) && n(p);
|
|
1658
1658
|
};
|
|
1659
1659
|
return /* @__PURE__ */ e(
|
|
1660
1660
|
"div",
|
|
@@ -1667,7 +1667,7 @@ const qa = d.forwardRef(
|
|
|
1667
1667
|
),
|
|
1668
1668
|
...m,
|
|
1669
1669
|
children: s.map((p, i) => {
|
|
1670
|
-
const g = i < r, v = i === r, b =
|
|
1670
|
+
const g = i < r, v = i === r, b = n && (c || i <= r);
|
|
1671
1671
|
return /* @__PURE__ */ f(d.Fragment, { children: [
|
|
1672
1672
|
/* @__PURE__ */ f(
|
|
1673
1673
|
"div",
|
|
@@ -1688,7 +1688,7 @@ const qa = d.forwardRef(
|
|
|
1688
1688
|
v && "border-primary text-primary",
|
|
1689
1689
|
!g && !v && "border-muted-foreground/30 text-muted-foreground"
|
|
1690
1690
|
),
|
|
1691
|
-
children: g ? /* @__PURE__ */ e($r, { className: "h-5 w-5" }) : p.icon ? p.icon :
|
|
1691
|
+
children: g ? /* @__PURE__ */ e($r, { className: "h-5 w-5" }) : p.icon ? p.icon : o ? i + 1 : null
|
|
1692
1692
|
}
|
|
1693
1693
|
),
|
|
1694
1694
|
/* @__PURE__ */ f(
|
|
@@ -1744,16 +1744,16 @@ const Ja = d.forwardRef(
|
|
|
1744
1744
|
value: s,
|
|
1745
1745
|
onChange: r,
|
|
1746
1746
|
minDate: a,
|
|
1747
|
-
maxDate:
|
|
1747
|
+
maxDate: n,
|
|
1748
1748
|
disabledDates: c = [],
|
|
1749
|
-
highlightedDates:
|
|
1749
|
+
highlightedDates: o = [],
|
|
1750
1750
|
...m
|
|
1751
1751
|
}, l) => {
|
|
1752
1752
|
const [u, p] = d.useState(s || /* @__PURE__ */ new Date()), i = Pe(u), g = Me(i), v = me(i), b = _e(g), h = [];
|
|
1753
1753
|
let w = v;
|
|
1754
1754
|
for (; w <= b; )
|
|
1755
1755
|
h.push(w), w = ue(w, 1);
|
|
1756
|
-
const x = (R) => a && R < a ||
|
|
1756
|
+
const x = (R) => a && R < a || n && R > n ? !0 : c.some((L) => Y(L, R)), E = (R) => o.some((L) => Y(L, R)), N = () => p(Pr(u)), T = () => p(Ae(u, 1)), D = (R) => {
|
|
1757
1757
|
x(R) || r == null || r(R);
|
|
1758
1758
|
}, M = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
1759
1759
|
return /* @__PURE__ */ f("div", { ref: l, className: y("w-64 rounded-lg border bg-card p-3", t), ...m, children: [
|
|
@@ -1818,40 +1818,40 @@ const Ja = d.forwardRef(
|
|
|
1818
1818
|
);
|
|
1819
1819
|
Ja.displayName = "MiniCalendar";
|
|
1820
1820
|
const Za = d.forwardRef(
|
|
1821
|
-
({ className: t, title: s, description: r, children: a, footer:
|
|
1821
|
+
({ className: t, title: s, description: r, children: a, footer: n, variant: c = "default", ...o }, m) => c === "card" ? /* @__PURE__ */ f(vs, { ref: m, className: t, ...o, children: [
|
|
1822
1822
|
/* @__PURE__ */ f(bs, { children: [
|
|
1823
1823
|
/* @__PURE__ */ e(ws, { className: "text-lg", children: s }),
|
|
1824
1824
|
r && /* @__PURE__ */ e(ys, { children: r })
|
|
1825
1825
|
] }),
|
|
1826
1826
|
/* @__PURE__ */ e(xs, { className: "space-y-4", children: a }),
|
|
1827
|
-
|
|
1827
|
+
n && /* @__PURE__ */ f(se, { children: [
|
|
1828
1828
|
/* @__PURE__ */ e(ve, {}),
|
|
1829
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2 p-4", children:
|
|
1829
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2 p-4", children: n })
|
|
1830
1830
|
] })
|
|
1831
|
-
] }) : /* @__PURE__ */ f("div", { ref: m, className: y("space-y-4", t), ...
|
|
1831
|
+
] }) : /* @__PURE__ */ f("div", { ref: m, className: y("space-y-4", t), ...o, children: [
|
|
1832
1832
|
/* @__PURE__ */ f("div", { children: [
|
|
1833
1833
|
/* @__PURE__ */ e("h3", { className: "text-lg font-medium", children: s }),
|
|
1834
1834
|
r && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: r })
|
|
1835
1835
|
] }),
|
|
1836
1836
|
/* @__PURE__ */ e(ve, {}),
|
|
1837
1837
|
/* @__PURE__ */ e("div", { className: "space-y-4", children: a }),
|
|
1838
|
-
|
|
1838
|
+
n && /* @__PURE__ */ f(se, { children: [
|
|
1839
1839
|
/* @__PURE__ */ e(ve, {}),
|
|
1840
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2", children:
|
|
1840
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2", children: n })
|
|
1841
1841
|
] })
|
|
1842
1842
|
] })
|
|
1843
1843
|
);
|
|
1844
1844
|
Za.displayName = "SettingsSection";
|
|
1845
1845
|
const Qa = d.forwardRef(
|
|
1846
|
-
({ className: t, label: s, description: r, children: a, htmlFor:
|
|
1846
|
+
({ className: t, label: s, description: r, children: a, htmlFor: n, ...c }, o) => /* @__PURE__ */ f(
|
|
1847
1847
|
"div",
|
|
1848
1848
|
{
|
|
1849
|
-
ref:
|
|
1849
|
+
ref: o,
|
|
1850
1850
|
className: y("flex items-start justify-between gap-4", t),
|
|
1851
1851
|
...c,
|
|
1852
1852
|
children: [
|
|
1853
1853
|
/* @__PURE__ */ f("div", { className: "space-y-0.5", children: [
|
|
1854
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
1854
|
+
/* @__PURE__ */ e("label", { htmlFor: n, className: "text-sm font-medium", children: s }),
|
|
1855
1855
|
r && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: r })
|
|
1856
1856
|
] }),
|
|
1857
1857
|
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: a })
|
|
@@ -1860,20 +1860,20 @@ const Qa = d.forwardRef(
|
|
|
1860
1860
|
)
|
|
1861
1861
|
);
|
|
1862
1862
|
Qa.displayName = "SettingsRow";
|
|
1863
|
-
const
|
|
1863
|
+
const en = [
|
|
1864
1864
|
{ format: "csv", label: "Export as CSV", icon: /* @__PURE__ */ e(He, { className: "h-4 w-4" }) },
|
|
1865
1865
|
{ format: "excel", label: "Export as Excel", icon: /* @__PURE__ */ e(Ns, { className: "h-4 w-4" }) },
|
|
1866
1866
|
{ format: "pdf", label: "Export as PDF", icon: /* @__PURE__ */ e(He, { className: "h-4 w-4" }) },
|
|
1867
1867
|
{ format: "json", label: "Export as JSON", icon: /* @__PURE__ */ e(Ds, { className: "h-4 w-4" }) }
|
|
1868
|
-
],
|
|
1868
|
+
], tn = d.forwardRef(
|
|
1869
1869
|
({
|
|
1870
1870
|
className: t,
|
|
1871
1871
|
onExport: s,
|
|
1872
|
-
options: r =
|
|
1872
|
+
options: r = en,
|
|
1873
1873
|
loading: a = !1,
|
|
1874
|
-
defaultFormat:
|
|
1874
|
+
defaultFormat: n = "csv",
|
|
1875
1875
|
showDropdown: c = !0,
|
|
1876
|
-
variant:
|
|
1876
|
+
variant: o = "outline",
|
|
1877
1877
|
size: m = "sm",
|
|
1878
1878
|
children: l,
|
|
1879
1879
|
...u
|
|
@@ -1890,12 +1890,12 @@ const eo = [
|
|
|
1890
1890
|
j,
|
|
1891
1891
|
{
|
|
1892
1892
|
ref: p,
|
|
1893
|
-
variant:
|
|
1893
|
+
variant: o,
|
|
1894
1894
|
size: m,
|
|
1895
1895
|
className: y("gap-2", t),
|
|
1896
1896
|
onClick: () => {
|
|
1897
1897
|
var h;
|
|
1898
|
-
return v(((h = r[0]) == null ? void 0 : h.format) ||
|
|
1898
|
+
return v(((h = r[0]) == null ? void 0 : h.format) || n);
|
|
1899
1899
|
},
|
|
1900
1900
|
disabled: b,
|
|
1901
1901
|
...u,
|
|
@@ -1909,7 +1909,7 @@ const eo = [
|
|
|
1909
1909
|
j,
|
|
1910
1910
|
{
|
|
1911
1911
|
ref: p,
|
|
1912
|
-
variant:
|
|
1912
|
+
variant: o,
|
|
1913
1913
|
size: m,
|
|
1914
1914
|
className: y("gap-2", t),
|
|
1915
1915
|
disabled: b,
|
|
@@ -1937,8 +1937,8 @@ const eo = [
|
|
|
1937
1937
|
] });
|
|
1938
1938
|
}
|
|
1939
1939
|
);
|
|
1940
|
-
|
|
1941
|
-
const
|
|
1940
|
+
tn.displayName = "ExportButton";
|
|
1941
|
+
const rn = d.forwardRef(
|
|
1942
1942
|
({ className: t, ...s }, r) => /* @__PURE__ */ f("div", { ref: r, className: y("space-y-3 rounded-lg border p-4", t), ...s, children: [
|
|
1943
1943
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/2" }),
|
|
1944
1944
|
/* @__PURE__ */ e(S, { className: "h-8 w-3/4" }),
|
|
@@ -1946,20 +1946,20 @@ const ro = d.forwardRef(
|
|
|
1946
1946
|
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1947
1947
|
] })
|
|
1948
1948
|
);
|
|
1949
|
-
|
|
1949
|
+
rn.displayName = "SkeletonCard";
|
|
1950
1950
|
const Ue = () => /* @__PURE__ */ f("div", { className: "space-y-3 rounded-lg border p-4", children: [
|
|
1951
1951
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/2" }),
|
|
1952
1952
|
/* @__PURE__ */ e(S, { className: "h-8 w-3/4" }),
|
|
1953
1953
|
/* @__PURE__ */ e(S, { className: "h-3 w-full" }),
|
|
1954
1954
|
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1955
|
-
] }),
|
|
1956
|
-
({ className: t, rows: s = 5, columns: r = 4, ...a },
|
|
1957
|
-
/* @__PURE__ */ e("div", { className: "flex gap-4 border-b pb-2", children: Array.from({ length: r }).map((c,
|
|
1958
|
-
Array.from({ length: s }).map((c,
|
|
1955
|
+
] }), sn = d.forwardRef(
|
|
1956
|
+
({ className: t, rows: s = 5, columns: r = 4, ...a }, n) => /* @__PURE__ */ f("div", { ref: n, className: y("space-y-2", t), ...a, children: [
|
|
1957
|
+
/* @__PURE__ */ e("div", { className: "flex gap-4 border-b pb-2", children: Array.from({ length: r }).map((c, o) => /* @__PURE__ */ e(S, { className: "h-4 flex-1" }, o)) }),
|
|
1958
|
+
Array.from({ length: s }).map((c, o) => /* @__PURE__ */ e("div", { className: "flex gap-4 py-2", children: Array.from({ length: r }).map((m, l) => /* @__PURE__ */ e(S, { className: "h-4 flex-1" }, l)) }, o))
|
|
1959
1959
|
] })
|
|
1960
1960
|
);
|
|
1961
|
-
|
|
1962
|
-
const
|
|
1961
|
+
sn.displayName = "SkeletonTable";
|
|
1962
|
+
const an = ({ rows: t = 5 }) => /* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
1963
1963
|
/* @__PURE__ */ f("div", { className: "flex gap-4 border-b pb-2", children: [
|
|
1964
1964
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1965
1965
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
@@ -1972,8 +1972,8 @@ const ao = ({ rows: t = 5 }) => /* @__PURE__ */ f("div", { className: "space-y-2
|
|
|
1972
1972
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1973
1973
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" })
|
|
1974
1974
|
] }, r))
|
|
1975
|
-
] }),
|
|
1976
|
-
({ className: t, items: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-3", t), ...r, children: Array.from({ length: s }).map((
|
|
1975
|
+
] }), nn = d.forwardRef(
|
|
1976
|
+
({ className: t, items: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-3", t), ...r, children: Array.from({ length: s }).map((n, c) => /* @__PURE__ */ f("div", { className: "flex items-center gap-3", children: [
|
|
1977
1977
|
/* @__PURE__ */ e(S, { className: "h-10 w-10 rounded-full" }),
|
|
1978
1978
|
/* @__PURE__ */ f("div", { className: "flex-1 space-y-1.5", children: [
|
|
1979
1979
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/3" }),
|
|
@@ -1981,14 +1981,14 @@ const ao = ({ rows: t = 5 }) => /* @__PURE__ */ f("div", { className: "space-y-2
|
|
|
1981
1981
|
] })
|
|
1982
1982
|
] }, c)) })
|
|
1983
1983
|
);
|
|
1984
|
-
|
|
1985
|
-
const
|
|
1984
|
+
nn.displayName = "SkeletonList";
|
|
1985
|
+
const on = ({ items: t = 3 }) => /* @__PURE__ */ e("div", { className: "space-y-3", children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ f("div", { className: "flex items-center gap-3", children: [
|
|
1986
1986
|
/* @__PURE__ */ e(S, { className: "h-10 w-10 rounded-full" }),
|
|
1987
1987
|
/* @__PURE__ */ f("div", { className: "flex-1 space-y-1.5", children: [
|
|
1988
1988
|
/* @__PURE__ */ e(S, { className: "h-4 w-1/3" }),
|
|
1989
1989
|
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1990
1990
|
] })
|
|
1991
|
-
] }, r)) }),
|
|
1991
|
+
] }, r)) }), ln = () => /* @__PURE__ */ f("div", { className: "space-y-4", children: [
|
|
1992
1992
|
/* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
1993
1993
|
/* @__PURE__ */ e(S, { className: "h-4 w-20" }),
|
|
1994
1994
|
/* @__PURE__ */ e(S, { className: "h-10 w-full" })
|
|
@@ -2002,7 +2002,7 @@ const no = ({ items: t = 3 }) => /* @__PURE__ */ e("div", { className: "space-y-
|
|
|
2002
2002
|
/* @__PURE__ */ e(S, { className: "h-24 w-full" })
|
|
2003
2003
|
] }),
|
|
2004
2004
|
/* @__PURE__ */ e(S, { className: "h-10 w-24" })
|
|
2005
|
-
] }),
|
|
2005
|
+
] }), cn = d.forwardRef(
|
|
2006
2006
|
({ className: t, ...s }, r) => /* @__PURE__ */ f("div", { ref: r, className: y("flex items-start gap-4", t), ...s, children: [
|
|
2007
2007
|
/* @__PURE__ */ e(S, { className: "h-20 w-20 rounded-full" }),
|
|
2008
2008
|
/* @__PURE__ */ f("div", { className: "flex-1 space-y-2", children: [
|
|
@@ -2012,20 +2012,20 @@ const no = ({ items: t = 3 }) => /* @__PURE__ */ e("div", { className: "space-y-
|
|
|
2012
2012
|
] })
|
|
2013
2013
|
] })
|
|
2014
2014
|
);
|
|
2015
|
-
|
|
2016
|
-
const
|
|
2015
|
+
cn.displayName = "SkeletonProfile";
|
|
2016
|
+
const dn = () => /* @__PURE__ */ f("div", { className: "flex items-start gap-4", children: [
|
|
2017
2017
|
/* @__PURE__ */ e(S, { className: "h-20 w-20 rounded-full" }),
|
|
2018
2018
|
/* @__PURE__ */ f("div", { className: "flex-1 space-y-2", children: [
|
|
2019
2019
|
/* @__PURE__ */ e(S, { className: "h-6 w-48" }),
|
|
2020
2020
|
/* @__PURE__ */ e(S, { className: "h-4 w-32" }),
|
|
2021
2021
|
/* @__PURE__ */ e(S, { className: "h-3 w-64" })
|
|
2022
2022
|
] })
|
|
2023
|
-
] }),
|
|
2023
|
+
] }), un = ({ count: t = 4 }) => /* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-4 md:grid-cols-4", children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ f("div", { className: "space-y-2 rounded-lg border p-4", children: [
|
|
2024
2024
|
/* @__PURE__ */ e(S, { className: "h-3 w-20" }),
|
|
2025
2025
|
/* @__PURE__ */ e(S, { className: "h-8 w-24" }),
|
|
2026
2026
|
/* @__PURE__ */ e(S, { className: "h-3 w-16" })
|
|
2027
|
-
] }, r)) }),
|
|
2028
|
-
({ className: t, lines: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-2", t), ...r, children: Array.from({ length: s }).map((
|
|
2027
|
+
] }, r)) }), mn = d.forwardRef(
|
|
2028
|
+
({ className: t, lines: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-2", t), ...r, children: Array.from({ length: s }).map((n, c) => /* @__PURE__ */ e(
|
|
2029
2029
|
S,
|
|
2030
2030
|
{
|
|
2031
2031
|
className: y("h-4", c === s - 1 ? "w-3/4" : "w-full")
|
|
@@ -2033,23 +2033,23 @@ const co = () => /* @__PURE__ */ f("div", { className: "flex items-start gap-4",
|
|
|
2033
2033
|
c
|
|
2034
2034
|
)) })
|
|
2035
2035
|
);
|
|
2036
|
-
|
|
2037
|
-
const
|
|
2038
|
-
({ className: t, variant: s = "card", count: r = 1, ...a },
|
|
2036
|
+
mn.displayName = "SkeletonText";
|
|
2037
|
+
const fn = d.forwardRef(
|
|
2038
|
+
({ className: t, variant: s = "card", count: r = 1, ...a }, n) => {
|
|
2039
2039
|
const c = () => {
|
|
2040
2040
|
switch (s) {
|
|
2041
2041
|
case "card":
|
|
2042
|
-
return Array.from({ length: r }).map((
|
|
2042
|
+
return Array.from({ length: r }).map((o, m) => /* @__PURE__ */ e(Ue, {}, m));
|
|
2043
2043
|
case "table":
|
|
2044
|
-
return /* @__PURE__ */ e(
|
|
2044
|
+
return /* @__PURE__ */ e(an, { rows: r });
|
|
2045
2045
|
case "list":
|
|
2046
|
-
return /* @__PURE__ */ e(
|
|
2046
|
+
return /* @__PURE__ */ e(on, { items: r });
|
|
2047
2047
|
case "form":
|
|
2048
|
-
return /* @__PURE__ */ e(
|
|
2048
|
+
return /* @__PURE__ */ e(ln, {});
|
|
2049
2049
|
case "profile":
|
|
2050
|
-
return /* @__PURE__ */ e(
|
|
2050
|
+
return /* @__PURE__ */ e(dn, {});
|
|
2051
2051
|
case "stats":
|
|
2052
|
-
return /* @__PURE__ */ e(
|
|
2052
|
+
return /* @__PURE__ */ e(un, { count: r });
|
|
2053
2053
|
default:
|
|
2054
2054
|
return /* @__PURE__ */ e(Ue, {});
|
|
2055
2055
|
}
|
|
@@ -2057,7 +2057,7 @@ const fo = d.forwardRef(
|
|
|
2057
2057
|
return /* @__PURE__ */ e(
|
|
2058
2058
|
"div",
|
|
2059
2059
|
{
|
|
2060
|
-
ref:
|
|
2060
|
+
ref: n,
|
|
2061
2061
|
className: y(s === "card" && r > 1 && "grid gap-4 md:grid-cols-2 lg:grid-cols-3", t),
|
|
2062
2062
|
...a,
|
|
2063
2063
|
children: c()
|
|
@@ -2065,8 +2065,8 @@ const fo = d.forwardRef(
|
|
|
2065
2065
|
);
|
|
2066
2066
|
}
|
|
2067
2067
|
);
|
|
2068
|
-
|
|
2069
|
-
const
|
|
2068
|
+
fn.displayName = "SkeletonLoader";
|
|
2069
|
+
const pn = {
|
|
2070
2070
|
beta: {
|
|
2071
2071
|
label: "Beta",
|
|
2072
2072
|
className: "bg-info/20 text-info hover:bg-info/30 border-info/30",
|
|
@@ -2092,14 +2092,14 @@ const po = {
|
|
|
2092
2092
|
className: "bg-destructive/20 text-destructive hover:bg-destructive/30 border-destructive/30",
|
|
2093
2093
|
defaultTooltip: "This feature is deprecated and will be removed"
|
|
2094
2094
|
}
|
|
2095
|
-
},
|
|
2096
|
-
({ className: t, variant: s = "beta", tooltip: r, showTooltip: a = !0, children:
|
|
2097
|
-
const m =
|
|
2095
|
+
}, hn = d.forwardRef(
|
|
2096
|
+
({ className: t, variant: s = "beta", tooltip: r, showTooltip: a = !0, children: n, ...c }, o) => {
|
|
2097
|
+
const m = pn[s], l = r || m.defaultTooltip, u = /* @__PURE__ */ e("span", { ref: o, children: /* @__PURE__ */ e(
|
|
2098
2098
|
le,
|
|
2099
2099
|
{
|
|
2100
2100
|
className: y("text-xs font-medium border", m.className, t),
|
|
2101
2101
|
...c,
|
|
2102
|
-
children:
|
|
2102
|
+
children: n || m.label
|
|
2103
2103
|
}
|
|
2104
2104
|
) });
|
|
2105
2105
|
return a ? /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f(ee, { children: [
|
|
@@ -2108,22 +2108,22 @@ const po = {
|
|
|
2108
2108
|
] }) }) : u;
|
|
2109
2109
|
}
|
|
2110
2110
|
);
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2111
|
+
hn.displayName = "BetaBadge";
|
|
2112
|
+
const gn = {
|
|
2113
2113
|
default: { bg: "bg-primary/10", text: "text-primary", border: "border-primary" },
|
|
2114
2114
|
work: { bg: "bg-blue-100", text: "text-blue-700", border: "border-blue-500" },
|
|
2115
2115
|
personal: { bg: "bg-green-100", text: "text-green-700", border: "border-green-500" },
|
|
2116
2116
|
meeting: { bg: "bg-purple-100", text: "text-purple-700", border: "border-purple-500" },
|
|
2117
2117
|
reminder: { bg: "bg-yellow-100", text: "text-yellow-700", border: "border-yellow-500" },
|
|
2118
2118
|
holiday: { bg: "bg-red-100", text: "text-red-700", border: "border-red-500" }
|
|
2119
|
-
}, I = (t) => typeof t == "string" ? ft(t) : t,
|
|
2119
|
+
}, I = (t) => typeof t == "string" ? ft(t) : t, vn = ({
|
|
2120
2120
|
date: t,
|
|
2121
2121
|
view: s,
|
|
2122
2122
|
onViewChange: r,
|
|
2123
2123
|
onNavigate: a,
|
|
2124
|
-
showViewSelector:
|
|
2124
|
+
showViewSelector: n = !0,
|
|
2125
2125
|
showNavigation: c = !0,
|
|
2126
|
-
showToday:
|
|
2126
|
+
showToday: o = !0
|
|
2127
2127
|
}) => {
|
|
2128
2128
|
const { t: m, formatDate: l } = Z(), u = () => {
|
|
2129
2129
|
switch (s) {
|
|
@@ -2165,29 +2165,29 @@ const go = {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
)
|
|
2167
2167
|
] }),
|
|
2168
|
-
|
|
2168
|
+
o && /* @__PURE__ */ e(j, { variant: "outline", size: "sm", onClick: () => a("today"), children: m("calendar.today") }),
|
|
2169
2169
|
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: u() })
|
|
2170
2170
|
] }),
|
|
2171
|
-
|
|
2171
|
+
n && /* @__PURE__ */ f(Xr, { value: s, onValueChange: (p) => r(p), children: [
|
|
2172
2172
|
/* @__PURE__ */ e(Gr, { className: "w-32", children: /* @__PURE__ */ e(qr, {}) }),
|
|
2173
2173
|
/* @__PURE__ */ f(Jr, { children: [
|
|
2174
|
-
/* @__PURE__ */ e(
|
|
2175
|
-
/* @__PURE__ */ e(
|
|
2176
|
-
/* @__PURE__ */ e(
|
|
2177
|
-
/* @__PURE__ */ e(
|
|
2174
|
+
/* @__PURE__ */ e(oe, { value: "month", children: m("calendar.month") }),
|
|
2175
|
+
/* @__PURE__ */ e(oe, { value: "week", children: m("calendar.week") }),
|
|
2176
|
+
/* @__PURE__ */ e(oe, { value: "day", children: m("calendar.day") }),
|
|
2177
|
+
/* @__PURE__ */ e(oe, { value: "agenda", children: m("calendar.agenda") })
|
|
2178
2178
|
] })
|
|
2179
2179
|
] })
|
|
2180
2180
|
] });
|
|
2181
2181
|
}, J = ({ event: t, compact: s = !1, onClick: r }) => {
|
|
2182
|
-
const { t: a, formatDate:
|
|
2182
|
+
const { t: a, formatDate: n } = Z(), c = t.category || "default", o = gn[c], m = I(t.start), l = I(t.end);
|
|
2183
2183
|
return s ? /* @__PURE__ */ f(
|
|
2184
2184
|
"button",
|
|
2185
2185
|
{
|
|
2186
2186
|
onClick: () => r == null ? void 0 : r(t),
|
|
2187
2187
|
className: y(
|
|
2188
2188
|
"w-full truncate rounded px-1 py-0.5 text-left text-xs",
|
|
2189
|
-
|
|
2190
|
-
|
|
2189
|
+
o.bg,
|
|
2190
|
+
o.text,
|
|
2191
2191
|
"hover:opacity-80 transition-opacity"
|
|
2192
2192
|
),
|
|
2193
2193
|
children: [
|
|
@@ -2204,9 +2204,9 @@ const go = {
|
|
|
2204
2204
|
{
|
|
2205
2205
|
className: y(
|
|
2206
2206
|
"w-full truncate rounded-md px-2 py-1 text-left text-sm border-l-2",
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2207
|
+
o.bg,
|
|
2208
|
+
o.text,
|
|
2209
|
+
o.border,
|
|
2210
2210
|
"hover:opacity-80 transition-opacity"
|
|
2211
2211
|
),
|
|
2212
2212
|
children: [
|
|
@@ -2222,13 +2222,13 @@ const go = {
|
|
|
2222
2222
|
/* @__PURE__ */ e(Es, { className: "w-80", align: "start", children: /* @__PURE__ */ f("div", { className: "space-y-3", children: [
|
|
2223
2223
|
/* @__PURE__ */ f("div", { className: "flex items-start justify-between", children: [
|
|
2224
2224
|
/* @__PURE__ */ e("h3", { className: "font-semibold text-lg", children: t.title }),
|
|
2225
|
-
/* @__PURE__ */ e(le, { variant: "secondary", className: y("capitalize",
|
|
2225
|
+
/* @__PURE__ */ e(le, { variant: "secondary", className: y("capitalize", o.bg, o.text), children: c })
|
|
2226
2226
|
] }),
|
|
2227
2227
|
/* @__PURE__ */ f("div", { className: "space-y-2 text-sm", children: [
|
|
2228
2228
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
2229
2229
|
/* @__PURE__ */ e(Cs, { className: "h-4 w-4" }),
|
|
2230
2230
|
t.allDay ? /* @__PURE__ */ e("span", { children: a("calendar.allDay") }) : /* @__PURE__ */ f("span", { children: [
|
|
2231
|
-
|
|
2231
|
+
n(m, "MMM d, h:mm a"),
|
|
2232
2232
|
" - ",
|
|
2233
2233
|
K(l, "h:mm a")
|
|
2234
2234
|
] })
|
|
@@ -2242,13 +2242,13 @@ const go = {
|
|
|
2242
2242
|
/* @__PURE__ */ e("div", { className: "flex gap-2 pt-2", children: /* @__PURE__ */ e(j, { size: "sm", className: "flex-1", onClick: () => r == null ? void 0 : r(t), children: a("calendar.viewDetails") }) })
|
|
2243
2243
|
] }) })
|
|
2244
2244
|
] });
|
|
2245
|
-
},
|
|
2245
|
+
}, bn = ({
|
|
2246
2246
|
date: t,
|
|
2247
2247
|
events: s,
|
|
2248
2248
|
onEventClick: r,
|
|
2249
2249
|
onDateClick: a
|
|
2250
2250
|
}) => {
|
|
2251
|
-
const { t:
|
|
2251
|
+
const { t: n, formatDate: c } = Z(), o = Pe(t), m = Me(o), l = me(o), u = _e(m), p = [];
|
|
2252
2252
|
let i = l;
|
|
2253
2253
|
for (; i <= u; )
|
|
2254
2254
|
p.push(i), i = ue(i, 1);
|
|
@@ -2300,7 +2300,7 @@ const go = {
|
|
|
2300
2300
|
},
|
|
2301
2301
|
N.id
|
|
2302
2302
|
)),
|
|
2303
|
-
E.length > 3 && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground px-1", children:
|
|
2303
|
+
E.length > 3 && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground px-1", children: n("calendar.more", { count: E.length - 3 }) })
|
|
2304
2304
|
] })
|
|
2305
2305
|
]
|
|
2306
2306
|
},
|
|
@@ -2308,13 +2308,13 @@ const go = {
|
|
|
2308
2308
|
);
|
|
2309
2309
|
}) })
|
|
2310
2310
|
] });
|
|
2311
|
-
},
|
|
2311
|
+
}, wn = ({
|
|
2312
2312
|
date: t,
|
|
2313
2313
|
events: s,
|
|
2314
2314
|
onEventClick: r,
|
|
2315
2315
|
onDateClick: a
|
|
2316
2316
|
}) => {
|
|
2317
|
-
const { t:
|
|
2317
|
+
const { t: n, formatDate: c } = Z(), o = me(t), m = Array.from({ length: 24 }, (i, g) => g), l = Array.from({ length: 7 }, (i, g) => ue(o, g)), u = (i, g) => s.filter((v) => {
|
|
2318
2318
|
if (v.allDay) return !1;
|
|
2319
2319
|
const b = I(v.start);
|
|
2320
2320
|
return Y(b, i) && Dr(b) === g;
|
|
@@ -2348,7 +2348,7 @@ const go = {
|
|
|
2348
2348
|
))
|
|
2349
2349
|
] }),
|
|
2350
2350
|
/* @__PURE__ */ f("div", { className: "flex border-b", children: [
|
|
2351
|
-
/* @__PURE__ */ e("div", { className: "w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground", children:
|
|
2351
|
+
/* @__PURE__ */ e("div", { className: "w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground", children: n("calendar.allDay") }),
|
|
2352
2352
|
l.map((i) => {
|
|
2353
2353
|
const g = p(i);
|
|
2354
2354
|
return /* @__PURE__ */ e("div", { className: "flex-1 border-l px-1 py-1 min-h-[40px]", children: g.map((v) => /* @__PURE__ */ e(J, { event: v, compact: !0, onClick: r }, v.id)) }, i.toISOString());
|
|
@@ -2385,13 +2385,13 @@ const go = {
|
|
|
2385
2385
|
})
|
|
2386
2386
|
] }, i)) }) })
|
|
2387
2387
|
] });
|
|
2388
|
-
},
|
|
2388
|
+
}, yn = ({
|
|
2389
2389
|
date: t,
|
|
2390
2390
|
events: s,
|
|
2391
2391
|
onEventClick: r,
|
|
2392
2392
|
onDateClick: a
|
|
2393
2393
|
}) => {
|
|
2394
|
-
const { t:
|
|
2394
|
+
const { t: n } = Z(), c = Array.from({ length: 24 }, (l, u) => u), o = (l) => s.filter((u) => {
|
|
2395
2395
|
if (u.allDay) return !1;
|
|
2396
2396
|
const p = I(u.start);
|
|
2397
2397
|
return Y(p, t) && Dr(p) === l;
|
|
@@ -2402,11 +2402,11 @@ const go = {
|
|
|
2402
2402
|
});
|
|
2403
2403
|
return /* @__PURE__ */ f("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
2404
2404
|
m.length > 0 && /* @__PURE__ */ f("div", { className: "border-b p-2 space-y-1", children: [
|
|
2405
|
-
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground mb-1", children:
|
|
2405
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground mb-1", children: n("calendar.allDay") }),
|
|
2406
2406
|
m.map((l) => /* @__PURE__ */ e(J, { event: l, onClick: r }, l.id))
|
|
2407
2407
|
] }),
|
|
2408
2408
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: c.map((l) => {
|
|
2409
|
-
const u =
|
|
2409
|
+
const u = o(l);
|
|
2410
2410
|
return /* @__PURE__ */ f(
|
|
2411
2411
|
"div",
|
|
2412
2412
|
{
|
|
@@ -2435,10 +2435,10 @@ const go = {
|
|
|
2435
2435
|
);
|
|
2436
2436
|
}) })
|
|
2437
2437
|
] });
|
|
2438
|
-
},
|
|
2439
|
-
const { t: a, formatDate:
|
|
2438
|
+
}, xn = ({ date: t, events: s, onEventClick: r }) => {
|
|
2439
|
+
const { t: a, formatDate: n } = Z(), c = Pe(t), o = Me(t), l = s.filter((p) => {
|
|
2440
2440
|
const i = I(p.start);
|
|
2441
|
-
return i >= c && i <=
|
|
2441
|
+
return i >= c && i <= o;
|
|
2442
2442
|
}).sort((p, i) => I(p.start).getTime() - I(i.start).getTime()).reduce((p, i) => {
|
|
2443
2443
|
const g = K(I(i.start), "yyyy-MM-dd");
|
|
2444
2444
|
return p[g] || (p[g] = []), p[g].push(i), p;
|
|
@@ -2455,28 +2455,28 @@ const go = {
|
|
|
2455
2455
|
he(i) ? "bg-primary text-primary-foreground" : "bg-muted"
|
|
2456
2456
|
),
|
|
2457
2457
|
children: [
|
|
2458
|
-
/* @__PURE__ */ e("span", { className: "text-xs font-medium uppercase", children:
|
|
2458
|
+
/* @__PURE__ */ e("span", { className: "text-xs font-medium uppercase", children: n(i, "EEE") }),
|
|
2459
2459
|
/* @__PURE__ */ e("span", { className: "text-lg font-bold", children: K(i, "d") })
|
|
2460
2460
|
]
|
|
2461
2461
|
}
|
|
2462
2462
|
),
|
|
2463
2463
|
/* @__PURE__ */ f("div", { children: [
|
|
2464
|
-
/* @__PURE__ */ e("div", { className: "font-semibold", children:
|
|
2465
|
-
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children:
|
|
2464
|
+
/* @__PURE__ */ e("div", { className: "font-semibold", children: n(i, "EEEE") }),
|
|
2465
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: n(i, "MMMM d, yyyy") })
|
|
2466
2466
|
] })
|
|
2467
2467
|
] }),
|
|
2468
2468
|
/* @__PURE__ */ e("div", { className: "space-y-2 pl-15", children: g.map((v) => /* @__PURE__ */ e(J, { event: v, onClick: r }, v.id)) })
|
|
2469
2469
|
] }, p);
|
|
2470
2470
|
}) }) });
|
|
2471
|
-
},
|
|
2471
|
+
}, Nn = d.forwardRef(
|
|
2472
2472
|
({
|
|
2473
2473
|
className: t,
|
|
2474
2474
|
events: s = [],
|
|
2475
2475
|
view: r,
|
|
2476
2476
|
defaultView: a = "month",
|
|
2477
|
-
onViewChange:
|
|
2477
|
+
onViewChange: n,
|
|
2478
2478
|
date: c,
|
|
2479
|
-
defaultDate:
|
|
2479
|
+
defaultDate: o,
|
|
2480
2480
|
onDateChange: m,
|
|
2481
2481
|
onEventClick: l,
|
|
2482
2482
|
onDateClick: u,
|
|
@@ -2486,8 +2486,8 @@ const go = {
|
|
|
2486
2486
|
showToday: v = !0,
|
|
2487
2487
|
...b
|
|
2488
2488
|
}, h) => {
|
|
2489
|
-
const [w, x] = d.useState(a), [E, N] = d.useState(
|
|
2490
|
-
r === void 0 && x(_),
|
|
2489
|
+
const [w, x] = d.useState(a), [E, N] = d.useState(o || /* @__PURE__ */ new Date()), T = r ?? w, D = c ?? E, M = (_) => {
|
|
2490
|
+
r === void 0 && x(_), n == null || n(_);
|
|
2491
2491
|
}, R = (_) => {
|
|
2492
2492
|
c === void 0 && N(_), m == null || m(_);
|
|
2493
2493
|
}, L = (_) => {
|
|
@@ -2521,7 +2521,7 @@ const go = {
|
|
|
2521
2521
|
...b,
|
|
2522
2522
|
children: [
|
|
2523
2523
|
/* @__PURE__ */ e(
|
|
2524
|
-
|
|
2524
|
+
vn,
|
|
2525
2525
|
{
|
|
2526
2526
|
date: D,
|
|
2527
2527
|
view: T,
|
|
@@ -2533,7 +2533,7 @@ const go = {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
),
|
|
2535
2535
|
T === "month" && /* @__PURE__ */ e(
|
|
2536
|
-
|
|
2536
|
+
bn,
|
|
2537
2537
|
{
|
|
2538
2538
|
date: D,
|
|
2539
2539
|
events: s,
|
|
@@ -2542,7 +2542,7 @@ const go = {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
),
|
|
2544
2544
|
T === "week" && /* @__PURE__ */ e(
|
|
2545
|
-
|
|
2545
|
+
wn,
|
|
2546
2546
|
{
|
|
2547
2547
|
date: D,
|
|
2548
2548
|
events: s,
|
|
@@ -2551,7 +2551,7 @@ const go = {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
),
|
|
2553
2553
|
T === "day" && /* @__PURE__ */ e(
|
|
2554
|
-
|
|
2554
|
+
yn,
|
|
2555
2555
|
{
|
|
2556
2556
|
date: D,
|
|
2557
2557
|
events: s,
|
|
@@ -2560,7 +2560,7 @@ const go = {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
),
|
|
2562
2562
|
T === "agenda" && /* @__PURE__ */ e(
|
|
2563
|
-
|
|
2563
|
+
xn,
|
|
2564
2564
|
{
|
|
2565
2565
|
date: D,
|
|
2566
2566
|
events: s,
|
|
@@ -2572,41 +2572,41 @@ const go = {
|
|
|
2572
2572
|
);
|
|
2573
2573
|
}
|
|
2574
2574
|
);
|
|
2575
|
-
|
|
2575
|
+
Nn.displayName = "FullCalendar";
|
|
2576
2576
|
export {
|
|
2577
2577
|
As as A,
|
|
2578
2578
|
Js as B,
|
|
2579
|
-
|
|
2579
|
+
eo as C,
|
|
2580
2580
|
Ga as D,
|
|
2581
2581
|
qa as E,
|
|
2582
2582
|
Za as F,
|
|
2583
2583
|
Qa as G,
|
|
2584
|
-
|
|
2584
|
+
tn as H,
|
|
2585
2585
|
qs as I,
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2586
|
+
fn as J,
|
|
2587
|
+
rn as K,
|
|
2588
|
+
sn as L,
|
|
2589
2589
|
Ja as M,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2590
|
+
nn as N,
|
|
2591
|
+
cn as O,
|
|
2592
|
+
mn as P,
|
|
2593
|
+
hn as Q,
|
|
2594
|
+
Nn as R,
|
|
2595
2595
|
Xs as S,
|
|
2596
2596
|
Fa as T,
|
|
2597
|
-
|
|
2597
|
+
vn as U,
|
|
2598
2598
|
J as V,
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2599
|
+
bn as W,
|
|
2600
|
+
wn as X,
|
|
2601
|
+
yn as Y,
|
|
2602
|
+
xn as Z,
|
|
2603
|
+
gn as _,
|
|
2604
2604
|
Ps as a,
|
|
2605
2605
|
Ms as b,
|
|
2606
2606
|
Us as c,
|
|
2607
2607
|
Ys as d,
|
|
2608
2608
|
kt as e,
|
|
2609
|
-
|
|
2609
|
+
Qn as f,
|
|
2610
2610
|
It as g,
|
|
2611
2611
|
Ft as h,
|
|
2612
2612
|
Ot as i,
|
|
@@ -2615,8 +2615,8 @@ export {
|
|
|
2615
2615
|
$t as l,
|
|
2616
2616
|
Bt as m,
|
|
2617
2617
|
Gs as n,
|
|
2618
|
-
|
|
2619
|
-
|
|
2618
|
+
to as o,
|
|
2619
|
+
ro as p,
|
|
2620
2620
|
ga as q,
|
|
2621
2621
|
xr as r,
|
|
2622
2622
|
Nr as s,
|
|
@@ -2624,8 +2624,8 @@ export {
|
|
|
2624
2624
|
Er as u,
|
|
2625
2625
|
Tr as v,
|
|
2626
2626
|
La as w,
|
|
2627
|
-
|
|
2627
|
+
so as x,
|
|
2628
2628
|
ja as y,
|
|
2629
2629
|
za as z
|
|
2630
2630
|
};
|
|
2631
|
-
//# sourceMappingURL=full-calendar-
|
|
2631
|
+
//# sourceMappingURL=full-calendar-DD_tBy69.js.map
|