@ranty/ranty-sdk 3.0.5 → 3.0.6-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 ie(t) {
|
|
|
916
916
|
*/
|
|
917
917
|
var N0;
|
|
918
918
|
((N0 = window.HTMLSlotElement) === null || N0 === void 0 ? void 0 : N0.prototype.assignedElements) != null;
|
|
919
|
-
const lj = "@ranty/ranty-sdk", dj = "3.0.
|
|
919
|
+
const lj = "@ranty/ranty-sdk", dj = "3.0.6-beta.1", cj = "Ranty sdk", uj = "dist/index.js", pj = {
|
|
920
920
|
".": "./dist/index.js"
|
|
921
921
|
}, Aj = "types/index.d.ts", gj = [
|
|
922
922
|
"dist",
|
|
@@ -9370,10 +9370,10 @@ function kz(t, e, r, s) {
|
|
|
9370
9370
|
}
|
|
9371
9371
|
var mA = WF(kz);
|
|
9372
9372
|
wP(Pl(), "DD_LOGS", mA);
|
|
9373
|
-
const Bz = "@nx-ranty/ranty-sdk", Cz = "3.0.
|
|
9373
|
+
const Bz = "@nx-ranty/ranty-sdk", Cz = "3.0.6-beta.1", Ez = 2, jz = !0, Sz = {
|
|
9374
9374
|
"": {
|
|
9375
9375
|
name: "@nx-ranty/ranty-sdk",
|
|
9376
|
-
version: "3.0.
|
|
9376
|
+
version: "3.0.6-beta.1",
|
|
9377
9377
|
license: "ISC",
|
|
9378
9378
|
dependencies: {
|
|
9379
9379
|
"@datadog/browser-logs": "^5.35.1",
|
|
@@ -58276,7 +58276,7 @@ const SO = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointe
|
|
|
58276
58276
|
case "NARANJA":
|
|
58277
58277
|
e = "https://ranty-sdk-js.naranjax.com/images/naranjax-logo.svg", r = "naranja";
|
|
58278
58278
|
break;
|
|
58279
|
-
case "
|
|
58279
|
+
case "AMERICAN EXPRESS":
|
|
58280
58280
|
e = "https://ranty-sdk-js.naranjax.com/images/amex-logo.svg", r = "amex";
|
|
58281
58281
|
break;
|
|
58282
58282
|
}
|
|
@@ -58293,7 +58293,7 @@ const SO = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointe
|
|
|
58293
58293
|
case "NARANJA":
|
|
58294
58294
|
e = "https://assets.mastercard.com/card-art/combined-image-asset/7496a60e-b989-4df2-bf2d-0e946e357b36.png", r = "naranja", s = "Tarjeta Naranja";
|
|
58295
58295
|
break;
|
|
58296
|
-
case "
|
|
58296
|
+
case "AMERICAN EXPRESS":
|
|
58297
58297
|
e = "https://ranty-sdk-js.naranjax.com/images/amex-logo.svg", r = "amex", s = "Tarjeta American Express";
|
|
58298
58298
|
break;
|
|
58299
58299
|
case "MAESTRO":
|
|
@@ -58804,7 +58804,7 @@ let a2 = class extends He {
|
|
|
58804
58804
|
}
|
|
58805
58805
|
render() {
|
|
58806
58806
|
return console.log("this.messagesError", this.messagesError), z`
|
|
58807
|
-
<
|
|
58807
|
+
<initial-loading
|
|
58808
58808
|
?isVisible="${!0}"
|
|
58809
58809
|
title="${this.countMessagesError}"
|
|
58810
58810
|
message="${this.messagesError}"
|
|
@@ -58812,7 +58812,7 @@ let a2 = class extends He {
|
|
|
58812
58812
|
.success="${!1}"
|
|
58813
58813
|
image="https://ranty-sdk-js.naranjax.com/images/circle-info.svg"
|
|
58814
58814
|
>
|
|
58815
|
-
</
|
|
58815
|
+
</initial-loading>
|
|
58816
58816
|
`;
|
|
58817
58817
|
}
|
|
58818
58818
|
};
|
|
@@ -59399,7 +59399,7 @@ const p1 = {
|
|
|
59399
59399
|
MASTERCARD: "https://ranty-sdk-js.naranjax.com/images/mastercard-logo.svg",
|
|
59400
59400
|
VISA: "https://ranty-sdk-js.naranjax.com/images/visa-logo.svg",
|
|
59401
59401
|
NARANJA: "https://ranty-sdk-js.naranjax.com/images/naranjax-logo.svg",
|
|
59402
|
-
|
|
59402
|
+
"AMERICAN EXPRESS": "https://ranty-sdk-js.naranjax.com/images/amex-logo.svg",
|
|
59403
59403
|
MAESTRO: "https://ranty-sdk-js.naranjax.com/images/maestro-logo.svg"
|
|
59404
59404
|
}, pN = `@import"normalize.css";form{margin:inherit}.clickeable{cursor:pointer}.clickeable{display:block;transition:transform .3s ease}.clickeable:hover{transform:translate(3px)}.hidden{display:none}.skeleton-card{background-color:#d0d4d7;animation:skeleton-loading 1s linear infinite alternate;width:100%;height:43px;border-radius:8px}.skeleton{display:flex;align-items:center;justify-content:space-between;background-color:#d0d4d7;animation:skeleton-loading 1s linear infinite alternate;width:100%;height:60px;border-radius:8px;gap:16px;margin-bottom:16px}.skeleton .input{width:12px;height:10px;border-radius:8px;background-color:#c2cfd6;margin-left:10px}.skeleton .img{width:45px;height:36px;border-radius:50%;background-color:#c2cfd6}.skeleton .details{width:100%;height:auto;border-radius:8px;display:flex;flex-direction:column;gap:6px}.skeleton .text{width:200px;height:14px;border-radius:8px;background-color:#c2cfd6;margin:0}@keyframes skeleton-loading{0%{background-color:#c2cfd6}to{background-color:#f0f3f5}}.input{padding-bottom:24px;position:relative}.input label{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a;display:block;min-width:140px}.input.checkbox{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox label{text-align:left;font-size:12px}.input.checkbox label p{margin:0}.input.checkbox input[type=checkbox]{order:-1;width:30px;margin-right:10px;accent-color:black}.input.checkbox-form-credit{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.input.checkbox-form-credit label{text-align:left;font-size:12px}.input.checkbox-form-credit label p{margin:0}.input.checkbox-form-credit input[type=checkbox]{order:-1;width:50px;margin-right:10px;accent-color:black}.input input{border:none;border-bottom:1px solid #6a6a6a;color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-weight:400;font-size:16px;outline:none;width:100%;height:26px}.errorBin{color:red;margin-top:5px;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;bottom:42px}.errorBin>p{margin-top:3px;margin-block-end:0px}.placeholder{display:flex;justify-content:start}.placeholder>p{color:#888;bottom:45px;margin:3px 0 0}span p{font-family:Inter,Arial,"sans-serif";font-size:12px}.checkbox-save-card-scof{display:flex;flex-direction:row;justify-content:flex-start;padding-bottom:20px}.checkbox-save-card-scof label{text-align:left;font-size:12px;margin:auto 0}.checkbox-save-card-scof label p{margin:0}.checkbox-save-card-scof input[type=checkbox]{order:-1;width:17px;height:17px;margin-right:10px;accent-color:#652bdf}
|
|
59405
59405
|
`;
|
|
@@ -59423,7 +59423,7 @@ let rr = class extends He {
|
|
|
59423
59423
|
}
|
|
59424
59424
|
handleInput(t) {
|
|
59425
59425
|
const e = t.target;
|
|
59426
|
-
this.value = e.type === "checkbox" ? e.checked ? "true" : "false" : e.value, this.name === "doc_number" && this.inputmode === "numeric" && (this.value = e.value.replace(/\D/g, "").replace(/^(\d{1,2})(\d{3})(\d{3})$/, "$1.$2.$3")), this.name === "creditNumber" && (this.value = this.value.replace(/\D/g, "").slice(0, 16).replace(/(\d{4})(?=\d)/g, "$1 ").trim()), this.name === "dateExpired" && (this.value = this.value.replace(/\D/g, "").replace(/(\d{2})(\d{2})?/, "$1/$2").trim().substring(0, 5)), this.checkValidity(), this.dispatchEvent(
|
|
59426
|
+
this.value = e.type === "checkbox" ? e.checked ? "true" : "false" : e.value, this.name === "doc_number" && this.inputmode === "numeric" && (this.value = e.value.replace(/\D/g, "").replace(/^(\d{1,2})(\d{3})(\d{3})$/, "$1.$2.$3")), this.name === "creditNumber" && (/^3[47]/.test(this.value) ? this.value = this.value.replace(/\D/g, "").slice(0, 15).replace(/(\d{4})(\d{6})(\d{5})/, "$1 $2 $3").trim() : this.value = this.value.replace(/\D/g, "").slice(0, 16).replace(/(\d{4})(?=\d)/g, "$1 ").trim()), this.name === "dateExpired" && (this.value = this.value.replace(/\D/g, "").replace(/(\d{2})(\d{2})?/, "$1/$2").trim().substring(0, 5)), this.checkValidity(), this.dispatchEvent(
|
|
59427
59427
|
new CustomEvent("input-event", {
|
|
59428
59428
|
bubbles: !0,
|
|
59429
59429
|
composed: !0,
|
|
@@ -59469,7 +59469,7 @@ let rr = class extends He {
|
|
|
59469
59469
|
if (this.name === "creditNumber") {
|
|
59470
59470
|
t.preventDefault();
|
|
59471
59471
|
const r = e.replace(/\D/g, "");
|
|
59472
|
-
r
|
|
59472
|
+
/^3[47]/.test(r) ? this.value = r.slice(0, 15).replace(/(\d{4})(\d{6})(\d{5})/, "$1 $2 $3").trim() : this.value = r.slice(0, 16).replace(/(\d{4})(?=\d)/g, "$1 ").trim(), this.checkValidity(), this.dispatchEvent(
|
|
59473
59473
|
new CustomEvent("input-event", {
|
|
59474
59474
|
bubbles: !0,
|
|
59475
59475
|
composed: !0,
|
|
@@ -59884,7 +59884,7 @@ let Pn = class extends He {
|
|
|
59884
59884
|
}
|
|
59885
59885
|
}
|
|
59886
59886
|
),
|
|
59887
|
-
si(
|
|
59887
|
+
si(15, "Revisá el número de la tarjeta, está incompleto.", !0)
|
|
59888
59888
|
]}"
|
|
59889
59889
|
></scof-input>
|
|
59890
59890
|
<img alt="nave" width="24" height="24" src="${this.iconRight}" />
|
|
@@ -59910,7 +59910,7 @@ let Pn = class extends He {
|
|
|
59910
59910
|
type="password"
|
|
59911
59911
|
name="cvv"
|
|
59912
59912
|
id="cvv"
|
|
59913
|
-
.maxlength="${3}"
|
|
59913
|
+
.maxlength="${this.installmentPlan && this.installmentPlan.name === "AMERICAN EXPRESS" ? 4 : 3}"
|
|
59914
59914
|
label="Código de seguridad"
|
|
59915
59915
|
.validationRules="${[
|
|
59916
59916
|
Zs("Tenés que completar el código."),
|
|
@@ -61608,6 +61608,7 @@ const JB = (t, e = () => {
|
|
|
61608
61608
|
return;
|
|
61609
61609
|
}
|
|
61610
61610
|
try {
|
|
61611
|
+
console.log("getInstallmentsData", d);
|
|
61611
61612
|
const p = yield Co(t, d);
|
|
61612
61613
|
if (ve.info("getInstallments", {
|
|
61613
61614
|
context: Ie.DEFAULT,
|
|
@@ -61657,7 +61658,7 @@ let Fn = class extends He {
|
|
|
61657
61658
|
super(...arguments), this.cardDefault = "https://ranty-sdk-js.naranjax.com/images/card.svg", this.iconRight = this.cardDefault, this.isLoading = !1, this.isValidForm = !1, this.isRecieveData = !1, this.bin = null, this.cardFormValue = {};
|
|
61658
61659
|
}
|
|
61659
61660
|
updated(t) {
|
|
61660
|
-
super.updated(t)
|
|
61661
|
+
super.updated(t);
|
|
61661
61662
|
}
|
|
61662
61663
|
validateForm() {
|
|
61663
61664
|
var s;
|
|
@@ -61757,7 +61758,7 @@ let Fn = class extends He {
|
|
|
61757
61758
|
this.iconRight = e ? p1[t == null ? void 0 : t.name] : this.cardDefault, this.installmentPlan = t, this.isRecieveData = !0;
|
|
61758
61759
|
}
|
|
61759
61760
|
),
|
|
61760
|
-
mu(
|
|
61761
|
+
mu(15, "Revisá el número de la tarjeta, está incompleto.", !0)
|
|
61761
61762
|
]}"
|
|
61762
61763
|
></scof-input>
|
|
61763
61764
|
<img alt="nave" width="24" height="24" src="${this.iconRight}" />
|
|
@@ -61785,7 +61786,7 @@ let Fn = class extends He {
|
|
|
61785
61786
|
name="cvv"
|
|
61786
61787
|
id="cvv"
|
|
61787
61788
|
inputmode="numeric"
|
|
61788
|
-
.maxlength="${3}"
|
|
61789
|
+
.maxlength="${this.installmentPlan && this.installmentPlan.name === "AMERICAN EXPRESS" ? 4 : 3}"
|
|
61789
61790
|
label="Código de seguridad"
|
|
61790
61791
|
.validationRules="${[
|
|
61791
61792
|
hu("Tenés que completar el código."),
|
|
@@ -77312,7 +77313,7 @@ function(t) {
|
|
|
77312
77313
|
*/
|
|
77313
77314
|
function(t) {
|
|
77314
77315
|
function e() {
|
|
77315
|
-
return (ft.canvg ? Promise.resolve(ft.canvg) : import("./index.es-
|
|
77316
|
+
return (ft.canvg ? Promise.resolve(ft.canvg) : import("./index.es-6d1cf6bf.js")).catch(function(r) {
|
|
77316
77317
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
77317
77318
|
}).then(function(r) {
|
|
77318
77319
|
return r.default ? r.default : r;
|
|
@@ -83365,7 +83366,7 @@ let Tn = class extends He {
|
|
|
83365
83366
|
this.iconRight = e ? p1[t == null ? void 0 : t.name] : this.cardDefault, this.installmentPlan = t, this.isRecieveData = !0;
|
|
83366
83367
|
}
|
|
83367
83368
|
),
|
|
83368
|
-
mu(
|
|
83369
|
+
mu(15, "Revisá el número de la tarjeta, está incompleto.", !0)
|
|
83369
83370
|
]}"
|
|
83370
83371
|
></scof-input>
|
|
83371
83372
|
<img alt="nave" width="24" height="24" src="${this.iconRight}" />
|
|
@@ -83392,7 +83393,7 @@ let Tn = class extends He {
|
|
|
83392
83393
|
name="cvv"
|
|
83393
83394
|
id="cvv"
|
|
83394
83395
|
inputmode="numeric"
|
|
83395
|
-
.maxlength="${3}"
|
|
83396
|
+
.maxlength="${this.installmentPlan && this.installmentPlan.name === "AMERICAN EXPRESS" ? 4 : 3}"
|
|
83396
83397
|
label="Código de seguridad"
|
|
83397
83398
|
.validationRules="${[
|
|
83398
83399
|
hu("Tenés que completar el código."),
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-
|
|
1
|
+
import { A as n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-52aa0a38.js";
|
|
2
2
|
export {
|
|
3
3
|
n as A2AAccountComponent,
|
|
4
4
|
o as A2AAccountDetails,
|