@visitscotland/component-library 5.35.0 → 5.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/client/manifest.json +240 -104
  2. package/dist/client/scripts/{f2a24878ed942be1f026.js → 00f1154ed5790a40d594.js} +1 -1
  3. package/dist/client/scripts/{41046f754522e73a8099.js → 0ba435b54405bfed1216.js} +1 -1
  4. package/dist/client/scripts/13451712ec510d5251e1.js +1 -0
  5. package/dist/client/scripts/{aaf155991bb2554936c0.js → 14405b504bfa85ea3904.js} +1 -1
  6. package/dist/client/scripts/{c21a6c36e3568bdc534f.js → 2603d6a6cb89ed9ce58e.js} +1 -1
  7. package/dist/client/scripts/{967b8f5dde3c44052690.js → 2cc7ac8bc9e083a57d0a.js} +1 -1
  8. package/dist/client/scripts/336dc65beaffd0fe9728.js +1 -0
  9. package/dist/client/scripts/{feeecf83bdc1c651376a.js → 4805c6f1f0a18566244f.js} +1 -1
  10. package/dist/client/scripts/{1077b219313276c21765.js → 4d808489d92b87f6435b.js} +1 -1
  11. package/dist/client/scripts/{a6130794c1d33d80488a.js → 4ddab670b042da08b1f1.js} +1 -1
  12. package/dist/client/scripts/{0748fac0c3c889184e05.js → 50e7bb2b6f16e06314d3.js} +1 -1
  13. package/dist/client/scripts/{c92d18059ca7a5fa187e.js → 599cac06c60574e11178.js} +1 -1
  14. package/dist/client/scripts/{43f8d26f8aecf79a4b3a.js → 5a9faf1a5e6e6056077f.js} +1 -1
  15. package/dist/client/scripts/{9ff8d41b245f1db95004.js → 5b36da4a9d1c709b29a4.js} +1 -1
  16. package/dist/client/scripts/{9e07e9d2cd16db07d4ec.js → 60cb2189fbc7f98e341c.js} +1 -1
  17. package/dist/client/scripts/{adc43fc9fa9ee3c85f21.js → 6201ecddad5118e3e751.js} +1 -1
  18. package/dist/client/scripts/{78b5052753a730211f39.js → 62da96eeada992bc493c.js} +1 -1
  19. package/dist/client/scripts/{bd3814764b1c7e8c5751.js → 664b356b7ccc91d79a54.js} +1 -1
  20. package/dist/client/scripts/81349d37c19b7a3c6941.js +1 -0
  21. package/dist/client/scripts/{6a18930893f1bec771d8.js → 843ffaaa459ebf992322.js} +1 -1
  22. package/dist/client/scripts/{4626c48ced549c077e3e.js → 8ae724991e3a68c07f69.js} +1 -1
  23. package/dist/client/scripts/9a7df6c964746be2019a.js +1 -0
  24. package/dist/client/scripts/{17f050e8fbf954ca4400.js → 9cfada6085f0493c83a8.js} +1 -1
  25. package/dist/client/scripts/b81d33302ba962c45458.js +1 -0
  26. package/dist/client/scripts/{7623efe03b36f0ed4aed.js → cbe9553ef72b16c359ee.js} +1 -1
  27. package/dist/client/scripts/d6f35cfcf4b0aafd6e5d.js +1 -0
  28. package/dist/client/scripts/{18b7751ab328bbd3a091.js → ec40f0d64dfcaa2ae327.js} +1 -1
  29. package/dist/client/scripts/{3997e6bfb2077648fae3.js → ee2cb626a9636f956e4b.js} +1 -1
  30. package/dist/client/scripts/f166c3fa28bce031e937.js +1 -0
  31. package/dist/client/scripts/f443edb707d72594a1e7.js +1 -0
  32. package/dist/client/styles/b81d33302ba962c45458.css +1 -0
  33. package/dist/client/styles/d6f35cfcf4b0aafd6e5d.css +1 -0
  34. package/dist/components/src/components/form/Form.vue.d.ts +19 -0
  35. package/dist/components/src/custom-components/maps/MainMap.vue.d.ts +4 -0
  36. package/dist/components/src/custom-components/maps/components/MapFeaturedLocation.vue.d.ts +2 -0
  37. package/dist/components/src/custom-components/maps/components/MapFeaturedLocationItem.vue.d.ts +7 -0
  38. package/dist/components/src/custom-components/maps/index.d.ts +11 -0
  39. package/dist/components/style.css +1 -1
  40. package/dist/components/vs-component-library.js +80 -80
  41. package/dist/components/vs-component-library.mjs +2471 -2300
  42. package/dist/ssr/index.js +1 -1
  43. package/dist/ssr/manifest.json +1 -1
  44. package/dist/ssr/styles/{af3343dfaefa24bc924e.css → f22cb4c1d369afb7359b.css} +2 -0
  45. package/package.json +1 -1
  46. package/dist/client/scripts/7bbbd5fd019bf9f06332.js +0 -1
  47. package/dist/client/scripts/859084a4cae6374e0ecc.js +0 -1
  48. package/dist/client/scripts/c7adccd2eebddeca815c.js +0 -1
  49. package/dist/client/scripts/cb8e1abd530b3aa93fcf.js +0 -1
  50. /package/dist/client/scripts/{efe4a3c8ab1adefc03f2.js → 061040693667b92c1ad7.js} +0 -0
  51. /package/dist/client/scripts/{1b690d0299117cbd172e.js → 5996f9590531f476e1f9.js} +0 -0
  52. /package/dist/client/scripts/{bb8f78fd21453a818715.js → dd7e669ef9c0e5631aed.js} +0 -0
  53. /package/dist/client/styles/{f2a24878ed942be1f026.css → 00f1154ed5790a40d594.css} +0 -0
  54. /package/dist/client/styles/{efe4a3c8ab1adefc03f2.css → 061040693667b92c1ad7.css} +0 -0
  55. /package/dist/client/styles/{c7adccd2eebddeca815c.css → 13451712ec510d5251e1.css} +0 -0
  56. /package/dist/client/styles/{feeecf83bdc1c651376a.css → 4805c6f1f0a18566244f.css} +0 -0
  57. /package/dist/client/styles/{859084a4cae6374e0ecc.css → 9a7df6c964746be2019a.css} +0 -0
  58. /package/dist/client/styles/{bb8f78fd21453a818715.css → dd7e669ef9c0e5631aed.css} +0 -0
  59. /package/dist/client/styles/{cb8e1abd530b3aa93fcf.css → f166c3fa28bce031e937.css} +0 -0
@@ -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],{11547:function(e,t,r){"use strict";r(26255)},26255:function(e,t,r){"use strict";var a=r(85072),n=r.n(a),s=r(97825),o=r.n(s),l=r(77659),i=r.n(l),u=r(55056),c=r.n(u),d=r(10540),g=r.n(d),f=r(41113),p=r.n(f),y=r(55261),v=r.n(y),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=i().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=g(),n()(v(),b),v()&&v().locals&&v().locals},39535:function(e,t,r){"use strict";r.d(t,{A:function(){return a.A}});var a=r(77891)},49439:function(e,t,r){"use strict";r.r(t);var a=r(39535);r(11547);const n=a.A;t.default=n},55261:function(){},77891:function(e,t,r){"use strict";var a=r(10467),n=r(54756),s=r.n(n),o=r(20641),l=r(50953),i=r(53751),u=r(90033),c=r(12903),d=r(66239),g=r(31406),f=r(72989),p=r.n(f),y=r(58995),v=r(35965),b=r(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"},L={class:"position-absolute bottom-0 start-0 d-flex gap-2"},C={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)/)}},cludoApiOperator:{type:String,default:"or",validator:function(e){return["and","or"].includes(e)}}},setup:function(e){var t=(0,b.A)(),r=p()(),n=(0,l.KR)({message:"",error:!1}),d=e,f=(0,l.KR)(!1),A=(0,o.EW)((function(){return"events"===r.selectedCategoryKey?Math.ceil(r.totalResultsEvents/12):r.totalResultsCludo>=r.totalResultsEvents?Math.ceil(r.totalResultsCludo/6):Math.ceil(r.totalResultsEvents/6)}));function x(){r.endDate&&r.startDate>r.endDate?(n.value.error=!0,n.value.message=d.errorMessages.incorrectDateOrder):"events"===r.selectedCategoryKey&&r.eventsApiError&&!r.isLoading?(n.value.error=!0,n.value.message=d.errorMessages.eventError):(r.searchTerm||r.selectedCategory)&&"events"!==r.selectedCategoryKey&&r.cludoError&&!r.isLoading?(n.value.error=!0,n.value.message=d.errorMessages.cludoError):0!==r.totalResults||r.isLoading?(n.value.error=!1,n.value.message=""):(n.value.error=!0,n.value.message=d.errorMessages.noResults)}function V(e){r.startDate=e,r.navigateToResultsPage(!0)}function w(e){r.endDate=e,r.navigateToResultsPage(!0)}function O(e){r.sortBy=e,r.navigateToResultsPage(!0)}function W(e){var a,n=!1;e>r.currentPage&&(n=!0),r.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),r.navigateToResultsPage(),a=n,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:r.searchTerm,page_number:r.currentPage,page_navigation_direction:a?"forward":"back",search_usage_index:r.searchInSessionCount,results_count:r.totalResults,query_input:r.queryInput})}function F(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,a.A)(s().mark((function e(){var a,n,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),r.cludoCredentials={apiKey:d.cludoApiKey,customerId:d.cludoCustomerId,engineId:d.cludoEngineId},r.eventsApi=d.eventsApi,r.filters=d.filters,r.siteLanguage=d.siteLanguage,r.cludoApiOperator=d.cludoApiOperator,x(),"undefined"==typeof window||"undefined"==typeof document){e.next=2;break}return window.onbeforeunload=function(){f.value||t.createDataLayerObject("siteSearchCloseEvent",{search_query:r.searchTerm,search_usage_index:r.searchInSessionCount,query_input:r.queryInput,page_number:r.currentPage,results_count:r.totalResults})},a=new URLSearchParams(document.location.search),n=a.get("search-term"),(o=parseInt(a.get("page"),10))&&(r.currentPage=o),n&&(r.searchTerm=n),e.next=1,r.getSearchResults();case 1:n&&t.createDataLayerObject("siteSearchUsageEvent",{search_query:r.searchTerm,query_input:r.queryInput,results_count:r.totalResults,search_usage_index:r.searchInSessionCount,search_type:"initial",search_origin:"home_page"});case 2:case"end":return e.stop()}}),e)})))),(0,o.$u)((function(){x()})),function(a,s){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)(r).filters,(function(e,t){return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{key:t,class:"mb-200"},[(0,o.RG)(a.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[i.vShow,(0,l.R1)(r).selectedCategoryKey===e.Key]])})),128)),(0,l.R1)(r).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)(r).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)(r).totalResults)+" "+(0,u.toDisplayString)(d.searchLabels.resultsSecond),1)]})),_:1})):(0,o.Q3)("",!0)]),"events"===(0,l.R1)(r).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:O},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),(0,l.R1)(r).isLoading?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsLoadingSpinner),{key:1})):(0,o.Q3)("",!0),(0,l.R1)(r).isLoading||!(0,l.R1)(r).results||(0,l.R1)(r).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)(r).results&&A.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)(r).results,(function(a){return(0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsCard),{key:a.id},{"vs-card-header":(0,o.k6)((function(){return[(0,o.Lk)("div",R,[(0,o.bF)((0,l.R1)(c.VsImg),{src:a.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",L,[a.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=a.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,o.Q3)("",!0),a.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=a.startDate,t=a.endDate,e===t?e:"".concat(e," - ").concat(t))),1)];var e,t})),_:2},1024)):(0,o.Q3)("",!0)]),(0,o.Lk)("div",C,[a.categoryCard&&e.cardCategoryLabels[a.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[a.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:F(a),onClick:function(e){return function(e){f.value=!0,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:r.searchTerm,page_number:r.currentPage,click_text:e.title,click_url:F(e),click_category:e.categoryCard&&d.cardCategoryLabels[e.categoryCard]?d.cardCategoryLabels[e.categoryCard]:"",search_usage_index:r.searchInSessionCount,results_count:r.totalResults,query_input:r.queryInput})}(a)},class:"stretched-link",variant:"secondary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(a.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)(a.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,o.k6)((function(){return[(0,o.Lk)("div",D,[a.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)(a.location),1)]})),_:2},1024)])):(0,o.Q3)("",!0),(0,o.Lk)("div",null,["data-thistle"===a.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)(r).results&&A.value>1?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":A.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)(r).currentPage,"onUpdate:modelValue":s[0]||(s[0]=function(e){return(0,l.R1)(r).currentPage=e}),onPageClick:W},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,o.Q3)("",!0)])),n.value.error?((0,o.uX)(),(0,o.CE)("div",I,[n.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)(n.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})])}}}}},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,1406,9810,3486,378,6494,1688,1454,3614,2491,4360,6305,9856,8861,4179,7933,2710,6955,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,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,630,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,3914,2837,5577,3650,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995,5965],(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],{11547:function(e,t,r){"use strict";r(26255)},26255:function(e,t,r){"use strict";var a=r(85072),n=r.n(a),s=r(97825),o=r.n(s),l=r(77659),i=r.n(l),u=r(55056),c=r.n(u),d=r(10540),g=r.n(d),f=r(41113),p=r.n(f),y=r(55261),v=r.n(y),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=i().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=g(),n()(v(),b),v()&&v().locals&&v().locals},39535:function(e,t,r){"use strict";r.d(t,{A:function(){return a.A}});var a=r(77891)},49439:function(e,t,r){"use strict";r.r(t);var a=r(39535);r(11547);const n=a.A;t.default=n},55261:function(){},77891:function(e,t,r){"use strict";var a=r(10467),n=r(54756),s=r.n(n),o=r(20641),l=r(50953),i=r(53751),u=r(90033),c=r(12903),d=r(66239),g=r(31406),f=r(72989),p=r.n(f),y=r(58995),v=r(35965),b=r(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"},L={class:"position-absolute bottom-0 start-0 d-flex gap-2"},C={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)/)}},cludoApiOperator:{type:String,default:"or",validator:function(e){return["and","or"].includes(e)}}},setup:function(e){var t=(0,b.A)(),r=p()(),n=(0,l.KR)({message:"",error:!1}),d=e,f=(0,l.KR)(!1),A=(0,o.EW)((function(){return"events"===r.selectedCategoryKey?Math.ceil(r.totalResultsEvents/12):r.totalResultsCludo>=r.totalResultsEvents?Math.ceil(r.totalResultsCludo/6):Math.ceil(r.totalResultsEvents/6)}));function x(){r.endDate&&r.startDate>r.endDate?(n.value.error=!0,n.value.message=d.errorMessages.incorrectDateOrder):"events"===r.selectedCategoryKey&&r.eventsApiError&&!r.isLoading?(n.value.error=!0,n.value.message=d.errorMessages.eventError):(r.searchTerm||r.selectedCategory)&&"events"!==r.selectedCategoryKey&&r.cludoError&&!r.isLoading?(n.value.error=!0,n.value.message=d.errorMessages.cludoError):0!==r.totalResults||r.isLoading?(n.value.error=!1,n.value.message=""):(n.value.error=!0,n.value.message=d.errorMessages.noResults)}function V(e){r.startDate=e,r.navigateToResultsPage(!0)}function w(e){r.endDate=e,r.navigateToResultsPage(!0)}function O(e){r.sortBy=e,r.navigateToResultsPage(!0)}function W(e){var a,n=!1;e>r.currentPage&&(n=!0),r.currentPage=e,"undefined"!=typeof window&&window.scrollTo({top:0,left:0,behavior:"smooth"}),r.navigateToResultsPage(),a=n,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:r.searchTerm,page_number:r.currentPage,page_navigation_direction:a?"forward":"back",search_usage_index:r.searchInSessionCount,results_count:r.totalResults,query_input:r.queryInput})}function F(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,a.A)(s().mark((function e(){var a,n,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.createDataLayerObject("siteSearchOpenEvent",{referrer_page:document.referrer}),r.cludoCredentials={apiKey:d.cludoApiKey,customerId:d.cludoCustomerId,engineId:d.cludoEngineId},r.eventsApi=d.eventsApi,r.filters=d.filters,r.siteLanguage=d.siteLanguage,r.cludoApiOperator=d.cludoApiOperator,x(),"undefined"==typeof window||"undefined"==typeof document){e.next=2;break}return window.onbeforeunload=function(){f.value||t.createDataLayerObject("siteSearchCloseEvent",{search_query:r.searchTerm,search_usage_index:r.searchInSessionCount,query_input:r.queryInput,page_number:r.currentPage,results_count:r.totalResults})},a=new URLSearchParams(document.location.search),n=a.get("search-term"),(o=parseInt(a.get("page"),10))&&(r.currentPage=o),n&&(r.searchTerm=n),e.next=1,r.getSearchResults();case 1:n&&t.createDataLayerObject("siteSearchUsageEvent",{search_query:r.searchTerm,query_input:r.queryInput,results_count:r.totalResults,search_usage_index:r.searchInSessionCount,search_type:"initial",search_origin:"home_page"});case 2:case"end":return e.stop()}}),e)})))),(0,o.$u)((function(){x()})),function(a,s){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)(r).filters,(function(e,t){return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{key:t,class:"mb-200"},[(0,o.RG)(a.$slots,"federated-search__spotlight-".concat(e.Key))],512)),[[i.vShow,(0,l.R1)(r).selectedCategoryKey===e.Key]])})),128)),(0,l.R1)(r).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)(r).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)(r).totalResults)+" "+(0,u.toDisplayString)(d.searchLabels.resultsSecond),1)]})),_:1})):(0,o.Q3)("",!0)]),"events"===(0,l.R1)(r).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:O},null,8,["sort-options","from-date-label","to-date-label","sort-label"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),(0,l.R1)(r).isLoading?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsLoadingSpinner),{key:1})):(0,o.Q3)("",!0),(0,l.R1)(r).isLoading||!(0,l.R1)(r).results||(0,l.R1)(r).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)(r).results&&A.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)(r).results,(function(a){return(0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsCard),{key:a.id},{"vs-card-header":(0,o.k6)((function(){return[(0,o.Lk)("div",R,[(0,o.bF)((0,l.R1)(c.VsImg),{src:a.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",L,[a.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=a.minPrice,null===e?"":e.match(/\b\d+\.\d\b/)?"£".concat(e,"0"):"£".concat(e))),1)];var e})),_:2},1024)):(0,o.Q3)("",!0),a.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=a.startDate,t=a.endDate,e===t?e:"".concat(e," - ").concat(t))),1)];var e,t})),_:2},1024)):(0,o.Q3)("",!0)]),(0,o.Lk)("div",C,[a.categoryCard&&e.cardCategoryLabels[a.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[a.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:F(a),onClick:function(e){return function(e){f.value=!0,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_link_click",search_query:r.searchTerm,page_number:r.currentPage,click_text:e.title,click_url:F(e),click_category:e.categoryCard&&d.cardCategoryLabels[e.categoryCard]?d.cardCategoryLabels[e.categoryCard]:"",search_usage_index:r.searchInSessionCount,results_count:r.totalResults,query_input:r.queryInput})}(a)},class:"stretched-link",variant:"secondary"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,u.toDisplayString)(a.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)(a.description),1)]})),_:2},1024)]})),"vs-card-footer":(0,o.k6)((function(){return[(0,o.Lk)("div",D,[a.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)(a.location),1)]})),_:2},1024)])):(0,o.Q3)("",!0),(0,o.Lk)("div",null,["data-thistle"===a.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)(r).results&&A.value>1?((0,o.uX)(),(0,o.Wv)((0,l.R1)(c.VsPagination),{key:0,class:"vs-federated-search__pagination","number-of-pages":A.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)(r).currentPage,"onUpdate:modelValue":s[0]||(s[0]=function(e){return(0,l.R1)(r).currentPage=e}),onPageClick:W},null,8,["number-of-pages","next-button-label","previous-button-label","page-label","of-label","modelValue"])):(0,o.Q3)("",!0)])),n.value.error?((0,o.uX)(),(0,o.CE)("div",I,[n.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)(n.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})])}}}}},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,3838,8638,2368,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,7275,1406,9810,5025,3486,7957,9116,4448,378,6494,1688,4232,1454,3614,2491,4360,6305,9856,8861,4179,7933,2710,6955,815,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,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,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,6431,3609,2759,7848,6241,8817,8570,4061,9323,9923,3731,3914,2837,5577,3650,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995,5965],(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.VsSectionHeader=t():e.VsSectionHeader=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8380],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,2368,3838,7521,1438,4580,6431],(function(){return e(e.s=46431)})),e.O()}])}));
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.VsSectionHeader=t():e.VsSectionHeader=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8380],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,3838,8638,2368,7521,1438,4580,6431],(function(){return e(e.s=46431)})),e.O()}])}));
@@ -0,0 +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.VsMainMap=t():e.VsMainMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1733],{7885:function(e,t,a){"use strict";var n=a(50953),r=a(20641);t.A=function(){var e=(0,n.KR)([]),t=(0,n.KR)(!1),a=(0,n.KR)(!1),o=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesRequired)||t.value})),l=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesLoaded)||{cookieManagerLoaded:a}}));return(0,r.sV)((function(){window.addEventListener("cookieManagerLoaded",(function(){a.value=!0})),window.addEventListener("cookiesUpdated",(function(){var a;a=!1,"undefined"!=typeof CookieControl&&(a=e.value.every((function(e){return!0===CookieControl.getCategoryConsent(e)}))),t.value=a}))})),{requiredCookies:e,cookiesAllowed:o,cookiesLoaded:l}}},12524:function(e,t,a){"use strict";a.r(t);var n=a(88522);a(24752);const r=n.A;t.default=r},24752:function(e,t,a){"use strict";a(50804)},44806:function(e,t,a){"use strict";var n=a(10467),r=a(54756),o=a.n(r),l=a(20641),i=a(90033),c=a(50953),u=a(53751),s=a(66239),d=a(83750),p=a(57536),f=a(12903),v=a(84343),g=a(12308),y=a(78202),m=a(7885),b=a(66604),h=a(96763),_={class:"vs-map"},k={class:"vs-map__controls"},w={class:"vs-map-sidebar__sub-filters"},C={id:"search-container"},R={key:0,class:"vs-map__filter-controls"},E={class:"vs-map__wrapper"},x={id:"vs-map","map-id":"vs-map",ref:"vsMap"},S={id:"detail-container"};t.A={__name:"MainMap",props:{apiKey:{type:String,default:(0,s.A)("GOOGLE_MAPS_API_KEY")},mapId:{type:String,default:"vs-map"},mapTypeVector:{type:Boolean,default:!1},center:{type:Object,default:function(){return{lat:56.490153,lng:-4.10959}}},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:function(){}},languageCode:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:function(){}},featuredPlaces:{type:Object,default:void 0},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noResultsMessage:{type:String,required:!0},resetMapNoResultsMessage:{type:String,required:!0}},setup:function(e){var t,a,r,s,I,L,A,F,O,T,M=(0,b.A)(),j=e,B=j.categoryLabels.find((function(e){return"destinations"===e.id})),D=B?B.subCategory:null;(0,l.Gt)("featuredPlaces",{categories:D,places:j.featuredPlaces}),(0,l.Gt)("onFeaturedLocationClick",(function(e){t.fitBounds(new google.maps.LatLngBounds(new google.maps.LatLng(e.properties.viewport.low.latitude,e.properties.viewport.low.longitude),new google.maps.LatLng(e.properties.viewport.high.latitude,e.properties.viewport.high.longitude))),t.setCenter(new google.maps.LatLng(e.properties.locationCentre.latitude,e.properties.locationCentre.longitude)),se("things-to-do",2),G.value=!0}));var q,J,K={},W=(0,c.KR)(),U=(0,c.KR)(new Set),Y=(0,c.KR)(),z=(0,c.KR)(new Set),V=(0,c.KR)(new Set),Q=(0,c.KR)(new Set),X=(0,c.KR)(new Set),P=(0,c.KR)(),Z=(0,c.KR)(),N=(0,c.KR)(j.zoom),G=(0,c.KR)(!1),H=(0,c.KR)(),$=(0,c.KR)(new Set),ee=(0,c.KR)(),te=(0,l.EW)((function(){var e=new Map,t=le[W.value].subCategory;return Object.values(t).forEach((function(t){e.set(t.id,{includedTypes:t.includedType,excludedTypes:t.excludedType})})),e})),ae=(0,v.default)(),ne=(0,c.KR)(!1),re=(0,c.KR)(void 0),oe={north:60.8,south:54.8,west:-8.5,east:-.7},le={},ie=j.categoryLabels,ce=0;function ue(e){var a={strokeColor:"#A3A3CC",strokeOpacity:1,strokeWeight:1,fillColor:"#A3A3CC",fillOpacity:.5},n=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ7Q8cbLY0ZEgRouilirxxux4","ChIJ1YEuRDCFY0gRDeDw8bxbAuo","ChIJv-VNj0VoEkYRK9BkuJ07sKE","ChIJ-1-U7rYnS0YRzZLgw9BDh1I","ChIJ8fA1bTmyXEYRYm-tjaLruCI","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8","ChIJa76xwh5ymkcRW-WRjmtd6HU","ChIJu-SH28MJxkcRnwq9_851obM","ChIJuwtkpGSZAEcR6lXMScpzdQk","ChIJl5fz7WR9wUcR8g_mObTy60c","ChIJMVd4MymgVA0R99lHx5Y__Ws","ChIJ_ZqKe2cw6UYREPzyaM3PAAA","ChIJE74zDxSU3UYRubpdpdNUCvM","ChIJ4wsuREWc40YRewI60MRYJR4","ChIJ_UuggpyUkkYRwyW0T7qf6kA","ChIJ3fYyS9_KgUYREKh1PNZGAQA","ChIJQ2Dro1Ir0kgRmkXB5TQEim8","ChIJFXfA47sNok4RGOIUAYOdzzQ","ChIJI9HkgQm_ikYR8i7GR23fEbY","ChIJUXXYvLMei0YR7zdFQUIM8bA","ChIJRyEhyrlFlUcR75LTAvZg22Q"],r=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"],o=t.getFeatureLayer(google.maps.FeatureType.COUNTRY),l=t.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);e?(o.style=null,l.style=null,o.style=function(e){if(r.includes(e.feature.placeId))return a},l.style=function(e){if(r.includes(e.feature.placeId))return a}):(o.style=function(e){if(n.includes(e.feature.placeId))return a},l.style=function(e){if(n.includes(e.feature.placeId))return a})}function se(e,t){we(),W.value=e,Object.values(le[e].subCategory).forEach((function(e){return z.value.add(e.includedType)})),Object.values(le[e].subCategory).forEach((function(e){e.excludedType&&V.value.add(e.excludedType)})),z.value=new Set(Array.from(z.value).flat()),V.value=new Set(Array.from(V.value).flat()),z.value.forEach((function(e){V.value.has(e)&&V.value.delete(e)})),Y.value=le[e],P.value=t,ve({includedTypes:Array.from(z.value),excludedTypes:Array.from(V.value)}),H.value=ie[P.value].label,O.value=H.value}function de(e,t){var a=(0,c.KR)([]),n=(0,c.KR)();return e.forEach((function(){ie.forEach((function(e){e.id===W.value&&(a.value=e)})),Object.values(a.value).forEach((function(e){Object.values(e).forEach((function(e){t===e.id&&(n.value=e.label)}))}))})),n}function pe(){Q.value.forEach((function(e){X.value.has(e)&&X.value.delete(e)}))}function fe(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.includeTypes,r=void 0!==n&&n,o=a.excludeTypes,l=void 0!==o&&o,i=a.removeIncludedTypes,c=void 0!==i&&i,u=a.removeExcludedTypes,s=void 0!==u&&u,d=te.value.get(e);r&&d.includedTypes.forEach((function(e){r&&Q.value.add(e),c&&Q.value.delete(e)})),(l||s)&&(null===(t=d.excludedTypes)||void 0===t||t.forEach((function(e){l&&X.value.add(e),s&&X.value.delete(e)})))}function ve(){return ge.apply(this,arguments)}function ge(){return ge=(0,n.A)(o().mark((function e(){var a,n,l,i,c,u,s,d,p,f,v,g=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(a=g.length>0&&void 0!==g[0]?g[0]:{}).includedTypes,l=void 0===n?[]:n,i=a.excludedTypes,c=void 0===i?[]:i,_e(),ke(),u=ce+=1,ne.value=!1,ae.filterUsesCount+=1,ee.value="nearby",s=t.getBounds(),d=s.getNorthEast(),p=s.getSouthWest(),f=google.maps.geometry.spherical.computeDistanceBetween(d,p),v=Math.min(f/2,25e3),L.includedTypes=l,L.excludedTypes=null!=c?c:[],L.maxResultCount=20,L.locationRestriction={center:t.getCenter(),radius:v},r.style.display="block",r.addEventListener("gmp-load",(function(){if(u===ce){be(u);var e="main",a=W.value;U.value.size&&(e="sub",a=Array.from(U.value).join(", ")),M.createDataLayerObject("googleMapFilterEvent",{filter_type:e,search_map_location:t.getCenter().toString(),filter_selection:a,results_count:r.places.length,filter_usage_index:ae.filterUsesCount}),xe("map_filter")}}),{once:!0});case 1:case"end":return e.stop()}}),e)}))),ge.apply(this,arguments)}function ye(){return me.apply(this,arguments)}function me(){return(me=(0,n.A)(o().mark((function e(){var a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_e(),we(),ne.value=!1,a=ce+=1,ae.searchesCount+=1,ee.value="text",H.value=O.value.trim(),H.value){e.next=1;break}return e.abrupt("return");case 1:I.textQuery=H.value,I.locationRestriction=t.getBounds(),I.maxResultCount=20,s.style.display="block",s.addEventListener("gmp-load",(function(){a===ce&&(be(a),M.createDataLayerObject("googleMapSearchEvent",{search_query:H.value,search_map_location:t.getCenter().toString(),search_results_count:s.places.length,search_usage_index:ae.searchesCount}),xe("map_search"))}),{once:!0});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(e){return he.apply(this,arguments)}function he(){return(he=(0,n.A)(o().mark((function e(a){var n,l,i,u,p,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,d.lB)("marker");case 1:return n=e.sent,l=n.AdvancedMarkerElement,e.next=2,(0,d.lB)("core");case 2:if(i=e.sent,u=i.LatLngBounds,a===ce){e.next=3;break}return e.abrupt("return");case 3:p=(0,c.KR)(),"nearby"===ee.value?p.value=r:"text"===ee.value?p.value=s:h.error("Unrecognised Search type"),0===p.value.places.length?(ne.value=!0,p.value.style.display="none"):p.value.style.display="block",f=new u,p.value.places&&p.value.places.forEach((function(e){var a=document.createElement("div");a.classList.add("vs-map-marker");var n=document.createElement("i");n.classList.add("fa-solid","fa-location-dot"),a.appendChild(n);var r=new l({map:t,position:e.location,content:a,title:"Map pin"});r.addEventListener("gmp-placeclick",(function(){Ce(e)})),r.addListener("click",(function(){Ce(e)})),r.metadata={id:e.id},K[e.id]=r,f.extend(e.location),1===p.value.places.length?(t.setCenter({lat:e.location.lat(),lng:e.location.lng()}),t.setZoom(14),t.fitBounds(e.viewport)):(t.setCenter(f.getCenter()),t.fitBounds(f))}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e,a){!function(){for(var e in K)K[e]&&(K[e].map=null);K={}}(),ee.value="",r.style.display="none",s.style.display="none",I.textQuery=null,G.value=!1,T&&T.close&&T.close(),ne.value=!1,e&&(ke(),we(),Re("clear_all")),a&&(t.setCenter(j.center),t.setZoom(j.zoom),t.fitBounds(oe),Re("reset_map"))}function ke(){H.value=null,O.value=""}function we(){W.value=void 0,U.value=new Set,z.value=new Set,V.value=new Set,Q.value=new Set,X.value=new Set,$.value=new Set,P.value=void 0,Z.value=void 0}function Ce(e){T.isOpen&&(T.close(),Re("card_close",F.place)),F.place=e,window.innerWidth<=768?(A.style.width="85vw",A.style.height="32em",ae.sidebarOpen=!1):(A.style.width="20em",A.style.height="32em"),A.style.display="block",A.style.overflowY="auto",A.style.overflowX="hidden",A.style.boxSizing="border-box",A.style.maxHeight="32em",T.setOptions({content:A,maxWidth:"25em",position:e.location,pixelOffset:new google.maps.Size(0,-32)}),T.open({map:t}),google.maps.event.addListenerOnce(t,"idle",(function(){t.getZoom()>17&&t.setZoom(17),Re("card_open",e)})),t.setCenter(e.location)}function Re(e,t){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,n.A)(o().mark((function e(a,n){var r,l,i,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",l="",i="",c="",!n){e.next=2;break}return e.next=1,n.fetchFields({fields:["displayName","primaryType","rating","websiteURI"]});case 1:r=n.displayName,l=n.rating,i=n.websiteURI,c=n.primaryType;case 2:M.createDataLayerObject("googleMapInteractionEvent",{interaction_type:a,search_query:O.value.trim(),map_location:t.getCenter().toString(),visible_attractions_count:q,card_attraction_name:r,card_attraction_category:c,card_attraction_rating:l,card_attraction_url:i,interaction_timestamp_ms:Date.now()}),xe(a);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){if(!ae.firstInteraction){var t=Date.now()-ae.timeMounted;M.createDataLayerObject("googleMapTimeToFirstInteractionEvent",{time_to_first_interaction_ms:t,first_interaction_type:e}),ae.firstInteraction=!0}}function Se(){var e=t.getBounds();if(!e)return 0;for(var a=0,n=0;n<Object.keys(K).length;n++){var r=K[Object.keys(K)[n]].position;e.contains(r)&&(a+=1)}return a}return(0,l.KC)((function(){var e=(0,m.A)();e.requiredCookies.value=g.A.google_maps,J=(0,l.EW)((function(){return(!e.cookiesAllowed.value&&!0===e.cookiesLoaded.value||!e.cookiesLoaded.value)&&(re.value="noCookie",!0)}))})),(0,l.sV)((0,n.A)(o().mark((function e(){var l,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return(i=(0,n.A)(o().mark((function e(){var n,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n={center:{lat:j.center.lat,lng:j.center.lng},renderingType:j.mapTypeVector?google.maps.RenderingType.VECTOR:google.maps.RenderingType.RASTER,zoom:j.zoom,isFractionalZoomEnabled:!0,mapId:j.mapId,restriction:{latLngBounds:oe},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1,gestureHandling:"greedy"},!a){e.next=1;break}(t=new google.maps.Map(a,n)).fitBounds(oe),e.next=2;break;case 1:throw new Error("Init error, mapContainer undefined");case 2:e.next=4;break;case 3:e.prev=3,l=e.catch(0),h.error("Maps init error",l.message);case 4:(T=new google.maps.InfoWindow).addListener("closeclick",(function(){Re("card_close",F.place)})),ue(),t.addListener("zoom_changed",(function(){N.value=t.getZoom(),N.value<11?ue():ue(!0)})),t.addListener("idle",(function(){q=Se()})),r.addEventListener("gmp-select",(function(e){var t=e.place;K[t.id]&&Ce(t,K[t.id])})),s.addEventListener("gmp-select",(function(e){var t=e.place;K[t.id]&&Ce(t,K[t.id])}));case 5:case"end":return e.stop()}}),e,null,[[0,3]])})))).apply(this,arguments)},l=function(){return i.apply(this,arguments)},j.categoriesLocation&&p.A.get(j.categoriesLocation).then((function(e){le=e.data})).catch((function(){})),!1!==J.value){e.next=8;break}return(0,d.hn)({key:j.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:j.languageCode}),e.prev=1,e.next=2,(0,d.lB)("maps");case 2:return e.next=3,(0,d.lB)("places");case 3:return e.next=4,(0,d.lB)("marker");case 4:return e.next=5,(0,d.lB)("core");case 5:return e.next=6,(0,d.lB)("geometry");case 6:e.next=8;break;case 7:e.prev=7,e.catch(1),h.error("Google Maps Library load error");case 8:if(a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),s=document.getElementById("textSearch"),I=document.querySelector("gmp-place-text-search-request"),L=document.querySelector("gmp-place-nearby-search-request"),A=document.querySelector("gmp-place-details"),F=document.getElementById("placeRequest"),O=document.getElementById("vs-map-search-input"),ae.firstInteraction=!1,ae.searchesCount=0,ae.filterUsesCount=0,!1!==J.value){e.next=9;break}return e.next=9,l();case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))),function(t,a){var n=(0,l.g2)("gmp-place-nearby-search-request"),r=(0,l.g2)("gmp-place-address"),o=(0,l.g2)("gmp-place-rating"),s=(0,l.g2)("gmp-place-type"),d=(0,l.g2)("gmp-place-price"),p=(0,l.g2)("gmp-place-accessible-entrance-icon"),v=(0,l.g2)("gmp-place-opening-hours"),g=(0,l.g2)("gmp-place-reviews"),m=(0,l.g2)("gmp-place-attribution"),b=(0,l.g2)("gmp-place-content-config"),h=(0,l.g2)("gmp-place-search"),I=(0,l.g2)("gmp-place-text-search-request"),L=(0,l.g2)("gmp-place-details-place-request"),A=(0,l.g2)("gmp-place-website"),F=(0,l.g2)("gmp-place-phone-number"),T=(0,l.g2)("gmp-place-summary"),M=(0,l.g2)("gmp-place-type-specific-highlights"),B=(0,l.g2)("gmp-place-feature-list"),D=(0,l.g2)("gmp-place-media"),q=(0,l.g2)("gmp-place-details");return(0,l.uX)(),(0,l.CE)("div",_,[(0,l.Lk)("div",{class:(0,i.normalizeClass)(["vs-map__container",(0,c.R1)(J)?"d-none":""])},[(0,l.Lk)("div",k,[(0,l.bF)(y.default,{query:H.value,"selected-categories":W.value,"header-label":j.labels.heading,"close-sidebar-button-label":j.labels.closeSidebarBtn,"search-bar-aria-label":j.labels.searchBarAriaLabel,"input-placeholder-label":j.labels.inputPlaceholder,"search-button-label":j.labels.searchButton,"clear-map-label":j.labels.clearMap,"sub-filter-header-label":j.labels.subFilterHeader,"search-results-label":j.labels.searchResults,"open-sidebar-button-label":j.labels.openSidebarButton,onSearchInputChanged:ye,onResetMap:a[1]||(a[1]=function(e){return _e(!0)})},(0,l.eX)({"vs-map-sidebar-search-results":(0,l.k6)((function(){return[((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",C,[(0,l.bF)(h,{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(n,{id:"nearbySearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1}),(0,l.bF)(h,{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(I,{id:"textSearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1})),ne.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsAlert),{key:0,id:"vs-map__no-results-alert",class:"mt-075 mb-150",size:"small"},{default:(0,l.k6)((function(){return[(0,l.Lk)("span",null,[(0,l.eW)((0,i.toDisplayString)(e.noResultsMessage)+" ",1),(0,l.Lk)("a",{href:"#",onClick:a[0]||(a[0]=(0,u.withModifiers)((function(e){return _e(!0,!0)}),["prevent"]))},(0,i.toDisplayString)(e.resetMapNoResultsMessage),1)])]})),_:1})):(0,l.Q3)("",!0)]})),_:2},[W.value?{name:"vs-map-sidebar-sub-filters",fn:(0,l.k6)((function(){return[(0,l.Lk)("div",w,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(ie)[P.value].subCategory,(function(e,t){return(0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:t,variant:U.value.has(e.id)?"primary":"secondary",size:"sm",onClick:function(a){return function(e,t){Z.value=t,"self-catering"===e?(ke(),U.value=new Set,U.value.add(e),H.value=de(U.value,e).value,we(),O.value=H.value,ye()):U.value.has(e)?(U.value.delete(e),Q.value=new Set,X.value=new Set,U.value.forEach((function(e){fe(e,{includeTypes:!0,excludeTypes:!0})})),pe(),$.value.delete(de(U.value,e).value),0===U.value.size?($.value=new Set,se(W.value,P.value)):(ve({includedTypes:Array.from(Q.value).flat(),excludedTypes:Array.from(X.value).flat()}),H.value=Array.from($.value).join(", "),O.value=H.value)):(U.value.add(e),fe(e,{includeTypes:!0,excludeTypes:!0}),pe(),ve({includedTypes:Array.from(Q.value).flat(),excludedTypes:Array.from(X.value).flat()}),$.value.add(de(U.value,e).value),H.value=Array.from($.value).join(", "),O.value=H.value)}(e.id,t)}},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick"])})),128))])]})),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","search-bar-aria-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),(N.value>=11||G.value)&&(0,c.R1)(ae).sidebarOpen&&Object.keys((0,c.R1)(le)).length>0?((0,l.uX)(),(0,l.CE)("div",R,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(ie),(function(e,t){return(0,l.uX)(),(0,l.CE)(l.FK,{key:t},[e.cmsData?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:0,class:"vs-map__filter-controls-button",variant:W.value===e.id?"primary":"secondary",onClick:(0,u.withModifiers)((function(a){return se(e.id,t)}),["prevent"]),icon:Object.values((0,c.R1)(le))[t].icon},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick","icon"]))],64)})),128))])):(0,l.Q3)("",!0)]),(0,l.Lk)("div",E,[(0,l.Lk)("div",x,null,512),((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",S,[(0,l.bF)(q,{id:"placeDetails",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(L,{id:"placeRequest"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(A),(0,l.bF)(F),(0,l.bF)(T),(0,l.bF)(M),(0,l.bF)(g),(0,l.bF)(B),(0,l.bF)(D,{"lightbox-preferred":""}),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1}))])],2),(0,c.R1)(J)&&"noCookie"===re.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsWarning),{key:0,type:"cookie",class:(0,i.normalizeClass)(["vs-map__error vs-map__error--no-cookies",(0,c.R1)(J)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(j.cookieBtnText),1)]})),default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(j.noCookiesMessage)+" ",1)]})),_:1},8,["class"])):(0,l.Q3)("",!0),(0,l.bF)((0,c.R1)(f.VsWarning),{class:"vs-map__warning vs-map__warning--no-js","data-test":"vs-map__warning--no-js"},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.noJsMessage),1)]})),_:1})])}}}},50804:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),o=a(97825),l=a.n(o),i=a(77659),c=a.n(i),u=a(55056),s=a.n(u),d=a(10540),p=a.n(d),f=a(41113),v=a.n(f),g=a(79742),y=a.n(g),m={};m.styleTagTransform=v(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=p(),r()(y(),m),y()&&y().locals&&y().locals},66604:function(e,t,a){"use strict";a.d(t,{A:function(){return d}});var n=a(64467),r=a(50953),o=a(20641),l=a(4859),i=a(63555),c=a(12554);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,n.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function d(){var e=(0,l.A)(),t=(0,r.KR)(!1);function a(e,t){var a={};return e.forEach((function(e){a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a}function n(){return new Date(Date.now()).toISOString()}function u(t){var a=s(s({},e.GTMData),t);return a.hit_timestamp=n(),a}function d(e){t.value?window.dataLayer.push(e):(0,i.A)("dataLayer",(function(){t.value=!0,window.dataLayer.push(e)}))}return{pageUrl:(0,o.EW)((function(){return e.pageUrl})),createDataLayerObject:function(e,t){var n,r;switch(e){case"googleMapSearchEvent":n=u({event:"map_search",search_query:t.search_query,search_map_location:t.search_map_location,search_results_count:t.search_results_count,search_usage_index:t.search_usage_index}),r=a(c.Ew,n);break;case"googleMapFilterEvent":n=u({event:"map_filter_interaction",filter_type:t.filter_type,search_map_location:t.search_map_location,filter_selection:t.filter_selection,results_count:t.results_count,filter_usage_index:t.filter_usage_index}),r=a(c.cV,n);break;case"googleMapTimeToFirstInteractionEvent":n=u({event:"map_time_to_first_interaction",time_to_first_interaction_ms:t.time_to_first_interaction_ms,first_interaction_type:t.first_interaction_type}),r=a(c.WO,n);break;case"googleMapInteractionEvent":n=u({event:"map_interaction_click",interaction_type:t.interaction_type,search_query:t.search_query,map_location:t.map_location,visible_attractions_count:t.visible_attractions_count,card_attraction_name:t.card_attraction_name,card_attraction_category:t.card_attraction_category,card_attraction_url:t.card_attraction_url,card_attraction_rating:t.card_attraction_rating,interaction_timestamp_ms:t.interaction_timestamp_ms}),r=a(c.cg,n)}r&&d(r)},templateFiller:a,compileFullTemplate:u,returnIsoDate:n,pushToDataLayer:d,dataLayerStore:e}}},79742:function(){},88522:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(44806)}},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,3750,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,7275,1406,9810,5025,3486,7957,9116,4448,378,6494,1688,4232,1454,3614,2491,4360,6305,9856,8861,4179,7933,2710,6955,815,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,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,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,6431,3609,2759,7848,6241,8817,8570,4061,9323,9923,3731,3914,2837,5577,3650,1344,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,7509,8202],(function(){return e(e.s=12524)})),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,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,8638,2368,3838,7521,1438,7275,1406,9810,2761],(function(){return e(e.s=62761)})),e.O()}])}));
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,3838,8638,2368,7521,1438,7275,1406,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.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
+ "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,3838,8638,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.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
+ "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,3838,8638,2368,7521,1438,4580,4179],(function(){return e(e.s=34179)})),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.VsMapFeaturedLocationItem=t():e.VsMapFeaturedLocationItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5690],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,3838,5676,1574,4232,1344],(function(){return e(e.s=78963)})),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,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()}])}));
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,3838,8638,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 +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.VsProductSearch=t():e.VsProductSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1403],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,9033,6425,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,9122,4282,2142,5025,378,1688,2491,9856,8861,3293,7231],(function(){return e(e.s=57231)})),e.O()}])}));
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.VsProductSearch=t():e.VsProductSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1403],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,9033,6425,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,9122,4282,2142,5025,378,1688,2491,9856,8861,3293,7231],(function(){return e(e.s=57231)})),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,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()}])}));
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,3838,8638,2368,7521,1438,4580,1161,3603],(function(){return e(e.s=23603)})),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.VsSkiScotlandStatus=e():t.VsSkiScotlandStatus=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9779],{},function(t){return t.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,7536,8449,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,9122,5025,7275,1406,9810,3486,3706,3484,1371,9054,5945,8167,4921,47],(function(){return t(t.s=10047)})),t.O()}])}));
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.VsSkiScotlandStatus=e():t.VsSkiScotlandStatus=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9779],{},function(t){return t.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,7536,8449,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,5676,9122,7275,1406,9810,5025,3486,3706,3484,1371,9054,5945,8167,4921,47],(function(){return t(t.s=10047)})),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.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
+ "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,3838,8638,2368,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.VsCarbonCalculator=t():e.VsCarbonCalculator=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1501],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,8795,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,9122,4282,4360,6305,4828,4433,2822,4681,71,1120,9177],(function(){return e(e.s=69177)})),e.O()}])}));
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.VsCarbonCalculator=t():e.VsCarbonCalculator=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1501],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,8795,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,9122,4282,4360,6305,4828,4433,2822,4681,71,1120,9177],(function(){return e(e.s=69177)})),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,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
+ "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,3838,8638,2368,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,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMapSidebar=t():e.VsMapSidebar=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8436],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,4982,6422,8745,8836,3838,4282,2142,3614,8202],(function(){return e(e.s=78202)})),e.O()}])}));
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.VsMapSidebar=t():e.VsMapSidebar=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8436],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,4982,6422,8745,8836,3838,5676,1574,4282,2142,7275,1406,9810,3486,4232,3614,815,1344,7509,8202],(function(){return e(e.s=78202)})),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,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
+ "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,3838,8638,2368,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.VsPageIntro=t():e.VsPageIntro=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[979],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,2368,3838,7521,1438,4580,9633],(function(){return e(e.s=59633)})),e.O()}])}));
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.VsPageIntro=t():e.VsPageIntro=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[979],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,3838,8638,2368,7521,1438,4580,9633],(function(){return e(e.s=59633)})),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.VsHeroSection=t():e.VsHeroSection=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1763],{},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,1574,5921,6955,1154,8533,8399],(function(){return e(e.s=38399)})),e.O()}])}));
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.VsHeroSection=t():e.VsHeroSection=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1763],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,1574,5921,6955,1154,8533,8399],(function(){return e(e.s=38399)})),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.VsFedSearchInput=t():e.VsFedSearchInput=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4161],{},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,3838,8638,2368,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,7275,1406,9810,5025,3486,7957,9116,4448,378,6494,1688,4232,1454,3614,2491,4360,6305,9856,8861,4179,7933,2710,6955,815,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,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,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,6431,3609,2759,7848,6241,8817,8570,4061,9323,9923,3731,3914,2837,5577,3650,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,2989,555,8995],(function(){return e(e.s=58995)})),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.VsCarouselSlide=t():e.VsCarouselSlide=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6223],{},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,5676,1574,9122,5921,1459,7957,9116,1454,8978],(function(){return e(e.s=8978)})),e.O()}])}));
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.VsCarouselSlide=t():e.VsCarouselSlide=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6223],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,5676,1574,9122,5921,1459,7957,9116,1454,8978],(function(){return e(e.s=8978)})),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.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6680],{},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,4179,5465],(function(){return e(e.s=75465)})),e.O()}])}));
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.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6680],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,4179,5465],(function(){return e(e.s=75465)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9464],{9764:function(e,t,a){"use strict";var i=a(85072),n=a.n(i),r=a(97825),s=a.n(r),o=a(77659),l=a.n(o),d=a(55056),u=a.n(d),c=a(10540),g=a.n(c),f=a(41113),h=a.n(f),m=a(88234),p=a.n(m),v={};v.styleTagTransform=h(),v.setAttributes=u(),v.insert=l().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=g(),n()(p(),v),p()&&p().locals&&p().locals},18668:function(e,t,a){"use strict";a.d(t,{A:function(){return i.A}});var i=a(97272)},19464:function(e,t,a){"use strict";a.r(t);var i=a(45058),n=a(18668);a(84192);const r=(0,a(66262).A)(n.A,[["render",i.X]]);t.default=r},45058:function(e,t,a){"use strict";a.d(t,{X:function(){return i.X}});var i=a(56402)},56402:function(e,t,a){"use strict";a.d(t,{X:function(){return f}});var i=a(20641),n=a(53751),r=a(90033),s={class:"vs-form","data-test":"vs-form"},o={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},l={key:0},d={"aria-live":"assertive"},u={key:0},c=["innerHTML"],g={key:2,class:"mt-200"};function f(e,t,a,f,h,m){var p=(0,i.g2)("VsInput"),v=(0,i.g2)("VsSelect"),b=(0,i.g2)("VsCheckbox"),y=(0,i.g2)("VsTextarea"),D=(0,i.g2)("BFormGroup"),F=(0,i.g2)("VsRecaptcha"),k=(0,i.g2)("VsButton"),T=(0,i.g2)("VsWarning"),E=(0,i.g2)("VsHeading");return(0,i.uX)(),(0,i.CE)("div",s,[t[1]||(t[1]=(0,i.Lk)("form",{class:"d-none"},null,-1)),h.submitted?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("form",{key:0,onSubmit:t[0]||(t[0]=(0,n.withModifiers)((function(){return m.preSubmit&&m.preSubmit.apply(m,arguments)}),["prevent"]))},[(0,i.Lk)("fieldset",null,[(0,i.Lk)("legend",o,(0,r.toDisplayString)(m.getTranslatedContent("heading")),1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(h.formData.fields,(function(e,t){return(0,i.uX)(),(0,i.Wv)(D,{key:e.name,label:m.needsLabel(e)?m.getTranslatedLabel(e.name,t):"","label-for":m.needsLabel(e)?e.name:"",class:(0,r.normalizeClass)(m.conditionalElementClass(e.name))},{default:(0,i.k6)((function(){return[m.isUndefined(e.descriptor)||"checkbox"!==e.element?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("legend",l,(0,r.toDisplayString)(m.getTranslatedLegend(e.name,t)),1)),(0,i.Lk)("div",{class:(0,r.normalizeClass)(m.conditionalElementClass(e.name))},["input"===e.element?((0,i.uX)(),(0,i.Wv)(p,{key:0,ref_for:!0,ref:e.name,onStatusUpdate:m.updateFieldData,"field-name":e.name,type:e.type,"validation-rules":e.validation||{},"validation-messages":m.getTranslatedValidation(e.name,t)||{},"generic-validation":m.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"hint-text":m.getTranslatedHint(e.name,t),placeholder:e.placeholder||"","re-alert-errors":h.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):(0,i.Q3)("",!0),"select"===e.element?((0,i.uX)(),(0,i.Wv)(v,{key:1,options:m.getTranslatedOptions(e.name,t),ref_for:!0,ref:e.name,onStatusUpdate:m.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":m.getTranslatedValidation(e.name,t)||{},"generic-validation":m.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"country-list-url":a.countryListUrl,countries:e.countries,"hint-text":m.getTranslatedHint(e.name,t),"re-alert-errors":h.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):(0,i.Q3)("",!0),"checkbox"===e.element?((0,i.uX)(),(0,i.Wv)(b,{key:e.name,ref_for:!0,ref:e.name,name:e.name,value:e.value,label:m.getTranslatedLabel(e.name,t),onStatusUpdate:m.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":m.getTranslatedValidation(e.name,t)||{},"generic-validation":m.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"optional-text":m.getMessagingData("optional",a.language),"hint-text":m.getTranslatedHint(e.name,t),"info-text":m.getTranslatedInfo(e.name,t),"re-alert-errors":h.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):(0,i.Q3)("",!0),"textarea"===e.element?((0,i.uX)(),(0,i.Wv)(y,{key:3,ref_for:!0,ref:e.name,onStatusUpdate:m.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":m.getTranslatedValidation(e.name,t)||{},"generic-validation":m.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"hint-text":m.getTranslatedHint(e.name,t),placeholder:e.placeholder||"","re-alert-errors":h.reAlertErrors,rows:e.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):(0,i.Q3)("",!0)],2)]})),_:2},1032,["label","label-for","class"])})),128))]),(0,i.RG)(e.$slots,"hidden-fields"),a.usesRecaptcha?((0,i.uX)(),(0,i.Wv)(F,{key:0,onVerified:m.onRecaptchaVerify,"site-key":a.recaptchaKey,invalid:!h.recaptchaVerified&&h.showErrorMessage,language:a.language,"error-msg":m.getMessagingData("recaptchaError",a.language),class:"mt-300","textarea-label":a.recaptchaTextareaLabel,"re-alert-errors":h.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"])):(0,i.Q3)("",!0),(0,i.bF)(k,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:m.preSubmit},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(m.getTranslatedContent("submit")),1)]})),_:1},8,["onClick"])],32)),(0,i.bF)(T,{class:"vs-form__no-js"},{default:(0,i.k6)((function(){return[(0,i.RG)(e.$slots,"no-js")]})),_:3}),(0,i.Lk)("div",d,[h.submitting?((0,i.uX)(),(0,i.CE)("p",u,[(0,i.RG)(e.$slots,"submitting")])):(0,i.Q3)("",!0),h.submitted?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[m.getTranslatedContent("successHeading")?((0,i.uX)(),(0,i.Wv)(E,{key:0,level:"2","heading-style":"heading-l"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(m.getTranslatedContent("successHeading")),1)]})),_:1})):(0,i.Q3)("",!0),(0,i.Lk)("p",{class:"vs-form__content",innerHTML:m.getTranslatedContent("successContent")},null,8,c)],64)):(0,i.Q3)("",!0),h.submitError?((0,i.uX)(),(0,i.CE)("p",g,[(0,i.RG)(e.$slots,"submit-error")])):(0,i.Q3)("",!0)])])}},84192:function(e,t,a){"use strict";a(9764)},88234:function(){},97272:function(e,t,a){"use strict";var i=a(64467),n=a(3453),r=a(89394),s=a(34352),o=a(57536),l=a(66239),d=a(22142),u=a(51688),c=a(26358),g=a(88258),f=a(48836),h=a(13838),m=a(79122),p=a(11696),v=a(98745);function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function y(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(Object(a),!0).forEach((function(t){(0,i.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}t.A={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput:d.default,VsSelect:u.default,VsCheckbox:c.default,BFormGroup:s.a3,VsRecaptcha:g.default,VsButton:f.default,VsHeading:h.default,VsWarning:m.default,VsTextarea:p.default},mixins:[v.default],props:{isMarketo:{type:Boolean,default:!0},submissionType:{type:String,default:"breg"},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},usesRecaptcha:{type:Boolean,default:!0},recaptchaKey:{type:String,default:(0,l.A)("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0},consentList:{type:Array,required:!1,default:null}},data:function(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId:function(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading:function(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created:function(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData:function(){var e=this;o.A.get(this.dataUrl).then((function(t){e.formData=t.data,e.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(e.marketoInstance,e.munchkinId,e.formId),t.data.fields.forEach((function(t){e.form[t.name]="",t.conditional&&(e.conditionalFields[t.name]=!1)})),e.checkConditionalFields()})).catch((function(){}))},getGlobalMessaging:function(){var e=this;o.A.get(this.messagingUrl).then((function(t){e.messagingData=t.data})).catch((function(){}))},getLanguageObj:function(){return this.isUndefined(this.formData[this.language])?{}:this.formData[this.language]||void 0},getTranslatedLabel:function(e,t){var a=this.getLanguageObj(),i="";return i="en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].label)?this.formData.fields[t].label:a[e].label,this.showOptionalText(this.formData.fields[t])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(i="".concat(i," (").concat(this.getMessagingData("optional",this.language),")")),i},getTranslatedLegend:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].descriptor)?this.formData.fields[t].descriptor:a[e].descriptor},getTranslatedInfo:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].info)?this.formData.fields[t].info:a[e].info},getTranslatedValidation:function(e,t){var a,i=this.getLanguageObj();return"en"!==this.language||this.isUndefined(this.formData.fields[t].validationMessages)?this.isUndefined(i[e])||this.isUndefined(i[e].validationMessages)?"en"===this.language&&(a=this.formData.fields[t].validationMessages):a=i[e].validationMessages:a=this.formData.fields[t].validationMessages,a},getTranslatedOptions:function(e,t){var a=this.getLanguageObj(),i=[];return void 0===(i="en"===this.language||this.isUndefined(a[e])||this.isUndefined([e].options)?this.formData.fields[t].options:a[e].options)&&(i=[]),i},getTranslatedHint:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].hint)?this.isUndefined(this.formData.fields[t].hint)?"":this.formData.fields[t].hint:a[e].hint},getTranslatedContent:function(e){var t=this.getLanguageObj();return"en"!==this.language||this.isUndefined(this.formData.content)||this.isUndefined(this.formData.content[e])?this.isUndefined(t.content)||this.isUndefined(t.content[e])?this.getMessagingData(e,this.language):t.content[e]:this.formData.content[e]},getMessagingData:function(e,t){return Object.keys(this.messagingData).length>0?this.messagingData[t][e]:"validation"===e?{}:""},getHiddenFields:function(){return(0,r.A)(this.$el.querySelectorAll("input[type=hidden]")).map(this.parseBooleanStringsFromInputField).reduce((function(e,t){return e[t.name]=t.value,e}),{})},parseBooleanStringsFromInputField:function(e){var t=e.value;return"true"===t?t=!0:"false"===t&&(t=!1),{name:e.name,value:t}},isUndefined:function(e){return void 0===e},updateFieldData:function(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=null!==e.errors,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus:function(e,t){var a=this.errorFields.indexOf(e);-1!==a?(!t||t.length<1)&&this.errorFields.splice(a,1):t&&t.length>0&&this.errorFields.push(e)},showOptionalText:function(e){return!(!this.isUndefined(e.validation)&&!this.isUndefined(e.validation.required))},needsLabel:function(e){return"radio"!==e.element&&"submit"!==e.element&&"checkbox"!==e.element},preSubmit:function(e){var t=this;e.preventDefault(),this.submitError=!1,this.usesRecaptcha&&!this.isTest&&this.onRecaptchaVerify(),this.triggerValidate=!0;var a=this.formData.fields.filter((function(e){return e.validation&&e.validation.required}));0===a.length?this.formIsInvalid=!1:a.forEach((function(e){if(!/\S/.test(t.form[e.name])){var a=!0;e.name in t.conditionalFields&&!t.conditionalFields[e.name]&&(a=!1),t.formIsInvalid=a}})),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach((function(e){var a=(0,n.A)(e,2),i=a[0];a[1]||(t.form[i]="")})),this.errorFields.length>0&&(this.formIsInvalid=!0),this.formIsInvalid||!this.recaptchaVerified&&this.usesRecaptcha?(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout((function(){t.reAlertErrors=!1}),100)):this.isMarketo?this.marketoSubmit():this.axiosSubmit()},marketoSubmit:function(){var e=this;this.createDataLayerObject("formsDataEvent");var t=window.MktoForms2.allForms()[0];t.addHiddenFields(this.form),window.grecaptcha&&t.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),t.onSuccess((function(){return e.submitting=!1,e.submitted=!0,!1})),t.onSubmit((function(){e.submitting=!0})),t.submit()},axiosSubmit:function(){var e=this;this.createDataLayerObject("formsDataEvent"),this.submitting=!0;var t="";window.grecaptcha&&(t=window.grecaptcha.getResponse());var a=this.getHiddenFields();o.A.post(this.submitUrl,y(y(y({},this.form),a),{},{formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":t,consentList:this.consentList})).then((function(){return e.submitting=!1,e.submitted=!0,e.attachEmail(),!1})).catch((function(){return e.submitError=!0,!1}))},attachEmail:function(){var e=this;this.submissionType&&"breg"===this.submissionType&&(this.formData.fields.forEach((function(t){"email"!==t.type||e.emailFieldName||(e.emailFieldName=t.name)})),this.emailFieldName&&"undefined"!=typeof exponea&&exponea.identify({email_id:this.form[this.emailFieldName]},{},(function(){}),(function(){}),!0))},onRecaptchaVerify:function(){window.grecaptcha&&"function"==typeof window.grecaptcha.getResponse&&""!==window.grecaptcha.getResponse()?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields:function(){var e=this;Object.keys(this.conditionalFields).forEach((function(t){var a=e.formData.fields.find((function(e){return e.name===t})),i=!0;Object.keys(a.conditional).forEach((function(n){var r=a.conditional[n];Array.isArray(r)?-1===r.indexOf(e.form[n])&&(i=!1):e.form[n]!==r&&(i=!1),i?e.conditionalFields[t]||(e.conditionalFields[t]=!0,e.$refs[t]&&e.$refs[t][0].manualValidate()):(e.manageErrorStatus(t,[]),e.conditionalFields[t]=!1)}))}))},conditionalElementClass:function(e){return!0===this.conditionalFields[e]||void 0===this.conditionalFields[e]?"":"d-none"}}}}}]);
@@ -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.VsMegalinks=t():e.VsMegalinks=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9907],{},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,7086],(function(){return e(e.s=17086)})),e.O()}])}));
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.VsMegalinks=t():e.VsMegalinks=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9907],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,8638,2368,7521,1438,4580,7086],(function(){return e(e.s=17086)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7509],{25044:function(t,n,e){"use strict";var a=e(85072),r=e.n(a),u=e(97825),i=e.n(u),l=e(77659),c=e.n(l),s=e(55056),o=e.n(s),f=e(10540),d=e.n(f),p=e(41113),y=e.n(p),k=e(69622),v=e.n(k),_={};_.styleTagTransform=y(),_.setAttributes=o(),_.insert=c().bind(null,"head"),_.domAPI=i(),_.insertStyleElement=d(),r()(v(),_),v()&&v().locals&&v().locals},34171:function(t,n,e){"use strict";var a=e(50953),r=e(20641),u=e(90033),i=e(73486),l=e(49810),c=e(50815),s=e(46422),o=e(78963),f={class:"category-title"},d={class:"vs-map__controls-featured-place-accordion-content p-075"};n.A={__name:"MapFeaturedLocation",setup:function(t){var n=(0,r.WQ)("featuredPlaces"),e=n.categories,p=n.places;function y(t){switch(t){case"cities":return"fa-regular fa-city";case"regions":return"fa-regular fa-map-location-dot";case"islands":return"fa-regular fa-island-tropical";case"towns":return"fa-regular fa-house-chimney-window";default:return null}}return function(t,n){return(0,a.R1)(e)&&(0,a.R1)(p)?((0,r.uX)(),(0,r.Wv)(i.default,{key:0},{default:(0,r.k6)((function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,a.R1)(e),(function(t,n){return(0,r.uX)(),(0,r.Wv)(l.default,{key:n,"control-id":t.id,"open-by-default":"cities"===t.id},{title:(0,r.k6)((function(){return[(0,r.bF)(s.default,{class:"me-025 fa-fw","custom-colour":"#200F2E",icon:y(t.id),size:"sm",variant:"highlight"},null,8,["icon"]),(0,r.Lk)("span",f,(0,u.toDisplayString)(t.label),1)]})),default:(0,r.k6)((function(){return[(0,r.Lk)("div",d,[(0,r.bF)(c.default,{"scroll-snap":"always"},{default:(0,r.k6)((function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)((0,a.R1)(p),(function(n){return(0,r.uX)(),(0,r.CE)(r.FK,null,[n.properties.category.id===t.id?((0,r.uX)(),(0,r.Wv)(o.default,{key:n.properties.id,place:n},null,8,["place"])):(0,r.Q3)("",!0)],64)})),256))]})),_:2},1024)])]})),_:2},1032,["control-id","open-by-default"])})),128))]})),_:1})):(0,r.Q3)("",!0)}}}},47509:function(t,n,e){"use strict";e.r(n);var a=e(59167);e(50312);const r=a.A;n.default=r},50312:function(t,n,e){"use strict";e(25044)},59167:function(t,n,e){"use strict";e.d(n,{A:function(){return a.A}});var a=e(34171)},69622:function(){}}]);
@@ -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.VsArticle=t():e.VsArticle=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4700],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,2368,3838,7521,1438,4580,5782],(function(){return e(e.s=75782)})),e.O()}])}));
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.VsArticle=t():e.VsArticle=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4700],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,3838,8638,2368,7521,1438,4580,5782],(function(){return e(e.s=75782)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1344],{13632:function(e,t,n){"use strict";var r=n(20641),a=n(53751),c=n(90033),o=n(14232),i=n(13838),s=n(31574),l=n(45676),u={class:"px-125 pb-125"};t.A={__name:"MapFeaturedLocationItem",props:{place:{type:Object,default:function(){}}},setup:function(e){var t=e,n=(0,r.WQ)("onFeaturedLocationClick");function d(e){n(e)}return function(e,n){return(0,r.uX)(),(0,r.Wv)(o.default,{"card-style":"overlay",class:"vs-map__controls-featured-place-card",onClick:n[1]||(n[1]=function(e){return d(t.place)})},(0,r.eX)({"vs-card-footer":(0,r.k6)((function(){return[(0,r.Lk)("div",u,[(0,r.bF)(i.default,{class:"vs-map__controls-featured-place-card-heading","heading-style":"heading-xxxs",level:"2","no-margins":""},{default:(0,r.k6)((function(){return[(0,r.bF)(l.default,{class:"stretched-link text-decoration-none",href:"#",variant:"on-dark",onKeypress:n[0]||(n[0]=(0,a.withKeys)((0,a.withModifiers)((function(e){return d(t.place)}),["prevent"]),["enter"]))},{default:(0,r.k6)((function(){return[(0,r.eW)((0,c.toDisplayString)(t.place.properties.title),1)]})),_:1})]})),_:1})])]})),_:2},[t.place.properties.image?{name:"vs-card-image",fn:(0,r.k6)((function(){return[(0,r.bF)(s.default,{class:"vs-map__controls-featured-place-img w-100 rounded-1 object-fit-cover img-zoom-on-hover",src:t.place.properties.image,"use-lazy-loading":!1},null,8,["src"])]})),key:"0"}:void 0]),1024)}}}},23948:function(e,t,n){"use strict";n.d(t,{A:function(){return r.A}});var r=n(13632)},35339:function(){},50661:function(e,t,n){"use strict";var r=n(85072),a=n.n(r),c=n(97825),o=n.n(c),i=n(77659),s=n.n(i),l=n(55056),u=n.n(l),d=n(10540),f=n.n(d),p=n(41113),v=n.n(p),m=n(35339),_=n.n(m),k={};k.styleTagTransform=v(),k.setAttributes=u(),k.insert=s().bind(null,"head"),k.domAPI=o(),k.insertStyleElement=f(),a()(_(),k),_()&&_().locals&&_().locals},78963:function(e,t,n){"use strict";n.r(t);var r=n(23948);n(86721);const a=r.A;t.default=a},86721:function(e,t,n){"use strict";n(50661)}}]);
@@ -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.VsStyledListItem=t():e.VsStyledListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7726],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,8638,2368,3838,7521,1438,4580,1574,4999],(function(){return e(e.s=74999)})),e.O()}])}));
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.VsStyledListItem=t():e.VsStyledListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7726],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,3838,8638,2368,7521,1438,4580,1574,4999],(function(){return e(e.s=74999)})),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.VsListicleItem=t():e.VsListicleItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1686],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,4982,6422,8638,2368,3838,7521,1438,4580,3614,8407],(function(){return e(e.s=98407)})),e.O()}])}));
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.VsListicleItem=t():e.VsListicleItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1686],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7800,9394,2543,4982,6422,3838,8638,2368,7521,1438,4580,3614,8407],(function(){return e(e.s=98407)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8202],{3782:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),i=a.n(n),l=a(77659),o=a.n(l),d=a(55056),c=a.n(d),u=a(10540),p=a.n(u),f=a(41113),b=a.n(f),m=a(35244),_=a.n(m),v={};v.styleTagTransform=b(),v.setAttributes=c(),v.insert=o().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=p(),s()(_(),v),_()&&_().locals&&_().locals},5710:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(17527),n=a(17527),i={class:"vs-map-sidebar__header d-flex"},l={class:"vs-map-sidebar__content"},o={class:"vs-map-sidebar__input d-flex mt-100 mb-050"},d={key:1,class:"vs-map-sidebar__sub-filters-wrapper"},c={class:"vs-map-sidebar__search-results"},u={class:"vs-map-sidebar__google-maps-container mt-075"},p={key:0,class:"vs-map-sidebar__footer"},f=r(a(48836)),b=r(a(43614)),m=r(a(13838)),_=r(a(22142)),v=r(a(84343)),h=r(a(47509));t.default=(0,s.defineComponent)({__name:"MapSidebar",props:{query:{type:String,default:""},selectedCategories:{type:String,default:""},headerLabel:{type:String,default:""},closeSidebarButtonLabel:{type:String,default:""},searchBarAriaLabel:{type:String,default:""},inputPlaceholderLabel:{type:String,default:""},searchButtonLabel:{type:String,default:""},clearMapLabel:{type:String,default:""},subFilterHeaderLabel:{type:String,default:""},searchResultsLabel:{type:String,default:""},openSidebarButtonLabel:{type:String,default:""}},emits:["search-input-changed","reset-map"],setup:function(e){var t=(0,v.default)(),a=e;return function(e,r){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["vs-map-sidebar px-125",(0,n.unref)(t).sidebarOpen?"d-block":"d-none"]),"data-test":"vs-map-sidebar",ref:"vsMapSidebar"},[(0,n.createElementVNode)("div",i,[a.headerLabel?((0,n.openBlock)(),(0,n.createBlock)(m.default,{key:0,level:"1","heading-style":"heading-xxs",class:"flex-grow-1",id:"vs-map-sidebar__heading","data-test":"vs-map-sidebar__heading"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.headerLabel),1)]})),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(f.default,{class:"vs-map-sidebar__sidebar-control vs-map-siderbar__sidebar-control--dismiss","data-test":"vs-map-siderbar__sidebar-control--dismiss",icon:"vs-icon-control-dismiss","icon-only":"",variant:"subtle",onClick:r[0]||(r[0]=function(e){return(0,n.unref)(t).sidebarOpen=!1})},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.closeSidebarButtonLabel),1)]})),_:1})]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",o,[(0,n.createVNode)(_.default,{type:"text",autocomplete:"off","field-name":"vs-map-search-input","data-test":"vs-map-search-input",ref:"vs-search-input",placeholder:a.inputPlaceholderLabel,class:"vs-map-sidebar__input flex-grow-1","aria-label":a.searchBarAriaLabel,onKeyup:r[1]||(r[1]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"]),["enter"]))},null,8,["placeholder","aria-label"]),(0,n.createVNode)(f.default,{class:"vs-map-sidebar__search-button","data-test":"vs-map-sidebar__search-button",icon:"vs-icon-control-search","icon-only":"",rounded:!1,size:"lg",onClick:r[2]||(r[2]=(0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"])),onKeyup:r[3]||(r[3]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"]),["enter"]))},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.searchButtonLabel),1)]})),_:1})]),e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createElementBlock)("a",{key:0,href:"#",class:"d-block","data-test":"vs-map-sidebar__reset-map",onClick:r[4]||(r[4]=(0,n.withModifiers)((function(t){return e.$emit("reset-map")}),["prevent"])),onKeyup:r[5]||(r[5]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("reset-map")}),["prevent"]),["enter"]))},(0,n.toDisplayString)(a.clearMapLabel),33)):(0,n.createCommentVNode)("",!0),e.$slots["vs-map-sidebar-sub-filters"]&&e.$slots["vs-map-sidebar-sub-filters"]()?((0,n.openBlock)(),(0,n.createElementBlock)("div",d,[(0,n.createVNode)(b.default,{class:"vs-map-sidebar__sub-filter-header",size:"small",color:"secondary"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.subFilterHeaderLabel),1)]})),_:1}),(0,n.renderSlot)(e.$slots,"vs-map-sidebar-sub-filters")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",c,[e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createBlock)(m.default,{key:0,level:"2","heading-style":"heading-xxxs","data-test":"vs-map-sidebar__search-result-query"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.searchResultsLabel)+' "'+(0,n.toDisplayString)(a.query||a.selectedCategories)+'" ',1)]})),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",u,[(0,n.renderSlot)(e.$slots,"vs-map-sidebar-search-results")])]),(0,n.createVNode)(h.default,{class:(0,n.normalizeClass)(["mb-100",e.$props.query||e.$props.selectedCategories?"d-none":"d-block"])},null,8,["class"])]),e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createElementBlock)("div",p,r[7]||(r[7]=[(0,n.createElementVNode)("hr",{class:"vs-map-sidebar__swipe-tab"},null,-1)]))):(0,n.createCommentVNode)("",!0)],2),(0,n.createVNode)(f.default,{class:(0,n.normalizeClass)(["vs-map-sidebar__sidebar-control vs-map-sidebar__sidebar-control--open",(0,n.unref)(t).sidebarOpen?"d-none":"d-block"]),"data-test":"vs-map-sidebar__sidebar-control--open",size:"sm",icon:"fa-regular fa-sliders","icon-only":"",onClick:r[6]||(r[6]=function(e){return(0,n.unref)(t).sidebarOpen=!0})},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.openSidebarButtonLabel),1)]})),_:1},8,["class"])],64)}}})},12234:function(e,t,a){"use strict";a(3782)},19876:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return s.a}});var r=a(5710),s=a.n(r),n={};for(var i in r)"default"!==i&&(n[i]=function(e){return r[e]}.bind(0,i));a.d(t,n)},35244:function(){},78202:function(e,t,a){"use strict";a.r(t);var r=a(19876),s={};for(var n in r)"default"!==n&&(s[n]=function(e){return r[e]}.bind(0,n));a.d(t,s),a(12234);const i=r.default;t.default=i},84343:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(17527),s=(0,a(48086).defineStore)("googleMap",(function(){return{sidebarOpen:(0,r.ref)(!0),timeMounted:(0,r.ref)(Date.now()),firstInteraction:(0,r.ref)(!1),searchesCount:(0,r.ref)(0),filterUsesCount:(0,r.ref)(0)}}));t.default=s}}]);
@@ -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.VsMapFeaturedLocation=t():e.VsMapFeaturedLocation=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[55],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,4982,6422,8745,8836,3838,5676,1574,7275,1406,9810,3486,4232,815,1344,7509],(function(){return e(e.s=47509)})),e.O()}])}));
@@ -0,0 +1 @@
1
+ .category-title{text-transform:capitalize}.vs-map__controls-featured-place-accordion-content .vs-card-group{column-gap:.5rem}
@@ -0,0 +1 @@
1
+ .vs-map__controls-featured-place-card{height:10em;flex:0 0 9.25em !important}.vs-map__controls-featured-place-card-heading{z-index:2;position:relative}.vs-map__controls-featured-place-card .vs-card__image{z-index:1}.vs-map__controls-featured-place-card .vs-card__image img{height:10em}
@@ -110,6 +110,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
110
110
  type: BooleanConstructor;
111
111
  default: boolean;
112
112
  };
113
+ /**
114
+ * Defines a set of consents which are implied by submission, to be stored in BREG. If this
115
+ * is defined it should be included as part of the submission.
116
+ */
117
+ consentList: {
118
+ type: ArrayConstructor;
119
+ required: false;
120
+ default: any;
121
+ };
113
122
  }>, {}, {
114
123
  submitted: boolean;
115
124
  submitting: boolean;
@@ -407,6 +416,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
407
416
  type: BooleanConstructor;
408
417
  default: boolean;
409
418
  };
419
+ /**
420
+ * Defines a set of consents which are implied by submission, to be stored in BREG. If this
421
+ * is defined it should be included as part of the submission.
422
+ */
423
+ consentList: {
424
+ type: ArrayConstructor;
425
+ required: false;
426
+ default: any;
427
+ };
410
428
  }>> & Readonly<{}>, {
411
429
  language: string;
412
430
  countryListUrl: string;
@@ -420,6 +438,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
420
438
  munchkinId: string;
421
439
  marketoInstance: string;
422
440
  isTest: boolean;
441
+ consentList: unknown[];
423
442
  }, {}, {
424
443
  VsInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
425
444
  value: {
@@ -2,6 +2,7 @@ declare const _default: import('vue').DefineComponent<{}, {
2
2
  center: Record<string, any>;
3
3
  noJsMessage: string;
4
4
  noCookiesMessage: string;
5
+ jsDisabled: boolean;
5
6
  mapId: string;
6
7
  cookieBtnText: string;
7
8
  radius: number;
@@ -14,10 +15,12 @@ declare const _default: import('vue').DefineComponent<{}, {
14
15
  noResultsMessage: string;
15
16
  resetMapNoResultsMessage: string;
16
17
  apiKey?: string;
18
+ featuredPlaces?: Record<string, any>;
17
19
  $props: {
18
20
  readonly center?: Record<string, any>;
19
21
  readonly noJsMessage?: string;
20
22
  readonly noCookiesMessage?: string;
23
+ readonly jsDisabled?: boolean;
21
24
  readonly mapId?: string;
22
25
  readonly cookieBtnText?: string;
23
26
  readonly radius?: number;
@@ -30,6 +33,7 @@ declare const _default: import('vue').DefineComponent<{}, {
30
33
  readonly noResultsMessage?: string;
31
34
  readonly resetMapNoResultsMessage?: string;
32
35
  readonly apiKey?: string;
36
+ readonly featuredPlaces?: Record<string, any>;
33
37
  };
34
38
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
39
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ place: Record<string, any>;
3
+ $props: {
4
+ readonly place?: Record<string, any>;
5
+ };
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  center: Record<string, any>;
4
4
  noJsMessage: string;
5
5
  noCookiesMessage: string;
6
+ jsDisabled: boolean;
6
7
  mapId: string;
7
8
  cookieBtnText: string;
8
9
  radius: number;
@@ -15,10 +16,12 @@ declare const _default: {
15
16
  noResultsMessage: string;
16
17
  resetMapNoResultsMessage: string;
17
18
  apiKey?: string;
19
+ featuredPlaces?: Record<string, any>;
18
20
  $props: {
19
21
  readonly center?: Record<string, any>;
20
22
  readonly noJsMessage?: string;
21
23
  readonly noCookiesMessage?: string;
24
+ readonly jsDisabled?: boolean;
22
25
  readonly mapId?: string;
23
26
  readonly cookieBtnText?: string;
24
27
  readonly radius?: number;
@@ -31,6 +34,7 @@ declare const _default: {
31
34
  readonly noResultsMessage?: string;
32
35
  readonly resetMapNoResultsMessage?: string;
33
36
  readonly apiKey?: string;
37
+ readonly featuredPlaces?: Record<string, any>;
34
38
  };
35
39
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
40
  VsMapSidebar: {
@@ -237,5 +241,12 @@ declare const _default: {
237
241
  "vs-map-sidebar-search-results"?(_: {}): any;
238
242
  };
239
243
  });
244
+ VsMapFeaturedLocation: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
245
+ VsMapFeaturedLocationItem: import('vue').DefineComponent<{}, {
246
+ place: Record<string, any>;
247
+ $props: {
248
+ readonly place?: Record<string, any>;
249
+ };
250
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
240
251
  };
241
252
  export default _default;