@visitscotland/component-library 3.0.10 → 3.0.11
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 +1800 -0
- package/dist/client/fonts/fa-duotone-900.ttf +0 -0
- package/dist/client/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/client/manifest.json +563 -565
- package/dist/client/scripts/{ab2af43f4ea5a1debcf5.js → 095b3f6be4ecc5050c94.js} +2 -2
- package/dist/client/scripts/199c210715afa15fe554.js +1 -0
- package/dist/client/scripts/1ce57deef9f60d08e168.js +1 -0
- package/dist/client/scripts/{eeed4d3e9c67f63e7289.js → 1ea58060bdd59b73f2cc.js} +1 -1
- package/dist/client/scripts/28817126b54efc5d4587.js +1 -0
- package/dist/client/scripts/{ba81c0e2942bea680b26.js → 31a2579101bbbb9e5f30.js} +1 -1
- package/dist/client/scripts/45f0025aa5e0e67e90af.js +1 -0
- package/dist/client/scripts/{645e6203105968ad0f41.js → 48d53e3631b7bf81ef29.js} +1 -1
- package/dist/client/scripts/4a4ba7ebd4b744564fb1.js +1 -0
- package/dist/client/scripts/{6fc9b98332d4c5c0030e.js → 4f262ff6d88d67a5edb0.js} +1 -1
- package/dist/client/scripts/{317bf5d5727006b94afd.js → 57f474f5e19eb8baccea.js} +1 -1
- package/dist/client/scripts/5d2e8fcc89de9881e3f0.js +1 -0
- package/dist/client/scripts/5e005447771fd3cd6b2b.js +1 -0
- package/dist/client/scripts/6bdb6675dfc1454bd6b6.js +1 -0
- package/dist/client/scripts/6cd0e09564354b3d5ff2.js +1 -0
- package/dist/client/scripts/745bf4f9755c7daaa33e.js +1 -0
- package/dist/client/scripts/{f4970884abfc851ae32f.js → 829fb548fb318cc6c227.js} +1 -1
- package/dist/client/scripts/87c81786aba52ad2c8de.js +1 -0
- package/dist/client/scripts/8a8fc3d15b5f1307b1f3.js +1 -0
- package/dist/client/scripts/{308938d148fc5f60c382.js → 9999938ef7d992beb718.js} +1 -1
- package/dist/client/scripts/{54bee03d4647544c11f5.js → a41094c7176d20c0d7dc.js} +1 -1
- package/dist/client/scripts/b9d33994c69b2a8de5fe.js +1 -0
- package/dist/client/scripts/ba790fc15aa9dd2a524f.js +1 -0
- package/dist/client/scripts/{3f076d8e7a9978382389.js → ce05b548e362b5886d8d.js} +1 -1
- package/dist/client/scripts/{30b52393df161a18e1e4.js → ce3e6734cb84e74451cd.js} +1 -1
- package/dist/client/scripts/ebfecb5cb9655ada3826.js +1 -0
- package/dist/client/scripts/ec98e9fccfc20586c905.js +1 -0
- package/dist/client/scripts/{cd49442f3979c5aa946f.js → f03a2509e55a384da74a.js} +1 -1
- package/dist/client/scripts/ff019a30624b95c825db.js +1 -0
- package/dist/client/styles/199c210715afa15fe554.css +2 -0
- package/dist/client/styles/{6b89e1ea236b40bbcb29.css → 1ce57deef9f60d08e168.css} +1 -1
- package/dist/client/styles/{bd26b75ba38ccee0dc01.css → 28817126b54efc5d4587.css} +2 -2
- package/dist/client/styles/{ba81c0e2942bea680b26.css → 31a2579101bbbb9e5f30.css} +1 -1
- package/dist/client/styles/{645e6203105968ad0f41.css → 48d53e3631b7bf81ef29.css} +1 -1
- package/dist/client/styles/{6fc9b98332d4c5c0030e.css → 4f262ff6d88d67a5edb0.css} +1 -1
- package/dist/client/styles/{80c20d5d420f9e6d6f0d.css → 70ed495c15ada9f41f04.css} +1 -1
- package/dist/client/styles/{8e3fa387146c24502ada.css → 745bf4f9755c7daaa33e.css} +1 -1
- package/dist/client/styles/{5ac32a888423592e8e76.css → 7f0830b7d5e434d7a977.css} +1 -1
- package/dist/client/styles/{f4970884abfc851ae32f.css → 829fb548fb318cc6c227.css} +1 -1
- package/dist/client/styles/{9cb341082008e923f222.css → 87c81786aba52ad2c8de.css} +1 -1
- package/dist/client/styles/{54bee03d4647544c11f5.css → a41094c7176d20c0d7dc.css} +1 -1
- package/dist/client/styles/ba790fc15aa9dd2a524f.css +1 -0
- package/dist/client/styles/ce05b548e362b5886d8d.css +1 -0
- package/dist/client/styles/{30b52393df161a18e1e4.css → ce3e6734cb84e74451cd.css} +1 -1
- package/dist/client/styles/{cd49442f3979c5aa946f.css → f03a2509e55a384da74a.css} +1 -1
- package/dist/client/styles/third-party/_cludo-search-results.css +1 -1
- package/dist/client/styles/third-party/_font-awesome.css +2 -2
- package/dist/components/components/accordion/components/AccordionItem.vue.d.ts +1 -1
- package/dist/components/components/accordion/index.d.ts +1 -1
- package/dist/components/components/button/Button.vue.d.ts +2 -2
- package/dist/components/components/canned-search/CannedSearch.vue.d.ts +1 -1
- package/dist/components/components/canned-search/components/CannedSearchDuration.vue.d.ts +1 -1
- package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +1 -1
- package/dist/components/components/canned-search/components/CannedSearchPrice.vue.d.ts +1 -1
- package/dist/components/components/canned-search/components/CannedSearchSummaryBox.vue.d.ts +1 -1
- package/dist/components/components/caption/Caption.vue.d.ts +1 -260
- package/dist/components/components/carbon-calculator/components/CarbonCalculatorResults.vue.d.ts +1 -262
- package/dist/components/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +3 -3
- package/dist/components/components/checkbox/Checkbox.vue.d.ts +2 -2
- package/dist/components/components/embed-wrapper/EmbedWrapper.vue.d.ts +1 -1
- package/dist/components/components/footer/components/FooterAccordionItem.vue.d.ts +1 -1
- package/dist/components/components/form/Form.vue.d.ts +5 -8
- package/dist/components/components/heading/Heading.vue.d.ts +1 -1
- package/dist/components/components/icon/Icon.vue.d.ts +1 -1
- package/dist/components/components/icon/index.d.ts +1 -1
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +6 -6
- package/dist/components/components/img/Img.vue.d.ts +4 -11
- package/dist/components/components/input/Input.vue.d.ts +2 -2
- package/dist/components/components/link/Link.vue.d.ts +2 -2
- package/dist/components/components/link-list/components/LinkListItem.vue.d.ts +1 -12
- package/dist/components/components/list/List.vue.d.ts +1 -1
- package/dist/components/components/mega-nav/MegaNav.vue.d.ts +1 -282
- package/dist/components/components/mega-nav/components/MegaNavDropdownContainer.vue.d.ts +1 -1
- package/dist/components/components/megalinks/Megalinks.vue.d.ts +1 -1
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +5 -5
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +5 -5
- package/dist/components/components/number-input/NumberInput.vue.d.ts +4 -4
- package/dist/components/components/radio-button/RadioButton.vue.d.ts +1 -1
- package/dist/components/components/select/Select.vue.d.ts +1 -1
- package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +1 -272
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +6 -26
- package/dist/components/components/svg/Svg.vue.d.ts +1 -1
- package/dist/components/components/svg-link/SvgLink.vue.d.ts +2 -2
- package/dist/components/components/video/Video.vue.d.ts +1 -1
- package/dist/components/components/video-caption/VideoCaption.vue.d.ts +3 -23
- package/dist/components/icons.css +2 -2
- package/dist/components/mixins/verifyCookiesMixin.d.ts +1 -1
- package/dist/components/stores/map.store.d.ts +2 -2
- package/dist/components/stores/video.store.d.ts +1 -1
- package/dist/components/utils/breakpoints.d.ts +1 -1
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +131 -131
- package/dist/components/vs-component-library.mjs +4400 -4435
- package/dist/ssr/fonts/fa-duotone-900.ttf +0 -0
- package/dist/ssr/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{ab517f2f4fc3dcead0ac.css → db281f3e8d0d3bda82d9.css} +17 -17
- package/package.json +230 -230
- package/dist/client/scripts/0c8e55d5dc54da17ea4f.js +0 -1
- package/dist/client/scripts/2c9771b621321ebce2f1.js +0 -1
- package/dist/client/scripts/369660f549d80a83b319.js +0 -1
- package/dist/client/scripts/55abdf0b6d1b6efc573a.js +0 -1
- package/dist/client/scripts/591779e48ffc23e54d8c.js +0 -1
- package/dist/client/scripts/5dfb8dcf71ff13a8e5d7.js +0 -1
- package/dist/client/scripts/62dee53b5ff29bcdf2a4.js +0 -1
- package/dist/client/scripts/6b89e1ea236b40bbcb29.js +0 -1
- package/dist/client/scripts/6dcd58d3c5a53787c6e8.js +0 -1
- package/dist/client/scripts/8e3fa387146c24502ada.js +0 -1
- package/dist/client/scripts/9cb341082008e923f222.js +0 -1
- package/dist/client/scripts/a1ae308f3e8896eb00cb.js +0 -1
- package/dist/client/scripts/adb997ae050ff11118c3.js +0 -1
- package/dist/client/scripts/bbb72864d9c24c3b0176.js +0 -1
- package/dist/client/scripts/bd26b75ba38ccee0dc01.js +0 -1
- package/dist/client/scripts/c95930ffa2e73a2cc9f9.js +0 -1
- package/dist/client/scripts/d1ccfaba65d3a42016e7.js +0 -1
- package/dist/client/styles/3f076d8e7a9978382389.css +0 -1
- package/dist/client/styles/55abdf0b6d1b6efc573a.css +0 -1
- package/dist/client/styles/bbb72864d9c24c3b0176.css +0 -2
- /package/dist/client/scripts/{9d37e33b98d13c9e5fca.js → 0444473347f3388b9b2d.js} +0 -0
- /package/dist/client/scripts/{ab2af43f4ea5a1debcf5.js.LICENSE.txt → 095b3f6be4ecc5050c94.js.LICENSE.txt} +0 -0
- /package/dist/client/scripts/{8191bfd34ce1185bf893.js → 0e76a8a6fc840fc90393.js} +0 -0
- /package/dist/client/scripts/{1e1be128bbe2372442ad.js → 1a19c590faef6d20e8f9.js} +0 -0
- /package/dist/client/scripts/{4f20b66ee884b8e756c5.js → 329dfc8fb32128f5bfbc.js} +0 -0
- /package/dist/client/scripts/{7c2110991178fca70197.js → 3b782f9b1a48bb37ea1b.js} +0 -0
- /package/dist/client/scripts/{e8893c6cf105d247bb20.js → 54c9ecfc0a30af9500f8.js} +0 -0
- /package/dist/client/scripts/{207f4ed838f5f384de4a.js → 693c9fdb2abddc041fc8.js} +0 -0
- /package/dist/client/scripts/{80c20d5d420f9e6d6f0d.js → 70ed495c15ada9f41f04.js} +0 -0
- /package/dist/client/scripts/{2e7bb9d1ba25ed89a6b4.js → 72914614ed8843afe8e7.js} +0 -0
- /package/dist/client/scripts/{5ac32a888423592e8e76.js → 7f0830b7d5e434d7a977.js} +0 -0
- /package/dist/client/scripts/{81d7a650a9e34cb0e041.js → 82ae53ac4d29a47972f6.js} +0 -0
- /package/dist/client/scripts/{93ba62cb3241a7f51a56.js → 8566e216dfae60878796.js} +0 -0
- /package/dist/client/scripts/{107a6a23f7692197dc75.js → 8607f002351fd0c58a86.js} +0 -0
- /package/dist/client/scripts/{57ca21b271f4bf6fe7d9.js → 8f688a3a5f483ff3f90f.js} +0 -0
- /package/dist/client/scripts/{68b4fa981d1ccbcdb115.js → 91b2d5bc3c73cd4f18d5.js} +0 -0
- /package/dist/client/scripts/{76b69830b25050250f7a.js → 9faa3989454af4ae1646.js} +0 -0
- /package/dist/client/scripts/{58ec605a02f7026dfd07.js → a7873e3d286e50fba6c9.js} +0 -0
- /package/dist/client/scripts/{c5a9f9bf1b695d67e692.js → a7dbe76d0e0e59ff23cf.js} +0 -0
- /package/dist/client/scripts/{9fb6b77d5c8e153a9b64.js → ae57c0d2ca8b83779a55.js} +0 -0
- /package/dist/client/scripts/{586b6e8b7a33125e7271.js → aea24adeebd8a85f0d9f.js} +0 -0
- /package/dist/client/scripts/{e732dd5fb0a7a5276036.js → c6ae2f1597591b4d2291.js} +0 -0
- /package/dist/client/scripts/{fa9a79bc1b6e6c890e23.js → d1049a7d19c185aff667.js} +0 -0
- /package/dist/client/scripts/{72f10f904697a0b8c38a.js → d2d86b4d4e26eaee306a.js} +0 -0
- /package/dist/client/styles/{9d37e33b98d13c9e5fca.css → 0444473347f3388b9b2d.css} +0 -0
- /package/dist/client/styles/{8191bfd34ce1185bf893.css → 0e76a8a6fc840fc90393.css} +0 -0
- /package/dist/client/styles/{eeed4d3e9c67f63e7289.css → 1ea58060bdd59b73f2cc.css} +0 -0
- /package/dist/client/styles/{7c2110991178fca70197.css → 3b782f9b1a48bb37ea1b.css} +0 -0
- /package/dist/client/styles/{d1ccfaba65d3a42016e7.css → 45f0025aa5e0e67e90af.css} +0 -0
- /package/dist/client/styles/{6dcd58d3c5a53787c6e8.css → 4a4ba7ebd4b744564fb1.css} +0 -0
- /package/dist/client/styles/{317bf5d5727006b94afd.css → 57f474f5e19eb8baccea.css} +0 -0
- /package/dist/client/styles/{591779e48ffc23e54d8c.css → 5d2e8fcc89de9881e3f0.css} +0 -0
- /package/dist/client/styles/{c95930ffa2e73a2cc9f9.css → 5e005447771fd3cd6b2b.css} +0 -0
- /package/dist/client/styles/{2e7bb9d1ba25ed89a6b4.css → 72914614ed8843afe8e7.css} +0 -0
- /package/dist/client/styles/{81d7a650a9e34cb0e041.css → 82ae53ac4d29a47972f6.css} +0 -0
- /package/dist/client/styles/{107a6a23f7692197dc75.css → 8607f002351fd0c58a86.css} +0 -0
- /package/dist/client/styles/{57ca21b271f4bf6fe7d9.css → 8f688a3a5f483ff3f90f.css} +0 -0
- /package/dist/client/styles/{68b4fa981d1ccbcdb115.css → 91b2d5bc3c73cd4f18d5.css} +0 -0
- /package/dist/client/styles/{308938d148fc5f60c382.css → 9999938ef7d992beb718.css} +0 -0
- /package/dist/client/styles/{76b69830b25050250f7a.css → 9faa3989454af4ae1646.css} +0 -0
- /package/dist/client/styles/{58ec605a02f7026dfd07.css → a7873e3d286e50fba6c9.css} +0 -0
- /package/dist/client/styles/{c5a9f9bf1b695d67e692.css → a7dbe76d0e0e59ff23cf.css} +0 -0
- /package/dist/client/styles/{9fb6b77d5c8e153a9b64.css → ae57c0d2ca8b83779a55.css} +0 -0
- /package/dist/client/styles/{586b6e8b7a33125e7271.css → aea24adeebd8a85f0d9f.css} +0 -0
- /package/dist/client/styles/{369660f549d80a83b319.css → b9d33994c69b2a8de5fe.css} +0 -0
- /package/dist/client/styles/{72f10f904697a0b8c38a.css → d2d86b4d4e26eaee306a.css} +0 -0
- /package/dist/client/styles/{62dee53b5ff29bcdf2a4.css → ebfecb5cb9655ada3826.css} +0 -0
- /package/dist/client/styles/{2c9771b621321ebce2f1.css → ec98e9fccfc20586c905.css} +0 -0
- /package/dist/client/styles/{adb997ae050ff11118c3.css → ff019a30624b95c825db.css} +0 -0
package/package.json
CHANGED
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visitscotland/component-library",
|
|
3
|
-
"version": "3.0.
|
|
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
|
-
"prepublishOnly": "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.2.1"
|
|
230
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@visitscotland/component-library",
|
|
3
|
+
"version": "3.0.11",
|
|
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
|
+
"prepublishOnly": "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.2.1"
|
|
230
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsTabItem=e():t.VsTabItem=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9898],{92417:function(t,e,n){var i=n(13838),o=n(34352);e.A={name:"VsTabItem",status:"prototype",release:"0.0.1",components:{VsHeading:i.default,BTab:o.a_},props:{title:{type:String,required:!0}}}},23784:function(t,e,n){n.d(e,{X:function(){return r}});var i=n(20641),o=n(90033);function r(t,e,n,r,s,a){var u=(0,i.g2)("VsHeading"),l=(0,i.g2)("BTab");return(0,i.uX)(),(0,i.Wv)(l,{class:"vs-tab__item","data-test":"vs-tab__item","title-link-class":"vs-tab-link",title:n.title},{default:(0,i.k6)((function(){return[(0,i.bF)(u,{level:"3",class:"vs-tab__item__heading"},{default:(0,i.k6)((function(){return[(0,i.eW)((0,o.toDisplayString)(n.title),1)]})),_:1}),(0,i.RG)(t.$slots,"default")]})),_:3},8,["title"])}},74061:function(t,e,n){n.r(e);var i=n(23784),o=n(65373);const r=(0,n(66262).A)(o.A,[["render",i.X]]);e.default=r},65373:function(t,e,n){n.d(e,{A:function(){return i.A}});var i=n(92417)}},function(t){return t.O(0,[641,6262,7510,3751,4352,2543,3838],(function(){return 74061,t(t.s=74061)})),t.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6618],{14662:function(){},58014:function(n,e,t){"use strict";var s=t(13838);e.A={name:"VsCannedSearchSubHeading",status:"prototype",release:"0.0.1",components:{VsHeading:s.default},props:{subHeading:{type:String,default:""},lineLimit:{type:Number,default:null,validator:function(n){return[1,2].includes(n)}}}}},67726:function(n,e,t){"use strict";t.d(e,{X:function(){return a}});var s=t(20641),i=t(90033);function a(n,e,t,a,r,u){var c=(0,s.g2)("VsHeading");return t.subHeading?((0,s.uX)(),(0,s.Wv)(c,{key:0,level:"4",class:(0,i.normalizeClass)(["vs-canned-search-sub-heading",t.lineLimit?"vs-canned-search-sub-heading--lines-"+t.lineLimit:""]),"data-test":"vs-canned-search-sub-heading"},{default:(0,s.k6)((function(){return[(0,s.eW)((0,i.toDisplayString)(t.subHeading),1)]})),_:1},8,["class"])):(0,s.Q3)("",!0)}},57580:function(n,e,t){"use strict";var s=t(85072),i=t.n(s),a=t(97825),r=t.n(a),u=t(77659),c=t.n(u),l=t(55056),o=t.n(l),d=t(10540),f=t.n(d),b=t(41113),v=t.n(b),g=t(14662),p=t.n(g),m={};m.styleTagTransform=v(),m.setAttributes=o(),m.insert=c().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=f(),i()(p(),m),p()&&p().locals&&p().locals},36618:function(n,e,t){"use strict";t.r(e);var s=t(67726),i=t(37186);t(3648);const a=(0,t(66262).A)(i.A,[["render",s.X]]);e.default=a},37186:function(n,e,t){"use strict";t.d(e,{A:function(){return s.A}});var s=t(58014)},3648:function(n,e,t){"use strict";t(57580)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[681],{35367:function(){},57255:function(e,t,r){"use strict";var i=r(64467),n=r(10810),a=r(79920),s=r(32536);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,i.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=null;t.A={name:"VsMapMarker",status:"prototype",release:"0.0.1",components:{VsMapMarkerIcon:s.default},props:{feature:{type:Object,required:!0},mapId:{type:String,required:!0},hasPopups:{type:Boolean,required:!0},selectedPlace:{type:String,default:null}},emits:["showDetail","setCategory"],setup:function(){u=(0,a.A)()},computed:o(o({isActive:function(){return!(!this.activePlace||!this.activePlace.properties||this.activePlace.properties.id!==this.feature.properties.id)||!(!this.highlightedPlace||!this.highlightedPlace.properties||this.highlightedPlace.properties.id!==this.feature.properties.id)}},(0,n.aH)(a.A,{highlightedPlace:function(e){return e.getHoveredStop(this.mapId)},activePlace:function(e){return e.getActivePlace(this.mapId)?e.getActivePlace(this.mapId):""},activeSubcat:function(e){return e.selectedSubCategory}})),{},{getMarkerIcon:function(){var e;return"null"===(e=""!==this.feature.properties.type?this.feature.properties.type:null!==this.activeSubcat?this.activeSubcat:"featured")&&(e=""),e}}),watch:{isActive:function(){return!!(this.activePlace&&this.activePlace.properties.id===this.feature.properties.id||this.highlightedPlace&&this.highlightedPlace.properties.id===this.feature.properties.id)||(this.activePlace&&this.activePlace.properties.id===this.feature.properties.id&&u.setActiveMarkerPos(this.feature.geometry.coordinates),!1)},activePlace:function(){this.activePlace&&this.activePlace.properties.id===this.feature.properties.id&&u.setActiveMarkerPos(this.feature.geometry.coordinates)}},mounted:function(){this.hasPopups&&document.body.addEventListener("click",this.handleClickEvent)},beforeUnmount:function(){document.body.removeEventListener("click",this.handleClickEvent)},methods:{markerClick:function(){u.setActiveMarkerPos(this.feature.geometry.coordinates),u.setActivePlace({mapId:this.mapId,activeFeature:this.feature}),this.$emit("showDetail",this.feature),this.$emit("setCategory",this.feature.properties.type)},handleHover:function(e){u.setHoveredPlace({mapId:this.mapId,hoveredFeature:e})},handleClickEvent:function(e){var t=document.getElementsByClassName("mapboxgl-canvas");e.target===t[0]&&u.setActivePlace({mapId:this.mapId,activeFeature:null})}}}},21839:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var i=r(20641),n=r(90033),a=r(53751),s=["aria-label"];function c(e,t,r,c,o,u){var l=(0,i.g2)("VsMapMarkerIcon");return(0,i.uX)(),(0,i.CE)("button",{type:"button",class:(0,n.normalizeClass)(["vs-map-marker",u.isActive?"vs-map-marker--active":""]),"data-test":"vs-map-marker",variant:"transparent",onClick:t[0]||(t[0]=function(){return u.markerClick&&u.markerClick.apply(u,arguments)}),onKeydown:t[1]||(t[1]=(0,a.withKeys)((function(){return u.markerClick&&u.markerClick.apply(u,arguments)}),["enter"])),onMouseover:t[2]||(t[2]=function(e){return u.handleHover(r.feature)}),onMouseleave:t[3]||(t[3]=function(e){return u.handleHover("")}),onFocusin:t[4]||(t[4]=function(e){return u.handleHover(r.feature)}),onFocusout:t[5]||(t[5]=function(e){return u.handleHover("")}),"aria-label":u.getMarkerIcon},[(0,i.bF)(l,{id:u.getMarkerIcon,"is-map-marker":!0,number:r.feature.properties.stopCount?r.feature.properties.stopCount:""},null,8,["id","number"])],42,s)}},69393:function(e,t,r){"use strict";var i=r(85072),n=r.n(i),a=r(97825),s=r.n(a),c=r(77659),o=r.n(c),u=r(55056),l=r.n(u),p=r(10540),h=r.n(p),d=r(41113),f=r.n(d),v=r(35367),m=r.n(v),g={};g.styleTagTransform=f(),g.setAttributes=l(),g.insert=o().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=h(),n()(m(),g),m()&&m().locals&&m().locals},30681:function(e,t,r){"use strict";r.r(t);var i=r(21839),n=r(4243);r(20229);const a=(0,r(66262).A)(n.A,[["render",i.X]]);t.default=a},4243:function(e,t,r){"use strict";r.d(t,{A:function(){return i.A}});var i=r(57255)},20229:function(e,t,r){"use strict";r(69393)}}]);
|
|
@@ -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.VsSocialShare=t():e.VsSocialShare=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6680],{19656:function(){},72799:function(e,t,n){"use strict";var o=n(48836),r=n(13838),s=n(34179),i=n(11438),a=n(34352);t.A={name:"VsSocialShare",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsHeading:r.default,VsModuleWrapper:s.default,BPopover:a.u$,VsRow:i.AQ,VsContainer:i.T$,VsCol:i.Il},provide:function(){return{referringPageUrl:this.pageUrl,pageTitle:this.pageTitle,noJs:this.noJs}},props:{shareBtnText:{type:String,required:!0},sharePopoverTitle:{type:String,required:!0},pageUrl:{type:String,required:!0},pageTitle:{type:String,default:""},closeAltText:{type:String,required:!0},id:{type:String,required:!0},noJs:{type:Boolean,default:!1}},data:function(){return{copyLink:!1,renderPopover:!1}},mounted:function(){this.renderPopover=!0},methods:{onClose:function(e){this.$refs.popover.hide(e)},onShown:function(){this.focusFirst()},onHidden:function(){this.focusRef(this.$refs.shareButton)},onHide:function(e){this.copyLink&&(e.preventDefault(),this.focusFirst(),this.copyLink=!1)},onCopyLink:function(){this.copyLink=!0},focusRef:function(e){var t=this;this.$nextTick((function(){t.$nextTick((function(){(e.$el||e).focus()}))}))},focusFirst:function(){var e=this;this.$nextTick((function(){e.$nextTick((function(){e.$refs.popoverShareRow.$el.querySelector(".vs-social-share-item a ").focus()}))}))},tabFromClose:function(e){e.shiftKey||(e.preventDefault(),this.focusFirst())},tabBackFromHidden:function(e){e.shiftKey&&(e.preventDefault(),this.focusRef(this.$refs.closeButton))}}}},13708:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var o=n(20641),r=n(90033),s=n(53751),i={class:"visually-hidden"};function a(e,t,n,a,u,c){var l=(0,o.g2)("VsButton"),f=(0,o.g2)("VsHeading"),d=(0,o.g2)("VsRow"),p=(0,o.g2)("BPopover"),h=(0,o.g2)("VsCol"),v=(0,o.g2)("VsContainer"),y=(0,o.g2)("VsModuleWrapper");return(0,o.uX)(),(0,o.CE)("div",{class:(0,r.normalizeClass)(["vs-social-share",n.noJs?"vs-module-wrapper__outer--hidden":"vs-module-wrapper__outer--light"]),"data-test":"vs-social-share",ref:"socialShareContainer"},[n.noJs?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.Wv)(l,{key:0,"icon-with-text":"",class:"vs-social-share__share-btn",variant:"transparent",icon:"share",id:"vs-social-share-popover--".concat(n.id),ref:"shareButton"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,r.toDisplayString)(n.shareBtnText),1)]})),_:1},8,["id"])),!n.noJs&&u.renderPopover?((0,o.uX)(),(0,o.Wv)(p,{key:1,"custom-class":"vs-social-share__popover",target:"vs-social-share-popover--".concat(n.id),click:!0,container:"body",placement:"left-end",onShown:c.onShown,onHidden:c.onHidden,onHide:c.onHide,ref:"popover"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,{thin:"",level:"3",tabindex:"0",ref:"shareHeader",class:"vs-social-share__header",onKeydown:t[0]||(t[0]=(0,s.withKeys)((function(e){return c.tabBackFromHidden(e)}),["tab"]))},{default:(0,o.k6)((function(){return[(0,o.eW)((0,r.toDisplayString)(n.sharePopoverTitle),1)]})),_:1},512),(0,o.bF)(d,{ref:"popoverShareRow"},{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"default",{onCopyLink:c.onCopyLink})]})),_:3},512),(0,o.bF)(l,{"icon-only":"",class:"vs-social-share__close-btn",icon:"close",size:"lg",variant:"transparent",ref:"closeButton",onClick:c.onClose,onKeydown:t[1]||(t[1]=(0,s.withKeys)((function(e){return c.tabFromClose(e)}),["tab"]))},{default:(0,o.k6)((function(){return[(0,o.Lk)("span",i,(0,r.toDisplayString)(n.closeAltText),1)]})),_:1},8,["onClick"])]})),_:3},8,["target","onShown","onHidden","onHide"])):(0,o.Q3)("",!0),n.noJs?((0,o.uX)(),(0,o.Wv)(y,{key:2,class:"vs-social-share--module-list"},{default:(0,o.k6)((function(){return[(0,o.bF)(v,null,{default:(0,o.k6)((function(){return[(0,o.bF)(d,null,{default:(0,o.k6)((function(){return[(0,o.bF)(h,{cols:"12"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,{thin:"",level:"2","override-style-level":"3",class:"mb-9 mt-0"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,r.toDisplayString)(n.sharePopoverTitle),1)]})),_:1})]})),_:1})]})),_:1}),(0,o.bF)(d,{class:"justify-content-center"},{default:(0,o.k6)((function(){return[(0,o.RG)(e.$slots,"default")]})),_:3})]})),_:3})]})),_:3})):(0,o.Q3)("",!0)],2)}},85178:function(e,t,n){"use strict";var o=n(85072),r=n.n(o),s=n(97825),i=n.n(s),a=n(77659),u=n.n(a),c=n(55056),l=n.n(c),f=n(10540),d=n.n(f),p=n(41113),h=n.n(p),v=n(19656),y=n.n(v),k={};k.styleTagTransform=h(),k.setAttributes=l(),k.insert=u().bind(null,"head"),k.domAPI=i(),k.insertStyleElement=d(),r()(y(),k),y()&&y().locals&&y().locals},75465:function(e,t,n){"use strict";n.r(t);var o=n(96060),r=n(99539);n(41678);const s=(0,n(66262).A)(r.A,[["render",o.X]]);t.default=s},99539:function(e,t,n){"use strict";n.d(t,{A:function(){return o.A}});var o=n(72799)},96060:function(e,t,n){"use strict";n.d(t,{X:function(){return o.X}});var o=n(13708)},41678:function(e,t,n){"use strict";n(85178)}},function(e){return e.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,2543,6422,8745,8836,8638,3838,2368,7521,1438,2958,4179],(function(){return 75465,e(e.s=75465)})),e.O()}])}));
|
|
@@ -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],{3655:function(){},97272:function(e,t,n){"use strict";var i=n(64467),a=n(3453),r=n(34352),s=n(57536),o=n(88620),l=n(22142),d=n(51688),u=n(26358),f=n(88258),c=n(48836),g=n(13838),h=n(79122),m=n(98745);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,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:c.default,VsHeading:g.default,VsWarning:h.default},mixins:[m.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}},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)}))})).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 n=this.getLanguageObj(),i="";return i="en"===this.language||this.isUndefined(n[e])||this.isUndefined(n[e].label)?this.formData.fields[t].label:n[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 n=this.getLanguageObj();return"en"===this.language||this.isUndefined(n[e])||this.isUndefined(n[e].descriptor)?this.formData.fields[t].descriptor:n[e].descriptor},getTranslatedInfo:function(e,t){var n=this.getLanguageObj();return"en"===this.language||this.isUndefined(n[e])||this.isUndefined(n[e].info)?this.formData.fields[t].info:n[e].info},getTranslatedValidation:function(e,t){var n,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&&(n=this.formData.fields[t].validationMessages):n=i[e].validationMessages:n=this.formData.fields[t].validationMessages,n},getTranslatedOptions:function(e,t){var n=this.getLanguageObj(),i=[];return void 0===(i="en"===this.language||this.isUndefined(n[e])||this.isUndefined([e].options)?this.formData.fields[t].options:n[e].options)&&(i=[]),i},getTranslatedHint:function(e,t){var n=this.getLanguageObj();return"en"===this.language||this.isUndefined(n[e])||this.isUndefined(n[e].hint)?this.isUndefined(this.formData.fields[t].hint)?"":this.formData.fields[t].hint:n[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 n=this.errorFields.indexOf(e);-1!==n?(!t||t.length<1)&&this.errorFields.splice(n,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 n=this.formData.fields.filter((function(e){return e.validation&&e.validation.required}));0===n.length?this.formIsInvalid=!1:n.forEach((function(e){""===t.form[e.name]&&(t.formIsInvalid=!0)})),this.showErrorMessage=this.formIsInvalid,Object.entries(this.conditionalFields).forEach((function(e){var n=(0,a.A)(e,2),i=n[0];n[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,!1})),t.onSubmit((function(){e.submitting=!0})),t.submit()},axiosSubmit:function(){var e=this;this.submitting=!0;var t="";window.grecaptcha&&(t=window.grecaptcha.getResponse());var n=this.getHiddenFields();s.A.post(this.submitUrl,v(v(v({},this.form),n),{},{formType:this.formData.content?this.formData.content.formType:"","g-recaptcha-response":t})).then((function(){return e.submitting=!1,e.submitted=!0,!1})).catch((function(){}))},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 n=e.formData.fields.find((function(e){return e.name===t})),i=!0;Object.keys(n.conditional).forEach((function(a){var r=n.conditional[a];Array.isArray(r)?-1===r.indexOf(e.form[a])&&(i=!1):e.form[a]!==r&&(i=!1),e.conditionalFields[t]=!!i}))}))},conditionalElementClass:function(e){return!0===this.conditionalFields[e]||void 0===this.conditionalFields[e]?"":"d-none"}}}},92191:function(e,t,n){"use strict";n.d(t,{X:function(){return h}});var i=n(20641),a=n(53751),r=n(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--style-level-2 float-none","data-test":"vs-form__main-heading"},d={key:0},u={"aria-live":"assertive"},f={key:0},c=["innerHTML"],g={key:2};function h(e,t,n,h,m,p){var v=(0,i.g2)("VsInput"),b=(0,i.g2)("VsSelect"),y=(0,i.g2)("VsCheckbox"),D=(0,i.g2)("BFormGroup"),k=(0,i.g2)("VsRecaptcha"),F=(0,i.g2)("VsButton"),O=(0,i.g2)("VsWarning"),T=(0,i.g2)("VsHeading");return(0,i.uX)(),(0,i.CE)("div",s,[o,m.submitted?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("form",{key:0,onSubmit:t[0]||(t[0]=(0,a.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)(m.formData.fields,(function(e,t){return(0,i.uX)(),(0,i.Wv)(D,{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",n.language),invalid:m.errorFields.indexOf(e.name)>-1,"trigger-validate":m.triggerValidate,"hint-text":p.getTranslatedHint(e.name,t),placeholder:e.placeholder||"","re-alert-errors":m.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",n.language),invalid:m.errorFields.indexOf(e.name)>-1,"trigger-validate":m.triggerValidate,"country-list-url":n.countryListUrl,countries:e.countries,"hint-text":p.getTranslatedHint(e.name,t),"re-alert-errors":m.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",n.language),invalid:m.errorFields.indexOf(e.name)>-1,"trigger-validate":m.triggerValidate,"optional-text":p.getMessagingData("optional",n.language),"hint-text":p.getTranslatedHint(e.name,t),"info-text":p.getTranslatedInfo(e.name,t),"re-alert-errors":m.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)],2)]})),_:2},1032,["label","label-for","class"])})),128))]),(0,i.RG)(e.$slots,"hidden-fields"),(0,i.bF)(k,{onVerified:p.onRecaptchaVerify,"site-key":n.recaptchaKey,invalid:!m.recaptchaVerified&&m.showErrorMessage,language:n.language,"error-msg":p.getMessagingData("recaptchaError",n.language),class:"mt-9","textarea-label":n.recaptchaTextareaLabel,"re-alert-errors":m.reAlertErrors},null,8,["onVerified","site-key","invalid","language","error-msg","textarea-label","re-alert-errors"]),(0,i.bF)(F,{variant:"primary",type:"submit",class:"vs-form__submit mt-9",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)(O,{class:"vs-form__no-js"},{default:(0,i.k6)((function(){return[(0,i.RG)(e.$slots,"no-js")]})),_:3}),(0,i.Lk)("div",u,[m.submitting?((0,i.uX)(),(0,i.CE)("p",f,[(0,i.RG)(e.$slots,"submitting")])):(0,i.Q3)("",!0),m.submitted?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[p.getTranslatedContent("successHeading")?((0,i.uX)(),(0,i.Wv)(T,{key:0,level:"2"},{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,c)],64)):(0,i.Q3)("",!0),m.submitError?((0,i.uX)(),(0,i.CE)("p",g,[(0,i.RG)(e.$slots,"submit-error")])):(0,i.Q3)("",!0)])])}},36941:function(e,t,n){"use strict";var i=n(85072),a=n.n(i),r=n(97825),s=n.n(r),o=n(77659),l=n.n(o),d=n(55056),u=n.n(d),f=n(10540),c=n.n(f),g=n(41113),h=n.n(g),m=n(3655),p=n.n(m),v={};v.styleTagTransform=h(),v.setAttributes=u(),v.insert=l().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=c(),a()(p(),v),p()&&p().locals&&p().locals},19464:function(e,t,n){"use strict";n.r(t);var i=n(37743),a=n(18668);n(32753);const r=(0,n(66262).A)(a.A,[["render",i.X]]);t.default=r},18668:function(e,t,n){"use strict";n.d(t,{A:function(){return i.A}});var i=n(97272)},37743:function(e,t,n){"use strict";n.d(t,{X:function(){return i.X}});var i=n(92191)},32753:function(e,t,n){"use strict";n(36941)}},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,6358,8258],(function(){return 19464,e(e.s=19464)})),e.O()}])}));
|