nve-designsystem 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +163 -226
  2. package/chunks/chunk.36O46B5H.js +15 -15
  3. package/chunks/chunk.4TUIT776.js +78 -96
  4. package/chunks/chunk.5JY5FUCG.js +965 -1245
  5. package/chunks/chunk.5P45LHIX.js +668 -96
  6. package/chunks/chunk.6CTB5ZDJ.js +107 -100
  7. package/chunks/chunk.B4BZKR24.js +29 -39
  8. package/chunks/chunk.D5YQDJ7X.js +122 -166
  9. package/chunks/chunk.EA437WHD.js +5 -5
  10. package/chunks/chunk.GI7VDIWX.js +14 -15
  11. package/chunks/chunk.GMYPQTFK.js +18 -20
  12. package/chunks/chunk.HVTXQL7M.js +191 -215
  13. package/chunks/chunk.IKV4VH3T.js +18 -16
  14. package/chunks/chunk.IVVHNXMC.js +26 -27
  15. package/chunks/chunk.JHOXTQXA.js +65 -74
  16. package/chunks/chunk.JXOKFADN.js +63 -90
  17. package/chunks/chunk.K7JGTRV7.js +24 -23
  18. package/chunks/chunk.KPLQLAWP.js +132 -147
  19. package/chunks/chunk.LD4M4QGE.js +61 -74
  20. package/chunks/chunk.MSKEYBDI.js +53 -71
  21. package/chunks/chunk.NYIIDP5N.js +39 -45
  22. package/chunks/chunk.RWUUFNUL.js +91 -114
  23. package/chunks/chunk.SAPQLUO4.js +249 -228
  24. package/chunks/chunk.SI4ACBFK.js +139 -5
  25. package/chunks/chunk.TP2GB2HO.js +361 -460
  26. package/chunks/chunk.UDWRA64J.js +185 -223
  27. package/chunks/chunk.URTPIBTY.js +119 -151
  28. package/chunks/chunk.VESXC477.js +63 -66
  29. package/chunks/chunk.XA43ZQPC.js +198 -313
  30. package/chunks/chunk.XQ2OKYYA.js +25 -26
  31. package/chunks/chunk.XZNBUGX7.js +6 -6
  32. package/chunks/chunk.YHLNUJ7P.js +93 -116
  33. package/chunks/chunk.ZH2AND3P.js +340 -399
  34. package/chunks/chunk.ZL53POKZ.js +61 -156
  35. package/chunks/chunk.js +20 -0
  36. package/chunks/class-map.js +49 -45
  37. package/chunks/decorate.js +105 -0
  38. package/chunks/directive-helpers.js +5 -7
  39. package/chunks/if-defined.js +5 -5
  40. package/chunks/lit.js +525 -0
  41. package/chunks/live.js +24 -24
  42. package/chunks/nve-alert.component.js +163 -0
  43. package/chunks/nve-carousel-item.component.js +36 -0
  44. package/chunks/nve-carousel.component.js +41 -0
  45. package/chunks/nve-checkbox-group.component.js +114 -0
  46. package/chunks/nve-checkbox.component.js +28 -0
  47. package/chunks/nve-dialog.component.js +39 -0
  48. package/chunks/nve-divider.component.js +23 -0
  49. package/chunks/nve-drawer.component.js +40 -0
  50. package/chunks/nve-dropdown.component.js +83 -0
  51. package/chunks/nve-input.component.js +80 -0
  52. package/chunks/nve-label.component.js +89 -0
  53. package/chunks/nve-menu-item.component.js +35 -0
  54. package/chunks/nve-menu.component.js +17 -0
  55. package/chunks/nve-option.component.js +27 -0
  56. package/chunks/nve-popup.component.js +15 -0
  57. package/chunks/nve-radio-button.component.js +20 -0
  58. package/chunks/nve-radio-group.component.js +78 -0
  59. package/chunks/nve-radio.component.js +18 -0
  60. package/chunks/nve-select.component.js +58 -0
  61. package/chunks/nve-skeleton.component.js +20 -0
  62. package/chunks/nve-spinner.component.js +23 -0
  63. package/chunks/nve-tooltip.component.js +20 -0
  64. package/chunks/nve-warning-level.component.js +57 -0
  65. package/chunks/ref.js +75 -84
  66. package/chunks/shoelace.js +10006 -0
  67. package/chunks/static-html.js +27 -0
  68. package/chunks/unsafe-html.js +24 -20
  69. package/chunks/updateInvalidProperty.js +7 -7
  70. package/chunks/watch.js +20 -20
  71. package/components/nve-accordion/nve-accordion.component.js +24 -30
  72. package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
  73. package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
  74. package/components/nve-alert/nve-alert.component.js +2 -227
  75. package/components/nve-alert/nve-alert.styles.js +45 -27
  76. package/components/nve-badge/nve-badge.component.js +41 -45
  77. package/components/nve-badge/nve-badge.styles.js +33 -31
  78. package/components/nve-button/nve-button.component.d.ts +110 -10
  79. package/components/nve-button/nve-button.component.js +146 -39
  80. package/components/nve-button/nve-button.styles.js +214 -157
  81. package/components/nve-carousel/nve-carousel.component.js +2 -47
  82. package/components/nve-carousel/nve-carousel.styles.js +6 -6
  83. package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
  84. package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
  85. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
  86. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
  87. package/components/nve-checkbox/nve-checkbox.component.js +2 -34
  88. package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
  89. package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
  90. package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
  91. package/components/nve-combobox/nve-combobox.component.js +222 -440
  92. package/components/nve-combobox/nve-combobox.styles.js +6 -6
  93. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
  94. package/components/nve-dialog/nve-dialog-styles.js +6 -6
  95. package/components/nve-dialog/nve-dialog.component.js +2 -54
  96. package/components/nve-divider/nve-divider.component.js +2 -30
  97. package/components/nve-drawer/nve-drawer.component.js +2 -44
  98. package/components/nve-drawer/nve-drawer.styles.js +6 -6
  99. package/components/nve-dropdown/nve-dropdown.component.js +2 -79
  100. package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
  101. package/components/nve-heading/nve-heading.component.d.ts +29 -0
  102. package/components/nve-heading/nve-heading.component.js +45 -0
  103. package/components/nve-heading/nve-heading.styles.d.ts +2 -0
  104. package/components/nve-heading/nve-heading.styles.js +41 -0
  105. package/components/nve-icon/nve-icon.component.js +145 -164
  106. package/components/nve-icon/nve-icon.styles.js +11 -6
  107. package/components/nve-icon/offline-icons.js +16 -13
  108. package/components/nve-input/nve-input.component.js +2 -100
  109. package/components/nve-input/nve-input.styles.js +5 -5
  110. package/components/nve-label/nve-label.component.js +2 -115
  111. package/components/nve-label/nve-label.styles.js +5 -5
  112. package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
  113. package/components/nve-link-card/nve-link-card.component.js +44 -80
  114. package/components/nve-link-card/nve-link-card.styles.js +71 -66
  115. package/components/nve-menu/nve-menu.component.js +2 -22
  116. package/components/nve-menu/nve-menu.styles.js +5 -5
  117. package/components/nve-menu-item/nve-menu-item.component.js +2 -43
  118. package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
  119. package/components/nve-message-card/nve-message-card.component.js +61 -91
  120. package/components/nve-message-card/nve-message-card.styles.js +24 -27
  121. package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
  122. package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
  123. package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
  124. package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
  125. package/components/nve-option/nve-option.component.js +2 -41
  126. package/components/nve-option/nve-option.styles.js +5 -5
  127. package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
  128. package/components/nve-paragraph/nve-paragraph.component.js +26 -0
  129. package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
  130. package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
  131. package/components/nve-popup/nve-popup.component.js +2 -22
  132. package/components/nve-radio/nve-radio.component.js +2 -23
  133. package/components/nve-radio/nve-radio.styles.js +5 -5
  134. package/components/nve-radio-button/nve-radio-button.component.js +2 -25
  135. package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
  136. package/components/nve-radio-group/nve-radio-group.component.js +2 -119
  137. package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
  138. package/components/nve-relative-time/nve-relative-time.component.js +21 -56
  139. package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
  140. package/components/nve-select/nve-select.component.js +2 -80
  141. package/components/nve-select/nve-select.styles.js +5 -5
  142. package/components/nve-skeleton/nve-skeleton.component.js +2 -27
  143. package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
  144. package/components/nve-spinner/nve-spinner.component.js +2 -31
  145. package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
  146. package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
  147. package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
  148. package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
  149. package/components/nve-stepper/nve-stepper.component.js +94 -139
  150. package/components/nve-stepper/nve-stepper.styles.js +5 -5
  151. package/components/nve-switch/nve-switch.component.js +75 -107
  152. package/components/nve-switch/nve-switch.styles.js +7 -7
  153. package/components/nve-tab/nve-tab.component.js +30 -42
  154. package/components/nve-tab/nve-tab.styles.js +7 -7
  155. package/components/nve-tab-group/nve-tab-group.component.js +180 -260
  156. package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
  157. package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
  158. package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
  159. package/components/nve-tag/nve-tag.component.d.ts +3 -3
  160. package/components/nve-tag/nve-tag.component.js +71 -72
  161. package/components/nve-tag/nve-tag.styles.js +23 -22
  162. package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
  163. package/components/nve-textarea/nve-textarea.component.js +112 -173
  164. package/components/nve-textarea/nve-textarea.styles.js +10 -5
  165. package/components/nve-tooltip/nve-tooltip.component.js +2 -30
  166. package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
  167. package/components/nve-warning-level/nve-warning-level.component.js +2 -78
  168. package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
  169. package/css/global.css +13 -55
  170. package/css/nve.css +1048 -393
  171. package/css/nve_dark.css +406 -305
  172. package/css/rme.css +1050 -395
  173. package/css/rme_dark.css +408 -307
  174. package/css/shoelace-styles.css +539 -0
  175. package/css/varsom.css +1046 -391
  176. package/css/varsom_dark.css +404 -303
  177. package/custom-elements.json +2905 -12389
  178. package/fonts/LICENSE.txt +37 -0
  179. package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
  180. package/interfaces/NveComponent.interface.js +0 -1
  181. package/nve-designsystem.d.ts +5 -0
  182. package/nve-designsystem.js +46 -86
  183. package/package.json +26 -8
  184. package/registerIcons/systemLibraryCustomization.js +23 -91
  185. package/vite-env.d.js +0 -1
  186. package/chunks/chunk.3RPBFEDE.js +0 -162
  187. package/chunks/chunk.JCXLDPQF.js +0 -225
  188. package/chunks/chunk.JQBT7BOV.js +0 -8446
  189. package/chunks/chunk.MAQXLKQ7.js +0 -598
  190. package/chunks/lit-element.js +0 -508
  191. package/chunks/property.js +0 -37
  192. package/chunks/query.js +0 -13
  193. package/chunks/state.js +0 -7
  194. package/chunks/static.js +0 -26
  195. package/nve-designsystem.css +0 -1
  196. package/vscode.css-custom-data.json +0 -621
  197. package/vscode.html-custom-data.json +0 -2354
@@ -1,46 +1,40 @@
1
- import { i as _, x as p } from "./lit-element.js";
2
- import { b as f, w } from "./chunk.B4BZKR24.js";
3
- import { L as P } from "./chunk.6CTB5ZDJ.js";
4
- import { S as C } from "./chunk.YHLNUJ7P.js";
5
- import { w as u } from "./chunk.GMYPQTFK.js";
6
- import { c as E, d as c, S as L } from "./chunk.4TUIT776.js";
7
- import { e as g } from "./class-map.js";
8
- import { n as h } from "./property.js";
9
- import { r as v } from "./state.js";
10
- import { e as y } from "./query.js";
11
- function k(t) {
12
- return (e, i) => {
13
- const s = typeof e == "function" ? e : e[i];
14
- Object.assign(s, t);
15
- };
1
+ import { a as e, u as t } from "./lit.js";
2
+ import { a as n, i as r, o as i, r as a } from "./decorate.js";
3
+ import { n as o, r as s, t as c } from "./chunk.4TUIT776.js";
4
+ import { t as l } from "./chunk.YHLNUJ7P.js";
5
+ import { t as u } from "./chunk.GMYPQTFK.js";
6
+ import { t as d } from "./class-map.js";
7
+ import { t as f } from "./chunk.6CTB5ZDJ.js";
8
+ import { i as p, t as m } from "./chunk.B4BZKR24.js";
9
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.HF7GESMZ.js
10
+ function h(e, t, n) {
11
+ return ((e) => Object.is(e, -0) ? 0 : e)(e < t ? t : e > n ? n : e);
16
12
  }
17
- function m(t, e, i) {
18
- const s = (o) => Object.is(o, -0) ? 0 : o;
19
- return t < e ? s(e) : t > i ? s(i) : s(t);
20
- }
21
- var A = class {
22
- constructor(t, e) {
23
- this.timerId = 0, this.activeInteractions = 0, this.paused = !1, this.stopped = !0, this.pause = () => {
24
- this.activeInteractions++ || (this.paused = !0, this.host.requestUpdate());
25
- }, this.resume = () => {
26
- --this.activeInteractions || (this.paused = !1, this.host.requestUpdate());
27
- }, t.addController(this), this.host = t, this.tickCallback = e;
28
- }
29
- hostConnected() {
30
- this.host.addEventListener("mouseenter", this.pause), this.host.addEventListener("mouseleave", this.resume), this.host.addEventListener("focusin", this.pause), this.host.addEventListener("focusout", this.resume), this.host.addEventListener("touchstart", this.pause, { passive: !0 }), this.host.addEventListener("touchend", this.resume);
31
- }
32
- hostDisconnected() {
33
- this.stop(), this.host.removeEventListener("mouseenter", this.pause), this.host.removeEventListener("mouseleave", this.resume), this.host.removeEventListener("focusin", this.pause), this.host.removeEventListener("focusout", this.resume), this.host.removeEventListener("touchstart", this.pause), this.host.removeEventListener("touchend", this.resume);
34
- }
35
- start(t) {
36
- this.stop(), this.stopped = !1, this.timerId = window.setInterval(() => {
37
- this.paused || this.tickCallback();
38
- }, t);
39
- }
40
- stop() {
41
- clearInterval(this.timerId), this.stopped = !0, this.host.requestUpdate();
42
- }
43
- }, $ = _`
13
+ //#endregion
14
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.F4VGSDIW.js
15
+ var g = class {
16
+ constructor(e, t) {
17
+ this.timerId = 0, this.activeInteractions = 0, this.paused = !1, this.stopped = !0, this.pause = () => {
18
+ this.activeInteractions++ || (this.paused = !0, this.host.requestUpdate());
19
+ }, this.resume = () => {
20
+ --this.activeInteractions || (this.paused = !1, this.host.requestUpdate());
21
+ }, e.addController(this), this.host = e, this.tickCallback = t;
22
+ }
23
+ hostConnected() {
24
+ this.host.addEventListener("mouseenter", this.pause), this.host.addEventListener("mouseleave", this.resume), this.host.addEventListener("focusin", this.pause), this.host.addEventListener("focusout", this.resume), this.host.addEventListener("touchstart", this.pause, { passive: !0 }), this.host.addEventListener("touchend", this.resume);
25
+ }
26
+ hostDisconnected() {
27
+ this.stop(), this.host.removeEventListener("mouseenter", this.pause), this.host.removeEventListener("mouseleave", this.resume), this.host.removeEventListener("focusin", this.pause), this.host.removeEventListener("focusout", this.resume), this.host.removeEventListener("touchstart", this.pause), this.host.removeEventListener("touchend", this.resume);
28
+ }
29
+ start(e) {
30
+ this.stop(), this.stopped = !1, this.timerId = window.setInterval(() => {
31
+ this.paused || this.tickCallback();
32
+ }, e);
33
+ }
34
+ stop() {
35
+ clearInterval(this.timerId), this.stopped = !0, this.host.requestUpdate();
36
+ }
37
+ }, _ = t`
44
38
  :host {
45
39
  --slide-gap: var(--sl-spacing-medium, 1rem);
46
40
  --aspect-ratio: 16 / 9;
@@ -193,235 +187,219 @@ var A = class {
193
187
  outline-offset: var(--sl-focus-ring-offset);
194
188
  }
195
189
  `;
196
- function* x(t, e) {
197
- if (t !== void 0) {
198
- let i = 0;
199
- for (const s of t) yield e(s, i++);
200
- }
190
+ //#endregion
191
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/map.js
192
+ function* v(e, t) {
193
+ if (e !== void 0) {
194
+ let n = 0;
195
+ for (let r of e) yield t(r, n++);
196
+ }
201
197
  }
202
- function* z(t, e, i = 1) {
203
- const s = e === void 0 ? 0 : t;
204
- e ??= t;
205
- for (let o = s; i > 0 ? o < e : e < o; o += i) yield o;
198
+ //#endregion
199
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/range.js
200
+ function* y(e, t, n = 1) {
201
+ let r = t === void 0 ? 0 : e;
202
+ t ??= e;
203
+ for (let e = r; n > 0 ? e < t : t < e; e += n) yield e;
206
204
  }
207
- var l = class extends L {
208
- constructor() {
209
- super(...arguments), this.loop = !1, this.navigation = !1, this.pagination = !1, this.autoplay = !1, this.autoplayInterval = 3e3, this.slidesPerPage = 1, this.slidesPerMove = 1, this.orientation = "horizontal", this.mouseDragging = !1, this.activeSlide = 0, this.scrolling = !1, this.dragging = !1, this.autoplayController = new A(this, () => this.next()), this.dragStartPosition = [-1, -1], this.localize = new P(this), this.pendingSlideChange = !1, this.handleMouseDrag = (t) => {
210
- this.dragging || (this.scrollContainer.style.setProperty("scroll-snap-type", "none"), this.dragging = !0, this.dragStartPosition = [t.clientX, t.clientY]), this.scrollContainer.scrollBy({
211
- left: -t.movementX,
212
- top: -t.movementY,
213
- behavior: "instant"
214
- });
215
- }, this.handleMouseDragEnd = () => {
216
- const t = this.scrollContainer;
217
- document.removeEventListener("pointermove", this.handleMouseDrag, { capture: !0 });
218
- const e = t.scrollLeft, i = t.scrollTop;
219
- t.style.removeProperty("scroll-snap-type"), t.style.setProperty("overflow", "hidden");
220
- const s = t.scrollLeft, o = t.scrollTop;
221
- t.style.removeProperty("overflow"), t.style.setProperty("scroll-snap-type", "none"), t.scrollTo({ left: e, top: i, behavior: "instant" }), requestAnimationFrame(async () => {
222
- (e !== s || i !== o) && (t.scrollTo({
223
- left: s,
224
- top: o,
225
- behavior: f() ? "auto" : "smooth"
226
- }), await w(t, "scrollend")), t.style.removeProperty("scroll-snap-type"), this.dragging = !1, this.dragStartPosition = [-1, -1], this.handleScrollEnd();
227
- });
228
- }, this.handleSlotChange = (t) => {
229
- t.some(
230
- (i) => [...i.addedNodes, ...i.removedNodes].some(
231
- (s) => this.isCarouselItem(s) && !s.hasAttribute("data-clone")
232
- )
233
- ) && this.initializeSlides(), this.requestUpdate();
234
- };
235
- }
236
- connectedCallback() {
237
- super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("carousel"));
238
- }
239
- disconnectedCallback() {
240
- var t;
241
- super.disconnectedCallback(), (t = this.mutationObserver) == null || t.disconnect();
242
- }
243
- firstUpdated() {
244
- this.initializeSlides(), this.mutationObserver = new MutationObserver(this.handleSlotChange), this.mutationObserver.observe(this, {
245
- childList: !0,
246
- subtree: !0
247
- });
248
- }
249
- willUpdate(t) {
250
- (t.has("slidesPerMove") || t.has("slidesPerPage")) && (this.slidesPerMove = Math.min(this.slidesPerMove, this.slidesPerPage));
251
- }
252
- getPageCount() {
253
- const t = this.getSlides().length, { slidesPerPage: e, slidesPerMove: i, loop: s } = this, o = s ? t / i : (t - e) / i + 1;
254
- return Math.ceil(o);
255
- }
256
- getCurrentPage() {
257
- return Math.ceil(this.activeSlide / this.slidesPerMove);
258
- }
259
- canScrollNext() {
260
- return this.loop || this.getCurrentPage() < this.getPageCount() - 1;
261
- }
262
- canScrollPrev() {
263
- return this.loop || this.getCurrentPage() > 0;
264
- }
265
- /** @internal Gets all carousel items. */
266
- getSlides({ excludeClones: t = !0 } = {}) {
267
- return [...this.children].filter(
268
- (e) => this.isCarouselItem(e) && (!t || !e.hasAttribute("data-clone"))
269
- );
270
- }
271
- handleClick(t) {
272
- if (this.dragging && this.dragStartPosition[0] > 0 && this.dragStartPosition[1] > 0) {
273
- const e = Math.abs(this.dragStartPosition[0] - t.clientX), i = Math.abs(this.dragStartPosition[1] - t.clientY);
274
- Math.sqrt(e * e + i * i) >= 10 && t.preventDefault();
275
- }
276
- }
277
- handleKeyDown(t) {
278
- if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(t.key)) {
279
- const e = t.target, i = this.localize.dir() === "rtl", s = e.closest('[part~="pagination-item"]') !== null, o = t.key === "ArrowDown" || !i && t.key === "ArrowRight" || i && t.key === "ArrowLeft", a = t.key === "ArrowUp" || !i && t.key === "ArrowLeft" || i && t.key === "ArrowRight";
280
- t.preventDefault(), a && this.previous(), o && this.next(), t.key === "Home" && this.goToSlide(0), t.key === "End" && this.goToSlide(this.getSlides().length - 1), s && this.updateComplete.then(() => {
281
- var n;
282
- const r = (n = this.shadowRoot) == null ? void 0 : n.querySelector(
283
- '[part~="pagination-item--active"]'
284
- );
285
- r && r.focus();
286
- });
287
- }
288
- }
289
- handleMouseDragStart(t) {
290
- this.mouseDragging && t.button === 0 && (t.preventDefault(), document.addEventListener("pointermove", this.handleMouseDrag, { capture: !0, passive: !0 }), document.addEventListener("pointerup", this.handleMouseDragEnd, { capture: !0, once: !0 }));
291
- }
292
- handleScroll() {
293
- this.scrolling = !0, this.pendingSlideChange || this.synchronizeSlides();
294
- }
295
- /** @internal Synchronizes the slides with the IntersectionObserver API. */
296
- synchronizeSlides() {
297
- const t = new IntersectionObserver(
298
- (e) => {
299
- t.disconnect();
300
- for (const r of e) {
301
- const d = r.target;
302
- d.toggleAttribute("inert", !r.isIntersecting), d.classList.toggle("--in-view", r.isIntersecting), d.setAttribute("aria-hidden", r.isIntersecting ? "false" : "true");
303
- }
304
- const i = e.find((r) => r.isIntersecting);
305
- if (!i)
306
- return;
307
- const s = this.getSlides({ excludeClones: !1 }), o = this.getSlides().length, a = s.indexOf(i.target), n = this.loop ? a - this.slidesPerPage : a;
308
- if (this.activeSlide = (Math.ceil(n / this.slidesPerMove) * this.slidesPerMove + o) % o, !this.scrolling && this.loop && i.target.hasAttribute("data-clone")) {
309
- const r = Number(i.target.getAttribute("data-clone"));
310
- this.goToSlide(r, "instant");
311
- }
312
- },
313
- {
314
- root: this.scrollContainer,
315
- threshold: 0.6
316
- }
317
- );
318
- this.getSlides({ excludeClones: !1 }).forEach((e) => {
319
- t.observe(e);
320
- });
321
- }
322
- handleScrollEnd() {
323
- !this.scrolling || this.dragging || (this.scrolling = !1, this.pendingSlideChange = !1, this.synchronizeSlides());
324
- }
325
- isCarouselItem(t) {
326
- return t instanceof Element && t.tagName.toLowerCase() === "sl-carousel-item";
327
- }
328
- initializeSlides() {
329
- this.getSlides({ excludeClones: !1 }).forEach((t, e) => {
330
- t.classList.remove("--in-view"), t.classList.remove("--is-active"), t.setAttribute("role", "group"), t.setAttribute("aria-label", this.localize.term("slideNum", e + 1)), this.pagination && (t.setAttribute("id", `slide-${e + 1}`), t.setAttribute("role", "tabpanel"), t.removeAttribute("aria-label"), t.setAttribute("aria-labelledby", `tab-${e + 1}`)), t.hasAttribute("data-clone") && t.remove();
331
- }), this.updateSlidesSnap(), this.loop && this.createClones(), this.goToSlide(this.activeSlide, "auto"), this.synchronizeSlides();
332
- }
333
- createClones() {
334
- const t = this.getSlides(), e = this.slidesPerPage, i = t.slice(-e), s = t.slice(0, e);
335
- i.reverse().forEach((o, a) => {
336
- const n = o.cloneNode(!0);
337
- n.setAttribute("data-clone", String(t.length - a - 1)), this.prepend(n);
338
- }), s.forEach((o, a) => {
339
- const n = o.cloneNode(!0);
340
- n.setAttribute("data-clone", String(a)), this.append(n);
341
- });
342
- }
343
- handleSlideChange() {
344
- const t = this.getSlides();
345
- t.forEach((e, i) => {
346
- e.classList.toggle("--is-active", i === this.activeSlide);
347
- }), this.hasUpdated && this.emit("sl-slide-change", {
348
- detail: {
349
- index: this.activeSlide,
350
- slide: t[this.activeSlide]
351
- }
352
- });
353
- }
354
- updateSlidesSnap() {
355
- const t = this.getSlides(), e = this.slidesPerMove;
356
- t.forEach((i, s) => {
357
- (s + e) % e === 0 ? i.style.removeProperty("scroll-snap-align") : i.style.setProperty("scroll-snap-align", "none");
358
- });
359
- }
360
- handleAutoplayChange() {
361
- this.autoplayController.stop(), this.autoplay && this.autoplayController.start(this.autoplayInterval);
362
- }
363
- /**
364
- * Move the carousel backward by `slides-per-move` slides.
365
- *
366
- * @param behavior - The behavior used for scrolling.
367
- */
368
- previous(t = "smooth") {
369
- this.goToSlide(this.activeSlide - this.slidesPerMove, t);
370
- }
371
- /**
372
- * Move the carousel forward by `slides-per-move` slides.
373
- *
374
- * @param behavior - The behavior used for scrolling.
375
- */
376
- next(t = "smooth") {
377
- this.goToSlide(this.activeSlide + this.slidesPerMove, t);
378
- }
379
- /**
380
- * Scrolls the carousel to the slide specified by `index`.
381
- *
382
- * @param index - The slide index.
383
- * @param behavior - The behavior used for scrolling.
384
- */
385
- goToSlide(t, e = "smooth") {
386
- const { slidesPerPage: i, loop: s } = this, o = this.getSlides(), a = this.getSlides({ excludeClones: !1 });
387
- if (!o.length)
388
- return;
389
- const n = s ? (t + o.length) % o.length : m(t, 0, o.length - i);
390
- this.activeSlide = n;
391
- const r = this.localize.dir() === "rtl", d = m(
392
- t + (s ? i : 0) + (r ? i - 1 : 0),
393
- 0,
394
- a.length - 1
395
- ), S = a[d];
396
- this.scrollToSlide(S, f() ? "auto" : e);
397
- }
398
- scrollToSlide(t, e = "smooth") {
399
- this.pendingSlideChange = !0, window.requestAnimationFrame(() => {
400
- if (!this.scrollContainer)
401
- return;
402
- const i = this.scrollContainer, s = i.getBoundingClientRect(), o = t.getBoundingClientRect(), a = o.left - s.left, n = o.top - s.top;
403
- a || n ? (this.pendingSlideChange = !0, i.scrollTo({
404
- left: a + i.scrollLeft,
405
- top: n + i.scrollTop,
406
- behavior: e
407
- })) : this.pendingSlideChange = !1;
408
- });
409
- }
410
- render() {
411
- const { slidesPerMove: t, scrolling: e } = this, i = this.getPageCount(), s = this.getCurrentPage(), o = this.canScrollPrev(), a = this.canScrollNext(), n = this.localize.dir() === "ltr";
412
- return p`
205
+ //#endregion
206
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AADUHVTJ.js
207
+ var b = class extends c {
208
+ constructor() {
209
+ super(...arguments), this.loop = !1, this.navigation = !1, this.pagination = !1, this.autoplay = !1, this.autoplayInterval = 3e3, this.slidesPerPage = 1, this.slidesPerMove = 1, this.orientation = "horizontal", this.mouseDragging = !1, this.activeSlide = 0, this.scrolling = !1, this.dragging = !1, this.autoplayController = new g(this, () => this.next()), this.dragStartPosition = [-1, -1], this.localize = new f(this), this.pendingSlideChange = !1, this.handleMouseDrag = (e) => {
210
+ this.dragging || (this.scrollContainer.style.setProperty("scroll-snap-type", "none"), this.dragging = !0, this.dragStartPosition = [e.clientX, e.clientY]), this.scrollContainer.scrollBy({
211
+ left: -e.movementX,
212
+ top: -e.movementY,
213
+ behavior: "instant"
214
+ });
215
+ }, this.handleMouseDragEnd = () => {
216
+ let e = this.scrollContainer;
217
+ document.removeEventListener("pointermove", this.handleMouseDrag, { capture: !0 });
218
+ let t = e.scrollLeft, n = e.scrollTop;
219
+ e.style.removeProperty("scroll-snap-type"), e.style.setProperty("overflow", "hidden");
220
+ let r = e.scrollLeft, i = e.scrollTop;
221
+ e.style.removeProperty("overflow"), e.style.setProperty("scroll-snap-type", "none"), e.scrollTo({
222
+ left: t,
223
+ top: n,
224
+ behavior: "instant"
225
+ }), requestAnimationFrame(async () => {
226
+ (t !== r || n !== i) && (e.scrollTo({
227
+ left: r,
228
+ top: i,
229
+ behavior: p() ? "auto" : "smooth"
230
+ }), await m(e, "scrollend")), e.style.removeProperty("scroll-snap-type"), this.dragging = !1, this.dragStartPosition = [-1, -1], this.handleScrollEnd();
231
+ });
232
+ }, this.handleSlotChange = (e) => {
233
+ e.some((e) => [...e.addedNodes, ...e.removedNodes].some((e) => this.isCarouselItem(e) && !e.hasAttribute("data-clone"))) && this.initializeSlides(), this.requestUpdate();
234
+ };
235
+ }
236
+ connectedCallback() {
237
+ super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("carousel"));
238
+ }
239
+ disconnectedCallback() {
240
+ var e;
241
+ super.disconnectedCallback(), (e = this.mutationObserver) == null || e.disconnect();
242
+ }
243
+ firstUpdated() {
244
+ this.initializeSlides(), this.mutationObserver = new MutationObserver(this.handleSlotChange), this.mutationObserver.observe(this, {
245
+ childList: !0,
246
+ subtree: !0
247
+ });
248
+ }
249
+ willUpdate(e) {
250
+ (e.has("slidesPerMove") || e.has("slidesPerPage")) && (this.slidesPerMove = Math.min(this.slidesPerMove, this.slidesPerPage));
251
+ }
252
+ getPageCount() {
253
+ let e = this.getSlides().length, { slidesPerPage: t, slidesPerMove: n, loop: r } = this, i = r ? e / n : (e - t) / n + 1;
254
+ return Math.ceil(i);
255
+ }
256
+ getCurrentPage() {
257
+ return Math.ceil(this.activeSlide / this.slidesPerMove);
258
+ }
259
+ canScrollNext() {
260
+ return this.loop || this.getCurrentPage() < this.getPageCount() - 1;
261
+ }
262
+ canScrollPrev() {
263
+ return this.loop || this.getCurrentPage() > 0;
264
+ }
265
+ getSlides({ excludeClones: e = !0 } = {}) {
266
+ return [...this.children].filter((t) => this.isCarouselItem(t) && (!e || !t.hasAttribute("data-clone")));
267
+ }
268
+ handleClick(e) {
269
+ if (this.dragging && this.dragStartPosition[0] > 0 && this.dragStartPosition[1] > 0) {
270
+ let t = Math.abs(this.dragStartPosition[0] - e.clientX), n = Math.abs(this.dragStartPosition[1] - e.clientY);
271
+ Math.sqrt(t * t + n * n) >= 10 && e.preventDefault();
272
+ }
273
+ }
274
+ handleKeyDown(e) {
275
+ if ([
276
+ "ArrowLeft",
277
+ "ArrowRight",
278
+ "ArrowUp",
279
+ "ArrowDown",
280
+ "Home",
281
+ "End"
282
+ ].includes(e.key)) {
283
+ let t = e.target, n = this.localize.dir() === "rtl", r = t.closest("[part~=\"pagination-item\"]") !== null, i = e.key === "ArrowDown" || !n && e.key === "ArrowRight" || n && e.key === "ArrowLeft", a = e.key === "ArrowUp" || !n && e.key === "ArrowLeft" || n && e.key === "ArrowRight";
284
+ e.preventDefault(), a && this.previous(), i && this.next(), e.key === "Home" && this.goToSlide(0), e.key === "End" && this.goToSlide(this.getSlides().length - 1), r && this.updateComplete.then(() => {
285
+ let e = this.shadowRoot?.querySelector("[part~=\"pagination-item--active\"]");
286
+ e && e.focus();
287
+ });
288
+ }
289
+ }
290
+ handleMouseDragStart(e) {
291
+ this.mouseDragging && e.button === 0 && (e.preventDefault(), document.addEventListener("pointermove", this.handleMouseDrag, {
292
+ capture: !0,
293
+ passive: !0
294
+ }), document.addEventListener("pointerup", this.handleMouseDragEnd, {
295
+ capture: !0,
296
+ once: !0
297
+ }));
298
+ }
299
+ handleScroll() {
300
+ this.scrolling = !0, this.pendingSlideChange || this.synchronizeSlides();
301
+ }
302
+ synchronizeSlides() {
303
+ let e = new IntersectionObserver((t) => {
304
+ e.disconnect();
305
+ for (let e of t) {
306
+ let t = e.target;
307
+ t.toggleAttribute("inert", !e.isIntersecting), t.classList.toggle("--in-view", e.isIntersecting), t.setAttribute("aria-hidden", e.isIntersecting ? "false" : "true");
308
+ }
309
+ let n = t.find((e) => e.isIntersecting);
310
+ if (!n) return;
311
+ let r = this.getSlides({ excludeClones: !1 }), i = this.getSlides().length, a = r.indexOf(n.target), o = this.loop ? a - this.slidesPerPage : a;
312
+ if (this.activeSlide = (Math.ceil(o / this.slidesPerMove) * this.slidesPerMove + i) % i, !this.scrolling && this.loop && n.target.hasAttribute("data-clone")) {
313
+ let e = Number(n.target.getAttribute("data-clone"));
314
+ this.goToSlide(e, "instant");
315
+ }
316
+ }, {
317
+ root: this.scrollContainer,
318
+ threshold: .6
319
+ });
320
+ this.getSlides({ excludeClones: !1 }).forEach((t) => {
321
+ e.observe(t);
322
+ });
323
+ }
324
+ handleScrollEnd() {
325
+ !this.scrolling || this.dragging || (this.scrolling = !1, this.pendingSlideChange = !1, this.synchronizeSlides());
326
+ }
327
+ isCarouselItem(e) {
328
+ return e instanceof Element && e.tagName.toLowerCase() === "sl-carousel-item";
329
+ }
330
+ initializeSlides() {
331
+ this.getSlides({ excludeClones: !1 }).forEach((e, t) => {
332
+ e.classList.remove("--in-view"), e.classList.remove("--is-active"), e.setAttribute("role", "group"), e.setAttribute("aria-label", this.localize.term("slideNum", t + 1)), this.pagination && (e.setAttribute("id", `slide-${t + 1}`), e.setAttribute("role", "tabpanel"), e.removeAttribute("aria-label"), e.setAttribute("aria-labelledby", `tab-${t + 1}`)), e.hasAttribute("data-clone") && e.remove();
333
+ }), this.updateSlidesSnap(), this.loop && this.createClones(), this.goToSlide(this.activeSlide, "auto"), this.synchronizeSlides();
334
+ }
335
+ createClones() {
336
+ let e = this.getSlides(), t = this.slidesPerPage, n = e.slice(-t), r = e.slice(0, t);
337
+ n.reverse().forEach((t, n) => {
338
+ let r = t.cloneNode(!0);
339
+ r.setAttribute("data-clone", String(e.length - n - 1)), this.prepend(r);
340
+ }), r.forEach((e, t) => {
341
+ let n = e.cloneNode(!0);
342
+ n.setAttribute("data-clone", String(t)), this.append(n);
343
+ });
344
+ }
345
+ handleSlideChange() {
346
+ let e = this.getSlides();
347
+ e.forEach((e, t) => {
348
+ e.classList.toggle("--is-active", t === this.activeSlide);
349
+ }), this.hasUpdated && this.emit("sl-slide-change", { detail: {
350
+ index: this.activeSlide,
351
+ slide: e[this.activeSlide]
352
+ } });
353
+ }
354
+ updateSlidesSnap() {
355
+ let e = this.getSlides(), t = this.slidesPerMove;
356
+ e.forEach((e, n) => {
357
+ (n + t) % t === 0 ? e.style.removeProperty("scroll-snap-align") : e.style.setProperty("scroll-snap-align", "none");
358
+ });
359
+ }
360
+ handleAutoplayChange() {
361
+ this.autoplayController.stop(), this.autoplay && this.autoplayController.start(this.autoplayInterval);
362
+ }
363
+ previous(e = "smooth") {
364
+ this.goToSlide(this.activeSlide - this.slidesPerMove, e);
365
+ }
366
+ next(e = "smooth") {
367
+ this.goToSlide(this.activeSlide + this.slidesPerMove, e);
368
+ }
369
+ goToSlide(e, t = "smooth") {
370
+ let { slidesPerPage: n, loop: r } = this, i = this.getSlides(), a = this.getSlides({ excludeClones: !1 });
371
+ if (!i.length) return;
372
+ let o = r ? (e + i.length) % i.length : h(e, 0, i.length - n);
373
+ this.activeSlide = o;
374
+ let s = this.localize.dir() === "rtl", c = a[h(e + (r ? n : 0) + (s ? n - 1 : 0), 0, a.length - 1)];
375
+ this.scrollToSlide(c, p() ? "auto" : t);
376
+ }
377
+ scrollToSlide(e, t = "smooth") {
378
+ this.pendingSlideChange = !0, window.requestAnimationFrame(() => {
379
+ if (!this.scrollContainer) return;
380
+ let n = this.scrollContainer, r = n.getBoundingClientRect(), i = e.getBoundingClientRect(), a = i.left - r.left, o = i.top - r.top;
381
+ a || o ? (this.pendingSlideChange = !0, n.scrollTo({
382
+ left: a + n.scrollLeft,
383
+ top: o + n.scrollTop,
384
+ behavior: t
385
+ })) : this.pendingSlideChange = !1;
386
+ });
387
+ }
388
+ render() {
389
+ let { slidesPerMove: t, scrolling: n } = this, r = this.getPageCount(), i = this.getCurrentPage(), a = this.canScrollPrev(), o = this.canScrollNext(), s = this.localize.dir() === "ltr";
390
+ return e`
413
391
  <div part="base" class="carousel">
414
392
  <div
415
393
  id="scroll-container"
416
394
  part="scroll-container"
417
- class="${g({
418
- carousel__slides: !0,
419
- "carousel__slides--horizontal": this.orientation === "horizontal",
420
- "carousel__slides--vertical": this.orientation === "vertical",
421
- "carousel__slides--dragging": this.dragging
422
- })}"
395
+ class="${d({
396
+ carousel__slides: !0,
397
+ "carousel__slides--horizontal": this.orientation === "horizontal",
398
+ "carousel__slides--vertical": this.orientation === "vertical",
399
+ "carousel__slides--dragging": this.dragging
400
+ })}"
423
401
  style="--slides-per-page: ${this.slidesPerPage};"
424
- aria-busy="${e ? "true" : "false"}"
402
+ aria-busy="${n ? "true" : "false"}"
425
403
  aria-atomic="true"
426
404
  tabindex="0"
427
405
  @keydown=${this.handleKeyDown}
@@ -433,172 +411,135 @@ var l = class extends L {
433
411
  <slot></slot>
434
412
  </div>
435
413
 
436
- ${this.navigation ? p`
414
+ ${this.navigation ? e`
437
415
  <div part="navigation" class="carousel__navigation">
438
416
  <button
439
417
  part="navigation-button navigation-button--previous"
440
- class="${g({
441
- "carousel__navigation-button": !0,
442
- "carousel__navigation-button--previous": !0,
443
- "carousel__navigation-button--disabled": !o
444
- })}"
418
+ class="${d({
419
+ "carousel__navigation-button": !0,
420
+ "carousel__navigation-button--previous": !0,
421
+ "carousel__navigation-button--disabled": !a
422
+ })}"
445
423
  aria-label="${this.localize.term("previousSlide")}"
446
424
  aria-controls="scroll-container"
447
- aria-disabled="${o ? "false" : "true"}"
448
- @click=${o ? () => this.previous() : null}
425
+ aria-disabled="${a ? "false" : "true"}"
426
+ @click=${a ? () => this.previous() : null}
449
427
  >
450
428
  <slot name="previous-icon">
451
- <sl-icon library="system" name="${n ? "chevron-left" : "chevron-right"}"></sl-icon>
429
+ <sl-icon library="system" name="${s ? "chevron-left" : "chevron-right"}"></sl-icon>
452
430
  </slot>
453
431
  </button>
454
432
 
455
433
  <button
456
434
  part="navigation-button navigation-button--next"
457
- class=${g({
458
- "carousel__navigation-button": !0,
459
- "carousel__navigation-button--next": !0,
460
- "carousel__navigation-button--disabled": !a
461
- })}
435
+ class=${d({
436
+ "carousel__navigation-button": !0,
437
+ "carousel__navigation-button--next": !0,
438
+ "carousel__navigation-button--disabled": !o
439
+ })}
462
440
  aria-label="${this.localize.term("nextSlide")}"
463
441
  aria-controls="scroll-container"
464
- aria-disabled="${a ? "false" : "true"}"
465
- @click=${a ? () => this.next() : null}
442
+ aria-disabled="${o ? "false" : "true"}"
443
+ @click=${o ? () => this.next() : null}
466
444
  >
467
445
  <slot name="next-icon">
468
- <sl-icon library="system" name="${n ? "chevron-right" : "chevron-left"}"></sl-icon>
446
+ <sl-icon library="system" name="${s ? "chevron-right" : "chevron-left"}"></sl-icon>
469
447
  </slot>
470
448
  </button>
471
449
  </div>
472
450
  ` : ""}
473
- ${this.pagination ? p`
451
+ ${this.pagination ? e`
474
452
  <div part="pagination" role="tablist" class="carousel__pagination">
475
- ${x(z(i), (r) => {
476
- const d = r === s;
477
- return p`
453
+ ${v(y(r), (n) => {
454
+ let a = n === i;
455
+ return e`
478
456
  <button
479
- part="pagination-item ${d ? "pagination-item--active" : ""}"
480
- class="${g({
481
- "carousel__pagination-item": !0,
482
- "carousel__pagination-item--active": d
483
- })}"
457
+ part="pagination-item ${a ? "pagination-item--active" : ""}"
458
+ class="${d({
459
+ "carousel__pagination-item": !0,
460
+ "carousel__pagination-item--active": a
461
+ })}"
484
462
  role="tab"
485
- id="tab-${r + 1}"
486
- aria-controls="slide-${r + 1}"
487
- aria-selected="${d ? "true" : "false"}"
488
- aria-label="${d ? this.localize.term("slideNum", r + 1) : this.localize.term("goToSlide", r + 1, i)}"
489
- tabindex=${d ? "0" : "-1"}
490
- @click=${() => this.goToSlide(r * t)}
463
+ id="tab-${n + 1}"
464
+ aria-controls="slide-${n + 1}"
465
+ aria-selected="${a ? "true" : "false"}"
466
+ aria-label="${a ? this.localize.term("slideNum", n + 1) : this.localize.term("goToSlide", n + 1, r)}"
467
+ tabindex=${a ? "0" : "-1"}
468
+ @click=${() => this.goToSlide(n * t)}
491
469
  @keydown=${this.handleKeyDown}
492
470
  ></button>
493
471
  `;
494
- })}
472
+ })}
495
473
  </div>
496
474
  ` : ""}
497
475
  </div>
498
476
  `;
499
- }
477
+ }
500
478
  };
501
- l.styles = [E, $];
502
- l.dependencies = { "sl-icon": C };
503
- c([
504
- h({ type: Boolean, reflect: !0 })
505
- ], l.prototype, "loop", 2);
506
- c([
507
- h({ type: Boolean, reflect: !0 })
508
- ], l.prototype, "navigation", 2);
509
- c([
510
- h({ type: Boolean, reflect: !0 })
511
- ], l.prototype, "pagination", 2);
512
- c([
513
- h({ type: Boolean, reflect: !0 })
514
- ], l.prototype, "autoplay", 2);
515
- c([
516
- h({ type: Number, attribute: "autoplay-interval" })
517
- ], l.prototype, "autoplayInterval", 2);
518
- c([
519
- h({ type: Number, attribute: "slides-per-page" })
520
- ], l.prototype, "slidesPerPage", 2);
521
- c([
522
- h({ type: Number, attribute: "slides-per-move" })
523
- ], l.prototype, "slidesPerMove", 2);
524
- c([
525
- h()
526
- ], l.prototype, "orientation", 2);
527
- c([
528
- h({ type: Boolean, reflect: !0, attribute: "mouse-dragging" })
529
- ], l.prototype, "mouseDragging", 2);
530
- c([
531
- y(".carousel__slides")
532
- ], l.prototype, "scrollContainer", 2);
533
- c([
534
- y(".carousel__pagination")
535
- ], l.prototype, "paginationContainer", 2);
536
- c([
537
- v()
538
- ], l.prototype, "activeSlide", 2);
539
- c([
540
- v()
541
- ], l.prototype, "scrolling", 2);
542
- c([
543
- v()
544
- ], l.prototype, "dragging", 2);
545
- c([
546
- k({ passive: !0 })
547
- ], l.prototype, "handleScroll", 1);
548
- c([
549
- u("loop", { waitUntilFirstUpdate: !0 }),
550
- u("slidesPerPage", { waitUntilFirstUpdate: !0 })
551
- ], l.prototype, "initializeSlides", 1);
552
- c([
553
- u("activeSlide")
554
- ], l.prototype, "handleSlideChange", 1);
555
- c([
556
- u("slidesPerMove")
557
- ], l.prototype, "updateSlidesSnap", 1);
558
- c([
559
- u("autoplay")
560
- ], l.prototype, "handleAutoplayChange", 1);
561
- var j = l;
562
- l.define("sl-carousel");
563
- var M = (t, e) => {
564
- let i = 0;
565
- return function(...s) {
566
- window.clearTimeout(i), i = window.setTimeout(() => {
567
- t.call(this, ...s);
568
- }, e);
569
- };
570
- }, b = (t, e, i) => {
571
- const s = t[e];
572
- t[e] = function(...o) {
573
- s.call(this, ...o), i.call(this, s, ...o);
574
- };
479
+ b.styles = [o, _], b.dependencies = { "sl-icon": l }, s([i({
480
+ type: Boolean,
481
+ reflect: !0
482
+ })], b.prototype, "loop", 2), s([i({
483
+ type: Boolean,
484
+ reflect: !0
485
+ })], b.prototype, "navigation", 2), s([i({
486
+ type: Boolean,
487
+ reflect: !0
488
+ })], b.prototype, "pagination", 2), s([i({
489
+ type: Boolean,
490
+ reflect: !0
491
+ })], b.prototype, "autoplay", 2), s([i({
492
+ type: Number,
493
+ attribute: "autoplay-interval"
494
+ })], b.prototype, "autoplayInterval", 2), s([i({
495
+ type: Number,
496
+ attribute: "slides-per-page"
497
+ })], b.prototype, "slidesPerPage", 2), s([i({
498
+ type: Number,
499
+ attribute: "slides-per-move"
500
+ })], b.prototype, "slidesPerMove", 2), s([i()], b.prototype, "orientation", 2), s([i({
501
+ type: Boolean,
502
+ reflect: !0,
503
+ attribute: "mouse-dragging"
504
+ })], b.prototype, "mouseDragging", 2), s([a(".carousel__slides")], b.prototype, "scrollContainer", 2), s([a(".carousel__pagination")], b.prototype, "paginationContainer", 2), s([n()], b.prototype, "activeSlide", 2), s([n()], b.prototype, "scrolling", 2), s([n()], b.prototype, "dragging", 2), s([r({ passive: !0 })], b.prototype, "handleScroll", 1), s([u("loop", { waitUntilFirstUpdate: !0 }), u("slidesPerPage", { waitUntilFirstUpdate: !0 })], b.prototype, "initializeSlides", 1), s([u("activeSlide")], b.prototype, "handleSlideChange", 1), s([u("slidesPerMove")], b.prototype, "updateSlidesSnap", 1), s([u("autoplay")], b.prototype, "handleAutoplayChange", 1);
505
+ //#endregion
506
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.TGG3OU34.js
507
+ var x = b;
508
+ b.define("sl-carousel");
509
+ //#endregion
510
+ //#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZH2AND3P.js
511
+ var S = (e, t) => {
512
+ let n = 0;
513
+ return function(...r) {
514
+ window.clearTimeout(n), n = window.setTimeout(() => {
515
+ e.call(this, ...r);
516
+ }, t);
517
+ };
518
+ }, C = (e, t, n) => {
519
+ let r = e[t];
520
+ e[t] = function(...e) {
521
+ r.call(this, ...e), n.call(this, r, ...e);
522
+ };
575
523
  };
576
524
  (() => {
577
- if (typeof window > "u")
578
- return;
579
- if (!("onscrollend" in window)) {
580
- const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakMap(), s = (a) => {
581
- for (const n of a.changedTouches)
582
- e.add(n.identifier);
583
- }, o = (a) => {
584
- for (const n of a.changedTouches)
585
- e.delete(n.identifier);
586
- };
587
- document.addEventListener("touchstart", s, !0), document.addEventListener("touchend", o, !0), document.addEventListener("touchcancel", o, !0), b(EventTarget.prototype, "addEventListener", function(a, n) {
588
- if (n !== "scrollend") return;
589
- const r = M(() => {
590
- e.size ? r() : this.dispatchEvent(new Event("scrollend"));
591
- }, 100);
592
- a.call(this, "scroll", r, { passive: !0 }), i.set(this, r);
593
- }), b(EventTarget.prototype, "removeEventListener", function(a, n) {
594
- if (n !== "scrollend") return;
595
- const r = i.get(this);
596
- r && a.call(this, "scroll", r, { passive: !0 });
597
- });
598
- }
525
+ if (!(typeof window > "u") && !("onscrollend" in window)) {
526
+ let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = (t) => {
527
+ for (let n of t.changedTouches) e.add(n.identifier);
528
+ }, r = (t) => {
529
+ for (let n of t.changedTouches) e.delete(n.identifier);
530
+ };
531
+ document.addEventListener("touchstart", n, !0), document.addEventListener("touchend", r, !0), document.addEventListener("touchcancel", r, !0), C(EventTarget.prototype, "addEventListener", function(n, r) {
532
+ if (r !== "scrollend") return;
533
+ let i = S(() => {
534
+ e.size ? i() : this.dispatchEvent(new Event("scrollend"));
535
+ }, 100);
536
+ n.call(this, "scroll", i, { passive: !0 }), t.set(this, i);
537
+ }), C(EventTarget.prototype, "removeEventListener", function(e, n) {
538
+ if (n !== "scrollend") return;
539
+ let r = t.get(this);
540
+ r && e.call(this, "scroll", r, { passive: !0 });
541
+ });
542
+ }
599
543
  })();
600
- export {
601
- m as a,
602
- j as c,
603
- k as t
604
- };
544
+ //#endregion
545
+ export { h as n, x as t };