@salla.sa/twilight-components 2.12.5 → 2.12.6

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.
@@ -22268,10 +22268,11 @@ const SallaProgressBar = class {
22268
22268
  if (this.donation) {
22269
22269
  let donationJson = typeof this.donation == 'string' ? JSON.parse(this.donation) : this.donation;
22270
22270
  if (donationJson.can_donate && donationJson.target_amount) {
22271
+ donationJson.target_end_date = donationJson.target_end_date == '0000-00-00' ? null : donationJson.target_end_date;
22271
22272
  this.value = donationJson.collected_amount;
22272
22273
  this.target = donationJson.target_amount;
22273
22274
  this.header = salla.lang.get('pages.products.target');
22274
- this.message = donationJson.target_end_date == '0000-00-00' ? '' : salla.lang.get('pages.products.donation_target_date') + ' ' + donationJson.target_end_date;
22275
+ this.message = donationJson.target_end_date ? salla.lang.get('pages.products.donation_target_date') + ' ' + donationJson.target_end_date : '';
22275
22276
  }
22276
22277
  else {
22277
22278
  //in case the product is not enabled target campaign
@@ -26006,7 +26007,7 @@ const SallaSlider = class {
26006
26007
  salla.logger.warn('failed load swiper bundle', error);
26007
26008
  reject(true);
26008
26009
  };
26009
- this.swiperScript.src = 'https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js';
26010
+ this.swiperScript.src = 'https://cdn.salla.network/js/swiper@8.js';
26010
26011
  this.swiperScript.setAttribute('id', 'swiper-script');
26011
26012
  document.body.appendChild(this.swiperScript);
26012
26013
  }