@leaflink/stash 53.4.0 → 53.4.2

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 (178) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/Accordion.js.map +1 -1
  3. package/dist/ActionsDropdown.js +2 -2
  4. package/dist/ActionsDropdown.js.map +1 -1
  5. package/dist/AddressSelect.js.map +1 -1
  6. package/dist/AddressSelect.vue.d.ts +1 -1
  7. package/dist/Alert.js.map +1 -1
  8. package/dist/AppNavigationItem.js +1 -1
  9. package/dist/AppNavigationItem.js.map +1 -1
  10. package/dist/AppSidebar.js.map +1 -1
  11. package/dist/AppTopbar.js +1 -1
  12. package/dist/AppTopbar.js.map +1 -1
  13. package/dist/Avatar.js.map +1 -1
  14. package/dist/Badge.js.map +1 -1
  15. package/dist/Box.vue_vue_type_script_setup_true_lang-dFFZN40_.js.map +1 -1
  16. package/dist/Button.js.map +1 -1
  17. package/dist/ButtonGroup.js.map +1 -1
  18. package/dist/Card.js.map +1 -1
  19. package/dist/CardHeader.js.map +1 -1
  20. package/dist/CardMedia.js.map +1 -1
  21. package/dist/Carousel.js +169 -169
  22. package/dist/Carousel.js.map +1 -1
  23. package/dist/Checkbox.js +31 -31
  24. package/dist/Checkbox.js.map +1 -1
  25. package/dist/ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_qOXfR.js.map +1 -1
  26. package/dist/Chip.js +21 -21
  27. package/dist/Chip.js.map +1 -1
  28. package/dist/Chip.vue.d.ts +1 -1
  29. package/dist/ConfirmationCodeInput.js +1 -1
  30. package/dist/ConfirmationCodeInput.js.map +1 -1
  31. package/dist/ContextSwitcher.js +28 -28
  32. package/dist/ContextSwitcher.js.map +1 -1
  33. package/dist/Copy.js +1 -1
  34. package/dist/Copy.js.map +1 -1
  35. package/dist/CurrencyInput.js +1 -1
  36. package/dist/CurrencyInput.js.map +1 -1
  37. package/dist/DataView.js +51 -51
  38. package/dist/DataView.js.map +1 -1
  39. package/dist/DataViewFilters.js.map +1 -1
  40. package/dist/DataViewSortButton.js +2 -2
  41. package/dist/DataViewSortButton.js.map +1 -1
  42. package/dist/DataViewToolbar.js +5 -5
  43. package/dist/DataViewToolbar.js.map +1 -1
  44. package/dist/DatePicker.js +237 -237
  45. package/dist/DatePicker.js.map +1 -1
  46. package/dist/DatePicker.vue.d.ts +1 -1
  47. package/dist/DescriptionList.js.map +1 -1
  48. package/dist/DescriptionListDetail.js.map +1 -1
  49. package/dist/DescriptionListGroup.js.map +1 -1
  50. package/dist/DescriptionListTerm.js.map +1 -1
  51. package/dist/Dialog.js.map +1 -1
  52. package/dist/Divider.js.map +1 -1
  53. package/dist/Dropdown.js +45 -45
  54. package/dist/Dropdown.js.map +1 -1
  55. package/dist/EmptyState.js.map +1 -1
  56. package/dist/Expand.js +1 -1
  57. package/dist/Expand.vue_vue_type_script_setup_true_lang-BmNJA0Xy.js +74 -0
  58. package/dist/{Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js.map → Expand.vue_vue_type_script_setup_true_lang-BmNJA0Xy.js.map} +1 -1
  59. package/dist/Field.js +1 -1
  60. package/dist/{Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js → Field.vue_vue_type_script_setup_true_lang-D2I8xDEW.js} +29 -29
  61. package/dist/{Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js.map → Field.vue_vue_type_script_setup_true_lang-D2I8xDEW.js.map} +1 -1
  62. package/dist/FileUpload.js +54 -54
  63. package/dist/FileUpload.js.map +1 -1
  64. package/dist/FilterChip.js.map +1 -1
  65. package/dist/FilterChip.vue.d.ts +1 -1
  66. package/dist/FilterDrawerItem.js.map +1 -1
  67. package/dist/FilterDropdown.js.map +1 -1
  68. package/dist/FilterSelect.js +1 -1
  69. package/dist/FilterSelect.js.map +1 -1
  70. package/dist/Filters.js +4 -6
  71. package/dist/Filters.js.map +1 -1
  72. package/dist/Filters.vue.d.ts +57 -57
  73. package/dist/HttpError.js +6 -6
  74. package/dist/HttpError.js.map +1 -1
  75. package/dist/Icon.js.map +1 -1
  76. package/dist/IconLabel.js +13 -13
  77. package/dist/IconLabel.js.map +1 -1
  78. package/dist/Illustration.vue_vue_type_script_setup_true_lang-C1bPkWZZ.js.map +1 -1
  79. package/dist/Image.vue_vue_type_script_setup_true_lang-CAj0FH9h.js.map +1 -1
  80. package/dist/InlineEdit.js.map +1 -1
  81. package/dist/InlineEdit.vue.d.ts +1 -1
  82. package/dist/Input.js +35 -35
  83. package/dist/Input.js.map +1 -1
  84. package/dist/InputOptions.js +35 -35
  85. package/dist/InputOptions.js.map +1 -1
  86. package/dist/InputOptions.vue.d.ts +1 -1
  87. package/dist/IntegrationIcon.js.map +1 -1
  88. package/dist/Label.vue_vue_type_script_setup_true_lang-xwY3X-iV.js.map +1 -1
  89. package/dist/LicenseChip.js +9 -9
  90. package/dist/LicenseChip.js.map +1 -1
  91. package/dist/ListItem.js.map +1 -1
  92. package/dist/ListItemCell.js.map +1 -1
  93. package/dist/ListView.js +1 -1
  94. package/dist/ListView.js.map +1 -1
  95. package/dist/ListView.vue.d.ts +69 -69
  96. package/dist/Loading.js +2 -2
  97. package/dist/Loading.js.map +1 -1
  98. package/dist/Logo.js +1 -1
  99. package/dist/{Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js → Logo.vue_vue_type_script_setup_true_lang-qiNaaWWV.js} +17 -17
  100. package/dist/Logo.vue_vue_type_script_setup_true_lang-qiNaaWWV.js.map +1 -0
  101. package/dist/MenuItem.js.map +1 -1
  102. package/dist/Metric.js +12 -12
  103. package/dist/Metric.js.map +1 -1
  104. package/dist/Modal.js.map +1 -1
  105. package/dist/Modals.js.map +1 -1
  106. package/dist/Module.js.map +1 -1
  107. package/dist/ModuleContent.js.map +1 -1
  108. package/dist/ModuleFooter.js.map +1 -1
  109. package/dist/ModuleHeader.js.map +1 -1
  110. package/dist/MoreActions.js +2 -2
  111. package/dist/MoreActions.js.map +1 -1
  112. package/dist/ObfuscateText.js.map +1 -1
  113. package/dist/PageContent.js.map +1 -1
  114. package/dist/PageHeader.js.map +1 -1
  115. package/dist/PageNavigation.js +1 -1
  116. package/dist/PageNavigation.js.map +1 -1
  117. package/dist/Paginate.js.map +1 -1
  118. package/dist/PlaidLink.js.map +1 -1
  119. package/dist/QuickAction.js.map +1 -1
  120. package/dist/Radio.js.map +1 -1
  121. package/dist/RadioGroup.js +1 -1
  122. package/dist/RadioGroup.js.map +1 -1
  123. package/dist/RadioNew.js.map +1 -1
  124. package/dist/RangeInput.js.map +1 -1
  125. package/dist/SearchBar.js.map +1 -1
  126. package/dist/SearchBar.vue.d.ts +1 -1
  127. package/dist/SectionHeader.js.map +1 -1
  128. package/dist/Select.js +2 -2
  129. package/dist/Select.js.map +1 -1
  130. package/dist/Select.vue.d.ts +1 -1
  131. package/dist/SelectStatus.js.map +1 -1
  132. package/dist/SelectStatus.vue.d.ts +1 -1
  133. package/dist/Skeleton.js.map +1 -1
  134. package/dist/Step.js +8 -8
  135. package/dist/Step.js.map +1 -1
  136. package/dist/Stepper.js.map +1 -1
  137. package/dist/Switch.js +15 -15
  138. package/dist/Switch.js.map +1 -1
  139. package/dist/Tab.js +1 -1
  140. package/dist/Tab.js.map +1 -1
  141. package/dist/TabPanel.js.map +1 -1
  142. package/dist/Table.js.map +1 -1
  143. package/dist/TableCell.js.map +1 -1
  144. package/dist/TableHeaderCell.js.map +1 -1
  145. package/dist/TableHeaderRow.js.map +1 -1
  146. package/dist/TableRow.js +18 -18
  147. package/dist/TableRow.js.map +1 -1
  148. package/dist/Tabs.js +2 -2
  149. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-BFURXY_-.js → Tabs.vue_vue_type_script_setup_true_lang-B3FBaVP5.js} +48 -48
  150. package/dist/{Tabs.vue_vue_type_script_setup_true_lang-BFURXY_-.js.map → Tabs.vue_vue_type_script_setup_true_lang-B3FBaVP5.js.map} +1 -1
  151. package/dist/TextEditor.js +1 -1
  152. package/dist/TextEditor.js.map +1 -1
  153. package/dist/TextEditor.vue.d.ts +1 -1
  154. package/dist/Textarea.js +1 -1
  155. package/dist/Textarea.js.map +1 -1
  156. package/dist/Thumbnail.js +33 -33
  157. package/dist/Thumbnail.js.map +1 -1
  158. package/dist/Thumbnail.vue.d.ts +3 -3
  159. package/dist/ThumbnailEmpty.js.map +1 -1
  160. package/dist/ThumbnailGroup.js.map +1 -1
  161. package/dist/Timeline.js.map +1 -1
  162. package/dist/TimelineItem.js.map +1 -1
  163. package/dist/Toast.js +27 -27
  164. package/dist/Toast.js.map +1 -1
  165. package/dist/Toasts.js.map +1 -1
  166. package/dist/Tooltip.js +1 -1
  167. package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-CF6sw2VC.js → Tooltip.vue_vue_type_script_setup_true_lang-WMPMxzO-.js} +13 -16
  168. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-WMPMxzO-.js.map +1 -0
  169. package/dist/components.css +1 -1
  170. package/dist/directives/tooltip.js.map +1 -1
  171. package/dist/floating-ui.vue-CuGrC-z8.js.map +1 -1
  172. package/dist/index-B1Gkwuxd.js.map +1 -1
  173. package/dist/index-D6bxWkZ1.js.map +1 -1
  174. package/dist/index.js.map +1 -1
  175. package/package.json +4 -3
  176. package/dist/Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js +0 -74
  177. package/dist/Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js.map +0 -1
  178. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-CF6sw2VC.js.map +0 -1
package/dist/Carousel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, inject as S, reactive as j, ref as d, h as w, provide as M, onMounted as Ie, nextTick as Le, onUnmounted as Ee, computed as D, watch as ae, cloneVNode as _e, Fragment as B, useAttrs as je, useCssModule as Be, createElementBlock as E, openBlock as k, createVNode as De, createCommentVNode as ke, mergeProps as Re, unref as N, withCtx as G, renderList as le, createBlock as W, renderSlot as Pe, createElementVNode as Ve, normalizeClass as ie } from "vue";
1
+ import { defineComponent as F, inject as S, reactive as j, ref as c, h as w, provide as M, onMounted as Ie, nextTick as Le, onUnmounted as Ee, computed as D, watch as oe, cloneVNode as ke, Fragment as B, useAttrs as je, useCssModule as Be, createElementBlock as E, openBlock as A, createVNode as De, createCommentVNode as Ae, mergeProps as Re, unref as N, withCtx as G, renderList as le, createBlock as W, renderSlot as Pe, createElementVNode as Ve, normalizeClass as ie } from "vue";
2
2
  import { t as V } from "./locale.js";
3
3
  import Ue from "./Thumbnail.js";
4
4
  import $e from "./ThumbnailGroup.js";
@@ -8,7 +8,7 @@ import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  * (c) 2024
9
9
  * @license MIT
10
10
  */
11
- const p = {
11
+ const f = {
12
12
  itemsToShow: 1,
13
13
  itemsToScroll: 1,
14
14
  modelValue: 0,
@@ -33,52 +33,52 @@ const p = {
33
33
  iconArrowRight: "Arrow pointing to the right",
34
34
  iconArrowLeft: "Arrow pointing to the left"
35
35
  }
36
- }, Ae = {
36
+ }, _e = {
37
37
  // count of items to showed per view
38
38
  itemsToShow: {
39
- default: p.itemsToShow,
39
+ default: f.itemsToShow,
40
40
  type: Number
41
41
  },
42
42
  // count of items to be scrolled
43
43
  itemsToScroll: {
44
- default: p.itemsToScroll,
44
+ default: f.itemsToScroll,
45
45
  type: Number
46
46
  },
47
47
  // control infinite scrolling mode
48
48
  wrapAround: {
49
- default: p.wrapAround,
49
+ default: f.wrapAround,
50
50
  type: Boolean
51
51
  },
52
52
  // control max drag
53
53
  throttle: {
54
- default: p.throttle,
54
+ default: f.throttle,
55
55
  type: Number
56
56
  },
57
57
  // control snap position alignment
58
58
  snapAlign: {
59
- default: p.snapAlign,
59
+ default: f.snapAlign,
60
60
  validator(e) {
61
61
  return ["start", "end", "center", "center-even", "center-odd"].includes(e);
62
62
  }
63
63
  },
64
64
  // sliding transition time in ms
65
65
  transition: {
66
- default: p.transition,
66
+ default: f.transition,
67
67
  type: Number
68
68
  },
69
69
  // an object to store breakpoints
70
70
  breakpoints: {
71
- default: p.breakpoints,
71
+ default: f.breakpoints,
72
72
  type: Object
73
73
  },
74
74
  // time to auto advance slides in ms
75
75
  autoplay: {
76
- default: p.autoplay,
76
+ default: f.autoplay,
77
77
  type: Number
78
78
  },
79
79
  // pause autoplay when mouse hover over the carousel
80
80
  pauseAutoplayOnHover: {
81
- default: p.pauseAutoplayOnHover,
81
+ default: f.pauseAutoplayOnHover,
82
82
  type: Boolean
83
83
  },
84
84
  // slide number number of initial slide
@@ -88,24 +88,24 @@ const p = {
88
88
  },
89
89
  // toggle mouse dragging.
90
90
  mouseDrag: {
91
- default: p.mouseDrag,
91
+ default: f.mouseDrag,
92
92
  type: Boolean
93
93
  },
94
94
  // toggle mouse dragging.
95
95
  touchDrag: {
96
- default: p.touchDrag,
96
+ default: f.touchDrag,
97
97
  type: Boolean
98
98
  },
99
99
  // control snap position alignment
100
100
  dir: {
101
- default: p.dir,
101
+ default: f.dir,
102
102
  validator(e) {
103
103
  return ["rtl", "ltr"].includes(e);
104
104
  }
105
105
  },
106
106
  // aria-labels and additional text labels
107
107
  i18n: {
108
- default: p.i18n,
108
+ default: f.i18n,
109
109
  type: Object
110
110
  },
111
111
  // an object to pass all settings
@@ -117,8 +117,8 @@ const p = {
117
117
  }
118
118
  };
119
119
  function Xe({ config: e, slidesCount: n }) {
120
- const { snapAlign: t, wrapAround: a, itemsToShow: r = 1 } = e;
121
- if (a)
120
+ const { snapAlign: t, wrapAround: o, itemsToShow: r = 1 } = e;
121
+ if (o)
122
122
  return Math.max(n - 1, 0);
123
123
  let i;
124
124
  switch (t) {
@@ -142,11 +142,11 @@ function Xe({ config: e, slidesCount: n }) {
142
142
  return Math.max(i, 0);
143
143
  }
144
144
  function He({ config: e, slidesCount: n }) {
145
- const { wrapAround: t, snapAlign: a, itemsToShow: r = 1 } = e;
145
+ const { wrapAround: t, snapAlign: o, itemsToShow: r = 1 } = e;
146
146
  let i = 0;
147
147
  if (t || r > n)
148
148
  return i;
149
- switch (a) {
149
+ switch (o) {
150
150
  case "start":
151
151
  i = 0;
152
152
  break;
@@ -170,30 +170,30 @@ function re({ val: e, max: n, min: t }) {
170
170
  return n < t ? e : Math.min(Math.max(e, t), n);
171
171
  }
172
172
  function Ye({ config: e, currentSlide: n, slidesCount: t }) {
173
- const { snapAlign: a, wrapAround: r, itemsToShow: i = 1 } = e;
174
- let v = n;
175
- switch (a) {
173
+ const { snapAlign: o, wrapAround: r, itemsToShow: i = 1 } = e;
174
+ let d = n;
175
+ switch (o) {
176
176
  case "center":
177
177
  case "center-odd":
178
- v -= (i - 1) / 2;
178
+ d -= (i - 1) / 2;
179
179
  break;
180
180
  case "center-even":
181
- v -= (i - 2) / 2;
181
+ d -= (i - 2) / 2;
182
182
  break;
183
183
  case "end":
184
- v -= i - 1;
184
+ d -= i - 1;
185
185
  break;
186
186
  }
187
- return r ? v : re({
188
- val: v,
187
+ return r ? d : re({
188
+ val: d,
189
189
  max: t - i,
190
190
  min: 0
191
191
  });
192
192
  }
193
193
  function Ce(e) {
194
194
  return e ? e.reduce((n, t) => {
195
- var a;
196
- return t.type === B ? [...n, ...Ce(t.children)] : ((a = t.type) === null || a === void 0 ? void 0 : a.name) === "CarouselSlide" ? [...n, t] : n;
195
+ var o;
196
+ return t.type === B ? [...n, ...Ce(t.children)] : ((o = t.type) === null || o === void 0 ? void 0 : o.name) === "CarouselSlide" ? [...n, t] : n;
197
197
  }, []) : [];
198
198
  }
199
199
  function se({ val: e, max: n, min: t = 0 }) {
@@ -201,26 +201,26 @@ function se({ val: e, max: n, min: t = 0 }) {
201
201
  }
202
202
  function Ge(e, n) {
203
203
  let t;
204
- return n ? function(...a) {
204
+ return n ? function(...o) {
205
205
  const r = this;
206
- t || (e.apply(r, a), t = !0, setTimeout(() => t = !1, n));
206
+ t || (e.apply(r, o), t = !0, setTimeout(() => t = !1, n));
207
207
  } : e;
208
208
  }
209
209
  function We(e, n) {
210
210
  let t;
211
- return function(...a) {
211
+ return function(...o) {
212
212
  t && clearTimeout(t), t = setTimeout(() => {
213
- e(...a), t = null;
213
+ e(...o), t = null;
214
214
  }, n);
215
215
  };
216
216
  }
217
217
  function Fe(e = "", n = {}) {
218
- return Object.entries(n).reduce((t, [a, r]) => t.replace(`{${a}}`, String(r)), e);
218
+ return Object.entries(n).reduce((t, [o, r]) => t.replace(`{${o}}`, String(r)), e);
219
219
  }
220
220
  var qe = F({
221
221
  name: "ARIA",
222
222
  setup() {
223
- const e = S("config", j(Object.assign({}, p))), n = S("currentSlide", d(0)), t = S("slidesCount", d(0));
223
+ const e = S("config", j(Object.assign({}, f))), n = S("currentSlide", c(0)), t = S("slidesCount", c(0));
224
224
  return () => w("div", {
225
225
  class: ["carousel__liveregion", "carousel__sr-only"],
226
226
  "aria-live": "polite",
@@ -232,29 +232,29 @@ var qe = F({
232
232
  }
233
233
  }), Je = F({
234
234
  name: "Carousel",
235
- props: Ae,
236
- setup(e, { slots: n, emit: t, expose: a }) {
235
+ props: _e,
236
+ setup(e, { slots: n, emit: t, expose: o }) {
237
237
  var r;
238
- const i = d(null), v = d([]), m = d(0), s = d(0), l = j(Object.assign({}, p));
239
- let g = Object.assign({}, p), y;
240
- const c = d((r = e.modelValue) !== null && r !== void 0 ? r : 0), A = d(0), u = d(0), x = d(0), b = d(0);
241
- let _, q;
242
- M("config", l), M("slidesCount", s), M("currentSlide", c), M("maxSlide", x), M("minSlide", b), M("slideWidth", m);
238
+ const i = c(null), d = c([]), p = c(0), s = c(0), l = j(Object.assign({}, f));
239
+ let g = Object.assign({}, f), y;
240
+ const u = c((r = e.modelValue) !== null && r !== void 0 ? r : 0), _ = c(0), m = c(0), x = c(0), b = c(0);
241
+ let k, q;
242
+ M("config", l), M("slidesCount", s), M("currentSlide", u), M("maxSlide", x), M("minSlide", b), M("slideWidth", p);
243
243
  function J() {
244
244
  y = Object.assign({}, e.breakpoints), g = Object.assign(Object.assign(Object.assign({}, g), e), { i18n: Object.assign(Object.assign({}, g.i18n), e.i18n), breakpoints: void 0 }), de(g);
245
245
  }
246
246
  function U() {
247
247
  if (!y || !Object.keys(y).length)
248
248
  return;
249
- const o = Object.keys(y).map((f) => Number(f)).sort((f, C) => +C - +f);
249
+ const a = Object.keys(y).map((v) => Number(v)).sort((v, C) => +C - +v);
250
250
  let h = Object.assign({}, g);
251
- o.some((f) => {
252
- const C = window.matchMedia(`(min-width: ${f}px)`).matches;
253
- return C && (h = Object.assign(Object.assign({}, h), y[f])), C;
251
+ a.some((v) => {
252
+ const C = window.matchMedia(`(min-width: ${v}px)`).matches;
253
+ return C && (h = Object.assign(Object.assign({}, h), y[v])), C;
254
254
  }), de(h);
255
255
  }
256
- function de(o) {
257
- Object.entries(o).forEach(([h, f]) => l[h] = f);
256
+ function de(a) {
257
+ Object.entries(a).forEach(([h, v]) => l[h] = v);
258
258
  }
259
259
  const ve = We(() => {
260
260
  U(), $(), R();
@@ -262,12 +262,12 @@ var qe = F({
262
262
  function R() {
263
263
  if (!i.value)
264
264
  return;
265
- const o = i.value.getBoundingClientRect();
266
- m.value = o.width / l.itemsToShow;
265
+ const a = i.value.getBoundingClientRect();
266
+ p.value = a.width / l.itemsToShow;
267
267
  }
268
268
  function $() {
269
- s.value <= 0 || (u.value = Math.ceil((s.value - 1) / 2), x.value = Xe({ config: l, slidesCount: s.value }), b.value = He({ config: l, slidesCount: s.value }), l.wrapAround || (c.value = re({
270
- val: c.value,
269
+ s.value <= 0 || (m.value = Math.ceil((s.value - 1) / 2), x.value = Xe({ config: l, slidesCount: s.value }), b.value = He({ config: l, slidesCount: s.value }), l.wrapAround || (u.value = re({
270
+ val: u.value,
271
271
  max: x.value,
272
272
  min: b.value
273
273
  })));
@@ -275,117 +275,117 @@ var qe = F({
275
275
  Ie(() => {
276
276
  Le(() => R()), setTimeout(() => R(), 1e3), U(), ge(), window.addEventListener("resize", ve, { passive: !0 }), t("init");
277
277
  }), Ee(() => {
278
- q && clearTimeout(q), _ && clearInterval(_), window.removeEventListener("resize", ve, {
278
+ q && clearTimeout(q), k && clearInterval(k), window.removeEventListener("resize", ve, {
279
279
  passive: !0
280
280
  });
281
281
  });
282
282
  let T = !1;
283
- const z = { x: 0, y: 0 }, X = { x: 0, y: 0 }, O = j({ x: 0, y: 0 }), H = d(!1), K = d(!1), Me = () => {
283
+ const z = { x: 0, y: 0 }, X = { x: 0, y: 0 }, O = j({ x: 0, y: 0 }), H = c(!1), K = c(!1), Me = () => {
284
284
  H.value = !0;
285
285
  }, Ne = () => {
286
286
  H.value = !1;
287
287
  };
288
- function fe(o) {
289
- ["INPUT", "TEXTAREA", "SELECT"].includes(o.target.tagName) || (T = o.type === "touchstart", T || o.preventDefault(), !(!T && o.button !== 0 || I.value) && (z.x = T ? o.touches[0].clientX : o.clientX, z.y = T ? o.touches[0].clientY : o.clientY, document.addEventListener(T ? "touchmove" : "mousemove", pe, !0), document.addEventListener(T ? "touchend" : "mouseup", me, !0)));
288
+ function fe(a) {
289
+ ["INPUT", "TEXTAREA", "SELECT"].includes(a.target.tagName) || (T = a.type === "touchstart", T || a.preventDefault(), !(!T && a.button !== 0 || I.value) && (z.x = T ? a.touches[0].clientX : a.clientX, z.y = T ? a.touches[0].clientY : a.clientY, document.addEventListener(T ? "touchmove" : "mousemove", me, !0), document.addEventListener(T ? "touchend" : "mouseup", pe, !0)));
290
290
  }
291
- const pe = Ge((o) => {
292
- K.value = !0, X.x = T ? o.touches[0].clientX : o.clientX, X.y = T ? o.touches[0].clientY : o.clientY;
293
- const h = X.x - z.x, f = X.y - z.y;
294
- O.y = f, O.x = h;
291
+ const me = Ge((a) => {
292
+ K.value = !0, X.x = T ? a.touches[0].clientX : a.clientX, X.y = T ? a.touches[0].clientY : a.clientY;
293
+ const h = X.x - z.x, v = X.y - z.y;
294
+ O.y = v, O.x = h;
295
295
  }, l.throttle);
296
- function me() {
297
- const o = l.dir === "rtl" ? -1 : 1, h = Math.sign(O.x) * 0.4, f = Math.round(O.x / m.value + h) * o;
298
- if (f && !T) {
296
+ function pe() {
297
+ const a = l.dir === "rtl" ? -1 : 1, h = Math.sign(O.x) * 0.4, v = Math.round(O.x / p.value + h) * a;
298
+ if (v && !T) {
299
299
  const C = (Te) => {
300
300
  window.removeEventListener("click", C, !0);
301
301
  };
302
302
  window.addEventListener("click", C, !0);
303
303
  }
304
- L(c.value - f), O.x = 0, O.y = 0, K.value = !1, document.removeEventListener(T ? "touchmove" : "mousemove", pe, !0), document.removeEventListener(T ? "touchend" : "mouseup", me, !0);
304
+ L(u.value - v), O.x = 0, O.y = 0, K.value = !1, document.removeEventListener(T ? "touchmove" : "mousemove", me, !0), document.removeEventListener(T ? "touchend" : "mouseup", pe, !0);
305
305
  }
306
306
  function ge() {
307
- !l.autoplay || l.autoplay <= 0 || (_ = setInterval(() => {
307
+ !l.autoplay || l.autoplay <= 0 || (k = setInterval(() => {
308
308
  l.pauseAutoplayOnHover && H.value || Y();
309
309
  }, l.autoplay));
310
310
  }
311
311
  function he() {
312
- _ && (clearInterval(_), _ = null), ge();
312
+ k && (clearInterval(k), k = null), ge();
313
313
  }
314
- const I = d(!1);
315
- function L(o) {
316
- const h = l.wrapAround ? o : re({
317
- val: o,
314
+ const I = c(!1);
315
+ function L(a) {
316
+ const h = l.wrapAround ? a : re({
317
+ val: a,
318
318
  max: x.value,
319
319
  min: b.value
320
320
  });
321
- c.value === h || I.value || (t("slide-start", {
322
- slidingToIndex: o,
323
- currentSlideIndex: c.value,
324
- prevSlideIndex: A.value,
321
+ u.value === h || I.value || (t("slide-start", {
322
+ slidingToIndex: a,
323
+ currentSlideIndex: u.value,
324
+ prevSlideIndex: _.value,
325
325
  slidesCount: s.value
326
- }), I.value = !0, A.value = c.value, c.value = h, q = setTimeout(() => {
326
+ }), I.value = !0, _.value = u.value, u.value = h, q = setTimeout(() => {
327
327
  if (l.wrapAround) {
328
- const f = se({
328
+ const v = se({
329
329
  val: h,
330
330
  max: x.value,
331
331
  min: 0
332
332
  });
333
- f !== c.value && (c.value = f, t("loop", {
334
- currentSlideIndex: c.value,
335
- slidingToIndex: o
333
+ v !== u.value && (u.value = v, t("loop", {
334
+ currentSlideIndex: u.value,
335
+ slidingToIndex: a
336
336
  }));
337
337
  }
338
- t("update:modelValue", c.value), t("slide-end", {
339
- currentSlideIndex: c.value,
340
- prevSlideIndex: A.value,
338
+ t("update:modelValue", u.value), t("slide-end", {
339
+ currentSlideIndex: u.value,
340
+ prevSlideIndex: _.value,
341
341
  slidesCount: s.value
342
342
  }), I.value = !1, he();
343
343
  }, l.transition));
344
344
  }
345
345
  function Y() {
346
- L(c.value + l.itemsToScroll);
346
+ L(u.value + l.itemsToScroll);
347
347
  }
348
348
  function Q() {
349
- L(c.value - l.itemsToScroll);
349
+ L(u.value - l.itemsToScroll);
350
350
  }
351
351
  const be = { slideTo: L, next: Y, prev: Q };
352
352
  M("nav", be), M("isSliding", I);
353
353
  const Se = D(() => Ye({
354
354
  config: l,
355
- currentSlide: c.value,
355
+ currentSlide: u.value,
356
356
  slidesCount: s.value
357
357
  }));
358
358
  M("slidesToScroll", Se);
359
359
  const Oe = D(() => {
360
- const o = l.dir === "rtl" ? -1 : 1, h = Se.value * m.value * o;
360
+ const a = l.dir === "rtl" ? -1 : 1, h = Se.value * p.value * a;
361
361
  return {
362
362
  transform: `translateX(${O.x - h}px)`,
363
363
  transition: `${I.value ? l.transition : 0}ms`,
364
- margin: l.wrapAround ? `0 -${s.value * m.value}px` : "",
364
+ margin: l.wrapAround ? `0 -${s.value * p.value}px` : "",
365
365
  width: "100%"
366
366
  };
367
367
  });
368
368
  function we() {
369
369
  J(), U(), $(), R(), he();
370
370
  }
371
- Object.keys(Ae).forEach((o) => {
372
- ["modelValue"].includes(o) || ae(() => e[o], we);
373
- }), ae(() => e.modelValue, (o) => {
374
- o !== c.value && L(Number(o));
375
- }), ae(s, $), t("before-init"), J();
371
+ Object.keys(_e).forEach((a) => {
372
+ ["modelValue"].includes(a) || oe(() => e[a], we);
373
+ }), oe(() => e.modelValue, (a) => {
374
+ a !== u.value && L(Number(a));
375
+ }), oe(s, $), t("before-init"), J();
376
376
  const ye = {
377
377
  config: l,
378
378
  slidesCount: s,
379
- slideWidth: m,
379
+ slideWidth: p,
380
380
  next: Y,
381
381
  prev: Q,
382
382
  slideTo: L,
383
- currentSlide: c,
383
+ currentSlide: u,
384
384
  maxSlide: x,
385
385
  minSlide: b,
386
- middleSlide: u
386
+ middleSlide: m
387
387
  };
388
- a({
388
+ o({
389
389
  updateBreakpointsConfigs: U,
390
390
  updateSlidesData: $,
391
391
  updateSlideWidth: R,
@@ -399,28 +399,28 @@ var qe = F({
399
399
  });
400
400
  const Z = n.default || n.slides, ee = n.addons, xe = j(ye);
401
401
  return () => {
402
- const o = Ce(Z == null ? void 0 : Z(xe)), h = (ee == null ? void 0 : ee(xe)) || [];
403
- o.forEach((te, ne) => te.props.index = ne);
404
- let f = o;
402
+ const a = Ce(Z == null ? void 0 : Z(xe)), h = (ee == null ? void 0 : ee(xe)) || [];
403
+ a.forEach((te, ne) => te.props.index = ne);
404
+ let v = a;
405
405
  if (l.wrapAround) {
406
- const te = o.map((oe, P) => _e(oe, {
407
- index: -o.length + P,
406
+ const te = a.map((ae, P) => ke(ae, {
407
+ index: -a.length + P,
408
408
  isClone: !0,
409
409
  key: `clone-before-${P}`
410
- })), ne = o.map((oe, P) => _e(oe, {
411
- index: o.length + P,
410
+ })), ne = a.map((ae, P) => ke(ae, {
411
+ index: a.length + P,
412
412
  isClone: !0,
413
413
  key: `clone-after-${P}`
414
414
  }));
415
- f = [...te, ...o, ...ne];
415
+ v = [...te, ...a, ...ne];
416
416
  }
417
- v.value = o, s.value = Math.max(o.length, 1);
417
+ d.value = a, s.value = Math.max(a.length, 1);
418
418
  const C = w("ol", {
419
419
  class: "carousel__track",
420
420
  style: Oe.value,
421
421
  onMousedownCapture: l.mouseDrag ? fe : null,
422
422
  onTouchstartPassiveCapture: l.touchDrag ? fe : null
423
- }, f), Te = w("div", { class: "carousel__viewport" }, C);
423
+ }, v), Te = w("div", { class: "carousel__viewport" }, C);
424
424
  return w("section", {
425
425
  ref: i,
426
426
  class: {
@@ -452,39 +452,39 @@ function Qe(e) {
452
452
  return e in ue;
453
453
  }
454
454
  const ce = (e) => {
455
- const n = S("config", j(Object.assign({}, p))), t = String(e.name), a = `icon${t.charAt(0).toUpperCase() + t.slice(1)}`;
455
+ const n = S("config", j(Object.assign({}, f))), t = String(e.name), o = `icon${t.charAt(0).toUpperCase() + t.slice(1)}`;
456
456
  if (!t || typeof t != "string" || !Qe(t))
457
457
  return;
458
- const r = Ke[t], i = w("path", { d: r }), v = n.i18n[a] || e.title || t, m = w("title", v);
458
+ const r = Ke[t], i = w("path", { d: r }), d = n.i18n[o] || e.title || t, p = w("title", d);
459
459
  return w("svg", {
460
460
  class: "carousel__icon",
461
461
  viewBox: "0 0 24 24",
462
462
  role: "img",
463
- "aria-label": v
464
- }, [m, i]);
463
+ "aria-label": d
464
+ }, [p, i]);
465
465
  };
466
466
  ce.props = { name: String, title: String };
467
467
  const Ze = (e, { slots: n, attrs: t }) => {
468
- const { next: a, prev: r } = n || {}, i = S("config", j(Object.assign({}, p))), v = S("maxSlide", d(1)), m = S("minSlide", d(1)), s = S("currentSlide", d(1)), l = S("nav", {}), { dir: g, wrapAround: y, i18n: c } = i, A = g === "rtl", u = w("button", {
468
+ const { next: o, prev: r } = n || {}, i = S("config", j(Object.assign({}, f))), d = S("maxSlide", c(1)), p = S("minSlide", c(1)), s = S("currentSlide", c(1)), l = S("nav", {}), { dir: g, wrapAround: y, i18n: u } = i, _ = g === "rtl", m = w("button", {
469
469
  type: "button",
470
470
  class: [
471
471
  "carousel__prev",
472
- !y && s.value <= m.value && "carousel__prev--disabled",
472
+ !y && s.value <= p.value && "carousel__prev--disabled",
473
473
  t == null ? void 0 : t.class
474
474
  ],
475
- "aria-label": c.ariaPreviousSlide,
475
+ "aria-label": u.ariaPreviousSlide,
476
476
  onClick: l.prev
477
- }, (r == null ? void 0 : r()) || w(ce, { name: A ? "arrowRight" : "arrowLeft" })), x = w("button", {
477
+ }, (r == null ? void 0 : r()) || w(ce, { name: _ ? "arrowRight" : "arrowLeft" })), x = w("button", {
478
478
  type: "button",
479
479
  class: [
480
480
  "carousel__next",
481
- !y && s.value >= v.value && "carousel__next--disabled",
481
+ !y && s.value >= d.value && "carousel__next--disabled",
482
482
  t == null ? void 0 : t.class
483
483
  ],
484
- "aria-label": c.ariaNextSlide,
484
+ "aria-label": u.ariaNextSlide,
485
485
  onClick: l.next
486
- }, (a == null ? void 0 : a()) || w(ce, { name: A ? "arrowLeft" : "arrowRight" }));
487
- return [u, x];
486
+ }, (o == null ? void 0 : o()) || w(ce, { name: _ ? "arrowLeft" : "arrowRight" }));
487
+ return [m, x];
488
488
  };
489
489
  var et = F({
490
490
  name: "CarouselSlide",
@@ -499,7 +499,7 @@ var et = F({
499
499
  }
500
500
  },
501
501
  setup(e, { slots: n }) {
502
- const t = S("config", j(Object.assign({}, p))), a = S("currentSlide", d(0)), r = S("slidesToScroll", d(0)), i = S("isSliding", d(!1)), v = D(() => e.index === a.value), m = D(() => e.index === a.value - 1), s = D(() => e.index === a.value + 1), l = D(() => {
502
+ const t = S("config", j(Object.assign({}, f))), o = S("currentSlide", c(0)), r = S("slidesToScroll", c(0)), i = S("isSliding", c(!1)), d = D(() => e.index === o.value), p = D(() => e.index === o.value - 1), s = D(() => e.index === o.value + 1), l = D(() => {
503
503
  const g = Math.floor(r.value), y = Math.ceil(r.value + t.itemsToShow - 1);
504
504
  return e.index >= g && e.index <= y;
505
505
  });
@@ -511,16 +511,16 @@ var et = F({
511
511
  carousel__slide: !0,
512
512
  "carousel__slide--clone": e.isClone,
513
513
  "carousel__slide--visible": l.value,
514
- "carousel__slide--active": v.value,
515
- "carousel__slide--prev": m.value,
514
+ "carousel__slide--active": d.value,
515
+ "carousel__slide--prev": p.value,
516
516
  "carousel__slide--next": s.value,
517
517
  "carousel__slide--sliding": i.value
518
518
  },
519
519
  "aria-hidden": !l.value
520
520
  }, (g = n.default) === null || g === void 0 ? void 0 : g.call(n, {
521
- isActive: v.value,
521
+ isActive: d.value,
522
522
  isClone: e.isClone,
523
- isPrev: m.value,
523
+ isPrev: p.value,
524
524
  isNext: s.value,
525
525
  isSliding: i.value,
526
526
  isVisible: l.value
@@ -547,81 +547,81 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
547
547
  },
548
548
  emits: ["click", "transition", "transition:multi"],
549
549
  setup(e, { expose: n, emit: t }) {
550
- const a = e, r = je(), i = Be(), v = d(), m = t, s = d(0);
551
- function l(...u) {
552
- const [x] = u;
550
+ const o = e, r = je(), i = Be(), d = c(), p = t, s = c(0);
551
+ function l(...m) {
552
+ const [x] = m;
553
553
  x !== void 0 && g(x);
554
554
  }
555
- const g = (u) => {
556
- s.value = u;
555
+ const g = (m) => {
556
+ s.value = m;
557
557
  }, y = () => {
558
- A();
559
- }, c = () => {
560
- m("click", a.slides[s.value]);
561
- }, A = () => {
562
- if (a.itemsToShow === 1) {
563
- m("transition", a.slides[s.value]);
558
+ _();
559
+ }, u = () => {
560
+ p("click", o.slides[s.value]);
561
+ }, _ = () => {
562
+ if (o.itemsToShow === 1) {
563
+ p("transition", o.slides[s.value]);
564
564
  return;
565
565
  }
566
- const u = a.slides.slice(s.value, s.value + a.itemsToShow);
567
- m("transition:multi", u);
566
+ const m = o.slides.slice(s.value, s.value + o.itemsToShow);
567
+ p("transition:multi", m);
568
568
  };
569
569
  return n({
570
570
  next: () => {
571
- var u;
572
- return (u = v.value) == null ? void 0 : u.next();
571
+ var m;
572
+ return (m = d.value) == null ? void 0 : m.next();
573
573
  },
574
574
  prev: () => {
575
- var u;
576
- return (u = v.value) == null ? void 0 : u.prev();
575
+ var m;
576
+ return (m = d.value) == null ? void 0 : m.prev();
577
577
  },
578
578
  slideTo: g
579
- }), (u, x) => (k(), E(B, null, [
579
+ }), (m, x) => (A(), E(B, null, [
580
580
  De(Je, Re({
581
581
  ref_key: "carouselRef",
582
- ref: v,
582
+ ref: d,
583
583
  "model-value": s.value,
584
584
  "aria-live": "polite",
585
585
  "aria-roledescription": "carousel",
586
586
  class: ["stash-carousel mb-6", N(i).root],
587
587
  "data-test": "stash-carousel",
588
- autoplay: u.autoplayInterval,
588
+ autoplay: e.autoplayInterval,
589
589
  i18n: {
590
590
  ariaNextSlide: N(V)("ll.next"),
591
591
  ariaPreviousSlide: N(V)("ll.previous"),
592
592
  iconArrowLeft: N(V)("ll.previous"),
593
593
  iconArrowRight: N(V)("ll.next")
594
594
  },
595
- "items-to-scroll": a.itemsToScroll,
596
- "items-to-show": a.itemsToShow,
597
- "pause-autoplay-on-hover": u.pauseAutoplayOnHover,
598
- "wrap-around": a.loop
595
+ "items-to-scroll": o.itemsToScroll,
596
+ "items-to-show": o.itemsToShow,
597
+ "pause-autoplay-on-hover": e.pauseAutoplayOnHover,
598
+ "wrap-around": o.loop
599
599
  }, N(r), {
600
600
  onInit: y,
601
- onSlideEnd: A,
601
+ onSlideEnd: _,
602
602
  "onUpdate:modelValue": l
603
603
  }), {
604
604
  addons: G(() => [
605
- a.slides.length > 1 && !a.hideNavigation ? (k(), W(Ze, { key: 0 })) : ke("", !0)
605
+ o.slides.length > 1 && !o.hideNavigation ? (A(), W(Ze, { key: 0 })) : Ae("", !0)
606
606
  ]),
607
607
  default: G(() => [
608
- (k(!0), E(B, null, le(a.slides, (b, _) => (k(), W(et, {
608
+ (A(!0), E(B, null, le(o.slides, (b, k) => (A(), W(et, {
609
609
  key: b.id,
610
610
  "data-test": "stash-carousel|slide",
611
611
  class: "cursor-pointer",
612
- onClick: c
612
+ onClick: u
613
613
  }, {
614
614
  default: G(() => [
615
- Pe(u.$slots, "slide", {
615
+ Pe(m.$slots, "slide", {
616
616
  slide: b,
617
- index: _
617
+ index: k
618
618
  }, () => [
619
619
  Ve("img", {
620
- class: ie(["size-full", [{ rounded: a.roundBorders }]]),
620
+ class: ie(["size-full", [{ rounded: o.roundBorders }]]),
621
621
  src: b.imageUrl,
622
622
  title: N(V)("ll.carousel.imageLabel", {
623
- index: _ + 1,
624
- total: u.slides.length
623
+ index: k + 1,
624
+ total: e.slides.length
625
625
  })
626
626
  }, null, 10, tt)
627
627
  ])
@@ -631,40 +631,40 @@ const tt = ["src", "title"], nt = /* @__PURE__ */ F({
631
631
  ]),
632
632
  _: 3
633
633
  }, 16, ["model-value", "autoplay", "class", "i18n", "items-to-scroll", "items-to-show", "pause-autoplay-on-hover", "wrap-around"]),
634
- a.hidePagination ? ke("", !0) : (k(), E(B, { key: 0 }, [
635
- a.pagination === "tile" ? (k(), W($e, {
634
+ o.hidePagination ? Ae("", !0) : (A(), E(B, { key: 0 }, [
635
+ o.pagination === "tile" ? (A(), W($e, {
636
636
  key: 0,
637
637
  "active-thumbnail": s.value,
638
- thumbnails: u.slides,
639
- radius: a.paginationTileRadius === "full" ? "circle" : "rounded",
638
+ thumbnails: e.slides,
639
+ radius: o.paginationTileRadius === "full" ? "circle" : "rounded",
640
640
  "onUpdate:activeThumbnail": g
641
641
  }, {
642
642
  default: G(() => [
643
- (k(!0), E(B, null, le(u.slides, (b) => (k(), W(Ue, {
643
+ (A(!0), E(B, null, le(e.slides, (b) => (A(), W(Ue, {
644
644
  key: b.id,
645
645
  thumbnail: b,
646
646
  variant: "translucent"
647
647
  }, null, 8, ["thumbnail"]))), 128))
648
648
  ]),
649
649
  _: 1
650
- }, 8, ["active-thumbnail", "thumbnails", "radius"])) : (k(), E("ul", {
650
+ }, 8, ["active-thumbnail", "thumbnails", "radius"])) : (A(), E("ul", {
651
651
  key: 1,
652
- class: ie(["text-center", [!u.staticPaginationDots && "lg:hidden"]]),
652
+ class: ie(["text-center", [!e.staticPaginationDots && "lg:hidden"]]),
653
653
  "data-test": "stash-carousel|pagination-dots"
654
654
  }, [
655
- (k(!0), E(B, null, le(u.slides, (b, _) => (k(), E("li", {
655
+ (A(!0), E(B, null, le(e.slides, (b, k) => (A(), E("li", {
656
656
  key: b.imageUrl,
657
- class: ie(["inline-block rounded-full", [N(i)["pagination-dot"], [s.value === _ ? "bg-blue-500" : "bg-blue-100"]]])
657
+ class: ie(["inline-block rounded-full", [N(i)["pagination-dot"], [s.value === k ? "bg-blue-500" : "bg-blue-100"]]])
658
658
  }, null, 2))), 128))
659
659
  ], 2))
660
660
  ], 64))
661
661
  ], 64));
662
662
  }
663
- }), ot = "_root_gpzha_5", at = {
664
- root: ot,
663
+ }), at = "_root_gpzha_5", ot = {
664
+ root: at,
665
665
  "pagination-dot": "_pagination-dot_gpzha_37"
666
666
  }, lt = {
667
- $style: at
667
+ $style: ot
668
668
  }, dt = /* @__PURE__ */ ze(nt, [["__cssModules", lt]]);
669
669
  export {
670
670
  dt as default