@gataca/qr 2.0.1 → 2.0.3
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/gataca-autoqr_6.cjs.entry.js +32 -18
- package/dist/cjs/gatacaqr.cjs.js +2 -2
- package/dist/cjs/{index-0b7a1532.js → index-4be0cdca.js} +25 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/images/logo_gataca.svg +1 -1
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -2
- package/dist/collection/components/gataca-qr/gataca-qr.css +19 -9
- package/dist/collection/components/gataca-qr/gataca-qr.js +281 -10
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +2 -2
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +2 -2
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +285 -1
- package/dist/components/gataca-autoqr.js +0 -2
- package/dist/components/gataca-qr2.js +27 -11
- package/dist/components/gataca-qrdisplay2.js +2 -2
- package/dist/components/gataca-qrws2.js +1 -1
- package/dist/components/gataca-ssibutton2.js +31 -1
- package/dist/esm/gataca-autoqr_6.entry.js +32 -18
- package/dist/esm/gatacaqr.js +2 -2
- package/dist/esm/{index-19eef502.js → index-80311733.js} +25 -0
- package/dist/esm/loader.js +2 -2
- package/dist/gatacaqr/gatacaqr.esm.js +1 -1
- package/dist/gatacaqr/p-a5648391.js +2 -0
- package/dist/gatacaqr/p-b37057bb.entry.js +1 -0
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +75 -0
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
- package/dist/types/components.d.ts +240 -0
- package/package.json +1 -1
- package/dist/gatacaqr/p-4807b345.entry.js +0 -1
- package/dist/gatacaqr/p-a6f85341.js +0 -2
|
@@ -15,11 +15,26 @@ export class GatacaSSIButton {
|
|
|
15
15
|
this.autorefresh = false;
|
|
16
16
|
this.v2 = false;
|
|
17
17
|
this.qrModalTitle = "Quick Access";
|
|
18
|
+
this.modalTitleColor = "#4745B7";
|
|
18
19
|
this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet";
|
|
19
20
|
this.hideBrandTitle = false;
|
|
20
21
|
this.dynamicLink = true;
|
|
22
|
+
this.logoSize = 0;
|
|
23
|
+
this.logoSrc = undefined;
|
|
24
|
+
this.qrCodeExpiredLabel = "QR Code expired";
|
|
25
|
+
this.credentialsNotValidatedLabel = "User credentials not validated";
|
|
26
|
+
this.clickInsideBoxLabel = "Click inside the box to";
|
|
27
|
+
this.refreshQrLabel = "Refresh QR Code";
|
|
28
|
+
this.scanQrLabel = "Scan QR Code";
|
|
29
|
+
this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time";
|
|
30
|
+
this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated";
|
|
31
|
+
this.failedLoginErrorLabel = "No successful login";
|
|
32
|
+
this.successLoginLabel = "Successful Connection!";
|
|
33
|
+
this.byBrandLabel = "by Gataca";
|
|
34
|
+
this.waitingStartSessionLabel = "waiting to start a session";
|
|
35
|
+
this.hideQrModalDescription = false;
|
|
21
36
|
this.open = false;
|
|
22
|
-
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: true, autorefresh: this.autorefresh, v2: this.v2, qrModalTitle: this.qrModalTitle, qrModalDescription: this.qrModalDescription, hideBrandTitle: this.hideBrandTitle, dynamicLink: this.dynamicLink }));
|
|
37
|
+
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: true, autorefresh: this.autorefresh, v2: this.v2, 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 }));
|
|
23
38
|
}
|
|
24
39
|
/**
|
|
25
40
|
* Retrieve manually the session data on a successful login
|
|
@@ -278,6 +293,24 @@ export class GatacaSSIButton {
|
|
|
278
293
|
"reflect": false,
|
|
279
294
|
"defaultValue": "\"Quick Access\""
|
|
280
295
|
},
|
|
296
|
+
"modalTitleColor": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "string",
|
|
301
|
+
"resolved": "string",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": true,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "_[Optional]_\nString to set Modal title color"
|
|
309
|
+
},
|
|
310
|
+
"attribute": "modal-title-color",
|
|
311
|
+
"reflect": false,
|
|
312
|
+
"defaultValue": "\"#4745B7\""
|
|
313
|
+
},
|
|
281
314
|
"qrModalDescription": {
|
|
282
315
|
"type": "string",
|
|
283
316
|
"mutable": false,
|
|
@@ -331,6 +364,257 @@ export class GatacaSSIButton {
|
|
|
331
364
|
"attribute": "dynamic-link",
|
|
332
365
|
"reflect": false,
|
|
333
366
|
"defaultValue": "true"
|
|
367
|
+
},
|
|
368
|
+
"logoSize": {
|
|
369
|
+
"type": "number",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "number",
|
|
373
|
+
"resolved": "number",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": true,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
|
|
381
|
+
},
|
|
382
|
+
"attribute": "logo-size",
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"defaultValue": "0"
|
|
385
|
+
},
|
|
386
|
+
"logoSrc": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": true,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
|
|
399
|
+
},
|
|
400
|
+
"attribute": "logo-src",
|
|
401
|
+
"reflect": false
|
|
402
|
+
},
|
|
403
|
+
"qrCodeExpiredLabel": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"mutable": false,
|
|
406
|
+
"complexType": {
|
|
407
|
+
"original": "string",
|
|
408
|
+
"resolved": "string",
|
|
409
|
+
"references": {}
|
|
410
|
+
},
|
|
411
|
+
"required": false,
|
|
412
|
+
"optional": true,
|
|
413
|
+
"docs": {
|
|
414
|
+
"tags": [],
|
|
415
|
+
"text": "_[Optional]_\nString to show when qr code expired"
|
|
416
|
+
},
|
|
417
|
+
"attribute": "qr-code-expired-label",
|
|
418
|
+
"reflect": false,
|
|
419
|
+
"defaultValue": "\"QR Code expired\""
|
|
420
|
+
},
|
|
421
|
+
"credentialsNotValidatedLabel": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"mutable": false,
|
|
424
|
+
"complexType": {
|
|
425
|
+
"original": "string",
|
|
426
|
+
"resolved": "string",
|
|
427
|
+
"references": {}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": true,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "_[Optional]_\nString to show when credentials not validatedd"
|
|
434
|
+
},
|
|
435
|
+
"attribute": "credentials-not-validated-label",
|
|
436
|
+
"reflect": false,
|
|
437
|
+
"defaultValue": "\"User credentials not validated\""
|
|
438
|
+
},
|
|
439
|
+
"clickInsideBoxLabel": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "string",
|
|
444
|
+
"resolved": "string",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "_[Optional]_\nString to show \"click inside\" label"
|
|
452
|
+
},
|
|
453
|
+
"attribute": "click-inside-box-label",
|
|
454
|
+
"reflect": false,
|
|
455
|
+
"defaultValue": "\"Click inside the box to\""
|
|
456
|
+
},
|
|
457
|
+
"refreshQrLabel": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"mutable": false,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "string",
|
|
462
|
+
"resolved": "string",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": true,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "_[Optional]_\nString to show \"refresh QR\" label"
|
|
470
|
+
},
|
|
471
|
+
"attribute": "refresh-qr-label",
|
|
472
|
+
"reflect": false,
|
|
473
|
+
"defaultValue": "\"Refresh QR Code\""
|
|
474
|
+
},
|
|
475
|
+
"scanQrLabel": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"mutable": false,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "string",
|
|
480
|
+
"resolved": "string",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": true,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": "_[Optional]_\nString to show \"scan QR\" label"
|
|
488
|
+
},
|
|
489
|
+
"attribute": "scan-qr-label",
|
|
490
|
+
"reflect": false,
|
|
491
|
+
"defaultValue": "\"Scan QR Code\""
|
|
492
|
+
},
|
|
493
|
+
"userNotScanInTimeErrorLabel": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"mutable": false,
|
|
496
|
+
"complexType": {
|
|
497
|
+
"original": "string",
|
|
498
|
+
"resolved": "string",
|
|
499
|
+
"references": {}
|
|
500
|
+
},
|
|
501
|
+
"required": false,
|
|
502
|
+
"optional": true,
|
|
503
|
+
"docs": {
|
|
504
|
+
"tags": [],
|
|
505
|
+
"text": "_[Optional]_\nString to show \"user not scan in time\" error"
|
|
506
|
+
},
|
|
507
|
+
"attribute": "user-not-scan-in-time-error-label",
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"defaultValue": "\"User did not scan the QR in the allowed time\""
|
|
510
|
+
},
|
|
511
|
+
"credsNotValidatedErrorLabel": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"mutable": false,
|
|
514
|
+
"complexType": {
|
|
515
|
+
"original": "string",
|
|
516
|
+
"resolved": "string",
|
|
517
|
+
"references": {}
|
|
518
|
+
},
|
|
519
|
+
"required": false,
|
|
520
|
+
"optional": true,
|
|
521
|
+
"docs": {
|
|
522
|
+
"tags": [],
|
|
523
|
+
"text": "_[Optional]_\nString to show \"provided credentials not validates\" error"
|
|
524
|
+
},
|
|
525
|
+
"attribute": "creds-not-validated-error-label",
|
|
526
|
+
"reflect": false,
|
|
527
|
+
"defaultValue": "\"Provided user credentials couldn't be validated\""
|
|
528
|
+
},
|
|
529
|
+
"failedLoginErrorLabel": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"mutable": false,
|
|
532
|
+
"complexType": {
|
|
533
|
+
"original": "string",
|
|
534
|
+
"resolved": "string",
|
|
535
|
+
"references": {}
|
|
536
|
+
},
|
|
537
|
+
"required": false,
|
|
538
|
+
"optional": true,
|
|
539
|
+
"docs": {
|
|
540
|
+
"tags": [],
|
|
541
|
+
"text": "_[Optional]_\nString to show \"failed login\" error"
|
|
542
|
+
},
|
|
543
|
+
"attribute": "failed-login-error-label",
|
|
544
|
+
"reflect": false,
|
|
545
|
+
"defaultValue": "\"No successful login\""
|
|
546
|
+
},
|
|
547
|
+
"successLoginLabel": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"mutable": false,
|
|
550
|
+
"complexType": {
|
|
551
|
+
"original": "string",
|
|
552
|
+
"resolved": "string",
|
|
553
|
+
"references": {}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": true,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [],
|
|
559
|
+
"text": "_[Optional]_\nString to show \"successful login\" label"
|
|
560
|
+
},
|
|
561
|
+
"attribute": "success-login-label",
|
|
562
|
+
"reflect": false,
|
|
563
|
+
"defaultValue": "\"Successful Connection!\""
|
|
564
|
+
},
|
|
565
|
+
"byBrandLabel": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"mutable": false,
|
|
568
|
+
"complexType": {
|
|
569
|
+
"original": "string",
|
|
570
|
+
"resolved": "string",
|
|
571
|
+
"references": {}
|
|
572
|
+
},
|
|
573
|
+
"required": false,
|
|
574
|
+
"optional": true,
|
|
575
|
+
"docs": {
|
|
576
|
+
"tags": [],
|
|
577
|
+
"text": "_[Optional]_\nString to show \"by brand\" label"
|
|
578
|
+
},
|
|
579
|
+
"attribute": "by-brand-label",
|
|
580
|
+
"reflect": false,
|
|
581
|
+
"defaultValue": "\"by Gataca\""
|
|
582
|
+
},
|
|
583
|
+
"waitingStartSessionLabel": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"mutable": false,
|
|
586
|
+
"complexType": {
|
|
587
|
+
"original": "string",
|
|
588
|
+
"resolved": "string",
|
|
589
|
+
"references": {}
|
|
590
|
+
},
|
|
591
|
+
"required": false,
|
|
592
|
+
"optional": true,
|
|
593
|
+
"docs": {
|
|
594
|
+
"tags": [],
|
|
595
|
+
"text": "_[Optional]_\nString to show \"waiting start session\" label"
|
|
596
|
+
},
|
|
597
|
+
"attribute": "waiting-start-session-label",
|
|
598
|
+
"reflect": false,
|
|
599
|
+
"defaultValue": "\"waiting to start a session\""
|
|
600
|
+
},
|
|
601
|
+
"hideQrModalDescription": {
|
|
602
|
+
"type": "boolean",
|
|
603
|
+
"mutable": false,
|
|
604
|
+
"complexType": {
|
|
605
|
+
"original": "boolean",
|
|
606
|
+
"resolved": "boolean",
|
|
607
|
+
"references": {}
|
|
608
|
+
},
|
|
609
|
+
"required": false,
|
|
610
|
+
"optional": true,
|
|
611
|
+
"docs": {
|
|
612
|
+
"tags": [],
|
|
613
|
+
"text": "_[Optional]_\nBoolean to show or not show the QR Modal description"
|
|
614
|
+
},
|
|
615
|
+
"attribute": "hide-qr-modal-description",
|
|
616
|
+
"reflect": false,
|
|
617
|
+
"defaultValue": "false"
|
|
334
618
|
}
|
|
335
619
|
};
|
|
336
620
|
}
|
|
@@ -49,11 +49,9 @@ const GatacaAutoQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
49
49
|
},
|
|
50
50
|
})
|
|
51
51
|
.then((response) => {
|
|
52
|
-
console.log("Got RESPONSE", response);
|
|
53
52
|
response
|
|
54
53
|
.json()
|
|
55
54
|
.then((data) => {
|
|
56
|
-
console.log("Got DATA", data);
|
|
57
55
|
data = fixFunctions(data);
|
|
58
56
|
this.config = data;
|
|
59
57
|
this.loading = false;
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
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';
|
|
3
3
|
import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
4
4
|
|
|
5
|
-
const gatacaQrCss = "@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;padding:1px;background-color:white;min-height:
|
|
5
|
+
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=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;padding:1px;background-color:white;min-height:350px;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:\"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;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{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;}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}";
|
|
6
6
|
|
|
7
7
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
8
8
|
//Default values
|
|
@@ -14,7 +14,7 @@ const FUNCTION_ROLES = {
|
|
|
14
14
|
certify: "credential",
|
|
15
15
|
};
|
|
16
16
|
const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
17
|
-
constructor() { super(); this.__registerHost(); this.__attachShadow(); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7); this.checkStatus = undefined; this.createSession = undefined; this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideBrandTitle = false; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.pollingFrequency = DEFAULT_POLLING_FREQ; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
|
|
17
|
+
constructor() { super(); this.__registerHost(); this.__attachShadow(); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7); this.checkStatus = undefined; this.createSession = undefined; this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.modalTitleColor = "#4745B7"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = logoGatacaSvg; 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.hideQrModalDescription = false; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.pollingFrequency = DEFAULT_POLLING_FREQ; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
|
|
18
18
|
disconnectedCallback() {
|
|
19
19
|
this.stop();
|
|
20
20
|
}
|
|
@@ -45,8 +45,8 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
45
45
|
else {
|
|
46
46
|
if (err !== RESULT_STATUS.NOT_STARTED) {
|
|
47
47
|
let error = expired
|
|
48
|
-
? new Error(
|
|
49
|
-
: new Error(
|
|
48
|
+
? new Error(this.userNotScanInTimeErrorLabel)
|
|
49
|
+
: new Error(this.credsNotValidatedErrorLabel);
|
|
50
50
|
this.result = err;
|
|
51
51
|
this.gatacaLoginFailed.emit(error);
|
|
52
52
|
this.errorCallback(error);
|
|
@@ -76,7 +76,7 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
76
76
|
async getSessionData() {
|
|
77
77
|
return this.sessionData
|
|
78
78
|
? Promise.resolve(this.sessionData)
|
|
79
|
-
: Promise.reject(new Error(
|
|
79
|
+
: Promise.reject(new Error(this.failedLoginErrorLabel));
|
|
80
80
|
}
|
|
81
81
|
async getSessionId() {
|
|
82
82
|
if (this.sessionId) {
|
|
@@ -143,26 +143,27 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
143
143
|
case RESULT_STATUS.ONGOING:
|
|
144
144
|
return this.renderQR(this.getLink(), 300, true);
|
|
145
145
|
case RESULT_STATUS.EXPIRED:
|
|
146
|
-
return this.renderRetryButton(
|
|
146
|
+
return this.renderRetryButton(this.qrCodeExpiredLabel);
|
|
147
147
|
case RESULT_STATUS.FAILED:
|
|
148
|
-
return this.renderRetryButton(
|
|
148
|
+
return this.renderRetryButton(this.credentialsNotValidatedLabel);
|
|
149
149
|
case RESULT_STATUS.SUCCESS:
|
|
150
150
|
return this.renderSuccess();
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
renderSuccess() {
|
|
154
|
-
return (h("div", { class: "success" }, h("img", { src: gatIconCheckSvg, height: 52, width: 52 }), h("p", { class: "successMsg" },
|
|
154
|
+
return (h("div", { class: "success" }, h("img", { src: gatIconCheckSvg, height: 52, width: 52 }), h("p", { class: "successMsg" }, this.successLoginLabel)));
|
|
155
155
|
}
|
|
156
156
|
renderRetryButton(errorMessage) {
|
|
157
|
-
return (h("div", { class: "reload" }, h("div", { id: "notify", onClick: () => this.display() }, h("img", { src: gatIconRefreshSvg, height: 24, width: 24 }), h("p", { class: "qrDescription" }, "
|
|
157
|
+
return (h("div", { class: "reload" }, 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" }, h("img", { src: gatIconAlertSvg, height: 24, width: 24 }), h("p", null, errorMessage)))), h("div", { id: "qrwait" }, this.renderQR(this.waitingStartSessionLabel, 250))));
|
|
158
158
|
}
|
|
159
159
|
renderQR(value, size, useLogo) {
|
|
160
|
-
return (h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, "logo-size": useLogo ? 0.33 : 0 }));
|
|
160
|
+
return (h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": this.logoSrc }));
|
|
161
161
|
}
|
|
162
162
|
render() {
|
|
163
163
|
return (h("div", { class: "popUpContainer" }, h("div", { class: "modal-window is-visible", onClick: (event) => {
|
|
164
164
|
event.stopPropagation();
|
|
165
|
-
} }, h("div", { class: "modal-window__content" }, h("div", { class: "qrTitleContainer" }, h("p", { class: "qrTitle" }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand" },
|
|
165
|
+
} }, h("div", { class: "modal-window__content" }, h("div", { class: "qrTitleContainer" }, 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 &&
|
|
166
|
+
!this.hideQrModalDescription && (h("p", { class: "qrDescription" }, this.qrModalDescription))), h("div", { class: "qrSection" }, this.renderQRSection())))));
|
|
166
167
|
}
|
|
167
168
|
static get style() { return gatacaQrCss; }
|
|
168
169
|
}, [1, "gataca-qr", {
|
|
@@ -176,8 +177,23 @@ const GatacaQR = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
176
177
|
"autorefresh": [4],
|
|
177
178
|
"v2": [4, "v-2"],
|
|
178
179
|
"qrModalTitle": [1, "qr-modal-title"],
|
|
180
|
+
"modalTitleColor": [1, "modal-title-color"],
|
|
179
181
|
"qrModalDescription": [1, "qr-modal-description"],
|
|
180
182
|
"hideBrandTitle": [4, "hide-brand-title"],
|
|
183
|
+
"logoSize": [2, "logo-size"],
|
|
184
|
+
"logoSrc": [1, "logo-src"],
|
|
185
|
+
"qrCodeExpiredLabel": [1, "qr-code-expired-label"],
|
|
186
|
+
"credentialsNotValidatedLabel": [1, "credentials-not-validated-label"],
|
|
187
|
+
"clickInsideBoxLabel": [1, "click-inside-box-label"],
|
|
188
|
+
"refreshQrLabel": [1, "refresh-qr-label"],
|
|
189
|
+
"scanQrLabel": [1, "scan-qr-label"],
|
|
190
|
+
"userNotScanInTimeErrorLabel": [1, "user-not-scan-in-time-error-label"],
|
|
191
|
+
"credsNotValidatedErrorLabel": [1, "creds-not-validated-error-label"],
|
|
192
|
+
"failedLoginErrorLabel": [1, "failed-login-error-label"],
|
|
193
|
+
"successLoginLabel": [1, "success-login-label"],
|
|
194
|
+
"byBrandLabel": [1, "by-brand-label"],
|
|
195
|
+
"waitingStartSessionLabel": [1, "waiting-start-session-label"],
|
|
196
|
+
"hideQrModalDescription": [4, "hide-qr-modal-description"],
|
|
181
197
|
"sessionTimeout": [2, "session-timeout"],
|
|
182
198
|
"pollingFrequency": [2, "polling-frequency"],
|
|
183
199
|
"dynamicLink": [4, "dynamic-link"],
|
|
@@ -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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjUuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA2MzUuMyA1OTcuNDciIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDYzNS4zIDU5Ny40NzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM0NzQ1Qjc7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02MDUuNzksMzIzLjQxYy0yNy45Ny00MS45Ny03My40NC03MS4yOC0xMjUuOTktNzcuNDljOS4xNS0yMS4zMywxNC4yMy00NC44MywxNC4yMy02OS41MQoJCWMwLTEwLjE3LTAuODctMjAuMTQtMi41My0yOS44NUM0NzcuMzMsNjMuMzUsNDA0Ljg5LDAsMzE3LjY0LDBjLTk3LjQyLDAtMTc2LjM4LDc4Ljk3LTE3Ni4zOCwxNzYuMzkKCQljMCwyNC42OSw1LjA4LDQ4LjE5LDE0LjI0LDY5LjUyQzY3LjkzLDI1Ni4yNCwwLDMzMC43MSwwLDQyMS4wN2MwLDQwLjM5LDEzLjU5LDc3LjYxLDM2LjQzLDEwNy4zNQoJCWMzMi4yNSw0MS45OCw4Mi45NCw2OS4wNSwxMzkuOTYsNjkuMDZjNTIuOTYsMCwxMDAuNDctMjMuMzQsMTMyLjgtNjAuM2MyLjk1LTMuMzcsNS43OC02Ljg2LDguNDctMTAuNDUKCQljNS45MSw3Ljg4LDEyLjQ4LDE1LjIzLDE5LjYsMjIuMDJjNS42LDUuMzQsMTEuNTQsMTAuMzQsMTcuODEsMTQuOTFjMTAuMTIsNy4zOCwyMS4wNSwxMy43MSwzMi42MywxOC44NAoJCWMyMS43OCw5LjYzLDQ1Ljg4LDE0Ljk5LDcxLjIyLDE0Ljk5YzIuNTEsMCw1LTAuMDcsNy40OC0wLjE3YzkzLjk1LTMuOTIsMTY4LjktODEuMzEsMTY4LjktMTc2LjIyCgkJQzYzNS4zLDM4NC45NSw2MjQuNDMsMzUxLjM3LDYwNS43OSwzMjMuNDF6IE0yMjUuNzQsMTIzLjMzYzI5LjMxLTUwLjc2LDk0LjIxLTY4LjE2LDE0NC45Ny0zOC44NQoJCWM0My41OCwyNS4xNiw2Mi41Niw3Ni41Nyw0OC41MSwxMjIuNzNjLTIuMzEsNy42MS01LjUyLDE1LjA3LTkuNjcsMjIuMjVjLTkuMjcsMTYuMDYtMjIuMTEsMjguNzgtMzYuOTQsMzcuNzQKCQljLTEuMjIsMC43NC0yLjQ2LDEuNDYtMy43MSwyLjE1Yy0xMS45NCw2LjU3LTI1LjA0LDEwLjc3LTM4LjUzLDEyLjQxYy0yMS44NCwyLjY2LTQ0LjY4LTEuNDItNjUuMjUtMTMuMTQKCQljLTAuNDctMC4yNy0wLjkzLTAuNTQtMS40LTAuODFDMjEzLjY0LDIzOC4yNywxOTYuNiwxNzMuODEsMjI1Ljc0LDEyMy4zM3ogTTU1Mi40OSw0NzEuMTVjLTEyLjIzLDIyLjgxLTMxLjQ3LDM5LjI2LTUzLjU1LDQ4LjIzCgkJYy0zMC4xNywxMi4yNi02NC40MSw5LjIzLTkyLjYyLTcuMDRsLTE1LjIxLTguNzhsLTQ3LjE3LTI3LjIybC02MC4yMi0zNC43NmwtMi44Ny0xLjY2bC04Mi4zMi00Ny41MWwtNTcuMTIsNDcuOTNsMTA0Ljk1LDYwLjU4CgkJYy0zMy4yNCwyOS4xNS04Mi42MiwzNS40Mi0xMjMuMDQsMTIuMDljLTEzLjQyLTcuNzUtMjQuNS0xNy45OC0zMy4wMS0yOS43OWMtMjMuNjgtMzIuODUtMjcuMzktNzcuODUtNS44My0xMTUuMgoJCWMyOS4yLTUwLjU4LDkzLjc0LTY4LjAzLDE0NC40Mi0zOS4xNmMwLjQ3LDAuMjcsMC45MywwLjU0LDEuNCwwLjgxYzEuMjMsMC43LDIuNDcsMS4zOSwzLjcyLDIuMDdsMjEuODEsMTIuNTlsMzUuOCwyMC42NwoJCWw1OS44MiwzNC41M2wzLjE2LDEuODNsOTMuNzksNTQuMTNsNTcuMDQtNDcuODZsMC4wNS0wLjA5bC0xMTUuODYtNjYuODdjNC41LTMuODgsOS4yOS03LjM1LDE0LjMxLTEwLjM4CgkJYzEuMjMtMC43NCwyLjQ2LTEuNDYsMy43Mi0yLjE1YzMxLjU2LTE3LjM3LDcxLjE4LTE4LjI0LDEwNC42MSwxLjIxYzE2Ljg5LDkuODIsMzAuMDksMjMuNzMsMzkuMDYsMzkuNzgKCQlDNTY4LjQ1LDM5OS43Niw1NzAuMTIsNDM4LjI2LDU1Mi40OSw0NzEuMTV6Ii8+CjwvZz4KPC9zdmc+Cg==';
|
|
4
4
|
|
|
5
5
|
function getDefaultExportFromCjs (x) {
|
|
6
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -35,7 +35,7 @@ const GatacaQRDisplay = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
35
35
|
this.size = 256;
|
|
36
36
|
this.logoSize = 0;
|
|
37
37
|
this.logoSrc = undefined;
|
|
38
|
-
this.qrColor = "#
|
|
38
|
+
this.qrColor = "#1E1E20";
|
|
39
39
|
this.rounded = true;
|
|
40
40
|
}
|
|
41
41
|
componentDidLoad() {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
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';
|
|
3
3
|
import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
|
|
4
4
|
|
|
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:#
|
|
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}";
|
|
6
6
|
|
|
7
7
|
const DEEP_LINK_PREFIX = "https://gataca.page.link/?apn=com.gatacaapp&ibi=com.gataca.wallet&link=";
|
|
8
8
|
const DEFAULT_SESSION_TIMEOUT = 300;
|
|
@@ -24,11 +24,26 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
24
24
|
this.autorefresh = false;
|
|
25
25
|
this.v2 = false;
|
|
26
26
|
this.qrModalTitle = "Quick Access";
|
|
27
|
+
this.modalTitleColor = "#4745B7";
|
|
27
28
|
this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet";
|
|
28
29
|
this.hideBrandTitle = false;
|
|
29
30
|
this.dynamicLink = true;
|
|
31
|
+
this.logoSize = 0;
|
|
32
|
+
this.logoSrc = undefined;
|
|
33
|
+
this.qrCodeExpiredLabel = "QR Code expired";
|
|
34
|
+
this.credentialsNotValidatedLabel = "User credentials not validated";
|
|
35
|
+
this.clickInsideBoxLabel = "Click inside the box to";
|
|
36
|
+
this.refreshQrLabel = "Refresh QR Code";
|
|
37
|
+
this.scanQrLabel = "Scan QR Code";
|
|
38
|
+
this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time";
|
|
39
|
+
this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated";
|
|
40
|
+
this.failedLoginErrorLabel = "No successful login";
|
|
41
|
+
this.successLoginLabel = "Successful Connection!";
|
|
42
|
+
this.byBrandLabel = "by Gataca";
|
|
43
|
+
this.waitingStartSessionLabel = "waiting to start a session";
|
|
44
|
+
this.hideQrModalDescription = false;
|
|
30
45
|
this.open = false;
|
|
31
|
-
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: true, autorefresh: this.autorefresh, v2: this.v2, qrModalTitle: this.qrModalTitle, qrModalDescription: this.qrModalDescription, hideBrandTitle: this.hideBrandTitle, dynamicLink: this.dynamicLink }));
|
|
46
|
+
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus, createSession: this.createSession, successCallback: this.successCallback, errorCallback: this.errorCallback, qrRole: this.qrRole, callbackServer: this.callbackServer, sessionTimeout: this.sessionTimeout, pollingFrequency: this.pollingFrequency, autostart: true, autorefresh: this.autorefresh, v2: this.v2, 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 }));
|
|
32
47
|
}
|
|
33
48
|
/**
|
|
34
49
|
* Retrieve manually the session data on a successful login
|
|
@@ -67,9 +82,24 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
67
82
|
"autorefresh": [4],
|
|
68
83
|
"v2": [4, "v-2"],
|
|
69
84
|
"qrModalTitle": [1, "qr-modal-title"],
|
|
85
|
+
"modalTitleColor": [1, "modal-title-color"],
|
|
70
86
|
"qrModalDescription": [1, "qr-modal-description"],
|
|
71
87
|
"hideBrandTitle": [4, "hide-brand-title"],
|
|
72
88
|
"dynamicLink": [4, "dynamic-link"],
|
|
89
|
+
"logoSize": [2, "logo-size"],
|
|
90
|
+
"logoSrc": [1, "logo-src"],
|
|
91
|
+
"qrCodeExpiredLabel": [1, "qr-code-expired-label"],
|
|
92
|
+
"credentialsNotValidatedLabel": [1, "credentials-not-validated-label"],
|
|
93
|
+
"clickInsideBoxLabel": [1, "click-inside-box-label"],
|
|
94
|
+
"refreshQrLabel": [1, "refresh-qr-label"],
|
|
95
|
+
"scanQrLabel": [1, "scan-qr-label"],
|
|
96
|
+
"userNotScanInTimeErrorLabel": [1, "user-not-scan-in-time-error-label"],
|
|
97
|
+
"credsNotValidatedErrorLabel": [1, "creds-not-validated-error-label"],
|
|
98
|
+
"failedLoginErrorLabel": [1, "failed-login-error-label"],
|
|
99
|
+
"successLoginLabel": [1, "success-login-label"],
|
|
100
|
+
"byBrandLabel": [1, "by-brand-label"],
|
|
101
|
+
"waitingStartSessionLabel": [1, "waiting-start-session-label"],
|
|
102
|
+
"hideQrModalDescription": [4, "hide-qr-modal-description"],
|
|
73
103
|
"open": [32],
|
|
74
104
|
"getSessionData": [64]
|
|
75
105
|
}]);
|