@salla.sa/twilight-components 2.14.453 → 2.14.455

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 (335) hide show
  1. package/dist/cjs/{filepond-CI66KMVO.js → filepond-CASXTVVn.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CBGq8ES2.js → filepond-plugin-file-poster-NwV0t9zF.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Hsu_GUsE.js → filepond-plugin-file-validate-size-S-_ZCnL0.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CSvG7Q9E.js → filepond-plugin-file-validate-type-8fAsih_V.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DmkDmRS0.js → filepond-plugin-image-edit-BdKPXtEG.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-GPV7AlAH.js → filepond-plugin-image-exif-orientation-iTp4daNS.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CnaFJEOv.js → filepond-plugin-image-preview-D5CX6xww.js} +1 -1
  8. package/dist/cjs/{functions-Bqin1z7b.js → functions-BlV_viZ0.js} +36 -8
  9. package/dist/cjs/{index-BZVIkGyK.js → index-BANBu7pv.js} +1 -1
  10. package/dist/cjs/{index-gD7UGzCL.js → index-CXqniRSt.js} +3 -3
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +68 -6
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +7 -3
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +2 -2
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +3 -3
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +32 -10
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +4 -4
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +11 -5
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +14 -11
  83. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-D-r7wmoZ.js → tracked-promise-TlVxYBIU.js} +1 -1
  99. package/dist/cjs/{translations-DMwpLvqi.js → translations-BHyDCj-Y.js} +12 -0
  100. package/dist/cjs/twilight.cjs.js +1 -1
  101. package/dist/cjs/{vanilla-picker-Bls8gs8C.js → vanilla-picker-B3HS631p.js} +1 -1
  102. package/dist/collection/components/salla-bought-together/salla-bought-together.js +67 -5
  103. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +6 -2
  104. package/dist/collection/components/salla-loyalty-program/functions.js +22 -7
  105. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +31 -9
  106. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +7 -1
  107. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
  108. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +4 -1
  109. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
  110. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
  111. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
  112. package/dist/collection/components/salla-loyalty-program/translations.js +12 -0
  113. package/dist/components/functions.js +35 -8
  114. package/dist/components/index.js +3 -3
  115. package/dist/components/salla-bought-together.js +67 -5
  116. package/dist/components/salla-bullet-delivery.js +6 -2
  117. package/dist/components/salla-loyalty-point2.js +31 -9
  118. package/dist/components/salla-loyalty-program.js +7 -1
  119. package/dist/components/salla-loyalty-reward.js +2 -2
  120. package/dist/components/salla-reward-action2.js +4 -1
  121. package/dist/components/salla-reward-card2.js +1 -1
  122. package/dist/components/salla-reward-details2.js +3 -3
  123. package/dist/components/salla-reward-exchange2.js +3 -3
  124. package/dist/components/translations.js +12 -0
  125. package/dist/esm/{filepond-CA-bRwmz.js → filepond-HUxLccYt.js} +1 -1
  126. package/dist/esm/{filepond-plugin-file-poster-CGF3FiKD.js → filepond-plugin-file-poster-CKU5WMer.js} +1 -1
  127. package/dist/esm/{filepond-plugin-file-validate-size-83VtyXAg.js → filepond-plugin-file-validate-size-BJ7uOb2z.js} +1 -1
  128. package/dist/esm/{filepond-plugin-file-validate-type-DK5fI0Pp.js → filepond-plugin-file-validate-type-ZilEA2CP.js} +1 -1
  129. package/dist/esm/{filepond-plugin-image-edit-DiW845Zb.js → filepond-plugin-image-edit-k3H2LHPc.js} +1 -1
  130. package/dist/esm/{filepond-plugin-image-exif-orientation-DuJRdepD.js → filepond-plugin-image-exif-orientation-C1fWSMsF.js} +1 -1
  131. package/dist/esm/{filepond-plugin-image-preview-CE3Z4l9U.js → filepond-plugin-image-preview-CBiR7yYc.js} +1 -1
  132. package/dist/esm/{functions-ByUw56nX.js → functions-BUK_6AVv.js} +36 -9
  133. package/dist/esm/{index-DuhQONDF.js → index-B27mc3DA.js} +3 -3
  134. package/dist/esm/{index-CDZKvBjs.js → index-B8tvf2Er.js} +1 -1
  135. package/dist/esm/loader.js +2 -2
  136. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  137. package/dist/esm/salla-accordion_6.entry.js +1 -1
  138. package/dist/esm/salla-add-product-button_5.entry.js +68 -6
  139. package/dist/esm/salla-advertisement.entry.js +1 -1
  140. package/dist/esm/salla-alert_2.entry.js +1 -1
  141. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  142. package/dist/esm/salla-apps-icons.entry.js +1 -1
  143. package/dist/esm/salla-badge.entry.js +1 -1
  144. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  145. package/dist/esm/salla-bullet-delivery_2.entry.js +7 -3
  146. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  147. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  148. package/dist/esm/salla-cashback-banner.entry.js +2 -2
  149. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  150. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  151. package/dist/esm/salla-contacts.entry.js +1 -1
  152. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  153. package/dist/esm/salla-count-down.entry.js +1 -1
  154. package/dist/esm/salla-custom-fields.entry.js +1 -1
  155. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  156. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  157. package/dist/esm/salla-filters-widget.entry.js +1 -1
  158. package/dist/esm/salla-filters.entry.js +1 -1
  159. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  160. package/dist/esm/salla-gifting.entry.js +1 -1
  161. package/dist/esm/salla-hook.entry.js +1 -1
  162. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  163. package/dist/esm/salla-installment.entry.js +1 -1
  164. package/dist/esm/salla-list-tile.entry.js +1 -1
  165. package/dist/esm/salla-localization-modal.entry.js +1 -1
  166. package/dist/esm/salla-login-modal.entry.js +1 -1
  167. package/dist/esm/salla-loyalty-banner.entry.js +3 -3
  168. package/dist/esm/salla-loyalty-hero_2.entry.js +32 -10
  169. package/dist/esm/salla-loyalty-panel.entry.js +4 -4
  170. package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
  171. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  172. package/dist/esm/salla-loyalty-program.entry.js +11 -5
  173. package/dist/esm/salla-loyalty-reward.entry.js +4 -4
  174. package/dist/esm/salla-loyalty.entry.js +1 -1
  175. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  176. package/dist/esm/salla-map.entry.js +1 -1
  177. package/dist/esm/salla-menu.entry.js +1 -1
  178. package/dist/esm/salla-metadata.entry.js +1 -1
  179. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  180. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  181. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  182. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  183. package/dist/esm/salla-notification-item.entry.js +1 -1
  184. package/dist/esm/salla-notifications.entry.js +1 -1
  185. package/dist/esm/salla-offer-modal.entry.js +1 -1
  186. package/dist/esm/salla-offer.entry.js +1 -1
  187. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  188. package/dist/esm/salla-order-details-options.entry.js +1 -1
  189. package/dist/esm/salla-order-details.entry.js +1 -1
  190. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  191. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  192. package/dist/esm/salla-order-edit.entry.js +1 -1
  193. package/dist/esm/salla-order-summary.entry.js +1 -1
  194. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  195. package/dist/esm/salla-orders.entry.js +1 -1
  196. package/dist/esm/salla-payments.entry.js +1 -1
  197. package/dist/esm/salla-placeholder.entry.js +1 -1
  198. package/dist/esm/salla-price-range.entry.js +1 -1
  199. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  200. package/dist/esm/salla-product-card_2.entry.js +1 -1
  201. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  202. package/dist/esm/salla-products-list.entry.js +1 -1
  203. package/dist/esm/salla-progress-bar.entry.js +1 -1
  204. package/dist/esm/salla-quick-order.entry.js +1 -1
  205. package/dist/esm/salla-rating-modal.entry.js +1 -1
  206. package/dist/esm/salla-reward-action_4.entry.js +14 -11
  207. package/dist/esm/salla-scopes.entry.js +1 -1
  208. package/dist/esm/salla-search.entry.js +1 -1
  209. package/dist/esm/salla-skeleton.entry.js +1 -1
  210. package/dist/esm/salla-slider.entry.js +1 -1
  211. package/dist/esm/salla-social-share.entry.js +1 -1
  212. package/dist/esm/salla-social.entry.js +1 -1
  213. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  214. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  215. package/dist/esm/salla-tooltip.entry.js +1 -1
  216. package/dist/esm/salla-trust-badges.entry.js +1 -1
  217. package/dist/esm/salla-user-menu.entry.js +1 -1
  218. package/dist/esm/salla-user-profile.entry.js +1 -1
  219. package/dist/esm/salla-user-settings.entry.js +1 -1
  220. package/dist/esm/salla-verify.entry.js +1 -1
  221. package/dist/esm/salla-wallet.entry.js +1 -1
  222. package/dist/esm/{tracked-promise-D8BEggEx.js → tracked-promise-BhMK_w_-.js} +1 -1
  223. package/dist/esm/{translations-B-Rj6b9M.js → translations-dn_hTofo.js} +12 -0
  224. package/dist/esm/twilight.js +2 -2
  225. package/dist/esm/{vanilla-picker-rczekglZ.js → vanilla-picker-CqDptb8B.js} +1 -1
  226. package/dist/twilight/{p-759d043a.entry.js → p-0154dd29.entry.js} +1 -1
  227. package/dist/twilight/{p-0372d190.entry.js → p-01fd4f64.entry.js} +1 -1
  228. package/dist/twilight/{p-372157de.entry.js → p-025899d4.entry.js} +1 -1
  229. package/dist/twilight/{p-ff6e1a63.entry.js → p-02c191cb.entry.js} +1 -1
  230. package/dist/twilight/{p-3cbaa7f2.entry.js → p-033a25d9.entry.js} +1 -1
  231. package/dist/twilight/{p-c0ad861a.entry.js → p-04555243.entry.js} +1 -1
  232. package/dist/twilight/{p-59171f9a.entry.js → p-099511cb.entry.js} +1 -1
  233. package/dist/twilight/{p-4304d8dc.entry.js → p-09fa0a96.entry.js} +1 -1
  234. package/dist/twilight/{p-86c591e2.entry.js → p-0a5bffbb.entry.js} +1 -1
  235. package/dist/twilight/{p-d647e29f.entry.js → p-0c369b88.entry.js} +1 -1
  236. package/dist/twilight/{p-8abe7b8f.entry.js → p-0cce3436.entry.js} +1 -1
  237. package/dist/twilight/{p-38a6f460.entry.js → p-0d42f5f7.entry.js} +1 -1
  238. package/dist/twilight/{p-e3736f87.entry.js → p-0d733ece.entry.js} +1 -1
  239. package/dist/twilight/{p-58fdeedc.entry.js → p-14ca613a.entry.js} +1 -1
  240. package/dist/twilight/{p-08b7f768.entry.js → p-1952dfe2.entry.js} +1 -1
  241. package/dist/twilight/{p-cefb9ceb.entry.js → p-1c717064.entry.js} +1 -1
  242. package/dist/twilight/{p-799f30e2.entry.js → p-1eadcb01.entry.js} +1 -1
  243. package/dist/twilight/{p-a652277b.entry.js → p-224aeae6.entry.js} +1 -1
  244. package/dist/twilight/{p-34f6ae6d.entry.js → p-22cdee08.entry.js} +1 -1
  245. package/dist/twilight/{p-83e6fef8.entry.js → p-27c704c4.entry.js} +1 -1
  246. package/dist/twilight/{p-11747cf8.entry.js → p-28880d56.entry.js} +1 -1
  247. package/dist/twilight/p-295ed7eb.entry.js +4 -0
  248. package/dist/twilight/{p-0a4586ca.entry.js → p-2ad70328.entry.js} +1 -1
  249. package/dist/twilight/{p-18c8c629.entry.js → p-2f2d596c.entry.js} +1 -1
  250. package/dist/twilight/{p-2fbde35a.entry.js → p-3194b8f1.entry.js} +1 -1
  251. package/dist/twilight/{p-c826dc76.entry.js → p-349723b8.entry.js} +1 -1
  252. package/dist/twilight/{p-54fb9654.entry.js → p-37fa2c33.entry.js} +1 -1
  253. package/dist/twilight/{p-528b8028.entry.js → p-3869c01a.entry.js} +1 -1
  254. package/dist/twilight/{p-a4541cb8.entry.js → p-39521cc9.entry.js} +1 -1
  255. package/dist/twilight/{p-2170acb4.entry.js → p-3a824c45.entry.js} +1 -1
  256. package/dist/twilight/{p-5d611546.entry.js → p-3ce0ec88.entry.js} +1 -1
  257. package/dist/twilight/{p-ae0bdaad.entry.js → p-3dcf296d.entry.js} +1 -1
  258. package/dist/twilight/{p-4d951693.entry.js → p-3fe0b0d9.entry.js} +1 -1
  259. package/dist/twilight/{p-71970ff4.entry.js → p-4365ccdf.entry.js} +1 -1
  260. package/dist/twilight/{p-60816f61.entry.js → p-45e86a35.entry.js} +1 -1
  261. package/dist/twilight/{p-b7756fec.entry.js → p-496b138e.entry.js} +1 -1
  262. package/dist/twilight/{p-a91f1358.entry.js → p-4cc417ec.entry.js} +1 -1
  263. package/dist/twilight/{p-f96e2074.entry.js → p-4e340653.entry.js} +1 -1
  264. package/dist/twilight/{p-f2748268.entry.js → p-52dccf8f.entry.js} +1 -1
  265. package/dist/twilight/{p-6fc8780f.entry.js → p-5414f877.entry.js} +1 -1
  266. package/dist/twilight/{p-d3976258.entry.js → p-583fbeac.entry.js} +1 -1
  267. package/dist/twilight/{p-47a3ce29.entry.js → p-63453993.entry.js} +1 -1
  268. package/dist/twilight/{p-f0012532.entry.js → p-7054b12e.entry.js} +1 -1
  269. package/dist/twilight/{p-5c918928.entry.js → p-708c9d55.entry.js} +1 -1
  270. package/dist/twilight/{p-15682643.entry.js → p-716fa631.entry.js} +1 -1
  271. package/dist/twilight/{p-453e4a72.entry.js → p-7170bbe5.entry.js} +1 -1
  272. package/dist/twilight/{p-a0d7c935.entry.js → p-731ddff8.entry.js} +1 -1
  273. package/dist/twilight/{p-67cc7166.entry.js → p-77adb9d5.entry.js} +1 -1
  274. package/dist/twilight/{p-5f11aa48.entry.js → p-7d79041c.entry.js} +1 -1
  275. package/dist/twilight/{p-b06aab6f.entry.js → p-8610d773.entry.js} +1 -1
  276. package/dist/twilight/{p-26d213c4.entry.js → p-873b3598.entry.js} +1 -1
  277. package/dist/twilight/{p-e19fe246.entry.js → p-87691e20.entry.js} +1 -1
  278. package/dist/twilight/{p-9ac8a7ac.entry.js → p-88309e40.entry.js} +1 -1
  279. package/dist/twilight/{p-1017e250.entry.js → p-8a07799b.entry.js} +1 -1
  280. package/dist/twilight/{p-40951b40.entry.js → p-8b775b6c.entry.js} +1 -1
  281. package/dist/twilight/{p-6ff0931f.entry.js → p-8cc38fe2.entry.js} +1 -1
  282. package/dist/twilight/{p-37f80d28.entry.js → p-8ebc59c6.entry.js} +1 -1
  283. package/dist/twilight/{p-2a6c1741.entry.js → p-9608cb48.entry.js} +1 -1
  284. package/dist/twilight/p-9856394d.entry.js +4 -0
  285. package/dist/twilight/{p-f8a71d06.entry.js → p-9ac73546.entry.js} +1 -1
  286. package/dist/twilight/{p-576644de.entry.js → p-9ada1f3d.entry.js} +1 -1
  287. package/dist/twilight/{p-DuhQONDF.js → p-B27mc3DA.js} +2 -2
  288. package/dist/twilight/{p-BKFpjRDB.js → p-BDVAyd15.js} +1 -1
  289. package/dist/twilight/{p-BsgWQKc7.js → p-BUeUpASK.js} +1 -1
  290. package/dist/twilight/{p-B3G9rfPC.js → p-C8a5AE0g.js} +1 -1
  291. package/dist/twilight/{p-bJly2Q9f.js → p-CJxdBsuY.js} +1 -1
  292. package/dist/twilight/{p-5g_iyHqw.js → p-D6ttjw8h.js} +1 -1
  293. package/dist/twilight/{p-CGfi0Jw5.js → p-DNVKaOjC.js} +1 -1
  294. package/dist/twilight/{p-Dl_ZiF1l.js → p-DXVnxhxo.js} +1 -1
  295. package/dist/twilight/p-Tj_9K_OT.js +4 -0
  296. package/dist/twilight/{p-7538d1ca.entry.js → p-a3fb3aa0.entry.js} +1 -1
  297. package/dist/twilight/{p-cacf40b0.entry.js → p-a5b876da.entry.js} +1 -1
  298. package/dist/twilight/{p-69d44de0.entry.js → p-a74c0330.entry.js} +1 -1
  299. package/dist/twilight/{p-b6f8c8c1.entry.js → p-a9200d8b.entry.js} +1 -1
  300. package/dist/twilight/{p-f7d53109.entry.js → p-acf1d397.entry.js} +1 -1
  301. package/dist/twilight/{p-a66afb4d.entry.js → p-af896a9c.entry.js} +1 -1
  302. package/dist/twilight/{p-c95c6d89.entry.js → p-b151943e.entry.js} +1 -1
  303. package/dist/twilight/{p-3d099804.entry.js → p-bc2df32d.entry.js} +1 -1
  304. package/dist/twilight/{p-f96e6132.entry.js → p-c014a283.entry.js} +1 -1
  305. package/dist/twilight/{p-2786dded.entry.js → p-c151d43a.entry.js} +1 -1
  306. package/dist/twilight/p-c6d833e5.entry.js +4 -0
  307. package/dist/twilight/p-caa938d4.entry.js +4 -0
  308. package/dist/twilight/{p-9ab434b1.entry.js → p-cc5f66f2.entry.js} +1 -1
  309. package/dist/twilight/{p-67c261a1.entry.js → p-df76f90f.entry.js} +1 -1
  310. package/dist/twilight/p-dn_hTofo.js +4 -0
  311. package/dist/twilight/{p-ca4473c0.entry.js → p-e0810a73.entry.js} +6 -6
  312. package/dist/twilight/{p-dcbd726f.entry.js → p-e0d55016.entry.js} +1 -1
  313. package/dist/twilight/{p-1aee25ae.entry.js → p-e9b8ac57.entry.js} +1 -1
  314. package/dist/twilight/{p-4f12e7c1.entry.js → p-eb395203.entry.js} +1 -1
  315. package/dist/twilight/{p-e0e40938.entry.js → p-ef2fbf89.entry.js} +1 -1
  316. package/dist/twilight/{p-45cd6429.entry.js → p-f1c1c640.entry.js} +1 -1
  317. package/dist/twilight/{p-795a49f3.entry.js → p-f1c253a9.entry.js} +1 -1
  318. package/dist/twilight/{p-88b678c5.entry.js → p-f7139cc6.entry.js} +1 -1
  319. package/dist/twilight/{p-2007425d.entry.js → p-f762c572.entry.js} +1 -1
  320. package/dist/twilight/{p-f7adbf64.entry.js → p-f8f54860.entry.js} +1 -1
  321. package/dist/twilight/{p-2c2939d4.entry.js → p-ffe3256d.entry.js} +1 -1
  322. package/dist/twilight/{p-C4dBxoYB.js → p-kzSVkHK7.js} +1 -1
  323. package/dist/twilight/{p-D6K__xxx.js → p-oKl48ETd.js} +1 -1
  324. package/dist/twilight/{p-Cy7YnDlp.js → p-twQLVtaI.js} +1 -1
  325. package/dist/twilight/twilight.esm.js +1 -1
  326. package/dist/types/components/salla-bought-together/salla-bought-together.d.ts +9 -0
  327. package/dist/types/components/salla-loyalty-program/functions.d.ts +3 -1
  328. package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +3 -0
  329. package/package.json +5 -5
  330. package/dist/twilight/p-273d6a6e.entry.js +0 -4
  331. package/dist/twilight/p-4de3236d.entry.js +0 -4
  332. package/dist/twilight/p-6a0cf220.entry.js +0 -4
  333. package/dist/twilight/p-B-Rj6b9M.js +0 -4
  334. package/dist/twilight/p-DmbvyZsW.js +0 -4
  335. package/dist/twilight/p-ac41b9ff.entry.js +0 -4
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
7
- var functions = require('./functions-Bqin1z7b.js');
6
+ var index = require('./index-CXqniRSt.js');
7
+ var functions = require('./functions-BlV_viZ0.js');
8
8
  var gift = require('./gift-DbNivqYO.js');
9
9
  var tag = require('./tag-D-PcUR33.js');
10
10
  var check = require('./check-BnVBPQNp.js');
11
11
  var cancel = require('./cancel-B5SbMYEk.js');
12
- var trackedPromise = require('./tracked-promise-D-r7wmoZ.js');
12
+ var trackedPromise = require('./tracked-promise-TlVxYBIU.js');
13
13
 
14
14
  const sallaLoyaltyProgramCss$3 = "";
15
15
 
@@ -32,7 +32,10 @@ const SallaRewardAction = class {
32
32
  };
33
33
  }
34
34
  render() {
35
- return (index.h("div", { key: '95d6e753d49c7cb69e6f5e25ef6ccf3f916f4022', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (index.h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
35
+ if (!this.isClickable(this.prize)) {
36
+ return null;
37
+ }
38
+ return (index.h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (index.h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
36
39
  's-loyalty-program-rewards-action-base': true,
37
40
  's-loyalty-program-rewards-action-on': true,
38
41
  } }, salla.lang.get('pages.loyalty_program.shop_now'))) : (index.h("button", { onClick: this.handleClick, class: {
@@ -52,7 +55,7 @@ const SallaRewardCard = class {
52
55
  this.actionClick = index.createEvent(this, "actionClick");
53
56
  }
54
57
  render() {
55
- return (index.h(index.Host, { key: '900a20618e1b3ce82778aa99715baf61689f3eee', class: "s-loyalty-program-reward-host" }, index.h("div", { key: '95b326008c2799ee7d38b48bc57e0860a9386184', class: "s-loyalty-program-reward-container" }, index.h("div", { key: 'd846dc36fa4494ed9ac6152a982f18598936969f', onClick: (e) => this.areaClick.emit(e), role: "button" }, index.h("div", { key: 'b8d23796827e4b07f6c271c50fa0e4aeb59f82fc', class: "s-loyalty-program-reward-img" }, index.h("img", { key: '04a52401941d8a731e8d310397b1ad735bfe44db', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), index.h("div", { key: '64fa967c98d615d7b16859c9d14b60e0c53fc5aa', class: "s-loyalty-program-reward-content" }, index.h("div", { key: 'bb8c34ce8f3bcec9599c87b56bea6abd793187df', class: "s-loyalty-program-reward-points" }, index.h("salla-badge", { key: 'f7d0a396cf754d1e8f9e8fddee53a7d545311148', size: "xs" }, index.h("span", { key: '36f4e1ed873f1a231e2d5e51a2a8cc36bdcedfee', innerHTML: gift.SIGift }), index.h("span", { key: '638b3ecefbfcb424869987ab33478e67d9b5d9b8', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), index.h("div", { key: '6f8386fccf201836d76a86e7fe5e6d3461bb5540', class: "s-loyalty-program-reward-title" }, index.h("span", { key: '6d6692c44d6bac35da40108514471a3c56884d81' }, this.prize.group_title)), index.h("div", { key: '6ad9ad90728ac7f882ff8db9cfadb5a6e12f3e25', class: "s-loyalty-program-reward-name" }, index.h("div", { key: 'ef4344c7cb67785a4cd66d36e303e40a610a5375', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), index.h("div", { key: '5eee5a4f8b10cd790ce41e4a99d94f86bd26dd3b', class: "p-4" }, index.h("slot", { key: '359d50033cdd3cce41901401bf0b75ba9c5aea1f', name: "action" }, index.h("button", { key: 'ea7aa1c5cd50937a27cef7580e508a1e3f8f852d', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
58
+ return (index.h(index.Host, { key: '8e688793dec09f19093df23deacfd7ecaac100b7', class: "s-loyalty-program-reward-host" }, index.h("div", { key: '12663908467c428e861f999fa6449810207b9399', class: "s-loyalty-program-reward-container" }, index.h("div", { key: '8b01e444f083bafcd1036962113921e876be942a', onClick: (e) => this.areaClick.emit(e), role: "button" }, index.h("div", { key: 'a90032821b870b9fe915a3bdceb5422bacc66c3c', class: "s-loyalty-program-reward-img" }, index.h("img", { key: '70f872cb5c17cb8c05df6cdcd767f5b0b018f182', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), index.h("div", { key: 'af161adc0a211ddb2c3702ee81cc47bf275a8b3d', class: "s-loyalty-program-reward-content" }, index.h("div", { key: '5f420a70d14120075ac394ced39b7d37477b8042', class: "s-loyalty-program-reward-points" }, index.h("salla-badge", { key: '58df0147fce4aa22479474ff4e3b327dca4165c0', size: "xs" }, index.h("span", { key: 'e59fc1b27e38e45560d4469d2e8fad0ef1c80915', innerHTML: gift.SIGift }), index.h("span", { key: '9272311f41a78628c2ff6b78acb25e0b04cc3a95', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), index.h("div", { key: '297b130a68d6b64659a6eb832baccf8a5884db78', class: "s-loyalty-program-reward-title" }, index.h("span", { key: '7e9d42268e77dffb2dda963cc046fb09015c4ee7' }, this.prize.group_title)), index.h("div", { key: 'f70b7369222792657b02909aed7bacf2a61f24f6', class: "s-loyalty-program-reward-name" }, index.h("div", { key: '8f1bd6ffb8190d455006e111a013946b3569c24e', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), index.h("div", { key: 'a5a7d0acba4a00be16db6b277a0a5eb39b88153b', class: "p-4" }, index.h("slot", { key: 'e2fcb1189b103f419884b05518af74cfd1c5eeb7', name: "action" }, index.h("button", { key: 'e0522ba4b684bcabae4483dfd36d00cafb86d511', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
56
59
  }
57
60
  };
58
61
  SallaRewardCard.style = sallaLoyaltyProgramCss$2;
@@ -166,11 +169,11 @@ const SallaRewardDetails = class {
166
169
  }
167
170
  render() {
168
171
  const termsAndConditions = this.getTermsAndConditions();
169
- return (index.h("div", { key: '280d646eff094c16596ca31ee57f4bd104958f8c', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: 'a39d376f170684f754c4357dc64d02b5ffbb1ed2', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '654e061c8852461a5248248ed2d95ef02a8a4711', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
172
+ return (index.h("div", { key: '2b8f4348fb0e728665b53db47719686629c1836d', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: '1c838eaa84818ee590a36062b68a505bca8e7c68', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '2912070e266711897fec27c3a3e663677fd605df', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
170
173
  : index.h("button", { class: "s-loyalty-program-back-btn", onClick: () => functions.closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, index.h("span", { class: {
171
174
  'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
172
175
  'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
173
- } })), this.prize.name)), index.h("div", { key: '8dce07ce81b0d6879efc0cba88523b6d3daf42bb', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: 'f288d7483911af0bbc17a824ee4397ad0b3ef367', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: '87686174a3a8c17558d0a97180cb4756a1edbefe', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: '31461e1503c50715f160e75cf7ffad59939fb93c', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: 'ed1fc08260885fa865279a9d2fc6af35c01e2bdc', size: "sm", bg: "light" }, index.h("span", { key: '26eec953f9c5f3fa5aa118828faec50a4477e013', innerHTML: gift.SIGift }), index.h("span", { key: 'db3bf908be0f28534e121da9e692d801d2ee6cf9', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: 'bfdc4d22117ae86f3bb2140546b4b5a8ecd35f8e', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: 'f03b30c0372fd83e4fa7815bbd76d307c6fbe3c1', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: '245acd0b8438230ff5d503e5819abb581f0ba14a', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
176
+ } })), this.prize.name)), index.h("div", { key: '0d7f102d7031fcae33670435d9fa3a7d40a0fbc4', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: '0aa1b6206852391cae2bdd83452b3ed1dca4ef52', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: 'b8de08abbd4ed24367312ecd8e36b9b203dc24cb', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: 'd327bd9cc47042cc694fda8f38a130686caeaeb6', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: 'dbb6d24e2f647bd93bc2cb2d174c747e8117b1cb', size: "sm", bg: "light" }, index.h("span", { key: '8e78d674f565f2274796a57b218a14f683e29149', innerHTML: gift.SIGift }), index.h("span", { key: '3e959d7d67a899a429c2c2100236527268c98905', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: 'b09d181ad0587d4d6f99020adc2b944778e3d491', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: '7538f340d33fd34fd55728c3df1d43ff676ffa57', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: '927078b3615900c8377c1563f7bfe3b6a4cd28d3', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
174
177
  index.h("salla-tab-header", { slot: "header", name: "included", style: {
175
178
  display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
176
179
  } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: check.SICheck }), index.h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
@@ -180,7 +183,7 @@ const SallaRewardDetails = class {
180
183
  display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
181
184
  } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: cancel.SICancel }), index.h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
182
185
  index.h("salla-tab-content", { slot: "content", name: "excluded" }, index.h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
183
- ]))), index.h("salla-reward-action", { key: 'e129546afde7da7fe66e250ce4de67d4523727be', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
186
+ ]))), index.h("salla-reward-action", { key: '0d03ebd0fcf1f7469b75b04d9ad82b71a284d0d1', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
184
187
  }
185
188
  static get watchers() { return {
186
189
  "prize": ["handlePrizeChange"]
@@ -239,11 +242,11 @@ const SallaRewardExchange = class {
239
242
  this.reset(0);
240
243
  }
241
244
  render() {
242
- return (index.h(index.Host, { key: 'ceecba37884a11443b52b76dad69bd164b52b788' }, index.h("div", { key: '598f185363b917969b9de0fb6a536884d6578c95', class: "s-loyalty-program-exchange-heading" }, index.h("div", { key: 'a2aa6b15d97533a973f7f2fb6a2cf517c147367d', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, index.h("span", { key: '9745001d514643add62fe9a64df7fc2c0a694513', innerHTML: gift.SIGift })), index.h("h2", { key: '4819327aacc1307c0f75014d9faef50f55115289' }, salla.lang.get('pages.loyalty_program.redeem_reward')), index.h("p", { key: 'b39c99abcefb0f3baf609cd21049b083a115cdef' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", index.h("span", { key: '50852d87c9686f66beddc7b0a0a3062f0ced1a61' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", index.h("span", { key: '5a4baa0f02859ced6fdcf7ce77c31bf9b27c45e6' }, "(", this.prize.name, ")"))), index.h("div", { key: 'b1f1067bd0f3a84231ac017f4b66a71277a5d209', class: "s-loyalty-program-exchange-btns" }, index.h("button", { key: '7d4ce6c08fcac58290b364a0df55f8acb715d362', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, index.h("span", { key: 'ef1deb96c4bbb2843ae088b539848c15aacdb244', style: {
245
+ return (index.h(index.Host, { key: '44934c0c0574ea61c4ef293a9deb796a2d42c02b' }, index.h("div", { key: 'eca62e786a5d13d4578cc5badcd464ee1570541b', class: "s-loyalty-program-exchange-heading" }, index.h("div", { key: '14b346e172b9859449b780ec7c22e81ec2e97a8c', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, index.h("span", { key: '472753cc4742c2b010729ed98cdbf58192b548fa', innerHTML: gift.SIGift })), index.h("h2", { key: 'e77eeb994a91e36a8b04c213484221a6db2f99fd' }, salla.lang.get('pages.loyalty_program.redeem_reward')), index.h("p", { key: '7c9b9d6400ddeeb7a6ad8bdc1a2f364e9d67187b' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", index.h("span", { key: '07eea7e08a596dd284ceb2d60d2489012457585e' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", index.h("span", { key: '70d6c67bd78400626c1e2d91753a494df5e6d94d' }, "(", this.prize.name, ")"))), index.h("div", { key: '49d98bbcbb017bf3f9195734fbb80f1da8559746', class: "s-loyalty-program-exchange-btns" }, index.h("button", { key: 'a1775e84ef7c17effb54b6fdff83bad9ac8cf8ec', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, index.h("span", { key: '28977f2f6990322cb194c19b01feeffd8117d1b8', style: {
243
246
  opacity: this.exchange.status !== 'pending' ? '1' : '0',
244
- } }, salla.lang.get('common.elements.confirm')), index.h("span", { key: '0f949386c85d7544f7098e2bdc8c7ce4390c4383', class: "s-loyalty-program-exchange-loading", style: {
247
+ } }, salla.lang.get('common.elements.confirm')), index.h("span", { key: '2ff77b13d468e5096d777e0179db9e257468ca53', class: "s-loyalty-program-exchange-loading", style: {
245
248
  opacity: this.exchange.status === 'pending' ? '1' : '0',
246
- } }, index.h("salla-loading", { key: '9cdfbfdc7ebfb2e1874f1956560dc464e4aa2a9f', color: "primary", size: 24 }))), index.h("button", { key: '79a2e8b44be5eb4b3ec5f1a285a8f4eba5324814', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
249
+ } }, index.h("salla-loading", { key: '415c1d497b93718ac0bc67e18442c28246e589e7', color: "primary", size: 24 }))), index.h("button", { key: '32d1a3f2e221261bd4ff459cc85dec5c780dd5e8', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
247
250
  }
248
251
  };
249
252
  __decorate([
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
9
  var mail = require('./mail-Bgvt2hc9.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
  var mail = require('./mail-Bgvt2hc9.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  function TrackedPromise(fn, options = {}) {
9
9
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);
@@ -24,6 +24,14 @@ const translations = {
24
24
  ar: 'خطوات بسيطة تفصلك عن المزيد من نقاط الولاء!',
25
25
  en: 'Two simple steps separate you from great rewards!',
26
26
  },
27
+ 'pages.loyalty_program.how_to_use': {
28
+ ar: 'آلية الإستخدام',
29
+ en: 'How to use?',
30
+ },
31
+ 'pages.loyalty_program.how_to_use_steps': {
32
+ ar: 'يمكنك اكتساب النقاط عند الشراء من التصنيفات المحددة',
33
+ en: 'You can earn points when you purchase from the selected categories.',
34
+ },
27
35
  'pages.loyalty_program.register': {
28
36
  ar: 'سجِّل',
29
37
  en: 'Register',
@@ -60,6 +68,10 @@ const translations = {
60
68
  ar: 'نقطة',
61
69
  en: 'points',
62
70
  },
71
+ 'pages.loyalty_program.start_from': {
72
+ ar: 'يبدأ من',
73
+ en: 'Start from',
74
+ },
63
75
  'pages.loyalty_program.redeem_reward': {
64
76
  ar: 'استبدل النقاط',
65
77
  en: 'Redeem Reward',
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
9
  /*
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-gD7UGzCL.js');
6
+ var index = require('./index-CXqniRSt.js');
7
7
 
8
8
  function _mergeNamespaces(n, m) {
9
9
  m.forEach(function (e) {
@@ -19,6 +19,7 @@ export class SallaBoughtTogether {
19
19
  this.subtitle = salla.lang.get('pages.products.bought_together_subtitle');
20
20
  this.buyTogetherFor = salla.lang.get('pages.products.buy_together_for');
21
21
  this.resolvedProductId = 0;
22
+ this.listViewTracked = false;
22
23
  salla.lang.onLoaded(() => {
23
24
  this.title = salla.lang.get('pages.products.bought_together_title');
24
25
  this.subtitle = salla.lang.get('pages.products.bought_together_subtitle');
@@ -83,6 +84,41 @@ export class SallaBoughtTogether {
83
84
  this.isLoading = false;
84
85
  });
85
86
  }
87
+ componentDidRender() {
88
+ if (!this.recommendations.length || this.listViewTracked || this.intersectionObserver)
89
+ return;
90
+ this.intersectionObserver = new IntersectionObserver((entries) => {
91
+ if (entries.some(e => e.isIntersecting)) {
92
+ this.listViewTracked = true;
93
+ this.intersectionObserver?.disconnect();
94
+ this.intersectionObserver = undefined;
95
+ this.emitListViewed();
96
+ }
97
+ }, { threshold: 0.1 });
98
+ this.intersectionObserver.observe(this.el);
99
+ }
100
+ disconnectedCallback() {
101
+ this.intersectionObserver?.disconnect();
102
+ this.intersectionObserver = undefined;
103
+ }
104
+ emitListViewed() {
105
+ const recommendedProducts = this.recommendations
106
+ .filter(p => !this.isMainProduct(p.id));
107
+ salla.event.emit('salla-bought-together::list.viewed', {
108
+ products: recommendedProducts,
109
+ });
110
+ }
111
+ isMainProduct(id) {
112
+ return String(id) === String(this.resolvedProductId);
113
+ }
114
+ recommendedPosition(productId) {
115
+ const recommendedProducts = this.recommendations.filter(p => !this.isMainProduct(p.id));
116
+ const index = recommendedProducts.findIndex(p => String(p.id) === String(productId));
117
+ return index === -1 ? -1 : index + 1;
118
+ }
119
+ emitProductClicked(product, position) {
120
+ salla.event.emit('salla-bought-together::product.clicked', [{ product, position }]);
121
+ }
86
122
  toggleProduct(id) {
87
123
  const next = new Set(this.selectedIds);
88
124
  next.has(id) ? next.delete(id) : next.add(id);
@@ -101,12 +137,37 @@ export class SallaBoughtTogether {
101
137
  if (this.isAdding || !this.selectedIds.size)
102
138
  return;
103
139
  this.isAdding = true;
140
+ let hasError = false;
104
141
  try {
105
- // Intentional: quickAdd is used for all items including the main product without options — business decision by product team.
106
- const results = await Promise.allSettled(Array.from(this.selectedIds).map(id => salla.cart.quickAdd(id)));
107
- if (results.some(r => r.status === 'rejected')) {
108
- salla.error(salla.lang.get('common.messages.error'));
142
+ // Sequential: addToCartSource is a shared global cleared on each response.
143
+ // Parallel adds race to clear it — only the first response would be suppressed.
144
+ // source:'pdp_fbt' suppresses auto Product Added tracking so we emit it manually below.
145
+ // endpoint:'quickAdd' mirrors quickAdd(id) exactly — no product options required.
146
+ for (const id of Array.from(this.selectedIds)) {
147
+ try {
148
+ if (salla.cart?.api)
149
+ salla.cart.api.addToCartSource = 'pdp_fbt';
150
+ const response = await salla.cart.addItem({ id, endpoint: 'quickAdd', source: 'pdp_fbt' });
151
+ const product = this.recommendations.find(p => p.id === id);
152
+ if (product) {
153
+ const position = this.isMainProduct(id) ? 0 : this.recommendedPosition(id);
154
+ const cartItem = response?.data?.items?.find((i) => String(i.product_id) === String(product.id))
155
+ ?? response?.data?.items?.slice(-1)[0];
156
+ salla.event.emit('salla-bought-together::product.added', [{
157
+ product,
158
+ position,
159
+ cartItem,
160
+ cartId: response?.data?.id,
161
+ }]);
162
+ }
163
+ }
164
+ catch (error) {
165
+ salla.log(error);
166
+ hasError = true;
167
+ }
109
168
  }
169
+ if (hasError)
170
+ salla.error(salla.lang.get('common.messages.error'));
110
171
  }
111
172
  finally {
112
173
  this.isAdding = false;
@@ -122,7 +183,7 @@ export class SallaBoughtTogether {
122
183
  return this.getSkeletonView();
123
184
  if (!this.recommendations.length)
124
185
  return null;
125
- return (h(Host, { class: "s-bought-together-entry" }, h("div", { class: "s-bought-together-header" }, h("h3", { class: "s-bought-together-title" }, this.title), h("p", { class: "s-bought-together-subtitle" }, this.subtitle)), h("div", { class: "s-bought-together-list" }, this.recommendations.map((product) => (h("div", { key: product.id, class: `s-bought-together-item${!this.selectedIds.has(product.id) ? ' s-bought-together-item--unchecked' : ''}` }, h("label", { class: "s-bought-together-checkbox-label" }, h("input", { type: "checkbox", class: "s-bought-together-checkbox", checked: this.selectedIds.has(product.id), onChange: () => this.toggleProduct(product.id) }), h("span", { class: "s-bought-together-checkmark" })), h("a", { class: "s-bought-together-item-link", href: product.url }, h("img", { class: "s-bought-together-item-img", src: product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.image?.alt || product.name, loading: "lazy", decoding: "async", onError: e => {
186
+ return (h(Host, { class: "s-bought-together-entry" }, h("div", { class: "s-bought-together-header" }, h("h3", { class: "s-bought-together-title" }, this.title), h("p", { class: "s-bought-together-subtitle" }, this.subtitle)), h("div", { class: "s-bought-together-list" }, this.recommendations.map((product) => (h("div", { key: product.id, class: `s-bought-together-item${!this.selectedIds.has(product.id) ? ' s-bought-together-item--unchecked' : ''}` }, h("label", { class: "s-bought-together-checkbox-label" }, h("input", { type: "checkbox", class: "s-bought-together-checkbox", checked: this.selectedIds.has(product.id), onChange: () => this.toggleProduct(product.id) }), h("span", { class: "s-bought-together-checkmark" })), h("a", { class: "s-bought-together-item-link", href: product.url, onClick: () => !this.isMainProduct(product.id) && this.emitProductClicked(product, this.recommendedPosition(product.id)) }, h("img", { class: "s-bought-together-item-img", src: product.image?.url || salla.url.cdn('images/s-empty.png'), alt: product.image?.alt || product.name, loading: "lazy", decoding: "async", onError: e => {
126
187
  e.currentTarget.onerror = null;
127
188
  e.currentTarget.src = salla.url.cdn('images/s-empty.png');
128
189
  } }), h("span", { class: "s-bought-together-item-name" }, product.name)), h("span", { class: "s-bought-together-item-price", innerHTML: product.price != null ? salla.money(product.price) : '' }))))), h("salla-button", { class: "s-bought-together-btn", disabled: !this.selectedIds.size || this.isAdding, loading: this.isAdding, onClick: () => this.addSelectedToCart() }, h("span", { innerHTML: `${this.buyTogetherFor} ${this.totalPrice}` }))));
@@ -174,4 +235,5 @@ export class SallaBoughtTogether {
174
235
  "buyTogetherFor": {}
175
236
  };
176
237
  }
238
+ static get elementRef() { return "el"; }
177
239
  }
@@ -2221,9 +2221,13 @@ export class SallaBulletDelivery {
2221
2221
  render() {
2222
2222
  if (this.isMobileApp)
2223
2223
  return null;
2224
- return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref: (modal) => {
2224
+ return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref: modal => {
2225
2225
  this.modal = modal;
2226
- }, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", { class: "s-bullet-delivery-inner" }, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.add_address_for_order_delivery') : Salla.lang.get('blocks.home.how_prefer_to_receive_order')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping') : Salla.lang.get('blocks.home.products_available_for_delivery_or_pickup_shown_while_shopping'))), this.renderTabs(), this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm()))));
2226
+ }, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", { class: "s-bullet-delivery-inner" }, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address'
2227
+ ? Salla.lang.get('blocks.home.add_address_for_order_delivery')
2228
+ : Salla.lang.get('blocks.home.choose_branch_for_order_pickup')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address'
2229
+ ? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping')
2230
+ : Salla.lang.get('blocks.home.choose_branch_for_order_pickup_description'))), this.renderTabs(), this.viewMode === 'main' && this.renderMainView(), this.viewMode === 'add-address' && this.renderAddAddressForm()))));
2227
2231
  }
2228
2232
  componentDidLoad() {
2229
2233
  // Mark component as ready
@@ -35,19 +35,34 @@ export function brand_path(brand) {
35
35
  return [brand.name.replace(/\s/g, '-'), `brand-${brand.id}`].join('/');
36
36
  }
37
37
  export function isUnitOrder(point) {
38
- for (const condition of (point.conditions ?? [])) {
39
- if (condition.key?.endsWith('_FOR_UNIT')) {
38
+ for (const condition of point.conditions) {
39
+ if (condition.key.endsWith('_FOR_UNIT') || condition.key.endsWith('_FOR_UNIT_BY_CATEGORIES')) {
40
40
  return true;
41
41
  }
42
42
  }
43
- return false;
44
43
  }
45
- export function formattedPointsJsx(value) {
44
+ export function isRangePoints(point) {
45
+ for (const condition of point.conditions) {
46
+ if (condition.key.endsWith('_BY_CATEGORIES') && point.conditions.length > 1) {
47
+ return true;
48
+ }
49
+ }
50
+ }
51
+ export function getPoints(point) {
52
+ if (isRangePoints(point)) {
53
+ return point.conditions.sort((a, b) => a.points - b.points)[0].points;
54
+ }
55
+ return point.points;
56
+ }
57
+ export function formattedPointsJsx(value, isUnit = false, isRange = false) {
46
58
  if (typeof value === 'number') {
47
- return h("span", null, value, " ", salla.lang.get('pages.loyalty_program.point'));
59
+ if (isUnit) {
60
+ return h("span", null, isRange ? salla.lang.get('pages.loyalty_program.start_from') : '', " 1 ", salla.config.currency().symbol, " = ", value, " ", salla.lang.get('pages.loyalty_program.point'));
61
+ }
62
+ return h("span", null, isRange ? salla.lang.get('pages.loyalty_program.start_from') : '', " ", value, " ", salla.lang.get('pages.loyalty_program.point'));
48
63
  }
49
64
  if (isUnitOrder(value)) {
50
- return h("span", null, "1 ", salla.config.currency().symbol, " = ", value.points, " ", salla.lang.get('pages.loyalty_program.point'));
65
+ return h("span", null, isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '', " 1 ", salla.config.currency().symbol, " = ", getPoints(value), " ", salla.lang.get('pages.loyalty_program.point'));
51
66
  }
52
- return h("span", null, value.points, " ", salla.lang.get('pages.loyalty_program.point'));
67
+ return h("span", null, isRangePoints(value) ? salla.lang.get('pages.loyalty_program.start_from') : '', " ", getPoints(value), " ", salla.lang.get('pages.loyalty_program.point'));
53
68
  }