@visitscotland/component-library 4.15.0 → 4.16.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 +12 -88
- package/dist/client/scripts/{631e11020ec46983d69f.js → 15c2d1d184277c047af6.js} +1 -1
- package/dist/client/scripts/{1dff873fc4ae2fd57b3a.js → 555732ce2d102a46aa59.js} +1 -1
- package/dist/client/scripts/928db03650de19b76864.js +1 -0
- package/dist/client/scripts/{af644b6a04d970585db0.js → cabf725209a64f20f833.js} +1 -1
- package/dist/client/styles/928db03650de19b76864.css +1 -0
- package/dist/components/components/global-menu/GlobalMenu.vue.d.ts +0 -1223
- package/dist/components/components/global-menu/index.d.ts +0 -4
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +8 -8
- package/dist/components/vs-component-library.mjs +629 -755
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{c064df6d870a00b71918.css → 502348472ab488bc21f8.css} +1 -3
- package/package.json +1 -1
- package/dist/client/scripts/4992ecb311d9a13a34ec.js +0 -1
- package/dist/client/scripts/76d4a3208f24e16fa8dc.js +0 -1
- package/dist/client/scripts/7d558de1157009ef00f7.js +0 -1
- package/dist/client/scripts/9f5be1d689eea0ada38a.js +0 -1
- package/dist/client/scripts/e8c12fd53d33adbc7857.js +0 -1
- package/dist/client/styles/4992ecb311d9a13a34ec.css +0 -1
- package/dist/client/styles/76d4a3208f24e16fa8dc.css +0 -1
- package/dist/client/styles/7d558de1157009ef00f7.css +0 -1
- package/dist/components/components/global-menu/components/GlobalMenuDropdown.vue.d.ts +0 -1177
- package/dist/components/components/global-menu/components/GlobalMenuList.vue.d.ts +0 -64
- /package/dist/client/styles/{631e11020ec46983d69f.css → 15c2d1d184277c047af6.css} +0 -0
- /package/dist/client/styles/{1dff873fc4ae2fd57b3a.css → 555732ce2d102a46aa59.css} +0 -0
- /package/dist/client/styles/{af644b6a04d970585db0.css → cabf725209a64f20f833.css} +0 -0
|
@@ -2266,41 +2266,6 @@
|
|
|
2266
2266
|
"styles/18c35ecac7f5ff09365b.css"
|
|
2267
2267
|
]
|
|
2268
2268
|
},
|
|
2269
|
-
"VsGlobalMenuDropdown": {
|
|
2270
|
-
"headingFonts": [
|
|
2271
|
-
"eveleth-clean-regular.woff",
|
|
2272
|
-
"eveleth-clean-regular.woff2",
|
|
2273
|
-
"eveleth-clean-thin.woff",
|
|
2274
|
-
"eveleth-clean-thin.woff2"
|
|
2275
|
-
],
|
|
2276
|
-
"bodyFonts": [
|
|
2277
|
-
"source-sans-pro-bold.woff",
|
|
2278
|
-
"source-sans-pro-bold.woff2",
|
|
2279
|
-
"source-sans-pro-light.woff",
|
|
2280
|
-
"source-sans-pro-light.woff2",
|
|
2281
|
-
"source-sans-pro-regular.woff",
|
|
2282
|
-
"source-sans-pro-regular.woff2",
|
|
2283
|
-
"source-sans-pro-semibold.woff",
|
|
2284
|
-
"source-sans-pro-semibold.woff2"
|
|
2285
|
-
],
|
|
2286
|
-
"scripts": [
|
|
2287
|
-
"scripts/664ff5bacecaa579d442.js",
|
|
2288
|
-
"scripts/3438e42f9c8aca3ccc36.js",
|
|
2289
|
-
"scripts/063a6b8bd77d78331254.js",
|
|
2290
|
-
"scripts/45eb4527e8a562d5b5c0.js",
|
|
2291
|
-
"scripts/058e808444ac3d2e70b9.js",
|
|
2292
|
-
"scripts/0a8c20c638a406cef662.js",
|
|
2293
|
-
"scripts/2dd13e24d4d3ed916208.js",
|
|
2294
|
-
"scripts/80b83e0bc1b2a3c7b82f.js",
|
|
2295
|
-
"scripts/f71497ab02e32f1d9332.js",
|
|
2296
|
-
"scripts/76d4a3208f24e16fa8dc.js",
|
|
2297
|
-
"scripts/e8c12fd53d33adbc7857.js"
|
|
2298
|
-
],
|
|
2299
|
-
"styles": [
|
|
2300
|
-
"styles/80b83e0bc1b2a3c7b82f.css",
|
|
2301
|
-
"styles/76d4a3208f24e16fa8dc.css"
|
|
2302
|
-
]
|
|
2303
|
-
},
|
|
2304
2269
|
"VsGlobalMenuLanguage": {
|
|
2305
2270
|
"headingFonts": [
|
|
2306
2271
|
"eveleth-clean-regular.woff",
|
|
@@ -2328,14 +2293,14 @@
|
|
|
2328
2293
|
"scripts/8c97637a75e92aa31254.js",
|
|
2329
2294
|
"scripts/2dd13e24d4d3ed916208.js",
|
|
2330
2295
|
"scripts/b99ef3e263a887f4008c.js",
|
|
2331
|
-
"scripts/80b83e0bc1b2a3c7b82f.js",
|
|
2332
2296
|
"scripts/16ca9b41241b28379196.js",
|
|
2333
|
-
"scripts/
|
|
2297
|
+
"scripts/80b83e0bc1b2a3c7b82f.js",
|
|
2298
|
+
"scripts/cabf725209a64f20f833.js"
|
|
2334
2299
|
],
|
|
2335
2300
|
"styles": [
|
|
2336
2301
|
"styles/b99ef3e263a887f4008c.css",
|
|
2337
2302
|
"styles/80b83e0bc1b2a3c7b82f.css",
|
|
2338
|
-
"styles/
|
|
2303
|
+
"styles/cabf725209a64f20f833.css"
|
|
2339
2304
|
]
|
|
2340
2305
|
},
|
|
2341
2306
|
"VsGlobalMenuLanguageItem": {
|
|
@@ -2362,43 +2327,12 @@
|
|
|
2362
2327
|
"scripts/45eb4527e8a562d5b5c0.js",
|
|
2363
2328
|
"scripts/058e808444ac3d2e70b9.js",
|
|
2364
2329
|
"scripts/0a8c20c638a406cef662.js",
|
|
2365
|
-
"scripts/f71497ab02e32f1d9332.js",
|
|
2366
2330
|
"scripts/16ca9b41241b28379196.js",
|
|
2367
|
-
"scripts/
|
|
2368
|
-
|
|
2369
|
-
"styles": [
|
|
2370
|
-
"styles/631e11020ec46983d69f.css"
|
|
2371
|
-
]
|
|
2372
|
-
},
|
|
2373
|
-
"VsGlobalMenuList": {
|
|
2374
|
-
"headingFonts": [
|
|
2375
|
-
"eveleth-clean-regular.woff",
|
|
2376
|
-
"eveleth-clean-regular.woff2",
|
|
2377
|
-
"eveleth-clean-thin.woff",
|
|
2378
|
-
"eveleth-clean-thin.woff2"
|
|
2379
|
-
],
|
|
2380
|
-
"bodyFonts": [
|
|
2381
|
-
"source-sans-pro-bold.woff",
|
|
2382
|
-
"source-sans-pro-bold.woff2",
|
|
2383
|
-
"source-sans-pro-light.woff",
|
|
2384
|
-
"source-sans-pro-light.woff2",
|
|
2385
|
-
"source-sans-pro-regular.woff",
|
|
2386
|
-
"source-sans-pro-regular.woff2",
|
|
2387
|
-
"source-sans-pro-semibold.woff",
|
|
2388
|
-
"source-sans-pro-semibold.woff2"
|
|
2389
|
-
],
|
|
2390
|
-
"scripts": [
|
|
2391
|
-
"scripts/664ff5bacecaa579d442.js",
|
|
2392
|
-
"scripts/3438e42f9c8aca3ccc36.js",
|
|
2393
|
-
"scripts/063a6b8bd77d78331254.js",
|
|
2394
|
-
"scripts/45eb4527e8a562d5b5c0.js",
|
|
2395
|
-
"scripts/a8d64ebdc7d352c8d8c9.js",
|
|
2396
|
-
"scripts/7d558de1157009ef00f7.js",
|
|
2397
|
-
"scripts/9f5be1d689eea0ada38a.js"
|
|
2331
|
+
"scripts/f71497ab02e32f1d9332.js",
|
|
2332
|
+
"scripts/15c2d1d184277c047af6.js"
|
|
2398
2333
|
],
|
|
2399
2334
|
"styles": [
|
|
2400
|
-
"styles/
|
|
2401
|
-
"styles/7d558de1157009ef00f7.css"
|
|
2335
|
+
"styles/15c2d1d184277c047af6.css"
|
|
2402
2336
|
]
|
|
2403
2337
|
},
|
|
2404
2338
|
"VsGlobalMenu": {
|
|
@@ -2425,26 +2359,16 @@
|
|
|
2425
2359
|
"scripts/45eb4527e8a562d5b5c0.js",
|
|
2426
2360
|
"scripts/058e808444ac3d2e70b9.js",
|
|
2427
2361
|
"scripts/0a8c20c638a406cef662.js",
|
|
2428
|
-
"scripts/2dd13e24d4d3ed916208.js",
|
|
2429
2362
|
"scripts/302e7b7fbd7d6e2bbd6a.js",
|
|
2430
2363
|
"scripts/4310e0bbbf50e622b680.js",
|
|
2431
2364
|
"scripts/10c1fb0cd68c7fbf0cc8.js",
|
|
2432
2365
|
"scripts/3c09cde7a24704422b11.js",
|
|
2433
2366
|
"scripts/cff7036a8ca3b237af01.js",
|
|
2434
|
-
"scripts/
|
|
2435
|
-
"scripts/80b83e0bc1b2a3c7b82f.js",
|
|
2436
|
-
"scripts/f71497ab02e32f1d9332.js",
|
|
2437
|
-
"scripts/76d4a3208f24e16fa8dc.js",
|
|
2438
|
-
"scripts/7d558de1157009ef00f7.js",
|
|
2439
|
-
"scripts/4992ecb311d9a13a34ec.js"
|
|
2367
|
+
"scripts/928db03650de19b76864.js"
|
|
2440
2368
|
],
|
|
2441
2369
|
"styles": [
|
|
2442
2370
|
"styles/10c1fb0cd68c7fbf0cc8.css",
|
|
2443
|
-
"styles/
|
|
2444
|
-
"styles/80b83e0bc1b2a3c7b82f.css",
|
|
2445
|
-
"styles/76d4a3208f24e16fa8dc.css",
|
|
2446
|
-
"styles/7d558de1157009ef00f7.css",
|
|
2447
|
-
"styles/4992ecb311d9a13a34ec.css"
|
|
2371
|
+
"styles/928db03650de19b76864.css"
|
|
2448
2372
|
]
|
|
2449
2373
|
},
|
|
2450
2374
|
"VsCol": {
|
|
@@ -4293,29 +4217,29 @@
|
|
|
4293
4217
|
"scripts/cff7036a8ca3b237af01.js",
|
|
4294
4218
|
"scripts/e210ab918786c10ee410.js",
|
|
4295
4219
|
"scripts/cb991e60689f62d952f3.js",
|
|
4296
|
-
"scripts/a8d64ebdc7d352c8d8c9.js",
|
|
4297
4220
|
"scripts/ddf66730471a7e9e83ca.js",
|
|
4298
4221
|
"scripts/2aeb5b2af4fcfb3be4f0.js",
|
|
4222
|
+
"scripts/a8d64ebdc7d352c8d8c9.js",
|
|
4299
4223
|
"scripts/75b9707f384a0c31d152.js",
|
|
4300
4224
|
"scripts/e01813d62c6f24305645.js",
|
|
4301
4225
|
"scripts/f2b357135e9fc63c629a.js",
|
|
4302
4226
|
"scripts/c3aa3994aa130f3a5293.js",
|
|
4303
4227
|
"scripts/aedfd3dedb2c9a9c6f00.js",
|
|
4304
4228
|
"scripts/beec9bb328cddccd8e58.js",
|
|
4305
|
-
"scripts/
|
|
4229
|
+
"scripts/555732ce2d102a46aa59.js"
|
|
4306
4230
|
],
|
|
4307
4231
|
"styles": [
|
|
4308
4232
|
"styles/b99ef3e263a887f4008c.css",
|
|
4309
4233
|
"styles/7da7401effb5a920d797.css",
|
|
4310
4234
|
"styles/10c1fb0cd68c7fbf0cc8.css",
|
|
4311
4235
|
"styles/e210ab918786c10ee410.css",
|
|
4312
|
-
"styles/a8d64ebdc7d352c8d8c9.css",
|
|
4313
4236
|
"styles/2aeb5b2af4fcfb3be4f0.css",
|
|
4237
|
+
"styles/a8d64ebdc7d352c8d8c9.css",
|
|
4314
4238
|
"styles/f2b357135e9fc63c629a.css",
|
|
4315
4239
|
"styles/c3aa3994aa130f3a5293.css",
|
|
4316
4240
|
"styles/aedfd3dedb2c9a9c6f00.css",
|
|
4317
4241
|
"styles/beec9bb328cddccd8e58.css",
|
|
4318
|
-
"styles/
|
|
4242
|
+
"styles/555732ce2d102a46aa59.css"
|
|
4319
4243
|
]
|
|
4320
4244
|
},
|
|
4321
4245
|
"VsMegalinkLinkList": {
|
|
@@ -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.VsGlobalMenuLanguageItem=e():t.VsGlobalMenuLanguageItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5801],{3036:function(){},32829:function(t,e,n){"use strict";var o=n(83130),s=n(61288);e.A={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem:o.default},mixins:[s.A],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage:function(){var t=this.cookieExists("vs_locale"),e=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!t),this.setCookie("googtrans",this.translationCookie,!e)}}}},54554:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var o=n(20641),s=n(90033);function a(t,e,n,a,u,i){var r=(0,o.g2)("VsDropdownItem");return(0,o.uX)(),(0,o.Wv)(r,{class:"vs-global-menu__languages__item",href:n.languageLink,onClick:e[0]||(e[0]=function(t){return i.setLanguage()})},{default:(0,o.k6)((function(){return[(0,o.eW)((0,s.toDisplayString)(n.languageName),1)]})),_:1},8,["href"])}},53174:function(t,e,n){"use strict";var o=n(85072),s=n.n(o),a=n(97825),u=n.n(a),i=n(77659),r=n.n(i),l=n(55056),c=n.n(l),f=n(10540),g=n.n(f),p=n(41113),d=n.n(p),m=n(3036),k=n.n(m),b={};b.styleTagTransform=d(),b.setAttributes=c(),b.insert=r().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=g(),s()(k(),b),k()&&k().locals&&k().locals},5577:function(t,e,n){"use strict";n.r(e);var o=n(54554),s=n(89185);n(14554);const a=(0,n(66262).A)(s.A,[["render",o.X]]);e.default=a},89185:function(t,e,n){"use strict";n.d(e,{A:function(){return o.A}});var o=n(32829)},14554:function(t,e,n){"use strict";n(53174)}},function(t){return t.O(0,[641,6262,7510,3751,4352,3130
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsGlobalMenuLanguageItem=e():t.VsGlobalMenuLanguageItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5801],{3036:function(){},32829:function(t,e,n){"use strict";var o=n(83130),s=n(61288);e.A={name:"VsGlobalMenuLanguageItem",status:"prototype",release:"0.1.0",components:{VsDropdownItem:o.default},mixins:[s.A],props:{languageName:{type:String,default:null},languageLink:{type:String,default:null},language:{type:String,default:null}},methods:{setLanguage:function(){var t=this.cookieExists("vs_locale"),e=this.cookieExists("googtrans");this.setCookie("vs_locale",this.localeCookie,!t),this.setCookie("googtrans",this.translationCookie,!e)}}}},54554:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var o=n(20641),s=n(90033);function a(t,e,n,a,u,i){var r=(0,o.g2)("VsDropdownItem");return(0,o.uX)(),(0,o.Wv)(r,{class:"vs-global-menu__languages__item",href:n.languageLink,onClick:e[0]||(e[0]=function(t){return i.setLanguage()})},{default:(0,o.k6)((function(){return[(0,o.eW)((0,s.toDisplayString)(n.languageName),1)]})),_:1},8,["href"])}},53174:function(t,e,n){"use strict";var o=n(85072),s=n.n(o),a=n(97825),u=n.n(a),i=n(77659),r=n.n(i),l=n(55056),c=n.n(l),f=n(10540),g=n.n(f),p=n(41113),d=n.n(p),m=n(3036),k=n.n(m),b={};b.styleTagTransform=d(),b.setAttributes=c(),b.insert=r().bind(null,"head"),b.domAPI=u(),b.insertStyleElement=g(),s()(k(),b),k()&&k().locals&&k().locals},5577:function(t,e,n){"use strict";n.r(e);var o=n(54554),s=n(89185);n(14554);const a=(0,n(66262).A)(s.A,[["render",o.X]]);e.default=a},89185:function(t,e,n){"use strict";n.d(e,{A:function(){return o.A}});var o=n(32829)},14554:function(t,e,n){"use strict";n(53174)}},function(t){return t.O(0,[641,6262,7510,3751,4352,1288,3130],(function(){return t(t.s=5577)})),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.VsMegaNav=t():e.VsMegaNav=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[823],{53952:function(){},86309:function(e,t,n){"use strict";var o=n(11438),a=n(47553),s=n(61718),i=n(4953),u=n(48836),l=n(57033),r=n(12152),c=n(34982),g=n(80617),d=n(98745);t.A={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:o.Il,VsRow:o.AQ,VsContainer:o.T$,VsSvgLink:a.default,VsMegaNavTopMenu:s.default,VsMegaNavMobileMenu:i.default,VsSiteSearch:l.default,VsSiteSearchForm:r.default,VsButton:u.default},directives:{clickOutside:g.A},mixins:[d.default],provide:function(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1},isStatic:{type:Boolean,default:!1}},data:function(){return{isOpen:!1,showSearch:!1,tokens:c}},mounted:function(){this.addTabClose()},methods:{menuToggle:function(){this.isOpen=!this.isOpen},toggleSearch:function(){this.showSearch=!this.showSearch},closeMenu:function(e){var t=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!t.contains(e.target)&&(this.isOpen=!1)},addTabClose:function(){var e=this;document.body.addEventListener("focusin",(function(t){e.isOpen&&(t.target.closest("#vs-mega-nav__menu-mobile")||(e.isOpen=!1))}))}}}},97220:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var o=n(20641),a=n(90033),s=n(53751),i={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},u={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function l(e,t,n,l,r,c){var g=(0,o.g2)("VsSvgLink"),d=(0,o.g2)("VsCol"),f=(0,o.g2)("VsMegaNavTopMenu"),v=(0,o.g2)("VsSiteSearch"),m=(0,o.g2)("VsButton"),h=(0,o.g2)("VsMegaNavMobileMenu"),b=(0,o.g2)("VsRow"),p=(0,o.g2)("VsContainer"),S=(0,o.g2)("VsSiteSearchForm"),k=(0,o.gN)("click-outside");return(0,o.uX)(),(0,o.CE)("div",null,[(0,o.Lk)("nav",i,[(0,o.bF)(p,{fluid:"lg",class:"h-100"},{default:(0,o.k6)((function(){return[(0,o.bF)(b,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:(0,o.k6)((function(){return[(0,o.bF)(d,{cols:"8",md:"4",lg:"3"},{default:(0,o.k6)((function(){return[(0,o.Lk)("div",null,[(0,o.bF)(g,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":n.logoAltText,href:n.href,"svg-fill":r.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]})),_:1}),(0,o.bF)(d,{cols:"4",md:"6",lg:n.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,null,{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-top-menu-items")]})),_:3})]})),_:3},8,["lg"]),(0,o.bF)(d,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:(0,o.k6)((function(){return[n.noSearch?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.Wv)(v,{key:0,onToggleAction:c.toggleSearch,"is-showing":r.showSearch},{default:(0,o.k6)((function(){return[(0,o.eW)((0,a.toDisplayString)(n.searchButtonText),1)]})),_:1},8,["onToggleAction","is-showing"])),(0,o.Lk)("div",u,[(0,o.bF)(m,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:r.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:t[0]||(t[0]=function(e){return c.menuToggle()}),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,a.toDisplayString)(n.menuToggleAltText),1)]})),_:1},8,["icon"]),r.isOpen?(0,o.bo)(((0,o.uX)(),(0,o.Wv)(h,{key:0},{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-accordion-items")]})),_:3})),[[k,c.closeMenu]]):(0,o.Q3)("",!0)])]})),_:3})]})),_:3})]})),_:3})]),(0,o.bo)((0,o.bF)(S,{onToggleAction:c.toggleSearch,"is-showing":r.showSearch,"label-text":n.searchLabelText,"submit-button-text":n.searchButtonText,"clear-button-text":n.searchClearButtonText,"close-button-text":n.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[s.vShow,r.showSearch]])])}},80617:function(e,t){"use strict";var n={mounted:function(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted:function(e){document.body.removeEventListener("click",e.clickOutsideEvent)}};t.A=n},46794:function(e,t,n){"use strict";var o=n(85072),a=n.n(o),s=n(97825),i=n.n(s),u=n(77659),l=n.n(u),r=n(55056),c=n.n(r),g=n(10540),d=n.n(g),f=n(41113),v=n.n(f),m=n(53952),h=n.n(m),b={};b.styleTagTransform=v(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=d(),a()(h(),b),h()&&h().locals&&h().locals},77311:function(e,t,n){"use strict";n.r(t);var o=n(70644),a=n(16649);n(60790);const s=(0,n(66262).A)(a.A,[["render",o.X]]);t.default=s},16649:function(e,t,n){"use strict";n.d(t,{A:function(){return o.A}});var o=n(86309)},70644:function(e,t,n){"use strict";n.d(t,{X:function(){return o.X}});var o=n(97220)},60790:function(e,t,n){"use strict";n(46794)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,281,6422,8745,8836,8638,2368,7521,1438,5676,4282,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMegaNav=t():e.VsMegaNav=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[823],{53952:function(){},86309:function(e,t,n){"use strict";var o=n(11438),a=n(47553),s=n(61718),i=n(4953),u=n(48836),l=n(57033),r=n(12152),c=n(34982),g=n(80617),d=n(98745);t.A={name:"VsMegaNav",status:"prototype",release:"0.1.0",components:{VsCol:o.Il,VsRow:o.AQ,VsContainer:o.T$,VsSvgLink:a.default,VsMegaNavTopMenu:s.default,VsMegaNavMobileMenu:i.default,VsSiteSearch:l.default,VsSiteSearchForm:r.default,VsButton:u.default},directives:{clickOutside:g.A},mixins:[d.default],provide:function(){return{isStatic:this.isStatic}},props:{href:{type:String,required:!0},menuToggleAltText:{type:String,required:!0},logoAltText:{type:String,default:"VisitScotland Home"},searchButtonText:{type:String,required:!0},searchLabelText:{type:String,default:"What are you looking for?"},searchClearButtonText:{type:String,default:"Clear form"},searchCloseButtonText:{type:String,default:"Close search form"},noSearch:{type:Boolean,default:!1},isStatic:{type:Boolean,default:!1}},data:function(){return{isOpen:!1,showSearch:!1,tokens:c}},mounted:function(){this.addTabClose()},methods:{menuToggle:function(){this.isOpen=!this.isOpen},toggleSearch:function(){this.showSearch=!this.showSearch},closeMenu:function(e){var t=document.getElementsByClassName("vs-mega-nav__menu-mobile")[0];this.isOpen&&!t.contains(e.target)&&(this.isOpen=!1)},addTabClose:function(){var e=this;document.body.addEventListener("focusin",(function(t){e.isOpen&&(t.target.closest("#vs-mega-nav__menu-mobile")||(e.isOpen=!1))}))}}}},97220:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var o=n(20641),a=n(90033),s=n(53751),i={class:"vs-mega-nav bg-white","aria-label":"main nav","data-test":"vs-mega-nav",id:"main-nav"},u={class:"vs-mega-nav__menu-mobile d-lg-none",id:"vs-mega-nav__menu-mobile","data-test":"vs-mega-nav-mobile-container"};function l(e,t,n,l,r,c){var g=(0,o.g2)("VsSvgLink"),d=(0,o.g2)("VsCol"),f=(0,o.g2)("VsMegaNavTopMenu"),v=(0,o.g2)("VsSiteSearch"),m=(0,o.g2)("VsButton"),h=(0,o.g2)("VsMegaNavMobileMenu"),b=(0,o.g2)("VsRow"),p=(0,o.g2)("VsContainer"),S=(0,o.g2)("VsSiteSearchForm"),k=(0,o.gN)("click-outside");return(0,o.uX)(),(0,o.CE)("div",null,[(0,o.Lk)("nav",i,[(0,o.bF)(p,{fluid:"lg",class:"h-100"},{default:(0,o.k6)((function(){return[(0,o.bF)(b,{class:"align-items-center h-100 vs-mega-nav__main-row"},{default:(0,o.k6)((function(){return[(0,o.bF)(d,{cols:"8",md:"4",lg:"3"},{default:(0,o.k6)((function(){return[(0,o.Lk)("div",null,[(0,o.bF)(g,{class:"vs-mega-nav__logo","data-test":"vs-mega-nav__logo","link-alt-text":n.logoAltText,href:n.href,"svg-fill":r.tokens["vs-color-background-brand"],"svg-path":"visitscotland-logo","data-layer-value":"homePageLogoClickDataEvent"},null,8,["link-alt-text","href","svg-fill"])])]})),_:1}),(0,o.bF)(d,{cols:"4",md:"6",lg:n.noSearch?9:7,class:"vs-mega-nav__menu d-none d-lg-block"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,null,{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-top-menu-items")]})),_:3})]})),_:3},8,["lg"]),(0,o.bF)(d,{cols:"4",md:"8",lg:"2",class:"justify-content-end align-items-center position-static d-flex h-100"},{default:(0,o.k6)((function(){return[n.noSearch?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.Wv)(v,{key:0,onToggleAction:c.toggleSearch,"is-showing":r.showSearch},{default:(0,o.k6)((function(){return[(0,o.eW)((0,a.toDisplayString)(n.searchButtonText),1)]})),_:1},8,["onToggleAction","is-showing"])),(0,o.Lk)("div",u,[(0,o.bF)(m,{class:"vs-mega-nav__mobile-menu-toggle p-0","icon-only":"",icon:r.isOpen?"close":"bars-mobile-menu",variant:"transparent",onClick:t[0]||(t[0]=function(e){return c.menuToggle()}),ref:"toggleButton",rounded:!1,"aria-haspopup":"true"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,a.toDisplayString)(n.menuToggleAltText),1)]})),_:1},8,["icon"]),r.isOpen?(0,o.bo)(((0,o.uX)(),(0,o.Wv)(h,{key:0},{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"mega-nav-accordion-items")]})),_:3})),[[k,c.closeMenu]]):(0,o.Q3)("",!0)])]})),_:3})]})),_:3})]})),_:3})]),(0,o.bo)((0,o.bF)(S,{onToggleAction:c.toggleSearch,"is-showing":r.showSearch,"label-text":n.searchLabelText,"submit-button-text":n.searchButtonText,"clear-button-text":n.searchClearButtonText,"close-button-text":n.searchCloseButtonText},null,8,["onToggleAction","is-showing","label-text","submit-button-text","clear-button-text","close-button-text"]),[[s.vShow,r.showSearch]])])}},80617:function(e,t){"use strict";var n={mounted:function(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted:function(e){document.body.removeEventListener("click",e.clickOutsideEvent)}};t.A=n},46794:function(e,t,n){"use strict";var o=n(85072),a=n.n(o),s=n(97825),i=n.n(s),u=n(77659),l=n.n(u),r=n(55056),c=n.n(r),g=n(10540),d=n.n(g),f=n(41113),v=n.n(f),m=n(53952),h=n.n(m),b={};b.styleTagTransform=v(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=d(),a()(h(),b),h()&&h().locals&&h().locals},77311:function(e,t,n){"use strict";n.r(t);var o=n(70644),a=n(16649);n(60790);const s=(0,n(66262).A)(a.A,[["render",o.X]]);t.default=s},16649:function(e,t,n){"use strict";n.d(t,{A:function(){return o.A}});var o=n(86309)},70644:function(e,t,n){"use strict";n.d(t,{X:function(){return o.X}});var o=n(97220)},60790:function(e,t,n){"use strict";n(46794)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7800,3453,281,6422,8745,8836,8638,2368,7521,1438,5676,4282,4982,2142,4448,6494,7553,2152,7033,4953,1718],(function(){return e(e.s=77311)})),e.O()}])}));
|
|
@@ -0,0 +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.VsGlobalMenu=n():t.VsGlobalMenu=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8026],{92161:function(){},28685:function(t,n,e){"use strict";var s=e(11438),o=e(37511);n.A={name:"VsGlobalMenu",status:"prototype",release:"0.1.0",components:{VsContainer:s.T$,VsRow:s.AQ,VsCol:s.Il,LazyHydrationWrapper:o.A},props:{dropdownLabel:{type:String,default:"Our Websites"}},data:function(){return{websites:[{siteName:"VisitScotland",siteUrl:"https://www.visitscotland.com/"},{siteName:"Business Events",siteUrl:"https://businessevents.visitscotland.com/"},{siteName:"Travel Trade",siteUrl:"https://traveltrade.visitscotland.org/"},{siteName:"Toolkit",siteUrl:"https://toolkit.visitscotland.org/"},{siteName:"Corporate",siteUrl:"https://www.visitscotland.org/"}]}}}},94641:function(t,n,e){"use strict";e.d(n,{X:function(){return r}});var s=e(20641),o={class:"vs-global-menu"};function r(t,n,e,r,i,u){var a=(0,s.g2)("VsCol"),l=(0,s.g2)("VsRow"),c=(0,s.g2)("VsContainer"),f=(0,s.g2)("LazyHydrationWrapper");return(0,s.uX)(),(0,s.CE)("nav",o,[(0,s.bF)(f,{"on-interaction":["focus","click"]},{default:(0,s.k6)((function(){return[(0,s.bF)(c,{fluid:"lg",class:"px-025 px-sm-075"},{default:(0,s.k6)((function(){return[(0,s.bF)(l,null,{default:(0,s.k6)((function(){return[(0,s.bF)(a,{cols:"12",class:"vs-global-menu__wrapper"},{default:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"third-menu-item")]})),_:3})]})),_:3})]})),_:3})]})),_:3})])}},17648:function(t,n,e){"use strict";var s=e(85072),o=e.n(s),r=e(97825),i=e.n(r),u=e(77659),a=e.n(u),l=e(55056),c=e.n(l),f=e(10540),d=e.n(f),p=e(41113),b=e.n(p),m=e(92161),v=e.n(m),y={};y.styleTagTransform=b(),y.setAttributes=c(),y.insert=a().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),o()(v(),y),v()&&v().locals&&v().locals},99323:function(t,n,e){"use strict";e.r(n);var s=e(51489),o=e(4833);e(9503);const r=(0,e(66262).A)(o.A,[["render",s.X]]);n.default=r},4833:function(t,n,e){"use strict";e.d(n,{A:function(){return s.A}});var s=e(28685)},51489:function(t,n,e){"use strict";e.d(n,{X:function(){return s.X}});var s=e(94641)},9503:function(t,n,e){"use strict";e(17648)}},function(t){return t.O(0,[641,6262,7510,3751,4352,7511,8638,2368,7521,1438],(function(){return t(t.s=99323)})),t.O()}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsGlobalMenuLanguage=n():e.VsGlobalMenuLanguage=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1892],{76625:function(){},98416:function(e,n,t){"use strict";var s=t(46422),a=t(62710),o=t(61288);n.A={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown:a.default,VsIcon:s.default},mixins:[o.A],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted:function(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}}},73361:function(e,n,t){"use strict";t.d(n,{X:function(){return i}});var s=t(20641),a=t(90033),o={class:"vs-global-menu__languages__text"},l={class:"vs-global-menu__languages__selected"},u={class:"vs-global-menu__languages__label",role:"menuitem"};function i(e,n,t,i,r,c){var g=(0,s.g2)("VsIcon"),f=(0,s.g2)("VsDropdown");return(0,s.uX)(),(0,s.Wv)(f,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":(0,s.k6)((function(){return[(0,s.bF)(g,{class:"vs-global-menu__languages__icon",name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),(0,s.Lk)("span",o,(0,a.toDisplayString)(t.languageLabel),1),(0,s.Lk)("span",l,(0,a.toDisplayString)(e.selectedLanguage),1)]})),default:(0,s.k6)((function(){return[(0,s.Lk)("li",u,[(0,s.bF)(g,{name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),(0,s.eW)(" "+(0,a.toDisplayString)(t.languageLabel),1)]),(0,s.RG)(e.$slots,"default")]})),_:3})}},92503:function(e,n,t){"use strict";var s=t(85072),a=t.n(s),o=t(97825),l=t.n(o),u=t(77659),i=t.n(u),r=t(55056),c=t.n(r),g=t(10540),f=t.n(g),b=t(41113),p=t.n(b),d=t(76625),_=t.n(d),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=i().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=f(),a()(_(),m),_()&&_().locals&&_().locals},57692:function(e,n,t){"use strict";t.r(n);var s=t(2561),a=t(86428);t(99499);const o=(0,t(66262).A)(a.A,[["render",s.X]]);n.default=o},86428:function(e,n,t){"use strict";t.d(n,{A:function(){return s.A}});var s=t(98416)},2561:function(e,n,t){"use strict";t.d(n,{X:function(){return s.X}});var s=t(73361)},99499:function(e,n,t){"use strict";t(92503)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,2543,6422,2710
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsGlobalMenuLanguage=n():e.VsGlobalMenuLanguage=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1892],{76625:function(){},98416:function(e,n,t){"use strict";var s=t(46422),a=t(62710),o=t(61288);n.A={name:"VsGlobalMenuLanguage",status:"prototype",release:"0.1.0",components:{VsDropdown:a.default,VsIcon:s.default},mixins:[o.A],props:{languageLabel:{type:String,default:"Language"},language:{type:String,default:"en"}},mounted:function(){this.cookieExists("vs_locale")||this.setCookie("vs_locale",this.localeCookie,!0),this.cookieExists("googtrans")||this.setCookie("googtrans",this.translationCookie,!0)}}},73361:function(e,n,t){"use strict";t.d(n,{X:function(){return i}});var s=t(20641),a=t(90033),o={class:"vs-global-menu__languages__text"},l={class:"vs-global-menu__languages__selected"},u={class:"vs-global-menu__languages__label",role:"menuitem"};function i(e,n,t,i,r,c){var g=(0,s.g2)("VsIcon"),f=(0,s.g2)("VsDropdown");return(0,s.uX)(),(0,s.Wv)(f,{variant:"primary",class:"vs-global-menu__languages"},{"button-content":(0,s.k6)((function(){return[(0,s.bF)(g,{class:"vs-global-menu__languages__icon",name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),(0,s.Lk)("span",o,(0,a.toDisplayString)(t.languageLabel),1),(0,s.Lk)("span",l,(0,a.toDisplayString)(e.selectedLanguage),1)]})),default:(0,s.k6)((function(){return[(0,s.Lk)("li",u,[(0,s.bF)(g,{name:"globe",variant:"inverse",size:"xxs",focusable:"false"}),(0,s.eW)(" "+(0,a.toDisplayString)(t.languageLabel),1)]),(0,s.RG)(e.$slots,"default")]})),_:3})}},92503:function(e,n,t){"use strict";var s=t(85072),a=t.n(s),o=t(97825),l=t.n(o),u=t(77659),i=t.n(u),r=t(55056),c=t.n(r),g=t(10540),f=t.n(g),b=t(41113),p=t.n(b),d=t(76625),_=t.n(d),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=i().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=f(),a()(_(),m),_()&&_().locals&&_().locals},57692:function(e,n,t){"use strict";t.r(n);var s=t(2561),a=t(86428);t(99499);const o=(0,t(66262).A)(a.A,[["render",s.X]]);n.default=o},86428:function(e,n,t){"use strict";t.d(n,{A:function(){return s.A}});var s=t(98416)},2561:function(e,n,t){"use strict";t.d(n,{X:function(){return s.X}});var s=t(73361)},99499:function(e,n,t){"use strict";t(92503)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,2543,6422,1288,2710],(function(){return e(e.s=57692)})),e.O()}])}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vs-global-menu{background:#5b2487;color:#fff;position:relative;font-size:.75rem;display:flex;align-items:center;min-height:2.25rem}.vs-global-menu__wrapper{position:initial;display:flex;align-items:center;justify-content:end}@media(max-width: 991.98px){.vs-global-menu__wrapper{margin:0}}@media(max-width: 991.98px){.row:not(.g-0)>.vs-global-menu__wrapper{padding:0}}.no-js .vs-global-menu{height:auto;margin-bottom:1rem}.no-js .vs-global-menu .dropdown-toggle{display:none}.no-js .vs-global-menu__wrapper{display:flex;flex-wrap:wrap}.no-js .vs-global-menu__wrapper .vs-global-menu__websites{display:none}
|