@salla.sa/twilight-components 2.14.484 → 2.14.486

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 (329) hide show
  1. package/dist/cjs/{Helper-CgGR9Qf8.js → Helper-DvyEpCgx.js} +13 -0
  2. package/dist/cjs/{filepond-CgzJykLb.js → filepond-BtDP9OW9.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-QDPQ7mwB.js → filepond-plugin-file-poster-CTf1Ej_n.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-Bad-w2I9.js → filepond-plugin-file-validate-size-_wVJpYXF.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-DISG2_qB.js → filepond-plugin-file-validate-type-DWoo5Lcs.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-CVHAGWaB.js → filepond-plugin-image-edit-DBb_5aN9.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-Dwsj5VyO.js → filepond-plugin-image-exif-orientation-Nnwt-m9k.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-I9g9nrNa.js → filepond-plugin-image-preview-CjBwZm3E.js} +1 -1
  9. package/dist/cjs/{functions-hUb6T9a1.js → functions-DkS9Jmao.js} +1 -1
  10. package/dist/cjs/{index-BADADy4V.js → index-C0yFagl6.js} +1 -1
  11. package/dist/cjs/{index-BKQzclgF.js → index-C_WIlgE2.js} +8 -8
  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 +21 -5
  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-TyxTPR6e.js} +1 -1
  102. package/dist/cjs/twilight.cjs.js +2 -2
  103. package/dist/cjs/{vanilla-picker-CuMQuW8m.js → vanilla-picker-DyJFw96R.js} +1 -1
  104. package/dist/collection/Helpers/Helper.js +13 -0
  105. package/dist/collection/components/salla-gifting/salla-gifting.js +21 -4
  106. package/dist/collection/components/salla-products-list/salla-products-list.js +21 -10
  107. package/dist/collection/components/salla-products-slider/salla-products-slider.js +18 -0
  108. package/dist/components/Helper.js +13 -0
  109. package/dist/components/index.js +8 -8
  110. package/dist/components/salla-gifting.js +21 -4
  111. package/dist/components/salla-products-list2.js +21 -10
  112. package/dist/components/salla-products-slider2.js +17 -0
  113. package/dist/esm/{Helper-BXj4f_Qj.js → Helper-CD8d-Brd.js} +13 -0
  114. package/dist/esm/{filepond-BOBokEx5.js → filepond-ZiatSU0Y.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-poster-D9HYZEnq.js → filepond-plugin-file-poster-2WAWdRm2.js} +1 -1
  116. package/dist/esm/{filepond-plugin-file-validate-size-B1BkZh58.js → filepond-plugin-file-validate-size-DhLjP7aF.js} +1 -1
  117. package/dist/esm/{filepond-plugin-file-validate-type-CT0ni0hb.js → filepond-plugin-file-validate-type-HH8AZXAq.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-edit-CvSKiYON.js → filepond-plugin-image-edit-BWBtBfk1.js} +1 -1
  119. package/dist/esm/{filepond-plugin-image-exif-orientation-Cu1zifQ6.js → filepond-plugin-image-exif-orientation-CQyPB3lV.js} +1 -1
  120. package/dist/esm/{filepond-plugin-image-preview-6m913ljw.js → filepond-plugin-image-preview-D6MiVWr1.js} +1 -1
  121. package/dist/esm/{functions-CioYIS_L.js → functions-DflaFDbL.js} +1 -1
  122. package/dist/esm/{index-k6XsozPW.js → index-BF901xIc.js} +8 -8
  123. package/dist/esm/{index-CiFCAiRL.js → index-Co2lT5R8.js} +1 -1
  124. package/dist/esm/loader.js +3 -3
  125. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  126. package/dist/esm/salla-accordion_6.entry.js +2 -2
  127. package/dist/esm/salla-add-product-button_5.entry.js +2 -2
  128. package/dist/esm/salla-advertisement.entry.js +1 -1
  129. package/dist/esm/salla-alert_2.entry.js +1 -1
  130. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  131. package/dist/esm/salla-apps-icons.entry.js +1 -1
  132. package/dist/esm/salla-badge.entry.js +1 -1
  133. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  134. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  135. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  136. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  137. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  138. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  139. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  140. package/dist/esm/salla-contacts.entry.js +1 -1
  141. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  142. package/dist/esm/salla-count-down.entry.js +1 -1
  143. package/dist/esm/salla-custom-fields.entry.js +1 -1
  144. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  145. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  146. package/dist/esm/salla-filters-widget.entry.js +2 -2
  147. package/dist/esm/salla-filters.entry.js +2 -2
  148. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  149. package/dist/esm/salla-gifting.entry.js +21 -5
  150. package/dist/esm/salla-hook.entry.js +1 -1
  151. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  152. package/dist/esm/salla-installment.entry.js +1 -1
  153. package/dist/esm/salla-list-tile.entry.js +1 -1
  154. package/dist/esm/salla-localization-modal.entry.js +1 -1
  155. package/dist/esm/salla-login-modal.entry.js +1 -1
  156. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  157. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  158. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  159. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  160. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  161. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  162. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  163. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  164. package/dist/esm/salla-loyalty.entry.js +1 -1
  165. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  166. package/dist/esm/salla-map_2.entry.js +1 -1
  167. package/dist/esm/salla-menu.entry.js +1 -1
  168. package/dist/esm/salla-metadata.entry.js +1 -1
  169. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  170. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  171. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  172. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  173. package/dist/esm/salla-notification-item.entry.js +1 -1
  174. package/dist/esm/salla-notifications.entry.js +2 -2
  175. package/dist/esm/salla-offer-modal.entry.js +1 -1
  176. package/dist/esm/salla-offer.entry.js +1 -1
  177. package/dist/esm/salla-order-branch.entry.js +1 -1
  178. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  179. package/dist/esm/salla-order-details-options.entry.js +1 -1
  180. package/dist/esm/salla-order-details.entry.js +1 -1
  181. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  182. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  183. package/dist/esm/salla-order-edit.entry.js +1 -1
  184. package/dist/esm/salla-order-options-modal_3.entry.js +17 -2
  185. package/dist/esm/salla-order-summary.entry.js +1 -1
  186. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  187. package/dist/esm/salla-orders.entry.js +2 -2
  188. package/dist/esm/salla-payments.entry.js +1 -1
  189. package/dist/esm/salla-placeholder.entry.js +1 -1
  190. package/dist/esm/salla-price-range.entry.js +1 -1
  191. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  192. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  193. package/dist/esm/salla-products-list.entry.js +23 -12
  194. package/dist/esm/salla-quick-order.entry.js +1 -1
  195. package/dist/esm/salla-rating-modal.entry.js +2 -2
  196. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  197. package/dist/esm/salla-scopes.entry.js +1 -1
  198. package/dist/esm/salla-search.entry.js +2 -2
  199. package/dist/esm/salla-skeleton.entry.js +1 -1
  200. package/dist/esm/salla-slider.entry.js +1 -1
  201. package/dist/esm/salla-social-share.entry.js +1 -1
  202. package/dist/esm/salla-social.entry.js +1 -1
  203. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  204. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  205. package/dist/esm/salla-tooltip.entry.js +1 -1
  206. package/dist/esm/salla-trust-badges.entry.js +1 -1
  207. package/dist/esm/salla-user-menu.entry.js +1 -1
  208. package/dist/esm/salla-user-profile.entry.js +1 -1
  209. package/dist/esm/salla-user-settings.entry.js +1 -1
  210. package/dist/esm/salla-verify.entry.js +1 -1
  211. package/dist/esm/salla-wallet.entry.js +1 -1
  212. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  213. package/dist/esm/{tracked-promise-CdkA_JjX.js → tracked-promise-CNdO8SSl.js} +1 -1
  214. package/dist/esm/twilight.js +3 -3
  215. package/dist/esm/{vanilla-picker-BZWJ0V9v.js → vanilla-picker-YVpipuL-.js} +1 -1
  216. package/dist/twilight/{p-99372423.entry.js → p-02350ded.entry.js} +1 -1
  217. package/dist/twilight/{p-54feea36.entry.js → p-04f5d67b.entry.js} +1 -1
  218. package/dist/twilight/{p-fc77d2ae.entry.js → p-0c36ee7c.entry.js} +1 -1
  219. package/dist/twilight/p-0d94f890.entry.js +4 -0
  220. package/dist/twilight/{p-faecf830.entry.js → p-0e2a2a9a.entry.js} +1 -1
  221. package/dist/twilight/{p-680ee21a.entry.js → p-0fcc3b26.entry.js} +1 -1
  222. package/dist/twilight/{p-894d4262.entry.js → p-134988db.entry.js} +1 -1
  223. package/dist/twilight/{p-f9d747fd.entry.js → p-18ad7499.entry.js} +1 -1
  224. package/dist/twilight/{p-6a520655.entry.js → p-1a8525af.entry.js} +1 -1
  225. package/dist/twilight/{p-b586e687.entry.js → p-1c4e7c18.entry.js} +1 -1
  226. package/dist/twilight/{p-6fce9b27.entry.js → p-1d3efd00.entry.js} +1 -1
  227. package/dist/twilight/{p-78b63b85.entry.js → p-2192d7c2.entry.js} +1 -1
  228. package/dist/twilight/{p-e00ab427.entry.js → p-22405eaa.entry.js} +1 -1
  229. package/dist/twilight/{p-df2b2d2c.entry.js → p-2b58b700.entry.js} +1 -1
  230. package/dist/twilight/p-2cc32d1f.entry.js +4 -0
  231. package/dist/twilight/{p-7e16042a.entry.js → p-2e4fe427.entry.js} +1 -1
  232. package/dist/twilight/{p-1d8eeff8.entry.js → p-2eb78125.entry.js} +1 -1
  233. package/dist/twilight/{p-6bcd63ae.entry.js → p-368d3b26.entry.js} +1 -1
  234. package/dist/twilight/{p-f04e749d.entry.js → p-3d732135.entry.js} +1 -1
  235. package/dist/twilight/{p-08fe51be.entry.js → p-3eb54d75.entry.js} +1 -1
  236. package/dist/twilight/{p-69f6aea4.entry.js → p-4288893b.entry.js} +1 -1
  237. package/dist/twilight/{p-80898e8c.entry.js → p-43ab561c.entry.js} +1 -1
  238. package/dist/twilight/{p-12221625.entry.js → p-4427e994.entry.js} +1 -1
  239. package/dist/twilight/{p-43caeaa9.entry.js → p-4544ca7d.entry.js} +1 -1
  240. package/dist/twilight/{p-4a466458.entry.js → p-4b0aa371.entry.js} +1 -1
  241. package/dist/twilight/{p-4361f318.entry.js → p-4b558e37.entry.js} +1 -1
  242. package/dist/twilight/{p-48c49122.entry.js → p-4e2f144a.entry.js} +1 -1
  243. package/dist/twilight/{p-027b0223.entry.js → p-506a2720.entry.js} +1 -1
  244. package/dist/twilight/{p-4ccb7dbf.entry.js → p-518bab79.entry.js} +1 -1
  245. package/dist/twilight/{p-876984e8.entry.js → p-5476bd33.entry.js} +1 -1
  246. package/dist/twilight/{p-4cdc5eb0.entry.js → p-5c37420e.entry.js} +1 -1
  247. package/dist/twilight/{p-5e6745be.entry.js → p-632766e3.entry.js} +1 -1
  248. package/dist/twilight/{p-910ca1ce.entry.js → p-67b225d5.entry.js} +1 -1
  249. package/dist/twilight/{p-8fddef9f.entry.js → p-6976c445.entry.js} +1 -1
  250. package/dist/twilight/{p-faedf801.entry.js → p-6b9780be.entry.js} +1 -1
  251. package/dist/twilight/{p-2b80d6bd.entry.js → p-77b6fbf2.entry.js} +1 -1
  252. package/dist/twilight/{p-afdcb549.entry.js → p-7ce2c5ca.entry.js} +1 -1
  253. package/dist/twilight/{p-b4e487a3.entry.js → p-85b235dc.entry.js} +1 -1
  254. package/dist/twilight/{p-6e708a89.entry.js → p-8f006eca.entry.js} +1 -1
  255. package/dist/twilight/{p-f10c4351.entry.js → p-8f9e0a7a.entry.js} +1 -1
  256. package/dist/twilight/{p-3be35606.entry.js → p-90c58cc5.entry.js} +1 -1
  257. package/dist/twilight/{p-6221c7fd.entry.js → p-9b2f674f.entry.js} +1 -1
  258. package/dist/twilight/{p-65e84413.entry.js → p-9db7e318.entry.js} +1 -1
  259. package/dist/twilight/{p-e0eb1171.entry.js → p-9f6a0804.entry.js} +1 -1
  260. package/dist/twilight/{p-DIe-ZaHw.js → p-BEb9UIZ7.js} +1 -1
  261. package/dist/twilight/p-BF901xIc.js +5 -0
  262. package/dist/twilight/{p-CYnG82Sr.js → p-BPGtYFVu.js} +1 -1
  263. package/dist/twilight/p-Bmy5YF6e.js +4 -0
  264. package/dist/twilight/{p-RS-U17dA.js → p-BrcsejOr.js} +1 -1
  265. package/dist/twilight/{p-DThnTW1t.js → p-BuOjsqYX.js} +1 -1
  266. package/dist/twilight/{p-BcbKK1Xp.js → p-C-3GuKNW.js} +1 -1
  267. package/dist/twilight/{p-C8JaiU7x.js → p-CMmiX5T8.js} +1 -1
  268. package/dist/twilight/{p-k6hKHe3o.js → p-CwLXCdYY.js} +1 -1
  269. package/dist/twilight/{p-Dt7QetEN.js → p-DVM0Orh8.js} +1 -1
  270. package/dist/twilight/{p-Do0Z2RvW.js → p-DwHaUky6.js} +1 -1
  271. package/dist/twilight/{p-BjmKgRE2.js → p-KNG8mGcV.js} +1 -1
  272. package/dist/twilight/{p-c54b5512.entry.js → p-a047ed06.entry.js} +1 -1
  273. package/dist/twilight/{p-0882266c.entry.js → p-a3a1bf15.entry.js} +1 -1
  274. package/dist/twilight/{p-215f22bf.entry.js → p-a4107435.entry.js} +1 -1
  275. package/dist/twilight/{p-e2b9a669.entry.js → p-a445225d.entry.js} +1 -1
  276. package/dist/twilight/{p-ca338609.entry.js → p-a5895e0f.entry.js} +1 -1
  277. package/dist/twilight/{p-71371a68.entry.js → p-a6afc8ab.entry.js} +1 -1
  278. package/dist/twilight/{p-f84a2d1f.entry.js → p-a7d99355.entry.js} +1 -1
  279. package/dist/twilight/{p-1308a7f4.entry.js → p-a853a50f.entry.js} +1 -1
  280. package/dist/twilight/{p-fda44045.entry.js → p-aa928350.entry.js} +1 -1
  281. package/dist/twilight/{p-7b9f7996.entry.js → p-ad5c8d34.entry.js} +1 -1
  282. package/dist/twilight/p-b2a11170.entry.js +4 -0
  283. package/dist/twilight/{p-338810f6.entry.js → p-b32e5ad7.entry.js} +1 -1
  284. package/dist/twilight/{p-fd0d78b0.entry.js → p-b7b29da3.entry.js} +1 -1
  285. package/dist/twilight/{p-38831a43.entry.js → p-b8d180fe.entry.js} +1 -1
  286. package/dist/twilight/{p-ae40baf7.entry.js → p-bcfe04fa.entry.js} +1 -1
  287. package/dist/twilight/{p-0567c659.entry.js → p-bd0075c9.entry.js} +1 -1
  288. package/dist/twilight/{p-6b7a391d.entry.js → p-be632d40.entry.js} +1 -1
  289. package/dist/twilight/{p-f2155a0e.entry.js → p-beb2df03.entry.js} +1 -1
  290. package/dist/twilight/{p-98cb2ad9.entry.js → p-c01e3f1d.entry.js} +1 -1
  291. package/dist/twilight/{p-c4dd7259.entry.js → p-c5050e10.entry.js} +1 -1
  292. package/dist/twilight/{p-df18ce74.entry.js → p-c590dcf0.entry.js} +1 -1
  293. package/dist/twilight/{p-4a2522e6.entry.js → p-c92915e0.entry.js} +1 -1
  294. package/dist/twilight/{p-aefc937f.entry.js → p-cd4b2301.entry.js} +1 -1
  295. package/dist/twilight/{p-159fb121.entry.js → p-ce38e5a1.entry.js} +1 -1
  296. package/dist/twilight/{p-df9735e4.entry.js → p-ce633fa0.entry.js} +1 -1
  297. package/dist/twilight/p-ce8571e3.entry.js +4 -0
  298. package/dist/twilight/{p-65986434.entry.js → p-d1048676.entry.js} +1 -1
  299. package/dist/twilight/{p-cd3a81d5.entry.js → p-d2cc8587.entry.js} +1 -1
  300. package/dist/twilight/{p-e7c43f45.entry.js → p-d2cdd923.entry.js} +1 -1
  301. package/dist/twilight/{p-b4e6ee26.entry.js → p-d3f904d0.entry.js} +1 -1
  302. package/dist/twilight/{p-f30850eb.entry.js → p-d4eeed4b.entry.js} +1 -1
  303. package/dist/twilight/{p-5d0017eb.entry.js → p-d6da8710.entry.js} +1 -1
  304. package/dist/twilight/{p-43e35e87.entry.js → p-d92a7d91.entry.js} +1 -1
  305. package/dist/twilight/{p-277fa567.entry.js → p-dc093d27.entry.js} +1 -1
  306. package/dist/twilight/{p-ae1ff5a4.entry.js → p-e304cb5e.entry.js} +1 -1
  307. package/dist/twilight/{p-6b622cdf.entry.js → p-e692322c.entry.js} +1 -1
  308. package/dist/twilight/{p-6fd14051.entry.js → p-ed1e0c2e.entry.js} +1 -1
  309. package/dist/twilight/{p-fe435826.entry.js → p-f32df318.entry.js} +1 -1
  310. package/dist/twilight/{p-67b9bef4.entry.js → p-f3b24cce.entry.js} +1 -1
  311. package/dist/twilight/{p-34bb19ed.entry.js → p-f4564fdc.entry.js} +1 -1
  312. package/dist/twilight/{p-b3b5f52a.entry.js → p-f5e55c13.entry.js} +1 -1
  313. package/dist/twilight/{p-236d6236.entry.js → p-f5e943bb.entry.js} +1 -1
  314. package/dist/twilight/{p-98bd4d1d.entry.js → p-f71a7a24.entry.js} +1 -1
  315. package/dist/twilight/{p-a986efd7.entry.js → p-fe69512c.entry.js} +1 -1
  316. package/dist/twilight/{p-3nNP8OVW.js → p-gacShRe2.js} +1 -1
  317. package/dist/twilight/twilight.esm.js +1 -1
  318. package/dist/types/Helpers/Helper.d.ts +1 -0
  319. package/dist/types/components/salla-gifting/gift-schema.d.ts +2 -0
  320. package/dist/types/components/salla-gifting/salla-gifting.d.ts +8 -0
  321. package/dist/types/components/salla-products-list/salla-products-list.d.ts +3 -0
  322. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +4 -0
  323. package/package.json +5 -5
  324. package/dist/twilight/p-01a4c68d.entry.js +0 -4
  325. package/dist/twilight/p-10d25bed.entry.js +0 -4
  326. package/dist/twilight/p-C6HZIai8.js +0 -4
  327. package/dist/twilight/p-ad24f7b7.entry.js +0 -4
  328. package/dist/twilight/p-af0f3c54.entry.js +0 -4
  329. package/dist/twilight/p-k6XsozPW.js +0 -5
@@ -144,6 +144,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
144
144
  this.selectCity = salla.lang.get('pages.checkout.select_city');
145
145
  this.selectCountry = salla.lang.get('pages.checkout.select_country');
146
146
  this.selectCityInfo = salla.lang.get('blocks.buy_as_gift.city_info');
147
+ this.cityChangeNotice = salla.lang.get('blocks.buy_as_gift.city_change_notice');
147
148
  this.receiverCityFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_city');
148
149
  this.receiverRegionFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_region') || salla.lang.get('pages.checkout.region');
149
150
  this.selectRegion = salla.lang.get('pages.checkout.select_region');
@@ -163,6 +164,21 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
163
164
  isPhysical() {
164
165
  return this.physicalProducts || this.physical;
165
166
  }
167
+ /**
168
+ * Resolves the city notice text shown in the physical-product gift step:
169
+ * - recipient can't change address -> default city info notice
170
+ * - recipient can change, fixed shipping cost -> city-change notice
171
+ * - recipient can change, any shipping cost -> no notice
172
+ */
173
+ cityNoticeText() {
174
+ if (!this.gift?.recipient_can_change_address) {
175
+ return this.selectCityInfo;
176
+ }
177
+ if (!this.gift?.allows_different_shipping_cost) {
178
+ return this.cityChangeNotice;
179
+ }
180
+ return null;
181
+ }
166
182
  componentDidLoad() {
167
183
  salla.event.product.onPriceUpdated(() => {
168
184
  const quantityInput = document.querySelector(`.s-quantity-input-input`);
@@ -754,7 +770,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
754
770
  }
755
771
  render() {
756
772
  return [
757
- h("div", { key: 'a2798e968c7311c99560db0710559f8f518031fa' }, h("salla-list-tile", { key: '5621984db45065e919fc647bf973b5fdb42e7c3f', class: this.generateClass() }, h("div", { key: '3fea9220af764f5675b17005169ec5398fb0a1d3', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '6984f88fa5675edfddbc67d87fa69ee26ee40b98' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '64cb13fac30d6613af2c278593e45d59f2f8e791', slot: "subtitle" }, h("div", { key: '578f47b7cc8242bbf6872cc670c37beeb7197c0e' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '54e56e74fcc1e3266395ad003369e47ea0b0c27b', slot: "action" }, h("salla-button", { key: '7687a680041c1e5b431eb56d94262fb2defe0664', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '9e466071aa0bf882962931f029e32d567390d9f2', name: "widget-btn-content" }, h("div", { key: 'f5b8a796dc3b7bb4e1094a7741944673e1ec6477', class: "s-gifting-widget-action-content" }, h("span", { key: '037ea375a6904bf51d15c8d76f8b650031526a59', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '490dceeaf5a7e0ec38dabd49182f74d4ea07d597' }, this.sectionBtnText)))))), h("salla-modal", { key: '2914d9a5a0ae7fe555a73f993553165e4fb91b02', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '6d70fa91062f55adb3d0a6371ccb8afc271e949e', slot: "loading" }, h("div", { key: '82a690b756eb1179c325416a33f66b9d726eb336', class: "s-gifting-skeleton" }, h("div", { key: '8cedf269ee0caf39cbd9f39ab80e7dd3d65b7fde', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '7cb2bfb3198c3096efa147348b2a6cdec21eb3d3', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '36cb724cfe2f39a7eb94b779a67520a3bff75389', class: "s-gifting-modal-title" }, h("div", { key: '2ef3bcb26f31cdc34725e9a87849a426bd9dfc72', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '66f4148f367bc687982a06975e41c6865a530e88', height: '15px', width: '150px' })))), h("div", { key: 'fda2fdc549cc6dfcb5f4cc9bfafe5dc686464e4c', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: 'f0f64ab8b9d467c2cbe4707154a21bb952f45831', height: '10px', width: '150px' }), h("salla-skeleton", { key: '1b1950d9d333b4249aab267fdbb90ac380ac6175', height: '230px' }), h("salla-skeleton", { key: '3b3a2472851e63754804ceb68401bb56a9900061', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'd3f9ace5c8b12061ac94d929d926e8458fb66411', height: '30px' }), h("salla-skeleton", { key: 'd0be03fc578e2559c0a5251875bac01519beb18f', height: '40px' })))), h("slot", { key: '86757c4d648dd818857aaee41c6df568724cbd1b', name: "header" }), !!this.hasError ?
773
+ h("div", { key: '416981417bec78c8c3fda43e6f80745f4d735154' }, h("salla-list-tile", { key: '495255205e1c226669a14a94e50442aabd9818da', class: this.generateClass() }, h("div", { key: 'f2dbdc4ea0dc76d806f18563739a116e15cbbe08', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '9ed4f1d995eaf2341a9ec237ebfb486ed3db988e' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'b5d5512fcb2513177eaa1e25eacce9092f7d845f', slot: "subtitle" }, h("div", { key: '0a8223b41973b72d942ce91c5f478a3edaa5dfd3' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'a6d5a077131117c6854ffc2b39e506be7953051e', slot: "action" }, h("salla-button", { key: '99b14364789884b0010e50941c27cbcfe7445785', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '27f6be7b07084f48da83af6240933d619407307f', name: "widget-btn-content" }, h("div", { key: 'ee5d04e96dd1e3849a33813b3737b476b5470497', class: "s-gifting-widget-action-content" }, h("span", { key: 'd02bb1f6cd4dff335eeca1341da2c86d2976b4fc', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '98a3594e6d01133c4f448d8e5df22ba2984cf09e' }, this.sectionBtnText)))))), h("salla-modal", { key: '0be87b9d369e92a71b68f570b9bf19a0ddb7dd6b', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '978995d399506ff82ac0f2385a1f85a808c7da3e', slot: "loading" }, h("div", { key: '7d1f141fd9131d35edb81326062e8f7cadfa2cab', class: "s-gifting-skeleton" }, h("div", { key: 'b33cfd58381c7c1b545ffedf6739e42fdb75c8de', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'e03a505ad3720c25077ca91c7eec2843cdaee225', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '6f630d2582c96fc71406ef4557143c6e9dbd4a88', class: "s-gifting-modal-title" }, h("div", { key: '8d1a3540993c9b40e705f2145bf0514754c36dab', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: 'd965c353f19cf785a13eba6332b715eed9748836', height: '15px', width: '150px' })))), h("div", { key: 'abacc03d1e30075d3d24dfd577dc9a60f7b52810', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '03db84cfccc546602a6f521b015d0c12b93caa6f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e8e2d4e70d208055baaae44a8d7da8aa5c6a33da', height: '230px' }), h("salla-skeleton", { key: '2c90d91fb63551685b2041f2bc51fdb5219cbbb7', height: '10px', width: '150px' }), h("salla-skeleton", { key: '8962bc17f43cb04563caa02db3df585189579f8f', height: '30px' }), h("salla-skeleton", { key: '73730453aa6f8d0ec2a653b4711b80b32a18b916', height: '40px' })))), h("slot", { key: '4bcf5a6d53485c461c35f53ce7e265bcf770989e', name: "header" }), !!this.hasError ?
758
774
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
759
775
  :
760
776
  [
@@ -775,9 +791,9 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
775
791
  h("div", { class: this.step2ItemClass(this.errors?.['receiver.region'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-region` }, this.receiverRegionFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectRegion, items: this.regions ?? [], selectedItem: this.selectedRegion, loading: this.loadingRegions, disabled: this.loadingRegions || !this.regions?.length, required: true, inputId: `${this.hostId}-region`, searchable: false, keepParentScroll: true, onItemSelected: (e) => this.handleRegionSelected(e.detail), onDropdownClosed: () => this.handleRegionDropdownClosed() }), this.errors && this.errors['receiver.region'] ?
776
792
  h("span", { class: "s-gifting-error" }, this.errors['receiver.region']) : ''), this.isPhysical() &&
777
793
  h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-city` }, this.receiverCityFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectCity, items: this.displayedCities, selectedItem: this.selectedCity, loading: this.loadingCities, searching: this.searchingCities, disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId), required: true, inputId: `${this.hostId}-city`, searchQuery: this.citySearchQuery, clientSearch: !this.enableCityAjaxSearch, dropUp: true, keepParentScroll: true, onItemSelected: (e) => this.handleCitySelected(e.detail), onSearchInput: (e) => this.handleCitySearch(e.detail), onDropdownClosed: () => this.handleCityDropdownClosed() }), this.errors && this.errors['receiver.city_id'] ?
778
- h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
779
- h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, !this.skipStep1() && h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
780
- ], h("slot", { key: '052bb080776d8d874da570b643345b95a40cd985', name: "footer" })))
794
+ h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() && this.cityNoticeText() &&
795
+ h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.cityNoticeText())), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, !this.skipStep1() && h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
796
+ ], h("slot", { key: 'a4d37b893e4a0867c044817434ade65b16fbe89a', name: "footer" })))
781
797
  ];
782
798
  }
783
799
  static get style() { return sallaGiftingCss; }
@@ -809,6 +825,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
809
825
  "selectCountry": [32],
810
826
  "selectCity": [32],
811
827
  "selectCityInfo": [32],
828
+ "cityChangeNotice": [32],
812
829
  "receiverCityFieldLabel": [32],
813
830
  "receiverRegionFieldLabel": [32],
814
831
  "selectRegion": [32],
@@ -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-BF901xIc.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-BF901xIc.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-BF901xIc.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-BF901xIc.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-BF901xIc.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-BF901xIc.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-BF901xIc.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-BF901xIc.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);