@visitscotland/component-library 3.1.4 → 3.1.5
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/CHANGELOG.md +1940 -0
- package/dist/client/manifest.json +203 -175
- package/dist/client/scripts/{40916c320a726e9d566d.js → 105d779c7f9807ed3d58.js} +1 -1
- package/dist/client/scripts/{1d2c28937df8b811947c.js → 1b4a311b8d5ad31cc3eb.js} +1 -1
- package/dist/client/scripts/2076e25b4131d01dcfad.js +1 -0
- package/dist/client/scripts/{b5fad640f69afe308f11.js → 290b6a0d9b49a78a6464.js} +1 -1
- package/dist/client/scripts/{f345e980b578a38dcc9a.js → 2af572b80101c7e6ed0c.js} +1 -1
- package/dist/client/scripts/{d2c54ba404a1cf66db40.js → 438557cde461b95e858e.js} +1 -1
- package/dist/client/scripts/{014696e80aae9192e359.js → 462cc0a8c398f9ea6453.js} +1 -1
- package/dist/client/scripts/{e7a8d37da2ffba5d13f1.js → 4a4bba03a837aab068b3.js} +1 -1
- package/dist/client/scripts/{13014086fd8244546995.js → 5b70a6242c6f7496ece0.js} +1 -1
- package/dist/client/scripts/{b5f382bd1ef86330d29d.js → 5f3bd2c9532ba050212e.js} +1 -1
- package/dist/client/scripts/{62dee53b5ff29bcdf2a4.js → 770b310e1dcf218e43d4.js} +1 -1
- package/dist/client/scripts/{ec628a75cf6053fcd008.js → 7bfd77bae010cc0b87aa.js} +1 -1
- package/dist/client/scripts/{f699f34b6ce80a42b7b2.js → 7f4e4a5aa4da35c26595.js} +1 -1
- package/dist/client/scripts/{6340087a78b5ec9637d8.js → 85e123d32e843b78aa0a.js} +1 -1
- package/dist/client/scripts/{c7b72bcfc9e8773232d1.js → 89577a5283770c07cda5.js} +1 -1
- package/dist/client/scripts/8ab2278f49c60677801a.js +1 -0
- package/dist/client/scripts/8b7aa9171f2ab5dcc1c2.js +1 -0
- package/dist/client/scripts/{b780d82de69f5dc4cc7a.js → 984ca9897b296be08eac.js} +1 -1
- package/dist/client/scripts/{d942e5ec658c176d6750.js → 9a098ad4aa724132003f.js} +1 -1
- package/dist/client/scripts/{8b7ae0ee4655791853d1.js → 9cc3afb024ac0ba5edf7.js} +1 -1
- package/dist/client/scripts/{64f40a0a7b3e5ec5a0b7.js → 9e30ef42f83c24c7fecf.js} +1 -1
- package/dist/client/scripts/{808a63db7e326de214a9.js → 9ef5ce80ce0e639e1a8f.js} +1 -1
- package/dist/client/scripts/{ae03c6bde9ddd1ac2d5e.js → a543af062e9cea9ce2e9.js} +1 -1
- package/dist/client/scripts/{d9a1dbb415d11641ff9f.js → ac440de9fb38e36e51f3.js} +1 -1
- package/dist/client/scripts/{6ce50cc9d208b577f33b.js → bf21c05412d86c08b6a4.js} +1 -1
- package/dist/client/scripts/{d8e6b1ff37198ab047be.js → cbd518f3db84a135ea88.js} +1 -1
- package/dist/client/scripts/{bef607c592b6cb0a9124.js → d1c39f7e4fd5dce82743.js} +1 -1
- package/dist/client/scripts/{ebdfed3713b5d0ace514.js → db91bc3fcc2a1c7c8d58.js} +1 -1
- package/dist/client/scripts/{35336d2943dd00299222.js → df1a9e9cdfcbc4f6037d.js} +1 -1
- package/dist/client/scripts/{3c344a4a70635b58225d.js → e988affbbcfd620bdf01.js} +1 -1
- package/dist/client/scripts/{d26a3d80e6c77f61e906.js → fbc983fc1d97d3ec4968.js} +1 -1
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +1 -2
- package/dist/components/components/video/Video.vue.d.ts +4 -7
- package/dist/components/constants.d.ts +1 -0
- package/dist/components/utils/data-layer-templates.d.ts +1 -0
- package/dist/components/utils/dmo-analytics-logic.d.ts +2 -0
- package/dist/components/vs-component-library.js +165 -165
- package/dist/components/vs-component-library.mjs +5373 -5340
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +230 -230
- package/dist/client/scripts/066d7b3e707ba3f07a31.js +0 -1
- package/dist/client/scripts/45f0025aa5e0e67e90af.js +0 -1
- /package/dist/client/scripts/{a6db4893a81bbd0fa783.js → 1feb7cc75c3832dcabc1.js} +0 -0
- /package/dist/client/styles/{40916c320a726e9d566d.css → 105d779c7f9807ed3d58.css} +0 -0
- /package/dist/client/styles/{45f0025aa5e0e67e90af.css → 2076e25b4131d01dcfad.css} +0 -0
- /package/dist/client/styles/{b5fad640f69afe308f11.css → 290b6a0d9b49a78a6464.css} +0 -0
- /package/dist/client/styles/{d2c54ba404a1cf66db40.css → 438557cde461b95e858e.css} +0 -0
- /package/dist/client/styles/{014696e80aae9192e359.css → 462cc0a8c398f9ea6453.css} +0 -0
- /package/dist/client/styles/{e7a8d37da2ffba5d13f1.css → 4a4bba03a837aab068b3.css} +0 -0
- /package/dist/client/styles/{b5f382bd1ef86330d29d.css → 5f3bd2c9532ba050212e.css} +0 -0
- /package/dist/client/styles/{62dee53b5ff29bcdf2a4.css → 770b310e1dcf218e43d4.css} +0 -0
- /package/dist/client/styles/{f699f34b6ce80a42b7b2.css → 7f4e4a5aa4da35c26595.css} +0 -0
- /package/dist/client/styles/{6340087a78b5ec9637d8.css → 85e123d32e843b78aa0a.css} +0 -0
- /package/dist/client/styles/{c7b72bcfc9e8773232d1.css → 89577a5283770c07cda5.css} +0 -0
- /package/dist/client/styles/{066d7b3e707ba3f07a31.css → 8b7aa9171f2ab5dcc1c2.css} +0 -0
- /package/dist/client/styles/{b780d82de69f5dc4cc7a.css → 984ca9897b296be08eac.css} +0 -0
- /package/dist/client/styles/{d942e5ec658c176d6750.css → 9a098ad4aa724132003f.css} +0 -0
- /package/dist/client/styles/{8b7ae0ee4655791853d1.css → 9cc3afb024ac0ba5edf7.css} +0 -0
- /package/dist/client/styles/{808a63db7e326de214a9.css → 9ef5ce80ce0e639e1a8f.css} +0 -0
- /package/dist/client/styles/{ae03c6bde9ddd1ac2d5e.css → a543af062e9cea9ce2e9.css} +0 -0
- /package/dist/client/styles/{d9a1dbb415d11641ff9f.css → ac440de9fb38e36e51f3.css} +0 -0
- /package/dist/client/styles/{6ce50cc9d208b577f33b.css → bf21c05412d86c08b6a4.css} +0 -0
- /package/dist/client/styles/{d8e6b1ff37198ab047be.css → cbd518f3db84a135ea88.css} +0 -0
- /package/dist/client/styles/{ebdfed3713b5d0ace514.css → db91bc3fcc2a1c7c8d58.css} +0 -0
- /package/dist/client/styles/{35336d2943dd00299222.css → df1a9e9cdfcbc4f6037d.css} +0 -0
- /package/dist/client/styles/{3c344a4a70635b58225d.css → e988affbbcfd620bdf01.css} +0 -0
- /package/dist/client/styles/{d26a3d80e6c77f61e906.css → fbc983fc1d97d3ec4968.css} +0 -0
- /package/dist/ssr/styles/{a136103b1d04d20710a8.css → 262f8bc1236406ae6821.css} +0 -0
package/dist/ssr/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visitscotland/component-library",
|
|
3
|
-
"version": "3.1.
|
|
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
|
-
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
-
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
-
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./maps": {
|
|
20
|
-
"import": "./dist/components/maps.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
-
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
-
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
-
},
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
-
"build-storybook": "yarn theo && storybook build",
|
|
30
|
-
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
-
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
-
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
-
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
-
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
-
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
-
"build:vite": "yarn theo && vite build",
|
|
37
|
-
"build:vite-no-theo": "vite build",
|
|
38
|
-
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
-
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
-
"lint": "eslint",
|
|
41
|
-
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
-
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
-
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
-
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
-
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
-
"prettier": "prettier . --list-different",
|
|
47
|
-
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
-
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
-
"commit": "cz",
|
|
50
|
-
"prepare": "husky install",
|
|
51
|
-
"prepack": "yarn build",
|
|
52
|
-
"release:patch": "standard-version --release-as patch",
|
|
53
|
-
"release:minor": "standard-version --release-as minor",
|
|
54
|
-
"release:major": "standard-version --release-as major"
|
|
55
|
-
},
|
|
56
|
-
"lint-staged": {
|
|
57
|
-
"*.{js,vue,ts}": "eslint"
|
|
58
|
-
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
-
},
|
|
63
|
-
"keywords": [
|
|
64
|
-
"vue.js",
|
|
65
|
-
"visit scotland",
|
|
66
|
-
"vue",
|
|
67
|
-
"design system",
|
|
68
|
-
"design",
|
|
69
|
-
"system"
|
|
70
|
-
],
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@babel/core": "^7.23.2",
|
|
73
|
-
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
-
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
-
"@babel/polyfill": "^7.10.4",
|
|
79
|
-
"@babel/preset-env": "^7.23.2",
|
|
80
|
-
"@babel/preset-react": "7.12.13",
|
|
81
|
-
"@chromatic-com/storybook": "^1.3.4",
|
|
82
|
-
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
-
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
-
"@storybook/addon-a11y": "^8.0.10",
|
|
85
|
-
"@storybook/addon-essentials": "^8.0.10",
|
|
86
|
-
"@storybook/addon-interactions": "^8.0.10",
|
|
87
|
-
"@storybook/addon-links": "^8.0.10",
|
|
88
|
-
"@storybook/blocks": "8.0.10",
|
|
89
|
-
"@storybook/vue3": "^8.0.10",
|
|
90
|
-
"@storybook/vue3-vite": "^8.0.10",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
92
|
-
"@typescript-eslint/parser": "^5.59.8",
|
|
93
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
94
|
-
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
95
|
-
"@vue/test-utils": "^2.3.2",
|
|
96
|
-
"@vue/vue3-jest": "^29.2.4",
|
|
97
|
-
"babel-jest": "^29.5.0",
|
|
98
|
-
"babel-loader": "^9.1.2",
|
|
99
|
-
"babel-plugin-macros": "^2.4.2",
|
|
100
|
-
"bootstrap": "^5.3.2",
|
|
101
|
-
"chromatic": "^6.17.3",
|
|
102
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
-
"commitizen": "^4.3.0",
|
|
104
|
-
"cross-env": "^7.0.3",
|
|
105
|
-
"css-loader": "^6.7.3",
|
|
106
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
107
|
-
"dotenv-webpack": "^8.0.1",
|
|
108
|
-
"eslint": "^8.2.0",
|
|
109
|
-
"eslint-import-resolver-webpack": "^0.13.2",
|
|
110
|
-
"eslint-plugin-import": "^2.25.2",
|
|
111
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
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
|
-
"node-sass": "^8.0.0",
|
|
125
|
-
"npm-run-all": "^4.1.5",
|
|
126
|
-
"optimist": "^0.6.1",
|
|
127
|
-
"path": "^0.12.7",
|
|
128
|
-
"postcss-safe-parser": "^6.0.0",
|
|
129
|
-
"prettier": "^3.2.5",
|
|
130
|
-
"require-context.macro": "^1.2.2",
|
|
131
|
-
"sass": "^1.62.1",
|
|
132
|
-
"sass-loader": "^13.2.2",
|
|
133
|
-
"speed-measure-webpack-plugin": "^1.5.0",
|
|
134
|
-
"standard-version": "^9.5.0",
|
|
135
|
-
"storybook": "^8.0.10",
|
|
136
|
-
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
137
|
-
"storybook-addon-mock": "^5.0.0",
|
|
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-jest": "^5.0.0-alpha.10",
|
|
151
|
-
"vue-loader": "^17.1.0",
|
|
152
|
-
"vue-style-loader": "^4.1.3",
|
|
153
|
-
"webpack": "^5.81.0",
|
|
154
|
-
"webpack-cli": "^5.0.2",
|
|
155
|
-
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
-
"webpack-merge": "^5.1.4",
|
|
157
|
-
"webpack-node-externals": "^3.0.0"
|
|
158
|
-
},
|
|
159
|
-
"dependencies": {
|
|
160
|
-
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
-
"@pinia/testing": "^0.1.3",
|
|
162
|
-
"@storybook/addon-a11y": "^7.5.3",
|
|
163
|
-
"@storybook/test": "^8.0.10",
|
|
164
|
-
"@vuelidate/core": "^2.0.2",
|
|
165
|
-
"@vuelidate/validators": "^2.0.2",
|
|
166
|
-
"axios": "^1.4.0",
|
|
167
|
-
"bootstrap-vue-next": "^0.17.0",
|
|
168
|
-
"glob": "^8.1.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
|
-
},
|
|
186
|
-
"peerDependencies": {
|
|
187
|
-
"@popperjs/core": "*",
|
|
188
|
-
"postcss": "*"
|
|
189
|
-
},
|
|
190
|
-
"engines": {
|
|
191
|
-
"node": ">= 16.20.0",
|
|
192
|
-
"npm": ">= 6.14.5",
|
|
193
|
-
"yarn": ">= 1.22.4"
|
|
194
|
-
},
|
|
195
|
-
"browserslist": [
|
|
196
|
-
"> 1%",
|
|
197
|
-
"last 2 versions",
|
|
198
|
-
"not Explorer > 0",
|
|
199
|
-
"IE 11",
|
|
200
|
-
"not ExplorerMobile > 0",
|
|
201
|
-
"not BlackBerry > 0",
|
|
202
|
-
"not OperaMini all",
|
|
203
|
-
"not OperaMobile > 0"
|
|
204
|
-
],
|
|
205
|
-
"jest": {
|
|
206
|
-
"testPathIgnorePatterns": [
|
|
207
|
-
".test",
|
|
208
|
-
"node_modules"
|
|
209
|
-
],
|
|
210
|
-
"jest.pathToJest": "node_modules/.bin/jest"
|
|
211
|
-
},
|
|
212
|
-
"config": {
|
|
213
|
-
"commitizen": {
|
|
214
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"bugs": {
|
|
218
|
-
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
219
|
-
},
|
|
220
|
-
"resolutions": {
|
|
221
|
-
"minimist": "^0.2.4",
|
|
222
|
-
"json5": "^1.0.2",
|
|
223
|
-
"word-wrap": "^1.2.4",
|
|
224
|
-
"highlight.js": "^10.4.1",
|
|
225
|
-
"semver": "^7.5.4",
|
|
226
|
-
"get-func-name": "^2.0.1",
|
|
227
|
-
"svgo": "3.2.0"
|
|
228
|
-
},
|
|
229
|
-
"packageManager": "yarn@4.3.1"
|
|
230
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@visitscotland/component-library",
|
|
3
|
+
"version": "3.1.5",
|
|
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
|
+
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
+
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
+
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./maps": {
|
|
20
|
+
"import": "./dist/components/maps.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
+
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
+
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
+
"build-storybook": "yarn theo && storybook build",
|
|
30
|
+
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
+
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
+
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
+
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
+
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
+
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
+
"build:vite": "yarn theo && vite build",
|
|
37
|
+
"build:vite-no-theo": "vite build",
|
|
38
|
+
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
+
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
+
"lint": "eslint",
|
|
41
|
+
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
+
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
+
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
+
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
+
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
+
"prettier": "prettier . --list-different",
|
|
47
|
+
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
+
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
+
"commit": "cz",
|
|
50
|
+
"prepare": "husky install",
|
|
51
|
+
"prepack": "yarn build",
|
|
52
|
+
"release:patch": "standard-version --release-as patch",
|
|
53
|
+
"release:minor": "standard-version --release-as minor",
|
|
54
|
+
"release:major": "standard-version --release-as major"
|
|
55
|
+
},
|
|
56
|
+
"lint-staged": {
|
|
57
|
+
"*.{js,vue,ts}": "eslint"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"vue.js",
|
|
65
|
+
"visit scotland",
|
|
66
|
+
"vue",
|
|
67
|
+
"design system",
|
|
68
|
+
"design",
|
|
69
|
+
"system"
|
|
70
|
+
],
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@babel/core": "^7.23.2",
|
|
73
|
+
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
+
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
+
"@babel/polyfill": "^7.10.4",
|
|
79
|
+
"@babel/preset-env": "^7.23.2",
|
|
80
|
+
"@babel/preset-react": "7.12.13",
|
|
81
|
+
"@chromatic-com/storybook": "^1.3.4",
|
|
82
|
+
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
+
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
+
"@storybook/addon-a11y": "^8.0.10",
|
|
85
|
+
"@storybook/addon-essentials": "^8.0.10",
|
|
86
|
+
"@storybook/addon-interactions": "^8.0.10",
|
|
87
|
+
"@storybook/addon-links": "^8.0.10",
|
|
88
|
+
"@storybook/blocks": "8.0.10",
|
|
89
|
+
"@storybook/vue3": "^8.0.10",
|
|
90
|
+
"@storybook/vue3-vite": "^8.0.10",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
92
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
93
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
94
|
+
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
95
|
+
"@vue/test-utils": "^2.3.2",
|
|
96
|
+
"@vue/vue3-jest": "^29.2.4",
|
|
97
|
+
"babel-jest": "^29.5.0",
|
|
98
|
+
"babel-loader": "^9.1.2",
|
|
99
|
+
"babel-plugin-macros": "^2.4.2",
|
|
100
|
+
"bootstrap": "^5.3.2",
|
|
101
|
+
"chromatic": "^6.17.3",
|
|
102
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
103
|
+
"commitizen": "^4.3.0",
|
|
104
|
+
"cross-env": "^7.0.3",
|
|
105
|
+
"css-loader": "^6.7.3",
|
|
106
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
107
|
+
"dotenv-webpack": "^8.0.1",
|
|
108
|
+
"eslint": "^8.2.0",
|
|
109
|
+
"eslint-import-resolver-webpack": "^0.13.2",
|
|
110
|
+
"eslint-plugin-import": "^2.25.2",
|
|
111
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
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
|
+
"node-sass": "^8.0.0",
|
|
125
|
+
"npm-run-all": "^4.1.5",
|
|
126
|
+
"optimist": "^0.6.1",
|
|
127
|
+
"path": "^0.12.7",
|
|
128
|
+
"postcss-safe-parser": "^6.0.0",
|
|
129
|
+
"prettier": "^3.2.5",
|
|
130
|
+
"require-context.macro": "^1.2.2",
|
|
131
|
+
"sass": "^1.62.1",
|
|
132
|
+
"sass-loader": "^13.2.2",
|
|
133
|
+
"speed-measure-webpack-plugin": "^1.5.0",
|
|
134
|
+
"standard-version": "^9.5.0",
|
|
135
|
+
"storybook": "^8.0.10",
|
|
136
|
+
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
137
|
+
"storybook-addon-mock": "^5.0.0",
|
|
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-jest": "^5.0.0-alpha.10",
|
|
151
|
+
"vue-loader": "^17.1.0",
|
|
152
|
+
"vue-style-loader": "^4.1.3",
|
|
153
|
+
"webpack": "^5.81.0",
|
|
154
|
+
"webpack-cli": "^5.0.2",
|
|
155
|
+
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
+
"webpack-merge": "^5.1.4",
|
|
157
|
+
"webpack-node-externals": "^3.0.0"
|
|
158
|
+
},
|
|
159
|
+
"dependencies": {
|
|
160
|
+
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
+
"@pinia/testing": "^0.1.3",
|
|
162
|
+
"@storybook/addon-a11y": "^7.5.3",
|
|
163
|
+
"@storybook/test": "^8.0.10",
|
|
164
|
+
"@vuelidate/core": "^2.0.2",
|
|
165
|
+
"@vuelidate/validators": "^2.0.2",
|
|
166
|
+
"axios": "^1.4.0",
|
|
167
|
+
"bootstrap-vue-next": "^0.17.0",
|
|
168
|
+
"glob": "^8.1.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
|
+
},
|
|
186
|
+
"peerDependencies": {
|
|
187
|
+
"@popperjs/core": "*",
|
|
188
|
+
"postcss": "*"
|
|
189
|
+
},
|
|
190
|
+
"engines": {
|
|
191
|
+
"node": ">= 16.20.0",
|
|
192
|
+
"npm": ">= 6.14.5",
|
|
193
|
+
"yarn": ">= 1.22.4"
|
|
194
|
+
},
|
|
195
|
+
"browserslist": [
|
|
196
|
+
"> 1%",
|
|
197
|
+
"last 2 versions",
|
|
198
|
+
"not Explorer > 0",
|
|
199
|
+
"IE 11",
|
|
200
|
+
"not ExplorerMobile > 0",
|
|
201
|
+
"not BlackBerry > 0",
|
|
202
|
+
"not OperaMini all",
|
|
203
|
+
"not OperaMobile > 0"
|
|
204
|
+
],
|
|
205
|
+
"jest": {
|
|
206
|
+
"testPathIgnorePatterns": [
|
|
207
|
+
".test",
|
|
208
|
+
"node_modules"
|
|
209
|
+
],
|
|
210
|
+
"jest.pathToJest": "node_modules/.bin/jest"
|
|
211
|
+
},
|
|
212
|
+
"config": {
|
|
213
|
+
"commitizen": {
|
|
214
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"bugs": {
|
|
218
|
+
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
219
|
+
},
|
|
220
|
+
"resolutions": {
|
|
221
|
+
"minimist": "^0.2.4",
|
|
222
|
+
"json5": "^1.0.2",
|
|
223
|
+
"word-wrap": "^1.2.4",
|
|
224
|
+
"highlight.js": "^10.4.1",
|
|
225
|
+
"semver": "^7.5.4",
|
|
226
|
+
"get-func-name": "^2.0.1",
|
|
227
|
+
"svgo": "3.2.0"
|
|
228
|
+
},
|
|
229
|
+
"packageManager": "yarn@4.3.1"
|
|
230
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[5676],{91225:function(){},53968:function(t,e,n){"use strict";var a=n(46422),r=n(98745);e.A={name:"VsLink",status:"prototype",release:"0.0.2",components:{VsIcon:a.default},mixins:[r.default],props:{href:{type:String,default:null},type:{type:String,default:"default",validator:function(t){return t.match(/(default|external|internal|download)/)}},variant:{type:String,default:"primary",validator:function(t){return t.match(/(primary|on-dark)/)}},iconSize:{type:String,default:"xxs",validator:function(t){return t.match(/(xxs|xs|sm|md|lg|xl)/)}},disabled:{type:Boolean,default:!1},dataLayerValue:{type:String,default:null}},computed:{variantClass:function(){return"vs-link--variant-".concat(this.variant)}},methods:{clickHandler:function(t){t.preventDefault(),this.dataLayerValue?this.createDataLayerObject(this.dataLayerValue,t,this.href):"external"===this.type?this.createDataLayerObject("externalLinkDataEvent",t,this.href):this.createDataLayerObject("internalLinkDataEvent",t,this.href),"#"!==this.href&&null!==this.href&&(window.location.href=this.href)},keyHandler:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.clickHandler(t))}}}},23341:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var a=n(20641),r=["href","download","disabled","tabindex"];function i(t,e,n,i,l,s){var o=(0,a.g2)("VsIcon");return(0,a.uX)(),(0,a.CE)("a",(0,a.v6)({class:["vs-link",["vs-link--variant-".concat(n.variant)]],href:n.href,target:"_self",download:"download"===n.type?"true":null,disabled:n.disabled,tabindex:n.disabled?"-1":"0"},t.$attrs,{onClick:e[0]||(e[0]=function(t){return s.clickHandler(t)}),onKeydown:e[1]||(e[1]=function(t){return s.keyHandler(t)})}),[(0,a.RG)(t.$slots,"default"),"default"!==n.type?((0,a.uX)(),(0,a.Wv)(o,{key:0,name:"".concat(n.type,"-link"),variant:"primary",size:n.iconSize,class:"ms-1 vs-link__icon"},null,8,["name","size"])):(0,a.Q3)("",!0)],16,r)}},46279:function(t,e,n){"use strict";var a=n(85072),r=n.n(a),i=n(97825),l=n.n(i),s=n(77659),o=n.n(s),u=n(55056),c=n.n(u),d=n(10540),f=n.n(d),h=n(41113),y=n.n(h),v=n(91225),p=n.n(v),k={};k.styleTagTransform=y(),k.setAttributes=c(),k.insert=o().bind(null,"head"),k.domAPI=l(),k.insertStyleElement=f(),r()(p(),k),p()&&p().locals&&p().locals},45676:function(t,e,n){"use strict";n.r(e);var a=n(23341),r=n(54052);n(72043);const i=(0,n(66262).A)(r.A,[["render",a.X]]);e.default=i},54052:function(t,e,n){"use strict";n.d(e,{A:function(){return a.A}});var a=n(53968)},72043:function(t,e,n){"use strict";n(46279)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3293],{54193:function(){},29939:function(e,t,n){"use strict";var a=n(85072),o=n.n(a),r=n(97825),l=n.n(r),u=n(77659),c=n.n(u),i=n(55056),s=n.n(i),d=n(10540),f=n.n(d),v=n(41113),p=n.n(v),m=n(54193),h=n.n(m),b={};b.styleTagTransform=p(),b.setAttributes=s(),b.insert=c().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=f(),o()(h(),b),h()&&h().locals&&h().locals},59061:function(e,t,n){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,u)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(17527),c=n(17527),i={class:"vs-product-search-embed","data-test":"vs-product-search-embed"},s={key:0,class:"container"},d={class:"row"},f={class:"col-12"},v=["action"],p={class:"form-group product-search__type mb-4"},m={for:"prodtypes"},h={class:"product-search__in d-none d-md-block mt-4"},b={"aria-live":"polite"},y=["disabled","value"],k=["disabled","value"],g=["value"],w={key:4,type:"hidden",name:"areaproxdist",value:"10"},_={key:5},x={key:0,class:"form-group"},E={for:"search-keyword"},T={key:2},B=["value"],N={key:0},V=["value"],L=n(17527),S=n(378),C=n(8611),D=n(10293),P=n(45906),j=l(n(35025)),O=l(n(51688)),U=l(n(22142)),M=l(n(58861)),A=l(n(34900)),I=l(n(19856)),F=l(n(48836)),R=n(17527),G=l(n(98745)),J=(0,R.defineComponent)({mixins:[G.default],methods:{trackSubmit:function(e,t){this.createDataLayerObject("productSearchDataEvent",{searchType:e,searchLocation:t.name},this.href)}}});t.default=(0,u.defineComponent)(a(a({},J),{__name:"ProductSearchEmbed",props:{defaultProd:{type:String,default:"acti,attr,reta",validator:function(e){return["acco","cate","even","tour","acti,attr,reta"].includes(e)}},defaultLocale:{type:String,default:"",validator:function(e){return["en","fr","de","es","it","nl",""].includes(e)}},defaultLocation:{type:String,default:""}},setup:function(e){var t=this,n=e,l=(0,L.ref)(!1),u=(0,L.ref)(),R=(0,L.ref)([]),G=((0,L.ref)(null),(0,L.ref)());G.value={id:"",key:"",name:"",type:""};var J=(0,L.ref)("off"),Y=(0,L.ref)(!1),z=(0,L.computed)((function(){var e=void 0===u.value?"see-do":u.value;return"/info/".concat(C.paths[e])})),H=(0,L.ref)(!1),K={en:{localeUrl:""},fr:{localeUrl:"fr-fr"},de:{localeUrl:"de-de"},es:{localeUrl:"es-es"},it:{localeUrl:"it-it"},nl:{localeUrl:"nl-nl"}},q=(0,L.computed)((function(){var e=n.defaultLocale.length>0?n.defaultLocale:(0,S.getLocale)();return"en"===e&&(e=""),e})),Q=(0,L.computed)((function(){if("undefined"!=typeof window){var e=window.location.origin;return e.includes("localhost")?"https://www.visitscotland.com":e}return"https://www.visitscotland.com"})),W=(0,L.computed)((function(){return"".concat(Q.value).concat(q.value?"/"+q.value:"").concat(z.value,"/search-results")})),X="https://www.visitscotland.com/data/locations"+"?locale=".concat(q.value),Z=(0,L.ref)([]),$=(0,L.ref)([]),ee=(0,L.ref)([]),te=(0,L.ref)([]),ne=(0,L.computed)((function(){return l.value?[]:te.value.map((function(e){return a(a({},e),{text:(0,S.getProductName)(e.value,e.text)})}))})),ae=function(){return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)("https://www.visitscotland.com/tms-api/v1/origins?active=1")];case 1:return(e=t.sent())&&(ee.value=e.data),[2]}}))}))},oe=function(){return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)("https://www.visitscotland.com/tms-api/v1/attractions")];case 1:return(e=t.sent())&&($.value=e.data),[2]}}))}))},re=function(e,t){G.value="key"===t?Z.value.find((function(t){return t.key===e})):"id"===t?Z.value.find((function(t){return t.id===e})):Z.value.find((function(t){return t.name===e.trim()}))},le=function(){l.value=!0,(0,L.nextTick)((function(){l.value=!1,""!==n.defaultLocation&&H&&re(n.defaultLocation,"id")}))},ue=(0,L.computed)((function(){return"cate"!==u.value&&"acti,attr,reta"!==u.value?"d-lg-flex":""}));(0,L.onBeforeMount)((function(){return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){return window.VS={},(e=document.createElement("script")).async=!1,e.onload=le,e.setAttribute("src","https://www.visitscotland.com/".concat((K[n.defaultLocale]||"").localeUrl,"/data/template/search.js")),document.head.appendChild(e),[2]}))}))})),(0,L.onMounted)((function(){return o(t,void 0,void 0,(function(){return r(this,(function(e){var a,l;return o(t,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return[4,(0,P.getData)(X)];case 1:return(e=t.sent())&&(Z.value=e.data),[2]}}))})),H.value=!0,u.value=n.defaultProd,"tour"===u.value&&(ae(),oe()),a=(0,D.getProductTypes)(),l=[],a.forEach((function(e){l.push(e)})),te.value=l,[2]}))}))}));var ce=function(e){Y.value=!0;var t=e.currentTarget;setTimeout((function(){t.submit()}),500)};return function(t,n){var a,o,r,L,D,P;return(0,c.openBlock)(),(0,c.createElementBlock)("div",i,[l.value?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createElementBlock)("div",s,[(0,c.createElementVNode)("div",d,[(0,c.createElementVNode)("div",f,[(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createElementBlock)("form",{key:0,action:W.value,onSubmit:(0,c.withModifiers)(ce,["prevent"]),"accept-charset":"UTF-8","data-test":"psw-form"},[(0,c.createElementVNode)("div",p,[(0,c.createElementVNode)("label",m,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("search_for","I'm looking for")),1),(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(ue.value)},[(0,c.createVNode)(O.default,{options:ne.value,value:e.defaultProd,onUpdated:n[0]||(n[0]=function(e){return t=e.value,u.value=t,void("tour"===t&&(ae(),oe()));var t}),"field-name":"prodtypes"},null,8,["options","value"]),(0,c.createElementVNode)("div",h,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("in","in")),1)],2)]),(0,c.createElementVNode)("div",b,["tour"!=u.value&&(0,c.unref)(H)?((0,c.openBlock)(),(0,c.createBlock)(M.default,{key:0,id:"search-location",label:(0,c.unref)(S.getLabelText)("location","Location"),"multiselect-label":"name",name:"loc",options:Z.value,placeholder:(0,c.unref)(S.getLabelText)("location_placeholder","Enter a location"),"track-by":"name",onChangeValue:n[1]||(n[1]=function(e){return re(e)}),"default-val":(0,c.unref)(G),"data-chromatic":"ignore"},null,8,["label","options","placeholder","default-val"])):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:1,type:"hidden",name:"locplace",disabled:"POLYGON"===(null===(a=(0,c.unref)(G))||void 0===a?void 0:a.type),value:(null===(o=(0,c.unref)(G))||void 0===o?void 0:o.key)||""},null,8,y)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:2,type:"hidden",name:"locpoly",disabled:"POLYGON"!==(null===(r=(0,c.unref)(G))||void 0===r?void 0:r.type),value:(null===(L=(0,c.unref)(G))||void 0===L?void 0:L.key)||""},null,8,k)):(0,c.createCommentVNode)("",!0),"tour"!==u.value?((0,c.openBlock)(),(0,c.createElementBlock)("input",{key:3,type:"hidden",name:"locprox",value:"DISTRICT"===(null===(D=(0,c.unref)(G))||void 0===D?void 0:D.type)?1:0},null,8,g)):(0,c.createCommentVNode)("",!0),"tour"!==u.value&&"DISTRICT"===(null===(P=(0,c.unref)(G))||void 0===P?void 0:P.type)?((0,c.openBlock)(),(0,c.createElementBlock)("input",w)):(0,c.createCommentVNode)("",!0),"even"===u.value||"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",_,[(0,c.createVNode)(I.default,{"start-label":(0,c.unref)(S.getLabelText)("startdate","Start Date","dates"),"end-label":(0,c.unref)(S.getLabelText)("enddate","End Date","dates"),onDateUpdated:n[2]||(n[2]=function(e){return function(e){J.value=e?"on":"off"}(e)}),"default-dates":Y.value,"selected-prod":u.value},null,8,["start-label","end-label","default-dates","selected-prod"]),"even"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",x,[(0,c.createElementVNode)("label",E,(0,c.toDisplayString)((0,c.unref)(S.getLabelText)("keywords","Keywords")),1),(0,c.createVNode)(U.default,{"field-name":"search-keyword",placeholder:(0,c.unref)(S.getLabelText)("events_keywords_placeholder","Highland games, music festivals etc"),name:"name"},null,8,["placeholder"])])):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createBlock)(A.default,{key:1,availability:!0,id:"guest-selector"})):(0,c.createCommentVNode)("",!0),"acco"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",T,[(0,c.createElementVNode)("input",{hidden:"true",name:"avail",value:J.value},null,8,B)])):(0,c.createCommentVNode)("",!0)])):(0,c.createCommentVNode)("",!0)]),"tour"===u.value?((0,c.openBlock)(),(0,c.createElementBlock)("div",N,[(0,c.createVNode)(M.default,{id:"tour-origin",label:(0,c.unref)(S.getLabelText)("tour_origin","Starting point"),"multiselect-label":"name",name:"origins[]",options:ee.value,placeholder:(0,c.unref)(S.getLabelText)("tour_origin_placeholder","Location"),"track-by":"name","is-tour-location":!0},null,8,["label","options","placeholder"]),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(R.value,(function(e){return(0,c.openBlock)(),(0,c.createElementBlock)("input",{type:"hidden",name:"attractions[]",value:e},null,8,V)})),256)),(0,c.createVNode)(M.default,{id:"tour-month",label:(0,c.unref)(S.getLabelText)("tour_month","I'm traveling in"),"multiselect-label":"label",name:"when",options:(0,c.unref)(S.getLabelText)("months",(0,c.unref)(C.monthsEnglish)),placeholder:(0,c.unref)(S.getLabelText)("tour_month_placeholder","Select month"),"track-by":"value"},null,8,["label","options","placeholder"])])):(0,c.createCommentVNode)("",!0),(0,c.createVNode)(F.default,{class:"mt-6","data-test":"psw-submit",type:"submit",onClick:n[3]||(n[3]=function(e){return t.trackSubmit(u.value,void 0===(0,c.unref)(G)?"":(0,c.unref)(G))})},{default:(0,c.withCtx)((function(){return[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(S.getLabelText)("search","Search")),1)]})),_:1})],40,v)):(0,c.createCommentVNode)("",!0),(0,c.unref)(H)?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(),(0,c.createBlock)(j.default,{key:1,variant:"dark"}))])])]))])}}}))},8611:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.monthsEnglish=t.paths=t.products=void 0,t.products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],t.paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},t.monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}]},45906:function(e,t,n){"use strict";var a=n(96763),o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(o,r){function l(e){try{c(a.next(e))}catch(e){r(e)}}function u(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,u)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,a,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(l=0)),l;)try{if(n=1,a&&(o=2&u[0]?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,a=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){l=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){l.label=u[1];break}if(6===u[0]&&l.label<o[1]){l.label=o[1],o=u;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(u);break}o[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],a=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getData=void 0;var u=l(n(86425));t.getData=function(e){return o(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,u.default.get(e)];case 1:return[2,n.sent().data];case 2:return t=n.sent(),a.error("Axios error: ".concat(t)),[3,3];case 3:return[2]}}))}))}},10293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getProductTypes=t.getURLParameters=void 0;var a,o=n(8611);a="undefined"!=typeof window&&"object"==typeof window.VS?window.VS:{},t.getURLParameters=function(){var e=new URLSearchParams(document.location.search),t=Object.fromEntries(e);return"object"==typeof t&&Object.keys(t).forEach((function(e){return null===t[e]&&delete t[e]})),t},t.getProductTypes=function(){if(Object.keys(a).length<=0)return o.products;var e=a.search_config.basic_config.productTypes,t=[];return Object.keys(e).forEach((function(n){t.push({key:e[n].value,text:e[n].text,value:e[n].value})})),t}},93293:function(e,t,n){"use strict";n.r(t);var a=n(43423),o={};for(var r in a)"default"!==r&&(o[r]=function(e){return a[e]}.bind(0,r));n.d(t,o),n(61855);const l=a.default;t.default=l},61855:function(e,t,n){"use strict";n(29939)},43423:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o.a}});var a=n(59061),o=n.n(a),r={};for(var l in a)"default"!==l&&(r[l]=function(e){return a[e]}.bind(0,l));n.d(t,r)}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|