@visitscotland/component-library 5.71.4 → 5.72.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/dist/components/components/accordion/Accordion.vue.d.ts +3 -2
  2. package/dist/components/components/accordion/components/AccordionItem.vue.d.ts +19 -7
  3. package/dist/components/components/accordion/components/AccordionToggle.vue.d.ts +3 -2
  4. package/dist/components/components/address/Address.vue.d.ts +3 -2
  5. package/dist/components/components/alert/Alert.vue.d.ts +3 -2
  6. package/dist/components/components/article/Article.vue.d.ts +3 -2
  7. package/dist/components/components/article/components/ArticleSection.vue.d.ts +3 -2
  8. package/dist/components/components/article/components/ArticleSidebar.vue.d.ts +3 -2
  9. package/dist/components/components/article-details/ArticleDetails.vue.d.ts +3 -2
  10. package/dist/components/components/back-to-top/BackToTop.vue.d.ts +36 -8
  11. package/dist/components/components/backdrop/Backdrop.vue.d.ts +3 -2
  12. package/dist/components/components/badge/Badge.vue.d.ts +3 -2
  13. package/dist/components/components/banner/Banner.vue.d.ts +3 -2
  14. package/dist/components/components/body/Body.vue.d.ts +3 -2
  15. package/dist/components/components/breadcrumb/Breadcrumb.vue.d.ts +3 -2
  16. package/dist/components/components/breadcrumb/components/BreadcrumbItem.vue.d.ts +3 -2
  17. package/dist/components/components/button/Button.vue.d.ts +3 -2
  18. package/dist/components/components/button-toggle-group/ButtonToggleGroup.vue.d.ts +3 -2
  19. package/dist/components/components/canned-search/CannedSearch.vue.d.ts +3 -2
  20. package/dist/components/components/canned-search/components/CannedSearchBadges.vue.d.ts +3 -2
  21. package/dist/components/components/canned-search/components/CannedSearchCategories.vue.d.ts +3 -2
  22. package/dist/components/components/canned-search/components/CannedSearchCuisines.vue.d.ts +3 -2
  23. package/dist/components/components/canned-search/components/CannedSearchDates.vue.d.ts +3 -2
  24. package/dist/components/components/canned-search/components/CannedSearchDuration.vue.d.ts +3 -2
  25. package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +3 -2
  26. package/dist/components/components/canned-search/components/CannedSearchPrice.vue.d.ts +3 -2
  27. package/dist/components/components/canned-search/components/CannedSearchProductCard.vue.d.ts +3 -2
  28. package/dist/components/components/canned-search/components/CannedSearchStars.vue.d.ts +3 -2
  29. package/dist/components/components/canned-search/components/CannedSearchSubHeading.vue.d.ts +3 -2
  30. package/dist/components/components/canned-search/components/CannedSearchSummaryBox.vue.d.ts +3 -2
  31. package/dist/components/components/canned-search/components/CannedSearchTourDeparts.vue.d.ts +3 -2
  32. package/dist/components/components/canned-search/components/CannedSearchTourRuns.vue.d.ts +3 -2
  33. package/dist/components/components/caption/Caption.vue.d.ts +3 -2
  34. package/dist/components/components/caption/components/CaptionImageMap.vue.d.ts +3 -2
  35. package/dist/components/components/carbon-calculator/CarbonCalculator.vue.d.ts +3 -2
  36. package/dist/components/components/carbon-calculator/components/CarbonCalculatorIntro.vue.d.ts +3 -2
  37. package/dist/components/components/carbon-calculator/components/CarbonCalculatorQuestion.vue.d.ts +3 -2
  38. package/dist/components/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +3 -2
  39. package/dist/components/components/carbon-calculator/components/CarbonCalculatorRunningTotal.vue.d.ts +3 -2
  40. package/dist/components/components/carbon-calculator/components/CarbonCalculatorTip.vue.d.ts +3 -2
  41. package/dist/components/components/card/Card.vue.d.ts +3 -2
  42. package/dist/components/components/card-group/CardGroup.vue.d.ts +3 -2
  43. package/dist/components/components/carousel/Carousel.vue.d.ts +3 -2
  44. package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +3 -2
  45. package/dist/components/components/checkbox/Checkbox.vue.d.ts +3 -2
  46. package/dist/components/components/content-swiper/ContentSwiper.vue.d.ts +6 -3
  47. package/dist/components/components/description-list/DescriptionList.vue.d.ts +3 -2
  48. package/dist/components/components/description-list/components/DescriptionListItem.vue.d.ts +3 -2
  49. package/dist/components/components/detail/Detail.vue.d.ts +3 -2
  50. package/dist/components/components/divider/Divider.vue.d.ts +18 -6
  51. package/dist/components/components/dropdown/components/DropdownItem.vue.d.ts +3 -2
  52. package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +3 -2
  53. package/dist/components/components/event-card/EventCard.vue.d.ts +3 -2
  54. package/dist/components/components/filter/VsFilter.vue.d.ts +37 -9
  55. package/dist/components/components/filter/components/VsFilterSection.vue.d.ts +37 -8
  56. package/dist/components/components/footer/Footer.vue.d.ts +3 -2
  57. package/dist/components/components/footer/components/FooterAccordionItem.vue.d.ts +19 -7
  58. package/dist/components/components/footer/components/FooterCopyright.vue.d.ts +3 -2
  59. package/dist/components/components/footer/components/FooterNavList.vue.d.ts +3 -2
  60. package/dist/components/components/footer/components/FooterNavListItem.vue.d.ts +3 -2
  61. package/dist/components/components/footer/components/FooterSocialItem.vue.d.ts +3 -2
  62. package/dist/components/components/footer/components/FooterSocialMenu.vue.d.ts +3 -2
  63. package/dist/components/components/footer/components/FooterUtilityList.vue.d.ts +3 -2
  64. package/dist/components/components/form/Form.vue.d.ts +41 -2
  65. package/dist/components/components/global-menu/GlobalMenu.vue.d.ts +3 -2
  66. package/dist/components/components/global-menu/components/GlobalMenuLanguageItem.vue.d.ts +3 -2
  67. package/dist/components/components/grid/Col.vue.d.ts +3 -2
  68. package/dist/components/components/grid/Container.vue.d.ts +3 -2
  69. package/dist/components/components/grid/Row.vue.d.ts +2 -1
  70. package/dist/components/components/heading/Heading.vue.d.ts +3 -2
  71. package/dist/components/components/hero-section/HeroSection.vue.d.ts +3 -2
  72. package/dist/components/components/hero-section/components/HeroSectionImage.vue.d.ts +3 -2
  73. package/dist/components/components/html-error/HtmlError.vue.d.ts +3 -2
  74. package/dist/components/components/icon/Icon.vue.d.ts +3 -2
  75. package/dist/components/components/icon-list/IconList.vue.d.ts +3 -2
  76. package/dist/components/components/icon-list/components/IconListItem.vue.d.ts +3 -2
  77. package/dist/components/components/illustrated-map/IllustratedMap.vue.d.ts +3 -2
  78. package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +3 -2
  79. package/dist/components/components/img/Img.vue.d.ts +3 -2
  80. package/dist/components/components/input/Input.vue.d.ts +3 -2
  81. package/dist/components/components/itineraries/Itinerary.vue.d.ts +3 -2
  82. package/dist/components/components/itineraries/components/ItineraryBorderOverlapWrapper.vue.d.ts +2 -1
  83. package/dist/components/components/itineraries/components/ItineraryDay.vue.d.ts +19 -7
  84. package/dist/components/components/itineraries/components/ItineraryStop.vue.d.ts +3 -2
  85. package/dist/components/components/itineraries/components/ItineraryStopInfo.vue.d.ts +3 -2
  86. package/dist/components/components/itineraries/components/ItineraryTips.vue.d.ts +2 -1
  87. package/dist/components/components/link/Link.vue.d.ts +3 -2
  88. package/dist/components/components/link-list/LinkList.vue.d.ts +3 -2
  89. package/dist/components/components/link-list/components/LinkListItem.vue.d.ts +3 -2
  90. package/dist/components/components/list/List.vue.d.ts +3 -2
  91. package/dist/components/components/listicle/ListicleItem.vue.d.ts +3 -2
  92. package/dist/components/components/loading-spinner/LoadingSpinner.vue.d.ts +3 -2
  93. package/dist/components/components/map/Map.vue.d.ts +3 -2
  94. package/dist/components/components/map/components/MapMarker.vue.d.ts +3 -2
  95. package/dist/components/components/map-marker-icon/MapMarkerIcon.vue.d.ts +3 -2
  96. package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +3 -2
  97. package/dist/components/components/map-with-sidebar/components/MapWithSidebarButtons.vue.d.ts +3 -2
  98. package/dist/components/components/map-with-sidebar/components/MapWithSidebarCategory.vue.d.ts +3 -2
  99. package/dist/components/components/map-with-sidebar/components/MapWithSidebarControls.vue.d.ts +3 -2
  100. package/dist/components/components/map-with-sidebar/components/MapWithSidebarDetail.vue.d.ts +3 -2
  101. package/dist/components/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +3 -2
  102. package/dist/components/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +3 -2
  103. package/dist/components/components/map-with-sidebar/components/MapWithSidebarSubcategory.vue.d.ts +3 -2
  104. package/dist/components/components/media-caption/MediaCaption.vue.d.ts +3 -2
  105. package/dist/components/components/mega-nav/MegaNav.vue.d.ts +3 -2
  106. package/dist/components/components/mega-nav/components/MegaNavAccordionItem.vue.d.ts +19 -7
  107. package/dist/components/components/mega-nav/components/MegaNavDropdown.vue.d.ts +3 -2
  108. package/dist/components/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +3 -2
  109. package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +3 -2
  110. package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +3 -2
  111. package/dist/components/components/mega-nav/components/MegaNavList.vue.d.ts +3 -2
  112. package/dist/components/components/mega-nav/components/MegaNavListItem.vue.d.ts +3 -2
  113. package/dist/components/components/mega-nav/components/MegaNavMobileMenu.vue.d.ts +3 -2
  114. package/dist/components/components/mega-nav/components/MegaNavStaticLink.vue.d.ts +3 -2
  115. package/dist/components/components/mega-nav/components/MegaNavTopMenu.vue.d.ts +3 -2
  116. package/dist/components/components/megalinks/Megalinks.vue.d.ts +3 -2
  117. package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +3 -2
  118. package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +3 -2
  119. package/dist/components/components/megalinks/components/megalink-single-image/MegalinkSingleImage.vue.d.ts +3 -2
  120. package/dist/components/components/modal/Modal.vue.d.ts +3 -2
  121. package/dist/components/components/module-wrapper/ModuleWrapper.vue.d.ts +3 -2
  122. package/dist/components/components/navigation-bar/NavigationBar.vue.d.ts +3 -2
  123. package/dist/components/components/navigation-bar/components/NavigationBarMenu.vue.d.ts +3 -2
  124. package/dist/components/components/navigation-bar/components/NavigationBarMenuItem.vue.d.ts +3 -2
  125. package/dist/components/components/navigation-bar/components/NavigationBarSearch.vue.d.ts +3 -2
  126. package/dist/components/components/navigation-bar/components/NavigationBarSidebar.vue.d.ts +3 -2
  127. package/dist/components/components/navigation-bar/components/NavigationBarSidebarButton.vue.d.ts +3 -2
  128. package/dist/components/components/number-input/NumberInput.vue.d.ts +3 -2
  129. package/dist/components/components/page-intro/PageIntro.vue.d.ts +3 -2
  130. package/dist/components/components/pagination/VsPagination.vue.d.ts +84 -15
  131. package/dist/components/components/panel/Panel.vue.d.ts +3 -2
  132. package/dist/components/components/product-search/ProductSearch.vue.d.ts +4 -22
  133. package/dist/components/components/product-search/components/Autocomplete.vue.d.ts +2 -1
  134. package/dist/components/components/product-search/components/DateInput.vue.d.ts +2 -1
  135. package/dist/components/components/product-search/components/DateRange.vue.d.ts +2 -1
  136. package/dist/components/components/product-search/components/ProductSearchEmbed.vue.d.ts +4 -22
  137. package/dist/components/components/progress-bar/ProgressBar.vue.d.ts +3 -2
  138. package/dist/components/components/quote/Quote.vue.d.ts +3 -2
  139. package/dist/components/components/radio-button/RadioButton.vue.d.ts +3 -2
  140. package/dist/components/components/recaptcha/Recaptcha.vue.d.ts +3 -2
  141. package/dist/components/components/section-header/SectionHeader.vue.d.ts +3 -2
  142. package/dist/components/components/select/Select.vue.d.ts +3 -2
  143. package/dist/components/components/site-search/SiteSearch.vue.d.ts +3 -2
  144. package/dist/components/components/site-search/components/SiteSearchForm.vue.d.ts +3 -2
  145. package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +3 -2
  146. package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +19 -7
  147. package/dist/components/components/skip-to/SkipTo.vue.d.ts +3 -2
  148. package/dist/components/components/social-credit-link/SocialCreditLink.vue.d.ts +3 -2
  149. package/dist/components/components/social-share/components/SocialShareItem.vue.d.ts +3 -2
  150. package/dist/components/components/spotlight-section/SpotlightSection.vue.d.ts +3 -2
  151. package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +3 -2
  152. package/dist/components/components/stretched-link-card/components/StretchedLinkPanels.vue.d.ts +3 -2
  153. package/dist/components/components/styled-list/StyledList.vue.d.ts +39 -8
  154. package/dist/components/components/styled-list/components/StyledListItem.vue.d.ts +87 -12
  155. package/dist/components/components/summary-box/SummaryBoxList.vue.d.ts +2 -1
  156. package/dist/components/components/summary-box/components/SummaryBoxDistanceListItem.vue.d.ts +3 -2
  157. package/dist/components/components/summary-box/components/SummaryBoxListItem.vue.d.ts +3 -2
  158. package/dist/components/components/svg/Svg.vue.d.ts +3 -2
  159. package/dist/components/components/svg-link/SvgLink.vue.d.ts +3 -2
  160. package/dist/components/components/table/Table.vue.d.ts +3 -2
  161. package/dist/components/components/table/components/TableBody.vue.d.ts +3 -2
  162. package/dist/components/components/table/components/TableDataCell.vue.d.ts +3 -2
  163. package/dist/components/components/table/components/TableFooter.vue.d.ts +3 -2
  164. package/dist/components/components/table/components/TableHead.vue.d.ts +3 -2
  165. package/dist/components/components/table/components/TableHeaderCell.vue.d.ts +3 -2
  166. package/dist/components/components/table/components/TableRow.vue.d.ts +3 -2
  167. package/dist/components/components/tabs/Tabs.vue.d.ts +3 -2
  168. package/dist/components/components/tabs/components/TabItem.vue.d.ts +3 -2
  169. package/dist/components/components/tag/Tag.vue.d.ts +3 -2
  170. package/dist/components/components/tag-manager-wrapper/TagManagerWrapper.vue.d.ts +3 -2
  171. package/dist/components/components/textarea/Textarea.vue.d.ts +3 -2
  172. package/dist/components/components/toggle-button/ToggleButton.vue.d.ts +3 -2
  173. package/dist/components/components/tooltip/Tooltip.vue.d.ts +3 -2
  174. package/dist/components/components/tourism-info/TourismInfo.vue.d.ts +3 -2
  175. package/dist/components/components/video/Video.vue.d.ts +3 -2
  176. package/dist/components/components/video/components/VideoHtml5.vue.d.ts +3 -2
  177. package/dist/components/components/video/components/VideoYoutube.vue.d.ts +3 -2
  178. package/dist/components/components/video-caption/VideoCaption.vue.d.ts +3 -2
  179. package/dist/components/components/warning/Warning.vue.d.ts +3 -2
  180. package/dist/components/custom-components/federated-search/FederatedSearch.vue.d.ts +212 -27
  181. package/dist/components/custom-components/federated-search/components/FedFilter.vue.d.ts +103 -14
  182. package/dist/components/custom-components/federated-search/components/FedSearchInput.vue.d.ts +122 -18
  183. package/dist/components/custom-components/federated-search/components/FedSearchSort.vue.d.ts +80 -15
  184. package/dist/components/custom-components/federated-search/index.d.ts +431 -148
  185. package/dist/components/custom-components/maps/MainMap.vue.d.ts +253 -30
  186. package/dist/components/custom-components/maps/components/MapFeaturedLocation.vue.d.ts +12 -6
  187. package/dist/components/custom-components/maps/components/MapFeaturedLocationItem.vue.d.ts +14 -6
  188. package/dist/components/custom-components/maps/components/MapFilter.vue.d.ts +2 -1
  189. package/dist/components/custom-components/maps/components/MapSidebar.vue.d.ts +7 -5
  190. package/dist/components/custom-components/maps/index.d.ts +173 -39
  191. package/dist/components/vs-component-library.js +10 -10
  192. package/dist/components/vs-component-library.mjs +938 -918
  193. package/package.json +6 -6
  194. package/dist/components/components/dropdown/Dropdown.vue.d.ts +0 -947
  195. package/dist/components/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +0 -1276
  196. package/dist/components/components/navigation-bar/components/NavigationBarMenuDropdown.vue.d.ts +0 -954
  197. package/dist/components/components/social-share/SocialShare.vue.d.ts +0 -1701
@@ -137,9 +137,9 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
137
137
  let g = !1;
138
138
  onMounted(() => {
139
139
  if (g = !0, !t.show && i) {
140
- const U = b("show", { cancelable: !0 });
140
+ const U = v("show", { cancelable: !0 });
141
141
  if (n("show", U), U.defaultPrevented) {
142
- n("show-prevented", b("show-prevented"));
142
+ n("show-prevented", v("show-prevented"));
143
143
  return;
144
144
  }
145
145
  f.value = !0, e.value || (s = !0, e.value = !0), c.value = !0, d.value = !0, z.value = !0, me.value = !0, ue.value = !0, l.value = !0, r.showFn?.();
@@ -153,7 +153,7 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
153
153
  }), useEventListener(a, "bv-toggle", () => {
154
154
  e.value = !e.value;
155
155
  }, { passive: !0 });
156
- const b = (U, Q = {}) => new BvTriggerableEvent(U, {
156
+ const v = (U, Q = {}) => new BvTriggerableEvent(U, {
157
157
  cancelable: !1,
158
158
  target: a?.value || null,
159
159
  relatedTarget: null,
@@ -161,26 +161,26 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
161
161
  ...Q,
162
162
  componentId: o?.value
163
163
  });
164
- let v, _, k, C, T;
164
+ let _, b, k, C, T;
165
165
  const D = (U = !1) => {
166
- if (l.value && !_ && !C) return Promise.resolve(!0);
167
- if (T = U, l.value && !_ && C) return C;
166
+ if (l.value && !b && !C) return Promise.resolve(!0);
167
+ if (T = U, l.value && !b && C) return C;
168
168
  C = new Promise((de) => {
169
169
  k = de;
170
170
  });
171
- const Q = b("show", { cancelable: !0 });
172
- return n("show", Q), Q.defaultPrevented ? (n("show-prevented", b("show-prevented")), z.value && (z.value = !1), e.value && !u && (s = !0, nextTick$1(() => {
171
+ const Q = v("show", { cancelable: !0 });
172
+ return n("show", Q), Q.defaultPrevented ? (n("show-prevented", v("show-prevented")), z.value && (z.value = !1), e.value && !u && (s = !0, nextTick$1(() => {
173
173
  e.value = !1;
174
- })), k?.("show-prevented"), C) : (_ && (clearTimeout(_), _ = void 0), c.value = !0, d.value = !0, requestAnimationFrame(() => {
174
+ })), k?.("show-prevented"), C) : (b && (clearTimeout(b), b = void 0), c.value = !0, d.value = !0, requestAnimationFrame(() => {
175
175
  if (f.value || t.delay === void 0) {
176
176
  if (!g) return;
177
- v = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
177
+ _ = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
178
178
  e.value = !0;
179
179
  }));
180
180
  return;
181
181
  }
182
- v = setTimeout(() => {
183
- g && (v = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
182
+ _ = setTimeout(() => {
183
+ g && (_ = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
184
184
  e.value = !0;
185
185
  })));
186
186
  }, typeof t.delay == "number" ? t.delay : t.delay?.show || 0);
@@ -188,29 +188,29 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
188
188
  };
189
189
  let I;
190
190
  const E = (U, Q) => {
191
- if (!l.value && !v && !c.value) return Promise.resolve("");
191
+ if (!l.value && !_ && !c.value) return Promise.resolve("");
192
192
  C || (C = new Promise((Z) => {
193
193
  k = Z;
194
194
  })), typeof U != "string" && (U = void 0), I = U;
195
- const de = b("hide", {
195
+ const de = v("hide", {
196
196
  cancelable: !0,
197
197
  trigger: U
198
- }), G = b(U || "ignore", {
198
+ }), G = v(U || "ignore", {
199
199
  cancelable: !0,
200
200
  trigger: U
201
201
  });
202
- return U === "backdrop" && t.noCloseOnBackdrop || U === "esc" && t.noCloseOnEsc ? (n("hide-prevented", b("hide-prevented", { trigger: U })), k?.("hide-prevented"), C) : (v && (clearTimeout(v), v = void 0), U && !Q && n(U, G), n("hide", de), de.defaultPrevented || G.defaultPrevented ? (n("hide-prevented", b("hide-prevented", { trigger: U })), e.value || nextTick$1(() => {
202
+ return U === "backdrop" && t.noCloseOnBackdrop || U === "esc" && t.noCloseOnEsc ? (n("hide-prevented", v("hide-prevented", { trigger: U })), k?.("hide-prevented"), C) : (_ && (clearTimeout(_), _ = void 0), U && !Q && n(U, G), n("hide", de), de.defaultPrevented || G.defaultPrevented ? (n("hide-prevented", v("hide-prevented", { trigger: U })), e.value || nextTick$1(() => {
203
203
  s = !0, e.value = !0;
204
- }), k?.("hide-prevented"), C) : (se.value = !1, v && (clearTimeout(v), v = void 0, p.value || (c.value = !1), d.value = !1), _ = setTimeout(() => {
205
- g && (_ = void 0, A.value = !0, l.value = !1, r.hideFn?.(), e.value && (s = !0, e.value = u ? 0 : !1));
204
+ }), k?.("hide-prevented"), C) : (se.value = !1, _ && (clearTimeout(_), _ = void 0, p.value || (c.value = !1), d.value = !1), b = setTimeout(() => {
205
+ g && (b = void 0, A.value = !0, l.value = !1, r.hideFn?.(), e.value && (s = !0, e.value = u ? 0 : !1));
206
206
  }, f.value ? 0 : typeof t.delay == "number" ? t.delay : t.delay?.hide || 0), C));
207
207
  }, O = useThrottleFn((U) => E(U), 500), F = useThrottleFn(() => D(), 500), N = (U = !1) => {
208
- const Q = b("toggle", { cancelable: !0 });
209
- return n("toggle", Q), Q.defaultPrevented ? (n("toggle-prevented", b("toggle-prevented")), Promise.resolve("toggle-prevented")) : l.value ? E("toggle-function", !0) : D(U);
208
+ const Q = v("toggle", { cancelable: !0 });
209
+ return n("toggle", Q), Q.defaultPrevented ? (n("toggle-prevented", v("toggle-prevented")), Promise.resolve("toggle-prevented")) : l.value ? E("toggle-function", !0) : D(U);
210
210
  }, M = () => {
211
- const U = b("toggle", { cancelable: !0 });
211
+ const U = v("toggle", { cancelable: !0 });
212
212
  if (n("toggle", U), U.defaultPrevented) {
213
- n("toggle-prevented", b("toggle-prevented"));
213
+ n("toggle-prevented", v("toggle-prevented"));
214
214
  return;
215
215
  }
216
216
  l.value ? E("toggle-trigger", !0) : D();
@@ -245,7 +245,7 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
245
245
  U.el.removeEventListener(U.trigger, M);
246
246
  });
247
247
  }), onUnmounted(() => {
248
- g = !1, clearTimeout(v), clearTimeout(_), v = void 0, _ = void 0;
248
+ g = !1, clearTimeout(_), clearTimeout(b), _ = void 0, b = void 0;
249
249
  });
250
250
  const w = ref(!1), L = () => {
251
251
  t.lazy === !0 && (w.value = !0);
@@ -265,7 +265,7 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
265
265
  f.value = !1;
266
266
  }), p.value && (p.value = !1), requestAnimationFrame(() => {
267
267
  se.value = !0, nextTick$1(() => {
268
- n("shown", b("shown", { cancelable: !1 }));
268
+ n("shown", v("shown", { cancelable: !1 }));
269
269
  });
270
270
  }), T || (k?.(!0), C = void 0, k = void 0);
271
271
  }
@@ -281,7 +281,7 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
281
281
  z.value = !1;
282
282
  }, ...[r.transitionProps?.onLeave ?? noop, t.transitionProps?.onLeave ?? noop].flat()], ie = [
283
283
  () => {
284
- n("hidden", b("hidden", {
284
+ n("hidden", v("hidden", {
285
285
  trigger: I,
286
286
  cancelable: !1
287
287
  }));
@@ -315,7 +315,7 @@ var useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
315
315
  toggle: N,
316
316
  throttleHide: O,
317
317
  throttleShow: F,
318
- buildTriggerableEvent: b,
318
+ buildTriggerableEvent: v,
319
319
  computedNoAnimation: m,
320
320
  localNoAnimation: readonly(f),
321
321
  setLocalNoAnimation: (U) => {
@@ -689,9 +689,9 @@ function _objectSpread2$2(e) {
689
689
  }
690
690
  function _regenerator() {
691
691
  var e, t, n = typeof Symbol == "function" ? Symbol : {}, a = n.iterator || "@@iterator", o = n.toStringTag || "@@toStringTag";
692
- function r(p, m, g, b) {
693
- var v = m && m.prototype instanceof i ? m : i, _ = Object.create(v.prototype);
694
- return _regeneratorDefine(_, "_invoke", (function(k, C, T) {
692
+ function r(p, m, g, v) {
693
+ var _ = m && m.prototype instanceof i ? m : i, b = Object.create(_.prototype);
694
+ return _regeneratorDefine(b, "_invoke", (function(k, C, T) {
695
695
  var D, I, E, O = 0, F = T || [], N = !1, M = {
696
696
  p: 0,
697
697
  n: 0,
@@ -734,7 +734,7 @@ function _regenerator() {
734
734
  done: N
735
735
  };
736
736
  };
737
- })(p, g, b), !0), _;
737
+ })(p, g, v), !0), b;
738
738
  }
739
739
  var s = {};
740
740
  function i() {
@@ -951,7 +951,7 @@ var activeFocusTraps = {
951
951
  }, g = function(S) {
952
952
  var V = d("setReturnFocus", { params: [S] });
953
953
  return V || (V === !1 ? !1 : S);
954
- }, b = function(S) {
954
+ }, v = function(S) {
955
955
  var V = S.target, P = S.event, B = S.isBackward, $ = B === void 0 ? !1 : B;
956
956
  V = V || getActualTarget(P), f();
957
957
  var w = null;
@@ -979,7 +979,7 @@ var activeFocusTraps = {
979
979
  }
980
980
  } else w = d("fallbackFocus");
981
981
  return w;
982
- }, v = function(S) {
982
+ }, _ = function(S) {
983
983
  if (!(c(getActualTarget(S), S) >= 0)) {
984
984
  if (valueOrHandler(r.clickOutsideDeactivates, S)) {
985
985
  i.deactivate({ returnFocus: r.returnFocusOnDeactivate });
@@ -987,7 +987,7 @@ var activeFocusTraps = {
987
987
  }
988
988
  valueOrHandler(r.allowOutsideClick, S) || S.preventDefault();
989
989
  }
990
- }, _ = function(S) {
990
+ }, b = function(S) {
991
991
  var V = getActualTarget(S), P = c(V, S) >= 0;
992
992
  if (P || V instanceof Document)
993
993
  P && (s.mostRecentlyFocusedNode = V);
@@ -1009,7 +1009,7 @@ var activeFocusTraps = {
1009
1009
  });
1010
1010
  }) || ($ = !1);
1011
1011
  else $ = !1;
1012
- $ && (B = b({
1012
+ $ && (B = v({
1013
1013
  target: s.mostRecentlyFocusedNode,
1014
1014
  isBackward: r.isKeyBackward(s.recentNavEvent)
1015
1015
  })), m(B || s.mostRecentlyFocusedNode || u());
@@ -1018,7 +1018,7 @@ var activeFocusTraps = {
1018
1018
  }, k = function(S) {
1019
1019
  var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1020
1020
  s.recentNavEvent = S;
1021
- var P = b({
1021
+ var P = v({
1022
1022
  event: S,
1023
1023
  isBackward: V
1024
1024
  });
@@ -1037,10 +1037,10 @@ var activeFocusTraps = {
1037
1037
  s.delayInitialFocusTimer = delay(function() {
1038
1038
  m(u()), V();
1039
1039
  });
1040
- }) : (S = Promise.resolve(), m(u())), a.addEventListener("focusin", _, !0), a.addEventListener("mousedown", v, {
1040
+ }) : (S = Promise.resolve(), m(u())), a.addEventListener("focusin", b, !0), a.addEventListener("mousedown", _, {
1041
1041
  capture: !0,
1042
1042
  passive: !1
1043
- }), a.addEventListener("touchstart", v, {
1043
+ }), a.addEventListener("touchstart", _, {
1044
1044
  capture: !0,
1045
1045
  passive: !1
1046
1046
  }), a.addEventListener("click", D, {
@@ -1085,7 +1085,7 @@ var activeFocusTraps = {
1085
1085
  }), s.adjacentElements = P;
1086
1086
  }, O = function() {
1087
1087
  if (s.active)
1088
- return a.removeEventListener("focusin", _, !0), a.removeEventListener("mousedown", v, !0), a.removeEventListener("touchstart", v, !0), a.removeEventListener("click", D, !0), a.removeEventListener("keydown", C, !0), a.removeEventListener("keydown", T), i;
1088
+ return a.removeEventListener("focusin", b, !0), a.removeEventListener("mousedown", _, !0), a.removeEventListener("touchstart", _, !0), a.removeEventListener("click", D, !0), a.removeEventListener("keydown", C, !0), a.removeEventListener("keydown", T), i;
1089
1089
  }, F = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(function(S) {
1090
1090
  S.some(function(V) {
1091
1091
  return Array.from(V.removedNodes).some(function(P) {
@@ -1498,11 +1498,11 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1498
1498
  if (!J) return;
1499
1499
  J?.focus(), J.tagName && J.tagName.toLowerCase() === "input" && typeof J.select == "function" && J.select();
1500
1500
  }
1501
- }, b = () => {
1501
+ }, v = () => {
1502
1502
  a.noTrap && a.focus !== !1 && m && (m?.focus(), m = null);
1503
- }, { showRef: v, renderRef: _, renderBackdropRef: k, hide: C, show: T, toggle: D, computedNoAnimation: I, transitionProps: E, backdropTransitionProps: O, isLeaving: F, isVisible: N, trapActive: M, contentShowing: S, backdropReady: V, backdropVisible: P } = useShowHide(i, a, o, l, s, { transitionProps: {
1503
+ }, { showRef: _, renderRef: b, renderBackdropRef: k, hide: C, show: T, toggle: D, computedNoAnimation: I, transitionProps: E, backdropTransitionProps: O, isLeaving: F, isVisible: N, trapActive: M, contentShowing: S, backdropReady: V, backdropVisible: P } = useShowHide(i, a, o, l, s, { transitionProps: {
1504
1504
  onAfterEnter: g,
1505
- onAfterLeave: b
1505
+ onAfterLeave: v
1506
1506
  } }), { needsFallback: B } = useActivatedFocusTrap({
1507
1507
  element: l,
1508
1508
  isActive: M,
@@ -1518,7 +1518,7 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1518
1518
  }, {
1519
1519
  target: l,
1520
1520
  passive: !0
1521
- }), useSafeScrollLock(v, () => a.bodyScrolling);
1521
+ }), useSafeScrollLock(_, () => a.bodyScrolling);
1522
1522
  const $ = computed$1(() => !isEmptySlot(r["header-close"])), w = computed$1(() => [a.dialogClass, {
1523
1523
  "modal-fullscreen": a.fullscreen === !0,
1524
1524
  [`modal-fullscreen-${a.fullscreen}-down`]: typeof a.fullscreen == "string",
@@ -1542,22 +1542,22 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1542
1542
  textVariant: a.footerTextVariant,
1543
1543
  variant: a.footerVariant,
1544
1544
  borderVariant: a.footerBorderVariant
1545
- })), ee = computed$1(() => [a.footerClass, W.value]), X = computed$1(() => [a.titleClass, { "visually-hidden": a.titleVisuallyHidden }]), ne = computed$1(() => a.cancelDisabled || a.busy), ie = computed$1(() => a.okDisabled || a.busy), { activePosition: le, activeModalCount: se, stackWithoutSelf: me } = useModalManager(v, i.value), ue = computed$1(() => ({
1545
+ })), ee = computed$1(() => [a.footerClass, W.value]), X = computed$1(() => [a.titleClass, { "visually-hidden": a.titleVisuallyHidden }]), ne = computed$1(() => a.cancelDisabled || a.busy), ie = computed$1(() => a.okDisabled || a.busy), { activePosition: le, activeModalCount: se, stackWithoutSelf: me } = useModalManager(_, i.value), ue = computed$1(() => ({
1546
1546
  [`stack-position-${le?.value ?? 0}`]: !0,
1547
1547
  [`stack-inverse-position-${(se?.value ?? 1) - 1 - (le?.value ?? 0)}`]: !0
1548
1548
  }));
1549
1549
  watch(me, (Z, J) => {
1550
- Z.length > J.length && v.value === !0 && a.noStacking && C();
1550
+ Z.length > J.length && _.value === !0 && a.noStacking && C();
1551
1551
  });
1552
1552
  const pe = ref(getModalZIndex(l.value ?? getSafeDocument()?.body));
1553
1553
  onMounted(() => {
1554
- watch(_, (Z) => {
1554
+ watch(b, (Z) => {
1555
1555
  Z && nextTick$1(() => {
1556
1556
  l.value && (pe.value = getModalZIndex(l.value));
1557
1557
  });
1558
1558
  }, { immediate: !0 });
1559
1559
  });
1560
- const U = computed$1(() => v.value || F.value ? pe.value - ((se?.value ?? 0) * 2 - (le?.value ?? 0) * 2) : pe.value), Q = computed$1(() => ({
1560
+ const U = computed$1(() => _.value || F.value ? pe.value - ((se?.value ?? 0) * 2 - (le?.value ?? 0) * 2) : pe.value), Q = computed$1(() => ({
1561
1561
  "z-index": U.value,
1562
1562
  "--b-position": le?.value ?? 0,
1563
1563
  "--b-inverse-position": (se?.value ?? 1) - 1 - (le?.value ?? 0),
@@ -1581,20 +1581,20 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1581
1581
  ok: () => {
1582
1582
  C("ok");
1583
1583
  },
1584
- active: v.value,
1585
- visible: v.value
1584
+ active: _.value,
1585
+ visible: _.value
1586
1586
  }));
1587
1587
  return t({
1588
1588
  hide: C,
1589
1589
  id: s,
1590
1590
  show: T,
1591
1591
  toggle: D,
1592
- visible: v
1592
+ visible: _
1593
1593
  }), (Z, J) => (openBlock(), createBlock(ConditionalTeleport_default, {
1594
1594
  to: unref(a).teleportTo,
1595
1595
  disabled: unref(a).teleportDisabled
1596
1596
  }, {
1597
- default: withCtx(() => [unref(_) || unref(S) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(E), { appear: i.value || unref(a).visible }), {
1597
+ default: withCtx(() => [unref(b) || unref(S) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(E), { appear: i.value || unref(a).visible }), {
1598
1598
  default: withCtx(() => [withDirectives(createElementVNode("div", mergeProps({
1599
1599
  id: unref(s),
1600
1600
  ref: "_element",
@@ -1683,7 +1683,7 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1683
1683
  height: "0",
1684
1684
  overflow: "hidden"
1685
1685
  }
1686
- }, null, 512)) : createCommentVNode("", !0)], 16, _hoisted_1$2c), [[vShow, unref(v) && (unref(V) && unref(a).backdropFirst || !unref(a).backdropFirst)]])]),
1686
+ }, null, 512)) : createCommentVNode("", !0)], 16, _hoisted_1$2c), [[vShow, unref(_) && (unref(V) && unref(a).backdropFirst || !unref(a).backdropFirst)]])]),
1687
1687
  _: 3
1688
1688
  }, 16, ["appear"])) : createCommentVNode("", !0), unref(a).noBackdrop ? createCommentVNode("", !0) : renderSlot(Z.$slots, "backdrop", normalizeProps(mergeProps({ key: 1 }, G.value)), () => [unref(k) ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, unref(O))), {
1689
1689
  default: withCtx(() => [withDirectives(createElementVNode("div", {
@@ -1694,7 +1694,7 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1694
1694
  }]),
1695
1695
  style: normalizeStyle(de.value),
1696
1696
  onClick: J[5] || (J[5] = (fe) => unref(C)("backdrop"))
1697
- }, null, 6), [[vShow, unref(v) || unref(F) && unref(a).backdropFirst && !unref(I)]])]),
1697
+ }, null, 6), [[vShow, unref(_) || unref(F) && unref(a).backdropFirst && !unref(I)]])]),
1698
1698
  _: 1
1699
1699
  }, 16)) : createCommentVNode("", !0)])]),
1700
1700
  _: 3
@@ -1866,7 +1866,7 @@ var normalizeInput = (e, t) => {
1866
1866
  e.autofocus && (m.value = !0);
1867
1867
  });
1868
1868
  });
1869
- const b = (D) => {
1869
+ const v = (D) => {
1870
1870
  t.value && t.value.value !== D && (t.value.value = D);
1871
1871
  };
1872
1872
  return {
@@ -1879,7 +1879,7 @@ var normalizeInput = (e, t) => {
1879
1879
  D.preventDefault();
1880
1880
  return;
1881
1881
  }
1882
- p(E), E !== I && b(E);
1882
+ p(E), E !== I && v(E);
1883
1883
  },
1884
1884
  onChange: (D) => {
1885
1885
  const { value: I } = D.target, E = g(I, D);
@@ -1893,7 +1893,7 @@ var normalizeInput = (e, t) => {
1893
1893
  onBlur: (D) => {
1894
1894
  if (!a.lazy && !e.lazyFormatter && !a.trim && r.value <= 0) return;
1895
1895
  const { value: I } = D.target, E = g(I, D, !0), O = a.trim ? E.trim() : E;
1896
- f.cancel(), n.value !== O && p(O, !0, !0), O !== I && b(O);
1896
+ f.cancel(), n.value !== O && p(O, !0, !0), O !== I && v(O);
1897
1897
  },
1898
1898
  focus: () => {
1899
1899
  c.value || (m.value = !0);
@@ -1979,13 +1979,13 @@ var normalizeInput = (e, t) => {
1979
1979
  }),
1980
1980
  emits: ["update:modelValue"],
1981
1981
  setup(e, { expose: t }) {
1982
- const n = useDefaults(e, "BFormInput"), [a, o] = useModel(e, "modelValue", { set: (v) => normalizeInput(v, o) }), r = useTemplateRef("_input"), s = inject(inputGroupKey, !1), { computedId: i, computedAriaInvalid: l, onInput: c, onChange: d, onBlur: u, stateClass: f, focus: p, blur: m, isDisabled: g } = useFormInput(n, r, a, o), b = computed$1(() => {
1983
- const v = n.type === "range", _ = n.type === "color";
1982
+ const n = useDefaults(e, "BFormInput"), [a, o] = useModel(e, "modelValue", { set: (_) => normalizeInput(_, o) }), r = useTemplateRef("_input"), s = inject(inputGroupKey, !1), { computedId: i, computedAriaInvalid: l, onInput: c, onChange: d, onBlur: u, stateClass: f, focus: p, blur: m, isDisabled: g } = useFormInput(n, r, a, o), v = computed$1(() => {
1983
+ const _ = n.type === "range", b = n.type === "color";
1984
1984
  return [f.value, {
1985
- "form-range": v,
1986
- "form-control": _ || !n.plaintext && !v || v && s,
1987
- "form-control-color": _,
1988
- "form-control-plaintext": n.plaintext && !v && !_,
1985
+ "form-range": _,
1986
+ "form-control": b || !n.plaintext && !_ || _ && s,
1987
+ "form-control-color": b,
1988
+ "form-control-plaintext": n.plaintext && !_ && !b,
1989
1989
  [`form-control-${n.size}`]: !!n.size
1990
1990
  }];
1991
1991
  });
@@ -1994,11 +1994,11 @@ var normalizeInput = (e, t) => {
1994
1994
  element: r,
1995
1995
  flushDebounce: u,
1996
1996
  focus: p
1997
- }), (v, _) => (openBlock(), createElementBlock("input", {
1997
+ }), (_, b) => (openBlock(), createElementBlock("input", {
1998
1998
  id: unref(i),
1999
1999
  ref: "_input",
2000
2000
  value: unref(a),
2001
- class: normalizeClass(b.value),
2001
+ class: normalizeClass(v.value),
2002
2002
  name: unref(n).name || void 0,
2003
2003
  form: unref(n).form || void 0,
2004
2004
  type: unref(n).type,
@@ -2013,9 +2013,9 @@ var normalizeInput = (e, t) => {
2013
2013
  list: unref(n).type !== "password" ? unref(n).list : void 0,
2014
2014
  "aria-required": unref(n).required || void 0,
2015
2015
  "aria-invalid": unref(l),
2016
- onInput: _[0] || (_[0] = (...k) => unref(c) && unref(c)(...k)),
2017
- onChange: _[1] || (_[1] = (...k) => unref(d) && unref(d)(...k)),
2018
- onBlur: _[2] || (_[2] = (...k) => unref(u) && unref(u)(...k))
2016
+ onInput: b[0] || (b[0] = (...k) => unref(c) && unref(c)(...k)),
2017
+ onChange: b[1] || (b[1] = (...k) => unref(d) && unref(d)(...k)),
2018
+ onBlur: b[2] || (b[2] = (...k) => unref(u) && unref(u)(...k))
2019
2019
  }, null, 42, _hoisted_1$2a));
2020
2020
  }
2021
2021
  }), useFormSelect = (e, t) => {
@@ -2777,31 +2777,31 @@ var normalizeInput = (e, t) => {
2777
2777
  "toggle-prevented"
2778
2778
  ], ["update:modelValue"]),
2779
2779
  setup(e, { expose: t, emit: n }) {
2780
- const a = useDefaults(e, "BPopover"), o = n, r = useSlots(), s = useAttrs(), i = useModel(e, "modelValue"), l = useId$1(() => a.id, "popover"), c = ref(!1), d = useTemplateRef("_element"), u = useTemplateRef("_content"), f = useTemplateRef("_arrow"), p = useTemplateRef("_placeholder"), m = ref(null), g = ref(null), b = computed$1(() => a.placement.startsWith("auto")), v = useToNumber(() => a.offset ?? NaN), _ = computed$1(() => isBoundary(a.boundary) ? a.boundary : void 0), k = computed$1(() => isRootBoundary(a.boundary) ? a.boundary : void 0), C = ref({}), T = computed$1(() => {
2780
+ const a = useDefaults(e, "BPopover"), o = n, r = useSlots(), s = useAttrs(), i = useModel(e, "modelValue"), l = useId$1(() => a.id, "popover"), c = ref(!1), d = useTemplateRef("_element"), u = useTemplateRef("_content"), f = useTemplateRef("_arrow"), p = useTemplateRef("_placeholder"), m = ref(null), g = ref(null), v = computed$1(() => a.placement.startsWith("auto")), _ = useToNumber(() => a.offset ?? NaN), b = computed$1(() => isBoundary(a.boundary) ? a.boundary : void 0), k = computed$1(() => isRootBoundary(a.boundary) ? a.boundary : void 0), C = ref({}), T = computed$1(() => {
2781
2781
  if (a.floatingMiddleware !== void 0) return a.floatingMiddleware;
2782
- const G = [offset$2(a.offset !== null ? v.value : a.tooltip ? 6 : 8)];
2783
- return !a.noFlip && !b.value && G.push(flip$2({
2784
- boundary: _.value,
2782
+ const G = [offset$2(a.offset !== null ? _.value : a.tooltip ? 6 : 8)];
2783
+ return !a.noFlip && !v.value && G.push(flip$2({
2784
+ boundary: b.value,
2785
2785
  rootBoundary: k.value,
2786
2786
  padding: a.boundaryPadding
2787
- })), b.value && G.push(autoPlacement({
2787
+ })), v.value && G.push(autoPlacement({
2788
2788
  alignment: a.placement.split("-")[1] || void 0,
2789
- boundary: _.value,
2789
+ boundary: b.value,
2790
2790
  rootBoundary: k.value,
2791
2791
  padding: a.boundaryPadding
2792
2792
  })), a.noShift || G.push(shift$2({
2793
- boundary: _.value,
2793
+ boundary: b.value,
2794
2794
  rootBoundary: k.value,
2795
2795
  padding: a.boundaryPadding
2796
2796
  })), a.noHide || G.push(hide({
2797
- boundary: _.value,
2797
+ boundary: b.value,
2798
2798
  rootBoundary: k.value,
2799
2799
  padding: a.boundaryPadding
2800
2800
  })), a.inline && G.push(inline()), G.push(arrow$2({
2801
2801
  element: f,
2802
2802
  padding: 10
2803
2803
  })), a.noSize || G.push(size({
2804
- boundary: _.value,
2804
+ boundary: b.value,
2805
2805
  rootBoundary: k.value,
2806
2806
  padding: a.boundaryPadding,
2807
2807
  apply({ availableWidth: Z, availableHeight: J }) {
@@ -2812,7 +2812,7 @@ var normalizeInput = (e, t) => {
2812
2812
  }
2813
2813
  })), G;
2814
2814
  }), { floatingStyles: D, middlewareData: I, placement: E, update: O } = useFloating(m, d, {
2815
- placement: computed$1(() => b.value ? void 0 : a.placement),
2815
+ placement: computed$1(() => v.value ? void 0 : a.placement),
2816
2816
  middleware: T,
2817
2817
  strategy: toRef(() => a.strategy)
2818
2818
  }), F = ref({ position: "absolute" });
@@ -3166,15 +3166,15 @@ var normalizeInput = (e, t) => {
3166
3166
  ], ["update:modelValue"]),
3167
3167
  setup(e, { expose: t, emit: n }) {
3168
3168
  const a = useDefaults(e, "BDropdown"), o = n, r = useId$1(() => a.id, "dropdown"), s = useModel(e, "modelValue"), i = inject(inputGroupKey, !1), l = inject(buttonGroupKey, !1), c = useToNumber(computed$1(() => typeof a.offset == "string" || typeof a.offset == "number" ? a.offset : NaN)), d = useTemplateRef("_floating"), u = useTemplateRef("_button"), f = useTemplateRef("_splitButton"), p = computed$1(() => isBoundary(a.boundary) ? a.boundary : void 0), m = computed$1(() => isRootBoundary(a.boundary) ? a.boundary : void 0), g = computed$1(() => a.split ? u.value : f.value);
3169
- let b;
3170
- const { showRef: v, renderRef: _, hide: k, show: C, toggle: T, computedNoAnimation: D, transitionProps: I, contentShowing: E, isVisible: O, isActive: F } = useShowHide(s, a, o, g, r, {
3169
+ let v;
3170
+ const { showRef: _, renderRef: b, hide: k, show: C, toggle: T, computedNoAnimation: D, transitionProps: I, contentShowing: E, isVisible: O, isActive: F } = useShowHide(s, a, o, g, r, {
3171
3171
  showFn: () => {
3172
3172
  V(), nextTick$1(() => {
3173
- b = autoUpdate$1(g.value, d.value, V, { animationFrame: !1 });
3173
+ v = autoUpdate$1(g.value, d.value, V, { animationFrame: !1 });
3174
3174
  });
3175
3175
  },
3176
3176
  hideFn: () => {
3177
- b && (b(), b = void 0);
3177
+ v && (v(), v = void 0);
3178
3178
  }
3179
3179
  }), N = computed$1(() => [{
3180
3180
  show: O.value,
@@ -3190,7 +3190,7 @@ var normalizeInput = (e, t) => {
3190
3190
  });
3191
3191
  const M = (z, j) => {
3192
3192
  if (d.value?.contains(z.target?.closest("form")) || /input|select|option|textarea|form/i.test(z.target?.tagName)) return;
3193
- if (z.preventDefault(), !v.value) {
3193
+ if (z.preventDefault(), !_.value) {
3194
3194
  C();
3195
3195
  const X = setInterval(() => {
3196
3196
  O.value && (clearInterval(X), nextTick$1(() => M(z, j)));
@@ -3246,7 +3246,7 @@ var normalizeInput = (e, t) => {
3246
3246
  "nav-link": a.isNav,
3247
3247
  "dropdown-toggle": !a.split,
3248
3248
  "dropdown-toggle-no-caret": a.noCaret && !a.split,
3249
- show: a.split ? void 0 : v.value
3249
+ show: a.split ? void 0 : _.value
3250
3250
  }]), L = () => {
3251
3251
  T();
3252
3252
  }, A = (z) => {
@@ -3257,10 +3257,10 @@ var normalizeInput = (e, t) => {
3257
3257
  L();
3258
3258
  };
3259
3259
  onClickOutside(d, () => {
3260
- v.value && (a.autoClose === !0 || a.autoClose === "outside") && k();
3260
+ _.value && (a.autoClose === !0 || a.autoClose === "outside") && k();
3261
3261
  }, { ignore: [u, f] });
3262
3262
  const R = () => {
3263
- v.value && (a.autoClose === !0 || a.autoClose === "inside") && k();
3263
+ _.value && (a.autoClose === !0 || a.autoClose === "inside") && k();
3264
3264
  };
3265
3265
  return watch(O, () => {
3266
3266
  V();
@@ -3273,7 +3273,7 @@ var normalizeInput = (e, t) => {
3273
3273
  show: C,
3274
3274
  hide: k,
3275
3275
  toggle: T,
3276
- visible: readonly(v),
3276
+ visible: readonly(_),
3277
3277
  isNav: toRef(() => a.isNav)
3278
3278
  }), (z, j) => (openBlock(), createBlock(ConditionalWrapper_default, {
3279
3279
  skip: unref(i) || unref(a).noWrapper,
@@ -3290,7 +3290,7 @@ var normalizeInput = (e, t) => {
3290
3290
  disabled: unref(a).splitDisabled || unref(a).disabled,
3291
3291
  type: unref(a).splitButtonType,
3292
3292
  "aria-label": unref(a).ariaLabel,
3293
- "aria-expanded": unref(a).split ? void 0 : unref(v),
3293
+ "aria-expanded": unref(a).split ? void 0 : unref(_),
3294
3294
  "aria-haspopup": unref(a).split ? void 0 : "menu",
3295
3295
  href: unref(a).split ? unref(a).splitHref : void 0,
3296
3296
  icon: unref(a).icon,
@@ -3319,8 +3319,8 @@ var normalizeInput = (e, t) => {
3319
3319
  variant: unref(a).variant,
3320
3320
  size: unref(a).size,
3321
3321
  disabled: unref(a).disabled,
3322
- class: [[unref(a).toggleClass, { show: unref(v) }], "dropdown-toggle-split dropdown-toggle"],
3323
- "aria-expanded": unref(v),
3322
+ class: [[unref(a).toggleClass, { show: unref(_) }], "dropdown-toggle-split dropdown-toggle"],
3323
+ "aria-expanded": unref(_),
3324
3324
  "aria-haspopup": "menu"
3325
3325
  }, unref(a).toggleAttrs, { onClick: L }), {
3326
3326
  default: withCtx(() => [createElementVNode("span", _hoisted_1$27, [renderSlot(z.$slots, "toggle-text", {}, () => [createTextVNode(toDisplayString(unref(a).toggleText), 1)])])]),
@@ -3337,14 +3337,14 @@ var normalizeInput = (e, t) => {
3337
3337
  to: unref(a).teleportTo,
3338
3338
  disabled: !unref(a).teleportTo || unref(a).teleportDisabled
3339
3339
  }, {
3340
- default: withCtx(() => [unref(_) || unref(E) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(I), { appear: s.value || unref(a).visible }), {
3340
+ default: withCtx(() => [unref(b) || unref(E) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(I), { appear: s.value || unref(a).visible }), {
3341
3341
  default: withCtx(() => [withDirectives(createElementVNode("ul", {
3342
3342
  id: unref(r) + "-menu",
3343
3343
  ref: "_floating",
3344
3344
  style: normalizeStyle([
3345
3345
  unref(P),
3346
3346
  S.value,
3347
- { display: unref(v) || unref(F) ? "block" : "none" }
3347
+ { display: unref(_) || unref(F) ? "block" : "none" }
3348
3348
  ]),
3349
3349
  class: normalizeClass(["dropdown-menu overflow-auto b-floating-size", [unref(a).menuClass, N.value]]),
3350
3350
  "aria-labelledby": unref(r),
@@ -3355,11 +3355,11 @@ var normalizeInput = (e, t) => {
3355
3355
  id: unref(r),
3356
3356
  hide: unref(k),
3357
3357
  show: unref(C),
3358
- visible: unref(v),
3358
+ visible: unref(_),
3359
3359
  click: R,
3360
3360
  toggle: L,
3361
- active: unref(v)
3362
- }) : createCommentVNode("", !0)], 14, _hoisted_2$1u), [[vShow, unref(v)]])]),
3361
+ active: unref(_)
3362
+ }) : createCommentVNode("", !0)], 14, _hoisted_2$1u), [[vShow, unref(_)]])]),
3363
3363
  _: 3
3364
3364
  }, 16, ["appear"])) : createCommentVNode("", !0)]),
3365
3365
  _: 3
@@ -3422,10 +3422,10 @@ var normalizeInput = (e, t) => {
3422
3422
  emits: ["click"],
3423
3423
  setup(e, { emit: t }) {
3424
3424
  const n = useDefaults(e, "BDropdownItem"), a = t, o = useAttrs(), r = computed$1(() => {
3425
- const { class: g, ...b } = o;
3425
+ const { class: g, ...v } = o;
3426
3426
  return {
3427
3427
  wrapperClass: g,
3428
- dropdownItemAttrs: b
3428
+ dropdownItemAttrs: v
3429
3429
  };
3430
3430
  }), { computedLink: s, computedLinkProps: i } = useBLinkHelper(n), l = useColorVariantClasses(computed$1(() => ({ textVariant: n.variant }))), c = computed$1(() => [
3431
3431
  n.linkClass,
@@ -3437,7 +3437,7 @@ var normalizeInput = (e, t) => {
3437
3437
  ]), d = computed$1(() => s.value ? BLink_default : n.href ? "a" : "button"), u = inject(collapseInjectionKey, null), f = inject(dropdownInjectionKey, null), p = inject(navbarInjectionKey, null), m = (g) => {
3438
3438
  a("click", g), p !== null && p?.noAutoClose?.value !== !0 && u?.hide?.(), f?.hide?.();
3439
3439
  };
3440
- return (g, b) => (openBlock(), createElementBlock("li", mergeProps({
3440
+ return (g, v) => (openBlock(), createElementBlock("li", mergeProps({
3441
3441
  role: "presentation",
3442
3442
  class: r.value.wrapperClass
3443
3443
  }, unref(n).wrapperAttrs), [(openBlock(), createBlock(resolveDynamicComponent(d.value), mergeProps({
@@ -3576,13 +3576,13 @@ var normalizeInput = (e, t) => {
3576
3576
  [`form-control-${n.size}`]: n.size !== void 0 && n.plain,
3577
3577
  "form-select": !n.plain,
3578
3578
  [`form-select-${n.size}`]: n.size !== void 0 && !n.plain
3579
- }]), f = computed$1(() => !n.plain && i.value > 0 ? i.value : void 0), p = useAriaInvalid(() => n.ariaInvalid, () => n.state), { normalizedOptions: m, isComplex: g } = useFormSelect(() => n.options, n), b = computed$1(() => m.value), v = computed$1({
3579
+ }]), f = computed$1(() => !n.plain && i.value > 0 ? i.value : void 0), p = useAriaInvalid(() => n.ariaInvalid, () => n.state), { normalizedOptions: m, isComplex: g } = useFormSelect(() => n.options, n), v = computed$1(() => m.value), _ = computed$1({
3580
3580
  get: () => a.value,
3581
- set: (_) => {
3582
- a.value = _;
3581
+ set: (b) => {
3582
+ a.value = b;
3583
3583
  }
3584
3584
  });
3585
- return provide(formSelectKey, { modelValue: readonly(v) }), t({
3585
+ return provide(formSelectKey, { modelValue: readonly(_) }), t({
3586
3586
  blur: () => {
3587
3587
  d.value = !1;
3588
3588
  },
@@ -3590,10 +3590,10 @@ var normalizeInput = (e, t) => {
3590
3590
  focus: () => {
3591
3591
  d.value = !0;
3592
3592
  }
3593
- }), (_, k) => withDirectives((openBlock(), createElementBlock("select", {
3593
+ }), (b, k) => withDirectives((openBlock(), createElementBlock("select", {
3594
3594
  id: unref(o),
3595
3595
  ref: "_input",
3596
- "onUpdate:modelValue": k[0] || (k[0] = (C) => v.value = C),
3596
+ "onUpdate:modelValue": k[0] || (k[0] = (C) => _.value = C),
3597
3597
  class: normalizeClass(u.value),
3598
3598
  name: unref(n).name,
3599
3599
  form: unref(n).form || void 0,
@@ -3604,8 +3604,8 @@ var normalizeInput = (e, t) => {
3604
3604
  "aria-required": unref(n).required || void 0,
3605
3605
  "aria-invalid": unref(p)
3606
3606
  }, [
3607
- renderSlot(_.$slots, "first"),
3608
- (openBlock(!0), createElementBlock(Fragment, null, renderList(b.value, (C, T) => (openBlock(), createElementBlock(Fragment, { key: T }, [unref(g)(C) ? (openBlock(), createBlock(BFormSelectOptionGroup_default, {
3607
+ renderSlot(b.$slots, "first"),
3608
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(v.value, (C, T) => (openBlock(), createElementBlock(Fragment, { key: T }, [unref(g)(C) ? (openBlock(), createBlock(BFormSelectOptionGroup_default, {
3609
3609
  key: 0,
3610
3610
  label: C.label,
3611
3611
  options: C.options,
@@ -3622,11 +3622,11 @@ var normalizeInput = (e, t) => {
3622
3622
  key: 1,
3623
3623
  ref_for: !0
3624
3624
  }, C), {
3625
- default: withCtx(() => [renderSlot(_.$slots, "option", mergeProps({ ref_for: !0 }, C), () => [createTextVNode(toDisplayString(C.text), 1)])]),
3625
+ default: withCtx(() => [renderSlot(b.$slots, "option", mergeProps({ ref_for: !0 }, C), () => [createTextVNode(toDisplayString(C.text), 1)])]),
3626
3626
  _: 2
3627
3627
  }, 1040))], 64))), 128)),
3628
- renderSlot(_.$slots, "default")
3629
- ], 10, _hoisted_1$25)), [[vModelSelect, v.value]]);
3628
+ renderSlot(b.$slots, "default")
3629
+ ], 10, _hoisted_1$25)), [[vModelSelect, _.value]]);
3630
3630
  }
3631
3631
  }), BFormSelect_default = /* @__PURE__ */ defineComponent({
3632
3632
  __name: "BFormSelect",
@@ -3732,13 +3732,13 @@ var normalizeInput = (e, t) => {
3732
3732
  o.value = null;
3733
3733
  return;
3734
3734
  }
3735
- const u = getComputedStyle(e.value), f = Number.parseFloat(u.lineHeight) || 1, p = (Number.parseFloat(u.borderTopWidth) || 0) + (Number.parseFloat(u.borderBottomWidth) || 0), m = (Number.parseFloat(u.paddingTop) || 0) + (Number.parseFloat(u.paddingBottom) || 0), g = p + m, b = f * i.value + g, v = e.value.style.height || u.height;
3735
+ const u = getComputedStyle(e.value), f = Number.parseFloat(u.lineHeight) || 1, p = (Number.parseFloat(u.borderTopWidth) || 0) + (Number.parseFloat(u.borderBottomWidth) || 0), m = (Number.parseFloat(u.paddingTop) || 0) + (Number.parseFloat(u.paddingBottom) || 0), g = p + m, v = f * i.value + g, _ = e.value.style.height || u.height;
3736
3736
  if (o.value = "auto", await nextTick$1(), !e.value) return;
3737
- const { scrollHeight: _ } = e.value;
3738
- if (o.value = v, await nextTick$1(), !e.value) return;
3739
- const k = Math.max((_ - m) / f, 2), C = Math.min(Math.max(k, i.value), l.value), T = Math.max(Math.ceil(C * f + g), b);
3740
- if (toValue(n) && (Number.parseFloat(v.toString()) || 0) > T) {
3741
- o.value = v;
3737
+ const { scrollHeight: b } = e.value;
3738
+ if (o.value = _, await nextTick$1(), !e.value) return;
3739
+ const k = Math.max((b - m) / f, 2), C = Math.min(Math.max(k, i.value), l.value), T = Math.max(Math.ceil(C * f + g), v);
3740
+ if (toValue(n) && (Number.parseFloat(_.toString()) || 0) > T) {
3741
+ o.value = _;
3742
3742
  return;
3743
3743
  }
3744
3744
  o.value = `${T}px`;
@@ -3834,13 +3834,13 @@ var normalizeInput = (e, t) => {
3834
3834
  c.value,
3835
3835
  n.plaintext ? "form-control-plaintext" : "form-control",
3836
3836
  { [`form-control-${n.size}`]: !!n.size }
3837
- ]), { computedStyles: b, onInput: v, computedRows: _ } = useTextareaResize(r, {
3837
+ ]), { computedStyles: v, onInput: _, computedRows: b } = useTextareaResize(r, {
3838
3838
  maxRows: () => n.maxRows,
3839
3839
  rows: () => n.rows,
3840
3840
  noAutoShrink: () => n.noAutoShrink
3841
3841
  }), k = computed$1(() => ({
3842
3842
  resize: n.noResize ? "none" : void 0,
3843
- ...n.maxRows || n.noAutoShrink ? b.value : void 0
3843
+ ...n.maxRows || n.noAutoShrink ? v.value : void 0
3844
3844
  }));
3845
3845
  return t({
3846
3846
  blur: p,
@@ -3861,11 +3861,11 @@ var normalizeInput = (e, t) => {
3861
3861
  readonly: unref(n).readonly || unref(n).plaintext,
3862
3862
  "aria-required": unref(n).required || void 0,
3863
3863
  "aria-invalid": unref(i),
3864
- rows: unref(_) || 2,
3864
+ rows: unref(b) || 2,
3865
3865
  style: normalizeStyle(k.value),
3866
3866
  wrap: unref(n).wrap || void 0,
3867
3867
  onInput: T[0] || (T[0] = (D) => {
3868
- unref(l)(D), unref(v)();
3868
+ unref(l)(D), unref(_)();
3869
3869
  }),
3870
3870
  onChange: T[1] || (T[1] = (...D) => unref(d) && unref(d)(...D)),
3871
3871
  onBlur: T[2] || (T[2] = (...D) => unref(u) && unref(u)(...D))
@@ -3990,7 +3990,7 @@ var normalizeInput = (e, t) => {
3990
3990
  nextTick$1(() => {
3991
3991
  a.focus !== !1 && !P.value && a.noTrap && unrefElement(u())?.focus();
3992
3992
  });
3993
- }, { showRef: p, renderRef: m, renderBackdropRef: g, hide: b, show: v, toggle: _, computedNoAnimation: k, contentShowing: C, transitionProps: T, backdropReady: D, backdropTransitionProps: I, backdropVisible: E, isVisible: O, buildTriggerableEvent: F, isLeaving: N, trapActive: M, setLocalNoAnimation: S } = useShowHide(s, a, o, l, i, { transitionProps: {
3993
+ }, { showRef: p, renderRef: m, renderBackdropRef: g, hide: v, show: _, toggle: b, computedNoAnimation: k, contentShowing: C, transitionProps: T, backdropReady: D, backdropTransitionProps: I, backdropVisible: E, isVisible: O, buildTriggerableEvent: F, isLeaving: N, trapActive: M, setLocalNoAnimation: S } = useShowHide(s, a, o, l, i, { transitionProps: {
3994
3994
  onAfterEnter: f,
3995
3995
  enterToClass: "showing",
3996
3996
  leaveToClass: "hiding",
@@ -4002,7 +4002,7 @@ var normalizeInput = (e, t) => {
4002
4002
  onMounted(() => {
4003
4003
  a.responsive !== void 0 && (P.value = !V.value, o("breakpoint", F("breakpoint"), P.value));
4004
4004
  }), useSafeScrollLock(p, () => a.bodyScrolling || P.value), onKeyStroke("Escape", () => {
4005
- b("esc");
4005
+ v("esc");
4006
4006
  }, {
4007
4007
  target: l,
4008
4008
  passive: !0
@@ -4031,9 +4031,9 @@ var normalizeInput = (e, t) => {
4031
4031
  ]), j = computed$1(() => ({ width: a.width })), W = computed$1(() => ({
4032
4032
  visible: O.value,
4033
4033
  placement: a.placement,
4034
- hide: b,
4035
- show: v,
4036
- toggle: _,
4034
+ hide: v,
4035
+ show: _,
4036
+ toggle: b,
4037
4037
  id: i.value,
4038
4038
  active: M.value
4039
4039
  }));
@@ -4053,9 +4053,9 @@ var normalizeInput = (e, t) => {
4053
4053
  P.value = X;
4054
4054
  }), o("breakpoint", F("breakpoint"), X), X ? o("show", F("show")) : o("hide", F("hide")));
4055
4055
  }), t({
4056
- hide: b,
4057
- show: v,
4058
- toggle: _,
4056
+ hide: v,
4057
+ show: _,
4058
+ toggle: b,
4059
4059
  isOpenByBreakpoint: P
4060
4060
  }), (ee, X) => (openBlock(), createBlock(ConditionalTeleport_default, {
4061
4061
  to: unref(a).teleportTo,
@@ -4082,14 +4082,14 @@ var normalizeInput = (e, t) => {
4082
4082
  }, [renderSlot(ee.$slots, "title", normalizeProps(guardReactiveProps(W.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])], 8, _hoisted_2$1t), unref(a).noHeaderClose ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [w.value ? (openBlock(), createBlock(BButton_default, mergeProps({
4083
4083
  key: 0,
4084
4084
  ref: "_close"
4085
- }, A.value, { onClick: X[0] || (X[0] = (ne) => unref(b)("close")) }), {
4085
+ }, A.value, { onClick: X[0] || (X[0] = (ne) => unref(v)("close")) }), {
4086
4086
  default: withCtx(() => [renderSlot(ee.$slots, "header-close", normalizeProps(guardReactiveProps(W.value)))]),
4087
4087
  _: 3
4088
4088
  }, 16)) : (openBlock(), createBlock(BCloseButton_default, mergeProps({
4089
4089
  key: 1,
4090
4090
  ref: "_close",
4091
4091
  "aria-label": unref(a).headerCloseLabel
4092
- }, A.value, { onClick: X[1] || (X[1] = (ne) => unref(b)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
4092
+ }, A.value, { onClick: X[1] || (X[1] = (ne) => unref(v)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
4093
4093
  createElementVNode("div", mergeProps({ class: ["offcanvas-body", unref(a).bodyClass] }, unref(a).bodyAttrs), [renderSlot(ee.$slots, "default", normalizeProps(guardReactiveProps(W.value)))], 16),
4094
4094
  R.value ? (openBlock(), createElementBlock("div", {
4095
4095
  key: 1,
@@ -4113,7 +4113,7 @@ var normalizeInput = (e, t) => {
4113
4113
  fade: !unref(k),
4114
4114
  show: unref(E) || unref(k)
4115
4115
  }]),
4116
- onClick: X[2] || (X[2] = (ne) => unref(b)("backdrop"))
4116
+ onClick: X[2] || (X[2] = (ne) => unref(v)("backdrop"))
4117
4117
  }, null, 2), [[vShow, $.value]])]),
4118
4118
  _: 1
4119
4119
  }, 16)) : createCommentVNode("", !0)])]),
@@ -4287,17 +4287,17 @@ var normalizeInput = (e, t) => {
4287
4287
  s && (m(), r.value && s.activateTab(l.value)), onUnmounted(() => {
4288
4288
  s && s.unregisterTab(l.value);
4289
4289
  });
4290
- const g = computed$1(() => s?.activeId.value === c.value), b = ref(g.value), v = computed$1(() => !!(s?.lazy.value || n.lazy)), _ = computed$1(() => g.value && !n.disabled), k = computed$1(() => _.value || !v.value || v.value && !n.unmountLazy && u.value);
4290
+ const g = computed$1(() => s?.activeId.value === c.value), v = ref(g.value), _ = computed$1(() => !!(s?.lazy.value || n.lazy)), b = computed$1(() => g.value && !n.disabled), k = computed$1(() => b.value || !_.value || _.value && !n.unmountLazy && u.value);
4291
4291
  watch(k, (T) => {
4292
4292
  T && !u.value && (u.value = !0);
4293
4293
  }), watch(g, (T) => {
4294
4294
  if (T) {
4295
4295
  r.value = !0, setTimeout(() => {
4296
- b.value = !0;
4296
+ v.value = !0;
4297
4297
  }, 0);
4298
4298
  return;
4299
4299
  }
4300
- b.value = !1, r.value = !1;
4300
+ v.value = !1, r.value = !1;
4301
4301
  }), watch(r, (T) => {
4302
4302
  if (n.disabled) {
4303
4303
  r.value = !1;
@@ -4314,11 +4314,11 @@ var normalizeInput = (e, t) => {
4314
4314
  const C = computed$1(() => [
4315
4315
  {
4316
4316
  active: g.value,
4317
- show: b.value,
4317
+ show: v.value,
4318
4318
  "card-body": s?.card.value && n.noBody === !1,
4319
4319
  fade: !s?.noFade.value
4320
4320
  },
4321
- b.value ? s?.activeTabClass.value : s?.inactiveTabClass.value,
4321
+ v.value ? s?.activeTabClass.value : s?.inactiveTabClass.value,
4322
4322
  s?.tabClass.value
4323
4323
  ]);
4324
4324
  return t({
@@ -4490,23 +4490,23 @@ var normalizeInput = (e, t) => {
4490
4490
  };
4491
4491
  });
4492
4492
  });
4493
- let m = !1, g = !1, b = !1, v = !1;
4494
- r.value > -1 && !s.value && !u.value && l.value.length > 0 ? (v = !0, b = !0) : r.value === -1 && s.value ? p.value.findIndex((B) => B.id === s.value) !== -1 ? r.value = p.value.findIndex((B) => B.id === s.value) : g = !0 : r.value > -1 && !s.value ? p.value[r.value]?.id ? s.value = p.value[r.value]?.id : b = !0 : r.value === -1 && !s.value && !c.value ? (r.value = p.value.findIndex((B) => B.disabled === void 0 || B.disabled === !1), s.value = p.value[r.value]?.id) : r.value === -1 && !s.value && c.value && (r.value = p.value.findIndex((B) => B.active !== void 0 && B.active !== !1 && (B.disabled === void 0 || B.disabled === !1)), s.value = p.value[r.value]?.id);
4495
- function _() {
4493
+ let m = !1, g = !1, v = !1, _ = !1;
4494
+ r.value > -1 && !s.value && !u.value && l.value.length > 0 ? (_ = !0, v = !0) : r.value === -1 && s.value ? p.value.findIndex((B) => B.id === s.value) !== -1 ? r.value = p.value.findIndex((B) => B.id === s.value) : g = !0 : r.value > -1 && !s.value ? p.value[r.value]?.id ? s.value = p.value[r.value]?.id : v = !0 : r.value === -1 && !s.value && !c.value ? (r.value = p.value.findIndex((B) => B.disabled === void 0 || B.disabled === !1), s.value = p.value[r.value]?.id) : r.value === -1 && !s.value && c.value && (r.value = p.value.findIndex((B) => B.active !== void 0 && B.active !== !1 && (B.disabled === void 0 || B.disabled === !1)), s.value = p.value[r.value]?.id);
4495
+ function b() {
4496
4496
  if (g) {
4497
4497
  const B = p.value.findIndex(($) => $.id === s.value);
4498
4498
  B !== -1 && nextTick$1(() => {
4499
4499
  r.value = B, g = !1;
4500
4500
  });
4501
4501
  }
4502
- if (b) {
4503
- if (v && i.value.length === 0) return;
4502
+ if (v) {
4503
+ if (_ && i.value.length === 0) return;
4504
4504
  r.value > -1 && p.value[r.value]?.id && nextTick$1(() => {
4505
- s.value = p.value[r.value]?.id, b = !1, v = !1;
4505
+ s.value = p.value[r.value]?.id, v = !1, _ = !1;
4506
4506
  });
4507
4507
  }
4508
4508
  }
4509
- _();
4509
+ b();
4510
4510
  const k = computed$1(() => !(p?.value && p.value.length > 0)), C = computed$1(() => ({
4511
4511
  contentClass: n.contentClass,
4512
4512
  showEmpty: k.value,
@@ -4590,14 +4590,14 @@ var normalizeInput = (e, t) => {
4590
4590
  const $ = i.value.findIndex((L) => L.value.internalId === B.value.internalId);
4591
4591
  $ === -1 ? (i.value.push(B), m ? nextTick$1(() => {
4592
4592
  V();
4593
- }) : v && nextTick$1(() => {
4594
- _();
4593
+ }) : _ && nextTick$1(() => {
4594
+ b();
4595
4595
  })) : (i.value[$] = B, m && V());
4596
4596
  const w = i.value.findIndex((L) => L.value.internalId === B.value.internalId);
4597
4597
  return B.value.id ?? (m ? B.value.internalId : d.value[w]);
4598
4598
  };
4599
4599
  onMounted(() => {
4600
- _(), V(), m = !0;
4600
+ b(), V(), m = !0;
4601
4601
  });
4602
4602
  const V = () => {
4603
4603
  i.value.sort((B, $) => sortSlotElementsByPosition(B.value.el.value, $.value.el.value)), s.value && r.value !== p.value.findIndex((B) => B.id === s.value) && (r.value = p.value.findIndex((B) => B.id === s.value));
@@ -6224,12 +6224,12 @@ function getOppositePlacement(e) {
6224
6224
  return oppositeSideMap[t] + e.slice(t.length);
6225
6225
  }
6226
6226
  function expandPaddingObject(e) {
6227
+ var t, n, a, o;
6227
6228
  return {
6228
- top: 0,
6229
- right: 0,
6230
- bottom: 0,
6231
- left: 0,
6232
- ...e
6229
+ top: (t = e.top) != null ? t : 0,
6230
+ right: (n = e.right) != null ? n : 0,
6231
+ bottom: (a = e.bottom) != null ? a : 0,
6232
+ left: (o = e.left) != null ? o : 0
6233
6233
  };
6234
6234
  }
6235
6235
  function getPaddingObject(e) {
@@ -6296,15 +6296,8 @@ function computeCoordsFromPlacement(e, t, n) {
6296
6296
  y: a.y
6297
6297
  };
6298
6298
  }
6299
- switch (getAlignment(t)) {
6300
- case "start":
6301
- p[s] -= f * (n && c ? -1 : 1);
6302
- break;
6303
- case "end":
6304
- p[s] += f * (n && c ? -1 : 1);
6305
- break;
6306
- }
6307
- return p;
6299
+ const m = getAlignment(t);
6300
+ return m && (p[s] += f * (m === "end" ? 1 : -1) * (n && c ? -1 : 1)), p;
6308
6301
  }
6309
6302
  async function detectOverflow(e, t) {
6310
6303
  var n;
@@ -6322,33 +6315,30 @@ async function detectOverflow(e, t) {
6322
6315
  elementContext: u = "floating",
6323
6316
  altBoundary: f = !1,
6324
6317
  padding: p = 0
6325
- } = evaluate(t, e), m = getPaddingObject(p), b = i[f ? u === "floating" ? "reference" : "floating" : u], v = rectToClientRect(await r.getClippingRect({
6326
- element: (n = await (r.isElement == null ? void 0 : r.isElement(b))) == null || n ? b : b.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
6318
+ } = evaluate(t, e), m = getPaddingObject(p), v = i[f ? u === "floating" ? "reference" : "floating" : u], _ = rectToClientRect(await r.getClippingRect({
6319
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
6327
6320
  boundary: c,
6328
6321
  rootBoundary: d,
6329
6322
  strategy: l
6330
- })), _ = u === "floating" ? {
6323
+ })), b = u === "floating" ? {
6331
6324
  x: a,
6332
6325
  y: o,
6333
6326
  width: s.floating.width,
6334
6327
  height: s.floating.height
6335
- } : s.reference, k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), C = await (r.isElement == null ? void 0 : r.isElement(k)) ? await (r.getScale == null ? void 0 : r.getScale(k)) || {
6336
- x: 1,
6337
- y: 1
6338
- } : {
6328
+ } : s.reference, k = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), C = await (r.isElement == null ? void 0 : r.isElement(k)) && await (r.getScale == null ? void 0 : r.getScale(k)) || {
6339
6329
  x: 1,
6340
6330
  y: 1
6341
6331
  }, T = rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
6342
6332
  elements: i,
6343
- rect: _,
6333
+ rect: b,
6344
6334
  offsetParent: k,
6345
6335
  strategy: l
6346
- }) : _);
6336
+ }) : b);
6347
6337
  return {
6348
- top: (v.top - T.top + m.top) / C.y,
6349
- bottom: (T.bottom - v.bottom + m.bottom) / C.y,
6350
- left: (v.left - T.left + m.left) / C.x,
6351
- right: (T.right - v.right + m.right) / C.x
6338
+ top: (_.top - T.top + m.top) / C.y,
6339
+ bottom: (T.bottom - _.bottom + m.bottom) / C.y,
6340
+ left: (_.left - T.left + m.left) / C.x,
6341
+ right: (T.right - _.right + m.right) / C.x
6352
6342
  };
6353
6343
  }
6354
6344
  const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
@@ -6371,18 +6361,18 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6371
6361
  } = computeCoordsFromPlacement(c, a, l), f = a, p = 0;
6372
6362
  const m = {};
6373
6363
  for (let g = 0; g < r.length; g++) {
6374
- const b = r[g];
6375
- if (!b)
6364
+ const v = r[g];
6365
+ if (!v)
6376
6366
  continue;
6377
6367
  const {
6378
- name: v,
6379
- fn: _
6380
- } = b, {
6368
+ name: _,
6369
+ fn: b
6370
+ } = v, {
6381
6371
  x: k,
6382
6372
  y: C,
6383
6373
  data: T,
6384
6374
  reset: D
6385
- } = await _({
6375
+ } = await b({
6386
6376
  x: d,
6387
6377
  y: u,
6388
6378
  initialPlacement: a,
@@ -6396,8 +6386,8 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6396
6386
  floating: t
6397
6387
  }
6398
6388
  });
6399
- d = k ?? d, u = C ?? u, m[v] = {
6400
- ...m[v],
6389
+ d = k ?? d, u = C ?? u, m[_] = {
6390
+ ...m[_],
6401
6391
  ...T
6402
6392
  }, D && p < MAX_RESET_COUNT && (p++, typeof D == "object" && (D.placement && (f = D.placement), D.rects && (c = D.rects === !0 ? await s.getElementRects({
6403
6393
  reference: e,
@@ -6436,20 +6426,20 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6436
6426
  const u = getPaddingObject(d), f = {
6437
6427
  x: n,
6438
6428
  y: a
6439
- }, p = getAlignmentAxis(o), m = getAxisLength(p), g = await s.getDimensions(c), b = p === "y", v = b ? "top" : "left", _ = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", C = r.reference[m] + r.reference[p] - f[p] - r.floating[m], T = f[p] - r.reference[p], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6429
+ }, p = getAlignmentAxis(o), m = getAxisLength(p), g = await s.getDimensions(c), v = p === "y", _ = v ? "top" : "left", b = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", C = r.reference[m] + r.reference[p] - f[p] - r.floating[m], T = f[p] - r.reference[p], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6440
6430
  let I = D ? D[k] : 0;
6441
6431
  (!I || !await (s.isElement == null ? void 0 : s.isElement(D))) && (I = i.floating[k] || r.floating[m]);
6442
- const E = C / 2 - T / 2, O = I / 2 - g[m] / 2 - 1, F = min$2(u[v], O), N = min$2(u[_], O), M = F, S = I - g[m] - N, V = I / 2 - g[m] / 2 + E, P = clamp(M, V, S), B = !l.arrow && getAlignment(o) != null && V !== P && r.reference[m] / 2 - (V < M ? F : N) - g[m] / 2 < 0, $ = B ? V < M ? V - M : V - S : 0;
6432
+ const E = C / 2 - T / 2, O = I / 2 - g[m] / 2 - 1, F = min$2(u[_], O), N = min$2(u[b], O), M = I - g[m] - N, S = I / 2 - g[m] / 2 + E, V = clamp(F, S, M), P = !l.arrow && getAlignment(o) != null && S !== V && r.reference[m] / 2 - (S < F ? F : N) - g[m] / 2 < 0, B = P ? S < F ? S - F : S - M : 0;
6443
6433
  return {
6444
- [p]: f[p] + $,
6434
+ [p]: f[p] + B,
6445
6435
  data: {
6446
- [p]: P,
6447
- centerOffset: V - P - $,
6448
- ...B && {
6449
- alignmentOffset: $
6436
+ [p]: V,
6437
+ centerOffset: S - V - B,
6438
+ ...P && {
6439
+ alignmentOffset: B
6450
6440
  }
6451
6441
  },
6452
- reset: B
6442
+ reset: P
6453
6443
  };
6454
6444
  }
6455
6445
  }), flip$1 = function(e) {
@@ -6472,15 +6462,15 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6472
6462
  fallbackStrategy: p = "bestFit",
6473
6463
  fallbackAxisSideDirection: m = "none",
6474
6464
  flipAlignment: g = !0,
6475
- ...b
6465
+ ...v
6476
6466
  } = evaluate(e, t);
6477
6467
  if ((n = r.arrow) != null && n.alignmentOffset)
6478
6468
  return {};
6479
- const v = getSide(o), _ = getSideAxis(i), k = getSide(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = f || (k || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), D = m !== "none";
6469
+ const _ = getSide(o), b = getSideAxis(i), k = getSide(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), T = f || (k || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), D = m !== "none";
6480
6470
  !f && D && T.push(...getOppositeAxisPlacements(i, g, m, C));
6481
- const I = [i, ...T], E = await l.detectOverflow(t, b), O = [];
6471
+ const I = [i, ...T], E = await l.detectOverflow(t, v), O = [];
6482
6472
  let F = ((a = r.flip) == null ? void 0 : a.overflows) || [];
6483
- if (d && O.push(E[v]), u) {
6473
+ if (d && O.push(E[_]), u) {
6484
6474
  const V = getAlignmentSides(o, s, C);
6485
6475
  O.push(E[V[0]], E[V[1]]);
6486
6476
  }
@@ -6490,9 +6480,9 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6490
6480
  }], !O.every((V) => V <= 0)) {
6491
6481
  var N, M;
6492
6482
  const V = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, P = I[V];
6493
- if (P && (!(u === "alignment" ? _ !== getSideAxis(P) : !1) || // We leave the current main axis only if every placement on that axis
6483
+ if (P && (!(u === "alignment" ? b !== getSideAxis(P) : !1) || // We leave the current main axis only if every placement on that axis
6494
6484
  // overflows the main axis.
6495
- F.every((w) => getSideAxis(w.placement) === _ ? w.overflows[0] > 0 : !0)))
6485
+ F.every((w) => getSideAxis(w.placement) === b ? w.overflows[0] > 0 : !0)))
6496
6486
  return {
6497
6487
  data: {
6498
6488
  index: V,
@@ -6510,7 +6500,7 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
6510
6500
  const $ = (S = F.filter((w) => {
6511
6501
  if (D) {
6512
6502
  const L = getSideAxis(w.placement);
6513
- return L === _ || // Create a bias to the `y` side axis due to horizontal
6503
+ return L === b || // Create a bias to the `y` side axis due to horizontal
6514
6504
  // reading directions favoring greater width.
6515
6505
  L === "y";
6516
6506
  }
@@ -6597,14 +6587,14 @@ const offset$1 = function(e) {
6597
6587
  mainAxis: s = !0,
6598
6588
  crossAxis: i = !1,
6599
6589
  limiter: l = {
6600
- fn: (v) => {
6590
+ fn: (b) => {
6601
6591
  let {
6602
- x: _,
6603
- y: k
6604
- } = v;
6592
+ x: k,
6593
+ y: C
6594
+ } = b;
6605
6595
  return {
6606
- x: _,
6607
- y: k
6596
+ x: k,
6597
+ y: C
6608
6598
  };
6609
6599
  }
6610
6600
  },
@@ -6612,26 +6602,20 @@ const offset$1 = function(e) {
6612
6602
  } = evaluate(e, t), d = {
6613
6603
  x: n,
6614
6604
  y: a
6615
- }, u = await r.detectOverflow(t, c), f = getSideAxis(getSide(o)), p = getOppositeAxis(f);
6605
+ }, u = await r.detectOverflow(t, c), f = getSideAxis(o), p = getOppositeAxis(f);
6616
6606
  let m = d[p], g = d[f];
6617
- if (s) {
6618
- const v = p === "y" ? "top" : "left", _ = p === "y" ? "bottom" : "right", k = m + u[v], C = m - u[_];
6619
- m = clamp(k, m, C);
6620
- }
6621
- if (i) {
6622
- const v = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", k = g + u[v], C = g - u[_];
6623
- g = clamp(k, g, C);
6624
- }
6625
- const b = l.fn({
6607
+ const v = (b, k) => clamp(k + u[b === "y" ? "top" : "left"], k, k - u[b === "y" ? "bottom" : "right"]);
6608
+ s && (m = v(p, m)), i && (g = v(f, g));
6609
+ const _ = l.fn({
6626
6610
  ...t,
6627
6611
  [p]: m,
6628
6612
  [f]: g
6629
6613
  });
6630
6614
  return {
6631
- ...b,
6615
+ ..._,
6632
6616
  data: {
6633
- x: b.x - n,
6634
- y: b.y - a,
6617
+ x: _.x - n,
6618
+ y: _.y - a,
6635
6619
  enabled: {
6636
6620
  [p]: s,
6637
6621
  [f]: i
@@ -6740,7 +6724,7 @@ function getParentNode(e) {
6740
6724
  }
6741
6725
  function getNearestOverflowAncestor(e) {
6742
6726
  const t = getParentNode(e);
6743
- return isLastTraversableNode(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : isHTMLElement(t) && isOverflowElement(t) ? t : getNearestOverflowAncestor(t);
6727
+ return isLastTraversableNode(t) ? (e.ownerDocument || e).body : isHTMLElement(t) && isOverflowElement(t) ? t : getNearestOverflowAncestor(t);
6744
6728
  }
6745
6729
  function getOverflowAncestors(e, t, n) {
6746
6730
  var a;
@@ -6792,7 +6776,7 @@ function getVisualOffsets(e) {
6792
6776
  };
6793
6777
  }
6794
6778
  function shouldAddVisualOffsets(e, t, n) {
6795
- return t === void 0 && (t = !1), !n || t && n !== getWindow(e) ? !1 : t;
6779
+ return t === void 0 && (t = !1), !!n && t && n === getWindow(e);
6796
6780
  }
6797
6781
  function getBoundingClientRect(e, t, n, a) {
6798
6782
  t === void 0 && (t = !1), n === void 0 && (n = !1);
@@ -6801,12 +6785,12 @@ function getBoundingClientRect(e, t, n, a) {
6801
6785
  t && (a ? isElement$1(a) && (s = getScale(a)) : s = getScale(e));
6802
6786
  const i = shouldAddVisualOffsets(r, n, a) ? getVisualOffsets(r) : createCoords(0);
6803
6787
  let l = (o.left + i.x) / s.x, c = (o.top + i.y) / s.y, d = o.width / s.x, u = o.height / s.y;
6804
- if (r) {
6805
- const f = getWindow(r), p = a && isElement$1(a) ? getWindow(a) : a;
6788
+ if (r && a) {
6789
+ const f = getWindow(r), p = isElement$1(a) ? getWindow(a) : a;
6806
6790
  let m = f, g = getFrameElement(m);
6807
- for (; g && a && p !== m; ) {
6808
- const b = getScale(g), v = g.getBoundingClientRect(), _ = getComputedStyle$2(g), k = v.left + (g.clientLeft + parseFloat(_.paddingLeft)) * b.x, C = v.top + (g.clientTop + parseFloat(_.paddingTop)) * b.y;
6809
- l *= b.x, c *= b.y, d *= b.x, u *= b.y, l += k, c += C, m = getWindow(g), g = getFrameElement(m);
6791
+ for (; g && p !== m; ) {
6792
+ const v = getScale(g), _ = g.getBoundingClientRect(), b = getComputedStyle$2(g), k = _.left + (g.clientLeft + parseFloat(b.paddingLeft)) * v.x, C = _.top + (g.clientTop + parseFloat(b.paddingTop)) * v.y;
6793
+ l *= v.x, c *= v.y, d *= v.x, u *= v.y, l += k, c += C, m = getWindow(g), g = getFrameElement(m);
6810
6794
  }
6811
6795
  }
6812
6796
  return rectToClientRect({
@@ -6842,7 +6826,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(e) {
6842
6826
  scrollTop: 0
6843
6827
  }, c = createCoords(1);
6844
6828
  const d = createCoords(0), u = isHTMLElement(a);
6845
- if ((u || !u && !r) && ((getNodeName(a) !== "body" || isOverflowElement(s)) && (l = getNodeScroll(a)), u)) {
6829
+ if ((u || !r) && ((getNodeName(a) !== "body" || isOverflowElement(s)) && (l = getNodeScroll(a)), u)) {
6846
6830
  const p = getBoundingClientRect(a);
6847
6831
  c = getScale(a), d.x = p.x + a.clientLeft, d.y = p.y + a.clientTop;
6848
6832
  }
@@ -6855,42 +6839,41 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(e) {
6855
6839
  };
6856
6840
  }
6857
6841
  function getClientRects(e) {
6858
- return Array.from(e.getClientRects());
6842
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
6859
6843
  }
6860
6844
  function getDocumentRect(e) {
6861
- const t = getDocumentElement(e), n = getNodeScroll(e), a = e.ownerDocument.body, o = max$2(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), r = max$2(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
6862
- let s = -n.scrollLeft + getWindowScrollBarX(e);
6863
- const i = -n.scrollTop;
6864
- return getComputedStyle$2(a).direction === "rtl" && (s += max$2(t.clientWidth, a.clientWidth) - o), {
6865
- width: o,
6866
- height: r,
6867
- x: s,
6868
- y: i
6845
+ const t = getNodeScroll(e), n = e.ownerDocument.body, a = max$2(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), o = max$2(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
6846
+ let r = -t.scrollLeft + getWindowScrollBarX(e);
6847
+ const s = -t.scrollTop;
6848
+ return getComputedStyle$2(n).direction === "rtl" && (r += max$2(e.clientWidth, n.clientWidth) - a), {
6849
+ width: a,
6850
+ height: o,
6851
+ x: r,
6852
+ y: s
6869
6853
  };
6870
6854
  }
6871
6855
  const SCROLLBAR_MAX = 25;
6872
- function getViewportRect(e, t) {
6873
- const n = getWindow(e), a = getDocumentElement(e), o = n.visualViewport;
6874
- let r = a.clientWidth, s = a.clientHeight, i = 0, l = 0;
6875
- if (o) {
6876
- r = o.width, s = o.height;
6877
- const d = isWebKit();
6878
- (!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
6879
- }
6880
- const c = getWindowScrollBarX(a);
6881
- if (c <= 0) {
6882
- const d = a.ownerDocument, u = d.body, f = getComputedStyle(u), p = d.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, m = Math.abs(a.clientWidth - u.clientWidth - p);
6883
- m <= SCROLLBAR_MAX && (r -= m);
6884
- } else c <= SCROLLBAR_MAX && (r += c);
6856
+ function getViewportRect(e, t, n) {
6857
+ n === void 0 && (n = "viewport");
6858
+ const a = n === "layoutViewport", o = getWindow(e), r = getDocumentElement(e), s = o.visualViewport;
6859
+ let i = r.clientWidth, l = r.clientHeight, c = 0, d = 0;
6860
+ if (s) {
6861
+ const f = !isWebKit() || t === "fixed";
6862
+ a ? f || (c = -s.offsetLeft, d = -s.offsetTop) : (i = s.width, l = s.height, f && (c = s.offsetLeft, d = s.offsetTop));
6863
+ }
6864
+ if (getWindowScrollBarX(r) <= 0) {
6865
+ const f = r.ownerDocument, p = f.body, m = getComputedStyle(p), g = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - p.clientWidth - g), _ = getComputedStyle(r).scrollbarGutter === "stable both-edges" ? v / 2 : v;
6866
+ _ <= SCROLLBAR_MAX && (i -= _);
6867
+ }
6885
6868
  return {
6886
- width: r,
6887
- height: s,
6888
- x: i,
6889
- y: l
6869
+ width: i,
6870
+ height: l,
6871
+ x: c,
6872
+ y: d
6890
6873
  };
6891
6874
  }
6892
6875
  function getInnerBoundingClientRect(e, t) {
6893
- const n = getBoundingClientRect(e, !0, t === "fixed"), a = n.top + e.clientTop, o = n.left + e.clientLeft, r = isHTMLElement(e) ? getScale(e) : createCoords(1), s = e.clientWidth * r.x, i = e.clientHeight * r.y, l = o * r.x, c = a * r.y;
6876
+ const n = getBoundingClientRect(e, !0, t === "fixed"), a = n.top + e.clientTop, o = n.left + e.clientLeft, r = getScale(e), s = e.clientWidth * r.x, i = e.clientHeight * r.y, l = o * r.x, c = a * r.y;
6894
6877
  return {
6895
6878
  width: s,
6896
6879
  height: i,
@@ -6900,8 +6883,8 @@ function getInnerBoundingClientRect(e, t) {
6900
6883
  }
6901
6884
  function getClientRectFromClippingAncestor(e, t, n) {
6902
6885
  let a;
6903
- if (t === "viewport")
6904
- a = getViewportRect(e, n);
6886
+ if (t === "viewport" || t === "layoutViewport")
6887
+ a = getViewportRect(e, n, t);
6905
6888
  else if (t === "document")
6906
6889
  a = getDocumentRect(getDocumentElement(e));
6907
6890
  else if (isElement$1(t))
@@ -6917,10 +6900,6 @@ function getClientRectFromClippingAncestor(e, t, n) {
6917
6900
  }
6918
6901
  return rectToClientRect(a);
6919
6902
  }
6920
- function hasFixedPositionAncestor(e, t) {
6921
- const n = getParentNode(e);
6922
- return n === t || !isElement$1(n) || isLastTraversableNode(n) ? !1 : getComputedStyle$2(n).position === "fixed" || hasFixedPositionAncestor(n, t);
6923
- }
6924
6903
  function getClippingElementAncestors(e, t) {
6925
6904
  const n = t.get(e);
6926
6905
  if (n)
@@ -6929,8 +6908,8 @@ function getClippingElementAncestors(e, t) {
6929
6908
  const r = getComputedStyle$2(e).position === "fixed";
6930
6909
  let s = r ? getParentNode(e) : e;
6931
6910
  for (; isElement$1(s) && !isLastTraversableNode(s); ) {
6932
- const i = getComputedStyle$2(s), l = isContainingBlock(s);
6933
- !l && i.position === "fixed" && (o = null), (r ? !l && !o : !l && i.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || isOverflowElement(s) && !l && hasFixedPositionAncestor(e, s)) ? a = a.filter((d) => d !== s) : o = i, s = getParentNode(s);
6911
+ const i = getComputedStyle$2(s), l = isContainingBlock(s), c = o ? o.position : r ? "fixed" : "";
6912
+ !l && (c === "fixed" || c === "absolute" && i.position === "static") ? a = a.filter((u) => u !== s) : o = i, s = getParentNode(s);
6934
6913
  }
6935
6914
  return t.set(e, a), a;
6936
6915
  }
@@ -6971,19 +6950,15 @@ function getRectRelativeToOffsetParent(e, t, n) {
6971
6950
  scrollTop: 0
6972
6951
  };
6973
6952
  const l = createCoords(0);
6974
- function c() {
6975
- l.x = getWindowScrollBarX(o);
6976
- }
6977
- if (a || !a && !r)
6978
- if ((getNodeName(t) !== "body" || isOverflowElement(o)) && (i = getNodeScroll(t)), a) {
6979
- const p = getBoundingClientRect(t, !0, r, t);
6980
- l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
6981
- } else o && c();
6982
- r && !a && o && c();
6983
- const d = o && !a && !r ? getHTMLOffset(o, i) : createCoords(0), u = s.left + i.scrollLeft - l.x - d.x, f = s.top + i.scrollTop - l.y - d.y;
6953
+ if ((a || !r) && ((getNodeName(t) !== "body" || isOverflowElement(o)) && (i = getNodeScroll(t)), a)) {
6954
+ const f = getBoundingClientRect(t, !0, r, t);
6955
+ l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
6956
+ }
6957
+ !a && o && (l.x = getWindowScrollBarX(o));
6958
+ const c = o && !a && !r ? getHTMLOffset(o, i) : createCoords(0), d = s.left + i.scrollLeft - l.x - c.x, u = s.top + i.scrollTop - l.y - c.y;
6984
6959
  return {
6985
- x: u,
6986
- y: f,
6960
+ x: d,
6961
+ y: u,
6987
6962
  width: s.width,
6988
6963
  height: s.height
6989
6964
  };
@@ -7047,51 +7022,56 @@ const platform = {
7047
7022
  function rectsAreEqual(e, t) {
7048
7023
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7049
7024
  }
7050
- function observeMove(e, t) {
7051
- let n = null, a;
7052
- const o = getDocumentElement(e);
7053
- function r() {
7054
- var i;
7055
- clearTimeout(a), (i = n) == null || i.disconnect(), n = null;
7056
- }
7057
- function s(i, l) {
7058
- i === void 0 && (i = !1), l === void 0 && (l = 1), r();
7059
- const c = e.getBoundingClientRect(), {
7060
- left: d,
7061
- top: u,
7062
- width: f,
7063
- height: p
7064
- } = c;
7065
- if (i || t(), !f || !p)
7025
+ function observeMove(e, t, n) {
7026
+ let a = null, o;
7027
+ const r = getDocumentElement(e);
7028
+ function s() {
7029
+ var d;
7030
+ clearTimeout(o), (d = a) == null || d.disconnect(), a = null;
7031
+ }
7032
+ function i(d, u) {
7033
+ d === void 0 && (d = !1), u === void 0 && (u = 1), s();
7034
+ const f = e.getBoundingClientRect(), {
7035
+ left: p,
7036
+ top: m,
7037
+ width: g,
7038
+ height: v
7039
+ } = f;
7040
+ if (d || t(), !g || !v)
7066
7041
  return;
7067
- const m = floor(u), g = floor(o.clientWidth - (d + f)), b = floor(o.clientHeight - (u + p)), v = floor(d), k = {
7068
- rootMargin: -m + "px " + -g + "px " + -b + "px " + -v + "px",
7069
- threshold: max$2(0, min$2(1, l)) || 1
7042
+ const _ = floor(m), b = floor(r.clientWidth - (p + g)), k = floor(r.clientHeight - (m + v)), C = floor(p), D = {
7043
+ rootMargin: -_ + "px " + -b + "px " + -k + "px " + -C + "px",
7044
+ threshold: max$2(0, min$2(1, u)) || 1
7070
7045
  };
7071
- let C = !0;
7072
- function T(D) {
7073
- const I = D[0].intersectionRatio;
7074
- if (I !== l) {
7075
- if (!C)
7076
- return s();
7077
- I ? s(!1, I) : a = setTimeout(() => {
7078
- s(!1, 1e-7);
7046
+ let I = !0;
7047
+ function E(O) {
7048
+ const F = O[0].intersectionRatio;
7049
+ if (!rectsAreEqual(f, e.getBoundingClientRect()))
7050
+ return i();
7051
+ if (F !== u) {
7052
+ if (!I)
7053
+ return i();
7054
+ F ? i(!1, F) : o = setTimeout(() => {
7055
+ i(!1, 1e-7);
7079
7056
  }, 1e3);
7080
7057
  }
7081
- I === 1 && !rectsAreEqual(c, e.getBoundingClientRect()) && s(), C = !1;
7058
+ I = !1;
7082
7059
  }
7083
7060
  try {
7084
- n = new IntersectionObserver(T, {
7085
- ...k,
7061
+ a = new IntersectionObserver(E, {
7062
+ ...D,
7086
7063
  // Handle <iframe>s
7087
- root: o.ownerDocument
7064
+ root: r.ownerDocument
7088
7065
  });
7089
7066
  } catch {
7090
- n = new IntersectionObserver(T, k);
7067
+ a = new IntersectionObserver(E, D);
7091
7068
  }
7092
- n.observe(e);
7069
+ a.observe(e);
7093
7070
  }
7094
- return s(!0), r;
7071
+ const l = getWindow(e), c = () => i(n);
7072
+ return l.addEventListener("resize", c), i(!0), () => {
7073
+ l.removeEventListener("resize", c), s();
7074
+ };
7095
7075
  }
7096
7076
  function autoUpdate(e, t, n, a) {
7097
7077
  a === void 0 && (a = {});
@@ -7102,38 +7082,34 @@ function autoUpdate(e, t, n, a) {
7102
7082
  layoutShift: i = typeof IntersectionObserver == "function",
7103
7083
  animationFrame: l = !1
7104
7084
  } = a, c = unwrapElement(e), d = o || r ? [...c ? getOverflowAncestors(c) : [], ...t ? getOverflowAncestors(t) : []] : [];
7105
- d.forEach((v) => {
7106
- o && v.addEventListener("scroll", n, {
7107
- passive: !0
7108
- }), r && v.addEventListener("resize", n);
7085
+ d.forEach((_) => {
7086
+ o && _.addEventListener("scroll", n), r && _.addEventListener("resize", n);
7109
7087
  });
7110
- const u = c && i ? observeMove(c, n) : null;
7088
+ const u = c && i ? observeMove(c, n, r) : null;
7111
7089
  let f = -1, p = null;
7112
- s && (p = new ResizeObserver((v) => {
7113
- let [_] = v;
7114
- _ && _.target === c && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
7090
+ s && (p = new ResizeObserver((_) => {
7091
+ let [b] = _;
7092
+ b && b.target === c && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
7115
7093
  var k;
7116
7094
  (k = p) == null || k.observe(t);
7117
7095
  })), n();
7118
7096
  }), c && !l && p.observe(c), t && p.observe(t));
7119
7097
  let m, g = l ? getBoundingClientRect(e) : null;
7120
- l && b();
7121
- function b() {
7122
- const v = getBoundingClientRect(e);
7123
- g && !rectsAreEqual(g, v) && n(), g = v, m = requestAnimationFrame(b);
7098
+ l && v();
7099
+ function v() {
7100
+ const _ = getBoundingClientRect(e);
7101
+ g && !rectsAreEqual(g, _) && n(), g = _, m = requestAnimationFrame(v);
7124
7102
  }
7125
7103
  return n(), () => {
7126
- var v;
7127
- d.forEach((_) => {
7128
- o && _.removeEventListener("scroll", n), r && _.removeEventListener("resize", n);
7129
- }), u?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(m);
7104
+ var _;
7105
+ d.forEach((b) => {
7106
+ o && b.removeEventListener("scroll", n), r && b.removeEventListener("resize", n);
7107
+ }), u?.(), (_ = p) == null || _.disconnect(), p = null, l && cancelAnimationFrame(m);
7130
7108
  };
7131
7109
  }
7132
7110
  const offset = offset$1, shift = shift$1, flip = flip$1, arrow = arrow$1, computePosition = (e, t, n) => {
7133
- const a = /* @__PURE__ */ new Map(), o = {
7134
- platform,
7135
- ...n
7136
- }, r = {
7111
+ const a = /* @__PURE__ */ new Map(), o = n ?? {}, r = {
7112
+ ...platform,
7137
7113
  ...o.platform,
7138
7114
  _c: a
7139
7115
  };
@@ -8481,7 +8457,7 @@ const VsModuleWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$29, [["render", _s
8481
8457
  "data-test": "vs-canned-search"
8482
8458
  };
8483
8459
  function _sfc_render$1T(e, t, n, a, o, r) {
8484
- const s = resolveComponent("VsCol"), i = resolveComponent("VsRow"), l = resolveComponent("VsContainer"), c = resolveComponent("VsCannedSearchTourRuns"), d = resolveComponent("VsCannedSearchTourDeparts"), u = resolveComponent("VsCannedSearchSubHeading"), f = resolveComponent("VsCannedSearchStars"), p = resolveComponent("VsCannedSearchCategories"), m = resolveComponent("VsCannedSearchLogos"), g = resolveComponent("VsCannedSearchBadges"), b = resolveComponent("VsCannedSearchDates"), v = resolveComponent("VsCannedSearchDuration"), _ = resolveComponent("VsCannedSearchPrice"), k = resolveComponent("VsCannedSearchCuisines"), C = resolveComponent("VsCannedSearchSummaryBox"), T = resolveComponent("VsCannedSearchProductCard"), D = resolveComponent("VsCarousel"), I = resolveComponent("VsModuleWrapper");
8460
+ const s = resolveComponent("VsCol"), i = resolveComponent("VsRow"), l = resolveComponent("VsContainer"), c = resolveComponent("VsCannedSearchTourRuns"), d = resolveComponent("VsCannedSearchTourDeparts"), u = resolveComponent("VsCannedSearchSubHeading"), f = resolveComponent("VsCannedSearchStars"), p = resolveComponent("VsCannedSearchCategories"), m = resolveComponent("VsCannedSearchLogos"), g = resolveComponent("VsCannedSearchBadges"), v = resolveComponent("VsCannedSearchDates"), _ = resolveComponent("VsCannedSearchDuration"), b = resolveComponent("VsCannedSearchPrice"), k = resolveComponent("VsCannedSearchCuisines"), C = resolveComponent("VsCannedSearchSummaryBox"), T = resolveComponent("VsCannedSearchProductCard"), D = resolveComponent("VsCarousel"), I = resolveComponent("VsModuleWrapper");
8485
8461
  return withDirectives((openBlock(), createBlock(I, null, createSlots({
8486
8462
  default: withCtx(() => [
8487
8463
  createElementVNode("div", _hoisted_1$1G, [
@@ -8556,11 +8532,11 @@ function _sfc_render$1T(e, t, n, a, o, r) {
8556
8532
  "link-title": E.name
8557
8533
  }, createSlots({
8558
8534
  "vs-canned-search-summary-left": withCtx(() => [
8559
- n.searchType === "tour" && E.tourLength ? (openBlock(), createBlock(v, {
8535
+ n.searchType === "tour" && E.tourLength ? (openBlock(), createBlock(_, {
8560
8536
  key: 0,
8561
8537
  "duration-intro": E.tourLength.label,
8562
8538
  duration: E.tourLength.value
8563
- }, null, 8, ["duration-intro", "duration"])) : E.price && n.searchType !== "tour" ? (openBlock(), createBlock(_, {
8539
+ }, null, 8, ["duration-intro", "duration"])) : E.price && n.searchType !== "tour" ? (openBlock(), createBlock(b, {
8564
8540
  key: 1,
8565
8541
  "price-intro": E.price.priceLabel,
8566
8542
  price: E.price.price,
@@ -8575,7 +8551,7 @@ function _sfc_render$1T(e, t, n, a, o, r) {
8575
8551
  E.opening && n.searchType !== "tour" ? {
8576
8552
  name: "vs-canned-search-summary-top",
8577
8553
  fn: withCtx(() => [
8578
- createVNode(b, {
8554
+ createVNode(v, {
8579
8555
  period: E.opening.period,
8580
8556
  label: E.opening.period.label
8581
8557
  }, null, 8, ["period", "label"])
@@ -8585,7 +8561,7 @@ function _sfc_render$1T(e, t, n, a, o, r) {
8585
8561
  E.price && n.searchType === "tour" ? {
8586
8562
  name: "vs-canned-search-summary-centre",
8587
8563
  fn: withCtx(() => [
8588
- createVNode(_, {
8564
+ createVNode(b, {
8589
8565
  "price-intro": E.price.priceLabel,
8590
8566
  price: E.price.price,
8591
8567
  "price-outro": E.price.priceBasis
@@ -8751,7 +8727,7 @@ const CannedSearch = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_
8751
8727
  return (n - e) * a / (t - e);
8752
8728
  }
8753
8729
  }
8754
- }, _hoisted_1$1F = ["width", "height"], _hoisted_2$1b = ["stroke"], _hoisted_3$Z = ["stroke"], _hoisted_4$I = ["stroke"], _hoisted_5$w = ["stroke"], _hoisted_6$k = ["stroke"], _hoisted_7$h = ["stroke"], _hoisted_8$8 = ["stroke"], _hoisted_9$7 = ["stroke"], _hoisted_10$7 = ["stroke"], _hoisted_11$5 = ["stroke"], _hoisted_12$4 = ["stroke"], _hoisted_13$4 = ["stroke"], _hoisted_14$3 = ["stroke"], _hoisted_15$3 = ["stroke"], _hoisted_16$3 = ["stroke"], _hoisted_17$3 = ["stroke"], _hoisted_18$2 = ["stroke"], _hoisted_19$1 = ["stroke"], _hoisted_20 = ["stroke"], _hoisted_21 = ["stroke"], _hoisted_22 = ["stroke"], _hoisted_23 = ["stroke"], _hoisted_24 = ["stroke"], _hoisted_25 = ["stroke"], _hoisted_26 = ["stroke"], _hoisted_27 = ["stroke"], _hoisted_28 = ["stroke"], _hoisted_29 = ["stroke"], _hoisted_30 = ["stroke"], _hoisted_31 = ["stroke"], _hoisted_32 = ["width", "height"], _hoisted_33 = ["fill", "cx", "cy"];
8730
+ }, _hoisted_1$1F = ["width", "height"], _hoisted_2$1b = ["stroke"], _hoisted_3$Z = ["stroke"], _hoisted_4$I = ["stroke"], _hoisted_5$w = ["stroke"], _hoisted_6$k = ["stroke"], _hoisted_7$h = ["stroke"], _hoisted_8$8 = ["stroke"], _hoisted_9$8 = ["stroke"], _hoisted_10$8 = ["stroke"], _hoisted_11$5 = ["stroke"], _hoisted_12$4 = ["stroke"], _hoisted_13$4 = ["stroke"], _hoisted_14$3 = ["stroke"], _hoisted_15$3 = ["stroke"], _hoisted_16$3 = ["stroke"], _hoisted_17$3 = ["stroke"], _hoisted_18$2 = ["stroke"], _hoisted_19$1 = ["stroke"], _hoisted_20 = ["stroke"], _hoisted_21 = ["stroke"], _hoisted_22 = ["stroke"], _hoisted_23 = ["stroke"], _hoisted_24 = ["stroke"], _hoisted_25 = ["stroke"], _hoisted_26 = ["stroke"], _hoisted_27 = ["stroke"], _hoisted_28 = ["stroke"], _hoisted_29 = ["stroke"], _hoisted_30 = ["stroke"], _hoisted_31 = ["stroke"], _hoisted_32 = ["width", "height"], _hoisted_33 = ["fill", "cx", "cy"];
8755
8731
  function _sfc_render$1S(e, t, n, a, o, r) {
8756
8732
  return openBlock(), createElementBlock("svg", {
8757
8733
  xmlns: "http://www.w3.org/2000/svg",
@@ -8848,7 +8824,7 @@ function _sfc_render$1S(e, t, n, a, o, r) {
8848
8824
  "stroke-linejoin": "round",
8849
8825
  "stroke-width": "0.5",
8850
8826
  "fill-rule": "evenodd"
8851
- }, null, 8, _hoisted_9$7),
8827
+ }, null, 8, _hoisted_9$8),
8852
8828
  createElementVNode("path", {
8853
8829
  d: `M48.6245,31.72c.1671,1.655-1,.552-1.5.92s-.334,
8854
8830
  1.655-.167,2.207l1.336-.184c.167.92.5.552,1.169.736l.835.368a1.5181,1.5181,0,0,0,
@@ -8861,7 +8837,7 @@ function _sfc_render$1S(e, t, n, a, o, r) {
8861
8837
  "stroke-linejoin": "round",
8862
8838
  "stroke-width": "0.5",
8863
8839
  "fill-rule": "evenodd"
8864
- }, null, 8, _hoisted_10$7),
8840
+ }, null, 8, _hoisted_10$8),
8865
8841
  createElementVNode("path", {
8866
8842
  d: "M50.4625,33.1913l.334.92.835-.92-.169-.184Z",
8867
8843
  transform: "translate(-0.2662 -0.2662)",
@@ -10290,10 +10266,10 @@ function band() {
10290
10266
  function u() {
10291
10267
  var f = t().length, p = o < a, m = p ? o : a, g = p ? a : o;
10292
10268
  r = (g - m) / Math.max(1, f - l + c * 2), i && (r = Math.floor(r)), m += (g - m - r * (f - l)) * d, s = r * (1 - l), i && (m = Math.round(m), s = Math.round(s));
10293
- var b = range(f).map(function(v) {
10294
- return m + r * v;
10269
+ var v = range(f).map(function(_) {
10270
+ return m + r * _;
10295
10271
  });
10296
- return n(p ? b.reverse() : b);
10272
+ return n(p ? v.reverse() : v);
10297
10273
  }
10298
10274
  return e.domain = function(f) {
10299
10275
  return arguments.length ? (t(f), u()) : t();
@@ -10979,8 +10955,8 @@ function formatLocale(e) {
10979
10955
  var t = e.grouping === void 0 || e.thousands === void 0 ? identity$2 : formatGroup(map.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", a = e.currency === void 0 ? "" : e.currency[1] + "", o = e.decimal === void 0 ? "." : e.decimal + "", r = e.numerals === void 0 ? identity$2 : formatNumerals(map.call(e.numerals, String)), s = e.percent === void 0 ? "%" : e.percent + "", i = e.minus === void 0 ? "−" : e.minus + "", l = e.nan === void 0 ? "NaN" : e.nan + "";
10980
10956
  function c(u) {
10981
10957
  u = formatSpecifier(u);
10982
- var f = u.fill, p = u.align, m = u.sign, g = u.symbol, b = u.zero, v = u.width, _ = u.comma, k = u.precision, C = u.trim, T = u.type;
10983
- T === "n" ? (_ = !0, T = "g") : formatTypes[T] || (k === void 0 && (k = 12), C = !0, T = "g"), (b || f === "0" && p === "=") && (b = !0, f = "0", p = "=");
10958
+ var f = u.fill, p = u.align, m = u.sign, g = u.symbol, v = u.zero, _ = u.width, b = u.comma, k = u.precision, C = u.trim, T = u.type;
10959
+ T === "n" ? (b = !0, T = "g") : formatTypes[T] || (k === void 0 && (k = 12), C = !0, T = "g"), (v || f === "0" && p === "=") && (v = !0, f = "0", p = "=");
10984
10960
  var D = g === "$" ? n : g === "#" && /[boxX]/.test(T) ? "0" + T.toLowerCase() : "", I = g === "$" ? a : /[%p]/.test(T) ? s : "", E = formatTypes[T], O = /[defgprs%]/.test(T);
10985
10961
  k = k === void 0 ? 6 : /[gprs]/.test(T) ? Math.max(1, Math.min(21, k)) : Math.max(0, Math.min(20, k));
10986
10962
  function F(N) {
@@ -10998,9 +10974,9 @@ function formatLocale(e) {
10998
10974
  }
10999
10975
  }
11000
10976
  }
11001
- _ && !b && (N = t(N, 1 / 0));
11002
- var w = M.length + N.length + S.length, L = w < v ? new Array(v - w + 1).join(f) : "";
11003
- switch (_ && b && (N = t(L + N, L.length ? v - S.length : 1 / 0), L = ""), p) {
10977
+ b && !v && (N = t(N, 1 / 0));
10978
+ var w = M.length + N.length + S.length, L = w < _ ? new Array(_ - w + 1).join(f) : "";
10979
+ switch (b && v && (N = t(L + N, L.length ? _ - S.length : 1 / 0), L = ""), p) {
11004
10980
  case "<":
11005
10981
  N = M + N + S + L;
11006
10982
  break;
@@ -11021,9 +10997,9 @@ function formatLocale(e) {
11021
10997
  }, F;
11022
10998
  }
11023
10999
  function d(u, f) {
11024
- var p = c((u = formatSpecifier(u), u.type = "f", u)), m = Math.max(-8, Math.min(8, Math.floor(exponent(f) / 3))) * 3, g = Math.pow(10, -m), b = prefixes[8 + m / 3];
11025
- return function(v) {
11026
- return p(g * v) + b;
11000
+ var p = c((u = formatSpecifier(u), u.type = "f", u)), m = Math.max(-8, Math.min(8, Math.floor(exponent(f) / 3))) * 3, g = Math.pow(10, -m), v = prefixes[8 + m / 3];
11001
+ return function(_) {
11002
+ return p(g * _) + v;
11027
11003
  };
11028
11004
  }
11029
11005
  return {
@@ -11263,7 +11239,7 @@ class Path {
11263
11239
  else if (f > epsilon$1) if (!(Math.abs(u * l - c * d) > epsilon$1) || !r)
11264
11240
  this._append`L${this._x1 = t},${this._y1 = n}`;
11265
11241
  else {
11266
- let p = a - s, m = o - i, g = l * l + c * c, b = p * p + m * m, v = Math.sqrt(g), _ = Math.sqrt(f), k = r * Math.tan((pi - Math.acos((g + f - b) / (2 * v * _))) / 2), C = k / _, T = k / v;
11242
+ let p = a - s, m = o - i, g = l * l + c * c, v = p * p + m * m, _ = Math.sqrt(g), b = Math.sqrt(f), k = r * Math.tan((pi - Math.acos((g + f - v) / (2 * _ * b))) / 2), C = k / b, T = k / _;
11267
11243
  Math.abs(C - 1) > epsilon$1 && this._append`L${t + C * d},${n + C * u}`, this._append`A${r},${r},0,0,${+(u * p > d * m)},${this._x1 = t + T * l},${this._y1 = n + T * c}`;
11268
11244
  }
11269
11245
  }
@@ -11314,7 +11290,7 @@ function intersect(e, t, n, a, o, r, s, i) {
11314
11290
  return f = (d * (t - r) - u * (e - o)) / f, [e + f * l, t + f * c];
11315
11291
  }
11316
11292
  function cornerTangents(e, t, n, a, o, r, s) {
11317
- var i = e - n, l = t - a, c = (s ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, p = t + u, m = n + d, g = a + u, b = (f + m) / 2, v = (p + g) / 2, _ = m - f, k = g - p, C = _ * _ + k * k, T = o - r, D = f * g - m * p, I = (k < 0 ? -1 : 1) * sqrt(max(0, T * T * C - D * D)), E = (D * k - _ * I) / C, O = (-D * _ - k * I) / C, F = (D * k + _ * I) / C, N = (-D * _ + k * I) / C, M = E - b, S = O - v, V = F - b, P = N - v;
11293
+ var i = e - n, l = t - a, c = (s ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, p = t + u, m = n + d, g = a + u, v = (f + m) / 2, _ = (p + g) / 2, b = m - f, k = g - p, C = b * b + k * k, T = o - r, D = f * g - m * p, I = (k < 0 ? -1 : 1) * sqrt(max(0, T * T * C - D * D)), E = (D * k - b * I) / C, O = (-D * b - k * I) / C, F = (D * k + b * I) / C, N = (-D * b + k * I) / C, M = E - v, S = O - _, V = F - v, P = N - _;
11318
11294
  return M * M + S * S > V * V + P * P && (E = F, O = N), {
11319
11295
  cx: E,
11320
11296
  cy: O,
@@ -11327,27 +11303,27 @@ function cornerTangents(e, t, n, a, o, r, s) {
11327
11303
  function arc() {
11328
11304
  var e = arcInnerRadius, t = arcOuterRadius, n = constant$2(0), a = null, o = arcStartAngle, r = arcEndAngle, s = arcPadAngle, i = null, l = withPath(c);
11329
11305
  function c() {
11330
- var d, u, f = +e.apply(this, arguments), p = +t.apply(this, arguments), m = o.apply(this, arguments) - halfPi, g = r.apply(this, arguments) - halfPi, b = abs(g - m), v = g > m;
11306
+ var d, u, f = +e.apply(this, arguments), p = +t.apply(this, arguments), m = o.apply(this, arguments) - halfPi, g = r.apply(this, arguments) - halfPi, v = abs(g - m), _ = g > m;
11331
11307
  if (i || (i = d = l()), p < f && (u = p, p = f, f = u), !(p > epsilon$2)) i.moveTo(0, 0);
11332
- else if (b > tau$1 - epsilon$2)
11333
- i.moveTo(p * cos(m), p * sin(m)), i.arc(0, 0, p, m, g, !v), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, m, v));
11308
+ else if (v > tau$1 - epsilon$2)
11309
+ i.moveTo(p * cos(m), p * sin(m)), i.arc(0, 0, p, m, g, !_), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, m, _));
11334
11310
  else {
11335
- var _ = m, k = g, C = m, T = g, D = b, I = b, E = s.apply(this, arguments) / 2, O = E > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(f * f + p * p)), F = min(abs(p - f) / 2, +n.apply(this, arguments)), N = F, M = F, S, V;
11311
+ var b = m, k = g, C = m, T = g, D = v, I = v, E = s.apply(this, arguments) / 2, O = E > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(f * f + p * p)), F = min(abs(p - f) / 2, +n.apply(this, arguments)), N = F, M = F, S, V;
11336
11312
  if (O > epsilon$2) {
11337
11313
  var P = asin(O / f * sin(E)), B = asin(O / p * sin(E));
11338
- (D -= P * 2) > epsilon$2 ? (P *= v ? 1 : -1, C += P, T -= P) : (D = 0, C = T = (m + g) / 2), (I -= B * 2) > epsilon$2 ? (B *= v ? 1 : -1, _ += B, k -= B) : (I = 0, _ = k = (m + g) / 2);
11314
+ (D -= P * 2) > epsilon$2 ? (P *= _ ? 1 : -1, C += P, T -= P) : (D = 0, C = T = (m + g) / 2), (I -= B * 2) > epsilon$2 ? (B *= _ ? 1 : -1, b += B, k -= B) : (I = 0, b = k = (m + g) / 2);
11339
11315
  }
11340
- var $ = p * cos(_), w = p * sin(_), L = f * cos(T), A = f * sin(T);
11316
+ var $ = p * cos(b), w = p * sin(b), L = f * cos(T), A = f * sin(T);
11341
11317
  if (F > epsilon$2) {
11342
11318
  var R = p * cos(k), z = p * sin(k), j = f * cos(C), W = f * sin(C), ee;
11343
- if (b < pi$1)
11319
+ if (v < pi$1)
11344
11320
  if (ee = intersect($, w, j, W, R, z, L, A)) {
11345
11321
  var X = $ - ee[0], ne = w - ee[1], ie = R - ee[0], le = z - ee[1], se = 1 / sin(acos((X * ie + ne * le) / (sqrt(X * X + ne * ne) * sqrt(ie * ie + le * le))) / 2), me = sqrt(ee[0] * ee[0] + ee[1] * ee[1]);
11346
11322
  N = min(F, (f - me) / (se - 1)), M = min(F, (p - me) / (se + 1));
11347
11323
  } else
11348
11324
  N = M = 0;
11349
11325
  }
11350
- I > epsilon$2 ? M > epsilon$2 ? (S = cornerTangents(j, W, $, w, p, M, v), V = cornerTangents(R, z, L, A, p, M, v), i.moveTo(S.cx + S.x01, S.cy + S.y01), M < F ? i.arc(S.cx, S.cy, M, atan2(S.y01, S.x01), atan2(V.y01, V.x01), !v) : (i.arc(S.cx, S.cy, M, atan2(S.y01, S.x01), atan2(S.y11, S.x11), !v), i.arc(0, 0, p, atan2(S.cy + S.y11, S.cx + S.x11), atan2(V.cy + V.y11, V.cx + V.x11), !v), i.arc(V.cx, V.cy, M, atan2(V.y11, V.x11), atan2(V.y01, V.x01), !v))) : (i.moveTo($, w), i.arc(0, 0, p, _, k, !v)) : i.moveTo($, w), !(f > epsilon$2) || !(D > epsilon$2) ? i.lineTo(L, A) : N > epsilon$2 ? (S = cornerTangents(L, A, R, z, f, -N, v), V = cornerTangents($, w, j, W, f, -N, v), i.lineTo(S.cx + S.x01, S.cy + S.y01), N < F ? i.arc(S.cx, S.cy, N, atan2(S.y01, S.x01), atan2(V.y01, V.x01), !v) : (i.arc(S.cx, S.cy, N, atan2(S.y01, S.x01), atan2(S.y11, S.x11), !v), i.arc(0, 0, f, atan2(S.cy + S.y11, S.cx + S.x11), atan2(V.cy + V.y11, V.cx + V.x11), v), i.arc(V.cx, V.cy, N, atan2(V.y11, V.x11), atan2(V.y01, V.x01), !v))) : i.arc(0, 0, f, T, C, v);
11326
+ I > epsilon$2 ? M > epsilon$2 ? (S = cornerTangents(j, W, $, w, p, M, _), V = cornerTangents(R, z, L, A, p, M, _), i.moveTo(S.cx + S.x01, S.cy + S.y01), M < F ? i.arc(S.cx, S.cy, M, atan2(S.y01, S.x01), atan2(V.y01, V.x01), !_) : (i.arc(S.cx, S.cy, M, atan2(S.y01, S.x01), atan2(S.y11, S.x11), !_), i.arc(0, 0, p, atan2(S.cy + S.y11, S.cx + S.x11), atan2(V.cy + V.y11, V.cx + V.x11), !_), i.arc(V.cx, V.cy, M, atan2(V.y11, V.x11), atan2(V.y01, V.x01), !_))) : (i.moveTo($, w), i.arc(0, 0, p, b, k, !_)) : i.moveTo($, w), !(f > epsilon$2) || !(D > epsilon$2) ? i.lineTo(L, A) : N > epsilon$2 ? (S = cornerTangents(L, A, R, z, f, -N, _), V = cornerTangents($, w, j, W, f, -N, _), i.lineTo(S.cx + S.x01, S.cy + S.y01), N < F ? i.arc(S.cx, S.cy, N, atan2(S.y01, S.x01), atan2(V.y01, V.x01), !_) : (i.arc(S.cx, S.cy, N, atan2(S.y01, S.x01), atan2(S.y11, S.x11), !_), i.arc(0, 0, f, atan2(S.cy + S.y11, S.cx + S.x11), atan2(V.cy + V.y11, V.cx + V.x11), _), i.arc(V.cx, V.cy, N, atan2(V.y11, V.x11), atan2(V.y01, V.x01), !_))) : i.arc(0, 0, f, T, C, _);
11351
11327
  }
11352
11328
  if (i.closePath(), d) return i = null, d + "" || null;
11353
11329
  }
@@ -11439,19 +11415,19 @@ function area(e, t, n) {
11439
11415
  var a = null, o = constant$2(!0), r = null, s = curveLinear, i = null, l = withPath(c);
11440
11416
  e = typeof e == "function" ? e : e === void 0 ? x : constant$2(+e), t = typeof t == "function" ? t : constant$2(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? y : constant$2(+n);
11441
11417
  function c(u) {
11442
- var f, p, m, g = (u = array$1(u)).length, b, v = !1, _, k = new Array(g), C = new Array(g);
11443
- for (r == null && (i = s(_ = l())), f = 0; f <= g; ++f) {
11444
- if (!(f < g && o(b = u[f], f, u)) === v)
11445
- if (v = !v)
11418
+ var f, p, m, g = (u = array$1(u)).length, v, _ = !1, b, k = new Array(g), C = new Array(g);
11419
+ for (r == null && (i = s(b = l())), f = 0; f <= g; ++f) {
11420
+ if (!(f < g && o(v = u[f], f, u)) === _)
11421
+ if (_ = !_)
11446
11422
  p = f, i.areaStart(), i.lineStart();
11447
11423
  else {
11448
11424
  for (i.lineEnd(), i.lineStart(), m = f - 1; m >= p; --m)
11449
11425
  i.point(k[m], C[m]);
11450
11426
  i.lineEnd(), i.areaEnd();
11451
11427
  }
11452
- v && (k[f] = +e(b, f, u), C[f] = +t(b, f, u), i.point(a ? +a(b, f, u) : k[f], n ? +n(b, f, u) : C[f]));
11428
+ _ && (k[f] = +e(v, f, u), C[f] = +t(v, f, u), i.point(a ? +a(v, f, u) : k[f], n ? +n(v, f, u) : C[f]));
11453
11429
  }
11454
- if (_) return i = null, _ + "" || null;
11430
+ if (b) return i = null, b + "" || null;
11455
11431
  }
11456
11432
  function d() {
11457
11433
  return line().defined(o).curve(s).context(r);
@@ -11491,21 +11467,21 @@ function identity$1(e) {
11491
11467
  function pie() {
11492
11468
  var e = identity$1, t = descending, n = null, a = constant$2(0), o = constant$2(tau$1), r = constant$2(0);
11493
11469
  function s(i) {
11494
- var l, c = (i = array$1(i)).length, d, u, f = 0, p = new Array(c), m = new Array(c), g = +a.apply(this, arguments), b = Math.min(tau$1, Math.max(-tau$1, o.apply(this, arguments) - g)), v, _ = Math.min(Math.abs(b) / c, r.apply(this, arguments)), k = _ * (b < 0 ? -1 : 1), C;
11470
+ var l, c = (i = array$1(i)).length, d, u, f = 0, p = new Array(c), m = new Array(c), g = +a.apply(this, arguments), v = Math.min(tau$1, Math.max(-tau$1, o.apply(this, arguments) - g)), _, b = Math.min(Math.abs(v) / c, r.apply(this, arguments)), k = b * (v < 0 ? -1 : 1), C;
11495
11471
  for (l = 0; l < c; ++l)
11496
11472
  (C = m[p[l] = l] = +e(i[l], l, i)) > 0 && (f += C);
11497
11473
  for (t != null ? p.sort(function(T, D) {
11498
11474
  return t(m[T], m[D]);
11499
11475
  }) : n != null && p.sort(function(T, D) {
11500
11476
  return n(i[T], i[D]);
11501
- }), l = 0, u = f ? (b - c * k) / f : 0; l < c; ++l, g = v)
11502
- d = p[l], C = m[d], v = g + (C > 0 ? C * u : 0) + k, m[d] = {
11477
+ }), l = 0, u = f ? (v - c * k) / f : 0; l < c; ++l, g = _)
11478
+ d = p[l], C = m[d], _ = g + (C > 0 ? C * u : 0) + k, m[d] = {
11503
11479
  data: i[d],
11504
11480
  index: l,
11505
11481
  value: C,
11506
11482
  startAngle: g,
11507
- endAngle: v,
11508
- padAngle: _
11483
+ endAngle: _,
11484
+ padAngle: b
11509
11485
  };
11510
11486
  return m;
11511
11487
  }
@@ -11961,11 +11937,11 @@ function selection_data(e, t) {
11961
11937
  var n = t ? bindKey : bindIndex, a = this._parents, o = this._groups;
11962
11938
  typeof e != "function" && (e = constant$1(e));
11963
11939
  for (var r = o.length, s = new Array(r), i = new Array(r), l = new Array(r), c = 0; c < r; ++c) {
11964
- var d = a[c], u = o[c], f = u.length, p = arraylike(e.call(d, d && d.__data__, c, a)), m = p.length, g = i[c] = new Array(m), b = s[c] = new Array(m), v = l[c] = new Array(f);
11965
- n(d, u, g, b, v, p, t);
11966
- for (var _ = 0, k = 0, C, T; _ < m; ++_)
11967
- if (C = g[_]) {
11968
- for (_ >= k && (k = _ + 1); !(T = b[k]) && ++k < m; ) ;
11940
+ var d = a[c], u = o[c], f = u.length, p = arraylike(e.call(d, d && d.__data__, c, a)), m = p.length, g = i[c] = new Array(m), v = s[c] = new Array(m), _ = l[c] = new Array(f);
11941
+ n(d, u, g, v, _, p, t);
11942
+ for (var b = 0, k = 0, C, T; b < m; ++b)
11943
+ if (C = g[b]) {
11944
+ for (b >= k && (k = b + 1); !(T = v[k]) && ++k < m; ) ;
11969
11945
  C._next = T || null;
11970
11946
  }
11971
11947
  }
@@ -12416,15 +12392,15 @@ function entering() {
12416
12392
  function axis(e, t) {
12417
12393
  var n = [], a = null, o = null, r = 6, s = 6, i = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === top || e === left ? -1 : 1, d = e === left || e === right ? "x" : "y", u = e === top || e === bottom ? translateX : translateY;
12418
12394
  function f(p) {
12419
- var m = a ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = o ?? (t.tickFormat ? t.tickFormat.apply(t, n) : identity), b = Math.max(r, 0) + i, v = t.range(), _ = +v[0] + l, k = +v[v.length - 1] + l, C = (t.bandwidth ? center : number)(t.copy(), l), T = p.selection ? p.selection() : p, D = T.selectAll(".domain").data([null]), I = T.selectAll(".tick").data(m, t).order(), E = I.exit(), O = I.enter().append("g").attr("class", "tick"), F = I.select("line"), N = I.select("text");
12420
- D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(O), F = F.merge(O.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), N = N.merge(O.append("text").attr("fill", "currentColor").attr(d, c * b).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== T && (D = D.transition(p), I = I.transition(p), F = F.transition(p), N = N.transition(p), E = E.transition(p).attr("opacity", epsilon).attr("transform", function(M) {
12395
+ var m = a ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = o ?? (t.tickFormat ? t.tickFormat.apply(t, n) : identity), v = Math.max(r, 0) + i, _ = t.range(), b = +_[0] + l, k = +_[_.length - 1] + l, C = (t.bandwidth ? center : number)(t.copy(), l), T = p.selection ? p.selection() : p, D = T.selectAll(".domain").data([null]), I = T.selectAll(".tick").data(m, t).order(), E = I.exit(), O = I.enter().append("g").attr("class", "tick"), F = I.select("line"), N = I.select("text");
12396
+ D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(O), F = F.merge(O.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), N = N.merge(O.append("text").attr("fill", "currentColor").attr(d, c * v).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== T && (D = D.transition(p), I = I.transition(p), F = F.transition(p), N = N.transition(p), E = E.transition(p).attr("opacity", epsilon).attr("transform", function(M) {
12421
12397
  return isFinite(M = C(M)) ? u(M + l) : this.getAttribute("transform");
12422
12398
  }), O.attr("opacity", epsilon).attr("transform", function(M) {
12423
12399
  var S = this.parentNode.__axis;
12424
12400
  return u((S && isFinite(S = S(M)) ? S : C(M)) + l);
12425
- })), E.remove(), D.attr("d", e === left || e === right ? s ? "M" + c * s + "," + _ + "H" + l + "V" + k + "H" + c * s : "M" + l + "," + _ + "V" + k : s ? "M" + _ + "," + c * s + "V" + l + "H" + k + "V" + c * s : "M" + _ + "," + l + "H" + k), I.attr("opacity", 1).attr("transform", function(M) {
12401
+ })), E.remove(), D.attr("d", e === left || e === right ? s ? "M" + c * s + "," + b + "H" + l + "V" + k + "H" + c * s : "M" + l + "," + b + "V" + k : s ? "M" + b + "," + c * s + "V" + l + "H" + k + "V" + c * s : "M" + b + "," + l + "H" + k), I.attr("opacity", 1).attr("transform", function(M) {
12426
12402
  return u(C(M) + l);
12427
- }), F.attr(d + "2", c * r), N.attr(d, c * b).text(g), T.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), T.each(function() {
12403
+ }), F.attr(d + "2", c * r), N.attr(d, c * v).text(g), T.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), T.each(function() {
12428
12404
  this.__axis = C;
12429
12405
  });
12430
12406
  }
@@ -12486,8 +12462,8 @@ var useChart = () => inject("chart"), usePoints = (e, t = { stacked: !1, type: "
12486
12462
  }), useBars = (e, t = { maxWidth: -1, gap: 5, stacked: !1, type: "bar" }) => {
12487
12463
  const n = ref([]), a = useChart(), { stacked: o, type: r, gap: s } = t;
12488
12464
  function i() {
12489
- const { primary: p, secondary: m } = a.scales, g = p.type === "band" ? p : m, b = p.type === "band" ? m : p;
12490
- return { bandScale: g, linearScale: b };
12465
+ const { primary: p, secondary: m } = a.scales, g = p.type === "band" ? p : m, v = p.type === "band" ? m : p;
12466
+ return { bandScale: g, linearScale: v };
12491
12467
  }
12492
12468
  function l() {
12493
12469
  if (o)
@@ -12506,15 +12482,15 @@ var useChart = () => inject("chart"), usePoints = (e, t = { stacked: !1, type: "
12506
12482
  return (m - g) / 2;
12507
12483
  }
12508
12484
  function u(p, m) {
12509
- const { bandScale: g, linearScale: b } = i(), v = l(), _ = c(), k = d();
12485
+ const { bandScale: g, linearScale: v } = i(), _ = l(), b = c(), k = d();
12510
12486
  return m.map((C) => {
12511
- const T = { x: 0, y: 0, width: 0, height: 0, props: { values: [...C], data: C.data } }, D = g.scale(C.data[p]), [I, E] = b.map(C);
12512
- return a.config.direction === "horizontal" ? (T.y = Math.min(I, E), T.height = Math.abs(I - E), T.x = k + D + v * _ + s / 2, T.width = _) : a.config.direction === "vertical" && (T.x = Math.min(I, E), T.width = Math.abs(I - E), T.y = k + D + v * _ + s / 2, T.height = _), T;
12487
+ const T = { x: 0, y: 0, width: 0, height: 0, props: { values: [...C], data: C.data } }, D = g.scale(C.data[p]), [I, E] = v.map(C);
12488
+ return a.config.direction === "horizontal" ? (T.y = Math.min(I, E), T.height = Math.abs(I - E), T.x = k + D + _ * b + s / 2, T.width = b) : a.config.direction === "vertical" && (T.x = Math.min(I, E), T.width = Math.abs(I - E), T.y = k + D + _ * b + s / 2, T.height = b), T;
12513
12489
  });
12514
12490
  }
12515
12491
  function f() {
12516
- const p = o ? a.getStackedKeys(1, r) : [e[1]], [m, g] = e, v = a.getStackedData(p).find((_) => _.key === g);
12517
- v && (n.value = u(m, v));
12492
+ const p = o ? a.getStackedKeys(1, r) : [e[1]], [m, g] = e, _ = a.getStackedData(p).find((b) => b.key === g);
12493
+ _ && (n.value = u(m, _));
12518
12494
  }
12519
12495
  return watch(a.updates, () => {
12520
12496
  f();
@@ -12677,19 +12653,19 @@ var script$c = defineComponent({
12677
12653
  if (e.config.controlHover === !1)
12678
12654
  return;
12679
12655
  c.hover = !0, c.position = { x: pointer(p)[0], y: pointer(p)[1] };
12680
- const { primary: m } = r.scales, g = r.getKeys(0), b = r.getData(g);
12656
+ const { primary: m } = r.scales, g = r.getKeys(0), v = r.getData(g);
12681
12657
  if (r.config.direction === "horizontal")
12682
12658
  if (m.type === "band") {
12683
- const v = m.bandwidth(), _ = c.position.x - r.canvas.x;
12684
- c.index = Math.round((_ + v / 2) / v) - 1;
12659
+ const _ = m.bandwidth(), b = c.position.x - r.canvas.x;
12660
+ c.index = Math.round((b + _ / 2) / _) - 1;
12685
12661
  } else
12686
- c.index = bisectCenter(b, m.scale.invert(c.position.x));
12662
+ c.index = bisectCenter(v, m.scale.invert(c.position.x));
12687
12663
  else if (r.config.direction === "vertical")
12688
12664
  if (m.type === "band") {
12689
- const v = m.bandwidth(), _ = c.position.y - r.canvas.y;
12690
- c.index = Math.round((_ + v / 2) / v) - 1;
12665
+ const _ = m.bandwidth(), b = c.position.y - r.canvas.y;
12666
+ c.index = Math.round((b + _ / 2) / _) - 1;
12691
12667
  } else
12692
- c.index = bisectCenter(b, m.scale.invert(c.position.y));
12668
+ c.index = bisectCenter(v, m.scale.invert(c.position.y));
12693
12669
  }
12694
12670
  return { axBottomEl: a, axLeftEl: n, chartEl: t, hideX: i, hideY: l, rotateX: s, onMouseMove: f, onMouseOut: u };
12695
12671
  }
@@ -13071,22 +13047,22 @@ var script$7 = defineComponent({
13071
13047
  u = null;
13072
13048
  }
13073
13049
  function f() {
13074
- const v = n.getData([e.dataKeys[1]]);
13075
- i.value = pie().sort(u)(v);
13050
+ const _ = n.getData([e.dataKeys[1]]);
13051
+ i.value = pie().sort(u)(_);
13076
13052
  }
13077
- function p(v) {
13078
- return l(v.toString());
13053
+ function p(_) {
13054
+ return l(_.toString());
13079
13055
  }
13080
- function m(v, _) {
13081
- a.hover = !0, a.index = _;
13082
- const [k, C] = pointer(v);
13056
+ function m(_, b) {
13057
+ a.hover = !0, a.index = b;
13058
+ const [k, C] = pointer(_);
13083
13059
  a.position = { x: k + o.value, y: C + o.value };
13084
13060
  }
13085
13061
  function g() {
13086
13062
  a.hover = !1, a.index = -1;
13087
13063
  }
13088
- function b(v) {
13089
- mapKeys(kebabize, v);
13064
+ function v(_) {
13065
+ mapKeys(kebabize, _);
13090
13066
  }
13091
13067
  return watch(n.updates, () => {
13092
13068
  o.value = Math.min(n.canvas.width - n.canvas.x, (n.canvas.height - n.canvas.y) / 2), d.value = `translate(${o.value + n.canvas.x}, ${o.value + n.canvas.y})`, f();
@@ -13097,7 +13073,7 @@ var script$7 = defineComponent({
13097
13073
  transform: d,
13098
13074
  getColor: p,
13099
13075
  hideTooltip: g,
13100
- toKebabCase: b,
13076
+ toKebabCase: v,
13101
13077
  showTooltip: m
13102
13078
  };
13103
13079
  }
@@ -13741,18 +13717,18 @@ function defaultParentId(e) {
13741
13717
  function stratify() {
13742
13718
  var e = defaultId, t = defaultParentId, n;
13743
13719
  function a(o) {
13744
- var r = Array.from(o), s = e, i = t, l, c, d, u, f, p, m, g, b = /* @__PURE__ */ new Map();
13720
+ var r = Array.from(o), s = e, i = t, l, c, d, u, f, p, m, g, v = /* @__PURE__ */ new Map();
13745
13721
  if (n != null) {
13746
- const v = r.map((C, T) => normalize(n(C, T, o))), _ = v.map(parentof), k = new Set(v).add("");
13747
- for (const C of _)
13748
- k.has(C) || (k.add(C), v.push(C), _.push(parentof(C)), r.push(imputed));
13749
- s = (C, T) => v[T], i = (C, T) => _[T];
13722
+ const _ = r.map((C, T) => normalize(n(C, T, o))), b = _.map(parentof), k = new Set(_).add("");
13723
+ for (const C of b)
13724
+ k.has(C) || (k.add(C), _.push(C), b.push(parentof(C)), r.push(imputed));
13725
+ s = (C, T) => _[T], i = (C, T) => b[T];
13750
13726
  }
13751
13727
  for (d = 0, l = r.length; d < l; ++d)
13752
- c = r[d], p = r[d] = new Node$1(c), (m = s(c, d, o)) != null && (m += "") && (g = p.id = m, b.set(g, b.has(g) ? ambiguous : p)), (m = i(c, d, o)) != null && (m += "") && (p.parent = m);
13728
+ c = r[d], p = r[d] = new Node$1(c), (m = s(c, d, o)) != null && (m += "") && (g = p.id = m, v.set(g, v.has(g) ? ambiguous : p)), (m = i(c, d, o)) != null && (m += "") && (p.parent = m);
13753
13729
  for (d = 0; d < l; ++d)
13754
13730
  if (p = r[d], m = p.parent) {
13755
- if (f = b.get(m), !f) throw new Error("missing: " + m);
13731
+ if (f = v.get(m), !f) throw new Error("missing: " + m);
13756
13732
  if (f === ambiguous) throw new Error("ambiguous: " + m);
13757
13733
  f.children ? f.children.push(p) : f.children = [p], p.parent = f;
13758
13734
  } else {
@@ -13763,11 +13739,11 @@ function stratify() {
13763
13739
  if (n != null) {
13764
13740
  for (; u.data === imputed && u.children.length === 1; )
13765
13741
  u = u.children[0], --l;
13766
- for (let v = r.length - 1; v >= 0 && (p = r[v], p.data === imputed); --v)
13742
+ for (let _ = r.length - 1; _ >= 0 && (p = r[_], p.data === imputed); --_)
13767
13743
  p.data = null;
13768
13744
  }
13769
- if (u.parent = preroot, u.eachBefore(function(v) {
13770
- v.depth = v.parent.depth + 1, --l;
13745
+ if (u.parent = preroot, u.eachBefore(function(_) {
13746
+ _.depth = _.parent.depth + 1, --l;
13771
13747
  }).eachBefore(computeHeight), u.parent = null, l > 0) throw new Error("cycle");
13772
13748
  return u;
13773
13749
  }
@@ -13804,19 +13780,19 @@ function treemapSlice(e, t, n, a, o) {
13804
13780
  }
13805
13781
  var phi = (1 + Math.sqrt(5)) / 2;
13806
13782
  function squarifyRatio(e, t, n, a, o, r) {
13807
- for (var s = [], i = t.children, l, c, d = 0, u = 0, f = i.length, p, m, g = t.value, b, v, _, k, C, T, D; d < f; ) {
13783
+ for (var s = [], i = t.children, l, c, d = 0, u = 0, f = i.length, p, m, g = t.value, v, _, b, k, C, T, D; d < f; ) {
13808
13784
  p = o - n, m = r - a;
13809
13785
  do
13810
- b = i[u++].value;
13811
- while (!b && u < f);
13812
- for (v = _ = b, T = Math.max(m / p, p / m) / (g * e), D = b * b * T, C = Math.max(_ / D, D / v); u < f; ++u) {
13813
- if (b += c = i[u].value, c < v && (v = c), c > _ && (_ = c), D = b * b * T, k = Math.max(_ / D, D / v), k > C) {
13814
- b -= c;
13786
+ v = i[u++].value;
13787
+ while (!v && u < f);
13788
+ for (_ = b = v, T = Math.max(m / p, p / m) / (g * e), D = v * v * T, C = Math.max(b / D, D / _); u < f; ++u) {
13789
+ if (v += c = i[u].value, c < _ && (_ = c), c > b && (b = c), D = v * v * T, k = Math.max(b / D, D / _), k > C) {
13790
+ v -= c;
13815
13791
  break;
13816
13792
  }
13817
13793
  C = k;
13818
13794
  }
13819
- s.push(l = { value: b, dice: p < m, children: i.slice(d, u) }), l.dice ? treemapDice(l, n, a, o, g ? a += m * b / g : r) : treemapSlice(l, n, a, g ? n += p * b / g : o, r), g -= b, d = u;
13795
+ s.push(l = { value: v, dice: p < m, children: i.slice(d, u) }), l.dice ? treemapDice(l, n, a, o, g ? a += m * v / g : r) : treemapSlice(l, n, a, g ? n += p * v / g : o, r), g -= v, d = u;
13820
13796
  }
13821
13797
  return s;
13822
13798
  }
@@ -13834,8 +13810,8 @@ function treemap() {
13834
13810
  return f.x0 = f.y0 = 0, f.x1 = n, f.y1 = a, f.eachBefore(u), o = [0], t && f.eachBefore(roundNode), f;
13835
13811
  }
13836
13812
  function u(f) {
13837
- var p = o[f.depth], m = f.x0 + p, g = f.y0 + p, b = f.x1 - p, v = f.y1 - p;
13838
- b < m && (m = b = (m + b) / 2), v < g && (g = v = (g + v) / 2), f.x0 = m, f.y0 = g, f.x1 = b, f.y1 = v, f.children && (p = o[f.depth + 1] = r(f) / 2, m += c(f) - p, g += s(f) - p, b -= i(f) - p, v -= l(f) - p, b < m && (m = b = (m + b) / 2), v < g && (g = v = (g + v) / 2), e(f, m, g, b, v));
13813
+ var p = o[f.depth], m = f.x0 + p, g = f.y0 + p, v = f.x1 - p, _ = f.y1 - p;
13814
+ v < m && (m = v = (m + v) / 2), _ < g && (g = _ = (g + _) / 2), f.x0 = m, f.y0 = g, f.x1 = v, f.y1 = _, f.children && (p = o[f.depth + 1] = r(f) / 2, m += c(f) - p, g += s(f) - p, v -= i(f) - p, _ -= l(f) - p, v < m && (m = v = (m + v) / 2), _ < g && (g = _ = (g + _) / 2), e(f, m, g, v, _));
13839
13815
  }
13840
13816
  return d.round = function(f) {
13841
13817
  return arguments.length ? (t = !!f, d) : t;
@@ -13900,13 +13876,13 @@ var script$1 = defineComponent({
13900
13876
  height: e.size.height - e.margin.bottom
13901
13877
  }), r = ref([]);
13902
13878
  function s() {
13903
- const p = extent(n.value.map((b) => b[e.dataKeys[1]])), m = linear().domain(p).range([0, 100]).nice(), g = sequential().domain(p).interpolator(e.colorFn());
13879
+ const p = extent(n.value.map((v) => v[e.dataKeys[1]])), m = linear().domain(p).range([0, 100]).nice(), g = sequential().domain(p).interpolator(e.colorFn());
13904
13880
  return { x: m, y: g };
13905
13881
  }
13906
13882
  function i() {
13907
13883
  const { y: p } = s();
13908
- return l(n.value).leaves().map((g, b) => ({
13909
- idx: b,
13884
+ return l(n.value).leaves().map((g, v) => ({
13885
+ idx: v,
13910
13886
  x0: o.value.x + g.x0,
13911
13887
  x1: o.value.x + g.x1,
13912
13888
  y0: o.value.y + g.y0,
@@ -13919,12 +13895,12 @@ var script$1 = defineComponent({
13919
13895
  }));
13920
13896
  }
13921
13897
  function l(p) {
13922
- const { x: m } = s(), g = treemap().size([o.value.width - o.value.x, o.value.height - o.value.y]).padding(e.padding), v = stratify().id((_) => _.name).parentId((_) => _.parent)([{ name: "root" }].concat(p.map((_) => ({
13923
- name: _[e.dataKeys[0]],
13924
- value: _[e.dataKeys[1]],
13898
+ const { x: m } = s(), g = treemap().size([o.value.width - o.value.x, o.value.height - o.value.y]).padding(e.padding), _ = stratify().id((b) => b.name).parentId((b) => b.parent)([{ name: "root" }].concat(p.map((b) => ({
13899
+ name: b[e.dataKeys[0]],
13900
+ value: b[e.dataKeys[1]],
13925
13901
  parent: "root"
13926
13902
  }))));
13927
- return v.sum((_) => m(_.value)), g(v), v;
13903
+ return _.sum((b) => m(b.value)), g(_), _;
13928
13904
  }
13929
13905
  const c = (p) => mapKeys(kebabize, p), d = (p) => {
13930
13906
  const m = {
@@ -14537,16 +14513,16 @@ function createAsyncResult(e, t, n, a, o, r, s) {
14537
14513
  const g = watch([t, a].concat(c, f), () => {
14538
14514
  if (i && !a.value || l && !u.value && !n.value)
14539
14515
  return;
14540
- let b;
14516
+ let v;
14541
14517
  try {
14542
- b = callRule(e, t, d, s);
14543
- } catch (v) {
14544
- b = Promise.reject(v);
14545
- }
14546
- m.value++, n.value = !!m.value, p.value = !1, Promise.resolve(b).then((v) => {
14547
- m.value--, n.value = !!m.value, r.value = v, p.value = normalizeValidatorResponse(v);
14548
- }).catch((v) => {
14549
- m.value--, n.value = !!m.value, r.value = v, p.value = !0;
14518
+ v = callRule(e, t, d, s);
14519
+ } catch (_) {
14520
+ v = Promise.reject(_);
14521
+ }
14522
+ m.value++, n.value = !!m.value, p.value = !1, Promise.resolve(v).then((_) => {
14523
+ m.value--, n.value = !!m.value, r.value = _, p.value = normalizeValidatorResponse(_);
14524
+ }).catch((_) => {
14525
+ m.value--, n.value = !!m.value, r.value = _, p.value = !0;
14550
14526
  });
14551
14527
  }, {
14552
14528
  immediate: !0,
@@ -14589,9 +14565,9 @@ function createValidatorResult(e, t, n, a, o, r, s, i, l, c, d) {
14589
14565
  $invalid: m,
14590
14566
  $unwatch: g
14591
14567
  } = createSyncResult(e.$validator, t, n, a, p, o, l, c);
14592
- const b = e.$message;
14568
+ const v = e.$message;
14593
14569
  return {
14594
- $message: isFunction$2(b) ? computed$1(() => b(unwrapObj({
14570
+ $message: isFunction$2(v) ? computed$1(() => v(unwrapObj({
14595
14571
  $pending: u,
14596
14572
  $invalid: m,
14597
14573
  $params: unwrapObj(f),
@@ -14600,7 +14576,7 @@ function createValidatorResult(e, t, n, a, o, r, s, i, l, c, d) {
14600
14576
  $validator: r,
14601
14577
  $propertyPath: i,
14602
14578
  $property: s
14603
- }))) : b || "",
14579
+ }))) : v || "",
14604
14580
  $params: f,
14605
14581
  $pending: u,
14606
14582
  $invalid: m,
@@ -14660,29 +14636,29 @@ function createValidationResults(e, t, n, a, o, r, s, i, l) {
14660
14636
  };
14661
14637
  return c.length ? (c.forEach((g) => {
14662
14638
  m[g] = createValidatorResult(e[g], t, m.$dirty, r, s, g, n, o, l, f, p);
14663
- }), m.$externalResults = computed$1(() => i.value ? [].concat(i.value).map((g, b) => ({
14639
+ }), m.$externalResults = computed$1(() => i.value ? [].concat(i.value).map((g, v) => ({
14664
14640
  $propertyPath: o,
14665
14641
  $property: n,
14666
14642
  $validator: "$externalResults",
14667
- $uid: `${o}-externalResult-${b}`,
14643
+ $uid: `${o}-externalResult-${v}`,
14668
14644
  $message: g,
14669
14645
  $params: {},
14670
14646
  $response: null,
14671
14647
  $pending: !1
14672
14648
  })) : []), m.$invalid = computed$1(() => {
14673
- const g = c.some((b) => unref(m[b].$invalid));
14649
+ const g = c.some((v) => unref(m[v].$invalid));
14674
14650
  return f.value = g, !!m.$externalResults.value.length || g;
14675
14651
  }), m.$pending = computed$1(() => c.some((g) => unref(m[g].$pending))), m.$error = computed$1(() => m.$dirty.value ? m.$pending.value || m.$invalid.value : !1), m.$silentErrors = computed$1(() => c.filter((g) => unref(m[g].$invalid)).map((g) => {
14676
- const b = m[g];
14652
+ const v = m[g];
14677
14653
  return reactive({
14678
14654
  $propertyPath: o,
14679
14655
  $property: n,
14680
14656
  $validator: g,
14681
14657
  $uid: `${o}-${g}`,
14682
- $message: b.$message,
14683
- $params: b.$params,
14684
- $response: b.$response,
14685
- $pending: b.$pending
14658
+ $message: v.$message,
14659
+ $params: v.$params,
14660
+ $response: v.$response,
14661
+ $pending: v.$pending
14686
14662
  });
14687
14663
  }).concat(m.$externalResults.value)), m.$errors = computed$1(() => m.$dirty.value ? m.$silentErrors.value : []), m.$unwatch = () => c.forEach((g) => {
14688
14664
  m[g].$unwatch();
@@ -14712,10 +14688,10 @@ function createMetaFields(e, t, n) {
14712
14688
  e.$dirty.value = m;
14713
14689
  }
14714
14690
  }), r = computed$1(() => {
14715
- const m = unref(e.$silentErrors) || [], g = a.value.filter((b) => (unref(b).$silentErrors || []).length).reduce((b, v) => b.concat(...v.$silentErrors), []);
14691
+ const m = unref(e.$silentErrors) || [], g = a.value.filter((v) => (unref(v).$silentErrors || []).length).reduce((v, _) => v.concat(..._.$silentErrors), []);
14716
14692
  return m.concat(g);
14717
14693
  }), s = computed$1(() => {
14718
- const m = unref(e.$errors) || [], g = a.value.filter((b) => (unref(b).$errors || []).length).reduce((b, v) => b.concat(...v.$errors), []);
14694
+ const m = unref(e.$errors) || [], g = a.value.filter((v) => (unref(v).$errors || []).length).reduce((v, _) => v.concat(..._.$errors), []);
14719
14695
  return m.concat(g);
14720
14696
  }), i = computed$1(() => a.value.some((m) => m.$invalid) || unref(e.$invalid) || !1), l = computed$1(() => a.value.some((m) => unref(m.$pending)) || unref(e.$pending) || !1), c = computed$1(() => a.value.some((m) => m.$dirty) || a.value.some((m) => m.$anyDirty) || o.value), d = computed$1(() => o.value ? l.value || i.value : !1), u = () => {
14721
14697
  e.$touch(), a.value.forEach((m) => {
@@ -14760,13 +14736,13 @@ function setValidations(e) {
14760
14736
  nestedValidators: f,
14761
14737
  config: p,
14762
14738
  validationGroups: m
14763
- } = sortValidations(t), g = _objectSpread2$1(_objectSpread2$1({}, i), p), b = a ? computed$1(() => {
14739
+ } = sortValidations(t), g = _objectSpread2$1(_objectSpread2$1({}, i), p), v = a ? computed$1(() => {
14764
14740
  const A = unref(n);
14765
14741
  return A ? unref(A[a]) : void 0;
14766
- }) : n, v = _objectSpread2$1({}, unref(c) || {}), _ = computed$1(() => {
14742
+ }) : n, _ = _objectSpread2$1({}, unref(c) || {}), b = computed$1(() => {
14767
14743
  const A = unref(c);
14768
14744
  return a ? A ? unref(A[a]) : void 0 : A;
14769
- }), k = createValidationResults(u, b, a, s, d, g, l, _, n), C = collectNestedValidationResults(f, b, d, s, g, l, _), T = {};
14745
+ }), k = createValidationResults(u, v, a, s, d, g, l, b, n), C = collectNestedValidationResults(f, v, d, s, g, l, b), T = {};
14770
14746
  m && Object.entries(m).forEach((A) => {
14771
14747
  let [R, z] = A;
14772
14748
  T[R] = {
@@ -14789,17 +14765,17 @@ function setValidations(e) {
14789
14765
  $silentErrors: V,
14790
14766
  $commit: P
14791
14767
  } = createMetaFields(k, C, r), B = a ? computed$1({
14792
- get: () => unref(b),
14768
+ get: () => unref(v),
14793
14769
  set: (A) => {
14794
14770
  D.value = !0;
14795
14771
  const R = unref(n), z = unref(c);
14796
- z && (z[a] = v[a]), isRef(R[a]) ? R[a].value = A : R[a] = A;
14772
+ z && (z[a] = _[a]), isRef(R[a]) ? R[a].value = A : R[a] = A;
14797
14773
  }
14798
14774
  }) : null;
14799
- a && g.$autoDirty && watch(b, () => {
14775
+ a && g.$autoDirty && watch(v, () => {
14800
14776
  D.value || M();
14801
14777
  const A = unref(c);
14802
- A && (A[a] = v[a]);
14778
+ A && (A[a] = _[a]);
14803
14779
  }, {
14804
14780
  flush: "sync"
14805
14781
  });
@@ -14815,9 +14791,9 @@ function setValidations(e) {
14815
14791
  return (r.value || {})[A];
14816
14792
  }
14817
14793
  function L() {
14818
- isRef(c) ? c.value = v : Object.keys(v).length === 0 ? Object.keys(c).forEach((A) => {
14794
+ isRef(c) ? c.value = _ : Object.keys(_).length === 0 ? Object.keys(c).forEach((A) => {
14819
14795
  delete c[A];
14820
- }) : Object.assign(c, v);
14796
+ }) : Object.assign(c, _);
14821
14797
  }
14822
14798
  return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, k), {}, {
14823
14799
  $model: B,
@@ -14931,11 +14907,11 @@ function useVuelidate(e, t) {
14931
14907
  childResults: ref({})
14932
14908
  };
14933
14909
  if (!e && d.validations) {
14934
- const b = d.validations;
14910
+ const v = d.validations;
14935
14911
  t = ref({}), onBeforeMount(() => {
14936
- t.value = c, watch(() => isFunction$2(b) ? b.call(t.value, new ComputedProxyFactory(t.value)) : b, (v) => {
14912
+ t.value = c, watch(() => isFunction$2(v) ? v.call(t.value, new ComputedProxyFactory(t.value)) : v, (_) => {
14937
14913
  u.value = setValidations({
14938
- validations: v,
14914
+ validations: _,
14939
14915
  state: t,
14940
14916
  childResults: p,
14941
14917
  resultsCache: f,
@@ -14948,10 +14924,10 @@ function useVuelidate(e, t) {
14948
14924
  });
14949
14925
  }), a = d.validationsConfig || a;
14950
14926
  } else {
14951
- const b = isRef(e) || isProxy(e) ? e : reactive(e || {});
14952
- watch(b, (v) => {
14927
+ const v = isRef(e) || isProxy(e) ? e : reactive(e || {});
14928
+ watch(v, (_) => {
14953
14929
  u.value = setValidations({
14954
- validations: v,
14930
+ validations: _,
14955
14931
  state: t,
14956
14932
  childResults: p,
14957
14933
  resultsCache: f,
@@ -14963,11 +14939,11 @@ function useVuelidate(e, t) {
14963
14939
  immediate: !0
14964
14940
  });
14965
14941
  }
14966
- return c && (m.forEach((b) => b(u, {
14942
+ return c && (m.forEach((v) => v(u, {
14967
14943
  $registerAs: o,
14968
14944
  $scope: r,
14969
14945
  $stopPropagation: s
14970
- })), onBeforeUnmount(() => g.forEach((b) => b(o)))), computed$1(() => _objectSpread2$1(_objectSpread2$1({}, unref(u.value)), p.value));
14946
+ })), onBeforeUnmount(() => g.forEach((v) => v(o)))), computed$1(() => _objectSpread2$1(_objectSpread2$1({}, unref(u.value)), p.value));
14971
14947
  }
14972
14948
  function ownKeys(e, t) {
14973
14949
  var n = Object.keys(e);
@@ -15043,12 +15019,12 @@ function forEach(e) {
15043
15019
  return unref(t).reduce((r, s, i) => {
15044
15020
  const l = Object.entries(s).reduce((c, d) => {
15045
15021
  let [u, f] = d;
15046
- const p = e[u] || {}, m = Object.entries(p).reduce((g, b) => {
15047
- let [v, _] = b;
15048
- const C = unwrapNormalizedValidator(_).call(this, f, s, i, ...a), T = unwrapValidatorResponse(C);
15049
- if (g.$data[v] = C, g.$data.$invalid = !T || !!g.$data.$invalid, g.$data.$error = g.$data.$invalid, !T) {
15050
- let D = _.$message || "";
15051
- const I = _.$params || {};
15022
+ const p = e[u] || {}, m = Object.entries(p).reduce((g, v) => {
15023
+ let [_, b] = v;
15024
+ const C = unwrapNormalizedValidator(b).call(this, f, s, i, ...a), T = unwrapValidatorResponse(C);
15025
+ if (g.$data[_] = C, g.$data.$invalid = !T || !!g.$data.$invalid, g.$data.$error = g.$data.$invalid, !T) {
15026
+ let D = b.$message || "";
15027
+ const I = b.$params || {};
15052
15028
  typeof D == "function" && (D = D({
15053
15029
  $pending: !1,
15054
15030
  $invalid: !T,
@@ -15062,7 +15038,7 @@ function forEach(e) {
15062
15038
  $response: C,
15063
15039
  $model: f,
15064
15040
  $pending: !1,
15065
- $validator: v
15041
+ $validator: _
15066
15042
  });
15067
15043
  }
15068
15044
  return {
@@ -16406,9 +16382,9 @@ const VsCarbonCalculatorQuestion = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["
16406
16382
  }
16407
16383
  }, _hoisted_1$1u = { class: "vs-carbon-calculator__wrapper" }, _hoisted_2$12 = { key: 1 };
16408
16384
  function _sfc_render$1I(e, t, n, a, o, r) {
16409
- const s = resolveComponent("VsCarbonCalculatorIntro"), i = resolveComponent("VsProgressBar"), l = resolveComponent("VsHeading"), c = resolveComponent("VsCarbonCalculatorQuestion"), d = resolveComponent("VsButton"), u = resolveComponent("VsCarbonCalculatorTip"), f = resolveComponent("VsCol"), p = resolveComponent("VsCarbonCalculatorRunningTotal"), m = resolveComponent("VsCarbonCalculatorResults"), g = resolveComponent("VsRow"), b = resolveComponent("VsContainer"), v = resolveComponent("VsWarning");
16385
+ const s = resolveComponent("VsCarbonCalculatorIntro"), i = resolveComponent("VsProgressBar"), l = resolveComponent("VsHeading"), c = resolveComponent("VsCarbonCalculatorQuestion"), d = resolveComponent("VsButton"), u = resolveComponent("VsCarbonCalculatorTip"), f = resolveComponent("VsCol"), p = resolveComponent("VsCarbonCalculatorRunningTotal"), m = resolveComponent("VsCarbonCalculatorResults"), g = resolveComponent("VsRow"), v = resolveComponent("VsContainer"), _ = resolveComponent("VsWarning");
16410
16386
  return openBlock(), createElementBlock("div", _hoisted_1$1u, [
16411
- createVNode(b, {
16387
+ createVNode(v, {
16412
16388
  class: "vs-carbon-calculator",
16413
16389
  "data-test": "vs-carbon-calculator"
16414
16390
  }, {
@@ -16443,23 +16419,23 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16443
16419
  ]),
16444
16420
  _: 1
16445
16421
  })) : createCommentVNode("", !0),
16446
- (openBlock(!0), createElementBlock(Fragment, null, renderList(e.formData.fields, (_, k) => withDirectives((openBlock(), createBlock(c, {
16422
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(e.formData.fields, (b, k) => withDirectives((openBlock(), createBlock(c, {
16447
16423
  ref_for: !0,
16448
16424
  ref: "questions",
16449
16425
  tabindex: "0",
16450
- key: _.name,
16451
- label: r.getQuestionLabel(_, k),
16452
- "label-for": _.name,
16453
- hint: r.getQuestionHint(_, k),
16454
- "field-class": r.conditionalElementClass(_.name),
16455
- "field-type": _.element,
16456
- "field-name": _.name,
16457
- options: r.getQuestionOptions(_, k),
16458
- minimum: _.element === "number" ? _.validation.min : 0,
16459
- maximum: _.element === "number" ? _.validation.max : 0,
16426
+ key: b.name,
16427
+ label: r.getQuestionLabel(b, k),
16428
+ "label-for": b.name,
16429
+ hint: r.getQuestionHint(b, k),
16430
+ "field-class": r.conditionalElementClass(b.name),
16431
+ "field-type": b.element,
16432
+ "field-name": b.name,
16433
+ options: r.getQuestionOptions(b, k),
16434
+ minimum: b.element === "number" ? b.validation.min : 0,
16435
+ maximum: b.element === "number" ? b.validation.max : 0,
16460
16436
  onUpdateFieldData: r.updateFieldData
16461
16437
  }, null, 8, ["label", "label-for", "hint", "field-class", "field-type", "field-name", "options", "minimum", "maximum", "onUpdateFieldData"])), [
16462
- [vShow, _.stage === e.activeStage]
16438
+ [vShow, b.stage === e.activeStage]
16463
16439
  ])), 128))
16464
16440
  ], 512), [
16465
16441
  [vShow, e.activeStage <= e.formData.fields.length]
@@ -16471,7 +16447,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16471
16447
  class: "my-100",
16472
16448
  variant: "secondary",
16473
16449
  icon: "fa-regular fa-plus",
16474
- onClick: t[0] || (t[0] = (_) => r.duplicateCurrentStage())
16450
+ onClick: t[0] || (t[0] = (b) => r.duplicateCurrentStage())
16475
16451
  }, {
16476
16452
  default: withCtx(() => [
16477
16453
  createTextVNode(toDisplayString(r.activeStageRepeatable), 1)
@@ -16515,7 +16491,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16515
16491
  variant: "primary",
16516
16492
  type: "submit",
16517
16493
  class: "vs-form__submit mt-300",
16518
- onClick: t[1] || (t[1] = (_) => r.forwardPage())
16494
+ onClick: t[1] || (t[1] = (b) => r.forwardPage())
16519
16495
  }, {
16520
16496
  default: withCtx(() => [
16521
16497
  createTextVNode(toDisplayString(n.labelsMap.begin), 1)
@@ -16536,7 +16512,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16536
16512
  type: "submit",
16537
16513
  class: "vs-form__submit mt-300 float-start",
16538
16514
  ref: "backPage",
16539
- onClick: t[2] || (t[2] = (_) => r.backwardPage())
16515
+ onClick: t[2] || (t[2] = (b) => r.backwardPage())
16540
16516
  }, {
16541
16517
  default: withCtx(() => [
16542
16518
  createTextVNode(toDisplayString(n.labelsMap.previous), 1)
@@ -16550,7 +16526,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16550
16526
  class: "vs-form__submit mt-300 float-end",
16551
16527
  ref: "forwardPage",
16552
16528
  disabled: e.activeStage > 0 && !e.answerSet,
16553
- onClick: t[3] || (t[3] = (_) => r.forwardPage())
16529
+ onClick: t[3] || (t[3] = (b) => r.forwardPage())
16554
16530
  }, {
16555
16531
  default: withCtx(() => [
16556
16532
  createTextVNode(toDisplayString(n.labelsMap.next), 1)
@@ -16563,7 +16539,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16563
16539
  type: "submit",
16564
16540
  class: "vs-form__submit mt-300 float-end",
16565
16541
  disabled: !e.answerSet,
16566
- onClick: t[4] || (t[4] = (_) => r.forwardPage())
16542
+ onClick: t[4] || (t[4] = (b) => r.forwardPage())
16567
16543
  }, {
16568
16544
  default: withCtx(() => [
16569
16545
  createTextVNode(toDisplayString(n.labelsMap.results), 1)
@@ -16575,7 +16551,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16575
16551
  variant: "primary",
16576
16552
  type: "submit",
16577
16553
  class: "vs-form__submit mt-300 float-end",
16578
- onClick: t[5] || (t[5] = (_) => r.restart())
16554
+ onClick: t[5] || (t[5] = (b) => r.restart())
16579
16555
  }, {
16580
16556
  default: withCtx(() => [
16581
16557
  createTextVNode(toDisplayString(n.labelsMap.restart), 1)
@@ -16591,7 +16567,7 @@ function _sfc_render$1I(e, t, n, a, o, r) {
16591
16567
  ]),
16592
16568
  _: 1
16593
16569
  }),
16594
- createVNode(v, null, {
16570
+ createVNode(_, null, {
16595
16571
  default: withCtx(() => [
16596
16572
  createTextVNode(toDisplayString(n.labelsMap.noJsMessage), 1)
16597
16573
  ]),
@@ -17714,35 +17690,35 @@ function wrapperClass(e = "") {
17714
17690
  }
17715
17691
  function updateSwiper(e) {
17716
17692
  let { nextEl: t, prevEl: n, scrollbarEl: a, paginationEl: o } = e;
17717
- const { swiper: r, slides: s, passedParams: i, changedParams: l } = e, c = l.filter((w) => w !== "children" && w !== "direction" && w !== "wrapperClass"), { params: d, pagination: u, navigation: f, scrollbar: p, virtual: m, thumbs: g } = r, b = i, v = d;
17718
- let _, k, C, T, D, I, E, O;
17719
- const F = b.thumbs, N = v.thumbs;
17720
- l.includes("thumbs") && isObject$1(F) && F.swiper && !F.swiper.destroyed && isObject$1(N) && (!N.swiper || N.swiper.destroyed) && (_ = !0);
17721
- const M = b.controller, S = v.controller;
17693
+ const { swiper: r, slides: s, passedParams: i, changedParams: l } = e, c = l.filter((w) => w !== "children" && w !== "direction" && w !== "wrapperClass"), { params: d, pagination: u, navigation: f, scrollbar: p, virtual: m, thumbs: g } = r, v = i, _ = d;
17694
+ let b, k, C, T, D, I, E, O;
17695
+ const F = v.thumbs, N = _.thumbs;
17696
+ l.includes("thumbs") && isObject$1(F) && F.swiper && !F.swiper.destroyed && isObject$1(N) && (!N.swiper || N.swiper.destroyed) && (b = !0);
17697
+ const M = v.controller, S = _.controller;
17722
17698
  l.includes("controller") && isObject$1(M) && M.control && isObject$1(S) && !S.control && (k = !0);
17723
- const V = b.pagination;
17724
- l.includes("pagination") && isObject$1(V) && (V.el || o) && (v.pagination || v.pagination === !1) && u && !u.el && (C = !0);
17725
- const P = b.scrollbar;
17726
- l.includes("scrollbar") && isObject$1(P) && (P.el || a) && (v.scrollbar || v.scrollbar === !1) && p && !p.el && (T = !0);
17727
- const B = b.navigation;
17728
- l.includes("navigation") && isObject$1(B) && (B.prevEl || n) && (B.nextEl || t) && (v.navigation || v.navigation === !1) && f && !f.prevEl && !f.nextEl && (D = !0);
17699
+ const V = v.pagination;
17700
+ l.includes("pagination") && isObject$1(V) && (V.el || o) && (_.pagination || _.pagination === !1) && u && !u.el && (C = !0);
17701
+ const P = v.scrollbar;
17702
+ l.includes("scrollbar") && isObject$1(P) && (P.el || a) && (_.scrollbar || _.scrollbar === !1) && p && !p.el && (T = !0);
17703
+ const B = v.navigation;
17704
+ l.includes("navigation") && isObject$1(B) && (B.prevEl || n) && (B.nextEl || t) && (_.navigation || _.navigation === !1) && f && !f.prevEl && !f.nextEl && (D = !0);
17729
17705
  const $ = (w) => {
17730
17706
  const L = r[w];
17731
17707
  if (!L)
17732
17708
  return;
17733
17709
  L.destroy();
17734
- const A = v[w], R = isObject$1(A) ? A : void 0;
17710
+ const A = _[w], R = isObject$1(A) ? A : void 0;
17735
17711
  w === "navigation" ? (r.isElement && (L.prevEl?.remove(), L.nextEl?.remove()), R && (R.prevEl = void 0, R.nextEl = void 0), L.prevEl = void 0, L.nextEl = void 0) : (r.isElement && L.el?.remove(), R && (R.el = void 0), L.el = void 0);
17736
17712
  };
17737
17713
  if (l.includes("loop") && r.isElement && (d.loop && !i.loop ? I = !0 : !d.loop && i.loop ? E = !0 : O = !0), c.forEach((w) => {
17738
- const L = v[w], A = b[w];
17739
- isObject$1(L) && isObject$1(A) ? (Object.assign(L, A), (w === "navigation" || w === "pagination" || w === "scrollbar") && "enabled" in A && !A.enabled && $(w)) : (A === !0 || A === !1) && (w === "navigation" || w === "pagination" || w === "scrollbar") ? A === !1 && $(w) : v[w] = A;
17740
- }), c.includes("controller") && !k && r.controller && r.controller.control && isObject$1(S) && S.control && (r.controller.control = S.control), l.includes("children") && s && m && d.virtual?.enabled ? (m.slides = s, m.update(!0)) : l.includes("virtual") && m && d.virtual?.enabled && (s && (m.slides = s), m.update(!0)), l.includes("children") && s && d.loop && (O = !0), _ && g && g.init() && g.update(!0), k && r.controller && isObject$1(S) && (r.controller.control = S.control), C && u) {
17714
+ const L = _[w], A = v[w];
17715
+ isObject$1(L) && isObject$1(A) ? (Object.assign(L, A), (w === "navigation" || w === "pagination" || w === "scrollbar") && "enabled" in A && !A.enabled && $(w)) : (A === !0 || A === !1) && (w === "navigation" || w === "pagination" || w === "scrollbar") ? A === !1 && $(w) : _[w] = A;
17716
+ }), c.includes("controller") && !k && r.controller && r.controller.control && isObject$1(S) && S.control && (r.controller.control = S.control), l.includes("children") && s && m && d.virtual?.enabled ? (m.slides = s, m.update(!0)) : l.includes("virtual") && m && d.virtual?.enabled && (s && (m.slides = s), m.update(!0)), l.includes("children") && s && d.loop && (O = !0), b && g && g.init() && g.update(!0), k && r.controller && isObject$1(S) && (r.controller.control = S.control), C && u) {
17741
17717
  if (r.isElement && (!o || typeof o == "string")) {
17742
17718
  const L = document.createElement("div");
17743
17719
  L.classList.add("swiper-pagination"), L.part.add("pagination"), r.el.appendChild(L), o = L;
17744
17720
  }
17745
- const w = v.pagination;
17721
+ const w = _.pagination;
17746
17722
  o && isObject$1(w) && (w.el = o), u.init(), u.render(), u.update();
17747
17723
  }
17748
17724
  if (T && p) {
@@ -17750,7 +17726,7 @@ function updateSwiper(e) {
17750
17726
  const L = document.createElement("div");
17751
17727
  L.classList.add("swiper-scrollbar"), L.part.add("scrollbar"), r.el.appendChild(L), a = L;
17752
17728
  }
17753
- const w = v.scrollbar;
17729
+ const w = _.scrollbar;
17754
17730
  a && isObject$1(w) && (w.el = a), p.init(), p.updateSize(), p.setTranslate();
17755
17731
  }
17756
17732
  if (D && f) {
@@ -17764,10 +17740,10 @@ function updateSwiper(e) {
17764
17740
  L.classList.add("swiper-button-prev"), setInnerHTML(L, f.arrowSvg), L.part.add("button-prev"), r.el.appendChild(L), n = L;
17765
17741
  }
17766
17742
  }
17767
- const w = v.navigation;
17743
+ const w = _.navigation;
17768
17744
  t && isObject$1(w) && (w.nextEl = t), n && isObject$1(w) && (w.prevEl = n), f.init(), f.update();
17769
17745
  }
17770
- l.includes("allowSlideNext") && (r.allowSlideNext = b.allowSlideNext), l.includes("allowSlidePrev") && (r.allowSlidePrev = b.allowSlidePrev), l.includes("direction") && r.changeDirection(b.direction, !1), (I || O) && r.loopDestroy(), (E || O) && r.loopCreate(), r.update();
17746
+ l.includes("allowSlideNext") && (r.allowSlideNext = v.allowSlideNext), l.includes("allowSlidePrev") && (r.allowSlidePrev = v.allowSlidePrev), l.includes("direction") && r.changeDirection(v.direction, !1), (I || O) && r.loopDestroy(), (E || O) && r.loopCreate(), r.update();
17771
17747
  }
17772
17748
  let supportCached;
17773
17749
  function calcSupport() {
@@ -17868,24 +17844,24 @@ function setBreakpoint() {
17868
17844
  const s = a.breakpointsBase === "window" || !a.breakpointsBase ? a.breakpointsBase : "container", i = ["window", "container"].includes(a.breakpointsBase) || !a.breakpointsBase ? e.el : document.querySelector(a.breakpointsBase), l = e.getBreakpoint(r, s, i);
17869
17845
  if (!l || e.currentBreakpoint === l)
17870
17846
  return;
17871
- const c = r, u = (l in c ? c[l] : void 0) || e.originalParams, f = isGridEnabled(e, a), p = isGridEnabled(e, u), m = e.params.grabCursor, g = u.grabCursor, b = a.enabled;
17847
+ const c = r, u = (l in c ? c[l] : void 0) || e.originalParams, f = isGridEnabled(e, a), p = isGridEnabled(e, u), m = e.params.grabCursor, g = u.grabCursor, v = a.enabled;
17872
17848
  f && !p ? (o.classList.remove(`${a.containerModifierClass}grid`, `${a.containerModifierClass}grid-column`), e.emitContainerClasses()) : !f && p && (o.classList.add(`${a.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && a.grid.fill === "column") && o.classList.add(`${a.containerModifierClass}grid-column`), e.emitContainerClasses()), m && !g ? e.unsetGrabCursor() : !m && g && e.setGrabCursor();
17873
- const v = (I, E) => I[E];
17849
+ const _ = (I, E) => I[E];
17874
17850
  ["navigation", "pagination", "scrollbar"].forEach((I) => {
17875
- const E = v(u, I);
17851
+ const E = _(u, I);
17876
17852
  if (typeof E > "u")
17877
17853
  return;
17878
- const O = v(a, I), F = typeof O == "object" && O !== null && O.enabled, N = typeof E == "object" && E !== null && E.enabled, M = e[I];
17854
+ const O = _(a, I), F = typeof O == "object" && O !== null && O.enabled, N = typeof E == "object" && E !== null && E.enabled, M = e[I];
17879
17855
  F && !N && M?.disable?.(), !F && N && M?.enable?.();
17880
17856
  });
17881
- const _ = u.direction && u.direction !== a.direction, k = a.loop && (u.slidesPerView !== a.slidesPerView || _), C = a.loop;
17882
- _ && n && e.changeDirection(), extend$1(e.params, u);
17857
+ const b = u.direction && u.direction !== a.direction, k = a.loop && (u.slidesPerView !== a.slidesPerView || b), C = a.loop;
17858
+ b && n && e.changeDirection(), extend$1(e.params, u);
17883
17859
  const T = e.params.enabled, D = e.params.loop;
17884
17860
  Object.assign(e, {
17885
17861
  allowTouchMove: e.params.allowTouchMove,
17886
17862
  allowSlideNext: e.params.allowSlideNext,
17887
17863
  allowSlidePrev: e.params.allowSlidePrev
17888
- }), b && !T ? e.disable() : !b && T && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", u), n && (k ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !C && D ? (e.loopCreate(t), e.updateSlides()) : C && !D && e.loopDestroy()), e.emit("breakpoint", u);
17864
+ }), v && !T ? e.disable() : !v && T && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", u), n && (k ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !C && D ? (e.loopCreate(t), e.updateSlides()) : C && !D && e.loopDestroy()), e.emit("breakpoint", u);
17889
17865
  }
17890
17866
  var breakpoints = { setBreakpoint, getBreakpoint };
17891
17867
  function checkOverflow() {
@@ -18199,21 +18175,21 @@ function onTouchEnd(e) {
18199
18175
  const T = C < r.slidesPerGroupSkip - 1 ? 1 : r.slidesPerGroup;
18200
18176
  typeof l[C + T] < "u" ? (p || f >= l[C] && f < l[C + T]) && (m = C, g = l[C + T] - l[C]) : (p || f >= l[C]) && (m = C, g = l[l.length - 1] - l[l.length - 2]);
18201
18177
  }
18202
- let b = null, v = null;
18203
- r.rewind && (t.isBeginning ? v = r.virtual?.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (b = 0));
18204
- const _ = (f - l[m]) / g, k = m < r.slidesPerGroupSkip - 1 ? 1 : r.slidesPerGroup;
18178
+ let v = null, _ = null;
18179
+ r.rewind && (t.isBeginning ? _ = r.virtual?.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (v = 0));
18180
+ const b = (f - l[m]) / g, k = m < r.slidesPerGroupSkip - 1 ? 1 : r.slidesPerGroup;
18205
18181
  if (u > r.longSwipesMs) {
18206
18182
  if (!r.longSwipes) {
18207
18183
  t.slideTo(t.activeIndex);
18208
18184
  return;
18209
18185
  }
18210
- t.swipeDirection === "next" && (_ >= r.longSwipesRatio ? t.slideTo(r.rewind && t.isEnd ? b : m + k) : t.slideTo(m)), t.swipeDirection === "prev" && (_ > 1 - r.longSwipesRatio ? t.slideTo(m + k) : v !== null && _ < 0 && Math.abs(_) > r.longSwipesRatio ? t.slideTo(v) : t.slideTo(m));
18186
+ t.swipeDirection === "next" && (b >= r.longSwipesRatio ? t.slideTo(r.rewind && t.isEnd ? v : m + k) : t.slideTo(m)), t.swipeDirection === "prev" && (b > 1 - r.longSwipesRatio ? t.slideTo(m + k) : _ !== null && b < 0 && Math.abs(b) > r.longSwipesRatio ? t.slideTo(_) : t.slideTo(m));
18211
18187
  } else {
18212
18188
  if (!r.shortSwipes) {
18213
18189
  t.slideTo(t.activeIndex);
18214
18190
  return;
18215
18191
  }
18216
- t.navigation && (a.target === t.navigation.nextEl || a.target === t.navigation.prevEl) ? a.target === t.navigation.nextEl ? t.slideTo(m + k) : t.slideTo(m) : (t.swipeDirection === "next" && t.slideTo(b !== null ? b : m + k), t.swipeDirection === "prev" && t.slideTo(v !== null ? v : m));
18192
+ t.navigation && (a.target === t.navigation.nextEl || a.target === t.navigation.prevEl) ? a.target === t.navigation.nextEl ? t.slideTo(m + k) : t.slideTo(m) : (t.swipeDirection === "next" && t.slideTo(v !== null ? v : m + k), t.swipeDirection === "prev" && t.slideTo(_ !== null ? _ : m));
18217
18193
  }
18218
18194
  }
18219
18195
  function onTouchMove(e) {
@@ -18285,11 +18261,11 @@ function onTouchMove(e) {
18285
18261
  t.allowClick = !1, !a.cssMode && l.cancelable && l.preventDefault(), a.touchMoveStopPropagation && !a.nested && l.stopPropagation();
18286
18262
  let m = t.isHorizontal() ? f : p, g = t.isHorizontal() ? o.currentX - o.previousX : o.currentY - o.previousY;
18287
18263
  a.oneWayMovement && (m = Math.abs(m) * (r ? 1 : -1), g = Math.abs(g) * (r ? 1 : -1)), o.diff = m, m *= a.touchRatio, r && (m = -m, g = -g);
18288
- const b = t.touchesDirection;
18264
+ const v = t.touchesDirection;
18289
18265
  t.swipeDirection = m > 0 ? "prev" : "next", t.touchesDirection = g > 0 ? "prev" : "next";
18290
- const v = t.params.loop && !a.cssMode, _ = t.touchesDirection === "next" && t.allowSlideNext || t.touchesDirection === "prev" && t.allowSlidePrev;
18266
+ const _ = t.params.loop && !a.cssMode, b = t.touchesDirection === "next" && t.allowSlideNext || t.touchesDirection === "prev" && t.allowSlidePrev;
18291
18267
  if (!n.isMoved) {
18292
- if (v && _ && t.loopFix({ direction: t.swipeDirection }), n.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) {
18268
+ if (_ && b && t.loopFix({ direction: t.swipeDirection }), n.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) {
18293
18269
  const D = new window.CustomEvent("transitionend", {
18294
18270
  bubbles: !0,
18295
18271
  cancelable: !0,
@@ -18301,7 +18277,7 @@ function onTouchMove(e) {
18301
18277
  }
18302
18278
  n.allowMomentumBounce = !1, a.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", l);
18303
18279
  }
18304
- if ((/* @__PURE__ */ new Date()).getTime(), a._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && b !== t.touchesDirection && v && _ && Math.abs(m) >= 1) {
18280
+ if ((/* @__PURE__ */ new Date()).getTime(), a._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && v !== t.touchesDirection && _ && b && Math.abs(m) >= 1) {
18305
18281
  Object.assign(o, {
18306
18282
  startX: d,
18307
18283
  startY: u,
@@ -18315,7 +18291,7 @@ function onTouchMove(e) {
18315
18291
  const k = n.startTranslate ?? 0;
18316
18292
  n.currentTranslate = m + k;
18317
18293
  let C = !0, T = a.resistanceRatio;
18318
- if (a.touchReleaseOnEdges && (T = 0), m > 0 ? (v && _ && n.allowThresholdMove && n.currentTranslate > (a.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (a.slidesPerView !== "auto" && t.slides.length - a.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({ direction: "prev", setTranslate: !0, activeSlideIndex: 0 }), n.currentTranslate > t.minTranslate() && (C = !1, a.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + k + m) ** T))) : m < 0 && (v && _ && n.allowThresholdMove && n.currentTranslate < (a.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (a.slidesPerView !== "auto" && t.slides.length - a.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({
18294
+ if (a.touchReleaseOnEdges && (T = 0), m > 0 ? (_ && b && n.allowThresholdMove && n.currentTranslate > (a.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (a.slidesPerView !== "auto" && t.slides.length - a.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({ direction: "prev", setTranslate: !0, activeSlideIndex: 0 }), n.currentTranslate > t.minTranslate() && (C = !1, a.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + k + m) ** T))) : m < 0 && (_ && b && n.allowThresholdMove && n.currentTranslate < (a.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (a.slidesPerView !== "auto" && t.slides.length - a.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({
18319
18295
  direction: "next",
18320
18296
  setTranslate: !0,
18321
18297
  activeSlideIndex: t.slides.length - (a.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(String(a.slidesPerView))))
@@ -18355,10 +18331,10 @@ function onTouchStart(e) {
18355
18331
  return;
18356
18332
  const n = e.originalEvent ?? e, a = t.touchEventsData;
18357
18333
  if (n.type === "pointerdown") {
18358
- const _ = n;
18359
- if (a.pointerId !== null && a.pointerId !== _.pointerId)
18334
+ const b = n;
18335
+ if (a.pointerId !== null && a.pointerId !== b.pointerId)
18360
18336
  return;
18361
- a.pointerId = _.pointerId;
18337
+ a.pointerId = b.pointerId;
18362
18338
  } else n.type === "touchstart" && n.targetTouches.length === 1 && (a.touchId = n.targetTouches[0].identifier);
18363
18339
  if (n.type === "touchstart") {
18364
18340
  preventEdgeSwipe(t, n, n.targetTouches[0].pageX);
@@ -18395,10 +18371,10 @@ function onTouchStart(e) {
18395
18371
  isScrolling: void 0,
18396
18372
  startMoving: void 0
18397
18373
  }), r.startX = m, r.startY = g, a.touchStartTime = now(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, o.threshold > 0 && (a.allowThresholdMove = !1);
18398
- let b = !0;
18399
- i.matches(a.focusableElements) && (b = !1, i.nodeName === "SELECT" && (a.isTouched = !1)), document.activeElement && document.activeElement.matches(a.focusableElements) && document.activeElement !== i && (p.pointerType === "mouse" || p.pointerType !== "mouse" && !i.matches(a.focusableElements)) && document.activeElement.blur();
18400
- const v = b && t.allowTouchMove && o.touchStartPreventDefault;
18401
- (o.touchStartForcePreventDefault || v) && !i.isContentEditable && n.preventDefault(), o.freeMode && o.freeMode.enabled && t.freeMode && t.animating && !o.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", n);
18374
+ let v = !0;
18375
+ i.matches(a.focusableElements) && (v = !1, i.nodeName === "SELECT" && (a.isTouched = !1)), document.activeElement && document.activeElement.matches(a.focusableElements) && document.activeElement !== i && (p.pointerType === "mouse" || p.pointerType !== "mouse" && !i.matches(a.focusableElements)) && document.activeElement.blur();
18376
+ const _ = v && t.allowTouchMove && o.touchStartPreventDefault;
18377
+ (o.touchStartForcePreventDefault || _) && !i.isContentEditable && n.preventDefault(), o.freeMode && o.freeMode.enabled && t.freeMode && t.animating && !o.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", n);
18402
18378
  }
18403
18379
  const events = (e, t) => {
18404
18380
  const { params: n, el: a, wrapperEl: o, device: r } = e, s = !!n.nested, i = t === "on" ? "addEventListener" : "removeEventListener", l = t;
@@ -18515,7 +18491,7 @@ function loopFix(e = {}) {
18515
18491
  if (!d.params.loop)
18516
18492
  return;
18517
18493
  d.emit("beforeLoopFix");
18518
- const { slides: u, allowSlidePrev: f, allowSlideNext: p, slidesEl: m, params: g } = d, { centeredSlides: b, slidesOffsetBefore: v, slidesOffsetAfter: _, initialSlide: k } = g, C = b || !!v || !!_;
18494
+ const { slides: u, allowSlidePrev: f, allowSlideNext: p, slidesEl: m, params: g } = d, { centeredSlides: v, slidesOffsetBefore: _, slidesOffsetAfter: b, initialSlide: k } = g, C = v || !!_ || !!b;
18519
18495
  if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && g.virtual?.enabled) {
18520
18496
  if (n) {
18521
18497
  const R = d.virtual.slides.length, z = d.virtual.slidesBefore ?? 0;
@@ -18678,11 +18654,11 @@ const Observer = ({ swiper: e, extendParams: t, on: n }) => {
18678
18654
  o = window.requestAnimationFrame(() => {
18679
18655
  const { width: d, height: u } = e;
18680
18656
  let f = d, p = u;
18681
- c.forEach(({ contentBoxSize: m, contentRect: g, target: b }) => {
18682
- if (b && b !== e.el)
18657
+ c.forEach(({ contentBoxSize: m, contentRect: g, target: v }) => {
18658
+ if (v && v !== e.el)
18683
18659
  return;
18684
- const v = Array.isArray(m) ? m[0] : m;
18685
- f = g ? g.width : v.inlineSize, p = g ? g.height : v.blockSize;
18660
+ const _ = Array.isArray(m) ? m[0] : m;
18661
+ f = g ? g.width : _.inlineSize, p = g ? g.height : _.blockSize;
18686
18662
  }), (f !== d || p !== u) && r();
18687
18663
  });
18688
18664
  }), a.observe(e.el));
@@ -18731,26 +18707,26 @@ function slidePrev(e, t = !0, n) {
18731
18707
  a.loopFix({ direction: "prev" }), a._clientLeft = a.wrapperEl.clientLeft;
18732
18708
  }
18733
18709
  const u = i ? a.translate : -a.translate;
18734
- function f(_) {
18735
- return _ < 0 ? -Math.floor(Math.abs(_)) : Math.floor(_);
18710
+ function f(b) {
18711
+ return b < 0 ? -Math.floor(Math.abs(b)) : Math.floor(b);
18736
18712
  }
18737
- const p = f(u), m = r.map((_) => f(_)), g = o.freeMode && o.freeMode.enabled;
18738
- let b = r[m.indexOf(p) - 1];
18739
- if (typeof b > "u" && (o.cssMode || g)) {
18740
- let _;
18713
+ const p = f(u), m = r.map((b) => f(b)), g = o.freeMode && o.freeMode.enabled;
18714
+ let v = r[m.indexOf(p) - 1];
18715
+ if (typeof v > "u" && (o.cssMode || g)) {
18716
+ let b;
18741
18717
  r.forEach((k, C) => {
18742
- p >= k && (_ = C);
18743
- }), typeof _ < "u" && (b = g ? r[_] : r[_ > 0 ? _ - 1 : _]);
18718
+ p >= k && (b = C);
18719
+ }), typeof b < "u" && (v = g ? r[b] : r[b > 0 ? b - 1 : b]);
18744
18720
  }
18745
- let v = 0;
18746
- if (typeof b < "u" && (v = s.indexOf(b), v < 0 && (v = a.activeIndex - 1), o.slidesPerView === "auto" && o.slidesPerGroup === 1 && o.slidesPerGroupAuto && (v = v - a.slidesPerViewDynamic("previous", !0) + 1, v = Math.max(v, 0))), o.rewind && a.isBeginning) {
18747
- const _ = a.params.virtual?.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1;
18748
- return a.slideTo(_, e, t, n);
18721
+ let _ = 0;
18722
+ if (typeof v < "u" && (_ = s.indexOf(v), _ < 0 && (_ = a.activeIndex - 1), o.slidesPerView === "auto" && o.slidesPerGroup === 1 && o.slidesPerGroupAuto && (_ = _ - a.slidesPerViewDynamic("previous", !0) + 1, _ = Math.max(_, 0))), o.rewind && a.isBeginning) {
18723
+ const b = a.params.virtual?.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1;
18724
+ return a.slideTo(b, e, t, n);
18749
18725
  } else if (o.loop && a.activeIndex === 0 && o.cssMode)
18750
18726
  return requestAnimationFrame(() => {
18751
- a.slideTo(v, e, t, n);
18727
+ a.slideTo(_, e, t, n);
18752
18728
  }), !0;
18753
- return a.slideTo(v, e, t, n);
18729
+ return a.slideTo(_, e, t, n);
18754
18730
  }
18755
18731
  function slideReset(e, t = !0, n) {
18756
18732
  const a = this;
@@ -18767,24 +18743,24 @@ function slideTo(e = 0, t, n = !0, a, o) {
18767
18743
  return !1;
18768
18744
  typeof t > "u" && (t = r.params.speed);
18769
18745
  const g = Math.min(r.params.slidesPerGroupSkip, s);
18770
- let b = g + Math.floor((s - g) / r.params.slidesPerGroup);
18771
- b >= l.length && (b = l.length - 1);
18772
- const v = -l[b];
18746
+ let v = g + Math.floor((s - g) / r.params.slidesPerGroup);
18747
+ v >= l.length && (v = l.length - 1);
18748
+ const _ = -l[v];
18773
18749
  if (i.normalizeSlideIndex)
18774
18750
  for (let I = 0; I < c.length; I += 1) {
18775
- const E = -Math.floor(v * 100), O = Math.floor(c[I] * 100), F = Math.floor(c[I + 1] * 100);
18751
+ const E = -Math.floor(_ * 100), O = Math.floor(c[I] * 100), F = Math.floor(c[I + 1] * 100);
18776
18752
  typeof c[I + 1] < "u" ? E >= O && E < F - (F - O) / 2 ? s = I : E >= O && E < F && (s = I + 1) : E >= O && (s = I);
18777
18753
  }
18778
- if (r.initialized && s !== u && (!r.allowSlideNext && (f ? v > r.translate && v > r.minTranslate() : v < r.translate && v < r.minTranslate()) || !r.allowSlidePrev && v > r.translate && v > r.maxTranslate() && (u || 0) !== s))
18754
+ if (r.initialized && s !== u && (!r.allowSlideNext && (f ? _ > r.translate && _ > r.minTranslate() : _ < r.translate && _ < r.minTranslate()) || !r.allowSlidePrev && _ > r.translate && _ > r.maxTranslate() && (u || 0) !== s))
18779
18755
  return !1;
18780
- s !== (d || 0) && n && r.emit("beforeSlideChangeStart"), r.updateProgress(v);
18781
- let _;
18782
- s > u ? _ = "next" : s < u ? _ = "prev" : _ = "reset";
18756
+ s !== (d || 0) && n && r.emit("beforeSlideChangeStart"), r.updateProgress(_);
18757
+ let b;
18758
+ s > u ? b = "next" : s < u ? b = "prev" : b = "reset";
18783
18759
  const k = r.virtual && r.params.virtual?.enabled;
18784
- if (!(k && o) && (f && -v === r.translate || !f && v === r.translate))
18785
- return r.updateActiveIndex(s), i.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), i.effect !== "slide" && r.setTranslate(v), _ !== "reset" && (r.transitionStart(n, _), r.transitionEnd(n, _)), !1;
18760
+ if (!(k && o) && (f && -_ === r.translate || !f && _ === r.translate))
18761
+ return r.updateActiveIndex(s), i.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), i.effect !== "slide" && r.setTranslate(_), b !== "reset" && (r.transitionStart(n, b), r.transitionEnd(n, b)), !1;
18786
18762
  if (i.cssMode) {
18787
- const I = r.isHorizontal(), E = f ? v : -v;
18763
+ const I = r.isHorizontal(), E = f ? _ : -_;
18788
18764
  return t === 0 ? (k && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), k && !r._cssModeVirtualInitialSet && (r.params.initialSlide ?? 0) > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
18789
18765
  p[I ? "scrollLeft" : "scrollTop"] = E;
18790
18766
  })) : p[I ? "scrollLeft" : "scrollTop"] = E, k && requestAnimationFrame(() => {
@@ -18795,8 +18771,8 @@ function slideTo(e = 0, t, n = !0, a, o) {
18795
18771
  }), !0;
18796
18772
  }
18797
18773
  const D = getBrowser().isSafari;
18798
- return k && !o && D && r.isElement && r.virtual.update(!1, !1, s), r.setTransition(t), r.setTranslate(v), r.updateActiveIndex(s), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(n, _), t === 0 ? r.transitionEnd(n, _) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(E) {
18799
- !r || r.destroyed || E.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(n, _));
18774
+ return k && !o && D && r.isElement && r.virtual.update(!1, !1, s), r.setTransition(t), r.setTranslate(_), r.updateActiveIndex(s), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(n, b), t === 0 ? r.transitionEnd(n, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(E) {
18775
+ !r || r.destroyed || E.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(n, b));
18800
18776
  }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
18801
18777
  }
18802
18778
  function slideToClickedSlide() {
@@ -18849,7 +18825,7 @@ function slideToLoop(e = 0, t, n = !0, a) {
18849
18825
  let i;
18850
18826
  if (r) {
18851
18827
  const g = s * o.params.grid.rows;
18852
- i = o.slides.find((v) => Number(v.getAttribute("data-swiper-slide-index")) === g)?.column ?? 0;
18828
+ i = o.slides.find((_) => Number(_.getAttribute("data-swiper-slide-index")) === g)?.column ?? 0;
18853
18829
  } else
18854
18830
  i = o.getSlideIndexByData(s);
18855
18831
  const l = r ? Math.ceil(o.slides.length / o.params.grid.rows) : o.slides.length, { centeredSlides: c, slidesOffsetBefore: d, slidesOffsetAfter: u } = o.params, f = c || !!d || !!u;
@@ -18867,7 +18843,7 @@ function slideToLoop(e = 0, t, n = !0, a) {
18867
18843
  }
18868
18844
  if (r) {
18869
18845
  const g = s * o.params.grid.rows;
18870
- s = o.slides.find((v) => Number(v.getAttribute("data-swiper-slide-index")) === g)?.column ?? 0;
18846
+ s = o.slides.find((_) => Number(_.getAttribute("data-swiper-slide-index")) === g)?.column ?? 0;
18871
18847
  } else
18872
18848
  s = o.getSlideIndexByData(s);
18873
18849
  }
@@ -19100,13 +19076,13 @@ function updateSlides() {
19100
19076
  }
19101
19077
  const n = e.params, { wrapperEl: a, slidesEl: o, rtlTranslate: r, wrongRTL: s } = e, i = !!(e.virtual && n.virtual?.enabled), l = i ? e.virtual.slides.length : e.slides.length, c = elementChildren(o, `.${e.params.slideClass}, swiper-slide`), d = i ? e.virtual.slides.length : c.length;
19102
19078
  let u = [];
19103
- const f = [], p = [], m = (N) => typeof N == "function" ? N.call(e) : N, g = m(n.slidesOffsetBefore), b = m(n.slidesOffsetAfter), v = e.snapGrid.length, _ = e.slidesGrid.length, k = e.size - g - b;
19079
+ const f = [], p = [], m = (N) => typeof N == "function" ? N.call(e) : N, g = m(n.slidesOffsetBefore), v = m(n.slidesOffsetAfter), _ = e.snapGrid.length, b = e.slidesGrid.length, k = e.size - g - v;
19104
19080
  let C = n.spaceBetween, T = -g, D = 0, I = 0;
19105
19081
  if (typeof k > "u")
19106
19082
  return;
19107
- typeof C == "string" && C.indexOf("%") >= 0 ? C = parseFloat(C.replace("%", "")) / 100 * k : typeof C == "string" && (C = parseFloat(C)), e.virtualSize = -C - g - b, c.forEach((N) => {
19083
+ typeof C == "string" && C.indexOf("%") >= 0 ? C = parseFloat(C.replace("%", "")) / 100 * k : typeof C == "string" && (C = parseFloat(C)), e.virtualSize = -C - g - v, c.forEach((N) => {
19108
19084
  r ? N.style.marginLeft = "" : N.style.marginRight = "", N.style.marginBottom = "", N.style.marginTop = "";
19109
- }), n.centeredSlides && n.cssMode && (setCSSProperty(a, "--swiper-centered-offset-before", ""), setCSSProperty(a, "--swiper-centered-offset-after", "")), n.cssMode && (setCSSProperty(a, "--swiper-slides-offset-before", `${g}px`), setCSSProperty(a, "--swiper-slides-offset-after", `${b}px`));
19085
+ }), n.centeredSlides && n.cssMode && (setCSSProperty(a, "--swiper-centered-offset-before", ""), setCSSProperty(a, "--swiper-centered-offset-after", "")), n.cssMode && (setCSSProperty(a, "--swiper-slides-offset-before", `${g}px`), setCSSProperty(a, "--swiper-slides-offset-after", `${v}px`));
19110
19086
  const E = n.grid && n.grid.rows > 1 && e.grid;
19111
19087
  E ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
19112
19088
  let O = 0;
@@ -19137,7 +19113,7 @@ function updateSlides() {
19137
19113
  M && (M.swiperSlideSize = O), p.push(O), n.centeredSlides ? (T = T + O / 2 + D / 2 + C, D === 0 && N !== 0 && (T = T - k / 2 - C), N === 0 && (T = T - k / 2 - C), Math.abs(T) < 1 / 1e3 && (T = 0), n.roundLengths && (T = Math.floor(T)), I % n.slidesPerGroup === 0 && u.push(T), f.push(T)) : (n.roundLengths && (T = Math.floor(T)), (I - Math.min(e.params.slidesPerGroupSkip, I)) % e.params.slidesPerGroup === 0 && u.push(T), f.push(T), T = T + O + C), e.virtualSize += O + C, D = O, I += 1;
19138
19114
  }
19139
19115
  }
19140
- if (e.virtualSize = Math.max(e.virtualSize, k) + b, r && s && (n.effect === "slide" || n.effect === "coverflow") && (a.style.width = `${e.virtualSize + C}px`), n.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + C}px`), E && e.grid.updateWrapperSize(O, u), !n.centeredSlides) {
19116
+ if (e.virtualSize = Math.max(e.virtualSize, k) + v, r && s && (n.effect === "slide" || n.effect === "coverflow") && (a.style.width = `${e.virtualSize + C}px`), n.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + C}px`), E && e.grid.updateWrapperSize(O, u), !n.centeredSlides) {
19141
19117
  const N = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, M = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || N);
19142
19118
  let S = u.length;
19143
19119
  if (M) {
@@ -19180,7 +19156,7 @@ function updateSlides() {
19180
19156
  N += S + (C || 0);
19181
19157
  }), N -= C;
19182
19158
  const M = N > k ? N - k : 0;
19183
- u = u.map((S) => S <= 0 ? -g : S > M ? M + b : S);
19159
+ u = u.map((S) => S <= 0 ? -g : S > M ? M + v : S);
19184
19160
  }
19185
19161
  if (n.centerInsufficientSlides) {
19186
19162
  let N = 0;
@@ -19205,7 +19181,7 @@ function updateSlides() {
19205
19181
  const N = -e.snapGrid[0], M = -e.slidesGrid[0];
19206
19182
  e.snapGrid = e.snapGrid.map((S) => S + N), e.slidesGrid = e.slidesGrid.map((S) => S + M);
19207
19183
  }
19208
- if (d !== l && e.emit("slidesLengthChange"), u.length !== v && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), f.length !== _ && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !i && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
19184
+ if (d !== l && e.emit("slidesLengthChange"), u.length !== _ && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), f.length !== b && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !i && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
19209
19185
  const N = `${n.containerModifierClass}backface-hidden`, M = e.el.classList.contains(N);
19210
19186
  d <= n.maxBackfaceHiddenSlides ? M || e.el.classList.add(N) : M && e.el.classList.remove(N);
19211
19187
  }
@@ -19249,8 +19225,8 @@ function updateSlidesProgress(e = this && this.translate || 0) {
19249
19225
  const c = a[l];
19250
19226
  let d = c.swiperSlideOffset ?? 0;
19251
19227
  n.cssMode && n.centeredSlides && (d -= a[0].swiperSlideOffset ?? 0);
19252
- const u = c.swiperSlideSize ?? 0, f = (s + (n.centeredSlides ? t.minTranslate() : 0) - d) / (u + i), p = (s - r[0] + (n.centeredSlides ? t.minTranslate() : 0) - d) / (u + i), m = -(s - d), g = m + t.slidesSizesGrid[l], b = m >= 0 && m <= t.size - t.slidesSizesGrid[l], v = m >= 0 && m < t.size - 1 || g > 1 && g <= t.size || m <= 0 && g >= t.size;
19253
- v && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(l)), toggleSlideClasses(c, v, n.slideVisibleClass), toggleSlideClasses(c, b, n.slideFullyVisibleClass), c.progress = o ? -f : f, c.originalProgress = o ? -p : p;
19228
+ const u = c.swiperSlideSize ?? 0, f = (s + (n.centeredSlides ? t.minTranslate() : 0) - d) / (u + i), p = (s - r[0] + (n.centeredSlides ? t.minTranslate() : 0) - d) / (u + i), m = -(s - d), g = m + t.slidesSizesGrid[l], v = m >= 0 && m <= t.size - t.slidesSizesGrid[l], _ = m >= 0 && m < t.size - 1 || g > 1 && g <= t.size || m <= 0 && g >= t.size;
19229
+ _ && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(l)), toggleSlideClasses(c, _, n.slideVisibleClass), toggleSlideClasses(c, v, n.slideFullyVisibleClass), c.progress = o ? -f : f, c.originalProgress = o ? -p : p;
19254
19230
  }
19255
19231
  }
19256
19232
  var update = {
@@ -20008,20 +19984,20 @@ const SWIPER_EVENTS = [
20008
19984
  },
20009
19985
  emits: SWIPER_EVENTS,
20010
19986
  setup(e, { slots: t, emit: n }) {
20011
- const { tag: a, wrapperTag: o } = e, r = ref("swiper"), s = ref(null), i = ref(!1), l = ref(!1), c = ref(null), d = shallowRef(null), u = ref(null), f = { value: [] }, p = { value: [] }, m = ref(null), g = ref(null), b = ref(null), v = ref(null), { params: _, passedParams: k } = getParams(e, !1);
19987
+ const { tag: a, wrapperTag: o } = e, r = ref("swiper"), s = ref(null), i = ref(!1), l = ref(!1), c = ref(null), d = shallowRef(null), u = ref(null), f = { value: [] }, p = { value: [] }, m = ref(null), g = ref(null), v = ref(null), _ = ref(null), { params: b, passedParams: k } = getParams(e, !1);
20012
19988
  getChildren(t, f, p), u.value = k, p.value = f.value;
20013
19989
  const C = () => {
20014
19990
  getChildren(t, f, p), i.value = !0;
20015
19991
  };
20016
- _.onAny = (E, ...O) => {
19992
+ b.onAny = (E, ...O) => {
20017
19993
  n(E, ...O);
20018
- }, Object.assign(_.on, {
19994
+ }, Object.assign(b.on, {
20019
19995
  _beforeBreakpoint: C,
20020
19996
  _containerClasses(E, O) {
20021
19997
  r.value = O;
20022
19998
  }
20023
19999
  });
20024
- const T = { ..._ };
20000
+ const T = { ...b };
20025
20001
  delete T.wrapperClass, d.value = new Swiper$1(T);
20026
20002
  const D = d.value;
20027
20003
  if (D && D.virtual && D.params.virtual?.enabled) {
@@ -20046,8 +20022,8 @@ const SWIPER_EVENTS = [
20046
20022
  changedParams: O,
20047
20023
  nextEl: m.value,
20048
20024
  prevEl: g.value,
20049
- scrollbarEl: v.value,
20050
- paginationEl: b.value
20025
+ scrollbarEl: _.value,
20026
+ paginationEl: v.value
20051
20027
  }), i.value = !1;
20052
20028
  }), provide("swiper", d), watch(s, () => {
20053
20029
  nextTick$1(() => {
@@ -20058,15 +20034,15 @@ const SWIPER_EVENTS = [
20058
20034
  el: c.value,
20059
20035
  nextEl: m.value,
20060
20036
  prevEl: g.value,
20061
- paginationEl: b.value,
20062
- scrollbarEl: v.value,
20037
+ paginationEl: v.value,
20038
+ scrollbarEl: _.value,
20063
20039
  swiper: d.value
20064
- }, _), n("swiper", d.value));
20040
+ }, b), n("swiper", d.value));
20065
20041
  }), onBeforeUnmount(() => {
20066
20042
  d.value && !d.value.destroyed && d.value.destroy(!0, !1);
20067
20043
  });
20068
20044
  function I(E) {
20069
- return _.virtual ? renderVirtual(d, E, s.value) : (E.forEach((O, F) => {
20045
+ return b.virtual ? renderVirtual(d, E, s.value) : (E.forEach((O, F) => {
20070
20046
  const N = O.props ?? {};
20071
20047
  N.swiperRef = d, N.swiperSlideIndex = F, O.props = N;
20072
20048
  }), E);
@@ -20078,7 +20054,7 @@ const SWIPER_EVENTS = [
20078
20054
  class: uniqueClasses(r.value)
20079
20055
  }, [
20080
20056
  O["container-start"],
20081
- h(o, { class: wrapperClass(_.wrapperClass) }, [
20057
+ h(o, { class: wrapperClass(b.wrapperClass) }, [
20082
20058
  O["wrapper-start"],
20083
20059
  I(E),
20084
20060
  O["wrapper-end"]
@@ -20087,8 +20063,8 @@ const SWIPER_EVENTS = [
20087
20063
  h("div", { ref: g, class: "swiper-button-prev" }),
20088
20064
  h("div", { ref: m, class: "swiper-button-next" })
20089
20065
  ],
20090
- needsScrollbar(e) && h("div", { ref: v, class: "swiper-scrollbar" }),
20091
- needsPagination(e) && h("div", { ref: b, class: "swiper-pagination" }),
20066
+ needsScrollbar(e) && h("div", { ref: _, class: "swiper-scrollbar" }),
20067
+ needsPagination(e) && h("div", { ref: v, class: "swiper-pagination" }),
20092
20068
  O["container-end"]
20093
20069
  ]);
20094
20070
  };
@@ -20198,9 +20174,9 @@ const arrowSvg = '<svg class="swiper-navigation-icon" width="11" height="20" vie
20198
20174
  return m && typeof m == "string" && e.isElement && (g = e.el.querySelector(m) || e.hostEl.querySelector(m), g) ? g : (m && (typeof m == "string" && (g = [...document.querySelectorAll(m)]), e.params.uniqueNavElements && typeof m == "string" && g && g.length > 1 && e.el.querySelectorAll(m).length === 1 ? g = e.el.querySelector(m) : g && g.length === 1 && (g = g[0])), m && !g ? m : g);
20199
20175
  }
20200
20176
  function s(m, g) {
20201
- const b = o();
20202
- makeElementsArray(m).forEach((_) => {
20203
- _ && (_.classList[g ? "add" : "remove"](...b.disabledClass.split(" ")), _.tagName === "BUTTON" && (_.disabled = g), e.params.watchOverflow && e.enabled && _.classList[e.isLocked ? "add" : "remove"](b.lockClass));
20177
+ const v = o();
20178
+ makeElementsArray(m).forEach((b) => {
20179
+ b && (b.classList[g ? "add" : "remove"](...v.disabledClass.split(" ")), b.tagName === "BUTTON" && (b.disabled = g), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](v.lockClass));
20204
20180
  });
20205
20181
  }
20206
20182
  function i() {
@@ -20225,12 +20201,12 @@ const arrowSvg = '<svg class="swiper-navigation-icon" width="11" height="20" vie
20225
20201
  const m = o();
20226
20202
  if (!(m.nextEl || m.prevEl))
20227
20203
  return;
20228
- const g = r(m.nextEl), b = r(m.prevEl);
20204
+ const g = r(m.nextEl), v = r(m.prevEl);
20229
20205
  Object.assign(e.navigation, {
20230
20206
  nextEl: g,
20231
- prevEl: b
20207
+ prevEl: v
20232
20208
  });
20233
- const v = makeElementsArray(g), _ = makeElementsArray(b), k = (C, T) => {
20209
+ const _ = makeElementsArray(g), b = makeElementsArray(v), k = (C, T) => {
20234
20210
  if (C) {
20235
20211
  if (m.addIcons && C.matches(".swiper-button-next,.swiper-button-prev") && !C.querySelector("svg")) {
20236
20212
  const D = document.createElement("div");
@@ -20242,13 +20218,13 @@ const arrowSvg = '<svg class="swiper-navigation-icon" width="11" height="20" vie
20242
20218
  }
20243
20219
  !e.enabled && C && C.classList.add(...m.lockClass.split(" "));
20244
20220
  };
20245
- v.forEach((C) => k(C, "next")), _.forEach((C) => k(C, "prev"));
20221
+ _.forEach((C) => k(C, "next")), b.forEach((C) => k(C, "prev"));
20246
20222
  }
20247
20223
  function u() {
20248
- const m = o(), { nextEl: g, prevEl: b } = e.navigation, v = makeElementsArray(g), _ = makeElementsArray(b), k = (C, T) => {
20224
+ const m = o(), { nextEl: g, prevEl: v } = e.navigation, _ = makeElementsArray(g), b = makeElementsArray(v), k = (C, T) => {
20249
20225
  C.removeEventListener("click", T === "next" ? c : l), C.classList.remove(...m.disabledClass.split(" "));
20250
20226
  };
20251
- v.forEach((C) => k(C, "next")), _.forEach((C) => k(C, "prev"));
20227
+ _.forEach((C) => k(C, "next")), b.forEach((C) => k(C, "prev"));
20252
20228
  }
20253
20229
  n("init", () => {
20254
20230
  o().enabled === !1 ? p() : (d(), i());
@@ -20257,24 +20233,24 @@ const arrowSvg = '<svg class="swiper-navigation-icon" width="11" height="20" vie
20257
20233
  }), n("destroy", () => {
20258
20234
  u();
20259
20235
  }), n("enable disable", () => {
20260
- const m = o(), { nextEl: g, prevEl: b } = e.navigation, v = makeElementsArray(g), _ = makeElementsArray(b);
20236
+ const m = o(), { nextEl: g, prevEl: v } = e.navigation, _ = makeElementsArray(g), b = makeElementsArray(v);
20261
20237
  if (e.enabled) {
20262
20238
  i();
20263
20239
  return;
20264
20240
  }
20265
- [...v, ..._].filter((k) => !!k).forEach((k) => k.classList.add(m.lockClass));
20241
+ [..._, ...b].filter((k) => !!k).forEach((k) => k.classList.add(m.lockClass));
20266
20242
  }), n("click", (m, g) => {
20267
- const b = o(), { nextEl: v, prevEl: _ } = e.navigation, k = makeElementsArray(v), C = makeElementsArray(_), T = g.target;
20243
+ const v = o(), { nextEl: _, prevEl: b } = e.navigation, k = makeElementsArray(_), C = makeElementsArray(b), T = g.target;
20268
20244
  let D = C.includes(T) || k.includes(T);
20269
20245
  if (e.isElement && !D) {
20270
20246
  const I = g.composedPath ? g.composedPath() : [];
20271
20247
  I.length && (D = I.find((E) => k.includes(E) || C.includes(E)));
20272
20248
  }
20273
- if (b.hideOnClick && !D) {
20249
+ if (v.hideOnClick && !D) {
20274
20250
  if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === T || e.pagination.el.contains(T)))
20275
20251
  return;
20276
20252
  let I;
20277
- k.length ? I = k[0].classList.contains(b.hiddenClass) : C.length && (I = C[0].classList.contains(b.hiddenClass)), a(I === !0 ? "navigationShow" : "navigationHide"), [...k, ...C].filter((E) => !!E).forEach((E) => E.classList.toggle(b.hiddenClass));
20253
+ k.length ? I = k[0].classList.contains(v.hiddenClass) : C.length && (I = C[0].classList.contains(v.hiddenClass)), a(I === !0 ? "navigationShow" : "navigationHide"), [...k, ...C].filter((E) => !!E).forEach((E) => E.classList.toggle(v.hiddenClass));
20278
20254
  }
20279
20255
  });
20280
20256
  const f = () => {
@@ -20340,20 +20316,20 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
20340
20316
  function g(N) {
20341
20317
  return e.isHorizontal() ? N.clientX ?? N.touches?.[0]?.clientX ?? 0 : N.clientY ?? N.touches?.[0]?.clientY ?? 0;
20342
20318
  }
20343
- function b(N) {
20319
+ function v(N) {
20344
20320
  const { scrollbar: M, rtlTranslate: S } = e, { el: V } = M;
20345
20321
  let P;
20346
20322
  P = (g(N) - elementOffset(V)[e.isHorizontal() ? "left" : "top"] - (i !== null ? i : l / 2)) / (c - l), P = Math.max(Math.min(P, 1), 0), S && (P = 1 - P);
20347
20323
  const B = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * P;
20348
20324
  e.updateProgress(B), e.setTranslate(B), e.updateActiveIndex(), e.updateSlidesClasses();
20349
20325
  }
20350
- function v(N) {
20326
+ function _(N) {
20351
20327
  const M = u(), { scrollbar: S, wrapperEl: V } = e, { el: P, dragEl: B } = S;
20352
- o = !0, i = N.target === B ? g(N) - N.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, N.preventDefault(), N.stopPropagation(), V.style.transitionDuration = "100ms", B.style.transitionDuration = "100ms", b(N), s && clearTimeout(s), P.style.transitionDuration = "0ms", M.hide && (P.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", N);
20328
+ o = !0, i = N.target === B ? g(N) - N.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, N.preventDefault(), N.stopPropagation(), V.style.transitionDuration = "100ms", B.style.transitionDuration = "100ms", v(N), s && clearTimeout(s), P.style.transitionDuration = "0ms", M.hide && (P.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", N);
20353
20329
  }
20354
- function _(N) {
20330
+ function b(N) {
20355
20331
  const { scrollbar: M, wrapperEl: S } = e, { el: V, dragEl: P } = M;
20356
- o && (N.cancelable && N.preventDefault(), b(N), S.style.transitionDuration = "0ms", V.style.transitionDuration = "0ms", P.style.transitionDuration = "0ms", a("scrollbarDragMove", N));
20332
+ o && (N.cancelable && N.preventDefault(), v(N), S.style.transitionDuration = "0ms", V.style.transitionDuration = "0ms", P.style.transitionDuration = "0ms", a("scrollbarDragMove", N));
20357
20333
  }
20358
20334
  function k(N) {
20359
20335
  const M = u(), { scrollbar: S, wrapperEl: V } = e, { el: P } = S;
@@ -20366,7 +20342,7 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
20366
20342
  if (!V)
20367
20343
  return;
20368
20344
  const P = S.passiveListeners ? { passive: !1, capture: !1 } : !1, B = S.passiveListeners ? { passive: !0, capture: !1 } : !1, $ = N === "on" ? "addEventListener" : "removeEventListener";
20369
- V[$]("pointerdown", v, P), document[$]("pointermove", _, P), document[$]("pointerup", k, B);
20345
+ V[$]("pointerdown", _, P), document[$]("pointermove", b, P), document[$]("pointerup", k, B);
20370
20346
  }
20371
20347
  function T() {
20372
20348
  !u().el || !e.scrollbar.el || C("on");
@@ -20499,17 +20475,17 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
20499
20475
  L.setAttribute("id", $);
20500
20476
  });
20501
20477
  }
20502
- function b(B, $) {
20478
+ function v(B, $) {
20503
20479
  makeElementsArray(B).forEach((L) => {
20504
20480
  L.setAttribute("aria-live", $);
20505
20481
  });
20506
20482
  }
20507
- function v(B) {
20483
+ function _(B) {
20508
20484
  makeElementsArray(B).forEach((w) => {
20509
20485
  w.setAttribute("aria-disabled", "true");
20510
20486
  });
20511
20487
  }
20512
- function _(B) {
20488
+ function b(B) {
20513
20489
  makeElementsArray(B).forEach((w) => {
20514
20490
  w.removeAttribute("aria-disabled");
20515
20491
  });
@@ -20530,7 +20506,7 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
20530
20506
  if (e.params.loop || e.params.rewind || !e.navigation)
20531
20507
  return;
20532
20508
  const { nextEl: B, prevEl: $ } = e.navigation;
20533
- $ && (e.isBeginning ? (v($), u($)) : (_($), d($))), B && (e.isEnd ? (v(B), u(B)) : (_(B), d(B)));
20509
+ $ && (e.isBeginning ? (_($), u($)) : (b($), d($))), B && (e.isEnd ? (_(B), u(B)) : (b(B), d(B)));
20534
20510
  }
20535
20511
  function T() {
20536
20512
  return !!(e.pagination && e.pagination.bullets && e.pagination.bullets.length);
@@ -20591,7 +20567,7 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
20591
20567
  const w = e.wrapperEl, L = String(B.id || w.getAttribute("id") || `swiper-wrapper-${c(16)}`);
20592
20568
  if (g(w, L), B.wrapperLiveRegion) {
20593
20569
  const j = e.params.autoplay, W = e.params.autoplay && j?.enabled ? "off" : "polite";
20594
- b(w, W);
20570
+ v(w, W);
20595
20571
  }
20596
20572
  S();
20597
20573
  const A = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, R = makeElementsArray(A.nextEl), z = makeElementsArray(A.prevEl);
@@ -23003,32 +22979,32 @@ function requireCommon() {
23003
22979
  a.selectColor = n;
23004
22980
  function a(u) {
23005
22981
  let f, p = null, m, g;
23006
- function b(...v) {
23007
- if (!b.enabled)
22982
+ function v(..._) {
22983
+ if (!v.enabled)
23008
22984
  return;
23009
- const _ = b, k = Number(/* @__PURE__ */ new Date()), C = k - (f || k);
23010
- _.diff = C, _.prev = f, _.curr = k, f = k, v[0] = a.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
22985
+ const b = v, k = Number(/* @__PURE__ */ new Date()), C = k - (f || k);
22986
+ b.diff = C, b.prev = f, b.curr = k, f = k, _[0] = a.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
23011
22987
  let T = 0;
23012
- v[0] = v[0].replace(/%([a-zA-Z%])/g, (I, E) => {
22988
+ _[0] = _[0].replace(/%([a-zA-Z%])/g, (I, E) => {
23013
22989
  if (I === "%%")
23014
22990
  return "%";
23015
22991
  T++;
23016
22992
  const O = a.formatters[E];
23017
22993
  if (typeof O == "function") {
23018
- const F = v[T];
23019
- I = O.call(_, F), v.splice(T, 1), T--;
22994
+ const F = _[T];
22995
+ I = O.call(b, F), _.splice(T, 1), T--;
23020
22996
  }
23021
22997
  return I;
23022
- }), a.formatArgs.call(_, v), (_.log || a.log).apply(_, v);
22998
+ }), a.formatArgs.call(b, _), (b.log || a.log).apply(b, _);
23023
22999
  }
23024
- return b.namespace = u, b.useColors = a.useColors(), b.color = a.selectColor(u), b.extend = o, b.destroy = a.destroy, Object.defineProperty(b, "enabled", {
23000
+ return v.namespace = u, v.useColors = a.useColors(), v.color = a.selectColor(u), v.extend = o, v.destroy = a.destroy, Object.defineProperty(v, "enabled", {
23025
23001
  enumerable: !0,
23026
23002
  configurable: !1,
23027
23003
  get: () => p !== null ? p : (m !== a.namespaces && (m = a.namespaces, g = a.enabled(u)), g),
23028
- set: (v) => {
23029
- p = v;
23004
+ set: (_) => {
23005
+ p = _;
23030
23006
  }
23031
- }), typeof a.init == "function" && a.init(b), b;
23007
+ }), typeof a.init == "function" && a.init(v), v;
23032
23008
  }
23033
23009
  function o(u, f) {
23034
23010
  const p = a(this.namespace + (typeof f > "u" ? ":" : f) + u);
@@ -23041,12 +23017,12 @@ function requireCommon() {
23041
23017
  p[0] === "-" ? a.skips.push(p.slice(1)) : a.names.push(p);
23042
23018
  }
23043
23019
  function s(u, f) {
23044
- let p = 0, m = 0, g = -1, b = 0;
23020
+ let p = 0, m = 0, g = -1, v = 0;
23045
23021
  for (; p < u.length; )
23046
23022
  if (m < f.length && (f[m] === u[p] || f[m] === "*"))
23047
- f[m] === "*" ? (g = m, b = p, m++) : (p++, m++);
23023
+ f[m] === "*" ? (g = m, v = p, m++) : (p++, m++);
23048
23024
  else if (g !== -1)
23049
- m = g + 1, b++, p = b;
23025
+ m = g + 1, v++, p = v;
23050
23026
  else
23051
23027
  return !1;
23052
23028
  for (; m < f.length && f[m] === "*"; )
@@ -23296,29 +23272,29 @@ function requireYouTubePlayer() {
23296
23272
  f.proxyEvents = (p) => {
23297
23273
  const m = {};
23298
23274
  for (const g of i.default) {
23299
- const b = "on" + g.slice(0, 1).toUpperCase() + g.slice(1);
23300
- m[b] = (v) => {
23301
- u('event "%s"', b, v), p.trigger(g, v);
23275
+ const v = "on" + g.slice(0, 1).toUpperCase() + g.slice(1);
23276
+ m[v] = (_) => {
23277
+ u('event "%s"', v, _), p.trigger(g, _);
23302
23278
  };
23303
23279
  }
23304
23280
  return m;
23305
23281
  }, f.promisifyPlayer = (p, m = !1) => {
23306
23282
  const g = {};
23307
- for (const b of c.default)
23308
- m && r.default[b] ? g[b] = (...v) => p.then((_) => {
23309
- const k = r.default[b], C = _.getPlayerState(), T = _[b].apply(_, v);
23283
+ for (const v of c.default)
23284
+ m && r.default[v] ? g[v] = (..._) => p.then((b) => {
23285
+ const k = r.default[v], C = b.getPlayerState(), T = b[v].apply(b, _);
23310
23286
  return k.stateChangeRequired || // eslint-disable-next-line no-extra-parens
23311
23287
  Array.isArray(k.acceptableStates) && !k.acceptableStates.includes(C) ? new Promise((D) => {
23312
23288
  const I = () => {
23313
- const E = _.getPlayerState();
23289
+ const E = b.getPlayerState();
23314
23290
  let O;
23315
23291
  typeof k.timeout == "number" && (O = setTimeout(() => {
23316
- _.removeEventListener("onStateChange", I), D();
23317
- }, k.timeout)), Array.isArray(k.acceptableStates) && k.acceptableStates.includes(E) && (_.removeEventListener("onStateChange", I), clearTimeout(O), D());
23292
+ b.removeEventListener("onStateChange", I), D();
23293
+ }, k.timeout)), Array.isArray(k.acceptableStates) && k.acceptableStates.includes(E) && (b.removeEventListener("onStateChange", I), clearTimeout(O), D());
23318
23294
  };
23319
- _.addEventListener("onStateChange", I);
23295
+ b.addEventListener("onStateChange", I);
23320
23296
  }).then(() => T) : T;
23321
- }) : g[b] = (...v) => p.then((_) => _[b].apply(_, v));
23297
+ }) : g[v] = (..._) => p.then((b) => b[v].apply(b, _));
23322
23298
  return g;
23323
23299
  }, t.default = f, e.exports = t.default;
23324
23300
  })(YouTubePlayer, YouTubePlayer.exports)), YouTubePlayer.exports;
@@ -23396,11 +23372,11 @@ function requireDist() {
23396
23372
  if (typeof d == "string" && !document.getElementById(d))
23397
23373
  throw new Error('Element "' + d + '" does not exist.');
23398
23374
  u.events = r.default.proxyEvents(p);
23399
- const m = new Promise((b) => {
23400
- typeof d == "object" && d.playVideo instanceof Function ? b(d) : c.then((v) => {
23401
- const _ = new v.Player(d, u);
23375
+ const m = new Promise((v) => {
23376
+ typeof d == "object" && d.playVideo instanceof Function ? v(d) : c.then((_) => {
23377
+ const b = new _.Player(d, u);
23402
23378
  return p.on("ready", () => {
23403
- b(_);
23379
+ v(b);
23404
23380
  }), null;
23405
23381
  });
23406
23382
  }), g = r.default.promisifyPlayer(m, f);
@@ -27195,7 +27171,8 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27195
27171
  VsButton,
27196
27172
  VsHeading,
27197
27173
  VsWarning,
27198
- VsTextarea
27174
+ VsTextarea,
27175
+ VsBody
27199
27176
  },
27200
27177
  mixins: [dataLayerMixin],
27201
27178
  props: {
@@ -27336,7 +27313,8 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27336
27313
  conditionalFields: {},
27337
27314
  inputVal: "",
27338
27315
  reAlertErrors: !1,
27339
- emailFieldName: ""
27316
+ emailFieldName: "",
27317
+ submitDisabled: !1
27340
27318
  };
27341
27319
  },
27342
27320
  computed: {
@@ -27358,7 +27336,7 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27358
27336
  getFormData() {
27359
27337
  axios.get(this.dataUrl).then((e) => {
27360
27338
  this.formData = e.data, this.isMarketo && window.MktoForms2 && window.MktoForms2.loadForm(this.marketoInstance, this.munchkinId, this.formId), e.data.fields.forEach((t) => {
27361
- this.form[t.name] = "", t.conditional && (this.conditionalFields[t.name] = !1);
27339
+ t.element !== "text-block" && t.element !== "hr" && (this.form[t.name] = ""), t.conditional && (this.conditionalFields[t.name] = !1);
27362
27340
  }), this.checkConditionalFields();
27363
27341
  }).catch(() => {
27364
27342
  });
@@ -27422,6 +27400,15 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27422
27400
  let a;
27423
27401
  return this.language === "en" && !this.isUndefined(this.formData.fields[t].validationMessages) ? a = this.formData.fields[t].validationMessages : !this.isUndefined(n[e]) && !this.isUndefined(n[e].validationMessages) ? a = n[e].validationMessages : this.language === "en" && (a = this.formData.fields[t].validationMessages), a;
27424
27402
  },
27403
+ /**
27404
+ * Attempts to retrieve the text block content for a given field from the current
27405
+ * language obj. If no localisation is available, or the language is en, falls back
27406
+ * to the default content for the fieldname.
27407
+ */
27408
+ getTranslatedTextBlockContent(e, t) {
27409
+ const n = this.getLanguageObj();
27410
+ return this.language !== "en" && !this.isUndefined(n[e]) && !this.isUndefined(n[e].content) ? n[e].content : this.formData.fields[t].content;
27411
+ },
27425
27412
  /**
27426
27413
  * Attempts to retrieve the options for a given select field from the current language
27427
27414
  * obj. If no localisation is available, or the langauge is en, falls back to the default
@@ -27554,14 +27541,16 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27554
27541
  * component or if that should be handled separately.
27555
27542
  */
27556
27543
  needsLabel(e) {
27557
- return !(e.element === "radio" || e.element === "submit" || e.element === "checkbox");
27544
+ return !(e.element === "radio" || e.element === "submit" || e.element === "checkbox" || e.element === "text-block" || e.element === "hr");
27558
27545
  },
27559
27546
  /**
27560
27547
  * Interrupts form submission to ensure that manually triggered validation and recaptcha
27561
27548
  * verification has occurred. If successful, proceeds with submission.
27562
27549
  */
27563
27550
  preSubmit(e) {
27564
- e.preventDefault(), this.submitError = !1;
27551
+ if (e.preventDefault(), this.submitDisabled)
27552
+ return;
27553
+ this.submitError = !1;
27565
27554
  function t(a) {
27566
27555
  return a.validation && a.validation.required;
27567
27556
  }
@@ -27645,15 +27634,30 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27645
27634
  let n = !0;
27646
27635
  Object.keys(t.conditional).forEach((a) => {
27647
27636
  const o = t.conditional[a];
27648
- Array.isArray(o) ? o.indexOf(this.form[a]) === -1 && (n = !1) : this.form[a] !== o && (n = !1), n ? this.conditionalFields[e] || (this.conditionalFields[e] = !0, this.$refs[e] && this.$refs[e][0].manualValidate()) : (this.manageErrorStatus(e, []), this.conditionalFields[e] = !1);
27649
- });
27650
- });
27637
+ Array.isArray(o) ? o.indexOf(this.form[a]) === -1 && (n = !1) : this.form[a] !== o && (n = !1);
27638
+ }), n ? this.conditionalFields[e] || (this.conditionalFields[e] = !0, this.$refs[e] && this.$refs[e][0].manualValidate()) : (this.manageErrorStatus(e, []), this.conditionalFields[e] = !1);
27639
+ }), this.checkSubmitConditional();
27651
27640
  },
27652
27641
  /**
27653
27642
  * Sets the 'd-none' class on conditional fields which are currently not displaying.
27654
27643
  */
27655
27644
  conditionalElementClass(e) {
27656
27645
  return this.conditionalFields[e] === !0 || typeof this.conditionalFields[e] > "u" ? "" : "d-none";
27646
+ },
27647
+ /**
27648
+ * Checks whether the submitConditional config meets its condition, and updates
27649
+ * the submitDisabled flag. When the condition is met the submit button is disabled.
27650
+ */
27651
+ checkSubmitConditional() {
27652
+ if (!this.formData.submitConditional) {
27653
+ this.submitDisabled = !1;
27654
+ return;
27655
+ }
27656
+ let e = !1;
27657
+ Object.keys(this.formData.submitConditional).forEach((t) => {
27658
+ const n = this.formData.submitConditional[t];
27659
+ Array.isArray(n) ? n.length === 0 ? this.form[t] || (e = !0) : n.indexOf(this.form[t]) === -1 && (e = !0) : this.form[t] !== n && (e = !0);
27660
+ }), this.submitDisabled = e;
27657
27661
  }
27658
27662
  }
27659
27663
  }, _hoisted_1$M = {
@@ -27662,109 +27666,124 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_re
27662
27666
  }, _hoisted_2$x = {
27663
27667
  class: "vs-form__main-heading vs-heading vs-heading--heading-l float-none",
27664
27668
  "data-test": "vs-form__main-heading"
27665
- }, _hoisted_3$o = ["name", "value"], _hoisted_4$i = { key: 0 }, _hoisted_5$g = { "aria-live": "assertive" }, _hoisted_6$c = { key: 0 }, _hoisted_7$b = ["innerHTML"], _hoisted_8$7 = {
27669
+ }, _hoisted_3$o = ["name", "value"], _hoisted_4$i = { key: 0 }, _hoisted_5$g = ["innerHTML"], _hoisted_6$c = {
27670
+ key: 5,
27671
+ class: "vs-form__hr"
27672
+ }, _hoisted_7$b = { "aria-live": "assertive" }, _hoisted_8$7 = { key: 0 }, _hoisted_9$7 = ["innerHTML"], _hoisted_10$7 = {
27666
27673
  key: 2,
27667
27674
  class: "mt-200"
27668
27675
  };
27669
27676
  function _sfc_render$S(e, t, n, a, o, r) {
27670
- const s = resolveComponent("VsInput"), i = resolveComponent("VsSelect"), l = resolveComponent("VsCheckbox"), c = resolveComponent("VsTextarea"), d = resolveComponent("BFormGroup"), u = resolveComponent("VsRecaptcha"), f = resolveComponent("VsButton"), p = resolveComponent("VsWarning"), m = resolveComponent("VsHeading");
27677
+ const s = resolveComponent("VsInput"), i = resolveComponent("VsSelect"), l = resolveComponent("VsCheckbox"), c = resolveComponent("VsTextarea"), d = resolveComponent("VsBody"), u = resolveComponent("BFormGroup"), f = resolveComponent("VsRecaptcha"), p = resolveComponent("VsButton"), m = resolveComponent("VsWarning"), g = resolveComponent("VsHeading");
27671
27678
  return openBlock(), createElementBlock("div", _hoisted_1$M, [
27672
27679
  t[1] || (t[1] = createElementVNode("form", { class: "d-none" }, null, -1)),
27673
27680
  o.submitted ? createCommentVNode("", !0) : (openBlock(), createElementBlock("form", {
27674
27681
  key: 0,
27675
- onSubmit: t[0] || (t[0] = withModifiers((...g) => r.preSubmit && r.preSubmit(...g), ["prevent"]))
27682
+ onSubmit: t[0] || (t[0] = withModifiers((...v) => r.preSubmit && r.preSubmit(...v), ["prevent"]))
27676
27683
  }, [
27677
27684
  createElementVNode("fieldset", null, [
27678
27685
  createElementVNode("legend", _hoisted_2$x, toDisplayString(r.getTranslatedContent("heading")), 1),
27679
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.formData.fields, (g, b) => (openBlock(), createElementBlock(Fragment, {
27680
- key: g.name
27686
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.formData.fields, (v, _) => (openBlock(), createElementBlock(Fragment, {
27687
+ key: v.name
27681
27688
  }, [
27682
- g.element === "hidden" ? (openBlock(), createElementBlock("input", {
27689
+ v.element === "hidden" ? (openBlock(), createElementBlock("input", {
27683
27690
  type: "hidden",
27684
- key: g.name,
27691
+ key: v.name,
27685
27692
  ref_for: !0,
27686
- ref: g.name,
27687
- name: g.name,
27688
- value: g.value
27689
- }, null, 8, _hoisted_3$o)) : (openBlock(), createBlock(d, {
27693
+ ref: v.name,
27694
+ name: v.name,
27695
+ value: v.value
27696
+ }, null, 8, _hoisted_3$o)) : (openBlock(), createBlock(u, {
27690
27697
  key: 1,
27691
- label: r.needsLabel(g) ? r.getTranslatedLabel(g.name, b) : "",
27692
- "label-for": r.needsLabel(g) ? g.name : "",
27693
- class: normalizeClass(r.conditionalElementClass(g.name))
27698
+ label: r.needsLabel(v) ? r.getTranslatedLabel(v.name, _) : "",
27699
+ "label-for": r.needsLabel(v) ? v.name : "",
27700
+ class: normalizeClass(r.conditionalElementClass(v.name))
27694
27701
  }, {
27695
27702
  default: withCtx(() => [
27696
- !r.isUndefined(g.descriptor) && g.element === "checkbox" ? (openBlock(), createElementBlock("legend", _hoisted_4$i, toDisplayString(r.getTranslatedLegend(g.name, b)), 1)) : createCommentVNode("", !0),
27703
+ !r.isUndefined(v.descriptor) && v.element === "checkbox" ? (openBlock(), createElementBlock("legend", _hoisted_4$i, toDisplayString(r.getTranslatedLegend(v.name, _)), 1)) : createCommentVNode("", !0),
27697
27704
  createElementVNode("div", {
27698
- class: normalizeClass(r.conditionalElementClass(g.name))
27705
+ class: normalizeClass(r.conditionalElementClass(v.name))
27699
27706
  }, [
27700
- g.element === "input" ? (openBlock(), createBlock(s, {
27707
+ v.element === "input" ? (openBlock(), createBlock(s, {
27701
27708
  key: 0,
27702
27709
  ref_for: !0,
27703
- ref: g.name,
27710
+ ref: v.name,
27704
27711
  onStatusUpdate: r.updateFieldData,
27705
- "field-name": g.name,
27706
- type: g.type,
27707
- "validation-rules": g.validation || {},
27708
- "validation-messages": r.getTranslatedValidation(g.name, b) || {},
27712
+ "field-name": v.name,
27713
+ type: v.type,
27714
+ "validation-rules": v.validation || {},
27715
+ "validation-messages": r.getTranslatedValidation(v.name, _) || {},
27709
27716
  "generic-validation": r.getMessagingData("validation", n.language),
27710
- invalid: o.errorFields.indexOf(g.name) > -1,
27717
+ invalid: o.errorFields.indexOf(v.name) > -1,
27711
27718
  "trigger-validate": o.triggerValidate,
27712
- "hint-text": r.getTranslatedHint(g.name, b),
27713
- placeholder: g.placeholder || "",
27719
+ "hint-text": r.getTranslatedHint(v.name, _),
27720
+ placeholder: v.placeholder || "",
27714
27721
  "re-alert-errors": o.reAlertErrors
27715
27722
  }, null, 8, ["onStatusUpdate", "field-name", "type", "validation-rules", "validation-messages", "generic-validation", "invalid", "trigger-validate", "hint-text", "placeholder", "re-alert-errors"])) : createCommentVNode("", !0),
27716
- g.element === "select" ? (openBlock(), createBlock(i, {
27723
+ v.element === "select" ? (openBlock(), createBlock(i, {
27717
27724
  key: 1,
27718
- options: r.getTranslatedOptions(g.name, b),
27725
+ options: r.getTranslatedOptions(v.name, _),
27719
27726
  ref_for: !0,
27720
- ref: g.name,
27727
+ ref: v.name,
27721
27728
  onStatusUpdate: r.updateFieldData,
27722
- "field-name": g.name,
27723
- "validation-rules": g.validation || {},
27724
- "validation-messages": r.getTranslatedValidation(g.name, b) || {},
27729
+ "field-name": v.name,
27730
+ "validation-rules": v.validation || {},
27731
+ "validation-messages": r.getTranslatedValidation(v.name, _) || {},
27725
27732
  "generic-validation": r.getMessagingData("validation", n.language),
27726
- invalid: o.errorFields.indexOf(g.name) > -1,
27733
+ invalid: o.errorFields.indexOf(v.name) > -1,
27727
27734
  "trigger-validate": o.triggerValidate,
27728
27735
  "country-list-url": n.countryListUrl,
27729
- countries: g.countries,
27730
- "hint-text": r.getTranslatedHint(g.name, b),
27736
+ countries: v.countries,
27737
+ "hint-text": r.getTranslatedHint(v.name, _),
27731
27738
  "re-alert-errors": o.reAlertErrors
27732
27739
  }, null, 8, ["options", "onStatusUpdate", "field-name", "validation-rules", "validation-messages", "generic-validation", "invalid", "trigger-validate", "country-list-url", "countries", "hint-text", "re-alert-errors"])) : createCommentVNode("", !0),
27733
- g.element === "checkbox" ? (openBlock(), createBlock(l, {
27734
- key: g.name,
27740
+ v.element === "checkbox" ? (openBlock(), createBlock(l, {
27741
+ key: v.name,
27735
27742
  ref_for: !0,
27736
- ref: g.name,
27737
- name: g.name,
27738
- value: g.value,
27739
- label: r.getTranslatedLabel(g.name, b),
27743
+ ref: v.name,
27744
+ name: v.name,
27745
+ value: v.value,
27746
+ label: r.getTranslatedLabel(v.name, _),
27740
27747
  onStatusUpdate: r.updateFieldData,
27741
- "field-name": g.name,
27742
- "validation-rules": g.validation || {},
27743
- "validation-messages": r.getTranslatedValidation(g.name, b) || {},
27748
+ "field-name": v.name,
27749
+ "validation-rules": v.validation || {},
27750
+ "validation-messages": r.getTranslatedValidation(v.name, _) || {},
27744
27751
  "generic-validation": r.getMessagingData("validation", n.language),
27745
- invalid: o.errorFields.indexOf(g.name) > -1,
27752
+ invalid: o.errorFields.indexOf(v.name) > -1,
27746
27753
  "trigger-validate": o.triggerValidate,
27747
27754
  "optional-text": r.getMessagingData("optional", n.language),
27748
- "hint-text": r.getTranslatedHint(g.name, b),
27749
- "info-text": r.getTranslatedInfo(g.name, b),
27755
+ "hint-text": r.getTranslatedHint(v.name, _),
27756
+ "info-text": r.getTranslatedInfo(v.name, _),
27750
27757
  "re-alert-errors": o.reAlertErrors
27751
27758
  }, null, 8, ["name", "value", "label", "onStatusUpdate", "field-name", "validation-rules", "validation-messages", "generic-validation", "invalid", "trigger-validate", "optional-text", "hint-text", "info-text", "re-alert-errors"])) : createCommentVNode("", !0),
27752
- g.element === "textarea" ? (openBlock(), createBlock(c, {
27759
+ v.element === "textarea" ? (openBlock(), createBlock(c, {
27753
27760
  key: 3,
27754
27761
  ref_for: !0,
27755
- ref: g.name,
27762
+ ref: v.name,
27756
27763
  onStatusUpdate: r.updateFieldData,
27757
- "field-name": g.name,
27758
- "validation-rules": g.validation || {},
27759
- "validation-messages": r.getTranslatedValidation(g.name, b) || {},
27764
+ "field-name": v.name,
27765
+ "validation-rules": v.validation || {},
27766
+ "validation-messages": r.getTranslatedValidation(v.name, _) || {},
27760
27767
  "generic-validation": r.getMessagingData("validation", n.language),
27761
- invalid: o.errorFields.indexOf(g.name) > -1,
27768
+ invalid: o.errorFields.indexOf(v.name) > -1,
27762
27769
  "trigger-validate": o.triggerValidate,
27763
- "hint-text": r.getTranslatedHint(g.name, b),
27764
- placeholder: g.placeholder || "",
27770
+ "hint-text": r.getTranslatedHint(v.name, _),
27771
+ placeholder: v.placeholder || "",
27765
27772
  "re-alert-errors": o.reAlertErrors,
27766
- rows: g.rows || null
27767
- }, null, 8, ["onStatusUpdate", "field-name", "validation-rules", "validation-messages", "generic-validation", "invalid", "trigger-validate", "hint-text", "placeholder", "re-alert-errors", "rows"])) : createCommentVNode("", !0)
27773
+ rows: v.rows || null
27774
+ }, null, 8, ["onStatusUpdate", "field-name", "validation-rules", "validation-messages", "generic-validation", "invalid", "trigger-validate", "hint-text", "placeholder", "re-alert-errors", "rows"])) : createCommentVNode("", !0),
27775
+ v.element === "text-block" ? (openBlock(), createBlock(d, {
27776
+ key: 4,
27777
+ "aria-live": "polite"
27778
+ }, {
27779
+ default: withCtx(() => [
27780
+ createElementVNode("div", {
27781
+ innerHTML: r.getTranslatedTextBlockContent(v.name, _)
27782
+ }, null, 8, _hoisted_5$g)
27783
+ ]),
27784
+ _: 2
27785
+ }, 1024)) : createCommentVNode("", !0),
27786
+ v.element === "hr" ? (openBlock(), createElementBlock("hr", _hoisted_6$c)) : createCommentVNode("", !0)
27768
27787
  ], 2)
27769
27788
  ]),
27770
27789
  _: 2
@@ -27772,7 +27791,7 @@ function _sfc_render$S(e, t, n, a, o, r) {
27772
27791
  ], 64))), 128))
27773
27792
  ]),
27774
27793
  renderSlot(e.$slots, "hidden-fields"),
27775
- n.usesRecaptcha ? (openBlock(), createBlock(u, {
27794
+ n.usesRecaptcha ? (openBlock(), createBlock(f, {
27776
27795
  key: 0,
27777
27796
  onVerified: r.onRecaptchaVerify,
27778
27797
  "site-key": n.recaptchaKey,
@@ -27783,30 +27802,31 @@ function _sfc_render$S(e, t, n, a, o, r) {
27783
27802
  "textarea-label": n.recaptchaTextareaLabel,
27784
27803
  "re-alert-errors": o.reAlertErrors
27785
27804
  }, null, 8, ["onVerified", "site-key", "invalid", "language", "error-msg", "textarea-label", "re-alert-errors"])) : createCommentVNode("", !0),
27786
- createVNode(f, {
27805
+ createVNode(p, {
27787
27806
  variant: "primary",
27788
27807
  type: "submit",
27789
27808
  class: "vs-form__submit mt-300",
27809
+ disabled: o.submitDisabled,
27790
27810
  onClick: r.preSubmit
27791
27811
  }, {
27792
27812
  default: withCtx(() => [
27793
27813
  createTextVNode(toDisplayString(r.getTranslatedContent("submit")), 1)
27794
27814
  ]),
27795
27815
  _: 1
27796
- }, 8, ["onClick"])
27816
+ }, 8, ["disabled", "onClick"])
27797
27817
  ], 32)),
27798
- createVNode(p, { class: "vs-form__no-js" }, {
27818
+ createVNode(m, { class: "vs-form__no-js" }, {
27799
27819
  default: withCtx(() => [
27800
27820
  renderSlot(e.$slots, "no-js")
27801
27821
  ]),
27802
27822
  _: 3
27803
27823
  }),
27804
- createElementVNode("div", _hoisted_5$g, [
27805
- o.submitting ? (openBlock(), createElementBlock("p", _hoisted_6$c, [
27824
+ createElementVNode("div", _hoisted_7$b, [
27825
+ o.submitting ? (openBlock(), createElementBlock("p", _hoisted_8$7, [
27806
27826
  renderSlot(e.$slots, "submitting")
27807
27827
  ])) : createCommentVNode("", !0),
27808
27828
  o.submitted ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
27809
- r.getTranslatedContent("successHeading") ? (openBlock(), createBlock(m, {
27829
+ r.getTranslatedContent("successHeading") ? (openBlock(), createBlock(g, {
27810
27830
  key: 0,
27811
27831
  level: "2",
27812
27832
  "heading-style": "heading-l"
@@ -27819,9 +27839,9 @@ function _sfc_render$S(e, t, n, a, o, r) {
27819
27839
  createElementVNode("p", {
27820
27840
  class: "vs-form__content",
27821
27841
  innerHTML: r.getTranslatedContent("successContent")
27822
- }, null, 8, _hoisted_7$b)
27842
+ }, null, 8, _hoisted_9$7)
27823
27843
  ], 64)) : createCommentVNode("", !0),
27824
- o.submitError ? (openBlock(), createElementBlock("p", _hoisted_8$7, [
27844
+ o.submitError ? (openBlock(), createElementBlock("p", _hoisted_10$7, [
27825
27845
  renderSlot(e.$slots, "submit-error")
27826
27846
  ])) : createCommentVNode("", !0)
27827
27847
  ])
@@ -28284,7 +28304,7 @@ const VsSiteSearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _
28284
28304
  "data-test": "vs-mega-nav-mobile-container"
28285
28305
  };
28286
28306
  function _sfc_render$N(e, t, n, a, o, r) {
28287
- const s = resolveComponent("VsImg"), i = resolveComponent("VsLink"), l = resolveComponent("VsCol"), c = resolveComponent("VsMegaNavTopMenu"), d = resolveComponent("VsButton"), u = resolveComponent("VsSiteSearch"), f = resolveComponent("VsMegaNavMobileMenu"), p = resolveComponent("VsRow"), m = resolveComponent("VsContainer"), g = resolveComponent("VsSiteSearchForm"), b = resolveDirective("click-outside");
28307
+ const s = resolveComponent("VsImg"), i = resolveComponent("VsLink"), l = resolveComponent("VsCol"), c = resolveComponent("VsMegaNavTopMenu"), d = resolveComponent("VsButton"), u = resolveComponent("VsSiteSearch"), f = resolveComponent("VsMegaNavMobileMenu"), p = resolveComponent("VsRow"), m = resolveComponent("VsContainer"), g = resolveComponent("VsSiteSearchForm"), v = resolveDirective("click-outside");
28288
28308
  return openBlock(), createElementBlock("div", null, [
28289
28309
  createElementVNode("nav", _hoisted_1$I, [
28290
28310
  createVNode(m, {
@@ -28392,7 +28412,7 @@ function _sfc_render$N(e, t, n, a, o, r) {
28392
28412
  "icon-only": "",
28393
28413
  icon: o.isOpen ? "vs-icon-control-dismiss" : "vs-icon-control-menu",
28394
28414
  variant: "subtle",
28395
- onClick: t[0] || (t[0] = (v) => r.menuToggle()),
28415
+ onClick: t[0] || (t[0] = (_) => r.menuToggle()),
28396
28416
  ref: "toggleButton",
28397
28417
  rounded: !1,
28398
28418
  "aria-haspopup": "true"
@@ -28408,7 +28428,7 @@ function _sfc_render$N(e, t, n, a, o, r) {
28408
28428
  ]),
28409
28429
  _: 3
28410
28430
  })), [
28411
- [b, r.closeMenu]
28431
+ [v, r.closeMenu]
28412
28432
  ]) : createCommentVNode("", !0)
28413
28433
  ])
28414
28434
  ]),
@@ -31535,9 +31555,9 @@ const _hoisted_1$t = {
31535
31555
  default: withCtx(({
31536
31556
  getInputProps: m,
31537
31557
  getInputEventListeners: g,
31538
- hoveredIndex: b,
31539
- isOpen: v,
31540
- getMenuProps: _,
31558
+ hoveredIndex: v,
31559
+ isOpen: _,
31560
+ getMenuProps: b,
31541
31561
  getMenuEventListeners: k,
31542
31562
  getItemProps: C,
31543
31563
  getItemEventListeners: T,
@@ -31554,14 +31574,14 @@ const _hoisted_1$t = {
31554
31574
  variant: "cta",
31555
31575
  size: "sm"
31556
31576
  }),
31557
- withDirectives(createElementVNode("ul", mergeProps(_(), toHandlers(k(), !0), { class: "vs-autocomplete__list" }), [
31577
+ withDirectives(createElementVNode("ul", mergeProps(b(), toHandlers(k(), !0), { class: "vs-autocomplete__list" }), [
31558
31578
  (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (E, O) => (openBlock(), createElementBlock("li", mergeProps({
31559
31579
  key: E.id
31560
31580
  }, { ref_for: !0 }, C({ item: E, index: O }), toHandlers(T({ item: E, index: O }), !0), {
31561
- class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": b === O }]
31581
+ class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v === O }]
31562
31582
  }), toDisplayString(E[c.value]), 17))), 128))
31563
31583
  ], 16), [
31564
- [vShow, v]
31584
+ [vShow, _]
31565
31585
  ])
31566
31586
  ], 16)
31567
31587
  ]),
@@ -31642,61 +31662,61 @@ const _hoisted_1$t = {
31642
31662
  emits: ["dateUpdated"],
31643
31663
  setup(e, { emit: t }) {
31644
31664
  const n = e, a = t, o = ref(""), r = ref(""), s = computed$1(() => !!o.value || !!r.value), i = computed$1(() => {
31645
- const _ = new Date(r.value), k = new Date(o.value), C = _.getTime() - k.getTime();
31665
+ const b = new Date(r.value), k = new Date(o.value), C = b.getTime() - k.getTime();
31646
31666
  return isNaN(C) ? 1 : C / (1e3 * 3600 * 24);
31647
31667
  });
31648
31668
  function l() {
31649
31669
  o.value = "", r.value = "";
31650
31670
  }
31651
- const c = (_) => {
31652
- const k = _.toLocaleString("default", {
31671
+ const c = (b) => {
31672
+ const k = b.toLocaleString("default", {
31653
31673
  year: "numeric"
31654
- }), C = _.toLocaleString("default", {
31674
+ }), C = b.toLocaleString("default", {
31655
31675
  month: "2-digit"
31656
- }), T = _.toLocaleString("default", {
31676
+ }), T = b.toLocaleString("default", {
31657
31677
  day: "2-digit"
31658
31678
  });
31659
31679
  return `${k}-${C}-${T}`;
31660
31680
  }, d = computed$1(() => o.value === "" ? c(/* @__PURE__ */ new Date()) : ""), u = computed$1(() => {
31661
- let _;
31681
+ let b;
31662
31682
  if (o.value !== "") {
31663
31683
  const k = new Date(o.value);
31664
- k.setDate(k.getDate() + 1), _ = c(k);
31684
+ k.setDate(k.getDate() + 1), b = c(k);
31665
31685
  } else if (n.defaultDates) {
31666
31686
  const k = /* @__PURE__ */ new Date(), C = new Date(k);
31667
- C.setDate(C.getDate() + 1), _ = c(C);
31687
+ C.setDate(C.getDate() + 1), b = c(C);
31668
31688
  }
31669
- return _;
31689
+ return b;
31670
31690
  }), f = computed$1(() => {
31671
- let _;
31691
+ let b;
31672
31692
  if (o.value === "") {
31673
31693
  const k = /* @__PURE__ */ new Date(), C = new Date(k);
31674
- C.setDate(C.getDate() + 1), _ = c(C);
31694
+ C.setDate(C.getDate() + 1), b = c(C);
31675
31695
  } else {
31676
31696
  const k = /* @__PURE__ */ new Date(), C = new Date(o.value);
31677
- k.setDate(C.getDate() + 1), _ = c(k);
31697
+ k.setDate(C.getDate() + 1), b = c(k);
31678
31698
  }
31679
- return _;
31699
+ return b;
31680
31700
  });
31681
31701
  function p() {
31682
- const _ = new Date(o.value);
31683
- new Date(r.value) <= _ && (r.value = "");
31702
+ const b = new Date(o.value);
31703
+ new Date(r.value) <= b && (r.value = "");
31684
31704
  }
31685
31705
  function m() {
31686
- const _ = !(!o.value && !r.value);
31687
- a("dateUpdated", _);
31706
+ const b = !(!o.value && !r.value);
31707
+ a("dateUpdated", b);
31688
31708
  }
31689
31709
  function g() {
31690
31710
  m(), p();
31691
31711
  }
31692
- const b = computed$1(() => n.selectedProd === "acco" ? "stay" : "isostartdate"), v = computed$1(() => n.selectedProd === "acco" ? "endDate" : "isoenddate");
31693
- return (_, k) => (openBlock(), createElementBlock("fieldset", _hoisted_1$r, [
31712
+ const v = computed$1(() => n.selectedProd === "acco" ? "stay" : "isostartdate"), _ = computed$1(() => n.selectedProd === "acco" ? "endDate" : "isoenddate");
31713
+ return (b, k) => (openBlock(), createElementBlock("fieldset", _hoisted_1$r, [
31694
31714
  createElementVNode("div", _hoisted_2$j, [
31695
31715
  createElementVNode("div", _hoisted_3$c, [
31696
31716
  createVNode(_sfc_main$C, {
31697
31717
  label: e.startLabel,
31698
31718
  value: e.defaultDates && o.value === "" && r.value ? d.value : o.value,
31699
- name: b.value,
31719
+ name: v.value,
31700
31720
  id: "startDate",
31701
31721
  onChangeDate: k[0] || (k[0] = (C) => {
31702
31722
  o.value = C, g();
@@ -31709,7 +31729,7 @@ const _hoisted_1$t = {
31709
31729
  label: e.endLabel,
31710
31730
  value: e.defaultDates && r.value === "" && o.value ? u.value : r.value,
31711
31731
  "min-date": f.value,
31712
- name: v.value,
31732
+ name: _.value,
31713
31733
  id: "endDate",
31714
31734
  onChangeDate: k[1] || (k[1] = (C) => {
31715
31735
  r.value = C, g();
@@ -31829,7 +31849,7 @@ const _hoisted_1$t = {
31829
31849
  return w.includes("localhost") ? "https://www.visitscotland.com" : w;
31830
31850
  }
31831
31851
  return "https://www.visitscotland.com";
31832
- }), p = computed$1(() => `${f.value}${u.value ? "/" + u.value : ""}${l.value}/search-results`), g = "https://www.visitscotland.com/data/locations" + `?locale=${u.value}`, b = ref([]), v = "https://www.visitscotland.com/tms-api/v1/attractions", _ = ref([]), k = "https://www.visitscotland.com/tms-api/v1/origins?active=1", C = ref([]), T = ref([]), D = () => {
31852
+ }), p = computed$1(() => `${f.value}${u.value ? "/" + u.value : ""}${l.value}/search-results`), g = "https://www.visitscotland.com/data/locations" + `?locale=${u.value}`, v = ref([]), _ = "https://www.visitscotland.com/tms-api/v1/attractions", b = ref([]), k = "https://www.visitscotland.com/tms-api/v1/origins?active=1", C = ref([]), T = ref([]), D = () => {
31833
31853
  const w = getProductTypes(), L = [];
31834
31854
  w.forEach((A) => {
31835
31855
  L.push(A);
@@ -31839,15 +31859,15 @@ const _hoisted_1$t = {
31839
31859
  text: getProductName(L.value, L.text)
31840
31860
  }))), E = async () => {
31841
31861
  const w = await getData(g);
31842
- w && (b.value = w.data);
31862
+ w && (v.value = w.data);
31843
31863
  }, O = async () => {
31844
31864
  const w = await getData(k);
31845
31865
  w && (C.value = w.data);
31846
31866
  }, F = async () => {
31847
- const w = await getData(v);
31848
- w && (_.value = w.data);
31867
+ const w = await getData(_);
31868
+ w && (b.value = w.data);
31849
31869
  }, N = (w, L) => {
31850
- L === "key" ? r.value = b.value.find((A) => A.key === w) : L === "id" ? r.value = b.value.find((A) => A.id === w) : r.value = b.value.find((A) => A.name === w.trim());
31870
+ L === "key" ? r.value = v.value.find((A) => A.key === w) : L === "id" ? r.value = v.value.find((A) => A.id === w) : r.value = v.value.find((A) => A.name === w.trim());
31851
31871
  }, M = (w) => {
31852
31872
  const L = w.value;
31853
31873
  a.value = L, L === "tour" && (O(), F());
@@ -31904,7 +31924,7 @@ const _hoisted_1$t = {
31904
31924
  label: unref(getLabelText)("location", "Location"),
31905
31925
  "multiselect-label": "name",
31906
31926
  name: "loc",
31907
- options: b.value,
31927
+ options: v.value,
31908
31928
  placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
31909
31929
  "track-by": "name",
31910
31930
  onChangeValue: L[1] || (L[1] = (A) => N(A)),
@@ -32834,7 +32854,7 @@ const VsTableFooter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_
32834
32854
  class: "text-center pb-200 position-relative"
32835
32855
  }, _hoisted_5$8 = { "data-test": "vs-ski__status-label" }, _hoisted_6$7 = { "data-test": "vs-ski__runs-label" }, _hoisted_7$6 = { "data-test": "vs-ski__lifts-label" }, _hoisted_8$4 = { "data-test": "vs-ski__open-label" }, _hoisted_9$4 = { "data-test": "vs-ski__limited-patrol-label" }, _hoisted_10$4 = { "data-test": "vs-ski__opening-label" }, _hoisted_11$3 = { "data-test": "vs-ski__closed-label" }, _hoisted_12$2 = { "data-test": "vs-ski__on-hold-label" }, _hoisted_13$2 = { "data-test": "vs-ski__last-updated-label" };
32836
32856
  function _sfc_render$f(e, t, n, a, o, r) {
32837
- const s = resolveComponent("VsImg"), i = resolveComponent("VsHeading"), l = resolveComponent("VsLoadingSpinner"), c = resolveComponent("VsWarning"), d = resolveComponent("VsTableHeaderCell"), u = resolveComponent("VsTableHead"), f = resolveComponent("VsIcon"), p = resolveComponent("VsTableDataCell"), m = resolveComponent("VsTableRow"), g = resolveComponent("VsTableBody"), b = resolveComponent("VsTableFooter"), v = resolveComponent("VsTable"), _ = resolveComponent("VsButton");
32857
+ const s = resolveComponent("VsImg"), i = resolveComponent("VsHeading"), l = resolveComponent("VsLoadingSpinner"), c = resolveComponent("VsWarning"), d = resolveComponent("VsTableHeaderCell"), u = resolveComponent("VsTableHead"), f = resolveComponent("VsIcon"), p = resolveComponent("VsTableDataCell"), m = resolveComponent("VsTableRow"), g = resolveComponent("VsTableBody"), v = resolveComponent("VsTableFooter"), _ = resolveComponent("VsTable"), b = resolveComponent("VsButton");
32838
32858
  return openBlock(), createElementBlock("div", _hoisted_1$l, [
32839
32859
  createElementVNode("div", _hoisted_2$e, [
32840
32860
  n.imgSrc ? (openBlock(), createBlock(s, {
@@ -32881,7 +32901,7 @@ function _sfc_render$f(e, t, n, a, o, r) {
32881
32901
  _: 3
32882
32902
  })) : createCommentVNode("", !0)
32883
32903
  ])) : createCommentVNode("", !0),
32884
- !o.jsDisabled && !o.isLoading && !o.displayError ? (openBlock(), createBlock(v, {
32904
+ !o.jsDisabled && !o.isLoading && !o.displayError ? (openBlock(), createBlock(_, {
32885
32905
  key: 1,
32886
32906
  "table-caption": n.runsLiftsStatusLabel
32887
32907
  }, {
@@ -33054,7 +33074,7 @@ function _sfc_render$f(e, t, n, a, o, r) {
33054
33074
  ]),
33055
33075
  _: 1
33056
33076
  }),
33057
- createVNode(b, null, {
33077
+ createVNode(v, null, {
33058
33078
  default: withCtx(() => [
33059
33079
  createVNode(m, null, {
33060
33080
  default: withCtx(() => [
@@ -33076,7 +33096,7 @@ function _sfc_render$f(e, t, n, a, o, r) {
33076
33096
  ]),
33077
33097
  _: 1
33078
33098
  }, 8, ["table-caption"])) : createCommentVNode("", !0),
33079
- createVNode(_, {
33099
+ createVNode(b, {
33080
33100
  variant: "secondary",
33081
33101
  href: n.pisteMapLink,
33082
33102
  class: "mb-050",
@@ -33087,7 +33107,7 @@ function _sfc_render$f(e, t, n, a, o, r) {
33087
33107
  ]),
33088
33108
  _: 1
33089
33109
  }, 8, ["href", "disabled"]),
33090
- createVNode(_, { href: n.moreDetailsLink }, {
33110
+ createVNode(b, { href: n.moreDetailsLink }, {
33091
33111
  default: withCtx(() => [
33092
33112
  createTextVNode(toDisplayString(n.moreDetailsLabel), 1)
33093
33113
  ]),
@@ -33614,7 +33634,7 @@ const SkiScotlandCard = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sf
33614
33634
  "data-test": "vs-ski-scotland-status"
33615
33635
  }, _hoisted_2$d = { "data-test": "vs-ski__status-label" }, _hoisted_3$8 = { "data-test": "vs-ski__runs-label" }, _hoisted_4$7 = { "data-test": "vs-ski__lifts-label" }, _hoisted_5$7 = { "data-test": "vs-ski__open-label" }, _hoisted_6$6 = { "data-test": "vs-ski__open-label" }, _hoisted_7$5 = { "data-test": "vs-ski__opening-label" }, _hoisted_8$3 = { "data-test": "vs-ski__closed-label" }, _hoisted_9$3 = { "data-test": "vs-ski__open-label" }, _hoisted_10$3 = { "data-test": "vs-ski__last-updated-label" }, _hoisted_11$2 = ["innerHTML"], _hoisted_12$1 = ["innerHTML"], _hoisted_13$1 = ["innerHTML"], _hoisted_14$1 = ["innerHTML"], _hoisted_15$1 = ["innerHTML"], _hoisted_16$1 = ["data-test"], _hoisted_17$1 = { class: "visually-hidden" };
33616
33636
  function _sfc_render$e(e, t, n, a, o, r) {
33617
- const s = resolveComponent("VsLoadingSpinner"), i = resolveComponent("VsCol"), l = resolveComponent("VsRow"), c = resolveComponent("VsContainer"), d = resolveComponent("VsWarning"), u = resolveComponent("VsHeading"), f = resolveComponent("VsTableHeaderCell"), p = resolveComponent("VsTableHead"), m = resolveComponent("VsIcon"), g = resolveComponent("VsTableDataCell"), b = resolveComponent("VsTableRow"), v = resolveComponent("VsTableBody"), _ = resolveComponent("VsTableFooter"), k = resolveComponent("VsTable"), C = resolveComponent("VsLink"), T = resolveComponent("VsAccordionItem"), D = resolveComponent("VsAccordion");
33637
+ const s = resolveComponent("VsLoadingSpinner"), i = resolveComponent("VsCol"), l = resolveComponent("VsRow"), c = resolveComponent("VsContainer"), d = resolveComponent("VsWarning"), u = resolveComponent("VsHeading"), f = resolveComponent("VsTableHeaderCell"), p = resolveComponent("VsTableHead"), m = resolveComponent("VsIcon"), g = resolveComponent("VsTableDataCell"), v = resolveComponent("VsTableRow"), _ = resolveComponent("VsTableBody"), b = resolveComponent("VsTableFooter"), k = resolveComponent("VsTable"), C = resolveComponent("VsLink"), T = resolveComponent("VsAccordionItem"), D = resolveComponent("VsAccordion");
33618
33638
  return openBlock(), createElementBlock("div", _hoisted_1$k, [
33619
33639
  !o.jsDisabled && o.isLoading ? (openBlock(), createBlock(c, { key: 0 }, {
33620
33640
  default: withCtx(() => [
@@ -33716,9 +33736,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
33716
33736
  ]),
33717
33737
  _: 1
33718
33738
  }),
33719
- createVNode(v, null, {
33739
+ createVNode(_, null, {
33720
33740
  default: withCtx(() => [
33721
- createVNode(b, null, {
33741
+ createVNode(v, null, {
33722
33742
  default: withCtx(() => [
33723
33743
  createVNode(g, null, {
33724
33744
  default: withCtx(() => [
@@ -33746,7 +33766,7 @@ function _sfc_render$e(e, t, n, a, o, r) {
33746
33766
  ]),
33747
33767
  _: 1
33748
33768
  }),
33749
- o.statusSummary.runs.limitedPatrol || o.statusSummary.lifts.limitedPatrol ? (openBlock(), createBlock(b, { key: 0 }, {
33769
+ o.statusSummary.runs.limitedPatrol || o.statusSummary.lifts.limitedPatrol ? (openBlock(), createBlock(v, { key: 0 }, {
33750
33770
  default: withCtx(() => [
33751
33771
  createVNode(g, null, {
33752
33772
  default: withCtx(() => [
@@ -33774,7 +33794,7 @@ function _sfc_render$e(e, t, n, a, o, r) {
33774
33794
  ]),
33775
33795
  _: 1
33776
33796
  })) : createCommentVNode("", !0),
33777
- createVNode(b, null, {
33797
+ createVNode(v, null, {
33778
33798
  default: withCtx(() => [
33779
33799
  createVNode(g, null, {
33780
33800
  default: withCtx(() => [
@@ -33802,7 +33822,7 @@ function _sfc_render$e(e, t, n, a, o, r) {
33802
33822
  ]),
33803
33823
  _: 1
33804
33824
  }),
33805
- createVNode(b, null, {
33825
+ createVNode(v, null, {
33806
33826
  default: withCtx(() => [
33807
33827
  createVNode(g, null, {
33808
33828
  default: withCtx(() => [
@@ -33830,7 +33850,7 @@ function _sfc_render$e(e, t, n, a, o, r) {
33830
33850
  ]),
33831
33851
  _: 1
33832
33852
  }),
33833
- o.statusSummary.runs.onHold || o.statusSummary.lifts.onHold ? (openBlock(), createBlock(b, { key: 1 }, {
33853
+ o.statusSummary.runs.onHold || o.statusSummary.lifts.onHold ? (openBlock(), createBlock(v, { key: 1 }, {
33834
33854
  default: withCtx(() => [
33835
33855
  createVNode(g, null, {
33836
33856
  default: withCtx(() => [
@@ -33861,9 +33881,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
33861
33881
  ]),
33862
33882
  _: 1
33863
33883
  }),
33864
- createVNode(_, null, {
33884
+ createVNode(b, null, {
33865
33885
  default: withCtx(() => [
33866
- createVNode(b, null, {
33886
+ createVNode(v, null, {
33867
33887
  default: withCtx(() => [
33868
33888
  createVNode(g, {
33869
33889
  colspan: "3",
@@ -34035,9 +34055,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
34035
34055
  ]),
34036
34056
  _: 1
34037
34057
  }),
34038
- createVNode(v, null, {
34058
+ createVNode(_, null, {
34039
34059
  default: withCtx(() => [
34040
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.lifts, (I) => (openBlock(), createBlock(b, {
34060
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.lifts, (I) => (openBlock(), createBlock(v, {
34041
34061
  key: I.name
34042
34062
  }, {
34043
34063
  default: withCtx(() => [
@@ -34108,9 +34128,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
34108
34128
  ]),
34109
34129
  _: 1
34110
34130
  }),
34111
- createVNode(_, null, {
34131
+ createVNode(b, null, {
34112
34132
  default: withCtx(() => [
34113
- createVNode(b, null, {
34133
+ createVNode(v, null, {
34114
34134
  default: withCtx(() => [
34115
34135
  createVNode(g, {
34116
34136
  colspan: "2",
@@ -34195,9 +34215,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
34195
34215
  ]),
34196
34216
  _: 1
34197
34217
  }),
34198
- createVNode(v, null, {
34218
+ createVNode(_, null, {
34199
34219
  default: withCtx(() => [
34200
- (openBlock(!0), createElementBlock(Fragment, null, renderList(I.runs, (E) => (openBlock(), createBlock(b, {
34220
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(I.runs, (E) => (openBlock(), createBlock(v, {
34201
34221
  key: E.name,
34202
34222
  "data-test": `vs-ski__${I.name}-row`
34203
34223
  }, {
@@ -34269,9 +34289,9 @@ function _sfc_render$e(e, t, n, a, o, r) {
34269
34289
  ]),
34270
34290
  _: 2
34271
34291
  }, 1024),
34272
- createVNode(_, null, {
34292
+ createVNode(b, null, {
34273
34293
  default: withCtx(() => [
34274
- createVNode(b, null, {
34294
+ createVNode(v, null, {
34275
34295
  default: withCtx(() => [
34276
34296
  createVNode(g, {
34277
34297
  colspan: "2",
@@ -35808,10 +35828,10 @@ async function eventSearch(e, t, n, a, o, r, s, i, l, c, d, u, f) {
35808
35828
  const g = await fetch(m);
35809
35829
  if (!g.ok)
35810
35830
  throw p.isLoading = !1, p.eventsApiError = !0, new Error(`Events response message: ${g.status}`);
35811
- const b = await g.json();
35831
+ const v = await g.json();
35812
35832
  return {
35813
- results: cleanData(b),
35814
- totalResults: b.totalResults
35833
+ results: cleanData(v),
35834
+ totalResults: v.totalResults
35815
35835
  };
35816
35836
  } catch {
35817
35837
  return p.isLoading = !1, p.eventsApiError = !0, {
@@ -35841,7 +35861,7 @@ async function cludoAutocomplete(e, t) {
35841
35861
  }
35842
35862
  }
35843
35863
  const useFederatedSearchStore = defineStore("federatedSearch", () => {
35844
- const e = ref(null), t = ref(void 0), n = ref(!1), a = ref(1), o = ref(void 0), r = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), b = ref(!1), v = ref(""), _ = ref(""), k = ref(void 0), C = ref(void 0), T = ref(void 0), D = ref(-1), I = ref(""), E = ref(""), O = ref(""), F = ref(0), N = ref(""), M = ref("or");
35864
+ const e = ref(null), t = ref(void 0), n = ref(!1), a = ref(1), o = ref(void 0), r = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), v = ref(!1), _ = ref(""), b = ref(""), k = ref(void 0), C = ref(void 0), T = ref(void 0), D = ref(-1), I = ref(""), E = ref(""), O = ref(""), F = ref(0), N = ref(""), M = ref("or");
35845
35865
  async function S(B = !1) {
35846
35866
  s.value = !0, B || (D.value += 1);
35847
35867
  const $ = await cludoSearch(
@@ -35857,8 +35877,8 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
35857
35877
  a.value,
35858
35878
  d.value,
35859
35879
  f.value,
35860
- v.value,
35861
35880
  _.value,
35881
+ b.value,
35862
35882
  k.value,
35863
35883
  T.value,
35864
35884
  E.value,
@@ -35873,7 +35893,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
35873
35893
  }
35874
35894
  async function P(B, $) {
35875
35895
  const w = new URL(window.location.href);
35876
- if ($ ? I.value = "Autosuggestion" : I.value = "User input", l.value ? w.searchParams.set("search-term", l.value) : w.searchParams.delete("search-term"), d.value ? w.searchParams.set("category", encodeURIComponent(d.value)) : w.searchParams.delete("category"), f.value.length > 0 ? w.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : w.searchParams.delete("sub-category"), B ? (a.value = 1, w.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? w.searchParams.set("page", a.value.toString()) : w.searchParams.delete("page"), v.value ? w.searchParams.set("start-date", v.value) : w.searchParams.delete("start-date"), _.value ? w.searchParams.set("end-date", _.value) : w.searchParams.delete("end-date"), k.value ? w.searchParams.set("sort-by", k.value) : w.searchParams.delete("sort-by"), !b.value)
35896
+ if ($ ? I.value = "Autosuggestion" : I.value = "User input", l.value ? w.searchParams.set("search-term", l.value) : w.searchParams.delete("search-term"), d.value ? w.searchParams.set("category", encodeURIComponent(d.value)) : w.searchParams.delete("category"), f.value.length > 0 ? w.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : w.searchParams.delete("sub-category"), B ? (a.value = 1, w.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? w.searchParams.set("page", a.value.toString()) : w.searchParams.delete("page"), _.value ? w.searchParams.set("start-date", _.value) : w.searchParams.delete("start-date"), b.value ? w.searchParams.set("end-date", b.value) : w.searchParams.delete("end-date"), k.value ? w.searchParams.set("sort-by", k.value) : w.searchParams.delete("sort-by"), !v.value)
35877
35897
  window.history.pushState({}, "", w), await S();
35878
35898
  else {
35879
35899
  const L = `${C.value}/${w.search}`;
@@ -35901,9 +35921,9 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
35901
35921
  totalResultsCludo: m,
35902
35922
  totalResultsEvents: g,
35903
35923
  navigateToResultsPage: P,
35904
- isHomePage: b,
35905
- startDate: v,
35906
- endDate: _,
35924
+ isHomePage: v,
35925
+ startDate: _,
35926
+ endDate: b,
35907
35927
  sortBy: k,
35908
35928
  siteLanguage: T,
35909
35929
  searchInSessionCount: D,
@@ -36263,8 +36283,8 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36263
36283
  },
36264
36284
  setup(e) {
36265
36285
  const t = dataLayerComposable$1(), n = e, a = useFederatedSearchStore(), { isLoading: o } = storeToRefs(a), r = ref(), s = ref(null), i = ref(null);
36266
- async function l(_) {
36267
- a.currentPage = 1, a.searchTerm = _.value.trim();
36286
+ async function l(b) {
36287
+ a.currentPage = 1, a.searchTerm = b.value.trim();
36268
36288
  const k = window.location.search, C = new URLSearchParams(k);
36269
36289
  a.searchTerm && C.get("search-term") !== a.searchTerm && (r.value = await a.getAutoComplete()), a.searchTerm || (r.value = null);
36270
36290
  }
@@ -36277,54 +36297,54 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36277
36297
  search_type: a.searchInSessionCount === 1 ? "initial" : "follow-up"
36278
36298
  });
36279
36299
  }
36280
- function d(_) {
36300
+ function d(b) {
36281
36301
  t.createDataLayerObject("siteSearchClickEvent", {
36282
36302
  interaction_type: "search_autosuggest",
36283
36303
  search_query: a.searchTerm,
36284
36304
  page_number: a.currentPage,
36285
36305
  search_usage_index: a.searchInSessionCount,
36286
36306
  results_count: a.totalResults,
36287
- click_text: _,
36307
+ click_text: b,
36288
36308
  query_input: a.queryInput
36289
36309
  });
36290
36310
  }
36291
- function u(_) {
36292
- a.searchTerm = _, r.value = null, a.navigateToResultsPage(!1, !0), d(_);
36311
+ function u(b) {
36312
+ a.searchTerm = b, r.value = null, a.navigateToResultsPage(!1, !0), d(b);
36293
36313
  }
36294
- function f(_) {
36295
- return _.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36314
+ function f(b) {
36315
+ return b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36296
36316
  }
36297
- function p(_) {
36298
- return _.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
36317
+ function p(b) {
36318
+ return b.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
36299
36319
  }
36300
- function m(_) {
36320
+ function m(b) {
36301
36321
  const k = (a.searchTerm || "").trim();
36302
- if (!k) return p(_);
36322
+ if (!k) return p(b);
36303
36323
  const C = new RegExp(`(${f(k)})`, "gi");
36304
- return p(_).replace(C, "<strong>$1</strong>");
36324
+ return p(b).replace(C, "<strong>$1</strong>");
36305
36325
  }
36306
- function g(_) {
36326
+ function g(b) {
36307
36327
  t.createDataLayerObject("siteSearchClickEvent", {
36308
36328
  interaction_type: "facet_click",
36309
36329
  search_query: a.searchTerm,
36310
36330
  page_number: a.currentPage,
36311
36331
  search_usage_index: a.searchInSessionCount,
36312
36332
  results_count: a.totalResults,
36313
- click_text: _.Label || _.Key
36333
+ click_text: b.Label || b.Key
36314
36334
  });
36315
36335
  }
36316
- async function b(_) {
36336
+ async function v(b) {
36317
36337
  const k = new URL(window.location);
36318
- k.searchParams.delete("page"), a.currentPage = 1, k.searchParams.delete("start-date"), k.searchParams.delete("end-date"), a.startDate = "", a.endDate = "", a.sortBy = void 0, a.selectedSubCategory = [], a.selectedSubCategoryKey = [], a.selectedCategory = a.selectedCategory !== _.Label ? _.Label : "", a.selectedCategoryKey = a.selectedCategoryKey !== _.Key ? _.Key : "", await a.navigateToResultsPage(!0), g(_);
36338
+ k.searchParams.delete("page"), a.currentPage = 1, k.searchParams.delete("start-date"), k.searchParams.delete("end-date"), a.startDate = "", a.endDate = "", a.sortBy = void 0, a.selectedSubCategory = [], a.selectedSubCategoryKey = [], a.selectedCategory = a.selectedCategory !== b.Label ? b.Label : "", a.selectedCategoryKey = a.selectedCategoryKey !== b.Key ? b.Key : "", await a.navigateToResultsPage(!0), g(b);
36319
36339
  }
36320
- function v(_) {
36321
- if (!a.selectedSubCategoryKey.includes(_.Key))
36322
- a.selectedSubCategory.push(_.Label), a.selectedSubCategoryKey.push(_.Key);
36340
+ function _(b) {
36341
+ if (!a.selectedSubCategoryKey.includes(b.Key))
36342
+ a.selectedSubCategory.push(b.Label), a.selectedSubCategoryKey.push(b.Key);
36323
36343
  else {
36324
- const k = a.selectedSubCategoryKey.indexOf(_.Key);
36344
+ const k = a.selectedSubCategoryKey.indexOf(b.Key);
36325
36345
  k >= 0 && (a.selectedSubCategory.splice(k, 1), a.selectedSubCategoryKey.splice(k, 1));
36326
36346
  }
36327
- a.navigateToResultsPage(!0), g(_);
36347
+ a.navigateToResultsPage(!0), g(b);
36328
36348
  }
36329
36349
  return onMounted(() => {
36330
36350
  a.cludoCredentials = {
@@ -36332,11 +36352,11 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36332
36352
  customerId: n.cludoCustomerId,
36333
36353
  engineId: n.cludoEngineId
36334
36354
  }, a.isHomePage = n.isHomePage, n.searchUrl && (a.searchUrl = n.searchUrl);
36335
- const _ = window.location.search, k = new URLSearchParams(_);
36355
+ const b = window.location.search, k = new URLSearchParams(b);
36336
36356
  k.has("search-term") && (a.searchTerm = k.get("search-term")), k.has("category") && (a.selectedCategoryKey = decodeURIComponent(k.get("category"))), k.has("sub-category") && decodeURIComponent(k.get("sub-category")).split(",").forEach((T) => a.selectedSubCategoryKey.push(T)), k.has("category") && k.get("category") === "events" && k.has("sort-by") && (a.sortBy = k.get("sort-by")), k.has("start-date") && (a.startDate = k.get("start-date")), k.has("end-date") && (a.endDate = k.get("end-date")), k.has("postcode") && (a.postcode = k.get("postcode")), k.has("location") && (a.location = k.get("location")), k.has("radius") && (a.radius = k.get("radius")), k.has("postcodeareas") && (a.postcodeareas = k.get("postcodeareas")), (k.has("search-term") || k.has("category")) && a.getSearchResults();
36337
- }), watch(o, (_) => {
36338
- _ || (s.value?.resetScroll(), i.value?.resetScroll());
36339
- }), (_, k) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
36357
+ }), watch(o, (b) => {
36358
+ b || (s.value?.resetScroll(), i.value?.resetScroll());
36359
+ }), (b, k) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
36340
36360
  createElementVNode("div", _hoisted_2$5, [
36341
36361
  createElementVNode("div", _hoisted_3$3, [
36342
36362
  createElementVNode("label", _hoisted_4$3, [
@@ -36393,7 +36413,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36393
36413
  ref_key: "categoryFilter",
36394
36414
  ref: s,
36395
36415
  wrap: !0,
36396
- onFilterUpdated: b
36416
+ onFilterUpdated: v
36397
36417
  }, null, 8, ["active-filter", "filter-categories"])) : createCommentVNode("", !0),
36398
36418
  unref(a).selectedCategoryKey === "events" && n.subFilters ? (openBlock(), createBlock(_sfc_main$7, {
36399
36419
  key: 2,
@@ -36403,7 +36423,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36403
36423
  ref_key: "subCategoryFilter",
36404
36424
  ref: i,
36405
36425
  variant: "secondary",
36406
- onFilterUpdated: v
36426
+ onFilterUpdated: _
36407
36427
  }, {
36408
36428
  "fed-filter-header": withCtx(() => [
36409
36429
  createTextVNode(toDisplayString(n.labels.refine), 1)
@@ -36674,8 +36694,8 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36674
36694
  error: !1
36675
36695
  }
36676
36696
  ), o = e, r = ref(!1), s = computed$1(() => {
36677
- let _;
36678
- return n.selectedCategoryKey === "events" ? _ = Math.ceil(n.totalResultsEvents / 12) : _ = n.totalResultsCludo >= n.totalResultsEvents ? Math.ceil(n.totalResultsCludo / 6) : Math.ceil(n.totalResultsEvents / 6), _;
36697
+ let b;
36698
+ return n.selectedCategoryKey === "events" ? b = Math.ceil(n.totalResultsEvents / 12) : b = n.totalResultsCludo >= n.totalResultsEvents ? Math.ceil(n.totalResultsCludo / 6) : Math.ceil(n.totalResultsEvents / 6), b;
36679
36699
  });
36680
36700
  function i() {
36681
36701
  // Start date is after end date
@@ -36690,9 +36710,9 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36690
36710
  engineId: o.cludoEngineId
36691
36711
  }, n.eventsApi = o.eventsApi, n.filters = o.filters, n.siteLanguage = o.siteLanguage, n.cludoApiOperator = o.cludoApiOperator, i(), typeof window < "u" && typeof document < "u") {
36692
36712
  window.onbeforeunload = () => {
36693
- v();
36713
+ _();
36694
36714
  };
36695
- const _ = new URLSearchParams(document.location.search), k = _.get("search-term"), C = parseInt(_.get("page"), 10);
36715
+ const b = new URLSearchParams(document.location.search), k = b.get("search-term"), C = parseInt(b.get("page"), 10);
36696
36716
  C && (n.currentPage = C), k && (n.searchTerm = k), await n.getSearchResults(), k && t.createDataLayerObject("siteSearchUsageEvent", {
36697
36717
  search_query: n.searchTerm,
36698
36718
  query_input: n.queryInput,
@@ -36703,64 +36723,64 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36703
36723
  });
36704
36724
  }
36705
36725
  });
36706
- function l(_) {
36707
- n.startDate = _, n.navigateToResultsPage(!0);
36726
+ function l(b) {
36727
+ n.startDate = b, n.navigateToResultsPage(!0);
36708
36728
  }
36709
- function c(_) {
36710
- n.endDate = _, n.navigateToResultsPage(!0);
36729
+ function c(b) {
36730
+ n.endDate = b, n.navigateToResultsPage(!0);
36711
36731
  }
36712
- function d(_) {
36713
- n.sortBy = _, n.navigateToResultsPage(!0);
36732
+ function d(b) {
36733
+ n.sortBy = b, n.navigateToResultsPage(!0);
36714
36734
  }
36715
- function u(_) {
36735
+ function u(b) {
36716
36736
  let k = !1;
36717
- _ > n.currentPage && (k = !0), n.currentPage = _, typeof window < "u" && window.scrollTo({
36737
+ b > n.currentPage && (k = !0), n.currentPage = b, typeof window < "u" && window.scrollTo({
36718
36738
  top: 0,
36719
36739
  left: 0,
36720
36740
  behavior: "smooth"
36721
- }), n.navigateToResultsPage(), b(k);
36741
+ }), n.navigateToResultsPage(), v(k);
36722
36742
  }
36723
- function f(_, k) {
36724
- return _ === k ? _ : `${_} - ${k}`;
36743
+ function f(b, k) {
36744
+ return b === k ? b : `${b} - ${k}`;
36725
36745
  }
36726
- function p(_) {
36727
- return _ === null ? "" : _.match(/\b\d+\.\d\b/) ? `£${_}0` : `£${_}`;
36746
+ function p(b) {
36747
+ return b === null ? "" : b.match(/\b\d+\.\d\b/) ? `£${b}0` : `£${b}`;
36728
36748
  }
36729
- function m(_) {
36730
- if (_.url)
36731
- return _.url;
36732
- if (_.placeUrl)
36733
- return _.placeUrl;
36749
+ function m(b) {
36750
+ if (b.url)
36751
+ return b.url;
36752
+ if (b.placeUrl)
36753
+ return b.placeUrl;
36734
36754
  const k = "https://www.datathistle.com/event/", C = encodeURIComponent(
36735
- _.title.replaceAll(" ", "-").toLowerCase()
36755
+ b.title.replaceAll(" ", "-").toLowerCase()
36736
36756
  );
36737
- return `${k}${_.parentId}-${C}`;
36757
+ return `${k}${b.parentId}-${C}`;
36738
36758
  }
36739
- function g(_) {
36759
+ function g(b) {
36740
36760
  r.value = !0, t.createDataLayerObject("siteSearchClickEvent", {
36741
36761
  interaction_type: "search_link_click",
36742
36762
  search_query: n.searchTerm,
36743
36763
  page_number: n.currentPage,
36744
- click_text: _.title,
36745
- click_url: m(_),
36746
- click_category: _.categoryCard && o.cardCategoryLabels[_.categoryCard] ? o.cardCategoryLabels[_.categoryCard] : "",
36764
+ click_text: b.title,
36765
+ click_url: m(b),
36766
+ click_category: b.categoryCard && o.cardCategoryLabels[b.categoryCard] ? o.cardCategoryLabels[b.categoryCard] : "",
36747
36767
  search_usage_index: n.searchInSessionCount,
36748
36768
  results_count: n.totalResults,
36749
36769
  query_input: n.queryInput
36750
36770
  });
36751
36771
  }
36752
- function b(_) {
36772
+ function v(b) {
36753
36773
  t.createDataLayerObject("siteSearchClickEvent", {
36754
36774
  interaction_type: "search_link_click",
36755
36775
  search_query: n.searchTerm,
36756
36776
  page_number: n.currentPage,
36757
- page_navigation_direction: _ ? "forward" : "back",
36777
+ page_navigation_direction: b ? "forward" : "back",
36758
36778
  search_usage_index: n.searchInSessionCount,
36759
36779
  results_count: n.totalResults,
36760
36780
  query_input: n.queryInput
36761
36781
  });
36762
36782
  }
36763
- function v() {
36783
+ function _() {
36764
36784
  r.value || t.createDataLayerObject("siteSearchCloseEvent", {
36765
36785
  search_query: n.searchTerm,
36766
36786
  search_usage_index: n.searchInSessionCount,
@@ -36771,7 +36791,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36771
36791
  }
36772
36792
  return onUpdated(() => {
36773
36793
  i();
36774
- }), (_, k) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
36794
+ }), (b, k) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
36775
36795
  createElementVNode("div", _hoisted_2$3, [
36776
36796
  createVNode(_sfc_main$6, {
36777
36797
  "cludo-api-key": o.cludoApiKey,
@@ -36786,7 +36806,7 @@ const _hoisted_1$6 = { class: "vs-fed-search-input" }, _hoisted_2$5 = { class: "
36786
36806
  key: T,
36787
36807
  class: "mb-200"
36788
36808
  }, [
36789
- renderSlot(_.$slots, `federated-search__spotlight-${C.Key}`)
36809
+ renderSlot(b.$slots, `federated-search__spotlight-${C.Key}`)
36790
36810
  ], 512)), [
36791
36811
  [vShow, unref(n).selectedCategoryKey === C.Key]
36792
36812
  ])), 128)),
@@ -36998,13 +37018,13 @@ function setScriptSrc(e, t) {
36998
37018
  e.src = getPolicy().createScriptURL(t);
36999
37019
  }
37000
37020
  const bootstrap = (e) => {
37001
- var t, n, a, o = "The Google Maps JavaScript API", r = "google", s = "importLibrary", i = "__ib__", l = document, c = window, d = c[r] || (c[r] = {}), u = d.maps || (d.maps = {}), f = /* @__PURE__ */ new Set(), p = new URLSearchParams(), m = () => t || (t = new Promise(async (g, b) => {
37021
+ var t, n, a, o = "The Google Maps JavaScript API", r = "google", s = "importLibrary", i = "__ib__", l = document, c = window, d = c[r] || (c[r] = {}), u = d.maps || (d.maps = {}), f = /* @__PURE__ */ new Set(), p = new URLSearchParams(), m = () => t || (t = new Promise(async (g, v) => {
37002
37022
  await (n = l.createElement("script")), p.set("libraries", [...f] + "");
37003
37023
  for (a in e)
37004
- p.set(a.replace(/[A-Z]/g, (v) => "_" + v[0].toLowerCase()), e[a]);
37005
- p.set("callback", r + ".maps." + i), setScriptSrc(n, "https://maps.googleapis.com/maps/api/js?" + p), u[i] = g, n.onerror = () => t = b(Error(o + " could not load.")), n.nonce = l.querySelector("script[nonce]")?.nonce || "", l.head.append(n);
37024
+ p.set(a.replace(/[A-Z]/g, (_) => "_" + _[0].toLowerCase()), e[a]);
37025
+ p.set("callback", r + ".maps." + i), setScriptSrc(n, "https://maps.googleapis.com/maps/api/js?" + p), u[i] = g, n.onerror = () => t = v(Error(o + " could not load.")), n.nonce = l.querySelector("script[nonce]")?.nonce || "", l.head.append(n);
37006
37026
  }));
37007
- u[s] ? console.warn(o + " only loads once. Ignoring:", e) : u[s] = (g, ...b) => f.add(g) && m().then(() => u[s](g, ...b));
37027
+ u[s] ? console.warn(o + " only loads once. Ignoring:", e) : u[s] = (g, ...v) => f.add(g) && m().then(() => u[s](g, ...v));
37008
37028
  }, __DEV__ = define_process_env_default.NODE_ENV !== "production";
37009
37029
  let setOptionsWasCalled_ = !1;
37010
37030
  function setOptions(e) {
@@ -37049,35 +37069,35 @@ function useSwipeDrawer(e, t) {
37049
37069
  transition: s.value ? "none" : "transform 0.5s ease"
37050
37070
  };
37051
37071
  });
37052
- function m(_) {
37072
+ function m(b) {
37053
37073
  if (!s.value) return;
37054
- const k = _.clientY - a.value;
37074
+ const k = b.clientY - a.value;
37055
37075
  let C = o.value + k;
37056
37076
  C = Math.max(c, Math.min(f.value, C)), n.value = C;
37057
37077
  }
37058
- function g(_) {
37078
+ function g(b) {
37059
37079
  s.value = !1;
37060
- const k = _.clientY - a.value;
37080
+ const k = b.clientY - a.value;
37061
37081
  k > d ? e.value = !1 : k < -d || e.value ? e.value = !0 : e.value = !1;
37062
37082
  }
37063
- function b(_) {
37083
+ function v(b) {
37064
37084
  if (window.innerWidth >= 768) return;
37065
- _.currentTarget.setPointerCapture(_.pointerId), s.value = !0, a.value = _.clientY, o.value = n.value;
37085
+ b.currentTarget.setPointerCapture(b.pointerId), s.value = !0, a.value = b.clientY, o.value = n.value;
37066
37086
  }
37067
- function v() {
37087
+ function _() {
37068
37088
  i.value = window.innerWidth < 768, l.value = Math.min(250, window.innerHeight * 0.3), r.value = t.value ? t.value.getBoundingClientRect().height : 500;
37069
37089
  }
37070
37090
  return watchEffect(() => {
37071
37091
  n.value = e.value ? c : f.value;
37072
37092
  }), onMounted(() => {
37073
- r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), window.addEventListener("resize", v);
37093
+ r.value = t.value ? t.value.getBoundingClientRect().height : 500, l.value = Math.min(250, window.innerHeight * 0.3), n.value = f.value, i.value = window.innerWidth < 768, i.value && (document.documentElement.classList.add("map-page"), document.body.classList.add("map-page")), window.addEventListener("resize", _);
37074
37094
  }), onUnmounted(() => {
37075
- document.documentElement.classList.remove("map-page"), document.body.classList.remove("map-page"), window.removeEventListener("resize", v);
37095
+ document.documentElement.classList.remove("map-page"), document.body.classList.remove("map-page"), window.removeEventListener("resize", _);
37076
37096
  }), {
37077
37097
  endDrag: g,
37078
37098
  onDrag: m,
37079
37099
  sidebarStyle: p,
37080
- startDrag: b
37100
+ startDrag: v
37081
37101
  };
37082
37102
  }
37083
37103
  const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
@@ -37231,40 +37251,40 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37231
37251
  onDrag: c,
37232
37252
  startDrag: d,
37233
37253
  sidebarStyle: u
37234
- } = useSwipeDrawer(a, s), f = n.categories.filter((b) => !b.cmsData), p = computed$1(() => {
37254
+ } = useSwipeDrawer(a, s), f = n.categories.filter((v) => !v.cmsData), p = computed$1(() => {
37235
37255
  if (!n.selectedCategory) return null;
37236
- const b = n.categories.find(
37237
- (v) => v.id === n.selectedCategory
37256
+ const v = n.categories.find(
37257
+ (_) => _.id === n.selectedCategory
37238
37258
  );
37239
- return b ? b.subCategory : null;
37240
- }), m = n.destinationCategories.filter((b) => b.id !== "towns");
37241
- function g(b) {
37242
- i.selectedDestinationType = b, r("destination-type-selected");
37259
+ return v ? v.subCategory : null;
37260
+ }), m = n.destinationCategories.filter((v) => v.id !== "towns");
37261
+ function g(v) {
37262
+ i.selectedDestinationType = v, r("destination-type-selected");
37243
37263
  }
37244
37264
  return onMounted(() => {
37245
37265
  i.selectedDestinationType = n.destinationCategories[0].id;
37246
- }), (b, v) => (openBlock(), createElementBlock("div", {
37266
+ }), (v, _) => (openBlock(), createElementBlock("div", {
37247
37267
  class: "vs-map-sidebar",
37248
37268
  ref_key: "sidebar",
37249
37269
  ref: s,
37250
37270
  style: normalizeStyle(unref(u)),
37251
- onPointerdown: v[13] || (v[13] = //@ts-ignore
37252
- (..._) => unref(d) && unref(d)(..._)),
37253
- onPointermove: v[14] || (v[14] = //@ts-ignore
37254
- (..._) => unref(c) && unref(c)(..._)),
37255
- onPointerup: v[15] || (v[15] = //@ts-ignore
37256
- (..._) => unref(l) && unref(l)(..._)),
37257
- onPointercancel: v[16] || (v[16] = //@ts-ignore
37258
- (..._) => unref(l) && unref(l)(..._))
37271
+ onPointerdown: _[13] || (_[13] = //@ts-ignore
37272
+ (...b) => unref(d) && unref(d)(...b)),
37273
+ onPointermove: _[14] || (_[14] = //@ts-ignore
37274
+ (...b) => unref(c) && unref(c)(...b)),
37275
+ onPointerup: _[15] || (_[15] = //@ts-ignore
37276
+ (...b) => unref(l) && unref(l)(...b)),
37277
+ onPointercancel: _[16] || (_[16] = //@ts-ignore
37278
+ (...b) => unref(l) && unref(l)(...b))
37259
37279
  }, [
37260
37280
  withDirectives(createElementVNode("div", _hoisted_1$1, [
37261
37281
  createElementVNode("div", _hoisted_2$1, [
37262
37282
  createVNode(VsButton, {
37263
37283
  variant: "subtle",
37264
- onClick: v[0] || (v[0] = (_) => a.value = !a.value)
37284
+ onClick: _[0] || (_[0] = (b) => a.value = !a.value)
37265
37285
  }, {
37266
37286
  default: withCtx(() => [
37267
- v[17] || (v[17] = createElementVNode("div", { class: "vs-map-sidebar__handle-bar" }, null, -1)),
37287
+ _[17] || (_[17] = createElementVNode("div", { class: "vs-map-sidebar__handle-bar" }, null, -1)),
37268
37288
  createElementVNode("span", _hoisted_3$1, toDisplayString(n.sidebarLabels.openSidebarButtonLabel), 1)
37269
37289
  ]),
37270
37290
  _: 1
@@ -37293,7 +37313,7 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37293
37313
  "data-test": "vs-map-search-input",
37294
37314
  "field-name": "vs-map-search-input",
37295
37315
  placeholder: n.sidebarLabels.inputPlaceholderLabel,
37296
- onKeyup: v[1] || (v[1] = withKeys((_) => b.$emit("search-input-changed"), ["enter"]))
37316
+ onKeyup: _[1] || (_[1] = withKeys((b) => v.$emit("search-input-changed"), ["enter"]))
37297
37317
  }, null, 8, ["aria-label", "placeholder"]),
37298
37318
  createVNode(VsButton, {
37299
37319
  class: "vs-map-sidebar__search-button",
@@ -37302,8 +37322,8 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37302
37322
  "icon-only": "",
37303
37323
  rounded: !1,
37304
37324
  size: "lg",
37305
- onClick: v[2] || (v[2] = (_) => b.$emit("search-input-changed")),
37306
- onKeyup: v[3] || (v[3] = withKeys((_) => b.$emit("search-input-changed"), ["enter"]))
37325
+ onClick: _[2] || (_[2] = (b) => v.$emit("search-input-changed")),
37326
+ onKeyup: _[3] || (_[3] = withKeys((b) => v.$emit("search-input-changed"), ["enter"]))
37307
37327
  }, {
37308
37328
  default: withCtx(() => [
37309
37329
  createTextVNode(toDisplayString(n.sidebarLabels.searchButtonLabel), 1)
@@ -37316,8 +37336,8 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37316
37336
  class: "d-block",
37317
37337
  href: "#",
37318
37338
  "data-test": "vs-map-sidebar__reset-map",
37319
- onClick: v[4] || (v[4] = withModifiers((_) => b.$emit("reset-map"), ["prevent"])),
37320
- onKeyup: v[5] || (v[5] = withKeys(withModifiers((_) => b.$emit("reset-map"), ["prevent"]), ["enter"]))
37339
+ onClick: _[4] || (_[4] = withModifiers((b) => v.$emit("reset-map"), ["prevent"])),
37340
+ onKeyup: _[5] || (_[5] = withKeys(withModifiers((b) => v.$emit("reset-map"), ["prevent"]), ["enter"]))
37321
37341
  }, toDisplayString(n.sidebarLabels.clearMapLabel), 33)) : createCommentVNode("", !0)
37322
37342
  ]),
37323
37343
  createElementVNode("div", _hoisted_7, [
@@ -37327,7 +37347,7 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37327
37347
  "has-icons": "",
37328
37348
  items: unref(m),
37329
37349
  "selected-category": unref(i).selectedDestinationType,
37330
- onChanged: v[6] || (v[6] = (_) => g(_.id))
37350
+ onChanged: _[6] || (_[6] = (b) => g(b.id))
37331
37351
  }, null, 8, ["detail-text", "items", "selected-category"])
37332
37352
  ])) : createCommentVNode("", !0),
37333
37353
  unref(i).showCategories ? (openBlock(), createElementBlock("div", _hoisted_9, [
@@ -37335,20 +37355,20 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37335
37355
  "has-icons": "",
37336
37356
  items: unref(f),
37337
37357
  "selected-category": n.selectedCategory,
37338
- onChanged: v[7] || (v[7] = (_) => b.$emit("category-selected", { id: _.id, key: _.key }))
37358
+ onChanged: _[7] || (_[7] = (b) => v.$emit("category-selected", { id: b.id, key: b.key }))
37339
37359
  }, null, 8, ["items", "selected-category"]),
37340
37360
  n.selectedCategory && p.value ? (openBlock(), createBlock(_sfc_main$2, {
37341
37361
  key: 0,
37342
37362
  "detail-text": n.sidebarLabels.subFilterHeaderLabel,
37343
37363
  items: p.value,
37344
37364
  "selected-category": Array.from(n.selectedSubcategories) ?? [],
37345
- onChanged: v[8] || (v[8] = (_) => b.$emit("subcategory-selected", { id: _.id, key: _.key }))
37365
+ onChanged: _[8] || (_[8] = (b) => v.$emit("subcategory-selected", { id: b.id, key: b.key }))
37346
37366
  }, null, 8, ["detail-text", "items", "selected-category"])) : createCommentVNode("", !0)
37347
37367
  ])) : createCommentVNode("", !0)
37348
37368
  ]),
37349
37369
  createElementVNode("div", _hoisted_10, [
37350
37370
  createElementVNode("div", _hoisted_11, [
37351
- b.$props.query || b.$props.selectedCategory ? (openBlock(), createBlock(VsHeading, {
37371
+ v.$props.query || v.$props.selectedCategory ? (openBlock(), createBlock(VsHeading, {
37352
37372
  key: 0,
37353
37373
  "data-test": "vs-map-sidebar__search-result-query",
37354
37374
  "heading-style": "heading-xxxs",
@@ -37363,11 +37383,11 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37363
37383
  key: 1,
37364
37384
  href: "#",
37365
37385
  "data-test": "vs-map-sidebar__hard-reset-map",
37366
- onClick: v[9] || (v[9] = withModifiers((_) => b.$emit("reset-location"), ["prevent"])),
37367
- onKeyup: v[10] || (v[10] = withKeys(withModifiers((_) => b.$emit("reset-location"), ["prevent"]), ["enter"]))
37386
+ onClick: _[9] || (_[9] = withModifiers((b) => v.$emit("reset-location"), ["prevent"])),
37387
+ onKeyup: _[10] || (_[10] = withKeys(withModifiers((b) => v.$emit("reset-location"), ["prevent"]), ["enter"]))
37368
37388
  }, toDisplayString(n.sidebarLabels.resetLocationLabel), 33)) : createCommentVNode("", !0),
37369
37389
  createElementVNode("div", _hoisted_12, [
37370
- renderSlot(b.$slots, "vs-map-sidebar-search-results")
37390
+ renderSlot(v.$slots, "vs-map-sidebar-search-results")
37371
37391
  ])
37372
37392
  ]),
37373
37393
  unref(i).showDestinations ? (openBlock(), createBlock(VsRow, {
@@ -37375,9 +37395,9 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37375
37395
  class: "vs-map__destinations"
37376
37396
  }, {
37377
37397
  default: withCtx(() => [
37378
- (openBlock(!0), createElementBlock(Fragment, null, renderList(n.destinations, (_) => (openBlock(), createBlock(_sfc_main$3, {
37379
- key: _.properties.id,
37380
- place: _
37398
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(n.destinations, (b) => (openBlock(), createBlock(_sfc_main$3, {
37399
+ key: b.properties.id,
37400
+ place: b
37381
37401
  }, null, 8, ["place"]))), 128))
37382
37402
  ]),
37383
37403
  _: 1
@@ -37391,10 +37411,10 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37391
37411
  createElementVNode("div", _hoisted_14, [
37392
37412
  createVNode(VsButton, {
37393
37413
  variant: "subtle",
37394
- onClick: v[11] || (v[11] = (_) => a.value = !a.value)
37414
+ onClick: _[11] || (_[11] = (b) => a.value = !a.value)
37395
37415
  }, {
37396
37416
  default: withCtx(() => [
37397
- v[18] || (v[18] = createElementVNode("div", { class: "vs-map-sidebar__handle-bar" }, null, -1)),
37417
+ _[18] || (_[18] = createElementVNode("div", { class: "vs-map-sidebar__handle-bar" }, null, -1)),
37398
37418
  createElementVNode("span", _hoisted_15, toDisplayString(n.sidebarLabels.openSidebarButtonLabel), 1)
37399
37419
  ]),
37400
37420
  _: 1
@@ -37407,7 +37427,7 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37407
37427
  icon: "vs-icon-control-dismiss",
37408
37428
  "icon-only": "",
37409
37429
  variant: "subtle",
37410
- onClick: v[12] || (v[12] = (_) => o.value = !1)
37430
+ onClick: _[12] || (_[12] = (b) => o.value = !1)
37411
37431
  }, {
37412
37432
  default: withCtx(() => [
37413
37433
  createTextVNode(toDisplayString(n.sidebarLabels.closeSidebarButtonLabel), 1)
@@ -37416,7 +37436,7 @@ const _hoisted_1$3 = { class: "px-125 pb-125" }, _sfc_main$3 = {
37416
37436
  }),
37417
37437
  createElementVNode("gmp-place-details", _hoisted_17, [
37418
37438
  createElementVNode("gmp-place-details-place-request", _hoisted_18, null, 512),
37419
- v[19] || (v[19] = createElementVNode("gmp-place-content-config", null, [
37439
+ _[19] || (_[19] = createElementVNode("gmp-place-content-config", null, [
37420
37440
  createElementVNode("gmp-place-address"),
37421
37441
  createElementVNode("gmp-place-rating"),
37422
37442
  createElementVNode("gmp-place-type"),
@@ -37556,8 +37576,8 @@ function useViewportController() {
37556
37576
  };
37557
37577
  }
37558
37578
  function s(u, f) {
37559
- const m = (f.lat - u.lat) * (Math.PI / 180), g = (f.lng - u.lng) * (Math.PI / 180), b = u.lat * (Math.PI / 180), v = f.lat * (Math.PI / 180), _ = g * Math.cos((b + v) / 2);
37560
- return Math.sqrt(_ * _ + m * m) * 6371e3;
37579
+ const m = (f.lat - u.lat) * (Math.PI / 180), g = (f.lng - u.lng) * (Math.PI / 180), v = u.lat * (Math.PI / 180), _ = f.lat * (Math.PI / 180), b = g * Math.cos((v + _) / 2);
37580
+ return Math.sqrt(b * b + m * m) * 6371e3;
37561
37581
  }
37562
37582
  function i(u) {
37563
37583
  return u < 6 ? 1e4 : u < 10 ? 2500 : u < 14 ? 800 : 300;
@@ -37570,8 +37590,8 @@ function useViewportController() {
37570
37590
  }, p = {
37571
37591
  lat: u.center.lat(),
37572
37592
  lng: u.center.lng()
37573
- }, m = s(f, p), g = i(u.zoom), b = Math.abs(e.value.zoom - u.zoom);
37574
- return m > g || b >= o;
37593
+ }, m = s(f, p), g = i(u.zoom), v = Math.abs(e.value.zoom - u.zoom);
37594
+ return m > g || v >= o;
37575
37595
  }
37576
37596
  let c = null;
37577
37597
  function d(u) {
@@ -37733,7 +37753,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37733
37753
  setup(e) {
37734
37754
  const t = dataLayerComposable(), n = e, a = ref(!1), o = ref(!1), r = n.categoryLabels.find((H) => H.id === "destinations"), s = r ? r.subCategory : null, i = computed$1(() => n.featuredPlaces.filter((H) => H.properties.category.id === R.selectedDestinationType));
37735
37755
  provide("onFeaturedLocationClick", Le);
37736
- let l, c, d, u, f, p, m, g, b, v = {}, _;
37756
+ let l, c, d, u, f, p, m, g, v, _ = {}, b;
37737
37757
  const k = ref(), C = ref(/* @__PURE__ */ new Set()), T = ref(), D = ref(/* @__PURE__ */ new Set()), I = ref(/* @__PURE__ */ new Set()), E = ref(/* @__PURE__ */ new Set()), O = ref(/* @__PURE__ */ new Set()), F = ref(), N = ref(), M = ref(n.zoom), S = ref(!1), V = ref(), P = ref(/* @__PURE__ */ new Set()), B = ref(), $ = ref(!1), w = ref(void 0), L = ref(!1), A = computed$1(() => {
37738
37758
  const H = /* @__PURE__ */ new Map(), q = X[k.value].subCategory;
37739
37759
  return Object.values(q).forEach((Y) => {
@@ -37795,7 +37815,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37795
37815
  console.error("Google Maps Library load error");
37796
37816
  }
37797
37817
  }
37798
- c = document.getElementById("vs-map"), d = document.getElementById("nearbySearch"), u = document.getElementById("textSearch"), f = document.querySelector("gmp-place-text-search-request"), p = document.querySelector("gmp-place-nearby-search-request"), m = document.querySelector("gmp-place-details"), g = document.getElementById("placeRequest"), b = document.getElementById("vs-map-search-input");
37818
+ c = document.getElementById("vs-map"), d = document.getElementById("nearbySearch"), u = document.getElementById("textSearch"), f = document.querySelector("gmp-place-text-search-request"), p = document.querySelector("gmp-place-nearby-search-request"), m = document.querySelector("gmp-place-details"), g = document.getElementById("placeRequest"), v = document.getElementById("vs-map-search-input");
37799
37819
  async function H() {
37800
37820
  try {
37801
37821
  const q = {
@@ -37831,11 +37851,11 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37831
37851
  }), l.addListener("tilesloaded", () => {
37832
37852
  L.value || (L.value = !0, we());
37833
37853
  }), l.addListener("idle", () => {
37834
- _ = Pe(), !ue.value && pe.value && me(se(l)) && (de.value = !0, R.selectedDestinationType = s[0].id, he.value = "", pe.value = !1);
37854
+ b = Pe(), !ue.value && pe.value && me(se(l)) && (de.value = !0, R.selectedDestinationType = s[0].id, he.value = "", pe.value = !1);
37835
37855
  }), d.addEventListener("gmp-select", ({ place: q }) => {
37836
- v[q.id] && ke(q, v[q.id]);
37856
+ _[q.id] && ke(q, _[q.id]);
37837
37857
  }), u.addEventListener("gmp-select", ({ place: q }) => {
37838
- v[q.id] && ke(q, v[q.id]);
37858
+ _[q.id] && ke(q, _[q.id]);
37839
37859
  });
37840
37860
  }
37841
37861
  R.firstInteraction = !1, R.searchesCount = 0, R.filterUsesCount = 0, j.value === !1 && await H();
@@ -37936,7 +37956,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37936
37956
  const Y = Object.fromEntries(
37937
37957
  ne.map((te) => [te.id, te.label])
37938
37958
  );
37939
- V.value = `${Y[H]} ${he.value}`, b.value = V.value, R.showCategories = !0, de.value = !1;
37959
+ V.value = `${Y[H]} ${he.value}`, v.value = V.value, R.showCategories = !0, de.value = !1;
37940
37960
  }
37941
37961
  function J(H, q) {
37942
37962
  const Y = ref([]), te = ref();
@@ -37972,7 +37992,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37972
37992
  if (N.value = q, he.value = "", a.value = !0, H === "self-catering" && !C.value.has("self-catering")) {
37973
37993
  $.value = !0, Ve(), C.value = /* @__PURE__ */ new Set(), C.value.add(H);
37974
37994
  const Y = J(C.value, H).value;
37975
- V.value = Y, b.value = `${V.value} ${he.value}`, Se(), b.value = Y;
37995
+ V.value = Y, v.value = `${V.value} ${he.value}`, Se(), v.value = Y;
37976
37996
  } else C.value.has(H) ? (C.value.delete("self-catering"), C.value.delete(H), E.value = /* @__PURE__ */ new Set(), O.value = /* @__PURE__ */ new Set(), C.value.forEach((Y) => {
37977
37997
  ve(Y, {
37978
37998
  includeTypes: !0,
@@ -37983,7 +38003,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37983
38003
  ), C.value.size === 0 ? (P.value = /* @__PURE__ */ new Set(), Z(k.value, F.value)) : (Ce({
37984
38004
  includedTypes: Array.from(E.value).flat(),
37985
38005
  excludedTypes: Array.from(O.value).flat()
37986
- }), V.value = Array.from(P.value).join(", "), b.value = V.value)) : (C.value.delete("self-catering"), C.value.add(H), ve(H, {
38006
+ }), V.value = Array.from(P.value).join(", "), v.value = V.value)) : (C.value.delete("self-catering"), C.value.add(H), ve(H, {
37987
38007
  includeTypes: !0,
37988
38008
  excludeTypes: !0
37989
38009
  }), fe(), Ce({
@@ -37991,7 +38011,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
37991
38011
  excludedTypes: Array.from(O.value).flat()
37992
38012
  }), P.value.add(
37993
38013
  J(C.value, H).value
37994
- ), V.value = `${Array.from(P.value).join(", ")} ${he.value}`, b.value = V.value);
38014
+ ), V.value = `${Array.from(P.value).join(", ")} ${he.value}`, v.value = V.value);
37995
38015
  R.showCategories = !0;
37996
38016
  }
37997
38017
  async function Ce({
@@ -38026,7 +38046,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38026
38046
  async function Se(H = !1) {
38027
38047
  ye(), xe(), a.value = !0, ie += 1;
38028
38048
  const q = ie;
38029
- R.searchesCount += 1, B.value = "text", V.value = b.value.trim(), V.value && ($.value || H ? (f.locationBias = null, f.locationRestriction = l.getBounds()) : (f.locationRestriction = null, f.locationBias = l.getCenter()), $.value && (k.value = "accommodation", C.value.add("self-catering")), f.includedType = w.value.some(
38049
+ R.searchesCount += 1, B.value = "text", V.value = v.value.trim(), V.value && ($.value || H ? (f.locationBias = null, f.locationRestriction = l.getBounds()) : (f.locationRestriction = null, f.locationBias = l.getCenter()), $.value && (k.value = "accommodation", C.value.add("self-catering")), f.includedType = w.value.some(
38030
38050
  (Y) => V.value.toLowerCase().includes(Y)
38031
38051
  ) ? "lodging" : null, $.value ? f.textQuery = "self catering in Scotland" : f.textQuery = `${V.value} in Scotland`, f.maxResultCount = NUMBER_OF_RESULTS, u.style.display = "block", u.addEventListener("gmp-load", () => {
38032
38052
  q === ie && (Ne(q), $.value = !1, t.createDataLayerObject("googleMapSearchEvent", {
@@ -38062,7 +38082,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38062
38082
  ke(oe);
38063
38083
  }), _e.metadata = {
38064
38084
  id: oe.id
38065
- }, v[oe.id] = _e, ae.extend(oe.location), te.value.places.length === 1 ? (Q(() => l.setCenter(
38085
+ }, _[oe.id] = _e, ae.extend(oe.location), te.value.places.length === 1 ? (Q(() => l.setCenter(
38066
38086
  {
38067
38087
  lat: oe.location.lat(),
38068
38088
  lng: oe.location.lng()
@@ -38086,22 +38106,22 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38086
38106
  content: Y,
38087
38107
  title: q.properties.title
38088
38108
  });
38089
- ae.addListener("gmp-click", () => Le(q)), v[q.properties.title] = ae;
38109
+ ae.addListener("gmp-click", () => Le(q)), _[q.properties.title] = ae;
38090
38110
  });
38091
38111
  }
38092
38112
  function ye(H, q) {
38093
38113
  R.showCategories = !1, Te(), B.value = "", p.includedTypes = null, p.excludedTypes = null, p.locationRestriction = null, d.style.display = "none", f.includedType = null, f.locationRestriction = null, f.locationBias = null, f.textQuery = null, u.style.display = "none", S.value = !1, z.value = void 0, H && (Ve(), xe(), $e("clear_all"), we(), R.showDestinations = !0), q && (Q(() => l.setCenter(n.center)), Q(() => l.setZoom(n.zoom)), Q(() => l.fitBounds(ee)), $e("reset_map"));
38094
38114
  }
38095
38115
  function Ve() {
38096
- V.value = null, b.value = "";
38116
+ V.value = null, v.value = "";
38097
38117
  }
38098
38118
  function xe() {
38099
38119
  k.value = void 0, C.value = /* @__PURE__ */ new Set(), D.value = /* @__PURE__ */ new Set(), I.value = /* @__PURE__ */ new Set(), E.value = /* @__PURE__ */ new Set(), O.value = /* @__PURE__ */ new Set(), P.value = /* @__PURE__ */ new Set(), F.value = void 0, N.value = void 0;
38100
38120
  }
38101
38121
  function Te() {
38102
- for (const H in v)
38103
- v[H] && (v[H].map = null);
38104
- v = {};
38122
+ for (const H in _)
38123
+ _[H] && (_[H].map = null);
38124
+ _ = {};
38105
38125
  }
38106
38126
  function ke(H) {
38107
38127
  g.place = H, m.style.display = "block", a.value = !0, o.value = !0, google.maps.event.addListenerOnce(l, "idle", () => {
@@ -38119,9 +38139,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38119
38139
  ]
38120
38140
  }), Y = q.displayName, te = q.rating, ae = q.websiteURI, oe = q.primaryType), t.createDataLayerObject("googleMapInteractionEvent", {
38121
38141
  interaction_type: H,
38122
- search_query: b.value.trim(),
38142
+ search_query: v.value.trim(),
38123
38143
  map_location: l.getCenter().toString(),
38124
- visible_attractions_count: _,
38144
+ visible_attractions_count: b,
38125
38145
  card_attraction_name: Y,
38126
38146
  card_attraction_category: oe,
38127
38147
  card_attraction_rating: te,
@@ -38142,8 +38162,8 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38142
38162
  const H = l.getBounds();
38143
38163
  if (!H) return 0;
38144
38164
  let q = 0;
38145
- for (let Y = 0; Y < Object.keys(v).length; Y++) {
38146
- const ae = v[Object.keys(v)[Y]].position;
38165
+ for (let Y = 0; Y < Object.keys(_).length; Y++) {
38166
+ const ae = _[Object.keys(_)[Y]].position;
38147
38167
  H.contains(ae) && (q += 1);
38148
38168
  }
38149
38169
  return q;
@@ -38182,7 +38202,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38182
38202
  H.push(
38183
38203
  J(C.value, q).value
38184
38204
  );
38185
- }), V.value = H.join(", "), b.value = V.value, R.showCategories = !0;
38205
+ }), V.value = H.join(", "), v.value = V.value, R.showCategories = !0;
38186
38206
  }
38187
38207
  return;
38188
38208
  }
@@ -38190,7 +38210,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
38190
38210
  Z(k.value, F.value);
38191
38211
  return;
38192
38212
  }
38193
- if (b.value) {
38213
+ if (v.value) {
38194
38214
  Se(!0);
38195
38215
  return;
38196
38216
  }