@gataca/qr 0.0.21 → 0.0.23

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 (99) hide show
  1. package/dist/cjs/gat-icon-alert-0ad19b26.js +14 -0
  2. package/dist/cjs/gataca-autoqr.cjs.entry.js +106 -0
  3. package/dist/cjs/gataca-qr_2.cjs.entry.js +295 -0
  4. package/dist/cjs/gataca-qrws.cjs.entry.js +252 -0
  5. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +317 -0
  6. package/dist/cjs/gatacaqr.cjs.js +19 -0
  7. package/dist/cjs/index-93d47a75.js +1469 -0
  8. package/dist/cjs/index.cjs.js +16 -0
  9. package/dist/cjs/loader.cjs.js +21 -0
  10. package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
  11. package/dist/cjs/utils-ef28b844.js +27 -0
  12. package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
  13. package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
  14. package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
  15. package/dist/collection/assets/images/logo_gataca.svg +7 -0
  16. package/dist/collection/collection-manifest.json +17 -0
  17. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
  18. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +347 -0
  19. package/dist/collection/components/gataca-qr/components/qr/QR.js +5 -0
  20. package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +11 -0
  21. package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +4 -0
  22. package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +13 -0
  23. package/dist/collection/components/gataca-qr/components/success/Success.js +8 -0
  24. package/dist/collection/components/gataca-qr/gataca-qr.css +399 -0
  25. package/dist/collection/components/gataca-qr/gataca-qr.js +988 -0
  26. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +178 -0
  27. package/dist/collection/components/gataca-qrws/components/qr/QR.js +5 -0
  28. package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +11 -0
  29. package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +4 -0
  30. package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +13 -0
  31. package/dist/collection/components/gataca-qrws/components/success/Success.js +8 -0
  32. package/dist/collection/components/gataca-qrws/gataca-qrws.css +400 -0
  33. package/dist/collection/components/gataca-qrws/gataca-qrws.js +997 -0
  34. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
  35. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +981 -0
  36. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
  37. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +434 -0
  38. package/dist/collection/index.js +2 -0
  39. package/dist/collection/utils/index.js +1 -0
  40. package/dist/collection/utils/utils.js +22 -0
  41. package/dist/components/gat-icon-alert.js +30 -0
  42. package/dist/components/gataca-autoqr.js +163 -0
  43. package/dist/components/gataca-qr.js +6 -0
  44. package/dist/components/gataca-qr2.js +310 -0
  45. package/dist/components/gataca-qrdisplay.js +6 -0
  46. package/dist/components/gataca-qrdisplay2.js +95 -0
  47. package/dist/components/gataca-qrws.js +6 -0
  48. package/dist/components/gataca-qrws2.js +311 -0
  49. package/dist/components/gataca-ssibutton.js +6 -0
  50. package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +80 -10
  51. package/dist/components/gataca-ssibuttonws.js +6 -0
  52. package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +56 -8
  53. package/dist/components/index.js +8 -0
  54. package/dist/{gatacaqr/gat-icon-alert-13a1894e.js → esm/gat-icon-alert-7b06ef3a.js} +3 -1
  55. package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +6 -5
  56. package/dist/{gatacaqr/gataca-qr.entry.js → esm/gataca-qr_2.entry.js} +53 -12
  57. package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +9 -9
  58. package/dist/esm/gataca-ssibutton_2.entry.js +312 -0
  59. package/dist/esm/gatacaqr.js +17 -0
  60. package/dist/esm/index-2be54f32.js +1443 -0
  61. package/dist/esm/index.js +1 -0
  62. package/dist/esm/loader.js +17 -0
  63. package/dist/esm/polyfills/core-js.js +11 -0
  64. package/dist/esm/polyfills/css-shim.js +1 -0
  65. package/dist/esm/polyfills/dom.js +79 -0
  66. package/dist/esm/polyfills/es5-html-element.js +1 -0
  67. package/dist/esm/polyfills/index.js +34 -0
  68. package/dist/esm/polyfills/system.js +6 -0
  69. package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
  70. package/dist/gatacaqr/gatacaqr.esm.js +1 -129
  71. package/dist/gatacaqr/index.esm.js +1 -1
  72. package/dist/gatacaqr/p-0be4566d.js +1 -0
  73. package/dist/gatacaqr/p-0f339cfa.entry.js +1 -0
  74. package/dist/gatacaqr/p-1f784e14.entry.js +1 -0
  75. package/dist/gatacaqr/p-2cd7b062.js +1 -0
  76. package/dist/gatacaqr/p-5ae5f952.js +2 -0
  77. package/dist/gatacaqr/p-5e81ab9e.entry.js +1 -0
  78. package/dist/gatacaqr/p-92a2e6f0.entry.js +1 -0
  79. package/dist/gatacaqr/p-ea783014.js +1 -0
  80. package/dist/index.cjs.js +1 -0
  81. package/dist/index.js +1 -0
  82. package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +6 -0
  83. package/dist/types/components/gataca-qr/components/qr/QR.d.ts +2 -0
  84. package/dist/types/components/gataca-qr/gataca-qr.d.ts +7 -1
  85. package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +6 -0
  86. package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +2 -0
  87. package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +7 -1
  88. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +6 -0
  89. package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +6 -0
  90. package/dist/types/components.d.ts +49 -0
  91. package/package.json +1 -1
  92. package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
  93. package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
  94. package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
  95. package/dist/gatacaqr/gataca-qrdisplay-55780157.js +0 -97
  96. package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
  97. package/dist/gatacaqr/index-4bc6f36b.js +0 -3262
  98. package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
  99. /package/dist/{gatacaqr → esm}/utils-63e7a33b.js +0 -0
@@ -0,0 +1,347 @@
1
+ import { h, } from "@stencil/core";
2
+ const DEFAULT_REPOSITORY = "https://studio.gataca.io/api/v1/qrconfigs";
3
+ const fixFunctions = (data) => {
4
+ var _a, _b, _c, _d, _e, _f;
5
+ data.errorCallback = deserializeFunction((_a = data.errorCallback) === null || _a === void 0 ? void 0 : _a.toString());
6
+ data.successCallback = deserializeFunction((_b = data.successCallback) === null || _b === void 0 ? void 0 : _b.toString());
7
+ data.wsOnMessage = deserializeFunction((_c = data.wsOnMessage) === null || _c === void 0 ? void 0 : _c.toString());
8
+ data.wsOnOpen = deserializeFunction((_d = data.wsOnOpen) === null || _d === void 0 ? void 0 : _d.toString());
9
+ data.checkStatus = deserializeFunction((_e = data.checkStatus) === null || _e === void 0 ? void 0 : _e.toString());
10
+ data.createSession = deserializeFunction((_f = data.createSession) === null || _f === void 0 ? void 0 : _f.toString());
11
+ return data;
12
+ };
13
+ const deserializeFunction = (data) => {
14
+ if (data) {
15
+ return new Function("return " + data)();
16
+ }
17
+ return undefined;
18
+ };
19
+ export class GatacaAutoQR {
20
+ constructor() {
21
+ this.configId = undefined;
22
+ this.qrType = "svg";
23
+ this.configRepository = DEFAULT_REPOSITORY;
24
+ this.successCallback = undefined;
25
+ this.errorCallback = undefined;
26
+ this.checkStatus = undefined;
27
+ this.createSession = undefined;
28
+ this.wsOnOpen = undefined;
29
+ this.wsOnMessage = undefined;
30
+ this.config = undefined;
31
+ this.loading = undefined;
32
+ this.loading = true;
33
+ fetch(this.configRepository + "/" + this.configId, {
34
+ method: "GET",
35
+ headers: {
36
+ "Content-Type": "application/json",
37
+ },
38
+ })
39
+ .then((response) => {
40
+ response
41
+ .json()
42
+ .then((data) => {
43
+ data = fixFunctions(data);
44
+ this.config = data;
45
+ this.loading = false;
46
+ })
47
+ .catch((err) => {
48
+ console.log("Cannot retrieve selected config", err);
49
+ this.loading = false;
50
+ });
51
+ })
52
+ .catch((err) => {
53
+ console.log("Cannot retrieve selected config", err);
54
+ this.loading = false;
55
+ });
56
+ }
57
+ /**
58
+ * Retrieve manually the session data on a successful login
59
+ */
60
+ async getSessionData() {
61
+ return this.qr.getSessionData();
62
+ }
63
+ selectQR() {
64
+ if (this.config.useButton) {
65
+ if (this.config.useWs) {
66
+ this.qr = (h("gataca-ssibuttonws", { buttonText: this.config.buttonText, wsOnMessage: this.wsOnMessage || this.config.wsOnMessage, wsOnOpen: this.wsOnOpen || this.config.wsOnOpen, successCallback: this.successCallback || this.config.successCallback, errorCallback: this.errorCallback || this.config.errorCallback, qrType: this.qrType, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, socketEndpoint: this.config.socketEndpoint, autostart: true, autorefresh: this.config.autorefresh, v: this.config.v, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
67
+ }
68
+ else {
69
+ this.qr = (h("gataca-ssibutton", { buttonText: this.config.buttonText, checkStatus: this.checkStatus || this.config.checkStatus, createSession: this.createSession || this.config.createSession, successCallback: this.successCallback || this.config.successCallback, errorCallback: this.errorCallback || this.config.errorCallback, qrType: this.qrType, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, pollingFrequency: this.config.pollingFrequency, autorefresh: this.config.autorefresh, v: this.config.v, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
70
+ }
71
+ }
72
+ else {
73
+ if (this.config.useWs) {
74
+ this.qr = (h("gataca-qrws", { wsOnMessage: this.wsOnMessage || this.config.wsOnMessage, wsOnOpen: this.wsOnOpen || this.config.wsOnOpen, successCallback: this.successCallback || this.config.successCallback, qrType: this.qrType, errorCallback: this.errorCallback || this.config.errorCallback, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, socketEndpoint: this.config.socketEndpoint, autostart: this.config.autostart, autorefresh: this.config.autorefresh, v: this.config.v, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
75
+ }
76
+ else {
77
+ this.qr = (h("gataca-qr", { checkStatus: this.checkStatus || this.config.checkStatus, createSession: this.createSession || this.config.createSession, successCallback: this.successCallback || this.config.successCallback, qrType: this.qrType, errorCallback: this.errorCallback || this.config.errorCallback, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, pollingFrequency: this.config.pollingFrequency, autostart: this.config.autostart, autorefresh: this.config.autorefresh, v: this.config.v, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
78
+ }
79
+ }
80
+ }
81
+ render() {
82
+ if (this.loading) {
83
+ //TODO: Improve loading message
84
+ return h("div", null, "Loading...");
85
+ }
86
+ if (this.config) {
87
+ this.selectQR();
88
+ return this.qr;
89
+ }
90
+ //TODO: Improve error message
91
+ return h("div", null, "Error loading your config...");
92
+ }
93
+ static get is() { return "gataca-autoqr"; }
94
+ static get encapsulation() { return "shadow"; }
95
+ static get originalStyleUrls() {
96
+ return {
97
+ "$": ["gataca-autoqr.scss"]
98
+ };
99
+ }
100
+ static get styleUrls() {
101
+ return {
102
+ "$": ["gataca-autoqr.css"]
103
+ };
104
+ }
105
+ static get properties() {
106
+ return {
107
+ "configId": {
108
+ "type": "string",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "string",
112
+ "resolved": "string",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": "***Mandatory***\nID of the QR configuration to display"
120
+ },
121
+ "attribute": "config-id",
122
+ "reflect": false
123
+ },
124
+ "qrType": {
125
+ "type": "string",
126
+ "mutable": false,
127
+ "complexType": {
128
+ "original": "DrawType",
129
+ "resolved": "\"canvas\" | \"svg\"",
130
+ "references": {
131
+ "DrawType": {
132
+ "location": "import",
133
+ "path": "qr-code-styling"
134
+ }
135
+ }
136
+ },
137
+ "required": false,
138
+ "optional": true,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "_[Optional]_\nSets the qr type. It can be \"svg\" or \"canvas\". \"svg\" by default."
142
+ },
143
+ "attribute": "qr-type",
144
+ "reflect": false,
145
+ "defaultValue": "\"svg\""
146
+ },
147
+ "configRepository": {
148
+ "type": "string",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "string",
152
+ "resolved": "string",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": false,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": "___Optional___\nConfigURL Repository to download the config from"
160
+ },
161
+ "attribute": "config-repository",
162
+ "reflect": false,
163
+ "defaultValue": "DEFAULT_REPOSITORY"
164
+ },
165
+ "successCallback": {
166
+ "type": "unknown",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "(data?: any) => void",
170
+ "resolved": "(data?: any) => void",
171
+ "references": {}
172
+ },
173
+ "required": false,
174
+ "optional": false,
175
+ "docs": {
176
+ "tags": [],
177
+ "text": "***Mandatory***\nCallback fired upon session correctly verified\nIf not set, session validation wouldn't trigger any action\nThe session data and a possible token will be sent as parameters to the callback"
178
+ },
179
+ "defaultValue": "undefined"
180
+ },
181
+ "errorCallback": {
182
+ "type": "unknown",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "(error?: Error) => void",
186
+ "resolved": "(error?: Error) => void",
187
+ "references": {
188
+ "Error": {
189
+ "location": "global"
190
+ }
191
+ }
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "___Just for polling flavour___\n***Mandatory***\nCallback fired upon session expired or invalid\nIf not set, session error would not be handled\nAn error containing information will be passed as parameter"
198
+ },
199
+ "defaultValue": "undefined"
200
+ },
201
+ "checkStatus": {
202
+ "type": "unknown",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "(\n id?: string\n ) => Promise<{ result: RESULT_STATUS; data?: any }>",
206
+ "resolved": "(id?: string) => Promise<{ result: RESULT_STATUS; data?: any; }>",
207
+ "references": {
208
+ "Promise": {
209
+ "location": "global"
210
+ },
211
+ "RESULT_STATUS": {
212
+ "location": "import",
213
+ "path": "../../utils"
214
+ }
215
+ }
216
+ },
217
+ "required": false,
218
+ "optional": true,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": "___Just for polling flavour___\n***Mandatory***\nCheck status function to query the current status of the session\nThe function must query a client endpoint to check the status. That endpoint must return an error if the session has expired."
222
+ },
223
+ "defaultValue": "undefined"
224
+ },
225
+ "createSession": {
226
+ "type": "unknown",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "() => Promise<{\n sessionId: string;\n authenticationRequest?: string;\n }>",
230
+ "resolved": "() => Promise<{ sessionId: string; authenticationRequest?: string; }>",
231
+ "references": {
232
+ "Promise": {
233
+ "location": "global"
234
+ }
235
+ }
236
+ },
237
+ "required": false,
238
+ "optional": true,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "***Mandatory***\nCreate session function to generate a new Session\nUsing v=\"3\", it can provide just a session Id\nUsing another version, it must provide also the authentication request. The session Id is the id of the presentation definition"
242
+ },
243
+ "defaultValue": "undefined"
244
+ },
245
+ "wsOnOpen": {
246
+ "type": "unknown",
247
+ "mutable": false,
248
+ "complexType": {
249
+ "original": "(socket: WebSocket) => void",
250
+ "resolved": "(socket: WebSocket) => void",
251
+ "references": {
252
+ "WebSocket": {
253
+ "location": "global"
254
+ }
255
+ }
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "___Just for WS flavour___\n[Optional]\nFunction to send a message to the server upon socket creation"
262
+ }
263
+ },
264
+ "wsOnMessage": {
265
+ "type": "unknown",
266
+ "mutable": false,
267
+ "complexType": {
268
+ "original": "(socket: WebSocket, msg: MessageEvent) => void",
269
+ "resolved": "(socket: WebSocket, msg: MessageEvent<any>) => void",
270
+ "references": {
271
+ "WebSocket": {
272
+ "location": "global"
273
+ },
274
+ "MessageEvent": {
275
+ "location": "global"
276
+ }
277
+ }
278
+ },
279
+ "required": false,
280
+ "optional": false,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": "___Just for WS flavour___\n**RECOMMENDED**\nCallback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters.\nIf not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface\nIf used, an Event named **sessionMsg** must be triggered with a WSReponse as data"
284
+ }
285
+ }
286
+ };
287
+ }
288
+ static get states() {
289
+ return {
290
+ "config": {},
291
+ "loading": {}
292
+ };
293
+ }
294
+ static get events() {
295
+ return [{
296
+ "method": "gatacaLoginCompleted",
297
+ "name": "gatacaLoginCompleted",
298
+ "bubbles": true,
299
+ "cancelable": true,
300
+ "composed": true,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "GatacaLoginCompleted event, triggered with session data upon login success"
304
+ },
305
+ "complexType": {
306
+ "original": "any",
307
+ "resolved": "any",
308
+ "references": {}
309
+ }
310
+ }, {
311
+ "method": "gatacaLoginFailed",
312
+ "name": "gatacaLoginFailed",
313
+ "bubbles": true,
314
+ "cancelable": true,
315
+ "composed": true,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": "GatacaLoginFailed event, triggered with error upon login failure"
319
+ },
320
+ "complexType": {
321
+ "original": "any",
322
+ "resolved": "any",
323
+ "references": {}
324
+ }
325
+ }];
326
+ }
327
+ static get methods() {
328
+ return {
329
+ "getSessionData": {
330
+ "complexType": {
331
+ "signature": "() => Promise<any>",
332
+ "parameters": [],
333
+ "references": {
334
+ "Promise": {
335
+ "location": "global"
336
+ }
337
+ },
338
+ "return": "Promise<any>"
339
+ },
340
+ "docs": {
341
+ "text": "Retrieve manually the session data on a successful login",
342
+ "tags": []
343
+ }
344
+ }
345
+ };
346
+ }
347
+ }
@@ -0,0 +1,5 @@
1
+ import { h } from "@stencil/core";
2
+ export const QR = (props) => {
3
+ const { value, useLogo, logoSrc, size, qrType } = props;
4
+ return (h("gataca-qrdisplay", { qrData: value, rounded: true, qrType: qrType, size: size, "logo-size": useLogo ? 0.33 : 0, "logo-src": logoSrc }));
5
+ };
@@ -0,0 +1,11 @@
1
+ import { h } from "@stencil/core";
2
+ import { AnimatedLoader } from "./components/AnimatedLoader";
3
+ export const ReadQR = (props) => {
4
+ var _a;
5
+ const { modalWidth, readQrMessages, renderQR, url, sizeQR } = props;
6
+ return (h("div", { class: "blured", style: {
7
+ width: (modalWidth - 48).toString() + "px",
8
+ height: modalWidth ? ((_a = (modalWidth - 48)) === null || _a === void 0 ? void 0 : _a.toString()) + "px" : "",
9
+ } }, h("div", { id: "notify" }, h(AnimatedLoader, null), h("p", { class: "notify-text" }, readQrMessages === null || readQrMessages === void 0 ? void 0 :
10
+ readQrMessages.title, " "), h("p", { class: "notify-text bold" }, readQrMessages === null || readQrMessages === void 0 ? void 0 : readQrMessages.description)), h("div", { id: "qrwait" }, renderQR(url, false, sizeQR))));
11
+ };
@@ -0,0 +1,4 @@
1
+ import { h } from "@stencil/core";
2
+ export const AnimatedLoader = () => {
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
+ };
@@ -0,0 +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";
4
+ export const RetryButton = (props) => {
5
+ var _a;
6
+ const { errorMessage, modalWidth, clickInsideBoxLabel, refreshQrLabel, scanQrLabel, waitingStartSessionLabel, display, renderRetryQR, } = props;
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",
12
+ } }, h("img", { src: alertIcon, height: 24, width: 24 }), h("p", null, errorMessage)))), h("div", { id: "qrwait" }, renderRetryQR(waitingStartSessionLabel))));
13
+ };
@@ -0,0 +1,8 @@
1
+ import successIcon from "../../../../assets/icons/gat-icon-check.svg";
2
+ import { h } from "@stencil/core";
3
+ export const Success = (props) => {
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",
7
+ } }, h("img", { src: successIcon, height: 52, width: 52 }), h("p", { class: "successMsg" }, successLoginLabel)));
8
+ };