@visitscotland/component-library 4.3.6 → 4.3.8

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.
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/3d7e4e92e7140ff599ae.css"
23
+ "styles/8d0a04782e54e55d2f8b.css"
24
24
  ]
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,231 +1,231 @@
1
- {
2
- "name": "@visitscotland/component-library",
3
- "version": "4.3.6",
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 && 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
- "@semantic-release/npm": "^12.0.1",
85
- "@storybook/addon-a11y": "^8.0.10",
86
- "@storybook/addon-essentials": "^8.0.10",
87
- "@storybook/addon-interactions": "^8.0.10",
88
- "@storybook/addon-links": "^8.0.10",
89
- "@storybook/blocks": "8.0.10",
90
- "@storybook/vue3": "^8.0.10",
91
- "@storybook/vue3-vite": "^8.0.10",
92
- "@typescript-eslint/eslint-plugin": "^5.59.8",
93
- "@typescript-eslint/parser": "^5.59.8",
94
- "@vitejs/plugin-vue": "^5.0.4",
95
- "@vue/eslint-config-airbnb": "^7.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-webpack": "^0.13.2",
111
- "eslint-plugin-import": "^2.25.2",
112
- "eslint-plugin-storybook": "^0.8.0",
113
- "eslint-plugin-vue": "^9.11.1",
114
- "eslint-webpack-plugin": "^4.0.1",
115
- "file-loader": "^6.2.0",
116
- "husky": "^8.0.3",
117
- "jest": "^29.5.0",
118
- "jest-axe": "^8.0.0",
119
- "jest-environment-jsdom": "^29.5.0",
120
- "jest-serializer-vue": "^3.1.0",
121
- "lint-staged": "^15.2.2",
122
- "mini-css-extract-plugin": "^2.7.5",
123
- "moxios": "^0.4.0",
124
- "node-polyfill-webpack-plugin": "^2.0.1",
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
- "semantic-release": "^24.2.0",
134
- "speed-measure-webpack-plugin": "^1.5.0",
135
- "standard-version": "^9.5.0",
136
- "storybook": "^8.0.10",
137
- "storybook-addon-datalayer-watcher": "^1.0.2",
138
- "storybook-addon-mock": "^5.0.0",
139
- "style-loader": "^3.3.2",
140
- "svgo-loader": "^4.0.0",
141
- "theo": "^8.1.5",
142
- "time-analytics-webpack-plugin": "^0.1.20",
143
- "ts-jest": "^29.1.0",
144
- "ts-loader": "^9.4.3",
145
- "typescript": "^5.0.4",
146
- "upgrade": "^1.1.0",
147
- "vite": "^5.2.10",
148
- "vite-plugin-dts": "^3.7.2",
149
- "vite-plugin-turbosnap": "^1.0.2",
150
- "vue": "^3.4.19",
151
- "vue-jest": "^5.0.0-alpha.10",
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
- "@mapbox/geojson-extent": "^1.0.1",
162
- "@pinia/testing": "^0.1.3",
163
- "@storybook/addon-a11y": "^7.5.3",
164
- "@storybook/test": "^8.0.10",
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
- "lodash": "^4.17.21",
171
- "mapbox-gl": "^1.11.1",
172
- "mitt": "^3.0.0",
173
- "pinia": "^2.1.3",
174
- "vite": "^5.1.3",
175
- "vue": "^3.3.4",
176
- "vue-combo-blocks": "^2.1.1",
177
- "vue-recaptcha": "^2.0.1",
178
- "vue-youtube-vue-3": "^1.5.0",
179
- "vue3-charts": "^1.1.33",
180
- "vue3-lazy-hydration": "^1.2.1",
181
- "vue3-simple-typeahead": "^1.0.11",
182
- "vuelidate": "^0.7.7",
183
- "vuex": "^4.1.0",
184
- "webpack-merge": "^5.1.4",
185
- "webpack-node-externals": "^3.0.0"
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.3.1"
231
- }
1
+ {
2
+ "name": "@visitscotland/component-library",
3
+ "version": "4.3.8",
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 && 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
+ "@semantic-release/npm": "^12.0.1",
85
+ "@storybook/addon-a11y": "^8.0.10",
86
+ "@storybook/addon-essentials": "^8.0.10",
87
+ "@storybook/addon-interactions": "^8.0.10",
88
+ "@storybook/addon-links": "^8.0.10",
89
+ "@storybook/blocks": "8.0.10",
90
+ "@storybook/vue3": "^8.0.10",
91
+ "@storybook/vue3-vite": "^8.0.10",
92
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
93
+ "@typescript-eslint/parser": "^5.59.8",
94
+ "@vitejs/plugin-vue": "^5.0.4",
95
+ "@vue/eslint-config-airbnb": "^7.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-webpack": "^0.13.2",
111
+ "eslint-plugin-import": "^2.25.2",
112
+ "eslint-plugin-storybook": "^0.8.0",
113
+ "eslint-plugin-vue": "^9.11.1",
114
+ "eslint-webpack-plugin": "^4.0.1",
115
+ "file-loader": "^6.2.0",
116
+ "husky": "^8.0.3",
117
+ "jest": "^29.5.0",
118
+ "jest-axe": "^8.0.0",
119
+ "jest-environment-jsdom": "^29.5.0",
120
+ "jest-serializer-vue": "^3.1.0",
121
+ "lint-staged": "^15.2.2",
122
+ "mini-css-extract-plugin": "^2.7.5",
123
+ "moxios": "^0.4.0",
124
+ "node-polyfill-webpack-plugin": "^2.0.1",
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
+ "semantic-release": "^24.2.0",
134
+ "speed-measure-webpack-plugin": "^1.5.0",
135
+ "standard-version": "^9.5.0",
136
+ "storybook": "^8.0.10",
137
+ "storybook-addon-datalayer-watcher": "^1.0.2",
138
+ "storybook-addon-mock": "^5.0.0",
139
+ "style-loader": "^3.3.2",
140
+ "svgo-loader": "^4.0.0",
141
+ "theo": "^8.1.5",
142
+ "time-analytics-webpack-plugin": "^0.1.20",
143
+ "ts-jest": "^29.1.0",
144
+ "ts-loader": "^9.4.3",
145
+ "typescript": "^5.0.4",
146
+ "upgrade": "^1.1.0",
147
+ "vite": "^5.2.10",
148
+ "vite-plugin-dts": "^3.7.2",
149
+ "vite-plugin-turbosnap": "^1.0.2",
150
+ "vue": "^3.4.19",
151
+ "vue-jest": "^5.0.0-alpha.10",
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
+ "@mapbox/geojson-extent": "^1.0.1",
162
+ "@pinia/testing": "^0.1.3",
163
+ "@storybook/addon-a11y": "^7.5.3",
164
+ "@storybook/test": "^8.0.10",
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
+ "lodash": "^4.17.21",
171
+ "mapbox-gl": "^1.11.1",
172
+ "mitt": "^3.0.0",
173
+ "pinia": "^2.1.3",
174
+ "vite": "^5.1.3",
175
+ "vue": "^3.3.4",
176
+ "vue-combo-blocks": "^2.1.1",
177
+ "vue-recaptcha": "^2.0.1",
178
+ "vue-youtube-vue-3": "^1.5.0",
179
+ "vue3-charts": "^1.1.33",
180
+ "vue3-lazy-hydration": "^1.2.1",
181
+ "vue3-simple-typeahead": "^1.0.11",
182
+ "vuelidate": "^0.7.7",
183
+ "vuex": "^4.1.0",
184
+ "webpack-merge": "^5.1.4",
185
+ "webpack-node-externals": "^3.0.0"
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.3.1"
231
+ }
@@ -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.VsForm=t():e.VsForm=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1736],{69577:function(){},97272:function(e,t,a){"use strict";var i=a(64467),n=a(3453),r=a(34352),s=a(57536),o=a(88620),l=a(22142),d=a(51688),u=a(26358),f=a(88258),g=a(48836),c=a(13838),m=a(79122),h=a(11696),p=a(98745);function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach((function(t){(0,i.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}t.A={name:"VsForm",status:"prototype",release:"0.0.1",components:{VsInput:l.default,VsSelect:d.default,VsCheckbox:u.default,BFormGroup:r.a3,VsRecaptcha:f.default,VsButton:g.default,VsHeading:c.default,VsWarning:m.default,VsTextarea:h.default},mixins:[p.default],props:{isMarketo:{type:Boolean,default:!0},submitUrl:{type:String,default:""},dataUrl:{type:String,required:!0},recaptchaKey:{type:String,default:(0,o.A)("RECAPTCHA_TOKEN")},recaptchaTextareaLabel:{type:String,default:"Does not need any text"},isProd:{type:Boolean,default:!1},munchkinId:{type:String,default:""},marketoInstance:{type:String,default:""},language:{type:String,default:"en"},messagingUrl:{type:String,required:!0},countryListUrl:{type:String,default:""},isTest:{type:Boolean,default:!0}},data:function(){return{submitted:!1,submitting:!1,submitError:!1,formData:{},messagingData:{},form:{},formIsInvalid:!1,showErrorMessage:!1,errorFields:[],triggerValidate:!1,recaptchaVerified:!1,conditionalFields:{},inputVal:"",reAlertErrors:!1,emailFieldName:""}},computed:{formId:function(){return this.isProd?this.formData.formLiveId:this.formData.formSandboxId},showFormHeading:function(){return!this.isUndefined(this.getTranslatedContent)&&!this.isUndefined(this.getTranslatedContent("heading"))}},created:function(){this.getFormData(),this.getGlobalMessaging()},methods:{getFormData:function(){var e=this;s.A.get(this.dataUrl).then((function(t){e.formData=t.data,e.isMarketo&&window.MktoForms2&&window.MktoForms2.loadForm(e.marketoInstance,e.munchkinId,e.formId),t.data.fields.forEach((function(t){e.form[t.name]="",t.conditional&&(e.conditionalFields[t.name]=!1)})),e.checkConditionalFields()})).catch((function(){}))},getGlobalMessaging:function(){var e=this;s.A.get(this.messagingUrl).then((function(t){e.messagingData=t.data})).catch((function(){}))},getLanguageObj:function(){return this.isUndefined(this.formData[this.language])?{}:this.formData[this.language]||void 0},getTranslatedLabel:function(e,t){var a=this.getLanguageObj(),i="";return i="en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].label)?this.formData.fields[t].label:a[e].label,this.showOptionalText(this.formData.fields[t])&&!this.isUndefined(this.getMessagingData("optional",this.language))&&(i="".concat(i," (").concat(this.getMessagingData("optional",this.language),")")),i},getTranslatedLegend:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].descriptor)?this.formData.fields[t].descriptor:a[e].descriptor},getTranslatedInfo:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].info)?this.formData.fields[t].info:a[e].info},getTranslatedValidation:function(e,t){var a,i=this.getLanguageObj();return"en"!==this.language||this.isUndefined(this.formData.fields[t].validationMessages)?this.isUndefined(i[e])||this.isUndefined(i[e].validationMessages)?"en"===this.language&&(a=this.formData.fields[t].validationMessages):a=i[e].validationMessages:a=this.formData.fields[t].validationMessages,a},getTranslatedOptions:function(e,t){var a=this.getLanguageObj(),i=[];return void 0===(i="en"===this.language||this.isUndefined(a[e])||this.isUndefined([e].options)?this.formData.fields[t].options:a[e].options)&&(i=[]),i},getTranslatedHint:function(e,t){var a=this.getLanguageObj();return"en"===this.language||this.isUndefined(a[e])||this.isUndefined(a[e].hint)?this.isUndefined(this.formData.fields[t].hint)?"":this.formData.fields[t].hint:a[e].hint},getTranslatedContent:function(e){var t=this.getLanguageObj();return"en"!==this.language||this.isUndefined(this.formData.content)||this.isUndefined(this.formData.content[e])?this.isUndefined(t.content)||this.isUndefined(t.content[e])?this.getMessagingData(e,this.language):t.content[e]:this.formData.content[e]},getMessagingData:function(e,t){return Object.keys(this.messagingData).length>0?this.messagingData[t][e]:"validation"===e?{}:""},getHiddenFields:function(){var e=this.$el.querySelectorAll("input[type=hidden]"),t={};return e.forEach((function(e){t[e.name]=e.value})),t},isUndefined:function(e){return void 0===e},updateFieldData:function(e){this.form[e.field]=e.value||"",Array.isArray(e.errors)?this.formIsInvalid=e.errors.length>0:this.formIsInvalid=null!==e.errors,this.manageErrorStatus(e.field,e.errors),this.checkConditionalFields()},manageErrorStatus:function(e,t){var a=this.errorFields.indexOf(e);-1!==a?(!t||t.length<1)&&this.errorFields.splice(a,1):t&&t.length>0&&this.errorFields.push(e)},showOptionalText:function(e){return!(!this.isUndefined(e.validation)&&!this.isUndefined(e.validation.required))},needsLabel:function(e){return"radio"!==e.element&&"submit"!==e.element&&"checkbox"!==e.element},preSubmit:function(e){var t=this;e.preventDefault(),this.isTest||this.onRecaptchaVerify(),this.triggerValidate=!0;var a=this.formData.fields.filter((function(e){return e.validation&&e.validation.required}));0===a.length?this.formIsInvalid=!1:a.forEach((function(e){if(!/\S/.test(t.form[e.name])){var a=!0;e.name in t.conditionalFields&&!t.conditionalFields[e.name]&&(a=!1),t.formIsInvalid=a}})),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach((function(e){var a=(0,n.A)(e,2),i=a[0];a[1]||(t.form[i]="")})),this.errorFields.length>0&&(this.formIsInvalid=!0),!this.formIsInvalid&&this.recaptchaVerified?this.isMarketo?this.marketoSubmit():this.axiosSubmit():(this.showErrorMessage=!0,this.reAlertErrors=!0,setTimeout((function(){t.reAlertErrors=!1}),100))},marketoSubmit:function(){var e=this;this.createDataLayerObject("formsDataEvent");var t=window.MktoForms2.allForms()[0];t.addHiddenFields(this.form),window.grecaptcha&&t.addHiddenFields({lastReCAPTCHAUserFingerprint:window.grecaptcha.getResponse(),lastRecaptchaEnabledFormID:this.formId}),t.onSuccess((function(){return e.submitting=!1,e.submitted=!0,e.attachEmail(),!1})),t.onSubmit((function(){e.submitting=!0})),t.submit()},axiosSubmit:function(){var e=this;this.createDataLayerObject("formsDataEvent"),this.submitting=!0;var t="";window.grecaptcha&&(t=window.grecaptcha.getResponse());var a=this.getHiddenFields();s.A.post(this.submitUrl,b(b(b({},this.form),a),{},{formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":t})).then((function(){return e.submitting=!1,e.submitted=!0,e.attachEmail(),!1})).catch((function(){}))},attachEmail:function(){var e=this;this.formData.fields.forEach((function(t){"email"!==t.type||e.emailFieldName||(e.emailFieldName=t.name)})),this.emailFieldName&&"undefined"!=typeof exponea&&exponea.identify({email_id:this.form[this.emailFieldName]},null,null,null,!0)},onRecaptchaVerify:function(){window.grecaptcha&&"function"==typeof window.grecaptcha.getResponse&&""!==window.grecaptcha.getResponse()?this.recaptchaVerified=!0:this.recaptchaVerified=!1},checkConditionalFields:function(){var e=this;Object.keys(this.conditionalFields).forEach((function(t){var a=e.formData.fields.find((function(e){return e.name===t})),i=!0;Object.keys(a.conditional).forEach((function(n){var r=a.conditional[n];Array.isArray(r)?-1===r.indexOf(e.form[n])&&(i=!1):e.form[n]!==r&&(i=!1),i?e.conditionalFields[t]||(e.conditionalFields[t]=!0,e.$refs[t]&&e.$refs[t][0].manualValidate()):(e.manageErrorStatus(t,[]),e.conditionalFields[t]=!1)}))}))},conditionalElementClass:function(e){return!0===this.conditionalFields[e]||void 0===this.conditionalFields[e]?"":"d-none"}}}},56389:function(e,t,a){"use strict";a.d(t,{X:function(){return m}});var i=a(20641),n=a(53751),r=a(90033),s={class:"vs-form","data-test":"vs-form"},o=(0,i.Lk)("form",{class:"d-none"},null,-1),l={class:"vs-form__main-heading vs-heading vs-heading--heading-l float-none","data-test":"vs-form__main-heading"},d={key:0},u={"aria-live":"assertive"},f={key:0},g=["innerHTML"],c={key:2};function m(e,t,a,m,h,p){var v=(0,i.g2)("VsInput"),b=(0,i.g2)("VsSelect"),y=(0,i.g2)("VsCheckbox"),D=(0,i.g2)("VsTextarea"),F=(0,i.g2)("BFormGroup"),k=(0,i.g2)("VsRecaptcha"),E=(0,i.g2)("VsButton"),T=(0,i.g2)("VsWarning"),O=(0,i.g2)("VsHeading");return(0,i.uX)(),(0,i.CE)("div",s,[o,h.submitted?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("form",{key:0,onSubmit:t[0]||(t[0]=(0,n.withModifiers)((function(){return p.preSubmit&&p.preSubmit.apply(p,arguments)}),["prevent"]))},[(0,i.Lk)("fieldset",null,[(0,i.Lk)("legend",l,(0,r.toDisplayString)(p.getTranslatedContent("heading")),1),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(h.formData.fields,(function(e,t){return(0,i.uX)(),(0,i.Wv)(F,{key:e.name,label:p.needsLabel(e)?p.getTranslatedLabel(e.name,t):"","label-for":p.needsLabel(e)?e.name:"",class:(0,r.normalizeClass)(p.conditionalElementClass(e.name))},{default:(0,i.k6)((function(){return[p.isUndefined(e.descriptor)||"checkbox"!==e.element?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("legend",d,(0,r.toDisplayString)(p.getTranslatedLegend(e.name,t)),1)),(0,i.Lk)("div",{class:(0,r.normalizeClass)(p.conditionalElementClass(e.name))},["input"===e.element?((0,i.uX)(),(0,i.Wv)(v,{key:0,ref_for:!0,ref:e.name,onStatusUpdate:p.updateFieldData,"field-name":e.name,type:e.type,"validation-rules":e.validation||{},"validation-messages":p.getTranslatedValidation(e.name,t)||{},"generic-validation":p.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"hint-text":p.getTranslatedHint(e.name,t),placeholder:e.placeholder||"","re-alert-errors":h.reAlertErrors},null,8,["onStatusUpdate","field-name","type","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors"])):(0,i.Q3)("",!0),"select"===e.element?((0,i.uX)(),(0,i.Wv)(b,{key:1,options:p.getTranslatedOptions(e.name,t),ref_for:!0,ref:e.name,onStatusUpdate:p.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":p.getTranslatedValidation(e.name,t)||{},"generic-validation":p.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"country-list-url":a.countryListUrl,countries:e.countries,"hint-text":p.getTranslatedHint(e.name,t),"re-alert-errors":h.reAlertErrors},null,8,["options","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","country-list-url","countries","hint-text","re-alert-errors"])):(0,i.Q3)("",!0),"checkbox"===e.element?((0,i.uX)(),(0,i.Wv)(y,{key:e.name,ref_for:!0,ref:e.name,name:e.name,value:e.value,label:p.getTranslatedLabel(e.name,t),onStatusUpdate:p.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":p.getTranslatedValidation(e.name,t)||{},"generic-validation":p.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"optional-text":p.getMessagingData("optional",a.language),"hint-text":p.getTranslatedHint(e.name,t),"info-text":p.getTranslatedInfo(e.name,t),"re-alert-errors":h.reAlertErrors},null,8,["name","value","label","onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","optional-text","hint-text","info-text","re-alert-errors"])):(0,i.Q3)("",!0),"textarea"===e.element?((0,i.uX)(),(0,i.Wv)(D,{key:3,ref_for:!0,ref:e.name,onStatusUpdate:p.updateFieldData,"field-name":e.name,"validation-rules":e.validation||{},"validation-messages":p.getTranslatedValidation(e.name,t)||{},"generic-validation":p.getMessagingData("validation",a.language),invalid:h.errorFields.indexOf(e.name)>-1,"trigger-validate":h.triggerValidate,"hint-text":p.getTranslatedHint(e.name,t),placeholder:e.placeholder||"","re-alert-errors":h.reAlertErrors,rows:e.rows||null},null,8,["onStatusUpdate","field-name","validation-rules","validation-messages","generic-validation","invalid","trigger-validate","hint-text","placeholder","re-alert-errors","rows"])):(0,i.Q3)("",!0)],2)]})),_:2},1032,["label","label-for","class"])})),128))]),(0,i.RG)(e.$slots,"hidden-fields"),(0,i.bF)(k,{onVerified:p.onRecaptchaVerify,"site-key":a.recaptchaKey,invalid:!h.recaptchaVerified&&h.showErrorMessage,language:a.language,"error-msg":p.getMessagingData("recaptchaError",a.language),class:"mt-300","textarea-label":a.recaptchaTextareaLabel,"re-alert-errors":h.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),(0,i.bF)(E,{variant:"primary",type:"submit",class:"vs-form__submit mt-300",onClick:p.preSubmit},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(p.getTranslatedContent("submit")),1)]})),_:1},8,["onClick"])],32)),(0,i.bF)(T,{class:"vs-form__no-js"},{default:(0,i.k6)((function(){return[(0,i.RG)(e.$slots,"no-js")]})),_:3}),(0,i.Lk)("div",u,[h.submitting?((0,i.uX)(),(0,i.CE)("p",f,[(0,i.RG)(e.$slots,"submitting")])):(0,i.Q3)("",!0),h.submitted?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[p.getTranslatedContent("successHeading")?((0,i.uX)(),(0,i.Wv)(O,{key:0,level:"2","heading-style":"heading-l"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(p.getTranslatedContent("successHeading")),1)]})),_:1})):(0,i.Q3)("",!0),(0,i.Lk)("p",{class:"vs-form__content",innerHTML:p.getTranslatedContent("successContent")},null,8,g)],64)):(0,i.Q3)("",!0),h.submitError?((0,i.uX)(),(0,i.CE)("p",c,[(0,i.RG)(e.$slots,"submit-error")])):(0,i.Q3)("",!0)])])}},81351:function(e,t,a){"use strict";var i=a(85072),n=a.n(i),r=a(97825),s=a.n(r),o=a(77659),l=a.n(o),d=a(55056),u=a.n(d),f=a(10540),g=a.n(f),c=a(41113),m=a.n(c),h=a(69577),p=a.n(h),v={};v.styleTagTransform=m(),v.setAttributes=u(),v.insert=l().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=g(),n()(p(),v),p()&&p().locals&&p().locals},19464:function(e,t,a){"use strict";a.r(t);var i=a(74101),n=a(18668);a(16243);const r=(0,a(66262).A)(n.A,[["render",i.X]]);t.default=r},18668:function(e,t,a){"use strict";a.d(t,{A:function(){return i.A}});var i=a(97272)},74101:function(e,t,a){"use strict";a.d(t,{X:function(){return i.X}});var i=a(56389)},16243:function(e,t,a){"use strict";a(81351)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,3453,281,7536,7171,6422,8745,8836,3838,9122,4282,2142,1688,1696,6358,8258],(function(){return 19464,e(e.s=19464)})),e.O()}])}));