@visitscotland/component-library 4.24.1 → 4.26.0
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/dist/client/manifest.json +53 -34
- package/dist/client/scripts/06e5efa8b2a9e879a600.js +1 -0
- package/dist/client/scripts/2f707a9d6a1a41b0adcf.js +1 -0
- package/dist/client/scripts/49e9fc44b826617a5706.js +1 -0
- package/dist/client/scripts/{72c530da49ed65816327.js → 5cbed668496a14cf8afb.js} +1 -1
- package/dist/client/scripts/{1191c307ed27a9254b5a.js → 5d6a3d267b9175319f18.js} +1 -1
- package/dist/client/scripts/69618b04c9b7a93c6d03.js +1 -0
- package/dist/client/scripts/{1d57f97b67680192a3ca.js → 78c25d457bef3357401a.js} +1 -1
- package/dist/client/scripts/{180f707bedb358018c26.js → 8800487254bbd718109a.js} +1 -1
- package/dist/client/scripts/{978d0c031456f7f66149.js → 9dfd8308048ea6f93679.js} +1 -1
- package/dist/client/scripts/acdd34ecd951e332838c.js +1 -0
- package/dist/client/scripts/b0f4fcf548396b60795b.js +1 -0
- package/dist/client/scripts/{4161157d09dfb043fede.js → b3795718d1632e39ecfa.js} +1 -1
- package/dist/client/scripts/{225d514410f8e90afdc3.js → b57e2edd3822cdde0494.js} +1 -1
- package/dist/client/styles/49e9fc44b826617a5706.css +1 -0
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +17 -2
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +65 -3
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +17 -2
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +17 -2
- package/dist/components/components/megalinks/Megalinks.vue.d.ts +2 -2
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +17 -2
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +17 -2
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +45 -10
- package/dist/components/components/video/Video.vue.d.ts +66 -18
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +14 -1
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +24 -24
- package/dist/components/vs-component-library.mjs +535 -400
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{d2a5404a7ecd4d926716.css → 5044587d1df2c48e4d9b.css} +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/0fde49acabb257f1328a.js +0 -1
- package/dist/client/scripts/587306ae16a452cd6c96.js +0 -1
- package/dist/client/scripts/67c96da976ca26eca17f.js +0 -1
- package/dist/client/scripts/ae6f0c833b8c46984add.js +0 -1
- package/dist/client/scripts/c44da96e8e6073ccffaf.js +0 -1
- package/dist/client/styles/587306ae16a452cd6c96.css +0 -1
- /package/dist/client/styles/{ae6f0c833b8c46984add.css → 06e5efa8b2a9e879a600.css} +0 -0
- /package/dist/client/styles/{67c96da976ca26eca17f.css → 2f707a9d6a1a41b0adcf.css} +0 -0
- /package/dist/client/styles/{72c530da49ed65816327.css → 5cbed668496a14cf8afb.css} +0 -0
- /package/dist/client/styles/{c44da96e8e6073ccffaf.css → 69618b04c9b7a93c6d03.css} +0 -0
- /package/dist/client/styles/{1d57f97b67680192a3ca.css → 78c25d457bef3357401a.css} +0 -0
- /package/dist/client/styles/{180f707bedb358018c26.css → 8800487254bbd718109a.css} +0 -0
- /package/dist/client/styles/{978d0c031456f7f66149.css → 9dfd8308048ea6f93679.css} +0 -0
- /package/dist/client/styles/{0fde49acabb257f1328a.css → acdd34ecd951e332838c.css} +0 -0
- /package/dist/client/styles/{225d514410f8e90afdc3.css → b57e2edd3822cdde0494.css} +0 -0
|
@@ -1574,11 +1574,13 @@
|
|
|
1574
1574
|
"scripts/4596f900bd86cbdd7063.js",
|
|
1575
1575
|
"scripts/ecba1219a13304ea7c57.js",
|
|
1576
1576
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
1577
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
1578
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
1577
1579
|
"scripts/c31932e999f4e02b0740.js",
|
|
1578
1580
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
1579
|
-
"scripts/
|
|
1581
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
1580
1582
|
"scripts/aa7aede949f6a0238ce6.js",
|
|
1581
|
-
"scripts/
|
|
1583
|
+
"scripts/9dfd8308048ea6f93679.js"
|
|
1582
1584
|
],
|
|
1583
1585
|
"styles": [
|
|
1584
1586
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -1588,9 +1590,9 @@
|
|
|
1588
1590
|
"styles/4596f900bd86cbdd7063.css",
|
|
1589
1591
|
"styles/ecba1219a13304ea7c57.css",
|
|
1590
1592
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
1591
|
-
"styles/
|
|
1593
|
+
"styles/2f707a9d6a1a41b0adcf.css",
|
|
1592
1594
|
"styles/aa7aede949f6a0238ce6.css",
|
|
1593
|
-
"styles/
|
|
1595
|
+
"styles/9dfd8308048ea6f93679.css"
|
|
1594
1596
|
]
|
|
1595
1597
|
},
|
|
1596
1598
|
"VsCheckbox": {
|
|
@@ -1819,7 +1821,8 @@
|
|
|
1819
1821
|
"scripts/ecba1219a13304ea7c57.js",
|
|
1820
1822
|
"scripts/8f4c38391eb16cc6adfb.js",
|
|
1821
1823
|
"scripts/eebb0057929d60dbbf19.js",
|
|
1822
|
-
"scripts/
|
|
1824
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
1825
|
+
"scripts/acdd34ecd951e332838c.js"
|
|
1823
1826
|
],
|
|
1824
1827
|
"styles": [
|
|
1825
1828
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -1827,7 +1830,7 @@
|
|
|
1827
1830
|
"styles/10c1fb0cd68c7fbf0cc8.css",
|
|
1828
1831
|
"styles/ecba1219a13304ea7c57.css",
|
|
1829
1832
|
"styles/8f4c38391eb16cc6adfb.css",
|
|
1830
|
-
"styles/
|
|
1833
|
+
"styles/acdd34ecd951e332838c.css"
|
|
1831
1834
|
]
|
|
1832
1835
|
},
|
|
1833
1836
|
"VsEventCard": {
|
|
@@ -2840,10 +2843,12 @@
|
|
|
2840
2843
|
"scripts/7da7401effb5a920d797.js",
|
|
2841
2844
|
"scripts/ecba1219a13304ea7c57.js",
|
|
2842
2845
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
2846
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
2847
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
2843
2848
|
"scripts/c31932e999f4e02b0740.js",
|
|
2844
2849
|
"scripts/b01f04de1d2a0123bf2c.js",
|
|
2845
|
-
"scripts/
|
|
2846
|
-
"scripts/
|
|
2850
|
+
"scripts/06e5efa8b2a9e879a600.js",
|
|
2851
|
+
"scripts/49e9fc44b826617a5706.js"
|
|
2847
2852
|
],
|
|
2848
2853
|
"styles": [
|
|
2849
2854
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -2851,8 +2856,8 @@
|
|
|
2851
2856
|
"styles/ecba1219a13304ea7c57.css",
|
|
2852
2857
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
2853
2858
|
"styles/b01f04de1d2a0123bf2c.css",
|
|
2854
|
-
"styles/
|
|
2855
|
-
"styles/
|
|
2859
|
+
"styles/06e5efa8b2a9e879a600.css",
|
|
2860
|
+
"styles/49e9fc44b826617a5706.css"
|
|
2856
2861
|
]
|
|
2857
2862
|
},
|
|
2858
2863
|
"VsImg": {
|
|
@@ -4039,10 +4044,12 @@
|
|
|
4039
4044
|
"scripts/4596f900bd86cbdd7063.js",
|
|
4040
4045
|
"scripts/ecba1219a13304ea7c57.js",
|
|
4041
4046
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
4047
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
4048
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
4042
4049
|
"scripts/c31932e999f4e02b0740.js",
|
|
4043
4050
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4044
|
-
"scripts/
|
|
4045
|
-
"scripts/
|
|
4051
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
4052
|
+
"scripts/78c25d457bef3357401a.js"
|
|
4046
4053
|
],
|
|
4047
4054
|
"styles": [
|
|
4048
4055
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -4051,8 +4058,8 @@
|
|
|
4051
4058
|
"styles/4596f900bd86cbdd7063.css",
|
|
4052
4059
|
"styles/ecba1219a13304ea7c57.css",
|
|
4053
4060
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
4054
|
-
"styles/
|
|
4055
|
-
"styles/
|
|
4061
|
+
"styles/2f707a9d6a1a41b0adcf.css",
|
|
4062
|
+
"styles/78c25d457bef3357401a.css"
|
|
4056
4063
|
]
|
|
4057
4064
|
},
|
|
4058
4065
|
"VsMegaNavFeaturedItem": {
|
|
@@ -4091,10 +4098,12 @@
|
|
|
4091
4098
|
"scripts/4596f900bd86cbdd7063.js",
|
|
4092
4099
|
"scripts/ecba1219a13304ea7c57.js",
|
|
4093
4100
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
4101
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
4102
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
4094
4103
|
"scripts/c31932e999f4e02b0740.js",
|
|
4095
4104
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4096
|
-
"scripts/
|
|
4097
|
-
"scripts/
|
|
4105
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
4106
|
+
"scripts/8800487254bbd718109a.js"
|
|
4098
4107
|
],
|
|
4099
4108
|
"styles": [
|
|
4100
4109
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -4103,8 +4112,8 @@
|
|
|
4103
4112
|
"styles/4596f900bd86cbdd7063.css",
|
|
4104
4113
|
"styles/ecba1219a13304ea7c57.css",
|
|
4105
4114
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
4106
|
-
"styles/
|
|
4107
|
-
"styles/
|
|
4115
|
+
"styles/2f707a9d6a1a41b0adcf.css",
|
|
4116
|
+
"styles/8800487254bbd718109a.css"
|
|
4108
4117
|
]
|
|
4109
4118
|
},
|
|
4110
4119
|
"VsMegaNavList": {
|
|
@@ -4385,11 +4394,13 @@
|
|
|
4385
4394
|
"scripts/ecba1219a13304ea7c57.js",
|
|
4386
4395
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
4387
4396
|
"scripts/8f4c38391eb16cc6adfb.js",
|
|
4397
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
4398
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
4388
4399
|
"scripts/c31932e999f4e02b0740.js",
|
|
4389
4400
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4390
|
-
"scripts/
|
|
4401
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
4391
4402
|
"scripts/aa7aede949f6a0238ce6.js",
|
|
4392
|
-
"scripts/
|
|
4403
|
+
"scripts/5cbed668496a14cf8afb.js"
|
|
4393
4404
|
],
|
|
4394
4405
|
"styles": [
|
|
4395
4406
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -4399,9 +4410,9 @@
|
|
|
4399
4410
|
"styles/ecba1219a13304ea7c57.css",
|
|
4400
4411
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
4401
4412
|
"styles/8f4c38391eb16cc6adfb.css",
|
|
4402
|
-
"styles/
|
|
4413
|
+
"styles/2f707a9d6a1a41b0adcf.css",
|
|
4403
4414
|
"styles/aa7aede949f6a0238ce6.css",
|
|
4404
|
-
"styles/
|
|
4415
|
+
"styles/5cbed668496a14cf8afb.css"
|
|
4405
4416
|
]
|
|
4406
4417
|
},
|
|
4407
4418
|
"VsMegalinkMultiImage": {
|
|
@@ -4441,11 +4452,13 @@
|
|
|
4441
4452
|
"scripts/ecba1219a13304ea7c57.js",
|
|
4442
4453
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
4443
4454
|
"scripts/8f4c38391eb16cc6adfb.js",
|
|
4455
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
4456
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
4444
4457
|
"scripts/c31932e999f4e02b0740.js",
|
|
4445
4458
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
4446
|
-
"scripts/
|
|
4459
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
4447
4460
|
"scripts/aa7aede949f6a0238ce6.js",
|
|
4448
|
-
"scripts/
|
|
4461
|
+
"scripts/b57e2edd3822cdde0494.js"
|
|
4449
4462
|
],
|
|
4450
4463
|
"styles": [
|
|
4451
4464
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -4455,9 +4468,9 @@
|
|
|
4455
4468
|
"styles/ecba1219a13304ea7c57.css",
|
|
4456
4469
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
4457
4470
|
"styles/8f4c38391eb16cc6adfb.css",
|
|
4458
|
-
"styles/
|
|
4471
|
+
"styles/2f707a9d6a1a41b0adcf.css",
|
|
4459
4472
|
"styles/aa7aede949f6a0238ce6.css",
|
|
4460
|
-
"styles/
|
|
4473
|
+
"styles/b57e2edd3822cdde0494.css"
|
|
4461
4474
|
]
|
|
4462
4475
|
},
|
|
4463
4476
|
"VsMegalinkSingleImage": {
|
|
@@ -5820,10 +5833,12 @@
|
|
|
5820
5833
|
"scripts/4596f900bd86cbdd7063.js",
|
|
5821
5834
|
"scripts/ecba1219a13304ea7c57.js",
|
|
5822
5835
|
"scripts/3f9b039bbf1f9118d0d0.js",
|
|
5836
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
5837
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
5823
5838
|
"scripts/c31932e999f4e02b0740.js",
|
|
5824
5839
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
5825
|
-
"scripts/
|
|
5826
|
-
"scripts/
|
|
5840
|
+
"scripts/2f707a9d6a1a41b0adcf.js",
|
|
5841
|
+
"scripts/b3795718d1632e39ecfa.js"
|
|
5827
5842
|
],
|
|
5828
5843
|
"styles": [
|
|
5829
5844
|
"styles/b99ef3e263a887f4008c.css",
|
|
@@ -5832,7 +5847,7 @@
|
|
|
5832
5847
|
"styles/4596f900bd86cbdd7063.css",
|
|
5833
5848
|
"styles/ecba1219a13304ea7c57.css",
|
|
5834
5849
|
"styles/3f9b039bbf1f9118d0d0.css",
|
|
5835
|
-
"styles/
|
|
5850
|
+
"styles/2f707a9d6a1a41b0adcf.css"
|
|
5836
5851
|
]
|
|
5837
5852
|
},
|
|
5838
5853
|
"VsStyledListItem": {
|
|
@@ -6591,17 +6606,19 @@
|
|
|
6591
6606
|
"scripts/7c38ef0be7d1885516af.js",
|
|
6592
6607
|
"scripts/7da7401effb5a920d797.js",
|
|
6593
6608
|
"scripts/ecba1219a13304ea7c57.js",
|
|
6609
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
6610
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
6594
6611
|
"scripts/c31932e999f4e02b0740.js",
|
|
6595
6612
|
"scripts/b01f04de1d2a0123bf2c.js",
|
|
6596
|
-
"scripts/
|
|
6597
|
-
"scripts/
|
|
6613
|
+
"scripts/06e5efa8b2a9e879a600.js",
|
|
6614
|
+
"scripts/5d6a3d267b9175319f18.js"
|
|
6598
6615
|
],
|
|
6599
6616
|
"styles": [
|
|
6600
6617
|
"styles/b99ef3e263a887f4008c.css",
|
|
6601
6618
|
"styles/7da7401effb5a920d797.css",
|
|
6602
6619
|
"styles/ecba1219a13304ea7c57.css",
|
|
6603
6620
|
"styles/b01f04de1d2a0123bf2c.css",
|
|
6604
|
-
"styles/
|
|
6621
|
+
"styles/06e5efa8b2a9e879a600.css"
|
|
6605
6622
|
]
|
|
6606
6623
|
},
|
|
6607
6624
|
"VsVideo": {
|
|
@@ -6637,15 +6654,17 @@
|
|
|
6637
6654
|
"scripts/7c38ef0be7d1885516af.js",
|
|
6638
6655
|
"scripts/7da7401effb5a920d797.js",
|
|
6639
6656
|
"scripts/ecba1219a13304ea7c57.js",
|
|
6657
|
+
"scripts/eebb0057929d60dbbf19.js",
|
|
6658
|
+
"scripts/b0f4fcf548396b60795b.js",
|
|
6640
6659
|
"scripts/c31932e999f4e02b0740.js",
|
|
6641
6660
|
"scripts/7926eaf34e584f4ee8f2.js",
|
|
6642
|
-
"scripts/
|
|
6661
|
+
"scripts/69618b04c9b7a93c6d03.js"
|
|
6643
6662
|
],
|
|
6644
6663
|
"styles": [
|
|
6645
6664
|
"styles/b99ef3e263a887f4008c.css",
|
|
6646
6665
|
"styles/7da7401effb5a920d797.css",
|
|
6647
6666
|
"styles/ecba1219a13304ea7c57.css",
|
|
6648
|
-
"styles/
|
|
6667
|
+
"styles/69618b04c9b7a93c6d03.css"
|
|
6649
6668
|
]
|
|
6650
6669
|
},
|
|
6651
6670
|
"VsWarning": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[459],{61949:function(){},32373:function(e,t,i){"use strict";var o=i(48836),n=i(17933),s=i(79122),a=i(45921),r=i.n(a),d=i(83178),u=i(12308).A.youtube;t.A={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsToggleButton:n.default,VsWarning:s.default},mixins:[d.A],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(e){return e.match(/(wide|narrow)/)}}},emits:["toggleAction"],setup:function(){return{videoStore:r()()}},data:function(){return{showErrorMessage:!1,requiredCookies:u}},computed:{videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!(this.requiredCookiesExist||!this.noCookiesMessage)}},methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},47289:function(e,t,i){"use strict";i.d(t,{X:function(){return p}});var o=i(20641),n=i(90033),s={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},r={key:1,class:"vs-video-caption__details"},d={class:"vs-video-caption__title"},u={class:"vs-video-caption__duration"},c={key:1,class:"vs-video-caption vs-video-caption--warning"},l={key:2,class:"vs-video-caption vs-video-caption--warning"},v={key:3,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function p(e,t,i,p,g,f){var k=(0,o.g2)("VsButton"),h=(0,o.g2)("VsToggleButton"),m=(0,o.g2)("VsWarning");return(0,o.uX)(),(0,o.CE)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[f.videoLoaded&&e.requiredCookiesExist?((0,o.uX)(),(0,o.CE)("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.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.bF)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:f.emitShowModal},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.uX)(),(0,o.Wv)(h,{key:0,onToggleAction:f.emitToggle},{default:(0,o.k6)((function(){return t[0]||(t[0]=[(0,o.Lk)("span",{class:"visually-hidden"}," Toggle caption ",-1)])})),_:1},8,["onToggleAction"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),e.requiredCookiesExist?((0,o.uX)(),(0,o.CE)("div",r,[(0,o.Lk)("p",d,[(0,o.RG)(e.$slots,"video-title")]),(0,o.Lk)("p",u,(0,n.toDisplayString)(f.videoDetails.videoDurationMsg),1)])):(0,o.Q3)("",!0)],2)):(0,o.Q3)("",!0),f.videoLoaded&&e.requiredCookiesExist||!f.showCookieMessage?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",c,[(0,o.bF)(m,{size:"small",type:"cookie"},{"button-text":(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.cookieLinkText),1)]})),default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.noCookiesMessage)+" ",1)]})),_:1})])),f.videoLoaded&&e.requiredCookiesExist||"error"!==e.cookiesInitStatus?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",l,[(0,o.bF)(m,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.errorMessage),1)]})),_:1})])),f.noJsMessage?((0,o.uX)(),(0,o.CE)("div",v,[(0,o.bF)(m,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.noJsMessage),1)]})),_:1})])):(0,o.Q3)("",!0)],2)}},64667:function(e,t,i){"use strict";var o=i(85072),n=i.n(o),s=i(97825),a=i.n(s),r=i(77659),d=i.n(r),u=i(55056),c=i.n(u),l=i(10540),v=i.n(l),p=i(41113),g=i.n(p),f=i(61949),k=i.n(f),h={};h.styleTagTransform=g(),h.setAttributes=c(),h.insert=d().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=v(),n()(k(),h),k()&&k().locals&&k().locals},70459:function(e,t,i){"use strict";i.r(t);var o=i(89385),n=i(81049);i(70575);const s=(0,i(66262).A)(n.A,[["render",o.X]]);t.default=s},81049:function(e,t,i){"use strict";i.d(t,{A:function(){return o.A}});var o=i(32373)},89385:function(e,t,i){"use strict";i.d(t,{X:function(){return o.X}});var o=i(47289)},70575:function(e,t,i){"use strict";i(64667)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9116],{11195:function(){},90020:function(e,t,s){"use strict";var i=s(13838),n=s(45676),r=s(31574),a=s(48836),d=s(79122),o=s(57957),l=s(45921),c=s.n(l),u=s(83178),h=s(12308).A.youtube;t.A={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:i.default,VsLink:n.default,VsImg:r.default,VsButton:a.default,VsWarning:d.default},mixins:[u.A],inject:{noJsMessage:{default:null},theme:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null}},props:{link:{type:String,required:!0,default:"#"},headingLevel:{type:[String,Number],default:"3",validator:function(e){return e.match(/(1|2|3|4|5|6)/)}},headingStyle:{type:[String,Number],default:"heading-xs",validator:function(e){return e.match(/(display-l|display-m|display-s|display-xs|heading-xxl|heading-xl|heading-l|heading-m|heading-s|heading-xs|heading-xxs)/)}},type:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},imgSrc:{type:String,default:void 0},imgAlt:{type:String,default:""},disabled:{type:Boolean,default:!1},videoId:{type:String,default:""},videoBtnText:{type:String,default:""},errorMessage:{type:String,default:""},errorType:{type:String,default:"image",validator:function(e){return e.match(/(image|full)/)}},warningSize:{type:String,default:"small",validator:function(e){return e.match(/(normal|small)/)}},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},setup:function(){return{videoStore:c()()}},data:function(){return{jsDisabled:!0,requiredCookies:h}},computed:{formattedVideoBtnText:function(){return"".concat(this.videoBtnText," | ")},formattedVideoDuration:function(){var e="".concat(this.videoDetails.videoFullDuration.seconds);return 1===e.length&&(e="0".concat(e)),"".concat(this.videoDetails.videoFullDuration.minutes,":").concat(e)},stretchedLinkCardClasses:function(){var e="";return this.disabled&&(e+="vs-stretched-link-card--disabled"),"video"===this.type&&(e+=" vs-stretched-link-card--video"),this.showWarning&&"video"===this.type&&(e+=" vs-stretched-link-card--warning"),e},videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},warningClass:function(){var e="";return!this.videoId||!this.jsDisabled&&this.requiredCookiesExist||(e="vs-stretched-link-card__img-container--warning ","full"!==this.errorType||null===this.cookiesInitStatus&&!this.jsDisabled||(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning:function(){return!(!this.videoId||this.jsDisabled||this.requiredCookiesExist||!0!==this.cookiesInitStatus)},showError:function(){return!(!this.videoId||""===this.errorMessage||"error"!==this.cookiesInitStatus)},showWarning:function(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage:function(){return this.showCookieWarning?this.noCookiesMessage:this.errorMessage},warningAttrs:function(){var e={};return"cookie"===this.type&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),"small"===this.size&&(e.size="sm"),e},isSvg:function(){return!(!this.imgSrc||!this.imgSrc.includes(".svg"))}},mounted:function(){this.jsDisabled=(0,o.A)()},methods:{emitShowModal:function(){this.videoId&&this.requiredCookiesExist&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},38119:function(e,t,s){"use strict";s.d(t,{X:function(){return c}});var i=s(20641),n=s(90033),r={key:0,class:"vs-stretched-link-card__video-btn-text"},a={key:4,class:"card-body"},d={key:0,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},o={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"},l={key:2,class:"vs-stretched-link-card__badges","data-test":"vs-stretched-link-card__badges"};function c(e,t,s,c,u,h){var g=(0,i.g2)("VsWarning"),v=(0,i.g2)("VsImg"),k=(0,i.g2)("VsButton"),f=(0,i.g2)("VsLink"),y=(0,i.g2)("VsHeading");return(0,i.uX)(),(0,i.CE)("div",{class:(0,n.normalizeClass)(["card vs-stretched-link-card",h.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return h.emitShowModal&&h.emitShowModal.apply(h,arguments)}),onKeypress:t[1]||(t[1]=function(){return h.emitShowModal&&h.emitShowModal.apply(h,arguments)})},["full"===h.showWarning?((0,i.uX)(),(0,i.Wv)(g,{key:0,size:s.warningSize,type:h.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},(0,i.eX)({default:(0,i.k6)((function(){return[(0,i.eW)((0,n.toDisplayString)(h.warningMessage)+" ",1)]})),_:2},[""!==h.cookieLinkText&&h.showCookieWarning?{name:"button-text",fn:(0,i.k6)((function(){return[(0,i.eW)((0,n.toDisplayString)(h.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type"])):(0,i.Q3)("",!0),"full"===s.errorType&&""!==s.videoId?((0,i.uX)(),(0,i.Wv)(g,{key:1,size:s.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,n.toDisplayString)(h.noJsMessage),1)]})),_:1},8,["size"])):(0,i.Q3)("",!0),s.imgSrc?((0,i.uX)(),(0,i.CE)("div",{key:2,class:(0,n.normalizeClass)(["vs-stretched-link-card__img-container",h.warningClass])},[s.imgSrc?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.bF)(v,{src:s.imgSrc,alt:s.imgAlt,class:(0,n.normalizeClass)(["vs-stretched-link-card__img",h.isSvg?"vs-stretched-link-card__img--svg":""]),"data-test":"vs-stretched-link-card__img","data-chromatic":"ignore"},null,8,["src","alt","class"]),s.videoId&&h.videoLoaded&&e.requiredCookiesExist?((0,i.uX)(),(0,i.Wv)(k,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",rounded:!1,onClick:h.emitShowModal},{default:(0,i.k6)((function(){return[s.videoBtnText?((0,i.uX)(),(0,i.CE)("span",r,(0,n.toDisplayString)(h.formattedVideoBtnText),1)):(0,i.Q3)("",!0),(0,i.eW)(" "+(0,n.toDisplayString)(h.formattedVideoDuration),1)]})),_:1},8,["onClick"])):(0,i.Q3)("",!0)],64)):(0,i.Q3)("",!0),"image"===h.showWarning?((0,i.uX)(),(0,i.Wv)(g,{key:1,size:s.warningSize,type:"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,n.toDisplayString)(h.warningMessage),1)]})),_:1},8,["size"])):(0,i.Q3)("",!0),""!==s.videoId&&"image"===s.errorType?((0,i.uX)(),(0,i.Wv)(g,{key:2,size:s.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,n.toDisplayString)(h.noJsMessage),1)]})),_:1},8,["size"])):(0,i.Q3)("",!0)],2)):(0,i.Q3)("",!0),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,i.RG)(e.$slots,"stretched-card-panels",{key:3}):(0,i.Q3)("",!0),"full"!==h.showWarning?((0,i.uX)(),(0,i.CE)("div",a,[e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?((0,i.uX)(),(0,i.CE)("span",d,[(0,i.RG)(e.$slots,"stretched-card-category")])):(0,i.Q3)("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?((0,i.uX)(),(0,i.Wv)(y,{key:1,level:s.headingLevel,"heading-style":s.headingStyle,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:(0,i.k6)((function(){return[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(0,i.RG)(e.$slots,"stretched-card-header",{key:0}):s.businessSupport||"video"!==s.type?((0,i.uX)(),(0,i.Wv)(f,{key:2,href:s.link,type:s.type,class:(0,n.normalizeClass)(["stretched-link",s.disabled?"stretched-link--disabled":""]),variant:"dark"===h.theme?"on-dark":"primary","data-test":"vs-stretched-link",disabled:s.disabled,tabindex:!s.videoId&&!s.disabled||s.businessSupport?"0":"-1"},{default:(0,i.k6)((function(){return[(0,i.RG)(e.$slots,"stretched-card-header")]})),_:3},8,["href","type","class","variant","disabled","tabindex"])):(0,i.RG)(e.$slots,"stretched-card-header",{key:1})]})),_:3},8,["level","heading-style"])):(0,i.Q3)("",!0),(0,i.Lk)("div",o,[(0,i.RG)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-badges"]&&e.$slots["stretched-card-badges"]()?((0,i.uX)(),(0,i.CE)("div",l,[(0,i.RG)(e.$slots,"stretched-card-badges")])):(0,i.Q3)("",!0),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,i.uX)(),(0,i.Wv)(f,{key:3,href:s.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:(0,i.k6)((function(){return[(0,i.RG)(e.$slots,"stretched-card-link")]})),_:3},8,["href"])):(0,i.Q3)("",!0)])):(0,i.Q3)("",!0)],34)}},89429:function(e,t,s){"use strict";var i=s(85072),n=s.n(i),r=s(97825),a=s.n(r),d=s(77659),o=s.n(d),l=s(55056),c=s.n(l),u=s(10540),h=s.n(u),g=s(41113),v=s.n(g),k=s(11195),f=s.n(k),y={};y.styleTagTransform=v(),y.setAttributes=c(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=h(),n()(f(),y),f()&&f().locals&&f().locals},59116:function(e,t,s){"use strict";s.r(t);var i=s(31959),n=s(11736);s(12673);const r=(0,s(66262).A)(n.A,[["render",i.X]]);t.default=r},11736:function(e,t,s){"use strict";s.d(t,{A:function(){return i.A}});var i=s(90020)},31959:function(e,t,s){"use strict";s.d(t,{X:function(){return i.X}});var i=s(38119)},12673:function(e,t,s){"use strict";s(89429)}}]);
|
|
@@ -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.VsImageWithCaption=e():t.VsImageWithCaption=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6929],{51832:function(){},84224:function(t,e,i){"use strict";var o=i(31574),n=i(17933),s=i(70459),a=i(83178),r=i(12308).A.youtube;e.A={name:"VsImageWithCaption",status:"prototype",release:"0.0.1",components:{VsImg:o.default,VsToggleButton:n.default,VsVideoCaption:s.default},mixins:[a.A],provide:function(){return{noJsMessage:this.noJsMessage,errorMessage:this.errorMessage,noCookiesMessage:this.noCookiesMessage,cookieLinkText:this.cookieLinkText}},props:{altText:{type:String,default:""},closedDefaultCaption:{type:Boolean,default:!1},imageSrc:{type:String,default:""},isHeroImage:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},mobileOverlap:{type:Boolean,default:!1},toggleButtonText:{type:String,default:""},playButtonText:{type:String,default:""},videoId:{type:String,default:""},smallPlayButton:{type:Boolean,default:!1},noCookiesMessage:{type:String,default:""},cookieLinkText:{type:String,default:""},noJsMessage:{type:String,default:""},useLazyLoading:{type:Boolean,default:!0},errorMessage:{type:String,default:""},showToggle:{type:Boolean,default:!0}},data:function(){return{showCaption:!1,uniqueCaptionId:"",requiredCookies:r}},computed:{isSvg:function(){return this.imageSrc.endsWith(".svg")},imageWithCaptionClasses:function(){return{"vs-image-with-caption--closed-default":this.closedDefaultCaption,"vs-image-with-caption--hero":this.isHeroImage,"vs-image-with-caption--show-caption":!this.requiredCookiesExist&&!0===this.cookiesInitStatus,"vs-image-with-caption--video":this.isVideo,"vs-image-with-caption--svg":this.isSvg}},captionWrapperClasses:function(){return{"d-block":this.showCaption&&!this.isHeroImage,"d-flex":this.showCaption&&this.isHeroImage||this.showCaption&&this.isVideo,container:this.isHeroImage}}},mounted:function(){this.uniqueCaptionId=this._uid},methods:{toggleCaption:function(){this.showCaption=!this.showCaption}}}},40708:function(t,e,i){"use strict";i.d(e,{X:function(){return l}});var o=i(20641),n=i(90033),s={class:"visually-hidden"},a={class:"vs-image-with-caption__captions"},r=["id"];function l(t,e,i,l,u,g){var c=(0,o.g2)("VsImg"),p=(0,o.g2)("VsToggleButton"),d=(0,o.g2)("VsVideoCaption");return(0,o.uX)(),(0,o.CE)("figure",{class:(0,n.normalizeClass)(["vs-image-with-caption",g.imageWithCaptionClasses]),"data-test":"vs-image-with-caption"},[(0,o.Lk)("div",{class:(0,n.normalizeClass)(["vs-image-with-caption__image-wrapper",i.mobileOverlap?"vs-image-with-caption--overlapped":""])},[(0,o.RG)(t.$slots,"default",{},(function(){return[i.imageSrc?((0,o.uX)(),(0,o.Wv)(c,{key:0,src:i.imageSrc,alt:i.altText,"use-lazy-loading":i.useLazyLoading},null,8,["src","alt","use-lazy-loading"])):(0,o.Q3)("",!0)]})),i.showToggle?((0,o.uX)(),(0,o.Wv)(p,{key:0,"img-src":i.imageSrc,"toggle-id":u.uniqueCaptionId,onToggleAction:g.toggleCaption},{"toggle-icon":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"toggle-icon")]})),default:(0,o.k6)((function(){return[(0,o.Lk)("span",s,(0,n.toDisplayString)(i.toggleButtonText),1)]})),_:3},8,["img-src","toggle-id","onToggleAction"])):(0,o.Q3)("",!0)],2),(0,o.Lk)("figcaption",a,[i.isVideo?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,n.normalizeClass)(["vs-image-with-caption__video-caption-wrapper",i.isHeroImage?"container-lg":""])},[(0,o.bF)(d,{"video-btn-text":i.playButtonText,"with-toggle-btn":i.showToggle,onToggleAction:g.toggleCaption,"video-id":i.videoId,"cookie-link-text":i.cookieLinkText,"error-message":i.errorMessage,variant:i.smallPlayButton?"narrow":"wide"},{"video-title":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"video-title")]})),_:3},8,["video-btn-text","with-toggle-btn","onToggleAction","video-id","cookie-link-text","error-message","variant"])],2)):(0,o.Q3)("",!0),(0,o.Lk)("div",{class:(0,n.normalizeClass)(["vs-image-with-caption__caption-wrapper",g.captionWrapperClasses]),id:u.uniqueCaptionId},[(0,o.RG)(t.$slots,"img-caption")],10,r)])],2)}},44894:function(t,e,i){"use strict";var o=i(85072),n=i.n(o),s=i(97825),a=i.n(s),r=i(77659),l=i.n(r),u=i(55056),g=i.n(u),c=i(10540),p=i.n(c),d=i(41113),f=i.n(d),h=i(51832),m=i.n(h),v={};v.styleTagTransform=f(),v.setAttributes=g(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=p(),n()(m(),v),m()&&m().locals&&m().locals},46004:function(t,e,i){"use strict";i.r(e);var o=i(26644),n=i(77012);i(74802);const s=(0,i(66262).A)(n.A,[["render",o.X]]);e.default=s},77012:function(t,e,i){"use strict";i.d(e,{A:function(){return o.A}});var o=i(84224)},26644:function(t,e,i){"use strict";i.d(e,{X:function(){return o.X}});var o=i(40708)},74802:function(t,e,i){"use strict";i(44894)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,1574,2829,1459,5921,7933,459],(function(){return t(t.s=46004)})),t.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.VsMegalinkLinkList=e():t.VsMegalinkLinkList=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5328],{23039:function(){},72087:function(t,e,n){"use strict";var s=n(59116),i=n(61454),r=n(72958);e.A={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:s.default,VsRichTextWrapper:r.default,VsStretchedLinkPanels:i.default},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:function(t){return t.match(/(default|external|internal|download|video)/)}},theme:{type:String,default:"light",validator:function(t){return t.match(/(light|grey)/)}},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass:function(){var t="";return this.theme&&(t+="vs-megalink-link-list--".concat(this.theme," ")),this.isHomePage||(t+="vs-megalink-link-list--internal-page "),this.businessSupport&&(t+="vs-megalink-link-list--business-support "),t}}}},76971:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var s=n(20641),i=n(90033),r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function a(t,e,n,a,l,o){var u=(0,s.g2)("VsStretchedLinkPanels"),d=(0,s.g2)("VsRichTextWrapper"),c=(0,s.g2)("VsStretchedLinkCard");return(0,s.uX)(),(0,s.CE)("div",{class:(0,i.normalizeClass)(["vs-megalink-link-list",o.megalinkClass]),"data-test":"vs-megalink-link-list"},[(0,s.bF)(c,{link:n.linkUrl,type:n.linkType,class:"vs-megalink-link-list__wrapper","img-src":n.imgSrc,"img-alt":n.imgAlt,theme:n.theme,"video-id":n.videoId,"video-btn-text":n.videoBtnText,"error-message":n.errorMessage,"error-type":"full","business-support":n.businessSupport,"is-home-page":n.isHomePage},(0,s.eX)({"stretched-card-header":(0,s.k6)((function(){return[(0,s.Lk)("span",r,[(0,s.RG)(t.$slots,"vs-link-list-heading")])]})),"stretched-card-content":(0,s.k6)((function(){return[(0,s.bF)(d,{class:(0,i.normalizeClass)(n.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"vs-link-list-content")]})),_:3},8,["class"])]})),_:2},[n.days&&n.transport?{name:"stretched-card-panels",fn:(0,s.k6)((function(){return[(0,s.bF)(u,{days:n.days,transport:n.transport,"transport-name":n.transportName,"days-label":n.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0,n.businessSupport&&!n.isHomePage?{name:"stretched-card-badges",fn:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"vs-link-list-badges")]})),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],2)}},74217:function(t,e,n){"use strict";var s=n(85072),i=n.n(s),r=n(97825),a=n.n(r),l=n(77659),o=n.n(l),u=n(55056),d=n.n(u),c=n(10540),p=n.n(c),f=n(41113),g=n.n(f),m=n(23039),k=n.n(m),y={};y.styleTagTransform=g(),y.setAttributes=d(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=p(),i()(k(),y),k()&&k().locals&&k().locals},6641:function(t,e,n){"use strict";n.r(e);var s=n(83515),i=n(5315);n(14685);const r=(0,n(66262).A)(i.A,[["render",s.X]]);e.default=r},5315:function(t,e,n){"use strict";n.d(e,{A:function(){return s.A}});var s=n(72087)},83515:function(t,e,n){"use strict";n.d(e,{X:function(){return s.X}});var s=n(76971)},14685:function(t,e,n){"use strict";n(74217)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2958,5921,7957,9116,1454],(function(){return t(t.s=6641)})),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.VsMegalinkLinkList=e():t.VsMegalinkLinkList=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5328],{23039:function(){},72087:function(t,e,n){"use strict";var s=n(59116),i=n(61454),r=n(72958);e.A={name:"VsMegalinkLinkList",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:s.default,VsRichTextWrapper:r.default,VsStretchedLinkPanels:i.default},props:{imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:function(t){return t.match(/(default|external|internal|download|video)/)}},theme:{type:String,default:"light",validator:function(t){return t.match(/(light|grey)/)}},linkUrl:{type:String,required:!0},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""},businessSupport:{type:Boolean,default:!1},isHomePage:{type:Boolean,default:!1}},computed:{megalinkClass:function(){var t="";return this.theme&&(t+="vs-megalink-link-list--".concat(this.theme," ")),this.isHomePage||(t+="vs-megalink-link-list--internal-page "),this.businessSupport&&(t+="vs-megalink-link-list--business-support "),t}}}},76971:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var s=n(20641),i=n(90033),r={class:"vs-megalink-link-list__title","data-test":"megalink-link-list__title"};function a(t,e,n,a,l,o){var u=(0,s.g2)("VsStretchedLinkPanels"),d=(0,s.g2)("VsRichTextWrapper"),c=(0,s.g2)("VsStretchedLinkCard");return(0,s.uX)(),(0,s.CE)("div",{class:(0,i.normalizeClass)(["vs-megalink-link-list",o.megalinkClass]),"data-test":"vs-megalink-link-list"},[(0,s.bF)(c,{link:n.linkUrl,type:n.linkType,class:"vs-megalink-link-list__wrapper","img-src":n.imgSrc,"img-alt":n.imgAlt,theme:n.theme,"video-id":n.videoId,"video-btn-text":n.videoBtnText,"error-message":n.errorMessage,"error-type":"full","business-support":n.businessSupport,"is-home-page":n.isHomePage},(0,s.eX)({"stretched-card-header":(0,s.k6)((function(){return[(0,s.Lk)("span",r,[(0,s.RG)(t.$slots,"vs-link-list-heading")])]})),"stretched-card-content":(0,s.k6)((function(){return[(0,s.bF)(d,{class:(0,i.normalizeClass)(n.businessSupport?"d-block":"vs-megalink-link-list__content"),"data-test":"megalink-link-list__content"},{default:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"vs-link-list-content")]})),_:3},8,["class"])]})),_:2},[n.days&&n.transport?{name:"stretched-card-panels",fn:(0,s.k6)((function(){return[(0,s.bF)(u,{days:n.days,transport:n.transport,"transport-name":n.transportName,"days-label":n.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0,n.businessSupport&&!n.isHomePage?{name:"stretched-card-badges",fn:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"vs-link-list-badges")]})),key:"1"}:void 0]),1032,["link","type","img-src","img-alt","theme","video-id","video-btn-text","error-message","business-support","is-home-page"])],2)}},74217:function(t,e,n){"use strict";var s=n(85072),i=n.n(s),r=n(97825),a=n.n(r),l=n(77659),o=n.n(l),u=n(55056),d=n.n(u),c=n(10540),p=n.n(c),f=n(41113),g=n.n(f),m=n(23039),k=n.n(m),y={};y.styleTagTransform=g(),y.setAttributes=d(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=p(),i()(k(),y),k()&&k().locals&&k().locals},6641:function(t,e,n){"use strict";n.r(e);var s=n(83515),i=n(5315);n(14685);const r=(0,n(66262).A)(i.A,[["render",s.X]]);e.default=r},5315:function(t,e,n){"use strict";n.d(e,{A:function(){return s.A}});var s=n(72087)},83515:function(t,e,n){"use strict";n.d(e,{X:function(){return s.X}});var s=n(76971)},14685:function(t,e,n){"use strict";n(74217)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2958,2829,1459,5921,7957,9116,1454],(function(){return t(t.s=6641)})),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.VsVideoCaption=t():e.VsVideoCaption=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6647],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,5921,7933,459],(function(){return e(e.s=70459)})),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([[6647],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,9122,2829,1459,5921,7933,459],(function(){return e(e.s=70459)})),e.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.VsVideo=t():e.VsVideo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4375],{79980:function(){},43582:function(e,t,n){"use strict";var i=n(10467),r=n(54756),o=n.n(r),s=n(25671),a=n(79122),u=n(45921),d=n.n(u),c=n(57957),l=n(83178),f=n(12308),p=n(98745),y=null,v=f.A.youtube;t.A={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:a.default,VueYoutube:s.A},mixins:[p.default,l.A],props:{language:{type:String,default:"en"},videoId:{type:String,required:!0},videoTitle:{type:String,default:""},singleMinuteDescriptor:{type:String,default:"%s minute video"},pluralMinuteDescriptor:{type:String,default:"%s minute video"},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noJsMessage:{type:String,required:!0},errorMessage:{type:String,default:""}},data:function(){return{duration:{minutes:0,seconds:0,roundedMinutes:""},playerVars:{hl:this.language},requiredCookies:v,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError:function(){return!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus||!1===this.cookiesInitStatus},warningText:function(){var e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),"error"===this.cookiesInitStatus&&(e=this.errorMessage),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookiesMessage),e},player:function(){return this.$refs.youtube?this.$refs.youtube.player:null}},mounted:function(){this.jsDisabled=(0,c.A)(),y=d()(),this.setEventListeners()},methods:{playerReady:function(){var e=this;return(0,i.A)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getPlayerDetails();case 2:e.shouldAutoPlay&&(e.shouldAutoPlay=!1,e.playVideo());case 3:case"end":return t.stop()}}),t)})))()},playVideo:function(){var e=this;return(0,i.A)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.player){t.next=3;break}return t.next=3,e.player.playVideo();case 3:case"end":return t.stop()}}),t)})))()},pauseVideo:function(){var e=this;return(0,i.A)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.player){t.next=3;break}return t.next=3,e.player.pauseVideo();case 3:case"end":return t.stop()}}),t)})))()},stopVideo:function(){var e=this;return(0,i.A)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.player){t.next=3;break}return t.next=3,e.player.stopVideo();case 3:case"end":return t.stop()}}),t)})))()},youtubePlaying:function(){this.analyticsEvent("play")},youtubePaused:function(){this.analyticsEvent("pause")},youtubeEnded:function(){this.analyticsEvent("ended")},analyticsEvent:function(e){var t=this,n=0,i=0;this.player.getCurrentTime().then((function(e){return n=e,t.player?t.player.getDuration():null})).then((function(e){i=e})).then((function(){var r=n/i*100;t.createDataLayerObject("videoTrackingDataEvent",{title:t.videoTitle,status:e,percent:Math.round(r)})}))},getPlayerDetails:function(){var e=this;return(0,i.A)(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.player){t.next=3;break}return t.next=3,e.player.getDuration().then((function(t){e.formatTime(t),e.storeVideoDetails()}));case 3:case"end":return t.stop()}}),t)})))()},formatTime:function(e){var t=Math.floor(e/60),n=Math.round(e-60*t);this.duration.minutes=t,this.duration.seconds=n;var i=this.getRoundedMinutes(t,n);this.duration.roundedMinutes=this.formatSingularOrPlural(i)},getRoundedMinutes:function(e,t){return t<30&&0!==e?e:e+1},formatSingularOrPlural:function(e){return 1===e?this.singleMinuteDescriptor.replace("%s",e):this.pluralMinuteDescriptor.replace("%s",e)},pad:function(e){return e>=10?e:"0".concat(e)},storeVideoDetails:function(){y.addVideo({videoId:this.videoId,videoDurationMsg:this.duration.roundedMinutes,videoDuration:60*this.duration.minutes+this.duration.seconds,videoFullDuration:this.duration})},setEventListeners:function(){var e=this;this.emitter&&this.emitter.on("video-controls",(function(t){t.id===e.videoId&&("modal-opened"===t.action&&e.playVideo(),"modal-closed"===t.action&&e.stopVideo(),"play"===t.action?e.playVideo():"pause"===t.action&&e.pauseVideo())}))}}}},41e3:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(20641),r=n(90033),o={key:0,class:"vs-video","data-test":"vs-video"},s={class:"vs-video__iframe-wrapper"},a={key:0};function u(e,t,n,u,d,c){var l=(0,i.g2)("VueYoutube"),f=(0,i.g2)("VsWarning");return d.reRendering?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",o,[(0,i.Lk)("div",s,[e.requiredCookiesExist?((0,i.uX)(),(0,i.CE)("div",a,[(0,i.bF)(l,{autoplay:0,"video-id":n.videoId,vars:d.playerVars,ref:"youtube",nocookie:!0,onPlaying:c.youtubePlaying,onPaused:c.youtubePaused,onEnded:c.youtubeEnded,onReady:c.playerReady},null,8,["video-id","vars","onPlaying","onPaused","onEnded","onReady"])])):(0,i.Q3)("",!0),c.showError?((0,i.uX)(),(0,i.Wv)(f,{key:1,type:!0===e.cookiesInitStatus?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},(0,i.eX)({default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(c.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(n.cookieBtnText),1)]})),key:"0"}]),1032,["type"])):(0,i.Q3)("",!0),(0,i.bF)(f,{"data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(n.noJsMessage),1)]})),_:1})])]))}},64478:function(e,t,n){"use strict";var i=n(85072),r=n.n(i),o=n(97825),s=n.n(o),a=n(77659),u=n.n(a),d=n(55056),c=n.n(d),l=n(10540),f=n.n(l),p=n(41113),y=n.n(p),v=n(79980),h=n.n(v),g={};g.styleTagTransform=y(),g.setAttributes=c(),g.insert=u().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=f(),r()(h(),g),h()&&h().locals&&h().locals},85513:function(e,t,n){"use strict";n.r(t);var i=n(79832),r=n(43474);n(18122);const o=(0,n(66262).A)(r.A,[["render",i.X]]);t.default=o},43474:function(e,t,n){"use strict";n.d(t,{A:function(){return i.A}});var i=n(43582)},79832:function(e,t,n){"use strict";n.d(t,{X:function(){return i.X}});var i=n(41e3)},18122:function(e,t,n){"use strict";n(64478)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,3498,6422,8745,8836,9122,2829,1459,5921,7957],(function(){return e(e.s=85513)})),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.VsMegaNavFeaturedEvent=t():e.VsMegaNavFeaturedEvent=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8051],{97519:function(){},79798:function(e,t,n){"use strict";var a=n(3453),r=n(59116),s=n(57536);t.A={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{sourceUrl:{type:String,default:""}},data:function(){return{featuredEvent:null}},mounted:function(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent:function(){var e=this;s.A.get(this.sourceUrl).then((function(t){if(t.data.data.products&&t.data.data.products.length){var n=(0,a.A)(t.data.data.products,1);e.featuredEvent=n[0]}})).catch((function(){e.featuredEvent=null}))}}}},8150:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var a=n(20641),r=n(90033),s={key:0,class:"vs-mega-nav-featured-event__date-range"},u={class:"vs-mega-nav-featured-event__date-detail"},i={class:"vs-mega-nav-featured-event__title"},d={key:1,class:"vs-mega-nav-featured-event__location"};function o(e,t,n,o,c,f){var v=(0,a.g2)("VsStretchedLinkCard");return c.featuredEvent?((0,a.uX)(),(0,a.Wv)(v,{key:0,link:c.featuredEvent.productLink.link,type:"internal","img-src":c.featuredEvent.images[0].mediaUrl,"img-alt":c.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":(0,a.k6)((function(){return[c.featuredEvent&&c.featuredEvent.opening?((0,a.uX)(),(0,a.CE)("p",s,[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.opening.period.label)+" ",1),(0,a.Lk)("span",u,(0,r.toDisplayString)(c.featuredEvent.opening.period.startDay),1)])):(0,a.Q3)("",!0),(0,a.Lk)("p",i,(0,r.toDisplayString)(c.featuredEvent.name),1),c.featuredEvent&&c.featuredEvent.address?((0,a.uX)(),(0,a.CE)("p",d,(0,r.toDisplayString)(c.featuredEvent.address.shortAddress),1)):(0,a.Q3)("",!0)]})),"stretched-card-link":(0,a.k6)((function(){return[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.productLink.label),1)]})),_:1},8,["link","img-src","img-alt"])):(0,a.Q3)("",!0)}},23942:function(e,t,n){"use strict";var a=n(85072),r=n.n(a),s=n(97825),u=n.n(s),i=n(77659),d=n.n(i),o=n(55056),c=n.n(o),f=n(10540),v=n.n(f),l=n(41113),p=n.n(l),g=n(97519),m=n.n(g),E={};E.styleTagTransform=p(),E.setAttributes=c(),E.insert=d().bind(null,"head"),E.domAPI=u(),E.insertStyleElement=v(),r()(m(),E),m()&&m().locals&&m().locals},75048:function(e,t,n){"use strict";n.r(t);var a=n(6630),r=n(28402);n(39442);const s=(0,n(66262).A)(r.A,[["render",a.X]]);t.default=s},28402:function(e,t,n){"use strict";n.d(t,{A:function(){return a.A}});var a=n(79798)},6630:function(e,t,n){"use strict";n.d(t,{X:function(){return a.X}});var a=n(8150)},39442:function(e,t,n){"use strict";n(23942)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,7536,6422,8745,8836,3838,5676,9122,1574,5921,7957,9116],(function(){return e(e.s=75048)})),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.VsMegaNavFeaturedEvent=t():e.VsMegaNavFeaturedEvent=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8051],{97519:function(){},79798:function(e,t,n){"use strict";var a=n(3453),r=n(59116),s=n(57536);t.A={name:"VsMegaNavFeaturedEvent",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{sourceUrl:{type:String,default:""}},data:function(){return{featuredEvent:null}},mounted:function(){this.sourceUrl&&this.retrieveFeaturedEvent()},methods:{retrieveFeaturedEvent:function(){var e=this;s.A.get(this.sourceUrl).then((function(t){if(t.data.data.products&&t.data.data.products.length){var n=(0,a.A)(t.data.data.products,1);e.featuredEvent=n[0]}})).catch((function(){e.featuredEvent=null}))}}}},8150:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var a=n(20641),r=n(90033),s={key:0,class:"vs-mega-nav-featured-event__date-range"},u={class:"vs-mega-nav-featured-event__date-detail"},i={class:"vs-mega-nav-featured-event__title"},d={key:1,class:"vs-mega-nav-featured-event__location"};function o(e,t,n,o,c,f){var v=(0,a.g2)("VsStretchedLinkCard");return c.featuredEvent?((0,a.uX)(),(0,a.Wv)(v,{key:0,link:c.featuredEvent.productLink.link,type:"internal","img-src":c.featuredEvent.images[0].mediaUrl,"img-alt":c.featuredEvent.name,class:"vs-mega-nav-featured-event","data-test":"vs-mega-nav-featured-event","data-chromatic":"ignore"},{"stretched-card-content":(0,a.k6)((function(){return[c.featuredEvent&&c.featuredEvent.opening?((0,a.uX)(),(0,a.CE)("p",s,[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.opening.period.label)+" ",1),(0,a.Lk)("span",u,(0,r.toDisplayString)(c.featuredEvent.opening.period.startDay),1)])):(0,a.Q3)("",!0),(0,a.Lk)("p",i,(0,r.toDisplayString)(c.featuredEvent.name),1),c.featuredEvent&&c.featuredEvent.address?((0,a.uX)(),(0,a.CE)("p",d,(0,r.toDisplayString)(c.featuredEvent.address.shortAddress),1)):(0,a.Q3)("",!0)]})),"stretched-card-link":(0,a.k6)((function(){return[(0,a.eW)((0,r.toDisplayString)(c.featuredEvent.productLink.label),1)]})),_:1},8,["link","img-src","img-alt"])):(0,a.Q3)("",!0)}},23942:function(e,t,n){"use strict";var a=n(85072),r=n.n(a),s=n(97825),u=n.n(s),i=n(77659),d=n.n(i),o=n(55056),c=n.n(o),f=n(10540),v=n.n(f),l=n(41113),p=n.n(l),g=n(97519),m=n.n(g),E={};E.styleTagTransform=p(),E.setAttributes=c(),E.insert=d().bind(null,"head"),E.domAPI=u(),E.insertStyleElement=v(),r()(m(),E),m()&&m().locals&&m().locals},75048:function(e,t,n){"use strict";n.r(t);var a=n(6630),r=n(28402);n(39442);const s=(0,n(66262).A)(r.A,[["render",a.X]]);t.default=s},28402:function(e,t,n){"use strict";n.d(t,{A:function(){return a.A}});var a=n(79798)},6630:function(e,t,n){"use strict";n.d(t,{X:function(){return a.X}});var a=n(8150)},39442:function(e,t,n){"use strict";n(23942)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,7536,6422,8745,8836,3838,5676,9122,1574,2829,1459,5921,7957,9116],(function(){return e(e.s=75048)})),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.VsMegaNavFeaturedItem=e():t.VsMegaNavFeaturedItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4716],{22446:function(){},37417:function(t,e,n){"use strict";var r=n(59116);e.A={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}}},93588:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var r=n(20641);function i(t,e,n,i,s,a){var u=(0,r.g2)("VsStretchedLinkCard");return(0,r.uX)(),(0,r.Wv)(u,{link:n.link,type:"internal","img-src":n.imgUrl,"img-alt":n.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-header")]})),"stretched-card-content":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-content")]})),"stretched-card-link":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-link")]})),_:3},8,["link","img-src","img-alt"])}},45112:function(t,e,n){"use strict";var r=n(85072),i=n.n(r),s=n(97825),a=n.n(s),u=n(77659),o=n.n(u),c=n(55056),d=n.n(c),l=n(10540),f=n.n(l),m=n(41113),p=n.n(m),g=n(22446),v=n.n(g),k={};k.styleTagTransform=p(),k.setAttributes=d(),k.insert=o().bind(null,"head"),k.domAPI=a(),k.insertStyleElement=f(),i()(v(),k),v()&&v().locals&&v().locals},56241:function(t,e,n){"use strict";n.r(e);var r=n(93588),i=n(77357);n(23836);const s=(0,n(66262).A)(i.A,[["render",r.X]]);e.default=s},77357:function(t,e,n){"use strict";n.d(e,{A:function(){return r.A}});var r=n(37417)},23836:function(t,e,n){"use strict";n(45112)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,5921,7957,9116],(function(){return t(t.s=56241)})),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.VsMegaNavFeaturedItem=e():t.VsMegaNavFeaturedItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4716],{22446:function(){},37417:function(t,e,n){"use strict";var r=n(59116);e.A={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}}},93588:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var r=n(20641);function i(t,e,n,i,s,a){var u=(0,r.g2)("VsStretchedLinkCard");return(0,r.uX)(),(0,r.Wv)(u,{link:n.link,type:"internal","img-src":n.imgUrl,"img-alt":n.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2","heading-style":"heading-xxs"},{"stretched-card-header":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-header")]})),"stretched-card-content":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-content")]})),"stretched-card-link":(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-featured-item-link")]})),_:3},8,["link","img-src","img-alt"])}},45112:function(t,e,n){"use strict";var r=n(85072),i=n.n(r),s=n(97825),a=n.n(s),u=n(77659),o=n.n(u),c=n(55056),d=n.n(c),l=n(10540),f=n.n(l),m=n(41113),p=n.n(m),g=n(22446),v=n.n(g),k={};k.styleTagTransform=p(),k.setAttributes=d(),k.insert=o().bind(null,"head"),k.domAPI=a(),k.insertStyleElement=f(),i()(v(),k),v()&&v().locals&&v().locals},56241:function(t,e,n){"use strict";n.r(e);var r=n(93588),i=n(77357);n(23836);const s=(0,n(66262).A)(i.A,[["render",r.X]]);e.default=s},77357:function(t,e,n){"use strict";n.d(e,{A:function(){return r.A}});var r=n(37417)},23836:function(t,e,n){"use strict";n(45112)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2829,1459,5921,7957,9116],(function(){return t(t.s=56241)})),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.VsCarouselSlide=t():e.VsCarouselSlide=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6223],{56723:function(){},21522:function(e,t,s){"use strict";var n=s(59116),r=s(61454),i=s(11438);t.A={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:n.default,VsStretchedLinkPanels:r.default,VsCol:i.Il},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download)/)}},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible:function(e){var t=parseInt(e,10);return this.visibleSlides.indexOf(t)>=0}}}},98867:function(e,t,s){"use strict";s.d(t,{X:function(){return d}});var n=s(20641),r=s(90033),i={class:"vs-carousel-slide"},l={class:"visually-hidden"},a={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function d(e,t,s,d,o,c){var u=(0,n.g2)("VsStretchedLinkPanels"),f=(0,n.g2)("VsStretchedLinkCard"),p=(0,n.g2)("VsCol");return(0,n.uX)(),(0,n.Wv)(p,{cols:c.slideCols.xs,sm:c.slideCols.sm,lg:c.slideCols.md,xl:c.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!c.isVisible(s.slideIndex)},{default:(0,n.k6)((function(){return[(0,n.Lk)("div",i,[(0,n.bF)(f,{link:s.linkUrl,type:s.linkType,"img-src":s.imgSrc,"img-alt":s.imgAlt,class:(0,r.normalizeClass)([c.isVisible(s.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!c.isVisible(s.slideIndex),"data-test":"vs-carousel-card"},(0,n.eX)({"stretched-card-category":(0,n.k6)((function(){return[(0,n.Lk)("span",l,(0,r.toDisplayString)(s.categoryLabel)+": ",1),(0,n.eW)((0,r.toDisplayString)(s.category),1)]})),"stretched-card-header":(0,n.k6)((function(){return[(0,n.Lk)("span",a,[(0,n.RG)(e.$slots,"vs-carousel-slide-heading")])]})),_:2},[s.days&&s.transport?{name:"stretched-card-panels",fn:(0,n.k6)((function(){return[(0,n.bF)(u,{days:s.days,transport:s.transport,"transport-name":s.transportName,"days-label":s.daysLabel},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]})),_:3},8,["cols","sm","lg","xl","aria-disabled"])}},65493:function(e,t,s){"use strict";var n=s(85072),r=s.n(n),i=s(97825),l=s.n(i),a=s(77659),d=s.n(a),o=s(55056),c=s.n(o),u=s(10540),f=s.n(u),p=s(41113),y=s.n(p),g=s(56723),m=s.n(g),b={};b.styleTagTransform=y(),b.setAttributes=c(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),r()(m(),b),m()&&m().locals&&m().locals},8978:function(e,t,s){"use strict";s.r(t);var n=s(72259),r=s(57582);s(929);const i=(0,s(66262).A)(r.A,[["render",n.X]]);t.default=i},57582:function(e,t,s){"use strict";s.d(t,{A:function(){return n.A}});var n=s(21522)},72259:function(e,t,s){"use strict";s.d(t,{X:function(){return n.X}});var n=s(98867)},929:function(e,t,s){"use strict";s(65493)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,8638,2368,3838,7521,1438,5676,9122,1574,5921,7957,9116,1454],(function(){return e(e.s=8978)})),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.VsCarouselSlide=t():e.VsCarouselSlide=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6223],{56723:function(){},21522:function(e,t,s){"use strict";var n=s(59116),r=s(61454),i=s(11438);t.A={name:"VsCarouselSlide",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:n.default,VsStretchedLinkPanels:r.default,VsCol:i.Il},inject:["slideCols","visibleSlides"],props:{imgSrc:{required:!0,type:String},imgAlt:{type:String,default:""},linkType:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download)/)}},linkUrl:{type:String,required:!0},categoryLabel:{type:String,default:null},category:{type:String,default:null},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},slideIndex:{type:String,required:!0}},methods:{isVisible:function(e){var t=parseInt(e,10);return this.visibleSlides.indexOf(t)>=0}}}},98867:function(e,t,s){"use strict";s.d(t,{X:function(){return d}});var n=s(20641),r=s(90033),i={class:"vs-carousel-slide"},l={class:"visually-hidden"},a={class:"vs-carousel-slide__title","data-test":"vs-carousel-slide__title"};function d(e,t,s,d,o,c){var u=(0,n.g2)("VsStretchedLinkPanels"),f=(0,n.g2)("VsStretchedLinkCard"),p=(0,n.g2)("VsCol");return(0,n.uX)(),(0,n.Wv)(p,{cols:c.slideCols.xs,sm:c.slideCols.sm,lg:c.slideCols.md,xl:c.slideCols.lg,"data-test":"vs-carousel-slide","aria-disabled":!c.isVisible(s.slideIndex)},{default:(0,n.k6)((function(){return[(0,n.Lk)("div",i,[(0,n.bF)(f,{link:s.linkUrl,type:s.linkType,"img-src":s.imgSrc,"img-alt":s.imgAlt,class:(0,r.normalizeClass)([c.isVisible(s.slideIndex)?"vs-carousel-slide__card--active":"vs-carousel-slide__card--disabled","vs-carousel-slide__card"]),disabled:!c.isVisible(s.slideIndex),"data-test":"vs-carousel-card"},(0,n.eX)({"stretched-card-category":(0,n.k6)((function(){return[(0,n.Lk)("span",l,(0,r.toDisplayString)(s.categoryLabel)+": ",1),(0,n.eW)((0,r.toDisplayString)(s.category),1)]})),"stretched-card-header":(0,n.k6)((function(){return[(0,n.Lk)("span",a,[(0,n.RG)(e.$slots,"vs-carousel-slide-heading")])]})),_:2},[s.days&&s.transport?{name:"stretched-card-panels",fn:(0,n.k6)((function(){return[(0,n.bF)(u,{days:s.days,transport:s.transport,"transport-name":s.transportName,"days-label":s.daysLabel},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0]),1032,["link","type","img-src","img-alt","class","disabled"])])]})),_:3},8,["cols","sm","lg","xl","aria-disabled"])}},65493:function(e,t,s){"use strict";var n=s(85072),r=s.n(n),i=s(97825),l=s.n(i),a=s(77659),d=s.n(a),o=s(55056),c=s.n(o),u=s(10540),f=s.n(u),p=s(41113),y=s.n(p),g=s(56723),m=s.n(g),b={};b.styleTagTransform=y(),b.setAttributes=c(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),r()(m(),b),m()&&m().locals&&m().locals},8978:function(e,t,s){"use strict";s.r(t);var n=s(72259),r=s(57582);s(929);const i=(0,s(66262).A)(r.A,[["render",n.X]]);t.default=i},57582:function(e,t,s){"use strict";s.d(t,{A:function(){return n.A}});var n=s(21522)},72259:function(e,t,s){"use strict";s.d(t,{X:function(){return n.X}});var n=s(98867)},929:function(e,t,s){"use strict";s(65493)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,8638,2368,3838,7521,1438,5676,9122,1574,2829,1459,5921,7957,9116,1454],(function(){return e(e.s=8978)})),e.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.VsEmbedWrapper=t():e.VsEmbedWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5734],{860:function(){},59579:function(e,t,r){"use strict";var n=r(11438),o=r(72958),s=r(79122),i=r(83178),u=r(12308).A.embed;t.A={name:"VsEmbedWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:n.T$,VsRow:n.AQ,VsCol:n.Il,VsRichTextWrapper:o.default,VsWarning:s.default},mixins:[i.A],props:{noCookiesRequired:{type:Boolean,default:!1},noCookieText:{type:String,required:!0},errorText:{type:String,required:!0},noJsText:{type:String,required:!0},extraContent:{type:String,default:""}},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}}}},9044:function(e,t,r){"use strict";r.d(t,{X:function(){return a}});var n=r(20641),o=r(90033),s={"data-test":"vs-embed-wrapper",class:"vs-embed-wrapper"},i={key:"fallback"},u=["innerHTML"];function a(e,t,r,a,d,c){var l=(0,n.g2)("VsRichTextWrapper"),p=(0,n.g2)("VsCol"),f=(0,n.g2)("VsWarning"),m=(0,n.g2)("VsRow"),k=(0,n.g2)("VsContainer");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.bF)(k,null,{default:(0,n.k6)((function(){return[(0,n.bF)(m,null,{default:(0,n.k6)((function(){return[(0,n.bF)(p,{cols:"12",sm:"10","offset-sm":"1",md:"6","offset-md":"3"},{default:(0,n.k6)((function(){return[e.$slots["embed-intro-copy"]&&e.$slots["embed-intro-copy"]()&&!c.showError?((0,n.uX)(),(0,n.Wv)(l,{key:0,class:"vs-module-wrapper__intro vs-embed-wrapper__intro","data-test":"vs-module-wrapper__intro"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"embed-intro-copy")]})),_:3})):(0,n.Q3)("",!0)]})),_:3}),(0,n.bF)(p,{cols:"12"},{default:(0,n.k6)((function(){return[(0,n.Lk)("div",{class:(0,o.normalizeClass)(["vs-embed-wrapper__container",e.requiredCookiesExist||r.noCookiesRequired?"":"d-none"]),key:"embeddedContent"},[(0,n.RG)(e.$slots,"embed-widget")],2),c.showError?((0,n.uX)(),(0,n.CE)("div",i,[(0,n.bF)(f,{type:!0===e.cookiesInitStatus?"cookie":"normal",class:"vs-embed-wrapper__error","data-test":"vs-embed-wrapper__error"},(0,n.eX)({default:(0,n.k6)((function(){return[(0,n.eW)((0,o.toDisplayString)(c.warningText)+" ",1)]})),_:2},[r.extraContent?{name:"extra-content",fn:(0,n.k6)((function(){return[(0,n.Lk)("div",{innerHTML:r.extraContent},null,8,u)]})),key:"0"}:void 0,e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"embed-button-text")]})),key:"1"}]),1032,["type"])])):(0,n.Q3)("",!0),(0,n.bF)(f,{type:"normal","data-test":"vs-embed-wrapper__error--no-js",class:"vs-embed-wrapper__error vs-embed-wrapper__error--no-js"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,o.toDisplayString)(r.noJsText),1)]})),_:1})]})),_:3})]})),_:3})]})),_:3})])}},59854:function(e,t,r){"use strict";var n=r(85072),o=r.n(n),s=r(97825),i=r.n(s),u=r(77659),a=r.n(u),d=r(55056),c=r.n(d),l=r(10540),p=r.n(l),f=r(41113),m=r.n(f),k=r(860),b=r.n(k),_={};_.styleTagTransform=m(),_.setAttributes=c(),_.insert=a().bind(null,"head"),_.domAPI=i(),_.insertStyleElement=p(),o()(b(),_),b()&&b().locals&&b().locals},66649:function(e,t,r){"use strict";r.r(t);var n=r(9380),o=r(69295);r(54018);const s=(0,r(66262).A)(o.A,[["render",n.X]]);t.default=s},69295:function(e,t,r){"use strict";r.d(t,{A:function(){return n.A}});var n=r(59579)},9380:function(e,t,r){"use strict";r.d(t,{X:function(){return n.X}});var n=r(9044)},54018:function(e,t,r){"use strict";r(59854)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836,8638,2368,7521,1438,9122,2958,2829,1459],(function(){return e(e.s=66649)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1459],{83178:function(e,t,o){var n=o(64467),i=o(10810),r=o(2829);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){(0,n.A)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var u={data:function(){return{bypassCookiesExist:!1}},computed:c(c({},(0,i.aH)(r.A,{cookiesSet:function(e){return e.allowedCookies}})),{},{onetrustActiveGroups:function(){return"undefined"!=typeof window?window.OnetrustActiveGroups:null},requiredCookiesExist:function(){var e=this;if("undefined"!=typeof window&&window.bypassCookieChecks)return this.bypassCookiesExist;var t=!0;return this.requiredCookies?this.requiredCookies.forEach((function(o){-1===e.cookiesSet.indexOf(o)&&(t=!1)})):t=!1,t},cookiesInitStatus:function(){return"undefined"!=typeof window&&window.bypassCookieChecks?this.bypassCookiesExist:(void 0===this.onetrustActiveGroups||this.cookiesSet.length,!0)}}),mounted:function(){var e=this;setTimeout((function(){e.bypassCookiesExist=!0}),50)}};t.A=u},12308:function(e,t){t.A={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]}}}]);
|
|
@@ -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.VsStretchedLinkCard=t():e.VsStretchedLinkCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[968],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,5921,7957,9116],(function(){return e(e.s=59116)})),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.VsStretchedLinkCard=t():e.VsStretchedLinkCard=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[968],{},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2829,1459,5921,7957,9116],(function(){return e(e.s=59116)})),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.VsMegalinkMultiImage=t():e.VsMegalinkMultiImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9910],{44526:function(){},60063:function(e,t,a){"use strict";var n=a(59116),r=a(61454),i=a(72958);t.A={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:n.default,VsRichTextWrapper:i.default,VsStretchedLinkPanels:r.default},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:function(e){return e.match(/(light|grey)/)}},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses:function(){return["vs-megalink-multi-image-card--".concat(this.theme),{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}}},89330:function(e,t,a){"use strict";a.d(t,{X:function(){return l}});var n=a(20641),r=a(90033),i={class:"vs-megalink-multi-image"},s={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function l(e,t,a,l,d,u){var o=(0,n.g2)("VsStretchedLinkPanels"),m=(0,n.g2)("VsRichTextWrapper"),c=(0,n.g2)("VsStretchedLinkCard");return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.bF)(c,{link:a.linkUrl,type:a.linkType,class:(0,r.normalizeClass)(["vs-megalink-multi-image-card p-050",u.multiImageClasses]),"heading-style":a.featured?"heading-m":"heading-xs","img-src":a.imgSrc,"img-alt":a.imgAlt,"data-test":a.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:a.theme,"video-id":a.videoId,"video-btn-text":a.videoBtnText,"error-message":a.errorMessage,"warning-size":a.featured?"normal":"small"},(0,n.eX)({"stretched-card-header":(0,n.k6)((function(){return[(0,n.Lk)("span",s,[(0,n.RG)(e.$slots,"vs-multi-image-heading")])]})),"stretched-card-content":(0,n.k6)((function(){return[(0,n.bF)(m,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"vs-multi-image-content")]})),_:3})]})),_:2},[a.days&&a.transport?{name:"stretched-card-panels",fn:(0,n.k6)((function(){return[(0,n.bF)(o,{days:a.days,transport:a.transport,"transport-name":a.transportName,"days-label":a.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"vs-multi-image-badges")]})),key:"1"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}},10796:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),i=a(97825),s=a.n(i),l=a(77659),d=a.n(l),u=a(55056),o=a.n(u),m=a(10540),c=a.n(m),g=a(41113),f=a.n(g),p=a(44526),y=a.n(p),k={};k.styleTagTransform=f(),k.setAttributes=o(),k.insert=d().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=c(),r()(y(),k),y()&&y().locals&&y().locals},45809:function(e,t,a){"use strict";a.r(t);var n=a(76194),r=a(82571);a(592);const i=(0,a(66262).A)(r.A,[["render",n.X]]);t.default=i},82571:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(60063)},76194:function(e,t,a){"use strict";a.d(t,{X:function(){return n.X}});var n=a(89330)},592:function(e,t,a){"use strict";a(10796)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2958,5921,7957,9116,1454],(function(){return e(e.s=45809)})),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.VsMegalinkMultiImage=t():e.VsMegalinkMultiImage=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9910],{44526:function(){},60063:function(e,t,a){"use strict";var n=a(59116),r=a(61454),i=a(72958);t.A={name:"VsMegalinkMultiImage",status:"prototype",release:"0.0.1",components:{VsStretchedLinkCard:n.default,VsRichTextWrapper:i.default,VsStretchedLinkPanels:r.default},props:{featured:{required:!1,type:Boolean,default:!1},lastFeatured:{required:!1,type:Boolean,default:!1},imgSrc:{required:!0,type:String},imgAlt:{required:!1,type:String,default:""},linkType:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},linkUrl:{type:String,required:!0},theme:{type:String,default:"light",validator:function(e){return e.match(/(light|grey)/)}},days:{type:String,default:""},daysLabel:{type:String,default:"days"},transport:{type:String,default:""},transportName:{type:String,default:""},videoId:{type:String,default:""},videoBtnText:{type:String,default:"Play Video"},errorMessage:{type:String,default:""}},computed:{multiImageClasses:function(){return["vs-megalink-multi-image-card--".concat(this.theme),{"vs-megalink-multi-image-card--featured":this.featured,"vs-megalink-multi-image-card--featured-last":this.lastFeatured}]}}}},89330:function(e,t,a){"use strict";a.d(t,{X:function(){return l}});var n=a(20641),r=a(90033),i={class:"vs-megalink-multi-image"},s={class:"vs-megalink-multi-image-card__title","data-test":"megalink-multi-image-card__title"};function l(e,t,a,l,d,u){var o=(0,n.g2)("VsStretchedLinkPanels"),m=(0,n.g2)("VsRichTextWrapper"),c=(0,n.g2)("VsStretchedLinkCard");return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.bF)(c,{link:a.linkUrl,type:a.linkType,class:(0,r.normalizeClass)(["vs-megalink-multi-image-card p-050",u.multiImageClasses]),"heading-style":a.featured?"heading-m":"heading-xs","img-src":a.imgSrc,"img-alt":a.imgAlt,"data-test":a.featured?"megalink-multi-image-featured":"megalink-multi-image-card",theme:a.theme,"video-id":a.videoId,"video-btn-text":a.videoBtnText,"error-message":a.errorMessage,"warning-size":a.featured?"normal":"small"},(0,n.eX)({"stretched-card-header":(0,n.k6)((function(){return[(0,n.Lk)("span",s,[(0,n.RG)(e.$slots,"vs-multi-image-heading")])]})),"stretched-card-content":(0,n.k6)((function(){return[(0,n.bF)(m,{class:"vs-megalink-multi-image-card__content","data-test":"megalink-multi-image-card__content"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"vs-multi-image-content")]})),_:3})]})),_:2},[a.days&&a.transport?{name:"stretched-card-panels",fn:(0,n.k6)((function(){return[(0,n.bF)(o,{days:a.days,transport:a.transport,"transport-name":a.transportName,"days-label":a.daysLabel,"data-test":"vs-itinerary-panels"},null,8,["days","transport","transport-name","days-label"])]})),key:"0"}:void 0,e.$slots["vs-multi-image-badges"]&&e.$slots["vs-multi-image-badges"]()?{name:"stretched-card-badges",fn:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"vs-multi-image-badges")]})),key:"1"}:void 0]),1032,["link","type","class","heading-style","img-src","img-alt","data-test","theme","video-id","video-btn-text","error-message","warning-size"])])}},10796:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),i=a(97825),s=a.n(i),l=a(77659),d=a.n(l),u=a(55056),o=a.n(u),m=a(10540),c=a.n(m),g=a(41113),f=a.n(g),p=a(44526),y=a.n(p),k={};k.styleTagTransform=f(),k.setAttributes=o(),k.insert=d().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=c(),r()(y(),k),y()&&y().locals&&y().locals},45809:function(e,t,a){"use strict";a.r(t);var n=a(76194),r=a(82571);a(592);const i=(0,a(66262).A)(r.A,[["render",n.X]]);t.default=i},82571:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(60063)},76194:function(e,t,a){"use strict";a.d(t,{X:function(){return n.X}});var n=a(89330)},592:function(e,t,a){"use strict";a(10796)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,3838,5676,9122,1574,2958,2829,1459,5921,7957,9116,1454],(function(){return e(e.s=45809)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vs-image-with-caption{position:relative}.vs-image-with-caption__image-wrapper{position:relative;aspect-ratio:3/2}@supports not (aspect-ratio: 3/2){.vs-image-with-caption__image-wrapper{padding-bottom:66.6%}}.vs-image-with-caption__image-wrapper img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.vs-image-with-caption__image-wrapper .vs-toggle-btn{position:absolute;bottom:.5rem;right:.5rem}@media(max-width: 575.98px){.vs-image-with-caption__image-wrapper .vs-toggle-btn .fa-icon-colours--white{--fa-primary-color: rgb(32, 15, 46);--fa-secondary-color: rgb(255, 255, 255)}}@media(min-width: 576px){.vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block}.vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn .fa-icon-colours--white{--fa-primary-color: rgb(32, 15, 46);--fa-secondary-color: rgb(255, 255, 255)}}@media(min-width: 576px){.vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}}.vs-image-with-caption__caption-wrapper{display:none;padding:0}.vs-image-with-caption__caption-wrapper .vs-caption--large{position:absolute;bottom:-48px;right:0;z-index:2}@media(max-width: 575.98px){.vs-image-with-caption__caption-wrapper .vs-caption--large,.vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{position:absolute;top:0;width:100%;height:100%;display:flex;text-align:center}}@media(min-width: 576px){.vs-image-with-caption__caption-wrapper{display:block}.vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper{display:none}.vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{display:flex;position:absolute;top:0;height:100%;text-align:center}}@media(min-width: 576px){.vs-image-with-caption--fullwidth .vs-image-with-caption__captions{position:relative}}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.vs-image-with-caption--video.vs-image-with-caption--narrow .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{display:none;justify-content:flex-end}.vs-image-with-caption--video .vs-image-with-caption__captions{position:relative;top:auto;left:auto;background:#200f2e}.vs-image-with-caption--video .vs-caption__image-caption{margin-bottom:.5rem}.vs-image-with-caption--video .vs-caption .row{margin:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__video-caption-wrapper{padding:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:none}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption{position:relative;bottom:auto;right:auto}.vs-image-with-caption--video.vs-image-with-caption--hero.vs-image-with-caption--show-caption .vs-image-with-caption__caption-wrapper{display:flex;margin-top:.5rem}@media(min-width: 576px){.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption{width:100%}}@media(min-width: 992px){.vs-image-with-caption--video .vs-toggle-btn{display:none}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper{display:flex;justify-content:flex-end;padding:0}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption--fullwidth{width:400px}.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption .vs-toggle-btn{display:block}.vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{justify-content:flex-end;padding:0}.vs-image-with-caption--video .vs-video-caption--fullwidth .vs-caption{position:absolute;bottom:auto;width:400px}.vs-image-with-caption--video .vs-toggle-btn{right:0}.vs-image-with-caption--video.vs-image-with-caption--hero .vs-image-with-caption__captions{position:absolute;bottom:210px;width:100%;right:0;z-index:3;background:rgba(0,0,0,0)}}.vs-image-with-caption--overlapped .vs-toggle-btn{bottom:3rem;right:1rem}.vs-image-with-caption--hero{margin-bottom:0;background:#200f2e}.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{max-height:100vh;overflow:hidden;aspect-ratio:auto}@supports not (aspect-ratio: 3/2){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{padding-bottom:0}}@media(min-width: 576px)and (max-width: 991.98px){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__image-wrapper{height:100vh}}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:none}@media(min-width: 576px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{position:relative}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper{display:block}}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{position:relative;top:0}@media(max-width: 575.98px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{text-align:left;display:block}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .order-2{order:1}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .order-1{order:2;flex:0 0 auto;width:auto;max-width:100%;align-self:auto !important}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__map-wrapper{padding-top:0 !important}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__image-caption{margin-bottom:1.25rem}.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large .vs-caption__caption-info{padding:.75rem .5rem}}@media(min-width: 576px)and (max-width: 991.98px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{width:100%;height:auto;text-align:left}}@media(min-width: 992px){.vs-image-with-caption--hero .vs-image-with-caption__caption-wrapper .vs-caption--large{bottom:200px;top:auto;position:absolute}}.vs-image-with-caption--svg .vs-image-with-caption__image-wrapper{display:flex;justify-content:center}.vs-image-with-caption--svg .vs-image-with-caption__image-wrapper img{width:auto}.no-js .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper{margin-top:0}.no-js .vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--video .vs-image-with-caption__caption-wrapper{display:flex}.no-js .vs-image-with-caption__caption-wrapper{display:block}.no-js .vs-image-with-caption--closed-default .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none}.no-js .vs-image-with-caption--closed-default .vs-image-with-caption__caption-wrapper .vs-caption--fullwidth{position:relative;display:block;text-align:left}
|
|
@@ -251,6 +251,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
251
251
|
}>;
|
|
252
252
|
}, {
|
|
253
253
|
jsDisabled: boolean;
|
|
254
|
+
requiredCookies: string[];
|
|
254
255
|
}, {
|
|
255
256
|
formattedVideoBtnText(): string;
|
|
256
257
|
formattedVideoDuration(): string;
|
|
@@ -267,15 +268,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
267
268
|
};
|
|
268
269
|
videoLoaded(): boolean;
|
|
269
270
|
warningClass(): string;
|
|
270
|
-
|
|
271
|
+
showCookieWarning(): boolean;
|
|
272
|
+
showError(): boolean;
|
|
273
|
+
showWarning(): string | boolean;
|
|
271
274
|
warningMessage(): string;
|
|
272
275
|
warningAttrs(): {
|
|
276
|
+
class: string;
|
|
273
277
|
size: string;
|
|
274
278
|
};
|
|
275
279
|
isSvg(): boolean;
|
|
276
280
|
}, {
|
|
277
281
|
emitShowModal(): void;
|
|
278
|
-
},
|
|
282
|
+
}, {
|
|
283
|
+
data(): {
|
|
284
|
+
bypassCookiesExist: boolean;
|
|
285
|
+
};
|
|
286
|
+
computed: {
|
|
287
|
+
onetrustActiveGroups(): any;
|
|
288
|
+
requiredCookiesExist(): any;
|
|
289
|
+
cookiesInitStatus(): any;
|
|
290
|
+
cookiesSet: () => string[];
|
|
291
|
+
};
|
|
292
|
+
mounted(): void;
|
|
293
|
+
}, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
279
294
|
link: {
|
|
280
295
|
type: StringConstructor;
|
|
281
296
|
required: true;
|