@saasquatch/vanilla-components 1.2.4-2 → 1.2.4-20
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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-cee741d8.js} +772 -615
- package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
- package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +26 -26
- package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +2362 -1121
- package/dist/cjs/sqh-referral-code.cjs.entry.js +23 -23
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +27 -27
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/close-button/close-button.js +70 -70
- package/dist/collection/components/copy-button/copy-button.js +380 -389
- package/dist/collection/components/copy-link-button/copy-link-button.js +230 -233
- package/dist/collection/components/cta-component/cta-component.css +6 -0
- package/dist/collection/components/cta-component/cta-component.js +396 -0
- package/dist/collection/components/global-container/global-container.js +158 -170
- package/dist/collection/components/image-component/image-component.js +175 -175
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +196 -186
- package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +557 -0
- package/dist/collection/components/referral-code/referral-code.js +36 -34
- package/dist/collection/components/referral-component/referral-component.js +255 -255
- package/dist/collection/components/referral-list/referral-list.js +911 -930
- package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
- package/dist/collection/components/share-button/share-button.js +301 -310
- package/dist/collection/components/share-button-container/share-button-container.js +2384 -2470
- package/dist/collection/components/stat-component/stat-component.js +197 -186
- package/dist/collection/components/stats-container/stats-container.js +210 -205
- package/dist/collection/components/text-component/text-component.js +301 -280
- package/dist/collection/global/global.js +4 -4
- package/dist/collection/services/FormatJs.js +15 -15
- package/dist/collection/services/WidgetHost.js +778 -621
- package/dist/collection/utilities.js +81 -81
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-6cd6c29a.js} +772 -615
- package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sqh-close-button.entry.js +26 -26
- package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +2361 -1122
- package/dist/esm/sqh-referral-code.entry.js +23 -23
- package/dist/esm/sqh-rewards-actions.entry.js +27 -27
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-6cd6c29a.js} +9524 -9432
- package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
- package/dist/esm-es5/css-shim-a659079f.js +122 -122
- package/dist/esm-es5/dom-4061ceba.js +468 -468
- package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1471 -1471
- package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +1808 -1758
- package/dist/esm-es5/loader.mjs +11 -11
- package/dist/esm-es5/sqh-close-button.entry.js +35 -35
- package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +10677 -9571
- package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
- package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
- package/dist/esm-es5/widget-components.mjs +6 -6
- package/dist/types/components/close-button/close-button.d.ts +18 -18
- package/dist/types/components/copy-button/copy-button.d.ts +90 -107
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -62
- package/dist/types/components/cta-component/cta-component.d.ts +95 -0
- package/dist/types/components/global-container/global-container.d.ts +39 -47
- package/dist/types/components/image-component/image-component.d.ts +45 -51
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -49
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +94 -0
- package/dist/types/components/referral-code/referral-code.d.ts +12 -10
- package/dist/types/components/referral-component/referral-component.d.ts +46 -46
- package/dist/types/components/referral-list/referral-list.d.ts +234 -249
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
- package/dist/types/components/share-button/share-button.d.ts +77 -82
- package/dist/types/components/share-button-container/share-button-container.d.ts +593 -684
- package/dist/types/components/stat-component/stat-component.d.ts +49 -48
- package/dist/types/components/stats-container/stats-container.d.ts +47 -45
- package/dist/types/components/text-component/text-component.d.ts +73 -81
- package/dist/types/components.d.ts +646 -548
- package/dist/types/global/global.d.ts +4 -4
- package/dist/types/saasquatch.d.ts +105 -103
- package/dist/types/services/FormatJs.d.ts +7 -7
- package/dist/types/services/WidgetHost.d.ts +51 -45
- package/dist/types/utilities.d.ts +7 -7
- package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-1dfd20e2.entry.js} +1 -1
- package/dist/widget-components/p-24fc4ba9.js +1 -1
- package/dist/widget-components/p-46109683.js +3 -3
- package/dist/widget-components/{p-edd43dbc.js → p-4b1ab75c.js} +68 -3
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-599e6d35.system.entry.js} +1 -1
- package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
- package/dist/widget-components/p-9fcf9906.entry.js +233 -0
- package/dist/widget-components/{p-366f1663.entry.js → p-9ffe6e46.entry.js} +1 -1
- package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
- package/dist/widget-components/p-ad5121cf.system.js +1 -0
- package/dist/widget-components/{p-8e232564.system.js → p-b67d3319.system.js} +2 -2
- package/dist/widget-components/p-cdc72d95.system.entry.js +10 -0
- package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
- package/dist/widget-components/p-eeb2bfd4.system.entry.js +1 -0
- package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
- package/dist/widget-components/p-fbf0c7fe.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +98 -96
- package/readme.md +52 -52
- package/dist/collection/entrypoint.js +0 -32
- package/dist/widget-components/entrypoint.js +0 -32
- package/dist/widget-components/p-485eaf44.js +0 -1
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d416634a.entry.js +0 -148
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
- package/dist/widget-components/p-e61a8100.system.js +0 -1
package/package.json
CHANGED
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@saasquatch/vanilla-components",
|
|
3
|
-
"title": "Vanilla Components",
|
|
4
|
-
"version": "1.2.4-
|
|
5
|
-
"description": "A minimal design library with components for referral and loyalty experiences.",
|
|
6
|
-
"icon": "https://res.cloudinary.com/saasquatch/image/upload/
|
|
7
|
-
"raisins": "docs/raisins.json",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"collection
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"test
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@formatjs/intl-
|
|
34
|
-
"@
|
|
35
|
-
"@stencil/
|
|
36
|
-
"@stencil/
|
|
37
|
-
"@
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/
|
|
41
|
-
"@types/
|
|
42
|
-
"
|
|
43
|
-
"apollo-
|
|
44
|
-
"apollo-
|
|
45
|
-
"
|
|
46
|
-
"babel-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"graphql
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"intl-
|
|
56
|
-
"
|
|
57
|
-
"jest
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@saasquatch/vanilla-components",
|
|
3
|
+
"title": "Vanilla Components",
|
|
4
|
+
"version": "1.2.4-20",
|
|
5
|
+
"description": "A minimal design library with components for referral and loyalty experiences.",
|
|
6
|
+
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Vanilla.svg",
|
|
7
|
+
"raisins": "docs/raisins.json",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"unpkg": "dist/widget-components/widget-components.js",
|
|
10
|
+
"module": "dist/widget-components/widget-components.esm.js",
|
|
11
|
+
"es2015": "dist/esm/index.mjs",
|
|
12
|
+
"es2017": "dist/esm/index.mjs",
|
|
13
|
+
"types": "dist/types/components.d.ts",
|
|
14
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
15
|
+
"collection:main": "dist/collection/index.js",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/",
|
|
18
|
+
"docs/"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "stencil build --docs",
|
|
22
|
+
"start": "cross-env NODE_ENV=dev stencil build --dev --watch --serve",
|
|
23
|
+
"test": "stencil test --spec --e2e",
|
|
24
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
25
|
+
"generate": "stencil generate",
|
|
26
|
+
"storybook": "start-storybook -p 6006 -s ./dist",
|
|
27
|
+
"build-storybook": "build-storybook -o docs -c .storybook-prod",
|
|
28
|
+
"contentful": "ts-node templates/build-contentful.ts",
|
|
29
|
+
"serve:package": "serve . --cors",
|
|
30
|
+
"start:raisins": "run-p start serve:package"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@formatjs/intl-relativetimeformat": "^4.5.15",
|
|
34
|
+
"@formatjs/intl-utils": "^2.2.5",
|
|
35
|
+
"@stencil/core": "^1.17.0",
|
|
36
|
+
"@stencil/sass": "^1.3.2",
|
|
37
|
+
"@stencil/utils": "latest",
|
|
38
|
+
"@types/clipboard": "^2.0.1",
|
|
39
|
+
"@types/faker": "^4.1.11",
|
|
40
|
+
"@types/jest": "^25.2.1",
|
|
41
|
+
"@types/node": "^13.13.15",
|
|
42
|
+
"@types/puppeteer": "2.0.1",
|
|
43
|
+
"apollo-cache-inmemory": "^1.6.5",
|
|
44
|
+
"apollo-client": "^2.6.8",
|
|
45
|
+
"apollo-link-http": "^1.5.17",
|
|
46
|
+
"babel-core": "^6.26.3",
|
|
47
|
+
"babel-runtime": "^6.26.0",
|
|
48
|
+
"clipboard": "^2.0.6",
|
|
49
|
+
"cross-env": "^7.0.2",
|
|
50
|
+
"emotion": "^10.0.27",
|
|
51
|
+
"faker": "^4.1.0",
|
|
52
|
+
"graphql": "^14.7.0",
|
|
53
|
+
"graphql-tag": "^2.11.0",
|
|
54
|
+
"html-minifier": "^4.0.0",
|
|
55
|
+
"intl-messageformat": "^8.3.10",
|
|
56
|
+
"intl-relativeformat": "^6.4.3",
|
|
57
|
+
"jest": "^26.2.2",
|
|
58
|
+
"jest-cli": "^26.2.2",
|
|
59
|
+
"marked": "^1.1.1",
|
|
60
|
+
"path-to-regexp": "^6.1.0",
|
|
61
|
+
"progressbar.js": "^1.0.1",
|
|
62
|
+
"puppeteer": "3.0.3",
|
|
63
|
+
"ts-node": "^8.10.1",
|
|
64
|
+
"uuid": "^8.3.0",
|
|
65
|
+
"workbox-build": "4.3.1"
|
|
66
|
+
},
|
|
67
|
+
"resolutions": {
|
|
68
|
+
"apollo-link": "^1.2.14"
|
|
69
|
+
},
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "git+https://github.com/saasquatch/program-tools.git"
|
|
73
|
+
},
|
|
74
|
+
"author": "SaaSquatch Team",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"bugs": {
|
|
77
|
+
"url": "https://github.com/saasquatch/program-tools"
|
|
78
|
+
},
|
|
79
|
+
"homepage": "https://github.com/saasquatch/program-tools",
|
|
80
|
+
"gitHead": "8bb7593d8b46310071835017f0cd63c8c36013b4",
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@formatjs/intl-pluralrules": "^1.5.8",
|
|
83
|
+
"@raisins/stencil-docs-target": "^0.2.10"
|
|
84
|
+
},
|
|
85
|
+
"jest": {
|
|
86
|
+
"transform": {
|
|
87
|
+
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
|
|
88
|
+
},
|
|
89
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
90
|
+
"moduleFileExtensions": [
|
|
91
|
+
"ts",
|
|
92
|
+
"tsx",
|
|
93
|
+
"js",
|
|
94
|
+
"json",
|
|
95
|
+
"jsx"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# Stencil App Starter
|
|
2
|
-
|
|
3
|
-
Stencil is a compiler for building fast web apps using Web Components.
|
|
4
|
-
|
|
5
|
-
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
6
|
-
|
|
7
|
-
Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
|
|
8
|
-
|
|
9
|
-
Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
|
|
10
|
-
|
|
11
|
-
## Getting Started
|
|
12
|
-
|
|
13
|
-
To start a new project using Stencil, clone this repo to a new directory:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
git clone https://github.com/ionic-team/stencil-starter.git my-app
|
|
17
|
-
cd my-app
|
|
18
|
-
git remote rm origin
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
and run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install
|
|
25
|
-
npm start
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
To view the build, start an HTTP server inside of the `/www` directory.
|
|
29
|
-
|
|
30
|
-
To watch for file changes during development, run:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run dev
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
To build the app for production, run:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run build
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
To run the unit tests once, run:
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
npm test
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
To run the unit tests and watch for file changes during development, run:
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
npm run test.watch
|
|
52
|
-
```
|
|
1
|
+
# Stencil App Starter
|
|
2
|
+
|
|
3
|
+
Stencil is a compiler for building fast web apps using Web Components.
|
|
4
|
+
|
|
5
|
+
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
6
|
+
|
|
7
|
+
Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
|
|
8
|
+
|
|
9
|
+
Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
|
|
10
|
+
|
|
11
|
+
## Getting Started
|
|
12
|
+
|
|
13
|
+
To start a new project using Stencil, clone this repo to a new directory:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://github.com/ionic-team/stencil-starter.git my-app
|
|
17
|
+
cd my-app
|
|
18
|
+
git remote rm origin
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
and run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install
|
|
25
|
+
npm start
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To view the build, start an HTTP server inside of the `/www` directory.
|
|
29
|
+
|
|
30
|
+
To watch for file changes during development, run:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
To build the app for production, run:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To run the unit tests once, run:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm test
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
To run the unit tests and watch for file changes during development, run:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
npm run test.watch
|
|
52
|
+
```
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
-
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
-
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
4
|
-
(function(doc){
|
|
5
|
-
var isSafari10 = window.navigator.userAgent.indexOf('Safari') > 0 && window.navigator.userAgent.indexOf('Version/10') > 0;
|
|
6
|
-
var scriptElm = doc.scripts[doc.scripts.length - 1];
|
|
7
|
-
|
|
8
|
-
var parts = scriptElm.src.split('/');
|
|
9
|
-
parts.pop();
|
|
10
|
-
var url = parts.join('/');
|
|
11
|
-
|
|
12
|
-
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
13
|
-
// without the "nomodule" attribute
|
|
14
|
-
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
15
|
-
|
|
16
|
-
if (!isSafari10) {
|
|
17
|
-
var scriptElm = doc.createElement('script');
|
|
18
|
-
scriptElm.setAttribute('type', 'module');
|
|
19
|
-
scriptElm.src = url + '/widget-components.esm.js';
|
|
20
|
-
scriptElm.setAttribute('data-stencil-namespace', 'widget-components');
|
|
21
|
-
doc.head.appendChild(scriptElm);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var scriptElm = doc.createElement('script');
|
|
25
|
-
if (!isSafari10) {
|
|
26
|
-
scriptElm.setAttribute('nomodule', '');
|
|
27
|
-
}
|
|
28
|
-
scriptElm.src = url + '/widget-components.js';
|
|
29
|
-
scriptElm.setAttribute('data-stencil-namespace', 'widget-components');
|
|
30
|
-
doc.head.appendChild(scriptElm)
|
|
31
|
-
})(document);
|
|
32
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// NOTE(johan): This is a custom loader which will inject script tags for both the ES Modules and non-ES Modules
|
|
2
|
-
// builds. We use this instead of dist/widget-components.js as that is deprecated and actually doesn't work because of
|
|
3
|
-
// its name causing lazy loaded scripts to be loaded from the wrong path in /dist
|
|
4
|
-
(function(doc){
|
|
5
|
-
var isSafari10 = window.navigator.userAgent.indexOf('Safari') > 0 && window.navigator.userAgent.indexOf('Version/10') > 0;
|
|
6
|
-
var scriptElm = doc.scripts[doc.scripts.length - 1];
|
|
7
|
-
|
|
8
|
-
var parts = scriptElm.src.split('/');
|
|
9
|
-
parts.pop();
|
|
10
|
-
var url = parts.join('/');
|
|
11
|
-
|
|
12
|
-
// NOTE(johan): Safari 10 supports type="module" but the build is too new for it, so we only want the ES5 build but
|
|
13
|
-
// without the "nomodule" attribute
|
|
14
|
-
// This may not be necessary in Stencil 1.8.x - https://github.com/ionic-team/stencil/issues/1900
|
|
15
|
-
|
|
16
|
-
if (!isSafari10) {
|
|
17
|
-
var scriptElm = doc.createElement('script');
|
|
18
|
-
scriptElm.setAttribute('type', 'module');
|
|
19
|
-
scriptElm.src = url + '/widget-components.esm.js';
|
|
20
|
-
scriptElm.setAttribute('data-stencil-namespace', 'widget-components');
|
|
21
|
-
doc.head.appendChild(scriptElm);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var scriptElm = doc.createElement('script');
|
|
25
|
-
if (!isSafari10) {
|
|
26
|
-
scriptElm.setAttribute('nomodule', '');
|
|
27
|
-
}
|
|
28
|
-
scriptElm.src = url + '/widget-components.js';
|
|
29
|
-
scriptElm.setAttribute('data-stencil-namespace', 'widget-components');
|
|
30
|
-
doc.head.appendChild(scriptElm)
|
|
31
|
-
})(document);
|
|
32
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t="widget-components";let e,n,l=!1,o=!1,s=!1,r=0,c=!1;const i="undefined"!=typeof window?window:{},f=i.CSS,a=i.document||{head:{}},u=i.HTMLElement||class{},d={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),$=(t,e,n)=>{n&&n.map(([n,l,o])=>{const s=t,r=m(e,o),c=y(n);d.ael(s,l,r,c),(e.o=e.o||[]).push(()=>d.rel(s,l,r,c))})},m=(t,e)=>n=>{256&t.t?t.s[e](n):(t.i=t.i||[]).push([e,n])},y=t=>0!=(2&t),b=new WeakMap,g=t=>"sc-"+t.u,w={},v=t=>"object"==(t=typeof t)||"function"===t,j="undefined"!=typeof Deno,k=!(j||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),O=(j&&Deno,k?process:j&&Deno,k?process:j&&Deno,(t,e,...n)=>{let l=null,o=null,s=!1,r=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!v(l))&&(l+=""),s&&r?c[c.length-1].p+=l:c.push(s?M(null,l):l),r=s)};if(i(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,_);const f=M(t,null);return f.h=e,c.length>0&&(f.$=c),f.m=o,f}),M=(t,e)=>({t:0,g:t,p:e,v:null,$:null,h:null,m:null}),S={},_={forEach:(t,e)=>t.map(C).forEach(e),map:(t,e)=>t.map(C).map(e).map(x)},C=t=>({vattrs:t.h,vchildren:t.$,vkey:t.j,vname:t.m,vtag:t.g,vtext:t.p}),x=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),O(t.vtag,e,...t.vchildren||[])}const e=M(t.vtag,t.vtext);return e.h=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.m=t.vname,e},D=(t,e,n,l,o,s)=>{if(n!==l){let r=yt(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=N(n),s=N(l);e.remove(...o.filter(t=>t&&!s.includes(t))),e.add(...s.filter(t=>t&&!o.includes(t)))}else if(r||"o"!==e[0]||"n"!==e[1]){const c=v(l);if((r||c&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):yt(i,c)?c.slice(2):c[2]+e.slice(3),n&&d.rel(t,e,n,!1),l&&d.ael(t,e,l,!1)}},E=/\s/,N=t=>t?t.split(E):[],R=(t,e,n,l)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,s=t&&t.h||w,r=e.h||w;for(l in s)l in r||D(o,l,s[l],void 0,n,e.t);for(l in r)D(o,l,s[l],r[l],n,e.t)},T=(t,o,r)=>{let c,i,f,u=o.$[r],d=0;if(l||(s=!0,"slot"===u.g&&(u.t|=u.$?2:1)),null!==u.p)c=u.v=a.createTextNode(u.p);else if(1&u.t)c=u.v=a.createTextNode("");else if(c=u.v=a.createElement(2&u.t?"slot-fb":u.g),R(null,u,!1),u.$)for(d=0;d<u.$.length;++d)i=T(t,u,d),i&&c.appendChild(i);return c["s-hn"]=n,3&u.t&&(c["s-sr"]=!0,c["s-cr"]=e,c["s-sn"]=u.m||"",f=t&&t.$&&t.$[r],f&&f.g===u.g&&t.v&&L(t.v,!1)),c},L=(t,e)=>{d.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(q(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&L(o,e)}d.t&=-2},P=(t,e,n,l,o,s)=>{let r,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(;o<=s;++o)l[o]&&(r=T(null,n,o),r&&(l[o].v=r,c.insertBefore(r,W(e))))},A=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(o=!0,(s=l.v)["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},U=(t,e)=>t.g===e.g&&("slot"!==t.g||t.m===e.m),W=t=>t&&t["s-ol"]||t,q=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,F=(t,e)=>{const n=e.v=t.v,l=t.$,o=e.$,s=e.p;let r;null===s?("slot"===e.g||R(t,e,!1),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],f=e[c],a=l.length-1,u=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==f?f=e[--c]:null==u?u=l[++r]:null==d?d=l[--a]:U(i,u)?(F(i,u),i=e[++s],u=l[++r]):U(f,d)?(F(f,d),f=e[--c],d=l[--a]):U(i,d)?("slot"!==i.g&&"slot"!==d.g||L(i.v.parentNode,!1),F(i,d),t.insertBefore(i.v,f.v.nextSibling),i=e[++s],d=l[--a]):U(f,u)?("slot"!==i.g&&"slot"!==d.g||L(f.v.parentNode,!1),F(f,u),t.insertBefore(f.v,i.v),f=e[--c],u=l[++r]):(o=T(e&&e[r],n,r),u=l[++r],o&&q(i.v).insertBefore(o,W(i.v)));s>c?P(t,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&A(e,s,c)})(n,l,e,o):null!==o?(null!==t.p&&(n.textContent=""),P(n,null,e,o,0,o.length-1)):null!==l&&A(l,0,l.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:t.p!==s&&(n.data=s)},H=t=>{let e,n,l,o,s,r,c=t.childNodes;for(n=0,l=c.length;n<l;n++)if(e=c[n],1===e.nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<l;o++)if(c[o]["s-hn"]!==e["s-hn"])if(r=c[o].nodeType,""!==s){if(1===r&&s===c[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==c[o].textContent.trim()){e.hidden=!0;break}H(e)}},V=[],z=t=>{let e,n,l,s,r,c,i=0,f=t.childNodes,a=f.length;for(;i<a;i++){if(e=f[i],e["s-sr"]&&(n=e["s-cr"]))for(l=n.parentNode.childNodes,s=e["s-sn"],c=l.length-1;c>=0;c--)n=l[c],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(B(n,s)?(r=V.find(t=>t.k===n),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.O=e:V.push({O:e,k:n}),n["s-sr"]&&V.map(t=>{B(t.k,n["s-sn"])&&(r=V.find(t=>t.k===n),r&&!t.O&&(t.O=r.O))})):V.some(t=>t.k===n)||V.push({k:n}));1===e.nodeType&&z(e)}},B=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,G=t=>ht(t).M,I=(t,e,n)=>{const l=G(t);return{emit:t=>J(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},J=(t,e,n)=>{const l=d.ce(e,n);return t.dispatchEvent(l),l},K=(t,e)=>{e&&!t.S&&e["s-p"]&&e["s-p"].push(new Promise(e=>t.S=e))},Q=(t,e)=>{if(t.t|=16,!(4&t.t))return K(t,t._),xt(()=>X(t,e));t.t|=512},X=(t,e)=>{const n=t.s;let l;return e&&(t.t|=256,t.i&&(t.i.map(([t,e])=>nt(n,t,e)),t.i=null),l=nt(n,"componentWillLoad")),lt(l,()=>Y(t,n,e))},Y=(t,r,c)=>{const i=t.M,f=i["s-rc"];c&&(t=>{const e=t.C;((t,e)=>{let n=g(e),l=vt.get(n);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let e,o=b.get(t=t.head||t);o||b.set(t,o=new Set),o.has(n)||(e=a.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.M.getRootNode(),e)})(t);((t,r)=>{const c=t.M,i=t.C,f=t.D||M(null,null),u=(t=>t&&t.g===S)(r)?r:O(null,null,r);if(n=c.tagName,u.g=null,u.t|=4,t.D=u,u.v=f.v=c,e=c["s-cr"],l=0!=(1&i.t),o=!1,F(f,u),d.t|=1,s){let t,e,n,l,o,s;z(u.v);let r=0;for(;r<V.length;r++)t=V[r],e=t.k,e["s-ol"]||(n=a.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<V.length;r++)if(t=V[r],e=t.k,t.O){for(l=t.O.parentNode,o=t.O.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&H(u.v),d.t&=-2,V.length=0})(t,Z(t,r)),f&&(f.map(t=>t()),i["s-rc"]=void 0);{const e=i["s-p"],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},Z=(t,e)=>{try{e=e.render(),t.t&=-17,t.t|=2}catch(t){bt(t)}return e},tt=t=>{const e=t.M,n=t.s,l=t._;64&t.t||(t.t|=64,ot(e),nt(n,"componentDidLoad"),t.N(e),l||et()),t.S&&(t.S(),t.S=void 0),512&t.t&&Ct(()=>Q(t,!1)),t.t&=-517},et=()=>{ot(a.documentElement),d.t|=2,Ct(()=>J(i,"appload",{detail:{namespace:"widget-components"}}))},nt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){bt(t)}},lt=(t,e)=>t&&t.then?t.then(e):e(),ot=t=>t.classList.add("hydrated"),st=(t,e,n)=>{if(e.R){t.watchers&&(e.T=t.watchers);const l=Object.entries(e.R),o=t.prototype;if(l.map(([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>ht(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=ht(t),s=o.L.get(e),r=o.t,c=o.s;if(n=((t,e)=>null==t||v(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.R[e][0]),!(8&r&&void 0!==s||n===s)&&(o.L.set(e,n),c)){if(l.T&&128&r){const t=l.T[e];t&&t.map(t=>{try{c[t](n,s,e)}catch(t){bt(t)}})}2==(18&r)&&Q(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){d.jmp(()=>{const n=e.get(t);this[n]=(null!==l||"boolean"!=typeof this[n])&&l})},t.observedAttributes=l.filter(([t,e])=>15&e[0]).map(([t,n])=>{const l=n[1]||t;return e.set(l,t),l})}}return t},rt=t=>{const e=t.cloneNode;t.cloneNode=function(t){const n=this,l=e.call(n,!1);if(t){let t,e=0;for(;e<n.childNodes.length;e++)t=n.childNodes[e]["s-nr"],t&&(l.__appendChild?l.__appendChild(t.cloneNode(!0)):l.appendChild(t.cloneNode(!0)))}return l}},ct=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=ft(t),n=at(this.childNodes,e);if(n){const l=ut(n,e),o=l[l.length-1];return o.parentNode.insertBefore(t,o.nextSibling)}return this.__appendChild(t)}},it=(t,e)=>{class n extends Array{item(t){return this[t]}}if(8&e.t){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map(t=>1===t.nodeType)}}),Object.defineProperty(t,"childElementCount",{get:()=>t.children.length}),Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if(0==(1&d.t)&&2&ht(this).t){const e=new n;for(let n=0;n<t.length;n++){const l=t[n]["s-nr"];l&&e.push(l)}return e}return n.from(t)}})}},ft=t=>t["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",at=(t,e)=>{let n,l=0;for(;l<t.length;l++){if(n=t[l],n["s-sr"]&&n["s-sn"]===e)return n;if(n=at(n.childNodes,e),n)return n}return null},ut=(t,e)=>{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},dt=(t,e={})=>{const n=[],l=e.exclude||[],o=i.customElements,s=a.head,r=s.querySelector("meta[charset]"),c=a.createElement("style"),f=[];let u,p=!0;Object.assign(d,e),d.l=new URL(e.resourcesUrl||"./",a.baseURI).href,e.syncQueue&&(d.t|=4),t.map(t=>t[1].map(e=>{const s={t:e[0],u:e[1],R:e[2],P:e[3]};s.R=e[2],s.P=e[3],s.T={};const r=s.u,c=class extends HTMLElement{constructor(t){super(t),mt(t=this,s),it(t,s)}connectedCallback(){u&&(clearTimeout(u),u=null),p?f.push(this):d.jmp(()=>(t=>{if(0==(1&d.t)){const e=ht(t),n=e.C,l=()=>{};if(1&e.t)$(t,e,n.P);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(e,e._=n);break}}n.R&&Object.entries(n.R).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),Ct(()=>(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=wt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.T=o.watchers,st(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){bt(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=g(n);if(!vt.has(e)){const l=()=>{};((t,e,n)=>{let l=vt.get(t);h&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,vt.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e._,r=()=>Q(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n))}l()}})(this))}disconnectedCallback(){d.jmp(()=>(()=>{if(0==(1&d.t)){const t=ht(this);t.o&&(t.o.map(t=>t()),t.o=void 0)}})())}forceUpdate(){(()=>{{const t=ht(this);t.M.isConnected&&2==(18&t.t)&&Q(t,!1)}})()}componentOnReady(){return ht(this).A}};rt(c.prototype),ct(c.prototype),s.U=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,st(c,s,1)))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.firstChild),p=!1,f.length?f.map(t=>t.connectedCallback()):d.jmp(()=>u=setTimeout(et,30))},pt=new WeakMap,ht=t=>pt.get(t),$t=(t,e)=>pt.set(e.s=t,e),mt=(t,e)=>{const n={t:0,M:t,C:e,L:new Map};return n.A=new Promise(t=>n.N=t),t["s-p"]=[],t["s-rc"]=[],$(t,n,e.P),pt.set(t,n)},yt=(t,e)=>e in t,bt=t=>console.error(t),gt=new Map,wt=t=>{const e=t.u.replace(/-/g,"_"),n=t.U,l=gt.get(n);return l?l[e]:__sc_import_widget_components(`./${n}.entry.js`).then(t=>(gt.set(n,t),t[e]),bt)},vt=new Map,jt=[],kt=[],Ot=[],Mt=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&d.t?Ct(_t):d.raf(_t))},St=(t,e)=>{let n=0,l=0;for(;n<t.length&&(l=performance.now())<e;)try{t[n++](l)}catch(t){bt(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},_t=()=>{r++,(t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){bt(t)}t.length=0})(jt);{const t=2==(6&d.t)?performance.now()+14*Math.ceil(.1*r):1/0;St(kt,t),St(Ot,t),kt.length>0&&(Ot.push(...kt),kt.length=0),(c=jt.length+kt.length+Ot.length>0)?d.raf(_t):r=0}},Ct=t=>p().then(t),xt=Mt(kt,!0);export{f as C,u as H,t as N,p as a,dt as b,I as c,a as d,G as g,O as h,d as p,$t as r,i as w}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-e61a8100.system.js","./p-22e300c7.system.js","./p-8e232564.system.js"],(function(e){"use strict";var t,o,n,s,r;return{setters:[function(e){t=e.r;o=e.h;n=e.g},function(){},function(e){s=e.A;r=e.w}],execute:function(){var c="sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";var u=e("sqh_close_button",function(){function e(e){t(this,e);this.text="Close"}e.prototype.handleClick=function(){s.ui.close()};e.prototype.componentDidLoad=function(){var e=r();if(e&&e.engagementMedium!="POPUP"){this.closeButton.setAttribute("style","display:none")}};e.prototype.render=function(){return o("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)};Object.defineProperty(e.prototype,"closeButton",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());u.style=c}}}));
|