@salla.sa/twilight-components 2.14.484 → 2.14.485

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 (323) hide show
  1. package/dist/cjs/{Helper-CgGR9Qf8.js → Helper-DvyEpCgx.js} +13 -0
  2. package/dist/cjs/{filepond-CgzJykLb.js → filepond-B1h9ltVJ.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-QDPQ7mwB.js → filepond-plugin-file-poster-B4zD4xns.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-Bad-w2I9.js → filepond-plugin-file-validate-size-CIX5-X21.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-DISG2_qB.js → filepond-plugin-file-validate-type-D1NcjxUw.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-CVHAGWaB.js → filepond-plugin-image-edit-Bb7P11BN.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-Dwsj5VyO.js → filepond-plugin-image-exif-orientation-C4HNrnSA.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-I9g9nrNa.js → filepond-plugin-image-preview-DeMAP_C9.js} +1 -1
  9. package/dist/cjs/{functions-hUb6T9a1.js → functions-COuh9Ohq.js} +1 -1
  10. package/dist/cjs/{index-BKQzclgF.js → index-8pwFZzoL.js} +8 -8
  11. package/dist/cjs/{index-BADADy4V.js → index-jbrJkd9L.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  51. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  63. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +17 -2
  73. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  76. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-products-list.cjs.entry.js +23 -12
  82. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  85. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  101. package/dist/cjs/{tracked-promise-czeUB0TX.js → tracked-promise-BOMQ9hTv.js} +1 -1
  102. package/dist/cjs/twilight.cjs.js +2 -2
  103. package/dist/cjs/{vanilla-picker-CuMQuW8m.js → vanilla-picker-DM7x_-2X.js} +1 -1
  104. package/dist/collection/Helpers/Helper.js +13 -0
  105. package/dist/collection/components/salla-products-list/salla-products-list.js +21 -10
  106. package/dist/collection/components/salla-products-slider/salla-products-slider.js +18 -0
  107. package/dist/components/Helper.js +13 -0
  108. package/dist/components/index.js +8 -8
  109. package/dist/components/salla-products-list2.js +21 -10
  110. package/dist/components/salla-products-slider2.js +17 -0
  111. package/dist/esm/{Helper-BXj4f_Qj.js → Helper-CD8d-Brd.js} +13 -0
  112. package/dist/esm/{filepond-BOBokEx5.js → filepond-DHzuRfQN.js} +1 -1
  113. package/dist/esm/{filepond-plugin-file-poster-D9HYZEnq.js → filepond-plugin-file-poster-BxdBxR7d.js} +1 -1
  114. package/dist/esm/{filepond-plugin-file-validate-size-B1BkZh58.js → filepond-plugin-file-validate-size-C-0L9g1L.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-validate-type-CT0ni0hb.js → filepond-plugin-file-validate-type-OyHjZUCW.js} +1 -1
  116. package/dist/esm/{filepond-plugin-image-edit-CvSKiYON.js → filepond-plugin-image-edit-BIfGCYQ5.js} +1 -1
  117. package/dist/esm/{filepond-plugin-image-exif-orientation-Cu1zifQ6.js → filepond-plugin-image-exif-orientation-DJlKxr63.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-preview-6m913ljw.js → filepond-plugin-image-preview-B2DpOs_r.js} +1 -1
  119. package/dist/esm/{functions-CioYIS_L.js → functions-DT-OwuY-.js} +1 -1
  120. package/dist/esm/{index-CiFCAiRL.js → index-D449pxDB.js} +1 -1
  121. package/dist/esm/{index-k6XsozPW.js → index-DJPd6DKq.js} +8 -8
  122. package/dist/esm/loader.js +3 -3
  123. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  124. package/dist/esm/salla-accordion_6.entry.js +2 -2
  125. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  126. package/dist/esm/salla-advertisement.entry.js +1 -1
  127. package/dist/esm/salla-alert_2.entry.js +1 -1
  128. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  129. package/dist/esm/salla-apps-icons.entry.js +1 -1
  130. package/dist/esm/salla-badge.entry.js +1 -1
  131. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  132. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  133. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  134. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  135. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  136. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  137. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  138. package/dist/esm/salla-contacts.entry.js +1 -1
  139. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  140. package/dist/esm/salla-count-down.entry.js +1 -1
  141. package/dist/esm/salla-custom-fields.entry.js +1 -1
  142. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  143. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  144. package/dist/esm/salla-filters-widget.entry.js +2 -2
  145. package/dist/esm/salla-filters.entry.js +2 -2
  146. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  147. package/dist/esm/salla-gifting.entry.js +1 -1
  148. package/dist/esm/salla-hook.entry.js +1 -1
  149. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  150. package/dist/esm/salla-installment.entry.js +1 -1
  151. package/dist/esm/salla-list-tile.entry.js +1 -1
  152. package/dist/esm/salla-localization-modal.entry.js +1 -1
  153. package/dist/esm/salla-login-modal.entry.js +1 -1
  154. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  155. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  156. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  157. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  158. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  159. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  160. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  161. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  162. package/dist/esm/salla-loyalty.entry.js +1 -1
  163. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  164. package/dist/esm/salla-map_2.entry.js +1 -1
  165. package/dist/esm/salla-menu.entry.js +1 -1
  166. package/dist/esm/salla-metadata.entry.js +1 -1
  167. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  168. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  169. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  170. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  171. package/dist/esm/salla-notification-item.entry.js +1 -1
  172. package/dist/esm/salla-notifications.entry.js +2 -2
  173. package/dist/esm/salla-offer-modal.entry.js +1 -1
  174. package/dist/esm/salla-offer.entry.js +1 -1
  175. package/dist/esm/salla-order-branch.entry.js +1 -1
  176. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  177. package/dist/esm/salla-order-details-options.entry.js +1 -1
  178. package/dist/esm/salla-order-details.entry.js +1 -1
  179. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  180. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  181. package/dist/esm/salla-order-edit.entry.js +1 -1
  182. package/dist/esm/salla-order-options-modal_3.entry.js +17 -2
  183. package/dist/esm/salla-order-summary.entry.js +1 -1
  184. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  185. package/dist/esm/salla-orders.entry.js +2 -2
  186. package/dist/esm/salla-payments.entry.js +1 -1
  187. package/dist/esm/salla-placeholder.entry.js +1 -1
  188. package/dist/esm/salla-price-range.entry.js +1 -1
  189. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  190. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  191. package/dist/esm/salla-products-list.entry.js +23 -12
  192. package/dist/esm/salla-quick-order.entry.js +1 -1
  193. package/dist/esm/salla-rating-modal.entry.js +2 -2
  194. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  195. package/dist/esm/salla-scopes.entry.js +1 -1
  196. package/dist/esm/salla-search.entry.js +2 -2
  197. package/dist/esm/salla-skeleton.entry.js +1 -1
  198. package/dist/esm/salla-slider.entry.js +1 -1
  199. package/dist/esm/salla-social-share.entry.js +1 -1
  200. package/dist/esm/salla-social.entry.js +1 -1
  201. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  202. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  203. package/dist/esm/salla-tooltip.entry.js +1 -1
  204. package/dist/esm/salla-trust-badges.entry.js +1 -1
  205. package/dist/esm/salla-user-menu.entry.js +1 -1
  206. package/dist/esm/salla-user-profile.entry.js +1 -1
  207. package/dist/esm/salla-user-settings.entry.js +1 -1
  208. package/dist/esm/salla-verify.entry.js +1 -1
  209. package/dist/esm/salla-wallet.entry.js +1 -1
  210. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  211. package/dist/esm/{tracked-promise-CdkA_JjX.js → tracked-promise-CNnq4c_E.js} +1 -1
  212. package/dist/esm/twilight.js +3 -3
  213. package/dist/esm/{vanilla-picker-BZWJ0V9v.js → vanilla-picker-DQDhWp1B.js} +1 -1
  214. package/dist/twilight/{p-1308a7f4.entry.js → p-005c08fe.entry.js} +1 -1
  215. package/dist/twilight/{p-7e16042a.entry.js → p-01fd381b.entry.js} +1 -1
  216. package/dist/twilight/{p-df18ce74.entry.js → p-029c7342.entry.js} +1 -1
  217. package/dist/twilight/{p-5d0017eb.entry.js → p-07e93d60.entry.js} +1 -1
  218. package/dist/twilight/{p-0567c659.entry.js → p-0ade8936.entry.js} +1 -1
  219. package/dist/twilight/{p-680ee21a.entry.js → p-1620eaa3.entry.js} +1 -1
  220. package/dist/twilight/{p-5e6745be.entry.js → p-17b0b92b.entry.js} +1 -1
  221. package/dist/twilight/{p-38831a43.entry.js → p-17f9907e.entry.js} +1 -1
  222. package/dist/twilight/{p-277fa567.entry.js → p-1b506134.entry.js} +1 -1
  223. package/dist/twilight/{p-a986efd7.entry.js → p-1b9272d4.entry.js} +1 -1
  224. package/dist/twilight/{p-236d6236.entry.js → p-1dc4ab57.entry.js} +1 -1
  225. package/dist/twilight/{p-ca338609.entry.js → p-1fc50a13.entry.js} +1 -1
  226. package/dist/twilight/{p-99372423.entry.js → p-2270652d.entry.js} +1 -1
  227. package/dist/twilight/{p-faecf830.entry.js → p-23a8870b.entry.js} +1 -1
  228. package/dist/twilight/{p-6fce9b27.entry.js → p-2566c361.entry.js} +1 -1
  229. package/dist/twilight/{p-08fe51be.entry.js → p-2646c71c.entry.js} +1 -1
  230. package/dist/twilight/{p-b4e6ee26.entry.js → p-26603c81.entry.js} +1 -1
  231. package/dist/twilight/{p-876984e8.entry.js → p-2794a82d.entry.js} +1 -1
  232. package/dist/twilight/{p-4361f318.entry.js → p-2d6f9f9e.entry.js} +1 -1
  233. package/dist/twilight/{p-ae40baf7.entry.js → p-2e1cf59c.entry.js} +1 -1
  234. package/dist/twilight/{p-3nNP8OVW.js → p-2xUZDJ04.js} +1 -1
  235. package/dist/twilight/{p-65986434.entry.js → p-302bc68d.entry.js} +1 -1
  236. package/dist/twilight/{p-98cb2ad9.entry.js → p-309914e6.entry.js} +1 -1
  237. package/dist/twilight/{p-65e84413.entry.js → p-329f2f11.entry.js} +1 -1
  238. package/dist/twilight/{p-c4dd7259.entry.js → p-32eea65f.entry.js} +1 -1
  239. package/dist/twilight/{p-df9735e4.entry.js → p-32ef12bb.entry.js} +1 -1
  240. package/dist/twilight/{p-7b9f7996.entry.js → p-3a103253.entry.js} +1 -1
  241. package/dist/twilight/{p-e0eb1171.entry.js → p-3c4b0b05.entry.js} +1 -1
  242. package/dist/twilight/{p-3be35606.entry.js → p-40256161.entry.js} +1 -1
  243. package/dist/twilight/{p-159fb121.entry.js → p-431b9986.entry.js} +1 -1
  244. package/dist/twilight/{p-6a520655.entry.js → p-445b3e07.entry.js} +1 -1
  245. package/dist/twilight/{p-34bb19ed.entry.js → p-48b68862.entry.js} +1 -1
  246. package/dist/twilight/{p-6bcd63ae.entry.js → p-4a31a4dd.entry.js} +1 -1
  247. package/dist/twilight/{p-6fd14051.entry.js → p-566bae1e.entry.js} +1 -1
  248. package/dist/twilight/{p-71371a68.entry.js → p-58e39fe9.entry.js} +1 -1
  249. package/dist/twilight/{p-df2b2d2c.entry.js → p-5c7dd67e.entry.js} +1 -1
  250. package/dist/twilight/{p-78b63b85.entry.js → p-5cd703c2.entry.js} +1 -1
  251. package/dist/twilight/{p-b3b5f52a.entry.js → p-5e39f770.entry.js} +1 -1
  252. package/dist/twilight/{p-4cdc5eb0.entry.js → p-6181acb5.entry.js} +1 -1
  253. package/dist/twilight/{p-0882266c.entry.js → p-6466fd9c.entry.js} +1 -1
  254. package/dist/twilight/{p-e00ab427.entry.js → p-67ac0915.entry.js} +1 -1
  255. package/dist/twilight/{p-fe435826.entry.js → p-69926ae5.entry.js} +1 -1
  256. package/dist/twilight/{p-c54b5512.entry.js → p-6e8a0f83.entry.js} +1 -1
  257. package/dist/twilight/{p-fc77d2ae.entry.js → p-74abfefb.entry.js} +1 -1
  258. package/dist/twilight/{p-4ccb7dbf.entry.js → p-74ba62ad.entry.js} +1 -1
  259. package/dist/twilight/{p-910ca1ce.entry.js → p-7547a8c3.entry.js} +1 -1
  260. package/dist/twilight/{p-10d25bed.entry.js → p-78854c4a.entry.js} +1 -1
  261. package/dist/twilight/{p-f9d747fd.entry.js → p-7afc3b39.entry.js} +1 -1
  262. package/dist/twilight/{p-027b0223.entry.js → p-7baf04d3.entry.js} +1 -1
  263. package/dist/twilight/{p-6b7a391d.entry.js → p-7dedb31c.entry.js} +1 -1
  264. package/dist/twilight/{p-e7c43f45.entry.js → p-7f788909.entry.js} +1 -1
  265. package/dist/twilight/{p-fda44045.entry.js → p-800e069d.entry.js} +1 -1
  266. package/dist/twilight/{p-f04e749d.entry.js → p-80fc1a7b.entry.js} +1 -1
  267. package/dist/twilight/p-83b8d7cf.entry.js +4 -0
  268. package/dist/twilight/{p-f84a2d1f.entry.js → p-859f2c19.entry.js} +1 -1
  269. package/dist/twilight/{p-ad24f7b7.entry.js → p-8f672cef.entry.js} +1 -1
  270. package/dist/twilight/{p-54feea36.entry.js → p-91884639.entry.js} +1 -1
  271. package/dist/twilight/{p-f30850eb.entry.js → p-9248a9b8.entry.js} +1 -1
  272. package/dist/twilight/{p-4a466458.entry.js → p-93e3a6b1.entry.js} +1 -1
  273. package/dist/twilight/{p-894d4262.entry.js → p-985f8781.entry.js} +1 -1
  274. package/dist/twilight/{p-4a2522e6.entry.js → p-9c52e63b.entry.js} +1 -1
  275. package/dist/twilight/{p-48c49122.entry.js → p-9f003164.entry.js} +1 -1
  276. package/dist/twilight/p-BG-PTfCd.js +4 -0
  277. package/dist/twilight/{p-DThnTW1t.js → p-BG50tuBF.js} +1 -1
  278. package/dist/twilight/{p-Do0Z2RvW.js → p-BL8emH6B.js} +1 -1
  279. package/dist/twilight/{p-Dt7QetEN.js → p-Bnff9Ut3.js} +1 -1
  280. package/dist/twilight/{p-BcbKK1Xp.js → p-C-3GuKNW.js} +1 -1
  281. package/dist/twilight/{p-BjmKgRE2.js → p-C4k3wAWB.js} +1 -1
  282. package/dist/twilight/{p-k6hKHe3o.js → p-Ce51TrKH.js} +1 -1
  283. package/dist/twilight/{p-CYnG82Sr.js → p-Cve96fFs.js} +1 -1
  284. package/dist/twilight/p-DJPd6DKq.js +5 -0
  285. package/dist/twilight/{p-C8JaiU7x.js → p-DXqzsbXl.js} +1 -1
  286. package/dist/twilight/{p-215f22bf.entry.js → p-a20d0254.entry.js} +1 -1
  287. package/dist/twilight/{p-f10c4351.entry.js → p-a92549f6.entry.js} +1 -1
  288. package/dist/twilight/{p-DIe-ZaHw.js → p-aMw12tPb.js} +1 -1
  289. package/dist/twilight/{p-fd0d78b0.entry.js → p-adb4eed7.entry.js} +1 -1
  290. package/dist/twilight/{p-6e708a89.entry.js → p-af769e0a.entry.js} +1 -1
  291. package/dist/twilight/{p-ae1ff5a4.entry.js → p-b94fe237.entry.js} +1 -1
  292. package/dist/twilight/{p-338810f6.entry.js → p-bff68f44.entry.js} +1 -1
  293. package/dist/twilight/{p-67b9bef4.entry.js → p-c06f0822.entry.js} +1 -1
  294. package/dist/twilight/{p-12221625.entry.js → p-c1aa61bc.entry.js} +1 -1
  295. package/dist/twilight/{p-98bd4d1d.entry.js → p-c2284ac3.entry.js} +1 -1
  296. package/dist/twilight/{p-43e35e87.entry.js → p-c31600a9.entry.js} +1 -1
  297. package/dist/twilight/{p-b586e687.entry.js → p-c88eb0de.entry.js} +1 -1
  298. package/dist/twilight/{p-80898e8c.entry.js → p-ca0fa22b.entry.js} +1 -1
  299. package/dist/twilight/{p-2b80d6bd.entry.js → p-cbb75c0b.entry.js} +1 -1
  300. package/dist/twilight/{p-faedf801.entry.js → p-cf17ece0.entry.js} +1 -1
  301. package/dist/twilight/{p-6b622cdf.entry.js → p-d21bdb22.entry.js} +1 -1
  302. package/dist/twilight/{p-6221c7fd.entry.js → p-d886da88.entry.js} +1 -1
  303. package/dist/twilight/{p-43caeaa9.entry.js → p-da010601.entry.js} +1 -1
  304. package/dist/twilight/{p-aefc937f.entry.js → p-dac3e978.entry.js} +1 -1
  305. package/dist/twilight/{p-8fddef9f.entry.js → p-dafb763f.entry.js} +1 -1
  306. package/dist/twilight/{p-69f6aea4.entry.js → p-e056c218.entry.js} +1 -1
  307. package/dist/twilight/{p-f2155a0e.entry.js → p-e492ab39.entry.js} +1 -1
  308. package/dist/twilight/{p-cd3a81d5.entry.js → p-e625c6a1.entry.js} +1 -1
  309. package/dist/twilight/{p-b4e487a3.entry.js → p-f13b397a.entry.js} +1 -1
  310. package/dist/twilight/{p-1d8eeff8.entry.js → p-f60e5ac2.entry.js} +1 -1
  311. package/dist/twilight/p-f8ccc247.entry.js +4 -0
  312. package/dist/twilight/{p-e2b9a669.entry.js → p-f8eb9db2.entry.js} +1 -1
  313. package/dist/twilight/{p-afdcb549.entry.js → p-fe9451ac.entry.js} +1 -1
  314. package/dist/twilight/{p-RS-U17dA.js → p-tC9eMgA8.js} +1 -1
  315. package/dist/twilight/twilight.esm.js +1 -1
  316. package/dist/types/Helpers/Helper.d.ts +1 -0
  317. package/dist/types/components/salla-products-list/salla-products-list.d.ts +3 -0
  318. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +4 -0
  319. package/package.json +5 -5
  320. package/dist/twilight/p-01a4c68d.entry.js +0 -4
  321. package/dist/twilight/p-C6HZIai8.js +0 -4
  322. package/dist/twilight/p-af0f3c54.entry.js +0 -4
  323. package/dist/twilight/p-k6XsozPW.js +0 -5
@@ -100,6 +100,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
100
100
  this.emitSelection();
101
101
  }
102
102
  };
103
+ this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.wrapper, `${this.productCardComponent}, salla-product-card`);
103
104
  //TODO:: check why `this.includes` not working!!
104
105
  this.includes = Helper.parseJson(this.includes || this.host.getAttribute('includes'));
105
106
  if (!Array.isArray(this.includes)) {
@@ -121,11 +122,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
121
122
  window.addEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
122
123
  salla.event.on('salla-filters::changed', filters => this.setFilters(filters));
123
124
  salla.event.on('wishlist::removed', this.onWishlistItemRemoved);
125
+ salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
124
126
  }
125
127
  disconnectedCallback() {
126
128
  window.removeEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
127
129
  window.removeEventListener('scroll', this.boundHandleScroll);
128
130
  salla.event.off('wishlist::removed', this.onWishlistItemRemoved);
131
+ salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
129
132
  }
130
133
  /**
131
134
  * Set parsed filters data from URI
@@ -369,6 +372,17 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
369
372
  this.selectionChanged.emit(detail);
370
373
  salla.event.emit('salla-products-list::selection.changed', detail);
371
374
  }
375
+ appendProductCards(cards) {
376
+ if (!this.wrapper) {
377
+ return;
378
+ }
379
+ const list = Array.isArray(cards) ? cards : [cards];
380
+ list.forEach(card => this.wrapper.append(card));
381
+ this.onWishlistStorageSynced();
382
+ }
383
+ refreshWishlistIconsAfterHydration() {
384
+ return salla.wishlist.api.syncStorageFromServer();
385
+ }
372
386
  /**
373
387
  * Re-render the list when selection mode is toggled at runtime (e.g. enabled
374
388
  * by the wishlist actions panel after the list already loaded).
@@ -573,9 +587,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
573
587
  this.page = pageIndex;
574
588
  this.nextPage = nextPage;
575
589
  // more performant on larger set of data
576
- for (let i = 0; i < currentPageData.length; i++) {
577
- this.wrapper.append(this.getItemHTML(currentPageData?.[i]));
578
- }
590
+ this.appendProductCards(currentPageData.map((product) => this.getItemHTML(product)));
579
591
  return true;
580
592
  }
581
593
  catch (error) {
@@ -708,6 +720,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
708
720
  }
709
721
  const items = await this.handleResponse(response);
710
722
  this.infiniteScroll.appendItems(items);
723
+ this.onWishlistStorageSynced();
711
724
  if (this.infiniteScroll.pageIndex === 2) {
712
725
  if (!this.autoload && this.nextPage) {
713
726
  this.loadMoreWrapper.style.display = 'block';
@@ -822,7 +835,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
822
835
  this.nextPage = await this.resolveNextPageFromCursor(response);
823
836
  return;
824
837
  }
825
- (await this.handleResponse(response)).forEach(card => this.wrapper.append(card));
838
+ this.appendProductCards(await this.handleResponse(response));
826
839
  }));
827
840
  }
828
841
  /**
@@ -925,8 +938,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
925
938
  }
926
939
  //todo:: avoid using timeout, just assigne the data to the this.firstPageResponse and it should work fine, because it will be rendered in componentDidLoad
927
940
  setTimeout(() => {
928
- let productsList = this.getSourceValue();
929
- productsList.map(product => this.wrapper.append(this.getItemHTML(product)));
941
+ this.appendProductCards(this.getSourceValue().map((product) => this.getItemHTML(product)));
930
942
  });
931
943
  return;
932
944
  }
@@ -959,9 +971,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
959
971
  this.getInitialData()
960
972
  .then(async () => {
961
973
  if (this.firstPageResponse) {
962
- (await this.handleResponse(this.firstPageResponse, false)).forEach(card => {
963
- this.wrapper.append(card);
964
- });
974
+ this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
965
975
  setTimeout(() => {
966
976
  if (!this.autoload && this.nextPage && this.infiniteScroll.pageIndex == 1) {
967
977
  const loadMoreWrapper = this.host.querySelector('.s-infinite-scroll-wrapper');
@@ -979,8 +989,9 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
979
989
  }
980
990
  else {
981
991
  this.firstPageResponse &&
982
- (await this.handleResponse(this.firstPageResponse, false)).forEach(card => this.wrapper.append(card));
992
+ this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
983
993
  }
994
+ await this.refreshWishlistIconsAfterHydration();
984
995
  }
985
996
  canRender() {
986
997
  return this.sourceValueIsValid && this.isReady;
@@ -40,6 +40,7 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
40
40
  */
41
41
  this.productCardComponent = 'custom-salla-product-card';
42
42
  this.apiUrl = '';
43
+ this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.host, `${this.productCardComponent}, salla-product-card`);
43
44
  }
44
45
  componentWillLoad() {
45
46
  return salla.onReady()
@@ -90,9 +91,20 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
90
91
  }
91
92
  }, 1000);
92
93
  }
94
+ connectedCallback() {
95
+ salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
96
+ }
97
+ disconnectedCallback() {
98
+ salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
99
+ }
93
100
  async componentDidLoad() {
94
101
  await Salla.hooks.registerComponent('salla-products-slider', this);
95
102
  }
103
+ onReadyChanged(isReady) {
104
+ if (!isReady)
105
+ return;
106
+ void salla.wishlist.api.syncStorageFromServer();
107
+ }
96
108
  isSourceWithoutValue() {
97
109
  return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
98
110
  }
@@ -132,6 +144,9 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
132
144
  return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, ...(this.sliderProps || {}), "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
133
145
  }
134
146
  get host() { return this; }
147
+ static get watchers() { return {
148
+ "isReady": ["onReadyChanged"]
149
+ }; }
135
150
  static get style() { return sallaProductsSliderCss; }
136
151
  }, [0, "salla-products-slider", {
137
152
  "blockTitle": [1, "block-title"],
@@ -152,6 +167,8 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
152
167
  "hasCustomComponent": [32],
153
168
  "apiUrl": [32],
154
169
  "parsedSourceValue": [32]
170
+ }, undefined, {
171
+ "isReady": ["onReadyChanged"]
155
172
  }]);
156
173
  function defineCustomElement() {
157
174
  if (typeof customElements === "undefined") {
@@ -441,6 +441,19 @@ class Helper {
441
441
  (config.sms || config.mobile || config.whatsapp) && channels.push('sms');
442
442
  return channels.join(',');
443
443
  }
444
+ syncWishlistIcons(root, cardSelector) {
445
+ root?.querySelectorAll(cardSelector).forEach((card) => {
446
+ const rawId = card.product?.id;
447
+ const id = typeof rawId === 'number' ? rawId : Number(rawId);
448
+ if (Number.isNaN(id))
449
+ return;
450
+ const added = salla.wishlist.api.has(id);
451
+ card.querySelectorAll('.s-product-card-wishlist-btn, .btn--wishlist').forEach((btn) => {
452
+ btn.classList.toggle('s-product-card-wishlist-added', added);
453
+ btn.classList.toggle('wishlist-added', added);
454
+ });
455
+ });
456
+ }
444
457
  }
445
458
  var Helper$1 = new Helper;
446
459
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { h } from './index-k6XsozPW.js';
4
+ import { h } from './index-DJPd6DKq.js';
5
5
 
6
6
  function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
7
7
  return number < multipleOf ? number : number - (number % multipleOf);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-k6XsozPW.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DJPd6DKq.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {