ics-ui-kit 0.1.0-alpha.72 → 0.1.0-alpha.73
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/components/toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as y, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as y, Fragment as nt, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import s, { forwardRef as re, isValidElement as Et, createContext as oe, useContext as ne } from "react";
|
|
3
3
|
import ie from "react-dom";
|
|
4
4
|
import { T as U } from "../index-BVqs-uqP.js";
|
|
5
5
|
import { I as le } from "../IconButton-DwkpNgn3.js";
|
|
@@ -62,15 +62,15 @@ var be = (a) => {
|
|
|
62
62
|
default:
|
|
63
63
|
return null;
|
|
64
64
|
}
|
|
65
|
-
}, ve = Array(12).fill(0), we = ({ visible: a, className: t }) =>
|
|
66
|
-
let [a, t] =
|
|
67
|
-
return
|
|
68
|
-
let
|
|
65
|
+
}, ve = Array(12).fill(0), we = ({ visible: a, className: t }) => s.createElement("div", { className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), "data-visible": a }, s.createElement("div", { className: "sonner-spinner" }, ve.map((o, r) => s.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${r}` })))), xe = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.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" })), Te = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, s.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" })), Ne = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.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" })), ke = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.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" })), Ee = s.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" }, s.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), s.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), ze = () => {
|
|
66
|
+
let [a, t] = s.useState(document.hidden);
|
|
67
|
+
return s.useEffect(() => {
|
|
68
|
+
let o = () => {
|
|
69
69
|
t(document.hidden);
|
|
70
70
|
};
|
|
71
|
-
return document.addEventListener("visibilitychange",
|
|
71
|
+
return document.addEventListener("visibilitychange", o), () => window.removeEventListener("visibilitychange", o);
|
|
72
72
|
}, []), a;
|
|
73
|
-
},
|
|
73
|
+
}, zt = 1, Ce = class {
|
|
74
74
|
constructor() {
|
|
75
75
|
this.subscribe = (a) => (this.subscribers.push(a), () => {
|
|
76
76
|
let t = this.subscribers.indexOf(a);
|
|
@@ -81,143 +81,143 @@ var be = (a) => {
|
|
|
81
81
|
this.publish(a), this.toasts = [...this.toasts, a];
|
|
82
82
|
}, this.create = (a) => {
|
|
83
83
|
var t;
|
|
84
|
-
let { message:
|
|
85
|
-
return this.dismissedToasts.has(i) && this.dismissedToasts.delete(i),
|
|
84
|
+
let { message: o, ...r } = a, i = typeof a?.id == "number" || ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : zt++, d = this.toasts.find((m) => m.id === i), w = a.dismissible === void 0 ? !0 : a.dismissible;
|
|
85
|
+
return this.dismissedToasts.has(i) && this.dismissedToasts.delete(i), d ? this.toasts = this.toasts.map((m) => m.id === i ? (this.publish({ ...m, ...a, id: i, title: o }), { ...m, ...a, id: i, dismissible: w, title: o }) : m) : this.addToast({ title: o, ...r, dismissible: w, id: i }), i;
|
|
86
86
|
}, this.dismiss = (a) => (this.dismissedToasts.add(a), a || this.toasts.forEach((t) => {
|
|
87
|
-
this.subscribers.forEach((
|
|
87
|
+
this.subscribers.forEach((o) => o({ id: t.id, dismiss: !0 }));
|
|
88
88
|
}), this.subscribers.forEach((t) => t({ id: a, dismiss: !0 })), a), this.message = (a, t) => this.create({ ...t, message: a }), this.error = (a, t) => this.create({ ...t, message: a, type: "error" }), this.success = (a, t) => this.create({ ...t, type: "success", message: a }), this.info = (a, t) => this.create({ ...t, type: "info", message: a }), this.warning = (a, t) => this.create({ ...t, type: "warning", message: a }), this.loading = (a, t) => this.create({ ...t, type: "loading", message: a }), this.promise = (a, t) => {
|
|
89
89
|
if (!t) return;
|
|
90
|
-
let
|
|
91
|
-
t.loading !== void 0 && (
|
|
92
|
-
let
|
|
93
|
-
if (
|
|
90
|
+
let o;
|
|
91
|
+
t.loading !== void 0 && (o = this.create({ ...t, promise: a, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
|
|
92
|
+
let r = a instanceof Promise ? a : a(), i = o !== void 0, d, w = r.then(async (u) => {
|
|
93
|
+
if (d = ["resolve", u], s.isValidElement(u)) i = !1, this.create({ id: o, type: "default", message: u });
|
|
94
94
|
else if (Ae(u) && !u.ok) {
|
|
95
95
|
i = !1;
|
|
96
96
|
let l = typeof t.error == "function" ? await t.error(`HTTP error! status: ${u.status}`) : t.error, T = typeof t.description == "function" ? await t.description(`HTTP error! status: ${u.status}`) : t.description;
|
|
97
|
-
this.create({ id:
|
|
97
|
+
this.create({ id: o, type: "error", message: l, description: T });
|
|
98
98
|
} else if (t.success !== void 0) {
|
|
99
99
|
i = !1;
|
|
100
100
|
let l = typeof t.success == "function" ? await t.success(u) : t.success, T = typeof t.description == "function" ? await t.description(u) : t.description;
|
|
101
|
-
this.create({ id:
|
|
101
|
+
this.create({ id: o, type: "success", message: l, description: T });
|
|
102
102
|
}
|
|
103
103
|
}).catch(async (u) => {
|
|
104
|
-
if (
|
|
104
|
+
if (d = ["reject", u], t.error !== void 0) {
|
|
105
105
|
i = !1;
|
|
106
106
|
let l = typeof t.error == "function" ? await t.error(u) : t.error, T = typeof t.description == "function" ? await t.description(u) : t.description;
|
|
107
|
-
this.create({ id:
|
|
107
|
+
this.create({ id: o, type: "error", message: l, description: T });
|
|
108
108
|
}
|
|
109
109
|
}).finally(() => {
|
|
110
110
|
var u;
|
|
111
|
-
i && (this.dismiss(
|
|
112
|
-
}), m = () => new Promise((u, l) => w.then(() =>
|
|
113
|
-
return typeof
|
|
111
|
+
i && (this.dismiss(o), o = void 0), (u = t.finally) == null || u.call(t);
|
|
112
|
+
}), m = () => new Promise((u, l) => w.then(() => d[0] === "reject" ? l(d[1]) : u(d[1])).catch(l));
|
|
113
|
+
return typeof o != "string" && typeof o != "number" ? { unwrap: m } : Object.assign(o, { unwrap: m });
|
|
114
114
|
}, this.custom = (a, t) => {
|
|
115
|
-
let
|
|
116
|
-
return this.create({ jsx: a(
|
|
115
|
+
let o = t?.id || zt++;
|
|
116
|
+
return this.create({ jsx: a(o), id: o, ...t }), o;
|
|
117
117
|
}, this.getActiveToasts = () => this.toasts.filter((a) => !this.dismissedToasts.has(a.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
118
118
|
}
|
|
119
119
|
}, k = new Ce(), Se = (a, t) => {
|
|
120
|
-
let
|
|
121
|
-
return k.addToast({ title: a, ...t, id:
|
|
120
|
+
let o = t?.id || zt++;
|
|
121
|
+
return k.addToast({ title: a, ...t, id: o }), o;
|
|
122
122
|
}, Ae = (a) => a && typeof a == "object" && "ok" in a && typeof a.ok == "boolean" && "status" in a && typeof a.status == "number", Be = Se, Me = () => k.toasts, Ie = () => k.getActiveToasts(), O = Object.assign(Be, { success: k.success, info: k.info, warning: k.warning, error: k.error, custom: k.custom, message: k.message, promise: k.promise, dismiss: k.dismiss, loading: k.loading }, { getHistory: Me, getToasts: Ie });
|
|
123
123
|
function je(a, { insertAt: t } = {}) {
|
|
124
124
|
if (typeof document > "u") return;
|
|
125
|
-
let
|
|
126
|
-
|
|
125
|
+
let o = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
126
|
+
r.type = "text/css", t === "top" && o.firstChild ? o.insertBefore(r, o.firstChild) : o.appendChild(r), r.styleSheet ? r.styleSheet.cssText = a : r.appendChild(document.createTextNode(a));
|
|
127
127
|
}
|
|
128
128
|
je(`: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%)}
|
|
129
129
|
`);
|
|
130
|
-
function
|
|
130
|
+
function gt(a) {
|
|
131
131
|
return a.label !== void 0;
|
|
132
132
|
}
|
|
133
133
|
var Pe = 3, Re = "32px", De = "16px", $t = 4e3, Ye = 356, $e = 14, We = 20, Le = 200;
|
|
134
|
-
function
|
|
134
|
+
function I(...a) {
|
|
135
135
|
return a.filter(Boolean).join(" ");
|
|
136
136
|
}
|
|
137
137
|
function He(a) {
|
|
138
|
-
let [t,
|
|
139
|
-
return t &&
|
|
138
|
+
let [t, o] = a.split("-"), r = [];
|
|
139
|
+
return t && r.push(t), o && r.push(o), r;
|
|
140
140
|
}
|
|
141
141
|
var Ve = (a) => {
|
|
142
|
-
var t,
|
|
143
|
-
let { invert: tt, toast: e, unstyled: D, interacting: h, setHeights:
|
|
142
|
+
var t, o, r, i, d, w, m, u, l, T, _;
|
|
143
|
+
let { invert: tt, toast: e, unstyled: D, interacting: h, setHeights: j, visibleToasts: it, heights: K, index: Y, toasts: yt, expanded: et, removeToast: S, defaultRichColors: at, closeButton: lt, style: dt, cancelButtonStyle: bt, actionButtonStyle: ct, className: P = "", descriptionClassName: ut = "", duration: X, position: mt, gap: H, loadingIcon: R, expandByDefault: pt, classNames: c, icons: E, closeButtonAriaLabel: vt = "Close toast", pauseWhenPageIsHidden: f } = a, [g, v] = s.useState(null), [N, Z] = s.useState(null), [x, wt] = s.useState(!1), [st, ft] = s.useState(!1), [rt, xt] = s.useState(!1), [At, Ut] = s.useState(!1), [_t, Bt] = s.useState(!1), [Kt, Tt] = s.useState(0), [Xt, Mt] = s.useState(0), ot = s.useRef(e.duration || X || $t), It = s.useRef(null), V = s.useRef(null), Zt = Y === 0, qt = Y + 1 <= it, z = e.type, q = e.dismissible !== !1, Gt = e.className || "", Jt = e.descriptionClassName || "", ht = s.useMemo(() => K.findIndex((n) => n.toastId === e.id) || 0, [K, e.id]), Qt = s.useMemo(() => {
|
|
144
144
|
var n;
|
|
145
|
-
return (n = e.closeButton) != null ? n :
|
|
146
|
-
}, [e.closeButton,
|
|
147
|
-
G.current =
|
|
145
|
+
return (n = e.closeButton) != null ? n : lt;
|
|
146
|
+
}, [e.closeButton, lt]), jt = s.useMemo(() => e.duration || X || $t, [e.duration, X]), Nt = s.useRef(0), G = s.useRef(0), Pt = s.useRef(0), J = s.useRef(null), [te, ee] = mt.split("-"), Rt = s.useMemo(() => K.reduce((n, p, b) => b >= ht ? n : n + p.height, 0), [K, ht]), Dt = ze(), ae = e.invert || tt, kt = z === "loading";
|
|
147
|
+
G.current = s.useMemo(() => ht * H + Rt, [ht, Rt]), s.useEffect(() => {
|
|
148
148
|
ot.current = jt;
|
|
149
|
-
}, [jt]),
|
|
150
|
-
|
|
151
|
-
}, []),
|
|
149
|
+
}, [jt]), s.useEffect(() => {
|
|
150
|
+
wt(!0);
|
|
151
|
+
}, []), s.useEffect(() => {
|
|
152
152
|
let n = V.current;
|
|
153
153
|
if (n) {
|
|
154
154
|
let p = n.getBoundingClientRect().height;
|
|
155
|
-
return Mt(p),
|
|
155
|
+
return Mt(p), j((b) => [{ toastId: e.id, height: p, position: e.position }, ...b]), () => j((b) => b.filter((A) => A.toastId !== e.id));
|
|
156
156
|
}
|
|
157
|
-
}, [
|
|
157
|
+
}, [j, e.id]), s.useLayoutEffect(() => {
|
|
158
158
|
if (!x) return;
|
|
159
159
|
let n = V.current, p = n.style.height;
|
|
160
160
|
n.style.height = "auto";
|
|
161
161
|
let b = n.getBoundingClientRect().height;
|
|
162
|
-
n.style.height = p, Mt(b),
|
|
163
|
-
}, [x, e.title, e.description,
|
|
164
|
-
let $ =
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
n.style.height = p, Mt(b), j((A) => A.find((B) => B.toastId === e.id) ? A.map((B) => B.toastId === e.id ? { ...B, height: b } : B) : [{ toastId: e.id, height: b, position: e.position }, ...A]);
|
|
163
|
+
}, [x, e.title, e.description, j, e.id]);
|
|
164
|
+
let $ = s.useCallback(() => {
|
|
165
|
+
ft(!0), Tt(G.current), j((n) => n.filter((p) => p.toastId !== e.id)), setTimeout(() => {
|
|
166
|
+
S(e);
|
|
167
167
|
}, Le);
|
|
168
|
-
}, [e,
|
|
169
|
-
|
|
168
|
+
}, [e, S, j, G]);
|
|
169
|
+
s.useEffect(() => {
|
|
170
170
|
if (e.promise && z === "loading" || e.duration === 1 / 0 || e.type === "loading") return;
|
|
171
171
|
let n;
|
|
172
172
|
return et || h || f && Dt ? (() => {
|
|
173
|
-
if (Pt.current <
|
|
174
|
-
let p = (/* @__PURE__ */ new Date()).getTime() -
|
|
173
|
+
if (Pt.current < Nt.current) {
|
|
174
|
+
let p = (/* @__PURE__ */ new Date()).getTime() - Nt.current;
|
|
175
175
|
ot.current = ot.current - p;
|
|
176
176
|
}
|
|
177
177
|
Pt.current = (/* @__PURE__ */ new Date()).getTime();
|
|
178
|
-
})() : ot.current !== 1 / 0 && (
|
|
178
|
+
})() : ot.current !== 1 / 0 && (Nt.current = (/* @__PURE__ */ new Date()).getTime(), n = setTimeout(() => {
|
|
179
179
|
var p;
|
|
180
180
|
(p = e.onAutoClose) == null || p.call(e, e), $();
|
|
181
181
|
}, ot.current)), () => clearTimeout(n);
|
|
182
|
-
}, [et, h, e, z, f, Dt, $]),
|
|
182
|
+
}, [et, h, e, z, f, Dt, $]), s.useEffect(() => {
|
|
183
183
|
e.delete && $();
|
|
184
184
|
}, [$, e.delete]);
|
|
185
185
|
function se() {
|
|
186
186
|
var n, p, b;
|
|
187
|
-
return E != null && E.loading ?
|
|
187
|
+
return E != null && E.loading ? s.createElement("div", { className: I(c?.loader, (n = e?.classNames) == null ? void 0 : n.loader, "sonner-loader"), "data-visible": z === "loading" }, E.loading) : R ? s.createElement("div", { className: I(c?.loader, (p = e?.classNames) == null ? void 0 : p.loader, "sonner-loader"), "data-visible": z === "loading" }, R) : s.createElement(we, { className: I(c?.loader, (b = e?.classNames) == null ? void 0 : b.loader), visible: z === "loading" });
|
|
188
188
|
}
|
|
189
|
-
return
|
|
190
|
-
|
|
189
|
+
return s.createElement("li", { tabIndex: 0, ref: V, className: I(P, Gt, c?.toast, (t = e?.classNames) == null ? void 0 : t.toast, c?.default, c?.[z], (o = e?.classNames) == null ? void 0 : o[z]), "data-sonner-toast": "", "data-rich-colors": (r = e.richColors) != null ? r : at, "data-styled": !(e.jsx || e.unstyled || D), "data-mounted": x, "data-promise": !!e.promise, "data-swiped": _t, "data-removed": st, "data-visible": qt, "data-y-position": te, "data-x-position": ee, "data-index": Y, "data-front": Zt, "data-swiping": rt, "data-dismissible": q, "data-type": z, "data-invert": ae, "data-swipe-out": At, "data-swipe-direction": N, "data-expanded": !!(et || pt && x), style: { "--index": Y, "--toasts-before": Y, "--z-index": yt.length - Y, "--offset": `${st ? Kt : G.current}px`, "--initial-height": pt ? "auto" : `${Xt}px`, ...dt, ...e.style }, onDragEnd: () => {
|
|
190
|
+
xt(!1), v(null), J.current = null;
|
|
191
191
|
}, onPointerDown: (n) => {
|
|
192
|
-
|
|
192
|
+
kt || !q || (It.current = /* @__PURE__ */ new Date(), Tt(G.current), n.target.setPointerCapture(n.pointerId), n.target.tagName !== "BUTTON" && (xt(!0), J.current = { x: n.clientX, y: n.clientY }));
|
|
193
193
|
}, onPointerUp: () => {
|
|
194
|
-
var n, p, b,
|
|
194
|
+
var n, p, b, A;
|
|
195
195
|
if (At || !q) return;
|
|
196
196
|
J.current = null;
|
|
197
|
-
let
|
|
198
|
-
if (Math.abs(
|
|
199
|
-
|
|
197
|
+
let B = Number(((n = V.current) == null ? void 0 : n.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), W = Number(((p = V.current) == null ? void 0 : p.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), F = (/* @__PURE__ */ new Date()).getTime() - ((b = It.current) == null ? void 0 : b.getTime()), M = g === "x" ? B : W, L = Math.abs(M) / F;
|
|
198
|
+
if (Math.abs(M) >= We || L > 0.11) {
|
|
199
|
+
Tt(G.current), (A = e.onDismiss) == null || A.call(e, e), Z(g === "x" ? B > 0 ? "right" : "left" : W > 0 ? "down" : "up"), $(), Ut(!0), Bt(!1);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
xt(!1), v(null);
|
|
203
203
|
}, onPointerMove: (n) => {
|
|
204
|
-
var p, b,
|
|
204
|
+
var p, b, A, B;
|
|
205
205
|
if (!J.current || !q || ((p = window.getSelection()) == null ? void 0 : p.toString().length) > 0) return;
|
|
206
|
-
let W = n.clientY - J.current.y, F = n.clientX - J.current.x,
|
|
206
|
+
let W = n.clientY - J.current.y, F = n.clientX - J.current.x, M = (b = a.swipeDirections) != null ? b : He(mt);
|
|
207
207
|
!g && (Math.abs(F) > 1 || Math.abs(W) > 1) && v(Math.abs(F) > Math.abs(W) ? "x" : "y");
|
|
208
208
|
let L = { x: 0, y: 0 };
|
|
209
|
-
g === "y" ? (
|
|
210
|
-
} }, Qt && !e.jsx ?
|
|
209
|
+
g === "y" ? (M.includes("top") || M.includes("bottom")) && (M.includes("top") && W < 0 || M.includes("bottom") && W > 0) && (L.y = W) : g === "x" && (M.includes("left") || M.includes("right")) && (M.includes("left") && F < 0 || M.includes("right") && F > 0) && (L.x = F), (Math.abs(L.x) > 0 || Math.abs(L.y) > 0) && Bt(!0), (A = V.current) == null || A.style.setProperty("--swipe-amount-x", `${L.x}px`), (B = V.current) == null || B.style.setProperty("--swipe-amount-y", `${L.y}px`);
|
|
210
|
+
} }, Qt && !e.jsx ? s.createElement("button", { "aria-label": vt, "data-disabled": kt, "data-close-button": !0, onClick: kt || !q ? () => {
|
|
211
211
|
} : () => {
|
|
212
212
|
var n;
|
|
213
213
|
$(), (n = e.onDismiss) == null || n.call(e, e);
|
|
214
|
-
}, className:
|
|
214
|
+
}, className: I(c?.closeButton, (i = e?.classNames) == null ? void 0 : i.closeButton) }, (d = E?.close) != null ? d : Ee) : null, e.jsx || Et(e.title) ? e.jsx ? e.jsx : typeof e.title == "function" ? e.title() : e.title : s.createElement(s.Fragment, null, z || e.icon || e.promise ? s.createElement("div", { "data-icon": "", className: I(c?.icon, (w = e?.classNames) == null ? void 0 : w.icon) }, e.promise || e.type === "loading" && !e.icon ? e.icon || se() : null, e.type !== "loading" ? e.icon || E?.[z] || be(z) : null) : null, s.createElement("div", { "data-content": "", className: I(c?.content, (m = e?.classNames) == null ? void 0 : m.content) }, s.createElement("div", { "data-title": "", className: I(c?.title, (u = e?.classNames) == null ? void 0 : u.title) }, typeof e.title == "function" ? e.title() : e.title), e.description ? s.createElement("div", { "data-description": "", className: I(ut, Jt, c?.description, (l = e?.classNames) == null ? void 0 : l.description) }, typeof e.description == "function" ? e.description() : e.description) : null), Et(e.cancel) ? e.cancel : e.cancel && gt(e.cancel) ? s.createElement("button", { "data-button": !0, "data-cancel": !0, style: e.cancelButtonStyle || bt, onClick: (n) => {
|
|
215
215
|
var p, b;
|
|
216
|
-
|
|
217
|
-
}, className:
|
|
216
|
+
gt(e.cancel) && q && ((b = (p = e.cancel).onClick) == null || b.call(p, n), $());
|
|
217
|
+
}, className: I(c?.cancelButton, (T = e?.classNames) == null ? void 0 : T.cancelButton) }, e.cancel.label) : null, Et(e.action) ? e.action : e.action && gt(e.action) ? s.createElement("button", { "data-button": !0, "data-action": !0, style: e.actionButtonStyle || ct, onClick: (n) => {
|
|
218
218
|
var p, b;
|
|
219
|
-
|
|
220
|
-
}, className:
|
|
219
|
+
gt(e.action) && ((b = (p = e.action).onClick) == null || b.call(p, n), !n.defaultPrevented && $());
|
|
220
|
+
}, className: I(c?.actionButton, (_ = e?.classNames) == null ? void 0 : _.actionButton) }, e.action.label) : null));
|
|
221
221
|
};
|
|
222
222
|
function Wt() {
|
|
223
223
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -225,27 +225,27 @@ function Wt() {
|
|
|
225
225
|
return a === "auto" || !a ? window.getComputedStyle(document.documentElement).direction : a;
|
|
226
226
|
}
|
|
227
227
|
function Fe(a, t) {
|
|
228
|
-
let
|
|
229
|
-
return [a, t].forEach((
|
|
230
|
-
let
|
|
228
|
+
let o = {};
|
|
229
|
+
return [a, t].forEach((r, i) => {
|
|
230
|
+
let d = i === 1, w = d ? "--mobile-offset" : "--offset", m = d ? De : Re;
|
|
231
231
|
function u(l) {
|
|
232
232
|
["top", "right", "bottom", "left"].forEach((T) => {
|
|
233
|
-
|
|
233
|
+
o[`${w}-${T}`] = typeof l == "number" ? `${l}px` : l;
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
typeof
|
|
237
|
-
|
|
236
|
+
typeof r == "number" || typeof r == "string" ? u(r) : typeof r == "object" ? ["top", "right", "bottom", "left"].forEach((l) => {
|
|
237
|
+
r[l] === void 0 ? o[`${w}-${l}`] = m : o[`${w}-${l}`] = typeof r[l] == "number" ? `${r[l]}px` : r[l];
|
|
238
238
|
}) : u(m);
|
|
239
|
-
}),
|
|
239
|
+
}), o;
|
|
240
240
|
}
|
|
241
241
|
var Oe = re(function(a, t) {
|
|
242
|
-
let { invert:
|
|
242
|
+
let { invert: o, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: d, closeButton: w, className: m, offset: u, mobileOffset: l, theme: T = "light", richColors: _, duration: tt, style: e, visibleToasts: D = Pe, toastOptions: h, dir: j = Wt(), gap: it = $e, loadingIcon: K, icons: Y, containerAriaLabel: yt = "Notifications", pauseWhenPageIsHidden: et } = a, [S, at] = s.useState([]), lt = s.useMemo(() => Array.from(new Set([r].concat(S.filter((f) => f.position).map((f) => f.position)))), [S, r]), [dt, bt] = s.useState([]), [ct, P] = s.useState(!1), [ut, X] = s.useState(!1), [mt, H] = s.useState(T !== "system" ? T : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), R = s.useRef(null), pt = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), c = s.useRef(null), E = s.useRef(!1), vt = s.useCallback((f) => {
|
|
243
243
|
at((g) => {
|
|
244
244
|
var v;
|
|
245
245
|
return (v = g.find((N) => N.id === f.id)) != null && v.delete || k.dismiss(f.id), g.filter(({ id: N }) => N !== f.id);
|
|
246
246
|
});
|
|
247
247
|
}, []);
|
|
248
|
-
return
|
|
248
|
+
return s.useEffect(() => k.subscribe((f) => {
|
|
249
249
|
if (f.dismiss) {
|
|
250
250
|
at((g) => g.map((v) => v.id === f.id ? { ...v, delete: !0 } : v));
|
|
251
251
|
return;
|
|
@@ -258,7 +258,7 @@ var Oe = re(function(a, t) {
|
|
|
258
258
|
});
|
|
259
259
|
});
|
|
260
260
|
});
|
|
261
|
-
}), []),
|
|
261
|
+
}), []), s.useEffect(() => {
|
|
262
262
|
if (T !== "system") {
|
|
263
263
|
H(T);
|
|
264
264
|
return;
|
|
@@ -278,32 +278,32 @@ var Oe = re(function(a, t) {
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
}, [T]),
|
|
282
|
-
|
|
283
|
-
}, [
|
|
281
|
+
}, [T]), s.useEffect(() => {
|
|
282
|
+
S.length <= 1 && P(!1);
|
|
283
|
+
}, [S]), s.useEffect(() => {
|
|
284
284
|
let f = (g) => {
|
|
285
285
|
var v, N;
|
|
286
286
|
i.every((Z) => g[Z] || g.code === Z) && (P(!0), (v = R.current) == null || v.focus()), g.code === "Escape" && (document.activeElement === R.current || (N = R.current) != null && N.contains(document.activeElement)) && P(!1);
|
|
287
287
|
};
|
|
288
288
|
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
289
|
-
}, [i]),
|
|
289
|
+
}, [i]), s.useEffect(() => {
|
|
290
290
|
if (R.current) return () => {
|
|
291
|
-
|
|
291
|
+
c.current && (c.current.focus({ preventScroll: !0 }), c.current = null, E.current = !1);
|
|
292
292
|
};
|
|
293
|
-
}, [R.current]),
|
|
293
|
+
}, [R.current]), s.createElement("section", { ref: t, "aria-label": `${yt} ${pt}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, lt.map((f, g) => {
|
|
294
294
|
var v;
|
|
295
295
|
let [N, Z] = f.split("-");
|
|
296
|
-
return
|
|
297
|
-
E.current && !x.currentTarget.contains(x.relatedTarget) && (E.current = !1,
|
|
296
|
+
return S.length ? s.createElement("ol", { key: f, dir: j === "auto" ? Wt() : j, tabIndex: -1, ref: R, className: m, "data-sonner-toaster": !0, "data-theme": mt, "data-y-position": N, "data-lifted": ct && S.length > 1 && !d, "data-x-position": Z, style: { "--front-toast-height": `${((v = dt[0]) == null ? void 0 : v.height) || 0}px`, "--width": `${Ye}px`, "--gap": `${it}px`, ...e, ...Fe(u, l) }, onBlur: (x) => {
|
|
297
|
+
E.current && !x.currentTarget.contains(x.relatedTarget) && (E.current = !1, c.current && (c.current.focus({ preventScroll: !0 }), c.current = null));
|
|
298
298
|
}, onFocus: (x) => {
|
|
299
|
-
x.target instanceof HTMLElement && x.target.dataset.dismissible === "false" || E.current || (E.current = !0,
|
|
299
|
+
x.target instanceof HTMLElement && x.target.dataset.dismissible === "false" || E.current || (E.current = !0, c.current = x.relatedTarget);
|
|
300
300
|
}, onMouseEnter: () => P(!0), onMouseMove: () => P(!0), onMouseLeave: () => {
|
|
301
|
-
|
|
301
|
+
ut || P(!1);
|
|
302
302
|
}, onDragEnd: () => P(!1), onPointerDown: (x) => {
|
|
303
303
|
x.target instanceof HTMLElement && x.target.dataset.dismissible === "false" || X(!0);
|
|
304
|
-
}, onPointerUp: () => X(!1) },
|
|
305
|
-
var st,
|
|
306
|
-
return
|
|
304
|
+
}, onPointerUp: () => X(!1) }, S.filter((x) => !x.position && g === 0 || x.position === f).map((x, wt) => {
|
|
305
|
+
var st, ft;
|
|
306
|
+
return s.createElement(Ve, { key: x.id, icons: Y, index: wt, toast: x, defaultRichColors: _, duration: (st = h?.duration) != null ? st : tt, className: h?.className, descriptionClassName: h?.descriptionClassName, invert: o, visibleToasts: D, closeButton: (ft = h?.closeButton) != null ? ft : w, interacting: ut, position: f, style: h?.style, unstyled: h?.unstyled, classNames: h?.classNames, cancelButtonStyle: h?.cancelButtonStyle, actionButtonStyle: h?.actionButtonStyle, removeToast: vt, toasts: S.filter((rt) => rt.position == x.position), heights: dt.filter((rt) => rt.position == x.position), setHeights: bt, expandByDefault: d, gap: it, loadingIcon: K, expanded: ct, pauseWhenPageIsHidden: et, swipeDirections: a.swipeDirections });
|
|
307
307
|
})) : null;
|
|
308
308
|
}));
|
|
309
309
|
});
|
|
@@ -318,24 +318,24 @@ const Vt = oe(null), Ue = ({ children: a, value: t }) => /* @__PURE__ */ y(Vt.Pr
|
|
|
318
318
|
high: "primary"
|
|
319
319
|
})[a ?? "low"];
|
|
320
320
|
function Ft(a, t) {
|
|
321
|
-
const { size:
|
|
322
|
-
status: ["medium", "high"].includes(
|
|
321
|
+
const { size: o, focus: r, status: i } = a, w = {
|
|
322
|
+
status: ["medium", "high"].includes(r ?? "") && o === "sm" ? i : "default"
|
|
323
323
|
};
|
|
324
324
|
if (t === "close")
|
|
325
325
|
return {
|
|
326
326
|
...w,
|
|
327
|
-
size:
|
|
328
|
-
variant:
|
|
327
|
+
size: o === "lg" ? "xl" : "lg",
|
|
328
|
+
variant: o === "sm" ? Lt(r) : "text"
|
|
329
329
|
};
|
|
330
330
|
const m = {
|
|
331
|
-
sm: Lt(
|
|
331
|
+
sm: Lt(r),
|
|
332
332
|
md: "link",
|
|
333
|
-
lg: t === "primary" ?
|
|
333
|
+
lg: t === "primary" ? r === "high" ? "secondary" : "outline" : "text"
|
|
334
334
|
};
|
|
335
335
|
return {
|
|
336
336
|
...w,
|
|
337
|
-
size:
|
|
338
|
-
variant: m[
|
|
337
|
+
size: o === "lg" ? "md" : "lg",
|
|
338
|
+
variant: m[o ?? "sm"]
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
const _e = U({
|
|
@@ -387,11 +387,11 @@ const _e = U({
|
|
|
387
387
|
const t = Q();
|
|
388
388
|
if (!t)
|
|
389
389
|
throw new Error("ToastCloseButton must be used within Toast");
|
|
390
|
-
const
|
|
390
|
+
const o = Ft(t, "close");
|
|
391
391
|
return /* @__PURE__ */ y(
|
|
392
392
|
le,
|
|
393
393
|
{
|
|
394
|
-
...
|
|
394
|
+
...o,
|
|
395
395
|
icon: de,
|
|
396
396
|
onClick: t.onClose,
|
|
397
397
|
className: _e({
|
|
@@ -410,17 +410,17 @@ const _e = U({
|
|
|
410
410
|
actionsWrapper: "flex w-full justify-end gap-2"
|
|
411
411
|
}
|
|
412
412
|
}), Xe = ({ titleIcon: a, ...t }) => {
|
|
413
|
-
const { titleText:
|
|
414
|
-
return /* @__PURE__ */ y(
|
|
415
|
-
/* @__PURE__ */
|
|
413
|
+
const { titleText: o, close: r, descriptionText: i } = t, { contentWrapper: d, topZone: w, textWrapper: m, actionsWrapper: u } = Ke(), l = Q();
|
|
414
|
+
return /* @__PURE__ */ y(nt, { children: /* @__PURE__ */ C("div", { className: d(), children: [
|
|
415
|
+
/* @__PURE__ */ C("div", { className: w(), children: [
|
|
416
416
|
a,
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */ y("span", { className:
|
|
417
|
+
/* @__PURE__ */ C("div", { className: m(), children: [
|
|
418
|
+
/* @__PURE__ */ y("span", { className: o(), children: l.title }),
|
|
419
419
|
l.description && /* @__PURE__ */ y(ce, { className: i(), children: l.description })
|
|
420
420
|
] }),
|
|
421
|
-
l.closeAction && /* @__PURE__ */ y(St, { className: ue("shrink-0",
|
|
421
|
+
l.closeAction && /* @__PURE__ */ y(St, { className: ue("shrink-0", r()) })
|
|
422
422
|
] }),
|
|
423
|
-
l.secondaryAction || l.primaryAction ? /* @__PURE__ */
|
|
423
|
+
l.secondaryAction || l.primaryAction ? /* @__PURE__ */ C("div", { className: u(), children: [
|
|
424
424
|
l.secondaryAction,
|
|
425
425
|
l.primaryAction
|
|
426
426
|
] }) : null
|
|
@@ -430,14 +430,14 @@ const _e = U({
|
|
|
430
430
|
contentWrapper: "flex flex-grow gap-3 py-2.5 pr-2.5"
|
|
431
431
|
}
|
|
432
432
|
}), qe = ({ titleIcon: a, ...t }) => {
|
|
433
|
-
const { titleText:
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
433
|
+
const { titleText: o, close: r } = t, { contentWrapper: i } = Ze(), d = Q();
|
|
434
|
+
return /* @__PURE__ */ C(nt, { children: [
|
|
435
|
+
/* @__PURE__ */ C("div", { className: i(), children: [
|
|
436
436
|
a,
|
|
437
|
-
/* @__PURE__ */ y("span", { className:
|
|
437
|
+
/* @__PURE__ */ y("span", { className: o(), children: d.title })
|
|
438
438
|
] }),
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
d.primaryAction && d.primaryAction,
|
|
440
|
+
d.closeAction && /* @__PURE__ */ y(St, { className: r() })
|
|
441
441
|
] });
|
|
442
442
|
}, Ge = U({
|
|
443
443
|
slots: {
|
|
@@ -445,14 +445,20 @@ const _e = U({
|
|
|
445
445
|
titleWrapper: "min-w-0 truncate"
|
|
446
446
|
}
|
|
447
447
|
}), Je = ({ titleIcon: a, ...t }) => {
|
|
448
|
-
const { titleText:
|
|
449
|
-
return /* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */
|
|
448
|
+
const { titleText: o, close: r, divider: i } = t, { contentWrapper: d, titleWrapper: w } = Ge(), m = Q();
|
|
449
|
+
return /* @__PURE__ */ C(nt, { children: [
|
|
450
|
+
/* @__PURE__ */ C("div", { className: d(), children: [
|
|
451
451
|
a,
|
|
452
|
-
/* @__PURE__ */ y("div", { className: me(w(),
|
|
452
|
+
/* @__PURE__ */ y("div", { className: me(w(), o()), children: /* @__PURE__ */ y("span", { children: m.title }) })
|
|
453
453
|
] }),
|
|
454
|
-
m.primaryAction && /* @__PURE__ */
|
|
455
|
-
|
|
454
|
+
m.primaryAction && /* @__PURE__ */ C(nt, { children: [
|
|
455
|
+
/* @__PURE__ */ y("div", { className: i() }),
|
|
456
|
+
m.primaryAction
|
|
457
|
+
] }),
|
|
458
|
+
m.closeAction && /* @__PURE__ */ C(nt, { children: [
|
|
459
|
+
/* @__PURE__ */ y("div", { className: i() }),
|
|
460
|
+
/* @__PURE__ */ y(St, { className: r() })
|
|
461
|
+
] })
|
|
456
462
|
] });
|
|
457
463
|
}, Qe = U({
|
|
458
464
|
slots: {
|
|
@@ -484,8 +490,8 @@ const _e = U({
|
|
|
484
490
|
const t = Q();
|
|
485
491
|
if (!t)
|
|
486
492
|
throw new Error("ToastIcon must be used within Toast");
|
|
487
|
-
const { wrapper:
|
|
488
|
-
return /* @__PURE__ */ y("div", { className:
|
|
493
|
+
const { wrapper: o, icon: r } = Qe({ focus: t.focus, status: t.status }), i = ea[t.status ?? "default"], d = () => a ? /* @__PURE__ */ y("div", { className: r(), children: a }) : /* @__PURE__ */ y(pe, { icon: i, className: r() });
|
|
494
|
+
return /* @__PURE__ */ y("div", { className: o(), children: d() });
|
|
489
495
|
}, ea = {
|
|
490
496
|
default: Yt,
|
|
491
497
|
info: ge,
|
|
@@ -649,24 +655,24 @@ const _e = U({
|
|
|
649
655
|
}
|
|
650
656
|
}
|
|
651
657
|
]
|
|
652
|
-
}), Ot =
|
|
653
|
-
({ closeAction: a = !0, id: t, onClose:
|
|
654
|
-
const { wrapper:
|
|
655
|
-
status:
|
|
656
|
-
focus:
|
|
657
|
-
size:
|
|
658
|
-
}), _ =
|
|
658
|
+
}), Ot = s.forwardRef(
|
|
659
|
+
({ closeAction: a = !0, id: t, onClose: o, ...r }, i) => {
|
|
660
|
+
const { wrapper: d, titleText: w, descriptionText: m, actions: u, close: l, divider: T } = aa({
|
|
661
|
+
status: r.status,
|
|
662
|
+
focus: r.focus,
|
|
663
|
+
size: r.size
|
|
664
|
+
}), _ = r.icon ? /* @__PURE__ */ y(ta, { icon: r.icon }) : null, tt = {
|
|
659
665
|
id: t,
|
|
660
|
-
status:
|
|
661
|
-
focus:
|
|
662
|
-
size:
|
|
663
|
-
title:
|
|
664
|
-
description:
|
|
665
|
-
icon:
|
|
666
|
-
primaryAction:
|
|
667
|
-
secondaryAction:
|
|
666
|
+
status: r.status,
|
|
667
|
+
focus: r.focus,
|
|
668
|
+
size: r.size,
|
|
669
|
+
title: r.title,
|
|
670
|
+
description: r.description,
|
|
671
|
+
icon: r.icon,
|
|
672
|
+
primaryAction: r.primaryAction,
|
|
673
|
+
secondaryAction: r.secondaryAction,
|
|
668
674
|
closeAction: a,
|
|
669
|
-
onClose:
|
|
675
|
+
onClose: o
|
|
670
676
|
}, e = {
|
|
671
677
|
titleText: w,
|
|
672
678
|
descriptionText: m,
|
|
@@ -676,8 +682,8 @@ const _e = U({
|
|
|
676
682
|
titleIcon: _
|
|
677
683
|
};
|
|
678
684
|
let D = null;
|
|
679
|
-
const h =
|
|
680
|
-
return h === "sm" ? D = /* @__PURE__ */ y(Je, { ...e }) : h === "md" ? D = /* @__PURE__ */ y(qe, { ...e }) : h === "lg" && (D = /* @__PURE__ */ y(Xe, { ...e })), /* @__PURE__ */ y(Ue, { value: tt, children: /* @__PURE__ */ y("div", { ref: i, className:
|
|
685
|
+
const h = r.size || "md";
|
|
686
|
+
return h === "sm" ? D = /* @__PURE__ */ y(Je, { ...e }) : h === "md" ? D = /* @__PURE__ */ y(qe, { ...e }) : h === "lg" && (D = /* @__PURE__ */ y(Xe, { ...e })), /* @__PURE__ */ y(Ue, { value: tt, children: /* @__PURE__ */ y("div", { ref: i, className: d(), children: D }) });
|
|
681
687
|
}
|
|
682
688
|
);
|
|
683
689
|
Ot.displayName = "Toast";
|
|
@@ -795,45 +801,46 @@ const sa = U({
|
|
|
795
801
|
className: "text-white/70 hover:text-white"
|
|
796
802
|
}
|
|
797
803
|
]
|
|
798
|
-
}), Ht = ({ children: a, onClick: t }) => {
|
|
799
|
-
const
|
|
800
|
-
if (!
|
|
804
|
+
}), Ht = ({ children: a, onClick: t, className: o }) => {
|
|
805
|
+
const r = Q();
|
|
806
|
+
if (!r)
|
|
801
807
|
throw new Error("ToastAction must be used within Toast");
|
|
802
|
-
const
|
|
803
|
-
if (
|
|
804
|
-
const
|
|
805
|
-
return
|
|
808
|
+
const i = r.primaryAction?.props.children === a ? "primary" : "secondary";
|
|
809
|
+
if (i === "secondary" && ["sm", "md"].includes(r.size ?? "")) return null;
|
|
810
|
+
const d = Ft(r, i);
|
|
811
|
+
return i === "primary" && r.size === "lg" && r.focus === "medium" && (d.status = r.status, d.variant = "primary"), /* @__PURE__ */ y(
|
|
806
812
|
fe,
|
|
807
813
|
{
|
|
808
|
-
...i,
|
|
809
814
|
onClick: t,
|
|
810
815
|
className: sa({
|
|
811
|
-
actionType:
|
|
812
|
-
size:
|
|
813
|
-
focus:
|
|
814
|
-
status:
|
|
816
|
+
actionType: i,
|
|
817
|
+
size: r.size,
|
|
818
|
+
focus: r.focus,
|
|
819
|
+
status: r.status,
|
|
820
|
+
className: o
|
|
815
821
|
}),
|
|
822
|
+
...d,
|
|
816
823
|
children: a
|
|
817
824
|
}
|
|
818
825
|
);
|
|
819
826
|
}, ra = "ui-kit", ba = Oe, va = (a, t = {}) => {
|
|
820
|
-
const
|
|
827
|
+
const o = {
|
|
821
828
|
onDismiss: t.onDismiss,
|
|
822
829
|
onAutoClose: t.onAutoClose,
|
|
823
830
|
duration: t.duration,
|
|
824
831
|
dismissible: t.dismissible,
|
|
825
832
|
position: t.position
|
|
826
833
|
};
|
|
827
|
-
return t.id != null && (
|
|
834
|
+
return t.id != null && (o.id = t.id), O.custom((r) => /* @__PURE__ */ y("div", { className: ra, children: /* @__PURE__ */ y(
|
|
828
835
|
Ot,
|
|
829
836
|
{
|
|
830
837
|
title: a,
|
|
831
838
|
...t,
|
|
832
|
-
primaryAction: t.primaryAction ? /* @__PURE__ */
|
|
839
|
+
primaryAction: t.primaryAction ? /* @__PURE__ */ C(
|
|
833
840
|
Ht,
|
|
834
841
|
{
|
|
835
842
|
onClick: () => {
|
|
836
|
-
t.primaryAction?.onClick(), O.dismiss(
|
|
843
|
+
t.primaryAction?.onClick(), O.dismiss(r);
|
|
837
844
|
},
|
|
838
845
|
children: [
|
|
839
846
|
t.primaryAction.title,
|
|
@@ -841,11 +848,11 @@ const sa = U({
|
|
|
841
848
|
]
|
|
842
849
|
}
|
|
843
850
|
) : void 0,
|
|
844
|
-
secondaryAction: t.secondaryAction ? /* @__PURE__ */
|
|
851
|
+
secondaryAction: t.secondaryAction ? /* @__PURE__ */ C(
|
|
845
852
|
Ht,
|
|
846
853
|
{
|
|
847
854
|
onClick: () => {
|
|
848
|
-
t.secondaryAction?.onClick(), O.dismiss(
|
|
855
|
+
t.secondaryAction?.onClick(), O.dismiss(r);
|
|
849
856
|
},
|
|
850
857
|
children: [
|
|
851
858
|
t.secondaryAction.title,
|
|
@@ -854,11 +861,11 @@ const sa = U({
|
|
|
854
861
|
}
|
|
855
862
|
) : void 0,
|
|
856
863
|
onClose: () => {
|
|
857
|
-
t.dismissible !== !1 && (O.dismiss(
|
|
864
|
+
t.dismissible !== !1 && (O.dismiss(r), t.onDismiss?.());
|
|
858
865
|
}
|
|
859
866
|
}
|
|
860
|
-
) }),
|
|
861
|
-
}, wa = O.dismiss, xa = (a, t = {}) => O.custom((
|
|
867
|
+
) }), o);
|
|
868
|
+
}, wa = O.dismiss, xa = (a, t = {}) => O.custom((o) => a({ id: o, toast: O }), t);
|
|
862
869
|
export {
|
|
863
870
|
Ot as Toast,
|
|
864
871
|
Ht as ToastAction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sources":["../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/circle-check-big.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/triangle-alert.js","../../node_modules/.pnpm/sonner@1.7.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.mjs","../../src/components/toast/hooks/useToastContext.tsx","../../src/components/toast/utils/ToastUtils.tsx","../../src/components/toast/components/toast-close-action/ToastCloseButton.tsx","../../src/components/toast/components/large-toast/LargeToast.tsx","../../src/components/toast/components/medium-toast/MediumToast.tsx","../../src/components/toast/components/small-toast/SmallToast.tsx","../../src/components/toast/components/toast-icon/ToastIcon.tsx","../../src/components/toast/ToastView.tsx","../../src/components/toast/components/toast-action/ToastAction.tsx","../../src/uiKitClassName.ts","../../src/components/toast/Toast.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleCheckBig = createLucideIcon(\"CircleCheckBig\", [\n [\"path\", { d: \"M21.801 10A10 10 0 1 1 17 3.335\", key: \"yps3ct\" }],\n [\"path\", { d: \"m9 11 3 3L22 4\", key: \"1pflzl\" }]\n]);\n\nexport { CircleCheckBig as default };\n//# sourceMappingURL=circle-check-big.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Info = createLucideIcon(\"Info\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n]);\n\nexport { Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst TriangleAlert = createLucideIcon(\"TriangleAlert\", [\n [\n \"path\",\n {\n d: \"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",\n key: \"wmoenq\"\n }\n ],\n [\"path\", { d: \"M12 9v4\", key: \"juzpu7\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n]);\n\nexport { TriangleAlert as default };\n//# sourceMappingURL=triangle-alert.js.map\n","\"use client\";import o,{forwardRef as fe,isValidElement as xt}from\"react\";import vt from\"react-dom\";import E from\"react\";var jt=n=>{switch(n){case\"success\":return ee;case\"info\":return ae;case\"warning\":return oe;case\"error\":return se;default:return null}},te=Array(12).fill(0),Yt=({visible:n,className:e})=>E.createElement(\"div\",{className:[\"sonner-loading-wrapper\",e].filter(Boolean).join(\" \"),\"data-visible\":n},E.createElement(\"div\",{className:\"sonner-spinner\"},te.map((t,a)=>E.createElement(\"div\",{className:\"sonner-loading-bar\",key:`spinner-bar-${a}`})))),ee=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),oe=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),ae=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),se=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),Ot=E.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\"},E.createElement(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),E.createElement(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"}));import $t from\"react\";var Ft=()=>{let[n,e]=$t.useState(document.hidden);return $t.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener(\"visibilitychange\",t),()=>window.removeEventListener(\"visibilitychange\",t)},[]),n};import re from\"react\";var bt=1,yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)==\"number\"||((S=e.id)==null?void 0:S.length)>0?e.id:bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:\"error\"});this.success=(e,t)=>this.create({...t,type:\"success\",message:e});this.info=(e,t)=>this.create({...t,type:\"info\",message:e});this.warning=(e,t)=>this.create({...t,type:\"warning\",message:e});this.loading=(e,t)=>this.create({...t,type:\"loading\",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:\"loading\",message:t.loading,description:typeof t.description!=\"function\"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=[\"resolve\",i],re.isValidElement(i))f=!1,this.create({id:a,type:\"default\",message:i});else if(ie(i)&&!i.ok){f=!1;let T=typeof t.error==\"function\"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description==\"function\"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:\"error\",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success==\"function\"?await t.success(i):t.success,F=typeof t.description==\"function\"?await t.description(i):t.description;this.create({id:a,type:\"success\",message:T,description:F})}}).catch(async i=>{if(w=[\"reject\",i],t.error!==void 0){f=!1;let D=typeof t.error==\"function\"?await t.error(i):t.error,T=typeof t.description==\"function\"?await t.description(i):t.description;this.create({id:a,type:\"error\",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]===\"reject\"?D(w[1]):i(w[1])).catch(D));return typeof a!=\"string\"&&typeof a!=\"number\"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},v=new yt,ne=(n,e)=>{let t=(e==null?void 0:e.id)||bt++;return v.addToast({title:n,...e,id:t}),t},ie=n=>n&&typeof n==\"object\"&&\"ok\"in n&&typeof n.ok==\"boolean\"&&\"status\"in n&&typeof n.status==\"number\",le=ne,ce=()=>v.toasts,de=()=>v.getActiveToasts(),ue=Object.assign(le,{success:v.success,info:v.info,warning:v.warning,error:v.error,custom:v.custom,message:v.message,promise:v.promise,dismiss:v.dismiss,loading:v.loading},{getHistory:ce,getToasts:de});function wt(n,{insertAt:e}={}){if(!n||typeof document==\"undefined\")return;let t=document.head||document.getElementsByTagName(\"head\")[0],a=document.createElement(\"style\");a.type=\"text/css\",e===\"top\"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}wt(`: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%)}\n`);function tt(n){return n.label!==void 0}var pe=3,me=\"32px\",ge=\"16px\",Wt=4e3,he=356,be=14,ye=20,we=200;function M(...n){return n.filter(Boolean).join(\" \")}function xe(n){let[e,t]=n.split(\"-\"),a=[];return e&&a.push(e),t&&a.push(t),a}var ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot=\"\",descriptionClassName:at=\"\",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt=\"Close toast\",pauseWhenPageIsHidden:it}=n,[Y,C]=o.useState(null),[lt,J]=o.useState(null),[W,H]=o.useState(!1),[A,mt]=o.useState(!1),[L,z]=o.useState(!1),[ct,d]=o.useState(!1),[h,y]=o.useState(!1),[R,j]=o.useState(0),[p,_]=o.useState(0),O=o.useRef(t.duration||X||Wt),G=o.useRef(null),k=o.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||\"\",Xt=t.descriptionClassName||\"\",dt=o.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=o.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=o.useMemo(()=>t.duration||X||Wt,[t.duration,X]),gt=o.useRef(0),U=o.useRef(0),St=o.useRef(0),K=o.useRef(null),[Gt,Qt]=st.split(\"-\"),Rt=o.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=Ft(),qt=t.invert||e,ht=N===\"loading\";U.current=o.useMemo(()=>dt*pt+Rt,[dt,Rt]),o.useEffect(()=>{O.current=Tt},[Tt]),o.useEffect(()=>{H(!0)},[]),o.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),o.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height=\"auto\";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=o.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},we)},[t,T,f,U]);o.useEffect(()=>{if(t.promise&&N===\"loading\"||t.duration===1/0||t.type===\"loading\")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),o.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?o.createElement(\"div\",{className:M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,\"sonner-loader\"),\"data-visible\":N===\"loading\"},P.loading):rt?o.createElement(\"div\",{className:M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,\"sonner-loader\"),\"data-visible\":N===\"loading\"},rt):o.createElement(Yt,{className:M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N===\"loading\"})}return o.createElement(\"li\",{tabIndex:0,ref:k,className:M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),\"data-sonner-toast\":\"\",\"data-rich-colors\":(Nt=t.richColors)!=null?Nt:F,\"data-styled\":!(t.jsx||t.unstyled||a),\"data-mounted\":W,\"data-promise\":!!t.promise,\"data-swiped\":h,\"data-removed\":A,\"data-visible\":Ut,\"data-y-position\":Gt,\"data-x-position\":Qt,\"data-index\":g,\"data-front\":Vt,\"data-swiping\":L,\"data-dismissible\":V,\"data-type\":N,\"data-invert\":qt,\"data-swipe-out\":ct,\"data-swipe-direction\":lt,\"data-expanded\":!!(D||B&&W),style:{\"--index\":g,\"--toasts-before\":g,\"--z-index\":i.length-g,\"--offset\":`${A?R:U.current}px`,\"--initial-height\":B?\"auto\":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!==\"BUTTON\"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue(\"--swipe-amount-x\").replace(\"px\",\"\"))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue(\"--swipe-amount-y\").replace(\"px\",\"\"))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y===\"x\"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y===\"x\"?r>0?\"right\":\"left\":m>0?\"down\":\"up\"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?\"x\":\"y\");let x={x:0,y:0};Y===\"y\"?(I.includes(\"top\")||I.includes(\"bottom\"))&&(I.includes(\"top\")&&c<0||I.includes(\"bottom\")&&c>0)&&(x.y=c):Y===\"x\"&&(I.includes(\"left\")||I.includes(\"right\"))&&(I.includes(\"left\")&&b<0||I.includes(\"right\")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty(\"--swipe-amount-x\",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty(\"--swipe-amount-y\",`${x.y}px`)}},Jt&&!t.jsx?o.createElement(\"button\",{\"aria-label\":nt,\"data-disabled\":ht,\"data-close-button\":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:Ot):null,t.jsx||xt(t.title)?t.jsx?t.jsx:typeof t.title==\"function\"?t.title():t.title:o.createElement(o.Fragment,null,N||t.icon||t.promise?o.createElement(\"div\",{\"data-icon\":\"\",className:M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type===\"loading\"&&!t.icon?t.icon||Zt():null,t.type!==\"loading\"?t.icon||(P==null?void 0:P[N])||jt(N):null):null,o.createElement(\"div\",{\"data-content\":\"\",className:M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},o.createElement(\"div\",{\"data-title\":\"\",className:M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title==\"function\"?t.title():t.title),t.description?o.createElement(\"div\",{\"data-description\":\"\",className:M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description==\"function\"?t.description():t.description):null),xt(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?o.createElement(\"button\",{\"data-button\":!0,\"data-cancel\":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,xt(t.action)?t.action:t.action&&tt(t.action)?o.createElement(\"button\",{\"data-button\":!0,\"data-action\":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function _t(){if(typeof window==\"undefined\"||typeof document==\"undefined\")return\"ltr\";let n=document.documentElement.getAttribute(\"dir\");return n===\"auto\"||!n?window.getComputedStyle(document.documentElement).direction:n}function Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?\"--mobile-offset\":\"--offset\",S=f?ge:me;function g(i){[\"top\",\"right\",\"bottom\",\"left\"].forEach(D=>{t[`${w}-${D}`]=typeof i==\"number\"?`${i}px`:i})}typeof a==\"number\"||typeof a==\"string\"?g(a):typeof a==\"object\"?[\"top\",\"right\",\"bottom\",\"left\"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]==\"number\"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=o.useState([]);return o.useEffect(()=>v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=fe(function(e,t){let{invert:a,position:u=\"bottom-right\",hotkey:f=[\"altKey\",\"KeyT\"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T=\"light\",richColors:F,duration:et,style:ut,visibleToasts:ft=pe,toastOptions:l,dir:ot=_t(),gap:at=be,loadingIcon:X,icons:st,containerAriaLabel:pt=\"Notifications\",pauseWhenPageIsHidden:rt}=e,[B,s]=o.useState([]),P=o.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=o.useState([]),[Y,C]=o.useState(!1),[lt,J]=o.useState(!1),[W,H]=o.useState(T!==\"system\"?T:typeof window!=\"undefined\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"),A=o.useRef(null),mt=f.join(\"+\").replace(/Key/g,\"\").replace(/Digit/g,\"\"),L=o.useRef(null),z=o.useRef(!1),ct=o.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return o.useEffect(()=>v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{vt.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),o.useEffect(()=>{if(T!==\"system\"){H(T);return}if(T===\"system\"&&(window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?H(\"dark\"):H(\"light\")),typeof window==\"undefined\")return;let d=window.matchMedia(\"(prefers-color-scheme: dark)\");try{d.addEventListener(\"change\",({matches:h})=>{H(h?\"dark\":\"light\")})}catch(h){d.addListener(({matches:y})=>{try{H(y?\"dark\":\"light\")}catch(R){console.error(R)}})}},[T]),o.useEffect(()=>{B.length<=1&&C(!1)},[B]),o.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code===\"Escape\"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener(\"keydown\",d),()=>document.removeEventListener(\"keydown\",d)},[f]),o.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),o.createElement(\"section\",{ref:t,\"aria-label\":`${pt} ${mt}`,tabIndex:-1,\"aria-live\":\"polite\",\"aria-relevant\":\"additions text\",\"aria-atomic\":\"false\",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split(\"-\");return B.length?o.createElement(\"ol\",{key:d,dir:ot===\"auto\"?_t():ot,tabIndex:-1,ref:A,className:g,\"data-sonner-toaster\":!0,\"data-theme\":W,\"data-y-position\":y,\"data-lifted\":Y&&B.length>1&&!w,\"data-x-position\":R,style:{\"--front-toast-height\":`${((j=nt[0])==null?void 0:j.height)||0}px`,\"--width\":`${he}px`,\"--gap\":`${at}px`,...ut,...Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible===\"false\"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible===\"false\"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return o.createElement(ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});export{$e as Toaster,ue as toast,Oe as useSonner};\n//# sourceMappingURL=index.mjs.map","import { createContext, useContext } from \"react\";\nimport { ToastProps } from \"../ToastView\";\n\ntype ToastContextType = ToastProps & {\n\tid?: number | string;\n};\n\nexport const ToastContext = createContext<ToastContextType | null>(null);\n\nexport const ToastProvider: React.FC<{\n\tchildren: React.ReactNode;\n\tvalue: ToastContextType;\n}> = ({ children, value }) => {\n\treturn <ToastContext.Provider value={value}>{children}</ToastContext.Provider>;\n};\n\nexport const useToastContext = () => {\n\tconst context = useContext(ToastContext);\n\tif (!context) {\n\t\tthrow new Error(\"useToastContext must be used within a ToastProvider\");\n\t}\n\treturn context;\n};\n","import { ButtonProps } from \"@/components/button/button/Button\";\nimport { ToastProps } from \"../ToastView\";\n\ntype ActionType = \"primary\" | \"secondary\" | \"close\";\n\nconst getVariantByFocus = (toastFocus: ToastProps[\"focus\"]): ButtonProps[\"variant\"] => {\n\tconst variantByFocus: Record<NonNullable<ToastProps[\"focus\"]>, ButtonProps[\"variant\"]> = {\n\t\tlow: \"ghost\",\n\t\tmedium: \"secondary\",\n\t\thigh: \"primary\"\n\t};\n\treturn variantByFocus[toastFocus ?? \"low\"];\n};\n\nexport function getButtonProps(toastProps: ToastProps, actionType: ActionType): ButtonProps {\n\tconst { size: toastSize, focus: toastFocus, status: toastStatus } = toastProps;\n\tconst isHighFocusSmall = [\"medium\", \"high\"].includes(toastFocus ?? \"\") && toastSize === \"sm\";\n\n\tconst baseProps: ButtonProps = {\n\t\tstatus: isHighFocusSmall ? toastStatus : \"default\"\n\t};\n\n\tif (actionType === \"close\") {\n\t\treturn {\n\t\t\t...baseProps,\n\t\t\tsize: toastSize === \"lg\" ? \"xl\" : \"lg\",\n\t\t\tvariant: toastSize === \"sm\" ? getVariantByFocus(toastFocus) : \"text\"\n\t\t};\n\t}\n\n\tconst variantBySize: Record<NonNullable<ToastProps[\"size\"]>, ButtonProps[\"variant\"]> = {\n\t\tsm: getVariantByFocus(toastFocus),\n\t\tmd: \"link\",\n\t\tlg: actionType === \"primary\" ? (toastFocus === \"high\" ? \"secondary\" : \"outline\") : \"text\"\n\t};\n\n\treturn {\n\t\t...baseProps,\n\t\tsize: toastSize === \"lg\" ? \"md\" : \"lg\",\n\t\tvariant: variantBySize[toastSize ?? \"sm\"]\n\t};\n}\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { X } from \"lucide-react\";\nimport { getButtonProps } from \"../../utils/ToastUtils\";\nimport { IconButton } from \"@/components/button/icon-button/IconButton\";\n\nconst toastCloseButtonVariants = tv({\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: \"\",\n\t\t\tinfo: \"\",\n\t\t\tsuccess: \"\",\n\t\t\twarning: \"\",\n\t\t\terror: \"\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t},\n\t\tsize: {\n\t\t\tsm: \"h-[2.375rem] w-[2.375rem] rounded-l-none p-2.5\",\n\t\t\tmd: \"\",\n\t\t\tlg: \"p-3.5\"\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"medium\",\n\t\t\tclassName: \"text-primary-fg\"\n\t\t},\n\t\t{\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-status-neutral hover:bg-status-neutral-hover\"\n\t\t},\n\t\t{\n\t\t\tsize: [\"md\", \"lg\"],\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tsize: [\"md\", \"lg\"],\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t}\n\t]\n});\n\nexport const ToastCloseButton: React.FC<{ className?: string }> = ({ className }) => {\n\tconst toastProps = useToastContext();\n\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastCloseButton must be used within Toast\");\n\t}\n\tconst buttonProps = getButtonProps(toastProps, \"close\");\n\treturn (\n\t\t<IconButton\n\t\t\t{...buttonProps}\n\t\t\ticon={X}\n\t\t\tonClick={toastProps.onClose}\n\t\t\tclassName={toastCloseButtonVariants({\n\t\t\t\tsize: toastProps.size,\n\t\t\t\tfocus: toastProps.focus,\n\t\t\t\tstatus: toastProps.status,\n\t\t\t\tclassName\n\t\t\t})}\n\t\t/>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\nimport { Text } from \"@/components/text\";\nimport { cn } from \"@/lib/utils\";\n\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex w-full flex-col gap-4\",\n\t\ttopZone: \"flex gap-3\",\n\t\ttextWrapper: \"flex flex-grow flex-col gap-1\",\n\t\tactionsWrapper: \"flex w-full justify-end gap-2\"\n\t}\n});\n\nexport const LargeToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close, descriptionText } = styleProps;\n\tconst { contentWrapper, topZone, textWrapper, actionsWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t<div className={topZone()}>\n\t\t\t\t\t{titleIcon}\n\t\t\t\t\t<div className={textWrapper()}>\n\t\t\t\t\t\t<span className={titleText()}>{context.title}</span>\n\t\t\t\t\t\t{context.description && <Text className={descriptionText()}>{context.description}</Text>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{context.closeAction && <ToastCloseButton className={cn(\"shrink-0\", close())} />}\n\t\t\t\t</div>\n\t\t\t\t{context.secondaryAction || context.primaryAction ? (\n\t\t\t\t\t<div className={actionsWrapper()}>\n\t\t\t\t\t\t{context.secondaryAction}\n\t\t\t\t\t\t{context.primaryAction}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t</>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\n\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex flex-grow gap-3 py-2.5 pr-2.5\"\n\t}\n});\n\nexport const MediumToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close } = styleProps;\n\tconst { contentWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t{titleIcon}\n\t\t\t\t<span className={titleText()}>{context.title}</span>\n\t\t\t</div>\n\t\t\t{context.primaryAction && context.primaryAction}\n\t\t\t{context.closeAction && <ToastCloseButton className={close()} />}\n\t\t</>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\nimport { twMerge } from \"tailwind-merge\";\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex min-w-0 flex-grow items-center gap-2 pr-3\",\n\t\ttitleWrapper: \"min-w-0 truncate\"\n\t}\n});\n\nexport const SmallToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close, divider } = styleProps;\n\tconst { contentWrapper, titleWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t{titleIcon}\n\t\t\t\t<div className={twMerge(titleWrapper(), titleText())}>\n\t\t\t\t\t<span>{context.title}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{context.primaryAction && (\n\t\t\t\t<div className={divider()}>{context.primaryAction}</div>\n\t\t\t)}\n\t\t\t{context.closeAction && (\n\t\t\t\t<div className={divider()}>\n\t\t\t\t\t<ToastCloseButton className={close()} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</>\n\t);\n};\n","import React from \"react\";\nimport { CircleAlert, Info, CircleCheckBig, TriangleAlert, LucideIcon } from \"lucide-react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { Icon } from \"@/components/icon/Icon\";\n\nconst titleIconStyles = tv({\n\tslots: {\n\t\twrapper: \"flex h-5 w-5 items-center justify-center\",\n\t\ticon: \"h-4 w-4 [&>svg]:h-4 [&>svg]:w-4\"\n\t},\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: { wrapper: \"text-status-neutral\" },\n\t\t\tinfo: { wrapper: \"text-status-info\" },\n\t\t\tsuccess: { wrapper: \"text-status-success\" },\n\t\t\twarning: { wrapper: \"text-status-warning\" },\n\t\t\terror: { wrapper: \"text-status-error\" }\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: { wrapper: \"text-secondary-bg\" }\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tfocus: \"high\",\n\t\t\tclass: { wrapper: \"text-white\" }\n\t\t}\n\t]\n});\n\nexport type ToastIconProps = {\n\ticon?: React.ReactNode;\n};\n\nexport const ToastIcon: React.FC<ToastIconProps> = ({ icon }) => {\n\tconst toastProps = useToastContext();\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastIcon must be used within Toast\");\n\t}\n\n\tconst { wrapper, icon: iconClass } = titleIconStyles({ focus: toastProps.focus, status: toastProps.status });\n\tconst DefaultIcon = defaultTitleIcons[toastProps.status ?? \"default\"];\n\n\tconst renderIcon = () => {\n\t\tif (icon) {\n\t\t\treturn <div className={iconClass()}>{icon}</div>;\n\t\t}\n\t\treturn <Icon icon={DefaultIcon} className={iconClass()} />;\n\t};\n\n\treturn <div className={wrapper()}>{renderIcon()}</div>;\n};\n\nconst defaultTitleIcons: Record<string, LucideIcon> = {\n\tdefault: CircleAlert,\n\tinfo: Info,\n\tsuccess: CircleCheckBig,\n\twarning: TriangleAlert,\n\terror: CircleAlert\n};\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { LargeToast } from \"./components/large-toast/LargeToast\";\nimport { MediumToast } from \"./components/medium-toast/MediumToast\";\nimport { SmallToast } from \"./components/small-toast/SmallToast\";\nimport { ToastAction } from \"./components/toast-action/ToastAction\";\nimport { ToastIcon } from \"./components/toast-icon/ToastIcon\";\nimport { ToastProvider } from \"./hooks/useToastContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface ToastVariants {\n\tstatus?: \"default\" | \"info\" | \"success\" | \"warning\" | \"error\";\n\tfocus?: \"low\" | \"medium\" | \"high\";\n\tsize?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst toastStyles = tv({\n\tslots: {\n\t\t/**\n\t\t * Ширина уведомления задается в переменной --width.\n\t\t * Библиотека sonner не поддерживает динамические ширины и использует эту переменную для вычисления позиции уведомления.\n\t\t */\n\t\twrapper: \"inline-flex w-[--width] items-start rounded-lg border border-solid border-primary-border\",\n\t\ttext: \"flex min-w-0 flex-auto flex-col justify-center gap-1 truncate pr-3\",\n\t\ttitleText: \"min-w-0 text-sm font-semibold text-primary-fg\",\n\t\tdescriptionText: \"inline-block font-medium\",\n\t\tcontentWrapper: \"flex items-center\",\n\t\tcontent: \"flex\",\n\t\tactions: \"flex items-center justify-center gap-2\",\n\t\tclose: \"\",\n\t\tdivider: \"shrink-0 self-stretch border-l border-primary-border\"\n\t},\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: {\n\t\t\t\twrapper: \"\"\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\twrapper: \"bg-status-success-bg\"\n\t\t\t},\n\t\t\tinfo: {\n\t\t\t\twrapper: \"bg-status-info-bg\"\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\twrapper: \"bg-status-warning-bg\"\n\t\t\t},\n\t\t\terror: {\n\t\t\t\twrapper: \"bg-status-error-bg\"\n\t\t\t}\n\t\t},\n\t\tfocus: {\n\t\t\tlow: {\n\t\t\t\twrapper: \"bg-secondary-bg\"\n\t\t\t},\n\t\t\tmedium: {\n\t\t\t\twrapper: \"bg-status-neutral-bg\"\n\t\t\t},\n\t\t\thigh: {\n\t\t\t\ttitleText: \"text-white\",\n\t\t\t\tdescriptionText: \"text-white/70\",\n\t\t\t\tdivider: \"border-white\",\n\t\t\t\twrapper: \"border-none\"\n\t\t\t}\n\t\t},\n\t\tsize: {\n\t\t\tsm: {\n\t\t\t\twrapper: \"h-10 items-center pl-3 shadow-soft-sm\",\n\t\t\t\ttitleText: \"text-xs font-medium leading-5\",\n\t\t\t\tcontentWrapper: \"gap-2\"\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: \"h-[3.25rem] items-center py-1.5 pl-4 pr-1.5 shadow-soft-md\",\n\t\t\t\ttitleText: \"font-medium\",\n\t\t\t\tcontentWrapper: \"gap-3\"\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: \"relative items-start p-4 shadow-soft-lg\",\n\t\t\t\tcontentWrapper: \"items-start gap-3\",\n\t\t\t\tcontent: \"flex flex-1 flex-col gap-4\",\n\t\t\t\tactions: \"justify-end self-stretch\",\n\t\t\t\tclose: \"mr-[-16px] mt-[-16px]\",\n\t\t\t\ttitleText: \"text-wrap\",\n\t\t\t\tdescriptionText: \"font-normal\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<ToastVariants>,\n\tdefaultVariants: {\n\t\tstatus: \"default\",\n\t\tfocus: \"medium\",\n\t\tsize: \"sm\"\n\t},\n\tcompoundVariants: [\n\t\t// Medium focus\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-info-secondary-border\",\n\t\t\t\twrapper: \"border-status-info-secondary-border bg-status-info-bg\",\n\t\t\t\ttitleText: \"text-status-info\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-success-secondary-border\",\n\t\t\t\twrapper: \"border-status-success-secondary-border bg-status-success-bg\",\n\t\t\t\ttitleText: \"text-status-success\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-warning-secondary-border\",\n\t\t\t\twrapper: \"border-status-warning-secondary-border bg-status-warning-bg\",\n\t\t\t\ttitleText: \"text-status-warning\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-error-secondary-border\",\n\t\t\t\twrapper: \"border-status-error-secondary-border bg-status-error-bg\",\n\t\t\t\ttitleText: \"text-status-error\"\n\t\t\t}\n\t\t},\n\t\t// High focus\n\t\t{\n\t\t\tstatus: \"default\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-primary\",\n\t\t\t\ttitleText: \"text-primary-bg\",\n\t\t\t\tdescriptionText: \"text-primary-bg/70\",\n\t\t\t\tdivider: \"border-primary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-info\",\n\t\t\t\tdivider: \"border-status-info-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-success\",\n\t\t\t\tdivider: \"border-status-success-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-warning\",\n\t\t\t\tdivider: \"border-status-warning-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-error\",\n\t\t\t\tdivider: \"border-status-error-secondary-border\"\n\t\t\t}\n\t\t}\n\t]\n});\n\nexport type ToastProps = ToastVariants & {\n\ttitle: React.ReactNode;\n\tdescription?: React.ReactNode;\n\ticon?: React.ReactNode;\n\tprimaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;\n\tsecondaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;\n\tcloseAction?: boolean;\n\tonClose?: () => void;\n};\n\nexport type ToastSize = \"sm\" | \"md\" | \"lg\";\n\nexport const Toast = React.forwardRef<HTMLDivElement, ToastProps & { id?: number | string }>(\n\t({ closeAction = true, id, onClose, ...props }, ref) => {\n\t\tconst { wrapper, titleText, descriptionText, actions, close, divider } = toastStyles({\n\t\t\tstatus: props.status,\n\t\t\tfocus: props.focus,\n\t\t\tsize: props.size\n\t\t});\n\n\t\tconst titleIcon = props.icon ? <ToastIcon icon={props.icon} /> : null;\n\n\t\tconst contextValue = {\n\t\t\tid,\n\t\t\tstatus: props.status,\n\t\t\tfocus: props.focus,\n\t\t\tsize: props.size,\n\t\t\ttitle: props.title,\n\t\t\tdescription: props.description,\n\t\t\ticon: props.icon,\n\t\t\tprimaryAction: props.primaryAction,\n\t\t\tsecondaryAction: props.secondaryAction,\n\t\t\tcloseAction,\n\t\t\tonClose\n\t\t};\n\n\t\tconst toastViewProps = {\n\t\t\ttitleText,\n\t\t\tdescriptionText,\n\t\t\tactions,\n\t\t\tclose,\n\t\t\tdivider,\n\t\t\ttitleIcon\n\t\t};\n\n\t\tlet toastView = null;\n\t\tconst size = props.size || \"md\";\n\t\tif (size === \"sm\") {\n\t\t\ttoastView = <SmallToast {...toastViewProps} />;\n\t\t} else if (size === \"md\") {\n\t\t\ttoastView = <MediumToast {...toastViewProps} />;\n\t\t} else if (size === \"lg\") {\n\t\t\ttoastView = <LargeToast {...toastViewProps} />;\n\t\t}\n\n\t\treturn (\n\t\t\t<ToastProvider value={contextValue}>\n\t\t\t\t<div ref={ref} className={wrapper()}>\n\t\t\t\t\t{toastView}\n\t\t\t\t</div>\n\t\t\t</ToastProvider>\n\t\t);\n\t}\n);\n\nToast.displayName = \"Toast\";\n\nexport default Toast;\n\nexport interface ToastViewProps {\n\ttitleText: () => string;\n\tdescriptionText: () => string;\n\tactions: () => string;\n\tclose: () => string;\n\tdivider: () => string;\n\ttitleIcon: JSX.Element | null;\n}\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { getButtonProps } from \"../../utils/ToastUtils\";\nimport { Button } from \"@/components/button/button/Button\";\n\nconst toastActionVariants = tv({\n\tvariants: {\n\t\tactionType: {\n\t\t\tprimary: \"\",\n\t\t\t/*\n\t\t\t * Доступен только для toast размером sm и md\n\t\t\t */\n\t\t\tsecondary: \"\"\n\t\t},\n\t\tstatus: {\n\t\t\tdefault: \"\",\n\t\t\tinfo: \"\",\n\t\t\tsuccess: \"\",\n\t\t\twarning: \"\",\n\t\t\terror: \"\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t},\n\t\tsize: {\n\t\t\tsm: \"h-full rounded-none px-3 py-3 text-xs font-semibold leading-none focus-visible:z-10\",\n\t\t\tmd: \"px-3 py-2 text-sm\",\n\t\t\tlg: \"\"\n\t\t}\n\t},\n\tdefaultVariants: {\n\t\tactionType: \"primary\"\n\t},\n\tcompoundVariants: [\n\t\t// Small size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"medium\",\n\t\t\tclassName: \"text-primary-fg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tstatus: \"default\",\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"high\",\n\t\t\tclassName: \"bg-status-neutral hover:bg-status-neutral-hover\"\n\t\t},\n\t\t// Medium size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"md\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"md\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t},\n\t\t// Large size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tclassName: \"px-4 py-2\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"low\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-secondary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"medium\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-status-neutral\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tclassName: \"p-2\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"bg-white/70 text-black hover:bg-white\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t}\n\t]\n});\n\nexport type ToastActionProps = React.PropsWithChildren<{\n\tonClick?: () => void;\n}>;\n\nexport const ToastAction: React.FC<ToastActionProps> = ({ children, onClick }) => {\n\tconst toastProps = useToastContext();\n\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastAction must be used within Toast\");\n\t}\n\n\tconst actionType = toastProps.primaryAction?.props.children === children ? \"primary\" : \"secondary\";\n\tif (actionType === \"secondary\" && [\"sm\", \"md\"].includes(toastProps.size ?? \"\")) return null;\n\tconst buttonProps = getButtonProps(toastProps, actionType);\n\n\tif (actionType === \"primary\" && toastProps.size === \"lg\" && toastProps.focus === \"medium\") {\n\t\tbuttonProps.status = toastProps.status;\n\t\tbuttonProps.variant = \"primary\";\n\t}\n\n\treturn (\n\t\t<Button\n\t\t\t{...buttonProps}\n\t\t\tonClick={onClick}\n\t\t\tclassName={toastActionVariants({\n\t\t\t\tactionType,\n\t\t\t\tsize: toastProps.size,\n\t\t\t\tfocus: toastProps.focus,\n\t\t\t\tstatus: toastProps.status\n\t\t\t})}\n\t\t>\n\t\t\t{children}\n\t\t</Button>\n\t);\n};\n","/**\n * Название css класса обертки для компонентов.\n * Служит для изоляции стилей компонентов от глобальных стилей. Подробнее в документации по стилям.\n */\nexport const UI_KIT_CLASS_NAME = \"ui-kit\";\n","import { ExternalToast, Toaster as SonnerToaster, toast as sonnerToast } from \"sonner\";\nimport Toast, { ToastProps } from \"./ToastView\";\nimport { ToastAction } from \"./components/toast-action/ToastAction\";\nimport { UI_KIT_CLASS_NAME } from \"../../uiKitClassName\";\n\nexport const Toaster = SonnerToaster;\n\nexport type ToastOptions = Pick<ToastProps, \"description\" | \"icon\" | \"size\" | \"status\" | \"focus\" | \"closeAction\"> & {\n\t/** Вызывается при закрытии уведомления с помощью кнопки закрытия или с помощью свайпа */\n\tonDismiss?: () => void;\n\t/** Вызывается при закрытии уведомления при автоматическом закрытии через duration */\n\tonAutoClose?: () => void;\n\t/** Если false, пользователь не сможет закрыть уведомление */\n\tdismissible?: boolean;\n\t/** Время в ms, через которое уведомление будет закрыто */\n\tduration?: number;\n\t/** Позиция уведомления */\n\tposition?: \"top-center\" | \"top-right\" | \"top-left\" | \"bottom-center\" | \"bottom-right\" | \"bottom-left\";\n\t/** Основное действие */\n\tprimaryAction?: ToastActionData;\n\t/** Вспомогательное действие */\n\tsecondaryAction?: ToastActionData;\n\n\tid?: number | string;\n};\n\nexport type ToastActionData = {\n\ttitle?: string;\n\tonClick: () => void;\n\ticon?: React.ReactNode;\n};\n\nexport const toast = (message: React.ReactNode, options: ToastOptions = {}) => {\n\tconst data: ExternalToast = {\n\t\tonDismiss: options.onDismiss,\n\t\tonAutoClose: options.onAutoClose,\n\t\tduration: options.duration,\n\t\tdismissible: options.dismissible,\n\t\tposition: options.position\n\t};\n\tif (options.id != null) data.id = options.id;\n\treturn sonnerToast.custom((id) => {\n\t\treturn (\n\t\t\t<div className={UI_KIT_CLASS_NAME}>\n\t\t\t\t<Toast\n\t\t\t\t\ttitle={message}\n\t\t\t\t\t{...options}\n\t\t\t\t\tprimaryAction={\n\t\t\t\t\t\toptions.primaryAction ? (\n\t\t\t\t\t\t\t<ToastAction\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\toptions.primaryAction?.onClick();\n\t\t\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{options.primaryAction.title}\n\t\t\t\t\t\t\t\t{options.primaryAction.icon}\n\t\t\t\t\t\t\t</ToastAction>\n\t\t\t\t\t\t) : undefined\n\t\t\t\t\t}\n\t\t\t\t\tsecondaryAction={\n\t\t\t\t\t\toptions.secondaryAction ? (\n\t\t\t\t\t\t\t<ToastAction\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\toptions.secondaryAction?.onClick();\n\t\t\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{options.secondaryAction.title}\n\t\t\t\t\t\t\t\t{options.secondaryAction.icon}\n\t\t\t\t\t\t\t</ToastAction>\n\t\t\t\t\t\t) : undefined\n\t\t\t\t\t}\n\t\t\t\t\tonClose={() => {\n\t\t\t\t\t\tif (options.dismissible !== false) {\n\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\toptions.onDismiss?.();\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}, data);\n};\n\nexport const dismiss = sonnerToast.dismiss;\n\nexport type CustomToastProps = {\n\tid: number | string;\n\ttoast: typeof sonnerToast;\n};\n\nexport type CustomToastOptions = ExternalToast;\n\nexport const customToast = (jsx: (props: CustomToastProps) => React.ReactElement, options: CustomToastOptions = {}) => {\n\treturn sonnerToast.custom((id) => jsx({ id, toast: sonnerToast }), options);\n};\n"],"names":["CircleCheckBig","createLucideIcon","Info","TriangleAlert","jt","n","ee","ae","oe","se","te","Yt","e","E","t","a","Ot","Ft","$t","bt","yt","S","u","f","g","w","i","re","ie","T","F","D","v","ne","le","ce","de","ue","wt","tt","pe","me","ge","Wt","he","be","ye","we","xe","ve","Dt","Pt","Nt","Bt","Ct","kt","It","Mt","Ht","At","Lt","et","ut","ft","l","ot","at","st","pt","rt","B","s","P","nt","it","Y","C","o","lt","J","W","H","A","mt","L","z","ct","d","h","y","R","j","p","_","O","G","k","Vt","Ut","N","V","Kt","Xt","dt","r","Jt","Tt","gt","U","St","K","Gt","Qt","m","c","Et","qt","ht","b","x","Zt","Q","q","Z","I","zt","xt","_t","Te","$e","fe","X","vt","ToastContext","createContext","ToastProvider","children","value","jsx","useToastContext","context","useContext","getVariantByFocus","toastFocus","getButtonProps","toastProps","actionType","toastSize","toastStatus","baseProps","variantBySize","toastCloseButtonVariants","tv","ToastCloseButton","className","buttonProps","IconButton","toastStyles","LargeToast","titleIcon","styleProps","titleText","close","descriptionText","contentWrapper","topZone","textWrapper","actionsWrapper","Fragment","jsxs","Text","cn","MediumToast","SmallToast","divider","titleWrapper","twMerge","titleIconStyles","ToastIcon","icon","wrapper","iconClass","DefaultIcon","defaultTitleIcons","renderIcon","Icon","CircleAlert","Toast","React","closeAction","id","onClose","props","ref","actions","contextValue","toastViewProps","toastView","size","toastActionVariants","ToastAction","onClick","Button","UI_KIT_CLASS_NAME","Toaster","SonnerToaster","toast","message","options","data","sonnerToast","dismiss","customToast"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAiBC,GAAiB,kBAAkB;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,mCAAmC,KAAK,SAAQ,CAAE;AAAA,EAChE,CAAC,QAAQ,EAAE,GAAG,kBAAkB,KAAK,SAAU,CAAA;AACjD,CAAC;ACZD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMC,KAAOD,GAAiB,QAAQ;AAAA,EACpC,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,MAAM,KAAK,UAAU;AAAA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AAA,MAEL,SAAS,MAAM;AACV,QAAAA,EAAQ,gBAAgB,OAC3BE,EAAY,QAAQpB,CAAE,GACtBkB,EAAQ,YAAY;AAAA,MACrB;AAAA,IACD;AAAA,EAAA,GAEF,GAECC,CAAI;AACR,GAEaE,KAAUD,EAAY,SAStBE,KAAc,CAAC1E,GAAsDsE,IAA8B,OACxGE,EAAY,OAAO,CAACpB,MAAOpD,EAAI,EAAE,IAAAoD,GAAI,OAAOoB,GAAa,GAAGF,CAAO;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"toast.js","sources":["../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/circle-check-big.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/triangle-alert.js","../../node_modules/.pnpm/sonner@1.7.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.mjs","../../src/components/toast/hooks/useToastContext.tsx","../../src/components/toast/utils/ToastUtils.tsx","../../src/components/toast/components/toast-close-action/ToastCloseButton.tsx","../../src/components/toast/components/large-toast/LargeToast.tsx","../../src/components/toast/components/medium-toast/MediumToast.tsx","../../src/components/toast/components/small-toast/SmallToast.tsx","../../src/components/toast/components/toast-icon/ToastIcon.tsx","../../src/components/toast/ToastView.tsx","../../src/components/toast/components/toast-action/ToastAction.tsx","../../src/uiKitClassName.ts","../../src/components/toast/Toast.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst CircleCheckBig = createLucideIcon(\"CircleCheckBig\", [\n [\"path\", { d: \"M21.801 10A10 10 0 1 1 17 3.335\", key: \"yps3ct\" }],\n [\"path\", { d: \"m9 11 3 3L22 4\", key: \"1pflzl\" }]\n]);\n\nexport { CircleCheckBig as default };\n//# sourceMappingURL=circle-check-big.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Info = createLucideIcon(\"Info\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n]);\n\nexport { Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst TriangleAlert = createLucideIcon(\"TriangleAlert\", [\n [\n \"path\",\n {\n d: \"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",\n key: \"wmoenq\"\n }\n ],\n [\"path\", { d: \"M12 9v4\", key: \"juzpu7\" }],\n [\"path\", { d: \"M12 17h.01\", key: \"p32p05\" }]\n]);\n\nexport { TriangleAlert as default };\n//# sourceMappingURL=triangle-alert.js.map\n","\"use client\";import o,{forwardRef as fe,isValidElement as xt}from\"react\";import vt from\"react-dom\";import E from\"react\";var jt=n=>{switch(n){case\"success\":return ee;case\"info\":return ae;case\"warning\":return oe;case\"error\":return se;default:return null}},te=Array(12).fill(0),Yt=({visible:n,className:e})=>E.createElement(\"div\",{className:[\"sonner-loading-wrapper\",e].filter(Boolean).join(\" \"),\"data-visible\":n},E.createElement(\"div\",{className:\"sonner-spinner\"},te.map((t,a)=>E.createElement(\"div\",{className:\"sonner-loading-bar\",key:`spinner-bar-${a}`})))),ee=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),oe=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),ae=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),se=E.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 20 20\",fill:\"currentColor\",height:\"20\",width:\"20\"},E.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\"})),Ot=E.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\"},E.createElement(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),E.createElement(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"}));import $t from\"react\";var Ft=()=>{let[n,e]=$t.useState(document.hidden);return $t.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener(\"visibilitychange\",t),()=>window.removeEventListener(\"visibilitychange\",t)},[]),n};import re from\"react\";var bt=1,yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});this.publish=e=>{this.subscribers.forEach(t=>t(e))};this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};this.create=e=>{var S;let{message:t,...a}=e,u=typeof(e==null?void 0:e.id)==\"number\"||((S=e.id)==null?void 0:S.length)>0?e.id:bt++,f=this.toasts.find(g=>g.id===u),w=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(g=>g.id===u?(this.publish({...g,...e,id:u,title:t}),{...g,...e,id:u,dismissible:w,title:t}):g):this.addToast({title:t,...a,dismissible:w,id:u}),u};this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);this.message=(e,t)=>this.create({...t,message:e});this.error=(e,t)=>this.create({...t,message:e,type:\"error\"});this.success=(e,t)=>this.create({...t,type:\"success\",message:e});this.info=(e,t)=>this.create({...t,type:\"info\",message:e});this.warning=(e,t)=>this.create({...t,type:\"warning\",message:e});this.loading=(e,t)=>this.create({...t,type:\"loading\",message:e});this.promise=(e,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:e,type:\"loading\",message:t.loading,description:typeof t.description!=\"function\"?t.description:void 0}));let u=e instanceof Promise?e:e(),f=a!==void 0,w,S=u.then(async i=>{if(w=[\"resolve\",i],re.isValidElement(i))f=!1,this.create({id:a,type:\"default\",message:i});else if(ie(i)&&!i.ok){f=!1;let T=typeof t.error==\"function\"?await t.error(`HTTP error! status: ${i.status}`):t.error,F=typeof t.description==\"function\"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:a,type:\"error\",message:T,description:F})}else if(t.success!==void 0){f=!1;let T=typeof t.success==\"function\"?await t.success(i):t.success,F=typeof t.description==\"function\"?await t.description(i):t.description;this.create({id:a,type:\"success\",message:T,description:F})}}).catch(async i=>{if(w=[\"reject\",i],t.error!==void 0){f=!1;let D=typeof t.error==\"function\"?await t.error(i):t.error,T=typeof t.description==\"function\"?await t.description(i):t.description;this.create({id:a,type:\"error\",message:D,description:T})}}).finally(()=>{var i;f&&(this.dismiss(a),a=void 0),(i=t.finally)==null||i.call(t)}),g=()=>new Promise((i,D)=>S.then(()=>w[0]===\"reject\"?D(w[1]):i(w[1])).catch(D));return typeof a!=\"string\"&&typeof a!=\"number\"?{unwrap:g}:Object.assign(a,{unwrap:g})};this.custom=(e,t)=>{let a=(t==null?void 0:t.id)||bt++;return this.create({jsx:e(a),id:a,...t}),a};this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},v=new yt,ne=(n,e)=>{let t=(e==null?void 0:e.id)||bt++;return v.addToast({title:n,...e,id:t}),t},ie=n=>n&&typeof n==\"object\"&&\"ok\"in n&&typeof n.ok==\"boolean\"&&\"status\"in n&&typeof n.status==\"number\",le=ne,ce=()=>v.toasts,de=()=>v.getActiveToasts(),ue=Object.assign(le,{success:v.success,info:v.info,warning:v.warning,error:v.error,custom:v.custom,message:v.message,promise:v.promise,dismiss:v.dismiss,loading:v.loading},{getHistory:ce,getToasts:de});function wt(n,{insertAt:e}={}){if(!n||typeof document==\"undefined\")return;let t=document.head||document.getElementsByTagName(\"head\")[0],a=document.createElement(\"style\");a.type=\"text/css\",e===\"top\"&&t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}wt(`: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%)}\n`);function tt(n){return n.label!==void 0}var pe=3,me=\"32px\",ge=\"16px\",Wt=4e3,he=356,be=14,ye=20,we=200;function M(...n){return n.filter(Boolean).join(\" \")}function xe(n){let[e,t]=n.split(\"-\"),a=[];return e&&a.push(e),t&&a.push(t),a}var ve=n=>{var Dt,Pt,Nt,Bt,Ct,kt,It,Mt,Ht,At,Lt;let{invert:e,toast:t,unstyled:a,interacting:u,setHeights:f,visibleToasts:w,heights:S,index:g,toasts:i,expanded:D,removeToast:T,defaultRichColors:F,closeButton:et,style:ut,cancelButtonStyle:ft,actionButtonStyle:l,className:ot=\"\",descriptionClassName:at=\"\",duration:X,position:st,gap:pt,loadingIcon:rt,expandByDefault:B,classNames:s,icons:P,closeButtonAriaLabel:nt=\"Close toast\",pauseWhenPageIsHidden:it}=n,[Y,C]=o.useState(null),[lt,J]=o.useState(null),[W,H]=o.useState(!1),[A,mt]=o.useState(!1),[L,z]=o.useState(!1),[ct,d]=o.useState(!1),[h,y]=o.useState(!1),[R,j]=o.useState(0),[p,_]=o.useState(0),O=o.useRef(t.duration||X||Wt),G=o.useRef(null),k=o.useRef(null),Vt=g===0,Ut=g+1<=w,N=t.type,V=t.dismissible!==!1,Kt=t.className||\"\",Xt=t.descriptionClassName||\"\",dt=o.useMemo(()=>S.findIndex(r=>r.toastId===t.id)||0,[S,t.id]),Jt=o.useMemo(()=>{var r;return(r=t.closeButton)!=null?r:et},[t.closeButton,et]),Tt=o.useMemo(()=>t.duration||X||Wt,[t.duration,X]),gt=o.useRef(0),U=o.useRef(0),St=o.useRef(0),K=o.useRef(null),[Gt,Qt]=st.split(\"-\"),Rt=o.useMemo(()=>S.reduce((r,m,c)=>c>=dt?r:r+m.height,0),[S,dt]),Et=Ft(),qt=t.invert||e,ht=N===\"loading\";U.current=o.useMemo(()=>dt*pt+Rt,[dt,Rt]),o.useEffect(()=>{O.current=Tt},[Tt]),o.useEffect(()=>{H(!0)},[]),o.useEffect(()=>{let r=k.current;if(r){let m=r.getBoundingClientRect().height;return _(m),f(c=>[{toastId:t.id,height:m,position:t.position},...c]),()=>f(c=>c.filter(b=>b.toastId!==t.id))}},[f,t.id]),o.useLayoutEffect(()=>{if(!W)return;let r=k.current,m=r.style.height;r.style.height=\"auto\";let c=r.getBoundingClientRect().height;r.style.height=m,_(c),f(b=>b.find(x=>x.toastId===t.id)?b.map(x=>x.toastId===t.id?{...x,height:c}:x):[{toastId:t.id,height:c,position:t.position},...b])},[W,t.title,t.description,f,t.id]);let $=o.useCallback(()=>{mt(!0),j(U.current),f(r=>r.filter(m=>m.toastId!==t.id)),setTimeout(()=>{T(t)},we)},[t,T,f,U]);o.useEffect(()=>{if(t.promise&&N===\"loading\"||t.duration===1/0||t.type===\"loading\")return;let r;return D||u||it&&Et?(()=>{if(St.current<gt.current){let b=new Date().getTime()-gt.current;O.current=O.current-b}St.current=new Date().getTime()})():(()=>{O.current!==1/0&&(gt.current=new Date().getTime(),r=setTimeout(()=>{var b;(b=t.onAutoClose)==null||b.call(t,t),$()},O.current))})(),()=>clearTimeout(r)},[D,u,t,N,it,Et,$]),o.useEffect(()=>{t.delete&&$()},[$,t.delete]);function Zt(){var r,m,c;return P!=null&&P.loading?o.createElement(\"div\",{className:M(s==null?void 0:s.loader,(r=t==null?void 0:t.classNames)==null?void 0:r.loader,\"sonner-loader\"),\"data-visible\":N===\"loading\"},P.loading):rt?o.createElement(\"div\",{className:M(s==null?void 0:s.loader,(m=t==null?void 0:t.classNames)==null?void 0:m.loader,\"sonner-loader\"),\"data-visible\":N===\"loading\"},rt):o.createElement(Yt,{className:M(s==null?void 0:s.loader,(c=t==null?void 0:t.classNames)==null?void 0:c.loader),visible:N===\"loading\"})}return o.createElement(\"li\",{tabIndex:0,ref:k,className:M(ot,Kt,s==null?void 0:s.toast,(Dt=t==null?void 0:t.classNames)==null?void 0:Dt.toast,s==null?void 0:s.default,s==null?void 0:s[N],(Pt=t==null?void 0:t.classNames)==null?void 0:Pt[N]),\"data-sonner-toast\":\"\",\"data-rich-colors\":(Nt=t.richColors)!=null?Nt:F,\"data-styled\":!(t.jsx||t.unstyled||a),\"data-mounted\":W,\"data-promise\":!!t.promise,\"data-swiped\":h,\"data-removed\":A,\"data-visible\":Ut,\"data-y-position\":Gt,\"data-x-position\":Qt,\"data-index\":g,\"data-front\":Vt,\"data-swiping\":L,\"data-dismissible\":V,\"data-type\":N,\"data-invert\":qt,\"data-swipe-out\":ct,\"data-swipe-direction\":lt,\"data-expanded\":!!(D||B&&W),style:{\"--index\":g,\"--toasts-before\":g,\"--z-index\":i.length-g,\"--offset\":`${A?R:U.current}px`,\"--initial-height\":B?\"auto\":`${p}px`,...ut,...t.style},onDragEnd:()=>{z(!1),C(null),K.current=null},onPointerDown:r=>{ht||!V||(G.current=new Date,j(U.current),r.target.setPointerCapture(r.pointerId),r.target.tagName!==\"BUTTON\"&&(z(!0),K.current={x:r.clientX,y:r.clientY}))},onPointerUp:()=>{var x,Q,q,Z;if(ct||!V)return;K.current=null;let r=Number(((x=k.current)==null?void 0:x.style.getPropertyValue(\"--swipe-amount-x\").replace(\"px\",\"\"))||0),m=Number(((Q=k.current)==null?void 0:Q.style.getPropertyValue(\"--swipe-amount-y\").replace(\"px\",\"\"))||0),c=new Date().getTime()-((q=G.current)==null?void 0:q.getTime()),b=Y===\"x\"?r:m,I=Math.abs(b)/c;if(Math.abs(b)>=ye||I>.11){j(U.current),(Z=t.onDismiss)==null||Z.call(t,t),J(Y===\"x\"?r>0?\"right\":\"left\":m>0?\"down\":\"up\"),$(),d(!0),y(!1);return}z(!1),C(null)},onPointerMove:r=>{var Q,q,Z,zt;if(!K.current||!V||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;let c=r.clientY-K.current.y,b=r.clientX-K.current.x,I=(q=n.swipeDirections)!=null?q:xe(st);!Y&&(Math.abs(b)>1||Math.abs(c)>1)&&C(Math.abs(b)>Math.abs(c)?\"x\":\"y\");let x={x:0,y:0};Y===\"y\"?(I.includes(\"top\")||I.includes(\"bottom\"))&&(I.includes(\"top\")&&c<0||I.includes(\"bottom\")&&c>0)&&(x.y=c):Y===\"x\"&&(I.includes(\"left\")||I.includes(\"right\"))&&(I.includes(\"left\")&&b<0||I.includes(\"right\")&&b>0)&&(x.x=b),(Math.abs(x.x)>0||Math.abs(x.y)>0)&&y(!0),(Z=k.current)==null||Z.style.setProperty(\"--swipe-amount-x\",`${x.x}px`),(zt=k.current)==null||zt.style.setProperty(\"--swipe-amount-y\",`${x.y}px`)}},Jt&&!t.jsx?o.createElement(\"button\",{\"aria-label\":nt,\"data-disabled\":ht,\"data-close-button\":!0,onClick:ht||!V?()=>{}:()=>{var r;$(),(r=t.onDismiss)==null||r.call(t,t)},className:M(s==null?void 0:s.closeButton,(Bt=t==null?void 0:t.classNames)==null?void 0:Bt.closeButton)},(Ct=P==null?void 0:P.close)!=null?Ct:Ot):null,t.jsx||xt(t.title)?t.jsx?t.jsx:typeof t.title==\"function\"?t.title():t.title:o.createElement(o.Fragment,null,N||t.icon||t.promise?o.createElement(\"div\",{\"data-icon\":\"\",className:M(s==null?void 0:s.icon,(kt=t==null?void 0:t.classNames)==null?void 0:kt.icon)},t.promise||t.type===\"loading\"&&!t.icon?t.icon||Zt():null,t.type!==\"loading\"?t.icon||(P==null?void 0:P[N])||jt(N):null):null,o.createElement(\"div\",{\"data-content\":\"\",className:M(s==null?void 0:s.content,(It=t==null?void 0:t.classNames)==null?void 0:It.content)},o.createElement(\"div\",{\"data-title\":\"\",className:M(s==null?void 0:s.title,(Mt=t==null?void 0:t.classNames)==null?void 0:Mt.title)},typeof t.title==\"function\"?t.title():t.title),t.description?o.createElement(\"div\",{\"data-description\":\"\",className:M(at,Xt,s==null?void 0:s.description,(Ht=t==null?void 0:t.classNames)==null?void 0:Ht.description)},typeof t.description==\"function\"?t.description():t.description):null),xt(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?o.createElement(\"button\",{\"data-button\":!0,\"data-cancel\":!0,style:t.cancelButtonStyle||ft,onClick:r=>{var m,c;tt(t.cancel)&&V&&((c=(m=t.cancel).onClick)==null||c.call(m,r),$())},className:M(s==null?void 0:s.cancelButton,(At=t==null?void 0:t.classNames)==null?void 0:At.cancelButton)},t.cancel.label):null,xt(t.action)?t.action:t.action&&tt(t.action)?o.createElement(\"button\",{\"data-button\":!0,\"data-action\":!0,style:t.actionButtonStyle||l,onClick:r=>{var m,c;tt(t.action)&&((c=(m=t.action).onClick)==null||c.call(m,r),!r.defaultPrevented&&$())},className:M(s==null?void 0:s.actionButton,(Lt=t==null?void 0:t.classNames)==null?void 0:Lt.actionButton)},t.action.label):null))};function _t(){if(typeof window==\"undefined\"||typeof document==\"undefined\")return\"ltr\";let n=document.documentElement.getAttribute(\"dir\");return n===\"auto\"||!n?window.getComputedStyle(document.documentElement).direction:n}function Te(n,e){let t={};return[n,e].forEach((a,u)=>{let f=u===1,w=f?\"--mobile-offset\":\"--offset\",S=f?ge:me;function g(i){[\"top\",\"right\",\"bottom\",\"left\"].forEach(D=>{t[`${w}-${D}`]=typeof i==\"number\"?`${i}px`:i})}typeof a==\"number\"||typeof a==\"string\"?g(a):typeof a==\"object\"?[\"top\",\"right\",\"bottom\",\"left\"].forEach(i=>{a[i]===void 0?t[`${w}-${i}`]=S:t[`${w}-${i}`]=typeof a[i]==\"number\"?`${a[i]}px`:a[i]}):g(S)}),t}function Oe(){let[n,e]=o.useState([]);return o.useEffect(()=>v.subscribe(t=>{if(t.dismiss){setTimeout(()=>{vt.flushSync(()=>{e(a=>a.filter(u=>u.id!==t.id))})});return}setTimeout(()=>{vt.flushSync(()=>{e(a=>{let u=a.findIndex(f=>f.id===t.id);return u!==-1?[...a.slice(0,u),{...a[u],...t},...a.slice(u+1)]:[t,...a]})})})}),[]),{toasts:n}}var $e=fe(function(e,t){let{invert:a,position:u=\"bottom-right\",hotkey:f=[\"altKey\",\"KeyT\"],expand:w,closeButton:S,className:g,offset:i,mobileOffset:D,theme:T=\"light\",richColors:F,duration:et,style:ut,visibleToasts:ft=pe,toastOptions:l,dir:ot=_t(),gap:at=be,loadingIcon:X,icons:st,containerAriaLabel:pt=\"Notifications\",pauseWhenPageIsHidden:rt}=e,[B,s]=o.useState([]),P=o.useMemo(()=>Array.from(new Set([u].concat(B.filter(d=>d.position).map(d=>d.position)))),[B,u]),[nt,it]=o.useState([]),[Y,C]=o.useState(!1),[lt,J]=o.useState(!1),[W,H]=o.useState(T!==\"system\"?T:typeof window!=\"undefined\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"),A=o.useRef(null),mt=f.join(\"+\").replace(/Key/g,\"\").replace(/Digit/g,\"\"),L=o.useRef(null),z=o.useRef(!1),ct=o.useCallback(d=>{s(h=>{var y;return(y=h.find(R=>R.id===d.id))!=null&&y.delete||v.dismiss(d.id),h.filter(({id:R})=>R!==d.id)})},[]);return o.useEffect(()=>v.subscribe(d=>{if(d.dismiss){s(h=>h.map(y=>y.id===d.id?{...y,delete:!0}:y));return}setTimeout(()=>{vt.flushSync(()=>{s(h=>{let y=h.findIndex(R=>R.id===d.id);return y!==-1?[...h.slice(0,y),{...h[y],...d},...h.slice(y+1)]:[d,...h]})})})}),[]),o.useEffect(()=>{if(T!==\"system\"){H(T);return}if(T===\"system\"&&(window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?H(\"dark\"):H(\"light\")),typeof window==\"undefined\")return;let d=window.matchMedia(\"(prefers-color-scheme: dark)\");try{d.addEventListener(\"change\",({matches:h})=>{H(h?\"dark\":\"light\")})}catch(h){d.addListener(({matches:y})=>{try{H(y?\"dark\":\"light\")}catch(R){console.error(R)}})}},[T]),o.useEffect(()=>{B.length<=1&&C(!1)},[B]),o.useEffect(()=>{let d=h=>{var R,j;f.every(p=>h[p]||h.code===p)&&(C(!0),(R=A.current)==null||R.focus()),h.code===\"Escape\"&&(document.activeElement===A.current||(j=A.current)!=null&&j.contains(document.activeElement))&&C(!1)};return document.addEventListener(\"keydown\",d),()=>document.removeEventListener(\"keydown\",d)},[f]),o.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,z.current=!1)}},[A.current]),o.createElement(\"section\",{ref:t,\"aria-label\":`${pt} ${mt}`,tabIndex:-1,\"aria-live\":\"polite\",\"aria-relevant\":\"additions text\",\"aria-atomic\":\"false\",suppressHydrationWarning:!0},P.map((d,h)=>{var j;let[y,R]=d.split(\"-\");return B.length?o.createElement(\"ol\",{key:d,dir:ot===\"auto\"?_t():ot,tabIndex:-1,ref:A,className:g,\"data-sonner-toaster\":!0,\"data-theme\":W,\"data-y-position\":y,\"data-lifted\":Y&&B.length>1&&!w,\"data-x-position\":R,style:{\"--front-toast-height\":`${((j=nt[0])==null?void 0:j.height)||0}px`,\"--width\":`${he}px`,\"--gap\":`${at}px`,...ut,...Te(i,D)},onBlur:p=>{z.current&&!p.currentTarget.contains(p.relatedTarget)&&(z.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible===\"false\"||z.current||(z.current=!0,L.current=p.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{lt||C(!1)},onDragEnd:()=>C(!1),onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible===\"false\"||J(!0)},onPointerUp:()=>J(!1)},B.filter(p=>!p.position&&h===0||p.position===d).map((p,_)=>{var O,G;return o.createElement(ve,{key:p.id,icons:st,index:_,toast:p,defaultRichColors:F,duration:(O=l==null?void 0:l.duration)!=null?O:et,className:l==null?void 0:l.className,descriptionClassName:l==null?void 0:l.descriptionClassName,invert:a,visibleToasts:ft,closeButton:(G=l==null?void 0:l.closeButton)!=null?G:S,interacting:lt,position:d,style:l==null?void 0:l.style,unstyled:l==null?void 0:l.unstyled,classNames:l==null?void 0:l.classNames,cancelButtonStyle:l==null?void 0:l.cancelButtonStyle,actionButtonStyle:l==null?void 0:l.actionButtonStyle,removeToast:ct,toasts:B.filter(k=>k.position==p.position),heights:nt.filter(k=>k.position==p.position),setHeights:it,expandByDefault:w,gap:at,loadingIcon:X,expanded:Y,pauseWhenPageIsHidden:rt,swipeDirections:e.swipeDirections})})):null}))});export{$e as Toaster,ue as toast,Oe as useSonner};\n//# sourceMappingURL=index.mjs.map","import { createContext, useContext } from \"react\";\nimport { ToastProps } from \"../ToastView\";\n\ntype ToastContextType = ToastProps & {\n\tid?: number | string;\n};\n\nexport const ToastContext = createContext<ToastContextType | null>(null);\n\nexport const ToastProvider: React.FC<{\n\tchildren: React.ReactNode;\n\tvalue: ToastContextType;\n}> = ({ children, value }) => {\n\treturn <ToastContext.Provider value={value}>{children}</ToastContext.Provider>;\n};\n\nexport const useToastContext = () => {\n\tconst context = useContext(ToastContext);\n\tif (!context) {\n\t\tthrow new Error(\"useToastContext must be used within a ToastProvider\");\n\t}\n\treturn context;\n};\n","import { ButtonProps } from \"@/components/button/button/Button\";\nimport { ToastProps } from \"../ToastView\";\n\ntype ActionType = \"primary\" | \"secondary\" | \"close\";\n\nconst getVariantByFocus = (toastFocus: ToastProps[\"focus\"]): ButtonProps[\"variant\"] => {\n\tconst variantByFocus: Record<NonNullable<ToastProps[\"focus\"]>, ButtonProps[\"variant\"]> = {\n\t\tlow: \"ghost\",\n\t\tmedium: \"secondary\",\n\t\thigh: \"primary\"\n\t};\n\treturn variantByFocus[toastFocus ?? \"low\"];\n};\n\nexport function getButtonProps(toastProps: ToastProps, actionType: ActionType): ButtonProps {\n\tconst { size: toastSize, focus: toastFocus, status: toastStatus } = toastProps;\n\tconst isHighFocusSmall = [\"medium\", \"high\"].includes(toastFocus ?? \"\") && toastSize === \"sm\";\n\n\tconst baseProps: ButtonProps = {\n\t\tstatus: isHighFocusSmall ? toastStatus : \"default\"\n\t};\n\n\tif (actionType === \"close\") {\n\t\treturn {\n\t\t\t...baseProps,\n\t\t\tsize: toastSize === \"lg\" ? \"xl\" : \"lg\",\n\t\t\tvariant: toastSize === \"sm\" ? getVariantByFocus(toastFocus) : \"text\"\n\t\t};\n\t}\n\n\tconst variantBySize: Record<NonNullable<ToastProps[\"size\"]>, ButtonProps[\"variant\"]> = {\n\t\tsm: getVariantByFocus(toastFocus),\n\t\tmd: \"link\",\n\t\tlg: actionType === \"primary\" ? (toastFocus === \"high\" ? \"secondary\" : \"outline\") : \"text\"\n\t};\n\n\treturn {\n\t\t...baseProps,\n\t\tsize: toastSize === \"lg\" ? \"md\" : \"lg\",\n\t\tvariant: variantBySize[toastSize ?? \"sm\"]\n\t};\n}\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { X } from \"lucide-react\";\nimport { getButtonProps } from \"../../utils/ToastUtils\";\nimport { IconButton } from \"@/components/button/icon-button/IconButton\";\n\nconst toastCloseButtonVariants = tv({\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: \"\",\n\t\t\tinfo: \"\",\n\t\t\tsuccess: \"\",\n\t\t\twarning: \"\",\n\t\t\terror: \"\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t},\n\t\tsize: {\n\t\t\tsm: \"h-[2.375rem] w-[2.375rem] rounded-l-none p-2.5\",\n\t\t\tmd: \"\",\n\t\t\tlg: \"p-3.5\"\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"medium\",\n\t\t\tclassName: \"text-primary-fg\"\n\t\t},\n\t\t{\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-status-neutral hover:bg-status-neutral-hover\"\n\t\t},\n\t\t{\n\t\t\tsize: [\"md\", \"lg\"],\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tsize: [\"md\", \"lg\"],\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t}\n\t]\n});\n\nexport const ToastCloseButton: React.FC<{ className?: string }> = ({ className }) => {\n\tconst toastProps = useToastContext();\n\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastCloseButton must be used within Toast\");\n\t}\n\tconst buttonProps = getButtonProps(toastProps, \"close\");\n\treturn (\n\t\t<IconButton\n\t\t\t{...buttonProps}\n\t\t\ticon={X}\n\t\t\tonClick={toastProps.onClose}\n\t\t\tclassName={toastCloseButtonVariants({\n\t\t\t\tsize: toastProps.size,\n\t\t\t\tfocus: toastProps.focus,\n\t\t\t\tstatus: toastProps.status,\n\t\t\t\tclassName\n\t\t\t})}\n\t\t/>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\nimport { Text } from \"@/components/text\";\nimport { cn } from \"@/lib/utils\";\n\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex w-full flex-col gap-4\",\n\t\ttopZone: \"flex gap-3\",\n\t\ttextWrapper: \"flex flex-grow flex-col gap-1\",\n\t\tactionsWrapper: \"flex w-full justify-end gap-2\"\n\t}\n});\n\nexport const LargeToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close, descriptionText } = styleProps;\n\tconst { contentWrapper, topZone, textWrapper, actionsWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t<div className={topZone()}>\n\t\t\t\t\t{titleIcon}\n\t\t\t\t\t<div className={textWrapper()}>\n\t\t\t\t\t\t<span className={titleText()}>{context.title}</span>\n\t\t\t\t\t\t{context.description && <Text className={descriptionText()}>{context.description}</Text>}\n\t\t\t\t\t</div>\n\t\t\t\t\t{context.closeAction && <ToastCloseButton className={cn(\"shrink-0\", close())} />}\n\t\t\t\t</div>\n\t\t\t\t{context.secondaryAction || context.primaryAction ? (\n\t\t\t\t\t<div className={actionsWrapper()}>\n\t\t\t\t\t\t{context.secondaryAction}\n\t\t\t\t\t\t{context.primaryAction}\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</div>\n\t\t</>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\n\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex flex-grow gap-3 py-2.5 pr-2.5\"\n\t}\n});\n\nexport const MediumToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close } = styleProps;\n\tconst { contentWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t{titleIcon}\n\t\t\t\t<span className={titleText()}>{context.title}</span>\n\t\t\t</div>\n\t\t\t{context.primaryAction && context.primaryAction}\n\t\t\t{context.closeAction && <ToastCloseButton className={close()} />}\n\t\t</>\n\t);\n};\n","import { useToastContext } from \"../../hooks/useToastContext\";\nimport { ToastViewProps } from \"../../ToastView\";\nimport { ToastCloseButton } from \"../toast-close-action/ToastCloseButton\";\nimport { tv } from \"tailwind-variants\";\nimport { twMerge } from \"tailwind-merge\";\nconst toastStyles = tv({\n\tslots: {\n\t\tcontentWrapper: \"flex min-w-0 flex-grow items-center gap-2 pr-3\",\n\t\ttitleWrapper: \"min-w-0 truncate\"\n\t}\n});\n\nexport const SmallToast: React.FC<ToastViewProps> = ({ titleIcon, ...styleProps }) => {\n\tconst { titleText, close, divider } = styleProps;\n\tconst { contentWrapper, titleWrapper } = toastStyles();\n\tconst context = useToastContext();\n\treturn (\n\t\t<>\n\t\t\t<div className={contentWrapper()}>\n\t\t\t\t{titleIcon}\n\t\t\t\t<div className={twMerge(titleWrapper(), titleText())}>\n\t\t\t\t\t<span>{context.title}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{context.primaryAction && (\n\t\t\t\t<>\n\t\t\t\t\t<div className={divider()} />\n\t\t\t\t\t{context.primaryAction}\n\t\t\t\t</>\n\t\t\t)}\n\t\t\t{context.closeAction && (\n\t\t\t\t<>\n\t\t\t\t\t<div className={divider()} />\n\t\t\t\t\t<ToastCloseButton className={close()} />\n\t\t\t\t</>\n\t\t\t)}\n\t\t</>\n\t);\n};\n","import React from \"react\";\nimport { CircleAlert, Info, CircleCheckBig, TriangleAlert, LucideIcon } from \"lucide-react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { Icon } from \"@/components/icon/Icon\";\n\nconst titleIconStyles = tv({\n\tslots: {\n\t\twrapper: \"flex h-5 w-5 items-center justify-center\",\n\t\ticon: \"h-4 w-4 [&>svg]:h-4 [&>svg]:w-4\"\n\t},\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: { wrapper: \"text-status-neutral\" },\n\t\t\tinfo: { wrapper: \"text-status-info\" },\n\t\t\tsuccess: { wrapper: \"text-status-success\" },\n\t\t\twarning: { wrapper: \"text-status-warning\" },\n\t\t\terror: { wrapper: \"text-status-error\" }\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: { wrapper: \"text-secondary-bg\" }\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tfocus: \"high\",\n\t\t\tclass: { wrapper: \"text-white\" }\n\t\t}\n\t]\n});\n\nexport type ToastIconProps = {\n\ticon?: React.ReactNode;\n};\n\nexport const ToastIcon: React.FC<ToastIconProps> = ({ icon }) => {\n\tconst toastProps = useToastContext();\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastIcon must be used within Toast\");\n\t}\n\n\tconst { wrapper, icon: iconClass } = titleIconStyles({ focus: toastProps.focus, status: toastProps.status });\n\tconst DefaultIcon = defaultTitleIcons[toastProps.status ?? \"default\"];\n\n\tconst renderIcon = () => {\n\t\tif (icon) {\n\t\t\treturn <div className={iconClass()}>{icon}</div>;\n\t\t}\n\t\treturn <Icon icon={DefaultIcon} className={iconClass()} />;\n\t};\n\n\treturn <div className={wrapper()}>{renderIcon()}</div>;\n};\n\nconst defaultTitleIcons: Record<string, LucideIcon> = {\n\tdefault: CircleAlert,\n\tinfo: Info,\n\tsuccess: CircleCheckBig,\n\twarning: TriangleAlert,\n\terror: CircleAlert\n};\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { LargeToast } from \"./components/large-toast/LargeToast\";\nimport { MediumToast } from \"./components/medium-toast/MediumToast\";\nimport { SmallToast } from \"./components/small-toast/SmallToast\";\nimport { ToastAction } from \"./components/toast-action/ToastAction\";\nimport { ToastIcon } from \"./components/toast-icon/ToastIcon\";\nimport { ToastProvider } from \"./hooks/useToastContext\";\nimport { VariantsConfig } from \"@/lib/utils/variants\";\n\nexport interface ToastVariants {\n\tstatus?: \"default\" | \"info\" | \"success\" | \"warning\" | \"error\";\n\tfocus?: \"low\" | \"medium\" | \"high\";\n\tsize?: \"sm\" | \"md\" | \"lg\";\n}\n\nconst toastStyles = tv({\n\tslots: {\n\t\t/**\n\t\t * Ширина уведомления задается в переменной --width.\n\t\t * Библиотека sonner не поддерживает динамические ширины и использует эту переменную для вычисления позиции уведомления.\n\t\t */\n\t\twrapper: \"inline-flex w-[--width] items-start rounded-lg border border-solid border-primary-border\",\n\t\ttext: \"flex min-w-0 flex-auto flex-col justify-center gap-1 truncate pr-3\",\n\t\ttitleText: \"min-w-0 text-sm font-semibold text-primary-fg\",\n\t\tdescriptionText: \"inline-block font-medium\",\n\t\tcontentWrapper: \"flex items-center\",\n\t\tcontent: \"flex\",\n\t\tactions: \"flex items-center justify-center gap-2\",\n\t\tclose: \"\",\n\t\tdivider: \"shrink-0 self-stretch border-l border-primary-border\"\n\t},\n\tvariants: {\n\t\tstatus: {\n\t\t\tdefault: {\n\t\t\t\twrapper: \"\"\n\t\t\t},\n\t\t\tsuccess: {\n\t\t\t\twrapper: \"bg-status-success-bg\"\n\t\t\t},\n\t\t\tinfo: {\n\t\t\t\twrapper: \"bg-status-info-bg\"\n\t\t\t},\n\t\t\twarning: {\n\t\t\t\twrapper: \"bg-status-warning-bg\"\n\t\t\t},\n\t\t\terror: {\n\t\t\t\twrapper: \"bg-status-error-bg\"\n\t\t\t}\n\t\t},\n\t\tfocus: {\n\t\t\tlow: {\n\t\t\t\twrapper: \"bg-secondary-bg\"\n\t\t\t},\n\t\t\tmedium: {\n\t\t\t\twrapper: \"bg-status-neutral-bg\"\n\t\t\t},\n\t\t\thigh: {\n\t\t\t\ttitleText: \"text-white\",\n\t\t\t\tdescriptionText: \"text-white/70\",\n\t\t\t\tdivider: \"border-white\",\n\t\t\t\twrapper: \"border-none\"\n\t\t\t}\n\t\t},\n\t\tsize: {\n\t\t\tsm: {\n\t\t\t\twrapper: \"h-10 items-center pl-3 shadow-soft-sm\",\n\t\t\t\ttitleText: \"text-xs font-medium leading-5\",\n\t\t\t\tcontentWrapper: \"gap-2\"\n\t\t\t},\n\t\t\tmd: {\n\t\t\t\twrapper: \"h-[3.25rem] items-center py-1.5 pl-4 pr-1.5 shadow-soft-md\",\n\t\t\t\ttitleText: \"font-medium\",\n\t\t\t\tcontentWrapper: \"gap-3\"\n\t\t\t},\n\t\t\tlg: {\n\t\t\t\twrapper: \"relative items-start p-4 shadow-soft-lg\",\n\t\t\t\tcontentWrapper: \"items-start gap-3\",\n\t\t\t\tcontent: \"flex flex-1 flex-col gap-4\",\n\t\t\t\tactions: \"justify-end self-stretch\",\n\t\t\t\tclose: \"mr-[-16px] mt-[-16px]\",\n\t\t\t\ttitleText: \"text-wrap\",\n\t\t\t\tdescriptionText: \"font-normal\"\n\t\t\t}\n\t\t}\n\t} satisfies VariantsConfig<ToastVariants>,\n\tdefaultVariants: {\n\t\tstatus: \"default\",\n\t\tfocus: \"medium\",\n\t\tsize: \"sm\"\n\t},\n\tcompoundVariants: [\n\t\t// Medium focus\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-info-secondary-border\",\n\t\t\t\twrapper: \"border-status-info-secondary-border bg-status-info-bg\",\n\t\t\t\ttitleText: \"text-status-info\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-success-secondary-border\",\n\t\t\t\twrapper: \"border-status-success-secondary-border bg-status-success-bg\",\n\t\t\t\ttitleText: \"text-status-success\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-warning-secondary-border\",\n\t\t\t\twrapper: \"border-status-warning-secondary-border bg-status-warning-bg\",\n\t\t\t\ttitleText: \"text-status-warning\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tfocus: \"medium\",\n\t\t\tclass: {\n\t\t\t\tdivider: \"border-status-error-secondary-border\",\n\t\t\t\twrapper: \"border-status-error-secondary-border bg-status-error-bg\",\n\t\t\t\ttitleText: \"text-status-error\"\n\t\t\t}\n\t\t},\n\t\t// High focus\n\t\t{\n\t\t\tstatus: \"default\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-primary\",\n\t\t\t\ttitleText: \"text-primary-bg\",\n\t\t\t\tdescriptionText: \"text-primary-bg/70\",\n\t\t\t\tdivider: \"border-primary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"info\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-info\",\n\t\t\t\tdivider: \"border-status-info-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"success\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-success\",\n\t\t\t\tdivider: \"border-status-success-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"warning\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-warning\",\n\t\t\t\tdivider: \"border-status-warning-secondary-border\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tstatus: \"error\",\n\t\t\tfocus: \"high\",\n\t\t\tclass: {\n\t\t\t\twrapper: \"bg-status-error\",\n\t\t\t\tdivider: \"border-status-error-secondary-border\"\n\t\t\t}\n\t\t}\n\t]\n});\n\nexport type ToastProps = ToastVariants & {\n\ttitle: React.ReactNode;\n\tdescription?: React.ReactNode;\n\ticon?: React.ReactNode;\n\tprimaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;\n\tsecondaryAction?: React.ReactElement<React.ComponentProps<typeof ToastAction>>;\n\tcloseAction?: boolean;\n\tonClose?: () => void;\n};\n\nexport type ToastSize = \"sm\" | \"md\" | \"lg\";\n\nexport const Toast = React.forwardRef<HTMLDivElement, ToastProps & { id?: number | string }>(\n\t({ closeAction = true, id, onClose, ...props }, ref) => {\n\t\tconst { wrapper, titleText, descriptionText, actions, close, divider } = toastStyles({\n\t\t\tstatus: props.status,\n\t\t\tfocus: props.focus,\n\t\t\tsize: props.size\n\t\t});\n\n\t\tconst titleIcon = props.icon ? <ToastIcon icon={props.icon} /> : null;\n\n\t\tconst contextValue = {\n\t\t\tid,\n\t\t\tstatus: props.status,\n\t\t\tfocus: props.focus,\n\t\t\tsize: props.size,\n\t\t\ttitle: props.title,\n\t\t\tdescription: props.description,\n\t\t\ticon: props.icon,\n\t\t\tprimaryAction: props.primaryAction,\n\t\t\tsecondaryAction: props.secondaryAction,\n\t\t\tcloseAction,\n\t\t\tonClose\n\t\t};\n\n\t\tconst toastViewProps = {\n\t\t\ttitleText,\n\t\t\tdescriptionText,\n\t\t\tactions,\n\t\t\tclose,\n\t\t\tdivider,\n\t\t\ttitleIcon\n\t\t};\n\n\t\tlet toastView = null;\n\t\tconst size = props.size || \"md\";\n\t\tif (size === \"sm\") {\n\t\t\ttoastView = <SmallToast {...toastViewProps} />;\n\t\t} else if (size === \"md\") {\n\t\t\ttoastView = <MediumToast {...toastViewProps} />;\n\t\t} else if (size === \"lg\") {\n\t\t\ttoastView = <LargeToast {...toastViewProps} />;\n\t\t}\n\n\t\treturn (\n\t\t\t<ToastProvider value={contextValue}>\n\t\t\t\t<div ref={ref} className={wrapper()}>\n\t\t\t\t\t{toastView}\n\t\t\t\t</div>\n\t\t\t</ToastProvider>\n\t\t);\n\t}\n);\n\nToast.displayName = \"Toast\";\n\nexport default Toast;\n\nexport interface ToastViewProps {\n\ttitleText: () => string;\n\tdescriptionText: () => string;\n\tactions: () => string;\n\tclose: () => string;\n\tdivider: () => string;\n\ttitleIcon: JSX.Element | null;\n}\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useToastContext } from \"../../hooks/useToastContext\";\nimport { getButtonProps } from \"../../utils/ToastUtils\";\nimport { Button } from \"@/components/button/button/Button\";\n\nconst toastActionVariants = tv({\n\tvariants: {\n\t\tactionType: {\n\t\t\tprimary: \"\",\n\t\t\t/*\n\t\t\t * Доступен только для toast размером sm и md\n\t\t\t */\n\t\t\tsecondary: \"\"\n\t\t},\n\t\tstatus: {\n\t\t\tdefault: \"\",\n\t\t\tinfo: \"\",\n\t\t\tsuccess: \"\",\n\t\t\twarning: \"\",\n\t\t\terror: \"\"\n\t\t},\n\t\tfocus: {\n\t\t\tlow: \"\",\n\t\t\tmedium: \"\",\n\t\t\thigh: \"\"\n\t\t},\n\t\tsize: {\n\t\t\tsm: \"h-full rounded-none px-3 py-3 text-xs font-semibold leading-none focus-visible:z-10\",\n\t\t\tmd: \"px-3 py-2 text-sm\",\n\t\t\tlg: \"\"\n\t\t}\n\t},\n\tdefaultVariants: {\n\t\tactionType: \"primary\"\n\t},\n\tcompoundVariants: [\n\t\t// Small size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"medium\",\n\t\t\tclassName: \"text-primary-fg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tstatus: \"default\",\n\t\t\tsize: \"sm\",\n\t\t\tfocus: \"high\",\n\t\t\tclassName: \"bg-status-neutral hover:bg-status-neutral-hover\"\n\t\t},\n\t\t// Medium size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"md\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"md\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t},\n\t\t// Large size\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tclassName: \"px-4 py-2\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"low\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-secondary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"medium\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"bg-status-neutral\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tclassName: \"p-2\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"primary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"bg-white/70 text-black hover:bg-white\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: \"default\",\n\t\t\tclassName: \"text-primary-bg/70 hover:text-primary-bg\"\n\t\t},\n\t\t{\n\t\t\tactionType: \"secondary\",\n\t\t\tsize: \"lg\",\n\t\t\tfocus: \"high\",\n\t\t\tstatus: [\"info\", \"success\", \"warning\", \"error\"],\n\t\t\tclassName: \"text-white/70 hover:text-white\"\n\t\t}\n\t]\n});\n\nexport type ToastActionProps = React.PropsWithChildren<{\n\tonClick?: () => void;\n\tclassName?: string;\n}>;\n\nexport const ToastAction: React.FC<ToastActionProps> = ({ children, onClick, className }) => {\n\tconst toastProps = useToastContext();\n\n\tif (!toastProps) {\n\t\tthrow new Error(\"ToastAction must be used within Toast\");\n\t}\n\n\tconst actionType = toastProps.primaryAction?.props.children === children ? \"primary\" : \"secondary\";\n\tif (actionType === \"secondary\" && [\"sm\", \"md\"].includes(toastProps.size ?? \"\")) return null;\n\tconst buttonProps = getButtonProps(toastProps, actionType);\n\n\tif (actionType === \"primary\" && toastProps.size === \"lg\" && toastProps.focus === \"medium\") {\n\t\tbuttonProps.status = toastProps.status;\n\t\tbuttonProps.variant = \"primary\";\n\t}\n\n\treturn (\n\t\t<Button\n\t\t\tonClick={onClick}\n\t\t\tclassName={toastActionVariants({\n\t\t\t\tactionType,\n\t\t\t\tsize: toastProps.size,\n\t\t\t\tfocus: toastProps.focus,\n\t\t\t\tstatus: toastProps.status,\n\t\t\t\tclassName\n\t\t\t})}\n\t\t\t{...buttonProps}\n\t\t>\n\t\t\t{children}\n\t\t</Button>\n\t);\n};\n","/**\n * Название css класса обертки для компонентов.\n * Служит для изоляции стилей компонентов от глобальных стилей. Подробнее в документации по стилям.\n */\nexport const UI_KIT_CLASS_NAME = \"ui-kit\";\n","import { ExternalToast, Toaster as SonnerToaster, toast as sonnerToast } from \"sonner\";\nimport Toast, { ToastProps } from \"./ToastView\";\nimport { ToastAction } from \"./components/toast-action/ToastAction\";\nimport { UI_KIT_CLASS_NAME } from \"../../uiKitClassName\";\n\nexport const Toaster = SonnerToaster;\n\nexport type ToastOptions = Pick<ToastProps, \"description\" | \"icon\" | \"size\" | \"status\" | \"focus\" | \"closeAction\"> & {\n\t/** Вызывается при закрытии уведомления с помощью кнопки закрытия или с помощью свайпа */\n\tonDismiss?: () => void;\n\t/** Вызывается при закрытии уведомления при автоматическом закрытии через duration */\n\tonAutoClose?: () => void;\n\t/** Если false, пользователь не сможет закрыть уведомление */\n\tdismissible?: boolean;\n\t/** Время в ms, через которое уведомление будет закрыто */\n\tduration?: number;\n\t/** Позиция уведомления */\n\tposition?: \"top-center\" | \"top-right\" | \"top-left\" | \"bottom-center\" | \"bottom-right\" | \"bottom-left\";\n\t/** Основное действие */\n\tprimaryAction?: ToastActionData;\n\t/** Вспомогательное действие */\n\tsecondaryAction?: ToastActionData;\n\n\tid?: number | string;\n};\n\nexport type ToastActionData = {\n\ttitle?: string;\n\tonClick: () => void;\n\ticon?: React.ReactNode;\n};\n\nexport const toast = (message: React.ReactNode, options: ToastOptions = {}) => {\n\tconst data: ExternalToast = {\n\t\tonDismiss: options.onDismiss,\n\t\tonAutoClose: options.onAutoClose,\n\t\tduration: options.duration,\n\t\tdismissible: options.dismissible,\n\t\tposition: options.position\n\t};\n\tif (options.id != null) data.id = options.id;\n\treturn sonnerToast.custom((id) => {\n\t\treturn (\n\t\t\t<div className={UI_KIT_CLASS_NAME}>\n\t\t\t\t<Toast\n\t\t\t\t\ttitle={message}\n\t\t\t\t\t{...options}\n\t\t\t\t\tprimaryAction={\n\t\t\t\t\t\toptions.primaryAction ? (\n\t\t\t\t\t\t\t<ToastAction\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\toptions.primaryAction?.onClick();\n\t\t\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{options.primaryAction.title}\n\t\t\t\t\t\t\t\t{options.primaryAction.icon}\n\t\t\t\t\t\t\t</ToastAction>\n\t\t\t\t\t\t) : undefined\n\t\t\t\t\t}\n\t\t\t\t\tsecondaryAction={\n\t\t\t\t\t\toptions.secondaryAction ? (\n\t\t\t\t\t\t\t<ToastAction\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\toptions.secondaryAction?.onClick();\n\t\t\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{options.secondaryAction.title}\n\t\t\t\t\t\t\t\t{options.secondaryAction.icon}\n\t\t\t\t\t\t\t</ToastAction>\n\t\t\t\t\t\t) : undefined\n\t\t\t\t\t}\n\t\t\t\t\tonClose={() => {\n\t\t\t\t\t\tif (options.dismissible !== false) {\n\t\t\t\t\t\t\tsonnerToast.dismiss(id);\n\t\t\t\t\t\t\toptions.onDismiss?.();\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}, data);\n};\n\nexport const dismiss = sonnerToast.dismiss;\n\nexport type CustomToastProps = {\n\tid: number | string;\n\ttoast: typeof sonnerToast;\n};\n\nexport type CustomToastOptions = ExternalToast;\n\nexport const customToast = (jsx: (props: CustomToastProps) => React.ReactElement, options: CustomToastOptions = {}) => {\n\treturn sonnerToast.custom((id) => jsx({ id, toast: sonnerToast }), options);\n};\n"],"names":["CircleCheckBig","createLucideIcon","Info","TriangleAlert","jt","n","ee","ae","oe","se","te","Yt","e","E","t","a","Ot","Ft","$t","bt","yt","S","u","f","g","w","i","re","ie","T","F","D","v","ne","le","ce","de","ue","wt","tt","pe","me","ge","Wt","he","be","ye","we","M","xe","ve","Dt","Pt","Nt","Bt","Ct","kt","It","Mt","Ht","At","Lt","et","ut","ft","l","ot","at","st","pt","rt","B","s","P","nt","it","Y","C","o","lt","J","W","H","A","mt","L","z","ct","d","h","y","R","j","p","_","O","G","k","Vt","Ut","N","V","Kt","Xt","dt","r","Jt","Tt","gt","U","St","K","Gt","Qt","m","c","Et","qt","ht","b","x","Zt","Q","q","Z","I","zt","xt","_t","Te","$e","fe","X","vt","ToastContext","createContext","ToastProvider","children","value","jsx","useToastContext","context","useContext","getVariantByFocus","toastFocus","getButtonProps","toastProps","actionType","toastSize","toastStatus","baseProps","variantBySize","toastCloseButtonVariants","tv","ToastCloseButton","className","buttonProps","IconButton","toastStyles","LargeToast","titleIcon","styleProps","titleText","close","descriptionText","contentWrapper","topZone","textWrapper","actionsWrapper","Fragment","jsxs","Text","cn","MediumToast","SmallToast","divider","titleWrapper","twMerge","titleIconStyles","ToastIcon","icon","wrapper","iconClass","DefaultIcon","defaultTitleIcons","renderIcon","Icon","CircleAlert","Toast","React","closeAction","id","onClose","props","ref","actions","contextValue","toastViewProps","toastView","size","toastActionVariants","ToastAction","onClick","Button","UI_KIT_CLASS_NAME","Toaster","SonnerToaster","toast","message","options","data","sonnerToast","dismiss","customToast"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAiBC,GAAiB,kBAAkB;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,mCAAmC,KAAK,SAAQ,CAAE;AAAA,EAChE,CAAC,QAAQ,EAAE,GAAG,kBAAkB,KAAK,SAAU,CAAA;AACjD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