@visitscotland/component-library 1.0.12 → 1.0.13

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 (38) hide show
  1. package/CHANGELOG.md +50 -19
  2. package/LICENSE.txt +21 -0
  3. package/README.md +14 -1
  4. package/dist/client/fonts/custom-icons.103bd0a.woff2 +0 -0
  5. package/dist/client/fonts/{custom-icons.3258cde.ttf → custom-icons.c4e1f0c.ttf} +0 -0
  6. package/dist/client/manifest.json +251 -251
  7. package/dist/client/scripts/20f5b05314f1b8523852.js +1 -0
  8. package/dist/client/scripts/{16a04a44448d209e8041.js → 94aa5ac955de9ed0d840.js} +1 -1
  9. package/dist/client/scripts/{f73c746336d961008dcf.js → a0a3c5c4f4a1952db9c3.js} +1 -1
  10. package/dist/client/scripts/aa260d81d6025b38f93b.js +1 -0
  11. package/dist/client/scripts/{58dc9ceca6199099d293.js → b189558cf6031aa6564c.js} +1 -1
  12. package/dist/client/scripts/c1e52b98d340cd47fee7.js +1 -0
  13. package/dist/client/styles/{4db8c3f305ad26b9ba85.css → 535956e200092e54a3d6.css} +1 -1
  14. package/dist/client/styles/{16a04a44448d209e8041.css → 94aa5ac955de9ed0d840.css} +1 -1
  15. package/dist/client/styles/a0a3c5c4f4a1952db9c3.css +1 -0
  16. package/dist/client/styles/{5048c379d9322bbc5634.css → aa260d81d6025b38f93b.css} +1 -1
  17. package/dist/client/styles/b189558cf6031aa6564c.css +1 -0
  18. package/dist/client/styles/{60bbdd5157253e781491.css → c5992240a3f3d7197c2b.css} +1 -1
  19. package/dist/ssr/fonts/custom-icons.103bd0a.woff2 +0 -0
  20. package/dist/ssr/fonts/{custom-icons.3258cde.ttf → custom-icons.c4e1f0c.ttf} +0 -0
  21. package/dist/ssr/index.js +1 -1
  22. package/dist/ssr/manifest.json +1 -1
  23. package/dist/ssr/styles/{457d14df2ed04aa300f5.css → 8b930092ae2e4c76b03d.css} +6 -6
  24. package/package.json +3 -3
  25. package/dist/client/fonts/custom-icons.e2b7f4e.woff2 +0 -0
  26. package/dist/client/scripts/5048c379d9322bbc5634.js +0 -1
  27. package/dist/client/scripts/936fef4fcf5810abc6d6.js +0 -1
  28. package/dist/client/scripts/dbe1b855d20944778934.js +0 -1
  29. package/dist/client/styles/58dc9ceca6199099d293.css +0 -1
  30. package/dist/client/styles/f73c746336d961008dcf.css +0 -1
  31. package/dist/ssr/fonts/custom-icons.e2b7f4e.woff2 +0 -0
  32. /package/dist/client/scripts/{6eb7c7f410527693630a.js → 3c9d8724e602abc493bb.js} +0 -0
  33. /package/dist/client/scripts/{4db8c3f305ad26b9ba85.js → 535956e200092e54a3d6.js} +0 -0
  34. /package/dist/client/scripts/{33b055ac428c5559f2e3.js → 721866ef74ab37fdfc1d.js} +0 -0
  35. /package/dist/client/scripts/{60bbdd5157253e781491.js → c5992240a3f3d7197c2b.js} +0 -0
  36. /package/dist/client/scripts/{4b2add716808488d3499.js → eb0ba8b087d521881318.js} +0 -0
  37. /package/dist/client/styles/{936fef4fcf5810abc6d6.css → 20f5b05314f1b8523852.css} +0 -0
  38. /package/dist/client/styles/{dbe1b855d20944778934.css → c1e52b98d340cd47fee7.css} +0 -0
@@ -0,0 +1 @@
1
+ !function(r,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsCaption=o():r.VsCaption=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7460],{71728:function(){},16853:function(r,o,e){"use strict";var _=e(5245),t=e(81779),n=e(65005);o.Z={name:"VsCaption",status:"prototype",release:"0.0.1",components:{VsRow:t.ou,VsCol:t.hY,VsCaptionImageMap:n.default},props:{variant:{type:String,default:"fullwidth",validator:function(r){return r.match(/(fullwidth|large)/)}},latitude:{type:String,default:""},longitude:{type:String,default:""},textAlign:{type:String,default:"left",validator:function(r){return r.match(/(left|right)/)}}},data:function(){return{tokens:_}},computed:{showMap:function(){return!(!this.longitude||!this.latitude)},isLargeCaption:function(){return"large"===this.variant},captionClasses:function(){return[{"vs-caption--large":this.isLargeCaption,"vs-caption--fullwidth":!this.isLargeCaption},"vs-caption--".concat(this.textAlign)]}}}},443:function(r,o,e){"use strict";e.d(o,{s:function(){return l}});var _=e(66252),t=e(3577),n={class:"vs-caption__caption-info"},a={key:0,class:"vs-caption__image-caption"},s={key:1,class:"vs-caption__image-credit"},i={class:"vs-caption__map-wrapper pt-3 pt-sm-2 pb-sm-2 pr-sm-4 mx-auto"};function l(r,o,e,l,c,g){var d=(0,_.up)("VsCol"),p=(0,_.up)("VsCaptionImageMap"),b=(0,_.up)("VsRow");return(0,_.wg)(),(0,_.iD)("div",{"data-test":"vs-caption",class:(0,t.normalizeClass)(["vs-caption",g.captionClasses])},[(0,_.Wm)(b,{class:"justify-content-center justify-content-sm-start"},{default:(0,_.w5)((function(){return[(0,_.Wm)(d,{class:(0,t.normalizeClass)(["order-2 order-sm-1",[g.showMap?"":"align-self-center"]])},{default:(0,_.w5)((function(){return[(0,_._)("div",n,[r.$slots.caption?((0,_.wg)(),(0,_.iD)("p",a,[(0,_.WI)(r.$slots,"caption")])):(0,_.kq)("",!0),r.$slots.credit?((0,_.wg)(),(0,_.iD)("p",s,[(0,_.WI)(r.$slots,"credit")])):(0,_.kq)("",!0)])]})),_:3},8,["class"]),g.showMap&&g.isLargeCaption?((0,_.wg)(),(0,_.j4)(d,{key:0,class:"col-12 col-sm-auto order-1 order-sm-2 pl-sm-0 align-self-end align-self-sm-start"},{default:(0,_.w5)((function(){return[(0,_._)("div",i,[(0,_.Wm)(p,{latitude:e.latitude,longitude:e.longitude,"map-outline-color":c.tokens.color_white,"map-marker-color":c.tokens.color_secondary_teal_tint_3},null,8,["latitude","longitude","map-outline-color","map-marker-color"])])]})),_:1})):(0,_.kq)("",!0)]})),_:3})],2)}},97870:function(r,o,e){"use strict";var _=e(93379),t=e.n(_),n=e(7795),a=e.n(n),s=e(90569),i=e.n(s),l=e(3565),c=e.n(l),g=e(19216),d=e.n(g),p=e(44589),b=e.n(p),m=e(71728),u=e.n(m),h={};h.styleTagTransform=b(),h.setAttributes=c(),h.insert=i().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=d(),t()(u(),h),u()&&u().locals&&u().locals},51425:function(r,o,e){"use strict";e.r(o);var _=e(75856),t=e(3573);e(80830);const n=(0,e(83744).Z)(t.Z,[["render",_.s]]);o.default=n},3573:function(r,o,e){"use strict";e.d(o,{Z:function(){return _.Z}});var _=e(16853)},75856:function(r,o,e){"use strict";e.d(o,{s:function(){return _.s}});var _=e(443)},80830:function(r,o,e){"use strict";e(97870)},5245:function(r){"use strict";r.exports=JSON.parse('{"color_purple":"rgb(112, 14, 87)","color_gray":"rgb(132, 132, 132)","color_pink":"rgb(175, 0, 110)","color_yellow":"rgb(252, 202, 27)","color_secondary_gray":"rgb(106, 99, 102)","color_secondary_teal":"rgb(16, 157, 163)","color_base_text":"rgb(25, 25, 25)","color_error":"rgb(149, 165, 171)","color_black":"rgb(0, 0, 0)","color_white":"rgb(255, 255, 255)","color_theme_primary":"rgb(175, 0, 110)","color_theme_secondary":"rgb(106, 99, 102)","color_theme_secondary_teal":"rgb(40, 199, 196)","color_theme_secondary_indigo":"rgb(67, 47, 178)","color_theme_secondary_orange":"rgb(253, 115, 57)","color_theme_success":"rgb(30, 97, 1)","color_theme_info":"rgb(46, 95, 149)","color_theme_warning":"rgb(252, 202, 27)","color_theme_danger":"rgb(174, 41, 64)","color_theme_light":"rgb(239, 239, 239)","color_theme_secondary_light":"rgb(102, 102, 102)","color_theme_dark":"rgb(25, 25, 25)","color_theme_primary_purple":"rgb(112, 14, 87)","color_facebook":"rgb(24, 119, 242)","color_twitter":"rgb(8, 160, 233)","color_youtube":"rgb(230, 33, 23)","color_instagram":"rgb(240, 0, 117)","color_map_blue":"rgb(16, 102, 214)","color_map_red":"rgb(195, 22, 19)","color_map_purple":"rgb(122, 7, 77)","color_purple_tint_1":"rgb(133, 50, 112)","color_purple_tint_2":"rgb(155, 86, 137)","color_purple_tint_3":"rgb(176, 122, 163)","color_purple_tint_4":"rgb(198, 159, 188)","color_purple_tint_5":"rgb(219, 195, 213)","color_purple_tint_6":"rgb(241, 231, 238)","color_purple_shade_1":"rgb(95, 12, 74)","color_purple_shade_2":"rgb(78, 10, 61)","color_purple_shade_3":"rgb(62, 8, 48)","color_purple_shade_4":"rgb(45, 6, 35)","color_purple_shade_5":"rgb(28, 4, 22)","color_purple_shade_6":"rgb(11, 1, 9)","color_gray_tint_1":"rgb(147, 147, 147)","color_gray_tint_2":"rgb(163, 163, 163)","color_gray_tint_3":"rgb(178, 178, 178)","color_gray_tint_4":"rgb(193, 193, 193)","color_gray_tint_5":"rgb(208, 208, 208)","color_gray_tint_6":"rgb(224, 224, 224)","color_gray_tint_7":"rgb(239, 239, 239)","color_gray_tint_8":"rgb(254, 254, 254)","color_gray_shade_1":"rgb(117, 117, 117)","color_gray_shade_2":"rgb(102, 102, 102)","color_gray_shade_3":"rgb(86, 86, 86)","color_gray_shade_4":"rgb(71, 71, 71)","color_gray_shade_5":"rgb(56, 56, 56)","color_gray_shade_6":"rgb(41, 41, 41)","color_gray_shade_7":"rgb(25, 25, 25)","color_gray_shade_8":"rgb(10, 10, 10)","color_pink_tint_1":"rgb(187, 38, 132)","color_pink_tint_2":"rgb(199, 77, 154)","color_pink_tint_3":"rgb(211, 115, 175)","color_pink_tint_4":"rgb(223, 153, 197)","color_pink_tint_5":"rgb(235, 191, 219)","color_pink_tint_6":"rgb(247, 230, 241)","color_pink_shade_1":"rgb(149, 0, 94)","color_pink_shade_2":"rgb(122, 0, 77)","color_pink_shade_3":"rgb(96, 0, 61)","color_pink_shade_4":"rgb(70, 0, 44)","color_pink_shade_5":"rgb(44, 0, 28)","color_pink_shade_6":"rgb(17, 0, 11)","color_yellow_tint_1":"rgb(252, 210, 61)","color_yellow_tint_2":"rgb(253, 218, 95)","color_yellow_tint_3":"rgb(253, 226, 130)","color_yellow_tint_4":"rgb(254, 234, 164)","color_yellow_tint_5":"rgb(254, 242, 198)","color_yellow_tint_6":"rgb(255, 250, 232)","color_secondary_gray_tint_1":"rgb(128, 122, 125)","color_secondary_gray_tint_2":"rgb(151, 146, 148)","color_secondary_gray_tint_3":"rgb(173, 169, 171)","color_secondary_gray_tint_4":"rgb(195, 193, 194)","color_secondary_gray_tint_5":"rgb(218, 216, 217)","color_secondary_gray_tint_6":"rgb(240, 239, 240)","color_secondary_gray_shade_1":"rgb(90, 84, 87)","color_secondary_gray_shade_2":"rgb(74, 69, 71)","color_secondary_gray_shade_3":"rgb(58, 54, 56)","color_secondary_gray_shade_4":"rgb(42, 40, 41)","color_secondary_gray_shade_5":"rgb(27, 25, 26)","color_secondary_gray_shade_6":"rgb(11, 10, 10)","color_secondary_teal_tint_1":"rgb(0, 0, 0)","color_secondary_teal_tint_2":"rgb(83, 210, 208)","color_secondary_teal_tint_3":"rgb(126, 221, 220)","color_secondary_teal_tint_4":"rgb(169, 233, 231)","color_secondary_teal_tint_5":"rgb(212, 244, 243)","color_secondary_teal_tint_6":"rgb(234, 249, 249)","color_secondary_teal_shade_1":"rgb(36, 179, 176)","color_secondary_teal_shade_2":"rgb(32, 159, 157)","color_secondary_teal_shade_3":"rgb(24, 119, 118)","color_secondary_teal_shade_4":"rgb(16, 80, 78)","color_secondary_indigo_tint_1":"rgb(86, 68, 186)","color_secondary_indigo_tint_2":"rgb(105, 89, 193)","color_secondary_indigo_tint_3":"rgb(142, 130, 209)","color_secondary_indigo_tint_4":"rgb(180, 172, 224)","color_secondary_indigo_tint_5":"rgb(217, 213, 240)","color_secondary_indigo_tint_6":"rgb(236, 234, 247)","color_secondary_indigo_shade_1":"rgb(60, 42, 160)","color_secondary_indigo_shade_2":"rgb(54, 38, 142)","color_secondary_indigo_shade_3":"rgb(40, 28, 107)","color_secondary_indigo_shade_4":"rgb(51, 23, 12)","color_secondary_orange_tint_2":"rgb(254, 171, 136)","color_secondary_orange_tint_3":"rgb(254, 199, 175)","color_secondary_orange_tint_4":"rgb(253, 214, 195)","color_secondary_orange_tint_5":"rgb(255, 227, 215)","color_secondary_orange_tint_6":"rgb(255, 240, 235)","color_secondary_orange_shade_1":"rgb(202, 92, 46)","color_secondary_orange_shade_2":"rgb(152, 69, 34)","color_secondary_orange_shade_3":"rgb(101, 46, 24)","color_secondary_orange_shade_4":"rgb(51, 23, 12)","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.125rem","font-size-6":"1.25rem","font-size-7":"1.375rem","font-size-8":"1.5rem","font-size-9":"1.875rem","font-size-10":"2.5rem","font-size-body":"1rem","font-size-body-md":"1.125rem","font-size-lead":"1.125rem","font-size-lead-md":"1.25rem","font-size-teaser":"1rem","font_weight_bold":"700","font_weight_semi_bold":"600","font_weight_normal":"400","font_weight_light":"300","font_family_sans_serif":"\'Source Sans Pro\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'","headings_font_family":"\'evelethclean-regular\', sans-serif, $font-family-sans-serif","headings_font_family_thin":"\'evelethclean-thin\', \'evelethclean-thin\', sans-serif, $font-family-sans-serif","icon_size_xxs":"12px","icon_size_xs":"16px","icon_size_sm":"20px","icon_size_md":"24px","icon_size_lg":"30px","icon_size_xl":"40px","opacity_100":"1","opacity_50":"0.5","opacity_0":"0","duration_quickly":".08s","duration_base":".2s","duration_slowly":".5s","breakpoint_xl":"1200px","breakpoint_md":"768px","max_container_width_xl":"1140px","breakpoint_sm":"576px","breakpoint_lg":"992px","breakpoint_xs":"0","max_container_width_md":"720px","max_container_width_sm":"540px","max_container_width_lg":"960px","max_container_width_xxl":"1340px","breakpoint_xxl":"1400px","shadow_s":"0 0 0 1px rgba(92,106,196,.1)","shadow_card":"10px 10px 20px $color-gray-tint-4","shadow_card_dark":"0 8px 8px rgba(0, 0, 0, 0.3)","shadow_popover":"0 0px 20px rgba(0, 0, 0, 0.3)","shadow_popover_dark":"0 0px 20px $color-theme-dark","shadow_button_focus":"0 0 0 4px $color-pink","shadow_button_focus_on_dark":"0 0 0 4px $color-yellow","shadow_form_input":"0 0 0 0.2rem rgba(187, 38, 132, 0.5)","font-size-h1":"1.5rem","font-size-h1-md":"1.875rem","font-size-h2":"1.25rem","font-size-h2-md":"1.5rem","font-size-h3":"1.125rem","font-size-h3-md":"1.25rem","font-size-h4":"1rem","font-size-h5":"1.25rem","font-size-h5-md":"1.375rem","font-size-h6":"1.125rem","font-size-h6-md":"1.25rem","font-size-h3-sub":"1rem","font-size-h2-sub":"1.25rem","letter_spacing_xxl":"2px","letter_spacing_xl":"1.4px","letter_spacing_l":"1px","letter_spacing_m":"0.8px","letter_spacing_s":"-0.5px","letter_spacing_xs":"-1px","border_radius_default":"0.25rem","border_radius_xl":"0.5rem","border_radius_lg":"0.3rem","border_radius_sm":"0.2rem","border_radius_pill":"50rem","spacer-0":"0","spacer-1":"0.25rem","spacer-2":"0.5rem","spacer-3":"0.75rem","spacer-4":"1rem","spacer-5":"1.25rem","spacer-6":"1.5rem","spacer-7":"1.75rem","spacer-8":"2rem","spacer-9":"3rem","spacer-10":"4rem","spacer-11":"5rem","spacer-12":"6rem","line_height_lead":"1.55","line_height_l":"1.8","line_height_m":"1.6","line_height_s":"1.3","line_height_standard":"1.2","line_height_xs":"1","grid_columns":"12","grid_gutter_width":"24px","no_javascript":"no-js","theme_dark":"rgb(42, 40, 41)","theme_grey":"rgb(239, 239, 239)"}')}},function(r){return r.O(0,[6252,3744,7991,9963,2854,7581,4186,1321,1779,5005],(function(){return 51425,r(r.s=51425)})),r.O()}])}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMainMapWrapper=t():e.VsMainMapWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4373],{1947:function(){},38822:function(e,t,s){"use strict";var a=s(81779),n=s(83918),i=s(22048),o=s(98869),l=s(5274),r=s(10282),u=s(61570),c=s(14169),p=s(84143),d=null;t.Z={name:"VsMainMapWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:a.xB,VsRow:a.ou,VsCol:a.hY,VsMap:c.default,VsButton:n.default,VsMainMapWrapperPanel:p.default,VsButtonToggleGroup:o.default,VsWarning:i.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},hideMobileToggle:{type:Boolean,default:!1}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:"",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:{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(e){return"Polygon"===e.geometry.type||"MultiPolygon"===e.geometry.type}))},subCatActiveFilters:function(){return d?d.activeSubcatFilters:null},infoMessage:function(){var e="";switch(this.mapStatus){case"no-results":e=this.mapNoResultsMessage;break;case"filter-results":e=this.mapFilterMessage}return e}},watch:{selectedSubCategory:function(e){null===e&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var e=this;d=(0,u.Z)((0,r.Z)()),this.selectedToggle=this.initialSelected,d.addMapInstance({id:this.mapId,filters:this.filters,places:this.placesData,activePins:this.activePins}),this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{closePanel:function(){this.panelVisible=!1},openPanel:function(){this.panelVisible=!0},showDetail:function(e){document.fullscreenElement&&document.exitFullscreen(),this.selectedItem=e,this.setStage(2),this.openPanel(),null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory)},setCategory:function(e){this.selectedCategory=e,null===this.selectedSubCategory&&this.filterPlaces(e)},setSubCategory:function(e){d.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(d.setActiveSubcatFilters([]),this.showAllPlaces())},filterSubCategories:function(e){var t="";e.forEach((function(e){var s="&cat=".concat(e);t+=s})),this.currentPanelEndpointFilters=t,this.getSubcatMarkerData(t),this.getSubcatPanelData(t,0)},getSubcatMarkerData:function(e){var t=this,s=this.filters.filter((function(e){return e.id===t.selectedSubCategory}));if(s.length>0){var a=s[0].pinsEndpoint;void 0!==e&&(a+=e),this.activePins=[],void 0===e?(this.activePins=[],this.mapStatus="filter-results"):l.Z.get(a).then((function(e){t.totalEndpointPins=e.data.features.length,0===t.totalEndpointPins?t.mapStatus="no-results":(e.data.features.forEach((function(e){var s=e;s.properties.apiData=!0,t.activePins.push(s)})),t.mapStatus="")}))}},getSubcatPanelData:function(e,t){var s=this,a=this.filters.filter((function(e){return e.id===s.selectedSubCategory}))[0].listProductsEndPoint;void 0!==e&&(a+=e),0!==t&&(a+="".concat(e,"&page=").concat(t)),this.panelStatus="loading-data",l.Z.get(a).then((function(e){void 0!==e.data.data.products?(s.setStage(1),0===t?(s.subCatList=e.data.data.products,s.focussedListItem=0):(s.focussedListItem=24*t,s.subCatList=s.subCatList.concat(e.data.data.products))):s.mapStatus="no-results",s.panelStatus=null}))},setStage:function(e){var t=this;if(2===e&&""!==this.detailsEndpoint&&null!==this.selectedSubCategory){var s="".concat(this.detailsEndpoint).concat(this.selectedItem);l.Z.get(s).then((function(s){var a=[];a.push(s.data.data),t.currentEndpointData=a,t.currentStage=e}))}else this.currentStage=e,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!==e&&(d.setActivePlace({mapId:this.mapId,placeId:""}),this.selectedItem=null)},filterPlaces:function(e){if("regions"===e)this.showRegions=!0,this.activePins=[],this.selectedToggle="regions";else{this.showRegions=!1,this.selectedToggle="places";var t=this.placesData.filter((function(t){return void 0!==t.properties&&t.properties.category.id===e}));this.activePins=t}},loadMorePlaces:function(e){this.getSubcatPanelData(this.currentPanelEndpointFilters,e)},showAllPlaces:function(){this.activePins=this.placesData,this.showRegions=!1},onToggleChanged:function(e){"regions"===e?(this.setCategory("regions"),this.setStage(1)):"icentres"===e?(this.setCategory("serv"),this.setStage(1)):"places-regional"===e?(this.setCategory("twnv"),this.setStage(1)):(this.showAllPlaces(),this.setStage(0))},setMapReady:function(e){this.mapReady=e,this.panelStatus=e?null:"loading"}}}},50118:function(e,t,s){"use strict";s.d(t,{s:function(){return i}});var a=s(66252),n=s(3577);function i(e,t,s,i,o,l){var r=(0,a.up)("VsMainMapWrapperPanel"),u=(0,a.up)("VsButton"),c=(0,a.up)("VsMap"),p=(0,a.up)("VsButtonToggleGroup"),d=(0,a.up)("VsWarning"),g=(0,a.up)("VsCol"),f=(0,a.up)("VsRow"),h=(0,a.up)("VsContainer");return(0,a.wg)(),(0,a.j4)(h,{"data-test":"vs-main-map-wrapper"},{default:(0,a.w5)((function(){return[(0,a.Wm)(f,null,{default:(0,a.w5)((function(){return[(0,a.Wm)(g,null,{default:(0,a.w5)((function(){return[(0,a._)("div",{class:"vs-main-map-wrapper",ref:s.mapId},[(0,a._)("div",{class:(0,n.normalizeClass)(["vs-main-map-wrapper__side-panel",l.panelDisplayClass]),"data-test":"vs-main-map-wrapper__side-panel"},[(0,a.Wm)(r,{"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:l.setCategory,onSetSubcategory:l.setSubCategory,onSubcategoriesFiltered:l.filterSubCategories,onSetStage:l.setStage,onClosePanel:l.closePanel,onShowItemDetail:l.showDetail,onFilterPlaces:l.filterPlaces,onLoadMorePlaces:l.loadMorePlaces},{closePanelText:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"reset-side-panel-text")]})),"back-btn-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"back-btn-text")]})),"panel-loading-message":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.w5)((function(){return[(0,a.WI)(e.$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-main-map-wrapper__map",l.mapDisplayClass])},[(0,a.Wm)(u,{class:"vs-main-map-wrapper__map-toggle",size:"sm",onClick:l.openPanel,"data-test":"vs-main-map-wrapper__map-toggle"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.Wm)(c,{"is-visible":!o.panelVisible,labels:{},places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:l.showDetail,onSetCategory:l.setCategory,onMapReady:l.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom},{"map-loading-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"map-loading-text")]})),"info-message":(0,a.w5)((function(){return[(0,a.Uk)((0,n.toDisplayString)(l.infoMessage),1)]})),"zoom-too-close":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3},8,["is-visible","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.hideMobileToggle?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(p,{key:0,"data-test":"vs-main-map-wrapper__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:l.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"]))],2)],512),(0,a.Wm)(d,{class:"vs-main-map-wrapper__no-js",theme:"light"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},78711:function(e,t,s){"use strict";var a=s(93379),n=s.n(a),i=s(7795),o=s.n(i),l=s(90569),r=s.n(l),u=s(3565),c=s.n(u),p=s(19216),d=s.n(p),g=s(44589),f=s.n(g),h=s(1947),m=s.n(h),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=r().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=d(),n()(m(),y),m()&&m().locals&&m().locals},44152:function(e,t,s){"use strict";s.r(t);var a=s(50118),n=s(27492);s(82917);const i=(0,s(83744).Z)(n.Z,[["render",a.s]]);t.default=i},27492:function(e,t,s){"use strict";s.d(t,{Z:function(){return a.Z}});var a=s(38822)},82917:function(e,t,s){"use strict";s(78711)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,5274,5924,7370,282,976,3918,7581,4186,1321,1779,3366,2048,2015,6573,1570,6145,1674,9848,4173,4613,6520,175,5834,3709,4169,4143,8869],(function(){return 44152,e(e.s=44152)})),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.VsMainMapWrapper=t():e.VsMainMapWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4373],{6442:function(){},38822:function(e,t,s){"use strict";var a=s(81779),n=s(83918),i=s(22048),o=s(98869),l=s(5274),r=s(10282),u=s(61570),c=s(14169),p=s(84143),d=null;t.Z={name:"VsMainMapWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:a.xB,VsRow:a.ou,VsCol:a.hY,VsMap:c.default,VsButton:n.default,VsMainMapWrapperPanel:p.default,VsButtonToggleGroup:o.default,VsWarning:i.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},hideMobileToggle:{type:Boolean,default:!1}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:"",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:{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(e){return"Polygon"===e.geometry.type||"MultiPolygon"===e.geometry.type}))},subCatActiveFilters:function(){return d?d.activeSubcatFilters:null},infoMessage:function(){var e="";switch(this.mapStatus){case"no-results":e=this.mapNoResultsMessage;break;case"filter-results":e=this.mapFilterMessage}return e}},watch:{selectedSubCategory:function(e){null===e&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var e=this;d=(0,u.Z)((0,r.Z)()),this.selectedToggle=this.initialSelected,d.addMapInstance({id:this.mapId,filters:this.filters,places:this.placesData,activePins:this.activePins}),this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{closePanel:function(){this.panelVisible=!1},openPanel:function(){this.panelVisible=!0},showDetail:function(e){document.fullscreenElement&&document.exitFullscreen(),this.selectedItem=e,this.setStage(2),this.openPanel(),null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory)},setCategory:function(e){this.selectedCategory=e,null===this.selectedSubCategory&&this.filterPlaces(e)},setSubCategory:function(e){d.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(d.setActiveSubcatFilters([]),this.showAllPlaces())},filterSubCategories:function(e){var t="";e.forEach((function(e){var s="&cat=".concat(e);t+=s})),this.currentPanelEndpointFilters=t,this.getSubcatMarkerData(t),this.getSubcatPanelData(t,0)},getSubcatMarkerData:function(e){var t=this,s=this.filters.filter((function(e){return e.id===t.selectedSubCategory}));if(s.length>0){var a=s[0].pinsEndpoint;void 0!==e&&(a+=e),this.activePins=[],void 0===e?(this.activePins=[],this.mapStatus="filter-results"):l.Z.get(a).then((function(e){t.totalEndpointPins=e.data.features.length,0===t.totalEndpointPins?t.mapStatus="no-results":(e.data.features.forEach((function(e){var s=e;s.properties.apiData=!0,t.activePins.push(s)})),t.mapStatus="")}))}},getSubcatPanelData:function(e,t){var s=this,a=this.filters.filter((function(e){return e.id===s.selectedSubCategory}))[0].listProductsEndPoint;void 0!==e&&(a+=e),0!==t&&(a+="".concat(e,"&page=").concat(t)),this.panelStatus="loading-data",l.Z.get(a).then((function(e){void 0!==e.data.data.products?(s.setStage(1),0===t?(s.subCatList=e.data.data.products,s.focussedListItem=0):(s.focussedListItem=24*t,s.subCatList=s.subCatList.concat(e.data.data.products))):s.mapStatus="no-results",s.panelStatus=null}))},setStage:function(e){var t=this;if(2===e&&""!==this.detailsEndpoint&&null!==this.selectedSubCategory){var s="".concat(this.detailsEndpoint).concat(this.selectedItem);l.Z.get(s).then((function(s){var a=[];a.push(s.data.data),t.currentEndpointData=a,t.currentStage=e}))}else this.currentStage=e,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!==e&&(d.setActivePlace({mapId:this.mapId,placeId:""}),this.selectedItem=null)},filterPlaces:function(e){if("regions"===e)this.showRegions=!0,this.activePins=[],this.selectedToggle="regions";else{this.showRegions=!1,this.selectedToggle="places";var t=this.placesData.filter((function(t){return void 0!==t.properties&&t.properties.category.id===e}));this.activePins=t}},loadMorePlaces:function(e){this.getSubcatPanelData(this.currentPanelEndpointFilters,e)},showAllPlaces:function(){this.activePins=this.placesData,this.showRegions=!1},onToggleChanged:function(e){"regions"===e?(this.setCategory("regions"),this.setStage(1)):"icentres"===e?(this.setCategory("serv"),this.setStage(1)):"places-regional"===e?(this.setCategory("twnv"),this.setStage(1)):(this.showAllPlaces(),this.setStage(0))},setMapReady:function(e){this.mapReady=e,this.panelStatus=e?null:"loading"}}}},26054:function(e,t,s){"use strict";s.d(t,{s:function(){return i}});var a=s(66252),n=s(3577);function i(e,t,s,i,o,l){var r=(0,a.up)("VsMainMapWrapperPanel"),u=(0,a.up)("VsButton"),c=(0,a.up)("VsMap"),p=(0,a.up)("VsButtonToggleGroup"),d=(0,a.up)("VsWarning"),g=(0,a.up)("VsCol"),f=(0,a.up)("VsRow"),h=(0,a.up)("VsContainer");return(0,a.wg)(),(0,a.j4)(h,{"data-test":"vs-main-map-wrapper"},{default:(0,a.w5)((function(){return[(0,a.Wm)(f,null,{default:(0,a.w5)((function(){return[(0,a.Wm)(g,null,{default:(0,a.w5)((function(){return[(0,a._)("div",{class:"vs-main-map-wrapper",ref:s.mapId},[(0,a._)("div",{class:(0,n.normalizeClass)(["vs-main-map-wrapper__side-panel",l.panelDisplayClass]),"data-test":"vs-main-map-wrapper__side-panel"},[(0,a.Wm)(r,{"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:l.setCategory,onSetSubcategory:l.setSubCategory,onSubcategoriesFiltered:l.filterSubCategories,onSetStage:l.setStage,onClosePanel:l.closePanel,onShowItemDetail:l.showDetail,onFilterPlaces:l.filterPlaces,onLoadMorePlaces:l.loadMorePlaces},{closePanelText:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"reset-side-panel-text")]})),"back-btn-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"back-btn-text")]})),"panel-loading-message":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.w5)((function(){return[(0,a.WI)(e.$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-main-map-wrapper__map",l.mapDisplayClass])},[(0,a.Wm)(u,{class:"vs-main-map-wrapper__map-toggle",size:"sm",onClick:l.openPanel,"data-test":"vs-main-map-wrapper__map-toggle"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.Wm)(c,{"is-visible":!o.panelVisible,labels:{},places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:l.showDetail,onSetCategory:l.setCategory,onMapReady:l.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom},{"map-loading-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"map-loading-text")]})),"info-message":(0,a.w5)((function(){return[(0,a.Uk)((0,n.toDisplayString)(l.infoMessage),1)]})),"zoom-too-close":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3},8,["is-visible","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.hideMobileToggle?(0,a.kq)("",!0):((0,a.wg)(),(0,a.j4)(p,{key:0,"data-test":"vs-main-map-wrapper__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:l.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"]))],2)],512),(0,a.Wm)(d,{class:"vs-main-map-wrapper__no-js",theme:"light"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},4666:function(e,t,s){"use strict";var a=s(93379),n=s.n(a),i=s(7795),o=s.n(i),l=s(90569),r=s.n(l),u=s(3565),c=s.n(u),p=s(19216),d=s.n(p),g=s(44589),f=s.n(g),h=s(6442),m=s.n(h),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=r().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=d(),n()(m(),y),m()&&m().locals&&m().locals},44152:function(e,t,s){"use strict";s.r(t);var a=s(26054),n=s(27492);s(60138);const i=(0,s(83744).Z)(n.Z,[["render",a.s]]);t.default=i},27492:function(e,t,s){"use strict";s.d(t,{Z:function(){return a.Z}});var a=s(38822)},60138:function(e,t,s){"use strict";s(4666)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,5274,5924,7370,282,976,3918,7581,4186,1321,1779,3366,2048,2015,6573,1570,6145,1674,9848,4173,4613,6520,175,5834,3709,4169,4143,8869],(function(){return 44152,e(e.s=44152)})),e.O()}])}));
@@ -1 +1 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6520],{82779:function(){},24796:function(t,e,a){"use strict";var n=a(2015),i=a(73366);e.Z={name:"VsMainMapWrapperDetail",status:"prototype",release:"0.0.1",components:{VsImg:n.default,VsHeading:i.default},props:{contentData:{type:Object,required:!0},headingLevel:{type:String,default:"3"}},computed:{showTitle:function(){return void 0!==this.contentData.properties.title||void 0!==this.contentData.properties.placeTitle}}}},90280:function(t,e,a){"use strict";a.d(e,{s:function(){return o}});var n=a(66252),i=a(3577),s={class:"vs-main-map-wrapper-detail","data-test":"vs-main-map-wrapper-detail"},r={key:2,"data-test":"vs-main-map-wrapper-detail__address",class:"vs-main-map-wrapper-detail__address"},p=["innerHTML"];function o(t,e,a,o,l,c){var d=(0,n.up)("VsImg"),u=(0,n.up)("VsHeading");return(0,n.wg)(),(0,n.iD)("div",s,[void 0!==a.contentData.properties.image?((0,n.wg)(),(0,n.j4)(d,{key:0,src:a.contentData.properties.image,class:"vs-main-map-wrapper-detail__image mb-5 mb-lg-3"},null,8,["src"])):(0,n.kq)("",!0),c.showTitle?((0,n.wg)(),(0,n.j4)(u,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,i.normalizeClass)(["vs-main-map-wrapper-detail__heading mt-0",void 0!==a.contentData.properties.title?"d-lg-none":""]),"data-test":"vs-main-map-wrapper-detail__heading"},{default:(0,n.w5)((function(){return[void 0!==a.contentData.properties.placeTitle?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Uk)((0,i.toDisplayString)(a.contentData.properties.placeTitle),1)],64)):((0,n.wg)(),(0,n.iD)(n.HY,{key:1},[(0,n.Uk)((0,i.toDisplayString)(a.contentData.properties.title),1)],64))]})),_:1},8,["level","class"])):(0,n.kq)("",!0),void 0!==a.contentData.properties.address?((0,n.wg)(),(0,n.iD)("p",r,(0,i.toDisplayString)(a.contentData.properties.address.shortAddress),1)):(0,n.kq)("",!0),(0,n._)("p",{"data-test":"vs-main-map-wrapper-detail__description",class:"vs-main-map-wrapper-detail__description",innerHTML:a.contentData.properties.description},null,8,p)])}},15815:function(t,e,a){"use strict";var n=a(93379),i=a.n(n),s=a(7795),r=a.n(s),p=a(90569),o=a.n(p),l=a(3565),c=a.n(l),d=a(19216),u=a.n(d),m=a(44589),v=a.n(m),g=a(82779),f=a.n(g),_={};_.styleTagTransform=v(),_.setAttributes=c(),_.insert=o().bind(null,"head"),_.domAPI=r(),_.insertStyleElement=u(),i()(f(),_),f()&&f().locals&&f().locals},16520:function(t,e,a){"use strict";a.r(e);var n=a(3365),i=a(77233);a(75204);const s=(0,a(83744).Z)(i.Z,[["render",n.s]]);e.default=s},77233:function(t,e,a){"use strict";a.d(e,{Z:function(){return n.Z}});var n=a(24796)},3365:function(t,e,a){"use strict";a.d(e,{s:function(){return n.s}});var n=a(90280)},75204:function(t,e,a){"use strict";a(15815)}}]);
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6520],{60757:function(){},24796:function(t,e,a){"use strict";var n=a(2015),i=a(73366);e.Z={name:"VsMainMapWrapperDetail",status:"prototype",release:"0.0.1",components:{VsImg:n.default,VsHeading:i.default},props:{contentData:{type:Object,required:!0},headingLevel:{type:String,default:"3"}},computed:{showTitle:function(){return void 0!==this.contentData.properties.title||void 0!==this.contentData.properties.placeTitle}}}},96414:function(t,e,a){"use strict";a.d(e,{s:function(){return o}});var n=a(66252),i=a(3577),s={class:"vs-main-map-wrapper-detail","data-test":"vs-main-map-wrapper-detail"},r={key:2,"data-test":"vs-main-map-wrapper-detail__address",class:"vs-main-map-wrapper-detail__address"},p=["innerHTML"];function o(t,e,a,o,l,c){var d=(0,n.up)("VsImg"),u=(0,n.up)("VsHeading");return(0,n.wg)(),(0,n.iD)("div",s,[void 0!==a.contentData.properties.image?((0,n.wg)(),(0,n.j4)(d,{key:0,src:a.contentData.properties.image,class:"vs-main-map-wrapper-detail__image mb-5 mb-lg-3"},null,8,["src"])):(0,n.kq)("",!0),c.showTitle?((0,n.wg)(),(0,n.j4)(u,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,i.normalizeClass)(["vs-main-map-wrapper-detail__heading mt-0",void 0!==a.contentData.properties.title?"d-lg-none":""]),"data-test":"vs-main-map-wrapper-detail__heading"},{default:(0,n.w5)((function(){return[void 0!==a.contentData.properties.placeTitle?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Uk)((0,i.toDisplayString)(a.contentData.properties.placeTitle),1)],64)):((0,n.wg)(),(0,n.iD)(n.HY,{key:1},[(0,n.Uk)((0,i.toDisplayString)(a.contentData.properties.title),1)],64))]})),_:1},8,["level","class"])):(0,n.kq)("",!0),void 0!==a.contentData.properties.address?((0,n.wg)(),(0,n.iD)("p",r,(0,i.toDisplayString)(a.contentData.properties.address.shortAddress),1)):(0,n.kq)("",!0),(0,n._)("p",{"data-test":"vs-main-map-wrapper-detail__description",class:"vs-main-map-wrapper-detail__description",innerHTML:a.contentData.properties.description},null,8,p)])}},25213:function(t,e,a){"use strict";var n=a(93379),i=a.n(n),s=a(7795),r=a.n(s),p=a(90569),o=a.n(p),l=a(3565),c=a.n(l),d=a(19216),u=a.n(d),m=a(44589),v=a.n(m),g=a(60757),f=a.n(g),_={};_.styleTagTransform=v(),_.setAttributes=c(),_.insert=o().bind(null,"head"),_.domAPI=r(),_.insertStyleElement=u(),i()(f(),_),f()&&f().locals&&f().locals},16520:function(t,e,a){"use strict";a.r(e);var n=a(82764),i=a(77233);a(91708);const s=(0,a(83744).Z)(i.Z,[["render",n.s]]);e.default=s},77233:function(t,e,a){"use strict";a.d(e,{Z:function(){return n.Z}});var n=a(24796)},82764:function(t,e,a){"use strict";a.d(e,{s:function(){return n.s}});var n=a(96414)},91708:function(t,e,a){"use strict";a(25213)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6573],{42603:function(){},14181:function(a,e,n){"use strict";var r=n(17370),s=n(42671);e.Z={name:"VsMainMapWrapperIcon",status:"prototype",release:"0.0.1",components:{VsIcon:r.default},mixins:[s.Z],props:{id:{type:String,required:!0},isHovered:{type:Boolean,default:!1},isMapMarker:{type:Boolean,default:!1}},computed:{mapMarkerType:function(){var a="map-marker-filled";return"twnv"===this.id&&(a="places-map-pin"),a},parentClasses:function(){return this.isMapMarker?"vs-main-map-marker-icon--map-marker":""},markerClasses:function(){return["vs-main-map-marker-icon__marker--".concat(this.id),this.isHovered?"vs-main-map-marker-icon__marker--outline":""]}}}},89515:function(a,e,n){"use strict";n.d(e,{s:function(){return t}});var r=n(66252),s=n(3577);function t(a,e,n,t,c,i){var o=(0,r.up)("VsIcon");return(0,r.wg)(),(0,r.iD)("div",{"data-test":"vs-main-map-marker-icon",class:(0,s.normalizeClass)(["vs-main-map-marker-icon",i.parentClasses])},[(0,r.Wm)(o,{name:i.mapMarkerType,class:(0,s.normalizeClass)(["vs-main-map-marker-icon__marker",i.markerClasses])},null,8,["name","class"]),(0,r.Wm)(o,{class:"vs-main-map-marker-icon__icon",name:a.getIconDetails(n.id).name,size:"xxs",variant:"color-white"},null,8,["name"])],2)}},42671:function(a,e){"use strict";e.Z={methods:{getIconDetails:function(a){var e={};switch(a){case"cities":case"outlander-city-town-village":e.name="city";break;case"towns":e.name="home";break;case"islands":e.name="boat";break;case"regions":e.name="map";break;case"acco":e.name="bed";break;case"acti":e.name="walk";break;case"attr":e.name="camera";break;case"even":e.name="events";break;case"cate":e.name="food";break;case"reta":e.name="shopping-bag";break;case"featured":e.name="star";break;case"twnv":e.name="";break;case"serv":e.name="icentre-information";break;case"outlander-castle":e.name="castle";break;case"outlander-church-abbey":e.name="church";break;case"outlander-heritage":e.name="history";break;case"outlander-landscape-park":e.name="landscape";break;case"outlander-palace-house":e.name="palace"}return e}}}},61312:function(a,e,n){"use strict";var r=n(93379),s=n.n(r),t=n(7795),c=n.n(t),i=n(90569),o=n.n(i),m=n(3565),l=n.n(m),u=n(19216),p=n.n(u),k=n(44589),d=n.n(k),b=n(42603),v=n.n(b),f={};f.styleTagTransform=d(),f.setAttributes=l(),f.insert=o().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=p(),s()(v(),f),v()&&v().locals&&v().locals},26573:function(a,e,n){"use strict";n.r(e);var r=n(89515),s=n(44357);n(71049);const t=(0,n(83744).Z)(s.Z,[["render",r.s]]);e.default=t},44357:function(a,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(14181)},71049:function(a,e,n){"use strict";n(61312)}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4143],{47224:function(){},94360:function(e,t,a){"use strict";var n=a(83918),r=a(73366),s=a(10282),i=a(61570),l=a(81674),o=a(14613),c=a(29848),u=a(16520),p=a(175),d=a(85834),g=null;t.Z={name:"VsMainMapWrapperPanel",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsMainMapWrapperCategory:l.default,VsMainMapWrapperSubcategory:o.default,VsHeading:r.default,VsMainMapWrapperListItem:c.default,VsMainMapWrapperDetail:u.default,VsMainMapWrapperButtons:p.default,VsMainMapWrapperControls:d.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:String,default:""},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:{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:e=this.currentFilter.label;break;case 2:e=this.currentPlaceData[0].properties.title}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-main-map-wrapper-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-main-map-wrapper-panel__header-section--with-spacer":2===this.currentStage?"vs-main-map-wrapper-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}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]},subCatFilterCount:function(){return g?g.activeSubcatFilters.length:null},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(){g=(0,i.Z)((0,s.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(){g.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(){g.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},37558:function(e,t,a){"use strict";a.d(t,{s:function(){return f}});var n=a(66252),r=a(3577),s=a(49963),i={key:0,class:"vs-main-map-wrapper-panel__back"},l={class:"sr-only"},o={class:"vs-main-map-wrapper-panel__close d-lg-none"},c={class:"sr-only"},u={class:"sr-only"},p={key:2,class:"vs-main-map-wrapper-panel__bottom-message"},d={class:"vs-main-map-wrapper-panel__list-container"},g={key:3,class:"vs-main-map-wrapper-panel__overlay"},m={key:0,class:"vs-main-map-wrapper-panel__overlay-box"},y={class:"vs-main-map-wrapper-panel__overlay-text"};function f(e,t,a,f,h,v){var b=(0,n.up)("VsButton"),w=(0,n.up)("VsHeading"),S=(0,n.up)("VsMainMapWrapperSubcategory"),k=(0,n.up)("VsMainMapWrapperControls"),_=(0,n.up)("VsMainMapWrapperCategory"),D=(0,n.up)("VsMainMapWrapperListItem"),C=(0,n.up)("VsMainMapWrapperButtons"),M=(0,n.up)("VsMainMapWrapperDetail");return(0,n.wg)(),(0,n.iD)("section",{"data-test":"vs-main-map-wrapper-panel",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel",v.panelClasses])},[(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__header-section",v.headerClasses])},[a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(b,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:v.stageBack,"data-test":"vs-main-map-wrapper-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",l,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),""!==v.currentHeading?((0,n.wg)(),(0,n.j4)(w,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__heading text-center mt-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-main-map-wrapper-panel__heading"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,r.toDisplayString)(v.currentHeading),1)]})),_:1},8,["level","class"])):(0,n.kq)("",!0),(0,n._)("div",o,[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.closePanel,"data-test":"vs-main-map-wrapper-panel--btn-close"},{default:(0,n.w5)((function(){return[(0,n._)("span",c,[(0,n.WI)(e.$slots,"close-side-panel-text")])]})),_:3},8,["onClick"])]),(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.resetPanel,"data-test":"vs-main-map-wrapper-panel--btn-reset"},{default:(0,n.w5)((function(){return[(0,n._)("span",u,[(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)(S,{data:v.selectedSubcategoryData[0].subCategory,selectedSubCategory:a.selectedSubcategory},null,8,["data","selectedSubCategory"]),(0,n.Wm)(k)],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.filters,(function(e){return(0,n.wg)(),(0,n.iD)("div",{key:e.id},[(0,n.Wm)(_,{"category-name":e.label,type:e.id,"has-sub-cat":v.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])])})),128)),null!==a.panelMessage?((0,n.wg)(),(0,n.iD)("div",p,[(0,n._)("p",null,(0,r.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",d,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.subcategoryLocations,(function(t,r){return(0,n.wg)(),(0,n.iD)("div",{key:t.id},[(0,n.Wm)(D,{"item-data":t,"from-endpoint":!0,focussed:r===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t.id)}},null,8,["item-data","focussed","onShowItemDetail"])])})),128)),v.showLoadMore?((0,n.wg)(),(0,n.j4)(b,{key:0,class:"vs-main-map-wrapper-panel__load-more","data-test":"vs-main-map-wrapper-panel__load-more",onClick:t[0]||(t[0]=function(e){return v.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,s.withKeys)((function(e){return v.loadMorePlaces()}),["enter"]))},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"load-more-text")]})),_:3})):(0,n.kq)("",!0)]),(0,n.Wm)(C,{"content-data":{},"filter-count":v.subCatFilterCount,onClearFilters:v.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.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)(D,{key:0,"item-data":t.properties,onShowItemDetail:function(a){return e.showDetail(t.properties.id)}},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":v.detailHeadingLevel,"content-data":v.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.Wm)(C,{"content-data":v.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.kq)("",!0),null!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",g,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",m,[(0,n._)("p",y,[(0,n.WI)(e.$slots,"panel-loading-message")])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)],2)}},20151:function(e,t,a){"use strict";var n=a(93379),r=a.n(n),s=a(7795),i=a.n(s),l=a(90569),o=a.n(l),c=a(3565),u=a.n(c),p=a(19216),d=a.n(p),g=a(44589),m=a.n(g),y=a(47224),f=a.n(y),h={};h.styleTagTransform=m(),h.setAttributes=u(),h.insert=o().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=d(),r()(f(),h),f()&&f().locals&&f().locals},84143:function(e,t,a){"use strict";a.r(t);var n=a(64949),r=a(97794);a(1);const s=(0,a(83744).Z)(r.Z,[["render",n.s]]);t.default=s},97794:function(e,t,a){"use strict";a.d(t,{Z:function(){return n.Z}});var n=a(94360)},64949:function(e,t,a){"use strict";a.d(t,{s:function(){return n.s}});var n=a(37558)},1:function(e,t,a){"use strict";a(20151)}}]);
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4143],{44858:function(){},94360:function(e,t,a){"use strict";var n=a(83918),r=a(73366),s=a(10282),i=a(61570),l=a(81674),o=a(14613),c=a(29848),u=a(16520),p=a(175),d=a(85834),g=null;t.Z={name:"VsMainMapWrapperPanel",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsMainMapWrapperCategory:l.default,VsMainMapWrapperSubcategory:o.default,VsHeading:r.default,VsMainMapWrapperListItem:c.default,VsMainMapWrapperDetail:u.default,VsMainMapWrapperButtons:p.default,VsMainMapWrapperControls:d.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:String,default:""},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:{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:e=this.currentFilter.label;break;case 2:e=this.currentPlaceData[0].properties.title}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-main-map-wrapper-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-main-map-wrapper-panel__header-section--with-spacer":2===this.currentStage?"vs-main-map-wrapper-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}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]},subCatFilterCount:function(){return g?g.activeSubcatFilters.length:null},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(){g=(0,i.Z)((0,s.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(){g.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(){g.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},20440:function(e,t,a){"use strict";a.d(t,{s:function(){return f}});var n=a(66252),r=a(3577),s=a(49963),i={key:0,class:"vs-main-map-wrapper-panel__back"},l={class:"sr-only"},o={class:"vs-main-map-wrapper-panel__close d-lg-none"},c={class:"sr-only"},u={class:"sr-only"},p={key:2,class:"vs-main-map-wrapper-panel__bottom-message"},d={class:"vs-main-map-wrapper-panel__list-container"},g={key:3,class:"vs-main-map-wrapper-panel__overlay"},m={key:0,class:"vs-main-map-wrapper-panel__overlay-box"},y={class:"vs-main-map-wrapper-panel__overlay-text"};function f(e,t,a,f,h,v){var b=(0,n.up)("VsButton"),w=(0,n.up)("VsHeading"),S=(0,n.up)("VsMainMapWrapperSubcategory"),k=(0,n.up)("VsMainMapWrapperControls"),_=(0,n.up)("VsMainMapWrapperCategory"),C=(0,n.up)("VsMainMapWrapperListItem"),D=(0,n.up)("VsMainMapWrapperButtons"),M=(0,n.up)("VsMainMapWrapperDetail");return(0,n.wg)(),(0,n.iD)("section",{"data-test":"vs-main-map-wrapper-panel",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel",v.panelClasses])},[(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__header-section",v.headerClasses])},[a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(b,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:v.stageBack,"data-test":"vs-main-map-wrapper-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",l,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),""!==v.currentHeading?((0,n.wg)(),(0,n.j4)(w,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__heading text-center mt-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-main-map-wrapper-panel__heading"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,r.toDisplayString)(v.currentHeading),1)]})),_:1},8,["level","class"])):(0,n.kq)("",!0),(0,n._)("div",o,[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.closePanel,"data-test":"vs-main-map-wrapper-panel--btn-close"},{default:(0,n.w5)((function(){return[(0,n._)("span",c,[(0,n.WI)(e.$slots,"close-side-panel-text")])]})),_:3},8,["onClick"])]),(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.resetPanel,"data-test":"vs-main-map-wrapper-panel--btn-reset"},{default:(0,n.w5)((function(){return[(0,n._)("span",u,[(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)(S,{data:v.selectedSubcategoryData[0].subCategory,selectedSubCategory:a.selectedSubcategory},null,8,["data","selectedSubCategory"]),(0,n.Wm)(k)],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.filters,(function(e){return(0,n.wg)(),(0,n.j4)(_,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":v.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,n.wg)(),(0,n.iD)("div",p,[(0,n._)("p",null,(0,r.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",d,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.subcategoryLocations,(function(t,r){return(0,n.wg)(),(0,n.j4)(C,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:r===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t.id)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),v.showLoadMore?((0,n.wg)(),(0,n.j4)(b,{key:0,class:"vs-main-map-wrapper-panel__load-more","data-test":"vs-main-map-wrapper-panel__load-more",onClick:t[0]||(t[0]=function(e){return v.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,s.withKeys)((function(e){return v.loadMorePlaces()}),["enter"]))},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"load-more-text")]})),_:3})):(0,n.kq)("",!0)]),(0,n.Wm)(D,{"content-data":{},"filter-count":v.subCatFilterCount,onClearFilters:v.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.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)(C,{key:0,"item-data":t.properties,onShowItemDetail:function(a){return e.showDetail(t.properties.id)}},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":v.detailHeadingLevel,"content-data":v.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.Wm)(D,{"content-data":v.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.kq)("",!0),null!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",g,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",m,[(0,n._)("p",y,[(0,n.WI)(e.$slots,"panel-loading-message")])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)],2)}},3449:function(e,t,a){"use strict";var n=a(93379),r=a.n(n),s=a(7795),i=a.n(s),l=a(90569),o=a.n(l),c=a(3565),u=a.n(c),p=a(19216),d=a.n(p),g=a(44589),m=a.n(g),y=a(44858),f=a.n(y),h={};h.styleTagTransform=m(),h.setAttributes=u(),h.insert=o().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=d(),r()(f(),h),f()&&f().locals&&f().locals},84143:function(e,t,a){"use strict";a.r(t);var n=a(88690),r=a(97794);a(99746);const s=(0,a(83744).Z)(r.Z,[["render",n.s]]);t.default=s},97794:function(e,t,a){"use strict";a.d(t,{Z:function(){return n.Z}});var n=a(94360)},88690:function(e,t,a){"use strict";a.d(t,{s:function(){return n.s}});var n=a(20440)},99746:function(e,t,a){"use strict";a(3449)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7370],{32463:function(){},86743:function(e,a,r){"use strict";var o=r(96486),l=r(33248);a.Z={name:"VsIcon",status:"prototype",release:"0.1.0",props:{name:{type:String,required:!0,default:"search"},variant:{type:String,default:null,validator:function(e){return e.match(/(primary|secondary|light|dark|color-white|secondary-teal)/)}},customColour:{type:String,default:null},orientation:{type:String,default:null,validator:function(e){return e.match(/(up|down|left|right)/)}},size:{type:String,default:"md",validator:function(e){return e.match(/(xxs|xs|sm|md|lg|xl)/)}},smallSize:{type:String,default:null,validator:function(e){return e.match(/(xxs|xs|sm|md|lg|xl)/)}}},data:function(){return{iconLookup:[{key:"accesstoliet",value:"accessible-toilet"},{key:"accessparkdrop",value:"facility-accessparkdrop"},{key:"acco",value:"product-accommodation"},{key:"acti",value:"product-activities"},{key:"attr",value:"product-attractions"},{key:"audioloop",value:"facility-audioloop"},{key:"cafereston",value:"cafe"},{key:"cate",value:"product-food-and-drink"},{key:"cities",value:"city"},{key:"cycling",value:"cycle"},{key:"dsblaccess",value:"facility-dsblaccess"},{key:"wheelchairaccess",value:"facility-dsblaccess"},{key:"even",value:"product-events"},{key:"familyev",value:"family"},{key:"filmev",value:"film-tv"},{key:"hottub",value:"hot-tub"},{key:"parking",value:"facility-parking"},{key:"petswelcom",value:"facility-petswelcom"},{key:"wifi",value:"facility-wifi"},{key:"public",value:"public-transport"},{key:"pubtranrte",value:"public-transport"},{key:"reta",value:"product-shopping"},{key:"spahealth",value:"wellness"},{key:"vege",value:"vegan-vegetarian"},{key:"walking",value:"walk"},{key:"boat",value:"boat"},{key:"transport",value:"transport"},{key:"brekavail",value:"breakfast-available"},{key:"wetroom",value:"level-entry-shower"}]}},computed:{icon:function(){return this.formattedName},dimension:function(){return(0,o.get)(l,"props.icon_size_".concat(this.size,".value"),"40px")},formattedName:function(){var e=this,a=this.iconLookup.find((function(a){return a.key===e.name}));return void 0!==a?a.value:this.name}}}},82819:function(e,a,r){"use strict";r.d(a,{s:function(){return n}});var o=r(4942),l=r(66252);function n(e,a,r,n,t,i){var c;return(0,l.wg)(),(0,l.iD)("i",(0,l.dG)({class:(c={fak:!0},(0,o.Z)(c,"fa-".concat(i.icon),!0),(0,o.Z)(c,"vs-icon",!0),(0,o.Z)(c,"vs-icon--size-".concat(r.size),!0),(0,o.Z)(c,"vs-icon--sm-size-".concat(r.smallSize),r.smallSize),(0,o.Z)(c,"vs-icon--".concat(i.formattedName),!0),(0,o.Z)(c,"icon--"+r.orientation,r.orientation),(0,o.Z)(c,"vs-icon--variant-".concat(r.variant),r.variant),c),style:[r.customColour?{color:r.customColour}:{}]},e.$attrs,{"data-test":"vs-icon"}),null,16)}},71190:function(e,a,r){"use strict";var o=r(93379),l=r.n(o),n=r(7795),t=r.n(n),i=r(90569),c=r.n(i),_=r(3565),y=r.n(_),g=r(19216),u=r.n(g),s=r(44589),m=r.n(s),p=r(32463),d=r.n(p),h={};h.styleTagTransform=m(),h.setAttributes=y(),h.insert=c().bind(null,"head"),h.domAPI=t(),h.insertStyleElement=u(),l()(d(),h),d()&&d().locals&&d().locals},17370:function(e,a,r){"use strict";r.r(a);var o=r(82819),l=r(34393);r(37111);const n=(0,r(83744).Z)(l.Z,[["render",o.s]]);a.default=n},34393:function(e,a,r){"use strict";r.d(a,{Z:function(){return o.Z}});var o=r(86743)},37111:function(e,a,r){"use strict";r(71190)},33248:function(e){"use strict";e.exports=JSON.parse('{"aliases":{"font_family_default":{"value":"\'Source Sans Pro\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'"},"font_family_heading":{"value":"\'evelethclean-regular\', sans-serif, $font-family-sans-serif"},"font_family_heading_thin":{"value":"\'evelethclean-thin\', \'evelethclean-thin\', sans-serif, $font-family-sans-serif"}},"props":{"color_purple":{"type":"color","category":"Primary","name":"color_purple","value":"rgb(112, 14, 87)","originalValue":"#700E57"},"color_gray":{"type":"color","category":"Primary","name":"color_gray","value":"rgb(132, 132, 132)","originalValue":"#848484"},"color_pink":{"type":"color","category":"Primary","name":"color_pink","value":"rgb(175, 0, 110)","originalValue":"#AF006E"},"color_yellow":{"type":"color","category":"Primary","name":"color_yellow","value":"rgb(252, 202, 27)","originalValue":"#FCCA1B"},"color_secondary_gray":{"type":"color","category":"Secondary","name":"color_secondary_gray","value":"rgb(106, 99, 102)","originalValue":"#6A6366"},"color_secondary_teal":{"type":"color","category":"Secondary","name":"color_secondary_teal","value":"rgb(16, 157, 163)","originalValue":"#109DA3"},"color_base_text":{"type":"color","category":"Neutral","name":"color_base_text","value":"rgb(25, 25, 25)","originalValue":"#191919"},"color_error":{"type":"color","category":"Neutral","name":"color_error","value":"rgb(149, 165, 171)","originalValue":"#95A5AB"},"color_black":{"type":"color","category":"Neutral","name":"color_black","value":"rgb(0, 0, 0)","originalValue":"#000000"},"color_white":{"type":"color","category":"Neutral","name":"color_white","value":"rgb(255, 255, 255)","originalValue":"#FFFFFF"},"color_theme_primary":{"type":"color","category":"Theme colours","name":"color_theme_primary","value":"rgb(175, 0, 110)","originalValue":"#AF006E"},"color_theme_secondary":{"type":"color","category":"Theme colours","name":"color_theme_secondary","value":"rgb(106, 99, 102)","originalValue":"#6A6366"},"color_theme_secondary_teal":{"type":"color","category":"Theme colours","name":"color_theme_secondary_teal","value":"rgb(40, 199, 196)","originalValue":"#28C7C4"},"color_theme_secondary_indigo":{"type":"color","category":"Theme colours","name":"color_theme_secondary_indigo","value":"rgb(67, 47, 178)","originalValue":"#432FB2"},"color_theme_secondary_orange":{"type":"color","category":"Theme colours","name":"color_theme_secondary_orange","value":"rgb(253, 115, 57)","originalValue":"#FD7339"},"color_theme_success":{"type":"color","category":"Theme colours","name":"color_theme_success","value":"rgb(30, 97, 1)","originalValue":"#1E6101"},"color_theme_info":{"type":"color","category":"Theme colours","name":"color_theme_info","value":"rgb(46, 95, 149)","originalValue":"#2E5F95"},"color_theme_warning":{"type":"color","category":"Theme colours","name":"color_theme_warning","value":"rgb(252, 202, 27)","originalValue":"#FCCA1B"},"color_theme_danger":{"type":"color","category":"Theme colours","name":"color_theme_danger","value":"rgb(174, 41, 64)","originalValue":"#AE2940"},"color_theme_light":{"type":"color","category":"Theme colours","name":"color_theme_light","value":"rgb(239, 239, 239)","originalValue":"#EFEFEF"},"color_theme_secondary_light":{"type":"color","category":"Theme colours","name":"color_theme_secondary_light","value":"rgb(102, 102, 102)","originalValue":"#666666"},"color_theme_dark":{"type":"color","category":"Theme colours","name":"color_theme_dark","value":"rgb(25, 25, 25)","originalValue":"#191919"},"color_theme_primary_purple":{"type":"color","category":"Theme colours","name":"color_theme_primary_purple","value":"rgb(112, 14, 87)","originalValue":"#700E57"},"color_facebook":{"type":"color","category":"Social Media Colours","name":"color_facebook","value":"rgb(24, 119, 242)","originalValue":"#1877f2"},"color_twitter":{"type":"color","category":"Social Media Colours","name":"color_twitter","value":"rgb(8, 160, 233)","originalValue":"#08A0E9"},"color_youtube":{"type":"color","category":"Social Media Colours","name":"color_youtube","value":"rgb(230, 33, 23)","originalValue":"#E62117"},"color_instagram":{"type":"color","category":"Social Media Colours","name":"color_instagram","value":"rgb(240, 0, 117)","originalValue":"#F00075"},"color_map_blue":{"type":"color","category":"Map Colours","name":"color_map_blue","value":"rgb(16, 102, 214)","originalValue":"#1066D6"},"color_map_red":{"type":"color","category":"Map Colours","name":"color_map_red","value":"rgb(195, 22, 19)","originalValue":"#C31613"},"color_map_purple":{"type":"color","category":"Map Colours","name":"color_map_purple","value":"rgb(122, 7, 77)","originalValue":"#7A074D"},"color_purple_tint_1":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_1","value":"rgb(133, 50, 112)","originalValue":"#853270"},"color_purple_tint_2":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_2","value":"rgb(155, 86, 137)","originalValue":"#9B5689"},"color_purple_tint_3":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_3","value":"rgb(176, 122, 163)","originalValue":"#B07AA3"},"color_purple_tint_4":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_4","value":"rgb(198, 159, 188)","originalValue":"#C69FBC"},"color_purple_tint_5":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_5","value":"rgb(219, 195, 213)","originalValue":"#DBC3D5"},"color_purple_tint_6":{"type":"color","category":"Primary Purple Tints","name":"color_purple_tint_6","value":"rgb(241, 231, 238)","originalValue":"#F1E7EE"},"color_purple_shade_1":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_1","value":"rgb(95, 12, 74)","originalValue":"#5F0C4A"},"color_purple_shade_2":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_2","value":"rgb(78, 10, 61)","originalValue":"#4E0A3D"},"color_purple_shade_3":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_3","value":"rgb(62, 8, 48)","originalValue":"#3E0830"},"color_purple_shade_4":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_4","value":"rgb(45, 6, 35)","originalValue":"#2D0623"},"color_purple_shade_5":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_5","value":"rgb(28, 4, 22)","originalValue":"#1C0416"},"color_purple_shade_6":{"type":"color","category":"Primary Purple Shades","name":"color_purple_shade_6","value":"rgb(11, 1, 9)","originalValue":"#0B0109"},"color_gray_tint_1":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_1","value":"rgb(147, 147, 147)","originalValue":"#939393"},"color_gray_tint_2":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_2","value":"rgb(163, 163, 163)","originalValue":"#A3A3A3"},"color_gray_tint_3":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_3","value":"rgb(178, 178, 178)","originalValue":"#B2B2B2"},"color_gray_tint_4":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_4","value":"rgb(193, 193, 193)","originalValue":"#C1C1C1"},"color_gray_tint_5":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_5","value":"rgb(208, 208, 208)","originalValue":"#D0D0D0"},"color_gray_tint_6":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_6","value":"rgb(224, 224, 224)","originalValue":"#E0E0E0"},"color_gray_tint_7":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_7","value":"rgb(239, 239, 239)","originalValue":"#EFEFEF"},"color_gray_tint_8":{"type":"color","category":"Primary Gray Tints","name":"color_gray_tint_8","value":"rgb(254, 254, 254)","originalValue":"#FEFEFE"},"color_gray_shade_1":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_1","value":"rgb(117, 117, 117)","originalValue":"#757575"},"color_gray_shade_2":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_2","value":"rgb(102, 102, 102)","originalValue":"#666666"},"color_gray_shade_3":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_3","value":"rgb(86, 86, 86)","originalValue":"#565656"},"color_gray_shade_4":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_4","value":"rgb(71, 71, 71)","originalValue":"#474747"},"color_gray_shade_5":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_5","value":"rgb(56, 56, 56)","originalValue":"#383838"},"color_gray_shade_6":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_6","value":"rgb(41, 41, 41)","originalValue":"#292929"},"color_gray_shade_7":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_7","value":"rgb(25, 25, 25)","originalValue":"#191919"},"color_gray_shade_8":{"type":"color","category":"Primary Gray Shades","name":"color_gray_shade_8","value":"rgb(10, 10, 10)","originalValue":"#0A0A0A"},"color_pink_tint_1":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_1","value":"rgb(187, 38, 132)","originalValue":"#BB2684"},"color_pink_tint_2":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_2","value":"rgb(199, 77, 154)","originalValue":"#C74D9A"},"color_pink_tint_3":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_3","value":"rgb(211, 115, 175)","originalValue":"#D373AF"},"color_pink_tint_4":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_4","value":"rgb(223, 153, 197)","originalValue":"#DF99C5"},"color_pink_tint_5":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_5","value":"rgb(235, 191, 219)","originalValue":"#EBBFDB"},"color_pink_tint_6":{"type":"color","category":"Primary Pink Tints","name":"color_pink_tint_6","value":"rgb(247, 230, 241)","originalValue":"#F7E6F1"},"color_pink_shade_1":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_1","value":"rgb(149, 0, 94)","originalValue":"#95005E"},"color_pink_shade_2":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_2","value":"rgb(122, 0, 77)","originalValue":"#7A004D"},"color_pink_shade_3":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_3","value":"rgb(96, 0, 61)","originalValue":"#60003D"},"color_pink_shade_4":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_4","value":"rgb(70, 0, 44)","originalValue":"#46002C"},"color_pink_shade_5":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_5","value":"rgb(44, 0, 28)","originalValue":"#2C001C"},"color_pink_shade_6":{"type":"color","category":"Primary Pink Shades","name":"color_pink_shade_6","value":"rgb(17, 0, 11)","originalValue":"#11000B"},"color_yellow_tint_1":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_1","value":"rgb(252, 210, 61)","originalValue":"#FCD23D"},"color_yellow_tint_2":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_2","value":"rgb(253, 218, 95)","originalValue":"#FDDA5F"},"color_yellow_tint_3":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_3","value":"rgb(253, 226, 130)","originalValue":"#FDE282"},"color_yellow_tint_4":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_4","value":"rgb(254, 234, 164)","originalValue":"#FEEAA4"},"color_yellow_tint_5":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_5","value":"rgb(254, 242, 198)","originalValue":"#FEF2C6"},"color_yellow_tint_6":{"type":"color","category":"Primary Yellow Tints","name":"color_yellow_tint_6","value":"rgb(255, 250, 232)","originalValue":"#FFFAE8"},"color_secondary_gray_tint_1":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_1","value":"rgb(128, 122, 125)","originalValue":"#807A7D"},"color_secondary_gray_tint_2":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_2","value":"rgb(151, 146, 148)","originalValue":"#979294"},"color_secondary_gray_tint_3":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_3","value":"rgb(173, 169, 171)","originalValue":"#ADA9AB"},"color_secondary_gray_tint_4":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_4","value":"rgb(195, 193, 194)","originalValue":"#C3C1C2"},"color_secondary_gray_tint_5":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_5","value":"rgb(218, 216, 217)","originalValue":"#DAD8D9"},"color_secondary_gray_tint_6":{"type":"color","category":"Secondary Gray Tints","name":"color_secondary_gray_tint_6","value":"rgb(240, 239, 240)","originalValue":"#F0EFF0"},"color_secondary_gray_shade_1":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_1","value":"rgb(90, 84, 87)","originalValue":"#5A5457"},"color_secondary_gray_shade_2":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_2","value":"rgb(74, 69, 71)","originalValue":"#4A4547"},"color_secondary_gray_shade_3":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_3","value":"rgb(58, 54, 56)","originalValue":"#3A3638"},"color_secondary_gray_shade_4":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_4","value":"rgb(42, 40, 41)","originalValue":"#2A2829"},"color_secondary_gray_shade_5":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_5","value":"rgb(27, 25, 26)","originalValue":"#1B191A"},"color_secondary_gray_shade_6":{"type":"color","category":"Secondary Gray Shades","name":"color_secondary_gray_shade_6","value":"rgb(11, 10, 10)","originalValue":"#0B0A0A"},"color_secondary_teal_tint_1":{"type":"color","category":"Secondary Teal TintsSecondary Orange Tints","name":"color_secondary_teal_tint_1","value":"rgb(0, 0, 0)","originalValue":"#3ECDCA#FD8F60"},"color_secondary_teal_tint_2":{"type":"color","category":"Secondary Teal Tints","name":"color_secondary_teal_tint_2","value":"rgb(83, 210, 208)","originalValue":"#53D2D0"},"color_secondary_teal_tint_3":{"type":"color","category":"Secondary Teal Tints","name":"color_secondary_teal_tint_3","value":"rgb(126, 221, 220)","originalValue":"#7EDDDC"},"color_secondary_teal_tint_4":{"type":"color","category":"Secondary Teal Tints","name":"color_secondary_teal_tint_4","value":"rgb(169, 233, 231)","originalValue":"#A9E9E7"},"color_secondary_teal_tint_5":{"type":"color","category":"Secondary Teal Tints","name":"color_secondary_teal_tint_5","value":"rgb(212, 244, 243)","originalValue":"#D4F4F3"},"color_secondary_teal_tint_6":{"type":"color","category":"Secondary Teal Tints","name":"color_secondary_teal_tint_6","value":"rgb(234, 249, 249)","originalValue":"#EAF9F9"},"color_secondary_teal_shade_1":{"type":"color","category":"Secondary Teal Shades","name":"color_secondary_teal_shade_1","value":"rgb(36, 179, 176)","originalValue":"#24B3B0"},"color_secondary_teal_shade_2":{"type":"color","category":"Secondary Teal Shades","name":"color_secondary_teal_shade_2","value":"rgb(32, 159, 157)","originalValue":"#209F9D"},"color_secondary_teal_shade_3":{"type":"color","category":"Secondary Teal Shades","name":"color_secondary_teal_shade_3","value":"rgb(24, 119, 118)","originalValue":"#187776"},"color_secondary_teal_shade_4":{"type":"color","category":"Secondary Teal Shades","name":"color_secondary_teal_shade_4","value":"rgb(16, 80, 78)","originalValue":"#10504E"},"color_secondary_indigo_tint_1":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_1","value":"rgb(86, 68, 186)","originalValue":"#5644BA"},"color_secondary_indigo_tint_2":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_2","value":"rgb(105, 89, 193)","originalValue":"#6959C1"},"color_secondary_indigo_tint_3":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_3","value":"rgb(142, 130, 209)","originalValue":"#8E82D1"},"color_secondary_indigo_tint_4":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_4","value":"rgb(180, 172, 224)","originalValue":"#B4ACE0"},"color_secondary_indigo_tint_5":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_5","value":"rgb(217, 213, 240)","originalValue":"#D9D5F0"},"color_secondary_indigo_tint_6":{"type":"color","category":"Secondary Indigo Tints","name":"color_secondary_indigo_tint_6","value":"rgb(236, 234, 247)","originalValue":"#ECEAF7"},"color_secondary_indigo_shade_1":{"type":"color","category":"Secondary Indigo Shades","name":"color_secondary_indigo_shade_1","value":"rgb(60, 42, 160)","originalValue":"#3C2AA0"},"color_secondary_indigo_shade_2":{"type":"color","category":"Secondary Indigo Shades","name":"color_secondary_indigo_shade_2","value":"rgb(54, 38, 142)","originalValue":"#36268E"},"color_secondary_indigo_shade_3":{"type":"color","category":"Secondary Indigo Shades","name":"color_secondary_indigo_shade_3","value":"rgb(40, 28, 107)","originalValue":"#281C6B"},"color_secondary_indigo_shade_4":{"type":"color","category":"Secondary Indigo Shades","name":"color_secondary_indigo_shade_4","value":"rgb(51, 23, 12)","originalValue":"#33170C"},"color_secondary_orange_tint_2":{"type":"color","category":"Secondary Orange Tints","name":"color_secondary_orange_tint_2","value":"rgb(254, 171, 136)","originalValue":"#FEAB88"},"color_secondary_orange_tint_3":{"type":"color","category":"Secondary Orange Tints","name":"color_secondary_orange_tint_3","value":"rgb(254, 199, 175)","originalValue":"#FEC7AF"},"color_secondary_orange_tint_4":{"type":"color","category":"Secondary Orange Tints","name":"color_secondary_orange_tint_4","value":"rgb(253, 214, 195)","originalValue":"#FDD6C3"},"color_secondary_orange_tint_5":{"type":"color","category":"Secondary Orange Tints","name":"color_secondary_orange_tint_5","value":"rgb(255, 227, 215)","originalValue":"#FFE3D7"},"color_secondary_orange_tint_6":{"type":"color","category":"Secondary Orange Tints","name":"color_secondary_orange_tint_6","value":"rgb(255, 240, 235)","originalValue":"#FFF0EB"},"color_secondary_orange_shade_1":{"type":"color","category":"Secondary Orange Shades","name":"color_secondary_orange_shade_1","value":"rgb(202, 92, 46)","originalValue":"#CA5C2E"},"color_secondary_orange_shade_2":{"type":"color","category":"Secondary Orange Shades","name":"color_secondary_orange_shade_2","value":"rgb(152, 69, 34)","originalValue":"#984522"},"color_secondary_orange_shade_3":{"type":"color","category":"Secondary Orange Shades","name":"color_secondary_orange_shade_3","value":"rgb(101, 46, 24)","originalValue":"#652E18"},"color_secondary_orange_shade_4":{"type":"color","category":"Secondary Orange Shades","name":"color_secondary_orange_shade_4","value":"rgb(51, 23, 12)","originalValue":"#33170C"},"font-size-1":{"type":"number","category":"font-size","name":"font-size-1","value":"0.625rem","originalValue":"0.625rem"},"font-size-2":{"type":"number","category":"font-size","name":"font-size-2","value":"0.75rem","originalValue":"0.75rem"},"font-size-3":{"type":"number","category":"font-size","name":"font-size-3","value":"0.875rem","originalValue":"0.875rem"},"font-size-4":{"type":"number","category":"font-size","name":"font-size-4","value":"1rem","originalValue":"1rem"},"font-size-5":{"type":"number","category":"font-size","name":"font-size-5","value":"1.125rem","originalValue":"1.125rem"},"font-size-6":{"type":"number","category":"font-size","name":"font-size-6","value":"1.25rem","originalValue":"1.25rem"},"font-size-7":{"type":"number","category":"font-size","name":"font-size-7","value":"1.375rem","originalValue":"1.375rem"},"font-size-8":{"type":"number","category":"font-size","name":"font-size-8","value":"1.5rem","originalValue":"1.5rem"},"font-size-9":{"type":"number","category":"font-size","name":"font-size-9","value":"1.875rem","originalValue":"1.875rem"},"font-size-10":{"type":"number","category":"font-size","name":"font-size-10","value":"2.5rem","originalValue":"2.5rem"},"font-size-body":{"type":"number","category":"font-size","name":"font-size-body","value":"1rem","originalValue":"1rem"},"font-size-body-md":{"type":"number","category":"font-size","name":"font-size-body-md","value":"1.125rem","originalValue":"1.125rem"},"font-size-lead":{"type":"number","category":"font-size","name":"font-size-lead","value":"1.125rem","originalValue":"1.125rem"},"font-size-lead-md":{"type":"number","category":"font-size","name":"font-size-lead-md","value":"1.25rem","originalValue":"1.25rem"},"font-size-teaser":{"type":"number","category":"font-size","name":"font-size-teaser","value":"1rem","originalValue":"1rem"},"font_weight_bold":{"type":"number","category":"font-weight","value":"700","originalValue":"700","name":"font_weight_bold"},"font_weight_semi_bold":{"type":"number","category":"font-weight","value":"600","originalValue":"600","name":"font_weight_semi_bold"},"font_weight_normal":{"type":"number","category":"font-weight","value":"400","originalValue":"400","name":"font_weight_normal"},"font_weight_light":{"type":"number","category":"font-weight","value":"300","originalValue":"300","name":"font_weight_light"},"font_family_sans_serif":{"type":"...","category":"font","value":"\'Source Sans Pro\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'","originalValue":"{!font_family_default}","name":"font_family_sans_serif"},"headings_font_family":{"type":"...","category":"font","value":"\'evelethclean-regular\', sans-serif, $font-family-sans-serif","originalValue":"{!font_family_heading}","name":"headings_font_family"},"headings_font_family_thin":{"type":"...","category":"font","value":"\'evelethclean-thin\', \'evelethclean-thin\', sans-serif, $font-family-sans-serif","originalValue":"{!font_family_heading_thin}","name":"headings_font_family_thin"},"icon_size_xxs":{"type":"number","category":"icons","value":"12px","originalValue":"12px","name":"icon_size_xxs"},"icon_size_xs":{"type":"number","category":"icons","value":"16px","originalValue":"16px","name":"icon_size_xs"},"icon_size_sm":{"type":"number","category":"icons","value":"20px","originalValue":"20px","name":"icon_size_sm"},"icon_size_md":{"type":"number","category":"icons","value":"24px","originalValue":"24px","name":"icon_size_md"},"icon_size_lg":{"type":"number","category":"icons","value":"30px","originalValue":"30px","name":"icon_size_lg"},"icon_size_xl":{"type":"number","category":"icons","value":"40px","originalValue":"40px","name":"icon_size_xl"},"opacity_100":{"type":"number","category":"opacity","value":"1","originalValue":"1","name":"opacity_100"},"opacity_50":{"type":"number","category":"opacity","value":"0.5","originalValue":"0.5","name":"opacity_50"},"opacity_0":{"type":"number","category":"opacity","value":"0","originalValue":"0","name":"opacity_0"},"duration_quickly":{"type":"number","category":"time","value":".08s","originalValue":".08s","name":"duration_quickly"},"duration_base":{"type":"number","category":"time","value":".2s","originalValue":".2s","name":"duration_base"},"duration_slowly":{"type":"number","category":"time","value":".5s","originalValue":".5s","name":"duration_slowly"},"breakpoint_xl":{"type":"number","category":"breakpoints","value":"1200px","originalValue":"1200px","name":"breakpoint_xl"},"breakpoint_md":{"type":"number","category":"breakpoints","value":"768px","originalValue":"768px","name":"breakpoint_md"},"max_container_width_xl":{"type":"number","category":"breakpoints","value":"1140px","originalValue":"1140px","name":"max_container_width_xl"},"breakpoint_sm":{"type":"number","category":"breakpoints","value":"576px","originalValue":"576px","name":"breakpoint_sm"},"breakpoint_lg":{"type":"number","category":"breakpoints","value":"992px","originalValue":"992px","name":"breakpoint_lg"},"breakpoint_xs":{"type":"number","category":"breakpoints","value":"0","originalValue":"0","name":"breakpoint_xs"},"max_container_width_md":{"type":"number","category":"breakpoints","value":"720px","originalValue":"720px","name":"max_container_width_md"},"max_container_width_sm":{"type":"number","category":"breakpoints","value":"540px","originalValue":"540px","name":"max_container_width_sm"},"max_container_width_lg":{"type":"number","category":"breakpoints","value":"960px","originalValue":"960px","name":"max_container_width_lg"},"max_container_width_xxl":{"type":"number","category":"breakpoints","value":"1340px","originalValue":"1340px","name":"max_container_width_xxl"},"breakpoint_xxl":{"type":"number","category":"breakpoints","value":"1400px","originalValue":"1400px","name":"breakpoint_xxl"},"shadow_s":{"type":"...","category":"box-shadow","value":"0 0 0 1px rgba(92,106,196,.1)","originalValue":"0 0 0 1px rgba(92,106,196,.1)","name":"shadow_s"},"shadow_card":{"type":"...","category":"box-shadow","value":"10px 10px 20px $color-gray-tint-4","originalValue":"10px 10px 20px $color-gray-tint-4","name":"shadow_card"},"shadow_card_dark":{"type":"...","category":"box-shadow","value":"0 8px 8px rgba(0, 0, 0, 0.3)","originalValue":"0 8px 8px rgba(0, 0, 0, 0.3)","name":"shadow_card_dark"},"shadow_popover":{"type":"...","category":"box-shadow","value":"0 0px 20px rgba(0, 0, 0, 0.3)","originalValue":"0 0px 20px rgba(0, 0, 0, 0.3)","name":"shadow_popover"},"shadow_popover_dark":{"type":"...","category":"box-shadow","value":"0 0px 20px $color-theme-dark","originalValue":"0 0px 20px $color-theme-dark","name":"shadow_popover_dark"},"shadow_button_focus":{"type":"...","category":"box-shadow","value":"0 0 0 4px $color-pink","originalValue":"0 0 0 4px $color-pink","name":"shadow_button_focus"},"shadow_button_focus_on_dark":{"type":"...","category":"box-shadow","value":"0 0 0 4px $color-yellow","originalValue":"0 0 0 4px $color-yellow","name":"shadow_button_focus_on_dark"},"shadow_form_input":{"type":"...","category":"box-shadow","value":"0 0 0 0.2rem rgba(187, 38, 132, 0.5)","originalValue":"0 0 0 0.2rem rgba(187, 38, 132, 0.5)","name":"shadow_form_input"},"font-size-h1":{"type":"number","category":"heading-size","name":"font-size-h1","value":"1.5rem","originalValue":"1.5rem"},"font-size-h1-md":{"type":"number","category":"heading-size","name":"font-size-h1-md","value":"1.875rem","originalValue":"1.875rem"},"font-size-h2":{"type":"number","category":"heading-size","name":"font-size-h2","value":"1.25rem","originalValue":"1.25rem"},"font-size-h2-md":{"type":"number","category":"heading-size","name":"font-size-h2-md","value":"1.5rem","originalValue":"1.5rem"},"font-size-h3":{"type":"number","category":"heading-size","name":"font-size-h3","value":"1.125rem","originalValue":"1.125rem"},"font-size-h3-md":{"type":"number","category":"heading-size","name":"font-size-h3-md","value":"1.25rem","originalValue":"1.25rem"},"font-size-h4":{"type":"number","category":"heading-size","name":"font-size-h4","value":"1rem","originalValue":"1rem"},"font-size-h5":{"type":"number","category":"heading-size","name":"font-size-h5","value":"1.25rem","originalValue":"1.25rem"},"font-size-h5-md":{"type":"number","category":"heading-size","name":"font-size-h5-md","value":"1.375rem","originalValue":"1.375rem"},"font-size-h6":{"type":"number","category":"heading-size","name":"font-size-h6","value":"1.125rem","originalValue":"1.125rem"},"font-size-h6-md":{"type":"number","category":"heading-size","name":"font-size-h6-md","value":"1.25rem","originalValue":"1.25rem"},"font-size-h3-sub":{"type":"number","category":"heading-size","name":"font-size-h3-sub","value":"1rem","originalValue":"1rem"},"font-size-h2-sub":{"type":"number","category":"heading-size","name":"font-size-h2-sub","value":"1.25rem","originalValue":"1.25rem"},"letter_spacing_xxl":{"type":"number","category":"letter-spacing","value":"2px","originalValue":"2px","name":"letter_spacing_xxl"},"letter_spacing_xl":{"type":"number","category":"letter-spacing","value":"1.4px","originalValue":"1.4px","name":"letter_spacing_xl"},"letter_spacing_l":{"type":"number","category":"letter-spacing","value":"1px","originalValue":"1px","name":"letter_spacing_l"},"letter_spacing_m":{"type":"number","category":"letter-spacing","value":"0.8px","originalValue":"0.8px","name":"letter_spacing_m"},"letter_spacing_s":{"type":"number","category":"letter-spacing","value":"-0.5px","originalValue":"-0.5px","name":"letter_spacing_s"},"letter_spacing_xs":{"type":"number","category":"letter-spacing","value":"-1px","originalValue":"-1px","name":"letter_spacing_xs"},"border_radius_default":{"type":"number","category":"border-radius","value":"0.25rem","originalValue":"0.25rem","name":"border_radius_default"},"border_radius_xl":{"type":"number","category":"border-radius","value":"0.5rem","originalValue":"0.5rem","name":"border_radius_xl"},"border_radius_lg":{"type":"number","category":"border-radius","value":"0.3rem","originalValue":"0.3rem","name":"border_radius_lg"},"border_radius_sm":{"type":"number","category":"border-radius","value":"0.2rem","originalValue":"0.2rem","name":"border_radius_sm"},"border_radius_pill":{"type":"number","category":"border-radius","value":"50rem","originalValue":"50rem","name":"border_radius_pill"},"spacer-0":{"type":"number","category":"space","name":"spacer-0","value":"0","originalValue":"0"},"spacer-1":{"type":"number","category":"space","name":"spacer-1","value":"0.25rem","originalValue":"0.25rem"},"spacer-2":{"type":"number","category":"space","name":"spacer-2","value":"0.5rem","originalValue":"0.5rem"},"spacer-3":{"type":"number","category":"space","name":"spacer-3","value":"0.75rem","originalValue":"0.75rem"},"spacer-4":{"type":"number","category":"space","name":"spacer-4","value":"1rem","originalValue":"1rem"},"spacer-5":{"type":"number","category":"space","name":"spacer-5","value":"1.25rem","originalValue":"1.25rem"},"spacer-6":{"type":"number","category":"space","name":"spacer-6","value":"1.5rem","originalValue":"1.5rem"},"spacer-7":{"type":"number","category":"space","name":"spacer-7","value":"1.75rem","originalValue":"1.75rem"},"spacer-8":{"type":"number","category":"space","name":"spacer-8","value":"2rem","originalValue":"2rem"},"spacer-9":{"type":"number","category":"space","name":"spacer-9","value":"3rem","originalValue":"3rem"},"spacer-10":{"type":"number","category":"space","name":"spacer-10","value":"4rem","originalValue":"4rem"},"spacer-11":{"type":"number","category":"space","name":"spacer-11","value":"5rem","originalValue":"5rem"},"spacer-12":{"type":"number","category":"space","name":"spacer-12","value":"6rem","originalValue":"6rem"},"line_height_lead":{"type":"number","category":"line-height","value":"1.55","originalValue":"1.55","name":"line_height_lead"},"line_height_l":{"type":"number","category":"line-height","value":"1.8","originalValue":"1.8","name":"line_height_l"},"line_height_m":{"type":"number","category":"line-height","value":"1.6","originalValue":"1.6","name":"line_height_m"},"line_height_s":{"type":"number","category":"line-height","value":"1.3","originalValue":"1.3","name":"line_height_s"},"line_height_standard":{"type":"number","category":"line-height","value":"1.2","originalValue":"1.2","name":"line_height_standard"},"line_height_xs":{"type":"number","category":"line-height","value":"1","originalValue":"1","name":"line_height_xs"},"grid_columns":{"type":"number","category":"grid-layout","value":"12","originalValue":"12","name":"grid_columns"},"grid_gutter_width":{"type":"number","category":"grid-layout","value":"24px","originalValue":"24px","name":"grid_gutter_width"},"no_javascript":{"type":"string","category":"utility","value":"no-js","originalValue":"no-js","name":"no_javascript"},"theme_dark":{"type":"color","category":"themes","value":"rgb(42, 40, 41)","originalValue":"#2A2829","name":"theme_dark"},"theme_grey":{"type":"color","category":"themes","value":"rgb(239, 239, 239)","originalValue":"#EFEFEF","name":"theme_grey"}}}')}}]);