@salla.sa/twilight-components 2.14.489 → 2.14.491

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 (401) hide show
  1. package/dist/cjs/{filepond-C-1J1qrF.js → filepond-C8OgCkk4.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-B8fUrKqJ.js → filepond-plugin-file-poster-W7CIIo06.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BJ4Bw3Ju.js → filepond-plugin-file-validate-size-b6owsb9D.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-D_Smjf6h.js → filepond-plugin-file-validate-type-_rafsi9p.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BDZBDL-U.js → filepond-plugin-image-edit-7_W-TDnV.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-B68mU2op.js → filepond-plugin-image-exif-orientation-BqHzmoQr.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-B2RzZ9r9.js → filepond-plugin-image-preview-CXYMGZyB.js} +1 -1
  8. package/dist/cjs/{functions-DdZX56J7.js → functions-DEYiJNeU.js} +1 -1
  9. package/dist/cjs/{index-DWea49r_.js → index-DFAB8ROR.js} +17 -5
  10. package/dist/cjs/{index-B5CW9Xve.js → index-DQxFCAkS.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 +11 -11
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
  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 +45 -0
  27. package/dist/cjs/salla-comment-form_8.cjs.entry.js +112 -30
  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 +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-hero_2.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  48. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  52. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  53. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-options-modal_3.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-size-guide.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1060 -0
  86. package/dist/cjs/salla-rating-modal.cjs.entry.js +38 -14
  87. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +127 -0
  88. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  96. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +3 -3
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  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 +2 -2
  105. package/dist/cjs/shipping-fast-CsqEQE78.js +13 -0
  106. package/dist/{esm/star-ZT7ehBBk.js → cjs/star-DMzrN05M.js} +4 -2
  107. package/dist/cjs/{tracked-promise-DNxhV4_1.js → tracked-promise-BFI0OYlh.js} +1 -1
  108. package/dist/cjs/twilight.cjs.js +2 -2
  109. package/dist/cjs/{vanilla-picker-ClijNDRd.js → vanilla-picker-X9clH5_E.js} +1 -1
  110. package/dist/collection/collection-manifest.json +3 -0
  111. package/dist/collection/components/salla-comments/salla-comment-factors.js +76 -0
  112. package/dist/collection/components/salla-comments/salla-comment-item.js +20 -6
  113. package/dist/collection/components/salla-comments/salla-comments.css +110 -0
  114. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +1203 -0
  115. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +112 -1
  116. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -2
  117. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +34 -1
  118. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +117 -16
  119. package/dist/collection/components/salla-review-factors-tags/helpers.js +86 -0
  120. package/dist/collection/components/salla-review-factors-tags/interfaces.js +1 -0
  121. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +41 -0
  122. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +135 -0
  123. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  124. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  125. package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +60 -0
  126. package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +12 -2
  127. package/dist/collection/components/salla-search/salla-search.js +5 -5
  128. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  129. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  130. package/dist/collection/components/salla-social/salla-social.js +1 -1
  131. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  132. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  133. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  134. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  135. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  136. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  137. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  138. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
  139. package/dist/components/index.js +3 -3
  140. package/dist/components/salla-comment-factors.d.ts +11 -0
  141. package/dist/components/salla-comment-factors.js +9 -0
  142. package/dist/components/salla-comment-factors2.js +66 -0
  143. package/dist/components/salla-comment-item2.js +29 -9
  144. package/dist/components/salla-comments.js +9 -3
  145. package/dist/components/salla-rating-modal-v2.d.ts +11 -0
  146. package/dist/components/salla-rating-modal-v2.js +9 -0
  147. package/dist/components/salla-rating-modal-v22.js +1149 -0
  148. package/dist/components/salla-rating-modal.js +49 -19
  149. package/dist/components/salla-rating-stars2.js +80 -17
  150. package/dist/components/salla-review-factors-tags.d.ts +11 -0
  151. package/dist/components/salla-review-factors-tags.js +149 -0
  152. package/dist/components/salla-reviews-page.js +1 -1
  153. package/dist/components/salla-reviews-summary2.js +13 -3
  154. package/dist/components/salla-reviews.js +1 -1
  155. package/dist/components/salla-search.js +5 -5
  156. package/dist/components/salla-searchable-dropdown2.js +4 -4
  157. package/dist/components/salla-skeleton2.js +1 -1
  158. package/dist/components/salla-social-share2.js +1 -1
  159. package/dist/components/salla-social.js +1 -1
  160. package/dist/components/salla-tab-content2.js +1 -1
  161. package/dist/components/salla-tab-header2.js +1 -1
  162. package/dist/components/salla-tabs2.js +1 -1
  163. package/dist/components/salla-tel-input2.js +1 -1
  164. package/dist/components/salla-tooltip2.js +1 -1
  165. package/dist/components/salla-user-settings.js +1 -1
  166. package/dist/components/salla-wishlist-actions.js +1 -1
  167. package/dist/esm/{filepond-z2hEBvHC.js → filepond-DnJWzWeX.js} +1 -1
  168. package/dist/esm/{filepond-plugin-file-poster-B9sxi6Yz.js → filepond-plugin-file-poster-CQjIyjj0.js} +1 -1
  169. package/dist/esm/{filepond-plugin-file-validate-size-HWpVatr_.js → filepond-plugin-file-validate-size-BHmdR08m.js} +1 -1
  170. package/dist/esm/{filepond-plugin-file-validate-type-SgpUhQB_.js → filepond-plugin-file-validate-type-DKZI4Udo.js} +1 -1
  171. package/dist/esm/{filepond-plugin-image-edit-0F90Q6lM.js → filepond-plugin-image-edit-BEu3qWM8.js} +1 -1
  172. package/dist/esm/{filepond-plugin-image-exif-orientation-CXJDp_1v.js → filepond-plugin-image-exif-orientation-BnEErRDJ.js} +1 -1
  173. package/dist/esm/{filepond-plugin-image-preview-APl1nt4k.js → filepond-plugin-image-preview-C5uMnAXy.js} +1 -1
  174. package/dist/esm/{functions-BCdJLPcs.js → functions-BHv4YCak.js} +1 -1
  175. package/dist/esm/{index-DNWyGkAx.js → index-CrMCOyRb.js} +17 -5
  176. package/dist/esm/{index-DhwQVX77.js → index-DNoSNI6q.js} +1 -1
  177. package/dist/esm/loader.js +3 -3
  178. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  179. package/dist/esm/salla-accordion_6.entry.js +1 -1
  180. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  181. package/dist/esm/salla-advertisement.entry.js +1 -1
  182. package/dist/esm/salla-alert_2.entry.js +1 -1
  183. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  184. package/dist/esm/salla-apps-icons.entry.js +1 -1
  185. package/dist/esm/salla-badge.entry.js +1 -1
  186. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  187. package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
  188. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  189. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  190. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  191. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  192. package/dist/esm/salla-comment-factors.entry.js +43 -0
  193. package/dist/esm/salla-comment-form_8.entry.js +112 -30
  194. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  195. package/dist/esm/salla-contacts.entry.js +1 -1
  196. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  197. package/dist/esm/salla-count-down.entry.js +1 -1
  198. package/dist/esm/salla-custom-fields.entry.js +1 -1
  199. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  200. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  201. package/dist/esm/salla-filters-widget.entry.js +1 -1
  202. package/dist/esm/salla-filters.entry.js +1 -1
  203. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  204. package/dist/esm/salla-gifting.entry.js +1 -1
  205. package/dist/esm/salla-hook.entry.js +1 -1
  206. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  207. package/dist/esm/salla-installment.entry.js +1 -1
  208. package/dist/esm/salla-list-tile.entry.js +1 -1
  209. package/dist/esm/salla-localization-modal.entry.js +1 -1
  210. package/dist/esm/salla-login-modal.entry.js +1 -1
  211. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  212. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  213. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  214. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  215. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  216. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  217. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  218. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  219. package/dist/esm/salla-loyalty.entry.js +1 -1
  220. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  221. package/dist/esm/salla-map_2.entry.js +1 -1
  222. package/dist/esm/salla-menu.entry.js +1 -1
  223. package/dist/esm/salla-metadata.entry.js +1 -1
  224. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  225. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  226. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  227. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  228. package/dist/esm/salla-notification-item.entry.js +1 -1
  229. package/dist/esm/salla-notifications.entry.js +1 -1
  230. package/dist/esm/salla-offer-modal.entry.js +1 -1
  231. package/dist/esm/salla-offer.entry.js +1 -1
  232. package/dist/esm/salla-order-branch.entry.js +1 -1
  233. package/dist/esm/salla-order-cancel.entry.js +1 -1
  234. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  235. package/dist/esm/salla-order-details-options.entry.js +1 -1
  236. package/dist/esm/salla-order-details.entry.js +1 -1
  237. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  238. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  239. package/dist/esm/salla-order-edit.entry.js +1 -1
  240. package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
  241. package/dist/esm/salla-order-summary.entry.js +1 -1
  242. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  243. package/dist/esm/salla-orders.entry.js +1 -1
  244. package/dist/esm/salla-payments.entry.js +1 -1
  245. package/dist/esm/salla-placeholder.entry.js +1 -1
  246. package/dist/esm/salla-price-range.entry.js +1 -1
  247. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  248. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  249. package/dist/esm/salla-products-list.entry.js +1 -1
  250. package/dist/esm/salla-quick-order.entry.js +1 -1
  251. package/dist/esm/salla-rating-modal-v2.entry.js +1058 -0
  252. package/dist/esm/salla-rating-modal.entry.js +36 -12
  253. package/dist/esm/salla-review-factors-tags.entry.js +125 -0
  254. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  255. package/dist/esm/salla-scopes.entry.js +1 -1
  256. package/dist/esm/salla-search.entry.js +6 -6
  257. package/dist/esm/salla-skeleton.entry.js +2 -2
  258. package/dist/esm/salla-slider.entry.js +1 -1
  259. package/dist/esm/salla-social-share.entry.js +2 -2
  260. package/dist/esm/salla-social.entry.js +2 -2
  261. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  262. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  263. package/dist/esm/salla-tooltip.entry.js +2 -2
  264. package/dist/esm/salla-trust-badges.entry.js +1 -1
  265. package/dist/esm/salla-user-menu.entry.js +5 -5
  266. package/dist/esm/salla-user-profile.entry.js +1 -1
  267. package/dist/esm/salla-user-settings.entry.js +2 -2
  268. package/dist/esm/salla-verify.entry.js +1 -1
  269. package/dist/esm/salla-wallet.entry.js +1 -1
  270. package/dist/esm/salla-wishlist-actions.entry.js +2 -2
  271. package/dist/esm/shipping-fast-lMgMt31Q.js +11 -0
  272. package/dist/{cjs/star-DGcH7Yso.js → esm/star-CeFAfcTv.js} +2 -4
  273. package/dist/esm/{tracked-promise-CjtqaGP2.js → tracked-promise-DoP8oegK.js} +1 -1
  274. package/dist/esm/twilight.js +3 -3
  275. package/dist/esm/{vanilla-picker-DPMDb9SB.js → vanilla-picker-DHvTWQwH.js} +1 -1
  276. package/dist/twilight/{p-0a9af711.entry.js → p-01cd666a.entry.js} +1 -1
  277. package/dist/twilight/{p-ef2d94d3.entry.js → p-02bda539.entry.js} +1 -1
  278. package/dist/twilight/{p-e9cdcf2f.entry.js → p-0569fa78.entry.js} +1 -1
  279. package/dist/twilight/{p-47dd6817.entry.js → p-0a851930.entry.js} +1 -1
  280. package/dist/twilight/{p-338a55c1.entry.js → p-0b6623d1.entry.js} +1 -1
  281. package/dist/twilight/{p-082f3913.entry.js → p-0e9f471f.entry.js} +1 -1
  282. package/dist/twilight/{p-3c10826c.entry.js → p-0f6bc387.entry.js} +1 -1
  283. package/dist/twilight/{p-02e2f661.entry.js → p-10cfb2e6.entry.js} +1 -1
  284. package/dist/twilight/{p-85fc94be.entry.js → p-1351776d.entry.js} +1 -1
  285. package/dist/twilight/{p-f6d6dada.entry.js → p-14c28037.entry.js} +1 -1
  286. package/dist/twilight/{p-24127075.entry.js → p-158b25d6.entry.js} +1 -1
  287. package/dist/twilight/{p-0cd023d2.entry.js → p-180efa36.entry.js} +1 -1
  288. package/dist/twilight/{p-602df9ed.entry.js → p-1a89b6e6.entry.js} +1 -1
  289. package/dist/twilight/p-1d1598f2.entry.js +4 -0
  290. package/dist/twilight/{p-db9dc344.entry.js → p-24a33e42.entry.js} +1 -1
  291. package/dist/twilight/{p-12ccff98.entry.js → p-2565c8a8.entry.js} +1 -1
  292. package/dist/twilight/{p-c84ada78.entry.js → p-27ba15f4.entry.js} +1 -1
  293. package/dist/twilight/{p-52283d18.entry.js → p-2abf9e37.entry.js} +1 -1
  294. package/dist/twilight/p-2be2e677.entry.js +4 -0
  295. package/dist/twilight/{p-094dcf0c.entry.js → p-3301eb04.entry.js} +1 -1
  296. package/dist/twilight/{p-26faf85e.entry.js → p-3394398c.entry.js} +1 -1
  297. package/dist/twilight/{p-b5d32897.entry.js → p-346519c6.entry.js} +1 -1
  298. package/dist/twilight/{p-90534314.entry.js → p-3642805b.entry.js} +1 -1
  299. package/dist/twilight/{p-ed02b506.entry.js → p-3698e128.entry.js} +1 -1
  300. package/dist/twilight/{p-5171b440.entry.js → p-379db48e.entry.js} +1 -1
  301. package/dist/twilight/{p-b6cdfd09.entry.js → p-38f0b921.entry.js} +1 -1
  302. package/dist/twilight/{p-afc451ef.entry.js → p-3d3cebb9.entry.js} +1 -1
  303. package/dist/twilight/{p-3e7a3c6e.entry.js → p-3d3f647d.entry.js} +1 -1
  304. package/dist/twilight/{p-7bbea228.entry.js → p-43b6be6a.entry.js} +1 -1
  305. package/dist/twilight/p-46440c88.entry.js +4 -0
  306. package/dist/twilight/{p-46cd5ece.entry.js → p-484fde1d.entry.js} +1 -1
  307. package/dist/twilight/{p-43a2f42e.entry.js → p-4ee6b3e0.entry.js} +1 -1
  308. package/dist/twilight/{p-f01c12dc.entry.js → p-53188a50.entry.js} +1 -1
  309. package/dist/twilight/{p-b0d5084c.entry.js → p-53b388e5.entry.js} +1 -1
  310. package/dist/twilight/p-5619de6e.entry.js +4 -0
  311. package/dist/twilight/{p-edc4193f.entry.js → p-5832f8ef.entry.js} +1 -1
  312. package/dist/twilight/{p-160fc21e.entry.js → p-5c7dfd69.entry.js} +1 -1
  313. package/dist/twilight/{p-991b1e85.entry.js → p-5d757ebc.entry.js} +1 -1
  314. package/dist/twilight/{p-04a6cb8f.entry.js → p-65745dca.entry.js} +1 -1
  315. package/dist/twilight/{p-8fec15f8.entry.js → p-68a0d7de.entry.js} +1 -1
  316. package/dist/twilight/{p-9474d525.entry.js → p-698202a9.entry.js} +1 -1
  317. package/dist/twilight/{p-4ab4e5ea.entry.js → p-6b0b391f.entry.js} +1 -1
  318. package/dist/twilight/{p-fa5fa155.entry.js → p-6b14b175.entry.js} +1 -1
  319. package/dist/twilight/{p-5993b7d0.entry.js → p-6c03ddfd.entry.js} +1 -1
  320. package/dist/twilight/{p-cee1f87a.entry.js → p-6c25d25f.entry.js} +1 -1
  321. package/dist/twilight/{p-f2dbde1c.entry.js → p-6c7dc86f.entry.js} +1 -1
  322. package/dist/twilight/{p-08641aeb.entry.js → p-6e7c8096.entry.js} +1 -1
  323. package/dist/twilight/{p-844c6c1f.entry.js → p-7269d2ba.entry.js} +1 -1
  324. package/dist/twilight/{p-3f924fc5.entry.js → p-75d546f8.entry.js} +2 -2
  325. package/dist/twilight/{p-6ab60f90.entry.js → p-768077d9.entry.js} +1 -1
  326. package/dist/twilight/{p-39b8ffcd.entry.js → p-79d53d67.entry.js} +1 -1
  327. package/dist/twilight/{p-f14fe365.entry.js → p-7a4328dd.entry.js} +1 -1
  328. package/dist/twilight/{p-1efc0eed.entry.js → p-7a8f4587.entry.js} +1 -1
  329. package/dist/twilight/{p-7fb92e0b.entry.js → p-7ed01fae.entry.js} +1 -1
  330. package/dist/twilight/{p-ab2a5243.entry.js → p-831105b1.entry.js} +1 -1
  331. package/dist/twilight/{p-06966ed6.entry.js → p-83920e60.entry.js} +1 -1
  332. package/dist/twilight/{p-1a957d13.entry.js → p-84ed1fe9.entry.js} +1 -1
  333. package/dist/twilight/{p-3ce46edf.entry.js → p-904d61a5.entry.js} +1 -1
  334. package/dist/twilight/{p-c4c32432.entry.js → p-92212c2c.entry.js} +1 -1
  335. package/dist/twilight/{p-9fc965a7.entry.js → p-92f96da3.entry.js} +1 -1
  336. package/dist/twilight/{p-69766916.entry.js → p-95fd32d1.entry.js} +1 -1
  337. package/dist/twilight/{p-7a0d2f4d.entry.js → p-967a0b5f.entry.js} +1 -1
  338. package/dist/twilight/{p-f9192741.entry.js → p-96bc00e4.entry.js} +1 -1
  339. package/dist/twilight/{p-5wempgCB.js → p-B8h6YT8x.js} +1 -1
  340. package/dist/twilight/{p-Ca18LMTl.js → p-BAPngUXX.js} +1 -1
  341. package/dist/twilight/{p-BwggHXVj.js → p-By0LfFQa.js} +1 -1
  342. package/dist/twilight/{p-CsSICzhL.js → p-C9sdTleU.js} +1 -1
  343. package/dist/twilight/{p-DJ3ziTwG.js → p-CEkVObpk.js} +1 -1
  344. package/dist/twilight/{p-6sBYUIya.js → p-COcTJoQh.js} +1 -1
  345. package/dist/twilight/{p-C72A7Y44.js → p-C_9dEE-y.js} +1 -1
  346. package/dist/twilight/{p-ZT7ehBBk.js → p-CeFAfcTv.js} +1 -1
  347. package/dist/twilight/{p-DNWyGkAx.js → p-CrMCOyRb.js} +2 -2
  348. package/dist/twilight/{p-C5HojqDY.js → p-D7kAm5HN.js} +1 -1
  349. package/dist/twilight/{p-9273a620.entry.js → p-a458dd2a.entry.js} +1 -1
  350. package/dist/twilight/{p-14f8ba23.entry.js → p-a67a69d6.entry.js} +1 -1
  351. package/dist/twilight/{p-cbc66d20.entry.js → p-b02b29fa.entry.js} +1 -1
  352. package/dist/twilight/{p-d239611f.entry.js → p-b0ac8f2d.entry.js} +1 -1
  353. package/dist/twilight/{p-1aeeb0f0.entry.js → p-b6a9c958.entry.js} +1 -1
  354. package/dist/twilight/p-b7e45734.entry.js +4 -0
  355. package/dist/twilight/{p-6852162e.entry.js → p-b82011e6.entry.js} +1 -1
  356. package/dist/twilight/{p-c9aa80c3.entry.js → p-ba9d9441.entry.js} +1 -1
  357. package/dist/twilight/{p-da66f939.entry.js → p-bc231a7f.entry.js} +1 -1
  358. package/dist/twilight/{p-40407996.entry.js → p-be9f3b55.entry.js} +1 -1
  359. package/dist/twilight/p-c0fdeae5.entry.js +4 -0
  360. package/dist/twilight/{p-78f161f2.entry.js → p-c1959cfa.entry.js} +1 -1
  361. package/dist/twilight/{p-f8933bd5.entry.js → p-c34e8a2f.entry.js} +1 -1
  362. package/dist/twilight/{p-85c6c44f.entry.js → p-c40da673.entry.js} +1 -1
  363. package/dist/twilight/{p-6e7a6f4b.entry.js → p-c4981fc4.entry.js} +1 -1
  364. package/dist/twilight/{p-61813e83.entry.js → p-c75169ad.entry.js} +1 -1
  365. package/dist/twilight/{p-4b17c9a0.entry.js → p-cd6617a2.entry.js} +1 -1
  366. package/dist/twilight/{p-ca028945.entry.js → p-ce621f89.entry.js} +1 -1
  367. package/dist/twilight/{p-ac7c0ea4.entry.js → p-cf699819.entry.js} +1 -1
  368. package/dist/twilight/{p-a965c431.entry.js → p-d8b9b23d.entry.js} +1 -1
  369. package/dist/twilight/{p-d3f3eed5.entry.js → p-d90c6504.entry.js} +1 -1
  370. package/dist/twilight/{p-aaf7cbb1.entry.js → p-da875729.entry.js} +1 -1
  371. package/dist/twilight/{p-6891f00b.entry.js → p-db885288.entry.js} +1 -1
  372. package/dist/twilight/{p-cfc209db.entry.js → p-ea7111b7.entry.js} +1 -1
  373. package/dist/twilight/{p-56365c64.entry.js → p-f2a98eb7.entry.js} +1 -1
  374. package/dist/twilight/{p-de942889.entry.js → p-f2c185ff.entry.js} +1 -1
  375. package/dist/twilight/{p-6494c6bf.entry.js → p-f31322cc.entry.js} +1 -1
  376. package/dist/twilight/{p-5b989746.entry.js → p-f6e578f4.entry.js} +1 -1
  377. package/dist/twilight/{p-f2e9d83b.entry.js → p-f82bf774.entry.js} +1 -1
  378. package/dist/twilight/{p-e2da0555.entry.js → p-fd3602a9.entry.js} +1 -1
  379. package/dist/twilight/{p-DQUSqsnq.js → p-hej0tW8f.js} +1 -1
  380. package/dist/twilight/p-lMgMt31Q.js +4 -0
  381. package/dist/twilight/{p-Bw7P5SwX.js → p-pvcZDEed.js} +1 -1
  382. package/dist/twilight/{p-Dp4UckOj.js → p-vj4RR8x2.js} +1 -1
  383. package/dist/twilight/twilight.esm.js +1 -1
  384. package/dist/types/components/salla-comments/interfaces.d.ts +6 -0
  385. package/dist/types/components/salla-comments/salla-comment-factors.d.ts +6 -0
  386. package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -0
  387. package/dist/types/components/salla-comments/salla-comments.d.ts +2 -2
  388. package/dist/types/components/salla-rating-modal/order-feedback-response.d.ts +32 -0
  389. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +151 -0
  390. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +5 -1
  391. package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +13 -0
  392. package/dist/types/components/salla-review-factors-tags/helpers.d.ts +16 -0
  393. package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +17 -0
  394. package/dist/types/components/salla-review-factors-tags/salla-review-factors-tags.d.ts +24 -0
  395. package/dist/types/components/salla-reviews-summary/interfaces.d.ts +5 -0
  396. package/dist/types/components/salla-reviews-summary/salla-reviews-summary.d.ts +2 -0
  397. package/dist/types/components.d.ts +114 -2
  398. package/package.json +5 -5
  399. package/dist/twilight/p-f12a28f9.entry.js +0 -4
  400. package/dist/twilight/p-f6205375.entry.js +0 -4
  401. package/dist/twilight/p-fc676125.entry.js +0 -4
@@ -1,8 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
5
- import { W as WishListIcon } from './star-ZT7ehBBk.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
+ import { S as Star } from './star-CeFAfcTv.js';
6
+ import { S as ShippingFast } from './shipping-fast-lMgMt31Q.js';
6
7
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
8
  import { H as Helper } from './Helper-BQ9mvrt9.js';
8
9
  import { I as ImageIcon } from './image-C-tzSDxw.js';
@@ -10,14 +11,7 @@ import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
10
11
  import { e as email } from './mail-DzAIgzdz.js';
11
12
  import { a as anime } from './anime.es-CgtvEd63.js';
12
13
 
13
- var ShippingFast = `<!-- Generated by IcoMoon.io -->
14
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
15
- <title>shipping-fast</title>
16
- <path d="M10.667 14.667c0-0.737-0.597-1.333-1.333-1.333h-8c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h8c0.736 0 1.333-0.596 1.333-1.333zM9.333 18.667c-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333 5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM9.333 26.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM1.333 10.667h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333zM31.123 13.103l-3.147-3.935c-1.273-1.589-3.171-2.501-5.205-2.501h-1.437c0-2.205-1.795-4-4-4h-13.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h13.333c0.735 0 1.333 0.597 1.333 1.333v1.333c0 0.248 0.087 0.468 0.204 0.667-0.117 0.199-0.204 0.419-0.204 0.667v5.333c0 0.737 0.597 1.333 1.333 1.333h9.333v6.667h-1.333c-0.063 0-0.117 0.028-0.179 0.036-0.583-2.313-2.664-4.036-5.155-4.036-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c2.491 0 4.572-1.723 5.155-4.036 0.061 0.008 0.116 0.036 0.179 0.036h2.667c0.736 0 1.333-0.596 1.333-1.333v-8.399c0-0.905-0.311-1.792-0.877-2.499zM21.333 13.333v-4h1.437c1.221 0 2.36 0.547 3.124 1.501l1.997 2.499zM22.667 26.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>
17
- </svg>
18
- `;
19
-
20
- const sallaRatingModalCss = "";
14
+ 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}";
21
15
 
22
16
  const SallaRatingModal = class {
23
17
  constructor(hostRef) {
@@ -33,6 +27,7 @@ const SallaRatingModal = class {
33
27
  this.deleteMode = false;
34
28
  this.shouldOpenDeleteModal = false;
35
29
  this.editItem = null;
30
+ this.enableNewPopUp = false;
36
31
  this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
37
32
  this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
38
33
  this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
@@ -143,10 +138,21 @@ const SallaRatingModal = class {
143
138
  setTranslations();
144
139
  });
145
140
  }
141
+ getV2Ref() {
142
+ return this.v2Ref ?? this.host.querySelector('salla-rating-modal-v2');
143
+ }
144
+ syncNewPopUpFlag() {
145
+ this.enableNewPopUp = !!salla.config.get('store.features')?.includes('new_popup_rating');
146
+ }
146
147
  /**
147
148
  * Show the rating modal
148
149
  */
149
150
  async open() {
151
+ await salla.onReady();
152
+ this.syncNewPopUpFlag();
153
+ if (this.enableNewPopUp) {
154
+ return this.getV2Ref()?.open();
155
+ }
150
156
  this.defaultMode = true;
151
157
  return new Promise((resolve) => {
152
158
  setTimeout(() => {
@@ -176,6 +182,11 @@ const SallaRatingModal = class {
176
182
  });
177
183
  }
178
184
  async openEditModal(params) {
185
+ await salla.onReady();
186
+ this.syncNewPopUpFlag();
187
+ if (this.enableNewPopUp) {
188
+ return this.getV2Ref()?.openEditModal(params);
189
+ }
179
190
  this.defaultMode = false;
180
191
  this.editMode = true;
181
192
  this.editType = params.type;
@@ -216,6 +227,11 @@ const SallaRatingModal = class {
216
227
  });
217
228
  }
218
229
  async openDeleteModal(params) {
230
+ await salla.onReady();
231
+ this.syncNewPopUpFlag();
232
+ if (this.enableNewPopUp) {
233
+ return this.getV2Ref()?.openDeleteModal(params);
234
+ }
219
235
  this.defaultMode = false;
220
236
  this.deleteMode = true;
221
237
  this.deleteFeedbackId = params.feedback_id;
@@ -240,6 +256,9 @@ const SallaRatingModal = class {
240
256
  * Show the rating modal
241
257
  */
242
258
  async close() {
259
+ if (this.enableNewPopUp) {
260
+ return this.getV2Ref()?.close();
261
+ }
243
262
  return this.modal.close();
244
263
  }
245
264
  // handle wizard
@@ -403,6 +422,9 @@ const SallaRatingModal = class {
403
422
  : null, h("div", { class: "s-rating-modal-footer s-rating-modal-footer-end" }, h("salla-button", { "loader-position": 'center', onClick: () => this.editReview() }, this.editReviewLabel)))));
404
423
  }
405
424
  render() {
425
+ if (this.enableNewPopUp) {
426
+ return (h(Host, { class: "s-rating-modal" }, h("salla-rating-modal-v2", { ref: (el) => (this.v2Ref = el), orderId: this.orderId })));
427
+ }
406
428
  if (this.deleteMode) {
407
429
  return h(Host, { class: "s-rating-modal" }, this.getDeleteModal());
408
430
  }
@@ -410,7 +432,7 @@ const SallaRatingModal = class {
410
432
  return h(Host, { class: "s-rating-modal" }, this.getEditModal());
411
433
  }
412
434
  if (this.defaultMode) {
413
- return (h(Host, { class: "s-rating-modal" }, h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: 'loading' }, h("div", { class: "s-rating-modal-skeleton" }, h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { height: '15px', width: '60%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map((v) => h("div", { key: v, innerHTML: WishListIcon }))), h("salla-skeleton", { height: '100px', width: '100%' }), h("div", { class: "s-rating-modal-skeleton-footer" }, h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
435
+ return (h(Host, { class: "s-rating-modal" }, h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: 'loading' }, h("div", { class: "s-rating-modal-skeleton" }, h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { height: '15px', width: '60%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map((v) => h("div", { key: v, innerHTML: Star }))), h("salla-skeleton", { height: '100px', width: '100%' }), h("div", { class: "s-rating-modal-skeleton-footer" }, h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
414
436
  ? [h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order?.testimonials_enabled ?
415
437
  h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, 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" })), h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))
416
438
  : '', this.order.products_enabled
@@ -438,10 +460,12 @@ const SallaRatingModal = class {
438
460
  : h("salla-placeholder", { alignment: "center" }))));
439
461
  }
440
462
  }
441
- componentWillLoad() {
463
+ async componentWillLoad() {
442
464
  salla.event.on('rating::open', () => this.open());
443
465
  salla.event.on('rating::edit', (params) => this.openEditModal(params));
444
466
  salla.event.on('rating::delete', (params) => this.openDeleteModal(params));
467
+ await salla.onReady();
468
+ this.syncNewPopUpFlag();
445
469
  }
446
470
  componentDidLoad() {
447
471
  salla.event.dispatch('rating::ready', this);
@@ -0,0 +1,125 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
+ import { S as Star } from './star2-D4oPi1Ov.js';
6
+
7
+ const CACHE_TTL = 5 * 60 * 1000;
8
+ const orderCache = new Map();
9
+ const inFlightRequests = new Map();
10
+ function normalizeList(value) {
11
+ if (!value) {
12
+ return [];
13
+ }
14
+ return Array.isArray(value) ? value : Object.values(value);
15
+ }
16
+ function getProductRatings(rating) {
17
+ if (!rating) {
18
+ return [];
19
+ }
20
+ return [
21
+ ...normalizeList(rating.product),
22
+ ...normalizeList(rating.products),
23
+ ];
24
+ }
25
+ function extractFactors(source) {
26
+ if (!source) {
27
+ return [];
28
+ }
29
+ for (const key of ['factor_reviews', 'review_factors', 'factors']) {
30
+ const value = source[key];
31
+ if (Array.isArray(value) && value.length) {
32
+ return value;
33
+ }
34
+ }
35
+ return [];
36
+ }
37
+ function findProductRating(productRatings, ratingId, productId, itemId) {
38
+ return productRatings.find((productRating) => {
39
+ if (ratingId && Number(productRating.id ?? productRating.feedback_id) === Number(ratingId)) {
40
+ return true;
41
+ }
42
+ if (itemId && Number(productRating.order_item_id) === Number(itemId)) {
43
+ return true;
44
+ }
45
+ if (productId && Number(productRating.product_id ?? productRating.product?.id) === Number(productId)) {
46
+ return true;
47
+ }
48
+ return false;
49
+ });
50
+ }
51
+ function resolveReviewFactors(order, ratingId, productId, itemId) {
52
+ const productRatings = getProductRatings(order?.rating);
53
+ const productRating = findProductRating(productRatings, ratingId, productId, itemId);
54
+ return extractFactors(productRating);
55
+ }
56
+ async function fetchOrder(orderId) {
57
+ if (!orderId) {
58
+ return null;
59
+ }
60
+ const cached = orderCache.get(orderId);
61
+ if (cached && Date.now() - cached.timestamp <= CACHE_TTL) {
62
+ return cached.data;
63
+ }
64
+ const pending = inFlightRequests.get(orderId);
65
+ if (pending) {
66
+ return pending;
67
+ }
68
+ const request = (async () => {
69
+ try {
70
+ const response = await salla.api.request(`orders/${orderId}`, '', 'get');
71
+ const data = response?.data ?? response;
72
+ orderCache.set(orderId, { data, timestamp: Date.now() });
73
+ return data;
74
+ }
75
+ catch (error) {
76
+ orderCache.delete(orderId);
77
+ throw error;
78
+ }
79
+ finally {
80
+ inFlightRequests.delete(orderId);
81
+ }
82
+ })();
83
+ inFlightRequests.set(orderId, request);
84
+ return request;
85
+ }
86
+
87
+ const sallaReviewFactorsTagsCss = ":host{display:inline-flex}.s-review-factors-tags-factors{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:flex-start;margin-bottom:0.6rem}.s-review-factors-tags-factor-tag{display:inline-flex;align-items:center;gap:0.25rem;border-radius:999px;border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);color:#374151;font-size:0.85rem;line-height:1;padding:0.4rem 0.65rem}.s-review-factors-tags-factor-rating{font-weight:600;color:#0f6a7c}.s-review-factors-tags-factor-star{display:inline-flex;width:0.8rem;height:0.8rem;fill:#0f6a7c}.s-review-factors-tags-factor-star svg{width:100%;height:100%}";
88
+
89
+ const SallaReviewFactorsTags = class {
90
+ constructor(hostRef) {
91
+ registerInstance(this, hostRef);
92
+ this.factors = [];
93
+ }
94
+ async componentWillLoad() {
95
+ await salla.onReady();
96
+ await this.loadFactors();
97
+ }
98
+ async loadFactors() {
99
+ if (!this.orderId) {
100
+ this.factors = [];
101
+ return;
102
+ }
103
+ try {
104
+ const order = await fetchOrder(this.orderId);
105
+ this.factors = resolveReviewFactors(order, this.ratingId, this.productId, this.itemId);
106
+ }
107
+ catch (error) {
108
+ console.error('[salla-review-factors-tags] failed to load order rating factors', error);
109
+ this.factors = [];
110
+ }
111
+ }
112
+ renderFactorTags() {
113
+ const factors = this.factors || [];
114
+ if (!factors.length) {
115
+ return null;
116
+ }
117
+ return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Star }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
118
+ }
119
+ render() {
120
+ return (h(Host, { key: '2645f00c58f3ecbd3b486756dd9977edc9ae66fd', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
121
+ }
122
+ };
123
+ SallaReviewFactorsTags.style = sallaReviewFactorsTagsCss;
124
+
125
+ export { SallaReviewFactorsTags as salla_review_factors_tags };
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DNWyGkAx.js';
5
- import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-BCdJLPcs.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-CrMCOyRb.js';
5
+ import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-BHv4YCak.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
7
  import { S as SITag } from './tag-cgSL_BIo.js';
8
8
  import { S as SICheck } from './check-BZp0rKEO.js';
9
9
  import { S as SICancel } from './cancel-8Tsmrwno.js';
10
- import { T as TrackedPromise } from './tracked-promise-CjtqaGP2.js';
10
+ import { T as TrackedPromise } from './tracked-promise-DoP8oegK.js';
11
11
 
12
12
  const sallaLoyaltyProgramCss$3 = "";
13
13
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { H as Helper } from './Helper-BQ9mvrt9.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -129,10 +129,10 @@ const SallaSearch = class {
129
129
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
130
130
  }
131
131
  render() {
132
- const searchContent = (h("div", { key: 'ca8dec5eb90cd0893a1a3364df34ba0ee4d60891', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '212f8180ecca220a8b89231311dec6cdf3ef0b06', class: "s-search-input-wrapper" }, h("span", { key: '51fb0f9a2e342afd35eb82b57f55471aa9e1519f', class: "s-search-icon-wrap" }, h("span", { key: 'e75117068c51c6d200e8e20fa0f00ca02ed0c61d', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '442b1704b75a33e8c9e02da8200151a1d8e8db72', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
132
+ const searchContent = (h("div", { key: '4b97f190e4fcceb6d3f0bafecffc46aca578a657', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '4ce6eff390279cdca5dccf26fc2d27a53511b8d3', class: "s-search-input-wrapper" }, h("span", { key: 'bee65f6f7735601d44aa6fb58482d4632f70ed68', class: "s-search-icon-wrap" }, h("span", { key: '4d95d81c5ac952aabf40e70b1f06c17ec9d0df50', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: 'bf605abb622e46632be9e2cc47b8eaec5823b3cf', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
133
133
  height: this.height + 'px',
134
134
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
135
- } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: 'f3b40ce4ec24678f6d8421f3da8ac9e1bd631c3a', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
135
+ } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '46b979e82da5d5b03cdb348bbb3f0f5828087949', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
136
136
  's-search-product': true,
137
137
  's-search-product-not-available': !product.is_available,
138
138
  }, innerHTML: this.productSlot
@@ -141,9 +141,9 @@ const SallaSearch = class {
141
141
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
142
142
  ? salla.money(product.regular_price)
143
143
  : '')
144
- .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'fdbb21061c599a59c6d828eec80e8d591a708cca', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
145
- const modalContent = (h("salla-modal", { key: 'ca90aea3fb92d1ba7d8270c26e2ecd82d5018784', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
146
- const placeholderContent = (h("div", { key: '73333ce51cabadc4963a9fe9d1372bb7d63925c8', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '77a66e9bba504557160c8c50d91f1216cc68f253', class: "s-search-input-wrapper" }, h("span", { key: '18fb5ce6e3e72874e76dd1ef2c6db8718a68f778', class: "s-search-icon-wrap" }, h("span", { key: '63b9e9af1c51647df734cc4d5cf7a825b922ce38', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'b70169ed2d80ec2ad6b09952ad104824610212df', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
144
+ .replace(/\{image\}/g, product.image.url) }))), h("p", { key: '484dbcb11952df2a5d100dfc176c98359b059070', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
145
+ const modalContent = (h("salla-modal", { key: 'b35ef402291810a005673d3d55227cc7919c593a', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
146
+ const placeholderContent = (h("div", { key: 'cff9e90ce4641545cd97d2946f52f49e4fbada91', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'd48ebc0c07ef4dc154cca5d99cfa652bf06cb84c', class: "s-search-input-wrapper" }, h("span", { key: 'b0c4055476bc996d3be3df9af49dc7fead72dabc', class: "s-search-icon-wrap" }, h("span", { key: '55c84b48d01ed6da83e802904ca1e0df7afc6060', class: "s-search-icon", innerHTML: Search })), h("button", { key: '86356037f4bf117bef07d4afd1569342e2e729c7', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
147
147
  height: this.height + 'px',
148
148
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
149
149
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
5
 
6
6
  const sallaSkeletonCss = ":host{display:block}";
7
7
 
@@ -26,7 +26,7 @@ const SallaSkeleton = class {
26
26
  's-skeleton-item': true,
27
27
  's-skeleton-item-circular': this.type == 'circle',
28
28
  };
29
- return (h(Host, { key: '7b36da96585cfefe9aa96df6262be14f6a03c585', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '568ae1bc0aeae182bb32468b19601c0245e9617d', class: classes }, "\u00A0")));
29
+ return (h(Host, { key: 'deeabec297427c67935decac658fec39d3de2a96', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '14ad7e998011a41f9d6b3c942748704b887d064a', class: classes }, "\u00A0")));
30
30
  }
31
31
  };
32
32
  SallaSkeleton.style = sallaSkeletonCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
7
7
  import { e as email } from './mail-DzAIgzdz.js';
@@ -371,7 +371,7 @@ const SallaSocialShare = class {
371
371
  })));
372
372
  }
373
373
  render() {
374
- return (h("div", { key: 'e934ffb94fea491d445e62f26fcf98914ff0a399', class: "s-social-share-wrapper" }, h("slot", { key: '8dbf4a0c3fb6fb17a0a7c32ace57b357708c0678', name: "widget" }, h("salla-button", { key: 'eb6459bc99d4587bbfc6c0399003a2860d6992b0', "aria-label": "Share", onClick: () => this.toggle(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '3394f64755bd0bc07839b1a513f5459c8258f096', innerHTML: this.opened ? SICancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
374
+ return (h("div", { key: '39624373671142e55397431ea0fa5e9562f67c35', class: "s-social-share-wrapper" }, h("slot", { key: 'e6a09f4b0a93ae3356982cd9a278633f94f8d6cb', name: "widget" }, h("salla-button", { key: 'e07ee3d79e39f2c2eefa07d89aafa316040085dc', "aria-label": "Share", onClick: () => this.toggle(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '0aa867b61db4fbaac7c087e28501f0eaf6800d5d', innerHTML: this.opened ? SICancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
375
375
  }
376
376
  get host() { return getElement(this); }
377
377
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -55,7 +55,7 @@ const SallaSocial = class {
55
55
  }
56
56
  render() {
57
57
  const linksArray = this.getLinksArray();
58
- return (h(Host, { key: 'e7d69dbae46ef54588471875ada751103d14d393' }, h("ul", { key: 'ff4b15127e6664cca17fa7f6f49e4cda25829d74', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
58
+ return (h(Host, { key: '26d3fc5383ae5779a4b077b5487d363045c305fb' }, h("ul", { key: '70f9a23a493c1cadeeb0f097fde1f601525eb0e8', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
59
  .replace(/\{icon\}/g, this.iconsList[link.type])
60
60
  .replace(/\{type\}/g, link.type)
61
61
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, c as createEvent, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-CrMCOyRb.js';
5
5
 
6
6
  const sallaTabContentCss = "";
7
7
 
@@ -31,7 +31,7 @@ const SallaTabContent = class {
31
31
  's-tabs-content': true,
32
32
  's-tabs-content-selected': this.isSelected
33
33
  };
34
- return (h("div", { key: 'f5cfa9676bc8314149cb78e103b9ef580c0d7559', class: classes }, h("slot", { key: '1b86591377c09f1acb25cda20024b3af9c6a874d' })));
34
+ return (h("div", { key: 'cc5ef1c683b375542a5ae62747288b5aabd12341', class: classes }, h("slot", { key: '5c131ec54cfa1f5044af6aa652acb66f0135946b' })));
35
35
  }
36
36
  };
37
37
  SallaTabContent.style = sallaTabContentCss;
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
90
90
  's-tabs-active': this.isSelected,
91
91
  };
92
92
  return [
93
- h("div", { key: 'a9548ed2a74d30e6fcf365dbe26aa5f7fdab2468', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '547edd40aab5843c6035bd3c36a34d9449dc12d3' })),
93
+ h("div", { key: 'b895bb8a17ac2d2e4c4e573402c4307dfa8f0b65', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '89099b6e7c217a61632c3ff8e6fcf6c141f4a755' })),
94
94
  ];
95
95
  }
96
96
  };
@@ -143,7 +143,7 @@ const SallaTabs = class {
143
143
  }
144
144
  render() {
145
145
  return [
146
- h("div", { key: 'e9054cb114c2bd66940b6afa98d7c7c230353a74', class: "s-tabs" }, h("div", { key: 'd245f64aef9b7fd77c9c51eb1d86ddfd9202e5fb', class: "s-tabs-header" }, h("slot", { key: 'f1b9a982cd746d637db5d514cb691f188af0cb7e', name: "header" })), h("div", { key: '0ba8441707b087a8c4d068b1a72bf10c8efb41cc', class: "s-tabs-content-wrapper" }, h("slot", { key: 'afcee28724a5a9ce263fcc3a38d624a631069945', name: "content" })))
146
+ h("div", { key: 'bc2ee0fc01451eec9ecc1b4cf341fd46acffa719', class: "s-tabs" }, h("div", { key: 'b6ccd64ef599c25510a8c7f2f1ea602fa09ed939', class: "s-tabs-header" }, h("slot", { key: '8c8826aa6ecd214018a71cc36c34343ccec6172b', name: "header" })), h("div", { key: '01444adfa11f0daccbd3814b938955f374715ccb', class: "s-tabs-content-wrapper" }, h("slot", { key: '9d520842f16e6eee3a515f04f577d0f8f09c484e', name: "content" })))
147
147
  ];
148
148
  }
149
149
  get host() { return getElement(this); }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-CrMCOyRb.js';
5
5
 
6
6
  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}";
7
7
 
@@ -31,7 +31,7 @@ const SallaTooltip = class {
31
31
  }
32
32
  render() {
33
33
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
34
- return (h("div", { key: '84dfb23d4eb2689ff71b65c4a8b24dd36f8cb6ca', class: "s-tooltip-container" }, h("div", { key: '59d3bac320e20f99de1c4bf49531a61962190efc', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
34
+ return (h("div", { key: '449a90d32ba963fcccd459a59c89ccd7a1d987cb', class: "s-tooltip-container" }, h("div", { key: '4d0a51aeb7e1b640d618948b1bda7170fa4b1264', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
35
35
  }
36
36
  get el() { return getElement(this); }
37
37
  };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
5
 
6
6
  const sallaTrustBadgesCss = "";
7
7
 
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
6
6
  import { B as BellRing } from './bell-ring-D3mWkc-3.js';
7
7
  import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
8
- import { W as WishListIcon } from './star-ZT7ehBBk.js';
8
+ import { S as Star } from './star-CeFAfcTv.js';
9
9
  import { S as SICancel } from './cancel-8Tsmrwno.js';
10
- import { S as Star } from './star2-D4oPi1Ov.js';
10
+ import { S as Star$1 } from './star2-D4oPi1Ov.js';
11
11
  import { S as SIGift } from './gift-CXRKXFgT.js';
12
12
 
13
13
  var OrderIcon = `<!-- Generated by IcoMoon.io -->
@@ -103,7 +103,7 @@ const SallaUserMenu = class {
103
103
  notifications: BellRing,
104
104
  orders: OrderIcon,
105
105
  pending_orders: PendingOrdersIcon,
106
- wishlist: WishListIcon,
106
+ wishlist: Star,
107
107
  wallet: WalletIcon,
108
108
  loyalty_points: SIGift,
109
109
  profile: UserCircle
@@ -119,7 +119,7 @@ const SallaUserMenu = class {
119
119
  this.items = this.sallaAccountEnabled ? { ...this.items, settings: SettingstIcon } : this.items;
120
120
  //we need it only in theme-y
121
121
  if (this.host.hasAttribute('with-rating')) {
122
- this.items.rating = Star;
122
+ this.items.rating = Star$1;
123
123
  }
124
124
  //we need it to be the last item
125
125
  this.items.logout = LogoutIcon;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h } from './index-CrMCOyRb.js';
5
5
  import { G as Genders } from './interfaces-OF8QcbMM.js';
6
6
 
7
7
  const sallaUserProfileCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
5
 
6
6
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -78,7 +78,7 @@ const SallaUserSettings = class {
78
78
  await salla.profile.delete().finally(() => this.confirmationModal.close());
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: 'ae94c12d52ff04f41f08d4a107a35aa2bd94ee0a', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '5b46a680b85fc72976c5c3d4f478b64b6c1d483c', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'b41bb42ea03a2ed63c7664d0b98ee045110c31d0' }, h("div", { key: '29abb43471c5160b7817f153c8968593332e7826', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '3fd763ac2437570eed2073acb6b57cbdd0f1cdac', innerHTML: UserCancel })), h("div", { key: 'cbff9be1b97a31a11d1b10d88d2408070047fd3b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '5fd0a91c56d9b8deeed04fb52a033fe5c1ad84ee', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '81ed76bd7b69ae7b16440f131cd78905d33da607', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'ae98c8814636b4e6008c421b291353ba2c4b91e7', class: "s-toggle" }, h("input", { key: '0c01d7706053667e80539a0a293ea21f4304e423', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '31d91e01bc2a28a6cd81af024b99bd42f1a04947', class: "s-toggle-switcher" }))))), h("div", { key: '7dd3c504babb5b79d07d08c5665cd5e080cb9a4d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '9573ce56a617ac5c3e64f7cd868269f7f5f991cd' }, h("div", { key: 'deb424768ebb4b1086067816f4359e5b56da6044', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'db74169678f85313ef3b6c9a5ff92f8afaf012c2', innerHTML: Bullhorn })), h("div", { key: '569cc0dd9462bb606dab18116c071acb49fd8f48', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'fbe15f41b42ee2f98585ae29ff985cbe3b6f0ef1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'c1a4fd8a0a340a73adb9efac7c7d75534b13ce3a', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'fade0f4d1a9214169bb087900561afd482674a75', class: "s-toggle" }, h("input", { key: '87cf0b041a89d79b23c2dd0d929c3b14dd18fb96', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '7812c9a8f51a7ad64172db275ac050f8b45ec6e5', class: "s-toggle-switcher" }))))), h("div", { key: '7224d14d365a9fd767e2b900dd1e30c6bee69e7e', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: 'cb61e0a146115885a36455159d808d7edbbdff5b' }, h("div", { key: 'c073c1bbca5ae9496a4116323611d15f33d68566', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'ed78cb19724511219f35ed85e3d915ced708d46c', innerHTML: UserOff })), h("div", { key: 'f8a9ba483b7af0216536a130554186b722f9ad6e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'fd9cdf72725204e320c56b1bd6ac4cf2d77d2176', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '739a99cfb762cd18d91c955b218ab0d06a289a9a', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c2fd322ae8ff4060c21c65cfdd8b1d89bb338e3f', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'f8c8a2922ffd79d2dc04a35cf964882526b6b91c', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'b036e50b12f521c0f623ae7afded1113b0fc20ab', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '0ae61369ece6d96056e0b461ba7a3e0104e00583', class: "s-user-settings-confirmation" }, h("div", { key: 'ef2eef33396e9eaa0c43d2196e43b61917f3c5fe', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '1656cb466302c11990d5e0d9833b21cb47766846', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'ce75f721106b103e6c7f2cfc75f8be08aba54f9c', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '006ceecf237eee2febde96ff584eb8256b820049', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
81
+ return (h(Host, { key: '76e95ae08b8d3d934076fdadb87b23c4606eadde', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: 'feb63389157a1a007becfa45cbfd564adc63dd68', class: "s-user-settings-section" }, h("salla-list-tile", { key: '8506e24e228e9a59b4fa59e3a866686d2cc255c0' }, h("div", { key: 'a6bc59a84423e8a5f65a2a3ea1ab9db251ddc1e2', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '828ba49bef3821ba4fbbea23e07f37d57984b0ff', innerHTML: UserCancel })), h("div", { key: 'ed332f5854e5a3d028a94df3b2538c5b0bdb0ca1', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '19f89aa5d12f4c08f41be28a1c862eba2c86150e', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '5a4f9b9e130ad72101ff6a493b78bdf0738db0fe', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '00cee0e5c9bf4a919c7be37ac62df607ad106209', class: "s-toggle" }, h("input", { key: '5bdd4026041443e79ed95242aae0ae8f1c61cd28', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '7cb153f865d56a081448bf130d0dfd2bc1ede203', class: "s-toggle-switcher" }))))), h("div", { key: '5620b4facff1e9c674abc240ee2bf8b6237f1fbb', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'b4a692bae833373a3b6581418af8ffa00b7f73a7' }, h("div", { key: 'c6537db1d992c558c93b9c5af60989ebe3c63348', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '4bcf789ad42596769768d7e5ae5a88bdc9ee231b', innerHTML: Bullhorn })), h("div", { key: '976f8915e679d754948dd08a5ff7d8b0320b4da3', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '10f4d900aded91b3cb20fa5b035469a7fc450ad1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'dd05f000aa1e957ac2e8af717a473823145ff5b4', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'a5aea06c99e51feaa830dc1ca8c3c3822ad65f53', class: "s-toggle" }, h("input", { key: '2dc941eff3db9c3e19dbfb37031b61dfc316411e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '264de991096e020e35f76818478ccbc391aef974', class: "s-toggle-switcher" }))))), h("div", { key: '0f3d06196ee4834a23cced30a825c65302346216', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '24a610796c16ff56a669370f51bca809cbed4c71' }, h("div", { key: '5077fc40225254a6229809cf7c0cd189a09ce4f3', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '233ebdeadb3e334bde45ff13cfd44d969392d7c7', innerHTML: UserOff })), h("div", { key: '33a12b3922ad71198d165e1f8664bfe4a493ee94', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'e2a872d965bf1c549cb074d312e31e520ae1f093', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '10b3e3fa5d708a2410d7dc59e408c2dde46a3b75', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'fd70ec26eb9c8ccd9091c525589cb2dd6ea54726', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'c44d0984c20285753fb24471ad96bd760442405c', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'd40430003d5a59367a3be7060452dfccfb96407f', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'e9222043b55fe1afe6d7a77b1b97f97b089c256d', class: "s-user-settings-confirmation" }, h("div", { key: '39142484741c00634eaf278fc31c65ece79f683a', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '3a251ff22553250d972b99a959a6fc8cca7e3566', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'c69bbdaacaaf144aeb75ff50c71859db3189a18c', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '38355dfb44f8639cc01e075ea5a9ef7acb68e55f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
82
82
  }
83
83
  };
84
84
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-CrMCOyRb.js';
5
5
  import { e as email } from './mail-DzAIgzdz.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DNWyGkAx.js';
4
+ import { r as registerInstance, h, H as Host } from './index-CrMCOyRb.js';
5
5
 
6
6
  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}";
7
7