@gataca/qr 0.0.21 → 0.0.23
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/cjs/gat-icon-alert-0ad19b26.js +14 -0
- package/dist/cjs/gataca-autoqr.cjs.entry.js +106 -0
- package/dist/cjs/gataca-qr_2.cjs.entry.js +295 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +252 -0
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +317 -0
- package/dist/cjs/gatacaqr.cjs.js +19 -0
- package/dist/cjs/index-93d47a75.js +1469 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
- package/dist/cjs/utils-ef28b844.js +27 -0
- package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
- package/dist/collection/assets/images/logo_gataca.svg +7 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +347 -0
- package/dist/collection/components/gataca-qr/components/qr/QR.js +5 -0
- package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +11 -0
- package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +4 -0
- package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +13 -0
- package/dist/collection/components/gataca-qr/components/success/Success.js +8 -0
- package/dist/collection/components/gataca-qr/gataca-qr.css +399 -0
- package/dist/collection/components/gataca-qr/gataca-qr.js +988 -0
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +178 -0
- package/dist/collection/components/gataca-qrws/components/qr/QR.js +5 -0
- package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +11 -0
- package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +4 -0
- package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +13 -0
- package/dist/collection/components/gataca-qrws/components/success/Success.js +8 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +400 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +997 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +981 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +434 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/utils.js +22 -0
- package/dist/components/gat-icon-alert.js +30 -0
- package/dist/components/gataca-autoqr.js +163 -0
- package/dist/components/gataca-qr.js +6 -0
- package/dist/components/gataca-qr2.js +310 -0
- package/dist/components/gataca-qrdisplay.js +6 -0
- package/dist/components/gataca-qrdisplay2.js +95 -0
- package/dist/components/gataca-qrws.js +6 -0
- package/dist/components/gataca-qrws2.js +311 -0
- package/dist/components/gataca-ssibutton.js +6 -0
- package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +80 -10
- package/dist/components/gataca-ssibuttonws.js +6 -0
- package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +56 -8
- package/dist/components/index.js +8 -0
- package/dist/{gatacaqr/gat-icon-alert-13a1894e.js → esm/gat-icon-alert-7b06ef3a.js} +3 -1
- package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +6 -5
- package/dist/{gatacaqr/gataca-qr.entry.js → esm/gataca-qr_2.entry.js} +53 -12
- package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +9 -9
- package/dist/esm/gataca-ssibutton_2.entry.js +312 -0
- package/dist/esm/gatacaqr.js +17 -0
- package/dist/esm/index-2be54f32.js +1443 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
- package/dist/gatacaqr/gatacaqr.esm.js +1 -129
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-0be4566d.js +1 -0
- package/dist/gatacaqr/p-0f339cfa.entry.js +1 -0
- package/dist/gatacaqr/p-1f784e14.entry.js +1 -0
- package/dist/gatacaqr/p-2cd7b062.js +1 -0
- package/dist/gatacaqr/p-5ae5f952.js +2 -0
- package/dist/gatacaqr/p-5e81ab9e.entry.js +1 -0
- package/dist/gatacaqr/p-92a2e6f0.entry.js +1 -0
- package/dist/gatacaqr/p-ea783014.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +6 -0
- package/dist/types/components/gataca-qr/components/qr/QR.d.ts +2 -0
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +7 -1
- package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -0
- package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -0
- package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +7 -1
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +6 -0
- package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +6 -0
- package/dist/types/components.d.ts +49 -0
- package/package.json +1 -1
- package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
- package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
- package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
- package/dist/gatacaqr/gataca-qrdisplay-55780157.js +0 -97
- package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
- package/dist/gatacaqr/index-4bc6f36b.js +0 -3262
- package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
- /package/dist/{gatacaqr → esm}/utils-63e7a33b.js +0 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d47a75.js');
|
|
6
|
+
const gatIconAlert = require('./gat-icon-alert-0ad19b26.js');
|
|
7
|
+
require('./qr-code-styling-412bbc7a.js');
|
|
8
|
+
const utils = require('./utils-ef28b844.js');
|
|
9
|
+
|
|
10
|
+
const Success = (props) => {
|
|
11
|
+
const { modalHeight, successLoginLabel } = props;
|
|
12
|
+
return (index.h("div", { class: "success", style: {
|
|
13
|
+
height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + "px" : "300px",
|
|
14
|
+
} },
|
|
15
|
+
index.h("img", { src: gatIconAlert.gatIconCheckSvg, height: 52, width: 52 }),
|
|
16
|
+
index.h("p", { class: "successMsg" }, successLoginLabel)));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const RetryButton = (props) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
|
|
22
|
+
return (index.h("div", { class: "reload", style: {
|
|
23
|
+
width: (modalWidth - 48).toString() + "px",
|
|
24
|
+
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
|
|
25
|
+
} },
|
|
26
|
+
index.h("div", { id: "notify", onClick: () => display() },
|
|
27
|
+
index.h("img", { src: gatIconAlert.gatIconRefreshSvg, height: 24, width: 24 }),
|
|
28
|
+
index.h("p", { class: "notify-text" },
|
|
29
|
+
clickInsideBoxLabel,
|
|
30
|
+
" "),
|
|
31
|
+
errorMessage ? (index.h("p", { class: "notify-text bold" }, refreshQrLabel)) : (index.h("p", { class: "notify-text bold" }, scanQrLabel)),
|
|
32
|
+
errorMessage && (index.h("div", { class: "alert", style: {
|
|
33
|
+
width: (modalWidth - 48).toString() + "px",
|
|
34
|
+
} },
|
|
35
|
+
index.h("img", { src: gatIconAlert.gatIconAlertSvg, height: 24, width: 24 }),
|
|
36
|
+
index.h("p", null, errorMessage)))),
|
|
37
|
+
index.h("div", { id: "qrwait" }, renderRetryQR(waitingStartSessionLabel))));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const QR = (props) => {
|
|
41
|
+
const { value, useLogo, logoSrc, size, qrType } = props;
|
|
42
|
+
return (index.h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, qrType: qrType, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const AnimatedLoader = () => {
|
|
46
|
+
return (index.h("div", { class: "containerLoader" },
|
|
47
|
+
index.h("div", { class: "loader" },
|
|
48
|
+
index.h("div", { class: "loader__item loader__item__1" }),
|
|
49
|
+
index.h("div", { class: "loader__item loader__item__2" }),
|
|
50
|
+
index.h("div", { class: "loader__item loader__item__3" }),
|
|
51
|
+
index.h("div", { class: "loader__item loader__item__4" }),
|
|
52
|
+
index.h("div", { class: "loader__item loader__item__5" }),
|
|
53
|
+
index.h("div", { class: "loader__item loader__item__6" }),
|
|
54
|
+
index.h("div", { class: "loader__item loader__item__7" }),
|
|
55
|
+
index.h("div", { class: "loader__item loader__item__8" }))));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const ReadQR = (props) => {
|
|
59
|
+
var _a;
|
|
60
|
+
const { modalWidth, readQrMessages, renderQR, url, sizeQR } = props;
|
|
61
|
+
return (index.h("div", { class: "blured", style: {
|
|
62
|
+
width: (modalWidth - 48).toString() + "px",
|
|
63
|
+
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
|
|
64
|
+
} },
|
|
65
|
+
index.h("div", { id: "notify" },
|
|
66
|
+
index.h(AnimatedLoader, null),
|
|
67
|
+
index.h("p", { class: "notify-text" }, readQrMessages === null || readQrMessages === void 0 ? void 0 :
|
|
68
|
+
readQrMessages.title,
|
|
69
|
+
" "),
|
|
70
|
+
index.h("p", { class: "notify-text bold" }, readQrMessages === null || readQrMessages === void 0 ? void 0 : readQrMessages.description)),
|
|
71
|
+
index.h("div", { id: "qrwait" }, renderQR(url, false, sizeQR))));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const gatacaQrwsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap\"); @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}.brandSection{padding-top:5px;display:flex;align-items:center}.brandSection .gatacaImgSmall{height:13px;width:13px;margin:0;margin-right:10px}.popUpContainer .large-modal{width:300px;min-height:350px}.popUpContainer .modal-window{position:relative;border-radius:6px;overflow:hidden;color:rgba(24, 27, 94, 0.8);box-shadow:0px 3px 10px rgba(48, 48, 48, 0.1);display:flex;flex-direction:column;justify-content:space-between;align-items:center;display:flex;z-index:1001;padding:1px;background-color:white;border-radius:12px;-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;visibility:hidden;opacity:0}.popUpContainer .modal-window__content{width:100%;height:100%;text-align:left}.popUpContainer .modal-window__content .hidenText{display:none}.popUpContainer .modal-window .modalText{font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px;margin-top:10px;letter-spacing:1px}.popUpContainer .modal-window .qrTitleContainer{padding:14px 24px;padding-bottom:0px}.popUpContainer .modal-window .qrTitle{font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .modal-window .qrDescription{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074}.popUpContainer .modal-window .bold{font-weight:700}.popUpContainer .modal-window .qrBrand{margin-top:4px;font-size:14px;font-weight:400;line-height:16.5px;display:flex;align-items:center}.popUpContainer .modal-window .qrBrand img{margin-left:5px;height:12px}.popUpContainer .modal-window .qr-section{width:252px;height:252px}.popUpContainer .noBoxShadow{box-shadow:none}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}.success{display:flex;height:300px;flex-direction:column;justify-content:center;align-items:center;padding:0px}.success>img{padding-bottom:12px}.success>.successMsg{line-height:23.5px;color:var(--neutral-1000, #1e1e20);text-align:center;font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px}.reload,.blured{height:252px;width:252px;border:1px dashed #a1a1a1;border-radius:12px;position:relative;top:24px;margin:0 24px 24px;display:flex;overflow:hidden;justify-content:center;align-items:center}#qrwait{display:flex;justify-content:center}#qrwait,#notify{width:100%;height:100%;top:0;left:0;border-radius:20px}#notify{z-index:10;position:absolute;justify-self:center;justify-items:center;justify-content:center;align-items:center;align-content:center;display:flex;flex-direction:column;box-sizing:border-box;padding:20px;background:rgba(255, 255, 255, 0.95)}#notify>img{padding-bottom:12px}.alert{display:flex;flex-direction:row;justify-content:start;width:252px;position:absolute;bottom:0px;border:1px solid #ee888c;background:#ffdedf;border-radius:11px;box-sizing:border-box;padding:12px;align-items:center;gap:12px}.alert>img{margin:0}.alert>p{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;margin-top:0;line-height:16px;color:#1e1e20}.notify-text{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074;text-align:center}.containerLoader{display:flex;justify-content:center;align-items:center;width:30px;height:30px;margin-bottom:12px}.loader{position:relative;margin-left:0 !important}.loader__item{position:absolute;width:9.68px;height:4px;background:transparent;border-radius:2px}.loader__item__1{transform:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-webkit-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-moz-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-o-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);animation:blink 0.8333333333s linear 0.1041666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.1041666667s infinite;-moz-animation:blink 0.8333333333s linear 0.1041666667s infinite;-o-animation:blink 0.8333333333s linear 0.1041666667s infinite}.loader__item__2{transform:translate(-4.84px, 8.5px) rotate(90deg);-webkit-animation:translate(-4.84px, 8.5px) rotate(90deg);-moz-animation:translate(-4.84px, 8.5px) rotate(90deg);-o-animation:translate(-4.84px, 8.5px) rotate(90deg);animation:blink 0.8333333333s linear 0.2083333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.2083333333s infinite;-moz-animation:blink 0.8333333333s linear 0.2083333333s infinite;-o-animation:blink 0.8333333333s linear 0.2083333333s infinite}.loader__item__3{transform:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-webkit-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-moz-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-o-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);animation:blink 0.8333333333s linear 0.3125s infinite;-webkit-animation:blink 0.8333333333s linear 0.3125s infinite;-moz-animation:blink 0.8333333333s linear 0.3125s infinite;-o-animation:blink 0.8333333333s linear 0.3125s infinite}.loader__item__4{transform:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-webkit-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-moz-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-o-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);animation:blink 0.8333333333s linear 0.4166666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.4166666667s infinite;-moz-animation:blink 0.8333333333s linear 0.4166666667s infinite;-o-animation:blink 0.8333333333s linear 0.4166666667s infinite}.loader__item__5{transform:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-webkit-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-moz-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-o-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);animation:blink 0.8333333333s linear 0.5208333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.5208333333s infinite;-moz-animation:blink 0.8333333333s linear 0.5208333333s infinite;-o-animation:blink 0.8333333333s linear 0.5208333333s infinite}.loader__item__6{transform:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-webkit-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-moz-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-o-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);animation:blink 0.8333333333s linear 0.625s infinite;-webkit-animation:blink 0.8333333333s linear 0.625s infinite;-moz-animation:blink 0.8333333333s linear 0.625s infinite;-o-animation:blink 0.8333333333s linear 0.625s infinite}.loader__item__7{transform:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-webkit-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-moz-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-o-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);animation:blink 0.8333333333s linear 0.7291666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.7291666667s infinite;-moz-animation:blink 0.8333333333s linear 0.7291666667s infinite;-o-animation:blink 0.8333333333s linear 0.7291666667s infinite}.loader__item__8{transform:translate(5.6631628524px, -1.99913122px) rotate(360deg);-webkit-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);-moz-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);-o-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);animation:blink 0.8333333333s linear 0.8333333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.8333333333s infinite;-moz-animation:blink 0.8333333333s linear 0.8333333333s infinite;-o-animation:blink 0.8333333333s linear 0.8333333333s infinite}.loader__item__8{max-width:8.5px}@keyframes blink{0%{background:#4745B7}100%{background:#CCCBF8}}@keyframes rotate{0%{transform:rotate(0deg)}100%{background:rotate(360deg)}}";
|
|
75
|
+
|
|
76
|
+
const DEEP_LINK_PREFIX = "https://api.gataca.io/qr/redirect.html";
|
|
77
|
+
const DEFAULT_SESSION_TIMEOUT = 300;
|
|
78
|
+
const QR_ROLE_CONNECT = "connect";
|
|
79
|
+
const GatacaQRWS = class {
|
|
80
|
+
constructor(hostRef) { index.registerInstance(this, hostRef); this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType = "svg"; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v = "3"; this.qrModalTitle = "Quick Access"; this.modalTitleColor = "#4745B7"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = gatIconAlert.logoGatacaSvg; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = "QR Code expired"; this.credentialsNotValidatedLabel = "User credentials not validated"; this.clickInsideBoxLabel = "Click inside the box to"; this.refreshQrLabel = "Refresh QR Code"; this.scanQrLabel = "Scan QR Code"; this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time"; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = "No successful login"; this.successLoginLabel = "Successful Connection!"; this.byBrandLabel = "by Gataca"; this.waitingStartSessionLabel = "waiting to start a session"; this.readQrTitle = "Processing..."; this.readQrDescription = "Please wait a moment"; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = utils.RESULT_STATUS.NOT_STARTED; }
|
|
81
|
+
disconnectedCallback() {
|
|
82
|
+
this.stop();
|
|
83
|
+
}
|
|
84
|
+
async componentDidLoad() {
|
|
85
|
+
if (this.autostart) {
|
|
86
|
+
await this.display();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Force manually the display of a QR
|
|
91
|
+
*/
|
|
92
|
+
async display() {
|
|
93
|
+
let socket = new WebSocket(this.socketEndpoint);
|
|
94
|
+
setTimeout(() => {
|
|
95
|
+
this.socket.close(1000, "");
|
|
96
|
+
}, 1000 * this.sessionTimeout);
|
|
97
|
+
this.socket = socket;
|
|
98
|
+
socket.onopen = () => {
|
|
99
|
+
if (this.wsOnOpen)
|
|
100
|
+
this.wsOnOpen(this.socket);
|
|
101
|
+
};
|
|
102
|
+
socket.onmessage = (msg) => {
|
|
103
|
+
if (this.wsOnMessage) {
|
|
104
|
+
this.wsOnMessage(this.socket, msg);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
let wsresp = JSON.parse(msg.data);
|
|
108
|
+
if (!!wsresp.sessionId) {
|
|
109
|
+
this.handleWSResponse(wsresp);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
socket.onerror = () => {
|
|
114
|
+
let error = new Error("Error connecting with server");
|
|
115
|
+
this.result = utils.RESULT_STATUS.FAILED;
|
|
116
|
+
this.gatacaLoginFailed.emit(error);
|
|
117
|
+
this.errorCallback(error);
|
|
118
|
+
socket.close(1000, "");
|
|
119
|
+
};
|
|
120
|
+
socket.onclose = () => {
|
|
121
|
+
if (this.result === utils.RESULT_STATUS.ONGOING || utils.RESULT_STATUS.READ) {
|
|
122
|
+
this.result = utils.RESULT_STATUS.EXPIRED;
|
|
123
|
+
}
|
|
124
|
+
if (this.result === utils.RESULT_STATUS.EXPIRED) {
|
|
125
|
+
if (this.autorefresh) {
|
|
126
|
+
this.display();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
let error = new Error("User did not scan the QR in the alloted time");
|
|
130
|
+
this.gatacaLoginFailed.emit(error);
|
|
131
|
+
this.errorCallback(error);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
if (utils.checkMobile() && this.dynamicLink) {
|
|
136
|
+
window.location.href = this.getLink();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
sessionMsgReceived(event) {
|
|
140
|
+
let wsresp = event.detail;
|
|
141
|
+
this.handleWSResponse(wsresp);
|
|
142
|
+
}
|
|
143
|
+
handleWSResponse(wsresp) {
|
|
144
|
+
this.result = wsresp.result;
|
|
145
|
+
switch (wsresp.result) {
|
|
146
|
+
case utils.RESULT_STATUS.ONGOING:
|
|
147
|
+
case utils.RESULT_STATUS.READ:
|
|
148
|
+
this.sessionId = wsresp.sessionId;
|
|
149
|
+
this.authenticationRequest = wsresp.authenticationRequest;
|
|
150
|
+
break;
|
|
151
|
+
case utils.RESULT_STATUS.SUCCESS:
|
|
152
|
+
this.sessionData = wsresp.authenticatedUserData;
|
|
153
|
+
this.gatacaLoginCompleted.emit(wsresp.authenticatedUserData);
|
|
154
|
+
this.successCallback(wsresp.authenticatedUserData);
|
|
155
|
+
this.socket.close(1000, "");
|
|
156
|
+
break;
|
|
157
|
+
case utils.RESULT_STATUS.FAILED:
|
|
158
|
+
this.socket.close();
|
|
159
|
+
let error = new Error("Provided user credentials couldn't be validated");
|
|
160
|
+
this.gatacaLoginFailed.emit(error);
|
|
161
|
+
this.errorCallback(error);
|
|
162
|
+
break;
|
|
163
|
+
case utils.RESULT_STATUS.EXPIRED:
|
|
164
|
+
this.socket.close();
|
|
165
|
+
if (this.autorefresh) {
|
|
166
|
+
this.display();
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
let error = new Error("User did not scan the QR in the alloted time");
|
|
170
|
+
this.gatacaLoginFailed.emit(error);
|
|
171
|
+
this.errorCallback(error);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Stop manually an ongoing session
|
|
177
|
+
*/
|
|
178
|
+
async stop() {
|
|
179
|
+
this.sessionData = undefined;
|
|
180
|
+
this.sessionId = undefined;
|
|
181
|
+
this.socket.close(1000, "Client stopped the connection");
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Retrieve manually the session data on a successful login
|
|
185
|
+
*/
|
|
186
|
+
async getSessionData() {
|
|
187
|
+
return this.sessionData
|
|
188
|
+
? Promise.resolve(this.sessionData)
|
|
189
|
+
: Promise.reject(new Error("No successful login"));
|
|
190
|
+
}
|
|
191
|
+
getLink() {
|
|
192
|
+
if (this.v === "2" && this.qrRole == QR_ROLE_CONNECT) {
|
|
193
|
+
return this.authenticationRequest;
|
|
194
|
+
}
|
|
195
|
+
const authRequestEncoded = "?dl=" + utils.base64UrlEncode(this.authenticationRequest);
|
|
196
|
+
return DEEP_LINK_PREFIX + authRequestEncoded;
|
|
197
|
+
}
|
|
198
|
+
renderQRSection() {
|
|
199
|
+
switch (this.result) {
|
|
200
|
+
case utils.RESULT_STATUS.NOT_STARTED:
|
|
201
|
+
return this.renderRetryButton();
|
|
202
|
+
case utils.RESULT_STATUS.ONGOING:
|
|
203
|
+
return this.renderQR(this.getLink(), true);
|
|
204
|
+
case utils.RESULT_STATUS.EXPIRED:
|
|
205
|
+
return this.renderRetryButton(this.qrCodeExpiredLabel);
|
|
206
|
+
case utils.RESULT_STATUS.FAILED:
|
|
207
|
+
return this.renderRetryButton(this.credentialsNotValidatedLabel);
|
|
208
|
+
case utils.RESULT_STATUS.SUCCESS:
|
|
209
|
+
return this.renderSuccess();
|
|
210
|
+
case utils.RESULT_STATUS.READ:
|
|
211
|
+
return this.renderReadQR({
|
|
212
|
+
title: this === null || this === void 0 ? void 0 : this.readQrTitle,
|
|
213
|
+
description: this === null || this === void 0 ? void 0 : this.readQrDescription,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
renderSuccess() {
|
|
218
|
+
return (index.h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
|
|
219
|
+
}
|
|
220
|
+
renderRetryButton(errorMessage) {
|
|
221
|
+
return (index.h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
|
|
222
|
+
}
|
|
223
|
+
renderReadQR(readQrMessages) {
|
|
224
|
+
return (index.h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) }));
|
|
225
|
+
}
|
|
226
|
+
renderQR(value, useLogo, sizeQR) {
|
|
227
|
+
return (index.h(QR, { value: value, qrType: this.qrType, useLogo: useLogo, size: sizeQR || (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
228
|
+
}
|
|
229
|
+
renderRetryQR(value, useLogo) {
|
|
230
|
+
return (index.h(QR, { value: value, qrType: this.qrType, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
231
|
+
}
|
|
232
|
+
render() {
|
|
233
|
+
var _a, _b;
|
|
234
|
+
return (index.h("div", { class: "popUpContainer" }, index.h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
|
|
235
|
+
width: (this.modalWidth - 2).toString() + "px",
|
|
236
|
+
height: this.modalHeight
|
|
237
|
+
? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
238
|
+
: "",
|
|
239
|
+
}, onClick: (event) => {
|
|
240
|
+
event.stopPropagation();
|
|
241
|
+
} }, index.h("div", { class: "modal-window__content" }, index.h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, index.h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (index.h("p", { class: "qrBrand modalText" }, this.byBrandLabel, " ", index.h("span", null, index.h("img", { src: gatIconAlert.logoGatacaSvg })))), this.result !== utils.RESULT_STATUS.SUCCESS &&
|
|
242
|
+
!this.hideQrModalDescription && (index.h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), index.h("div", { class: "qrSection", style: {
|
|
243
|
+
width: this.modalWidth.toString() + "px",
|
|
244
|
+
height: this.modalWidth
|
|
245
|
+
? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
|
|
246
|
+
: "",
|
|
247
|
+
} }, this.renderQRSection())))));
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
GatacaQRWS.style = gatacaQrwsCss;
|
|
251
|
+
|
|
252
|
+
exports.gataca_qrws = GatacaQRWS;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-93d47a75.js');
|
|
6
|
+
require('./qr-code-styling-412bbc7a.js');
|
|
7
|
+
const utils = require('./utils-ef28b844.js');
|
|
8
|
+
|
|
9
|
+
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}";
|
|
10
|
+
|
|
11
|
+
const PHONE_ICON$1 = "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=";
|
|
12
|
+
//Default values
|
|
13
|
+
const DEFAULT_SESSION_TIMEOUT = 300; //5mins as in connect
|
|
14
|
+
const DEFAULT_POLLING_FREQ = 3;
|
|
15
|
+
const GatacaSSIButton = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
index.registerInstance(this, hostRef);
|
|
18
|
+
this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7);
|
|
19
|
+
this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7);
|
|
20
|
+
this.buttonText = "Easy login";
|
|
21
|
+
this.qrType = "svg";
|
|
22
|
+
this.autostart = true;
|
|
23
|
+
this.checkStatus = undefined;
|
|
24
|
+
this.createSession = undefined;
|
|
25
|
+
this.successCallback = undefined;
|
|
26
|
+
this.errorCallback = undefined;
|
|
27
|
+
this.handleCheckAppLoading = undefined;
|
|
28
|
+
this.checkAppTimeout = 6;
|
|
29
|
+
this.qrRole = undefined;
|
|
30
|
+
this.callbackServer = undefined;
|
|
31
|
+
this.sessionTimeout = undefined;
|
|
32
|
+
this.pollingFrequency = undefined;
|
|
33
|
+
this.autorefresh = false;
|
|
34
|
+
this.v = "3";
|
|
35
|
+
this.qrModalTitle = "Quick Access";
|
|
36
|
+
this.modalTitleColor = "#4745B7";
|
|
37
|
+
this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet";
|
|
38
|
+
this.hideBrandTitle = false;
|
|
39
|
+
this.dynamicLink = true;
|
|
40
|
+
this.logoSize = 0;
|
|
41
|
+
this.logoSrc = undefined;
|
|
42
|
+
this.qrCodeExpiredLabel = "QR Code expired";
|
|
43
|
+
this.credentialsNotValidatedLabel = "User credentials not validated";
|
|
44
|
+
this.clickInsideBoxLabel = "Click inside the box to";
|
|
45
|
+
this.refreshQrLabel = "Refresh QR Code";
|
|
46
|
+
this.scanQrLabel = "Scan QR Code";
|
|
47
|
+
this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time";
|
|
48
|
+
this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated";
|
|
49
|
+
this.failedLoginErrorLabel = "No successful login";
|
|
50
|
+
this.successLoginLabel = "Successful Connection!";
|
|
51
|
+
this.byBrandLabel = "by Gataca";
|
|
52
|
+
this.waitingStartSessionLabel = "waiting to start a session";
|
|
53
|
+
this.hideQrModalDescription = false;
|
|
54
|
+
this.open = false;
|
|
55
|
+
this.sessionId = undefined;
|
|
56
|
+
this.authenticationRequest = undefined;
|
|
57
|
+
this.sessionData = undefined;
|
|
58
|
+
this.result = utils.RESULT_STATUS.NOT_STARTED;
|
|
59
|
+
this.qr = (index.h("gataca-qr", { ref: (el) => (this.qrElement = el), checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, qrType: this.qrType, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: this.autostart, autorefresh: this.autorefresh, v: this.v, qrModalTitle: this.qrModalTitle, qrModalDescription: this.qrModalDescription, hideBrandTitle: this.hideBrandTitle, dynamicLink: this.dynamicLink, logoSize: this.logoSize, logoSrc: this.logoSrc, modalTitleColor: this.modalTitleColor, qrCodeExpiredLabel: this.qrCodeExpiredLabel, credentialsNotValidatedLabel: this.credentialsNotValidatedLabel, clickInsideBoxLabel: this.clickInsideBoxLabel, refreshQrLabel: this.refreshQrLabel, scanQrLabel: this.scanQrLabel, userNotScanInTimeErrorLabel: this.userNotScanInTimeErrorLabel, credsNotValidatedErrorLabel: this.credsNotValidatedErrorLabel, failedLoginErrorLabel: this.failedLoginErrorLabel, successLoginLabel: this.successLoginLabel, byBrandLabel: this.byBrandLabel, waitingStartSessionLabel: this.waitingStartSessionLabel, hideQrModalDescription: this.hideQrModalDescription }));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieve manually the session data on a successful login
|
|
63
|
+
*/
|
|
64
|
+
async getSessionData() {
|
|
65
|
+
return this.qr.getSessionData();
|
|
66
|
+
}
|
|
67
|
+
async getSessionId() {
|
|
68
|
+
if (this.sessionId) {
|
|
69
|
+
return this.sessionId;
|
|
70
|
+
}
|
|
71
|
+
let { sessionId, authenticationRequest } = await this.createSession();
|
|
72
|
+
this.sessionId = sessionId;
|
|
73
|
+
this.authenticationRequest = authenticationRequest;
|
|
74
|
+
return this.sessionId;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Force manually the start polling
|
|
78
|
+
*/
|
|
79
|
+
async startMobilePolling() {
|
|
80
|
+
await this.getSessionId();
|
|
81
|
+
this.result = utils.RESULT_STATUS.ONGOING;
|
|
82
|
+
this.poll()
|
|
83
|
+
.then((data) => {
|
|
84
|
+
this.result = utils.RESULT_STATUS.SUCCESS;
|
|
85
|
+
this.sessionData = data;
|
|
86
|
+
this.gatacaLoginCompleted.emit(data);
|
|
87
|
+
this.successCallback(data);
|
|
88
|
+
})
|
|
89
|
+
.catch((err) => {
|
|
90
|
+
this.clean();
|
|
91
|
+
let expired = err === utils.RESULT_STATUS.EXPIRED;
|
|
92
|
+
if (expired && this.autorefresh) {
|
|
93
|
+
this.startMobilePolling();
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
if (err !== utils.RESULT_STATUS.NOT_STARTED) {
|
|
97
|
+
let error = expired
|
|
98
|
+
? new Error(this.userNotScanInTimeErrorLabel)
|
|
99
|
+
: new Error(this.credsNotValidatedErrorLabel);
|
|
100
|
+
this.result = err;
|
|
101
|
+
this.gatacaLoginFailed.emit(error);
|
|
102
|
+
this.errorCallback(error);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Stop manually an ongoing session
|
|
109
|
+
*/
|
|
110
|
+
async stop() {
|
|
111
|
+
this.clean();
|
|
112
|
+
if (this.result === utils.RESULT_STATUS.ONGOING || utils.RESULT_STATUS.READ) {
|
|
113
|
+
this.result = utils.RESULT_STATUS.NOT_STARTED;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
clean() {
|
|
117
|
+
this.sessionData = undefined;
|
|
118
|
+
this.sessionId = undefined;
|
|
119
|
+
}
|
|
120
|
+
renderModal() {
|
|
121
|
+
return this.qr;
|
|
122
|
+
}
|
|
123
|
+
async poll() {
|
|
124
|
+
let endTime = new Date().getTime() +
|
|
125
|
+
(this.sessionTimeout || DEFAULT_SESSION_TIMEOUT) * 1000;
|
|
126
|
+
let interval = (this.pollingFrequency || DEFAULT_POLLING_FREQ) * 1000;
|
|
127
|
+
let checkFunc = async (component) => {
|
|
128
|
+
if (component.result === utils.RESULT_STATUS.NOT_STARTED) {
|
|
129
|
+
return { result: utils.RESULT_STATUS.NOT_STARTED };
|
|
130
|
+
}
|
|
131
|
+
let id = await component.getSessionId();
|
|
132
|
+
return component.checkStatus(id);
|
|
133
|
+
};
|
|
134
|
+
let component = this;
|
|
135
|
+
let checkCondition = async function (resolve, reject) {
|
|
136
|
+
// If the condition is met, we're done!
|
|
137
|
+
let { result, data } = await checkFunc(component);
|
|
138
|
+
switch (result) {
|
|
139
|
+
case utils.RESULT_STATUS.SUCCESS:
|
|
140
|
+
resolve(data);
|
|
141
|
+
break;
|
|
142
|
+
case utils.RESULT_STATUS.READ:
|
|
143
|
+
component.result = utils.RESULT_STATUS.READ;
|
|
144
|
+
case utils.RESULT_STATUS.ONGOING:
|
|
145
|
+
if (component.sessionTimeout > 0 && new Date().getTime() < endTime) {
|
|
146
|
+
setTimeout(checkCondition, interval, resolve, reject);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
reject(utils.RESULT_STATUS.EXPIRED);
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
default:
|
|
153
|
+
reject(result);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return new Promise(checkCondition);
|
|
158
|
+
}
|
|
159
|
+
isAppInstalled(appScheme, callback) {
|
|
160
|
+
let timeout;
|
|
161
|
+
let detected = false;
|
|
162
|
+
if (appScheme === null || appScheme === void 0 ? void 0 : appScheme.length) {
|
|
163
|
+
window.location.href = appScheme;
|
|
164
|
+
}
|
|
165
|
+
const waitTimeToCheckApp = this.checkAppTimeout * 1000;
|
|
166
|
+
timeout = setTimeout(() => {
|
|
167
|
+
if (!detected) {
|
|
168
|
+
callback(false);
|
|
169
|
+
}
|
|
170
|
+
cleanup();
|
|
171
|
+
}, waitTimeToCheckApp);
|
|
172
|
+
const handleVisibilityChange = () => {
|
|
173
|
+
if (document.hidden) {
|
|
174
|
+
detected = true;
|
|
175
|
+
callback(true);
|
|
176
|
+
if (!this.autostart) {
|
|
177
|
+
this.startMobilePolling();
|
|
178
|
+
}
|
|
179
|
+
cleanup();
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
183
|
+
function cleanup() {
|
|
184
|
+
clearTimeout(timeout);
|
|
185
|
+
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
renderDesktopButton() {
|
|
189
|
+
return (index.h("div", { class: "gatacaButtonWrapper" }, index.h("button", { class: "gatacaButton", onClick: () => {
|
|
190
|
+
this.open = !this.open;
|
|
191
|
+
setTimeout(() => {
|
|
192
|
+
var _a, _b;
|
|
193
|
+
if (this.open) {
|
|
194
|
+
(_a = this.qrElement) === null || _a === void 0 ? void 0 : _a.display();
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
(_b = this.qrElement) === null || _b === void 0 ? void 0 : _b.stop();
|
|
198
|
+
}
|
|
199
|
+
}, 0);
|
|
200
|
+
} }, index.h("img", { src: PHONE_ICON$1, class: "buttonImg", alt: this.buttonText }), index.h("span", null, this.buttonText))));
|
|
201
|
+
}
|
|
202
|
+
async getAuthRequest() {
|
|
203
|
+
let { authenticationRequest } = await this.createSession();
|
|
204
|
+
return authenticationRequest;
|
|
205
|
+
}
|
|
206
|
+
renderMobileButton(isAndroid, isIos) {
|
|
207
|
+
if (this.autostart) {
|
|
208
|
+
this.startMobilePolling();
|
|
209
|
+
}
|
|
210
|
+
let loading = false;
|
|
211
|
+
const handleLoading = (isLoading) => {
|
|
212
|
+
loading = isLoading;
|
|
213
|
+
if (this.handleCheckAppLoading) {
|
|
214
|
+
this.handleCheckAppLoading(isLoading);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const executeRedirection = async () => {
|
|
218
|
+
handleLoading(true);
|
|
219
|
+
const androidStoreLink = "https://play.google.com/store/apps/details?id=com.gataca.identity";
|
|
220
|
+
const iosStoreLink = "https://apps.apple.com/us/app/gataca/id1498607616";
|
|
221
|
+
try {
|
|
222
|
+
const appScheme = await this.getAuthRequest();
|
|
223
|
+
this.isAppInstalled(appScheme, (installed) => {
|
|
224
|
+
if (!installed) {
|
|
225
|
+
this.stop();
|
|
226
|
+
if (isAndroid) {
|
|
227
|
+
window.location.href = androidStoreLink;
|
|
228
|
+
}
|
|
229
|
+
else if (isIos) {
|
|
230
|
+
window.location.href = iosStoreLink;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
handleLoading(false);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
catch (error) {
|
|
237
|
+
this.stop();
|
|
238
|
+
handleLoading(false);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
return (index.h("div", { class: "gatacaButtonWrapper" }, index.h("button", { class: "gatacaButton", onClick: () => {
|
|
242
|
+
executeRedirection();
|
|
243
|
+
}, disabled: loading }, index.h("img", { src: PHONE_ICON$1, class: "buttonImg", alt: this.buttonText }), index.h("span", null, this.buttonText))));
|
|
244
|
+
}
|
|
245
|
+
render() {
|
|
246
|
+
const userAgent =
|
|
247
|
+
// @ts-ignore
|
|
248
|
+
(navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) || (navigator === null || navigator === void 0 ? void 0 : navigator.vendor) || (window === null || window === void 0 ? void 0 : window.opera);
|
|
249
|
+
const isAndroid = /android/i.test(userAgent);
|
|
250
|
+
const isIos =
|
|
251
|
+
// @ts-ignore
|
|
252
|
+
(/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) ||
|
|
253
|
+
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
|
|
254
|
+
const isMobile = isAndroid || isIos;
|
|
255
|
+
return (index.h("div", { class: "buttonContainer" }, isMobile && this.v === "3"
|
|
256
|
+
? this.renderMobileButton(isAndroid, isIos)
|
|
257
|
+
: this.renderDesktopButton(), this.open && (!isMobile || this.v === "3") && this.renderModal()));
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
GatacaSSIButton.style = gatacaSsibuttonCss;
|
|
261
|
+
|
|
262
|
+
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}";
|
|
263
|
+
|
|
264
|
+
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=";
|
|
265
|
+
const GatacaSSIButtonWS = class {
|
|
266
|
+
constructor(hostRef) {
|
|
267
|
+
index.registerInstance(this, hostRef);
|
|
268
|
+
this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7);
|
|
269
|
+
this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7);
|
|
270
|
+
this.buttonText = "Easy login";
|
|
271
|
+
this.successCallback = undefined;
|
|
272
|
+
this.errorCallback = undefined;
|
|
273
|
+
this.qrType = "svg";
|
|
274
|
+
this.qrRole = undefined;
|
|
275
|
+
this.callbackServer = undefined;
|
|
276
|
+
this.socketEndpoint = undefined;
|
|
277
|
+
this.sessionTimeout = undefined;
|
|
278
|
+
this.wsOnOpen = undefined;
|
|
279
|
+
this.wsOnMessage = undefined;
|
|
280
|
+
this.autostart = true;
|
|
281
|
+
this.autorefresh = false;
|
|
282
|
+
this.v = "3";
|
|
283
|
+
this.qrModalTitle = "Quick Access";
|
|
284
|
+
this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet";
|
|
285
|
+
this.hideBrandTitle = false;
|
|
286
|
+
this.dynamicLink = true;
|
|
287
|
+
this.open = false;
|
|
288
|
+
this.qr = (index.h("gataca-qrws", { wsOnMessage: this.wsOnMessage, wsOnOpen: this.wsOnOpen, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, qrType: this.qrType, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, socketEndpoint: this.socketEndpoint, autostart: true, autorefresh: this.autorefresh, v: this.v, qrModalTitle: this.qrModalTitle, qrModalDescription: this.qrModalDescription, hideBrandTitle: this.hideBrandTitle, dynamicLink: this.dynamicLink }));
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Retrieve manually the session data on a successful login
|
|
292
|
+
*/
|
|
293
|
+
async getSessionData() {
|
|
294
|
+
return this.qr.getSessionData();
|
|
295
|
+
}
|
|
296
|
+
renderModal() {
|
|
297
|
+
return this.qr;
|
|
298
|
+
}
|
|
299
|
+
renderButton() {
|
|
300
|
+
return (index.h("div", { class: "gatacaButtonWrapper" }, index.h("button", { class: "gatacaButton", onClick: () => {
|
|
301
|
+
this.open = !this.open;
|
|
302
|
+
if (this.open) {
|
|
303
|
+
this.qr.display();
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
this.qr.stop();
|
|
307
|
+
}
|
|
308
|
+
} }, index.h("img", { src: PHONE_ICON, class: "buttonImg", alt: this.buttonText }), index.h("span", null, this.buttonText))));
|
|
309
|
+
}
|
|
310
|
+
render() {
|
|
311
|
+
return (index.h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
GatacaSSIButtonWS.style = gatacaSsibuttonwsCss;
|
|
315
|
+
|
|
316
|
+
exports.gataca_ssibutton = GatacaSSIButton;
|
|
317
|
+
exports.gataca_ssibuttonws = GatacaSSIButtonWS;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-93d47a75.js');
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v2.19.3 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
const patchBrowser = () => {
|
|
9
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gatacaqr.cjs.js', document.baseURI).href));
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== '') {
|
|
12
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return index.promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(options => {
|
|
18
|
+
return index.bootstrapLazy([["gataca-qr_2.cjs",[[1,"gataca-qr",{"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"qrType":[1,"qr-type"],"callbackServer":[1,"callback-server"],"autostart":[4],"autorefresh":[4],"v":[1],"qrModalTitle":[1,"qr-modal-title"],"modalTitleColor":[1,"modal-title-color"],"qrModalDescription":[1,"qr-modal-description"],"hideModalTexts":[4,"hide-modal-texts"],"hideModalBoxShadow":[4,"hide-modal-box-shadow"],"hideBrandTitle":[4,"hide-brand-title"],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrSize":[2,"qr-size"],"modalWidth":[2,"modal-width"],"modalHeight":[2,"modal-height"],"qrCodeExpiredLabel":[1,"qr-code-expired-label"],"credentialsNotValidatedLabel":[1,"credentials-not-validated-label"],"clickInsideBoxLabel":[1,"click-inside-box-label"],"refreshQrLabel":[1,"refresh-qr-label"],"scanQrLabel":[1,"scan-qr-label"],"userNotScanInTimeErrorLabel":[1,"user-not-scan-in-time-error-label"],"credsNotValidatedErrorLabel":[1,"creds-not-validated-error-label"],"failedLoginErrorLabel":[1,"failed-login-error-label"],"successLoginLabel":[1,"success-login-label"],"byBrandLabel":[1,"by-brand-label"],"waitingStartSessionLabel":[1,"waiting-start-session-label"],"readQrTitle":[1,"read-qr-title"],"readQrDescription":[1,"read-qr-description"],"hideQrModalDescription":[4,"hide-qr-modal-description"],"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]}],[0,"gataca-qrdisplay",{"qrData":[1,"qr-data"],"qrType":[1,"qr-type"],"size":[2],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrColor":[1,"qr-color"],"rounded":[4]}]]],["gataca-qrws.cjs",[[1,"gataca-qrws",{"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"qrType":[1,"qr-type"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v":[1],"qrModalTitle":[1,"qr-modal-title"],"modalTitleColor":[1,"modal-title-color"],"qrModalDescription":[1,"qr-modal-description"],"hideModalTexts":[4,"hide-modal-texts"],"hideModalBoxShadow":[4,"hide-modal-box-shadow"],"hideBrandTitle":[4,"hide-brand-title"],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrSize":[2,"qr-size"],"modalWidth":[2,"modal-width"],"modalHeight":[2,"modal-height"],"qrCodeExpiredLabel":[1,"qr-code-expired-label"],"credentialsNotValidatedLabel":[1,"credentials-not-validated-label"],"clickInsideBoxLabel":[1,"click-inside-box-label"],"refreshQrLabel":[1,"refresh-qr-label"],"scanQrLabel":[1,"scan-qr-label"],"userNotScanInTimeErrorLabel":[1,"user-not-scan-in-time-error-label"],"credsNotValidatedErrorLabel":[1,"creds-not-validated-error-label"],"failedLoginErrorLabel":[1,"failed-login-error-label"],"successLoginLabel":[1,"success-login-label"],"byBrandLabel":[1,"by-brand-label"],"waitingStartSessionLabel":[1,"waiting-start-session-label"],"readQrTitle":[1,"read-qr-title"],"readQrDescription":[1,"read-qr-description"],"hideQrModalDescription":[4,"hide-qr-modal-description"],"dynamicLink":[4,"dynamic-link"],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"display":[64],"stop":[64],"getSessionData":[64]},[[2,"sessionMsg","sessionMsgReceived"]]]]],["gataca-ssibutton_2.cjs",[[1,"gataca-ssibutton",{"buttonText":[1,"button-text"],"qrType":[1,"qr-type"],"autostart":[4],"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"handleCheckAppLoading":[16],"checkAppTimeout":[2,"check-app-timeout"],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"sessionTimeout":[2,"session-timeout"],"pollingFrequency":[2,"polling-frequency"],"autorefresh":[4],"v":[1],"qrModalTitle":[1,"qr-modal-title"],"modalTitleColor":[1,"modal-title-color"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrCodeExpiredLabel":[1,"qr-code-expired-label"],"credentialsNotValidatedLabel":[1,"credentials-not-validated-label"],"clickInsideBoxLabel":[1,"click-inside-box-label"],"refreshQrLabel":[1,"refresh-qr-label"],"scanQrLabel":[1,"scan-qr-label"],"userNotScanInTimeErrorLabel":[1,"user-not-scan-in-time-error-label"],"credsNotValidatedErrorLabel":[1,"creds-not-validated-error-label"],"failedLoginErrorLabel":[1,"failed-login-error-label"],"successLoginLabel":[1,"success-login-label"],"byBrandLabel":[1,"by-brand-label"],"waitingStartSessionLabel":[1,"waiting-start-session-label"],"hideQrModalDescription":[4,"hide-qr-modal-description"],"open":[32],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"getSessionData":[64],"startMobilePolling":[64],"stop":[64]}],[1,"gataca-ssibuttonws",{"buttonText":[1,"button-text"],"successCallback":[16],"errorCallback":[16],"qrType":[1,"qr-type"],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v":[1],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"open":[32],"getSessionData":[64]}]]],["gataca-autoqr.cjs",[[1,"gataca-autoqr",{"configId":[1,"config-id"],"qrType":[1,"qr-type"],"configRepository":[1,"config-repository"],"successCallback":[16],"errorCallback":[16],"checkStatus":[16],"createSession":[16],"wsOnOpen":[16],"wsOnMessage":[16],"config":[32],"loading":[32],"getSessionData":[64]}]]]], options);
|
|
19
|
+
});
|