@gataca/qr 0.0.28 → 0.0.29
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/{esm/qr-code-styling-0eeb38d5.js → cjs/gat-icon-check-6b6780eb.js} +12 -1
- package/dist/cjs/gataca-autoqr.cjs.entry.js +10 -10
- package/dist/cjs/gataca-qr_3.cjs.entry.js +639 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +42 -48
- package/dist/cjs/gataca-ssibuttonws.cjs.entry.js +61 -0
- package/dist/cjs/gatacaqr.cjs.js +2 -2
- package/dist/cjs/{index-93d47a75.js → index-1332a8ce.js} +32 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-ef28b844.js → utils-b4e62bc0.js} +1 -1
- package/dist/collection/assets/icons/RefreshIcon.js +6 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +13 -13
- package/dist/collection/components/gataca-qr/components/qr/QR.js +3 -3
- package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +12 -7
- package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +5 -3
- package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +12 -9
- package/dist/collection/components/gataca-qr/components/success/Success.js +7 -6
- package/dist/collection/components/gataca-qr/gataca-qr.css +15 -5
- package/dist/collection/components/gataca-qr/gataca-qr.js +68 -57
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +33 -11
- package/dist/collection/components/gataca-qrws/components/qr/QR.js +2 -2
- package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +4 -4
- package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +1 -1
- package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +8 -8
- package/dist/collection/components/gataca-qrws/components/success/Success.js +4 -4
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +49 -56
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +224 -54
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +12 -12
- package/dist/collection/index.js +2 -2
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/{gat-icon-alert.js → gat-icon-check.js} +4 -6
- package/dist/components/gataca-autoqr.js +9 -9
- package/dist/components/gataca-qr2.js +85 -73
- package/dist/components/gataca-qrdisplay2.js +11 -6
- package/dist/components/gataca-qrws2.js +37 -42
- package/dist/components/gataca-ssibutton2.js +114 -34
- package/dist/components/gataca-ssibuttonws2.js +6 -6
- package/dist/components/index.js +1 -1
- package/dist/{cjs/qr-code-styling-412bbc7a.js → esm/gat-icon-check-7320c81b.js} +6 -2
- package/dist/esm/gataca-autoqr.entry.js +10 -10
- package/dist/esm/gataca-qr_3.entry.js +633 -0
- package/dist/esm/gataca-qrws.entry.js +39 -45
- package/dist/esm/gataca-ssibuttonws.entry.js +57 -0
- package/dist/esm/gatacaqr.js +2 -2
- package/dist/esm/{index-2be54f32.js → index-055790a7.js} +32 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-63e7a33b.js → utils-21ffcc1e.js} +1 -1
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-1d1129b7.entry.js +1 -0
- package/dist/gatacaqr/p-29119208.js +1 -0
- package/dist/gatacaqr/p-49cf321c.entry.js +1 -0
- package/dist/gatacaqr/p-9f83bae1.entry.js +1 -0
- package/dist/gatacaqr/{p-5e81ab9e.entry.js → p-c65f810b.entry.js} +1 -1
- package/dist/gatacaqr/p-fccf9d4d.js +2 -0
- package/dist/types/assets/icons/RefreshIcon.d.ts +8 -0
- package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +7 -7
- package/dist/types/components/gataca-qr/components/qr/QR.d.ts +4 -2
- package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +3 -1
- package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +6 -2
- package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +3 -1
- package/dist/types/components/gataca-qr/components/success/Success.d.ts +3 -1
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +16 -4
- package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -1
- package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -2
- package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +1 -1
- package/dist/types/components/gataca-qrws/components/success/Success.d.ts +1 -1
- package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +4 -4
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +38 -5
- package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +3 -3
- package/dist/types/components.d.ts +78 -36
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +30 -7
- package/dist/cjs/gat-icon-alert-0ad19b26.js +0 -14
- package/dist/cjs/gataca-qr_2.cjs.entry.js +0 -295
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -317
- package/dist/esm/gat-icon-alert-7b06ef3a.js +0 -9
- package/dist/esm/gataca-qr_2.entry.js +0 -290
- package/dist/esm/gataca-ssibutton_2.entry.js +0 -312
- package/dist/gatacaqr/p-0be4566d.js +0 -1
- package/dist/gatacaqr/p-3500ae66.entry.js +0 -1
- package/dist/gatacaqr/p-5ae5f952.js +0 -2
- package/dist/gatacaqr/p-68272823.entry.js +0 -1
- package/dist/gatacaqr/p-92a2e6f0.entry.js +0 -1
- package/dist/gatacaqr/p-ea783014.js +0 -1
- /package/dist/gatacaqr/{p-2cd7b062.js → p-bce7e590.js} +0 -0
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
3
|
-
import {
|
|
3
|
+
import { a as gatIconCheckSvg, g as gatIconAlertSvg, R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode } from './gat-icon-check.js';
|
|
4
4
|
|
|
5
5
|
const Success = (props) => {
|
|
6
6
|
const { modalHeight, successLoginLabel } = props;
|
|
7
|
-
return (h("div", { class:
|
|
8
|
-
height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) +
|
|
7
|
+
return (h("div", { class: 'success', style: {
|
|
8
|
+
height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + 'px' : '300px'
|
|
9
9
|
} },
|
|
10
10
|
h("img", { src: gatIconCheckSvg, height: 52, width: 52 }),
|
|
11
11
|
h("p", { class: "successMsg" }, successLoginLabel)));
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
+
const gatIconRefreshSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIzIDRWMTBIMTciIHN0cm9rZT0iIzhCOEI4QiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTIwLjQ4OTkgMTVDMTkuODM5OSAxNi44Mzk5IDE4LjYwOTQgMTguNDE4NyAxNi45ODQgMTkuNDk4NUMxNS4zNTg2IDIwLjU3ODMgMTMuNDI2MyAyMS4xMDA2IDExLjQ3ODMgMjAuOTg2NkM5LjUzMDI2IDIwLjg3MjYgNy42NzIwMyAyMC4xMjg2IDYuMTgzNjMgMTguODY2N0M0LjY5NTI0IDE3LjYwNDcgMy42NTczIDE1Ljg5MzIgMy4yMjYyNSAxMy45OTAxQzIuNzk1MTkgMTIuMDg2OSAyLjk5NDM2IDEwLjA5NTIgMy43OTM3NCA4LjMxNTA4QzQuNTkzMTMgNi41MzQ5NiA1Ljk0OTQyIDUuMDYyODggNy42NTgyMyA0LjEyMDY1QzkuMzY3MDUgMy4xNzg0MyAxMS4zMzU4IDIuODE3MTEgMTMuMjY3OCAzLjA5MTE2QzE1LjE5OTkgMy4zNjUyIDE2Ljk5MDUgNC4yNTk3NSAxOC4zNjk5IDUuNjQwMDFMMjIuOTk5OSAxMCIgc3Ryb2tlPSIjOEI4QjhCIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K';
|
|
15
|
+
|
|
14
16
|
const RetryButton = (props) => {
|
|
15
17
|
var _a;
|
|
16
|
-
const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR
|
|
18
|
+
const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR } = props;
|
|
17
19
|
return (h("div", { class: "reload", style: {
|
|
18
|
-
width: (modalWidth - 48).toString() +
|
|
19
|
-
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) +
|
|
20
|
+
width: (modalWidth - 48).toString() + 'px',
|
|
21
|
+
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
|
|
20
22
|
} },
|
|
21
23
|
h("div", { id: "notify", onClick: () => display() },
|
|
22
24
|
h("img", { src: gatIconRefreshSvg, height: 24, width: 24 }),
|
|
23
25
|
h("p", { class: "notify-text" },
|
|
24
26
|
clickInsideBoxLabel,
|
|
25
27
|
" "),
|
|
26
|
-
errorMessage ?
|
|
28
|
+
errorMessage ? h("p", { class: "notify-text bold" }, refreshQrLabel) : h("p", { class: "notify-text bold" }, scanQrLabel),
|
|
27
29
|
errorMessage && (h("div", { class: "alert", style: {
|
|
28
|
-
width: (modalWidth - 48).toString() +
|
|
30
|
+
width: (modalWidth - 48).toString() + 'px'
|
|
29
31
|
} },
|
|
30
32
|
h("img", { src: gatIconAlertSvg, height: 24, width: 24 }),
|
|
31
33
|
h("p", null, errorMessage)))),
|
|
@@ -34,7 +36,7 @@ const RetryButton = (props) => {
|
|
|
34
36
|
|
|
35
37
|
const QR = (props) => {
|
|
36
38
|
const { value, useLogo, logoSrc, size, qrType } = props;
|
|
37
|
-
return
|
|
39
|
+
return h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, qrType: qrType, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc });
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
const AnimatedLoader = () => {
|
|
@@ -54,8 +56,8 @@ const ReadQR = (props) => {
|
|
|
54
56
|
var _a;
|
|
55
57
|
const { modalWidth, readQrMessages, renderQR, url, sizeQR } = props;
|
|
56
58
|
return (h("div", { class: "blured", style: {
|
|
57
|
-
width: (modalWidth - 48).toString() +
|
|
58
|
-
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) +
|
|
59
|
+
width: (modalWidth - 48).toString() + 'px',
|
|
60
|
+
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
|
|
59
61
|
} },
|
|
60
62
|
h("div", { id: "notify" },
|
|
61
63
|
h(AnimatedLoader, null),
|
|
@@ -68,11 +70,11 @@ const ReadQR = (props) => {
|
|
|
68
70
|
|
|
69
71
|
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)}}";
|
|
70
72
|
|
|
71
|
-
const DEEP_LINK_PREFIX =
|
|
73
|
+
const DEEP_LINK_PREFIX = 'https://api.gataca.io/qr/redirect.html';
|
|
72
74
|
const DEFAULT_SESSION_TIMEOUT = 300;
|
|
73
|
-
const QR_ROLE_CONNECT =
|
|
75
|
+
const QR_ROLE_CONNECT = 'connect';
|
|
74
76
|
const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
75
|
-
constructor() { super(); this.__registerHost(); this.__attachShadow(); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType =
|
|
77
|
+
constructor() { super(); this.__registerHost(); this.__attachShadow(); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = 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 = 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 = RESULT_STATUS.NOT_STARTED; }
|
|
76
78
|
disconnectedCallback() {
|
|
77
79
|
this.stop();
|
|
78
80
|
}
|
|
@@ -87,7 +89,7 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
87
89
|
async display() {
|
|
88
90
|
let socket = new WebSocket(this.socketEndpoint);
|
|
89
91
|
setTimeout(() => {
|
|
90
|
-
this.socket.close(1000,
|
|
92
|
+
this.socket.close(1000, '');
|
|
91
93
|
}, 1000 * this.sessionTimeout);
|
|
92
94
|
this.socket = socket;
|
|
93
95
|
socket.onopen = () => {
|
|
@@ -106,11 +108,11 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
106
108
|
}
|
|
107
109
|
};
|
|
108
110
|
socket.onerror = () => {
|
|
109
|
-
let error = new Error(
|
|
111
|
+
let error = new Error('Error connecting with server');
|
|
110
112
|
this.result = RESULT_STATUS.FAILED;
|
|
111
113
|
this.gatacaLoginFailed.emit(error);
|
|
112
114
|
this.errorCallback(error);
|
|
113
|
-
socket.close(1000,
|
|
115
|
+
socket.close(1000, '');
|
|
114
116
|
};
|
|
115
117
|
socket.onclose = () => {
|
|
116
118
|
if (this.result === RESULT_STATUS.ONGOING || RESULT_STATUS.READ) {
|
|
@@ -121,7 +123,7 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
121
123
|
this.display();
|
|
122
124
|
}
|
|
123
125
|
else {
|
|
124
|
-
let error = new Error(
|
|
126
|
+
let error = new Error('User did not scan the QR in the alloted time');
|
|
125
127
|
this.gatacaLoginFailed.emit(error);
|
|
126
128
|
this.errorCallback(error);
|
|
127
129
|
}
|
|
@@ -147,7 +149,7 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
147
149
|
this.sessionData = wsresp.authenticatedUserData;
|
|
148
150
|
this.gatacaLoginCompleted.emit(wsresp.authenticatedUserData);
|
|
149
151
|
this.successCallback(wsresp.authenticatedUserData);
|
|
150
|
-
this.socket.close(1000,
|
|
152
|
+
this.socket.close(1000, '');
|
|
151
153
|
break;
|
|
152
154
|
case RESULT_STATUS.FAILED:
|
|
153
155
|
this.socket.close();
|
|
@@ -161,7 +163,7 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
161
163
|
this.display();
|
|
162
164
|
}
|
|
163
165
|
else {
|
|
164
|
-
let error = new Error(
|
|
166
|
+
let error = new Error('User did not scan the QR in the alloted time');
|
|
165
167
|
this.gatacaLoginFailed.emit(error);
|
|
166
168
|
this.errorCallback(error);
|
|
167
169
|
}
|
|
@@ -173,21 +175,19 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
173
175
|
async stop() {
|
|
174
176
|
this.sessionData = undefined;
|
|
175
177
|
this.sessionId = undefined;
|
|
176
|
-
this.socket.close(1000,
|
|
178
|
+
this.socket.close(1000, 'Client stopped the connection');
|
|
177
179
|
}
|
|
178
180
|
/**
|
|
179
181
|
* Retrieve manually the session data on a successful login
|
|
180
182
|
*/
|
|
181
183
|
async getSessionData() {
|
|
182
|
-
return this.sessionData
|
|
183
|
-
? Promise.resolve(this.sessionData)
|
|
184
|
-
: Promise.reject(new Error("No successful login"));
|
|
184
|
+
return this.sessionData ? Promise.resolve(this.sessionData) : Promise.reject(new Error('No successful login'));
|
|
185
185
|
}
|
|
186
186
|
getLink() {
|
|
187
|
-
if (this.v ===
|
|
187
|
+
if (this.v === '2' && this.qrRole == QR_ROLE_CONNECT) {
|
|
188
188
|
return this.authenticationRequest;
|
|
189
189
|
}
|
|
190
|
-
const authRequestEncoded =
|
|
190
|
+
const authRequestEncoded = '?dl=' + base64UrlEncode(this.authenticationRequest);
|
|
191
191
|
return DEEP_LINK_PREFIX + authRequestEncoded;
|
|
192
192
|
}
|
|
193
193
|
renderQRSection() {
|
|
@@ -205,40 +205,35 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
205
205
|
case RESULT_STATUS.READ:
|
|
206
206
|
return this.renderReadQR({
|
|
207
207
|
title: this === null || this === void 0 ? void 0 : this.readQrTitle,
|
|
208
|
-
description: this === null || this === void 0 ? void 0 : this.readQrDescription
|
|
208
|
+
description: this === null || this === void 0 ? void 0 : this.readQrDescription
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
renderSuccess() {
|
|
213
|
-
return
|
|
213
|
+
return h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel });
|
|
214
214
|
}
|
|
215
215
|
renderRetryButton(errorMessage) {
|
|
216
216
|
return (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) }));
|
|
217
217
|
}
|
|
218
218
|
renderReadQR(readQrMessages) {
|
|
219
|
-
return
|
|
219
|
+
return 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) });
|
|
220
220
|
}
|
|
221
221
|
renderQR(value, useLogo, sizeQR) {
|
|
222
|
-
return
|
|
222
|
+
return h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, size: sizeQR || (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc });
|
|
223
223
|
}
|
|
224
224
|
renderRetryQR(value, useLogo) {
|
|
225
|
-
return
|
|
225
|
+
return h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, 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 });
|
|
226
226
|
}
|
|
227
227
|
render() {
|
|
228
228
|
var _a, _b;
|
|
229
|
-
return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ?
|
|
230
|
-
width: (this.modalWidth - 2).toString() +
|
|
231
|
-
height: this.modalHeight
|
|
232
|
-
? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
233
|
-
: "",
|
|
229
|
+
return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ? '' : 'large-modal'} ${this.hideModalBoxShadow ? 'noBoxShadow' : ''}`, style: {
|
|
230
|
+
width: (this.modalWidth - 2).toString() + 'px',
|
|
231
|
+
height: this.modalHeight ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
|
|
234
232
|
}, onClick: (event) => {
|
|
235
233
|
event.stopPropagation();
|
|
236
|
-
} }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ?
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
height: this.modalWidth
|
|
240
|
-
? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
|
|
241
|
-
: "",
|
|
234
|
+
} }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? 'hidenText' : ''}` }, h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || '#1e1e20' } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand modalText" }, this.byBrandLabel, ' ', h("span", null, h("img", { src: logoGatacaSvg })))), this.result !== RESULT_STATUS.SUCCESS && !this.hideQrModalDescription && h("p", { class: "qrDescription modalText" }, this.qrModalDescription)), h("div", { class: "qrSection", style: {
|
|
235
|
+
width: this.modalWidth.toString() + 'px',
|
|
236
|
+
height: this.modalWidth ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + 'px' : ''
|
|
242
237
|
} }, this.renderQRSection())))));
|
|
243
238
|
}
|
|
244
239
|
static get style() { return gatacaQrwsCss; }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
3
|
-
import { R as RESULT_STATUS } from './gat-icon-
|
|
3
|
+
import { R as RESULT_STATUS } from './gat-icon-check.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './gataca-qr2.js';
|
|
5
5
|
|
|
6
6
|
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}";
|
|
7
7
|
|
|
8
|
-
const PHONE_ICON =
|
|
8
|
+
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=';
|
|
9
9
|
//Default values
|
|
10
10
|
const DEFAULT_SESSION_TIMEOUT = 300; //5mins as in connect
|
|
11
11
|
const DEFAULT_POLLING_FREQ = 3;
|
|
@@ -16,11 +16,33 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
16
16
|
this.__attachShadow();
|
|
17
17
|
this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
|
|
18
18
|
this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
19
|
+
this.gatacaButtonPushed = createEvent(this, "gatacaButtonPushed", 7);
|
|
20
|
+
this.getRequestFromUri = async (authRequest) => {
|
|
21
|
+
const requrl = new URL(authRequest);
|
|
22
|
+
const requri = requrl.searchParams.get('request_uri');
|
|
23
|
+
if (requri) {
|
|
24
|
+
const response = await fetch(requri, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
headers: {
|
|
27
|
+
'Content-Type': 'application/json'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const jwt = await response.json();
|
|
31
|
+
const parts = jwt.split('.');
|
|
32
|
+
const base64 = parts[1].replace(/-/g, '+').replace(/_/g, '/');
|
|
33
|
+
const decoded = window.atob(base64);
|
|
34
|
+
let parsed = JSON.parse(decoded);
|
|
35
|
+
parsed.response_mode = 'dc_api';
|
|
36
|
+
return parsed;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
this.buttonText = 'Easy login';
|
|
40
|
+
this.buttonDCAPIText = 'Login with Device Credentials';
|
|
41
|
+
this.qrType = 'svg';
|
|
21
42
|
this.autostart = true;
|
|
22
43
|
this.checkStatus = undefined;
|
|
23
44
|
this.createSession = undefined;
|
|
45
|
+
this.fillSession = undefined;
|
|
24
46
|
this.successCallback = undefined;
|
|
25
47
|
this.errorCallback = undefined;
|
|
26
48
|
this.handleCheckAppLoading = undefined;
|
|
@@ -30,32 +52,49 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
30
52
|
this.sessionTimeout = undefined;
|
|
31
53
|
this.pollingFrequency = undefined;
|
|
32
54
|
this.autorefresh = false;
|
|
33
|
-
this.v =
|
|
34
|
-
this.qrModalTitle =
|
|
35
|
-
this.modalTitleColor =
|
|
36
|
-
this.qrModalDescription =
|
|
55
|
+
this.v = '3';
|
|
56
|
+
this.qrModalTitle = 'Quick Access';
|
|
57
|
+
this.modalTitleColor = '#4745B7';
|
|
58
|
+
this.qrModalDescription = 'Sign up or sign in by scanning the QR Code with the Gataca Wallet';
|
|
37
59
|
this.hideBrandTitle = false;
|
|
38
60
|
this.dynamicLink = true;
|
|
39
61
|
this.logoSize = 0;
|
|
40
62
|
this.logoSrc = undefined;
|
|
41
|
-
this.qrCodeExpiredLabel =
|
|
42
|
-
this.credentialsNotValidatedLabel =
|
|
43
|
-
this.clickInsideBoxLabel =
|
|
44
|
-
this.refreshQrLabel =
|
|
45
|
-
this.scanQrLabel =
|
|
46
|
-
this.userNotScanInTimeErrorLabel =
|
|
63
|
+
this.qrCodeExpiredLabel = 'QR Code expired';
|
|
64
|
+
this.credentialsNotValidatedLabel = 'User credentials not validated';
|
|
65
|
+
this.clickInsideBoxLabel = 'Click inside the box to';
|
|
66
|
+
this.refreshQrLabel = 'Refresh QR Code';
|
|
67
|
+
this.scanQrLabel = 'Scan QR Code';
|
|
68
|
+
this.userNotScanInTimeErrorLabel = 'User did not scan the QR in the allowed time';
|
|
47
69
|
this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated";
|
|
48
|
-
this.failedLoginErrorLabel =
|
|
49
|
-
this.successLoginLabel =
|
|
50
|
-
this.byBrandLabel =
|
|
51
|
-
this.waitingStartSessionLabel =
|
|
70
|
+
this.failedLoginErrorLabel = 'No successful login';
|
|
71
|
+
this.successLoginLabel = 'Successful Connection!';
|
|
72
|
+
this.byBrandLabel = 'by Gataca';
|
|
73
|
+
this.waitingStartSessionLabel = 'waiting to start a session';
|
|
74
|
+
this.enableDcApi = false;
|
|
52
75
|
this.hideQrModalDescription = false;
|
|
76
|
+
this.qrStyle = undefined;
|
|
53
77
|
this.open = false;
|
|
54
78
|
this.sessionId = undefined;
|
|
55
79
|
this.authenticationRequest = undefined;
|
|
56
80
|
this.sessionData = undefined;
|
|
57
81
|
this.result = RESULT_STATUS.NOT_STARTED;
|
|
58
|
-
this.qr = (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 }));
|
|
82
|
+
this.qr = (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, qrStyle: this.qrStyle }));
|
|
83
|
+
}
|
|
84
|
+
supportsDCAPI() {
|
|
85
|
+
// let mobile = checkMobile();
|
|
86
|
+
// if (!mobile) return false;
|
|
87
|
+
if (!this.enableDcApi) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
//@ts-ignore
|
|
91
|
+
if (typeof window.DigitalCredential === 'undefined')
|
|
92
|
+
return false;
|
|
93
|
+
const protocols = ['org-iso-mdoc', 'openid4vp', 'openid4vci'];
|
|
94
|
+
//@ts-ignore
|
|
95
|
+
const supportedProtocols = protocols.filter(window.DigitalCredential.userAgentAllowsProtocol);
|
|
96
|
+
console.log(supportedProtocols, protocols);
|
|
97
|
+
return true;
|
|
59
98
|
}
|
|
60
99
|
/**
|
|
61
100
|
* Retrieve manually the session data on a successful login
|
|
@@ -93,9 +132,7 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
93
132
|
}
|
|
94
133
|
else {
|
|
95
134
|
if (err !== RESULT_STATUS.NOT_STARTED) {
|
|
96
|
-
let error = expired
|
|
97
|
-
? new Error(this.userNotScanInTimeErrorLabel)
|
|
98
|
-
: new Error(this.credsNotValidatedErrorLabel);
|
|
135
|
+
let error = expired ? new Error(this.userNotScanInTimeErrorLabel) : new Error(this.credsNotValidatedErrorLabel);
|
|
99
136
|
this.result = err;
|
|
100
137
|
this.gatacaLoginFailed.emit(error);
|
|
101
138
|
this.errorCallback(error);
|
|
@@ -120,8 +157,7 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
120
157
|
return this.qr;
|
|
121
158
|
}
|
|
122
159
|
async poll() {
|
|
123
|
-
let endTime = new Date().getTime() +
|
|
124
|
-
(this.sessionTimeout || DEFAULT_SESSION_TIMEOUT) * 1000;
|
|
160
|
+
let endTime = new Date().getTime() + (this.sessionTimeout || DEFAULT_SESSION_TIMEOUT) * 1000;
|
|
125
161
|
let interval = (this.pollingFrequency || DEFAULT_POLLING_FREQ) * 1000;
|
|
126
162
|
let checkFunc = async (component) => {
|
|
127
163
|
if (component.result === RESULT_STATUS.NOT_STARTED) {
|
|
@@ -178,10 +214,10 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
178
214
|
cleanup();
|
|
179
215
|
}
|
|
180
216
|
};
|
|
181
|
-
document.addEventListener(
|
|
217
|
+
document.addEventListener('visibilitychange', handleVisibilityChange);
|
|
182
218
|
function cleanup() {
|
|
183
219
|
clearTimeout(timeout);
|
|
184
|
-
document.removeEventListener(
|
|
220
|
+
document.removeEventListener('visibilitychange', handleVisibilityChange);
|
|
185
221
|
}
|
|
186
222
|
}
|
|
187
223
|
renderDesktopButton() {
|
|
@@ -203,7 +239,7 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
203
239
|
return authenticationRequest;
|
|
204
240
|
}
|
|
205
241
|
renderMobileButton(isAndroid, isIos) {
|
|
206
|
-
if (this.autostart) {
|
|
242
|
+
if (this.autostart && !this.supportsDCAPI()) {
|
|
207
243
|
this.startMobilePolling();
|
|
208
244
|
}
|
|
209
245
|
let loading = false;
|
|
@@ -215,8 +251,8 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
215
251
|
};
|
|
216
252
|
const executeRedirection = async () => {
|
|
217
253
|
handleLoading(true);
|
|
218
|
-
const androidStoreLink =
|
|
219
|
-
const iosStoreLink =
|
|
254
|
+
const androidStoreLink = 'https://play.google.com/store/apps/details?id=com.gataca.identity';
|
|
255
|
+
const iosStoreLink = 'https://apps.apple.com/us/app/gataca/id1498607616';
|
|
220
256
|
try {
|
|
221
257
|
const appScheme = await this.getAuthRequest();
|
|
222
258
|
this.isAppInstalled(appScheme, (installed) => {
|
|
@@ -238,9 +274,51 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
238
274
|
}
|
|
239
275
|
};
|
|
240
276
|
return (h("div", { class: "gatacaButtonWrapper" }, h("button", { class: "gatacaButton", onClick: () => {
|
|
277
|
+
this.gatacaButtonPushed.emit();
|
|
241
278
|
executeRedirection();
|
|
242
279
|
}, disabled: loading }, h("img", { src: PHONE_ICON, class: "buttonImg", alt: this.buttonText }), h("span", null, this.buttonText))));
|
|
243
280
|
}
|
|
281
|
+
renderDCAPIButton(isAndroid, isIos) {
|
|
282
|
+
let loading = false;
|
|
283
|
+
console.log('Maybe act different', isAndroid, isIos);
|
|
284
|
+
const handleLoading = (isLoading) => {
|
|
285
|
+
loading = isLoading;
|
|
286
|
+
if (this.handleCheckAppLoading) {
|
|
287
|
+
this.handleCheckAppLoading(isLoading);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const executeDCAPICall = async () => {
|
|
291
|
+
handleLoading(true);
|
|
292
|
+
try {
|
|
293
|
+
const authRequest = await this.getAuthRequest();
|
|
294
|
+
let request = await this.getRequestFromUri(authRequest);
|
|
295
|
+
let credentialResponse = await navigator.credentials.get({
|
|
296
|
+
//@ts-ignore
|
|
297
|
+
digital: {
|
|
298
|
+
requests: [
|
|
299
|
+
{
|
|
300
|
+
protocol: 'openid4vp-v1-unsigned',
|
|
301
|
+
data: request
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
if (credentialResponse.constructor.name == 'DigitalCredential') {
|
|
307
|
+
console.log('Digital Credential - Response Data: ' + credentialResponse);
|
|
308
|
+
}
|
|
309
|
+
//@ts-ignore
|
|
310
|
+
await this.fillSession(request, credentialResponse === null || credentialResponse === void 0 ? void 0 : credentialResponse.data);
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
this.stop();
|
|
314
|
+
handleLoading(false);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
return (h("div", { class: "gatacaButtonWrapper" }, h("button", { class: "gatacaButton", onClick: () => {
|
|
318
|
+
this.gatacaButtonPushed.emit();
|
|
319
|
+
executeDCAPICall();
|
|
320
|
+
}, disabled: loading }, h("img", { src: PHONE_ICON, class: "buttonImg", alt: this.buttonDCAPIText }), h("span", null, this.buttonDCAPIText))));
|
|
321
|
+
}
|
|
244
322
|
render() {
|
|
245
323
|
const userAgent =
|
|
246
324
|
// @ts-ignore
|
|
@@ -248,20 +326,20 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
248
326
|
const isAndroid = /android/i.test(userAgent);
|
|
249
327
|
const isIos =
|
|
250
328
|
// @ts-ignore
|
|
251
|
-
(/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) ||
|
|
252
|
-
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
|
|
329
|
+
(/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
|
|
253
330
|
const isMobile = isAndroid || isIos;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
: this.renderDesktopButton(), this.open && (!isMobile || this.v === "3") && this.renderModal()));
|
|
331
|
+
const displayDCApi = this.supportsDCAPI();
|
|
332
|
+
return (h("div", null, h("div", { class: "buttonContainer" }, isMobile && this.v === '3' ? this.renderMobileButton(isAndroid, isIos) : this.renderDesktopButton(), this.open && (!isMobile || this.v === '3') && this.renderModal()), displayDCApi /** && isMobile */ && h("div", { class: "buttonContainer" }, this.renderDCAPIButton(isAndroid, isIos))));
|
|
257
333
|
}
|
|
258
334
|
static get style() { return gatacaSsibuttonCss; }
|
|
259
335
|
}, [1, "gataca-ssibutton", {
|
|
260
336
|
"buttonText": [1, "button-text"],
|
|
337
|
+
"buttonDCAPIText": [1, "button-d-c-a-p-i-text"],
|
|
261
338
|
"qrType": [1, "qr-type"],
|
|
262
339
|
"autostart": [4],
|
|
263
340
|
"checkStatus": [16],
|
|
264
341
|
"createSession": [16],
|
|
342
|
+
"fillSession": [16],
|
|
265
343
|
"successCallback": [16],
|
|
266
344
|
"errorCallback": [16],
|
|
267
345
|
"handleCheckAppLoading": [16],
|
|
@@ -290,7 +368,9 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
290
368
|
"successLoginLabel": [1, "success-login-label"],
|
|
291
369
|
"byBrandLabel": [1, "by-brand-label"],
|
|
292
370
|
"waitingStartSessionLabel": [1, "waiting-start-session-label"],
|
|
371
|
+
"enableDcApi": [4, "enable-dc-api"],
|
|
293
372
|
"hideQrModalDescription": [4, "hide-qr-modal-description"],
|
|
373
|
+
"qrStyle": [16],
|
|
294
374
|
"open": [32],
|
|
295
375
|
"sessionId": [32],
|
|
296
376
|
"authenticationRequest": [32],
|
|
@@ -4,7 +4,7 @@ import { d as defineCustomElement$1 } from './gataca-qrws2.js';
|
|
|
4
4
|
|
|
5
5
|
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
6
|
|
|
7
|
-
const PHONE_ICON =
|
|
7
|
+
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
8
|
const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
@@ -12,10 +12,10 @@ const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
12
12
|
this.__attachShadow();
|
|
13
13
|
this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
|
|
14
14
|
this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
|
|
15
|
-
this.buttonText =
|
|
15
|
+
this.buttonText = 'Easy login';
|
|
16
16
|
this.successCallback = undefined;
|
|
17
17
|
this.errorCallback = undefined;
|
|
18
|
-
this.qrType =
|
|
18
|
+
this.qrType = 'svg';
|
|
19
19
|
this.qrRole = undefined;
|
|
20
20
|
this.callbackServer = undefined;
|
|
21
21
|
this.socketEndpoint = undefined;
|
|
@@ -24,9 +24,9 @@ const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
24
24
|
this.wsOnMessage = undefined;
|
|
25
25
|
this.autostart = true;
|
|
26
26
|
this.autorefresh = false;
|
|
27
|
-
this.v =
|
|
28
|
-
this.qrModalTitle =
|
|
29
|
-
this.qrModalDescription =
|
|
27
|
+
this.v = '3';
|
|
28
|
+
this.qrModalTitle = 'Quick Access';
|
|
29
|
+
this.qrModalDescription = 'Sign up or sign in by scanning the QR Code with the Gataca Wallet';
|
|
30
30
|
this.hideBrandTitle = false;
|
|
31
31
|
this.dynamicLink = true;
|
|
32
32
|
this.open = false;
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
-
export { R as RESULT_STATUS, b as base64UrlEncode, c as checkMobile } from './gat-icon-
|
|
2
|
+
export { R as RESULT_STATUS, b as base64UrlEncode, c as checkMobile } from './gat-icon-check.js';
|
|
3
3
|
export { GatacaAutoqr, defineCustomElement as defineCustomElementGatacaAutoqr } from './gataca-autoqr.js';
|
|
4
4
|
export { GatacaQr, defineCustomElement as defineCustomElementGatacaQr } from './gataca-qr.js';
|
|
5
5
|
export { GatacaQrdisplay, defineCustomElement as defineCustomElementGatacaQrdisplay } from './gataca-qrdisplay.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const logoGatacaSvg = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDc2IDcxIiB3aWR0aD0iNzEiIGhlaWdodD0iNjYiPgoJPHRpdGxlPlZlY3RvciAoMyktc3ZnPC90aXRsZT4KCTxzdHlsZT4KCQkuczAgeyBmaWxsOiAjNDc0NWI3IH0gCgk8L3N0eWxlPgoJPHBhdGggaWQ9IkxheWVyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsYXNzPSJzMCIgZD0ibTcyLjIgMzguNGMyLjIgMy4zIDMuNSA3LjIgMy41IDExLjQgMCAxMS4yLTguOCAyMC4yLTE5LjkgMjAuN3EtMC40IDAtMC44IDBjLTMgMC01LjgtMC42LTguNC0xLjdxLTIuMS0xLTMuOC0yLjMtMS4xLTAuOC0yLjEtMS43LTEuMy0xLjItMi4zLTIuNi0wLjUgMC42LTEgMS4yYy0zLjggNC40LTkuNCA3LjEtMTUuNyA3LjEtNi43IDAtMTIuNi0zLjItMTYuNC04LjEtMi43LTMuNS00LjMtNy44LTQuMy0xMi42IDAtMTAuNiA4LTE5LjMgMTguMy0yMC41LTEuMS0yLjUtMS43LTUuMi0xLjctOC4xIDAtMTEuNSA5LjMtMjAuNyAyMC44LTIwLjcgMTAuMiAwIDE4LjcgNy40IDIwLjQgMTcuMnEwLjMgMS43IDAuMyAzLjVjMCAyLjktMC42IDUuNi0xLjcgOC4xIDYuMiAwLjcgMTEuNiA0LjIgMTQuOCA5LjF6bS00NC43LTIzLjVjLTMuNCA2LTEuNCAxMy41IDQuNSAxN3EwLjEgMCAwLjIgMC4xYzIuNCAxLjMgNS4xIDEuOCA3LjcgMS41IDEuNS0wLjIgMy4xLTAuNyA0LjUtMS40cTAuMi0wLjIgMC40LTAuM2MxLjgtMSAzLjMtMi41IDQuNC00LjRxMC43LTEuMyAxLjEtMi42YzEuNy01LjQtMC42LTExLjUtNS43LTE0LjQtNi0zLjQtMTMuNi0xLjQtMTcuMSA0LjV6bTM4LjUgNDAuOGMyLTMuOSAxLjktOC40LTAuMi0xMi0xLTEuOC0yLjYtMy41LTQuNi00LjYtMy45LTIuMy04LjUtMi4yLTEyLjMtMC4ycS0wLjIgMC4yLTAuNCAwLjMtMC45IDAuNS0xLjcgMS4ybDEzLjYgNy44djAuMWwtNi43IDUuNi0xMS02LjQtMC40LTAuMi03LTQtNC4yLTIuNS0yLjYtMS40cS0wLjItMC4yLTAuNC0wLjMtMC4xIDAtMC4yLTAuMWMtNS45LTMuNC0xMy41LTEuMy0xNyA0LjYtMi41IDQuNC0yLjEgOS43IDAuNyAxMy41IDEgMS40IDIuMyAyLjYgMy45IDMuNSA0LjggMi43IDEwLjYgMiAxNC41LTEuNGwtMTIuNC03LjEgNi44LTUuNiA5LjYgNS41IDAuNCAwLjIgNyA0LjEgNS42IDMuMiAxLjggMWMzLjMgMS45IDcuMyAyLjMgMTAuOSAwLjkgMi42LTEuMSA0LjgtMyA2LjMtNS43eiIvPgo8L3N2Zz4=';
|
|
2
2
|
|
|
3
3
|
function getDefaultExportFromCjs (x) {
|
|
4
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -25,4 +25,8 @@ var qrCodeStyling = createCommonjsModule(function (module, exports) {
|
|
|
25
25
|
|
|
26
26
|
const QRCodeStyling = /*@__PURE__*/getDefaultExportFromCjs(qrCodeStyling);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const gatIconAlertSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjI5MDggMy44NjAyTDEuODIwNzUgMTguMDAwMkMxLjY0NjEyIDE4LjMwMjYgMS41NTM3MiAxOC42NDU1IDEuNTUyNzQgMTguOTk0N0MxLjU1MTc2IDE5LjM0MzkgMS42NDIyNCAxOS42ODczIDEuODE1MTggMTkuOTkwN0MxLjk4ODEyIDIwLjI5NDEgMi4yMzc0OCAyMC41NDcgMi41Mzg0NiAyMC43MjQxQzIuODM5NDQgMjAuOTAxMiAzLjE4MTU1IDIwLjk5NjQgMy41MzA3NSAyMS4wMDAySDIwLjQ3MDhDMjAuODIgMjAuOTk2NCAyMS4xNjIxIDIwLjkwMTIgMjEuNDYzIDIwLjcyNDFDMjEuNzY0IDIwLjU0NyAyMi4wMTM0IDIwLjI5NDEgMjIuMTg2MyAxOS45OTA3QzIyLjM1OTMgMTkuNjg3MyAyMi40NDk3IDE5LjM0MzkgMjIuNDQ4OCAxOC45OTQ3QzIyLjQ0NzggMTguNjQ1NSAyMi4zNTU0IDE4LjMwMjYgMjIuMTgwOCAxOC4wMDAyTDEzLjcxMDggMy44NjAyQzEzLjUzMjUgMy41NjYzMSAxMy4yODE1IDMuMzIzMzIgMTIuOTgxOSAzLjE1NDY5QzEyLjY4MjQgMi45ODYwNSAxMi4zNDQ1IDIuODk3NDYgMTIuMDAwOCAyLjg5NzQ2QzExLjY1NyAyLjg5NzQ2IDExLjMxOTEgMi45ODYwNSAxMS4wMTk2IDMuMTU0NjlDMTAuNzIgMy4zMjMzMiAxMC40NjkgMy41NjYzMSAxMC4yOTA4IDMuODYwMlYzLjg2MDJaIiBzdHJva2U9IiNDRDJCMzEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMiA5VjEzIiBzdHJva2U9IiNDRDJCMzEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMiAxN0gxMi4wMSIgc3Ryb2tlPSIjQ0QyQjMxIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K';
|
|
29
|
+
|
|
30
|
+
const gatIconCheckSvg = 'data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjUyIiBoZWlnaHQ9IjUzIiB2aWV3Qm94PSIwIDAgNTIgNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjI2IiBjeT0iMjYuNjcxOSIgcj0iMjYiIGZpbGw9IiMzRDlBNTAiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC41MiAxNy43NDk1QzM5LjU4MDUgMTguODA5OSAzOS41ODA1IDIwLjUyOTMgMzguNTIgMjEuNTg5OEwyMy41ODQ2IDM2LjUyNTFDMjIuNTI0MiAzNy41ODU2IDIwLjgwNDggMzcuNTg1NiAxOS43NDQzIDM2LjUyNTFMMTIuOTU1NSAyOS43MzYzQzExLjg5NSAyOC42NzU5IDExLjg5NSAyNi45NTY1IDEyLjk1NTUgMjUuODk2QzE0LjAxNiAyNC44MzU1IDE1LjczNTQgMjQuODM1NSAxNi43OTU4IDI1Ljg5NkwyMS42NjQ1IDMwLjc2NDdMMzQuNjc5NyAxNy43NDk1QzM1Ljc0MDIgMTYuNjg5IDM3LjQ1OTUgMTYuNjg5IDM4LjUyIDE3Ljc0OTVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K';
|
|
31
|
+
|
|
32
|
+
export { QRCodeStyling as Q, gatIconCheckSvg as a, gatIconAlertSvg as g, logoGatacaSvg as l };
|