@leaflink/stash 44.0.0-beta.1 → 44.0.0-beta.3

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.
Files changed (166) hide show
  1. package/dist/ActionsDropdown.js +9 -9
  2. package/dist/ActionsDropdown.js.map +1 -1
  3. package/dist/AddressSelect.js +12 -11
  4. package/dist/AddressSelect.js.map +1 -1
  5. package/dist/Alert.js +2 -2
  6. package/dist/Alert.js.map +1 -1
  7. package/dist/AppNavigationItem.js +15 -15
  8. package/dist/AppNavigationItem.js.map +1 -1
  9. package/dist/AppSidebar.js +17 -17
  10. package/dist/AppSidebar.js.map +1 -1
  11. package/dist/AppTopbar.js +12 -12
  12. package/dist/Avatar.js +12 -12
  13. package/dist/Avatar.js.map +1 -1
  14. package/dist/Backdrop.js +1 -1
  15. package/dist/Backdrop.js.map +1 -1
  16. package/dist/Badge.js +12 -12
  17. package/dist/Badge.js.map +1 -1
  18. package/dist/Button.js +1 -1
  19. package/dist/Button.js.map +1 -1
  20. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b2ee90e6.js +17 -0
  21. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b2ee90e6.js.map +1 -0
  22. package/dist/ButtonGroup.js +26 -26
  23. package/dist/ButtonGroup.js.map +1 -1
  24. package/dist/Card.js +3 -3
  25. package/dist/Card.js.map +1 -1
  26. package/dist/CardHeader.js +3 -3
  27. package/dist/CardMedia.js +1 -1
  28. package/dist/CardMedia.js.map +1 -1
  29. package/dist/Carousel.js +24 -24
  30. package/dist/Carousel.js.map +1 -1
  31. package/dist/Checkbox.js +27 -26
  32. package/dist/Checkbox.js.map +1 -1
  33. package/dist/{Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js → Checkbox.vue_vue_type_style_index_0_scoped_dbd26d7f_lang-4ed993c7.js} +1 -1
  34. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_dbd26d7f_lang-4ed993c7.js.map +1 -0
  35. package/dist/ChevronToggle.js +1 -1
  36. package/dist/Chip.js +1 -1
  37. package/dist/Chip.js.map +1 -1
  38. package/dist/ConfirmationCodeInput.js +21 -21
  39. package/dist/ConfirmationCodeInput.js.map +1 -1
  40. package/dist/ContextSwitcher.js +6 -5
  41. package/dist/ContextSwitcher.js.map +1 -1
  42. package/dist/Copy.js +1 -1
  43. package/dist/CurrencyInput.js +2 -2
  44. package/dist/DataView.js +1 -1
  45. package/dist/DataViewFilters.js +7 -7
  46. package/dist/DataViewFilters.js.map +1 -1
  47. package/dist/DataViewSortButton.js +5 -5
  48. package/dist/DataViewSortButton.js.map +1 -1
  49. package/dist/DataViewToolbar.js +4 -4
  50. package/dist/DataViewToolbar.js.map +1 -1
  51. package/dist/DatePicker.js +8 -8
  52. package/dist/DatePicker.js.map +1 -1
  53. package/dist/DescriptionListTerm.js +1 -1
  54. package/dist/DescriptionListTerm.js.map +1 -1
  55. package/dist/Dialog.js +34 -34
  56. package/dist/Dialog.js.map +1 -1
  57. package/dist/Dropdown.js +3 -3
  58. package/dist/Dropdown.js.map +1 -1
  59. package/dist/EmptyState.js +1 -1
  60. package/dist/EmptyState.js.map +1 -1
  61. package/dist/Field.js +2 -2
  62. package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js → Field.vue_vue_type_script_setup_true_lang-42cf79d4.js} +5 -5
  63. package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js.map → Field.vue_vue_type_script_setup_true_lang-42cf79d4.js.map} +1 -1
  64. package/dist/FileUpload.js +25 -25
  65. package/dist/FileUpload.js.map +1 -1
  66. package/dist/FilterChip.js +32 -32
  67. package/dist/FilterChip.js.map +1 -1
  68. package/dist/FilterDrawerItem.js +4 -4
  69. package/dist/FilterDrawerItem.js.map +1 -1
  70. package/dist/FilterDropdown.js +19 -19
  71. package/dist/FilterDropdown.js.map +1 -1
  72. package/dist/FilterSelect.js +2 -2
  73. package/dist/Filters.js +7 -6
  74. package/dist/Filters.js.map +1 -1
  75. package/dist/HttpError.js +30 -30
  76. package/dist/HttpError.js.map +1 -1
  77. package/dist/IconLabel.js +1 -1
  78. package/dist/IconLabel.js.map +1 -1
  79. package/dist/InlineEdit.js +3 -3
  80. package/dist/InlineEdit.js.map +1 -1
  81. package/dist/Input.js +37 -37
  82. package/dist/Input.js.map +1 -1
  83. package/dist/InputOptions.js +37 -36
  84. package/dist/InputOptions.js.map +1 -1
  85. package/dist/Label.js +1 -1
  86. package/dist/{Label.vue_vue_type_script_setup_true_lang-1d29d98a.js → Label.vue_vue_type_script_setup_true_lang-c5589919.js} +2 -2
  87. package/dist/{Label.vue_vue_type_script_setup_true_lang-1d29d98a.js.map → Label.vue_vue_type_script_setup_true_lang-c5589919.js.map} +1 -1
  88. package/dist/ListItem.js +6 -5
  89. package/dist/ListItem.js.map +1 -1
  90. package/dist/ListView.js +55 -54
  91. package/dist/ListView.js.map +1 -1
  92. package/dist/Menu.js +1 -1
  93. package/dist/Menu.js.map +1 -1
  94. package/dist/Metric.js +4 -4
  95. package/dist/Metric.js.map +1 -1
  96. package/dist/Modal.js +21 -21
  97. package/dist/Modal.js.map +1 -1
  98. package/dist/Module.js +2 -2
  99. package/dist/Module.js.map +1 -1
  100. package/dist/ModuleContent.js +2 -2
  101. package/dist/ModuleContent.js.map +1 -1
  102. package/dist/ModuleFooter.js +11 -11
  103. package/dist/ModuleFooter.js.map +1 -1
  104. package/dist/ModuleHeader.js +6 -6
  105. package/dist/ModuleHeader.js.map +1 -1
  106. package/dist/ObfuscateText.js +1 -1
  107. package/dist/PageHeader.js +3 -3
  108. package/dist/PageHeader.js.map +1 -1
  109. package/dist/PageNavigation.js +2 -2
  110. package/dist/Paginate.js +1 -1
  111. package/dist/Paginate.js.map +1 -1
  112. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-1a2084f9.js +11 -0
  113. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-1a2084f9.js.map +1 -0
  114. package/dist/QuickAction.js +11 -11
  115. package/dist/QuickAction.js.map +1 -1
  116. package/dist/Radio.js +2 -2
  117. package/dist/Radio.js.map +1 -1
  118. package/dist/RadioGroup.js +44 -44
  119. package/dist/RadioGroup.js.map +1 -1
  120. package/dist/RadioNew.js +14 -14
  121. package/dist/SearchBar.js +21 -21
  122. package/dist/SearchBar.js.map +1 -1
  123. package/dist/Select.js +187 -186
  124. package/dist/Select.js.map +1 -1
  125. package/dist/SelectStatus.js +22 -21
  126. package/dist/SelectStatus.js.map +1 -1
  127. package/dist/Step.js +37 -37
  128. package/dist/Step.js.map +1 -1
  129. package/dist/Switch.js +26 -25
  130. package/dist/Switch.js.map +1 -1
  131. package/dist/Tab.js +3 -2
  132. package/dist/Tab.js.map +1 -1
  133. package/dist/{Tab.vue_vue_type_script_setup_true_lang-b810bee8.js → Tab.vue_vue_type_script_setup_true_lang-4a40f015.js} +23 -22
  134. package/dist/Tab.vue_vue_type_script_setup_true_lang-4a40f015.js.map +1 -0
  135. package/dist/Table.js +20 -19
  136. package/dist/Table.js.map +1 -1
  137. package/dist/TableCell.js +22 -21
  138. package/dist/TableCell.js.map +1 -1
  139. package/dist/TableHeaderCell.js +7 -6
  140. package/dist/TableHeaderCell.js.map +1 -1
  141. package/dist/TableHeaderRow.js +6 -5
  142. package/dist/TableHeaderRow.js.map +1 -1
  143. package/dist/TableRow.js +24 -23
  144. package/dist/TableRow.js.map +1 -1
  145. package/dist/Tabs.js +2 -2
  146. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js → Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js} +3 -3
  147. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js.map → Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js.map} +1 -1
  148. package/dist/Textarea.js +2 -2
  149. package/dist/components.css +1 -1
  150. package/dist/index.js +21 -20
  151. package/dist/index.js.map +1 -1
  152. package/dist/storage.js +3 -2
  153. package/dist/storage.js.map +1 -1
  154. package/dist/useGoogleMaps.js.map +1 -1
  155. package/dist/utils/storage.js +30 -29
  156. package/dist/utils/storage.js.map +1 -1
  157. package/package.json +2 -2
  158. package/styles/_base.scss +1 -1
  159. package/styles/_core.scss +1 -1
  160. package/styles/elements/_links.scss +1 -1
  161. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js +0 -17
  162. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map +0 -1
  163. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +0 -1
  164. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +0 -11
  165. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +0 -1
  166. package/dist/Tab.vue_vue_type_script_setup_true_lang-b810bee8.js.map +0 -1
package/dist/Select.js CHANGED
@@ -1,17 +1,18 @@
1
- import { computed as T, unref as F, ref as k, shallowRef as bt, watch as Q, getCurrentScope as xt, onScopeDispose as _t, shallowReadonly as oe, defineComponent as Et, useAttrs as St, useSlots as Ct, nextTick as Ne, onMounted as Rt, onUnmounted as Ot, openBlock as B, createBlock as Re, normalizeClass as ue, createSlots as kt, withCtx as fe, createElementVNode as z, createElementBlock as I, Fragment as Oe, renderList as ke, toDisplayString as le, withDirectives as de, withKeys as je, createCommentVNode as pe, renderSlot as Te, createTextVNode as he, withModifiers as me, createVNode as se, Teleport as Tt, Transition as Bt, normalizeStyle as At, vModelText as Lt, vShow as Ve, pushScopeId as Mt, popScopeId as Dt } from "vue";
2
- import Ft from "lodash-es/debounce";
3
- import Pt from "lodash-es/isEmpty";
1
+ import { computed as T, unref as F, ref as k, shallowRef as bt, watch as Q, getCurrentScope as xt, onScopeDispose as _t, shallowReadonly as oe, defineComponent as Et, useAttrs as St, useSlots as Ct, nextTick as Ne, onMounted as Rt, onUnmounted as Ot, openBlock as B, createBlock as Re, normalizeClass as ue, createSlots as kt, withCtx as fe, createElementVNode as z, createElementBlock as I, Fragment as Oe, renderList as ke, toDisplayString as le, withDirectives as de, withKeys as je, createCommentVNode as pe, renderSlot as Te, createTextVNode as me, withModifiers as he, createVNode as se, Teleport as Tt, Transition as Bt, normalizeStyle as At, vModelText as Lt, vShow as Ve, pushScopeId as Mt, popScopeId as Dt } from "vue";
2
+ import Ft from "@leaflink/snitch";
3
+ import Pt from "lodash-es/debounce";
4
+ import It from "lodash-es/isEmpty";
4
5
  import qe from "lodash-es/isEqual";
5
- import It from "lodash-es/isPlainObject";
6
- import Nt from "lodash-es/uniqueId";
7
- import Vt from "./useSearch.js";
8
- import { DEBOUNCE as $t, KEY_CODES as ie } from "./constants.js";
9
- import Ht from "./clickoutside.js";
10
- import { D as zt } from "./MenusPlugin-5e93f0a5.js";
6
+ import Nt from "lodash-es/isPlainObject";
7
+ import Vt from "lodash-es/uniqueId";
8
+ import $t from "./useSearch.js";
9
+ import { DEBOUNCE as Ht, KEY_CODES as ie } from "./constants.js";
10
+ import zt from "./clickoutside.js";
11
+ import { D as Wt } from "./MenusPlugin-5e93f0a5.js";
11
12
  import Xe from "./Chip.js";
12
- import { _ as Wt } from "./Field.vue_vue_type_script_setup_true_lang-475832fe.js";
13
+ import { _ as Kt } from "./Field.vue_vue_type_script_setup_true_lang-42cf79d4.js";
13
14
  import ve from "./Icon.js";
14
- import { _ as Kt } from "./_plugin-vue_export-helper-dad06003.js";
15
+ import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.js";
15
16
  import "lodash-es/get";
16
17
  import "./searchFuzzy-74a7de1c.js";
17
18
  import "./_commonjsHelpers-10dfc225.js";
@@ -21,17 +22,17 @@ import "lodash-es/isFinite";
21
22
  import "./utils/colorScheme.js";
22
23
  import "./index-79ce320f.js";
23
24
  import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
24
- import "./Label.vue_vue_type_script_setup_true_lang-1d29d98a.js";
25
+ import "./Label.vue_vue_type_script_setup_true_lang-c5589919.js";
25
26
  import "./locale.js";
26
27
  const ge = Math.min, N = Math.max, Ae = Math.round, Be = Math.floor, X = (e) => ({
27
28
  x: e,
28
29
  y: e
29
- }), Ut = {
30
+ }), jt = {
30
31
  left: "right",
31
32
  right: "left",
32
33
  bottom: "top",
33
34
  top: "bottom"
34
- }, jt = {
35
+ }, qt = {
35
36
  start: "end",
36
37
  end: "start"
37
38
  };
@@ -44,7 +45,7 @@ function Z(e) {
44
45
  function we(e) {
45
46
  return e.split("-")[1];
46
47
  }
47
- function qt(e) {
48
+ function Xt(e) {
48
49
  return e === "x" ? "y" : "x";
49
50
  }
50
51
  function tt(e) {
@@ -54,22 +55,22 @@ function Fe(e) {
54
55
  return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
55
56
  }
56
57
  function nt(e) {
57
- return qt(Fe(e));
58
+ return Xt(Fe(e));
58
59
  }
59
- function Xt(e, n, t) {
60
+ function Yt(e, n, t) {
60
61
  t === void 0 && (t = !1);
61
62
  const o = we(e), l = nt(e), s = tt(l);
62
63
  let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
63
64
  return n.reference[s] > n.floating[s] && (i = Le(i)), [i, Le(i)];
64
65
  }
65
- function Yt(e) {
66
+ function Gt(e) {
66
67
  const n = Le(e);
67
68
  return [$e(e), n, $e(n)];
68
69
  }
69
70
  function $e(e) {
70
- return e.replace(/start|end/g, (n) => jt[n]);
71
+ return e.replace(/start|end/g, (n) => qt[n]);
71
72
  }
72
- function Gt(e, n, t) {
73
+ function Jt(e, n, t) {
73
74
  const o = ["left", "right"], l = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
74
75
  switch (e) {
75
76
  case "top":
@@ -82,15 +83,15 @@ function Gt(e, n, t) {
82
83
  return [];
83
84
  }
84
85
  }
85
- function Jt(e, n, t, o) {
86
+ function Qt(e, n, t, o) {
86
87
  const l = we(e);
87
- let s = Gt(Z(e), t === "start", o);
88
+ let s = Jt(Z(e), t === "start", o);
88
89
  return l && (s = s.map((i) => i + "-" + l), n && (s = s.concat(s.map($e)))), s;
89
90
  }
90
91
  function Le(e) {
91
- return e.replace(/left|right|bottom|top/g, (n) => Ut[n]);
92
+ return e.replace(/left|right|bottom|top/g, (n) => jt[n]);
92
93
  }
93
- function Qt(e) {
94
+ function Zt(e) {
94
95
  return {
95
96
  top: 0,
96
97
  right: 0,
@@ -99,8 +100,8 @@ function Qt(e) {
99
100
  ...e
100
101
  };
101
102
  }
102
- function Zt(e) {
103
- return typeof e != "number" ? Qt(e) : {
103
+ function en(e) {
104
+ return typeof e != "number" ? Zt(e) : {
104
105
  top: e,
105
106
  right: e,
106
107
  bottom: e,
@@ -121,7 +122,7 @@ function Ye(e, n, t) {
121
122
  reference: o,
122
123
  floating: l
123
124
  } = e;
124
- const s = Fe(n), i = nt(n), c = tt(i), r = Z(n), u = s === "y", p = o.x + o.width / 2 - l.width / 2, m = o.y + o.height / 2 - l.height / 2, g = o[c] / 2 - l[c] / 2;
125
+ const s = Fe(n), i = nt(n), c = tt(i), r = Z(n), u = s === "y", p = o.x + o.width / 2 - l.width / 2, h = o.y + o.height / 2 - l.height / 2, g = o[c] / 2 - l[c] / 2;
125
126
  let d;
126
127
  switch (r) {
127
128
  case "top":
@@ -139,13 +140,13 @@ function Ye(e, n, t) {
139
140
  case "right":
140
141
  d = {
141
142
  x: o.x + o.width,
142
- y: m
143
+ y: h
143
144
  };
144
145
  break;
145
146
  case "left":
146
147
  d = {
147
148
  x: o.x - l.width,
148
- y: m
149
+ y: h
149
150
  };
150
151
  break;
151
152
  default:
@@ -164,7 +165,7 @@ function Ye(e, n, t) {
164
165
  }
165
166
  return d;
166
167
  }
167
- const en = async (e, n, t) => {
168
+ const tn = async (e, n, t) => {
168
169
  const {
169
170
  placement: o = "bottom",
170
171
  strategy: l = "absolute",
@@ -177,7 +178,7 @@ const en = async (e, n, t) => {
177
178
  strategy: l
178
179
  }), {
179
180
  x: p,
180
- y: m
181
+ y: h
181
182
  } = Ye(u, o, r), g = o, d = {}, f = 0;
182
183
  for (let b = 0; b < c.length; b++) {
183
184
  const {
@@ -190,7 +191,7 @@ const en = async (e, n, t) => {
190
191
  reset: C
191
192
  } = await v({
192
193
  x: p,
193
- y: m,
194
+ y: h,
194
195
  initialPlacement: o,
195
196
  placement: g,
196
197
  strategy: l,
@@ -202,7 +203,7 @@ const en = async (e, n, t) => {
202
203
  floating: n
203
204
  }
204
205
  });
205
- if (p = y ?? p, m = E ?? m, d = {
206
+ if (p = y ?? p, h = E ?? h, d = {
206
207
  ...d,
207
208
  [_]: {
208
209
  ...d[_],
@@ -215,14 +216,14 @@ const en = async (e, n, t) => {
215
216
  strategy: l
216
217
  }) : C.rects), {
217
218
  x: p,
218
- y: m
219
+ y: h
219
220
  } = Ye(u, g, r)), b = -1;
220
221
  continue;
221
222
  }
222
223
  }
223
224
  return {
224
225
  x: p,
225
- y: m,
226
+ y: h,
226
227
  placement: g,
227
228
  strategy: l,
228
229
  middlewareData: d
@@ -241,15 +242,15 @@ async function ot(e, n) {
241
242
  } = e, {
242
243
  boundary: u = "clippingAncestors",
243
244
  rootBoundary: p = "viewport",
244
- elementContext: m = "floating",
245
+ elementContext: h = "floating",
245
246
  altBoundary: g = !1,
246
247
  padding: d = 0
247
- } = De(n, e), f = Zt(d), _ = c[g ? m === "floating" ? "reference" : "floating" : m], v = Me(await s.getClippingRect({
248
+ } = De(n, e), f = en(d), _ = c[g ? h === "floating" ? "reference" : "floating" : h], v = Me(await s.getClippingRect({
248
249
  element: (t = await (s.isElement == null ? void 0 : s.isElement(_))) == null || t ? _ : _.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
249
250
  boundary: u,
250
251
  rootBoundary: p,
251
252
  strategy: r
252
- })), y = m === "floating" ? {
253
+ })), y = h === "floating" ? {
253
254
  ...i.floating,
254
255
  x: o,
255
256
  y: l
@@ -271,7 +272,7 @@ async function ot(e, n) {
271
272
  right: (C.right - v.right + f.right) / R.x
272
273
  };
273
274
  }
274
- const tn = function(e) {
275
+ const nn = function(e) {
275
276
  return e === void 0 && (e = {}), {
276
277
  name: "flip",
277
278
  options: e,
@@ -286,7 +287,7 @@ const tn = function(e) {
286
287
  elements: u
287
288
  } = n, {
288
289
  mainAxis: p = !0,
289
- crossAxis: m = !0,
290
+ crossAxis: h = !0,
290
291
  fallbackPlacements: g,
291
292
  fallbackStrategy: d = "bestFit",
292
293
  fallbackAxisSideDirection: f = "none",
@@ -295,12 +296,12 @@ const tn = function(e) {
295
296
  } = De(e, n);
296
297
  if ((t = s.arrow) != null && t.alignmentOffset)
297
298
  return {};
298
- const v = Z(l), y = Z(c) === c, E = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), R = g || (y || !b ? [Le(c)] : Yt(c));
299
- !g && f !== "none" && R.push(...Jt(c, b, f, E));
299
+ const v = Z(l), y = Z(c) === c, E = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), R = g || (y || !b ? [Le(c)] : Gt(c));
300
+ !g && f !== "none" && R.push(...Qt(c, b, f, E));
300
301
  const C = [c, ...R], O = await ot(n, _), x = [];
301
302
  let M = ((o = s.flip) == null ? void 0 : o.overflows) || [];
302
- if (p && x.push(O[v]), m) {
303
- const K = Xt(l, i, E);
303
+ if (p && x.push(O[v]), h) {
304
+ const K = Yt(l, i, E);
304
305
  x.push(O[K[0]], O[K[1]]);
305
306
  }
306
307
  if (M = [...M, {
@@ -343,25 +344,25 @@ const tn = function(e) {
343
344
  }
344
345
  };
345
346
  };
346
- async function nn(e, n) {
347
+ async function on(e, n) {
347
348
  const {
348
349
  placement: t,
349
350
  platform: o,
350
351
  elements: l
351
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Z(t), c = we(t), r = Fe(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, p = s && r ? -1 : 1, m = De(n, e);
352
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = Z(t), c = we(t), r = Fe(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, p = s && r ? -1 : 1, h = De(n, e);
352
353
  let {
353
354
  mainAxis: g,
354
355
  crossAxis: d,
355
356
  alignmentAxis: f
356
- } = typeof m == "number" ? {
357
- mainAxis: m,
357
+ } = typeof h == "number" ? {
358
+ mainAxis: h,
358
359
  crossAxis: 0,
359
360
  alignmentAxis: null
360
361
  } : {
361
362
  mainAxis: 0,
362
363
  crossAxis: 0,
363
364
  alignmentAxis: null,
364
- ...m
365
+ ...h
365
366
  };
366
367
  return c && typeof f == "number" && (d = c === "end" ? f * -1 : f), r ? {
367
368
  x: d * p,
@@ -371,7 +372,7 @@ async function nn(e, n) {
371
372
  y: d * p
372
373
  };
373
374
  }
374
- const on = function(e) {
375
+ const ln = function(e) {
375
376
  return e === void 0 && (e = 0), {
376
377
  name: "offset",
377
378
  options: e,
@@ -382,7 +383,7 @@ const on = function(e) {
382
383
  y: s,
383
384
  placement: i,
384
385
  middlewareData: c
385
- } = n, r = await nn(n, e);
386
+ } = n, r = await on(n, e);
386
387
  return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
387
388
  x: l + r.x,
388
389
  y: s + r.y,
@@ -393,7 +394,7 @@ const on = function(e) {
393
394
  };
394
395
  }
395
396
  };
396
- }, ln = function(e) {
397
+ }, sn = function(e) {
397
398
  return e === void 0 && (e = {}), {
398
399
  name: "size",
399
400
  options: e,
@@ -407,7 +408,7 @@ const on = function(e) {
407
408
  apply: i = () => {
408
409
  },
409
410
  ...c
410
- } = De(e, n), r = await ot(n, c), u = Z(t), p = we(t), m = Fe(t) === "y", {
411
+ } = De(e, n), r = await ot(n, c), u = Z(t), p = we(t), h = Fe(t) === "y", {
411
412
  width: g,
412
413
  height: d
413
414
  } = o.floating;
@@ -415,7 +416,7 @@ const on = function(e) {
415
416
  u === "top" || u === "bottom" ? (f = u, b = p === (await (l.isRTL == null ? void 0 : l.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = u, f = p === "end" ? "top" : "bottom");
416
417
  const _ = d - r[f], v = g - r[b], y = !n.middlewareData.shift;
417
418
  let E = _, R = v;
418
- if (m) {
419
+ if (h) {
419
420
  const O = g - r.left - r.right;
420
421
  R = p || y ? ge(v, O) : O;
421
422
  } else {
@@ -424,7 +425,7 @@ const on = function(e) {
424
425
  }
425
426
  if (y && !p) {
426
427
  const O = N(r.left, 0), x = N(r.right, 0), M = N(r.top, 0), D = N(r.bottom, 0);
427
- m ? R = g - 2 * (O !== 0 || x !== 0 ? O + x : N(r.left, r.right)) : E = d - 2 * (M !== 0 || D !== 0 ? M + D : N(r.top, r.bottom));
428
+ h ? R = g - 2 * (O !== 0 || x !== 0 ? O + x : N(r.left, r.right)) : E = d - 2 * (M !== 0 || D !== 0 ? M + D : N(r.top, r.bottom));
428
429
  }
429
430
  await i({
430
431
  ...n,
@@ -472,14 +473,14 @@ function be(e) {
472
473
  } = V(e);
473
474
  return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !["inline", "contents"].includes(l);
474
475
  }
475
- function sn(e) {
476
+ function rn(e) {
476
477
  return ["table", "td", "th"].includes(Y(e));
477
478
  }
478
479
  function He(e) {
479
480
  const n = ze(), t = V(e);
480
481
  return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (t.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (t.contain || "").includes(o));
481
482
  }
482
- function rn(e) {
483
+ function an(e) {
483
484
  let n = ae(e);
484
485
  for (; W(n) && !Pe(n); ) {
485
486
  if (He(n))
@@ -556,15 +557,15 @@ function re(e) {
556
557
  y: c
557
558
  };
558
559
  }
559
- const an = /* @__PURE__ */ X(0);
560
+ const cn = /* @__PURE__ */ X(0);
560
561
  function rt(e) {
561
562
  const n = P(e);
562
- return !ze() || !n.visualViewport ? an : {
563
+ return !ze() || !n.visualViewport ? cn : {
563
564
  x: n.visualViewport.offsetLeft,
564
565
  y: n.visualViewport.offsetTop
565
566
  };
566
567
  }
567
- function cn(e, n, t) {
568
+ function un(e, n, t) {
568
569
  return n === void 0 && (n = !1), !t || n && t !== P(e) ? !1 : n;
569
570
  }
570
571
  function ee(e, n, t, o) {
@@ -572,24 +573,24 @@ function ee(e, n, t, o) {
572
573
  const l = e.getBoundingClientRect(), s = We(e);
573
574
  let i = X(1);
574
575
  n && (o ? U(o) && (i = re(o)) : i = re(e));
575
- const c = cn(s, t, o) ? rt(s) : X(0);
576
- let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, p = l.width / i.x, m = l.height / i.y;
576
+ const c = un(s, t, o) ? rt(s) : X(0);
577
+ let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, p = l.width / i.x, h = l.height / i.y;
577
578
  if (s) {
578
579
  const g = P(s), d = o && U(o) ? P(o) : o;
579
580
  let f = g.frameElement;
580
581
  for (; f && o && d !== g; ) {
581
582
  const b = re(f), _ = f.getBoundingClientRect(), v = V(f), y = _.left + (f.clientLeft + parseFloat(v.paddingLeft)) * b.x, E = _.top + (f.clientTop + parseFloat(v.paddingTop)) * b.y;
582
- r *= b.x, u *= b.y, p *= b.x, m *= b.y, r += y, u += E, f = P(f).frameElement;
583
+ r *= b.x, u *= b.y, p *= b.x, h *= b.y, r += y, u += E, f = P(f).frameElement;
583
584
  }
584
585
  }
585
586
  return Me({
586
587
  width: p,
587
- height: m,
588
+ height: h,
588
589
  x: r,
589
590
  y: u
590
591
  });
591
592
  }
592
- function un(e) {
593
+ function fn(e) {
593
594
  let {
594
595
  rect: n,
595
596
  offsetParent: t,
@@ -614,13 +615,13 @@ function un(e) {
614
615
  y: n.y * c.y - i.scrollTop * c.y + r.y
615
616
  };
616
617
  }
617
- function fn(e) {
618
+ function dn(e) {
618
619
  return Array.from(e.getClientRects());
619
620
  }
620
621
  function at(e) {
621
622
  return ee(j(e)).left + Ie(e).scrollLeft;
622
623
  }
623
- function dn(e) {
624
+ function pn(e) {
624
625
  const n = j(e), t = Ie(e), o = e.ownerDocument.body, l = N(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = N(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
625
626
  let i = -t.scrollLeft + at(e);
626
627
  const c = -t.scrollTop;
@@ -631,7 +632,7 @@ function dn(e) {
631
632
  y: c
632
633
  };
633
634
  }
634
- function pn(e, n) {
635
+ function mn(e, n) {
635
636
  const t = P(e), o = j(e), l = t.visualViewport;
636
637
  let s = o.clientWidth, i = o.clientHeight, c = 0, r = 0;
637
638
  if (l) {
@@ -658,9 +659,9 @@ function hn(e, n) {
658
659
  function Je(e, n, t) {
659
660
  let o;
660
661
  if (n === "viewport")
661
- o = pn(e, t);
662
+ o = mn(e, t);
662
663
  else if (n === "document")
663
- o = dn(j(e));
664
+ o = pn(j(e));
664
665
  else if (U(n))
665
666
  o = hn(n, t);
666
667
  else {
@@ -677,7 +678,7 @@ function ct(e, n) {
677
678
  const t = ae(e);
678
679
  return t === n || !U(t) || Pe(t) ? !1 : V(t).position === "fixed" || ct(t, n);
679
680
  }
680
- function mn(e, n) {
681
+ function vn(e, n) {
681
682
  const t = n.get(e);
682
683
  if (t)
683
684
  return t;
@@ -690,16 +691,16 @@ function mn(e, n) {
690
691
  }
691
692
  return n.set(e, o), o;
692
693
  }
693
- function vn(e) {
694
+ function gn(e) {
694
695
  let {
695
696
  element: n,
696
697
  boundary: t,
697
698
  rootBoundary: o,
698
699
  strategy: l
699
700
  } = e;
700
- const i = [...t === "clippingAncestors" ? mn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, p) => {
701
- const m = Je(n, p, l);
702
- return u.top = N(m.top, u.top), u.right = ge(m.right, u.right), u.bottom = ge(m.bottom, u.bottom), u.left = N(m.left, u.left), u;
701
+ const i = [...t === "clippingAncestors" ? vn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, p) => {
702
+ const h = Je(n, p, l);
703
+ return u.top = N(h.top, u.top), u.right = ge(h.right, u.right), u.bottom = ge(h.bottom, u.bottom), u.left = N(h.left, u.left), u;
703
704
  }, Je(n, c, l));
704
705
  return {
705
706
  width: r.right - r.left,
@@ -708,10 +709,10 @@ function vn(e) {
708
709
  y: r.top
709
710
  };
710
711
  }
711
- function gn(e) {
712
+ function yn(e) {
712
713
  return it(e);
713
714
  }
714
- function yn(e, n, t) {
715
+ function wn(e, n, t) {
715
716
  const o = W(n), l = j(n), s = t === "fixed", i = ee(e, !0, s, n);
716
717
  let c = {
717
718
  scrollLeft: 0,
@@ -739,11 +740,11 @@ function ut(e, n) {
739
740
  if (!W(e))
740
741
  return t;
741
742
  let o = Qe(e, n);
742
- for (; o && sn(o) && V(o).position === "static"; )
743
+ for (; o && rn(o) && V(o).position === "static"; )
743
744
  o = Qe(o, n);
744
- return o && (Y(o) === "html" || Y(o) === "body" && V(o).position === "static" && !He(o)) ? t : o || rn(e) || t;
745
+ return o && (Y(o) === "html" || Y(o) === "body" && V(o).position === "static" && !He(o)) ? t : o || an(e) || t;
745
746
  }
746
- const wn = async function(e) {
747
+ const bn = async function(e) {
747
748
  let {
748
749
  reference: n,
749
750
  floating: t,
@@ -751,7 +752,7 @@ const wn = async function(e) {
751
752
  } = e;
752
753
  const l = this.getOffsetParent || ut, s = this.getDimensions;
753
754
  return {
754
- reference: yn(n, await l(t), o),
755
+ reference: wn(n, await l(t), o),
755
756
  floating: {
756
757
  x: 0,
757
758
  y: 0,
@@ -759,22 +760,22 @@ const wn = async function(e) {
759
760
  }
760
761
  };
761
762
  };
762
- function bn(e) {
763
+ function xn(e) {
763
764
  return V(e).direction === "rtl";
764
765
  }
765
- const xn = {
766
- convertOffsetParentRelativeRectToViewportRelativeRect: un,
766
+ const _n = {
767
+ convertOffsetParentRelativeRectToViewportRelativeRect: fn,
767
768
  getDocumentElement: j,
768
- getClippingRect: vn,
769
+ getClippingRect: gn,
769
770
  getOffsetParent: ut,
770
- getElementRects: wn,
771
- getClientRects: fn,
772
- getDimensions: gn,
771
+ getElementRects: bn,
772
+ getClientRects: dn,
773
+ getDimensions: yn,
773
774
  getScale: re,
774
775
  isElement: U,
775
- isRTL: bn
776
+ isRTL: xn
776
777
  };
777
- function _n(e, n) {
778
+ function En(e, n) {
778
779
  let t = null, o;
779
780
  const l = j(e);
780
781
  function s() {
@@ -785,12 +786,12 @@ function _n(e, n) {
785
786
  const {
786
787
  left: u,
787
788
  top: p,
788
- width: m,
789
+ width: h,
789
790
  height: g
790
791
  } = e.getBoundingClientRect();
791
- if (c || n(), !m || !g)
792
+ if (c || n(), !h || !g)
792
793
  return;
793
- const d = Be(p), f = Be(l.clientWidth - (u + m)), b = Be(l.clientHeight - (p + g)), _ = Be(u), y = {
794
+ const d = Be(p), f = Be(l.clientWidth - (u + h)), b = Be(l.clientHeight - (p + g)), _ = Be(u), y = {
794
795
  rootMargin: -d + "px " + -f + "px " + -b + "px " + -_ + "px",
795
796
  threshold: N(0, ge(1, r)) || 1
796
797
  };
@@ -819,7 +820,7 @@ function _n(e, n) {
819
820
  }
820
821
  return i(!0), s;
821
822
  }
822
- function En(e, n, t, o) {
823
+ function Sn(e, n, t, o) {
823
824
  o === void 0 && (o = {});
824
825
  const {
825
826
  ancestorScroll: l = !0,
@@ -833,7 +834,7 @@ function En(e, n, t, o) {
833
834
  passive: !0
834
835
  }), s && v.addEventListener("resize", t);
835
836
  });
836
- const m = u && c ? _n(u, t) : null;
837
+ const h = u && c ? En(u, t) : null;
837
838
  let g = -1, d = null;
838
839
  i && (d = new ResizeObserver((v) => {
839
840
  let [y] = v;
@@ -850,18 +851,18 @@ function En(e, n, t, o) {
850
851
  return t(), () => {
851
852
  p.forEach((v) => {
852
853
  l && v.removeEventListener("scroll", t), s && v.removeEventListener("resize", t);
853
- }), m && m(), d && d.disconnect(), d = null, r && cancelAnimationFrame(f);
854
+ }), h && h(), d && d.disconnect(), d = null, r && cancelAnimationFrame(f);
854
855
  };
855
856
  }
856
- const Sn = (e, n, t) => {
857
+ const Cn = (e, n, t) => {
857
858
  const o = /* @__PURE__ */ new Map(), l = {
858
- platform: xn,
859
+ platform: _n,
859
860
  ...t
860
861
  }, s = {
861
862
  ...l.platform,
862
863
  _c: o
863
864
  };
864
- return en(e, n, {
865
+ return tn(e, n, {
865
866
  ...l,
866
867
  platform: s
867
868
  });
@@ -877,7 +878,7 @@ function et(e, n) {
877
878
  const t = ft(e);
878
879
  return Math.round(n * t) / t;
879
880
  }
880
- function Cn(e, n, t) {
881
+ function Rn(e, n, t) {
881
882
  t === void 0 && (t = {});
882
883
  const o = t.whileElementsMounted, l = T(() => {
883
884
  var x;
@@ -891,7 +892,7 @@ function Cn(e, n, t) {
891
892
  }), r = T(() => {
892
893
  var x;
893
894
  return (x = F(t.transform)) != null ? x : !0;
894
- }), u = T(() => Ze(e.value)), p = T(() => Ze(n.value)), m = k(0), g = k(0), d = k(c.value), f = k(i.value), b = bt({}), _ = k(!1), v = T(() => {
895
+ }), u = T(() => Ze(e.value)), p = T(() => Ze(n.value)), h = k(0), g = k(0), d = k(c.value), f = k(i.value), b = bt({}), _ = k(!1), v = T(() => {
895
896
  const x = {
896
897
  position: d.value,
897
898
  left: "0",
@@ -899,7 +900,7 @@ function Cn(e, n, t) {
899
900
  };
900
901
  if (!p.value)
901
902
  return x;
902
- const M = et(p.value, m.value), D = et(p.value, g.value);
903
+ const M = et(p.value, h.value), D = et(p.value, g.value);
903
904
  return r.value ? {
904
905
  ...x,
905
906
  transform: "translate(" + M + "px, " + D + "px)",
@@ -914,12 +915,12 @@ function Cn(e, n, t) {
914
915
  });
915
916
  let y;
916
917
  function E() {
917
- u.value == null || p.value == null || Sn(u.value, p.value, {
918
+ u.value == null || p.value == null || Cn(u.value, p.value, {
918
919
  middleware: s.value,
919
920
  placement: i.value,
920
921
  strategy: c.value
921
922
  }).then((x) => {
922
- m.value = x.x, g.value = x.y, d.value = x.strategy, f.value = x.placement, b.value = x.middlewareData, _.value = !0;
923
+ h.value = x.x, g.value = x.y, d.value = x.strategy, f.value = x.placement, b.value = x.middlewareData, _.value = !0;
923
924
  });
924
925
  }
925
926
  function R() {
@@ -945,7 +946,7 @@ function Cn(e, n, t) {
945
946
  }), Q(l, O, {
946
947
  flush: "sync"
947
948
  }), xt() && _t(R), {
948
- x: oe(m),
949
+ x: oe(h),
949
950
  y: oe(g),
950
951
  strategy: oe(d),
951
952
  placement: oe(f),
@@ -955,16 +956,16 @@ function Cn(e, n, t) {
955
956
  update: E
956
957
  };
957
958
  }
958
- const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], kn = ["selected", "value"], Tn = /* @__PURE__ */ Rn(() => /* @__PURE__ */ z("option", { value: "" }, null, -1)), Bn = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], An = ["id"], Ln = ["onKeypress", "onMousedown"], Mn = {
959
+ const On = (e) => (Mt("data-v-32017b62"), e = e(), Dt(), e), kn = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], Tn = ["selected", "value"], Bn = /* @__PURE__ */ On(() => /* @__PURE__ */ z("option", { value: "" }, null, -1)), An = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], Ln = ["id"], Mn = ["onKeypress", "onMousedown"], Dn = {
959
960
  key: 0,
960
961
  class: "stash-select__total"
961
- }, Dn = {
962
+ }, Fn = {
962
963
  key: 0,
963
- class: "tw-flex tw-items-center tw-pr-1.5 tw-border-b tw-border-blue-500"
964
- }, Fn = ["data-test", "placeholder"], Pn = { class: "stash-select__options options tw-my-1.5 tw-bg-white tw-border-white tw-w-full" }, In = ["data-test", "onClick", "onMouseenter"], Nn = { class: "tw-m-1.5 tw-p-1.5 tw-cursor-default" }, Vn = {
965
- class: "tw-m-1.5 tw-p-1.5 tw-cursor-default",
964
+ class: "tw-flex tw-items-center tw-border-b tw-border-blue-500 tw-pr-1.5"
965
+ }, Pn = ["data-test", "placeholder"], In = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, Nn = ["data-test", "onClick", "onMouseenter"], Vn = { class: "tw-m-1.5 tw-cursor-default tw-p-1.5" }, $n = {
966
+ class: "tw-m-1.5 tw-cursor-default tw-p-1.5",
966
967
  "data-test": "stash-select|no-options"
967
- }, $n = /* @__PURE__ */ Et({
968
+ }, Hn = /* @__PURE__ */ Et({
968
969
  name: "ll-select",
969
970
  __name: "Select",
970
971
  props: {
@@ -1004,19 +1005,19 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1004
1005
  useFuzzySearch: { type: Boolean, default: !1 },
1005
1006
  menuPlacement: { default: "bottom-start" },
1006
1007
  enableTeleport: { type: Boolean, default: !1 },
1007
- teleportTo: { default: `#${zt}` }
1008
+ teleportTo: { default: `#${Wt}` }
1008
1009
  },
1009
1010
  emits: ["update:model-value", "clear", "add", "remove", "opened", "closed"],
1010
1011
  setup(e, { emit: n }) {
1011
- const t = e, o = 6, l = 300, s = St(), i = Ct(), c = k(null), r = k(null), u = k(null), p = k(null), m = k(null), g = k(0), d = k(0), f = k([]), b = k(() => []), _ = k(""), v = k(-1), y = k(!1), E = k({}), R = k(!1), { floatingStyles: C } = Cn(c, u, {
1012
- whileElementsMounted: En,
1012
+ const t = e, o = 6, l = 300, s = St(), i = Ct(), c = k(null), r = k(null), u = k(null), p = k(null), h = k(null), g = k(0), d = k(0), f = k([]), b = k(() => []), _ = k(""), v = k(-1), y = k(!1), E = k({}), R = k(!1), { floatingStyles: C } = Rn(c, u, {
1013
+ whileElementsMounted: Sn,
1013
1014
  placement: t.menuPlacement,
1014
1015
  middleware: [
1015
- tn(),
1016
- on(({ rects: a }) => t.menuPlacement.includes("bottom") && g.value > d.value ? g.value - a.reference.height + o : o),
1017
- ln({
1018
- apply({ availableHeight: a, elements: h, rects: S }) {
1019
- t.enableTeleport && Object.assign(h.floating.style, {
1016
+ nn(),
1017
+ ln(({ rects: a }) => t.menuPlacement.includes("bottom") && g.value > d.value ? g.value - a.reference.height + o : o),
1018
+ sn({
1019
+ apply({ availableHeight: a, elements: m, rects: S }) {
1020
+ t.enableTeleport && Object.assign(m.floating.style, {
1020
1021
  maxWidth: `${S.reference.width}px`,
1021
1022
  maxHeight: `${Math.min(a, l)}px`
1022
1023
  });
@@ -1025,19 +1026,19 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1025
1026
  ]
1026
1027
  }), O = T(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), x = T(() => {
1027
1028
  let a = (R.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
1028
- return It(a[0]) || (a = a.map((h, S) => ({ name: h, id: S }))), a;
1029
+ return Nt(a[0]) || (a = a.map((m, S) => ({ name: m, id: S }))), a;
1029
1030
  }), M = T(() => t.searchLoading || Object.keys(E.value).length > 0), D = T(() => t.disableFiltering || !(_.value || "").trim() ? x.value : b.value(_.value)), xe = T(() => g.value <= d.value), _e = T(
1030
1031
  () => !y.value && !t.single && !xe.value && f.value.length
1031
1032
  ), K = T(() => [f.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Ee = T(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1032
- Q(_, (a, h) => h !== a && Ce(-1)), Q(f, () => ce(), { deep: !0 }), Q(
1033
+ Q(_, (a, m) => m !== a && Ce(-1)), Q(f, () => ce(), { deep: !0 }), Q(
1033
1034
  () => t.modelValue,
1034
1035
  (a) => {
1035
1036
  if (Array.isArray(a)) {
1036
- const h = a.filter(Boolean);
1037
- qe(h, f.value) || (f.value = h);
1037
+ const m = a.filter(Boolean);
1038
+ qe(m, f.value) || (f.value = m);
1038
1039
  return;
1039
1040
  }
1040
- if (!Pt(a)) {
1041
+ if (!It(a)) {
1041
1042
  qe(a, f.value[0]) || (f.value[0] = a);
1042
1043
  return;
1043
1044
  }
@@ -1047,12 +1048,12 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1047
1048
  ), Q(
1048
1049
  () => t.options,
1049
1050
  () => {
1050
- const { searchFor: a } = Vt({
1051
+ const { searchFor: a } = $t({
1051
1052
  items: T(() => x.value),
1052
1053
  fieldNames: t.searchBy.length ? t.searchBy : [t.displayBy],
1053
1054
  trackBy: t.trackBy
1054
1055
  });
1055
- b.value = (h) => a(h, { fuzzy: t.useFuzzySearch });
1056
+ b.value = (m) => a(m, { fuzzy: t.useFuzzySearch });
1056
1057
  },
1057
1058
  { immediate: !0 }
1058
1059
  );
@@ -1069,13 +1070,13 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1069
1070
  $(S);
1070
1071
  return;
1071
1072
  }
1072
- const h = [...a.target.selectedOptions];
1073
+ const m = [...a.target.selectedOptions];
1073
1074
  for (const S of [...f.value])
1074
- h.find((L) => {
1075
+ m.find((L) => {
1075
1076
  var w;
1076
1077
  return L.value === ((w = S[t.trackBy]) == null ? void 0 : w.toString());
1077
1078
  }) || H(S);
1078
- for (const S of h) {
1079
+ for (const S of m) {
1079
1080
  const A = x.value.find(
1080
1081
  (L) => {
1081
1082
  var w;
@@ -1087,16 +1088,16 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1087
1088
  }, H = (a) => {
1088
1089
  if (t.disabled || Ee.value && f.value.length === 1)
1089
1090
  return;
1090
- const h = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1091
- if (h === -1) {
1092
- console.warn("ll-select: could not find option to remove", a);
1091
+ const m = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1092
+ if (m === -1) {
1093
+ Ft.warn("ll-select: could not find option to remove", a);
1093
1094
  return;
1094
1095
  }
1095
- f.value.splice(h, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, h);
1096
+ f.value.splice(m, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, m);
1096
1097
  }, Se = () => {
1097
1098
  y.value || (ce(), y.value = !0, n("opened"), O.value && Ne(() => {
1098
- var a, h;
1099
- (h = (a = m.value) == null ? void 0 : a.inputEl) == null || h.focus();
1099
+ var a, m;
1100
+ (m = (a = h.value) == null ? void 0 : a.inputEl) == null || m.focus();
1100
1101
  }));
1101
1102
  }, te = () => {
1102
1103
  var a;
@@ -1124,44 +1125,44 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1124
1125
  else
1125
1126
  return;
1126
1127
  a.preventDefault(), dt(a);
1127
- }, Ke = Ft(function() {
1128
- ht();
1129
- }, $t.FAST), ht = async function() {
1128
+ }, Ke = Pt(function() {
1129
+ mt();
1130
+ }, Ht.FAST), mt = async function() {
1130
1131
  if (!t.onSearch)
1131
1132
  return;
1132
- const a = Nt("search-request-");
1133
+ const a = Vt("search-request-");
1133
1134
  try {
1134
1135
  E.value[a] = !0, await t.onSearch(_.value);
1135
1136
  } finally {
1136
1137
  delete E.value[a];
1137
1138
  }
1138
- }, mt = (a, h) => [
1139
+ }, ht = (a, m) => [
1139
1140
  {
1140
1141
  "stash-select__option": !0,
1141
1142
  "stash-select__option--disabled": a && typeof a == "object" && "disabled" in a && (a == null ? void 0 : a.disabled),
1142
- "stash-select__option--highlighted": v.value === h,
1143
+ "stash-select__option--highlighted": v.value === m,
1143
1144
  "stash-select__option--selected": ne(a)
1144
1145
  },
1145
1146
  // @deprecated
1146
1147
  {
1147
- "is-highlighted": v.value === h,
1148
+ "is-highlighted": v.value === m,
1148
1149
  "is-selected": ne(a)
1149
1150
  }
1150
- ], ne = (a) => a == null ? !1 : f.value.some((h) => (h == null ? void 0 : h[t.trackBy]) === a[t.trackBy]);
1151
+ ], ne = (a) => a == null ? !1 : f.value.some((m) => (m == null ? void 0 : m[t.trackBy]) === a[t.trackBy]);
1151
1152
  function Ue(a) {
1152
1153
  var A, L;
1153
1154
  if (!a)
1154
1155
  return !1;
1155
- const h = (A = r.value) == null ? void 0 : A.contains(a), S = (L = u.value) == null ? void 0 : L.contains(a);
1156
- return h || S;
1156
+ const m = (A = r.value) == null ? void 0 : A.contains(a), S = (L = u.value) == null ? void 0 : L.contains(a);
1157
+ return m || S;
1157
1158
  }
1158
1159
  function vt(a) {
1159
- const h = a.relatedTarget;
1160
- !Ue(h) && h && te();
1160
+ const m = a.relatedTarget;
1161
+ !Ue(m) && m && te();
1161
1162
  }
1162
1163
  function gt(a) {
1163
- const h = a.target;
1164
- Ue(h) || te();
1164
+ const m = a.target;
1165
+ Ue(m) || te();
1165
1166
  }
1166
1167
  const yt = () => {
1167
1168
  Ce(-1);
@@ -1174,7 +1175,7 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1174
1175
  window.addEventListener("resize", ce), ce();
1175
1176
  }), Ot(() => {
1176
1177
  window.removeEventListener("resize", ce);
1177
- }), (a, h) => (B(), Re(Wt, {
1178
+ }), (a, m) => (B(), Re(Kt, {
1178
1179
  id: t.id,
1179
1180
  class: ue(["input ll-select stash-select", F(s).class]),
1180
1181
  "data-test": "stash-select",
@@ -1199,9 +1200,9 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1199
1200
  key: `srOnlyOption-${J}`,
1200
1201
  selected: ne(w),
1201
1202
  value: w[t.trackBy]
1202
- }, le(w[t.displayBy] || ""), 9, kn))), 128)),
1203
- Tn
1204
- ], 40, On),
1203
+ }, le(w[t.displayBy] || ""), 9, Tn))), 128)),
1204
+ Bn
1205
+ ], 40, kn),
1205
1206
  de((B(), I("div", {
1206
1207
  ref_key: "selectRef",
1207
1208
  ref: c,
@@ -1235,7 +1236,7 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1235
1236
  class: "input-field stash-select__content",
1236
1237
  tabindex: "0",
1237
1238
  onFocusin: Se,
1238
- onFocusinOnce: h[4] || (h[4] = (w) => R.value = !0),
1239
+ onFocusinOnce: m[4] || (m[4] = (w) => R.value = !0),
1239
1240
  onFocusout: vt,
1240
1241
  onKeydown: Se,
1241
1242
  onMouseleave: yt
@@ -1247,26 +1248,26 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1247
1248
  }, [
1248
1249
  f.value.length ? pe("", !0) : (B(), I("li", {
1249
1250
  key: 0,
1250
- class: ue(["stash-select__placeholder tw-pl-1.5 tw-mr-0", { "tw-truncate": !t.noTruncate }])
1251
+ class: ue(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1251
1252
  }, le(t.placeholder), 3)),
1252
1253
  t.single ? (B(!0), I(Oe, { key: 1 }, ke(f.value, (w) => (B(), I("li", {
1253
1254
  key: `chip-${w[t.trackBy]}`,
1254
- class: ue(["stash-select__selected tw-pl-1.5 tw-mr-0", { "tw-truncate": !t.noTruncate }])
1255
+ class: ue(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1255
1256
  }, [
1256
1257
  Te(a.$slots, "selected", { option: w }, () => [
1257
- he(le(w[t.displayBy] || w) + " ", 1),
1258
+ me(le(w[t.displayBy] || w) + " ", 1),
1258
1259
  z("button", {
1259
1260
  tabindex: "-1",
1260
1261
  class: "stash-select__remove",
1261
- onKeypress: je(me((J) => H(w), ["prevent"]), ["enter"]),
1262
- onMousedown: me((J) => H(w), ["prevent", "stop"])
1262
+ onKeypress: je(he((J) => H(w), ["prevent"]), ["enter"]),
1263
+ onMousedown: he((J) => H(w), ["prevent", "stop"])
1263
1264
  }, [
1264
1265
  se(ve, {
1265
1266
  icon: "close",
1266
1267
  name: "close",
1267
1268
  size: "small"
1268
1269
  })
1269
- ], 40, Ln)
1270
+ ], 40, Mn)
1270
1271
  ], !0)
1271
1272
  ], 2))), 128)) : (B(!0), I(Oe, { key: 2 }, ke(f.value, (w) => (B(), I("li", {
1272
1273
  key: `chip-${w[t.trackBy]}`,
@@ -1280,13 +1281,13 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1280
1281
  onRemove: (J) => H(w)
1281
1282
  }, {
1282
1283
  default: fe(() => [
1283
- he(le(w[t.displayBy] || w), 1)
1284
+ me(le(w[t.displayBy] || w), 1)
1284
1285
  ]),
1285
1286
  _: 2
1286
1287
  }, 1032, ["onRemove"])
1287
1288
  ]))), 128))
1288
1289
  ], 512),
1289
- _e.value ? (B(), I("div", Mn, [
1290
+ _e.value ? (B(), I("div", Dn, [
1290
1291
  se(Xe, {
1291
1292
  "bg-color": "blue-500",
1292
1293
  "is-removable": "",
@@ -1295,7 +1296,7 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1295
1296
  onRemove: G
1296
1297
  }, {
1297
1298
  default: fe(() => [
1298
- he(le(K.value), 1)
1299
+ me(le(K.value), 1)
1299
1300
  ]),
1300
1301
  _: 1
1301
1302
  })
@@ -1305,7 +1306,7 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1305
1306
  class: "stash-select__icon",
1306
1307
  "data-test": "stash-select|toggle-icon",
1307
1308
  name: t.icon,
1308
- onMousedown: h[0] || (h[0] = me((w) => y.value && te(), ["prevent"]))
1309
+ onMousedown: m[0] || (m[0] = he((w) => y.value && te(), ["prevent"]))
1309
1310
  }, null, 8, ["name"])) : pe("", !0),
1310
1311
  (B(), Re(Tt, {
1311
1312
  to: t.teleportTo,
@@ -1316,25 +1317,25 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1316
1317
  de(z("div", {
1317
1318
  ref_key: "optionsWrapperRef",
1318
1319
  ref: u,
1319
- class: "stash-select__border-selector border-selector tw-shadow tw-w-full",
1320
+ class: "stash-select__border-selector border-selector tw-w-full tw-shadow",
1320
1321
  style: At(F(C)),
1321
- onClick: h[3] || (h[3] = me(() => {
1322
+ onClick: m[3] || (m[3] = he(() => {
1322
1323
  }, ["stop"]))
1323
1324
  }, [
1324
- O.value ? (B(), I("div", Dn, [
1325
+ O.value ? (B(), I("div", Fn, [
1325
1326
  de(z("input", {
1326
1327
  ref_key: "searchRef",
1327
- ref: m,
1328
- "onUpdate:modelValue": h[1] || (h[1] = (w) => _.value = w),
1328
+ ref: h,
1329
+ "onUpdate:modelValue": m[1] || (m[1] = (w) => _.value = w),
1329
1330
  type: "text",
1330
1331
  autocomplete: "off",
1331
1332
  class: "stash-select__search",
1332
1333
  "data-test": F(s)["data-test"] ? F(s)["data-test"] + "-search" : "stash-select|search",
1333
1334
  placeholder: t.searchPlaceholder,
1334
1335
  spellcheck: !1,
1335
- onInput: h[2] || (h[2] = //@ts-ignore
1336
+ onInput: m[2] || (m[2] = //@ts-ignore
1336
1337
  (...w) => F(Ke) && F(Ke)(...w))
1337
- }, null, 40, Fn), [
1338
+ }, null, 40, Pn), [
1338
1339
  [Lt, _.value]
1339
1340
  ]),
1340
1341
  se(ve, {
@@ -1342,35 +1343,35 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1342
1343
  class: "tw-text-ice-500"
1343
1344
  })
1344
1345
  ])) : pe("", !0),
1345
- z("ul", Pn, [
1346
+ z("ul", In, [
1346
1347
  (B(!0), I(Oe, null, ke(D.value, (w, J) => (B(), I("li", {
1347
1348
  key: `option-${w[t.trackBy]}`,
1348
1349
  "data-test": w[t.trackBy],
1349
- class: ue(mt(w, J)),
1350
+ class: ue(ht(w, J)),
1350
1351
  onClick: (wt) => $(w),
1351
- onMouseenter: me((wt) => Ce(J), ["self"])
1352
+ onMouseenter: he((wt) => Ce(J), ["self"])
1352
1353
  }, [
1353
1354
  Te(a.$slots, "option", { option: w }, () => [
1354
- he(le(w[t.displayBy] || w), 1)
1355
+ me(le(w[t.displayBy] || w), 1)
1355
1356
  ], !0),
1356
1357
  ne(w) && !t.hideCheck ? (B(), Re(ve, {
1357
1358
  key: 0,
1358
- class: "tw-text-blue-500 tw-ml-auto",
1359
+ class: "tw-ml-auto tw-text-blue-500",
1359
1360
  name: "check"
1360
1361
  })) : pe("", !0)
1361
- ], 42, In))), 128)),
1362
- de(z("li", Nn, [
1362
+ ], 42, Nn))), 128)),
1363
+ de(z("li", Vn, [
1363
1364
  se(ve, {
1364
1365
  "data-test": "stash-select|options-loading",
1365
1366
  name: "working",
1366
- class: "tw-text-ice-500 fx-spin"
1367
+ class: "fx-spin tw-text-ice-500"
1367
1368
  })
1368
1369
  ], 512), [
1369
1370
  [Ve, t.loading || M.value]
1370
1371
  ]),
1371
- de(z("li", Vn, [
1372
+ de(z("li", $n, [
1372
1373
  Te(a.$slots, "no-options", {}, () => [
1373
- he(" No options ")
1374
+ me(" No options ")
1374
1375
  ], !0)
1375
1376
  ], 512), [
1376
1377
  [Ve, !t.loading && !M.value && !D.value.length]
@@ -1383,9 +1384,9 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1383
1384
  _: 3
1384
1385
  })
1385
1386
  ], 8, ["to", "disabled"]))
1386
- ], 40, An)
1387
- ], 42, Bn)), [
1388
- [F(Ht), gt]
1387
+ ], 40, Ln)
1388
+ ], 42, An)), [
1389
+ [F(zt), gt]
1389
1390
  ])
1390
1391
  ]),
1391
1392
  _: 2
@@ -1400,8 +1401,8 @@ const Rn = (e) => (Mt("data-v-75b25f64"), e = e(), Dt(), e), On = ["id", "aria-e
1400
1401
  ]), 1032, ["id", "add-bottom-space", "class", "error-text", "hint-text", "label", "show-optional-in-label"]));
1401
1402
  }
1402
1403
  });
1403
- const po = /* @__PURE__ */ Kt($n, [["__scopeId", "data-v-75b25f64"]]);
1404
+ const ho = /* @__PURE__ */ Ut(Hn, [["__scopeId", "data-v-32017b62"]]);
1404
1405
  export {
1405
- po as default
1406
+ ho as default
1406
1407
  };
1407
1408
  //# sourceMappingURL=Select.js.map