react-semaphor 0.1.116 → 0.1.118
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/chunks/{dashboard-controls-CRc6gw-F.js → dashboard-controls-BKmKHD1C.js} +2 -2
- package/dist/chunks/{dashboard-controls-CqcS1J54.js → dashboard-controls-BsYwgzzV.js} +179 -178
- package/dist/chunks/{dashboard-json-BOlcQgKG.js → dashboard-json-BZoDNa7d.js} +1 -1
- package/dist/chunks/{dashboard-json-D-75FAgQ.js → dashboard-json-Ch63XtMS.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-COf6UbOg.js → edit-dashboard-visual-BaBGOIuS.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-tRQ806YP.js → edit-dashboard-visual-BlHtM8Mg.js} +1 -1
- package/dist/chunks/{editor-action-buttons-Bh-TPwiy.js → editor-action-buttons-DZJpRL7F.js} +2 -2
- package/dist/chunks/{editor-action-buttons-2B96j5tL.js → editor-action-buttons-HssR_HsW.js} +1 -1
- package/dist/chunks/{index-CRDKevb0.js → index-Bdmyshtr.js} +356 -362
- package/dist/chunks/{index-F4v-XjnM.js → index-BkHCymuV.js} +13 -13
- package/dist/chunks/{resource-management-panel-DtwM8NVN.js → resource-management-panel-BU4mYxms.js} +2 -2
- package/dist/chunks/{resource-management-panel-CwGyO8S9.js → resource-management-panel-Dd1hffVe.js} +1 -1
- package/dist/chunks/{schedule-dashboard-CtXspopT.js → schedule-dashboard-BNDsKqRE.js} +3 -3
- package/dist/chunks/{schedule-dashboard-DWh6NWL5.js → schedule-dashboard-Dzcd5W6f.js} +1 -1
- package/dist/chunks/{use-visual-utils-DyKq-_On.js → use-visual-utils-B7AakQrT.js} +1 -1
- package/dist/chunks/{use-visual-utils-Ce0Sq8Hn.js → use-visual-utils-ca50n3Fh.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -6770,7 +6770,7 @@ Xv.exports;
|
|
|
6770
6770
|
var ce = this.has(ne) && delete this.__data__[ne];
|
|
6771
6771
|
return this.size -= ce ? 1 : 0, ce;
|
|
6772
6772
|
}
|
|
6773
|
-
function
|
|
6773
|
+
function Ye(ne) {
|
|
6774
6774
|
var ce = this.__data__;
|
|
6775
6775
|
if (Ze) {
|
|
6776
6776
|
var be = ce[ne];
|
|
@@ -6786,7 +6786,7 @@ Xv.exports;
|
|
|
6786
6786
|
var be = this.__data__;
|
|
6787
6787
|
return this.size += this.has(ne) ? 0 : 1, be[ne] = Ze && ce === void 0 ? r : ce, this;
|
|
6788
6788
|
}
|
|
6789
|
-
Ee.prototype.clear = Ae, Ee.prototype.delete = Le, Ee.prototype.get =
|
|
6789
|
+
Ee.prototype.clear = Ae, Ee.prototype.delete = Le, Ee.prototype.get = Ye, Ee.prototype.has = st, Ee.prototype.set = an;
|
|
6790
6790
|
function Gt(ne) {
|
|
6791
6791
|
var ce = -1, be = ne == null ? 0 : ne.length;
|
|
6792
6792
|
for (this.clear(); ++ce < be; ) {
|
|
@@ -17555,148 +17555,20 @@ function $b() {
|
|
|
17555
17555
|
isConsoleMode: !1
|
|
17556
17556
|
};
|
|
17557
17557
|
}
|
|
17558
|
-
|
|
17559
|
-
dashboard: e,
|
|
17560
|
-
isDeleting: t,
|
|
17561
|
-
isDuplicating: n,
|
|
17562
|
-
shouldHideActions: r,
|
|
17563
|
-
onEditDetails: o,
|
|
17564
|
-
onDeleteClick: i,
|
|
17565
|
-
onDuplicateDashboard: a,
|
|
17566
|
-
onShareDashboard: s,
|
|
17567
|
-
formatDate: l
|
|
17568
|
-
}) {
|
|
17569
|
-
var m, g, b;
|
|
17570
|
-
const { isConsoleMode: c } = $b(), [u, d] = re(!1), [h, p] = re(!1);
|
|
17571
|
-
return fe(() => {
|
|
17572
|
-
n ? (d(!0), p(!0)) : h && (d(!1), p(!1));
|
|
17573
|
-
}, [n, h]), /* @__PURE__ */ S(
|
|
17574
|
-
"div",
|
|
17575
|
-
{
|
|
17576
|
-
className: "ml-2 flex flex-shrink-0 items-center gap-1",
|
|
17577
|
-
onClick: (y) => y.stopPropagation(),
|
|
17578
|
-
children: [
|
|
17579
|
-
e.permissions.canEdit && !r && /* @__PURE__ */ f(
|
|
17580
|
-
se,
|
|
17581
|
-
{
|
|
17582
|
-
size: "sm",
|
|
17583
|
-
variant: "ghost",
|
|
17584
|
-
className: "h-6 w-6 p-0",
|
|
17585
|
-
onClick: (y) => {
|
|
17586
|
-
y.stopPropagation(), o == null || o(e);
|
|
17587
|
-
},
|
|
17588
|
-
title: "Edit details",
|
|
17589
|
-
children: /* @__PURE__ */ f(vP, { className: "h-3 w-3" })
|
|
17590
|
-
}
|
|
17591
|
-
),
|
|
17592
|
-
!r && /* @__PURE__ */ S(
|
|
17593
|
-
Ob,
|
|
17594
|
-
{
|
|
17595
|
-
modal: !1,
|
|
17596
|
-
open: u,
|
|
17597
|
-
onOpenChange: d,
|
|
17598
|
-
children: [
|
|
17599
|
-
/* @__PURE__ */ f(Fb, { asChild: !0, children: /* @__PURE__ */ f(se, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", children: /* @__PURE__ */ f(kb, { className: "h-3 w-3" }) }) }),
|
|
17600
|
-
/* @__PURE__ */ S(mp, { align: "end", className: "z-[51] w-40", children: [
|
|
17601
|
-
/* @__PURE__ */ S(
|
|
17602
|
-
fa,
|
|
17603
|
-
{
|
|
17604
|
-
onClick: (y) => {
|
|
17605
|
-
y.preventDefault(), y.stopPropagation(), a(e.id);
|
|
17606
|
-
},
|
|
17607
|
-
disabled: n,
|
|
17608
|
-
children: [
|
|
17609
|
-
n ? /* @__PURE__ */ f(Kn, { className: "mr-2 h-3 w-3 animate-spin" }) : /* @__PURE__ */ f(cx, { className: "mr-2 h-3 w-3" }),
|
|
17610
|
-
n ? "Duplicating..." : "Duplicate"
|
|
17611
|
-
]
|
|
17612
|
-
}
|
|
17613
|
-
),
|
|
17614
|
-
e.permissions.canEdit && /* @__PURE__ */ S(
|
|
17615
|
-
fa,
|
|
17616
|
-
{
|
|
17617
|
-
onClick: (y) => {
|
|
17618
|
-
y.stopPropagation(), o == null || o(e);
|
|
17619
|
-
},
|
|
17620
|
-
children: [
|
|
17621
|
-
/* @__PURE__ */ f(vP, { className: "mr-2 h-3 w-3" }),
|
|
17622
|
-
"Edit details"
|
|
17623
|
-
]
|
|
17624
|
-
}
|
|
17625
|
-
),
|
|
17626
|
-
e.permissions.canEdit && /* @__PURE__ */ S(
|
|
17627
|
-
fa,
|
|
17628
|
-
{
|
|
17629
|
-
onClick: (y) => {
|
|
17630
|
-
y.stopPropagation(), s(e);
|
|
17631
|
-
},
|
|
17632
|
-
children: [
|
|
17633
|
-
/* @__PURE__ */ f(Ro, { className: "mr-2 h-3 w-3" }),
|
|
17634
|
-
"Share"
|
|
17635
|
-
]
|
|
17636
|
-
}
|
|
17637
|
-
),
|
|
17638
|
-
/* @__PURE__ */ S(
|
|
17639
|
-
fa,
|
|
17640
|
-
{
|
|
17641
|
-
onClick: (y) => {
|
|
17642
|
-
y.stopPropagation(), navigator.clipboard.writeText(e.id);
|
|
17643
|
-
},
|
|
17644
|
-
children: [
|
|
17645
|
-
/* @__PURE__ */ f(cx, { className: "mr-2 h-3 w-3" }),
|
|
17646
|
-
"Copy ID"
|
|
17647
|
-
]
|
|
17648
|
-
}
|
|
17649
|
-
),
|
|
17650
|
-
e.permissions.canDelete && /* @__PURE__ */ S(Te, { children: [
|
|
17651
|
-
/* @__PURE__ */ f(Ph, {}),
|
|
17652
|
-
/* @__PURE__ */ S(
|
|
17653
|
-
fa,
|
|
17654
|
-
{
|
|
17655
|
-
onClick: (y) => {
|
|
17656
|
-
y.stopPropagation(), i(e);
|
|
17657
|
-
},
|
|
17658
|
-
className: "text-destructive",
|
|
17659
|
-
disabled: t,
|
|
17660
|
-
children: [
|
|
17661
|
-
/* @__PURE__ */ f(sp, { className: "mr-2 h-3 w-3" }),
|
|
17662
|
-
t ? "Deleting..." : "Delete"
|
|
17663
|
-
]
|
|
17664
|
-
}
|
|
17665
|
-
)
|
|
17666
|
-
] }),
|
|
17667
|
-
/* @__PURE__ */ f(Ph, {}),
|
|
17668
|
-
/* @__PURE__ */ S("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
17669
|
-
(((m = e.ownership.createdBy) == null ? void 0 : m.type) === "tenant" || ((g = e.ownership.createdBy) == null ? void 0 : g.type) === "organization" && c) && /* @__PURE__ */ S("div", { className: "flex items-center gap-1", children: [
|
|
17670
|
-
/* @__PURE__ */ f(gd, { className: "h-3 w-3" }),
|
|
17671
|
-
/* @__PURE__ */ f("span", { children: ((b = e.ownership.createdBy) == null ? void 0 : b.name) || "Unknown" })
|
|
17672
|
-
] }),
|
|
17673
|
-
/* @__PURE__ */ S("div", { className: "flex items-center gap-1", children: [
|
|
17674
|
-
/* @__PURE__ */ f(Mo, { className: "h-3 w-3" }),
|
|
17675
|
-
/* @__PURE__ */ f("span", { children: l(e.lastModified) })
|
|
17676
|
-
] })
|
|
17677
|
-
] })
|
|
17678
|
-
] })
|
|
17679
|
-
]
|
|
17680
|
-
}
|
|
17681
|
-
)
|
|
17682
|
-
]
|
|
17683
|
-
}
|
|
17684
|
-
);
|
|
17685
|
-
}
|
|
17686
|
-
var bue = (e) => {
|
|
17558
|
+
var gue = (e) => {
|
|
17687
17559
|
switch (e) {
|
|
17688
17560
|
case "success":
|
|
17689
|
-
return
|
|
17561
|
+
return vue;
|
|
17690
17562
|
case "info":
|
|
17691
|
-
return Sue;
|
|
17692
|
-
case "warning":
|
|
17693
17563
|
return wue;
|
|
17564
|
+
case "warning":
|
|
17565
|
+
return xue;
|
|
17694
17566
|
case "error":
|
|
17695
|
-
return
|
|
17567
|
+
return Sue;
|
|
17696
17568
|
default:
|
|
17697
17569
|
return null;
|
|
17698
17570
|
}
|
|
17699
|
-
},
|
|
17571
|
+
}, bue = Array(12).fill(0), yue = ({ visible: e, className: t }) => Q.createElement("div", { className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), "data-visible": e }, Q.createElement("div", { className: "sonner-spinner" }, bue.map((n, r) => Q.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${r}` })))), vue = Q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, Q.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), xue = Q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, Q.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), wue = Q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, Q.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Sue = Q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, Q.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Cue = Q.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, Q.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), Q.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), Nue = () => {
|
|
17700
17572
|
let [e, t] = Q.useState(document.hidden);
|
|
17701
17573
|
return Q.useEffect(() => {
|
|
17702
17574
|
let n = () => {
|
|
@@ -17704,7 +17576,7 @@ var bue = (e) => {
|
|
|
17704
17576
|
};
|
|
17705
17577
|
return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
|
|
17706
17578
|
}, []), e;
|
|
17707
|
-
}, Bk = 1,
|
|
17579
|
+
}, Bk = 1, kue = class {
|
|
17708
17580
|
constructor() {
|
|
17709
17581
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
17710
17582
|
let t = this.subscribers.indexOf(e);
|
|
@@ -17725,7 +17597,7 @@ var bue = (e) => {
|
|
|
17725
17597
|
t.loading !== void 0 && (n = this.create({ ...t, promise: e, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
|
|
17726
17598
|
let r = e instanceof Promise ? e : e(), o = n !== void 0, i, a = r.then(async (l) => {
|
|
17727
17599
|
if (i = ["resolve", l], Q.isValidElement(l)) o = !1, this.create({ id: n, type: "default", message: l });
|
|
17728
|
-
else if (
|
|
17600
|
+
else if (_ue(l) && !l.ok) {
|
|
17729
17601
|
o = !1;
|
|
17730
17602
|
let c = typeof t.error == "function" ? await t.error(`HTTP error! status: ${l.status}`) : t.error, u = typeof t.description == "function" ? await t.description(`HTTP error! status: ${l.status}`) : t.description;
|
|
17731
17603
|
this.create({ id: n, type: "error", message: c, description: u });
|
|
@@ -17750,34 +17622,34 @@ var bue = (e) => {
|
|
|
17750
17622
|
return this.create({ jsx: e(n), id: n, ...t }), n;
|
|
17751
17623
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
17752
17624
|
}
|
|
17753
|
-
}, Wo = new
|
|
17625
|
+
}, Wo = new kue(), Eue = (e, t) => {
|
|
17754
17626
|
let n = (t == null ? void 0 : t.id) || Bk++;
|
|
17755
17627
|
return Wo.addToast({ title: e, ...t, id: n }), n;
|
|
17756
|
-
},
|
|
17757
|
-
function
|
|
17628
|
+
}, _ue = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Due = Eue, Tue = () => Wo.toasts, Mue = () => Wo.getActiveToasts(), We = Object.assign(Due, { success: Wo.success, info: Wo.info, warning: Wo.warning, error: Wo.error, custom: Wo.custom, message: Wo.message, promise: Wo.promise, dismiss: Wo.dismiss, loading: Wo.loading }, { getHistory: Tue, getToasts: Mue });
|
|
17629
|
+
function Rue(e, { insertAt: t } = {}) {
|
|
17758
17630
|
if (typeof document > "u") return;
|
|
17759
17631
|
let n = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
17760
17632
|
r.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(r, n.firstChild) : n.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
|
|
17761
17633
|
}
|
|
17762
|
-
Iue(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
17634
|
+
Rue(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
17763
17635
|
`);
|
|
17764
17636
|
function ny(e) {
|
|
17765
17637
|
return e.label !== void 0;
|
|
17766
17638
|
}
|
|
17767
|
-
var
|
|
17639
|
+
var Iue = 3, Aue = "32px", Pue = "16px", YP = 4e3, Oue = 356, Fue = 14, $ue = 20, Lue = 200;
|
|
17768
17640
|
function ra(...e) {
|
|
17769
17641
|
return e.filter(Boolean).join(" ");
|
|
17770
17642
|
}
|
|
17771
|
-
function
|
|
17643
|
+
function zue(e) {
|
|
17772
17644
|
let [t, n] = e.split("-"), r = [];
|
|
17773
17645
|
return t && r.push(t), n && r.push(n), r;
|
|
17774
17646
|
}
|
|
17775
|
-
var
|
|
17647
|
+
var Bue = (e) => {
|
|
17776
17648
|
var t, n, r, o, i, a, s, l, c, u, d;
|
|
17777
17649
|
let { invert: h, toast: p, unstyled: m, interacting: g, setHeights: b, visibleToasts: y, heights: v, index: x, toasts: w, expanded: C, removeToast: N, defaultRichColors: k, closeButton: T, style: E, cancelButtonStyle: D, actionButtonStyle: M, className: I = "", descriptionClassName: F = "", duration: R, position: A, gap: $, loadingIcon: B, expandByDefault: V, classNames: L, icons: O, closeButtonAriaLabel: j = "Close toast", pauseWhenPageIsHidden: z } = e, [P, W] = Q.useState(null), [U, Y] = Q.useState(null), [K, H] = Q.useState(!1), [q, X] = Q.useState(!1), [Z, G] = Q.useState(!1), [J, oe] = Q.useState(!1), [ue, le] = Q.useState(!1), [me, Ne] = Q.useState(0), [Me, Ie] = Q.useState(0), pe = Q.useRef(p.duration || R || YP), ze = Q.useRef(null), He = Q.useRef(null), St = x === 0, Ce = x + 1 <= y, ae = p.type, he = p.dismissible !== !1, _e = p.className || "", De = p.descriptionClassName || "", je = Q.useMemo(() => v.findIndex((Le) => Le.toastId === p.id) || 0, [v, p.id]), it = Q.useMemo(() => {
|
|
17778
17650
|
var Le;
|
|
17779
17651
|
return (Le = p.closeButton) != null ? Le : T;
|
|
17780
|
-
}, [p.closeButton, T]), Mt = Q.useMemo(() => p.duration || R || YP, [p.duration, R]), nt = Q.useRef(0), Wt = Q.useRef(0), Re = Q.useRef(0), Ft = Q.useRef(null), [vn, Ke] = A.split("-"), Xe = Q.useMemo(() => v.reduce((Le,
|
|
17652
|
+
}, [p.closeButton, T]), Mt = Q.useMemo(() => p.duration || R || YP, [p.duration, R]), nt = Q.useRef(0), Wt = Q.useRef(0), Re = Q.useRef(0), Ft = Q.useRef(null), [vn, Ke] = A.split("-"), Xe = Q.useMemo(() => v.reduce((Le, Ye, st) => st >= je ? Le : Le + Ye.height, 0), [v, je]), xt = Nue(), Ze = p.invert || h, rt = ae === "loading";
|
|
17781
17653
|
Wt.current = Q.useMemo(() => je * $ + Xe, [je, Xe]), Q.useEffect(() => {
|
|
17782
17654
|
pe.current = Mt;
|
|
17783
17655
|
}, [Mt]), Q.useEffect(() => {
|
|
@@ -17785,59 +17657,59 @@ var Vue = (e) => {
|
|
|
17785
17657
|
}, []), Q.useEffect(() => {
|
|
17786
17658
|
let Le = He.current;
|
|
17787
17659
|
if (Le) {
|
|
17788
|
-
let
|
|
17789
|
-
return Ie(
|
|
17660
|
+
let Ye = Le.getBoundingClientRect().height;
|
|
17661
|
+
return Ie(Ye), b((st) => [{ toastId: p.id, height: Ye, position: p.position }, ...st]), () => b((st) => st.filter((an) => an.toastId !== p.id));
|
|
17790
17662
|
}
|
|
17791
17663
|
}, [b, p.id]), Q.useLayoutEffect(() => {
|
|
17792
17664
|
if (!K) return;
|
|
17793
|
-
let Le = He.current,
|
|
17665
|
+
let Le = He.current, Ye = Le.style.height;
|
|
17794
17666
|
Le.style.height = "auto";
|
|
17795
17667
|
let st = Le.getBoundingClientRect().height;
|
|
17796
|
-
Le.style.height =
|
|
17668
|
+
Le.style.height = Ye, Ie(st), b((an) => an.find((Gt) => Gt.toastId === p.id) ? an.map((Gt) => Gt.toastId === p.id ? { ...Gt, height: st } : Gt) : [{ toastId: p.id, height: st, position: p.position }, ...an]);
|
|
17797
17669
|
}, [K, p.title, p.description, b, p.id]);
|
|
17798
17670
|
let Ee = Q.useCallback(() => {
|
|
17799
|
-
X(!0), Ne(Wt.current), b((Le) => Le.filter((
|
|
17671
|
+
X(!0), Ne(Wt.current), b((Le) => Le.filter((Ye) => Ye.toastId !== p.id)), setTimeout(() => {
|
|
17800
17672
|
N(p);
|
|
17801
|
-
},
|
|
17673
|
+
}, Lue);
|
|
17802
17674
|
}, [p, N, b, Wt]);
|
|
17803
17675
|
Q.useEffect(() => {
|
|
17804
17676
|
if (p.promise && ae === "loading" || p.duration === 1 / 0 || p.type === "loading") return;
|
|
17805
17677
|
let Le;
|
|
17806
17678
|
return C || g || z && xt ? (() => {
|
|
17807
17679
|
if (Re.current < nt.current) {
|
|
17808
|
-
let
|
|
17809
|
-
pe.current = pe.current -
|
|
17680
|
+
let Ye = (/* @__PURE__ */ new Date()).getTime() - nt.current;
|
|
17681
|
+
pe.current = pe.current - Ye;
|
|
17810
17682
|
}
|
|
17811
17683
|
Re.current = (/* @__PURE__ */ new Date()).getTime();
|
|
17812
17684
|
})() : pe.current !== 1 / 0 && (nt.current = (/* @__PURE__ */ new Date()).getTime(), Le = setTimeout(() => {
|
|
17813
|
-
var
|
|
17814
|
-
(
|
|
17685
|
+
var Ye;
|
|
17686
|
+
(Ye = p.onAutoClose) == null || Ye.call(p, p), Ee();
|
|
17815
17687
|
}, pe.current)), () => clearTimeout(Le);
|
|
17816
17688
|
}, [C, g, p, ae, z, xt, Ee]), Q.useEffect(() => {
|
|
17817
17689
|
p.delete && Ee();
|
|
17818
17690
|
}, [Ee, p.delete]);
|
|
17819
17691
|
function Ae() {
|
|
17820
|
-
var Le,
|
|
17821
|
-
return O != null && O.loading ? Q.createElement("div", { className: ra(L == null ? void 0 : L.loader, (Le = p == null ? void 0 : p.classNames) == null ? void 0 : Le.loader, "sonner-loader"), "data-visible": ae === "loading" }, O.loading) : B ? Q.createElement("div", { className: ra(L == null ? void 0 : L.loader, (
|
|
17692
|
+
var Le, Ye, st;
|
|
17693
|
+
return O != null && O.loading ? Q.createElement("div", { className: ra(L == null ? void 0 : L.loader, (Le = p == null ? void 0 : p.classNames) == null ? void 0 : Le.loader, "sonner-loader"), "data-visible": ae === "loading" }, O.loading) : B ? Q.createElement("div", { className: ra(L == null ? void 0 : L.loader, (Ye = p == null ? void 0 : p.classNames) == null ? void 0 : Ye.loader, "sonner-loader"), "data-visible": ae === "loading" }, B) : Q.createElement(yue, { className: ra(L == null ? void 0 : L.loader, (st = p == null ? void 0 : p.classNames) == null ? void 0 : st.loader), visible: ae === "loading" });
|
|
17822
17694
|
}
|
|
17823
17695
|
return Q.createElement("li", { tabIndex: 0, ref: He, className: ra(I, _e, L == null ? void 0 : L.toast, (t = p == null ? void 0 : p.classNames) == null ? void 0 : t.toast, L == null ? void 0 : L.default, L == null ? void 0 : L[ae], (n = p == null ? void 0 : p.classNames) == null ? void 0 : n[ae]), "data-sonner-toast": "", "data-rich-colors": (r = p.richColors) != null ? r : k, "data-styled": !(p.jsx || p.unstyled || m), "data-mounted": K, "data-promise": !!p.promise, "data-swiped": ue, "data-removed": q, "data-visible": Ce, "data-y-position": vn, "data-x-position": Ke, "data-index": x, "data-front": St, "data-swiping": Z, "data-dismissible": he, "data-type": ae, "data-invert": Ze, "data-swipe-out": J, "data-swipe-direction": U, "data-expanded": !!(C || V && K), style: { "--index": x, "--toasts-before": x, "--z-index": w.length - x, "--offset": `${q ? me : Wt.current}px`, "--initial-height": V ? "auto" : `${Me}px`, ...E, ...p.style }, onDragEnd: () => {
|
|
17824
17696
|
G(!1), W(null), Ft.current = null;
|
|
17825
17697
|
}, onPointerDown: (Le) => {
|
|
17826
17698
|
rt || !he || (ze.current = /* @__PURE__ */ new Date(), Ne(Wt.current), Le.target.setPointerCapture(Le.pointerId), Le.target.tagName !== "BUTTON" && (G(!0), Ft.current = { x: Le.clientX, y: Le.clientY }));
|
|
17827
17699
|
}, onPointerUp: () => {
|
|
17828
|
-
var Le,
|
|
17700
|
+
var Le, Ye, st, an;
|
|
17829
17701
|
if (J || !he) return;
|
|
17830
17702
|
Ft.current = null;
|
|
17831
|
-
let Gt = Number(((Le = He.current) == null ? void 0 : Le.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), sn = Number(((
|
|
17832
|
-
if (Math.abs(Wn) >=
|
|
17703
|
+
let Gt = Number(((Le = He.current) == null ? void 0 : Le.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), sn = Number(((Ye = He.current) == null ? void 0 : Ye.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Or = (/* @__PURE__ */ new Date()).getTime() - ((st = ze.current) == null ? void 0 : st.getTime()), Wn = P === "x" ? Gt : sn, vr = Math.abs(Wn) / Or;
|
|
17704
|
+
if (Math.abs(Wn) >= $ue || vr > 0.11) {
|
|
17833
17705
|
Ne(Wt.current), (an = p.onDismiss) == null || an.call(p, p), Y(P === "x" ? Gt > 0 ? "right" : "left" : sn > 0 ? "down" : "up"), Ee(), oe(!0), le(!1);
|
|
17834
17706
|
return;
|
|
17835
17707
|
}
|
|
17836
17708
|
G(!1), W(null);
|
|
17837
17709
|
}, onPointerMove: (Le) => {
|
|
17838
|
-
var
|
|
17839
|
-
if (!Ft.current || !he || ((
|
|
17840
|
-
let sn = Le.clientY - Ft.current.y, Or = Le.clientX - Ft.current.x, Wn = (st = e.swipeDirections) != null ? st :
|
|
17710
|
+
var Ye, st, an, Gt;
|
|
17711
|
+
if (!Ft.current || !he || ((Ye = window.getSelection()) == null ? void 0 : Ye.toString().length) > 0) return;
|
|
17712
|
+
let sn = Le.clientY - Ft.current.y, Or = Le.clientX - Ft.current.x, Wn = (st = e.swipeDirections) != null ? st : zue(A);
|
|
17841
17713
|
!P && (Math.abs(Or) > 1 || Math.abs(sn) > 1) && W(Math.abs(Or) > Math.abs(sn) ? "x" : "y");
|
|
17842
17714
|
let vr = { x: 0, y: 0 };
|
|
17843
17715
|
P === "y" ? (Wn.includes("top") || Wn.includes("bottom")) && (Wn.includes("top") && sn < 0 || Wn.includes("bottom") && sn > 0) && (vr.y = sn) : P === "x" && (Wn.includes("left") || Wn.includes("right")) && (Wn.includes("left") && Or < 0 || Wn.includes("right") && Or > 0) && (vr.x = Or), (Math.abs(vr.x) > 0 || Math.abs(vr.y) > 0) && le(!0), (an = He.current) == null || an.style.setProperty("--swipe-amount-x", `${vr.x}px`), (Gt = He.current) == null || Gt.style.setProperty("--swipe-amount-y", `${vr.y}px`);
|
|
@@ -17845,12 +17717,12 @@ var Vue = (e) => {
|
|
|
17845
17717
|
} : () => {
|
|
17846
17718
|
var Le;
|
|
17847
17719
|
Ee(), (Le = p.onDismiss) == null || Le.call(p, p);
|
|
17848
|
-
}, className: ra(L == null ? void 0 : L.closeButton, (o = p == null ? void 0 : p.classNames) == null ? void 0 : o.closeButton) }, (i = O == null ? void 0 : O.close) != null ? i :
|
|
17849
|
-
var
|
|
17850
|
-
ny(p.cancel) && he && ((st = (
|
|
17720
|
+
}, className: ra(L == null ? void 0 : L.closeButton, (o = p == null ? void 0 : p.classNames) == null ? void 0 : o.closeButton) }, (i = O == null ? void 0 : O.close) != null ? i : Cue) : null, p.jsx || fc(p.title) ? p.jsx ? p.jsx : typeof p.title == "function" ? p.title() : p.title : Q.createElement(Q.Fragment, null, ae || p.icon || p.promise ? Q.createElement("div", { "data-icon": "", className: ra(L == null ? void 0 : L.icon, (a = p == null ? void 0 : p.classNames) == null ? void 0 : a.icon) }, p.promise || p.type === "loading" && !p.icon ? p.icon || Ae() : null, p.type !== "loading" ? p.icon || (O == null ? void 0 : O[ae]) || gue(ae) : null) : null, Q.createElement("div", { "data-content": "", className: ra(L == null ? void 0 : L.content, (s = p == null ? void 0 : p.classNames) == null ? void 0 : s.content) }, Q.createElement("div", { "data-title": "", className: ra(L == null ? void 0 : L.title, (l = p == null ? void 0 : p.classNames) == null ? void 0 : l.title) }, typeof p.title == "function" ? p.title() : p.title), p.description ? Q.createElement("div", { "data-description": "", className: ra(F, De, L == null ? void 0 : L.description, (c = p == null ? void 0 : p.classNames) == null ? void 0 : c.description) }, typeof p.description == "function" ? p.description() : p.description) : null), fc(p.cancel) ? p.cancel : p.cancel && ny(p.cancel) ? Q.createElement("button", { "data-button": !0, "data-cancel": !0, style: p.cancelButtonStyle || D, onClick: (Le) => {
|
|
17721
|
+
var Ye, st;
|
|
17722
|
+
ny(p.cancel) && he && ((st = (Ye = p.cancel).onClick) == null || st.call(Ye, Le), Ee());
|
|
17851
17723
|
}, className: ra(L == null ? void 0 : L.cancelButton, (u = p == null ? void 0 : p.classNames) == null ? void 0 : u.cancelButton) }, p.cancel.label) : null, fc(p.action) ? p.action : p.action && ny(p.action) ? Q.createElement("button", { "data-button": !0, "data-action": !0, style: p.actionButtonStyle || M, onClick: (Le) => {
|
|
17852
|
-
var
|
|
17853
|
-
ny(p.action) && ((st = (
|
|
17724
|
+
var Ye, st;
|
|
17725
|
+
ny(p.action) && ((st = (Ye = p.action).onClick) == null || st.call(Ye, Le), !Le.defaultPrevented && Ee());
|
|
17854
17726
|
}, className: ra(L == null ? void 0 : L.actionButton, (d = p == null ? void 0 : p.classNames) == null ? void 0 : d.actionButton) }, p.action.label) : null));
|
|
17855
17727
|
};
|
|
17856
17728
|
function GP() {
|
|
@@ -17858,10 +17730,10 @@ function GP() {
|
|
|
17858
17730
|
let e = document.documentElement.getAttribute("dir");
|
|
17859
17731
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
17860
17732
|
}
|
|
17861
|
-
function
|
|
17733
|
+
function Vue(e, t) {
|
|
17862
17734
|
let n = {};
|
|
17863
17735
|
return [e, t].forEach((r, o) => {
|
|
17864
|
-
let i = o === 1, a = i ? "--mobile-offset" : "--offset", s = i ?
|
|
17736
|
+
let i = o === 1, a = i ? "--mobile-offset" : "--offset", s = i ? Pue : Aue;
|
|
17865
17737
|
function l(c) {
|
|
17866
17738
|
["top", "right", "bottom", "left"].forEach((u) => {
|
|
17867
17739
|
n[`${a}-${u}`] = typeof c == "number" ? `${c}px` : c;
|
|
@@ -17872,8 +17744,8 @@ function jue(e, t) {
|
|
|
17872
17744
|
}) : l(s);
|
|
17873
17745
|
}), n;
|
|
17874
17746
|
}
|
|
17875
|
-
var
|
|
17876
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: p, visibleToasts: m =
|
|
17747
|
+
var jue = Xr(function(e, t) {
|
|
17748
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: p, visibleToasts: m = Iue, toastOptions: g, dir: b = GP(), gap: y = Fue, loadingIcon: v, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C } = e, [N, k] = Q.useState([]), T = Q.useMemo(() => Array.from(new Set([r].concat(N.filter((z) => z.position).map((z) => z.position)))), [N, r]), [E, D] = Q.useState([]), [M, I] = Q.useState(!1), [F, R] = Q.useState(!1), [A, $] = Q.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), B = Q.useRef(null), V = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = Q.useRef(null), O = Q.useRef(!1), j = Q.useCallback((z) => {
|
|
17877
17749
|
k((P) => {
|
|
17878
17750
|
var W;
|
|
17879
17751
|
return (W = P.find((U) => U.id === z.id)) != null && W.delete || Wo.dismiss(z.id), P.filter(({ id: U }) => U !== z.id);
|
|
@@ -17927,7 +17799,7 @@ var Hue = Xr(function(e, t) {
|
|
|
17927
17799
|
}, [B.current]), Q.createElement("section", { ref: t, "aria-label": `${w} ${V}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, T.map((z, P) => {
|
|
17928
17800
|
var W;
|
|
17929
17801
|
let [U, Y] = z.split("-");
|
|
17930
|
-
return N.length ? Q.createElement("ol", { key: z, dir: b === "auto" ? GP() : b, tabIndex: -1, ref: B, className: s, "data-sonner-toaster": !0, "data-theme": A, "data-y-position": U, "data-lifted": M && N.length > 1 && !i, "data-x-position": Y, style: { "--front-toast-height": `${((W = E[0]) == null ? void 0 : W.height) || 0}px`, "--width": `${
|
|
17802
|
+
return N.length ? Q.createElement("ol", { key: z, dir: b === "auto" ? GP() : b, tabIndex: -1, ref: B, className: s, "data-sonner-toaster": !0, "data-theme": A, "data-y-position": U, "data-lifted": M && N.length > 1 && !i, "data-x-position": Y, style: { "--front-toast-height": `${((W = E[0]) == null ? void 0 : W.height) || 0}px`, "--width": `${Oue}px`, "--gap": `${y}px`, ...p, ...Vue(l, c) }, onBlur: (K) => {
|
|
17931
17803
|
O.current && !K.currentTarget.contains(K.relatedTarget) && (O.current = !1, L.current && (L.current.focus({ preventScroll: !0 }), L.current = null));
|
|
17932
17804
|
}, onFocus: (K) => {
|
|
17933
17805
|
K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || O.current || (O.current = !0, L.current = K.relatedTarget);
|
|
@@ -17937,10 +17809,139 @@ var Hue = Xr(function(e, t) {
|
|
|
17937
17809
|
K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || R(!0);
|
|
17938
17810
|
}, onPointerUp: () => R(!1) }, N.filter((K) => !K.position && P === 0 || K.position === z).map((K, H) => {
|
|
17939
17811
|
var q, X;
|
|
17940
|
-
return Q.createElement(
|
|
17812
|
+
return Q.createElement(Bue, { key: K.id, icons: x, index: H, toast: K, defaultRichColors: d, duration: (q = g == null ? void 0 : g.duration) != null ? q : h, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: n, visibleToasts: m, closeButton: (X = g == null ? void 0 : g.closeButton) != null ? X : a, interacting: F, position: z, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: j, toasts: N.filter((Z) => Z.position == K.position), heights: E.filter((Z) => Z.position == K.position), setHeights: D, expandByDefault: i, gap: y, loadingIcon: v, expanded: M, pauseWhenPageIsHidden: C, swipeDirections: e.swipeDirections });
|
|
17941
17813
|
})) : null;
|
|
17942
17814
|
}));
|
|
17943
17815
|
});
|
|
17816
|
+
function Hue({
|
|
17817
|
+
dashboard: e,
|
|
17818
|
+
isDeleting: t,
|
|
17819
|
+
isDuplicating: n,
|
|
17820
|
+
shouldHideActions: r,
|
|
17821
|
+
onEditDetails: o,
|
|
17822
|
+
onDeleteClick: i,
|
|
17823
|
+
onDuplicateDashboard: a,
|
|
17824
|
+
onShareDashboard: s,
|
|
17825
|
+
formatDate: l
|
|
17826
|
+
}) {
|
|
17827
|
+
var m, g, b;
|
|
17828
|
+
const { isConsoleMode: c } = $b(), [u, d] = re(!1), [h, p] = re(!1);
|
|
17829
|
+
return fe(() => {
|
|
17830
|
+
n ? (d(!0), p(!0)) : h && (d(!1), p(!1));
|
|
17831
|
+
}, [n, h]), /* @__PURE__ */ S(
|
|
17832
|
+
"div",
|
|
17833
|
+
{
|
|
17834
|
+
className: "ml-2 flex flex-shrink-0 items-center gap-1",
|
|
17835
|
+
onClick: (y) => y.stopPropagation(),
|
|
17836
|
+
children: [
|
|
17837
|
+
e.permissions.canEdit && !r && /* @__PURE__ */ f(
|
|
17838
|
+
se,
|
|
17839
|
+
{
|
|
17840
|
+
size: "sm",
|
|
17841
|
+
variant: "ghost",
|
|
17842
|
+
className: "h-6 w-6 p-0",
|
|
17843
|
+
onClick: (y) => {
|
|
17844
|
+
y.stopPropagation(), o == null || o(e);
|
|
17845
|
+
},
|
|
17846
|
+
title: "Edit details",
|
|
17847
|
+
children: /* @__PURE__ */ f(vP, { className: "h-3 w-3" })
|
|
17848
|
+
}
|
|
17849
|
+
),
|
|
17850
|
+
!r && /* @__PURE__ */ S(
|
|
17851
|
+
Ob,
|
|
17852
|
+
{
|
|
17853
|
+
modal: !1,
|
|
17854
|
+
open: u,
|
|
17855
|
+
onOpenChange: d,
|
|
17856
|
+
children: [
|
|
17857
|
+
/* @__PURE__ */ f(Fb, { asChild: !0, children: /* @__PURE__ */ f(se, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", children: /* @__PURE__ */ f(kb, { className: "h-3 w-3" }) }) }),
|
|
17858
|
+
/* @__PURE__ */ S(mp, { align: "end", className: "z-[51] w-40", children: [
|
|
17859
|
+
/* @__PURE__ */ S(
|
|
17860
|
+
fa,
|
|
17861
|
+
{
|
|
17862
|
+
onClick: (y) => {
|
|
17863
|
+
y.preventDefault(), y.stopPropagation(), a(e.id);
|
|
17864
|
+
},
|
|
17865
|
+
disabled: n,
|
|
17866
|
+
children: [
|
|
17867
|
+
n ? /* @__PURE__ */ f(Kn, { className: "mr-2 h-3 w-3 animate-spin" }) : /* @__PURE__ */ f(cx, { className: "mr-2 h-3 w-3" }),
|
|
17868
|
+
n ? "Duplicating..." : "Duplicate"
|
|
17869
|
+
]
|
|
17870
|
+
}
|
|
17871
|
+
),
|
|
17872
|
+
e.permissions.canEdit && /* @__PURE__ */ S(
|
|
17873
|
+
fa,
|
|
17874
|
+
{
|
|
17875
|
+
onClick: (y) => {
|
|
17876
|
+
y.stopPropagation(), o == null || o(e);
|
|
17877
|
+
},
|
|
17878
|
+
children: [
|
|
17879
|
+
/* @__PURE__ */ f(vP, { className: "mr-2 h-3 w-3" }),
|
|
17880
|
+
"Edit details"
|
|
17881
|
+
]
|
|
17882
|
+
}
|
|
17883
|
+
),
|
|
17884
|
+
e.permissions.canEdit && /* @__PURE__ */ S(
|
|
17885
|
+
fa,
|
|
17886
|
+
{
|
|
17887
|
+
onClick: (y) => {
|
|
17888
|
+
y.stopPropagation(), s(e);
|
|
17889
|
+
},
|
|
17890
|
+
children: [
|
|
17891
|
+
/* @__PURE__ */ f(Ro, { className: "mr-2 h-3 w-3" }),
|
|
17892
|
+
"Share"
|
|
17893
|
+
]
|
|
17894
|
+
}
|
|
17895
|
+
),
|
|
17896
|
+
/* @__PURE__ */ S(
|
|
17897
|
+
fa,
|
|
17898
|
+
{
|
|
17899
|
+
onClick: (y) => {
|
|
17900
|
+
var v;
|
|
17901
|
+
y.stopPropagation(), (v = navigator == null ? void 0 : navigator.clipboard) != null && v.writeText ? navigator.clipboard.writeText(e.id).then(() => We.success("Dashboard ID copied")).catch(() => We.error("Unable to copy dashboard ID")) : We.error("Clipboard not available");
|
|
17902
|
+
},
|
|
17903
|
+
children: [
|
|
17904
|
+
/* @__PURE__ */ f(cx, { className: "mr-2 h-3 w-3" }),
|
|
17905
|
+
"Copy ID"
|
|
17906
|
+
]
|
|
17907
|
+
}
|
|
17908
|
+
),
|
|
17909
|
+
e.permissions.canDelete && /* @__PURE__ */ S(Te, { children: [
|
|
17910
|
+
/* @__PURE__ */ f(Ph, {}),
|
|
17911
|
+
/* @__PURE__ */ S(
|
|
17912
|
+
fa,
|
|
17913
|
+
{
|
|
17914
|
+
onClick: (y) => {
|
|
17915
|
+
y.stopPropagation(), i(e);
|
|
17916
|
+
},
|
|
17917
|
+
className: "text-destructive",
|
|
17918
|
+
disabled: t,
|
|
17919
|
+
children: [
|
|
17920
|
+
/* @__PURE__ */ f(sp, { className: "mr-2 h-3 w-3" }),
|
|
17921
|
+
t ? "Deleting..." : "Delete"
|
|
17922
|
+
]
|
|
17923
|
+
}
|
|
17924
|
+
)
|
|
17925
|
+
] }),
|
|
17926
|
+
/* @__PURE__ */ f(Ph, {}),
|
|
17927
|
+
/* @__PURE__ */ S("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
|
|
17928
|
+
(((m = e.ownership.createdBy) == null ? void 0 : m.type) === "tenant" || ((g = e.ownership.createdBy) == null ? void 0 : g.type) === "organization" && c) && /* @__PURE__ */ S("div", { className: "flex items-center gap-1", children: [
|
|
17929
|
+
/* @__PURE__ */ f(gd, { className: "h-3 w-3" }),
|
|
17930
|
+
/* @__PURE__ */ f("span", { children: ((b = e.ownership.createdBy) == null ? void 0 : b.name) || "Unknown" })
|
|
17931
|
+
] }),
|
|
17932
|
+
/* @__PURE__ */ S("div", { className: "flex items-center gap-1", children: [
|
|
17933
|
+
/* @__PURE__ */ f(Mo, { className: "h-3 w-3" }),
|
|
17934
|
+
/* @__PURE__ */ f("span", { children: l(e.lastModified) })
|
|
17935
|
+
] })
|
|
17936
|
+
] })
|
|
17937
|
+
] })
|
|
17938
|
+
]
|
|
17939
|
+
}
|
|
17940
|
+
)
|
|
17941
|
+
]
|
|
17942
|
+
}
|
|
17943
|
+
);
|
|
17944
|
+
}
|
|
17944
17945
|
function Uue() {
|
|
17945
17946
|
const { authToken: e, tokenProps: t } = tt(), n = t == null ? void 0 : t.apiServiceUrl, r = t == null ? void 0 : t.project_id, o = Mi();
|
|
17946
17947
|
return Ns({
|
|
@@ -17990,12 +17991,12 @@ function Uue() {
|
|
|
17990
17991
|
l != null && l.previousPreferences && o.setQueryData(
|
|
17991
17992
|
["user-preferences", r],
|
|
17992
17993
|
l.previousPreferences
|
|
17993
|
-
),
|
|
17994
|
+
), We.error(i.message || "Failed to update default dashboard"), console.error("Error updating default dashboard:", i);
|
|
17994
17995
|
},
|
|
17995
17996
|
onSuccess: (i, a) => {
|
|
17996
17997
|
o.invalidateQueries({
|
|
17997
17998
|
queryKey: ["user-preferences", r]
|
|
17998
|
-
}),
|
|
17999
|
+
}), We.success(
|
|
17999
18000
|
a.dashboardId ? "Default dashboard set successfully" : "Default dashboard cleared"
|
|
18000
18001
|
);
|
|
18001
18002
|
}
|
|
@@ -18458,7 +18459,7 @@ function pde({
|
|
|
18458
18459
|
),
|
|
18459
18460
|
/* @__PURE__ */ S("div", { className: "flex items-center gap-1", children: [
|
|
18460
18461
|
i && a && s && l && /* @__PURE__ */ f("div", { className: "opacity-0 transition-opacity group-hover:opacity-100", children: /* @__PURE__ */ f(
|
|
18461
|
-
|
|
18462
|
+
Hue,
|
|
18462
18463
|
{
|
|
18463
18464
|
dashboard: e,
|
|
18464
18465
|
isDeleting: r,
|
|
@@ -18722,10 +18723,10 @@ function Nde(e, t) {
|
|
|
18722
18723
|
await o.cancelQueries({ queryKey: [e] });
|
|
18723
18724
|
},
|
|
18724
18725
|
onSuccess: async (i) => {
|
|
18725
|
-
await o.invalidateQueries({ queryKey: [e] }),
|
|
18726
|
+
await o.invalidateQueries({ queryKey: [e] }), We.success(`${Ea(e)} created successfully`), t == null || t(i);
|
|
18726
18727
|
},
|
|
18727
18728
|
onError: (i) => {
|
|
18728
|
-
|
|
18729
|
+
We.error(
|
|
18729
18730
|
`Failed to create ${Ea(e)}: ${i.message}`
|
|
18730
18731
|
);
|
|
18731
18732
|
}
|
|
@@ -18751,7 +18752,7 @@ function kde(e) {
|
|
|
18751
18752
|
await r.invalidateQueries({ queryKey: [e] });
|
|
18752
18753
|
},
|
|
18753
18754
|
onError: (o) => {
|
|
18754
|
-
|
|
18755
|
+
We.error(
|
|
18755
18756
|
`Failed to update ${Ea(e)}: ${o.message}`
|
|
18756
18757
|
);
|
|
18757
18758
|
}
|
|
@@ -18765,10 +18766,10 @@ function Ede(e, t) {
|
|
|
18765
18766
|
await o.cancelQueries({ queryKey: [e] });
|
|
18766
18767
|
},
|
|
18767
18768
|
onSuccess: async () => {
|
|
18768
|
-
await o.invalidateQueries({ queryKey: [e] }),
|
|
18769
|
+
await o.invalidateQueries({ queryKey: [e] }), We.success(`${Ea(e)} deleted successfully`), t == null || t();
|
|
18769
18770
|
},
|
|
18770
18771
|
onError: (i) => {
|
|
18771
|
-
|
|
18772
|
+
We.error(
|
|
18772
18773
|
`Failed to delete ${Ea(e)}: ${i.message}`
|
|
18773
18774
|
);
|
|
18774
18775
|
}
|
|
@@ -18782,10 +18783,10 @@ function _de(e) {
|
|
|
18782
18783
|
await r.cancelQueries({ queryKey: [e] });
|
|
18783
18784
|
},
|
|
18784
18785
|
onSuccess: async () => {
|
|
18785
|
-
await r.invalidateQueries({ queryKey: [e] }),
|
|
18786
|
+
await r.invalidateQueries({ queryKey: [e] }), We.success(`${Ea(e)} duplicated successfully`);
|
|
18786
18787
|
},
|
|
18787
18788
|
onError: (o) => {
|
|
18788
|
-
|
|
18789
|
+
We.error(
|
|
18789
18790
|
`Failed to duplicate ${Ea(e)}: ${o.message}`
|
|
18790
18791
|
);
|
|
18791
18792
|
}
|
|
@@ -18824,7 +18825,7 @@ function o7() {
|
|
|
18824
18825
|
}), n.invalidateQueries({ queryKey: [o.resourceType] });
|
|
18825
18826
|
},
|
|
18826
18827
|
onError: (r) => {
|
|
18827
|
-
|
|
18828
|
+
We.error(`Failed to share resource: ${r.message}`);
|
|
18828
18829
|
}
|
|
18829
18830
|
});
|
|
18830
18831
|
}
|
|
@@ -18861,7 +18862,7 @@ function i7() {
|
|
|
18861
18862
|
}), n.invalidateQueries({ queryKey: [o.resourceType] });
|
|
18862
18863
|
},
|
|
18863
18864
|
onError: (r) => {
|
|
18864
|
-
|
|
18865
|
+
We.error(`Failed to remove resource shares: ${r.message}`);
|
|
18865
18866
|
}
|
|
18866
18867
|
});
|
|
18867
18868
|
}
|
|
@@ -18979,10 +18980,10 @@ function htt(e) {
|
|
|
18979
18980
|
onSuccess: async (o) => {
|
|
18980
18981
|
await r.invalidateQueries({ queryKey: [Ut.VISUAL] }), o != null && o.id && await r.invalidateQueries({
|
|
18981
18982
|
queryKey: ["resource-by-id", Ut.VISUAL, o.id]
|
|
18982
|
-
}),
|
|
18983
|
+
}), We.success("Visual created successfully"), e == null || e(o);
|
|
18983
18984
|
},
|
|
18984
18985
|
onError: (o) => {
|
|
18985
|
-
|
|
18986
|
+
We.error(`Failed to create visual: ${o.message}`);
|
|
18986
18987
|
}
|
|
18987
18988
|
});
|
|
18988
18989
|
}
|
|
@@ -19009,12 +19010,12 @@ function ptt() {
|
|
|
19009
19010
|
return i.json();
|
|
19010
19011
|
},
|
|
19011
19012
|
onSuccess: (r, o) => {
|
|
19012
|
-
|
|
19013
|
+
We.success("Visual updated successfully"), n.invalidateQueries({ queryKey: [Ut.VISUAL] }), o != null && o.visualId && n.invalidateQueries({
|
|
19013
19014
|
queryKey: ["resource-by-id", Ut.VISUAL, o.visualId]
|
|
19014
19015
|
});
|
|
19015
19016
|
},
|
|
19016
19017
|
onError: () => {
|
|
19017
|
-
|
|
19018
|
+
We.error("Failed to update visual");
|
|
19018
19019
|
}
|
|
19019
19020
|
});
|
|
19020
19021
|
}
|
|
@@ -39866,7 +39867,7 @@ function j1e(e, t, n) {
|
|
|
39866
39867
|
return { isValid: !0 };
|
|
39867
39868
|
}
|
|
39868
39869
|
function H1e() {
|
|
39869
|
-
|
|
39870
|
+
We.error("Join Configuration Required", {
|
|
39870
39871
|
richColors: !0,
|
|
39871
39872
|
description: "To combine fields from two different tables, you need to define a join between them first.",
|
|
39872
39873
|
position: "top-center",
|
|
@@ -44330,7 +44331,7 @@ function pCe(e, t, n) {
|
|
|
44330
44331
|
i(h, {
|
|
44331
44332
|
onSuccess: () => {
|
|
44332
44333
|
var p;
|
|
44333
|
-
l(), (p = t.resetGroupSelections) == null || p.call(t),
|
|
44334
|
+
l(), (p = t.resetGroupSelections) == null || p.call(t), We.success(
|
|
44334
44335
|
`Shared with ${c.length} group${c.length !== 1 ? "s" : ""}`
|
|
44335
44336
|
);
|
|
44336
44337
|
}
|
|
@@ -44349,7 +44350,7 @@ function pCe(e, t, n) {
|
|
|
44349
44350
|
a(h, {
|
|
44350
44351
|
onSuccess: () => {
|
|
44351
44352
|
var p;
|
|
44352
|
-
l(), (p = t.resetGroupSelections) == null || p.call(t),
|
|
44353
|
+
l(), (p = t.resetGroupSelections) == null || p.call(t), We.success(
|
|
44353
44354
|
`Removed access from ${u.length} group${u.length !== 1 ? "s" : ""}`
|
|
44354
44355
|
);
|
|
44355
44356
|
}
|
|
@@ -44366,7 +44367,7 @@ function pCe(e, t, n) {
|
|
|
44366
44367
|
i(p, {
|
|
44367
44368
|
onSuccess: () => {
|
|
44368
44369
|
var m;
|
|
44369
|
-
l(), (m = t.resetGroupSelections) == null || m.call(t),
|
|
44370
|
+
l(), (m = t.resetGroupSelections) == null || m.call(t), We.success(
|
|
44370
44371
|
"Updated access for group"
|
|
44371
44372
|
);
|
|
44372
44373
|
}
|
|
@@ -52009,12 +52010,12 @@ function $W({
|
|
|
52009
52010
|
}, E = async () => {
|
|
52010
52011
|
var B, V, L, O, j, z;
|
|
52011
52012
|
if (!r) {
|
|
52012
|
-
|
|
52013
|
+
We.error("No card selected");
|
|
52013
52014
|
return;
|
|
52014
52015
|
}
|
|
52015
52016
|
const M = (y == null ? void 0 : y.data) || o;
|
|
52016
52017
|
if (!M) {
|
|
52017
|
-
|
|
52018
|
+
We.error("No data to export");
|
|
52018
52019
|
return;
|
|
52019
52020
|
}
|
|
52020
52021
|
const F = (() => {
|
|
@@ -52066,7 +52067,7 @@ function $W({
|
|
|
52066
52067
|
cardFilterValues: g || [],
|
|
52067
52068
|
cardConfig: x
|
|
52068
52069
|
});
|
|
52069
|
-
Y.rowLimitExceeded &&
|
|
52070
|
+
Y.rowLimitExceeded && We.warning(
|
|
52070
52071
|
"Dataset exceeds 10,000 rows. Exporting first 10,000 records. Please apply filters to reduce dataset size.",
|
|
52071
52072
|
{
|
|
52072
52073
|
duration: 5e3
|
|
@@ -52077,10 +52078,10 @@ function $W({
|
|
|
52077
52078
|
delimiter: h.delimiter,
|
|
52078
52079
|
includeHeaders: h.includeHeaders,
|
|
52079
52080
|
useFormattedValues: !0
|
|
52080
|
-
}),
|
|
52081
|
+
}), We.success("CSV exported successfully"), T();
|
|
52081
52082
|
return;
|
|
52082
52083
|
} catch (Y) {
|
|
52083
|
-
|
|
52084
|
+
We.error(`Export failed: ${Y.message || "Unknown error"}`), console.error("Export error:", Y);
|
|
52084
52085
|
return;
|
|
52085
52086
|
}
|
|
52086
52087
|
if (U)
|
|
@@ -52088,7 +52089,7 @@ function $W({
|
|
|
52088
52089
|
case "table": {
|
|
52089
52090
|
const Y = Array.isArray(M) ? M : (M == null ? void 0 : M.records) || [];
|
|
52090
52091
|
if (!Y || Y.length === 0) {
|
|
52091
|
-
|
|
52092
|
+
We.error("No data available to export");
|
|
52092
52093
|
return;
|
|
52093
52094
|
}
|
|
52094
52095
|
a4(
|
|
@@ -52100,13 +52101,13 @@ function $W({
|
|
|
52100
52101
|
includeHeaders: h.includeHeaders,
|
|
52101
52102
|
useFormattedValues: !0
|
|
52102
52103
|
}
|
|
52103
|
-
),
|
|
52104
|
+
), We.success("CSV exported successfully"), T();
|
|
52104
52105
|
return;
|
|
52105
52106
|
}
|
|
52106
52107
|
case "aggregateTable": {
|
|
52107
52108
|
const Y = Array.isArray(M) ? M : (M == null ? void 0 : M.records) || [];
|
|
52108
52109
|
if (!Y || Y.length === 0) {
|
|
52109
|
-
|
|
52110
|
+
We.error("No data available to export");
|
|
52110
52111
|
return;
|
|
52111
52112
|
}
|
|
52112
52113
|
const K = (M == null ? void 0 : M.groupByColumns) || ((L = r.config) == null ? void 0 : L.groupByColumns) || [], H = (M == null ? void 0 : M.pivotSchema) || [], q = qM(Y, K), X = YM(Y), Z = (j = (O = r == null ? void 0 : r.preferences) == null ? void 0 : O.tablePrefs) == null ? void 0 : j.columnSettingsMap, G = kW(
|
|
@@ -52118,10 +52119,10 @@ function $W({
|
|
|
52118
52119
|
Z
|
|
52119
52120
|
);
|
|
52120
52121
|
if (!G) {
|
|
52121
|
-
|
|
52122
|
+
We.error("Failed to generate CSV content");
|
|
52122
52123
|
return;
|
|
52123
52124
|
}
|
|
52124
|
-
Jx(G, W),
|
|
52125
|
+
Jx(G, W), We.success("CSV exported successfully"), T();
|
|
52125
52126
|
return;
|
|
52126
52127
|
}
|
|
52127
52128
|
case "pivotTable":
|
|
@@ -52137,10 +52138,10 @@ function $W({
|
|
|
52137
52138
|
includeGrandTotal: !0,
|
|
52138
52139
|
showRowTotals: (z = C.options) == null ? void 0 : z.showRowTotals
|
|
52139
52140
|
}
|
|
52140
|
-
),
|
|
52141
|
+
), We.success("CSV exported successfully"), t();
|
|
52141
52142
|
return;
|
|
52142
52143
|
} else {
|
|
52143
|
-
|
|
52144
|
+
We.error("Unable to export pivot table data");
|
|
52144
52145
|
return;
|
|
52145
52146
|
}
|
|
52146
52147
|
default:
|
|
@@ -52149,7 +52150,7 @@ function $W({
|
|
|
52149
52150
|
else {
|
|
52150
52151
|
const Y = Array.isArray(M) ? M : (M == null ? void 0 : M.records) || [];
|
|
52151
52152
|
if (!Y || Y.length === 0) {
|
|
52152
|
-
|
|
52153
|
+
We.error("No data available to export");
|
|
52153
52154
|
return;
|
|
52154
52155
|
}
|
|
52155
52156
|
const K = Object.keys(Y[0]), H = (X) => {
|
|
@@ -52165,17 +52166,17 @@ function $W({
|
|
|
52165
52166
|
`);
|
|
52166
52167
|
}
|
|
52167
52168
|
if (!P) {
|
|
52168
|
-
|
|
52169
|
+
We.error("Failed to generate CSV content");
|
|
52169
52170
|
return;
|
|
52170
52171
|
}
|
|
52171
|
-
Jx(P, W),
|
|
52172
|
+
Jx(P, W), We.success("CSV exported successfully"), T();
|
|
52172
52173
|
} else {
|
|
52173
52174
|
if (h.protectPdf && !h.pdfPassword) {
|
|
52174
|
-
|
|
52175
|
+
We.error("Please enter a password to protect the PDF");
|
|
52175
52176
|
return;
|
|
52176
52177
|
}
|
|
52177
52178
|
const P = h.protectPdf ? "Generating protected PDF... This may take up to 60 seconds depending on data size." : "Generating PDF... This may take up to 60 seconds depending on data size.";
|
|
52178
|
-
|
|
52179
|
+
We.info(P);
|
|
52179
52180
|
const W = {
|
|
52180
52181
|
password: h.protectPdf ? h.pdfPassword : void 0,
|
|
52181
52182
|
pageSize: h.pageSize,
|
|
@@ -52206,10 +52207,10 @@ function $W({
|
|
|
52206
52207
|
g
|
|
52207
52208
|
);
|
|
52208
52209
|
const K = h.protectPdf ? "Protected PDF downloaded successfully" : "PDF downloaded successfully";
|
|
52209
|
-
|
|
52210
|
+
We.success(K), T();
|
|
52210
52211
|
}
|
|
52211
52212
|
} catch (P) {
|
|
52212
|
-
console.error("Export error:", P),
|
|
52213
|
+
console.error("Export error:", P), We.error("Failed to export. Please try again.");
|
|
52213
52214
|
} finally {
|
|
52214
52215
|
c(!1);
|
|
52215
52216
|
}
|
|
@@ -56881,8 +56882,8 @@ function lq(e) {
|
|
|
56881
56882
|
const Le = ae.getState().columnVisibility;
|
|
56882
56883
|
try {
|
|
56883
56884
|
Ae = Ee(Le);
|
|
56884
|
-
} catch (
|
|
56885
|
-
console.error("Failed to resolve visibility function:",
|
|
56885
|
+
} catch (Ye) {
|
|
56886
|
+
console.error("Failed to resolve visibility function:", Ye);
|
|
56886
56887
|
return;
|
|
56887
56888
|
}
|
|
56888
56889
|
} else
|
|
@@ -56891,8 +56892,8 @@ function lq(e) {
|
|
|
56891
56892
|
c(Ae);
|
|
56892
56893
|
else if (d) {
|
|
56893
56894
|
const Le = ae.getState().columnVisibility;
|
|
56894
|
-
Object.entries(Ae).forEach(([
|
|
56895
|
-
Le[
|
|
56895
|
+
Object.entries(Ae).forEach(([Ye, st]) => {
|
|
56896
|
+
Le[Ye] !== st && d(Ye, st);
|
|
56896
56897
|
});
|
|
56897
56898
|
} else
|
|
56898
56899
|
oe(Ae);
|
|
@@ -56932,7 +56933,7 @@ function lq(e) {
|
|
|
56932
56933
|
F === "server" && y && B(y.page - 1);
|
|
56933
56934
|
}, [y, F]), fe(() => {
|
|
56934
56935
|
if (d && l) {
|
|
56935
|
-
const Ae = ae.getAllColumns().filter((
|
|
56936
|
+
const Ae = ae.getAllColumns().filter((Ye) => Ye.id !== "select").map((Ye) => Ye.id).filter((Ye) => typeof Ye == "string");
|
|
56936
56937
|
(!o || Object.keys(o).length === 0) && l(Ae);
|
|
56937
56938
|
}
|
|
56938
56939
|
}, [
|
|
@@ -56944,8 +56945,8 @@ function lq(e) {
|
|
|
56944
56945
|
const je = (Ee, Ae) => {
|
|
56945
56946
|
me.current = !0;
|
|
56946
56947
|
try {
|
|
56947
|
-
d ? d(Ee, Ae) : (console.log("Updating internal state", Ee, Ae), oe((
|
|
56948
|
-
...
|
|
56948
|
+
d ? d(Ee, Ae) : (console.log("Updating internal state", Ee, Ae), oe((Ye) => ({
|
|
56949
|
+
...Ye,
|
|
56949
56950
|
[Ee]: Ae
|
|
56950
56951
|
})));
|
|
56951
56952
|
const Le = ae.getColumn(Ee);
|
|
@@ -56986,16 +56987,16 @@ function lq(e) {
|
|
|
56986
56987
|
rows: ae.getFilteredRowModel().rows.map((Ee) => {
|
|
56987
56988
|
const Ae = {};
|
|
56988
56989
|
return ae.getAllColumns().filter((Le) => Le.id !== "select" && Le.getIsVisible()).forEach((Le) => {
|
|
56989
|
-
const
|
|
56990
|
-
Ae[
|
|
56990
|
+
const Ye = Le.id;
|
|
56991
|
+
Ae[Ye] = Ee.getValue(Ye);
|
|
56991
56992
|
}), Ae;
|
|
56992
56993
|
}),
|
|
56993
56994
|
// Get only selected rows
|
|
56994
56995
|
selectedRows: ae.getFilteredSelectedRowModel().rows.map((Ee) => {
|
|
56995
56996
|
const Ae = {};
|
|
56996
56997
|
return ae.getAllColumns().filter((Le) => Le.id !== "select" && Le.getIsVisible()).forEach((Le) => {
|
|
56997
|
-
const
|
|
56998
|
-
Ae[
|
|
56998
|
+
const Ye = Le.id;
|
|
56999
|
+
Ae[Ye] = Ee.getValue(Ye);
|
|
56999
57000
|
}), Ae;
|
|
57000
57001
|
}),
|
|
57001
57002
|
// Get visible columns for export (excluding select column)
|
|
@@ -69818,10 +69819,10 @@ function MOe(e) {
|
|
|
69818
69819
|
const { from: an, to: Gt } = W;
|
|
69819
69820
|
Ae[ba.range_start] = !!(an && Gt && i.isSameDay(Ee, an)), Ae[ba.range_end] = !!(an && Gt && i.isSameDay(Ee, Gt)), Ae[ba.range_middle] = ll(W, Ee, !0, i);
|
|
69820
69821
|
}
|
|
69821
|
-
const Le = qPe(Ae, C, t.modifiersStyles),
|
|
69822
|
+
const Le = qPe(Ae, C, t.modifiersStyles), Ye = APe(Ae, s, t.modifiersClassNames), st = !ze && !Ae.hidden ? Z(Ee, Ae, i.options, i) : void 0;
|
|
69822
69823
|
return (
|
|
69823
69824
|
// biome-ignore lint/a11y/useSemanticElements: react component
|
|
69824
|
-
Q.createElement(n.Day, { key: `${i.format(Ee, "yyyy-MM-dd")}_${i.format(rt.displayMonth, "yyyy-MM")}`, day: rt, modifiers: Ae, className:
|
|
69825
|
+
Q.createElement(n.Day, { key: `${i.format(Ee, "yyyy-MM-dd")}_${i.format(rt.displayMonth, "yyyy-MM")}`, day: rt, modifiers: Ae, className: Ye.join(" "), style: Le, role: "gridcell", "aria-selected": Ae.selected || void 0, "aria-label": st, "data-day": i.format(Ee, "yyyy-MM-dd"), "data-month": rt.outside ? i.format(Ee, "yyyy-MM") : void 0, "data-selected": Ae.selected || void 0, "data-disabled": Ae.disabled || void 0, "data-hidden": Ae.hidden || void 0, "data-outside": rt.outside || void 0, "data-focused": Ae.focused || void 0, "data-today": Ae.today || void 0 }, !Ae.hidden && ze ? Q.createElement(n.DayButton, { className: s[ot.DayButton], style: C == null ? void 0 : C[ot.DayButton], type: "button", day: rt, modifiers: Ae, disabled: Ae.disabled || void 0, tabIndex: K(rt) ? 0 : -1, "aria-label": X(Ee, Ae, i.options, i), onClick: Ce(rt, Ae), onBlur: he(rt, Ae), onFocus: ae(rt, Ae), onKeyDown: _e(rt, Ae), onMouseEnter: De(rt, Ae), onMouseLeave: je(rt, Ae) }, k(Ee, i.options, i)) : !Ae.hidden && k(rt.date, i.options, i))
|
|
69825
69826
|
);
|
|
69826
69827
|
})
|
|
69827
69828
|
)))
|
|
@@ -70468,13 +70469,13 @@ function BOe(e = {}) {
|
|
|
70468
70469
|
(h == null ? void 0 : h.accessToken) || "",
|
|
70469
70470
|
B
|
|
70470
70471
|
);
|
|
70471
|
-
return
|
|
70472
|
+
return We.success("Schedule created successfully!", {
|
|
70472
70473
|
description: `Reports will be sent ${I.frequency} at ${I.time}`
|
|
70473
70474
|
}), await E(), s(!1), L;
|
|
70474
70475
|
} catch (F) {
|
|
70475
70476
|
console.error("Failed to create schedule:", F);
|
|
70476
70477
|
const R = F instanceof Error ? F.message : "Failed to create schedule";
|
|
70477
|
-
throw c(R), s(!1),
|
|
70478
|
+
throw c(R), s(!1), We.error("Failed to create schedule", {
|
|
70478
70479
|
description: R
|
|
70479
70480
|
}), F;
|
|
70480
70481
|
}
|
|
@@ -70503,9 +70504,9 @@ function BOe(e = {}) {
|
|
|
70503
70504
|
}
|
|
70504
70505
|
})).ok)
|
|
70505
70506
|
throw new Error("Failed to delete schedule");
|
|
70506
|
-
|
|
70507
|
+
We.success("Schedule deleted successfully"), await E(), d(null);
|
|
70507
70508
|
} catch (F) {
|
|
70508
|
-
throw console.error("Failed to delete schedule:", F), d(null),
|
|
70509
|
+
throw console.error("Failed to delete schedule:", F), d(null), We.error("Failed to delete schedule", {
|
|
70509
70510
|
description: F instanceof Error ? F.message : "Please try again"
|
|
70510
70511
|
}), F;
|
|
70511
70512
|
}
|
|
@@ -70983,7 +70984,7 @@ function qY({
|
|
|
70983
70984
|
}, U = async () => {
|
|
70984
70985
|
if (!m) return;
|
|
70985
70986
|
c(!1), g(""), y(!1);
|
|
70986
|
-
const J =
|
|
70987
|
+
const J = We.loading(
|
|
70987
70988
|
"Generating protected PDF report... may take up to 60 seconds"
|
|
70988
70989
|
);
|
|
70989
70990
|
try {
|
|
@@ -71002,12 +71003,12 @@ function qY({
|
|
|
71002
71003
|
// filterLine
|
|
71003
71004
|
O
|
|
71004
71005
|
// Use card-scoped filter values
|
|
71005
|
-
),
|
|
71006
|
+
), We.dismiss(J), We.success("Protected visual PDF downloaded successfully!", {
|
|
71006
71007
|
duration: 2e3,
|
|
71007
71008
|
position: "top-right"
|
|
71008
71009
|
});
|
|
71009
71010
|
} catch (oe) {
|
|
71010
|
-
|
|
71011
|
+
We.dismiss(J), We.error("Failed to download protected visual PDF. Please try again."), console.error("Protected visual PDF download error:", oe);
|
|
71011
71012
|
}
|
|
71012
71013
|
}, Y = () => {
|
|
71013
71014
|
if (D)
|
|
@@ -71015,9 +71016,9 @@ function qY({
|
|
|
71015
71016
|
const J = JSON.parse(JSON.stringify(e)), oe = oY(J), ue = oe.cards.findIndex(
|
|
71016
71017
|
(le) => le.id === oe.activeCardId
|
|
71017
71018
|
);
|
|
71018
|
-
ue !== -1 && (oe.cards[ue].title = `${oe.cards[ue].title} (Copy)`), R(D, oe), A(oe.id),
|
|
71019
|
+
ue !== -1 && (oe.cards[ue].title = `${oe.cards[ue].title} (Copy)`), R(D, oe), A(oe.id), We.success("Card duplicated successfully");
|
|
71019
71020
|
} catch (J) {
|
|
71020
|
-
console.error("Failed to duplicate frame:", J),
|
|
71021
|
+
console.error("Failed to duplicate frame:", J), We.error("Failed to duplicate card");
|
|
71021
71022
|
}
|
|
71022
71023
|
}, K = () => {
|
|
71023
71024
|
const { authToken: J, theme: oe, dashboardTitle: ue, selectedSheetId: le, dashboardId: me } = WM(), Ne = new URLSearchParams();
|
|
@@ -72290,7 +72291,7 @@ function b5e({
|
|
|
72290
72291
|
}) {
|
|
72291
72292
|
var N, k, T, E, D, M, I, F, R, A, $, B, V, L, O, j, z, P, W, U, Y, K, H, q, X, Z, G, J, oe, ue, le, me, Ne, Me, Ie, pe, ze, He, St, Ce, ae, he, _e, De;
|
|
72292
72293
|
const r = e.config, { setTitle: o, isEditable: i, isVisualEditing: a } = rG(e), { setCardDescription: s } = Dr(), { getCurrency: l, getLocale: c } = cS(e), u = (r == null ? void 0 : r.metricColumns) || [], d = (T = (k = (N = e.preferences) == null ? void 0 : N.kpiVisualOptions) == null ? void 0 : k.metricComparison) == null ? void 0 : T.enabled, h = (je, it = !1) => {
|
|
72293
|
-
var vn, Ke, Xe, xt, Ze, rt, Ee, Ae, Le,
|
|
72294
|
+
var vn, Ke, Xe, xt, Ze, rt, Ee, Ae, Le, Ye, st, an, Gt, sn;
|
|
72294
72295
|
const Mt = (Ke = (vn = e.preferences) == null ? void 0 : vn.formatNumber) == null ? void 0 : Ke.enabled, nt = (xt = (Xe = e.preferences) == null ? void 0 : Xe.kpiVisualOptions) == null ? void 0 : xt.formatOptions;
|
|
72295
72296
|
if (Mt === !1 || Mt === "false")
|
|
72296
72297
|
return je.toString();
|
|
@@ -72301,7 +72302,7 @@ function b5e({
|
|
|
72301
72302
|
locale: nt.locale || c() || "en-US",
|
|
72302
72303
|
currency: nt.currency || l() || "USD"
|
|
72303
72304
|
});
|
|
72304
|
-
const Wt = l() || ((rt = (Ze = e.preferences) == null ? void 0 : Ze.formatNumber) == null ? void 0 : rt.currency) || "", Re = c() || ((Ae = (Ee = e.preferences) == null ? void 0 : Ee.formatNumber) == null ? void 0 : Ae.locale) || "en-US", Ft = (
|
|
72305
|
+
const Wt = l() || ((rt = (Ze = e.preferences) == null ? void 0 : Ze.formatNumber) == null ? void 0 : rt.currency) || "", Re = c() || ((Ae = (Ee = e.preferences) == null ? void 0 : Ee.formatNumber) == null ? void 0 : Ae.locale) || "en-US", Ft = (Ye = (Le = e.preferences) == null ? void 0 : Le.formatNumber) == null ? void 0 : Ye.decimalPlaces;
|
|
72305
72306
|
return To({
|
|
72306
72307
|
number: je,
|
|
72307
72308
|
decimalPlaces: Ft ?? (Wt ? 2 : 0),
|
|
@@ -76987,10 +76988,7 @@ function S3e({ elementId: e }) {
|
|
|
76987
76988
|
}, [e]), null;
|
|
76988
76989
|
}
|
|
76989
76990
|
const C3e = Ss(
|
|
76990
|
-
({
|
|
76991
|
-
option: e,
|
|
76992
|
-
currentStyle: t
|
|
76993
|
-
}) => /* @__PURE__ */ S(
|
|
76991
|
+
({ option: e, currentStyle: t }) => /* @__PURE__ */ S(
|
|
76994
76992
|
HG,
|
|
76995
76993
|
{
|
|
76996
76994
|
style: {
|
|
@@ -77049,11 +77047,7 @@ function N3e({
|
|
|
77049
77047
|
] }) : h && w ? /* @__PURE__ */ f("div", { className: "border-b border-b-muted px-4 py-2 text-xs text-amber-600", children: "Search unavailable. Showing available results." }) : null;
|
|
77050
77048
|
}
|
|
77051
77049
|
function I() {
|
|
77052
|
-
return w || !(e != null && e.length) ? null : /* @__PURE__ */
|
|
77053
|
-
"Showing top ",
|
|
77054
|
-
e.length,
|
|
77055
|
-
" values. Type to search more..."
|
|
77056
|
-
] });
|
|
77050
|
+
return w || !(e != null && e.length) ? null : /* @__PURE__ */ f("div", { className: "border-b border-b-muted px-4 py-2 text-xs text-muted-foreground", children: "Type to search more..." });
|
|
77057
77051
|
}
|
|
77058
77052
|
function F() {
|
|
77059
77053
|
return !r || !(k != null && k.length) ? null : /* @__PURE__ */ S("div", { className: "flex items-center justify-between gap-2 border-b border-b-muted px-4 py-2", children: [
|
|
@@ -82938,12 +82932,12 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
82938
82932
|
} = Ee;
|
|
82939
82933
|
if (R.current == null)
|
|
82940
82934
|
return;
|
|
82941
|
-
const
|
|
82942
|
-
if (!
|
|
82935
|
+
const Ye = T.get(R.current);
|
|
82936
|
+
if (!Ye)
|
|
82943
82937
|
return;
|
|
82944
82938
|
const st = rt.nativeEvent, an = new Ae({
|
|
82945
82939
|
active: R.current,
|
|
82946
|
-
activeNode:
|
|
82940
|
+
activeNode: Ye,
|
|
82947
82941
|
event: st,
|
|
82948
82942
|
options: Le,
|
|
82949
82943
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
@@ -83056,18 +83050,18 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
83056
83050
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
83057
83051
|
[T]
|
|
83058
83052
|
), vn = ge((rt, Ee) => (Ae, Le) => {
|
|
83059
|
-
const
|
|
83053
|
+
const Ye = Ae.nativeEvent, st = T.get(Le);
|
|
83060
83054
|
if (
|
|
83061
83055
|
// Another sensor is already instantiating
|
|
83062
83056
|
R.current !== null || // No active draggable
|
|
83063
83057
|
!st || // Event has already been captured
|
|
83064
|
-
|
|
83058
|
+
Ye.dndKit || Ye.defaultPrevented
|
|
83065
83059
|
)
|
|
83066
83060
|
return;
|
|
83067
83061
|
const an = {
|
|
83068
83062
|
active: st
|
|
83069
83063
|
};
|
|
83070
|
-
rt(Ae, Ee.options, an) === !0 && (
|
|
83064
|
+
rt(Ae, Ee.options, an) === !0 && (Ye.dndKit = {
|
|
83071
83065
|
capturedBy: Ee.sensor
|
|
83072
83066
|
}, R.current = Le, Ft(Ae, Ee));
|
|
83073
83067
|
}, [T, Ft]), Ke = aLe(u, vn);
|
|
@@ -83081,7 +83075,7 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
83081
83075
|
active: Ee,
|
|
83082
83076
|
activatorEvent: Ae,
|
|
83083
83077
|
collisions: Le,
|
|
83084
|
-
over:
|
|
83078
|
+
over: Ye
|
|
83085
83079
|
} = G.current;
|
|
83086
83080
|
if (!Ee || !Ae)
|
|
83087
83081
|
return;
|
|
@@ -83093,7 +83087,7 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
83093
83087
|
x: he.x,
|
|
83094
83088
|
y: he.y
|
|
83095
83089
|
},
|
|
83096
|
-
over:
|
|
83090
|
+
over: Ye
|
|
83097
83091
|
};
|
|
83098
83092
|
j0(() => {
|
|
83099
83093
|
rt == null || rt(st), v({
|
|
@@ -83111,9 +83105,9 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
83111
83105
|
activatorEvent: Ee,
|
|
83112
83106
|
collisions: Ae,
|
|
83113
83107
|
droppableContainers: Le,
|
|
83114
|
-
scrollAdjustedTranslate:
|
|
83108
|
+
scrollAdjustedTranslate: Ye
|
|
83115
83109
|
} = G.current;
|
|
83116
|
-
if (!rt || R.current == null || !Ee || !
|
|
83110
|
+
if (!rt || R.current == null || !Ee || !Ye)
|
|
83117
83111
|
return;
|
|
83118
83112
|
const {
|
|
83119
83113
|
onDragOver: st
|
|
@@ -83127,8 +83121,8 @@ const aI = /* @__PURE__ */ Ss(function(t) {
|
|
|
83127
83121
|
activatorEvent: Ee,
|
|
83128
83122
|
collisions: Ae,
|
|
83129
83123
|
delta: {
|
|
83130
|
-
x:
|
|
83131
|
-
y:
|
|
83124
|
+
x: Ye.x,
|
|
83125
|
+
y: Ye.y
|
|
83132
83126
|
},
|
|
83133
83127
|
over: Gt
|
|
83134
83128
|
};
|
|
@@ -100136,12 +100130,12 @@ function SX() {
|
|
|
100136
100130
|
return l;
|
|
100137
100131
|
},
|
|
100138
100132
|
onSuccess: (o) => {
|
|
100139
|
-
|
|
100133
|
+
We.success(`Feedback sent successfully! Issue: ${o.issueNumber}`, {
|
|
100140
100134
|
duration: 5e3
|
|
100141
100135
|
});
|
|
100142
100136
|
},
|
|
100143
100137
|
onError: (o) => {
|
|
100144
|
-
console.error("Feedback submission error:", o),
|
|
100138
|
+
console.error("Feedback submission error:", o), We.error("Failed to send feedback. Please try again later.", {
|
|
100145
100139
|
duration: 5e3
|
|
100146
100140
|
});
|
|
100147
100141
|
}
|
|
@@ -100327,10 +100321,10 @@ function WUe({
|
|
|
100327
100321
|
null
|
|
100328
100322
|
), u = bM(), d = n0(), { isLoading: h } = SX(), { isLocalDev: p, isConsoleMode: m } = $b(), g = async () => {
|
|
100329
100323
|
if (o === "positive") {
|
|
100330
|
-
i("none"),
|
|
100324
|
+
i("none"), We.info("Feedback removed");
|
|
100331
100325
|
return;
|
|
100332
100326
|
}
|
|
100333
|
-
i("positive"),
|
|
100327
|
+
i("positive"), We.success("Thank you for your feedback!");
|
|
100334
100328
|
}, b = () => {
|
|
100335
100329
|
const x = UUe(n, e), w = u === "dashboard" ? Bd.DASHBOARD_ASSISTANT : Bd.EDITOR_ASSISTANT, C = jI(w, {
|
|
100336
100330
|
assistantType: u,
|
|
@@ -101282,7 +101276,7 @@ function oWe({
|
|
|
101282
101276
|
connectionId: E || "",
|
|
101283
101277
|
cardType: O || "bar",
|
|
101284
101278
|
python: R || ""
|
|
101285
|
-
}),
|
|
101279
|
+
}), We.success("Card added to dashboard");
|
|
101286
101280
|
},
|
|
101287
101281
|
"aria-label": "Add visual to dashboard",
|
|
101288
101282
|
children: /* @__PURE__ */ f(Br, { className: "h-4 w-4" })
|
|
@@ -104538,7 +104532,7 @@ const EGe = (e, t) => {
|
|
|
104538
104532
|
}), MGe = /* @__PURE__ */ Se("ZodString", (e, t) => {
|
|
104539
104533
|
XI.init(e, t), cQ.init(e, t), e.email = (n) => e.check(DYe(RGe, n)), e.url = (n) => e.check(AYe(IGe, n)), e.jwt = (n) => e.check(YYe(qGe, n)), e.emoji = (n) => e.check(PYe(AGe, n)), e.guid = (n) => e.check(AL(LL, n)), e.uuid = (n) => e.check(TYe(fv, n)), e.uuidv4 = (n) => e.check(MYe(fv, n)), e.uuidv6 = (n) => e.check(RYe(fv, n)), e.uuidv7 = (n) => e.check(IYe(fv, n)), e.nanoid = (n) => e.check(OYe(PGe, n)), e.guid = (n) => e.check(AL(LL, n)), e.cuid = (n) => e.check(FYe(OGe, n)), e.cuid2 = (n) => e.check($Ye(FGe, n)), e.ulid = (n) => e.check(LYe($Ge, n)), e.base64 = (n) => e.check(iQ(uQ, n)), e.base64url = (n) => e.check(WYe(UGe, n)), e.xid = (n) => e.check(zYe(LGe, n)), e.ksuid = (n) => e.check(BYe(zGe, n)), e.ipv4 = (n) => e.check(VYe(BGe, n)), e.ipv6 = (n) => e.check(jYe(VGe, n)), e.cidrv4 = (n) => e.check(HYe(jGe, n)), e.cidrv6 = (n) => e.check(UYe(HGe, n)), e.e164 = (n) => e.check(qYe(WGe, n)), e.datetime = (n) => e.check(vGe(n)), e.date = (n) => e.check(wGe(n)), e.time = (n) => e.check(CGe(n)), e.duration = (n) => e.check(kGe(n));
|
|
104540
104534
|
});
|
|
104541
|
-
function
|
|
104535
|
+
function qe(e) {
|
|
104542
104536
|
return _Ye(MGe, e);
|
|
104543
104537
|
}
|
|
104544
104538
|
const nr = /* @__PURE__ */ Se("ZodStringFormat", (e, t) => {
|
|
@@ -106062,7 +106056,7 @@ var MZe = Object.defineProperty, RZe = (e, t) => {
|
|
|
106062
106056
|
};
|
|
106063
106057
|
kQ = IZe;
|
|
106064
106058
|
var GL = "5.0.72", EQ = Vr([
|
|
106065
|
-
|
|
106059
|
+
qe(),
|
|
106066
106060
|
$w(Uint8Array),
|
|
106067
106061
|
$w(ArrayBuffer),
|
|
106068
106062
|
bQ(
|
|
@@ -106076,45 +106070,45 @@ var GL = "5.0.72", EQ = Vr([
|
|
|
106076
106070
|
]), ub = wKe(
|
|
106077
106071
|
() => Vr([
|
|
106078
106072
|
ZGe(),
|
|
106079
|
-
|
|
106073
|
+
qe(),
|
|
106080
106074
|
cb(),
|
|
106081
106075
|
Mr(),
|
|
106082
|
-
L_(
|
|
106076
|
+
L_(qe(), ub),
|
|
106083
106077
|
nu(ub)
|
|
106084
106078
|
])
|
|
106085
106079
|
), hr = L_(
|
|
106086
|
-
|
|
106087
|
-
L_(
|
|
106080
|
+
qe(),
|
|
106081
|
+
L_(qe(), ub)
|
|
106088
106082
|
), _Q = Qt({
|
|
106089
106083
|
type: bt("text"),
|
|
106090
|
-
text:
|
|
106084
|
+
text: qe(),
|
|
106091
106085
|
providerOptions: hr.optional()
|
|
106092
106086
|
}), AZe = Qt({
|
|
106093
106087
|
type: bt("image"),
|
|
106094
106088
|
image: Vr([EQ, $w(URL)]),
|
|
106095
|
-
mediaType:
|
|
106089
|
+
mediaType: qe().optional(),
|
|
106096
106090
|
providerOptions: hr.optional()
|
|
106097
106091
|
}), DQ = Qt({
|
|
106098
106092
|
type: bt("file"),
|
|
106099
106093
|
data: Vr([EQ, $w(URL)]),
|
|
106100
|
-
filename:
|
|
106101
|
-
mediaType:
|
|
106094
|
+
filename: qe().optional(),
|
|
106095
|
+
mediaType: qe(),
|
|
106102
106096
|
providerOptions: hr.optional()
|
|
106103
106097
|
}), PZe = Qt({
|
|
106104
106098
|
type: bt("reasoning"),
|
|
106105
|
-
text:
|
|
106099
|
+
text: qe(),
|
|
106106
106100
|
providerOptions: hr.optional()
|
|
106107
106101
|
}), OZe = Qt({
|
|
106108
106102
|
type: bt("tool-call"),
|
|
106109
|
-
toolCallId:
|
|
106110
|
-
toolName:
|
|
106103
|
+
toolCallId: qe(),
|
|
106104
|
+
toolName: qe(),
|
|
106111
106105
|
input: bi(),
|
|
106112
106106
|
providerOptions: hr.optional(),
|
|
106113
106107
|
providerExecuted: Mr().optional()
|
|
106114
106108
|
}), FZe = tKe("type", [
|
|
106115
106109
|
Qt({
|
|
106116
106110
|
type: bt("text"),
|
|
106117
|
-
value:
|
|
106111
|
+
value: qe()
|
|
106118
106112
|
}),
|
|
106119
106113
|
Qt({
|
|
106120
106114
|
type: bt("json"),
|
|
@@ -106122,7 +106116,7 @@ var GL = "5.0.72", EQ = Vr([
|
|
|
106122
106116
|
}),
|
|
106123
106117
|
Qt({
|
|
106124
106118
|
type: bt("error-text"),
|
|
106125
|
-
value:
|
|
106119
|
+
value: qe()
|
|
106126
106120
|
}),
|
|
106127
106121
|
Qt({
|
|
106128
106122
|
type: bt("error-json"),
|
|
@@ -106134,39 +106128,39 @@ var GL = "5.0.72", EQ = Vr([
|
|
|
106134
106128
|
Vr([
|
|
106135
106129
|
Qt({
|
|
106136
106130
|
type: bt("text"),
|
|
106137
|
-
text:
|
|
106131
|
+
text: qe()
|
|
106138
106132
|
}),
|
|
106139
106133
|
Qt({
|
|
106140
106134
|
type: bt("media"),
|
|
106141
|
-
data:
|
|
106142
|
-
mediaType:
|
|
106135
|
+
data: qe(),
|
|
106136
|
+
mediaType: qe()
|
|
106143
106137
|
})
|
|
106144
106138
|
])
|
|
106145
106139
|
)
|
|
106146
106140
|
})
|
|
106147
106141
|
]), TQ = Qt({
|
|
106148
106142
|
type: bt("tool-result"),
|
|
106149
|
-
toolCallId:
|
|
106150
|
-
toolName:
|
|
106143
|
+
toolCallId: qe(),
|
|
106144
|
+
toolName: qe(),
|
|
106151
106145
|
output: FZe,
|
|
106152
106146
|
providerOptions: hr.optional()
|
|
106153
106147
|
}), $Ze = Qt(
|
|
106154
106148
|
{
|
|
106155
106149
|
role: bt("system"),
|
|
106156
|
-
content:
|
|
106150
|
+
content: qe(),
|
|
106157
106151
|
providerOptions: hr.optional()
|
|
106158
106152
|
}
|
|
106159
106153
|
), LZe = Qt({
|
|
106160
106154
|
role: bt("user"),
|
|
106161
106155
|
content: Vr([
|
|
106162
|
-
|
|
106156
|
+
qe(),
|
|
106163
106157
|
nu(Vr([_Q, AZe, DQ]))
|
|
106164
106158
|
]),
|
|
106165
106159
|
providerOptions: hr.optional()
|
|
106166
106160
|
}), zZe = Qt({
|
|
106167
106161
|
role: bt("assistant"),
|
|
106168
106162
|
content: Vr([
|
|
106169
|
-
|
|
106163
|
+
qe(),
|
|
106170
106164
|
nu(
|
|
106171
106165
|
Vr([
|
|
106172
106166
|
_Q,
|
|
@@ -106214,40 +106208,40 @@ var VZe = PKe(
|
|
|
106214
106208
|
Vr([
|
|
106215
106209
|
Qn({
|
|
106216
106210
|
type: bt("text-start"),
|
|
106217
|
-
id:
|
|
106211
|
+
id: qe(),
|
|
106218
106212
|
providerMetadata: hr.optional()
|
|
106219
106213
|
}),
|
|
106220
106214
|
Qn({
|
|
106221
106215
|
type: bt("text-delta"),
|
|
106222
|
-
id:
|
|
106223
|
-
delta:
|
|
106216
|
+
id: qe(),
|
|
106217
|
+
delta: qe(),
|
|
106224
106218
|
providerMetadata: hr.optional()
|
|
106225
106219
|
}),
|
|
106226
106220
|
Qn({
|
|
106227
106221
|
type: bt("text-end"),
|
|
106228
|
-
id:
|
|
106222
|
+
id: qe(),
|
|
106229
106223
|
providerMetadata: hr.optional()
|
|
106230
106224
|
}),
|
|
106231
106225
|
Qn({
|
|
106232
106226
|
type: bt("error"),
|
|
106233
|
-
errorText:
|
|
106227
|
+
errorText: qe()
|
|
106234
106228
|
}),
|
|
106235
106229
|
Qn({
|
|
106236
106230
|
type: bt("tool-input-start"),
|
|
106237
|
-
toolCallId:
|
|
106238
|
-
toolName:
|
|
106231
|
+
toolCallId: qe(),
|
|
106232
|
+
toolName: qe(),
|
|
106239
106233
|
providerExecuted: Mr().optional(),
|
|
106240
106234
|
dynamic: Mr().optional()
|
|
106241
106235
|
}),
|
|
106242
106236
|
Qn({
|
|
106243
106237
|
type: bt("tool-input-delta"),
|
|
106244
|
-
toolCallId:
|
|
106245
|
-
inputTextDelta:
|
|
106238
|
+
toolCallId: qe(),
|
|
106239
|
+
inputTextDelta: qe()
|
|
106246
106240
|
}),
|
|
106247
106241
|
Qn({
|
|
106248
106242
|
type: bt("tool-input-available"),
|
|
106249
|
-
toolCallId:
|
|
106250
|
-
toolName:
|
|
106243
|
+
toolCallId: qe(),
|
|
106244
|
+
toolName: qe(),
|
|
106251
106245
|
input: bi(),
|
|
106252
106246
|
providerExecuted: Mr().optional(),
|
|
106253
106247
|
providerMetadata: hr.optional(),
|
|
@@ -106255,17 +106249,17 @@ var VZe = PKe(
|
|
|
106255
106249
|
}),
|
|
106256
106250
|
Qn({
|
|
106257
106251
|
type: bt("tool-input-error"),
|
|
106258
|
-
toolCallId:
|
|
106259
|
-
toolName:
|
|
106252
|
+
toolCallId: qe(),
|
|
106253
|
+
toolName: qe(),
|
|
106260
106254
|
input: bi(),
|
|
106261
106255
|
providerExecuted: Mr().optional(),
|
|
106262
106256
|
providerMetadata: hr.optional(),
|
|
106263
106257
|
dynamic: Mr().optional(),
|
|
106264
|
-
errorText:
|
|
106258
|
+
errorText: qe()
|
|
106265
106259
|
}),
|
|
106266
106260
|
Qn({
|
|
106267
106261
|
type: bt("tool-output-available"),
|
|
106268
|
-
toolCallId:
|
|
106262
|
+
toolCallId: qe(),
|
|
106269
106263
|
output: bi(),
|
|
106270
106264
|
providerExecuted: Mr().optional(),
|
|
106271
106265
|
dynamic: Mr().optional(),
|
|
@@ -106273,46 +106267,46 @@ var VZe = PKe(
|
|
|
106273
106267
|
}),
|
|
106274
106268
|
Qn({
|
|
106275
106269
|
type: bt("tool-output-error"),
|
|
106276
|
-
toolCallId:
|
|
106277
|
-
errorText:
|
|
106270
|
+
toolCallId: qe(),
|
|
106271
|
+
errorText: qe(),
|
|
106278
106272
|
providerExecuted: Mr().optional(),
|
|
106279
106273
|
dynamic: Mr().optional()
|
|
106280
106274
|
}),
|
|
106281
106275
|
Qn({
|
|
106282
106276
|
type: bt("reasoning-start"),
|
|
106283
|
-
id:
|
|
106277
|
+
id: qe(),
|
|
106284
106278
|
providerMetadata: hr.optional()
|
|
106285
106279
|
}),
|
|
106286
106280
|
Qn({
|
|
106287
106281
|
type: bt("reasoning-delta"),
|
|
106288
|
-
id:
|
|
106289
|
-
delta:
|
|
106282
|
+
id: qe(),
|
|
106283
|
+
delta: qe(),
|
|
106290
106284
|
providerMetadata: hr.optional()
|
|
106291
106285
|
}),
|
|
106292
106286
|
Qn({
|
|
106293
106287
|
type: bt("reasoning-end"),
|
|
106294
|
-
id:
|
|
106288
|
+
id: qe(),
|
|
106295
106289
|
providerMetadata: hr.optional()
|
|
106296
106290
|
}),
|
|
106297
106291
|
Qn({
|
|
106298
106292
|
type: bt("source-url"),
|
|
106299
|
-
sourceId:
|
|
106300
|
-
url:
|
|
106301
|
-
title:
|
|
106293
|
+
sourceId: qe(),
|
|
106294
|
+
url: qe(),
|
|
106295
|
+
title: qe().optional(),
|
|
106302
106296
|
providerMetadata: hr.optional()
|
|
106303
106297
|
}),
|
|
106304
106298
|
Qn({
|
|
106305
106299
|
type: bt("source-document"),
|
|
106306
|
-
sourceId:
|
|
106307
|
-
mediaType:
|
|
106308
|
-
title:
|
|
106309
|
-
filename:
|
|
106300
|
+
sourceId: qe(),
|
|
106301
|
+
mediaType: qe(),
|
|
106302
|
+
title: qe(),
|
|
106303
|
+
filename: qe().optional(),
|
|
106310
106304
|
providerMetadata: hr.optional()
|
|
106311
106305
|
}),
|
|
106312
106306
|
Qn({
|
|
106313
106307
|
type: bt("file"),
|
|
106314
|
-
url:
|
|
106315
|
-
mediaType:
|
|
106308
|
+
url: qe(),
|
|
106309
|
+
mediaType: qe(),
|
|
106316
106310
|
providerMetadata: hr.optional()
|
|
106317
106311
|
}),
|
|
106318
106312
|
Qn({
|
|
@@ -106320,7 +106314,7 @@ var VZe = PKe(
|
|
|
106320
106314
|
(e) => typeof e == "string" && e.startsWith("data-"),
|
|
106321
106315
|
{ message: 'Type must start with "data-"' }
|
|
106322
106316
|
),
|
|
106323
|
-
id:
|
|
106317
|
+
id: qe().optional(),
|
|
106324
106318
|
data: bi(),
|
|
106325
106319
|
transient: Mr().optional()
|
|
106326
106320
|
}),
|
|
@@ -106332,7 +106326,7 @@ var VZe = PKe(
|
|
|
106332
106326
|
}),
|
|
106333
106327
|
Qn({
|
|
106334
106328
|
type: bt("start"),
|
|
106335
|
-
messageId:
|
|
106329
|
+
messageId: qe().optional(),
|
|
106336
106330
|
messageMetadata: bi().optional()
|
|
106337
106331
|
}),
|
|
106338
106332
|
Qn({
|
|
@@ -107101,12 +107095,12 @@ var ZZe = () => ({
|
|
|
107101
107095
|
}
|
|
107102
107096
|
};
|
|
107103
107097
|
}, QZe = Yf({
|
|
107104
|
-
name:
|
|
107105
|
-
version:
|
|
107098
|
+
name: qe(),
|
|
107099
|
+
version: qe()
|
|
107106
107100
|
}), nA = Yf({
|
|
107107
107101
|
_meta: Cr(Qt({}).loose())
|
|
107108
107102
|
}), db = nA, JZe = Qt({
|
|
107109
|
-
method:
|
|
107103
|
+
method: qe(),
|
|
107110
107104
|
params: Cr(nA)
|
|
107111
107105
|
}), eXe = Yf({
|
|
107112
107106
|
experimental: Cr(Qt({}).loose()),
|
|
@@ -107129,16 +107123,16 @@ var ZZe = () => ({
|
|
|
107129
107123
|
)
|
|
107130
107124
|
});
|
|
107131
107125
|
db.extend({
|
|
107132
|
-
protocolVersion:
|
|
107126
|
+
protocolVersion: qe(),
|
|
107133
107127
|
capabilities: eXe,
|
|
107134
107128
|
serverInfo: QZe,
|
|
107135
|
-
instructions: Cr(
|
|
107129
|
+
instructions: Cr(qe())
|
|
107136
107130
|
});
|
|
107137
107131
|
var tXe = db.extend({
|
|
107138
|
-
nextCursor: Cr(
|
|
107132
|
+
nextCursor: Cr(qe())
|
|
107139
107133
|
}), nXe = Qt({
|
|
107140
|
-
name:
|
|
107141
|
-
description: Cr(
|
|
107134
|
+
name: qe(),
|
|
107135
|
+
description: Cr(qe()),
|
|
107142
107136
|
inputSchema: Qt({
|
|
107143
107137
|
type: bt("object"),
|
|
107144
107138
|
properties: Cr(Qt({}).loose())
|
|
@@ -107149,22 +107143,22 @@ tXe.extend({
|
|
|
107149
107143
|
});
|
|
107150
107144
|
var rXe = Qt({
|
|
107151
107145
|
type: bt("text"),
|
|
107152
|
-
text:
|
|
107146
|
+
text: qe()
|
|
107153
107147
|
}).loose(), oXe = Qt({
|
|
107154
107148
|
type: bt("image"),
|
|
107155
107149
|
data: dQ(),
|
|
107156
|
-
mimeType:
|
|
107150
|
+
mimeType: qe()
|
|
107157
107151
|
}).loose(), IQ = Qt({
|
|
107158
107152
|
/**
|
|
107159
107153
|
* The URI of this resource.
|
|
107160
107154
|
*/
|
|
107161
|
-
uri:
|
|
107155
|
+
uri: qe(),
|
|
107162
107156
|
/**
|
|
107163
107157
|
* The MIME type of this resource, if known.
|
|
107164
107158
|
*/
|
|
107165
|
-
mimeType: Cr(
|
|
107159
|
+
mimeType: Cr(qe())
|
|
107166
107160
|
}).loose(), iXe = IQ.extend({
|
|
107167
|
-
text:
|
|
107161
|
+
text: qe()
|
|
107168
107162
|
}), aXe = IQ.extend({
|
|
107169
107163
|
blob: dQ()
|
|
107170
107164
|
}), sXe = Qt({
|
|
@@ -107183,24 +107177,24 @@ db.extend({
|
|
|
107183
107177
|
);
|
|
107184
107178
|
var BS = "2.0", lXe = Qt({
|
|
107185
107179
|
jsonrpc: bt(BS),
|
|
107186
|
-
id: Vr([
|
|
107180
|
+
id: Vr([qe(), cb().int()])
|
|
107187
107181
|
}).merge(JZe).strict(), cXe = Qt({
|
|
107188
107182
|
jsonrpc: bt(BS),
|
|
107189
|
-
id: Vr([
|
|
107183
|
+
id: Vr([qe(), cb().int()]),
|
|
107190
107184
|
result: db
|
|
107191
107185
|
}).strict(), uXe = Qt({
|
|
107192
107186
|
jsonrpc: bt(BS),
|
|
107193
|
-
id: Vr([
|
|
107187
|
+
id: Vr([qe(), cb().int()]),
|
|
107194
107188
|
error: Qt({
|
|
107195
107189
|
code: cb().int(),
|
|
107196
|
-
message:
|
|
107190
|
+
message: qe(),
|
|
107197
107191
|
data: Cr(bi())
|
|
107198
107192
|
})
|
|
107199
107193
|
}).strict(), dXe = Qt({
|
|
107200
107194
|
jsonrpc: bt(BS)
|
|
107201
107195
|
}).merge(
|
|
107202
107196
|
Qt({
|
|
107203
|
-
method:
|
|
107197
|
+
method: qe(),
|
|
107204
107198
|
params: Cr(nA)
|
|
107205
107199
|
})
|
|
107206
107200
|
).strict();
|
|
@@ -109600,12 +109594,12 @@ function HXe({
|
|
|
109600
109594
|
if (l.length === 0) return;
|
|
109601
109595
|
const c = Ws - n;
|
|
109602
109596
|
if (l.length > c) {
|
|
109603
|
-
|
|
109597
|
+
We.error(`You can only attach ${Ws} files per message. You have ${c} slot(s) remaining.`);
|
|
109604
109598
|
return;
|
|
109605
109599
|
}
|
|
109606
109600
|
const { valid: u, errors: d } = EX(l);
|
|
109607
109601
|
if (d.forEach(({ file: h, error: p }) => {
|
|
109608
|
-
|
|
109602
|
+
We.error(`${h.name}: ${p}`);
|
|
109609
109603
|
}), u.length > 0)
|
|
109610
109604
|
try {
|
|
109611
109605
|
const h = await Promise.all(
|
|
@@ -109613,7 +109607,7 @@ function HXe({
|
|
|
109613
109607
|
);
|
|
109614
109608
|
e(h);
|
|
109615
109609
|
} catch (h) {
|
|
109616
|
-
console.error("Failed to process files:", h),
|
|
109610
|
+
console.error("Failed to process files:", h), We.error("Failed to process one or more files");
|
|
109617
109611
|
}
|
|
109618
109612
|
o.current && (o.current.value = "");
|
|
109619
109613
|
}, a = () => {
|
|
@@ -109668,20 +109662,20 @@ function UXe({
|
|
|
109668
109662
|
if (h.length === 0) return;
|
|
109669
109663
|
const p = Ws - r;
|
|
109670
109664
|
if (h.length > p) {
|
|
109671
|
-
|
|
109665
|
+
We.error(`You can only attach ${Ws} files per message. You have ${p} slot(s) remaining.`);
|
|
109672
109666
|
return;
|
|
109673
109667
|
}
|
|
109674
109668
|
const { valid: m, errors: g } = EX(h);
|
|
109675
109669
|
if (g.forEach(({ file: b, error: y }) => {
|
|
109676
|
-
|
|
109670
|
+
We.error(`${b.name}: ${y}`);
|
|
109677
109671
|
}), m.length > 0)
|
|
109678
109672
|
try {
|
|
109679
109673
|
const b = await Promise.all(
|
|
109680
109674
|
m.map((y) => UI(y))
|
|
109681
109675
|
);
|
|
109682
|
-
t(b),
|
|
109676
|
+
t(b), We.success(`${b.length} file(s) attached successfully`);
|
|
109683
109677
|
} catch (b) {
|
|
109684
|
-
console.error("Failed to process files:", b),
|
|
109678
|
+
console.error("Failed to process files:", b), We.error("Failed to process one or more files");
|
|
109685
109679
|
}
|
|
109686
109680
|
}, [n, r, t]);
|
|
109687
109681
|
return /* @__PURE__ */ S(
|
|
@@ -110273,7 +110267,7 @@ function XXe({
|
|
|
110273
110267
|
cardConfig: Ae,
|
|
110274
110268
|
dataSource: Le
|
|
110275
110269
|
}), !x) return;
|
|
110276
|
-
const
|
|
110270
|
+
const Ye = {
|
|
110277
110271
|
id: Ur(),
|
|
110278
110272
|
title: xt || "Title",
|
|
110279
110273
|
//description: 'Description',
|
|
@@ -110298,8 +110292,8 @@ function XXe({
|
|
|
110298
110292
|
connectionId: Ze
|
|
110299
110293
|
}, st = {
|
|
110300
110294
|
id: Ur(),
|
|
110301
|
-
cards: [
|
|
110302
|
-
activeCardId:
|
|
110295
|
+
cards: [Ye],
|
|
110296
|
+
activeCardId: Ye.id
|
|
110303
110297
|
};
|
|
110304
110298
|
k(!0), C(x, st, "end"), N(st.id);
|
|
110305
110299
|
}
|
|
@@ -110380,9 +110374,9 @@ function XXe({
|
|
|
110380
110374
|
try {
|
|
110381
110375
|
if (typeof navigator > "u" || !navigator.clipboard)
|
|
110382
110376
|
throw new Error("Clipboard API unavailable");
|
|
110383
|
-
await navigator.clipboard.writeText(Ke),
|
|
110377
|
+
await navigator.clipboard.writeText(Ke), We.success("Conversation copied");
|
|
110384
110378
|
} catch (Xe) {
|
|
110385
|
-
console.error("Failed to copy conversation", Xe),
|
|
110379
|
+
console.error("Failed to copy conversation", Xe), We.error("Unable to copy conversation");
|
|
110386
110380
|
}
|
|
110387
110381
|
}, [P]);
|
|
110388
110382
|
function nt() {
|
|
@@ -110620,7 +110614,7 @@ function QXe(e) {
|
|
|
110620
110614
|
if (!l || c) return;
|
|
110621
110615
|
async function u(p) {
|
|
110622
110616
|
const m = p.ctrlKey || p.metaKey;
|
|
110623
|
-
m && p.key === "c" ? (await d(),
|
|
110617
|
+
m && p.key === "c" ? (await d(), We.success("Card copied to clipboard"), p.preventDefault()) : m && p.key === "v" && (await h(), p.preventDefault());
|
|
110624
110618
|
}
|
|
110625
110619
|
async function d() {
|
|
110626
110620
|
try {
|
|
@@ -110640,7 +110634,7 @@ function QXe(e) {
|
|
|
110640
110634
|
const g = oY(m), b = g.cards.findIndex(
|
|
110641
110635
|
(y) => y.id === g.activeCardId
|
|
110642
110636
|
);
|
|
110643
|
-
b !== -1 && (g.cards[b].title = `${g.cards[b].title} (Copy)`), r(s, g), o(g.id),
|
|
110637
|
+
b !== -1 && (g.cards[b].title = `${g.cards[b].title} (Copy)`), r(s, g), o(g.id), We.success("Card pasted from clipboard");
|
|
110644
110638
|
}
|
|
110645
110639
|
} catch (m) {
|
|
110646
110640
|
console.error("Failed to parse clipboard contents: ", m);
|
|
@@ -111122,7 +111116,7 @@ function zQ() {
|
|
|
111122
111116
|
}
|
|
111123
111117
|
function j(J, oe) {
|
|
111124
111118
|
if (!N) return;
|
|
111125
|
-
I === J ? (M(), F(null),
|
|
111119
|
+
I === J ? (M(), F(null), We.success("Default sheet cleared")) : (D(J), F(J), We.success(`"${oe}" set as default sheet`));
|
|
111126
111120
|
}
|
|
111127
111121
|
function z(J) {
|
|
111128
111122
|
J < 1 ? (u("dashboard", !1), c(null), V(null)) : (g || u("dashboard", !0), V("dashboard"));
|
|
@@ -111644,7 +111638,7 @@ const fQe = (e) => {
|
|
|
111644
111638
|
(R) => {
|
|
111645
111639
|
if (!p) return;
|
|
111646
111640
|
if (m("metrics").length === 0) {
|
|
111647
|
-
|
|
111641
|
+
We.error("Add Metric First", {
|
|
111648
111642
|
description: "Please add a metric field before selecting a comparison type",
|
|
111649
111643
|
position: "top-center",
|
|
111650
111644
|
duration: 3e3
|
|
@@ -111699,7 +111693,7 @@ const fQe = (e) => {
|
|
|
111699
111693
|
// Pass chart type for KPI-specific routing
|
|
111700
111694
|
);
|
|
111701
111695
|
if (!B) {
|
|
111702
|
-
|
|
111696
|
+
We.error("Invalid Field", {
|
|
111703
111697
|
description: "This field cannot be added to any container",
|
|
111704
111698
|
position: "top-center",
|
|
111705
111699
|
duration: 3e3
|
|
@@ -111712,7 +111706,7 @@ const fQe = (e) => {
|
|
|
111712
111706
|
h
|
|
111713
111707
|
);
|
|
111714
111708
|
if (!V.isValid) {
|
|
111715
|
-
|
|
111709
|
+
We.error("Invalid Field Type", {
|
|
111716
111710
|
description: V.reason,
|
|
111717
111711
|
position: "top-center",
|
|
111718
111712
|
duration: 3e3
|
|
@@ -113167,10 +113161,10 @@ function zQe() {
|
|
|
113167
113161
|
}
|
|
113168
113162
|
);
|
|
113169
113163
|
}
|
|
113170
|
-
const BQe = Ww(() => import("./dashboard-controls-
|
|
113171
|
-
() => import("./edit-dashboard-visual-
|
|
113172
|
-
), jQe = Ww(() => import("./dashboard-json-
|
|
113173
|
-
() => import("./resource-management-panel-
|
|
113164
|
+
const BQe = Ww(() => import("./dashboard-controls-BsYwgzzV.js")), VQe = Ww(
|
|
113165
|
+
() => import("./edit-dashboard-visual-BaBGOIuS.js")
|
|
113166
|
+
), jQe = Ww(() => import("./dashboard-json-Ch63XtMS.js")), HQe = Ww(
|
|
113167
|
+
() => import("./resource-management-panel-BU4mYxms.js").then(
|
|
113174
113168
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
113175
113169
|
)
|
|
113176
113170
|
);
|
|
@@ -113187,7 +113181,7 @@ function qtt({
|
|
|
113187
113181
|
(l) => l.actions.setIsDashboardPanelOpen
|
|
113188
113182
|
), { preferences: s } = n;
|
|
113189
113183
|
return /* @__PURE__ */ f(Jc, { FallbackComponent: ER, children: /* @__PURE__ */ S(g8, { dashboardProps: n, children: [
|
|
113190
|
-
/* @__PURE__ */ f(
|
|
113184
|
+
/* @__PURE__ */ f(jue, {}),
|
|
113191
113185
|
/* @__PURE__ */ f(BQ, { children: /* @__PURE__ */ S(VQ, { preferences: s, children: [
|
|
113192
113186
|
i && /* @__PURE__ */ f($f, { fallback: null, children: /* @__PURE__ */ f(jQe, {}) }),
|
|
113193
113187
|
/* @__PURE__ */ S("main", { className: "relative flex h-full w-full flex-col", children: [
|
|
@@ -114931,7 +114925,7 @@ export {
|
|
|
114931
114925
|
Mn as bd,
|
|
114932
114926
|
Q8 as be,
|
|
114933
114927
|
On as bf,
|
|
114934
|
-
|
|
114928
|
+
Hue as bg,
|
|
114935
114929
|
wke as bh,
|
|
114936
114930
|
Rde as bi,
|
|
114937
114931
|
Efe as bj,
|
|
@@ -115183,7 +115177,7 @@ export {
|
|
|
115183
115177
|
ltt as i,
|
|
115184
115178
|
ptt as j,
|
|
115185
115179
|
yl as k,
|
|
115186
|
-
|
|
115180
|
+
We as l,
|
|
115187
115181
|
WG as m,
|
|
115188
115182
|
TU as n,
|
|
115189
115183
|
kR as o,
|