@ranty/ranty-sdk 3.22.0-beta.1 → 3.22.0-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.
|
@@ -926,7 +926,7 @@ function _e(t) {
|
|
|
926
926
|
*/
|
|
927
927
|
var ty;
|
|
928
928
|
((ty = window.HTMLSlotElement) === null || ty === void 0 ? void 0 : ty.prototype.assignedElements) != null;
|
|
929
|
-
const ET = "@ranty/ranty-sdk", kT = "3.22.0-beta.
|
|
929
|
+
const ET = "@ranty/ranty-sdk", kT = "3.22.0-beta.2", ST = "Ranty sdk", IT = "dist/index.js", TT = {
|
|
930
930
|
".": "./dist/index.js"
|
|
931
931
|
}, UT = "types/index.d.ts", jT = [
|
|
932
932
|
"dist",
|
|
@@ -12951,7 +12951,7 @@ const El = new fN(), yy = (t = !1, e, n) => {
|
|
|
12951
12951
|
return r.interceptors.request.use(
|
|
12952
12952
|
(i) => he(void 0, null, function* () {
|
|
12953
12953
|
if (i.url === "/sdk/region")
|
|
12954
|
-
return
|
|
12954
|
+
return i.baseURL = s.VITE_API_RANTY_DOMAIN_API, i.headers["content-type"] = "application/json", i;
|
|
12955
12955
|
const o = El.region === s.VITE_COGNITO_REGION_2 ? s.VITE_API_RANTY_DOMAIN_API_REGION_2 : s.VITE_API_RANTY_DOMAIN_API_REGION_1;
|
|
12956
12956
|
i.baseURL = i.url === "/sdk/signer" ? s.VITE_API_RANTY_DOMAIN_API : o, i.headers["content-type"] = "application/json";
|
|
12957
12957
|
const a = sessionStorage.getItem("key");
|
|
@@ -16587,10 +16587,10 @@ function zM(t, e, n, r) {
|
|
|
16587
16587
|
}
|
|
16588
16588
|
const jp = uM(zM);
|
|
16589
16589
|
uQ(Po(), "DD_LOGS", jp);
|
|
16590
|
-
const HM = "@ranty/ranty-sdk", qM = "3.22.0-beta.
|
|
16590
|
+
const HM = "@ranty/ranty-sdk", qM = "3.22.0-beta.2", KM = 3, VM = !0, GM = {
|
|
16591
16591
|
"": {
|
|
16592
16592
|
name: "@ranty/ranty-sdk",
|
|
16593
|
-
version: "3.22.0-beta.
|
|
16593
|
+
version: "3.22.0-beta.2",
|
|
16594
16594
|
license: "ISC",
|
|
16595
16595
|
dependencies: {
|
|
16596
16596
|
"@datadog/browser-logs": "^6.17.0",
|
|
@@ -45177,30 +45177,30 @@ let Wi = class t extends Ze {
|
|
|
45177
45177
|
}, this.messageError = De({}, this.messageErrorDefault), this._setTokenTask = new B4(this, {
|
|
45178
45178
|
args: () => [this.publicKey],
|
|
45179
45179
|
task: () => he(this, null, function* () {
|
|
45180
|
-
var e, n;
|
|
45181
|
-
bt.setConfig(this.env), YM(bt.getConfig()), this.payfacContext.config = bt.getConfig(), this.payfacContext.isEmbedded = this.isEmbedded === "true", this.payfacContext.paymentLinkId = this.paymentLinkId, this.payfacContext.debtRef = this.debtRef, this.payfacContext.context = (e = this.mode) == null ? void 0 : e.toUpperCase()
|
|
45180
|
+
var e, n, r;
|
|
45181
|
+
bt.setConfig(this.env), YM(bt.getConfig()), this.payfacContext.config = bt.getConfig(), this.payfacContext.isEmbedded = this.isEmbedded === "true", this.payfacContext.paymentLinkId = this.paymentLinkId, this.payfacContext.debtRef = this.debtRef, this.payfacContext.context = (e = this.mode) == null ? void 0 : e.toUpperCase();
|
|
45182
45182
|
try {
|
|
45183
|
-
const
|
|
45183
|
+
const s = yield El.createToken(
|
|
45184
45184
|
this.publicKey,
|
|
45185
45185
|
this.mode,
|
|
45186
45186
|
this.payfacContext.isEmbedded,
|
|
45187
45187
|
this.paymentRequestId || this.paymentLinkId || this.debtRef
|
|
45188
45188
|
);
|
|
45189
|
-
if (!this.payfacContext.isEmbedded && this.env !== "sandbox" && (yield Kz(this.mode.toUpperCase(), this.payfacContext.isEmbedded, this.paymentRequestId)), this.payfacContext.token =
|
|
45190
|
-
const
|
|
45189
|
+
if (!this.payfacContext.isEmbedded && this.env !== "sandbox" && (yield Kz(this.mode.toUpperCase(), this.payfacContext.isEmbedded, this.paymentRequestId)), this.payfacContext.token = s == null ? void 0 : s.access_token, yield this.getPaymentRequest(), this.payfacContext.paymentSync = this.paymentSync === "true" || this.env === "sandbox" || this.paymentLinkId !== "" || this.debtRef !== "" || ((n = this.payfacContext.paymentRequest) == null ? void 0 : n.payment_type) === "payment_link", !this.payfacContext.paymentRequest && this.mode !== "a2a_feedback") {
|
|
45190
|
+
const i = d9("payment-request-not-found");
|
|
45191
45191
|
throw this.messageError = {
|
|
45192
|
-
title:
|
|
45193
|
-
message:
|
|
45194
|
-
image:
|
|
45192
|
+
title: i.title,
|
|
45193
|
+
message: i.subtitle,
|
|
45194
|
+
image: i.icon,
|
|
45195
45195
|
showButton: !1
|
|
45196
45196
|
}, new Error("Payment request not found");
|
|
45197
45197
|
}
|
|
45198
45198
|
this.payfacContext.isReady = !0, this.dispatchEvent(new CustomEvent("payfac-context-set", { bubbles: !0, composed: !0 }));
|
|
45199
|
-
} catch (
|
|
45200
|
-
throw _t("AUTH_ERROR", "Authentication failed."), this.payfacContext.isReady = !1, console.log(
|
|
45199
|
+
} catch (s) {
|
|
45200
|
+
throw _t("AUTH_ERROR", "Authentication failed."), this.payfacContext.isReady = !1, console.log(s), ie.error(
|
|
45201
45201
|
"authorizationError",
|
|
45202
45202
|
{
|
|
45203
|
-
context: (
|
|
45203
|
+
context: (r = this.mode) == null ? void 0 : r.toUpperCase(),
|
|
45204
45204
|
origin_sdk: Wg,
|
|
45205
45205
|
tag: "AUTH_ERROR",
|
|
45206
45206
|
is_embedded: this.payfacContext.isEmbedded,
|
|
@@ -45209,13 +45209,13 @@ let Wi = class t extends Ze {
|
|
|
45209
45209
|
batch_token_id: this.paymentLinkId || null
|
|
45210
45210
|
}
|
|
45211
45211
|
},
|
|
45212
|
-
|
|
45213
|
-
),
|
|
45212
|
+
s
|
|
45213
|
+
), s.message === "Maximum retries reached" && (this.messageError = {
|
|
45214
45214
|
title: "Problemas de conexión",
|
|
45215
45215
|
message: "Por favor, verifica tu red y vuelve a intentarlo cuando tengas una conexión estable.",
|
|
45216
45216
|
image: "https://ranty-sdk-js.naranjax.com/images/circle-info.svg",
|
|
45217
45217
|
showButton: !0
|
|
45218
|
-
}),
|
|
45218
|
+
}), s;
|
|
45219
45219
|
}
|
|
45220
45220
|
})
|
|
45221
45221
|
}), this.setFraudPreventionOption = (e) => {
|
|
@@ -65863,7 +65863,7 @@ function(t) {
|
|
|
65863
65863
|
var l = d.getContext("2d");
|
|
65864
65864
|
l.fillStyle = "#fff", l.fillRect(0, 0, d.width, d.height);
|
|
65865
65865
|
var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
|
|
65866
|
-
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-
|
|
65866
|
+
return (wt.canvg ? Promise.resolve(wt.canvg) : import("./index.es-4d3e1689.js")).catch(function(h) {
|
|
65867
65867
|
return Promise.reject(new Error("Could not load canvg: " + h));
|
|
65868
65868
|
}).then(function(h) {
|
|
65869
65869
|
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-4046a6d7.js";
|
|
2
2
|
export {
|
|
3
3
|
t as A2AAccountDetails,
|
|
4
4
|
e as A2AFeedbackHome,
|