@ranty/ranty-sdk 2.6.0-beta.0 → 2.6.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.
|
@@ -7102,10 +7102,10 @@ function nI(r, e, t, s) {
|
|
|
7102
7102
|
}
|
|
7103
7103
|
var Zu = I_(nI);
|
|
7104
7104
|
r7(Na(), "DD_LOGS", Zu);
|
|
7105
|
-
const iI = "@nx-ranty/ranty-sdk", oI = "2.6.0
|
|
7105
|
+
const iI = "@nx-ranty/ranty-sdk", oI = "2.6.0", aI = 2, lI = !0, dI = {
|
|
7106
7106
|
"": {
|
|
7107
7107
|
name: "@nx-ranty/ranty-sdk",
|
|
7108
|
-
version: "2.6.0
|
|
7108
|
+
version: "2.6.0",
|
|
7109
7109
|
license: "ISC",
|
|
7110
7110
|
dependencies: {
|
|
7111
7111
|
"@datadog/browser-logs": "^5.7.0",
|
|
@@ -20666,9 +20666,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.6.0-beta.0", aI = 2, lI = !0, dI = {
|
|
|
20666
20666
|
}
|
|
20667
20667
|
},
|
|
20668
20668
|
"node_modules/cross-spawn": {
|
|
20669
|
-
version: "7.0.
|
|
20670
|
-
resolved: "https://
|
|
20671
|
-
integrity: "sha512-
|
|
20669
|
+
version: "7.0.6",
|
|
20670
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
|
20671
|
+
integrity: "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
|
20672
20672
|
dependencies: {
|
|
20673
20673
|
"path-key": "^3.1.0",
|
|
20674
20674
|
"shebang-command": "^2.0.0",
|
|
@@ -38504,9 +38504,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.6.0-beta.0", aI = 2, lI = !0, dI = {
|
|
|
38504
38504
|
}
|
|
38505
38505
|
},
|
|
38506
38506
|
"cross-spawn": {
|
|
38507
|
-
version: "7.0.
|
|
38508
|
-
resolved: "https://
|
|
38509
|
-
integrity: "sha512-
|
|
38507
|
+
version: "7.0.6",
|
|
38508
|
+
resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
|
38509
|
+
integrity: "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
|
38510
38510
|
requires: {
|
|
38511
38511
|
"path-key": "^3.1.0",
|
|
38512
38512
|
"shebang-command": "^2.0.0",
|
|
@@ -57316,21 +57316,21 @@ let jr = class r extends $e {
|
|
|
57316
57316
|
const t = e;
|
|
57317
57317
|
this.contextData.cardData.cardNumber = t.detail.creditNumber, this.contextData.cardData.expDate = t.detail.expired, this.contextData.cardData.ccv = t.detail.codSeg;
|
|
57318
57318
|
})), this.addEventListener("newCardSelected", (e) => _e(this, null, function* () {
|
|
57319
|
-
var s;
|
|
57319
|
+
var s, n, i;
|
|
57320
57320
|
const t = e;
|
|
57321
57321
|
if (xe.info("new card selected", { tag: "NEW_CARD_SELECTED", contextObject: t }), this._isLoading = !0, t.detail.srcDigitalCardId)
|
|
57322
57322
|
xe.info("ARRAY_CARD_SELECTED_CONTEXT", t), this.contextData.srcDigitalCardId = t.detail.srcDigitalCardId, delete this.contextData.encryptedCardData, yield this._installmentPlans(), this._isLoading = !1, this.contextData.componentsVisibility.showInstallmentPlan = !0;
|
|
57323
57323
|
else {
|
|
57324
|
-
xe.info("NEW_CARD_SELECTED_ELSE", t), this.contextData.isC2pAvailable = t.detail.shouldAddCardToC2P, this.useC2P = t.detail.shouldAddCardToC2P, this.contextData.srcDigitalCardId = void 0, delete this.contextData.encryptedCardData, this.contextData.acceptedOthersBrands = t.detail.cardBrand, this.contextData.creditNumber = t.detail.creditNumber, this.contextData.cardType = t.detail.cardType, this.contextData.cardBrand = t.detail.cardBrand;
|
|
57325
|
-
const [
|
|
57326
|
-
if (yield this._installmentPlans(), !((
|
|
57324
|
+
xe.info("NEW_CARD_SELECTED_ELSE", t), this.contextData.isC2pAvailable = (s = t.detail.shouldAddCardToC2P) != null ? s : t.detail.isC2P, this.useC2P = (n = t.detail.shouldAddCardToC2P) != null ? n : t.detail.isC2P, this.contextData.srcDigitalCardId = void 0, delete this.contextData.encryptedCardData, this.contextData.acceptedOthersBrands = t.detail.cardBrand, this.contextData.creditNumber = t.detail.creditNumber, this.contextData.cardType = t.detail.cardType, this.contextData.cardBrand = t.detail.cardBrand;
|
|
57325
|
+
const [o, a] = t.detail.expired.split("/");
|
|
57326
|
+
if (yield this._installmentPlans(), !((i = this.contextData.availableNetworks) != null && i.includes(this.contextData.cardBrand)) || this.contextData.click2PayPaymentInput === void 0 || !this.contextData.isC2pAvailable) {
|
|
57327
57327
|
this.contextData.directPaymentData.formData = {
|
|
57328
57328
|
creditNumber: t.detail.creditNumber,
|
|
57329
57329
|
name: py(
|
|
57330
57330
|
this.contextData.cardHolderData.firstName,
|
|
57331
57331
|
this.contextData.cardHolderData.lastName
|
|
57332
57332
|
),
|
|
57333
|
-
expired: `${
|
|
57333
|
+
expired: `${o}/${a}`,
|
|
57334
57334
|
codSeg: t.detail.codSeg,
|
|
57335
57335
|
email: this.contextData.cardHolderData.email,
|
|
57336
57336
|
dni: this.contextData.cardHolderData.dni.replaceAll(".", ""),
|
|
@@ -57338,19 +57338,19 @@ let jr = class r extends $e {
|
|
|
57338
57338
|
}, this._isLoading = !1, this.contextData.componentsVisibility.showInstallmentPlan = !0;
|
|
57339
57339
|
return;
|
|
57340
57340
|
}
|
|
57341
|
-
const
|
|
57341
|
+
const d = {
|
|
57342
57342
|
primaryAccountNumber: t.detail.creditNumber,
|
|
57343
|
-
panExpirationMonth:
|
|
57344
|
-
panExpirationYear:
|
|
57343
|
+
panExpirationMonth: o,
|
|
57344
|
+
panExpirationYear: a,
|
|
57345
57345
|
cardSecurityCode: t.detail.codSeg,
|
|
57346
57346
|
cardholderFirstName: this.contextData.cardHolderData.firstName,
|
|
57347
57347
|
cardholderLastName: this.contextData.cardHolderData.lastName
|
|
57348
57348
|
};
|
|
57349
57349
|
if (this.contextData.click2PayPaymentInput)
|
|
57350
57350
|
try {
|
|
57351
|
-
this.contextData.encryptedCardData = yield oj(this.contextData.mcService,
|
|
57352
|
-
} catch (
|
|
57353
|
-
xe.error("error handling new card", { tag: "ERROR_NEW_CARD" },
|
|
57351
|
+
this.contextData.encryptedCardData = yield oj(this.contextData.mcService, d), this.contextData.componentsVisibility.showInstallmentPlan = !0;
|
|
57352
|
+
} catch (l) {
|
|
57353
|
+
xe.error("error handling new card", { tag: "ERROR_NEW_CARD" }, l), this.contextData.hasError = !0, this._isLoading = !1;
|
|
57354
57354
|
return;
|
|
57355
57355
|
}
|
|
57356
57356
|
this.contextData.componentsVisibility.showInstallmentPlan = !0, this._isLoading = !1;
|
|
@@ -79499,7 +79499,7 @@ function(r) {
|
|
|
79499
79499
|
*/
|
|
79500
79500
|
function(r) {
|
|
79501
79501
|
function e() {
|
|
79502
|
-
return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-
|
|
79502
|
+
return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-f7b340a0.js")).catch(function(t) {
|
|
79503
79503
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
79504
79504
|
}).then(function(t) {
|
|
79505
79505
|
return t.default ? t.default : t;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, w as t, f as e, e as o, n as r, p as C, O as m, o as p, q as l, m as d, r as i, C as u, u as y, R as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, Z as L, a0 as v, N as A, P as D, L as g, x as E, U as w, V as Q, T as h, a1 as B, W as N, X as R, Y as b, i as j, h as q, $ as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, H as X, I as Y, J as Z, M as $, Q as _, K as aa } from "./index-
|
|
1
|
+
import { A as s, w as t, f as e, e as o, n as r, p as C, O as m, o as p, q as l, m as d, r as i, C as u, u as y, R as P, j as F, a as S, d as c, D as M, l as O, E as I, v as k, b as x, F as f, k as H, Z as L, a0 as v, N as A, P as D, L as g, x as E, U as w, V as Q, T as h, a1 as B, W as N, X as R, Y as b, i as j, h as q, $ as z, S as G, y as J, t as K, z as T, B as U, G as V, s as W, H as X, I as Y, J as Z, M as $, Q as _, K as aa } from "./index-5d3b91c5.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AppHome,
|
|
4
4
|
t as AppLoading,
|