@ranty/ranty-sdk 3.28.2-beta.0 → 3.28.3-beta.0
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.
|
@@ -926,7 +926,7 @@ function _e(t) {
|
|
|
926
926
|
*/
|
|
927
927
|
var oy;
|
|
928
928
|
((oy = window.HTMLSlotElement) === null || oy === void 0 ? void 0 : oy.prototype.assignedElements) != null;
|
|
929
|
-
const FT = "@nx-ranty/ranty-sdk", RT = "3.28.
|
|
929
|
+
const FT = "@nx-ranty/ranty-sdk", RT = "3.28.3-beta.0", PT = "Ranty sdk", DT = "dist/index.js", NT = {
|
|
930
930
|
".": "./dist/index.js"
|
|
931
931
|
}, OT = "types/index.d.ts", LT = [
|
|
932
932
|
"dist",
|
|
@@ -16591,10 +16591,10 @@ function YM(t, e, n, r) {
|
|
|
16591
16591
|
}
|
|
16592
16592
|
const Dp = bM(YM);
|
|
16593
16593
|
bQ(Qo(), "DD_LOGS", Dp);
|
|
16594
|
-
const JM = "@nx-ranty/ranty-sdk", XM = "3.28.
|
|
16594
|
+
const JM = "@nx-ranty/ranty-sdk", XM = "3.28.3-beta.0", ZM = 3, $M = !0, ez = {
|
|
16595
16595
|
"": {
|
|
16596
16596
|
name: "@nx-ranty/ranty-sdk",
|
|
16597
|
-
version: "3.28.
|
|
16597
|
+
version: "3.28.3-beta.0",
|
|
16598
16598
|
license: "ISC",
|
|
16599
16599
|
dependencies: {
|
|
16600
16600
|
"@amplitude/analytics-browser": "^2.33.1",
|
|
@@ -42894,18 +42894,16 @@ class ei {
|
|
|
42894
42894
|
});
|
|
42895
42895
|
}
|
|
42896
42896
|
// CLICK - Es una de las pantallas que existe si hay un problema en el sistema, te permite reintentar
|
|
42897
|
-
servicePaymentFailedRetry(
|
|
42897
|
+
servicePaymentFailedRetry() {
|
|
42898
42898
|
kt("trackevent", {
|
|
42899
42899
|
eventName: "click",
|
|
42900
42900
|
eventParams: {
|
|
42901
42901
|
product: "checkout",
|
|
42902
42902
|
section: "payment_failed",
|
|
42903
42903
|
element: "retry",
|
|
42904
|
-
method: this.resolveCard(e),
|
|
42905
42904
|
errororigin: "service",
|
|
42906
42905
|
errortype: "service_error",
|
|
42907
|
-
errorcategory: "tecnical"
|
|
42908
|
-
paymenttype: this.resolvePaymentType(n)
|
|
42906
|
+
errorcategory: "tecnical"
|
|
42909
42907
|
}
|
|
42910
42908
|
});
|
|
42911
42909
|
}
|
|
@@ -50606,35 +50604,32 @@ let to = class t extends Ze {
|
|
|
50606
50604
|
}
|
|
50607
50605
|
loadData() {
|
|
50608
50606
|
return ue(this, null, function* () {
|
|
50609
|
-
var e, n
|
|
50607
|
+
var e, n;
|
|
50610
50608
|
try {
|
|
50611
|
-
const
|
|
50612
|
-
this.state.paymentRequest =
|
|
50613
|
-
const
|
|
50609
|
+
const r = this.state.paymentResponse ? (yield Fo((n = (e = this.state) == null ? void 0 : e.paymentRequest) == null ? void 0 : n.id, "payment_request", !0)).response : this.payfacContext.paymentRequest;
|
|
50610
|
+
this.state.paymentRequest = r != null ? r : null, yield this.validateCircuitBreaker(), this.payfacContext.payment !== void 0 && this.getInpustPaymentNotProcessedretry();
|
|
50611
|
+
const s = {
|
|
50614
50612
|
context: Se.DEFAULT,
|
|
50615
50613
|
payment_sync: this.payfacContext.paymentSync,
|
|
50616
50614
|
is_embedded: this.payfacContext.isEmbedded
|
|
50617
|
-
},
|
|
50618
|
-
if (
|
|
50619
|
-
Object.assign(this.status,
|
|
50615
|
+
}, i = yield w4(this.payfacContext.paymentRequest, s), { source: o, payment: a } = yield z9(this.payfacContext.paymentRequest), d = H9(this.payfacContext.paymentRequest, a);
|
|
50616
|
+
if (a && (this.payfacContext.payment = a, this.state.payment = a), this.payfacContext.paymentRequest = r, i && i.error) {
|
|
50617
|
+
Object.assign(this.status, i.message), o === "QR" ? d === "BUSINESS" && this.tracking.paymentNotProcessedRetryQR(
|
|
50620
50618
|
this.payfacContext.payment.payment_input,
|
|
50621
50619
|
this.payfacContext.payment.wallet.name,
|
|
50622
50620
|
this.payfacContext.paymentRequest.payment_type
|
|
50623
|
-
) : this.tracking.servicePaymentFailedRetry(
|
|
50624
|
-
(i = (s = (r = this.state.binData) == null ? void 0 : r.installment) == null ? void 0 : s.type) != null ? i : "no_installment",
|
|
50625
|
-
this.payfacContext.paymentRequest.payment_type
|
|
50626
|
-
), this.createEvent("button-pushed", Ne.STATUS);
|
|
50621
|
+
) : this.tracking.servicePaymentFailedRetry(), this.createEvent("button-pushed", Ne.STATUS);
|
|
50627
50622
|
return;
|
|
50628
50623
|
}
|
|
50629
|
-
const
|
|
50630
|
-
if (!(
|
|
50631
|
-
const
|
|
50632
|
-
Object.assign(this.status,
|
|
50624
|
+
const l = qw(r), c = u4(r), u = qv(r);
|
|
50625
|
+
if (!(l || c || u)) {
|
|
50626
|
+
const h = ns.messages.find((p) => p.name === "no-payment-methods");
|
|
50627
|
+
Object.assign(this.status, h), this.createEvent("button-pushed", Ne.STATUS);
|
|
50633
50628
|
return;
|
|
50634
50629
|
}
|
|
50635
|
-
qv(this.payfacContext.paymentRequest) && (yield this.getDataSCOF(this.payfacContext.paymentRequest.id)), p4(this.payfacContext.paymentRequest) && (yield this.getDataA2A(this.payfacContext.paymentRequest.id)), this.state.onlyWallet || (yield this.getPromotions()), !this.state.scofEnabled && !this.state.onlyWallet && (yield this.getInstallmentPlans()), this.processPaymentInputs(
|
|
50636
|
-
} catch (
|
|
50637
|
-
_t("LOAD_DATA_ERROR", "Load data failed."), console.log(
|
|
50630
|
+
qv(this.payfacContext.paymentRequest) && (yield this.getDataSCOF(this.payfacContext.paymentRequest.id)), p4(this.payfacContext.paymentRequest) && (yield this.getDataA2A(this.payfacContext.paymentRequest.id)), this.state.onlyWallet || (yield this.getPromotions()), !this.state.scofEnabled && !this.state.onlyWallet && (yield this.getInstallmentPlans()), this.processPaymentInputs(r), this.requestUpdate();
|
|
50631
|
+
} catch (r) {
|
|
50632
|
+
_t("LOAD_DATA_ERROR", "Load data failed."), console.log(r), this.redirectByUnknownError();
|
|
50638
50633
|
}
|
|
50639
50634
|
});
|
|
50640
50635
|
}
|
|
@@ -66705,7 +66700,7 @@ function(t) {
|
|
|
66705
66700
|
var l = d.getContext("2d");
|
|
66706
66701
|
l.fillStyle = "#fff", l.fillRect(0, 0, d.width, d.height);
|
|
66707
66702
|
var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
|
|
66708
|
-
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-
|
|
66703
|
+
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-bfe114fc.js")).catch(function(h) {
|
|
66709
66704
|
return Promise.reject(new Error("Could not load canvg: " + h));
|
|
66710
66705
|
}).then(function(h) {
|
|
66711
66706
|
return h.default ? h.default : h;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-
|
|
1
|
+
import { a4 as t, a7 as e, a5 as n, a6 as o, A as r, t as p, G as C, v as i, B as u, a3 as l, R as d, K as m, X as c, J as P, Y as A, Z as I, $ as y, h as D, f, a2 as k, a1 as F, M as S, O as L, T as H, U as M, V as g, C as v, i as x, n as E, a as O, d as b, a0 as Q, s as h, y as B, r as w, o as N, p as j, q, D as z, W as G, E as J, e as K, k as R, b as T, F as U, H as V, I as W, L as X, N as Y, j as Z, w as $, P as _, l as aa, u as sa, x as ta, Q as ea, S as na, z as oa, m as ra } from "./index-63374715.js";
|
|
2
2
|
export {
|
|
3
3
|
t as A2AAccountDetails,
|
|
4
4
|
e as A2AFeedbackHome,
|