@visitscotland/component-library 1.0.24 → 1.0.26
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 +33 -3
- package/dist/client/manifest.json +404 -334
- package/dist/client/scripts/00c35b76f46770795fc6.js +1 -0
- package/dist/client/scripts/00dc7f48caf1871fb08a.js +1 -0
- package/dist/client/scripts/{7b76b805f3331b91b6bb.js → 0465f96970edb299f66b.js} +1 -1
- package/dist/client/scripts/{63b16cfbb76b12dfaba0.js → 09ea4b96c3d1810c42e0.js} +1 -1
- package/dist/client/scripts/0da3cfed858766afccdb.js +2 -0
- package/dist/client/scripts/0da3cfed858766afccdb.js.LICENSE.txt +5 -0
- package/dist/client/scripts/{9b7ac4c1f43e93dc054a.js → 125faa00007f84861a36.js} +1 -1
- package/dist/client/scripts/{cd6bf03984d2a9d3cdc1.js → 1515e9031bcc93a44eb5.js} +1 -1
- package/dist/client/scripts/{33c095fb4e5483f6ac45.js → 15a469f546bf1f0466e1.js} +1 -1
- package/dist/client/scripts/{bfffee762dc7872605df.js → 1701a9402143e4b7b77c.js} +1 -1
- package/dist/client/scripts/{e20a9209674454bca4b8.js → 1a47d223d9653116cfe1.js} +1 -1
- package/dist/client/scripts/1d47c0c2652e17a79cd7.js +1 -0
- package/dist/client/scripts/{72b36dc176525288458f.js → 1e2f1b54799d23569aae.js} +1 -1
- package/dist/client/scripts/{3aa09060db96cf617974.js → 1ebabe5dddf279c9bb49.js} +1 -1
- package/dist/client/scripts/{3943a143ba2100ce9557.js → 23c268afd7e485a8ffba.js} +1 -1
- package/dist/client/scripts/{890c41daae42fcf3b836.js → 252dda21bf0e0934136a.js} +1 -1
- package/dist/client/scripts/{859fc7fba56fc8b69fb6.js → 26c65af57544300026ba.js} +1 -1
- package/dist/client/scripts/{6cf5c1dbae9f3ceb445b.js → 278626f83b749198bcc1.js} +1 -1
- package/dist/client/scripts/{06eb9b6db3558ccdbb13.js → 282efcfb2f178a4383ec.js} +1 -1
- package/dist/client/scripts/{ba144681b5801d1dfb29.js → 2a17df72ab8f5798b665.js} +1 -1
- package/dist/client/scripts/{3376afa404b2abae6ef4.js → 2f22e1f3fd50701f768c.js} +1 -1
- package/dist/client/scripts/{88d8039b7ac964b26220.js → 32574c4938b619a575fc.js} +1 -1
- package/dist/client/scripts/{6ec3cae4b98319dc0b2d.js → 32e3c5668117ff8d2d61.js} +1 -1
- package/dist/client/scripts/{5badf747fb5815402bce.js → 3692380b62fd41a910ed.js} +1 -1
- package/dist/client/scripts/{2959d8b9d7e19d1f29d4.js → 37647589fe5f0407574d.js} +1 -1
- package/dist/client/scripts/{528a83c665e8f0fa6fd9.js → 3773a039f295995a52d4.js} +1 -1
- package/dist/client/scripts/{13cac5666bc0d3a3380f.js → 39f361d27f6fa706f241.js} +1 -1
- package/dist/client/scripts/{2bcc196339fc00ff8590.js → 3bd7d7d1775b8ee81136.js} +1 -1
- package/dist/client/scripts/{70b0cbc344de6ab63f1b.js → 3cf4d6db3928f572fac7.js} +1 -1
- package/dist/client/scripts/{6c82733bb7ab9dfe99b2.js → 3f1e409c94f0c2790d29.js} +1 -1
- package/dist/client/scripts/{fba4e2b1fb3be062b46c.js → 41445cd668c6c413ee6a.js} +1 -1
- package/dist/client/scripts/{b41f1cc1bef2139dcc63.js → 422e1b5afec296ba8086.js} +1 -1
- package/dist/client/scripts/4a0169bf91e4e2397bcf.js +1 -0
- package/dist/client/scripts/{7b3c28e355c2c32098f0.js → 51e47bfcaf13506c62ba.js} +1 -1
- package/dist/client/scripts/{2ce6efa1425356cd42b9.js → 57ec12111c056f9f4b71.js} +1 -1
- package/dist/client/scripts/{bad40fe653a59d8b5194.js → 587c4d19ba6aaab08dcf.js} +1 -1
- package/dist/client/scripts/{8774ab652fa4ac64d0ba.js → 5923c82206e65872a153.js} +1 -1
- package/dist/client/scripts/{9dd2c54dfe48f76675dc.js → 5c3a74ab1b9a22c82ea8.js} +1 -1
- package/dist/client/scripts/{bff123ab6829b0bda4dc.js → 5c52bbe2ce602b5192fd.js} +1 -1
- package/dist/client/scripts/{421ba837bb9825196171.js → 5d933c0f8b11bcbef212.js} +1 -1
- package/dist/client/scripts/68f7c6031293430987cd.js +1 -0
- package/dist/client/scripts/{c00d9492c4c30d55364b.js → 695fa714ac71c91b175f.js} +1 -1
- package/dist/client/scripts/{b83e0d32a0e2d19ed179.js → 6c2dc1f74eed81b7c416.js} +1 -1
- package/dist/client/scripts/{f91c17b1589ff6358911.js → 6ffcd1cefd31256b1b08.js} +1 -1
- package/dist/client/scripts/{1ad0ed977002cd7ff07d.js → 73622966d3deb27c335d.js} +1 -1
- package/dist/client/scripts/{a573fc7202f753cad5e9.js → 74c2a4cc0e1b095ac8a8.js} +1 -1
- package/dist/client/scripts/7e47b5feb567fd1dd8c4.js +1 -0
- package/dist/client/scripts/{d1722ea485c3c104d879.js → 7e7450e88341aa4b02b6.js} +1 -1
- package/dist/client/scripts/7f4469da203795a6f47b.js +1 -0
- package/dist/client/scripts/{16a02b67526c468f66d2.js → 803276655eb9ed5e9d3a.js} +1 -1
- package/dist/client/scripts/{d9e2bd589c77c1935ac9.js → 83706c5cd238dbd71dc0.js} +1 -1
- package/dist/client/scripts/{b7a86cfe994d3608dd57.js → 864121788b8138ca2c67.js} +1 -1
- package/dist/client/scripts/88ab4561d196cb2b5551.js +1 -0
- package/dist/client/scripts/{74b978e38ecae74c59f2.js → 898c147b72953c7d8efb.js} +1 -1
- package/dist/client/scripts/{42f7fa2d924439bb0670.js → 8990cd00d88536465193.js} +1 -1
- package/dist/client/scripts/{186ea281b77a6950098a.js → 8cbba1a2a1921bd720a1.js} +1 -1
- package/dist/client/scripts/97b115c15dff84012008.js +1 -0
- package/dist/client/scripts/{5231395c152ded2ccd8c.js → 97cddd3583069debb72b.js} +1 -1
- package/dist/client/scripts/9a5b8573e2af7b27fdeb.js +1 -0
- package/dist/client/scripts/{3043520e675319d3972e.js → 9e0532d92a4aec9a4047.js} +1 -1
- package/dist/client/scripts/a2b56b4b73a95203948a.js +1 -0
- package/dist/client/scripts/{bd3f9d82a1477201aa9f.js → a3d97445918a3c42e99c.js} +1 -1
- package/dist/client/scripts/b11d1eceb7ff79ec07ab.js +1 -0
- package/dist/client/scripts/b9f6ea7215a27733a538.js +1 -0
- package/dist/client/scripts/{a0d9da6cb392dd6b40ba.js → ba6b6598cfe4ecfb57dc.js} +1 -1
- package/dist/client/scripts/{1b42fdcde5894709756f.js → bb749e497dd321be22b2.js} +1 -1
- package/dist/client/scripts/{52662e6a023b9188638c.js → c3d4ec66756e4129d0f8.js} +1 -1
- package/dist/client/scripts/{e0ae8b83000fcc6737de.js → c62b86e08db339ca81e9.js} +1 -1
- package/dist/client/scripts/{9331fa27b0351a6f713d.js → cda287abc0b20dd7b173.js} +1 -1
- package/dist/client/scripts/cdec51c82e06e970a4e5.js +1 -0
- package/dist/client/scripts/{660f7611714f9e5f55a4.js → d60d34563845b4e3b0e1.js} +1 -1
- package/dist/client/scripts/d68db39a8a9f9804b76a.js +1 -0
- package/dist/client/scripts/{2f6fc7f2ba1e17f1bbb7.js → d7e448ca540838089928.js} +1 -1
- package/dist/client/scripts/{cf2f69aa3b38c67a9189.js → d933c1d73249c683facc.js} +1 -1
- package/dist/client/scripts/{73612ea615858553186c.js → dc137fa0d8f6859d03de.js} +1 -1
- package/dist/client/scripts/{5167fbb319d59be5e57a.js → e4da1861edcade544efd.js} +1 -1
- package/dist/client/scripts/{befa3e741ff81496eec4.js → eefeba4668c080a4c7ab.js} +1 -1
- package/dist/client/scripts/{c3ae7025ff3e20718dbf.js → f23b7648861d2ea2b336.js} +1 -1
- package/dist/client/scripts/{9c4f9f07ee5bcc3aa4fe.js → f6cf463750508ad546f4.js} +1 -1
- package/dist/client/scripts/f965d2d846f085ec92df.js +1 -0
- package/dist/client/scripts/{6d01bc1d4a8e8665c5e6.js → fad5b818691cb299bb12.js} +1 -1
- package/dist/client/scripts/{ede74e1e20a69dbed972.js → fd37540dbdae3dac18e6.js} +1 -1
- package/dist/client/scripts/{9b322136977b7486f957.js → fe5df9446716d7ef1bc4.js} +1 -1
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +15 -14
- package/dist/client/scripts/14966203aa087e0d890b.js +0 -1
- package/dist/client/scripts/1d5d22d0341a85b857c5.js +0 -1
- package/dist/client/scripts/200d2cde6d5cb6cfa138.js +0 -1
- package/dist/client/scripts/2e52ba9d0bfbde183a50.js +0 -1
- package/dist/client/scripts/304017f90014d7fd41d8.js +0 -1
- package/dist/client/scripts/3127397da548121ebe53.js +0 -1
- package/dist/client/scripts/41b10fd4d79aba731582.js +0 -1
- package/dist/client/scripts/4abfb5594403764af79a.js +0 -1
- package/dist/client/scripts/5179fb97d117855cdcfa.js +0 -1
- package/dist/client/scripts/6a0944d2f4a345e724e3.js +0 -1
- package/dist/client/scripts/7688c5059be433df92cd.js +0 -1
- package/dist/client/scripts/938d65b2d5b507b521fc.js +0 -1
- package/dist/client/scripts/a942eb63d464cf141793.js +0 -1
- package/dist/client/scripts/dafa07d2bf4931f97760.js +0 -1
- package/dist/client/scripts/e467fe0ad07440af86c3.js +0 -1
- package/dist/client/scripts/eec8430ecec17c972efa.js +0 -1
- /package/dist/client/scripts/{6eb7c7f410527693630a.js → 3c9d8724e602abc493bb.js} +0 -0
- /package/dist/client/scripts/{a08f97460464cd02e2bc.js → 4ab343e48cbac5abc120.js} +0 -0
- /package/dist/client/scripts/{ddffaafa3150beba849f.js → c0e089a23c8a29fe890c.js} +0 -0
- /package/dist/client/scripts/{6f1f767323753612a660.js → c788c99f37db9b766c04.js} +0 -0
- /package/dist/client/styles/{938d65b2d5b507b521fc.css → 00c35b76f46770795fc6.css} +0 -0
- /package/dist/client/styles/{1d5d22d0341a85b857c5.css → 00dc7f48caf1871fb08a.css} +0 -0
- /package/dist/client/styles/{63b16cfbb76b12dfaba0.css → 09ea4b96c3d1810c42e0.css} +0 -0
- /package/dist/client/styles/{9b7ac4c1f43e93dc054a.css → 125faa00007f84861a36.css} +0 -0
- /package/dist/client/styles/{cd6bf03984d2a9d3cdc1.css → 1515e9031bcc93a44eb5.css} +0 -0
- /package/dist/client/styles/{33c095fb4e5483f6ac45.css → 15a469f546bf1f0466e1.css} +0 -0
- /package/dist/client/styles/{e20a9209674454bca4b8.css → 1a47d223d9653116cfe1.css} +0 -0
- /package/dist/client/styles/{72b36dc176525288458f.css → 1e2f1b54799d23569aae.css} +0 -0
- /package/dist/client/styles/{3aa09060db96cf617974.css → 1ebabe5dddf279c9bb49.css} +0 -0
- /package/dist/client/styles/{859fc7fba56fc8b69fb6.css → 26c65af57544300026ba.css} +0 -0
- /package/dist/client/styles/{06eb9b6db3558ccdbb13.css → 282efcfb2f178a4383ec.css} +0 -0
- /package/dist/client/styles/{6ec3cae4b98319dc0b2d.css → 32e3c5668117ff8d2d61.css} +0 -0
- /package/dist/client/styles/{528a83c665e8f0fa6fd9.css → 3773a039f295995a52d4.css} +0 -0
- /package/dist/client/styles/{13cac5666bc0d3a3380f.css → 39f361d27f6fa706f241.css} +0 -0
- /package/dist/client/styles/{70b0cbc344de6ab63f1b.css → 3cf4d6db3928f572fac7.css} +0 -0
- /package/dist/client/styles/{6c82733bb7ab9dfe99b2.css → 3f1e409c94f0c2790d29.css} +0 -0
- /package/dist/client/styles/{b41f1cc1bef2139dcc63.css → 422e1b5afec296ba8086.css} +0 -0
- /package/dist/client/styles/{7b3c28e355c2c32098f0.css → 51e47bfcaf13506c62ba.css} +0 -0
- /package/dist/client/styles/{2ce6efa1425356cd42b9.css → 57ec12111c056f9f4b71.css} +0 -0
- /package/dist/client/styles/{14966203aa087e0d890b.css → 68f7c6031293430987cd.css} +0 -0
- /package/dist/client/styles/{f91c17b1589ff6358911.css → 6ffcd1cefd31256b1b08.css} +0 -0
- /package/dist/client/styles/{1ad0ed977002cd7ff07d.css → 73622966d3deb27c335d.css} +0 -0
- /package/dist/client/styles/{2e52ba9d0bfbde183a50.css → 7e47b5feb567fd1dd8c4.css} +0 -0
- /package/dist/client/styles/{7688c5059be433df92cd.css → 7f4469da203795a6f47b.css} +0 -0
- /package/dist/client/styles/{16a02b67526c468f66d2.css → 803276655eb9ed5e9d3a.css} +0 -0
- /package/dist/client/styles/{b7a86cfe994d3608dd57.css → 864121788b8138ca2c67.css} +0 -0
- /package/dist/client/styles/{e467fe0ad07440af86c3.css → 88ab4561d196cb2b5551.css} +0 -0
- /package/dist/client/styles/{74b978e38ecae74c59f2.css → 898c147b72953c7d8efb.css} +0 -0
- /package/dist/client/styles/{42f7fa2d924439bb0670.css → 8990cd00d88536465193.css} +0 -0
- /package/dist/client/styles/{186ea281b77a6950098a.css → 8cbba1a2a1921bd720a1.css} +0 -0
- /package/dist/client/styles/{200d2cde6d5cb6cfa138.css → 97b115c15dff84012008.css} +0 -0
- /package/dist/client/styles/{5179fb97d117855cdcfa.css → 9a5b8573e2af7b27fdeb.css} +0 -0
- /package/dist/client/styles/{3043520e675319d3972e.css → 9e0532d92a4aec9a4047.css} +0 -0
- /package/dist/client/styles/{41b10fd4d79aba731582.css → a2b56b4b73a95203948a.css} +0 -0
- /package/dist/client/styles/{bd3f9d82a1477201aa9f.css → a3d97445918a3c42e99c.css} +0 -0
- /package/dist/client/styles/{304017f90014d7fd41d8.css → b11d1eceb7ff79ec07ab.css} +0 -0
- /package/dist/client/styles/{4abfb5594403764af79a.css → b9f6ea7215a27733a538.css} +0 -0
- /package/dist/client/styles/{a0d9da6cb392dd6b40ba.css → ba6b6598cfe4ecfb57dc.css} +0 -0
- /package/dist/client/styles/{3127397da548121ebe53.css → cdec51c82e06e970a4e5.css} +0 -0
- /package/dist/client/styles/{dafa07d2bf4931f97760.css → d68db39a8a9f9804b76a.css} +0 -0
- /package/dist/client/styles/{cf2f69aa3b38c67a9189.css → d933c1d73249c683facc.css} +0 -0
- /package/dist/client/styles/{5167fbb319d59be5e57a.css → e4da1861edcade544efd.css} +0 -0
- /package/dist/client/styles/{befa3e741ff81496eec4.css → eefeba4668c080a4c7ab.css} +0 -0
- /package/dist/client/styles/{c3ae7025ff3e20718dbf.css → f23b7648861d2ea2b336.css} +0 -0
- /package/dist/client/styles/{eec8430ecec17c972efa.css → f965d2d846f085ec92df.css} +0 -0
- /package/dist/client/styles/{6d01bc1d4a8e8665c5e6.css → fad5b818691cb299bb12.css} +0 -0
- /package/dist/ssr/styles/{3dcebd84d83bf06ba20a.css → 854c3269072e84c1aae9.css} +0 -0
|
@@ -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.VsLinkListItem=e():t.VsLinkListItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2289],{66009:function(){},36760:function(t,e,n){"use strict";var i=n(4942),r=n(71609),o=n(67476),s=n(72956),u=n.n(s);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.Z={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink:r.default},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:function(t){return t.match(/(default|external|internal|download|video)/)}},variant:{type:String,default:"primary",validator:function(t){return t.match(/(primary|on-dark)/)}},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},computed:c(c({formattedVideoDuration:function(){if(this.videoDetails){var t="".concat(this.videoDetails.videoFullDuration.seconds);return 1===t.length&&(t="0".concat(t)),"".concat(this.videoDetails.videoFullDuration.minutes,":").concat(t)}return""}},(0,o.rn)(u(),{videoDetails:function(t){return t.getVideo(this.videoId)}})),{},{videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0}}),methods:{emitShowModal:function(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},45879:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var i=n(66252),r=n(3577),o={class:"link-list-item"};function s(t,e,n,s,u,a){var c=(0,i.up)("VsLink");return(0,i.wg)(),(0,i.iD)("li",o,[(0,i.Wm)(c,{href:n.href,type:"video"==n.type?"default":n.type,variant:n.variant,role:"video"==n.type?"button":null,onClick:a.emitShowModal},{default:(0,i.w5)((function(){return[(0,i.WI)(t.$slots,"default"),"video"==n.type&&a.videoLoaded?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Uk)(" | "+(0,r.toDisplayString)(n.videoDescriptor)+" "+(0,r.toDisplayString)(a.formattedVideoDuration),1)],64)):(0,i.kq)("",!0)]})),_:3},8,["href","type","variant","role","onClick"])])}},17167:function(t,e,n){"use strict";var i=n(93379),r=n.n(i),o=n(7795),s=n.n(o),u=n(90569),a=n.n(u),c=n(3565),l=n.n(c),d=n(19216),f=n.n(d),p=n(44589),v=n.n(p),y=n(66009),m=n.n(y),h={};h.styleTagTransform=v(),h.setAttributes=l(),h.insert=a().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=f(),r()(m(),h),m()&&m().locals&&m().locals},97410:function(t,e,n){"use strict";n.r(e);var i=n(24433),r=n(7211);n(43740);const o=(0,n(83744).Z)(r.Z,[["render",i.s]]);e.default=o},7211:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(36760)},24433:function(t,e,n){"use strict";n.d(e,{s:function(){return i.s}});var i=n(45879)},43740:function(t,e,n){"use strict";n(17167)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,7370,5730,976,1609,2956],(function(){return 97410,t(t.s=97410)})),t.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsItineraryDay=n():t.VsItineraryDay=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1350],{62181:function(){},3632:function(t,n,e){"use strict";var r=e(81779),i=e(17370),s=e(96224);n.Z={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:r.xB,VsRow:r.ou,VsCol:r.hY,VsIcon:i.default,VsAccordionItem:s.default},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data:function(){return{show:this.defaultShow}}}},28798:function(t,n,e){"use strict";e.d(n,{s:function(){return y}});var r=e(66252),i=e(3577),s={class:"vs-itinerary-day"},a={class:"vs-itinerary-day__header"},o={class:"vs-itinerary-day__title vs-heading vs-heading--style-level-2 d-inline-block"},u={class:"vs-itinerary-day__sub-heading"},l=["id"],d={class:"vs-itinerary-day__intro-content"},c={class:"list-unstyled"};function y(t,n,e,y,f,p){var _=(0,r.up)("VsIcon"),v=(0,r.up)("VsAccordionItem"),m=(0,r.up)("VsCol"),b=(0,r.up)("VsRow"),g=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("div",s,[(0,r.Wm)(g,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(b,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(m,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(v,{"open-by-default":f.show,"control-id":"itinerary-day-"+e.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:(0,r.w5)((function(){return[(0,r._)("span",a,[(0,r._)("span",o,(0,i.toDisplayString)(e.dayLabel)+" "+(0,i.toDisplayString)(e.dayNumber),1),(0,r._)("span",u,(0,i.toDisplayString)(e.dayTitle),1)])]})),"icon-open":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",orientation:"down",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),"icon-closed":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),default:(0,r.w5)((function(){return[(0,r._)("div",{id:"dayPanel_"+e.dayNumber,class:"vs-itinerary-day__panel"},[(0,r._)("div",d,[(0,r.WI)(t.$slots,"day-transport"),(0,r.WI)(t.$slots,"day-introduction")]),(0,r._)("ul",c,[(0,r.WI)(t.$slots,"stops")])],8,l)]})),_:3},8,["open-by-default","control-id"])]})),_:3})]})),_:3})]})),_:3})])}},72728:function(t,n,e){"use strict";var r=e(93379),i=e.n(r),s=e(7795),a=e.n(s),o=e(90569),u=e.n(o),l=e(3565),d=e.n(l),c=e(19216),y=e.n(c),f=e(44589),p=e.n(f),_=e(62181),v=e.n(_),m={};m.styleTagTransform=p(),m.setAttributes=d(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=y(),i()(v(),m),v()&&v().locals&&v().locals},32780:function(t,n,e){"use strict";e.r(n);var r=e(2925),i=e(14756);e(21095);const s=(0,e(83744).Z)(i.Z,[["render",r.s]]);n.default=s},14756:function(t,n,e){"use strict";e.d(n,{Z:function(){return r.Z}});var r=e(3632)},2925:function(t,n,e){"use strict";e.d(n,{s:function(){return r.s}});var r=e(28798)},21095:function(t,n,e){"use strict";e(72728)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,3366,2978,6224],(function(){return 32780,t(t.s=32780)})),t.O()}])}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsItineraryDay=n():t.VsItineraryDay=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1350],{62181:function(){},3632:function(t,n,e){"use strict";var r=e(81779),i=e(17370),s=e(96224);n.Z={name:"VsItineraryDay",status:"prototype",release:"0.0.1",components:{VsContainer:r.xB,VsRow:r.ou,VsCol:r.hY,VsIcon:i.default,VsAccordionItem:s.default},props:{defaultShow:{type:Boolean,default:!0},dayLabel:{type:String,required:!0},dayNumber:{type:String,required:!0},dayTitle:{type:String,required:!0}},data:function(){return{show:this.defaultShow}}}},28798:function(t,n,e){"use strict";e.d(n,{s:function(){return y}});var r=e(66252),i=e(3577),s={class:"vs-itinerary-day"},a={class:"vs-itinerary-day__header"},o={class:"vs-itinerary-day__title vs-heading vs-heading--style-level-2 d-inline-block"},u={class:"vs-itinerary-day__sub-heading"},l=["id"],d={class:"vs-itinerary-day__intro-content"},c={class:"list-unstyled"};function y(t,n,e,y,f,p){var _=(0,r.up)("VsIcon"),v=(0,r.up)("VsAccordionItem"),m=(0,r.up)("VsCol"),b=(0,r.up)("VsRow"),g=(0,r.up)("VsContainer");return(0,r.wg)(),(0,r.iD)("div",s,[(0,r.Wm)(g,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(b,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(m,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(v,{"open-by-default":f.show,"control-id":"itinerary-day-"+e.dayNumber,variant:"transparent","item-break-point":"lg",class:"vs-itinerary-day__list-item"},{title:(0,r.w5)((function(){return[(0,r._)("span",a,[(0,r._)("span",o,(0,i.toDisplayString)(e.dayLabel)+" "+(0,i.toDisplayString)(e.dayNumber),1),(0,r._)("span",u,(0,i.toDisplayString)(e.dayTitle),1)])]})),"icon-open":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",orientation:"down",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),"icon-closed":(0,r.w5)((function(){return[(0,r.Wm)(_,{name:"chevron",variant:"dark",size:"xs",padding:3,class:"vs-itinerary-day__toggle-button"})]})),default:(0,r.w5)((function(){return[(0,r._)("div",{id:"dayPanel_"+e.dayNumber,class:"vs-itinerary-day__panel"},[(0,r._)("div",d,[(0,r.WI)(t.$slots,"day-transport"),(0,r.WI)(t.$slots,"day-introduction")]),(0,r._)("ul",c,[(0,r.WI)(t.$slots,"stops")])],8,l)]})),_:3},8,["open-by-default","control-id"])]})),_:3})]})),_:3})]})),_:3})])}},72728:function(t,n,e){"use strict";var r=e(93379),i=e.n(r),s=e(7795),a=e.n(s),o=e(90569),u=e.n(o),l=e(3565),d=e.n(l),c=e(19216),y=e.n(c),f=e(44589),p=e.n(f),_=e(62181),v=e.n(_),m={};m.styleTagTransform=p(),m.setAttributes=d(),m.insert=u().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=y(),i()(v(),m),v()&&v().locals&&v().locals},32780:function(t,n,e){"use strict";e.r(n);var r=e(2925),i=e(14756);e(21095);const s=(0,e(83744).Z)(i.Z,[["render",r.s]]);n.default=s},14756:function(t,n,e){"use strict";e.d(n,{Z:function(){return r.Z}});var r=e(3632)},2925:function(t,n,e){"use strict";e.d(n,{s:function(){return r.s}});var r=e(28798)},21095:function(t,n,e){"use strict";e(72728)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,7581,4186,1321,1779,3366,2978,6224],(function(){return 32780,t(t.s=32780)})),t.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMainMapWrapper=t():e.VsMainMapWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4373],{1409:function(){},38822:function(e,t,s){"use strict";var a=s(4942),n=s(81779),i=s(83918),o=s(22048),r=s(98869),l=s(5274),c=s(15730),u=s(67476),p=s(66072),d=s(14169),g=s(84143);function f(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 h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){(0,a.Z)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var m=null;t.Z={name:"VsMainMapWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsMap:d.default,VsButton:i.default,VsMainMapWrapperPanel:g.default,VsButtonToggleGroup:r.default,VsWarning:o.default},provide:function(){return{filters:this.filters,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:"",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:h(h({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.rn)(p.Z,{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;m=(0,p.Z)((0,c.Z)()),this.selectedToggle=this.initialSelected,m.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){m.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(m.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&&(m.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"}}}},96462: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,r){var l=(0,a.up)("VsMainMapWrapperPanel"),c=(0,a.up)("VsButton"),u=(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",r.panelDisplayClass]),"data-test":"vs-main-map-wrapper__side-panel"},[(0,a.Wm)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.w5)((function(){return[(0,a.WI)(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",r.mapDisplayClass])},[(0,a.Wm)(c,{class:"vs-main-map-wrapper__map-toggle",size:"sm",onClick:r.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)(u,{"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: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},{"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)(r.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.toggleData.length>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:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.kq)("",!0)],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})}},32542:function(e,t,s){"use strict";var a=s(93379),n=s.n(a),i=s(7795),o=s.n(i),r=s(90569),l=s.n(r),c=s(3565),u=s.n(c),p=s(19216),d=s.n(p),g=s(44589),f=s.n(g),h=s(1409),m=s.n(h),y={};y.styleTagTransform=f(),y.setAttributes=u(),y.insert=l().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(96462),n=s(27492);s(90525);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)},90525:function(e,t,s){"use strict";s(32542)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,8764,5274,5924,7370,5730,976,3918,7581,4186,1321,1779,3366,2048,2015,6573,6072,6145,1674,9848,4613,4173,5834,6520,175,3709,4169,4143,8869],(function(){return 44152,e(e.s=44152)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4169],{41688:function(){},35097:function(e,t,o){"use strict";var a=o(4942),s=o(22048),i=o(16145),n=o(83709),r=o(66252),p=o(49963),d=o(15730),l=o(67476),u=o(66072),c=o(6158),m=o.n(c),h=o(29319),g=o.n(h),f=o(24173);function y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,a)}return o}var v=null;t.Z={name:"VsMap",status:"prototype",release:"0.0.1",components:{VsWarning:s.default,VsLoading:i.default},props:{overviewMapLatitude:{type:String,default:"57.81"},overviewMapLongitude:{type:String,default:"-5.51748"},overviewMapZoom:{type:String,default:"5"},mapId:{type:String,required:!0},isVisible:{type:Boolean,required:!0},places:{type:Array,required:!0},fitToMarkers:{type:Boolean,default:!1},showPolygons:{type:Boolean,default:!1},selectedItem:{type:String,default:null},boundsData:{type:Object,default:function(){}},showInfoMessage:{type:Boolean,default:null},resetZoom:{type:Boolean,default:!1}},data:function(){return{isDesktop:!1,geojsonData:{type:"FeatureCollection",features:[]},polygons:{type:"FeatureCollection",features:[]},multiPolygons:[],mapbox:{map:null,bounds:null,rotation:0,config:{container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",pitchWithRotate:!1,dragRotate:!1}},markers:[],popup:null,hoveredStateId:null,activeStateId:null,showMapMessage:!0,isLoading:!0,showZoomMessage:null}},computed:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?y(Object(o),!0).forEach((function(t){(0,a.Z)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({getZoom:function(){return this.mapbox.map?this.mapbox.map.getZoom():null}},(0,l.rn)(u.Z,{activeMarkerPostion:function(e){return this.mapbox.map?e.activeMarkerPos:null},highlightedPlace:function(e){return this.mapbox.map?e.getHoveredStop(this.mapId):null}})),watch:{isVisible:function(e){var t=this;e&&null!==this.mapbox.map&&setTimeout((function(){t.mapbox.map.resize()}),20)},places:{handler:function(){this.geojsonData.features=[],this.addMapFeatures(),this.addMapMarkers()},deep:!0},showPolygons:function(e){!0===e?this.showMapPolygons():this.hideMapPolygons()},highlightedPlace:function(e){0===e.length?this.removeHoveredPolygon():this.addHoveredPolygon(e)},selectedItem:function(e){var t=this.polygons.features.filter((function(t){return t.properties.id===e}));e?t.length>0&&this.addActivePolygon(e):this.removeActivePolygon()},activeMarkerPostion:function(e){this.checkPointIsVisible(e)||this.centreMapOnPoint(e)},showInfoMessage:function(e){this.showMapMessage=!!e},resetZoom:function(e){e&&(this.mapbox.map.fitBounds(this.calculateBoundingBox()),this.$emit("zoom-reset"),this.showInfoMessage&&(this.showMapMessage=!0))}},mounted:function(){var e=this;v=(0,u.Z)((0,d.Z)()),this.lazyloadMapComponent(),this.isTablet=window.innerWidth>=768,window.addEventListener("resize",this.onResize),window.addEventListener("DOMContentLoaded",(function(){n.Z.init({div:e.mapId})}))},methods:{addMap:function(){var e=this,t=this.calculateBoundingBox();this.mapbox.config.container=this.$refs.mapbox,this.mapbox.map=new(m().Map)({container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",bounds:t,maxZoom:18,minZoom:4,trackResize:!0}),this.mapbox.map.scrollZoom.disable(),this.mapbox.map.on("rotate",(function(){e.mapbox.rotation=e.mapbox.map.transform.angle})),this.mapbox.map.resize(),this.mapbox.map.on("load",(function(){e.addMapPolygons(),e.showMapMessage=!1,e.isLoading=!1,e.$emit("map-ready",!0),e.mapbox.map.boxZoom.enable()})),this.mapbox.map.on("zoomend",(function(){4===e.mapbox.map.getZoom()?(e.showZoomMessage="too-far",e.showMapMessage=!0):18===e.mapbox.map.getZoom()?(e.showZoomMessage="too-close",e.showMapMessage=!0):e.showInfoMessage||(e.showZoomMessage=null,e.showMapMessage=!1)}))},addMapControls:function(){var e=new(m().NavigationControl);this.mapbox.map.addControl(e,"top-right"),this.mapbox.map.addControl(new(m().FullscreenControl))},addMapFeatures:function(){var e=this;this.places.map((function(t){if(void 0!==t.geometry){var o=[t.geometry.coordinates[0],t.geometry.coordinates[1]];return"Polygon"===t.geometry.type&&(o=[t.geometry.coordinates[0]]),"MultiPolygon"===t.geometry.type&&(o=[t.geometry.coordinates]),e.geojsonData.features.push({type:"Feature",geometry:{type:t.geometry.type,coordinates:o},properties:{title:t.properties.title,imageSrc:t.image,type:void 0!==t.properties.category?t.properties.category.id:"",id:t.properties.id},id:t.properties.id})}return!1}))},addMapMarkers:function(){var e=this,t=0;this.initialLoad&&(t=1e3),setTimeout((function(){if(null!==e.markers){for(var t=e.markers.length-1;t>=0;t--)e.markers[t].remove();e.markers=[]}e.geojsonData.features.forEach((function(t){if("Point"===t.geometry.type){var o=(0,r.h)(f.default,{feature:t,mapId:e.mapId,onShowDetail:function(t){e.$emit("showDetail",t)},onSetCategory:function(t){e.$emit("setCategory",t)}}),a=document.createElement("div");e.$refs.mapboxOuter.appendChild(a),(0,p.render)(o,a);var s=new(m().Marker)(a.children[0]).setLngLat(t.geometry.coordinates).addTo(e.mapbox.map);e.markers.push(s),a.remove()}}))}),t)},hideMapPolygons:function(){this.mapbox.map.setLayoutProperty("regions-fills","visibility","none"),this.mapbox.map.setLayoutProperty("regions-borders","visibility","none")},showMapPolygons:function(){this.mapbox.map.setLayoutProperty("regions-fills","visibility","visible"),this.mapbox.map.setLayoutProperty("regions-borders","visibility","visible")},addMapPolygons:function(){var e=this;this.geojsonData.features.forEach((function(t){"Polygon"===t.geometry.type?e.polygons.features.includes(t.properties.id)||e.polygons.features.push(t):"MultiPolygon"===t.geometry.type&&(e.polygons.features.includes(t.properties.id)||e.multiPolygons.push(t))})),this.multiPolygons.forEach((function(t){var o=t.properties;t.geometry.coordinates[0].forEach((function(t){e.polygons.features.push({geometry:{type:"Polygon",coordinates:t},id:o.id,properties:{id:o.id,imageSrc:o.imageSrc,title:o.title,type:o.type},type:"Feature"})}))})),this.mapbox.map.addSource("regions",{type:"geojson",data:this.polygons,promoteId:"id"}),this.mapbox.map.addLayer({id:"regions-fills",type:"fill",source:"regions",layout:{},paint:{"fill-color":["case",["==",["feature-state","interaction-state"],"hover"],"rgba(173,14,110,0.698)",["==",["feature-state","interaction-state"],"active"],"rgba(173,14,110,0.533)","#A5A5A5"],"fill-opacity":.8}}),this.mapbox.map.addLayer({id:"regions-borders",type:"line",source:"regions",layout:{},paint:{"line-color":"#fff","line-width":1}}),this.hideMapPolygons(),this.mapbox.map.on("mousemove","regions-fills",(function(t){t.features.length>0&&(e.addMapPopup(t),e.removeHoveredPolygon(),e.addHoveredPolygon(t.features[0].id))})),this.mapbox.map.on("mouseleave","regions-fills",(function(){e.removeMapPopup(),e.removeHoveredPolygon()})),this.mapbox.map.on("click","regions-fills",(function(t){e.removeActivePolygon(),e.addActivePolygon(t.features[0].id)}))},removeActivePolygon:function(){this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":""}),this.activeStateId=null},addActivePolygon:function(e){this.activeStateId=e,this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":"active"}),v.setActivePlace({mapId:this.mapId,placeId:e}),this.$emit("showDetail",e),this.$emit("setCategory","regions")},removeHoveredPolygon:function(){if(this.hoveredStateId){var e="";this.hoveredStateId===this.activeStateId&&(e="active"),this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":e})}v.setHoveredPlace({mapId:this.mapId,hoveredId:""}),this.hoveredStateId=null},addHoveredPolygon:function(e){this.hoveredStateId=e,this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":"hover"}),v.setHoveredPlace({mapId:this.mapId,hoveredId:e})},addMapPopup:function(e){var t,o,a,s=this,i=function e(t){"Escape"===t.key&&(s.removeMapPopup(),document.body.removeEventListener("keyup",e))},n=(t=e.features[0].geometry.coordinates,o=[],a=[],t[0].forEach((function(e){o.push(e[1]),a.push(e[0])})),{lat:(Math.min.apply(Math,o)+Math.max.apply(Math,o))/2,lng:(Math.min.apply(Math,a)+Math.max.apply(Math,a))/2});e.features[0].id!==this.hoveredStateId&&e.features[0].id!==this.activeStateId&&(this.removeMapPopup(),document.body.removeEventListener("keyup",i),this.popup=(new(m().Popup)).setLngLat(n).setHTML(e.features[0].properties.title).addTo(this.mapbox.map)),document.body.addEventListener("keyup",i)},removeMapPopup:function(){this.popup&&(this.popup.remove(),this.popup=null)},fitToBounds:function(){this.mapbox.map.fitBounds(g()(this.geojsonData),{padding:{top:100,bottom:100,left:100,right:100}})},initialiseMapComponent:function(){this.addMap(),this.addMapControls(),this.places.length&&this.addMapFeatures(),this.geojsonData.features.length&&(this.addMapMarkers(),this.fitToMarkers&&this.fitToBounds())},lazyloadMapComponent:function(){var e=this;m().supported({failIfMajorPerformanceCaveat:!0}),"IntersectionObserver"in window?(this.observer=new IntersectionObserver((function(t){t[0].intersectionRatio>0&&(e.observer.unobserve(e.$el),e.initialiseMapComponent())})),this.observer.observe(this.$el)):this.initialiseMapComponent()},onResize:function(){this.isTablet=window.innerWidth>=768},getBoundsFromPolygon:function(){var e=this.boundsData.coordinates[0];return e.reduce((function(e,t){return e.extend(t)}),new(m().LngLatBounds)(e[0],e[0]))},checkPointIsVisible:function(){return this.mapbox.map.getBounds().contains(this.activeMarkerPostion)},centreMapOnPoint:function(e){this.mapbox.map.flyTo({center:e})},calculateBoundingBox:function(){var e;if(void 0===this.boundsData||"undefined"===this.boundsData.type)e=[[-7.555827,55.308836],[-.778285,60.830894]];else if("bounds"===this.boundsData.type){var t=new(m().LngLat)(this.boundsData.coordinates[1][0],this.boundsData.coordinates[1][1]),o=new(m().LngLat)(this.boundsData.coordinates[0][0],this.boundsData.coordinates[0][1]);e=new(m().LngLatBounds)(t,o)}else e="Polygon"===this.boundsData.type?this.getBoundsFromPolygon():[[-7.555827,55.308836],[-.778285,60.830894]];return e}}}},63868:function(e,t,o){"use strict";o.d(t,{s:function(){return l}});var a=o(66252),s=o(3577),i={class:"vs-map","data-test":"vs-map"},n={class:"vs-map__message-box"},r={class:"vs-map__message-text"},p={ref:"mapboxOuter",class:"vs-map__map-outer"},d=["id"];function l(e,t,o,l,u,c){var m=(0,a.up)("VsLoading"),h=(0,a.up)("VsWarning");return(0,a.wg)(),(0,a.iD)("div",i,[u.showMapMessage?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.normalizeClass)(["vs-map__message",u.showZoomMessage?"":"vs-map__message--with-overlay"]),"data-test":"vs-map__message"},[(0,a._)("div",n,[u.isLoading?((0,a.wg)(),(0,a.j4)(m,{key:0,class:"vs-map__loading"})):(0,a.kq)("",!0),(0,a._)("p",r,[u.isLoading?(0,a.WI)(e.$slots,"map-loading-text",{key:0}):o.showInfoMessage?(0,a.WI)(e.$slots,"info-message",{key:1}):"too-close"===u.showZoomMessage?(0,a.WI)(e.$slots,"zoom-too-close",{key:2}):"too-far"===u.showZoomMessage?(0,a.WI)(e.$slots,"zoom-too-far",{key:3}):(0,a.kq)("",!0)])])],2)):(0,a.kq)("",!0),(0,a._)("div",p,[(0,a._)("div",{id:o.mapId,class:"vs-map__map",ref:"mapbox"},null,8,d)],512),(0,a.Wm)(h,{class:"vs-map__no-js"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3})])}},32921:function(e,t,o){"use strict";var a=o(93379),s=o.n(a),i=o(7795),n=o.n(i),r=o(90569),p=o.n(r),d=o(3565),l=o.n(d),u=o(19216),c=o.n(u),m=o(44589),h=o.n(m),g=o(41688),f=o.n(g),y={};y.styleTagTransform=h(),y.setAttributes=l(),y.insert=p().bind(null,"head"),y.domAPI=n(),y.insertStyleElement=c(),s()(f(),y),f()&&f().locals&&f().locals},14169:function(e,t,o){"use strict";o.r(t);var a=o(42799),s=o(88348);o(3678);const i=(0,o(83744).Z)(s.Z,[["render",a.s]]);t.default=i},88348:function(e,t,o){"use strict";o.d(t,{Z:function(){return a.Z}});var a=o(35097)},42799:function(e,t,o){"use strict";o.d(t,{s:function(){return a.s}});var a=o(63868)},3678:function(e,t,o){"use strict";o(32921)}}]);
|
|
@@ -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.VsMegaNavListItem=e():t.VsMegaNavListItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7335],{86275:function(){},12105:function(t,e,n){"use strict";var s=n(71609),i=n(60976);e.Z={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink:s.default},mixins:[i.Z],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1},ctaLink:{type:Boolean,default:!1}},computed:{navItemClasses:function(){return{"vs-mega-nav-list-item__heading":"#"===this.href,"vs-mega-nav-list-item__link":"#"!==this.href,"vs-mega-nav-list-item__subheading-link":this.subheadingLink,"vs-mega-nav-list-item__cta-link":this.ctaLink}}}}},62115:function(t,e,n){"use strict";n.d(e,{s:function(){return a}});var s=n(66252),i=n(3577);function a(t,e,n,a,r,o){var u=(0,s.up)("VsLink");return(0,s.wg)(),(0,s.iD)("li",{class:(0,i.normalizeClass)(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[(0,s.Wm)(u,{href:n.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"default")]})),_:3},8,["href"])],2)}},17225:function(t,e,n){"use strict";var s=n(93379),i=n.n(s),a=n(7795),r=n.n(a),o=n(90569),u=n.n(o),l=n(3565),c=n.n(l),f=n(19216),m=n.n(f),d=n(44589),v=n.n(d),p=n(86275),h=n.n(p),g={};g.styleTagTransform=v(),g.setAttributes=c(),g.insert=u().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=m(),i()(h(),g),h()&&h().locals&&h().locals},38490:function(t,e,n){"use strict";n.r(e);var s=n(62115),i=n(2944);n(59376);const a=(0,n(83744).Z)(i.Z,[["render",s.s]]);e.default=a},2944:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(12105)},59376:function(t,e,n){"use strict";n(17225)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7370,5730,976,1609],(function(){return 38490,t(t.s=38490)})),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.VsMegaNavListItem=e():t.VsMegaNavListItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7335],{86275:function(){},12105:function(t,e,n){"use strict";var s=n(71609),i=n(60976);e.Z={name:"VsMegaNavListItem",status:"prototype",release:"0.1.0",components:{VsLink:s.default},mixins:[i.Z],props:{href:{type:String,default:"#"},subheadingLink:{type:Boolean,default:!1},ctaLink:{type:Boolean,default:!1}},computed:{navItemClasses:function(){return{"vs-mega-nav-list-item__heading":"#"===this.href,"vs-mega-nav-list-item__link":"#"!==this.href,"vs-mega-nav-list-item__subheading-link":this.subheadingLink,"vs-mega-nav-list-item__cta-link":this.ctaLink}}}}},62115:function(t,e,n){"use strict";n.d(e,{s:function(){return a}});var s=n(66252),i=n(3577);function a(t,e,n,a,r,o){var u=(0,s.up)("VsLink");return(0,s.wg)(),(0,s.iD)("li",{class:(0,i.normalizeClass)(["vs-mega-nav-list-item",o.navItemClasses]),"data-test":"vs-mega-nav-list-item",role:"presentation"},[(0,s.Wm)(u,{href:n.href,role:"menuitem","data-layer-value":"menuNavigationDataEvent"},{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"default")]})),_:3},8,["href"])],2)}},17225:function(t,e,n){"use strict";var s=n(93379),i=n.n(s),a=n(7795),r=n.n(a),o=n(90569),u=n.n(o),l=n(3565),c=n.n(l),f=n(19216),m=n.n(f),d=n(44589),v=n.n(d),p=n(86275),h=n.n(p),g={};g.styleTagTransform=v(),g.setAttributes=c(),g.insert=u().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=m(),i()(h(),g),h()&&h().locals&&h().locals},38490:function(t,e,n){"use strict";n.r(e);var s=n(62115),i=n(2944);n(59376);const a=(0,n(83744).Z)(i.Z,[["render",s.s]]);e.default=a},2944:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(12105)},59376:function(t,e,n){"use strict";n(17225)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,7370,5730,976,1609],(function(){return 38490,t(t.s=38490)})),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.VsTooltip=t():e.VsTooltip=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2668],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,5588],(function(){return 95588,e(e.s=95588)})),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.VsTooltip=t():e.VsTooltip=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2668],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,5588],(function(){return 95588,e(e.s=95588)})),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.VsVideoCaption=t():e.VsVideoCaption=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[677],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,2048,7447,3810,2956,5622,7859,8283],(function(){return 18283,e(e.s=18283)})),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.VsVideoCaption=t():e.VsVideoCaption=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[677],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,2048,7447,3810,2956,5622,7859,8283],(function(){return 18283,e(e.s=18283)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsMegaNavDropdown=o():e.VsMegaNavDropdown=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9016],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,6821],(function(){return 66821,e(e.s=66821)})),e.O()}])}));
|
|
1
|
+
"use strict";!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.VsMegaNavDropdown=o():e.VsMegaNavDropdown=o()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9016],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,7581,4186,1321,1779,6821],(function(){return 66821,e(e.s=66821)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsHtmlError=e():t.VsHtmlError=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5338],{2037:function(t,e,r){var n=r(60976);e.Z={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[n.Z],props:{statusCode:{type:String,required:!0}},mounted:function(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}}},60603:function(t,e,r){r.d(e,{s:function(){return s}});var n=r(66252),o={class:"d-none"};function s(t,e,r,s,u,i){return(0,n.wg)(),(0,n.iD)("span",o)}},97062:function(t,e,r){r.r(e);var n=r(81606),o=r(54135);const s=(0,r(83744).Z)(o.Z,[["render",n.s]]);e.default=s},54135:function(t,e,r){r.d(e,{Z:function(){return n.Z}});var n=r(2037)},81606:function(t,e,r){r.d(e,{s:function(){return n.s}});var n=r(60603)}},function(t){return t.O(0,[6252,3744,9963,4942,6765,7169,5730,976],(function(){return 97062,t(t.s=97062)})),t.O()}])}));
|
|
1
|
+
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsHtmlError=e():t.VsHtmlError=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5338],{2037:function(t,e,r){var n=r(60976);e.Z={name:"VsHtmlError",status:"prototype",release:"0.1.0",mixins:[n.Z],props:{statusCode:{type:String,required:!0}},mounted:function(){this.createDataLayerObject("errorDataEvent",{error_type:"System Error",error_details:this.statusCode})}}},60603:function(t,e,r){r.d(e,{s:function(){return s}});var n=r(66252),o={class:"d-none"};function s(t,e,r,s,u,i){return(0,n.wg)(),(0,n.iD)("span",o)}},97062:function(t,e,r){r.r(e);var n=r(81606),o=r(54135);const s=(0,r(83744).Z)(o.Z,[["render",n.s]]);e.default=s},54135:function(t,e,r){r.d(e,{Z:function(){return n.Z}});var n=r(2037)},81606:function(t,e,r){r.d(e,{s:function(){return n.s}});var n=r(60603)}},function(t){return t.O(0,[6252,3744,9963,4942,6765,7169,7476,5730,976],(function(){return 97062,t(t.s=97062)})),t.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4173],{4126:function(){},50662:function(e,t,r){"use strict";var i=r(4942),n=r(15730),a=r(67476),s=r(66072),o=r(26573);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=null;t.Z={name:"VsMapMarker",status:"prototype",release:"0.0.1",components:{VsMainMapWrapperIcon:o.default},props:{feature:{type:Object,required:!0},mapId:{type:String,required:!0},selectedPlace:{type:String,default:null}},emits:["showDetail","setCategory"],computed:u(u({isActive:function(){return this.activePlace===this.feature.properties.id||this.highlightedPlace===this.feature.properties.id}},(0,a.rn)(s.Z,{highlightedPlace:function(e){return e.getHoveredStop(this.mapId)},activePlace:function(e){return e.getActivePlace(this.mapId)},activeSubcat:function(e){return e.selectedSubCategory}})),{},{getMarkerIcon:function(){var e;return"null"===(e=""!==this.feature.properties.type?this.feature.properties.type:null!==this.activeSubcat?this.activeSubcat:"featured")&&(e=""),e}}),watch:{isActive:function(){return this.activePlace===this.feature.properties.id||this.highlightedPlace===this.feature.properties.id||(this.activePlace===this.feature.properties.id&&p.setActiveMarkerPos(this.feature.geometry.coordinates),!1)},activePlace:function(){this.activePlace===this.feature.properties.id&&p.setActiveMarkerPos(this.feature.geometry.coordinates)}},mounted:function(){p=(0,s.Z)((0,n.Z)())},methods:{handleClick:function(){p.setActiveMarkerPos(this.feature.geometry.coordinates),p.setActivePlace({mapId:this.mapId,placeId:this.feature.properties.id}),this.$emit("showDetail",this.feature.properties.id),this.$emit("setCategory",this.feature.properties.type)},handleHover:function(e){p.setHoveredPlace({mapId:this.mapId,hoveredId:e})}}}},78169:function(e,t,r){"use strict";r.d(t,{s:function(){return s}});var i=r(66252),n=r(3577),a=r(49963);function s(e,t,r,s,o,c){var u=(0,i.up)("VsMainMapWrapperIcon");return(0,i.wg)(),(0,i.iD)("button",{type:"button",class:(0,n.normalizeClass)(["vs-map-marker",c.isActive?"vs-map-marker--active":""]),"data-test":"vs-map-marker",variant:"transparent",onClick:t[0]||(t[0]=function(){return c.handleClick&&c.handleClick.apply(c,arguments)}),onKeydown:t[1]||(t[1]=(0,a.withKeys)((function(){return c.handleClick&&c.handleClick.apply(c,arguments)}),["enter"])),onMouseover:t[2]||(t[2]=function(e){return c.handleHover(r.feature.properties.id)}),onMouseleave:t[3]||(t[3]=function(e){return c.handleHover("")}),onFocusin:t[4]||(t[4]=function(e){return c.handleHover(r.feature.properties.id)}),onFocusout:t[5]||(t[5]=function(e){return c.handleHover("")})},[(0,i.Wm)(u,{class:"vs-main-map-category__icon",id:c.getMarkerIcon,"is-map-marker":!0},null,8,["id"])],34)}},2265:function(e,t,r){"use strict";var i=r(93379),n=r.n(i),a=r(7795),s=r.n(a),o=r(90569),c=r.n(o),u=r(3565),p=r.n(u),l=r(19216),d=r.n(l),f=r(44589),h=r.n(f),v=r(4126),m=r.n(v),y={};y.styleTagTransform=h(),y.setAttributes=p(),y.insert=c().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=d(),n()(m(),y),m()&&m().locals&&m().locals},24173:function(e,t,r){"use strict";r.r(t);var i=r(78169),n=r(40282);r(36041);const a=(0,r(83744).Z)(n.Z,[["render",i.s]]);t.default=a},40282:function(e,t,r){"use strict";r.d(t,{Z:function(){return i.Z}});var i=r(50662)},36041:function(e,t,r){"use strict";r(2265)}}]);
|
|
@@ -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.VsSiteSearch=t():e.VsSiteSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6887],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,2942],(function(){return 62942,e(e.s=62942)})),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.VsSiteSearch=t():e.VsSiteSearch=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6887],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,2942],(function(){return 62942,e(e.s=62942)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8283],{95488:function(){},95520:function(t,e,i){"use strict";var o=i(4942),n=i(83918),s=i(77859),r=i(22048),a=i(67476),c=i(72956),d=i.n(c),u=i(67106);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){(0,o.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var p=i(16033).Z.youtube;e.Z={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsToggleButton:s.default,VsWarning:r.default},mixins:[u.Z],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:function(t){return t.match(/(wide|narrow)/)}}},data:function(){return{requiredCookies:p,showErrorMessage:!1}},computed:v(v({},(0,a.rn)(d(),{videoDetails:function(t){return t.getVideo(this.videoId)}})),{},{videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!!(!this.requiredCookiesExist&&this.cookiesSet.length>0&&this.noCookiesMessage)}}),methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},10365:function(t,e,i){"use strict";i.d(e,{s:function(){return p}});var o=i(66252),n=i(3577),s={key:0,class:"vs-video-caption__buttons-container"},r={class:"container"},a={key:1,class:"vs-video-caption__details container"},c={class:"vs-video-caption__title"},d={class:"vs-video-caption__duration"},u={key:1,class:"vs-video-caption vs-video-caption--warning"},l={key:2,class:"vs-video-caption vs-video-caption--warning"},v={class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function p(t,e,i,p,g,f){var k=(0,o.up)("VsButton"),w=(0,o.up)("VsToggleButton"),y=(0,o.up)("VsWarning");return(0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[f.videoLoaded&&t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption-variants",class:(0,n.normalizeClass)(["vs-video-caption","vs-video-caption--".concat(i.variant)]),key:"video-caption"},[i.videoBtnText?((0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",r,[(0,o.Wm)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:f.emitShowModal},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.wg)(),(0,o.j4)(w,{key:0,onToggleAction:f.emitToggle},null,8,["onToggleAction"])):(0,o.kq)("",!0)])):(0,o.kq)("",!0),t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",a,[(0,o._)("p",c,[(0,o.WI)(t.$slots,"video-title")]),(0,o._)("p",d,(0,n.toDisplayString)(t.videoDetails.videoDurationMsg),1)])):(0,o.kq)("",!0)],2)):f.showCookieMessage?((0,o.wg)(),(0,o.iD)("div",u,[(0,o.Wm)(y,{size:"small",type:"cookie",transparent:!1},{"button-text":(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.cookieLinkText),1)]})),default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.noCookiesMessage)+" ",1)]})),_:1})])):"error"===t.cookiesInitStatus?((0,o.wg)(),(0,o.iD)("div",l,[(0,o.Wm)(y,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.errorMessage),1)]})),_:1})])):(0,o.kq)("",!0),(0,o._)("div",v,[(0,o.Wm)(y,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.noJsMessage),1)]})),_:1})])],2)}},41053:function(t,e,i){"use strict";var o=i(93379),n=i.n(o),s=i(7795),r=i.n(s),a=i(90569),c=i.n(a),d=i(3565),u=i.n(d),l=i(19216),v=i.n(l),p=i(44589),g=i.n(p),f=i(95488),k=i.n(f),w={};w.styleTagTransform=g(),w.setAttributes=u(),w.insert=c().bind(null,"head"),w.domAPI=r(),w.insertStyleElement=v(),n()(k(),w),k()&&k().locals&&k().locals},18283:function(t,e,i){"use strict";i.r(e);var o=i(46847),n=i(30955);i(64120);const s=(0,i(83744).Z)(n.Z,[["render",o.s]]);e.default=s},30955:function(t,e,i){"use strict";i.d(e,{Z:function(){return o.Z}});var o=i(95520)},46847:function(t,e,i){"use strict";i.d(e,{s:function(){return o.s}});var o=i(10365)},64120:function(t,e,i){"use strict";i(41053)}}]);
|
|
@@ -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.VsMainMapWrapperSubcategory=t():e.VsMainMapWrapperSubcategory=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[211],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,6573,6072,4613],(function(){return 14613,e(e.s=14613)})),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.VsMainMapWrapperSubcategory=t():e.VsMainMapWrapperSubcategory=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[211],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,6573,6072,4613],(function(){return 14613,e(e.s=14613)})),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.VsFooterSocialItem=e():t.VsFooterSocialItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9495],{31189:function(){},95096:function(t,e,n){"use strict";var o=n(71609),r=n(17370),i=n(60976);e.Z={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink:o.default,VsIcon:r.default},mixins:[i.Z],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:function(t){return t.match(/(facebook|instagram|twitter|youtube)/)}}}}},61327:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var o=n(66252),r=n(3577),i={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function s(t,e,n,s,a,c){var u=(0,o.up)("VsIcon"),l=(0,o.up)("VsLink");return(0,o.wg)(),(0,o.iD)("li",i,[(0,o.Wm)(l,{"data-test":"vs-footer-social-item__link",href:n.href,type:"external",class:(0,r.normalizeClass)(n.icon),"aria-label":n.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:(0,o.w5)((function(){return[(0,o.Wm)(u,{name:n.icon,variant:"light",size:"md"},null,8,["name"])]})),_:1},8,["href","class","aria-label"])])}},83335:function(t,e,n){"use strict";var o=n(93379),r=n.n(o),i=n(7795),s=n.n(i),a=n(90569),c=n.n(a),u=n(3565),l=n.n(u),f=n(19216),d=n.n(f),m=n(44589),p=n.n(m),v=n(31189),y=n.n(v),b={};b.styleTagTransform=p(),b.setAttributes=l(),b.insert=c().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=d(),r()(y(),b),y()&&y().locals&&y().locals},39807:function(t,e,n){"use strict";n.r(e);var o=n(74801),r=n(41369);n(75659);const i=(0,n(83744).Z)(r.Z,[["render",o.s]]);e.default=i},41369:function(t,e,n){"use strict";n.d(e,{Z:function(){return o.Z}});var o=n(95096)},74801:function(t,e,n){"use strict";n.d(e,{s:function(){return o.s}});var o=n(61327)},75659:function(t,e,n){"use strict";n(83335)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7370,5730,976,1609],(function(){return 39807,t(t.s=39807)})),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.VsFooterSocialItem=e():t.VsFooterSocialItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9495],{31189:function(){},95096:function(t,e,n){"use strict";var o=n(71609),r=n(17370),i=n(60976);e.Z={name:"VsFooterSocialItem",status:"prototype",release:"0.0.1",components:{VsLink:o.default,VsIcon:r.default},mixins:[i.Z],props:{href:{type:String,required:!0},icon:{type:String,required:!0,validator:function(t){return t.match(/(facebook|instagram|twitter|youtube)/)}}}}},61327:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var o=n(66252),r=n(3577),i={class:"vs-footer-social-item","data-test":"vs-footer-social-item"};function s(t,e,n,s,a,c){var u=(0,o.up)("VsIcon"),l=(0,o.up)("VsLink");return(0,o.wg)(),(0,o.iD)("li",i,[(0,o.Wm)(l,{"data-test":"vs-footer-social-item__link",href:n.href,type:"external",class:(0,r.normalizeClass)(n.icon),"aria-label":n.icon,"data-layer-value":"socialMediaExternalLinkDataEvent"},{default:(0,o.w5)((function(){return[(0,o.Wm)(u,{name:n.icon,variant:"light",size:"md"},null,8,["name"])]})),_:1},8,["href","class","aria-label"])])}},83335:function(t,e,n){"use strict";var o=n(93379),r=n.n(o),i=n(7795),s=n.n(i),a=n(90569),c=n.n(a),u=n(3565),l=n.n(u),f=n(19216),d=n.n(f),m=n(44589),p=n.n(m),v=n(31189),y=n.n(v),b={};b.styleTagTransform=p(),b.setAttributes=l(),b.insert=c().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=d(),r()(y(),b),y()&&y().locals&&y().locals},39807:function(t,e,n){"use strict";n.r(e);var o=n(74801),r=n(41369);n(75659);const i=(0,n(83744).Z)(r.Z,[["render",o.s]]);e.default=i},41369:function(t,e,n){"use strict";n.d(e,{Z:function(){return o.Z}});var o=n(95096)},74801:function(t,e,n){"use strict";n.d(e,{s:function(){return o.s}});var o=n(61327)},75659:function(t,e,n){"use strict";n(83335)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,7370,5730,976,1609],(function(){return 39807,t(t.s=39807)})),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.VsMainMapWrapperCategory=t():e.VsMainMapWrapperCategory=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5096],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,6573,1674],(function(){return 81674,e(e.s=81674)})),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.VsMainMapWrapperCategory=t():e.VsMainMapWrapperCategory=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5096],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,6573,1674],(function(){return 81674,e(e.s=81674)})),e.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.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9527],{66238:function(){},57886:function(e,t,r){"use strict";var n=r(81779),o=r(44142),s=r(22048),i=r(67106),u=r(16033).Z.embed;t.Z={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsRichTextWrapper:o.default,VsWarning:s.default},mixins:[i.Z],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0}},data:function(){return{requiredCookies:this.noCookiesRequired?null:u}},computed:{showError:function(){return!this.noCookiesRequired&&(!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus)},warningText:function(){var e="";return"error"===this.cookiesInitStatus&&(e=this.errorText),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookieText),e}}}},806:function(e,t,r){"use strict";r.d(t,{s:function(){return u}});var n=r(66252),o=r(3577),s={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},i={key:"fallback"};function u(e,t,r,u,a,d){var c=(0,n.up)("VsRichTextWrapper"),p=(0,n.up)("VsCol"),l=(0,n.up)("VsWarning"),f=(0,n.up)("VsRow"),m=(0,n.up)("VsContainer");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n.Wm)(m,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(f,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(p,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:(0,n.w5)((function(){return[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!d.showError?((0,n.wg)(),(0,n.j4)(c,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"embed-intro-copy")]})),_:3})):(0,n.kq)("",!0)]})),_:3}),(0,n.Wm)(p,{cols:"12"},{default:(0,n.w5)((function(){return[(0,n._)("div",{class:(0,o.normalizeClass)(["vs-embed-wrapper__container",e.requiredCookiesExist||r.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[(0,n.WI)(e.$slots,"embed-widget")],2),d.showError?((0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(l,{type:!0===e.cookiesInitStatus?"cookie":"normal",theme:"light","data-test":"vs-embed-wrapper__error",class:"vs-embed-wrapper__error"},(0,n.Nv)({default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(d.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"embed-button-text")]})),key:"0"}]),1032,["type"])])):(0,n.kq)("",!0),(0,n.Wm)(l,{type:"normal",theme:"light","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(r.noJsText),1)]})),_:1})]})),_:3})]})),_:3})]})),_:3})])}},49658:function(e,t,r){"use strict";var n=r(93379),o=r.n(n),s=r(7795),i=r.n(s),u=r(90569),a=r.n(u),d=r(3565),c=r.n(d),p=r(19216),l=r.n(p),f=r(44589),m=r.n(f),w=r(66238),_=r.n(w),b={};b.styleTagTransform=m(),b.setAttributes=c(),b.insert=a().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=l(),o()(_(),b),_()&&_().locals&&_().locals},49818:function(e,t,r){"use strict";r.r(t);var n=r(83051),o=r(79420);r(56280);const s=(0,r(83744).Z)(o.Z,[["render",n.s]]);t.default=s},79420:function(e,t,r){"use strict";r.d(t,{Z:function(){return n.Z}});var n=r(57886)},83051:function(e,t,r){"use strict";r.d(t,{s:function(){return n.s}});var n=r(806)},56280:function(e,t,r){"use strict";r(49658)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,2048,4142,7447,3810],(function(){return 49818,e(e.s=49818)})),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.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9527],{66238:function(){},57886:function(e,t,r){"use strict";var n=r(81779),o=r(44142),s=r(22048),i=r(67106),u=r(16033).Z.embed;t.Z={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:n.xB,VsRow:n.ou,VsCol:n.hY,VsRichTextWrapper:o.default,VsWarning:s.default},mixins:[i.Z],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0}},data:function(){return{requiredCookies:this.noCookiesRequired?null:u}},computed:{showError:function(){return!this.noCookiesRequired&&(!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus)},warningText:function(){var e="";return"error"===this.cookiesInitStatus&&(e=this.errorText),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookieText),e}}}},806:function(e,t,r){"use strict";r.d(t,{s:function(){return u}});var n=r(66252),o=r(3577),s={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},i={key:"fallback"};function u(e,t,r,u,a,d){var c=(0,n.up)("VsRichTextWrapper"),p=(0,n.up)("VsCol"),l=(0,n.up)("VsWarning"),f=(0,n.up)("VsRow"),m=(0,n.up)("VsContainer");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n.Wm)(m,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(f,null,{default:(0,n.w5)((function(){return[(0,n.Wm)(p,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:(0,n.w5)((function(){return[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!d.showError?((0,n.wg)(),(0,n.j4)(c,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"embed-intro-copy")]})),_:3})):(0,n.kq)("",!0)]})),_:3}),(0,n.Wm)(p,{cols:"12"},{default:(0,n.w5)((function(){return[(0,n._)("div",{class:(0,o.normalizeClass)(["vs-embed-wrapper__container",e.requiredCookiesExist||r.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[(0,n.WI)(e.$slots,"embed-widget")],2),d.showError?((0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(l,{type:!0===e.cookiesInitStatus?"cookie":"normal",theme:"light","data-test":"vs-embed-wrapper__error",class:"vs-embed-wrapper__error"},(0,n.Nv)({default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(d.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"embed-button-text")]})),key:"0"}]),1032,["type"])])):(0,n.kq)("",!0),(0,n.Wm)(l,{type:"normal",theme:"light","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(r.noJsText),1)]})),_:1})]})),_:3})]})),_:3})]})),_:3})])}},49658:function(e,t,r){"use strict";var n=r(93379),o=r.n(n),s=r(7795),i=r.n(s),u=r(90569),a=r.n(u),d=r(3565),c=r.n(d),p=r(19216),l=r.n(p),f=r(44589),m=r.n(f),w=r(66238),_=r.n(w),b={};b.styleTagTransform=m(),b.setAttributes=c(),b.insert=a().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=l(),o()(_(),b),_()&&_().locals&&_().locals},49818:function(e,t,r){"use strict";r.r(t);var n=r(83051),o=r(79420);r(56280);const s=(0,r(83744).Z)(o.Z,[["render",n.s]]);t.default=s},79420:function(e,t,r){"use strict";r.d(t,{Z:function(){return n.Z}});var n=r(57886)},83051:function(e,t,r){"use strict";r.d(t,{s:function(){return n.s}});var n=r(806)},56280:function(e,t,r){"use strict";r(49658)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,7581,4186,1321,1779,2048,4142,7447,3810],(function(){return 49818,e(e.s=49818)})),e.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.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7444],{38574:function(){},89588:function(e,t,n){"use strict";var o=n(83918),r=n(73366),s=n(61861),i=n(81779),a=n(92854);t.Z={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsHeading:r.default,VsModuleWrapper:s.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,renderPopover:!1}},mounted:function(){this.renderPopover=!0},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))}}}},70729:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var o=n(66252),r=n(3577),s=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,r.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,r.toDisplayString)(n.shareBtnText),1)]})),_:1},8,["id"])),!n.noJs&&u.renderPopover?((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,s.withKeys)((function(e){return c.tabBackFromHidden(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,r.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,s.withKeys)((function(e){return c.tabFromClose(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o._)("span",i,(0,r.toDisplayString)(n.closeAltText),1)]})),_:1},8,["onClick"])]})),_:3},8,["target","onShown","onHidden","onHide"])):(0,o.kq)("",!0),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,r.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)}},33340:function(e,t,n){"use strict";var o=n(93379),r=n.n(o),s=n(7795),i=n.n(s),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(38574),y=n.n(v),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),r()(y(),m),y()&&y().locals&&y().locals},64381:function(e,t,n){"use strict";n.r(t);var o=n(93067),r=n(48033);n(44537);const s=(0,n(83744).Z)(r.Z,[["render",o.s]]);t.default=s},48033:function(e,t,n){"use strict";n.d(t,{Z:function(){return o.Z}});var o=n(89588)},93067:function(e,t,n){"use strict";n.d(t,{s:function(){return o.s}});var o=n(70729)},44537:function(e,t,n){"use strict";n(33340)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,3366,4142,1861],(function(){return 64381,e(e.s=64381)})),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.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7444],{38574:function(){},89588:function(e,t,n){"use strict";var o=n(83918),r=n(73366),s=n(61861),i=n(81779),a=n(92854);t.Z={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsHeading:r.default,VsModuleWrapper:s.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,renderPopover:!1}},mounted:function(){this.renderPopover=!0},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))}}}},70729:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var o=n(66252),r=n(3577),s=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,r.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,r.toDisplayString)(n.shareBtnText),1)]})),_:1},8,["id"])),!n.noJs&&u.renderPopover?((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,s.withKeys)((function(e){return c.tabBackFromHidden(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,r.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,s.withKeys)((function(e){return c.tabFromClose(e)}),["tab"]))},{default:(0,o.w5)((function(){return[(0,o._)("span",i,(0,r.toDisplayString)(n.closeAltText),1)]})),_:1},8,["onClick"])]})),_:3},8,["target","onShown","onHidden","onHide"])):(0,o.kq)("",!0),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,r.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)}},33340:function(e,t,n){"use strict";var o=n(93379),r=n.n(o),s=n(7795),i=n.n(s),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(38574),y=n.n(v),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=u().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=d(),r()(y(),m),y()&&y().locals&&y().locals},64381:function(e,t,n){"use strict";n.r(t);var o=n(93067),r=n(48033);n(44537);const s=(0,n(83744).Z)(r.Z,[["render",o.s]]);t.default=s},48033:function(e,t,n){"use strict";n.d(t,{Z:function(){return o.Z}});var o=n(89588)},93067:function(e,t,n){"use strict";n.d(t,{s:function(){return o.s}});var o=n(70729)},44537:function(e,t,n){"use strict";n(33340)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,7581,4186,1321,1779,3366,4142,1861],(function(){return 64381,e(e.s=64381)})),e.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsMegaNavAccordionItem=n():t.VsMegaNavAccordionItem=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9113],{80968:function(){},14855:function(t,n,e){"use strict";var o=e(96224),i=e(17370),r=e(71609);n.Z={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem:o.default,VsIcon:i.default,VsLink:r.default},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:function(t){return t.match(/(1|2)/)}},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId:function(){var t=this.title.toLowerCase();return t=t.replace(/\s+/g,"-"),"vs-mega-nav-".concat(t)},accordionItemClasses:function(){return["vs-mega-nav-accordion-item--level-".concat(this.level)]}}}},39306:function(t,n,e){"use strict";e.d(n,{s:function(){return r}});var o=e(66252),i=e(3577);function r(t,n,e,r,a,c){var s=(0,o.up)("VsIcon"),u=(0,o.up)("VsLink"),d=(0,o.up)("VsAccordionItem");return(0,o.wg)(),(0,o.j4)(d,{class:(0,i.normalizeClass)(["vs-mega-nav-accordion-item",c.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":c.getUniqueId,"control-id":"vs-mega-nav-accordion-item-".concat(c.getUniqueId,"-").concat(e.controlId)},{title:(0,o.w5)((function(){return[(0,o.Uk)((0,i.toDisplayString)(e.title),1)]})),"icon-open":(0,o.w5)((function(){return[(0,o.Wm)(s,{name:"chevron",variant:"secondary",orientation:"up",size:"xs"})]})),"icon-closed":(0,o.w5)((function(){return[(0,o.Wm)(s,{name:"chevron",orientation:"down",variant:"secondary",size:"xs"})]})),default:(0,o.w5)((function(){return[e.ctaLink&&e.ctaText?((0,o.wg)(),(0,o.j4)(u,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:e.ctaLink},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,i.toDisplayString)(e.ctaText),1)]})),_:1},8,["href"])):(0,o.kq)("",!0),(0,o.WI)(t.$slots,"default")]})),_:3},8,["class","data-unique-id","control-id"])}},20264:function(t,n,e){"use strict";var o=e(93379),i=e.n(o),r=e(7795),a=e.n(r),c=e(90569),s=e.n(c),u=e(3565),d=e.n(u),l=e(19216),f=e.n(l),m=e(44589),v=e.n(m),p=e(80968),g=e.n(p),y={};y.styleTagTransform=v(),y.setAttributes=d(),y.insert=s().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(g(),y),g()&&g().locals&&g().locals},66125:function(t,n,e){"use strict";e.r(n);var o=e(39306),i=e(92879);e(95811);const r=(0,e(83744).Z)(i.Z,[["render",o.s]]);n.default=r},92879:function(t,n,e){"use strict";e.d(n,{Z:function(){return o.Z}});var o=e(14855)},95811:function(t,n,e){"use strict";e(20264)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,3366,1609,2978,6224],(function(){return 66125,t(t.s=66125)})),t.O()}])}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsMegaNavAccordionItem=n():t.VsMegaNavAccordionItem=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9113],{80968:function(){},14855:function(t,n,e){"use strict";var o=e(96224),i=e(17370),r=e(71609);n.Z={name:"VsMegaNavAccordionItem",status:"prototype",release:"0.1.0",components:{VsAccordionItem:o.default,VsIcon:i.default,VsLink:r.default},props:{controlId:{type:String,required:!0},title:{type:String,required:!0},level:{type:String,required:!0,validator:function(t){return t.match(/(1|2)/)}},ctaLink:{type:String,default:""},ctaText:{type:String,default:""}},computed:{getUniqueId:function(){var t=this.title.toLowerCase();return t=t.replace(/\s+/g,"-"),"vs-mega-nav-".concat(t)},accordionItemClasses:function(){return["vs-mega-nav-accordion-item--level-".concat(this.level)]}}}},39306:function(t,n,e){"use strict";e.d(n,{s:function(){return r}});var o=e(66252),i=e(3577);function r(t,n,e,r,a,c){var s=(0,o.up)("VsIcon"),u=(0,o.up)("VsLink"),d=(0,o.up)("VsAccordionItem");return(0,o.wg)(),(0,o.j4)(d,{class:(0,i.normalizeClass)(["vs-mega-nav-accordion-item",c.accordionItemClasses]),"data-test":"vs-mega-nav-accordion-item","data-unique-id":c.getUniqueId,"control-id":"vs-mega-nav-accordion-item-".concat(c.getUniqueId,"-").concat(e.controlId)},{title:(0,o.w5)((function(){return[(0,o.Uk)((0,i.toDisplayString)(e.title),1)]})),"icon-open":(0,o.w5)((function(){return[(0,o.Wm)(s,{name:"chevron",variant:"secondary",orientation:"up",size:"xs"})]})),"icon-closed":(0,o.w5)((function(){return[(0,o.Wm)(s,{name:"chevron",orientation:"down",variant:"secondary",size:"xs"})]})),default:(0,o.w5)((function(){return[e.ctaLink&&e.ctaText?((0,o.wg)(),(0,o.j4)(u,{key:0,class:"vs-mega-nav-accordion-item__cta-link","data-test":"vs-mega-nav-accordion-item__cta-link",href:e.ctaLink},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,i.toDisplayString)(e.ctaText),1)]})),_:1},8,["href"])):(0,o.kq)("",!0),(0,o.WI)(t.$slots,"default")]})),_:3},8,["class","data-unique-id","control-id"])}},20264:function(t,n,e){"use strict";var o=e(93379),i=e.n(o),r=e(7795),a=e.n(r),c=e(90569),s=e.n(c),u=e(3565),d=e.n(u),l=e(19216),f=e.n(l),m=e(44589),v=e.n(m),p=e(80968),g=e.n(p),y={};y.styleTagTransform=v(),y.setAttributes=d(),y.insert=s().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(g(),y),g()&&g().locals&&g().locals},66125:function(t,n,e){"use strict";e.r(n);var o=e(39306),i=e(92879);e(95811);const r=(0,e(83744).Z)(i.Z,[["render",o.s]]);n.default=r},92879:function(t,n,e){"use strict";e.d(n,{Z:function(){return o.Z}});var o=e(14855)},95811:function(t,n,e){"use strict";e(20264)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,3366,1609,2978,6224],(function(){return 66125,t(t.s=66125)})),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.VsTagManagerWrapper=t():e.VsTagManagerWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2523],{54202:function(e,t,n){var a=n(60976);t.Z={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[a.Z],props:{payload:{type:Object,default:function(){}}},mounted:function(){var e=this;this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",(function(){e.dataLayerStore.setTestRun(!0),e.dataLayerStore.setPageUrl(window.location.href)})),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload:function(e){var t=this;void 0!==e&&Object.keys(e).forEach((function(n){var a=n.replace(/-/g,"_");t.dataLayerStore.processPayload({key:a,value:e[n]})}))}}}},95563:function(e,t,n){n.d(t,{s:function(){return o}});var a=n(66252),r={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function o(e,t,n,o,s,c){return(0,a.wg)(),(0,a.iD)("span",r)}},97903:function(e,t,n){n.r(t);var a=n(87319),r=n(89150);const o=(0,n(83744).Z)(r.Z,[["render",a.s]]);t.default=o},89150:function(e,t,n){n.d(t,{Z:function(){return a.Z}});var a=n(54202)},87319:function(e,t,n){n.d(t,{s:function(){return a.s}});var a=n(95563)}},function(e){return e.O(0,[6252,3744,9963,4942,6765,7169,5730,976],(function(){return 97903,e(e.s=97903)})),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.VsTagManagerWrapper=t():e.VsTagManagerWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2523],{54202:function(e,t,n){var a=n(60976);t.Z={name:"VsTagManagerWrapper",status:"prototype",release:"0.0.1",mixins:[a.Z],props:{payload:{type:Object,default:function(){}}},mounted:function(){var e=this;this.processPayload(this.payload),document.addEventListener("DOMContentLoaded",(function(){e.dataLayerStore.setTestRun(!0),e.dataLayerStore.setPageUrl(window.location.href)})),this.createDataLayerObject("pageViewTemplateDataEvent")},methods:{processPayload:function(e){var t=this;void 0!==e&&Object.keys(e).forEach((function(n){var a=n.replace(/-/g,"_");t.dataLayerStore.processPayload({key:a,value:e[n]})}))}}}},95563:function(e,t,n){n.d(t,{s:function(){return o}});var a=n(66252),r={"data-test":"vs-tag-manager-wrapper",class:"d-none"};function o(e,t,n,o,s,c){return(0,a.wg)(),(0,a.iD)("span",r)}},97903:function(e,t,n){n.r(t);var a=n(87319),r=n(89150);const o=(0,n(83744).Z)(r.Z,[["render",a.s]]);t.default=o},89150:function(e,t,n){n.d(t,{Z:function(){return a.Z}});var a=n(54202)},87319:function(e,t,n){n.d(t,{s:function(){return a.s}});var a=n(95563)}},function(e){return e.O(0,[6252,3744,9963,4942,6765,7169,7476,5730,976],(function(){return 97903,e(e.s=97903)})),e.O()}])}));
|
|
@@ -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.VsApp=e():t.VsApp=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[208],{45987:function(){},2236:function(){},96612:function(t,e,n){"use strict";n.r(e),n.d(e,{Vue:function(){return r.w3},initApp:function(){return o},initSSRApp:function(){return i}});var r=n(78530),o=function(t){return(0,r.QB)(t)},i=function(t){var e=document.querySelector("#app-template").innerHTML;return t.template=e,(0,r.Xm)(t)}},78530:function(t,e,n){"use strict";n.d(e,{QB:function(){return v},Xm:function(){return y},w3:function(){return a}});var r=n(4942),o=n(49963),i=n(15730),c=n(59391);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a=n(76765).Vue,f=n(96486),p=f.isObject,l=f.each,b="no-js",m=n(64183).BTab;n(57924),n(6967);var d=function(){var t=document.getElementsByClassName(b);l(t,(function(t){t.classList.remove(b)}))},v=function(t,e){var n=(0,o.createApp)(s({components:{BTab:m}},p(t)?t:{}));n.use((0,i.Z)());var r=(0,c.Z)();return n.config.globalProperties.emitter=r,n.config.compilerOptions.comments=!0,e||d(),n},y=function(t,e){var n=(0,o.createSSRApp)(s({components:{BTab:m}},p(t)?t:{}));n.use((0,i.Z)());var r=(0,c.Z)();return n.config.globalProperties.emitter=r,n.config.compilerOptions.comments=!0,e||d(),n}},6967:function(t,e,n){"use strict";n.r(e);var r=n(93379),o=n.n(r),i=n(7795),c=n.n(i),u=n(90569),s=n.n(u),a=n(3565),f=n.n(a),p=n(19216),l=n.n(p),b=n(44589),m=n.n(b),d=n(45987),v=n.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));n.d(e,y);var g={};g.styleTagTransform=m(),g.setAttributes=f(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),e.default=v()&&v().locals?v().locals:void 0},57924:function(t,e,n){"use strict";n.r(e);var r=n(93379),o=n.n(r),i=n(7795),c=n.n(i),u=n(90569),s=n.n(u),a=n(3565),f=n.n(a),p=n(19216),l=n.n(p),b=n(44589),m=n.n(b),d=n(2236),v=n.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));n.d(e,y);var g={};g.styleTagTransform=m(),g.setAttributes=f(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),e.default=v()&&v().locals?v().locals:void 0}},function(t){return t.O(0,[6252,7991,9963,6486,4942,6765,7169,4092,5730],(function(){return 96612,t(t.s=96612)})),t.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.VsMegalinkSingleImage=t():e.VsMegalinkSingleImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8960],{89139:function(){},10862:function(e,t,n){"use strict";var i=n(73366),s=n(44142),a=n(83918),l=n(95646),r=n(81779);t.Z={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:i.default,VsRichTextWrapper:s.default,VsButton:a.default,VsRow:r.ou,VsCol:r.hY,VsLinkList:l.default},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""},theme:{type:String,default:"light",validator:function(e){return e.match(/(light|dark)/)}}},data:function(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses:function(){return["vs-megalink-single-image--".concat(this.theme),this.alternate?"vs-megalink-single-image--alternate":""]},cssVars:function(){return{"--negative-margin":"-".concat(this.negativeMargin),"--image-height":"".concat(this.imageHeight)}}},mounted:function(){var e=this,t=this.$el.querySelector(".vs-image-with-caption");if(t){var n=t.querySelector("img");n.addEventListener("load",(function(){var t=n.clientHeight/2/n.clientWidth;e.negativeMargin="".concat(100*t,"%"),e.imageHeight="".concat(n.clientHeight,"px")}))}}}},55698:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(66252),s=n(3577),a={class:"vs-megalink-single-image__image-container"},l={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},r={class:"vs-megalink-single-image__button"};function o(e,t,n,o,u,g){var c=(0,i.up)("VsHeading"),f=(0,i.up)("VsRichTextWrapper"),m=(0,i.up)("VsLinkList"),d=(0,i.up)("VsButton"),p=(0,i.up)("VsCol"),v=(0,i.up)("VsRow");return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.normalizeClass)(["vs-megalink-single-image",g.singleImageClasses]),"data-test":"megalink-single-image",style:(0,s.normalizeStyle)(g.cssVars)},[(0,i._)("div",a,[(0,i.WI)(e.$slots,"vs-single-image")]),(0,i.Wm)(v,{class:"vs-megalink-single-image__text-container"},{default:(0,i.w5)((function(){return[(0,i.Wm)(p,{cols:"12",sm:"10",lg:"6",class:(0,s.normalizeClass)(["offset-sm-1",n.alternate?"offset-lg-6":"offset-lg-0"])},{default:(0,i.w5)((function(){return[(0,i._)("div",l,[n.title?((0,i.wg)(),(0,i.j4)(c,{key:0,level:"3",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,s.toDisplayString)(n.title),1)]})),_:1})):(0,i.kq)("",!0),(0,i.Wm)(f,{variant:"lead"},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-content")]})),_:3}),(0,i.Wm)(m,null,{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-links")]})),_:3}),(0,i._)("div",r,[n.buttonLink?((0,i.wg)(),(0,i.j4)(d,{key:0,href:n.buttonLink,variant:"secondary","on-dark":"dark"===n.theme},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-button-text")]})),_:3},8,["href","on-dark"])):(0,i.kq)("",!0)])])]})),_:3},8,["class"])]})),_:3})],6)}},57868:function(e,t,n){"use strict";var i=n(93379),s=n.n(i),a=n(7795),l=n.n(a),r=n(90569),o=n.n(r),u=n(3565),g=n.n(u),c=n(19216),f=n.n(c),m=n(44589),d=n.n(m),p=n(89139),v=n.n(p),k={};k.styleTagTransform=d(),k.setAttributes=g(),k.insert=o().bind(null,"head"),k.domAPI=l(),k.insertStyleElement=f(),s()(v(),k),v()&&v().locals&&v().locals},37423:function(e,t,n){"use strict";n.r(t);var i=n(2021),s=n(33697);n(14907);const a=(0,n(83744).Z)(s.Z,[["render",i.s]]);t.default=a},33697:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.Z}});var i=n(10862)},2021:function(e,t,n){"use strict";n.d(t,{s:function(){return i.s}});var i=n(55698)},14907:function(e,t,n){"use strict";n(57868)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,976,3918,7581,4186,1321,1779,3366,4142,5646],(function(){return 37423,e(e.s=37423)})),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.VsMegalinkSingleImage=t():e.VsMegalinkSingleImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8960],{89139:function(){},10862:function(e,t,n){"use strict";var i=n(73366),s=n(44142),a=n(83918),l=n(95646),r=n(81779);t.Z={name:"VsMegalinkSingleImage",status:"prototype",release:"0.0.1",components:{VsHeading:i.default,VsRichTextWrapper:s.default,VsButton:a.default,VsRow:r.ou,VsCol:r.hY,VsLinkList:l.default},props:{alternate:{type:Boolean,default:!1},title:{type:String,default:null},buttonLink:{type:String,default:""},theme:{type:String,default:"light",validator:function(e){return e.match(/(light|dark)/)}}},data:function(){return{negativeMargin:"200px",imageHeight:"400px"}},computed:{singleImageClasses:function(){return["vs-megalink-single-image--".concat(this.theme),this.alternate?"vs-megalink-single-image--alternate":""]},cssVars:function(){return{"--negative-margin":"-".concat(this.negativeMargin),"--image-height":"".concat(this.imageHeight)}}},mounted:function(){var e=this,t=this.$el.querySelector(".vs-image-with-caption");if(t){var n=t.querySelector("img");n.addEventListener("load",(function(){var t=n.clientHeight/2/n.clientWidth;e.negativeMargin="".concat(100*t,"%"),e.imageHeight="".concat(n.clientHeight,"px")}))}}}},55698:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var i=n(66252),s=n(3577),a={class:"vs-megalink-single-image__image-container"},l={class:"vs-megalink-single-image__content","data-test":"megalink-single-image__content"},r={class:"vs-megalink-single-image__button"};function o(e,t,n,o,u,g){var c=(0,i.up)("VsHeading"),f=(0,i.up)("VsRichTextWrapper"),m=(0,i.up)("VsLinkList"),d=(0,i.up)("VsButton"),p=(0,i.up)("VsCol"),v=(0,i.up)("VsRow");return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.normalizeClass)(["vs-megalink-single-image",g.singleImageClasses]),"data-test":"megalink-single-image",style:(0,s.normalizeStyle)(g.cssVars)},[(0,i._)("div",a,[(0,i.WI)(e.$slots,"vs-single-image")]),(0,i.Wm)(v,{class:"vs-megalink-single-image__text-container"},{default:(0,i.w5)((function(){return[(0,i.Wm)(p,{cols:"12",sm:"10",lg:"6",class:(0,s.normalizeClass)(["offset-sm-1",n.alternate?"offset-lg-6":"offset-lg-0"])},{default:(0,i.w5)((function(){return[(0,i._)("div",l,[n.title?((0,i.wg)(),(0,i.j4)(c,{key:0,level:"3",class:"vs-megalink-single-image__title","data-test":"megalink-single-image__title"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,s.toDisplayString)(n.title),1)]})),_:1})):(0,i.kq)("",!0),(0,i.Wm)(f,{variant:"lead"},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-content")]})),_:3}),(0,i.Wm)(m,null,{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-links")]})),_:3}),(0,i._)("div",r,[n.buttonLink?((0,i.wg)(),(0,i.j4)(d,{key:0,href:n.buttonLink,variant:"secondary","on-dark":"dark"===n.theme},{default:(0,i.w5)((function(){return[(0,i.WI)(e.$slots,"vs-single-image-button-text")]})),_:3},8,["href","on-dark"])):(0,i.kq)("",!0)])])]})),_:3},8,["class"])]})),_:3})],6)}},57868:function(e,t,n){"use strict";var i=n(93379),s=n.n(i),a=n(7795),l=n.n(a),r=n(90569),o=n.n(r),u=n(3565),g=n.n(u),c=n(19216),f=n.n(c),m=n(44589),d=n.n(m),p=n(89139),v=n.n(p),k={};k.styleTagTransform=d(),k.setAttributes=g(),k.insert=o().bind(null,"head"),k.domAPI=l(),k.insertStyleElement=f(),s()(v(),k),v()&&v().locals&&v().locals},37423:function(e,t,n){"use strict";n.r(t);var i=n(2021),s=n(33697);n(14907);const a=(0,n(83744).Z)(s.Z,[["render",i.s]]);t.default=a},33697:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.Z}});var i=n(10862)},2021:function(e,t,n){"use strict";n.d(t,{s:function(){return i.s}});var i=n(55698)},14907:function(e,t,n){"use strict";n(57868)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,976,3918,7581,4186,1321,1779,3366,4142,5646],(function(){return 37423,e(e.s=37423)})),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.VsMainMapWrapperListItem=t():e.VsMainMapWrapperListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6201],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7370,5730,2015,6072,9848],(function(){return 29848,e(e.s=29848)})),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.VsMainMapWrapperListItem=t():e.VsMainMapWrapperListItem=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6201],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,7370,5730,2015,6072,9848],(function(){return 29848,e(e.s=29848)})),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.VsMainMapWrapperMarker=t():e.VsMainMapWrapperMarker=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3794],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7370,5730,6573,6072,4173],(function(){return 24173,e(e.s=24173)})),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.VsMainMapWrapperMarker=t():e.VsMainMapWrapperMarker=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3794],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,7370,5730,6573,6072,4173],(function(){return 24173,e(e.s=24173)})),e.O()}])}));
|