@visitscotland/component-library 5.14.2 → 5.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +44 -44
- package/dist/client/scripts/07f92cd6237e0c89e05f.js +1 -0
- package/dist/client/scripts/19aeb43187cf24c041e1.js +1 -0
- package/dist/client/scripts/1a19296a134c900b079f.js +1 -0
- package/dist/client/scripts/ac41271cb234a2aeb156.js +1 -0
- package/dist/client/scripts/{76074283725d7977bee8.js → b159f254ba21c175ebaf.js} +1 -1
- package/dist/client/scripts/{56c48601783f9c05942b.js → d7c116548c18ae4946f6.js} +1 -1
- package/dist/client/scripts/{135df5aaa0ecf715633d.js → dc8de28fbf0095a6bdc4.js} +1 -1
- package/dist/client/scripts/e0c5487ea1f49ba55654.js +1 -0
- package/dist/client/styles/{c59be97ad3588debac08.css → 07f92cd6237e0c89e05f.css} +1 -1
- package/dist/client/styles/e0c5487ea1f49ba55654.css +1 -0
- package/dist/components/components/badge/Badge.vue.d.ts +2 -2
- package/dist/components/style.css +1 -1
- package/dist/components/vs-component-library.js +4 -4
- package/dist/components/vs-component-library.mjs +65 -38
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{519ed97db98684faac4c.css → 783ed0c1e95f3f226b1b.css} +2 -2
- package/package.json +1 -1
- package/dist/client/scripts/04668495c4d844a89386.js +0 -1
- package/dist/client/scripts/c59be97ad3588debac08.js +0 -1
- package/dist/client/scripts/d5ac21d36517e1dc53ac.js +0 -1
- package/dist/client/scripts/e342d9e806627f8c5899.js +0 -1
- package/dist/client/scripts/efd1d43e1d5de84d8cb3.js +0 -1
- package/dist/client/styles/e342d9e806627f8c5899.css +0 -1
- /package/dist/client/styles/{d5ac21d36517e1dc53ac.css → 19aeb43187cf24c041e1.css} +0 -0
- /package/dist/client/styles/{04668495c4d844a89386.css → 1a19296a134c900b079f.css} +0 -0
- /package/dist/client/styles/{efd1d43e1d5de84d8cb3.css → ac41271cb234a2aeb156.css} +0 -0
- /package/dist/client/styles/{135df5aaa0ecf715633d.css → dc8de28fbf0095a6bdc4.css} +0 -0
|
@@ -635,12 +635,12 @@ const ArticleSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$2k, [["render", _sf
|
|
|
635
635
|
props: {
|
|
636
636
|
/**
|
|
637
637
|
* Variant of the badge
|
|
638
|
-
* @values default, subtle, information
|
|
638
|
+
* @values default, subtle, information, highlight
|
|
639
639
|
*/
|
|
640
640
|
variant: {
|
|
641
641
|
type: String,
|
|
642
642
|
default: "default",
|
|
643
|
-
validator: (e) => e.match(/(default|subtle|information)/)
|
|
643
|
+
validator: (e) => e.match(/(default|subtle|information|highlight)/)
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
646
|
computed: {
|
|
@@ -2830,7 +2830,7 @@ const CannedSearch = /* @__PURE__ */ _export_sfc(_sfc_main$1Y, [["render", _sfc_
|
|
|
2830
2830
|
return (t - e) * a / (n - e);
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
|
-
}, _hoisted_1$1x = ["width", "height"], _hoisted_2$18 = ["stroke"], _hoisted_3$X = ["stroke"], _hoisted_4$J = ["stroke"], _hoisted_5$u = ["stroke"], _hoisted_6$k = ["stroke"], _hoisted_7$g = ["stroke"], _hoisted_8$6 = ["stroke"], _hoisted_9$5 = ["stroke"], _hoisted_10$5 = ["stroke"], _hoisted_11$
|
|
2833
|
+
}, _hoisted_1$1x = ["width", "height"], _hoisted_2$18 = ["stroke"], _hoisted_3$X = ["stroke"], _hoisted_4$J = ["stroke"], _hoisted_5$u = ["stroke"], _hoisted_6$k = ["stroke"], _hoisted_7$g = ["stroke"], _hoisted_8$6 = ["stroke"], _hoisted_9$5 = ["stroke"], _hoisted_10$5 = ["stroke"], _hoisted_11$4 = ["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$1 = ["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"];
|
|
2834
2834
|
function _sfc_render$1G(e, n, t, a, r, s) {
|
|
2835
2835
|
return openBlock(), createElementBlock("svg", {
|
|
2836
2836
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2950,7 +2950,7 @@ function _sfc_render$1G(e, n, t, a, r, s) {
|
|
|
2950
2950
|
"stroke-linejoin": "round",
|
|
2951
2951
|
"stroke-width": "0.5",
|
|
2952
2952
|
"fill-rule": "evenodd"
|
|
2953
|
-
}, null, 8, _hoisted_11$
|
|
2953
|
+
}, null, 8, _hoisted_11$4),
|
|
2954
2954
|
createElementVNode("path", {
|
|
2955
2955
|
d: `M46.6205,36.1343c0,.184.167.552.167.736.167.184.167.368.334.368,
|
|
2956
2956
|
1.169.92,1.336-1.287.167-1.287C46.9545,35.95,46.7875,35.95,46.6205,36.1343Z`,
|
|
@@ -29223,7 +29223,7 @@ const _hoisted_1$r = {
|
|
|
29223
29223
|
}, _hoisted_2$g = {
|
|
29224
29224
|
key: 0,
|
|
29225
29225
|
class: "container"
|
|
29226
|
-
}, _hoisted_3$a = { class: "row" }, _hoisted_4$8 = { class: "col-12" }, _hoisted_5$7 = ["action"], _hoisted_6$7 = { class: "form-group product-search__type mb-100" }, _hoisted_7$6 = { for: "prodtypes" }, _hoisted_8$4 = { class: "product-search__in d-none d-md-block mt-100" }, _hoisted_9$4 = { "aria-live": "polite" }, _hoisted_10$4 = ["disabled", "value"], _hoisted_11$
|
|
29226
|
+
}, _hoisted_3$a = { class: "row" }, _hoisted_4$8 = { class: "col-12" }, _hoisted_5$7 = ["action"], _hoisted_6$7 = { class: "form-group product-search__type mb-100" }, _hoisted_7$6 = { for: "prodtypes" }, _hoisted_8$4 = { class: "product-search__in d-none d-md-block mt-100" }, _hoisted_9$4 = { "aria-live": "polite" }, _hoisted_10$4 = ["disabled", "value"], _hoisted_11$3 = ["disabled", "value"], _hoisted_12$2 = ["value"], _hoisted_13$2 = {
|
|
29227
29227
|
key: 4,
|
|
29228
29228
|
type: "hidden",
|
|
29229
29229
|
name: "areaproxdist",
|
|
@@ -29408,7 +29408,7 @@ const _hoisted_1$r = {
|
|
|
29408
29408
|
name: "locpoly",
|
|
29409
29409
|
disabled: ((J = unref(s)) == null ? void 0 : J.type) !== "POLYGON",
|
|
29410
29410
|
value: (($ = unref(s)) == null ? void 0 : $.key) || ""
|
|
29411
|
-
}, null, 8, _hoisted_11$
|
|
29411
|
+
}, null, 8, _hoisted_11$3)) : createCommentVNode("", !0),
|
|
29412
29412
|
a.value !== "tour" ? (openBlock(), createElementBlock("input", {
|
|
29413
29413
|
key: 3,
|
|
29414
29414
|
type: "hidden",
|
|
@@ -30251,7 +30251,7 @@ const VsTableFooter = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_
|
|
|
30251
30251
|
}, _hoisted_2$c = { class: "vs-ski-scotland-card__img-container" }, _hoisted_3$8 = { class: "card-body" }, _hoisted_4$6 = {
|
|
30252
30252
|
key: 0,
|
|
30253
30253
|
class: "text-center pb-200 position-relative"
|
|
30254
|
-
}, _hoisted_5$5 = { "data-test": "vs-ski__status-label" }, _hoisted_6$5 = { "data-test": "vs-ski__runs-label" }, _hoisted_7$5 = { "data-test": "vs-ski__lifts-label" }, _hoisted_8$3 = { "data-test": "vs-ski__open-label" }, _hoisted_9$3 = { "data-test": "vs-ski__limited-patrol-label" }, _hoisted_10$3 = { "data-test": "vs-ski__opening-label" }, _hoisted_11$
|
|
30254
|
+
}, _hoisted_5$5 = { "data-test": "vs-ski__status-label" }, _hoisted_6$5 = { "data-test": "vs-ski__runs-label" }, _hoisted_7$5 = { "data-test": "vs-ski__lifts-label" }, _hoisted_8$3 = { "data-test": "vs-ski__open-label" }, _hoisted_9$3 = { "data-test": "vs-ski__limited-patrol-label" }, _hoisted_10$3 = { "data-test": "vs-ski__opening-label" }, _hoisted_11$2 = { "data-test": "vs-ski__closed-label" }, _hoisted_12$1 = { "data-test": "vs-ski__on-hold-label" }, _hoisted_13$1 = { "data-test": "vs-ski__last-updated-label" };
|
|
30255
30255
|
function _sfc_render$e(e, n, t, a, r, s) {
|
|
30256
30256
|
const o = resolveComponent("VsImg"), i = resolveComponent("VsHeading"), l = resolveComponent("VsLoadingSpinner"), c = resolveComponent("VsWarning"), u = resolveComponent("VsTableHeaderCell"), d = resolveComponent("VsTableHead"), m = resolveComponent("VsIcon"), f = resolveComponent("VsTableDataCell"), p = resolveComponent("VsTableRow"), g = resolveComponent("VsTableBody"), _ = resolveComponent("VsTableFooter"), v = resolveComponent("VsTable"), b = resolveComponent("VsButton");
|
|
30257
30257
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
@@ -30423,7 +30423,7 @@ function _sfc_render$e(e, n, t, a, r, s) {
|
|
|
30423
30423
|
size: "xs",
|
|
30424
30424
|
class: "me-050 fa-fw"
|
|
30425
30425
|
}),
|
|
30426
|
-
createElementVNode("span", _hoisted_11$
|
|
30426
|
+
createElementVNode("span", _hoisted_11$2, toDisplayString(t.summaryClosedLabel), 1)
|
|
30427
30427
|
]),
|
|
30428
30428
|
_: 1
|
|
30429
30429
|
}),
|
|
@@ -31031,7 +31031,7 @@ const SkiScotlandCard = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sf
|
|
|
31031
31031
|
}, _hoisted_1$f = {
|
|
31032
31032
|
class: "vs-ski-scotland-status",
|
|
31033
31033
|
"data-test": "vs-ski-scotland-status"
|
|
31034
|
-
}, _hoisted_2$b = { "data-test": "vs-ski__status-label" }, _hoisted_3$7 = { "data-test": "vs-ski__runs-label" }, _hoisted_4$5 = { "data-test": "vs-ski__lifts-label" }, _hoisted_5$4 = { "data-test": "vs-ski__open-label" }, _hoisted_6$4 = { "data-test": "vs-ski__open-label" }, _hoisted_7$4 = { "data-test": "vs-ski__opening-label" }, _hoisted_8$2 = { "data-test": "vs-ski__closed-label" }, _hoisted_9$2 = { "data-test": "vs-ski__open-label" }, _hoisted_10$2 = { "data-test": "vs-ski__last-updated-label" }, _hoisted_11 = ["innerHTML"], _hoisted_12 = ["innerHTML"], _hoisted_13 = ["innerHTML"], _hoisted_14 = ["innerHTML"], _hoisted_15 = ["innerHTML"], _hoisted_16 = ["data-test"], _hoisted_17 = { class: "visually-hidden" };
|
|
31034
|
+
}, _hoisted_2$b = { "data-test": "vs-ski__status-label" }, _hoisted_3$7 = { "data-test": "vs-ski__runs-label" }, _hoisted_4$5 = { "data-test": "vs-ski__lifts-label" }, _hoisted_5$4 = { "data-test": "vs-ski__open-label" }, _hoisted_6$4 = { "data-test": "vs-ski__open-label" }, _hoisted_7$4 = { "data-test": "vs-ski__opening-label" }, _hoisted_8$2 = { "data-test": "vs-ski__closed-label" }, _hoisted_9$2 = { "data-test": "vs-ski__open-label" }, _hoisted_10$2 = { "data-test": "vs-ski__last-updated-label" }, _hoisted_11$1 = ["innerHTML"], _hoisted_12 = ["innerHTML"], _hoisted_13 = ["innerHTML"], _hoisted_14 = ["innerHTML"], _hoisted_15 = ["innerHTML"], _hoisted_16 = ["data-test"], _hoisted_17 = { class: "visually-hidden" };
|
|
31035
31035
|
function _sfc_render$d(e, n, t, a, r, s) {
|
|
31036
31036
|
const o = resolveComponent("VsLoadingSpinner"), i = resolveComponent("VsCol"), l = resolveComponent("VsRow"), c = resolveComponent("VsContainer"), u = resolveComponent("VsWarning"), d = resolveComponent("VsHeading"), m = resolveComponent("VsTableHeaderCell"), f = resolveComponent("VsTableHead"), p = resolveComponent("VsIcon"), g = resolveComponent("VsTableDataCell"), _ = resolveComponent("VsTableRow"), v = resolveComponent("VsTableBody"), b = resolveComponent("VsTableFooter"), k = resolveComponent("VsTable"), C = resolveComponent("VsLink"), S = resolveComponent("VsAccordionItem"), w = resolveComponent("VsAccordion");
|
|
31037
31037
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
@@ -31347,7 +31347,7 @@ function _sfc_render$d(e, n, t, a, r, s) {
|
|
|
31347
31347
|
]),
|
|
31348
31348
|
_: 1
|
|
31349
31349
|
}),
|
|
31350
|
-
createElementVNode("div", { innerHTML: r.report }, null, 8, _hoisted_11),
|
|
31350
|
+
createElementVNode("div", { innerHTML: r.report }, null, 8, _hoisted_11$1),
|
|
31351
31351
|
r.currentWeather.length ? (openBlock(), createBlock(d, {
|
|
31352
31352
|
key: 0,
|
|
31353
31353
|
level: "4",
|
|
@@ -33842,7 +33842,8 @@ function cleanData$1(e) {
|
|
|
33842
33842
|
description: a.Fields.Description.Value || "",
|
|
33843
33843
|
imgSrc: ((r = a.Fields.Image) == null ? void 0 : r.Value) || "",
|
|
33844
33844
|
url: a.Fields.Url.Value || "",
|
|
33845
|
-
dataSrc: "cludo"
|
|
33845
|
+
dataSrc: "cludo",
|
|
33846
|
+
categoryCard: a.Fields.categoryCard.Value || ""
|
|
33846
33847
|
};
|
|
33847
33848
|
});
|
|
33848
33849
|
}
|
|
@@ -33905,7 +33906,8 @@ function cleanData(e) {
|
|
|
33905
33906
|
startDate: a.startFormatted,
|
|
33906
33907
|
endDate: a.endFormatted,
|
|
33907
33908
|
minPrice: (u = a.minPrice) == null ? void 0 : u.toString(),
|
|
33908
|
-
dataSrc: "data-thistle"
|
|
33909
|
+
dataSrc: "data-thistle",
|
|
33910
|
+
categoryCard: a.categoryCard || ""
|
|
33909
33911
|
};
|
|
33910
33912
|
});
|
|
33911
33913
|
}
|
|
@@ -34101,12 +34103,12 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34101
34103
|
emits: ["filter-updated"],
|
|
34102
34104
|
setup(e) {
|
|
34103
34105
|
const n = e, t = ref(null);
|
|
34104
|
-
function a(
|
|
34105
|
-
return typeof n.activeFilter == "string" ? n.activeFilter ===
|
|
34106
|
+
function a(i) {
|
|
34107
|
+
return typeof n.activeFilter == "string" ? n.activeFilter === i : n.activeFilter && typeof n.activeFilter == "object" ? n.activeFilter.includes(i) : !1;
|
|
34106
34108
|
}
|
|
34107
|
-
function r(
|
|
34108
|
-
var
|
|
34109
|
-
|
|
34109
|
+
function r(i) {
|
|
34110
|
+
var l, c;
|
|
34111
|
+
i === "left" ? (l = t.value) == null || l.scrollBy(-200, 0) : i === "right" && ((c = t.value) == null || c.scrollBy(200, 0));
|
|
34110
34112
|
}
|
|
34111
34113
|
function s() {
|
|
34112
34114
|
return [
|
|
@@ -34114,14 +34116,18 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34114
34116
|
n.wrap ? "vs-fed-filter__scroll-rail--wrap" : ""
|
|
34115
34117
|
];
|
|
34116
34118
|
}
|
|
34117
|
-
|
|
34118
|
-
|
|
34119
|
+
const o = computed$1(() => [...n.filterCategories].sort((l, c) => {
|
|
34120
|
+
const u = (l.Label || l.Key || "").toLowerCase(), d = (c.Label || c.Key || "").toLowerCase();
|
|
34121
|
+
return u < d ? -1 : u > d ? 1 : 0;
|
|
34122
|
+
}));
|
|
34123
|
+
return (i, l) => (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
34124
|
+
i.$slots["fed-filter-header"] && i.$slots["fed-filter-header"]() ? (openBlock(), createBlock(VsBody, {
|
|
34119
34125
|
key: 0,
|
|
34120
34126
|
class: "vs-fed-filter__header mb-025 ms-025",
|
|
34121
34127
|
"data-test": "vs-fed-filter__header"
|
|
34122
34128
|
}, {
|
|
34123
34129
|
default: withCtx(() => [
|
|
34124
|
-
renderSlot(
|
|
34130
|
+
renderSlot(i.$slots, "fed-filter-header")
|
|
34125
34131
|
]),
|
|
34126
34132
|
_: 3
|
|
34127
34133
|
})) : createCommentVNode("", !0),
|
|
@@ -34133,7 +34139,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34133
34139
|
"icon-only": "",
|
|
34134
34140
|
class: "vs-fed-filter__scroll-button me-050",
|
|
34135
34141
|
"data-test": "vs-fed-filter__scroll-button--left",
|
|
34136
|
-
onClick:
|
|
34142
|
+
onClick: l[0] || (l[0] = (c) => r("left")),
|
|
34137
34143
|
"aria-label": n.scrollLeftText
|
|
34138
34144
|
}, {
|
|
34139
34145
|
default: withCtx(() => [
|
|
@@ -34147,17 +34153,17 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34147
34153
|
ref_key: "scrollRail",
|
|
34148
34154
|
ref: t
|
|
34149
34155
|
}, [
|
|
34150
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
34151
|
-
key:
|
|
34156
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.value, (c, u) => (openBlock(), createBlock(VsButton, {
|
|
34157
|
+
key: u,
|
|
34152
34158
|
class: "vs-fed-filter__category-button",
|
|
34153
|
-
"data-test": `vs-fed-filter__category-button--${
|
|
34154
|
-
icon: n.variant === "primary" ?
|
|
34155
|
-
variant: a(
|
|
34159
|
+
"data-test": `vs-fed-filter__category-button--${c.id}`,
|
|
34160
|
+
icon: n.variant === "primary" ? c.icon : null,
|
|
34161
|
+
variant: a(c.Label) ? "primary" : "secondary",
|
|
34156
34162
|
size: n.variant === "secondary" ? "sm" : "md",
|
|
34157
|
-
onClick: (
|
|
34163
|
+
onClick: (d) => i.$emit("filter-updated", c)
|
|
34158
34164
|
}, {
|
|
34159
34165
|
default: withCtx(() => [
|
|
34160
|
-
createTextVNode(toDisplayString(
|
|
34166
|
+
createTextVNode(toDisplayString(c.Label || c.Key), 1)
|
|
34161
34167
|
]),
|
|
34162
34168
|
_: 2
|
|
34163
34169
|
}, 1032, ["data-test", "icon", "variant", "size", "onClick"]))), 128))
|
|
@@ -34169,7 +34175,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34169
34175
|
"icon-only": "",
|
|
34170
34176
|
class: "vs-fed-filter__scroll-button ms-050",
|
|
34171
34177
|
"data-test": "vs-fed-filter__scroll-button--right",
|
|
34172
|
-
onClick:
|
|
34178
|
+
onClick: l[1] || (l[1] = (c) => r("right")),
|
|
34173
34179
|
"aria-label": n.scrollRightText
|
|
34174
34180
|
}, {
|
|
34175
34181
|
default: withCtx(() => [
|
|
@@ -34329,7 +34335,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34329
34335
|
wrap: !0,
|
|
34330
34336
|
onFilterUpdated: l
|
|
34331
34337
|
}, null, 8, ["active-filter", "filter-categories"])) : createCommentVNode("", !0),
|
|
34332
|
-
unref(t).
|
|
34338
|
+
unref(t).selectedCategoryKey === "events" && n.subFilters ? (openBlock(), createBlock(_sfc_main$3, {
|
|
34333
34339
|
key: 1,
|
|
34334
34340
|
"active-filter": unref(t).selectedSubCategory,
|
|
34335
34341
|
class: "mt-200",
|
|
@@ -34477,10 +34483,10 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34477
34483
|
}, _hoisted_2 = { class: "vs-federated-search__container" }, _hoisted_3 = {
|
|
34478
34484
|
key: 0,
|
|
34479
34485
|
class: "d-flex justify-content-between mb-200"
|
|
34480
|
-
}, _hoisted_4 = { key: 2 }, _hoisted_5 = { class: "position-relative" }, _hoisted_6 = { class: "position-absolute bottom-0 start-0 d-flex gap-2" }, _hoisted_7 = { class: "truncate-3-lines" },
|
|
34486
|
+
}, _hoisted_4 = { key: 2 }, _hoisted_5 = { class: "position-relative" }, _hoisted_6 = { class: "position-absolute bottom-0 start-0 d-flex gap-2" }, _hoisted_7 = { class: "position-absolute bottom-0 end-0 d-flex" }, _hoisted_8 = { class: "truncate-3-lines" }, _hoisted_9 = { class: "d-flex justify-content-end align-items-end mt-050" }, _hoisted_10 = {
|
|
34481
34487
|
key: 0,
|
|
34482
34488
|
class: "d-flex align-items-start flex-grow-1"
|
|
34483
|
-
},
|
|
34489
|
+
}, _hoisted_11 = {
|
|
34484
34490
|
key: 3,
|
|
34485
34491
|
class: "vs-federated-search--warning"
|
|
34486
34492
|
}, fallbackImg = "https://static.visitscotland.com/img/fallback-img.png", _sfc_main = {
|
|
@@ -34562,6 +34568,15 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34562
34568
|
sortLabels: {
|
|
34563
34569
|
type: Object,
|
|
34564
34570
|
required: !0
|
|
34571
|
+
},
|
|
34572
|
+
/**
|
|
34573
|
+
* Labels for the card category badge.
|
|
34574
|
+
*/
|
|
34575
|
+
cardCategoryLabels: {
|
|
34576
|
+
type: Object,
|
|
34577
|
+
required: !0,
|
|
34578
|
+
default: () => {
|
|
34579
|
+
}
|
|
34565
34580
|
}
|
|
34566
34581
|
},
|
|
34567
34582
|
setup(e) {
|
|
@@ -34575,7 +34590,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34575
34590
|
const r = computed$1(() => Math.ceil(n.totalResults / 12));
|
|
34576
34591
|
function s() {
|
|
34577
34592
|
// Start date is after end date
|
|
34578
|
-
n.endDate && n.startDate > n.endDate ? (t.value.error = !0, t.value.message = a.errorMessages.incorrectDateOrder) : /* Events API down */ n.
|
|
34593
|
+
n.endDate && n.startDate > n.endDate ? (t.value.error = !0, t.value.message = a.errorMessages.incorrectDateOrder) : /* Events API down */ n.selectedCategoryKey === "events" && n.eventsApiError && !n.isLoading ? (t.value.error = !0, t.value.message = a.errorMessages.eventError) : /* Cludo down */ (n.searchTerm || n.selectedCategory) && n.selectedCategoryKey !== "events" && n.cludoError && !n.isLoading ? (t.value.error = !0, t.value.message = a.errorMessages.cludoError) : /* No Results */ n.totalResults === 0 && !n.isLoading ? (t.value.error = !0, t.value.message = a.errorMessages.noResults) : (t.value.error = !1, t.value.message = "");
|
|
34579
34594
|
}
|
|
34580
34595
|
onMounted(() => {
|
|
34581
34596
|
if (n.cludoCredentials = {
|
|
@@ -34658,7 +34673,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34658
34673
|
_: 1
|
|
34659
34674
|
})) : createCommentVNode("", !0)
|
|
34660
34675
|
]),
|
|
34661
|
-
unref(n).
|
|
34676
|
+
unref(n).selectedCategoryKey === "events" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
34662
34677
|
key: 0,
|
|
34663
34678
|
"date-filter-visible": !0,
|
|
34664
34679
|
"sort-options": a.sortLabels.sortOptions,
|
|
@@ -34707,6 +34722,18 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34707
34722
|
]),
|
|
34708
34723
|
_: 2
|
|
34709
34724
|
}, 1024)) : createCommentVNode("", !0)
|
|
34725
|
+
]),
|
|
34726
|
+
createElementVNode("div", _hoisted_7, [
|
|
34727
|
+
g.categoryCard && e.cardCategoryLabels[g.categoryCard] ? (openBlock(), createBlock(unref(VsBadge), {
|
|
34728
|
+
key: 0,
|
|
34729
|
+
variant: "highlight",
|
|
34730
|
+
class: "rounded-top-start rounded-bottom-start mx-0"
|
|
34731
|
+
}, {
|
|
34732
|
+
default: withCtx(() => [
|
|
34733
|
+
createTextVNode(toDisplayString(e.cardCategoryLabels[g.categoryCard]), 1)
|
|
34734
|
+
]),
|
|
34735
|
+
_: 2
|
|
34736
|
+
}, 1024)) : createCommentVNode("", !0)
|
|
34710
34737
|
])
|
|
34711
34738
|
])
|
|
34712
34739
|
]),
|
|
@@ -34731,14 +34758,14 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34731
34758
|
}, 1024),
|
|
34732
34759
|
createVNode(unref(VsBody), null, {
|
|
34733
34760
|
default: withCtx(() => [
|
|
34734
|
-
createElementVNode("p",
|
|
34761
|
+
createElementVNode("p", _hoisted_8, toDisplayString(g.description), 1)
|
|
34735
34762
|
]),
|
|
34736
34763
|
_: 2
|
|
34737
34764
|
}, 1024)
|
|
34738
34765
|
]),
|
|
34739
34766
|
"vs-card-footer": withCtx(() => [
|
|
34740
|
-
createElementVNode("div",
|
|
34741
|
-
g.location ? (openBlock(), createElementBlock("div",
|
|
34767
|
+
createElementVNode("div", _hoisted_9, [
|
|
34768
|
+
g.location ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
34742
34769
|
createVNode(unref(VsIcon), {
|
|
34743
34770
|
icon: "fa-solid fa-location-dot",
|
|
34744
34771
|
variant: "highlight",
|
|
@@ -34783,7 +34810,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
34783
34810
|
onPageClick: c
|
|
34784
34811
|
}, null, 8, ["number-of-pages", "next-button-label", "previous-button-label", "page-label", "of-label", "modelValue"])) : createCommentVNode("", !0)
|
|
34785
34812
|
])) : createCommentVNode("", !0),
|
|
34786
|
-
t.value.error ? (openBlock(), createElementBlock("div",
|
|
34813
|
+
t.value.error ? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
34787
34814
|
t.value.error ? (openBlock(), createBlock(unref(VsWarning), { key: 0 }, {
|
|
34788
34815
|
default: withCtx(() => [
|
|
34789
34816
|
createTextVNode(toDisplayString(t.value.message), 1)
|