@ranty/ranty-sdk 3.5.0 → 3.6.0-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.
@@ -916,7 +916,7 @@ function le(t) {
916
916
  */
917
917
  var z1;
918
918
  ((z1 = window.HTMLSlotElement) === null || z1 === void 0 ? void 0 : z1.prototype.assignedElements) != null;
919
- const dS = "@ranty/ranty-sdk", cS = "3.5.0", AS = "Ranty sdk", uS = "dist/index.js", pS = {
919
+ const dS = "@ranty/ranty-sdk", cS = "3.6.0-beta.0", AS = "Ranty sdk", uS = "dist/index.js", pS = {
920
920
  ".": "./dist/index.js"
921
921
  }, hS = "types/index.d.ts", gS = [
922
922
  "dist",
@@ -5808,7 +5808,6 @@ const h2 = (t) => ce(void 0, null, function* () {
5808
5808
  }, Hm = (t) => ce(void 0, null, function* () {
5809
5809
  return (yield Ft.instanceWithRetries.get(`/sdk/payments/${t}`, {})).data.response;
5810
5810
  }), cT = (t) => ce(void 0, null, function* () {
5811
- console.log("directPaymentPunku", t);
5812
5811
  try {
5813
5812
  const { data: e } = yield Ft.instance.post("/sdk/payment", t, {});
5814
5813
  return e;
@@ -5818,7 +5817,6 @@ const h2 = (t) => ce(void 0, null, function* () {
5818
5817
  }
5819
5818
  }), AT = (t, e, n, r = "manual_input") => ce(void 0, null, function* () {
5820
5819
  var V, z;
5821
- console.log("createDirectPaymentPayloadPunku", t, e, n, r);
5822
5820
  const s = Ft.getConfig(), { id: i, additional_info: o, external_payment_id: a, transactions: d } = t, { creditNumber: l, codSeg: c, expired: u, dni: h, passport: p, email: m, name: y } = e, _ = t.external_payment_datetime ? t.external_payment_datetime : "", b = yield iC(
5823
5821
  s.VITE_ENCRYPT_DIRECT_PUBLIC_KEY,
5824
5822
  `${l.replaceAll(" ", "")}:${c}:${u}`
@@ -9485,10 +9483,10 @@ function F7(t, e, n, r) {
9485
9483
  }
9486
9484
  var pp = o7(F7);
9487
9485
  jU(Tl(), "DD_LOGS", pp);
9488
- const D7 = "@ranty/ranty-sdk", R7 = "3.5.0", O7 = 3, N7 = !0, L7 = {
9486
+ const D7 = "@ranty/ranty-sdk", R7 = "3.6.0-beta.0", O7 = 3, N7 = !0, L7 = {
9489
9487
  "": {
9490
9488
  name: "@ranty/ranty-sdk",
9491
- version: "3.5.0",
9489
+ version: "3.6.0-beta.0",
9492
9490
  license: "ISC",
9493
9491
  dependencies: {
9494
9492
  "@datadog/browser-logs": "^5.35.1",
@@ -32168,14 +32166,14 @@ const Y2 = (t, e = () => {
32168
32166
  };
32169
32167
  return {
32170
32168
  validate: (d) => (e(!0), new Promise((l) => {
32171
- const c = String(d).replace(/\D/g, "").substring(0, 6), u = Uv(c), h = (u == null ? void 0 : u.type) !== "DEFAULT" ? u.type : null;
32169
+ const c = String(d).replace(/\D/g, "").substring(0, 9), u = Uv(c), h = (u == null ? void 0 : u.type) !== "DEFAULT" ? u.type : null;
32172
32170
  r(h), clearTimeout(j_), j_ = setTimeout(() => ce(void 0, null, function* () {
32173
32171
  var p, m;
32174
32172
  if (c === F_) {
32175
32173
  n(!0), e(!1), l(!0);
32176
32174
  return;
32177
32175
  }
32178
- if (c.length !== 6) {
32176
+ if (c.length !== 9) {
32179
32177
  a(l);
32180
32178
  return;
32181
32179
  }
@@ -41797,7 +41795,7 @@ let Bi = class extends qe {
41797
41795
  const e = t.target, r = e.value.replace(/\D/g, ""), s = rb(r);
41798
41796
  e.value = s;
41799
41797
  const i = s.replace(/\s/g, "");
41800
- i.length === 16 ? this.shouldValidateBin ? yield kT(i.slice(0, 6)).then((a) => {
41798
+ i.length === 16 ? this.shouldValidateBin ? yield kT(i.slice(0, 9)).then((a) => {
41801
41799
  this.validCredit = a.response.data.bines, this.validCredit && this.validCredit.brand === "NARANJA" ? (this.isError = !1, this.isBrand = !0, this.isTouched = !0) : (this.isTouched = !0, this.isBrand = !1, this.isError = !0);
41802
41800
  }).catch((a) => {
41803
41801
  ie.error("HANDLE-INPUT-ERROR", {}, a), this.serviceError();
@@ -44903,7 +44901,7 @@ let $t = class extends qe {
44903
44901
  handleInput(t) {
44904
44902
  const e = t.target;
44905
44903
  if (this.value = e.type === "checkbox" ? e.checked ? "true" : "false" : e.value, this.name === "doc_number" && (this.value = Rp(this.value, this.docType)), this.name === "creditNumber") {
44906
- const n = this.value.replace(/\s/g, "").slice(0, 6), r = Uv(n);
44904
+ const n = this.value.replace(/\s/g, "").slice(0, 9), r = Uv(n);
44907
44905
  this.dispatchEvent(
44908
44906
  new CustomEvent("input-event-credit-number", {
44909
44907
  bubbles: !0,
@@ -62884,7 +62882,7 @@ function(t) {
62884
62882
  */
62885
62883
  function(t) {
62886
62884
  function e() {
62887
- return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-81c10cee.js")).catch(function(n) {
62885
+ return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-00aa3e80.js")).catch(function(n) {
62888
62886
  return Promise.reject(new Error("Could not load canvg: " + n));
62889
62887
  }).then(function(n) {
62890
62888
  return n.default ? n.default : n;
@@ -65134,7 +65132,7 @@ let Ui = class extends vo {
65134
65132
  validate: (n) => {
65135
65133
  if (!n)
65136
65134
  return !1;
65137
- const r = n.replace(/\s/g, "").slice(0, 6), s = r6(r, zE);
65135
+ const r = n.replace(/\s/g, "").slice(0, 9), s = r6(r, zE);
65138
65136
  return s != null && s.brand && s.brand !== "null" && (this._stateC2P.cardBrand = s.brand, this._cardBrand = s.brand), (s == null ? void 0 : s.brand) !== "null";
65139
65137
  },
65140
65138
  errorMessage: "La tarjeta no es válida."
@@ -65186,7 +65184,7 @@ let Ui = class extends vo {
65186
65184
  expired: this.formData.dateExpired.formatted,
65187
65185
  codSeg: this.formData.cvc,
65188
65186
  cardBrand: this._cardBrand,
65189
- bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 6)
65187
+ bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 9)
65190
65188
  };
65191
65189
  this.dispatchEvent(
65192
65190
  new CustomEvent("newCardSelected", {
@@ -65205,7 +65203,7 @@ let Ui = class extends vo {
65205
65203
  expired: e,
65206
65204
  codSeg: this.formData.cvc,
65207
65205
  cardBrand: this._cardBrand,
65208
- bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 6),
65206
+ bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 9),
65209
65207
  useC2p: this._shouldAddCard
65210
65208
  };
65211
65209
  this.dispatchEvent(
@@ -67279,7 +67277,7 @@ let as = class t extends vo {
67279
67277
  validate: (r) => {
67280
67278
  if (!r)
67281
67279
  return !1;
67282
- const s = r.replace(/\s/g, "").slice(0, 6), i = r6(s, zE);
67280
+ const s = r.replace(/\s/g, "").slice(0, 9), i = r6(s, zE);
67283
67281
  return i != null && i.brand && i.brand !== "null" && (this._cardBrand = i.brand), (i == null ? void 0 : i.brand) !== "null";
67284
67282
  },
67285
67283
  errorMessage: "La tarjeta no es válida."
@@ -67377,7 +67375,7 @@ let as = class t extends vo {
67377
67375
  creditNumber: this.formData.creditNumber.trim().replace(/\s/g, ""),
67378
67376
  expired: this.formData.dateExpired.formatted,
67379
67377
  codSeg: this.formData.cvc,
67380
- bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 6),
67378
+ bin: this.formData.creditNumber.replace(/\s/g, "").slice(0, 9),
67381
67379
  cardBrand: this._cardBrand
67382
67380
  }) : e = {
67383
67381
  bin: this._digitalCardData.panBin,
@@ -67595,7 +67593,7 @@ let _r = class t extends qe {
67595
67593
  ], this._validateBinTask = new q6(this, {
67596
67594
  task: () => ce(this, null, function* () {
67597
67595
  var n, r, s, i, o;
67598
- const e = this.numericValue.slice(0, 6);
67596
+ const e = this.numericValue.slice(0, 9);
67599
67597
  if (this._stateC2p.bines = e, e.length === 6) {
67600
67598
  try {
67601
67599
  this._plansData = yield Ul((n = this._stateC2p) == null ? void 0 : n.statePaymentRequest, e), this._plansData && (this._codeError = this._plansData.plans.code);
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-5cc0a816.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-61da1334.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 n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-5cc0a816.js";
1
+ import { A as n, am as o, ai as t, al as e, ab as r, ap as C, an as p, ao as A, ac as m, a9 as i, ah as l, ag as u, aa as d, l as c, ak as P, aj as F, ad as S, ae as y, af as I, R as M, B as O, a8 as k, X as H, U as L, a1 as f, T as g, a2 as D, a3 as v, a4 as b, h as x, f as E, a7 as h, a6 as B, V as Q, W as j, Y as w, Z as N, $ as q, C as z, k as G, x as J, a as K, d as R, a5 as T, D as U, a0 as V, E as W, e as X, m as Y, b as Z, F as $, I as _, M as aa, L as sa, N as na, P as oa, n as ta, z as ea, G as ra, y as Ca, O as pa, H as Aa, J as ma, K as ia, Q as la, S as ua, o as da, j as ca, p as Pa, q as Fa, r as Sa, i as ya, v as Ia, s as Ma, t as Oa, u as ka, w as Ha } from "./index-61da1334.js";
2
2
  export {
3
3
  n as A2AAccountComponent,
4
4
  o as A2AAccountDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "3.5.0",
3
+ "version": "3.6.0-beta.0",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {