@visitscotland/component-library 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "main": "dist/ssr/index.js",
@@ -198,5 +198,6 @@
198
198
  "highlight.js": "^10.4.1",
199
199
  "semver": "^7.5.4",
200
200
  "get-func-name": "^2.0.1"
201
- }
201
+ },
202
+ "packageManager": "yarn@1.22.4"
202
203
  }
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[653],{4989:function(){},21506:function(t,e,i){"use strict";var o=i(4942),n=i(70419),s=i(75242),r=i(26036),a=i(67476),c=i(72956),d=i.n(c),u=i(67106);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){(0,o.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var p=i(16033).Z.youtube;e.Z={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsToggleButton:s.default,VsWarning:r.default},mixins:[u.Z],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:function(t){return t.match(/(wide|narrow)/)}}},data:function(){return{requiredCookies:p,showErrorMessage:!1}},computed:v(v({},(0,a.rn)(d(),{videoDetails:function(t){return t.getVideo(this.videoId)}})),{},{videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!!(!this.requiredCookiesExist&&this.cookiesSet.length>0&&this.noCookiesMessage)}}),methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},9733:function(t,e,i){"use strict";i.d(e,{s:function(){return g}});var o=i(66252),n=i(3577),s=i(49963),r={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},c={key:1,class:"vs-video-caption__details container"},d={class:"vs-video-caption__title"},u={class:"vs-video-caption__duration"},l={class:"vs-video-caption vs-video-caption--warning"},v={class:"vs-video-caption vs-video-caption--warning"},p={class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function g(t,e,i,g,f,w){var k=(0,o.up)("VsButton"),y=(0,o.up)("VsToggleButton"),h=(0,o.up)("VsWarning");return(0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[w.videoLoaded&&t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption-variants",class:(0,n.normalizeClass)(["vs-video-caption","vs-video-caption--".concat(i.variant)]),key:"video-caption"},[i.videoBtnText?((0,o.wg)(),(0,o.iD)("div",r,[(0,o._)("div",a,[(0,o.Wm)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:w.emitShowModal},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.wg)(),(0,o.j4)(y,{key:0,onToggleAction:w.emitToggle},{default:(0,o.w5)((function(){return[(0,o.Uk)(" Toggle caption ")]})),_:1},8,["onToggleAction"])):(0,o.kq)("",!0)])):(0,o.kq)("",!0),t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",c,[(0,o._)("p",d,[(0,o.WI)(t.$slots,"video-title")]),(0,o._)("p",u,(0,n.toDisplayString)(t.videoDetails.videoDurationMsg),1)])):(0,o.kq)("",!0)],2)):(0,o.kq)("",!0),(0,o.wy)((0,o._)("div",l,[(0,o.Wm)(h,{size:"small",type:"cookie",transparent:!1},{"button-text":(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.cookieLinkText),1)]})),default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.noCookiesMessage)+" ",1)]})),_:1})],512),[[s.vShow,!(w.videoLoaded&&t.requiredCookiesExist)&&w.showCookieMessage]]),(0,o.wy)((0,o._)("div",v,[(0,o.Wm)(h,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.errorMessage),1)]})),_:1})],512),[[s.vShow,!(w.videoLoaded&&t.requiredCookiesExist)&&"error"===t.cookiesInitStatus]]),(0,o._)("div",p,[(0,o.Wm)(h,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(w.noJsMessage),1)]})),_:1})])],2)}},79917:function(t,e,i){"use strict";var o=i(93379),n=i.n(o),s=i(7795),r=i.n(s),a=i(90569),c=i.n(a),d=i(3565),u=i.n(d),l=i(19216),v=i.n(l),p=i(44589),g=i.n(p),f=i(4989),w=i.n(f),k={};k.styleTagTransform=g(),k.setAttributes=u(),k.insert=c().bind(null,"head"),k.domAPI=r(),k.insertStyleElement=v(),n()(w(),k),w()&&w().locals&&w().locals},10653:function(t,e,i){"use strict";i.r(e);var o=i(94333),n=i(99466);i(23304);const s=(0,i(83744).Z)(n.Z,[["render",o.s]]);e.default=s},99466:function(t,e,i){"use strict";i.d(e,{Z:function(){return o.Z}});var o=i(21506)},94333:function(t,e,i){"use strict";i.d(e,{s:function(){return o.s}});var o=i(9733)},23304:function(t,e,i){"use strict";i(79917)}}]);
@@ -1 +0,0 @@
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([[1074],{33405:function(){},33849:function(t,e,s){"use strict";var a=s(4942),n=s(51843),i=s(70419),o=s(26036),r=s(81872),l=s(5274),u=s(15730),c=s(67476),d=s(66072),p=s(67082),g=s(98127);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,a.Z)(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.Z={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsMap:p.default,VsButton:i.default,VsMapWithSidebarPanel:g.default,VsButtonToggleGroup:r.default,VsWarning:o.default},provide:function(){return{filters:this.filters,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}},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,c.rn)(d.Z,{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}}),watch:{selectedSubCategory:function(t){null===t&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var t=this;m=(0,d.Z)((0,u.Z)()),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){t.resetZoom=!0}))},methods:{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"):l.Z.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",l.Z.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);l.Z.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"}}}},7477:function(t,e,s){"use strict";s.d(e,{s:function(){return i}});var a=s(66252),n=s(3577);function i(t,e,s,i,o,r){var l=(0,a.up)("VsMapWithSidebarPanel"),u=(0,a.up)("VsButton"),c=(0,a.up)("VsMap"),d=(0,a.up)("VsButtonToggleGroup"),p=(0,a.up)("VsWarning"),g=(0,a.up)("VsCol"),h=(0,a.up)("VsRow"),f=(0,a.up)("VsContainer");return(0,a.wg)(),(0,a.j4)(f,{"data-test":"vs-map-with-sidebar"},{default:(0,a.w5)((function(){return[(0,a.Wm)(h,null,{default:(0,a.w5)((function(){return[(0,a.Wm)(g,null,{default:(0,a.w5)((function(){return[(0,a._)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a._)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.Wm)(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.w5)((function(){return[(0,a.WI)(t.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"reset-side-panel-text")]})),"back-btn-text":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"back-btn-text")]})),"panel-loading-message":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"panel-loading-message")]})),"load-more-text":(0,a.w5)((function(){return[(0,a.WI)(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._)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.Wm)(u,{class:"vs-map-with-sidebar__map-toggle",icon:"bars-mobile-menu",size:"sm",onClick:r.openPanel,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.Wm)(c,{"is-visible":!o.panelVisible,labels:{},filters:s.filters,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},{"map-loading-text":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"map-loading-text")]})),"info-message":(0,a.w5)((function(){return[(0,a.Uk)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"zoom-too-far")]})),"no-js":(0,a.w5)((function(){return[(0,a.WI)(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"]),s.toggleData.length>0?((0,a.wg)(),(0,a.j4)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.kq)("",!0)],2)],512),(0,a.Wm)(p,{class:"vs-map-with-sidebar__no-js",theme:"light"},{default:(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},10057:function(t,e,s){"use strict";var a=s(93379),n=s.n(a),i=s(7795),o=s.n(i),r=s(90569),l=s.n(r),u=s(3565),c=s.n(u),d=s(19216),p=s.n(d),g=s(44589),h=s.n(g),f=s(33405),m=s.n(f),b={};b.styleTagTransform=h(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p(),n()(m(),b),m()&&m().locals&&m().locals},2709:function(t,e,s){"use strict";s.r(e);var a=s(7477),n=s(70438);s(21692);const i=(0,s(83744).Z)(n.Z,[["render",a.s]]);e.default=i},70438:function(t,e,s){"use strict";s.d(e,{Z:function(){return a.Z}});var a=s(33849)},21692:function(t,e,s){"use strict";s(10057)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5274,2045,5924,5252,5730,976,419,1436,6157,4159,9187,1843,6036,1630,9106,3648,6072,2038,185,1233,5086,7215,6477,6014,7082,8127,1872],(function(){return 2709,t(t.s=2709)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8127],{42662:function(){},65506:function(e,t,a){"use strict";var n=a(4942),s=a(70419),i=a(46157),r=a(15730),l=a(67476),o=a(66072),c=a(42038),u=a(85086),d=a(40185),p=a(52378),g=a(66014),h=a(37215);function b(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 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,n.Z)(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}var f=null;t.Z={name:"VsMapWithSidebarPanel",status:"prototype",release:"0.0.1",components:{VsButton:s.default,VsMapWithSidebarCategory:c.default,VsMapWithSidebarSubcategory:u.default,VsHeading:i.default,VsMapWithSidebarListItem:d.default,VsMapWithSidebarDetail:p.default,VsMapWithSidebarButtons:g.default,VsMapWithSidebarControls:h.default},inject:["filters","placesData","regions","mapId","focussedListItem"],props:{categoryHeading:{type:String,default:""},headingLevel:{type:String,default:"2"},selectedCategory:{type:String,default:""},selectedSubcategory:{type:String,default:null},currentStage:{type:Number,required:!0},selectedItem:{type:Object,default:null},hovered:{type:String,default:""},subcategoryLocations:{type:Array,default:null},currentEndpointData:{type:Array,default:function(){return[]}},panelStatus:{type:String,default:null},panelMessage:{type:String,default:null},totalPins:{type:Number,default:0},currentListItemFocus:{type:Number,default:0}},data:function(){return{placesLoaded:1}},computed:y(y({currentHeading:function(){var e="";if(null!==this.selectedSubcategory)e=this.selectedSubcategoryData[0].label;else switch(this.currentStage){case 0:e=this.categoryHeading;break;case 1:case 2:e=this.currentFilter.label}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-map-with-sidebar-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-map-with-sidebar-panel__header-section--with-spacer":2===this.currentStage?"vs-map-with-sidebar-panel__header-section--overlapped":""},currentFilter:function(){var e=this,t="";return this.filters.forEach((function(a){a.id===e.selectedCategory&&(t=a)})),t},currentPlaceData:function(){var e=this,t=this.placesData;return"regions"===this.selectedCategory&&(t=this.regions),this.currentEndpointData.length>0?this.refineEndpointData(this.currentEndpointData):t.filter((function(t){return void 0!==t.properties&&t.properties.id===e.selectedItem.properties.id}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]}},(0,l.rn)(o.Z,{subCatFilterCount:function(e){return e.activeSubcatFilters.length}})),{},{detailHeadingLevel:function(){return(parseInt(this.headingLevel,10)+1).toString()},showLoadMore:function(){return!(this.subcategoryLocations.length>=this.totalPins||0===this.subcategoryLocations.length)}}),watch:{currentFilter:function(){this.placesLoaded=1}},mounted:function(){f=(0,o.Z)((0,r.Z)())},methods:{closePanel:function(){this.$emit("close-panel")},stageBack:function(){if(this.selectedSubcategory&&0===this.currentStage)this.$emit("set-subcategory",null);else if(null!==this.selectedSubcategory&&null===this.subcategoryLocations)this.setStage(0);else{var e=this.currentStage-1;this.setStage(e)}},resetPanel:function(){f.setSelectedSubcat(null),this.setStage(0)},setStage:function(e){0===e&&(this.placesLoaded=1),this.$emit("set-stage",e)},subCatExists:function(e){return void 0!==e.subCategory&&e.subCategory.length>0},refineEndpointData:function(e){var t=[{isEndpoint:!0,properties:{category:e[0].category[0].id,id:e[0].id,image:e[0].images[0].mediaUrl,placeTitle:e[0].name,description:e[0].description,link:{label:e[0].productLink.label,link:e[0].productLink.link,type:e[0].productLink.type},website:{label:e[0].website.label,link:e[0].website.link,type:e[0].website.type},address:{shortAddress:""}}}];return void 0!==e[0].address&&(t[0].properties.address.shortAddress=e[0].address.shortAddress),t},clearSubCatFilters:function(){f.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},44153:function(e,t,a){"use strict";a.d(t,{s:function(){return v}});var n=a(66252),s=a(3577),i=a(49963),r={class:"vs-map-with-sidebar-panel__buttons d-lg-none"},l={key:0,class:"vs-map-with-sidebar-panel__back"},o={class:"visually-hidden"},c={class:"vs-map-with-sidebar-panel__close"},u={class:"visually-hidden"},d={key:0,class:"vs-map-with-sidebar-panel__back d-none d-lg-block"},p={class:"visually-hidden"},g={class:"visually-hidden"},h={key:2,class:"vs-map-with-sidebar-panel__bottom-message"},b={class:"vs-map-with-sidebar-panel__list-container"},y={key:3,class:"vs-map-with-sidebar-panel__overlay"},f={key:0,class:"vs-map-with-sidebar-panel__overlay-box"},m={class:"vs-map-with-sidebar-panel__overlay-text"};function v(e,t,a,v,w,S){var k=(0,n.up)("VsButton"),_=(0,n.up)("VsHeading"),D=(0,n.up)("VsMapWithSidebarSubcategory"),C=(0,n.up)("VsMapWithSidebarControls"),W=(0,n.up)("VsMapWithSidebarCategory"),L=(0,n.up)("VsMapWithSidebarListItem"),P=(0,n.up)("VsMapWithSidebarButtons"),M=(0,n.up)("VsMapWithSidebarDetail");return(0,n.wg)(),(0,n.iD)("section",{"data-test":"vs-map-with-sidebar-panel",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel",S.panelClasses])},[(0,n._)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__header-section",S.headerClasses])},[(0,n._)("div",r,[a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",l,[(0,n.Wm)(k,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:S.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",o,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),(0,n._)("div",c,[(0,n.Wm)(k,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:S.closePanel,"data-test":"vs-map-with-sidebar-panel--btn-close"},{default:(0,n.w5)((function(){return[(0,n._)("span",u,[(0,n.WI)(e.$slots,"close-side-panel-text")])]})),_:3},8,["onClick"])])]),a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",d,[(0,n.Wm)(k,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:S.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",p,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),""!==S.currentHeading?((0,n.wg)(),(0,n.j4)(_,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__heading text-center mt-8 mt-lg-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-map-with-sidebar-panel__heading"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,s.toDisplayString)(S.currentHeading),1)]})),_:1},8,["level","class"])):(0,n.kq)("",!0),(0,n._)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.Wm)(k,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:S.resetPanel,"data-test":"vs-map-with-sidebar-panel--btn-reset"},{default:(0,n.w5)((function(){return[(0,n._)("span",g,[(0,n.WI)(e.$slots,"reset-side-panel-text")])]})),_:3},8,["onClick"])],2)],2),0===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Wm)(D,{data:S.selectedSubcategoryData[0].subCategory,selectedSubCategory:a.selectedSubcategory},null,8,["data","selectedSubCategory"]),(0,n.Wm)(C)],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(S.filters,(function(e){return(0,n.wg)(),(0,n.j4)(W,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":S.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,n.wg)(),(0,n.iD)("div",h,[(0,n._)("p",null,(0,s.toDisplayString)(a.panelMessage),1)])):(0,n.kq)("",!0)],64)):(0,n.kq)("",!0),1===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:1},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n._)("div",b,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.subcategoryLocations,(function(t,s){return(0,n.wg)(),(0,n.j4)(L,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:s===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),S.showLoadMore?((0,n.wg)(),(0,n.j4)(k,{key:0,class:"vs-map-with-sidebar-panel__load-more","data-test":"vs-map-with-sidebar-panel__load-more",onClick:t[0]||(t[0]=function(e){return S.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,i.withKeys)((function(e){return S.loadMorePlaces()}),["enter"]))},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"load-more-text")]})),_:3})):(0,n.kq)("",!0)]),(0,n.Wm)(P,{"content-data":{},"filter-count":e.subCatFilterCount,onClearFilters:S.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(S.currentData,(function(t){return(0,n.wg)(),(0,n.iD)("div",{key:t.id},[void 0!==t.properties&&t.properties.category.id===a.selectedCategory?((0,n.wg)(),(0,n.j4)(L,{key:0,"item-data":t,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","onShowItemDetail"])):(0,n.kq)("",!0)])})),128))],64)):(0,n.kq)("",!0),2===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:2},[(0,n.Wm)(M,{"heading-level":S.detailHeadingLevel,"content-data":S.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.Wm)(P,{"content-data":S.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.kq)("",!0),null!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",y,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",f,[(0,n._)("p",m,[(0,n.WI)(e.$slots,"panel-loading-message")])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)],2)}},42226:function(e,t,a){"use strict";var n=a(93379),s=a.n(n),i=a(7795),r=a.n(i),l=a(90569),o=a.n(l),c=a(3565),u=a.n(c),d=a(19216),p=a.n(d),g=a(44589),h=a.n(g),b=a(42662),y=a.n(b),f={};f.styleTagTransform=h(),f.setAttributes=u(),f.insert=o().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=p(),s()(y(),f),y()&&y().locals&&y().locals},98127:function(e,t,a){"use strict";a.r(t);var n=a(62363),s=a(72776);a(41321);const i=(0,a(83744).Z)(s.Z,[["render",n.s]]);t.default=i},72776:function(e,t,a){"use strict";a.d(t,{Z:function(){return n.Z}});var n=a(65506)},62363:function(e,t,a){"use strict";a.d(t,{s:function(){return n.s}});var n=a(44153)},41321:function(e,t,a){"use strict";a(42226)}}]);
@@ -1 +0,0 @@
1
- .vs-video-caption{width:100%;position:relative}.vs-video-caption--no-js{display:none}.vs-video-caption__details{background-color:#292929;color:#fff;padding:.75rem}.vs-video-caption__buttons-container{position:absolute;transform:translateY(-100%);width:100%}.vs-video-caption__buttons-container .vs-toggle-btn{display:none}@media(min-width: 992px){.vs-video-caption__buttons-container .vs-toggle-btn{display:block;position:absolute;right:.5rem;top:calc(-24px - 0.75rem)}}.vs-video-caption__title{font-size:1rem;font-weight:700;margin-bottom:.5rem}.vs-video-caption__duration{font-size:1rem;font-weight:300;margin:0}.vs-video-caption__alert{display:flex;justify-content:flex-start}.vs-video-caption__alert .vs-icon{margin-right:1.75rem}.vs-video-caption__alert p{font-size:1rem;line-height:2;margin:-10px 0 0}.vs-video-caption__alert #ot-sdk-btn.ot-sdk-show-settings{color:#fff;text-decoration:underline}.vs-video-caption__alert #ot-sdk-btn.ot-sdk-show-settings:hover{color:#fcca1b}.vs-video-caption__button{min-height:50px;display:flex;align-items:center;padding-top:.25rem;padding-bottom:.25rem;min-height:53px;text-align:left;line-height:1.1}.vs-video-caption__button .vs-icon{margin-right:1.5rem}.vs-video-caption .vs-caption--large .vs-caption__image-caption{margin-bottom:.5rem}@media(min-width: 576px){.vs-video-caption__buttons-container>.container{padding:0}.vs-video-caption__buttons-container .vs-toggle-btn{top:calc(50% - 12px)}}@media(min-width: 576px){.vs-video-caption--wide .vs-video-caption__details{display:flex;align-items:baseline;padding:1rem .75rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{font-size:1.125rem;margin-right:1rem;margin-bottom:0}.vs-video-caption--wide .vs-video-caption__buttons-container__button{max-width:400px}}@media(min-width: 992px){.vs-video-caption--wide .vs-video-caption__details{display:block;padding:1rem 1.5rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{margin-bottom:.25rem}.vs-video-caption--wide .vs-video-caption__button{max-width:360px}}.vs-video-caption__wrapper--narrow{width:100%}.vs-article-sidebar .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0;font-size:0}.vs-article-sidebar .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-article-sidebar .vs-video-caption__buttons-container .container{padding:0}.vs-article-sidebar .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{font-size:1.875rem}@media(min-width: 576px){.vs-article-sidebar .vs-video-caption__details{display:flex;align-items:baseline;padding:1rem 1.25rem 1.25rem}.vs-article-sidebar .vs-caption .vs-caption__caption-info{padding:1rem 1.25rem 1.25rem}}@media(min-width: 992px){.vs-article-sidebar .vs-video-caption__details{display:block;padding:1rem .5rem .75rem}.vs-article-sidebar .vs-caption .vs-caption__caption-info{padding:1rem .5rem .75rem}}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0;font-size:0}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block !important}@media(min-width: 576px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:auto;height:auto;padding:.75rem 1rem;font-size:1rem}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:relative;top:auto;left:auto;transform:none;height:1.25rem;width:1.25rem}}@media(min-width: 992px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption{width:400px}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none !important}}.no-js .vs-video-caption{display:none}.no-js .vs-video-caption--no-js{display:block}@media(min-width: 576px){.no-js .vs-video-caption__details{max-width:84%;margin:0 auto;border-bottom:#6a6366 1px solid}}@media(min-width: 992px){.no-js .vs-video-caption__details{max-width:100%;margin:0;border-bottom:none}}.no-js .vs-video-caption__title,.no-js .vs-video-caption__duration,.no-js .vs-video-caption__button,.no-js .vs-video-caption .vs-toggle-btn{display:none}