@visitscotland/component-library 5.32.4 → 5.32.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,231 +1,233 @@
1
- {
2
- "name": "@visitscotland/component-library",
3
- "version": "5.32.4",
4
- "description": "VisitScotland Component Library",
5
- "author": "VisitScotland",
6
- "homepage": "https://github.com/visitscotland/vs-component-library#readme",
7
- "files": [
8
- "dist"
9
- ],
10
- "exports": {
11
- ".": {
12
- "require": "./dist/ssr/index.js"
13
- },
14
- "./components": {
15
- "types": "./dist/components/component-entry.d.ts",
16
- "import": "./dist/components/vs-component-library.mjs",
17
- "require": "./dist/components/vs-component-library.umd.js"
18
- },
19
- "./maps": {
20
- "import": "./dist/components/vs-component-library-maps.mjs"
21
- },
22
- "./style.css": "./dist/components/style.css",
23
- "./cludo-search-results.css": "./dist/client/styles/third-party/_cludo-search-results.css",
24
- "./cludo-autocomplete.css": "./dist/client/styles/third-party/_cludo-autocomplete.css"
25
- },
26
- "license": "MIT",
27
- "scripts": {
28
- "storybook": "yarn theo && storybook dev -p 6006",
29
- "storybook:host": "yarn theo && storybook dev -h 127.0.0.1 -p 6006",
30
- "build-storybook": "yarn theo && storybook build",
31
- "build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
32
- "build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
33
- "build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
34
- "build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
35
- "build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
36
- "build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
37
- "build:vite": "yarn theo && vite build",
38
- "build:vite-no-theo": "vite build",
39
- "test": "yarn theo && jest --config ./test/unit/jest.conf.js",
40
- "test:no-theo": "jest --config ./test/unit/jest.conf.js",
41
- "lint": "eslint",
42
- "lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
43
- "lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
44
- "lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
45
- "lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
46
- "lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
47
- "prettier": "prettier . --list-different",
48
- "theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
49
- "third-party": "webpack --config ./build/third-party.webpack.conf.js",
50
- "commit": "cz",
51
- "release:patch": "standard-version --release-as patch",
52
- "release:minor": "standard-version --release-as minor",
53
- "release:major": "standard-version --release-as major"
54
- },
55
- "lint-staged": {
56
- "*.{js,vue,ts}": "eslint"
57
- },
58
- "repository": {
59
- "type": "git",
60
- "url": "https://github.com/visitscotland/vs-component-library.git"
61
- },
62
- "keywords": [
63
- "vue.js",
64
- "visit scotland",
65
- "vue",
66
- "design system",
67
- "design",
68
- "system"
69
- ],
70
- "devDependencies": {
71
- "@babel/core": "^7.23.2",
72
- "@babel/eslint-parser": "^7.21.8",
73
- "@babel/plugin-proposal-class-properties": "^7.10.4",
74
- "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
75
- "@babel/plugin-syntax-dynamic-import": "^7.0.0",
76
- "@babel/plugin-transform-runtime": "^7.23.2",
77
- "@babel/polyfill": "^7.10.4",
78
- "@babel/preset-env": "^7.23.2",
79
- "@babel/preset-react": "7.12.13",
80
- "@chromatic-com/storybook": "^4.0.0-next.16",
81
- "@originjs/vite-plugin-require-context": "^1.0.9",
82
- "@rushstack/eslint-patch": "^1.3.0",
83
- "@semantic-release/exec": "^7.1.0",
84
- "@semantic-release/npm": "^12.0.1",
85
- "@storybook/addon-a11y": "^9.1.0-alpha.2",
86
- "@storybook/addon-docs": "9.1.0-alpha.2",
87
- "@storybook/addon-links": "^9.1.0-alpha.2",
88
- "@storybook/vue3-vite": "^9.1.0-alpha.2",
89
- "@types/google.maps": "^3.58.1",
90
- "@typescript-eslint/eslint-plugin": "^8.38.0",
91
- "@typescript-eslint/parser": "^8.38.0",
92
- "@vitejs/plugin-vue": "^5.0.4",
93
- "@vue/eslint-config-airbnb": "^8.0.0",
94
- "@vue/test-utils": "^2.3.2",
95
- "@vue/vue3-jest": "^29.2.4",
96
- "babel-jest": "^29.5.0",
97
- "babel-loader": "^9.1.2",
98
- "babel-plugin-macros": "^2.4.2",
99
- "bootstrap": "^5.3.2",
100
- "chromatic": "^6.17.3",
101
- "clean-webpack-plugin": "^4.0.0",
102
- "commitizen": "^4.3.0",
103
- "cross-env": "^7.0.3",
104
- "css-loader": "^6.7.3",
105
- "cz-conventional-changelog": "^3.3.0",
106
- "dotenv-webpack": "^8.0.1",
107
- "eslint": "^8.2.0",
108
- "eslint-import-resolver-typescript": "^4.4.4",
109
- "eslint-import-resolver-webpack": "^0.13.2",
110
- "eslint-plugin-import": "^2.32.0",
111
- "eslint-plugin-storybook": "^9.1.0-alpha.2",
112
- "eslint-plugin-vue": "^9.11.1",
113
- "eslint-webpack-plugin": "^4.0.1",
114
- "file-loader": "^6.2.0",
115
- "husky": "^8.0.3",
116
- "jest": "^29.5.0",
117
- "jest-axe": "^8.0.0",
118
- "jest-environment-jsdom": "^29.5.0",
119
- "jest-serializer-vue": "^3.1.0",
120
- "lint-staged": "^15.2.2",
121
- "mini-css-extract-plugin": "^2.7.5",
122
- "moxios": "^0.4.0",
123
- "node-polyfill-webpack-plugin": "^2.0.1",
124
- "npm-run-all": "^4.1.5",
125
- "optimist": "^0.6.1",
126
- "path": "^0.12.7",
127
- "postcss-safe-parser": "^6.0.0",
128
- "prettier": "^3.2.5",
129
- "require-context.macro": "^1.2.2",
130
- "sass": "^1.62.1",
131
- "sass-loader": "^13.2.2",
132
- "semantic-release": "^24.2.0",
133
- "speed-measure-webpack-plugin": "^1.5.0",
134
- "standard-version": "^9.5.0",
135
- "storybook": "^9.1.0-alpha.2",
136
- "storybook-addon-datalayer-watcher": "^2.0.1",
137
- "storybook-addon-tag-badges": "^2.0.2",
138
- "style-loader": "^3.3.2",
139
- "svgo-loader": "^4.0.0",
140
- "theo": "^8.1.5",
141
- "time-analytics-webpack-plugin": "^0.1.20",
142
- "ts-jest": "^29.1.0",
143
- "ts-loader": "^9.4.3",
144
- "typescript": "^5.0.4",
145
- "upgrade": "^1.1.0",
146
- "vite": "^5.2.10",
147
- "vite-plugin-dts": "^3.7.2",
148
- "vite-plugin-turbosnap": "^1.0.2",
149
- "vue": "^3.4.19",
150
- "vue-loader": "^17.1.0",
151
- "vue-style-loader": "^4.1.3",
152
- "webpack": "^5.81.0",
153
- "webpack-cli": "^5.0.2",
154
- "webpack-manifest-plugin": "^5.0.0",
155
- "webpack-merge": "^5.1.4",
156
- "webpack-node-externals": "^3.0.0"
157
- },
158
- "dependencies": {
159
- "@googlemaps/js-api-loader": "^2.0.1",
160
- "@mapbox/geojson-extent": "^1.0.1",
161
- "@pinia/testing": "^0.1.3",
162
- "@rollup/plugin-replace": "^6.0.2",
163
- "@vuelidate/core": "^2.0.2",
164
- "@vuelidate/validators": "^2.0.2",
165
- "axios": "^1.4.0",
166
- "bootstrap-vue-next": "^0.17.0",
167
- "glob": "^8.1.0",
168
- "global": "^4.4.0",
169
- "lodash": "^4.17.21",
170
- "mapbox-gl": "^1.11.1",
171
- "mitt": "^3.0.0",
172
- "pinia": "^2.1.3",
173
- "vite": "^5.1.3",
174
- "vue": "^3.3.4",
175
- "vue-combo-blocks": "^2.1.1",
176
- "vue-recaptcha": "^2.0.1",
177
- "vue-youtube-vue-3": "^1.5.0",
178
- "vue3-charts": "^1.1.33",
179
- "vue3-lazy-hydration": "^1.2.1",
180
- "vue3-simple-typeahead": "^1.0.11",
181
- "vuelidate": "^0.7.7",
182
- "vuex": "^4.1.0",
183
- "webpack-merge": "^5.1.4",
184
- "webpack-node-externals": "^3.0.0",
185
- "yalc": "^1.0.0-pre.53"
186
- },
187
- "peerDependencies": {
188
- "@popperjs/core": "*",
189
- "postcss": "*"
190
- },
191
- "engines": {
192
- "node": ">= 16.20.0",
193
- "npm": ">= 6.14.5",
194
- "yarn": ">= 1.22.4"
195
- },
196
- "browserslist": [
197
- "> 1%",
198
- "last 2 versions",
199
- "not Explorer > 0",
200
- "IE 11",
201
- "not ExplorerMobile > 0",
202
- "not BlackBerry > 0",
203
- "not OperaMini all",
204
- "not OperaMobile > 0"
205
- ],
206
- "jest": {
207
- "testPathIgnorePatterns": [
208
- ".test",
209
- "node_modules"
210
- ],
211
- "jest.pathToJest": "node_modules/.bin/jest"
212
- },
213
- "config": {
214
- "commitizen": {
215
- "path": "./node_modules/cz-conventional-changelog"
216
- }
217
- },
218
- "bugs": {
219
- "url": "https://github.com/visitscotland/vs-component-library/issues"
220
- },
221
- "resolutions": {
222
- "minimist": "^0.2.4",
223
- "json5": "^1.0.2",
224
- "word-wrap": "^1.2.4",
225
- "highlight.js": "^10.4.1",
226
- "semver": "^7.5.4",
227
- "get-func-name": "^2.0.1",
228
- "svgo": "3.2.0"
229
- },
230
- "packageManager": "yarn@4.6.0"
231
- }
1
+ {
2
+ "name": "@visitscotland/component-library",
3
+ "version": "5.32.7",
4
+ "description": "VisitScotland Component Library",
5
+ "author": "VisitScotland",
6
+ "homepage": "https://github.com/visitscotland/vs-component-library#readme",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "require": "./dist/ssr/index.js"
13
+ },
14
+ "./components": {
15
+ "types": "./dist/components/component-entry.d.ts",
16
+ "import": "./dist/components/vs-component-library.mjs",
17
+ "require": "./dist/components/vs-component-library.umd.js"
18
+ },
19
+ "./maps": {
20
+ "import": "./dist/components/vs-component-library-maps.mjs"
21
+ },
22
+ "./style.css": "./dist/components/style.css",
23
+ "./cludo-search-results.css": "./dist/client/styles/third-party/_cludo-search-results.css",
24
+ "./cludo-autocomplete.css": "./dist/client/styles/third-party/_cludo-autocomplete.css"
25
+ },
26
+ "license": "MIT",
27
+ "scripts": {
28
+ "storybook": "yarn theo && storybook dev -p 6006",
29
+ "storybook:host": "yarn theo && storybook dev -h 127.0.0.1 -p 6006",
30
+ "build-storybook": "yarn theo && storybook build",
31
+ "build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
32
+ "build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
33
+ "build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
34
+ "build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
35
+ "build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
36
+ "build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
37
+ "build:vite": "yarn theo && vite build",
38
+ "build:vite-no-theo": "vite build",
39
+ "test": "yarn theo && jest --config ./test/unit/jest.conf.js",
40
+ "test:no-theo": "jest --config ./test/unit/jest.conf.js",
41
+ "lint": "eslint",
42
+ "lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
43
+ "lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
44
+ "lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
45
+ "lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
46
+ "lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
47
+ "prettier": "prettier . --list-different",
48
+ "theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
49
+ "third-party": "webpack --config ./build/third-party.webpack.conf.js",
50
+ "commit": "cz",
51
+ "prepare": "husky install",
52
+ "prepack": "yarn && yarn build",
53
+ "release:patch": "standard-version --release-as patch",
54
+ "release:minor": "standard-version --release-as minor",
55
+ "release:major": "standard-version --release-as major"
56
+ },
57
+ "lint-staged": {
58
+ "*.{js,vue,ts}": "eslint"
59
+ },
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/visitscotland/vs-component-library.git"
63
+ },
64
+ "keywords": [
65
+ "vue.js",
66
+ "visit scotland",
67
+ "vue",
68
+ "design system",
69
+ "design",
70
+ "system"
71
+ ],
72
+ "devDependencies": {
73
+ "@babel/core": "^7.23.2",
74
+ "@babel/eslint-parser": "^7.21.8",
75
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
76
+ "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
77
+ "@babel/plugin-syntax-dynamic-import": "^7.0.0",
78
+ "@babel/plugin-transform-runtime": "^7.23.2",
79
+ "@babel/polyfill": "^7.10.4",
80
+ "@babel/preset-env": "^7.23.2",
81
+ "@babel/preset-react": "7.12.13",
82
+ "@chromatic-com/storybook": "^4.0.0-next.16",
83
+ "@originjs/vite-plugin-require-context": "^1.0.9",
84
+ "@rushstack/eslint-patch": "^1.3.0",
85
+ "@semantic-release/exec": "^7.1.0",
86
+ "@semantic-release/npm": "^12.0.1",
87
+ "@storybook/addon-a11y": "^9.1.0-alpha.2",
88
+ "@storybook/addon-docs": "9.1.0-alpha.2",
89
+ "@storybook/addon-links": "^9.1.0-alpha.2",
90
+ "@storybook/vue3-vite": "^9.1.0-alpha.2",
91
+ "@types/google.maps": "^3.58.1",
92
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
93
+ "@typescript-eslint/parser": "^8.38.0",
94
+ "@vitejs/plugin-vue": "^5.0.4",
95
+ "@vue/eslint-config-airbnb": "^8.0.0",
96
+ "@vue/test-utils": "^2.3.2",
97
+ "@vue/vue3-jest": "^29.2.4",
98
+ "babel-jest": "^29.5.0",
99
+ "babel-loader": "^9.1.2",
100
+ "babel-plugin-macros": "^2.4.2",
101
+ "bootstrap": "^5.3.2",
102
+ "chromatic": "^6.17.3",
103
+ "clean-webpack-plugin": "^4.0.0",
104
+ "commitizen": "^4.3.0",
105
+ "cross-env": "^7.0.3",
106
+ "css-loader": "^6.7.3",
107
+ "cz-conventional-changelog": "^3.3.0",
108
+ "dotenv-webpack": "^8.0.1",
109
+ "eslint": "^8.2.0",
110
+ "eslint-import-resolver-typescript": "^4.4.4",
111
+ "eslint-import-resolver-webpack": "^0.13.2",
112
+ "eslint-plugin-import": "^2.32.0",
113
+ "eslint-plugin-storybook": "^9.1.0-alpha.2",
114
+ "eslint-plugin-vue": "^9.11.1",
115
+ "eslint-webpack-plugin": "^4.0.1",
116
+ "file-loader": "^6.2.0",
117
+ "husky": "^8.0.3",
118
+ "jest": "^29.5.0",
119
+ "jest-axe": "^8.0.0",
120
+ "jest-environment-jsdom": "^29.5.0",
121
+ "jest-serializer-vue": "^3.1.0",
122
+ "lint-staged": "^15.2.2",
123
+ "mini-css-extract-plugin": "^2.7.5",
124
+ "moxios": "^0.4.0",
125
+ "node-polyfill-webpack-plugin": "^2.0.1",
126
+ "npm-run-all": "^4.1.5",
127
+ "optimist": "^0.6.1",
128
+ "path": "^0.12.7",
129
+ "postcss-safe-parser": "^6.0.0",
130
+ "prettier": "^3.2.5",
131
+ "require-context.macro": "^1.2.2",
132
+ "sass": "^1.62.1",
133
+ "sass-loader": "^13.2.2",
134
+ "semantic-release": "^24.2.0",
135
+ "speed-measure-webpack-plugin": "^1.5.0",
136
+ "standard-version": "^9.5.0",
137
+ "storybook": "^9.1.0-alpha.2",
138
+ "storybook-addon-datalayer-watcher": "^2.0.1",
139
+ "storybook-addon-tag-badges": "^2.0.2",
140
+ "style-loader": "^3.3.2",
141
+ "svgo-loader": "^4.0.0",
142
+ "theo": "^8.1.5",
143
+ "time-analytics-webpack-plugin": "^0.1.20",
144
+ "ts-jest": "^29.1.0",
145
+ "ts-loader": "^9.4.3",
146
+ "typescript": "^5.0.4",
147
+ "upgrade": "^1.1.0",
148
+ "vite": "^5.2.10",
149
+ "vite-plugin-dts": "^3.7.2",
150
+ "vite-plugin-turbosnap": "^1.0.2",
151
+ "vue": "^3.4.19",
152
+ "vue-loader": "^17.1.0",
153
+ "vue-style-loader": "^4.1.3",
154
+ "webpack": "^5.81.0",
155
+ "webpack-cli": "^5.0.2",
156
+ "webpack-manifest-plugin": "^5.0.0",
157
+ "webpack-merge": "^5.1.4",
158
+ "webpack-node-externals": "^3.0.0"
159
+ },
160
+ "dependencies": {
161
+ "@googlemaps/js-api-loader": "^2.0.1",
162
+ "@mapbox/geojson-extent": "^1.0.1",
163
+ "@pinia/testing": "^0.1.3",
164
+ "@rollup/plugin-replace": "^6.0.2",
165
+ "@vuelidate/core": "^2.0.2",
166
+ "@vuelidate/validators": "^2.0.2",
167
+ "axios": "^1.4.0",
168
+ "bootstrap-vue-next": "^0.17.0",
169
+ "glob": "^8.1.0",
170
+ "global": "^4.4.0",
171
+ "lodash": "^4.17.21",
172
+ "mapbox-gl": "^1.11.1",
173
+ "mitt": "^3.0.0",
174
+ "pinia": "^2.1.3",
175
+ "vite": "^5.1.3",
176
+ "vue": "^3.3.4",
177
+ "vue-combo-blocks": "^2.1.1",
178
+ "vue-recaptcha": "^2.0.1",
179
+ "vue-youtube-vue-3": "^1.5.0",
180
+ "vue3-charts": "^1.1.33",
181
+ "vue3-lazy-hydration": "^1.2.1",
182
+ "vue3-simple-typeahead": "^1.0.11",
183
+ "vuelidate": "^0.7.7",
184
+ "vuex": "^4.1.0",
185
+ "webpack-merge": "^5.1.4",
186
+ "webpack-node-externals": "^3.0.0",
187
+ "yalc": "^1.0.0-pre.53"
188
+ },
189
+ "peerDependencies": {
190
+ "@popperjs/core": "*",
191
+ "postcss": "*"
192
+ },
193
+ "engines": {
194
+ "node": ">= 16.20.0",
195
+ "npm": ">= 6.14.5",
196
+ "yarn": ">= 1.22.4"
197
+ },
198
+ "browserslist": [
199
+ "> 1%",
200
+ "last 2 versions",
201
+ "not Explorer > 0",
202
+ "IE 11",
203
+ "not ExplorerMobile > 0",
204
+ "not BlackBerry > 0",
205
+ "not OperaMini all",
206
+ "not OperaMobile > 0"
207
+ ],
208
+ "jest": {
209
+ "testPathIgnorePatterns": [
210
+ ".test",
211
+ "node_modules"
212
+ ],
213
+ "jest.pathToJest": "node_modules/.bin/jest"
214
+ },
215
+ "config": {
216
+ "commitizen": {
217
+ "path": "./node_modules/cz-conventional-changelog"
218
+ }
219
+ },
220
+ "bugs": {
221
+ "url": "https://github.com/visitscotland/vs-component-library/issues"
222
+ },
223
+ "resolutions": {
224
+ "minimist": "^0.2.4",
225
+ "json5": "^1.0.2",
226
+ "word-wrap": "^1.2.4",
227
+ "highlight.js": "^10.4.1",
228
+ "semver": "^7.5.4",
229
+ "get-func-name": "^2.0.1",
230
+ "svgo": "3.2.0"
231
+ },
232
+ "packageManager": "yarn@4.6.0"
233
+ }
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMainMap=t():e.VsMainMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1733],{7885:function(e,t,a){"use strict";var n=a(50953),r=a(20641);t.A=function(){var e=(0,n.KR)([]),t=(0,n.KR)(!1),a=(0,n.KR)(!1),o=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesRequired)||t.value})),l=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesLoaded)||{cookieManagerLoaded:a}}));return(0,r.sV)((function(){window.addEventListener("cookieManagerLoaded",(function(){a.value=!0})),window.addEventListener("cookiesUpdated",(function(){var a;a=!1,"undefined"!=typeof CookieControl&&(a=e.value.every((function(e){return!0===CookieControl.getCategoryConsent(e)}))),t.value=a}))})),{requiredCookies:e,cookiesAllowed:o,cookiesLoaded:l}}},12524:function(e,t,a){"use strict";a.r(t);var n=a(88522);a(49928);const r=n.A;t.default=r},37388:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),o=a(97825),l=a.n(o),i=a(77659),c=a.n(i),u=a(55056),s=a.n(u),d=a(10540),p=a.n(d),f=a(41113),v=a.n(f),g=a(91382),y=a.n(g),m={};m.styleTagTransform=v(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=p(),r()(y(),m),y()&&y().locals&&y().locals},44806:function(e,t,a){"use strict";var n=a(10467),r=a(54756),o=a.n(r),l=a(20641),i=a(90033),c=a(50953),u=a(53751),s=a(66239),d=a(83750),p=a(57536),f=a(12903),v=a(84343),g=a(12308),y=a(78202),m=a(7885),b=a(66604),h=a(96763),_={class:"vs-map"},k={class:"vs-map__controls"},w={class:"vs-map-sidebar__sub-filters"},C={id:"search-container"},R={key:0,class:"vs-map__filter-controls"},E={class:"vs-map__wrapper"},x={id:"vs-map","map-id":"vs-map",ref:"vsMap"},S={id:"detail-container"};t.A={__name:"MainMap",props:{apiKey:{type:String,default:(0,s.A)("GOOGLE_MAPS_API_KEY")},mapId:{type:String,default:"vs-map"},mapTypeVector:{type:Boolean,default:!1},center:{type:Object,default:function(){return{lat:56.490153,lng:-4.10959}}},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:function(){}},languageCode:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:function(){}},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noResultsMessage:{type:String,required:!0},resetMapNoResultsMessage:{type:String,required:!0}},setup:function(e){var t,a,r,s,I,A,T,F,L,M,O,j,B=(0,b.A)(),J=e,D={},W=(0,c.KR)(),q=(0,c.KR)(new Set),K=(0,c.KR)(),U=(0,c.KR)(new Set),Y=(0,c.KR)(new Set),z=(0,c.KR)(new Set),Q=(0,c.KR)(new Set),V=(0,c.KR)(),X=(0,c.KR)(),P=(0,c.KR)(J.zoom),Z=(0,c.KR)(),N=(0,c.KR)(new Set),G=(0,c.KR)(),H=(0,l.EW)((function(){var e=new Map,t=ne[W.value].subCategory;return Object.values(t).forEach((function(t){e.set(t.id,{includedTypes:t.includedType,excludedTypes:t.excludedType})})),e})),$=(0,v.default)(),ee=(0,c.KR)(!1),te=(0,c.KR)(void 0),ae={north:60.8,south:54.8,west:-8.5,east:-.7},ne={},re=J.categoryLabels,oe=0;function le(e){var a={strokeColor:"#A3A3CC",strokeOpacity:1,strokeWeight:1,fillColor:"#A3A3CC",fillOpacity:.5},n=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ7Q8cbLY0ZEgRouilirxxux4","ChIJ1YEuRDCFY0gRDeDw8bxbAuo","ChIJv-VNj0VoEkYRK9BkuJ07sKE","ChIJ-1-U7rYnS0YRzZLgw9BDh1I","ChIJ8fA1bTmyXEYRYm-tjaLruCI","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8","ChIJa76xwh5ymkcRW-WRjmtd6HU","ChIJu-SH28MJxkcRnwq9_851obM","ChIJuwtkpGSZAEcR6lXMScpzdQk","ChIJl5fz7WR9wUcR8g_mObTy60c","ChIJMVd4MymgVA0R99lHx5Y__Ws","ChIJ_ZqKe2cw6UYREPzyaM3PAAA","ChIJE74zDxSU3UYRubpdpdNUCvM","ChIJ4wsuREWc40YRewI60MRYJR4","ChIJ_UuggpyUkkYRwyW0T7qf6kA","ChIJ3fYyS9_KgUYREKh1PNZGAQA","ChIJQ2Dro1Ir0kgRmkXB5TQEim8","ChIJFXfA47sNok4RGOIUAYOdzzQ","ChIJI9HkgQm_ikYR8i7GR23fEbY","ChIJUXXYvLMei0YR7zdFQUIM8bA","ChIJRyEhyrlFlUcR75LTAvZg22Q"],r=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"],o=t.getFeatureLayer(google.maps.FeatureType.COUNTRY),l=t.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);e?(o.style=null,l.style=null,o.style=function(e){if(r.includes(e.feature.placeId))return a},l.style=function(e){if(r.includes(e.feature.placeId))return a}):(o.style=function(e){if(n.includes(e.feature.placeId))return a},l.style=function(e){if(n.includes(e.feature.placeId))return a})}function ie(e,t){he(),W.value=e,Object.values(ne[e].subCategory).forEach((function(e){return U.value.add(e.includedType)})),Object.values(ne[e].subCategory).forEach((function(e){e.excludedType&&Y.value.add(e.excludedType)})),U.value=new Set(Array.from(U.value).flat()),Y.value=new Set(Array.from(Y.value).flat()),U.value.forEach((function(e){Y.value.has(e)&&Y.value.delete(e)})),K.value=ne[e],V.value=t,de({includedTypes:Array.from(U.value),excludedTypes:Array.from(Y.value)}),Z.value=re[V.value].label,L.value=Z.value}function ce(e,t){var a=(0,c.KR)([]),n=(0,c.KR)();return e.forEach((function(){re.forEach((function(e){e.id===W.value&&(a.value=e)})),Object.values(a.value).forEach((function(e){Object.values(e).forEach((function(e){t===e.id&&(n.value=e.label)}))}))})),n}function ue(){z.value.forEach((function(e){Q.value.has(e)&&Q.value.delete(e)}))}function se(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.includeTypes,r=void 0!==n&&n,o=a.excludeTypes,l=void 0!==o&&o,i=a.removeIncludedTypes,c=void 0!==i&&i,u=a.removeExcludedTypes,s=void 0!==u&&u,d=H.value.get(e);r&&d.includedTypes.forEach((function(e){r&&z.value.add(e),c&&z.value.delete(e)})),(l||s)&&(null===(t=d.excludedTypes)||void 0===t||t.forEach((function(e){l&&Q.value.add(e),s&&Q.value.delete(e)})))}function de(){return pe.apply(this,arguments)}function pe(){return pe=(0,n.A)(o().mark((function e(){var a,n,l,i,c,u,s,d,p,f,v,g=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(a=g.length>0&&void 0!==g[0]?g[0]:{}).includedTypes,l=void 0===n?[]:n,i=a.excludedTypes,c=void 0===i?[]:i,me(),be(),u=oe+=1,ee.value=!1,$.filterUsesCount+=1,G.value="nearby",s=t.getBounds(),d=s.getNorthEast(),p=s.getSouthWest(),f=google.maps.geometry.spherical.computeDistanceBetween(d,p),v=Math.min(f/2,25e3),A.includedTypes=l,A.excludedTypes=null!=c?c:[],A.maxResultCount=20,A.locationRestriction={center:t.getCenter(),radius:v},r.style.display="block",r.addEventListener("gmp-load",(function(){if(u===oe){ge(u);var e="main",a=W.value;q.value.size&&(e="sub",a=Array.from(q.value).join(", ")),B.createDataLayerObject("googleMapFilterEvent",{filter_type:e,search_map_location:t.getCenter().toString(),filter_selection:a,results_count:r.places.length,filter_usage_index:$.filterUsesCount}),Ce("map_filter")}}),{once:!0});case 1:case"end":return e.stop()}}),e)}))),pe.apply(this,arguments)}function fe(){return ve.apply(this,arguments)}function ve(){return(ve=(0,n.A)(o().mark((function e(){var a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(me(),he(),ee.value=!1,a=oe+=1,$.searchesCount+=1,G.value="text",Z.value=L.value.trim(),Z.value){e.next=1;break}return e.abrupt("return");case 1:"self-catering accommodation"===Z.value?I.textQuery=Z.value:I.textQuery="".concat(Z.value," Scotland"),I.locationBias=t.getCenter(),I.maxResultCount=20,s.style.display="block",s.addEventListener("gmp-load",(function(){a===oe&&(ge(a),B.createDataLayerObject("googleMapSearchEvent",{search_query:Z.value,search_map_location:t.getCenter().toString(),search_results_count:s.places.length,search_usage_index:$.searchesCount}),Ce("map_search"))}),{once:!0});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(e){return ye.apply(this,arguments)}function ye(){return(ye=(0,n.A)(o().mark((function e(a){var n,l,i,u,p,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,d.lB)("marker");case 1:return n=e.sent,l=n.AdvancedMarkerElement,e.next=2,(0,d.lB)("core");case 2:if(i=e.sent,u=i.LatLngBounds,a===oe){e.next=3;break}return e.abrupt("return");case 3:p=(0,c.KR)(),"nearby"===G.value?p.value=r:"text"===G.value?p.value=s:h.error("Unrecognised Search type"),0===p.value.places.length?(ee.value=!0,p.value.style.display="none"):p.value.style.display="block",f=new u,p.value.places&&p.value.places.forEach((function(e){var a=document.createElement("div");a.classList.add("vs-map-marker");var n=document.createElement("i");n.classList.add("fa-solid","fa-location-dot"),a.appendChild(n);var r=new l({map:t,position:e.location,content:a,title:"Map pin"});r.addEventListener("gmp-placeclick",(function(){_e(e)})),r.addListener("click",(function(){_e(e)})),r.metadata={id:e.id},D[e.id]=r,f.extend(e.location),1===p.value.places.length?(t.setCenter({lat:e.location.lat(),lng:e.location.lng()}),t.setZoom(14),t.fitBounds(e.viewport)):(t.setCenter(f.getCenter()),t.fitBounds(f))}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e,a){!function(){for(var e in D)D[e]&&(D[e].map=null);D={}}(),G.value="",r.style.display="none",s.style.display="none",I.textQuery=null,M&&M.close&&M.close(),ee.value=!1,e&&(be(),he(),ke("clear_all")),a&&(t.setCenter(J.center),t.setZoom(J.zoom),t.fitBounds(ae),ke("reset_map"))}function be(){Z.value=null,L.value=""}function he(){W.value=void 0,q.value=new Set,U.value=new Set,Y.value=new Set,z.value=new Set,Q.value=new Set,N.value=new Set,V.value=void 0,X.value=void 0}function _e(e){M.isOpen&&(M.close(),ke("card_close",F.place)),F.place=e,window.innerWidth<=768?(T.style.width="85vw",T.style.height="32em",$.sidebarOpen=!1):(T.style.width="20em",T.style.height="32em"),T.style.display="block",T.style.overflowY="auto",T.style.overflowX="hidden",T.style.boxSizing="border-box",T.style.maxHeight="32em",M.setOptions({content:T,maxWidth:"25em",position:e.location,pixelOffset:new google.maps.Size(0,-32)}),M.open({map:t}),t.fitBounds(e.viewport),google.maps.event.addListenerOnce(t,"idle",(function(){t.getZoom()>17&&t.setZoom(17),ke("card_open",e)})),t.setCenter(e.location)}function ke(e,t){return we.apply(this,arguments)}function we(){return(we=(0,n.A)(o().mark((function e(a,n){var r,l,i,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",l="",i="",c="",!n){e.next=2;break}return e.next=1,n.fetchFields({fields:["displayName","primaryType","rating","websiteURI"]});case 1:r=n.displayName,l=n.rating,i=n.websiteURI,c=n.primaryType;case 2:B.createDataLayerObject("googleMapInteractionEvent",{interaction_type:a,search_query:L.value.trim(),map_location:t.getCenter().toString(),visible_attractions_count:O,card_attraction_name:r,card_attraction_category:c,card_attraction_rating:l,card_attraction_url:i,interaction_timestamp_ms:Date.now()}),Ce(a);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ce(e){if(!$.firstInteraction){var t=Date.now()-$.timeMounted;B.createDataLayerObject("googleMapTimeToFirstInteractionEvent",{time_to_first_interaction_ms:t,first_interaction_type:e}),$.firstInteraction=!0}}function Re(){var e=t.getBounds();if(!e)return 0;for(var a=0,n=0;n<Object.keys(D).length;n++){var r=D[Object.keys(D)[n]].position;e.contains(r)&&(a+=1)}return a}return(0,l.KC)((function(){var e=(0,m.A)();e.requiredCookies.value=g.A.google_maps,j=(0,l.EW)((function(){return!0===J.jsDisabled?(te.value="noJS",!0):(!e.cookiesAllowed.value&&!0===e.cookiesLoaded.value||!e.cookiesLoaded.value)&&(te.value="noCookie",!0)}))})),(0,l.sV)((0,n.A)(o().mark((function e(){var l,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return(i=(0,n.A)(o().mark((function e(){var n,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n={center:{lat:J.center.lat,lng:J.center.lng},renderingType:J.mapTypeVector?google.maps.RenderingType.VECTOR:google.maps.RenderingType.RASTER,zoom:J.zoom,isFractionalZoomEnabled:!0,mapId:J.mapId,restriction:{latLngBounds:ae},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1,gestureHandling:"greedy"},!a){e.next=1;break}(t=new google.maps.Map(a,n)).fitBounds(ae),e.next=2;break;case 1:throw new Error("Init error, mapContainer undefined");case 2:e.next=4;break;case 3:e.prev=3,l=e.catch(0),h.error("Maps init error",l.message);case 4:(M=new google.maps.InfoWindow).addListener("closeclick",(function(){ke("card_close",F.place)})),le(),t.addListener("zoom_changed",(function(){P.value=t.getZoom(),P.value<11?le():le(!0)})),t.addListener("idle",(function(){O=Re()})),r.addEventListener("gmp-select",(function(e){var t=e.place;D[t.id]&&_e(t,D[t.id])})),s.addEventListener("gmp-select",(function(e){var t=e.place;D[t.id]&&_e(t,D[t.id])}));case 5:case"end":return e.stop()}}),e,null,[[0,3]])})))).apply(this,arguments)},l=function(){return i.apply(this,arguments)},J.categoriesLocation&&p.A.get(J.categoriesLocation).then((function(e){ne=e.data})).catch((function(){})),!1!==j.value){e.next=8;break}return(0,d.hn)({key:J.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:J.languageCode}),e.prev=1,e.next=2,(0,d.lB)("maps");case 2:return e.next=3,(0,d.lB)("places");case 3:return e.next=4,(0,d.lB)("marker");case 4:return e.next=5,(0,d.lB)("core");case 5:return e.next=6,(0,d.lB)("geometry");case 6:e.next=8;break;case 7:e.prev=7,e.catch(1),h.error("Google Maps Library load error");case 8:if(a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),s=document.getElementById("textSearch"),I=document.querySelector("gmp-place-text-search-request"),A=document.querySelector("gmp-place-nearby-search-request"),T=document.querySelector("gmp-place-details"),F=document.getElementById("placeRequest"),L=document.getElementById("vs-map-search-input"),$.firstInteraction=!1,$.searchesCount=0,$.filterUsesCount=0,!1!==j.value){e.next=9;break}return e.next=9,l();case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))),function(t,a){var n=(0,l.g2)("gmp-place-nearby-search-request"),r=(0,l.g2)("gmp-place-address"),o=(0,l.g2)("gmp-place-rating"),s=(0,l.g2)("gmp-place-type"),d=(0,l.g2)("gmp-place-price"),p=(0,l.g2)("gmp-place-accessible-entrance-icon"),v=(0,l.g2)("gmp-place-opening-hours"),g=(0,l.g2)("gmp-place-reviews"),m=(0,l.g2)("gmp-place-attribution"),b=(0,l.g2)("gmp-place-content-config"),h=(0,l.g2)("gmp-place-search"),I=(0,l.g2)("gmp-place-text-search-request"),A=(0,l.g2)("gmp-place-details-place-request"),T=(0,l.g2)("gmp-place-website"),F=(0,l.g2)("gmp-place-phone-number"),M=(0,l.g2)("gmp-place-summary"),O=(0,l.g2)("gmp-place-type-specific-highlights"),B=(0,l.g2)("gmp-place-feature-list"),D=(0,l.g2)("gmp-place-media"),K=(0,l.g2)("gmp-place-details");return(0,l.uX)(),(0,l.CE)("div",_,[(0,l.Lk)("div",{class:(0,i.normalizeClass)(["vs-map__container",(0,c.R1)(j)?"d-none":"d-block"])},[(0,l.Lk)("div",k,[(0,l.bF)(y.default,{query:Z.value,"selected-categories":W.value,"header-label":J.labels.heading,"close-sidebar-button-label":J.labels.closeSidebarBtn,"search-bar-aria-label":J.labels.searchBarAriaLabel,"input-placeholder-label":J.labels.inputPlaceholder,"search-button-label":J.labels.searchButton,"clear-map-label":J.labels.clearMap,"sub-filter-header-label":J.labels.subFilterHeader,"search-results-label":J.labels.searchResults,"open-sidebar-button-label":J.labels.openSidebarButton,onSearchInputChanged:fe,onResetMap:a[1]||(a[1]=function(e){return me(!0)})},(0,l.eX)({"vs-map-sidebar-search-results":(0,l.k6)((function(){return[((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",C,[(0,l.bF)(h,{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(n,{id:"nearbySearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1}),(0,l.bF)(h,{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(I,{id:"textSearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1})),ee.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsAlert),{key:0,id:"vs-map__no-results-alert",class:"mt-075 mb-150",size:"small"},{default:(0,l.k6)((function(){return[(0,l.Lk)("span",null,[(0,l.eW)((0,i.toDisplayString)(e.noResultsMessage)+" ",1),(0,l.Lk)("a",{href:"#",onClick:a[0]||(a[0]=(0,u.withModifiers)((function(e){return me(!0,!0)}),["prevent"]))},(0,i.toDisplayString)(e.resetMapNoResultsMessage),1)])]})),_:1})):(0,l.Q3)("",!0)]})),_:2},[W.value?{name:"vs-map-sidebar-sub-filters",fn:(0,l.k6)((function(){return[(0,l.Lk)("div",w,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(re)[V.value].subCategory,(function(e,t){return(0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:t,variant:q.value.has(e.id)?"primary":"secondary",size:"sm",onClick:function(a){return function(e,t){X.value=t,"self-catering"===e?(be(),q.value=new Set,q.value.add(e),Z.value="self-catering accommodation",he(),L.value=Z.value,fe(),L.value="Self Catering"):q.value.has(e)?(q.value.delete(e),z.value=new Set,Q.value=new Set,q.value.forEach((function(e){se(e,{includeTypes:!0,excludeTypes:!0})})),ue(),N.value.delete(ce(q.value,e).value),0===q.value.size?(N.value=new Set,ie(W.value,V.value)):(de({includedTypes:Array.from(z.value).flat(),excludedTypes:Array.from(Q.value).flat()}),Z.value=Array.from(N.value).join(", "),L.value=Z.value)):(q.value.add(e),se(e,{includeTypes:!0,excludeTypes:!0}),ue(),de({includedTypes:Array.from(z.value).flat(),excludedTypes:Array.from(Q.value).flat()}),N.value.add(ce(q.value,e).value),Z.value=Array.from(N.value).join(", "),L.value=Z.value)}(e.id,t)}},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick"])})),128))])]})),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","search-bar-aria-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),P.value>=11&&(0,c.R1)($).sidebarOpen?((0,l.uX)(),(0,l.CE)("div",R,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(re),(function(e,t){return(0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:t,class:"vs-map__filter-controls-button",icon:(0,c.R1)(ne)[e.id].icon,variant:W.value===e.id?"primary":"secondary",onClick:(0,u.withModifiers)((function(a){return ie(e.id,t)}),["prevent"])},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["icon","variant","onClick"])})),128))])):(0,l.Q3)("",!0)]),(0,l.Lk)("div",E,[(0,l.Lk)("div",x,null,512),((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",S,[(0,l.bF)(K,{id:"placeDetails",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(A,{id:"placeRequest"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(T),(0,l.bF)(F),(0,l.bF)(M),(0,l.bF)(O),(0,l.bF)(g),(0,l.bF)(B),(0,l.bF)(D,{"lightbox-preferred":""}),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1}))])],2),(0,c.R1)(j)&&"noCookie"===te.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsWarning),{key:0,type:"cookie",class:(0,i.normalizeClass)(["vs-map__error vs-map__error--no-cookies",(0,c.R1)(j)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(J.cookieBtnText),1)]})),default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(J.noCookiesMessage)+" ",1)]})),_:1},8,["class"])):(0,l.Q3)("",!0),(0,c.R1)(j)&&"noJS"===te.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsWarning),{key:1,"data-test":"vs-map__warning--no-js",class:"vs-map__warning vs-map__warning--no-js"},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.noJsMessage),1)]})),_:1})):(0,l.Q3)("",!0)])}}}},49928:function(e,t,a){"use strict";a(37388)},66604:function(e,t,a){"use strict";a.d(t,{A:function(){return d}});var n=a(64467),r=a(50953),o=a(20641),l=a(4859),i=a(63555),c=a(12554);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,n.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function d(){var e=(0,l.A)(),t=(0,r.KR)(!1);function a(e,t){var a={};return e.forEach((function(e){a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a}function n(){return new Date(Date.now()).toISOString()}function u(t){var a=s(s({},e.GTMData),t);return a.hit_timestamp=n(),a}function d(e){t.value?window.dataLayer.push(e):(0,i.A)("dataLayer",(function(){t.value=!0,window.dataLayer.push(e)}))}return{pageUrl:(0,o.EW)((function(){return e.pageUrl})),createDataLayerObject:function(e,t){var n,r;switch(e){case"googleMapSearchEvent":n=u({event:"map_search",search_query:t.search_query,search_map_location:t.search_map_location,search_results_count:t.search_results_count,search_usage_index:t.search_usage_index}),r=a(c.Ew,n);break;case"googleMapFilterEvent":n=u({event:"map_filter_interaction",filter_type:t.filter_type,search_map_location:t.search_map_location,filter_selection:t.filter_selection,results_count:t.results_count,filter_usage_index:t.filter_usage_index}),r=a(c.cV,n);break;case"googleMapTimeToFirstInteractionEvent":n=u({event:"map_time_to_first_interaction",time_to_first_interaction_ms:t.time_to_first_interaction_ms,first_interaction_type:t.first_interaction_type}),r=a(c.WO,n);break;case"googleMapInteractionEvent":n=u({event:"map_interaction_click",interaction_type:t.interaction_type,search_query:t.search_query,map_location:t.map_location,visible_attractions_count:t.visible_attractions_count,card_attraction_name:t.card_attraction_name,card_attraction_category:t.card_attraction_category,card_attraction_url:t.card_attraction_url,card_attraction_rating:t.card_attraction_rating,interaction_timestamp_ms:t.interaction_timestamp_ms}),r=a(c.cg,n)}r&&d(r)},templateFiller:a,compileFullTemplate:u,returnIsoDate:n,pushToDataLayer:d,dataLayerStore:e}}},88522:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(44806)},91382:function(){}},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,3750,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,5025,7957,9116,7275,4448,9810,3486,378,6494,1688,1454,3614,2491,4360,6305,9856,8861,4179,7933,2710,6955,3706,3484,1371,9054,7553,6086,3130,5945,8167,4921,1288,3990,3293,1244,680,4828,459,2329,4409,6358,1696,80,2152,4145,922,4433,2822,8258,1086,1154,8533,4681,71,7033,7894,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,1120,47,9464,9177,9839,625,6004,5513,7097,7311,8399,5465,6641,9633,5809,3337,7086,2810,3603,8978,3033,630,6649,8759,5807,4712,5048,2761,8693,5782,8407,4562,7906,1841,6175,3642,7692,8462,7231,7195,8573,1106,1379,4999,4232,6431,3609,2759,7848,6241,8817,815,8570,4061,9323,9923,3731,2837,3914,5577,3650,2612,6283,7969,9783,4036,9280,8332,2437,6123,7570,4670,9423,9886,3734,1901,8969,5106,627,538,1493,4297,1474,4856,7006,6689,2903,8202],(function(){return e(e.s=12524)})),e.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8202],{4486:function(){},5710:function(e,t,a){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(17527),n=a(17527),i={class:"vs-map-sidebar__header d-flex"},l={class:"vs-map-sidebar__content"},o={class:"vs-map-sidebar__input d-flex mt-100 mb-050"},d={key:1,class:"vs-map-sidebar__sub-filters-wrapper"},c={class:"vs-map-sidebar__search-results"},u={class:"vs-map-sidebar__google-maps-container mt-075"},p={key:0,class:"vs-map-sidebar__footer"},f=r(a(48836)),b=r(a(43614)),m=r(a(13838)),_=r(a(22142)),v=r(a(84343));t.default=(0,s.defineComponent)({__name:"MapSidebar",props:{query:{type:String,default:""},selectedCategories:{type:String,default:""},headerLabel:{type:String,default:""},closeSidebarButtonLabel:{type:String,default:""},searchBarAriaLabel:{type:String,default:""},inputPlaceholderLabel:{type:String,default:""},searchButtonLabel:{type:String,default:""},clearMapLabel:{type:String,default:""},subFilterHeaderLabel:{type:String,default:""},searchResultsLabel:{type:String,default:""},openSidebarButtonLabel:{type:String,default:""}},emits:["search-input-changed","reset-map"],setup:function(e){var t=(0,v.default)(),a=e;return function(e,r){return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["vs-map-sidebar px-125",(0,n.unref)(t).sidebarOpen?"d-block":"d-none"]),"data-test":"vs-map-sidebar",ref:"vsMapSidebar"},[(0,n.createElementVNode)("div",i,[a.headerLabel?((0,n.openBlock)(),(0,n.createBlock)(m.default,{key:0,level:"1","heading-style":"heading-xxs",class:"flex-grow-1",id:"vs-map-sidebar__heading","data-test":"vs-map-sidebar__heading"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.headerLabel),1)]})),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(f.default,{variant:"tertiary",icon:"vs-icon-control-dismiss","icon-only":"",class:"vs-map-sidebar__sidebar-control vs-map-siderbar__sidebar-control--dismiss","data-test":"vs-map-siderbar__sidebar-control--dismiss",onClick:r[0]||(r[0]=function(e){return(0,n.unref)(t).sidebarOpen=!1})},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.closeSidebarButtonLabel),1)]})),_:1})]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",o,[(0,n.createVNode)(_.default,{type:"text",autocomplete:"off","field-name":"vs-map-search-input","data-test":"vs-map-search-input",ref:"vs-search-input",placeholder:a.inputPlaceholderLabel,class:"vs-map-sidebar__input flex-grow-1","aria-label":a.searchBarAriaLabel,onKeyup:r[1]||(r[1]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"]),["enter"]))},null,8,["placeholder","aria-label"]),(0,n.createVNode)(f.default,{class:"vs-map-sidebar__search-button","data-test":"vs-map-sidebar__search-button",icon:"vs-icon-control-search","icon-only":"",rounded:!1,size:"lg",onClick:r[2]||(r[2]=(0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"])),onKeyup:r[3]||(r[3]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("search-input-changed")}),["prevent"]),["enter"]))},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.searchButtonLabel),1)]})),_:1})]),e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createElementBlock)("a",{key:0,href:"#",class:"d-block","data-test":"vs-map-sidebar__reset-map",onClick:r[4]||(r[4]=(0,n.withModifiers)((function(t){return e.$emit("reset-map")}),["prevent"])),onKeyup:r[5]||(r[5]=(0,n.withKeys)((0,n.withModifiers)((function(t){return e.$emit("reset-map")}),["prevent"]),["enter"]))},(0,n.toDisplayString)(a.clearMapLabel),33)):(0,n.createCommentVNode)("",!0),e.$slots["vs-map-sidebar-sub-filters"]&&e.$slots["vs-map-sidebar-sub-filters"]()?((0,n.openBlock)(),(0,n.createElementBlock)("div",d,[(0,n.createVNode)(b.default,{class:"vs-map-sidebar__sub-filter-header",size:"small",color:"secondary"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.subFilterHeaderLabel),1)]})),_:1}),(0,n.renderSlot)(e.$slots,"vs-map-sidebar-sub-filters")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",c,[e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createBlock)(m.default,{key:0,level:"2","heading-style":"heading-xxxs","data-test":"vs-map-sidebar__search-result-query"},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.searchResultsLabel)+' "'+(0,n.toDisplayString)(a.query||a.selectedCategories)+'" ',1)]})),_:1})):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",u,[(0,n.renderSlot)(e.$slots,"vs-map-sidebar-search-results")])])]),e.$props.query||e.$props.selectedCategories?((0,n.openBlock)(),(0,n.createElementBlock)("div",p,r[7]||(r[7]=[(0,n.createElementVNode)("hr",{class:"vs-map-sidebar__swipe-tab"},null,-1)]))):(0,n.createCommentVNode)("",!0)],2),(0,n.createVNode)(f.default,{class:(0,n.normalizeClass)(["vs-map-sidebar__sidebar-control vs-map-sidebar__sidebar-control--open",(0,n.unref)(t).sidebarOpen?"d-none":"d-block"]),"data-test":"vs-map-sidebar__sidebar-control--open",size:"sm",icon:"fa-regular fa-sliders","icon-only":"",onClick:r[6]||(r[6]=function(e){return(0,n.unref)(t).sidebarOpen=!0})},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(a.openSidebarButtonLabel),1)]})),_:1},8,["class"])],64)}}})},9940:function(e,t,a){"use strict";a(40808)},19876:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return s.a}});var r=a(5710),s=a.n(r),n={};for(var i in r)"default"!==i&&(n[i]=function(e){return r[e]}.bind(0,i));a.d(t,n)},40808:function(e,t,a){"use strict";var r=a(85072),s=a.n(r),n=a(97825),i=a.n(n),l=a(77659),o=a.n(l),d=a(55056),c=a.n(d),u=a(10540),p=a.n(u),f=a(41113),b=a.n(f),m=a(4486),_=a.n(m),v={};v.styleTagTransform=b(),v.setAttributes=c(),v.insert=o().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=p(),s()(_(),v),_()&&_().locals&&_().locals},78202:function(e,t,a){"use strict";a.r(t);var r=a(19876),s={};for(var n in r)"default"!==n&&(s[n]=function(e){return r[e]}.bind(0,n));a.d(t,s),a(9940);const i=r.default;t.default=i},84343:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(17527),s=(0,a(48086).defineStore)("googleMap",(function(){return{sidebarOpen:(0,r.ref)(!0),timeMounted:(0,r.ref)(Date.now()),firstInteraction:(0,r.ref)(!1),searchesCount:(0,r.ref)(0),filterUsesCount:(0,r.ref)(0)}}));t.default=s}}]);
@@ -1 +0,0 @@
1
- .vs-map{--gmp-mat-color-surface: #fff;--gmp-mat-color-on-surface: #200F2E;--gmp-mat-color-on-surface-variant: #606060;--gmp-mat-color-primary: #1F49D6;--gmp-mat-color-negative: #940F2C;--gmp-mat-color-positive: #03AA46;--gmp-mat-color-info: #A8308C;--gmp-mat-color-outline-decorative: #E9E9E9;--gmp-mat-font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.vs-map gmp-place-search,.vs-map gmp-place-details{color-scheme:only light}.vs-map__container{position:relative}.vs-map__wrapper,.vs-map #vs-map{height:90vh;width:100%}.vs-map__wrapper gmp-advanced-marker,.vs-map #vs-map gmp-advanced-marker{width:2rem;height:2rem}.vs-map__wrapper .vs-map-marker,.vs-map #vs-map .vs-map-marker{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background-color:#1f49d6;border-radius:1rem;border:.125em solid #fff;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);transition:transform .1s ease-in-out;font-size:1.5em;color:#fff}.vs-map__wrapper .vs-map-marker:hover,.vs-map #vs-map .vs-map-marker:hover{transform:scale(1.25)}.vs-map__controls{position:absolute;top:1rem;left:1rem;z-index:100;display:flex;flex-direction:column;pointer-events:none;flex-grow:1;min-width:0;width:calc(100vw - 1rem)}@media(min-width: 768px){.vs-map__controls{flex-direction:row}}.vs-map__filter-controls{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;flex:1;height:fit-content;width:calc(100vw - 1rem);margin:.5rem 0rem;padding:.25rem .25rem .5rem .25rem;pointer-events:all;display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.vs-map__filter-controls::-webkit-scrollbar{height:4px}.vs-map__filter-controls::-webkit-scrollbar-track{background:#f2f2f8;border-radius:.25rem}.vs-map__filter-controls::-webkit-scrollbar-thumb{background:#1f49d6;border-radius:.25rem}.vs-map__filter-controls .vs-card{flex:0 0 266px;scroll-snap-align:start;margin-bottom:1.5rem}@media(min-width: 576px){.vs-map__filter-controls .vs-card{flex:0 0 235px}}@media(min-width: 768px){.vs-map__filter-controls .vs-card{flex:0 0 312px}}@media(min-width: 992px){.vs-map__filter-controls .vs-card{flex:0 0 330px}}.vs-map__filter-controls::-webkit-scrollbar-track{margin:0rem 1rem 0rem 0rem}@media(min-width: 768px){.vs-map__filter-controls{width:fit-content;overflow-x:auto;margin:.75rem 0rem 0rem 1rem}}@media(min-width: 992px){.vs-map__filter-controls{flex:0 1 max-content;width:auto}}.vs-map__filter-controls-button{flex:1 0 max-content;pointer-events:auto}.vs-map__filter-controls-button:last-child{margin-right:.25rem}.vs-map__warning{display:none}.no-js .vs-map__container{display:none}.no-js .vs-map__warning{display:none}.no-js .vs-map__warning--no-js{display:block}