@gataca/qr 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/gataca-autoqr.cjs.entry.js +105 -0
- package/dist/cjs/gataca-qr_2.cjs.entry.js +219 -0
- package/dist/cjs/gataca-qrws.cjs.entry.js +176 -0
- package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +129 -0
- package/dist/cjs/gatacaqr.cjs.js +19 -0
- package/dist/cjs/index-4be0cdca.js +1435 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/logo_gataca-f3dc6840.js +14 -0
- package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
- package/dist/cjs/utils-383ee834.js +26 -0
- package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
- package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
- package/dist/collection/assets/images/logo_gataca.svg +26 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
- package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +323 -0
- package/dist/collection/components/gataca-qr/gataca-qr.css +261 -0
- package/dist/collection/components/gataca-qr/gataca-qr.js +828 -0
- package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +154 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.css +251 -0
- package/dist/collection/components/gataca-qrws/gataca-qrws.js +566 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
- package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +679 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
- package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +410 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/{gatacaqr/gat-icon-refresh-8d3dc25f.js → components/gat-icon-refresh.js} +23 -1
- package/dist/components/gataca-autoqr.js +161 -0
- package/dist/components/gataca-qr.js +6 -0
- package/dist/components/gataca-qr2.js +227 -0
- package/dist/components/gataca-qrdisplay.js +6 -0
- package/dist/components/gataca-qrdisplay2.js +93 -0
- package/dist/components/gataca-qrws.js +6 -0
- package/dist/components/gataca-qrws2.js +212 -0
- package/dist/components/gataca-ssibutton.js +6 -0
- package/dist/{gatacaqr/gataca-ssibutton.entry.js → components/gataca-ssibutton2.js} +83 -9
- package/dist/components/gataca-ssibuttonws.js +6 -0
- package/dist/{gatacaqr/gataca-ssibuttonws.entry.js → components/gataca-ssibuttonws2.js} +53 -7
- package/dist/components/index.js +8 -0
- package/dist/{gatacaqr → esm}/gataca-autoqr.entry.js +1 -1
- package/dist/esm/gataca-qr_2.entry.js +214 -0
- package/dist/{gatacaqr → esm}/gataca-qrws.entry.js +4 -4
- package/dist/esm/gataca-ssibutton_2.entry.js +124 -0
- package/dist/esm/gatacaqr.js +17 -0
- package/dist/esm/index-80311733.js +1409 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/logo_gataca-57ad0363.js +9 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
- package/dist/gatacaqr/gatacaqr.esm.js +1 -129
- package/dist/gatacaqr/index.esm.js +1 -1
- package/dist/gatacaqr/p-0be4566d.js +1 -0
- package/dist/gatacaqr/p-5b17ef39.entry.js +1 -0
- package/dist/gatacaqr/p-5eb106c0.entry.js +1 -0
- package/dist/gatacaqr/p-66ad21ac.entry.js +1 -0
- package/dist/gatacaqr/p-6adc6933.js +1 -0
- package/dist/gatacaqr/p-a5648391.js +2 -0
- package/dist/gatacaqr/p-b834ef88.entry.js +1 -0
- package/dist/gatacaqr/p-b8ba109f.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/gataca-qr/gataca-qr.d.ts +76 -1
- package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +75 -0
- package/dist/types/components.d.ts +242 -2
- package/package.json +2 -2
- package/dist/gatacaqr/app-globals-0f993ce5.js +0 -3
- package/dist/gatacaqr/css-shim-8eec97b3.js +0 -4
- package/dist/gatacaqr/dom-1b0cf05d.js +0 -73
- package/dist/gatacaqr/gataca-qr.entry.js +0 -171
- package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +0 -97
- package/dist/gatacaqr/gataca-qrdisplay.entry.js +0 -2
- package/dist/gatacaqr/index-d0db23e4.js +0 -3262
- package/dist/gatacaqr/shadow-css-146f2f6f.js +0 -387
- /package/dist/{gatacaqr → esm}/utils-05ba6c9f.js +0 -0
|
@@ -0,0 +1,323 @@
|
|
|
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.configRepository = DEFAULT_REPOSITORY;
|
|
23
|
+
this.successCallback = undefined;
|
|
24
|
+
this.errorCallback = undefined;
|
|
25
|
+
this.checkStatus = undefined;
|
|
26
|
+
this.createSession = undefined;
|
|
27
|
+
this.wsOnOpen = undefined;
|
|
28
|
+
this.wsOnMessage = undefined;
|
|
29
|
+
this.config = undefined;
|
|
30
|
+
this.loading = undefined;
|
|
31
|
+
this.loading = true;
|
|
32
|
+
fetch(this.configRepository + "/" + this.configId, {
|
|
33
|
+
method: "GET",
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json",
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
.then((response) => {
|
|
39
|
+
response
|
|
40
|
+
.json()
|
|
41
|
+
.then((data) => {
|
|
42
|
+
data = fixFunctions(data);
|
|
43
|
+
this.config = data;
|
|
44
|
+
this.loading = false;
|
|
45
|
+
})
|
|
46
|
+
.catch((err) => {
|
|
47
|
+
console.log("Cannot retrieve selected config", err);
|
|
48
|
+
this.loading = false;
|
|
49
|
+
});
|
|
50
|
+
})
|
|
51
|
+
.catch((err) => {
|
|
52
|
+
console.log("Cannot retrieve selected config", err);
|
|
53
|
+
this.loading = false;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Retrieve manually the session data on a successful login
|
|
58
|
+
*/
|
|
59
|
+
async getSessionData() {
|
|
60
|
+
return this.qr.getSessionData();
|
|
61
|
+
}
|
|
62
|
+
selectQR() {
|
|
63
|
+
if (this.config.useButton) {
|
|
64
|
+
if (this.config.useWs) {
|
|
65
|
+
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, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, socketEndpoint: this.config.socketEndpoint, autostart: true, autorefresh: this.config.autorefresh, v2: this.config.v2, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
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, qrRole: this.config.qrRole, callbackServer: this.config.callbackServer, sessionTimeout: this.config.sessionTimeout, pollingFrequency: this.config.pollingFrequency, autorefresh: this.config.autorefresh, v2: this.config.v2, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
if (this.config.useWs) {
|
|
73
|
+
this.qr = (h("gataca-qrws", { wsOnMessage: this.wsOnMessage || this.config.wsOnMessage, wsOnOpen: this.wsOnOpen || this.config.wsOnOpen, successCallback: this.successCallback || this.config.successCallback, 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, v2: this.config.v2, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.qr = (h("gataca-qr", { checkStatus: this.checkStatus || this.config.checkStatus, createSession: this.createSession || this.config.createSession, successCallback: this.successCallback || this.config.successCallback, 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, v2: this.config.v2, qrModalTitle: this.config.qrModalTitle, qrModalDescription: this.config.qrModalDescription, hideBrandTitle: this.config.hideBrandTitle, dynamicLink: this.config.dynamicLink }));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
if (this.loading) {
|
|
82
|
+
//TODO: Improve loading message
|
|
83
|
+
return h("div", null, "Loading...");
|
|
84
|
+
}
|
|
85
|
+
if (this.config) {
|
|
86
|
+
this.selectQR();
|
|
87
|
+
return this.qr;
|
|
88
|
+
}
|
|
89
|
+
//TODO: Improve error message
|
|
90
|
+
return h("div", null, "Error loading your config...");
|
|
91
|
+
}
|
|
92
|
+
static get is() { return "gataca-autoqr"; }
|
|
93
|
+
static get encapsulation() { return "shadow"; }
|
|
94
|
+
static get originalStyleUrls() {
|
|
95
|
+
return {
|
|
96
|
+
"$": ["gataca-autoqr.scss"]
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
static get styleUrls() {
|
|
100
|
+
return {
|
|
101
|
+
"$": ["gataca-autoqr.css"]
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
static get properties() {
|
|
105
|
+
return {
|
|
106
|
+
"configId": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "***Mandatory***\nID of the QR configuration to display"
|
|
119
|
+
},
|
|
120
|
+
"attribute": "config-id",
|
|
121
|
+
"reflect": false
|
|
122
|
+
},
|
|
123
|
+
"configRepository": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"mutable": false,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "string",
|
|
128
|
+
"resolved": "string",
|
|
129
|
+
"references": {}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "___Optional___\nConfigURL Repository to download the config from"
|
|
136
|
+
},
|
|
137
|
+
"attribute": "config-repository",
|
|
138
|
+
"reflect": false,
|
|
139
|
+
"defaultValue": "DEFAULT_REPOSITORY"
|
|
140
|
+
},
|
|
141
|
+
"successCallback": {
|
|
142
|
+
"type": "unknown",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "(data?: any) => void",
|
|
146
|
+
"resolved": "(data?: any) => void",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"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"
|
|
154
|
+
},
|
|
155
|
+
"defaultValue": "undefined"
|
|
156
|
+
},
|
|
157
|
+
"errorCallback": {
|
|
158
|
+
"type": "unknown",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "(error?: Error) => void",
|
|
162
|
+
"resolved": "(error?: Error) => void",
|
|
163
|
+
"references": {
|
|
164
|
+
"Error": {
|
|
165
|
+
"location": "global"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"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"
|
|
174
|
+
},
|
|
175
|
+
"defaultValue": "undefined"
|
|
176
|
+
},
|
|
177
|
+
"checkStatus": {
|
|
178
|
+
"type": "unknown",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "(\n id?: string\n ) => Promise<{ result: RESULT_STATUS; data?: any }>",
|
|
182
|
+
"resolved": "(id?: string) => Promise<{ result: RESULT_STATUS; data?: any; }>",
|
|
183
|
+
"references": {
|
|
184
|
+
"Promise": {
|
|
185
|
+
"location": "global"
|
|
186
|
+
},
|
|
187
|
+
"RESULT_STATUS": {
|
|
188
|
+
"location": "import",
|
|
189
|
+
"path": "../../utils"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": true,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"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."
|
|
198
|
+
},
|
|
199
|
+
"defaultValue": "undefined"
|
|
200
|
+
},
|
|
201
|
+
"createSession": {
|
|
202
|
+
"type": "unknown",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "() => Promise<{\n sessionId: string;\n authenticationRequest?: string;\n }>",
|
|
206
|
+
"resolved": "() => Promise<{ sessionId: string; authenticationRequest?: string; }>",
|
|
207
|
+
"references": {
|
|
208
|
+
"Promise": {
|
|
209
|
+
"location": "global"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "***Mandatory***\nCreate session function to generate a new Session\nUsing V1, it can provide just a session Id\nUsing V2, it must provide also the authentication request. The session Id is the id of the presentation definition"
|
|
218
|
+
},
|
|
219
|
+
"defaultValue": "undefined"
|
|
220
|
+
},
|
|
221
|
+
"wsOnOpen": {
|
|
222
|
+
"type": "unknown",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "(socket: WebSocket) => void",
|
|
226
|
+
"resolved": "(socket: WebSocket) => void",
|
|
227
|
+
"references": {
|
|
228
|
+
"WebSocket": {
|
|
229
|
+
"location": "global"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": false,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "___Just for WS flavour___\n[Optional]\nFunction to send a message to the server upon socket creation"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"wsOnMessage": {
|
|
241
|
+
"type": "unknown",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "(socket: WebSocket, msg: MessageEvent) => void",
|
|
245
|
+
"resolved": "(socket: WebSocket, msg: MessageEvent<any>) => void",
|
|
246
|
+
"references": {
|
|
247
|
+
"WebSocket": {
|
|
248
|
+
"location": "global"
|
|
249
|
+
},
|
|
250
|
+
"MessageEvent": {
|
|
251
|
+
"location": "global"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"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"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
static get states() {
|
|
265
|
+
return {
|
|
266
|
+
"config": {},
|
|
267
|
+
"loading": {}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
static get events() {
|
|
271
|
+
return [{
|
|
272
|
+
"method": "gatacaLoginCompleted",
|
|
273
|
+
"name": "gatacaLoginCompleted",
|
|
274
|
+
"bubbles": true,
|
|
275
|
+
"cancelable": true,
|
|
276
|
+
"composed": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "GatacaLoginCompleted event, triggered with session data upon login success"
|
|
280
|
+
},
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "any",
|
|
283
|
+
"resolved": "any",
|
|
284
|
+
"references": {}
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
"method": "gatacaLoginFailed",
|
|
288
|
+
"name": "gatacaLoginFailed",
|
|
289
|
+
"bubbles": true,
|
|
290
|
+
"cancelable": true,
|
|
291
|
+
"composed": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "GatacaLoginFailed event, triggered with error upon login failure"
|
|
295
|
+
},
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "any",
|
|
298
|
+
"resolved": "any",
|
|
299
|
+
"references": {}
|
|
300
|
+
}
|
|
301
|
+
}];
|
|
302
|
+
}
|
|
303
|
+
static get methods() {
|
|
304
|
+
return {
|
|
305
|
+
"getSessionData": {
|
|
306
|
+
"complexType": {
|
|
307
|
+
"signature": "() => Promise<any>",
|
|
308
|
+
"parameters": [],
|
|
309
|
+
"references": {
|
|
310
|
+
"Promise": {
|
|
311
|
+
"location": "global"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"return": "Promise<any>"
|
|
315
|
+
},
|
|
316
|
+
"docs": {
|
|
317
|
+
"text": "Retrieve manually the session data on a successful login",
|
|
318
|
+
"tags": []
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@100;300;400;500;600;700&display=swap");
|
|
2
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
3
|
+
v2.0 | 20110126
|
|
4
|
+
License: none (public domain)
|
|
5
|
+
*/
|
|
6
|
+
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap");
|
|
7
|
+
html, body, div, span, applet, object, iframe,
|
|
8
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
9
|
+
a, abbr, acronym, address, big, cite, code,
|
|
10
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
11
|
+
small, strike, strong, sub, sup, tt, var,
|
|
12
|
+
b, u, i, center,
|
|
13
|
+
dl, dt, dd, ol, ul, li,
|
|
14
|
+
fieldset, form, label, legend,
|
|
15
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
16
|
+
article, aside, canvas, details, embed,
|
|
17
|
+
figure, figcaption, footer, header, hgroup,
|
|
18
|
+
menu, nav, output, ruby, section, summary,
|
|
19
|
+
time, mark, audio, video {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
font-size: 100%;
|
|
24
|
+
font: inherit;
|
|
25
|
+
vertical-align: baseline;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* HTML5 display-role reset for older browsers */
|
|
29
|
+
article, aside, details, figcaption, figure,
|
|
30
|
+
footer, header, hgroup, menu, nav, section {
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
line-height: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
ol, ul {
|
|
39
|
+
list-style: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
blockquote, q {
|
|
43
|
+
quotes: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
blockquote:before, blockquote:after,
|
|
47
|
+
q:before, q:after {
|
|
48
|
+
content: "";
|
|
49
|
+
content: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
table {
|
|
53
|
+
border-collapse: collapse;
|
|
54
|
+
border-spacing: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
QR COMPONENT
|
|
59
|
+
*/
|
|
60
|
+
.img-fluid {
|
|
61
|
+
height: auto;
|
|
62
|
+
max-width: 50%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
img {
|
|
66
|
+
margin-left: auto;
|
|
67
|
+
margin-right: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.brandSection {
|
|
71
|
+
padding-top: 5px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
.brandSection .gatacaImgSmall {
|
|
76
|
+
height: 13px;
|
|
77
|
+
width: 13px;
|
|
78
|
+
margin: 0;
|
|
79
|
+
margin-right: 10px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.popUpContainer .modal-window {
|
|
83
|
+
position: relative;
|
|
84
|
+
border-radius: 6px;
|
|
85
|
+
color: rgba(24, 27, 94, 0.8);
|
|
86
|
+
box-shadow: 0px 3px 10px rgba(48, 48, 48, 0.1);
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
align-items: center;
|
|
91
|
+
display: flex;
|
|
92
|
+
z-index: 1001;
|
|
93
|
+
width: 300px;
|
|
94
|
+
padding: 1px;
|
|
95
|
+
background-color: white;
|
|
96
|
+
min-height: 350px;
|
|
97
|
+
border-radius: 12px;
|
|
98
|
+
-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
|
|
99
|
+
transition: opacity 0.5s, visibility 0s 0.5s;
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
.popUpContainer .modal-window__content {
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
text-align: left;
|
|
107
|
+
}
|
|
108
|
+
.popUpContainer .modal-window p {
|
|
109
|
+
font-family: "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-weight: 700;
|
|
113
|
+
line-height: 24px;
|
|
114
|
+
margin-top: 10px;
|
|
115
|
+
letter-spacing: 1px;
|
|
116
|
+
color: #1e1e20;
|
|
117
|
+
}
|
|
118
|
+
.popUpContainer .modal-window .qrTitleContainer {
|
|
119
|
+
padding: 14px 24px;
|
|
120
|
+
padding-bottom: 0px;
|
|
121
|
+
}
|
|
122
|
+
.popUpContainer .modal-window .qrTitle {
|
|
123
|
+
font-size: 20px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
line-height: 23.5px;
|
|
126
|
+
}
|
|
127
|
+
.popUpContainer .modal-window .qrDescription {
|
|
128
|
+
font-weight: 400;
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
line-height: 16.5px;
|
|
131
|
+
padding-top: 12px;
|
|
132
|
+
padding-bottom: 5px;
|
|
133
|
+
color: #A1A1A1;
|
|
134
|
+
}
|
|
135
|
+
.popUpContainer .modal-window .bold {
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
}
|
|
138
|
+
.popUpContainer .modal-window .qrBrand {
|
|
139
|
+
margin-top: 4px;
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
line-height: 16.5px;
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
}
|
|
146
|
+
.popUpContainer .modal-window .qrBrand img {
|
|
147
|
+
margin-left: 5px;
|
|
148
|
+
height: 12px;
|
|
149
|
+
}
|
|
150
|
+
.popUpContainer .modal-window .qr-section {
|
|
151
|
+
width: 252px;
|
|
152
|
+
height: 252px;
|
|
153
|
+
}
|
|
154
|
+
.popUpContainer .reload {
|
|
155
|
+
height: 252px;
|
|
156
|
+
width: 252px;
|
|
157
|
+
border: 1px dashed #A1A1A1;
|
|
158
|
+
border-radius: 12px;
|
|
159
|
+
position: relative;
|
|
160
|
+
margin: 24px;
|
|
161
|
+
display: flex;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
align-items: center;
|
|
164
|
+
}
|
|
165
|
+
.popUpContainer #qrwait {
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
}
|
|
169
|
+
.popUpContainer #qrwait,
|
|
170
|
+
.popUpContainer #notify {
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
top: 0;
|
|
174
|
+
left: 0;
|
|
175
|
+
border-radius: 20px;
|
|
176
|
+
}
|
|
177
|
+
.popUpContainer #notify {
|
|
178
|
+
z-index: 10;
|
|
179
|
+
background-color: gray;
|
|
180
|
+
position: absolute;
|
|
181
|
+
justify-self: center;
|
|
182
|
+
justify-items: center;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
align-items: center;
|
|
185
|
+
align-content: center;
|
|
186
|
+
align-self: center;
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
padding: 24px;
|
|
190
|
+
box-sizing: border-box;
|
|
191
|
+
/* Auto layout */
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
align-items: center;
|
|
196
|
+
padding: 20px;
|
|
197
|
+
background: rgba(255, 255, 255, 0.9);
|
|
198
|
+
/* Grey Colors/Grey 400 */
|
|
199
|
+
}
|
|
200
|
+
.popUpContainer .notify-text {
|
|
201
|
+
font-family: "Work Sans";
|
|
202
|
+
font-style: normal;
|
|
203
|
+
font-weight: 400;
|
|
204
|
+
font-size: 14px;
|
|
205
|
+
line-height: 16px;
|
|
206
|
+
text-align: center;
|
|
207
|
+
font-feature-settings: "salt" on;
|
|
208
|
+
color: #8B8B8B;
|
|
209
|
+
flex: none;
|
|
210
|
+
order: 1;
|
|
211
|
+
align-self: stretch;
|
|
212
|
+
flex-grow: 0;
|
|
213
|
+
}
|
|
214
|
+
.popUpContainer .alert {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: row;
|
|
217
|
+
align-items: center;
|
|
218
|
+
justify-content: start;
|
|
219
|
+
width: 252px;
|
|
220
|
+
position: absolute;
|
|
221
|
+
bottom: 0;
|
|
222
|
+
background: #FFE5E5;
|
|
223
|
+
border-radius: 12px;
|
|
224
|
+
}
|
|
225
|
+
.popUpContainer .alert img {
|
|
226
|
+
margin: 12px;
|
|
227
|
+
}
|
|
228
|
+
.popUpContainer .alert p {
|
|
229
|
+
font-weight: 400;
|
|
230
|
+
font-size: 14px;
|
|
231
|
+
line-height: 16px;
|
|
232
|
+
color: black;
|
|
233
|
+
}
|
|
234
|
+
.popUpContainer .success {
|
|
235
|
+
display: flex;
|
|
236
|
+
height: 300px;
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
align-items: center;
|
|
240
|
+
padding: 0px;
|
|
241
|
+
}
|
|
242
|
+
.popUpContainer .success .successMsg {
|
|
243
|
+
line-height: 23.5px;
|
|
244
|
+
color: var(--neutral-1000, #1E1E20);
|
|
245
|
+
text-align: center;
|
|
246
|
+
/* Heading/6 */
|
|
247
|
+
font-family: "Ubuntu", "Work Sans", "Helvetica Neue", sans-serif;
|
|
248
|
+
font-size: 20px;
|
|
249
|
+
font-style: normal;
|
|
250
|
+
font-weight: 700;
|
|
251
|
+
line-height: 24px;
|
|
252
|
+
/* 120% */
|
|
253
|
+
}
|
|
254
|
+
.popUpContainer .is-visible {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
visibility: visible;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.is-transparent {
|
|
260
|
+
opacity: 0;
|
|
261
|
+
}
|