@ranty/ranty-sdk 3.11.0-beta.0 → 3.11.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.
@@ -916,7 +916,7 @@ function oe(t) {
916
916
  */
917
917
  var ny;
918
918
  ((ny = window.HTMLSlotElement) === null || ny === void 0 ? void 0 : ny.prototype.assignedElements) != null;
919
- const FS = "@ranty/ranty-sdk", PS = "3.11.0-beta.0", RS = "Ranty sdk", DS = "dist/index.js", OS = {
919
+ const FS = "@ranty/ranty-sdk", PS = "3.11.0-beta.2", RS = "Ranty sdk", DS = "dist/index.js", OS = {
920
920
  ".": "./dist/index.js"
921
921
  }, NS = "types/index.d.ts", LS = [
922
922
  "dist",
@@ -1037,7 +1037,7 @@ let Vl = class t extends Ve {
1037
1037
  ${this.enableVersion ? j`<p class="version">Versión: ${this.enableVersion}</p>` : ""}
1038
1038
  <div class="footer-container">
1039
1039
  <a class="footer-link" href="https://navenegocios.ar/home" target="_blank">
1040
- <span class="footer-text">Procesado por</span>
1040
+ <span class="footer-text">Pagá seguro con</span>
1041
1041
  <img alt="nave" src=${this.image} class="footer-icon" />
1042
1042
  <img alt="nave" src=${this.icon} />
1043
1043
  </a>
@@ -10062,10 +10062,10 @@ function wR(t, e, n, s) {
10062
10062
  }
10063
10063
  var _p = GP(wR);
10064
10064
  bF(Nd(), "DD_LOGS", _p);
10065
- const _R = "@nx-ranty/ranty-sdk", xR = "3.11.0-beta.0", CR = 3, BR = !0, ER = {
10065
+ const _R = "@nx-ranty/ranty-sdk", xR = "3.11.0-beta.2", CR = 3, BR = !0, ER = {
10066
10066
  "": {
10067
10067
  name: "@nx-ranty/ranty-sdk",
10068
- version: "3.11.0-beta.0",
10068
+ version: "3.11.0-beta.2",
10069
10069
  license: "ISC",
10070
10070
  dependencies: {
10071
10071
  "@datadog/browser-logs": "^5.35.1",
@@ -43401,7 +43401,7 @@ let wo = class t extends Ve {
43401
43401
  this.payfacContext.isEmbedded,
43402
43402
  this.paymentRequestId || this.paymentLinkId
43403
43403
  );
43404
- if (this.payfacContext.isEmbedded || (yield cQ(this.mode.toUpperCase(), this.payfacContext.isEmbedded, this.paymentRequestId)), this.payfacContext.token = n == null ? void 0 : n.access_token, yield this.getPaymentRequest(), !this.payfacContext.paymentRequest) {
43404
+ if (this.payfacContext.isEmbedded || (yield cQ(this.mode.toUpperCase(), this.payfacContext.isEmbedded, this.paymentRequestId)), this.payfacContext.token = n == null ? void 0 : n.access_token, yield this.getPaymentRequest(), !this.payfacContext.paymentRequest && this.mode !== "a2a_feedback") {
43405
43405
  const s = LT("payment-request-not-found");
43406
43406
  throw this.messageError = {
43407
43407
  title: s.title,
@@ -48369,16 +48369,23 @@ let Cs = class t extends Ve {
48369
48369
  }
48370
48370
  firstUpdated(e) {
48371
48371
  return de(this, null, function* () {
48372
- var n, s;
48373
- nn(t.prototype, this, "firstUpdated").call(this, e), this.sonicBranding && (yield this._playSonic()), this.callbackUrl = ((n = this.payfacContext.paymentRequest) == null ? void 0 : n.payment_type) === Ns.ECOMMERCE ? this.payfacContext.paymentRequest.additional_info.callback_url : "", this.isStatusSuccess && ($.info("firstUpdatedStatus", {
48374
- context: ae.DEFAULT,
48375
- origin_sdk: sp,
48376
- tag: "STATUS_SUCCESS_PROCESSED",
48377
- is_embedded: this.payfacContext.isEmbedded,
48378
- contextObject: {
48379
- payment_request_id: (s = this.payfacContext.paymentRequest) == null ? void 0 : s.id
48380
- }
48381
- }), this.isActivePdfByPlatform()), this.title = this.status.title, this.message = this.status.subtitle, this.image = this.status.icon, this.returnButton = this.status.returnButton || !1;
48372
+ var n, s, r;
48373
+ if (nn(t.prototype, this, "firstUpdated").call(this, e), this.sonicBranding && (yield this._playSonic()), this.callbackUrl = ((n = this.payfacContext.paymentRequest) == null ? void 0 : n.payment_type) === Ns.ECOMMERCE ? this.payfacContext.paymentRequest.additional_info.callback_url : "", this.isStatusSuccess) {
48374
+ $.info("firstUpdatedStatus", {
48375
+ context: ae.DEFAULT,
48376
+ origin_sdk: sp,
48377
+ tag: "STATUS_SUCCESS_PROCESSED",
48378
+ is_embedded: this.payfacContext.isEmbedded,
48379
+ contextObject: {
48380
+ payment_request_id: (s = this.payfacContext.paymentRequest) == null ? void 0 : s.id
48381
+ }
48382
+ }), this.isActivePdfByPlatform();
48383
+ const i = this.status.hasDownloadPDF ? 1e4 : 5e3;
48384
+ this.callbackUrl !== "" && ((r = this.settings.customerProperties) != null && r.enable_auto_redirect) && setTimeout(() => {
48385
+ window.location.href = this.callbackUrl;
48386
+ }, i);
48387
+ }
48388
+ this.title = this.status.title, this.message = this.status.subtitle, this.image = this.status.icon, this.returnButton = this.status.returnButton || !1;
48382
48389
  });
48383
48390
  }
48384
48391
  _playSonic() {
@@ -50704,7 +50711,7 @@ let Eo = class t extends Ve {
50704
50711
  try {
50705
50712
  this.payfacContext.context = ae.DEFAULT;
50706
50713
  const s = this.state.paymentResponse ? (yield kr((n = (e = this.state) == null ? void 0 : e.paymentRequest) == null ? void 0 : n.id, "payment_request", !0)).response : this.payfacContext.paymentRequest;
50707
- this.state.paymentRequest = s != null ? s : null, yield this.validateCircuitBreaker();
50714
+ this.state.paymentRequest = s != null ? s : null;
50708
50715
  const r = yield mw(
50709
50716
  this.payfacContext.paymentRequest,
50710
50717
  this.payfacContext.paymentSync
@@ -64043,7 +64050,7 @@ function(t) {
64043
64050
  */
64044
64051
  function(t) {
64045
64052
  function e() {
64046
- return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-fd0fa1d4.js")).catch(function(n) {
64053
+ return (yt.canvg ? Promise.resolve(yt.canvg) : import("./index.es-20a9455c.js")).catch(function(n) {
64047
64054
  return Promise.reject(new Error("Could not load canvg: " + n));
64048
64055
  }).then(function(n) {
64049
64056
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-03651fa2.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-edf2564a.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 o, ao as e, ak as t, an as n, ad as r, ar as C, ap as A, aq as p, ae as i, ab as m, aj as l, ai as u, ac as d, l as c, am as F, al as S, af as P, ag as f, ah as I, U as y, B as D, aa as O, Z as k, W as H, a3 as L, V as g, a4 as M, a5 as v, a6 as b, h as x, f as E, a9 as h, a8 as Q, X as B, Y as j, $ as q, a0 as w, a1 as N, C as z, k as G, x as J, a as K, d as R, a7 as T, y as U, M as V, z as W, T as X, L as Y, G as Z, J as $, K as _, D as aa, a2 as sa, E as oa, e as ea, m as ta, b as na, F as ra, H as Ca, I as Aa, R as pa, N as ia, P as ma, n as la, O as ua, Q as da, S as ca, o as Fa, j as Sa, p as Pa, q as fa, r as Ia, i as ya, v as Da, s as Oa, t as ka, u as Ha, w as La } from "./index-03651fa2.js";
1
+ import { A as o, ao as e, ak as t, an as n, ad as r, ar as C, ap as A, aq as p, ae as i, ab as m, aj as l, ai as u, ac as d, l as c, am as F, al as S, af as P, ag as f, ah as I, U as y, B as D, aa as O, Z as k, W as H, a3 as L, V as g, a4 as M, a5 as v, a6 as b, h as x, f as E, a9 as h, a8 as Q, X as B, Y as j, $ as q, a0 as w, a1 as N, C as z, k as G, x as J, a as K, d as R, a7 as T, y as U, M as V, z as W, T as X, L as Y, G as Z, J as $, K as _, D as aa, a2 as sa, E as oa, e as ea, m as ta, b as na, F as ra, H as Ca, I as Aa, R as pa, N as ia, P as ma, n as la, O as ua, Q as da, S as ca, o as Fa, j as Sa, p as Pa, q as fa, r as Ia, i as ya, v as Da, s as Oa, t as ka, u as Ha, w as La } from "./index-edf2564a.js";
2
2
  export {
3
3
  o as A2AAccountComponent,
4
4
  e as A2AAccountDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranty/ranty-sdk",
3
- "version": "3.11.0-beta.0",
3
+ "version": "3.11.0-beta.2",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {