@visitscotland/component-library 4.8.2 → 4.9.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.
Files changed (51) hide show
  1. package/dist/client/manifest.json +79 -61
  2. package/dist/client/scripts/{be5d458e4228597bbe7f.js → 0b35fe9046c4df7f9069.js} +1 -1
  3. package/dist/client/scripts/1fcbc41ddfc2f1127ffd.js +1 -0
  4. package/dist/client/scripts/{4983897f9fb28ac41410.js → 255c3cbb360718a9dcbc.js} +1 -1
  5. package/dist/client/scripts/{7238f171414569f48dcf.js → 2f50ebfa0b93f25a5c23.js} +1 -1
  6. package/dist/client/scripts/{69456a75c8e613681829.js → 3aaec75faa024f6a00b1.js} +1 -1
  7. package/dist/client/scripts/40c88120a022e3905df6.js +1 -0
  8. package/dist/client/scripts/{fb99899e8e2067207032.js → 4c7a7e860040ef9c420f.js} +1 -1
  9. package/dist/client/scripts/{38ce1d0c3513df64f443.js → 5f0b6647b3831883a22b.js} +1 -1
  10. package/dist/client/scripts/{05484fd4b55edc9f20f1.js → 649cc76cea6652b5a37a.js} +1 -1
  11. package/dist/client/scripts/{871c8ebc30fd840b36ab.js → 654f87bad576cd99c781.js} +1 -1
  12. package/dist/client/scripts/{124d87b30b4163349aaf.js → 6e7520d815f5c8568575.js} +1 -1
  13. package/dist/client/scripts/{65419d8a841fd3d4fb1b.js → 82c3c89c1ff981d5e406.js} +1 -1
  14. package/dist/client/scripts/{ce91d1312b14f1160fe5.js → 8b8a48f76a72354c875b.js} +1 -1
  15. package/dist/client/scripts/{35d032ab0f9792c26dff.js → 8d1d649b55901f23d5b3.js} +1 -1
  16. package/dist/client/scripts/{d1e2b7320a9ed288184b.js → 933902c3e17bc73de94c.js} +1 -1
  17. package/dist/client/scripts/{f3291c43cf0110450425.js → a1068973314865dbf912.js} +1 -1
  18. package/dist/client/scripts/{0f312962307bb451cbcc.js → a4b52e4219e28c0885f7.js} +1 -1
  19. package/dist/client/scripts/{2232b2491f0299c5201b.js → af63c50271c5457c28d0.js} +1 -1
  20. package/dist/client/scripts/c1629d59ab57cc9eb7b9.js +1 -0
  21. package/dist/client/scripts/{5fcf76dd5f152170c721.js → c9fa6fdf02a57f40f869.js} +1 -1
  22. package/dist/client/scripts/d502c59c539f22283283.js +1 -0
  23. package/dist/client/scripts/{2961c6dd5863b2ead56a.js → e6ac8286dea01de084cf.js} +1 -1
  24. package/dist/client/scripts/f4e25e3a6d05e2128711.js +1 -0
  25. package/dist/client/scripts/{a222cc85442ae484e3e3.js → f87251bcbb33a1c88149.js} +1 -1
  26. package/dist/client/scripts/{14dd83fcfdb910e502e2.js → fec8d954621c73ff71bd.js} +1 -1
  27. package/dist/client/styles/40c88120a022e3905df6.css +1 -0
  28. package/dist/client/styles/933902c3e17bc73de94c.css +1 -0
  29. package/dist/components/vs-component-library.css +1 -1
  30. package/dist/components/vs-component-library.js +47 -47
  31. package/dist/components/vs-component-library.mjs +1648 -1648
  32. package/dist/ssr/index.js +1 -1
  33. package/dist/ssr/manifest.json +1 -1
  34. package/dist/ssr/styles/{fa539f5e278a18c6a379.css → 8f55694a739bc92fe9c3.css} +2 -2
  35. package/package.json +1 -1
  36. package/dist/client/scripts/07354011ea17b3d95e93.js +0 -1
  37. package/dist/client/scripts/a711485aacf81264be3e.js +0 -1
  38. package/dist/client/scripts/eb8bd7cab79c8b156c1d.js +0 -1
  39. package/dist/client/scripts/fca05dd323b7d118fca0.js +0 -1
  40. package/dist/client/styles/a711485aacf81264be3e.css +0 -1
  41. package/dist/client/styles/d1e2b7320a9ed288184b.css +0 -1
  42. /package/dist/client/styles/{fca05dd323b7d118fca0.css → 1fcbc41ddfc2f1127ffd.css} +0 -0
  43. /package/dist/client/styles/{4983897f9fb28ac41410.css → 255c3cbb360718a9dcbc.css} +0 -0
  44. /package/dist/client/styles/{7238f171414569f48dcf.css → 2f50ebfa0b93f25a5c23.css} +0 -0
  45. /package/dist/client/styles/{38ce1d0c3513df64f443.css → 5f0b6647b3831883a22b.css} +0 -0
  46. /package/dist/client/styles/{05484fd4b55edc9f20f1.css → 649cc76cea6652b5a37a.css} +0 -0
  47. /package/dist/client/styles/{124d87b30b4163349aaf.css → 6e7520d815f5c8568575.css} +0 -0
  48. /package/dist/client/styles/{f3291c43cf0110450425.css → a1068973314865dbf912.css} +0 -0
  49. /package/dist/client/styles/{eb8bd7cab79c8b156c1d.css → d502c59c539f22283283.css} +0 -0
  50. /package/dist/client/styles/{2961c6dd5863b2ead56a.css → e6ac8286dea01de084cf.css} +0 -0
  51. /package/dist/client/styles/{14dd83fcfdb910e502e2.css → fec8d954621c73ff71bd.css} +0 -0
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/fa539f5e278a18c6a379.css"
23
+ "styles/8f55694a739bc92fe9c3.css"
24
24
  ]
25
25
  }
26
26
  }
@@ -15,7 +15,7 @@
15
15
  .vs-banner{background:#e5e5f0;padding:.75rem 0}@media(min-width: 768px){.vs-banner__icon-wrapper{padding-right:0;flex:0 0 6%;max-width:6%}}@media(min-width: 992px){.vs-banner__icon-wrapper{display:inline-flex;align-items:center;flex:0 0 5%;max-width:5%}}@media(min-width: 1200px){.vs-banner__icon-wrapper{flex:0 0 4%;max-width:4%}}.vs-banner__content-wrapper{align-self:center}.vs-banner__icon{display:inline-block}@media(min-width: 576px){.vs-banner__icon{margin-right:.75rem}.vs-banner__icon.vs-icon.vs-icon--size-sm{font-size:24px}}.vs-banner__title.vs-heading{margin-bottom:.5rem}.vs-banner__title.vs-heading .vs-icon{vertical-align:bottom;margin-right:.25rem}.vs-banner__text.vs-rich-text-wrapper--normal{display:inline-block;padding-left:.25rem}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal{padding-left:0}}.vs-banner__text.vs-rich-text-wrapper--normal p{display:inline}.vs-banner__text.vs-rich-text-wrapper--normal p:last-of-type{margin-bottom:.5rem}.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:.875rem;line-height:1.3}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:1rem}}.vs-banner__close-btn.vs-button.vs-button--icon-only.btn-md{float:right}
16
16
  .vs-blog-details__date{display:block}@media(min-width: 576px){.vs-blog-details__date{display:inline}}.vs-blog-details__divider{display:none;padding:0 .25rem}@media(min-width: 576px){.vs-blog-details__divider{display:inline}}.vs-blog-details--highlight{color:#535396}
17
17
  .vs-breadcrumb-item a:focus{outline:2px solid #3369ff}.vs-breadcrumb-item{color:#606060;font-size:1rem;font-weight:400;white-space:nowrap;overflow:hidden;padding:3px}.vs-breadcrumb-item:last-child{color:#606060;font-weight:300}.vs-breadcrumb-item a{color:#606060}.vs-breadcrumb-item a,.vs-breadcrumb-item span{text-overflow:ellipsis;overflow:hidden}@media(max-width: 991.98px){.vs-breadcrumb-item{font-size:.75rem}}@media(max-width: 767.98px){.vs-breadcrumb-item{display:none}.vs-breadcrumb-item:last-child,.vs-breadcrumb-item:nth-last-child(2){display:block;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vs-breadcrumb-item:nth-last-child(2){padding-left:0}.vs-breadcrumb-item:nth-last-child(2)::before{content:"";padding:0}}
18
- .vs-button-toggle-group--radios label.btn-secondary{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-button-toggle-group{width:100%;display:flex;justify-content:center}.vs-button-toggle-group legend{border:0;clip:rect(0, 0, 0, 0);overflow:hidden;position:absolute;height:1px;margin:-1px;padding:0;width:1px}.vs-button-toggle-group--radios{background-color:#d6e5ff;display:flex;border-radius:50rem;overflow:hidden}.vs-button-toggle-group--radios input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.vs-button-toggle-group--radios label.btn-secondary{color:#1f49d6;transition:none;padding-top:.5rem;margin-bottom:0;padding-bottom:.5rem;display:flex;align-items:center}.vs-button-toggle-group--radios label.btn-secondary .vs-icon{transition:none;color:#1f49d6}.vs-button-toggle-group--radios label.btn-secondary>span{display:flex;height:32px;align-items:center;padding:0 .5rem}.vs-button-toggle-group--radios label.btn-secondary.focus{box-shadow:none}.vs-button-toggle-group--radios label.btn-secondary:hover{background-color:#17359c;border-color:#17359c;color:#fff}.vs-button-toggle-group--radios label.btn-secondary:hover .vs-icon{color:#fff}.vs-button-toggle-group--tabbed-focus input:focus+label span{border:2px solid #3369ff}.vs-button-toggle-group--button{display:flex}.vs-button-toggle-group--button:first-child{margin-right:-1rem;border-top-left-radius:50rem;border-bottom-left-radius:50rem}.vs-button-toggle-group--button:last-child{border-top-right-radius:50rem;border-bottom-right-radius:50rem}.vs-button-toggle-group--button .btn{padding:0 1.5rem}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{z-index:2;border-radius:50rem;cursor:default;color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}@media(min-width: 992px){.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}}
18
+ .vs-button-toggle-group--radios label.btn-secondary{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-button-toggle-group{width:100%;display:flex;justify-content:center}.vs-button-toggle-group legend{border:0;clip:rect(0, 0, 0, 0);overflow:hidden;position:absolute;height:1px;margin:-1px;padding:0;width:1px}.vs-button-toggle-group--radios{background-color:#d6e5ff;display:flex;border-radius:50rem;overflow:hidden}.vs-button-toggle-group--radios input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.vs-button-toggle-group--radios label.btn-secondary{color:#1f49d6;transition:none;padding-top:.5rem;margin-bottom:0;padding-bottom:.5rem;display:flex;align-items:center}.vs-button-toggle-group--radios label.btn-secondary .vs-icon{transition:none;color:#1f49d6}.vs-button-toggle-group--radios label.btn-secondary>span{display:flex;height:32px;align-items:center;padding:0 .5rem}.vs-button-toggle-group--radios label.btn-secondary.focus{box-shadow:none}.vs-button-toggle-group--radios label.btn-secondary:hover{background-color:#17359c;border-color:#17359c;color:#fff}.vs-button-toggle-group--radios label.btn-secondary:hover .vs-icon{color:#fff}.vs-button-toggle-group--tabbed-focus input:focus+label span{border:2px solid #3369ff}.vs-button-toggle-group--button{display:flex}.vs-button-toggle-group--button:first-child{border-top-left-radius:50rem;border-bottom-left-radius:50rem}.vs-button-toggle-group--button:first-child:not(:last-child){margin-right:-1rem}.vs-button-toggle-group--button:last-child{border-top-right-radius:50rem;border-bottom-right-radius:50rem}.vs-button-toggle-group--button .btn{padding:0 1.5rem}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{z-index:2;border-radius:50rem;cursor:default;color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}@media(min-width: 992px){.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}}
19
19
  .low-res-img{background-repeat:no-repeat;background-size:cover;display:block}.low-res-img.generic-lqip{background-image:url("..//[object%20Module]")}
20
20
  .vs-link.vs-link--variant-primary:focus{outline:2px solid #3369ff}.vs-link.vs-link--variant-on-dark:focus{outline:2px solid #fffa99}.vs-link.vs-link--variant-primary{color:#1f49d6}.vs-link.vs-link--variant-primary:active{color:#112876}.vs-link.vs-link--variant-primary:visited{color:#a8308c}.vs-link.vs-link--variant-on-dark{color:#fff}.vs-link.vs-link--variant-on-dark:visited{color:#d6e5ff}.vs-link .vs-link__icon{vertical-align:baseline}
21
21
  .vs-product-card .stretched-link:focus{outline:2px solid #3369ff}.vs-product-card{text-align:left}.vs-product-card .card{transition:box-shadow .5s;border:none;position:relative;padding-bottom:1.25rem}.vs-product-card .card:hover .vs-product-card__title a{text-decoration:underline}.vs-product-card .card-body{padding:.25rem 0 0;min-height:11.5rem}.vs-product-card .card-body--short{min-height:10rem}.vs-product-card .stretched-link{color:#200f2e;text-decoration:none;display:block}.vs-product-card .vs-product-card__link:focus{border:2px solid #3369ff}.vs-product-card .vs-product-card__image-container{position:relative;height:0;padding-bottom:66.6%}.vs-product-card .vs-product-card__image-inner-container{position:absolute;top:0;left:0;width:100%;height:100%}.vs-product-card .vs-product-card__img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.vs-product-card .vs-product-card__title{display:flex;margin:.75rem 0 .5rem;text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:2}.vs-product-card .vs-product-card__description{font-size:1rem;height:2rem}.vs-product-card .vs-product-card__description p{margin-bottom:.25rem}.vs-product-card .vs-product-card__description .vs-product-card__description-inner{text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:2}.vs-product-card--disabled .card{opacity:.5}.vs-product-card--disabled .card:hover .vs-product-card__title a{text-decoration:none}.vs-product-card--disabled .stretched-link{cursor:default}.no-js .vs-product-card--disabled .card{opacity:1}.no-js .vs-product-card--disabled .card .vs-product-card__title a{text-decoration:underline}.no-js .vs-product-card--disabled .stretched-link{cursor:pointer}
@@ -72,7 +72,7 @@ label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{fo
72
72
  .vs-dropdown .dropdown-menu .vs-global-menu__languages__item:not(:last-of-type){border-bottom:1px solid #fff}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item{padding:.75rem;color:#fff;text-decoration:none;line-height:1}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item:hover{background:#33225d}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item:focus{background:#5b2487;box-shadow:0 0 0 2px #fffa99 inset}.no-js .vs-global-menu__languages__item{width:100%;border:none}@media(min-width: 768px){.no-js .vs-global-menu__languages__item{width:auto;padding:.75rem}}.no-js .vs-global-menu__languages__item .dropdown-item{color:#fff;text-decoration:underline;font-size:1rem}.no-js .vs-global-menu__languages__item .dropdown-item:hover{background:rgba(0,0,0,0);text-decoration:none}@media(min-width: 768px){.no-js .vs-global-menu__languages__item .dropdown-item{padding:.25rem .5rem}}@media(min-width: 992px){.no-js .vs-global-menu__languages__item .dropdown-item{padding:.25rem 1rem}}
73
73
  .vs-global-menu__list{position:initial;flex:auto}.vs-global-menu__list_item a{color:#fff;text-decoration:none;transition:.2s all;padding:.75rem 1.25rem;line-height:1;display:inline-block}.vs-global-menu__list_item a:focus{outline:0;box-shadow:0 0 0 2px #fffa99 inset}.vs-global-menu__list_item a:hover{background:#d6e5ff}.vs-global-menu__list_item a:active{background:#fff;color:#200f2e;outline:none}.vs-global-menu__list_item--active a{background:#fff;color:#200f2e}.vs-global-menu__list_item--active a:hover{background:#fff}.vs-global-menu__list_item--active a:active{background:#fff;color:#200f2e}.no-js .vs-global-menu__list{width:100%;flex-wrap:wrap;display:flex !important}@media(min-width: 768px){.no-js .vs-global-menu__list{flex-wrap:nowrap}}.no-js .vs-global-menu__list_item{display:block;flex-basis:100%}@media(min-width: 768px){.no-js .vs-global-menu__list_item{flex-basis:auto;border:none;margin:0 .5rem}}.no-js .vs-global-menu__list_item:first-of-type{margin-left:0}.no-js .vs-global-menu__list_item:last-of-type{margin-right:0}.no-js .vs-global-menu__list_item a{max-height:none;height:auto;display:block;text-align:center;font-size:1rem;padding:.75rem 1.25rem;line-height:1.2}
74
74
  .vs-global-menu{background:#5b2487;color:#fff;position:relative;font-size:.75rem;display:flex;align-items:center}.vs-global-menu__wrapper{position:initial;display:flex;align-items:center}@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}
75
- .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px;border-radius:0 0 40px 0}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}
75
+ .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}
76
76
  .vs-hero-section{background:#fff;--grid-columns: 12px 1fr 1fr 12px;--content_maxwidth: 100%;--container-col: 2 / span 2;--container-row: 1;--image-col: 1 / -1;--image-row: 2;--inset-image-col: 2 / span 2;--divider-col: 2 / span 2;--divider-row: 2}@media(min-width: 576px){.vs-hero-section{--content_maxwidth: 516px;--grid-columns: 1fr min-content min-content 1fr}}@media(min-width: 768px){.vs-hero-section{--content_maxwidth: 696px}}@media(min-width: 992px){.vs-hero-section{--content_maxwidth: 936px}}@media(min-width: 1200px){.vs-hero-section{--content_maxwidth: 1116px}}@media(min-width: 1400px){.vs-hero-section{--content_maxwidth: 1316px}}.vs-hero-section__grid{display:grid;grid-template-columns:var(--grid-columns);width:100%}.vs-hero-section__image{grid-row:var(--image-row);grid-column:var(--image-col)}.vs-hero-section__image--inset{grid-column:var(--inset-image-col);padding:0}.vs-hero-section__text-container{grid-row:var(--container-row);grid-column:var(--container-col);width:var(--content_maxwidth);padding:1.5rem 0 2.5rem 0}@media(min-width: 992px){.vs-hero-section__text-container{padding:3rem 0}}.vs-hero-section__text{width:100%}@media(min-width: 576px){.vs-hero-section__text{width:80%}}@media(min-width: 768px){.vs-hero-section__text{width:70%}}@media(min-width: 992px){.vs-hero-section__text{width:100%;display:grid;grid-template-columns:1.5fr 1fr;gap:6rem}}@media(min-width: 1200px){.vs-hero-section__text{grid-template-columns:1.5fr .75fr}}@media(min-width: 1400px){.vs-hero-section__text{gap:12rem}}.vs-hero-section__text .vs-hero-section__heading.vs-heading{color:#5b2487}@media(min-width: 768px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{font-size:2rem;margin:1rem 0 .75rem}}@media(min-width: 992px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{margin:0}}@media(min-width: 1200px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{font-size:2.5625rem;margin:1rem 0 .75rem;margin:0}}.vs-hero-section__divider{height:2px;margin:0;color:#e9e9e9;grid-row:var(--divider-row);grid-column:var(--divider-col)}.vs-hero-section--split{--split-image-row: 1;--split-image-col: 1 / -1;--split-container-row: 2;--split-container-col: 2 / -2}@media(min-width: 992px){.vs-hero-section--split{--split-container-row: 1;--split-container-col: 2 / span 2;--split-image-row: 1;--split-image-col: 3 / span 2}}.vs-hero-section--split .vs-hero-section__image{grid-row:var(--split-image-row);grid-column:var(--split-image-col);position:relative;overflow:hidden;z-index:0;min-height:14rem;max-width:1000px}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__image{grid-row:var(--split-image-row);grid-column:var(--split-image-col)}}.vs-hero-section--split .vs-hero-section__text-container{grid-row:var(--split-container-row);grid-column:var(--split-container-col);padding-top:0}.vs-hero-section--split .vs-hero-section__text{height:100%;width:100%;padding:0}@media(min-width: 576px){.vs-hero-section--split .vs-hero-section__text{width:75%}}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__text{display:grid;grid-template-columns:1fr;gap:0;place-content:center;width:42%}}@media(min-width: 1400px){.vs-hero-section--split .vs-hero-section__text{width:40%}}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__text .vs-hero-section__heading.vs-heading{margin:0 0 1.5rem 0}}
77
77
  .vs-icon-list__item{display:inline-table;text-align:center;width:90px;margin-bottom:1rem;padding:0 .25rem;font-size:.875rem;line-height:1.2}.vs-icon-list__item .vs-icon{margin-bottom:.75rem}
78
78
  .vs-icon-list{text-align:center}.vs-icon-list .vs-icon-list__title{font-size:1rem;font-weight:400;margin-bottom:1.25rem}.vs-icon-list .vs-icon-list__list{display:inline-block;margin:0 auto;padding:0;text-align:left}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "4.8.2",
3
+ "version": "4.9.0",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3453],{43145:function(n,t,r){function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=Array(t);r<t;r++)e[r]=n[r];return e}r.d(t,{A:function(){return e}})},96369:function(n,t,r){function e(n){if(Array.isArray(n))return n}r.d(t,{A:function(){return e}})},6986:function(n,t,r){function e(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,o,u,i,c=[],a=!0,l=!1;try{if(u=(r=r.call(n)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(e=u.call(r)).done)&&(c.push(e.value),c.length!==t);a=!0);}catch(n){l=!0,o=n}finally{try{if(!a&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}r.d(t,{A:function(){return e}})},76562:function(n,t,r){function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:function(){return e}})},3453:function(n,t,r){r.d(t,{A:function(){return c}});var e=r(96369),o=r(6986),u=r(27800),i=r(76562);function c(n,t){return(0,e.A)(n)||(0,o.A)(n,t)||(0,u.A)(n,t)||(0,i.A)()}},27800:function(n,t,r){r.d(t,{A:function(){return o}});var e=r(43145);function o(n,t){if(n){if("string"==typeof n)return(0,e.A)(n,t);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.A)(n,t):void 0}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8533],{8257:function(){},17099:function(t,e,n){"use strict";var i=n(90630),s=n(31574);e.A={name:"VsHeroSectionImage",status:"prototype",release:"0.0.1",components:{VsCaption:i.default,VsImg:s.default},props:{src:{type:String,required:!0},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},split:{type:Boolean,default:!1}},computed:{isSplit:function(){return this.split?"vs-hero-section-image--split":""}}}},87317:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(20641),s=n(90033);function r(t,e,n,r,a,o){var c=(0,i.g2)("VsImg"),l=(0,i.g2)("VsCaption");return(0,i.uX)(),(0,i.CE)("div",{class:(0,s.normalizeClass)(["vs-hero-section-image",o.isSplit]),"data-test":"vs-hero-section-image"},[(0,i.bF)(c,{class:"vs-hero-section-image__img",src:n.src,alt:n.imgAlt},null,8,["src","alt"]),n.imgCaption||n.imgCredit?((0,i.uX)(),(0,i.Wv)(l,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section-image__caption"},(0,i.eX)({credit:(0,i.k6)((function(){return[(0,i.eW)((0,s.toDisplayString)(n.imgCredit),1)]})),_:2},[n.split?void 0:{name:"caption",fn:(0,i.k6)((function(){return[(0,i.eW)((0,s.toDisplayString)(n.imgCaption),1)]})),key:"0"}]),1024)):(0,i.Q3)("",!0)],2)}},11279:function(t,e,n){"use strict";var i=n(85072),s=n.n(i),r=n(97825),a=n.n(r),o=n(77659),c=n.n(o),l=n(55056),u=n.n(l),p=n(10540),m=n.n(p),g=n(41113),d=n.n(g),f=n(8257),v=n.n(f),y={};y.styleTagTransform=d(),y.setAttributes=u(),y.insert=c().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=m(),s()(v(),y),v()&&v().locals&&v().locals},28533:function(t,e,n){"use strict";n.r(e);var i=n(87317),s=n(20295);n(1203);const r=(0,n(66262).A)(s.A,[["render",i.X]]);e.default=r},20295:function(t,e,n){"use strict";n.d(e,{A:function(){return i.A}});var i=n(17099)},1203:function(t,e,n){"use strict";n(11279)}}]);
@@ -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.VsMapWithSidebar=t():e.VsMapWithSidebar=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[316],{14725:function(){},50106:function(e,t,s){"use strict";var a=s(64467),n=s(11438),i=s(48836),o=s(79122),r=s(90080),l=s(57536),u=s(10810),c=s(79920),d=s(81610),p=s(4249);function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,a)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){(0,a.A)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var h=null;t.A={name:"VsMapWithSidebar",status:"prototype",release:"0.0.1",components:{VsContainer:n.T$,VsRow:n.AQ,VsCol:n.Il,VsMap:d.default,VsButton:i.default,VsMapWithSidebarPanel:p.default,VsButtonToggleGroup:r.default,VsWarning:o.default},provide:function(){return{filters:this.filters,placesData:this.placesData,mapId:this.mapId,regions:this.regionsData,clearSelectionText:this.clearSelectionText,applyFiltersText:this.applyFiltersText,subCatList:this.subCatList,filtersAppliedText:this.filtersAppliedText,clearFiltersText:this.clearFiltersText,focussedListItem:this.focussedListItem}},props:{categoryHeading:{type:String,default:""},filters:{type:Array,required:!0},placesData:{type:Array,required:!0},mapId:{type:String,required:!0},mainHeadingExists:{type:Boolean,default:!1},initialSelected:{type:String,default:""},toggleData:{type:Array,default:function(){return[]}},buttonsLabel:{type:String,default:""},clearSelectionText:{type:String,required:!0},applyFiltersText:{type:String,required:!0},detailsEndpoint:{type:String,default:""},regionBounds:{type:Object,default:function(){}},clearFiltersText:{type:String,required:!0},filtersAppliedText:{type:String,required:!0},placeId:{type:String,default:null},mapFilterMessage:{type:String,required:!0},mapNoResultsMessage:{type:String,required:!0},panelMessage:{type:String,default:null}},data:function(){return{panelVisible:!1,selectedCategory:"",filterCategories:this.filters,selectedItem:null,activePins:this.placesData,currentlyHovered:"",showRegions:!1,regions:[],subCatList:null,selectedToggle:"",currentEndpointData:[],mapStatus:"",panelStatus:"map-loading",mapReady:!1,showPanelMessage:null,currentPanelEndpointFilters:"",totalEndpointPins:0,focussedListItem:0,resetZoom:!1,currentStage:0,selectedSubCategory:null}},computed:f(f({mapDisplayClass:function(){return this.panelVisible?"d-none d-lg-block":""},panelDisplayClass:function(){return this.panelVisible?"":"d-none d-lg-block"},regionsData:function(){return this.placesData.filter((function(e){return"Polygon"===e.geometry.type||"MultiPolygon"===e.geometry.type}))}},(0,u.aH)(c.A,{subCatActiveFilters:function(e){return e.activeSubcatFilters}})),{},{infoMessage:function(){var e="";switch(this.mapStatus){case"no-results":e=this.mapNoResultsMessage;break;case"filter-results":e=this.mapFilterMessage}return e}}),watch:{selectedSubCategory:function(e){null===e&&(this.mapStatus="",this.resetZoom=!0)}},mounted:function(){var e=this;h=(0,c.A)(),this.selectedToggle=this.initialSelected,this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{openMenu:function(){this.setStage(0),this.openPanel()},closePanel:function(){this.panelVisible=!1},openPanel:function(){this.panelVisible=!0},showDetail:function(e){document.fullscreenElement&&document.exitFullscreen(),this.selectedItem=e,this.setStage(2),this.openPanel(),null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory)},setCategory:function(e){this.selectedCategory=e,null===this.selectedSubCategory&&this.filterPlaces(e)},setSubCategory:function(e){h.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(h.setActiveSubcatFilters([]),this.showAllPlaces())},filterSubCategories:function(e){var t="";e.forEach((function(e){var s="&cat=".concat(e);t+=s})),this.currentPanelEndpointFilters=t,this.getSubcatMarkerData(t),this.getSubcatPanelData(t,0)},getSubcatMarkerData:function(e){var t=this,s=this.filters.filter((function(e){return e.id===t.selectedSubCategory}));if(s.length>0){var a=s[0].pinsEndpoint;void 0!==e&&(a+=e),this.activePins=[],void 0===e?(this.activePins=[],this.mapStatus="filter-results"):l.A.get(a).then((function(e){t.totalEndpointPins=e.data.features.length,0===t.totalEndpointPins?t.mapStatus="no-results":(e.data.features.forEach((function(e){var s=e;s.properties.apiData=!0,t.activePins.push(s)})),t.mapStatus="")}))}},getSubcatPanelData:function(e,t){var s=this,a=this.filters.filter((function(e){return e.id===s.selectedSubCategory}))[0].listProductsEndPoint;void 0!==e&&(a+=e),0!==t&&(a+="".concat(e,"&page=").concat(t)),this.panelStatus="loading-data",l.A.get(a).then((function(e){void 0!==e.data.data.products?(s.setStage(1),0===t?(s.subCatList=e.data.data.products,s.focussedListItem=0):(s.focussedListItem=24*t,s.subCatList=s.subCatList.concat(e.data.data.products))):s.mapStatus="no-results",s.panelStatus=null}))},setStage:function(e){var t=this;if(2===e&&""!==this.detailsEndpoint&&null!==this.selectedSubCategory){var s="".concat(this.detailsEndpoint).concat(this.selectedItem.properties.id);l.A.get(s).then((function(s){var a=[];a.push(s.data.data),t.currentEndpointData=a,t.currentStage=e}))}else this.currentStage=e,0===this.currentStage?(this.currentEndpointData=[],null===this.selectedSubCategory?(this.resetZoom=!0,this.showAllPlaces(),this.mapStatus=""):this.getSubcatMarkerData(),this.selectedToggle="places"):1===this.currentStage&&null===this.selectedSubCategory&&this.filterPlaces(this.selectedCategory);2!==e&&(h.setActivePlace({mapId:this.mapId,activeFeature:""}),this.selectedItem=null)},filterPlaces:function(e){if("regions"===e)this.showRegions=!0,this.activePins=[],this.selectedToggle="regions";else{this.showRegions=!1,this.selectedToggle="places";var t=this.placesData.filter((function(t){return void 0!==t.properties&&t.properties.category.id===e}));this.activePins=t}},loadMorePlaces:function(e){this.getSubcatPanelData(this.currentPanelEndpointFilters,e)},showAllPlaces:function(){this.activePins=this.placesData,this.showRegions=!1},onToggleChanged:function(e){"regions"===e?(this.setCategory("regions"),this.setStage(1)):"icentres"===e?(this.setCategory("vics"),this.setStage(1)):"places-regional"===e?(this.setCategory("twnv"),this.setStage(1)):(this.showAllPlaces(),this.setStage(0))},setMapReady:function(e){this.mapReady=e,this.panelStatus=e?null:"loading"}}}},35681:function(e,t,s){"use strict";s.d(t,{X:function(){return i}});var a=s(20641),n=s(90033);function i(e,t,s,i,o,r){var l=(0,a.g2)("VsMapWithSidebarPanel"),u=(0,a.g2)("VsButton"),c=(0,a.g2)("VsMap"),d=(0,a.g2)("VsButtonToggleGroup"),p=(0,a.g2)("VsWarning"),g=(0,a.g2)("VsCol"),f=(0,a.g2)("VsRow"),h=(0,a.g2)("VsContainer");return(0,a.uX)(),(0,a.Wv)(h,{"data-test":"vs-map-with-sidebar"},{default:(0,a.k6)((function(){return[(0,a.bF)(f,null,{default:(0,a.k6)((function(){return[(0,a.bF)(g,null,{default:(0,a.k6)((function(){return[(0,a.Lk)("div",{class:"vs-map-with-sidebar",ref:s.mapId},[(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__side-panel",r.panelDisplayClass]),"data-test":"vs-map-with-sidebar__side-panel"},[(0,a.bF)(l,{"category-heading":s.categoryHeading,"selected-category":o.selectedCategory,"selected-subcategory":o.selectedSubCategory,"current-stage":o.currentStage,"selected-item":o.selectedItem,"heading-level":s.mainHeadingExists?"3":"2","subcategory-locations":o.subCatList,"current-endpoint-data":o.currentEndpointData,"panel-status":o.panelStatus,"panel-message":0===o.currentStage?s.panelMessage:null,"total-pins":o.totalEndpointPins,"current-list-item-focus":o.focussedListItem,onSetCategory:r.setCategory,onSetSubcategory:r.setSubCategory,onSubcategoriesFiltered:r.filterSubCategories,onSetStage:r.setStage,onClosePanel:r.closePanel,onShowItemDetail:r.showDetail,onFilterPlaces:r.filterPlaces,onLoadMorePlaces:r.loadMorePlaces},{closePanelText:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"reset-side-panel-text")]})),"menu-btn-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"menu-btn-text")]})),"panel-loading-message":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"load-more-text")]})),_:3},8,["category-heading","selected-category","selected-subcategory","current-stage","selected-item","heading-level","subcategory-locations","current-endpoint-data","panel-status","panel-message","total-pins","current-list-item-focus","onSetCategory","onSetSubcategory","onSubcategoriesFiltered","onSetStage","onClosePanel","onShowItemDetail","onFilterPlaces","onLoadMorePlaces"])],2),(0,a.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar__map",r.mapDisplayClass])},[(0,a.bF)(u,{class:"vs-map-with-sidebar__map-toggle",icon:"bars-mobile-menu",size:"sm",onClick:r.openMenu,"data-test":"vs-map-with-sidebar__map-toggle",variant:"secondary"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.bF)(c,{"is-visible":!o.panelVisible,labels:{},filters:s.filters,places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:r.showDetail,onSetCategory:r.setCategory,onMapReady:r.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom,"show-marker-popups":!1},{"map-loading-text":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"map-loading-text")]})),"info-message":(0,a.k6)((function(){return[(0,a.eW)((0,n.toDisplayString)(r.infoMessage),1)]})),"zoom-too-close":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3},8,["is-visible","filters","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.toggleData.length>0?((0,a.uX)(),(0,a.Wv)(d,{key:0,"data-test":"vs-map-with-sidebar__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:r.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.Q3)("",!0)],2)],512),(0,a.bF)(p,{class:"vs-map-with-sidebar__no-js"},{default:(0,a.k6)((function(){return[(0,a.RG)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},14363:function(e,t,s){"use strict";var a=s(85072),n=s.n(a),i=s(97825),o=s.n(i),r=s(77659),l=s.n(r),u=s(55056),c=s.n(u),d=s(10540),p=s.n(d),g=s(41113),f=s.n(g),h=s(14725),m=s.n(h),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=o(),b.insertStyleElement=p(),n()(m(),b),m()&&m().locals&&m().locals},8258:function(e,t,s){"use strict";s.r(t);var a=s(35681),n=s(84542);s(68935);const i=(0,s(66262).A)(n.A,[["render",a.X]]);t.default=i},84542:function(e,t,s){"use strict";s.d(t,{A:function(){return a.A}});var a=s(50106)},68935:function(e,t,s){"use strict";s(14363)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,7536,3777,6422,8745,8836,8638,2368,7521,3838,1438,1574,9122,2536,5025,7539,1101,2552,681,1213,3055,3198,3844,4079,4249,80],(function(){return e(e.s=8258)})),e.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4249],{91100:function(){},93013:function(e,t,a){"use strict";var n=a(64467),s=a(48836),r=a(13838),i=a(10810),l=a(79920),o=a(31101),c=a(91213),u=a(22552),d=a(23198),p=a(83844),b=a(63055);function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){(0,n.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var y=null;t.A={name:"VsMapWithSidebarPanel",status:"prototype",release:"0.0.1",components:{VsButton:s.default,VsMapWithSidebarCategory:o.default,VsMapWithSidebarSubcategory:c.default,VsHeading:r.default,VsMapWithSidebarListItem:u.default,VsMapWithSidebarDetail:d.default,VsMapWithSidebarButtons:p.default,VsMapWithSidebarControls:b.default},inject:["filters","placesData","regions","mapId","focussedListItem"],props:{categoryHeading:{type:String,default:""},headingLevel:{type:String,default:"2"},selectedCategory:{type:String,default:""},selectedSubcategory:{type:String,default:null},currentStage:{type:Number,required:!0},selectedItem:{type:Object,default:null},hovered:{type:String,default:""},subcategoryLocations:{type:Array,default:null},currentEndpointData:{type:Array,default:function(){return[]}},panelStatus:{type:String,default:null},panelMessage:{type:String,default:null},totalPins:{type:Number,default:0},currentListItemFocus:{type:Number,default:0}},emits:["close-panel","load-more-places","set-stage","set-subcategory"],data:function(){return{placesLoaded:1}},computed:h(h({currentHeading:function(){var e="";if(null!==this.selectedSubcategory)e=this.selectedSubcategoryData[0].label;else switch(this.currentStage){case 0:e=this.categoryHeading;break;case 1:case 2:e=this.currentFilter.label}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-map-with-sidebar-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-map-with-sidebar-panel__header-section--with-spacer":2===this.currentStage?"vs-map-with-sidebar-panel__header-section--overlapped":""},currentFilter:function(){var e=this,t="";return this.filters.forEach((function(a){a.id===e.selectedCategory&&(t=a)})),t},currentPlaceData:function(){var e=this,t=this.placesData;return"regions"===this.selectedCategory&&(t=this.regions),this.currentEndpointData.length>0?this.refineEndpointData(this.currentEndpointData):t.filter((function(t){return!(void 0===t.properties||!e.selectedItem)&&t.properties.id===e.selectedItem.properties.id}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]}},(0,i.aH)(l.A,{subCatFilterCount:function(e){return e.activeSubcatFilters.length}})),{},{detailHeadingLevel:function(){return(parseInt(this.headingLevel,10)+1).toString()},showLoadMore:function(){return!(this.subcategoryLocations.length>=this.totalPins||0===this.subcategoryLocations.length)}}),watch:{currentFilter:function(){this.placesLoaded=1}},mounted:function(){y=(0,l.A)()},methods:{closePanel:function(){this.$emit("close-panel"),window.innerWidth>=1292&&2===this.currentStage&&this.$emit("set-subcategory",null)},stageBack:function(){if(this.selectedSubcategory&&0===this.currentStage)this.$emit("set-subcategory",null);else if(null!==this.selectedSubcategory&&null===this.subcategoryLocations)this.setStage(0);else{var e=this.currentStage-1;this.setStage(e)}},resetPanel:function(){y.setSelectedSubcat(null),this.setStage(0)},setStage:function(e){0===e&&(this.placesLoaded=1),this.$emit("set-stage",e)},subCatExists:function(e){return void 0!==e.subCategory&&e.subCategory.length>0},refineEndpointData:function(e){var t=[{isEndpoint:!0,properties:{category:e[0].category[0].id,id:e[0].id,image:e[0].images[0].mediaUrl,placeTitle:e[0].name,description:e[0].description,link:{label:e[0].productLink.label,link:e[0].productLink.link,type:e[0].productLink.type},website:{label:e[0].website.label,link:e[0].website.link,type:e[0].website.type},address:{shortAddress:""}}}];return void 0!==e[0].address&&(t[0].properties.address.shortAddress=e[0].address.shortAddress),t},clearSubCatFilters:function(){y.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},52186:function(e,t,a){"use strict";a.d(t,{X:function(){return y}});var n=a(20641),s=a(90033),r=a(53751),i={class:"vs-map-with-sidebar-panel__buttons d-lg-none"},l={key:0,class:"vs-map-with-sidebar-panel__back"},o={key:1,class:"vs-map-with-sidebar-panel__back"},c={class:"vs-map-with-sidebar-panel__close"},u={key:0,class:"vs-map-with-sidebar-panel__back d-none d-lg-block"},d={key:2,class:"vs-map-with-sidebar-panel__bottom-message"},p={class:"vs-map-with-sidebar-panel__list-container"},b={key:3,class:"vs-map-with-sidebar-panel__overlay"},g={key:0,class:"vs-map-with-sidebar-panel__overlay-box"},h={class:"vs-map-with-sidebar-panel__overlay-text"};function y(e,t,a,y,f,m){var v=(0,n.g2)("VsButton"),S=(0,n.g2)("VsHeading"),k=(0,n.g2)("VsMapWithSidebarSubcategory"),C=(0,n.g2)("VsMapWithSidebarControls"),w=(0,n.g2)("VsMapWithSidebarCategory"),_=(0,n.g2)("VsMapWithSidebarListItem"),L=(0,n.g2)("VsMapWithSidebarButtons"),F=(0,n.g2)("VsMapWithSidebarDetail");return(0,n.uX)(),(0,n.CE)("section",{"data-test":"vs-map-with-sidebar-panel",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel",m.panelClasses])},[(0,n.Lk)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__header-section",m.headerClasses])},[(0,n.Lk)("div",i,[a.currentStage>1||a.selectedSubcategory?((0,n.uX)(),(0,n.CE)("div",l,[(0,n.bF)(v,{class:"vs-map-with-sidebar-panel_menu",icon:"bars-mobile-menu",size:"sm",onClick:m.stageBack,"data-test":"vs-map-with-sidebar__menu-toggle",variant:"secondary"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"menu-btn-text")]})),_:3},8,["onClick"])])):(0,n.Q3)("",!0),1===a.currentStage||a.selectedSubcategory?((0,n.uX)(),(0,n.CE)("div",o,[(0,n.bF)(v,{"icon-only":"",icon:"internal-link-back",size:"md",variant:"transparent",onClick:m.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"back-btn-text")]})),_:3},8,["onClick"])])):(0,n.Q3)("",!0),(0,n.Lk)("div",c,[(0,n.bF)(v,{"icon-only":"",icon:"close",size:"md",variant:"transparent",onClick:m.closePanel,"data-test":"vs-map-with-sidebar-panel--btn-close"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"close-side-panel-text")]})),_:3},8,["onClick"])])]),a.currentStage>0||a.selectedSubcategory?((0,n.uX)(),(0,n.CE)("div",u,[(0,n.bF)(v,{"icon-only":"",icon:"internal-link-back",size:"md",variant:"transparent",onClick:m.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"back-btn-text")]})),_:3},8,["onClick"])])):(0,n.Q3)("",!0),""!==m.currentHeading?((0,n.uX)(),(0,n.Wv)(S,{key:1,level:a.headingLevel,"heading-style":0===a.currentStage?"heading-m":"heading-xs",class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__heading text-center mt-200 mt-lg-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-map-with-sidebar-panel__heading"},{default:(0,n.k6)((function(){return[(0,n.eW)((0,s.toDisplayString)(m.currentHeading),1)]})),_:1},8,["level","heading-style","class"])):(0,n.Q3)("",!0),(0,n.Lk)("div",{class:(0,s.normalizeClass)(["vs-map-with-sidebar-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.bF)(v,{"icon-only":"",icon:"close",size:"md",variant:"transparent",onClick:m.resetPanel,"data-test":"vs-map-with-sidebar-panel--btn-reset"},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"reset-side-panel-text")]})),_:3},8,["onClick"])],2)],2),0===a.currentStage?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[null!==a.selectedSubcategory?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.bF)(k,{data:m.selectedSubcategoryData[0].subCategory,"selected-sub-category":a.selectedSubcategory},null,8,["data","selected-sub-category"]),(0,n.bF)(C)],64)):((0,n.uX)(!0),(0,n.CE)(n.FK,{key:1},(0,n.pI)(m.filters,(function(e){return(0,n.uX)(),(0,n.Wv)(w,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":m.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("p",null,(0,s.toDisplayString)(a.panelMessage),1)])):(0,n.Q3)("",!0)],64)):(0,n.Q3)("",!0),1===a.currentStage?((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[null!==a.selectedSubcategory?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",p,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.subcategoryLocations,(function(t,s){return(0,n.uX)(),(0,n.Wv)(_,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:s===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),m.showLoadMore?((0,n.uX)(),(0,n.Wv)(v,{key:0,class:"vs-map-with-sidebar-panel__load-more","data-test":"vs-map-with-sidebar-panel__load-more",onClick:t[0]||(t[0]=function(e){return m.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,r.withKeys)((function(e){return m.loadMorePlaces()}),["enter"]))},{default:(0,n.k6)((function(){return[(0,n.RG)(e.$slots,"load-more-text")]})),_:3})):(0,n.Q3)("",!0)]),(0,n.bF)(L,{"content-data":{},"filter-count":e.subCatFilterCount,onClearFilters:m.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.uX)(!0),(0,n.CE)(n.FK,{key:1},(0,n.pI)(m.currentData,(function(t){return(0,n.uX)(),(0,n.CE)("div",{key:t.id},[void 0!==t.properties&&t.properties.category.id===a.selectedCategory?((0,n.uX)(),(0,n.Wv)(_,{key:0,"item-data":t,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","onShowItemDetail"])):(0,n.Q3)("",!0)])})),128))],64)):(0,n.Q3)("",!0),2===a.currentStage?((0,n.uX)(),(0,n.CE)(n.FK,{key:2},[(0,n.bF)(F,{"heading-level":m.detailHeadingLevel,"content-data":m.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.bF)(L,{"content-data":m.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.Q3)("",!0),null!==a.panelStatus?((0,n.uX)(),(0,n.CE)("div",b,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.uX)(),(0,n.CE)("div",g,[(0,n.Lk)("p",h,[(0,n.RG)(e.$slots,"panel-loading-message")])])):(0,n.Q3)("",!0)])):(0,n.Q3)("",!0)],2)}},63390:function(e,t,a){"use strict";var n=a(85072),s=a.n(n),r=a(97825),i=a.n(r),l=a(77659),o=a.n(l),c=a(55056),u=a.n(c),d=a(10540),p=a.n(d),b=a(41113),g=a.n(b),h=a(91100),y=a.n(h),f={};f.styleTagTransform=g(),f.setAttributes=u(),f.insert=o().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=p(),s()(y(),f),y()&&y().locals&&y().locals},4249:function(e,t,a){"use strict";a.r(t);var n=a(45738),s=a(49937);a(68882);const r=(0,a(66262).A)(s.A,[["render",n.X]]);t.default=r},49937:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(93013)},45738:function(e,t,a){"use strict";a.d(t,{X:function(){return n.X}});var n=a(52186)},68882:function(e,t,a){"use strict";a(63390)}}]);
@@ -1 +0,0 @@
1
- .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px;border-radius:0 0 40px 0}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}
@@ -1 +0,0 @@
1
- .vs-button-toggle-group--radios label.btn-secondary{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-button-toggle-group{width:100%;display:flex;justify-content:center}.vs-button-toggle-group legend{border:0;clip:rect(0, 0, 0, 0);overflow:hidden;position:absolute;height:1px;margin:-1px;padding:0;width:1px}.vs-button-toggle-group--radios{background-color:#d6e5ff;display:flex;border-radius:50rem;overflow:hidden}.vs-button-toggle-group--radios input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.vs-button-toggle-group--radios label.btn-secondary{color:#1f49d6;transition:none;padding-top:.5rem;margin-bottom:0;padding-bottom:.5rem;display:flex;align-items:center}.vs-button-toggle-group--radios label.btn-secondary .vs-icon{transition:none;color:#1f49d6}.vs-button-toggle-group--radios label.btn-secondary>span{display:flex;height:32px;align-items:center;padding:0 .5rem}.vs-button-toggle-group--radios label.btn-secondary.focus{box-shadow:none}.vs-button-toggle-group--radios label.btn-secondary:hover{background-color:#17359c;border-color:#17359c;color:#fff}.vs-button-toggle-group--radios label.btn-secondary:hover .vs-icon{color:#fff}.vs-button-toggle-group--tabbed-focus input:focus+label span{border:2px solid #3369ff}.vs-button-toggle-group--button{display:flex}.vs-button-toggle-group--button:first-child{margin-right:-1rem;border-top-left-radius:50rem;border-bottom-left-radius:50rem}.vs-button-toggle-group--button:last-child{border-top-right-radius:50rem;border-bottom-right-radius:50rem}.vs-button-toggle-group--button .btn{padding:0 1.5rem}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{z-index:2;border-radius:50rem;cursor:default;color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}@media(min-width: 992px){.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}}