@salla.sa/twilight-components 2.14.493 → 2.14.495

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 (369) hide show
  1. package/dist/cjs/{filepond-DqhwRQm7.js → filepond-DXx41R2y.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-D19muTiF.js → filepond-plugin-file-poster-CwwiKG-i.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DbAdnWu5.js → filepond-plugin-file-validate-size-CeCrtqy9.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-avp8hUs1.js → filepond-plugin-file-validate-type-Ch0TrXhi.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-Y4pS7CAo.js → filepond-plugin-image-edit-JX_9deVo.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-C5ctyI6s.js → filepond-plugin-image-exif-orientation-DTCbWfw1.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-C9Cy8UAv.js → filepond-plugin-image-preview-DC9e7eeA.js} +1 -1
  8. package/dist/cjs/{functions-D4bL1wnj.js → functions-BNQzf0OA.js} +1 -1
  9. package/dist/cjs/{index-C_qxP6pD.js → index-D5rto5Fh.js} +14 -14
  10. package/dist/cjs/{index-CyG4y8gY.js → index-qIYSQcOD.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  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 +1 -1
  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 +1 -1
  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-cart-summary-card.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/{salla-count-down.cjs.entry.js → salla-count-down_2.cjs.entry.js} +204 -1
  32. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +3 -3
  46. package/dist/cjs/{salla-reward-action_4.cjs.entry.js → salla-loyalty-exchange-product-card_5.cjs.entry.js} +63 -21
  47. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +11 -11
  48. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +6 -5
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-program.cjs.entry.js +6 -5
  53. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +5 -5
  54. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  82. package/dist/cjs/{salla-order-options-modal_3.cjs.entry.js → salla-product-card_2.cjs.entry.js} +1 -204
  83. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +34 -4
  87. package/dist/cjs/salla-rating-modal.cjs.entry.js +34 -9
  88. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/{tracked-promise-B35EnX6x.js → tracked-promise-BIhk39hN.js} +1 -1
  106. package/dist/cjs/twilight.cjs.js +2 -2
  107. package/dist/cjs/{vanilla-picker-BofbsHQq.js → vanilla-picker-DjtnMq2y.js} +1 -1
  108. package/dist/collection/collection-manifest.json +1 -0
  109. package/dist/collection/components/salla-loyalty-program/salla-loyalty-exchange-product-card.js +72 -0
  110. package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
  111. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +4 -2
  112. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -4
  113. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.css +48 -0
  114. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +3 -1
  115. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
  116. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +1 -4
  117. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
  118. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +58 -5
  119. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +1 -5
  120. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +34 -3
  121. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +32 -0
  122. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -7
  123. package/dist/components/index.js +2 -2
  124. package/dist/components/salla-loyalty-banner.js +8 -2
  125. package/dist/components/salla-loyalty-exchange-product-card.d.ts +11 -0
  126. package/dist/components/salla-loyalty-exchange-product-card.js +9 -0
  127. package/dist/components/salla-loyalty-exchange-product-card2.js +151 -0
  128. package/dist/components/salla-loyalty-hero2.js +4 -4
  129. package/dist/components/salla-loyalty-panel.js +33 -25
  130. package/dist/components/salla-loyalty-point2.js +5 -5
  131. package/dist/components/salla-loyalty-program.js +30 -22
  132. package/dist/components/salla-loyalty-reward.js +3 -3
  133. package/dist/components/salla-rating-modal-v22.js +34 -3
  134. package/dist/components/salla-rating-modal.js +34 -8
  135. package/dist/components/salla-reward-action2.js +9 -6
  136. package/dist/components/salla-reward-card2.js +2 -2
  137. package/dist/components/salla-reward-details2.js +63 -27
  138. package/dist/components/salla-reward-exchange2.js +5 -9
  139. package/dist/esm/{filepond-Coz90MV8.js → filepond-C3XP8jm1.js} +1 -1
  140. package/dist/esm/{filepond-plugin-file-poster-CiMXS6O6.js → filepond-plugin-file-poster-CDER34Vh.js} +1 -1
  141. package/dist/esm/{filepond-plugin-file-validate-size-DycwNhLB.js → filepond-plugin-file-validate-size-B8vg8-uq.js} +1 -1
  142. package/dist/esm/{filepond-plugin-file-validate-type-BTWmt4Mh.js → filepond-plugin-file-validate-type-CQtYu4Am.js} +1 -1
  143. package/dist/esm/{filepond-plugin-image-edit-DY5Ti-2K.js → filepond-plugin-image-edit-Dde4YKRv.js} +1 -1
  144. package/dist/esm/{filepond-plugin-image-exif-orientation-BxxwFT1Z.js → filepond-plugin-image-exif-orientation-CUBiG0lK.js} +1 -1
  145. package/dist/esm/{filepond-plugin-image-preview-CjBmoCCR.js → filepond-plugin-image-preview-B1GpYhTn.js} +1 -1
  146. package/dist/esm/{functions-DhhgGPcx.js → functions-B2dJX7jB.js} +1 -1
  147. package/dist/esm/{index-DGH40_w6.js → index-BPOLfGlq.js} +14 -14
  148. package/dist/esm/{index-9AaLpeq_.js → index-Ya4_ataG.js} +1 -1
  149. package/dist/esm/loader.js +3 -3
  150. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  151. package/dist/esm/salla-accordion_6.entry.js +1 -1
  152. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  153. package/dist/esm/salla-advertisement.entry.js +1 -1
  154. package/dist/esm/salla-alert_2.entry.js +1 -1
  155. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  156. package/dist/esm/salla-apps-icons.entry.js +1 -1
  157. package/dist/esm/salla-badge.entry.js +1 -1
  158. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  159. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  160. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  161. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  162. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  163. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  164. package/dist/esm/salla-comment-factors.entry.js +1 -1
  165. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  166. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  167. package/dist/esm/salla-contacts.entry.js +1 -1
  168. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  169. package/dist/esm/{salla-count-down.entry.js → salla-count-down_2.entry.js} +204 -2
  170. package/dist/esm/salla-custom-fields.entry.js +1 -1
  171. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  172. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  173. package/dist/esm/salla-filters-widget.entry.js +1 -1
  174. package/dist/esm/salla-filters.entry.js +1 -1
  175. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  176. package/dist/esm/salla-gifting.entry.js +1 -1
  177. package/dist/esm/salla-hook.entry.js +1 -1
  178. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  179. package/dist/esm/salla-installment.entry.js +1 -1
  180. package/dist/esm/salla-list-tile.entry.js +1 -1
  181. package/dist/esm/salla-localization-modal.entry.js +1 -1
  182. package/dist/esm/salla-login-modal.entry.js +1 -1
  183. package/dist/esm/salla-loyalty-banner.entry.js +3 -3
  184. package/dist/esm/{salla-reward-action_4.entry.js → salla-loyalty-exchange-product-card_5.entry.js} +63 -22
  185. package/dist/esm/salla-loyalty-hero_2.entry.js +11 -11
  186. package/dist/esm/salla-loyalty-panel.entry.js +6 -5
  187. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  188. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  189. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  190. package/dist/esm/salla-loyalty-program.entry.js +6 -5
  191. package/dist/esm/salla-loyalty-reward.entry.js +5 -5
  192. package/dist/esm/salla-loyalty.entry.js +1 -1
  193. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  194. package/dist/esm/salla-map_2.entry.js +1 -1
  195. package/dist/esm/salla-menu.entry.js +1 -1
  196. package/dist/esm/salla-metadata.entry.js +1 -1
  197. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  198. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  199. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  200. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  201. package/dist/esm/salla-notification-item.entry.js +1 -1
  202. package/dist/esm/salla-notifications.entry.js +1 -1
  203. package/dist/esm/salla-offer-modal.entry.js +1 -1
  204. package/dist/esm/salla-offer.entry.js +1 -1
  205. package/dist/esm/salla-order-branch.entry.js +1 -1
  206. package/dist/esm/salla-order-cancel.entry.js +1 -1
  207. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  208. package/dist/esm/salla-order-details-options.entry.js +1 -1
  209. package/dist/esm/salla-order-details.entry.js +1 -1
  210. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  211. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  212. package/dist/esm/salla-order-edit.entry.js +1 -1
  213. package/dist/esm/salla-order-summary.entry.js +1 -1
  214. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  215. package/dist/esm/salla-orders.entry.js +1 -1
  216. package/dist/esm/salla-payments.entry.js +1 -1
  217. package/dist/esm/salla-placeholder.entry.js +1 -1
  218. package/dist/esm/salla-price-range.entry.js +1 -1
  219. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  220. package/dist/esm/{salla-order-options-modal_3.entry.js → salla-product-card_2.entry.js} +2 -204
  221. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  222. package/dist/esm/salla-products-list.entry.js +1 -1
  223. package/dist/esm/salla-quick-order.entry.js +1 -1
  224. package/dist/esm/salla-rating-modal-v2.entry.js +34 -4
  225. package/dist/esm/salla-rating-modal.entry.js +34 -9
  226. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  227. package/dist/esm/salla-scopes.entry.js +1 -1
  228. package/dist/esm/salla-search.entry.js +1 -1
  229. package/dist/esm/salla-skeleton.entry.js +1 -1
  230. package/dist/esm/salla-slider.entry.js +1 -1
  231. package/dist/esm/salla-social-share.entry.js +1 -1
  232. package/dist/esm/salla-social.entry.js +1 -1
  233. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  234. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  235. package/dist/esm/salla-tooltip.entry.js +1 -1
  236. package/dist/esm/salla-trust-badges.entry.js +1 -1
  237. package/dist/esm/salla-user-menu.entry.js +1 -1
  238. package/dist/esm/salla-user-profile.entry.js +1 -1
  239. package/dist/esm/salla-user-settings.entry.js +1 -1
  240. package/dist/esm/salla-verify.entry.js +1 -1
  241. package/dist/esm/salla-wallet.entry.js +1 -1
  242. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  243. package/dist/esm/{tracked-promise-ILCl5q9c.js → tracked-promise-CfALRKPO.js} +1 -1
  244. package/dist/esm/twilight.js +3 -3
  245. package/dist/esm/{vanilla-picker-CXWkB9Rj.js → vanilla-picker-E0YuxtRq.js} +1 -1
  246. package/dist/twilight/{p-0ab66850.entry.js → p-111b12b2.entry.js} +1 -1
  247. package/dist/twilight/{p-280b577d.entry.js → p-11d16ea6.entry.js} +1 -1
  248. package/dist/twilight/{p-6c9462be.entry.js → p-15d6eb3d.entry.js} +1 -1
  249. package/dist/twilight/p-172d2910.entry.js +4 -0
  250. package/dist/twilight/{p-d2706f82.entry.js → p-1b2d51ff.entry.js} +1 -1
  251. package/dist/twilight/{p-67a110ca.entry.js → p-1b807a9e.entry.js} +1 -1
  252. package/dist/twilight/{p-a65070ba.entry.js → p-1cecee41.entry.js} +1 -1
  253. package/dist/twilight/{p-be77d488.entry.js → p-20a9fa11.entry.js} +1 -1
  254. package/dist/twilight/{p-835a102e.entry.js → p-23a0f9d3.entry.js} +1 -1
  255. package/dist/twilight/{p-7225f304.entry.js → p-27010b1e.entry.js} +1 -1
  256. package/dist/twilight/{p-c3c0eafb.entry.js → p-2929495e.entry.js} +1 -1
  257. package/dist/twilight/{p-204f6275.entry.js → p-2af31dd1.entry.js} +1 -1
  258. package/dist/twilight/{p-a30673d8.entry.js → p-310b4a53.entry.js} +1 -1
  259. package/dist/twilight/{p-ff572f0c.entry.js → p-317ac575.entry.js} +1 -1
  260. package/dist/twilight/{p-67636846.entry.js → p-31ed558a.entry.js} +1 -1
  261. package/dist/twilight/p-32392cf3.entry.js +4 -0
  262. package/dist/twilight/{p-0a1e3675.entry.js → p-33dd5133.entry.js} +1 -1
  263. package/dist/twilight/{p-e0096a71.entry.js → p-381676b5.entry.js} +1 -1
  264. package/dist/twilight/{p-246ff1db.entry.js → p-397e0798.entry.js} +1 -1
  265. package/dist/twilight/{p-6f89ecd5.entry.js → p-39d11d60.entry.js} +1 -1
  266. package/dist/twilight/{p-f49f7906.entry.js → p-3b0a60fa.entry.js} +1 -1
  267. package/dist/twilight/{p-9ae8d5cc.entry.js → p-3bd795f0.entry.js} +1 -1
  268. package/dist/twilight/{p-051cf8e8.entry.js → p-3d4b0d93.entry.js} +1 -1
  269. package/dist/twilight/{p-fe2dc707.entry.js → p-3e726a15.entry.js} +1 -1
  270. package/dist/twilight/{p-cd3a98b4.entry.js → p-4204adb8.entry.js} +1 -1
  271. package/dist/twilight/{p-6a3e5797.entry.js → p-45948907.entry.js} +1 -1
  272. package/dist/twilight/p-4f2e7ce7.entry.js +4 -0
  273. package/dist/twilight/{p-5d642891.entry.js → p-5671f508.entry.js} +1 -1
  274. package/dist/twilight/{p-f0483d2f.entry.js → p-5ceefb15.entry.js} +1 -1
  275. package/dist/twilight/{p-2b8d6b5c.entry.js → p-5d818495.entry.js} +1 -1
  276. package/dist/twilight/{p-0d012154.entry.js → p-5e23e49c.entry.js} +1 -1
  277. package/dist/twilight/{p-e7ba206e.entry.js → p-61d3bbc8.entry.js} +1 -1
  278. package/dist/twilight/{p-b291c768.entry.js → p-62fb7e9a.entry.js} +1 -1
  279. package/dist/twilight/{p-f888055e.entry.js → p-633a5ed7.entry.js} +1 -1
  280. package/dist/twilight/{p-fb460b15.entry.js → p-63908cf5.entry.js} +1 -1
  281. package/dist/twilight/{p-5eeda026.entry.js → p-6981573a.entry.js} +1 -1
  282. package/dist/twilight/{p-8b775260.entry.js → p-6a44a9db.entry.js} +1 -1
  283. package/dist/twilight/{p-55150c7f.entry.js → p-6d15b4ec.entry.js} +1 -1
  284. package/dist/twilight/{p-acd71b9c.entry.js → p-74386e55.entry.js} +1 -1
  285. package/dist/twilight/{p-03e5d981.entry.js → p-76f8b335.entry.js} +1 -1
  286. package/dist/twilight/p-79b67593.entry.js +4 -0
  287. package/dist/twilight/{p-daff5fee.entry.js → p-7bef3130.entry.js} +1 -1
  288. package/dist/twilight/{p-f3832e61.entry.js → p-847fcbbf.entry.js} +1 -1
  289. package/dist/twilight/{p-8f9578ea.entry.js → p-84986142.entry.js} +1 -1
  290. package/dist/twilight/{p-94e082e5.entry.js → p-88bcb450.entry.js} +1 -1
  291. package/dist/twilight/{p-811f7253.entry.js → p-896b5880.entry.js} +1 -1
  292. package/dist/twilight/{p-0d3f0c5e.entry.js → p-8b1c2efb.entry.js} +1 -1
  293. package/dist/twilight/{p-a971eb6e.entry.js → p-91ed85fa.entry.js} +1 -1
  294. package/dist/twilight/{p-060cb433.entry.js → p-93f0117b.entry.js} +1 -1
  295. package/dist/twilight/{p-f0ba85ef.entry.js → p-940265b8.entry.js} +1 -1
  296. package/dist/twilight/{p-cfc04f03.entry.js → p-94dd1c95.entry.js} +1 -1
  297. package/dist/twilight/{p-3c315245.entry.js → p-99bc3057.entry.js} +1 -1
  298. package/dist/twilight/{p-cc85cbb6.entry.js → p-9a3de1d3.entry.js} +1 -1
  299. package/dist/twilight/p-9b10bc50.entry.js +4 -0
  300. package/dist/twilight/{p-DGH40_w6.js → p-BPOLfGlq.js} +1 -1
  301. package/dist/twilight/{p-Z-0FpgUH.js → p-C2mMQUaR.js} +2 -2
  302. package/dist/twilight/{p-hlvyyBTt.js → p-CTVX-G0K.js} +1 -1
  303. package/dist/twilight/{p-CRL06FLf.js → p-Cm855HOG.js} +1 -1
  304. package/dist/twilight/{p-CswSlMMW.js → p-CqJ_OQmC.js} +1 -1
  305. package/dist/twilight/{p-ulwdkVD6.js → p-CrMqpxVf.js} +1 -1
  306. package/dist/twilight/{p-CRJyselG.js → p-Dag1-FEn.js} +1 -1
  307. package/dist/twilight/{p-D_66TtzK.js → p-DbXwwuth.js} +1 -1
  308. package/dist/twilight/{p-DxUIn207.js → p-Dmvcz29r.js} +1 -1
  309. package/dist/twilight/{p-CXgH1qPi.js → p-KcsFKraQ.js} +1 -1
  310. package/dist/twilight/{p-DMPBYOzv.js → p-_iz5Z_GI.js} +1 -1
  311. package/dist/twilight/{p-d642b334.entry.js → p-a1dc71b9.entry.js} +1 -1
  312. package/dist/twilight/{p-8ec5ca1a.entry.js → p-a731b254.entry.js} +1 -1
  313. package/dist/twilight/{p-d132c3a1.entry.js → p-ac0dedbd.entry.js} +1 -1
  314. package/dist/twilight/{p-2ede3e52.entry.js → p-ad8bb012.entry.js} +1 -1
  315. package/dist/twilight/{p-19bc5aa0.entry.js → p-afd586a0.entry.js} +1 -1
  316. package/dist/twilight/{p-befbb594.entry.js → p-b17f3ab5.entry.js} +1 -1
  317. package/dist/twilight/p-b1c8aea6.entry.js +4 -0
  318. package/dist/twilight/{p-58fd42b9.entry.js → p-b3899e53.entry.js} +1 -1
  319. package/dist/twilight/{p-1a299dab.entry.js → p-b46df798.entry.js} +1 -1
  320. package/dist/twilight/{p-8509e67b.entry.js → p-bc03c4dd.entry.js} +1 -1
  321. package/dist/twilight/{p-a397eadf.entry.js → p-bc4e3609.entry.js} +1 -1
  322. package/dist/twilight/{p-902bab33.entry.js → p-c1290a97.entry.js} +1 -1
  323. package/dist/twilight/{p-04d25025.entry.js → p-c8080b3e.entry.js} +1 -1
  324. package/dist/twilight/{p-8e87f47b.entry.js → p-c915af20.entry.js} +1 -1
  325. package/dist/twilight/{p-3b962591.entry.js → p-ca2435c0.entry.js} +1 -1
  326. package/dist/twilight/{p-e36a05c8.entry.js → p-d26db462.entry.js} +1 -1
  327. package/dist/twilight/{p-843c1499.entry.js → p-d433feae.entry.js} +1 -1
  328. package/dist/twilight/{p-3996a786.entry.js → p-d495c11f.entry.js} +1 -1
  329. package/dist/twilight/p-d72ea99d.entry.js +4 -0
  330. package/dist/twilight/p-d79de49b.entry.js +4 -0
  331. package/dist/twilight/{p-2bd896e8.entry.js → p-dcc21c13.entry.js} +1 -1
  332. package/dist/twilight/{p-206a4605.entry.js → p-e0b5c304.entry.js} +1 -1
  333. package/dist/twilight/{p-9d00311a.entry.js → p-e1ade50f.entry.js} +1 -1
  334. package/dist/twilight/{p-b7ad635b.entry.js → p-e3d8ca11.entry.js} +1 -1
  335. package/dist/twilight/{p-d4bfca23.entry.js → p-e5d401e6.entry.js} +1 -1
  336. package/dist/twilight/{p-7bf35ca7.entry.js → p-e70e2d64.entry.js} +1 -1
  337. package/dist/twilight/{p-38b57477.entry.js → p-ea3ca9b8.entry.js} +1 -1
  338. package/dist/twilight/p-eafcd660.entry.js +4 -0
  339. package/dist/twilight/{p-420cd3bc.entry.js → p-eb06d1c3.entry.js} +1 -1
  340. package/dist/twilight/{p-59d4fd28.entry.js → p-ec6c198d.entry.js} +1 -1
  341. package/dist/twilight/{p-85d51539.entry.js → p-ed19a207.entry.js} +1 -1
  342. package/dist/twilight/{p-7fc61c4c.entry.js → p-f28e7f54.entry.js} +1 -1
  343. package/dist/twilight/p-f319047e.entry.js +4 -0
  344. package/dist/twilight/{p-546c9f58.entry.js → p-f6a45b26.entry.js} +1 -1
  345. package/dist/twilight/{p-dad28a17.entry.js → p-f98986f7.entry.js} +1 -1
  346. package/dist/twilight/{p-5b2d05b7.entry.js → p-fb5ff81c.entry.js} +1 -1
  347. package/dist/twilight/{p-09d7aa92.entry.js → p-fb61b829.entry.js} +1 -1
  348. package/dist/twilight/{p-ffe0dc1e.entry.js → p-fda54504.entry.js} +1 -1
  349. package/dist/twilight/{p-6d17cc72.entry.js → p-fe130150.entry.js} +1 -1
  350. package/dist/twilight/{p-DqVd28X3.js → p-xxhuj_Ip.js} +1 -1
  351. package/dist/twilight/twilight.esm.js +1 -1
  352. package/dist/types/components/salla-loyalty-program/salla-loyalty-exchange-product-card.d.ts +10 -0
  353. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +1 -0
  354. package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +1 -0
  355. package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +9 -0
  356. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +4 -0
  357. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +4 -0
  358. package/dist/types/components.d.ts +33 -0
  359. package/package.json +5 -5
  360. package/dist/twilight/p-180f51ef.entry.js +0 -4
  361. package/dist/twilight/p-55ef75cb.entry.js +0 -4
  362. package/dist/twilight/p-8e84cce0.entry.js +0 -4
  363. package/dist/twilight/p-a2a5a087.entry.js +0 -4
  364. package/dist/twilight/p-ad33426d.entry.js +0 -4
  365. package/dist/twilight/p-bc46608a.entry.js +0 -4
  366. package/dist/twilight/p-bdc874b8.entry.js +0 -4
  367. package/dist/twilight/p-e8e5906a.entry.js +0 -4
  368. package/dist/twilight/p-ee53cba1.entry.js +0 -4
  369. package/dist/twilight/p-f9a495bf.entry.js +0 -4
@@ -171,7 +171,7 @@ export class SallaLoyaltyPoint {
171
171
  }
172
172
  }
173
173
  render() {
174
- return (h("div", { key: 'ddfb0e0ffb4c23f7cab43dd994e25ba7c599a931' }, h("div", { key: 'a2fe514f59b0e01fc6e22011b6734d7ba97e951e', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: '486b61a56b739a881de4ff0581a19ef91fbfc2e8', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '15f77554d8af1f65a66bf788cae341fe9f8f0fa3', class: this.point.icon })), h("div", { key: '2921be35f4d122e1a4580ed625832e4f33d69276', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: 'c809f65f9c93553e595fc995b76070a6a065e9d8', size: "xs", bg: "transparent" }, h("span", { key: 'd76ddeb873ac19f91b3cfe8af5837feb096cd7ca', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '18674b523984b6ca91afcee873e219571f867fcf', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: '7ebbee57d2858f1ba372fd4b0b42771e394e330f', size: "sm", bg: "transparent" }, h("span", { key: '41a93def0e2e54b4e6e036222e212703fe9ef88f', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: 'acfa0ed98f398b591cb22e828ca677d37007e4e6', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
174
+ return (h("div", { key: '4f7a191b41435d2ea0c603e4454af4307362f5bf' }, h("div", { key: 'ef68b5b9f8606e2aa54ed97eddaecd5f9c191d1c', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'b14f2d1f94daf0674b076db69af9427b23d35e08', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '4d7ee556fde10c0039f035b1310711f2ddb6b6ab', class: this.point.icon })), h("div", { key: '5bf70bb463de4c340a71286d7b9b1a1412842762', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '53a1ac2b950144b78104ffbc9824642865d2b03e', size: "xs", bg: "transparent" }, h("span", { key: 'bb45f6133544718e5296ca5635f5d72c4ff6e86b', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '92f4eed2567bcad8e4e8d65e5d36cd12829862ef', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'ee188fec0149cb900af5e7a3467defd8302c66b0', size: "sm", bg: "transparent" }, h("span", { key: 'b196131e3c3f4d78e11384ee9663373dcfc6f76d', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: 'b759840a68a867310bf0be0ebe6bbef038c48284', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
175
175
  h("a", { class: {
176
176
  's-loyalty-program-points-action': true,
177
177
  's-loyalty-program-points-action-completed': this.point.is_completed,
@@ -181,12 +181,12 @@ export class SallaLoyaltyPoint {
181
181
  's-loyalty-program-points-action': true,
182
182
  's-loyalty-program-points-action-completed': this.point.is_completed,
183
183
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
184
- } }, this.point.description)), h("salla-modal", { key: '7c9f4dce935ba3e1f841aab57de04013e2fb983f', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: '5e1dbd60526ae8450ce6453c04ea244ef1a96697', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'b43153fe19ffa308d5bd4126c9bd0fd43f1379ea', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '5d8f1cad86fd916f984f5baa07ff7fb18afeda68', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '69c4e3f2d513ec6c52caaa31ab3e7c886c0827a0', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '539a7713a22f64e9e4157dcd288ceca49910a449', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '5249f670969022167be8b11bff3ec8c75b4f0a5b', class: this.point.icon })), h("salla-badge", { key: 'e19decc72866ca36e3cc52c9822fc4677816bbda', size: "sm", bg: "light" }, h("span", { key: 'f2ed0ef699b63ce091c2b7dc5d30341bb0dcf713', innerHTML: SIGift }), h("span", { key: '54275a2ec227c9415e77f88051bbf4e36d10489e', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
185
- h("div", { key: '7b8d4168a96586efa2855f169536a0577750cabe', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '102274da4418a7119e65c6a5c44630315e348c98', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '9a87e3fcb31ab6a0b984fe3fd43b9b57678b4600', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
184
+ } }, this.point.description)), h("salla-modal", { key: '90d851469e4f1ce77c4f509bfecd96abb2425dda', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: '795d0984a4b7bca115500a9c3850cce6c6e6a7f0', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '0124a924ddde8516b6d27e9d9b36f44b14d5f13a', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '3ff4ec01ffe1e16ac53a170e04c8ca7b4c065d36', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'a56d5201a53a4e56bd5d04b51d1ce9a3151f0375', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '5b1b1ed27359d2f6b31a86a58ca8a7388f61b6e3', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'c73db6477ad88cc4b8467623fbf4a2d623b2f66f', class: this.point.icon })), h("salla-badge", { key: '432dde709ab1ea8d346104cee2e2d230fe9e5060', size: "sm", bg: "light" }, h("span", { key: '53134910bad559f02782092d47bfe56d4a56decb', innerHTML: SIGift }), h("span", { key: 'e374ac7a30fc529b4a32833dfa7af90f76ae4c34', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
185
+ h("div", { key: '885c021210ceb4c6410deb811515b58489db76fa', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '9d4a907cf6ab0fd59f85cbcfe111fd2dd1031cee', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '8653fe18c6fe5f4708d91159db40c54bc44deeda', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
186
186
  const stepsArray = Object.values(this.point.steps);
187
187
  const isLastItem = idx === stepsArray.length - 1;
188
188
  return (h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[step.key]), !isLastItem && h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", null, salla.lang.get(`pages.loyalty_program.step_${idx + 1}`))), h("p", { class: "s-loyalty-program-points-chain-description" }, step.title || step.name))));
189
- })))), this.getDetails(this.point), h("div", { key: '7c96d9b4014f2b531cf85f0f4dd9c797f6b4e352', class: "s-loyalty-program-points-modal-details" }, this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: '79a6d37b6af82a40b5b88f1a7e03034c3ac9fe90', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '6498d88e64af28621281b8c12b28c1a22473001d', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
189
+ })))), this.getDetails(this.point), h("div", { key: 'fed15aa3a7c7ecfe9818a87264e660c045d2658a', class: "s-loyalty-program-points-modal-details" }, this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: 'c4b5a24d78cf70dad65ea9b4d606c338bba7912e', class: "s-loyalty-program-points-modal-action" }, h("a", { key: 'f9718774e2fc3a1def69b8fa8d7ebfdfb9086197', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
190
190
  's-loyalty-program-points-action': true,
191
191
  's-loyalty-program-points-action-completed': this.point.is_completed,
192
192
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
@@ -0,0 +1,48 @@
1
+ @media (max-width: 639px) {
2
+ .s-loyalty-program-modal .s-modal-body {
3
+ position: relative !important;
4
+ left: unset !important;
5
+ bottom: unset !important;
6
+ max-height: 100dvh;
7
+ overflow-y: auto !important;
8
+ }
9
+ }
10
+ .s-loyalty-exchange-card salla-product-card .s-product-card-image,
11
+ .s-loyalty-exchange-card custom-salla-product-card .s-product-card-image {
12
+ flex: none;
13
+ aspect-ratio: 1;
14
+ overflow: hidden;
15
+ }
16
+ .s-loyalty-exchange-card-btn {
17
+ padding: 0 1.25rem 1.25rem;
18
+ margin-top: 0.75rem;
19
+ }
20
+
21
+ .s-loyalty-program-reward-details-products-grid {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ gap: 1rem;
25
+ margin-top: 0.75rem;
26
+ }
27
+ .s-loyalty-program-reward-details-products-grid > * {
28
+ flex: 1 1 100%;
29
+ min-width: 0;
30
+ touch-action: pan-y;
31
+ }
32
+ @media (min-width: 640px) {
33
+ .s-loyalty-program-reward-details-products-grid > * {
34
+ flex-basis: calc((100% - 1rem) / 2);
35
+ }
36
+ }
37
+ @media (min-width: 768px) {
38
+ .s-loyalty-program-reward-details-products-grid > * {
39
+ flex-basis: calc((100% - 2rem) / 3);
40
+ }
41
+ }
42
+ .s-loyalty-program-reward-details-products-grid > *:only-child {
43
+ max-width: 320px;
44
+ margin-inline: auto;
45
+ }
46
+ .s-loyalty-program-reward-details-products-grid:has(> *:nth-child(3)) > * {
47
+ flex-grow: 0;
48
+ }
@@ -34,6 +34,7 @@ export class SallaLoyaltyProgram {
34
34
  * prize to show in details or exchange modals
35
35
  */
36
36
  this.currentPrize = null;
37
+ this.currentProductId = null;
37
38
  /**
38
39
  * collapsed state of points list
39
40
  */
@@ -92,7 +93,7 @@ export class SallaLoyaltyProgram {
92
93
  }, onActionClick: () => {
93
94
  this.currentPrize = prize;
94
95
  closeModals(() => this.detailsModal.open());
95
- } })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize }))))));
96
+ } })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => { this.currentProductId = null; closeModals(() => this.exchangeModal.open()); }, onProductActionClick: (e) => { this.currentProductId = e.detail.productId; closeModals(() => this.exchangeModal.open()); }, prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize, productId: this.currentProductId }))))));
96
97
  }
97
98
  static get is() { return "salla-loyalty-program"; }
98
99
  static get originalStyleUrls() {
@@ -108,6 +109,7 @@ export class SallaLoyaltyProgram {
108
109
  static get states() {
109
110
  return {
110
111
  "currentPrize": {},
112
+ "currentProductId": {},
111
113
  "collapsed": {},
112
114
  "animatedPoints": {}
113
115
  };
@@ -31,10 +31,10 @@ export class SallaLoyaltyReward {
31
31
  };
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '46da4cdcfee8e04307722a89c94ab7c3d867aec4', class: {
34
+ return (h("div", { key: '0e3735d77de3b13948ba8cf473986185c52b9b1f', class: {
35
35
  's-loyalty-program-reward-container': true,
36
36
  's-loyalty-program-reward-xs': this.size === 'xs',
37
- } }, h("div", { key: '3d4d1b1adada717d2c248e1a2287b80b370accc8', onClick: this.handleActionArea, role: "button" }, h("div", { key: '2f699dcc9098adbbdec2ab1522bdb49977440663', class: "s-loyalty-program-reward-img" }, h("img", { key: '9fcc993f9f010ebd5663d02849714db897321357', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'd66d0be909c1f1c239a4aeb2152cd6f3850f25d4', class: "s-loyalty-program-reward-content" }, h("div", { key: '10968623d1fe8815a547e7b404f58b8401eed98b', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'd677e3be9ed036091f523b51d06d64635e1426d9', size: "xs" }, h("span", { key: '8b67c0112a61c5a9f224f308193dd933db6811df', innerHTML: SIGift }), h("span", { key: '0b53d61ca1b07318a19d00c5948045385be2c877', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '5c88b91c602ddb8d81bd2537ebe32afaa13dabd7', class: "s-loyalty-program-reward-title" }, h("span", { key: '9f070612c7b381cdfc11cb794a29dd3d4fad78e3' }, this.group)), h("div", { key: 'd2ed88971fb88f4c857970a15b08b87681225ad4', class: "s-loyalty-program-reward-name" }, h("div", { key: '0818181909194a5a9d7bd8b0b0f421ee1c33cac9', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '61a792efce0cb44e5d676a2d10fbf466fdc9926a', class: "p-4" }, h("button", { key: 'b2f469e2206892914e14e542fc9acf6ccc289f59', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
37
+ } }, h("div", { key: '3988af25528bed3ff027405a1b84a4ded0b4fce8', onClick: this.handleActionArea, role: "button" }, h("div", { key: '3b6c3b7a35aa41a792f5ac05ff58f904ff850194', class: "s-loyalty-program-reward-img" }, h("img", { key: '2c8b14fcfd5b8db52c82033cdc797cc819e117eb', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'a0c7699c3a84adac9040ed2132e631795b041784', class: "s-loyalty-program-reward-content" }, h("div", { key: '5072ad6dae99ea1dec7bb4eef97a7c4fcca4f554', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '8e75004f0ac06e6ff29f5f5dc0fa0915392078bc', size: "xs" }, h("span", { key: 'eda3bd13b60467b5c3b6342ea1688e880913aaf4', innerHTML: SIGift }), h("span", { key: '3be615346ec1d55f312fd22d6a324366a181abdf', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '611821580eb3216ad71b22634bdb40eec78adabf', class: "s-loyalty-program-reward-title" }, h("span", { key: 'dfa2d90b84aad0fd83e7add9bfdf72e26b14751b' }, this.group)), h("div", { key: '0401936cd2f3fd7d534ebe8ffe69ccb4149f38a4', class: "s-loyalty-program-reward-name" }, h("div", { key: '3275b7e29eec246fb9b7983c4160338613e31c13', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '4051723d3c48dd0c967b28d231f8a4dc09530a8f', class: "p-4" }, h("button", { key: 'e74ea5eb83e50f3be56e75904c5a961b63b2445d', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
38
38
  's-loyalty-program-rewards-action-base': true,
39
39
  's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
40
40
  's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
@@ -26,10 +26,7 @@ export class SallaRewardAction {
26
26
  if (!this.isClickable(this.prize)) {
27
27
  return null;
28
28
  }
29
- return (h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
30
- 's-loyalty-program-rewards-action-base': true,
31
- 's-loyalty-program-rewards-action-on': true,
32
- } }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
29
+ return (h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("salla-button", { fill: "outline", color: "light", class: "s-loyalty-program-rewards-action-base", onClick: () => closeModals() }, salla.lang.get('common.elements.cancel'))) : (h("button", { onClick: this.handleClick, class: {
33
30
  's-loyalty-program-rewards-action-base': true,
34
31
  's-loyalty-program-rewards-action-on': true,
35
32
  } }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
@@ -5,7 +5,7 @@ import { h, Host } from "@stencil/core";
5
5
  import SIGift from "../../assets/svg/gift.svg";
6
6
  export class SallaRewardCard {
7
7
  render() {
8
- return (h(Host, { key: 'b27c707b6ac03d037d2f019131a654bcda65dd6e', class: "s-loyalty-program-reward-host" }, h("div", { key: '9606c3ad2ea7ead1f4ab2db8e148a90d43c69902', class: "s-loyalty-program-reward-container" }, h("div", { key: 'f7b6f60847b86dbb6f2b05209ab2db8eabbbd931', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: '6cd912d2c6b5c2b12ab5b4ba431ca0c965d0518b', class: "s-loyalty-program-reward-img" }, h("img", { key: 'b4f844fe1064b8ca6f5666765d92a7924fe2ad74', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: 'fd61d1ff64f2097fe2f696dacbb57f6c84db5339', class: "s-loyalty-program-reward-content" }, h("div", { key: 'fa1d404d5b02fe0027cef018f2eeb6e0bd109c2c', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '29dad65f9b1f41a1698da49d113a0f9b0086210e', size: "xs" }, h("span", { key: '99526fabe82feef8ef777bfbcde868399c44e2db', innerHTML: SIGift }), h("span", { key: '94a3ed106aad1b14438227d8914695b1a18e8f64', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '1e8e12541bfd7acd303f89008f2e48c9f183c83a', class: "s-loyalty-program-reward-title" }, h("span", { key: '746377627b01443a712a52f1016c29b41eaa1ad5' }, this.prize.group_title)), h("div", { key: '1f09736c18b0be21b67e1713a44f94722bbdb09d', class: "s-loyalty-program-reward-name" }, h("div", { key: '18c26f3fe19b4e6ff28bda4d18cdb253f795792b', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: '7a814db57ae3bfad6aaba12cdab17b0e900e9080', class: "p-4" }, h("slot", { key: '0ce627f221262d54f4cda4d1a50cb2d1a6197d06', name: "action" }, h("button", { key: '10f0e39d0ecc79d84674efb0a7389430da979160', 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')))))));
8
+ return (h(Host, { key: '9b1eecb431ab26fc6bfbd89d511294a230dd2aa9', class: "s-loyalty-program-reward-host" }, h("div", { key: '0793104978291566c136eb0e5b841224f97f25b6', class: "s-loyalty-program-reward-container" }, h("div", { key: 'f4572e5480d51f041af3e3b95bdfcc3a952c395e', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: 'ba3e6d1583219bfba80903d8b45a02c6f862efd2', class: "s-loyalty-program-reward-img" }, h("img", { key: '36e26b8fcf8d2f094b0ab990ad96c3722e23d4fd', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: 'b7f042b124044e8ca7eee15341d08ef175013b18', class: "s-loyalty-program-reward-content" }, h("div", { key: 'd3274d9bf3f53dfdc87e4f11cddd2abae5288333', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '4db76994541536d16e11a7e34bce9e06ce9aff4b', size: "xs" }, h("span", { key: 'a565b786c683bc5b076036c81494137ccaef0c18', innerHTML: SIGift }), h("span", { key: '481a4016c7ccea49a860df2a7b3a322302a2e5ad', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '5820431c80d0eee99da2592ef29685710b73a048', class: "s-loyalty-program-reward-title" }, h("span", { key: '82b99ec1244890b19930686c228ca56ecee7191b' }, this.prize.group_title)), h("div", { key: '08bc6a5f88365c23e07a20b858b4cda5430eb363', class: "s-loyalty-program-reward-name" }, h("div", { key: 'dd4ce5ed0097a746b91c74cdab38ca557c55194d', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: 'ae7cd30ae6794f0957db6cfca3a69403b5996183', class: "p-4" }, h("slot", { key: '41a4cce4cb28d91d038754f69ea42b25fda6427a', name: "action" }, h("button", { key: '353da11c1197ed3dafd85282cd3343c21f55c80b', 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')))))));
9
9
  }
10
10
  static get is() { return "salla-reward-card"; }
11
11
  static get originalStyleUrls() {
@@ -22,9 +22,14 @@ const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
22
22
  export class SallaRewardDetails {
23
23
  constructor() {
24
24
  this.refreshKey = Date.now();
25
+ this.includedProductsData = [];
26
+ }
27
+ handleProductExchange(e) {
28
+ this.productActionClick.emit({ productId: e.detail.productId });
25
29
  }
26
30
  handlePrizeChange() {
27
31
  this.refreshKey = Date.now();
32
+ this.fetchIncludedProducts();
28
33
  }
29
34
  componentWillLoad() {
30
35
  if (this.category.status === 'idle') {
@@ -33,6 +38,23 @@ export class SallaRewardDetails {
33
38
  if (this.brand.status === 'idle') {
34
39
  this.brand();
35
40
  }
41
+ this.fetchIncludedProducts();
42
+ }
43
+ async fetchIncludedProducts() {
44
+ this.includedProductsData = [];
45
+ const ids = this.prize?.included_product_ids;
46
+ if (!ids?.length)
47
+ return;
48
+ const requestedPrize = this.prize;
49
+ try {
50
+ const response = await salla.api.withoutNotifier(() => salla.product.api.fetch({ source: 'selected', source_value: ids }));
51
+ if (this.prize === requestedPrize) {
52
+ this.includedProductsData = response.data || [];
53
+ }
54
+ }
55
+ catch {
56
+ this.includedProductsData = [];
57
+ }
36
58
  }
37
59
  getTermsAndConditions() {
38
60
  const minimumAmount = Number((this.prize.order_minimum_amount || '0').split('.')[0]) || 0;
@@ -111,23 +133,29 @@ export class SallaRewardDetails {
111
133
  getProductsJsx(items, title) {
112
134
  return !items?.length ? '' : h("div", { class: "s-loyalty-program-reward-details-items-products s-loyalty-program-slider-arrows-edges" }, h("h2", null, title), h("salla-products-slider", { source: "selected", sourceValue: JSON.stringify(items), "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":0,"breakpoints":{"768":{"slidesPerView":3,"freeMode":false,"speed":300}}}' }));
113
135
  }
136
+ getIncludedProductsJsx(title) {
137
+ const products = this.includedProductsData;
138
+ if (!products?.length)
139
+ return '';
140
+ return (h("div", { class: c('reward-details-items-products') }, h("h2", null, title), h("div", { class: c('reward-details-products-grid') }, products.map(product => h("salla-loyalty-exchange-product-card", { product: product })))));
141
+ }
114
142
  render() {
115
143
  const termsAndConditions = this.getTermsAndConditions();
116
- return (h("div", { key: 'b448be9380e1b0226e0e1bf4f2383190769de152', class: "s-loyalty-program-reward-modal" }, h("div", { key: '16087a27ea5cef2738f07745ac2b830ea07ab4ce', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'f03dde8a72339ce561298cf27b524f9a69a1fd3c', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
144
+ return (h("div", { key: 'e75387a83bdf558f087bfda4f8c7db15bf97ac5d', class: "s-loyalty-program-reward-modal" }, h("div", { key: '89caf02d9b28996177b5bc23a711986ad9da9208', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '455d0a2e6f5c08dbbdf063c1f243e7e041deb788', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
117
145
  : h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
118
146
  'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
119
147
  'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
120
- } })), this.prize.name)), h("div", { key: '94e4c042eda800d4127e98af05399aefd8cf162c', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '5e847cbfd2aefe88baaddd991ac9a3c9d5be4318', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '67fa2b255a10ada08cd780f204d8bc958b2562df', class: "s-loyalty-program-aspect-container" }, h("img", { key: '06298fbe666f161ace6f8bd70ead43ff4647f912', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '2d5fb82811dfced1eb558baa01ddb83bf8271312', size: "sm", bg: "light" }, h("span", { key: 'bb9d7cf72ea6bc88eaed97e62465c85b3628de0d', innerHTML: SIGift }), h("span", { key: '87bd5622040b555ab70de43ffb7a6fa06cb4b45a', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: '8b9ae2745e2134b41c8bc1c9bce8bc449774fd48', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: 'd5e6f1f591a09144d9d15bf32457ca22f8438b82', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '00c63a4b0dafecd45141b2627f3cf00df9b77e83', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
148
+ } })), this.prize.name)), h("div", { key: '1e65d03e52071802ec396cc4838bdaf135303494', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'f6869249b21464296725644acd9a593fb6c5ea30', class: "s-loyalty-program-reward-details-header" }, h("div", { key: 'c93dfe4c362421f7f7d5938a86d043e6ee0f2369', class: "s-loyalty-program-aspect-container" }, h("img", { key: '0c86bde982fd627939e47b9cf1eed02285a041f1', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '2be3695ee888ef65e0fec106e4b7845abc25491b', size: "sm", bg: "light" }, h("span", { key: '193ce34305780ecc2fd78d4e2d8572da06a0ebda', innerHTML: SIGift }), h("span", { key: 'aee708c7b484afa29392fe25768ae48051c8b211', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'add5d8a427511f9554f5d13a88bc5a4994021477', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '723dd37428176057e6d9e315e2a29528df9b8b1f', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: 'ef1d7ea6af657ff4810c257d378aac35c106de66', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
121
149
  h("salla-tab-header", { slot: "header", name: "included", style: {
122
150
  display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
123
151
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICheck }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
124
- h("salla-tab-content", { slot: "content", name: "included" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.categories, this.prize.included_category_ids), salla.lang.get('pages.loyalty_program.included_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.brands, this.prize.included_brand_ids), salla.lang.get('pages.loyalty_program.included_brands')), this.getProductsJsx(this.getProductIds(this.prize.included_product_ids), salla.lang.get('pages.loyalty_program.included_products')))),
152
+ h("salla-tab-content", { slot: "content", name: "included" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.categories, this.prize.included_category_ids), salla.lang.get('pages.loyalty_program.included_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.brands, this.prize.included_brand_ids), salla.lang.get('pages.loyalty_program.included_brands')), this.getIncludedProductsJsx(salla.lang.get('pages.loyalty_program.included_products')))),
125
153
  ], this.getItemsMarkers('excluded') === '000' ? '' : [
126
154
  h("salla-tab-header", { slot: "header", name: "excluded", style: {
127
155
  display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
128
156
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
129
157
  h("salla-tab-content", { slot: "content", name: "excluded" }, 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')))),
130
- ]))), h("salla-reward-action", { key: 'd4ccecb2463fd6c06957f40e7865b1d12158b4bd', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
158
+ ]))), h("salla-reward-action", { key: 'd1a0304c5229958d4a135affae27bb62c7419cd8', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
131
159
  }
132
160
  static get is() { return "salla-reward-details"; }
133
161
  static get originalStyleUrls() {
@@ -170,7 +198,8 @@ export class SallaRewardDetails {
170
198
  }
171
199
  static get states() {
172
200
  return {
173
- "refreshKey": {}
201
+ "refreshKey": {},
202
+ "includedProductsData": {}
174
203
  };
175
204
  }
176
205
  static get events() {
@@ -194,6 +223,21 @@ export class SallaRewardDetails {
194
223
  }
195
224
  }
196
225
  }
226
+ }, {
227
+ "method": "productActionClick",
228
+ "name": "productActionClick",
229
+ "bubbles": true,
230
+ "cancelable": true,
231
+ "composed": true,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ },
236
+ "complexType": {
237
+ "original": "{ productId: number }",
238
+ "resolved": "{ productId: number; }",
239
+ "references": {}
240
+ }
197
241
  }];
198
242
  }
199
243
  static get watchers() {
@@ -202,6 +246,15 @@ export class SallaRewardDetails {
202
246
  "methodName": "handlePrizeChange"
203
247
  }];
204
248
  }
249
+ static get listeners() {
250
+ return [{
251
+ "name": "loyaltyProductExchange",
252
+ "method": "handleProductExchange",
253
+ "target": undefined,
254
+ "capture": false,
255
+ "passive": false
256
+ }];
257
+ }
205
258
  }
206
259
  __decorate([
207
260
  TrackedPromise(async () => {
@@ -43,11 +43,7 @@ export class SallaRewardExchange {
43
43
  this.reset(0);
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: 'b1e4fe9368655f389e403b2676191b46f71d49b7' }, h("div", { key: '19b8bbffa591f22608d56e8e932d7f013f6cd868', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '290214db26895ba481de364299afd115b3a501cc', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'd59c1b1f7683db554856950b6ec919bb48c402dd', innerHTML: SIGift })), h("h2", { key: '51a4abff2e593279cc5c9ce9dd47f7ed05533325' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '8a16577bce81552878cdcae4e60ce8e8719b3ed0' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: 'c05bdc04cbac8dc530c49bb49eca6119d2653b63' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: 'ce3e88fde9f2434cabf75f7a3f622da539b5d310' }, "(", this.prize.name, ")"))), h("div", { key: 'ac51de5c34119eb79c1a8c2d06c201e4da3d7a0d', class: "s-loyalty-program-exchange-btns" }, h("button", { key: '9386b4a3d43a05fe9141561c7421b2b23ddb5a1e', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: '88d7658b7715932ff8200f79de5dd8864b00db15', style: {
47
- opacity: this.exchange.status !== 'pending' ? '1' : '0',
48
- } }, salla.lang.get('common.elements.confirm')), h("span", { key: '80c30140959693b3d98dc2162e45d4089e81eb6b', class: "s-loyalty-program-exchange-loading", style: {
49
- opacity: this.exchange.status === 'pending' ? '1' : '0',
50
- } }, h("salla-loading", { key: '516e36b4271d8da0ad711732aa991a45633edea5', color: "primary", size: 24 }))), h("button", { key: '4642c008c656a662bd277829ef80db37cffa0b1a', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
46
+ return (h(Host, { key: '12288db4227af2c833b80a0a4b4df9192c56a9f4' }, h("div", { key: '0bb5b3037fb091e9f4b96e709ad6df3f97b7d7af', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '5161c1961bd08e626e33780cf01efe5000d8e939', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '83429d754f37b2112ba2201b54a51349a98947df', innerHTML: SIGift })), h("h2", { key: '0437972cf3b853271042de844cb70bc49dd04abf' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '14c0dbd4b29d73082ee71703c0a794447f9ee40e' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '9128f2c88f20536ca5ddae84b2160024bb8b2fe9' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: 'e323f1dbb02caf7e385ac68d3cb74b84a5e062da' }, "(", this.prize.name, ")"))), h("div", { key: 'e5895bd3e62bacf86077fe85932e85f4a313e9f6', class: "s-loyalty-program-exchange-btns" }, h("salla-button", { key: 'df88cc68a2a265fc5a0e9a84be7159d028cc22a9', width: "wide", loading: this.exchange.status === 'pending', onClick: () => this.handleConfirm() }, salla.lang.get('common.elements.confirm')), h("salla-button", { key: 'a99305e2bcde52b63da0b1102f3bd626d256ebbf', width: "wide", fill: "outline", color: "danger", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
51
47
  }
52
48
  static get is() { return "salla-reward-exchange"; }
53
49
  static get originalStyleUrls() {
@@ -28,6 +28,7 @@ export class SallaRatingModalV2 {
28
28
  this.editItem = null;
29
29
  this.allowAttachImages = false;
30
30
  this.allowContactSupport = false;
31
+ this.loyaltyImageRatingPoints = 0;
31
32
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
32
33
  this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
33
34
  this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
@@ -42,6 +43,9 @@ export class SallaRatingModalV2 {
42
43
  this.contactUsLabel = salla.lang.get('blocks.footer.social');
43
44
  this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
44
45
  this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
46
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
47
+ points: ':points',
48
+ });
45
49
  this.contentRefs = [];
46
50
  this.hiddenInputs = [];
47
51
  this.userFilledFactorKeys = {};
@@ -89,6 +93,8 @@ export class SallaRatingModalV2 {
89
93
  await setNestedAsync('en.trans', 'pages.rating.rate_required_factors', 'Please rate all required factors to complete your review.');
90
94
  await setNestedAsync('ar.trans', 'pages.rating.overall_product_rating', 'التقييم العام للمنتج');
91
95
  await setNestedAsync('en.trans', 'pages.rating.overall_product_rating', 'Overall product rating');
96
+ await setNestedAsync('ar.trans', 'pages.rating.loyalty_points_for_images', 'اكسب :points نقطة ولاء عند إضافة صور لتقييمك!');
97
+ await setNestedAsync('en.trans', 'pages.rating.loyalty_points_for_images', 'Earn :points loyalty points when adding photos to your review!');
92
98
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
93
99
  this.allowedImagesTypesLabel = salla.lang.get('common.uploader.allowed_images_types');
94
100
  this.threeImagesMax = salla.lang.get('common.uploader.max_three_images');
@@ -102,6 +108,9 @@ export class SallaRatingModalV2 {
102
108
  this.confirmDeleteBtn = salla.lang.get('common.elements.confirm_delete');
103
109
  this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
104
110
  this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
111
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
112
+ points: ':points',
113
+ });
105
114
  this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_body', { store, id, customer });
106
115
  };
107
116
  setTranslations();
@@ -269,6 +278,7 @@ export class SallaRatingModalV2 {
269
278
  this.order = res.data;
270
279
  this.productReviewFactors = await this.fetchAllProductReviewFactors(res.data);
271
280
  }))
281
+ .then(() => this.readyUpLoyaltyPoints())
272
282
  .then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
273
283
  .then(() => {
274
284
  // Initialize productImages for all products
@@ -299,6 +309,7 @@ export class SallaRatingModalV2 {
299
309
  this.editFeedbackId = params.feedback_id;
300
310
  try {
301
311
  await this.fetchEditItem(params.feedback_id);
312
+ await this.readyUpLoyaltyPoints();
302
313
  if (this.editType === 'product' && this.editItem?.product?.id) {
303
314
  await this.loadCustomerOrderForEdit();
304
315
  await this.ensureProductFactorsLoaded(this.editItem.product.id);
@@ -625,6 +636,24 @@ export class SallaRatingModalV2 {
625
636
  let lasName = salla.config.get('user.last_name') || salla.storage.get('user.last_name') || '';
626
637
  return `${firstName} ${lasName}`;
627
638
  }
639
+ async readyUpLoyaltyPoints() {
640
+ const featureEnabled = salla.loyalty?.isFeatureEnabled?.();
641
+ if (!featureEnabled) {
642
+ this.loyaltyImageRatingPoints = 0;
643
+ return;
644
+ }
645
+ const rating_product_points = salla.config.get('store.settings.rating.rating_product_points') || 0;
646
+ const rating_product_with_image_points = salla.config.get('store.settings.rating.rating_product_with_image_points') || 0;
647
+ this.loyaltyImageRatingPoints =
648
+ Number(rating_product_with_image_points) + Number(rating_product_points);
649
+ }
650
+ loyaltyPointsNote() {
651
+ if (!this.loyaltyImageRatingPoints || !this.loyaltyPointsForImagesLabel) {
652
+ return null;
653
+ }
654
+ const svgIcon = (h("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10 0C13.6819 0 16.6667 2.98477 16.6667 6.66664C16.6667 9.37047 15.057 11.6984 12.7437 12.7444C11.6978 15.0575 9.3701 16.6666 6.66668 16.6666C2.98477 16.6666 0 13.6819 0 9.99998C0 7.29656 1.60918 4.96894 3.92195 3.92276C4.96827 1.60964 7.29618 0 10 0ZM6.66668 5C3.90524 5 1.66667 7.23856 1.66667 9.99998C1.66667 12.7614 3.90524 15 6.66668 15C9.4281 15 11.6667 12.7614 11.6667 9.99998C11.6667 7.23856 9.4281 5 6.66668 5ZM7.50002 5.83333V6.66664H9.16668V8.33331H5.83333C5.60322 8.33331 5.41667 8.51989 5.41667 8.74998C5.41667 8.95456 5.56407 9.12464 5.75844 9.15998L5.83333 9.16664H7.50002C8.6506 9.16664 9.58335 10.0994 9.58335 11.25C9.58335 12.4006 8.6506 13.3333 7.50002 13.3333V14.1666H5.83333V13.3333H4.16667V11.6666H7.50002C7.7301 11.6666 7.91668 11.4801 7.91668 11.25C7.91668 11.0455 7.76927 10.8753 7.57493 10.8401L7.50002 10.8333H5.83333C4.68274 10.8333 3.75 9.90056 3.75 8.74998C3.75 7.59939 4.68274 6.66664 5.83333 6.66664V5.83333H7.50002ZM10 1.66667C8.51377 1.66667 7.17893 2.31513 6.26313 3.34457C6.39704 3.33736 6.53138 3.33333 6.66668 3.33333C10.3486 3.33333 13.3333 6.3181 13.3333 9.99998C13.3333 10.1356 13.3293 10.2702 13.3213 10.4037C14.3513 9.48814 15 8.15314 15 6.66664C15 3.90524 12.7614 1.66667 10 1.66667Z", fill: "#008C56" })));
655
+ return (h("div", { class: "s-rating-modal-loyalty-points-note-container" }, h("span", { class: "s-rating-modal-loyalty-points-note-icon" }, svgIcon), h("p", { class: "s-rating-modal-loyalty-points-note-text" }, this.loyaltyPointsForImagesLabel.replace(':points', String(this.loyaltyImageRatingPoints)))));
656
+ }
628
657
  normalizeReviewFactorsPayload(payload) {
629
658
  const data = payload?.data ?? payload?.factors;
630
659
  if (!Array.isArray(data)) {
@@ -903,7 +932,7 @@ export class SallaRatingModalV2 {
903
932
  }, {});
904
933
  }
905
934
  renderProductStep(item, index) {
906
- return (h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), h("input", { type: "hidden", name: "product_id", value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: e => {
935
+ return (h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), h("input", { type: "hidden", name: "product_id", value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: e => {
907
936
  this.productImages = {
908
937
  ...this.productImages,
909
938
  [item.product.id]: [...(this.productImages[item.product.id] || []), e.detail],
@@ -979,6 +1008,7 @@ export class SallaRatingModalV2 {
979
1008
  this.currentIndex = 0;
980
1009
  this.submitted = [];
981
1010
  this.scheduleWizardSetup = false;
1011
+ this.loyaltyImageRatingPoints = 0;
982
1012
  }
983
1013
  getDeleteModal() {
984
1014
  return (h("salla-modal", { ref: modal => (this.deleteModal = modal), width: "xs", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-delete-wrapper", ref: el => (this.body = el) }, h("h3", null, this.confirmDeletionLabel), h("p", null, this.areYouSureLabel), h("div", { class: "s-rating-modal-delete-actions" }, h("salla-button", { loaderPosition: "center", onClick: () => this.deleteReview() }, this.confirmDeleteBtn), h("salla-button", { color: "danger", fill: "outline", onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
@@ -994,7 +1024,7 @@ export class SallaRatingModalV2 {
994
1024
  })));
995
1025
  }
996
1026
  getEditModal() {
997
- return (h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => (this.currentTab = currentTab) }, this.editItem.shipping.logo ? (h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast })), h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
1027
+ return (h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => (this.currentTab = currentTab) }, this.editItem.shipping.logo ? (h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast })), h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
998
1028
  fieldPrefix: '',
999
1029
  mainRating: this.editMainRating ?? Number(this.editItem.stars ?? this.editItem.rating),
1000
1030
  factorRatings: this.editFactorRatings,
@@ -1104,7 +1134,8 @@ export class SallaRatingModalV2 {
1104
1134
  "deleteFeedbackId": {},
1105
1135
  "editItem": {},
1106
1136
  "allowAttachImages": {},
1107
- "allowContactSupport": {}
1137
+ "allowContactSupport": {},
1138
+ "loyaltyImageRatingPoints": {}
1108
1139
  };
1109
1140
  }
1110
1141
  static get methods() {
@@ -26,6 +26,38 @@
26
26
  .s-rating-modal-stars-product {
27
27
  margin-top: 0.5rem;
28
28
  }
29
+ .s-rating-modal-loyalty-points-note-container {
30
+ display: flex;
31
+ align-items: center;
32
+ gap: 0.625rem;
33
+ width: 100%;
34
+ margin-top: 1.5rem;
35
+ margin-bottom: 0.75rem;
36
+ padding: 0.75rem;
37
+ border-radius: 0.5rem;
38
+ background-color: #E6F4EA;
39
+ }
40
+ .s-rating-modal-loyalty-points-note-icon {
41
+ display: flex;
42
+ flex-shrink: 0;
43
+ align-items: center;
44
+ justify-content: center;
45
+ width: 1.25rem;
46
+ height: 1.25rem;
47
+ color: #1B7F5C;
48
+ }
49
+ .s-rating-modal-loyalty-points-note-icon svg {
50
+ width: 1.5rem;
51
+ height: 1.5rem;
52
+ fill: currentColor;
53
+ }
54
+ .s-rating-modal-loyalty-points-note-text {
55
+ flex: 1;
56
+ margin: 0;
57
+ font-size: 0.875rem;
58
+ line-height: 1.25rem;
59
+ color: #1f2937;
60
+ }
29
61
  .s-rating-modal-product-details-main {
30
62
  display: flex;
31
63
  align-items: center;