@visitscotland/component-library 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/client/manifest.json +14 -14
- package/dist/client/scripts/279fc4015ab4b374ea6c.js +1 -0
- package/dist/client/scripts/79134396a3d8568b2d85.js +1 -0
- package/dist/client/scripts/882665ceac9089bf3338.js +1 -0
- package/dist/client/scripts/8a2361116ccb8141d1c1.js +1 -0
- package/dist/client/scripts/c455e61a9f00f29a5b06.js +1 -0
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +6 -2
- package/dist/client/scripts/3163d27ad89af974e6e5.js +0 -1
- package/dist/client/scripts/606226ac2df1074878c7.js +0 -1
- package/dist/client/scripts/7215bea24edce8c43964.js +0 -1
- package/dist/client/scripts/730f269a8fc7668346b3.js +0 -1
- package/dist/client/scripts/7f77b975b0ace378a513.js +0 -1
- /package/dist/client/styles/{606226ac2df1074878c7.css → 279fc4015ab4b374ea6c.css} +0 -0
- /package/dist/client/styles/{730f269a8fc7668346b3.css → 79134396a3d8568b2d85.css} +0 -0
- /package/dist/client/styles/{3163d27ad89af974e6e5.css → 882665ceac9089bf3338.css} +0 -0
- /package/dist/client/styles/{7215bea24edce8c43964.css → 8a2361116ccb8141d1c1.css} +0 -0
- /package/dist/client/styles/{7f77b975b0ace378a513.css → c455e61a9f00f29a5b06.css} +0 -0
- /package/dist/ssr/styles/{ecccaa5af0f0e3042c0b.css → 91f44850d92a97d1d18e.css} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [1.0.10](https://github.com/visitscotland/vs-component-library/compare/v1.0.9...v1.0.10) (2023-08-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **meganav:** ensure search bar is open before focussing input ([7a6311d](https://github.com/visitscotland/vs-component-library/commit/7a6311d478e017c5d7a32894afec9cd88f8b57b6))
|
|
11
|
+
|
|
12
|
+
### [1.0.9](https://github.com/visitscotland/vs-component-library/compare/v1.0.8...v1.0.9) (2023-08-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 📝 Docs
|
|
16
|
+
|
|
17
|
+
* **socialshare.stories.js:** wrap the component in an absolutely positioned div ([8907dd7](https://github.com/visitscotland/vs-component-library/commit/8907dd735a3b421e7c26a004597c528d6b737505))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **socialshare.vue:** add container prop set to "body" ([3edc3b8](https://github.com/visitscotland/vs-component-library/commit/3edc3b84932f3b19969caa39a329af71316852b1))
|
|
23
|
+
* **ssr:** bring lazy hydrate fix over from other repo ([b707973](https://github.com/visitscotland/vs-component-library/commit/b707973d90ea9212eed71ca30b550c3a1fd1fde8))
|
|
@@ -2371,12 +2371,12 @@
|
|
|
2371
2371
|
"scripts/eaa0235775929a686f9c.js",
|
|
2372
2372
|
"scripts/c3b673fbfb24084ec12a.js",
|
|
2373
2373
|
"scripts/99ebea592b18c058007c.js",
|
|
2374
|
-
"scripts/
|
|
2374
|
+
"scripts/8a2361116ccb8141d1c1.js",
|
|
2375
2375
|
"scripts/2e273f5a3b1da9719c2f.js"
|
|
2376
2376
|
],
|
|
2377
2377
|
"styles": [
|
|
2378
2378
|
"styles/66b8a5d09a8317bd9092.css",
|
|
2379
|
-
"styles/
|
|
2379
|
+
"styles/8a2361116ccb8141d1c1.css"
|
|
2380
2380
|
]
|
|
2381
2381
|
},
|
|
2382
2382
|
"VsFooterNavListItem": {
|
|
@@ -2557,12 +2557,12 @@
|
|
|
2557
2557
|
"scripts/eaa0235775929a686f9c.js",
|
|
2558
2558
|
"scripts/c3b673fbfb24084ec12a.js",
|
|
2559
2559
|
"scripts/99ebea592b18c058007c.js",
|
|
2560
|
-
"scripts/
|
|
2560
|
+
"scripts/8a2361116ccb8141d1c1.js",
|
|
2561
2561
|
"scripts/d15c16ce3ff923a4a5c0.js"
|
|
2562
2562
|
],
|
|
2563
2563
|
"styles": [
|
|
2564
2564
|
"styles/66b8a5d09a8317bd9092.css",
|
|
2565
|
-
"styles/
|
|
2565
|
+
"styles/8a2361116ccb8141d1c1.css",
|
|
2566
2566
|
"styles/d15c16ce3ff923a4a5c0.css"
|
|
2567
2567
|
]
|
|
2568
2568
|
},
|
|
@@ -2736,7 +2736,7 @@
|
|
|
2736
2736
|
"scripts/416c646be741a768cba5.js",
|
|
2737
2737
|
"scripts/3ec90a0e1d1b4e4a9f3e.js",
|
|
2738
2738
|
"scripts/5b5055de837ff8eb28b8.js",
|
|
2739
|
-
"scripts/
|
|
2739
|
+
"scripts/279fc4015ab4b374ea6c.js"
|
|
2740
2740
|
],
|
|
2741
2741
|
"styles": [
|
|
2742
2742
|
"styles/66b8a5d09a8317bd9092.css",
|
|
@@ -2744,7 +2744,7 @@
|
|
|
2744
2744
|
"styles/65c1f3191bc24c8f3ac8.css",
|
|
2745
2745
|
"styles/3ec90a0e1d1b4e4a9f3e.css",
|
|
2746
2746
|
"styles/5b5055de837ff8eb28b8.css",
|
|
2747
|
-
"styles/
|
|
2747
|
+
"styles/279fc4015ab4b374ea6c.css"
|
|
2748
2748
|
]
|
|
2749
2749
|
},
|
|
2750
2750
|
"VsIcentre": {
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
"scripts/c3b673fbfb24084ec12a.js",
|
|
4281
4281
|
"scripts/bb5f66fdff1806a7b91d.js",
|
|
4282
4282
|
"scripts/fa41415cf66b7a7716f4.js",
|
|
4283
|
-
"scripts/
|
|
4283
|
+
"scripts/882665ceac9089bf3338.js"
|
|
4284
4284
|
],
|
|
4285
4285
|
"styles": [
|
|
4286
4286
|
"styles/dbe1b855d20944778934.css",
|
|
@@ -4288,7 +4288,7 @@
|
|
|
4288
4288
|
"styles/66b8a5d09a8317bd9092.css",
|
|
4289
4289
|
"styles/bb5f66fdff1806a7b91d.css",
|
|
4290
4290
|
"styles/fa41415cf66b7a7716f4.css",
|
|
4291
|
-
"styles/
|
|
4291
|
+
"styles/882665ceac9089bf3338.css"
|
|
4292
4292
|
]
|
|
4293
4293
|
},
|
|
4294
4294
|
"VsMegaNav": {
|
|
@@ -4335,7 +4335,7 @@
|
|
|
4335
4335
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
4336
4336
|
"scripts/c06913a0713c25cc5fb8.js",
|
|
4337
4337
|
"scripts/a48a2b06e83f5633ea99.js",
|
|
4338
|
-
"scripts/
|
|
4338
|
+
"scripts/79134396a3d8568b2d85.js",
|
|
4339
4339
|
"scripts/989847d3f18143a3d11a.js",
|
|
4340
4340
|
"scripts/3633fb5ffc37b6206270.js",
|
|
4341
4341
|
"scripts/128d6d31eefdbd7623f2.js",
|
|
@@ -4348,7 +4348,7 @@
|
|
|
4348
4348
|
"styles/bb5f66fdff1806a7b91d.css",
|
|
4349
4349
|
"styles/0f1d80669c0f36ef7a3a.css",
|
|
4350
4350
|
"styles/c06913a0713c25cc5fb8.css",
|
|
4351
|
-
"styles/
|
|
4351
|
+
"styles/79134396a3d8568b2d85.css",
|
|
4352
4352
|
"styles/989847d3f18143a3d11a.css",
|
|
4353
4353
|
"styles/3633fb5ffc37b6206270.css",
|
|
4354
4354
|
"styles/128d6d31eefdbd7623f2.css",
|
|
@@ -4846,7 +4846,7 @@
|
|
|
4846
4846
|
"scripts/c3b673fbfb24084ec12a.js",
|
|
4847
4847
|
"scripts/8618c1bb19a7e8fd6983.js",
|
|
4848
4848
|
"scripts/c06913a0713c25cc5fb8.js",
|
|
4849
|
-
"scripts/
|
|
4849
|
+
"scripts/79134396a3d8568b2d85.js",
|
|
4850
4850
|
"scripts/9a27d3c4075175dde6b2.js"
|
|
4851
4851
|
],
|
|
4852
4852
|
"styles": [
|
|
@@ -4854,7 +4854,7 @@
|
|
|
4854
4854
|
"styles/18f2445b32c899cb5d25.css",
|
|
4855
4855
|
"styles/66b8a5d09a8317bd9092.css",
|
|
4856
4856
|
"styles/c06913a0713c25cc5fb8.css",
|
|
4857
|
-
"styles/
|
|
4857
|
+
"styles/79134396a3d8568b2d85.css"
|
|
4858
4858
|
]
|
|
4859
4859
|
},
|
|
4860
4860
|
"VsSiteSearch": {
|
|
@@ -5190,7 +5190,7 @@
|
|
|
5190
5190
|
"scripts/ae5c80d270825f9d87fa.js",
|
|
5191
5191
|
"scripts/d0fd50a5b063d113a609.js",
|
|
5192
5192
|
"scripts/3a1d3a02c238d41c9e68.js",
|
|
5193
|
-
"scripts/
|
|
5193
|
+
"scripts/c455e61a9f00f29a5b06.js"
|
|
5194
5194
|
],
|
|
5195
5195
|
"styles": [
|
|
5196
5196
|
"styles/dbe1b855d20944778934.css",
|
|
@@ -5199,7 +5199,7 @@
|
|
|
5199
5199
|
"styles/ae5c80d270825f9d87fa.css",
|
|
5200
5200
|
"styles/d0fd50a5b063d113a609.css",
|
|
5201
5201
|
"styles/3a1d3a02c238d41c9e68.css",
|
|
5202
|
-
"styles/
|
|
5202
|
+
"styles/c455e61a9f00f29a5b06.css"
|
|
5203
5203
|
]
|
|
5204
5204
|
},
|
|
5205
5205
|
"VsStretchedLinkPanels": {
|
|
@@ -0,0 +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.VsGlobalMenu=e():t.VsGlobalMenu=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4322],{4485:function(){},88640:function(t,e,s){"use strict";var n=s(81779),i=s(49028),o=s(23472),r=s(64945);e.Z={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsGlobalMenuDropdown:o.default,VsGlobalMenuList:r.default,LazyHydrationWrapper:i.Z},props:{activeSite:{type:String,required:!0},dropdownLabel:{type:String,default:"Our Websites"}},data:function(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}}},7480:function(t,e,s){"use strict";s.d(e,{s:function(){return o}});var n=s(66252),i={class:"vs-global-menu"};function o(t,e,s,o,r,l){var a=(0,n.up)("VsGlobalMenuDropdown"),u=(0,n.up)("LazyHydrationWrapper"),c=(0,n.up)("VsGlobalMenuList"),d=(0,n.up)("VsCol"),p=(0,n.up)("VsRow"),f=(0,n.up)("VsContainer");return(0,n.wg)(),(0,n.iD)("nav",i,[(0,n.Wm)(f,{fluid:"lg",class:"px-1 px-sm-3"},{default:(0,n.w5)((function(){return[(0,n.Wm)(p,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(d,{cols:"12",class:"vs-global-menu__wrapper"},{default:(0,n.w5)((function(){return[(0,n.Wm)(u,{"on-interaction":["focus","click"]},{default:(0,n.w5)((function(){return[(0,n.Wm)(a,{class:"d-lg-none","active-site":s.activeSite,"dropdown-label":s.dropdownLabel,websites:r.websites},null,8,["active-site","dropdown-label","websites"])]})),_:1}),(0,n.Wm)(c,{class:"d-none d-lg-flex","active-site":s.activeSite,websites:r.websites},null,8,["active-site","websites"]),(0,n.WI)(t.$slots,"second-menu-item"),(0,n.WI)(t.$slots,"third-menu-item")]})),_:3})]})),_:3})]})),_:3})])}},31387:function(t,e,s){"use strict";var n=s(93379),i=s.n(n),o=s(7795),r=s.n(o),l=s(90569),a=s.n(l),u=s(3565),c=s.n(u),d=s(19216),p=s.n(d),f=s(44589),b=s.n(f),m=s(4485),w=s.n(m),v={};v.styleTagTransform=b(),v.setAttributes=c(),v.insert=a().bind(null,"head"),v.domAPI=r(),v.insertStyleElement=p(),i()(w(),v),w()&&w().locals&&w().locals},36829:function(t,e,s){"use strict";s.r(e);var n=s(38205),i=s(94266);s(3415);const o=(0,s(83744).Z)(i.Z,[["render",n.s]]);e.default=o},94266:function(t,e,s){"use strict";s.d(e,{Z:function(){return n.Z}});var n=s(88640)},38205:function(t,e,s){"use strict";s.d(e,{s:function(){return n.s}});var n=s(7480)},3415:function(t,e,s){"use strict";s(31387)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,9028,7581,4186,1321,1779,1313,2304,6399,3472,4945],(function(){return 36829,t(t.s=36829)})),t.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3800],{38114:function(){},21789:function(t,e,n){"use strict";var s=n(17370),r=n(63817),o=n(83918),a=n(81779);e.Z={name:"VsSiteSearchForm",status:"prototype",release:"0.0.1",components:{VsIcon:s.default,VsInput:r.default,VsButton:o.default,VsCol:a.hY,VsRow:a.ou,VsContainer:a.xB},props:{isShowing:{type:Boolean,default:!1},labelText:{type:String,default:""},submitButtonText:{type:String,default:""},clearButtonText:{type:String,default:""},closeButtonText:{type:String,default:""}},data:function(){return{searchTerm:"",showSearchForm:!0}},watch:{isShowing:function(t){t&&this.focusOnInput()}},methods:{focusOnInput:function(){var t=this;this.$nextTick((function(){return t.$refs.searchInput.$refs.input.focus()}))},updateVal:function(t){this.searchTerm=t.value},onSubmit:function(t){""===this.searchTerm&&t.preventDefault()},closeSearchForm:function(){this.$emit("toggleAction",this.showSearchForm)}}}},61178:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var s=n(66252),r=n(3577),o={key:0,class:"vs-site-search-form","data-test":"vs-site-search-form"},a={class:"cludo-input-form d-flex align-items-start",role:"search",id:"cludo-search-input"},u={class:"d-flex flex-column flex-grow-1 position-relative"},c={for:"site-search",class:"vs-site-search-form__label"},i={class:"sr-only"},l={class:"sr-only"};function f(t,e,n,f,p,d){var h=(0,s.up)("VsIcon"),m=(0,s.up)("VsInput"),_=(0,s.up)("VsButton"),v=(0,s.up)("VsCol"),b=(0,s.up)("VsRow"),y=(0,s.up)("VsContainer");return p.showSearchForm?((0,s.wg)(),(0,s.iD)("div",o,[(0,s.Wm)(y,{fluid:"lg"},{default:(0,s.w5)((function(){return[(0,s.Wm)(b,null,{default:(0,s.w5)((function(){return[(0,s.Wm)(v,{cols:"12"},{default:(0,s.w5)((function(){return[(0,s._)("div",a,[(0,s._)("div",u,[(0,s._)("label",c,[(0,s._)("span",i,(0,r.toDisplayString)(n.labelText),1),(0,s.Wm)(h,{name:"search",size:"xxs",variant:"secondary"})]),(0,s.Wm)(m,{class:"vs-site-search-form__input cludo-input-form__input",ref:"searchInput",name:"searchrequest",type:"search","field-name":"site-search",placeholder:n.labelText,"clear-button-text":n.clearButtonText,"auto-complete":!1,onUpdated:d.updateVal},null,8,["placeholder","clear-button-text","onUpdated"])]),(0,s.Wm)(_,{type:"submit",class:"vs-site-search-form__search-button cludo-input-form__search-button",variant:"primary",size:"lg",onClick:d.closeSearchForm},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(n.submitButtonText),1)]})),_:1},8,["onClick"])])]})),_:1})]})),_:1})]})),_:1}),(0,s.Wm)(_,{class:"vs-site-search-form__close-button d-none d-lg-block",variant:"transparent",icon:"close-circle",size:"md","icon-only":"",onClick:d.closeSearchForm},{default:(0,s.w5)((function(){return[(0,s._)("span",l,(0,r.toDisplayString)(n.closeButtonText),1)]})),_:1},8,["onClick"])])):(0,s.kq)("",!0)}},48398:function(t,e,n){"use strict";var s=n(93379),r=n.n(s),o=n(7795),a=n.n(o),u=n(90569),c=n.n(u),i=n(3565),l=n.n(i),f=n(19216),p=n.n(f),d=n(44589),h=n.n(d),m=n(38114),_=n.n(m),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=c().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p(),r()(_(),v),_()&&_().locals&&_().locals},43800:function(t,e,n){"use strict";n.r(e);var s=n(16314),r=n(77871);n(47983);const o=(0,n(83744).Z)(r.Z,[["render",s.s]]);e.default=o},77871:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(21789)},16314:function(t,e,n){"use strict";n.d(e,{s:function(){return s.s}});var s=n(61178)},47983:function(t,e,n){"use strict";n(48398)}}]);
|
|
@@ -0,0 +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.VsMegaNavTopMenuItem=e():t.VsMegaNavTopMenuItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4978],{90135:function(){},57070:function(t,e,n){"use strict";var a=n(66821),s=n(71609),o=n(49028);e.Z={name:"VsMegaNavTopMenuItem",status:"prototype",release:"0.1.0",components:{VsMegaNavDropdown:a.default,VsLink:s.default,LazyHydrationWrapper:o.Z},props:{href:{type:String,default:""},ctaText:{type:String,default:""},align:{type:String,default:"top",validator:function(t){return t.match(/(left|bottom|top)/)}}},computed:{hasFeaturedItem:function(){return this.$slots["nav-featured-item"]&&this.$slots["nav-featured-item"]()},hasFeaturedItemLeft:function(){return this.$slots["nav-featured-item-left"]&&this.$slots["nav-featured-item-left"]()},hasFeaturedEvent:function(){return this.$slots["nav-featured-event"]&&this.$slots["nav-featured-event"]()},alignmentClass:function(){return"bottom"===this.align?"vs-mega-nav-top-menu-item__featured--bottom":""}}}},56407:function(t,e,n){"use strict";n.d(e,{s:function(){return m}});var a=n(66252),s=n(3577),o={class:"vs-mega-nav-top-menu-item","data-test":"vs-mega-nav-top-menu-item",ref:"menuToggle"},u=(0,a._)("hr",{class:"vs-mega-nav-top-menu-item__divider"},null,-1),r={class:"vs-mega-nav-top-menu-item__columns-wrapper"},i={key:2,class:"vs-mega-nav-top-menu-item__featured-event","data-test":"vs-mega-nav-top-menu-item__featured-event"};function m(t,e,n,m,f,l){var c=(0,a.up)("VsLink"),d=(0,a.up)("VsMegaNavDropdown"),v=(0,a.up)("LazyHydrationWrapper");return(0,a.wg)(),(0,a.iD)("li",o,[(0,a.Wm)(v,{"on-interaction":["focus","click"]},{default:(0,a.w5)((function(){return[(0,a.Wm)(d,{"menu-toggle-alt-text":"Toggle Menu"},{"button-content":(0,a.w5)((function(){return[(0,a.WI)(t.$slots,"button-content")]})),"cta-link":(0,a.w5)((function(){return[n.href&&n.ctaText?((0,a.wg)(),(0,a.j4)(c,{key:0,href:n.href,role:"menuitem","data-test":"vs-mega-nav-top-menu-item__cta-link",class:"vs-mega-nav-top-menu-item__cta-link"},{default:(0,a.w5)((function(){return[(0,a.Uk)((0,s.toDisplayString)(n.ctaText),1)]})),_:1},8,["href"])):(0,a.kq)("",!0),u]})),"dropdown-content":(0,a.w5)((function(){return[(0,a._)("div",r,[(0,a.WI)(t.$slots,"dropdown-content"),l.hasFeaturedItemLeft?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.normalizeClass)(["vs-mega-nav-top-menu-item__featured vs-mega-nav-top-menu-item__featured--left",l.alignmentClass]),"data-test":"vs-mega-nav-top-menu-item__featured"},[(0,a.WI)(t.$slots,"nav-featured-item-left")],2)):(0,a.kq)("",!0),l.hasFeaturedItem?((0,a.wg)(),(0,a.iD)("div",{key:1,class:(0,s.normalizeClass)(["vs-mega-nav-top-menu-item__featured",l.alignmentClass]),"data-test":"vs-mega-nav-top-menu-item__featured"},[(0,a.WI)(t.$slots,"nav-featured-item")],2)):(0,a.kq)("",!0),l.hasFeaturedEvent?((0,a.wg)(),(0,a.iD)("div",i,[(0,a.WI)(t.$slots,"nav-featured-event")])):(0,a.kq)("",!0)])]})),_:3})]})),_:3})],512)}},48473:function(t,e,n){"use strict";var a=n(93379),s=n.n(a),o=n(7795),u=n.n(o),r=n(90569),i=n.n(r),m=n(3565),f=n.n(m),l=n(19216),c=n.n(l),d=n(44589),v=n.n(d),p=n(90135),g=n.n(p),_={};_.styleTagTransform=v(),_.setAttributes=f(),_.insert=i().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=c(),s()(g(),_),g()&&g().locals&&g().locals},54170:function(t,e,n){"use strict";n.r(e);var a=n(73762),s=n(11224);n(91762);const o=(0,n(83744).Z)(s.Z,[["render",a.s]]);e.default=o},11224:function(t,e,n){"use strict";n.d(e,{Z:function(){return a.Z}});var a=n(57070)},73762:function(t,e,n){"use strict";n.d(e,{s:function(){return a.s}});var a=n(56407)},91762:function(t,e,n){"use strict";n(48473)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,9028,7370,282,976,3918,7581,4186,1321,1779,1609,6821],(function(){return 54170,t(t.s=54170)})),t.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7528],{93960:function(){},24458:function(t,n,r){"use strict";var s=r(38195),e=r(81779),o=r(49028);n.Z={name:"VsFooterNavList",status:"prototype",release:"0.0.1",components:{VsAccordion:s.default,VsRow:e.ou,VsContainer:e.xB,LazyHydrationWrapper:o.Z},props:{breakPoint:{type:String,default:null,validator:function(t){return t.match(/(xs|sm|md|lg|xl|xxl)/)}}}}},21928:function(t,n,r){"use strict";r.d(n,{s:function(){return o}});var s=r(66252),e={class:"vs-footer-nav-list"};function o(t,n,r,o,u,i){var a=(0,s.up)("VsRow"),c=(0,s.up)("VsAccordion"),l=(0,s.up)("LazyHydrationWrapper"),f=(0,s.up)("VsContainer");return(0,s.wg)(),(0,s.j4)(f,{class:"vs-footer-nav-list","data-test":"vs-footer-nav-list"},{default:(0,s.w5)((function(){return[(0,s.Wm)(l,{"on-interaction":["focus","click"]},{default:(0,s.w5)((function(){return[(0,s._)("div",e,[(0,s.Wm)(c,{"break-point":r.breakPoint},{default:(0,s.w5)((function(){return[(0,s.Wm)(a,null,{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"default")]})),_:3})]})),_:3},8,["break-point"])])]})),_:3})]})),_:3})}},9498:function(t,n,r){"use strict";var s=r(93379),e=r.n(s),o=r(7795),u=r.n(o),i=r(90569),a=r.n(i),c=r(3565),l=r.n(c),f=r(19216),d=r.n(f),p=r(44589),v=r.n(p),m=r(93960),_=r.n(m),b={};b.styleTagTransform=v(),b.setAttributes=l(),b.insert=a().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=d(),e()(_(),b),_()&&_().locals&&_().locals},77528:function(t,n,r){"use strict";r.r(n);var s=r(75876),e=r(17850);r(11754);const o=(0,r(83744).Z)(e.Z,[["render",s.s]]);n.default=o},17850:function(t,n,r){"use strict";r.d(n,{Z:function(){return s.Z}});var s=r(24458)},75876:function(t,n,r){"use strict";r.d(n,{s:function(){return s.s}});var s=r(21928)},11754:function(t,n,r){"use strict";r(9498)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7444],{88885:function(){},89588:function(e,t,n){"use strict";var o=n(83918),s=n(73366),r=n(61861),i=n(81779),a=n(92854);t.Z={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsHeading:s.default,VsModuleWrapper:r.default,BPopover:a.xK,VsRow:i.ou,VsContainer:i.xB,VsCol:i.hY},provide:function(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data:function(){return{copyLink:!1}},methods:{onClose:function(e){this.$refs.popover.hideFn(e)},onShown:function(){this.focusFirst()},onHidden:function(){this.focusRef(this.$refs.shareButton)},onHide:function(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink:function(){this.copyLink=!0},focusRef:function(e){var t=this;this.$nextTick((function(){t.$nextTick((function(){(e.$el||e).focus()}))}))},focusFirst:function(){var e=this;this.$nextTick((function(){e.$nextTick((function(){e.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()}))}))},tabFromClose:function(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden:function(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}}},17979:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var o=n(66252),s=n(3577),r=n(49963),i={class:"sr-only"};function a(e,t,n,a,u,c){var l=(0,o.up)("VsButton"),f=(0,o.up)("VsHeading"),d=(0,o.up)("VsRow"),p=(0,o.up)("BPopover"),h=(0,o.up)("VsCol"),v=(0,o.up)("VsContainer"),y=(0,o.up)("VsModuleWrapper");return(0,o.wg)(),(0,o.iD)("div",{class:(0,s.normalizeClass)(["vs-social-share",n.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[n.noJs?(0,o.kq)("",!0):((0,o.wg)(),(0,o.j4)(l,{key:0,"icon-with-text":"",class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:"vs-social-share-popover--".concat(n.id),ref:"shareButton"},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,s.toDisplayString)(n.shareBtnText),1)]})),_:1},8,["id"])),n.noJs?(0,o.kq)("",!0):((0,o.wg)(),(0,o.j4)(p,{key:1,"custom-class":"vs-social-share__popover",target:"vs-social-share-popover--".concat(n.id),click:!0,container:"body",placement:"left-end",onShown:c.onShown,onHidden:c.onHidden,onHide:c.onHide,ref:"popover"},{default:(0,o.w5)((function(){return[(0,o.Wm)(f,{thin:"",level:"3",tabindex:"0",ref:"shareHeader",class:"vs-social-share__header",onKeydown:t[0]||(t[0]=(0,r.withKeys)((function(e){return c.tabBackFromHidden(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,s.toDisplayString)(n.sharePopoverTitle),1)]})),_:1},512),(0,o.Wm)(d,{ref:"popoverShareRow"},{default:(0,o.w5)((function(){return[(0,o.WI)(e.$slots,"default",{onCopyLink:c.onCopyLink})]})),_:3},512),(0,o.Wm)(l,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",size:"lg",variant:"transparent",ref:"closeButton",onClick:c.onClose,onKeydown:t[1]||(t[1]=(0,r.withKeys)((function(e){return c.tabFromClose(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o._)("span",i,(0,s.toDisplayString)(n.closeAltText),1)]})),_:1},8,["onClick"])]})),_:3},8,["target","onShown","onHidden","onHide"])),n.noJs?((0,o.wg)(),(0,o.j4)(y,{key:2,class:"vs-social-share--module-list"},{default:(0,o.w5)((function(){return[(0,o.Wm)(v,null,{default:(0,o.w5)((function(){return[(0,o.Wm)(d,null,{default:(0,o.w5)((function(){return[(0,o.Wm)(h,{cols:"12"},{default:(0,o.w5)((function(){return[(0,o.Wm)(f,{thin:"",level:"2","override-style-level":"3",class:"mb-9 mt-0"},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,s.toDisplayString)(n.sharePopoverTitle),1)]})),_:1})]})),_:1})]})),_:1}),(0,o.Wm)(d,{class:"justify-content-center"},{default:(0,o.w5)((function(){return[(0,o.WI)(e.$slots,"default")]})),_:3})]})),_:3})]})),_:3})):(0,o.kq)("",!0)],2)}},63878:function(e,t,n){"use strict";var o=n(93379),s=n.n(o),r=n(7795),i=n.n(r),a=n(90569),u=n.n(a),c=n(3565),l=n.n(c),f=n(19216),d=n.n(f),p=n(44589),h=n.n(p),v=n(88885),y=n.n(v),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),s()(y(),m),y()&&y().locals&&y().locals},64381:function(e,t,n){"use strict";n.r(t);var o=n(98483),s=n(48033);n(94707);const r=(0,n(83744).Z)(s.Z,[["render",o.s]]);t.default=r},48033:function(e,t,n){"use strict";n.d(t,{Z:function(){return o.Z}});var o=n(89588)},98483:function(e,t,n){"use strict";n.d(t,{s:function(){return o.s}});var o=n(17979)},94707:function(e,t,n){"use strict";n(63878)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,282,976,3918,7581,4186,1321,1779,3366,4142,1861],(function(){return 64381,e(e.s=64381)})),e.O()}])}));
|