@salla.sa/twilight-components 2.14.509 → 2.14.510

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 (341) hide show
  1. package/dist/cjs/{filepond-Dn8WkI9_.js → filepond-COZHgu78.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-mufjzLbD.js → filepond-plugin-file-poster-Bi4mWImr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BC6t5UPj.js → filepond-plugin-file-validate-size-CtrIas22.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CaQ5Kqok.js → filepond-plugin-file-validate-type-Djj5o2ks.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DvSmfnUl.js → filepond-plugin-image-edit-CaVm_-Xi.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-Br5ovpCW.js → filepond-plugin-image-exif-orientation-BD44-lrC.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-C71ogaak.js → filepond-plugin-image-preview-BlHYB_rk.js} +1 -1
  8. package/dist/cjs/{functions-DgFPxTJv.js → functions-D7e0oMZu.js} +1 -1
  9. package/dist/cjs/{index-CeEhEVDJ.js → index-D6MQobeP.js} +2 -2
  10. package/dist/cjs/{index-DHuZTkix.js → index-KhpPkTL1.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-basket-gap.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +36 -16
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
  48. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  54. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-product-card_2.cjs.entry.js +36 -6
  84. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-products-list.cjs.entry.js +26 -3
  86. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  106. package/dist/cjs/{tracked-promise-DDnavSzb.js → tracked-promise-Dmb45-BD.js} +1 -1
  107. package/dist/cjs/twilight.cjs.js +2 -2
  108. package/dist/cjs/{vanilla-picker-CyrLIKBL.js → vanilla-picker-B_OQkkn3.js} +1 -1
  109. package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +36 -15
  110. package/dist/collection/components/salla-products-list/salla-products-list.js +25 -2
  111. package/dist/collection/components/salla-products-slider/salla-products-slider.js +35 -5
  112. package/dist/components/index.js +2 -2
  113. package/dist/components/salla-cart-coupons.js +36 -15
  114. package/dist/components/salla-products-list2.js +25 -2
  115. package/dist/components/salla-products-slider2.js +35 -5
  116. package/dist/esm/{filepond-Cu0hGP46.js → filepond-B1eTr-KK.js} +1 -1
  117. package/dist/esm/{filepond-plugin-file-poster-DBfLrjkx.js → filepond-plugin-file-poster-exJROlFk.js} +1 -1
  118. package/dist/esm/{filepond-plugin-file-validate-size-Cq0e60aE.js → filepond-plugin-file-validate-size-CZY_F4BF.js} +1 -1
  119. package/dist/esm/{filepond-plugin-file-validate-type-CpRmNAFC.js → filepond-plugin-file-validate-type-D8z0FHfz.js} +1 -1
  120. package/dist/esm/{filepond-plugin-image-edit-C-7yhkPK.js → filepond-plugin-image-edit-CACbacvT.js} +1 -1
  121. package/dist/esm/{filepond-plugin-image-exif-orientation-CTn5LeXC.js → filepond-plugin-image-exif-orientation-DwS9XuCo.js} +1 -1
  122. package/dist/esm/{filepond-plugin-image-preview-BsETbqVf.js → filepond-plugin-image-preview-BYy-d2mY.js} +1 -1
  123. package/dist/esm/{functions-DtC2lEvS.js → functions-DEUWeLq4.js} +1 -1
  124. package/dist/esm/{index-BEjZOd--.js → index-Bt0ajKaf.js} +2 -2
  125. package/dist/esm/{index-DskkoO4T.js → index-FMb5OkaH.js} +1 -1
  126. package/dist/esm/loader.js +3 -3
  127. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  128. package/dist/esm/salla-accordion_6.entry.js +1 -1
  129. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  130. package/dist/esm/salla-advertisement.entry.js +1 -1
  131. package/dist/esm/salla-alert_2.entry.js +1 -1
  132. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  133. package/dist/esm/salla-apps-icons.entry.js +1 -1
  134. package/dist/esm/salla-badge.entry.js +1 -1
  135. package/dist/esm/salla-basket-gap.entry.js +1 -1
  136. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  137. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  138. package/dist/esm/salla-cart-coupons.entry.js +36 -16
  139. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  140. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  141. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  142. package/dist/esm/salla-comment-factors.entry.js +1 -1
  143. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  144. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  145. package/dist/esm/salla-contacts.entry.js +1 -1
  146. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  147. package/dist/esm/salla-count-down_2.entry.js +1 -1
  148. package/dist/esm/salla-custom-fields.entry.js +1 -1
  149. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  150. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  151. package/dist/esm/salla-filters-widget.entry.js +1 -1
  152. package/dist/esm/salla-filters.entry.js +1 -1
  153. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  154. package/dist/esm/salla-gifting.entry.js +1 -1
  155. package/dist/esm/salla-hook.entry.js +1 -1
  156. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  157. package/dist/esm/salla-installment.entry.js +1 -1
  158. package/dist/esm/salla-list-tile.entry.js +1 -1
  159. package/dist/esm/salla-localization-modal.entry.js +1 -1
  160. package/dist/esm/salla-login-modal.entry.js +1 -1
  161. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  162. package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
  163. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  164. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  165. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  166. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  167. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  168. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  169. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  170. package/dist/esm/salla-loyalty.entry.js +1 -1
  171. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  172. package/dist/esm/salla-map_2.entry.js +1 -1
  173. package/dist/esm/salla-menu.entry.js +1 -1
  174. package/dist/esm/salla-metadata.entry.js +1 -1
  175. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  176. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  177. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  178. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  179. package/dist/esm/salla-notification-item.entry.js +1 -1
  180. package/dist/esm/salla-notifications.entry.js +1 -1
  181. package/dist/esm/salla-offer-modal.entry.js +1 -1
  182. package/dist/esm/salla-offer.entry.js +1 -1
  183. package/dist/esm/salla-order-branch.entry.js +1 -1
  184. package/dist/esm/salla-order-cancel.entry.js +1 -1
  185. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  186. package/dist/esm/salla-order-details-options.entry.js +1 -1
  187. package/dist/esm/salla-order-details.entry.js +1 -1
  188. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  189. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  190. package/dist/esm/salla-order-edit.entry.js +1 -1
  191. package/dist/esm/salla-order-summary.entry.js +1 -1
  192. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  193. package/dist/esm/salla-orders.entry.js +1 -1
  194. package/dist/esm/salla-payments.entry.js +1 -1
  195. package/dist/esm/salla-placeholder.entry.js +1 -1
  196. package/dist/esm/salla-price-range.entry.js +1 -1
  197. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  198. package/dist/esm/salla-product-card_2.entry.js +36 -6
  199. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  200. package/dist/esm/salla-products-list.entry.js +26 -3
  201. package/dist/esm/salla-quick-order.entry.js +1 -1
  202. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  203. package/dist/esm/salla-rating-modal.entry.js +1 -1
  204. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  205. package/dist/esm/salla-scopes.entry.js +1 -1
  206. package/dist/esm/salla-search.entry.js +1 -1
  207. package/dist/esm/salla-skeleton.entry.js +1 -1
  208. package/dist/esm/salla-slider.entry.js +1 -1
  209. package/dist/esm/salla-social-share.entry.js +1 -1
  210. package/dist/esm/salla-social.entry.js +1 -1
  211. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  212. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  213. package/dist/esm/salla-tooltip.entry.js +1 -1
  214. package/dist/esm/salla-trust-badges.entry.js +1 -1
  215. package/dist/esm/salla-user-menu.entry.js +1 -1
  216. package/dist/esm/salla-user-profile.entry.js +1 -1
  217. package/dist/esm/salla-user-settings.entry.js +1 -1
  218. package/dist/esm/salla-verify.entry.js +1 -1
  219. package/dist/esm/salla-wallet.entry.js +1 -1
  220. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  221. package/dist/esm/{tracked-promise-DzdT8znx.js → tracked-promise-T29mWxDS.js} +1 -1
  222. package/dist/esm/twilight.js +3 -3
  223. package/dist/esm/{vanilla-picker-DzKX2qA5.js → vanilla-picker-Dpp89BQ6.js} +1 -1
  224. package/dist/twilight/{p-557609aa.entry.js → p-055187ca.entry.js} +1 -1
  225. package/dist/twilight/{p-858f485b.entry.js → p-09ea780c.entry.js} +1 -1
  226. package/dist/twilight/{p-3350c805.entry.js → p-0adbdc90.entry.js} +1 -1
  227. package/dist/twilight/{p-8f982a91.entry.js → p-1071ea00.entry.js} +1 -1
  228. package/dist/twilight/{p-2643952e.entry.js → p-139c80a0.entry.js} +1 -1
  229. package/dist/twilight/{p-193cccd3.entry.js → p-1b0d555a.entry.js} +1 -1
  230. package/dist/twilight/{p-113e7032.entry.js → p-1e225a23.entry.js} +1 -1
  231. package/dist/twilight/{p-3ccbdb7a.entry.js → p-1f3d6151.entry.js} +1 -1
  232. package/dist/twilight/{p-925af19b.entry.js → p-22712655.entry.js} +1 -1
  233. package/dist/twilight/{p-42c57314.entry.js → p-22d6c097.entry.js} +1 -1
  234. package/dist/twilight/{p-3791a8d0.entry.js → p-23bfb6be.entry.js} +1 -1
  235. package/dist/twilight/{p-62abd25a.entry.js → p-277d5788.entry.js} +1 -1
  236. package/dist/twilight/{p-6ba99048.entry.js → p-2a4b20fa.entry.js} +1 -1
  237. package/dist/twilight/{p-d66af968.entry.js → p-2e6b6fbb.entry.js} +1 -1
  238. package/dist/twilight/{p-41ac2dc0.entry.js → p-2f7ddf17.entry.js} +1 -1
  239. package/dist/twilight/{p-b25fd5f0.entry.js → p-300e6aef.entry.js} +1 -1
  240. package/dist/twilight/{p-384febda.entry.js → p-301e3802.entry.js} +1 -1
  241. package/dist/twilight/{p-6d970be9.entry.js → p-346af34c.entry.js} +1 -1
  242. package/dist/twilight/{p-fc18bd83.entry.js → p-37e88d81.entry.js} +1 -1
  243. package/dist/twilight/{p-758894b7.entry.js → p-41269041.entry.js} +1 -1
  244. package/dist/twilight/{p-2c7e18c5.entry.js → p-4136f4d5.entry.js} +1 -1
  245. package/dist/twilight/{p-de07b85c.entry.js → p-42fc42d6.entry.js} +1 -1
  246. package/dist/twilight/{p-4317eeb9.entry.js → p-4328bd24.entry.js} +1 -1
  247. package/dist/twilight/{p-0a3e9f94.entry.js → p-44c94e17.entry.js} +1 -1
  248. package/dist/twilight/{p-b847e008.entry.js → p-457be53a.entry.js} +1 -1
  249. package/dist/twilight/{p-734dfd28.entry.js → p-49c926d2.entry.js} +1 -1
  250. package/dist/twilight/{p-8fcc4bb0.entry.js → p-4e7b8137.entry.js} +1 -1
  251. package/dist/twilight/{p-8ddfe69e.entry.js → p-4eb47f77.entry.js} +1 -1
  252. package/dist/twilight/{p-d76f186c.entry.js → p-4f61e580.entry.js} +1 -1
  253. package/dist/twilight/{p-3d44e1e9.entry.js → p-5255bb4a.entry.js} +1 -1
  254. package/dist/twilight/{p-4d76cd8f.entry.js → p-549b56f5.entry.js} +1 -1
  255. package/dist/twilight/{p-09cd7f70.entry.js → p-57919fb4.entry.js} +1 -1
  256. package/dist/twilight/{p-86df9649.entry.js → p-5a62369e.entry.js} +1 -1
  257. package/dist/twilight/{p-d53f9574.entry.js → p-5b9c3427.entry.js} +1 -1
  258. package/dist/twilight/{p-6c3b50e2.entry.js → p-5e02c7e7.entry.js} +1 -1
  259. package/dist/twilight/{p-74c84c67.entry.js → p-5e1140fb.entry.js} +1 -1
  260. package/dist/twilight/{p-33756c72.entry.js → p-5e851bce.entry.js} +1 -1
  261. package/dist/twilight/{p-37310557.entry.js → p-5f2f9351.entry.js} +1 -1
  262. package/dist/twilight/{p-0959b41c.entry.js → p-65ba2211.entry.js} +1 -1
  263. package/dist/twilight/{p-da441555.entry.js → p-67bd9271.entry.js} +1 -1
  264. package/dist/twilight/{p-effae25c.entry.js → p-6dd674c3.entry.js} +1 -1
  265. package/dist/twilight/{p-48cf6b68.entry.js → p-6ed50846.entry.js} +1 -1
  266. package/dist/twilight/{p-9807935d.entry.js → p-70a1619e.entry.js} +1 -1
  267. package/dist/twilight/{p-ed698e64.entry.js → p-70a9d197.entry.js} +1 -1
  268. package/dist/twilight/{p-27acb426.entry.js → p-75500766.entry.js} +1 -1
  269. package/dist/twilight/{p-9eade28d.entry.js → p-774fece9.entry.js} +1 -1
  270. package/dist/twilight/{p-f3f0ee9b.entry.js → p-7992cf55.entry.js} +1 -1
  271. package/dist/twilight/{p-296df4c6.entry.js → p-7d5855f2.entry.js} +1 -1
  272. package/dist/twilight/{p-12c571d7.entry.js → p-7d978fbc.entry.js} +1 -1
  273. package/dist/twilight/{p-518b6032.entry.js → p-7dfe0786.entry.js} +1 -1
  274. package/dist/twilight/p-7ebd07e6.entry.js +4 -0
  275. package/dist/twilight/{p-52c0a1b5.entry.js → p-86ec92b8.entry.js} +1 -1
  276. package/dist/twilight/{p-0950cbbb.entry.js → p-8775397b.entry.js} +1 -1
  277. package/dist/twilight/{p-03505fdd.entry.js → p-8a0d3cc9.entry.js} +1 -1
  278. package/dist/twilight/p-8a80f76c.entry.js +4 -0
  279. package/dist/twilight/{p-abd00b41.entry.js → p-8db02f76.entry.js} +1 -1
  280. package/dist/twilight/{p-bec996fb.entry.js → p-90de004a.entry.js} +1 -1
  281. package/dist/twilight/{p-bbb48f58.entry.js → p-91804117.entry.js} +1 -1
  282. package/dist/twilight/{p-fef39c48.entry.js → p-9310e773.entry.js} +1 -1
  283. package/dist/twilight/{p-8c6730a9.entry.js → p-95b32475.entry.js} +1 -1
  284. package/dist/twilight/{p-804cfed5.entry.js → p-97bb4320.entry.js} +1 -1
  285. package/dist/twilight/{p-7e4fea4b.entry.js → p-98b482a2.entry.js} +1 -1
  286. package/dist/twilight/p-9c12fd69.entry.js +4 -0
  287. package/dist/twilight/{p-30d6436e.entry.js → p-9c220b6d.entry.js} +1 -1
  288. package/dist/twilight/p-9cbf61c6.entry.js +4 -0
  289. package/dist/twilight/{p-Da0xrmo3.js → p-BBv-zo85.js} +2 -2
  290. package/dist/twilight/{p-Dv2SelMn.js → p-BF-dDqac.js} +1 -1
  291. package/dist/twilight/{p-CxQVHI3A.js → p-BFxb7lGH.js} +1 -1
  292. package/dist/twilight/{p-CCH8joDb.js → p-BUfV-mlp.js} +1 -1
  293. package/dist/twilight/p-Bt0ajKaf.js +5 -0
  294. package/dist/twilight/{p-BTVc7r-Z.js → p-C1E96uk_.js} +1 -1
  295. package/dist/twilight/p-CUg7C93N.js +4 -0
  296. package/dist/twilight/{p-CGahPnsw.js → p-CdRScS-B.js} +1 -1
  297. package/dist/twilight/{p-BDLhoSt2.js → p-CgGcK4mo.js} +1 -1
  298. package/dist/twilight/{p-COwpiJQt.js → p-DInaMMrI.js} +1 -1
  299. package/dist/twilight/p-DSxQpYYV.js +9 -0
  300. package/dist/twilight/{p-D2_JplO8.js → p-NoY5Pdvf.js} +1 -1
  301. package/dist/twilight/{p-725eeeed.entry.js → p-a660aacc.entry.js} +1 -1
  302. package/dist/twilight/{p-d6d8d12e.entry.js → p-a7e8ac45.entry.js} +1 -1
  303. package/dist/twilight/{p-8c03c0d2.entry.js → p-a8f28e45.entry.js} +1 -1
  304. package/dist/twilight/{p-27252d50.entry.js → p-aea5b09b.entry.js} +1 -1
  305. package/dist/twilight/{p-a476f7b2.entry.js → p-afd24c2b.entry.js} +1 -1
  306. package/dist/twilight/{p-e1842675.entry.js → p-b09fcdb4.entry.js} +1 -1
  307. package/dist/twilight/{p-fa7c213b.entry.js → p-b197fad7.entry.js} +1 -1
  308. package/dist/twilight/{p-8b9c8776.entry.js → p-b37ea19f.entry.js} +1 -1
  309. package/dist/twilight/{p-62a86556.entry.js → p-b626976f.entry.js} +1 -1
  310. package/dist/twilight/{p-7edc5c88.entry.js → p-bd847c2e.entry.js} +1 -1
  311. package/dist/twilight/{p-d6fbb91c.entry.js → p-c5d7a901.entry.js} +1 -1
  312. package/dist/twilight/{p-1bec8b0a.entry.js → p-cfc4cfaa.entry.js} +1 -1
  313. package/dist/twilight/{p-25f8d253.entry.js → p-d172feb2.entry.js} +1 -1
  314. package/dist/twilight/{p-b6322bba.entry.js → p-d18e08bd.entry.js} +1 -1
  315. package/dist/twilight/{p-017a1a77.entry.js → p-d4b2ce41.entry.js} +1 -1
  316. package/dist/twilight/{p-ad8eda9d.entry.js → p-d60ce89d.entry.js} +1 -1
  317. package/dist/twilight/{p-69758093.entry.js → p-dd87bf9c.entry.js} +1 -1
  318. package/dist/twilight/{p-e69c2c35.entry.js → p-e13fc06b.entry.js} +1 -1
  319. package/dist/twilight/{p-05f01920.entry.js → p-e232c59b.entry.js} +1 -1
  320. package/dist/twilight/{p-8d199be5.entry.js → p-e2693453.entry.js} +1 -1
  321. package/dist/twilight/{p-21870458.entry.js → p-e3e9a105.entry.js} +1 -1
  322. package/dist/twilight/{p-516e9179.entry.js → p-e57d1b21.entry.js} +1 -1
  323. package/dist/twilight/{p-6681db6a.entry.js → p-e8070f83.entry.js} +1 -1
  324. package/dist/twilight/{p-e78fe137.entry.js → p-e8a86f16.entry.js} +1 -1
  325. package/dist/twilight/{p-1df6827d.entry.js → p-ea0ca518.entry.js} +1 -1
  326. package/dist/twilight/{p-b2789ab4.entry.js → p-f0d1222d.entry.js} +1 -1
  327. package/dist/twilight/{p-1c03607d.entry.js → p-f61c0f39.entry.js} +1 -1
  328. package/dist/twilight/{p-5201eb4f.entry.js → p-f6efad0a.entry.js} +1 -1
  329. package/dist/twilight/{p-47a7f1a5.entry.js → p-f7a0c179.entry.js} +1 -1
  330. package/dist/twilight/twilight.esm.js +1 -1
  331. package/dist/types/components/salla-cart-coupons/salla-cart-coupons.d.ts +5 -0
  332. package/dist/types/components/salla-products-list/salla-products-list.d.ts +13 -0
  333. package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +13 -0
  334. package/package.json +5 -5
  335. package/dist/twilight/p--UKCKF-7.js +0 -4
  336. package/dist/twilight/p-19388aef.entry.js +0 -4
  337. package/dist/twilight/p-5958986c.entry.js +0 -4
  338. package/dist/twilight/p-BEjZOd--.js +0 -5
  339. package/dist/twilight/p-Dw58JgkP.js +0 -9
  340. package/dist/twilight/p-c4f379a8.entry.js +0 -4
  341. package/dist/twilight/p-e7b03751.entry.js +0 -4
@@ -3,6 +3,8 @@ export declare class SallaCartCoupons {
3
3
  host: HTMLElement;
4
4
  availableCoupons: Coupon[];
5
5
  cartTotal: number;
6
+ /** False until a sub_total is read from storage or the server — guards isEligible. */
7
+ cartTotalReady: boolean;
6
8
  currentCoupon: string;
7
9
  couponInputValue: string;
8
10
  couponError: string;
@@ -40,6 +42,9 @@ export declare class SallaCartCoupons {
40
42
  * entirely and let refreshFromServer/cart::updated populate the chips from the server.
41
43
  */
42
44
  private seedFromStorage;
45
+ /** SDK caches summary fields separately from the cart object (see cart.js updated()). */
46
+ private seedTotalsFromSummaryStorage;
47
+ private syncCartTotal;
43
48
  /**
44
49
  * Fetch the cart fresh from the server (salla.cart.details -> CartPresenter::forApi) and
45
50
  * seed the applied codes + total from its authoritative payload (cart.coupons). Falls back
@@ -236,4 +236,17 @@ export declare class SallaProductsList {
236
236
  render(): any;
237
237
  private init;
238
238
  private handleResponse;
239
+ /**
240
+ * Allows bundles to modify or replace products before they are appended.
241
+ *
242
+ * @example
243
+ * salla.hooks.registerHook(
244
+ * 'salla-products-list',
245
+ * 'beforeAppendItems',
246
+ * async (ctx) => {
247
+ * ctx.items = ctx.items.filter((item) => item.is_available);
248
+ * },
249
+ * );
250
+ */
251
+ private applyBeforeAppendItems;
239
252
  }
@@ -108,5 +108,18 @@ export declare class SallaProductsSlider {
108
108
  private canRender;
109
109
  private getSource;
110
110
  private getSourceValue;
111
+ /**
112
+ * Allows bundles to modify or replace products before they are rendered.
113
+ *
114
+ * @example
115
+ * salla.hooks.registerHook(
116
+ * 'salla-products-slider',
117
+ * 'beforeAppendItems',
118
+ * async (ctx) => {
119
+ * ctx.items = ctx.items.filter((item) => item.is_available);
120
+ * },
121
+ * );
122
+ */
123
+ private applyBeforeAppendItems;
111
124
  render(): any;
112
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.14.509",
3
+ "version": "2.14.510",
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.509",
85
- "@salla.sa/twilight": "2.14.509",
86
- "@salla.sa/twilight-tailwind-theme": "2.14.509",
84
+ "@salla.sa/applepay": "2.14.510",
85
+ "@salla.sa/twilight": "2.14.510",
86
+ "@salla.sa/twilight-tailwind-theme": "2.14.510",
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": "a3be112b7e09030e373591641872784bedd9acee"
107
+ "gitHead": "13df0a63868d84e9d748dee16140902f6d8596cd"
108
108
  }
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{f as t}from"./p-BEjZOd--.js";function r(r,s={}){return s=Object.assign({initialData:void 0,initialStatus:"idle"},s),(i,e)=>{const o=Object.assign((function(...s){const i=r=>{Object.assign(this[e],r),t(this)};return i({status:"pending",error:void 0}),r.call(this,...s).then((t=>(i({status:"success",data:t,error:void 0}),t)),(t=>(i({status:"error",error:t}),Promise.reject(t))))}),{status:s.initialStatus,data:s.initialData,error:void 0});Object.defineProperty(i,e,{value:o})}}export{r as T}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as e,c as d,h as t,H as r}from"./p-BEjZOd--.js";const c=class{constructor(t){e(this,t),this.orderEditProductSelected=d(this,"orderEditProductSelected")}get productData(){if(!this.product)return{};if("object"==typeof this.product)return this.product;try{return JSON.parse(this.product)}catch(e){return{}}}handleSelectProduct(){this.orderEditProductSelected.emit({product:this.productData})}render(){const e=this.productData,d=e?.name||salla.lang.getWithDefault("common.elements.product","منتج"),c=e?.price;return t(r,{key:"7669432a4756da446e16d9a3093a067767c5dd9d"},t("button",{key:"d998dde2a1dc4eae7444fd398910c3a0699730f8",type:"button",class:"s-order-edit-product-card",onClick:()=>this.handleSelectProduct()},t("div",{key:"6a0e6eec84de332598d94be87b49564eeb2cfbc2",class:"s-order-edit-product-card-media"},e?.image?.url?t("img",{src:e.image.url,alt:e.image.alt||d,class:"s-order-edit-product-card-image"}):t("div",{class:"s-order-edit-product-card-placeholder"},t("i",{class:"sicon-shopping-bag"}))),t("div",{key:"4eeb9f7430c19f8e792b0f6856fb86a2f265eb95",class:"s-order-edit-product-card-content"},t("h3",{key:"840ae549097a53f1f297673d69e3155792a4097e",class:"s-order-edit-product-card-title"},d),null!=c&&t("p",{key:"32732854ca599fe446d0b47883b892ac17d90cae",class:"s-order-edit-product-card-price",innerHTML:salla.money(c)}))))}};c.style=":host{display:block;min-width:0}";export{c as salla_order_edit_product_card}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as a,H as t,a as o}from"./p-BEjZOd--.js";const i=class{constructor(a){s(this,a),this.availableCoupons=[],this.cartTotal=0,this.currentCoupon="",this.couponInputValue="",this.couponError="",this.isApplying=!1,this.appliedCoupons=[],this.multiCoupon=!1,this.isHandlingInternalError=!1,this.cartUpdatedHandler=s=>{this.cartTotal=s?.summary?.sub_total??s?.sub_total??s?.total??this.cartTotal,(this.multiCoupon?Array.isArray(s?.coupons):s&&"coupon"in s)&&this.syncAppliedFromCart(s),this.couponError=""},this.couponAddedHandler=()=>{this.isApplying||this.isHandlingInternalError||this.refreshFromServer()},this.couponAdditionFailedHandler=s=>{this.isApplying||this.isHandlingInternalError||this.showCouponError(s?.message||salla.lang.get("pages.cart.coupon_application_error"))},this.couponDeletedHandler=()=>{this.isApplying||this.isHandlingInternalError||this.refreshFromServer()},this.onKeyUp=s=>{"Enter"===s.key&&this.couponButtonRef?.click(),this.couponError=""},this.onInput=s=>{this.couponInputValue=s.target.value}}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),this.multiCoupon=!!salla.config.get("store.settings.cart.multi_coupon"),this.loadCouponsData(),this.seedFromStorage(),this.loadCartTotal(),this.setupCartEventListeners()}setupCartEventListeners(){salla.event.on("cart::updated",this.cartUpdatedHandler),salla.event.on("cart::coupon.added",this.couponAddedHandler),salla.event.on("cart::coupon.addition.failed",this.couponAdditionFailedHandler),salla.event.on("cart::coupon.deleted",this.couponDeletedHandler)}disconnectedCallback(){salla.event.off("cart::updated",this.cartUpdatedHandler),salla.event.off("cart::coupon.added",this.couponAddedHandler),salla.event.off("cart::coupon.addition.failed",this.couponAdditionFailedHandler),salla.event.off("cart::coupon.deleted",this.couponDeletedHandler)}async selectCoupon(s){const a=this.availableCoupons.find((a=>a.code===s));if(a){if(!this.isEligible(a))throw new Error("Coupon not eligible: minimum cart amount not met");try{await this.applyCoupon(s),this.host.dispatchEvent(new CustomEvent("salla::cart-coupons.coupon.selected",{detail:a,bubbles:!0}))}catch(s){throw s}}return a}async loadCouponsData(){try{const s=await salla.api.request("coupons"),a=s?.data,t=Array.isArray(a)?a:Array.isArray(a?.data)?a.data:[];this.availableCoupons=t}catch(s){console.warn("Failed to load coupons:",s),this.availableCoupons=[]}}async loadCartTotal(){this.multiCoupon&&await this.refreshFromServer()}seedFromStorage(){if(this.multiCoupon)return;const s=salla.storage.get("cart");s&&"object"==typeof s&&"coupon"in s&&this.applyCart(s)}async refreshFromServer(){try{const s=await salla.cart.details(),a=s?.data?.cart??s?.data??s;if(a&&"object"==typeof a&&(Array.isArray(a.coupons)||"coupon"in a))return void this.applyCart(a)}catch(s){}const s=salla.storage.get("cart");s&&this.applyCart(s)}applyCart(s){this.cartTotal=s?.summary?.sub_total??s?.sub_total??this.cartTotal,this.syncAppliedFromCart(s)}syncAppliedFromCart(s){this.currentCoupon=s?.coupon||"",this.multiCoupon?this.appliedCoupons=Array.isArray(s?.coupons)?s.coupons.filter(Boolean):this.currentCoupon?[this.currentCoupon]:[]:(this.couponInputValue=this.currentCoupon,this.appliedCoupons=this.currentCoupon?[this.currentCoupon]:[])}async handleApplyClick(){if(this.isApplying)return;const s=this.couponInputValue.trim();if(s){this.isApplying=!0,this.isHandlingInternalError=!0;try{await salla.cart.addCoupon(s),await this.refreshFromServer(),this.couponInputValue=""}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}else this.showCouponError(salla.lang.get("pages.cart.enter_coupon_code"))}async handleCouponButtonClick(){if(this.isApplying)return;const s=!!this.currentCoupon;if(s||this.couponInputValue.trim()){this.isApplying=!0,this.isHandlingInternalError=!0;try{s?await salla.cart.deleteCoupon():await salla.cart.addCoupon(this.couponInputValue.trim()),await this.refreshFromServer()}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}else this.showCouponError(salla.lang.get("pages.cart.enter_coupon_code"))}async removeCoupon(s){if(!this.isApplying){this.isApplying=!0,this.isHandlingInternalError=!0;try{this.multiCoupon?await salla.cart.deleteCoupon(s):await salla.cart.deleteCoupon(),await this.refreshFromServer()}catch(s){this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error"))}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}}showCouponError(s){this.couponError=s}handleCouponClick(s){this.applyCoupon(s.code,!1).catch((()=>{}))}async applyCoupon(s,a=!0){if(this.isApplying){if(a)throw new Error("Coupon application already in progress")}else{this.couponInputValue=s,this.couponError="",this.isApplying=!0,this.isHandlingInternalError=!0;try{await salla.cart.addCoupon(s.trim()),await this.refreshFromServer(),this.multiCoupon&&(this.couponInputValue="")}catch(s){if(this.showCouponError(s.response?.data?.error?.message||salla.lang.get("pages.cart.coupon_application_error")),a)throw s}finally{this.isApplying=!1,setTimeout((()=>{this.isHandlingInternalError=!1}),100)}}}formatMainAmount(s){if("percentage"===s.type)return`${salla.helpers.number("object"==typeof s.amount?s.amount.amount:s.amount)}%`;{const t="object"==typeof s.amount?s.amount:{amount:s.amount,currency:s.minimum_amount?.currency||salla.config.get("store.currency.code","SAR")};return a("span",{innerHTML:salla.money(t.amount,t.currency)})}}isEligible(s){return!(s.minimum_amount&&this.cartTotal<parseFloat(s.minimum_amount.amount))}renderCouponCard(s){const t=this.isEligible(s);return a("div",{class:"s-cart-coupons-slide-one-fourth swiper-slide"},a("div",{class:"s-cart-coupons-card "+(!t||this.isApplying?"s-cart-coupons-disabled":""),onClick:()=>t&&!this.isApplying&&this.handleCouponClick(s)},a("div",{class:"s-cart-coupons-top-section"},a("div",{class:"s-cart-coupons-discount-values"},a("div",{class:"s-cart-coupons-main-amount"},this.formatMainAmount(s)),s.free_shipping?a("div",{class:"s-cart-coupons-secondary-info"},"+ ",salla.lang.get("pages.cart.free_shipping")):s.maximum_amount&&a("div",{class:"s-cart-coupons-secondary-info"},salla.lang.get("pages.cart.up_to")," ",a("span",{innerHTML:salla.money(s.maximum_amount.amount,s.maximum_amount.currency)}))),a("div",{class:"s-cart-coupons-code"},s.code)),a("div",{class:"s-cart-coupons-divider"}),a("div",{class:"s-cart-coupons-bottom-section"},a("div",{class:"s-cart-coupons-terms"},null!=s.remaining_days&&a("div",{class:"s-cart-coupons-expiry "+(s.remaining_days<=3?"s-cart-coupons-expiry-warning":"")},0===s.remaining_days?salla.lang.get("pages.cart.expires_today"):`${salla.lang.get("pages.cart.expires_after")} ${s.remaining_days} ${salla.lang.get("pages.cart.day")}`),s.minimum_amount&&parseFloat(s.minimum_amount.amount)>0&&a("div",{class:"s-cart-coupons-minimum"},salla.lang.get("pages.cart.minimum")," ",a("span",{innerHTML:salla.money(s.minimum_amount.amount,s.minimum_amount.currency)}))),a("div",{class:"s-cart-coupons-action"},t?salla.lang.get("pages.cart.save_coupon"):salla.lang.get("pages.cart.coupon_not_compatible")))))}render(){return a(t,{key:"30a1ee00e7ec27d12012823347cbcf3c477834e5"},a("div",{key:"6f84298e9ebd6c50c84fb9a3736d734996e39c33",class:"s-cart-coupons-wrapper"},a("div",{key:"b95a1c2b29d2fed54fdf143eac8e37add062668b",class:"s-cart-coupons-input-section"},a("label",{key:"e6711fae70db31f8a5987cb58f0488e974394e1c",htmlFor:"coupon-input",class:"s-cart-coupons-coupon-label"},salla.lang.get("pages.cart.have_coupon")),a("div",{key:"824b806c6aa40fb039f659fe81f6cb7686f46b10",class:"s-cart-coupons-coupon-input-container"},this.multiCoupon?[a("input",{type:"text",id:"coupon-input",name:"coupon",class:"form-input "+(this.couponError?"s-coupon-input-error":""),placeholder:salla.lang.get("pages.cart.coupon_placeholder"),value:this.couponInputValue,disabled:this.isApplying,onInput:this.onInput,onKeyUp:this.onKeyUp,"aria-label":salla.lang.get("pages.cart.apply_coupon"),key:"coupon-input"}),a("salla-button",{ref:s=>this.couponButtonRef=s,class:"s-cart-coupons-coupon-button s-cart-coupons-coupon-button-apply",color:"primary",loading:this.isApplying,"loader-position":"center",onClick:()=>this.handleApplyClick(),key:"apply-button"},a("span",null,salla.lang.get("pages.cart.save_coupon")))]:[a("input",{type:"text",id:"coupon-input",name:"coupon",class:"form-input "+(this.couponError?"s-coupon-input-error":""),placeholder:salla.lang.get("pages.cart.coupon_placeholder"),value:this.couponInputValue,disabled:!!this.currentCoupon||this.isApplying,onInput:this.onInput,onKeyUp:this.onKeyUp,"aria-label":salla.lang.get("pages.cart.apply_coupon"),key:"coupon-input"}),a("salla-button",{ref:s=>this.couponButtonRef=s,class:"s-cart-coupons-coupon-button "+(this.currentCoupon?"s-cart-coupons-coupon-button-remove":"s-cart-coupons-coupon-button-apply"),color:this.currentCoupon?"danger":"primary",loading:this.isApplying,"loader-position":"center",onClick:()=>this.handleCouponButtonClick(),key:"apply-button"},this.currentCoupon?a("i",{class:"sicon-cancel"}):a("span",null,salla.lang.get("pages.cart.save_coupon")))]),this.couponError&&a("span",{key:"0f3b36e8192777fb7e7d0a065fe720c009065f9d",class:"s-cart-coupons-coupon-error"},this.couponError),this.multiCoupon&&this.appliedCoupons.length>0&&a("div",{key:"b680e30bd1ae49db5e304440431cdc89c6e5d051",class:"s-cart-coupons-applied-list"},this.appliedCoupons.map((s=>a("div",{class:"s-cart-coupons-applied-item",key:s},a("span",{class:"s-cart-coupons-applied-code"},s),a("button",{type:"button",class:"s-cart-coupons-applied-remove","aria-label":`${salla.lang.get("pages.cart.delete")} ${s}`,disabled:this.isApplying,onClick:()=>this.removeCoupon(s)},a("i",{class:"sicon-cancel"}))))))),this.availableCoupons&&this.availableCoupons.length>0&&a("salla-slider",{key:"a2d312dbf6e997939f54c7867ef0d98091bbde4a",type:"carousel",showControls:!1,class:"s-cart-coupons-slider"},a("div",{key:"b474dcbdeabc26bef5ecba94dd78ef72a60950df",slot:"items"},this.availableCoupons.map((s=>this.renderCouponCard(s)))))))}get host(){return o(this)}};i.style='.s-cart-coupons-applied-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.s-cart-coupons-applied-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;border-inline-start:3px solid #10b981}.s-cart-coupons-applied-code{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#111827}.s-cart-coupons-applied-code::before{content:"";width:7px;height:7px;border-radius:9999px;background:#10b981}.s-cart-coupons-applied-remove{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;color:#ef4444;background:transparent;border:0;border-radius:9999px;cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease}.s-cart-coupons-applied-remove:hover{background:#fef2f2}.s-cart-coupons-applied-remove:disabled{opacity:0.5;cursor:not-allowed}';export{i as salla_cart_coupons}