@salla.sa/twilight-components 2.14.346 → 2.14.349

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 (170) hide show
  1. package/dist/cjs/{filepond-D3JT19b9.js → filepond-DFhbfTkt.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-vIqpi5Jb.js → filepond-plugin-file-poster-Dj4Zm459.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CGka-OOR.js → filepond-plugin-file-validate-size-DsH6GzKJ.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-D5Xexu4N.js → filepond-plugin-file-validate-type-DfaEudMs.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CIxcoEFX.js → filepond-plugin-image-edit-gz-CV83v.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-yRezDeUb.js → filepond-plugin-image-exif-orientation-DfkLjcpx.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CPE8T2_S.js → filepond-plugin-image-preview-BxaEwNCI.js} +1 -1
  8. package/dist/cjs/{index-B_jylE1-.js → index-C9ymZIiv.js} +1 -1
  9. package/dist/cjs/{index-CBbHmJY_.js → index-DcTksD2K.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion_62.cjs.entry.js +10395 -1320
  12. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-cart-item-offers.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -11
  30. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-review-card.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-reviews-page.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-reviews.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  46. package/dist/cjs/twilight.cjs.js +2 -2
  47. package/dist/cjs/vanilla-picker-BYDLZw1n.js +1045 -0
  48. package/dist/collection/components/salla-color-picker/salla-color-picker.js +67 -37
  49. package/dist/collection/components/salla-count-down/salla-count-down.js +125 -1
  50. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -5
  51. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  52. package/dist/collection/components/salla-order-details/salla-order-details-multiple-bundle-product.js +0 -10
  53. package/dist/collection/components/salla-products-slider/salla-products-slider.js +3 -0
  54. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +68 -55
  55. package/dist/collection/components/salla-slider/salla-slider.css +691 -238
  56. package/dist/collection/components/salla-slider/salla-slider.js +96 -58
  57. package/dist/components/index.js +2 -2
  58. package/dist/components/salla-color-picker2.js +69 -1056
  59. package/dist/components/salla-count-down2.js +24 -2
  60. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -5
  61. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  62. package/dist/components/salla-order-details-multiple-bundle-product2.js +0 -10
  63. package/dist/components/salla-products-slider2.js +3 -0
  64. package/dist/components/salla-quick-buy2.js +367 -139
  65. package/dist/components/salla-slider2.js +9881 -61
  66. package/dist/components/vanilla-picker.js +1043 -0
  67. package/dist/esm/{filepond-ESI025KA.js → filepond-DQR2YBu7.js} +1 -1
  68. package/dist/esm/{filepond-plugin-file-poster-CWHjkl55.js → filepond-plugin-file-poster-XvYa1rlk.js} +1 -1
  69. package/dist/esm/{filepond-plugin-file-validate-size-B7W5i7Mk.js → filepond-plugin-file-validate-size-BRBnctOE.js} +1 -1
  70. package/dist/esm/{filepond-plugin-file-validate-type-B1Ny76Ep.js → filepond-plugin-file-validate-type-BuD6F1gi.js} +1 -1
  71. package/dist/esm/{filepond-plugin-image-edit-DfqS6NSZ.js → filepond-plugin-image-edit-BJ8YnBRL.js} +1 -1
  72. package/dist/esm/{filepond-plugin-image-exif-orientation-3kpdQNdB.js → filepond-plugin-image-exif-orientation-BGad_AoX.js} +1 -1
  73. package/dist/esm/{filepond-plugin-image-preview-Ck91BQiY.js → filepond-plugin-image-preview-Cb6UzPfa.js} +1 -1
  74. package/dist/esm/{index-gdKTeC4S.js → index-Bhszo8cU.js} +2 -2
  75. package/dist/esm/{index-5xSCOnsp.js → index-DIfeuyTs.js} +1 -1
  76. package/dist/esm/loader.js +3 -3
  77. package/dist/esm/salla-accordion_62.entry.js +10395 -1320
  78. package/dist/esm/salla-advertisement.entry.js +1 -1
  79. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  80. package/dist/esm/salla-apps-icons.entry.js +1 -1
  81. package/dist/esm/salla-cart-item-offers.entry.js +1 -1
  82. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  83. package/dist/esm/salla-contacts.entry.js +1 -1
  84. package/dist/esm/salla-custom-fields.entry.js +1 -1
  85. package/dist/esm/salla-filters-widget.entry.js +1 -1
  86. package/dist/esm/salla-filters.entry.js +1 -1
  87. package/dist/esm/salla-hook.entry.js +1 -1
  88. package/dist/esm/salla-installment.entry.js +1 -1
  89. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  90. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  91. package/dist/esm/salla-metadata.entry.js +1 -1
  92. package/dist/esm/salla-notification-item.entry.js +1 -1
  93. package/dist/esm/salla-notifications.entry.js +1 -1
  94. package/dist/esm/salla-offer.entry.js +1 -1
  95. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -11
  96. package/dist/esm/salla-order-details-options.entry.js +1 -1
  97. package/dist/esm/salla-order-details.entry.js +1 -1
  98. package/dist/esm/salla-order-summary.entry.js +1 -1
  99. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  100. package/dist/esm/salla-orders.entry.js +1 -1
  101. package/dist/esm/salla-payments.entry.js +1 -1
  102. package/dist/esm/salla-price-range.entry.js +1 -1
  103. package/dist/esm/salla-review-card.entry.js +1 -1
  104. package/dist/esm/salla-reviews-page.entry.js +1 -1
  105. package/dist/esm/salla-reviews.entry.js +1 -1
  106. package/dist/esm/salla-social.entry.js +1 -1
  107. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  108. package/dist/esm/salla-tooltip.entry.js +1 -1
  109. package/dist/esm/salla-trust-badges.entry.js +1 -1
  110. package/dist/esm/salla-verify.entry.js +1 -1
  111. package/dist/esm/salla-wallet.entry.js +1 -1
  112. package/dist/esm/twilight.js +3 -3
  113. package/dist/esm/vanilla-picker-C4Kwbr5L.js +1043 -0
  114. package/dist/twilight/{p-936a76d1.entry.js → p-004be2ff.entry.js} +1 -1
  115. package/dist/twilight/{p-0a4b04a4.entry.js → p-0daa34c4.entry.js} +1 -1
  116. package/dist/twilight/{p-6bd166a7.entry.js → p-112e9574.entry.js} +1 -1
  117. package/dist/twilight/{p-369ada5a.entry.js → p-129e02c2.entry.js} +1 -1
  118. package/dist/twilight/{p-d5da6f45.entry.js → p-1bfef164.entry.js} +1 -1
  119. package/dist/twilight/{p-36a95a0f.entry.js → p-25f64b3e.entry.js} +1 -1
  120. package/dist/twilight/{p-8563e747.entry.js → p-307b5fa0.entry.js} +1 -1
  121. package/dist/twilight/{p-a7a488d5.entry.js → p-46fb77ce.entry.js} +1 -1
  122. package/dist/twilight/{p-b0e7c134.entry.js → p-48617181.entry.js} +1 -1
  123. package/dist/twilight/{p-4e98e961.entry.js → p-48df4495.entry.js} +1 -1
  124. package/dist/twilight/p-4fc33cee.entry.js +4 -0
  125. package/dist/twilight/{p-aefe5639.entry.js → p-55c9e7fe.entry.js} +1 -1
  126. package/dist/twilight/{p-5570cae4.entry.js → p-574bd55f.entry.js} +1 -1
  127. package/dist/twilight/{p-ef0fa205.entry.js → p-5bb9ace5.entry.js} +1 -1
  128. package/dist/twilight/{p-eab13555.entry.js → p-60747f3b.entry.js} +1 -1
  129. package/dist/twilight/{p-3e410acd.entry.js → p-6222b0fa.entry.js} +1 -1
  130. package/dist/twilight/{p-b8f7b4eb.entry.js → p-64c18854.entry.js} +1 -1
  131. package/dist/twilight/{p-e465a952.entry.js → p-66c5dcd3.entry.js} +1 -1
  132. package/dist/twilight/{p-343c8271.entry.js → p-7a706d50.entry.js} +1 -1
  133. package/dist/twilight/{p-ad2b2919.entry.js → p-911bbc7d.entry.js} +1 -1
  134. package/dist/twilight/{p-7b5906b8.entry.js → p-9f541d63.entry.js} +1 -1
  135. package/dist/twilight/{p-DId3Z42j.js → p-B-MyfVCv.js} +1 -1
  136. package/dist/twilight/{p-D3JRC8L6.js → p-BVmy-j16.js} +1 -1
  137. package/dist/twilight/{p-gdKTeC4S.js → p-Bhszo8cU.js} +1 -1
  138. package/dist/twilight/{p-CUtvZOiz.js → p-BvldZUSR.js} +1 -1
  139. package/dist/twilight/{p-CMYBgZIX.js → p-ByJhdNbq.js} +1 -1
  140. package/dist/twilight/{p-DH5ljldi.js → p-CmuTtBET.js} +1 -1
  141. package/dist/twilight/{p-EnsROQgl.js → p-CuNS5C_o.js} +2 -2
  142. package/dist/twilight/{p-DpJnHcvE.js → p-Cy9bcLMa.js} +1 -1
  143. package/dist/twilight/{p-rYLDeLaL.js → p-DAM1DKLB.js} +1 -1
  144. package/dist/twilight/p-NTgp-Syt.js +11 -0
  145. package/dist/twilight/{p-5099bc51.entry.js → p-a25fe3c1.entry.js} +1 -1
  146. package/dist/twilight/{p-49638a91.entry.js → p-a5df8334.entry.js} +1 -1
  147. package/dist/twilight/{p-46b242d9.entry.js → p-a6f250b8.entry.js} +1 -1
  148. package/dist/twilight/{p-ebd8dbf8.entry.js → p-ae93ed50.entry.js} +1 -1
  149. package/dist/twilight/{p-f64cd638.entry.js → p-af8daa75.entry.js} +1 -1
  150. package/dist/twilight/{p-8100a941.entry.js → p-b0abcc89.entry.js} +1 -1
  151. package/dist/twilight/{p-360a28b9.entry.js → p-b8a203c1.entry.js} +1 -1
  152. package/dist/twilight/p-cadbe7b6.entry.js +4 -0
  153. package/dist/twilight/{p-1037bca4.entry.js → p-cc43a1bd.entry.js} +1 -1
  154. package/dist/twilight/{p-db68f32e.entry.js → p-cc6238be.entry.js} +1 -1
  155. package/dist/twilight/{p-158398ff.entry.js → p-de290cc2.entry.js} +1 -1
  156. package/dist/twilight/{p-8a1aa61c.entry.js → p-ed0f40e2.entry.js} +1 -1
  157. package/dist/twilight/{p-003a77fe.entry.js → p-f3d3e11e.entry.js} +1 -1
  158. package/dist/twilight/{p-8418b725.entry.js → p-f4bf39fb.entry.js} +1 -1
  159. package/dist/twilight/twilight.esm.js +1 -1
  160. package/dist/types/components/salla-color-picker/interfaces.d.ts +9 -0
  161. package/dist/types/components/salla-color-picker/salla-color-picker.d.ts +4 -1
  162. package/dist/types/components/salla-count-down/salla-count-down.d.ts +22 -0
  163. package/dist/types/components/salla-order-details/salla-order-details-multiple-bundle-product.d.ts +0 -1
  164. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +1 -0
  165. package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +2 -0
  166. package/dist/types/components/salla-slider/salla-slider.d.ts +12 -3
  167. package/dist/types/components.d.ts +48 -0
  168. package/package.json +6 -6
  169. package/dist/twilight/p-04e81b46.entry.js +0 -11
  170. package/dist/twilight/p-1445c077.entry.js +0 -4
@@ -2,6 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+ import { d as defineCustomElement$1 } from './salla-button2.js';
5
6
 
6
7
  const sallaCountDownCss = "";
7
8
 
@@ -135,6 +136,16 @@ const SallaCountDown = /*@__PURE__*/ proxyCustomElement(class SallaCountDown ext
135
136
  this.normalizedPreOrder?.availability_date &&
136
137
  this.renderPreOrderToBeAvailableOn(), this.renderPreOrderCountDown()));
137
138
  }
139
+ renderPrefixText() {
140
+ if (!this.prefixText)
141
+ return null;
142
+ return h("span", { class: "s-count-down-prefix-text" }, this.prefixText);
143
+ }
144
+ renderButton() {
145
+ if (!this.withButton || !this.buttonText)
146
+ return null;
147
+ return h("salla-button", { color: "primary", size: "medium", href: this.buttonHref }, this.buttonIcon ? h("i", { class: this.buttonIcon }) : null, h("span", null, this.buttonText));
148
+ }
138
149
  renderContent() {
139
150
  if (!this.date)
140
151
  return null;
@@ -147,12 +158,18 @@ const SallaCountDown = /*@__PURE__*/ proxyCustomElement(class SallaCountDown ext
147
158
  return this.renderCountDown();
148
159
  }
149
160
  render() {
150
- return (h(Host, { key: '96bba6312e710673e1f249cabecfc8756fac5c0e', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''}` }, this.renderContent(), this.offerEnded && this.renderOfferEnded()));
161
+ return (h(Host, { key: '11e7cf7cf77bbde82d990107b7ccda8f1fc9ad6f', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
151
162
  }
152
163
  static get style() { return sallaCountDownCss; }
153
164
  }, [0, "salla-count-down", {
154
165
  "date": [1],
155
166
  "preOrder": [1, "pre-order"],
167
+ "horizontal": [4],
168
+ "withButton": [4, "with-button"],
169
+ "prefixText": [1, "prefix-text"],
170
+ "buttonHref": [1, "button-href"],
171
+ "buttonText": [1, "button-text"],
172
+ "buttonIcon": [1, "button-icon"],
156
173
  "boxed": [4],
157
174
  "size": [1],
158
175
  "color": [1],
@@ -178,13 +195,18 @@ function defineCustomElement() {
178
195
  if (typeof customElements === "undefined") {
179
196
  return;
180
197
  }
181
- const components = ["salla-count-down"];
198
+ const components = ["salla-count-down", "salla-button"];
182
199
  components.forEach(tagName => { switch (tagName) {
183
200
  case "salla-count-down":
184
201
  if (!customElements.get(tagName)) {
185
202
  customElements.define(tagName, SallaCountDown);
186
203
  }
187
204
  break;
205
+ case "salla-button":
206
+ if (!customElements.get(tagName)) {
207
+ defineCustomElement$1();
208
+ }
209
+ break;
188
210
  } });
189
211
  }
190
212
  defineCustomElement();
@@ -476,22 +476,21 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
476
476
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
477
477
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
478
478
  const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
479
- return (h(Host, { key: '28786c060499c9bfbacf025b75f21d0e8a2d6ab1' }, h("salla-modal", { key: '6322c0542ca2769f50ed6fc616c6d5c72d456c9c', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '812707c4108b5bdefa97e1ff7537998083e2403b', slot: "loading" }, h("salla-skeleton", { key: 'e82b875495873b66414ee4a75d845823373b4914', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'd3849a91153ede94ea06553cb40af29e06c916ae', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
479
+ return (h(Host, { key: '28786c060499c9bfbacf025b75f21d0e8a2d6ab1' }, h("salla-modal", { key: '6322c0542ca2769f50ed6fc616c6d5c72d456c9c', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '812707c4108b5bdefa97e1ff7537998083e2403b', slot: "loading" }, h("salla-skeleton", { key: 'e82b875495873b66414ee4a75d845823373b4914', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'f1f3545637b182257f9107972a819ae9819de137', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
480
480
  centeredSlides: true,
481
481
  centeredSlidesBounds: true,
482
482
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
483
483
  watchOverflow: true,
484
- watchSlidesVisibility: true,
485
484
  watchSlidesProgress: true,
486
485
  direction: 'vertical',
487
486
  spaceBetween: 10,
488
- } }, h("div", { key: 'd585f7a29cb9265c39c471876d3a0cb7d2460359', slot: "items" }, this.product?.images &&
487
+ } }, h("div", { key: '97b50195903a01376e057bc99ddb353fd3dfdb2b', slot: "items" }, this.product?.images &&
489
488
  this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
490
489
  e.target.style.display = 'none';
491
- } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '1a6edb417a6715617303634b7d756eef0075a01a', slot: "thumbs" }, this.product?.images &&
490
+ } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: 'ff943c9c8f175ff1c0374a13153b33889c468dda', slot: "thumbs" }, this.product?.images &&
492
491
  this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
493
492
  e.target.style.display = 'none';
494
- } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '22528e7438a30feffe5987ed86974a4eecea76a1', slot: "footer" }, h("div", { key: '7a891b1cd51d2f15e08523c2a4096ea4c50eb51b', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '4ed19c8cfdd3f37166a61fdbd452a8f205763469', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
493
+ } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '7555836d26018f6405bc54a1cd735b4030d4bdf1', slot: "footer" }, h("div", { key: 'a7ee5f19a4c11a1c61e4dc026fa8673e0ab74c3f', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '1da19964053766f3a1339ea0e77ab7aaa4d8a003', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
495
494
  ? salla.lang.get('common.elements.saving')
496
495
  : salla.lang.get('common.elements.save')))))));
497
496
  }
@@ -104,7 +104,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
104
104
  : KeyBoardArrowRightIcon;
105
105
  return (h("div", { class: `s-multiple-bundle-product-slide-one-third ${product.quantity == 0
106
106
  ? 's-multiple-bundle-product-slide-one-third-disabled'
107
- : ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.sale_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, optionsButtonLabel, h("span", { class: "s-multiple-bundle-product-button-icon", innerHTML: optionsArrowIcon })))))));
107
+ : ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.regular_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, optionsButtonLabel, h("span", { class: "s-multiple-bundle-product-button-icon", innerHTML: optionsArrowIcon })))))));
108
108
  })))));
109
109
  }
110
110
  get host() { return this; }
@@ -48,16 +48,6 @@ const SallaproductDetailsMultipleBundleProduct = /*@__PURE__*/ proxyCustomElemen
48
48
  }
49
49
  return this.productDetails?.options?.length > 0;
50
50
  }
51
- renderProductPrice() {
52
- if (!this.productDetails) {
53
- return null;
54
- }
55
- const { is_on_sale, sale_price, regular_price, price } = this.productDetails;
56
- if (is_on_sale && sale_price) {
57
- return (h("div", null, h("span", { class: "s-order-details-product-price s-order-details-product-price-sale" }, h("span", { innerHTML: salla.money(sale_price) })), regular_price && (h("span", { class: "s-order-details-product-regular-price" }, h("span", { innerHTML: salla.money(regular_price) })))));
58
- }
59
- return (h("span", { class: "s-order-details-product-price" }, h("span", { innerHTML: salla.money(price) })));
60
- }
61
51
  renderOptions() {
62
52
  if (!this.productDetails?.options?.length) {
63
53
  return null;
@@ -78,6 +78,9 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
78
78
  }
79
79
  }, 1000);
80
80
  }
81
+ async componentDidLoad() {
82
+ await Salla.hooks.registerComponent('salla-products-slider', this);
83
+ }
81
84
  isSourceWithoutValue() {
82
85
  return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
83
86
  }