@gataca/qr 3.0.9 → 3.0.11

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.
Files changed (67) hide show
  1. package/dist/cjs/gataca-autoqr.cjs.entry.js +9 -9
  2. package/dist/cjs/gataca-qr_2.cjs.entry.js +37 -47
  3. package/dist/cjs/gataca-qrws.cjs.entry.js +36 -43
  4. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +34 -38
  5. package/dist/cjs/index.cjs.js +1 -1
  6. package/dist/cjs/{utils-ef28b844.js → utils-b4e62bc0.js} +1 -1
  7. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +13 -13
  8. package/dist/collection/components/gataca-qr/components/qr/QR.js +2 -2
  9. package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +4 -4
  10. package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +1 -1
  11. package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +8 -8
  12. package/dist/collection/components/gataca-qr/components/success/Success.js +4 -4
  13. package/dist/collection/components/gataca-qr/gataca-qr.js +46 -56
  14. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +12 -12
  15. package/dist/collection/components/gataca-qrws/components/qr/QR.js +2 -2
  16. package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +4 -4
  17. package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +1 -1
  18. package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +8 -8
  19. package/dist/collection/components/gataca-qrws/components/success/Success.js +4 -4
  20. package/dist/collection/components/gataca-qrws/gataca-qrws.js +50 -57
  21. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +62 -52
  22. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +12 -12
  23. package/dist/collection/index.js +2 -2
  24. package/dist/collection/utils/index.js +1 -1
  25. package/dist/collection/utils/utils.js +1 -1
  26. package/dist/components/gat-icon-alert.js +1 -1
  27. package/dist/components/gataca-autoqr.js +9 -9
  28. package/dist/components/gataca-qr2.js +29 -39
  29. package/dist/components/gataca-qrdisplay2.js +7 -7
  30. package/dist/components/gataca-qrws2.js +35 -42
  31. package/dist/components/gataca-ssibutton2.js +27 -31
  32. package/dist/components/gataca-ssibuttonws2.js +6 -6
  33. package/dist/esm/gataca-autoqr.entry.js +9 -9
  34. package/dist/esm/gataca-qr_2.entry.js +37 -47
  35. package/dist/esm/gataca-qrws.entry.js +36 -43
  36. package/dist/esm/gataca-ssibutton_2.entry.js +34 -38
  37. package/dist/esm/index.js +1 -1
  38. package/dist/esm/{utils-63e7a33b.js → utils-21ffcc1e.js} +1 -1
  39. package/dist/gatacaqr/gatacaqr.esm.js +1 -1
  40. package/dist/gatacaqr/index.esm.js +1 -1
  41. package/dist/gatacaqr/p-2adc0bcc.entry.js +1 -0
  42. package/dist/gatacaqr/p-2ddbc2fc.entry.js +1 -0
  43. package/dist/gatacaqr/p-d2dd7c85.entry.js +1 -0
  44. package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +7 -7
  45. package/dist/types/components/gataca-qr/components/qr/QR.d.ts +2 -2
  46. package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +1 -1
  47. package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +1 -1
  48. package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +1 -1
  49. package/dist/types/components/gataca-qr/components/success/Success.d.ts +1 -1
  50. package/dist/types/components/gataca-qr/gataca-qr.d.ts +5 -5
  51. package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +1 -1
  52. package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -2
  53. package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +1 -1
  54. package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +1 -1
  55. package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +1 -1
  56. package/dist/types/components/gataca-qrws/components/success/Success.d.ts +1 -1
  57. package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +5 -5
  58. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +9 -5
  59. package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +3 -3
  60. package/dist/types/components.d.ts +28 -36
  61. package/dist/types/index.d.ts +2 -2
  62. package/dist/types/utils/index.d.ts +1 -1
  63. package/package.json +30 -7
  64. package/dist/gatacaqr/p-92a2e6f0.entry.js +0 -1
  65. package/dist/gatacaqr/p-9af5d2fe.entry.js +0 -1
  66. package/dist/gatacaqr/p-dc592fa5.entry.js +0 -1
  67. /package/dist/gatacaqr/{p-2cd7b062.js → p-bce7e590.js} +0 -0
@@ -6,7 +6,7 @@ const index = require('./index-93d47a75.js');
6
6
 
7
7
  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}";
8
8
 
9
- const DEFAULT_REPOSITORY = "https://studio.gataca.io/api/v1/qrconfigs";
9
+ const DEFAULT_REPOSITORY = 'https://studio.gataca.io/api/v1/qrconfigs';
10
10
  const fixFunctions = (data) => {
11
11
  var _a, _b, _c, _d, _e, _f;
12
12
  data.errorCallback = deserializeFunction((_a = data.errorCallback) === null || _a === void 0 ? void 0 : _a.toString());
@@ -19,7 +19,7 @@ const fixFunctions = (data) => {
19
19
  };
20
20
  const deserializeFunction = (data) => {
21
21
  if (data) {
22
- return new Function("return " + data)();
22
+ return new Function('return ' + data)();
23
23
  }
24
24
  return undefined;
25
25
  };
@@ -29,7 +29,7 @@ const GatacaAutoQR = class {
29
29
  this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7);
30
30
  this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7);
31
31
  this.configId = undefined;
32
- this.qrType = "svg";
32
+ this.qrType = 'svg';
33
33
  this.configRepository = DEFAULT_REPOSITORY;
34
34
  this.successCallback = undefined;
35
35
  this.errorCallback = undefined;
@@ -40,11 +40,11 @@ const GatacaAutoQR = class {
40
40
  this.config = undefined;
41
41
  this.loading = undefined;
42
42
  this.loading = true;
43
- fetch(this.configRepository + "/" + this.configId, {
44
- method: "GET",
43
+ fetch(this.configRepository + '/' + this.configId, {
44
+ method: 'GET',
45
45
  headers: {
46
- "Content-Type": "application/json",
47
- },
46
+ 'Content-Type': 'application/json'
47
+ }
48
48
  })
49
49
  .then((response) => {
50
50
  response
@@ -55,12 +55,12 @@ const GatacaAutoQR = class {
55
55
  this.loading = false;
56
56
  })
57
57
  .catch((err) => {
58
- console.log("Cannot retrieve selected config", err);
58
+ console.log('Cannot retrieve selected config', err);
59
59
  this.loading = false;
60
60
  });
61
61
  })
62
62
  .catch((err) => {
63
- console.log("Cannot retrieve selected config", err);
63
+ console.log('Cannot retrieve selected config', err);
64
64
  this.loading = false;
65
65
  });
66
66
  }
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-93d47a75.js');
6
6
  const gatIconAlert = require('./gat-icon-alert-0ad19b26.js');
7
7
  const qrCodeStyling = require('./qr-code-styling-412bbc7a.js');
8
- const utils = require('./utils-ef28b844.js');
8
+ const utils = require('./utils-b4e62bc0.js');
9
9
 
10
10
  const GatacaQRDisplay = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.qrData = undefined;
14
- this.qrType = "svg";
14
+ this.qrType = 'svg';
15
15
  this.size = 256;
16
16
  this.logoSize = 0;
17
17
  this.logoSrc = undefined;
18
- this.qrColor = "#1E1E20";
18
+ this.qrColor = '#1E1E20';
19
19
  this.rounded = true;
20
20
  }
21
21
  componentDidLoad() {
@@ -28,18 +28,18 @@ const GatacaQRDisplay = class {
28
28
  type: this.qrType,
29
29
  dotsOptions: {
30
30
  color: this.qrColor,
31
- type: this.rounded ? "dots" : "square",
31
+ type: this.rounded ? 'dots' : 'square'
32
32
  },
33
33
  cornersSquareOptions: {
34
- type: this.rounded ? "extra-rounded" : "square",
34
+ type: this.rounded ? 'extra-rounded' : 'square'
35
35
  },
36
36
  cornersDotOptions: {
37
- type: this.rounded ? "dot" : "square",
37
+ type: this.rounded ? 'dot' : 'square'
38
38
  },
39
39
  imageOptions: {
40
40
  margin: 2,
41
- imageSize: this.logoSize,
42
- },
41
+ imageSize: this.logoSize
42
+ }
43
43
  });
44
44
  qrCode.append(this.qr);
45
45
  }
@@ -52,8 +52,8 @@ const GatacaQRDisplay = class {
52
52
 
53
53
  const Success = (props) => {
54
54
  const { modalHeight, successLoginLabel } = props;
55
- return (index.h("div", { class: "success", style: {
56
- height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + "px" : "300px",
55
+ return (index.h("div", { class: 'success', style: {
56
+ height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + 'px' : '300px'
57
57
  } },
58
58
  index.h("img", { src: gatIconAlert.gatIconCheckSvg, height: 52, width: 52 }),
59
59
  index.h("p", { class: "successMsg" }, successLoginLabel)));
@@ -61,19 +61,19 @@ const Success = (props) => {
61
61
 
62
62
  const RetryButton = (props) => {
63
63
  var _a;
64
- const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
64
+ const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR } = props;
65
65
  return (index.h("div", { class: "reload", style: {
66
- width: (modalWidth - 48).toString() + "px",
67
- height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
66
+ width: (modalWidth - 48).toString() + 'px',
67
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
68
68
  } },
69
69
  index.h("div", { id: "notify", onClick: () => display() },
70
70
  index.h("img", { src: gatIconAlert.gatIconRefreshSvg, height: 24, width: 24 }),
71
71
  index.h("p", { class: "notify-text" },
72
72
  clickInsideBoxLabel,
73
73
  " "),
74
- errorMessage ? (index.h("p", { class: "notify-text bold" }, refreshQrLabel)) : (index.h("p", { class: "notify-text bold" }, scanQrLabel)),
74
+ errorMessage ? index.h("p", { class: "notify-text bold" }, refreshQrLabel) : index.h("p", { class: "notify-text bold" }, scanQrLabel),
75
75
  errorMessage && (index.h("div", { class: "alert", style: {
76
- width: (modalWidth - 48).toString() + "px",
76
+ width: (modalWidth - 48).toString() + 'px'
77
77
  } },
78
78
  index.h("img", { src: gatIconAlert.gatIconAlertSvg, height: 24, width: 24 }),
79
79
  index.h("p", null, errorMessage)))),
@@ -97,8 +97,8 @@ const ReadQR = (props) => {
97
97
  var _a;
98
98
  const { modalWidth, readQrMessages, renderQR, url, sizeQR } = props;
99
99
  return (index.h("div", { class: "blured", style: {
100
- width: (modalWidth - 48).toString() + "px",
101
- height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
100
+ width: (modalWidth - 48).toString() + 'px',
101
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
102
102
  } },
103
103
  index.h("div", { id: "notify" },
104
104
  index.h(AnimatedLoader, null),
@@ -111,17 +111,17 @@ const ReadQR = (props) => {
111
111
 
112
112
  const QR = (props) => {
113
113
  const { value, useLogo, logoSrc, size, qrType } = props;
114
- return (index.h("gataca-qrdisplay", { qrData: value, rounded: true, qrType: qrType, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
114
+ return index.h("gataca-qrdisplay", { qrData: value, rounded: true, qrType: qrType, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc });
115
115
  };
116
116
 
117
117
  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\", \"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)}}";
118
118
 
119
- const DEEP_LINK_PREFIX = "https://api.gataca.io/qr/redirect.html";
119
+ const DEEP_LINK_PREFIX = 'https://api.gataca.io/qr/redirect.html';
120
120
  //Default values
121
121
  const DEFAULT_SESSION_TIMEOUT = 300; //5mins as in connect
122
122
  const DEFAULT_POLLING_FREQ = 3;
123
123
  const GatacaQR = class {
124
- constructor(hostRef) { index.registerInstance(this, hostRef); this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7); this.checkStatus = undefined; this.createSession = undefined; this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType = "svg"; this.callbackServer = undefined; this.autostart = true; this.autorefresh = false; this.v = "3"; this.qrModalTitle = "Quick Access"; this.modalTitleColor = "#4745B7"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = gatIconAlert.logoGatacaSvg; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = "QR Code expired"; this.credentialsNotValidatedLabel = "User credentials not validated"; this.clickInsideBoxLabel = "Click inside the box to"; this.refreshQrLabel = "Refresh QR Code"; this.scanQrLabel = "Scan QR Code"; this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time"; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = "No successful login"; this.successLoginLabel = "Successful Connection!"; this.byBrandLabel = "by Gataca"; this.waitingStartSessionLabel = "waiting to start a session"; this.readQrTitle = "Processing..."; this.readQrDescription = "Please wait a moment"; this.hideQrModalDescription = false; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.pollingFrequency = DEFAULT_POLLING_FREQ; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = utils.RESULT_STATUS.NOT_STARTED; }
124
+ constructor(hostRef) { index.registerInstance(this, hostRef); this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7); this.checkStatus = undefined; this.createSession = undefined; this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType = 'svg'; this.callbackServer = undefined; this.autostart = true; this.autorefresh = false; this.v = '3'; this.qrModalTitle = 'Quick Access'; this.modalTitleColor = '#4745B7'; this.qrModalDescription = 'Sign up or sign in by scanning the QR Code with the Gataca Wallet'; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = gatIconAlert.logoGatacaSvg; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = 'QR Code expired'; this.credentialsNotValidatedLabel = 'User credentials not validated'; this.clickInsideBoxLabel = 'Click inside the box to'; this.refreshQrLabel = 'Refresh QR Code'; this.scanQrLabel = 'Scan QR Code'; this.userNotScanInTimeErrorLabel = 'User did not scan the QR in the allowed time'; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = 'No successful login'; this.successLoginLabel = 'Successful Connection!'; this.byBrandLabel = 'by Gataca'; this.waitingStartSessionLabel = 'waiting to start a session'; this.readQrTitle = 'Processing...'; this.readQrDescription = 'Please wait a moment'; this.hideQrModalDescription = false; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.pollingFrequency = DEFAULT_POLLING_FREQ; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = utils.RESULT_STATUS.NOT_STARTED; }
125
125
  disconnectedCallback() {
126
126
  this.stop();
127
127
  }
@@ -151,9 +151,7 @@ const GatacaQR = class {
151
151
  }
152
152
  else {
153
153
  if (err !== utils.RESULT_STATUS.NOT_STARTED) {
154
- let error = expired
155
- ? new Error(this.userNotScanInTimeErrorLabel)
156
- : new Error(this.credsNotValidatedErrorLabel);
154
+ let error = expired ? new Error(this.userNotScanInTimeErrorLabel) : new Error(this.credsNotValidatedErrorLabel);
157
155
  this.result = err;
158
156
  this.gatacaLoginFailed.emit(error);
159
157
  this.errorCallback(error);
@@ -181,9 +179,7 @@ const GatacaQR = class {
181
179
  * Retrieve manually the session data on a successful login
182
180
  */
183
181
  async getSessionData() {
184
- return this.sessionData
185
- ? Promise.resolve(this.sessionData)
186
- : Promise.reject(new Error(this.failedLoginErrorLabel));
182
+ return this.sessionData ? Promise.resolve(this.sessionData) : Promise.reject(new Error(this.failedLoginErrorLabel));
187
183
  }
188
184
  async getSessionId() {
189
185
  if (this.sessionId) {
@@ -195,15 +191,14 @@ const GatacaQR = class {
195
191
  return this.sessionId;
196
192
  }
197
193
  getLink() {
198
- if (this.v === "2") {
194
+ if (this.v === '2') {
199
195
  return this.authenticationRequest;
200
196
  }
201
- const authRequestEncoded = "?dl=" + utils.base64UrlEncode(this.authenticationRequest);
197
+ const authRequestEncoded = '?dl=' + utils.base64UrlEncode(this.authenticationRequest);
202
198
  return DEEP_LINK_PREFIX + authRequestEncoded;
203
199
  }
204
200
  async poll() {
205
- let endTime = new Date().getTime() +
206
- (this.sessionTimeout || DEFAULT_SESSION_TIMEOUT) * 1000;
201
+ let endTime = new Date().getTime() + (this.sessionTimeout || DEFAULT_SESSION_TIMEOUT) * 1000;
207
202
  let interval = (this.pollingFrequency || DEFAULT_POLLING_FREQ) * 1000;
208
203
  let checkFunc = async (component) => {
209
204
  if (component.result === utils.RESULT_STATUS.NOT_STARTED) {
@@ -252,40 +247,35 @@ const GatacaQR = class {
252
247
  case utils.RESULT_STATUS.READ:
253
248
  return this.renderReadQR({
254
249
  title: this === null || this === void 0 ? void 0 : this.readQrTitle,
255
- description: this === null || this === void 0 ? void 0 : this.readQrDescription,
250
+ description: this === null || this === void 0 ? void 0 : this.readQrDescription
256
251
  });
257
252
  }
258
253
  }
259
254
  renderSuccess() {
260
- return (index.h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
255
+ return index.h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel });
261
256
  }
262
257
  renderRetryButton(errorMessage) {
263
258
  return (index.h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
264
259
  }
265
260
  renderReadQR(readQrMessages) {
266
- return (index.h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) }));
261
+ return index.h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) });
267
262
  }
268
- renderQR(value, useLogo) {
269
- return (index.h(QR, { value: value, qrType: this.qrType, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
263
+ renderQR(value, useLogo, sizeQR) {
264
+ return index.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 });
270
265
  }
271
266
  renderRetryQR(value, useLogo) {
272
- return (index.h(QR, { value: value, useLogo: useLogo, qrType: this.qrType, 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 }));
267
+ return index.h(QR, { value: value, useLogo: useLogo && this.logoSize !== 0, qrType: this.qrType, 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 });
273
268
  }
274
269
  render() {
275
270
  var _a, _b;
276
- return (index.h("div", { class: "popUpContainer" }, index.h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
277
- width: (this.modalWidth - 2).toString() + "px",
278
- height: this.modalHeight
279
- ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
280
- : "",
271
+ return (index.h("div", { class: "popUpContainer" }, index.h("div", { class: `is-visible modal-window ${this.hideModalTexts ? '' : 'large-modal'} ${this.hideModalBoxShadow ? 'noBoxShadow' : ''}`, style: {
272
+ width: (this.modalWidth - 2).toString() + 'px',
273
+ height: this.modalHeight ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
281
274
  }, onClick: (event) => {
282
275
  event.stopPropagation();
283
- } }, index.h("div", { class: "modal-window__content" }, index.h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, index.h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (index.h("p", { class: "qrBrand modalText" }, this.byBrandLabel, " ", index.h("span", null, index.h("img", { src: gatIconAlert.logoGatacaSvg })))), this.result !== utils.RESULT_STATUS.SUCCESS &&
284
- !this.hideQrModalDescription && (index.h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), index.h("div", { class: "qrSection", style: {
285
- width: this.modalWidth.toString() + "px",
286
- height: this.modalWidth
287
- ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
288
- : "",
276
+ } }, index.h("div", { class: "modal-window__content" }, index.h("div", { class: `qrTitleContainer ${this.hideModalTexts ? 'hidenText' : ''}` }, index.h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || '#1e1e20' } }, this.qrModalTitle), !this.hideBrandTitle && (index.h("p", { class: "qrBrand modalText" }, this.byBrandLabel, ' ', index.h("span", null, index.h("img", { src: gatIconAlert.logoGatacaSvg })))), this.result !== utils.RESULT_STATUS.SUCCESS && !this.hideQrModalDescription && index.h("p", { class: "qrDescription modalText" }, this.qrModalDescription)), index.h("div", { class: "qrSection", style: {
277
+ width: this.modalWidth.toString() + 'px',
278
+ height: this.modalWidth ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + 'px' : ''
289
279
  } }, this.renderQRSection())))));
290
280
  }
291
281
  };
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-93d47a75.js');
6
6
  const gatIconAlert = require('./gat-icon-alert-0ad19b26.js');
7
7
  require('./qr-code-styling-412bbc7a.js');
8
- const utils = require('./utils-ef28b844.js');
8
+ const utils = require('./utils-b4e62bc0.js');
9
9
 
10
10
  const Success = (props) => {
11
11
  const { modalHeight, successLoginLabel } = props;
12
- return (index.h("div", { class: "success", style: {
13
- height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + "px" : "300px",
12
+ return (index.h("div", { class: 'success', style: {
13
+ height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + 'px' : '300px'
14
14
  } },
15
15
  index.h("img", { src: gatIconAlert.gatIconCheckSvg, height: 52, width: 52 }),
16
16
  index.h("p", { class: "successMsg" }, successLoginLabel)));
@@ -18,19 +18,19 @@ const Success = (props) => {
18
18
 
19
19
  const RetryButton = (props) => {
20
20
  var _a;
21
- const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
21
+ const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR } = props;
22
22
  return (index.h("div", { class: "reload", style: {
23
- width: (modalWidth - 48).toString() + "px",
24
- height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
23
+ width: (modalWidth - 48).toString() + 'px',
24
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
25
25
  } },
26
26
  index.h("div", { id: "notify", onClick: () => display() },
27
27
  index.h("img", { src: gatIconAlert.gatIconRefreshSvg, height: 24, width: 24 }),
28
28
  index.h("p", { class: "notify-text" },
29
29
  clickInsideBoxLabel,
30
30
  " "),
31
- errorMessage ? (index.h("p", { class: "notify-text bold" }, refreshQrLabel)) : (index.h("p", { class: "notify-text bold" }, scanQrLabel)),
31
+ errorMessage ? index.h("p", { class: "notify-text bold" }, refreshQrLabel) : index.h("p", { class: "notify-text bold" }, scanQrLabel),
32
32
  errorMessage && (index.h("div", { class: "alert", style: {
33
- width: (modalWidth - 48).toString() + "px",
33
+ width: (modalWidth - 48).toString() + 'px'
34
34
  } },
35
35
  index.h("img", { src: gatIconAlert.gatIconAlertSvg, height: 24, width: 24 }),
36
36
  index.h("p", null, errorMessage)))),
@@ -39,7 +39,7 @@ const RetryButton = (props) => {
39
39
 
40
40
  const QR = (props) => {
41
41
  const { value, useLogo, logoSrc, size, qrType } = props;
42
- return (index.h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, qrType: qrType, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
42
+ return index.h("gataca-qrdisplay", { qrData: value, rounded: true, size: size, qrType: qrType, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc });
43
43
  };
44
44
 
45
45
  const AnimatedLoader = () => {
@@ -59,8 +59,8 @@ const ReadQR = (props) => {
59
59
  var _a;
60
60
  const { modalWidth, readQrMessages, renderQR, url, sizeQR } = props;
61
61
  return (index.h("div", { class: "blured", style: {
62
- width: (modalWidth - 48).toString() + "px",
63
- height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
62
+ width: (modalWidth - 48).toString() + 'px',
63
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
64
64
  } },
65
65
  index.h("div", { id: "notify" },
66
66
  index.h(AnimatedLoader, null),
@@ -73,11 +73,11 @@ const ReadQR = (props) => {
73
73
 
74
74
  const gatacaQrwsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap\"); @import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.brandSection{padding-top:5px;display:flex;align-items:center}.brandSection .gatacaImgSmall{height:13px;width:13px;margin:0;margin-right:10px}.popUpContainer .large-modal{width:300px;min-height:350px}.popUpContainer .modal-window{position:relative;border-radius:6px;overflow:hidden;color:rgba(24, 27, 94, 0.8);box-shadow:0px 3px 10px rgba(48, 48, 48, 0.1);display:flex;flex-direction:column;justify-content:space-between;align-items:center;display:flex;z-index:1001;padding:1px;background-color:white;border-radius:12px;-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;visibility:hidden;opacity:0}.popUpContainer .modal-window__content{width:100%;height:100%;text-align:left}.popUpContainer .modal-window__content .hidenText{display:none}.popUpContainer .modal-window .modalText{font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px;margin-top:10px;letter-spacing:1px}.popUpContainer .modal-window .qrTitleContainer{padding:14px 24px;padding-bottom:0px}.popUpContainer .modal-window .qrTitle{font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .modal-window .qrDescription{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074}.popUpContainer .modal-window .bold{font-weight:700}.popUpContainer .modal-window .qrBrand{margin-top:4px;font-size:14px;font-weight:400;line-height:16.5px;display:flex;align-items:center}.popUpContainer .modal-window .qrBrand img{margin-left:5px;height:12px}.popUpContainer .modal-window .qr-section{width:252px;height:252px}.popUpContainer .noBoxShadow{box-shadow:none}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}.success{display:flex;height:300px;flex-direction:column;justify-content:center;align-items:center;padding:0px}.success>img{padding-bottom:12px}.success>.successMsg{line-height:23.5px;color:var(--neutral-1000, #1e1e20);text-align:center;font-family:\"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:24px}.reload,.blured{height:252px;width:252px;border:1px dashed #a1a1a1;border-radius:12px;position:relative;top:24px;margin:0 24px 24px;display:flex;overflow:hidden;justify-content:center;align-items:center}#qrwait{display:flex;justify-content:center}#qrwait,#notify{width:100%;height:100%;top:0;left:0;border-radius:20px}#notify{z-index:10;position:absolute;justify-self:center;justify-items:center;justify-content:center;align-items:center;align-content:center;display:flex;flex-direction:column;box-sizing:border-box;padding:20px;background:rgba(255, 255, 255, 0.95)}#notify>img{padding-bottom:12px}.alert{display:flex;flex-direction:row;justify-content:start;width:252px;position:absolute;bottom:0px;border:1px solid #ee888c;background:#ffdedf;border-radius:11px;box-sizing:border-box;padding:12px;align-items:center;gap:12px}.alert>img{margin:0}.alert>p{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;margin-top:0;line-height:16px;color:#1e1e20}.notify-text{font-family:\"Poppins\", \"Ubuntu\", \"Work Sans\", \"Helvetica Neue\", sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:16px;color:#707074;text-align:center}.containerLoader{display:flex;justify-content:center;align-items:center;width:30px;height:30px;margin-bottom:12px}.loader{position:relative;margin-left:0 !important}.loader__item{position:absolute;width:9.68px;height:4px;background:transparent;border-radius:2px}.loader__item__1{transform:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-webkit-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-moz-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);-o-animation:translate(2.5846212025px, 5.4246212025px) rotate(45deg);animation:blink 0.8333333333s linear 0.1041666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.1041666667s infinite;-moz-animation:blink 0.8333333333s linear 0.1041666667s infinite;-o-animation:blink 0.8333333333s linear 0.1041666667s infinite}.loader__item__2{transform:translate(-4.84px, 8.5px) rotate(90deg);-webkit-animation:translate(-4.84px, 8.5px) rotate(90deg);-moz-animation:translate(-4.84px, 8.5px) rotate(90deg);-o-animation:translate(-4.84px, 8.5px) rotate(90deg);animation:blink 0.8333333333s linear 0.2083333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.2083333333s infinite;-moz-animation:blink 0.8333333333s linear 0.2083333333s infinite;-o-animation:blink 0.8333333333s linear 0.2083333333s infinite}.loader__item__3{transform:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-webkit-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-moz-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);-o-animation:translate(-12.2646212025px, 5.4246212025px) rotate(135deg);animation:blink 0.8333333333s linear 0.3125s infinite;-webkit-animation:blink 0.8333333333s linear 0.3125s infinite;-moz-animation:blink 0.8333333333s linear 0.3125s infinite;-o-animation:blink 0.8333333333s linear 0.3125s infinite}.loader__item__4{transform:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-webkit-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-moz-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);-o-animation:translate(-15.3399999992px, -1.9999999999px) rotate(180deg);animation:blink 0.8333333333s linear 0.4166666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.4166666667s infinite;-moz-animation:blink 0.8333333333s linear 0.4166666667s infinite;-o-animation:blink 0.8333333333s linear 0.4166666667s infinite}.loader__item__5{transform:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-webkit-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-moz-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);-o-animation:translate(-12.2646210959px, -9.4246211842px) rotate(225deg);animation:blink 0.8333333333s linear 0.5208333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.5208333333s infinite;-moz-animation:blink 0.8333333333s linear 0.5208333333s infinite;-o-animation:blink 0.8333333333s linear 0.5208333333s infinite}.loader__item__6{transform:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-webkit-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-moz-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);-o-animation:translate(-4.8399941857px, -12.499998805px) rotate(270deg);animation:blink 0.8333333333s linear 0.625s infinite;-webkit-animation:blink 0.8333333333s linear 0.625s infinite;-moz-animation:blink 0.8333333333s linear 0.625s infinite;-o-animation:blink 0.8333333333s linear 0.625s infinite}.loader__item__7{transform:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-webkit-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-moz-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);-o-animation:translate(2.5847915061px, -9.4245803212px) rotate(315deg);animation:blink 0.8333333333s linear 0.7291666667s infinite;-webkit-animation:blink 0.8333333333s linear 0.7291666667s infinite;-moz-animation:blink 0.8333333333s linear 0.7291666667s infinite;-o-animation:blink 0.8333333333s linear 0.7291666667s infinite}.loader__item__8{transform:translate(5.6631628524px, -1.99913122px) rotate(360deg);-webkit-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);-moz-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);-o-animation:translate(5.6631628524px, -1.99913122px) rotate(360deg);animation:blink 0.8333333333s linear 0.8333333333s infinite;-webkit-animation:blink 0.8333333333s linear 0.8333333333s infinite;-moz-animation:blink 0.8333333333s linear 0.8333333333s infinite;-o-animation:blink 0.8333333333s linear 0.8333333333s infinite}.loader__item__8{max-width:8.5px}@keyframes blink{0%{background:#4745B7}100%{background:#CCCBF8}}@keyframes rotate{0%{transform:rotate(0deg)}100%{background:rotate(360deg)}}";
75
75
 
76
- const DEEP_LINK_PREFIX = "https://api.gataca.io/qr/redirect.html";
76
+ const DEEP_LINK_PREFIX = 'https://api.gataca.io/qr/redirect.html';
77
77
  const DEFAULT_SESSION_TIMEOUT = 300;
78
- const QR_ROLE_CONNECT = "connect";
78
+ const QR_ROLE_CONNECT = 'connect';
79
79
  const GatacaQRWS = class {
80
- constructor(hostRef) { index.registerInstance(this, hostRef); this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType = "svg"; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v = "3"; this.qrModalTitle = "Quick Access"; this.modalTitleColor = "#4745B7"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = gatIconAlert.logoGatacaSvg; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = "QR Code expired"; this.credentialsNotValidatedLabel = "User credentials not validated"; this.clickInsideBoxLabel = "Click inside the box to"; this.refreshQrLabel = "Refresh QR Code"; this.scanQrLabel = "Scan QR Code"; this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time"; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = "No successful login"; this.successLoginLabel = "Successful Connection!"; this.byBrandLabel = "by Gataca"; this.waitingStartSessionLabel = "waiting to start a session"; this.readQrTitle = "Processing..."; this.readQrDescription = "Please wait a moment"; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = utils.RESULT_STATUS.NOT_STARTED; }
80
+ constructor(hostRef) { index.registerInstance(this, hostRef); this.gatacaLoginCompleted = index.createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = index.createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.qrType = 'svg'; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v = '3'; this.qrModalTitle = 'Quick Access'; this.modalTitleColor = '#4745B7'; this.qrModalDescription = 'Sign up or sign in by scanning the QR Code with the Gataca Wallet'; this.hideModalTexts = false; this.hideModalBoxShadow = false; this.hideBrandTitle = false; this.logoSize = 0; this.logoSrc = gatIconAlert.logoGatacaSvg; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = 'QR Code expired'; this.credentialsNotValidatedLabel = 'User credentials not validated'; this.clickInsideBoxLabel = 'Click inside the box to'; this.refreshQrLabel = 'Refresh QR Code'; this.scanQrLabel = 'Scan QR Code'; this.userNotScanInTimeErrorLabel = 'User did not scan the QR in the allowed time'; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = 'No successful login'; this.successLoginLabel = 'Successful Connection!'; this.byBrandLabel = 'by Gataca'; this.waitingStartSessionLabel = 'waiting to start a session'; this.readQrTitle = 'Processing...'; this.readQrDescription = 'Please wait a moment'; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = utils.RESULT_STATUS.NOT_STARTED; }
81
81
  disconnectedCallback() {
82
82
  this.stop();
83
83
  }
@@ -92,7 +92,7 @@ const GatacaQRWS = class {
92
92
  async display() {
93
93
  let socket = new WebSocket(this.socketEndpoint);
94
94
  setTimeout(() => {
95
- this.socket.close(1000, "");
95
+ this.socket.close(1000, '');
96
96
  }, 1000 * this.sessionTimeout);
97
97
  this.socket = socket;
98
98
  socket.onopen = () => {
@@ -111,11 +111,11 @@ const GatacaQRWS = class {
111
111
  }
112
112
  };
113
113
  socket.onerror = () => {
114
- let error = new Error("Error connecting with server");
114
+ let error = new Error('Error connecting with server');
115
115
  this.result = utils.RESULT_STATUS.FAILED;
116
116
  this.gatacaLoginFailed.emit(error);
117
117
  this.errorCallback(error);
118
- socket.close(1000, "");
118
+ socket.close(1000, '');
119
119
  };
120
120
  socket.onclose = () => {
121
121
  if (this.result === utils.RESULT_STATUS.ONGOING || utils.RESULT_STATUS.READ) {
@@ -126,7 +126,7 @@ const GatacaQRWS = class {
126
126
  this.display();
127
127
  }
128
128
  else {
129
- let error = new Error("User did not scan the QR in the alloted time");
129
+ let error = new Error('User did not scan the QR in the alloted time');
130
130
  this.gatacaLoginFailed.emit(error);
131
131
  this.errorCallback(error);
132
132
  }
@@ -152,7 +152,7 @@ const GatacaQRWS = class {
152
152
  this.sessionData = wsresp.authenticatedUserData;
153
153
  this.gatacaLoginCompleted.emit(wsresp.authenticatedUserData);
154
154
  this.successCallback(wsresp.authenticatedUserData);
155
- this.socket.close(1000, "");
155
+ this.socket.close(1000, '');
156
156
  break;
157
157
  case utils.RESULT_STATUS.FAILED:
158
158
  this.socket.close();
@@ -166,7 +166,7 @@ const GatacaQRWS = class {
166
166
  this.display();
167
167
  }
168
168
  else {
169
- let error = new Error("User did not scan the QR in the alloted time");
169
+ let error = new Error('User did not scan the QR in the alloted time');
170
170
  this.gatacaLoginFailed.emit(error);
171
171
  this.errorCallback(error);
172
172
  }
@@ -178,21 +178,19 @@ const GatacaQRWS = class {
178
178
  async stop() {
179
179
  this.sessionData = undefined;
180
180
  this.sessionId = undefined;
181
- this.socket.close(1000, "Client stopped the connection");
181
+ this.socket.close(1000, 'Client stopped the connection');
182
182
  }
183
183
  /**
184
184
  * Retrieve manually the session data on a successful login
185
185
  */
186
186
  async getSessionData() {
187
- return this.sessionData
188
- ? Promise.resolve(this.sessionData)
189
- : Promise.reject(new Error("No successful login"));
187
+ return this.sessionData ? Promise.resolve(this.sessionData) : Promise.reject(new Error('No successful login'));
190
188
  }
191
189
  getLink() {
192
- if (this.v === "2" && this.qrRole == QR_ROLE_CONNECT) {
190
+ if (this.v === '2' && this.qrRole == QR_ROLE_CONNECT) {
193
191
  return this.authenticationRequest;
194
192
  }
195
- const authRequestEncoded = "?dl=" + utils.base64UrlEncode(this.authenticationRequest);
193
+ const authRequestEncoded = '?dl=' + utils.base64UrlEncode(this.authenticationRequest);
196
194
  return DEEP_LINK_PREFIX + authRequestEncoded;
197
195
  }
198
196
  renderQRSection() {
@@ -210,40 +208,35 @@ const GatacaQRWS = class {
210
208
  case utils.RESULT_STATUS.READ:
211
209
  return this.renderReadQR({
212
210
  title: this === null || this === void 0 ? void 0 : this.readQrTitle,
213
- description: this === null || this === void 0 ? void 0 : this.readQrDescription,
211
+ description: this === null || this === void 0 ? void 0 : this.readQrDescription
214
212
  });
215
213
  }
216
214
  }
217
215
  renderSuccess() {
218
- return (index.h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
216
+ return index.h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel });
219
217
  }
220
218
  renderRetryButton(errorMessage) {
221
219
  return (index.h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
222
220
  }
223
221
  renderReadQR(readQrMessages) {
224
- return (index.h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) }));
222
+ return index.h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) });
225
223
  }
226
- renderQR(value, useLogo) {
227
- return (index.h(QR, { value: value, qrType: this.qrType, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
224
+ renderQR(value, useLogo, sizeQR) {
225
+ return index.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 });
228
226
  }
229
227
  renderRetryQR(value, useLogo) {
230
- return (index.h(QR, { value: value, qrType: this.qrType, useLogo: useLogo, size: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
228
+ return index.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 });
231
229
  }
232
230
  render() {
233
231
  var _a, _b;
234
- return (index.h("div", { class: "popUpContainer" }, index.h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
235
- width: (this.modalWidth - 2).toString() + "px",
236
- height: this.modalHeight
237
- ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
238
- : "",
232
+ return (index.h("div", { class: "popUpContainer" }, index.h("div", { class: `is-visible modal-window ${this.hideModalTexts ? '' : 'large-modal'} ${this.hideModalBoxShadow ? 'noBoxShadow' : ''}`, style: {
233
+ width: (this.modalWidth - 2).toString() + 'px',
234
+ height: this.modalHeight ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
239
235
  }, onClick: (event) => {
240
236
  event.stopPropagation();
241
- } }, index.h("div", { class: "modal-window__content" }, index.h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, index.h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (index.h("p", { class: "qrBrand modalText" }, this.byBrandLabel, " ", index.h("span", null, index.h("img", { src: gatIconAlert.logoGatacaSvg })))), this.result !== utils.RESULT_STATUS.SUCCESS &&
242
- !this.hideQrModalDescription && (index.h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), index.h("div", { class: "qrSection", style: {
243
- width: this.modalWidth.toString() + "px",
244
- height: this.modalWidth
245
- ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
246
- : "",
237
+ } }, index.h("div", { class: "modal-window__content" }, index.h("div", { class: `qrTitleContainer ${this.hideModalTexts ? 'hidenText' : ''}` }, index.h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || '#1e1e20' } }, this.qrModalTitle), !this.hideBrandTitle && (index.h("p", { class: "qrBrand modalText" }, this.byBrandLabel, ' ', index.h("span", null, index.h("img", { src: gatIconAlert.logoGatacaSvg })))), this.result !== utils.RESULT_STATUS.SUCCESS && !this.hideQrModalDescription && index.h("p", { class: "qrDescription modalText" }, this.qrModalDescription)), index.h("div", { class: "qrSection", style: {
238
+ width: this.modalWidth.toString() + 'px',
239
+ height: this.modalWidth ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + 'px' : ''
247
240
  } }, this.renderQRSection())))));
248
241
  }
249
242
  };