@salla.sa/twilight-components 2.14.467 → 2.14.469

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 (364) hide show
  1. package/dist/cjs/{filepond-Li5IcLEr.js → filepond-CG7dNZgq.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CXgEvsrj.js → filepond-plugin-file-poster-B1zrjwgr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DISjKBXN.js → filepond-plugin-file-validate-size-BqZtoWbe.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BeDqb2RU.js → filepond-plugin-file-validate-type-BGmGKK9L.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CTKgasCY.js → filepond-plugin-image-edit-CYeh6qmG.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BqvyVbfM.js → filepond-plugin-image-exif-orientation-BEVpo-ZQ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DfX-wD-s.js → filepond-plugin-image-preview-C7MMEZFE.js} +1 -1
  8. package/dist/cjs/{functions-DXNacMtu.js → functions-CnBVKKGk.js} +1 -1
  9. package/dist/cjs/{index-2n84VIdz.js → index-BNOCK3IN.js} +1 -1
  10. package/dist/cjs/{index-JuURs8Nc.js → index-inmL4H71.js} +9 -5
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/{mail-Bgvt2hc9.js → mail-C9D8MHae.js} +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +29 -84
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +91 -7
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +85 -31
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +32 -2
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +4 -4
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  51. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-products-list.cjs.entry.js +259 -64
  82. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-quick-order.cjs.entry.js +3 -3
  84. package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
  85. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  86. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-social-share.cjs.entry.js +252 -32
  91. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  93. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  99. package/dist/cjs/salla-verify.cjs.entry.js +3 -3
  100. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +329 -0
  102. package/dist/cjs/{tracked-promise-BdbqBT_O.js → tracked-promise-DvLhM2Sx.js} +1 -1
  103. package/dist/cjs/twilight.cjs.js +2 -2
  104. package/dist/cjs/{vanilla-picker-Cj5ogibZ.js → vanilla-picker-DtuN6WGq.js} +1 -1
  105. package/dist/collection/collection-manifest.json +2 -1
  106. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +90 -6
  107. package/dist/collection/components/salla-gifting/salla-gifting.css +18 -0
  108. package/dist/collection/components/salla-gifting/salla-gifting.js +91 -31
  109. package/dist/collection/components/salla-login-modal/salla-login-modal.js +31 -1
  110. package/dist/collection/components/salla-product-options/salla-product-options.css +0 -3
  111. package/dist/collection/components/salla-product-options/salla-product-options.js +28 -84
  112. package/dist/collection/components/salla-products-list/salla-products-list.css +76 -0
  113. package/dist/collection/components/salla-products-list/salla-products-list.js +387 -65
  114. package/dist/collection/components/salla-social-share/salla-social-share.css +161 -0
  115. package/dist/collection/components/salla-social-share/salla-social-share.js +316 -50
  116. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  117. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  118. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  119. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  120. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  121. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  122. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.css +65 -0
  123. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +432 -0
  124. package/dist/components/index.js +5 -5
  125. package/dist/components/salla-bullet-delivery.js +90 -6
  126. package/dist/components/salla-gifting.js +86 -30
  127. package/dist/components/salla-login-modal2.js +31 -1
  128. package/dist/components/salla-product-options2.js +28 -84
  129. package/dist/components/salla-products-list2.js +266 -64
  130. package/dist/components/salla-social-share.js +1 -189
  131. package/dist/components/salla-social-share2.js +420 -0
  132. package/dist/components/salla-tab-content2.js +1 -1
  133. package/dist/components/salla-tab-header2.js +1 -1
  134. package/dist/components/salla-tabs2.js +1 -1
  135. package/dist/components/salla-tel-input2.js +1 -1
  136. package/dist/components/salla-tooltip2.js +1 -1
  137. package/dist/components/salla-user-settings.js +1 -1
  138. package/dist/components/salla-wishlist-actions.d.ts +11 -0
  139. package/dist/components/salla-wishlist-actions.js +375 -0
  140. package/dist/esm/{filepond-Cpf2HNH9.js → filepond-D4dDq1wa.js} +1 -1
  141. package/dist/esm/{filepond-plugin-file-poster-CVurRtjC.js → filepond-plugin-file-poster-CcnsMPSH.js} +1 -1
  142. package/dist/esm/{filepond-plugin-file-validate-size-Dw2xFbfx.js → filepond-plugin-file-validate-size-qgEgRYkk.js} +1 -1
  143. package/dist/esm/{filepond-plugin-file-validate-type-D6seJVa2.js → filepond-plugin-file-validate-type-BuFGnco8.js} +1 -1
  144. package/dist/esm/{filepond-plugin-image-edit-CBikW78V.js → filepond-plugin-image-edit-kS2Sie2d.js} +1 -1
  145. package/dist/esm/{filepond-plugin-image-exif-orientation-5yNhe9TO.js → filepond-plugin-image-exif-orientation-Bjoh_of2.js} +1 -1
  146. package/dist/esm/{filepond-plugin-image-preview-PlAAXB7f.js → filepond-plugin-image-preview-b_VEHHGf.js} +1 -1
  147. package/dist/esm/{functions-Egzz8fEM.js → functions-ISZQDw0y.js} +1 -1
  148. package/dist/esm/{index-Do4FV1UZ.js → index-CqC4wD_f.js} +1 -1
  149. package/dist/esm/{index-a4x9urdK.js → index-Cqh-ta1v.js} +9 -5
  150. package/dist/esm/loader.js +3 -3
  151. package/dist/esm/{mail-DLNIOD9t.js → mail-DzAIgzdz.js} +2 -2
  152. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  153. package/dist/esm/salla-accordion_6.entry.js +1 -1
  154. package/dist/esm/salla-add-product-button_5.entry.js +29 -84
  155. package/dist/esm/salla-advertisement.entry.js +1 -1
  156. package/dist/esm/salla-alert_2.entry.js +1 -1
  157. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  158. package/dist/esm/salla-apps-icons.entry.js +1 -1
  159. package/dist/esm/salla-badge.entry.js +1 -1
  160. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  161. package/dist/esm/salla-bullet-delivery_2.entry.js +91 -7
  162. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  163. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  164. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  165. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  166. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  167. package/dist/esm/salla-contacts.entry.js +3 -3
  168. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  169. package/dist/esm/salla-count-down.entry.js +1 -1
  170. package/dist/esm/salla-custom-fields.entry.js +1 -1
  171. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  172. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  173. package/dist/esm/salla-filters-widget.entry.js +1 -1
  174. package/dist/esm/salla-filters.entry.js +1 -1
  175. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  176. package/dist/esm/salla-gifting.entry.js +85 -31
  177. package/dist/esm/salla-hook.entry.js +1 -1
  178. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  179. package/dist/esm/salla-installment.entry.js +1 -1
  180. package/dist/esm/salla-list-tile.entry.js +1 -1
  181. package/dist/esm/salla-localization-modal.entry.js +1 -1
  182. package/dist/esm/salla-login-modal.entry.js +32 -2
  183. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  184. package/dist/esm/salla-loyalty-hero_2.entry.js +4 -4
  185. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  186. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  187. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  188. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  189. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  190. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  191. package/dist/esm/salla-loyalty.entry.js +1 -1
  192. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  193. package/dist/esm/salla-map.entry.js +1 -1
  194. package/dist/esm/salla-menu.entry.js +1 -1
  195. package/dist/esm/salla-metadata.entry.js +1 -1
  196. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  197. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  198. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  199. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  200. package/dist/esm/salla-notification-item.entry.js +1 -1
  201. package/dist/esm/salla-notifications.entry.js +1 -1
  202. package/dist/esm/salla-offer-modal.entry.js +1 -1
  203. package/dist/esm/salla-offer.entry.js +1 -1
  204. package/dist/esm/salla-order-branch.entry.js +1 -1
  205. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  206. package/dist/esm/salla-order-details-options.entry.js +1 -1
  207. package/dist/esm/salla-order-details.entry.js +1 -1
  208. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  209. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  210. package/dist/esm/salla-order-edit.entry.js +1 -1
  211. package/dist/esm/salla-order-summary.entry.js +1 -1
  212. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  213. package/dist/esm/salla-orders.entry.js +1 -1
  214. package/dist/esm/salla-payments.entry.js +1 -1
  215. package/dist/esm/salla-placeholder.entry.js +1 -1
  216. package/dist/esm/salla-price-range.entry.js +1 -1
  217. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  218. package/dist/esm/salla-product-card_2.entry.js +1 -1
  219. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  220. package/dist/esm/salla-products-list.entry.js +259 -64
  221. package/dist/esm/salla-progress-bar.entry.js +1 -1
  222. package/dist/esm/salla-quick-order.entry.js +3 -3
  223. package/dist/esm/salla-rating-modal.entry.js +3 -3
  224. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  225. package/dist/esm/salla-scopes.entry.js +1 -1
  226. package/dist/esm/salla-search.entry.js +1 -1
  227. package/dist/esm/salla-skeleton.entry.js +1 -1
  228. package/dist/esm/salla-slider.entry.js +1 -1
  229. package/dist/esm/salla-social-share.entry.js +252 -32
  230. package/dist/esm/salla-social.entry.js +1 -1
  231. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  232. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  233. package/dist/esm/salla-tooltip.entry.js +2 -2
  234. package/dist/esm/salla-trust-badges.entry.js +1 -1
  235. package/dist/esm/salla-user-menu.entry.js +1 -1
  236. package/dist/esm/salla-user-profile.entry.js +1 -1
  237. package/dist/esm/salla-user-settings.entry.js +2 -2
  238. package/dist/esm/salla-verify.entry.js +3 -3
  239. package/dist/esm/salla-wallet.entry.js +1 -1
  240. package/dist/esm/salla-wishlist-actions.entry.js +327 -0
  241. package/dist/esm/{tracked-promise-BX5clCDX.js → tracked-promise-CH_UyK-l.js} +1 -1
  242. package/dist/esm/twilight.js +3 -3
  243. package/dist/esm/{vanilla-picker-DB0pDHa7.js → vanilla-picker-PE31tu9y.js} +1 -1
  244. package/dist/twilight/{p-afcb0117.entry.js → p-054c9462.entry.js} +1 -1
  245. package/dist/twilight/{p-78020271.entry.js → p-06372aeb.entry.js} +1 -1
  246. package/dist/twilight/p-06c06719.entry.js +4 -0
  247. package/dist/twilight/{p-16bcc5ab.entry.js → p-0c7efc0b.entry.js} +1 -1
  248. package/dist/twilight/{p-53cbb271.entry.js → p-0cca1b63.entry.js} +1 -1
  249. package/dist/twilight/{p-ad19661d.entry.js → p-1415eb5e.entry.js} +1 -1
  250. package/dist/twilight/{p-a53d5944.entry.js → p-14a3277b.entry.js} +1 -1
  251. package/dist/twilight/{p-92b02f3c.entry.js → p-15b3f969.entry.js} +1 -1
  252. package/dist/twilight/{p-241bd42e.entry.js → p-16b64bb5.entry.js} +1 -1
  253. package/dist/twilight/{p-37457147.entry.js → p-16c64a38.entry.js} +1 -1
  254. package/dist/twilight/{p-f5135cb5.entry.js → p-17920aa7.entry.js} +1 -1
  255. package/dist/twilight/{p-ec5ae058.entry.js → p-196fad8d.entry.js} +1 -1
  256. package/dist/twilight/{p-5803c158.entry.js → p-19fe2b27.entry.js} +1 -1
  257. package/dist/twilight/{p-316135f8.entry.js → p-1c0f9fd9.entry.js} +1 -1
  258. package/dist/twilight/{p-1130d4b7.entry.js → p-1db8b515.entry.js} +1 -1
  259. package/dist/twilight/{p-d0340e11.entry.js → p-219b14c4.entry.js} +1 -1
  260. package/dist/twilight/{p-127ee640.entry.js → p-227d11a0.entry.js} +1 -1
  261. package/dist/twilight/p-293a6d6b.entry.js +4 -0
  262. package/dist/twilight/{p-0c748664.entry.js → p-2ba603bc.entry.js} +1 -1
  263. package/dist/twilight/p-2dbb3b49.entry.js +4 -0
  264. package/dist/twilight/{p-5b365561.entry.js → p-31bd852c.entry.js} +1 -1
  265. package/dist/twilight/{p-92f3ea44.entry.js → p-32a7cb85.entry.js} +1 -1
  266. package/dist/twilight/{p-1a37b959.entry.js → p-32d5d279.entry.js} +1 -1
  267. package/dist/twilight/{p-91363b7e.entry.js → p-36884c05.entry.js} +1 -1
  268. package/dist/twilight/{p-13a033fa.entry.js → p-38a791cb.entry.js} +1 -1
  269. package/dist/twilight/{p-0b169d4e.entry.js → p-3b198162.entry.js} +1 -1
  270. package/dist/twilight/{p-735fafef.entry.js → p-3d517178.entry.js} +1 -1
  271. package/dist/twilight/{p-d9d4ea5b.entry.js → p-3e5a57cc.entry.js} +1 -1
  272. package/dist/twilight/{p-fa1cc092.entry.js → p-40eb9556.entry.js} +6 -6
  273. package/dist/twilight/{p-1ce817c2.entry.js → p-49181c4a.entry.js} +1 -1
  274. package/dist/twilight/p-4a81a708.entry.js +4 -0
  275. package/dist/twilight/{p-35ac1fc9.entry.js → p-4b20872a.entry.js} +1 -1
  276. package/dist/twilight/{p-e27363dd.entry.js → p-4c370853.entry.js} +1 -1
  277. package/dist/twilight/{p-e1205d19.entry.js → p-4ee20a54.entry.js} +1 -1
  278. package/dist/twilight/{p-b0bf7a5b.entry.js → p-51c30ec2.entry.js} +1 -1
  279. package/dist/twilight/{p-2bcfb4f3.entry.js → p-5334222c.entry.js} +1 -1
  280. package/dist/twilight/{p-c0380d40.entry.js → p-559bdcca.entry.js} +1 -1
  281. package/dist/twilight/{p-03d13b9f.entry.js → p-5701244a.entry.js} +1 -1
  282. package/dist/twilight/{p-0da78d4e.entry.js → p-5d364fc2.entry.js} +1 -1
  283. package/dist/twilight/{p-DiWHgCMH.js → p-5fxCpxw5.js} +1 -1
  284. package/dist/twilight/{p-08b2c781.entry.js → p-61ad2660.entry.js} +1 -1
  285. package/dist/twilight/p-6590acee.entry.js +4 -0
  286. package/dist/twilight/{p-b8ab7da8.entry.js → p-681f8874.entry.js} +1 -1
  287. package/dist/twilight/{p-d17596ff.entry.js → p-6b6f9822.entry.js} +1 -1
  288. package/dist/twilight/{p-4d393389.entry.js → p-6d23fd92.entry.js} +1 -1
  289. package/dist/twilight/p-6e723d46.entry.js +4 -0
  290. package/dist/twilight/{p-d33203b7.entry.js → p-71f2ba66.entry.js} +1 -1
  291. package/dist/twilight/{p-c8fd03c0.entry.js → p-732bd9fb.entry.js} +1 -1
  292. package/dist/twilight/{p-42a0b54a.entry.js → p-73d9e4c8.entry.js} +1 -1
  293. package/dist/twilight/{p-e90d18b2.entry.js → p-74e0d0c2.entry.js} +1 -1
  294. package/dist/twilight/{p-52fe97c8.entry.js → p-77d2312a.entry.js} +1 -1
  295. package/dist/twilight/{p-635347c9.entry.js → p-78ff445c.entry.js} +1 -1
  296. package/dist/twilight/{p-74a61155.entry.js → p-798fb3c7.entry.js} +1 -1
  297. package/dist/twilight/{p-e726123e.entry.js → p-79c20964.entry.js} +1 -1
  298. package/dist/twilight/{p-C4aFleDM.js → p-7FtjQghq.js} +1 -1
  299. package/dist/twilight/{p-0405f5e8.entry.js → p-7afe6e1a.entry.js} +1 -1
  300. package/dist/twilight/{p-b80adb19.entry.js → p-7e185acf.entry.js} +1 -1
  301. package/dist/twilight/{p-f684d7bf.entry.js → p-8b538bd7.entry.js} +1 -1
  302. package/dist/twilight/{p-bfbf8121.entry.js → p-8bcc3b86.entry.js} +1 -1
  303. package/dist/twilight/{p-a068fff4.entry.js → p-8db52fe9.entry.js} +1 -1
  304. package/dist/twilight/{p-89f11893.entry.js → p-93ec294d.entry.js} +1 -1
  305. package/dist/twilight/p-9785f314.entry.js +4 -0
  306. package/dist/twilight/{p-ff270706.entry.js → p-9a3f27e9.entry.js} +1 -1
  307. package/dist/twilight/{p-DSBkBAFI.js → p-B0uENqSF.js} +1 -1
  308. package/dist/twilight/{p-B7KW0zhB.js → p-C3kw3FEZ.js} +1 -1
  309. package/dist/twilight/{p-BVqg7xd9.js → p-CUfwD9kr.js} +1 -1
  310. package/dist/twilight/{p-a4x9urdK.js → p-Cqh-ta1v.js} +2 -2
  311. package/dist/twilight/{p-fCaOxwGH.js → p-DZ18vMT2.js} +1 -1
  312. package/dist/twilight/{p-EPfEwqOC.js → p-DyQ5MH6F.js} +1 -1
  313. package/dist/twilight/{p-DLNIOD9t.js → p-DzAIgzdz.js} +1 -1
  314. package/dist/twilight/{p-pOgjUtf9.js → p-J_27I63T.js} +1 -1
  315. package/dist/twilight/{p-10e0936d.entry.js → p-a85d80b5.entry.js} +1 -1
  316. package/dist/twilight/{p-6d47892b.entry.js → p-a918b812.entry.js} +1 -1
  317. package/dist/twilight/{p-ba1199ba.entry.js → p-aec0a2df.entry.js} +1 -1
  318. package/dist/twilight/{p-9b639078.entry.js → p-b16d8b19.entry.js} +1 -1
  319. package/dist/twilight/{p-ee605cef.entry.js → p-b295c1f1.entry.js} +1 -1
  320. package/dist/twilight/{p-0957f323.entry.js → p-b6c0aa79.entry.js} +1 -1
  321. package/dist/twilight/{p-0bdf58a4.entry.js → p-b7727021.entry.js} +1 -1
  322. package/dist/twilight/{p-e8a82952.entry.js → p-badf4c9d.entry.js} +1 -1
  323. package/dist/twilight/{p-fe506679.entry.js → p-c6be8afd.entry.js} +1 -1
  324. package/dist/twilight/{p-ec073354.entry.js → p-ccd8c960.entry.js} +1 -1
  325. package/dist/twilight/{p-3fbd88d0.entry.js → p-ce0410d5.entry.js} +1 -1
  326. package/dist/twilight/{p-ef8fb222.entry.js → p-cee7a8ad.entry.js} +1 -1
  327. package/dist/twilight/{p-f6bb956c.entry.js → p-d0c8435f.entry.js} +1 -1
  328. package/dist/twilight/{p-59f815bc.entry.js → p-d23eeb0c.entry.js} +1 -1
  329. package/dist/twilight/{p-f170aff7.entry.js → p-d63f2cbd.entry.js} +1 -1
  330. package/dist/twilight/{p-6d87b134.entry.js → p-d6b6a8ad.entry.js} +1 -1
  331. package/dist/twilight/{p-b0ed6a9f.entry.js → p-d823cbcd.entry.js} +1 -1
  332. package/dist/twilight/{p-9df5c9a7.entry.js → p-d8f22e4b.entry.js} +1 -1
  333. package/dist/twilight/{p-CsMnvJkR.js → p-dKdk2xpB.js} +1 -1
  334. package/dist/twilight/p-dbdbb882.entry.js +4 -0
  335. package/dist/twilight/{p-d905fbca.entry.js → p-dc8555bf.entry.js} +1 -1
  336. package/dist/twilight/{p-fbfacb11.entry.js → p-dca3b67e.entry.js} +1 -1
  337. package/dist/twilight/{p-056400a1.entry.js → p-e0671ff1.entry.js} +1 -1
  338. package/dist/twilight/{p-59f7f014.entry.js → p-e06e37c1.entry.js} +1 -1
  339. package/dist/twilight/{p-c60c302f.entry.js → p-e265d626.entry.js} +1 -1
  340. package/dist/twilight/{p-61b1fd3b.entry.js → p-f0e96875.entry.js} +1 -1
  341. package/dist/twilight/p-f64168cc.entry.js +4 -0
  342. package/dist/twilight/{p-0b1970c2.entry.js → p-f67639df.entry.js} +1 -1
  343. package/dist/twilight/{p-fa039238.entry.js → p-fd180bd3.entry.js} +1 -1
  344. package/dist/twilight/{p-D9ni3BuG.js → p-m2p-QAbu.js} +1 -1
  345. package/dist/twilight/{p-CkA6UKAD.js → p-yyvPGK6r.js} +2 -2
  346. package/dist/twilight/twilight.esm.js +1 -1
  347. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +16 -0
  348. package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
  349. package/dist/types/components/salla-gifting/salla-gifting.d.ts +5 -1
  350. package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +2 -0
  351. package/dist/types/components/salla-product-options/salla-product-options.d.ts +0 -11
  352. package/dist/types/components/salla-products-list/salla-products-list.d.ts +60 -6
  353. package/dist/types/components/salla-social-share/salla-social-share.d.ts +39 -2
  354. package/dist/types/components/salla-wishlist-actions/salla-wishlist-actions.d.ts +93 -0
  355. package/dist/types/components.d.ts +172 -18
  356. package/package.json +5 -5
  357. package/dist/twilight/p-234fdf72.entry.js +0 -4
  358. package/dist/twilight/p-7a1cfd65.entry.js +0 -4
  359. package/dist/twilight/p-865c602e.entry.js +0 -4
  360. package/dist/twilight/p-9dc0fec4.entry.js +0 -4
  361. package/dist/twilight/p-e485d0b8.entry.js +0 -4
  362. package/dist/twilight/p-f5072671.entry.js +0 -4
  363. package/dist/twilight/p-fb7904e6.entry.js +0 -4
  364. package/dist/twilight/p-fdde8399.entry.js +0 -4
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Product } from '@salla.sa/twilight/types/common';
2
3
  export declare class SallaProductsList {
3
4
  /**
4
5
  * TODO:: order the logic like this:
@@ -45,20 +46,20 @@ export declare class SallaProductsList {
45
46
  */
46
47
  horizontalCards: boolean;
47
48
  /**
48
- * Row cards
49
- */
49
+ * Row cards
50
+ */
50
51
  rowCards: boolean;
51
52
  /**
52
- * Compact cards for drawer/list layouts
53
- */
53
+ * Compact cards for drawer/list layouts
54
+ */
54
55
  compactCards: boolean;
55
56
  /**
56
57
  * Autoload next page when scroll
57
58
  */
58
59
  autoload: boolean;
59
60
  /**
60
- * Load more text
61
- */
61
+ * Load more text
62
+ */
62
63
  loadMoreText: string;
63
64
  /**
64
65
  * Custom Card Component for the Salla Products List.
@@ -83,6 +84,18 @@ export declare class SallaProductsList {
83
84
  * - "images": Include product images in the response.
84
85
  */
85
86
  includes: string[];
87
+ /**
88
+ * Enables multi-selection of products. When enabled, a checkbox overlay is
89
+ * rendered on top of each product card and the selected products are exposed
90
+ * via the `selectionChanged` event, the `salla-products-list::selection.changed`
91
+ * global event and the `getSelected()` method.
92
+ *
93
+ * This is source-agnostic (works for any `source`) and defaults to `false`.
94
+ * On the wishlist page the `salla-wishlist-actions` panel turns it on at
95
+ * runtime (when the customer chooses "share specific items"), so no theme
96
+ * markup changes are required.
97
+ */
98
+ selectable: boolean;
86
99
  host: HTMLElement;
87
100
  page: number;
88
101
  nextPage: string;
@@ -99,6 +112,8 @@ export declare class SallaProductsList {
99
112
  switchToNormalBehavior: boolean;
100
113
  parsedFilters: any;
101
114
  filtersSnapshot: any[];
115
+ /** Map of selected products keyed by product id (preserves selection across pagination). */
116
+ private selectedProducts;
102
117
  private status;
103
118
  private btnLoader;
104
119
  private loader;
@@ -120,6 +135,11 @@ export declare class SallaProductsList {
120
135
  * Custom event fired when the the products fetched.
121
136
  */
122
137
  productsFetched: EventEmitter;
138
+ /**
139
+ * Custom event fired when the selection changes (only when `selectable` is enabled).
140
+ * Detail: `{ ids: Array<string|number>, products: Product[], count: number }`.
141
+ */
142
+ selectionChanged: EventEmitter;
123
143
  constructor();
124
144
  connectedCallback(): void;
125
145
  disconnectedCallback(): void;
@@ -141,6 +161,20 @@ export declare class SallaProductsList {
141
161
  private buildNextPageUrl;
142
162
  private loading;
143
163
  private getItemHTML;
164
+ /**
165
+ * Wrap a product card with a selection control. The wrapper mirrors `product`
166
+ * so the scroll-restoration snapshot logic (which reads `child.product`) keeps
167
+ * working, and the card keeps its id for `scrollToLastViewedProduct`.
168
+ */
169
+ private wrapSelectableItem;
170
+ private toggleSelection;
171
+ private emitSelection;
172
+ private readonly onWishlistItemRemoved;
173
+ /**
174
+ * Re-render the list when selection mode is toggled at runtime (e.g. enabled
175
+ * by the wishlist actions panel after the list already loaded).
176
+ */
177
+ onSelectableChanged(newValue: boolean, oldValue: boolean): void;
144
178
  private applyLandingPageStyles;
145
179
  private applyHorizontalCardStyles;
146
180
  private waitForResizing;
@@ -171,6 +205,26 @@ export declare class SallaProductsList {
171
205
  * Load the next products page.
172
206
  */
173
207
  loadMore(): Promise<void>;
208
+ /**
209
+ * Get the currently selected products.
210
+ */
211
+ getSelected(): Promise<{
212
+ ids: Array<string | number>;
213
+ products: Product[];
214
+ }>;
215
+ /**
216
+ * Get all products currently rendered in the list (works whether selection
217
+ * is enabled or not). Useful to gather ids for "share all".
218
+ */
219
+ getLoadedProducts(): Promise<Product[]>;
220
+ /**
221
+ * Select all currently rendered products.
222
+ */
223
+ selectAll(): Promise<void>;
224
+ /**
225
+ * Clear the current selection.
226
+ */
227
+ clearSelection(): Promise<void>;
174
228
  componentWillLoad(): any;
175
229
  componentDidLoad(): Promise<void>;
176
230
  private canRender;
@@ -2,9 +2,15 @@
2
2
  * @slot widget - An action that can be used to activete or open the component by calling the `open` method.
3
3
  */
4
4
  export declare class SallaSocialShare {
5
- private shareMenu?;
5
+ private openAnimation?;
6
+ private ignoreOutsideClick;
7
+ private copiedResetTimeout?;
8
+ /** Bilingual defaults for the modal variant; store translations always win. */
9
+ private readonly translationDefaults;
10
+ private readonly onDocumentClick;
6
11
  host: HTMLElement;
7
12
  opened: boolean;
13
+ copied: boolean;
8
14
  allPlatforms: Array<string>;
9
15
  platformIcons: Array<object>;
10
16
  convertedPlatforms: Array<string>;
@@ -20,11 +26,33 @@ export declare class SallaSocialShare {
20
26
  * selected platforms to share | all platforms
21
27
  */
22
28
  platforms: string;
29
+ /**
30
+ * Share UI variant: `default` dropdown menu or centered `modal` dialog.
31
+ */
32
+ mode: 'modal' | 'default';
33
+ /**
34
+ * Optional title for the modal variant header. Defaults to a localized "Share".
35
+ */
36
+ modalTitle: string;
23
37
  componentWillLoad(): void;
38
+ componentDidLoad(): void;
39
+ disconnectedCallback(): void;
24
40
  /**
25
- * Activate or open the share menu.
41
+ * Register bilingual (ar/en) defaults without overriding existing translations.
42
+ */
43
+ private registerTranslationDefaults;
44
+ private resolveShareKit;
45
+ private deferOutsideClickGuard;
46
+ /**
47
+ * Open the share menu.
26
48
  */
27
49
  open(): Promise<void>;
50
+ /**
51
+ * Close the share menu.
52
+ */
53
+ close(): Promise<void>;
54
+ private setBodyScrollLocked;
55
+ private toggle;
28
56
  /**
29
57
  * Asynchronously initializes the "AddToAny" (a2a) social sharing tool on the current page.
30
58
  * If the global object `window.a2a` is available, it initializes the tool with the 'page' mode.
@@ -43,6 +71,15 @@ export declare class SallaSocialShare {
43
71
  * @async
44
72
  * @returns {Promise<void>} A promise that resolves once the initialization is complete.
45
73
  */
74
+ onUrlChanged(newUrl: string, oldUrl: string): void;
75
+ private getShareUrl;
76
+ private getModalTitle;
77
+ private syncShareAttributes;
46
78
  refresh(): Promise<void>;
79
+ private copyLink;
80
+ private modalPlatformMeta;
81
+ private renderModalCard;
82
+ private renderModal;
83
+ private renderPopupList;
47
84
  render(): any;
48
85
  }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Actions header (panel) rendered on top of the wishlist `salla-products-list`.
3
+ *
4
+ * It exposes a "Share" dropdown with two options:
5
+ * - Share all items: shares the whole wishlist right away via `salla-social-share`.
6
+ * - Share specific items: enables multi-selection on the sibling
7
+ * `salla-products-list` and shows a panel to share the selected products.
8
+ *
9
+ * Selection is enabled on the products list at runtime, so no theme markup
10
+ * changes are required and it works for every theme exposing the
11
+ * `customer:wishlist.items.start` hook.
12
+ */
13
+ export declare class SallaWishlistActions {
14
+ host: HTMLElement;
15
+ menuOpen: boolean;
16
+ hasProducts: boolean;
17
+ /** Whether the "share specific items" selection mode is active. */
18
+ specificMode: boolean;
19
+ selectedIds: Array<string | number>;
20
+ loadedProductCount: number;
21
+ isSharing: boolean;
22
+ shareUrl: string;
23
+ shareLabel: string;
24
+ shareAllLabel: string;
25
+ shareSpecificLabel: string;
26
+ selectAllLabel: string;
27
+ cancelLabel: string;
28
+ shareModalTitle: string;
29
+ private productsList?;
30
+ private socialShare?;
31
+ private productsObserver?;
32
+ private selectAllCheckbox?;
33
+ private pageTitle?;
34
+ private pageTitleObserver?;
35
+ private pageTitleRetryTimeout?;
36
+ /** Ignore transient empty DOM while the products list reloads after toggling selection. */
37
+ private isListSyncPaused;
38
+ private static readonly pageTitleClass;
39
+ /**
40
+ * Bilingual defaults for the translation keys introduced by this feature.
41
+ * Registered via `Salla.lang.addBulk` only when missing, so store/central
42
+ * translations always take precedence.
43
+ */
44
+ private readonly translationDefaults;
45
+ private readonly onSelectionChanged;
46
+ private readonly onDocumentClick;
47
+ private readonly onProductsFetched;
48
+ componentWillLoad(): Promise<void>;
49
+ componentDidLoad(): void;
50
+ disconnectedCallback(): void;
51
+ /**
52
+ * The wishlist page title (`h1`) lives in theme markup outside this component.
53
+ * Alignment is handled by `h1.s-wishlist-actions-page-title` in the component stylesheet.
54
+ */
55
+ private initPageTitleAlignment;
56
+ private findPageTitle;
57
+ private syncPageTitleAlignment;
58
+ private resetPageTitleAlignment;
59
+ /**
60
+ * Register bilingual (ar/en) defaults for our keys, without overriding any
61
+ * translation that already exists in the store/central translations.
62
+ */
63
+ private registerTranslationDefaults;
64
+ private loadTranslations;
65
+ private get selectedCount();
66
+ private get isAllSelected();
67
+ private get isPartiallySelected();
68
+ private syncLoadedProductCount;
69
+ private syncSelectAllCheckboxState;
70
+ componentDidRender(): void;
71
+ private pauseListSync;
72
+ private syncHasProducts;
73
+ private toggleMenu;
74
+ private toggleSelectAll;
75
+ /**
76
+ * Enter "share specific items" mode: enable selection on the products list.
77
+ */
78
+ shareSpecific(): Promise<void>;
79
+ /**
80
+ * Exit "share specific items" mode: disable selection and clear it.
81
+ */
82
+ cancelSpecific(): Promise<void>;
83
+ /**
84
+ * Share all wishlist products.
85
+ */
86
+ shareAll(): Promise<void>;
87
+ /**
88
+ * Share the currently selected wishlist products.
89
+ */
90
+ shareSelected(): Promise<void>;
91
+ private processShare;
92
+ render(): any;
93
+ }
@@ -1318,7 +1318,7 @@ export namespace Components {
1318
1318
  /**
1319
1319
  * Go to the step 2
1320
1320
  */
1321
- "goToStep2": () => Promise<void>;
1321
+ "goToStep2": (withValidation?: boolean) => Promise<void>;
1322
1322
  /**
1323
1323
  * Show / Open the gifting modal window
1324
1324
  */
@@ -2236,6 +2236,10 @@ export namespace Components {
2236
2236
  * @default false
2237
2237
  */
2238
2238
  "autoload": boolean;
2239
+ /**
2240
+ * Clear the current selection.
2241
+ */
2242
+ "clearSelection": () => Promise<void>;
2239
2243
  /**
2240
2244
  * Compact cards for drawer/list layouts
2241
2245
  */
@@ -2244,6 +2248,14 @@ export namespace Components {
2244
2248
  * should listen to filters events `salla-filters::changed` and re-render
2245
2249
  */
2246
2250
  "filtersResults": boolean;
2251
+ /**
2252
+ * Get all products currently rendered in the list (works whether selection is enabled or not). Useful to gather ids for "share all".
2253
+ */
2254
+ "getLoadedProducts": () => Promise<Product[]>;
2255
+ /**
2256
+ * Get the currently selected products.
2257
+ */
2258
+ "getSelected": () => Promise<{ ids: Array<string | number>; products: Product[]; }>;
2247
2259
  /**
2248
2260
  * Horizontal cards
2249
2261
  */
@@ -2278,6 +2290,15 @@ export namespace Components {
2278
2290
  * Row cards
2279
2291
  */
2280
2292
  "rowCards": boolean;
2293
+ /**
2294
+ * Select all currently rendered products.
2295
+ */
2296
+ "selectAll": () => Promise<void>;
2297
+ /**
2298
+ * Enables multi-selection of products. When enabled, a checkbox overlay is rendered on top of each product card and the selected products are exposed via the `selectionChanged` event, the `salla-products-list::selection.changed` global event and the `getSelected()` method. This is source-agnostic (works for any `source`) and defaults to `false`. On the wishlist page the `salla-wishlist-actions` panel turns it on at runtime (when the customer chooses "share specific items"), so no theme markup changes are required.
2299
+ * @default false
2300
+ */
2301
+ "selectable": boolean;
2281
2302
  /**
2282
2303
  * Set parsed filters data from URI
2283
2304
  * @param filters
@@ -2286,12 +2307,31 @@ export namespace Components {
2286
2307
  /**
2287
2308
  * Sorting the list of products
2288
2309
  */
2289
- "sortBy"?: string | 'ourSuggest' | 'bestSell' | 'topRated' | 'priceFromTopToLow' | 'priceFromLowToTop';
2310
+ "sortBy"?: | string
2311
+ | 'ourSuggest'
2312
+ | 'bestSell'
2313
+ | 'topRated'
2314
+ | 'priceFromTopToLow'
2315
+ | 'priceFromLowToTop';
2290
2316
  /**
2291
2317
  * The source of the products list
2292
2318
  * @type {string}
2293
2319
  */
2294
- "source": 'categories' | 'latest' | 'related' | 'brands' | 'json' | 'search' | 'tags' | 'selected' | 'offers' | 'landing-page' | 'sales' | 'wishlist' | 'top-rated' | 'reorder' | 'recently';
2320
+ "source": | 'categories'
2321
+ | 'latest'
2322
+ | 'related'
2323
+ | 'brands'
2324
+ | 'json'
2325
+ | 'search'
2326
+ | 'tags'
2327
+ | 'selected'
2328
+ | 'offers'
2329
+ | 'landing-page'
2330
+ | 'sales'
2331
+ | 'wishlist'
2332
+ | 'top-rated'
2333
+ | 'reorder'
2334
+ | 'recently';
2295
2335
  /**
2296
2336
  * The source value, cloud be different values as following: - array of ids when `source` in ['categories', 'brands', 'tags', 'selected'] - keyword when `source` = 'search' - products payload when `source` = 'json' - product_id when `source` = 'related'
2297
2337
  * @type {string}
@@ -3012,7 +3052,21 @@ export namespace Components {
3012
3052
  }
3013
3053
  interface SallaSocialShare {
3014
3054
  /**
3015
- * Activate or open the share menu.
3055
+ * Close the share menu.
3056
+ */
3057
+ "close": () => Promise<void>;
3058
+ /**
3059
+ * Optional title for the modal variant header. Defaults to a localized "Share".
3060
+ * @default ''
3061
+ */
3062
+ "modalTitle": string;
3063
+ /**
3064
+ * Share UI variant: `default` dropdown menu or centered `modal` dialog.
3065
+ * @default 'default'
3066
+ */
3067
+ "mode": 'modal' | 'default';
3068
+ /**
3069
+ * Open the share menu.
3016
3070
  */
3017
3071
  "open": () => Promise<void>;
3018
3072
  /**
@@ -3020,23 +3074,15 @@ export namespace Components {
3020
3074
  * @default 'facebook,twitter,whatsapp,email,copy_link'
3021
3075
  */
3022
3076
  "platforms": string;
3023
- /**
3024
- * Asynchronously initializes the "AddToAny" (a2a) social sharing tool on the current page. If the global object `window.a2a` is available, it initializes the tool with the 'page' mode. The 'page' mode is typically used to enable sharing of the current webpage.
3025
- * @remarks This function is designed to be used in scenarios where dynamic loading or refreshing of social sharing tools is needed. Ensure that the AddToAny script is properly included in the HTML document before calling this function.
3026
- * @example // Call the refresh function to initialize AddToAny on the page. await refresh();
3027
- * @throws {Error} Throws an error if the AddToAny script is not properly included or if there are issues during initialization.
3028
- * @async
3029
- * @returns A promise that resolves once the initialization is complete.
3030
- */
3031
3077
  "refresh": () => Promise<void>;
3032
3078
  /**
3033
3079
  * page url that will be shared custom | current page url
3034
- * @default ""
3080
+ * @default ''
3035
3081
  */
3036
3082
  "url": string;
3037
3083
  /**
3038
3084
  * page url name that will be shared custom | current page url
3039
- * @default ""
3085
+ * @default ''
3040
3086
  */
3041
3087
  "urlName": string;
3042
3088
  }
@@ -3232,6 +3278,34 @@ export namespace Components {
3232
3278
  }
3233
3279
  interface SallaWallet {
3234
3280
  }
3281
+ /**
3282
+ * Actions header (panel) rendered on top of the wishlist `salla-products-list`.
3283
+ * It exposes a "Share" dropdown with two options:
3284
+ * - Share all items: shares the whole wishlist right away via `salla-social-share`.
3285
+ * - Share specific items: enables multi-selection on the sibling
3286
+ * `salla-products-list` and shows a panel to share the selected products.
3287
+ * Selection is enabled on the products list at runtime, so no theme markup
3288
+ * changes are required and it works for every theme exposing the
3289
+ * `customer:wishlist.items.start` hook.
3290
+ */
3291
+ interface SallaWishlistActions {
3292
+ /**
3293
+ * Exit "share specific items" mode: disable selection and clear it.
3294
+ */
3295
+ "cancelSpecific": () => Promise<void>;
3296
+ /**
3297
+ * Share all wishlist products.
3298
+ */
3299
+ "shareAll": () => Promise<void>;
3300
+ /**
3301
+ * Share the currently selected wishlist products.
3302
+ */
3303
+ "shareSelected": () => Promise<void>;
3304
+ /**
3305
+ * Enter "share specific items" mode: enable selection on the products list.
3306
+ */
3307
+ "shareSpecific": () => Promise<void>;
3308
+ }
3235
3309
  }
3236
3310
  export interface SallaAccordionHeadCustomEvent<T> extends CustomEvent<T> {
3237
3311
  detail: T;
@@ -4297,6 +4371,7 @@ declare global {
4297
4371
  };
4298
4372
  interface HTMLSallaProductsListElementEventMap {
4299
4373
  "productsFetched": any;
4374
+ "selectionChanged": any;
4300
4375
  }
4301
4376
  interface HTMLSallaProductsListElement extends Components.SallaProductsList, HTMLStencilElement {
4302
4377
  addEventListener<K extends keyof HTMLSallaProductsListElementEventMap>(type: K, listener: (this: HTMLSallaProductsListElement, ev: SallaProductsListCustomEvent<HTMLSallaProductsListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4662,6 +4737,22 @@ declare global {
4662
4737
  prototype: HTMLSallaWalletElement;
4663
4738
  new (): HTMLSallaWalletElement;
4664
4739
  };
4740
+ /**
4741
+ * Actions header (panel) rendered on top of the wishlist `salla-products-list`.
4742
+ * It exposes a "Share" dropdown with two options:
4743
+ * - Share all items: shares the whole wishlist right away via `salla-social-share`.
4744
+ * - Share specific items: enables multi-selection on the sibling
4745
+ * `salla-products-list` and shows a panel to share the selected products.
4746
+ * Selection is enabled on the products list at runtime, so no theme markup
4747
+ * changes are required and it works for every theme exposing the
4748
+ * `customer:wishlist.items.start` hook.
4749
+ */
4750
+ interface HTMLSallaWishlistActionsElement extends Components.SallaWishlistActions, HTMLStencilElement {
4751
+ }
4752
+ var HTMLSallaWishlistActionsElement: {
4753
+ prototype: HTMLSallaWishlistActionsElement;
4754
+ new (): HTMLSallaWishlistActionsElement;
4755
+ };
4665
4756
  interface HTMLElementTagNameMap {
4666
4757
  "salla-accordion": HTMLSallaAccordionElement;
4667
4758
  "salla-accordion-body": HTMLSallaAccordionBodyElement;
@@ -4786,6 +4877,7 @@ declare global {
4786
4877
  "salla-user-settings": HTMLSallaUserSettingsElement;
4787
4878
  "salla-verify": HTMLSallaVerifyElement;
4788
4879
  "salla-wallet": HTMLSallaWalletElement;
4880
+ "salla-wishlist-actions": HTMLSallaWishlistActionsElement;
4789
4881
  }
4790
4882
  }
4791
4883
  declare namespace LocalJSX {
@@ -6892,6 +6984,10 @@ declare namespace LocalJSX {
6892
6984
  * Custom event fired when the the products fetched.
6893
6985
  */
6894
6986
  "onProductsFetched"?: (event: SallaProductsListCustomEvent<any>) => void;
6987
+ /**
6988
+ * Custom event fired when the selection changes (only when `selectable` is enabled). Detail: `{ ids: Array<string|number>, products: Product[], count: number }`.
6989
+ */
6990
+ "onSelectionChanged"?: (event: SallaProductsListCustomEvent<any>) => void;
6895
6991
  /**
6896
6992
  * Custom Card Component for the Salla Products List. This component allows you to customize the appearance of individual product cards within a Salla Products List.
6897
6993
  * @example <salla-products-list product-card-component="my-custom-card-style1" ... <salla-products-list product-card-component="my-custom-card-style2" ...
@@ -6902,15 +6998,39 @@ declare namespace LocalJSX {
6902
6998
  * Row cards
6903
6999
  */
6904
7000
  "rowCards"?: boolean;
7001
+ /**
7002
+ * Enables multi-selection of products. When enabled, a checkbox overlay is rendered on top of each product card and the selected products are exposed via the `selectionChanged` event, the `salla-products-list::selection.changed` global event and the `getSelected()` method. This is source-agnostic (works for any `source`) and defaults to `false`. On the wishlist page the `salla-wishlist-actions` panel turns it on at runtime (when the customer chooses "share specific items"), so no theme markup changes are required.
7003
+ * @default false
7004
+ */
7005
+ "selectable"?: boolean;
6905
7006
  /**
6906
7007
  * Sorting the list of products
6907
7008
  */
6908
- "sortBy"?: string | 'ourSuggest' | 'bestSell' | 'topRated' | 'priceFromTopToLow' | 'priceFromLowToTop';
7009
+ "sortBy"?: | string
7010
+ | 'ourSuggest'
7011
+ | 'bestSell'
7012
+ | 'topRated'
7013
+ | 'priceFromTopToLow'
7014
+ | 'priceFromLowToTop';
6909
7015
  /**
6910
7016
  * The source of the products list
6911
7017
  * @type {string}
6912
7018
  */
6913
- "source"?: 'categories' | 'latest' | 'related' | 'brands' | 'json' | 'search' | 'tags' | 'selected' | 'offers' | 'landing-page' | 'sales' | 'wishlist' | 'top-rated' | 'reorder' | 'recently';
7019
+ "source"?: | 'categories'
7020
+ | 'latest'
7021
+ | 'related'
7022
+ | 'brands'
7023
+ | 'json'
7024
+ | 'search'
7025
+ | 'tags'
7026
+ | 'selected'
7027
+ | 'offers'
7028
+ | 'landing-page'
7029
+ | 'sales'
7030
+ | 'wishlist'
7031
+ | 'top-rated'
7032
+ | 'reorder'
7033
+ | 'recently';
6914
7034
  /**
6915
7035
  * The source value, cloud be different values as following: - array of ids when `source` in ['categories', 'brands', 'tags', 'selected'] - keyword when `source` = 'search' - products payload when `source` = 'json' - product_id when `source` = 'related'
6916
7036
  * @type {string}
@@ -7568,6 +7688,16 @@ declare namespace LocalJSX {
7568
7688
  interface SallaSocial {
7569
7689
  }
7570
7690
  interface SallaSocialShare {
7691
+ /**
7692
+ * Optional title for the modal variant header. Defaults to a localized "Share".
7693
+ * @default ''
7694
+ */
7695
+ "modalTitle"?: string;
7696
+ /**
7697
+ * Share UI variant: `default` dropdown menu or centered `modal` dialog.
7698
+ * @default 'default'
7699
+ */
7700
+ "mode"?: 'modal' | 'default';
7571
7701
  /**
7572
7702
  * selected platforms to share | all platforms
7573
7703
  * @default 'facebook,twitter,whatsapp,email,copy_link'
@@ -7575,12 +7705,12 @@ declare namespace LocalJSX {
7575
7705
  "platforms"?: string;
7576
7706
  /**
7577
7707
  * page url that will be shared custom | current page url
7578
- * @default ""
7708
+ * @default ''
7579
7709
  */
7580
7710
  "url"?: string;
7581
7711
  /**
7582
7712
  * page url name that will be shared custom | current page url
7583
- * @default ""
7713
+ * @default ''
7584
7714
  */
7585
7715
  "urlName"?: string;
7586
7716
  }
@@ -7760,6 +7890,18 @@ declare namespace LocalJSX {
7760
7890
  }
7761
7891
  interface SallaWallet {
7762
7892
  }
7893
+ /**
7894
+ * Actions header (panel) rendered on top of the wishlist `salla-products-list`.
7895
+ * It exposes a "Share" dropdown with two options:
7896
+ * - Share all items: shares the whole wishlist right away via `salla-social-share`.
7897
+ * - Share specific items: enables multi-selection on the sibling
7898
+ * `salla-products-list` and shows a panel to share the selected products.
7899
+ * Selection is enabled on the products list at runtime, so no theme markup
7900
+ * changes are required and it works for every theme exposing the
7901
+ * `customer:wishlist.items.start` hook.
7902
+ */
7903
+ interface SallaWishlistActions {
7904
+ }
7763
7905
  interface IntrinsicElements {
7764
7906
  "salla-accordion": SallaAccordion;
7765
7907
  "salla-accordion-body": SallaAccordionBody;
@@ -7884,6 +8026,7 @@ declare namespace LocalJSX {
7884
8026
  "salla-user-settings": SallaUserSettings;
7885
8027
  "salla-verify": SallaVerify;
7886
8028
  "salla-wallet": SallaWallet;
8029
+ "salla-wishlist-actions": SallaWishlistActions;
7887
8030
  }
7888
8031
  }
7889
8032
  export { LocalJSX as JSX };
@@ -8130,6 +8273,17 @@ declare module "@stencil/core" {
8130
8273
  "salla-user-settings": LocalJSX.SallaUserSettings & JSXBase.HTMLAttributes<HTMLSallaUserSettingsElement>;
8131
8274
  "salla-verify": LocalJSX.SallaVerify & JSXBase.HTMLAttributes<HTMLSallaVerifyElement>;
8132
8275
  "salla-wallet": LocalJSX.SallaWallet & JSXBase.HTMLAttributes<HTMLSallaWalletElement>;
8276
+ /**
8277
+ * Actions header (panel) rendered on top of the wishlist `salla-products-list`.
8278
+ * It exposes a "Share" dropdown with two options:
8279
+ * - Share all items: shares the whole wishlist right away via `salla-social-share`.
8280
+ * - Share specific items: enables multi-selection on the sibling
8281
+ * `salla-products-list` and shows a panel to share the selected products.
8282
+ * Selection is enabled on the products list at runtime, so no theme markup
8283
+ * changes are required and it works for every theme exposing the
8284
+ * `customer:wishlist.items.start` hook.
8285
+ */
8286
+ "salla-wishlist-actions": LocalJSX.SallaWishlistActions & JSXBase.HTMLAttributes<HTMLSallaWishlistActionsElement>;
8133
8287
  }
8134
8288
  }
8135
8289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.14.467",
3
+ "version": "2.14.469",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -81,9 +81,9 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@googlemaps/markerclusterer": "2.6.2",
84
- "@salla.sa/applepay": "2.14.467",
85
- "@salla.sa/twilight": "2.14.467",
86
- "@salla.sa/twilight-tailwind-theme": "2.14.467",
84
+ "@salla.sa/applepay": "2.14.469",
85
+ "@salla.sa/twilight": "2.14.469",
86
+ "@salla.sa/twilight-tailwind-theme": "2.14.469",
87
87
  "@salla.sa/ui-address-autocomplete-widget": "1.2.1",
88
88
  "@salla.sa/ui-google-map-render": "1.2.1",
89
89
  "@types/node": "^20.4.8",
@@ -104,5 +104,5 @@
104
104
  "vanilla-lazyload": "^17.8.5",
105
105
  "vanilla-picker": "^2.12.2"
106
106
  },
107
- "gitHead": "a95e4c28523e8d5b6a4a3fd951561ff8ab6e41ac"
107
+ "gitHead": "679960aab74279b4b503a5c9df8f244209193724"
108
108
  }
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as a,h as s,a as t}from"./p-a4x9urdK.js";import{a as c}from"./p-CgtvEd63.js";import{f as e,t as l}from"./p-CO-PeZ27.js";import{S as i}from"./p-DLNIOD9t.js";import{S as n}from"./p-8Tsmrwno.js";var o;!function(a){a.FACEBOOK="facebook",a.TWITTER="twitter",a.WHATSAPP="whatsapp",a.EMAIL="email",a.COPY_LINK="copy_link"}(o||(o={}));const r=class{constructor(s){a(this,s),this.opened=!1,this.allPlatforms=[o.WHATSAPP,o.FACEBOOK,o.TWITTER,o.EMAIL,o.COPY_LINK],this.platformIcons=[{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>whatsapp</title>\n<path d="M16 32c-0.008 0-0.018 0-0.028 0-3.1 0-5.993-0.887-8.439-2.421l0.066 0.039-7.2 2.3 2.336-6.964c-1.713-2.492-2.736-5.575-2.736-8.897 0-0.020 0-0.040 0-0.060v0.003c0.009-8.833 7.167-15.991 15.999-16h0.001c8.837 0 16 7.163 16 16s-7.163 16-16 16v0zM7.906 27.424l0.4 0.264c2.169 1.449 4.837 2.312 7.707 2.312 7.732 0 14-6.268 14-14s-6.268-14-14-14c-0.004 0-0.009 0-0.013 0h0.001c-7.729 0.008-13.992 6.271-14 13.999v0.001c-0 0.010-0 0.021-0 0.032 0 3.072 1 5.909 2.693 8.206l-0.027-0.038 0.304 0.416-1.4 4.2zM20.716 24.958c-1.684-0.131-3.237-0.574-4.641-1.271l0.073 0.033c-3.098-1.456-5.634-3.668-7.438-6.405l-0.042-0.067c-1.102-1.357-1.819-3.067-1.962-4.938l-0.002-0.030c-0.001-0.036-0.001-0.078-0.001-0.12 0-1.575 0.66-2.995 1.719-4l0.002-0.002c0.547-0.52 1.289-0.839 2.105-0.839 0.033 0 0.066 0.001 0.099 0.002l-0.005-0c0.2 0 0.378 0 0.542 0.018 0.016-0.001 0.035-0.001 0.054-0.001 0.815 0 1.502 0.549 1.711 1.298l0.003 0.012 0.324 0.782c0.376 0.906 0.858 2.068 0.942 2.244 0.144 0.251 0.23 0.552 0.23 0.873 0 0.286-0.068 0.557-0.188 0.797l0.005-0.010c-0.149 0.307-0.332 0.57-0.55 0.802l0.002-0.002c-0.148 0.168-0.248 0.274-0.346 0.378s-0.172 0.18-0.26 0.284c0.575 0.92 1.237 1.713 1.992 2.406l0.008 0.008c0.829 0.758 1.802 1.373 2.872 1.8l0.064 0.022c0.369-0.266 0.672-0.6 0.896-0.985l0.008-0.015 0.174-0.232c0.328-0.484 0.875-0.798 1.495-0.798 0.249 0 0.487 0.051 0.703 0.142l-0.012-0.004c0.492 0.168 2.922 1.372 2.946 1.384l0.228 0.11c0.415 0.149 0.758 0.417 0.996 0.763l0.004 0.007c0.107 0.349 0.169 0.75 0.169 1.166 0 0.591-0.125 1.153-0.349 1.661l0.010-0.026c-0.702 1.368-1.983 2.353-3.511 2.637l-0.031 0.005c-0.309 0.071-0.663 0.112-1.028 0.112-0.004 0-0.007 0-0.011 0h0.001zM10.632 9.318c-0.028-0.002-0.062-0.004-0.095-0.004-0.245 0-0.472 0.076-0.659 0.206l0.004-0.002c-0.726 0.651-1.18 1.591-1.18 2.638 0 0.044 0.001 0.087 0.002 0.13l-0-0.006c0.122 1.404 0.662 2.662 1.495 3.671l-0.009-0.011 0.12 0.168c1.627 2.491 3.865 4.46 6.504 5.723l0.096 0.041c3.136 1.288 3.916 1.124 4.426 1.014 0.87-0.159 1.601-0.656 2.067-1.347l0.007-0.011c0.12-0.316 0.204-0.682 0.237-1.063l0.001-0.015-0.040-0.018-0.256-0.124c-0.8-0.4-2.46-1.2-2.734-1.292l-0.058 0.184c-0.346 0.501-0.684 0.934-1.045 1.347l0.015-0.017c-0.344 0.349-0.821 0.565-1.349 0.565-0.28 0-0.546-0.061-0.785-0.17l0.012 0.005c-1.403-0.547-2.609-1.301-3.646-2.239l0.010 0.009c-0.975-0.891-1.81-1.912-2.486-3.039l-0.034-0.061c-0.152-0.244-0.242-0.54-0.242-0.857 0-0.463 0.191-0.88 0.499-1.178l0-0c0.13-0.162 0.264-0.302 0.4-0.444l0.236-0.256c0.091-0.096 0.177-0.201 0.254-0.311l0.006-0.009c-0.158-0.36-0.622-1.472-0.988-2.352l-0.322-0.772-0.038-0.086c-0.188-0.010-0.302-0.016-0.426-0.016zM12.462 12.442v0.012z"></path>\n</svg>\n',name:o.WHATSAPP},{icon:e,name:o.FACEBOOK},{icon:l,name:o.TWITTER},{icon:i,name:o.EMAIL},{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>link</title>\n<path d="M19.247 23.019l-4.189 4.189c-2.831 2.831-7.435 2.831-10.265 0-1.371-1.372-2.125-3.193-2.125-5.132s0.755-3.761 2.125-5.133l4.189-4.191c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-4.189 4.191c-1.875 1.875-2.907 4.367-2.907 7.019s1.032 5.143 2.907 7.017 4.368 2.907 7.019 2.907 5.143-1.032 7.017-2.908l4.189-4.189c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.52-1.885 0.001zM22.276 9.724c-0.521-0.521-1.364-0.521-1.885 0l-10.667 10.667c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l10.667-10.667c0.521-0.521 0.521-1.364 0-1.885zM29.093 2.908c-1.875-1.876-4.368-2.908-7.019-2.908s-5.143 1.032-7.017 2.908l-4.189 4.188c-0.521 0.521-0.521 1.364 0 1.885s1.364 0.521 1.885 0l4.189-4.189c2.831-2.831 7.435-2.831 10.265 0 1.371 1.372 2.125 3.193 2.125 5.132s-0.755 3.761-2.125 5.133l-4.189 4.191c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l4.189-4.191c1.875-1.875 2.907-4.367 2.907-7.019s-1.032-5.143-2.907-7.016z"></path>\n</svg>\n',name:o.COPY_LINK}],this.convertedPlatforms=[],this.url="",this.urlName="",this.platforms="facebook,twitter,whatsapp,email,copy_link"}componentWillLoad(){if(this.host.hasAttribute("aria-label")&&this.host.removeAttribute("aria-label"),document.getElementById("a2a-script"))return;const a=document.createElement("script");a.src="https://static.addtoany.com/menu/page.js",a.setAttribute("id","a2a-script"),a.async=!0,a.onload=function(){window.a2a_config.locale=salla.config.get("user.language_code",salla.lang.getLocale()),window.a2a_config.callbacks=window.a2a_config.callbacks||[],window.a2a_config.callbacks.push({share:a=>{const s={share_via:a.service.toLowerCase(),url:a.url,title:a.title};salla.event.emit("share-element",s)}})},document.body.appendChild(a)}async open(){const a=(new c.timeline).add({targets:this.shareMenu,translateY:[-50,0],opacity:[0,1],duration:300,podding:"0",easing:"easeInOutSine"});a.add({targets:this.shareMenu.children,translateZ:0,translateY:[-30,0],scaleY:[0,1],opacity:[0,1],duration:1400,delay:c.stagger(100)},"-=200"),this.opened=!this.opened,this.opened?this.shareMenu.classList.add("opened"):(a.pause(),a.seek(0),this.shareMenu.classList.remove("opened"))}async refresh(){window.a2a?.init("page")}render(){return s("div",{key:"e45420682a1b9bf686cbb9d3beff5a208505e1c7",class:"s-social-share-wrapper"},s("slot",{key:"265102d26da7ce2d297969e1941b9a5785da3971",name:"widget"},s("salla-button",{key:"9f36a44dc9487f4956c1d8b73f0fcc41cf8a01b8","aria-label":"Share",onClick:()=>this.open(),class:"s-social-share-btn",shape:"icon",fill:"outline",color:"light"},s("span",{key:"b34ed78cd6549bff733de5c542a42ca9aaf805d0",innerHTML:this.opened?n:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>share-alt</title>\n<path 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"></path>\n</svg>\n'}))),s("ul",{key:"f8eb408030d409880391b7d13b5a701226b0d42a",ref:a=>this.shareMenu=a,class:"s-social-share-list a2a_kit share","data-a2a-url":this.url?this.url:window.location.href,"data-a2a-title":this.urlName?this.urlName:document.title},this.platforms.split(",").map((a=>s("li",null,s("a",{class:`a2a_button_${a}`,"aria-label":`Share Via ${a}`},this.platformIcons.map((t=>{if(t.name===a)return s("span",{class:"s-social-share-icon",innerHTML:t.icon})}))))))))}get host(){return t(this)}};r.style="";export{r as salla_social_share}