@salla.sa/twilight-components 2.14.494 → 2.14.496

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 (336) hide show
  1. package/dist/cjs/{filepond-plugin-file-poster-DPW9mW_l.js → filepond-plugin-file-poster-C6xhv1DQ.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-validate-size-CK2KIHil.js → filepond-plugin-file-validate-size-CigA_BnT.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-type-CPvzHnlO.js → filepond-plugin-file-validate-type-BtH2tLUy.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-image-edit-DfYj0utx.js → filepond-plugin-image-edit-CznwvNr8.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-exif-orientation-BPH4xTYe.js → filepond-plugin-image-exif-orientation-DGO2ZOza.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-preview-BbB7wI4M.js → filepond-plugin-image-preview-CV576sdr.js} +1 -1
  7. package/dist/cjs/{filepond-CYww4tEC.js → filepond-zQshInIB.js} +1 -1
  8. package/dist/cjs/{functions-C3W0O3Qh.js → functions-DA2d2rbh.js} +1 -1
  9. package/dist/cjs/{index-CQRzEmek.js → index-DWIYwou4.js} +1 -1
  10. package/dist/cjs/{index-BQKhP5JS.js → index-XRHN1V13.js} +2 -2
  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_2.cjs.entry.js +1 -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 +2 -2
  46. package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  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 +3 -3
  53. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  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-product-card_2.cjs.entry.js +1 -1
  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-DYGNjn0V.js → tracked-promise-DQs6ZNFr.js} +1 -1
  106. package/dist/cjs/twilight.cjs.js +2 -2
  107. package/dist/cjs/{vanilla-picker-CVraU_Ic.js → vanilla-picker-BRlIU_Uz.js} +1 -1
  108. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +34 -3
  109. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +32 -0
  110. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -7
  111. package/dist/components/index.js +2 -2
  112. package/dist/components/salla-rating-modal-v22.js +34 -3
  113. package/dist/components/salla-rating-modal.js +34 -8
  114. package/dist/esm/{filepond-V-9YwoVf.js → filepond-Dkn7TEZc.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-poster-BBE8fAHq.js → filepond-plugin-file-poster-C0cYQPqD.js} +1 -1
  116. package/dist/esm/{filepond-plugin-file-validate-size-CR9iK259.js → filepond-plugin-file-validate-size-SWVDxAPk.js} +1 -1
  117. package/dist/esm/{filepond-plugin-file-validate-type-B4eStrHv.js → filepond-plugin-file-validate-type-DuGTzF6-.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-edit-B84jjo8b.js → filepond-plugin-image-edit-D-5BNiOn.js} +1 -1
  119. package/dist/esm/{filepond-plugin-image-exif-orientation-BAaD5wJD.js → filepond-plugin-image-exif-orientation-CCk-WK1A.js} +1 -1
  120. package/dist/esm/{filepond-plugin-image-preview-Bn4GgIpr.js → filepond-plugin-image-preview-DocF0WfI.js} +1 -1
  121. package/dist/esm/{functions-Btrtoght.js → functions-I2-piBEL.js} +1 -1
  122. package/dist/esm/{index-3omad4sF.js → index-DN92uBcr.js} +2 -2
  123. package/dist/esm/{index-Co4ZrgLC.js → index-GAuhzXCO.js} +1 -1
  124. package/dist/esm/loader.js +3 -3
  125. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  126. package/dist/esm/salla-accordion_6.entry.js +1 -1
  127. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  128. package/dist/esm/salla-advertisement.entry.js +1 -1
  129. package/dist/esm/salla-alert_2.entry.js +1 -1
  130. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  131. package/dist/esm/salla-apps-icons.entry.js +1 -1
  132. package/dist/esm/salla-badge.entry.js +1 -1
  133. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  134. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  135. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  136. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  137. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  138. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  139. package/dist/esm/salla-comment-factors.entry.js +1 -1
  140. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  141. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  142. package/dist/esm/salla-contacts.entry.js +1 -1
  143. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  144. package/dist/esm/salla-count-down_2.entry.js +1 -1
  145. package/dist/esm/salla-custom-fields.entry.js +1 -1
  146. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  147. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  148. package/dist/esm/salla-filters-widget.entry.js +1 -1
  149. package/dist/esm/salla-filters.entry.js +1 -1
  150. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  151. package/dist/esm/salla-gifting.entry.js +1 -1
  152. package/dist/esm/salla-hook.entry.js +1 -1
  153. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  154. package/dist/esm/salla-installment.entry.js +1 -1
  155. package/dist/esm/salla-list-tile.entry.js +1 -1
  156. package/dist/esm/salla-localization-modal.entry.js +1 -1
  157. package/dist/esm/salla-login-modal.entry.js +1 -1
  158. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  159. package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
  160. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  161. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  162. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  163. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  164. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  165. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  166. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  167. package/dist/esm/salla-loyalty.entry.js +1 -1
  168. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  169. package/dist/esm/salla-map_2.entry.js +1 -1
  170. package/dist/esm/salla-menu.entry.js +1 -1
  171. package/dist/esm/salla-metadata.entry.js +1 -1
  172. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  173. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  174. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  175. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  176. package/dist/esm/salla-notification-item.entry.js +1 -1
  177. package/dist/esm/salla-notifications.entry.js +1 -1
  178. package/dist/esm/salla-offer-modal.entry.js +1 -1
  179. package/dist/esm/salla-offer.entry.js +1 -1
  180. package/dist/esm/salla-order-branch.entry.js +1 -1
  181. package/dist/esm/salla-order-cancel.entry.js +1 -1
  182. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  183. package/dist/esm/salla-order-details-options.entry.js +1 -1
  184. package/dist/esm/salla-order-details.entry.js +1 -1
  185. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  186. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  187. package/dist/esm/salla-order-edit.entry.js +1 -1
  188. package/dist/esm/salla-order-summary.entry.js +1 -1
  189. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  190. package/dist/esm/salla-orders.entry.js +1 -1
  191. package/dist/esm/salla-payments.entry.js +1 -1
  192. package/dist/esm/salla-placeholder.entry.js +1 -1
  193. package/dist/esm/salla-price-range.entry.js +1 -1
  194. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  195. package/dist/esm/salla-product-card_2.entry.js +1 -1
  196. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  197. package/dist/esm/salla-products-list.entry.js +1 -1
  198. package/dist/esm/salla-quick-order.entry.js +1 -1
  199. package/dist/esm/salla-rating-modal-v2.entry.js +34 -4
  200. package/dist/esm/salla-rating-modal.entry.js +34 -9
  201. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  202. package/dist/esm/salla-scopes.entry.js +1 -1
  203. package/dist/esm/salla-search.entry.js +1 -1
  204. package/dist/esm/salla-skeleton.entry.js +1 -1
  205. package/dist/esm/salla-slider.entry.js +1 -1
  206. package/dist/esm/salla-social-share.entry.js +1 -1
  207. package/dist/esm/salla-social.entry.js +1 -1
  208. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  209. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  210. package/dist/esm/salla-tooltip.entry.js +1 -1
  211. package/dist/esm/salla-trust-badges.entry.js +1 -1
  212. package/dist/esm/salla-user-menu.entry.js +1 -1
  213. package/dist/esm/salla-user-profile.entry.js +1 -1
  214. package/dist/esm/salla-user-settings.entry.js +1 -1
  215. package/dist/esm/salla-verify.entry.js +1 -1
  216. package/dist/esm/salla-wallet.entry.js +1 -1
  217. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  218. package/dist/esm/{tracked-promise-BPB6hr9g.js → tracked-promise-CgZs2nmS.js} +1 -1
  219. package/dist/esm/twilight.js +3 -3
  220. package/dist/esm/{vanilla-picker-CN8ge6Yh.js → vanilla-picker-5bosfbxK.js} +1 -1
  221. package/dist/twilight/{p-5acaee73.entry.js → p-044c2cd8.entry.js} +1 -1
  222. package/dist/twilight/{p-59cf3d1c.entry.js → p-047c559e.entry.js} +1 -1
  223. package/dist/twilight/{p-52556f85.entry.js → p-04ef12b8.entry.js} +1 -1
  224. package/dist/twilight/{p-3e01a221.entry.js → p-0635695d.entry.js} +1 -1
  225. package/dist/twilight/{p-d9685d52.entry.js → p-06781253.entry.js} +1 -1
  226. package/dist/twilight/{p-d30dc29a.entry.js → p-06a82570.entry.js} +1 -1
  227. package/dist/twilight/{p-927448a3.entry.js → p-07b0176a.entry.js} +1 -1
  228. package/dist/twilight/{p-df605d75.entry.js → p-091a9441.entry.js} +1 -1
  229. package/dist/twilight/{p-0838e0cc.entry.js → p-0ba109d0.entry.js} +1 -1
  230. package/dist/twilight/{p-185a97f2.entry.js → p-0bef0c0b.entry.js} +1 -1
  231. package/dist/twilight/{p-07feb752.entry.js → p-0e1037e4.entry.js} +1 -1
  232. package/dist/twilight/{p-fb94ea64.entry.js → p-11ea8515.entry.js} +1 -1
  233. package/dist/twilight/{p-783d1a70.entry.js → p-134e5c8a.entry.js} +1 -1
  234. package/dist/twilight/{p-7bb21315.entry.js → p-18320f76.entry.js} +1 -1
  235. package/dist/twilight/{p-e03e1c15.entry.js → p-196bdb70.entry.js} +1 -1
  236. package/dist/twilight/{p-30b7deca.entry.js → p-1d2f111c.entry.js} +1 -1
  237. package/dist/twilight/{p-ef15918c.entry.js → p-20c7d30c.entry.js} +1 -1
  238. package/dist/twilight/{p-9a862593.entry.js → p-217266de.entry.js} +1 -1
  239. package/dist/twilight/{p-f2ba00a7.entry.js → p-29633b82.entry.js} +1 -1
  240. package/dist/twilight/{p-7bb28f60.entry.js → p-2a22b469.entry.js} +1 -1
  241. package/dist/twilight/{p-82b38a08.entry.js → p-2a96174e.entry.js} +1 -1
  242. package/dist/twilight/{p-92d68ba1.entry.js → p-36abb604.entry.js} +1 -1
  243. package/dist/twilight/{p-59cf6efb.entry.js → p-36e9104c.entry.js} +1 -1
  244. package/dist/twilight/{p-9d745f77.entry.js → p-375b186f.entry.js} +1 -1
  245. package/dist/twilight/{p-19c8a5d5.entry.js → p-3a64ed82.entry.js} +1 -1
  246. package/dist/twilight/{p-c842401c.entry.js → p-3fe332fa.entry.js} +1 -1
  247. package/dist/twilight/{p-7fae4a20.entry.js → p-422941d9.entry.js} +1 -1
  248. package/dist/twilight/{p-3a54d785.entry.js → p-431142f2.entry.js} +1 -1
  249. package/dist/twilight/{p-57b87240.entry.js → p-4384feb0.entry.js} +1 -1
  250. package/dist/twilight/{p-bddef859.entry.js → p-455155aa.entry.js} +1 -1
  251. package/dist/twilight/p-492c82ab.entry.js +4 -0
  252. package/dist/twilight/{p-fdd6cba3.entry.js → p-4a477d48.entry.js} +1 -1
  253. package/dist/twilight/{p-342dad15.entry.js → p-4b9186a3.entry.js} +1 -1
  254. package/dist/twilight/{p-67a304d4.entry.js → p-4bbcf444.entry.js} +1 -1
  255. package/dist/twilight/{p-dda98c7a.entry.js → p-4ebb4e09.entry.js} +1 -1
  256. package/dist/twilight/{p-3ae98980.entry.js → p-50ef6401.entry.js} +1 -1
  257. package/dist/twilight/{p-6c4d7933.entry.js → p-551da5f4.entry.js} +1 -1
  258. package/dist/twilight/p-5a1e1360.entry.js +4 -0
  259. package/dist/twilight/{p-ff5240b5.entry.js → p-5fb3e389.entry.js} +1 -1
  260. package/dist/twilight/{p-d20eb5fe.entry.js → p-61881597.entry.js} +1 -1
  261. package/dist/twilight/p-620c1454.entry.js +4 -0
  262. package/dist/twilight/{p-3d005581.entry.js → p-62d47196.entry.js} +1 -1
  263. package/dist/twilight/p-68cebecd.entry.js +4 -0
  264. package/dist/twilight/{p-9f1c78ac.entry.js → p-6d79ff57.entry.js} +1 -1
  265. package/dist/twilight/{p-e58f50ac.entry.js → p-6dfa5c15.entry.js} +1 -1
  266. package/dist/twilight/{p-6e9b255e.entry.js → p-6fc7ba45.entry.js} +1 -1
  267. package/dist/twilight/{p-34741bf4.entry.js → p-76596156.entry.js} +1 -1
  268. package/dist/twilight/{p-0a0f2340.entry.js → p-76f92ebb.entry.js} +1 -1
  269. package/dist/twilight/{p-c850756e.entry.js → p-7fb062f9.entry.js} +1 -1
  270. package/dist/twilight/{p-YpsE7YiS.js → p-7rFUuSCm.js} +1 -1
  271. package/dist/twilight/{p-77676a5d.entry.js → p-80ec36a1.entry.js} +1 -1
  272. package/dist/twilight/{p-9d734c16.entry.js → p-833868bc.entry.js} +1 -1
  273. package/dist/twilight/{p-fdc41755.entry.js → p-87979a51.entry.js} +1 -1
  274. package/dist/twilight/{p-6aad9abe.entry.js → p-89c59baf.entry.js} +1 -1
  275. package/dist/twilight/{p-85f9d064.entry.js → p-8c18b758.entry.js} +1 -1
  276. package/dist/twilight/{p-16d6ee9b.entry.js → p-8dfb53a3.entry.js} +1 -1
  277. package/dist/twilight/{p-d5ffbaa7.entry.js → p-952fd300.entry.js} +1 -1
  278. package/dist/twilight/{p-94af7c15.entry.js → p-9c0d9feb.entry.js} +1 -1
  279. package/dist/twilight/{p-9f6081d4.entry.js → p-9de0b4ed.entry.js} +1 -1
  280. package/dist/twilight/p-9e0505cc.entry.js +4 -0
  281. package/dist/twilight/{p-08a065d6.entry.js → p-9e166c23.entry.js} +1 -1
  282. package/dist/twilight/{p-CXp5fcIv.js → p-Bcj1f2fX.js} +1 -1
  283. package/dist/twilight/{p-CAqUTN8N.js → p-BmjE8NyH.js} +1 -1
  284. package/dist/twilight/{p-DnsL3smj.js → p-C7pTdk-_.js} +1 -1
  285. package/dist/twilight/{p-DzgGIUvs.js → p-CJKQnkfE.js} +1 -1
  286. package/dist/twilight/{p-B1S798Uj.js → p-D4DLPMFM.js} +1 -1
  287. package/dist/twilight/{p-3omad4sF.js → p-DN92uBcr.js} +1 -1
  288. package/dist/twilight/{p-RH6Ze2WQ.js → p-DXSqOg95.js} +1 -1
  289. package/dist/twilight/{p-BlJJbPc3.js → p-SgvqVb7w.js} +1 -1
  290. package/dist/twilight/{p-MT8XYsK6.js → p-TyDsdXfo.js} +1 -1
  291. package/dist/twilight/{p-CwlNfhff.js → p-VnxV3DAP.js} +1 -1
  292. package/dist/twilight/{p-a65a1d76.entry.js → p-abece8f8.entry.js} +1 -1
  293. package/dist/twilight/{p-6740cfb1.entry.js → p-aca10d68.entry.js} +1 -1
  294. package/dist/twilight/{p-574c57c6.entry.js → p-b27d3a06.entry.js} +1 -1
  295. package/dist/twilight/p-b3974923.entry.js +4 -0
  296. package/dist/twilight/{p-1072161d.entry.js → p-b51380b2.entry.js} +1 -1
  297. package/dist/twilight/{p-c2ab62c6.entry.js → p-b8f69ded.entry.js} +1 -1
  298. package/dist/twilight/{p-d71e3ca9.entry.js → p-ba76c93b.entry.js} +1 -1
  299. package/dist/twilight/{p-729e2abe.entry.js → p-ba7a688e.entry.js} +1 -1
  300. package/dist/twilight/{p-d63d41cc.entry.js → p-bec9710e.entry.js} +1 -1
  301. package/dist/twilight/{p-13e1c331.entry.js → p-c234545f.entry.js} +1 -1
  302. package/dist/twilight/{p-9c302701.entry.js → p-c3d7e371.entry.js} +1 -1
  303. package/dist/twilight/{p-07cd3153.entry.js → p-caebca8d.entry.js} +1 -1
  304. package/dist/twilight/{p-ec7b9c48.entry.js → p-cbfb7278.entry.js} +1 -1
  305. package/dist/twilight/{p-feebbd16.entry.js → p-cc474d2f.entry.js} +1 -1
  306. package/dist/twilight/{p-2c86bd20.entry.js → p-d00445bc.entry.js} +1 -1
  307. package/dist/twilight/{p-f06c0fe7.entry.js → p-d148fdc2.entry.js} +1 -1
  308. package/dist/twilight/{p-d5f7fc7c.entry.js → p-d290357e.entry.js} +1 -1
  309. package/dist/twilight/{p-754d042b.entry.js → p-d4b0e27e.entry.js} +1 -1
  310. package/dist/twilight/{p-d00c74c3.entry.js → p-e3645153.entry.js} +1 -1
  311. package/dist/twilight/{p-44d95774.entry.js → p-e4b5ff29.entry.js} +1 -1
  312. package/dist/twilight/{p-7971bc45.entry.js → p-e5e4b576.entry.js} +1 -1
  313. package/dist/twilight/{p-b25643cf.entry.js → p-e8c46731.entry.js} +1 -1
  314. package/dist/twilight/{p-3157e3dd.entry.js → p-eb80e52a.entry.js} +1 -1
  315. package/dist/twilight/{p-18005312.entry.js → p-edd69c37.entry.js} +1 -1
  316. package/dist/twilight/{p-56a74d0a.entry.js → p-eea63686.entry.js} +1 -1
  317. package/dist/twilight/{p-c6e28a21.entry.js → p-ef10524b.entry.js} +1 -1
  318. package/dist/twilight/{p-57ace49d.entry.js → p-f0968317.entry.js} +1 -1
  319. package/dist/twilight/{p-12d180be.entry.js → p-f2f9332c.entry.js} +1 -1
  320. package/dist/twilight/{p-bdef80a3.entry.js → p-f5775b4b.entry.js} +1 -1
  321. package/dist/twilight/{p-e260af73.entry.js → p-f6f54929.entry.js} +1 -1
  322. package/dist/twilight/{p-07b25f79.entry.js → p-f78bc8b4.entry.js} +1 -1
  323. package/dist/twilight/{p-1beb481d.entry.js → p-fbd96426.entry.js} +1 -1
  324. package/dist/twilight/{p-842e61d7.entry.js → p-fcb0b00d.entry.js} +1 -1
  325. package/dist/twilight/p-tAiLdZvC.js +4 -0
  326. package/dist/twilight/twilight.esm.js +1 -1
  327. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +4 -0
  328. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +4 -0
  329. package/package.json +5 -5
  330. package/dist/twilight/p-03d231a1.entry.js +0 -4
  331. package/dist/twilight/p-0c55c5ed.entry.js +0 -4
  332. package/dist/twilight/p-1qlEgGio.js +0 -4
  333. package/dist/twilight/p-32467a9d.entry.js +0 -4
  334. package/dist/twilight/p-5877797d.entry.js +0 -4
  335. package/dist/twilight/p-6a7d7c6f.entry.js +0 -4
  336. package/dist/twilight/p-d7c3072b.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
  var star = require('./star-DMzrN05M.js');
8
8
  var shippingFast = require('./shipping-fast-CsqEQE78.js');
9
9
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
@@ -13,7 +13,7 @@ var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
13
13
  var mail = require('./mail-C9D8MHae.js');
14
14
  require('./anime.es-BqW8JHZi.js');
15
15
 
16
- const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
16
+ const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-loyalty-points-note-container{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-rating-modal-loyalty-points-note-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-rating-modal-loyalty-points-note-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-rating-modal-loyalty-points-note-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
17
17
 
18
18
  const SallaRatingModalV2 = class {
19
19
  constructor(hostRef) {
@@ -35,6 +35,7 @@ const SallaRatingModalV2 = class {
35
35
  this.editItem = null;
36
36
  this.allowAttachImages = false;
37
37
  this.allowContactSupport = false;
38
+ this.loyaltyImageRatingPoints = 0;
38
39
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
39
40
  this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
40
41
  this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
@@ -49,6 +50,9 @@ const SallaRatingModalV2 = class {
49
50
  this.contactUsLabel = salla.lang.get('blocks.footer.social');
50
51
  this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
51
52
  this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
53
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
54
+ points: ':points',
55
+ });
52
56
  this.contentRefs = [];
53
57
  this.hiddenInputs = [];
54
58
  this.userFilledFactorKeys = {};
@@ -96,6 +100,8 @@ const SallaRatingModalV2 = class {
96
100
  await setNestedAsync('en.trans', 'pages.rating.rate_required_factors', 'Please rate all required factors to complete your review.');
97
101
  await setNestedAsync('ar.trans', 'pages.rating.overall_product_rating', 'التقييم العام للمنتج');
98
102
  await setNestedAsync('en.trans', 'pages.rating.overall_product_rating', 'Overall product rating');
103
+ await setNestedAsync('ar.trans', 'pages.rating.loyalty_points_for_images', 'اكسب :points نقطة ولاء عند إضافة صور لتقييمك!');
104
+ await setNestedAsync('en.trans', 'pages.rating.loyalty_points_for_images', 'Earn :points loyalty points when adding photos to your review!');
99
105
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
100
106
  this.allowedImagesTypesLabel = salla.lang.get('common.uploader.allowed_images_types');
101
107
  this.threeImagesMax = salla.lang.get('common.uploader.max_three_images');
@@ -109,6 +115,9 @@ const SallaRatingModalV2 = class {
109
115
  this.confirmDeleteBtn = salla.lang.get('common.elements.confirm_delete');
110
116
  this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
111
117
  this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
118
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
119
+ points: ':points',
120
+ });
112
121
  this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_body', { store, id, customer });
113
122
  };
114
123
  setTranslations();
@@ -276,6 +285,7 @@ const SallaRatingModalV2 = class {
276
285
  this.order = res.data;
277
286
  this.productReviewFactors = await this.fetchAllProductReviewFactors(res.data);
278
287
  }))
288
+ .then(() => this.readyUpLoyaltyPoints())
279
289
  .then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
280
290
  .then(() => {
281
291
  // Initialize productImages for all products
@@ -306,6 +316,7 @@ const SallaRatingModalV2 = class {
306
316
  this.editFeedbackId = params.feedback_id;
307
317
  try {
308
318
  await this.fetchEditItem(params.feedback_id);
319
+ await this.readyUpLoyaltyPoints();
309
320
  if (this.editType === 'product' && this.editItem?.product?.id) {
310
321
  await this.loadCustomerOrderForEdit();
311
322
  await this.ensureProductFactorsLoaded(this.editItem.product.id);
@@ -632,6 +643,24 @@ const SallaRatingModalV2 = class {
632
643
  let lasName = salla.config.get('user.last_name') || salla.storage.get('user.last_name') || '';
633
644
  return `${firstName} ${lasName}`;
634
645
  }
646
+ async readyUpLoyaltyPoints() {
647
+ const featureEnabled = salla.loyalty?.isFeatureEnabled?.();
648
+ if (!featureEnabled) {
649
+ this.loyaltyImageRatingPoints = 0;
650
+ return;
651
+ }
652
+ const rating_product_points = salla.config.get('store.settings.rating.rating_product_points') || 0;
653
+ const rating_product_with_image_points = salla.config.get('store.settings.rating.rating_product_with_image_points') || 0;
654
+ this.loyaltyImageRatingPoints =
655
+ Number(rating_product_with_image_points) + Number(rating_product_points);
656
+ }
657
+ loyaltyPointsNote() {
658
+ if (!this.loyaltyImageRatingPoints || !this.loyaltyPointsForImagesLabel) {
659
+ return null;
660
+ }
661
+ const svgIcon = (index.h("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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" })));
662
+ return (index.h("div", { class: "s-rating-modal-loyalty-points-note-container" }, index.h("span", { class: "s-rating-modal-loyalty-points-note-icon" }, svgIcon), index.h("p", { class: "s-rating-modal-loyalty-points-note-text" }, this.loyaltyPointsForImagesLabel.replace(':points', String(this.loyaltyImageRatingPoints)))));
663
+ }
635
664
  normalizeReviewFactorsPayload(payload) {
636
665
  const data = payload?.data ?? payload?.factors;
637
666
  if (!Array.isArray(data)) {
@@ -910,7 +939,7 @@ const SallaRatingModalV2 = class {
910
939
  }, {});
911
940
  }
912
941
  renderProductStep(item, index$1) {
913
- return (index.h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, index.h("div", { class: "s-rating-modal-product" }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-info-row" }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), index.h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), index.h("input", { type: "hidden", name: "product_id", value: item.product.id }), index.h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index$1] = el) }, index.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 => {
942
+ return (index.h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, index.h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-info-row" }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), index.h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), index.h("input", { type: "hidden", name: "product_id", value: item.product.id }), index.h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index$1] = el) }, index.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 => {
914
943
  this.productImages = {
915
944
  ...this.productImages,
916
945
  [item.product.id]: [...(this.productImages[item.product.id] || []), e.detail],
@@ -986,6 +1015,7 @@ const SallaRatingModalV2 = class {
986
1015
  this.currentIndex = 0;
987
1016
  this.submitted = [];
988
1017
  this.scheduleWizardSetup = false;
1018
+ this.loyaltyImageRatingPoints = 0;
989
1019
  }
990
1020
  getDeleteModal() {
991
1021
  return (index.h("salla-modal", { ref: modal => (this.deleteModal = modal), width: "xs", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-delete-wrapper", ref: el => (this.body = el) }, index.h("h3", null, this.confirmDeletionLabel), index.h("p", null, this.areYouSureLabel), index.h("div", { class: "s-rating-modal-delete-actions" }, index.h("salla-button", { loaderPosition: "center", onClick: () => this.deleteReview() }, this.confirmDeleteBtn), index.h("salla-button", { color: "danger", fill: "outline", onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
@@ -1001,7 +1031,7 @@ const SallaRatingModalV2 = class {
1001
1031
  })));
1002
1032
  }
1003
1033
  getEditModal() {
1004
- return (index.h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (index.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 ? (index.h("div", { class: "s-rating-modal-rounded-icon" }, index.h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast })), index.h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, index.h("div", { class: "s-rating-modal-product" }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-info-row" }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
1034
+ return (index.h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (index.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 ? (index.h("div", { class: "s-rating-modal-rounded-icon" }, index.h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast })), index.h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, index.h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-info-row" }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
1005
1035
  fieldPrefix: '',
1006
1036
  mainRating: this.editMainRating ?? Number(this.editItem.stars ?? this.editItem.rating),
1007
1037
  factorRatings: this.editFactorRatings,
@@ -3,17 +3,17 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
7
- var star = require('./star-DMzrN05M.js');
8
- var shippingFast = require('./shipping-fast-CsqEQE78.js');
6
+ var index = require('./index-XRHN1V13.js');
7
+ var anime_es = require('./anime.es-BqW8JHZi.js');
9
8
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
10
- var Helper = require('./Helper-B2B-kxAI.js');
11
9
  var image = require('./image-BoZ6Hums.js');
12
- var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
13
10
  var mail = require('./mail-C9D8MHae.js');
14
- var anime_es = require('./anime.es-BqW8JHZi.js');
11
+ var shippingFast = require('./shipping-fast-CsqEQE78.js');
12
+ var star = require('./star-DMzrN05M.js');
13
+ var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
14
+ var Helper = require('./Helper-B2B-kxAI.js');
15
15
 
16
- const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
16
+ const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-loyalty-points-note-container{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-rating-modal-loyalty-points-note-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-rating-modal-loyalty-points-note-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-rating-modal-loyalty-points-note-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
17
17
 
18
18
  const SallaRatingModal = class {
19
19
  constructor(hostRef) {
@@ -29,6 +29,7 @@ const SallaRatingModal = class {
29
29
  this.deleteMode = false;
30
30
  this.shouldOpenDeleteModal = false;
31
31
  this.editItem = null;
32
+ this.loyaltyImageRatingPoints = 0;
32
33
  this.enableNewPopUp = false;
33
34
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
34
35
  this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
@@ -44,6 +45,7 @@ const SallaRatingModal = class {
44
45
  this.updatedSuccessfullyLabel = salla.lang.get("pages.rating.review_updated_successfully");
45
46
  this.deletedSuccessfullyLabel = salla.lang.get("pages.rating.review_deleted_successfully");
46
47
  this.contactUsLabel = salla.lang.get('blocks.footer.social');
48
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', { points: ':points' });
47
49
  this.allowAttachImages = salla.config.get('store.settings.rating.allow_attach_images');
48
50
  this.allowContactSupport = salla.config.get('store.settings.rating.allow_contact_support');
49
51
  this.contentRefs = [];
@@ -118,6 +120,8 @@ const SallaRatingModal = class {
118
120
  await setNestedAsync('en.trans', 'pages.rating.review_deleted_successfully', 'The review has been successfully deleted.');
119
121
  await setNestedAsync('ar.trans', 'pages.rating.images_count', 'الصور ( :current من أصل :total )');
120
122
  await setNestedAsync('en.trans', 'pages.rating.images_count', 'Images ( :current of :total )');
123
+ await setNestedAsync('ar.trans', 'pages.rating.loyalty_points_for_images', 'اكسب :points نقطة ولاء عند إضافة صور لتقييمك!');
124
+ await setNestedAsync('en.trans', 'pages.rating.loyalty_points_for_images', 'Earn :points loyalty points when adding photos to your review!');
121
125
  await setNestedAsync('ar.trans', 'common.uploader.max_three_images', `.أضف ${this.MAX_UPLOAD_LIMIT} صور كحد أقصى`);
122
126
  await setNestedAsync('en.trans', 'common.uploader.max_three_images', `Add up to ${this.MAX_UPLOAD_LIMIT} images maximum.`);
123
127
  await setNestedAsync('ar.trans', 'common.elements.confirm_delete', 'تأكيد الحذف');
@@ -135,6 +139,7 @@ const SallaRatingModal = class {
135
139
  this.updatedSuccessfullyLabel = salla.lang.get("pages.rating.review_updated_successfully");
136
140
  this.deletedSuccessfullyLabel = salla.lang.get("pages.rating.review_deleted_successfully");
137
141
  this.confirmDeleteBtn = salla.lang.get("common.elements.confirm_delete");
142
+ this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', { points: ':points' });
138
143
  this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_body', { store, id, customer });
139
144
  };
140
145
  setTranslations();
@@ -159,6 +164,7 @@ const SallaRatingModal = class {
159
164
  return new Promise((resolve) => {
160
165
  setTimeout(() => {
161
166
  this.modal.open().then(() => this.order || salla.api.withoutNotifier(() => salla.rating.api.order(this.orderId ? this.orderId : salla.config.get('page.id'))).then(res => this.order = res.data))
167
+ .then(() => this.readyUpLoyaltyPoints())
162
168
  .then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
163
169
  .then(() => {
164
170
  // Initialize productImages for all products
@@ -195,6 +201,7 @@ const SallaRatingModal = class {
195
201
  this.editFeedbackId = params.feedback_id;
196
202
  try {
197
203
  await this.fetchEditItem(params.feedback_id);
204
+ await this.readyUpLoyaltyPoints();
198
205
  this.editModal.open();
199
206
  }
200
207
  catch (e) {
@@ -399,6 +406,24 @@ const SallaRatingModal = class {
399
406
  this.editMode = false;
400
407
  this.deleteMode = false;
401
408
  this.defaultMode = false;
409
+ this.loyaltyImageRatingPoints = 0;
410
+ }
411
+ async readyUpLoyaltyPoints() {
412
+ const featureEnabled = salla.loyalty?.isFeatureEnabled?.();
413
+ if (!featureEnabled) {
414
+ this.loyaltyImageRatingPoints = 0;
415
+ return;
416
+ }
417
+ const rating_product_points = salla.config.get('store.settings.rating.rating_product_points') || 0;
418
+ const rating_product_with_image_points = salla.config.get('store.settings.rating.rating_product_with_image_points') || 0;
419
+ this.loyaltyImageRatingPoints = Number(rating_product_with_image_points) + Number(rating_product_points);
420
+ }
421
+ loyaltyPointsNote() {
422
+ if (!this.loyaltyImageRatingPoints || !this.loyaltyPointsForImagesLabel) {
423
+ return null;
424
+ }
425
+ const svgIcon = (index.h("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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" })));
426
+ return (index.h("div", { class: "s-rating-modal-loyalty-points-note-container" }, index.h("span", { class: "s-rating-modal-loyalty-points-note-icon" }, svgIcon), index.h("p", { class: "s-rating-modal-loyalty-points-note-text" }, this.loyaltyPointsForImagesLabel.replace(':points', String(this.loyaltyImageRatingPoints)))));
402
427
  }
403
428
  getDeleteModal() {
404
429
  return (index.h("salla-modal", { ref: modal => this.deleteModal = modal, width: "xs", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-delete-wrapper", ref: el => this.body = el }, index.h("h3", null, this.confirmDeletionLabel), index.h("p", null, this.areYouSureLabel), index.h("div", { class: "s-rating-modal-delete-actions" }, index.h("salla-button", { loaderPosition: 'center', onClick: () => this.deleteReview() }, this.confirmDeleteBtn), index.h("salla-button", { color: 'danger', fill: 'outline', onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
@@ -411,7 +436,7 @@ const SallaRatingModal = class {
411
436
  getEditModal() {
412
437
  return (index.h("salla-modal", { ref: modal => this.editModal = modal, width: "md", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-edit-wrapper", ref: el => this.body = el }, this.editType === "store" && this.editItem ? (index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === "shipping" && this.editItem ? (index.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
413
438
  ? index.h("div", { class: "s-rating-modal-rounded-icon" }, index.h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))
414
- : index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-product" }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, index.h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, index.h("salla-file-upload", { name: "images", allowMultiple: true, maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, filePosterHeight: 117, "instant-upload": true, type: "feedback", files: JSON.stringify(this.editItemImages), payloadName: "files[]", id: `file-${this.editItem.product.id}`, title: this.editItem.product.name, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
439
+ : index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, index.h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, index.h("salla-file-upload", { name: "images", allowMultiple: true, maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, filePosterHeight: 117, "instant-upload": true, type: "feedback", files: JSON.stringify(this.editItemImages), payloadName: "files[]", id: `file-${this.editItem.product.id}`, title: this.editItem.product.name, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
415
440
  this.editItemImages = [...this.editItemImages, e.detail];
416
441
  this.hiddenInputs[1].value = this.editItemImages.map(img => img.url).join();
417
442
  }, onRemoved: (e) => {
@@ -438,7 +463,7 @@ const SallaRatingModal = class {
438
463
  ? [index.h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order?.testimonials_enabled ?
439
464
  index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large" })), index.h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))
440
465
  : '', this.order.products_enabled
441
- ? index.h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.order.products.map((item, index$1) => index.h("div", { class: "s-rating-modal-product", key: index$1 }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index$1}][rating]` }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(index$1) }, index.h("span", null, this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("input", { type: "hidden", name: `products[${index$1}][product_id]`, value: item.product.id }), index.h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: `products[${index$1}][comment]`, class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[index$1] = el) }, index.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) => {
466
+ ? index.h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.allowAttachImages && this.loyaltyPointsNote(), this.order.products.map((item, index$1) => index.h("div", { class: "s-rating-modal-product", key: index$1 }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index$1}][rating]` }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(index$1) }, index.h("span", null, this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("input", { type: "hidden", name: `products[${index$1}][product_id]`, value: item.product.id }), index.h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: `products[${index$1}][comment]`, class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[index$1] = el) }, index.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) => {
442
467
  this.productImages = {
443
468
  ...this.productImages,
444
469
  [item.product.id]: [...(this.productImages[item.product.id] || []), e.detail]
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
  var star2 = require('./star2-R146a27p.js');
8
8
 
9
9
  const CACHE_TTL = 5 * 60 * 1000;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-B2B-kxAI.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-C9D8MHae.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
  var mail = require('./mail-C9D8MHae.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.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-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
 
8
8
  const sallaWishlistActionsCss = ":host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-BQKhP5JS.js');
6
+ var index = require('./index-XRHN1V13.js');
7
7
 
8
8
  function TrackedPromise(fn, options = {}) {
9
9
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);