@gataca/qr 2.0.0 → 2.0.2
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/dist/gatacaqr/app-globals-0f993ce5.js +3 -0
- package/dist/gatacaqr/css-shim-8eec97b3.js +4 -0
- package/dist/gatacaqr/dom-1b0cf05d.js +73 -0
- package/dist/{components/gat-icon-refresh.js → gatacaqr/gat-icon-refresh-8d3dc25f.js} +1 -23
- package/dist/{esm → gatacaqr}/gataca-autoqr.entry.js +19 -2
- package/dist/{esm → gatacaqr}/gataca-qr.entry.js +4 -4
- package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +97 -0
- package/dist/gatacaqr/gataca-qrdisplay.entry.js +2 -0
- package/dist/{esm/gataca-qrdisplay_2.entry.js → gatacaqr/gataca-qrws.entry.js} +5 -47
- package/dist/{components/gataca-ssibutton2.js → gatacaqr/gataca-ssibutton.entry.js} +8 -52
- package/dist/{components/gataca-ssibuttonws2.js → gatacaqr/gataca-ssibuttonws.entry.js} +7 -53
- package/dist/gatacaqr/gatacaqr.esm.js +129 -1
- package/dist/gatacaqr/index-d0db23e4.js +3262 -0
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/shadow-css-146f2f6f.js +387 -0
- package/package.json +1 -1
- package/dist/cjs/gat-icon-refresh-751505ff.js +0 -14
- package/dist/cjs/gataca-autoqr.cjs.entry.js +0 -88
- package/dist/cjs/gataca-qr.cjs.entry.js +0 -175
- package/dist/cjs/gataca-qrdisplay_2.cjs.entry.js +0 -219
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -114
- package/dist/cjs/gatacaqr.cjs.js +0 -19
- package/dist/cjs/index-0b7a1532.js +0 -1410
- package/dist/cjs/index.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/qr-code-styling-412bbc7a.js +0 -28
- package/dist/cjs/utils-383ee834.js +0 -26
- package/dist/collection/assets/icons/gat-icon-alert.svg +0 -5
- package/dist/collection/assets/icons/gat-icon-check.svg +0 -5
- package/dist/collection/assets/icons/gat-icon-refresh.svg +0 -4
- package/dist/collection/assets/images/logo_gataca.svg +0 -26
- package/dist/collection/collection-manifest.json +0 -17
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +0 -116
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -306
- package/dist/collection/components/gataca-qr/gataca-qr.css +0 -249
- package/dist/collection/components/gataca-qr/gataca-qr.js +0 -557
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +0 -154
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +0 -249
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +0 -566
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +0 -116
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +0 -395
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +0 -116
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +0 -410
- package/dist/collection/index.js +0 -2
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -21
- package/dist/components/gataca-autoqr.js +0 -144
- package/dist/components/gataca-qr.js +0 -6
- package/dist/components/gataca-qr2.js +0 -211
- package/dist/components/gataca-qrdisplay.js +0 -6
- package/dist/components/gataca-qrdisplay2.js +0 -93
- package/dist/components/gataca-qrws.js +0 -6
- package/dist/components/gataca-qrws2.js +0 -212
- package/dist/components/gataca-ssibutton.js +0 -6
- package/dist/components/gataca-ssibuttonws.js +0 -6
- package/dist/components/index.js +0 -8
- package/dist/esm/gat-icon-refresh-179ea123.js +0 -9
- package/dist/esm/gataca-ssibutton_2.entry.js +0 -109
- package/dist/esm/gatacaqr.js +0 -17
- package/dist/esm/index-19eef502.js +0 -1384
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/qr-code-styling-0eeb38d5.js +0 -26
- package/dist/gatacaqr/p-0905677f.entry.js +0 -1
- package/dist/gatacaqr/p-0be4566d.js +0 -1
- package/dist/gatacaqr/p-1d35273f.entry.js +0 -1
- package/dist/gatacaqr/p-2f22c7fc.js +0 -1
- package/dist/gatacaqr/p-4139a068.entry.js +0 -1
- package/dist/gatacaqr/p-a6f85341.js +0 -2
- package/dist/gatacaqr/p-b8ba109f.js +0 -1
- package/dist/gatacaqr/p-f85d7e76.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → gatacaqr}/utils-05ba6c9f.js +0 -0
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { d as defineCustomElement$2 } from './gataca-qr2.js';
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-d0db23e4.js';
|
|
2
|
+
import './gataca-qrdisplay-0320bb25.js';
|
|
4
3
|
|
|
5
4
|
const gatacaSsibuttonCss = "@import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.buttonContainer{display:inline-block;text-align:right;padding:10px;position:relative}.gatacaButtonWrapper{margin:8px}.gatacaButtonWrapper .gatacaButton{display:flex;min-width:100px;padding:8px 8px;background-color:white;font-size:12px;font-family:\"Work Sans\", sans-serif;letter-spacing:1px;font-weight:2;justify-content:space-between;align-items:center;border-radius:6px;border:1px solid rgba(24, 27, 94, 0.5);color:rgba(24, 27, 94, 0.8);box-shadow:0px 1px 3px rgba(48, 48, 48, 0.15);cursor:pointer}.gatacaButtonWrapper .gatacaButton>span{margin-right:10px}.gatacaButtonWrapper .gatacaButton:hover{box-shadow:0px 2px 8px rgba(48, 48, 48, 0.1)}.gatacaButtonWrapper .buttonText{text-align:right;font-size:8px;color:rgba(24, 27, 94, 0.5);font-family:\"Helvetica Neue\", sans-serif;letter-spacing:1px;padding-right:8px;font-weight:1}.gatacaButtonWrapper .buttonImg{height:25px;width:25px;margin:0;margin-right:20px}";
|
|
6
5
|
|
|
7
6
|
const PHONE_ICON = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHvSURBVHgB3ZZPTttAFMbfe3YjL7qYLopcpZXSG7Q3CDfIsqrSJpyg5QQtJ2h7glgUdVs4AeEE5AYEQSDAgtnw357Hm0hAQDaeIRFCfFKyeKPxzzPzvc+DUKCZN80GEv1ABgWOQgSdGbOwv7u0nDueV4zjTzUIKhuAZna4vdQFR828azbI0K/TI/qodaLvjlP+tLDGDCs+IKv9Lbsi7kcv0w9541Q0EREPYcoieEQ9KiyECRXHzbpBUOcnYTfPFOOaaGVx9WsLiDrSIp0iU0wFNgIx/AQyc9I/OmOjy+Y8aBvHQcDUYebewc6/Xtk8J5htcg5efEPGhk0JtqkyBjo7DuZcnuO2sqCyKv8rUDmfTS9IBURqBAL+I6CkzBjOMOs22TLY21n8fl17KzXR3uDvb/CQk0GEdfvN07QvpnAOaGfYaRT25JzU6+rnG2tTpcWAy+Cp0m3U/URLms8HWfg/rn6RFaGSs9KQkZMpvGBWNs2Vandt46ac6YNBuc0fDLMaOU5DFybQ8039p/KJ4bq4rwPewtqoM/1gsCm/NfBXvWjgHhhuDAeLyd3qVSifHQULeZkou9EqemLhmUmav8qrZ4GEMGA7ivzjKvfeqGptFV2YdWPMPHHq0cCh3DdpVdLl/XCY9J1gVvbCiWa6N+JLocPFjCsx9cAAAAAASUVORK5CYII=";
|
|
8
|
-
const GatacaSSIButton =
|
|
9
|
-
constructor() {
|
|
10
|
-
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
7
|
+
const GatacaSSIButton = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
13
10
|
this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
|
|
14
11
|
this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
|
|
15
12
|
this.buttonText = "Easy login";
|
|
@@ -53,48 +50,7 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
53
50
|
render() {
|
|
54
51
|
return (h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
|
|
55
52
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"buttonText": [1, "button-text"],
|
|
59
|
-
"checkStatus": [16],
|
|
60
|
-
"createSession": [16],
|
|
61
|
-
"successCallback": [16],
|
|
62
|
-
"errorCallback": [16],
|
|
63
|
-
"qrRole": [1, "qr-role"],
|
|
64
|
-
"callbackServer": [1, "callback-server"],
|
|
65
|
-
"sessionTimeout": [2, "session-timeout"],
|
|
66
|
-
"pollingFrequency": [2, "polling-frequency"],
|
|
67
|
-
"autorefresh": [4],
|
|
68
|
-
"v2": [4, "v-2"],
|
|
69
|
-
"qrModalTitle": [1, "qr-modal-title"],
|
|
70
|
-
"qrModalDescription": [1, "qr-modal-description"],
|
|
71
|
-
"hideBrandTitle": [4, "hide-brand-title"],
|
|
72
|
-
"dynamicLink": [4, "dynamic-link"],
|
|
73
|
-
"open": [32],
|
|
74
|
-
"getSessionData": [64]
|
|
75
|
-
}]);
|
|
76
|
-
function defineCustomElement() {
|
|
77
|
-
if (typeof customElements === "undefined") {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const components = ["gataca-ssibutton", "gataca-qr", "gataca-qrdisplay"];
|
|
81
|
-
components.forEach(tagName => { switch (tagName) {
|
|
82
|
-
case "gataca-ssibutton":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
customElements.define(tagName, GatacaSSIButton);
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case "gataca-qr":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
defineCustomElement$2();
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case "gataca-qrdisplay":
|
|
93
|
-
if (!customElements.get(tagName)) {
|
|
94
|
-
defineCustomElement$1();
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
} });
|
|
98
|
-
}
|
|
53
|
+
};
|
|
54
|
+
GatacaSSIButton.style = gatacaSsibuttonCss;
|
|
99
55
|
|
|
100
|
-
export { GatacaSSIButton as
|
|
56
|
+
export { GatacaSSIButton as gataca_ssibutton };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as defineCustomElement$2 } from './gataca-qrdisplay2.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './gataca-qrws2.js';
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-d0db23e4.js';
|
|
4
2
|
|
|
5
3
|
const gatacaSsibuttonwsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.buttonContainer{display:inline-block;text-align:right;padding:10px;position:relative}.gatacaButtonWrapper{margin:8px}.gatacaButtonWrapper .gatacaButton{display:flex;min-width:100px;padding:8px 8px;background-color:white;font-size:12px;font-family:\"Work Sans\", sans-serif;letter-spacing:1px;font-weight:2;justify-content:space-between;align-items:center;border-radius:6px;border:1px solid rgba(24, 27, 94, 0.5);color:rgba(24, 27, 94, 0.8);box-shadow:0px 1px 3px rgba(48, 48, 48, 0.15);cursor:pointer}.gatacaButtonWrapper .gatacaButton>span{margin-right:10px}.gatacaButtonWrapper .gatacaButton:hover{box-shadow:0px 2px 8px rgba(48, 48, 48, 0.1)}.gatacaButtonWrapper .buttonText{text-align:right;font-size:8px;color:rgba(24, 27, 94, 0.5);font-family:\"Helvetica Neue\", sans-serif;letter-spacing:1px;padding-right:8px;font-weight:1}.gatacaButtonWrapper .buttonImg{height:25px;width:25px;margin:0;margin-right:20px}";
|
|
6
4
|
|
|
7
5
|
const PHONE_ICON = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHvSURBVHgB3ZZPTttAFMbfe3YjL7qYLopcpZXSG7Q3CDfIsqrSJpyg5QQtJ2h7glgUdVs4AeEE5AYEQSDAgtnw357Hm0hAQDaeIRFCfFKyeKPxzzPzvc+DUKCZN80GEv1ABgWOQgSdGbOwv7u0nDueV4zjTzUIKhuAZna4vdQFR828azbI0K/TI/qodaLvjlP+tLDGDCs+IKv9Lbsi7kcv0w9541Q0EREPYcoieEQ9KiyECRXHzbpBUOcnYTfPFOOaaGVx9WsLiDrSIp0iU0wFNgIx/AQyc9I/OmOjy+Y8aBvHQcDUYebewc6/Xtk8J5htcg5efEPGhk0JtqkyBjo7DuZcnuO2sqCyKv8rUDmfTS9IBURqBAL+I6CkzBjOMOs22TLY21n8fl17KzXR3uDvb/CQk0GEdfvN07QvpnAOaGfYaRT25JzU6+rnG2tTpcWAy+Cp0m3U/URLms8HWfg/rn6RFaGSs9KQkZMpvGBWNs2Vandt46ac6YNBuc0fDLMaOU5DFybQ8039p/KJ4bq4rwPewtqoM/1gsCm/NfBXvWjgHhhuDAeLyd3qVSifHQULeZkou9EqemLhmUmav8qrZ4GEMGA7ivzjKvfeqGptFV2YdWPMPHHq0cCh3DdpVdLl/XCY9J1gVvbCiWa6N+JLocPFjCsx9cAAAAAASUVORK5CYII=";
|
|
8
|
-
const GatacaSSIButtonWS =
|
|
9
|
-
constructor() {
|
|
10
|
-
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
6
|
+
const GatacaSSIButtonWS = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
13
9
|
this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
|
|
14
10
|
this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
|
|
15
11
|
this.buttonText = "Easy login";
|
|
@@ -54,49 +50,7 @@ const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
54
50
|
render() {
|
|
55
51
|
return (h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"buttonText": [1, "button-text"],
|
|
60
|
-
"successCallback": [16],
|
|
61
|
-
"errorCallback": [16],
|
|
62
|
-
"qrRole": [1, "qr-role"],
|
|
63
|
-
"callbackServer": [1, "callback-server"],
|
|
64
|
-
"socketEndpoint": [1, "socket-endpoint"],
|
|
65
|
-
"sessionTimeout": [2, "session-timeout"],
|
|
66
|
-
"wsOnOpen": [16],
|
|
67
|
-
"wsOnMessage": [16],
|
|
68
|
-
"autostart": [4],
|
|
69
|
-
"autorefresh": [4],
|
|
70
|
-
"v2": [4, "v-2"],
|
|
71
|
-
"qrModalTitle": [1, "qr-modal-title"],
|
|
72
|
-
"qrModalDescription": [1, "qr-modal-description"],
|
|
73
|
-
"hideBrandTitle": [4, "hide-brand-title"],
|
|
74
|
-
"dynamicLink": [4, "dynamic-link"],
|
|
75
|
-
"open": [32],
|
|
76
|
-
"getSessionData": [64]
|
|
77
|
-
}]);
|
|
78
|
-
function defineCustomElement() {
|
|
79
|
-
if (typeof customElements === "undefined") {
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const components = ["gataca-ssibuttonws", "gataca-qrdisplay", "gataca-qrws"];
|
|
83
|
-
components.forEach(tagName => { switch (tagName) {
|
|
84
|
-
case "gataca-ssibuttonws":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
customElements.define(tagName, GatacaSSIButtonWS);
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
case "gataca-qrdisplay":
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
defineCustomElement$2();
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "gataca-qrws":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$1();
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
} });
|
|
100
|
-
}
|
|
53
|
+
};
|
|
54
|
+
GatacaSSIButtonWS.style = gatacaSsibuttonwsCss;
|
|
101
55
|
|
|
102
|
-
export { GatacaSSIButtonWS as
|
|
56
|
+
export { GatacaSSIButtonWS as gataca_ssibuttonws };
|
|
@@ -1 +1,129 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-d0db23e4.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
Stencil Client Patch Browser v2.19.3 | MIT Licensed | https://stenciljs.com
|
|
6
|
+
*/
|
|
7
|
+
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
8
|
+
const patchBrowser = () => {
|
|
9
|
+
// NOTE!! This fn cannot use async/await!
|
|
10
|
+
if (BUILD.isDev && !BUILD.isTesting) {
|
|
11
|
+
consoleDevInfo('Running in development mode.');
|
|
12
|
+
}
|
|
13
|
+
if (BUILD.cssVarShim) {
|
|
14
|
+
// shim css vars
|
|
15
|
+
plt.$cssShim$ = win.__cssshim;
|
|
16
|
+
}
|
|
17
|
+
if (BUILD.cloneNodeFix) {
|
|
18
|
+
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
19
|
+
patchCloneNodeFix(H.prototype);
|
|
20
|
+
}
|
|
21
|
+
if (BUILD.profile && !performance.mark) {
|
|
22
|
+
// not all browsers support performance.mark/measure (Safari 10)
|
|
23
|
+
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
|
|
24
|
+
// simply stub the implementations out.
|
|
25
|
+
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
performance.mark = performance.measure = () => {
|
|
28
|
+
/*noop*/
|
|
29
|
+
};
|
|
30
|
+
performance.getEntriesByName = () => [];
|
|
31
|
+
}
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
|
|
34
|
+
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
35
|
+
s.getAttribute('data-stencil-namespace') === NAMESPACE)
|
|
36
|
+
: null;
|
|
37
|
+
const importMeta = import.meta.url;
|
|
38
|
+
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
|
|
39
|
+
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
|
|
40
|
+
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
41
|
+
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
42
|
+
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
43
|
+
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
44
|
+
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
45
|
+
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
46
|
+
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
47
|
+
return {
|
|
48
|
+
then() {
|
|
49
|
+
/* promise noop */
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if (!BUILD.safari10 && importMeta !== '') {
|
|
54
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
55
|
+
}
|
|
56
|
+
else if (BUILD.dynamicImportShim || BUILD.safari10) {
|
|
57
|
+
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
|
|
58
|
+
if (BUILD.dynamicImportShim) {
|
|
59
|
+
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
60
|
+
}
|
|
61
|
+
if (BUILD.dynamicImportShim && !win.customElements) {
|
|
62
|
+
// module support, but no custom elements support (Old Edge)
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
return import(/* webpackChunkName: "polyfills-dom" */ './dom-1b0cf05d.js').then(() => opts);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return promiseResolve(opts);
|
|
68
|
+
};
|
|
69
|
+
const patchDynamicImport = (base, orgScriptElm) => {
|
|
70
|
+
const importFunctionName = getDynamicImportFunction(NAMESPACE);
|
|
71
|
+
try {
|
|
72
|
+
// test if this browser supports dynamic imports
|
|
73
|
+
// There is a caching issue in V8, that breaks using import() in Function
|
|
74
|
+
// By generating a random string, we can workaround it
|
|
75
|
+
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
76
|
+
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
// this shim is specifically for browsers that do support "esm" imports
|
|
80
|
+
// however, they do NOT support "dynamic" imports
|
|
81
|
+
// basically this code is for old Edge, v18 and below
|
|
82
|
+
const moduleMap = new Map();
|
|
83
|
+
win[importFunctionName] = (src) => {
|
|
84
|
+
const url = new URL(src, base).href;
|
|
85
|
+
let mod = moduleMap.get(url);
|
|
86
|
+
if (!mod) {
|
|
87
|
+
const script = doc.createElement('script');
|
|
88
|
+
script.type = 'module';
|
|
89
|
+
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
90
|
+
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
91
|
+
type: 'application/javascript',
|
|
92
|
+
}));
|
|
93
|
+
mod = new Promise((resolve) => {
|
|
94
|
+
script.onload = () => {
|
|
95
|
+
resolve(win[importFunctionName].m);
|
|
96
|
+
script.remove();
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
moduleMap.set(url, mod);
|
|
100
|
+
doc.head.appendChild(script);
|
|
101
|
+
}
|
|
102
|
+
return mod;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
107
|
+
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
108
|
+
HTMLElementPrototype.cloneNode = function (deep) {
|
|
109
|
+
if (this.nodeName === 'TEMPLATE') {
|
|
110
|
+
return nativeCloneNodeFn.call(this, deep);
|
|
111
|
+
}
|
|
112
|
+
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
113
|
+
const srcChildNodes = this.childNodes;
|
|
114
|
+
if (deep) {
|
|
115
|
+
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
116
|
+
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
117
|
+
if (srcChildNodes[i].nodeType !== 2) {
|
|
118
|
+
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return clonedNode;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
patchBrowser().then(options => {
|
|
127
|
+
globalScripts();
|
|
128
|
+
return bootstrapLazy([["gataca-qrdisplay",[[0,"gataca-qrdisplay",{"qrData":[1,"qr-data"],"size":[2],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrColor":[1,"qr-color"],"rounded":[4]}]]],["gataca-ssibutton",[[1,"gataca-ssibutton",{"buttonText":[1,"button-text"],"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"sessionTimeout":[2,"session-timeout"],"pollingFrequency":[2,"polling-frequency"],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"open":[32],"getSessionData":[64]}]]],["gataca-ssibuttonws",[[1,"gataca-ssibuttonws",{"buttonText":[1,"button-text"],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"open":[32],"getSessionData":[64]}]]],["gataca-qr",[[1,"gataca-qr",{"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"sessionTimeout":[2,"session-timeout"],"pollingFrequency":[2,"polling-frequency"],"dynamicLink":[4,"dynamic-link"],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"display":[64],"stop":[64],"getSessionData":[64]}]]],["gataca-qrws",[[1,"gataca-qrws",{"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"display":[64],"stop":[64],"getSessionData":[64]},[[2,"sessionMsg","sessionMsgReceived"]]]]],["gataca-autoqr",[[1,"gataca-autoqr",{"configId":[1,"config-id"],"configRepository":[1,"config-repository"],"successCallback":[16],"errorCallback":[16],"checkStatus":[16],"createSession":[16],"wsOnOpen":[16],"wsOnMessage":[16],"config":[32],"loading":[32],"getSessionData":[64]}]]]], options);
|
|
129
|
+
});
|