@gataca/qr 2.0.1 → 2.0.2

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 (65) hide show
  1. package/dist/gatacaqr/app-globals-0f993ce5.js +3 -0
  2. package/dist/gatacaqr/css-shim-8eec97b3.js +4 -0
  3. package/dist/gatacaqr/dom-1b0cf05d.js +73 -0
  4. package/dist/{components/gat-icon-refresh.js → gatacaqr/gat-icon-refresh-8d3dc25f.js} +1 -23
  5. package/dist/{components/gataca-autoqr.js → gatacaqr/gataca-autoqr.entry.js} +7 -69
  6. package/dist/{components/gataca-qr2.js → gatacaqr/gataca-qr.entry.js} +9 -49
  7. package/dist/gatacaqr/gataca-qrdisplay-0320bb25.js +97 -0
  8. package/dist/gatacaqr/gataca-qrdisplay.entry.js +2 -0
  9. package/dist/{components/gataca-qrws2.js → gatacaqr/gataca-qrws.entry.js} +9 -49
  10. package/dist/{components/gataca-ssibutton2.js → gatacaqr/gataca-ssibutton.entry.js} +8 -52
  11. package/dist/{components/gataca-ssibuttonws2.js → gatacaqr/gataca-ssibuttonws.entry.js} +7 -53
  12. package/dist/gatacaqr/gatacaqr.esm.js +129 -1
  13. package/dist/gatacaqr/index-d0db23e4.js +3262 -0
  14. package/dist/gatacaqr/index.esm.js +1 -1
  15. package/dist/gatacaqr/shadow-css-146f2f6f.js +387 -0
  16. package/package.json +1 -1
  17. package/dist/cjs/gataca-autoqr_6.cjs.entry.js +0 -624
  18. package/dist/cjs/gatacaqr.cjs.js +0 -19
  19. package/dist/cjs/index-0b7a1532.js +0 -1410
  20. package/dist/cjs/index.cjs.js +0 -16
  21. package/dist/cjs/loader.cjs.js +0 -21
  22. package/dist/cjs/utils-383ee834.js +0 -26
  23. package/dist/collection/assets/icons/gat-icon-alert.svg +0 -5
  24. package/dist/collection/assets/icons/gat-icon-check.svg +0 -5
  25. package/dist/collection/assets/icons/gat-icon-refresh.svg +0 -4
  26. package/dist/collection/assets/images/logo_gataca.svg +0 -26
  27. package/dist/collection/collection-manifest.json +0 -17
  28. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +0 -116
  29. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +0 -325
  30. package/dist/collection/components/gataca-qr/gataca-qr.css +0 -251
  31. package/dist/collection/components/gataca-qr/gataca-qr.js +0 -557
  32. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +0 -154
  33. package/dist/collection/components/gataca-qrws/gataca-qrws.css +0 -251
  34. package/dist/collection/components/gataca-qrws/gataca-qrws.js +0 -566
  35. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +0 -116
  36. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +0 -395
  37. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +0 -116
  38. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +0 -410
  39. package/dist/collection/index.js +0 -2
  40. package/dist/collection/utils/index.js +0 -1
  41. package/dist/collection/utils/utils.js +0 -21
  42. package/dist/components/gataca-qr.js +0 -6
  43. package/dist/components/gataca-qrdisplay.js +0 -6
  44. package/dist/components/gataca-qrdisplay2.js +0 -93
  45. package/dist/components/gataca-qrws.js +0 -6
  46. package/dist/components/gataca-ssibutton.js +0 -6
  47. package/dist/components/gataca-ssibuttonws.js +0 -6
  48. package/dist/components/index.js +0 -8
  49. package/dist/esm/gataca-autoqr_6.entry.js +0 -615
  50. package/dist/esm/gatacaqr.js +0 -17
  51. package/dist/esm/index-19eef502.js +0 -1384
  52. package/dist/esm/index.js +0 -1
  53. package/dist/esm/loader.js +0 -17
  54. package/dist/esm/polyfills/core-js.js +0 -11
  55. package/dist/esm/polyfills/css-shim.js +0 -1
  56. package/dist/esm/polyfills/dom.js +0 -79
  57. package/dist/esm/polyfills/es5-html-element.js +0 -1
  58. package/dist/esm/polyfills/index.js +0 -34
  59. package/dist/esm/polyfills/system.js +0 -6
  60. package/dist/gatacaqr/p-4807b345.entry.js +0 -1
  61. package/dist/gatacaqr/p-a6f85341.js +0 -2
  62. package/dist/gatacaqr/p-b8ba109f.js +0 -1
  63. package/dist/index.cjs.js +0 -1
  64. package/dist/index.js +0 -1
  65. /package/dist/{esm → gatacaqr}/utils-05ba6c9f.js +0 -0
@@ -1,6 +1,7 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode, g as gatIconCheckSvg, a as gatIconRefreshSvg, d as gatIconAlertSvg } from './gat-icon-refresh.js';
3
- import { l as logoGatacaSvg, d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
1
+ import { r as registerInstance, e as createEvent, h } from './index-d0db23e4.js';
2
+ import { g as gatIconCheckSvg, a as gatIconRefreshSvg, b as gatIconAlertSvg } from './gat-icon-refresh-8d3dc25f.js';
3
+ import { l as logoGatacaSvg } from './gataca-qrdisplay-0320bb25.js';
4
+ import { R as RESULT_STATUS, c as checkMobile, b as base64UrlEncode } from './utils-05ba6c9f.js';
4
5
 
5
6
  const gatacaQrwsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400&display=swap\"); html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}.img-fluid{height:auto;max-width:50%}img{margin-left:auto;margin-right:auto}.brandSection{padding-top:5px;display:flex;align-items:center}.brandSection .gatacaImgSmall{height:13px;width:13px;margin:0;margin-right:10px}.popUpContainer .modal-window{position:relative;border-radius:6px;color:rgba(24, 27, 94, 0.8);box-shadow:0px 3px 10px rgba(48, 48, 48, 0.1);display:flex;flex-direction:column;justify-content:space-between;align-items:center;display:flex;z-index:1001;width:300px;min-height:408px;padding:1px;background-color:white;border-radius:12px;-webkit-transition:opacity 0.5s, visibility 0s 0.5s;transition:opacity 0.5s, visibility 0s 0.5s;visibility:hidden;opacity:0}.popUpContainer .modal-window__content{width:100%;height:100%;text-align:left}.popUpContainer .modal-window p{font-family:\"Work Sans\", \"Helvetica Neue\", sans-serif;font-weight:normal;font-size:12px;letter-spacing:1px;color:#181B5E}.popUpContainer .modal-window .qrTitleContainer{padding:24px;padding-bottom:0px}.popUpContainer .modal-window .qrTitle{font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .modal-window .qrDescription{font-weight:400;font-size:14px;line-height:16.5px;padding-top:12px;padding-bottom:5px;color:#A1A1A1}.popUpContainer .modal-window .bold{font-weight:600}.popUpContainer .modal-window .qrBrand{margin-top:4px;font-size:14px;font-weight:400;line-height:16.5px;display:flex;align-items:center}.popUpContainer .modal-window .qrBrand img{margin-left:5px;height:12px}.popUpContainer .modal-window .qr-section{width:252px;height:252px}.popUpContainer .reload{height:252px;width:252px;border:1px dashed #A1A1A1;border-radius:12px;position:relative;margin:24px;display:flex;justify-content:center;align-items:center}.popUpContainer #qrwait{display:flex;justify-content:center}.popUpContainer #qrwait,.popUpContainer #notify{width:100%;height:100%;top:0;left:0;border-radius:20px}.popUpContainer #notify{z-index:10;background-color:gray;position:absolute;justify-self:center;justify-items:center;justify-content:center;align-items:center;align-content:center;align-self:center;display:flex;flex-direction:column;padding:24px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:rgba(255, 255, 255, 0.9);}.popUpContainer .notify-text{font-family:\"Work Sans\";font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;font-feature-settings:\"salt\" on;color:#8B8B8B;flex:none;order:1;align-self:stretch;flex-grow:0}.popUpContainer .alert{display:flex;flex-direction:row;align-items:center;justify-content:start;width:252px;position:absolute;bottom:0;background:#FFE5E5;border-radius:12px}.popUpContainer .alert img{margin:12px}.popUpContainer .alert p{font-weight:400;font-size:14px;line-height:16px;color:black}.popUpContainer .success{display:flex;height:300px;flex-direction:column;justify-content:center;align-items:center;padding:0px}.popUpContainer .success .successMsg{margin-top:20px;font-size:20px;font-weight:600;line-height:23.5px}.popUpContainer .is-visible{opacity:1;visibility:visible}.is-transparent{opacity:0}";
6
7
 
@@ -11,8 +12,8 @@ const FUNCTION_ROLES = {
11
12
  connect: "scan",
12
13
  certify: "credential",
13
14
  };
14
- const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
- constructor() { super(); this.__registerHost(); this.__attachShadow(); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideBrandTitle = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
15
+ const GatacaQRWS = class {
16
+ constructor(hostRef) { registerInstance(this, hostRef); this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7); this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7); this.successCallback = undefined; this.errorCallback = undefined; this.qrRole = undefined; this.callbackServer = undefined; this.socketEndpoint = undefined; this.sessionTimeout = DEFAULT_SESSION_TIMEOUT; this.wsOnOpen = undefined; this.wsOnMessage = undefined; this.autostart = true; this.autorefresh = false; this.v2 = false; this.qrModalTitle = "Quick Access"; this.qrModalDescription = "Sign up or sign in by scanning the QR Code with the Gataca Wallet"; this.hideBrandTitle = false; this.dynamicLink = true; this.sessionId = undefined; this.authenticationRequest = undefined; this.sessionData = undefined; this.result = RESULT_STATUS.NOT_STARTED; }
16
17
  disconnectedCallback() {
17
18
  this.stop();
18
19
  }
@@ -165,48 +166,7 @@ const GatacaQRWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
165
166
  event.stopPropagation();
166
167
  } }, h("div", { class: "modal-window__content" }, h("div", { class: "qrTitleContainer" }, h("p", { class: "qrTitle" }, this.qrModalTitle), !this.hideBrandTitle && (h("p", { class: "qrBrand" }, "by Gataca", " ", h("span", null, h("img", { src: logoGatacaSvg })))), this.result !== RESULT_STATUS.SUCCESS && (h("p", { class: "qrDescription" }, this.qrModalDescription))), h("div", { class: "qrSection" }, this.renderQRSection())))));
167
168
  }
168
- static get style() { return gatacaQrwsCss; }
169
- }, [1, "gataca-qrws", {
170
- "successCallback": [16],
171
- "errorCallback": [16],
172
- "qrRole": [1, "qr-role"],
173
- "callbackServer": [1, "callback-server"],
174
- "socketEndpoint": [1, "socket-endpoint"],
175
- "sessionTimeout": [2, "session-timeout"],
176
- "wsOnOpen": [16],
177
- "wsOnMessage": [16],
178
- "autostart": [4],
179
- "autorefresh": [4],
180
- "v2": [4, "v-2"],
181
- "qrModalTitle": [1, "qr-modal-title"],
182
- "qrModalDescription": [1, "qr-modal-description"],
183
- "hideBrandTitle": [4, "hide-brand-title"],
184
- "dynamicLink": [4, "dynamic-link"],
185
- "sessionId": [32],
186
- "authenticationRequest": [32],
187
- "sessionData": [32],
188
- "result": [32],
189
- "display": [64],
190
- "stop": [64],
191
- "getSessionData": [64]
192
- }, [[2, "sessionMsg", "sessionMsgReceived"]]]);
193
- function defineCustomElement() {
194
- if (typeof customElements === "undefined") {
195
- return;
196
- }
197
- const components = ["gataca-qrws", "gataca-qrdisplay"];
198
- components.forEach(tagName => { switch (tagName) {
199
- case "gataca-qrws":
200
- if (!customElements.get(tagName)) {
201
- customElements.define(tagName, GatacaQRWS);
202
- }
203
- break;
204
- case "gataca-qrdisplay":
205
- if (!customElements.get(tagName)) {
206
- defineCustomElement$1();
207
- }
208
- break;
209
- } });
210
- }
169
+ };
170
+ GatacaQRWS.style = gatacaQrwsCss;
211
171
 
212
- export { GatacaQRWS as G, defineCustomElement as d };
172
+ export { GatacaQRWS as gataca_qrws };
@@ -1,15 +1,12 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$1 } from './gataca-qrdisplay2.js';
3
- import { d as defineCustomElement$2 } from './gataca-qr2.js';
1
+ import { r as registerInstance, e as createEvent, h } from './index-d0db23e4.js';
2
+ import './gataca-qrdisplay-0320bb25.js';
4
3
 
5
4
  const gatacaSsibuttonCss = "@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}";
6
5
 
7
6
  const PHONE_ICON = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHvSURBVHgB3ZZPTttAFMbfe3YjL7qYLopcpZXSG7Q3CDfIsqrSJpyg5QQtJ2h7glgUdVs4AeEE5AYEQSDAgtnw357Hm0hAQDaeIRFCfFKyeKPxzzPzvc+DUKCZN80GEv1ABgWOQgSdGbOwv7u0nDueV4zjTzUIKhuAZna4vdQFR828azbI0K/TI/qodaLvjlP+tLDGDCs+IKv9Lbsi7kcv0w9541Q0EREPYcoieEQ9KiyECRXHzbpBUOcnYTfPFOOaaGVx9WsLiDrSIp0iU0wFNgIx/AQyc9I/OmOjy+Y8aBvHQcDUYebewc6/Xtk8J5htcg5efEPGhk0JtqkyBjo7DuZcnuO2sqCyKv8rUDmfTS9IBURqBAL+I6CkzBjOMOs22TLY21n8fl17KzXR3uDvb/CQk0GEdfvN07QvpnAOaGfYaRT25JzU6+rnG2tTpcWAy+Cp0m3U/URLms8HWfg/rn6RFaGSs9KQkZMpvGBWNs2Vandt46ac6YNBuc0fDLMaOU5DFybQ8039p/KJ4bq4rwPewtqoM/1gsCm/NfBXvWjgHhhuDAeLyd3qVSifHQULeZkou9EqemLhmUmav8qrZ4GEMGA7ivzjKvfeqGptFV2YdWPMPHHq0cCh3DdpVdLl/XCY9J1gVvbCiWa6N+JLocPFjCsx9cAAAAAASUVORK5CYII=";
8
- const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
7
+ const GatacaSSIButton = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
13
10
  this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
14
11
  this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
15
12
  this.buttonText = "Easy login";
@@ -53,48 +50,7 @@ const GatacaSSIButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
53
50
  render() {
54
51
  return (h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
55
52
  }
56
- static get style() { return gatacaSsibuttonCss; }
57
- }, [1, "gataca-ssibutton", {
58
- "buttonText": [1, "button-text"],
59
- "checkStatus": [16],
60
- "createSession": [16],
61
- "successCallback": [16],
62
- "errorCallback": [16],
63
- "qrRole": [1, "qr-role"],
64
- "callbackServer": [1, "callback-server"],
65
- "sessionTimeout": [2, "session-timeout"],
66
- "pollingFrequency": [2, "polling-frequency"],
67
- "autorefresh": [4],
68
- "v2": [4, "v-2"],
69
- "qrModalTitle": [1, "qr-modal-title"],
70
- "qrModalDescription": [1, "qr-modal-description"],
71
- "hideBrandTitle": [4, "hide-brand-title"],
72
- "dynamicLink": [4, "dynamic-link"],
73
- "open": [32],
74
- "getSessionData": [64]
75
- }]);
76
- function defineCustomElement() {
77
- if (typeof customElements === "undefined") {
78
- return;
79
- }
80
- const components = ["gataca-ssibutton", "gataca-qr", "gataca-qrdisplay"];
81
- components.forEach(tagName => { switch (tagName) {
82
- case "gataca-ssibutton":
83
- if (!customElements.get(tagName)) {
84
- customElements.define(tagName, GatacaSSIButton);
85
- }
86
- break;
87
- case "gataca-qr":
88
- if (!customElements.get(tagName)) {
89
- defineCustomElement$2();
90
- }
91
- break;
92
- case "gataca-qrdisplay":
93
- if (!customElements.get(tagName)) {
94
- defineCustomElement$1();
95
- }
96
- break;
97
- } });
98
- }
53
+ };
54
+ GatacaSSIButton.style = gatacaSsibuttonCss;
99
55
 
100
- export { GatacaSSIButton as G, defineCustomElement as d };
56
+ export { GatacaSSIButton as gataca_ssibutton };
@@ -1,15 +1,11 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './gataca-qrdisplay2.js';
3
- import { d as defineCustomElement$1 } from './gataca-qrws2.js';
1
+ import { r as registerInstance, e as createEvent, h } from './index-d0db23e4.js';
4
2
 
5
3
  const gatacaSsibuttonwsCss = "@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}";
6
4
 
7
5
  const PHONE_ICON = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHvSURBVHgB3ZZPTttAFMbfe3YjL7qYLopcpZXSG7Q3CDfIsqrSJpyg5QQtJ2h7glgUdVs4AeEE5AYEQSDAgtnw357Hm0hAQDaeIRFCfFKyeKPxzzPzvc+DUKCZN80GEv1ABgWOQgSdGbOwv7u0nDueV4zjTzUIKhuAZna4vdQFR828azbI0K/TI/qodaLvjlP+tLDGDCs+IKv9Lbsi7kcv0w9541Q0EREPYcoieEQ9KiyECRXHzbpBUOcnYTfPFOOaaGVx9WsLiDrSIp0iU0wFNgIx/AQyc9I/OmOjy+Y8aBvHQcDUYebewc6/Xtk8J5htcg5efEPGhk0JtqkyBjo7DuZcnuO2sqCyKv8rUDmfTS9IBURqBAL+I6CkzBjOMOs22TLY21n8fl17KzXR3uDvb/CQk0GEdfvN07QvpnAOaGfYaRT25JzU6+rnG2tTpcWAy+Cp0m3U/URLms8HWfg/rn6RFaGSs9KQkZMpvGBWNs2Vandt46ac6YNBuc0fDLMaOU5DFybQ8039p/KJ4bq4rwPewtqoM/1gsCm/NfBXvWjgHhhuDAeLyd3qVSifHQULeZkou9EqemLhmUmav8qrZ4GEMGA7ivzjKvfeqGptFV2YdWPMPHHq0cCh3DdpVdLl/XCY9J1gVvbCiWa6N+JLocPFjCsx9cAAAAAASUVORK5CYII=";
8
- const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
6
+ const GatacaSSIButtonWS = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
13
9
  this.gatacaLoginCompleted = createEvent(this, "gatacaLoginCompleted", 7);
14
10
  this.gatacaLoginFailed = createEvent(this, "gatacaLoginFailed", 7);
15
11
  this.buttonText = "Easy login";
@@ -54,49 +50,7 @@ const GatacaSSIButtonWS = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
54
50
  render() {
55
51
  return (h("div", { class: "buttonContainer" }, this.renderButton(), this.open && this.renderModal()));
56
52
  }
57
- static get style() { return gatacaSsibuttonwsCss; }
58
- }, [1, "gataca-ssibuttonws", {
59
- "buttonText": [1, "button-text"],
60
- "successCallback": [16],
61
- "errorCallback": [16],
62
- "qrRole": [1, "qr-role"],
63
- "callbackServer": [1, "callback-server"],
64
- "socketEndpoint": [1, "socket-endpoint"],
65
- "sessionTimeout": [2, "session-timeout"],
66
- "wsOnOpen": [16],
67
- "wsOnMessage": [16],
68
- "autostart": [4],
69
- "autorefresh": [4],
70
- "v2": [4, "v-2"],
71
- "qrModalTitle": [1, "qr-modal-title"],
72
- "qrModalDescription": [1, "qr-modal-description"],
73
- "hideBrandTitle": [4, "hide-brand-title"],
74
- "dynamicLink": [4, "dynamic-link"],
75
- "open": [32],
76
- "getSessionData": [64]
77
- }]);
78
- function defineCustomElement() {
79
- if (typeof customElements === "undefined") {
80
- return;
81
- }
82
- const components = ["gataca-ssibuttonws", "gataca-qrdisplay", "gataca-qrws"];
83
- components.forEach(tagName => { switch (tagName) {
84
- case "gataca-ssibuttonws":
85
- if (!customElements.get(tagName)) {
86
- customElements.define(tagName, GatacaSSIButtonWS);
87
- }
88
- break;
89
- case "gataca-qrdisplay":
90
- if (!customElements.get(tagName)) {
91
- defineCustomElement$2();
92
- }
93
- break;
94
- case "gataca-qrws":
95
- if (!customElements.get(tagName)) {
96
- defineCustomElement$1();
97
- }
98
- break;
99
- } });
100
- }
53
+ };
54
+ GatacaSSIButtonWS.style = gatacaSsibuttonwsCss;
101
55
 
102
- export { GatacaSSIButtonWS as G, defineCustomElement as d };
56
+ export { GatacaSSIButtonWS as gataca_ssibuttonws };
@@ -1 +1,129 @@
1
- import{p as e,b as s}from"./p-a6f85341.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),e(a)})().then((e=>s([["p-4807b345",[[1,"gataca-autoqr",{configId:[1,"config-id"],configRepository:[1,"config-repository"],successCallback:[16],errorCallback:[16],checkStatus:[16],createSession:[16],wsOnOpen:[16],wsOnMessage:[16],config:[32],loading:[32],getSessionData:[64]}],[1,"gataca-ssibutton",{buttonText:[1,"button-text"],checkStatus:[16],createSession:[16],successCallback:[16],errorCallback:[16],qrRole:[1,"qr-role"],callbackServer:[1,"callback-server"],sessionTimeout:[2,"session-timeout"],pollingFrequency:[2,"polling-frequency"],autorefresh:[4],v2:[4,"v-2"],qrModalTitle:[1,"qr-modal-title"],qrModalDescription:[1,"qr-modal-description"],hideBrandTitle:[4,"hide-brand-title"],dynamicLink:[4,"dynamic-link"],open:[32],getSessionData:[64]}],[1,"gataca-ssibuttonws",{buttonText:[1,"button-text"],successCallback:[16],errorCallback:[16],qrRole:[1,"qr-role"],callbackServer:[1,"callback-server"],socketEndpoint:[1,"socket-endpoint"],sessionTimeout:[2,"session-timeout"],wsOnOpen:[16],wsOnMessage:[16],autostart:[4],autorefresh:[4],v2:[4,"v-2"],qrModalTitle:[1,"qr-modal-title"],qrModalDescription:[1,"qr-modal-description"],hideBrandTitle:[4,"hide-brand-title"],dynamicLink:[4,"dynamic-link"],open:[32],getSessionData:[64]}],[1,"gataca-qr",{checkStatus:[16],createSession:[16],successCallback:[16],errorCallback:[16],qrRole:[1,"qr-role"],callbackServer:[1,"callback-server"],autostart:[4],autorefresh:[4],v2:[4,"v-2"],qrModalTitle:[1,"qr-modal-title"],qrModalDescription:[1,"qr-modal-description"],hideBrandTitle:[4,"hide-brand-title"],sessionTimeout:[2,"session-timeout"],pollingFrequency:[2,"polling-frequency"],dynamicLink:[4,"dynamic-link"],sessionId:[32],authenticationRequest:[32],sessionData:[32],result:[32],display:[64],stop:[64],getSessionData:[64]}],[1,"gataca-qrws",{successCallback:[16],errorCallback:[16],qrRole:[1,"qr-role"],callbackServer:[1,"callback-server"],socketEndpoint:[1,"socket-endpoint"],sessionTimeout:[2,"session-timeout"],wsOnOpen:[16],wsOnMessage:[16],autostart:[4],autorefresh:[4],v2:[4,"v-2"],qrModalTitle:[1,"qr-modal-title"],qrModalDescription:[1,"qr-modal-description"],hideBrandTitle:[4,"hide-brand-title"],dynamicLink:[4,"dynamic-link"],sessionId:[32],authenticationRequest:[32],sessionData:[32],result:[32],display:[64],stop:[64],getSessionData:[64]},[[2,"sessionMsg","sessionMsgReceived"]]],[0,"gataca-qrdisplay",{qrData:[1,"qr-data"],size:[2],logoSize:[2,"logo-size"],logoSrc:[1,"logo-src"],qrColor:[1,"qr-color"],rounded:[4]}]]]],e)));
1
+ import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-d0db23e4.js';
2
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
3
+
4
+ /*
5
+ Stencil Client Patch Browser v2.19.3 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
+ const patchBrowser = () => {
9
+ // NOTE!! This fn cannot use async/await!
10
+ if (BUILD.isDev && !BUILD.isTesting) {
11
+ consoleDevInfo('Running in development mode.');
12
+ }
13
+ if (BUILD.cssVarShim) {
14
+ // shim css vars
15
+ plt.$cssShim$ = win.__cssshim;
16
+ }
17
+ if (BUILD.cloneNodeFix) {
18
+ // opted-in to polyfill cloneNode() for slot polyfilled components
19
+ patchCloneNodeFix(H.prototype);
20
+ }
21
+ if (BUILD.profile && !performance.mark) {
22
+ // not all browsers support performance.mark/measure (Safari 10)
23
+ // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
24
+ // simply stub the implementations out.
25
+ // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
26
+ // @ts-ignore
27
+ performance.mark = performance.measure = () => {
28
+ /*noop*/
29
+ };
30
+ performance.getEntriesByName = () => [];
31
+ }
32
+ // @ts-ignore
33
+ const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
34
+ ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
35
+ s.getAttribute('data-stencil-namespace') === NAMESPACE)
36
+ : null;
37
+ const importMeta = import.meta.url;
38
+ const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
39
+ if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
40
+ // Safari < v11 support: This IF is true if it's Safari below v11.
41
+ // This fn cannot use async/await since Safari didn't support it until v11,
42
+ // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
43
+ // so both the ESM file and nomodule file would get downloaded. Only Safari
44
+ // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
45
+ // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
46
+ // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
47
+ return {
48
+ then() {
49
+ /* promise noop */
50
+ },
51
+ };
52
+ }
53
+ if (!BUILD.safari10 && importMeta !== '') {
54
+ opts.resourcesUrl = new URL('.', importMeta).href;
55
+ }
56
+ else if (BUILD.dynamicImportShim || BUILD.safari10) {
57
+ opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
58
+ if (BUILD.dynamicImportShim) {
59
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
60
+ }
61
+ if (BUILD.dynamicImportShim && !win.customElements) {
62
+ // module support, but no custom elements support (Old Edge)
63
+ // @ts-ignore
64
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom-1b0cf05d.js').then(() => opts);
65
+ }
66
+ }
67
+ return promiseResolve(opts);
68
+ };
69
+ const patchDynamicImport = (base, orgScriptElm) => {
70
+ const importFunctionName = getDynamicImportFunction(NAMESPACE);
71
+ try {
72
+ // test if this browser supports dynamic imports
73
+ // There is a caching issue in V8, that breaks using import() in Function
74
+ // By generating a random string, we can workaround it
75
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
76
+ win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
77
+ }
78
+ catch (e) {
79
+ // this shim is specifically for browsers that do support "esm" imports
80
+ // however, they do NOT support "dynamic" imports
81
+ // basically this code is for old Edge, v18 and below
82
+ const moduleMap = new Map();
83
+ win[importFunctionName] = (src) => {
84
+ const url = new URL(src, base).href;
85
+ let mod = moduleMap.get(url);
86
+ if (!mod) {
87
+ const script = doc.createElement('script');
88
+ script.type = 'module';
89
+ script.crossOrigin = orgScriptElm.crossOrigin;
90
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
91
+ type: 'application/javascript',
92
+ }));
93
+ mod = new Promise((resolve) => {
94
+ script.onload = () => {
95
+ resolve(win[importFunctionName].m);
96
+ script.remove();
97
+ };
98
+ });
99
+ moduleMap.set(url, mod);
100
+ doc.head.appendChild(script);
101
+ }
102
+ return mod;
103
+ };
104
+ }
105
+ };
106
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
107
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
108
+ HTMLElementPrototype.cloneNode = function (deep) {
109
+ if (this.nodeName === 'TEMPLATE') {
110
+ return nativeCloneNodeFn.call(this, deep);
111
+ }
112
+ const clonedNode = nativeCloneNodeFn.call(this, false);
113
+ const srcChildNodes = this.childNodes;
114
+ if (deep) {
115
+ for (let i = 0; i < srcChildNodes.length; i++) {
116
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
117
+ if (srcChildNodes[i].nodeType !== 2) {
118
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
119
+ }
120
+ }
121
+ }
122
+ return clonedNode;
123
+ };
124
+ };
125
+
126
+ patchBrowser().then(options => {
127
+ globalScripts();
128
+ return bootstrapLazy([["gataca-qrdisplay",[[0,"gataca-qrdisplay",{"qrData":[1,"qr-data"],"size":[2],"logoSize":[2,"logo-size"],"logoSrc":[1,"logo-src"],"qrColor":[1,"qr-color"],"rounded":[4]}]]],["gataca-ssibutton",[[1,"gataca-ssibutton",{"buttonText":[1,"button-text"],"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"sessionTimeout":[2,"session-timeout"],"pollingFrequency":[2,"polling-frequency"],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"open":[32],"getSessionData":[64]}]]],["gataca-ssibuttonws",[[1,"gataca-ssibuttonws",{"buttonText":[1,"button-text"],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"open":[32],"getSessionData":[64]}]]],["gataca-qr",[[1,"gataca-qr",{"checkStatus":[16],"createSession":[16],"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"sessionTimeout":[2,"session-timeout"],"pollingFrequency":[2,"polling-frequency"],"dynamicLink":[4,"dynamic-link"],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"display":[64],"stop":[64],"getSessionData":[64]}]]],["gataca-qrws",[[1,"gataca-qrws",{"successCallback":[16],"errorCallback":[16],"qrRole":[1,"qr-role"],"callbackServer":[1,"callback-server"],"socketEndpoint":[1,"socket-endpoint"],"sessionTimeout":[2,"session-timeout"],"wsOnOpen":[16],"wsOnMessage":[16],"autostart":[4],"autorefresh":[4],"v2":[4,"v-2"],"qrModalTitle":[1,"qr-modal-title"],"qrModalDescription":[1,"qr-modal-description"],"hideBrandTitle":[4,"hide-brand-title"],"dynamicLink":[4,"dynamic-link"],"sessionId":[32],"authenticationRequest":[32],"sessionData":[32],"result":[32],"display":[64],"stop":[64],"getSessionData":[64]},[[2,"sessionMsg","sessionMsgReceived"]]]]],["gataca-autoqr",[[1,"gataca-autoqr",{"configId":[1,"config-id"],"configRepository":[1,"config-repository"],"successCallback":[16],"errorCallback":[16],"checkStatus":[16],"createSession":[16],"wsOnOpen":[16],"wsOnMessage":[16],"config":[32],"loading":[32],"getSessionData":[64]}]]]], options);
129
+ });