@leaflink/stash 45.1.6 → 45.1.8

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,18 +1,16 @@
1
- var j = Object.defineProperty;
2
- var D = (e, r, a) => r in e ? j(e, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[r] = a;
3
- var E = (e, r, a) => (D(e, typeof r != "symbol" ? r + "" : r, a), a);
4
- import L from "./locale.js";
5
- import { ref as P, reactive as X, readonly as x, defineComponent as G, computed as N, openBlock as _, createBlock as $, mergeProps as H, createSlots as F, renderList as q, unref as A, withCtx as U, createVNode as M, h as W, render as V } from "vue";
6
- import z from "lodash-es/omit";
7
- import J from "./CustomRender.js";
8
- import K from "./Dialog.js";
9
- import { M as Q } from "./MenusPlugin-9288029a.js";
10
- import Z from "./ModalsPlugin.js";
11
- import S from "./ToastsPlugin.js";
12
- import { overridePersistentStorage as C } from "./storage.js";
13
- import { persistentStorage as Ue } from "./storage.js";
14
- import { S as Ve, a as ze } from "./misc-76697f61.js";
15
- import { a as Ke, S as Qe, b as Ze } from "./statusLevels-a8b041f4.js";
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 D, renderList as x, unref as G, withCtx as N, createVNode as I, h as _, render as $ } from "vue";
3
+ import H from "lodash-es/omit";
4
+ import F from "./useDialog.js";
5
+ import q from "./CustomRender.js";
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";
16
14
  import "lodash-es/get";
17
15
  import "lodash-es/capitalize";
18
16
  import "lodash-es/uniqueId";
@@ -35,27 +33,27 @@ import "lodash-es/camelCase";
35
33
  import "lodash-es/isFinite";
36
34
  import "lodash-es/isPlainObject";
37
35
  import "./constants.js";
38
- function k(e) {
36
+ function h(e) {
39
37
  return e.type.indexOf("mouse") !== -1 ? e.clientX : e.touches[0].clientX;
40
38
  }
41
- function I(e) {
39
+ function L(e) {
42
40
  return e.type.indexOf("mouse") !== -1 ? e.clientY : e.touches[0].clientY;
43
41
  }
44
- var ee = function() {
42
+ var J = function() {
45
43
  var e = !1;
46
44
  try {
47
- var r = Object.defineProperty({}, "passive", {
45
+ var u = Object.defineProperty({}, "passive", {
48
46
  get: function() {
49
47
  e = !0;
50
48
  }
51
49
  });
52
- window.addEventListener("test", null, r);
50
+ window.addEventListener("test", null, u);
53
51
  } catch {
54
52
  }
55
53
  return e;
56
- }(), te = {
57
- install: function(e, r) {
58
- var a = Object.assign({}, {
54
+ }(), K = {
55
+ install: function(e, u) {
56
+ var m = Object.assign({}, {
59
57
  disableClick: !1,
60
58
  tapTolerance: 10,
61
59
  // px
@@ -70,255 +68,216 @@ var ee = function() {
70
68
  // ms
71
69
  rollOverFrequency: 100
72
70
  // ms
73
- }, r);
71
+ }, u);
74
72
  function c(i) {
75
- var t = this.$$touchObj, u = i.type.indexOf("touch") >= 0, v = i.type.indexOf("mouse") >= 0, m = this;
76
- u && (t.lastTouchStartTime = i.timeStamp), !(v && t.lastTouchStartTime && i.timeStamp - t.lastTouchStartTime < 350) && (t.touchStarted || (Y(this), t.touchStarted = !0, t.touchMoved = !1, t.swipeOutBounded = !1, t.startX = k(i), t.startY = I(i), t.currentX = 0, t.currentY = 0, t.touchStartTime = i.timeStamp, t.hasSwipe = l(this, "swipe") || l(this, "swipe.left") || l(this, "swipe.right") || l(this, "swipe.top") || l(this, "swipe.bottom"), l(this, "hold") && (t.touchHoldTimer = setTimeout(function() {
77
- t.touchHoldTimer = null, T(i, m, "hold");
78
- }, t.options.touchHoldTolerance)), T(i, this, "press")));
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, s(i, v, "hold");
76
+ }, t.options.touchHoldTolerance)), s(i, this, "press")));
79
77
  }
80
- function s(i) {
81
- var t = this.$$touchObj, u = k(i), v = I(i), m = t.currentX != u || t.currentY != v;
82
- if (t.currentX = u, t.currentY = v, t.touchMoved) {
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) {
83
81
  if (t.hasSwipe && !t.swipeOutBounded) {
84
- var d = t.options.swipeTolerance;
85
- t.swipeOutBounded = Math.abs(t.startX - t.currentX) > d && Math.abs(t.startY - t.currentY) > d;
82
+ var f = t.options.swipeTolerance;
83
+ t.swipeOutBounded = Math.abs(t.startX - t.currentX) > f && Math.abs(t.startY - t.currentY) > f;
86
84
  }
87
85
  } else {
88
- var f = t.options.tapTolerance;
89
- t.touchMoved = Math.abs(t.startX - t.currentX) > f || Math.abs(t.startY - t.currentY) > f, t.touchMoved && (h(t), T(i, this, "drag.once"));
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), s(i, this, "drag.once"));
90
88
  }
91
- if (l(this, "rollover") && m) {
92
- var n = i.timeStamp, w = t.options.rollOverFrequency;
93
- (t.touchRollTime == null || n > t.touchRollTime + w) && (t.touchRollTime = n, T(i, this, "rollover"));
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, s(i, this, "rollover"));
94
92
  }
95
- if (l(this, "drag") && t.touchStarted && t.touchMoved && m) {
96
- var n = i.timeStamp, w = t.options.dragFrequency;
97
- (t.touchDragTime == null || n > t.touchDragTime + w) && (t.touchDragTime = n, T(i, this, "drag"));
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, s(i, this, "drag"));
98
96
  }
99
97
  }
100
- function g() {
98
+ function T() {
101
99
  var i = this.$$touchObj;
102
- h(i), O(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
100
+ O(i), y(this), i.touchStarted = i.touchMoved = !1, i.startX = i.startY = 0;
103
101
  }
104
102
  function p(i) {
105
- var t = this.$$touchObj, u = i.type.indexOf("touch") >= 0, v = i.type.indexOf("mouse") >= 0;
106
- u && (t.lastTouchEndTime = i.timeStamp);
107
- var m = u && !t.touchHoldTimer;
108
- if (h(t), t.touchStarted = !1, O(this), !(v && t.lastTouchEndTime && i.timeStamp - t.lastTouchEndTime < 350))
109
- if (T(i, this, "release"), t.touchMoved) {
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 (s(i, this, "release"), t.touchMoved) {
110
108
  if (t.hasSwipe && !t.swipeOutBounded) {
111
- var f = t.options.swipeTolerance, d, n = Math.abs(t.startY - t.currentY), w = Math.abs(t.startX - t.currentX);
112
- (n > f || w > f) && (n > f ? d = t.startY > t.currentY ? "top" : "bottom" : d = t.startX > t.currentX ? "left" : "right", l(this, "swipe." + d) ? T(i, this, "swipe." + d, d) : T(i, this, "swipe", d));
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) ? s(i, this, "swipe." + f, f) : s(i, this, "swipe", f));
113
111
  }
114
- } else if (l(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
115
- i.cancelable && i.preventDefault(), T(i, this, "longtap");
116
- else if (l(this, "hold") && m) {
112
+ } else if (n(this, "longtap") && i.timeStamp - t.touchStartTime > t.options.longTapTimeInterval)
113
+ i.cancelable && i.preventDefault(), s(i, this, "longtap");
114
+ else if (n(this, "hold") && v) {
117
115
  i.cancelable && i.preventDefault();
118
116
  return;
119
117
  } else
120
- T(i, this, "tap");
118
+ s(i, this, "tap");
121
119
  }
122
- function o() {
123
- Y(this);
120
+ function d() {
121
+ R(this);
124
122
  }
125
123
  function b() {
126
- O(this);
124
+ y(this);
127
125
  }
128
- function l(i, t) {
129
- var u = i.$$touchObj.callbacks[t];
130
- return u != null && u.length > 0;
126
+ function n(i, t) {
127
+ var r = i.$$touchObj.callbacks[t];
128
+ return r != null && r.length > 0;
131
129
  }
132
- function T(i, t, u, v) {
133
- var m = t.$$touchObj, f = m.callbacks[u];
134
- if (f == null || f.length === 0)
130
+ function s(i, t, r, o) {
131
+ var v = t.$$touchObj, l = v.callbacks[r];
132
+ if (l == null || l.length === 0)
135
133
  return null;
136
- for (var d = 0; d < f.length; d++) {
137
- var n = f[d];
138
- n.modifiers.stop && i.stopPropagation(), n.modifiers.prevent && i.preventDefault(), !(n.modifiers.self && i.target !== i.currentTarget) && typeof n.value == "function" && (v ? n.value(v, i) : n.value(i));
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));
139
137
  }
140
138
  }
141
- function Y(i) {
139
+ function R(i) {
142
140
  var t = i.$$touchObj.options.touchClass;
143
141
  t && i.classList.add(t);
144
142
  }
145
- function O(i) {
143
+ function y(i) {
146
144
  var t = i.$$touchObj.options.touchClass;
147
145
  t && i.classList.remove(t);
148
146
  }
149
- function h(i) {
147
+ function O(i) {
150
148
  i.touchHoldTimer && (clearTimeout(i.touchHoldTimer), i.touchHoldTimer = null);
151
149
  }
152
- function R(i, t) {
153
- var u = i.$$touchObj || {
150
+ function E(i, t) {
151
+ var r = i.$$touchObj || {
154
152
  // an object contains all callbacks registered,
155
153
  // key is event name, value is an array
156
154
  callbacks: {},
157
155
  // prevent bind twice, set to true when event bound
158
156
  hasBindTouchEvents: !1,
159
157
  // default options, would be override by v-touch-options
160
- options: a
158
+ options: m
161
159
  };
162
- return t && (u.options = Object.assign({}, u.options, t)), i.$$touchObj = u, i.$$touchObj;
160
+ return t && (r.options = Object.assign({}, r.options, t)), i.$$touchObj = r, i.$$touchObj;
163
161
  }
164
162
  e.directive("touch", {
165
163
  beforeMount: function(i, t) {
166
- var u = R(i), v = ee ? { passive: !0 } : !1, m = t.arg || "tap";
167
- switch (m) {
164
+ var r = E(i), o = J ? { passive: !0 } : !1, v = t.arg || "tap";
165
+ switch (v) {
168
166
  case "swipe":
169
- var f = t.modifiers;
170
- if (f.left || f.right || f.top || f.bottom) {
171
- for (var d in t.modifiers)
172
- if (["left", "right", "top", "bottom"].indexOf(d) >= 0) {
173
- var n = "swipe." + d;
174
- u.callbacks[n] = u.callbacks[n] || [], u.callbacks[n].push(t);
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);
175
173
  }
176
174
  } else
177
- u.callbacks.swipe = u.callbacks.swipe || [], u.callbacks.swipe.push(t);
175
+ r.callbacks.swipe = r.callbacks.swipe || [], r.callbacks.swipe.push(t);
178
176
  break;
179
177
  case "press":
180
178
  case "drag":
181
- t.modifiers.disablePassive && (v = !1);
179
+ t.modifiers.disablePassive && (o = !1);
182
180
  default:
183
- u.callbacks[m] = u.callbacks[m] || [], u.callbacks[m].push(t);
181
+ r.callbacks[v] = r.callbacks[v] || [], r.callbacks[v].push(t);
184
182
  }
185
- u.hasBindTouchEvents || (i.addEventListener("touchstart", c, v), i.addEventListener("touchmove", s, v), i.addEventListener("touchcancel", g), i.addEventListener("touchend", p), u.options.disableClick || (i.addEventListener("mousedown", c), i.addEventListener("mousemove", s), i.addEventListener("mouseup", p), i.addEventListener("mouseenter", o), i.addEventListener("mouseleave", b)), u.hasBindTouchEvents = !0);
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", b)), r.hasBindTouchEvents = !0);
186
184
  },
187
185
  unmounted: function(i) {
188
- i.removeEventListener("touchstart", c), i.removeEventListener("touchmove", s), i.removeEventListener("touchcancel", g), i.removeEventListener("touchend", p), i.$$touchObj && !i.$$touchObj.options.disableClick && (i.removeEventListener("mousedown", c), i.removeEventListener("mousemove", s), i.removeEventListener("mouseup", p), i.removeEventListener("mouseenter", o), i.removeEventListener("mouseleave", b)), delete i.$$touchObj;
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", b)), delete i.$$touchObj;
189
187
  }
190
188
  }), e.directive("touch-class", {
191
189
  beforeMount: function(i, t) {
192
- R(i, {
190
+ E(i, {
193
191
  touchClass: t.value
194
192
  });
195
193
  }
196
194
  }), e.directive("touch-options", {
197
195
  beforeMount: function(i, t) {
198
- R(i, t.value);
196
+ E(i, t.value);
199
197
  }
200
198
  });
201
199
  }
202
200
  };
203
- class ie {
204
- constructor() {
205
- E(this, "promise");
206
- E(this, "reject");
207
- E(this, "resolve");
208
- this.promise = new Promise((r, a) => {
209
- this.reject = a, this.resolve = r;
210
- });
211
- }
212
- }
213
- const y = P();
214
- function re() {
215
- function e(a) {
216
- var c;
217
- if (y.value)
218
- throw new Error("A Dialog is already being displayed");
219
- return y.value = {
220
- ...a,
221
- deferred: new ie()
222
- }, (c = y.value.deferred) == null ? void 0 : c.promise;
223
- }
224
- function r() {
225
- y.value = void 0;
226
- }
227
- return X({
228
- /**
229
- * The currently open dialog information.
230
- */
231
- active: x(y),
232
- /**
233
- * Opens the dialog.
234
- */
235
- open: e,
236
- /**
237
- * Closes the dialog.
238
- */
239
- close: r
240
- });
241
- }
242
- const ue = /* @__PURE__ */ G({
201
+ const Q = /* @__PURE__ */ B({
243
202
  __name: "Dialogs",
244
203
  setup(e) {
245
- const r = re(), a = N(() => r.active ? z(r.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
204
+ const u = F(), m = M(() => u.active ? H(u.active, ["deferred", "onConfirm", "onCancel", "slots"]) : null);
246
205
  function c() {
247
- var g, p, o;
248
- (g = r.active) != null && g.onCancel && r.active.onCancel(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
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({
249
208
  isCanceled: !0
250
- }), r.close();
209
+ }), u.close();
251
210
  }
252
- async function s() {
253
- var g, p, o;
254
- (g = r.active) != null && g.onConfirm && await r.active.onConfirm(), (o = (p = r.active) == null ? void 0 : p.deferred) == null || o.resolve({
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({
255
214
  isConfirmed: !0
256
- }), r.close();
215
+ }), u.close();
257
216
  }
258
- return (g, p) => {
259
- var o;
260
- return _(), $(K, H({
261
- open: !!a.value
262
- }, a.value, {
263
- onConfirm: s,
217
+ return (T, p) => {
218
+ var d;
219
+ return j(), P(A, X({
220
+ open: !!m.value
221
+ }, m.value, {
222
+ onConfirm: g,
264
223
  onCancel: c
265
- }), F({ _: 2 }, [
266
- q((o = A(r).active) == null ? void 0 : o.slots, (b, l) => ({
267
- name: l,
268
- fn: U(() => [
269
- M(J, { render: b }, null, 8, ["render"])
224
+ }), D({ _: 2 }, [
225
+ x((d = G(u).active) == null ? void 0 : d.slots, (b, n) => ({
226
+ name: n,
227
+ fn: N(() => [
228
+ I(q, { render: b }, null, 8, ["render"])
270
229
  ])
271
230
  }))
272
231
  ]), 1040, ["open"]);
273
232
  };
274
233
  }
275
- }), B = "stash-dialogs-mount-node", ae = {
276
- install(e, r) {
277
- const a = (r == null ? void 0 : r.mountNodeId) || B;
278
- let c = document.getElementById(a);
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);
279
238
  if (c)
280
239
  return;
281
- c = document.createElement("div"), c.id = a, c.dataset.test = B, r != null && r.mountNodeClass && c.classList.add(r.mountNodeClass);
282
- const s = M(W(ue));
283
- document.body.appendChild(c), s.appContext = e._context, V(s, c);
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);
284
243
  }
285
244
  };
286
- var ce = /* @__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))(ce || {}), ne = /* @__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))(ne || {}), le = /* @__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))(le || {});
287
- const Fe = {
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 = {
288
247
  install(e, {
289
- i18n: r = void 0,
290
- storage: a = void 0,
248
+ i18n: u = void 0,
249
+ storage: m = void 0,
291
250
  staticPath: c = "/static",
292
- images: s = {
251
+ images: g = {
293
252
  provider: "static",
294
253
  staticDomains: []
295
254
  },
296
- googleMapsApiKey: g = void 0,
255
+ googleMapsApiKey: T = void 0,
297
256
  menus: p,
298
- modals: o,
257
+ modals: d,
299
258
  toasts: b,
300
- dialogs: l
259
+ dialogs: n
301
260
  } = {}) {
302
- e.use(te), r && (L.use(r.locale), L.i18n(r && r.t)), a && C(a), e.provide("stashOptions", {
303
- i18n: r,
304
- images: s,
305
- storage: a,
261
+ e.use(K), u && (Y.use(u.locale), Y.i18n(u && u.t)), m && z(m), e.provide("stashOptions", {
262
+ i18n: u,
263
+ images: g,
264
+ storage: m,
306
265
  staticPath: c,
307
- googleMapsApiKey: g
308
- }), p !== !1 && e.use(Q, p), o !== !1 && e.use(Z, o), b !== !1 && e.use(S, b), l !== !1 && e.use(ae, l);
266
+ googleMapsApiKey: T
267
+ }), p !== !1 && e.use(U, p), d !== !1 && e.use(W, d), b !== !1 && e.use(V, b), n !== !1 && e.use(Z, n);
309
268
  }
310
269
  };
311
270
  export {
312
- Ve as SpacingDensity,
313
- ce as StashColors,
314
- ne as StashCommonColors,
315
- ze as StashImageProvider,
316
- le as StashPrimaryColors,
317
- Ke as StatusColors,
318
- Qe as StatusIcons,
319
- Ze as StatusSeverities,
320
- Fe as default,
321
- C as overridePersistentStorage,
322
- Ue as persistentStorage
271
+ _e as SpacingDensity,
272
+ S as StashColors,
273
+ C as StashCommonColors,
274
+ $e as StashImageProvider,
275
+ ee as StashPrimaryColors,
276
+ Fe as StatusColors,
277
+ qe as StatusIcons,
278
+ Ae as StatusSeverities,
279
+ Xe as default,
280
+ z as overridePersistentStorage,
281
+ Ge as persistentStorage
323
282
  };
324
283
  //# sourceMappingURL=index.js.map