@salla.sa/twilight-components 2.14.350 → 2.14.351

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.
Files changed (157) hide show
  1. package/dist/cjs/{Helper-B5NunIdR.js → Helper-DHRnzcFm.js} +14 -0
  2. package/dist/cjs/{filepond-qUaAgMcd.js → filepond-DmgB2usw.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-DUgrMVOZ.js → filepond-plugin-file-poster-Qz9yBcC6.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-C14LEY_l.js → filepond-plugin-file-validate-size-BpxufYGC.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-AbHwQAHY.js → filepond-plugin-file-validate-type-DPpMnDuU.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-5ydXOhOa.js → filepond-plugin-image-edit-DSig_Hnr.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-D0oIUOy-.js → filepond-plugin-image-exif-orientation-BdyyWkN_.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-Bf_VUYwr.js → filepond-plugin-image-preview-ClN5AjHL.js} +1 -1
  9. package/dist/cjs/{index-DKEcPhG9.js → index-ByiRU---.js} +1 -1
  10. package/dist/cjs/{index-BRdJtc1o.js → index-wroCOFea.js} +2 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/salla-accordion_62.cjs.entry.js +25 -36
  13. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  21. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  22. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  29. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-reviews-page.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-reviews.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  47. package/dist/cjs/twilight.cjs.js +1 -1
  48. package/dist/cjs/{vanilla-picker-CYHmsxIw.js → vanilla-picker-Dud2hHSp.js} +1 -1
  49. package/dist/collection/Helpers/Helper.js +14 -0
  50. package/dist/collection/components/salla-products-list/salla-products-list.js +9 -22
  51. package/dist/collection/components/salla-products-slider/salla-products-slider.js +9 -7
  52. package/dist/components/Helper.js +14 -0
  53. package/dist/components/index.js +2 -2
  54. package/dist/components/salla-products-list2.js +7 -20
  55. package/dist/components/salla-products-slider2.js +7 -5
  56. package/dist/esm/{Helper-Bt5Zv9cl.js → Helper-B5RLi6Xo.js} +14 -0
  57. package/dist/esm/{filepond-DDOVDszb.js → filepond-BcVCWOQQ.js} +1 -1
  58. package/dist/esm/{filepond-plugin-file-poster-DK5QZAmf.js → filepond-plugin-file-poster-B6OLqzjJ.js} +1 -1
  59. package/dist/esm/{filepond-plugin-file-validate-size-BoUr1T-f.js → filepond-plugin-file-validate-size-BCifsMdp.js} +1 -1
  60. package/dist/esm/{filepond-plugin-file-validate-type-USfq-Egq.js → filepond-plugin-file-validate-type-BzRNZ2wk.js} +1 -1
  61. package/dist/esm/{filepond-plugin-image-edit-BzsOppMe.js → filepond-plugin-image-edit-Dvu8RWud.js} +1 -1
  62. package/dist/esm/{filepond-plugin-image-exif-orientation-D2x3fkHF.js → filepond-plugin-image-exif-orientation-DtlS_Id7.js} +1 -1
  63. package/dist/esm/{filepond-plugin-image-preview-CAbtIGaT.js → filepond-plugin-image-preview-DRaZsLxF.js} +1 -1
  64. package/dist/esm/{index-unlRcuKr.js → index-BT5aIJiI.js} +1 -1
  65. package/dist/esm/{index-CkAdPgup.js → index-D8IUoDXw.js} +2 -2
  66. package/dist/esm/loader.js +2 -2
  67. package/dist/esm/salla-accordion_62.entry.js +25 -36
  68. package/dist/esm/salla-advertisement.entry.js +1 -1
  69. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  70. package/dist/esm/salla-apps-icons.entry.js +1 -1
  71. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  72. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  73. package/dist/esm/salla-contacts.entry.js +1 -1
  74. package/dist/esm/salla-custom-fields.entry.js +1 -1
  75. package/dist/esm/salla-filters-widget.entry.js +2 -2
  76. package/dist/esm/salla-filters.entry.js +2 -2
  77. package/dist/esm/salla-hook.entry.js +1 -1
  78. package/dist/esm/salla-installment.entry.js +1 -1
  79. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  80. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  81. package/dist/esm/salla-metadata.entry.js +1 -1
  82. package/dist/esm/salla-notification-item.entry.js +1 -1
  83. package/dist/esm/salla-notifications.entry.js +2 -2
  84. package/dist/esm/salla-offer.entry.js +1 -1
  85. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  86. package/dist/esm/salla-order-details-options.entry.js +1 -1
  87. package/dist/esm/salla-order-details.entry.js +1 -1
  88. package/dist/esm/salla-order-summary.entry.js +1 -1
  89. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  90. package/dist/esm/salla-orders.entry.js +2 -2
  91. package/dist/esm/salla-payments.entry.js +1 -1
  92. package/dist/esm/salla-price-range.entry.js +1 -1
  93. package/dist/esm/salla-review-card.entry.js +1 -1
  94. package/dist/esm/salla-reviews-page.entry.js +2 -2
  95. package/dist/esm/salla-reviews.entry.js +2 -2
  96. package/dist/esm/salla-social.entry.js +1 -1
  97. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  98. package/dist/esm/salla-tooltip.entry.js +1 -1
  99. package/dist/esm/salla-trust-badges.entry.js +1 -1
  100. package/dist/esm/salla-verify.entry.js +1 -1
  101. package/dist/esm/salla-wallet.entry.js +1 -1
  102. package/dist/esm/twilight.js +2 -2
  103. package/dist/esm/{vanilla-picker-7Rdeecyw.js → vanilla-picker-BPR2c_5J.js} +1 -1
  104. package/dist/twilight/{p-9b1184eb.entry.js → p-0fb07494.entry.js} +1 -1
  105. package/dist/twilight/{p-a4b3ddc4.entry.js → p-1d6ae0cd.entry.js} +1 -1
  106. package/dist/twilight/{p-50e1eb99.entry.js → p-234d4270.entry.js} +1 -1
  107. package/dist/twilight/{p-7c33b8f3.entry.js → p-2986242d.entry.js} +1 -1
  108. package/dist/twilight/p-319d0ee6.entry.js +4 -0
  109. package/dist/twilight/{p-1d2131a2.entry.js → p-403fc5a0.entry.js} +1 -1
  110. package/dist/twilight/{p-50098fb9.entry.js → p-44c225e2.entry.js} +1 -1
  111. package/dist/twilight/{p-0587a19b.entry.js → p-46095c81.entry.js} +1 -1
  112. package/dist/twilight/{p-c4f190b2.entry.js → p-4a269d95.entry.js} +1 -1
  113. package/dist/twilight/{p-affbe255.entry.js → p-53bbd4e8.entry.js} +1 -1
  114. package/dist/twilight/{p-b8872e5f.entry.js → p-5a27fc24.entry.js} +1 -1
  115. package/dist/twilight/{p-100f7787.entry.js → p-5e83dab1.entry.js} +1 -1
  116. package/dist/twilight/{p-b6cddbff.entry.js → p-6961de25.entry.js} +1 -1
  117. package/dist/twilight/{p-a61b0f9c.entry.js → p-88aa8e1c.entry.js} +1 -1
  118. package/dist/twilight/{p-c5ac1d40.entry.js → p-8af29c6e.entry.js} +1 -1
  119. package/dist/twilight/{p-c18da320.entry.js → p-8d0e34f8.entry.js} +1 -1
  120. package/dist/twilight/{p-843a8d82.entry.js → p-97d6ac02.entry.js} +1 -1
  121. package/dist/twilight/{p-57bf3aff.entry.js → p-993dff37.entry.js} +1 -1
  122. package/dist/twilight/{p-d72fc67d.entry.js → p-9a6195f6.entry.js} +1 -1
  123. package/dist/twilight/{p-0eb554c0.entry.js → p-9ab1a8dd.entry.js} +1 -1
  124. package/dist/twilight/{p-abcf3b2d.entry.js → p-9dc0d7cb.entry.js} +1 -1
  125. package/dist/twilight/{p-BCXFmuAu.js → p-B1PME38e.js} +1 -1
  126. package/dist/twilight/{p-DGD3SzSN.js → p-BjevMNf5.js} +1 -1
  127. package/dist/twilight/{p-De1xuTRp.js → p-CLCMzFCR.js} +1 -1
  128. package/dist/twilight/{p-CkAdPgup.js → p-D8IUoDXw.js} +1 -1
  129. package/dist/twilight/{p-BgVF6sgk.js → p-DMvcLQlj.js} +1 -1
  130. package/dist/twilight/{p-BXAV6QCo.js → p-DNuuIRPk.js} +1 -1
  131. package/dist/twilight/p-DgNC8L6e.js +4 -0
  132. package/dist/twilight/{p-Ciq2A6DK.js → p-DhPpUonS.js} +1 -1
  133. package/dist/twilight/{p-BY-pqCWB.js → p-R8UuPKQS.js} +1 -1
  134. package/dist/twilight/{p-DhexS4-2.js → p-VHxFG8vR.js} +1 -1
  135. package/dist/twilight/{p-b8e7613a.entry.js → p-a0fb9e8d.entry.js} +1 -1
  136. package/dist/twilight/{p-4bb743c7.entry.js → p-a50658ad.entry.js} +1 -1
  137. package/dist/twilight/{p-b9648b3c.entry.js → p-af71190f.entry.js} +1 -1
  138. package/dist/twilight/{p-aa32cabd.entry.js → p-b4bb7b69.entry.js} +1 -1
  139. package/dist/twilight/{p-815175b1.entry.js → p-c5dc7685.entry.js} +1 -1
  140. package/dist/twilight/{p-6c0dd774.entry.js → p-c8f83a29.entry.js} +1 -1
  141. package/dist/twilight/{p-e5dc45dc.entry.js → p-cef109da.entry.js} +1 -1
  142. package/dist/twilight/{p-0162ae20.entry.js → p-d8c30c7b.entry.js} +1 -1
  143. package/dist/twilight/{p-8565cac6.entry.js → p-de74f566.entry.js} +1 -1
  144. package/dist/twilight/{p-b5b851dc.entry.js → p-eb109f9d.entry.js} +1 -1
  145. package/dist/twilight/{p-478033b6.entry.js → p-ef9334ed.entry.js} +1 -1
  146. package/dist/twilight/{p-25e36e28.entry.js → p-faa4c75d.entry.js} +1 -1
  147. package/dist/twilight/{p-17618bb7.entry.js → p-fad69d7b.entry.js} +1 -1
  148. package/dist/twilight/{p-bd0fda0b.entry.js → p-ffcfb224.entry.js} +1 -1
  149. package/dist/twilight/{p-BHSXg2s-.js → p-mIk_7HE4.js} +1 -1
  150. package/dist/twilight/twilight.esm.js +1 -1
  151. package/dist/types/Helpers/Helper.d.ts +2 -0
  152. package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -1
  153. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +1 -1
  154. package/dist/types/components.d.ts +4 -4
  155. package/package.json +5 -5
  156. package/dist/twilight/p-82f05641.entry.js +0 -4
  157. package/dist/twilight/p-Dljb4XCt.js +0 -4
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { g as globalScripts, b as bootstrapLazy } from './index-CkAdPgup.js';
5
- export { s as setNonce } from './index-CkAdPgup.js';
4
+ import { g as globalScripts, b as bootstrapLazy } from './index-D8IUoDXw.js';
5
+ export { s as setNonce } from './index-D8IUoDXw.js';
6
6
 
7
7
  const defineCustomElements = async (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement, c as createEvent, F as Fragment, j as axios } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement, c as createEvent, F as Fragment, j as axios } from './index-D8IUoDXw.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { A as ArrowDownIcon, S as SpecialDiscountIcon } from './special-discount-yRO-ZESF.js';
7
7
  import { I as IconVerified } from './check-uTyAzPSy.js';
8
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
8
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
9
9
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
10
10
  import { C as CameraIcon, G as Genders } from './interfaces-CBT_Nxny.js';
11
11
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
@@ -1314,7 +1314,7 @@ const SallaColorPicker = class {
1314
1314
  }
1315
1315
  }
1316
1316
  initColorPicker() {
1317
- this.pickerReady = import('./vanilla-picker-7Rdeecyw.js').then(function (n) { return n.v; }).then((mod) => {
1317
+ this.pickerReady = import('./vanilla-picker-BPR2c_5J.js').then(function (n) { return n.v; }).then((mod) => {
1318
1318
  const Picker = mod.default;
1319
1319
  const picker = new Picker({
1320
1320
  parent: this.host,
@@ -2569,13 +2569,13 @@ const SallaFileUpload = class {
2569
2569
  return;
2570
2570
  try {
2571
2571
  const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
2572
- import('./filepond-DDOVDszb.js').then(function (n) { return n.f; }),
2573
- import('./filepond-plugin-file-validate-size-BoUr1T-f.js').then(function (n) { return n.f; }),
2574
- import('./filepond-plugin-image-exif-orientation-D2x3fkHF.js').then(function (n) { return n.f; }),
2575
- import('./filepond-plugin-image-preview-CAbtIGaT.js').then(function (n) { return n.f; }),
2576
- import('./filepond-plugin-image-edit-BzsOppMe.js').then(function (n) { return n.f; }),
2577
- import('./filepond-plugin-file-validate-type-USfq-Egq.js').then(function (n) { return n.f; }),
2578
- import('./filepond-plugin-file-poster-DK5QZAmf.js').then(function (n) { return n.f; })
2572
+ import('./filepond-BcVCWOQQ.js').then(function (n) { return n.f; }),
2573
+ import('./filepond-plugin-file-validate-size-BCifsMdp.js').then(function (n) { return n.f; }),
2574
+ import('./filepond-plugin-image-exif-orientation-DtlS_Id7.js').then(function (n) { return n.f; }),
2575
+ import('./filepond-plugin-image-preview-DRaZsLxF.js').then(function (n) { return n.f; }),
2576
+ import('./filepond-plugin-image-edit-Dvu8RWud.js').then(function (n) { return n.f; }),
2577
+ import('./filepond-plugin-file-validate-type-BzRNZ2wk.js').then(function (n) { return n.f; }),
2578
+ import('./filepond-plugin-file-poster-B6OLqzjJ.js').then(function (n) { return n.f; })
2579
2579
  ]);
2580
2580
  this.FilePond = FilePondModule;
2581
2581
  // Register plugins
@@ -7846,19 +7846,6 @@ const SallaProductsList = class {
7846
7846
  //as a request they don't want to let the user to open the product details
7847
7847
  //todo:: find a better way to handle this request
7848
7848
  this.getSource() === 'landing-page' && (product.url = '');
7849
- try {
7850
- // Add source query param to product URL for tracking in Product Viewed event
7851
- if (this.source && product.url && !product.url.includes('s-product-source=')) {
7852
- const [urlWithoutFragment, fragment] = product.url.split('#');
7853
- const separator = urlWithoutFragment.includes('?') ? '&' : '?';
7854
- const pageSlug = salla.config?.get('page.slug') || 'unknown';
7855
- const sourceValue = `${pageSlug}.${this.source}`;
7856
- product.url = `${urlWithoutFragment}${separator}s-product-source=${sourceValue}${fragment ? '#' + fragment : ''}`;
7857
- }
7858
- }
7859
- catch (error) {
7860
- Salla.log('Error with source');
7861
- }
7862
7849
  const customComponentTag = this.hasCustomComponent ? this.productCardComponent : 'salla-product-card';
7863
7850
  const productCard = document.createElement(customComponentTag);
7864
7851
  productCard.product = product;
@@ -7866,15 +7853,15 @@ const SallaProductsList = class {
7866
7853
  this.applyHorizontalCardStyles(productCard);
7867
7854
  // Attach click event listener to save the current products snapshot
7868
7855
  productCard.addEventListener('click', (event) => {
7869
- if (!this.hasInfiniteScroll) {
7870
- return;
7871
- }
7872
7856
  const target = event.target;
7873
7857
  // Check if the clicked element is an anchor or inside an anchor
7874
7858
  const anchor = target.closest('a');
7875
7859
  if (anchor) {
7876
- this.takeStateSnapshot();
7877
- sessionStorage.setItem(this.lastViewedProductKey, product.id);
7860
+ Helper.saveProductSource(this.getSource());
7861
+ if (this.hasInfiniteScroll) {
7862
+ this.takeStateSnapshot();
7863
+ sessionStorage.setItem(this.lastViewedProductKey, product.id);
7864
+ }
7878
7865
  }
7879
7866
  });
7880
7867
  return productCard;
@@ -8204,7 +8191,7 @@ const SallaProductsList = class {
8204
8191
  }
8205
8192
  getInitialData() {
8206
8193
  this.loading();
8207
- return salla.product.api.fetch({ source: this.getSource(), source_value: this.getSourceValue(), limit: this.limit }).then(async (response) => {
8194
+ return salla.product.api.fetch({ source: Helper.getApiSource(this.getSource()), source_value: this.getSourceValue(), limit: this.limit }).then(async (response) => {
8208
8195
  if (!response.data.length) {
8209
8196
  this.showPlaceholder = true;
8210
8197
  this.placeholderLoader && this.placeholderLoader.remove();
@@ -8230,7 +8217,7 @@ const SallaProductsList = class {
8230
8217
  .then(() => {
8231
8218
  this.hasCustomComponent = !!customElements.get(this.productCardComponent);
8232
8219
  this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
8233
- this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page'].includes(this.getSource()) && !this.limit;
8220
+ this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource()) && !this.limit;
8234
8221
  let searchParams = new URLSearchParams(window.location.search);
8235
8222
  try {
8236
8223
  this.sortBy = this.sortBy || searchParams.get('sort') || searchParams.get('by');
@@ -8449,7 +8436,7 @@ const SallaProductsSlider = class {
8449
8436
  this.isReady = false;
8450
8437
  return;
8451
8438
  }
8452
- return salla.product.api.fetch({ source: this.getSource(), source_value: this.getSourceValue(), limit: this.limit })
8439
+ return salla.product.api.fetch({ source: Helper.getApiSource(this.getSource()), source_value: this.getSourceValue(), limit: this.limit })
8453
8440
  .then(response => Helper.injectExtraFieldsToResponse(response))
8454
8441
  .then(response => {
8455
8442
  this.productsData = response.data;
@@ -8479,18 +8466,20 @@ const SallaProductsSlider = class {
8479
8466
  getItemHTML(product) {
8480
8467
  //as a request they don't want to let the user to open the product details
8481
8468
  //todo:: find a better way to handle this request
8482
- this.getSource() === 'landing-page' && (product.url = '');
8469
+ const isLandingPage = this.getSource() === 'landing-page';
8470
+ isLandingPage && (product.url = '');
8471
+ const handleClick = isLandingPage ? undefined : () => Helper.saveProductSource(this.getSource());
8483
8472
  if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
8484
- return h("div", { class: "s-products-slider-card" }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
8473
+ return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
8485
8474
  }
8486
8475
  if (this.hasCustomComponent) {
8487
8476
  const customElem = document.createElement(this.productCardComponent);
8488
8477
  customElem.setAttribute('product', JSON.stringify(product));
8489
8478
  customElem.setAttribute('source', this.getSource());
8490
8479
  customElem.setAttribute('source-value', this.getSourceValue());
8491
- return h("div", { class: "s-products-slider-card", innerHTML: customElem.outerHTML });
8480
+ return h("div", { class: "s-products-slider-card", onClick: handleClick, innerHTML: customElem.outerHTML });
8492
8481
  }
8493
- return h("div", { class: "s-products-slider-card" }, h("salla-product-card", { "show-quantity": this.getSource() == 'landing-page', "hide-add-btn": this.getSource() == 'landing-page', "shadow-on-hover": true, product: product }));
8482
+ return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("salla-product-card", { "show-quantity": isLandingPage, "hide-add-btn": isLandingPage, "shadow-on-hover": true, product: product }));
8494
8483
  }
8495
8484
  canRender() {
8496
8485
  return this.sourceValueIsValid && this.isReady;
@@ -21748,7 +21737,7 @@ const SallaTelInput = class {
21748
21737
  if (this.TelInput)
21749
21738
  return;
21750
21739
  try {
21751
- const telInputModule = await import('./index-unlRcuKr.js').then(function (n) { return n.i; });
21740
+ const telInputModule = await import('./index-BT5aIJiI.js').then(function (n) { return n.i; });
21752
21741
  this.TelInput = telInputModule.default;
21753
21742
  }
21754
21743
  catch (error) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
 
7
7
  const sallaAdvertisementCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaAppInstallAlertCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaAppsIconsCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h } from './index-D8IUoDXw.js';
5
5
  import { S as SpecialDiscountIcon, A as ArrowDownIcon } from './special-discount-yRO-ZESF.js';
6
6
  import { G as GiftIcon } from './gift-C0JNGIpa.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { w as whatsapp } from './whatsapp2-DWksgowB.js';
6
6
  import { M as MailIcon } from './mail-DmgxDvXL.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, c as createEvent, h } from './index-D8IUoDXw.js';
5
5
  import { C as CameraIcon, F as FormFieldTypes } from './interfaces-CBT_Nxny.js';
6
6
 
7
7
  const sallaCustomFieldsCss = ":host{display:block}";
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CkAdPgup.js';
5
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
6
6
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
6
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
6
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  const sallaFiltersCss = ":host{display:block}.s-rating-stars-small{line-height:12px}.s-filters-radio{background-image:none !important}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const SallaHook = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
  import { G as GiftIcon } from './gift-C0JNGIpa.js';
6
6
 
7
7
  const sallaLoyaltyProgramCss = "";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaMetadataCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
5
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaNotificationsCss = "";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaOrderDetailsMultipleBundleProductCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  var copyIcon = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaOrderDetailsCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h } from './index-D8IUoDXw.js';
5
5
  import { I as IconVerified } from './check-uTyAzPSy.js';
6
6
 
7
7
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaOrderTotalsCardCss = ":host{display:block}";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
5
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaOrdersCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaPaymentsCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-D8IUoDXw.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { I as IconVerified } from './check-uTyAzPSy.js';
6
6
 
7
7
  var IconStar2 = ` <svg width="18" height="17" view-box="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { e as require_root, f as requireIsObject, i as requireIsSymbol, d as getDefaultExportFromCjs, r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
4
+ import { e as require_root, f as requireIsObject, i as requireIsSymbol, d as getDefaultExportFromCjs, r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
6
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
6
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  var now_1;
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h } from './index-D8IUoDXw.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
- import { H as Helper } from './Helper-Bt5Zv9cl.js';
6
+ import { H as Helper } from './Helper-B5RLi6Xo.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  var IconQuoteOpen = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { f as facebook, t as twitter } from './twitter-Dz7o69vX.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaTrustBadgesCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-D8IUoDXw.js';
5
5
  import { M as MailIcon } from './mail-DmgxDvXL.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-CkAdPgup.js';
4
+ import { r as registerInstance, h, H as Host } from './index-D8IUoDXw.js';
5
5
 
6
6
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-CkAdPgup.js';
5
- export { s as setNonce } from './index-CkAdPgup.js';
4
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-D8IUoDXw.js';
5
+ export { s as setNonce } from './index-D8IUoDXw.js';
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v4.35.1 | MIT Licensed | https://stenciljs.com
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-CkAdPgup.js';
4
+ import { d as getDefaultExportFromCjs } from './index-D8IUoDXw.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,c as t,h as i,H as e,a as h}from"./p-CkAdPgup.js";import{H as a}from"./p-Dljb4XCt.js";import{F as l}from"./p-DL4h2bc3.js";import"./p-CgtvEd63.js";const r=class{constructor(i){s(this,i),this.changed=t(this,"changed"),this.initialItemCount=10,this.expandedItemCount=15,this.calculatedInitialHeight=0,this.calculatedExpandedHeight=0,this.isOpen=!0,this.isShowMore=!1,this.showMoreLabel="عرض المزيد",this.showLessLabel="عرض أقل",this.page=salla.config.get("page"),this.searchQuery="",this.filteredCount=0}connectedCallback(){this.withLoadMore="price"!=this.option.key&&Array.isArray(this.option.values)&&this.option.values.length>this.initialItemCount,salla.onReady((()=>{this.page=salla.config.get("page")})),salla.lang.onLoaded((()=>{this.showMoreLabel=salla.lang.getWithDefault("common.titles.more",this.showMoreLabel),this.showLessLabel=salla.lang.getWithDefault("common.elements.show_less",this.showLessLabel)}))}componentDidLoad(){const s=this.widgetValues.querySelectorAll(".s-filters-label");if(s.length>0){const t=Math.min(this.initialItemCount,s.length);this.calculatedInitialHeight=35*this.initialItemCount,this.calculatedExpandedHeight=s.length>this.initialItemCount?35*this.expandedItemCount:35*t}this.widgetValues.scrollHeight<this.calculatedInitialHeight&&(this.withLoadMore=!1),this.withLoadMore&&this.widgetValues&&(this.widgetValues.style.maxHeight=`${this.calculatedInitialHeight}px`),this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}async setWidgetHeight(s=250){this.widgetContent.removeAttribute("style"),setTimeout((()=>{this.widgetContent.style.height=this.widgetContent.scrollHeight+"px"}),s)}async reset(){this.option.type===l.RANGE&&this.priceRange.reset(),Array.from(this.host.querySelectorAll("input")).forEach((s=>s.checked=!1))}async showMore(){this.isShowMore=!this.isShowMore,this.widgetContent.style.height="auto",this.isShowMore||(this.widgetValues.scrollTop=0);const s=this.isShowMore?this.calculatedExpandedHeight:this.calculatedInitialHeight,t=this.searchQuery?this.filteredCount:Array.isArray(this.option.values)?this.option.values.length:0;this.widgetValues.style.maxHeight=`${s}px`,this.widgetValues.style.overflowY=this.isShowMore&&t>this.expandedItemCount?"auto":"hidden",setTimeout((()=>{this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}),400)}async toggleWidget(){this.isOpen=!this.isOpen,a.toggleElementClassIf(this.widgetContent,"s-filters-widget-opened","s-filters-widget-closed",(()=>this.isOpen))}renderFilterOption(s){if(![l.VALUES,l.MINIMUM,l.VARIANTS].includes(s.type))return"";const t=s.values.filter((s=>{if(!this.searchQuery)return!0;const t="number"==typeof s?String(s):s?.value||s?.key||"";return String(t).toLowerCase().includes(this.searchQuery.toLowerCase())}));return this.filteredCount=t.length,0===t.length?i("div",{class:"s-filters-widget-empty-state"},salla.lang.get("common.elements.no_options")||"لا توجد نتائج"):t.map((t=>{let e="number"==typeof t?t:t.key||t.value;return i("label",{class:"s-filters-label",htmlFor:`${s.key}-option-${e}`,key:`${s.key}-option-${e}`},i("input",{id:`${s.key}-option-${e}`,name:s.key,type:"radio",checked:this.isSelectedOption(s,e),class:"s-filters-radio",onChange:t=>this.changed.emit({event:t,option:s,value:e})}),this.getOptionLabel(s,t))}))}isSelectedOption(s,t){return s.type===l.MINIMUM?this.filtersData[s.key]==t:s.type===l.VARIANTS?this.filtersData[s.type]&&this.filtersData[s.type][Object.keys(this.filtersData[s.type])[0]]==t:s.type===l.RANGE?this.filtersData[s.key]&&this.filtersData[s.key].min==t.min&&this.filtersData[s.key].max==t.max:s.type===l.VALUES&&this.filtersData[s.key]&&Number(this.filtersData[s.key])==Number(t)}getOptionLabel(s,t){return"rating"==s.key?i("salla-rating-stars",{size:"small",value:t}):i("span",{class:"s-filters-option-name"},t.value||"null")}render(){return i(e,{key:"077daba99bcd27c940a4e4efaf1bfee325952b9f",class:"s-filters-widget-container"},i("h3",{key:"2ad33389bea9078357d8feabda3d1d813cc57887",class:"s-filters-widget-title",onClick:()=>this.toggleWidget()},i("span",{key:"8084e6e7032fde8a71c962db8025a17e22a0e017"},this.option.label),i("span",{key:"56fa918f5391b3cfe6e58ffff2a5178515c49679",class:"s-filters-widget-plusminus "+(this.isOpen?"s-filters-widget-plusminus-active":"")})),i("div",{key:"6935232082047b6147f24c332d48f0b8e6b028ba",class:"s-filters-widget-content",ref:s=>this.widgetContent=s},Array.isArray(this.option.values)&&this.option.values.length>5&&i("div",{key:"1dc3c9aa881bcc2998d6460b296e92fb9dbeccc9",class:"s-filters-widget-search-wrapper",style:{padding:"8px 0",marginBottom:"8px"}},i("input",{key:"296e9b6356ec5f646ecb7e255e79f9302b73b94a",type:"text",class:"s-filters-widget-search-input",placeholder:salla.lang.get("blocks.header.search_placeholder")||"بحث...",value:this.searchQuery,onInput:s=>this.searchQuery=s.target.value})),i("div",{key:"de9f573e83242f244a0f700e95913ce5701aba6c",class:"s-filters-widget-values",ref:s=>this.widgetValues=s},i("slot",{key:"af9a5e720b01c69a5da1f9fa0c5e24fd811f7606"}),this.option.type!==l.RANGE?this.renderFilterOption(this.option):i("salla-price-range",{onChanged:s=>{this.changed.emit(s.detail)},ref:s=>this.priceRange=s,filtersData:this.filtersData,option:this.option})),this.withLoadMore&&(!this.searchQuery||this.filteredCount>this.initialItemCount)&&i("a",{key:"0d849529f9fe7d9543f63cc3a035850ec5578b2c",class:"s-filters-widget-more",onClick:()=>this.showMore()},this.isShowMore?this.showLessLabel:this.showMoreLabel)))}get host(){return h(this)}};r.style=":host{display:block}";export{r as salla_filters_widget}
4
+ import{r as s,c as t,h as i,H as e,a as h}from"./p-D8IUoDXw.js";import{H as a}from"./p-DgNC8L6e.js";import{F as l}from"./p-DL4h2bc3.js";import"./p-CgtvEd63.js";const r=class{constructor(i){s(this,i),this.changed=t(this,"changed"),this.initialItemCount=10,this.expandedItemCount=15,this.calculatedInitialHeight=0,this.calculatedExpandedHeight=0,this.isOpen=!0,this.isShowMore=!1,this.showMoreLabel="عرض المزيد",this.showLessLabel="عرض أقل",this.page=salla.config.get("page"),this.searchQuery="",this.filteredCount=0}connectedCallback(){this.withLoadMore="price"!=this.option.key&&Array.isArray(this.option.values)&&this.option.values.length>this.initialItemCount,salla.onReady((()=>{this.page=salla.config.get("page")})),salla.lang.onLoaded((()=>{this.showMoreLabel=salla.lang.getWithDefault("common.titles.more",this.showMoreLabel),this.showLessLabel=salla.lang.getWithDefault("common.elements.show_less",this.showLessLabel)}))}componentDidLoad(){const s=this.widgetValues.querySelectorAll(".s-filters-label");if(s.length>0){const t=Math.min(this.initialItemCount,s.length);this.calculatedInitialHeight=35*this.initialItemCount,this.calculatedExpandedHeight=s.length>this.initialItemCount?35*this.expandedItemCount:35*t}this.widgetValues.scrollHeight<this.calculatedInitialHeight&&(this.withLoadMore=!1),this.withLoadMore&&this.widgetValues&&(this.widgetValues.style.maxHeight=`${this.calculatedInitialHeight}px`),this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}async setWidgetHeight(s=250){this.widgetContent.removeAttribute("style"),setTimeout((()=>{this.widgetContent.style.height=this.widgetContent.scrollHeight+"px"}),s)}async reset(){this.option.type===l.RANGE&&this.priceRange.reset(),Array.from(this.host.querySelectorAll("input")).forEach((s=>s.checked=!1))}async showMore(){this.isShowMore=!this.isShowMore,this.widgetContent.style.height="auto",this.isShowMore||(this.widgetValues.scrollTop=0);const s=this.isShowMore?this.calculatedExpandedHeight:this.calculatedInitialHeight,t=this.searchQuery?this.filteredCount:Array.isArray(this.option.values)?this.option.values.length:0;this.widgetValues.style.maxHeight=`${s}px`,this.widgetValues.style.overflowY=this.isShowMore&&t>this.expandedItemCount?"auto":"hidden",setTimeout((()=>{this.widgetContent.style.height=`${this.widgetContent.scrollHeight}px`}),400)}async toggleWidget(){this.isOpen=!this.isOpen,a.toggleElementClassIf(this.widgetContent,"s-filters-widget-opened","s-filters-widget-closed",(()=>this.isOpen))}renderFilterOption(s){if(![l.VALUES,l.MINIMUM,l.VARIANTS].includes(s.type))return"";const t=s.values.filter((s=>{if(!this.searchQuery)return!0;const t="number"==typeof s?String(s):s?.value||s?.key||"";return String(t).toLowerCase().includes(this.searchQuery.toLowerCase())}));return this.filteredCount=t.length,0===t.length?i("div",{class:"s-filters-widget-empty-state"},salla.lang.get("common.elements.no_options")||"لا توجد نتائج"):t.map((t=>{let e="number"==typeof t?t:t.key||t.value;return i("label",{class:"s-filters-label",htmlFor:`${s.key}-option-${e}`,key:`${s.key}-option-${e}`},i("input",{id:`${s.key}-option-${e}`,name:s.key,type:"radio",checked:this.isSelectedOption(s,e),class:"s-filters-radio",onChange:t=>this.changed.emit({event:t,option:s,value:e})}),this.getOptionLabel(s,t))}))}isSelectedOption(s,t){return s.type===l.MINIMUM?this.filtersData[s.key]==t:s.type===l.VARIANTS?this.filtersData[s.type]&&this.filtersData[s.type][Object.keys(this.filtersData[s.type])[0]]==t:s.type===l.RANGE?this.filtersData[s.key]&&this.filtersData[s.key].min==t.min&&this.filtersData[s.key].max==t.max:s.type===l.VALUES&&this.filtersData[s.key]&&Number(this.filtersData[s.key])==Number(t)}getOptionLabel(s,t){return"rating"==s.key?i("salla-rating-stars",{size:"small",value:t}):i("span",{class:"s-filters-option-name"},t.value||"null")}render(){return i(e,{key:"077daba99bcd27c940a4e4efaf1bfee325952b9f",class:"s-filters-widget-container"},i("h3",{key:"2ad33389bea9078357d8feabda3d1d813cc57887",class:"s-filters-widget-title",onClick:()=>this.toggleWidget()},i("span",{key:"8084e6e7032fde8a71c962db8025a17e22a0e017"},this.option.label),i("span",{key:"56fa918f5391b3cfe6e58ffff2a5178515c49679",class:"s-filters-widget-plusminus "+(this.isOpen?"s-filters-widget-plusminus-active":"")})),i("div",{key:"6935232082047b6147f24c332d48f0b8e6b028ba",class:"s-filters-widget-content",ref:s=>this.widgetContent=s},Array.isArray(this.option.values)&&this.option.values.length>5&&i("div",{key:"1dc3c9aa881bcc2998d6460b296e92fb9dbeccc9",class:"s-filters-widget-search-wrapper",style:{padding:"8px 0",marginBottom:"8px"}},i("input",{key:"296e9b6356ec5f646ecb7e255e79f9302b73b94a",type:"text",class:"s-filters-widget-search-input",placeholder:salla.lang.get("blocks.header.search_placeholder")||"بحث...",value:this.searchQuery,onInput:s=>this.searchQuery=s.target.value})),i("div",{key:"de9f573e83242f244a0f700e95913ce5701aba6c",class:"s-filters-widget-values",ref:s=>this.widgetValues=s},i("slot",{key:"af9a5e720b01c69a5da1f9fa0c5e24fd811f7606"}),this.option.type!==l.RANGE?this.renderFilterOption(this.option):i("salla-price-range",{onChanged:s=>{this.changed.emit(s.detail)},ref:s=>this.priceRange=s,filtersData:this.filtersData,option:this.option})),this.withLoadMore&&(!this.searchQuery||this.filteredCount>this.initialItemCount)&&i("a",{key:"0d849529f9fe7d9543f63cc3a035850ec5578b2c",class:"s-filters-widget-more",onClick:()=>this.showMore()},this.isShowMore?this.showLessLabel:this.showMoreLabel)))}get host(){return h(this)}};r.style=":host{display:block}";export{r as salla_filters_widget}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as s,h as e,F as t,H as a}from"./p-CkAdPgup.js";const r=class{constructor(e){s(this,e)}parseOrderDetailsData(s){this.parsedOrderDetailsData=s,this.parsedOrderDetailsData="string"==typeof this.orderDetails?JSON.parse(s):s}componentWillLoad(){this.parseOrderDetailsData(this.orderDetails),console.log("Parent componentWillLoad - parsedOrderDetailsData:",this.parsedOrderDetailsData)}renderOrderDetailsContent(){return this.parsedOrderDetailsData?[this.parsedOrderDetailsData.options&&this.parsedOrderDetailsData.options.length>0&&e("salla-order-details-options",{options:this.parsedOrderDetailsData.options}),this.parsedOrderDetailsData.sub_products&&this.parsedOrderDetailsData.sub_products.length>0&&e(t,null,e("h2",{class:"s-order-details-bundle-title"},salla.lang.get("pages.orders.sub_products")),e("div",{class:"s-order-details-bundle-content"},this.parsedOrderDetailsData.sub_products.map((s=>e("salla-order-details-multiple-bundle-product",{key:s?.id,productDetails:s})))))]:(console.warn("No parsedOrderDetailsData available"),null)}render(){return e(a,{key:"7ae1f566d2594d047e2a9a6a9bed860aa3896ccc",class:"s-order-details-wrapper"},this.renderOrderDetailsContent())}static get watchers(){return{orderDetails:["parseOrderDetailsData"]}}};r.style="";export{r as salla_order_details}
4
+ import{r as s,h as e,F as t,H as a}from"./p-D8IUoDXw.js";const r=class{constructor(e){s(this,e)}parseOrderDetailsData(s){this.parsedOrderDetailsData=s,this.parsedOrderDetailsData="string"==typeof this.orderDetails?JSON.parse(s):s}componentWillLoad(){this.parseOrderDetailsData(this.orderDetails),console.log("Parent componentWillLoad - parsedOrderDetailsData:",this.parsedOrderDetailsData)}renderOrderDetailsContent(){return this.parsedOrderDetailsData?[this.parsedOrderDetailsData.options&&this.parsedOrderDetailsData.options.length>0&&e("salla-order-details-options",{options:this.parsedOrderDetailsData.options}),this.parsedOrderDetailsData.sub_products&&this.parsedOrderDetailsData.sub_products.length>0&&e(t,null,e("h2",{class:"s-order-details-bundle-title"},salla.lang.get("pages.orders.sub_products")),e("div",{class:"s-order-details-bundle-content"},this.parsedOrderDetailsData.sub_products.map((s=>e("salla-order-details-multiple-bundle-product",{key:s?.id,productDetails:s})))))]:(console.warn("No parsedOrderDetailsData available"),null)}render(){return e(a,{key:"7ae1f566d2594d047e2a9a6a9bed860aa3896ccc",class:"s-order-details-wrapper"},this.renderOrderDetailsContent())}static get watchers(){return{orderDetails:["parseOrderDetailsData"]}}};r.style="";export{r as salla_order_details}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as a,h as t,H as s,a as e}from"./p-CkAdPgup.js";const i=class{constructor(t){if(a(this,t),this.entity="product",this.specs=[],this.download=salla.lang.get("pages.thank_you.download"),this.entityId)try{return void(this.entityId=Array.isArray(this.entityId)?this.entityId:JSON.parse(this.entityId))}catch(a){salla.log("Bad json passed via entityId prop")}}getValue(a){if("file"===a.type)return`<a href="${a.value}" class="text-primary" target="_blank"><span class="sicon-download"></span> ${this.download}</a>`;if("url"===a.type)return`<a href="${a.value}" class="text-blue-700 underline" target="_blank">${a.value}</a>`;if("date"===a.type){const t=new Date(a.value);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}return a.value}async componentWillLoad(){if(await salla.onReady(),!salla.config.get("store.features")?.includes("custom-fields"))return salla.logger.error("feature custom-fields is not activated");if(this.entityId||!salla.url.is_page("product.single")&&!salla.url.is_page("product.showNewUrls")||(this.entityId=salla.config.get("page.id")),!this.entityId)return salla.logger.error("can't render salla-metadata without enity-id prop!");await salla.lang.onLoaded(),this.download=salla.lang.get("pages.thank_you.download");const a=await Salla.api.metadata.fetchValues(this.entity,this.entityId);this.specs=a.data[0]?.sections}render(){if(this.specs.length)return t(s,{class:"s-metadata-wrapper"},this.specs.map((a=>t("div",{class:"s-metadata-box"},t("div",{class:"s-metadata-box-header"},t("i",{class:"sicon-list"}),a.name),a.fields.map((a=>t("div",{class:"s-metadata-row"},t("p",{class:"s-metadata-row-name"},a.name),t("p",{class:"s-metadata-row-value",innerHTML:this.getValue(a)}))))))))}get host(){return e(this)}};i.style="";export{i as salla_metadata}
4
+ import{r as a,h as t,H as s,a as e}from"./p-D8IUoDXw.js";const i=class{constructor(t){if(a(this,t),this.entity="product",this.specs=[],this.download=salla.lang.get("pages.thank_you.download"),this.entityId)try{return void(this.entityId=Array.isArray(this.entityId)?this.entityId:JSON.parse(this.entityId))}catch(a){salla.log("Bad json passed via entityId prop")}}getValue(a){if("file"===a.type)return`<a href="${a.value}" class="text-primary" target="_blank"><span class="sicon-download"></span> ${this.download}</a>`;if("url"===a.type)return`<a href="${a.value}" class="text-blue-700 underline" target="_blank">${a.value}</a>`;if("date"===a.type){const t=new Date(a.value);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}return a.value}async componentWillLoad(){if(await salla.onReady(),!salla.config.get("store.features")?.includes("custom-fields"))return salla.logger.error("feature custom-fields is not activated");if(this.entityId||!salla.url.is_page("product.single")&&!salla.url.is_page("product.showNewUrls")||(this.entityId=salla.config.get("page.id")),!this.entityId)return salla.logger.error("can't render salla-metadata without enity-id prop!");await salla.lang.onLoaded(),this.download=salla.lang.get("pages.thank_you.download");const a=await Salla.api.metadata.fetchValues(this.entity,this.entityId);this.specs=a.data[0]?.sections}render(){if(this.specs.length)return t(s,{class:"s-metadata-wrapper"},this.specs.map((a=>t("div",{class:"s-metadata-box"},t("div",{class:"s-metadata-box-header"},t("i",{class:"sicon-list"}),a.name),a.fields.map((a=>t("div",{class:"s-metadata-row"},t("p",{class:"s-metadata-row-name"},a.name),t("p",{class:"s-metadata-row-value",innerHTML:this.getValue(a)}))))))))}get host(){return e(this)}};i.style="";export{i as salla_metadata}