vue-toastflow 1.0.5 → 1.0.7

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.
@@ -1,103 +1,103 @@
1
- import { createToastStore as ht } from "toastflow-core";
1
+ import { createToastStore as xe } from "toastflow-core";
2
2
  export * from "toastflow-core";
3
- import { defineComponent as nt, createElementBlock as d, openBlock as u, createElementVNode as m, normalizeClass as S, inject as lt, computed as p, ref as A, watch as _, unref as i, createCommentVNode as I, renderSlot as H, createBlock as et, resolveDynamicComponent as gt, toDisplayString as tt, normalizeStyle as j, withModifiers as yt, createVNode as ct, onMounted as bt, onUnmounted as wt, Fragment as rt, renderList as it, TransitionGroup as Ct, withCtx as At } from "vue";
4
- const ot = Symbol.for(
3
+ import { defineComponent as se, createElementBlock as f, openBlock as d, createElementVNode as m, normalizeClass as S, toRefs as $e, inject as me, computed as v, ref as k, watch as W, unref as e, createCommentVNode as j, renderSlot as K, createBlock as oe, resolveDynamicComponent as Me, toDisplayString as ne, normalizeStyle as D, withModifiers as Te, createVNode as he, onMounted as Se, onUnmounted as He, Fragment as pe, renderList as ve, TransitionGroup as Be, withCtx as Ke } from "vue";
4
+ const re = Symbol.for(
5
5
  "vue-toastflow.toast-store"
6
- ), ut = "__vue_toastflow_store__";
7
- let O = null;
8
- function kt(t) {
9
- O = t;
6
+ ), ge = "__vue_toastflow_store__";
7
+ let R = null;
8
+ function We(o) {
9
+ R = o;
10
10
  try {
11
- globalThis[ut] = t;
11
+ globalThis[ge] = o;
12
12
  } catch {
13
13
  }
14
14
  }
15
- function f() {
16
- if (O || (O = globalThis[ut] ?? null), !O)
15
+ function p() {
16
+ if (R || (R = globalThis[ge] ?? null), !R)
17
17
  throw new Error(
18
18
  "[vue-toastflow] Toast store not initialized. Did you install the plugin?"
19
19
  );
20
- return O;
20
+ return R;
21
21
  }
22
- const be = {
22
+ const St = {
23
23
  getState() {
24
- return f().getState();
24
+ return p().getState();
25
25
  },
26
- subscribeEvents(t) {
27
- return f().subscribeEvents(t);
26
+ subscribeEvents(o) {
27
+ return p().subscribeEvents(o);
28
28
  },
29
- show(t) {
30
- return f().show(t);
29
+ show(o) {
30
+ return p().show(o);
31
31
  },
32
- loading(t, s) {
33
- return f().loading(t, s);
32
+ loading(o, i) {
33
+ return p().loading(o, i);
34
34
  },
35
- update(t, s) {
36
- return f().update(t, s);
35
+ update(o, i) {
36
+ return p().update(o, i);
37
37
  },
38
- dismiss(t) {
39
- return f().dismiss(t);
38
+ dismiss(o) {
39
+ return p().dismiss(o);
40
40
  },
41
41
  dismissAll() {
42
- return f().dismissAll();
42
+ return p().dismissAll();
43
43
  },
44
- pause(t) {
45
- return f().pause(t);
44
+ pause(o) {
45
+ return p().pause(o);
46
46
  },
47
- resume(t) {
48
- return f().resume(t);
47
+ resume(o) {
48
+ return p().resume(o);
49
49
  },
50
50
  getConfig() {
51
- return f().getConfig();
51
+ return p().getConfig();
52
52
  },
53
- toast(t) {
54
- return f().show({ ...t, type: "default" });
53
+ toast(o) {
54
+ return p().show({ ...o, type: "default" });
55
55
  },
56
- success(t) {
57
- return f().show({ ...t, type: "success" });
56
+ success(o) {
57
+ return p().show({ ...o, type: "success" });
58
58
  },
59
- error(t) {
60
- return f().show({ ...t, type: "error" });
59
+ error(o) {
60
+ return p().show({ ...o, type: "error" });
61
61
  },
62
- info(t) {
63
- return f().show({ ...t, type: "info" });
62
+ info(o) {
63
+ return p().show({ ...o, type: "info" });
64
64
  },
65
- warning(t) {
66
- return f().show({ ...t, type: "warning" });
65
+ warning(o) {
66
+ return p().show({ ...o, type: "warning" });
67
67
  }
68
68
  };
69
- function we(t = {}) {
70
- const s = ht(t);
71
- return kt(s), {
72
- install(k) {
73
- k.provide(ot, s);
69
+ function Ht(o = {}) {
70
+ const i = xe(o);
71
+ return We(i), {
72
+ install(L) {
73
+ L.provide(re, i);
74
74
  }
75
75
  };
76
76
  }
77
- const Lt = { class: "tf-toast-progress" }, xt = /* @__PURE__ */ nt({
77
+ const Pe = { class: "tf-toast-progress" }, Ee = /* @__PURE__ */ se({
78
78
  __name: "ToastProgress",
79
79
  props: {
80
80
  type: {}
81
81
  },
82
- setup(t) {
83
- return (s, k) => (u(), d("div", Lt, [
82
+ setup(o) {
83
+ return (i, L) => (d(), f("div", Pe, [
84
84
  m("div", {
85
- class: S(["tf-toast-progress-bar", `tf-toast-progress-bar--${t.type}`])
85
+ class: S(["tf-toast-progress-bar", `tf-toast-progress-bar--${o.type}`])
86
86
  }, null, 2)
87
87
  ]));
88
88
  }
89
- }), b = (t, s) => {
90
- const k = t.__vccOpts || t;
91
- for (const [$, w] of s)
92
- k[$] = w;
93
- return k;
94
- }, $t = /* @__PURE__ */ b(xt, [["__scopeId", "data-v-ca0da064"]]), Mt = {}, St = {
89
+ }), b = (o, i) => {
90
+ const L = o.__vccOpts || o;
91
+ for (const [s, C] of i)
92
+ L[s] = C;
93
+ return L;
94
+ }, Ze = /* @__PURE__ */ b(Ee, [["__scopeId", "data-v-ca0da064"]]), Oe = {}, Ie = {
95
95
  xmlns: "http://www.w3.org/2000/svg",
96
96
  viewBox: "0 0 24 24",
97
97
  fill: "currentColor"
98
98
  };
99
- function Tt(t, s) {
100
- return u(), d("svg", St, [...s[0] || (s[0] = [
99
+ function je(o, i) {
100
+ return d(), f("svg", Ie, [...i[0] || (i[0] = [
101
101
  m("path", {
102
102
  "fill-rule": "evenodd",
103
103
  d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
@@ -105,13 +105,13 @@ function Tt(t, s) {
105
105
  }, null, -1)
106
106
  ])]);
107
107
  }
108
- const Bt = /* @__PURE__ */ b(Mt, [["render", Tt]]), Ht = {}, _t = {
108
+ const De = /* @__PURE__ */ b(Oe, [["render", je]]), Re = {}, Ue = {
109
109
  xmlns: "http://www.w3.org/2000/svg",
110
110
  viewBox: "0 0 24 24",
111
111
  fill: "currentColor"
112
112
  };
113
- function Kt(t, s) {
114
- return u(), d("svg", _t, [...s[0] || (s[0] = [
113
+ function Fe(o, i) {
114
+ return d(), f("svg", Ue, [...i[0] || (i[0] = [
115
115
  m("path", {
116
116
  "fill-rule": "evenodd",
117
117
  d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z",
@@ -119,13 +119,13 @@ function Kt(t, s) {
119
119
  }, null, -1)
120
120
  ])]);
121
121
  }
122
- const Wt = /* @__PURE__ */ b(Ht, [["render", Kt]]), Et = {}, Zt = {
122
+ const ze = /* @__PURE__ */ b(Re, [["render", Fe]]), Ne = {}, Ve = {
123
123
  xmlns: "http://www.w3.org/2000/svg",
124
124
  viewBox: "0 0 24 24",
125
125
  fill: "currentColor"
126
126
  };
127
- function It(t, s) {
128
- return u(), d("svg", Zt, [...s[0] || (s[0] = [
127
+ function Xe(o, i) {
128
+ return d(), f("svg", Ve, [...i[0] || (i[0] = [
129
129
  m("path", {
130
130
  "fill-rule": "evenodd",
131
131
  d: "M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 1 1-7.48 0 24.585 24.585 0 0 1-4.831-1.244.75.75 0 0 1-.298-1.205A8.217 8.217 0 0 0 5.25 9.75V9Zm4.502 8.9a2.25 2.25 0 1 0 4.496 0 25.057 25.057 0 0 1-4.496 0Z",
@@ -133,13 +133,13 @@ function It(t, s) {
133
133
  }, null, -1)
134
134
  ])]);
135
135
  }
136
- const jt = /* @__PURE__ */ b(Et, [["render", It]]), Ot = {}, Pt = {
136
+ const qe = /* @__PURE__ */ b(Ne, [["render", Xe]]), Ge = {}, Qe = {
137
137
  xmlns: "http://www.w3.org/2000/svg",
138
138
  viewBox: "0 0 24 24",
139
139
  fill: "currentColor"
140
140
  };
141
- function Ft(t, s) {
142
- return u(), d("svg", Pt, [...s[0] || (s[0] = [
141
+ function Ye(o, i) {
142
+ return d(), f("svg", Qe, [...i[0] || (i[0] = [
143
143
  m("path", {
144
144
  "fill-rule": "evenodd",
145
145
  d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
@@ -147,13 +147,13 @@ function Ft(t, s) {
147
147
  }, null, -1)
148
148
  ])]);
149
149
  }
150
- const zt = /* @__PURE__ */ b(Ot, [["render", Ft]]), Rt = {}, Dt = {
150
+ const Je = /* @__PURE__ */ b(Ge, [["render", Ye]]), et = {}, tt = {
151
151
  xmlns: "http://www.w3.org/2000/svg",
152
152
  viewBox: "0 0 24 24",
153
153
  fill: "currentColor"
154
154
  };
155
- function Ut(t, s) {
156
- return u(), d("svg", Dt, [...s[0] || (s[0] = [
155
+ function nt(o, i) {
156
+ return d(), f("svg", tt, [...i[0] || (i[0] = [
157
157
  m("path", {
158
158
  "fill-rule": "evenodd",
159
159
  d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
@@ -161,13 +161,13 @@ function Ut(t, s) {
161
161
  }, null, -1)
162
162
  ])]);
163
163
  }
164
- const Nt = /* @__PURE__ */ b(Rt, [["render", Ut]]), Vt = {}, Xt = {
164
+ const ot = /* @__PURE__ */ b(et, [["render", nt]]), st = {}, rt = {
165
165
  xmlns: "http://www.w3.org/2000/svg",
166
166
  viewBox: "0 0 24 24",
167
167
  fill: "currentColor"
168
168
  };
169
- function qt(t, s) {
170
- return u(), d("svg", Xt, [...s[0] || (s[0] = [
169
+ function at(o, i) {
170
+ return d(), f("svg", rt, [...i[0] || (i[0] = [
171
171
  m("path", {
172
172
  "fill-rule": "evenodd",
173
173
  d: "M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z",
@@ -175,13 +175,13 @@ function qt(t, s) {
175
175
  }, null, -1)
176
176
  ])]);
177
177
  }
178
- const Gt = /* @__PURE__ */ b(Vt, [["render", qt]]), Qt = {}, Yt = {
178
+ const it = /* @__PURE__ */ b(st, [["render", at]]), lt = {}, ct = {
179
179
  xmlns: "http://www.w3.org/2000/svg",
180
180
  viewBox: "0 0 24 24",
181
181
  fill: "currentColor"
182
182
  };
183
- function Jt(t, s) {
184
- return u(), d("svg", Yt, [...s[0] || (s[0] = [
183
+ function ut(o, i) {
184
+ return d(), f("svg", ct, [...i[0] || (i[0] = [
185
185
  m("path", {
186
186
  "fill-rule": "evenodd",
187
187
  d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
@@ -189,10 +189,10 @@ function Jt(t, s) {
189
189
  }, null, -1)
190
190
  ])]);
191
191
  }
192
- const te = /* @__PURE__ */ b(Qt, [["render", Jt]]), ee = ["role", "aria-live"], ne = ["aria-label"], oe = { class: "tf-toast-surface" }, se = { class: "tf-toast-main" }, ae = { class: "tf-toast-body" }, re = { class: "tf-toast-text" }, ie = ["aria-label"], le = ["aria-label", "innerHTML"], ce = ["aria-label"], ue = ["aria-label", "innerHTML"], de = {
192
+ const dt = /* @__PURE__ */ b(lt, [["render", ut]]), ft = ["role", "aria-live"], pt = ["aria-label"], vt = { class: "tf-toast-surface" }, mt = { class: "tf-toast-main" }, ht = { class: "tf-toast-body" }, gt = { class: "tf-toast-text" }, yt = ["aria-label"], _t = ["aria-label", "innerHTML"], wt = ["aria-label"], bt = ["aria-label", "innerHTML"], Ct = {
193
193
  key: 0,
194
194
  class: "tf-toast-created-at"
195
- }, fe = ["aria-label"], pe = /* @__PURE__ */ nt({
195
+ }, At = ["aria-label"], kt = /* @__PURE__ */ se({
196
196
  __name: "Toast",
197
197
  props: {
198
198
  toast: {},
@@ -204,362 +204,390 @@ const te = /* @__PURE__ */ b(Qt, [["render", Jt]]), ee = ["role", "aria-live"],
204
204
  updateAnimationClass: {}
205
205
  },
206
206
  emits: ["dismiss"],
207
- setup(t, { emit: s }) {
208
- const k = s, w = lt(ot, null) ?? f(), C = {
207
+ setup(o, { emit: i }) {
208
+ const L = o, {
209
+ toast: s,
210
+ progressResetKey: C,
211
+ duplicateKey: M,
212
+ updateKey: H,
213
+ bumpAnimationClass: B,
214
+ clearAllAnimationClass: P,
215
+ updateAnimationClass: E
216
+ } = $e(L), U = i, F = me(re, null) ?? p(), T = {
209
217
  success: {
210
218
  accent: "tf-toast-accent--success",
211
219
  icon: "tf-toast-icon--success",
212
220
  close: "tf-toast-close--success",
213
- component: Bt
221
+ component: De
214
222
  },
215
223
  error: {
216
224
  accent: "tf-toast-accent--error",
217
225
  icon: "tf-toast-icon--error",
218
226
  close: "tf-toast-close--error",
219
- component: Wt
227
+ component: ze
220
228
  },
221
229
  warning: {
222
230
  accent: "tf-toast-accent--warning",
223
231
  icon: "tf-toast-icon--warning",
224
232
  close: "tf-toast-close--warning",
225
- component: jt
233
+ component: qe
226
234
  },
227
235
  info: {
228
236
  accent: "tf-toast-accent--info",
229
237
  icon: "tf-toast-icon--info",
230
238
  close: "tf-toast-close--info",
231
- component: zt
239
+ component: Je
232
240
  },
233
241
  default: {
234
242
  accent: "tf-toast-accent--default",
235
243
  icon: "tf-toast-icon--default",
236
244
  close: "tf-toast-close--default",
237
- component: Nt
245
+ component: ot
238
246
  },
239
247
  loading: {
240
248
  accent: "tf-toast-accent--loading",
241
249
  icon: "tf-toast-icon--loading",
242
250
  close: "tf-toast-close--loading",
243
- component: Gt
251
+ component: it
244
252
  }
245
- }, M = /* @__PURE__ */ new Set(["error", "warning"]), {
246
- accentClass: T,
247
- iconWrapperClass: K,
248
- closeWrapperClass: W,
249
- defaultIconComponent: P
250
- } = Q(t.toast), {
251
- role: F,
252
- ariaLive: z,
253
- hasCreatedAt: R,
254
- createdAtText: h,
255
- createdAtAriaLabel: E,
256
- titleAriaLabel: D,
257
- descriptionAriaLabel: B,
258
- toastAriaLabel: N
259
- } = Y(t.toast), { progressStyle: V, showProgressBar: X, progressKeyLocal: U } = dt(
260
- t.toast,
261
- t.progressResetKey,
262
- t.duplicateKey
263
- ), { isBumped: q, isUpdated: G } = ft(t.duplicateKey, t.updateKey), { isHovered: L, handleMouseEnter: e, handleMouseLeave: r } = pt(
264
- t.toast,
265
- w
266
- ), { handleClick: o, handleCloseClick: a } = mt(t.toast, k);
267
- function Q(n) {
268
- const c = p(function() {
269
- return C[n.type].accent;
270
- }), l = p(function() {
271
- return C[n.type].icon;
272
- }), v = p(function() {
273
- return C[n.type].close;
274
- }), g = p(function() {
275
- return C[n.type].component;
253
+ }, y = /* @__PURE__ */ new Set(["error", "warning"]), {
254
+ accentClass: Z,
255
+ iconWrapperClass: q,
256
+ closeWrapperClass: O,
257
+ defaultIconComponent: G
258
+ } = we(s), {
259
+ role: Q,
260
+ ariaLive: Y,
261
+ hasCreatedAt: z,
262
+ createdAtText: N,
263
+ createdAtAriaLabel: J,
264
+ titleAriaLabel: A,
265
+ descriptionAriaLabel: n,
266
+ toastAriaLabel: u
267
+ } = be(s), { progressStyle: r, showProgressBar: l, progressKeyLocal: ee } = Ce(
268
+ s,
269
+ C,
270
+ M
271
+ ), { isBumped: te, isUpdated: ye } = Ae(M, H), {
272
+ isHovered: _e,
273
+ handleMouseEnter: ae,
274
+ handleMouseLeave: ie,
275
+ handlePointerDown: le,
276
+ handlePointerUp: V
277
+ } = ke(s, F), { handleClick: ce, handleCloseClick: ue } = Le(s, U);
278
+ function we(t) {
279
+ const c = v(function() {
280
+ return T[t.value.type].accent;
281
+ }), a = v(function() {
282
+ return T[t.value.type].icon;
283
+ }), h = v(function() {
284
+ return T[t.value.type].close;
285
+ }), w = v(function() {
286
+ return T[t.value.type].component;
276
287
  });
277
288
  return {
278
289
  accentClass: c,
279
- iconWrapperClass: l,
280
- closeWrapperClass: v,
281
- defaultIconComponent: g
290
+ iconWrapperClass: a,
291
+ closeWrapperClass: h,
292
+ defaultIconComponent: w
282
293
  };
283
294
  }
284
- function Y(n) {
285
- const c = p(function() {
286
- return M.has(n.type) ? "alert" : "status";
287
- }), l = p(function() {
288
- return M.has(n.type) ? "assertive" : "polite";
289
- }), v = p(function() {
290
- return !!(n.showCreatedAt && Number.isFinite(n.createdAt));
291
- }), g = p(function() {
292
- if (!v.value)
295
+ function be(t) {
296
+ const c = v(function() {
297
+ return y.has(t.value.type) ? "alert" : "status";
298
+ }), a = v(function() {
299
+ return y.has(t.value.type) ? "assertive" : "polite";
300
+ }), h = v(function() {
301
+ return !!(t.value.showCreatedAt && Number.isFinite(t.value.createdAt));
302
+ }), w = v(function() {
303
+ if (!h.value)
293
304
  return "";
294
305
  try {
295
- return n.createdAtFormatter(n.createdAt);
296
- } catch (x) {
306
+ return t.value.createdAtFormatter(t.value.createdAt);
307
+ } catch ($) {
297
308
  console.error(
298
309
  "[vue-toastflow] Something failed in createdAtFormatter",
299
- x
310
+ $
300
311
  );
301
312
  }
302
- }), y = p(function() {
303
- return g.value ? `Sent at ${g.value}` : "";
304
- }), Z = p(function() {
305
- return at(n.title);
306
- }), J = p(function() {
307
- return at(n.description);
308
- }), vt = p(function() {
309
- const x = [];
310
- return Z.value && x.push(Z.value), J.value && x.push(J.value), v.value && y.value && x.push(y.value), x.length || x.push(`${n.type} notification`), x.join(". ");
313
+ }), _ = v(function() {
314
+ return w.value ? `Sent at ${w.value}` : "";
315
+ }), g = v(function() {
316
+ return fe(t.value.title);
317
+ }), I = v(function() {
318
+ return fe(t.value.description);
319
+ }), x = v(function() {
320
+ const $ = [];
321
+ return g.value && $.push(g.value), I.value && $.push(I.value), h.value && _.value && $.push(_.value), $.length || $.push(`${t.value.type} notification`), $.join(". ");
311
322
  });
312
323
  return {
313
324
  role: c,
314
- ariaLive: l,
315
- hasCreatedAt: v,
316
- createdAtText: g,
317
- createdAtAriaLabel: y,
318
- titleAriaLabel: Z,
319
- descriptionAriaLabel: J,
320
- toastAriaLabel: vt
325
+ ariaLive: a,
326
+ hasCreatedAt: h,
327
+ createdAtText: w,
328
+ createdAtAriaLabel: _,
329
+ titleAriaLabel: g,
330
+ descriptionAriaLabel: I,
331
+ toastAriaLabel: x
321
332
  };
322
333
  }
323
- function dt(n, c, l) {
324
- const v = p(function() {
334
+ function Ce(t, c, a) {
335
+ const h = v(function() {
325
336
  return {
326
- "--tf-toast-progress-duration": `${n.duration}ms`
337
+ "--tf-toast-progress-duration": `${t.value.duration}ms`
327
338
  };
328
- }), g = p(function() {
329
- return n.progressBar && Number.isFinite(n.duration) && n.duration > 0;
330
- }), y = A(0);
331
- return _(
332
- () => c,
333
- function() {
334
- c != null && (y.value += 1);
339
+ }), w = v(function() {
340
+ return t.value.progressBar && Number.isFinite(t.value.duration) && t.value.duration > 0;
341
+ }), _ = k(0);
342
+ return W(
343
+ () => c?.value,
344
+ function(g) {
345
+ g != null && (_.value += 1);
335
346
  }
336
- ), _(
337
- () => l,
338
- function() {
339
- l != null && (y.value += 1);
347
+ ), W(
348
+ () => a?.value,
349
+ function(g) {
350
+ g != null && (_.value += 1);
340
351
  }
341
352
  ), {
342
- progressStyle: v,
343
- showProgressBar: g,
344
- progressKeyLocal: y
353
+ progressStyle: h,
354
+ showProgressBar: w,
355
+ progressKeyLocal: _
345
356
  };
346
357
  }
347
- function ft(n, c) {
348
- const l = A(!1), v = A(!1);
349
- function g() {
350
- l.value = !1, requestAnimationFrame(function() {
351
- l.value = !0;
358
+ function Ae(t, c) {
359
+ const a = k(!1), h = k(!1);
360
+ function w() {
361
+ a.value = !1, requestAnimationFrame(function() {
362
+ a.value = !0;
352
363
  });
353
364
  }
354
- function y() {
355
- v.value = !1, requestAnimationFrame(function() {
356
- v.value = !0;
365
+ function _() {
366
+ h.value = !1, requestAnimationFrame(function() {
367
+ h.value = !0;
357
368
  });
358
369
  }
359
- return _(
360
- () => n,
361
- function() {
362
- n != null && g();
370
+ return W(
371
+ () => t?.value,
372
+ function(g) {
373
+ g != null && w();
363
374
  }
364
- ), _(
365
- () => c,
366
- function() {
367
- c != null && y();
375
+ ), W(
376
+ () => c?.value,
377
+ function(g) {
378
+ g != null && _();
368
379
  }
369
380
  ), {
370
- isBumped: l,
371
- isUpdated: v
381
+ isBumped: a,
382
+ isUpdated: h
372
383
  };
373
384
  }
374
- function pt(n, c) {
375
- const l = A(!1);
376
- function v() {
377
- n.pauseOnHover && (l.value = !0, c.pause(n.id));
385
+ function ke(t, c) {
386
+ const a = k(!1);
387
+ function h() {
388
+ t.value.pauseOnHover && (a.value = !0, c.pause(t.value.id));
389
+ }
390
+ function w() {
391
+ t.value.pauseOnHover && (a.value = !1, c.resume(t.value.id));
392
+ }
393
+ function _(x) {
394
+ return x.pointerType === "touch" || x.pointerType === "pen";
378
395
  }
379
- function g() {
380
- n.pauseOnHover && (l.value = !1, c.resume(n.id));
396
+ function g(x) {
397
+ t.value.pauseOnHover && _(x) && (a.value = !0, c.pause(t.value.id));
398
+ }
399
+ function I(x) {
400
+ t.value.pauseOnHover && _(x) && (a.value = !1, c.resume(t.value.id));
381
401
  }
382
402
  return {
383
- isHovered: l,
384
- handleMouseEnter: v,
385
- handleMouseLeave: g
403
+ isHovered: a,
404
+ handleMouseEnter: h,
405
+ handleMouseLeave: w,
406
+ handlePointerDown: g,
407
+ handlePointerUp: I
386
408
  };
387
409
  }
388
- function mt(n, c) {
389
- function l() {
410
+ function Le(t, c) {
411
+ function a() {
390
412
  return {
391
- id: n.id,
392
- position: n.position,
393
- type: n.type,
394
- title: n.title,
395
- description: n.description,
396
- createdAt: n.createdAt
413
+ id: t.value.id,
414
+ position: t.value.position,
415
+ type: t.value.type,
416
+ title: t.value.title,
417
+ description: t.value.description,
418
+ createdAt: t.value.createdAt
397
419
  };
398
420
  }
399
- function v(y) {
400
- const Z = l();
401
- n.onClick && n.onClick(Z, y), n.closeOnClick && c("dismiss", n.id);
421
+ function h(_) {
422
+ const g = a();
423
+ t.value.onClick && t.value.onClick(g, _), t.value.closeOnClick && c("dismiss", t.value.id);
402
424
  }
403
- function g() {
404
- c("dismiss", n.id);
425
+ function w() {
426
+ c("dismiss", t.value.id);
405
427
  }
406
428
  return {
407
- handleClick: v,
408
- handleCloseClick: g
429
+ handleClick: h,
430
+ handleCloseClick: w
409
431
  };
410
432
  }
411
- function st(n) {
412
- return n.replace(/\s+/g, " ").trim();
433
+ function de(t) {
434
+ return t.replace(/\s+/g, " ").trim();
413
435
  }
414
- function at(n) {
415
- if (!n)
436
+ function fe(t) {
437
+ if (!t)
416
438
  return "";
417
- const c = st(n.replace(/<[^>]*>/g, " "));
439
+ const c = de(t.replace(/<[^>]*>/g, " "));
418
440
  if (typeof window > "u" || !window.document)
419
441
  return c;
420
442
  try {
421
- const l = window.document.createElement("div");
422
- return l.innerHTML = n, st(l.textContent ?? "");
443
+ const a = window.document.createElement("div");
444
+ return a.innerHTML = t, de(a.textContent ?? "");
423
445
  } catch {
424
446
  return c;
425
447
  }
426
448
  }
427
- return (n, c) => (u(), d("div", {
428
- role: i(F),
429
- "aria-live": i(z),
449
+ return (t, c) => (d(), f("div", {
450
+ role: e(Q),
451
+ "aria-live": e(Y),
430
452
  class: "tf-toast-wrapper"
431
453
  }, [
432
454
  m("div", {
433
455
  class: S(["tf-toast", [
434
- i(T),
435
- i(q) && t.toast.phase !== "leaving" && t.toast.phase !== "clear-all" && t.bumpAnimationClass,
436
- i(G) && t.toast.phase !== "leaving" && t.toast.phase !== "clear-all" && t.updateAnimationClass,
437
- t.toast.phase === "clear-all" && t.clearAllAnimationClass,
438
- i(L) && "tf-toast--paused"
456
+ e(Z),
457
+ e(te) && e(s).phase !== "leaving" && e(s).phase !== "clear-all" && e(B),
458
+ e(ye) && e(s).phase !== "leaving" && e(s).phase !== "clear-all" && e(E),
459
+ e(s).phase === "clear-all" && e(P),
460
+ e(_e) && "tf-toast--paused"
439
461
  ]]),
440
- "aria-label": i(N) || void 0,
462
+ "aria-label": e(u) || void 0,
441
463
  onClick: c[1] || (c[1] = //@ts-ignore
442
- (...l) => i(o) && i(o)(...l)),
464
+ (...a) => e(ce) && e(ce)(...a)),
443
465
  onMouseenter: c[2] || (c[2] = //@ts-ignore
444
- (...l) => i(e) && i(e)(...l)),
466
+ (...a) => e(ae) && e(ae)(...a)),
445
467
  onMouseleave: c[3] || (c[3] = //@ts-ignore
446
- (...l) => i(r) && i(r)(...l))
468
+ (...a) => e(ie) && e(ie)(...a)),
469
+ onPointerdown: c[4] || (c[4] = //@ts-ignore
470
+ (...a) => e(le) && e(le)(...a)),
471
+ onPointerup: c[5] || (c[5] = //@ts-ignore
472
+ (...a) => e(V) && e(V)(...a)),
473
+ onPointercancel: c[6] || (c[6] = //@ts-ignore
474
+ (...a) => e(V) && e(V)(...a))
447
475
  }, [
448
- m("div", oe, [
449
- m("div", se, [
476
+ m("div", vt, [
477
+ m("div", mt, [
450
478
  m("div", {
451
- class: S(["tf-toast-icon", i(K)]),
479
+ class: S(["tf-toast-icon", e(q)]),
452
480
  "aria-hidden": "true"
453
481
  }, [
454
- H(n.$slots, "icon", { toast: t.toast }, () => [
455
- (u(), et(gt(i(P)), {
456
- class: S(["tf-toast-icon-svg", [t.toast.type === "loading" && "tf-toast-icon-spin"]]),
482
+ K(t.$slots, "icon", { toast: e(s) }, () => [
483
+ (d(), oe(Me(e(G)), {
484
+ class: S(["tf-toast-icon-svg", [e(s).type === "loading" && "tf-toast-icon-spin"]]),
457
485
  "aria-hidden": "true"
458
486
  }, null, 8, ["class"]))
459
487
  ], !0)
460
488
  ], 2),
461
- m("div", ae, [
462
- m("div", re, [
463
- t.toast.title && !t.toast.supportHtml ? (u(), d("p", {
489
+ m("div", ht, [
490
+ m("div", gt, [
491
+ e(s).title && !e(s).supportHtml ? (d(), f("p", {
464
492
  key: 0,
465
- "aria-label": i(D) || void 0,
493
+ "aria-label": e(A) || void 0,
466
494
  class: "tf-toast-title"
467
- }, tt(t.toast.title), 9, ie)) : t.toast.title && t.toast.supportHtml ? (u(), d("p", {
495
+ }, ne(e(s).title), 9, yt)) : e(s).title && e(s).supportHtml ? (d(), f("p", {
468
496
  key: 1,
469
497
  class: "tf-toast-title",
470
- "aria-label": i(D) || void 0,
471
- innerHTML: t.toast.title
472
- }, null, 8, le)) : I("", !0),
473
- t.toast.description && !t.toast.supportHtml ? (u(), d("p", {
498
+ "aria-label": e(A) || void 0,
499
+ innerHTML: e(s).title
500
+ }, null, 8, _t)) : j("", !0),
501
+ e(s).description && !e(s).supportHtml ? (d(), f("p", {
474
502
  key: 2,
475
- "aria-label": i(B) || void 0,
503
+ "aria-label": e(n) || void 0,
476
504
  class: "tf-toast-description"
477
- }, tt(t.toast.description), 9, ce)) : t.toast.description && t.toast.supportHtml ? (u(), d("p", {
505
+ }, ne(e(s).description), 9, wt)) : e(s).description && e(s).supportHtml ? (d(), f("p", {
478
506
  key: 3,
479
507
  class: "tf-toast-description",
480
- "aria-label": i(B) || void 0,
481
- innerHTML: t.toast.description
482
- }, null, 8, ue)) : I("", !0)
508
+ "aria-label": e(n) || void 0,
509
+ innerHTML: e(s).description
510
+ }, null, 8, bt)) : j("", !0)
483
511
  ]),
484
- H(n.$slots, "default", { toast: t.toast }, void 0, !0),
485
- i(R) ? (u(), d("div", de, [
486
- H(n.$slots, "created-at", {
487
- toast: t.toast,
488
- formatted: i(h)
512
+ K(t.$slots, "default", { toast: e(s) }, void 0, !0),
513
+ e(z) ? (d(), f("div", Ct, [
514
+ K(t.$slots, "created-at", {
515
+ toast: e(s),
516
+ formatted: e(N)
489
517
  }, () => [
490
518
  m("span", {
491
- "aria-label": i(E) || void 0
492
- }, tt(i(h)), 9, fe)
519
+ "aria-label": e(J) || void 0
520
+ }, ne(e(N)), 9, At)
493
521
  ], !0)
494
- ])) : I("", !0)
522
+ ])) : j("", !0)
495
523
  ])
496
524
  ]),
497
- i(X) ? (u(), d("div", {
525
+ e(l) ? (d(), f("div", {
498
526
  key: 0,
499
527
  class: "tf-toast-progress-wrapper",
500
- style: j(i(V))
528
+ style: D(e(r))
501
529
  }, [
502
- H(n.$slots, "progress", { toast: t.toast }, () => [
503
- (u(), et($t, {
504
- key: i(U),
505
- type: t.toast.type
530
+ K(t.$slots, "progress", { toast: e(s) }, () => [
531
+ (d(), oe(Ze, {
532
+ key: e(ee),
533
+ type: e(s).type
506
534
  }, null, 8, ["type"]))
507
535
  ], !0)
508
- ], 4)) : I("", !0)
536
+ ], 4)) : j("", !0)
509
537
  ]),
510
- t.toast.closeButton ? (u(), d("button", {
538
+ e(s).closeButton ? (d(), f("button", {
511
539
  key: 0,
512
540
  type: "button",
513
- class: S(["tf-toast-close", i(W)]),
541
+ class: S(["tf-toast-close", e(O)]),
514
542
  "aria-label": "Close notification",
515
- onClick: c[0] || (c[0] = yt(
543
+ onClick: c[0] || (c[0] = Te(
516
544
  //@ts-ignore
517
- (...l) => i(a) && i(a)(...l),
545
+ (...a) => e(ue) && e(ue)(...a),
518
546
  ["stop"]
519
547
  ))
520
548
  }, [
521
- H(n.$slots, "close-icon", { toast: t.toast }, () => [
522
- ct(te, {
549
+ K(t.$slots, "close-icon", { toast: e(s) }, () => [
550
+ he(dt, {
523
551
  class: "tf-toast-close-icon",
524
552
  "aria-hidden": "true"
525
553
  })
526
554
  ], !0)
527
- ], 2)) : I("", !0)
528
- ], 42, ne)
529
- ], 8, ee));
555
+ ], 2)) : j("", !0)
556
+ ], 42, pt)
557
+ ], 8, ft));
530
558
  }
531
- }), me = /* @__PURE__ */ b(pe, [["__scopeId", "data-v-56346e83"]]), ve = ["data-position"], he = /* @__PURE__ */ nt({
559
+ }), Lt = /* @__PURE__ */ b(kt, [["__scopeId", "data-v-763aeb72"]]), xt = ["data-position"], $t = /* @__PURE__ */ se({
532
560
  __name: "ToastContainer",
533
- setup(t) {
534
- const s = [
561
+ setup(o) {
562
+ const i = [
535
563
  "top-left",
536
564
  "top-center",
537
565
  "top-right",
538
566
  "bottom-left",
539
567
  "bottom-center",
540
568
  "bottom-right"
541
- ], $ = lt(ot, null) ?? f(), w = A([]), C = A({}), M = A({}), T = A({});
542
- let K = null, W = null;
543
- bt(function() {
544
- K = $.subscribe(function(e) {
545
- w.value = e.toasts;
546
- }), W = $.subscribeEvents(function(e) {
547
- e.kind === "timer-reset" && (C.value[e.id] = Math.random()), e.kind === "duplicate" && (M.value[e.id] = Math.random()), e.kind === "update" && (T.value[e.id] = Math.random());
569
+ ], s = me(re, null) ?? p(), C = k([]), M = k({}), H = k({}), B = k({});
570
+ let P = null, E = null;
571
+ Se(function() {
572
+ P = s.subscribe(function(n) {
573
+ C.value = n.toasts;
574
+ }), E = s.subscribeEvents(function(n) {
575
+ n.kind === "timer-reset" && (M.value[n.id] = Math.random()), n.kind === "duplicate" && (H.value[n.id] = Math.random()), n.kind === "update" && (B.value[n.id] = Math.random());
548
576
  });
549
- }), wt(function() {
550
- K && K(), W && W();
577
+ }), He(function() {
578
+ P && P(), E && E();
551
579
  });
552
- function P(e) {
553
- return C.value[e] ?? 0;
580
+ function U(n) {
581
+ return M.value[n] ?? 0;
554
582
  }
555
- function F(e) {
556
- return M.value[e] ?? 0;
583
+ function X(n) {
584
+ return H.value[n] ?? 0;
557
585
  }
558
- function z(e) {
559
- return T.value[e] ?? 0;
586
+ function F(n) {
587
+ return B.value[n] ?? 0;
560
588
  }
561
- const R = p(function() {
562
- const e = {
589
+ const T = v(function() {
590
+ const n = {
563
591
  "top-left": [],
564
592
  "top-center": [],
565
593
  "top-right": [],
@@ -567,153 +595,153 @@ const te = /* @__PURE__ */ b(Qt, [["render", Jt]]), ee = ["role", "aria-live"],
567
595
  "bottom-center": [],
568
596
  "bottom-right": []
569
597
  };
570
- for (const r of w.value)
571
- e[r.position].push(r);
572
- return e;
573
- }), h = $.getConfig(), E = A({
574
- "top-left": { ...h, position: "top-left" },
575
- "top-center": { ...h, position: "top-center" },
576
- "top-right": { ...h, position: "top-right" },
577
- "bottom-left": { ...h, position: "bottom-left" },
578
- "bottom-center": { ...h, position: "bottom-center" },
579
- "bottom-right": { ...h, position: "bottom-right" }
580
- }), D = p(function() {
581
- return w.value.length ? Math.max(...w.value.map((e) => e.zIndex)) : h.zIndex;
598
+ for (const u of C.value)
599
+ n[u.position].push(u);
600
+ return n;
601
+ }), y = s.getConfig(), Z = k({
602
+ "top-left": { ...y, position: "top-left" },
603
+ "top-center": { ...y, position: "top-center" },
604
+ "top-right": { ...y, position: "top-right" },
605
+ "bottom-left": { ...y, position: "bottom-left" },
606
+ "bottom-center": { ...y, position: "bottom-center" },
607
+ "bottom-right": { ...y, position: "bottom-right" }
608
+ }), q = v(function() {
609
+ return C.value.length ? Math.max(...C.value.map((n) => n.zIndex)) : y.zIndex;
582
610
  });
583
- function B(e) {
584
- return E.value[e] ?? { ...h, position: e };
611
+ function O(n) {
612
+ return Z.value[n] ?? { ...y, position: n };
585
613
  }
586
- function N(e) {
587
- const { offset: r, width: o } = B(e), a = { width: o, maxWidth: "100%" };
588
- return e.startsWith("top-") && (a.top = r), e.startsWith("bottom-") && (a.bottom = r), e.endsWith("left") ? a.left = r : e.endsWith("right") ? a.right = r : e.endsWith("center") && (a.left = "50%", a.transform = "translateX(-50%)"), a;
614
+ function G(n) {
615
+ const { offset: u, width: r } = O(n), l = { width: r, maxWidth: "100%" };
616
+ return n.startsWith("top-") && (l.top = u), n.startsWith("bottom-") && (l.bottom = u), n.endsWith("left") ? l.left = u : n.endsWith("right") ? l.right = u : n.endsWith("center") && (l.left = "50%", l.transform = "translateX(-50%)"), l;
589
617
  }
590
- function V(e) {
591
- return e.endsWith("left") ? "tf-toast-stack--left" : e.endsWith("center") ? "tf-toast-stack--center" : "tf-toast-stack--right";
618
+ function Q(n) {
619
+ return n.endsWith("left") ? "tf-toast-stack--left" : n.endsWith("center") ? "tf-toast-stack--center" : "tf-toast-stack--right";
592
620
  }
593
- function X(e) {
594
- return e.startsWith("bottom-") ? "tf-toast-stack-inner--bottom" : null;
621
+ function Y(n) {
622
+ return n.startsWith("bottom-") ? "tf-toast-stack-inner--bottom" : null;
595
623
  }
596
- function U(e) {
597
- $.dismiss(e);
624
+ function z(n) {
625
+ s.dismiss(n);
598
626
  }
599
- function q(e) {
600
- const r = e, o = r.parentElement;
601
- if (!o || o.children.length <= 1)
627
+ function N(n) {
628
+ const u = n, r = u.parentElement;
629
+ if (!r || r.children.length <= 1)
602
630
  return;
603
- const a = r.offsetTop, Q = o.clientHeight, Y = o.clientWidth;
604
- o.style.minHeight = `${Q}px`, r.style.position = "absolute", r.style.width = `${Y}px`, r.style.left = "0", r.style.right = "0", r.style.top = `${a}px`;
631
+ const l = u.offsetTop, ee = r.clientHeight, te = r.clientWidth;
632
+ r.style.minHeight = `${ee}px`, u.style.position = "absolute", u.style.width = `${te}px`, u.style.left = "0", u.style.right = "0", u.style.top = `${l}px`;
605
633
  }
606
- function G(e) {
607
- const r = e, o = r.parentElement;
608
- o && (o.style.minHeight = ""), r.style.position = "", r.style.width = "", r.style.left = "", r.style.right = "", r.style.top = "";
634
+ function J(n) {
635
+ const u = n, r = u.parentElement;
636
+ r && (r.style.minHeight = ""), u.style.position = "", u.style.width = "", u.style.left = "", u.style.right = "", u.style.top = "";
609
637
  }
610
- _(
611
- w,
612
- function(e) {
613
- const r = new Set(
614
- e.map(function(o) {
615
- return o.id;
638
+ W(
639
+ C,
640
+ function(n) {
641
+ const u = new Set(
642
+ n.map(function(r) {
643
+ return r.id;
616
644
  })
617
645
  );
618
- for (const o of Object.keys(C.value))
619
- r.has(o) || delete C.value[o];
620
- for (const o of Object.keys(M.value))
621
- r.has(o) || delete M.value[o];
622
- for (const o of Object.keys(T.value))
623
- r.has(o) || delete T.value[o];
646
+ for (const r of Object.keys(M.value))
647
+ u.has(r) || delete M.value[r];
648
+ for (const r of Object.keys(H.value))
649
+ u.has(r) || delete H.value[r];
650
+ for (const r of Object.keys(B.value))
651
+ u.has(r) || delete B.value[r];
624
652
  },
625
653
  { deep: !1 }
626
654
  );
627
- function L(e) {
655
+ function A(n) {
628
656
  return {
629
- ...h.animation,
630
- ...e.animation
657
+ ...y.animation,
658
+ ...n.animation
631
659
  };
632
660
  }
633
- return _(
634
- R,
635
- function(e) {
636
- const r = { ...E.value };
637
- Object.keys(e).forEach(function(o) {
638
- const a = e[o][0];
639
- a && (r[o] = {
640
- ...h,
641
- ...a,
642
- position: o,
661
+ return W(
662
+ T,
663
+ function(n) {
664
+ const u = { ...Z.value };
665
+ Object.keys(n).forEach(function(r) {
666
+ const l = n[r][0];
667
+ l && (u[r] = {
668
+ ...y,
669
+ ...l,
670
+ position: r,
643
671
  animation: {
644
- ...h.animation,
645
- ...a.animation
672
+ ...y.animation,
673
+ ...l.animation
646
674
  }
647
675
  });
648
- }), E.value = r;
676
+ }), Z.value = u;
649
677
  },
650
678
  { deep: !1 }
651
- ), (e, r) => (u(), d("div", {
679
+ ), (n, u) => (d(), f("div", {
652
680
  class: "tf-toast-root",
653
- style: j({ zIndex: D.value })
681
+ style: D({ zIndex: q.value })
654
682
  }, [
655
- (u(), d(rt, null, it(s, (o) => m("div", {
656
- key: o,
657
- class: S(["tf-toast-stack", V(o)]),
658
- style: j(N(o))
683
+ (d(), f(pe, null, ve(i, (r) => m("div", {
684
+ key: r,
685
+ class: S(["tf-toast-stack", Q(r)]),
686
+ style: D(G(r))
659
687
  }, [
660
- ct(Ct, {
661
- name: B(o).animation.name,
662
- onBeforeLeave: q,
663
- onAfterLeave: G,
688
+ he(Be, {
689
+ name: O(r).animation.name,
690
+ onBeforeLeave: N,
691
+ onAfterLeave: J,
664
692
  tag: "div",
665
- class: S(["tf-toast-stack-inner", X(o)]),
666
- style: j({ gap: B(o).gap })
693
+ class: S(["tf-toast-stack-inner", Y(r)]),
694
+ style: D({ gap: O(r).gap })
667
695
  }, {
668
- default: At(() => [
669
- (u(!0), d(rt, null, it(R.value[o], (a) => (u(), d("div", {
670
- key: a.id,
696
+ default: Ke(() => [
697
+ (d(!0), f(pe, null, ve(T.value[r], (l) => (d(), f("div", {
698
+ key: l.id,
671
699
  class: "tf-toast-item",
672
- style: j({ width: a.width, maxWidth: "100%" }),
673
- "data-position": a.position
700
+ style: D({ width: l.width, maxWidth: "100%" }),
701
+ "data-position": l.position
674
702
  }, [
675
- e.$slots.default ? H(e.$slots, "default", {
703
+ n.$slots.default ? K(n.$slots, "default", {
676
704
  key: 0,
677
- toast: a,
678
- progressResetKey: P(a.id),
679
- duplicateKey: F(a.id),
680
- updateKey: z(a.id),
681
- bumpAnimationClass: L(a).bump,
682
- clearAllAnimationClass: L(a).clearAll,
683
- updateAnimationClass: L(a).update,
684
- dismiss: U
685
- }, void 0, !0) : (u(), et(me, {
705
+ toast: l,
706
+ progressResetKey: U(l.id),
707
+ duplicateKey: X(l.id),
708
+ updateKey: F(l.id),
709
+ bumpAnimationClass: A(l).bump,
710
+ clearAllAnimationClass: A(l).clearAll,
711
+ updateAnimationClass: A(l).update,
712
+ dismiss: z
713
+ }, void 0, !0) : (d(), oe(Lt, {
686
714
  key: 1,
687
- toast: a,
688
- progressResetKey: P(a.id),
689
- duplicateKey: F(a.id),
690
- updateKey: z(a.id),
691
- bumpAnimationClass: L(a).bump,
692
- clearAllAnimationClass: L(a).clearAll,
693
- updateAnimationClass: L(a).update,
694
- onDismiss: U
715
+ toast: l,
716
+ progressResetKey: U(l.id),
717
+ duplicateKey: X(l.id),
718
+ updateKey: F(l.id),
719
+ bumpAnimationClass: A(l).bump,
720
+ clearAllAnimationClass: A(l).clearAll,
721
+ updateAnimationClass: A(l).update,
722
+ onDismiss: z
695
723
  }, null, 8, ["toast", "progressResetKey", "duplicateKey", "updateKey", "bumpAnimationClass", "clearAllAnimationClass", "updateAnimationClass"]))
696
- ], 12, ve))), 128))
724
+ ], 12, xt))), 128))
697
725
  ]),
698
726
  _: 2
699
727
  }, 1032, ["name", "class", "style"])
700
728
  ], 6)), 64))
701
729
  ], 4));
702
730
  }
703
- }), Ce = /* @__PURE__ */ b(he, [["__scopeId", "data-v-909eb002"]]);
731
+ }), Bt = /* @__PURE__ */ b($t, [["__scopeId", "data-v-65f94eb4"]]);
704
732
  export {
705
- Gt as ArrowPath,
706
- jt as Bell,
707
- Bt as CheckCircle,
708
- zt as InfoCircle,
709
- Nt as QuestionMarkCircle,
710
- me as Toast,
711
- Ce as ToastContainer,
712
- $t as ToastProgress,
713
- Wt as XCircle,
714
- te as XMark,
715
- we as createToastflow,
716
- f as getToastStore,
717
- kt as setToastStore,
718
- be as toast
733
+ it as ArrowPath,
734
+ qe as Bell,
735
+ De as CheckCircle,
736
+ Je as InfoCircle,
737
+ ot as QuestionMarkCircle,
738
+ Lt as Toast,
739
+ Bt as ToastContainer,
740
+ Ze as ToastProgress,
741
+ ze as XCircle,
742
+ dt as XMark,
743
+ Ht as createToastflow,
744
+ p as getToastStore,
745
+ We as setToastStore,
746
+ St as toast
719
747
  };