@visitscotland/component-library 5.23.0 → 5.24.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 +275 -231
- package/dist/client/scripts/{a3e97c60c10b3ad76e2f.js → 04dfed6889eaadd2afd5.js} +1 -1
- package/dist/client/scripts/{8d0c172aab5d45b2bc41.js → 0de83ee7e84dc3cca135.js} +1 -1
- package/dist/client/scripts/{42559a474b2804a2ef3f.js → 132274c6b609dca5f479.js} +1 -1
- package/dist/client/scripts/{146a7788732b7f073ac9.js → 1391b44bbf31e0b1501f.js} +1 -1
- package/dist/client/scripts/{9a7a031c09456edd723f.js → 13d89b40b3855cb67bdc.js} +1 -1
- package/dist/client/scripts/{aed57fec3310b073fc33.js → 149849e9e46fa12a6d57.js} +1 -1
- package/dist/client/scripts/{9d925f6e0be9438d2e5c.js → 17f050e8fbf954ca4400.js} +1 -1
- package/dist/client/scripts/{1f7d20ad2ff167cccd22.js → 182fd5b73946dcb9dd8b.js} +1 -1
- package/dist/client/scripts/{8c58cc191b05c2f558ac.js → 18b7751ab328bbd3a091.js} +1 -1
- package/dist/client/scripts/{fc97959dce9dda2dc11a.js → 18fdae02c01f35f20b11.js} +1 -1
- package/dist/client/scripts/{81b802ea2916207f135c.js → 19a97f4c8217fe493368.js} +1 -1
- package/dist/client/scripts/{c592599787c03d145be1.js → 209af26331fa5efbb1e0.js} +1 -1
- package/dist/client/scripts/{76d26245acab574ef686.js → 2122d479f8a8a3d5a02e.js} +1 -1
- package/dist/client/scripts/{aa616129871359f2cb74.js → 220d28a699f7c8ff1752.js} +1 -1
- package/dist/client/scripts/{9c73a74feb95975d89b6.js → 22e270f311f56a5407cb.js} +1 -1
- package/dist/client/scripts/{de8379d49d1684fc4ea7.js → 23b4b0e265088d24449e.js} +1 -1
- package/dist/client/scripts/{007e4562cff1a54b02d9.js → 23c68f0836ee164afc97.js} +1 -1
- package/dist/client/scripts/{374fbb8f39b0672b5a85.js → 241c1a4f2b23f6d1d4ca.js} +1 -1
- package/dist/client/scripts/{da2d0bad15502f642e88.js → 2862716c5f1748b88abf.js} +1 -1
- package/dist/client/scripts/{56000e1be4f5b5ee26e3.js → 2cd9d0c7890646526851.js} +1 -1
- package/dist/client/scripts/{e4b7f9b929fa7ffd18b6.js → 2e92c9f1881a5f4f24d8.js} +1 -1
- package/dist/client/scripts/{62692e24cd12d7a92546.js → 2f0aa96a3867425b917c.js} +1 -1
- package/dist/client/scripts/2fefcc676eaf5c194a88.js +1 -0
- package/dist/client/scripts/{16b1a7bc59585986841b.js → 382fbb35d40be45010f0.js} +1 -1
- package/dist/client/scripts/{9d42e9cf5e48de126191.js → 38318d710c41e17d02b6.js} +1 -1
- package/dist/client/scripts/{199207d8c2e1af121651.js → 38efb2b25829632c19c8.js} +1 -1
- package/dist/client/scripts/3967efd5a872171e7230.js +1 -0
- package/dist/client/scripts/{4089fbd8d035100ba7f5.js → 3997e6bfb2077648fae3.js} +1 -1
- package/dist/client/scripts/{dcf64999b503edb565e5.js → 3abc2630f32e1ddf96d3.js} +1 -1
- package/dist/client/scripts/{5885705c1c9eb569d29b.js → 3e5daaae9842486f22de.js} +1 -1
- package/dist/client/scripts/{5679716ad3929dc02e9b.js → 41046f754522e73a8099.js} +1 -1
- package/dist/client/scripts/{5d524bc7f9489178b799.js → 43f8d26f8aecf79a4b3a.js} +1 -1
- package/dist/client/scripts/{103cbd6c19dc19f4560d.js → 4626c48ced549c077e3e.js} +1 -1
- package/dist/client/scripts/{dd95a416ea663fd39fa9.js → 4adaa88e55937e122c02.js} +1 -1
- package/dist/client/scripts/{651cd001c07e54d94f38.js → 4db66c860932e8c611a3.js} +1 -1
- package/dist/client/scripts/{5a6ce1fbd53969a8f5bd.js → 529a6860261e6074f3d1.js} +1 -1
- package/dist/client/scripts/52a60d01bd3692b1ce94.js +1 -0
- package/dist/client/scripts/{cf3bade94795569c5f4e.js → 52ead081f08a937878ce.js} +1 -1
- package/dist/client/scripts/{f1ee7dc40b24ea9dbee7.js → 531fe01149ba3d42eb15.js} +1 -1
- package/dist/client/scripts/{3a3278ca3cb4cc4a6cd6.js → 55b1f27dcbab64e7f0b4.js} +1 -1
- package/dist/client/scripts/{d533ec9e239e1c9aa78c.js → 58473b34392d3edecc6c.js} +1 -1
- package/dist/client/scripts/{c0c2f387bd011b266c40.js → 5c2b82e012d3f482ead3.js} +1 -1
- package/dist/client/scripts/5d77baf679acca21e6b1.js +1 -0
- package/dist/client/scripts/{37fe2c4745530371e370.js → 607805f92c511232d42e.js} +1 -1
- package/dist/client/scripts/{398c7026bf99c5123f33.js → 61e2b5d6d91ac1f79caa.js} +1 -1
- package/dist/client/scripts/{89f02ff9d47a9e976bed.js → 6a18930893f1bec771d8.js} +1 -1
- package/dist/client/scripts/{106e685170dbd0b59c1a.js → 72023fec5495894212b0.js} +1 -1
- package/dist/client/scripts/{7f373c2c5b73adedf67b.js → 759c19d24a0142a36400.js} +1 -1
- package/dist/client/scripts/{0887a6325eaa6c7fb1df.js → 7623efe03b36f0ed4aed.js} +1 -1
- package/dist/client/scripts/{af98b51a0b9e42f3e4b8.js → 765f9a1a768ec5285799.js} +1 -1
- package/dist/client/scripts/{6e2fc85132c91a227207.js → 784d227f712ddb91cb2a.js} +1 -1
- package/dist/client/scripts/{c095fb3ef021232748ed.js → 78b5052753a730211f39.js} +1 -1
- package/dist/client/scripts/{abbb14aa2d1dea4bb18f.js → 7c55ed358f5750245829.js} +1 -1
- package/dist/client/scripts/{3962d3f49d34e6147db4.js → 830e7f83c507e3b81403.js} +1 -1
- package/dist/client/scripts/{d6266086f79e9b61f139.js → 83df837d0feb863dfcd9.js} +1 -1
- package/dist/client/scripts/{5639102c7c1eced610cc.js → 886d531d72735c6d34f0.js} +1 -1
- package/dist/client/scripts/{bac63bf3c6aac3e60bf6.js → 8bff3de4212bafab4077.js} +1 -1
- package/dist/client/scripts/{6900aa5071b5ff0dbd5e.js → 8ce2d092e29a43286f3c.js} +1 -1
- package/dist/client/scripts/{ff1310b2811f25bbeeb2.js → 958dc3347b4c79ae92f0.js} +1 -1
- package/dist/client/scripts/{cf83a12e3febb62030a6.js → 95fdb3db9a322815f9eb.js} +1 -1
- package/dist/client/scripts/{e2eefa435e886ed26ae1.js → 967b8f5dde3c44052690.js} +1 -1
- package/dist/client/scripts/{f5591bcd0121129cee20.js → 9a3456d670f8b4d54fa7.js} +1 -1
- package/dist/client/scripts/{6298f0f6f19c8787bf62.js → 9a83b42dbc369d0277e6.js} +1 -1
- package/dist/client/scripts/{55002287d1b2302c7493.js → 9ff8d41b245f1db95004.js} +1 -1
- package/dist/client/scripts/{d36b477b17d576f42470.js → a397c46fe765889eba59.js} +1 -1
- package/dist/client/scripts/{0fff948c06d498dab28e.js → a585646927dbdd2ddeb7.js} +1 -1
- package/dist/client/scripts/{2037ef46a5d25a2c0e6a.js → a6130794c1d33d80488a.js} +1 -1
- package/dist/client/scripts/a76283950fdef327c229.js +1 -0
- package/dist/client/scripts/{b159f254ba21c175ebaf.js → a9f6a27b30316374112d.js} +1 -1
- package/dist/client/scripts/{f2da2e7e9190afe01c44.js → ab4c23c9be69cc8dc10a.js} +1 -1
- package/dist/client/scripts/{1ebff55e007c5c454b07.js → ac814e350b080b08f5fe.js} +1 -1
- package/dist/client/scripts/{b8242eaf85c9b74fa30e.js → adc43fc9fa9ee3c85f21.js} +1 -1
- package/dist/client/scripts/{3d6fa09609994739558c.js → b12061cee6bd7ef0da0b.js} +1 -1
- package/dist/client/scripts/{638692101b9d9dfdc1d6.js → b1786948f0135f272a09.js} +1 -1
- package/dist/client/scripts/{b6c924ab21e8d58165f5.js → b43eabedc3d8cb405b13.js} +1 -1
- package/dist/client/scripts/{e7cd188c1136ae7592c3.js → bff2361f88ee3867b9b5.js} +1 -1
- package/dist/client/scripts/{6d50b9e4a0565ec4943a.js → c0448d3c462e3deb1993.js} +1 -1
- package/dist/client/scripts/{51315e36340c53f063fc.js → c21a6c36e3568bdc534f.js} +1 -1
- package/dist/client/scripts/{8a132f49b6438c3e6199.js → c44d2718bc46a06944c9.js} +1 -1
- package/dist/client/scripts/{d8f36385fae4848561e8.js → c4552846f303aee84135.js} +1 -1
- package/dist/client/scripts/{caf6635086311851e950.js → c6fcd69688050e54270d.js} +1 -1
- package/dist/client/scripts/{0b79aed9c15439a99c5d.js → c92d18059ca7a5fa187e.js} +1 -1
- package/dist/client/scripts/{d74be1fa75da38558d7d.js → cb07489d6437a30e034f.js} +1 -1
- package/dist/client/scripts/{8639d59dae6f1a74b000.js → d0754b4aa24deddb7245.js} +1 -1
- package/dist/client/scripts/{59b4f7ede0b3088572cf.js → d870fb064aba8e31a918.js} +1 -1
- package/dist/client/scripts/{18d9dbc8a9d6b94e5bf6.js → e0f5acc47ed5ca962695.js} +1 -1
- package/dist/client/scripts/{56c9d0f0db785320750c.js → e31c75f05ebcf9568c26.js} +1 -1
- package/dist/client/scripts/{a0c2c5262c2ab7da758e.js → e6d875a37c62f3d3e561.js} +1 -1
- package/dist/client/scripts/{df6b619167c890e7d0cc.js → e72a9fa25e0cb614b047.js} +1 -1
- package/dist/client/scripts/{de0b09e99f813b8fe792.js → e8055817c34ca7f2e0d1.js} +1 -1
- package/dist/client/scripts/{f9a0a43a90a06002faf3.js → e84e2c99fac618724a6b.js} +1 -1
- package/dist/client/scripts/{81c486cd9acd708e4bf4.js → eab0059cfa57db0af11c.js} +1 -1
- package/dist/client/scripts/{3468d58c61072a8d8ddd.js → eb9ab6dd707734630876.js} +1 -1
- package/dist/client/scripts/{bc9e414ed8dcc3e173b4.js → eda3d84b5c7ef1cf832f.js} +1 -1
- package/dist/client/scripts/{2f413547c2bdbc648a7b.js → f2a2f7927eed677de0fb.js} +1 -1
- package/dist/client/scripts/{de42032ae3ef8b7617db.js → f446782fd7a7a2f8aaef.js} +1 -1
- package/dist/client/scripts/{de5c5eb1ee95c961893b.js → faad944c2028ee77bd1c.js} +1 -1
- package/dist/client/scripts/{dba10c026b8321623d2e.js → feeecf83bdc1c651376a.js} +1 -1
- package/dist/client/styles/5d77baf679acca21e6b1.css +1 -0
- package/dist/components/src/components/illustrated-map/IllustratedMap.vue.d.ts +75 -0
- package/dist/components/src/components/index.d.ts +1 -0
- package/dist/components/src/components/media-caption/index.d.ts +5 -0
- package/dist/components/style.css +1 -1
- package/dist/components/vs-component-library.js +27 -27
- package/dist/components/vs-component-library.mjs +437 -300
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{cd91cd75ad48ccd0752f.css → 6cc3219c77acff32fadd.css} +1 -0
- package/package.json +1 -1
- package/dist/client/scripts/4714fa29a82e1177d216.js +0 -1
- package/dist/client/scripts/59a76a459d32044ea545.js +0 -1
- package/dist/client/scripts/91501cfefb3e9beeffa4.js +0 -1
- /package/dist/client/styles/{42559a474b2804a2ef3f.css → 132274c6b609dca5f479.css} +0 -0
- /package/dist/client/styles/{199207d8c2e1af121651.css → 38efb2b25829632c19c8.css} +0 -0
- /package/dist/client/styles/{4714fa29a82e1177d216.css → 3967efd5a872171e7230.css} +0 -0
- /package/dist/client/styles/{91501cfefb3e9beeffa4.css → 52a60d01bd3692b1ce94.css} +0 -0
- /package/dist/client/styles/{d8f36385fae4848561e8.css → c4552846f303aee84135.css} +0 -0
- /package/dist/client/styles/{dba10c026b8321623d2e.css → feeecf83bdc1c651376a.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearchSummaryBox=n():e.VsCannedSearchSummaryBox=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7330],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearchSummaryBox=n():e.VsCannedSearchSummaryBox=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7330],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8638,2368,7521,1438,5676,4145],(function(){return e(e.s=34145)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSkipTo=t():e.VsSkipTo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3340],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSkipTo=t():e.VsSkipTo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3340],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676,6175],(function(){return e(e.s=16175)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsItineraryDay=t():e.VsItineraryDay=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3317],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsItineraryDay=t():e.VsItineraryDay=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3317],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,8638,2368,3838,7521,1438,7275,9810,2761],(function(){return e(e.s=62761)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsModuleWrapper=t():e.VsModuleWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9895],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,3838,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsModuleWrapper=t():e.VsModuleWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9895],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,2368,3838,7521,1438,4580,4179],(function(){return e(e.s=34179)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialShareItem=t():e.VsSocialShareItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2053],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialShareItem=t():e.VsSocialShareItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2053],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8638,2368,7521,1438,5676,5807],(function(){return e(e.s=5807)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5734],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5734],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,4982,6422,8745,8836,8638,2368,7521,1438,4580,9122,1459,6649],(function(){return e(e.s=66649)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearch=n():e.VsCannedSearch=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9709],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearch=n():e.VsCannedSearch=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9709],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,7536,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,4179,6086,3990,680,4409,4145,922,1086,6665,6618,1389,9621,4029,3350,9146,6838,4879,625],(function(){return e(e.s=70625)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearchLogos=n():e.VsCannedSearchLogos=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1979],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearchLogos=n():e.VsCannedSearchLogos=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1979],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,1574,6086,922],(function(){return e(e.s=50922)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavAccordionItem=t():e.VsMegaNavAccordionItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7518],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavAccordionItem=t():e.VsMegaNavAccordionItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7518],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,5676,7275,9810,8693],(function(){return e(e.s=88693)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsMegalinkSingleImage=n():e.VsMegalinkSingleImage=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6499],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsMegalinkSingleImage=n():e.VsMegalinkSingleImage=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6499],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,1161,3603],(function(){return e(e.s=23603)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsIllustratedMap=t():e.VsIllustratedMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4321],{},function(e){return e.O(0,[641,6262,7510,8759],(function(){return e(e.s=28759)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNav=t():e.VsMegaNav=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[823],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNav=t():e.VsMegaNav=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[823],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,2543,3453,281,4982,6422,8745,8836,8638,2368,7521,1438,5676,4282,2142,4448,6494,7553,2152,7033,4953,1718,7311],(function(){return e(e.s=99692)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegalinkLinkList=t():e.VsMegalinkLinkList=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5328],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegalinkLinkList=t():e.VsMegalinkLinkList=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5328],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,4580,5676,1574,9122,5921,1459,7957,9116,1454,6641],(function(){return e(e.s=6641)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMap=t():e.VsMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[888],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMap=t():e.VsMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[888],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,3777,4982,6422,8745,8836,4580,9122,5025,2536,7539,681,4079],(function(){return e(e.s=81610)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorResults=t():e.VsCarbonCalculatorResults=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8749],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorResults=t():e.VsCarbonCalculatorResults=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8749],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,8795,4982,6422,8745,8638,2368,3838,7521,1438,4828],(function(){return e(e.s=34828)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsLinkListItem=t():e.VsLinkListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1803],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsLinkListItem=t():e.VsLinkListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1803],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676,5921,3609],(function(){return e(e.s=83609)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavFeaturedItem=t():e.VsMegaNavFeaturedItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4716],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavFeaturedItem=t():e.VsMegaNavFeaturedItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4716],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,4580,5676,1574,9122,5921,1459,7957,9116,6241],(function(){return e(e.s=56241)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedSearchSort=t():e.VsFedSearchSort=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2627],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedSearchSort=t():e.VsFedSearchSort=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2627],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,2543,3453,281,4982,6422,8745,8836,8638,2368,4282,2142,2710,3130,2989,5965],(function(){return e(e.s=35965)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavStaticLink=t():e.VsMegaNavStaticLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4053],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNavStaticLink=t():e.VsMegaNavStaticLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4053],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676,2612],(function(){return e(e.s=82612)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMapWithSidebarListItem=t():e.VsMapWithSidebarListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7929],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMapWithSidebarListItem=t():e.VsMapWithSidebarListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7929],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,1574,7539,2552],(function(){return e(e.s=22552)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCannedSearchProductCard=t():e.VsCannedSearchProductCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[132],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCannedSearchProductCard=t():e.VsCannedSearchProductCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[132],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8638,3838,5676,1574,4409],(function(){return e(e.s=44409)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedFilter=t():e.VsFedFilter=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7409],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedFilter=t():e.VsFedFilter=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7409],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,4982,6422,8745,8836,4580,555],(function(){return e(e.s=30555)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFederatedSearch=t():e.VsFederatedSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1746],{39535:function(e,t,a){"use strict";a.d(t,{A:function(){return r.A}});var r=a(77891)},49439:function(e,t,a){"use strict";a.r(t);var r=a(39535);a(62282);const s=r.A;t.default=s},62282:function(e,t,a){"use strict";a(65718)},65718:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),o=a.n(n),l=a(77659),i=a.n(l),u=a(55056),c=a.n(u),d=a(10540),g=a.n(d),f=a(41113),p=a.n(f),y=a(89432),v=a.n(y),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=i().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=g(),s()(v(),b),v()&&v().locals&&v().locals},77891:function(e,t,a){"use strict";var r=a(10467),s=a(54756),n=a.n(s),o=a(20641),l=a(50953),i=a(53751),u=a(90033),c=a(12903),d=a(66239),g=a(1780),f=a(72989),p=a.n(f),y=a(58995),v=a(35965),b=a(75520),m={class:"vs-federated-search","data-test":"vs-federated-search"},h={class:"vs-federated-search__container"},_={key:0,class:"vs-federated-search__results","data-chromatic":"ignore"},k={key:2,"data-chromatic":"ignore"},R={class:"position-relative"},C={class:"position-absolute bottom-0 start-0 d-flex gap-2"},L={class:"position-absolute bottom-0 end-0 d-flex"},S={class:"truncate-3-lines text-break"},D={class:"d-flex justify-content-end align-items-end mt-050"},E={key:0,class:"d-flex align-items-start flex-grow-1"},I={key:3,class:"vs-federated-search__warning mb-300"};t.A={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:(0,d.A)("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number((0,d.A)("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number((0,d.A)("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:(0,d.A)("EVENTS_API_URL")},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:function(){}},siteLanguage:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}}},setup:function(e){var t=(0,b.A)(),a=p()(),s=(0,l.KR)({message:"",error:!1}),d=e,f=(0,l.KR)(!1),x=(0,o.EW)((function(){var e;return a.selectedCategoryKey?"events"!==a.selectedCategoryKey?e=Math.ceil(a.totalResultsCludo/12):"events"===a.selectedCategoryKey&&(e=Math.ceil(a.totalResultsEvents/12)):e=a.totalResultsCludo>=a.totalResultsEvents?Math.ceil(a.totalResultsCludo/6):Math.ceil(a.totalResultsEvents/6),e}));function A(){a.endDate&&a.startDate>a.endDate?(s.value.error=!0,s.value.message=d.errorMessages.incorrectDateOrder):"events"===a.selectedCategoryKey&&a.eventsApiError&&!a.isLoading?(s.value.error=!0,s.value.message=d.errorMessages.eventError):(a.searchTerm||a.selectedCategory)&&"events"!==a.selectedCategoryKey&&a.cludoError&&!a.isLoading?(s.value.error=!0,s.value.message=d.errorMessages.cludoError):0!==a.totalResults||a.isLoading?(s.value.error=!1,s.value.message=""):(s.value.error=!0,s.value.message=d.errorMessages.noResults)}function V(e){a.startDate=e,a.navigateToResultsPage(!0)}function w(e){a.endDate=e,a.navigateToResultsPage(!0)}function W(e){a.sortBy=e,a.navigateToResultsPage(!0)}function F(e){var r,s=!1;e>a.currentPage&&(s=!0),a.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),a.navigateToResultsPage(),r=s,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:a.searchTerm,page_number:a.currentPage,page_navigation_direction:r?"forward":"back",search_usage_index:a.searchInSessionCount,results_count:a.totalResults,query_input:a.queryInput})}function O(e){if(e.url)return e.url;if(e.placeUrl)return e.placeUrl;var t=encodeURIComponent(e.title.replaceAll(" ","-").toLowerCase());return"".concat("https://www.datathistle.com/event/").concat(e.parentId,"-").concat(t)}return(0,o.sV)((0,r.A)(n().mark((function e(){var r,s,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),a.cludoCredentials={apiKey:d.cludoApiKey,customerId:d.cludoCustomerId,engineId:d.cludoEngineId},a.eventsApi=d.eventsApi,a.filters=d.filters,a.siteLanguage=d.siteLanguage,A(),"undefined"==typeof window||"undefined"==typeof document){e.next=2;break}return window.onbeforeunload=function(){f.value||t.createDataLayerObject("siteSearchCloseEvent",{search_query:a.searchTerm,search_usage_index:a.searchInSessionCount,query_input:a.queryInput,page_number:a.currentPage,results_count:a.totalResults})},r=new URLSearchParams(document.location.search),s=r.get("search-term"),(o=parseInt(r.get("page"),10))&&(a.currentPage=o),s&&(a.searchTerm=s),e.next=1,a.getSearchResults();case 1:s&&t.createDataLayerObject("siteSearchUsageEvent",{search_query:a.searchTerm,query_input:a.queryInput,results_count:a.totalResults,search_usage_index:a.searchInSessionCount,search_type:"initial",search_origin:"home_page"});case 2:case"end":return e.stop()}}),e)})))),(0,o.$u)((function(){A()})),function(r,n){return(0,o.uX)(),(0,o.CE)("div",m,[(0,o.Lk)("div",h,[(0,o.bF)(y.default,{"cludo-api-key":d.cludoApiKey,"cludo-customer-id":d.cludoCustomerId,"cludo-engine-id":d.cludoEngineId,filters:d.filters,"sub-filters":d.subFilters,labels:d.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","filters","sub-filters","labels"]),(0,o.bF)(g.default,{class:"my-200"}),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,l.R1)(a).filters,(function(e,t){return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{key:t,class:"mb-200"},[(0,o.RG)(r.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[i.vShow,(0,l.R1)(a).selectedCategoryKey===e.Key]])})),128)),(0,l.R1)(a).results?((0,o.uX)(),(0,o.CE)("div",_,[(0,o.Lk)("div",null,[(0,o.bF)((0,l.R1)(c.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.searchResults),1)]})),_:1}),0!==(0,l.R1)(a).totalResults?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsDetail),{key:0},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.resultsFirst)+" "+(0,u.toDisplayString)((0,l.R1)(a).totalResults)+" "+(0,u.toDisplayString)(d.searchLabels.resultsSecond),1)]})),_:1})):(0,o.Q3)("",!0)]),"events"===(0,l.R1)(a).selectedCategoryKey?((0,o.uX)(),(0,o.Wv)(v.default,{key:0,"date-filter-visible":!0,"sort-options":d.sortLabels.sortOptions,"from-date-label":d.sortLabels.dateFrom,"to-date-label":d.sortLabels.dateTo,"sort-label":d.sortLabels.sort,onFromDateUpdated:V,onEndDateUpdated:w,onSortOrderUpdated:W},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),(0,l.R1)(a).isLoading?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsLoadingSpinner),{key:1})):(0,o.Q3)("",!0),(0,l.R1)(a).isLoading||!(0,l.R1)(a).results||(0,l.R1)(a).eventsApiError?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",k,[(0,o.bF)((0,l.R1)(c.VsCardGroup),{"cards-per-row":3,class:(0,u.normalizeClass)((0,l.R1)(a).results&&x.value<=1?"mb-300":null)},{default:(0,o.k6)((function(){return[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,l.R1)(a).results,(function(r){return(0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsCard),{key:r.id},{"vs-card-header":(0,o.k6)((function(){return[(0,o.Lk)("div",R,[(0,o.bF)((0,l.R1)(c.VsImg),{src:r.imgSrc||"https://static.visitscotland.com/img/fallback-img.png",class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),(0,o.Lk)("div",C,[r.minPrice?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.fromText)+" "+(0,u.toDisplayString)((e=r.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,o.Q3)("",!0),r.startDate?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)((e=r.startDate,t=r.endDate,e===t?e:"".concat(e," - ").concat(t))),1)];var e,t})),_:2},1024)):(0,o.Q3)("",!0)]),(0,o.Lk)("div",L,[r.categoryCard&&e.cardCategoryLabels[r.categoryCard]?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(e.cardCategoryLabels[r.categoryCard]),1)]})),_:2},1024)):(0,o.Q3)("",!0)])])]})),"vs-card-body":(0,o.k6)((function(){return[(0,o.bF)((0,l.R1)(c.VsHeading),{level:"3","heading-style":"heading-xs"},{default:(0,o.k6)((function(){return[(0,o.bF)((0,l.R1)(c.VsLink),{href:O(r),onClick:function(e){return function(e){f.value=!0,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:a.searchTerm,page_number:a.currentPage,click_text:e.title,click_url:O(e),click_category:e.categoryCard&&d.cardCategoryLabels[e.categoryCard]?d.cardCategoryLabels[e.categoryCard]:"",search_usage_index:a.searchInSessionCount,results_count:a.totalResults,query_input:a.queryInput})}(r)},class:"stretched-link",variant:"secondary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(r.title),1)]})),_:2},1032,["href","onClick"])]})),_:2},1024),(0,o.bF)((0,l.R1)(c.VsBody),null,{default:(0,o.k6)((function(){return[(0,o.Lk)("p",S,(0,u.toDisplayString)(r.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,o.k6)((function(){return[(0,o.Lk)("div",D,[r.location?((0,o.uX)(),(0,o.CE)("div",E,[(0,o.bF)((0,l.R1)(c.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),(0,o.bF)((0,l.R1)(c.VsDetail),{"no-margins":"",color:"tertiary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(r.location),1)]})),_:2},1024)])):(0,o.Q3)("",!0),(0,o.Lk)("div",null,["data-thistle"===r.dataSrc?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):(0,o.Q3)("",!0)])])]})),_:2},1024)})),128))]})),_:1},8,["class"]),(0,l.R1)(a).results&&x.value>1?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":x.value,"next-button-label":d.paginationLabels.nextButtonLabel,"previous-button-label":d.paginationLabels.previousButtonLabel,"page-label":d.paginationLabels.pageLabel,"of-label":d.paginationLabels.ofLabel,modelValue:(0,l.R1)(a).currentPage,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,l.R1)(a).currentPage=e}),onPageClick:F},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,o.Q3)("",!0)])),s.value.error?((0,o.uX)(),(0,o.CE)("div",I,[s.value.error?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsWarning),{key:0},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(s.value.message),1)]})),_:1})):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0)]),(0,o.bF)((0,l.R1)(c.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js mb-300"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.noJs),1)]})),_:1})])}}}},89432:function(){}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,4982,6422,8745,8836,8638,3838,2368,7521,1438,4580,5676,1574,9122,4282,1459,5921,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,3614,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,680,4828,459,2329,4409,6358,1696,80,2152,4145,922,4433,2822,8258,1086,1154,8533,4681,71,7033,7894,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,1120,47,9464,9177,9839,625,6004,5513,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,6649,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,4232,6431,3609,2759,7848,6241,8817,8570,815,4061,9323,9923,3731,2837,3914,5577,3650,2612,6283,9783,7969,9280,4036,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995,5965,1780],(function(){return e(e.s=49439)})),e.O()}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFederatedSearch=t():e.VsFederatedSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1746],{39535:function(e,t,a){"use strict";a.d(t,{A:function(){return r.A}});var r=a(77891)},49439:function(e,t,a){"use strict";a.r(t);var r=a(39535);a(62282);const s=r.A;t.default=s},62282:function(e,t,a){"use strict";a(65718)},65718:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),o=a.n(n),l=a(77659),i=a.n(l),u=a(55056),c=a.n(u),d=a(10540),g=a.n(d),f=a(41113),p=a.n(f),y=a(89432),v=a.n(y),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=i().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=g(),s()(v(),b),v()&&v().locals&&v().locals},77891:function(e,t,a){"use strict";var r=a(10467),s=a(54756),n=a.n(s),o=a(20641),l=a(50953),i=a(53751),u=a(90033),c=a(12903),d=a(66239),g=a(1780),f=a(72989),p=a.n(f),y=a(58995),v=a(35965),b=a(75520),m={class:"vs-federated-search","data-test":"vs-federated-search"},h={class:"vs-federated-search__container"},_={key:0,class:"vs-federated-search__results","data-chromatic":"ignore"},k={key:2,"data-chromatic":"ignore"},R={class:"position-relative"},C={class:"position-absolute bottom-0 start-0 d-flex gap-2"},L={class:"position-absolute bottom-0 end-0 d-flex"},S={class:"truncate-3-lines text-break"},D={class:"d-flex justify-content-end align-items-end mt-050"},E={key:0,class:"d-flex align-items-start flex-grow-1"},I={key:3,class:"vs-federated-search__warning mb-300"};t.A={__name:"FederatedSearch",props:{cludoApiKey:{type:String,default:(0,d.A)("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number((0,d.A)("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number((0,d.A)("CLUDO_ENGINE_ID"))},eventsApi:{type:String,default:(0,d.A)("EVENTS_API_URL")},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},errorMessages:{type:Object,required:!0},fromText:{type:String,default:""},paginationLabels:{type:Object,required:!0},searchLabels:{type:Object,required:!0},sortLabels:{type:Object,required:!0},cardCategoryLabels:{type:Object,required:!0,default:function(){}},siteLanguage:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}}},setup:function(e){var t=(0,b.A)(),a=p()(),s=(0,l.KR)({message:"",error:!1}),d=e,f=(0,l.KR)(!1),x=(0,o.EW)((function(){var e;return a.selectedCategoryKey?"events"!==a.selectedCategoryKey?e=Math.ceil(a.totalResultsCludo/12):"events"===a.selectedCategoryKey&&(e=Math.ceil(a.totalResultsEvents/12)):e=a.totalResultsCludo>=a.totalResultsEvents?Math.ceil(a.totalResultsCludo/6):Math.ceil(a.totalResultsEvents/6),e}));function A(){a.endDate&&a.startDate>a.endDate?(s.value.error=!0,s.value.message=d.errorMessages.incorrectDateOrder):"events"===a.selectedCategoryKey&&a.eventsApiError&&!a.isLoading?(s.value.error=!0,s.value.message=d.errorMessages.eventError):(a.searchTerm||a.selectedCategory)&&"events"!==a.selectedCategoryKey&&a.cludoError&&!a.isLoading?(s.value.error=!0,s.value.message=d.errorMessages.cludoError):0!==a.totalResults||a.isLoading?(s.value.error=!1,s.value.message=""):(s.value.error=!0,s.value.message=d.errorMessages.noResults)}function V(e){a.startDate=e,a.navigateToResultsPage(!0)}function w(e){a.endDate=e,a.navigateToResultsPage(!0)}function W(e){a.sortBy=e,a.navigateToResultsPage(!0)}function F(e){var r,s=!1;e>a.currentPage&&(s=!0),a.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),a.navigateToResultsPage(),r=s,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:a.searchTerm,page_number:a.currentPage,page_navigation_direction:r?"forward":"back",search_usage_index:a.searchInSessionCount,results_count:a.totalResults,query_input:a.queryInput})}function O(e){if(e.url)return e.url;if(e.placeUrl)return e.placeUrl;var t=encodeURIComponent(e.title.replaceAll(" ","-").toLowerCase());return"".concat("https://www.datathistle.com/event/").concat(e.parentId,"-").concat(t)}return(0,o.sV)((0,r.A)(n().mark((function e(){var r,s,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),a.cludoCredentials={apiKey:d.cludoApiKey,customerId:d.cludoCustomerId,engineId:d.cludoEngineId},a.eventsApi=d.eventsApi,a.filters=d.filters,a.siteLanguage=d.siteLanguage,A(),"undefined"==typeof window||"undefined"==typeof document){e.next=2;break}return window.onbeforeunload=function(){f.value||t.createDataLayerObject("siteSearchCloseEvent",{search_query:a.searchTerm,search_usage_index:a.searchInSessionCount,query_input:a.queryInput,page_number:a.currentPage,results_count:a.totalResults})},r=new URLSearchParams(document.location.search),s=r.get("search-term"),(o=parseInt(r.get("page"),10))&&(a.currentPage=o),s&&(a.searchTerm=s),e.next=1,a.getSearchResults();case 1:s&&t.createDataLayerObject("siteSearchUsageEvent",{search_query:a.searchTerm,query_input:a.queryInput,results_count:a.totalResults,search_usage_index:a.searchInSessionCount,search_type:"initial",search_origin:"home_page"});case 2:case"end":return e.stop()}}),e)})))),(0,o.$u)((function(){A()})),function(r,n){return(0,o.uX)(),(0,o.CE)("div",m,[(0,o.Lk)("div",h,[(0,o.bF)(y.default,{"cludo-api-key":d.cludoApiKey,"cludo-customer-id":d.cludoCustomerId,"cludo-engine-id":d.cludoEngineId,filters:d.filters,"sub-filters":d.subFilters,labels:d.searchLabels},null,8,["cludo-api-key","cludo-customer-id","cludo-engine-id","filters","sub-filters","labels"]),(0,o.bF)(g.default,{class:"my-200"}),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,l.R1)(a).filters,(function(e,t){return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{key:t,class:"mb-200"},[(0,o.RG)(r.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[i.vShow,(0,l.R1)(a).selectedCategoryKey===e.Key]])})),128)),(0,l.R1)(a).results?((0,o.uX)(),(0,o.CE)("div",_,[(0,o.Lk)("div",null,[(0,o.bF)((0,l.R1)(c.VsHeading),{"heading-style":"heading-m",level:2,class:"my-0"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.searchResults),1)]})),_:1}),0!==(0,l.R1)(a).totalResults?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsDetail),{key:0},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.resultsFirst)+" "+(0,u.toDisplayString)((0,l.R1)(a).totalResults)+" "+(0,u.toDisplayString)(d.searchLabels.resultsSecond),1)]})),_:1})):(0,o.Q3)("",!0)]),"events"===(0,l.R1)(a).selectedCategoryKey?((0,o.uX)(),(0,o.Wv)(v.default,{key:0,"date-filter-visible":!0,"sort-options":d.sortLabels.sortOptions,"from-date-label":d.sortLabels.dateFrom,"to-date-label":d.sortLabels.dateTo,"sort-label":d.sortLabels.sort,onFromDateUpdated:V,onEndDateUpdated:w,onSortOrderUpdated:W},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),(0,l.R1)(a).isLoading?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsLoadingSpinner),{key:1})):(0,o.Q3)("",!0),(0,l.R1)(a).isLoading||!(0,l.R1)(a).results||(0,l.R1)(a).eventsApiError?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",k,[(0,o.bF)((0,l.R1)(c.VsCardGroup),{"cards-per-row":3,class:(0,u.normalizeClass)((0,l.R1)(a).results&&x.value<=1?"mb-300":null)},{default:(0,o.k6)((function(){return[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)((0,l.R1)(a).results,(function(r){return(0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsCard),{key:r.id},{"vs-card-header":(0,o.k6)((function(){return[(0,o.Lk)("div",R,[(0,o.bF)((0,l.R1)(c.VsImg),{src:r.imgSrc||"https://static.visitscotland.com/img/fallback-img.png",class:"w-100 aspect-ratio-3-2 rounded-1 object-fit-cover img-zoom-on-hover"},null,8,["src"]),(0,o.Lk)("div",C,[r.minPrice?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:0,variant:"information",class:"rounded-top-end rounded-bottom-start"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.fromText)+" "+(0,u.toDisplayString)((e=r.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,o.Q3)("",!0),r.startDate?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:1,variant:"information",class:"rounded-top-end rounded-top-start"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)((e=r.startDate,t=r.endDate,e===t?e:"".concat(e," - ").concat(t))),1)];var e,t})),_:2},1024)):(0,o.Q3)("",!0)]),(0,o.Lk)("div",L,[r.categoryCard&&e.cardCategoryLabels[r.categoryCard]?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsBadge),{key:0,variant:"highlight",class:"rounded-top-start rounded-bottom-start mx-0"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(e.cardCategoryLabels[r.categoryCard]),1)]})),_:2},1024)):(0,o.Q3)("",!0)])])]})),"vs-card-body":(0,o.k6)((function(){return[(0,o.bF)((0,l.R1)(c.VsHeading),{level:"3","heading-style":"heading-xs"},{default:(0,o.k6)((function(){return[(0,o.bF)((0,l.R1)(c.VsLink),{href:O(r),onClick:function(e){return function(e){f.value=!0,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:a.searchTerm,page_number:a.currentPage,click_text:e.title,click_url:O(e),click_category:e.categoryCard&&d.cardCategoryLabels[e.categoryCard]?d.cardCategoryLabels[e.categoryCard]:"",search_usage_index:a.searchInSessionCount,results_count:a.totalResults,query_input:a.queryInput})}(r)},class:"stretched-link",variant:"secondary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(r.title),1)]})),_:2},1032,["href","onClick"])]})),_:2},1024),(0,o.bF)((0,l.R1)(c.VsBody),null,{default:(0,o.k6)((function(){return[(0,o.Lk)("p",S,(0,u.toDisplayString)(r.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,o.k6)((function(){return[(0,o.Lk)("div",D,[r.location?((0,o.uX)(),(0,o.CE)("div",E,[(0,o.bF)((0,l.R1)(c.VsIcon),{icon:"fa-solid fa-location-dot",variant:"highlight",class:"me-050",size:"sm"}),(0,o.bF)((0,l.R1)(c.VsDetail),{"no-margins":"",color:"tertiary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(r.location),1)]})),_:2},1024)])):(0,o.Q3)("",!0),(0,o.Lk)("div",null,["data-thistle"===r.dataSrc?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsIcon),{key:0,icon:"vs-icon-control-external-link",variant:"highlight",size:"sm"})):(0,o.Q3)("",!0)])])]})),_:2},1024)})),128))]})),_:1},8,["class"]),(0,l.R1)(a).results&&x.value>1?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":x.value,"next-button-label":d.paginationLabels.nextButtonLabel,"previous-button-label":d.paginationLabels.previousButtonLabel,"page-label":d.paginationLabels.pageLabel,"of-label":d.paginationLabels.ofLabel,modelValue:(0,l.R1)(a).currentPage,"onUpdate:modelValue":n[0]||(n[0]=function(e){return(0,l.R1)(a).currentPage=e}),onPageClick:F},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,o.Q3)("",!0)])),s.value.error?((0,o.uX)(),(0,o.CE)("div",I,[s.value.error?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsWarning),{key:0},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(s.value.message),1)]})),_:1})):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0)]),(0,o.bF)((0,l.R1)(c.VsWarning),{"data-test":"vs-federated-search__error--no-js",class:"vs-federated-search__error--no-js mb-300"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(d.searchLabels.noJs),1)]})),_:1})])}}}},89432:function(){}},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,5025,7957,9116,7275,4448,9810,8896,3486,378,6494,1244,1688,6216,1454,3614,2491,4900,4360,6305,9856,8861,630,4179,7933,2710,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,680,4828,459,2329,4409,6358,1696,80,2152,4145,922,4433,2822,8258,1086,1154,8533,4681,71,7033,7894,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,1120,47,9464,9177,9839,625,6004,5513,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,4232,6431,3609,2759,7848,6241,8817,8570,815,4061,9323,9923,3731,2837,3914,5577,3650,2612,6283,9783,7969,9280,4036,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995,5965,1780],(function(){return e(e.s=49439)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFooterCopyright=t():e.VsFooterCopyright=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2550],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFooterCopyright=t():e.VsFooterCopyright=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2550],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,2543,4982,6422,8745,8638,2368,7521,1438,5676,6494,7553,8570],(function(){return e(e.s=98570)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsEventCard=t():e.VsEventCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7744],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsEventCard=t():e.VsEventCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7744],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,8638,2368,3838,8573],(function(){return e(e.s=68573)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsAccordionItem=t():e.VsAccordionItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8321],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsAccordionItem=t():e.VsAccordionItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8321],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,7275,9810],(function(){return e(e.s=49810)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsMapWithSidebarButtons=e():t.VsMapWithSidebarButtons=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7019],{},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsMapWithSidebarButtons=e():t.VsMapWithSidebarButtons=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7019],{},function(t){return t.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,3844],(function(){return t(t.s=83844)})),t.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelector=t():e.VsGuestSelector=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3741],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelector=t():e.VsGuestSelector=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3741],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,8896,378,6216,4900],(function(){return e(e.s=34900)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsSpotlightSection=e():t.VsSpotlightSection=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5111],{},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsSpotlightSection=e():t.VsSpotlightSection=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5111],{},function(t){return t.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,4580,3033],(function(){return t(t.s=73033)})),t.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsWarning=n():e.VsWarning=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[758],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsWarning=n():e.VsWarning=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[758],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,4982,6422,8745,8836,4580,9122],(function(){return e(e.s=79122)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialCreditLink=t():e.VsSocialCreditLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[780],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialCreditLink=t():e.VsSocialCreditLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[780],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676,8332],(function(){return e(e.s=8332)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsItineraryStopInfo=t():e.VsItineraryStopInfo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5269],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsItineraryStopInfo=t():e.VsItineraryStopInfo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5269],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676,7097],(function(){return e(e.s=97097)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsLink=t():e.VsLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8930],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsLink=t():e.VsLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8930],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,4982,6422,8745,5676],(function(){return e(e.s=45676)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSvgLink=t():e.VsSvgLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[116],{},function(e){return e.O(0,[641,6262,7510,3751,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSvgLink=t():e.VsSvgLink=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[116],{},function(e){return e.O(0,[641,6262,7510,3751,7527,4467,8086,810,2543,4982,6422,8745,5676,6494,7553],(function(){return e(e.s=47553)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsBackToTop=o():e.VsBackToTop=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9853],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsBackToTop=o():e.VsBackToTop=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9853],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,4670],(function(){return e(e.s=54670)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorQuestion=t():e.VsCarbonCalculatorQuestion=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3953],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorQuestion=t():e.VsCarbonCalculatorQuestion=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3953],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,3453,281,4982,6422,8745,8836,4282,4360,6305,2822],(function(){return e(e.s=12822)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsAccordionToggle=o():e.VsAccordionToggle=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9920],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsAccordionToggle=o():e.VsAccordionToggle=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9920],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,7275],(function(){return e(e.s=17275)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegalinkMultiImage=t():e.VsMegalinkMultiImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9910],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegalinkMultiImage=t():e.VsMegalinkMultiImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9910],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,4580,5676,1574,9122,5921,1459,7957,9116,1454,5809],(function(){return e(e.s=45809)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsTooltip=t():e.VsTooltip=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[687],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsTooltip=t():e.VsTooltip=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[687],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,6086],(function(){return e(e.s=96086)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelectorRow=t():e.VsGuestSelectorRow=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1095],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,
|
|
1
|
+
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelectorRow=t():e.VsGuestSelectorRow=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1095],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,4982,6422,8745,8836,8896,378,6216],(function(){return e(e.s=26216)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsMapWithSidebar=e():t.VsMapWithSidebar=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[316],{8258:function(t,e,s){"use strict";s.r(e);var a=s(73884),n=s(84542);s(71622);const i=(0,s(66262).A)(n.A,[["render",a.X]]);e.default=i},22544:function(){},50106:function(t,e,s){"use strict";var a=s(89394),n=s(64467),i=s(11438),o=s(48836),r=s(79122),l=s(90080),c=s(57536),u=s(10810),d=s(79920),g=s(81610),p=s(4249);function h(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?h(Object(s),!0).forEach((function(e){(0,n.A)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var m=null;e.A={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:i.T$,VsRow:i.AQ,VsCol:i.Il,VsMap:g.default,VsButton:o.default,VsMapWithSidebarPanel:p.default,VsButtonToggleGroup:l.default,VsWarning:r.default},provide:function(){return{filters:this.filters,filtersWithLocations:this.filtersWithLocations,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null},loadBrandingImmediately:{type:Boolean,default:!1}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:null,activePins:this.placesData,currentlyHovered:"",showRegions:!1,regions:[],subCatList:null,selectedToggle:"",currentEndpointData:[],mapStatus:"",panelStatus:"map-loading",mapReady:!1,showPanelMessage:null,currentPanelEndpointFilters:"",totalEndpointPins:0,focussedListItem:0,resetZoom:!1,currentStage:0,selectedSubCategory:null}},computed:f(f({mapDisplayClass:function(){return this.panelVisible?"d-none d-lg-block":""},panelDisplayClass:function(){return this.panelVisible?"":"d-none d-lg-block"},regionsData:function(){return this.placesData.filter((function(t){return"Polygon"===t.geometry.type||"MultiPolygon"===t.geometry.type}))}},(0,u.aH)(d.A,{subCatActiveFilters:function(t){return t.activeSubcatFilters}})),{},{infoMessage:function(){var t="";switch(this.mapStatus){case"no-results":t=this.mapNoResultsMessage;break;case"filter-results":t=this.mapFilterMessage}return t},existingCategories:function(){return this.placesData?(0,a.A)(new Set(this.placesData.map((function(t){return t.properties.category.id})))):[]},filtersWithLocations:function(){var t=this;return this.filters.filter((function(e){return!!t.existingCategories.includes(e.id)||!(!e.subCategory||!e.subCategory.length)}))},togglesWithLocations:function(){return-1===this.existingCategories.indexOf("vics")?this.toggleData.filter((function(t){return"icentres"!==t.value})):this.toggleData}}),watch:{selectedSubCategory:function(t){null===t&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var t=this;m=(0,d.A)(),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){t.resetZoom=!0}))},methods:{openMenu:function(){this.setStage(0),this.openPanel()},closePanel:function(){this.panelVisible=!1},openPanel:function(){this.panelVisible=!0},showDetail:function(t){document.fullscreenElement&&document.exitFullscreen(),this.selectedItem=t,this.setStage(2),this.openPanel(),null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory)},setCategory:function(t){this.selectedCategory=t,null===this.selectedSubCategory&&this.filterPlaces(t)},setSubCategory:function(t){m.setSelectedSubcat(t),this.selectedSubCategory=t,null!==t?(this.getSubcatMarkerData(),this.selectedCategory=t):(m.setActiveSubcatFilters([]),this.showAllPlaces())},filterSubCategories:function(t){var e="";t.forEach((function(t){var s="&cat=".concat(t);e+=s})),this.currentPanelEndpointFilters=e,this.getSubcatMarkerData(e),this.getSubcatPanelData(e,0)},getSubcatMarkerData:function(t){var e=this,s=this.filters.filter((function(t){return t.id===e.selectedSubCategory}));if(s.length>0){var a=s[0].pinsEndpoint;void 0!==t&&(a+=t),this.activePins=[],void 0===t?(this.activePins=[],this.mapStatus="filter-results"):c.A.get(a).then((function(t){e.totalEndpointPins=t.data.features.length,0===e.totalEndpointPins?e.mapStatus="no-results":(t.data.features.forEach((function(t){var s=t;s.properties.apiData=!0,e.activePins.push(s)})),e.mapStatus="")}))}},getSubcatPanelData:function(t,e){var s=this,a=this.filters.filter((function(t){return t.id===s.selectedSubCategory}))[0].listProductsEndPoint;void 0!==t&&(a+=t),0!==e&&(a+="".concat(t,"&page=").concat(e)),this.panelStatus="loading-data",c.A.get(a).then((function(t){void 0!==t.data.data.products?(s.setStage(1),0===e?(s.subCatList=t.data.data.products,s.focussedListItem=0):(s.focussedListItem=24*e,s.subCatList=s.subCatList.concat(t.data.data.products))):s.mapStatus="no-results",s.panelStatus=null}))},setStage:function(t){var e=this;if(2===t&&""!==this.detailsEndpoint&&null!==this.selectedSubCategory){var s="".concat(this.detailsEndpoint).concat(this.selectedItem.properties.id);c.A.get(s).then((function(s){var a=[];a.push(s.data.data),e.currentEndpointData=a,e.currentStage=t}))}else this.currentStage=t,0===this.currentStage?(this.currentEndpointData=[],null===this.selectedSubCategory?(this.resetZoom=!0,this.showAllPlaces(),this.mapStatus=""):this.getSubcatMarkerData(),this.selectedToggle="places"):1===this.currentStage&&null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory);2!==t&&(m.setActivePlace({mapId:this.mapId,activeFeature:""}),this.selectedItem=null)},filterPlaces:function(t){if("regions"===t)this.showRegions=!0,this.activePins=[],this.selectedToggle="regions";else{this.showRegions=!1,this.selectedToggle="places";var e=this.placesData.filter((function(e){return void 0!==e.properties&&e.properties.category.id===t}));this.activePins=e}},loadMorePlaces:function(t){this.getSubcatPanelData(this.currentPanelEndpointFilters,t)},showAllPlaces:function(){this.activePins=this.placesData,this.showRegions=!1},onToggleChanged:function(t){"regions"===t?(this.setCategory("regions"),this.setStage(1)):"icentres"===t?(this.setCategory("vics"),this.setStage(1)):"places-regional"===t?(this.setCategory("twnv"),this.setStage(1)):(this.showAllPlaces(),this.setStage(0))},setMapReady:function(t){this.mapReady=t,this.panelStatus=t?null:"loading"},categoryHasData:function(t){return-1!==this.existingCategories.indexOf(t)}}}},71622:function(t,e,s){"use strict";s(77066)},73884:function(t,e,s){"use strict";s.d(e,{X:function(){return i}});var a=s(20641),n=s(90033);function i(t,e,s,i,o,r){var l=(0,a.g2)("VsMapWithSidebarPanel"),c=(0,a.g2)("VsButton"),u=(0,a.g2)("VsMap"),d=(0,a.g2)("VsButtonToggleGroup"),g=(0,a.g2)("VsWarning"),p=(0,a.g2)("VsCol"),h=(0,a.g2)("VsRow"),f=(0,a.g2)("VsContainer");return(0,a.uX)(),(0,a.Wv)(f,{"data-test":"vs-map-with-sidebar"},{default:(0,a.k6)((function(){return[(0,a.bF)(h,null,{default:(0,a.k6)((function(){return[(0,a.bF)(p,null,{default:(0,a.k6)((function(){return[(0,a.Lk)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.bF)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"reset-side-panel-text")]})),"menu-btn-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"menu-btn-text")]})),"panel-loading-message":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"panel-loading-message")]})),"load-more-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"load-more-text")]})),_:3},8,["category-heading","selected-category","selected-subcategory","current-stage","selected-item","heading-level","subcategory-locations","current-endpoint-data","panel-status","panel-message","total-pins","current-list-item-focus","onSetCategory","onSetSubcategory","onSubcategoriesFiltered","onSetStage","onClosePanel","onShowItemDetail","onFilterPlaces","onLoadMorePlaces"])],2),(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.bF)(c,{class:"vs-map-with-sidebar__map-toggle",icon:"vs-icon-control-menu",size:"sm",onClick:r.openMenu,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.bF)(u,{"is-visible":!o.panelVisible,labels:{},filters:r.filtersWithLocations,places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:r.showDetail,onSetCategory:r.setCategory,onMapReady:r.setMapReady,onZoomReset:e[0]||(e[0]=function(t){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom,"show-marker-popups":!1,"load-branding-immediately":s.loadBrandingImmediately},{"map-loading-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"map-loading-text")]})),"info-message":(0,a.k6)((function(){return[(0,a.eW)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"zoom-too-far")]})),"no-js":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"no-js")]})),_:3},8,["is-visible","filters","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom","load-branding-immediately"]),r.togglesWithLocations.length>1?((0,a.uX)(),(0,a.Wv)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:r.togglesWithLocations,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.Q3)("",!0)],2)],512),(0,a.bF)(g,{class:"vs-map-with-sidebar__no-js"},{default:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},77066:function(t,e,s){"use strict";var a=s(85072),n=s.n(a),i=s(97825),o=s.n(i),r=s(77659),l=s.n(r),c=s(55056),u=s.n(c),d=s(10540),g=s.n(d),p=s(41113),h=s.n(p),f=s(22544),m=s.n(f),y={};y.styleTagTransform=h(),y.setAttributes=u(),y.insert=l().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=g(),n()(m(),y),m()&&m().locals&&m().locals},84542:function(t,e,s){"use strict";s.d(e,{A:function(){return a.A}});var a=s(50106)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,2543,7536,3777,4982,6422,8745,8836,8638,3838,2368,7521,1438,4580,1574,9122,5025,2536,7539,80,1101,2552,681,1213,3055,3198,3844,4079,4249],(function(){return t(t.s=8258)})),t.O()}])}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsMapWithSidebar=e():t.VsMapWithSidebar=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[316],{8258:function(t,e,s){"use strict";s.r(e);var a=s(73884),n=s(84542);s(71622);const i=(0,s(66262).A)(n.A,[["render",a.X]]);e.default=i},22544:function(){},50106:function(t,e,s){"use strict";var a=s(89394),n=s(64467),i=s(11438),o=s(48836),r=s(79122),l=s(90080),c=s(57536),u=s(10810),d=s(79920),g=s(81610),p=s(4249);function h(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?h(Object(s),!0).forEach((function(e){(0,n.A)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var m=null;e.A={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:i.T$,VsRow:i.AQ,VsCol:i.Il,VsMap:g.default,VsButton:o.default,VsMapWithSidebarPanel:p.default,VsButtonToggleGroup:l.default,VsWarning:r.default},provide:function(){return{filters:this.filters,filtersWithLocations:this.filtersWithLocations,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null},loadBrandingImmediately:{type:Boolean,default:!1}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:null,activePins:this.placesData,currentlyHovered:"",showRegions:!1,regions:[],subCatList:null,selectedToggle:"",currentEndpointData:[],mapStatus:"",panelStatus:"map-loading",mapReady:!1,showPanelMessage:null,currentPanelEndpointFilters:"",totalEndpointPins:0,focussedListItem:0,resetZoom:!1,currentStage:0,selectedSubCategory:null}},computed:f(f({mapDisplayClass:function(){return this.panelVisible?"d-none d-lg-block":""},panelDisplayClass:function(){return this.panelVisible?"":"d-none d-lg-block"},regionsData:function(){return this.placesData.filter((function(t){return"Polygon"===t.geometry.type||"MultiPolygon"===t.geometry.type}))}},(0,u.aH)(d.A,{subCatActiveFilters:function(t){return t.activeSubcatFilters}})),{},{infoMessage:function(){var t="";switch(this.mapStatus){case"no-results":t=this.mapNoResultsMessage;break;case"filter-results":t=this.mapFilterMessage}return t},existingCategories:function(){return this.placesData?(0,a.A)(new Set(this.placesData.map((function(t){return t.properties.category.id})))):[]},filtersWithLocations:function(){var t=this;return this.filters.filter((function(e){return!!t.existingCategories.includes(e.id)||!(!e.subCategory||!e.subCategory.length)}))},togglesWithLocations:function(){return-1===this.existingCategories.indexOf("vics")?this.toggleData.filter((function(t){return"icentres"!==t.value})):this.toggleData}}),watch:{selectedSubCategory:function(t){null===t&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var t=this;m=(0,d.A)(),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){t.resetZoom=!0}))},methods:{openMenu:function(){this.setStage(0),this.openPanel()},closePanel:function(){this.panelVisible=!1},openPanel:function(){this.panelVisible=!0},showDetail:function(t){document.fullscreenElement&&document.exitFullscreen(),this.selectedItem=t,this.setStage(2),this.openPanel(),null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory)},setCategory:function(t){this.selectedCategory=t,null===this.selectedSubCategory&&this.filterPlaces(t)},setSubCategory:function(t){m.setSelectedSubcat(t),this.selectedSubCategory=t,null!==t?(this.getSubcatMarkerData(),this.selectedCategory=t):(m.setActiveSubcatFilters([]),this.showAllPlaces())},filterSubCategories:function(t){var e="";t.forEach((function(t){var s="&cat=".concat(t);e+=s})),this.currentPanelEndpointFilters=e,this.getSubcatMarkerData(e),this.getSubcatPanelData(e,0)},getSubcatMarkerData:function(t){var e=this,s=this.filters.filter((function(t){return t.id===e.selectedSubCategory}));if(s.length>0){var a=s[0].pinsEndpoint;void 0!==t&&(a+=t),this.activePins=[],void 0===t?(this.activePins=[],this.mapStatus="filter-results"):c.A.get(a).then((function(t){e.totalEndpointPins=t.data.features.length,0===e.totalEndpointPins?e.mapStatus="no-results":(t.data.features.forEach((function(t){var s=t;s.properties.apiData=!0,e.activePins.push(s)})),e.mapStatus="")}))}},getSubcatPanelData:function(t,e){var s=this,a=this.filters.filter((function(t){return t.id===s.selectedSubCategory}))[0].listProductsEndPoint;void 0!==t&&(a+=t),0!==e&&(a+="".concat(t,"&page=").concat(e)),this.panelStatus="loading-data",c.A.get(a).then((function(t){void 0!==t.data.data.products?(s.setStage(1),0===e?(s.subCatList=t.data.data.products,s.focussedListItem=0):(s.focussedListItem=24*e,s.subCatList=s.subCatList.concat(t.data.data.products))):s.mapStatus="no-results",s.panelStatus=null}))},setStage:function(t){var e=this;if(2===t&&""!==this.detailsEndpoint&&null!==this.selectedSubCategory){var s="".concat(this.detailsEndpoint).concat(this.selectedItem.properties.id);c.A.get(s).then((function(s){var a=[];a.push(s.data.data),e.currentEndpointData=a,e.currentStage=t}))}else this.currentStage=t,0===this.currentStage?(this.currentEndpointData=[],null===this.selectedSubCategory?(this.resetZoom=!0,this.showAllPlaces(),this.mapStatus=""):this.getSubcatMarkerData(),this.selectedToggle="places"):1===this.currentStage&&null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory);2!==t&&(m.setActivePlace({mapId:this.mapId,activeFeature:""}),this.selectedItem=null)},filterPlaces:function(t){if("regions"===t)this.showRegions=!0,this.activePins=[],this.selectedToggle="regions";else{this.showRegions=!1,this.selectedToggle="places";var e=this.placesData.filter((function(e){return void 0!==e.properties&&e.properties.category.id===t}));this.activePins=e}},loadMorePlaces:function(t){this.getSubcatPanelData(this.currentPanelEndpointFilters,t)},showAllPlaces:function(){this.activePins=this.placesData,this.showRegions=!1},onToggleChanged:function(t){"regions"===t?(this.setCategory("regions"),this.setStage(1)):"icentres"===t?(this.setCategory("vics"),this.setStage(1)):"places-regional"===t?(this.setCategory("twnv"),this.setStage(1)):(this.showAllPlaces(),this.setStage(0))},setMapReady:function(t){this.mapReady=t,this.panelStatus=t?null:"loading"},categoryHasData:function(t){return-1!==this.existingCategories.indexOf(t)}}}},71622:function(t,e,s){"use strict";s(77066)},73884:function(t,e,s){"use strict";s.d(e,{X:function(){return i}});var a=s(20641),n=s(90033);function i(t,e,s,i,o,r){var l=(0,a.g2)("VsMapWithSidebarPanel"),c=(0,a.g2)("VsButton"),u=(0,a.g2)("VsMap"),d=(0,a.g2)("VsButtonToggleGroup"),g=(0,a.g2)("VsWarning"),p=(0,a.g2)("VsCol"),h=(0,a.g2)("VsRow"),f=(0,a.g2)("VsContainer");return(0,a.uX)(),(0,a.Wv)(f,{"data-test":"vs-map-with-sidebar"},{default:(0,a.k6)((function(){return[(0,a.bF)(h,null,{default:(0,a.k6)((function(){return[(0,a.bF)(p,null,{default:(0,a.k6)((function(){return[(0,a.Lk)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.bF)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"reset-side-panel-text")]})),"menu-btn-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"menu-btn-text")]})),"panel-loading-message":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"panel-loading-message")]})),"load-more-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"load-more-text")]})),_:3},8,["category-heading","selected-category","selected-subcategory","current-stage","selected-item","heading-level","subcategory-locations","current-endpoint-data","panel-status","panel-message","total-pins","current-list-item-focus","onSetCategory","onSetSubcategory","onSubcategoriesFiltered","onSetStage","onClosePanel","onShowItemDetail","onFilterPlaces","onLoadMorePlaces"])],2),(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.bF)(c,{class:"vs-map-with-sidebar__map-toggle",icon:"vs-icon-control-menu",size:"sm",onClick:r.openMenu,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.bF)(u,{"is-visible":!o.panelVisible,labels:{},filters:r.filtersWithLocations,places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:r.showDetail,onSetCategory:r.setCategory,onMapReady:r.setMapReady,onZoomReset:e[0]||(e[0]=function(t){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom,"show-marker-popups":!1,"load-branding-immediately":s.loadBrandingImmediately},{"map-loading-text":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"map-loading-text")]})),"info-message":(0,a.k6)((function(){return[(0,a.eW)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"zoom-too-far")]})),"no-js":(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"no-js")]})),_:3},8,["is-visible","filters","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom","load-branding-immediately"]),r.togglesWithLocations.length>1?((0,a.uX)(),(0,a.Wv)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:r.togglesWithLocations,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.Q3)("",!0)],2)],512),(0,a.bF)(g,{class:"vs-map-with-sidebar__no-js"},{default:(0,a.k6)((function(){return[(0,a.RG)(t.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},77066:function(t,e,s){"use strict";var a=s(85072),n=s.n(a),i=s(97825),o=s.n(i),r=s(77659),l=s.n(r),c=s(55056),u=s.n(c),d=s(10540),g=s.n(d),p=s(41113),h=s.n(p),f=s(22544),m=s.n(f),y={};y.styleTagTransform=h(),y.setAttributes=u(),y.insert=l().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=g(),n()(m(),y),m()&&m().locals&&m().locals},84542:function(t,e,s){"use strict";s.d(e,{A:function(){return a.A}});var a=s(50106)}},function(t){return t.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,7536,3777,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,1574,9122,5025,2536,7539,80,1101,2552,681,1213,3055,3198,3844,4079,4249],(function(){return t(t.s=8258)})),t.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vs-media-caption{background-color:rgba(0,0,0,0);color:#535396;position:relative;padding:.75rem 0}.vs-media-caption>.row{margin:0 auto}@media(min-width: 576px){.vs-media-caption{display:block;width:100%;height:auto;text-align:left}}.vs-media-caption__image-caption,.vs-media-caption__image-credit{font-size:.875rem}.vs-media-caption__image-caption{font-weight:600}.vs-media-caption__image-credit{font-weight:300;margin-bottom:0rem}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
/**
|
|
3
|
+
* Array of region IDs to highlight,
|
|
4
|
+
* `borders|dumfries|highlands|outerhebs|shetland|
|
|
5
|
+
* orkney|edinburgh|glasgow|fife|dundee|aberdeen|
|
|
6
|
+
* perth|lomond|arranayr|argyll`
|
|
7
|
+
*/
|
|
8
|
+
highlightedRegions: {
|
|
9
|
+
type: ArrayConstructor;
|
|
10
|
+
default: () => any[];
|
|
11
|
+
validator: (value: unknown) => any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* ARIA label for the map
|
|
15
|
+
*/
|
|
16
|
+
ariaLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: () => string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Title for the map
|
|
22
|
+
*/
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: () => string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The width attribute of the SVG
|
|
29
|
+
*/
|
|
30
|
+
width: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {
|
|
35
|
+
isHighlighted(regionId: any): boolean;
|
|
36
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
/**
|
|
38
|
+
* Array of region IDs to highlight,
|
|
39
|
+
* `borders|dumfries|highlands|outerhebs|shetland|
|
|
40
|
+
* orkney|edinburgh|glasgow|fife|dundee|aberdeen|
|
|
41
|
+
* perth|lomond|arranayr|argyll`
|
|
42
|
+
*/
|
|
43
|
+
highlightedRegions: {
|
|
44
|
+
type: ArrayConstructor;
|
|
45
|
+
default: () => any[];
|
|
46
|
+
validator: (value: unknown) => any;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* ARIA label for the map
|
|
50
|
+
*/
|
|
51
|
+
ariaLabel: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: () => string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Title for the map
|
|
57
|
+
*/
|
|
58
|
+
title: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: () => string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The width attribute of the SVG
|
|
64
|
+
*/
|
|
65
|
+
width: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{}>, {
|
|
70
|
+
title: string;
|
|
71
|
+
ariaLabel: string;
|
|
72
|
+
width: string;
|
|
73
|
+
highlightedRegions: unknown[];
|
|
74
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
75
|
+
export default _default;
|
|
@@ -52,6 +52,7 @@ export { default as VsIcon } from './icon/Icon.vue';
|
|
|
52
52
|
export { default as VsIconList } from './icon-list/IconList.vue';
|
|
53
53
|
export { default as VsIconListItem } from './icon-list/components/IconListItem.vue';
|
|
54
54
|
export { default as VsImageWithCaption } from './image-with-caption/ImageWithCaption.vue';
|
|
55
|
+
export { default as VsIllustratedMap } from './illustrated-map/IllustratedMap.vue';
|
|
55
56
|
export { default as VsImg } from './img/Img.vue';
|
|
56
57
|
export { default as VsInput } from './input/Input.vue';
|
|
57
58
|
export { default as VsItinerary } from './itineraries/Itinerary.vue';
|