@visitscotland/component-library 1.0.25 → 1.0.26

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 (152) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/dist/client/manifest.json +400 -330
  3. package/dist/client/scripts/00c35b76f46770795fc6.js +1 -0
  4. package/dist/client/scripts/00dc7f48caf1871fb08a.js +1 -0
  5. package/dist/client/scripts/{7b76b805f3331b91b6bb.js → 0465f96970edb299f66b.js} +1 -1
  6. package/dist/client/scripts/{63b16cfbb76b12dfaba0.js → 09ea4b96c3d1810c42e0.js} +1 -1
  7. package/dist/client/scripts/0da3cfed858766afccdb.js +2 -0
  8. package/dist/client/scripts/0da3cfed858766afccdb.js.LICENSE.txt +5 -0
  9. package/dist/client/scripts/{9b7ac4c1f43e93dc054a.js → 125faa00007f84861a36.js} +1 -1
  10. package/dist/client/scripts/{cd6bf03984d2a9d3cdc1.js → 1515e9031bcc93a44eb5.js} +1 -1
  11. package/dist/client/scripts/{33c095fb4e5483f6ac45.js → 15a469f546bf1f0466e1.js} +1 -1
  12. package/dist/client/scripts/{bfffee762dc7872605df.js → 1701a9402143e4b7b77c.js} +1 -1
  13. package/dist/client/scripts/{e20a9209674454bca4b8.js → 1a47d223d9653116cfe1.js} +1 -1
  14. package/dist/client/scripts/1d47c0c2652e17a79cd7.js +1 -0
  15. package/dist/client/scripts/{72b36dc176525288458f.js → 1e2f1b54799d23569aae.js} +1 -1
  16. package/dist/client/scripts/{3aa09060db96cf617974.js → 1ebabe5dddf279c9bb49.js} +1 -1
  17. package/dist/client/scripts/{3943a143ba2100ce9557.js → 23c268afd7e485a8ffba.js} +1 -1
  18. package/dist/client/scripts/{890c41daae42fcf3b836.js → 252dda21bf0e0934136a.js} +1 -1
  19. package/dist/client/scripts/{859fc7fba56fc8b69fb6.js → 26c65af57544300026ba.js} +1 -1
  20. package/dist/client/scripts/{6cf5c1dbae9f3ceb445b.js → 278626f83b749198bcc1.js} +1 -1
  21. package/dist/client/scripts/{06eb9b6db3558ccdbb13.js → 282efcfb2f178a4383ec.js} +1 -1
  22. package/dist/client/scripts/{ba144681b5801d1dfb29.js → 2a17df72ab8f5798b665.js} +1 -1
  23. package/dist/client/scripts/{3376afa404b2abae6ef4.js → 2f22e1f3fd50701f768c.js} +1 -1
  24. package/dist/client/scripts/{88d8039b7ac964b26220.js → 32574c4938b619a575fc.js} +1 -1
  25. package/dist/client/scripts/{6ec3cae4b98319dc0b2d.js → 32e3c5668117ff8d2d61.js} +1 -1
  26. package/dist/client/scripts/{5badf747fb5815402bce.js → 3692380b62fd41a910ed.js} +1 -1
  27. package/dist/client/scripts/{2959d8b9d7e19d1f29d4.js → 37647589fe5f0407574d.js} +1 -1
  28. package/dist/client/scripts/{528a83c665e8f0fa6fd9.js → 3773a039f295995a52d4.js} +1 -1
  29. package/dist/client/scripts/{13cac5666bc0d3a3380f.js → 39f361d27f6fa706f241.js} +1 -1
  30. package/dist/client/scripts/{2bcc196339fc00ff8590.js → 3bd7d7d1775b8ee81136.js} +1 -1
  31. package/dist/client/scripts/{70b0cbc344de6ab63f1b.js → 3cf4d6db3928f572fac7.js} +1 -1
  32. package/dist/client/scripts/{6c82733bb7ab9dfe99b2.js → 3f1e409c94f0c2790d29.js} +1 -1
  33. package/dist/client/scripts/{fba4e2b1fb3be062b46c.js → 41445cd668c6c413ee6a.js} +1 -1
  34. package/dist/client/scripts/{b41f1cc1bef2139dcc63.js → 422e1b5afec296ba8086.js} +1 -1
  35. package/dist/client/scripts/4a0169bf91e4e2397bcf.js +1 -0
  36. package/dist/client/scripts/{7b3c28e355c2c32098f0.js → 51e47bfcaf13506c62ba.js} +1 -1
  37. package/dist/client/scripts/{2ce6efa1425356cd42b9.js → 57ec12111c056f9f4b71.js} +1 -1
  38. package/dist/client/scripts/{bad40fe653a59d8b5194.js → 587c4d19ba6aaab08dcf.js} +1 -1
  39. package/dist/client/scripts/{8774ab652fa4ac64d0ba.js → 5923c82206e65872a153.js} +1 -1
  40. package/dist/client/scripts/{9dd2c54dfe48f76675dc.js → 5c3a74ab1b9a22c82ea8.js} +1 -1
  41. package/dist/client/scripts/{bff123ab6829b0bda4dc.js → 5c52bbe2ce602b5192fd.js} +1 -1
  42. package/dist/client/scripts/{421ba837bb9825196171.js → 5d933c0f8b11bcbef212.js} +1 -1
  43. package/dist/client/scripts/68f7c6031293430987cd.js +1 -0
  44. package/dist/client/scripts/{c00d9492c4c30d55364b.js → 695fa714ac71c91b175f.js} +1 -1
  45. package/dist/client/scripts/{b83e0d32a0e2d19ed179.js → 6c2dc1f74eed81b7c416.js} +1 -1
  46. package/dist/client/scripts/{f91c17b1589ff6358911.js → 6ffcd1cefd31256b1b08.js} +1 -1
  47. package/dist/client/scripts/{1ad0ed977002cd7ff07d.js → 73622966d3deb27c335d.js} +1 -1
  48. package/dist/client/scripts/{a573fc7202f753cad5e9.js → 74c2a4cc0e1b095ac8a8.js} +1 -1
  49. package/dist/client/scripts/7e47b5feb567fd1dd8c4.js +1 -0
  50. package/dist/client/scripts/{d1722ea485c3c104d879.js → 7e7450e88341aa4b02b6.js} +1 -1
  51. package/dist/client/scripts/7f4469da203795a6f47b.js +1 -0
  52. package/dist/client/scripts/{16a02b67526c468f66d2.js → 803276655eb9ed5e9d3a.js} +1 -1
  53. package/dist/client/scripts/{d9e2bd589c77c1935ac9.js → 83706c5cd238dbd71dc0.js} +1 -1
  54. package/dist/client/scripts/{b7a86cfe994d3608dd57.js → 864121788b8138ca2c67.js} +1 -1
  55. package/dist/client/scripts/{74b978e38ecae74c59f2.js → 898c147b72953c7d8efb.js} +1 -1
  56. package/dist/client/scripts/{42f7fa2d924439bb0670.js → 8990cd00d88536465193.js} +1 -1
  57. package/dist/client/scripts/{186ea281b77a6950098a.js → 8cbba1a2a1921bd720a1.js} +1 -1
  58. package/dist/client/scripts/97b115c15dff84012008.js +1 -0
  59. package/dist/client/scripts/{5231395c152ded2ccd8c.js → 97cddd3583069debb72b.js} +1 -1
  60. package/dist/client/scripts/9a5b8573e2af7b27fdeb.js +1 -0
  61. package/dist/client/scripts/{3043520e675319d3972e.js → 9e0532d92a4aec9a4047.js} +1 -1
  62. package/dist/client/scripts/a2b56b4b73a95203948a.js +1 -0
  63. package/dist/client/scripts/{bd3f9d82a1477201aa9f.js → a3d97445918a3c42e99c.js} +1 -1
  64. package/dist/client/scripts/b11d1eceb7ff79ec07ab.js +1 -0
  65. package/dist/client/scripts/b9f6ea7215a27733a538.js +1 -0
  66. package/dist/client/scripts/{a0d9da6cb392dd6b40ba.js → ba6b6598cfe4ecfb57dc.js} +1 -1
  67. package/dist/client/scripts/{1b42fdcde5894709756f.js → bb749e497dd321be22b2.js} +1 -1
  68. package/dist/client/scripts/{52662e6a023b9188638c.js → c3d4ec66756e4129d0f8.js} +1 -1
  69. package/dist/client/scripts/{e0ae8b83000fcc6737de.js → c62b86e08db339ca81e9.js} +1 -1
  70. package/dist/client/scripts/{9331fa27b0351a6f713d.js → cda287abc0b20dd7b173.js} +1 -1
  71. package/dist/client/scripts/cdec51c82e06e970a4e5.js +1 -0
  72. package/dist/client/scripts/{660f7611714f9e5f55a4.js → d60d34563845b4e3b0e1.js} +1 -1
  73. package/dist/client/scripts/d68db39a8a9f9804b76a.js +1 -0
  74. package/dist/client/scripts/{2f6fc7f2ba1e17f1bbb7.js → d7e448ca540838089928.js} +1 -1
  75. package/dist/client/scripts/{cf2f69aa3b38c67a9189.js → d933c1d73249c683facc.js} +1 -1
  76. package/dist/client/scripts/{73612ea615858553186c.js → dc137fa0d8f6859d03de.js} +1 -1
  77. package/dist/client/scripts/{5167fbb319d59be5e57a.js → e4da1861edcade544efd.js} +1 -1
  78. package/dist/client/scripts/{befa3e741ff81496eec4.js → eefeba4668c080a4c7ab.js} +1 -1
  79. package/dist/client/scripts/{c3ae7025ff3e20718dbf.js → f23b7648861d2ea2b336.js} +1 -1
  80. package/dist/client/scripts/{9c4f9f07ee5bcc3aa4fe.js → f6cf463750508ad546f4.js} +1 -1
  81. package/dist/client/scripts/f965d2d846f085ec92df.js +1 -0
  82. package/dist/client/scripts/{6d01bc1d4a8e8665c5e6.js → fad5b818691cb299bb12.js} +1 -1
  83. package/dist/client/scripts/{ede74e1e20a69dbed972.js → fd37540dbdae3dac18e6.js} +1 -1
  84. package/dist/client/scripts/{9b322136977b7486f957.js → fe5df9446716d7ef1bc4.js} +1 -1
  85. package/dist/ssr/index.js +1 -1
  86. package/dist/ssr/manifest.json +1 -1
  87. package/package.json +15 -14
  88. package/dist/client/scripts/14966203aa087e0d890b.js +0 -1
  89. package/dist/client/scripts/1d5d22d0341a85b857c5.js +0 -1
  90. package/dist/client/scripts/200d2cde6d5cb6cfa138.js +0 -1
  91. package/dist/client/scripts/2e52ba9d0bfbde183a50.js +0 -1
  92. package/dist/client/scripts/304017f90014d7fd41d8.js +0 -1
  93. package/dist/client/scripts/3127397da548121ebe53.js +0 -1
  94. package/dist/client/scripts/41b10fd4d79aba731582.js +0 -1
  95. package/dist/client/scripts/4abfb5594403764af79a.js +0 -1
  96. package/dist/client/scripts/5179fb97d117855cdcfa.js +0 -1
  97. package/dist/client/scripts/6a0944d2f4a345e724e3.js +0 -1
  98. package/dist/client/scripts/7688c5059be433df92cd.js +0 -1
  99. package/dist/client/scripts/938d65b2d5b507b521fc.js +0 -1
  100. package/dist/client/scripts/a942eb63d464cf141793.js +0 -1
  101. package/dist/client/scripts/dafa07d2bf4931f97760.js +0 -1
  102. package/dist/client/scripts/eec8430ecec17c972efa.js +0 -1
  103. /package/dist/client/scripts/{6eb7c7f410527693630a.js → 3c9d8724e602abc493bb.js} +0 -0
  104. /package/dist/client/scripts/{a08f97460464cd02e2bc.js → 4ab343e48cbac5abc120.js} +0 -0
  105. /package/dist/client/scripts/{ddffaafa3150beba849f.js → c0e089a23c8a29fe890c.js} +0 -0
  106. /package/dist/client/scripts/{6f1f767323753612a660.js → c788c99f37db9b766c04.js} +0 -0
  107. /package/dist/client/styles/{938d65b2d5b507b521fc.css → 00c35b76f46770795fc6.css} +0 -0
  108. /package/dist/client/styles/{1d5d22d0341a85b857c5.css → 00dc7f48caf1871fb08a.css} +0 -0
  109. /package/dist/client/styles/{63b16cfbb76b12dfaba0.css → 09ea4b96c3d1810c42e0.css} +0 -0
  110. /package/dist/client/styles/{9b7ac4c1f43e93dc054a.css → 125faa00007f84861a36.css} +0 -0
  111. /package/dist/client/styles/{cd6bf03984d2a9d3cdc1.css → 1515e9031bcc93a44eb5.css} +0 -0
  112. /package/dist/client/styles/{33c095fb4e5483f6ac45.css → 15a469f546bf1f0466e1.css} +0 -0
  113. /package/dist/client/styles/{e20a9209674454bca4b8.css → 1a47d223d9653116cfe1.css} +0 -0
  114. /package/dist/client/styles/{72b36dc176525288458f.css → 1e2f1b54799d23569aae.css} +0 -0
  115. /package/dist/client/styles/{3aa09060db96cf617974.css → 1ebabe5dddf279c9bb49.css} +0 -0
  116. /package/dist/client/styles/{859fc7fba56fc8b69fb6.css → 26c65af57544300026ba.css} +0 -0
  117. /package/dist/client/styles/{06eb9b6db3558ccdbb13.css → 282efcfb2f178a4383ec.css} +0 -0
  118. /package/dist/client/styles/{6ec3cae4b98319dc0b2d.css → 32e3c5668117ff8d2d61.css} +0 -0
  119. /package/dist/client/styles/{528a83c665e8f0fa6fd9.css → 3773a039f295995a52d4.css} +0 -0
  120. /package/dist/client/styles/{13cac5666bc0d3a3380f.css → 39f361d27f6fa706f241.css} +0 -0
  121. /package/dist/client/styles/{70b0cbc344de6ab63f1b.css → 3cf4d6db3928f572fac7.css} +0 -0
  122. /package/dist/client/styles/{6c82733bb7ab9dfe99b2.css → 3f1e409c94f0c2790d29.css} +0 -0
  123. /package/dist/client/styles/{b41f1cc1bef2139dcc63.css → 422e1b5afec296ba8086.css} +0 -0
  124. /package/dist/client/styles/{7b3c28e355c2c32098f0.css → 51e47bfcaf13506c62ba.css} +0 -0
  125. /package/dist/client/styles/{2ce6efa1425356cd42b9.css → 57ec12111c056f9f4b71.css} +0 -0
  126. /package/dist/client/styles/{14966203aa087e0d890b.css → 68f7c6031293430987cd.css} +0 -0
  127. /package/dist/client/styles/{f91c17b1589ff6358911.css → 6ffcd1cefd31256b1b08.css} +0 -0
  128. /package/dist/client/styles/{1ad0ed977002cd7ff07d.css → 73622966d3deb27c335d.css} +0 -0
  129. /package/dist/client/styles/{2e52ba9d0bfbde183a50.css → 7e47b5feb567fd1dd8c4.css} +0 -0
  130. /package/dist/client/styles/{7688c5059be433df92cd.css → 7f4469da203795a6f47b.css} +0 -0
  131. /package/dist/client/styles/{16a02b67526c468f66d2.css → 803276655eb9ed5e9d3a.css} +0 -0
  132. /package/dist/client/styles/{b7a86cfe994d3608dd57.css → 864121788b8138ca2c67.css} +0 -0
  133. /package/dist/client/styles/{74b978e38ecae74c59f2.css → 898c147b72953c7d8efb.css} +0 -0
  134. /package/dist/client/styles/{42f7fa2d924439bb0670.css → 8990cd00d88536465193.css} +0 -0
  135. /package/dist/client/styles/{186ea281b77a6950098a.css → 8cbba1a2a1921bd720a1.css} +0 -0
  136. /package/dist/client/styles/{200d2cde6d5cb6cfa138.css → 97b115c15dff84012008.css} +0 -0
  137. /package/dist/client/styles/{5179fb97d117855cdcfa.css → 9a5b8573e2af7b27fdeb.css} +0 -0
  138. /package/dist/client/styles/{3043520e675319d3972e.css → 9e0532d92a4aec9a4047.css} +0 -0
  139. /package/dist/client/styles/{41b10fd4d79aba731582.css → a2b56b4b73a95203948a.css} +0 -0
  140. /package/dist/client/styles/{bd3f9d82a1477201aa9f.css → a3d97445918a3c42e99c.css} +0 -0
  141. /package/dist/client/styles/{304017f90014d7fd41d8.css → b11d1eceb7ff79ec07ab.css} +0 -0
  142. /package/dist/client/styles/{4abfb5594403764af79a.css → b9f6ea7215a27733a538.css} +0 -0
  143. /package/dist/client/styles/{a0d9da6cb392dd6b40ba.css → ba6b6598cfe4ecfb57dc.css} +0 -0
  144. /package/dist/client/styles/{3127397da548121ebe53.css → cdec51c82e06e970a4e5.css} +0 -0
  145. /package/dist/client/styles/{dafa07d2bf4931f97760.css → d68db39a8a9f9804b76a.css} +0 -0
  146. /package/dist/client/styles/{cf2f69aa3b38c67a9189.css → d933c1d73249c683facc.css} +0 -0
  147. /package/dist/client/styles/{5167fbb319d59be5e57a.css → e4da1861edcade544efd.css} +0 -0
  148. /package/dist/client/styles/{befa3e741ff81496eec4.css → eefeba4668c080a4c7ab.css} +0 -0
  149. /package/dist/client/styles/{c3ae7025ff3e20718dbf.css → f23b7648861d2ea2b336.css} +0 -0
  150. /package/dist/client/styles/{eec8430ecec17c972efa.css → f965d2d846f085ec92df.css} +0 -0
  151. /package/dist/client/styles/{6d01bc1d4a8e8665c5e6.css → fad5b818691cb299bb12.css} +0 -0
  152. /package/dist/ssr/styles/{b0fe42b48d8c60f97e88.css → 854c3269072e84c1aae9.css} +0 -0
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/b0fe42b48d8c60f97e88.css"
23
+ "styles/854c3269072e84c1aae9.css"
24
24
  ]
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "main": "dist/ssr/index.js",
@@ -61,15 +61,16 @@
61
61
  "@babel/preset-react": "7.12.13",
62
62
  "@originjs/vite-plugin-require-context": "^1.0.9",
63
63
  "@rushstack/eslint-patch": "^1.3.0",
64
- "@storybook/addon-a11y": "^7.0.18",
65
- "@storybook/addon-essentials": "^7.0.18",
66
- "@storybook/addon-interactions": "^7.0.18",
67
- "@storybook/addon-links": "^7.0.18",
68
- "@storybook/blocks": "^7.0.18",
69
- "@storybook/jest": "^0.1.0",
70
- "@storybook/testing-library": "^0.1.0",
71
- "@storybook/vue3": "^7.0.18",
72
- "@storybook/vue3-vite": "^7.0.18",
64
+ "@storybook/addon-a11y": "^7.4.1",
65
+ "@storybook/addon-essentials": "^7.4.1",
66
+ "@storybook/addon-interactions": "^7.4.1",
67
+ "@storybook/addon-links": "^7.4.1",
68
+ "@storybook/addon-mdx-gfm": "7.4.1",
69
+ "@storybook/blocks": "^7.4.1",
70
+ "@storybook/jest": "^0.2.2",
71
+ "@storybook/testing-library": "^0.2.0",
72
+ "@storybook/vue3": "^7.4.1",
73
+ "@storybook/vue3-vite": "^7.4.1",
73
74
  "@typescript-eslint/eslint-plugin": "^5.59.8",
74
75
  "@typescript-eslint/parser": "^5.59.8",
75
76
  "@vue/eslint-config-airbnb": "^7.0.0",
@@ -87,7 +88,7 @@
87
88
  "eslint": "^8.2.0",
88
89
  "eslint-import-resolver-webpack": "^0.13.2",
89
90
  "eslint-plugin-import": "^2.25.2",
90
- "eslint-plugin-storybook": "^0.6.12",
91
+ "eslint-plugin-storybook": "^0.6.13",
91
92
  "eslint-plugin-vue": "^9.11.1",
92
93
  "eslint-webpack-plugin": "^4.0.1",
93
94
  "file-loader": "^6.2.0",
@@ -106,7 +107,7 @@
106
107
  "sass": "^1.62.1",
107
108
  "sass-loader": "^13.2.2",
108
109
  "speed-measure-webpack-plugin": "^1.5.0",
109
- "storybook": "^7.3.2",
110
+ "storybook": "^7.4.1",
110
111
  "style-loader": "^3.3.2",
111
112
  "svgo-loader": "^4.0.0",
112
113
  "time-analytics-webpack-plugin": "^0.1.20",
@@ -123,7 +124,7 @@
123
124
  },
124
125
  "dependencies": {
125
126
  "@mapbox/geojson-extent": "^1.0.1",
126
- "@storybook/addon-a11y": "^7.0.18",
127
+ "@storybook/addon-a11y": "^7.4.1",
127
128
  "@unhead/vue": "^1.1.27",
128
129
  "@visitscotland/product-search": "^0.1.9",
129
130
  "@vueform/multiselect": "^2.6.2",
@@ -143,7 +144,7 @@
143
144
  "require-context.macro": "^1.2.2",
144
145
  "slugify": "^1.6.6",
145
146
  "standard-version": "^9.5.0",
146
- "storybook-addon-pseudo-states": "^2.0.1",
147
+ "storybook-addon-pseudo-states": "^2.1.1",
147
148
  "theo": "^8.1.5",
148
149
  "ts-loader": "^9.4.3",
149
150
  "upgrade": "^1.1.0",
@@ -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([[5427],{76841:function(){},64026:function(e,t,i){"use strict";var n=i(2498),o=i(22048),s=i(15730),r=i(72956),u=i.n(r),a=i(68497),d=i(67106),l=i(16033),c=i(60976),f=null,h=l.Z.youtube;t.Z={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:o.default,YoutubeVue3:n.YoutubeVue3},mixins:[d.Z,c.Z],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:h,player:null,reRendering:!1,shouldAutoPlay:!1}},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}},mounted:function(){this.jsDisabled=(0,a.Z)(),f=u()((0,s.Z)()),this.$refs.youtube&&(this.player=this.$refs.youtube.player,this.getPlayerDetails()),this.shouldAutoPlay&&(this.shouldAutoPlay=!1,this.playVideo()),this.setEventListeners()},methods:{playVideo:function(){this.player&&this.player.playVideo()},pauseVideo:function(){this.player&&this.player.pauseVideo()},youtubePlaying:function(){this.analyticsEvent("play")},youtubePaused:function(){this.analyticsEvent("pause")},youtubeEnded:function(){this.analyticsEvent("ended")},analyticsEvent:function(e){var t=this,i=0,n=0;this.player.getCurrentTime().then((function(e){return i=e,t.player.getDuration()})).then((function(e){n=e})).then((function(){var o=i/n*100;t.createDataLayerObject("videoTrackingDataEvent",{title:t.videoTitle,status:e,percent:Math.round(o)})}))},getPlayerDetails:function(){var e=this;void 0!==this.player&&this.player.getDuration().then((function(t){e.formatTime(t),e.storeVideoDetails()}))},formatTime:function(e){var t=Math.floor(e/60),i=e-60*t;this.duration.minutes=t,this.duration.seconds=i;var n=this.getRoundedMinutes(t,i);this.duration.roundedMinutes=this.formatSingularOrPlural(n)},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(){f.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.reRenderVideo(),"play"===t.action?e.playVideo():"pause"===t.action&&e.pauseVideo())}))},reRenderVideo:function(){var e=this;this.reRendering=!0,this.$nextTick((function(){e.reRendering=!1,e.$nextTick((function(){e.shouldAutoPlay=!0}))}))}}}},41974:function(e,t,i){"use strict";i.d(t,{s:function(){return a}});var n=i(66252),o=i(3577),s={key:0,class:"vs-video","data-test":"vs-video"},r={class:"vs-video__iframe-wrapper"},u={key:0};function a(e,t,i,a,d,l){var c=(0,n.up)("YoutubeVue3"),f=(0,n.up)("VsWarning");return d.reRendering?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",r,[e.requiredCookiesExist?((0,n.wg)(),(0,n.iD)("div",u,[(0,n.Wm)(c,{autoplay:0,videoid:i.videoId,vars:d.playerVars,onPlayed:l.youtubePlaying,onPaused:l.youtubePaused,onEnded:l.youtubeEnded,ref:"youtube"},null,8,["videoid","vars","onPlayed","onPaused","onEnded"])])):(0,n.kq)("",!0),l.showError?((0,n.wg)(),(0,n.j4)(f,{key:1,theme:"light",type:!0===e.cookiesInitStatus?"cookie":"normal","data-test":"vs-video__warning",class:"vs-video__warning"},(0,n.Nv)({default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(l.warningText)+" ",1)]})),_:2},[e.requiredCookiesExist||!0!==e.cookiesInitStatus?void 0:{name:"button-text",fn:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(i.cookieBtnText),1)]})),key:"0"}]),1032,["type"])):(0,n.kq)("",!0),(0,n.Wm)(f,{theme:"light","data-test":"vs-video__warning--no-js",class:"vs-video__warning vs-video__warning--no-js"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,o.toDisplayString)(i.noJsMessage),1)]})),_:1})])]))}},13721:function(e,t,i){"use strict";var n=i(93379),o=i.n(n),s=i(7795),r=i.n(s),u=i(90569),a=i.n(u),d=i(3565),l=i.n(d),c=i(19216),f=i.n(c),h=i(44589),p=i.n(h),y=i(76841),v=i.n(y),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=f(),o()(v(),g),v()&&v().locals&&v().locals},55677:function(e,t,i){"use strict";i.r(t);var n=i(17622),o=i(69417);i(58462);const s=(0,i(83744).Z)(o.Z,[["render",n.s]]);t.default=s},69417:function(e,t,i){"use strict";i.d(t,{Z:function(){return n.Z}});var n=i(64026)},17622:function(e,t,i){"use strict";i.d(t,{s:function(){return n.s}});var n=i(41974)},58462:function(e,t,i){"use strict";i(13721)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,2498,7370,5730,976,3918,2048,7447,3810,2956,8497],(function(){return 55677,e(e.s=55677)})),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.VsItineraryMap=e():t.VsItineraryMap=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4469],{72996:function(){},78090:function(t,e,o){"use strict";var n,i=o(4942),r=o(15730),a=o(23802),s=o(65878),p=o(66252),u=o(49963),d=o(83709),c=o(6158),l=o.n(c),h=o(29319),f=o.n(h);function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}e.Z={name:"VsItineraryMap",status:"prototype",release:"0.0.1",props:{labels:{type:Object,required:!0},overviewMapLatitude:{type:String,required:!0,default:"-4.13"},overviewMapLongitude:{type:String,required:!0,default:"57.81"},overviewMapZoom:{type:String,required:!1,default:"5"},stops:{type:Array,required:!0}},data:function(){return{isDesktop:!1,geojsonData:{type:"FeatureCollection",features:[]},mapbox:{map:null,bounds:null,rotation:0,config:{container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",center:[parseFloat(this.overviewMapLatitude),parseFloat(this.overviewMapLongitude)],zoom:parseInt(this.overviewMapZoom,10),maxBounds:[[-11.697414,52.801395],[.651219,61.395636]],pitchWithRotate:!1,dragRotate:!1}},markers:[],popup:null}},computed:{mapPadding:function(){return this.isTablet?{top:100,bottom:100,left:100,right:100}:{top:50,bottom:50,left:50,right:50}},highlightedStop:function(){return n?n.highlightedStop:null},highlightedStopCoordinates:function(){return n?n.getHighlightedStopCoordinates():null}},watch:{highlightedStopCoordinates:function(){this.addMapPopup()}},mounted:function(){n=(0,a.Z)((0,r.Z)()),this.lazyloadMapComponent(),this.isTablet=window.innerWidth>=768,window.addEventListener("resize",this.onResize),window.addEventListener("DOMContentLoaded",(function(){d.Z.init({div:"itinerary-map"})}))},unmounted:function(){window.removeEventListener("resize",this.onResize)},methods:{addMap:function(){var t=this;this.mapbox.config.container=this.$refs.mapbox,this.mapbox.map=new(l().Map)(this.mapbox.config),this.mapbox.map.scrollZoom.disable(),this.mapbox.map.on("rotate",(function(){t.mapbox.rotation=t.mapbox.map.transform.angle}))},addMapControls:function(){var t=new(l().NavigationControl);this.mapbox.map.addControl(t,"top-right"),this.mapbox.map.addControl(new(l().FullscreenControl))},addMapFeatures:function(){var t=this;this.stops.map((function(e){return t.geojsonData.features.push({type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(e.longitude),parseFloat(e.latitude)]},properties:{title:e.title,stopCount:e.stopCount,imageSrc:e.imageSrc,altText:e.altText}})}))},addMapMarkers:function(){var t=this;this.geojsonData.features.forEach((function(e){var o=(0,p.Wm)(function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){(0,i.Z)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},s.default),{feature:e}),n=document.createElement("div");t.$refs.mapboxOuter.appendChild(n),(0,u.render)(o,n);var r=new(l().Marker)(n.children[0]).setLngLat(e.geometry.coordinates).addTo(t.mapbox.map);t.markers.push(r)}))},addMapPopup:function(){var t=this;this.removeMapPopup(),null!==this.highlightedStopCoordinates&&null!==this.highlightedStop&&(this.popup=new(l().Popup)({closeButton:!1,offset:{top:[0,20],"top-left":[0,20],"top-right":[0,20],bottom:[0,-50],"bottom-left":[0,-50],"bottom-right":[0,-50],left:[30,-20],right:[-30,-20]}}).setLngLat(this.highlightedStopCoordinates).setHTML('\n <img class="vs-itinerary-map__popup-image" src="'.concat(this.highlightedStop.properties.imageSrc,'" alt="').concat(this.highlightedStop.properties.altText,'" />\n <div>\n <h4 class="vs-itinerary-map__popup-stop-number mb-0">').concat(this.labels.stopLabel," ").concat(this.highlightedStop.properties.stopCount,'</h4>\n <p class="vs-itinerary-map__popup-stop-name">').concat(this.highlightedStop.properties.title,"</p>\n </div>\n ")).addTo(this.mapbox.map)),document.onkeydown=function(e){var o=e||window.event;"Escape"!==o.key&&"Esc"!==o.key||t.removeMapPopup()}},fitToBounds:function(){this.mapbox.map.fitBounds(f()(this.geojsonData),{padding:this.mapPadding})},initialiseMapComponent:function(){this.addMap(),this.addMapControls(),this.stops.length&&this.addMapFeatures(),this.geojsonData.features.length&&(this.addMapMarkers(),this.fitToBounds())},lazyloadMapComponent:function(){var t=this;l().supported({failIfMajorPerformanceCaveat:!0}),"IntersectionObserver"in window?(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&(t.observer.unobserve(t.$el),t.initialiseMapComponent())})),this.observer.observe(this.$el)):this.initialiseMapComponent()},removeMapPopup:function(){null!==this.popup?(this.popup.remove(),this.popup=null):this.popup=null,document.onkeydown=null},onResize:function(){this.isTablet=window.innerWidth>=768}}}},26141:function(t,e,o){"use strict";o.d(e,{s:function(){return a}});var n=o(66252),i={ref:"mapboxOuter"},r={class:"vs-itinerary-map",ref:"mapbox",id:"itinerary-map"};function a(t,e,o,a,s,p){return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",r,null,512)],512)}},16888:function(t,e,o){"use strict";var n=o(93379),i=o.n(n),r=o(7795),a=o.n(r),s=o(90569),p=o.n(s),u=o(3565),d=o.n(u),c=o(19216),l=o.n(c),h=o(44589),f=o.n(h),m=o(72996),g=o.n(m),v={};v.styleTagTransform=f(),v.setAttributes=d(),v.insert=p().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=l(),i()(g(),v),g()&&g().locals&&g().locals},15781:function(t,e,o){"use strict";o.r(e);var n=o(47789),i=o(53201);o(77676);const r=(0,o(83744).Z)(i.Z,[["render",n.s]]);e.default=r},53201:function(t,e,o){"use strict";o.d(e,{Z:function(){return n.Z}});var n=o(78090)},47789:function(t,e,o){"use strict";o.d(e,{s:function(){return n.s}});var n=o(26141)},77676:function(t,e,o){"use strict";o(16888)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,5924,7370,5730,3709,5878],(function(){return 15781,t(t.s=15781)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9848],{6712:function(){},879:function(t,e,i){"use strict";var a=i(4942),n=i(2015),r=i(17370),s=i(15730),o=i(66072);function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){(0,a.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u=null;e.Z={name:"VsMainMapWrapperListItem",status:"prototype",release:"0.0.1",components:{VsImg:n.default,VsIcon:r.default},inject:["mapId"],props:{itemData:{type:Object,required:!0},fromEndpoint:{type:Boolean,default:!1},focussed:{type:Boolean,default:!1}},data:function(){return{formattedData:{}}},computed:{isActive:function(){return this.highlightedPlace===this.formattedData.id},highlightedPlace:function(){return u?u.getHoveredStop(this.mapId):""}},mounted:function(){u=(0,o.Z)((0,s.Z)()),this.fromEndpoint?(this.formattedData=m(m({},this.formattedData),{},{id:this.itemData.id,title:this.itemData.name}),void 0!==this.itemData.images&&(this.formattedData=m(m({},this.formattedData),{},{image:this.itemData.images[0].mediaUrl}))):this.formattedData=this.itemData,this.focussed&&this.$refs.btn.focus()},methods:{showItemDetail:function(t){u.setActivePlace({mapId:this.mapId,placeId:t}),this.$parent.$emit("show-item-detail",t),this.$parent.$emit("set-stage",2)},itemHover:function(t){u.setHoveredPlace({mapId:this.mapId,hoveredId:t})}}}},91966:function(t,e,i){"use strict";i.d(e,{s:function(){return c}});var a=i(66252),n=i(3577),r=i(49963),s={class:"vs-main-map-wrapper-list-item__img-container"},o={class:"vs-main-map-wrapper-list-item__text"};function c(t,e,i,c,m,u){var p=(0,a.up)("VsImg"),l=(0,a.up)("VsIcon");return(0,a.wg)(),(0,a.iD)("button",{type:"button",class:(0,n.normalizeClass)(["vs-main-map-wrapper-list-item",u.isActive?"vs-main-map-wrapper-list-item--hovered":""]),"data-test":"vs-main-map-wrapper-list-item",onClick:e[0]||(e[0]=function(t){return u.showItemDetail(m.formattedData.id)}),onKeyup:e[1]||(e[1]=(0,r.withKeys)((function(t){return u.showItemDetail(m.formattedData.id)}),["enter"])),onMouseover:e[2]||(e[2]=function(t){return u.itemHover(m.formattedData.id)}),onMouseleave:e[3]||(e[3]=function(t){return u.itemHover("")}),onFocusin:e[4]||(e[4]=function(t){return u.itemHover(m.formattedData.id)}),onFocusout:e[5]||(e[5]=function(t){return u.itemHover("")}),ref:"btn"},[(0,a._)("div",s,[void 0!==m.formattedData.image?((0,a.wg)(),(0,a.j4)(p,{key:0,src:m.formattedData.image,class:"vs-main-map-wrapper-list-item__img"},null,8,["src"])):(0,a.kq)("",!0)]),(0,a._)("span",o,(0,n.toDisplayString)(m.formattedData.title),1),(0,a.Wm)(l,{name:"internal-link",variant:"primary",size:"xxs",class:"vs-main-map-wrapper-list-item__icon"})],34)}},69473:function(t,e,i){"use strict";var a=i(93379),n=i.n(a),r=i(7795),s=i.n(r),o=i(90569),c=i.n(o),m=i(3565),u=i.n(m),p=i(19216),l=i.n(p),d=i(44589),f=i.n(d),h=i(6712),v=i.n(h),D={};D.styleTagTransform=f(),D.setAttributes=u(),D.insert=c().bind(null,"head"),D.domAPI=s(),D.insertStyleElement=l(),n()(v(),D),v()&&v().locals&&v().locals},29848:function(t,e,i){"use strict";i.r(e);var a=i(29002),n=i(25585);i(46892);const r=(0,i(83744).Z)(n.Z,[["render",a.s]]);e.default=r},25585:function(t,e,i){"use strict";i.d(e,{Z:function(){return a.Z}});var a=i(879)},29002:function(t,e,i){"use strict";i.d(e,{s:function(){return a.s}});var a=i(91966)},46892:function(t,e,i){"use strict";i(69473)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5834],{65309:function(){},944:function(t,e,s){"use strict";var n=s(83918),i=s(15730),a=s(66072),r=null;e.Z={name:"VsMainMapWrapperControls",status:"prototype",release:"0.0.1",components:{VsButton:n.default},inject:["clearSelectionText","applyFiltersText"],data:function(){return{isDisabled:!0}},computed:{getSubcatFilters:function(){return r?r.activeSubcatFilters:null}},mounted:function(){var t=this;r=(0,a.Z)((0,i.Z)()),this.emitter&&this.emitter.on("checkboxes-selected",(function(e){t.isDisabled=!e})),this.getSubcatFilters.length>0&&(this.isDisabled=!1)},methods:{clearSelection:function(){this.emitter&&this.emitter.emit("clearSelectedSubcats"),this.isDisabled=!0},submitCheckboxes:function(){this.emitter&&this.emitter.emit("submitCheckboxData")}}}},53936:function(t,e,s){"use strict";s.d(e,{s:function(){return c}});var n=s(66252),i=s(49963),a=s(3577),r={class:"vs-main-map-controls","data-test":"vs-main-map-controls"};function c(t,e,s,c,l,o){var u=(0,n.up)("VsButton");return(0,n.wg)(),(0,n.iD)("div",r,[(0,n.Wm)(u,{class:"vs-main-map-controls__clear-selection","data-test":"vs-main-map-subcategory__clear-selection",size:"sm",variant:"transparent",onClick:o.clearSelection,onKeyup:(0,i.withKeys)(o.clearSelection,["enter"])},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,a.toDisplayString)(o.clearSelectionText),1)]})),_:1},8,["onClick","onKeyup"]),(0,n.Wm)(u,{class:"vs-main-map-controls__apply-filters","data-test":"vs-main-map-subcategory__apply-filters",size:"sm",onKeypress:(0,i.withKeys)(o.submitCheckboxes,["enter"]),onClick:o.submitCheckboxes,"aria-disabled":l.isDisabled,disabled:l.isDisabled},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,a.toDisplayString)(o.applyFiltersText),1)]})),_:1},8,["onKeypress","onClick","aria-disabled","disabled"])])}},389:function(t,e,s){"use strict";var n=s(93379),i=s.n(n),a=s(7795),r=s.n(a),c=s(90569),l=s.n(c),o=s(3565),u=s.n(o),m=s(19216),d=s.n(m),p=s(44589),b=s.n(p),f=s(65309),h=s.n(f),v={};v.styleTagTransform=b(),v.setAttributes=u(),v.insert=l().bind(null,"head"),v.domAPI=r(),v.insertStyleElement=d(),i()(h(),v),h()&&h().locals&&h().locals},85834:function(t,e,s){"use strict";s.r(e);var n=s(14551),i=s(15656);s(31870);const a=(0,s(83744).Z)(i.Z,[["render",n.s]]);e.default=a},15656:function(t,e,s){"use strict";s.d(e,{Z:function(){return n.Z}});var n=s(944)},14551:function(t,e,s){"use strict";s.d(e,{s:function(){return n.s}});var n=s(53936)},31870:function(t,e,s){"use strict";s(389)}}]);
@@ -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.VsMainMapWrapper=t():e.VsMainMapWrapper=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4373],{68333:function(){},38822:function(e,t,s){"use strict";var a=s(81779),n=s(83918),i=s(22048),o=s(98869),l=s(5274),r=s(15730),u=s(66072),c=s(14169),p=s(84143),d=null;t.Z={name:"VsMainMapWrapper",status:"prototype",release:"0.0.1",components:{VsContainer:a.xB,VsRow:a.ou,VsCol:a.hY,VsMap:c.default,VsButton:n.default,VsMainMapWrapperPanel:p.default,VsButtonToggleGroup:o.default,VsWarning:i.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:"",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:{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}))},subCatActiveFilters:function(){return d?d.activeSubcatFilters:null},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;d=(0,u.Z)((0,r.Z)()),this.selectedToggle=this.initialSelected,d.addMapInstance({id:this.mapId,filters:this.filters,places:this.placesData,activePins:this.activePins}),this.emitter&&this.emitter.on("clearSelectedSubcats",(function(){e.resetZoom=!0}))},methods:{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){d.setSelectedSubcat(e),this.selectedSubCategory=e,null!==e?(this.getSubcatMarkerData(),this.selectedCategory=e):(d.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.Z.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.Z.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);l.Z.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&&(d.setActivePlace({mapId:this.mapId,placeId:""}),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("serv"),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"}}}},31281:function(e,t,s){"use strict";s.d(t,{s:function(){return i}});var a=s(66252),n=s(3577);function i(e,t,s,i,o,l){var r=(0,a.up)("VsMainMapWrapperPanel"),u=(0,a.up)("VsButton"),c=(0,a.up)("VsMap"),p=(0,a.up)("VsButtonToggleGroup"),d=(0,a.up)("VsWarning"),g=(0,a.up)("VsCol"),f=(0,a.up)("VsRow"),h=(0,a.up)("VsContainer");return(0,a.wg)(),(0,a.j4)(h,{"data-test":"vs-main-map-wrapper"},{default:(0,a.w5)((function(){return[(0,a.Wm)(f,null,{default:(0,a.w5)((function(){return[(0,a.Wm)(g,null,{default:(0,a.w5)((function(){return[(0,a._)("div",{class:"vs-main-map-wrapper",ref:s.mapId},[(0,a._)("div",{class:(0,n.normalizeClass)(["vs-main-map-wrapper__side-panel",l.panelDisplayClass]),"data-test":"vs-main-map-wrapper__side-panel"},[(0,a.Wm)(r,{"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:l.setCategory,onSetSubcategory:l.setSubCategory,onSubcategoriesFiltered:l.filterSubCategories,onSetStage:l.setStage,onClosePanel:l.closePanel,onShowItemDetail:l.showDetail,onFilterPlaces:l.filterPlaces,onLoadMorePlaces:l.loadMorePlaces},{closePanelText:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"close-side-panel-text")]})),"reset-side-panel-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"reset-side-panel-text")]})),"back-btn-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"back-btn-text")]})),"panel-loading-message":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"panel-loading-message")]})),"load-more-text":(0,a.w5)((function(){return[(0,a.WI)(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._)("div",{class:(0,n.normalizeClass)(["vs-main-map-wrapper__map",l.mapDisplayClass])},[(0,a.Wm)(u,{class:"vs-main-map-wrapper__map-toggle",size:"sm",onClick:l.openPanel,"data-test":"vs-main-map-wrapper__map-toggle"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"open-side-panel-text")]})),_:3},8,["onClick"]),(0,a.Wm)(c,{"is-visible":!o.panelVisible,labels:{},places:o.activePins,"selected-item":o.selectedItem,"map-id":s.mapId,"show-polygons":o.showRegions,"show-info-message":""!==o.mapStatus,onShowDetail:l.showDetail,onSetCategory:l.setCategory,onMapReady:l.setMapReady,onZoomReset:t[0]||(t[0]=function(e){return o.resetZoom=!1}),"bounds-data":s.regionBounds,"reset-zoom":o.resetZoom},{"map-loading-text":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"map-loading-text")]})),"info-message":(0,a.w5)((function(){return[(0,a.Uk)((0,n.toDisplayString)(l.infoMessage),1)]})),"zoom-too-close":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-close")]})),"zoom-too-far":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"zoom-too-far")]})),"no-js":(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3},8,["is-visible","places","selected-item","map-id","show-polygons","show-info-message","onShowDetail","onSetCategory","onMapReady","bounds-data","reset-zoom"]),s.toggleData.length>0?((0,a.wg)(),(0,a.j4)(p,{key:0,"data-test":"vs-main-map-wrapper__map-toggle-group","initial-selected":o.selectedToggle,options:s.toggleData,"buttons-label":s.buttonsLabel,onToggleChanged:l.onToggleChanged},null,8,["initial-selected","options","buttons-label","onToggleChanged"])):(0,a.kq)("",!0)],2)],512),(0,a.Wm)(d,{class:"vs-main-map-wrapper__no-js",theme:"light"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3})]})),_:3})]})),_:3})]})),_:3})}},58561:function(e,t,s){"use strict";var a=s(93379),n=s.n(a),i=s(7795),o=s.n(i),l=s(90569),r=s.n(l),u=s(3565),c=s.n(u),p=s(19216),d=s.n(p),g=s(44589),f=s.n(g),h=s(68333),m=s.n(h),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=r().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=d(),n()(m(),y),m()&&m().locals&&m().locals},44152:function(e,t,s){"use strict";s.r(t);var a=s(31281),n=s(27492);s(28562);const i=(0,s(83744).Z)(n.Z,[["render",a.s]]);t.default=i},27492:function(e,t,s){"use strict";s.d(t,{Z:function(){return a.Z}});var a=s(38822)},28562:function(e,t,s){"use strict";s(58561)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,8764,5274,5924,7370,5730,976,3918,7581,4186,1321,1779,3366,2048,2015,6573,6072,6145,1674,9848,4173,4613,6520,175,5834,3709,4169,4143,8869],(function(){return 44152,e(e.s=44152)})),e.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4173],{89006:function(){},50662:function(e,t,r){"use strict";var i=r(15730),n=r(66072),a=r(26573),s=null;t.Z={name:"VsMapMarker",status:"prototype",release:"0.0.1",components:{VsMainMapWrapperIcon:a.default},props:{feature:{type:Object,required:!0},mapId:{type:String,required:!0},selectedPlace:{type:String,default:null}},emits:["showDetail","setCategory"],computed:{isActive:function(){return this.activePlace===this.feature.properties.id||this.highlightedPlace===this.feature.properties.id},highlightedPlace:function(){return s?s.getHoveredStop(this.mapId):""},activePlace:function(){return s?s.getActivePlace(this.mapId):null},activeSubcat:function(){return s?s.selectedSubCategory:null},getMarkerIcon:function(){var e;return"null"===(e=""!==this.feature.properties.type?this.feature.properties.type:null!==this.activeSubcat?this.activeSubcat:"featured")&&(e=""),e}},watch:{isActive:function(){return this.activePlace===this.feature.properties.id||this.highlightedPlace===this.feature.properties.id||(this.activePlace===this.feature.properties.id&&s.setActiveMarkerPos(this.feature.geometry.coordinates),!1)},activePlace:function(){this.activePlace===this.feature.properties.id&&s.setActiveMarkerPos(this.feature.geometry.coordinates)}},mounted:function(){s=(0,n.Z)((0,i.Z)())},methods:{handleClick:function(){s.setActiveMarkerPos(this.feature.geometry.coordinates),s.setActivePlace({mapId:this.mapId,placeId:this.feature.properties.id}),this.$emit("showDetail",this.feature.properties.id),this.$emit("setCategory",this.feature.properties.type)},handleHover:function(e){s.setHoveredPlace({mapId:this.mapId,hoveredId:e})}}}},3559:function(e,t,r){"use strict";r.d(t,{s:function(){return s}});var i=r(66252),n=r(3577),a=r(49963);function s(e,t,r,s,o,c){var u=(0,i.up)("VsMainMapWrapperIcon");return(0,i.wg)(),(0,i.iD)("button",{type:"button",class:(0,n.normalizeClass)(["vs-map-marker",c.isActive?"vs-map-marker--active":""]),"data-test":"vs-map-marker",variant:"transparent",onClick:t[0]||(t[0]=function(){return c.handleClick&&c.handleClick.apply(c,arguments)}),onKeydown:t[1]||(t[1]=(0,a.withKeys)((function(){return c.handleClick&&c.handleClick.apply(c,arguments)}),["enter"])),onMouseover:t[2]||(t[2]=function(e){return c.handleHover(r.feature.properties.id)}),onMouseleave:t[3]||(t[3]=function(e){return c.handleHover("")}),onFocusin:t[4]||(t[4]=function(e){return c.handleHover(r.feature.properties.id)}),onFocusout:t[5]||(t[5]=function(e){return c.handleHover("")})},[(0,i.Wm)(u,{class:"vs-main-map-category__icon",id:c.getMarkerIcon,"is-map-marker":!0},null,8,["id"])],34)}},50081:function(e,t,r){"use strict";var i=r(93379),n=r.n(i),a=r(7795),s=r.n(a),o=r(90569),c=r.n(o),u=r(3565),l=r.n(u),p=r(19216),d=r.n(p),h=r(44589),f=r.n(h),v=r(89006),m=r.n(v),y={};y.styleTagTransform=f(),y.setAttributes=l(),y.insert=c().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=d(),n()(m(),y),m()&&m().locals&&m().locals},24173:function(e,t,r){"use strict";r.r(t);var i=r(3559),n=r(40282);r(17281);const a=(0,r(83744).Z)(n.Z,[["render",i.s]]);t.default=a},40282:function(e,t,r){"use strict";r.d(t,{Z:function(){return i.Z}});var i=r(50662)},17281:function(e,t,r){"use strict";r(50081)}}]);
@@ -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.VsLinkListItem=e():t.VsLinkListItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2289],{4304:function(){},36760:function(t,e,n){"use strict";var i,o=n(71609),r=n(15730),s=n(72956),u=n.n(s);e.Z={name:"VsLinkListItem",status:"prototype",release:"0.0.1",components:{VsLink:o.default},props:{href:{type:String,default:null},type:{type:String,default:"default",validator:function(t){return t.match(/(default|external|internal|download|video)/)}},variant:{type:String,default:"primary",validator:function(t){return t.match(/(primary|on-dark)/)}},videoId:{type:String,default:null},videoDescriptor:{type:String,default:null}},computed:{formattedVideoDuration:function(){if(this.videoDetails){var t="".concat(this.videoDetails.videoFullDuration.seconds);return 1===t.length&&(t="0".concat(t)),"".concat(this.videoDetails.videoFullDuration.minutes,":").concat(t)}return""},videoDetails:function(){return i?i.getVideo(this.videoId):null},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0}},mounted:function(){i=u()((0,r.Z)())},methods:{emitShowModal:function(){this.videoId&&this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},78040:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var i=n(66252),o=n(3577),r={class:"link-list-item"};function s(t,e,n,s,u,a){var d=(0,i.up)("VsLink");return(0,i.wg)(),(0,i.iD)("li",r,[(0,i.Wm)(d,{href:n.href,type:"video"==n.type?"default":n.type,variant:n.variant,role:"video"==n.type?"button":null,onClick:a.emitShowModal},{default:(0,i.w5)((function(){return[(0,i.WI)(t.$slots,"default"),"video"==n.type&&a.videoLoaded?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Uk)(" | "+(0,o.toDisplayString)(n.videoDescriptor)+" "+(0,o.toDisplayString)(a.formattedVideoDuration),1)],64)):(0,i.kq)("",!0)]})),_:3},8,["href","type","variant","role","onClick"])])}},59877:function(t,e,n){"use strict";var i=n(93379),o=n.n(i),r=n(7795),s=n.n(r),u=n(90569),a=n.n(u),d=n(3565),l=n.n(d),c=n(19216),f=n.n(c),v=n(44589),p=n.n(v),m=n(4304),h=n.n(m),y={};y.styleTagTransform=p(),y.setAttributes=l(),y.insert=a().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=f(),o()(h(),y),h()&&h().locals&&h().locals},97410:function(t,e,n){"use strict";n.r(e);var i=n(49229),o=n(7211);n(66355);const r=(0,n(83744).Z)(o.Z,[["render",i.s]]);e.default=r},7211:function(t,e,n){"use strict";n.d(e,{Z:function(){return i.Z}});var i=n(36760)},49229:function(t,e,n){"use strict";n.d(e,{s:function(){return i.s}});var i=n(78040)},66355:function(t,e,n){"use strict";n(59877)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7370,5730,976,1609,2956],(function(){return 97410,t(t.s=97410)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4169],{72776:function(){},35097:function(e,t,o){"use strict";var a=o(22048),s=o(16145),i=o(83709),n=o(66252),r=o(49963),p=o(15730),d=o(66072),l=o(6158),u=o.n(l),m=o(29319),c=o.n(m),h=o(24173),g=null;t.Z={name:"VsMap",status:"prototype",release:"0.0.1",components:{VsWarning:a.default,VsLoading:s.default},props:{overviewMapLatitude:{type:String,default:"57.81"},overviewMapLongitude:{type:String,default:"-5.51748"},overviewMapZoom:{type:String,default:"5"},mapId:{type:String,required:!0},isVisible:{type:Boolean,required:!0},places:{type:Array,required:!0},fitToMarkers:{type:Boolean,default:!1},showPolygons:{type:Boolean,default:!1},selectedItem:{type:String,default:null},boundsData:{type:Object,default:function(){}},showInfoMessage:{type:Boolean,default:null},resetZoom:{type:Boolean,default:!1}},data:function(){return{isDesktop:!1,geojsonData:{type:"FeatureCollection",features:[]},polygons:{type:"FeatureCollection",features:[]},multiPolygons:[],mapbox:{map:null,bounds:null,rotation:0,config:{container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",pitchWithRotate:!1,dragRotate:!1}},markers:[],popup:null,hoveredStateId:null,activeStateId:null,showMapMessage:!0,isLoading:!0,showZoomMessage:null}},computed:{getZoom:function(){return this.mapbox.map?this.mapbox.map.getZoom():null},highlightedPlace:function(){return this.mapbox.map?g.getHoveredStop(this.mapId):""},activeMarkerPostion:function(){return this.mapbox.map?g.activeMarkerPos:null}},watch:{isVisible:function(e){var t=this;e&&null!==this.mapbox.map&&setTimeout((function(){t.mapbox.map.resize()}),20)},places:{handler:function(){this.geojsonData.features=[],this.addMapFeatures(),this.addMapMarkers()},deep:!0},showPolygons:function(e){!0===e?this.showMapPolygons():this.hideMapPolygons()},highlightedPlace:function(e){0===e.length?this.removeHoveredPolygon():this.addHoveredPolygon(e)},selectedItem:function(e){var t=this.polygons.features.filter((function(t){return t.properties.id===e}));e?t.length>0&&this.addActivePolygon(e):this.removeActivePolygon()},activeMarkerPostion:function(e){this.checkPointIsVisible(e)||this.centreMapOnPoint(e)},showInfoMessage:function(e){this.showMapMessage=!!e},resetZoom:function(e){e&&(this.mapbox.map.fitBounds(this.calculateBoundingBox()),this.$emit("zoom-reset"),this.showInfoMessage&&(this.showMapMessage=!0))}},mounted:function(){var e=this;g=(0,d.Z)((0,p.Z)()),this.lazyloadMapComponent(),this.isTablet=window.innerWidth>=768,window.addEventListener("resize",this.onResize),window.addEventListener("DOMContentLoaded",(function(){i.Z.init({div:e.mapId})}))},methods:{addMap:function(){var e=this,t=this.calculateBoundingBox();this.mapbox.config.container=this.$refs.mapbox,this.mapbox.map=new(u().Map)({container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",bounds:t,maxZoom:18,minZoom:4,trackResize:!0}),this.mapbox.map.scrollZoom.disable(),this.mapbox.map.on("rotate",(function(){e.mapbox.rotation=e.mapbox.map.transform.angle})),this.mapbox.map.resize(),this.mapbox.map.on("load",(function(){e.addMapPolygons(),e.showMapMessage=!1,e.isLoading=!1,e.$emit("map-ready",!0),e.mapbox.map.boxZoom.enable()})),this.mapbox.map.on("zoomend",(function(){4===e.mapbox.map.getZoom()?(e.showZoomMessage="too-far",e.showMapMessage=!0):18===e.mapbox.map.getZoom()?(e.showZoomMessage="too-close",e.showMapMessage=!0):e.showInfoMessage||(e.showZoomMessage=null,e.showMapMessage=!1)}))},addMapControls:function(){var e=new(u().NavigationControl);this.mapbox.map.addControl(e,"top-right"),this.mapbox.map.addControl(new(u().FullscreenControl))},addMapFeatures:function(){var e=this;this.places.map((function(t){if(void 0!==t.geometry){var o=[t.geometry.coordinates[0],t.geometry.coordinates[1]];return"Polygon"===t.geometry.type&&(o=[t.geometry.coordinates[0]]),"MultiPolygon"===t.geometry.type&&(o=[t.geometry.coordinates]),e.geojsonData.features.push({type:"Feature",geometry:{type:t.geometry.type,coordinates:o},properties:{title:t.properties.title,imageSrc:t.image,type:void 0!==t.properties.category?t.properties.category.id:"",id:t.properties.id},id:t.properties.id})}return!1}))},addMapMarkers:function(){var e=this,t=0;this.initialLoad&&(t=1e3),setTimeout((function(){if(null!==e.markers){for(var t=e.markers.length-1;t>=0;t--)e.markers[t].remove();e.markers=[]}e.geojsonData.features.forEach((function(t){if("Point"===t.geometry.type){var o=(0,n.h)(h.default,{feature:t,mapId:e.mapId,onShowDetail:function(t){e.$emit("showDetail",t)},onSetCategory:function(t){e.$emit("setCategory",t)}}),a=document.createElement("div");e.$refs.mapboxOuter.appendChild(a),(0,r.render)(o,a);var s=new(u().Marker)(a.children[0]).setLngLat(t.geometry.coordinates).addTo(e.mapbox.map);e.markers.push(s),a.remove()}}))}),t)},hideMapPolygons:function(){this.mapbox.map.setLayoutProperty("regions-fills","visibility","none"),this.mapbox.map.setLayoutProperty("regions-borders","visibility","none")},showMapPolygons:function(){this.mapbox.map.setLayoutProperty("regions-fills","visibility","visible"),this.mapbox.map.setLayoutProperty("regions-borders","visibility","visible")},addMapPolygons:function(){var e=this;this.geojsonData.features.forEach((function(t){"Polygon"===t.geometry.type?e.polygons.features.includes(t.properties.id)||e.polygons.features.push(t):"MultiPolygon"===t.geometry.type&&(e.polygons.features.includes(t.properties.id)||e.multiPolygons.push(t))})),this.multiPolygons.forEach((function(t){var o=t.properties;t.geometry.coordinates[0].forEach((function(t){e.polygons.features.push({geometry:{type:"Polygon",coordinates:t},id:o.id,properties:{id:o.id,imageSrc:o.imageSrc,title:o.title,type:o.type},type:"Feature"})}))})),this.mapbox.map.addSource("regions",{type:"geojson",data:this.polygons,promoteId:"id"}),this.mapbox.map.addLayer({id:"regions-fills",type:"fill",source:"regions",layout:{},paint:{"fill-color":["case",["==",["feature-state","interaction-state"],"hover"],"rgba(173,14,110,0.698)",["==",["feature-state","interaction-state"],"active"],"rgba(173,14,110,0.533)","#A5A5A5"],"fill-opacity":.8}}),this.mapbox.map.addLayer({id:"regions-borders",type:"line",source:"regions",layout:{},paint:{"line-color":"#fff","line-width":1}}),this.hideMapPolygons(),this.mapbox.map.on("mousemove","regions-fills",(function(t){t.features.length>0&&(e.addMapPopup(t),e.removeHoveredPolygon(),e.addHoveredPolygon(t.features[0].id))})),this.mapbox.map.on("mouseleave","regions-fills",(function(){e.removeMapPopup(),e.removeHoveredPolygon()})),this.mapbox.map.on("click","regions-fills",(function(t){e.removeActivePolygon(),e.addActivePolygon(t.features[0].id)}))},removeActivePolygon:function(){this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":""}),this.activeStateId=null},addActivePolygon:function(e){this.activeStateId=e,this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":"active"}),g.setActivePlace({mapId:this.mapId,placeId:e}),this.$emit("showDetail",e),this.$emit("setCategory","regions")},removeHoveredPolygon:function(){if(this.hoveredStateId){var e="";this.hoveredStateId===this.activeStateId&&(e="active"),this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":e})}g.setHoveredPlace({mapId:this.mapId,hoveredId:""}),this.hoveredStateId=null},addHoveredPolygon:function(e){this.hoveredStateId=e,this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":"hover"}),g.setHoveredPlace({mapId:this.mapId,hoveredId:e})},addMapPopup:function(e){var t,o,a,s=this,i=function e(t){"Escape"===t.key&&(s.removeMapPopup(),document.body.removeEventListener("keyup",e))},n=(t=e.features[0].geometry.coordinates,o=[],a=[],t[0].forEach((function(e){o.push(e[1]),a.push(e[0])})),{lat:(Math.min.apply(Math,o)+Math.max.apply(Math,o))/2,lng:(Math.min.apply(Math,a)+Math.max.apply(Math,a))/2});e.features[0].id!==this.hoveredStateId&&e.features[0].id!==this.activeStateId&&(this.removeMapPopup(),document.body.removeEventListener("keyup",i),this.popup=(new(u().Popup)).setLngLat(n).setHTML(e.features[0].properties.title).addTo(this.mapbox.map)),document.body.addEventListener("keyup",i)},removeMapPopup:function(){this.popup&&(this.popup.remove(),this.popup=null)},fitToBounds:function(){this.mapbox.map.fitBounds(c()(this.geojsonData),{padding:{top:100,bottom:100,left:100,right:100}})},initialiseMapComponent:function(){this.addMap(),this.addMapControls(),this.places.length&&this.addMapFeatures(),this.geojsonData.features.length&&(this.addMapMarkers(),this.fitToMarkers&&this.fitToBounds())},lazyloadMapComponent:function(){var e=this;u().supported({failIfMajorPerformanceCaveat:!0}),"IntersectionObserver"in window?(this.observer=new IntersectionObserver((function(t){t[0].intersectionRatio>0&&(e.observer.unobserve(e.$el),e.initialiseMapComponent())})),this.observer.observe(this.$el)):this.initialiseMapComponent()},onResize:function(){this.isTablet=window.innerWidth>=768},getBoundsFromPolygon:function(){var e=this.boundsData.coordinates[0];return e.reduce((function(e,t){return e.extend(t)}),new(u().LngLatBounds)(e[0],e[0]))},checkPointIsVisible:function(){return this.mapbox.map.getBounds().contains(this.activeMarkerPostion)},centreMapOnPoint:function(e){this.mapbox.map.flyTo({center:e})},calculateBoundingBox:function(){var e;if(void 0===this.boundsData||"undefined"===this.boundsData.type)e=[[-7.555827,55.308836],[-.778285,60.830894]];else if("bounds"===this.boundsData.type){var t=new(u().LngLat)(this.boundsData.coordinates[1][0],this.boundsData.coordinates[1][1]),o=new(u().LngLat)(this.boundsData.coordinates[0][0],this.boundsData.coordinates[0][1]);e=new(u().LngLatBounds)(t,o)}else e="Polygon"===this.boundsData.type?this.getBoundsFromPolygon():[[-7.555827,55.308836],[-.778285,60.830894]];return e}}}},39376:function(e,t,o){"use strict";o.d(t,{s:function(){return l}});var a=o(66252),s=o(3577),i={class:"vs-map","data-test":"vs-map"},n={class:"vs-map__message-box"},r={class:"vs-map__message-text"},p={ref:"mapboxOuter",class:"vs-map__map-outer"},d=["id"];function l(e,t,o,l,u,m){var c=(0,a.up)("VsLoading"),h=(0,a.up)("VsWarning");return(0,a.wg)(),(0,a.iD)("div",i,[u.showMapMessage?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.normalizeClass)(["vs-map__message",u.showZoomMessage?"":"vs-map__message--with-overlay"]),"data-test":"vs-map__message"},[(0,a._)("div",n,[u.isLoading?((0,a.wg)(),(0,a.j4)(c,{key:0,class:"vs-map__loading"})):(0,a.kq)("",!0),(0,a._)("p",r,[u.isLoading?(0,a.WI)(e.$slots,"map-loading-text",{key:0}):o.showInfoMessage?(0,a.WI)(e.$slots,"info-message",{key:1}):"too-close"===u.showZoomMessage?(0,a.WI)(e.$slots,"zoom-too-close",{key:2}):"too-far"===u.showZoomMessage?(0,a.WI)(e.$slots,"zoom-too-far",{key:3}):(0,a.kq)("",!0)])])],2)):(0,a.kq)("",!0),(0,a._)("div",p,[(0,a._)("div",{id:o.mapId,class:"vs-map__map",ref:"mapbox"},null,8,d)],512),(0,a.Wm)(h,{class:"vs-map__no-js"},{default:(0,a.w5)((function(){return[(0,a.WI)(e.$slots,"no-js")]})),_:3})])}},44486:function(e,t,o){"use strict";var a=o(93379),s=o.n(a),i=o(7795),n=o.n(i),r=o(90569),p=o.n(r),d=o(3565),l=o.n(d),u=o(19216),m=o.n(u),c=o(44589),h=o.n(c),g=o(72776),f=o.n(g),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=p().bind(null,"head"),v.domAPI=n(),v.insertStyleElement=m(),s()(f(),v),f()&&f().locals&&f().locals},14169:function(e,t,o){"use strict";o.r(t);var a=o(88687),s=o(88348);o(28627);const i=(0,o(83744).Z)(s.Z,[["render",a.s]]);t.default=i},88348:function(e,t,o){"use strict";o.d(t,{Z:function(){return a.Z}});var a=o(35097)},88687:function(e,t,o){"use strict";o.d(t,{s:function(){return a.s}});var a=o(39376)},28627:function(e,t,o){"use strict";o(44486)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3206],{17861:function(){},65708:function(e,t,i){"use strict";var s=i(73366),n=i(71609),r=i(2015),a=i(83918),o=i(22048),d=i(68497),l=i(72956),c=i.n(l),u=i(15730),h=i(67106),k=i(16033).Z.youtube,g=null;t.Z={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:s.default,VsLink:n.default,VsImg:r.default,VsButton:a.default,VsWarning:o.default},mixins:[h.Z],inject:{noJsMessage:{default:null},noCookiesMessage:{default:null},cookieLinkText:{default:null},theme:{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)/)}},type:{type:String,required:!0,validator:function(e){return e.match(/(default|external|internal|download|video)/)}},imgSrc:{required:!0,type:String},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)/)}}},data:function(){return{jsDisabled:!0,requiredCookies:k}},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 g?g.getVideo(this.videoId):{}},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},warningClass:function(){var e="";return!this.videoId||!this.jsDisabled&&this.requiredCookiesExist||(e="vs-stretched-link-card__img-container--warning ","full"!==this.errorType||null===this.cookiesInitStatus&&!this.jsDisabled||(e+="vs-stretched-link-card__img-container--warning-full")),e},showCookieWarning:function(){return!(!this.videoId||this.jsDisabled||this.requiredCookiesExist||!0!==this.cookiesInitStatus)},showError:function(){return!(!this.videoId||""===this.errorMessage||"error"!==this.cookiesInitStatus)},showWarning:function(){return this.showError||this.showCookieWarning?this.errorType:!!this.jsDisabled},warningMessage:function(){return this.showCookieWarning?this.noCookiesMessage:this.errorMessage},warningAttrs:function(){var e={};return"cookie"===this.type&&(e.class="ot-sdk-show-settings vs-warning__cookie-trigger"),"dark"===this.theme&&(e.onDark=""),"small"===this.size&&(e.size="sm"),e}},mounted:function(){g=c()((0,u.Z)()),this.jsDisabled=(0,d.Z)()},methods:{emitShowModal:function(){this.videoId&&this.requiredCookiesExist&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},67853:function(e,t,i){"use strict";i.d(t,{s:function(){return d}});var s=i(66252),n=i(3577),r={key:0,class:"vs-stretched-link-card__video-btn-text"},a={key:1,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"};function d(e,t,i,d,l,c){var u=(0,s.up)("VsWarning"),h=(0,s.up)("VsImg"),k=(0,s.up)("VsButton"),g=(0,s.up)("VsLink"),v=(0,s.up)("VsHeading");return(0,s.wg)(),(0,s.iD)("div",{class:(0,n.normalizeClass)(["card vs-stretched-link-card",c.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return c.emitShowModal&&c.emitShowModal.apply(c,arguments)}),onKeypress:t[1]||(t[1]=function(){return c.emitShowModal&&c.emitShowModal.apply(c,arguments)})},["full"===c.showWarning?((0,s.wg)(),(0,s.j4)(u,{key:0,size:i.warningSize,theme:c.theme,type:c.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning"},(0,s.Nv)({default:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.warningMessage)+" ",1)]})),_:2},[""!==c.cookieLinkText&&c.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","theme","type"])):(0,s.kq)("",!0),"full"===i.errorType&&""!==i.videoId?((0,s.wg)(),(0,s.j4)(u,{key:1,size:i.warningSize,"data-test":"vs-stretched-link-card__full-warning",class:"vs-stretched-link-card__full-warning vs-stretched-link-card__full-warning--no-js",theme:c.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.noJsMessage),1)]})),_:1},8,["size","theme"])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,n.normalizeClass)(["vs-stretched-link-card__img-container",c.warningClass])},[i.imgSrc?((0,s.wg)(),(0,s.j4)(h,{key:0,src:i.imgSrc,alt:i.imgAlt,srcset:"".concat(i.imgSrc,"?size=xs 300w,\n ").concat(i.imgSrc,"?size=sm 600w,\n ").concat(i.imgSrc,"?size=md 1200w,\n ").concat(i.imgSrc,"?size=lg 2048w"),sizes:"(min-width: 768px) 50vw, 100vw","low-res-image":"".concat(i.imgSrc,"?size=xxs"),class:"vs-stretched-link-card__img","data-test":"vs-stretched-link-card__img"},null,8,["src","alt","srcset","low-res-image"])):(0,s.kq)("",!0),"image"===c.showWarning?((0,s.wg)(),(0,s.j4)(u,{key:1,size:i.warningSize,type:c.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning",theme:c.theme},(0,s.Nv)({default:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.warningMessage)+" ",1)]})),_:2},[""!==c.cookieLinkText&&c.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type","theme"])):(0,s.kq)("",!0),""!==i.videoId&&"image"===i.errorType?((0,s.wg)(),(0,s.j4)(u,{key:2,size:i.warningSize,"data-test":"vs-stretched-link-card__warning",class:"vs-stretched-link-card__image-warning vs-stretched-link-card__image-warning--no-js",theme:c.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,n.toDisplayString)(c.noJsMessage),1)]})),_:1},8,["size","theme"])):(0,s.kq)("",!0)],2),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,s.WI)(e.$slots,"stretched-card-panels",{key:2}):(0,s.kq)("",!0),"full"!==c.showWarning?((0,s.wg)(),(0,s.iD)("div",{key:3,class:(0,n.normalizeClass)(["card-body",i.videoId?"position-relative":""])},[i.videoId&&c.videoLoaded&&e.requiredCookiesExist?((0,s.wg)(),(0,s.j4)(k,{key:0,class:"vs-stretched-link-card__video-button","data-test":"vs-stretched-link-card__video-button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:c.emitShowModal},{default:(0,s.w5)((function(){return[i.videoBtnText?((0,s.wg)(),(0,s.iD)("span",r,(0,n.toDisplayString)(c.formattedVideoBtnText),1)):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,n.toDisplayString)(c.formattedVideoDuration),1)]})),_:1},8,["onClick"])):(0,s.kq)("",!0),e.$slots["stretched-card-category"]&&e.$slots["stretched-card-category"]()?((0,s.wg)(),(0,s.iD)("span",a,[(0,s.WI)(e.$slots,"stretched-card-category")])):(0,s.kq)("",!0),e.$slots["stretched-card-header"]&&e.$slots["stretched-card-header"]()?((0,s.wg)(),(0,s.j4)(v,{key:2,level:i.headingLevel,class:"card-title vs-stretched-link-card__title","data-test":"vs-stretched-link-card__title"},{default:(0,s.w5)((function(){return[e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?(0,s.WI)(e.$slots,"stretched-card-header",{key:0}):"video"===i.type?(0,s.WI)(e.$slots,"stretched-card-header",{key:1}):((0,s.wg)(),(0,s.j4)(g,{key:2,href:i.link,type:i.type,class:(0,n.normalizeClass)(["stretched-link",i.disabled?"stretched-link--disabled":""]),variant:"dark"===c.theme?"on-dark":"primary","data-test":"vs-stretched-link",disabled:i.disabled,tabindex:i.videoId||i.disabled?"-1":"0"},{default:(0,s.w5)((function(){return[(0,s.WI)(e.$slots,"stretched-card-header")]})),_:3},8,["href","type","class","variant","disabled","tabindex"]))]})),_:3},8,["level"])):(0,s.kq)("",!0),(0,s._)("div",o,[(0,s.WI)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,s.wg)(),(0,s.j4)(g,{key:3,href:i.link,class:"vs-stretched-link-card__link stretched-link","data-test":"vs-stretched-link-card__link"},{default:(0,s.w5)((function(){return[(0,s.WI)(e.$slots,"stretched-card-link")]})),_:3},8,["href"])):(0,s.kq)("",!0)],2)):(0,s.kq)("",!0)],34)}},98118:function(e,t,i){"use strict";var s=i(93379),n=i.n(s),r=i(7795),a=i.n(r),o=i(90569),d=i.n(o),l=i(3565),c=i.n(l),u=i(19216),h=i.n(u),k=i(44589),g=i.n(k),v=i(17861),f=i.n(v),m={};m.styleTagTransform=g(),m.setAttributes=c(),m.insert=d().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=h(),n()(f(),m),f()&&f().locals&&f().locals},73206:function(e,t,i){"use strict";i.r(t);var s=i(88049),n=i(85983);i(24922);const r=(0,i(83744).Z)(n.Z,[["render",s.s]]);t.default=r},85983:function(e,t,i){"use strict";i.d(t,{Z:function(){return s.Z}});var s=i(65708)},88049:function(e,t,i){"use strict";i.d(t,{s:function(){return s.s}});var s=i(67853)},24922:function(e,t,i){"use strict";i(98118)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3810],{67106:function(t,e,n){var o=n(15730),i=n(27447),u=null,s={data:function(){return{timesRun:0,cookiesInitStatus:null}},computed:{cookiesSet:function(){return u?u.allowedCookies:[]},onetrustActiveGroups:function(){return window.OnetrustActiveGroups},requiredCookiesExist:function(){var t=this,e=!0;return this.requiredCookies?this.requiredCookies.forEach((function(n){-1===t.cookiesSet.indexOf(n)&&(e=!1)})):e=!1,e}},mounted:function(){var t=this;u=(0,i.Z)((0,o.Z)());var e=setInterval((function(){t.timesRun+=1,t.timesRun,t.timesRun>50?(n(),void 0!==t.onetrustActiveGroups&&null!==t.cookiesInitStatus||(t.cookiesInitStatus="error")):t.cookiesSet.length>0&&(n(),t.cookiesInitStatus=!0)}),100),n=function(){clearInterval(e)}}};e.Z=s},16033:function(t,e){e.Z={youtube:["C0001","C0004"],languageSelector:["C0001"],embed:["C0001","C0003","C0004"],recaptcha:["C0001"],map:["C0001"]}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4143],{68748:function(){},94360:function(e,t,a){"use strict";var n=a(83918),r=a(73366),s=a(15730),i=a(66072),l=a(81674),o=a(14613),c=a(29848),u=a(16520),p=a(175),d=a(85834),g=null;t.Z={name:"VsMainMapWrapperPanel",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsMainMapWrapperCategory:l.default,VsMainMapWrapperSubcategory:o.default,VsHeading:r.default,VsMainMapWrapperListItem:c.default,VsMainMapWrapperDetail:u.default,VsMainMapWrapperButtons:p.default,VsMainMapWrapperControls:d.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:String,default:""},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}},data:function(){return{placesLoaded:1}},computed:{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-main-map-wrapper-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-main-map-wrapper-panel__header-section--with-spacer":2===this.currentStage?"vs-main-map-wrapper-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&&t.properties.id===e.selectedItem}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]},subCatFilterCount:function(){return g?g.activeSubcatFilters.length:null},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(){g=(0,i.Z)((0,s.Z)())},methods:{closePanel:function(){this.$emit("close-panel")},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(){g.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(){g.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},11257:function(e,t,a){"use strict";a.d(t,{s:function(){return f}});var n=a(66252),r=a(3577),s=a(49963),i={key:0,class:"vs-main-map-wrapper-panel__back"},l={class:"sr-only"},o={class:"vs-main-map-wrapper-panel__close d-lg-none"},c={class:"sr-only"},u={class:"sr-only"},p={key:2,class:"vs-main-map-wrapper-panel__bottom-message"},d={class:"vs-main-map-wrapper-panel__list-container"},g={key:3,class:"vs-main-map-wrapper-panel__overlay"},m={key:0,class:"vs-main-map-wrapper-panel__overlay-box"},y={class:"vs-main-map-wrapper-panel__overlay-text"};function f(e,t,a,f,h,v){var b=(0,n.up)("VsButton"),w=(0,n.up)("VsHeading"),S=(0,n.up)("VsMainMapWrapperSubcategory"),k=(0,n.up)("VsMainMapWrapperControls"),_=(0,n.up)("VsMainMapWrapperCategory"),C=(0,n.up)("VsMainMapWrapperListItem"),D=(0,n.up)("VsMainMapWrapperButtons"),M=(0,n.up)("VsMainMapWrapperDetail");return(0,n.wg)(),(0,n.iD)("section",{"data-test":"vs-main-map-wrapper-panel",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel",v.panelClasses])},[(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__header-section",v.headerClasses])},[a.currentStage>0||a.selectedSubcategory?((0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(b,{"icon-only":"",icon:"internal-link","icon-orientation":"down",size:"md",variant:"secondary",onClick:v.stageBack,"data-test":"vs-main-map-wrapper-panel--btn-back"},{default:(0,n.w5)((function(){return[(0,n._)("span",l,[(0,n.WI)(e.$slots,"back-btn-text")])]})),_:3},8,["onClick"])])):(0,n.kq)("",!0),""!==v.currentHeading?((0,n.wg)(),(0,n.j4)(w,{key:1,level:a.headingLevel,"override-style-level":"4",class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__heading text-center mt-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-main-map-wrapper-panel__heading"},{default:(0,n.w5)((function(){return[(0,n.Uk)((0,r.toDisplayString)(v.currentHeading),1)]})),_:1},8,["level","class"])):(0,n.kq)("",!0),(0,n._)("div",o,[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.closePanel,"data-test":"vs-main-map-wrapper-panel--btn-close"},{default:(0,n.w5)((function(){return[(0,n._)("span",c,[(0,n.WI)(e.$slots,"close-side-panel-text")])]})),_:3},8,["onClick"])]),(0,n._)("div",{class:(0,r.normalizeClass)(["vs-main-map-wrapper-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,n.Wm)(b,{"icon-only":"",icon:"close",size:"md",variant:"secondary",onClick:v.resetPanel,"data-test":"vs-main-map-wrapper-panel--btn-reset"},{default:(0,n.w5)((function(){return[(0,n._)("span",u,[(0,n.WI)(e.$slots,"reset-side-panel-text")])]})),_:3},8,["onClick"])],2)],2),0===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n.Wm)(S,{data:v.selectedSubcategoryData[0].subCategory,selectedSubCategory:a.selectedSubcategory},null,8,["data","selectedSubCategory"]),(0,n.Wm)(k)],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.filters,(function(e){return(0,n.wg)(),(0,n.j4)(_,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":v.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,n.wg)(),(0,n.iD)("div",p,[(0,n._)("p",null,(0,r.toDisplayString)(a.panelMessage),1)])):(0,n.kq)("",!0)],64)):(0,n.kq)("",!0),1===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:1},[null!==a.selectedSubcategory?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[(0,n._)("div",d,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.subcategoryLocations,(function(t,r){return(0,n.wg)(),(0,n.j4)(C,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:r===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t.id)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),v.showLoadMore?((0,n.wg)(),(0,n.j4)(b,{key:0,class:"vs-main-map-wrapper-panel__load-more","data-test":"vs-main-map-wrapper-panel__load-more",onClick:t[0]||(t[0]=function(e){return v.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,s.withKeys)((function(e){return v.loadMorePlaces()}),["enter"]))},{default:(0,n.w5)((function(){return[(0,n.WI)(e.$slots,"load-more-text")]})),_:3})):(0,n.kq)("",!0)]),(0,n.Wm)(D,{"content-data":{},"filter-count":v.subCatFilterCount,onClearFilters:v.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,n.wg)(!0),(0,n.iD)(n.HY,{key:1},(0,n.Ko)(v.currentData,(function(t){return(0,n.wg)(),(0,n.iD)("div",{key:t.id},[void 0!==t.properties&&t.properties.category.id===a.selectedCategory?((0,n.wg)(),(0,n.j4)(C,{key:0,"item-data":t.properties,onShowItemDetail:function(a){return e.showDetail(t.properties.id)}},null,8,["item-data","onShowItemDetail"])):(0,n.kq)("",!0)])})),128))],64)):(0,n.kq)("",!0),2===a.currentStage?((0,n.wg)(),(0,n.iD)(n.HY,{key:2},[(0,n.Wm)(M,{"heading-level":v.detailHeadingLevel,"content-data":v.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,n.Wm)(D,{"content-data":v.currentPlaceData[0]},null,8,["content-data"])],64)):(0,n.kq)("",!0),null!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",g,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,n.wg)(),(0,n.iD)("div",m,[(0,n._)("p",y,[(0,n.WI)(e.$slots,"panel-loading-message")])])):(0,n.kq)("",!0)])):(0,n.kq)("",!0)],2)}},42167:function(e,t,a){"use strict";var n=a(93379),r=a.n(n),s=a(7795),i=a.n(s),l=a(90569),o=a.n(l),c=a(3565),u=a.n(c),p=a(19216),d=a.n(p),g=a(44589),m=a.n(g),y=a(68748),f=a.n(y),h={};h.styleTagTransform=m(),h.setAttributes=u(),h.insert=o().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=d(),r()(f(),h),f()&&f().locals&&f().locals},84143:function(e,t,a){"use strict";a.r(t);var n=a(43420),r=a(97794);a(36949);const s=(0,a(83744).Z)(r.Z,[["render",n.s]]);t.default=s},97794:function(e,t,a){"use strict";a.d(t,{Z:function(){return n.Z}});var n=a(94360)},43420:function(e,t,a){"use strict";a.d(t,{s:function(){return n.s}});var n=a(11257)},36949:function(e,t,a){"use strict";a(42167)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4613],{15697:function(){},19050:function(e,t,n){"use strict";var i=n(92854),r=n(15730),a=n(66072),s=n(26573),c=null;t.Z={name:"VsMainMapWrapperSubCategories",status:"prototype",release:"0.0.1",components:{BFormGroup:i.xH,BFormCheckboxGroup:i.x0,BFormCheckbox:i.lD,VsMainMapWrapperIcon:s.default},props:{data:{type:Array,required:!0},selectedSubCategory:{type:String,required:!0}},data:function(){return{selected:[]}},computed:{activeSubcatFilters:function(){return c?c.activeSubcatFilters:null}},mounted:function(){var e=this;c=(0,a.Z)((0,r.Z)()),this.selected=this.activeSubcatFilters,this.emitter&&(this.emitter.on("clearSelectedSubcats",(function(){e.selected=[]})),this.emitter.on("submitCheckboxData",(function(){e.checkboxesChangeSubmit()}))),document.getElementsByClassName("vs-main-map-subcategory")[0].querySelectorAll('input[type="checkbox"]')[0].focus()},beforeUnmount:function(){this.emitter&&this.emitter.off("submitCheckboxData")},methods:{checkboxesChangeSubmit:function(){c.setActiveSubcatFilters(this.selected),this.$parent.$emit("subcategories-filtered",this.selected)},emitChange:function(e){e.length>0&&this.emitter?this.emitter.emit("checkboxes-selected",!0):this.emitter.emit("checkboxes-selected",!1)}}}},43713:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var i=n(66252),r=n(3577),a={class:"vs-main-map-subcategory","data-test":"vs-main-map-subcategory"};function s(e,t,n,s,c,u){var o=(0,i.up)("VsMainMapWrapperIcon"),l=(0,i.up)("BFormCheckbox"),m=(0,i.up)("BFormCheckboxGroup"),d=(0,i.up)("BFormGroup");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i.Wm)(d,null,{default:(0,i.w5)((function(e){var a=e.ariaDescribedby;return[(0,i.Wm)(m,{id:"checkbox-group-1",modelValue:c.selected,"onUpdate:modelValue":t[0]||(t[0]=function(e){return c.selected=e}),"aria-describedby":a,name:n.data.name},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.data,(function(e){return(0,i.wg)(),(0,i.j4)(l,{key:e.id,value:e.id,onChange:u.emitChange},{default:(0,i.w5)((function(){return[(0,i.Wm)(o,{class:"vs-main-map-category__icon",id:n.selectedSubCategory},null,8,["id"]),(0,i.Uk)(" "+(0,r.toDisplayString)(e.name),1)]})),_:2},1032,["value","onChange"])})),128))]})),_:2},1032,["modelValue","aria-describedby","name"])]})),_:1})])}},95052:function(e,t,n){"use strict";var i=n(93379),r=n.n(i),a=n(7795),s=n.n(a),c=n(90569),u=n.n(c),o=n(3565),l=n.n(o),m=n(19216),d=n.n(m),b=n(44589),p=n.n(b),f=n(15697),h=n.n(f),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=u().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=d(),r()(h(),g),h()&&h().locals&&h().locals},14613:function(e,t,n){"use strict";n.r(t);var i=n(51471),r=n(1372);n(980);const a=(0,n(83744).Z)(r.Z,[["render",i.s]]);t.default=a},1372:function(e,t,n){"use strict";n.d(t,{Z:function(){return i.Z}});var i=n(19050)},51471:function(e,t,n){"use strict";n.d(t,{s:function(){return i.s}});var i=n(43713)},980:function(e,t,n){"use strict";n(95052)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[976],{60976:function(e,t,a){var r=a(4942),_=a(15730),i=a(29225),n=a(15112),o=a(82835);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){(0,r.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var l={computed:{pageUrl:function(){return this.dataLayerStore.pageUrl}},data:function(){return{dataLayerLoadConfirmed:[],dataLayerStore:null}},mounted:function(){this.dataLayerStore=(0,i.Z)((0,_.Z)())},methods:{templateFiller:function(e,t){var a={};return e.forEach((function(e){a[e]="",a[e]=t[e]||void 0})),a},createDataLayerObject:function(e,t,a){var r,_,i,n,c,g,l="";switch(t&&t.target&&(g=t.target.text?t.target.text.trim():t.target.innerText),e){case"pageViewTemplateDataEvent":i={event:r="page_view"},n=this.compileFullTemplate(i),c=this.templateFiller(o.uA,n);break;case"menuNavigationDataEvent":i={event:r="menu_navigation",click_text:t.target.text.trim(),click_URL:a},n=this.compileFullTemplate(i),c=this.templateFiller(o.Gy,n);break;case"socialMediaExternalLinkDataEvent":i={event:r="social_media_footer",tag_name:_="VS - GA - Social Media External Link",click_URL:a},n=this.compileFullTemplate(i),c=this.templateFiller(o.Dp,n);break;case"homePageLogoClickDataEvent":i={event:r="homepage_logo_click",tag_name:_="VS - GA - Homepage Logo Click"},n=this.compileFullTemplate(i),c=this.templateFiller(o.pf,n);break;case"externalLinkDataEvent":i={event:r="external_link",tag_name:_="VS - GA - External Link",click_text:g,click_URL:a},n=this.compileFullTemplate(i),c=this.templateFiller(o.Zv,n);break;case"internalLinkDataEvent":i={event:r="internal_link",tag_name:_="VS - GA - Internal Link",click_text:g,click_URL:a},n=this.compileFullTemplate(i),c=this.templateFiller(o.Mp,n);break;case"formsDataEvent":i={event:r="forms",tag_name:_="VS - GA - Forms",form_status:"form_submitted"},n=this.compileFullTemplate(i),c=this.templateFiller(o.FC,n);break;case"errorDataEvent":i={event:r="errors",tag_name:_="VS - GA - Errors",error_type:t.error_type,error_details:t.error_details},n=this.compileFullTemplate(i),c=this.templateFiller(o.ZP,n);break;case"videoTrackingDataEvent":i={event:r="video_tracking",tag_name:_="VS - GA - Video Tracking",video_status:t.status,video_title:t.title||"",video_percent:t.percent||0},n=this.compileFullTemplate(i),c=this.templateFiller(o.Cd,n);break;case"socialShareDataEvent":r="share",_="VS - GA - Share",void 0!==t.target.text&&(l=t.target.text.trim()),i={event:r,tag_name:_,click_text:l,click_URL:a},n=this.compileFullTemplate(i),c=this.templateFiller(o.HB,n)}this.pushToDataLayer(c)},returnIsoDate:function(){return new Date(Date.now()).toISOString()},pushToDataLayer:function(e){var t=this;this.dataLayerLoadConfirmed?(0,n.Z)("dataLayer",(function(){dataLayer.push(e)})):(0,n.Z)("dataLayer",(function(){t.dataLayerLoadConfirmed=!0,dataLayer.push(e)}))},compileFullTemplate:function(e){var t=g(g({},this.dataLayerStore.GTMData),e);return t.hit_timestamp=this.returnIsoDate(),t},targetText:function(e){return e.target.text?e.target.text.trim():""}}};t.Z=l},15112:function(e,t){t.Z=function e(t,a){window.setTimeout((function(){window[t]?a(window[t]):e(t,a)}),500)}},82835:function(e,t,a){a.d(t,{Cd:function(){return c},Dp:function(){return n},FC:function(){return s},Gy:function(){return _},HB:function(){return i},Mp:function(){return l},ZP:function(){return p},Zv:function(){return g},pf:function(){return o},uA:function(){return r}});var r=["event","site_language","content_language","content_category","content_page_type","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","content_region","content_city","provider_search_region","provider_search_category","provider_search_facilities","provider_search_grading","provider_search_awards","provider_search_rooms","provider_search_min_price","provider_search_max_price","provider_category","provider_category_level_1","provider_category_level_2","provider_name","provider_ID","star_grading","provider_region","provider_city","provider_has_website","page_with_booking_link","provider_has_availability","availability_search_start_date","availability_search_end_date","availability_search_no_of_nights","availability_search_no_of_adults","availability_search_no_of_children","availability_search_no_of_rooms","availability_search_price_range","hit_timestamp","tag_name","meta_data"],_=["event","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],i=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],n=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL","location_on_page"],o=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL"],c=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","video_status","video_title","video_percent"],g=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],l=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],p=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","error_type","error_details","page_path"],s=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","page_path","form_status"]},29225:function(e,t,a){var r=a(76765),_=(0,a(37169).defineStore)("datalayer",(function(){var e=(0,r.ref)(""),t=(0,r.ref)(!1),a=(0,r.ref)({});return{pageUrl:e,tagsTestRun:t,GTMData:a,getValueFromKey:function(e){return a.value[e]},setTestRun:function(e){t.value=e},setPageUrl:function(t){e.value=t},processPayload:function(e){a.value[e.key]=e.value}}}));t.Z=_}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8283],{15846:function(){},95520:function(t,e,i){"use strict";var o=i(83918),n=i(77859),s=i(22048),a=i(15730),r=i(72956),d=i.n(r),c=i(67106),u=i(16033),l=null,v=u.Z.youtube;e.Z={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsToggleButton:n.default,VsWarning:s.default},mixins:[c.Z],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(t){return t.match(/(wide|narrow)/)}}},data:function(){return{requiredCookies:v,showErrorMessage:!1}},computed:{videoDetails:function(){return l?l.getVideo(this.videoId):{}},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!!(!this.requiredCookiesExist&&this.cookiesSet.length>0&&this.noCookiesMessage)}},mounted:function(){l=d()((0,a.Z)())},methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},58344:function(t,e,i){"use strict";i.d(e,{s:function(){return p}});var o=i(66252),n=i(3577),s={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},r={key:1,class:"vs-video-caption__details container"},d={class:"vs-video-caption__title"},c={class:"vs-video-caption__duration"},u={key:1,class:"vs-video-caption vs-video-caption--warning"},l={key:2,class:"vs-video-caption vs-video-caption--warning"},v={class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function p(t,e,i,p,g,f){var k=(0,o.up)("VsButton"),w=(0,o.up)("VsToggleButton"),m=(0,o.up)("VsWarning");return(0,o.wg)(),(0,o.iD)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[f.videoLoaded&&t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("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.wg)(),(0,o.iD)("div",s,[(0,o._)("div",a,[(0,o.Wm)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:f.emitShowModal},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.wg)(),(0,o.j4)(w,{key:0,onToggleAction:f.emitToggle},null,8,["onToggleAction"])):(0,o.kq)("",!0)])):(0,o.kq)("",!0),t.requiredCookiesExist?((0,o.wg)(),(0,o.iD)("div",r,[(0,o._)("p",d,[(0,o.WI)(t.$slots,"video-title")]),(0,o._)("p",c,(0,n.toDisplayString)(f.videoDetails.videoDurationMsg),1)])):(0,o.kq)("",!0)],2)):f.showCookieMessage?((0,o.wg)(),(0,o.iD)("div",u,[(0,o.Wm)(m,{size:"small",type:"cookie",transparent:!1},{"button-text":(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.cookieLinkText),1)]})),default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.noCookiesMessage)+" ",1)]})),_:1})])):"error"===t.cookiesInitStatus?((0,o.wg)(),(0,o.iD)("div",l,[(0,o.Wm)(m,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.errorMessage),1)]})),_:1})])):(0,o.kq)("",!0),(0,o._)("div",v,[(0,o.Wm)(m,{size:"small",transparent:!1},{default:(0,o.w5)((function(){return[(0,o.Uk)((0,n.toDisplayString)(f.noJsMessage),1)]})),_:1})])],2)}},84611:function(t,e,i){"use strict";var o=i(93379),n=i.n(o),s=i(7795),a=i.n(s),r=i(90569),d=i.n(r),c=i(3565),u=i.n(c),l=i(19216),v=i.n(l),p=i(44589),g=i.n(p),f=i(15846),k=i.n(f),w={};w.styleTagTransform=g(),w.setAttributes=u(),w.insert=d().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=v(),n()(k(),w),k()&&k().locals&&k().locals},18283:function(t,e,i){"use strict";i.r(e);var o=i(76748),n=i(30955);i(7219);const s=(0,i(83744).Z)(n.Z,[["render",o.s]]);e.default=s},30955:function(t,e,i){"use strict";i.d(e,{Z:function(){return o.Z}});var o=i(95520)},76748:function(t,e,i){"use strict";i.d(e,{s:function(){return o.s}});var o=i(58344)},7219:function(t,e,i){"use strict";i(84611)}}]);
@@ -1 +0,0 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsApp=n():t.VsApp=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[208],{45987:function(){},2236:function(){},96612:function(t,n,e){"use strict";e.r(n),e.d(n,{Vue:function(){return r.w3},initApp:function(){return o},initSSRApp:function(){return i}});var r=e(78530),o=function(t){return(0,r.QB)(t)},i=function(t){var n=document.querySelector("#app-template").innerHTML;return t.template=n,(0,r.Xm)(t)}},78530:function(t,n,e){"use strict";e.d(n,{QB:function(){return d},Xm:function(){return v},w3:function(){return s}});var r=e(4942),o=e(49963),i=e(59391);function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s=e(76765).Vue,f=e(96486),a=f.isObject,p=f.each,l="no-js",b=e(64183).BTab;e(57924),e(6967);var m=function(){var t=document.getElementsByClassName(l);p(t,(function(t){t.classList.remove(l)}))},d=function(t,n){var e=(0,o.createApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e},v=function(t,n){var e=(0,o.createSSRApp)(u({components:{BTab:b}},a(t)?t:{})),r=(0,i.Z)();return e.config.globalProperties.emitter=r,e.config.compilerOptions.comments=!0,n||m(),e}},6967:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(45987),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0},57924:function(t,n,e){"use strict";e.r(n);var r=e(93379),o=e.n(r),i=e(7795),c=e.n(i),u=e(90569),s=e.n(u),f=e(3565),a=e.n(f),p=e(19216),l=e.n(p),b=e(44589),m=e.n(b),d=e(2236),v=e.n(d),y={};for(var O in d)"default"!==O&&(y[O]=function(t){return d[t]}.bind(0,O));e.d(n,y);var g={};g.styleTagTransform=m(),g.setAttributes=a(),g.insert=s().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=l(),o()(v(),g),n.default=v()&&v().locals?v().locals:void 0}},function(t){return t.O(0,[6252,7991,9963,6486,4942,6765,4092],(function(){return 96612,t(t.s=96612)})),t.O()}])}));