@paynext/sdk 0.0.89 → 0.0.90

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.
package/dist/index.es.js CHANGED
@@ -4884,8 +4884,7 @@ class vl {
4884
4884
  });
4885
4885
  });
4886
4886
  }
4887
- // Waits until an element is visibly rendered (has layout) or times out
4888
- waitForElementVisible(t, e = 2e3) {
4887
+ waitForElementVisible(t, e = 150) {
4889
4888
  return !t || !(t instanceof HTMLElement) ? Promise.resolve() : new Promise((r) => {
4890
4889
  const a = performance.now(), i = () => {
4891
4890
  const s = t.getBoundingClientRect();
@@ -4932,7 +4931,7 @@ class vl {
4932
4931
  yield Promise.all(c), this.handleReady();
4933
4932
  });
4934
4933
  }
4935
- // Initialize button instances only for active payment methods
4934
+ // initialize button instances only for active payment methods
4936
4935
  initializeButtonInstances(t) {
4937
4936
  const e = t.map(({ type: r }) => r);
4938
4937
  e.includes(q.APPLE_PAY) && !this.applePay && (this.applePay = new Zc(this.config)), e.includes(q.GOOGLE_PAY) && !this.googlePay && (this.googlePay = new nl(this.config)), e.includes(q.PAYPAL) && !this.paypal && (this.paypal = new al(this.config), this.paypal.addEventListener("onPaymentAttempt", (r) => this.events.onPaymentAttempt.emit(r))), e.includes(q.VENMO) && !this.braintree && (this.braintree = new ml(this.config), this.braintree.addEventListener("onPaymentAttempt", (r) => this.events.onPaymentAttempt.emit(r))), e.includes(q.CARD) && !this.card && (this.card = new cl(this.config), this.card.addEventListener(() => {