@visitscotland/component-library 1.1.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/CHANGELOG.md +112 -45
  2. package/dist/client/manifest.json +1111 -1182
  3. package/dist/client/scripts/00f15476517af0b5a1f2.js +1 -0
  4. package/dist/client/scripts/{1fb7c3c522bb0cc34007.js → 03ec6e964a0ff5862e08.js} +1 -1
  5. package/dist/client/scripts/041c8878e2a07d21b091.js +1 -0
  6. package/dist/client/scripts/05086bfb77b6e912cf8c.js +1 -0
  7. package/dist/client/scripts/082b491b3eb3b717cf15.js +1 -0
  8. package/dist/client/scripts/12de266b35aa8e65e1c1.js +1 -0
  9. package/dist/client/scripts/{1e1b733389b5b3442807.js → 16d0e96bbae2014368b2.js} +1 -1
  10. package/dist/client/scripts/{132eaef374fd59d4588c.js → 273a097978a5c8b95984.js} +1 -1
  11. package/dist/client/scripts/{21895069f7956c944a8f.js → 2c0f7eb6c28d72147f56.js} +1 -1
  12. package/dist/client/scripts/2e6bbc7af3d8d79f9d0f.js +1 -0
  13. package/dist/client/scripts/3063a1ebccda0d9e7c38.js +1 -0
  14. package/dist/client/scripts/{4c96a47acb46cac3a4a9.js → 34aec8924a83fd5f6f22.js} +1 -1
  15. package/dist/client/scripts/366e315810e7bed6a183.js +1 -0
  16. package/dist/client/scripts/{e4de604a147d2c7266e2.js → 384caa043e109a8669bc.js} +1 -1
  17. package/dist/client/scripts/3a2f61b64dcbdf73305a.js +1 -0
  18. package/dist/client/scripts/{a14ecaa1119d13233337.js → 3f7ac6ae45f4f9c4e23a.js} +1 -1
  19. package/dist/client/scripts/{b00241245ea704ce14ff.js → 4055c89cfcc61f835ca3.js} +1 -1
  20. package/dist/client/scripts/{2cd1cff0596f42b3d612.js → 43714ea837692aa97133.js} +1 -1
  21. package/dist/client/scripts/{fe45c497991b841f24fc.js → 459ee91db3eff506960f.js} +1 -1
  22. package/dist/client/scripts/{37cd9aca344ab9d869cf.js → 4b437ed16c72072f2a17.js} +1 -1
  23. package/dist/client/scripts/4fb8c86a3fcc6a2a378e.js +1 -0
  24. package/dist/client/scripts/{09381bee3de96b7b34b2.js → 4fbfd4b13c54920b632d.js} +2 -2
  25. package/dist/client/scripts/51aa2bbb84e4715a8287.js +1 -0
  26. package/dist/client/scripts/521b59d3a8bddec8bea7.js +1 -0
  27. package/dist/client/scripts/{e5d14ce33b4407f2b071.js → 534d53dc0e9726294d26.js} +1 -1
  28. package/dist/client/scripts/61ea66d82e9f6152139e.js +1 -0
  29. package/dist/client/scripts/62c5b38e78cc8e7b0cc4.js +1 -0
  30. package/dist/client/scripts/65e47b5700c036d86835.js +1 -0
  31. package/dist/client/scripts/{e31d0d42ab5e82918e9e.js → 673752b835b7ec770cf7.js} +1 -1
  32. package/dist/client/scripts/6edd0297c7133355d67d.js +1 -0
  33. package/dist/client/scripts/70cf4de79348ec18da67.js +1 -0
  34. package/dist/client/scripts/7162b5bbe006ba7d7ae6.js +1 -0
  35. package/dist/client/scripts/755d35cfc0dfadeba6bf.js +1 -0
  36. package/dist/client/scripts/7bc7ace5b0273d768f35.js +1 -0
  37. package/dist/client/scripts/7c594a7a8c9008b450b2.js +1 -0
  38. package/dist/client/scripts/81bb5217f1e82d19f09a.js +1 -0
  39. package/dist/client/scripts/83245ba0929fd225236c.js +1 -0
  40. package/dist/client/scripts/{809a66829326d795f0ef.js → 84bde8f2f0118ee3bb98.js} +1 -1
  41. package/dist/client/scripts/{dd3dfc8685410eefd39b.js → 8a7c713db5856acd74a6.js} +1 -1
  42. package/dist/client/scripts/{3b5af76c25356d06c477.js → 92c8537772c7af363038.js} +1 -1
  43. package/dist/client/scripts/930cef4685279f0fd5f3.js +1 -0
  44. package/dist/client/scripts/968c1fc4e7180be347d7.js +2 -0
  45. package/dist/client/scripts/97e51f4a4e7dbe359a7a.js +1 -0
  46. package/dist/client/scripts/9bbdbcb3fcac0ddcd085.js +1 -0
  47. package/dist/client/scripts/a10a68d1a2909bcbde6c.js +1 -0
  48. package/dist/client/scripts/a34a7bac46c5061aaf18.js +1 -0
  49. package/dist/client/scripts/{13f12eae92f8cc0eac43.js → a3954715d0d20dc1a4a7.js} +1 -1
  50. package/dist/client/scripts/{37a1a1cc4621a0438fdb.js → a7ef9455daa076007fc9.js} +1 -1
  51. package/dist/client/scripts/{94a92102ceb193ff1d29.js → a91b5c882877f8a81104.js} +1 -1
  52. package/dist/client/scripts/aac50eba699d0dcd1dac.js +1 -0
  53. package/dist/client/scripts/{85c7716e092a8b2b819c.js → ab9f543d1defa96f6b5f.js} +1 -1
  54. package/dist/client/scripts/ad28dc96c50b61be3831.js +1 -0
  55. package/dist/client/scripts/b8a63ffb6b4cf1e004b1.js +1 -0
  56. package/dist/client/scripts/bc4e486a50cb0450f7d3.js +1 -0
  57. package/dist/client/scripts/{efff07a1915ace2cff8b.js → bef068e7cf1131aec4fc.js} +1 -1
  58. package/dist/client/scripts/c2679d2ec049943f2604.js +1 -0
  59. package/dist/client/scripts/c2c8f51d3e5d7b7cc62d.js +1 -0
  60. package/dist/client/scripts/c3a5553da59b6b611e38.js +1 -0
  61. package/dist/client/scripts/{debceacad9280cc73636.js → c4f9657310ca97440de9.js} +1 -1
  62. package/dist/client/scripts/c858b3118529f1a566eb.js +1 -0
  63. package/dist/client/scripts/{3526faa91f53193cfb0e.js → caceb888b637043ddb3d.js} +1 -1
  64. package/dist/client/scripts/{da6add37dbef2487efe8.js → cdb89f2eac824cad3db5.js} +1 -1
  65. package/dist/client/scripts/{0803f30321eef943e774.js → cfb44e58f799d680b68c.js} +1 -1
  66. package/dist/client/scripts/d2e981d125aa8ae0d301.js +1 -0
  67. package/dist/client/scripts/d5df6cbaf20803e64c4c.js +1 -0
  68. package/dist/client/scripts/{b77bbd3cce2087e3b50b.js → d771d9c9de03520db0ae.js} +1 -1
  69. package/dist/client/scripts/{3833b7d825bc1b983556.js → d8b725a529a755f51c52.js} +1 -1
  70. package/dist/client/scripts/{d0752d64d8a2f912c331.js → d9592bf81bd4a2be325c.js} +1 -1
  71. package/dist/client/scripts/{7950b2bad3fecaf79d3e.js → dd63afa1669c2cb81616.js} +1 -1
  72. package/dist/client/scripts/{c5f16cdc2cc45d182ba9.js → deeb6d58657fdf2af4df.js} +1 -1
  73. package/dist/client/scripts/df107e5c8c14d20cd946.js +1 -0
  74. package/dist/client/scripts/{bc7d793df00a24b6230a.js → e23fbb9abb335fe768c3.js} +1 -1
  75. package/dist/client/scripts/{2263b3b5b4996de0d034.js → e34938167097f57386a3.js} +1 -1
  76. package/dist/client/scripts/{9c0ca3d1dd33c704b115.js → eade43d810f97dcfa016.js} +1 -1
  77. package/dist/client/scripts/edd98a796ecce69650dc.js +1 -0
  78. package/dist/client/scripts/f01dcaa0c91eb43325d5.js +1 -0
  79. package/dist/client/scripts/{bb2d0ea653b28fed0b54.js → f17256f2730bc7a5d193.js} +1 -1
  80. package/dist/client/scripts/f1f9dceb456cec3c9a04.js +1 -0
  81. package/dist/client/scripts/f2d3941270158b233601.js +1 -0
  82. package/dist/client/scripts/f4becf635b59a9d80c47.js +1 -0
  83. package/dist/client/scripts/f4fba8936eb681775386.js +1 -0
  84. package/dist/client/scripts/f5937fe24d74e57d6993.js +1 -0
  85. package/dist/client/scripts/f6383c6df0fde7f8f91a.js +1 -0
  86. package/dist/client/scripts/f7621c6a2511e6b49376.js +1 -0
  87. package/dist/client/scripts/ffa5b60732ad98294925.js +2 -0
  88. package/dist/client/styles/082b491b3eb3b717cf15.css +1 -0
  89. package/dist/client/styles/1221dc5a966ef06ca55d.css +1 -0
  90. package/dist/client/styles/12de266b35aa8e65e1c1.css +1 -0
  91. package/dist/client/styles/2f7afccf97ac350d177a.css +1 -0
  92. package/dist/client/styles/384caa043e109a8669bc.css +1 -0
  93. package/dist/client/styles/4fb8c86a3fcc6a2a378e.css +1 -0
  94. package/dist/client/styles/521b59d3a8bddec8bea7.css +1 -0
  95. package/dist/client/styles/61ea66d82e9f6152139e.css +1 -0
  96. package/dist/client/styles/65e47b5700c036d86835.css +1 -0
  97. package/dist/client/styles/6edd0297c7133355d67d.css +1 -0
  98. package/dist/client/styles/7a4eca24686d4a08ed0f.css +1 -0
  99. package/dist/client/styles/7bc7ace5b0273d768f35.css +1 -0
  100. package/dist/client/styles/7c594a7a8c9008b450b2.css +1 -0
  101. package/dist/client/styles/81bb5217f1e82d19f09a.css +1 -0
  102. package/dist/client/styles/92c8537772c7af363038.css +1 -0
  103. package/dist/client/styles/930cef4685279f0fd5f3.css +1 -0
  104. package/dist/client/styles/{2a57d4f95135d17d1c3d.css → 9bbdbcb3fcac0ddcd085.css} +1 -1
  105. package/dist/client/styles/a10a68d1a2909bcbde6c.css +1 -0
  106. package/dist/client/styles/a34a7bac46c5061aaf18.css +1 -0
  107. package/dist/client/styles/a844743f6febcdce1a4d.css +1 -0
  108. package/dist/client/styles/aac50eba699d0dcd1dac.css +1 -0
  109. package/dist/client/styles/ab530d0fbde5cf0c3d28.css +1 -0
  110. package/dist/client/styles/c2679d2ec049943f2604.css +1 -0
  111. package/dist/client/styles/c2c8f51d3e5d7b7cc62d.css +1 -0
  112. package/dist/client/styles/cfb44e58f799d680b68c.css +1 -0
  113. package/dist/client/styles/daf570a405772cd396ad.css +6 -0
  114. package/dist/client/styles/df107e5c8c14d20cd946.css +1 -0
  115. package/dist/client/styles/f1f9dceb456cec3c9a04.css +1 -0
  116. package/dist/client/styles/f4becf635b59a9d80c47.css +1 -0
  117. package/dist/client/styles/f7621c6a2511e6b49376.css +1 -0
  118. package/dist/client/styles/third-party/_cludo-search-results.css +1 -1
  119. package/dist/ssr/index.js +1 -1
  120. package/dist/ssr/manifest.json +1 -1
  121. package/dist/ssr/styles/74964fc963f7fd950299.css +151 -0
  122. package/package.json +3 -2
  123. package/dist/client/scripts/0022bc59627e9ad843d9.js +0 -1
  124. package/dist/client/scripts/034df1188ebf9048b6ba.js +0 -1
  125. package/dist/client/scripts/099931b2a1985cf7307d.js +0 -1
  126. package/dist/client/scripts/0be9ff88b5e10737c90c.js +0 -1
  127. package/dist/client/scripts/0c0fdfbce97f7345bffa.js +0 -1
  128. package/dist/client/scripts/0c78e251f5a9f7618d90.js +0 -1
  129. package/dist/client/scripts/10b5629c275c1646f771.js +0 -1
  130. package/dist/client/scripts/15e9082bbb30d4af7df1.js +0 -1
  131. package/dist/client/scripts/18dd1091752a2fd9d822.js +0 -1
  132. package/dist/client/scripts/221a9b02b5bc5fcbc5da.js +0 -1
  133. package/dist/client/scripts/2424cbc3a2273b5a9656.js +0 -1
  134. package/dist/client/scripts/28830e18f75919540058.js +0 -1
  135. package/dist/client/scripts/29751e1af76341ed3247.js +0 -1
  136. package/dist/client/scripts/2a57d4f95135d17d1c3d.js +0 -1
  137. package/dist/client/scripts/37216eca3b30c73830f7.js +0 -1
  138. package/dist/client/scripts/3856822e7a2da06aa333.js +0 -1
  139. package/dist/client/scripts/396c20f0ac0d0ffa7d5e.js +0 -1
  140. package/dist/client/scripts/3f282bacfcdb23de4dd5.js +0 -1
  141. package/dist/client/scripts/4b45b38e24f5b8e45095.js +0 -1
  142. package/dist/client/scripts/54109143b798f6915809.js +0 -1
  143. package/dist/client/scripts/542077fa13f502161092.js +0 -1
  144. package/dist/client/scripts/577f831bcbf78a8f1e73.js +0 -1
  145. package/dist/client/scripts/5a46d1c378e0b708c55f.js +0 -1
  146. package/dist/client/scripts/5dd1a626ff6daf7dcd47.js +0 -1
  147. package/dist/client/scripts/6484599feca1c62261b8.js +0 -1
  148. package/dist/client/scripts/66ec75d2bcf76d910a32.js +0 -1
  149. package/dist/client/scripts/6a356db75db131755916.js +0 -1
  150. package/dist/client/scripts/6be196764e114ded7825.js +0 -1
  151. package/dist/client/scripts/6f42bc3c1ede87a38ff9.js +0 -1
  152. package/dist/client/scripts/71b4e7b58e3cba39381c.js +0 -1
  153. package/dist/client/scripts/760fe33356aab777fd12.js +0 -1
  154. package/dist/client/scripts/783e606312799c06a9b8.js +0 -1
  155. package/dist/client/scripts/88b96e2a971de7a9bee6.js +0 -1
  156. package/dist/client/scripts/8f51ba38699a471bbee0.js +0 -1
  157. package/dist/client/scripts/93b9aef86a98ea5eb597.js +0 -1
  158. package/dist/client/scripts/9bac84b9cb9f27064a2c.js +0 -1
  159. package/dist/client/scripts/a483b28841bb03c0adba.js +0 -1
  160. package/dist/client/scripts/aa3dcd79bd3673486cbd.js +0 -1
  161. package/dist/client/scripts/abdf7f1c46be80237ea7.js +0 -1
  162. package/dist/client/scripts/b0e8684e265126bca874.js +0 -2
  163. package/dist/client/scripts/c72d2c4765ae4f48ee60.js +0 -1
  164. package/dist/client/scripts/caad9ac8909389b9f23c.js +0 -1
  165. package/dist/client/scripts/cebd58e82411678c9745.js +0 -1
  166. package/dist/client/scripts/d6367db81b9292edfb66.js +0 -1
  167. package/dist/client/scripts/db85fb03c0071ce968bd.js +0 -1
  168. package/dist/client/scripts/e403cdfcd82470b177f1.js +0 -2
  169. package/dist/client/scripts/e623ed193c23c0f42e31.js +0 -1
  170. package/dist/client/scripts/ef62ba8f9af131808c4e.js +0 -1
  171. package/dist/client/scripts/f2061257d8431377f104.js +0 -1
  172. package/dist/client/scripts/f75e151ee7d945a0020c.js +0 -1
  173. package/dist/client/scripts/f9eb94fdb2543c2b3c82.js +0 -1
  174. package/dist/client/scripts/fab993c848fa39ef30ff.js +0 -1
  175. package/dist/client/styles/034df1188ebf9048b6ba.css +0 -1
  176. package/dist/client/styles/0803f30321eef943e774.css +0 -1
  177. package/dist/client/styles/0be9ff88b5e10737c90c.css +0 -1
  178. package/dist/client/styles/18dd1091752a2fd9d822.css +0 -1
  179. package/dist/client/styles/221a9b02b5bc5fcbc5da.css +0 -1
  180. package/dist/client/styles/396c20f0ac0d0ffa7d5e.css +0 -1
  181. package/dist/client/styles/3b5af76c25356d06c477.css +0 -1
  182. package/dist/client/styles/4cf75048d6f152143d83.css +0 -1
  183. package/dist/client/styles/542077fa13f502161092.css +0 -1
  184. package/dist/client/styles/5a46d1c378e0b708c55f.css +0 -1
  185. package/dist/client/styles/6484599feca1c62261b8.css +0 -1
  186. package/dist/client/styles/650aad6478059f186cee.css +0 -6
  187. package/dist/client/styles/6a356db75db131755916.css +0 -1
  188. package/dist/client/styles/6be196764e114ded7825.css +0 -1
  189. package/dist/client/styles/71b4e7b58e3cba39381c.css +0 -1
  190. package/dist/client/styles/783e606312799c06a9b8.css +0 -1
  191. package/dist/client/styles/8f51ba38699a471bbee0.css +0 -1
  192. package/dist/client/styles/93b9aef86a98ea5eb597.css +0 -1
  193. package/dist/client/styles/94147f3aeb7034517de8.css +0 -1
  194. package/dist/client/styles/a483b28841bb03c0adba.css +0 -1
  195. package/dist/client/styles/abdf7f1c46be80237ea7.css +0 -1
  196. package/dist/client/styles/bcff1e0af63165921552.css +0 -1
  197. package/dist/client/styles/cebd58e82411678c9745.css +0 -1
  198. package/dist/client/styles/cfa6e32c33fa5b16780d.css +0 -1
  199. package/dist/client/styles/db85fb03c0071ce968bd.css +0 -1
  200. package/dist/client/styles/e4de604a147d2c7266e2.css +0 -1
  201. package/dist/client/styles/f73f5a467b3b72917751.css +0 -1
  202. package/dist/client/styles/f75e151ee7d945a0020c.css +0 -1
  203. package/dist/client/styles/f9eb94fdb2543c2b3c82.css +0 -1
  204. package/dist/client/styles/fab993c848fa39ef30ff.css +0 -1
  205. package/dist/ssr/styles/5210c2cd5c0ec429d805.css +0 -152
  206. /package/dist/client/scripts/{94147f3aeb7034517de8.js → 1221dc5a966ef06ca55d.js} +0 -0
  207. /package/dist/client/scripts/{bcff1e0af63165921552.js → 2f7afccf97ac350d177a.js} +0 -0
  208. /package/dist/client/scripts/{09381bee3de96b7b34b2.js.LICENSE.txt → 4fbfd4b13c54920b632d.js.LICENSE.txt} +0 -0
  209. /package/dist/client/scripts/{cfa6e32c33fa5b16780d.js → 7a4eca24686d4a08ed0f.js} +0 -0
  210. /package/dist/client/scripts/{b0e8684e265126bca874.js.LICENSE.txt → 968c1fc4e7180be347d7.js.LICENSE.txt} +0 -0
  211. /package/dist/client/scripts/{f73f5a467b3b72917751.js → a844743f6febcdce1a4d.js} +0 -0
  212. /package/dist/client/scripts/{4cf75048d6f152143d83.js → ab530d0fbde5cf0c3d28.js} +0 -0
  213. /package/dist/client/scripts/{650aad6478059f186cee.js → daf570a405772cd396ad.js} +0 -0
  214. /package/dist/client/scripts/{a69cc195d8b1381ba111.js → feda8644476660d0e13c.js} +0 -0
  215. /package/dist/client/scripts/{e403cdfcd82470b177f1.js.LICENSE.txt → ffa5b60732ad98294925.js.LICENSE.txt} +0 -0
  216. /package/dist/client/styles/{0c78e251f5a9f7618d90.css → 00f15476517af0b5a1f2.css} +0 -0
  217. /package/dist/client/styles/{1fb7c3c522bb0cc34007.css → 03ec6e964a0ff5862e08.css} +0 -0
  218. /package/dist/client/styles/{0022bc59627e9ad843d9.css → 041c8878e2a07d21b091.css} +0 -0
  219. /package/dist/client/styles/{3856822e7a2da06aa333.css → 05086bfb77b6e912cf8c.css} +0 -0
  220. /package/dist/client/styles/{1e1b733389b5b3442807.css → 16d0e96bbae2014368b2.css} +0 -0
  221. /package/dist/client/styles/{132eaef374fd59d4588c.css → 273a097978a5c8b95984.css} +0 -0
  222. /package/dist/client/styles/{21895069f7956c944a8f.css → 2c0f7eb6c28d72147f56.css} +0 -0
  223. /package/dist/client/styles/{f2061257d8431377f104.css → 2e6bbc7af3d8d79f9d0f.css} +0 -0
  224. /package/dist/client/styles/{577f831bcbf78a8f1e73.css → 3063a1ebccda0d9e7c38.css} +0 -0
  225. /package/dist/client/styles/{4c96a47acb46cac3a4a9.css → 34aec8924a83fd5f6f22.css} +0 -0
  226. /package/dist/client/styles/{6f42bc3c1ede87a38ff9.css → 3a2f61b64dcbdf73305a.css} +0 -0
  227. /package/dist/client/styles/{a14ecaa1119d13233337.css → 3f7ac6ae45f4f9c4e23a.css} +0 -0
  228. /package/dist/client/styles/{b00241245ea704ce14ff.css → 4055c89cfcc61f835ca3.css} +0 -0
  229. /package/dist/client/styles/{fe45c497991b841f24fc.css → 459ee91db3eff506960f.css} +0 -0
  230. /package/dist/client/styles/{37cd9aca344ab9d869cf.css → 4b437ed16c72072f2a17.css} +0 -0
  231. /package/dist/client/styles/{e5d14ce33b4407f2b071.css → 534d53dc0e9726294d26.css} +0 -0
  232. /package/dist/client/styles/{caad9ac8909389b9f23c.css → 62c5b38e78cc8e7b0cc4.css} +0 -0
  233. /package/dist/client/styles/{e31d0d42ab5e82918e9e.css → 673752b835b7ec770cf7.css} +0 -0
  234. /package/dist/client/styles/{e623ed193c23c0f42e31.css → 70cf4de79348ec18da67.css} +0 -0
  235. /package/dist/client/styles/{28830e18f75919540058.css → 755d35cfc0dfadeba6bf.css} +0 -0
  236. /package/dist/client/styles/{10b5629c275c1646f771.css → 83245ba0929fd225236c.css} +0 -0
  237. /package/dist/client/styles/{809a66829326d795f0ef.css → 84bde8f2f0118ee3bb98.css} +0 -0
  238. /package/dist/client/styles/{dd3dfc8685410eefd39b.css → 8a7c713db5856acd74a6.css} +0 -0
  239. /package/dist/client/styles/{c72d2c4765ae4f48ee60.css → 97e51f4a4e7dbe359a7a.css} +0 -0
  240. /package/dist/client/styles/{13f12eae92f8cc0eac43.css → a3954715d0d20dc1a4a7.css} +0 -0
  241. /package/dist/client/styles/{37a1a1cc4621a0438fdb.css → a7ef9455daa076007fc9.css} +0 -0
  242. /package/dist/client/styles/{85c7716e092a8b2b819c.css → ab9f543d1defa96f6b5f.css} +0 -0
  243. /package/dist/client/styles/{aa3dcd79bd3673486cbd.css → ad28dc96c50b61be3831.css} +0 -0
  244. /package/dist/client/styles/{9bac84b9cb9f27064a2c.css → bc4e486a50cb0450f7d3.css} +0 -0
  245. /package/dist/client/styles/{5dd1a626ff6daf7dcd47.css → c3a5553da59b6b611e38.css} +0 -0
  246. /package/dist/client/styles/{debceacad9280cc73636.css → c4f9657310ca97440de9.css} +0 -0
  247. /package/dist/client/styles/{ef62ba8f9af131808c4e.css → c858b3118529f1a566eb.css} +0 -0
  248. /package/dist/client/styles/{3526faa91f53193cfb0e.css → caceb888b637043ddb3d.css} +0 -0
  249. /package/dist/client/styles/{da6add37dbef2487efe8.css → cdb89f2eac824cad3db5.css} +0 -0
  250. /package/dist/client/styles/{0c0fdfbce97f7345bffa.css → d2e981d125aa8ae0d301.css} +0 -0
  251. /package/dist/client/styles/{4b45b38e24f5b8e45095.css → d5df6cbaf20803e64c4c.css} +0 -0
  252. /package/dist/client/styles/{b77bbd3cce2087e3b50b.css → d771d9c9de03520db0ae.css} +0 -0
  253. /package/dist/client/styles/{3833b7d825bc1b983556.css → d8b725a529a755f51c52.css} +0 -0
  254. /package/dist/client/styles/{7950b2bad3fecaf79d3e.css → dd63afa1669c2cb81616.css} +0 -0
  255. /package/dist/client/styles/{c5f16cdc2cc45d182ba9.css → deeb6d58657fdf2af4df.css} +0 -0
  256. /package/dist/client/styles/{2263b3b5b4996de0d034.css → e34938167097f57386a3.css} +0 -0
  257. /package/dist/client/styles/{9c0ca3d1dd33c704b115.css → eade43d810f97dcfa016.css} +0 -0
  258. /package/dist/client/styles/{15e9082bbb30d4af7df1.css → edd98a796ecce69650dc.css} +0 -0
  259. /package/dist/client/styles/{29751e1af76341ed3247.css → f01dcaa0c91eb43325d5.css} +0 -0
  260. /package/dist/client/styles/{bb2d0ea653b28fed0b54.css → f17256f2730bc7a5d193.css} +0 -0
  261. /package/dist/client/styles/{54109143b798f6915809.css → f2d3941270158b233601.css} +0 -0
  262. /package/dist/client/styles/{37216eca3b30c73830f7.css → f4fba8936eb681775386.css} +0 -0
  263. /package/dist/client/styles/{760fe33356aab777fd12.css → f5937fe24d74e57d6993.css} +0 -0
  264. /package/dist/client/styles/{88b96e2a971de7a9bee6.css → f6383c6df0fde7f8f91a.css} +0 -0
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsItineraryStopInfo=e():t.VsItineraryStopInfo=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7327],{70103:function(){},81226:function(t,e,s){"use strict";var n=s(71002),r=s(55252),i=s(59118);e.Z={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon:r.default,VsLink:i.default},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data:function(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage:function(){var t="";if(this.closedLongTerm)t=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":t=this.closedText;break;case"closing soon":t=this.closingSoonText;break;case"open":t=this.openText;break;default:t=""}return t},provisionalMessage:function(){var t=this,e="";if(void 0!==this.currentDayData[0]){var s="open"===this.currentDayData[0].state?this.openText:this.closedText;e=this.currentDayData[0].provisional?"".concat(this.provisionalText," ").concat(s.toLowerCase()," ").concat(this.currentDayData[0].day):"".concat(this.usualText," ").concat(s.toLowerCase()," ").concat(this.currentDayData[0].day),"closed"!==this.currentDayData[0].state&&void 0!==this.currentDayData[this.dayDataIndex]&&void 0!==this.currentDayData[this.dayDataIndex].startTime&&void 0!==this.currentDayData[this.dayDataIndex].endTime&&""!==this.currentDayData[this.dayDataIndex].startTime&&""!==this.currentDayData[this.dayDataIndex].endTime&&this.currentDayData.forEach((function(s,n){e+=" ".concat(s.startTime," ").concat(t.toText," ").concat(s.endTime),n+1<t.currentDayData.length&&(e+=" ".concat(t.andText," "))}))}return e}},created:function(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData:function(){if("object"!==(0,n.Z)(this.openingHours)){var t=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(t)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime:function(){var t=new Date,e=t.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=t.toLocaleDateString("en-GB",{timeZone:"Europe/London"});var s=e.substring(0,2),n=e.substring(3,6),r=t.getDay();this.currentTime.hours=parseInt(s,10),this.currentTime.minutes=parseInt(n,10),this.currentTime.day=r},isActiveDate:function(){if(void 0!==this.parsedHours.period){var t="".concat(this.ukDate.substring(3,5),"/").concat(this.ukDate.substring(0,2),"/").concat(this.ukDate.substring(6,10)),e=new Date(this.parsedHours.period.startDay),s=new Date(this.parsedHours.period.endDay),n=new Date(t);this.isCurrentTimeframe=n<s&&n>e}else this.isCurrentTimeframe=!0},getCurrentHoursInfo:function(){var t=this.returnDayName(this.currentTime.day);if(void 0!==this.parsedHours.days){var e=this.parsedHours.days.filter((function(e){return e.key===t}));void 0!==e&&(this.currentDayData=e,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes:function(t,e,s){if(void 0!==e[s].startTime&&void 0!==e[s].endTime&&e[s].startTime.length>0&&e[s].endTime.length>0){var n=e[s].startTime,r=e[s].endTime,i=parseInt(n.substring(0,n.indexOf(":")),10),a=parseInt(n.substring(n.indexOf(":")+1,n.length),10),o=parseInt(r.substring(0,r.indexOf(":")),10),u=parseInt(r.substring(r.indexOf(":")+1,r.length),10),c=this.calculateClosingSoon(o,u);"closed"===e[s].state||i>t.hours||i===t.hours&&a>t.minutes||o<t.hours||o===t.hours&&u<t.minutes?this.openingMessage="closed":this.withinClosingSoonTime(t,c)?this.openingMessage="closing soon":this.openingMessage="open","closed"===this.openingMessage&&e.length>s+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else"closed"===e[s].state&&(this.openingMessage="closed")},returnDayName:function(t){var e="";switch(t){case 1:e="monday";break;case 2:e="tuesday";break;case 3:e="wednesday";break;case 4:e="thursday";break;case 5:e="friday";break;case 6:e="saturday";break;case 7:e="sunday";break;default:e=""}return e},calculateClosingSoon:function(t,e){var s,n;return e<30?(s=t-1,n=e-30+60):(s=t,n=e-30),{hours:s,mins:n}},withinClosingSoonTime:function(t,e){return!(e.hours>t.hours||e.hours===t.hours&&e.mins>t.minutes)}}}},16189:function(t,e,s){"use strict";s.d(e,{s:function(){return h}});var n=s(66252),r=s(3577),i={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},a={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},o=(0,n._)("br",null,null,-1),u={key:1,"data-test":"vs-itinerary-stop-hours"},c={key:1,"data-test":"vs-stop-link"},d={key:2,"data-test":"vs-stop-charge-text"};function h(t,e,s,h,l,p){var g=(0,n.up)("VsIcon"),y=(0,n.up)("VsLink");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(g,{name:"information",class:"vs-address__map-marker mr-2"}),(0,n._)("div",null,[l.isCurrentTimeframe?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[p.hoursMessage.length>0?((0,n.wg)(),(0,n.iD)("p",a,[(0,n.Uk)((0,r.toDisplayString)(p.hoursMessage),1),o])):(0,n.kq)("",!0),!l.closedLongTerm&&void 0!==l.currentDayData[0]&&void 0!==l.currentDayData[0].state&&p.provisionalMessage.length>0?((0,n.wg)(),(0,n.iD)("p",u,(0,r.toDisplayString)(p.provisionalMessage)+". ",1)):(0,n.kq)("",!0)],64)):(0,n.kq)("",!0),t.$slots["stop-link-text"]&&null!==s.openingTimesLink?((0,n.wg)(),(0,n.iD)("p",c,[(0,n.Wm)(y,{href:s.openingTimesLink},{default:(0,n.w5)((function(){return[(0,n.WI)(t.$slots,"stop-link-text")]})),_:3},8,["href"])])):(0,n.kq)("",!0),t.$slots["stop-charge-text"]?((0,n.wg)(),(0,n.iD)("p",d,[(0,n.WI)(t.$slots,"stop-charge-text")])):(0,n.kq)("",!0)])])}},9146:function(t,e,s){"use strict";var n=s(93379),r=s.n(n),i=s(7795),a=s.n(i),o=s(90569),u=s.n(o),c=s(3565),d=s.n(c),h=s(19216),l=s.n(h),p=s(44589),g=s.n(p),y=s(70103),m=s.n(y),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=u().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=l(),r()(m(),f),m()&&m().locals&&m().locals},35045:function(t,e,s){"use strict";s.r(e);var n=s(32953),r=s(44614);s(18046);const i=(0,s(83744).Z)(r.Z,[["render",n.s]]);e.default=i},44614:function(t,e,s){"use strict";s.d(e,{Z:function(){return n.Z}});var n=s(81226)},32953:function(t,e,s){"use strict";s.d(e,{s:function(){return n.s}});var n=s(16189)},18046:function(t,e,s){"use strict";s(9146)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,5252,5730,976,9118],(function(){return 35045,t(t.s=35045)})),t.O()}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsItineraryStopInfo=e():t.VsItineraryStopInfo=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7327],{85712:function(){},81226:function(t,e,s){"use strict";var n=s(71002),r=s(55252),i=s(59118);e.Z={name:"VsItineraryStopInfo",status:"prototype",release:"0.0.1",components:{VsIcon:r.default,VsLink:i.default},props:{openingHours:{type:[String,Object],required:!1,default:null},openingTimesLink:{type:String,required:!1,default:null},closedText:{type:String,required:!0},closingSoonText:{type:String,required:!0},openText:{type:String,required:!0},usualText:{type:String,required:!0},provisionalText:{type:String,required:!0},temporarilyClosedText:{type:String,required:!0},toText:{type:String,required:!0},andText:{type:String,required:!0}},data:function(){return{openingMessage:"",currentDayData:{},currentTime:{},dayDataIndex:0,closedLongTerm:!1,ukDate:"",isCurrentTimeframe:!1,parsedHours:{}}},computed:{hoursMessage:function(){var t="";if(this.closedLongTerm)t=this.temporarilyClosedText;else if(this.currentDayData.length>0)switch(this.openingMessage){case"closed":t=this.closedText;break;case"closing soon":t=this.closingSoonText;break;case"open":t=this.openText;break;default:t=""}return t},provisionalMessage:function(){var t=this,e="";if(void 0!==this.currentDayData[0]){var s="open"===this.currentDayData[0].state?this.openText:this.closedText;e=this.currentDayData[0].provisional?"".concat(this.provisionalText," ").concat(s.toLowerCase()," ").concat(this.currentDayData[0].day):"".concat(this.usualText," ").concat(s.toLowerCase()," ").concat(this.currentDayData[0].day),"closed"!==this.currentDayData[0].state&&void 0!==this.currentDayData[this.dayDataIndex]&&void 0!==this.currentDayData[this.dayDataIndex].startTime&&void 0!==this.currentDayData[this.dayDataIndex].endTime&&""!==this.currentDayData[this.dayDataIndex].startTime&&""!==this.currentDayData[this.dayDataIndex].endTime&&this.currentDayData.forEach((function(s,n){e+=" ".concat(s.startTime," ").concat(t.toText," ").concat(s.endTime),n+1<t.currentDayData.length&&(e+=" ".concat(t.andText," "))}))}return e}},created:function(){this.parseIncomingData(),this.getCurrentTime(),this.isActiveDate(),this.getCurrentHoursInfo()},methods:{parseIncomingData:function(){if("object"!==(0,n.Z)(this.openingHours)){var t=this.openingHours.replace(/'/g,'"');this.parsedHours=JSON.parse(t)}else this.parsedHours=this.openingHours;this.parsedHours.closedLongTerm&&(this.closedLongTerm=!0)},getCurrentTime:function(){var t=new Date,e=t.toLocaleTimeString("en-GB",{timeZone:"Europe/London"});this.ukDate=t.toLocaleDateString("en-GB",{timeZone:"Europe/London"});var s=e.substring(0,2),n=e.substring(3,6),r=t.getDay();this.currentTime.hours=parseInt(s,10),this.currentTime.minutes=parseInt(n,10),this.currentTime.day=r},isActiveDate:function(){if(void 0!==this.parsedHours.period){var t="".concat(this.ukDate.substring(3,5),"/").concat(this.ukDate.substring(0,2),"/").concat(this.ukDate.substring(6,10)),e=new Date(this.parsedHours.period.startDay),s=new Date(this.parsedHours.period.endDay),n=new Date(t);this.isCurrentTimeframe=n<s&&n>e}else this.isCurrentTimeframe=!0},getCurrentHoursInfo:function(){var t=this.returnDayName(this.currentTime.day);if(void 0!==this.parsedHours.days){var e=this.parsedHours.days.filter((function(e){return e.key===t}));void 0!==e&&(this.currentDayData=e,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}},compareTimes:function(t,e,s){if(void 0!==e[s].startTime&&void 0!==e[s].endTime&&e[s].startTime.length>0&&e[s].endTime.length>0){var n=e[s].startTime,r=e[s].endTime,i=parseInt(n.substring(0,n.indexOf(":")),10),a=parseInt(n.substring(n.indexOf(":")+1,n.length),10),o=parseInt(r.substring(0,r.indexOf(":")),10),u=parseInt(r.substring(r.indexOf(":")+1,r.length),10),c=this.calculateClosingSoon(o,u);"closed"===e[s].state||i>t.hours||i===t.hours&&a>t.minutes||o<t.hours||o===t.hours&&u<t.minutes?this.openingMessage="closed":this.withinClosingSoonTime(t,c)?this.openingMessage="closing soon":this.openingMessage="open","closed"===this.openingMessage&&e.length>s+1&&(this.dayDataIndex+=1,this.compareTimes(this.currentTime,this.currentDayData,this.dayDataIndex))}else"closed"===e[s].state&&(this.openingMessage="closed")},returnDayName:function(t){var e="";switch(t){case 1:e="monday";break;case 2:e="tuesday";break;case 3:e="wednesday";break;case 4:e="thursday";break;case 5:e="friday";break;case 6:e="saturday";break;case 7:e="sunday";break;default:e=""}return e},calculateClosingSoon:function(t,e){var s,n;return e<30?(s=t-1,n=e-30+60):(s=t,n=e-30),{hours:s,mins:n}},withinClosingSoonTime:function(t,e){return!(e.hours>t.hours||e.hours===t.hours&&e.mins>t.minutes)}}}},54328:function(t,e,s){"use strict";s.d(e,{s:function(){return h}});var n=s(66252),r=s(3577),i={class:"vs-itinerary-stop-info","data-test":"vs-itinerary-stop-info"},a={key:0,class:"itinerary-stop-info__times mb-0","data-test":"vs-itinerary-stop-status"},o=(0,n._)("br",null,null,-1),u={key:1,"data-test":"vs-itinerary-stop-hours"},c={key:1,"data-test":"vs-stop-link"},d={key:2,"data-test":"vs-stop-charge-text"};function h(t,e,s,h,l,p){var g=(0,n.up)("VsIcon"),y=(0,n.up)("VsLink");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(g,{name:"information",class:"vs-address__map-marker me-2"}),(0,n._)("div",null,[l.isCurrentTimeframe?((0,n.wg)(),(0,n.iD)(n.HY,{key:0},[p.hoursMessage.length>0?((0,n.wg)(),(0,n.iD)("p",a,[(0,n.Uk)((0,r.toDisplayString)(p.hoursMessage),1),o])):(0,n.kq)("",!0),!l.closedLongTerm&&void 0!==l.currentDayData[0]&&void 0!==l.currentDayData[0].state&&p.provisionalMessage.length>0?((0,n.wg)(),(0,n.iD)("p",u,(0,r.toDisplayString)(p.provisionalMessage)+". ",1)):(0,n.kq)("",!0)],64)):(0,n.kq)("",!0),t.$slots["stop-link-text"]&&null!==s.openingTimesLink?((0,n.wg)(),(0,n.iD)("p",c,[(0,n.Wm)(y,{href:s.openingTimesLink},{default:(0,n.w5)((function(){return[(0,n.WI)(t.$slots,"stop-link-text")]})),_:3},8,["href"])])):(0,n.kq)("",!0),t.$slots["stop-charge-text"]?((0,n.wg)(),(0,n.iD)("p",d,[(0,n.WI)(t.$slots,"stop-charge-text")])):(0,n.kq)("",!0)])])}},69300:function(t,e,s){"use strict";var n=s(93379),r=s.n(n),i=s(7795),a=s.n(i),o=s(90569),u=s.n(o),c=s(3565),d=s.n(c),h=s(19216),l=s.n(h),p=s(44589),g=s.n(p),y=s(85712),m=s.n(y),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=u().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=l(),r()(m(),f),m()&&m().locals&&m().locals},35045:function(t,e,s){"use strict";s.r(e);var n=s(94284),r=s(44614);s(39811);const i=(0,s(83744).Z)(r.Z,[["render",n.s]]);e.default=i},44614:function(t,e,s){"use strict";s.d(e,{Z:function(){return n.Z}});var n=s(81226)},94284:function(t,e,s){"use strict";s.d(e,{s:function(){return n.s}});var n=s(54328)},39811:function(t,e,s){"use strict";s(69300)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,4942,6765,7169,7476,5252,5730,976,9118],(function(){return 35045,t(t.s=35045)})),t.O()}])}));
@@ -1 +1 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1232],{29742:function(){},27098:function(e,t,i){"use strict";var s=i(4942),r=i(46157),n=i(59118),a=i(31630),o=i(70419),d=i(26036),l=i(68497),c=i(72956),u=i.n(c),h=i(67476),g=i(67106),k=i(14165);function v(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?v(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m=i(16033).Z.youtube;t.Z={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:r.default,VsLink:n.default,VsImg:a.default,VsButton:o.default,VsWarning:d.default},mixins:[g.Z,k.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:m}},computed:f(f({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},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0}},(0,h.rn)(u(),{videoDetails:function(e){return e.getVideo(this.videoId)}})),{},{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(){this.jsDisabled=(0,l.Z)()},methods:{emitShowModal:function(){this.videoId&&this.requiredCookiesExist&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},84072:function(e,t,i){"use strict";i.d(t,{s:function(){return l}});var s=i(66252),r=i(3577),n=i(49963),a={key:0,class:"vs-stretched-link-card__video-btn-text"},o={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},d={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"};function l(e,t,i,l,c,u){var h=(0,s.up)("VsWarning"),g=(0,s.up)("VsImg"),k=(0,s.up)("VsButton"),v=(0,s.up)("VsLink"),f=(0,s.up)("VsHeading");return(0,s.wg)(),(0,s.iD)("div",{class:(0,r.normalizeClass)(["card vs-stretched-link-card",u.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)}),onKeypress:t[1]||(t[1]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)})},[(0,s.wy)((0,s.Wm)(h,{size:i.warningSize,theme:u.theme,type:u.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,r.toDisplayString)(u.warningMessage)+" ",1)]})),_:2},[""!==u.cookieLinkText&&u.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","theme","type"]),[[n.vShow,"full"===u.showWarning]]),(0,s.wy)((0,s.Wm)(h,{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:u.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size","theme"]),[[n.vShow,"full"===i.errorType&&""!==i.videoId]]),(0,s._)("div",{class:(0,r.normalizeClass)(["vs-stretched-link-card__img-container",u.warningClass])},[i.imgSrc?((0,s.wg)(),(0,s.j4)(g,{key:0,src:i.imgSrc,alt:i.imgAlt,srcset:e.fullSrcSet,sizes:"(min-width: 768px) 50vw, 100vw","low-res-image":e.specificImgSize("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),(0,s.wy)((0,s.Wm)(h,{size:i.warningSize,type:u.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning",theme:u.theme},(0,s.Nv)({default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.warningMessage)+" ",1)]})),_:2},[""!==u.cookieLinkText&&u.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type","theme"]),[[n.vShow,"image"===u.showWarning]]),(0,s.wy)((0,s.Wm)(h,{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:u.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size","theme"]),[[n.vShow,""!==i.videoId&&"image"===i.errorType]])],2),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,s.WI)(e.$slots,"stretched-card-panels",{key:0}):(0,s.kq)("",!0),"full"!==u.showWarning?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,r.normalizeClass)(["card-body",i.videoId?"position-relative":""])},[i.videoId&&u.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:u.emitShowModal},{default:(0,s.w5)((function(){return[i.videoBtnText?((0,s.wg)(),(0,s.iD)("span",a,(0,r.toDisplayString)(u.formattedVideoBtnText),1)):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,r.toDisplayString)(u.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",o,[(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)(f,{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)(v,{key:2,href:i.link,type:i.type,class:(0,r.normalizeClass)(["stretched-link",i.disabled?"stretched-link--disabled":""]),variant:"dark"===u.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",d,[(0,s.WI)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,s.wg)(),(0,s.j4)(v,{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)}},40526:function(e,t,i){"use strict";var s=i(93379),r=i.n(s),n=i(7795),a=i.n(n),o=i(90569),d=i.n(o),l=i(3565),c=i.n(l),u=i(19216),h=i.n(u),g=i(44589),k=i.n(g),v=i(29742),f=i.n(v),m={};m.styleTagTransform=k(),m.setAttributes=c(),m.insert=d().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=h(),r()(f(),m),f()&&f().locals&&f().locals},11232:function(e,t,i){"use strict";i.r(t);var s=i(93662),r=i(67352);i(15917);const n=(0,i(83744).Z)(r.Z,[["render",s.s]]);t.default=n},67352:function(e,t,i){"use strict";i.d(t,{Z:function(){return s.Z}});var s=i(27098)},93662:function(e,t,i){"use strict";i.d(t,{s:function(){return s.s}});var s=i(84072)},15917:function(e,t,i){"use strict";i(40526)}}]);
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1232],{86261:function(){},27098:function(e,t,i){"use strict";var s=i(4942),r=i(46157),n=i(59118),a=i(31630),o=i(70419),d=i(26036),l=i(68497),c=i(72956),u=i.n(c),h=i(67476),g=i(67106),k=i(14165);function v(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?v(Object(i),!0).forEach((function(t){(0,s.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m=i(16033).Z.youtube;t.Z={name:"VsStretchedLinkCard",status:"prototype",release:"0.0.1",components:{VsHeading:r.default,VsLink:n.default,VsImg:a.default,VsButton:o.default,VsWarning:d.default},mixins:[g.Z,k.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:m}},computed:f(f({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},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0}},(0,h.rn)(u(),{videoDetails:function(e){return e.getVideo(this.videoId)}})),{},{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(){this.jsDisabled=(0,l.Z)()},methods:{emitShowModal:function(){this.videoId&&this.requiredCookiesExist&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},39608:function(e,t,i){"use strict";i.d(t,{s:function(){return l}});var s=i(66252),r=i(3577),n=i(49963),a={key:0,class:"vs-stretched-link-card__video-btn-text"},o={key:1,class:"vs-stretched-link-card__category","data-test":"vs-stretched-link-card__category"},d={class:"vs-stretched-link-card__content","data-test":"vs-stretched-link-card__content"};function l(e,t,i,l,c,u){var h=(0,s.up)("VsWarning"),g=(0,s.up)("VsImg"),k=(0,s.up)("VsButton"),v=(0,s.up)("VsLink"),f=(0,s.up)("VsHeading");return(0,s.wg)(),(0,s.iD)("div",{class:(0,r.normalizeClass)(["card vs-stretched-link-card",u.stretchedLinkCardClasses]),"data-test":"vs-stretched-link-card",onClick:t[0]||(t[0]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)}),onKeypress:t[1]||(t[1]=function(){return u.emitShowModal&&u.emitShowModal.apply(u,arguments)})},[(0,s.wy)((0,s.Wm)(h,{size:i.warningSize,theme:u.theme,type:u.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,r.toDisplayString)(u.warningMessage)+" ",1)]})),_:2},[""!==u.cookieLinkText&&u.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","theme","type"]),[[n.vShow,"full"===u.showWarning]]),(0,s.wy)((0,s.Wm)(h,{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:u.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size","theme"]),[[n.vShow,"full"===i.errorType&&""!==i.videoId]]),(0,s._)("div",{class:(0,r.normalizeClass)(["vs-stretched-link-card__img-container",u.warningClass])},[i.imgSrc?((0,s.wg)(),(0,s.j4)(g,{key:0,src:i.imgSrc,alt:i.imgAlt,srcset:e.fullSrcSet,sizes:"(min-width: 768px) 50vw, 100vw","low-res-image":e.specificImgSize("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),(0,s.wy)((0,s.Wm)(h,{size:i.warningSize,type:u.showCookieWarning?"cookie":"normal","data-test":"vs-stretched-link-card__image-warning",class:"vs-stretched-link-card__image-warning",theme:u.theme},(0,s.Nv)({default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.warningMessage)+" ",1)]})),_:2},[""!==u.cookieLinkText&&u.showCookieWarning?{name:"button-text",fn:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.cookieLinkText),1)]})),key:"0"}:void 0]),1032,["size","type","theme"]),[[n.vShow,"image"===u.showWarning]]),(0,s.wy)((0,s.Wm)(h,{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:u.theme},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,r.toDisplayString)(u.noJsMessage),1)]})),_:1},8,["size","theme"]),[[n.vShow,""!==i.videoId&&"image"===i.errorType]])],2),e.$slots["stretched-card-panels"]&&e.$slots["stretched-card-panels"]()?(0,s.WI)(e.$slots,"stretched-card-panels",{key:0}):(0,s.kq)("",!0),"full"!==u.showWarning?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,r.normalizeClass)(["card-body",i.videoId?"position-relative":""])},[i.videoId&&u.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:u.emitShowModal},{default:(0,s.w5)((function(){return[i.videoBtnText?((0,s.wg)(),(0,s.iD)("span",a,(0,r.toDisplayString)(u.formattedVideoBtnText),1)):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,r.toDisplayString)(u.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",o,[(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)(f,{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)(v,{key:2,href:i.link,type:i.type,class:(0,r.normalizeClass)(["stretched-link",i.disabled?"stretched-link--disabled":""]),variant:"dark"===u.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",d,[(0,s.WI)(e.$slots,"stretched-card-content")]),e.$slots["stretched-card-link"]&&e.$slots["stretched-card-link"]()?((0,s.wg)(),(0,s.j4)(v,{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)}},62439:function(e,t,i){"use strict";var s=i(93379),r=i.n(s),n=i(7795),a=i.n(n),o=i(90569),d=i.n(o),l=i(3565),c=i.n(l),u=i(19216),h=i.n(u),g=i(44589),k=i.n(g),v=i(86261),f=i.n(v),m={};m.styleTagTransform=k(),m.setAttributes=c(),m.insert=d().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=h(),r()(f(),m),f()&&f().locals&&f().locals},11232:function(e,t,i){"use strict";i.r(t);var s=i(58385),r=i(67352);i(37999);const n=(0,i(83744).Z)(r.Z,[["render",s.s]]);t.default=n},67352:function(e,t,i){"use strict";i.d(t,{Z:function(){return s.Z}});var s=i(27098)},58385:function(e,t,i){"use strict";i.d(t,{s:function(){return s.s}});var s=i(39608)},37999:function(e,t,i){"use strict";i(62439)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6540],{3224:function(){},53791:function(s,e,i){"use strict";var t=i(31630),r=i(46157),n=i(59118),a=i(1436),d=i(14165);e.Z={name:"VsCannedSearchProductCard",status:"prototype",release:"0.0.1",components:{VsImg:t.default,VsHeading:r.default,VsLink:n.default,VsCol:a.default},mixins:[d.Z],inject:["slideCols","visibleSlides"],provide:function(){return{slideVisible:this.isVisible}},props:{searchType:{type:String,default:""},imgSrc:{required:!0,type:String},title:{required:!0,type:String},inBodyDuration:{type:Object,default:null},description:{type:String,default:""},detailLink:{type:Object,required:!0},slideIndex:{type:String,required:!0}},computed:{modCardBody:function(){return"even"===this.searchType||"cate"===this.searchType?"card-body--short":""},useGenericLqip:function(){return"tour"===this.searchType}},methods:{isVisible:function(){var s=parseInt(this.slideIndex,10);return this.visibleSlides.indexOf(s)>=0}}}},47038:function(s,e,i){"use strict";i.d(e,{s:function(){return u}});var t=i(66252),r=i(3577),n={class:"vs-product-card__image-container"},a={class:"vs-product-card__image-inner-container"},d={class:"vs-product-card__description"},c={key:0,class:"vs-product-card__description-inner"},l={class:"visually-hidden"},o={class:"vs-product-card__logos-container"};function u(s,e,i,u,p,v){var _=(0,t.up)("VsImg"),f=(0,t.up)("VsLink"),g=(0,t.up)("VsHeading"),m=(0,t.up)("VsCol");return(0,t.wg)(),(0,t.j4)(m,{cols:v.slideCols.xs,sm:v.slideCols.sm,lg:v.slideCols.md,xl:v.slideCols.lg,class:"vs-carousel-slide__card","aria-disabled":!v.isVisible()},{default:(0,t.w5)((function(){return[(0,t._)("div",{class:(0,r.normalizeClass)(["vs-product-card",v.isVisible()?"":"vs-product-card--disabled"]),"data-test":"vs-product-card"},[(0,t._)("section",(0,t.dG)({class:"card"},s.$attrs),[(0,t._)("div",n,[(0,t._)("div",a,[(0,t.Wm)(_,{src:i.imgSrc,alt:"",srcset:s.fullSrcSet,sizes:"(min-width: 768px) 50vw, 100vw","low-res-image":s.specificImgSize("xxs"),"use-generic-lqip":v.useGenericLqip,class:"vs-product-card__img","data-test":"vs-product-card__img"},null,8,["src","srcset","low-res-image","use-generic-lqip"])]),(0,t.WI)(s.$slots,"vs-canned-search-badges")]),(0,t._)("div",{class:(0,r.normalizeClass)(["card-body",v.modCardBody])},[(0,t.Wm)(g,{level:"3",class:"card-title vs-product-card__title","data-test":"vs-product-card__title"},{default:(0,t.w5)((function(){return[(0,t.Wm)(f,{href:i.detailLink.link,class:"stretched-link vs-product-card__link","data-test":"vs-product-card__link",disabled:!v.isVisible()},{default:(0,t.w5)((function(){return[(0,t.Uk)((0,r.toDisplayString)(i.title),1)]})),_:1},8,["href","disabled"])]})),_:1}),(0,t.WI)(s.$slots,"vs-canned-search-sub-heading"),(0,t.WI)(s.$slots,"vs-canned-search-star-rating"),(0,t.WI)(s.$slots,"vs-canned-search-categories"),(0,t._)("div",d,[(0,t.WI)(s.$slots,"vs-canned-search-tour-info"),i.description?((0,t.wg)(),(0,t.iD)("p",c,(0,r.toDisplayString)(i.description),1)):(0,t.kq)("",!0),(0,t.Wm)(f,{href:i.detailLink.link,class:"vs-product-card__description-link",disabled:!v.isVisible()},{default:(0,t.w5)((function(){return[(0,t.Uk)((0,r.toDisplayString)(i.detailLink.label)+" ",1),(0,t._)("span",l,": "+(0,r.toDisplayString)(i.title),1)]})),_:1},8,["href","disabled"])])],2),(0,t._)("div",o,[(0,t.WI)(s.$slots,"vs-canned-search-logos")])],16),(0,t.WI)(s.$slots,"vs-canned-search-summary")],2)]})),_:3},8,["cols","sm","lg","xl","aria-disabled"])}},444:function(s,e,i){"use strict";var t=i(93379),r=i.n(t),n=i(7795),a=i.n(n),d=i(90569),c=i.n(d),l=i(3565),o=i.n(l),u=i(19216),p=i.n(u),v=i(44589),_=i.n(v),f=i(3224),g=i.n(f),m={};m.styleTagTransform=_(),m.setAttributes=o(),m.insert=c().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=p(),r()(g(),m),g()&&g().locals&&g().locals},26540:function(s,e,i){"use strict";i.r(e);var t=i(45683),r=i(10970);i(21964);const n=(0,i(83744).Z)(r.Z,[["render",t.s]]);e.default=n},10970:function(s,e,i){"use strict";i.d(e,{Z:function(){return t.Z}});var t=i(53791)},45683:function(s,e,i){"use strict";i.d(e,{s:function(){return t.s}});var t=i(47038)},21964:function(s,e,i){"use strict";i(444)}}]);
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsMegaNavFeaturedItem=e():t.VsMegaNavFeaturedItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5896],{70466:function(){},10715:function(t,e,n){"use strict";var r=n(11232);e.Z={name:"VsMegaNavFeaturedItem",status:"prototype",release:"0.1.0",components:{VsStretchedLinkCard:r.default},props:{link:{type:String,required:!0},imgUrl:{type:String,required:!0},imgAlt:{type:String,default:""}}}},34285:function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var r=n(66252);function i(t,e,n,i,s,a){var u=(0,r.up)("VsStretchedLinkCard");return(0,r.wg)(),(0,r.j4)(u,{link:n.link,type:"internal","img-src":n.imgUrl,"img-alt":n.imgAlt,class:"vs-mega-nav-featured-item","data-test":"vs-mega-nav-featured-item","heading-level":"2"},{"stretched-card-header":(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-featured-item-header")]})),"stretched-card-content":(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-featured-item-content")]})),"stretched-card-link":(0,r.w5)((function(){return[(0,r.WI)(t.$slots,"vs-featured-item-link")]})),_:3},8,["link","img-src","img-alt"])}},26040:function(t,e,n){"use strict";var r=n(93379),i=n.n(r),s=n(7795),a=n.n(s),u=n(90569),o=n.n(u),c=n(3565),d=n.n(c),l=n(19216),f=n.n(l),m=n(44589),p=n.n(m),g=n(70466),v=n.n(g),y={};y.styleTagTransform=p(),y.setAttributes=d(),y.insert=o().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),i()(v(),y),v()&&v().locals&&v().locals},73687:function(t,e,n){"use strict";n.r(e);var r=n(34285),i=n(47233);n(36694);const s=(0,n(83744).Z)(i.Z,[["render",r.s]]);e.default=s},47233:function(t,e,n){"use strict";n.d(e,{Z:function(){return r.Z}});var r=n(10715)},36694:function(t,e,n){"use strict";n(26040)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5252,5730,976,419,6157,9118,6036,1630,7447,4613,2956,4165,8497,1232],(function(){return 73687,t(t.s=73687)})),t.O()}])}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsVideo=t():e.VsVideo=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5427],{55087:function(){},86261:function(e,t,i){"use strict";var n=i(2498),o=i(26036),s=i(15730),r=i(72956),u=i.n(r),a=i(68497),d=i(67106),l=i(16033),c=i(60976),f=null,p=l.Z.youtube;t.Z={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:o.default,YoutubeVue3:n.YoutubeVue3},mixins:[d.Z,c.default],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:p,player:null,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError:function(){return!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus||!1===this.cookiesInitStatus},warningText:function(){var e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),"error"===this.cookiesInitStatus&&(e=this.errorMessage),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookiesMessage),e}},watch:{requiredCookiesExist:function(){var e=this;this.$nextTick((function(){e.$refs.youtube&&(e.player=e.$refs.youtube.player,e.getPlayerDetails()),e.shouldAutoPlay&&(e.shouldAutoPlay=!1,e.playVideo())}))}},mounted:function(){this.jsDisabled=(0,a.Z)(),f=u()((0,s.Z)()),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}))}))}}}},87722:function(e,t,i){"use strict";i.d(t,{s:function(){return d}});var n=i(66252),o=i(3577),s=i(49963),r={key:0,class:"vs-video","data-test":"vs-video"},u={class:"vs-video__iframe-wrapper"},a={key:0};function d(e,t,i,d,l,c){var f=(0,n.up)("YoutubeVue3"),p=(0,n.up)("VsWarning");return l.reRendering?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("div",u,[e.requiredCookiesExist?((0,n.wg)(),(0,n.iD)("div",a,[(0,n.Wm)(f,{autoplay:0,videoid:i.videoId,vars:l.playerVars,onPlayed:c.youtubePlaying,onPaused:c.youtubePaused,onEnded:c.youtubeEnded,ref:"youtube"},null,8,["videoid","vars","onPlayed","onPaused","onEnded"])])):(0,n.kq)("",!0),(0,n.wy)((0,n.Wm)(p,{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)(c.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"]),[[s.vShow,c.showError]]),(0,n.Wm)(p,{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})])]))}},85574: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),p=i(44589),y=i.n(p),h=i(55087),v=i.n(h),g={};g.styleTagTransform=y(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=f(),o()(v(),g),v()&&v().locals&&v().locals},33097:function(e,t,i){"use strict";i.r(t);var n=i(78567),o=i(53968);i(20913);const s=(0,i(83744).Z)(o.Z,[["render",n.s]]);t.default=s},53968:function(e,t,i){"use strict";i.d(t,{Z:function(){return n.Z}});var n=i(86261)},78567:function(e,t,i){"use strict";i.d(t,{s:function(){return n.s}});var n=i(87722)},20913:function(e,t,i){"use strict";i(85574)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,2498,5252,5730,976,419,6036,7447,4613,2956,8497],(function(){return 33097,e(e.s=33097)})),e.O()}])}));
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],{55087:function(){},49547:function(e,t,i){"use strict";var n=i(2498),o=i(26036),s=i(15730),r=i(72956),u=i.n(r),a=i(68497),d=i(67106),l=i(16033),c=i(60976),f=null,p=l.Z.youtube;t.Z={name:"VsVideo",status:"prototype",release:"0.0.1",components:{VsWarning:o.default,YoutubeVue3:n.YoutubeVue3},mixins:[d.Z,c.default],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:p,player:null,reRendering:!1,shouldAutoPlay:!1,jsDisabled:!0}},computed:{showError:function(){return!this.requiredCookiesExist&&!0===this.cookiesInitStatus||"error"===this.cookiesInitStatus||!1===this.cookiesInitStatus},warningText:function(){var e="";return this.videoId&&this.jsDisabled&&(e=this.noJsMessage),"error"===this.cookiesInitStatus&&(e=this.errorMessage),this.requiredCookiesExist||!0!==this.cookiesInitStatus||(e=this.noCookiesMessage),e}},watch:{requiredCookiesExist:function(){var e=this;this.$nextTick((function(){e.$refs.youtube&&(e.player=e.$refs.youtube.player,e.getPlayerDetails()),e.shouldAutoPlay&&(e.shouldAutoPlay=!1,e.playVideo())}))}},mounted:function(){this.jsDisabled=(0,a.Z)(),f=u()((0,s.Z)()),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}))}))}}}},87722:function(e,t,i){"use strict";i.d(t,{s:function(){return d}});var n=i(66252),o=i(3577),s=i(49963),r={key:0,class:"vs-video","data-test":"vs-video"},u={class:"vs-video__iframe-wrapper"},a={key:0};function d(e,t,i,d,l,c){var f=(0,n.up)("YoutubeVue3"),p=(0,n.up)("VsWarning");return l.reRendering?(0,n.kq)("",!0):((0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("div",u,[e.requiredCookiesExist?((0,n.wg)(),(0,n.iD)("div",a,[(0,n.Wm)(f,{autoplay:0,videoid:i.videoId,vars:l.playerVars,onPlayed:c.youtubePlaying,onPaused:c.youtubePaused,onEnded:c.youtubeEnded,ref:"youtube"},null,8,["videoid","vars","onPlayed","onPaused","onEnded"])])):(0,n.kq)("",!0),(0,n.wy)((0,n.Wm)(p,{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)(c.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"]),[[s.vShow,c.showError]]),(0,n.Wm)(p,{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})])]))}},85574: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),p=i(44589),y=i.n(p),h=i(55087),v=i.n(h),g={};g.styleTagTransform=y(),g.setAttributes=l(),g.insert=a().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=f(),o()(v(),g),v()&&v().locals&&v().locals},33097:function(e,t,i){"use strict";i.r(t);var n=i(78567),o=i(53968);i(20913);const s=(0,i(83744).Z)(o.Z,[["render",n.s]]);t.default=s},53968:function(e,t,i){"use strict";i.d(t,{Z:function(){return n.Z}});var n=i(49547)},78567:function(e,t,i){"use strict";i.d(t,{s:function(){return n.s}});var n=i(87722)},20913:function(e,t,i){"use strict";i(85574)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,2498,5252,5730,976,419,6036,7447,4613,2956,8497],(function(){return 33097,e(e.s=33097)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsCarbonCalculator=e():t.VsCarbonCalculator=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3612],{95859:function(){},2333:function(t,e,a){"use strict";var i=a(5274),n=a(51843),s=a(26036),r=a(70419),o=a(38923),l=a(46157),u=a(60976),c=a(33713),f=a(21377),m=a(80812),g=a(10588),d=a(31155);e.Z={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton:r.default,VsContainer:n.xB,VsCol:n.hY,VsRow:n.ou,VsWarning:s.default,VsProgressBar:o.default,VsHeading:l.default,VsCarbonCalculatorResults:f.default,VsCarbonCalculatorTip:c.default,VsCarbonCalculatorRunningTotal:m.default,VsCarbonCalculatorIntro:g.default,VsCarbonCalculatorQuestion:d.default},mixins:[u.default],provide:function(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data:function(){return this.initialState()},computed:{currentQuestion:function(){return this.formData&&this.activeStage?this.formData.fields[this.activeStage-1]:null},currentTip:function(){return this.activeStage&&this.labelsMap["stage-".concat(this.activeStage,".tip")]?this.labelsMap["stage-".concat(this.activeStage,".tip")]:""},stayDuration:function(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory:function(){return this.labelsMap["stage-".concat(this.activeStage,".title")]?this.labelsMap["stage-".concat(this.activeStage,".title")]:""},activeStageRepeatable:function(){return this.labelsMap["stage-".concat(this.activeStage,".repeat")]?this.labelsMap["stage-".concat(this.activeStage,".repeat")]:""}},mounted:function(){this.getFormData()},methods:{initialState:function(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart:function(){var t=this.formData,e=this.repeatableStages;Object.assign(this.$data,this.initialState()),this.$data.formData=t,this.$data.repeatableStages=e,this.cleanFields()},cleanFields:function(){for(var t=this.formData.fields.length-1;t>=0;t--)this.formData.fields[t].isClone&&this.formData.fields.splice(t,1);for(var e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData:function(){var t=this;i.Z.get(this.labelsMap.formUrl).then((function(e){if(t.formData=e.data,e.data.fields.forEach((function(e){t.form[e.name]="",e.conditional&&(t.conditionalFields[e.name]=!1)})),t.repeatableStages={},e.data.repeatableStages)for(var a=0;a<e.data.repeatableStages.length;a++)t.repeatableStages[e.data.repeatableStages[a]]={generations:0}}))},getMessagingData:function(t,e){return Object.keys(this.messagingData).length>0?this.messagingData[e][t]:"validation"===t?{}:""},getQuestionLabel:function(t,e){if(t.isClone){if(this.labelsMap["question-".concat(t.originalNumber+1,".clone-question")])return this.labelsMap["question-".concat(t.originalNumber+1,".clone-question")];if(this.labelsMap["question-".concat(t.originalNumber+1,".question")])return this.labelsMap["question-".concat(t.originalNumber+1,".question")]}return this.labelsMap["question-".concat(e+1,".question")]?this.labelsMap["question-".concat(e+1,".question")]:""},getQuestionHint:function(t,e){if(t.isClone){if(this.labelsMap["question-".concat(t.originalNumber+1,".clone-hint")])return this.labelsMap["question-".concat(t.originalNumber+1,".clone-hint")];if(this.labelsMap["question-".concat(t.originalNumber+1,".hint")])return this.labelsMap["question-".concat(t.originalNumber+1,".hint")]}return this.labelsMap["question-".concat(e+1,".hint")]?this.labelsMap["question-".concat(e+1,".hint")]:""},getQuestionOptions:function(t,e){var a;if(a=t.isClone?t.originalNumber:e,"radio"===t.element){for(var i=t.options,n=0;n<i.length;n++)i[n].text=this.labelsMap["question-".concat(a+1,".option-").concat(n+1)];return i}return[]},updateFieldData:function(t){this.form[t.field]=t.value||"",t.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(t.field,t.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus:function(t,e){var a=this.errorFields.indexOf(t);-1!==a?(!e||e.length<1)&&this.errorFields.splice(a,1):e&&e.length>0&&this.errorFields.push(t)},getRadioValue:function(t,e){if(!e)return 0;for(var a,i=0;i<this.formData.fields.length;i++)this.formData.fields[i].name===t&&(a=this.formData.fields[i]);var n=a.values[e];if(a.multiplyByNumber)return n*a.multiplyByNumber;if(a.multiplyByAnswer){var s=this.form[a.multiplyByAnswer.question]||0;return n*Math.max(s,a.multiplyByAnswer.minimum)}if(a.multiplyByValue&&t!==a.multiplyByValue){var r=this.getNumberValue(a.multiplyByValue.question,this.form[a.multiplyByValue.question])||0;return n*Math.max(r,a.multiplyByValue.minimum)}return n},getNumberValue:function(t,e){if(!e)return 0;for(var a,i=0;i<this.formData.fields.length;i++)this.formData.fields[i].name===t&&(a=this.formData.fields[i]);if(a.multiplyByNumber)return parseInt(e,10)*a.multiplyByNumber;if(a.multiplyByAnswer){var n=this.form[a.multiplyByAnswer.question]||0;return parseInt(e,10)*n}if(a.multiplyByValue&&t!==a.multiplyByValue){var s=this.getNumberValue(a.multiplyByValue.question,this.form[a.multiplyByValue.question]);return parseInt(e,10)*s}return 0},getFieldValue:function(t){return"radio"===t.element?this.getRadioValue(t.name,this.form[t.name]):"number"===t.element?this.getNumberValue(t.name,this.form[t.name]):0},calculateEmissions:function(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(var t=0;t<this.formData.fields.length;t++){var e=this.formData.fields[t];switch(e.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(e);break;case 2:this.accommodationKilos+=this.getFieldValue(e);break;case 4:this.foodKilos+=this.getFieldValue(e)}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields:function(){var t=this;Object.keys(this.conditionalFields).forEach((function(e){var a=t.formData.fields.find((function(t){return t.name===e})),i=!0;Object.keys(a.conditional).forEach((function(n){var s=a.conditional[n];Array.isArray(s)?-1===s.indexOf(t.form[n])&&(i=!1):t.form[n]!==s&&(i=!1),i?t.conditionalFields[e]=!0:(t.conditionalFields[e]=!1,t.manageErrorStatus(e,[]))}))}))},forwardPage:function(t){t&&t.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage:function(t){t&&t.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet:function(){if(this.activeStage>this.formData.stages)this.answerSet=!0;else{this.answerSet=!0;for(var t=0;t<this.formData.fields.length;t++)if(this.formData.fields[t].stage===this.activeStage){var e=this.formData.fields[t];"radio"!==e.element||this.form[e.name]?"number"!==e.element||this.form[e.name]||(this.form[e.name]=e.validation.min):this.answerSet=!1}}},isRepeatable:function(t){return!!(this.repeatableStages[t]&&this.repeatableStages[t].generations<3)},conditionalElementClass:function(t){return!0===this.conditionalFields[t]||void 0===this.conditionalFields[t]?"":"d-none"},resetFocus:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){try{t.$refs.questions[t.activeStage-1].$el.focus(),t.$refs.progress.$el.scrollIntoView()}catch(t){}}))}))},duplicateCurrentStage:function(t){t&&t.preventDefault();for(var e=this.repeatableStages[this.activeStage].generations+1,a=0;a<this.formData.fields.length;a++){var i=this.formData.fields[a];if(i.stage===this.activeStage&&!i.isClone){var n=JSON.parse(JSON.stringify(i));n.isClone=!0;var s="".concat(i.name).concat(e);n.name=s,n.originalNumber=a,this.form[s]="",this.formData.fields.push(n)}}this.repeatableStages[this.activeStage].generations=e}}}},80647:function(t,e,a){"use strict";a.d(e,{s:function(){return l}});var i=a(66252),n=a(3577),s=a(49963),r={class:"vs-carbon-calculator__wrapper"},o={key:1};function l(t,e,a,l,u,c){var f=(0,i.up)("VsCarbonCalculatorIntro"),m=(0,i.up)("VsProgressBar"),g=(0,i.up)("VsHeading"),d=(0,i.up)("VsCarbonCalculatorQuestion"),p=(0,i.up)("VsButton"),h=(0,i.up)("VsCarbonCalculatorTip"),b=(0,i.up)("VsCol"),v=(0,i.up)("VsCarbonCalculatorRunningTotal"),y=(0,i.up)("VsCarbonCalculatorResults"),S=(0,i.up)("VsRow"),k=(0,i.up)("VsContainer"),w=(0,i.up)("VsWarning");return(0,i.wg)(),(0,i.iD)("div",r,[(0,i.Wm)(k,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:(0,i.w5)((function(){return[t.formData&&t.formData.fields?((0,i.wg)(),(0,i.j4)(S,{key:0,class:"vs-carbon-calculator__survey"},{default:(0,i.w5)((function(){return[(0,i.Wm)(b,null,{default:(0,i.w5)((function(){return[t.activeStage?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(f,{key:0})),t.activeStage?((0,i.wg)(),(0,i.iD)("form",o,[(0,i._)("fieldset",null,[(0,i.Wm)(m,{max:t.formData.stages,currentStep:t.activeStage<=t.formData.stages?t.activeStage:t.formData.stages,isStepped:!0,isFull:t.activeStage>t.formData.stages,progressLabel:a.labelsMap.progress,ref:"progress"},null,8,["max","currentStep","isFull","progressLabel"]),(0,i.wy)((0,i._)("div",null,[c.currentCategory?((0,i.wg)(),(0,i.j4)(g,{key:0,level:"2",overrideStyleLevel:"3",class:"vs-carbon-calculator__category-heading"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(c.currentCategory),1)]})),_:1})):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.formData.fields,(function(e,a){return(0,i.wy)(((0,i.wg)(),(0,i.j4)(d,{ref_for:!0,ref:"questions",tabindex:"0",key:e.name,label:c.getQuestionLabel(e,a),"label-for":e.name,hint:c.getQuestionHint(e,a),fieldClass:c.conditionalElementClass(e.name),fieldType:e.element,fieldName:e.name,options:c.getQuestionOptions(e,a),minimum:"number"===e.element?e.validation.min:0,maximum:"number"===e.element?e.validation.max:0,onUpdateFieldData:c.updateFieldData},null,8,["label","label-for","hint","fieldClass","fieldType","fieldName","options","minimum","maximum","onUpdateFieldData"])),[[s.vShow,e.stage===t.activeStage]])})),128))],512),[[s.vShow,t.activeStage<=t.formData.fields.length]])])])):(0,i.kq)("",!0),c.isRepeatable(t.activeStage)?((0,i.wg)(),(0,i.j4)(p,{key:2,class:"my-4",variant:"secondary",icon:"plus",onClick:e[0]||(e[0]=function(t){return c.duplicateCurrentStage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(c.activeStageRepeatable),1)]})),_:1})):(0,i.kq)("",!0),c.currentTip?((0,i.wg)(),(0,i.j4)(h,{key:3,tip:c.currentTip},null,8,["tip"])):(0,i.kq)("",!0)]})),_:1}),(0,i.Wm)(b,{cols:"12"},{default:(0,i.w5)((function(){return[t.activeStage>0&&t.activeStage<=t.formData.stages?((0,i.wg)(),(0,i.j4)(v,{key:0,"total-kilos":t.totalKilos,language:a.language},null,8,["total-kilos","language"])):(0,i.kq)("",!0),t.activeStage>t.formData.stages?((0,i.wg)(),(0,i.j4)(y,{key:1,"total-kilos":t.totalKilos,"transport-kilos":t.transportKilos,"food-kilos":t.foodKilos,"accommodation-kilos":t.accommodationKilos,"stay-duration":c.stayDuration,comparisonReplacements:t.formData.comparisonReplacements,language:a.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparisonReplacements","language"])):(0,i.kq)("",!0)]})),_:1}),0===t.activeStage?((0,i.wg)(),(0,i.j4)(b,{key:0,class:"text-center",cols:"12"},{default:(0,i.w5)((function(){return[(0,i.Wm)(p,{variant:"primary",type:"submit",class:"vs-form__submit mt-9",onClick:e[1]||(e[1]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.begin),1)]})),_:1})]})),_:1})):(0,i.kq)("",!0),t.activeStage>0?((0,i.wg)(),(0,i.j4)(b,{key:1,cols:"12"},{default:(0,i.w5)((function(){return[t.activeStage>1?((0,i.wg)(),(0,i.j4)(p,{key:0,variant:t.activeStage<=t.formData.fields.length?"primary":"secondary",type:"submit",class:"vs-form__submit mt-9 float-left",ref:"backPage",onClick:e[2]||(e[2]=function(t){return c.backwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.previous),1)]})),_:1},8,["variant"])):(0,i.kq)("",!0),t.activeStage<t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-right",ref:"forwardPage",disabled:t.activeStage>0&&!t.answerSet,onClick:e[3]||(e[3]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.next),1)]})),_:1},8,["disabled"])):(0,i.kq)("",!0),t.activeStage===t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-right",disabled:!t.answerSet,onClick:e[4]||(e[4]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.results),1)]})),_:1},8,["disabled"])):(0,i.kq)("",!0),t.activeStage>t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-right",onClick:e[5]||(e[5]=function(t){return c.restart()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.restart),1)]})),_:1})):(0,i.kq)("",!0)]})),_:1})):(0,i.kq)("",!0)]})),_:1})):(0,i.kq)("",!0)]})),_:1}),(0,i.Wm)(w,{theme:"light"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.noJsMessage),1)]})),_:1})])}},80594:function(t,e,a){"use strict";var i=a(93379),n=a.n(i),s=a(7795),r=a.n(s),o=a(90569),l=a.n(o),u=a(3565),c=a.n(u),f=a(19216),m=a.n(f),g=a(44589),d=a.n(g),p=a(95859),h=a.n(p),b={};b.styleTagTransform=d(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=m(),n()(h(),b),h()&&h().locals&&h().locals},87899:function(t,e,a){"use strict";a.r(e);var i=a(23545),n=a(74235);a(37409);const s=(0,a(83744).Z)(n.Z,[["render",i.s]]);e.default=s},74235:function(t,e,a){"use strict";a.d(e,{Z:function(){return i.Z}});var i=a(2333)},23545:function(t,e,a){"use strict";a.d(e,{s:function(){return i.s}});var i=a(80647)},37409:function(t,e,a){"use strict";a(80594)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,3324,8362,5274,2093,5252,5730,976,419,1436,4159,9187,1843,6157,6036,3843,7091,158,1377,8923,1155,3713,812,588],(function(){return 87899,t(t.s=87899)})),t.O()}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsCarbonCalculator=e():t.VsCarbonCalculator=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3612],{47130:function(){},2333:function(t,e,a){"use strict";var i=a(5274),n=a(51843),s=a(26036),r=a(70419),o=a(38923),l=a(46157),u=a(60976),c=a(33713),f=a(21377),m=a(80812),g=a(10588),d=a(31155);e.Z={name:"VsCarbonCalculator",status:"prototype",release:"0.0.1",components:{VsButton:r.default,VsContainer:n.xB,VsCol:n.hY,VsRow:n.ou,VsWarning:s.default,VsProgressBar:o.default,VsHeading:l.default,VsCarbonCalculatorResults:f.default,VsCarbonCalculatorTip:c.default,VsCarbonCalculatorRunningTotal:m.default,VsCarbonCalculatorIntro:g.default,VsCarbonCalculatorQuestion:d.default},mixins:[u.default],provide:function(){return{labelsMap:this.labelsMap}},props:{labelsMap:{type:Object,required:!0},language:{type:String,default:"en-gb"}},data:function(){return this.initialState()},computed:{currentQuestion:function(){return this.formData&&this.activeStage?this.formData.fields[this.activeStage-1]:null},currentTip:function(){return this.activeStage&&this.labelsMap["stage-".concat(this.activeStage,".tip")]?this.labelsMap["stage-".concat(this.activeStage,".tip")]:""},stayDuration:function(){return this.form.howLongStay?parseInt(this.form.howLongStay,10):0},currentCategory:function(){return this.labelsMap["stage-".concat(this.activeStage,".title")]?this.labelsMap["stage-".concat(this.activeStage,".title")]:""},activeStageRepeatable:function(){return this.labelsMap["stage-".concat(this.activeStage,".repeat")]?this.labelsMap["stage-".concat(this.activeStage,".repeat")]:""}},mounted:function(){this.getFormData()},methods:{initialState:function(){return{formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,conditionalFields:{},reAlertErrors:!1,totalKilos:0,transportKilos:0,accommodationKilos:0,foodKilos:0,transportTip:null,foodTip:null,accommodationTip:null,transportInternalTip:null,activeStage:0,answerSet:!1,repeatableStages:{}}},restart:function(){var t=this.formData,e=this.repeatableStages;Object.assign(this.$data,this.initialState()),this.$data.formData=t,this.$data.repeatableStages=e,this.cleanFields()},cleanFields:function(){for(var t=this.formData.fields.length-1;t>=0;t--)this.formData.fields[t].isClone&&this.formData.fields.splice(t,1);for(var e=0;e<Object.keys(this.repeatableStages).length;e++)this.repeatableStages[Object.keys(this.repeatableStages)[e]].generations=0},getFormData:function(){var t=this;i.Z.get(this.labelsMap.formUrl).then((function(e){if(t.formData=e.data,e.data.fields.forEach((function(e){t.form[e.name]="",e.conditional&&(t.conditionalFields[e.name]=!1)})),t.repeatableStages={},e.data.repeatableStages)for(var a=0;a<e.data.repeatableStages.length;a++)t.repeatableStages[e.data.repeatableStages[a]]={generations:0}}))},getMessagingData:function(t,e){return Object.keys(this.messagingData).length>0?this.messagingData[e][t]:"validation"===t?{}:""},getQuestionLabel:function(t,e){if(t.isClone){if(this.labelsMap["question-".concat(t.originalNumber+1,".clone-question")])return this.labelsMap["question-".concat(t.originalNumber+1,".clone-question")];if(this.labelsMap["question-".concat(t.originalNumber+1,".question")])return this.labelsMap["question-".concat(t.originalNumber+1,".question")]}return this.labelsMap["question-".concat(e+1,".question")]?this.labelsMap["question-".concat(e+1,".question")]:""},getQuestionHint:function(t,e){if(t.isClone){if(this.labelsMap["question-".concat(t.originalNumber+1,".clone-hint")])return this.labelsMap["question-".concat(t.originalNumber+1,".clone-hint")];if(this.labelsMap["question-".concat(t.originalNumber+1,".hint")])return this.labelsMap["question-".concat(t.originalNumber+1,".hint")]}return this.labelsMap["question-".concat(e+1,".hint")]?this.labelsMap["question-".concat(e+1,".hint")]:""},getQuestionOptions:function(t,e){var a;if(a=t.isClone?t.originalNumber:e,"radio"===t.element){for(var i=t.options,n=0;n<i.length;n++)i[n].text=this.labelsMap["question-".concat(a+1,".option-").concat(n+1)];return i}return[]},updateFieldData:function(t){this.form[t.field]=t.value||"",t.value?this.answerSet=!0:this.answerSet=!1,this.manageErrorStatus(t.field,t.errors),this.checkConditionalFields(),this.calculateEmissions()},manageErrorStatus:function(t,e){var a=this.errorFields.indexOf(t);-1!==a?(!e||e.length<1)&&this.errorFields.splice(a,1):e&&e.length>0&&this.errorFields.push(t)},getRadioValue:function(t,e){if(!e)return 0;for(var a,i=0;i<this.formData.fields.length;i++)this.formData.fields[i].name===t&&(a=this.formData.fields[i]);var n=a.values[e];if(a.multiplyByNumber)return n*a.multiplyByNumber;if(a.multiplyByAnswer){var s=this.form[a.multiplyByAnswer.question]||0;return n*Math.max(s,a.multiplyByAnswer.minimum)}if(a.multiplyByValue&&t!==a.multiplyByValue){var r=this.getNumberValue(a.multiplyByValue.question,this.form[a.multiplyByValue.question])||0;return n*Math.max(r,a.multiplyByValue.minimum)}return n},getNumberValue:function(t,e){if(!e)return 0;for(var a,i=0;i<this.formData.fields.length;i++)this.formData.fields[i].name===t&&(a=this.formData.fields[i]);if(a.multiplyByNumber)return parseInt(e,10)*a.multiplyByNumber;if(a.multiplyByAnswer){var n=this.form[a.multiplyByAnswer.question]||0;return parseInt(e,10)*n}if(a.multiplyByValue&&t!==a.multiplyByValue){var s=this.getNumberValue(a.multiplyByValue.question,this.form[a.multiplyByValue.question]);return parseInt(e,10)*s}return 0},getFieldValue:function(t){return"radio"===t.element?this.getRadioValue(t.name,this.form[t.name]):"number"===t.element?this.getNumberValue(t.name,this.form[t.name]):0},calculateEmissions:function(){this.transportKilos=0,this.accommodationKilos=0,this.foodKilos=0;for(var t=0;t<this.formData.fields.length;t++){var e=this.formData.fields[t];switch(e.stage){case 1:case 3:this.transportKilos+=this.getFieldValue(e);break;case 2:this.accommodationKilos+=this.getFieldValue(e);break;case 4:this.foodKilos+=this.getFieldValue(e)}}this.totalKilos=this.transportKilos+this.accommodationKilos+this.foodKilos},checkConditionalFields:function(){var t=this;Object.keys(this.conditionalFields).forEach((function(e){var a=t.formData.fields.find((function(t){return t.name===e})),i=!0;Object.keys(a.conditional).forEach((function(n){var s=a.conditional[n];Array.isArray(s)?-1===s.indexOf(t.form[n])&&(i=!1):t.form[n]!==s&&(i=!1),i?t.conditionalFields[e]=!0:(t.conditionalFields[e]=!1,t.manageErrorStatus(e,[]))}))}))},forwardPage:function(t){t&&t.preventDefault(),this.activeStage&&this.createDataLayerObject("carbonQuestionEvent",{questionNumber:this.activeStage,answer:this.form[this.currentQuestion.name]}),this.activeStage+=1,this.checkNewAnswerSet(),this.resetFocus()},backwardPage:function(t){t&&t.preventDefault(),this.activeStage-=1,this.checkNewAnswerSet(),this.resetFocus()},checkNewAnswerSet:function(){if(this.activeStage>this.formData.stages)this.answerSet=!0;else{this.answerSet=!0;for(var t=0;t<this.formData.fields.length;t++)if(this.formData.fields[t].stage===this.activeStage){var e=this.formData.fields[t];"radio"!==e.element||this.form[e.name]?"number"!==e.element||this.form[e.name]||(this.form[e.name]=e.validation.min):this.answerSet=!1}}},isRepeatable:function(t){return!!(this.repeatableStages[t]&&this.repeatableStages[t].generations<3)},conditionalElementClass:function(t){return!0===this.conditionalFields[t]||void 0===this.conditionalFields[t]?"":"d-none"},resetFocus:function(){var t=this;this.$nextTick((function(){t.$nextTick((function(){try{t.$refs.questions[t.activeStage-1].$el.focus(),t.$refs.progress.$el.scrollIntoView()}catch(t){}}))}))},duplicateCurrentStage:function(t){t&&t.preventDefault();for(var e=this.repeatableStages[this.activeStage].generations+1,a=0;a<this.formData.fields.length;a++){var i=this.formData.fields[a];if(i.stage===this.activeStage&&!i.isClone){var n=JSON.parse(JSON.stringify(i));n.isClone=!0;var s="".concat(i.name).concat(e);n.name=s,n.originalNumber=a,this.form[s]="",this.formData.fields.push(n)}}this.repeatableStages[this.activeStage].generations=e}}}},4121:function(t,e,a){"use strict";a.d(e,{s:function(){return l}});var i=a(66252),n=a(3577),s=a(49963),r={class:"vs-carbon-calculator__wrapper"},o={key:1};function l(t,e,a,l,u,c){var f=(0,i.up)("VsCarbonCalculatorIntro"),m=(0,i.up)("VsProgressBar"),g=(0,i.up)("VsHeading"),d=(0,i.up)("VsCarbonCalculatorQuestion"),p=(0,i.up)("VsButton"),h=(0,i.up)("VsCarbonCalculatorTip"),b=(0,i.up)("VsCol"),v=(0,i.up)("VsCarbonCalculatorRunningTotal"),y=(0,i.up)("VsCarbonCalculatorResults"),S=(0,i.up)("VsRow"),k=(0,i.up)("VsContainer"),w=(0,i.up)("VsWarning");return(0,i.wg)(),(0,i.iD)("div",r,[(0,i.Wm)(k,{class:"vs-carbon-calculator","data-test":"vs-carbon-calculator"},{default:(0,i.w5)((function(){return[t.formData&&t.formData.fields?((0,i.wg)(),(0,i.j4)(S,{key:0,class:"vs-carbon-calculator__survey"},{default:(0,i.w5)((function(){return[(0,i.Wm)(b,null,{default:(0,i.w5)((function(){return[t.activeStage?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(f,{key:0})),t.activeStage?((0,i.wg)(),(0,i.iD)("form",o,[(0,i._)("fieldset",null,[(0,i.Wm)(m,{max:t.formData.stages,currentStep:t.activeStage<=t.formData.stages?t.activeStage:t.formData.stages,isStepped:!0,isFull:t.activeStage>t.formData.stages,progressLabel:a.labelsMap.progress,ref:"progress"},null,8,["max","currentStep","isFull","progressLabel"]),(0,i.wy)((0,i._)("div",null,[c.currentCategory?((0,i.wg)(),(0,i.j4)(g,{key:0,level:"2",overrideStyleLevel:"3",class:"vs-carbon-calculator__category-heading"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(c.currentCategory),1)]})),_:1})):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.formData.fields,(function(e,a){return(0,i.wy)(((0,i.wg)(),(0,i.j4)(d,{ref_for:!0,ref:"questions",tabindex:"0",key:e.name,label:c.getQuestionLabel(e,a),"label-for":e.name,hint:c.getQuestionHint(e,a),fieldClass:c.conditionalElementClass(e.name),fieldType:e.element,fieldName:e.name,options:c.getQuestionOptions(e,a),minimum:"number"===e.element?e.validation.min:0,maximum:"number"===e.element?e.validation.max:0,onUpdateFieldData:c.updateFieldData},null,8,["label","label-for","hint","fieldClass","fieldType","fieldName","options","minimum","maximum","onUpdateFieldData"])),[[s.vShow,e.stage===t.activeStage]])})),128))],512),[[s.vShow,t.activeStage<=t.formData.fields.length]])])])):(0,i.kq)("",!0),c.isRepeatable(t.activeStage)?((0,i.wg)(),(0,i.j4)(p,{key:2,class:"my-4",variant:"secondary",icon:"plus",onClick:e[0]||(e[0]=function(t){return c.duplicateCurrentStage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(c.activeStageRepeatable),1)]})),_:1})):(0,i.kq)("",!0),c.currentTip?((0,i.wg)(),(0,i.j4)(h,{key:3,tip:c.currentTip},null,8,["tip"])):(0,i.kq)("",!0)]})),_:1}),(0,i.Wm)(b,{cols:"12"},{default:(0,i.w5)((function(){return[t.activeStage>0&&t.activeStage<=t.formData.stages?((0,i.wg)(),(0,i.j4)(v,{key:0,"total-kilos":t.totalKilos,language:a.language},null,8,["total-kilos","language"])):(0,i.kq)("",!0),t.activeStage>t.formData.stages?((0,i.wg)(),(0,i.j4)(y,{key:1,"total-kilos":t.totalKilos,"transport-kilos":t.transportKilos,"food-kilos":t.foodKilos,"accommodation-kilos":t.accommodationKilos,"stay-duration":c.stayDuration,comparisonReplacements:t.formData.comparisonReplacements,language:a.language},null,8,["total-kilos","transport-kilos","food-kilos","accommodation-kilos","stay-duration","comparisonReplacements","language"])):(0,i.kq)("",!0)]})),_:1}),0===t.activeStage?((0,i.wg)(),(0,i.j4)(b,{key:0,class:"text-center",cols:"12"},{default:(0,i.w5)((function(){return[(0,i.Wm)(p,{variant:"primary",type:"submit",class:"vs-form__submit mt-9",onClick:e[1]||(e[1]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.begin),1)]})),_:1})]})),_:1})):(0,i.kq)("",!0),t.activeStage>0?((0,i.wg)(),(0,i.j4)(b,{key:1,cols:"12"},{default:(0,i.w5)((function(){return[t.activeStage>1?((0,i.wg)(),(0,i.j4)(p,{key:0,variant:t.activeStage<=t.formData.fields.length?"primary":"secondary",type:"submit",class:"vs-form__submit mt-9 float-start",ref:"backPage",onClick:e[2]||(e[2]=function(t){return c.backwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.previous),1)]})),_:1},8,["variant"])):(0,i.kq)("",!0),t.activeStage<t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:1,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",ref:"forwardPage",disabled:t.activeStage>0&&!t.answerSet,onClick:e[3]||(e[3]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.next),1)]})),_:1},8,["disabled"])):(0,i.kq)("",!0),t.activeStage===t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:2,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",disabled:!t.answerSet,onClick:e[4]||(e[4]=function(t){return c.forwardPage()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.results),1)]})),_:1},8,["disabled"])):(0,i.kq)("",!0),t.activeStage>t.formData.stages?((0,i.wg)(),(0,i.j4)(p,{key:3,variant:"primary",type:"submit",class:"vs-form__submit mt-9 float-end",onClick:e[5]||(e[5]=function(t){return c.restart()})},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.restart),1)]})),_:1})):(0,i.kq)("",!0)]})),_:1})):(0,i.kq)("",!0)]})),_:1})):(0,i.kq)("",!0)]})),_:1}),(0,i.Wm)(w,{theme:"light"},{default:(0,i.w5)((function(){return[(0,i.Uk)((0,n.toDisplayString)(a.labelsMap.noJsMessage),1)]})),_:1})])}},43666:function(t,e,a){"use strict";var i=a(93379),n=a.n(i),s=a(7795),r=a.n(s),o=a(90569),l=a.n(o),u=a(3565),c=a.n(u),f=a(19216),m=a.n(f),g=a(44589),d=a.n(g),p=a(47130),h=a.n(p),b={};b.styleTagTransform=d(),b.setAttributes=c(),b.insert=l().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=m(),n()(h(),b),h()&&h().locals&&h().locals},87899:function(t,e,a){"use strict";a.r(e);var i=a(95055),n=a(74235);a(48744);const s=(0,a(83744).Z)(n.Z,[["render",i.s]]);e.default=s},74235:function(t,e,a){"use strict";a.d(e,{Z:function(){return i.Z}});var i=a(2333)},95055:function(t,e,a){"use strict";a.d(e,{s:function(){return i.s}});var i=a(4121)},48744:function(t,e,a){"use strict";a(43666)}},function(t){return t.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,3324,8362,5274,2093,5252,5730,976,419,1436,6157,4159,9187,1843,6036,3843,7091,158,1377,8923,1155,3713,812,588],(function(){return 87899,t(t.s=87899)})),t.O()}])}));
@@ -1 +1 @@
1
- "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorResults=t():e.VsCarbonCalculatorResults=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9069],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,2093,5252,5730,976,1436,4159,9187,1843,6157,1377],(function(){return 21377,e(e.s=21377)})),e.O()}])}));
1
+ "use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsCarbonCalculatorResults=t():e.VsCarbonCalculatorResults=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9069],{},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,2093,5252,5730,976,1436,6157,4159,9187,1843,1377],(function(){return 21377,e(e.s=21377)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearch=n():e.VsCannedSearch=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4758],{32911:function(){},3830:function(e,n,t){"use strict";var r=t(26540),a=t(92267),o=t(82082),i=t(47223),s=t(24147),c=t(15709),u=t(98510),d=t(79835),l=t(93022),p=t(95411),f=t(26116),g=t(98882),h=t(53363),m=t(14173),v=t(8293),y=t(51843),w=t(5274);n.Z={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard:r.default,VsCannedSearchStars:a.default,VsCannedSearchLogos:o.default,VsCannedSearchCategories:i.default,VsCannedSearchPrice:s.default,VsCannedSearchDuration:c.default,VsCannedSearchSummaryBox:u.default,VsCannedSearchDates:d.default,VsCannedSearchBadges:l.default,VsCannedSearchCuisines:p.default,VsCannedSearchSubHeading:f.default,VsCannedSearchTourRuns:g.default,VsCannedSearchTourDeparts:h.default,VsCarousel:m.default,VsContainer:y.xB,VsRow:y.ou,VsCol:y.hY,VsModuleWrapper:v.default},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data:function(){return{products:[]}},computed:{showLogos:function(){for(var e=0;e<this.products.length;e++){var n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted:function(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts:function(){var e=this;w.Z.get(this.apiUrl).then((function(n){e.products=n.data.data.products})).catch((function(){e.products=[]}))},fetchSubHeading:function(e){return"tour"===this.searchType?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings:function(e){return e.category&&e.category.length?e.category.map((function(e){return e.name})).join(", "):""},fetchAddress:function(e){return e.onlineEvent?e.onlineEvent:e.address?"even"===this.searchType?"".concat(e.eventVenue,", ").concat(e.address.city):"".concat(e.address.city,", ").concat(e.address.county):""},fetchBadgeOne:function(e){return"tour"!==this.searchType&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne:function(e){return"tour"===this.searchType&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map((function(e){return e.name})):null},fetchBadgeThree:function(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}}},52412:function(e,n,t){"use strict";t.d(n,{s:function(){return s}});var r=t(66252),a=t(3577),o=t(49963),i={class:"vs-canned-search","data-test":"vs-canned-search"};function s(e,n,t,s,c,u){var d=(0,r.up)("VsCol"),l=(0,r.up)("VsRow"),p=(0,r.up)("VsContainer"),f=(0,r.up)("VsCannedSearchTourRuns"),g=(0,r.up)("VsCannedSearchTourDeparts"),h=(0,r.up)("VsCannedSearchSubHeading"),m=(0,r.up)("VsCannedSearchStars"),v=(0,r.up)("VsCannedSearchCategories"),y=(0,r.up)("VsCannedSearchLogos"),w=(0,r.up)("VsCannedSearchBadges"),S=(0,r.up)("VsCannedSearchDates"),b=(0,r.up)("VsCannedSearchDuration"),C=(0,r.up)("VsCannedSearchPrice"),V=(0,r.up)("VsCannedSearchCuisines"),k=(0,r.up)("VsCannedSearchSummaryBox"),T=(0,r.up)("VsCannedSearchProductCard"),x=(0,r.up)("VsCarousel"),_=(0,r.up)("VsModuleWrapper");return(0,r.wy)(((0,r.wg)(),(0,r.j4)(_,null,(0,r.Nv)({default:(0,r.w5)((function(){return[(0,r._)("div",i,[(0,r.Wm)(p,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(l,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(d,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-canned-search__buttons"},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-buttons")]})),_:3})]})),_:3})]})),_:3}),c.products.length?((0,r.wg)(),(0,r.j4)(x,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-of")]})),default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(c.products,(function(e,n){return(0,r.wg)(),(0,r.j4)(T,{key:n,"slide-index":""+n,"img-src":e.images?e.images[0].mediaUrl:"",title:e.name,"detail-link":{link:e.productLink.link,label:e.productLink.label,type:e.productLink.type.toLowerCase()},description:e.description,"search-type":t.searchType},(0,r.Nv)({"vs-canned-search-sub-heading":(0,r.w5)((function(){return[(0,r.Wm)(h,{"sub-heading":u.fetchSubHeading(e),"line-limit":"tour"===t.searchType?1:2},null,8,["sub-heading","line-limit"])]})),"vs-canned-search-badges":(0,r.w5)((function(){return[(0,r.Wm)(w,{"badge-one":u.fetchBadgeOne(e),"multi-badge-one":u.fetchMultiBadgeOne(e),"badge-two":e.offers,"badge-three":u.fetchBadgeThree(e)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]})),"vs-canned-search-summary":(0,r.w5)((function(){return[(0,r.Wm)(k,{"link-href":e.website.link,"link-type":e.website.type,"link-label":e.website.label,"link-title":e.name},(0,r.Nv)({"vs-canned-search-summary-left":(0,r.w5)((function(){return["tour"===t.searchType&&e.tourLength?((0,r.wg)(),(0,r.j4)(b,{key:0,"duration-intro":e.tourLength.label,duration:e.tourLength.value},null,8,["duration-intro","duration"])):e.price&&"tour"!==t.searchType?((0,r.wg)(),(0,r.j4)(C,{key:1,"price-intro":e.price.priceLabel,price:e.price.price,"price-outro":e.price.priceBasis},null,8,["price-intro","price","price-outro"])):e.cuisines?((0,r.wg)(),(0,r.j4)(V,{key:2,cuisines:e.cuisines},null,8,["cuisines"])):(0,r.kq)("",!0)]})),_:2},[e.opening&&"tour"!==t.searchType?{name:"vs-canned-search-summary-top",fn:(0,r.w5)((function(){return[(0,r.Wm)(S,{period:e.opening.period,label:e.opening.period.label},null,8,["period","label"])]})),key:"0"}:void 0,e.price&&"tour"===t.searchType?{name:"vs-canned-search-summary-centre",fn:(0,r.w5)((function(){return[(0,r.Wm)(C,{"price-intro":e.price.priceLabel,price:e.price.price,"price-outro":e.price.priceBasis},null,8,["price-intro","price","price-outro"])]})),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]})),_:2},["tour"===t.searchType?{name:"vs-canned-search-tour-info",fn:(0,r.w5)((function(){return[(0,r._)("div",null,[e.opening&&e.opening.period&&e.opening.period.startDay?((0,r.wg)(),(0,r.j4)(f,{key:0,label:e.opening.period.label,"start-day":e.opening.period.startDay,"end-day":e.opening.period.endDay},null,8,["label","start-day","end-day"])):(0,r.kq)("",!0),e.tourOrigin&&e.tourOrigin.tourOrigin?((0,r.wg)(),(0,r.j4)(g,{key:1,label:e.tourOrigin.label,origins:e.tourOrigin.tourOrigin},null,8,["label","origins"])):(0,r.kq)("",!0)])]})),key:"0"}:void 0,e.grading?{name:"vs-canned-search-star-rating",fn:(0,r.w5)((function(){return[(0,r.Wm)(m,{min:e.grading.minStars,max:e.grading.maxStars,gold:e.grading.gold},null,8,["min","max","gold"])]})),key:"1"}:void 0,e.locations?{name:"vs-canned-search-categories",fn:(0,r.w5)((function(){return[(0,r.Wm)(v,{categories:e.locations},null,8,["categories"])]})),key:"2"}:void 0,u.showLogos?{name:"vs-canned-search-logos",fn:(0,r.w5)((function(){return[(0,r.Wm)(y,{"good-to-go-logo":e.covidInformation&&e.covidInformation.goodToGo?e.covidInformation.goodToGo:null,"safe-travels-logo":e.covidInformation&&e.covidInformation.safeTravels?e.covidInformation.safeTravels:null,"access-guide":e.accessGuide||null,awards:e.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]})),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"])})),128))]})),_:3},8,["next-text","prev-text"])):(0,r.kq)("",!0),e.$slots["vs-canned-search-credit"]?((0,r.wg)(),(0,r.j4)(p,{key:1,class:"vs-canned-search__credit-container"},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-credit")]})),_:3})):(0,r.kq)("",!0)])]})),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:(0,r.w5)((function(){return[(0,r.Uk)((0,a.toDisplayString)(t.heading),1)]})),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-intro")]})),key:"1"}:void 0]),1536)),[[o.vShow,c.products.length]])}},60254:function(e,n,t){"use strict";var r=t(93379),a=t.n(r),o=t(7795),i=t.n(o),s=t(90569),c=t.n(s),u=t(3565),d=t.n(u),l=t(19216),p=t.n(l),f=t(44589),g=t.n(f),h=t(32911),m=t.n(h),v={};v.styleTagTransform=g(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=p(),a()(m(),v),m()&&m().locals&&m().locals},19387:function(e,n,t){"use strict";t.r(n);var r=t(79491),a=t(61555);t(90067);const o=(0,t(83744).Z)(a.Z,[["render",r.s]]);n.default=o},61555:function(e,n,t){"use strict";t.d(n,{Z:function(){return r.Z}});var r=t(3830)},79491:function(e,n,t){"use strict";t.d(n,{s:function(){return r.s}});var r=t(52412)},90067:function(e,n,t){"use strict";t(60254)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5274,5252,5730,976,419,1436,4159,9187,1843,6157,9118,1630,7133,4165,8293,5570,9464,4173,6540,8510,2082,3022,2267,6116,3363,4147,9835,8882,7223,5709,5411],(function(){return 19387,e(e.s=19387)})),e.O()}])}));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsCannedSearch=n():e.VsCannedSearch=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4758],{85351:function(){},3830:function(e,n,t){"use strict";var r=t(26540),a=t(92267),o=t(82082),i=t(47223),s=t(24147),c=t(15709),u=t(98510),d=t(79835),l=t(93022),p=t(95411),f=t(26116),g=t(98882),h=t(53363),m=t(14173),v=t(8293),y=t(51843),w=t(5274);n.Z={name:"VsCannedSearch",status:"prototype",release:"0.0.1",components:{VsCannedSearchProductCard:r.default,VsCannedSearchStars:a.default,VsCannedSearchLogos:o.default,VsCannedSearchCategories:i.default,VsCannedSearchPrice:s.default,VsCannedSearchDuration:c.default,VsCannedSearchSummaryBox:u.default,VsCannedSearchDates:d.default,VsCannedSearchBadges:l.default,VsCannedSearchCuisines:p.default,VsCannedSearchSubHeading:f.default,VsCannedSearchTourRuns:g.default,VsCannedSearchTourDeparts:h.default,VsCarousel:m.default,VsContainer:y.xB,VsRow:y.ou,VsCol:y.hY,VsModuleWrapper:v.default},props:{apiUrl:{type:String,default:""},searchType:{type:String,default:""},heading:{type:String,default:""},carouselNextText:{type:String,default:"Next slide"},carouselPreviousText:{type:String,default:"Previous slide"}},data:function(){return{products:[]}},computed:{showLogos:function(){for(var e=0;e<this.products.length;e++){var n=this.products[e];if(n.awards&&n.awards.length||n.accessGuide||n.covidInformation&&n.covidInformation.goodToGo||n.covidInformation&&n.covidInformation.safeTravels)return!0}return!1}},mounted:function(){this.apiUrl&&this.retrieveProducts()},methods:{retrieveProducts:function(){var e=this;w.Z.get(this.apiUrl).then((function(n){e.products=n.data.data.products})).catch((function(){e.products=[]}))},fetchSubHeading:function(e){return"tour"===this.searchType?this.fetchCategoryStrings(e):this.fetchAddress(e)},fetchCategoryStrings:function(e){return e.category&&e.category.length?e.category.map((function(e){return e.name})).join(", "):""},fetchAddress:function(e){return e.onlineEvent?e.onlineEvent:e.address?"even"===this.searchType?"".concat(e.eventVenue,", ").concat(e.address.city):"".concat(e.address.city,", ").concat(e.address.county):""},fetchBadgeOne:function(e){return"tour"!==this.searchType&&e.category&&e.category.length&&e.category[0]?e.category[0].name:null},fetchMultiBadgeOne:function(e){return"tour"===this.searchType&&e.tourVehicles&&e.tourVehicles.length?e.tourVehicles.map((function(e){return e.name})):null},fetchBadgeThree:function(e){return e.covidInformation&&e.covidInformation.weAreOpen?e.covidInformation.weAreOpen:e.opening&&e.opening.nowOn?e.opening.nowOn:""}}}},62895:function(e,n,t){"use strict";t.d(n,{s:function(){return s}});var r=t(66252),a=t(3577),o=t(49963),i={class:"vs-canned-search","data-test":"vs-canned-search"};function s(e,n,t,s,c,u){var d=(0,r.up)("VsCol"),l=(0,r.up)("VsRow"),p=(0,r.up)("VsContainer"),f=(0,r.up)("VsCannedSearchTourRuns"),g=(0,r.up)("VsCannedSearchTourDeparts"),h=(0,r.up)("VsCannedSearchSubHeading"),m=(0,r.up)("VsCannedSearchStars"),v=(0,r.up)("VsCannedSearchCategories"),y=(0,r.up)("VsCannedSearchLogos"),w=(0,r.up)("VsCannedSearchBadges"),S=(0,r.up)("VsCannedSearchDates"),b=(0,r.up)("VsCannedSearchDuration"),C=(0,r.up)("VsCannedSearchPrice"),V=(0,r.up)("VsCannedSearchCuisines"),k=(0,r.up)("VsCannedSearchSummaryBox"),T=(0,r.up)("VsCannedSearchProductCard"),x=(0,r.up)("VsCarousel"),_=(0,r.up)("VsModuleWrapper");return(0,r.wy)(((0,r.wg)(),(0,r.j4)(_,null,(0,r.Nv)({default:(0,r.w5)((function(){return[(0,r._)("div",i,[(0,r.Wm)(p,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(l,null,{default:(0,r.w5)((function(){return[(0,r.Wm)(d,{cols:"10",offset:"1",md:"8","offset-md":"2",lg:"6","offset-lg":"3",class:"vs-canned-search__buttons"},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-buttons")]})),_:3})]})),_:3})]})),_:3}),c.products.length?((0,r.wg)(),(0,r.j4)(x,{key:0,"next-text":t.carouselNextText,"prev-text":t.carouselPreviousText,"slides-xs":1,"slides-md":2,"slides-lg":3},{"vs-carousel-of":(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-of")]})),default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(c.products,(function(e,n){return(0,r.wg)(),(0,r.j4)(T,{key:n,"slide-index":""+n,"img-src":e.images?e.images[0].mediaUrl:"",title:e.name,"detail-link":{link:e.productLink.link,label:e.productLink.label,type:e.productLink.type.toLowerCase()},description:e.description,"search-type":t.searchType},(0,r.Nv)({"vs-canned-search-sub-heading":(0,r.w5)((function(){return[(0,r.Wm)(h,{"sub-heading":u.fetchSubHeading(e),"line-limit":"tour"===t.searchType?1:2},null,8,["sub-heading","line-limit"])]})),"vs-canned-search-badges":(0,r.w5)((function(){return[(0,r.Wm)(w,{"badge-one":u.fetchBadgeOne(e),"multi-badge-one":u.fetchMultiBadgeOne(e),"badge-two":e.offers,"badge-three":u.fetchBadgeThree(e)},null,8,["badge-one","multi-badge-one","badge-two","badge-three"])]})),"vs-canned-search-summary":(0,r.w5)((function(){return[(0,r.Wm)(k,{"link-href":e.website.link,"link-type":e.website.type,"link-label":e.website.label,"link-title":e.name},(0,r.Nv)({"vs-canned-search-summary-left":(0,r.w5)((function(){return["tour"===t.searchType&&e.tourLength?((0,r.wg)(),(0,r.j4)(b,{key:0,"duration-intro":e.tourLength.label,duration:e.tourLength.value},null,8,["duration-intro","duration"])):e.price&&"tour"!==t.searchType?((0,r.wg)(),(0,r.j4)(C,{key:1,"price-intro":e.price.priceLabel,price:e.price.price,"price-outro":e.price.priceBasis},null,8,["price-intro","price","price-outro"])):e.cuisines?((0,r.wg)(),(0,r.j4)(V,{key:2,cuisines:e.cuisines},null,8,["cuisines"])):(0,r.kq)("",!0)]})),_:2},[e.opening&&"tour"!==t.searchType?{name:"vs-canned-search-summary-top",fn:(0,r.w5)((function(){return[(0,r.Wm)(S,{period:e.opening.period,label:e.opening.period.label},null,8,["period","label"])]})),key:"0"}:void 0,e.price&&"tour"===t.searchType?{name:"vs-canned-search-summary-centre",fn:(0,r.w5)((function(){return[(0,r.Wm)(C,{"price-intro":e.price.priceLabel,price:e.price.price,"price-outro":e.price.priceBasis},null,8,["price-intro","price","price-outro"])]})),key:"1"}:void 0]),1032,["link-href","link-type","link-label","link-title"])]})),_:2},["tour"===t.searchType?{name:"vs-canned-search-tour-info",fn:(0,r.w5)((function(){return[(0,r._)("div",null,[e.opening&&e.opening.period&&e.opening.period.startDay?((0,r.wg)(),(0,r.j4)(f,{key:0,label:e.opening.period.label,"start-day":e.opening.period.startDay,"end-day":e.opening.period.endDay},null,8,["label","start-day","end-day"])):(0,r.kq)("",!0),e.tourOrigin&&e.tourOrigin.tourOrigin?((0,r.wg)(),(0,r.j4)(g,{key:1,label:e.tourOrigin.label,origins:e.tourOrigin.tourOrigin},null,8,["label","origins"])):(0,r.kq)("",!0)])]})),key:"0"}:void 0,e.grading?{name:"vs-canned-search-star-rating",fn:(0,r.w5)((function(){return[(0,r.Wm)(m,{min:e.grading.minStars,max:e.grading.maxStars,gold:e.grading.gold},null,8,["min","max","gold"])]})),key:"1"}:void 0,e.locations?{name:"vs-canned-search-categories",fn:(0,r.w5)((function(){return[(0,r.Wm)(v,{categories:e.locations},null,8,["categories"])]})),key:"2"}:void 0,u.showLogos?{name:"vs-canned-search-logos",fn:(0,r.w5)((function(){return[(0,r.Wm)(y,{"good-to-go-logo":e.covidInformation&&e.covidInformation.goodToGo?e.covidInformation.goodToGo:null,"safe-travels-logo":e.covidInformation&&e.covidInformation.safeTravels?e.covidInformation.safeTravels:null,"access-guide":e.accessGuide||null,awards:e.awards},null,8,["good-to-go-logo","safe-travels-logo","access-guide","awards"])]})),key:"3"}:void 0]),1032,["slide-index","img-src","title","detail-link","description","search-type"])})),128))]})),_:3},8,["next-text","prev-text"])):(0,r.kq)("",!0),e.$slots["vs-canned-search-credit"]?((0,r.wg)(),(0,r.j4)(p,{key:1,class:"vs-canned-search__credit-container"},{default:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-credit")]})),_:3})):(0,r.kq)("",!0)])]})),_:2},[t.heading?{name:"vs-module-wrapper-heading",fn:(0,r.w5)((function(){return[(0,r.Uk)((0,a.toDisplayString)(t.heading),1)]})),key:"0"}:void 0,e.$slots["vs-canned-search-intro"]?{name:"vs-module-wrapper-intro",fn:(0,r.w5)((function(){return[(0,r.WI)(e.$slots,"vs-canned-search-intro")]})),key:"1"}:void 0]),1536)),[[o.vShow,c.products.length]])}},21354:function(e,n,t){"use strict";var r=t(93379),a=t.n(r),o=t(7795),i=t.n(o),s=t(90569),c=t.n(s),u=t(3565),d=t.n(u),l=t(19216),p=t.n(l),f=t(44589),g=t.n(f),h=t(85351),m=t.n(h),v={};v.styleTagTransform=g(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=p(),a()(m(),v),m()&&m().locals&&m().locals},19387:function(e,n,t){"use strict";t.r(n);var r=t(42853),a=t(61555);t(90404);const o=(0,t(83744).Z)(a.Z,[["render",r.s]]);n.default=o},61555:function(e,n,t){"use strict";t.d(n,{Z:function(){return r.Z}});var r=t(3830)},42853:function(e,n,t){"use strict";t.d(n,{s:function(){return r.s}});var r=t(62895)},90404:function(e,n,t){"use strict";t(21354)}},function(e){return e.O(0,[6252,3744,7991,9963,6486,2854,4942,6765,7169,7476,5274,5252,5730,976,419,1436,6157,4159,9187,1843,9118,1630,7133,4165,8293,5570,9464,4173,6540,8510,2082,3022,2267,3363,6116,4147,9835,8882,7223,5709,5411],(function(){return 19387,e(e.s=19387)})),e.O()}])}));
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsArticleSection=e():t.VsArticleSection=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8007],{67803:function(){},80979:function(t,e,n){"use strict";var s=n(51843),r=n(7133);e.Z={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:s.hY,VsRow:s.ou,VsRichTextWrapper:r.default},props:{sidebarAlign:{type:String,default:"left",validator:function(t){return t.match(/(left|right)/)}}},computed:{sidebarAlignClass:function(){return"right"===this.sidebarAlign?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"}}}},94926:function(t,e,n){"use strict";n.d(e,{s:function(){return l}});var s=n(66252),r=n(3577),i={class:"mx-6 mx-md-0"};function l(t,e,n,l,o,c){var a=(0,s.up)("VsCol"),u=(0,s.up)("VsRichTextWrapper"),f=(0,s.up)("VsRow");return(0,s.wg)(),(0,s.iD)("div",{class:(0,r.normalizeClass)(["vs-article-section mb-8 mb-md-10",c.sidebarAlignClass]),"data-test":"vs-article-section"},[(0,s.Wm)(f,null,{default:(0,s.w5)((function(){return[(0,s.Wm)(a,{cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:(0,r.normalizeClass)(["col-xxl-4","right"===n.sidebarAlign?"pr-md-0":"pl-md-0"]),"offset-xl":"right"===n.sidebarAlign?"1":null,"order-md":"right"===n.sidebarAlign?"2":null},{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"article-sidebar")]})),_:3},8,["class","offset-xl","order-md"]),(0,s.Wm)(a,{cols:"12",md:"7","data-test":"vs-article-section__content","offset-xl":"left"===n.sidebarAlign?"1":""},{default:(0,s.w5)((function(){return[(0,s._)("div",i,[(0,s.Wm)(u,null,{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"default")]})),_:3})])]})),_:3},8,["offset-xl"])]})),_:3})],2)}},78006:function(t,e,n){"use strict";var s=n(93379),r=n.n(s),i=n(7795),l=n.n(i),o=n(90569),c=n.n(o),a=n(3565),u=n.n(a),f=n(19216),d=n.n(f),m=n(44589),p=n.n(m),b=n(67803),v=n.n(b),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=d(),r()(v(),g),v()&&v().locals&&v().locals},68021:function(t,e,n){"use strict";n.r(e);var s=n(46001),r=n(6539);n(23165);const i=(0,n(83744).Z)(r.Z,[["render",s.s]]);e.default=i},6539:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(80979)},46001:function(t,e,n){"use strict";n.d(e,{s:function(){return s.s}});var s=n(94926)},23165:function(t,e,n){"use strict";n(78006)}},function(t){return t.O(0,[6252,3744,7991,9963,2854,1436,4159,9187,1843,7133],(function(){return 68021,t(t.s=68021)})),t.O()}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsArticleSection=e():t.VsArticleSection=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8007],{74688:function(){},80979:function(t,e,n){"use strict";var s=n(51843),r=n(7133);e.Z={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:s.hY,VsRow:s.ou,VsRichTextWrapper:r.default},props:{sidebarAlign:{type:String,default:"left",validator:function(t){return t.match(/(left|right)/)}}},computed:{sidebarAlignClass:function(){return"right"===this.sidebarAlign?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"}}}},20733:function(t,e,n){"use strict";n.d(e,{s:function(){return o}});var s=n(66252),r=n(3577),i={class:"mx-6 mx-md-0"};function o(t,e,n,o,l,c){var a=(0,s.up)("VsCol"),u=(0,s.up)("VsRichTextWrapper"),f=(0,s.up)("VsRow");return(0,s.wg)(),(0,s.iD)("div",{class:(0,r.normalizeClass)(["vs-article-section mb-8 mb-md-10",c.sidebarAlignClass]),"data-test":"vs-article-section"},[(0,s.Wm)(f,null,{default:(0,s.w5)((function(){return[(0,s.Wm)(a,{cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:(0,r.normalizeClass)(["col-xxl-4","right"===n.sidebarAlign?"pe-md-0":"ps-md-0"]),"offset-xl":"right"===n.sidebarAlign?"1":null,"order-md":"right"===n.sidebarAlign?"2":null},{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"article-sidebar")]})),_:3},8,["class","offset-xl","order-md"]),(0,s.Wm)(a,{cols:"12",md:"7","data-test":"vs-article-section__content","offset-xl":"left"===n.sidebarAlign?"1":""},{default:(0,s.w5)((function(){return[(0,s._)("div",i,[(0,s.Wm)(u,null,{default:(0,s.w5)((function(){return[(0,s.WI)(t.$slots,"default")]})),_:3})])]})),_:3},8,["offset-xl"])]})),_:3})],2)}},48655:function(t,e,n){"use strict";var s=n(93379),r=n.n(s),i=n(7795),o=n.n(i),l=n(90569),c=n.n(l),a=n(3565),u=n.n(a),f=n(19216),d=n.n(f),m=n(44589),p=n.n(m),b=n(74688),v=n.n(b),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=o(),g.insertStyleElement=d(),r()(v(),g),v()&&v().locals&&v().locals},68021:function(t,e,n){"use strict";n.r(e);var s=n(39989),r=n(6539);n(23758);const i=(0,n(83744).Z)(r.Z,[["render",s.s]]);e.default=i},6539:function(t,e,n){"use strict";n.d(e,{Z:function(){return s.Z}});var s=n(80979)},39989:function(t,e,n){"use strict";n.d(e,{s:function(){return s.s}});var s=n(20733)},23758:function(t,e,n){"use strict";n(48655)}},function(t){return t.O(0,[6252,3744,7991,9963,2854,1436,4159,9187,1843,7133],(function(){return 68021,t(t.s=68021)})),t.O()}])}));
@@ -0,0 +1 @@
1
+ (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7091],{87284:function(){},62018:function(t,n,e){"use strict";var i=e(5705),a=e(92854),u=e(70419),r=e(40479),l=e(924);n.Z={name:"VsInput",status:"prototype",release:"0.0.1",components:{BFormInput:a.eI,VsButton:u.default},mixins:[r.Z,l.Z],props:{value:{type:Number,default:0},fieldName:{type:String,required:!0},minimumNumber:{type:Number,default:0},maximumNumber:{type:Number,default:10},autoComplete:{type:Boolean,default:!0},validationRules:{type:Object,default:function(){return{}}},invalid:{type:Boolean,default:!1},triggerValidate:{type:Boolean,default:!1},validationMessages:{type:Object,default:function(){return{}}},genericValidation:{type:Object,default:function(){return{}}},hintText:{type:String,default:""},clearButtonText:{type:String,default:""},reAlertErrors:{type:Boolean,default:!1}},setup:function(){return{v$:(0,i.ZP)()}},data:function(){return{inputVal:this.value,clearErrorsOnFocus:!1}},computed:{elementClass:function(){var t=this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":"",n="vs-input--".concat(this.fieldName);return"".concat(t," ").concat(n)},showClearButton:function(){return!(!this.inputVal.length||""===this.clearButtonText)},errorClass:function(){return this.v$.inputVal&&this.v$.inputVal.$anyError||this.invalid?"vs-input--error":""}},watch:{triggerValidate:function(){this.manualValidate()},inputVal:function(t){this.$emit("updated",{field:this.fieldName,value:t})},value:function(t){this.inputVal=t}},methods:{clearInput:function(){this.inputVal=0},focusOnInput:function(){var t=this;this.$nextTick((function(){t.$refs.input.$el.focus()}))},clearInputAndFocus:function(){this.clearInput(),this.focusOnInput()},controlBlurred:function(){this.inputVal<this.minimumNumber&&(this.inputVal=this.minimumNumber),this.inputVal>this.maximumNumber&&(this.inputVal=this.maximumNumber),this.validateErrors()},validateErrors:function(){this.clearErrorsOnFocus=!1,this.emitStatus()},resetErrors:function(){this.clearErrorsOnFocus=!0},decrementValue:function(t){t&&t.preventDefault(),this.inputVal=Math.max(this.inputVal-1,this.minimumNumber)},incrementValue:function(t){t&&t.preventDefault(),this.inputVal=Math.min(this.inputVal+1,this.maximumNumber)}},validations:function(){return this.rules}}},51440:function(t,n,e){"use strict";e.d(n,{s:function(){return p}});var i=e(66252),a=e(3577),u=e(49963),r={"data-test":"vs-number-input"},l=["id"],s=["id"],o={class:"visually-hidden"},c=(0,i._)("span",{class:"visually-hidden"}," Add 1 ",-1),m=(0,i._)("span",{class:"visually-hidden"}," Remove 1 ",-1),d={class:"visually-hidden"};function p(t,n,e,p,f,h){var v=(0,i.up)("VsButton"),b=(0,i.up)("BFormInput");return(0,i.wg)(),(0,i.iD)("div",r,[e.hintText?((0,i.wg)(),(0,i.iD)("p",{key:0,class:"hint-text",id:"hint-".concat(e.fieldName)},(0,a.toDisplayString)(e.hintText),9,l)):(0,i.kq)("",!0),t.errorsList.length||e.invalid?((0,i.wg)(),(0,i.iD)("div",{key:1,role:"alert","aria-live":"assertive",id:"error-".concat(e.fieldName)},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.errorsList,(function(t){return(0,i.wy)(((0,i.wg)(),(0,i.iD)("p",{key:t,class:"error mb-0"},[(0,i._)("span",o,(0,a.toDisplayString)(e.fieldName),1),(0,i.Uk)(" "+(0,a.toDisplayString)(e.validationMessages[t]||e.genericValidation[t]),1)])),[[u.vShow,!e.reAlertErrors&&!f.clearErrorsOnFocus]])})),128))],8,s)):(0,i.kq)("",!0),(0,i.Wm)(v,{class:"vs-number-input__increment",iconOnly:!0,size:"sm",icon:"minus",disabled:f.inputVal<=e.minimumNumber||null,onClick:h.decrementValue},{default:(0,i.w5)((function(){return[c]})),_:1},8,["disabled","onClick"]),(0,i.Wm)(b,{ref:"input",type:"Number",class:(0,a.normalizeClass)(["vs-number-input",h.elementClass]),modelValue:f.inputVal,"onUpdate:modelValue":n[0]||(n[0]=function(t){return f.inputVal=t}),id:e.fieldName,name:e.fieldName,required:t.isRequired,v:f.inputVal,"aria-invalid":t.v$.inputVal&&t.v$.inputVal.$anyError||e.invalid,"aria-describedby":t.ariaDescription,maxlength:e.validationRules.maxLength?e.validationRules.maxLength:null,minlength:e.validationRules.minLength?e.validationRules.minLength:null,min:e.minimumNumber||null,max:e.maximumNumber||null,onBlur:h.controlBlurred,onChange:h.validateErrors,onFocus:h.resetErrors},null,8,["modelValue","class","id","name","required","v","aria-invalid","aria-describedby","maxlength","minlength","min","max","onBlur","onChange","onFocus"]),(0,i.Wm)(v,{class:"vs-number-input__increment",iconOnly:!0,size:"sm",icon:"plus",disabled:f.inputVal>=e.maximumNumber||null,onClick:h.incrementValue},{default:(0,i.w5)((function(){return[m]})),_:1},8,["disabled","onClick"]),h.showClearButton?((0,i.wg)(),(0,i.j4)(v,{key:2,class:"vs-number-input__clear-button d-none d-lg-block","data-test":"input-clear-button",variant:"transparent",icon:"close",size:"md","icon-only":"",onClick:n[1]||(n[1]=(0,u.withModifiers)((function(t){return h.clearInputAndFocus()}),["prevent"]))},{default:(0,i.w5)((function(){return[(0,i._)("span",d,(0,a.toDisplayString)(e.clearButtonText),1)]})),_:1})):(0,i.kq)("",!0)])}},21285:function(t,n,e){"use strict";var i=e(93379),a=e.n(i),u=e(7795),r=e.n(u),l=e(90569),s=e.n(l),o=e(3565),c=e.n(o),m=e(19216),d=e.n(m),p=e(44589),f=e.n(p),h=e(87284),v=e.n(h),b={};b.styleTagTransform=f(),b.setAttributes=c(),b.insert=s().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=d(),a()(v(),b),v()&&v().locals&&v().locals},67091:function(t,n,e){"use strict";e.r(n);var i=e(81146),a=e(96781);e(81333);const u=(0,e(83744).Z)(a.Z,[["render",i.s]]);n.default=u},96781:function(t,n,e){"use strict";e.d(n,{Z:function(){return i.Z}});var i=e(62018)},81146:function(t,n,e){"use strict";e.d(n,{s:function(){return i.s}});var i=e(51440)},81333:function(t,n,e){"use strict";e(21285)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7218],{97218:function(e,t,n){var r=n(48764).lW,o=n(25108);function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=i.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:d}=Array,p=f("undefined"),h=l("ArrayBuffer"),m=f("string"),y=f("function"),g=f("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=l("Date"),O=l("File"),S=l("Blob"),R=l("FileList"),A=l("URLSearchParams");function v(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function T(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!p(e)&&e!==j,C=(x="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>x&&e instanceof x);var x;const P=l("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=l("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};v(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},k=l("AsyncFunction");var q={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isUndefined:p,isDate:E,isFile:O,isBlob:S,isRegExp:U,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:A,isTypedArray:C,isFileList:R,forEach:v,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,o)=>{const s=t&&T(n,o)||o;w(n[s])&&w(r)?n[s]=e(n[s],r):w(r)?n[s]=e({},r):d(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&v(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(v(t,((t,r)=>{n&&y(t)?e[r]=s(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:T,global:j,isContextDefined:N,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return v(e,((e,t)=>{const s=n(e,r+1);!p(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:k,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch)};function I(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const z=I.prototype,M={};function H(e){return q.isPlainObject(e)||q.isArray(e)}function J(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{M[e]={value:e}})),Object.defineProperties(I,M),Object.defineProperty(z,"isAxiosError",{value:!0}),I.from=(e,t,n,r,o,s)=>{const i=Object.create(z);return q.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),I.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const K=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,s=n.visitor||l,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(s))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!c&&q.isBlob(e))throw new I("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):r.from(e):e}function l(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(q.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(H)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=J(n),s.forEach((function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!H(e)||(t.append(W(r,n,i),u(e)),!1)}const f=[],d=Object.assign(K,{defaultVisitor:l,convertValue:u,isVisitable:H});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&s.call(t,n,q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}const X=$.prototype;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){if(!t)return e;const r=n&&n.encode||Q,o=n&&n.serialize;let s;if(s=o?o(t,n):q.isURLSearchParams(t)?t.toString():new $(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Y=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re=(oe="undefined"!=typeof navigator&&navigator.product,ne&&["ReactNative","NativeScript","NS"].indexOf(oe)<0);var oe;const se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ie={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserWebWorkerEnv:se,hasStandardBrowserEnv:re}),...te};function ae(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&q.isArray(r)?r.length:s,a?(q.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&q.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&q.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,((e,r)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r&&r?JSON.stringify(ae(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ie.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw I.from(e,I.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));var ue=ce;const le=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:q.isArray(e)?e.map(pe):String(e)}function he(e,t,n,r,o){return q.isFunction(r)?r.call(this,t,n):(o&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=de(t);if(!o)throw new Error("header name must be a non-empty string");const s=q.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=pe(e))}const s=(e,t)=>q.forEach(e,((e,n)=>o(e,n,t)));return q.isPlainObject(e)||e instanceof this.constructor?s(e,t):q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=de(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!he(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=de(e)){const o=q.findKey(n,e);!o||t&&!he(0,n[o],o,t)||(delete n[o],r=!0)}}return q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!he(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return q.forEach(this,((r,o)=>{const s=q.findKey(n,o);if(s)return t[s]=pe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=pe(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fe]=this[fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=de(e);t[r]||(function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(me.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),q.freezeMethods(me);var ye=me;function ge(e,t){const n=this||ue,r=t||n,o=ye.from(r.headers);let s=r.data;return q.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){I.call(this,null==e?"canceled":e,I.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(we,I,{__CANCEL__:!0});var Ee=ie.hasStandardBrowserEnv?{write:function(e,t,n,r,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),q.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),q.isString(r)&&i.push("path="+r),q.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Oe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Se=ie.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=q.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Re(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ae={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ye.from(e.headers).normalize(),s=e.responseType;let i,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(q.isFormData(r))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const l=Oe(e.baseURL,e.url);function f(){if(!u)return;const r=ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new I("Request failed with status code "+n.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Z(l,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new I("Request aborted",I.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new I(t,r.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,u)),u=null},ie.hasStandardBrowserEnv){const t=Se(l)&&e.xsrfCookieName&&Ee.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&q.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),q.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Re(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Re(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new we(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l);d&&-1===ie.protocols.indexOf(d)?n(new I("Unsupported protocol "+d+":",I.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};q.forEach(Ae,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ve=e=>`- ${e}`,Te=e=>q.isFunction(e)||null===e||!1===e;var je=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!Te(n)&&(r=Ae[(t=String(n)).toLowerCase()],void 0===r))throw new I(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new I("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(ve).join("\n"):" "+ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Ce(e){return Ne(e),e.headers=ye.from(e.headers),e.data=ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),je(e.adapter||ue.adapter)(e).then((function(t){return Ne(e),t.data=ge.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return be(t)||(Ne(e),t&&t.response&&(t.response.data=ge.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}const xe=e=>e instanceof ye?e.toJSON():e;function Pe(e,t){t=t||{};const n={};function r(e,t,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,n){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!q.isUndefined(t))return r(void 0,t)}function i(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(xe(e),xe(t),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);q.isUndefined(i)&&s!==a||(n[r]=i)})),n}const _e={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_e[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ue={};_e.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,i)=>{if(!1===e)throw new I(r(s," has been removed"+(t?" in "+t:"")),I.ERR_DEPRECATED);return t&&!Ue[s]&&(Ue[s]=!0,o.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,i)}};var Fe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new I("option "+s+" must be "+n,I.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new I("Unknown option "+s,I.ERR_BAD_OPTION)}},validators:_e};const Be=Fe.validators;class Le{constructor(e){this.defaults=e,this.interceptors={request:new Y,response:new Y}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Pe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Fe.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),null!=r&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:Fe.assertOptions(r,{encode:Be.function,serialize:Be.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ye.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Ce.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Ce.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Z(Oe((e=Pe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){Le.prototype[e]=function(t,n){return this.request(Pe(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Pe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Le.prototype[e]=t(),Le.prototype[e+"Form"]=t(!0)}));var De=Le;class ke{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new we(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new ke((function(t){e=t})),cancel:e}}}var qe=ke;const Ie={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ie).forEach((([e,t])=>{Ie[t]=e}));var ze=Ie;const Me=function e(t){const n=new De(t),r=s(De.prototype.request,n);return q.extend(r,De.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Pe(t,n))},r}(ue);Me.Axios=De,Me.CanceledError=we,Me.CancelToken=qe,Me.isCancel=be,Me.VERSION="1.6.1",Me.toFormData=V,Me.AxiosError=I,Me.Cancel=Me.CanceledError,Me.all=function(e){return Promise.all(e)},Me.spread=function(e){return function(t){return e.apply(null,t)}},Me.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},Me.mergeConfig=Pe,Me.AxiosHeaders=ye,Me.formToJSON=e=>ae(q.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=je,Me.HttpStatusCode=ze,Me.default=Me,e.exports=Me}}]);
1
+ "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7218],{97218:function(e,t,n){var r=n(48764).lW,o=n(25108);function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,c=(u=Object.create(null),e=>{const t=i.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const l=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:d}=Array,p=f("undefined"),h=l("ArrayBuffer"),m=f("string"),y=f("function"),g=f("number"),b=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=l("Date"),O=l("File"),S=l("Blob"),R=l("FileList"),A=l("URLSearchParams");function v(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function T(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!p(e)&&e!==j,C=(x="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>x&&e instanceof x);var x;const P=l("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=l("RegExp"),U=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};v(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},k=l("AsyncFunction");var q={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isUndefined:p,isDate:E,isFile:O,isBlob:S,isRegExp:F,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:A,isTypedArray:C,isFileList:R,forEach:v,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,o)=>{const s=t&&T(n,o)||o;w(n[s])&&w(r)?n[s]=e(n[s],r):w(r)?n[s]=e({},r):d(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&v(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(v(t,((t,r)=>{n&&y(t)?e[r]=s(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||c[i]||(t[i]=e[i],c[i]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:P,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:U,freezeMethods:e=>{U(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:T,global:j,isContextDefined:N,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return v(e,((e,t)=>{const s=n(e,r+1);!p(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:k,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch)};function I(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}q.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const z=I.prototype,M={};function H(e){return q.isPlainObject(e)||q.isArray(e)}function J(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{M[e]={value:e}})),Object.defineProperties(I,M),Object.defineProperty(z,"isAxiosError",{value:!0}),I.from=(e,t,n,r,o,s)=>{const i=Object.create(z);return q.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),I.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const K=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,s=n.visitor||l,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(s))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!c&&q.isBlob(e))throw new I("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):r.from(e):e}function l(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(q.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(H)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=J(n),s.forEach((function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!H(e)||(t.append(W(r,n,i),u(e)),!1)}const f=[],d=Object.assign(K,{defaultVisitor:l,convertValue:u,isVisitable:H});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&s.call(t,n,q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}const X=$.prototype;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){if(!t)return e;const r=n&&n.encode||Q,o=n&&n.serialize;let s;if(s=o?o(t,n):q.isURLSearchParams(t)?t.toString():new $(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Y=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ne="undefined"!=typeof window&&"undefined"!=typeof document,re=(oe="undefined"!=typeof navigator&&navigator.product,ne&&["ReactNative","NativeScript","NS"].indexOf(oe)<0);var oe;const se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ie={...Object.freeze({__proto__:null,hasBrowserEnv:ne,hasStandardBrowserWebWorkerEnv:se,hasStandardBrowserEnv:re}),...te};function ae(e){function t(e,n,r,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&q.isArray(r)?r.length:s,a?(q.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&q.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&q.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,((e,r)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ce={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r&&r?JSON.stringify(ae(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ie.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(0,JSON.parse)(e),q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw I.from(e,I.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(e=>{ce.headers[e]={}}));var ue=ce;const le=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:q.isArray(e)?e.map(pe):String(e)}function he(e,t,n,r,o){return q.isFunction(r)?r.call(this,t,n):(o&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=de(t);if(!o)throw new Error("header name must be a non-empty string");const s=q.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=pe(e))}const s=(e,t)=>q.forEach(e,((e,n)=>o(e,n,t)));return q.isPlainObject(e)||e instanceof this.constructor?s(e,t):q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=de(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!he(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=de(e)){const o=q.findKey(n,e);!o||t&&!he(0,n[o],o,t)||(delete n[o],r=!0)}}return q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!he(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return q.forEach(this,((r,o)=>{const s=q.findKey(n,o);if(s)return t[s]=pe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=pe(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[fe]=this[fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=de(e);t[r]||(function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(me.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),q.freezeMethods(me);var ye=me;function ge(e,t){const n=this||ue,r=t||n,o=ye.from(r.headers);let s=r.data;return q.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,n){I.call(this,null==e?"canceled":e,I.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(we,I,{__CANCEL__:!0});var Ee=ie.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),q.isString(r)&&i.push("path="+r),q.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Oe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Se=ie.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=q.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Re(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,c=r(a);n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ae={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ye.from(e.headers).normalize();let s,i,{responseType:a,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(q.isFormData(r))if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(i=o.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=Oe(e.baseURL,e.url);function d(){if(!l)return;const r=ye.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new I("Request failed with status code "+n.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Z(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new I("Request aborted",I.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new I(t,r.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,l)),l=null},ie.hasStandardBrowserEnv&&(c&&q.isFunction(c)&&(c=c(e)),c||!1!==c&&Se(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Ee.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&q.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),q.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Re(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Re(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new we(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===ie.protocols.indexOf(p)?n(new I("Unsupported protocol "+p+":",I.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};q.forEach(Ae,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ve=e=>`- ${e}`,Te=e=>q.isFunction(e)||null===e||!1===e;var je=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!Te(n)&&(r=Ae[(t=String(n)).toLowerCase()],void 0===r))throw new I(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new I("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(ve).join("\n"):" "+ve(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Ce(e){return Ne(e),e.headers=ye.from(e.headers),e.data=ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),je(e.adapter||ue.adapter)(e).then((function(t){return Ne(e),t.data=ge.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return be(t)||(Ne(e),t&&t.response&&(t.response.data=ge.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}const xe=e=>e instanceof ye?e.toJSON():e;function Pe(e,t){t=t||{};const n={};function r(e,t,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function o(e,t,n){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!q.isUndefined(t))return r(void 0,t)}function i(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(xe(e),xe(t),!0)};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);q.isUndefined(i)&&s!==a||(n[r]=i)})),n}const _e={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_e[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Fe={};_e.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,i)=>{if(!1===e)throw new I(r(s," has been removed"+(t?" in "+t:"")),I.ERR_DEPRECATED);return t&&!Fe[s]&&(Fe[s]=!0,o.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,i)}};var Ue={assertOptions:function(e,t,n){if("object"!=typeof e)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new I("option "+s+" must be "+n,I.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new I("Unknown option "+s,I.ERR_BAD_OPTION)}},validators:_e};const Be=Ue.validators;class Le{constructor(e){this.defaults=e,this.interceptors={request:new Y,response:new Y}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Pe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ue.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),null!=r&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:Ue.assertOptions(r,{encode:Be.function,serialize:Be.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ye.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Ce.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Ce.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Z(Oe((e=Pe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],(function(e){Le.prototype[e]=function(t,n){return this.request(Pe(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Pe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Le.prototype[e]=t(),Le.prototype[e+"Form"]=t(!0)}));var De=Le;class ke{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new we(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new ke((function(t){e=t})),cancel:e}}}var qe=ke;const Ie={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ie).forEach((([e,t])=>{Ie[t]=e}));var ze=Ie;const Me=function e(t){const n=new De(t),r=s(De.prototype.request,n);return q.extend(r,De.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Pe(t,n))},r}(ue);Me.Axios=De,Me.CanceledError=we,Me.CancelToken=qe,Me.isCancel=be,Me.VERSION="1.6.2",Me.toFormData=V,Me.AxiosError=I,Me.Cancel=Me.CanceledError,Me.all=function(e){return Promise.all(e)},Me.spread=function(e){return function(t){return e.apply(null,t)}},Me.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},Me.mergeConfig=Pe,Me.AxiosHeaders=ye,Me.formToJSON=e=>ae(q.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=je,Me.HttpStatusCode=ze,Me.default=Me,e.exports=Me}}]);