@ranty/ranty-sdk 2.0.14 → 2.0.15-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.
@@ -51818,13 +51818,23 @@ let Wr = class n extends et {
51818
51818
  firstUpdated(e) {
51819
51819
  return Ie(this, null, function* () {
51820
51820
  var t, r;
51821
- Ar(n.prototype, this, "firstUpdated").call(this, e), this.sonicBranding && (yield this._playSonic()), this.isStatusSuccess && (Ee.info("firstUpdatedStatus", {
51822
- context: "DEFAULT",
51823
- tag: "STATUS_SUCCESS_PROCESSED",
51824
- contextObject: {
51825
- payment_request_id: (t = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : t.id
51821
+ if (Ar(n.prototype, this, "firstUpdated").call(this, e), this.sonicBranding && (yield this._playSonic()), this.callbackUrl = ((t = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : t.payment_type) === od.ECOMMERCE ? this._statePaymentManualInput.statePaymentRequest.additional_info.callback_url : "", this.isStatusSuccess) {
51822
+ Ee.info("firstUpdatedStatus", {
51823
+ context: "DEFAULT",
51824
+ tag: "STATUS_SUCCESS_PROCESSED",
51825
+ contextObject: {
51826
+ payment_request_id: (r = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : r.id
51827
+ }
51828
+ }), this.isActivePdfByPlatform();
51829
+ const s = this._stateStatus.hasDownloadPDF ? 1e4 : 5e3;
51830
+ if (this.callbackUrl !== "") {
51831
+ setTimeout(() => {
51832
+ window.location.href = this.callbackUrl;
51833
+ }, s);
51834
+ return;
51826
51835
  }
51827
- }), this.isActivePdfByPlatform()), this.title = this._stateStatus.title, this.message = this._stateStatus.subtitle, this.image = this._stateStatus.icon, this.returnButton = this._stateStatus.returnButton || !1, this.callbackUrl = ((r = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : r.payment_type) === od.ECOMMERCE ? this._statePaymentManualInput.statePaymentRequest.additional_info.callback_url : "";
51836
+ }
51837
+ this.title = this._stateStatus.title, this.message = this._stateStatus.subtitle, this.image = this._stateStatus.icon, this.returnButton = this._stateStatus.returnButton || !1;
51828
51838
  });
51829
51839
  }
51830
51840
  _playSonic() {
@@ -70852,7 +70862,7 @@ function(n) {
70852
70862
  */
70853
70863
  function(n) {
70854
70864
  function e() {
70855
- return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-48872542.js")).catch(function(t) {
70865
+ return (ut.canvg ? Promise.resolve(ut.canvg) : import("./index.es-cc81f5cb.js")).catch(function(t) {
70856
70866
  return Promise.reject(new Error("Could not load canvg: " + t));
70857
70867
  }).then(function(t) {
70858
70868
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as za, g as _o } from "./index-9ad73fea.js";
1
+ import { c as Ke, _ as za, g as _o } from "./index-c5afa994.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-9ad73fea.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-c5afa994.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.0.14",
3
+ "version": "2.0.15-beta.0",
4
4
  "description": "Ranty sdk",
5
5
  "main": "dist/index.js",
6
6
  "exports": {