@ranty/ranty-sdk 2.16.0 → 2.16.1-beta.1
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.
|
@@ -916,7 +916,7 @@ function oe(t) {
|
|
|
916
916
|
*/
|
|
917
917
|
var K0;
|
|
918
918
|
((K0 = window.HTMLSlotElement) === null || K0 === void 0 ? void 0 : K0.prototype.assignedElements) != null;
|
|
919
|
-
const aE = "@ranty/ranty-sdk", lE = "2.16.
|
|
919
|
+
const aE = "@ranty/ranty-sdk", lE = "2.16.1-beta.1", dE = "Ranty sdk", cE = "dist/index.js", AE = {
|
|
920
920
|
".": "./dist/index.js"
|
|
921
921
|
}, uE = "types/index.d.ts", pE = [
|
|
922
922
|
"dist",
|
|
@@ -9358,10 +9358,10 @@ function mU(t, e, r, s) {
|
|
|
9358
9358
|
}
|
|
9359
9359
|
var Nu = MF(mU);
|
|
9360
9360
|
gI(gl(), "DD_LOGS", Nu);
|
|
9361
|
-
const fU = "@nx-ranty/ranty-sdk", yU = "2.16.
|
|
9361
|
+
const fU = "@nx-ranty/ranty-sdk", yU = "2.16.1-beta.1", vU = 2, bU = !0, wU = {
|
|
9362
9362
|
"": {
|
|
9363
9363
|
name: "@nx-ranty/ranty-sdk",
|
|
9364
|
-
version: "2.16.
|
|
9364
|
+
version: "2.16.1-beta.1",
|
|
9365
9365
|
license: "ISC",
|
|
9366
9366
|
dependencies: {
|
|
9367
9367
|
"@datadog/browser-logs": "^5.7.0",
|
|
@@ -55892,13 +55892,13 @@ const cv = Tc, fi = class extends EventTarget {
|
|
|
55892
55892
|
return we(this, null, function* () {
|
|
55893
55893
|
const r = yield this.getSignedUrl();
|
|
55894
55894
|
return new Promise((s, n) => {
|
|
55895
|
-
this.
|
|
55895
|
+
this.socket = new cv(r), this.socket.onopen = () => {
|
|
55896
55896
|
this.isRunning = !0, this.connectionAttemptCount = 0, this.sendMessage(e), this.startHeartbeat(e, this.connectionDuration);
|
|
55897
55897
|
}, this.socket.onmessage = (i) => {
|
|
55898
55898
|
const o = this.handleWebSocketMessage(i);
|
|
55899
55899
|
this.emitEvent("WS-MESSAGE-STATUS", o), o && s(o);
|
|
55900
55900
|
}, this.socket.onerror = (i) => {
|
|
55901
|
-
this.stopHeartbeat(), this.isRunning = !1, n(Et(ct({}, i), {
|
|
55901
|
+
this.connectionAttemptCount = this.connectionAttemptCount + 1, this.stopHeartbeat(), this.isRunning = !1, n(Et(ct({}, i), {
|
|
55902
55902
|
status: "WEB_SOCKET_ERROR"
|
|
55903
55903
|
}));
|
|
55904
55904
|
}, this.socket.onclose = (i) => {
|
|
@@ -55923,7 +55923,7 @@ const cv = Tc, fi = class extends EventTarget {
|
|
|
55923
55923
|
}
|
|
55924
55924
|
static startHeartbeat(e, r) {
|
|
55925
55925
|
this.heartbeatTimer && clearInterval(this.heartbeatTimer), this.resetInactivityTimeout(r), this.connectionStartTime = Date.now(), this.heartbeatTimer = setInterval(() => {
|
|
55926
|
-
this.sendMessage(e)
|
|
55926
|
+
this.sendMessage(e);
|
|
55927
55927
|
}, this.pingInterval), setTimeout(() => {
|
|
55928
55928
|
var s;
|
|
55929
55929
|
(s = this.socket) == null || s.close();
|
|
@@ -59125,7 +59125,7 @@ let mv = class extends CN {
|
|
|
59125
59125
|
}
|
|
59126
59126
|
};
|
|
59127
59127
|
mv.directiveName = "unsafeHTML", mv.resultType = 1;
|
|
59128
|
-
const EN = BN(mv), jN = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.container{display:flex;justify-content:center;align-items:flex-start;position:
|
|
59128
|
+
const EN = BN(mv), jN = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.container{display:flex;justify-content:center;align-items:flex-start;position:absolute;top:0;left:0;right:0;width:100%;height:auto;background:#f4f4f4;padding-top:29px;z-index:9}.card__container{display:flex;flex-direction:column;justify-content:center;position:relative;text-align:center;width:600px;height:600px;border-radius:20px;align-items:center;background:white}.title{font-family:Inter,Arial,"sans-serif";font-weight:600;font-size:18px!important;color:#2b2b2b;margin-top:37px}.subtitle{font-family:Inter,Arial,"sans-serif";color:#6a6a6a;font-size:.875rem;line-height:1.25rem;margin-top:28px;width:64%}img{width:90px;height:90px;margin-top:21px}.sonic-container{width:450px}.button{margin-top:30px;width:50%}@media only screen and (max-width: 800px){.button{width:80%}}.spinner{animation:rotate 2s linear infinite;z-index:1;position:relative;width:90px;height:90px;margin-top:21px}.spinner .path{stroke:#652bdf;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite;margin-top:21px}.spinner-container{width:450px;height:135px;display:flex;justify-content:center}.sa{width:140px;height:140px;padding:26px;background-color:#fff}.sa-success{border-radius:50%;border:4px solid #652bdf;box-sizing:content-box;margin-bottom:30px;height:80px;padding:0;position:relative;background-color:#fff;width:80px}.sa-success:after,.sa-success:before{background:#fff;content:"";height:120px;position:absolute;transform:rotate(45deg);width:60px}.sa-success:before{border-radius:40px 0 0 40px;width:26px;height:80px;top:-17px;left:5px;transform-origin:60px 60px;transform:rotate(-45deg)}.sa-success:after{border-radius:0 120px 120px 0;left:30px;top:-11px;transform-origin:0 60px;transform:rotate(-45deg);animation:rotatePlaceholder 4.25s ease-in}.sa-success-placeholder{border-radius:50%;border:4px solid #652bdf;box-sizing:content-box;height:80px;left:-4px;position:absolute;top:-4px;width:80px;z-index:2}.sa-success-fix{background-color:#fff;height:90px;left:28px;position:absolute;top:8px;transform:rotate(-45deg);width:5px;z-index:1}.sa-success-tip,.sa-success-long{background-color:#652bdf!important;border-radius:2px;height:5px;position:absolute;z-index:2}.sa-success-tip{left:14px;top:46px;transform:rotate(45deg);width:25px;animation:animateSuccessTip .75s}.sa-success-long{right:8px;top:38px;transform:rotate(-45deg);width:47px;animation:animateSuccessLong .75s}@keyframes animateSuccessTip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessLong{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes rotatePlaceholder{0%,5%{transform:rotate(-45deg)}to,12%{transform:rotate(-405deg)}}.fade-in-title{animation:fadeOutUp;animation-duration:.5s;animation-fill-mode:both}.fade-in-subtitle{animation:fadeOutUp;animation-duration:.5s;animation-delay:.3s;animation-fill-mode:both}.fade-in-button{animation:fadeOutUp;animation-duration:.5s;animation-delay:.4s;animation-fill-mode:both}@keyframes fadeOutUp{0%{opacity:0;transform:translateY(0)}to{opacity:1;transform:translateY(-20px)}}@media only screen and (min-width: 360px) and (max-width: 800px){.container{display:flex;justify-content:center;align-items:flex-start;position:absolute;top:0;left:0;right:0;height:100%;width:100%;background:#f4f4f4;padding-top:29px;z-index:9}.card__container{margin-left:30px;margin-right:30px;height:380px}.title{font-family:Inter,Arial,"sans-serif";font-weight:600;font-size:16px!important;color:#2b2b2b;margin-top:40px}.subtitle{font-family:Inter,Arial,"sans-serif";color:#6a6a6a;font-size:.875rem;line-height:1.25rem;margin-top:18px;width:270px;padding-left:20px;padding-right:20px}.sonic-container{width:350px}.spinner-container{width:350px;height:135px;display:flex;justify-content:center}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;width:80px;height:80px;margin-bottom:230px}.spinner .path{stroke:#652bdf;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.mt{margin-top:5px!important}
|
|
59129
59129
|
`;
|
|
59130
59130
|
var SN = Object.defineProperty, _N = Object.getOwnPropertyDescriptor, Cn = (t, e, r, s) => {
|
|
59131
59131
|
for (var n = s > 1 ? void 0 : s ? _N(e, r) : e, i = t.length - 1, o; i >= 0; i--)
|
|
@@ -63694,7 +63694,7 @@ let tr = class extends qe {
|
|
|
63694
63694
|
})
|
|
63695
63695
|
);
|
|
63696
63696
|
}
|
|
63697
|
-
|
|
63697
|
+
this.inputmode === "numeric" && !/^\d+$/.test(e) && t.preventDefault();
|
|
63698
63698
|
}
|
|
63699
63699
|
render() {
|
|
63700
63700
|
const t = this.isEnabledLenght ? this.minlength : void 0, e = this.isEnabledLenght ? this.maxlength : void 0;
|
|
@@ -64481,6 +64481,10 @@ let qo = class extends qe {
|
|
|
64481
64481
|
var t;
|
|
64482
64482
|
return this.stateScof.userCardData && ((t = this.stateScof.userCardData) == null ? void 0 : t.list.length) > 0;
|
|
64483
64483
|
}
|
|
64484
|
+
get docNumber() {
|
|
64485
|
+
var t, e;
|
|
64486
|
+
return ((t = this.getBuyer) == null ? void 0 : t.doc_number.length) >= 6 ? (e = this.getBuyer) == null ? void 0 : e.doc_number : "";
|
|
64487
|
+
}
|
|
64484
64488
|
firstUpdated(t) {
|
|
64485
64489
|
var e;
|
|
64486
64490
|
super.firstUpdated(t), he.info("firstUpdated", {
|
|
@@ -64565,7 +64569,7 @@ let qo = class extends qe {
|
|
|
64565
64569
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
64566
64570
|
}
|
|
64567
64571
|
renderHTML() {
|
|
64568
|
-
var t, e, r, s
|
|
64572
|
+
var t, e, r, s;
|
|
64569
64573
|
return P`
|
|
64570
64574
|
<form @input="${this.validateForm}">
|
|
64571
64575
|
<scof-input
|
|
@@ -64617,7 +64621,7 @@ let qo = class extends qe {
|
|
|
64617
64621
|
Hn(6, "Revisá el número, está incompleto."),
|
|
64618
64622
|
Xi(20, "Revisá el número, está incompleto.")
|
|
64619
64623
|
]}"
|
|
64620
|
-
.value="${
|
|
64624
|
+
.value="${this.docNumber}"
|
|
64621
64625
|
></scof-input>
|
|
64622
64626
|
</div>
|
|
64623
64627
|
<div class="panel-footer">
|
|
@@ -66075,6 +66079,10 @@ let so = class extends qe {
|
|
|
66075
66079
|
if (!this._stateHolderPaymentManual && this._statePaymentManualInput.statePaymentRequest.buyer)
|
|
66076
66080
|
return this._statePaymentManualInput.statePaymentRequest.buyer;
|
|
66077
66081
|
}
|
|
66082
|
+
get docNumber() {
|
|
66083
|
+
var t, e;
|
|
66084
|
+
return ((t = this.getBuyer) == null ? void 0 : t.doc_number.length) >= 6 ? (e = this.getBuyer) == null ? void 0 : e.doc_number : "";
|
|
66085
|
+
}
|
|
66078
66086
|
firstUpdated(t) {
|
|
66079
66087
|
var e;
|
|
66080
66088
|
super.firstUpdated(t), this._statePaymentManualInput.isCardPresent || this._getinstallment(), (e = this._statePaymentManualInput.statePaymentRequest.buyer) != null && e.doc_type && (this.isDni = this._statePaymentManualInput.statePaymentRequest.buyer.doc_type === "DNI", this.requestUpdate()), this.forceValidation(["name", "user_email", "doc_number"]), this.validateForm();
|
|
@@ -66168,7 +66176,7 @@ let so = class extends qe {
|
|
|
66168
66176
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
66169
66177
|
}
|
|
66170
66178
|
renderHTML() {
|
|
66171
|
-
var t, e, r, s
|
|
66179
|
+
var t, e, r, s;
|
|
66172
66180
|
return P`
|
|
66173
66181
|
<form @input="${this.validateForm}">
|
|
66174
66182
|
<scof-input
|
|
@@ -66221,7 +66229,7 @@ let so = class extends qe {
|
|
|
66221
66229
|
Hn(6, "Revisá el número, está incompleto."),
|
|
66222
66230
|
Xi(20, "Revisá el número, está incompleto.")
|
|
66223
66231
|
]}"
|
|
66224
|
-
.value="${
|
|
66232
|
+
.value="${this.docNumber}"
|
|
66225
66233
|
></scof-input>
|
|
66226
66234
|
</div>
|
|
66227
66235
|
<div class="panel-footer">
|
|
@@ -80085,7 +80093,7 @@ function(t) {
|
|
|
80085
80093
|
*/
|
|
80086
80094
|
function(t) {
|
|
80087
80095
|
function e() {
|
|
80088
|
-
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-
|
|
80096
|
+
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-70415b27.js")).catch(function(r) {
|
|
80089
80097
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
80090
80098
|
}).then(function(r) {
|
|
80091
80099
|
return r.default ? r.default : r;
|
|
@@ -81928,6 +81936,10 @@ let io = class extends qe {
|
|
|
81928
81936
|
if (!this.holderData && this.state.statePaymentRequest.buyer)
|
|
81929
81937
|
return this.state.statePaymentRequest.buyer;
|
|
81930
81938
|
}
|
|
81939
|
+
get docNumber() {
|
|
81940
|
+
var t, e;
|
|
81941
|
+
return ((t = this.getBuyer) == null ? void 0 : t.doc_number.length) >= 6 ? (e = this.getBuyer) == null ? void 0 : e.doc_number : "";
|
|
81942
|
+
}
|
|
81931
81943
|
firstUpdated(t) {
|
|
81932
81944
|
var e;
|
|
81933
81945
|
super.firstUpdated(t), this.state.isCardPresent || this.getinstallment(), (e = this.state.statePaymentRequest.buyer) != null && e.doc_type && (this.isDni = this.state.statePaymentRequest.buyer.doc_type === "DNI", this.requestUpdate()), this.forceValidation(["name", "user_email", "doc_number"]), this.validateForm();
|
|
@@ -82019,7 +82031,7 @@ let io = class extends qe {
|
|
|
82019
82031
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
82020
82032
|
}
|
|
82021
82033
|
renderHTML() {
|
|
82022
|
-
var t, e, r, s
|
|
82034
|
+
var t, e, r, s;
|
|
82023
82035
|
return P`
|
|
82024
82036
|
<form @input="${this.validateForm}">
|
|
82025
82037
|
<scof-input
|
|
@@ -82072,7 +82084,7 @@ let io = class extends qe {
|
|
|
82072
82084
|
Hn(6, "Revisá el número, está incompleto."),
|
|
82073
82085
|
Xi(20, "Revisá el número, está incompleto.")
|
|
82074
82086
|
]}"
|
|
82075
|
-
.value="${
|
|
82087
|
+
.value="${this.docNumber}"
|
|
82076
82088
|
></scof-input>
|
|
82077
82089
|
</div>
|
|
82078
82090
|
<div class="panel-footer">
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as n, ac as e, a5 as t, ag as o, ae as r, af as C, a6 as m, a3 as p, ab as A, aa as d, a4 as i, a7 as l, a8 as u, a9 as y, A as c, w as F, f as S, e as P, n as M, p as O, Q as k, o as I, q as H, m as f, r as x, C as L, u as g, T as v, j as D, a as b, d as E, D as w, l as Q, E as h, v as B, b as N, F as R, k as j, $ as q, a1 as z, N as G, P as J, M as K, x as T, V as U, W as V, U as W, a2 as X, X as Y, Y as Z, Z as $, i as _, h as aa, a0 as sa, S as na, y as ea, t as ta, z as oa, B as ra, G as Ca, s as ma, K as pa, H as Aa, I as da, J as ia, O as la, R as ua, L as ya } from "./index-
|
|
1
|
+
import { ad as n, ac as e, a5 as t, ag as o, ae as r, af as C, a6 as m, a3 as p, ab as A, aa as d, a4 as i, a7 as l, a8 as u, a9 as y, A as c, w as F, f as S, e as P, n as M, p as O, Q as k, o as I, q as H, m as f, r as x, C as L, u as g, T as v, j as D, a as b, d as E, D as w, l as Q, E as h, v as B, b as N, F as R, k as j, $ as q, a1 as z, N as G, P as J, M as K, x as T, V as U, W as V, U as W, a2 as X, X as Y, Y as Z, Z as $, i as _, h as aa, a0 as sa, S as na, y as ea, t as ta, z as oa, B as ra, G as Ca, s as ma, K as pa, H as Aa, I as da, J as ia, O as la, R as ua, L as ya } from "./index-27e96699.js";
|
|
2
2
|
export {
|
|
3
3
|
n as A2AAccountDetails,
|
|
4
4
|
e as A2AAccountList,
|