@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
@@ -0,0 +1,135 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { Host, h } from "@stencil/core";
5
+ import Star2 from "../../assets/svg/star2.svg";
6
+ import { fetchOrder, resolveReviewFactors } from "./helpers";
7
+ export class SallaReviewFactorsTags {
8
+ constructor() {
9
+ this.factors = [];
10
+ }
11
+ async componentWillLoad() {
12
+ await salla.onReady();
13
+ await this.loadFactors();
14
+ }
15
+ async loadFactors() {
16
+ if (!this.orderId) {
17
+ this.factors = [];
18
+ return;
19
+ }
20
+ try {
21
+ const order = await fetchOrder(this.orderId);
22
+ this.factors = resolveReviewFactors(order, this.ratingId, this.productId, this.itemId);
23
+ }
24
+ catch (error) {
25
+ console.error('[salla-review-factors-tags] failed to load order rating factors', error);
26
+ this.factors = [];
27
+ }
28
+ }
29
+ renderFactorTags() {
30
+ const factors = this.factors || [];
31
+ if (!factors.length) {
32
+ return null;
33
+ }
34
+ 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: Star2 }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
35
+ }
36
+ render() {
37
+ return (h(Host, { key: '2645f00c58f3ecbd3b486756dd9977edc9ae66fd', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
38
+ }
39
+ static get is() { return "salla-review-factors-tags"; }
40
+ static get originalStyleUrls() {
41
+ return {
42
+ "$": ["salla-review-factors-tags.scss"]
43
+ };
44
+ }
45
+ static get styleUrls() {
46
+ return {
47
+ "$": ["salla-review-factors-tags.css"]
48
+ };
49
+ }
50
+ static get properties() {
51
+ return {
52
+ "orderId": {
53
+ "type": "number",
54
+ "attribute": "order-id",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "number",
58
+ "resolved": "number",
59
+ "references": {}
60
+ },
61
+ "required": true,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": "Order ID used to fetch rating factors from `GET /orders/{order_id}`."
66
+ },
67
+ "getter": false,
68
+ "setter": false,
69
+ "reflect": false
70
+ },
71
+ "ratingId": {
72
+ "type": "number",
73
+ "attribute": "rating-id",
74
+ "mutable": false,
75
+ "complexType": {
76
+ "original": "number",
77
+ "resolved": "number",
78
+ "references": {}
79
+ },
80
+ "required": false,
81
+ "optional": true,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": "Product rating feedback ID."
85
+ },
86
+ "getter": false,
87
+ "setter": false,
88
+ "reflect": false
89
+ },
90
+ "productId": {
91
+ "type": "number",
92
+ "attribute": "product-id",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "number",
96
+ "resolved": "number",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": true,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "Product ID used to match the rated line item."
104
+ },
105
+ "getter": false,
106
+ "setter": false,
107
+ "reflect": false
108
+ },
109
+ "itemId": {
110
+ "type": "number",
111
+ "attribute": "item-id",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "number",
115
+ "resolved": "number",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": true,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": "Order item ID used to match the rated line item."
123
+ },
124
+ "getter": false,
125
+ "setter": false,
126
+ "reflect": false
127
+ }
128
+ };
129
+ }
130
+ static get states() {
131
+ return {
132
+ "factors": {}
133
+ };
134
+ }
135
+ }
@@ -85,7 +85,7 @@ export class SallaReviews {
85
85
  });
86
86
  }
87
87
  render() {
88
- return (h("div", { key: '24e50ca2634208ad3ffcb9ca503aa7e18331b3a1', class: "s-reviews-container" }, h("div", { key: 'a1632306fc1a92051d030707aab075c825537e01', class: "s-reviews-header-wrapper" }, h("h1", { key: 'e2a4df75011da111e89c1b732e7741ddf452b9d5', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '89009e55e3a5121c241295efd510405b623f45c3', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: '8b6b8df42043c8ecdb05dbbc30ecacde297f0dda', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
88
+ return (h("div", { key: '242c98e813b49a8fae5b1f58a1bc7e61425834bd', class: "s-reviews-container" }, h("div", { key: 'a896d0fda0e9c5a784e813590ded4cdf9ae0e6ae', class: "s-reviews-header-wrapper" }, h("h1", { key: 'ff085d49e3363d305389ae36e14ebb01151ebe46', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: 'a6baa7db6f0a1233a46897caaea76469b945f681', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'edb56b99674d534fc4b18178816cbced4ed22882', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
89
89
  }
90
90
  static get is() { return "salla-reviews"; }
91
91
  static get originalStyleUrls() {
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
142
142
  return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
143
143
  }
144
144
  render() {
145
- return (h("host", { key: 'b82b491ae189f825367881b7b4f03ad64e471aae' }, h("div", { key: 'd124f10806cfabd1c1f85044786541011edff3ff', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '30c58bb14bea27da968e874a0c1454a35e8db207', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: '8850771469ae20d1b07efcb45be58738de377e6d', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '5a0060c5bdbfe4d37003b04d4c6368460be8cd38', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '637d1aeec005ae662c6019c423ef3f1c3a6ff264', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '5b68b9441d4647f12583c71da61958c30c0dcda6', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
145
+ return (h("host", { key: '3bb188bd0ddcff6333a47ad3821ad9f75706ac6a' }, h("div", { key: 'ae139cb0f8e4921e95c695ececc6633e79486ae0', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '422bc1b53c10d0c0e87b701580e049fde71f2871', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'd43661c7d358ba1bc99762fdd92b0c9e68a86427', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '3255662d8c1895bf640ae02e480a1c597e37ff87', class: "s-reviews-page-filter-wrapper" }, h("label", { key: 'c2d02265c6adde573a9e282380e670ed2926e68a', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '67de9329c56bd70740e66c3c119a6396ce1c6006', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
146
146
  this.wrapper = el;
147
147
  } }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
148
148
  : h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
@@ -1,3 +1,63 @@
1
1
  :host {
2
2
  display: block;
3
+ }
4
+
5
+ .s-reviews-summary-overall-section {
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-start;
9
+ gap: 0.35rem;
10
+ padding: 0 0.5rem;
11
+ }
12
+
13
+ .s-reviews-summary-overall-label {
14
+ color: #111827;
15
+ font-size: 1.15rem;
16
+ font-weight: 600;
17
+ line-height: 1.3;
18
+ margin-bottom: 0.75rem;
19
+ }
20
+
21
+ .s-reviews-summary-overall-row {
22
+ display: inline-flex;
23
+ align-items: flex-start;
24
+ gap: 0.7rem;
25
+ }
26
+
27
+ .s-reviews-summary-factors {
28
+ display: flex;
29
+ flex-wrap: wrap;
30
+ gap: 0.5rem;
31
+ justify-content: flex-start;
32
+ margin-bottom: 0.6rem;
33
+ }
34
+
35
+ .s-reviews-summary-factor-tag {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ gap: 0.25rem;
39
+ border-radius: 999px;
40
+ border: 1px solid #e8e8e8;
41
+ background: rgba(255, 255, 255, 0.3);
42
+ color: #374151;
43
+ font-size: 0.85rem;
44
+ line-height: 1;
45
+ padding: 0.4rem 0.65rem;
46
+ }
47
+
48
+ .s-reviews-summary-factor-rating {
49
+ font-weight: 600;
50
+ color: #0f6a7c;
51
+ }
52
+
53
+ .s-reviews-summary-factor-star {
54
+ display: inline-flex;
55
+ width: 0.8rem;
56
+ height: 0.8rem;
57
+ fill: #0f6a7c;
58
+ }
59
+
60
+ .s-reviews-summary-factor-star svg {
61
+ width: 100%;
62
+ height: 100%;
3
63
  }
@@ -33,10 +33,12 @@ export class SallaReviewsSummary {
33
33
  return Salla.lang.onLoaded(() => {
34
34
  Salla.lang.addBulk({
35
35
  "blocks.comments.based_on": { ar: "بناءً على", en: "Based on" },
36
- "blocks.comments.recommended": { ar: "أوصوا بالمنتج", en: "Recommended" }
36
+ "blocks.comments.recommended": { ar: "أوصوا بالمنتج", en: "Recommended" },
37
+ "blocks.comments.overall_rating": { ar: "التقييم العام", en: "Overall rating" }
37
38
  });
38
39
  this.basedOnLabel = salla.lang.get('blocks.comments.based_on');
39
40
  this.recommendedLabel = salla.lang.get('blocks.comments.recommended');
41
+ this.overallRatingLabel = salla.lang.get('blocks.comments.overall_rating');
40
42
  });
41
43
  }
42
44
  async loadSummary() {
@@ -60,6 +62,13 @@ export class SallaReviewsSummary {
60
62
  console.error('Error loading reviews summary:', error);
61
63
  }
62
64
  }
65
+ renderFactorTags() {
66
+ const factors = this.data?.factors || [];
67
+ if (!factors.length) {
68
+ return null;
69
+ }
70
+ return (h("div", { class: "s-reviews-summary-factors" }, factors.map(factor => (h("div", { class: "s-reviews-summary-factor-tag" }, h("span", { class: "s-reviews-summary-factor-name" }, factor.name), h("span", { class: "s-reviews-summary-factor-star", innerHTML: Star2 }), h("span", { class: "s-reviews-summary-factor-rating" }, factor.rating || ''))))));
71
+ }
63
72
  renderRecommendation() {
64
73
  if (!this.showRecommendation || !this.data?.recommendation) {
65
74
  return null;
@@ -87,7 +96,7 @@ export class SallaReviewsSummary {
87
96
  const percentage = ratings[rating];
88
97
  return (h("div", { key: rating, class: "s-reviews-summary-row" }, h("div", { class: "s-reviews-summary-row-rate" }, rating, " ", h("span", { innerHTML: Star2 })), h("salla-progress-bar", { class: "s-reviews-summary-progress", value: percentage, target: 100, hideUnits: true, height: '16px' }), h("span", { class: "s-reviews-summary-percentage" }, percentage, "%")));
89
98
  });
90
- return (h(Host, { class: "s-reviews-summary-wrapper" }, h("div", { class: "s-reviews-summary-header" }, h("div", { class: "s-reviews-summary-header-section" }, h("h3", { class: "s-reviews-summary-average" }, this.data.rating), h("div", null, h("salla-rating-stars", { size: 'large', value: this.data.rating }), h("p", { class: "s-reviews-summary-count" }, this.basedOnLabel, " ", salla.helpers.number(salla.lang.choice('pages.rating.reviews', this.data.count))))), this.renderRecommendation()), h("div", { class: "s-reviews-summary-rows" }, reviewElements)));
99
+ return (h(Host, { class: "s-reviews-summary-wrapper" }, h("div", { class: "s-reviews-summary-header" }, h("div", { class: "s-reviews-summary-overall-section items-start" }, h("p", { class: "s-reviews-summary-overall-label" }, this.overallRatingLabel), h("div", { class: "s-reviews-summary-overall-row" }, h("h3", { class: "s-reviews-summary-average" }, this.data.rating), h("div", null, h("salla-rating-stars", { size: 'large', value: this.data.rating }), h("p", { class: "s-reviews-summary-count" }, this.basedOnLabel, " ", salla.helpers.number(salla.lang.choice('pages.rating.reviews', this.data.count)))))), this.renderFactorTags(), this.renderRecommendation()), h("div", { class: "s-reviews-summary-rows" }, reviewElements)));
91
100
  }
92
101
  static get is() { return "salla-reviews-summary"; }
93
102
  static get originalStyleUrls() {
@@ -129,6 +138,7 @@ export class SallaReviewsSummary {
129
138
  "canRender": {},
130
139
  "basedOnLabel": {},
131
140
  "recommendedLabel": {},
141
+ "overallRatingLabel": {},
132
142
  "showRatingSummary": {},
133
143
  "recommendationOnly": {},
134
144
  "showRecommendation": {}
@@ -127,10 +127,10 @@ export class SallaSearch {
127
127
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
128
128
  }
129
129
  render() {
130
- 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: {
130
+ 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: {
131
131
  height: this.height + 'px',
132
132
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
133
- } }), 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: {
133
+ } }), 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: {
134
134
  's-search-product': true,
135
135
  's-search-product-not-available': !product.is_available,
136
136
  }, innerHTML: this.productSlot
@@ -139,9 +139,9 @@ export class SallaSearch {
139
139
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
140
140
  ? salla.money(product.regular_price)
141
141
  : '')
142
- .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')))));
143
- const modalContent = (h("salla-modal", { key: 'ca90aea3fb92d1ba7d8270c26e2ecd82d5018784', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
144
- 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: {
142
+ .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')))));
143
+ const modalContent = (h("salla-modal", { key: 'b35ef402291810a005673d3d55227cc7919c593a', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
144
+ 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: {
145
145
  height: this.height + 'px',
146
146
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
147
147
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -188,18 +188,18 @@ export class SallaSearchableDropdown {
188
188
  render() {
189
189
  const hasSelection = this.selectedItem != null;
190
190
  const listboxId = `${this.inputId}-listbox`;
191
- return (h(Host, { key: 'e95aedae8c83fe27ef5e94065bd34a0c105ab565', class: "s-searchable-dropdown" }, h("div", { key: '3bd95a9a3652934d7a0904b6813f372a517dc415', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '85b95c812b9aa2c496b394a750c362d69c50546a', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: 'a863108db25faffd654d2a49832c9ab78c4d3124', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'fb3ce40726d9b5f0060d1279bd0a17339da978b1', class: {
191
+ return (h(Host, { key: '2186dbcef9e4926620a4756ce1cd6050a83ea390', class: "s-searchable-dropdown" }, h("div", { key: 'cb43fc429e50e64b56bd136254da1369bf407fed', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '07369f279ec000a2ac158f2a4f8f3df79c64be45', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '26859210300466d5ae3934e5d99ee6b3eb118a0d', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '225d02066f038cfae7d94324b27a68f398a869a6', class: {
192
192
  's-searchable-dropdown-trigger': true,
193
193
  's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
194
194
  's-searchable-dropdown-trigger--open': this.isOpen,
195
- }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '493e615e79b3483aca3bf2b40c45b8be38190788', class: {
195
+ }, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '5a8b9eae4425b704b9c3a23fc543ce191bd976fb', class: {
196
196
  'sicon-keyboard_arrow_down': true,
197
197
  's-searchable-dropdown-trigger-icon': true,
198
198
  's-searchable-dropdown-trigger-icon--open': this.isOpen,
199
- }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'db839d1fcc73c7bc68cd324ca2e8c91f42bb991c', class: {
199
+ }, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'adc8cbb28c042e8ea253e5449c946ba5e85874e9', class: {
200
200
  's-searchable-dropdown-panel': true,
201
201
  's-searchable-dropdown-panel--up': this.dropUp,
202
- }, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'd3b91389e90e87345672cd7ec630b555114372b2', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '67d56ff8ad837b683d12fb750ccee6412bd8de4c', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'f400a683b9b54ae8e448279ce19130cb346dcc5f', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '75bd2f369824326cb1ef87c5f3dad2e80975f4d9', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
202
+ }, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: 'ec8ec623a82eefb8d893b31e23384047b343475f', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'ffeb5f7b1c9e456ca5145f76dfa80c46c3639f28', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'b9bc781fc7429735999b1e88f775fb8ddfb9c249', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '5ac1e061dfccf92c437c5df02f02797b9e281eb9', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
203
203
  }
204
204
  renderListContent() {
205
205
  if (this.searching || this.loading) {
@@ -22,7 +22,7 @@ export class SallaSkeleton {
22
22
  's-skeleton-item': true,
23
23
  's-skeleton-item-circular': this.type == 'circle',
24
24
  };
25
- return (h(Host, { key: '7b36da96585cfefe9aa96df6262be14f6a03c585', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '568ae1bc0aeae182bb32468b19601c0245e9617d', class: classes }, "\u00A0")));
25
+ return (h(Host, { key: 'deeabec297427c67935decac658fec39d3de2a96', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '14ad7e998011a41f9d6b3c942748704b887d064a', class: classes }, "\u00A0")));
26
26
  }
27
27
  static get is() { return "salla-skeleton"; }
28
28
  static get originalStyleUrls() {
@@ -31,7 +31,7 @@ export class SallaSocial {
31
31
  }
32
32
  render() {
33
33
  const linksArray = this.getLinksArray();
34
- 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
34
+ 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
35
35
  .replace(/\{icon\}/g, this.iconsList[link.type])
36
36
  .replace(/\{type\}/g, link.type)
37
37
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -345,7 +345,7 @@ export class SallaSocialShare {
345
345
  })));
346
346
  }
347
347
  render() {
348
- 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 ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
348
+ 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 ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
349
349
  }
350
350
  static get is() { return "salla-social-share"; }
351
351
  static get originalStyleUrls() {
@@ -30,7 +30,7 @@ export class SallaTabContent {
30
30
  's-tabs-content': true,
31
31
  's-tabs-content-selected': this.isSelected
32
32
  };
33
- return (h("div", { key: 'f5cfa9676bc8314149cb78e103b9ef580c0d7559', class: classes }, h("slot", { key: '1b86591377c09f1acb25cda20024b3af9c6a874d' })));
33
+ return (h("div", { key: 'cc5ef1c683b375542a5ae62747288b5aabd12341', class: classes }, h("slot", { key: '5c131ec54cfa1f5044af6aa652acb66f0135946b' })));
34
34
  }
35
35
  static get is() { return "salla-tab-content"; }
36
36
  static get originalStyleUrls() {
@@ -52,7 +52,7 @@ export class SallaTabHeader {
52
52
  's-tabs-active': this.isSelected,
53
53
  };
54
54
  return [
55
- h("div", { key: 'a9548ed2a74d30e6fcf365dbe26aa5f7fdab2468', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '547edd40aab5843c6035bd3c36a34d9449dc12d3' })),
55
+ h("div", { key: 'b895bb8a17ac2d2e4c4e573402c4307dfa8f0b65', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '89099b6e7c217a61632c3ff8e6fcf6c141f4a755' })),
56
56
  ];
57
57
  }
58
58
  static get is() { return "salla-tab-header"; }
@@ -50,7 +50,7 @@ export class SallaTabs {
50
50
  }
51
51
  render() {
52
52
  return [
53
- 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" })))
53
+ 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" })))
54
54
  ];
55
55
  }
56
56
  static get is() { return "salla-tabs"; }
@@ -123,7 +123,7 @@ export class SallaTelInput {
123
123
  }
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: '727fa47d71bd8fd98f76c66b3bafb2348a586303', class: "s-tel-input" }, h("input", { key: '19f5d3e2ff8902733e21f39038f716b18ae065ae', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'ad6b735fa4d5574b8717f460171c13a56a031451', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '07c8732dc276613fc5ed2928a2d47af51c49d942', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
126
+ return (h(Host, { key: '17ba242a4a378ef83e44cdf0114c0f3e3b48adbc', class: "s-tel-input" }, h("input", { key: '6fce02afd1bde804aa7f29d0f25f2b37253db372', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '95d781eaa114bcc4f67a3104c434818c768bcd7c', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'f5aa842015af4b327ea9bde37bd919eba77918c7', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
127
127
  }
128
128
  componentDidLoad() {
129
129
  this.initTelInput();
@@ -27,7 +27,7 @@ export class SallaTooltip {
27
27
  }
28
28
  render() {
29
29
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
30
- 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))));
30
+ 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))));
31
31
  }
32
32
  static get is() { return "salla-tooltip"; }
33
33
  static get originalStyleUrls() {
@@ -56,7 +56,7 @@ export class SallaUserSettings {
56
56
  await salla.profile.delete().finally(() => this.confirmationModal.close());
57
57
  }
58
58
  render() {
59
- 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)))))));
59
+ 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)))))));
60
60
  }
61
61
  static get is() { return "salla-user-settings"; }
62
62
  static get originalStyleUrls() {
@@ -325,7 +325,7 @@ export class SallaWishlistActions {
325
325
  }
326
326
  }
327
327
  render() {
328
- return (h(Host, { key: '6329ecd00f2d08cd0fc485c371e98fe7984502d0' }, h("div", { key: '6e24cd1109ae290196337fe3e1e05cfd074966a9', class: "s-wishlist-actions" }, h("div", { key: '82c29d5b203368059c7883272c36576b19bdfd2d', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '3f85ad6a6e72308b71d506d2fc8687672b00ea7a', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '56c109a338bc9fa06aebdadb041b6587440fa71a', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'f0cf0dc66dd8ce00ac878481bbf21662d1853eba', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '3b97ef84df832a0bc1198319cc63b753da915b37', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'e8c626812dad32a5fc3165b58ce76a5c39586f09', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-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.667zM26.667 29.333c-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" })), this.shareLabel, h("svg", { key: '731093a2d4393fe53d63e96ecc48fcb4c4a360d2', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'af87c9481389b4b1e544e0ab2eac43db6c164aac', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '62ce5ade389fb563d2548fd94939f697dbc03d8a', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '7cb443687290ce4c7144b71140b68c020bb52dd4' }, h("button", { key: 'd55410bb2f164d267a9c21af2648fbef3fdc1928', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'f921f5241b0e7b7ebb228049f84dfe3996081d92' }, h("button", { key: 'dbc903542086266571c21ada73d54dab62f5a3e2', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '0e3aec575c1b4aa4cdd5bb2c61f3cc3e90687f23', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'bafce0670b980b583398b3d1a997020298e35bed', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '216cd3409541b0f93b26e2f2bfe256a36d0ff37b', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '4bf9a1cc508bfc87c229f69a7134bdefae0f9535', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: 'fbc39c6513eec5f4b1f281046b509c642ddce3db', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '02ba3b818ecb802d8976734738c8042163b6cdae', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '447df46aa76c1ecb165b7680465ff6c6dfcc967d', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: '36a6360b83dd07d20ca7763e2f12dc93f169c645', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '3aa46bcd91bf605f7715fcaa5692e4ca0e8f199e', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
328
+ return (h(Host, { key: '944b6422bfba4a6d243866bc9c37d8035a44df5d' }, h("div", { key: '4bc2b5c2ff67c4b78b578a434d0b831127ee296e', class: "s-wishlist-actions" }, h("div", { key: '89680ee97dfc92640639806f03ff9d5c1e34fe2a', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: 'd4e0df8eb1afaacbae1d19c811b746f861f298c2', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: 'c8d0932f278391ee8cd8e8c962c807cd4027fbb4', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'b3afc332535ad851c6b4f69bf8857dfc2fe82630', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: 'a71c080825b75616417f3cafca72472e8e51293f', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'a1f025824128c9612f28a08d70f32965eac0e24b', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-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.667zM26.667 29.333c-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" })), this.shareLabel, h("svg", { key: '9411b9da4d81961bb32a0577b39b429e1c1c965f', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'd9a5ae414ddc8b3d73403271b2c36a7562fbf056', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '827753681d4b785e4881fd2b3b9c0ea9eadc196d', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: 'd7db89f5e2d35bf745f4fd452cb253a42abddc92' }, h("button", { key: 'ed26ea310c9c736721801c5ba3082ee9a5795246', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'd9dfe8c03c06f0dc2351c97c5fa65afdb21434af' }, h("button", { key: 'bb6d478be61ebebae69aed968df87f4c674ecea6', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: 'ec9d7848c88d88189aaadd8d142b2d2425d18c77', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: '4cc856e9916d823d1eae1f1438ceef27afff61de', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '0378d758c20ffb30e43f5c833ea9adc26d62dc56', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: 'dbe68424b609667ae57a14e6a7b268e7d3fcb70b', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: '43933b5d67b6629974d0fdd43731046b83bc8def', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '794e0c0f27cf9a91c351f586bf69be2fd0ebd917', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '40f84f47845e32eacfb21a1bf937bcd287a869e3', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: '42976baa9eb980e26bc93b41d23972c17441aa96', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '48b182f5d518b7d761f3fe59339755ab78fd1f19', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
329
329
  }
330
330
  static get is() { return "salla-wishlist-actions"; }
331
331
  static get originalStyleUrls() {