@visitscotland/component-library 3.0.2 → 3.0.4

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 (73) hide show
  1. package/CHANGELOG.md +30 -7
  2. package/dist/client/fonts/custom-icons.ttf +0 -0
  3. package/dist/client/fonts/custom-icons.woff2 +0 -0
  4. package/dist/client/fonts/fa-brands-400.ttf +0 -0
  5. package/dist/client/fonts/fa-brands-400.woff2 +0 -0
  6. package/dist/client/fonts/fa-duotone-900.ttf +0 -0
  7. package/dist/client/fonts/fa-duotone-900.woff2 +0 -0
  8. package/dist/client/manifest.json +51 -54
  9. package/dist/client/scripts/54bee03d4647544c11f5.js +1 -0
  10. package/dist/client/scripts/{ce3e6734cb84e74451cd.js → 6207179e793d6e2f8d9e.js} +1 -1
  11. package/dist/client/scripts/6b53edbec946bee62d26.js +1 -0
  12. package/dist/client/scripts/{31f9d972fa4753eaee60.js → 8e0a1eb35d5006bcaf29.js} +1 -1
  13. package/dist/client/scripts/8e3fa387146c24502ada.js +1 -0
  14. package/dist/client/scripts/{83e6099b792b76d2ee7f.js → 9101e0f2b766ea15df2e.js} +1 -1
  15. package/dist/client/scripts/{b6a50a2b854d09970111.js → bef607c592b6cb0a9124.js} +1 -1
  16. package/dist/client/scripts/{1ce57deef9f60d08e168.js → dbefa7802bf2a65b8a37.js} +1 -1
  17. package/dist/client/scripts/{8751d1ac21308fc7e78b.js → ee1669cbdcce1bd4b354.js} +1 -1
  18. package/dist/client/scripts/{43310958bc4363082dd8.js → f35abe8b7b5ef124937e.js} +1 -1
  19. package/dist/client/scripts/{8fc24289899913dd4b9c.js → fea0e33760eef6a2afcc.js} +1 -1
  20. package/dist/client/styles/4b4417e0ec7c6d38af51.css +18 -0
  21. package/dist/client/styles/{c01ba1121e07f8275c28.css → 54bee03d4647544c11f5.css} +1 -1
  22. package/dist/client/styles/{ce3e6734cb84e74451cd.css → 6207179e793d6e2f8d9e.css} +1 -1
  23. package/dist/client/styles/{f304d9429842a3472c24.css → 8e3fa387146c24502ada.css} +1 -1
  24. package/dist/client/styles/{7f0830b7d5e434d7a977.css → a4bf5693a18f72023719.css} +1 -1
  25. package/dist/client/styles/{1ce57deef9f60d08e168.css → dbefa7802bf2a65b8a37.css} +1 -1
  26. package/dist/client/styles/{70ed495c15ada9f41f04.css → ec0a9a2c688a656c0695.css} +1 -1
  27. package/dist/client/styles/third-party/_cludo-search-results.css +1 -1
  28. package/dist/client/styles/third-party/_font-awesome.css +12 -12
  29. package/dist/components/components/form/Form.vue.d.ts +1 -0
  30. package/dist/components/icons.css +4 -8
  31. package/dist/components/vs-component-library.css +1 -1
  32. package/dist/components/vs-component-library.js +205 -170
  33. package/dist/components/vs-component-library.mjs +15301 -8009
  34. package/dist/ssr/fonts/custom-icons.ttf +0 -0
  35. package/dist/ssr/fonts/custom-icons.woff2 +0 -0
  36. package/dist/ssr/fonts/fa-brands-400.ttf +0 -0
  37. package/dist/ssr/fonts/fa-brands-400.woff2 +0 -0
  38. package/dist/ssr/fonts/fa-duotone-900.ttf +0 -0
  39. package/dist/ssr/fonts/fa-duotone-900.woff2 +0 -0
  40. package/dist/ssr/index.js +1 -1
  41. package/dist/ssr/manifest.json +1 -1
  42. package/dist/ssr/styles/8df2da33c2482bedd1e8.css +164 -0
  43. package/package.json +1 -2
  44. package/dist/client/scripts/5d2e8fcc89de9881e3f0.js +0 -1
  45. package/dist/client/scripts/86ef112affb6b291623a.js +0 -1
  46. package/dist/client/scripts/c01ba1121e07f8275c28.js +0 -1
  47. package/dist/client/scripts/f304d9429842a3472c24.js +0 -1
  48. package/dist/client/styles/a78ff92ceead2d31f3a9.css +0 -18
  49. package/dist/components/components/map/Map.vue.d.ts +0 -370
  50. package/dist/components/components/map/components/MapMarker.vue.d.ts +0 -87
  51. package/dist/components/components/map-marker-icon/MapMarkerIcon.vue.d.ts +0 -50
  52. package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +0 -366
  53. package/dist/components/components/map-with-sidebar/components/MapWithSidebarButtons.vue.d.ts +0 -39
  54. package/dist/components/components/map-with-sidebar/components/MapWithSidebarCategory.vue.d.ts +0 -57
  55. package/dist/components/components/map-with-sidebar/components/MapWithSidebarControls.vue.d.ts +0 -16
  56. package/dist/components/components/map-with-sidebar/components/MapWithSidebarDetail.vue.d.ts +0 -36
  57. package/dist/components/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +0 -65
  58. package/dist/components/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +0 -274
  59. package/dist/components/components/map-with-sidebar/components/MapWithSidebarSubcategory.vue.d.ts +0 -35
  60. package/dist/components/maps.css +0 -1
  61. package/dist/components/maps.js +0 -508
  62. package/dist/components/maps.mjs +0 -20815
  63. package/dist/components/v4-Dx4zqkIC.mjs +0 -7197
  64. package/dist/components/v4-tWlzORDj.js +0 -36
  65. package/dist/components/v4.css +0 -1
  66. package/dist/ssr/styles/2eb2ef074b456be4560b.css +0 -164
  67. /package/dist/client/scripts/{a78ff92ceead2d31f3a9.js → 4b4417e0ec7c6d38af51.js} +0 -0
  68. /package/dist/client/scripts/{7f0830b7d5e434d7a977.js → a4bf5693a18f72023719.js} +0 -0
  69. /package/dist/client/scripts/{70ed495c15ada9f41f04.js → ec0a9a2c688a656c0695.js} +0 -0
  70. /package/dist/client/styles/{5d2e8fcc89de9881e3f0.css → 6b53edbec946bee62d26.css} +0 -0
  71. /package/dist/client/styles/{31f9d972fa4753eaee60.css → 8e0a1eb35d5006bcaf29.css} +0 -0
  72. /package/dist/client/styles/{8751d1ac21308fc7e78b.css → ee1669cbdcce1bd4b354.css} +0 -0
  73. /package/dist/client/styles/{8fc24289899913dd4b9c.css → fea0e33760eef6a2afcc.css} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4900],{35841:function(){},2251:function(e,t,n){"use strict";var l=n(85072),a=n.n(l),o=n(97825),u=n.n(o),s=n(77659),r=n.n(s),i=n(55056),c=n.n(i),d=n(10540),v=n.n(d),m=n(41113),f=n.n(m),g=n(35841),p=n.n(g),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=r().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=v(),a()(p(),b),p()&&p().locals&&p().locals},38300:function(e,t,n){"use strict";var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(17527),o=n(17527),u={class:"form-group vs-guest-selector","data-test":"vs-guest-selector"},s={class:"vs-guest-selector__label"},r=["disabled"],i={class:"visually-hidden"},c={class:"vs-guest-selector__button-row mb-3"},d={class:"d-flex justify-content-between"},v=["value","disabled"],m=["value","disabled"],f=n(17527),g=n(378),p=l(n(26216)),b=l(n(48836));t.default=(0,a.defineComponent)({__name:"GuestSelector",props:{availability:{type:Boolean}},setup:function(e){var t=(0,f.getCurrentInstance)(),n=(0,g.getLabelText)("add_room_label","Add a Room","guests_rooms"),l=(0,g.getLabelText)("save_changes","Save","guests_rooms"),a=(0,f.ref)(2),_=(0,g.getLabelText)("guest","Guest","guests_rooms"),h=(0,g.getLabelText)("guests","Guests","guests_rooms"),C=(0,f.ref)(!1),k=(0,f.ref)(0),x=(0,f.ref)([{id:"".concat(t.uid),showRemoveBtn:!1,numberGroups:{adults:{minCount:1,maxCount:30,count:2,name:"r1a",unitLabel:(0,g.getLabelText)("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r1children",unitLabel:(0,g.getLabelText)("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r1infants",unitLabel:(0,g.getLabelText)("infants","Infants","guests_rooms")}}}]),y=(0,f.ref)(1),L=(0,g.getLabelText)("room","Room","guests_rooms"),N=(0,g.getLabelText)("rooms","Rooms","guests_rooms"),T=(0,f.ref)(!1),V=(0,f.ref)(!1),B=function(){V.value=!1},w=function(){V.value=!V.value},E=function(){if(x.value.length<5){var e={id:"".concat(t.uid),showRemoveBtn:!0,numberGroups:{adults:{minCount:1,maxCount:30,count:1,name:"r"+(x.value.length+1)+"a",unitLabel:(0,g.getLabelText)("adults","Adults","guests_rooms")},children:{minCount:0,maxCount:30,count:0,name:"r"+(x.value.length+1)+"children",unitLabel:(0,g.getLabelText)("children","Children","guests_rooms")},infants:{minCount:0,maxCount:30,count:0,name:"r"+(x.value.length+1)+"infants",unitLabel:(0,g.getLabelText)("infants","Infants","guests_rooms")}}},n=x.value.slice();n.push(e),x.value=n,y.value=n.length,C.value=!0,a.value=a.value+1}},S=function(e,t,n){var l=x.value.findIndex((function(e){return e.id===n}));x.value.splice(l,1),y.value=x.value.length,T.value=!0,a.value=a.value-e,k.value=k.value-t,1===x.value.length&&(C.value=!1)},D=function(e,t,n){a.value="increase"===e?a.value+1:a.value-1,"adults"!==t&&(k.value="increase"===e?k.value+1:k.value-1);var l=x.value.findIndex((function(e){return e.id===n}));x.value[l].numberGroups[t].count="increase"===e?x.value[l].numberGroups[t].count+1:x.value[l].numberGroups[t].count-1};return function(e,t){return(0,o.openBlock)(),(0,o.createElementBlock)("div",u,[(0,o.createElementVNode)("span",s,(0,o.toDisplayString)((0,o.unref)(h)),1),(0,o.createElementVNode)("button",{tabIndex:"availability ? '0' : ''",class:"vs-guest-selector__trigger form-control vs-input",onClick:(0,o.withModifiers)(w,["prevent"]),disabled:!e.availability},[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(y.value)+" ",1),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(y.value>1?(0,o.unref)(N):(0,o.unref)(L)),1),(0,o.createTextVNode)(",  "),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(a.value)+" ",1),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(a.value>1?(0,o.unref)(h):(0,o.unref)(_)),1)],8,r),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["vs-guest-selector__modal",V.value?"vs-guest-selector__modal--visible":""])},[(0,o.createVNode)(b.default,{class:"align-self-end","data-test":"vs-guest-selector__close-btn",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:(0,o.withModifiers)(B,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createElementVNode)("span",i,(0,o.toDisplayString)((0,o.unref)(g.getLabelText)("close","Close","guests_rooms")),1)]})),_:1}),(0,o.createElementVNode)("div",c,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(x.value,(function(e,t){return(0,o.openBlock)(),(0,o.createBlock)(p.default,{key:e.id,name:"r"+(t+1),"show-remove-btn":C.value,"unit-label":(0,o.unref)(g.getLabelText)("room","Room","guests_rooms")+" "+(t+1),"unit-options":e,"unit-removed":T.value,onNumberChange:D,onOnRemove:S},null,8,["name","show-remove-btn","unit-label","unit-options","unit-removed"])})),128))]),(0,o.createElementVNode)("div",d,[x.value.length<5?((0,o.openBlock)(),(0,o.createBlock)(b.default,{key:0,variant:"secondary",class:"c-search__popup__btn-link me-2 align-self-start",onClick:(0,o.withModifiers)(E,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(n)),1)]})),_:1})):(0,o.createCommentVNode)("",!0),x.value.length<5?((0,o.openBlock)(),(0,o.createBlock)(b.default,{key:1,class:"c-search__popup__btn-link c-search__popup__btn-link--pull-right align-self-end",onClick:(0,o.withModifiers)(B,["prevent"])},{default:(0,o.withCtx)((function(){return[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(l)),1)]})),_:1})):(0,o.createCommentVNode)("",!0)])],2),x.value?((0,o.openBlock)(),(0,o.createElementBlock)("input",{key:0,type:"hidden",name:"rooms",id:"room-count",value:y.value,disabled:!e.availability},null,8,v)):(0,o.createCommentVNode)("",!0),x.value?((0,o.openBlock)(),(0,o.createElementBlock)("input",{key:1,type:"hidden",name:"guests",id:"guest-count",value:a.value,disabled:!e.availability},null,8,m)):(0,o.createCommentVNode)("",!0)])}}})},34900:function(e,t,n){"use strict";n.r(t);var l=n(21726),a={};for(var o in l)"default"!==o&&(a[o]=function(e){return l[e]}.bind(0,o));n.d(t,a),n(30231);const u=l.default;t.default=u},30231:function(e,t,n){"use strict";n(2251)},21726:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a.a}});var l=n(38300),a=n.n(l),o={};for(var u in l)"default"!==u&&(o[u]=function(e){return l[e]}.bind(0,u));n.d(t,o)}}]);
@@ -1 +1 @@
1
- "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMap=t():e.VsMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[888],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7154,6422,8745,8836,9122,2536,5025,7539,681,4079],(function(){return 81610,e(e.s=81610)})),e.O()}])}));
1
+ "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMap=t():e.VsMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[888],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,3777,6422,8745,8836,9122,2536,5025,7539,681,4079],(function(){return 81610,e(e.s=81610)})),e.O()}])}));
@@ -1 +1 @@
1
- "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsProductSearchEmbed=t():e.VsProductSearchEmbed=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7374],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,3453,281,7536,2831,9033,6425,6422,8745,8836,4282,5025,2142,8896,378,1688,6216,2491,4900,9856,8861,3293],(function(){return 93293,e(e.s=93293)})),e.O()}])}));
1
+ "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsProductSearchEmbed=t():e.VsProductSearchEmbed=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7374],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,3453,281,7536,9033,6425,6422,8745,8836,4282,5025,2142,8896,378,1688,6216,2491,4900,9856,8861,3293],(function(){return 93293,e(e.s=93293)})),e.O()}])}));
@@ -1 +1 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2710],{79110:function(){},99750:function(t,n,o){"use strict";var e=o(34352),r=o(2543);n.A={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:e.UV},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots:function(){return(0,r.reject)(this.$slots,{name:"button-content"})}}}},92674:function(t,n,o){"use strict";o.d(n,{X:function(){return s}});var e=o(20641),r=o(90033);function s(t,n,o,s,u,c){var i=(0,e.g2)("BDropdown");return(0,e.uX)(),(0,e.Wv)(i,(0,e.v6)(t.$attrs,{variant:"primary",class:"vs-dropdown"}),(0,e.eX)({"button-content":(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"button-content",{},(function(){return[(0,e.eW)((0,r.toDisplayString)(o.text),1)]}))]})),default:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"default")]})),_:2},[(0,e.pI)(c.nonButtonContentSlots,(function(n,o){return{name:o,fn:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,o)]}))}}))]),1040)}},73464:function(t,n,o){"use strict";var e=o(85072),r=o.n(e),s=o(97825),u=o.n(s),c=o(77659),i=o.n(c),a=o(55056),l=o.n(a),f=o(10540),p=o.n(f),d=o(41113),v=o.n(d),m=o(79110),b=o.n(m),y={};y.styleTagTransform=v(),y.setAttributes=l(),y.insert=i().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p(),r()(b(),y),b()&&b().locals&&b().locals},62710:function(t,n,o){"use strict";o.r(n);var e=o(92674),r=o(45754);o(5124);const s=(0,o(66262).A)(r.A,[["render",e.X]]);n.default=s},45754:function(t,n,o){"use strict";o.d(n,{A:function(){return e.A}});var e=o(99750)},5124:function(t,n,o){"use strict";o(73464)}}]);
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2710],{92021:function(){},99750:function(t,n,o){"use strict";var e=o(34352),r=o(2543);n.A={name:"VsDropdown",status:"prototype",release:"0.0.1",components:{BDropdown:e.UV},props:{text:{type:String,default:""}},computed:{nonButtonContentSlots:function(){return(0,r.reject)(this.$slots,{name:"button-content"})}}}},81289:function(t,n,o){"use strict";o.d(n,{X:function(){return s}});var e=o(20641),r=o(90033);function s(t,n,o,s,u,c){var i=(0,e.g2)("BDropdown");return(0,e.uX)(),(0,e.Wv)(i,(0,e.v6)(t.$attrs,{variant:"primary",class:"vs-dropdown"}),(0,e.eX)({"button-content":(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"button-content",{},(function(){return[(0,e.eW)((0,r.toDisplayString)(o.text),1)]}))]})),default:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,"default")]})),_:2},[(0,e.pI)(c.nonButtonContentSlots,(function(n,o){return{name:o,fn:(0,e.k6)((function(){return[(0,e.RG)(t.$slots,o)]}))}}))]),1040)}},1895:function(t,n,o){"use strict";var e=o(85072),r=o.n(e),s=o(97825),u=o.n(s),c=o(77659),i=o.n(c),a=o(55056),l=o.n(a),f=o(10540),p=o.n(f),d=o(41113),v=o.n(d),m=o(92021),b=o.n(m),y={};y.styleTagTransform=v(),y.setAttributes=l(),y.insert=i().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p(),r()(b(),y),b()&&b().locals&&b().locals},62710:function(t,n,o){"use strict";o.r(n);var e=o(81289),r=o(45754);o(40307);const s=(0,o(66262).A)(r.A,[["render",e.X]]);n.default=s},45754:function(t,n,o){"use strict";o.d(n,{A:function(){return e.A}});var e=o(99750)},40307:function(t,n,o){"use strict";o(1895)}}]);
@@ -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.VsMapWithSidebar=t():e.VsMapWithSidebar=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[316],{81330:function(){},50106:function(e,t,s){"use strict";var a=s(64467),n=s(11438),i=s(48836),o=s(79122),r=s(90080),l=s(57536),u=s(10810),c=s(79920),d=s(81610),p=s(4249);function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){(0,a.A)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var h=null;t.A={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:n.T$,VsRow:n.AQ,VsCol:n.Il,VsMap:d.default,VsButton:i.default,VsMapWithSidebarPanel:p.default,VsButtonToggleGroup:r.default,VsWarning:o.default},provide:function(){return{filters:this.filters,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:null,activePins:this.placesData,currentlyHovered:"",showRegions:!1,regions:[],subCatList:null,selectedToggle:"",currentEndpointData:[],mapStatus:"",panelStatus:"map-loading",mapReady:!1,showPanelMessage:null,currentPanelEndpointFilters:"",totalEndpointPins:0,focussedListItem:0,resetZoom:!1,currentStage:0,selectedSubCategory:null}},computed:f(f({mapDisplayClass:function(){return this.panelVisible?"d-none d-lg-block":""},panelDisplayClass:function(){return this.panelVisible?"":"d-none d-lg-block"},regionsData:function(){return this.placesData.filter((function(e){return"Polygon"===e.geometry.type||"MultiPolygon"===e.geometry.type}))}},(0,u.aH)(c.A,{subCatActiveFilters:function(e){return e.activeSubcatFilters}})),{},{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;h=(0,c.A)(),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{openMenu:function(){this.setStage(0),this.openPanel()},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){h.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(h.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.A.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.A.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.properties.id);l.A.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&&(h.setActivePlace({mapId:this.mapId,activeFeature:""}),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("vics"),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"}}}},43746:function(e,t,s){"use strict";s.d(t,{X:function(){return i}});var a=s(20641),n=s(90033);function i(e,t,s,i,o,r){var l=(0,a.g2)("VsMapWithSidebarPanel"),u=(0,a.g2)("VsButton"),c=(0,a.g2)("VsMap"),d=(0,a.g2)("VsButtonToggleGroup"),p=(0,a.g2)("VsWarning"),g=(0,a.g2)("VsCol"),f=(0,a.g2)("VsRow"),h=(0,a.g2)("VsContainer");return(0,a.uX)(),(0,a.Wv)(h,{"data-test":"vs-map-with-sidebar"},{default:(0,a.k6)((function(){return[(0,a.bF)(f,null,{default:(0,a.k6)((function(){return[(0,a.bF)(g,null,{default:(0,a.k6)((function(){return[(0,a.Lk)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.bF)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"reset-side-panel-text")]})),"menu-btn-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"menu-btn-text")]})),"panel-loading-message":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.k6)((function(){return[(0,a.RG)(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.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.bF)(u,{class:"vs-map-with-sidebar__map-toggle",icon:"bars-mobile-menu",size:"sm",onClick:r.openMenu,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.bF)(c,{"is-visible":!o.panelVisible,labels:{},filters:s.filters,places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:r.showDetail,onSetCategory:r.setCategory,onMapReady:r.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom,"show-marker-popups":!1},{"map-loading-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"map-loading-text")]})),"info-message":(0,a.k6)((function(){return[(0,a.eW)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3},8,["is-visible","filters","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.toggleData.length>0?((0,a.uX)(),(0,a.Wv)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.Q3)("",!0)],2)],512),(0,a.bF)(p,{class:"vs-map-with-sidebar__no-js"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},27232:function(e,t,s){"use strict";var a=s(85072),n=s.n(a),i=s(97825),o=s.n(i),r=s(77659),l=s.n(r),u=s(55056),c=s.n(u),d=s(10540),p=s.n(d),g=s(41113),f=s.n(g),h=s(81330),m=s.n(h),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p(),n()(m(),b),m()&&m().locals&&m().locals},8258:function(e,t,s){"use strict";s.r(t);var a=s(43746),n=s(84542);s(34220);const i=(0,s(66262).A)(n.A,[["render",a.X]]);t.default=i},84542:function(e,t,s){"use strict";s.d(t,{A:function(){return a.A}});var a=s(50106)},34220:function(e,t,s){"use strict";s(27232)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7536,7154,6422,8745,8836,8638,3838,2368,7521,1438,9122,1574,2536,5025,7539,1101,2552,681,1213,3055,3198,3844,4079,4249,80],(function(){return 8258,e(e.s=8258)})),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.VsMapWithSidebar=t():e.VsMapWithSidebar=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[316],{81330:function(){},50106:function(e,t,s){"use strict";var a=s(64467),n=s(11438),i=s(48836),o=s(79122),r=s(90080),l=s(57536),u=s(10810),c=s(79920),d=s(81610),p=s(4249);function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){(0,a.A)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var h=null;t.A={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:n.T$,VsRow:n.AQ,VsCol:n.Il,VsMap:d.default,VsButton:i.default,VsMapWithSidebarPanel:p.default,VsButtonToggleGroup:r.default,VsWarning:o.default},provide:function(){return{filters:this.filters,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:null,activePins:this.placesData,currentlyHovered:"",showRegions:!1,regions:[],subCatList:null,selectedToggle:"",currentEndpointData:[],mapStatus:"",panelStatus:"map-loading",mapReady:!1,showPanelMessage:null,currentPanelEndpointFilters:"",totalEndpointPins:0,focussedListItem:0,resetZoom:!1,currentStage:0,selectedSubCategory:null}},computed:f(f({mapDisplayClass:function(){return this.panelVisible?"d-none d-lg-block":""},panelDisplayClass:function(){return this.panelVisible?"":"d-none d-lg-block"},regionsData:function(){return this.placesData.filter((function(e){return"Polygon"===e.geometry.type||"MultiPolygon"===e.geometry.type}))}},(0,u.aH)(c.A,{subCatActiveFilters:function(e){return e.activeSubcatFilters}})),{},{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;h=(0,c.A)(),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{openMenu:function(){this.setStage(0),this.openPanel()},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){h.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(h.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.A.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.A.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.properties.id);l.A.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&&(h.setActivePlace({mapId:this.mapId,activeFeature:""}),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("vics"),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"}}}},43746:function(e,t,s){"use strict";s.d(t,{X:function(){return i}});var a=s(20641),n=s(90033);function i(e,t,s,i,o,r){var l=(0,a.g2)("VsMapWithSidebarPanel"),u=(0,a.g2)("VsButton"),c=(0,a.g2)("VsMap"),d=(0,a.g2)("VsButtonToggleGroup"),p=(0,a.g2)("VsWarning"),g=(0,a.g2)("VsCol"),f=(0,a.g2)("VsRow"),h=(0,a.g2)("VsContainer");return(0,a.uX)(),(0,a.Wv)(h,{"data-test":"vs-map-with-sidebar"},{default:(0,a.k6)((function(){return[(0,a.bF)(f,null,{default:(0,a.k6)((function(){return[(0,a.bF)(g,null,{default:(0,a.k6)((function(){return[(0,a.Lk)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.bF)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"reset-side-panel-text")]})),"menu-btn-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"menu-btn-text")]})),"panel-loading-message":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.k6)((function(){return[(0,a.RG)(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.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.bF)(u,{class:"vs-map-with-sidebar__map-toggle",icon:"bars-mobile-menu",size:"sm",onClick:r.openMenu,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.bF)(c,{"is-visible":!o.panelVisible,labels:{},filters:s.filters,places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:r.showDetail,onSetCategory:r.setCategory,onMapReady:r.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom,"show-marker-popups":!1},{"map-loading-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"map-loading-text")]})),"info-message":(0,a.k6)((function(){return[(0,a.eW)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3},8,["is-visible","filters","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.toggleData.length>0?((0,a.uX)(),(0,a.Wv)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.Q3)("",!0)],2)],512),(0,a.bF)(p,{class:"vs-map-with-sidebar__no-js"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},27232:function(e,t,s){"use strict";var a=s(85072),n=s.n(a),i=s(97825),o=s.n(i),r=s(77659),l=s.n(r),u=s(55056),c=s.n(u),d=s(10540),p=s.n(d),g=s(41113),f=s.n(g),h=s(81330),m=s.n(h),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p(),n()(m(),b),m()&&m().locals&&m().locals},8258:function(e,t,s){"use strict";s.r(t);var a=s(43746),n=s(84542);s(34220);const i=(0,s(66262).A)(n.A,[["render",a.X]]);t.default=i},84542:function(e,t,s){"use strict";s.d(t,{A:function(){return a.A}});var a=s(50106)},34220:function(e,t,s){"use strict";s(27232)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7536,3777,6422,8745,8836,8638,3838,2368,7521,1438,9122,1574,2536,5025,7539,1101,2552,681,1213,3055,3198,3844,4079,4249,80],(function(){return 8258,e(e.s=8258)})),e.O()}])}));
@@ -1 +1 @@
1
- "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelector=t():e.VsGuestSelector=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3741],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2831,6422,8745,8836,8896,378,6216,4900],(function(){return 34900,e(e.s=34900)})),e.O()}])}));
1
+ "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsGuestSelector=t():e.VsGuestSelector=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3741],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,8896,378,6216,4900],(function(){return 34900,e(e.s=34900)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsProductSearch=e():t.VsProductSearch=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1403],{93248:function(){},7165:function(t,e,n){"use strict";var r=n(11438),s=n(13838),o=n(79122),u=n(93293);e.A={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:r.T$,VsRow:r.AQ,VsCol:r.Il,VsProductSearchEmbed:u.default,VsHeading:s.default,VsWarning:o.default},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}}},50560:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var r=n(20641),s=n(90033),o={class:"vs-product-search","data-test":"vs-product-search"},u={class:"vs-product-search__intro"};function a(t,e,n,a,c,l){var d=(0,r.g2)("VsHeading"),i=(0,r.g2)("VsCol"),f=(0,r.g2)("VsProductSearchEmbed"),p=(0,r.g2)("VsWarning"),_=(0,r.g2)("VsRow"),v=(0,r.g2)("VsContainer");return(0,r.uX)(),(0,r.CE)("div",o,[(0,r.bF)(v,null,{default:(0,r.k6)((function(){return[(0,r.bF)(_,null,{default:(0,r.k6)((function(){return[(0,r.bF)(i,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:(0,r.k6)((function(){return[(0,r.bF)(d,{level:"2",alternative:"",class:"vs-product-search__heading mt-0"},{default:(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-module-heading")]})),_:3}),(0,r.Lk)("div",u,[(0,r.RG)(t.$slots,"vs-module-intro")])]})),_:3}),(0,r.bF)(i,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:(0,r.k6)((function(){return[(0,r.bF)(f,{class:"vs-product-search__widget","default-location":n.defaultLocation,"default-locale":n.defaultLocale,"default-prod":n.defaultProd},null,8,["default-location","default-locale","default-prod"]),(0,r.bF)(p,{class:"vs-product-search__no-js"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,s.toDisplayString)(n.noJsMessage),1)]})),_:1})]})),_:1})]})),_:3})]})),_:3})])}},19894:function(t,e,n){"use strict";var r=n(85072),s=n.n(r),o=n(97825),u=n.n(o),a=n(77659),c=n.n(a),l=n(55056),d=n.n(l),i=n(10540),f=n.n(i),p=n(41113),_=n.n(p),v=n(93248),g=n.n(v),h={};h.styleTagTransform=_(),h.setAttributes=d(),h.insert=c().bind(null,"head"),h.domAPI=u(),h.insertStyleElement=f(),s()(g(),h),g()&&g().locals&&g().locals},57231:function(t,e,n){"use strict";n.r(e);var r=n(91056),s=n(86481);n(32626);const o=(0,n(66262).A)(s.A,[["render",r.X]]);e.default=o},86481:function(t,e,n){"use strict";n.d(e,{A:function(){return r.A}});var r=n(7165)},91056:function(t,e,n){"use strict";n.d(e,{X:function(){return r.X}});var r=n(50560)},32626:function(t,e,n){"use strict";n(19894)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,3453,281,7536,2831,9033,6425,6422,8745,8836,8638,3838,2368,7521,1438,9122,4282,5025,2142,8896,378,1688,6216,2491,4900,9856,8861,3293],(function(){return 57231,t(t.s=57231)})),t.O()}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsProductSearch=e():t.VsProductSearch=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1403],{93248:function(){},7165:function(t,e,n){"use strict";var r=n(11438),s=n(13838),o=n(79122),u=n(93293);e.A={name:"VsProductSearch",status:"prototype",release:"0.0.1",components:{VsContainer:r.T$,VsRow:r.AQ,VsCol:r.Il,VsProductSearchEmbed:u.default,VsHeading:s.default,VsWarning:o.default},props:{noJsMessage:{type:String,required:!0},defaultLocation:{type:String,default:""},defaultProd:{type:String,default:"acti,attr,reta"},defaultLocale:{type:String,default:"en"}}}},50560:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var r=n(20641),s=n(90033),o={class:"vs-product-search","data-test":"vs-product-search"},u={class:"vs-product-search__intro"};function a(t,e,n,a,c,l){var d=(0,r.g2)("VsHeading"),i=(0,r.g2)("VsCol"),f=(0,r.g2)("VsProductSearchEmbed"),p=(0,r.g2)("VsWarning"),_=(0,r.g2)("VsRow"),v=(0,r.g2)("VsContainer");return(0,r.uX)(),(0,r.CE)("div",o,[(0,r.bF)(v,null,{default:(0,r.k6)((function(){return[(0,r.bF)(_,null,{default:(0,r.k6)((function(){return[(0,r.bF)(i,{class:"vs-product-search__col vs-product-search__col--left",xl:"7"},{default:(0,r.k6)((function(){return[(0,r.bF)(d,{level:"2",alternative:"",class:"vs-product-search__heading mt-0"},{default:(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-module-heading")]})),_:3}),(0,r.Lk)("div",u,[(0,r.RG)(t.$slots,"vs-module-intro")])]})),_:3}),(0,r.bF)(i,{class:"vs-product-search__col vs-product-search__col--right",xl:"5"},{default:(0,r.k6)((function(){return[(0,r.bF)(f,{class:"vs-product-search__widget","default-location":n.defaultLocation,"default-locale":n.defaultLocale,"default-prod":n.defaultProd},null,8,["default-location","default-locale","default-prod"]),(0,r.bF)(p,{class:"vs-product-search__no-js"},{default:(0,r.k6)((function(){return[(0,r.eW)((0,s.toDisplayString)(n.noJsMessage),1)]})),_:1})]})),_:1})]})),_:3})]})),_:3})])}},19894:function(t,e,n){"use strict";var r=n(85072),s=n.n(r),o=n(97825),u=n.n(o),a=n(77659),c=n.n(a),l=n(55056),d=n.n(l),i=n(10540),f=n.n(i),p=n(41113),_=n.n(p),v=n(93248),g=n.n(v),h={};h.styleTagTransform=_(),h.setAttributes=d(),h.insert=c().bind(null,"head"),h.domAPI=u(),h.insertStyleElement=f(),s()(g(),h),g()&&g().locals&&g().locals},57231:function(t,e,n){"use strict";n.r(e);var r=n(91056),s=n(86481);n(32626);const o=(0,n(66262).A)(s.A,[["render",r.X]]);e.default=o},86481:function(t,e,n){"use strict";n.d(e,{A:function(){return r.A}});var r=n(7165)},91056:function(t,e,n){"use strict";n.d(e,{X:function(){return r.X}});var r=n(50560)},32626:function(t,e,n){"use strict";n(19894)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,3453,281,7536,9033,6425,6422,8745,8836,8638,3838,2368,7521,1438,9122,4282,5025,2142,8896,378,1688,6216,2491,4900,9856,8861,3293],(function(){return 57231,t(t.s=57231)})),t.O()}])}));