@ranty/ranty-sdk 2.16.1-beta.0 → 2.16.1-beta.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.
|
@@ -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.1-beta.
|
|
919
|
+
const aE = "@ranty/ranty-sdk", lE = "2.16.1-beta.2", 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 = "@ranty/ranty-sdk", yU = "2.16.1-beta.
|
|
9361
|
+
const fU = "@nx-ranty/ranty-sdk", yU = "2.16.1-beta.2", vU = 2, bU = !0, wU = {
|
|
9362
9362
|
"": {
|
|
9363
|
-
name: "@ranty/ranty-sdk",
|
|
9364
|
-
version: "2.16.1-beta.
|
|
9363
|
+
name: "@nx-ranty/ranty-sdk",
|
|
9364
|
+
version: "2.16.1-beta.2",
|
|
9365
9365
|
license: "ISC",
|
|
9366
9366
|
dependencies: {
|
|
9367
9367
|
"@datadog/browser-logs": "^5.7.0",
|
|
@@ -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--)
|
|
@@ -63327,7 +63327,7 @@ let bs = class extends qe {
|
|
|
63327
63327
|
>
|
|
63328
63328
|
${this._isPayfacContextReady && this._renderInitialFlow()}
|
|
63329
63329
|
</payfac-context>
|
|
63330
|
-
|
|
63330
|
+
${this.mode !== "click_to_pay" ? P`<footer-component></footer-component>` : ""}
|
|
63331
63331
|
</div>
|
|
63332
63332
|
` : P` <errors-panel .validator="${this._validator}"></errors-panel>`}
|
|
63333
63333
|
`;
|
|
@@ -63683,10 +63683,6 @@ let tr = class extends qe {
|
|
|
63683
63683
|
}
|
|
63684
63684
|
handlePaste(t) {
|
|
63685
63685
|
const e = (t.clipboardData || window.clipboardData).getData("text");
|
|
63686
|
-
if (this.inputmode === "numeric" && !/^\d+$/.test(e)) {
|
|
63687
|
-
t.preventDefault();
|
|
63688
|
-
return;
|
|
63689
|
-
}
|
|
63690
63686
|
if (this.name === "creditNumber") {
|
|
63691
63687
|
t.preventDefault();
|
|
63692
63688
|
const r = e.replace(/\D/g, "");
|
|
@@ -63698,6 +63694,7 @@ let tr = class extends qe {
|
|
|
63698
63694
|
})
|
|
63699
63695
|
);
|
|
63700
63696
|
}
|
|
63697
|
+
this.inputmode === "numeric" && !/^\d+$/.test(e) && t.preventDefault();
|
|
63701
63698
|
}
|
|
63702
63699
|
render() {
|
|
63703
63700
|
const t = this.isEnabledLenght ? this.minlength : void 0, e = this.isEnabledLenght ? this.maxlength : void 0;
|
|
@@ -64484,6 +64481,10 @@ let qo = class extends qe {
|
|
|
64484
64481
|
var t;
|
|
64485
64482
|
return this.stateScof.userCardData && ((t = this.stateScof.userCardData) == null ? void 0 : t.list.length) > 0;
|
|
64486
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
|
+
}
|
|
64487
64488
|
firstUpdated(t) {
|
|
64488
64489
|
var e;
|
|
64489
64490
|
super.firstUpdated(t), he.info("firstUpdated", {
|
|
@@ -64568,7 +64569,7 @@ let qo = class extends qe {
|
|
|
64568
64569
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
64569
64570
|
}
|
|
64570
64571
|
renderHTML() {
|
|
64571
|
-
var t, e, r, s
|
|
64572
|
+
var t, e, r, s;
|
|
64572
64573
|
return P`
|
|
64573
64574
|
<form @input="${this.validateForm}">
|
|
64574
64575
|
<scof-input
|
|
@@ -64620,7 +64621,7 @@ let qo = class extends qe {
|
|
|
64620
64621
|
Hn(6, "Revisá el número, está incompleto."),
|
|
64621
64622
|
Xi(20, "Revisá el número, está incompleto.")
|
|
64622
64623
|
]}"
|
|
64623
|
-
.value="${
|
|
64624
|
+
.value="${this.docNumber}"
|
|
64624
64625
|
></scof-input>
|
|
64625
64626
|
</div>
|
|
64626
64627
|
<div class="panel-footer">
|
|
@@ -66078,6 +66079,10 @@ let so = class extends qe {
|
|
|
66078
66079
|
if (!this._stateHolderPaymentManual && this._statePaymentManualInput.statePaymentRequest.buyer)
|
|
66079
66080
|
return this._statePaymentManualInput.statePaymentRequest.buyer;
|
|
66080
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
|
+
}
|
|
66081
66086
|
firstUpdated(t) {
|
|
66082
66087
|
var e;
|
|
66083
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();
|
|
@@ -66171,7 +66176,7 @@ let so = class extends qe {
|
|
|
66171
66176
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
66172
66177
|
}
|
|
66173
66178
|
renderHTML() {
|
|
66174
|
-
var t, e, r, s
|
|
66179
|
+
var t, e, r, s;
|
|
66175
66180
|
return P`
|
|
66176
66181
|
<form @input="${this.validateForm}">
|
|
66177
66182
|
<scof-input
|
|
@@ -66224,7 +66229,7 @@ let so = class extends qe {
|
|
|
66224
66229
|
Hn(6, "Revisá el número, está incompleto."),
|
|
66225
66230
|
Xi(20, "Revisá el número, está incompleto.")
|
|
66226
66231
|
]}"
|
|
66227
|
-
.value="${
|
|
66232
|
+
.value="${this.docNumber}"
|
|
66228
66233
|
></scof-input>
|
|
66229
66234
|
</div>
|
|
66230
66235
|
<div class="panel-footer">
|
|
@@ -80088,7 +80093,7 @@ function(t) {
|
|
|
80088
80093
|
*/
|
|
80089
80094
|
function(t) {
|
|
80090
80095
|
function e() {
|
|
80091
|
-
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-
|
|
80096
|
+
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-6e5b2563.js")).catch(function(r) {
|
|
80092
80097
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
80093
80098
|
}).then(function(r) {
|
|
80094
80099
|
return r.default ? r.default : r;
|
|
@@ -81931,6 +81936,10 @@ let io = class extends qe {
|
|
|
81931
81936
|
if (!this.holderData && this.state.statePaymentRequest.buyer)
|
|
81932
81937
|
return this.state.statePaymentRequest.buyer;
|
|
81933
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
|
+
}
|
|
81934
81943
|
firstUpdated(t) {
|
|
81935
81944
|
var e;
|
|
81936
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();
|
|
@@ -82022,7 +82031,7 @@ let io = class extends qe {
|
|
|
82022
82031
|
}), this.isValidForm = e, this.holder.doc_type = this.isDni ? "DNI" : "PASAPORTE";
|
|
82023
82032
|
}
|
|
82024
82033
|
renderHTML() {
|
|
82025
|
-
var t, e, r, s
|
|
82034
|
+
var t, e, r, s;
|
|
82026
82035
|
return P`
|
|
82027
82036
|
<form @input="${this.validateForm}">
|
|
82028
82037
|
<scof-input
|
|
@@ -82075,7 +82084,7 @@ let io = class extends qe {
|
|
|
82075
82084
|
Hn(6, "Revisá el número, está incompleto."),
|
|
82076
82085
|
Xi(20, "Revisá el número, está incompleto.")
|
|
82077
82086
|
]}"
|
|
82078
|
-
.value="${
|
|
82087
|
+
.value="${this.docNumber}"
|
|
82079
82088
|
></scof-input>
|
|
82080
82089
|
</div>
|
|
82081
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-7d8b86c1.js";
|
|
2
2
|
export {
|
|
3
3
|
n as A2AAccountDetails,
|
|
4
4
|
e as A2AAccountList,
|