@leaflink/stash 48.10.0 → 48.10.1

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 (130) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/ActionsDropdown.js +1 -1
  3. package/dist/AddressSelect.js +1 -1
  4. package/dist/AddressSelect.js.map +1 -1
  5. package/dist/Alert.js +1 -1
  6. package/dist/Alert.js.map +1 -1
  7. package/dist/AppNavigationItem.js +1 -1
  8. package/dist/AppTopbar.js +1 -1
  9. package/dist/Avatar.vue.d.ts +1 -1
  10. package/dist/Badge.js.map +1 -1
  11. package/dist/Button.vue.d.ts +3 -1
  12. package/dist/CardMedia.js +1 -1
  13. package/dist/Carousel.js.map +1 -1
  14. package/dist/ChevronToggle.js +1 -1
  15. package/dist/ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map +1 -1
  16. package/dist/Chip.js +1 -1
  17. package/dist/Chip.js.map +1 -1
  18. package/dist/Chip.vue.d.ts +1 -1
  19. package/dist/ConfirmationCodeInput.js.map +1 -1
  20. package/dist/ContextSwitcher.js.map +1 -1
  21. package/dist/Copy.js +1 -1
  22. package/dist/CurrencyInput.js +39 -34
  23. package/dist/CurrencyInput.js.map +1 -1
  24. package/dist/DataView.js +1 -1
  25. package/dist/DataView.js.map +1 -1
  26. package/dist/DataViewFilters.js +1 -1
  27. package/dist/DataViewFilters.js.map +1 -1
  28. package/dist/DataViewSortButton.js +1 -1
  29. package/dist/DataViewToolbar.js +1 -1
  30. package/dist/DatePicker.js +3355 -3368
  31. package/dist/DatePicker.js.map +1 -1
  32. package/dist/Dialog.js +75 -69
  33. package/dist/Dialog.js.map +1 -1
  34. package/dist/Dropdown.js +1 -1
  35. package/dist/Dropdown.js.map +1 -1
  36. package/dist/EmptyState.js +2 -2
  37. package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +1 -1
  38. package/dist/FileUpload.js +1 -1
  39. package/dist/FileUpload.js.map +1 -1
  40. package/dist/FilterChip.js +1 -1
  41. package/dist/FilterDrawerItem.js +1 -1
  42. package/dist/FilterDropdown.js +1 -1
  43. package/dist/FilterSelect.js +1 -1
  44. package/dist/FilterSelect.js.map +1 -1
  45. package/dist/Filters.js +1 -1
  46. package/dist/Filters.js.map +1 -1
  47. package/dist/HttpError.js +2 -2
  48. package/dist/Icon.js +1 -1
  49. package/dist/Icon.js.map +1 -1
  50. package/dist/IconLabel.js +1 -1
  51. package/dist/IconLabel.vue.d.ts +1 -1
  52. package/dist/Illustration.js +3 -3
  53. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js} +2 -2
  54. package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js.map → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map} +1 -1
  55. package/dist/Image.js.map +1 -1
  56. package/dist/InlineEdit.js +1 -1
  57. package/dist/Input.js +1 -1
  58. package/dist/Input.js.map +1 -1
  59. package/dist/InputOptions.js +1 -1
  60. package/dist/LicenseChip.js +1 -1
  61. package/dist/ListView.js +2 -2
  62. package/dist/ListView.js.map +1 -1
  63. package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +1 -1
  64. package/dist/Metric.vue.d.ts +1 -1
  65. package/dist/Modal.js +1 -1
  66. package/dist/Modals.js +6 -6
  67. package/dist/Modals.js.map +1 -1
  68. package/dist/ObfuscateText.js +1 -1
  69. package/dist/PageNavigation.js +1 -1
  70. package/dist/PageNavigation.js.map +1 -1
  71. package/dist/Paginate.js +1 -1
  72. package/dist/PlaidLink.js.map +1 -1
  73. package/dist/QuickAction.js +1 -1
  74. package/dist/RadioNew.js.map +1 -1
  75. package/dist/RangeInput.js +1 -1
  76. package/dist/SearchBar.js +1 -1
  77. package/dist/Select.js +709 -653
  78. package/dist/Select.js.map +1 -1
  79. package/dist/SelectStatus.js +1 -1
  80. package/dist/SelectStatus.js.map +1 -1
  81. package/dist/SelectStatus.vue.d.ts +1 -1
  82. package/dist/Skeleton.js.map +1 -1
  83. package/dist/Step.js +1 -1
  84. package/dist/Stepper.js +1 -1
  85. package/dist/Tab.js +1 -1
  86. package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +1 -1
  87. package/dist/Table.js +2 -2
  88. package/dist/TableCell.js +2 -2
  89. package/dist/TableHeaderCell.js +2 -2
  90. package/dist/TableHeaderRow.js +2 -2
  91. package/dist/TableRow.js +2 -2
  92. package/dist/TableRow.vue.d.ts +1 -1
  93. package/dist/Tabs.js +1 -1
  94. package/dist/TextEditor.js +991 -991
  95. package/dist/TextEditor.js.map +1 -1
  96. package/dist/Textarea.js.map +1 -1
  97. package/dist/Toast.js +274 -252
  98. package/dist/Toast.js.map +1 -1
  99. package/dist/Toasts.js +1 -1
  100. package/dist/ToastsPlugin.js +1 -1
  101. package/dist/components.css +2 -2
  102. package/dist/index-5e5945a9.js.map +1 -1
  103. package/dist/{index-79ce320f.js → index-9e1095ef.js} +6 -4
  104. package/dist/index-9e1095ef.js.map +1 -0
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.js +1 -1
  107. package/dist/index.js.map +1 -1
  108. package/dist/isDefined-2ce6cde4.js.map +1 -1
  109. package/dist/observe.js.map +1 -1
  110. package/dist/searchFuzzy-74a7de1c.js.map +1 -1
  111. package/dist/sticky.js.map +1 -1
  112. package/dist/tailwind-base.js.map +1 -1
  113. package/dist/toTimeZone-e6e9ab75.js.map +1 -1
  114. package/dist/tooltip.js.map +1 -1
  115. package/dist/useGoogleMaps.js +109 -119
  116. package/dist/useGoogleMaps.js.map +1 -1
  117. package/dist/useModals.d.ts +6 -363
  118. package/dist/useModals.js.map +1 -1
  119. package/dist/useScriptTag.js.map +1 -1
  120. package/dist/useStepper.js.map +1 -1
  121. package/dist/useValidation.js.map +1 -1
  122. package/dist/utils/colorScheme.js.map +1 -1
  123. package/dist/utils/createQueryString.js.map +1 -1
  124. package/dist/utils/formatDateTime.js.map +1 -1
  125. package/dist/utils/helpers.js.map +1 -1
  126. package/dist/utils/i18n.js.map +1 -1
  127. package/dist/utils/storage.js.map +1 -1
  128. package/dist/viewable.js.map +1 -1
  129. package/package.json +30 -46
  130. package/dist/index-79ce320f.js.map +0 -1
package/dist/Select.js CHANGED
@@ -1,18 +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 me, renderSlot as Te, createTextVNode as pe, 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";
5
- import qe from "lodash-es/isEqual";
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-9288029a.js";
12
- import Xe from "./Chip.js";
13
- import { _ as Kt } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
14
- import ve from "./Icon.js";
15
- import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.js";
1
+ import { computed as k, ref as O, shallowRef as St, watch as te, getCurrentScope as Ct, onScopeDispose as Rt, shallowReadonly as re, unref as q, defineComponent as Ot, useAttrs as kt, useSlots as Tt, nextTick as ze, onMounted as Bt, onUnmounted as At, openBlock as A, createBlock as Te, normalizeClass as me, createSlots as Lt, withCtx as ve, createElementVNode as j, createElementBlock as V, Fragment as Be, renderList as Ae, toDisplayString as ae, withDirectives as ge, withKeys as Qe, createCommentVNode as ye, renderSlot as Le, createTextVNode as we, withModifiers as be, createVNode as ce, Teleport as Dt, Transition as Ft, normalizeStyle as Mt, vModelText as Pt, vShow as He, pushScopeId as It, popScopeId as Vt } from "vue";
2
+ import Nt from "@leaflink/snitch";
3
+ import $t from "lodash-es/debounce";
4
+ import zt from "lodash-es/isEmpty";
5
+ import Ze from "lodash-es/isEqual";
6
+ import Ht from "lodash-es/isPlainObject";
7
+ import Wt from "lodash-es/uniqueId";
8
+ import jt from "./useSearch.js";
9
+ import { DEBOUNCE as Kt, KEY_CODES as ue } from "./constants.js";
10
+ import Ut from "./clickoutside.js";
11
+ import { D as qt } from "./MenusPlugin-9288029a.js";
12
+ import et from "./Chip.js";
13
+ import { _ as Xt } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
14
+ import xe from "./Icon.js";
15
+ import { _ as Yt } from "./_plugin-vue_export-helper-dad06003.js";
16
16
  import "lodash-es/get";
17
17
  import "./searchFuzzy-74a7de1c.js";
18
18
  import "./_commonjsHelpers-10dfc225.js";
@@ -20,57 +20,57 @@ import "./utils/helpers.js";
20
20
  import "lodash-es/camelCase";
21
21
  import "lodash-es/isFinite";
22
22
  import "./utils/colorScheme.js";
23
- import "./index-79ce320f.js";
23
+ import "./index-9e1095ef.js";
24
24
  import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
25
25
  import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
26
26
  import "./locale.js";
27
- const ge = Math.min, N = Math.max, Ae = Math.round, Be = Math.floor, X = (e) => ({
27
+ const ne = Math.min, N = Math.max, Fe = Math.round, De = Math.floor, Y = (e) => ({
28
28
  x: e,
29
29
  y: e
30
- }), jt = {
30
+ }), Gt = {
31
31
  left: "right",
32
32
  right: "left",
33
33
  bottom: "top",
34
34
  top: "bottom"
35
- }, qt = {
35
+ }, Jt = {
36
36
  start: "end",
37
37
  end: "start"
38
38
  };
39
- function De(e, n) {
39
+ function Ie(e, n) {
40
40
  return typeof e == "function" ? e(n) : e;
41
41
  }
42
- function Z(e) {
42
+ function oe(e) {
43
43
  return e.split("-")[0];
44
44
  }
45
- function we(e) {
45
+ function Se(e) {
46
46
  return e.split("-")[1];
47
47
  }
48
- function Xt(e) {
48
+ function Qt(e) {
49
49
  return e === "x" ? "y" : "x";
50
50
  }
51
- function tt(e) {
51
+ function rt(e) {
52
52
  return e === "y" ? "height" : "width";
53
53
  }
54
- function Fe(e) {
55
- return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
54
+ function de(e) {
55
+ return ["top", "bottom"].includes(oe(e)) ? "y" : "x";
56
56
  }
57
- function nt(e) {
58
- return Xt(Fe(e));
57
+ function at(e) {
58
+ return Qt(de(e));
59
59
  }
60
- function Yt(e, n, t) {
60
+ function Zt(e, n, t) {
61
61
  t === void 0 && (t = !1);
62
- const o = we(e), l = nt(e), s = tt(l);
62
+ const o = Se(e), l = at(e), s = rt(l);
63
63
  let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
64
- return n.reference[s] > n.floating[s] && (i = Le(i)), [i, Le(i)];
64
+ return n.reference[s] > n.floating[s] && (i = Me(i)), [i, Me(i)];
65
65
  }
66
- function Gt(e) {
67
- const n = Le(e);
68
- return [$e(e), n, $e(n)];
66
+ function en(e) {
67
+ const n = Me(e);
68
+ return [je(e), n, je(n)];
69
69
  }
70
- function $e(e) {
71
- return e.replace(/start|end/g, (n) => qt[n]);
70
+ function je(e) {
71
+ return e.replace(/start|end/g, (n) => Jt[n]);
72
72
  }
73
- function Jt(e, n, t) {
73
+ function tn(e, n, t) {
74
74
  const o = ["left", "right"], l = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
75
75
  switch (e) {
76
76
  case "top":
@@ -83,15 +83,15 @@ function Jt(e, n, t) {
83
83
  return [];
84
84
  }
85
85
  }
86
- function Qt(e, n, t, o) {
87
- const l = we(e);
88
- let s = Jt(Z(e), t === "start", o);
89
- return l && (s = s.map((i) => i + "-" + l), n && (s = s.concat(s.map($e)))), s;
86
+ function nn(e, n, t, o) {
87
+ const l = Se(e);
88
+ let s = tn(oe(e), t === "start", o);
89
+ return l && (s = s.map((i) => i + "-" + l), n && (s = s.concat(s.map(je)))), s;
90
90
  }
91
- function Le(e) {
92
- return e.replace(/left|right|bottom|top/g, (n) => jt[n]);
91
+ function Me(e) {
92
+ return e.replace(/left|right|bottom|top/g, (n) => Gt[n]);
93
93
  }
94
- function Zt(e) {
94
+ function on(e) {
95
95
  return {
96
96
  top: 0,
97
97
  right: 0,
@@ -100,72 +100,81 @@ function Zt(e) {
100
100
  ...e
101
101
  };
102
102
  }
103
- function en(e) {
104
- return typeof e != "number" ? Zt(e) : {
103
+ function ln(e) {
104
+ return typeof e != "number" ? on(e) : {
105
105
  top: e,
106
106
  right: e,
107
107
  bottom: e,
108
108
  left: e
109
109
  };
110
110
  }
111
- function Me(e) {
111
+ function Pe(e) {
112
+ const {
113
+ x: n,
114
+ y: t,
115
+ width: o,
116
+ height: l
117
+ } = e;
112
118
  return {
113
- ...e,
114
- top: e.y,
115
- left: e.x,
116
- right: e.x + e.width,
117
- bottom: e.y + e.height
119
+ width: o,
120
+ height: l,
121
+ top: t,
122
+ left: n,
123
+ right: n + o,
124
+ bottom: t + l,
125
+ x: n,
126
+ y: t
118
127
  };
119
128
  }
120
- function Ye(e, n, t) {
129
+ function tt(e, n, t) {
121
130
  let {
122
131
  reference: o,
123
132
  floating: l
124
133
  } = e;
125
- const s = Fe(n), i = nt(n), c = tt(i), r = Z(n), u = s === "y", m = o.x + o.width / 2 - l.width / 2, h = o.y + o.height / 2 - l.height / 2, g = o[c] / 2 - l[c] / 2;
126
- let d;
134
+ const s = de(n), i = at(n), c = rt(i), r = oe(n), u = s === "y", d = o.x + o.width / 2 - l.width / 2, p = o.y + o.height / 2 - l.height / 2, y = o[c] / 2 - l[c] / 2;
135
+ let h;
127
136
  switch (r) {
128
137
  case "top":
129
- d = {
130
- x: m,
138
+ h = {
139
+ x: d,
131
140
  y: o.y - l.height
132
141
  };
133
142
  break;
134
143
  case "bottom":
135
- d = {
136
- x: m,
144
+ h = {
145
+ x: d,
137
146
  y: o.y + o.height
138
147
  };
139
148
  break;
140
149
  case "right":
141
- d = {
150
+ h = {
142
151
  x: o.x + o.width,
143
- y: h
152
+ y: p
144
153
  };
145
154
  break;
146
155
  case "left":
147
- d = {
156
+ h = {
148
157
  x: o.x - l.width,
149
- y: h
158
+ y: p
150
159
  };
151
160
  break;
152
161
  default:
153
- d = {
162
+ h = {
154
163
  x: o.x,
155
164
  y: o.y
156
165
  };
157
166
  }
158
- switch (we(n)) {
167
+ switch (Se(n)) {
159
168
  case "start":
160
- d[i] -= g * (t && u ? -1 : 1);
169
+ h[i] -= y * (t && u ? -1 : 1);
161
170
  break;
162
171
  case "end":
163
- d[i] += g * (t && u ? -1 : 1);
172
+ h[i] += y * (t && u ? -1 : 1);
164
173
  break;
165
174
  }
166
- return d;
175
+ return h;
167
176
  }
168
- const tn = async (e, n, t) => {
177
+ const sn = async (e, n, t) => {
169
178
  const {
170
179
  placement: o = "bottom",
171
180
  strategy: l = "absolute",
@@ -177,25 +186,25 @@ const tn = async (e, n, t) => {
177
186
  floating: n,
178
187
  strategy: l
179
188
  }), {
180
- x: m,
181
- y: h
182
- } = Ye(u, o, r), g = o, d = {}, f = 0;
183
- for (let b = 0; b < c.length; b++) {
189
+ x: d,
190
+ y: p
191
+ } = tt(u, o, r), y = o, h = {}, f = 0;
192
+ for (let w = 0; w < c.length; w++) {
184
193
  const {
185
- name: _,
186
- fn: v
187
- } = c[b], {
188
- x: y,
194
+ name: b,
195
+ fn: m
196
+ } = c[w], {
197
+ x: g,
189
198
  y: E,
190
199
  data: R,
191
200
  reset: C
192
- } = await v({
193
- x: m,
194
- y: h,
201
+ } = await m({
202
+ x: d,
203
+ y: p,
195
204
  initialPlacement: o,
196
- placement: g,
205
+ placement: y,
197
206
  strategy: l,
198
- middlewareData: d,
207
+ middlewareData: h,
199
208
  rects: u,
200
209
  platform: i,
201
210
  elements: {
@@ -203,33 +212,30 @@ const tn = async (e, n, t) => {
203
212
  floating: n
204
213
  }
205
214
  });
206
- if (m = y ?? m, h = E ?? h, d = {
207
- ...d,
208
- [_]: {
209
- ...d[_],
215
+ d = g ?? d, p = E ?? p, h = {
216
+ ...h,
217
+ [b]: {
218
+ ...h[b],
210
219
  ...R
211
220
  }
212
- }, C && f <= 50) {
213
- f++, typeof C == "object" && (C.placement && (g = C.placement), C.rects && (u = C.rects === !0 ? await i.getElementRects({
214
- reference: e,
215
- floating: n,
216
- strategy: l
217
- }) : C.rects), {
218
- x: m,
219
- y: h
220
- } = Ye(u, g, r)), b = -1;
221
- continue;
222
- }
221
+ }, C && f <= 50 && (f++, typeof C == "object" && (C.placement && (y = C.placement), C.rects && (u = C.rects === !0 ? await i.getElementRects({
222
+ reference: e,
223
+ floating: n,
224
+ strategy: l
225
+ }) : C.rects), {
226
+ x: d,
227
+ y: p
228
+ } = tt(u, y, r)), w = -1);
223
229
  }
224
230
  return {
225
- x: m,
226
- y: h,
227
- placement: g,
231
+ x: d,
232
+ y: p,
233
+ placement: y,
228
234
  strategy: l,
229
- middlewareData: d
235
+ middlewareData: h
230
236
  };
231
237
  };
232
- async function ot(e, n) {
238
+ async function ct(e, n) {
233
239
  var t;
234
240
  n === void 0 && (n = {});
235
241
  const {
@@ -241,38 +247,40 @@ async function ot(e, n) {
241
247
  strategy: r
242
248
  } = e, {
243
249
  boundary: u = "clippingAncestors",
244
- rootBoundary: m = "viewport",
245
- elementContext: h = "floating",
246
- altBoundary: g = !1,
247
- padding: d = 0
248
- } = De(n, e), f = en(d), _ = c[g ? h === "floating" ? "reference" : "floating" : h], v = Me(await s.getClippingRect({
249
- element: (t = await (s.isElement == null ? void 0 : s.isElement(_))) == null || t ? _ : _.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
250
+ rootBoundary: d = "viewport",
251
+ elementContext: p = "floating",
252
+ altBoundary: y = !1,
253
+ padding: h = 0
254
+ } = Ie(n, e), f = ln(h), b = c[y ? p === "floating" ? "reference" : "floating" : p], m = Pe(await s.getClippingRect({
255
+ element: (t = await (s.isElement == null ? void 0 : s.isElement(b))) == null || t ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
250
256
  boundary: u,
251
- rootBoundary: m,
257
+ rootBoundary: d,
252
258
  strategy: r
253
- })), y = h === "floating" ? {
254
- ...i.floating,
259
+ })), g = p === "floating" ? {
255
260
  x: o,
256
- y: l
261
+ y: l,
262
+ width: i.floating.width,
263
+ height: i.floating.height
257
264
  } : i.reference, E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), R = await (s.isElement == null ? void 0 : s.isElement(E)) ? await (s.getScale == null ? void 0 : s.getScale(E)) || {
258
265
  x: 1,
259
266
  y: 1
260
267
  } : {
261
268
  x: 1,
262
269
  y: 1
263
- }, C = Me(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
264
- rect: y,
270
+ }, C = Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
271
+ elements: c,
272
+ rect: g,
265
273
  offsetParent: E,
266
274
  strategy: r
267
- }) : y);
275
+ }) : g);
268
276
  return {
269
- top: (v.top - C.top + f.top) / R.y,
270
- bottom: (C.bottom - v.bottom + f.bottom) / R.y,
271
- left: (v.left - C.left + f.left) / R.x,
272
- right: (C.right - v.right + f.right) / R.x
277
+ top: (m.top - C.top + f.top) / R.y,
278
+ bottom: (C.bottom - m.bottom + f.bottom) / R.y,
279
+ left: (m.left - C.left + f.left) / R.x,
280
+ right: (C.right - m.right + f.right) / R.x
273
281
  };
274
282
  }
275
- const nn = function(e) {
283
+ const rn = function(e) {
276
284
  return e === void 0 && (e = {}), {
277
285
  name: "flip",
278
286
  options: e,
@@ -286,57 +294,65 @@ const nn = function(e) {
286
294
  platform: r,
287
295
  elements: u
288
296
  } = n, {
289
- mainAxis: m = !0,
290
- crossAxis: h = !0,
291
- fallbackPlacements: g,
292
- fallbackStrategy: d = "bestFit",
297
+ mainAxis: d = !0,
298
+ crossAxis: p = !0,
299
+ fallbackPlacements: y,
300
+ fallbackStrategy: h = "bestFit",
293
301
  fallbackAxisSideDirection: f = "none",
294
- flipAlignment: b = !0,
295
- ..._
296
- } = De(e, n);
302
+ flipAlignment: w = !0,
303
+ ...b
304
+ } = Ie(e, n);
297
305
  if ((t = s.arrow) != null && t.alignmentOffset)
298
306
  return {};
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));
301
- const C = [c, ...R], O = await ot(n, _), x = [];
302
- let M = ((o = s.flip) == null ? void 0 : o.overflows) || [];
303
- if (m && x.push(O[v]), h) {
304
- const K = Yt(l, i, E);
305
- x.push(O[K[0]], O[K[1]]);
307
+ const m = oe(l), g = de(c), E = oe(c) === c, R = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), C = y || (E || !w ? [Me(c)] : en(c)), T = f !== "none";
308
+ !y && T && C.push(...nn(c, w, f, R));
309
+ const _ = [c, ...C], P = await ct(n, b), B = [];
310
+ let W = ((o = s.flip) == null ? void 0 : o.overflows) || [];
311
+ if (d && B.push(P[m]), p) {
312
+ const U = Zt(l, i, R);
313
+ B.push(P[U[0]], P[U[1]]);
306
314
  }
307
- if (M = [...M, {
315
+ if (W = [...W, {
308
316
  placement: l,
309
- overflows: x
310
- }], !x.every((K) => K <= 0)) {
311
- var D, xe;
312
- const K = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, Ee = C[K];
313
- if (Ee)
317
+ overflows: B
318
+ }], !B.every((U) => U <= 0)) {
319
+ var J, Re;
320
+ const U = (((J = s.flip) == null ? void 0 : J.index) || 0) + 1, Q = _[U];
321
+ if (Q)
314
322
  return {
315
323
  data: {
316
- index: K,
317
- overflows: M
324
+ index: U,
325
+ overflows: W
318
326
  },
319
327
  reset: {
320
- placement: Ee
328
+ placement: Q
321
329
  }
322
330
  };
323
- let G = (xe = M.filter(($) => $.overflows[0] <= 0).sort(($, q) => $.overflows[1] - q.overflows[1])[0]) == null ? void 0 : xe.placement;
324
- if (!G)
325
- switch (d) {
331
+ let Z = (Re = W.filter((I) => I.overflows[0] <= 0).sort((I, $) => I.overflows[1] - $.overflows[1])[0]) == null ? void 0 : Re.placement;
332
+ if (!Z)
333
+ switch (h) {
326
334
  case "bestFit": {
327
- var _e;
328
- const $ = (_e = M.map((q) => [q.placement, q.overflows.filter((H) => H > 0).reduce((H, Se) => H + Se, 0)]).sort((q, H) => q[1] - H[1])[0]) == null ? void 0 : _e[0];
329
- $ && (G = $);
335
+ var Oe;
336
+ const I = (Oe = W.filter(($) => {
337
+ if (T) {
338
+ const L = de($.placement);
339
+ return L === g || // Create a bias to the `y` side axis due to horizontal
340
+ // reading directions favoring greater width.
341
+ L === "y";
342
+ }
343
+ return !0;
344
+ }).map(($) => [$.placement, $.overflows.filter((L) => L > 0).reduce((L, $e) => L + $e, 0)]).sort(($, L) => $[1] - L[1])[0]) == null ? void 0 : Oe[0];
345
+ I && (Z = I);
330
346
  break;
331
347
  }
332
348
  case "initialPlacement":
333
- G = c;
349
+ Z = c;
334
350
  break;
335
351
  }
336
- if (l !== G)
352
+ if (l !== Z)
337
353
  return {
338
354
  reset: {
339
- placement: G
355
+ placement: Z
340
356
  }
341
357
  };
342
358
  }
@@ -344,35 +360,35 @@ const nn = function(e) {
344
360
  }
345
361
  };
346
362
  };
347
- async function on(e, n) {
363
+ async function an(e, n) {
348
364
  const {
349
365
  placement: t,
350
366
  platform: o,
351
367
  elements: l
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, m = s && r ? -1 : 1, h = De(n, e);
368
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = oe(t), c = Se(t), r = de(t) === "y", u = ["left", "top"].includes(i) ? -1 : 1, d = s && r ? -1 : 1, p = Ie(n, e);
353
369
  let {
354
- mainAxis: g,
355
- crossAxis: d,
370
+ mainAxis: y,
371
+ crossAxis: h,
356
372
  alignmentAxis: f
357
- } = typeof h == "number" ? {
358
- mainAxis: h,
373
+ } = typeof p == "number" ? {
374
+ mainAxis: p,
359
375
  crossAxis: 0,
360
376
  alignmentAxis: null
361
377
  } : {
362
378
  mainAxis: 0,
363
379
  crossAxis: 0,
364
380
  alignmentAxis: null,
365
- ...h
381
+ ...p
366
382
  };
367
- return c && typeof f == "number" && (d = c === "end" ? f * -1 : f), r ? {
368
- x: d * m,
369
- y: g * u
383
+ return c && typeof f == "number" && (h = c === "end" ? f * -1 : f), r ? {
384
+ x: h * d,
385
+ y: y * u
370
386
  } : {
371
- x: g * u,
372
- y: d * m
387
+ x: y * u,
388
+ y: h * d
373
389
  };
374
390
  }
375
- const ln = function(e) {
391
+ const cn = function(e) {
376
392
  return e === void 0 && (e = 0), {
377
393
  name: "offset",
378
394
  options: e,
@@ -383,7 +399,7 @@ const ln = function(e) {
383
399
  y: s,
384
400
  placement: i,
385
401
  middlewareData: c
386
- } = n, r = await on(n, e);
402
+ } = n, r = await an(n, e);
387
403
  return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
388
404
  x: l + r.x,
389
405
  y: s + r.y,
@@ -394,7 +410,7 @@ const ln = function(e) {
394
410
  };
395
411
  }
396
412
  };
397
- }, sn = function(e) {
413
+ }, un = function(e) {
398
414
  return e === void 0 && (e = {}), {
399
415
  name: "size",
400
416
  options: e,
@@ -408,32 +424,25 @@ const ln = function(e) {
408
424
  apply: i = () => {
409
425
  },
410
426
  ...c
411
- } = De(e, n), r = await ot(n, c), u = Z(t), m = we(t), h = Fe(t) === "y", {
412
- width: g,
413
- height: d
427
+ } = Ie(e, n), r = await ct(n, c), u = oe(t), d = Se(t), p = de(t) === "y", {
428
+ width: y,
429
+ height: h
414
430
  } = o.floating;
415
- let f, b;
416
- u === "top" || u === "bottom" ? (f = u, b = m === (await (l.isRTL == null ? void 0 : l.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = u, f = m === "end" ? "top" : "bottom");
417
- const _ = d - r[f], v = g - r[b], y = !n.middlewareData.shift;
418
- let E = _, R = v;
419
- if (h) {
420
- const O = g - r.left - r.right;
421
- R = m || y ? ge(v, O) : O;
422
- } else {
423
- const O = d - r.top - r.bottom;
424
- E = m || y ? ge(_, O) : O;
425
- }
426
- if (y && !m) {
427
- const O = N(r.left, 0), x = N(r.right, 0), M = N(r.top, 0), D = N(r.bottom, 0);
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));
431
+ let f, w;
432
+ u === "top" || u === "bottom" ? (f = u, w = d === (await (l.isRTL == null ? void 0 : l.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = u, f = d === "end" ? "top" : "bottom");
433
+ const b = h - r.top - r.bottom, m = y - r.left - r.right, g = ne(h - r[f], b), E = ne(y - r[w], m), R = !n.middlewareData.shift;
434
+ let C = g, T = E;
435
+ if (p ? T = d || R ? ne(E, m) : m : C = d || R ? ne(g, b) : b, R && !d) {
436
+ const P = N(r.left, 0), B = N(r.right, 0), W = N(r.top, 0), J = N(r.bottom, 0);
437
+ p ? T = y - 2 * (P !== 0 || B !== 0 ? P + B : N(r.left, r.right)) : C = h - 2 * (W !== 0 || J !== 0 ? W + J : N(r.top, r.bottom));
429
438
  }
430
439
  await i({
431
440
  ...n,
432
- availableWidth: R,
433
- availableHeight: E
441
+ availableWidth: T,
442
+ availableHeight: C
434
443
  });
435
- const C = await l.getDimensions(s.floating);
436
- return g !== C.width || d !== C.height ? {
444
+ const _ = await l.getDimensions(s.floating);
445
+ return y !== _.width || h !== _.height ? {
437
446
  reset: {
438
447
  rects: !0
439
448
  }
@@ -441,203 +450,222 @@ const ln = function(e) {
441
450
  }
442
451
  };
443
452
  };
444
- function Y(e) {
445
- return lt(e) ? (e.nodeName || "").toLowerCase() : "#document";
453
+ function ie(e) {
454
+ return Ue(e) ? (e.nodeName || "").toLowerCase() : "#document";
446
455
  }
447
- function P(e) {
456
+ function M(e) {
448
457
  var n;
449
458
  return (e == null || (n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
450
459
  }
451
- function j(e) {
460
+ function X(e) {
452
461
  var n;
453
- return (n = (lt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
462
+ return (n = (Ue(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
454
463
  }
455
- function lt(e) {
456
- return e instanceof Node || e instanceof P(e).Node;
464
+ function Ue(e) {
465
+ return e instanceof Node || e instanceof M(e).Node;
457
466
  }
458
- function U(e) {
459
- return e instanceof Element || e instanceof P(e).Element;
467
+ function z(e) {
468
+ return e instanceof Element || e instanceof M(e).Element;
460
469
  }
461
- function W(e) {
462
- return e instanceof HTMLElement || e instanceof P(e).HTMLElement;
470
+ function K(e) {
471
+ return e instanceof HTMLElement || e instanceof M(e).HTMLElement;
463
472
  }
464
- function Ge(e) {
465
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
473
+ function nt(e) {
474
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
466
475
  }
467
- function be(e) {
476
+ function Ce(e) {
468
477
  const {
469
478
  overflow: n,
470
479
  overflowX: t,
471
480
  overflowY: o,
472
481
  display: l
473
- } = V(e);
482
+ } = H(e);
474
483
  return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !["inline", "contents"].includes(l);
475
484
  }
476
- function rn(e) {
477
- return ["table", "td", "th"].includes(Y(e));
485
+ function fn(e) {
486
+ return ["table", "td", "th"].includes(ie(e));
478
487
  }
479
- function He(e) {
480
- const n = ze(), t = V(e);
488
+ function Ve(e) {
489
+ return [":popover-open", ":modal"].some((n) => {
490
+ try {
491
+ return e.matches(n);
492
+ } catch {
493
+ return !1;
494
+ }
495
+ });
496
+ }
497
+ function qe(e) {
498
+ const n = Xe(), t = z(e) ? H(e) : e;
481
499
  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));
482
500
  }
483
- function an(e) {
484
- let n = ae(e);
485
- for (; W(n) && !Pe(n); ) {
486
- if (He(n))
501
+ function dn(e) {
502
+ let n = G(e);
503
+ for (; K(n) && !he(n); ) {
504
+ if (qe(n))
487
505
  return n;
488
- n = ae(n);
506
+ if (Ve(n))
507
+ return null;
508
+ n = G(n);
489
509
  }
490
510
  return null;
491
511
  }
492
- function ze() {
512
+ function Xe() {
493
513
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
494
514
  }
495
- function Pe(e) {
496
- return ["html", "body", "#document"].includes(Y(e));
515
+ function he(e) {
516
+ return ["html", "body", "#document"].includes(ie(e));
497
517
  }
498
- function V(e) {
499
- return P(e).getComputedStyle(e);
518
+ function H(e) {
519
+ return M(e).getComputedStyle(e);
500
520
  }
501
- function Ie(e) {
502
- return U(e) ? {
521
+ function Ne(e) {
522
+ return z(e) ? {
503
523
  scrollLeft: e.scrollLeft,
504
524
  scrollTop: e.scrollTop
505
525
  } : {
506
- scrollLeft: e.pageXOffset,
507
- scrollTop: e.pageYOffset
526
+ scrollLeft: e.scrollX,
527
+ scrollTop: e.scrollY
508
528
  };
509
529
  }
510
- function ae(e) {
511
- if (Y(e) === "html")
530
+ function G(e) {
531
+ if (ie(e) === "html")
512
532
  return e;
513
533
  const n = (
514
534
  // Step into the shadow DOM of the parent of a slotted node.
515
535
  e.assignedSlot || // DOM Element detected.
516
536
  e.parentNode || // ShadowRoot detected.
517
- Ge(e) && e.host || // Fallback.
518
- j(e)
537
+ nt(e) && e.host || // Fallback.
538
+ X(e)
519
539
  );
520
- return Ge(n) ? n.host : n;
540
+ return nt(n) ? n.host : n;
521
541
  }
522
- function st(e) {
523
- const n = ae(e);
524
- return Pe(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(n) && be(n) ? n : st(n);
542
+ function ut(e) {
543
+ const n = G(e);
544
+ return he(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(n) && Ce(n) ? n : ut(n);
525
545
  }
526
- function ye(e, n, t) {
546
+ function Ee(e, n, t) {
527
547
  var o;
528
548
  n === void 0 && (n = []), t === void 0 && (t = !0);
529
- const l = st(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = P(l);
530
- return s ? n.concat(i, i.visualViewport || [], be(l) ? l : [], i.frameElement && t ? ye(i.frameElement) : []) : n.concat(l, ye(l, [], t));
549
+ const l = ut(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = M(l);
550
+ if (s) {
551
+ const c = Ke(i);
552
+ return n.concat(i, i.visualViewport || [], Ce(l) ? l : [], c && t ? Ee(c) : []);
553
+ }
554
+ return n.concat(l, Ee(l, [], t));
531
555
  }
532
- function it(e) {
533
- const n = V(e);
556
+ function Ke(e) {
557
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
558
+ }
559
+ function ft(e) {
560
+ const n = H(e);
534
561
  let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
535
- const l = W(e), s = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = Ae(t) !== s || Ae(o) !== i;
562
+ const l = K(e), s = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = Fe(t) !== s || Fe(o) !== i;
536
563
  return c && (t = s, o = i), {
537
564
  width: t,
538
565
  height: o,
539
566
  $: c
540
567
  };
541
568
  }
542
- function We(e) {
543
- return U(e) ? e : e.contextElement;
569
+ function Ye(e) {
570
+ return z(e) ? e : e.contextElement;
544
571
  }
545
- function re(e) {
546
- const n = We(e);
547
- if (!W(n))
548
- return X(1);
572
+ function fe(e) {
573
+ const n = Ye(e);
574
+ if (!K(n))
575
+ return Y(1);
549
576
  const t = n.getBoundingClientRect(), {
550
577
  width: o,
551
578
  height: l,
552
579
  $: s
553
- } = it(n);
554
- let i = (s ? Ae(t.width) : t.width) / o, c = (s ? Ae(t.height) : t.height) / l;
580
+ } = ft(n);
581
+ let i = (s ? Fe(t.width) : t.width) / o, c = (s ? Fe(t.height) : t.height) / l;
555
582
  return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
556
583
  x: i,
557
584
  y: c
558
585
  };
559
586
  }
560
- const cn = /* @__PURE__ */ X(0);
561
- function rt(e) {
562
- const n = P(e);
563
- return !ze() || !n.visualViewport ? cn : {
587
+ const hn = /* @__PURE__ */ Y(0);
588
+ function dt(e) {
589
+ const n = M(e);
590
+ return !Xe() || !n.visualViewport ? hn : {
564
591
  x: n.visualViewport.offsetLeft,
565
592
  y: n.visualViewport.offsetTop
566
593
  };
567
594
  }
568
- function un(e, n, t) {
569
- return n === void 0 && (n = !1), !t || n && t !== P(e) ? !1 : n;
595
+ function pn(e, n, t) {
596
+ return n === void 0 && (n = !1), !t || n && t !== M(e) ? !1 : n;
570
597
  }
571
- function ee(e, n, t, o) {
598
+ function le(e, n, t, o) {
572
599
  n === void 0 && (n = !1), t === void 0 && (t = !1);
573
- const l = e.getBoundingClientRect(), s = We(e);
574
- let i = X(1);
575
- n && (o ? U(o) && (i = re(o)) : i = re(e));
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, m = l.width / i.x, h = l.height / i.y;
600
+ const l = e.getBoundingClientRect(), s = Ye(e);
601
+ let i = Y(1);
602
+ n && (o ? z(o) && (i = fe(o)) : i = fe(e));
603
+ const c = pn(s, t, o) ? dt(s) : Y(0);
604
+ let r = (l.left + c.x) / i.x, u = (l.top + c.y) / i.y, d = l.width / i.x, p = l.height / i.y;
578
605
  if (s) {
579
- const g = P(s), d = o && U(o) ? P(o) : o;
580
- let f = g.frameElement;
581
- for (; f && o && d !== g; ) {
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;
583
- r *= b.x, u *= b.y, m *= b.x, h *= b.y, r += y, u += E, f = P(f).frameElement;
606
+ const y = M(s), h = o && z(o) ? M(o) : o;
607
+ let f = y, w = Ke(f);
608
+ for (; w && o && h !== f; ) {
609
+ const b = fe(w), m = w.getBoundingClientRect(), g = H(w), E = m.left + (w.clientLeft + parseFloat(g.paddingLeft)) * b.x, R = m.top + (w.clientTop + parseFloat(g.paddingTop)) * b.y;
610
+ r *= b.x, u *= b.y, d *= b.x, p *= b.y, r += E, u += R, f = M(w), w = Ke(f);
584
611
  }
585
612
  }
586
- return Me({
587
- width: m,
588
- height: h,
613
+ return Pe({
614
+ width: d,
615
+ height: p,
589
616
  x: r,
590
617
  y: u
591
618
  });
592
619
  }
593
- function fn(e) {
620
+ function mn(e) {
594
621
  let {
595
- rect: n,
596
- offsetParent: t,
597
- strategy: o
622
+ elements: n,
623
+ rect: t,
624
+ offsetParent: o,
625
+ strategy: l
598
626
  } = e;
599
- const l = W(t), s = j(t);
600
- if (t === s)
601
- return n;
602
- let i = {
627
+ const s = l === "fixed", i = X(o), c = n ? Ve(n.floating) : !1;
628
+ if (o === i || c && s)
629
+ return t;
630
+ let r = {
603
631
  scrollLeft: 0,
604
632
  scrollTop: 0
605
- }, c = X(1);
606
- const r = X(0);
607
- if ((l || !l && o !== "fixed") && ((Y(t) !== "body" || be(s)) && (i = Ie(t)), W(t))) {
608
- const u = ee(t);
609
- c = re(t), r.x = u.x + t.clientLeft, r.y = u.y + t.clientTop;
633
+ }, u = Y(1);
634
+ const d = Y(0), p = K(o);
635
+ if ((p || !p && !s) && ((ie(o) !== "body" || Ce(i)) && (r = Ne(o)), K(o))) {
636
+ const y = le(o);
637
+ u = fe(o), d.x = y.x + o.clientLeft, d.y = y.y + o.clientTop;
610
638
  }
611
639
  return {
612
- width: n.width * c.x,
613
- height: n.height * c.y,
614
- x: n.x * c.x - i.scrollLeft * c.x + r.x,
615
- y: n.y * c.y - i.scrollTop * c.y + r.y
640
+ width: t.width * u.x,
641
+ height: t.height * u.y,
642
+ x: t.x * u.x - r.scrollLeft * u.x + d.x,
643
+ y: t.y * u.y - r.scrollTop * u.y + d.y
616
644
  };
617
645
  }
618
- function dn(e) {
646
+ function vn(e) {
619
647
  return Array.from(e.getClientRects());
620
648
  }
621
- function at(e) {
622
- return ee(j(e)).left + Ie(e).scrollLeft;
649
+ function ht(e) {
650
+ return le(X(e)).left + Ne(e).scrollLeft;
623
651
  }
624
- function mn(e) {
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);
626
- let i = -t.scrollLeft + at(e);
652
+ function gn(e) {
653
+ const n = X(e), t = Ne(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);
654
+ let i = -t.scrollLeft + ht(e);
627
655
  const c = -t.scrollTop;
628
- return V(o).direction === "rtl" && (i += N(n.clientWidth, o.clientWidth) - l), {
656
+ return H(o).direction === "rtl" && (i += N(n.clientWidth, o.clientWidth) - l), {
629
657
  width: l,
630
658
  height: s,
631
659
  x: i,
632
660
  y: c
633
661
  };
634
662
  }
635
- function pn(e, n) {
636
- const t = P(e), o = j(e), l = t.visualViewport;
663
+ function yn(e, n) {
664
+ const t = M(e), o = X(e), l = t.visualViewport;
637
665
  let s = o.clientWidth, i = o.clientHeight, c = 0, r = 0;
638
666
  if (l) {
639
667
  s = l.width, i = l.height;
640
- const u = ze();
668
+ const u = Xe();
641
669
  (!u || u && n === "fixed") && (c = l.offsetLeft, r = l.offsetTop);
642
670
  }
643
671
  return {
@@ -647,8 +675,8 @@ function pn(e, n) {
647
675
  y: r
648
676
  };
649
677
  }
650
- function hn(e, n) {
651
- const t = ee(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = W(e) ? re(e) : X(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, r = l * s.x, u = o * s.y;
678
+ function wn(e, n) {
679
+ const t = le(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = K(e) ? fe(e) : Y(1), i = e.clientWidth * s.x, c = e.clientHeight * s.y, r = l * s.x, u = o * s.y;
652
680
  return {
653
681
  width: i,
654
682
  height: c,
@@ -656,52 +684,52 @@ function hn(e, n) {
656
684
  y: u
657
685
  };
658
686
  }
659
- function Je(e, n, t) {
687
+ function ot(e, n, t) {
660
688
  let o;
661
689
  if (n === "viewport")
662
- o = pn(e, t);
690
+ o = yn(e, t);
663
691
  else if (n === "document")
664
- o = mn(j(e));
665
- else if (U(n))
666
- o = hn(n, t);
692
+ o = gn(X(e));
693
+ else if (z(n))
694
+ o = wn(n, t);
667
695
  else {
668
- const l = rt(e);
696
+ const l = dt(e);
669
697
  o = {
670
698
  ...n,
671
699
  x: n.x - l.x,
672
700
  y: n.y - l.y
673
701
  };
674
702
  }
675
- return Me(o);
703
+ return Pe(o);
676
704
  }
677
- function ct(e, n) {
678
- const t = ae(e);
679
- return t === n || !U(t) || Pe(t) ? !1 : V(t).position === "fixed" || ct(t, n);
705
+ function pt(e, n) {
706
+ const t = G(e);
707
+ return t === n || !z(t) || he(t) ? !1 : H(t).position === "fixed" || pt(t, n);
680
708
  }
681
- function vn(e, n) {
709
+ function bn(e, n) {
682
710
  const t = n.get(e);
683
711
  if (t)
684
712
  return t;
685
- let o = ye(e, [], !1).filter((c) => U(c) && Y(c) !== "body"), l = null;
686
- const s = V(e).position === "fixed";
687
- let i = s ? ae(e) : e;
688
- for (; U(i) && !Pe(i); ) {
689
- const c = V(i), r = He(i);
690
- !r && c.position === "fixed" && (l = null), (s ? !r && !l : !r && c.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || be(i) && !r && ct(e, i)) ? o = o.filter((m) => m !== i) : l = c, i = ae(i);
713
+ let o = Ee(e, [], !1).filter((c) => z(c) && ie(c) !== "body"), l = null;
714
+ const s = H(e).position === "fixed";
715
+ let i = s ? G(e) : e;
716
+ for (; z(i) && !he(i); ) {
717
+ const c = H(i), r = qe(i);
718
+ !r && c.position === "fixed" && (l = null), (s ? !r && !l : !r && c.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || Ce(i) && !r && pt(e, i)) ? o = o.filter((d) => d !== i) : l = c, i = G(i);
691
719
  }
692
720
  return n.set(e, o), o;
693
721
  }
694
- function gn(e) {
722
+ function xn(e) {
695
723
  let {
696
724
  element: n,
697
725
  boundary: t,
698
726
  rootBoundary: o,
699
727
  strategy: l
700
728
  } = e;
701
- const i = [...t === "clippingAncestors" ? vn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, m) => {
702
- const h = Je(n, m, 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;
704
- }, Je(n, c, l));
729
+ const i = [...t === "clippingAncestors" ? Ve(n) ? [] : bn(n, this._c) : [].concat(t), o], c = i[0], r = i.reduce((u, d) => {
730
+ const p = ot(n, d, l);
731
+ return u.top = N(p.top, u.top), u.right = ne(p.right, u.right), u.bottom = ne(p.bottom, u.bottom), u.left = N(p.left, u.left), u;
732
+ }, ot(n, c, l));
705
733
  return {
706
734
  width: r.right - r.left,
707
735
  height: r.bottom - r.top,
@@ -709,118 +737,135 @@ function gn(e) {
709
737
  y: r.top
710
738
  };
711
739
  }
712
- function yn(e) {
713
- return it(e);
740
+ function _n(e) {
741
+ const {
742
+ width: n,
743
+ height: t
744
+ } = ft(e);
745
+ return {
746
+ width: n,
747
+ height: t
748
+ };
714
749
  }
715
- function wn(e, n, t) {
716
- const o = W(n), l = j(n), s = t === "fixed", i = ee(e, !0, s, n);
750
+ function En(e, n, t) {
751
+ const o = K(n), l = X(n), s = t === "fixed", i = le(e, !0, s, n);
717
752
  let c = {
718
753
  scrollLeft: 0,
719
754
  scrollTop: 0
720
755
  };
721
- const r = X(0);
756
+ const r = Y(0);
722
757
  if (o || !o && !s)
723
- if ((Y(n) !== "body" || be(l)) && (c = Ie(n)), o) {
724
- const u = ee(n, !0, s, n);
725
- r.x = u.x + n.clientLeft, r.y = u.y + n.clientTop;
758
+ if ((ie(n) !== "body" || Ce(l)) && (c = Ne(n)), o) {
759
+ const p = le(n, !0, s, n);
760
+ r.x = p.x + n.clientLeft, r.y = p.y + n.clientTop;
726
761
  } else
727
- l && (r.x = at(l));
762
+ l && (r.x = ht(l));
763
+ const u = i.left + c.scrollLeft - r.x, d = i.top + c.scrollTop - r.y;
728
764
  return {
729
- x: i.left + c.scrollLeft - r.x,
730
- y: i.top + c.scrollTop - r.y,
765
+ x: u,
766
+ y: d,
731
767
  width: i.width,
732
768
  height: i.height
733
769
  };
734
770
  }
735
- function Qe(e, n) {
736
- return !W(e) || V(e).position === "fixed" ? null : n ? n(e) : e.offsetParent;
771
+ function We(e) {
772
+ return H(e).position === "static";
773
+ }
774
+ function lt(e, n) {
775
+ return !K(e) || H(e).position === "fixed" ? null : n ? n(e) : e.offsetParent;
737
776
  }
738
- function ut(e, n) {
739
- const t = P(e);
740
- if (!W(e))
777
+ function mt(e, n) {
778
+ const t = M(e);
779
+ if (Ve(e))
780
+ return t;
781
+ if (!K(e)) {
782
+ let l = G(e);
783
+ for (; l && !he(l); ) {
784
+ if (z(l) && !We(l))
785
+ return l;
786
+ l = G(l);
787
+ }
741
788
  return t;
742
- let o = Qe(e, n);
743
- for (; o && rn(o) && V(o).position === "static"; )
744
- o = Qe(o, n);
745
- return o && (Y(o) === "html" || Y(o) === "body" && V(o).position === "static" && !He(o)) ? t : o || an(e) || t;
789
+ }
790
+ let o = lt(e, n);
791
+ for (; o && fn(o) && We(o); )
792
+ o = lt(o, n);
793
+ return o && he(o) && We(o) && !qe(o) ? t : o || dn(e) || t;
746
794
  }
747
- const bn = async function(e) {
748
- let {
749
- reference: n,
750
- floating: t,
751
- strategy: o
752
- } = e;
753
- const l = this.getOffsetParent || ut, s = this.getDimensions;
795
+ const Sn = async function(e) {
796
+ const n = this.getOffsetParent || mt, t = this.getDimensions, o = await t(e.floating);
754
797
  return {
755
- reference: wn(n, await l(t), o),
798
+ reference: En(e.reference, await n(e.floating), e.strategy),
756
799
  floating: {
757
800
  x: 0,
758
801
  y: 0,
759
- ...await s(t)
802
+ width: o.width,
803
+ height: o.height
760
804
  }
761
805
  };
762
806
  };
763
- function xn(e) {
764
- return V(e).direction === "rtl";
765
- }
766
- const _n = {
767
- convertOffsetParentRelativeRectToViewportRelativeRect: fn,
768
- getDocumentElement: j,
769
- getClippingRect: gn,
770
- getOffsetParent: ut,
771
- getElementRects: bn,
772
- getClientRects: dn,
773
- getDimensions: yn,
774
- getScale: re,
775
- isElement: U,
776
- isRTL: xn
807
+ function Cn(e) {
808
+ return H(e).direction === "rtl";
809
+ }
810
+ const Rn = {
811
+ convertOffsetParentRelativeRectToViewportRelativeRect: mn,
812
+ getDocumentElement: X,
813
+ getClippingRect: xn,
814
+ getOffsetParent: mt,
815
+ getElementRects: Sn,
816
+ getClientRects: vn,
817
+ getDimensions: _n,
818
+ getScale: fe,
819
+ isElement: z,
820
+ isRTL: Cn
777
821
  };
778
- function En(e, n) {
822
+ function On(e, n) {
779
823
  let t = null, o;
780
- const l = j(e);
824
+ const l = X(e);
781
825
  function s() {
782
- clearTimeout(o), t && t.disconnect(), t = null;
826
+ var c;
827
+ clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
783
828
  }
784
829
  function i(c, r) {
785
830
  c === void 0 && (c = !1), r === void 0 && (r = 1), s();
786
831
  const {
787
832
  left: u,
788
- top: m,
789
- width: h,
790
- height: g
833
+ top: d,
834
+ width: p,
835
+ height: y
791
836
  } = e.getBoundingClientRect();
792
- if (c || n(), !h || !g)
837
+ if (c || n(), !p || !y)
793
838
  return;
794
- const d = Be(m), f = Be(l.clientWidth - (u + h)), b = Be(l.clientHeight - (m + g)), _ = Be(u), y = {
795
- rootMargin: -d + "px " + -f + "px " + -b + "px " + -_ + "px",
796
- threshold: N(0, ge(1, r)) || 1
839
+ const h = De(d), f = De(l.clientWidth - (u + p)), w = De(l.clientHeight - (d + y)), b = De(u), g = {
840
+ rootMargin: -h + "px " + -f + "px " + -w + "px " + -b + "px",
841
+ threshold: N(0, ne(1, r)) || 1
797
842
  };
798
843
  let E = !0;
799
844
  function R(C) {
800
- const O = C[0].intersectionRatio;
801
- if (O !== r) {
845
+ const T = C[0].intersectionRatio;
846
+ if (T !== r) {
802
847
  if (!E)
803
848
  return i();
804
- O ? i(!1, O) : o = setTimeout(() => {
849
+ T ? i(!1, T) : o = setTimeout(() => {
805
850
  i(!1, 1e-7);
806
- }, 100);
851
+ }, 1e3);
807
852
  }
808
853
  E = !1;
809
854
  }
810
855
  try {
811
856
  t = new IntersectionObserver(R, {
812
- ...y,
857
+ ...g,
813
858
  // Handle <iframe>s
814
859
  root: l.ownerDocument
815
860
  });
816
861
  } catch {
817
- t = new IntersectionObserver(R, y);
862
+ t = new IntersectionObserver(R, g);
818
863
  }
819
864
  t.observe(e);
820
865
  }
821
866
  return i(!0), s;
822
867
  }
823
- function Sn(e, n, t, o) {
868
+ function kn(e, n, t, o) {
824
869
  o === void 0 && (o = {});
825
870
  const {
826
871
  ancestorScroll: l = !0,
@@ -828,144 +873,155 @@ function Sn(e, n, t, o) {
828
873
  elementResize: i = typeof ResizeObserver == "function",
829
874
  layoutShift: c = typeof IntersectionObserver == "function",
830
875
  animationFrame: r = !1
831
- } = o, u = We(e), m = l || s ? [...u ? ye(u) : [], ...ye(n)] : [];
832
- m.forEach((v) => {
833
- l && v.addEventListener("scroll", t, {
876
+ } = o, u = Ye(e), d = l || s ? [...u ? Ee(u) : [], ...Ee(n)] : [];
877
+ d.forEach((m) => {
878
+ l && m.addEventListener("scroll", t, {
834
879
  passive: !0
835
- }), s && v.addEventListener("resize", t);
880
+ }), s && m.addEventListener("resize", t);
836
881
  });
837
- const h = u && c ? En(u, t) : null;
838
- let g = -1, d = null;
839
- i && (d = new ResizeObserver((v) => {
840
- let [y] = v;
841
- y && y.target === u && d && (d.unobserve(n), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
842
- d && d.observe(n);
882
+ const p = u && c ? On(u, t) : null;
883
+ let y = -1, h = null;
884
+ i && (h = new ResizeObserver((m) => {
885
+ let [g] = m;
886
+ g && g.target === u && h && (h.unobserve(n), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
887
+ var E;
888
+ (E = h) == null || E.observe(n);
843
889
  })), t();
844
- }), u && !r && d.observe(u), d.observe(n));
845
- let f, b = r ? ee(e) : null;
846
- r && _();
847
- function _() {
848
- const v = ee(e);
849
- b && (v.x !== b.x || v.y !== b.y || v.width !== b.width || v.height !== b.height) && t(), b = v, f = requestAnimationFrame(_);
890
+ }), u && !r && h.observe(u), h.observe(n));
891
+ let f, w = r ? le(e) : null;
892
+ r && b();
893
+ function b() {
894
+ const m = le(e);
895
+ w && (m.x !== w.x || m.y !== w.y || m.width !== w.width || m.height !== w.height) && t(), w = m, f = requestAnimationFrame(b);
850
896
  }
851
897
  return t(), () => {
852
- m.forEach((v) => {
853
- l && v.removeEventListener("scroll", t), s && v.removeEventListener("resize", t);
854
- }), h && h(), d && d.disconnect(), d = null, r && cancelAnimationFrame(f);
898
+ var m;
899
+ d.forEach((g) => {
900
+ l && g.removeEventListener("scroll", t), s && g.removeEventListener("resize", t);
901
+ }), p == null || p(), (m = h) == null || m.disconnect(), h = null, r && cancelAnimationFrame(f);
855
902
  };
856
903
  }
857
- const Cn = (e, n, t) => {
904
+ const Tn = cn, Bn = rn, An = un, Ln = (e, n, t) => {
858
905
  const o = /* @__PURE__ */ new Map(), l = {
859
- platform: _n,
906
+ platform: Rn,
860
907
  ...t
861
908
  }, s = {
862
909
  ...l.platform,
863
910
  _c: o
864
911
  };
865
- return tn(e, n, {
912
+ return sn(e, n, {
866
913
  ...l,
867
914
  platform: s
868
915
  });
869
916
  };
870
- function Ze(e) {
871
- var n;
872
- return (n = e == null ? void 0 : e.$el) != null ? n : e;
917
+ function Dn(e) {
918
+ return e != null && typeof e == "object" && "$el" in e;
873
919
  }
874
- function ft(e) {
920
+ function it(e) {
921
+ if (Dn(e)) {
922
+ const n = e.$el;
923
+ return Ue(n) && ie(n) === "#comment" ? null : n;
924
+ }
925
+ return e;
926
+ }
927
+ function _e(e) {
928
+ return typeof e == "function" ? e() : q(e);
929
+ }
930
+ function vt(e) {
875
931
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
876
932
  }
877
- function et(e, n) {
878
- const t = ft(e);
933
+ function st(e, n) {
934
+ const t = vt(e);
879
935
  return Math.round(n * t) / t;
880
936
  }
881
- function Rn(e, n, t) {
937
+ function Fn(e, n, t) {
882
938
  t === void 0 && (t = {});
883
- const o = t.whileElementsMounted, l = T(() => {
884
- var x;
885
- return (x = F(t.open)) != null ? x : !0;
886
- }), s = T(() => F(t.middleware)), i = T(() => {
887
- var x;
888
- return (x = F(t.placement)) != null ? x : "bottom";
889
- }), c = T(() => {
890
- var x;
891
- return (x = F(t.strategy)) != null ? x : "absolute";
892
- }), r = T(() => {
893
- var x;
894
- return (x = F(t.transform)) != null ? x : !0;
895
- }), u = T(() => Ze(e.value)), m = T(() => Ze(n.value)), h = k(0), g = k(0), d = k(c.value), f = k(i.value), b = bt({}), _ = k(!1), v = T(() => {
896
- const x = {
897
- position: d.value,
939
+ const o = t.whileElementsMounted, l = k(() => {
940
+ var _;
941
+ return (_ = _e(t.open)) != null ? _ : !0;
942
+ }), s = k(() => _e(t.middleware)), i = k(() => {
943
+ var _;
944
+ return (_ = _e(t.placement)) != null ? _ : "bottom";
945
+ }), c = k(() => {
946
+ var _;
947
+ return (_ = _e(t.strategy)) != null ? _ : "absolute";
948
+ }), r = k(() => {
949
+ var _;
950
+ return (_ = _e(t.transform)) != null ? _ : !0;
951
+ }), u = k(() => it(e.value)), d = k(() => it(n.value)), p = O(0), y = O(0), h = O(c.value), f = O(i.value), w = St({}), b = O(!1), m = k(() => {
952
+ const _ = {
953
+ position: h.value,
898
954
  left: "0",
899
955
  top: "0"
900
956
  };
901
- if (!m.value)
902
- return x;
903
- const M = et(m.value, h.value), D = et(m.value, g.value);
957
+ if (!d.value)
958
+ return _;
959
+ const P = st(d.value, p.value), B = st(d.value, y.value);
904
960
  return r.value ? {
905
- ...x,
906
- transform: "translate(" + M + "px, " + D + "px)",
907
- ...ft(m.value) >= 1.5 && {
961
+ ..._,
962
+ transform: "translate(" + P + "px, " + B + "px)",
963
+ ...vt(d.value) >= 1.5 && {
908
964
  willChange: "transform"
909
965
  }
910
966
  } : {
911
- position: d.value,
912
- left: M + "px",
913
- top: D + "px"
967
+ position: h.value,
968
+ left: P + "px",
969
+ top: B + "px"
914
970
  };
915
971
  });
916
- let y;
972
+ let g;
917
973
  function E() {
918
- u.value == null || m.value == null || Cn(u.value, m.value, {
974
+ u.value == null || d.value == null || Ln(u.value, d.value, {
919
975
  middleware: s.value,
920
976
  placement: i.value,
921
977
  strategy: c.value
922
- }).then((x) => {
923
- h.value = x.x, g.value = x.y, d.value = x.strategy, f.value = x.placement, b.value = x.middlewareData, _.value = !0;
978
+ }).then((_) => {
979
+ p.value = _.x, y.value = _.y, h.value = _.strategy, f.value = _.placement, w.value = _.middlewareData, b.value = !0;
924
980
  });
925
981
  }
926
982
  function R() {
927
- typeof y == "function" && (y(), y = void 0);
983
+ typeof g == "function" && (g(), g = void 0);
928
984
  }
929
985
  function C() {
930
986
  if (R(), o === void 0) {
931
987
  E();
932
988
  return;
933
989
  }
934
- if (u.value != null && m.value != null) {
935
- y = o(u.value, m.value, E);
990
+ if (u.value != null && d.value != null) {
991
+ g = o(u.value, d.value, E);
936
992
  return;
937
993
  }
938
994
  }
939
- function O() {
940
- l.value || (_.value = !1);
995
+ function T() {
996
+ l.value || (b.value = !1);
941
997
  }
942
- return Q([s, i, c], E, {
998
+ return te([s, i, c], E, {
943
999
  flush: "sync"
944
- }), Q([u, m], C, {
1000
+ }), te([u, d], C, {
945
1001
  flush: "sync"
946
- }), Q(l, O, {
1002
+ }), te(l, T, {
947
1003
  flush: "sync"
948
- }), xt() && _t(R), {
949
- x: oe(h),
950
- y: oe(g),
951
- strategy: oe(d),
952
- placement: oe(f),
953
- middlewareData: oe(b),
954
- isPositioned: oe(_),
955
- floatingStyles: v,
1004
+ }), Ct() && Rt(R), {
1005
+ x: re(p),
1006
+ y: re(y),
1007
+ strategy: re(h),
1008
+ placement: re(f),
1009
+ middlewareData: re(w),
1010
+ isPositioned: re(b),
1011
+ floatingStyles: m,
956
1012
  update: E
957
1013
  };
958
1014
  }
959
- const On = (e) => (Mt("data-v-d85a8746"), 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 = {
1015
+ const Mn = (e) => (It("data-v-d85a8746"), e = e(), Vt(), e), Pn = ["id", "aria-errormessage", "aria-invalid", "disabled", "multiple", "name"], In = ["selected", "value"], Vn = /* @__PURE__ */ Mn(() => /* @__PURE__ */ j("option", { value: "" }, null, -1)), Nn = ["aria-controls", "aria-expanded", "aria-label", "aria-disabled", "onKeyup"], $n = ["id"], zn = ["onKeypress", "onMousedown"], Hn = {
960
1016
  key: 0,
961
1017
  class: "stash-select__total"
962
- }, Fn = {
1018
+ }, Wn = {
963
1019
  key: 0,
964
1020
  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 = {
1021
+ }, jn = ["data-test", "placeholder"], Kn = { class: "stash-select__options options tw-my-1.5 tw-w-full tw-border-white tw-bg-white" }, Un = ["data-test", "onClick", "onMouseenter"], qn = { class: "tw-m-1.5 tw-cursor-default tw-p-1.5" }, Xn = {
966
1022
  class: "tw-m-1.5 tw-cursor-default tw-p-1.5",
967
1023
  "data-test": "stash-select|no-options"
968
- }, Hn = /* @__PURE__ */ Et({
1024
+ }, Yn = /* @__PURE__ */ Ot({
969
1025
  name: "ll-select",
970
1026
  __name: "Select",
971
1027
  props: {
@@ -1005,404 +1061,404 @@ const On = (e) => (Mt("data-v-d85a8746"), e = e(), Dt(), e), kn = ["id", "aria-e
1005
1061
  useFuzzySearch: { type: Boolean, default: !1 },
1006
1062
  menuPlacement: { default: "bottom-start" },
1007
1063
  enableTeleport: { type: Boolean, default: !1 },
1008
- teleportTo: { default: `#${Wt}` }
1064
+ teleportTo: { default: `#${qt}` }
1009
1065
  },
1010
1066
  emits: ["update:model-value", "clear", "add", "remove", "opened", "closed"],
1011
1067
  setup(e, { emit: n }) {
1012
- const t = e, o = 6, l = 300, s = St(), i = Ct(), c = k(null), r = k(null), u = k(null), m = 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,
1068
+ const t = e, o = 6, l = 300, s = kt(), i = Tt(), c = O(null), r = O(null), u = O(null), d = O(null), p = O(null), y = O(0), h = O(0), f = O([]), w = O(() => []), b = O(""), m = O(-1), g = O(!1), E = O({}), R = O(!1), { floatingStyles: C } = Fn(c, u, {
1069
+ whileElementsMounted: kn,
1014
1070
  placement: t.menuPlacement,
1015
1071
  middleware: [
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: p, rects: S }) {
1020
- t.enableTeleport && Object.assign(p.floating.style, {
1072
+ Bn(),
1073
+ Tn(({ rects: a }) => t.menuPlacement.includes("bottom") && y.value > h.value ? y.value - a.reference.height + o : o),
1074
+ An({
1075
+ apply({ availableHeight: a, elements: v, rects: S }) {
1076
+ t.enableTeleport && Object.assign(v.floating.style, {
1021
1077
  maxWidth: `${S.reference.width}px`,
1022
1078
  maxHeight: `${Math.min(a, l)}px`
1023
1079
  });
1024
1080
  }
1025
1081
  })
1026
1082
  ]
1027
- }), O = T(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), x = T(() => {
1083
+ }), T = k(() => !t.hideSearch && t.searchable !== "false" && t.searchable !== !1), _ = k(() => {
1028
1084
  let a = (R.value && t.lazy ? t.lazy() : t.options).filter(Boolean);
1029
- return Nt(a[0]) || (a = a.map((p, S) => ({ name: p, id: S }))), a;
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(
1031
- () => !y.value && !t.single && !xe.value && f.value.length
1032
- ), K = T(() => [f.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Ee = T(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1033
- Q(_, (a, p) => p !== a && Ce(-1)), Q(f, () => ce(), { deep: !0 }), Q(
1085
+ return Ht(a[0]) || (a = a.map((v, S) => ({ name: v, id: S }))), a;
1086
+ }), P = k(() => t.searchLoading || Object.keys(E.value).length > 0), B = k(() => t.disableFiltering || !(b.value || "").trim() ? _.value : w.value(b.value)), W = k(() => y.value <= h.value), J = k(
1087
+ () => !g.value && !t.single && !W.value && f.value.length
1088
+ ), Re = k(() => [f.value.length, t.selectItemType, "selected"].filter(Boolean).join(" ")), Oe = k(() => t.preventEmpty || t.allowEmpty === "false" || t.allowEmpty === !1);
1089
+ te(b, (a, v) => v !== a && ke(-1)), te(f, () => pe(), { deep: !0 }), te(
1034
1090
  () => t.modelValue,
1035
1091
  (a) => {
1036
1092
  if (Array.isArray(a)) {
1037
- const p = a.filter(Boolean);
1038
- qe(p, f.value) || (f.value = p);
1093
+ const v = a.filter(Boolean);
1094
+ Ze(v, f.value) || (f.value = v);
1039
1095
  return;
1040
1096
  }
1041
- if (!It(a)) {
1042
- qe(a, f.value[0]) || (f.value[0] = a);
1097
+ if (!zt(a)) {
1098
+ Ze(a, f.value[0]) || (f.value[0] = a);
1043
1099
  return;
1044
1100
  }
1045
1101
  f.value = [];
1046
1102
  },
1047
1103
  { immediate: !0 }
1048
- ), Q(
1104
+ ), te(
1049
1105
  () => t.options,
1050
1106
  () => {
1051
- const { searchFor: a } = $t({
1052
- items: T(() => x.value),
1107
+ const { searchFor: a } = jt({
1108
+ items: k(() => _.value),
1053
1109
  fieldNames: t.searchBy.length ? t.searchBy : [t.displayBy],
1054
1110
  trackBy: t.trackBy
1055
1111
  });
1056
- b.value = (p) => a(p, { fuzzy: t.useFuzzySearch });
1112
+ w.value = (v) => a(v, { fuzzy: t.useFuzzySearch });
1057
1113
  },
1058
1114
  { immediate: !0 }
1059
1115
  );
1060
- const G = () => {
1116
+ const U = () => {
1061
1117
  f.value = [], n("update:model-value", t.single ? void 0 : f.value), n("clear");
1062
- }, $ = (a) => {
1063
- t.disabled || !a || typeof a == "object" && "disabled" in a && (a != null && a.disabled) || (ne(a) ? H(a) : (t.single && (f.value = []), f.value.push(a), n("update:model-value", t.single ? f.value[0] : f.value), n("add", a)), t.single && te());
1064
- }, q = (a) => {
1118
+ }, Q = (a) => {
1119
+ t.disabled || !a || typeof a == "object" && "disabled" in a && (a != null && a.disabled) || (se(a) ? I(a) : (t.single && (f.value = []), f.value.push(a), n("update:model-value", t.single ? f.value[0] : f.value), n("add", a)), t.single && L());
1120
+ }, Z = (a) => {
1065
1121
  if (t.single) {
1066
- const S = x.value.find((A) => {
1067
- var L;
1068
- return ((L = A[t.trackBy]) == null ? void 0 : L.toString()) === a.target.value;
1122
+ const S = _.value.find((D) => {
1123
+ var F;
1124
+ return ((F = D[t.trackBy]) == null ? void 0 : F.toString()) === a.target.value;
1069
1125
  });
1070
- $(S);
1126
+ Q(S);
1071
1127
  return;
1072
1128
  }
1073
- const p = [...a.target.selectedOptions];
1129
+ const v = [...a.target.selectedOptions];
1074
1130
  for (const S of [...f.value])
1075
- p.find((L) => {
1076
- var w;
1077
- return L.value === ((w = S[t.trackBy]) == null ? void 0 : w.toString());
1078
- }) || H(S);
1079
- for (const S of p) {
1080
- const A = x.value.find(
1081
- (L) => {
1082
- var w;
1083
- return ((w = L[t.trackBy]) == null ? void 0 : w.toString()) === S.value;
1131
+ v.find((F) => {
1132
+ var x;
1133
+ return F.value === ((x = S[t.trackBy]) == null ? void 0 : x.toString());
1134
+ }) || I(S);
1135
+ for (const S of v) {
1136
+ const D = _.value.find(
1137
+ (F) => {
1138
+ var x;
1139
+ return ((x = F[t.trackBy]) == null ? void 0 : x.toString()) === S.value;
1084
1140
  }
1085
1141
  );
1086
- ne(A) || $(A);
1142
+ se(D) || Q(D);
1087
1143
  }
1088
- }, H = (a) => {
1089
- if (t.disabled || Ee.value && f.value.length === 1)
1144
+ }, I = (a) => {
1145
+ if (t.disabled || Oe.value && f.value.length === 1)
1090
1146
  return;
1091
- const p = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1092
- if (p === -1) {
1093
- Ft.warn("ll-select: could not find option to remove", a);
1147
+ const v = f.value.findIndex((S) => S[t.trackBy] === a[t.trackBy]);
1148
+ if (v === -1) {
1149
+ Nt.warn("ll-select: could not find option to remove", a);
1094
1150
  return;
1095
1151
  }
1096
- f.value.splice(p, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, p);
1097
- }, Se = () => {
1098
- y.value || (ce(), y.value = !0, n("opened"), O.value && Ne(() => {
1152
+ f.value.splice(v, 1), n("update:model-value", t.single ? f.value[0] : f.value), n("remove", a, v);
1153
+ }, $ = () => {
1154
+ g.value || (pe(), g.value = !0, n("opened"), T.value && ze(() => {
1099
1155
  var a;
1100
- (a = h.value) == null || a.focus({ preventScroll: !0 });
1156
+ (a = p.value) == null || a.focus({ preventScroll: !0 });
1101
1157
  }));
1102
- }, te = () => {
1158
+ }, L = () => {
1103
1159
  var a;
1104
- y.value && n("closed", f.value), Ce(-1), y.value = !1, t.preserveSearchTerm || (_.value = ""), (a = r.value) == null || a.blur();
1105
- }, dt = async (a) => {
1106
- if (await Ne(), !r.value)
1160
+ g.value && n("closed", f.value), ke(-1), g.value = !1, t.preserveSearchTerm || (b.value = ""), (a = r.value) == null || a.blur();
1161
+ }, $e = async (a) => {
1162
+ if (await ze(), !r.value)
1107
1163
  return;
1108
- if (![ie.ENTER, ie.ESCAPE].includes(a.keyCode)) {
1109
- const S = r.value.querySelector(".stash-select__option--highlighted"), A = S == null ? void 0 : S.getBoundingClientRect(), L = r.value.getBoundingClientRect();
1110
- if (!A || !L)
1164
+ if (![ue.ENTER, ue.ESCAPE].includes(a.keyCode)) {
1165
+ const S = r.value.querySelector(".stash-select__option--highlighted"), D = S == null ? void 0 : S.getBoundingClientRect(), F = r.value.getBoundingClientRect();
1166
+ if (!D || !F)
1111
1167
  return;
1112
- (A.bottom >= L.bottom || A.top <= L.top + A.height) && (S == null || S.scrollIntoView({ block: "nearest", inline: "nearest" }));
1168
+ (D.bottom >= F.bottom || D.top <= F.top + D.height) && (S == null || S.scrollIntoView({ block: "nearest", inline: "nearest" }));
1113
1169
  }
1114
- }, Ce = (a) => {
1115
- v.value = a;
1116
- }, mt = (a) => {
1117
- if (a.keyCode === ie.ESCAPE)
1118
- te();
1119
- else if (a.keyCode === ie.DOWN && v.value < D.value.length - 1)
1120
- y.value && v.value++;
1121
- else if (a.keyCode === ie.UP && v.value > 0)
1122
- y.value && v.value--, u.value && O.value && v.value === 0 && (u.value.scrollTop -= 100);
1123
- else if (a.keyCode === ie.ENTER && v.value !== -1)
1124
- y.value && $(D.value[v.value]);
1170
+ }, ke = (a) => {
1171
+ m.value = a;
1172
+ }, gt = (a) => {
1173
+ if (a.keyCode === ue.ESCAPE)
1174
+ L();
1175
+ else if (a.keyCode === ue.DOWN && m.value < B.value.length - 1)
1176
+ g.value && m.value++;
1177
+ else if (a.keyCode === ue.UP && m.value > 0)
1178
+ g.value && m.value--, u.value && T.value && m.value === 0 && (u.value.scrollTop -= 100);
1179
+ else if (a.keyCode === ue.ENTER && m.value !== -1)
1180
+ g.value && Q(B.value[m.value]);
1125
1181
  else
1126
1182
  return;
1127
- a.preventDefault(), dt(a);
1128
- }, Ke = Pt(function() {
1129
- pt();
1130
- }, Ht.FAST), pt = async function() {
1183
+ a.preventDefault(), $e(a);
1184
+ }, Ge = $t(function() {
1185
+ yt();
1186
+ }, Kt.FAST), yt = async function() {
1131
1187
  if (!t.onSearch)
1132
1188
  return;
1133
- const a = Vt("search-request-");
1189
+ const a = Wt("search-request-");
1134
1190
  try {
1135
- E.value[a] = !0, await t.onSearch(_.value);
1191
+ E.value[a] = !0, await t.onSearch(b.value);
1136
1192
  } finally {
1137
1193
  delete E.value[a];
1138
1194
  }
1139
- }, ht = (a, p) => [
1195
+ }, wt = (a, v) => [
1140
1196
  {
1141
1197
  "stash-select__option": !0,
1142
1198
  "stash-select__option--disabled": a && typeof a == "object" && "disabled" in a && (a == null ? void 0 : a.disabled),
1143
- "stash-select__option--highlighted": v.value === p,
1144
- "stash-select__option--selected": ne(a)
1199
+ "stash-select__option--highlighted": m.value === v,
1200
+ "stash-select__option--selected": se(a)
1145
1201
  },
1146
1202
  // @deprecated
1147
1203
  {
1148
- "tw-bg-ice-200": v.value === p,
1149
- "tw-bg-blue-100 tw-text-ice-700": ne(a)
1204
+ "tw-bg-ice-200": m.value === v,
1205
+ "tw-bg-blue-100 tw-text-ice-700": se(a)
1150
1206
  }
1151
- ], ne = (a) => a == null ? !1 : f.value.some((p) => (p == null ? void 0 : p[t.trackBy]) === a[t.trackBy]);
1152
- function Ue(a) {
1153
- var A, L;
1207
+ ], se = (a) => a == null ? !1 : f.value.some((v) => (v == null ? void 0 : v[t.trackBy]) === a[t.trackBy]);
1208
+ function Je(a) {
1209
+ var D, F;
1154
1210
  if (!a)
1155
1211
  return !1;
1156
- const p = (A = r.value) == null ? void 0 : A.contains(a), S = (L = u.value) == null ? void 0 : L.contains(a);
1157
- return p || S;
1212
+ const v = (D = r.value) == null ? void 0 : D.contains(a), S = (F = u.value) == null ? void 0 : F.contains(a);
1213
+ return v || S;
1158
1214
  }
1159
- function vt(a) {
1160
- const p = a.relatedTarget;
1161
- !Ue(p) && p && te();
1215
+ function bt(a) {
1216
+ const v = a.relatedTarget;
1217
+ !Je(v) && v && L();
1162
1218
  }
1163
- function gt(a) {
1164
- const p = a.target;
1165
- Ue(p) || te();
1219
+ function xt(a) {
1220
+ const v = a.target;
1221
+ Je(v) || L();
1166
1222
  }
1167
- const yt = () => {
1168
- Ce(-1);
1169
- }, ce = async () => {
1170
- await Ne(), m.value && r.value && (d.value = d.value === 0 ? r.value.clientHeight : d.value, g.value = m.value.clientHeight);
1223
+ const _t = () => {
1224
+ ke(-1);
1225
+ }, pe = async () => {
1226
+ await ze(), d.value && r.value && (h.value = h.value === 0 ? r.value.clientHeight : h.value, y.value = d.value.clientHeight);
1171
1227
  };
1172
- return Rt(() => {
1228
+ return Bt(() => {
1173
1229
  if (s.onInput)
1174
1230
  throw new Error("ll-select: use the @update:model-value event instead of @input.");
1175
- window.addEventListener("resize", ce), ce();
1176
- }), Ot(() => {
1177
- window.removeEventListener("resize", ce);
1178
- }), (a, p) => (B(), Re(Kt, {
1231
+ window.addEventListener("resize", pe), pe();
1232
+ }), At(() => {
1233
+ window.removeEventListener("resize", pe);
1234
+ }), (a, v) => (A(), Te(Xt, {
1179
1235
  id: t.id,
1180
- class: ue(["input ll-select stash-select", F(s).class]),
1236
+ class: me(["input ll-select stash-select", q(s).class]),
1181
1237
  "data-test": "stash-select",
1182
1238
  "add-bottom-space": t.addBottomSpace,
1183
1239
  "error-text": t.errorText || t.error,
1184
1240
  "hint-text": t.hintText || t.hint,
1185
1241
  label: t.label,
1186
1242
  "show-optional-in-label": t.showOptionalInLabel
1187
- }, kt({
1188
- default: fe(({ fieldId: S, fieldErrorId: A, hasError: L }) => [
1189
- z("select", {
1243
+ }, Lt({
1244
+ default: ve(({ fieldId: S, fieldErrorId: D, hasError: F }) => [
1245
+ j("select", {
1190
1246
  id: S,
1191
- "aria-errormessage": A,
1192
- "aria-invalid": L,
1247
+ "aria-errormessage": D,
1248
+ "aria-invalid": F,
1193
1249
  class: "tw-sr-only",
1194
1250
  disabled: t.disabled,
1195
1251
  multiple: !t.single,
1196
1252
  name: t.name,
1197
- onChange: q
1253
+ onChange: Z
1198
1254
  }, [
1199
- (B(!0), I(Oe, null, ke(D.value, (w, J) => (B(), I("option", {
1200
- key: `srOnlyOption-${J}`,
1201
- selected: ne(w),
1202
- value: w[t.trackBy]
1203
- }, le(w[t.displayBy] || ""), 9, Tn))), 128)),
1204
- Bn
1205
- ], 40, kn),
1206
- de((B(), I("div", {
1255
+ (A(!0), V(Be, null, Ae(B.value, (x, ee) => (A(), V("option", {
1256
+ key: `srOnlyOption-${ee}`,
1257
+ selected: se(x),
1258
+ value: x[t.trackBy]
1259
+ }, ae(x[t.displayBy] || ""), 9, In))), 128)),
1260
+ Vn
1261
+ ], 40, Pn),
1262
+ ge((A(), V("div", {
1207
1263
  ref_key: "selectRef",
1208
1264
  ref: c,
1209
1265
  role: "listbox",
1210
1266
  "aria-hidden": "true",
1211
- class: ue(["stash-select__content-wrapper", [
1267
+ class: me(["stash-select__content-wrapper", [
1212
1268
  {
1213
1269
  "stash-select--disabled": !!t.disabled,
1214
1270
  "stash-select--error": !!(t.errorText || t.error),
1215
- "stash-select--active": y.value,
1271
+ "stash-select--active": g.value,
1216
1272
  "stash-select--single": t.single
1217
1273
  },
1218
1274
  // @deprecated
1219
1275
  {
1220
- "is-active": y.value,
1276
+ "is-active": g.value,
1221
1277
  "is-single": t.single,
1222
1278
  "is-disabled": t.disabled
1223
1279
  }
1224
1280
  ]]),
1225
1281
  "aria-controls": "listbox-" + S,
1226
- "aria-expanded": y.value,
1282
+ "aria-expanded": g.value,
1227
1283
  "aria-label": t.placeholder,
1228
1284
  "aria-disabled": t.disabled || void 0,
1229
- onKeydown: mt,
1230
- onKeyup: je(te, ["esc"])
1285
+ onKeydown: gt,
1286
+ onKeyup: Qe(L, ["esc"])
1231
1287
  }, [
1232
- z("div", {
1288
+ j("div", {
1233
1289
  id: "listbox-" + S,
1234
1290
  ref_key: "contentRef",
1235
1291
  ref: r,
1236
1292
  class: "input-field stash-select__content",
1237
1293
  tabindex: "0",
1238
- onFocusin: Se,
1239
- onFocusinOnce: p[4] || (p[4] = (w) => R.value = !0),
1240
- onFocusout: vt,
1241
- onKeydown: Se,
1242
- onMouseleave: yt
1294
+ onFocusin: $,
1295
+ onFocusinOnce: v[4] || (v[4] = (x) => R.value = !0),
1296
+ onFocusout: bt,
1297
+ onKeydown: $,
1298
+ onMouseleave: _t
1243
1299
  }, [
1244
- z("ul", {
1300
+ j("ul", {
1245
1301
  ref_key: "chipsRef",
1246
- ref: m,
1302
+ ref: d,
1247
1303
  class: "stash-select__chips"
1248
1304
  }, [
1249
- f.value.length ? me("", !0) : (B(), I("li", {
1305
+ f.value.length ? ye("", !0) : (A(), V("li", {
1250
1306
  key: 0,
1251
- class: ue(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1252
- }, le(t.placeholder), 3)),
1253
- t.single ? (B(!0), I(Oe, { key: 1 }, ke(f.value, (w) => (B(), I("li", {
1254
- key: `chip-${w[t.trackBy]}`,
1255
- class: ue(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1307
+ class: me(["stash-select__placeholder tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1308
+ }, ae(t.placeholder), 3)),
1309
+ t.single ? (A(!0), V(Be, { key: 1 }, Ae(f.value, (x) => (A(), V("li", {
1310
+ key: `chip-${x[t.trackBy]}`,
1311
+ class: me(["stash-select__selected tw-mr-0 tw-pl-1.5", { "tw-truncate": !t.noTruncate }])
1256
1312
  }, [
1257
- Te(a.$slots, "selected", { option: w }, () => [
1258
- pe(le(w[t.displayBy] || w) + " ", 1),
1259
- z("button", {
1313
+ Le(a.$slots, "selected", { option: x }, () => [
1314
+ we(ae(x[t.displayBy] || x) + " ", 1),
1315
+ j("button", {
1260
1316
  tabindex: "-1",
1261
1317
  class: "stash-select__remove",
1262
- onKeypress: je(he((J) => H(w), ["prevent"]), ["enter"]),
1263
- onMousedown: he((J) => H(w), ["prevent", "stop"])
1318
+ onKeypress: Qe(be((ee) => I(x), ["prevent"]), ["enter"]),
1319
+ onMousedown: be((ee) => I(x), ["prevent", "stop"])
1264
1320
  }, [
1265
- se(ve, {
1321
+ ce(xe, {
1266
1322
  icon: "close",
1267
1323
  name: "close",
1268
1324
  size: "small"
1269
1325
  })
1270
- ], 40, Mn)
1326
+ ], 40, zn)
1271
1327
  ], !0)
1272
- ], 2))), 128)) : (B(!0), I(Oe, { key: 2 }, ke(f.value, (w) => (B(), I("li", {
1273
- key: `chip-${w[t.trackBy]}`,
1328
+ ], 2))), 128)) : (A(!0), V(Be, { key: 2 }, Ae(f.value, (x) => (A(), V("li", {
1329
+ key: `chip-${x[t.trackBy]}`,
1274
1330
  class: "tw-inline-block"
1275
1331
  }, [
1276
- se(Xe, {
1332
+ ce(et, {
1277
1333
  "bg-color": "blue-500",
1278
1334
  "is-removable": "",
1279
1335
  "text-color": "white",
1280
1336
  class: "stash-select__chip",
1281
- onRemove: (J) => H(w)
1337
+ onRemove: (ee) => I(x)
1282
1338
  }, {
1283
- default: fe(() => [
1284
- pe(le(w[t.displayBy] || w), 1)
1339
+ default: ve(() => [
1340
+ we(ae(x[t.displayBy] || x), 1)
1285
1341
  ]),
1286
1342
  _: 2
1287
1343
  }, 1032, ["onRemove"])
1288
1344
  ]))), 128))
1289
1345
  ], 512),
1290
- _e.value ? (B(), I("div", Dn, [
1291
- se(Xe, {
1346
+ J.value ? (A(), V("div", Hn, [
1347
+ ce(et, {
1292
1348
  "bg-color": "blue-500",
1293
1349
  "is-removable": "",
1294
1350
  "text-color": "white",
1295
1351
  class: "stash-select__chip",
1296
- onRemove: G
1352
+ onRemove: U
1297
1353
  }, {
1298
- default: fe(() => [
1299
- pe(le(K.value), 1)
1354
+ default: ve(() => [
1355
+ we(ae(Re.value), 1)
1300
1356
  ]),
1301
1357
  _: 1
1302
1358
  })
1303
- ])) : me("", !0),
1304
- t.icon ? (B(), Re(ve, {
1359
+ ])) : ye("", !0),
1360
+ t.icon ? (A(), Te(xe, {
1305
1361
  key: 1,
1306
1362
  class: "stash-select__icon",
1307
1363
  "data-test": "stash-select|toggle-icon",
1308
1364
  name: t.icon,
1309
- onMousedown: p[0] || (p[0] = he((w) => y.value && te(), ["prevent"]))
1310
- }, null, 8, ["name"])) : me("", !0),
1311
- (B(), Re(Tt, {
1365
+ onMousedown: v[0] || (v[0] = be((x) => g.value && L(), ["prevent"]))
1366
+ }, null, 8, ["name"])) : ye("", !0),
1367
+ (A(), Te(Dt, {
1312
1368
  to: t.teleportTo,
1313
1369
  disabled: !t.enableTeleport
1314
1370
  }, [
1315
- se(Bt, { name: "fade" }, {
1316
- default: fe(() => [
1317
- de(z("div", {
1371
+ ce(Ft, { name: "fade" }, {
1372
+ default: ve(() => [
1373
+ ge(j("div", {
1318
1374
  ref_key: "optionsWrapperRef",
1319
1375
  ref: u,
1320
1376
  class: "stash-select__border-selector tw-w-full tw-shadow",
1321
- style: At(F(C)),
1322
- onClick: p[3] || (p[3] = he(() => {
1377
+ style: Mt(q(C)),
1378
+ onClick: v[3] || (v[3] = be(() => {
1323
1379
  }, ["stop"]))
1324
1380
  }, [
1325
- O.value ? (B(), I("div", Fn, [
1326
- de(z("input", {
1381
+ T.value ? (A(), V("div", Wn, [
1382
+ ge(j("input", {
1327
1383
  ref_key: "searchRef",
1328
- ref: h,
1329
- "onUpdate:modelValue": p[1] || (p[1] = (w) => _.value = w),
1384
+ ref: p,
1385
+ "onUpdate:modelValue": v[1] || (v[1] = (x) => b.value = x),
1330
1386
  type: "text",
1331
1387
  autocomplete: "off",
1332
1388
  class: "stash-select__search",
1333
- "data-test": F(s)["data-test"] ? F(s)["data-test"] + "-search" : "stash-select|search",
1389
+ "data-test": q(s)["data-test"] ? q(s)["data-test"] + "-search" : "stash-select|search",
1334
1390
  placeholder: t.searchPlaceholder,
1335
1391
  spellcheck: !1,
1336
- onInput: p[2] || (p[2] = //@ts-ignore
1337
- (...w) => F(Ke) && F(Ke)(...w))
1338
- }, null, 40, Pn), [
1339
- [Lt, _.value]
1392
+ onInput: v[2] || (v[2] = //@ts-ignore
1393
+ (...x) => q(Ge) && q(Ge)(...x))
1394
+ }, null, 40, jn), [
1395
+ [Pt, b.value]
1340
1396
  ]),
1341
- se(ve, {
1397
+ ce(xe, {
1342
1398
  name: "search",
1343
1399
  class: "tw-text-ice-500"
1344
1400
  })
1345
- ])) : me("", !0),
1346
- z("ul", In, [
1347
- (B(!0), I(Oe, null, ke(D.value, (w, J) => (B(), I("li", {
1348
- key: `option-${w[t.trackBy]}`,
1349
- "data-test": w[t.trackBy],
1350
- class: ue(ht(w, J)),
1351
- onClick: (wt) => $(w),
1352
- onMouseenter: he((wt) => Ce(J), ["self"])
1401
+ ])) : ye("", !0),
1402
+ j("ul", Kn, [
1403
+ (A(!0), V(Be, null, Ae(B.value, (x, ee) => (A(), V("li", {
1404
+ key: `option-${x[t.trackBy]}`,
1405
+ "data-test": x[t.trackBy],
1406
+ class: me(wt(x, ee)),
1407
+ onClick: (Et) => Q(x),
1408
+ onMouseenter: be((Et) => ke(ee), ["self"])
1353
1409
  }, [
1354
- Te(a.$slots, "option", { option: w }, () => [
1355
- pe(le(w[t.displayBy] || w), 1)
1410
+ Le(a.$slots, "option", { option: x }, () => [
1411
+ we(ae(x[t.displayBy] || x), 1)
1356
1412
  ], !0),
1357
- ne(w) && !t.hideCheck ? (B(), Re(ve, {
1413
+ se(x) && !t.hideCheck ? (A(), Te(xe, {
1358
1414
  key: 0,
1359
1415
  class: "tw-ml-auto tw-text-blue-500",
1360
1416
  name: "check"
1361
- })) : me("", !0)
1362
- ], 42, Nn))), 128)),
1363
- de(z("li", Vn, [
1364
- se(ve, {
1417
+ })) : ye("", !0)
1418
+ ], 42, Un))), 128)),
1419
+ ge(j("li", qn, [
1420
+ ce(xe, {
1365
1421
  "data-test": "stash-select|options-loading",
1366
1422
  name: "working",
1367
1423
  class: "tw-animate-spin tw-text-ice-500"
1368
1424
  })
1369
1425
  ], 512), [
1370
- [Ve, t.loading || M.value]
1426
+ [He, t.loading || P.value]
1371
1427
  ]),
1372
- de(z("li", $n, [
1373
- Te(a.$slots, "no-options", {}, () => [
1374
- pe(" No options ")
1428
+ ge(j("li", Xn, [
1429
+ Le(a.$slots, "no-options", {}, () => [
1430
+ we(" No options ")
1375
1431
  ], !0)
1376
1432
  ], 512), [
1377
- [Ve, !t.loading && !M.value && !D.value.length]
1433
+ [He, !t.loading && !P.value && !B.value.length]
1378
1434
  ])
1379
1435
  ])
1380
1436
  ], 4), [
1381
- [Ve, y.value && !t.disabled]
1437
+ [He, g.value && !t.disabled]
1382
1438
  ])
1383
1439
  ]),
1384
1440
  _: 3
1385
1441
  })
1386
1442
  ], 8, ["to", "disabled"]))
1387
- ], 40, Ln)
1388
- ], 42, An)), [
1389
- [F(zt), gt]
1443
+ ], 40, $n)
1444
+ ], 42, Nn)), [
1445
+ [q(Ut), xt]
1390
1446
  ])
1391
1447
  ]),
1392
1448
  _: 2
1393
1449
  }, [
1394
- F(i).hint ? {
1450
+ q(i).hint ? {
1395
1451
  name: "hint",
1396
- fn: fe(() => [
1397
- Te(a.$slots, "hint", {}, void 0, !0)
1452
+ fn: ve(() => [
1453
+ Le(a.$slots, "hint", {}, void 0, !0)
1398
1454
  ]),
1399
1455
  key: "0"
1400
1456
  } : void 0
1401
1457
  ]), 1032, ["id", "add-bottom-space", "class", "error-text", "hint-text", "label", "show-optional-in-label"]));
1402
1458
  }
1403
1459
  });
1404
- const ho = /* @__PURE__ */ Ut(Hn, [["__scopeId", "data-v-d85a8746"]]);
1460
+ const Eo = /* @__PURE__ */ Yt(Yn, [["__scopeId", "data-v-d85a8746"]]);
1405
1461
  export {
1406
- ho as default
1462
+ Eo as default
1407
1463
  };
1408
1464
  //# sourceMappingURL=Select.js.map