@visitscotland/component-library 3.0.10 → 3.0.11

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 (173) hide show
  1. package/CHANGELOG.md +1800 -0
  2. package/dist/client/fonts/fa-duotone-900.ttf +0 -0
  3. package/dist/client/fonts/fa-duotone-900.woff2 +0 -0
  4. package/dist/client/manifest.json +563 -565
  5. package/dist/client/scripts/{ab2af43f4ea5a1debcf5.js → 095b3f6be4ecc5050c94.js} +2 -2
  6. package/dist/client/scripts/199c210715afa15fe554.js +1 -0
  7. package/dist/client/scripts/1ce57deef9f60d08e168.js +1 -0
  8. package/dist/client/scripts/{eeed4d3e9c67f63e7289.js → 1ea58060bdd59b73f2cc.js} +1 -1
  9. package/dist/client/scripts/28817126b54efc5d4587.js +1 -0
  10. package/dist/client/scripts/{ba81c0e2942bea680b26.js → 31a2579101bbbb9e5f30.js} +1 -1
  11. package/dist/client/scripts/45f0025aa5e0e67e90af.js +1 -0
  12. package/dist/client/scripts/{645e6203105968ad0f41.js → 48d53e3631b7bf81ef29.js} +1 -1
  13. package/dist/client/scripts/4a4ba7ebd4b744564fb1.js +1 -0
  14. package/dist/client/scripts/{6fc9b98332d4c5c0030e.js → 4f262ff6d88d67a5edb0.js} +1 -1
  15. package/dist/client/scripts/{317bf5d5727006b94afd.js → 57f474f5e19eb8baccea.js} +1 -1
  16. package/dist/client/scripts/5d2e8fcc89de9881e3f0.js +1 -0
  17. package/dist/client/scripts/5e005447771fd3cd6b2b.js +1 -0
  18. package/dist/client/scripts/6bdb6675dfc1454bd6b6.js +1 -0
  19. package/dist/client/scripts/6cd0e09564354b3d5ff2.js +1 -0
  20. package/dist/client/scripts/745bf4f9755c7daaa33e.js +1 -0
  21. package/dist/client/scripts/{f4970884abfc851ae32f.js → 829fb548fb318cc6c227.js} +1 -1
  22. package/dist/client/scripts/87c81786aba52ad2c8de.js +1 -0
  23. package/dist/client/scripts/8a8fc3d15b5f1307b1f3.js +1 -0
  24. package/dist/client/scripts/{308938d148fc5f60c382.js → 9999938ef7d992beb718.js} +1 -1
  25. package/dist/client/scripts/{54bee03d4647544c11f5.js → a41094c7176d20c0d7dc.js} +1 -1
  26. package/dist/client/scripts/b9d33994c69b2a8de5fe.js +1 -0
  27. package/dist/client/scripts/ba790fc15aa9dd2a524f.js +1 -0
  28. package/dist/client/scripts/{3f076d8e7a9978382389.js → ce05b548e362b5886d8d.js} +1 -1
  29. package/dist/client/scripts/{30b52393df161a18e1e4.js → ce3e6734cb84e74451cd.js} +1 -1
  30. package/dist/client/scripts/ebfecb5cb9655ada3826.js +1 -0
  31. package/dist/client/scripts/ec98e9fccfc20586c905.js +1 -0
  32. package/dist/client/scripts/{cd49442f3979c5aa946f.js → f03a2509e55a384da74a.js} +1 -1
  33. package/dist/client/scripts/ff019a30624b95c825db.js +1 -0
  34. package/dist/client/styles/199c210715afa15fe554.css +2 -0
  35. package/dist/client/styles/{6b89e1ea236b40bbcb29.css → 1ce57deef9f60d08e168.css} +1 -1
  36. package/dist/client/styles/{bd26b75ba38ccee0dc01.css → 28817126b54efc5d4587.css} +2 -2
  37. package/dist/client/styles/{ba81c0e2942bea680b26.css → 31a2579101bbbb9e5f30.css} +1 -1
  38. package/dist/client/styles/{645e6203105968ad0f41.css → 48d53e3631b7bf81ef29.css} +1 -1
  39. package/dist/client/styles/{6fc9b98332d4c5c0030e.css → 4f262ff6d88d67a5edb0.css} +1 -1
  40. package/dist/client/styles/{80c20d5d420f9e6d6f0d.css → 70ed495c15ada9f41f04.css} +1 -1
  41. package/dist/client/styles/{8e3fa387146c24502ada.css → 745bf4f9755c7daaa33e.css} +1 -1
  42. package/dist/client/styles/{5ac32a888423592e8e76.css → 7f0830b7d5e434d7a977.css} +1 -1
  43. package/dist/client/styles/{f4970884abfc851ae32f.css → 829fb548fb318cc6c227.css} +1 -1
  44. package/dist/client/styles/{9cb341082008e923f222.css → 87c81786aba52ad2c8de.css} +1 -1
  45. package/dist/client/styles/{54bee03d4647544c11f5.css → a41094c7176d20c0d7dc.css} +1 -1
  46. package/dist/client/styles/ba790fc15aa9dd2a524f.css +1 -0
  47. package/dist/client/styles/ce05b548e362b5886d8d.css +1 -0
  48. package/dist/client/styles/{30b52393df161a18e1e4.css → ce3e6734cb84e74451cd.css} +1 -1
  49. package/dist/client/styles/{cd49442f3979c5aa946f.css → f03a2509e55a384da74a.css} +1 -1
  50. package/dist/client/styles/third-party/_cludo-search-results.css +1 -1
  51. package/dist/client/styles/third-party/_font-awesome.css +2 -2
  52. package/dist/components/components/accordion/components/AccordionItem.vue.d.ts +1 -1
  53. package/dist/components/components/accordion/index.d.ts +1 -1
  54. package/dist/components/components/button/Button.vue.d.ts +2 -2
  55. package/dist/components/components/canned-search/CannedSearch.vue.d.ts +1 -1
  56. package/dist/components/components/canned-search/components/CannedSearchDuration.vue.d.ts +1 -1
  57. package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +1 -1
  58. package/dist/components/components/canned-search/components/CannedSearchPrice.vue.d.ts +1 -1
  59. package/dist/components/components/canned-search/components/CannedSearchSummaryBox.vue.d.ts +1 -1
  60. package/dist/components/components/caption/Caption.vue.d.ts +1 -260
  61. package/dist/components/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +1 -262
  62. package/dist/components/components/carousel/Carousel.vue.d.ts +2 -2
  63. package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +3 -3
  64. package/dist/components/components/checkbox/Checkbox.vue.d.ts +2 -2
  65. package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +1 -1
  66. package/dist/components/components/footer/components/FooterAccordionItem.vue.d.ts +1 -1
  67. package/dist/components/components/form/Form.vue.d.ts +5 -8
  68. package/dist/components/components/heading/Heading.vue.d.ts +1 -1
  69. package/dist/components/components/icon/Icon.vue.d.ts +1 -1
  70. package/dist/components/components/icon/index.d.ts +1 -1
  71. package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +6 -6
  72. package/dist/components/components/img/Img.vue.d.ts +4 -11
  73. package/dist/components/components/input/Input.vue.d.ts +2 -2
  74. package/dist/components/components/link/Link.vue.d.ts +2 -2
  75. package/dist/components/components/link-list/components/LinkListItem.vue.d.ts +1 -12
  76. package/dist/components/components/list/List.vue.d.ts +1 -1
  77. package/dist/components/components/mega-nav/MegaNav.vue.d.ts +1 -282
  78. package/dist/components/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +1 -1
  79. package/dist/components/components/megalinks/Megalinks.vue.d.ts +1 -1
  80. package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +5 -5
  81. package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +5 -5
  82. package/dist/components/components/number-input/NumberInput.vue.d.ts +4 -4
  83. package/dist/components/components/radio-button/RadioButton.vue.d.ts +1 -1
  84. package/dist/components/components/select/Select.vue.d.ts +1 -1
  85. package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +1 -272
  86. package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +6 -26
  87. package/dist/components/components/svg/Svg.vue.d.ts +1 -1
  88. package/dist/components/components/svg-link/SvgLink.vue.d.ts +2 -2
  89. package/dist/components/components/video/Video.vue.d.ts +1 -1
  90. package/dist/components/components/video-caption/VideoCaption.vue.d.ts +3 -23
  91. package/dist/components/icons.css +2 -2
  92. package/dist/components/mixins/verifyCookiesMixin.d.ts +1 -1
  93. package/dist/components/stores/map.store.d.ts +2 -2
  94. package/dist/components/stores/video.store.d.ts +1 -1
  95. package/dist/components/utils/breakpoints.d.ts +1 -1
  96. package/dist/components/vs-component-library.css +1 -1
  97. package/dist/components/vs-component-library.js +131 -131
  98. package/dist/components/vs-component-library.mjs +4400 -4435
  99. package/dist/ssr/fonts/fa-duotone-900.ttf +0 -0
  100. package/dist/ssr/fonts/fa-duotone-900.woff2 +0 -0
  101. package/dist/ssr/index.js +1 -1
  102. package/dist/ssr/manifest.json +1 -1
  103. package/dist/ssr/styles/{ab517f2f4fc3dcead0ac.css → db281f3e8d0d3bda82d9.css} +17 -17
  104. package/package.json +230 -230
  105. package/dist/client/scripts/0c8e55d5dc54da17ea4f.js +0 -1
  106. package/dist/client/scripts/2c9771b621321ebce2f1.js +0 -1
  107. package/dist/client/scripts/369660f549d80a83b319.js +0 -1
  108. package/dist/client/scripts/55abdf0b6d1b6efc573a.js +0 -1
  109. package/dist/client/scripts/591779e48ffc23e54d8c.js +0 -1
  110. package/dist/client/scripts/5dfb8dcf71ff13a8e5d7.js +0 -1
  111. package/dist/client/scripts/62dee53b5ff29bcdf2a4.js +0 -1
  112. package/dist/client/scripts/6b89e1ea236b40bbcb29.js +0 -1
  113. package/dist/client/scripts/6dcd58d3c5a53787c6e8.js +0 -1
  114. package/dist/client/scripts/8e3fa387146c24502ada.js +0 -1
  115. package/dist/client/scripts/9cb341082008e923f222.js +0 -1
  116. package/dist/client/scripts/a1ae308f3e8896eb00cb.js +0 -1
  117. package/dist/client/scripts/adb997ae050ff11118c3.js +0 -1
  118. package/dist/client/scripts/bbb72864d9c24c3b0176.js +0 -1
  119. package/dist/client/scripts/bd26b75ba38ccee0dc01.js +0 -1
  120. package/dist/client/scripts/c95930ffa2e73a2cc9f9.js +0 -1
  121. package/dist/client/scripts/d1ccfaba65d3a42016e7.js +0 -1
  122. package/dist/client/styles/3f076d8e7a9978382389.css +0 -1
  123. package/dist/client/styles/55abdf0b6d1b6efc573a.css +0 -1
  124. package/dist/client/styles/bbb72864d9c24c3b0176.css +0 -2
  125. /package/dist/client/scripts/{9d37e33b98d13c9e5fca.js → 0444473347f3388b9b2d.js} +0 -0
  126. /package/dist/client/scripts/{ab2af43f4ea5a1debcf5.js.LICENSE.txt → 095b3f6be4ecc5050c94.js.LICENSE.txt} +0 -0
  127. /package/dist/client/scripts/{8191bfd34ce1185bf893.js → 0e76a8a6fc840fc90393.js} +0 -0
  128. /package/dist/client/scripts/{1e1be128bbe2372442ad.js → 1a19c590faef6d20e8f9.js} +0 -0
  129. /package/dist/client/scripts/{4f20b66ee884b8e756c5.js → 329dfc8fb32128f5bfbc.js} +0 -0
  130. /package/dist/client/scripts/{7c2110991178fca70197.js → 3b782f9b1a48bb37ea1b.js} +0 -0
  131. /package/dist/client/scripts/{e8893c6cf105d247bb20.js → 54c9ecfc0a30af9500f8.js} +0 -0
  132. /package/dist/client/scripts/{207f4ed838f5f384de4a.js → 693c9fdb2abddc041fc8.js} +0 -0
  133. /package/dist/client/scripts/{80c20d5d420f9e6d6f0d.js → 70ed495c15ada9f41f04.js} +0 -0
  134. /package/dist/client/scripts/{2e7bb9d1ba25ed89a6b4.js → 72914614ed8843afe8e7.js} +0 -0
  135. /package/dist/client/scripts/{5ac32a888423592e8e76.js → 7f0830b7d5e434d7a977.js} +0 -0
  136. /package/dist/client/scripts/{81d7a650a9e34cb0e041.js → 82ae53ac4d29a47972f6.js} +0 -0
  137. /package/dist/client/scripts/{93ba62cb3241a7f51a56.js → 8566e216dfae60878796.js} +0 -0
  138. /package/dist/client/scripts/{107a6a23f7692197dc75.js → 8607f002351fd0c58a86.js} +0 -0
  139. /package/dist/client/scripts/{57ca21b271f4bf6fe7d9.js → 8f688a3a5f483ff3f90f.js} +0 -0
  140. /package/dist/client/scripts/{68b4fa981d1ccbcdb115.js → 91b2d5bc3c73cd4f18d5.js} +0 -0
  141. /package/dist/client/scripts/{76b69830b25050250f7a.js → 9faa3989454af4ae1646.js} +0 -0
  142. /package/dist/client/scripts/{58ec605a02f7026dfd07.js → a7873e3d286e50fba6c9.js} +0 -0
  143. /package/dist/client/scripts/{c5a9f9bf1b695d67e692.js → a7dbe76d0e0e59ff23cf.js} +0 -0
  144. /package/dist/client/scripts/{9fb6b77d5c8e153a9b64.js → ae57c0d2ca8b83779a55.js} +0 -0
  145. /package/dist/client/scripts/{586b6e8b7a33125e7271.js → aea24adeebd8a85f0d9f.js} +0 -0
  146. /package/dist/client/scripts/{e732dd5fb0a7a5276036.js → c6ae2f1597591b4d2291.js} +0 -0
  147. /package/dist/client/scripts/{fa9a79bc1b6e6c890e23.js → d1049a7d19c185aff667.js} +0 -0
  148. /package/dist/client/scripts/{72f10f904697a0b8c38a.js → d2d86b4d4e26eaee306a.js} +0 -0
  149. /package/dist/client/styles/{9d37e33b98d13c9e5fca.css → 0444473347f3388b9b2d.css} +0 -0
  150. /package/dist/client/styles/{8191bfd34ce1185bf893.css → 0e76a8a6fc840fc90393.css} +0 -0
  151. /package/dist/client/styles/{eeed4d3e9c67f63e7289.css → 1ea58060bdd59b73f2cc.css} +0 -0
  152. /package/dist/client/styles/{7c2110991178fca70197.css → 3b782f9b1a48bb37ea1b.css} +0 -0
  153. /package/dist/client/styles/{d1ccfaba65d3a42016e7.css → 45f0025aa5e0e67e90af.css} +0 -0
  154. /package/dist/client/styles/{6dcd58d3c5a53787c6e8.css → 4a4ba7ebd4b744564fb1.css} +0 -0
  155. /package/dist/client/styles/{317bf5d5727006b94afd.css → 57f474f5e19eb8baccea.css} +0 -0
  156. /package/dist/client/styles/{591779e48ffc23e54d8c.css → 5d2e8fcc89de9881e3f0.css} +0 -0
  157. /package/dist/client/styles/{c95930ffa2e73a2cc9f9.css → 5e005447771fd3cd6b2b.css} +0 -0
  158. /package/dist/client/styles/{2e7bb9d1ba25ed89a6b4.css → 72914614ed8843afe8e7.css} +0 -0
  159. /package/dist/client/styles/{81d7a650a9e34cb0e041.css → 82ae53ac4d29a47972f6.css} +0 -0
  160. /package/dist/client/styles/{107a6a23f7692197dc75.css → 8607f002351fd0c58a86.css} +0 -0
  161. /package/dist/client/styles/{57ca21b271f4bf6fe7d9.css → 8f688a3a5f483ff3f90f.css} +0 -0
  162. /package/dist/client/styles/{68b4fa981d1ccbcdb115.css → 91b2d5bc3c73cd4f18d5.css} +0 -0
  163. /package/dist/client/styles/{308938d148fc5f60c382.css → 9999938ef7d992beb718.css} +0 -0
  164. /package/dist/client/styles/{76b69830b25050250f7a.css → 9faa3989454af4ae1646.css} +0 -0
  165. /package/dist/client/styles/{58ec605a02f7026dfd07.css → a7873e3d286e50fba6c9.css} +0 -0
  166. /package/dist/client/styles/{c5a9f9bf1b695d67e692.css → a7dbe76d0e0e59ff23cf.css} +0 -0
  167. /package/dist/client/styles/{9fb6b77d5c8e153a9b64.css → ae57c0d2ca8b83779a55.css} +0 -0
  168. /package/dist/client/styles/{586b6e8b7a33125e7271.css → aea24adeebd8a85f0d9f.css} +0 -0
  169. /package/dist/client/styles/{369660f549d80a83b319.css → b9d33994c69b2a8de5fe.css} +0 -0
  170. /package/dist/client/styles/{72f10f904697a0b8c38a.css → d2d86b4d4e26eaee306a.css} +0 -0
  171. /package/dist/client/styles/{62dee53b5ff29bcdf2a4.css → ebfecb5cb9655ada3826.css} +0 -0
  172. /package/dist/client/styles/{2c9771b621321ebce2f1.css → ec98e9fccfc20586c905.css} +0 -0
  173. /package/dist/client/styles/{adb997ae050ff11118c3.css → ff019a30624b95c825db.css} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see ab2af43f4ea5a1debcf5.js.LICENSE.txt */
2
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8086],{48086:function(t,e,n){"use strict";t.exports=n(73527)},73527:function(t,e,n){"use strict";var i=n(61450);let s;const o=t=>s=t,r=Symbol();function c(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var a;e.MutationType=void 0,(a=e.MutationType||(e.MutationType={})).direct="direct",a.patchObject="patch object",a.patchFunction="patch function";const u="undefined"!=typeof window,p=()=>{};function f(t,e,n,s=p){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&i.getCurrentScope()&&i.onScopeDispose(o),o}function h(t,...e){t.slice().forEach((t=>{t(...e)}))}const l=t=>t();function d(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],o=t[n];c(o)&&c(s)&&t.hasOwnProperty(n)&&!i.isRef(s)&&!i.isReactive(s)?t[n]=d(o,s):t[n]=s}return t}const y=Symbol(),v=new WeakMap,{assign:b}=Object;function _(t,n,s={},r,a,u){let _;const $=b({actions:{}},s),j={deep:!0};let O,g,m,S=[],V=[];const R=r.state.value[t];let k;function w(n){let s;O=g=!1,"function"==typeof n?(n(r.state.value[t]),s={type:e.MutationType.patchFunction,storeId:t,events:m}):(d(r.state.value[t],n),s={type:e.MutationType.patchObject,payload:n,storeId:t,events:m});const o=k=Symbol();i.nextTick().then((()=>{k===o&&(O=!0)})),g=!0,h(S,s,r.state.value[t])}u||R||(i.isVue2?i.set(r.state.value,t,{}):r.state.value[t]={}),i.ref({});const A=u?function(){const{state:t}=s,e=t?t():{};this.$patch((t=>{b(t,e)}))}:p;function P(e,n){return function(){o(r);const i=Array.from(arguments),s=[],c=[];let a;h(V,{args:i,name:e,store:x,after:function(t){s.push(t)},onError:function(t){c.push(t)}});try{a=n.apply(this&&this.$id===t?this:x,i)}catch(t){throw h(c,t),t}return a instanceof Promise?a.then((t=>(h(s,t),t))).catch((t=>(h(c,t),Promise.reject(t)))):(h(s,a),a)}}const M={_p:r,$id:t,$onAction:f.bind(null,V),$patch:w,$reset:A,$subscribe(n,s={}){const o=f(S,n,s.detached,(()=>c())),c=_.run((()=>i.watch((()=>r.state.value[t]),(i=>{("sync"===s.flush?g:O)&&n({storeId:t,type:e.MutationType.direct,events:m},i)}),b({},j,s))));return o},$dispose:function(){_.stop(),S=[],V=[],r._s.delete(t)}};i.isVue2&&(M._r=!1);const x=i.reactive(M);r._s.set(t,x);const E=(r._a&&r._a.runWithContext||l)((()=>r._e.run((()=>(_=i.effectScope()).run(n)))));for(const e in E){const n=E[e];if(i.isRef(n)&&(C=n,!i.isRef(C)||!C.effect)||i.isReactive(n))u||(!R||(T=n,i.isVue2?v.has(T):c(T)&&T.hasOwnProperty(y))||(i.isRef(n)?n.value=R[e]:d(n,R[e])),i.isVue2?i.set(r.state.value[t],e,n):r.state.value[t][e]=n);else if("function"==typeof n){const t=P(e,n);i.isVue2?i.set(E,e,t):E[e]=t,$.actions[e]=n}}var T,C;return i.isVue2?Object.keys(E).forEach((t=>{i.set(x,t,E[t])})):(b(x,E),b(i.toRaw(x),E)),Object.defineProperty(x,"$state",{get:()=>r.state.value[t],set:t=>{w((e=>{b(e,t)}))}}),i.isVue2&&(x._r=!0),r._p.forEach((t=>{b(x,_.run((()=>t({store:x,app:r._a,pinia:r,options:$}))))})),R&&u&&s.hydrate&&s.hydrate(x.$state,R),O=!0,g=!0,x}let $="Store";function j(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(){const n=t(this.$pinia),s=e[i];return"function"==typeof s?s.call(this,n):n[s]},n)),{})}const O=j;e.PiniaVuePlugin=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[r]=e,this.$pinia||(this.$pinia=e),e._a=this,u&&o(e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})},e.acceptHMRUpdate=function(t,e){return()=>{}},e.createPinia=function(){const t=i.effectScope(!0),e=t.run((()=>i.ref({})));let n=[],s=[];const c=i.markRaw({install(t){o(c),i.isVue2||(c._a=t,t.provide(r,c),t.config.globalProperties.$pinia=c,s.forEach((t=>n.push(t))),s=[])},use(t){return this._a||i.isVue2?n.push(t):s.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return c},e.defineStore=function(t,e,n){let c,a;const u="function"==typeof e;function p(t,n){const p=i.hasInjectionContext();return(t=t||(p?i.inject(r,null):null))&&o(t),(t=s)._s.has(c)||(u?_(c,e,a,t):function(t,e,n,s){const{state:r,actions:c,getters:a}=e,u=n.state.value[t];let p;p=_(t,(function(){u||(i.isVue2?i.set(n.state.value,t,r?r():{}):n.state.value[t]=r?r():{});const e=i.toRefs(n.state.value[t]);return b(e,c,Object.keys(a||{}).reduce(((e,s)=>(e[s]=i.markRaw(i.computed((()=>{o(n);const e=n._s.get(t);if(!i.isVue2||e._r)return a[s].call(e,e)}))),e)),{}))}),e,n,0,!0)}(c,a,t)),t._s.get(c)}return"string"==typeof t?(c=t,a=u?n:e):(a=t,c=t.id),p.$id=c,p},e.getActivePinia=()=>i.hasInjectionContext()&&i.inject(r)||s,e.mapActions=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(...e){return t(this.$pinia)[n](...e)},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(...n){return t(this.$pinia)[e[i]](...n)},n)),{})},e.mapGetters=O,e.mapState=j,e.mapStores=function(...t){return t.reduce(((t,e)=>(t[e.$id+$]=function(){return e(this.$pinia)},t)),{})},e.mapWritableState=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]={get(){return t(this.$pinia)[e[i]]},set(n){return t(this.$pinia)[e[i]]=n}},n)),{})},e.setActivePinia=o,e.setMapStoreSuffix=function(t){$=t},e.skipHydrate=function(t){return i.isVue2?v.set(t,1)&&t:Object.defineProperty(t,y,{})},e.storeToRefs=function(t){if(i.isVue2)return i.toRefs(t);{t=i.toRaw(t);const e={};for(const n in t){const s=t[n];(i.isRef(s)||i.isReactive(s))&&(e[n]=i.toRef(t,n))}return e}}},61450:function(t,e,n){var i=n(17527);Object.keys(i).forEach((function(t){e[t]=i[t]})),e.set=function(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)},e.del=function(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]},e.Vue=i,e.Vue2=void 0,e.isVue2=!1,e.isVue3=!0,e.install=function(){}}}]);
1
+ /*! For license information please see 095b3f6be4ecc5050c94.js.LICENSE.txt */
2
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8086],{48086:function(t,e,n){"use strict";t.exports=n(73527)},73527:function(t,e,n){"use strict";var i=n(87561);let s;const o=t=>s=t,r=Symbol();function c(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var a;e.MutationType=void 0,(a=e.MutationType||(e.MutationType={})).direct="direct",a.patchObject="patch object",a.patchFunction="patch function";const u="undefined"!=typeof window,p=()=>{};function f(t,e,n,s=p){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&i.getCurrentScope()&&i.onScopeDispose(o),o}function h(t,...e){t.slice().forEach((t=>{t(...e)}))}const l=t=>t();function d(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],o=t[n];c(o)&&c(s)&&t.hasOwnProperty(n)&&!i.isRef(s)&&!i.isReactive(s)?t[n]=d(o,s):t[n]=s}return t}const y=Symbol(),v=new WeakMap,{assign:b}=Object;function _(t,n,s={},r,a,u){let _;const $=b({actions:{}},s),j={deep:!0};let O,g,m,S=[],V=[];const R=r.state.value[t];let k;function w(n){let s;O=g=!1,"function"==typeof n?(n(r.state.value[t]),s={type:e.MutationType.patchFunction,storeId:t,events:m}):(d(r.state.value[t],n),s={type:e.MutationType.patchObject,payload:n,storeId:t,events:m});const o=k=Symbol();i.nextTick().then((()=>{k===o&&(O=!0)})),g=!0,h(S,s,r.state.value[t])}u||R||(i.isVue2?i.set(r.state.value,t,{}):r.state.value[t]={}),i.ref({});const A=u?function(){const{state:t}=s,e=t?t():{};this.$patch((t=>{b(t,e)}))}:p;function P(e,n){return function(){o(r);const i=Array.from(arguments),s=[],c=[];let a;h(V,{args:i,name:e,store:x,after:function(t){s.push(t)},onError:function(t){c.push(t)}});try{a=n.apply(this&&this.$id===t?this:x,i)}catch(t){throw h(c,t),t}return a instanceof Promise?a.then((t=>(h(s,t),t))).catch((t=>(h(c,t),Promise.reject(t)))):(h(s,a),a)}}const M={_p:r,$id:t,$onAction:f.bind(null,V),$patch:w,$reset:A,$subscribe(n,s={}){const o=f(S,n,s.detached,(()=>c())),c=_.run((()=>i.watch((()=>r.state.value[t]),(i=>{("sync"===s.flush?g:O)&&n({storeId:t,type:e.MutationType.direct,events:m},i)}),b({},j,s))));return o},$dispose:function(){_.stop(),S=[],V=[],r._s.delete(t)}};i.isVue2&&(M._r=!1);const x=i.reactive(M);r._s.set(t,x);const E=(r._a&&r._a.runWithContext||l)((()=>r._e.run((()=>(_=i.effectScope()).run(n)))));for(const e in E){const n=E[e];if(i.isRef(n)&&(C=n,!i.isRef(C)||!C.effect)||i.isReactive(n))u||(!R||(T=n,i.isVue2?v.has(T):c(T)&&T.hasOwnProperty(y))||(i.isRef(n)?n.value=R[e]:d(n,R[e])),i.isVue2?i.set(r.state.value[t],e,n):r.state.value[t][e]=n);else if("function"==typeof n){const t=P(e,n);i.isVue2?i.set(E,e,t):E[e]=t,$.actions[e]=n}}var T,C;return i.isVue2?Object.keys(E).forEach((t=>{i.set(x,t,E[t])})):(b(x,E),b(i.toRaw(x),E)),Object.defineProperty(x,"$state",{get:()=>r.state.value[t],set:t=>{w((e=>{b(e,t)}))}}),i.isVue2&&(x._r=!0),r._p.forEach((t=>{b(x,_.run((()=>t({store:x,app:r._a,pinia:r,options:$}))))})),R&&u&&s.hydrate&&s.hydrate(x.$state,R),O=!0,g=!0,x}let $="Store";function j(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(){const n=t(this.$pinia),s=e[i];return"function"==typeof s?s.call(this,n):n[s]},n)),{})}const O=j;e.PiniaVuePlugin=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[r]=e,this.$pinia||(this.$pinia=e),e._a=this,u&&o(e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})},e.acceptHMRUpdate=function(t,e){return()=>{}},e.createPinia=function(){const t=i.effectScope(!0),e=t.run((()=>i.ref({})));let n=[],s=[];const c=i.markRaw({install(t){o(c),i.isVue2||(c._a=t,t.provide(r,c),t.config.globalProperties.$pinia=c,s.forEach((t=>n.push(t))),s=[])},use(t){return this._a||i.isVue2?n.push(t):s.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return c},e.defineStore=function(t,e,n){let c,a;const u="function"==typeof e;function p(t,n){const p=i.hasInjectionContext();return(t=t||(p?i.inject(r,null):null))&&o(t),(t=s)._s.has(c)||(u?_(c,e,a,t):function(t,e,n,s){const{state:r,actions:c,getters:a}=e,u=n.state.value[t];let p;p=_(t,(function(){u||(i.isVue2?i.set(n.state.value,t,r?r():{}):n.state.value[t]=r?r():{});const e=i.toRefs(n.state.value[t]);return b(e,c,Object.keys(a||{}).reduce(((e,s)=>(e[s]=i.markRaw(i.computed((()=>{o(n);const e=n._s.get(t);if(!i.isVue2||e._r)return a[s].call(e,e)}))),e)),{}))}),e,n,0,!0)}(c,a,t)),t._s.get(c)}return"string"==typeof t?(c=t,a=u?n:e):(a=t,c=t.id),p.$id=c,p},e.getActivePinia=()=>i.hasInjectionContext()&&i.inject(r)||s,e.mapActions=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(...e){return t(this.$pinia)[n](...e)},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(...n){return t(this.$pinia)[e[i]](...n)},n)),{})},e.mapGetters=O,e.mapState=j,e.mapStores=function(...t){return t.reduce(((t,e)=>(t[e.$id+$]=function(){return e(this.$pinia)},t)),{})},e.mapWritableState=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]={get(){return t(this.$pinia)[e[i]]},set(n){return t(this.$pinia)[e[i]]=n}},n)),{})},e.setActivePinia=o,e.setMapStoreSuffix=function(t){$=t},e.skipHydrate=function(t){return i.isVue2?v.set(t,1)&&t:Object.defineProperty(t,y,{})},e.storeToRefs=function(t){if(i.isVue2)return i.toRefs(t);{t=i.toRaw(t);const e={};for(const n in t){const s=t[n];(i.isRef(s)||i.isReactive(s))&&(e[n]=i.toRef(t,n))}return e}}},87561:function(t,e,n){var i=n(17527);Object.keys(i).forEach((function(t){e[t]=i[t]})),e.set=function(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)},e.del=function(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]},e.Vue=i,e.Vue2=void 0,e.isVue2=!1,e.isVue3=!0,e.install=function(){}}}]);