@visitscotland/component-library 5.55.1 → 5.57.4
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.
- package/dist/client/styles/third-party/_font-awesome.css +2 -2
- package/dist/client/styles/third-party/fa-regular-400.ttf +0 -0
- package/dist/client/styles/third-party/fa-regular-400.woff2 +0 -0
- package/dist/client/styles/third-party/fa-solid-900.ttf +0 -0
- package/dist/components/{LoadingSpinner-DV2HOq5V.js → LoadingSpinner-DE86z2xi.js} +14 -14
- package/dist/components/{LoadingSpinner-DWuFTQ1G.mjs → LoadingSpinner-ij7CWJOg.mjs} +1638 -1625
- package/dist/components/src/components/accordion/components/AccordionItem.vue.d.ts +4 -0
- package/dist/components/src/components/accordion/components/AccordionToggle.vue.d.ts +2 -0
- package/dist/components/src/components/address/Address.vue.d.ts +2 -0
- package/dist/components/src/components/alert/Alert.vue.d.ts +2 -0
- package/dist/components/src/components/article-details/ArticleDetails.vue.d.ts +2 -0
- package/dist/components/src/components/banner/Banner.vue.d.ts +4 -0
- package/dist/components/src/components/button/Button.vue.d.ts +2 -0
- package/dist/components/src/components/button-toggle-group/ButtonToggleGroup.vue.d.ts +2 -0
- package/dist/components/src/components/canned-search/CannedSearch.vue.d.ts +8 -0
- package/dist/components/src/components/canned-search/components/CannedSearchLogos.vue.d.ts +2 -0
- package/dist/components/src/components/canned-search/components/CannedSearchProductCard.vue.d.ts +2 -0
- package/dist/components/src/components/canned-search/components/CannedSearchSummaryBox.vue.d.ts +2 -0
- package/dist/components/src/components/caption/Caption.vue.d.ts +2 -0
- package/dist/components/src/components/carbon-calculator/CarbonCalculator.vue.d.ts +16 -0
- package/dist/components/src/components/carbon-calculator/components/CarbonCalculatorQuestion.vue.d.ts +2 -0
- package/dist/components/src/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +4 -0
- package/dist/components/src/components/carbon-calculator/components/CarbonCalculatorRunningTotal.vue.d.ts +2 -0
- package/dist/components/src/components/carbon-calculator/components/CarbonCalculatorTip.vue.d.ts +2 -0
- package/dist/components/src/components/card/Card.vue.d.ts +2 -0
- package/dist/components/src/components/carousel/Carousel.vue.d.ts +2 -0
- package/dist/components/src/components/carousel/components/CarouselSlide.vue.d.ts +10 -0
- package/dist/components/src/components/content-swiper/ContentSwiper.vue.d.ts +6 -0
- package/dist/components/src/components/detail/Detail.vue.d.ts +2 -0
- package/dist/components/src/components/embed-wrapper/EmbedWrapper.vue.d.ts +4 -0
- package/dist/components/src/components/event-card/EventCard.vue.d.ts +2 -0
- package/dist/components/src/components/footer/components/FooterAccordionItem.vue.d.ts +4 -0
- package/dist/components/src/components/footer/components/FooterCopyright.vue.d.ts +2 -0
- package/dist/components/src/components/footer/components/FooterNavListItem.vue.d.ts +2 -0
- package/dist/components/src/components/footer/components/FooterSocialItem.vue.d.ts +4 -0
- package/dist/components/src/components/form/Form.vue.d.ts +8 -0
- package/dist/components/src/components/global-menu/components/GlobalMenuLanguage.vue.d.ts +2 -0
- package/dist/components/src/components/hero-section/HeroSection.vue.d.ts +8 -0
- package/dist/components/src/components/icon/Icon.vue.d.ts +2 -0
- package/dist/components/src/components/icon-list/components/IconListItem.vue.d.ts +2 -0
- package/dist/components/src/components/image-with-caption/ImageWithCaption.vue.d.ts +14 -0
- package/dist/components/src/components/input/Input.vue.d.ts +2 -0
- package/dist/components/src/components/itineraries/Itinerary.vue.d.ts +2 -0
- package/dist/components/src/components/itineraries/components/ItineraryDay.vue.d.ts +6 -0
- package/dist/components/src/components/itineraries/components/ItineraryStop.vue.d.ts +4 -0
- package/dist/components/src/components/itineraries/components/ItineraryStopInfo.vue.d.ts +4 -0
- package/dist/components/src/components/link/Link.vue.d.ts +2 -0
- package/dist/components/src/components/link-list/components/LinkListItem.vue.d.ts +2 -0
- package/dist/components/src/components/listicle/ListicleItem.vue.d.ts +2 -0
- package/dist/components/src/components/map/Map.vue.d.ts +4 -0
- package/dist/components/src/components/map/components/MapMarker.vue.d.ts +2 -0
- package/dist/components/src/components/map-marker-icon/MapMarkerIcon.vue.d.ts +2 -0
- package/dist/components/src/components/map-with-sidebar/MapWithSidebar.vue.d.ts +26 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarButtons.vue.d.ts +2 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarCategory.vue.d.ts +4 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarControls.vue.d.ts +2 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +2 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +14 -0
- package/dist/components/src/components/map-with-sidebar/components/MapWithSidebarSubcategory.vue.d.ts +2 -0
- package/dist/components/src/components/mega-nav/MegaNav.vue.d.ts +14 -0
- package/dist/components/src/components/mega-nav/components/MegaNavAccordionItem.vue.d.ts +6 -0
- package/dist/components/src/components/mega-nav/components/MegaNavDropdown.vue.d.ts +2 -0
- package/dist/components/src/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +4 -0
- package/dist/components/src/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +8 -0
- package/dist/components/src/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +8 -0
- package/dist/components/src/components/mega-nav/components/MegaNavListItem.vue.d.ts +2 -0
- package/dist/components/src/components/mega-nav/components/MegaNavStaticLink.vue.d.ts +2 -0
- package/dist/components/src/components/megalinks/Megalinks.vue.d.ts +2 -0
- package/dist/components/src/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +10 -0
- package/dist/components/src/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +10 -0
- package/dist/components/src/components/megalinks/components/megalink-single-image/MegalinkSingleImage.vue.d.ts +2 -0
- package/dist/components/src/components/modal/Modal.vue.d.ts +2 -0
- package/dist/components/src/components/navigation-bar/NavigationBar.vue.d.ts +6 -0
- package/dist/components/src/components/navigation-bar/components/NavigationBarSearch.vue.d.ts +8 -0
- package/dist/components/src/components/navigation-bar/components/NavigationBarSidebar.vue.d.ts +2 -0
- package/dist/components/src/components/navigation-bar/components/NavigationBarSidebarButton.vue.d.ts +4 -0
- package/dist/components/src/components/number-input/NumberInput.vue.d.ts +2 -0
- package/dist/components/src/components/product-search/ProductSearch.vue.d.ts +4 -0
- package/dist/components/src/components/quote/Quote.vue.d.ts +439 -1
- package/dist/components/src/components/site-search/SiteSearch.vue.d.ts +2 -0
- package/dist/components/src/components/site-search/components/SiteSearchForm.vue.d.ts +6 -0
- package/dist/components/src/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +8 -0
- package/dist/components/src/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +14 -0
- package/dist/components/src/components/skip-to/SkipTo.vue.d.ts +2 -0
- package/dist/components/src/components/social-credit-link/SocialCreditLink.vue.d.ts +4 -0
- package/dist/components/src/components/social-share/SocialShare.vue.d.ts +2 -0
- package/dist/components/src/components/social-share/components/SocialShareItem.vue.d.ts +4 -0
- package/dist/components/src/components/spotlight-section/SpotlightSection.vue.d.ts +2 -0
- package/dist/components/src/components/stretched-link-card/StretchedLinkCard.vue.d.ts +8 -0
- package/dist/components/src/components/stretched-link-card/components/StretchedLinkPanels.vue.d.ts +2 -0
- package/dist/components/src/components/summary-box/components/SummaryBoxListItem.vue.d.ts +2 -0
- package/dist/components/src/components/svg-link/SvgLink.vue.d.ts +2 -0
- package/dist/components/src/components/tag/Tag.vue.d.ts +2 -0
- package/dist/components/src/components/toggle-button/ToggleButton.vue.d.ts +4 -0
- package/dist/components/src/components/tooltip/Tooltip.vue.d.ts +2 -0
- package/dist/components/src/components/video/Video.vue.d.ts +8 -0
- package/dist/components/src/components/video/components/VideoHtml5.vue.d.ts +4 -0
- package/dist/components/src/components/video/components/VideoYoutube.vue.d.ts +4 -0
- package/dist/components/src/components/video-caption/VideoCaption.vue.d.ts +10 -0
- package/dist/components/src/components/warning/Warning.vue.d.ts +4 -0
- package/dist/components/src/custom-components/maps/MainMap.vue.d.ts +0 -2
- package/dist/components/src/custom-components/maps/composables/useViewportController.d.ts +13 -6
- package/dist/components/src/custom-components/maps/index.d.ts +0 -2
- package/dist/components/style.css +2 -2
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +9 -9
- package/dist/components/vs-component-library.mjs +566 -478
- package/package.json +4 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, normalizeClass, withCtx, createElementVNode, createVNode, normalizeStyle, createCommentVNode, withDirectives, vShow, inject, mergeProps, toDisplayString, ref, onMounted, onUnmounted, createTextVNode, Fragment, renderList, resolveDirective, withKeys, withModifiers, normalizeProps, createSlots, getCurrentInstance, defineComponent, computed as computed$1, watch, reactive, provide, onBeforeMount, isRef, onBeforeUnmount, unref, isReactive, isReadonly, nextTick as nextTick$1, onUpdated, h, onBeforeUpdate, useId, isVNode, markRaw, toRef, resolveDynamicComponent, Transition, Teleport, useModel, mergeModels, toHandlers, vModelText, guardReactiveProps, Suspense } from "vue";
|
|
2
|
-
import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as getDefaultExportFromCjs, y as vt, L as Lu, z as ld, A as _a, M as Md, B as products, C as paths, D as monthsEnglish, F as VsLoading, G as ol, H as wn, I as Ea, J as Bn, K as Je, S as St, P as Pa, N as Ka, Q as vc, R as dc, U as useDataLayerStore, W as checkVendorLibrary, $ as siteSearchCloseTemplate, a0 as siteSearchClickTemplate, a1 as siteSearchUsageTemplate, a2 as siteSearchOpenTemplate, a3 as googleMapInteractionTemplate, a4 as googleMapTimeToFirstInteractionTemplate, a5 as googleMapFilterInteractionTemplate, a6 as googleMapSearchTemplate } from "./LoadingSpinner-
|
|
3
|
-
import { a7 as
|
|
2
|
+
import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as getDefaultExportFromCjs, y as vt, L as Lu, z as ld, A as _a, M as Md, B as products, C as paths, D as monthsEnglish, F as VsLoading, G as ol, H as wn, I as Ea, J as Bn, K as Je, S as St, P as Pa, N as Ka, Q as vc, R as dc, U as useDataLayerStore, W as checkVendorLibrary, $ as siteSearchCloseTemplate, a0 as siteSearchClickTemplate, a1 as siteSearchUsageTemplate, a2 as siteSearchOpenTemplate, a3 as googleMapInteractionTemplate, a4 as googleMapTimeToFirstInteractionTemplate, a5 as googleMapFilterInteractionTemplate, a6 as googleMapSearchTemplate } from "./LoadingSpinner-ij7CWJOg.mjs";
|
|
3
|
+
import { a7 as qe } from "./LoadingSpinner-ij7CWJOg.mjs";
|
|
4
4
|
import { defineStore, storeToRefs } from "pinia";
|
|
5
5
|
const _sfc_main$2E = {
|
|
6
6
|
name: "VsAccordion",
|
|
@@ -1686,14 +1686,14 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1686
1686
|
}, m = getAlignmentAxis(a), p = getAxisLength(m), g = await o.getDimensions(c), v = m === "y", k = v ? "top" : "left", _ = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", S = r.reference[p] + r.reference[m] - f[m] - r.floating[p], V = f[m] - r.reference[m], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
1687
1687
|
let N = T ? T[b] : 0;
|
|
1688
1688
|
(!N || !await (o.isElement == null ? void 0 : o.isElement(T))) && (N = i.floating[b] || r.floating[p]);
|
|
1689
|
-
const C = S / 2 - V / 2,
|
|
1689
|
+
const C = S / 2 - V / 2, F = N / 2 - g[p] / 2 - 1, I = min$2(u[k], F), w = min$2(u[_], F), M = I, E = N - g[p] - w, L = N / 2 - g[p] / 2 + C, $ = clamp(M, L, E), D = !l.arrow && getAlignment(a) != null && L !== $ && r.reference[p] / 2 - (L < M ? I : w) - g[p] / 2 < 0, R = D ? L < M ? L - M : L - E : 0;
|
|
1690
1690
|
return {
|
|
1691
|
-
[m]: f[m] +
|
|
1691
|
+
[m]: f[m] + R,
|
|
1692
1692
|
data: {
|
|
1693
1693
|
[m]: $,
|
|
1694
|
-
centerOffset: L - $ -
|
|
1694
|
+
centerOffset: L - $ - R,
|
|
1695
1695
|
...D && {
|
|
1696
|
-
alignmentOffset:
|
|
1696
|
+
alignmentOffset: R
|
|
1697
1697
|
}
|
|
1698
1698
|
},
|
|
1699
1699
|
reset: D
|
|
@@ -1725,45 +1725,45 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1725
1725
|
return {};
|
|
1726
1726
|
const k = getSide(a), _ = getSideAxis(i), b = getSide(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), V = f || (b || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), T = p !== "none";
|
|
1727
1727
|
!f && T && V.push(...getOppositeAxisPlacements(i, g, p, S));
|
|
1728
|
-
const N = [i, ...V], C = await l.detectOverflow(n, v),
|
|
1729
|
-
let
|
|
1730
|
-
if (d &&
|
|
1728
|
+
const N = [i, ...V], C = await l.detectOverflow(n, v), F = [];
|
|
1729
|
+
let I = ((s = r.flip) == null ? void 0 : s.overflows) || [];
|
|
1730
|
+
if (d && F.push(C[k]), u) {
|
|
1731
1731
|
const L = getAlignmentSides(a, o, S);
|
|
1732
|
-
|
|
1732
|
+
F.push(C[L[0]], C[L[1]]);
|
|
1733
1733
|
}
|
|
1734
|
-
if (
|
|
1734
|
+
if (I = [...I, {
|
|
1735
1735
|
placement: a,
|
|
1736
|
-
overflows:
|
|
1737
|
-
}], !
|
|
1736
|
+
overflows: F
|
|
1737
|
+
}], !F.every((L) => L <= 0)) {
|
|
1738
1738
|
var w, M;
|
|
1739
1739
|
const L = (((w = r.flip) == null ? void 0 : w.index) || 0) + 1, $ = N[L];
|
|
1740
1740
|
if ($ && (!(u === "alignment" ? _ !== getSideAxis($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1741
1741
|
// overflows the main axis.
|
|
1742
|
-
|
|
1742
|
+
I.every((B) => getSideAxis(B.placement) === _ ? B.overflows[0] > 0 : !0)))
|
|
1743
1743
|
return {
|
|
1744
1744
|
data: {
|
|
1745
1745
|
index: L,
|
|
1746
|
-
overflows:
|
|
1746
|
+
overflows: I
|
|
1747
1747
|
},
|
|
1748
1748
|
reset: {
|
|
1749
1749
|
placement: $
|
|
1750
1750
|
}
|
|
1751
1751
|
};
|
|
1752
|
-
let D = (M =
|
|
1752
|
+
let D = (M = I.filter((R) => R.overflows[0] <= 0).sort((R, B) => R.overflows[1] - B.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1753
1753
|
if (!D)
|
|
1754
1754
|
switch (m) {
|
|
1755
1755
|
case "bestFit": {
|
|
1756
1756
|
var E;
|
|
1757
|
-
const
|
|
1757
|
+
const R = (E = I.filter((B) => {
|
|
1758
1758
|
if (T) {
|
|
1759
|
-
const
|
|
1760
|
-
return
|
|
1759
|
+
const P = getSideAxis(B.placement);
|
|
1760
|
+
return P === _ || // Create a bias to the `y` side axis due to horizontal
|
|
1761
1761
|
// reading directions favoring greater width.
|
|
1762
|
-
|
|
1762
|
+
P === "y";
|
|
1763
1763
|
}
|
|
1764
1764
|
return !0;
|
|
1765
|
-
}).map((B) => [B.placement, B.overflows.filter((
|
|
1766
|
-
|
|
1765
|
+
}).map((B) => [B.placement, B.overflows.filter((P) => P > 0).reduce((P, O) => P + O, 0)]).sort((B, P) => B[1] - P[1])[0]) == null ? void 0 : E[0];
|
|
1766
|
+
R && (D = R);
|
|
1767
1767
|
break;
|
|
1768
1768
|
}
|
|
1769
1769
|
case "initialPlacement":
|
|
@@ -3351,7 +3351,7 @@ const VsCannedSearchTourDeparts = /* @__PURE__ */ _export_sfc(_sfc_main$2b, [["r
|
|
|
3351
3351
|
}, _hoisted_4$J = ["onClick", "onKeypress", "data-test"], _hoisted_5$w = { class: "visually-hidden" }, _hoisted_6$m = {
|
|
3352
3352
|
key: 0,
|
|
3353
3353
|
class: "vs-carousel__mobile-pagination-wrapper"
|
|
3354
|
-
}, _hoisted_7$
|
|
3354
|
+
}, _hoisted_7$i = {
|
|
3355
3355
|
class: "vs-carousel__mobile-pagination",
|
|
3356
3356
|
"data-test": "vs-carousel__mobile-pagination"
|
|
3357
3357
|
};
|
|
@@ -3427,7 +3427,7 @@ function _sfc_render$1V(e, n, t, s, a, r) {
|
|
|
3427
3427
|
])) : createCommentVNode("", !0)
|
|
3428
3428
|
]),
|
|
3429
3429
|
a.totalSlides > r.slidesPerPage[a.currentWidth] ? (openBlock(), createElementBlock("div", _hoisted_6$m, [
|
|
3430
|
-
createElementVNode("p", _hoisted_7$
|
|
3430
|
+
createElementVNode("p", _hoisted_7$i, [
|
|
3431
3431
|
createTextVNode(toDisplayString(a.currentPage + 1) + " ", 1),
|
|
3432
3432
|
renderSlot(e.$slots, "vs-carousel-of"),
|
|
3433
3433
|
createTextVNode(" " + toDisplayString(a.totalSlides), 1)
|
|
@@ -3768,9 +3768,9 @@ function _sfc_render$1T(e, n, t, s, a, r) {
|
|
|
3768
3768
|
renderSlot(e.$slots, "vs-canned-search-of")
|
|
3769
3769
|
]),
|
|
3770
3770
|
default: withCtx(() => [
|
|
3771
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.products, (C,
|
|
3772
|
-
key:
|
|
3773
|
-
"slide-index": `${
|
|
3771
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.products, (C, F) => (openBlock(), createBlock(V, {
|
|
3772
|
+
key: F,
|
|
3773
|
+
"slide-index": `${F}`,
|
|
3774
3774
|
"img-src": C.images ? C.images[0].mediaUrl : "",
|
|
3775
3775
|
title: C.name,
|
|
3776
3776
|
"detail-link": {
|
|
@@ -3998,7 +3998,7 @@ const CannedSearch = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_
|
|
|
3998
3998
|
return (t - e) * s / (n - e);
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
|
-
}, _hoisted_1$1F = ["width", "height"], _hoisted_2$1b = ["stroke"], _hoisted_3$Z = ["stroke"], _hoisted_4$I = ["stroke"], _hoisted_5$v = ["stroke"], _hoisted_6$l = ["stroke"], _hoisted_7$
|
|
4001
|
+
}, _hoisted_1$1F = ["width", "height"], _hoisted_2$1b = ["stroke"], _hoisted_3$Z = ["stroke"], _hoisted_4$I = ["stroke"], _hoisted_5$v = ["stroke"], _hoisted_6$l = ["stroke"], _hoisted_7$h = ["stroke"], _hoisted_8$7 = ["stroke"], _hoisted_9$6 = ["stroke"], _hoisted_10$6 = ["stroke"], _hoisted_11$5 = ["stroke"], _hoisted_12$3 = ["stroke"], _hoisted_13$3 = ["stroke"], _hoisted_14$2 = ["stroke"], _hoisted_15$2 = ["stroke"], _hoisted_16$2 = ["stroke"], _hoisted_17$2 = ["stroke"], _hoisted_18$1 = ["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"];
|
|
4002
4002
|
function _sfc_render$1S(e, n, t, s, a, r) {
|
|
4003
4003
|
return openBlock(), createElementBlock("svg", {
|
|
4004
4004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4075,7 +4075,7 @@ function _sfc_render$1S(e, n, t, s, a, r) {
|
|
|
4075
4075
|
"stroke-linejoin": "round",
|
|
4076
4076
|
"stroke-width": "0.5",
|
|
4077
4077
|
"fill-rule": "evenodd"
|
|
4078
|
-
}, null, 8, _hoisted_7$
|
|
4078
|
+
}, null, 8, _hoisted_7$h),
|
|
4079
4079
|
createElementVNode("path", {
|
|
4080
4080
|
d: "M52.8005,31.1643l1.67-.552-.17-.548C53.1345,30.2483,52.9675,29.88,52.8005,31.1643Z",
|
|
4081
4081
|
transform: "translate(-0.2662 -0.2662)",
|
|
@@ -4085,7 +4085,7 @@ function _sfc_render$1S(e, n, t, s, a, r) {
|
|
|
4085
4085
|
"stroke-linejoin": "round",
|
|
4086
4086
|
"stroke-width": "0.5",
|
|
4087
4087
|
"fill-rule": "evenodd"
|
|
4088
|
-
}, null, 8, _hoisted_8$
|
|
4088
|
+
}, null, 8, _hoisted_8$7),
|
|
4089
4089
|
createElementVNode("path", {
|
|
4090
4090
|
d: "M51.2975,30.9843l.167,1.655,1.169-1.287Z",
|
|
4091
4091
|
transform: "translate(-0.2662 -0.2662)",
|
|
@@ -4095,7 +4095,7 @@ function _sfc_render$1S(e, n, t, s, a, r) {
|
|
|
4095
4095
|
"stroke-linejoin": "round",
|
|
4096
4096
|
"stroke-width": "0.5",
|
|
4097
4097
|
"fill-rule": "evenodd"
|
|
4098
|
-
}, null, 8, _hoisted_9$
|
|
4098
|
+
}, null, 8, _hoisted_9$6),
|
|
4099
4099
|
createElementVNode("path", {
|
|
4100
4100
|
d: `M48.6245,31.72c.1671,1.655-1,.552-1.5.92s-.334,
|
|
4101
4101
|
1.655-.167,2.207l1.336-.184c.167.92.5.552,1.169.736l.835.368a1.5181,1.5181,0,0,0,
|
|
@@ -4108,7 +4108,7 @@ function _sfc_render$1S(e, n, t, s, a, r) {
|
|
|
4108
4108
|
"stroke-linejoin": "round",
|
|
4109
4109
|
"stroke-width": "0.5",
|
|
4110
4110
|
"fill-rule": "evenodd"
|
|
4111
|
-
}, null, 8, _hoisted_10$
|
|
4111
|
+
}, null, 8, _hoisted_10$6),
|
|
4112
4112
|
createElementVNode("path", {
|
|
4113
4113
|
d: "M50.4625,33.1913l.334.92.835-.92-.169-.184Z",
|
|
4114
4114
|
transform: "translate(-0.2662 -0.2662)",
|
|
@@ -4118,7 +4118,7 @@ function _sfc_render$1S(e, n, t, s, a, r) {
|
|
|
4118
4118
|
"stroke-linejoin": "round",
|
|
4119
4119
|
"stroke-width": "0.5",
|
|
4120
4120
|
"fill-rule": "evenodd"
|
|
4121
|
-
}, null, 8, _hoisted_11$
|
|
4121
|
+
}, null, 8, _hoisted_11$5),
|
|
4122
4122
|
createElementVNode("path", {
|
|
4123
4123
|
d: `M46.6205,36.1343c0,.184.167.552.167.736.167.184.167.368.334.368,
|
|
4124
4124
|
1.169.92,1.336-1.287.167-1.287C46.9545,35.95,46.7875,35.95,46.6205,36.1343Z`,
|
|
@@ -6228,16 +6228,16 @@ function formatLocale(e) {
|
|
|
6228
6228
|
u = formatSpecifier(u);
|
|
6229
6229
|
var f = u.fill, m = u.align, p = u.sign, g = u.symbol, v = u.zero, k = u.width, _ = u.comma, b = u.precision, S = u.trim, V = u.type;
|
|
6230
6230
|
V === "n" ? (_ = !0, V = "g") : formatTypes[V] || (b === void 0 && (b = 12), S = !0, V = "g"), (v || f === "0" && m === "=") && (v = !0, f = "0", m = "=");
|
|
6231
|
-
var T = g === "$" ? t : g === "#" && /[boxX]/.test(V) ? "0" + V.toLowerCase() : "", N = g === "$" ? s : /[%p]/.test(V) ? o : "", C = formatTypes[V],
|
|
6231
|
+
var T = g === "$" ? t : g === "#" && /[boxX]/.test(V) ? "0" + V.toLowerCase() : "", N = g === "$" ? s : /[%p]/.test(V) ? o : "", C = formatTypes[V], F = /[defgprs%]/.test(V);
|
|
6232
6232
|
b = b === void 0 ? 6 : /[gprs]/.test(V) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
|
|
6233
|
-
function
|
|
6233
|
+
function I(w) {
|
|
6234
6234
|
var M = T, E = N, L, $, D;
|
|
6235
6235
|
if (V === "c")
|
|
6236
6236
|
E = C(w) + E, w = "";
|
|
6237
6237
|
else {
|
|
6238
6238
|
w = +w;
|
|
6239
|
-
var
|
|
6240
|
-
if (w = isNaN(w) ? l : C(Math.abs(w), b), S && (w = formatTrim(w)),
|
|
6239
|
+
var R = w < 0 || 1 / w < 0;
|
|
6240
|
+
if (w = isNaN(w) ? l : C(Math.abs(w), b), S && (w = formatTrim(w)), R && +w == 0 && p !== "+" && (R = !1), M = (R ? p === "(" ? p : i : p === "-" || p === "(" ? "" : p) + M, E = (V === "s" ? prefixes[8 + prefixExponent / 3] : "") + E + (R && p === "(" ? ")" : ""), F) {
|
|
6241
6241
|
for (L = -1, $ = w.length; ++L < $; )
|
|
6242
6242
|
if (D = w.charCodeAt(L), 48 > D || D > 57) {
|
|
6243
6243
|
E = (D === 46 ? a + w.slice(L + 1) : w.slice(L)) + E, w = w.slice(0, L);
|
|
@@ -6246,26 +6246,26 @@ function formatLocale(e) {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
6248
|
_ && !v && (w = n(w, 1 / 0));
|
|
6249
|
-
var B = M.length + w.length + E.length,
|
|
6250
|
-
switch (_ && v && (w = n(
|
|
6249
|
+
var B = M.length + w.length + E.length, P = B < k ? new Array(k - B + 1).join(f) : "";
|
|
6250
|
+
switch (_ && v && (w = n(P + w, P.length ? k - E.length : 1 / 0), P = ""), m) {
|
|
6251
6251
|
case "<":
|
|
6252
|
-
w = M + w + E +
|
|
6252
|
+
w = M + w + E + P;
|
|
6253
6253
|
break;
|
|
6254
6254
|
case "=":
|
|
6255
|
-
w = M +
|
|
6255
|
+
w = M + P + w + E;
|
|
6256
6256
|
break;
|
|
6257
6257
|
case "^":
|
|
6258
|
-
w =
|
|
6258
|
+
w = P.slice(0, B = P.length >> 1) + M + w + E + P.slice(B);
|
|
6259
6259
|
break;
|
|
6260
6260
|
default:
|
|
6261
|
-
w =
|
|
6261
|
+
w = P + M + w + E;
|
|
6262
6262
|
break;
|
|
6263
6263
|
}
|
|
6264
6264
|
return r(w);
|
|
6265
6265
|
}
|
|
6266
|
-
return
|
|
6266
|
+
return I.toString = function() {
|
|
6267
6267
|
return u + "";
|
|
6268
|
-
},
|
|
6268
|
+
}, I;
|
|
6269
6269
|
}
|
|
6270
6270
|
function d(u, f) {
|
|
6271
6271
|
var m = c((u = formatSpecifier(u), u.type = "f", u)), p = Math.max(-8, Math.min(8, Math.floor(exponent(f) / 3))) * 3, g = Math.pow(10, -p), v = prefixes[8 + p / 3];
|
|
@@ -6561,14 +6561,14 @@ function intersect(e, n, t, s, a, r, o, i) {
|
|
|
6561
6561
|
return f = (d * (n - r) - u * (e - a)) / f, [e + f * l, n + f * c];
|
|
6562
6562
|
}
|
|
6563
6563
|
function cornerTangents(e, n, t, s, a, r, o) {
|
|
6564
|
-
var i = e - t, l = n - s, c = (o ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, m = n + u, p = t + d, g = s + u, v = (f + p) / 2, k = (m + g) / 2, _ = p - f, b = g - m, S = _ * _ + b * b, V = a - r, T = f * g - p * m, N = (b < 0 ? -1 : 1) * sqrt(max(0, V * V * S - T * T)), C = (T * b - _ * N) / S,
|
|
6565
|
-
return M * M + E * E > L * L + $ * $ && (C =
|
|
6564
|
+
var i = e - t, l = n - s, c = (o ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, m = n + u, p = t + d, g = s + u, v = (f + p) / 2, k = (m + g) / 2, _ = p - f, b = g - m, S = _ * _ + b * b, V = a - r, T = f * g - p * m, N = (b < 0 ? -1 : 1) * sqrt(max(0, V * V * S - T * T)), C = (T * b - _ * N) / S, F = (-T * _ - b * N) / S, I = (T * b + _ * N) / S, w = (-T * _ + b * N) / S, M = C - v, E = F - k, L = I - v, $ = w - k;
|
|
6565
|
+
return M * M + E * E > L * L + $ * $ && (C = I, F = w), {
|
|
6566
6566
|
cx: C,
|
|
6567
|
-
cy:
|
|
6567
|
+
cy: F,
|
|
6568
6568
|
x01: -d,
|
|
6569
6569
|
y01: -u,
|
|
6570
6570
|
x11: C * (a / V - 1),
|
|
6571
|
-
y11:
|
|
6571
|
+
y11: F * (a / V - 1)
|
|
6572
6572
|
};
|
|
6573
6573
|
}
|
|
6574
6574
|
function arc() {
|
|
@@ -6579,22 +6579,22 @@ function arc() {
|
|
|
6579
6579
|
else if (v > tau$1 - epsilon$2)
|
|
6580
6580
|
i.moveTo(m * cos(p), m * sin(p)), i.arc(0, 0, m, p, g, !k), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, p, k));
|
|
6581
6581
|
else {
|
|
6582
|
-
var _ = p, b = g, S = p, V = g, T = v, N = v, C = o.apply(this, arguments) / 2,
|
|
6583
|
-
if (
|
|
6584
|
-
var $ = asin(
|
|
6582
|
+
var _ = p, b = g, S = p, V = g, T = v, N = v, C = o.apply(this, arguments) / 2, F = C > epsilon$2 && (s ? +s.apply(this, arguments) : sqrt(f * f + m * m)), I = min(abs(m - f) / 2, +t.apply(this, arguments)), w = I, M = I, E, L;
|
|
6583
|
+
if (F > epsilon$2) {
|
|
6584
|
+
var $ = asin(F / f * sin(C)), D = asin(F / m * sin(C));
|
|
6585
6585
|
(T -= $ * 2) > epsilon$2 ? ($ *= k ? 1 : -1, S += $, V -= $) : (T = 0, S = V = (p + g) / 2), (N -= D * 2) > epsilon$2 ? (D *= k ? 1 : -1, _ += D, b -= D) : (N = 0, _ = b = (p + g) / 2);
|
|
6586
6586
|
}
|
|
6587
|
-
var
|
|
6588
|
-
if (
|
|
6589
|
-
var H = m * cos(b), U = m * sin(b),
|
|
6587
|
+
var R = m * cos(_), B = m * sin(_), P = f * cos(V), O = f * sin(V);
|
|
6588
|
+
if (I > epsilon$2) {
|
|
6589
|
+
var H = m * cos(b), U = m * sin(b), Q = f * cos(S), te = f * sin(S), Y;
|
|
6590
6590
|
if (v < pi$1)
|
|
6591
|
-
if (
|
|
6592
|
-
var
|
|
6593
|
-
w = min(
|
|
6591
|
+
if (Y = intersect(R, B, Q, te, H, U, P, O)) {
|
|
6592
|
+
var Z = R - Y[0], ee = B - Y[1], de = H - Y[0], le = U - Y[1], ge = 1 / sin(acos((Z * de + ee * le) / (sqrt(Z * Z + ee * ee) * sqrt(de * de + le * le))) / 2), ce = sqrt(Y[0] * Y[0] + Y[1] * Y[1]);
|
|
6593
|
+
w = min(I, (f - ce) / (ge - 1)), M = min(I, (m - ce) / (ge + 1));
|
|
6594
6594
|
} else
|
|
6595
6595
|
w = M = 0;
|
|
6596
6596
|
}
|
|
6597
|
-
N > epsilon$2 ? M > epsilon$2 ? (E = cornerTangents(
|
|
6597
|
+
N > epsilon$2 ? M > epsilon$2 ? (E = cornerTangents(Q, te, R, B, m, M, k), L = cornerTangents(H, U, P, O, m, M, k), i.moveTo(E.cx + E.x01, E.cy + E.y01), M < I ? i.arc(E.cx, E.cy, M, atan2(E.y01, E.x01), atan2(L.y01, L.x01), !k) : (i.arc(E.cx, E.cy, M, atan2(E.y01, E.x01), atan2(E.y11, E.x11), !k), i.arc(0, 0, m, atan2(E.cy + E.y11, E.cx + E.x11), atan2(L.cy + L.y11, L.cx + L.x11), !k), i.arc(L.cx, L.cy, M, atan2(L.y11, L.x11), atan2(L.y01, L.x01), !k))) : (i.moveTo(R, B), i.arc(0, 0, m, _, b, !k)) : i.moveTo(R, B), !(f > epsilon$2) || !(T > epsilon$2) ? i.lineTo(P, O) : w > epsilon$2 ? (E = cornerTangents(P, O, H, U, f, -w, k), L = cornerTangents(R, B, Q, te, f, -w, k), i.lineTo(E.cx + E.x01, E.cy + E.y01), w < I ? i.arc(E.cx, E.cy, w, atan2(E.y01, E.x01), atan2(L.y01, L.x01), !k) : (i.arc(E.cx, E.cy, w, atan2(E.y01, E.x01), atan2(E.y11, E.x11), !k), i.arc(0, 0, f, atan2(E.cy + E.y11, E.cx + E.x11), atan2(L.cy + L.y11, L.cx + L.x11), k), i.arc(L.cx, L.cy, w, atan2(L.y11, L.x11), atan2(L.y01, L.x01), !k))) : i.arc(0, 0, f, V, S, k);
|
|
6598
6598
|
}
|
|
6599
6599
|
if (i.closePath(), d) return i = null, d + "" || null;
|
|
6600
6600
|
}
|
|
@@ -7661,15 +7661,15 @@ function entering() {
|
|
|
7661
7661
|
function axis(e, n) {
|
|
7662
7662
|
var t = [], s = null, a = null, r = 6, o = 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;
|
|
7663
7663
|
function f(m) {
|
|
7664
|
-
var p = s ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(r, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, S = (n.bandwidth ? center : number)(n.copy(), l), V = m.selection ? m.selection() : m, T = V.selectAll(".domain").data([null]), N = V.selectAll(".tick").data(p, n).order(), C = N.exit(),
|
|
7665
|
-
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), N = N.merge(
|
|
7664
|
+
var p = s ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = a ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(r, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, S = (n.bandwidth ? center : number)(n.copy(), l), V = m.selection ? m.selection() : m, T = V.selectAll(".domain").data([null]), N = V.selectAll(".tick").data(p, n).order(), C = N.exit(), F = N.enter().append("g").attr("class", "tick"), I = N.select("line"), w = N.select("text");
|
|
7665
|
+
T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), N = N.merge(F), I = I.merge(F.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), w = w.merge(F.append("text").attr("fill", "currentColor").attr(d, c * v).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), m !== V && (T = T.transition(m), N = N.transition(m), I = I.transition(m), w = w.transition(m), C = C.transition(m).attr("opacity", epsilon).attr("transform", function(M) {
|
|
7666
7666
|
return isFinite(M = S(M)) ? u(M + l) : this.getAttribute("transform");
|
|
7667
|
-
}),
|
|
7667
|
+
}), F.attr("opacity", epsilon).attr("transform", function(M) {
|
|
7668
7668
|
var E = this.parentNode.__axis;
|
|
7669
7669
|
return u((E && isFinite(E = E(M)) ? E : S(M)) + l);
|
|
7670
7670
|
})), C.remove(), T.attr("d", e === left || e === right ? o ? "M" + c * o + "," + _ + "H" + l + "V" + b + "H" + c * o : "M" + l + "," + _ + "V" + b : o ? "M" + _ + "," + c * o + "V" + l + "H" + b + "V" + c * o : "M" + _ + "," + l + "H" + b), N.attr("opacity", 1).attr("transform", function(M) {
|
|
7671
7671
|
return u(S(M) + l);
|
|
7672
|
-
}),
|
|
7672
|
+
}), I.attr(d + "2", c * r), w.attr(d, c * v).text(g), V.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), V.each(function() {
|
|
7673
7673
|
this.__axis = S;
|
|
7674
7674
|
});
|
|
7675
7675
|
}
|
|
@@ -8458,7 +8458,7 @@ const _hoisted_1$4$1 = ["stroke-dasharray"], _hoisted_2$3$1 = {
|
|
|
8458
8458
|
}, _hoisted_3$2$1 = ["x1", "y1", "x2", "y2"], _hoisted_4$2$1 = {
|
|
8459
8459
|
key: 1,
|
|
8460
8460
|
class: "grid-y"
|
|
8461
|
-
}, _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"], _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"], _hoisted_7$
|
|
8461
|
+
}, _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"], _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"], _hoisted_7$g = ["x1", "y1", "x2", "y2"];
|
|
8462
8462
|
function render$5(e, n, t, s, a, r) {
|
|
8463
8463
|
return e.data.length ? (openBlock(), createElementBlock("g", {
|
|
8464
8464
|
key: 0,
|
|
@@ -8510,7 +8510,7 @@ function render$5(e, n, t, s, a, r) {
|
|
|
8510
8510
|
y1: e.canvas.y,
|
|
8511
8511
|
x2: e.canvas.width - 1,
|
|
8512
8512
|
y2: e.canvas.height
|
|
8513
|
-
}, null, 8, _hoisted_7$
|
|
8513
|
+
}, null, 8, _hoisted_7$g)
|
|
8514
8514
|
])
|
|
8515
8515
|
], 8, _hoisted_1$4$1)) : createCommentVNode("v-if", !0);
|
|
8516
8516
|
}
|
|
@@ -10006,14 +10006,14 @@ function setValidations(e) {
|
|
|
10006
10006
|
config: m,
|
|
10007
10007
|
validationGroups: p
|
|
10008
10008
|
} = sortValidations(n), g = _objectSpread2$1(_objectSpread2$1({}, i), m), v = s ? computed$1(() => {
|
|
10009
|
-
const
|
|
10010
|
-
return
|
|
10009
|
+
const O = unref(t);
|
|
10010
|
+
return O ? unref(O[s]) : void 0;
|
|
10011
10011
|
}) : t, k = _objectSpread2$1({}, unref(c) || {}), _ = computed$1(() => {
|
|
10012
|
-
const
|
|
10013
|
-
return s ?
|
|
10012
|
+
const O = unref(c);
|
|
10013
|
+
return s ? O ? unref(O[s]) : void 0 : O;
|
|
10014
10014
|
}), b = createValidationResults(u, v, s, o, d, g, l, _, t), S = collectNestedValidationResults(f, v, d, o, g, l, _), V = {};
|
|
10015
|
-
p && Object.entries(p).forEach((
|
|
10016
|
-
let [H, U] =
|
|
10015
|
+
p && Object.entries(p).forEach((O) => {
|
|
10016
|
+
let [H, U] = O;
|
|
10017
10017
|
V[H] = {
|
|
10018
10018
|
$invalid: gatherBooleanGroupProperties(U, S, "$invalid"),
|
|
10019
10019
|
$error: gatherBooleanGroupProperties(U, S, "$error"),
|
|
@@ -10026,8 +10026,8 @@ function setValidations(e) {
|
|
|
10026
10026
|
$dirty: T,
|
|
10027
10027
|
$errors: N,
|
|
10028
10028
|
$invalid: C,
|
|
10029
|
-
$anyDirty:
|
|
10030
|
-
$error:
|
|
10029
|
+
$anyDirty: F,
|
|
10030
|
+
$error: I,
|
|
10031
10031
|
$pending: w,
|
|
10032
10032
|
$touch: M,
|
|
10033
10033
|
$reset: E,
|
|
@@ -10035,52 +10035,52 @@ function setValidations(e) {
|
|
|
10035
10035
|
$commit: $
|
|
10036
10036
|
} = createMetaFields(b, S, r), D = s ? computed$1({
|
|
10037
10037
|
get: () => unref(v),
|
|
10038
|
-
set: (
|
|
10038
|
+
set: (O) => {
|
|
10039
10039
|
T.value = !0;
|
|
10040
10040
|
const H = unref(t), U = unref(c);
|
|
10041
|
-
U && (U[s] = k[s]), isRef(H[s]) ? H[s].value =
|
|
10041
|
+
U && (U[s] = k[s]), isRef(H[s]) ? H[s].value = O : H[s] = O;
|
|
10042
10042
|
}
|
|
10043
10043
|
}) : null;
|
|
10044
10044
|
s && g.$autoDirty && watch(v, () => {
|
|
10045
10045
|
T.value || M();
|
|
10046
|
-
const
|
|
10047
|
-
|
|
10046
|
+
const O = unref(c);
|
|
10047
|
+
O && (O[s] = k[s]);
|
|
10048
10048
|
}, {
|
|
10049
10049
|
flush: "sync"
|
|
10050
10050
|
});
|
|
10051
|
-
async function
|
|
10052
|
-
return M(), g.$rewardEarly && ($(), await nextTick$1()), await nextTick$1(), new Promise((
|
|
10053
|
-
if (!w.value) return
|
|
10051
|
+
async function R() {
|
|
10052
|
+
return M(), g.$rewardEarly && ($(), await nextTick$1()), await nextTick$1(), new Promise((O) => {
|
|
10053
|
+
if (!w.value) return O(!C.value);
|
|
10054
10054
|
const H = watch(w, () => {
|
|
10055
|
-
|
|
10055
|
+
O(!C.value), H();
|
|
10056
10056
|
});
|
|
10057
10057
|
});
|
|
10058
10058
|
}
|
|
10059
|
-
function B(
|
|
10060
|
-
return (r.value || {})[
|
|
10059
|
+
function B(O) {
|
|
10060
|
+
return (r.value || {})[O];
|
|
10061
10061
|
}
|
|
10062
|
-
function
|
|
10063
|
-
isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((
|
|
10064
|
-
delete c[
|
|
10062
|
+
function P() {
|
|
10063
|
+
isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((O) => {
|
|
10064
|
+
delete c[O];
|
|
10065
10065
|
}) : Object.assign(c, k);
|
|
10066
10066
|
}
|
|
10067
10067
|
return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, b), {}, {
|
|
10068
10068
|
$model: D,
|
|
10069
10069
|
$dirty: T,
|
|
10070
|
-
$error:
|
|
10070
|
+
$error: I,
|
|
10071
10071
|
$errors: N,
|
|
10072
10072
|
$invalid: C,
|
|
10073
|
-
$anyDirty:
|
|
10073
|
+
$anyDirty: F,
|
|
10074
10074
|
$pending: w,
|
|
10075
10075
|
$touch: M,
|
|
10076
10076
|
$reset: E,
|
|
10077
10077
|
$path: d || ROOT_PATH,
|
|
10078
10078
|
$silentErrors: L,
|
|
10079
|
-
$validate:
|
|
10079
|
+
$validate: R,
|
|
10080
10080
|
$commit: $
|
|
10081
10081
|
}, r && {
|
|
10082
10082
|
$getResultsForChild: B,
|
|
10083
|
-
$clearExternalResults:
|
|
10083
|
+
$clearExternalResults: P,
|
|
10084
10084
|
$validationGroups: V
|
|
10085
10085
|
}), S));
|
|
10086
10086
|
}
|
|
@@ -13170,8 +13170,8 @@ function updateSize() {
|
|
|
13170
13170
|
}
|
|
13171
13171
|
function updateSlides() {
|
|
13172
13172
|
const e = this;
|
|
13173
|
-
function n(
|
|
13174
|
-
return parseFloat(
|
|
13173
|
+
function n(I, w) {
|
|
13174
|
+
return parseFloat(I.getPropertyValue(e.getDirectionLabel(w)) || 0);
|
|
13175
13175
|
}
|
|
13176
13176
|
const t = e.params, {
|
|
13177
13177
|
wrapperEl: s,
|
|
@@ -13189,44 +13189,44 @@ function updateSlides() {
|
|
|
13189
13189
|
let b = t.spaceBetween, S = -p, V = 0, T = 0;
|
|
13190
13190
|
if (typeof _ > "u")
|
|
13191
13191
|
return;
|
|
13192
|
-
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * _ : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - p - g, c.forEach((
|
|
13193
|
-
r ?
|
|
13192
|
+
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * _ : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - p - g, c.forEach((I) => {
|
|
13193
|
+
r ? I.style.marginLeft = "" : I.style.marginRight = "", I.style.marginBottom = "", I.style.marginTop = "";
|
|
13194
13194
|
}), t.centeredSlides && t.cssMode && (setCSSProperty(s, "--swiper-centered-offset-before", ""), setCSSProperty(s, "--swiper-centered-offset-after", "")), t.cssMode && (setCSSProperty(s, "--swiper-slides-offset-before", `${p}px`), setCSSProperty(s, "--swiper-slides-offset-after", `${g}px`));
|
|
13195
13195
|
const N = t.grid && t.grid.rows > 1 && e.grid;
|
|
13196
13196
|
N ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
|
|
13197
13197
|
let C;
|
|
13198
|
-
const
|
|
13199
|
-
for (let
|
|
13198
|
+
const F = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((I) => typeof t.breakpoints[I].slidesPerView < "u").length > 0;
|
|
13199
|
+
for (let I = 0; I < d; I += 1) {
|
|
13200
13200
|
C = 0;
|
|
13201
|
-
const w = c[
|
|
13202
|
-
if (!(w && (N && e.grid.updateSlide(
|
|
13201
|
+
const w = c[I];
|
|
13202
|
+
if (!(w && (N && e.grid.updateSlide(I, w, c), elementStyle(w, "display") === "none"))) {
|
|
13203
13203
|
if (i && t.slidesPerView === "auto")
|
|
13204
13204
|
t.virtual.slidesPerViewAutoSlideSize && (C = t.virtual.slidesPerViewAutoSlideSize), C && w && (t.roundLengths && (C = Math.floor(C)), w.style[e.getDirectionLabel("width")] = `${C}px`);
|
|
13205
13205
|
else if (t.slidesPerView === "auto") {
|
|
13206
|
-
|
|
13206
|
+
F && (w.style[e.getDirectionLabel("width")] = "");
|
|
13207
13207
|
const M = getComputedStyle(w), E = w.style.transform, L = w.style.webkitTransform;
|
|
13208
13208
|
if (E && (w.style.transform = "none"), L && (w.style.webkitTransform = "none"), t.roundLengths)
|
|
13209
13209
|
C = e.isHorizontal() ? elementOuterSize(w, "width") : elementOuterSize(w, "height");
|
|
13210
13210
|
else {
|
|
13211
|
-
const $ = n(M, "width"), D = n(M, "padding-left"),
|
|
13212
|
-
if (
|
|
13213
|
-
C = $ + B +
|
|
13211
|
+
const $ = n(M, "width"), D = n(M, "padding-left"), R = n(M, "padding-right"), B = n(M, "margin-left"), P = n(M, "margin-right"), O = M.getPropertyValue("box-sizing");
|
|
13212
|
+
if (O && O === "border-box")
|
|
13213
|
+
C = $ + B + P;
|
|
13214
13214
|
else {
|
|
13215
13215
|
const {
|
|
13216
13216
|
clientWidth: H,
|
|
13217
13217
|
offsetWidth: U
|
|
13218
13218
|
} = w;
|
|
13219
|
-
C = $ + D +
|
|
13219
|
+
C = $ + D + R + B + P + (U - H);
|
|
13220
13220
|
}
|
|
13221
13221
|
}
|
|
13222
13222
|
E && (w.style.transform = E), L && (w.style.webkitTransform = L), t.roundLengths && (C = Math.floor(C));
|
|
13223
13223
|
} else
|
|
13224
13224
|
C = (_ - (t.slidesPerView - 1) * b) / t.slidesPerView, t.roundLengths && (C = Math.floor(C)), w && (w.style[e.getDirectionLabel("width")] = `${C}px`);
|
|
13225
|
-
w && (w.swiperSlideSize = C), m.push(C), t.centeredSlides ? (S = S + C / 2 + V / 2 + b, V === 0 &&
|
|
13225
|
+
w && (w.swiperSlideSize = C), m.push(C), t.centeredSlides ? (S = S + C / 2 + V / 2 + b, V === 0 && I !== 0 && (S = S - _ / 2 - b), I === 0 && (S = S - _ / 2 - b), Math.abs(S) < 1 / 1e3 && (S = 0), t.roundLengths && (S = Math.floor(S)), T % t.slidesPerGroup === 0 && u.push(S), f.push(S)) : (t.roundLengths && (S = Math.floor(S)), (T - Math.min(e.params.slidesPerGroupSkip, T)) % e.params.slidesPerGroup === 0 && u.push(S), f.push(S), S = S + C + b), e.virtualSize += C + b, V = C, T += 1;
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
13228
13228
|
if (e.virtualSize = Math.max(e.virtualSize, _) + g, r && o && (t.effect === "slide" || t.effect === "coverflow") && (s.style.width = `${e.virtualSize + b}px`), t.setWrapperSize && (s.style[e.getDirectionLabel("width")] = `${e.virtualSize + b}px`), N && e.grid.updateWrapperSize(C, u), !t.centeredSlides) {
|
|
13229
|
-
const
|
|
13229
|
+
const I = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, w = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || I);
|
|
13230
13230
|
let M = u.length;
|
|
13231
13231
|
if (w) {
|
|
13232
13232
|
let L;
|
|
@@ -13247,35 +13247,35 @@ function updateSlides() {
|
|
|
13247
13247
|
u = E, Math.floor(e.virtualSize - _) - Math.floor(u[u.length - 1]) > 1 && (w || u.push(e.virtualSize - _));
|
|
13248
13248
|
}
|
|
13249
13249
|
if (i && t.loop) {
|
|
13250
|
-
const
|
|
13250
|
+
const I = m[0] + b;
|
|
13251
13251
|
if (t.slidesPerGroup > 1) {
|
|
13252
|
-
const w = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), M =
|
|
13252
|
+
const w = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), M = I * t.slidesPerGroup;
|
|
13253
13253
|
for (let E = 0; E < w; E += 1)
|
|
13254
13254
|
u.push(u[u.length - 1] + M);
|
|
13255
13255
|
}
|
|
13256
13256
|
for (let w = 0; w < e.virtual.slidesBefore + e.virtual.slidesAfter; w += 1)
|
|
13257
|
-
t.slidesPerGroup === 1 && u.push(u[u.length - 1] +
|
|
13257
|
+
t.slidesPerGroup === 1 && u.push(u[u.length - 1] + I), f.push(f[f.length - 1] + I), e.virtualSize += I;
|
|
13258
13258
|
}
|
|
13259
13259
|
if (u.length === 0 && (u = [0]), b !== 0) {
|
|
13260
|
-
const
|
|
13260
|
+
const I = e.isHorizontal() && r ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
13261
13261
|
c.filter((w, M) => !t.cssMode || t.loop ? !0 : M !== c.length - 1).forEach((w) => {
|
|
13262
|
-
w.style[
|
|
13262
|
+
w.style[I] = `${b}px`;
|
|
13263
13263
|
});
|
|
13264
13264
|
}
|
|
13265
13265
|
if (t.centeredSlides && t.centeredSlidesBounds) {
|
|
13266
|
-
let
|
|
13266
|
+
let I = 0;
|
|
13267
13267
|
m.forEach((M) => {
|
|
13268
|
-
|
|
13269
|
-
}),
|
|
13270
|
-
const w =
|
|
13268
|
+
I += M + (b || 0);
|
|
13269
|
+
}), I -= b;
|
|
13270
|
+
const w = I > _ ? I - _ : 0;
|
|
13271
13271
|
u = u.map((M) => M <= 0 ? -p : M > w ? w + g : M);
|
|
13272
13272
|
}
|
|
13273
13273
|
if (t.centerInsufficientSlides) {
|
|
13274
|
-
let
|
|
13274
|
+
let I = 0;
|
|
13275
13275
|
if (m.forEach((w) => {
|
|
13276
|
-
|
|
13277
|
-
}),
|
|
13278
|
-
const w = (_ -
|
|
13276
|
+
I += w + (b || 0);
|
|
13277
|
+
}), I -= b, I < _) {
|
|
13278
|
+
const w = (_ - I) / 2;
|
|
13279
13279
|
u.forEach((M, E) => {
|
|
13280
13280
|
u[E] = M - w;
|
|
13281
13281
|
}), f.forEach((M, E) => {
|
|
@@ -13290,12 +13290,12 @@ function updateSlides() {
|
|
|
13290
13290
|
slidesSizesGrid: m
|
|
13291
13291
|
}), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) {
|
|
13292
13292
|
setCSSProperty(s, "--swiper-centered-offset-before", `${-u[0]}px`), setCSSProperty(s, "--swiper-centered-offset-after", `${e.size / 2 - m[m.length - 1] / 2}px`);
|
|
13293
|
-
const
|
|
13294
|
-
e.snapGrid = e.snapGrid.map((M) => M +
|
|
13293
|
+
const I = -e.snapGrid[0], w = -e.slidesGrid[0];
|
|
13294
|
+
e.snapGrid = e.snapGrid.map((M) => M + I), e.slidesGrid = e.slidesGrid.map((M) => M + w);
|
|
13295
13295
|
}
|
|
13296
13296
|
if (d !== l && e.emit("slidesLengthChange"), u.length !== v && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), f.length !== k && e.emit("slidesGridLengthChange"), t.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !i && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) {
|
|
13297
|
-
const
|
|
13298
|
-
d <= t.maxBackfaceHiddenSlides ? w || e.el.classList.add(
|
|
13297
|
+
const I = `${t.containerModifierClass}backface-hidden`, w = e.el.classList.contains(I);
|
|
13298
|
+
d <= t.maxBackfaceHiddenSlides ? w || e.el.classList.add(I) : w && e.el.classList.remove(I);
|
|
13299
13299
|
}
|
|
13300
13300
|
}
|
|
13301
13301
|
function updateAutoHeight(e) {
|
|
@@ -13677,8 +13677,8 @@ function slideTo(e = 0, n, t = !0, s, a) {
|
|
|
13677
13677
|
const k = -l[v];
|
|
13678
13678
|
if (i.normalizeSlideIndex)
|
|
13679
13679
|
for (let N = 0; N < c.length; N += 1) {
|
|
13680
|
-
const C = -Math.floor(k * 100),
|
|
13681
|
-
typeof c[N + 1] < "u" ? C >=
|
|
13680
|
+
const C = -Math.floor(k * 100), F = Math.floor(c[N] * 100), I = Math.floor(c[N + 1] * 100);
|
|
13681
|
+
typeof c[N + 1] < "u" ? C >= F && C < I - (I - F) / 2 ? o = N : C >= F && C < I && (o = N + 1) : C >= F && (o = N);
|
|
13682
13682
|
}
|
|
13683
13683
|
if (r.initialized && o !== u && (!r.allowSlideNext && (f ? k > r.translate && k > r.minTranslate() : k < r.translate && k < r.minTranslate()) || !r.allowSlidePrev && k > r.translate && k > r.maxTranslate() && (u || 0) !== o))
|
|
13684
13684
|
return !1;
|
|
@@ -13949,30 +13949,30 @@ function loopFix({
|
|
|
13949
13949
|
V % S !== 0 && (V += S - V % S), V += m.loopAdditionalSlides, l.loopedSlides = V;
|
|
13950
13950
|
const T = l.grid && m.grid && m.grid.rows > 1;
|
|
13951
13951
|
c.length < b + V || l.params.effect === "cards" && c.length < b + V * 2 ? showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : T && m.grid.fill === "row" && showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
13952
|
-
const N = [], C = [],
|
|
13953
|
-
let w =
|
|
13952
|
+
const N = [], C = [], F = T ? Math.ceil(c.length / m.grid.rows) : c.length, I = r && F - k < b && !_;
|
|
13953
|
+
let w = I ? k : l.activeIndex;
|
|
13954
13954
|
typeof a > "u" ? a = l.getSlideIndex(c.find((B) => B.classList.contains(m.slideActiveClass))) : w = a;
|
|
13955
13955
|
const M = t === "next" || !t, E = t === "prev" || !t;
|
|
13956
13956
|
let L = 0, $ = 0;
|
|
13957
|
-
const
|
|
13958
|
-
if (
|
|
13959
|
-
L = Math.max(V -
|
|
13960
|
-
for (let B = 0; B < V -
|
|
13961
|
-
const
|
|
13957
|
+
const R = (T ? c[a].column : a) + (_ && typeof s > "u" ? -b / 2 + 0.5 : 0);
|
|
13958
|
+
if (R < V) {
|
|
13959
|
+
L = Math.max(V - R, S);
|
|
13960
|
+
for (let B = 0; B < V - R; B += 1) {
|
|
13961
|
+
const P = B - Math.floor(B / F) * F;
|
|
13962
13962
|
if (T) {
|
|
13963
|
-
const
|
|
13963
|
+
const O = F - P - 1;
|
|
13964
13964
|
for (let H = c.length - 1; H >= 0; H -= 1)
|
|
13965
|
-
c[H].column ===
|
|
13965
|
+
c[H].column === O && N.push(H);
|
|
13966
13966
|
} else
|
|
13967
|
-
N.push(
|
|
13967
|
+
N.push(F - P - 1);
|
|
13968
13968
|
}
|
|
13969
|
-
} else if (
|
|
13970
|
-
$ = Math.max(
|
|
13969
|
+
} else if (R + b > F - V) {
|
|
13970
|
+
$ = Math.max(R - (F - V * 2), S), I && ($ = Math.max($, b - F + k + 1));
|
|
13971
13971
|
for (let B = 0; B < $; B += 1) {
|
|
13972
|
-
const
|
|
13973
|
-
T ? c.forEach((
|
|
13974
|
-
|
|
13975
|
-
}) : C.push(
|
|
13972
|
+
const P = B - Math.floor(B / F) * F;
|
|
13973
|
+
T ? c.forEach((O, H) => {
|
|
13974
|
+
O.column === P && C.push(H);
|
|
13975
|
+
}) : C.push(P);
|
|
13976
13976
|
}
|
|
13977
13977
|
}
|
|
13978
13978
|
if (l.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
@@ -13981,21 +13981,21 @@ function loopFix({
|
|
|
13981
13981
|
c[B].swiperLoopMoveDOM = !0, f.prepend(c[B]), c[B].swiperLoopMoveDOM = !1;
|
|
13982
13982
|
}), M && C.forEach((B) => {
|
|
13983
13983
|
c[B].swiperLoopMoveDOM = !0, f.append(c[B]), c[B].swiperLoopMoveDOM = !1;
|
|
13984
|
-
}), l.recalcSlides(), m.slidesPerView === "auto" ? l.updateSlides() : T && (N.length > 0 && E || C.length > 0 && M) && l.slides.forEach((B,
|
|
13985
|
-
l.grid.updateSlide(
|
|
13984
|
+
}), l.recalcSlides(), m.slidesPerView === "auto" ? l.updateSlides() : T && (N.length > 0 && E || C.length > 0 && M) && l.slides.forEach((B, P) => {
|
|
13985
|
+
l.grid.updateSlide(P, B, l.slides);
|
|
13986
13986
|
}), m.watchSlidesProgress && l.updateSlidesOffset(), n) {
|
|
13987
13987
|
if (N.length > 0 && E) {
|
|
13988
13988
|
if (typeof e > "u") {
|
|
13989
|
-
const B = l.slidesGrid[w],
|
|
13990
|
-
i ? l.setTranslate(l.translate -
|
|
13989
|
+
const B = l.slidesGrid[w], O = l.slidesGrid[w + L] - B;
|
|
13990
|
+
i ? l.setTranslate(l.translate - O) : (l.slideTo(w + Math.ceil(L), 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - O, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - O));
|
|
13991
13991
|
} else if (s) {
|
|
13992
13992
|
const B = T ? N.length / m.grid.rows : N.length;
|
|
13993
13993
|
l.slideTo(l.activeIndex + B, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate;
|
|
13994
13994
|
}
|
|
13995
13995
|
} else if (C.length > 0 && M)
|
|
13996
13996
|
if (typeof e > "u") {
|
|
13997
|
-
const B = l.slidesGrid[w],
|
|
13998
|
-
i ? l.setTranslate(l.translate -
|
|
13997
|
+
const B = l.slidesGrid[w], O = l.slidesGrid[w - $] - B;
|
|
13998
|
+
i ? l.setTranslate(l.translate - O) : (l.slideTo(w - $, 0, !1, !0), s && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - O, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - O));
|
|
13999
13999
|
} else {
|
|
14000
14000
|
const B = T ? C.length / m.grid.rows : C.length;
|
|
14001
14001
|
l.slideTo(l.activeIndex - B, 0, !1, !0);
|
|
@@ -14009,10 +14009,10 @@ function loopFix({
|
|
|
14009
14009
|
activeSlideIndex: a,
|
|
14010
14010
|
byController: !0
|
|
14011
14011
|
};
|
|
14012
|
-
Array.isArray(l.controller.control) ? l.controller.control.forEach((
|
|
14013
|
-
!
|
|
14012
|
+
Array.isArray(l.controller.control) ? l.controller.control.forEach((P) => {
|
|
14013
|
+
!P.destroyed && P.params.loop && P.loopFix({
|
|
14014
14014
|
...B,
|
|
14015
|
-
slideTo:
|
|
14015
|
+
slideTo: P.params.slidesPerView === m.slidesPerView ? n : !1
|
|
14016
14016
|
});
|
|
14017
14017
|
}) : l.controller.control instanceof l.constructor && l.controller.control.params.loop && l.controller.control.loopFix({
|
|
14018
14018
|
...B,
|
|
@@ -14684,7 +14684,7 @@ const prototypes = {
|
|
|
14684
14684
|
checkOverflow: checkOverflow$1,
|
|
14685
14685
|
classes
|
|
14686
14686
|
}, extendedDefaults = {};
|
|
14687
|
-
let Swiper$1 = class
|
|
14687
|
+
let Swiper$1 = class se {
|
|
14688
14688
|
constructor(...n) {
|
|
14689
14689
|
let t, s;
|
|
14690
14690
|
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [t, s] = n, s || (s = {}), s = extend$1({}, s), t && !s.el && (s.el = t);
|
|
@@ -14695,7 +14695,7 @@ let Swiper$1 = class ne {
|
|
|
14695
14695
|
const d = extend$1({}, s, {
|
|
14696
14696
|
el: c
|
|
14697
14697
|
});
|
|
14698
|
-
l.push(new
|
|
14698
|
+
l.push(new se(d));
|
|
14699
14699
|
}), l;
|
|
14700
14700
|
}
|
|
14701
14701
|
const r = this;
|
|
@@ -14979,12 +14979,12 @@ let Swiper$1 = class ne {
|
|
|
14979
14979
|
return defaults;
|
|
14980
14980
|
}
|
|
14981
14981
|
static installModule(n) {
|
|
14982
|
-
|
|
14983
|
-
const t =
|
|
14982
|
+
se.prototype.__modules__ || (se.prototype.__modules__ = []);
|
|
14983
|
+
const t = se.prototype.__modules__;
|
|
14984
14984
|
typeof n == "function" && t.indexOf(n) < 0 && t.push(n);
|
|
14985
14985
|
}
|
|
14986
14986
|
static use(n) {
|
|
14987
|
-
return Array.isArray(n) ? (n.forEach((t) =>
|
|
14987
|
+
return Array.isArray(n) ? (n.forEach((t) => se.installModule(t)), se) : (se.installModule(n), se);
|
|
14988
14988
|
}
|
|
14989
14989
|
};
|
|
14990
14990
|
Object.keys(prototypes).forEach((e) => {
|
|
@@ -15167,8 +15167,8 @@ function updateSwiper({
|
|
|
15167
15167
|
if (isObject$1(c[C]) && isObject$1(t[C]))
|
|
15168
15168
|
Object.assign(c[C], t[C]), (C === "navigation" || C === "pagination" || C === "scrollbar") && "enabled" in t[C] && !t[C].enabled && N(C);
|
|
15169
15169
|
else {
|
|
15170
|
-
const
|
|
15171
|
-
(
|
|
15170
|
+
const F = t[C];
|
|
15171
|
+
(F === !0 || F === !1) && (C === "navigation" || C === "pagination" || C === "scrollbar") ? F === !1 && N(C) : c[C] = t[C];
|
|
15172
15172
|
}
|
|
15173
15173
|
}), l.includes("controller") && !v && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), s.includes("children") && n && m && c.virtual.enabled ? (m.slides = n, m.update(!0)) : s.includes("virtual") && m && c.virtual.enabled && (n && (m.slides = n), m.update(!0)), s.includes("children") && n && c.loop && (T = !0), g && p.init() && p.update(!0), v && (e.controller.control = c.controller.control), k && (e.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-pagination"), i.part.add("pagination"), e.el.appendChild(i)), i && (c.pagination.el = i), d.init(), d.render(), d.update()), _ && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (c.scrollbar.el = o), f.init(), f.updateSize(), f.setTranslate()), b && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), setInnerHTML(a, e.navigation.arrowSvg), a.part.add("button-next"), e.el.appendChild(a)), (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-prev"), setInnerHTML(r, e.navigation.arrowSvg), r.part.add("button-prev"), e.el.appendChild(r))), a && (c.navigation.nextEl = a), r && (c.navigation.prevEl = r), u.init(), u.update()), s.includes("allowSlideNext") && (e.allowSlideNext = t.allowSlideNext), s.includes("allowSlidePrev") && (e.allowSlidePrev = t.allowSlidePrev), s.includes("direction") && e.changeDirection(t.direction, !1), (S || T) && e.loopDestroy(), (V || T) && e.loopCreate(), e.update();
|
|
15174
15174
|
}
|
|
@@ -15782,7 +15782,7 @@ const Swiper = {
|
|
|
15782
15782
|
!l.value && d.value && (d.value.emitSlidesClasses(), l.value = !0);
|
|
15783
15783
|
const {
|
|
15784
15784
|
passedParams: N
|
|
15785
|
-
} = getParams(e, !1), C = getChangedParams(N, u.value, f.value, m.value, (
|
|
15785
|
+
} = getParams(e, !1), C = getChangedParams(N, u.value, f.value, m.value, (F) => F.props && F.props.key);
|
|
15786
15786
|
u.value = N, (C.length || i.value) && d.value && !d.value.destroyed && updateSwiper({
|
|
15787
15787
|
swiper: d.value,
|
|
15788
15788
|
slides: f.value,
|
|
@@ -15810,8 +15810,8 @@ const Swiper = {
|
|
|
15810
15810
|
d.value && !d.value.destroyed && d.value.destroy(!0, !1);
|
|
15811
15811
|
});
|
|
15812
15812
|
function T(N) {
|
|
15813
|
-
return _.virtual ? renderVirtual(d, N, o.value) : (N.forEach((C,
|
|
15814
|
-
C.props || (C.props = {}), C.props.swiperRef = d, C.props.swiperSlideIndex =
|
|
15813
|
+
return _.virtual ? renderVirtual(d, N, o.value) : (N.forEach((C, F) => {
|
|
15814
|
+
C.props || (C.props = {}), C.props.swiperRef = d, C.props.swiperSlideIndex = F;
|
|
15815
15815
|
}), N);
|
|
15816
15816
|
}
|
|
15817
15817
|
return () => {
|
|
@@ -16096,8 +16096,8 @@ function Scrollbar({
|
|
|
16096
16096
|
dragEl: E,
|
|
16097
16097
|
el: L
|
|
16098
16098
|
} = w, $ = e.params.scrollbar, D = e.params.loop ? e.progressLoop : e.progress;
|
|
16099
|
-
let
|
|
16100
|
-
M ? (B = -B, B > 0 ? (
|
|
16099
|
+
let R = c, B = (d - c) * D;
|
|
16100
|
+
M ? (B = -B, B > 0 ? (R = c - B, B = 0) : -B + c > d && (R = d + B)) : B < 0 ? (R = c + B, B = 0) : B + c > d && (R = d - B), e.isHorizontal() ? (E.style.transform = `translate3d(${B}px, 0, 0)`, E.style.width = `${R}px`) : (E.style.transform = `translate3d(0px, ${B}px, 0)`, E.style.height = `${R}px`), $.hide && (clearTimeout(o), L.style.opacity = 1, o = setTimeout(() => {
|
|
16101
16101
|
L.style.opacity = 0, L.style.transitionDuration = "400ms";
|
|
16102
16102
|
}, 1e3));
|
|
16103
16103
|
}
|
|
@@ -16169,13 +16169,13 @@ function Scrollbar({
|
|
|
16169
16169
|
const $ = L, D = E.passiveListeners ? {
|
|
16170
16170
|
passive: !1,
|
|
16171
16171
|
capture: !1
|
|
16172
|
-
} : !1,
|
|
16172
|
+
} : !1, R = E.passiveListeners ? {
|
|
16173
16173
|
passive: !0,
|
|
16174
16174
|
capture: !1
|
|
16175
16175
|
} : !1;
|
|
16176
16176
|
if (!$) return;
|
|
16177
16177
|
const B = w === "on" ? "addEventListener" : "removeEventListener";
|
|
16178
|
-
$[B]("pointerdown", k, D), a[B]("pointermove", _, D), a[B]("pointerup", b,
|
|
16178
|
+
$[B]("pointerdown", k, D), a[B]("pointermove", _, D), a[B]("pointerup", b, R);
|
|
16179
16179
|
}
|
|
16180
16180
|
function V() {
|
|
16181
16181
|
!e.params.scrollbar.el || !e.scrollbar.el || S("on");
|
|
@@ -16218,7 +16218,7 @@ function Scrollbar({
|
|
|
16218
16218
|
E.classList.remove(w.horizontalClass, w.verticalClass), E.classList.add(e.isHorizontal() ? w.horizontalClass : w.verticalClass);
|
|
16219
16219
|
});
|
|
16220
16220
|
}), t("init", () => {
|
|
16221
|
-
e.params.scrollbar.enabled === !1 ?
|
|
16221
|
+
e.params.scrollbar.enabled === !1 ? I() : (N(), p(), f());
|
|
16222
16222
|
}), t("update resize observerUpdate lock unlock changeDirection", () => {
|
|
16223
16223
|
p();
|
|
16224
16224
|
}), t("setTranslate", () => {
|
|
@@ -16233,14 +16233,14 @@ function Scrollbar({
|
|
|
16233
16233
|
}), t("destroy", () => {
|
|
16234
16234
|
C();
|
|
16235
16235
|
});
|
|
16236
|
-
const
|
|
16236
|
+
const F = () => {
|
|
16237
16237
|
e.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), N(), p(), f();
|
|
16238
|
-
},
|
|
16238
|
+
}, I = () => {
|
|
16239
16239
|
e.el.classList.add(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...classesToTokens(e.params.scrollbar.scrollbarDisabledClass)), C();
|
|
16240
16240
|
};
|
|
16241
16241
|
Object.assign(e.scrollbar, {
|
|
16242
|
-
enable:
|
|
16243
|
-
disable:
|
|
16242
|
+
enable: F,
|
|
16243
|
+
disable: I,
|
|
16244
16244
|
updateSize: p,
|
|
16245
16245
|
setTranslate: f,
|
|
16246
16246
|
init: N,
|
|
@@ -16294,28 +16294,28 @@ function A11y({
|
|
|
16294
16294
|
});
|
|
16295
16295
|
}
|
|
16296
16296
|
function u($, D) {
|
|
16297
|
-
$ = makeElementsArray($), $.forEach((
|
|
16298
|
-
|
|
16297
|
+
$ = makeElementsArray($), $.forEach((R) => {
|
|
16298
|
+
R.setAttribute("role", D);
|
|
16299
16299
|
});
|
|
16300
16300
|
}
|
|
16301
16301
|
function f($, D) {
|
|
16302
|
-
$ = makeElementsArray($), $.forEach((
|
|
16303
|
-
|
|
16302
|
+
$ = makeElementsArray($), $.forEach((R) => {
|
|
16303
|
+
R.setAttribute("aria-roledescription", D);
|
|
16304
16304
|
});
|
|
16305
16305
|
}
|
|
16306
16306
|
function m($, D) {
|
|
16307
|
-
$ = makeElementsArray($), $.forEach((
|
|
16308
|
-
|
|
16307
|
+
$ = makeElementsArray($), $.forEach((R) => {
|
|
16308
|
+
R.setAttribute("aria-label", D);
|
|
16309
16309
|
});
|
|
16310
16310
|
}
|
|
16311
16311
|
function p($, D) {
|
|
16312
|
-
$ = makeElementsArray($), $.forEach((
|
|
16313
|
-
|
|
16312
|
+
$ = makeElementsArray($), $.forEach((R) => {
|
|
16313
|
+
R.setAttribute("id", D);
|
|
16314
16314
|
});
|
|
16315
16315
|
}
|
|
16316
16316
|
function g($, D) {
|
|
16317
|
-
$ = makeElementsArray($), $.forEach((
|
|
16318
|
-
|
|
16317
|
+
$ = makeElementsArray($), $.forEach((R) => {
|
|
16318
|
+
R.setAttribute("aria-live", D);
|
|
16319
16319
|
});
|
|
16320
16320
|
}
|
|
16321
16321
|
function v($) {
|
|
@@ -16330,13 +16330,13 @@ function A11y({
|
|
|
16330
16330
|
}
|
|
16331
16331
|
function _($) {
|
|
16332
16332
|
if ($.keyCode !== 13 && $.keyCode !== 32) return;
|
|
16333
|
-
const D = e.params.a11y,
|
|
16334
|
-
if (!(e.pagination && e.pagination.el && (
|
|
16333
|
+
const D = e.params.a11y, R = $.target;
|
|
16334
|
+
if (!(e.pagination && e.pagination.el && (R === e.pagination.el || e.pagination.el.contains($.target)) && !$.target.matches(classesToSelector(e.params.pagination.bulletClass)))) {
|
|
16335
16335
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
16336
16336
|
const B = makeElementsArray(e.navigation.prevEl);
|
|
16337
|
-
makeElementsArray(e.navigation.nextEl).includes(
|
|
16337
|
+
makeElementsArray(e.navigation.nextEl).includes(R) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? i(D.lastSlideMessage) : i(D.nextSlideMessage)), B.includes(R) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? i(D.firstSlideMessage) : i(D.prevSlideMessage));
|
|
16338
16338
|
}
|
|
16339
|
-
e.pagination &&
|
|
16339
|
+
e.pagination && R.matches(classesToSelector(e.params.pagination.bulletClass)) && R.click();
|
|
16340
16340
|
}
|
|
16341
16341
|
}
|
|
16342
16342
|
function b() {
|
|
@@ -16359,53 +16359,53 @@ function A11y({
|
|
|
16359
16359
|
e.params.pagination.clickable && (c(D), e.params.pagination.renderBullet || (u(D, "button"), m(D, $.paginationBulletMessage.replace(/\{\{index\}\}/, elementIndex(D) + 1)))), D.matches(classesToSelector(e.params.pagination.bulletActiveClass)) ? D.setAttribute("aria-current", "true") : D.removeAttribute("aria-current");
|
|
16360
16360
|
});
|
|
16361
16361
|
}
|
|
16362
|
-
const N = ($, D,
|
|
16363
|
-
c($), $.tagName !== "BUTTON" && (u($, "button"), $.addEventListener("keydown", _)), m($,
|
|
16362
|
+
const N = ($, D, R) => {
|
|
16363
|
+
c($), $.tagName !== "BUTTON" && (u($, "button"), $.addEventListener("keydown", _)), m($, R);
|
|
16364
16364
|
}, C = ($) => {
|
|
16365
16365
|
r && r !== $.target && !r.contains($.target) && (a = !0), e.a11y.clicked = !0;
|
|
16366
|
-
},
|
|
16366
|
+
}, F = () => {
|
|
16367
16367
|
a = !1, requestAnimationFrame(() => {
|
|
16368
16368
|
requestAnimationFrame(() => {
|
|
16369
16369
|
e.destroyed || (e.a11y.clicked = !1);
|
|
16370
16370
|
});
|
|
16371
16371
|
});
|
|
16372
|
-
},
|
|
16372
|
+
}, I = ($) => {
|
|
16373
16373
|
o = (/* @__PURE__ */ new Date()).getTime();
|
|
16374
16374
|
}, w = ($) => {
|
|
16375
16375
|
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - o < 100) return;
|
|
16376
16376
|
const D = $.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
16377
16377
|
if (!D || !e.slides.includes(D)) return;
|
|
16378
16378
|
r = D;
|
|
16379
|
-
const
|
|
16380
|
-
B ||
|
|
16381
|
-
a || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"))), 0) :
|
|
16379
|
+
const R = e.virtual && e.params.virtual.enabled, B = (R ? parseInt(D.getAttribute("data-swiper-slide-index"), 10) : e.slides.indexOf(D)) === e.activeIndex, P = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(D);
|
|
16380
|
+
B || P || $.sourceCapabilities && $.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
16381
|
+
a || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"))), 0) : R ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index"), 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(D)), 0), a = !1);
|
|
16382
16382
|
}));
|
|
16383
16383
|
}, M = () => {
|
|
16384
16384
|
const $ = e.params.a11y;
|
|
16385
16385
|
$.itemRoleDescriptionMessage && f(e.slides, $.itemRoleDescriptionMessage), $.slideRole && u(e.slides, $.slideRole);
|
|
16386
16386
|
const D = e.slides.length;
|
|
16387
|
-
$.slideLabelMessage && e.slides.forEach((
|
|
16388
|
-
const
|
|
16389
|
-
m(
|
|
16387
|
+
$.slideLabelMessage && e.slides.forEach((R, B) => {
|
|
16388
|
+
const P = e.params.loop ? parseInt(R.getAttribute("data-swiper-slide-index"), 10) : B, O = $.slideLabelMessage.replace(/\{\{index\}\}/, P + 1).replace(/\{\{slidesLength\}\}/, D);
|
|
16389
|
+
m(R, O);
|
|
16390
16390
|
});
|
|
16391
16391
|
}, E = () => {
|
|
16392
16392
|
const $ = e.params.a11y;
|
|
16393
16393
|
e.el.append(s);
|
|
16394
16394
|
const D = e.el;
|
|
16395
16395
|
$.containerRoleDescriptionMessage && f(D, $.containerRoleDescriptionMessage), $.containerMessage && m(D, $.containerMessage), $.containerRole && u(D, $.containerRole);
|
|
16396
|
-
const
|
|
16397
|
-
if (p(
|
|
16396
|
+
const R = e.wrapperEl, B = $.id || R.getAttribute("id") || `swiper-wrapper-${l(16)}`;
|
|
16397
|
+
if (p(R, B), $.wrapperLiveRegion) {
|
|
16398
16398
|
const U = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
16399
|
-
g(
|
|
16399
|
+
g(R, U);
|
|
16400
16400
|
}
|
|
16401
16401
|
M();
|
|
16402
16402
|
let {
|
|
16403
|
-
nextEl:
|
|
16404
|
-
prevEl:
|
|
16403
|
+
nextEl: P,
|
|
16404
|
+
prevEl: O
|
|
16405
16405
|
} = e.navigation ? e.navigation : {};
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
}), getDocument().addEventListener("visibilitychange",
|
|
16406
|
+
P = makeElementsArray(P), O = makeElementsArray(O), P && P.forEach((U) => N(U, B, $.nextSlideMessage)), O && O.forEach((U) => N(U, B, $.prevSlideMessage)), V() && makeElementsArray(e.pagination.el).forEach((Q) => {
|
|
16407
|
+
Q.addEventListener("keydown", _);
|
|
16408
|
+
}), getDocument().addEventListener("visibilitychange", I), e.el.addEventListener("focus", w, !0), e.el.addEventListener("pointerdown", C, !0), e.el.addEventListener("pointerup", F, !0);
|
|
16409
16409
|
};
|
|
16410
16410
|
function L() {
|
|
16411
16411
|
s && s.remove();
|
|
@@ -16413,9 +16413,9 @@ function A11y({
|
|
|
16413
16413
|
nextEl: $,
|
|
16414
16414
|
prevEl: D
|
|
16415
16415
|
} = e.navigation ? e.navigation : {};
|
|
16416
|
-
$ = makeElementsArray($), D = makeElementsArray(D), $ && $.forEach((B) => B.removeEventListener("keydown", _)), D && D.forEach((B) => B.removeEventListener("keydown", _)), V() && makeElementsArray(e.pagination.el).forEach((
|
|
16417
|
-
|
|
16418
|
-
}), getDocument().removeEventListener("visibilitychange",
|
|
16416
|
+
$ = makeElementsArray($), D = makeElementsArray(D), $ && $.forEach((B) => B.removeEventListener("keydown", _)), D && D.forEach((B) => B.removeEventListener("keydown", _)), V() && makeElementsArray(e.pagination.el).forEach((P) => {
|
|
16417
|
+
P.removeEventListener("keydown", _);
|
|
16418
|
+
}), getDocument().removeEventListener("visibilitychange", I), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", w, !0), e.el.removeEventListener("pointerdown", C, !0), e.el.removeEventListener("pointerup", F, !0));
|
|
16419
16419
|
}
|
|
16420
16420
|
t("beforeInit", () => {
|
|
16421
16421
|
s = createElement("span", e.params.a11y.notificationClass), s.setAttribute("aria-live", "assertive"), s.setAttribute("aria-atomic", "true");
|
|
@@ -16593,6 +16593,25 @@ const _sfc_main$1T = {
|
|
|
16593
16593
|
clearTimeout(this._interactionTimer), this._interactionTimer = setTimeout(() => {
|
|
16594
16594
|
this.isInteracting = !1;
|
|
16595
16595
|
}, 400);
|
|
16596
|
+
},
|
|
16597
|
+
/**
|
|
16598
|
+
* Prevents Safari focus loss bug when navigation buttons become disabled
|
|
16599
|
+
*/
|
|
16600
|
+
handleSlideChange(e) {
|
|
16601
|
+
const n = `.vs-content-swiper-next-${this.instanceId}`, t = `.vs-content-swiper-prev-${this.instanceId}`;
|
|
16602
|
+
if (e.isEnd) {
|
|
16603
|
+
const s = this.$el.querySelector(n);
|
|
16604
|
+
if (s && (document.activeElement === s || s.contains(document.activeElement))) {
|
|
16605
|
+
const a = this.$el.querySelector(t);
|
|
16606
|
+
a == null || a.focus();
|
|
16607
|
+
}
|
|
16608
|
+
} else if (e.isBeginning) {
|
|
16609
|
+
const s = this.$el.querySelector(t);
|
|
16610
|
+
if (s && (document.activeElement === s || s.contains(document.activeElement))) {
|
|
16611
|
+
const a = this.$el.querySelector(n);
|
|
16612
|
+
a == null || a.focus();
|
|
16613
|
+
}
|
|
16614
|
+
}
|
|
16596
16615
|
}
|
|
16597
16616
|
}
|
|
16598
16617
|
}, _hoisted_1$1p = ["id"], _hoisted_2$Z = { class: "vs-content-swiper__inner" }, _hoisted_3$M = { class: "vs-content-swiper__header" }, _hoisted_4$x = { class: "vs-content-swiper__controls" };
|
|
@@ -16643,13 +16662,14 @@ function _sfc_render$1C(e, n, t, s, a, r) {
|
|
|
16643
16662
|
onTouchEnd: r.endInteraction,
|
|
16644
16663
|
onSliderMove: r.startInteraction,
|
|
16645
16664
|
onSlideChangeTransitionStart: r.startInteraction,
|
|
16646
|
-
onSlideChangeTransitionEnd: r.endInteraction
|
|
16665
|
+
onSlideChangeTransitionEnd: r.endInteraction,
|
|
16666
|
+
onSlideChange: r.handleSlideChange
|
|
16647
16667
|
}, {
|
|
16648
16668
|
default: withCtx(() => [
|
|
16649
16669
|
renderSlot(e.$slots, "default")
|
|
16650
16670
|
]),
|
|
16651
16671
|
_: 3
|
|
16652
|
-
}, 8, ["modules", "navigation", "scrollbar", "breakpoints", "a11y", "onTouchStart", "onTouchEnd", "onSliderMove", "onSlideChangeTransitionStart", "onSlideChangeTransitionEnd"])
|
|
16672
|
+
}, 8, ["modules", "navigation", "scrollbar", "breakpoints", "a11y", "onTouchStart", "onTouchEnd", "onSliderMove", "onSlideChangeTransitionStart", "onSlideChangeTransitionEnd", "onSlideChange"])
|
|
16653
16673
|
])
|
|
16654
16674
|
], 10, _hoisted_1$1p);
|
|
16655
16675
|
}
|
|
@@ -18997,8 +19017,8 @@ function setup(e) {
|
|
|
18997
19017
|
S++;
|
|
18998
19018
|
const C = t.formatters[N];
|
|
18999
19019
|
if (typeof C == "function") {
|
|
19000
|
-
const
|
|
19001
|
-
T = C.call(k,
|
|
19020
|
+
const F = v[S];
|
|
19021
|
+
T = C.call(k, F), v.splice(S, 1), S--;
|
|
19002
19022
|
}
|
|
19003
19023
|
return T;
|
|
19004
19024
|
}), t.formatArgs.call(k, v), (k.log || t.log).apply(k, v);
|
|
@@ -19280,10 +19300,10 @@ var functionNamesExports = functionNames.exports;
|
|
|
19280
19300
|
Array.isArray(b.acceptableStates) && !b.acceptableStates.includes(S) ? new Promise((T) => {
|
|
19281
19301
|
const N = () => {
|
|
19282
19302
|
const C = _.getPlayerState();
|
|
19283
|
-
let
|
|
19284
|
-
typeof b.timeout == "number" && (
|
|
19303
|
+
let F;
|
|
19304
|
+
typeof b.timeout == "number" && (F = setTimeout(() => {
|
|
19285
19305
|
_.removeEventListener("onStateChange", N), T();
|
|
19286
|
-
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange", N), clearTimeout(
|
|
19306
|
+
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange", N), clearTimeout(F), T());
|
|
19287
19307
|
};
|
|
19288
19308
|
_.addEventListener("onStateChange", N);
|
|
19289
19309
|
}).then(() => V) : V;
|
|
@@ -20479,7 +20499,7 @@ const VsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_rende
|
|
|
20479
20499
|
}, _hoisted_3$D = {
|
|
20480
20500
|
key: 2,
|
|
20481
20501
|
class: "vs-hero-section__divider"
|
|
20482
|
-
}, _hoisted_4$t = { class: "vs-hero-section__text" }, _hoisted_5$l = ["innerHTML"], _hoisted_6$h = { class: "mb-0" }, _hoisted_7$
|
|
20502
|
+
}, _hoisted_4$t = { class: "vs-hero-section__text" }, _hoisted_5$l = ["innerHTML"], _hoisted_6$h = { class: "mb-0" }, _hoisted_7$f = {
|
|
20483
20503
|
key: 1,
|
|
20484
20504
|
class: "vs-hero-section__article-details",
|
|
20485
20505
|
"data-test": "vs-hero-section__article-details"
|
|
@@ -20541,7 +20561,7 @@ function _sfc_render$19(e, n, t, s, a, r) {
|
|
|
20541
20561
|
]),
|
|
20542
20562
|
_: 1
|
|
20543
20563
|
})) : createCommentVNode("", !0),
|
|
20544
|
-
e.$slots["hero-section-article-details"] ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
20564
|
+
e.$slots["hero-section-article-details"] ? (openBlock(), createElementBlock("div", _hoisted_7$f, [
|
|
20545
20565
|
renderSlot(e.$slots, "hero-section-article-details")
|
|
20546
20566
|
])) : createCommentVNode("", !0)
|
|
20547
20567
|
])
|
|
@@ -20824,7 +20844,7 @@ const IconListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_
|
|
|
20824
20844
|
}, _hoisted_4$r = { class: "vs-video-caption__title" }, _hoisted_5$k = { class: "vs-video-caption__duration" }, _hoisted_6$g = {
|
|
20825
20845
|
key: 1,
|
|
20826
20846
|
class: "vs-video-caption vs-video-caption--warning"
|
|
20827
|
-
}, _hoisted_7$
|
|
20847
|
+
}, _hoisted_7$e = {
|
|
20828
20848
|
key: 2,
|
|
20829
20849
|
class: "vs-video-caption vs-video-caption--no-js vs-video-caption--warning",
|
|
20830
20850
|
"data-test": "video-caption-nojs"
|
|
@@ -20888,7 +20908,7 @@ function _sfc_render$14(e, n, t, s, a, r) {
|
|
|
20888
20908
|
_: 1
|
|
20889
20909
|
})
|
|
20890
20910
|
])) : createCommentVNode("", !0),
|
|
20891
|
-
r.noJsMessage ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
20911
|
+
r.noJsMessage ? (openBlock(), createElementBlock("div", _hoisted_7$e, [
|
|
20892
20912
|
createVNode(l, { size: "small" }, {
|
|
20893
20913
|
default: withCtx(() => [
|
|
20894
20914
|
createTextVNode(toDisplayString(r.noJsMessage), 1)
|
|
@@ -21737,7 +21757,7 @@ const Itinerary = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_ren
|
|
|
21737
21757
|
show: this.defaultShow
|
|
21738
21758
|
};
|
|
21739
21759
|
}
|
|
21740
|
-
}, _hoisted_1$V = { class: "vs-itinerary-day" }, _hoisted_2$G = { class: "vs-itinerary-day__header" }, _hoisted_3$w = { class: "vs-itinerary-day__title" }, _hoisted_4$o = { class: "vs-itinerary-day__sub-heading" }, _hoisted_5$j = ["id"], _hoisted_6$f = { class: "vs-itinerary-day__intro-content" }, _hoisted_7$
|
|
21760
|
+
}, _hoisted_1$V = { class: "vs-itinerary-day" }, _hoisted_2$G = { class: "vs-itinerary-day__header" }, _hoisted_3$w = { class: "vs-itinerary-day__title" }, _hoisted_4$o = { class: "vs-itinerary-day__sub-heading" }, _hoisted_5$j = ["id"], _hoisted_6$f = { class: "vs-itinerary-day__intro-content" }, _hoisted_7$d = { class: "list-unstyled" };
|
|
21741
21761
|
function _sfc_render$$(e, n, t, s, a, r) {
|
|
21742
21762
|
const o = resolveComponent("VsIcon"), i = resolveComponent("VsAccordionItem"), l = resolveComponent("VsCol"), c = resolveComponent("VsRow"), d = resolveComponent("VsContainer");
|
|
21743
21763
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
@@ -21785,7 +21805,7 @@ function _sfc_render$$(e, n, t, s, a, r) {
|
|
|
21785
21805
|
renderSlot(e.$slots, "day-transport"),
|
|
21786
21806
|
renderSlot(e.$slots, "day-introduction")
|
|
21787
21807
|
]),
|
|
21788
|
-
createElementVNode("ul", _hoisted_7$
|
|
21808
|
+
createElementVNode("ul", _hoisted_7$d, [
|
|
21789
21809
|
renderSlot(e.$slots, "stops")
|
|
21790
21810
|
])
|
|
21791
21811
|
], 8, _hoisted_5$j)
|
|
@@ -21849,7 +21869,7 @@ const ItineraryDay = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_
|
|
|
21849
21869
|
}, _hoisted_6$e = {
|
|
21850
21870
|
class: "vs-itinerary-stop__details-container",
|
|
21851
21871
|
"data-chromatic": "ignore"
|
|
21852
|
-
}, _hoisted_7$
|
|
21872
|
+
}, _hoisted_7$c = {
|
|
21853
21873
|
key: 0,
|
|
21854
21874
|
class: "vs-itinerary-stop__address",
|
|
21855
21875
|
"data-test": "vs-itinerary-stop-address"
|
|
@@ -21898,7 +21918,7 @@ function _sfc_render$_(e, n, t, s, a, r) {
|
|
|
21898
21918
|
renderSlot(e.$slots, "stop-time-to-explore"),
|
|
21899
21919
|
renderSlot(e.$slots, "stop-tips"),
|
|
21900
21920
|
createElementVNode("div", _hoisted_6$e, [
|
|
21901
|
-
e.$slots["stop-address"] ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
21921
|
+
e.$slots["stop-address"] ? (openBlock(), createElementBlock("div", _hoisted_7$c, [
|
|
21902
21922
|
renderSlot(e.$slots, "stop-address")
|
|
21903
21923
|
])) : createCommentVNode("", !0),
|
|
21904
21924
|
renderSlot(e.$slots, "stop-info")
|
|
@@ -23611,7 +23631,7 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["render", _sfc_re
|
|
|
23611
23631
|
}, _hoisted_2$x = {
|
|
23612
23632
|
class: "vs-form__main-heading vs-heading vs-heading--heading-l float-none",
|
|
23613
23633
|
"data-test": "vs-form__main-heading"
|
|
23614
|
-
}, _hoisted_3$p = { key: 0 }, _hoisted_4$i = { "aria-live": "assertive" }, _hoisted_5$f = { key: 0 }, _hoisted_6$d = ["innerHTML"], _hoisted_7$
|
|
23634
|
+
}, _hoisted_3$p = { key: 0 }, _hoisted_4$i = { "aria-live": "assertive" }, _hoisted_5$f = { key: 0 }, _hoisted_6$d = ["innerHTML"], _hoisted_7$b = {
|
|
23615
23635
|
key: 2,
|
|
23616
23636
|
class: "mt-200"
|
|
23617
23637
|
};
|
|
@@ -23759,7 +23779,7 @@ function _sfc_render$Q(e, n, t, s, a, r) {
|
|
|
23759
23779
|
innerHTML: r.getTranslatedContent("successContent")
|
|
23760
23780
|
}, null, 8, _hoisted_6$d)
|
|
23761
23781
|
], 64)) : createCommentVNode("", !0),
|
|
23762
|
-
a.submitError ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
23782
|
+
a.submitError ? (openBlock(), createElementBlock("p", _hoisted_7$b, [
|
|
23763
23783
|
renderSlot(e.$slots, "submit-error")
|
|
23764
23784
|
])) : createCommentVNode("", !0)
|
|
23765
23785
|
])
|
|
@@ -26715,7 +26735,7 @@ const PageIntro = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_rend
|
|
|
26715
26735
|
}, _hoisted_2$m = {
|
|
26716
26736
|
"aria-live": "polite",
|
|
26717
26737
|
class: "vs-pagination__count"
|
|
26718
|
-
}, _hoisted_3$g = { class: "vs-pagination__controls" }, _hoisted_4$d = { class: "vs-pagination__prev" }, _hoisted_5$c = { class: "vs-pagination__list" }, _hoisted_6$c = { key: 0 }, _hoisted_7$
|
|
26738
|
+
}, _hoisted_3$g = { class: "vs-pagination__controls" }, _hoisted_4$d = { class: "vs-pagination__prev" }, _hoisted_5$c = { class: "vs-pagination__list" }, _hoisted_6$c = { key: 0 }, _hoisted_7$a = { class: "vs-pagination__next" }, limit = 7, _sfc_main$D = {
|
|
26719
26739
|
__name: "VsPagination",
|
|
26720
26740
|
props: /* @__PURE__ */ mergeModels({
|
|
26721
26741
|
/**
|
|
@@ -26833,7 +26853,7 @@ const PageIntro = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_rend
|
|
|
26833
26853
|
}, 1032, ["aria-current", "aria-label", "onClick"]))
|
|
26834
26854
|
], 2))), 128))
|
|
26835
26855
|
]),
|
|
26836
|
-
createElementVNode("div", _hoisted_7$
|
|
26856
|
+
createElementVNode("div", _hoisted_7$a, [
|
|
26837
26857
|
createVNode(VsButton, {
|
|
26838
26858
|
disabled: a.value === t.numberOfPages,
|
|
26839
26859
|
icon: "fa-regular fa-arrow-right",
|
|
@@ -27463,10 +27483,10 @@ const _hoisted_1$r = {
|
|
|
27463
27483
|
size: "sm"
|
|
27464
27484
|
}),
|
|
27465
27485
|
withDirectives(createElementVNode("ul", mergeProps(_(), toHandlers(b(), !0), { class: "vs-autocomplete__list" }), [
|
|
27466
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (C,
|
|
27486
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (C, F) => (openBlock(), createElementBlock("li", mergeProps({
|
|
27467
27487
|
key: C.id
|
|
27468
|
-
}, { ref_for: !0 }, S({ item: C, index:
|
|
27469
|
-
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v ===
|
|
27488
|
+
}, { ref_for: !0 }, S({ item: C, index: F }), toHandlers(V({ item: C, index: F }), !0), {
|
|
27489
|
+
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v === F }]
|
|
27470
27490
|
}), toDisplayString(C[c.value]), 17))), 128))
|
|
27471
27491
|
], 16), [
|
|
27472
27492
|
[vShow, k]
|
|
@@ -27525,7 +27545,7 @@ const _hoisted_1$r = {
|
|
|
27525
27545
|
type: "hidden",
|
|
27526
27546
|
name: "refine-date",
|
|
27527
27547
|
value: "on"
|
|
27528
|
-
}, _hoisted_7$
|
|
27548
|
+
}, _hoisted_7$9 = ["value"], _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
27529
27549
|
__name: "DateRange",
|
|
27530
27550
|
props: {
|
|
27531
27551
|
startLabel: {
|
|
@@ -27638,7 +27658,7 @@ const _hoisted_1$r = {
|
|
|
27638
27658
|
type: "hidden",
|
|
27639
27659
|
name: "nights",
|
|
27640
27660
|
value: i.value
|
|
27641
|
-
}, null, 8, _hoisted_7$
|
|
27661
|
+
}, null, 8, _hoisted_7$9)
|
|
27642
27662
|
])
|
|
27643
27663
|
])
|
|
27644
27664
|
]));
|
|
@@ -27649,7 +27669,7 @@ const _hoisted_1$r = {
|
|
|
27649
27669
|
}, _hoisted_2$i = {
|
|
27650
27670
|
key: 0,
|
|
27651
27671
|
class: "container"
|
|
27652
|
-
}, _hoisted_3$c = { class: "row" }, _hoisted_4$a = { class: "col-12" }, _hoisted_5$a = ["action"], _hoisted_6$a = { class: "form-group product-search__type mb-100" }, _hoisted_7$
|
|
27672
|
+
}, _hoisted_3$c = { class: "row" }, _hoisted_4$a = { class: "col-12" }, _hoisted_5$a = ["action"], _hoisted_6$a = { class: "form-group product-search__type mb-100" }, _hoisted_7$8 = { for: "prodtypes" }, _hoisted_8$6 = { class: "product-search__in d-none d-md-block mt-100" }, _hoisted_9$5 = { "aria-live": "polite" }, _hoisted_10$5 = ["disabled", "value"], _hoisted_11$4 = ["disabled", "value"], _hoisted_12$2 = ["value"], _hoisted_13$2 = {
|
|
27653
27673
|
key: 4,
|
|
27654
27674
|
type: "hidden",
|
|
27655
27675
|
name: "areaproxdist",
|
|
@@ -27738,27 +27758,27 @@ const _hoisted_1$r = {
|
|
|
27738
27758
|
}
|
|
27739
27759
|
return "https://www.visitscotland.com";
|
|
27740
27760
|
}), m = computed$1(() => `${f.value}${u.value ? "/" + u.value : ""}${l.value}/search-results`), g = "https://www.visitscotland.com/data/locations" + `?locale=${u.value}`, v = ref([]), k = "https://www.visitscotland.com/tms-api/v1/attractions", _ = ref([]), b = "https://www.visitscotland.com/tms-api/v1/origins?active=1", S = ref([]), V = ref([]), T = () => {
|
|
27741
|
-
const B = getProductTypes(),
|
|
27742
|
-
B.forEach((
|
|
27743
|
-
|
|
27744
|
-
}), V.value =
|
|
27745
|
-
}, N = computed$1(() => t.value ? [] : V.value.map((
|
|
27746
|
-
...
|
|
27747
|
-
text: getProductName(
|
|
27761
|
+
const B = getProductTypes(), P = [];
|
|
27762
|
+
B.forEach((O) => {
|
|
27763
|
+
P.push(O);
|
|
27764
|
+
}), V.value = P;
|
|
27765
|
+
}, N = computed$1(() => t.value ? [] : V.value.map((P) => ({
|
|
27766
|
+
...P,
|
|
27767
|
+
text: getProductName(P.value, P.text)
|
|
27748
27768
|
}))), C = async () => {
|
|
27749
27769
|
const B = await getData(g);
|
|
27750
27770
|
B && (v.value = B.data);
|
|
27751
|
-
},
|
|
27771
|
+
}, F = async () => {
|
|
27752
27772
|
const B = await getData(b);
|
|
27753
27773
|
B && (S.value = B.data);
|
|
27754
|
-
},
|
|
27774
|
+
}, I = async () => {
|
|
27755
27775
|
const B = await getData(k);
|
|
27756
27776
|
B && (_.value = B.data);
|
|
27757
|
-
}, w = (B,
|
|
27758
|
-
|
|
27777
|
+
}, w = (B, P) => {
|
|
27778
|
+
P === "key" ? r.value = v.value.find((O) => O.key === B) : P === "id" ? r.value = v.value.find((O) => O.id === B) : r.value = v.value.find((O) => O.name === B.trim());
|
|
27759
27779
|
}, M = (B) => {
|
|
27760
|
-
const
|
|
27761
|
-
s.value =
|
|
27780
|
+
const P = B.value;
|
|
27781
|
+
s.value = P, P === "tour" && (F(), I());
|
|
27762
27782
|
}, E = () => d[n.defaultLocale] || "", L = () => {
|
|
27763
27783
|
t.value = !0, nextTick$1(() => {
|
|
27764
27784
|
t.value = !1, n.defaultLocation !== "" && c && w(n.defaultLocation, "id");
|
|
@@ -27769,19 +27789,19 @@ const _hoisted_1$r = {
|
|
|
27769
27789
|
const B = document.createElement("script");
|
|
27770
27790
|
B.async = !1, B.onload = L, B.setAttribute("src", `https://www.visitscotland.com/${E().localeUrl}/data/template/search.js`), document.head.appendChild(B);
|
|
27771
27791
|
}), onMounted(async () => {
|
|
27772
|
-
C(), c.value = !0, s.value = n.defaultProd, s.value === "tour" && (
|
|
27792
|
+
C(), c.value = !0, s.value = n.defaultProd, s.value === "tour" && (F(), I()), T();
|
|
27773
27793
|
});
|
|
27774
27794
|
const D = (B) => {
|
|
27775
27795
|
o.value = B ? "on" : "off";
|
|
27776
|
-
},
|
|
27796
|
+
}, R = (B) => {
|
|
27777
27797
|
i.value = !0;
|
|
27778
|
-
const
|
|
27798
|
+
const P = B.currentTarget;
|
|
27779
27799
|
setTimeout(function() {
|
|
27780
|
-
|
|
27800
|
+
P.submit();
|
|
27781
27801
|
}, 500);
|
|
27782
27802
|
};
|
|
27783
|
-
return (B,
|
|
27784
|
-
var
|
|
27803
|
+
return (B, P) => {
|
|
27804
|
+
var O, H, U, Q, te, Y;
|
|
27785
27805
|
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
27786
27806
|
t.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
27787
27807
|
createElementVNode("div", _hoisted_3$c, [
|
|
@@ -27789,25 +27809,25 @@ const _hoisted_1$r = {
|
|
|
27789
27809
|
unref(c) ? (openBlock(), createElementBlock("form", {
|
|
27790
27810
|
key: 0,
|
|
27791
27811
|
action: m.value,
|
|
27792
|
-
onSubmit: withModifiers(
|
|
27812
|
+
onSubmit: withModifiers(R, ["prevent"]),
|
|
27793
27813
|
"accept-charset": "UTF-8",
|
|
27794
27814
|
"data-test": "psw-form"
|
|
27795
27815
|
}, [
|
|
27796
27816
|
createElementVNode("div", _hoisted_6$a, [
|
|
27797
|
-
createElementVNode("label", _hoisted_7$
|
|
27817
|
+
createElementVNode("label", _hoisted_7$8, toDisplayString(unref(getLabelText)("search_for", "I'm looking for")), 1),
|
|
27798
27818
|
createElementVNode("div", {
|
|
27799
27819
|
class: normalizeClass($.value)
|
|
27800
27820
|
}, [
|
|
27801
27821
|
createVNode(VsSelect, {
|
|
27802
27822
|
options: N.value,
|
|
27803
27823
|
value: e.defaultProd,
|
|
27804
|
-
onUpdated:
|
|
27824
|
+
onUpdated: P[0] || (P[0] = (Z) => M(Z)),
|
|
27805
27825
|
"field-name": "prodtypes"
|
|
27806
27826
|
}, null, 8, ["options", "value"]),
|
|
27807
|
-
createElementVNode("div", _hoisted_8$
|
|
27827
|
+
createElementVNode("div", _hoisted_8$6, toDisplayString(unref(getLabelText)("in", "in")), 1)
|
|
27808
27828
|
], 2)
|
|
27809
27829
|
]),
|
|
27810
|
-
createElementVNode("div", _hoisted_9$
|
|
27830
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
27811
27831
|
s.value != "tour" && unref(c) ? (openBlock(), createBlock(_sfc_main$B, {
|
|
27812
27832
|
key: 0,
|
|
27813
27833
|
id: "search-location",
|
|
@@ -27817,7 +27837,7 @@ const _hoisted_1$r = {
|
|
|
27817
27837
|
options: v.value,
|
|
27818
27838
|
placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
|
|
27819
27839
|
"track-by": "name",
|
|
27820
|
-
onChangeValue:
|
|
27840
|
+
onChangeValue: P[1] || (P[1] = (Z) => w(Z)),
|
|
27821
27841
|
"default-val": unref(r),
|
|
27822
27842
|
"data-chromatic": "ignore"
|
|
27823
27843
|
}, null, 8, ["label", "options", "placeholder", "default-val"])) : createCommentVNode("", !0),
|
|
@@ -27825,28 +27845,28 @@ const _hoisted_1$r = {
|
|
|
27825
27845
|
key: 1,
|
|
27826
27846
|
type: "hidden",
|
|
27827
27847
|
name: "locplace",
|
|
27828
|
-
disabled: ((
|
|
27848
|
+
disabled: ((O = unref(r)) == null ? void 0 : O.type) === "POLYGON",
|
|
27829
27849
|
value: ((H = unref(r)) == null ? void 0 : H.key) || ""
|
|
27830
|
-
}, null, 8, _hoisted_10$
|
|
27850
|
+
}, null, 8, _hoisted_10$5)) : createCommentVNode("", !0),
|
|
27831
27851
|
s.value !== "tour" ? (openBlock(), createElementBlock("input", {
|
|
27832
27852
|
key: 2,
|
|
27833
27853
|
type: "hidden",
|
|
27834
27854
|
name: "locpoly",
|
|
27835
27855
|
disabled: ((U = unref(r)) == null ? void 0 : U.type) !== "POLYGON",
|
|
27836
|
-
value: ((
|
|
27837
|
-
}, null, 8, _hoisted_11$
|
|
27856
|
+
value: ((Q = unref(r)) == null ? void 0 : Q.key) || ""
|
|
27857
|
+
}, null, 8, _hoisted_11$4)) : createCommentVNode("", !0),
|
|
27838
27858
|
s.value !== "tour" ? (openBlock(), createElementBlock("input", {
|
|
27839
27859
|
key: 3,
|
|
27840
27860
|
type: "hidden",
|
|
27841
27861
|
name: "locprox",
|
|
27842
|
-
value: ((
|
|
27862
|
+
value: ((te = unref(r)) == null ? void 0 : te.type) === "DISTRICT" ? 1 : 0
|
|
27843
27863
|
}, null, 8, _hoisted_12$2)) : createCommentVNode("", !0),
|
|
27844
|
-
s.value !== "tour" && ((
|
|
27864
|
+
s.value !== "tour" && ((Y = unref(r)) == null ? void 0 : Y.type) === "DISTRICT" ? (openBlock(), createElementBlock("input", _hoisted_13$2)) : createCommentVNode("", !0),
|
|
27845
27865
|
s.value === "even" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
27846
27866
|
createVNode(_sfc_main$z, {
|
|
27847
27867
|
"start-label": unref(getLabelText)("startdate", "Start Date", "dates"),
|
|
27848
27868
|
"end-label": unref(getLabelText)("enddate", "End Date", "dates"),
|
|
27849
|
-
onDateUpdated:
|
|
27869
|
+
onDateUpdated: P[2] || (P[2] = (Z) => D(Z)),
|
|
27850
27870
|
"default-dates": i.value,
|
|
27851
27871
|
"selected-prod": s.value
|
|
27852
27872
|
}, null, 8, ["start-label", "end-label", "default-dates", "selected-prod"]),
|
|
@@ -27859,7 +27879,7 @@ const _hoisted_1$r = {
|
|
|
27859
27879
|
}, null, 8, ["placeholder"])
|
|
27860
27880
|
])) : createCommentVNode("", !0)
|
|
27861
27881
|
])) : createCommentVNode("", !0),
|
|
27862
|
-
s.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [...
|
|
27882
|
+
s.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [...P[4] || (P[4] = [
|
|
27863
27883
|
createElementVNode("input", {
|
|
27864
27884
|
hidden: "true",
|
|
27865
27885
|
name: "avail",
|
|
@@ -27878,10 +27898,10 @@ const _hoisted_1$r = {
|
|
|
27878
27898
|
"track-by": "name",
|
|
27879
27899
|
"is-tour-location": !0
|
|
27880
27900
|
}, null, 8, ["label", "options", "placeholder"]),
|
|
27881
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (
|
|
27901
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (Z) => (openBlock(), createElementBlock("input", {
|
|
27882
27902
|
type: "hidden",
|
|
27883
27903
|
name: "attractions[]",
|
|
27884
|
-
value:
|
|
27904
|
+
value: Z
|
|
27885
27905
|
}, null, 8, _hoisted_19))), 256)),
|
|
27886
27906
|
createVNode(_sfc_main$B, {
|
|
27887
27907
|
id: "tour-month",
|
|
@@ -27897,7 +27917,7 @@ const _hoisted_1$r = {
|
|
|
27897
27917
|
class: "mt-150",
|
|
27898
27918
|
"data-test": "psw-submit",
|
|
27899
27919
|
type: "submit",
|
|
27900
|
-
onClick:
|
|
27920
|
+
onClick: P[3] || (P[3] = (Z) => B.trackSubmit(s.value, typeof unref(r) > "u" ? "" : unref(r)))
|
|
27901
27921
|
}, {
|
|
27902
27922
|
default: withCtx(() => [
|
|
27903
27923
|
createTextVNode(toDisplayString(unref(getLabelText)("search", "Search")), 1)
|
|
@@ -28021,27 +28041,64 @@ const ProductSearch = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_
|
|
|
28021
28041
|
name: "VsQuote",
|
|
28022
28042
|
status: "prototype",
|
|
28023
28043
|
release: "0.0.1",
|
|
28044
|
+
components: {
|
|
28045
|
+
VsDetail,
|
|
28046
|
+
VsBody
|
|
28047
|
+
},
|
|
28024
28048
|
props: {
|
|
28049
|
+
/**
|
|
28050
|
+
* Sets the quote text content.
|
|
28051
|
+
*/
|
|
28052
|
+
quoteText: {
|
|
28053
|
+
type: String,
|
|
28054
|
+
default: ""
|
|
28055
|
+
},
|
|
28056
|
+
/**
|
|
28057
|
+
* Sets the name of the quote author.
|
|
28058
|
+
*/
|
|
28059
|
+
quoteName: {
|
|
28060
|
+
type: String,
|
|
28061
|
+
default: ""
|
|
28062
|
+
},
|
|
28063
|
+
/**
|
|
28064
|
+
* Whether to display old quote UI or new one
|
|
28065
|
+
*/
|
|
28066
|
+
useLegacy: {
|
|
28067
|
+
type: Boolean,
|
|
28068
|
+
default: !0
|
|
28069
|
+
},
|
|
28070
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28071
|
+
*/
|
|
28025
28072
|
variant: {
|
|
28026
28073
|
type: String,
|
|
28027
28074
|
default: "narrow",
|
|
28028
28075
|
validator: (e) => e.match(/(narrow|wide)/)
|
|
28029
28076
|
},
|
|
28077
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28078
|
+
*/
|
|
28030
28079
|
withBorder: {
|
|
28031
28080
|
type: Boolean,
|
|
28032
28081
|
default: !1
|
|
28033
28082
|
}
|
|
28034
28083
|
},
|
|
28035
28084
|
computed: {
|
|
28085
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28086
|
+
*/
|
|
28036
28087
|
hasAuthorName() {
|
|
28037
28088
|
return !!this.$slots["quote-author-name"];
|
|
28038
28089
|
},
|
|
28090
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28091
|
+
*/
|
|
28039
28092
|
hasAuthorTitle() {
|
|
28040
28093
|
return !!this.$slots["quote-author-title"];
|
|
28041
28094
|
},
|
|
28095
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28096
|
+
*/
|
|
28042
28097
|
hasAuthorImage() {
|
|
28043
28098
|
return !!this.$slots["quote-image"];
|
|
28044
28099
|
},
|
|
28100
|
+
/** ⚠️ Deprecated - use the new props instead.
|
|
28101
|
+
*/
|
|
28045
28102
|
variantClass() {
|
|
28046
28103
|
return [
|
|
28047
28104
|
{
|
|
@@ -28053,34 +28110,43 @@ const ProductSearch = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_
|
|
|
28053
28110
|
}
|
|
28054
28111
|
}
|
|
28055
28112
|
}, _hoisted_1$m = {
|
|
28113
|
+
key: 0,
|
|
28114
|
+
class: "vs-quote-new vs-quote-new--blockquote",
|
|
28115
|
+
"data-test": "vs-quote-new"
|
|
28116
|
+
}, _hoisted_2$g = { class: "vs-quote-new__wrapper" }, _hoisted_3$b = { class: "vs-quote__text" }, _hoisted_4$9 = {
|
|
28117
|
+
key: 0,
|
|
28118
|
+
class: "vs-quote__name"
|
|
28119
|
+
}, _hoisted_5$9 = { key: 0 }, _hoisted_6$9 = {
|
|
28056
28120
|
key: 0,
|
|
28057
28121
|
class: "vs-quote__speech-container"
|
|
28058
|
-
},
|
|
28122
|
+
}, _hoisted_7$7 = {
|
|
28059
28123
|
key: 1,
|
|
28060
28124
|
class: "vs-quote__author-container"
|
|
28061
|
-
},
|
|
28125
|
+
}, _hoisted_8$5 = { class: "vs-quote__content-container" }, _hoisted_9$4 = { class: "vs-quote__content" }, _hoisted_10$4 = {
|
|
28062
28126
|
key: 0,
|
|
28063
28127
|
class: "vs-quote__author-name"
|
|
28064
|
-
},
|
|
28128
|
+
}, _hoisted_11$3 = {
|
|
28065
28129
|
key: 2,
|
|
28066
28130
|
class: "vs-quote__quote-link"
|
|
28067
28131
|
};
|
|
28068
28132
|
function _sfc_render$m(e, n, t, s, a, r) {
|
|
28069
|
-
|
|
28133
|
+
const o = resolveComponent("VsBody"), i = resolveComponent("VsDetail");
|
|
28134
|
+
return t.useLegacy ? (openBlock(), createElementBlock("div", {
|
|
28135
|
+
key: 1,
|
|
28070
28136
|
class: normalizeClass(["vs-quote", r.variantClass]),
|
|
28071
28137
|
"data-test": "vs-quote"
|
|
28072
28138
|
}, [
|
|
28073
|
-
t.withBorder ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div",
|
|
28139
|
+
t.withBorder ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6$9, [...n[0] || (n[0] = [
|
|
28074
28140
|
createElementVNode("span", { class: "vs-quote__speech-mark" }, "“", -1)
|
|
28075
28141
|
])])),
|
|
28076
|
-
r.hasAuthorImage ? (openBlock(), createElementBlock("div",
|
|
28142
|
+
r.hasAuthorImage ? (openBlock(), createElementBlock("div", _hoisted_7$7, [
|
|
28077
28143
|
renderSlot(e.$slots, "quote-image")
|
|
28078
28144
|
])) : createCommentVNode("", !0),
|
|
28079
|
-
createElementVNode("div",
|
|
28080
|
-
createElementVNode("div",
|
|
28145
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
28146
|
+
createElementVNode("div", _hoisted_9$4, [
|
|
28081
28147
|
renderSlot(e.$slots, "quote-content")
|
|
28082
28148
|
]),
|
|
28083
|
-
r.hasAuthorName ? (openBlock(), createElementBlock("p",
|
|
28149
|
+
r.hasAuthorName ? (openBlock(), createElementBlock("p", _hoisted_10$4, [
|
|
28084
28150
|
renderSlot(e.$slots, "quote-author-name")
|
|
28085
28151
|
])) : createCommentVNode("", !0),
|
|
28086
28152
|
r.hasAuthorTitle ? (openBlock(), createElementBlock("p", {
|
|
@@ -28089,11 +28155,36 @@ function _sfc_render$m(e, n, t, s, a, r) {
|
|
|
28089
28155
|
}, [
|
|
28090
28156
|
renderSlot(e.$slots, "quote-author-title")
|
|
28091
28157
|
], 2)) : createCommentVNode("", !0),
|
|
28092
|
-
e.$slots["quote-link"] ? (openBlock(), createElementBlock("div",
|
|
28158
|
+
e.$slots["quote-link"] ? (openBlock(), createElementBlock("div", _hoisted_11$3, [
|
|
28093
28159
|
renderSlot(e.$slots, "quote-link", { if: "$slots['quote-link']" })
|
|
28094
28160
|
])) : createCommentVNode("", !0)
|
|
28095
28161
|
])
|
|
28096
|
-
], 2)
|
|
28162
|
+
], 2)) : (openBlock(), createElementBlock("blockquote", _hoisted_1$m, [
|
|
28163
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
28164
|
+
createVNode(o, null, {
|
|
28165
|
+
default: withCtx(() => [
|
|
28166
|
+
createElementVNode("p", _hoisted_3$b, toDisplayString(t.quoteText), 1)
|
|
28167
|
+
]),
|
|
28168
|
+
_: 1
|
|
28169
|
+
}),
|
|
28170
|
+
t.quoteName || e.$slots["quote-details"] ? (openBlock(), createBlock(i, {
|
|
28171
|
+
key: 0,
|
|
28172
|
+
color: "secondary",
|
|
28173
|
+
size: "small"
|
|
28174
|
+
}, {
|
|
28175
|
+
default: withCtx(() => [
|
|
28176
|
+
createElementVNode("p", null, [
|
|
28177
|
+
t.quoteName ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
|
|
28178
|
+
createTextVNode(toDisplayString(t.quoteName), 1),
|
|
28179
|
+
e.$slots["quote-details"] ? (openBlock(), createElementBlock("span", _hoisted_5$9, ", ")) : createCommentVNode("", !0)
|
|
28180
|
+
])) : createCommentVNode("", !0),
|
|
28181
|
+
renderSlot(e.$slots, "quote-details")
|
|
28182
|
+
])
|
|
28183
|
+
]),
|
|
28184
|
+
_: 3
|
|
28185
|
+
})) : createCommentVNode("", !0)
|
|
28186
|
+
])
|
|
28187
|
+
]));
|
|
28097
28188
|
}
|
|
28098
28189
|
const Quote = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$m]]), _sfc_main$v = {
|
|
28099
28190
|
name: "VsSectionHeader",
|
|
@@ -31487,10 +31578,10 @@ async function cludoAutocomplete(e, n) {
|
|
|
31487
31578
|
}
|
|
31488
31579
|
}
|
|
31489
31580
|
const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
31490
|
-
const e = ref(null), n = ref(void 0), t = ref(!1), s = ref(1), a = ref(void 0), r = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), m = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), S = ref(void 0), V = ref(void 0), T = ref(-1), N = ref(""), C = ref(""),
|
|
31581
|
+
const e = ref(null), n = ref(void 0), t = ref(!1), s = ref(1), a = ref(void 0), r = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), m = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), S = ref(void 0), V = ref(void 0), T = ref(-1), N = ref(""), C = ref(""), F = ref(""), I = ref(0), w = ref(""), M = ref("or");
|
|
31491
31582
|
async function E(D = !1) {
|
|
31492
31583
|
o.value = !0, D || (T.value += 1);
|
|
31493
|
-
const
|
|
31584
|
+
const R = await cludoSearch(
|
|
31494
31585
|
l.value,
|
|
31495
31586
|
n.value,
|
|
31496
31587
|
s.value,
|
|
@@ -31508,22 +31599,22 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31508
31599
|
b.value,
|
|
31509
31600
|
V.value,
|
|
31510
31601
|
C.value,
|
|
31511
|
-
|
|
31512
|
-
|
|
31602
|
+
F.value,
|
|
31603
|
+
I.value,
|
|
31513
31604
|
w.value
|
|
31514
31605
|
);
|
|
31515
|
-
i.value = [...
|
|
31606
|
+
i.value = [...R.results, ...B.results], p.value = R.totalResults, g.value = B.totalResults, m.value = R.totalResults + B.totalResults, o.value = !1;
|
|
31516
31607
|
}
|
|
31517
31608
|
async function L() {
|
|
31518
31609
|
return cludoAutocomplete(l.value, n.value);
|
|
31519
31610
|
}
|
|
31520
|
-
async function $(D,
|
|
31611
|
+
async function $(D, R) {
|
|
31521
31612
|
const B = new URL(window.location.href);
|
|
31522
|
-
if (
|
|
31613
|
+
if (R ? N.value = "Autosuggestion" : N.value = "User input", l.value ? B.searchParams.set("search-term", l.value) : B.searchParams.delete("search-term"), d.value ? B.searchParams.set("category", encodeURIComponent(d.value)) : B.searchParams.delete("category"), f.value.length > 0 ? B.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : B.searchParams.delete("sub-category"), D ? (s.value = 1, B.searchParams.set("page", s.value.toString())) : s.value && s.value > 1 ? B.searchParams.set("page", s.value.toString()) : B.searchParams.delete("page"), k.value ? B.searchParams.set("start-date", k.value) : B.searchParams.delete("start-date"), _.value ? B.searchParams.set("end-date", _.value) : B.searchParams.delete("end-date"), b.value ? B.searchParams.set("sort-by", b.value) : B.searchParams.delete("sort-by"), !v.value)
|
|
31523
31614
|
window.history.pushState({}, "", B), await E();
|
|
31524
31615
|
else {
|
|
31525
|
-
const
|
|
31526
|
-
window.location.href =
|
|
31616
|
+
const P = `${S.value}/${B.search}`;
|
|
31617
|
+
window.location.href = P;
|
|
31527
31618
|
}
|
|
31528
31619
|
}
|
|
31529
31620
|
return {
|
|
@@ -31555,8 +31646,8 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
31555
31646
|
searchInSessionCount: T,
|
|
31556
31647
|
queryInput: N,
|
|
31557
31648
|
postcode: C,
|
|
31558
|
-
location:
|
|
31559
|
-
radius:
|
|
31649
|
+
location: F,
|
|
31650
|
+
radius: I,
|
|
31560
31651
|
postcodeareas: w,
|
|
31561
31652
|
cludoApiOperator: M
|
|
31562
31653
|
};
|
|
@@ -33254,13 +33345,6 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33254
33345
|
type: Object,
|
|
33255
33346
|
default: void 0
|
|
33256
33347
|
},
|
|
33257
|
-
/**
|
|
33258
|
-
* Tells if JS is Disabled
|
|
33259
|
-
*/
|
|
33260
|
-
jsDisabled: {
|
|
33261
|
-
type: Boolean,
|
|
33262
|
-
required: !0
|
|
33263
|
-
},
|
|
33264
33348
|
/**
|
|
33265
33349
|
* Message to display when JavaScript is disabled
|
|
33266
33350
|
*/
|
|
@@ -33300,31 +33384,31 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33300
33384
|
}
|
|
33301
33385
|
},
|
|
33302
33386
|
setup(e) {
|
|
33303
|
-
const n = dataLayerComposable(), t = e, s = t.categoryLabels.find((
|
|
33387
|
+
const n = dataLayerComposable(), t = e, s = t.categoryLabels.find((A) => A.id === "destinations"), a = s ? s.subCategory : null, r = computed$1(() => t.featuredPlaces.filter((A) => A.properties.category.id === O.selectedDestinationType));
|
|
33304
33388
|
provide("featuredPlaces", {
|
|
33305
33389
|
categories: a,
|
|
33306
33390
|
places: r
|
|
33307
|
-
}), provide("onFeaturedLocationClick",
|
|
33391
|
+
}), provide("onFeaturedLocationClick", Ee), provide("addDestinationMarkers", Se);
|
|
33308
33392
|
let o, i, l, c, d, u, f, m, p, g, v = {}, k;
|
|
33309
|
-
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), S = ref(), V = ref(/* @__PURE__ */ new Set()), T = ref(/* @__PURE__ */ new Set()), N = ref(/* @__PURE__ */ new Set()), C = ref(/* @__PURE__ */ new Set()),
|
|
33310
|
-
const
|
|
33311
|
-
return Object.values(
|
|
33312
|
-
|
|
33393
|
+
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), S = ref(), V = ref(/* @__PURE__ */ new Set()), T = ref(/* @__PURE__ */ new Set()), N = ref(/* @__PURE__ */ new Set()), C = ref(/* @__PURE__ */ new Set()), F = ref(), I = ref(), w = ref(t.zoom), M = ref(!1), E = ref(), L = ref(/* @__PURE__ */ new Set()), $ = ref(), D = ref(!1), R = ref(void 0), B = ref(!1), P = computed$1(() => {
|
|
33394
|
+
const A = /* @__PURE__ */ new Map(), z = Y[_.value].subCategory;
|
|
33395
|
+
return Object.values(z).forEach((q) => {
|
|
33396
|
+
A.set(q.id, {
|
|
33313
33397
|
includedTypes: q.includedType,
|
|
33314
33398
|
excludedTypes: q.excludedType
|
|
33315
33399
|
});
|
|
33316
|
-
}),
|
|
33317
|
-
}),
|
|
33318
|
-
let
|
|
33319
|
-
const
|
|
33400
|
+
}), A;
|
|
33401
|
+
}), O = useGoogleMapStore(), H = ref(void 0);
|
|
33402
|
+
let U;
|
|
33403
|
+
const Q = ref(void 0), te = {
|
|
33320
33404
|
north: 61,
|
|
33321
33405
|
south: 54.6,
|
|
33322
33406
|
west: -8.7,
|
|
33323
33407
|
east: 0.3
|
|
33324
33408
|
};
|
|
33325
|
-
let
|
|
33409
|
+
let Y = {};
|
|
33326
33410
|
const Z = t.categoryLabels;
|
|
33327
|
-
let
|
|
33411
|
+
let ee = 0;
|
|
33328
33412
|
const de = {
|
|
33329
33413
|
headerLabel: t.labels.heading,
|
|
33330
33414
|
closeSidebarButtonLabel: t.labels.closeSidebarBtn,
|
|
@@ -33339,21 +33423,21 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33339
33423
|
locationSelectLabel: t.labels.locationSelect
|
|
33340
33424
|
}, {
|
|
33341
33425
|
getViewport: le,
|
|
33342
|
-
hasViewportChanged:
|
|
33426
|
+
hasViewportChanged: ge,
|
|
33343
33427
|
isProgrammaticMove: ce,
|
|
33344
|
-
isUserMove:
|
|
33428
|
+
isUserMove: ue,
|
|
33345
33429
|
lastSearchViewport: oe,
|
|
33346
33430
|
runProgrammaticMove: X,
|
|
33347
33431
|
showSearchAreaButton: fe
|
|
33348
33432
|
} = useViewportController();
|
|
33349
33433
|
onBeforeMount(() => {
|
|
33350
|
-
const
|
|
33351
|
-
|
|
33434
|
+
const A = cookieCheckerComposable();
|
|
33435
|
+
A.requiredCookies.value = cookieValues$5.google_maps, U = computed$1(() => !A.cookiesAllowed.value && A.cookiesLoaded.value === !0 || !A.cookiesLoaded.value ? (Q.value = "noCookie", !0) : !1);
|
|
33352
33436
|
}), onMounted(async () => {
|
|
33353
|
-
if (t.categoriesLocation && axios.get(t.categoriesLocation).then((
|
|
33354
|
-
|
|
33437
|
+
if (t.categoriesLocation && axios.get(t.categoriesLocation).then((z) => {
|
|
33438
|
+
Y = z.data, R.value = z.data.accommodation.keywords;
|
|
33355
33439
|
}).catch(() => {
|
|
33356
|
-
}),
|
|
33440
|
+
}), U.value === !1) {
|
|
33357
33441
|
setOptions({
|
|
33358
33442
|
key: t.apiKey,
|
|
33359
33443
|
v: "quarterly",
|
|
@@ -33368,9 +33452,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33368
33452
|
}
|
|
33369
33453
|
}
|
|
33370
33454
|
i = document.getElementById("vs-map"), l = document.getElementById("nearbySearch"), c = document.getElementById("textSearch"), d = document.querySelector("gmp-place-text-search-request"), u = document.querySelector("gmp-place-nearby-search-request"), f = document.querySelector("gmp-place-details"), m = document.getElementById("placeRequest"), p = document.getElementById("vs-map-search-input");
|
|
33371
|
-
async function
|
|
33455
|
+
async function A() {
|
|
33372
33456
|
try {
|
|
33373
|
-
const
|
|
33457
|
+
const z = {
|
|
33374
33458
|
center: {
|
|
33375
33459
|
lat: t.center.lat,
|
|
33376
33460
|
lng: t.center.lng
|
|
@@ -33380,7 +33464,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33380
33464
|
isFractionalZoomEnabled: !0,
|
|
33381
33465
|
mapId: t.mapId,
|
|
33382
33466
|
restriction: {
|
|
33383
|
-
latLngBounds:
|
|
33467
|
+
latLngBounds: te
|
|
33384
33468
|
},
|
|
33385
33469
|
zoomControl: !0,
|
|
33386
33470
|
fullscreenControl: !1,
|
|
@@ -33390,30 +33474,32 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33390
33474
|
gestureHandling: "greedy"
|
|
33391
33475
|
};
|
|
33392
33476
|
if (i)
|
|
33393
|
-
o = new google.maps.Map(i,
|
|
33477
|
+
o = new google.maps.Map(i, z), X(() => o.fitBounds(te));
|
|
33394
33478
|
else
|
|
33395
33479
|
throw new Error("Init error, mapContainer undefined");
|
|
33396
|
-
} catch (
|
|
33397
|
-
console.error("Maps init error",
|
|
33480
|
+
} catch (z) {
|
|
33481
|
+
console.error("Maps init error", z.message);
|
|
33398
33482
|
}
|
|
33399
33483
|
g = new google.maps.InfoWindow(), g.addListener("closeclick", () => {
|
|
33400
33484
|
he("card_close", m.place);
|
|
33401
|
-
}),
|
|
33402
|
-
w.value = o.getZoom(), w.value < CATEGORY_VISIBLE_ZOOM ?
|
|
33485
|
+
}), ke(), o.addListener("zoom_changed", () => {
|
|
33486
|
+
w.value = o.getZoom(), w.value < CATEGORY_VISIBLE_ZOOM ? ke() : ke(!0), ue.value = !ce.value, w.value > 7 && !ce.value && ue.value && (fe.value = !0);
|
|
33403
33487
|
}), o.addListener("dragstart", () => {
|
|
33404
|
-
|
|
33488
|
+
ue.value = !0;
|
|
33489
|
+
}), o.addListener("tilesloaded", () => {
|
|
33490
|
+
B.value || (B.value = !0, Se());
|
|
33405
33491
|
}), o.addListener("idle", () => {
|
|
33406
|
-
k =
|
|
33407
|
-
}), l.addEventListener("gmp-select", ({ place:
|
|
33408
|
-
v[
|
|
33409
|
-
}), c.addEventListener("gmp-select", ({ place:
|
|
33410
|
-
v[
|
|
33411
|
-
})
|
|
33492
|
+
k = Ie(), !ce.value && ue.value && ge(le(o)) && (fe.value = !0, ue.value = !1);
|
|
33493
|
+
}), l.addEventListener("gmp-select", ({ place: z }) => {
|
|
33494
|
+
v[z.id] && be(z, v[z.id]);
|
|
33495
|
+
}), c.addEventListener("gmp-select", ({ place: z }) => {
|
|
33496
|
+
v[z.id] && be(z, v[z.id]);
|
|
33497
|
+
});
|
|
33412
33498
|
}
|
|
33413
|
-
|
|
33499
|
+
O.firstInteraction = !1, O.searchesCount = 0, O.filterUsesCount = 0, U.value === !1 && await A();
|
|
33414
33500
|
});
|
|
33415
|
-
function
|
|
33416
|
-
const
|
|
33501
|
+
function ke(A) {
|
|
33502
|
+
const z = {
|
|
33417
33503
|
strokeColor: "#A3A3CC",
|
|
33418
33504
|
strokeOpacity: 1,
|
|
33419
33505
|
strokeWeight: 1,
|
|
@@ -33478,163 +33564,163 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33478
33564
|
"ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"
|
|
33479
33565
|
// Faroe Islands
|
|
33480
33566
|
], W = o.getFeatureLayer(google.maps.FeatureType.COUNTRY), G = o.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);
|
|
33481
|
-
|
|
33567
|
+
A ? (W.style = null, G.style = null, W.style = (J) => {
|
|
33482
33568
|
if (j.includes(J.feature.placeId))
|
|
33483
|
-
return
|
|
33569
|
+
return z;
|
|
33484
33570
|
}, G.style = (J) => {
|
|
33485
33571
|
if (j.includes(J.feature.placeId))
|
|
33486
|
-
return
|
|
33572
|
+
return z;
|
|
33487
33573
|
}) : (W.style = (J) => {
|
|
33488
33574
|
if (q.includes(J.feature.placeId))
|
|
33489
|
-
return
|
|
33575
|
+
return z;
|
|
33490
33576
|
}, G.style = (J) => {
|
|
33491
33577
|
if (q.includes(J.feature.placeId))
|
|
33492
|
-
return
|
|
33578
|
+
return z;
|
|
33493
33579
|
});
|
|
33494
33580
|
}
|
|
33495
|
-
function
|
|
33496
|
-
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", me(
|
|
33581
|
+
function Le(A, z) {
|
|
33582
|
+
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", me(A, z);
|
|
33497
33583
|
}
|
|
33498
|
-
function me(
|
|
33499
|
-
|
|
33584
|
+
function me(A, z) {
|
|
33585
|
+
ye(), _.value = A, Y[A].includedType && V.value.add(Y[A].includedType), Object.values(Y[A].subCategory).forEach(
|
|
33500
33586
|
(j) => V.value.add(j.includedType)
|
|
33501
|
-
), Object.values(
|
|
33587
|
+
), Object.values(Y[A].subCategory).forEach(
|
|
33502
33588
|
(j) => {
|
|
33503
33589
|
j.excludedType && T.value.add(j.excludedType);
|
|
33504
33590
|
}
|
|
33505
33591
|
), V.value = new Set(Array.from(V.value).flat()), T.value = new Set(Array.from(T.value).flat()), V.value.forEach((j) => {
|
|
33506
33592
|
T.value.has(j) && T.value.delete(j);
|
|
33507
|
-
}), S.value =
|
|
33593
|
+
}), S.value = Y[A], F.value = z, ve({
|
|
33508
33594
|
includedTypes: Array.from(V.value),
|
|
33509
33595
|
excludedTypes: Array.from(T.value)
|
|
33510
33596
|
});
|
|
33511
33597
|
const q = Object.fromEntries(
|
|
33512
33598
|
Z.map((j) => [j.id, j.label])
|
|
33513
33599
|
);
|
|
33514
|
-
E.value = `${q[
|
|
33600
|
+
E.value = `${q[A]} ${ae.value}`, p.value = E.value, O.showCategories = !0, fe.value = !1;
|
|
33515
33601
|
}
|
|
33516
|
-
function
|
|
33602
|
+
function _e(A, z) {
|
|
33517
33603
|
const q = ref([]), j = ref();
|
|
33518
|
-
return
|
|
33604
|
+
return A.forEach(() => {
|
|
33519
33605
|
Z.forEach((W) => {
|
|
33520
33606
|
W.id === _.value && (q.value = W);
|
|
33521
33607
|
}), Object.values(q.value).forEach((W) => {
|
|
33522
33608
|
Object.values(W).forEach((G) => {
|
|
33523
|
-
|
|
33609
|
+
z === G.id && (j.value = G.label);
|
|
33524
33610
|
});
|
|
33525
33611
|
});
|
|
33526
33612
|
}), j;
|
|
33527
33613
|
}
|
|
33528
|
-
function
|
|
33529
|
-
N.value.forEach((
|
|
33530
|
-
C.value.has(
|
|
33614
|
+
function xe() {
|
|
33615
|
+
N.value.forEach((A) => {
|
|
33616
|
+
C.value.has(A) && C.value.delete(A);
|
|
33531
33617
|
});
|
|
33532
33618
|
}
|
|
33533
|
-
function
|
|
33534
|
-
includeTypes:
|
|
33619
|
+
function $e(A, {
|
|
33620
|
+
includeTypes: z = !1,
|
|
33535
33621
|
excludeTypes: q = !1,
|
|
33536
33622
|
removeIncludedTypes: j = !1,
|
|
33537
33623
|
removeExcludedTypes: W = !1
|
|
33538
33624
|
} = {}) {
|
|
33539
33625
|
var J;
|
|
33540
|
-
const G =
|
|
33541
|
-
|
|
33542
|
-
|
|
33543
|
-
}), (q || W) && ((J = G.excludedTypes) == null || J.forEach((
|
|
33544
|
-
q && C.value.add(
|
|
33626
|
+
const G = P.value.get(A);
|
|
33627
|
+
z && G.includedTypes.forEach((ne) => {
|
|
33628
|
+
z && N.value.add(ne), j && N.value.delete(ne);
|
|
33629
|
+
}), (q || W) && ((J = G.excludedTypes) == null || J.forEach((ne) => {
|
|
33630
|
+
q && C.value.add(ne), W && C.value.delete(ne);
|
|
33545
33631
|
}));
|
|
33546
33632
|
}
|
|
33547
|
-
function
|
|
33548
|
-
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "",
|
|
33633
|
+
function De(A, z) {
|
|
33634
|
+
oe.value && (X(() => o.setCenter(oe.value.center)), X(() => o.setZoom(oe.value.zoom))), ae.value = "", Me(A, z);
|
|
33549
33635
|
}
|
|
33550
|
-
function
|
|
33551
|
-
if (
|
|
33552
|
-
D.value = !0,
|
|
33553
|
-
const q =
|
|
33554
|
-
E.value = q,
|
|
33555
|
-
} else b.value.has(
|
|
33556
|
-
|
|
33636
|
+
function Me(A, z) {
|
|
33637
|
+
if (I.value = z, ae.value = "", A === "self-catering") {
|
|
33638
|
+
D.value = !0, Ve(), b.value = /* @__PURE__ */ new Set(), b.value.add(A);
|
|
33639
|
+
const q = _e(b.value, A).value;
|
|
33640
|
+
E.value = q, ye(), p.value = `${E.value} ${ae.value}`, Ce(), p.value = q;
|
|
33641
|
+
} else b.value.has(A) ? (b.value.delete(A), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), b.value.forEach((q) => {
|
|
33642
|
+
$e(q, {
|
|
33557
33643
|
includeTypes: !0,
|
|
33558
33644
|
excludeTypes: !0
|
|
33559
33645
|
});
|
|
33560
|
-
}),
|
|
33561
|
-
|
|
33562
|
-
), b.value.size === 0 ? (L.value = /* @__PURE__ */ new Set(), me(_.value,
|
|
33646
|
+
}), xe(), L.value.delete(
|
|
33647
|
+
_e(b.value, A).value
|
|
33648
|
+
), b.value.size === 0 ? (L.value = /* @__PURE__ */ new Set(), me(_.value, F.value)) : (ve({
|
|
33563
33649
|
includedTypes: Array.from(N.value).flat(),
|
|
33564
33650
|
excludedTypes: Array.from(C.value).flat()
|
|
33565
|
-
}), E.value = Array.from(L.value).join(", "), p.value = E.value)) : (b.value.add(
|
|
33651
|
+
}), E.value = Array.from(L.value).join(", "), p.value = E.value)) : (b.value.add(A), $e(A, {
|
|
33566
33652
|
includeTypes: !0,
|
|
33567
33653
|
excludeTypes: !0
|
|
33568
|
-
}),
|
|
33654
|
+
}), xe(), ve({
|
|
33569
33655
|
includedTypes: Array.from(N.value).flat(),
|
|
33570
33656
|
excludedTypes: Array.from(C.value).flat()
|
|
33571
33657
|
}), L.value.add(
|
|
33572
|
-
|
|
33573
|
-
), E.value = `${Array.from(L.value).join(", ")} ${ae.value}`, p.value = E.value,
|
|
33658
|
+
_e(b.value, A).value
|
|
33659
|
+
), E.value = `${Array.from(L.value).join(", ")} ${ae.value}`, p.value = E.value, O.showCategories = !0);
|
|
33574
33660
|
}
|
|
33575
|
-
async function
|
|
33576
|
-
includedTypes:
|
|
33577
|
-
excludedTypes:
|
|
33661
|
+
async function ve({
|
|
33662
|
+
includedTypes: A = [],
|
|
33663
|
+
excludedTypes: z = []
|
|
33578
33664
|
} = {}) {
|
|
33579
|
-
pe(),
|
|
33580
|
-
const q =
|
|
33581
|
-
|
|
33582
|
-
const j = o.getBounds(), W = j.getNorthEast(), G = j.getSouthWest(), J = google.maps.geometry.spherical.computeDistanceBetween(W, G),
|
|
33583
|
-
u.includedTypes =
|
|
33665
|
+
pe(), Ve(), ee += 1;
|
|
33666
|
+
const q = ee;
|
|
33667
|
+
O.filterUsesCount += 1, $.value = "nearby";
|
|
33668
|
+
const j = o.getBounds(), W = j.getNorthEast(), G = j.getSouthWest(), J = google.maps.geometry.spherical.computeDistanceBetween(W, G), ne = Math.min(J / 2, 25e3);
|
|
33669
|
+
u.includedTypes = A, u.excludedTypes = z ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
|
|
33584
33670
|
center: o.getCenter(),
|
|
33585
|
-
radius:
|
|
33671
|
+
radius: ne
|
|
33586
33672
|
}, l.style.display = "block", l.addEventListener("gmp-load", () => {
|
|
33587
|
-
if (q !==
|
|
33588
|
-
|
|
33589
|
-
let ie = "main",
|
|
33590
|
-
b.value.size && (ie = "sub",
|
|
33673
|
+
if (q !== ee) return;
|
|
33674
|
+
Be(q);
|
|
33675
|
+
let ie = "main", Te = _.value;
|
|
33676
|
+
b.value.size && (ie = "sub", Te = Array.from(b.value).join(", ")), n.createDataLayerObject("googleMapFilterEvent", {
|
|
33591
33677
|
filter_type: ie,
|
|
33592
33678
|
search_map_location: o.getCenter().toString(),
|
|
33593
|
-
filter_selection:
|
|
33679
|
+
filter_selection: Te,
|
|
33594
33680
|
results_count: l.places.length,
|
|
33595
|
-
filter_usage_index:
|
|
33596
|
-
}),
|
|
33681
|
+
filter_usage_index: O.filterUsesCount
|
|
33682
|
+
}), we("map_filter");
|
|
33597
33683
|
}, {
|
|
33598
33684
|
once: !0
|
|
33599
33685
|
});
|
|
33600
33686
|
}
|
|
33601
|
-
async function
|
|
33602
|
-
pe(),
|
|
33603
|
-
const
|
|
33604
|
-
|
|
33605
|
-
(
|
|
33687
|
+
async function Ce() {
|
|
33688
|
+
pe(), ye(), ee += 1;
|
|
33689
|
+
const A = ee;
|
|
33690
|
+
O.searchesCount += 1, $.value = "text", E.value = p.value.trim(), E.value && (D.value ? (d.locationBias = null, d.locationRestriction = o.getBounds()) : (d.locationRestriction = null, d.locationBias = o.getCenter()), d.includedType = R.value.some(
|
|
33691
|
+
(z) => E.value.toLowerCase().includes(z)
|
|
33606
33692
|
) ? "lodging" : null, d.textQuery = `${E.value} in Scotland`, d.maxResultCount = NUMBER_OF_RESULTS, c.style.display = "block", c.addEventListener("gmp-load", () => {
|
|
33607
|
-
|
|
33693
|
+
A === ee && (Be(A), D.value = !1, n.createDataLayerObject("googleMapSearchEvent", {
|
|
33608
33694
|
search_query: E.value,
|
|
33609
33695
|
search_map_location: o.getCenter().toString(),
|
|
33610
33696
|
search_results_count: c.places.length,
|
|
33611
|
-
search_usage_index:
|
|
33612
|
-
}),
|
|
33697
|
+
search_usage_index: O.searchesCount
|
|
33698
|
+
}), we("map_search"));
|
|
33613
33699
|
}, {
|
|
33614
33700
|
once: !0
|
|
33615
|
-
}),
|
|
33701
|
+
}), O.showDestinations = !1, O.showCategories = !0);
|
|
33616
33702
|
}
|
|
33617
|
-
async function
|
|
33618
|
-
const { AdvancedMarkerElement:
|
|
33619
|
-
if (
|
|
33703
|
+
async function Be(A) {
|
|
33704
|
+
const { AdvancedMarkerElement: z } = await importLibrary("marker"), { LatLngBounds: q } = await importLibrary("core");
|
|
33705
|
+
if (A !== ee) return;
|
|
33620
33706
|
const j = ref();
|
|
33621
|
-
$.value === "nearby" ? j.value = l : $.value === "text" ? j.value = c : console.error("Unrecognised Search type"), j.value.places.length === 0 ? (
|
|
33707
|
+
$.value === "nearby" ? j.value = l : $.value === "text" ? j.value = c : console.error("Unrecognised Search type"), j.value.places.length === 0 ? (H.value = !0, j.value.style.display = "none") : (H.value = !1, j.value.style.display = "block");
|
|
33622
33708
|
const W = new q();
|
|
33623
33709
|
j.value.places && (j.value.places.forEach((G) => {
|
|
33624
33710
|
const J = document.createElement("div");
|
|
33625
33711
|
J.classList.add("vs-map-marker");
|
|
33626
|
-
const
|
|
33627
|
-
|
|
33628
|
-
const ie = new
|
|
33712
|
+
const ne = document.createElement("i");
|
|
33713
|
+
ne.classList.add("fa-solid", "fa-location-dot"), J.appendChild(ne);
|
|
33714
|
+
const ie = new z({
|
|
33629
33715
|
map: o,
|
|
33630
33716
|
position: G.location,
|
|
33631
33717
|
content: J,
|
|
33632
33718
|
title: "Map pin"
|
|
33633
33719
|
});
|
|
33634
33720
|
ie.addEventListener("gmp-placeclick", () => {
|
|
33635
|
-
|
|
33721
|
+
be(G);
|
|
33636
33722
|
}), ie.addListener("click", () => {
|
|
33637
|
-
|
|
33723
|
+
be(G);
|
|
33638
33724
|
}), ie.metadata = {
|
|
33639
33725
|
id: G.id
|
|
33640
33726
|
}, v[G.id] = ie, W.extend(G.location), j.value.places.length === 1 ? (X(() => o.setCenter(
|
|
@@ -33645,63 +33731,63 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33645
33731
|
)), X(() => o.setZoom(14)), X(() => o.fitBounds(G.viewport))) : (X(() => o.setCenter(W.getCenter())), X(() => o.fitBounds(W)));
|
|
33646
33732
|
}), oe.value = le(o));
|
|
33647
33733
|
}
|
|
33648
|
-
async function
|
|
33649
|
-
const { AdvancedMarkerElement:
|
|
33650
|
-
|
|
33734
|
+
async function Se() {
|
|
33735
|
+
const { AdvancedMarkerElement: A } = await importLibrary("marker");
|
|
33736
|
+
Ne(), r.value.forEach((z) => {
|
|
33651
33737
|
const q = document.createElement("div");
|
|
33652
33738
|
q.classList.add("vs-map-marker");
|
|
33653
33739
|
const j = document.createElement("i");
|
|
33654
33740
|
j.classList.add("fa-solid", "fa-location-dot"), q.appendChild(j);
|
|
33655
|
-
const W = new
|
|
33741
|
+
const W = new A({
|
|
33656
33742
|
map: o,
|
|
33657
33743
|
position: {
|
|
33658
|
-
lat:
|
|
33659
|
-
lng:
|
|
33744
|
+
lat: z.properties.locationCentre.latitude,
|
|
33745
|
+
lng: z.properties.locationCentre.longitude
|
|
33660
33746
|
},
|
|
33661
33747
|
content: q,
|
|
33662
|
-
title:
|
|
33748
|
+
title: z.properties.title
|
|
33663
33749
|
});
|
|
33664
|
-
W.addListener("gmp-click", () =>
|
|
33750
|
+
W.addListener("gmp-click", () => Ee(z)), v[z.properties.title] = W;
|
|
33665
33751
|
});
|
|
33666
33752
|
}
|
|
33667
|
-
function pe(
|
|
33668
|
-
|
|
33753
|
+
function pe(A, z) {
|
|
33754
|
+
O.showCategories = !1, Ne(), $.value = "", u.includedTypes = null, u.excludedTypes = null, u.locationRestriction = null, l.style.display = "none", d.includedType = null, d.locationRestriction = null, d.locationBias = null, d.textQuery = null, c.style.display = "none", M.value = !1, g && g.close && g.close(), H.value = void 0, A && (Ve(), ye(), he("clear_all"), Se(), O.showDestinations = !0), z && (X(() => o.setCenter(t.center)), X(() => o.setZoom(t.zoom)), X(() => o.fitBounds(te)), he("reset_map"));
|
|
33669
33755
|
}
|
|
33670
|
-
function
|
|
33756
|
+
function Ve() {
|
|
33671
33757
|
E.value = null, p.value = "";
|
|
33672
33758
|
}
|
|
33673
|
-
function
|
|
33674
|
-
_.value = void 0, b.value = /* @__PURE__ */ new Set(), V.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), L.value = /* @__PURE__ */ new Set(),
|
|
33759
|
+
function ye() {
|
|
33760
|
+
_.value = void 0, b.value = /* @__PURE__ */ new Set(), V.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), N.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), L.value = /* @__PURE__ */ new Set(), F.value = void 0, I.value = void 0;
|
|
33675
33761
|
}
|
|
33676
|
-
function
|
|
33677
|
-
for (const
|
|
33678
|
-
v[
|
|
33762
|
+
function Ne() {
|
|
33763
|
+
for (const A in v)
|
|
33764
|
+
v[A] && (v[A].map = null);
|
|
33679
33765
|
v = {};
|
|
33680
33766
|
}
|
|
33681
|
-
function
|
|
33682
|
-
g.isOpen && (g.close(), he("card_close", m.place)), m.place =
|
|
33767
|
+
function be(A) {
|
|
33768
|
+
g.isOpen && (g.close(), he("card_close", m.place)), m.place = A, window.innerWidth <= 768 ? (f.style.width = "85vw", f.style.height = "32em", O.sidebarOpen = !1) : (f.style.width = "20em", f.style.height = "32em"), f.style.display = "block", f.style.overflowY = "auto", f.style.overflowX = "hidden", f.style.boxSizing = "border-box", f.style.maxHeight = "32em", g.setOptions({
|
|
33683
33769
|
content: f,
|
|
33684
33770
|
maxWidth: "25em",
|
|
33685
|
-
position:
|
|
33771
|
+
position: A.location,
|
|
33686
33772
|
// eslint-disable-next-line no-undef
|
|
33687
33773
|
pixelOffset: new google.maps.Size(0, -32)
|
|
33688
33774
|
}), g.open({
|
|
33689
33775
|
map: o
|
|
33690
33776
|
}), google.maps.event.addListenerOnce(o, "idle", () => {
|
|
33691
|
-
o.getZoom() > MAX_ZOOM && X(() => o.setZoom(MAX_ZOOM)), he("card_open",
|
|
33692
|
-
}), X(() => o.setCenter(
|
|
33777
|
+
o.getZoom() > MAX_ZOOM && X(() => o.setZoom(MAX_ZOOM)), he("card_open", A);
|
|
33778
|
+
}), X(() => o.setCenter(A.location));
|
|
33693
33779
|
}
|
|
33694
|
-
async function he(
|
|
33780
|
+
async function he(A, z) {
|
|
33695
33781
|
let q = "", j = "", W = "", G = "";
|
|
33696
|
-
|
|
33782
|
+
z && (await z.fetchFields({
|
|
33697
33783
|
fields: [
|
|
33698
33784
|
"displayName",
|
|
33699
33785
|
"primaryType",
|
|
33700
33786
|
"rating",
|
|
33701
33787
|
"websiteURI"
|
|
33702
33788
|
]
|
|
33703
|
-
}), q =
|
|
33704
|
-
interaction_type:
|
|
33789
|
+
}), q = z.displayName, j = z.rating, W = z.websiteURI, G = z.primaryType), n.createDataLayerObject("googleMapInteractionEvent", {
|
|
33790
|
+
interaction_type: A,
|
|
33705
33791
|
search_query: p.value.trim(),
|
|
33706
33792
|
map_location: o.getCenter().toString(),
|
|
33707
33793
|
visible_attractions_count: k,
|
|
@@ -33710,96 +33796,96 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33710
33796
|
card_attraction_rating: j,
|
|
33711
33797
|
card_attraction_url: W,
|
|
33712
33798
|
interaction_timestamp_ms: Date.now()
|
|
33713
|
-
}),
|
|
33799
|
+
}), we(A);
|
|
33714
33800
|
}
|
|
33715
|
-
function
|
|
33716
|
-
if (!
|
|
33717
|
-
const q = Date.now() -
|
|
33801
|
+
function we(A) {
|
|
33802
|
+
if (!O.firstInteraction) {
|
|
33803
|
+
const q = Date.now() - O.timeMounted;
|
|
33718
33804
|
n.createDataLayerObject("googleMapTimeToFirstInteractionEvent", {
|
|
33719
33805
|
time_to_first_interaction_ms: q,
|
|
33720
|
-
first_interaction_type:
|
|
33721
|
-
}),
|
|
33806
|
+
first_interaction_type: A
|
|
33807
|
+
}), O.firstInteraction = !0;
|
|
33722
33808
|
}
|
|
33723
33809
|
}
|
|
33724
|
-
function
|
|
33725
|
-
const
|
|
33726
|
-
if (!
|
|
33727
|
-
let
|
|
33810
|
+
function Ie() {
|
|
33811
|
+
const A = o.getBounds();
|
|
33812
|
+
if (!A) return 0;
|
|
33813
|
+
let z = 0;
|
|
33728
33814
|
for (let q = 0; q < Object.keys(v).length; q++) {
|
|
33729
33815
|
const W = v[Object.keys(v)[q]].position;
|
|
33730
|
-
|
|
33816
|
+
A.contains(W) && (z += 1);
|
|
33731
33817
|
}
|
|
33732
|
-
return
|
|
33818
|
+
return z;
|
|
33733
33819
|
}
|
|
33734
33820
|
const ae = ref("");
|
|
33735
|
-
function
|
|
33736
|
-
|
|
33821
|
+
function Ee(A) {
|
|
33822
|
+
O.showDestinations = !1, ae.value = A.properties.title, X(() => o.fitBounds(
|
|
33737
33823
|
// eslint-disable-next-line no-undef
|
|
33738
33824
|
new google.maps.LatLngBounds(
|
|
33739
33825
|
// eslint-disable-next-line no-undef
|
|
33740
33826
|
new google.maps.LatLng(
|
|
33741
|
-
|
|
33742
|
-
|
|
33827
|
+
A.properties.viewport.low.latitude,
|
|
33828
|
+
A.properties.viewport.low.longitude
|
|
33743
33829
|
),
|
|
33744
33830
|
// eslint-disable-next-line no-undef
|
|
33745
33831
|
new google.maps.LatLng(
|
|
33746
|
-
|
|
33747
|
-
|
|
33832
|
+
A.properties.viewport.high.latitude,
|
|
33833
|
+
A.properties.viewport.high.longitude
|
|
33748
33834
|
)
|
|
33749
33835
|
)
|
|
33750
33836
|
)), X(() => o.setCenter(
|
|
33751
33837
|
// eslint-disable-next-line no-undef
|
|
33752
33838
|
new google.maps.LatLng(
|
|
33753
|
-
|
|
33754
|
-
|
|
33839
|
+
A.properties.locationCentre.latitude,
|
|
33840
|
+
A.properties.locationCentre.longitude
|
|
33755
33841
|
)
|
|
33756
33842
|
)), me("things-to-do", 2);
|
|
33757
33843
|
}
|
|
33758
|
-
function
|
|
33759
|
-
if (
|
|
33760
|
-
|
|
33844
|
+
function Pe() {
|
|
33845
|
+
if (O.showDestinations = !1, O.sidebarOpen = !0, ae.value = "", fe.value = !1, b.value.size > 0) {
|
|
33846
|
+
ve({
|
|
33761
33847
|
includedTypes: Array.from(N.value),
|
|
33762
33848
|
excludedTypes: Array.from(C.value)
|
|
33763
33849
|
});
|
|
33764
|
-
const
|
|
33765
|
-
b.value.forEach((
|
|
33766
|
-
|
|
33767
|
-
|
|
33850
|
+
const A = [];
|
|
33851
|
+
b.value.forEach((z) => {
|
|
33852
|
+
A.push(
|
|
33853
|
+
_e(b.value, z).value
|
|
33768
33854
|
);
|
|
33769
|
-
}), E.value =
|
|
33855
|
+
}), E.value = A.join(", "), p.value = E.value, O.showCategories = !0;
|
|
33770
33856
|
return;
|
|
33771
33857
|
}
|
|
33772
33858
|
if (_.value) {
|
|
33773
|
-
me(_.value,
|
|
33859
|
+
me(_.value, F.value);
|
|
33774
33860
|
return;
|
|
33775
33861
|
}
|
|
33776
33862
|
if (p.value) {
|
|
33777
|
-
|
|
33863
|
+
Ce();
|
|
33778
33864
|
return;
|
|
33779
33865
|
}
|
|
33780
33866
|
me("things-to-do", 2);
|
|
33781
33867
|
}
|
|
33782
|
-
return (
|
|
33868
|
+
return (A, z) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
33783
33869
|
createElementVNode("div", {
|
|
33784
|
-
class: normalizeClass(["vs-map__container", unref(
|
|
33870
|
+
class: normalizeClass(["vs-map__container", unref(U) ? "d-none" : ""])
|
|
33785
33871
|
}, [
|
|
33786
|
-
createElementVNode("div", _hoisted_2, [
|
|
33872
|
+
withDirectives(createElementVNode("div", _hoisted_2, [
|
|
33787
33873
|
createVNode(_sfc_main$1, {
|
|
33788
33874
|
categories: unref(Z),
|
|
33789
|
-
"category-data": unref(
|
|
33875
|
+
"category-data": unref(Y),
|
|
33790
33876
|
query: E.value,
|
|
33791
33877
|
"selected-category": _.value,
|
|
33792
33878
|
"selected-subcategories": b.value,
|
|
33793
33879
|
"sidebar-labels": de,
|
|
33794
|
-
onCategorySelected:
|
|
33795
|
-
onResetMap:
|
|
33796
|
-
onResetLocation:
|
|
33797
|
-
onSearchInputChanged:
|
|
33798
|
-
onSubcategorySelected:
|
|
33880
|
+
onCategorySelected: z[1] || (z[1] = (q) => Le(q.id, q.key)),
|
|
33881
|
+
onResetMap: z[2] || (z[2] = (q) => pe(!0)),
|
|
33882
|
+
onResetLocation: z[3] || (z[3] = (q) => pe(!0, !0)),
|
|
33883
|
+
onSearchInputChanged: Ce,
|
|
33884
|
+
onSubcategorySelected: z[4] || (z[4] = (q) => De(q.id, q.key))
|
|
33799
33885
|
}, {
|
|
33800
33886
|
"vs-map-sidebar-search-results": withCtx(() => [
|
|
33801
|
-
|
|
33802
|
-
|
|
33887
|
+
H.value || t.alertText && H.value === !1 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
33888
|
+
H.value ? (openBlock(), createBlock(unref(VsAlert), {
|
|
33803
33889
|
key: 0,
|
|
33804
33890
|
id: "vs-map__alert",
|
|
33805
33891
|
size: "small"
|
|
@@ -33809,7 +33895,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33809
33895
|
createTextVNode(toDisplayString(e.noResultsMessage) + " ", 1),
|
|
33810
33896
|
createElementVNode("a", {
|
|
33811
33897
|
href: "#",
|
|
33812
|
-
onClick:
|
|
33898
|
+
onClick: z[0] || (z[0] = withModifiers((q) => pe(!0, !0), ["prevent"]))
|
|
33813
33899
|
}, toDisplayString(e.resetMapNoResultsMessage), 1)
|
|
33814
33900
|
])
|
|
33815
33901
|
]),
|
|
@@ -33829,7 +33915,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33829
33915
|
}))
|
|
33830
33916
|
])) : createCommentVNode("", !0),
|
|
33831
33917
|
(openBlock(), createBlock(Suspense, null, {
|
|
33832
|
-
default: withCtx(() => [...
|
|
33918
|
+
default: withCtx(() => [...z[5] || (z[5] = [
|
|
33833
33919
|
createElementVNode("div", { id: "search-container" }, [
|
|
33834
33920
|
createElementVNode("gmp-place-search", {
|
|
33835
33921
|
id: "nearbySearch",
|
|
@@ -33880,11 +33966,13 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33880
33966
|
]),
|
|
33881
33967
|
_: 1
|
|
33882
33968
|
}, 8, ["categories", "category-data", "query", "selected-category", "selected-subcategories"])
|
|
33969
|
+
], 512), [
|
|
33970
|
+
[vShow, B.value]
|
|
33883
33971
|
]),
|
|
33884
33972
|
createElementVNode("div", _hoisted_4, [
|
|
33885
33973
|
createElementVNode("div", _hoisted_5, null, 512),
|
|
33886
33974
|
(openBlock(), createBlock(Suspense, null, {
|
|
33887
|
-
default: withCtx(() => [...
|
|
33975
|
+
default: withCtx(() => [...z[6] || (z[6] = [
|
|
33888
33976
|
createElementVNode("div", { id: "detail-container" }, [
|
|
33889
33977
|
createElementVNode("gmp-place-details", {
|
|
33890
33978
|
id: "placeDetails",
|
|
@@ -33919,7 +34007,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33919
34007
|
createVNode(unref(VsButton), {
|
|
33920
34008
|
icon: "vs-icon-control-search",
|
|
33921
34009
|
variant: "secondary",
|
|
33922
|
-
onClick:
|
|
34010
|
+
onClick: Pe
|
|
33923
34011
|
}, {
|
|
33924
34012
|
default: withCtx(() => [
|
|
33925
34013
|
createTextVNode(toDisplayString(t.labels.searchAreaButton), 1)
|
|
@@ -33929,10 +34017,10 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
33929
34017
|
])) : createCommentVNode("", !0)
|
|
33930
34018
|
])
|
|
33931
34019
|
], 2),
|
|
33932
|
-
unref(
|
|
34020
|
+
unref(U) && Q.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
|
|
33933
34021
|
key: 0,
|
|
33934
34022
|
type: "cookie",
|
|
33935
|
-
class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(
|
|
34023
|
+
class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(U) ? "d-block" : "d-none"]),
|
|
33936
34024
|
"data-test": "vs-map__warning--no-cookies"
|
|
33937
34025
|
}, {
|
|
33938
34026
|
"button-text": withCtx(() => [
|
|
@@ -33972,7 +34060,7 @@ export {
|
|
|
33972
34060
|
Breadcrumb as VsBreadcrumb,
|
|
33973
34061
|
BreadcrumbItem as VsBreadcrumbItem,
|
|
33974
34062
|
VsButton,
|
|
33975
|
-
|
|
34063
|
+
qe as VsButtonToggleGroup,
|
|
33976
34064
|
CannedSearch as VsCannedSearch,
|
|
33977
34065
|
Caption as VsCaption,
|
|
33978
34066
|
CarbonCalculator as VsCarbonCalculator,
|