@gataca/qr 0.0.28 → 0.0.30

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 (91) hide show
  1. package/dist/{esm/qr-code-styling-0eeb38d5.js → cjs/gat-icon-check-6b6780eb.js} +12 -1
  2. package/dist/cjs/gataca-autoqr.cjs.entry.js +10 -10
  3. package/dist/cjs/gataca-qr_3.cjs.entry.js +639 -0
  4. package/dist/cjs/gataca-qrws.cjs.entry.js +42 -48
  5. package/dist/cjs/gataca-ssibuttonws.cjs.entry.js +61 -0
  6. package/dist/cjs/gatacaqr.cjs.js +2 -2
  7. package/dist/cjs/{index-93d47a75.js → index-1332a8ce.js} +32 -1
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{utils-ef28b844.js → utils-b4e62bc0.js} +1 -1
  11. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +13 -13
  12. package/dist/collection/components/gataca-qr/components/qr/QR.js +3 -3
  13. package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +12 -7
  14. package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +5 -3
  15. package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +12 -9
  16. package/dist/collection/components/gataca-qr/components/success/Success.js +7 -6
  17. package/dist/collection/components/gataca-qr/gataca-qr.css +15 -5
  18. package/dist/collection/components/gataca-qr/gataca-qr.js +68 -57
  19. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +33 -11
  20. package/dist/collection/components/gataca-qrws/components/qr/QR.js +2 -2
  21. package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +4 -4
  22. package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +1 -1
  23. package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +8 -8
  24. package/dist/collection/components/gataca-qrws/components/success/Success.js +4 -4
  25. package/dist/collection/components/gataca-qrws/gataca-qrws.js +49 -56
  26. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +224 -54
  27. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +12 -12
  28. package/dist/collection/components/icons/RefreshIcon.js +6 -0
  29. package/dist/collection/index.js +2 -2
  30. package/dist/collection/utils/index.js +1 -1
  31. package/dist/collection/utils/utils.js +1 -1
  32. package/dist/components/{gat-icon-alert.js → gat-icon-check.js} +4 -6
  33. package/dist/components/gataca-autoqr.js +9 -9
  34. package/dist/components/gataca-qr2.js +85 -73
  35. package/dist/components/gataca-qrdisplay2.js +11 -6
  36. package/dist/components/gataca-qrws2.js +37 -42
  37. package/dist/components/gataca-ssibutton2.js +114 -34
  38. package/dist/components/gataca-ssibuttonws2.js +6 -6
  39. package/dist/components/index.js +1 -1
  40. package/dist/{cjs/qr-code-styling-412bbc7a.js → esm/gat-icon-check-7320c81b.js} +6 -2
  41. package/dist/esm/gataca-autoqr.entry.js +10 -10
  42. package/dist/esm/gataca-qr_3.entry.js +633 -0
  43. package/dist/esm/gataca-qrws.entry.js +39 -45
  44. package/dist/esm/gataca-ssibuttonws.entry.js +57 -0
  45. package/dist/esm/gatacaqr.js +2 -2
  46. package/dist/esm/{index-2be54f32.js → index-055790a7.js} +32 -1
  47. package/dist/esm/index.js +1 -1
  48. package/dist/esm/loader.js +2 -2
  49. package/dist/esm/{utils-63e7a33b.js → utils-21ffcc1e.js} +1 -1
  50. package/dist/gatacaqr/gatacaqr.esm.js +1 -1
  51. package/dist/gatacaqr/index.esm.js +1 -1
  52. package/dist/gatacaqr/p-1d1129b7.entry.js +1 -0
  53. package/dist/gatacaqr/p-29119208.js +1 -0
  54. package/dist/gatacaqr/p-49cf321c.entry.js +1 -0
  55. package/dist/gatacaqr/p-9f83bae1.entry.js +1 -0
  56. package/dist/gatacaqr/{p-5e81ab9e.entry.js → p-c65f810b.entry.js} +1 -1
  57. package/dist/gatacaqr/p-fccf9d4d.js +2 -0
  58. package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +7 -7
  59. package/dist/types/components/gataca-qr/components/qr/QR.d.ts +4 -2
  60. package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +3 -1
  61. package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +6 -2
  62. package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +3 -1
  63. package/dist/types/components/gataca-qr/components/success/Success.d.ts +3 -1
  64. package/dist/types/components/gataca-qr/gataca-qr.d.ts +16 -4
  65. package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -1
  66. package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -2
  67. package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +1 -1
  68. package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +1 -1
  69. package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +1 -1
  70. package/dist/types/components/gataca-qrws/components/success/Success.d.ts +1 -1
  71. package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +4 -4
  72. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +38 -5
  73. package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +3 -3
  74. package/dist/types/components/icons/RefreshIcon.d.ts +8 -0
  75. package/dist/types/components.d.ts +78 -36
  76. package/dist/types/index.d.ts +2 -2
  77. package/dist/types/utils/index.d.ts +1 -1
  78. package/package.json +30 -7
  79. package/dist/cjs/gat-icon-alert-0ad19b26.js +0 -14
  80. package/dist/cjs/gataca-qr_2.cjs.entry.js +0 -295
  81. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +0 -317
  82. package/dist/esm/gat-icon-alert-7b06ef3a.js +0 -9
  83. package/dist/esm/gataca-qr_2.entry.js +0 -290
  84. package/dist/esm/gataca-ssibutton_2.entry.js +0 -312
  85. package/dist/gatacaqr/p-0be4566d.js +0 -1
  86. package/dist/gatacaqr/p-3500ae66.entry.js +0 -1
  87. package/dist/gatacaqr/p-5ae5f952.js +0 -2
  88. package/dist/gatacaqr/p-68272823.entry.js +0 -1
  89. package/dist/gatacaqr/p-92a2e6f0.entry.js +0 -1
  90. package/dist/gatacaqr/p-ea783014.js +0 -1
  91. /package/dist/gatacaqr/{p-2cd7b062.js → p-bce7e590.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { h } from '@stencil/core';
2
2
  export const AnimatedLoader = () => {
3
3
  return (h("div", { class: "containerLoader" }, h("div", { class: "loader" }, h("div", { class: "loader__item loader__item__1" }), h("div", { class: "loader__item loader__item__2" }), h("div", { class: "loader__item loader__item__3" }), h("div", { class: "loader__item loader__item__4" }), h("div", { class: "loader__item loader__item__5" }), h("div", { class: "loader__item loader__item__6" }), h("div", { class: "loader__item loader__item__7" }), h("div", { class: "loader__item loader__item__8" }))));
4
4
  };
@@ -1,13 +1,13 @@
1
- import { h } from "@stencil/core";
2
- import refreshIcon from "../../../../assets/icons/gat-icon-refresh.svg";
3
- import alertIcon from "../../../../assets/icons/gat-icon-alert.svg";
1
+ import { h } from '@stencil/core';
2
+ import refreshIcon from '../../../../assets/icons/gat-icon-refresh.svg';
3
+ import alertIcon from '../../../../assets/icons/gat-icon-alert.svg';
4
4
  export const RetryButton = (props) => {
5
5
  var _a;
6
- const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
6
+ const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR } = props;
7
7
  return (h("div", { class: "reload", style: {
8
- width: (modalWidth - 48).toString() + "px",
9
- height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
10
- } }, h("div", { id: "notify", onClick: () => display() }, h("img", { src: refreshIcon, height: 24, width: 24 }), h("p", { class: "notify-text" }, clickInsideBoxLabel, " "), errorMessage ? (h("p", { class: "notify-text bold" }, refreshQrLabel)) : (h("p", { class: "notify-text bold" }, scanQrLabel)), errorMessage && (h("div", { class: "alert", style: {
11
- width: (modalWidth - 48).toString() + "px",
8
+ width: (modalWidth - 48).toString() + 'px',
9
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
10
+ } }, h("div", { id: "notify", onClick: () => display() }, h("img", { src: refreshIcon, height: 24, width: 24 }), h("p", { class: "notify-text" }, clickInsideBoxLabel, " "), errorMessage ? h("p", { class: "notify-text bold" }, refreshQrLabel) : h("p", { class: "notify-text bold" }, scanQrLabel), errorMessage && (h("div", { class: "alert", style: {
11
+ width: (modalWidth - 48).toString() + 'px'
12
12
  } }, h("img", { src: alertIcon, height: 24, width: 24 }), h("p", null, errorMessage)))), h("div", { id: "qrwait" }, renderRetryQR(waitingStartSessionLabel))));
13
13
  };
@@ -1,8 +1,8 @@
1
- import successIcon from "../../../../assets/icons/gat-icon-check.svg";
2
- import { h } from "@stencil/core";
1
+ import successIcon from '../../../../assets/icons/gat-icon-check.svg';
2
+ import { h } from '@stencil/core';
3
3
  export const Success = (props) => {
4
4
  const { modalHeight, successLoginLabel } = props;
5
- return (h("div", { class: "success", style: {
6
- height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + "px" : "300px",
5
+ return (h("div", { class: 'success', style: {
6
+ height: modalHeight ? (modalHeight === null || modalHeight === void 0 ? void 0 : modalHeight.toString()) + 'px' : '300px'
7
7
  } }, h("img", { src: successIcon, height: 52, width: 52 }), h("p", { class: "successMsg" }, successLoginLabel)));
8
8
  };
@@ -1,16 +1,16 @@
1
- import { h, } from "@stencil/core";
2
- import logoGataca from "../../assets/images/logo_gataca.svg";
3
- import "../gataca-qrdisplay/gataca-qrdisplay";
4
- import { base64UrlEncode, checkMobile, RESULT_STATUS, } from "../../utils/utils";
5
- import { Success } from "./components/success/Success";
6
- import { RetryButton } from "./components/retryButton/RetryButton";
7
- import { QR } from "./components/qr/QR";
8
- import { ReadQR } from "./components/readQR/ReadQR";
9
- const DEEP_LINK_PREFIX = "https://api.gataca.io/qr/redirect.html";
1
+ import { h } from '@stencil/core';
2
+ import logoGataca from '../../assets/images/logo_gataca.svg';
3
+ import '../gataca-qrdisplay/gataca-qrdisplay';
4
+ import { base64UrlEncode, checkMobile, RESULT_STATUS } from '../../utils/utils';
5
+ import { Success } from './components/success/Success';
6
+ import { RetryButton } from './components/retryButton/RetryButton';
7
+ import { QR } from './components/qr/QR';
8
+ import { ReadQR } from './components/readQR/ReadQR';
9
+ const DEEP_LINK_PREFIX = 'https://api.gataca.io/qr/redirect.html';
10
10
  const DEFAULT_SESSION_TIMEOUT = 300;
11
- const QR_ROLE_CONNECT = "connect";
11
+ const QR_ROLE_CONNECT = 'connect';
12
12
  export class GatacaQRWS {
13
- constructor() { 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 = logoGataca; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = "QR Code expired"; this.credentialsNotValidatedLabel = "User credentials not validated"; this.clickInsideBoxLabel = "Click inside the box to"; this.refreshQrLabel = "Refresh QR Code"; this.scanQrLabel = "Scan QR Code"; this.userNotScanInTimeErrorLabel = "User did not scan the QR in the allowed time"; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = "No successful login"; this.successLoginLabel = "Successful Connection!"; this.byBrandLabel = "by Gataca"; this.waitingStartSessionLabel = "waiting to start a session"; this.readQrTitle = "Processing..."; this.readQrDescription = "Please wait a moment"; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
13
+ constructor() { 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 = logoGataca; this.qrSize = 300; this.modalWidth = 300; this.modalHeight = undefined; this.qrCodeExpiredLabel = 'QR Code expired'; this.credentialsNotValidatedLabel = 'User credentials not validated'; this.clickInsideBoxLabel = 'Click inside the box to'; this.refreshQrLabel = 'Refresh QR Code'; this.scanQrLabel = 'Scan QR Code'; this.userNotScanInTimeErrorLabel = 'User did not scan the QR in the allowed time'; this.credsNotValidatedErrorLabel = "Provided user credentials couldn't be validated"; this.failedLoginErrorLabel = 'No successful login'; this.successLoginLabel = 'Successful Connection!'; this.byBrandLabel = 'by Gataca'; this.waitingStartSessionLabel = 'waiting to start a session'; this.readQrTitle = 'Processing...'; this.readQrDescription = 'Please wait a moment'; this.hideQrModalDescription = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
14
14
  disconnectedCallback() {
15
15
  this.stop();
16
16
  }
@@ -25,7 +25,7 @@ export class GatacaQRWS {
25
25
  async display() {
26
26
  let socket = new WebSocket(this.socketEndpoint);
27
27
  setTimeout(() => {
28
- this.socket.close(1000, "");
28
+ this.socket.close(1000, '');
29
29
  }, 1000 * this.sessionTimeout);
30
30
  this.socket = socket;
31
31
  socket.onopen = () => {
@@ -44,11 +44,11 @@ export class GatacaQRWS {
44
44
  }
45
45
  };
46
46
  socket.onerror = () => {
47
- let error = new Error("Error connecting with server");
47
+ let error = new Error('Error connecting with server');
48
48
  this.result = RESULT_STATUS.FAILED;
49
49
  this.gatacaLoginFailed.emit(error);
50
50
  this.errorCallback(error);
51
- socket.close(1000, "");
51
+ socket.close(1000, '');
52
52
  };
53
53
  socket.onclose = () => {
54
54
  if (this.result === RESULT_STATUS.ONGOING || RESULT_STATUS.READ) {
@@ -59,7 +59,7 @@ export class GatacaQRWS {
59
59
  this.display();
60
60
  }
61
61
  else {
62
- let error = new Error("User did not scan the QR in the alloted time");
62
+ let error = new Error('User did not scan the QR in the alloted time');
63
63
  this.gatacaLoginFailed.emit(error);
64
64
  this.errorCallback(error);
65
65
  }
@@ -85,7 +85,7 @@ export class GatacaQRWS {
85
85
  this.sessionData = wsresp.authenticatedUserData;
86
86
  this.gatacaLoginCompleted.emit(wsresp.authenticatedUserData);
87
87
  this.successCallback(wsresp.authenticatedUserData);
88
- this.socket.close(1000, "");
88
+ this.socket.close(1000, '');
89
89
  break;
90
90
  case RESULT_STATUS.FAILED:
91
91
  this.socket.close();
@@ -99,7 +99,7 @@ export class GatacaQRWS {
99
99
  this.display();
100
100
  }
101
101
  else {
102
- let error = new Error("User did not scan the QR in the alloted time");
102
+ let error = new Error('User did not scan the QR in the alloted time');
103
103
  this.gatacaLoginFailed.emit(error);
104
104
  this.errorCallback(error);
105
105
  }
@@ -111,21 +111,19 @@ export class GatacaQRWS {
111
111
  async stop() {
112
112
  this.sessionData = undefined;
113
113
  this.sessionId = undefined;
114
- this.socket.close(1000, "Client stopped the connection");
114
+ this.socket.close(1000, 'Client stopped the connection');
115
115
  }
116
116
  /**
117
117
  * Retrieve manually the session data on a successful login
118
118
  */
119
119
  async getSessionData() {
120
- return this.sessionData
121
- ? Promise.resolve(this.sessionData)
122
- : Promise.reject(new Error("No successful login"));
120
+ return this.sessionData ? Promise.resolve(this.sessionData) : Promise.reject(new Error('No successful login'));
123
121
  }
124
122
  getLink() {
125
- if (this.v === "2" && this.qrRole == QR_ROLE_CONNECT) {
123
+ if (this.v === '2' && this.qrRole == QR_ROLE_CONNECT) {
126
124
  return this.authenticationRequest;
127
125
  }
128
- const authRequestEncoded = "?dl=" + base64UrlEncode(this.authenticationRequest);
126
+ const authRequestEncoded = '?dl=' + base64UrlEncode(this.authenticationRequest);
129
127
  return DEEP_LINK_PREFIX + authRequestEncoded;
130
128
  }
131
129
  renderQRSection() {
@@ -143,40 +141,35 @@ export class GatacaQRWS {
143
141
  case RESULT_STATUS.READ:
144
142
  return this.renderReadQR({
145
143
  title: this === null || this === void 0 ? void 0 : this.readQrTitle,
146
- description: this === null || this === void 0 ? void 0 : this.readQrDescription,
144
+ description: this === null || this === void 0 ? void 0 : this.readQrDescription
147
145
  });
148
146
  }
149
147
  }
150
148
  renderSuccess() {
151
- return (h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel }));
149
+ return h(Success, { modalHeight: this === null || this === void 0 ? void 0 : this.modalHeight, successLoginLabel: this === null || this === void 0 ? void 0 : this.successLoginLabel });
152
150
  }
153
151
  renderRetryButton(errorMessage) {
154
152
  return (h(RetryButton, { errorMessage: errorMessage, modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, clickInsideBoxLabel: this === null || this === void 0 ? void 0 : this.clickInsideBoxLabel, refreshQrLabel: this === null || this === void 0 ? void 0 : this.refreshQrLabel, scanQrLabel: this === null || this === void 0 ? void 0 : this.scanQrLabel, waitingStartSessionLabel: this === null || this === void 0 ? void 0 : this.waitingStartSessionLabel, display: this.display.bind(this), renderRetryQR: this.renderRetryQR.bind(this) }));
155
153
  }
156
154
  renderReadQR(readQrMessages) {
157
- return (h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) }));
155
+ return h(ReadQR, { modalWidth: this === null || this === void 0 ? void 0 : this.modalWidth, readQrMessages: readQrMessages, url: this.getLink(), sizeQR: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, renderQR: this.renderQR.bind(this) });
158
156
  }
159
157
  renderQR(value, useLogo, sizeQR) {
160
- return (h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, size: sizeQR || (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
158
+ return h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, size: sizeQR || (this === null || this === void 0 ? void 0 : this.qrSize) || undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc });
161
159
  }
162
160
  renderRetryQR(value, useLogo) {
163
- return (h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, size: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc }));
161
+ return h(QR, { value: value, qrType: this.qrType, useLogo: useLogo && this.logoSize !== 0, size: (this === null || this === void 0 ? void 0 : this.qrSize) ? (this === null || this === void 0 ? void 0 : this.qrSize) - 50 : undefined, logoSrc: this === null || this === void 0 ? void 0 : this.logoSrc });
164
162
  }
165
163
  render() {
166
164
  var _a, _b;
167
- return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ? "" : "large-modal"} ${this.hideModalBoxShadow ? "noBoxShadow" : ""}`, style: {
168
- width: (this.modalWidth - 2).toString() + "px",
169
- height: this.modalHeight
170
- ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + "px"
171
- : "",
165
+ return (h("div", { class: "popUpContainer" }, h("div", { class: `is-visible modal-window ${this.hideModalTexts ? '' : 'large-modal'} ${this.hideModalBoxShadow ? 'noBoxShadow' : ''}`, style: {
166
+ width: (this.modalWidth - 2).toString() + 'px',
167
+ height: this.modalHeight ? ((_a = (this.modalHeight - 2)) === null || _a === void 0 ? void 0 : _a.toString()) + 'px' : ''
172
168
  }, onClick: (event) => {
173
169
  event.stopPropagation();
174
- } }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? "hidenText" : ""}` }, h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || "#1e1e20" } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand modalText" }, this.byBrandLabel, " ", h("span", null, h("img", { src: logoGataca })))), this.result !== RESULT_STATUS.SUCCESS &&
175
- !this.hideQrModalDescription && (h("p", { class: "qrDescription modalText" }, this.qrModalDescription))), h("div", { class: "qrSection", style: {
176
- width: this.modalWidth.toString() + "px",
177
- height: this.modalWidth
178
- ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + "px"
179
- : "",
170
+ } }, h("div", { class: "modal-window__content" }, h("div", { class: `qrTitleContainer ${this.hideModalTexts ? 'hidenText' : ''}` }, h("p", { class: "qrTitle modalText", style: { color: this.modalTitleColor || '#1e1e20' } }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand modalText" }, this.byBrandLabel, ' ', h("span", null, h("img", { src: logoGataca })))), this.result !== RESULT_STATUS.SUCCESS && !this.hideQrModalDescription && h("p", { class: "qrDescription modalText" }, this.qrModalDescription)), h("div", { class: "qrSection", style: {
171
+ width: this.modalWidth.toString() + 'px',
172
+ height: this.modalWidth ? ((_b = this.modalWidth) === null || _b === void 0 ? void 0 : _b.toString()) + 'px' : ''
180
173
  } }, this.renderQRSection())))));
181
174
  }
182
175
  static get is() { return "gataca-qrws"; }
@@ -267,7 +260,7 @@ export class GatacaQRWS {
267
260
  },
268
261
  "attribute": "qr-type",
269
262
  "reflect": false,
270
- "defaultValue": "\"svg\""
263
+ "defaultValue": "'svg'"
271
264
  },
272
265
  "callbackServer": {
273
266
  "type": "string",
@@ -414,7 +407,7 @@ export class GatacaQRWS {
414
407
  },
415
408
  "attribute": "v",
416
409
  "reflect": false,
417
- "defaultValue": "\"3\""
410
+ "defaultValue": "'3'"
418
411
  },
419
412
  "qrModalTitle": {
420
413
  "type": "string",
@@ -432,7 +425,7 @@ export class GatacaQRWS {
432
425
  },
433
426
  "attribute": "qr-modal-title",
434
427
  "reflect": false,
435
- "defaultValue": "\"Quick Access\""
428
+ "defaultValue": "'Quick Access'"
436
429
  },
437
430
  "modalTitleColor": {
438
431
  "type": "string",
@@ -450,7 +443,7 @@ export class GatacaQRWS {
450
443
  },
451
444
  "attribute": "modal-title-color",
452
445
  "reflect": false,
453
- "defaultValue": "\"#4745B7\""
446
+ "defaultValue": "'#4745B7'"
454
447
  },
455
448
  "qrModalDescription": {
456
449
  "type": "string",
@@ -468,7 +461,7 @@ export class GatacaQRWS {
468
461
  },
469
462
  "attribute": "qr-modal-description",
470
463
  "reflect": false,
471
- "defaultValue": "\"Sign up or sign in by scanning the QR Code with the Gataca Wallet\""
464
+ "defaultValue": "'Sign up or sign in by scanning the QR Code with the Gataca Wallet'"
472
465
  },
473
466
  "hideModalTexts": {
474
467
  "type": "boolean",
@@ -629,7 +622,7 @@ export class GatacaQRWS {
629
622
  },
630
623
  "attribute": "qr-code-expired-label",
631
624
  "reflect": false,
632
- "defaultValue": "\"QR Code expired\""
625
+ "defaultValue": "'QR Code expired'"
633
626
  },
634
627
  "credentialsNotValidatedLabel": {
635
628
  "type": "string",
@@ -647,7 +640,7 @@ export class GatacaQRWS {
647
640
  },
648
641
  "attribute": "credentials-not-validated-label",
649
642
  "reflect": false,
650
- "defaultValue": "\"User credentials not validated\""
643
+ "defaultValue": "'User credentials not validated'"
651
644
  },
652
645
  "clickInsideBoxLabel": {
653
646
  "type": "string",
@@ -665,7 +658,7 @@ export class GatacaQRWS {
665
658
  },
666
659
  "attribute": "click-inside-box-label",
667
660
  "reflect": false,
668
- "defaultValue": "\"Click inside the box to\""
661
+ "defaultValue": "'Click inside the box to'"
669
662
  },
670
663
  "refreshQrLabel": {
671
664
  "type": "string",
@@ -683,7 +676,7 @@ export class GatacaQRWS {
683
676
  },
684
677
  "attribute": "refresh-qr-label",
685
678
  "reflect": false,
686
- "defaultValue": "\"Refresh QR Code\""
679
+ "defaultValue": "'Refresh QR Code'"
687
680
  },
688
681
  "scanQrLabel": {
689
682
  "type": "string",
@@ -701,7 +694,7 @@ export class GatacaQRWS {
701
694
  },
702
695
  "attribute": "scan-qr-label",
703
696
  "reflect": false,
704
- "defaultValue": "\"Scan QR Code\""
697
+ "defaultValue": "'Scan QR Code'"
705
698
  },
706
699
  "userNotScanInTimeErrorLabel": {
707
700
  "type": "string",
@@ -719,7 +712,7 @@ export class GatacaQRWS {
719
712
  },
720
713
  "attribute": "user-not-scan-in-time-error-label",
721
714
  "reflect": false,
722
- "defaultValue": "\"User did not scan the QR in the allowed time\""
715
+ "defaultValue": "'User did not scan the QR in the allowed time'"
723
716
  },
724
717
  "credsNotValidatedErrorLabel": {
725
718
  "type": "string",
@@ -755,7 +748,7 @@ export class GatacaQRWS {
755
748
  },
756
749
  "attribute": "failed-login-error-label",
757
750
  "reflect": false,
758
- "defaultValue": "\"No successful login\""
751
+ "defaultValue": "'No successful login'"
759
752
  },
760
753
  "successLoginLabel": {
761
754
  "type": "string",
@@ -773,7 +766,7 @@ export class GatacaQRWS {
773
766
  },
774
767
  "attribute": "success-login-label",
775
768
  "reflect": false,
776
- "defaultValue": "\"Successful Connection!\""
769
+ "defaultValue": "'Successful Connection!'"
777
770
  },
778
771
  "byBrandLabel": {
779
772
  "type": "string",
@@ -791,7 +784,7 @@ export class GatacaQRWS {
791
784
  },
792
785
  "attribute": "by-brand-label",
793
786
  "reflect": false,
794
- "defaultValue": "\"by Gataca\""
787
+ "defaultValue": "'by Gataca'"
795
788
  },
796
789
  "waitingStartSessionLabel": {
797
790
  "type": "string",
@@ -809,7 +802,7 @@ export class GatacaQRWS {
809
802
  },
810
803
  "attribute": "waiting-start-session-label",
811
804
  "reflect": false,
812
- "defaultValue": "\"waiting to start a session\""
805
+ "defaultValue": "'waiting to start a session'"
813
806
  },
814
807
  "readQrTitle": {
815
808
  "type": "string",
@@ -827,7 +820,7 @@ export class GatacaQRWS {
827
820
  },
828
821
  "attribute": "read-qr-title",
829
822
  "reflect": false,
830
- "defaultValue": "\"Processing...\""
823
+ "defaultValue": "'Processing...'"
831
824
  },
832
825
  "readQrDescription": {
833
826
  "type": "string",
@@ -845,7 +838,7 @@ export class GatacaQRWS {
845
838
  },
846
839
  "attribute": "read-qr-description",
847
840
  "reflect": false,
848
- "defaultValue": "\"Please wait a moment\""
841
+ "defaultValue": "'Please wait a moment'"
849
842
  },
850
843
  "hideQrModalDescription": {
851
844
  "type": "boolean",