@ranty/ranty-sdk 2.8.0 → 2.10.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 Xu = I_(nI);
7104
7104
  r7(Na(), "DD_LOGS", Xu);
7105
- const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
7105
+ const iI = "@nx-ranty/ranty-sdk", oI = "2.10.0", aI = 2, lI = !0, dI = {
7106
7106
  "": {
7107
7107
  name: "@nx-ranty/ranty-sdk",
7108
- version: "2.8.0",
7108
+ version: "2.10.0",
7109
7109
  license: "ISC",
7110
7110
  dependencies: {
7111
7111
  "@datadog/browser-logs": "^5.7.0",
@@ -21663,9 +21663,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
21663
21663
  peer: !0
21664
21664
  },
21665
21665
  "node_modules/express": {
21666
- version: "4.21.1",
21667
- resolved: "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
21668
- integrity: "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
21666
+ version: "4.21.2",
21667
+ resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/express/-/express-4.21.2.tgz",
21668
+ integrity: "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
21669
21669
  dev: !0,
21670
21670
  dependencies: {
21671
21671
  accepts: "~1.3.8",
@@ -21687,7 +21687,7 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
21687
21687
  methods: "~1.1.2",
21688
21688
  "on-finished": "2.4.1",
21689
21689
  parseurl: "~1.3.3",
21690
- "path-to-regexp": "0.1.10",
21690
+ "path-to-regexp": "0.1.12",
21691
21691
  "proxy-addr": "~2.0.7",
21692
21692
  qs: "6.13.0",
21693
21693
  "range-parser": "~1.2.1",
@@ -21702,6 +21702,10 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
21702
21702
  },
21703
21703
  engines: {
21704
21704
  node: ">= 0.10.0"
21705
+ },
21706
+ funding: {
21707
+ type: "opencollective",
21708
+ url: "https://opencollective.com/express"
21705
21709
  }
21706
21710
  },
21707
21711
  "node_modules/express/node_modules/debug": {
@@ -25357,9 +25361,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
25357
25361
  dev: !0
25358
25362
  },
25359
25363
  "node_modules/path-to-regexp": {
25360
- version: "0.1.10",
25361
- resolved: "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
25362
- integrity: "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==",
25364
+ version: "0.1.12",
25365
+ resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
25366
+ integrity: "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
25363
25367
  dev: !0
25364
25368
  },
25365
25369
  "node_modules/path-type": {
@@ -39193,9 +39197,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
39193
39197
  peer: !0
39194
39198
  },
39195
39199
  express: {
39196
- version: "4.21.1",
39197
- resolved: "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
39198
- integrity: "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
39200
+ version: "4.21.2",
39201
+ resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/express/-/express-4.21.2.tgz",
39202
+ integrity: "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
39199
39203
  dev: !0,
39200
39204
  requires: {
39201
39205
  accepts: "~1.3.8",
@@ -39217,7 +39221,7 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
39217
39221
  methods: "~1.1.2",
39218
39222
  "on-finished": "2.4.1",
39219
39223
  parseurl: "~1.3.3",
39220
- "path-to-regexp": "0.1.10",
39224
+ "path-to-regexp": "0.1.12",
39221
39225
  "proxy-addr": "~2.0.7",
39222
39226
  qs: "6.13.0",
39223
39227
  "range-parser": "~1.2.1",
@@ -42020,9 +42024,9 @@ const iI = "@nx-ranty/ranty-sdk", oI = "2.8.0", aI = 2, lI = !0, dI = {
42020
42024
  }
42021
42025
  },
42022
42026
  "path-to-regexp": {
42023
- version: "0.1.10",
42024
- resolved: "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
42025
- integrity: "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==",
42027
+ version: "0.1.12",
42028
+ resolved: "https://naranja.jfrog.io/artifactory/api/npm/nx_npm_public/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
42029
+ integrity: "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
42026
42030
  dev: !0
42027
42031
  },
42028
42032
  "path-type": {
@@ -58126,8 +58130,8 @@ let Rr = class r extends Ze {
58126
58130
  }
58127
58131
  _validateForm() {
58128
58132
  let e = [];
58129
- this._contextData.isC2pAvailable ? e = Mh(
58130
- this._contextData.availableNetworks,
58133
+ this._contextData.availableNetworks.includes(this._cardBrand) || (this._shouldAddCardToC2P = !1), this._contextData.acceptedBrands.includes(this._cardBrand) ? e = Mh(
58134
+ this._contextData.acceptedBrands,
58131
58135
  this._cardBrand,
58132
58136
  this._cardNumber
58133
58137
  ).errors : this._contextData.acceptedOthersBrands.includes(this._cardBrand) && (e = Mh(
@@ -58408,7 +58412,7 @@ let Sr = class extends Ze {
58408
58412
  return this._codSeg.length >= 3;
58409
58413
  }
58410
58414
  render() {
58411
- var r, e, t, s, n, i, o;
58415
+ var r, e, t, s, n, i;
58412
58416
  return Y` <div class="container">
58413
58417
  <div class="panel-container">
58414
58418
  <div class="top-half">
@@ -58443,13 +58447,13 @@ let Sr = class extends Ze {
58443
58447
  ${!this.digitalCardData && ((s = this._contextData) == null ? void 0 : s.click2PayPaymentInput) !== void 0 ? Y`
58444
58448
  <div class="items">
58445
58449
  <span style="width: 69px; margin-right: 15px; border-radius:2px;"
58446
- >${this._getBrandImage((n = this._contextData) == null ? void 0 : n.cardBrand)}</span
58450
+ >${this._getBrandImage(this._contextData.cardBrand)}</span
58447
58451
  >
58448
58452
  <div class="data">
58449
58453
  <span class="text">${this.brandText}</span>
58450
58454
  <div class="data-card">
58451
58455
  ${Array(4).fill(void 0).map(() => Y`<span class="dot"></span>`)}
58452
- <span style="color: #6a6a6a;">${(o = (i = this._contextData) == null ? void 0 : i.creditNumber) == null ? void 0 : o.slice(-4)}</span>
58456
+ <span style="color: #6a6a6a;">${(i = (n = this._contextData) == null ? void 0 : n.creditNumber) == null ? void 0 : i.slice(-4)}</span>
58453
58457
  </div>
58454
58458
  </div>
58455
58459
  </div>
@@ -58462,11 +58466,11 @@ let Sr = class extends Ze {
58462
58466
  CFT: ${this.selectedInstallment.total_financial_cost}% + IVA | Total financiado:
58463
58467
  $${this.selectedInstallment.total_amount.value}
58464
58468
  </p>
58465
- ${this.cvvNeeded ? Y`<div class="cvv-input">
58469
+ ${this.cvvNeeded ? Y` <div class="cvv-input">
58466
58470
  <input-cod-seg
58467
58471
  .codSeg="${this._codSeg}"
58468
- @onChange="${(a) => {
58469
- this._codSeg = a.detail.codSeg, this._validateForm();
58472
+ @onChange="${(o) => {
58473
+ this._codSeg = o.detail.codSeg, this._validateForm();
58470
58474
  }}"
58471
58475
  ></input-cod-seg>
58472
58476
  </div>` : ""}
@@ -61498,8 +61502,8 @@ let hs = class r extends Ze {
61498
61502
  }
61499
61503
  _validateForm() {
61500
61504
  let e = [];
61501
- this._contextData.isC2pAvailable ? e = Mh(
61502
- this._contextData.availableNetworks,
61505
+ this._contextData.availableNetworks.includes(this._cardBrand) || (this._shouldAddCard = !1, this.showTerms = !1), this._contextData.acceptedBrands.includes(this._cardBrand) ? e = Mh(
61506
+ this._contextData.acceptedBrands,
61503
61507
  this._cardBrand,
61504
61508
  this._cardNumber
61505
61509
  ).errors : this._contextData.acceptedOthersBrands.includes(this._cardBrand) && (e = Mh(
@@ -79486,7 +79490,7 @@ function(r) {
79486
79490
  */
79487
79491
  function(r) {
79488
79492
  function e() {
79489
- return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-73085d4d.js")).catch(function(t) {
79493
+ return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-b99bec7d.js")).catch(function(t) {
79490
79494
  return Promise.reject(new Error("Could not load canvg: " + t));
79491
79495
  }).then(function(t) {
79492
79496
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-b41a1245.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-a6e954db.js";
2
2
  var vt = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, V = (
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-b41a1245.js";
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-a6e954db.js";
2
2
  export {
3
3
  s as AppHome,
4
4
  t as AppLoading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {