@salla.sa/twilight-components 2.13.43 → 2.13.44

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.
@@ -25599,7 +25599,7 @@ const SallaQuickBuy = class {
25599
25599
  // if (!this.currency) {
25600
25600
  // this.currency = salla.config.get('user.currency_code');
25601
25601
  // }
25602
- var _a, _b, _c, _d;
25602
+ var _a, _b, _c;
25603
25603
  if (!this.productId && salla.config.get('page.id')) {
25604
25604
  this.productId = salla.config.get('page.id');
25605
25605
  }
@@ -25642,8 +25642,8 @@ const SallaQuickBuy = class {
25642
25642
  this.currency = response.data.base_currency_price.currency;
25643
25643
  });
25644
25644
  }
25645
- this.isApplePayActive = ((_c = window.ApplePaySession) === null || _c === void 0 ? void 0 : _c.canMakePayments())
25646
- && ((_d = salla.config.get('store.settings.payments')) === null || _d === void 0 ? void 0 : _d.includes('apple_pay'))
25645
+ this.isApplePayActive = salla.helpers.hasApplePay()
25646
+ && ((_c = salla.config.get('store.settings.payments')) === null || _c === void 0 ? void 0 : _c.includes('apple_pay'))
25647
25647
  && salla.config.get('store.settings.is_salla_gateway', false);
25648
25648
  let applePaySdk = document.getElementById('apple-pay-sdk');
25649
25649
  if (applePaySdk || !this.isApplePayActive) {