@ranty/ranty-sdk 2.1.1 → 2.1.4

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.
@@ -8048,10 +8048,10 @@ function EU(n, e, t, r) {
8048
8048
  }
8049
8049
  var Vu = eU(EU);
8050
8050
  S7(pl(), "DD_LOGS", Vu);
8051
- const IU = "@nx-ranty/ranty-sdk", jU = "2.0.15-beta.0", TU = 3, FU = !0, UU = {
8051
+ const IU = "@nx-ranty/ranty-sdk", jU = "2.1.4", TU = 3, FU = !0, UU = {
8052
8052
  "": {
8053
8053
  name: "@nx-ranty/ranty-sdk",
8054
- version: "2.0.15-beta.0",
8054
+ version: "2.1.4",
8055
8055
  license: "ISC",
8056
8056
  dependencies: {
8057
8057
  "@datadog/browser-logs": "^5.7.0",
@@ -44541,7 +44541,7 @@ let Pn = class n extends tt {
44541
44541
  };
44542
44542
  (yield DT(a).catch((m) => {
44543
44543
  ke.error("trigger checkout error", { tag: "TRIGGER_CHECKOUT_TASK_ERROR" }, m), this._isLoading = !1, this.contextData.hasPayError = !0;
44544
- })).ccvRequired && this._lastStepCvv.length < 3 ? (ke.info("card requires cvv", { tag: "CARD_CVV_REQUIRED" }), this.contextData.cvvRequired = !0, this._isLoading = !1) : (this.contextData.componentsVisibility.showOrderCompleted = !0, this.contextData.checkoutReady = !0, this._isLoading = !0);
44544
+ })).ccvRequired && this._lastStepCvv.length < 3 ? (ke.info("card requires cvv", { tag: "CARD_CVV_REQUIRED" }), this.contextData.cvvRequired = !0, this._isLoading = !1) : (this.contextData.componentsVisibility.showOrderCompleted = !0, this.contextData.checkoutReady = !0);
44545
44545
  })
44546
44546
  });
44547
44547
  }
@@ -44563,7 +44563,7 @@ let Pn = class n extends tt {
44563
44563
  _setDpaInfo() {
44564
44564
  if (this.contextData.paymentRequest.dpaInfo) {
44565
44565
  const { dpaInfo: e } = this.contextData.paymentRequest;
44566
- this.dpaId = e.dpaId, this.dpaName = e.dpaName;
44566
+ this.dpaId = e.dpaI ? e.dpaI : this.dpaId, this.dpaName = e.dpaName ? e.dpaName : this.dpaName;
44567
44567
  }
44568
44568
  }
44569
44569
  _updateCardHolderData() {
@@ -49638,19 +49638,19 @@ let yt = class n extends tt {
49638
49638
  this._showPersonalDataForm = !0, this._showOrderReview = !1;
49639
49639
  break;
49640
49640
  case (this._newUser || this._contextData.hasError):
49641
- this._showPersonalDataForm = !1, this._showOrderReview = !1, location.reload();
49641
+ this._showPersonalDataForm = !1, this._showOrderReview = !1, this._showInitialPanels = !0;
49642
49642
  break;
49643
49643
  case this._userRecognized:
49644
49644
  this._showPersonalDataForm = !1, this._showOrderReview = !1, this._showC2pCardList = !0;
49645
49645
  break;
49646
49646
  case this._contextData.hasPayError:
49647
- this._showC2pCardList = !1, this._showPersonalDataForm = !1, this._showOrderReview = !1, location.reload();
49647
+ this._showC2pCardList = !1, this._showPersonalDataForm = !1, this._showOrderReview = !1;
49648
49648
  break;
49649
49649
  case this._contextData.hasDirectError:
49650
49650
  this._showC2pCardList = !1, this._showPersonalDataForm = !0;
49651
49651
  break;
49652
49652
  default:
49653
- this._showInitialPanels = !0, this._showOrderReview = !1, location.reload();
49653
+ this._showInitialPanels = !0, this._showOrderReview = !1;
49654
49654
  break;
49655
49655
  }
49656
49656
  this.dispatchEvent(
@@ -49688,6 +49688,7 @@ let yt = class n extends tt {
49688
49688
  }
49689
49689
  render() {
49690
49690
  var s, i, o, a;
49691
+ console.log(this._contextData.cardBrand, "this._contextData.cardBrand");
49691
49692
  const e = this._isSuccess ? "fade-in-subtitle" : "", t = this._isSuccess ? "fade-in-title" : "", r = this._showPersonalDataForm ? "card__payment_margin" : "";
49692
49693
  return W`
49693
49694
  <div class="card-form">
@@ -49771,11 +49772,11 @@ let yt = class n extends tt {
49771
49772
  ></click2pay-order-review>
49772
49773
  ` : ""}
49773
49774
  ${this._contextData.componentsVisibility.showOrderCompleted && !this._showQr ? W`
49774
- ${this._contextData.cardBrand === "MASTERCARD" && this._contextData.websocketResponse && this._contextData.messageSuccess ? W`
49775
+ ${this._contextData.cardBrand === "MASTERCARD" && this._contextData.paymentRequestStatus === "SUCCESS_PROCESSED" && this._contextData.messageSuccess ? W`
49775
49776
  <click2pay-modal
49776
49777
  .customClassSub="${e}"
49777
49778
  .customClass="${t}"
49778
- .showLoading="${!1}"
49779
+ .showLoading="${this.isLoading}"></click2pay-modal
49779
49780
  title="¡Ya se confirmó el pago!"
49780
49781
  message="Encontrá el detalle de la compra en la tienda."
49781
49782
  .sonicBranding="${!1}"
@@ -49783,11 +49784,11 @@ let yt = class n extends tt {
49783
49784
  .showButton="${!0}"
49784
49785
  ></click2pay-modal>
49785
49786
  ` : W`
49786
- ${this._contextData.websocketResponse && this._contextData.messageSuccess ? W`
49787
+ ${this._contextData.paymentRequestStatus === "SUCCESS_PROCESSED" && this._contextData.messageSuccess ? W`
49787
49788
  <click2pay-modal
49788
49789
  .customClassSub="${e}"
49789
49790
  .customClass="${t}"
49790
- .showLoading="${!1}"
49791
+ .showLoading="${this.isLoading}"
49791
49792
  title="¡Ya se confirmó el pago!"
49792
49793
  message="Encontrá el detalle de la compra en la tienda."
49793
49794
  @retry="${this._callbackUrl}"
@@ -49800,7 +49801,7 @@ let yt = class n extends tt {
49800
49801
  ${this._contextData.paymentRequestStatus === "SUCCESS_PROCESSED" ? W`
49801
49802
  <click2pay-modal
49802
49803
  customClass="mt"
49803
- .showLoading="${!1}"
49804
+ .showLoading="${this.isLoading}"
49804
49805
  title="¡Esta orden ya está paga!"
49805
49806
  message="Si fuiste vos quien pagó, podés encontrar el detalle de la compra en la tienda. Si no, pedile un nuevo link al negocio."
49806
49807
  .showButton="${!1}"
@@ -72088,7 +72089,7 @@ function(n) {
72088
72089
  */
72089
72090
  function(n) {
72090
72091
  function e() {
72091
- return (ht.canvg ? Promise.resolve(ht.canvg) : import("./index.es-aaf0a900.js")).catch(function(t) {
72092
+ return (ht.canvg ? Promise.resolve(ht.canvg) : import("./index.es-464ccb29.js")).catch(function(t) {
72092
72093
  return Promise.reject(new Error("Could not load canvg: " + t));
72093
72094
  }).then(function(t) {
72094
72095
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-86018b3e.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-0a2bc42d.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-86018b3e.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-0a2bc42d.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.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {