@visitscotland/component-library 5.3.13 → 5.4.1
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 +86 -126
- package/dist/client/scripts/{03dabaf7b74e6b13a280.js → 007e4562cff1a54b02d9.js} +1 -1
- package/dist/client/scripts/03aac36fba2028e24b34.js +1 -0
- package/dist/client/scripts/2de3ebcd8f366e520df4.js +1 -0
- package/dist/client/scripts/38d5589b9158ab8e7423.js +1 -0
- package/dist/client/scripts/{c6ddfee230946125f4ae.js → 398c7026bf99c5123f33.js} +1 -1
- package/dist/client/scripts/429cc9d01d282b82d939.js +1 -0
- package/dist/client/scripts/{f9a07db6b846bfc59b9f.js → 46f297ddc7600ed24071.js} +1 -1
- package/dist/client/scripts/{106feba94fa38e0dd6f3.js → 75103c9a77f2713dfb3c.js} +1 -1
- package/dist/client/scripts/76c017215a653824cb7a.js +1 -0
- package/dist/client/scripts/{1fb7da852a7963b117d3.js → 811b90e5f1380e56e0ce.js} +1 -1
- package/dist/client/scripts/cec8d6c00ce6b039698f.js +1 -0
- package/dist/client/scripts/ec37d8bfaa1148156c17.js +1 -0
- package/dist/client/scripts/{2ce32325356abf89c85a.js → f103260f33c5d2e02238.js} +1 -1
- package/dist/client/scripts/{6698abfc632ba46561e6.js → fb8f301408cc3f1509ea.js} +1 -1
- package/dist/client/scripts/fd24aecec67c3ec3de20.js +1 -0
- package/dist/client/styles/2de3ebcd8f366e520df4.css +1 -0
- package/dist/components/{LoadingSpinner-G6yO-xf9.mjs → LoadingSpinner-BOFE0yHA.mjs} +9 -3
- package/dist/components/{LoadingSpinner-BUWD-yFb.js → LoadingSpinner-CLe19mqk.js} +1 -1
- package/dist/components/components/carbon-calculator/CarbonCalculator.vue.d.ts +3 -1
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +13 -7
- package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +13 -7
- package/dist/components/components/form/Form.vue.d.ts +3 -1
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +24 -14
- package/dist/components/components/index.d.ts +0 -1
- package/dist/components/components/map/Map.vue.d.ts +3 -1
- package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +6 -2
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +13 -7
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +13 -7
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +13 -7
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +13 -7
- package/dist/components/components/product-search/ProductSearch.vue.d.ts +3 -1
- package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +3 -1
- package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +3 -1
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +13 -7
- package/dist/components/components/video/Video.vue.d.ts +13 -7
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +13 -7
- package/dist/components/components/warning/Warning.vue.d.ts +3 -1
- package/dist/components/mixins/__mocks__/verifyCookiesMixin.d.ts +4 -6
- package/dist/components/mixins/verifyCookiesMixin.d.ts +9 -5
- package/dist/components/style.css +1 -1
- package/dist/components/utils/required-cookies-data.d.ts +2 -5
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +23 -23
- package/dist/components/vs-component-library.mjs +606 -787
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{09cb3256fdc0e4d8f042.css → 6a3f38ae5bfcd8d41eb4.css} +1 -1
- package/package.json +1 -1
- package/dist/client/scripts/049d5fb993a7e3aa7153.js +0 -1
- package/dist/client/scripts/204bf0ecf8a7214b2a3e.js +0 -1
- package/dist/client/scripts/28bb6e247135d4ee42d0.js +0 -1
- package/dist/client/scripts/38e5f6b3be1cf4387852.js +0 -1
- package/dist/client/scripts/4030eed7d71592ce1e3e.js +0 -1
- package/dist/client/scripts/490b9e05e79f41cc1280.js +0 -1
- package/dist/client/scripts/65d833da76ffb9e822d5.js +0 -1
- package/dist/client/scripts/75e20b62c8b654176032.js +0 -1
- package/dist/client/scripts/b3069ef55ec689e96eb2.js +0 -1
- package/dist/client/scripts/bf69148436e7bfb3f6ea.js +0 -1
- package/dist/client/scripts/fce15340fcbd449ae9cc.js +0 -1
- package/dist/client/styles/049d5fb993a7e3aa7153.css +0 -1
- package/dist/components/components/cookie-checker/CookieChecker.vue.d.ts +0 -17
- package/dist/components/components/cookie-checker/index.d.ts +0 -2
- package/dist/components/stores/cookies.store.d.ts +0 -19
- package/dist/components/utils/one-trust.d.ts +0 -11
- /package/dist/client/styles/{4030eed7d71592ce1e3e.css → 03aac36fba2028e24b34.css} +0 -0
- /package/dist/client/styles/{b3069ef55ec689e96eb2.css → 38d5589b9158ab8e7423.css} +0 -0
- /package/dist/client/styles/{38e5f6b3be1cf4387852.css → 429cc9d01d282b82d939.css} +0 -0
- /package/dist/client/styles/{f9a07db6b846bfc59b9f.css → 46f297ddc7600ed24071.css} +0 -0
- /package/dist/client/styles/{106feba94fa38e0dd6f3.css → 75103c9a77f2713dfb3c.css} +0 -0
- /package/dist/client/styles/{1fb7da852a7963b117d3.css → 811b90e5f1380e56e0ce.css} +0 -0
- /package/dist/client/styles/{204bf0ecf8a7214b2a3e.css → cec8d6c00ce6b039698f.css} +0 -0
- /package/dist/client/styles/{65d833da76ffb9e822d5.css → ec37d8bfaa1148156c17.css} +0 -0
- /package/dist/client/styles/{2ce32325356abf89c85a.css → f103260f33c5d2e02238.css} +0 -0
- /package/dist/client/styles/{6698abfc632ba46561e6.css → fb8f301408cc3f1509ea.css} +0 -0
- /package/dist/client/styles/{28bb6e247135d4ee42d0.css → fd24aecec67c3ec3de20.css} +0 -0
package/dist/ssr/manifest.json
CHANGED
|
@@ -83,7 +83,7 @@ label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{fo
|
|
|
83
83
|
.vs-icon-list{text-align:center}.vs-icon-list .vs-icon-list__title{font-size:1rem;font-weight:600;margin-bottom:1.25rem}.vs-icon-list .vs-icon-list__list{display:inline-block;margin:0 auto;padding:0;text-align:left}
|
|
84
84
|
.vs-toggle-btn{z-index:3;display:block}
|
|
85
85
|
.vs-toggle-btn.vs-button.btn-subtle{line-height:1;color:#1f49d6;background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.vs-toggle-btn.vs-button.btn-subtle .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-toggle-btn.vs-button.btn-subtle:hover{color:#1f49d6;background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.vs-toggle-btn.vs-button.btn-subtle:hover .vs-icon{color:#1f49d6}.vs-toggle-btn.vs-button.btn-subtle:active,.vs-toggle-btn.vs-button.btn-subtle:active:focus{color:#fff;background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.vs-toggle-btn.vs-button.btn-subtle:active .vs-icon,.vs-toggle-btn.vs-button.btn-subtle:active:focus .vs-icon{color:#fff}.vs-toggle-btn.vs-button.btn-subtle.btn-md{padding:.5rem .25rem;width:44px;height:44px}.vs-toggle-btn.vs-button.btn-subtle .vs-icon{margin:0}.vs-toggle-btn.vs-button.btn-subtle .fa-icon-colours,.vs-toggle-btn.vs-button.btn-subtle .fa-icon-colours--white{--fa-primary-color: rgb(255, 255, 255);--fa-secondary-color: rgb(32, 15, 46);--fa-secondary-opacity: 1.0}.vs-toggle-btn.vs-button.btn-subtle:hover .fa-icon-colours,.vs-toggle-btn.vs-button.btn-subtle:hover .fa-icon-colours--white{--fa-secondary-color: rgb(31, 73, 214)}
|
|
86
|
-
.vs-video-caption{width:100%;position:relative}.vs-video-caption--no-js{display:none}.vs-video-caption__details{background-color:#200f2e;color:#fff;padding:.75rem}.vs-video-caption__buttons-container{position:absolute;transform:translateY(-100%);width:100%}.vs-video-caption__buttons-container .vs-toggle-btn{display:none}@media(min-width: 992px){.vs-video-caption__buttons-container .vs-toggle-btn{display:block;position:absolute;right:.5rem;top:calc(-24px - 0.75rem)}}.vs-video-caption__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}.vs-video-caption__duration{font-size:1rem;font-weight:300;margin:0}.vs-video-caption__alert{display:flex;justify-content:flex-start}.vs-video-caption__alert .vs-icon{margin-right:1.75rem}.vs-video-caption__alert p{font-size:1rem;line-height:2;margin:-10px 0 0}.vs-video-
|
|
86
|
+
.vs-video-caption{width:100%;position:relative}.vs-video-caption--no-js{display:none}.vs-video-caption__details{background-color:#200f2e;color:#fff;padding:.75rem}.vs-video-caption__buttons-container{position:absolute;transform:translateY(-100%);width:100%}.vs-video-caption__buttons-container .vs-toggle-btn{display:none}@media(min-width: 992px){.vs-video-caption__buttons-container .vs-toggle-btn{display:block;position:absolute;right:.5rem;top:calc(-24px - 0.75rem)}}.vs-video-caption__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}.vs-video-caption__duration{font-size:1rem;font-weight:300;margin:0}.vs-video-caption__alert{display:flex;justify-content:flex-start}.vs-video-caption__alert .vs-icon{margin-right:1.75rem}.vs-video-caption__alert p{font-size:1rem;line-height:2;margin:-10px 0 0}.vs-video-caption__button{min-height:50px;display:flex;align-items:center;padding-top:.25rem;padding-bottom:.25rem;min-height:53px;text-align:left;line-height:1.1}.vs-video-caption__button .vs-icon{margin-right:1.25rem}.vs-video-caption .vs-caption--large .vs-caption__image-caption{margin-bottom:.5rem}@media(min-width: 576px){.vs-video-caption__buttons-container>.container{padding:0}.vs-video-caption__buttons-container .vs-toggle-btn{top:calc(50% - 20px)}}@media(min-width: 576px){.vs-video-caption--wide .vs-video-caption__details{padding:1rem .75rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{font-size:1.125rem;margin-right:1rem;margin-bottom:0}.vs-video-caption--wide .vs-video-caption__buttons-container__button{max-width:400px}}@media(min-width: 992px){.vs-video-caption--wide .vs-video-caption__details{display:block;padding:1rem 1.5rem 1.25rem}.vs-video-caption--wide .vs-video-caption__title{margin-bottom:.25rem}.vs-video-caption--wide .vs-video-caption__button{max-width:360px}}.vs-video-caption__wrapper--narrow{width:100%}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0rem;font-size:0}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .container{padding:0rem}.vs-video-caption__wrapper--narrow .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{font-size:1.875rem}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:4rem;height:4rem;position:relative;padding:0rem;font-size:0}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:block !important}@media(min-width: 576px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button{width:auto;height:auto;padding:.75rem 1rem;font-size:1rem}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-video-caption__buttons-container .vs-video-caption__button .vs-icon{position:relative;top:auto;left:auto;transform:none;height:1.25rem;width:1.25rem}}@media(min-width: 992px){.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__video-caption-wrapper .vs-video-caption{width:400px}.vs-image-with-caption--hero.vs-image-with-caption--video .vs-image-with-caption__image-wrapper .vs-toggle-btn{display:none !important}}.no-js .vs-video-caption{display:none}.no-js .vs-video-caption--no-js{display:block}@media(min-width: 576px){.no-js .vs-video-caption__details{max-width:84%;margin:0 auto;border-bottom:#e9e9e9 1px solid}}@media(min-width: 992px){.no-js .vs-video-caption__details{max-width:100%;margin:0;border-bottom:none}}.no-js .vs-video-caption__title,.no-js .vs-video-caption__duration,.no-js .vs-video-caption__button,.no-js .vs-video-caption .vs-toggle-btn{display:none}
|
|
87
87
|
.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:0rem}}@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}
|
|
88
88
|
.vs-itinerary-border-overlap__wrapper{min-height:200px;margin-left:2.5rem}@media(min-width: 576px){.vs-itinerary-border-overlap__wrapper{margin-left:6rem}}.vs-itinerary-border-overlap__wrapper .btn{margin-left:-2.5rem}@media(min-width: 576px){.vs-itinerary-border-overlap__wrapper .btn{margin-left:-1rem}.vs-itinerary-border-overlap__wrapper .btn:first-of-type{margin-top:-1rem}}
|
|
89
89
|
.vs-itinerary-day{border-top:1px solid #a3a3cc;margin-top:3rem}@media(max-width: 575.98px){.vs-itinerary-day{max-width:initial;width:calc(100% + 1rem);margin-left:-0.5rem;padding:0rem .5rem}}.vs-itinerary-day__list-item.card.vs-accordion-item{width:calc(100% + 1rem);margin-left:-0.5rem;padding:0 .75rem 0;border-top:0}@media(min-width: 768px){.vs-itinerary-day__list-item.card.vs-accordion-item{width:calc(100% + 1.5rem);margin-left:-0.75rem;padding:1rem 1rem 0}}.vs-itinerary-day__list-item.card.vs-accordion-item .vs-accordion-toggle{box-shadow:none;padding:0}.vs-itinerary-day__list-item.card.vs-accordion-item .vs-accordion-toggle:focus{box-shadow:0 0 0 2px #3369ff}.vs-itinerary-day__list-item.card.vs-accordion-item .vs-accordion-toggle .vs-accordion-toggle__icon{align-self:auto;margin-top:1.5rem}.vs-itinerary-day__list-item.card.vs-accordion-item .vs-accordion-toggle .vs-accordion-toggle__icon .vs-icon{color:#200f2e}@media(min-width: 992px){.vs-itinerary-day__list-item.card.vs-accordion-item .vs-accordion-toggle .vs-accordion-toggle__icon{align-self:center;margin-top:0}}.vs-itinerary-day__header{display:block;text-align:left;margin:1.5rem 0}.vs-itinerary-day__header .vs-itinerary-day__title{color:#a8308c;display:inline-block;font-size:1.625rem;font-weight:600}@media(min-width: 768px){.vs-itinerary-day__header .vs-itinerary-day__title{font-size:1.8125rem}}.vs-itinerary-day__header .vs-itinerary-day__sub-heading{display:block;font-size:2rem;margin-top:calc(1em/1.4);margin-bottom:calc(1em*0.25);font-weight:600}@media(min-width: 768px){.vs-itinerary-day__header .vs-itinerary-day__sub-heading{font-size:2.25rem}}@media(min-width: 992px){.vs-itinerary-day__header{text-align:center;margin:0 0 1.5rem}}.vs-itinerary-day__intro-content{margin-bottom:2rem}@media(max-width: 575.98px){.vs-itinerary-day__panel .list-inline-item:not(:last-child){margin-right:.25rem}}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[459],{10365:function(e,t,i){"use strict";i.d(t,{X:function(){return o.X}});var o=i(79469)},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")}}}},43381:function(){},53507:function(e,t,i){"use strict";i(58111)},58111: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(43381),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(10365),n=i(81049);i(53507);const s=(0,i(66262).A)(n.A,[["render",o.X]]);t.default=s},79469: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"),_=(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:"vs-icon-control-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,__:[0]},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)(_,{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)(_,{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)(_,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.noJsMessage),1)]})),_:1})])):(0,o.Q3)("",!0)],2)}},81049:function(e,t,i){"use strict";i.d(t,{A:function(){return o.A}});var o=i(32373)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9116],{2514:function(e,t,s){"use strict";s(40966)},11736:function(e,t,s){"use strict";s.d(t,{A:function(){return i.A}});var i=s(90020)},40420:function(){},40966: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),k=s.n(g),v=s(40420),f=s.n(v),y={};y.styleTagTransform=k(),y.setAttributes=c(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=h(),n()(f(),y),f()&&f().locals&&f().locals},44156: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"),k=(0,i.g2)("VsImg"),v=(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)(k,{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)(v,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"fa-regular fa-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:h.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-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),""!==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)}},59116:function(e,t,s){"use strict";s.r(t);var i=s(96812),n=s(11736);s(2514);const r=(0,s(66262).A)(n.A,[["render",i.X]]);t.default=r},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-m|display-s|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?this.videoStore.videos[this.videoId]:null},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")}}}},96812:function(e,t,s){"use strict";s.d(t,{X:function(){return i.X}});var i=s(44156)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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],{18122:function(e,t,n){"use strict";n(64478)},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})])]))}},43474:function(e,t,n){"use strict";n.d(t,{A:function(){return i.A}});var i=n(43582)},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=1,e.getPlayerDetails();case 1:e.shouldAutoPlay&&(e.shouldAutoPlay=!1,e.playVideo());case 2: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=1;break}return t.next=1,e.player.playVideo();case 1: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=1;break}return t.next=1,e.player.pauseVideo();case 1: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=1;break}return t.next=1,e.player.stopVideo();case 1: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=1;break}return t.next=1,e.player.getDuration().then((function(t){e.formatTime(t),e.storeVideoDetails()}));case 1: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())}))}}}},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},79832:function(e,t,n){"use strict";n.d(t,{X:function(){return i.X}});var i=n(41e3)},79980:function(){},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}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,3498,4982,6422,8745,8836,4580,9122,2829,1459,5921,7957],(function(){return e(e.s=85513)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
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],{143: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(43813),b=r.n(k),_={};_.styleTagTransform=m(),_.setAttributes=c(),_.insert=a().bind(null,"head"),_.domAPI=i(),_.insertStyleElement=p(),o()(b(),_),b()&&b().locals&&b().locals},34965: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)("VsBody"),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})])}},43813:function(){},66649:function(e,t,r){"use strict";r.r(t);var n=r(93445),o=r(69295);r(87115);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(81960)},81960:function(e,t,r){"use strict";var n=r(11438),o=r(44580),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,VsBody: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}}}},87115:function(e,t,r){"use strict";r(143)},93445:function(e,t,r){"use strict";r.d(t,{X:function(){return n.X}});var n=r(34965)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,4982,6422,8745,8836,8638,2368,7521,1438,4580,9122,2829,1459],(function(){return e(e.s=66649)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
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],{3916:function(){},46004:function(t,e,i){"use strict";i.r(e);var o=i(70084),n=i(77012);i(70014);const s=(0,i(66262).A)(n.A,[["render",o.X]]);e.default=s},47090: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(3916),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},70014:function(t,e,i){"use strict";i(47090)},70084:function(t,e,i){"use strict";i.d(e,{X:function(){return o.X}});var o=i(97012)},77012:function(t,e,i){"use strict";i.d(e,{A:function(){return o.A}});var o=i(84224)},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}}}},97012: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)}}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,7800,9394,4982,6422,8745,8836,4580,1574,9122,2829,1459,5921,7933,459],(function(){return t(t.s=46004)})),t.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCookieChecker=n():t.VsCookieChecker=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[833],{7260:function(t,n){n.A=function(){return Math.random().toString(36).substring(7)}},12085:function(t,n,e){var o=e(2829),i=e(24057),r=null;n.A={data:function(){return{oneTrust:new i.A,activeGroups:""}},watch:{activeGroups:function(){var t=this.activeGroups.split(",").filter((function(t){return""!==t}));r&&(r.setCookieArray(t),r.setTestRun(!0))}},mounted:function(){r=(0,o.A)()},created:function(){this.checkOneTrust(),this.checkActiveGroups()},methods:{checkOneTrust:function(){var t=this;"undefined"!=typeof window&&this.oneTrust.checkThirdPartyLibrary("OneTrust",(function(){window.OneTrust.OnConsentChanged((function(){t.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",(function(){t.activeGroups=window.OnetrustActiveGroups}))}))}))},checkActiveGroups:function(){var t=this;"undefined"!=typeof window&&this.oneTrust.checkThirdPartyLibrary("OnetrustActiveGroups",(function(){t.activeGroups=window.OnetrustActiveGroups}))}}}},20311:function(t,n,e){e.d(n,{X:function(){return r}});var o=e(20641),i={class:"d-none"};function r(t,n,e,r,c,s){return(0,o.uX)(),(0,o.CE)("span",i)}},24057:function(t,n,e){e.d(n,{A:function(){return a}});var o=e(92901),i=e(23029),r=e(64467),c=e(7260),s=e(96763),a=(0,o.A)((function t(){var n=this;(0,i.A)(this,t),(0,r.A)(this,"init",(function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)})),(0,r.A)(this,"instaOT",(function(t,e,o,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;s.log("insta");var c=n;n.checkThirdPartyLibrary("OneTrust",(function(){n.onetrustCookieCheck(t,(function(n){if(n)c.setIframeSrc();else if(i){s.log("fallback",o),s.log("container",i);var a=Array.from(o.classList)[0];i.length>1?i.forEach((function(n,s){i[s].querySelector(".".concat(a))||c.showOneTrustFallback(t,e,o,i[s],r)})):i.querySelector(".".concat(a))||c.showOneTrustFallback(t,e,o,i,r)}})),window.OneTrust.OnConsentChanged((function(){c.onetrustCookieCheck(t,(function(n){n&&(window.OneTrustEventBus.dispatchEvent("otCategory-approved"),c.hideOneTrustFallback(t),c.setIframeSrc())}))}))}))})),(0,r.A)(this,"showOneTrustFallback",(function(t,e,o,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;s.log("showfallback");var a={visible:!1,fallback:o};if(a.visible)return!1;if(i.length>1&&a.fallback)s.log("aqui"),i.forEach((function(e){var o=a.fallback.cloneNode(!0);o.id=(0,c.A)(),e.insertAdjacentHTML("afterend",o.outerHTML);var i=document.getElementById(o.id);i.style.display="block",a.visible=!0,o.classList.add("vscookies-".concat(t)),n.fallbacks.push({id:i.id,cat:t,visible:!0}),n.setFBButtonListener(o)}));else{s.log("aca");var u=a.fallback.cloneNode(!0);u.id=(0,c.A)(),u.style.display="block",u.classList.add("vscookies-".concat(t)),r?i.insertBefore(u,i.childNodes[r]):i.appendChild(u),n.fallbacks.push({id:u.id,cat:t}),a.visible=!0,n.setFBButtonListener(u)}})),(0,r.A)(this,"onetrustCookieCheck",(function(t,n){if("undefined"!=typeof window)return n(window.OnetrustActiveGroups.includes(t))})),(0,r.A)(this,"hideOneTrustFallback",(function(t){n.fallbacks.map((function(n){n.cat===t&&document.getElementById(n.id)&&(document.getElementById(n.id).style.display="none")}));var e=document.querySelectorAll(".vscookies-".concat(t));e.size>0&&e.map((function(t){t.style.display="none"}))})),(0,r.A)(this,"checkThirdPartyLibrary",(function(t,e){var o=n;window.setTimeout((function(){window[t]?e(window[t]):o.checkThirdPartyLibrary(t,e)}),500)})),(0,r.A)(this,"setFBButtonListener",(function(t){t.querySelector("#ot-sdk-btn").addEventListener("click",(function(){window.OneTrust.ToggleInfoDisplay()}))})),(0,r.A)(this,"setIframeSrc",(function(){var t=document.querySelectorAll('iframe[data-src]:not([data-src=""])');t&&t.forEach((function(t){t.src=t.dataset.src,t.removeAttribute("data-src")}))})),this.fallbacks=[]}))},76665:function(t,n,e){e.d(n,{A:function(){return o.A}});var o=e(12085)},87203:function(t,n,e){e.r(n);var o=e(99271),i=e(76665);const r=(0,e(66262).A)(i.A,[["render",o.X]]);n.default=r},99271:function(t,n,e){e.d(n,{X:function(){return o.X}});var o=e(20311)}},function(t){return t.O(0,[641,6262,3751,4467,7527,8086,6057,2829],(function(){return t(t.s=87203)})),t.O()}])}));
|