@leaflink/stash 48.13.0 → 48.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,17 @@
1
- import Y from "./locale.js";
2
- import { defineComponent as B, computed as M, openBlock as j, createBlock as P, mergeProps as X, createSlots as x, renderList as D, unref as G, withCtx as N, createVNode as I, h as _, render as $ } from "vue";
3
- import H from "lodash-es/omit";
1
+ import w from "./locale.js";
2
+ import { defineComponent as y, computed as X, openBlock as x, createBlock as Y, mergeProps as D, createSlots as P, renderList as N, unref as _, withCtx as I, createVNode as j, h as $, render as H } from "vue";
3
+ import B from "lodash-es/omit";
4
4
  import F from "./useDialog.js";
5
5
  import q from "./CustomRender.js";
6
6
  import A from "./Dialog.js";
7
- import { M as U } from "./MenusPlugin-9288029a.js";
8
- import W from "./ModalsPlugin.js";
9
- import V from "./ToastsPlugin.js";
10
- import { overridePersistentStorage as z } from "./storage.js";
11
- import { persistentStorage as Ge } from "./storage.js";
12
- import { S as _e, a as $e } from "./misc-76697f61.js";
13
- import { a as Fe, S as qe, b as Ae } from "./statusLevels-a8b041f4.js";
7
+ import { M as R } from "./MenusPlugin-9288029a.js";
8
+ import G from "./ModalsPlugin.js";
9
+ import U from "./ToastsPlugin.js";
10
+ import { overridePersistentStorage as V } from "./storage.js";
11
+ import { persistentStorage as Dt } from "./storage.js";
12
+ import { S as Nt, a as _t, b as It } from "./colors-8d9b9429.js";
13
+ import { S as Ht, a as Bt } from "./misc-76697f61.js";
14
+ import { a as qt, S as At, b as Rt } from "./statusLevels-a8b041f4.js";
14
15
  import "lodash-es/get";
15
16
  import "lodash-es/capitalize";
16
17
  import "lodash-es/uniqueId";
@@ -33,27 +34,27 @@ import "lodash-es/camelCase";
33
34
  import "lodash-es/isFinite";
34
35
  import "lodash-es/isPlainObject";
35
36
  import "./constants.js";
36
- function h(e) {
37
- return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
37
+ function L(s) {
38
+ return s.type.indexOf("mouse") !== -1 ? s.clientX : s.touches[0].clientX;
38
39
  }
39
- function L(e) {
40
- return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
40
+ function M(s) {
41
+ return s.type.indexOf("mouse") !== -1 ? s.clientY : s.touches[0].clientY;
41
42
  }
42
- var J = function() {
43
- var e = !1;
43
+ var z = function() {
44
+ var s = !1;
44
45
  try {
45
- var u = Object.defineProperty({}, "passive", {
46
+ var o = Object.defineProperty({}, "passive", {
46
47
  get: function() {
47
- e = !0;
48
+ s = !0;
48
49
  }
49
50
  });
50
- window.addEventListener("test", null, u);
51
+ window.addEventListener("test", null, o);
51
52
  } catch {
52
53
  }
53
- return e;
54
- }(), K = {
55
- install: function(e, u) {
56
- var m = Object.assign({}, {
54
+ return s;
55
+ }(), J = {
56
+ install: function(s, o) {
57
+ var d = Object.assign({}, {
57
58
  disableClick: !1,
58
59
  tapTolerance: 10,
59
60
  // px
@@ -68,215 +69,213 @@ var J = function() {
68
69
  // ms
69
70
  rollOverFrequency: 100
70
71
  // ms
71
- }, u);
72
- function c(i) {
73
- var t = this.$$touchObj, r = i.type.indexOf("touch") >= 0, o = i.type.indexOf("mouse") >= 0, v = this;
74
- r && (t.lastTouchStartTime = i.timeStamp), !(o && t.lastTouchStartTime && i.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (R(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = h(i), t.startY = L(i), t.currentX = 0, t.currentY = 0, t.touchStartTime = i.timeStamp, t.hasSwipe = n(this, "swipe") || n(this, "swipe.left") || n(this, "swipe.right") || n(this, "swipe.top") || n(this, "swipe.bottom"), n(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
75
- t.touchHoldTimer = null, b(i, v, "hold");
76
- }, t.options.touchHoldTolerance)), b(i, this, "press")));
72
+ }, o);
73
+ function a(e) {
74
+ var t = this.$$touchObj, r = e.type.indexOf("touch") >= 0, m = e.type.indexOf("mouse") >= 0, f = this;
75
+ r && (t.lastTouchStartTime = e.timeStamp), !(m && t.lastTouchStartTime && e.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (C(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = L(e), t.startY = M(e), t.currentX = 0, t.currentY = 0, t.touchStartTime = e.timeStamp, t.hasSwipe = c(this, "swipe") || c(this, "swipe.left") || c(this, "swipe.right") || c(this, "swipe.top") || c(this, "swipe.bottom"), c(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
76
+ t.touchHoldTimer = null, T(e, f, "hold");
77
+ }, t.options.touchHoldTolerance)), T(e, this, "press")));
77
78
  }
78
- function g(i) {
79
- var t = this.$$touchObj, r = h(i), o = L(i), v = t.currentX != r || t.currentY != o;
80
- if (t.currentX = r, t.currentY = o, t.touchMoved) {
79
+ function p(e) {
80
+ var t = this.$$touchObj, r = L(e), m = M(e), f = t.currentX != r || t.currentY != m;
81
+ if (t.currentX = r, t.currentY = m, t.touchMoved) {
81
82
  if (t.hasSwipe && !t.swipeOutBounded) {
82
- var f = t.options.swipeTolerance;
83
- t.swipeOutBounded = Math.abs(t.startX - t.currentX) > f && Math.abs(t.startY - t.currentY) > f;
83
+ var n = t.options.swipeTolerance;
84
+ t.swipeOutBounded = Math.abs(t.startX - t.currentX) > n && Math.abs(t.startY - t.currentY) > n;
84
85
  }
85
86
  } else {
86
- var l = t.options.tapTolerance;
87
- t.touchMoved = Math.abs(t.startX - t.currentX) > l || Math.abs(t.startY - t.currentY) > l, t.touchMoved && (O(t), b(i, this, "drag.once"));
87
+ var u = t.options.tapTolerance;
88
+ t.touchMoved = Math.abs(t.startX - t.currentX) > u || Math.abs(t.startY - t.currentY) > u, t.touchMoved && (g(t), T(e, this, "drag.once"));
88
89
  }
89
- if (n(this, "rollover") && v) {
90
- var a = i.timeStamp, w = t.options.rollOverFrequency;
91
- (t.touchRollTime == null || a > t.touchRollTime + w) && (t.touchRollTime = a, b(i, this, "rollover"));
90
+ if (c(this, "rollover") && f) {
91
+ var i = e.timeStamp, E = t.options.rollOverFrequency;
92
+ (t.touchRollTime == null || i > t.touchRollTime + E) && (t.touchRollTime = i, T(e, this, "rollover"));
92
93
  }
93
- if (n(this, "drag") && t.touchStarted && t.touchMoved && v) {
94
- var a = i.timeStamp, w = t.options.dragFrequency;
95
- (t.touchDragTime == null || a > t.touchDragTime + w) && (t.touchDragTime = a, b(i, this, "drag"));
94
+ if (c(this, "drag") && t.touchStarted && t.touchMoved && f) {
95
+ var i = e.timeStamp, E = t.options.dragFrequency;
96
+ (t.touchDragTime == null || i > t.touchDragTime + E) && (t.touchDragTime = i, T(e, this, "drag"));
96
97
  }
97
98
  }
98
- function T() {
99
- var i = this.$$touchObj;
100
- O(i), y(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
99
+ function v() {
100
+ var e = this.$$touchObj;
101
+ g(e), S(this), e.touchStarted = e.touchMoved = !1, e.startX = e.startY = 0;
101
102
  }
102
- function p(i) {
103
- var t = this.$$touchObj, r = i.type.indexOf("touch") >= 0, o = i.type.indexOf("mouse") >= 0;
104
- r && (t.lastTouchEndTime = i.timeStamp);
105
- var v = r && !t.touchHoldTimer;
106
- if (O(t), t.touchStarted = !1, y(this), !(o && t.lastTouchEndTime && i.timeStamp - t.lastTouchEndTime < 350))
107
- if (b(i, this, "release"), t.touchMoved) {
103
+ function l(e) {
104
+ var t = this.$$touchObj, r = e.type.indexOf("touch") >= 0, m = e.type.indexOf("mouse") >= 0;
105
+ r && (t.lastTouchEndTime = e.timeStamp);
106
+ var f = r && !t.touchHoldTimer;
107
+ if (g(t), t.touchStarted = !1, S(this), !(m && t.lastTouchEndTime && e.timeStamp - t.lastTouchEndTime < 350))
108
+ if (T(e, this, "release"), t.touchMoved) {
108
109
  if (t.hasSwipe && !t.swipeOutBounded) {
109
- var l = t.options.swipeTolerance, f, a = Math.abs(t.startY - t.currentY), w = Math.abs(t.startX - t.currentX);
110
- (a > l || w > l) && (a > l ? f = t.startY > t.currentY ? "top" : "bottom" : f = t.startX > t.currentX ? "left" : "right", n(this, "swipe." + f) ? b(i, this, "swipe." + f, f) : b(i, this, "swipe", f));
110
+ var u = t.options.swipeTolerance, n, i = Math.abs(t.startY - t.currentY), E = Math.abs(t.startX - t.currentX);
111
+ (i > u || E > u) && (i > u ? n = t.startY > t.currentY ? "top" : "bottom" : n = t.startX > t.currentX ? "left" : "right", c(this, "swipe." + n) ? T(e, this, "swipe." + n, n) : T(e, this, "swipe", n));
111
112
  }
112
- } else if (n(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
113
- i.cancelable && i.preventDefault(), b(i, this, "longtap");
114
- else if (n(this, "hold") && v) {
115
- i.cancelable && i.preventDefault();
113
+ } else if (c(this, "longtap") && e.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
114
+ e.cancelable && e.preventDefault(), T(e, this, "longtap");
115
+ else if (c(this, "hold") && f) {
116
+ e.cancelable && e.preventDefault();
116
117
  return;
117
118
  } else
118
- b(i, this, "tap");
119
+ T(e, this, "tap");
119
120
  }
120
- function d() {
121
- R(this);
121
+ function h() {
122
+ C(this);
122
123
  }
123
- function s() {
124
- y(this);
124
+ function b() {
125
+ S(this);
125
126
  }
126
- function n(i, t) {
127
- var r = i.$$touchObj.callbacks[t];
127
+ function c(e, t) {
128
+ var r = e.$$touchObj.callbacks[t];
128
129
  return r != null && r.length > 0;
129
130
  }
130
- function b(i, t, r, o) {
131
- var v = t.$$touchObj, l = v.callbacks[r];
132
- if (l == null || l.length === 0)
131
+ function T(e, t, r, m) {
132
+ var f = t.$$touchObj, u = f.callbacks[r];
133
+ if (u == null || u.length === 0)
133
134
  return null;
134
- for (var f = 0; f < l.length; f++) {
135
- var a = l[f];
136
- a.modifiers.stop && i.stopPropagation(), a.modifiers.prevent && i.preventDefault(), !(a.modifiers.self && i.target !== i.currentTarget) && typeof a.value == "function" && (o ? a.value(o, i) : a.value(i));
135
+ for (var n = 0; n < u.length; n++) {
136
+ var i = u[n];
137
+ i.modifiers.stop && e.stopPropagation(), i.modifiers.prevent && e.preventDefault(), !(i.modifiers.self && e.target !== e.currentTarget) && typeof i.value == "function" && (m ? i.value(m, e) : i.value(e));
137
138
  }
138
139
  }
139
- function R(i) {
140
- var t = i.$$touchObj.options.touchClass;
141
- t && i.classList.add(t);
140
+ function C(e) {
141
+ var t = e.$$touchObj.options.touchClass;
142
+ t && e.classList.add(t);
142
143
  }
143
- function y(i) {
144
- var t = i.$$touchObj.options.touchClass;
145
- t && i.classList.remove(t);
144
+ function S(e) {
145
+ var t = e.$$touchObj.options.touchClass;
146
+ t && e.classList.remove(t);
146
147
  }
147
- function O(i) {
148
- i.touchHoldTimer && (clearTimeout(i.touchHoldTimer), i.touchHoldTimer = null);
148
+ function g(e) {
149
+ e.touchHoldTimer && (clearTimeout(e.touchHoldTimer), e.touchHoldTimer = null);
149
150
  }
150
- function E(i, t) {
151
- var r = i.$$touchObj || {
151
+ function O(e, t) {
152
+ var r = e.$$touchObj || {
152
153
  // an object contains all callbacks registered,
153
154
  // key is event name, value is an array
154
155
  callbacks: {},
155
156
  // prevent bind twice, set to true when event bound
156
157
  hasBindTouchEvents: !1,
157
158
  // default options, would be override by v-touch-options
158
- options: m
159
+ options: d
159
160
  };
160
- return t && (r.options = Object.assign({}, r.options, t)), i.$$touchObj = r, i.$$touchObj;
161
+ return t && (r.options = Object.assign({}, r.options, t)), e.$$touchObj = r, e.$$touchObj;
161
162
  }
162
- e.directive("touch", {
163
- beforeMount: function(i, t) {
164
- var r = E(i), o = J ? { passive: !0 } : !1, v = t.arg || "tap";
165
- switch (v) {
163
+ s.directive("touch", {
164
+ beforeMount: function(e, t) {
165
+ var r = O(e), m = z ? { passive: !0 } : !1, f = t.arg || "tap";
166
+ switch (f) {
166
167
  case "swipe":
167
- var l = t.modifiers;
168
- if (l.left || l.right || l.top || l.bottom) {
169
- for (var f in t.modifiers)
170
- if (["left", "right", "top", "bottom"].indexOf(f) >= 0) {
171
- var a = "swipe." + f;
172
- r.callbacks[a] = r.callbacks[a] || [], r.callbacks[a].push(t);
168
+ var u = t.modifiers;
169
+ if (u.left || u.right || u.top || u.bottom) {
170
+ for (var n in t.modifiers)
171
+ if (["left", "right", "top", "bottom"].indexOf(n) >= 0) {
172
+ var i = "swipe." + n;
173
+ r.callbacks[i] = r.callbacks[i] || [], r.callbacks[i].push(t);
173
174
  }
174
175
  } else
175
176
  r.callbacks.swipe = r.callbacks.swipe || [], r.callbacks.swipe.push(t);
176
177
  break;
177
178
  case "press":
178
179
  case "drag":
179
- t.modifiers.disablePassive && (o = !1);
180
+ t.modifiers.disablePassive && (m = !1);
180
181
  default:
181
- r.callbacks[v] = r.callbacks[v] || [], r.callbacks[v].push(t);
182
+ r.callbacks[f] = r.callbacks[f] || [], r.callbacks[f].push(t);
182
183
  }
183
- r.hasBindTouchEvents || (i.addEventListener("touchstart", c, o), i.addEventListener("touchmove", g, o), i.addEventListener("touchcancel", T), i.addEventListener("touchend", p), r.options.disableClick || (i.addEventListener("mousedown", c), i.addEventListener("mousemove", g), i.addEventListener("mouseup", p), i.addEventListener("mouseenter", d), i.addEventListener("mouseleave", s)), r.hasBindTouchEvents = !0);
184
+ r.hasBindTouchEvents || (e.addEventListener("touchstart", a, m), e.addEventListener("touchmove", p, m), e.addEventListener("touchcancel", v), e.addEventListener("touchend", l), r.options.disableClick || (e.addEventListener("mousedown", a), e.addEventListener("mousemove", p), e.addEventListener("mouseup", l), e.addEventListener("mouseenter", h), e.addEventListener("mouseleave", b)), r.hasBindTouchEvents = !0);
184
185
  },
185
- unmounted: function(i) {
186
- i.removeEventListener("touchstart", c), i.removeEventListener("touchmove", g), i.removeEventListener("touchcancel", T), i.removeEventListener("touchend", p), i.$$touchObj && !i.$$touchObj.options.disableClick && (i.removeEventListener("mousedown", c), i.removeEventListener("mousemove", g), i.removeEventListener("mouseup", p), i.removeEventListener("mouseenter", d), i.removeEventListener("mouseleave", s)), delete i.$$touchObj;
186
+ unmounted: function(e) {
187
+ e.removeEventListener("touchstart", a), e.removeEventListener("touchmove", p), e.removeEventListener("touchcancel", v), e.removeEventListener("touchend", l), e.$$touchObj && !e.$$touchObj.options.disableClick && (e.removeEventListener("mousedown", a), e.removeEventListener("mousemove", p), e.removeEventListener("mouseup", l), e.removeEventListener("mouseenter", h), e.removeEventListener("mouseleave", b)), delete e.$$touchObj;
187
188
  }
188
- }), e.directive("touch-class", {
189
- beforeMount: function(i, t) {
190
- E(i, {
189
+ }), s.directive("touch-class", {
190
+ beforeMount: function(e, t) {
191
+ O(e, {
191
192
  touchClass: t.value
192
193
  });
193
194
  }
194
- }), e.directive("touch-options", {
195
- beforeMount: function(i, t) {
196
- E(i, t.value);
195
+ }), s.directive("touch-options", {
196
+ beforeMount: function(e, t) {
197
+ O(e, t.value);
197
198
  }
198
199
  });
199
200
  }
200
201
  };
201
- const Q = /* @__PURE__ */ B({
202
+ const K = /* @__PURE__ */ y({
202
203
  __name: "Dialogs",
203
- setup(e) {
204
- const u = F(), m = M(() => u.active ? H(u.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
205
- function c() {
206
- var T, p, d;
207
- (T = u.active) != null && T.onCancel && u.active.onCancel(), (d = (p = u.active) == null ? void 0 : p.deferred) == null || d.resolve({
204
+ setup(s) {
205
+ const o = F(), d = X(() => o.active ? B(o.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
206
+ function a() {
207
+ var v, l, h;
208
+ (v = o.active) != null && v.onCancel && o.active.onCancel(), (h = (l = o.active) == null ? void 0 : l.deferred) == null || h.resolve({
208
209
  isCanceled: !0
209
- }), u.close();
210
+ }), o.close();
210
211
  }
211
- async function g() {
212
- var T, p, d;
213
- (T = u.active) != null && T.onConfirm && await u.active.onConfirm(), (d = (p = u.active) == null ? void 0 : p.deferred) == null || d.resolve({
212
+ async function p() {
213
+ var v, l, h;
214
+ (v = o.active) != null && v.onConfirm && await o.active.onConfirm(), (h = (l = o.active) == null ? void 0 : l.deferred) == null || h.resolve({
214
215
  isConfirmed: !0
215
- }), u.close();
216
+ }), o.close();
216
217
  }
217
- return (T, p) => {
218
- var d;
219
- return j(), P(A, X({
220
- open: !!m.value
221
- }, m.value, {
222
- onConfirm: g,
223
- onCancel: c
224
- }), x({ _: 2 }, [
225
- D((d = G(u).active) == null ? void 0 : d.slots, (s, n) => ({
226
- name: n,
227
- fn: N(() => [
228
- I(q, { render: s }, null, 8, ["render"])
218
+ return (v, l) => {
219
+ var h;
220
+ return x(), Y(A, D({
221
+ open: !!d.value
222
+ }, d.value, {
223
+ onConfirm: p,
224
+ onCancel: a
225
+ }), P({ _: 2 }, [
226
+ N((h = _(o).active) == null ? void 0 : h.slots, (b, c) => ({
227
+ name: c,
228
+ fn: I(() => [
229
+ j(q, { render: b }, null, 8, ["render"])
229
230
  ])
230
231
  }))
231
232
  ]), 1040, ["open"]);
232
233
  };
233
234
  }
234
- }), k = "stash-dialogs-mount-node", Z = {
235
- install(e, u) {
236
- const m = (u == null ? void 0 : u.mountNodeId) || k;
237
- let c = document.getElementById(m);
238
- if (c)
235
+ }), k = "stash-dialogs-mount-node", Q = {
236
+ install(s, o) {
237
+ const d = (o == null ? void 0 : o.mountNodeId) || k;
238
+ let a = document.getElementById(d);
239
+ if (a)
239
240
  return;
240
- c = document.createElement("div"), c.id = m, c.dataset.test = k, u != null && u.mountNodeClass && c.classList.add(u.mountNodeClass);
241
- const g = I(_(Q));
242
- document.body.appendChild(c), g.appContext = e._context, $(g, c);
241
+ a = document.createElement("div"), a.id = d, a.dataset.test = k, o != null && o.mountNodeClass && a.classList.add(o.mountNodeClass);
242
+ const p = j($(K));
243
+ document.body.appendChild(a), p.appContext = s._context, H(p, a);
243
244
  }
244
- };
245
- var S = /* @__PURE__ */ ((e) => (e.Purple900 = "purple-900", e.Purple800 = "purple-800", e.Purple700 = "purple-700", e.Purple600 = "purple-600", e.Purple500 = "purple-500", e.Purple400 = "purple-400", e.Purple300 = "purple-300", e.Purple200 = "purple-200", e.Purple100 = "purple-100", e.Royal900 = "royal-900", e.Royal800 = "royal-800", e.Royal700 = "royal-700", e.Royal600 = "royal-600", e.Royal500 = "royal-500", e.Royal400 = "royal-400", e.Royal300 = "royal-300", e.Royal200 = "royal-200", e.Royal100 = "royal-100", e.Blue900 = "blue-900", e.Blue800 = "blue-800", e.Blue700 = "blue-700", e.Blue600 = "blue-600", e.Blue500 = "blue-500", e.Blue400 = "blue-400", e.Blue300 = "blue-300", e.Blue200 = "blue-200", e.Blue100 = "blue-100", e.Teal900 = "teal-900", e.Teal800 = "teal-800", e.Teal700 = "teal-700", e.Teal600 = "teal-600", e.Teal500 = "teal-500", e.Teal400 = "teal-400", e.Teal300 = "teal-300", e.Teal200 = "teal-200", e.Teal100 = "teal-100", e.Green900 = "green-900", e.Green800 = "green-800", e.Green700 = "green-700", e.Green600 = "green-600", e.Green500 = "green-500", e.Green400 = "green-400", e.Green300 = "green-300", e.Green200 = "green-200", e.Green100 = "green-100", e.Seafoam900 = "seafoam-900", e.Seafoam800 = "seafoam-800", e.Seafoam700 = "seafoam-700", e.Seafoam600 = "seafoam-600", e.Seafoam500 = "seafoam-500", e.Seafoam400 = "seafoam-400", e.Seafoam300 = "seafoam-300", e.Seafoam200 = "seafoam-200", e.Seafoam100 = "seafoam-100", e.Yellow900 = "yellow-900", e.Yellow800 = "yellow-800", e.Yellow700 = "yellow-700", e.Yellow600 = "yellow-600", e.Yellow500 = "yellow-500", e.Yellow400 = "yellow-400", e.Yellow300 = "yellow-300", e.Yellow200 = "yellow-200", e.Yellow100 = "yellow-100", e.Orange900 = "orange-900", e.Orange800 = "orange-800", e.Orange700 = "orange-700", e.Orange600 = "orange-600", e.Orange500 = "orange-500", e.Orange400 = "orange-400", e.Orange300 = "orange-300", e.Orange200 = "orange-200", e.Orange100 = "orange-100", e.Red900 = "red-900", e.Red800 = "red-800", e.Red700 = "red-700", e.Red600 = "red-600", e.Red500 = "red-500", e.Red400 = "red-400", e.Red300 = "red-300", e.Red200 = "red-200", e.Red100 = "red-100", e.Ice900 = "ice-900", e.Ice800 = "ice-800", e.Ice700 = "ice-700", e.Ice600 = "ice-600", e.Ice500 = "ice-500", e.Ice400 = "ice-400", e.Ice300 = "ice-300", e.Ice200 = "ice-200", e.Ice100 = "ice-100", e.White = "white", e.Black = "black", e))(S || {}), C = /* @__PURE__ */ ((e) => (e.Purple700 = "purple-700", e.Purple500 = "purple-500", e.Purple100 = "purple-100", e.Royal700 = "royal-700", e.Royal500 = "royal-500", e.Royal100 = "royal-100", e.Blue700 = "blue-700", e.Blue500 = "blue-500", e.Blue100 = "blue-100", e.Teal700 = "teal-700", e.Teal500 = "teal-500", e.Teal100 = "teal-100", e.Green700 = "green-700", e.Green500 = "green-500", e.Green100 = "green-100", e.Seafoam700 = "seafoam-700", e.Seafoam500 = "seafoam-500", e.Seafoam100 = "seafoam-100", e.Yellow700 = "yellow-700", e.Yellow500 = "yellow-500", e.Yellow100 = "yellow-100", e.Orange700 = "orange-700", e.Orange500 = "orange-500", e.Orange100 = "orange-100", e.Red700 = "red-700", e.Red500 = "red-500", e.Red100 = "red-100", e.Ice700 = "ice-700", e.Ice500 = "ice-500", e.Ice200 = "ice-200", e.Ice100 = "ice-100", e.White = "white", e.Black = "black", e))(C || {}), ee = /* @__PURE__ */ ((e) => (e.Blue500 = "blue-500", e.Green500 = "green-500", e.Ice500 = "ice-500", e.Orange500 = "orange-500", e.Purple500 = "purple-500", e.Red500 = "red-500", e.Royal500 = "royal-500", e.Seafoam500 = "seafoam-500", e.Teal500 = "teal-500", e.Yellow500 = "yellow-500", e))(ee || {});
246
- const Xe = {
247
- install(e, {
248
- i18n: u = void 0,
249
- storage: m = void 0,
250
- staticPath: c = "/static",
251
- images: g = {
245
+ }, Xt = {
246
+ install(s, {
247
+ i18n: o = void 0,
248
+ storage: d = void 0,
249
+ staticPath: a = "/static",
250
+ images: p = {
252
251
  provider: "static"
253
252
  },
254
- googleMapsApiKey: T = void 0,
255
- menus: p,
256
- modals: d,
257
- toasts: s,
258
- dialogs: n
253
+ googleMapsApiKey: v = void 0,
254
+ menus: l,
255
+ modals: h,
256
+ toasts: b,
257
+ dialogs: c
259
258
  } = {}) {
260
- e.use(K), u && (Y.use(u.locale), Y.i18n(u && u.t)), m && z(m), e.provide("stashOptions", {
261
- i18n: u,
262
- images: g,
263
- storage: m,
264
- staticPath: c,
265
- googleMapsApiKey: T
266
- }), p !== !1 && e.use(U, p), d !== !1 && e.use(W, d), s !== !1 && e.use(V, s), n !== !1 && e.use(Z, n);
259
+ s.use(J), o && (w.use(o.locale), w.i18n(o && o.t)), d && V(d), s.provide("stashOptions", {
260
+ i18n: o,
261
+ images: p,
262
+ storage: d,
263
+ staticPath: a,
264
+ googleMapsApiKey: v
265
+ }), l !== !1 && s.use(R, l), h !== !1 && s.use(G, h), b !== !1 && s.use(U, b), c !== !1 && s.use(Q, c);
267
266
  }
268
267
  };
269
268
  export {
270
- _e as SpacingDensity,
271
- S as StashColors,
272
- C as StashCommonColors,
273
- $e as StashImageProvider,
274
- ee as StashPrimaryColors,
275
- Fe as StatusColors,
276
- qe as StatusIcons,
277
- Ae as StatusSeverities,
278
- Xe as default,
279
- z as overridePersistentStorage,
280
- Ge as persistentStorage
269
+ Ht as SpacingDensity,
270
+ Nt as StashColors,
271
+ _t as StashCommonColors,
272
+ Bt as StashImageProvider,
273
+ It as StashPrimaryColors,
274
+ qt as StatusColors,
275
+ At as StatusIcons,
276
+ Rt as StatusSeverities,
277
+ Xt as default,
278
+ V as overridePersistentStorage,
279
+ Dt as persistentStorage
281
280
  };
282
281
  //# sourceMappingURL=index.js.map