@gataca/qr 2.0.6 → 2.0.9
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/{logo_gataca-f3dc6840.js → gat-icon-alert-0ad19b26.js} +2 -2
- package/dist/cjs/gataca-autoqr.cjs.entry.js +1 -1
- package/dist/cjs/gataca-qr_2.cjs.entry.js +46 -24
- package/dist/cjs/gataca-qrws.cjs.entry.js +5 -5
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +1 -1
- package/dist/cjs/gatacaqr.cjs.js +6 -2
- package/dist/cjs/{index-4be0cdca.js → index-f214ab7a.js} +145 -2
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/collection/assets/images/logo_gataca.svg +7 -26
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/gataca-qr/components/qr/QR.js +5 -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 +172 -85
- package/dist/collection/components/gataca-qr/gataca-qr.js +9 -22
- package/dist/components/gataca-qr2.js +44 -22
- package/dist/components/gataca-qrdisplay2.js +1 -1
- package/dist/components/gataca-qrws2.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +2 -2
- package/dist/esm/{logo_gataca-57ad0363.js → gat-icon-alert-7b06ef3a.js} +2 -2
- package/dist/esm/gataca-autoqr.entry.js +1 -1
- package/dist/esm/gataca-qr_2.entry.js +44 -22
- package/dist/esm/gataca-qrws.entry.js +2 -2
- package/dist/esm/gataca-ssibutton_2.entry.js +1 -1
- package/dist/esm/gatacaqr.js +3 -2
- package/dist/esm/{index-80311733.js → index-570c9813.js} +145 -3
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/p-0be4566d.js +1 -1
- package/dist/gatacaqr/p-23197d75.entry.js +1 -0
- package/dist/gatacaqr/{p-b834ef88.entry.js → p-3d1a6526.entry.js} +1 -1
- package/dist/gatacaqr/{p-66ad21ac.entry.js → p-bd6bd52f.entry.js} +1 -1
- package/dist/gatacaqr/p-c134f057.entry.js +1 -0
- package/dist/gatacaqr/p-ea783014.js +1 -0
- package/dist/gatacaqr/p-ec0f00a6.js +2 -0
- package/dist/types/components/gataca-qr/components/qr/QR.d.ts +9 -0
- package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +13 -0
- package/dist/types/components/gataca-qr/components/success/Success.d.ts +7 -0
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/dist/types/utils/utils.d.ts +8 -8
- package/loader/index.d.ts +9 -0
- package/package.json +7 -4
- package/dist/gatacaqr/p-5eb106c0.entry.js +0 -1
- package/dist/gatacaqr/p-6adc6933.js +0 -1
- package/dist/gatacaqr/p-96ca90e8.entry.js +0 -1
- package/dist/gatacaqr/p-a5648391.js +0 -2
- package/dist/components/{gat-icon-refresh.js → gat-icon-alert.js} +2 -2
|
@@ -1,22 +1,91 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap");
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap");
|
|
2
3
|
/* http://meyerweb.com/eric/tools/css/reset/
|
|
3
4
|
v2.0 | 20110126
|
|
4
5
|
License: none (public domain)
|
|
5
6
|
*/
|
|
6
7
|
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap");
|
|
7
|
-
html,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
html,
|
|
9
|
+
body,
|
|
10
|
+
div,
|
|
11
|
+
span,
|
|
12
|
+
applet,
|
|
13
|
+
object,
|
|
14
|
+
iframe,
|
|
15
|
+
h1,
|
|
16
|
+
h2,
|
|
17
|
+
h3,
|
|
18
|
+
h4,
|
|
19
|
+
h5,
|
|
20
|
+
h6,
|
|
21
|
+
p,
|
|
22
|
+
blockquote,
|
|
23
|
+
pre,
|
|
24
|
+
a,
|
|
25
|
+
abbr,
|
|
26
|
+
acronym,
|
|
27
|
+
address,
|
|
28
|
+
big,
|
|
29
|
+
cite,
|
|
30
|
+
code,
|
|
31
|
+
del,
|
|
32
|
+
dfn,
|
|
33
|
+
em,
|
|
34
|
+
img,
|
|
35
|
+
ins,
|
|
36
|
+
kbd,
|
|
37
|
+
q,
|
|
38
|
+
s,
|
|
39
|
+
samp,
|
|
40
|
+
small,
|
|
41
|
+
strike,
|
|
42
|
+
strong,
|
|
43
|
+
sub,
|
|
44
|
+
sup,
|
|
45
|
+
tt,
|
|
46
|
+
var,
|
|
47
|
+
b,
|
|
48
|
+
u,
|
|
49
|
+
i,
|
|
50
|
+
center,
|
|
51
|
+
dl,
|
|
52
|
+
dt,
|
|
53
|
+
dd,
|
|
54
|
+
ol,
|
|
55
|
+
ul,
|
|
56
|
+
li,
|
|
57
|
+
fieldset,
|
|
58
|
+
form,
|
|
59
|
+
label,
|
|
60
|
+
legend,
|
|
61
|
+
table,
|
|
62
|
+
caption,
|
|
63
|
+
tbody,
|
|
64
|
+
tfoot,
|
|
65
|
+
thead,
|
|
66
|
+
tr,
|
|
67
|
+
th,
|
|
68
|
+
td,
|
|
69
|
+
article,
|
|
70
|
+
aside,
|
|
71
|
+
canvas,
|
|
72
|
+
details,
|
|
73
|
+
embed,
|
|
74
|
+
figure,
|
|
75
|
+
figcaption,
|
|
76
|
+
footer,
|
|
77
|
+
header,
|
|
78
|
+
hgroup,
|
|
79
|
+
menu,
|
|
80
|
+
nav,
|
|
81
|
+
output,
|
|
82
|
+
ruby,
|
|
83
|
+
section,
|
|
84
|
+
summary,
|
|
85
|
+
time,
|
|
86
|
+
mark,
|
|
87
|
+
audio,
|
|
88
|
+
video {
|
|
20
89
|
margin: 0;
|
|
21
90
|
padding: 0;
|
|
22
91
|
border: 0;
|
|
@@ -26,8 +95,17 @@ time, mark, audio, video {
|
|
|
26
95
|
}
|
|
27
96
|
|
|
28
97
|
/* HTML5 display-role reset for older browsers */
|
|
29
|
-
article,
|
|
30
|
-
|
|
98
|
+
article,
|
|
99
|
+
aside,
|
|
100
|
+
details,
|
|
101
|
+
figcaption,
|
|
102
|
+
figure,
|
|
103
|
+
footer,
|
|
104
|
+
header,
|
|
105
|
+
hgroup,
|
|
106
|
+
menu,
|
|
107
|
+
nav,
|
|
108
|
+
section {
|
|
31
109
|
display: block;
|
|
32
110
|
}
|
|
33
111
|
|
|
@@ -35,16 +113,20 @@ body {
|
|
|
35
113
|
line-height: 1;
|
|
36
114
|
}
|
|
37
115
|
|
|
38
|
-
ol,
|
|
116
|
+
ol,
|
|
117
|
+
ul {
|
|
39
118
|
list-style: none;
|
|
40
119
|
}
|
|
41
120
|
|
|
42
|
-
blockquote,
|
|
121
|
+
blockquote,
|
|
122
|
+
q {
|
|
43
123
|
quotes: none;
|
|
44
124
|
}
|
|
45
125
|
|
|
46
|
-
blockquote:before,
|
|
47
|
-
|
|
126
|
+
blockquote:before,
|
|
127
|
+
blockquote:after,
|
|
128
|
+
q:before,
|
|
129
|
+
q:after {
|
|
48
130
|
content: "";
|
|
49
131
|
content: none;
|
|
50
132
|
}
|
|
@@ -111,7 +193,7 @@ img {
|
|
|
111
193
|
.popUpContainer .modal-window__content .hidenText {
|
|
112
194
|
display: none;
|
|
113
195
|
}
|
|
114
|
-
.popUpContainer .modal-window
|
|
196
|
+
.popUpContainer .modal-window .modalText {
|
|
115
197
|
font-family: "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
116
198
|
font-size: 20px;
|
|
117
199
|
font-style: normal;
|
|
@@ -119,7 +201,6 @@ img {
|
|
|
119
201
|
line-height: 24px;
|
|
120
202
|
margin-top: 10px;
|
|
121
203
|
letter-spacing: 1px;
|
|
122
|
-
color: #1e1e20;
|
|
123
204
|
}
|
|
124
205
|
.popUpContainer .modal-window .qrTitleContainer {
|
|
125
206
|
padding: 14px 24px;
|
|
@@ -131,12 +212,12 @@ img {
|
|
|
131
212
|
line-height: 23.5px;
|
|
132
213
|
}
|
|
133
214
|
.popUpContainer .modal-window .qrDescription {
|
|
134
|
-
font-
|
|
215
|
+
font-family: Poppins;
|
|
135
216
|
font-size: 14px;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
color: #
|
|
217
|
+
font-style: normal;
|
|
218
|
+
font-weight: 400;
|
|
219
|
+
line-height: 16px;
|
|
220
|
+
color: #707074;
|
|
140
221
|
}
|
|
141
222
|
.popUpContainer .modal-window .bold {
|
|
142
223
|
font-weight: 600;
|
|
@@ -160,33 +241,64 @@ img {
|
|
|
160
241
|
.popUpContainer .noBoxShadow {
|
|
161
242
|
box-shadow: none;
|
|
162
243
|
}
|
|
163
|
-
.popUpContainer .
|
|
244
|
+
.popUpContainer .is-visible {
|
|
245
|
+
opacity: 1;
|
|
246
|
+
visibility: visible;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.is-transparent {
|
|
250
|
+
opacity: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.success {
|
|
254
|
+
display: flex;
|
|
255
|
+
height: 300px;
|
|
256
|
+
flex-direction: column;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
align-items: center;
|
|
259
|
+
padding: 0px;
|
|
260
|
+
}
|
|
261
|
+
.success .successMsg {
|
|
262
|
+
line-height: 23.5px;
|
|
263
|
+
color: var(--neutral-1000, #1e1e20);
|
|
264
|
+
text-align: center;
|
|
265
|
+
font-family: "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
266
|
+
font-size: 20px;
|
|
267
|
+
font-style: normal;
|
|
268
|
+
font-weight: 700;
|
|
269
|
+
line-height: 24px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.reload {
|
|
164
273
|
height: 252px;
|
|
165
274
|
width: 252px;
|
|
166
|
-
border: 1px dashed #
|
|
275
|
+
border: 1px dashed #a1a1a1;
|
|
167
276
|
border-radius: 12px;
|
|
168
277
|
position: relative;
|
|
169
278
|
top: 24px;
|
|
170
279
|
margin: 0 24px 24px;
|
|
171
280
|
display: flex;
|
|
281
|
+
overflow: hidden;
|
|
172
282
|
justify-content: center;
|
|
173
283
|
align-items: center;
|
|
174
284
|
}
|
|
175
|
-
|
|
285
|
+
|
|
286
|
+
#qrwait {
|
|
176
287
|
display: flex;
|
|
177
288
|
justify-content: center;
|
|
178
289
|
}
|
|
179
|
-
|
|
180
|
-
|
|
290
|
+
|
|
291
|
+
#qrwait,
|
|
292
|
+
#notify {
|
|
181
293
|
width: 100%;
|
|
182
294
|
height: 100%;
|
|
183
295
|
top: 0;
|
|
184
296
|
left: 0;
|
|
185
297
|
border-radius: 20px;
|
|
186
298
|
}
|
|
187
|
-
|
|
299
|
+
|
|
300
|
+
#notify {
|
|
188
301
|
z-index: 10;
|
|
189
|
-
background-color: gray;
|
|
190
302
|
position: absolute;
|
|
191
303
|
justify-self: center;
|
|
192
304
|
justify-items: center;
|
|
@@ -198,74 +310,49 @@ img {
|
|
|
198
310
|
flex-direction: column;
|
|
199
311
|
padding: 24px;
|
|
200
312
|
box-sizing: border-box;
|
|
201
|
-
/* Auto layout */
|
|
202
313
|
display: flex;
|
|
203
314
|
flex-direction: column;
|
|
204
315
|
justify-content: center;
|
|
205
316
|
align-items: center;
|
|
206
317
|
padding: 20px;
|
|
207
|
-
background: rgba(255, 255, 255, 0.
|
|
208
|
-
/* Grey Colors/Grey 400 */
|
|
318
|
+
background: rgba(255, 255, 255, 0.95);
|
|
209
319
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
line-height: 16px;
|
|
216
|
-
text-align: center;
|
|
217
|
-
font-feature-settings: "salt" on;
|
|
218
|
-
color: #8B8B8B;
|
|
219
|
-
flex: none;
|
|
220
|
-
order: 1;
|
|
221
|
-
align-self: stretch;
|
|
222
|
-
flex-grow: 0;
|
|
223
|
-
}
|
|
224
|
-
.popUpContainer .alert {
|
|
320
|
+
#notify > img {
|
|
321
|
+
padding-bottom: 12px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.alert {
|
|
225
325
|
display: flex;
|
|
226
326
|
flex-direction: row;
|
|
227
327
|
align-items: center;
|
|
228
328
|
justify-content: start;
|
|
229
329
|
width: 252px;
|
|
230
330
|
position: absolute;
|
|
231
|
-
bottom:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.popUpContainer .alert img {
|
|
236
|
-
margin: 12px;
|
|
237
|
-
}
|
|
238
|
-
.popUpContainer .alert p {
|
|
239
|
-
font-weight: 400;
|
|
240
|
-
font-size: 14px;
|
|
241
|
-
line-height: 16px;
|
|
242
|
-
color: black;
|
|
243
|
-
}
|
|
244
|
-
.popUpContainer .success {
|
|
331
|
+
bottom: 0px;
|
|
332
|
+
border: 1px solid #ee888c;
|
|
333
|
+
background: #ffdedf;
|
|
334
|
+
border-radius: 11px;
|
|
245
335
|
display: flex;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
justify-content: center;
|
|
336
|
+
box-sizing: border-box;
|
|
337
|
+
padding: 12px;
|
|
249
338
|
align-items: center;
|
|
250
|
-
|
|
339
|
+
gap: 12px;
|
|
251
340
|
}
|
|
252
|
-
.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
text-align: center;
|
|
256
|
-
/* Heading/6 */
|
|
257
|
-
font-family: "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
258
|
-
font-size: 20px;
|
|
341
|
+
.alert > p {
|
|
342
|
+
font-family: "Poppins", "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
343
|
+
font-size: 14px;
|
|
259
344
|
font-style: normal;
|
|
260
|
-
font-weight:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
.popUpContainer .is-visible {
|
|
265
|
-
opacity: 1;
|
|
266
|
-
visibility: visible;
|
|
345
|
+
font-weight: 400;
|
|
346
|
+
margin-top: 0;
|
|
347
|
+
line-height: 16px;
|
|
348
|
+
color: #1e1e20;
|
|
267
349
|
}
|
|
268
350
|
|
|
269
|
-
.
|
|
270
|
-
|
|
351
|
+
.notify-text {
|
|
352
|
+
font-family: "Poppins", "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
353
|
+
font-size: 14px;
|
|
354
|
+
font-style: normal;
|
|
355
|
+
font-weight: 400;
|
|
356
|
+
line-height: 16px;
|
|
357
|
+
color: #707074;
|
|
271
358
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
|
-
import alertIcon from "../../assets/icons/gat-icon-alert.svg";
|
|
3
|
-
import successIcon from "../../assets/icons/gat-icon-check.svg";
|
|
4
|
-
import refreshIcon from "../../assets/icons/gat-icon-refresh.svg";
|
|
5
2
|
import logoGataca from "../../assets/images/logo_gataca.svg";
|
|
6
3
|
import "../gataca-qrdisplay/gataca-qrdisplay";
|
|
7
4
|
import { base64UrlEncode, checkMobile, RESULT_STATUS } from "../../utils/utils";
|
|
5
|
+
import { Success } from "./components/success/Success";
|
|
6
|
+
import { RetryButton } from "./components/retryButton/RetryButton";
|
|
7
|
+
import { QR } from "./components/qr/QR";
|
|
8
8
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
9
9
|
//Default values
|
|
10
10
|
const DEFAULT_SESSION_TIMEOUT = 300; //5mins as in connect
|
|
@@ -152,29 +152,16 @@ export class GatacaQR {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
renderSuccess() {
|
|
155
|
-
|
|
156
|
-
return (h("div", { class: "success", style: {
|
|
157
|
-
height: this.modalHeight
|
|
158
|
-
? ((_a = this.modalHeight) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
159
|
-
: "300px",
|
|
160
|
-
} }, h("img", { src: successIcon, height: 52, width: 52 }), h("p", { class: "successMsg" }, this.successLoginLabel)));
|
|
155
|
+
return (h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
|
|
161
156
|
}
|
|
162
157
|
renderRetryButton(errorMessage) {
|
|
163
|
-
|
|
164
|
-
return (h("div", { class: "reload", style: {
|
|
165
|
-
width: (this.modalWidth - 50).toString() + "px",
|
|
166
|
-
height: this.modalWidth
|
|
167
|
-
? ((_a = (this.modalWidth - 50)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
168
|
-
: "",
|
|
169
|
-
} }, h("div", { id: "notify", onClick: () => this.display() }, h("img", { src: refreshIcon, height: 24, width: 24 }), h("p", { class: "qrDescription" }, this.clickInsideBoxLabel, " "), errorMessage ? (h("p", { class: "qrDescription bold" }, this.refreshQrLabel)) : (h("p", { class: "qrDescription bold" }, this.scanQrLabel, "e")), errorMessage && (h("div", { class: "alert", style: {
|
|
170
|
-
width: (this.modalWidth - 50).toString() + "px",
|
|
171
|
-
} }, h("img", { src: alertIcon, height: 24, width: 24 }), h("p", null, errorMessage)))), h("div", { id: "qrwait" }, this.renderRetryQR(this.waitingStartSessionLabel))));
|
|
158
|
+
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 === null || this === void 0 ? void 0 : this.display, renderRetryQR: this === null || this === void 0 ? void 0 : this.renderRetryQR }));
|
|
172
159
|
}
|
|
173
160
|
renderQR(value, useLogo) {
|
|
174
|
-
return (h(
|
|
161
|
+
return (h(QR, { value: value, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
175
162
|
}
|
|
176
163
|
renderRetryQR(value, useLogo) {
|
|
177
|
-
return (h(
|
|
164
|
+
return (h(QR, { value: value, 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 }));
|
|
178
165
|
}
|
|
179
166
|
render() {
|
|
180
167
|
var _a, _b;
|
|
@@ -186,8 +173,8 @@ export class GatacaQR {
|
|
|
186
173
|
: "",
|
|
187
174
|
}, onClick: (event) => {
|
|
188
175
|
event.stopPropagation();
|
|
189
|
-
} }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, h("p", { class: "qrTitle", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand" }, this.byBrandLabel, " ", h("span", null, h("img", { src: logoGataca })))), this.result !== RESULT_STATUS.SUCCESS &&
|
|
190
|
-
!this.hideQrModalDescription && (h("p", { class: "qrDescription" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
|
|
176
|
+
} }, 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: logoGataca })))), this.result !== RESULT_STATUS.SUCCESS &&
|
|
177
|
+
!this.hideQrModalDescription && (h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
|
|
191
178
|
width: this.modalWidth.toString() + "px",
|
|
192
179
|
height: this.modalWidth
|
|
193
180
|
? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
|
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent
|
|
2
|
-
import { R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode, g as gatIconCheckSvg, a as gatIconRefreshSvg, d as gatIconAlertSvg } from './gat-icon-refresh.js';
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
3
2
|
import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
3
|
+
import { g as gatIconCheckSvg, a as gatIconRefreshSvg, d as gatIconAlertSvg, R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode } from './gat-icon-alert.js';
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const Success = (props) => {
|
|
6
|
+
const { modalHeight, successLoginLabel } = props;
|
|
7
|
+
return (h("div", { class: "success", style: {
|
|
8
|
+
height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + "px" : "300px",
|
|
9
|
+
} },
|
|
10
|
+
h("img", { src: gatIconCheckSvg, height: 52, width: 52 }),
|
|
11
|
+
h("p", { class: "successMsg" }, successLoginLabel)));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const RetryButton = (props) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
|
|
17
|
+
return (h("div", { class: "reload", style: {
|
|
18
|
+
width: (modalWidth - 48).toString() + "px",
|
|
19
|
+
height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
|
|
20
|
+
} },
|
|
21
|
+
h("div", { id: "notify", onClick: () => display() },
|
|
22
|
+
h("img", { src: gatIconRefreshSvg, height: 24, width: 24 }),
|
|
23
|
+
h("p", { class: "notify-text" },
|
|
24
|
+
clickInsideBoxLabel,
|
|
25
|
+
" "),
|
|
26
|
+
errorMessage ? (h("p", { class: "notify-text bold" }, refreshQrLabel)) : (h("p", { class: "notify-text bold" }, scanQrLabel)),
|
|
27
|
+
errorMessage && (h("div", { class: "alert", style: {
|
|
28
|
+
width: (modalWidth - 48).toString() + "px",
|
|
29
|
+
} },
|
|
30
|
+
h("img", { src: gatIconAlertSvg, height: 24, width: 24 }),
|
|
31
|
+
h("p", null, errorMessage)))),
|
|
32
|
+
h("div", { id: "qrwait" }, renderRetryQR(waitingStartSessionLabel))));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const QR = (props) => {
|
|
36
|
+
const { value, useLogo, logoSrc, size } = props;
|
|
37
|
+
return (h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const gatacaQrCss = "@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;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074}.popUpContainer .modal-window .bold{font-weight:600}.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 .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{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;align-self:center;display:flex;flex-direction:column;padding:24px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:rgba(255, 255, 255, 0.95)}#notify>img{padding-bottom:12px}.alert{display:flex;flex-direction:row;align-items:center;justify-content:start;width:252px;position:absolute;bottom:0px;border:1px solid #ee888c;background:#ffdedf;border-radius:11px;display:flex;box-sizing:border-box;padding:12px;align-items:center;gap:12px}.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}";
|
|
6
41
|
|
|
7
42
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
8
43
|
//Default values
|
|
@@ -151,29 +186,16 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
151
186
|
}
|
|
152
187
|
}
|
|
153
188
|
renderSuccess() {
|
|
154
|
-
|
|
155
|
-
return (h("div", { class: "success", style: {
|
|
156
|
-
height: this.modalHeight
|
|
157
|
-
? ((_a = this.modalHeight) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
158
|
-
: "300px",
|
|
159
|
-
} }, h("img", { src: gatIconCheckSvg, height: 52, width: 52 }), h("p", { class: "successMsg" }, this.successLoginLabel)));
|
|
189
|
+
return (h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
|
|
160
190
|
}
|
|
161
191
|
renderRetryButton(errorMessage) {
|
|
162
|
-
|
|
163
|
-
return (h("div", { class: "reload", style: {
|
|
164
|
-
width: (this.modalWidth - 50).toString() + "px",
|
|
165
|
-
height: this.modalWidth
|
|
166
|
-
? ((_a = (this.modalWidth - 50)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
|
|
167
|
-
: "",
|
|
168
|
-
} }, h("div", { id: "notify", onClick: () => this.display() }, h("img", { src: gatIconRefreshSvg, height: 24, width: 24 }), h("p", { class: "qrDescription" }, this.clickInsideBoxLabel, " "), errorMessage ? (h("p", { class: "qrDescription bold" }, this.refreshQrLabel)) : (h("p", { class: "qrDescription bold" }, this.scanQrLabel, "e")), errorMessage && (h("div", { class: "alert", style: {
|
|
169
|
-
width: (this.modalWidth - 50).toString() + "px",
|
|
170
|
-
} }, h("img", { src: gatIconAlertSvg, height: 24, width: 24 }), h("p", null, errorMessage)))), h("div", { id: "qrwait" }, this.renderRetryQR(this.waitingStartSessionLabel))));
|
|
192
|
+
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 === null || this === void 0 ? void 0 : this.display, renderRetryQR: this === null || this === void 0 ? void 0 : this.renderRetryQR }));
|
|
171
193
|
}
|
|
172
194
|
renderQR(value, useLogo) {
|
|
173
|
-
return (h(
|
|
195
|
+
return (h(QR, { value: value, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
|
|
174
196
|
}
|
|
175
197
|
renderRetryQR(value, useLogo) {
|
|
176
|
-
return (h(
|
|
198
|
+
return (h(QR, { value: value, 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 }));
|
|
177
199
|
}
|
|
178
200
|
render() {
|
|
179
201
|
var _a, _b;
|
|
@@ -185,8 +207,8 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
185
207
|
: "",
|
|
186
208
|
}, onClick: (event) => {
|
|
187
209
|
event.stopPropagation();
|
|
188
|
-
} }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, h("p", { class: "qrTitle", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand" }, this.byBrandLabel, " ", h("span", null, h("img", { src: logoGatacaSvg })))), this.result !== RESULT_STATUS.SUCCESS &&
|
|
189
|
-
!this.hideQrModalDescription && (h("p", { class: "qrDescription" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
|
|
210
|
+
} }, 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 &&
|
|
211
|
+
!this.hideQrModalDescription && (h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
|
|
190
212
|
width: this.modalWidth.toString() + "px",
|
|
191
213
|
height: this.modalWidth
|
|
192
214
|
? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const logoGatacaSvg = 'data:image/svg+xml;base64,
|
|
3
|
+
const logoGatacaSvg = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDc2IDcxIiB3aWR0aD0iNzEiIGhlaWdodD0iNjYiPgoJPHRpdGxlPlZlY3RvciAoMyktc3ZnPC90aXRsZT4KCTxzdHlsZT4KCQkuczAgeyBmaWxsOiAjNDc0NWI3IH0gCgk8L3N0eWxlPgoJPHBhdGggaWQ9IkxheWVyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsYXNzPSJzMCIgZD0ibTcyLjIgMzguNGMyLjIgMy4zIDMuNSA3LjIgMy41IDExLjQgMCAxMS4yLTguOCAyMC4yLTE5LjkgMjAuN3EtMC40IDAtMC44IDBjLTMgMC01LjgtMC42LTguNC0xLjdxLTIuMS0xLTMuOC0yLjMtMS4xLTAuOC0yLjEtMS43LTEuMy0xLjItMi4zLTIuNi0wLjUgMC42LTEgMS4yYy0zLjggNC40LTkuNCA3LjEtMTUuNyA3LjEtNi43IDAtMTIuNi0zLjItMTYuNC04LjEtMi43LTMuNS00LjMtNy44LTQuMy0xMi42IDAtMTAuNiA4LTE5LjMgMTguMy0yMC41LTEuMS0yLjUtMS43LTUuMi0xLjctOC4xIDAtMTEuNSA5LjMtMjAuNyAyMC44LTIwLjcgMTAuMiAwIDE4LjcgNy40IDIwLjQgMTcuMnEwLjMgMS43IDAuMyAzLjVjMCAyLjktMC42IDUuNi0xLjcgOC4xIDYuMiAwLjcgMTEuNiA0LjIgMTQuOCA5LjF6bS00NC43LTIzLjVjLTMuNCA2LTEuNCAxMy41IDQuNSAxN3EwLjEgMCAwLjIgMC4xYzIuNCAxLjMgNS4xIDEuOCA3LjcgMS41IDEuNS0wLjIgMy4xLTAuNyA0LjUtMS40cTAuMi0wLjIgMC40LTAuM2MxLjgtMSAzLjMtMi41IDQuNC00LjRxMC43LTEuMyAxLjEtMi42YzEuNy01LjQtMC42LTExLjUtNS43LTE0LjQtNi0zLjQtMTMuNi0xLjQtMTcuMSA0LjV6bTM4LjUgNDAuOGMyLTMuOSAxLjktOC40LTAuMi0xMi0xLTEuOC0yLjYtMy41LTQuNi00LjYtMy45LTIuMy04LjUtMi4yLTEyLjMtMC4ycS0wLjIgMC4yLTAuNCAwLjMtMC45IDAuNS0xLjcgMS4ybDEzLjYgNy44djAuMWwtNi43IDUuNi0xMS02LjQtMC40LTAuMi03LTQtNC4yLTIuNS0yLjYtMS40cS0wLjItMC4yLTAuNC0wLjMtMC4xIDAtMC4yLTAuMWMtNS45LTMuNC0xMy41LTEuMy0xNyA0LjYtMi41IDQuNC0yLjEgOS43IDAuNyAxMy41IDEgMS40IDIuMyAyLjYgMy45IDMuNSA0LjggMi43IDEwLjYgMiAxNC41LTEuNGwtMTIuNC03LjEgNi44LTUuNiA5LjYgNS41IDAuNCAwLjIgNyA0LjEgNS42IDMuMiAxLjggMWMzLjMgMS45IDcuMyAyLjMgMTAuOSAwLjkgMi42LTEuMSA0LjgtMyA2LjMtNS43eiIvPgo8L3N2Zz4=';
|
|
4
4
|
|
|
5
5
|
function getDefaultExportFromCjs (x) {
|
|
6
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode, g as gatIconCheckSvg, a as gatIconRefreshSvg, d as gatIconAlertSvg } from './gat-icon-
|
|
2
|
+
import { R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode, g as gatIconCheckSvg, a as gatIconRefreshSvg, d as gatIconAlertSvg } from './gat-icon-alert.js';
|
|
3
3
|
import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
4
4
|
|
|
5
5
|
const gatacaQrwsCss = "@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 .modal-window{position:relative;border-radius:6px;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;width:300px;min-height:408px;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 p{font-family:\"Work Sans\", \"Helvetica Neue\", sans-serif;font-weight:normal;font-size:12px;letter-spacing:1px;color:#1e1e20}.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-weight:400;font-size:14px;line-height:16.5px;padding-top:12px;padding-bottom:5px;color:#A1A1A1}.popUpContainer .modal-window .bold{font-weight:600}.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 .reload{height:252px;width:252px;border:1px dashed #A1A1A1;border-radius:12px;position:relative;margin:24px;display:flex;justify-content:center;align-items:center}.popUpContainer #qrwait{display:flex;justify-content:center}.popUpContainer #qrwait,.popUpContainer #notify{width:100%;height:100%;top:0;left:0;border-radius:20px}.popUpContainer #notify{z-index:10;background-color:gray;position:absolute;justify-self:center;justify-items:center;justify-content:center;align-items:center;align-content:center;align-self:center;display:flex;flex-direction:column;padding:24px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:rgba(255, 255, 255, 0.9);}.popUpContainer .notify-text{font-family:\"Work Sans\";font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;font-feature-settings:\"salt\" on;color:#8B8B8B;flex:none;order:1;align-self:stretch;flex-grow:0}.popUpContainer .alert{display:flex;flex-direction:row;align-items:center;justify-content:start;width:252px;position:absolute;bottom:0;background:#FFE5E5;border-radius:12px}.popUpContainer .alert img{margin:12px}.popUpContainer .alert p{font-weight:400;font-size:14px;line-height:16px;color:black}.popUpContainer .success{display:flex;height:300px;flex-direction:column;justify-content:center;align-items:center;padding:0px}.popUpContainer .success .successMsg{margin-top:20px;font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}";
|
|
@@ -18,6 +18,15 @@ export { GatacaSSIButtonWS as GatacaSsibuttonws } from '../types/components/gata
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const setAssetPath: (path: string) => void;
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
23
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
24
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
25
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
26
|
+
* will result in the same behavior.
|
|
27
|
+
*/
|
|
28
|
+
export declare const setNonce: (nonce: string) => void
|
|
29
|
+
|
|
21
30
|
export interface SetPlatformOptions {
|
|
22
31
|
raf?: (c: FrameRequestCallback) => number;
|
|
23
32
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
-
export { R as RESULT_STATUS, b as base64UrlEncode, c as checkMobile } from './gat-icon-
|
|
1
|
+
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
+
export { R as RESULT_STATUS, b as base64UrlEncode, c as checkMobile } from './gat-icon-alert.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,9 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const logoGatacaSvg = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDc2IDcxIiB3aWR0aD0iNzEiIGhlaWdodD0iNjYiPgoJPHRpdGxlPlZlY3RvciAoMyktc3ZnPC90aXRsZT4KCTxzdHlsZT4KCQkuczAgeyBmaWxsOiAj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iNDRDJCMzEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMiA5VjEzIiBzdHJva2U9IiNDRDJCMzEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMiAxN0gxMi4wMSIgc3Ryb2tlPSIjQ0QyQjMxIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K';
|
|
8
8
|
|
|
9
9
|
export { gatIconRefreshSvg as a, gatIconAlertSvg as b, gatIconCheckSvg as g, logoGatacaSvg as l };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-570c9813.js';
|
|
2
2
|
|
|
3
3
|
const gatacaAutoqrCss = "@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}";
|
|
4
4
|
|