@ranty/ranty-sdk 2.18.0-beta.10 → 2.18.0-beta.11
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,8 +916,7 @@ function oe(t) {
|
|
|
916
916
|
*/
|
|
917
917
|
var G0;
|
|
918
918
|
((G0 = window.HTMLSlotElement) === null || G0 === void 0 ? void 0 : G0.prototype.assignedElements) != null;
|
|
919
|
-
|
|
920
|
-
const lE = "@ranty/ranty-sdk", dE = "2.18.0-beta.10", cE = "Ranty sdk", AE = "dist/index.js", uE = {
|
|
919
|
+
const lE = "@nx-ranty/ranty-sdk", dE = "2.18.0-beta.11", cE = "Ranty sdk", AE = "dist/index.js", uE = {
|
|
921
920
|
".": "./dist/index.js"
|
|
922
921
|
}, pE = "types/index.d.ts", gE = [
|
|
923
922
|
"dist",
|
|
@@ -1027,9 +1026,6 @@ let pd = class t extends qe {
|
|
|
1027
1026
|
constructor() {
|
|
1028
1027
|
super(...arguments), this.image = "https://ranty-sdk-js.naranjax.com/images/nave-logo.png", this.icon = "https://ranty-sdk-js.naranjax.com/images/popup.svg", this.enableVersion = "", this.mode = "default";
|
|
1029
1028
|
}
|
|
1030
|
-
get textFooter() {
|
|
1031
|
-
return this.mode === Le.CARD_ON_FILE.toLowerCase() ? "Procesado y almacenado por" : "Procesado por";
|
|
1032
|
-
}
|
|
1033
1029
|
firstUpdated(e) {
|
|
1034
1030
|
return we(this, null, function* () {
|
|
1035
1031
|
ur(t.prototype, this, "firstUpdated").call(this, e), this.enableVersion = BE.version;
|
|
@@ -1041,7 +1037,7 @@ let pd = class t extends qe {
|
|
|
1041
1037
|
${this.enableVersion ? P`<p class="version">Versión: ${this.enableVersion}</p>` : ""}
|
|
1042
1038
|
<div class="footer-container">
|
|
1043
1039
|
<a class="footer-link" href="https://navenegocios.ar/home" target="_blank">
|
|
1044
|
-
<span class="footer-text"
|
|
1040
|
+
<span class="footer-text">Procesado por</span>
|
|
1045
1041
|
<img alt="nave" src=${this.image} class="footer-icon" />
|
|
1046
1042
|
<img alt="nave" src=${this.icon} />
|
|
1047
1043
|
</a>
|
|
@@ -9364,10 +9360,10 @@ function fU(t, e, r, s) {
|
|
|
9364
9360
|
}
|
|
9365
9361
|
var Ou = qF(fU);
|
|
9366
9362
|
hI(hl(), "DD_LOGS", Ou);
|
|
9367
|
-
const yU = "@ranty/ranty-sdk", vU = "2.18.0-beta.
|
|
9363
|
+
const yU = "@nx-ranty/ranty-sdk", vU = "2.18.0-beta.11", bU = 2, wU = !0, xU = {
|
|
9368
9364
|
"": {
|
|
9369
|
-
name: "@ranty/ranty-sdk",
|
|
9370
|
-
version: "2.18.0-beta.
|
|
9365
|
+
name: "@nx-ranty/ranty-sdk",
|
|
9366
|
+
version: "2.18.0-beta.11",
|
|
9371
9367
|
license: "ISC",
|
|
9372
9368
|
dependencies: {
|
|
9373
9369
|
"@datadog/browser-logs": "^5.7.0",
|
|
@@ -46613,7 +46609,9 @@ let TU = Hy;
|
|
|
46613
46609
|
const eo = (t, e) => we(void 0, null, function* () {
|
|
46614
46610
|
const { order_id: r, platform: s } = t.additional_info;
|
|
46615
46611
|
return (yield TU.getInstallmentPlans(r, t.id, s, e)).response.data;
|
|
46616
|
-
}), PU = (t, e, r) => (pe.info("getInstallmentFromCard", { tag: "GET_INSTALLMENT_PLANS_FROM_CARD" }), (t == null ? void 0 : t.cards.find((n) => n.type === r && n.name === e)).installment_plans)
|
|
46612
|
+
}), PU = (t, e, r) => (pe.info("getInstallmentFromCard", { tag: "GET_INSTALLMENT_PLANS_FROM_CARD" }), (t == null ? void 0 : t.cards.find((n) => n.type === r && n.name === e)).installment_plans);
|
|
46613
|
+
var Le = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.CLICK_TO_PAY = "CLICK_TO_PAY", t.CARD_ON_FILE = "CARD_ON_FILE", t.ACCOUNT_TO_ACCOUNT = "ACCOUNT_TO_ACCOUNT", t.ACCOUNT_TO_ACCOUNT_FEEDBACK = "ACCOUNT_TO_ACCOUNT_FEEDBACK", t))(Le || {});
|
|
46614
|
+
const yd = class extends EventTarget {
|
|
46617
46615
|
static convertTime(e, r) {
|
|
46618
46616
|
return r === "seconds" ? e * 1e3 : e * 60 * 1e3;
|
|
46619
46617
|
}
|
|
@@ -64102,6 +64100,7 @@ let bn = class extends qe {
|
|
|
64102
64100
|
name="creditNumber"
|
|
64103
64101
|
label="Número de tarjeta"
|
|
64104
64102
|
.maxlength="${19}"
|
|
64103
|
+
autocomplete="cc-number"
|
|
64105
64104
|
.validationRules="${[
|
|
64106
64105
|
Ms("Tenés que completar el número de la tarjeta."),
|
|
64107
64106
|
Vn(16, "Revisá el número de la tarjeta, está incompleto.", !0),
|
|
@@ -64140,6 +64139,7 @@ let bn = class extends qe {
|
|
|
64140
64139
|
id="expired"
|
|
64141
64140
|
.maxlength="${5}"
|
|
64142
64141
|
label="Vencimiento"
|
|
64142
|
+
autocomplete="cc-csc"
|
|
64143
64143
|
.validationRules="${[
|
|
64144
64144
|
Ms("Tenés que completar el vencimiento."),
|
|
64145
64145
|
LO(),
|
|
@@ -64155,6 +64155,7 @@ let bn = class extends qe {
|
|
|
64155
64155
|
id="cvv"
|
|
64156
64156
|
.maxlength="${3}"
|
|
64157
64157
|
label="Código de seguridad"
|
|
64158
|
+
autocomplete="cc-csc"
|
|
64158
64159
|
.validationRules="${[
|
|
64159
64160
|
Ms("Tenés que completar el código."),
|
|
64160
64161
|
Vn(3, "Revisá el código."),
|
|
@@ -65879,6 +65880,26 @@ let wn = class extends qe {
|
|
|
65879
65880
|
constructor() {
|
|
65880
65881
|
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 = {};
|
|
65881
65882
|
}
|
|
65883
|
+
connectedCallback() {
|
|
65884
|
+
super.connectedCallback(), this.insertHiddenInputsForAutofill();
|
|
65885
|
+
}
|
|
65886
|
+
insertHiddenInputsForAutofill() {
|
|
65887
|
+
var d, l, c;
|
|
65888
|
+
if (!navigator.userAgent.match(/iPhone|iPad/i))
|
|
65889
|
+
return;
|
|
65890
|
+
const t = document.createElement("form");
|
|
65891
|
+
t.style.position = "absolute", t.style.top = "-9999px", t.style.opacity = "0", t.style.pointerEvents = "none", t.innerHTML = `
|
|
65892
|
+
<input type="text" id="hiddenCreditNumber" autocomplete="cc-number">
|
|
65893
|
+
<input type="text" id="hiddenDateExpired" autocomplete="cc-exp">
|
|
65894
|
+
<input type="password" id="hiddenCvv" autocomplete="cc-csc">
|
|
65895
|
+
`, document.body.appendChild(t);
|
|
65896
|
+
const e = document.getElementById("hiddenCreditNumber"), r = document.getElementById("hiddenDateExpired"), s = document.getElementById("hiddenCvv"), n = (d = this.shadowRoot) == null ? void 0 : d.querySelector('input[name="creditNumber"]'), i = (l = this.shadowRoot) == null ? void 0 : l.querySelector('input[name="dateExpired"]'), o = (c = this.shadowRoot) == null ? void 0 : c.querySelector('input[name="cvv"]'), a = () => {
|
|
65897
|
+
e.value && n && (n.value = e.value, n.dispatchEvent(new Event("input", { bubbles: !0 }))), r.value && i && (i.value = r.value, i.dispatchEvent(new Event("input", { bubbles: !0 }))), s.value && o && (o.value = s.value, o.dispatchEvent(new Event("input", { bubbles: !0 }))), t.remove();
|
|
65898
|
+
};
|
|
65899
|
+
document.addEventListener("visibilitychange", () => {
|
|
65900
|
+
document.visibilityState === "visible" && a();
|
|
65901
|
+
}), e.addEventListener("input", a), e.addEventListener("change", a), r.addEventListener("input", a), r.addEventListener("change", a), s.addEventListener("input", a), s.addEventListener("change", a);
|
|
65902
|
+
}
|
|
65882
65903
|
updated(t) {
|
|
65883
65904
|
super.updated(t), this._statePaymentManualInput && this._statePaymentManualInput.statePaymentRequest;
|
|
65884
65905
|
}
|
|
@@ -65968,6 +65989,7 @@ let wn = class extends qe {
|
|
|
65968
65989
|
label="Número de tarjeta"
|
|
65969
65990
|
inputmode="numeric"
|
|
65970
65991
|
.maxlength="${19}"
|
|
65992
|
+
autocomplete="cc-number"
|
|
65971
65993
|
.validationRules="${[
|
|
65972
65994
|
Vc("Tenés que completar el número de la tarjeta."),
|
|
65973
65995
|
Kc(16, "Revisá el número de la tarjeta, está incompleto.", !0),
|
|
@@ -65993,6 +66015,7 @@ let wn = class extends qe {
|
|
|
65993
66015
|
inputmode="numeric"
|
|
65994
66016
|
.maxlength="${5}"
|
|
65995
66017
|
label="Vencimiento"
|
|
66018
|
+
autocomplete="cc-exp"
|
|
65996
66019
|
.validationRules="${[
|
|
65997
66020
|
Vc("Tenés que completar el vencimiento."),
|
|
65998
66021
|
w4(),
|
|
@@ -66009,6 +66032,7 @@ let wn = class extends qe {
|
|
|
66009
66032
|
inputmode="numeric"
|
|
66010
66033
|
.maxlength="${3}"
|
|
66011
66034
|
label="Código de seguridad"
|
|
66035
|
+
autocomplete="cc-csc"
|
|
66012
66036
|
.validationRules="${[
|
|
66013
66037
|
Vc("Tenés que completar el código."),
|
|
66014
66038
|
Kc(3, "Revisá el código."),
|
|
@@ -80133,7 +80157,7 @@ function(t) {
|
|
|
80133
80157
|
*/
|
|
80134
80158
|
function(t) {
|
|
80135
80159
|
function e() {
|
|
80136
|
-
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-
|
|
80160
|
+
return (gt.canvg ? Promise.resolve(gt.canvg) : import("./index.es-d94dbc2c.js")).catch(function(r) {
|
|
80137
80161
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
80138
80162
|
}).then(function(r) {
|
|
80139
80163
|
return r.default ? r.default : r;
|
|
@@ -81827,7 +81851,7 @@ let xn = class extends qe {
|
|
|
81827
81851
|
<div class="cards">${this.getBrandCardAccepted()}</div>
|
|
81828
81852
|
</div>
|
|
81829
81853
|
</div>
|
|
81830
|
-
<form @input="${this.validateForm}">
|
|
81854
|
+
<form @input="${this.validateForm}" autocomplete="on">
|
|
81831
81855
|
<div class="credit-info">
|
|
81832
81856
|
<scof-input
|
|
81833
81857
|
class="credit-number"
|
|
@@ -81837,6 +81861,7 @@ let xn = class extends qe {
|
|
|
81837
81861
|
label="Número de tarjeta"
|
|
81838
81862
|
inputmode="numeric"
|
|
81839
81863
|
.maxlength="${19}"
|
|
81864
|
+
autocomplete="cc-number"
|
|
81840
81865
|
.validationRules="${[
|
|
81841
81866
|
Vc("Tenés que completar el número de la tarjeta."),
|
|
81842
81867
|
Kc(16, "Revisá el número de la tarjeta, está incompleto."),
|
|
@@ -81862,6 +81887,7 @@ let xn = class extends qe {
|
|
|
81862
81887
|
inputmode="numeric"
|
|
81863
81888
|
.maxlength="${5}"
|
|
81864
81889
|
label="Vencimiento"
|
|
81890
|
+
autocomplete="cc-csc"
|
|
81865
81891
|
.validationRules="${[
|
|
81866
81892
|
Vc("Tenés que completar el vencimiento."),
|
|
81867
81893
|
w4(),
|
|
@@ -81878,6 +81904,7 @@ let xn = class extends qe {
|
|
|
81878
81904
|
inputmode="numeric"
|
|
81879
81905
|
.maxlength="${3}"
|
|
81880
81906
|
label="Código de seguridad"
|
|
81907
|
+
autocomplete="cc-csc"
|
|
81881
81908
|
.validationRules="${[
|
|
81882
81909
|
Vc("Tenés que completar el código."),
|
|
81883
81910
|
Kc(3, "Revisá el código."),
|
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-8c489189.js";
|
|
2
2
|
export {
|
|
3
3
|
n as A2AAccountDetails,
|
|
4
4
|
e as A2AAccountList,
|