@salla.sa/twilight-components 2.14.536 → 2.14.538

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 (684) hide show
  1. package/dist/cjs/{cancel-B5SbMYEk.js → cancel-De6vslRA.js} +2 -2
  2. package/dist/cjs/{check-BnVBPQNp.js → check-x3w3-gpj.js} +2 -2
  3. package/dist/cjs/{filepond-Dz5BpelZ.js → filepond-CtSUl5Ct.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-poster-aTmel6F4.js → filepond-plugin-file-poster-MbB20g2i.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-size-zygb4orY.js → filepond-plugin-file-validate-size-Djvu0kmc.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-file-validate-type-InAig3dT.js → filepond-plugin-file-validate-type-D7LBD397.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-edit-CwPS1rbB.js → filepond-plugin-image-edit-CD_ps_ik.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-exif-orientation-DrAd5aq6.js → filepond-plugin-image-exif-orientation-6yimvoyt.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-image-preview-BrnFJul_.js → filepond-plugin-image-preview-B9Co2A29.js} +1 -1
  10. package/dist/cjs/{gift-DbNivqYO.js → gift-CJ-3Yw_x.js} +2 -2
  11. package/dist/cjs/{gift-sharing-BE0uszUm.js → gift-sharing-CStz46FA.js} +2 -2
  12. package/dist/cjs/{index-esb3M_d6.js → index-CS4z8Mi_.js} +112 -66
  13. package/dist/cjs/{intlTelInput-C2FQflhz.js → intlTelInput-C2d0ZWHY.js} +1 -1
  14. package/dist/cjs/{iphone-x-qC21wCLj.js → iphone-x-B683VspR.js} +2 -2
  15. package/dist/cjs/loader.cjs.js +2 -2
  16. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-accordion_6.cjs.entry.js +10 -10
  18. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +53 -23
  19. package/dist/cjs/salla-advertisement.cjs.entry.js +2 -2
  20. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
  21. package/dist/cjs/salla-app-install-alert.cjs.entry.js +2 -2
  22. package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
  23. package/dist/cjs/salla-badge.cjs.entry.js +2 -2
  24. package/dist/cjs/salla-basket-gap.cjs.entry.js +2 -2
  25. package/dist/cjs/salla-booking-field_7.cjs.entry.js +16 -16
  26. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +21 -36
  27. package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
  28. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +5 -5
  29. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +4 -1
  30. package/dist/cjs/salla-cashback-banner.cjs.entry.js +2 -2
  31. package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-comment-form_8.cjs.entry.js +15 -13
  33. package/dist/cjs/salla-conditional-offer.cjs.entry.js +2 -2
  34. package/dist/cjs/salla-contacts.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-cookies-bar.cjs.entry.js +2 -2
  36. package/dist/cjs/{salla-count-down_2.cjs.entry.js → salla-count-down.cjs.entry.js} +2 -210
  37. package/dist/cjs/salla-custom-fields.cjs.entry.js +2 -2
  38. package/dist/cjs/salla-delivery-promise.cjs.entry.js +4 -1
  39. package/dist/cjs/salla-edit-order-button.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  42. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +4 -1
  43. package/dist/cjs/salla-gifting.cjs.entry.js +7 -7
  44. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-installment.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-localization-modal.cjs.entry.js +5 -2
  49. package/dist/cjs/salla-login-modal.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +980 -0
  51. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +27 -0
  52. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +2 -2
  53. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +7 -4
  54. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-loyalty.cjs.entry.js +4 -4
  56. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +4 -4
  57. package/dist/cjs/salla-map_2.cjs.entry.js +3 -3
  58. package/dist/cjs/salla-menu.cjs.entry.js +2 -2
  59. package/dist/cjs/salla-metadata.cjs.entry.js +2 -2
  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 +2 -2
  63. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +2 -2
  64. package/dist/cjs/salla-notification-item_2.cjs.entry.js +172 -0
  65. package/dist/cjs/salla-offer-modal.cjs.entry.js +6 -7
  66. package/dist/cjs/salla-offer.cjs.entry.js +2 -2
  67. package/dist/cjs/salla-order-branch.cjs.entry.js +2 -2
  68. package/dist/cjs/salla-order-cancel.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  72. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit.cjs.entry.js +2 -2
  75. package/dist/cjs/salla-order-options-modal_2.cjs.entry.js +367 -0
  76. package/dist/cjs/salla-order-shipments.cjs.entry.js +2 -2
  77. package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
  78. package/dist/cjs/salla-order-totals-card.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-orders.cjs.entry.js +5 -3
  80. package/dist/cjs/salla-payments.cjs.entry.js +2 -2
  81. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-price-range.cjs.entry.js +2 -2
  83. package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-product-size-guide.cjs.entry.js +2 -2
  85. package/dist/cjs/salla-products-list.cjs.entry.js +5 -3
  86. package/dist/cjs/salla-products-slider.cjs.entry.js +167 -0
  87. package/dist/cjs/salla-quick-order.cjs.entry.js +6 -6
  88. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
  89. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
  91. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-slider.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-social-share.cjs.entry.js +5 -5
  96. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  97. package/dist/cjs/salla-tab-content_3.cjs.entry.js +2 -2
  98. package/dist/cjs/salla-tiered-offer.cjs.entry.js +2 -2
  99. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  100. package/dist/cjs/salla-trust-badges.cjs.entry.js +2 -2
  101. package/dist/cjs/salla-user-menu.cjs.entry.js +6 -6
  102. package/dist/cjs/salla-user-profile.cjs.entry.js +2 -2
  103. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  104. package/dist/cjs/salla-verify.cjs.entry.js +2 -2
  105. package/dist/cjs/salla-wallet.cjs.entry.js +5 -3
  106. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
  107. package/dist/cjs/{cart2-B98PSAFN.js → tag-BH5n_Nx3.js} +9 -2
  108. package/dist/cjs/twilight.cjs.js +2 -2
  109. package/dist/cjs/{vanilla-picker-ClY-7VVB.js → vanilla-picker-CU_KPkZ1.js} +1 -1
  110. package/dist/collection/collection-manifest.json +20 -0
  111. package/dist/collection/components/salla-accordion/salla-accordion.css +233 -0
  112. package/dist/collection/components/salla-add-product-button/salla-add-product-button.css +248 -1
  113. package/dist/collection/components/salla-advertisement/salla-advertisement.css +53 -2
  114. package/dist/collection/components/salla-alert/salla-alert.css +57 -2
  115. package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.css +123 -2
  116. package/dist/collection/components/salla-apps-icons/salla-apps-icons.css +15 -2
  117. package/dist/collection/components/salla-badge/salla-badge.css +72 -0
  118. package/dist/collection/components/salla-basket-gap/salla-basket-gap.css +282 -2
  119. package/dist/collection/components/salla-booking-field/salla-booking-field.css +108 -2
  120. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.css +273 -2
  121. package/dist/collection/components/salla-bought-together/salla-bought-together.css +139 -2
  122. package/dist/collection/components/salla-breadcrumb/salla-breadcrumb.css +49 -2
  123. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +1170 -5
  124. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +13 -16
  125. package/dist/collection/components/salla-button/salla-button.css +681 -2
  126. package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.css +344 -2
  127. package/dist/collection/components/salla-cart-item-offers/salla-cart-item-offers.css +108 -2
  128. package/dist/collection/components/salla-cart-summary/salla-cart-summary.css +43 -0
  129. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +308 -0
  130. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +10 -0
  131. package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +39 -0
  132. package/dist/collection/components/salla-color-picker/salla-color-picker.css +48 -0
  133. package/dist/collection/components/salla-comment-form/salla-comment-form.css +94 -2
  134. package/dist/collection/components/salla-comments/salla-comments.css +626 -2
  135. package/dist/collection/components/salla-comments/salla-comments.js +2 -2
  136. package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.css +293 -2
  137. package/dist/collection/components/salla-contacts/salla-contacts.css +105 -2
  138. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.css +91 -2
  139. package/dist/collection/components/salla-count-down/salla-count-down.css +395 -2
  140. package/dist/collection/components/salla-custom-fields/salla-custom-fields.css +86 -2
  141. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.css +88 -2
  142. package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.css +452 -0
  143. package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +10 -0
  144. package/dist/collection/components/salla-drawer/salla-drawer.css +403 -0
  145. package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +2 -2
  146. package/dist/collection/components/salla-file-upload/salla-file-upload.css +277 -2
  147. package/dist/collection/components/salla-filters/salla-filters.css +199 -2
  148. package/dist/collection/components/salla-filters-widget/salla-filters-widget.css +169 -2
  149. package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.css +140 -0
  150. package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.js +10 -0
  151. package/dist/collection/components/salla-gifting/salla-gifting.css +593 -2
  152. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.css +107 -2
  153. package/dist/collection/components/salla-installment/salla-installment.css +8 -2
  154. package/dist/collection/components/salla-list-tile/salla-list-tile.css +190 -0
  155. package/dist/collection/components/salla-loading/salla-loading.css +13 -2
  156. package/dist/collection/components/salla-localization-modal/salla-localization-modal.css +170 -0
  157. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +11 -1
  158. package/dist/collection/components/salla-login-modal/salla-login-modal.css +8 -2
  159. package/dist/collection/components/salla-loyalty/salla-loyalty.css +377 -0
  160. package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.css +36 -0
  161. package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.css +365 -0
  162. package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +11 -1
  163. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.css +1621 -2
  164. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.css +156 -2
  165. package/dist/collection/components/salla-map/salla-map.css +88 -2
  166. package/dist/collection/components/salla-menu/salla-menu.css +175 -2
  167. package/dist/collection/components/salla-metadata/salla-metadata.css +49 -0
  168. package/dist/collection/components/salla-modal/salla-modal.css +556 -2
  169. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.css +342 -2
  170. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +190 -2
  171. package/dist/collection/components/salla-notifications/salla-notifications.css +217 -0
  172. package/dist/collection/components/salla-notifications/salla-notifications.js +2 -2
  173. package/dist/collection/components/salla-offer/salla-offer.css +961 -2
  174. package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +514 -2
  175. package/dist/collection/components/salla-order-branch/salla-order-branch.css +269 -2
  176. package/dist/collection/components/salla-order-cancel/salla-order-cancel.css +283 -2
  177. package/dist/collection/components/salla-order-details/salla-order-details.css +319 -0
  178. package/dist/collection/components/salla-order-edit/salla-order-edit.css +773 -2
  179. package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.css +50 -2
  180. package/dist/collection/components/salla-order-shipments/salla-order-shipments.css +110 -2
  181. package/dist/collection/components/salla-order-summary/salla-order-summary.css +117 -2
  182. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +116 -2
  183. package/dist/collection/components/salla-orders/salla-orders.css +367 -2
  184. package/dist/collection/components/salla-orders/salla-orders.js +2 -2
  185. package/dist/collection/components/salla-payments/salla-payments.css +40 -2
  186. package/dist/collection/components/salla-placeholder/salla-placeholder.css +121 -0
  187. package/dist/collection/components/salla-price-range/salla-price-range.css +146 -2
  188. package/dist/collection/components/salla-product-availability/salla-product-availability.css +188 -2
  189. package/dist/collection/components/salla-product-card/salla-product-card.css +694 -2
  190. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +42 -2
  191. package/dist/collection/components/salla-product-options/salla-product-options.css +749 -0
  192. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.css +105 -2
  193. package/dist/collection/components/salla-products-list/salla-products-list.css +286 -2
  194. package/dist/collection/components/salla-products-list/salla-products-list.js +2 -2
  195. package/dist/collection/components/salla-products-slider/salla-products-slider.css +48 -0
  196. package/dist/collection/components/salla-progress-bar/salla-progress-bar.css +53 -0
  197. package/dist/collection/components/salla-quantity-input/salla-quantity-input.css +47 -2
  198. package/dist/collection/components/salla-quick-buy/salla-quick-buy.css +32 -2
  199. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +45 -15
  200. package/dist/collection/components/salla-quick-order/salla-quick-order.css +233 -1
  201. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +540 -2
  202. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +91 -2
  203. package/dist/collection/components/salla-review-card/salla-review-card.css +213 -1
  204. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +45 -2
  205. package/dist/collection/components/salla-reviews/salla-reviews.css +378 -0
  206. package/dist/collection/components/salla-reviews-page/salla-reviews-page.css +124 -2
  207. package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +118 -2
  208. package/dist/collection/components/salla-scopes/salla-scopes.css +299 -2
  209. package/dist/collection/components/salla-search/salla-search.css +298 -2
  210. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.css +508 -0
  211. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +14 -4
  212. package/dist/collection/components/salla-skeleton/salla-skeleton.css +31 -2
  213. package/dist/collection/components/salla-slider/salla-slider.css +749 -2
  214. package/dist/collection/components/salla-social/salla-social.css +31 -2
  215. package/dist/collection/components/salla-social-share/salla-social-share.css +56 -2
  216. package/dist/collection/components/salla-tabs/salla-tabs.css +233 -2
  217. package/dist/collection/components/salla-tel-input/salla-tel-input.css +82 -2
  218. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.css +305 -2
  219. package/dist/collection/components/salla-tooltip/salla-tooltip.css +10 -3
  220. package/dist/collection/components/salla-trust-badges/salla-trust-badges.css +36 -0
  221. package/dist/collection/components/salla-user-menu/salla-user-menu.css +395 -0
  222. package/dist/collection/components/salla-user-profile/salla-user-profile.css +79 -2
  223. package/dist/collection/components/salla-user-settings/salla-user-settings.css +299 -2
  224. package/dist/collection/components/salla-verify/salla-verify.css +226 -2
  225. package/dist/collection/components/salla-wallet/salla-wallet.css +333 -2
  226. package/dist/collection/components/salla-wallet/salla-wallet.js +2 -2
  227. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.css +88 -2
  228. package/dist/collection/global/app.js +60 -0
  229. package/dist/collection/global/app.ts +60 -0
  230. package/dist/collection/global/base-css.js +5 -0
  231. package/dist/collection/global/base-css.ts +2 -0
  232. package/dist/collection/plugins/build-base-css.js +43 -0
  233. package/dist/collection/plugins/css-coverage-check.js +363 -0
  234. package/dist/collection/plugins/tailwind-per-component.js +146 -0
  235. package/dist/collection/plugins/watch-utilities.js +22 -0
  236. package/dist/components/index.js +64 -2
  237. package/dist/components/salla-accordion2.js +1 -1
  238. package/dist/components/salla-add-product-button2.js +1 -1
  239. package/dist/components/salla-advertisement.js +1 -1
  240. package/dist/components/salla-alert.js +1 -1
  241. package/dist/components/salla-app-install-alert.js +1 -1
  242. package/dist/components/salla-apps-icons.js +1 -1
  243. package/dist/components/salla-badge2.js +1 -1
  244. package/dist/components/salla-basket-gap.js +1 -1
  245. package/dist/components/salla-booking-field2.js +1 -1
  246. package/dist/components/salla-bottom-alert.js +1 -1
  247. package/dist/components/salla-bought-together.js +1 -1
  248. package/dist/components/salla-breadcrumb.js +1 -1
  249. package/dist/components/salla-bullet-delivery.js +13 -31
  250. package/dist/components/salla-button2.js +1 -1
  251. package/dist/components/salla-cart-coupons.js +1 -1
  252. package/dist/components/salla-cart-item-offers.js +1 -1
  253. package/dist/components/salla-cart-summary-card.js +3 -0
  254. package/dist/components/salla-cart-summary.js +1 -1
  255. package/dist/components/salla-cashback-banner.js +1 -1
  256. package/dist/components/salla-color-picker2.js +1 -1
  257. package/dist/components/salla-comment-factors2.js +1 -1
  258. package/dist/components/salla-comment-form2.js +1 -1
  259. package/dist/components/salla-comment-item2.js +1 -1
  260. package/dist/components/salla-comments.js +4 -2
  261. package/dist/components/salla-conditional-offer.js +1 -1
  262. package/dist/components/salla-contacts.js +1 -1
  263. package/dist/components/salla-cookies-bar.js +1 -1
  264. package/dist/components/salla-count-down2.js +1 -1
  265. package/dist/components/salla-custom-fields.js +1 -1
  266. package/dist/components/salla-datetime-picker2.js +1 -1
  267. package/dist/components/salla-delivery-promise.js +3 -0
  268. package/dist/components/salla-drawer2.js +1 -1
  269. package/dist/components/salla-edit-order-button.js +1 -1
  270. package/dist/components/salla-file-upload2.js +1 -1
  271. package/dist/components/salla-filters-widget2.js +1 -1
  272. package/dist/components/salla-filters.js +1 -1
  273. package/dist/components/salla-fulfillment-methods.js +3 -0
  274. package/dist/components/salla-gifting.js +1 -1
  275. package/dist/components/salla-infinite-scroll.js +1 -1
  276. package/dist/components/salla-installment.js +1 -1
  277. package/dist/components/salla-list-tile2.js +1 -1
  278. package/dist/components/salla-loading2.js +1 -1
  279. package/dist/components/salla-localization-modal.js +4 -1
  280. package/dist/components/salla-login-modal2.js +1 -1
  281. package/dist/components/salla-loyalty-banner.js +1 -1
  282. package/dist/components/salla-loyalty-exchange-product-card2.js +1 -1
  283. package/dist/components/salla-loyalty-hero2.js +1 -1
  284. package/dist/components/salla-loyalty-panel.js +1 -1
  285. package/dist/components/salla-loyalty-point2.js +1 -1
  286. package/dist/components/salla-loyalty-points-banner.js +1 -1
  287. package/dist/components/salla-loyalty-points-history.js +4 -1
  288. package/dist/components/salla-loyalty-program.js +1 -1
  289. package/dist/components/salla-loyalty-reward.js +1 -1
  290. package/dist/components/salla-loyalty.js +1 -1
  291. package/dist/components/salla-maintenance-alert.js +1 -1
  292. package/dist/components/salla-map2.js +1 -1
  293. package/dist/components/salla-menu.js +1 -1
  294. package/dist/components/salla-metadata.js +1 -1
  295. package/dist/components/salla-modal2.js +1 -1
  296. package/dist/components/salla-multiple-bundle-product.js +1 -1
  297. package/dist/components/salla-next-order-coupon.js +1 -1
  298. package/dist/components/salla-notification-item2.js +1 -1
  299. package/dist/components/salla-notifications.js +4 -2
  300. package/dist/components/salla-offer-modal.js +1 -1
  301. package/dist/components/salla-offer.js +1 -1
  302. package/dist/components/salla-order-branch.js +1 -1
  303. package/dist/components/salla-order-cancel.js +1 -1
  304. package/dist/components/salla-order-details.js +1 -1
  305. package/dist/components/salla-order-edit.js +1 -1
  306. package/dist/components/salla-order-options-modal2.js +1 -1
  307. package/dist/components/salla-order-shipments.js +1 -1
  308. package/dist/components/salla-order-summary.js +1 -1
  309. package/dist/components/salla-order-totals-card.js +1 -1
  310. package/dist/components/salla-orders.js +4 -2
  311. package/dist/components/salla-payments.js +1 -1
  312. package/dist/components/salla-placeholder2.js +1 -1
  313. package/dist/components/salla-price-range2.js +1 -1
  314. package/dist/components/salla-product-availability2.js +1 -1
  315. package/dist/components/salla-product-card-embed.js +1 -1
  316. package/dist/components/salla-product-card2.js +1 -1
  317. package/dist/components/salla-product-options2.js +1 -1
  318. package/dist/components/salla-product-size-guide.js +1 -1
  319. package/dist/components/salla-products-list2.js +4 -2
  320. package/dist/components/salla-products-slider2.js +1 -1
  321. package/dist/components/salla-progress-bar2.js +1 -1
  322. package/dist/components/salla-quantity-input2.js +1 -1
  323. package/dist/components/salla-quick-buy2.js +46 -16
  324. package/dist/components/salla-quick-order.js +1 -1
  325. package/dist/components/salla-rating-modal-v22.js +1 -1
  326. package/dist/components/salla-rating-modal.js +1 -1
  327. package/dist/components/salla-rating-stars2.js +1 -1
  328. package/dist/components/salla-review-card2.js +1 -1
  329. package/dist/components/salla-review-factors-tags2.js +1 -1
  330. package/dist/components/salla-reviews-page.js +1 -1
  331. package/dist/components/salla-reviews-summary2.js +1 -1
  332. package/dist/components/salla-reviews.js +1 -1
  333. package/dist/components/salla-reward-action2.js +1 -1
  334. package/dist/components/salla-reward-card2.js +1 -1
  335. package/dist/components/salla-reward-details2.js +1 -1
  336. package/dist/components/salla-reward-exchange2.js +1 -1
  337. package/dist/components/salla-scopes.js +1 -1
  338. package/dist/components/salla-search.js +1 -1
  339. package/dist/components/salla-searchable-dropdown2.js +7 -4
  340. package/dist/components/salla-skeleton2.js +1 -1
  341. package/dist/components/salla-slider2.js +1 -1
  342. package/dist/components/salla-social-share2.js +1 -1
  343. package/dist/components/salla-social.js +1 -1
  344. package/dist/components/salla-tabs2.js +1 -1
  345. package/dist/components/salla-tel-input2.js +1 -1
  346. package/dist/components/salla-tiered-offer.js +1 -1
  347. package/dist/components/salla-tooltip2.js +1 -1
  348. package/dist/components/salla-trust-badges.js +1 -1
  349. package/dist/components/salla-user-menu.js +1 -1
  350. package/dist/components/salla-user-profile.js +1 -1
  351. package/dist/components/salla-user-settings.js +1 -1
  352. package/dist/components/salla-verify.js +1 -1
  353. package/dist/components/salla-wallet.js +4 -2
  354. package/dist/components/salla-wishlist-actions.js +1 -1
  355. package/dist/esm/{cancel-8Tsmrwno.js → cancel-BsLF_HK7.js} +2 -2
  356. package/dist/esm/{check-BZp0rKEO.js → check-BsXh13x8.js} +2 -2
  357. package/dist/esm/{filepond-CxUOUjaU.js → filepond-DPHK5C54.js} +1 -1
  358. package/dist/esm/{filepond-plugin-file-poster-DQJZWd4w.js → filepond-plugin-file-poster-d3QMLqXZ.js} +1 -1
  359. package/dist/esm/{filepond-plugin-file-validate-size-BEyl6Y5V.js → filepond-plugin-file-validate-size-ddyhZs41.js} +1 -1
  360. package/dist/esm/{filepond-plugin-file-validate-type-CgWpFqaU.js → filepond-plugin-file-validate-type-CJvnicil.js} +1 -1
  361. package/dist/esm/{filepond-plugin-image-edit-Cl6lqmHt.js → filepond-plugin-image-edit-CkhsRCAn.js} +1 -1
  362. package/dist/esm/{filepond-plugin-image-exif-orientation-DwA4Sifi.js → filepond-plugin-image-exif-orientation-DuQyWmiv.js} +1 -1
  363. package/dist/esm/{filepond-plugin-image-preview-DDIAaPPh.js → filepond-plugin-image-preview-D7QjrK0d.js} +1 -1
  364. package/dist/esm/{gift-CXRKXFgT.js → gift-BChI23pG.js} +2 -2
  365. package/dist/esm/{gift-sharing-0-eTJXSD.js → gift-sharing-DxkgAGoT.js} +2 -2
  366. package/dist/esm/{index-DchFLJee.js → index-B8_UK_fg.js} +112 -66
  367. package/dist/esm/{intlTelInput-DgjoTBXa.js → intlTelInput-B9yY2tRj.js} +1 -1
  368. package/dist/esm/{iphone-x-CciN5Q_x.js → iphone-x-Z7udRKSZ.js} +2 -2
  369. package/dist/esm/loader.js +3 -3
  370. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  371. package/dist/esm/salla-accordion_6.entry.js +10 -10
  372. package/dist/esm/salla-add-product-button_5.entry.js +53 -23
  373. package/dist/esm/salla-advertisement.entry.js +2 -2
  374. package/dist/esm/salla-alert_2.entry.js +3 -3
  375. package/dist/esm/salla-app-install-alert.entry.js +2 -2
  376. package/dist/esm/salla-apps-icons.entry.js +2 -2
  377. package/dist/esm/salla-badge.entry.js +2 -2
  378. package/dist/esm/salla-basket-gap.entry.js +2 -2
  379. package/dist/esm/salla-booking-field_7.entry.js +16 -16
  380. package/dist/esm/salla-bullet-delivery_2.entry.js +21 -36
  381. package/dist/esm/salla-cart-coupons.entry.js +2 -2
  382. package/dist/esm/salla-cart-item-offers_2.entry.js +5 -5
  383. package/dist/esm/salla-cart-summary-card.entry.js +4 -1
  384. package/dist/esm/salla-cashback-banner.entry.js +2 -2
  385. package/dist/esm/salla-comment-factors.entry.js +2 -2
  386. package/dist/esm/salla-comment-form_8.entry.js +15 -13
  387. package/dist/esm/salla-conditional-offer.entry.js +2 -2
  388. package/dist/esm/salla-contacts.entry.js +2 -2
  389. package/dist/esm/salla-cookies-bar.entry.js +2 -2
  390. package/dist/esm/{salla-count-down_2.entry.js → salla-count-down.entry.js} +3 -210
  391. package/dist/esm/salla-custom-fields.entry.js +2 -2
  392. package/dist/esm/salla-delivery-promise.entry.js +4 -1
  393. package/dist/esm/salla-edit-order-button.entry.js +2 -2
  394. package/dist/esm/salla-filters-widget.entry.js +2 -2
  395. package/dist/esm/salla-filters.entry.js +2 -2
  396. package/dist/esm/salla-fulfillment-methods.entry.js +4 -1
  397. package/dist/esm/salla-gifting.entry.js +7 -7
  398. package/dist/esm/salla-hook.entry.js +1 -1
  399. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  400. package/dist/esm/salla-installment.entry.js +2 -2
  401. package/dist/esm/salla-list-tile.entry.js +2 -2
  402. package/dist/esm/salla-localization-modal.entry.js +5 -2
  403. package/dist/esm/salla-login-modal.entry.js +2 -2
  404. package/dist/esm/salla-loyalty-banner_10.entry.js +969 -0
  405. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +25 -0
  406. package/dist/esm/salla-loyalty-points-banner.entry.js +2 -2
  407. package/dist/esm/salla-loyalty-points-history.entry.js +7 -4
  408. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  409. package/dist/esm/salla-loyalty.entry.js +4 -4
  410. package/dist/esm/salla-maintenance-alert.entry.js +4 -4
  411. package/dist/esm/salla-map_2.entry.js +3 -3
  412. package/dist/esm/salla-menu.entry.js +2 -2
  413. package/dist/esm/salla-metadata.entry.js +2 -2
  414. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  415. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  416. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  417. package/dist/esm/salla-next-order-coupon.entry.js +2 -2
  418. package/dist/esm/salla-notification-item_2.entry.js +169 -0
  419. package/dist/esm/salla-offer-modal.entry.js +6 -7
  420. package/dist/esm/salla-offer.entry.js +2 -2
  421. package/dist/esm/salla-order-branch.entry.js +2 -2
  422. package/dist/esm/salla-order-cancel.entry.js +2 -2
  423. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  424. package/dist/esm/salla-order-details-options.entry.js +1 -1
  425. package/dist/esm/salla-order-details.entry.js +2 -2
  426. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  427. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  428. package/dist/esm/salla-order-edit.entry.js +2 -2
  429. package/dist/esm/salla-order-options-modal_2.entry.js +364 -0
  430. package/dist/esm/salla-order-shipments.entry.js +2 -2
  431. package/dist/esm/salla-order-summary.entry.js +4 -4
  432. package/dist/esm/salla-order-totals-card.entry.js +2 -2
  433. package/dist/esm/salla-orders.entry.js +5 -3
  434. package/dist/esm/salla-payments.entry.js +2 -2
  435. package/dist/esm/salla-placeholder.entry.js +2 -2
  436. package/dist/esm/salla-price-range.entry.js +2 -2
  437. package/dist/esm/salla-product-card-embed.entry.js +2 -2
  438. package/dist/esm/salla-product-size-guide.entry.js +2 -2
  439. package/dist/esm/salla-products-list.entry.js +5 -3
  440. package/dist/esm/salla-products-slider.entry.js +165 -0
  441. package/dist/esm/salla-quick-order.entry.js +6 -6
  442. package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
  443. package/dist/esm/salla-rating-modal.entry.js +2 -2
  444. package/dist/esm/salla-review-factors-tags.entry.js +2 -2
  445. package/dist/esm/salla-scopes.entry.js +2 -2
  446. package/dist/esm/salla-search.entry.js +2 -2
  447. package/dist/esm/salla-skeleton.entry.js +2 -2
  448. package/dist/esm/salla-slider.entry.js +2 -2
  449. package/dist/esm/salla-social-share.entry.js +5 -5
  450. package/dist/esm/salla-social.entry.js +2 -2
  451. package/dist/esm/salla-tab-content_3.entry.js +2 -2
  452. package/dist/esm/salla-tiered-offer.entry.js +2 -2
  453. package/dist/esm/salla-tooltip.entry.js +2 -2
  454. package/dist/esm/salla-trust-badges.entry.js +2 -2
  455. package/dist/esm/salla-user-menu.entry.js +6 -6
  456. package/dist/esm/salla-user-profile.entry.js +2 -2
  457. package/dist/esm/salla-user-settings.entry.js +2 -2
  458. package/dist/esm/salla-verify.entry.js +2 -2
  459. package/dist/esm/salla-wallet.entry.js +5 -3
  460. package/dist/esm/salla-wishlist-actions.entry.js +2 -2
  461. package/dist/esm/{cart2-D1s2kXqL.js → tag-DRvZV5oe.js} +8 -2
  462. package/dist/esm/twilight.js +3 -3
  463. package/dist/esm/{vanilla-picker-DcJNiBJL.js → vanilla-picker-BSz2-wvu.js} +1 -1
  464. package/dist/twilight/global/app.ts +60 -0
  465. package/dist/twilight/global/base-css.ts +2 -0
  466. package/dist/twilight/p-00ce360c.entry.js +4 -0
  467. package/dist/twilight/p-02bbd257.entry.js +4 -0
  468. package/dist/twilight/p-05055aa6.entry.js +4 -0
  469. package/dist/twilight/{p-3b2665f8.entry.js → p-054f3d0b.entry.js} +1 -1
  470. package/dist/twilight/{p-4uFTsPuL.js → p-0_ExyxPG.js} +1 -1
  471. package/dist/twilight/p-0b2c0f48.entry.js +4 -0
  472. package/dist/twilight/p-0dca6c20.entry.js +4 -0
  473. package/dist/twilight/{p-daae6eb3.entry.js → p-0ea80795.entry.js} +1 -1
  474. package/dist/twilight/{p-8d5e4a5a.entry.js → p-0f23ae67.entry.js} +1 -1
  475. package/dist/twilight/p-15edaa75.entry.js +4 -0
  476. package/dist/twilight/p-16d9d755.entry.js +4 -0
  477. package/dist/twilight/p-1a7af76b.entry.js +4 -0
  478. package/dist/twilight/{p-d874aa1d.entry.js → p-1dfa3b27.entry.js} +1 -1
  479. package/dist/twilight/p-249fb9a3.entry.js +4 -0
  480. package/dist/twilight/p-25d06ec0.entry.js +4 -0
  481. package/dist/twilight/p-2b70199f.entry.js +4 -0
  482. package/dist/twilight/p-2f3d4e4e.entry.js +4 -0
  483. package/dist/twilight/p-306890a8.entry.js +4 -0
  484. package/dist/twilight/p-314aaef4.entry.js +4 -0
  485. package/dist/twilight/p-361ceb35.entry.js +4 -0
  486. package/dist/twilight/p-37bf885e.entry.js +4 -0
  487. package/dist/twilight/{p-3c13d28e.entry.js → p-3a1c360f.entry.js} +1 -1
  488. package/dist/twilight/p-3aaa53c0.entry.js +4 -0
  489. package/dist/twilight/p-3b5cc06e.entry.js +4 -0
  490. package/dist/twilight/p-3c98087c.entry.js +4 -0
  491. package/dist/twilight/p-3d511460.entry.js +4 -0
  492. package/dist/twilight/p-3eb3acd1.entry.js +4 -0
  493. package/dist/twilight/p-4207c1a3.entry.js +4 -0
  494. package/dist/twilight/{p-880dea5e.entry.js → p-45413551.entry.js} +1 -1
  495. package/dist/twilight/{p-08ee13bf.entry.js → p-45cae5c6.entry.js} +1 -1
  496. package/dist/twilight/p-4e76cc16.entry.js +4 -0
  497. package/dist/twilight/{p-90d89ba3.entry.js → p-50a22b2c.entry.js} +1 -1
  498. package/dist/twilight/p-526a826c.entry.js +4 -0
  499. package/dist/twilight/{p-3271c3a5.entry.js → p-563eb741.entry.js} +1 -1
  500. package/dist/twilight/p-5684d0f8.entry.js +4 -0
  501. package/dist/twilight/p-5690d7cd.entry.js +4 -0
  502. package/dist/twilight/{p-7c7a17fa.entry.js → p-56d5e4c7.entry.js} +38 -38
  503. package/dist/twilight/{p-1f5271a6.entry.js → p-5a473895.entry.js} +1 -1
  504. package/dist/twilight/p-5a893b7d.entry.js +4 -0
  505. package/dist/twilight/p-5b78ff50.entry.js +4 -0
  506. package/dist/twilight/p-5bf27714.entry.js +4 -0
  507. package/dist/twilight/p-63cae95d.entry.js +4 -0
  508. package/dist/twilight/p-68f2e246.entry.js +4 -0
  509. package/dist/twilight/p-69c3b48c.entry.js +4 -0
  510. package/dist/twilight/p-6dde9e14.entry.js +4 -0
  511. package/dist/twilight/p-73cd41fa.entry.js +4 -0
  512. package/dist/twilight/{p-a273e13c.entry.js → p-7591fcad.entry.js} +1 -1
  513. package/dist/twilight/p-78b7cb89.entry.js +4 -0
  514. package/dist/twilight/p-78c4d093.entry.js +4 -0
  515. package/dist/twilight/{p-987c08ae.entry.js → p-837ebad8.entry.js} +1 -1
  516. package/dist/twilight/p-84a2bf28.entry.js +4 -0
  517. package/dist/twilight/p-85345231.entry.js +4 -0
  518. package/dist/twilight/{p-e952c5c7.entry.js → p-86a361e4.entry.js} +1 -1
  519. package/dist/twilight/{p-c87460e7.entry.js → p-8bf0cc70.entry.js} +1 -1
  520. package/dist/twilight/p-933a4956.entry.js +4 -0
  521. package/dist/twilight/{p-00c67f1a.entry.js → p-9830acfc.entry.js} +1 -1
  522. package/dist/twilight/{p-46c51650.entry.js → p-99b70539.entry.js} +1 -1
  523. package/dist/twilight/p-9be6697f.entry.js +4 -0
  524. package/dist/twilight/p-9dfaa3ed.entry.js +4 -0
  525. package/dist/twilight/{p-DchFLJee.js → p-B8_UK_fg.js} +2 -2
  526. package/dist/twilight/{p-BXI9am6M.js → p-BCXr9HaJ.js} +2 -2
  527. package/dist/twilight/{p-CXRKXFgT.js → p-BChI23pG.js} +1 -1
  528. package/dist/twilight/{p-CDPEg0TA.js → p-BWIa_6im.js} +1 -1
  529. package/dist/twilight/{p-8Tsmrwno.js → p-BsLF_HK7.js} +1 -1
  530. package/dist/twilight/{p-BZp0rKEO.js → p-BsXh13x8.js} +1 -1
  531. package/dist/twilight/{p-CTyuP_Q6.js → p-C6ayRPtn.js} +1 -1
  532. package/dist/twilight/{p-2-ViibU5.js → p-D6fzhuhC.js} +1 -1
  533. package/dist/twilight/{p-DofPizNh.js → p-DDGtN95g.js} +1 -1
  534. package/dist/twilight/{p-BZqFMtsS.js → p-DIjxGw7w.js} +1 -1
  535. package/dist/twilight/{p-D1s2kXqL.js → p-DRvZV5oe.js} +1 -1
  536. package/dist/twilight/{p-BixVWSwx.js → p-DaamyJSZ.js} +1 -1
  537. package/dist/twilight/{p-0-eTJXSD.js → p-DxkgAGoT.js} +1 -1
  538. package/dist/twilight/{p-CciN5Q_x.js → p-Z7udRKSZ.js} +1 -1
  539. package/dist/twilight/p-a337f80b.entry.js +4 -0
  540. package/dist/twilight/p-a667842e.entry.js +4 -0
  541. package/dist/twilight/{p-29558fc9.entry.js → p-a741ac5e.entry.js} +1 -1
  542. package/dist/twilight/p-a768e51b.entry.js +4 -0
  543. package/dist/twilight/{p-0cea3226.entry.js → p-ae05ee76.entry.js} +1 -1
  544. package/dist/twilight/p-af34df62.entry.js +4 -0
  545. package/dist/twilight/p-b078ccc9.entry.js +4 -0
  546. package/dist/twilight/p-b3e8b4d9.entry.js +4 -0
  547. package/dist/twilight/p-b4418299.entry.js +4 -0
  548. package/dist/twilight/p-bf58de87.entry.js +4 -0
  549. package/dist/twilight/p-c22173bf.entry.js +4 -0
  550. package/dist/twilight/{p-86d2e018.entry.js → p-c3c48232.entry.js} +1 -1
  551. package/dist/twilight/{p-2d548919.entry.js → p-c4362957.entry.js} +1 -1
  552. package/dist/twilight/p-cd1d84e9.entry.js +4 -0
  553. package/dist/twilight/p-cde03bb7.entry.js +4 -0
  554. package/dist/twilight/{p-4bce982d.entry.js → p-d176de00.entry.js} +1 -1
  555. package/dist/twilight/p-d1e84f6b.entry.js +4 -0
  556. package/dist/twilight/p-d3eebc36.entry.js +4 -0
  557. package/dist/twilight/p-d5f63b95.entry.js +4 -0
  558. package/dist/twilight/p-d7392ff8.entry.js +4 -0
  559. package/dist/twilight/p-d9e7120d.entry.js +4 -0
  560. package/dist/twilight/{p-a4f0e32e.entry.js → p-da4b3ba6.entry.js} +1 -1
  561. package/dist/twilight/p-da7ae476.entry.js +4 -0
  562. package/dist/twilight/p-dbe69b54.entry.js +4 -0
  563. package/dist/twilight/p-dd24b858.entry.js +4 -0
  564. package/dist/twilight/p-e0e7454d.entry.js +4 -0
  565. package/dist/twilight/p-e491102e.entry.js +4 -0
  566. package/dist/twilight/p-eb6ef0b8.entry.js +4 -0
  567. package/dist/twilight/p-ed5031aa.entry.js +4 -0
  568. package/dist/twilight/{p-8f10c0a5.entry.js → p-f2bbeed7.entry.js} +1 -1
  569. package/dist/twilight/{p-ba00000f.entry.js → p-f663b4a4.entry.js} +1 -1
  570. package/dist/twilight/p-fb97a82d.entry.js +4 -0
  571. package/dist/twilight/p-fdbdc8f3.entry.js +4 -0
  572. package/dist/twilight/{p-Do92StKC.js → p-nuG4txey.js} +1 -1
  573. package/dist/twilight/twilight.esm.js +1 -1
  574. package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +1 -0
  575. package/dist/types/components/salla-loyalty-program/interfaces.d.ts +1 -1
  576. package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +1 -0
  577. package/dist/types/global/base-css.d.ts +1 -0
  578. package/package.json +8 -7
  579. package/dist/cjs/functions-C7GfEQ1h.js +0 -102
  580. package/dist/cjs/percentage-Fs83gq6Q.js +0 -21
  581. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +0 -67
  582. package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +0 -305
  583. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +0 -255
  584. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +0 -104
  585. package/dist/cjs/salla-loyalty-program.cjs.entry.js +0 -134
  586. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +0 -54
  587. package/dist/cjs/salla-notification-item.cjs.entry.js +0 -20
  588. package/dist/cjs/salla-notifications.cjs.entry.js +0 -157
  589. package/dist/cjs/salla-product-card_2.cjs.entry.js +0 -319
  590. package/dist/cjs/shipping-CPYcgyCL.js +0 -13
  591. package/dist/cjs/tag-D-PcUR33.js +0 -12
  592. package/dist/cjs/tracked-promise-d0rKqeTg.js +0 -31
  593. package/dist/cjs/user-add-BCGrddZS.js +0 -13
  594. package/dist/esm/functions-DT-Pfrtc.js +0 -95
  595. package/dist/esm/percentage-Bs6JxDkg.js +0 -18
  596. package/dist/esm/salla-loyalty-banner.entry.js +0 -65
  597. package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +0 -299
  598. package/dist/esm/salla-loyalty-hero_2.entry.js +0 -252
  599. package/dist/esm/salla-loyalty-panel.entry.js +0 -102
  600. package/dist/esm/salla-loyalty-program.entry.js +0 -132
  601. package/dist/esm/salla-loyalty-reward.entry.js +0 -52
  602. package/dist/esm/salla-notification-item.entry.js +0 -18
  603. package/dist/esm/salla-notifications.entry.js +0 -155
  604. package/dist/esm/salla-product-card_2.entry.js +0 -316
  605. package/dist/esm/shipping-CZRcMGA9.js +0 -11
  606. package/dist/esm/tag-cgSL_BIo.js +0 -10
  607. package/dist/esm/tracked-promise-CtjtFrfZ.js +0 -29
  608. package/dist/esm/user-add-QpH8MU22.js +0 -11
  609. package/dist/twilight/p-03321ca2.entry.js +0 -4
  610. package/dist/twilight/p-04966364.entry.js +0 -4
  611. package/dist/twilight/p-04c45da5.entry.js +0 -4
  612. package/dist/twilight/p-06f194ab.entry.js +0 -4
  613. package/dist/twilight/p-103745b1.entry.js +0 -4
  614. package/dist/twilight/p-112b1f6e.entry.js +0 -4
  615. package/dist/twilight/p-166c5eea.entry.js +0 -4
  616. package/dist/twilight/p-1d44f6a4.entry.js +0 -4
  617. package/dist/twilight/p-1d568357.entry.js +0 -4
  618. package/dist/twilight/p-2148f1d2.entry.js +0 -4
  619. package/dist/twilight/p-28af6887.entry.js +0 -4
  620. package/dist/twilight/p-2cce1d1a.entry.js +0 -4
  621. package/dist/twilight/p-358cd825.entry.js +0 -4
  622. package/dist/twilight/p-35c623b0.entry.js +0 -4
  623. package/dist/twilight/p-3f9a69e6.entry.js +0 -4
  624. package/dist/twilight/p-423a3dc1.entry.js +0 -4
  625. package/dist/twilight/p-46cd826d.entry.js +0 -4
  626. package/dist/twilight/p-50eb2905.entry.js +0 -4
  627. package/dist/twilight/p-51dfb4c0.entry.js +0 -4
  628. package/dist/twilight/p-5331aeed.entry.js +0 -4
  629. package/dist/twilight/p-55025dda.entry.js +0 -4
  630. package/dist/twilight/p-55837c1e.entry.js +0 -4
  631. package/dist/twilight/p-55ac7507.entry.js +0 -4
  632. package/dist/twilight/p-56c762d0.entry.js +0 -4
  633. package/dist/twilight/p-5937ff94.entry.js +0 -4
  634. package/dist/twilight/p-65049711.entry.js +0 -4
  635. package/dist/twilight/p-67621a26.entry.js +0 -4
  636. package/dist/twilight/p-6cd805a4.entry.js +0 -4
  637. package/dist/twilight/p-772a9934.entry.js +0 -4
  638. package/dist/twilight/p-81fcbc1b.entry.js +0 -4
  639. package/dist/twilight/p-873e0a2f.entry.js +0 -4
  640. package/dist/twilight/p-8cb2184b.entry.js +0 -4
  641. package/dist/twilight/p-8f5ec332.entry.js +0 -4
  642. package/dist/twilight/p-8fccba8f.entry.js +0 -4
  643. package/dist/twilight/p-9a062c32.entry.js +0 -4
  644. package/dist/twilight/p-9a1da35a.entry.js +0 -4
  645. package/dist/twilight/p-Bs6JxDkg.js +0 -4
  646. package/dist/twilight/p-CZRcMGA9.js +0 -4
  647. package/dist/twilight/p-Doz5w8Ln.js +0 -4
  648. package/dist/twilight/p-QpH8MU22.js +0 -4
  649. package/dist/twilight/p-a10cf341.entry.js +0 -4
  650. package/dist/twilight/p-a15b25ab.entry.js +0 -4
  651. package/dist/twilight/p-a263aee0.entry.js +0 -4
  652. package/dist/twilight/p-a91244eb.entry.js +0 -4
  653. package/dist/twilight/p-ab85970a.entry.js +0 -4
  654. package/dist/twilight/p-abbb173e.entry.js +0 -4
  655. package/dist/twilight/p-ac293bb8.entry.js +0 -4
  656. package/dist/twilight/p-ad86a053.entry.js +0 -4
  657. package/dist/twilight/p-b05b2d60.entry.js +0 -4
  658. package/dist/twilight/p-b6730de3.entry.js +0 -4
  659. package/dist/twilight/p-b78c5bd0.entry.js +0 -4
  660. package/dist/twilight/p-b843fd6f.entry.js +0 -4
  661. package/dist/twilight/p-bc20a2a1.entry.js +0 -4
  662. package/dist/twilight/p-be09efb0.entry.js +0 -4
  663. package/dist/twilight/p-c034d86e.entry.js +0 -4
  664. package/dist/twilight/p-c19588a6.entry.js +0 -4
  665. package/dist/twilight/p-c72575ac.entry.js +0 -4
  666. package/dist/twilight/p-c7e62be8.entry.js +0 -4
  667. package/dist/twilight/p-c83828db.entry.js +0 -4
  668. package/dist/twilight/p-c9291b74.entry.js +0 -4
  669. package/dist/twilight/p-cfa97b3a.entry.js +0 -4
  670. package/dist/twilight/p-cgSL_BIo.js +0 -4
  671. package/dist/twilight/p-d8e8df2f.entry.js +0 -4
  672. package/dist/twilight/p-e37b331e.entry.js +0 -4
  673. package/dist/twilight/p-e53ac638.entry.js +0 -4
  674. package/dist/twilight/p-ee4eec53.entry.js +0 -4
  675. package/dist/twilight/p-f06f62d5.entry.js +0 -4
  676. package/dist/twilight/p-f2011093.entry.js +0 -4
  677. package/dist/twilight/p-f2ca39e3.entry.js +0 -4
  678. package/dist/twilight/p-f7a49c68.entry.js +0 -4
  679. package/dist/twilight/p-faa00aa4.entry.js +0 -4
  680. package/dist/twilight/p-faec1968.entry.js +0 -4
  681. package/dist/twilight/p-fbc90cf1.entry.js +0 -4
  682. package/dist/twilight/p-ff50bac9.entry.js +0 -4
  683. package/dist/twilight/p-ff6b938a.entry.js +0 -4
  684. package/dist/twilight/p-oBaFuItA.js +0 -4
@@ -0,0 +1,367 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-CS4z8Mi_.js');
7
+ var star2 = require('./star2-R146a27p.js');
8
+
9
+ const sallaOrderOptionsModalCss = "/*!twlt*/.s-order-options-modal-host .s-modal-header-inner,.s-order-options-modal-host .s-modal-header-content,.s-order-options-modal-host .s-modal-title{text-align:start !important}.s-order-options-modal-apple-pay{display:block;width:100%;--apple-pay-button-width:100%;--apple-pay-button-height:44px;--apple-pay-button-border-radius:0.75rem}.s-order-options-modal-apple-pay-wrap{display:flex;flex-direction:column;gap:0.75rem;width:100%}.s-order-options-modal-apple-pay-total{display:flex;align-items:center;justify-content:space-between;gap:0.5rem}.s-order-options-modal-apple-pay-label,.s-order-options-modal-apple-pay-amount{font-size:1.125rem;line-height:1.5rem;font-weight:700;color:#111827}.static{position:static}.block{display:block}.hidden{display:none}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-order-options-modal-body{display:block}.s-order-options-modal-subtitle{margin-bottom:1rem;font-size:0.875rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-order-options-modal-fields{display:flex;flex-direction:column;gap:1rem}.s-order-options-modal-item{display:block}.s-order-options-modal-footer{display:flex;width:100%;align-items:center}.s-order-options-modal-cta-content{display:flex;align-items:center;gap:0.25rem}.s-order-options-modal-cta-text{font-weight:700}.s-order-options-modal-cta-total{font-weight:700}";
10
+
11
+ const SallaOrderOptionsModal = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.resolveFn = null;
15
+ this.rejectFn = null;
16
+ this.optionsRefs = new Map();
17
+ this.changeHandler = null;
18
+ /** Sync hook for callers that need to act under the submit user gesture (Apple Pay). */
19
+ this.submitCallback = null;
20
+ this.orderOptions = [];
21
+ this.basePrice = 0;
22
+ this.liveTotal = 0;
23
+ this.isSubmitting = false;
24
+ /** Bumped each open() so the inner <salla-product-options> remounts. */
25
+ this.sessionId = 0;
26
+ this.paymentMode = 'default';
27
+ this.title = '';
28
+ this.subtitle = '';
29
+ this.submitLabel = '';
30
+ this.totalLabel = '';
31
+ this.requiredMessage = '';
32
+ this.handleClose = () => {
33
+ if (this.isSubmitting)
34
+ return;
35
+ this.rejectFn?.({ reason: 'dismissed' });
36
+ this.resolveFn = null;
37
+ this.rejectFn = null;
38
+ this.detachChangeListener();
39
+ this.reset();
40
+ };
41
+ salla.lang.onLoaded(() => this.loadTranslations());
42
+ }
43
+ componentWillLoad() {
44
+ this.loadTranslations();
45
+ }
46
+ loadTranslations() {
47
+ this.title = salla.lang.get('blocks.order_options.title');
48
+ this.subtitle = salla.lang.get('blocks.order_options.subtitle');
49
+ this.submitLabel = salla.lang.get('blocks.order_options.continue');
50
+ this.totalLabel = salla.lang.get('blocks.order_options.total');
51
+ this.requiredMessage = salla.lang.get('blocks.order_options.required_message');
52
+ }
53
+ /**
54
+ * Open the modal. Resolves with selections on submit; rejects on dismiss.
55
+ * `onSubmit` fires sync in the submit click (for Apple Pay user-gesture).
56
+ * `paymentMode: 'apple-pay'` swaps the footer button for <apple-pay-button>.
57
+ */
58
+ async open(payload) {
59
+ // Normalize here, not in the shared salla-product-options: text/number order options ship no
60
+ // `details`, which product-options dereferences unguarded.
61
+ this.orderOptions = (Array.isArray(payload.orderOptions) ? payload.orderOptions : [])
62
+ .map((o) => ({ ...o, details: o.details ?? [] }));
63
+ this.basePrice = Number(payload.basePrice) || 0;
64
+ this.liveTotal = this.basePrice + this.seedOptionsPrice(this.orderOptions);
65
+ this.isSubmitting = false;
66
+ this.sessionId++;
67
+ this.optionsRefs.clear();
68
+ this.submitCallback = payload.onSubmit ?? null;
69
+ this.paymentMode = payload.paymentMode ?? 'default';
70
+ await this.modal?.open();
71
+ this.attachChangeListener();
72
+ return new Promise((resolve, reject) => {
73
+ this.resolveFn = resolve;
74
+ this.rejectFn = reject;
75
+ });
76
+ }
77
+ async close() {
78
+ await this.modal?.close();
79
+ }
80
+ /** Sync walk of inputs — avoids `await` through the @Method that would consume the AP user gesture. */
81
+ collectOrderOptionsSync() {
82
+ const result = [];
83
+ for (const [, el] of this.optionsRefs) {
84
+ if (!el)
85
+ continue;
86
+ const inputs = el.querySelectorAll('[name^="options["],[name*="[options]["]');
87
+ inputs.forEach((input) => {
88
+ if (input instanceof HTMLInputElement && (input.type === 'radio' || input.type === 'checkbox') && !input.checked) {
89
+ return;
90
+ }
91
+ const match = input.name.match(/(?:^|\[)options\]?\[(\d+)\]/);
92
+ if (!match)
93
+ return;
94
+ const raw = input.value;
95
+ if (raw === '' || raw === null || raw === undefined)
96
+ return;
97
+ const numeric = Number(raw);
98
+ result.push({
99
+ id: Number(match[1]),
100
+ value: Number.isFinite(numeric) && raw === String(numeric) ? numeric : raw,
101
+ });
102
+ });
103
+ }
104
+ return result;
105
+ }
106
+ /** Sync native validity — keeps the AP user gesture intact. */
107
+ validateSync() {
108
+ let pass = true;
109
+ for (const [, el] of this.optionsRefs) {
110
+ if (!el)
111
+ continue;
112
+ const requiredInputs = el.querySelectorAll('[required]');
113
+ requiredInputs.forEach((input) => {
114
+ // Mirror salla-product-options.reportValidity(): skip hidden/disabled inputs so a
115
+ // required field in a `.hidden` conditional container can't silently block submit.
116
+ if (input.disabled || input.closest('.hidden'))
117
+ return;
118
+ if ('reportValidity' in input && !input.reportValidity())
119
+ pass = false;
120
+ });
121
+ }
122
+ return pass;
123
+ }
124
+ /**
125
+ * Sum the per-quantity fee (total_price = additional_price × qty) of any pre-selected details.
126
+ * Uses total_price so the total scales with product quantity; falls back to the per-unit
127
+ * additional_price only when total_price is absent. (CHOD-13172)
128
+ */
129
+ seedOptionsPrice(orderOptions) {
130
+ let sum = 0;
131
+ orderOptions.forEach((opt) => {
132
+ (opt.details || []).forEach((d) => {
133
+ if (d.is_selected)
134
+ sum += Number(d.total_price ?? d.additional_price) || 0;
135
+ });
136
+ });
137
+ return sum;
138
+ }
139
+ /** salla.event.on is global — attach per open, detach on close to avoid stacking. */
140
+ attachChangeListener() {
141
+ this.detachChangeListener();
142
+ this.changeHandler = () => this.recomputeTotal();
143
+ salla.event.on('product-options::change', this.changeHandler);
144
+ }
145
+ detachChangeListener() {
146
+ if (!this.changeHandler)
147
+ return;
148
+ salla.event.off('product-options::change', this.changeHandler);
149
+ this.changeHandler = null;
150
+ }
151
+ async recomputeTotal() {
152
+ let selectedPrice = 0;
153
+ for (const [, el] of this.optionsRefs) {
154
+ if (!el)
155
+ continue;
156
+ const selected = typeof el.getSelectedOptions === 'function'
157
+ ? await el.getSelectedOptions()
158
+ : [];
159
+ (selected || []).forEach((s) => {
160
+ // total_price already includes the product-quantity multiplier (CHOD-13172).
161
+ selectedPrice += Number(s.total_price ?? s.additional_price) || 0;
162
+ });
163
+ }
164
+ this.liveTotal = this.basePrice + selectedPrice;
165
+ }
166
+ handleSubmit() {
167
+ if (this.isSubmitting)
168
+ return;
169
+ if (!this.validateSync()) {
170
+ salla.notify?.error?.(this.requiredMessage);
171
+ return;
172
+ }
173
+ this.isSubmitting = true;
174
+ const orderOptions = this.collectOrderOptionsSync();
175
+ const total = Math.round(this.liveTotal * 100) / 100;
176
+ // Fire onSubmit BEFORE any await — Apple Pay needs the user gesture.
177
+ try {
178
+ this.submitCallback?.(orderOptions, total);
179
+ }
180
+ catch (err) {
181
+ salla?.logger?.warn?.('order-options modal onSubmit threw', err);
182
+ }
183
+ this.resolveFn?.({ orderOptions });
184
+ this.resolveFn = null;
185
+ this.rejectFn = null;
186
+ this.submitCallback = null;
187
+ this.detachChangeListener();
188
+ this.modal?.close().then(() => this.reset());
189
+ this.isSubmitting = false;
190
+ }
191
+ /** Clear options on close so the inner <salla-product-options> unmounts. */
192
+ reset() {
193
+ this.orderOptions = [];
194
+ this.optionsRefs.clear();
195
+ this.liveTotal = 0;
196
+ }
197
+ render() {
198
+ // salla.money returns HTML (sicon-sar icon) → render via innerHTML. Round
199
+ // first so floating-point sum doesn't show as 1174.3799999999999.
200
+ const totalHtml = salla.money(Math.round(this.liveTotal * 100) / 100);
201
+ return (index.h("salla-modal", { key: 'e84a40e1a27447d58ca5651a7ed76cbcf886495c', ref: el => (this.modal = el), class: "s-order-options-modal-host", width: "md", "modal-title": this.title, onModalVisibilityChanged: (e) => {
202
+ if (!e.detail)
203
+ this.handleClose();
204
+ } }, index.h("div", { key: 'fafa3cdeb22787d4a02f3fc8afb70770e1c3b4b5', class: "s-order-options-modal-body" }, index.h("p", { key: 'c563c24e1b8744f3248328ec16a18c5a668e7949', class: "s-order-options-modal-subtitle" }, this.subtitle), index.h("div", { key: '475599cc47435b077d2321573328321888e60aa6', class: "s-order-options-modal-fields" }, this.orderOptions.length > 0 && (index.h("salla-product-options", { key: this.sessionId, ref: el => {
205
+ if (!el)
206
+ return;
207
+ this.optionsRefs.set('order-options', el);
208
+ // Without seeding, first multi-select toggle wipes pre-selected defaults.
209
+ el.seedSelectedOptions?.();
210
+ }, "product-id": `order-options-${this.orderOptions[0]?.id}`, "unique-key": "order-options", options: JSON.stringify(this.orderOptions), "hide-out-label": "1", "no-padding": true })))), index.h("div", { key: 'e00641853937f745c8cc798c7f9e15b389faf540', slot: "footer", class: "s-order-options-modal-footer" }, this.paymentMode === 'apple-pay' ? (index.h("div", { class: "s-order-options-modal-apple-pay-wrap" }, index.h("div", { class: "s-order-options-modal-apple-pay-total" }, index.h("span", { class: "s-order-options-modal-apple-pay-label" }, this.totalLabel), index.h("span", { class: "s-order-options-modal-apple-pay-amount", innerHTML: totalHtml })), index.h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', buttonstyle: "black", type: "buy", class: "s-order-options-modal-apple-pay", onClick: () => this.handleSubmit() }))) : (index.h("salla-button", { type: "button", color: "primary", fill: "solid", width: "wide", loading: this.isSubmitting, onClick: () => this.handleSubmit() }, index.h("span", { class: "s-order-options-modal-cta-content" }, index.h("span", { class: "s-order-options-modal-cta-text" }, this.submitLabel), index.h("span", { class: "s-order-options-modal-cta-total", innerHTML: totalHtml })))))));
211
+ }
212
+ get host() { return index.getElement(this); }
213
+ };
214
+ SallaOrderOptionsModal.style = sallaOrderOptionsModalCss;
215
+
216
+ var Heart = `<!-- Generated by IcoMoon.io -->
217
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
218
+ <title>heart</title>
219
+ <path d="M23.333 2.267c-3.547 0-5.779 1.605-7.333 3.061-1.555-1.456-3.787-3.061-7.333-3.061-5.955 0-8.667 5.045-8.667 9.733 0 8.503 10.147 14.735 15.513 16.841 0.156 0.061 0.321 0.092 0.487 0.092s0.331-0.031 0.487-0.092c5.367-2.107 15.513-8.339 15.513-16.841 0-4.688-2.712-9.733-8.667-9.733zM16 26.161c-5.537-2.309-13.333-7.799-13.333-14.161 0-3.517 1.856-7.067 6-7.067 2.983 0 4.656 1.451 6.384 3.203 0.5 0.508 1.399 0.508 1.899 0 1.728-1.752 3.401-3.203 6.384-3.203 4.144 0 6 3.549 6 7.067 0 6.363-7.796 11.852-13.333 14.161z"></path>
220
+ </svg>
221
+ `;
222
+
223
+ const sallaProductCardCss = "/*!twlt*/.s-product-card-image::before{font-family:\"sallaicons\";content:\"\\ec1f\" !important}.s-product-card-content-pie-svg circle{transition:stroke-dashoffset 1s linear;-webkit-transition:stroke-dashoffset 1s linear;-moz-transition:stroke-dashoffset 1s linear;-ms-transition:stroke-dashoffset 1s linear;-o-transition:stroke-dashoffset 1s linear;stroke:#E8EDF2;stroke-width:2px;stroke-linecap:round;fill:none}.s-product-card-content-pie-svg-bar{stroke:var(--color-primary) !important;stroke-dasharray:100 100;stroke-dashoffset:100}.text-xl{font-size:1.25rem;line-height:1.75rem}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}.has-error .s-form-control,.has-error .s-tel-input-control,.has-error .s-datetime-picker-input{border-color:#ff443a;color:#ff443a}.s-form-control{display:block;width:100%;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-form-control:focus{border-color:var(--color-primary);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.s-product-card-entry{position:relative;display:flex;height:100%;justify-content:space-between;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-product-card-shadow:hover{box-shadow:5px 10px 30px #2b2d340d}.s-product-card-out-of-stock img.loaded{--tw-grayscale:grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-product-card-overlay{position:absolute;top:0px;bottom:0px;left:0px;right:0px;--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));opacity:0.5;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:700ms}.s-product-card-overlay:hover{opacity:0.4}.s-product-card-vertical{flex-direction:column}.s-product-card-vertical .s-product-card-image{flex:1 1 0%;border-top-left-radius:var(--s-radius, 0.25rem);border-top-right-radius:var(--s-radius, 0.25rem)}.s-product-card-vertical .s-product-card-wishlist-btn{position:absolute;top:0.5rem;right:0.5rem;opacity:0.75}.s-product-card-vertical .s-product-card-wishlist-btn:hover{opacity:1}@media (min-width: 768px){.s-product-card-vertical .s-product-card-wishlist-btn{right:0.5rem}}.s-product-card-vertical .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.5rem;right:unset}@media (min-width: 768px){.s-product-card-vertical .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.5rem;right:unset}}.s-product-card-minimal .s-product-card-wishlist-btn{position:absolute;top:0px;right:0px;opacity:0.75}.s-product-card-minimal .s-product-card-wishlist-btn:hover{opacity:1}@media (min-width: 768px){.s-product-card-minimal .s-product-card-wishlist-btn{right:0px}}.s-product-card-minimal .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;right:unset}@media (min-width: 768px){.s-product-card-minimal .s-product-card-wishlist-btn:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;right:unset}}.s-product-card-minimal .s-product-card-image{width:8rem}@media (min-width: 640px){.s-product-card-minimal .s-product-card-image{width:14rem}}@media (min-width: 1024px){.s-product-card-minimal .s-product-card-image{width:7rem}}.s-product-card-minimal .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.s-product-card-minimal .s-product-card-content{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden;padding:1.25rem}.s-product-card-minimal .s-product-card-wishlist-btn button{margin:0px;background-color:transparent}.s-product-card-minimal .s-product-card-wishlist-btn button svg,.s-product-card-full-image .s-product-card-wishlist-btn button svg{height:1rem;width:1rem;fill:#fff}.s-product-card-vertical .s-product-card-wishlist-btn button{margin:0px;--tw-bg-opacity:1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1)) !important}.s-product-card-wishlist-btn button:hover svg{fill:#4b5563}.s-product-card-fit-height .s-product-card-image{height:11rem;max-height:15rem}.s-product-card-quantity{position:absolute;bottom:0.25rem;left:50%;z-index:1;max-width:calc(100% - 60px);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-quantity{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-promotion-title{position:absolute;top:1rem;left:0px;z-index:1;max-width:calc(100% - 60px);border-top-right-radius:var(--s-radius, 0.25rem);border-bottom-right-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-promotion-title{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-promotion-title:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px;left:unset;border-top-left-radius:var(--s-radius, 0.25rem);border-bottom-left-radius:var(--s-radius, 0.25rem);border-top-right-radius:0px;border-bottom-right-radius:0px}.s-product-card-out-badge{position:absolute;bottom:0.5rem;left:50%;z-index:1;max-width:calc(100% - 60px);--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.75rem;line-height:1rem;font-weight:700;--tw-text-opacity:1;color:rgb(153 153 153 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-product-card-out-badge{padding-top:0.5rem;padding-bottom:0.5rem}}.s-product-card-image{position:relative;height:100%;width:100%;flex-shrink:0;overflow:hidden;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-product-card-image::before{position:absolute;top:50%;left:50%;display:inline-block;--tw-translate-x:-50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));font-size:1.875rem;line-height:2.25rem;content:var(--tw-content);--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-product-card-image:hover{opacity:0.9}.s-product-card-image img{height:100%;width:100%;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}.s-product-card-image img.lazy{opacity:0}.s-product-card-image img.loaded{position:relative;opacity:1}.s-product-card-content{position:relative;display:flex;flex-direction:column;padding:0.75rem}@media (min-width: 640px){.s-product-card-content{padding:1.25rem}}.s-product-card-content-title{margin-bottom:0.625rem;max-width:100%;line-height:1.5rem}.s-product-card-content-subtitle{margin-bottom:0.625rem;font-size:0.875rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-product-card-special .s-product-card-content-main,special .s-product-card-content-sub{padding-right:6rem}.s-product-card-special .s-product-card-content-main:where([dir=\"rtl\"],[dir=\"rtl\"] *),special .s-product-card-content-sub:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:6rem;padding-right:0px}.s-product-card-donation-input{flex:1 1 0%}.s-product-card-donation-input label{margin-bottom:0.625rem;display:block;font-size:0.875rem;line-height:1.25rem}.s-product-card-donation-input label span{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-product-card-content-title a{display:block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-product-card-content-title a:hover{color:var(--color-primary)}.s-product-card-content-sub{margin-bottom:1.25rem;display:flex;width:100%;align-items:center;justify-content:space-between}.s-product-card-rating{display:flex;align-items:center}.s-product-card-rating>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem * var(--tw-space-x-reverse));margin-left:calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-product-card-rating{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-product-card-rating:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-product-card-rating span svg{margin-bottom:3px;height:1rem;width:1rem;fill:#fbbf24}.s-product-card-content-footer{margin-top:auto;display:flex;align-items:center}.s-product-card-sale-price>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem * var(--tw-space-x-reverse));margin-left:calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-product-card-sale-price:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-product-card-sale-price h4{display:inline-block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-product-card-sale-price span{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-product-card-starting-price{display:flex;width:100%;align-items:center;justify-content:space-between}.s-product-card-starting-price h4{display:inline-block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-product-card-price{font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-product-card-image-cover{object-fit:cover}.s-product-card-image-contain{object-fit:contain}.s-product-card-content-pie{position:absolute;top:0.625rem;right:1.25rem;display:flex;height:72px;width:72px;align-items:center;justify-content:center;color:var(--color-primary)}.s-product-card-content-pie:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:1.25rem;right:unset}.s-product-card-content-pie span{position:absolute;top:43%;left:50%;display:flex;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:0.75rem;line-height:1rem;line-height:1;--tw-text-opacity:1;color:rgb(124 128 130 / var(--tw-text-opacity, 1))}.s-product-card-content-pie span b{font-size:1.25rem;line-height:1.75rem;font-weight:700;color:var(--color-primary)}.s-product-card-content-extra-padding{padding-right:6rem}.s-product-card-content-extra-padding:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:6rem;padding-right:0px}.s-product-card-wishlist-added svg{fill:#ef4444}.s-product-card-horizontal .s-product-card-image{height:auto;width:8rem}@media (min-width: 640px){.s-product-card-horizontal .s-product-card-image{width:14rem}}.s-product-card-horizontal .s-product-card-image:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:var(--s-radius, 0.25rem);border-bottom-left-radius:var(--s-radius, 0.25rem)}.s-product-card-horizontal .s-product-card-image:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:var(--s-radius, 0.25rem);border-bottom-right-radius:var(--s-radius, 0.25rem)}.s-product-card-horizontal .s-product-card-quantity{max-width:unset}.s-product-card-horizontal .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.s-product-card-horizontal .s-product-card-promotion-title{max-width:unset}.s-product-card-horizontal .s-product-card-out-badge{max-width:unset}.s-product-card-horizontal .s-product-card-content{margin-bottom:0.625rem;width:100%}.s-product-card-full-image{height:20rem;overflow:hidden}@media (min-width: 768px){.s-product-card-full-image{height:auto}}.s-product-card-full-image .s-product-card-content{position:absolute;bottom:0px;z-index:10;width:100%;padding-left:2.5rem;padding-right:2.5rem;padding-top:1.25rem;padding-bottom:1.75rem}.s-product-card-full-image img{position:relative;height:100%;width:100%;overflow:hidden;border-radius:var(--s-radius, 0.25rem)}.s-product-card-full-image img:hover{opacity:0.9}.s-product-card-full-image .s-product-card-image a{height:100%;width:100%}.s-product-card-full-image .s-product-card-content-title a{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-content-title a:hover{color:var(--color-primary)}.s-product-card-full-image .s-product-card-content-subtitle{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-price{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-sale-price{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-full-image .s-product-card-sale-price span{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-image-full{width:100%}.s-product-card-compact{display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:0.75rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0px;padding-right:0px;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-product-card-compact .s-product-card-content-footer{margin-top:0px;flex-shrink:0}.s-product-card-compact .s-add-product-button-compact salla-button .s-button-btn{height:2rem;border-radius:0.375rem;border-width:1px;border-color:var(--color-primary);background-color:transparent;padding-left:0.75rem;padding-right:0.75rem;font-size:0.75rem;line-height:1rem;font-weight:500;color:var(--color-primary);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-product-card-compact .s-add-product-button-compact salla-button .s-button-btn:hover{border-color:var(--color-primary);background-color:var(--color-primary);--tw-bg-opacity:0.1;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content{min-width:0px;flex:1 1 0%;padding:0px;text-align:right}.s-product-card-compact .s-product-card-content-main{margin-bottom:0.25rem}.s-product-card-compact .s-product-card-content-title{font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.25;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-title a{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;display:block}.s-product-card-compact .s-product-card-content-subtitle{margin-top:0.25rem;display:none;font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-sub{display:flex;align-items:center;justify-content:flex-start;gap:0.5rem;font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-product-card-compact .s-product-card-content-sub h4{margin:0px;font-weight:400}.s-product-card-compact .s-product-card-content-sub .s-product-card-price{font-weight:400}.s-product-card-compact .s-product-card-image{height:5rem;width:5rem;flex-shrink:0;border-radius:0.375rem}.s-product-card-compact .s-product-card-image img{height:100%;width:100%;border-radius:0.375rem;object-fit:cover}.s-product-card-compact .s-product-card-promotion-title{display:none}";
224
+
225
+ const SallaProductCard = class {
226
+ constructor(hostRef) {
227
+ index.registerInstance(this, hostRef);
228
+ // Store configs
229
+ salla.onReady(() => {
230
+ this.fitImageHeight = salla.config.get('store.settings.product.fit_type');
231
+ salla.wishlist.event.onAdded((_res, id) => this.toggleFavoriteIcon(true, id));
232
+ salla.wishlist.event.onRemoved((_res, id) => this.toggleFavoriteIcon(false, id));
233
+ this.placeholder = salla.url.asset(salla.config.get('theme.settings.placeholder'));
234
+ });
235
+ // Language
236
+ salla.lang.onLoaded(() => {
237
+ this.remained = salla.lang.get('pages.products.remained');
238
+ this.donationAmount = salla.lang.get('pages.products.donation_amount');
239
+ this.startingPrice = salla.lang.get('pages.products.starting_price');
240
+ this.addToCart = salla.lang.get('pages.cart.add_to_cart');
241
+ this.outOfStock = salla.lang.get('pages.products.out_of_stock');
242
+ });
243
+ // Parse product data
244
+ if (!this.product) {
245
+ return;
246
+ }
247
+ try {
248
+ this.productData = typeof this.product == 'object' ? this.product : JSON.parse(this.product);
249
+ }
250
+ catch (e) {
251
+ salla.log('Bad json passed via product prop');
252
+ }
253
+ }
254
+ // Private Methods
255
+ initCircleBar() {
256
+ let qty = this.productData.quantity, total = this.productData.quantity > 100 ? this.productData.quantity * 2 : 100, roundPercent = (qty / total) * 100, bar = this.pie.querySelector('.s-product-card-content-pie-svg-bar'), strokeDashOffsetValue = 100 - roundPercent;
257
+ bar.style.strokeDashoffset = strokeDashOffsetValue;
258
+ }
259
+ toggleFavoriteIcon(isAdded = true, id = null) {
260
+ if (id && id !== this.productData.id) {
261
+ return;
262
+ }
263
+ this.wishlistBtn?.classList.toggle('s-product-card-wishlist-added', isAdded);
264
+ }
265
+ isInWishlist() {
266
+ return salla.storage.get('salla::wishlist', []).includes(this.productData?.id);
267
+ }
268
+ async handleWishlistClick() {
269
+ const wasInWishlist = this.isInWishlist();
270
+ this.toggleFavoriteIcon(!wasInWishlist);
271
+ try {
272
+ await salla.wishlist.toggle(this.productData.id);
273
+ }
274
+ catch {
275
+ this.toggleFavoriteIcon(wasInWishlist);
276
+ }
277
+ }
278
+ formatDate(date) {
279
+ let d = new Date(date);
280
+ return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
281
+ }
282
+ getProductBadge() {
283
+ if (this.productData.promotion_title) {
284
+ return index.h("div", { class: "s-product-card-promotion-title" }, this.productData.promotion_title);
285
+ }
286
+ if (this.showQuantity && this.productData?.quantity) {
287
+ return index.h("div", { class: "s-product-card-quantity" }, this.remained, " ", salla.helpers.number(this.productData?.quantity));
288
+ }
289
+ if (this.showQuantity && this.productData?.is_out_of_stock) {
290
+ return index.h("div", { class: "s-product-card-out-badge" }, this.outOfStock);
291
+ }
292
+ return '';
293
+ }
294
+ getPriceFormat(price) {
295
+ if (!price || price == 0) {
296
+ return salla.config.get('store.settings.product.show_price_as_dash') ? '-' : '';
297
+ }
298
+ return salla.money(price);
299
+ }
300
+ getProductPrice() {
301
+ if (this.productData.is_on_sale) {
302
+ return index.h("div", { class: "s-product-card-sale-price" }, index.h("h4", { innerHTML: this.getPriceFormat(this.productData.sale_price) }), index.h("span", { innerHTML: this.getPriceFormat(this.productData?.regular_price) }));
303
+ }
304
+ if (this.productData.starting_price) {
305
+ return index.h("div", { class: "s-product-card-starting-price" }, index.h("p", null, this.startingPrice), index.h("h4", { innerHTML: this.getPriceFormat(this.productData?.starting_price) }));
306
+ }
307
+ return index.h("h4", { class: "s-product-card-price", innerHTML: this.getPriceFormat(this.productData?.price) });
308
+ }
309
+ render() {
310
+ const classes = {
311
+ 's-product-card-entry': true,
312
+ 's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
313
+ 's-product-card-horizontal': this.horizontal && !this.fullImage && !this.minimal,
314
+ 's-product-card-fit-height': this.fitImageHeight && !this.isSpecial && !this.fullImage && !this.minimal,
315
+ 's-product-card-special': this.isSpecial,
316
+ 's-product-card-full-image': this.fullImage,
317
+ 's-product-card-minimal': this.minimal,
318
+ 's-product-card-compact': this.compact,
319
+ 's-product-card-donation': this.productData?.donation,
320
+ 's-product-card-shadow': this.shadowOnHover,
321
+ 's-product-card-out-of-stock': this.productData?.is_out_of_stock,
322
+ };
323
+ const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
324
+ return (index.h(index.Host, { key: 'c5a6d2bc2fcf23da1a41ab8b19b2e981fb111e30', id: `product-${this.productData?.id}`, class: classes }, index.h("div", { key: 'e8d5105e4dbe367c612d62ef1dd6c95d04f440b0', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, index.h("a", { key: '8714997fcb48ef0eaabdf0a52cb775514e53db56', ...hrefProp }, index.h("img", { key: 'eebd3c1dde0894037a7723c46e2f07f6a5aef939', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
325
+ ? 'contain'
326
+ : this.fitImageHeight
327
+ ? this.fitImageHeight
328
+ : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && index.h("a", { key: '72e240315320e976dcad8d3f027711b9c1d7bcf1', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
329
+ index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, index.h("span", { innerHTML: Heart })) : ''), index.h("div", { key: '2f0186ffc102488824cd7c346f4e07439474fc26', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
330
+ index.h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, index.h("span", null, index.h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), index.h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
331
+ : '', index.h("div", { key: 'd50ea0726d25bf3b551050e906fc615bc682e694', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, index.h("h3", { key: 'e4f39676d661a01d1aa6352cac7be6e764fa8687', class: "s-product-card-content-title" }, index.h("a", { key: '0aacc2e00a0db730d1e803da34336085082df75d', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
332
+ index.h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
333
+ : ''), this.productData?.donation && !this.minimal && !this.fullImage ?
334
+ [index.h("salla-progress-bar", { donation: this.productData?.donation }), index.h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
335
+ [index.h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", index.h("span", null, "*")), index.h("input", { type: "text", onInput: e => {
336
+ salla.helpers.inputDigitsOnly(e.target);
337
+ this.addBtn.donatingAmount = e.target.value;
338
+ }, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
339
+ : '')]
340
+ : '', index.h("div", { key: '445a1e16fee6ebb6ab5012aca324d3845991d13e', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
341
+ index.h("div", { class: "s-product-card-rating" }, index.h("span", { innerHTML: star2.Star }), index.h("span", null, this.productData.rating.stars))
342
+ : ''), this.isSpecial && this.productData.discount_ends
343
+ ? index.h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
344
+ : '', !this.hideAddBtn && !this.compact ?
345
+ index.h("div", { class: "s-product-card-content-footer" }, index.h("salla-add-product-button", { fill: "outline", width: "wide", ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type }, index.h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
346
+ index.h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, ref: el => this.wishlistBtn = el, "aria-label": "Add or remove to wishlist", class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick(), "data-id": "{{ product.id }}" }, index.h("span", { class: "text-xl", innerHTML: Heart }))
347
+ : '')
348
+ : ''), !this.hideAddBtn && this.compact ?
349
+ index.h("div", { class: "s-product-card-content-footer" }, index.h("salla-add-product-button", { ref: el => this.addBtn = el, "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, index.h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)))
350
+ : ''));
351
+ }
352
+ componentDidLoad() {
353
+ document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
354
+ if (this.productData?.quantity && this.isSpecial) {
355
+ this.initCircleBar();
356
+ }
357
+ if (!salla.config.isGuest() && salla.storage.get('salla::wishlist', []).includes(this.productData?.id)) {
358
+ this.toggleFavoriteIcon();
359
+ }
360
+ }
361
+ static get assetsDirs() { return ["assets"]; }
362
+ get host() { return index.getElement(this); }
363
+ };
364
+ SallaProductCard.style = sallaProductCardCss;
365
+
366
+ exports.salla_order_options_modal = SallaOrderOptionsModal;
367
+ exports.salla_product_card = SallaProductCard;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
  var swapStroke = require('./swap-stroke-CYGxjKIS.js');
8
8
 
9
9
  /**
@@ -35,7 +35,7 @@ class LatestRequest {
35
35
  }
36
36
  }
37
37
 
38
- const sallaOrderShipmentsCss = ":host{display:block}";
38
+ const sallaOrderShipmentsCss = "/*!twlt*/:host{display:block}.s-order-shipments-wrapper{display:block}.s-order-shipments-empty{display:none}.s-order-shipments-list{display:flex;flex-wrap:wrap;gap:1rem}.s-order-shipments-card{display:flex;min-width:16rem;flex:1 1 0%;flex-basis:25%;flex-direction:column;gap:0.75rem;border-radius:1rem;background-color:var(--color-surface);padding:1rem;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-order-shipments-header{display:flex;gap:0.5rem}.s-order-shipments-title{font-size:15px;font-weight:700;color:var(--color-text-primary)}.s-order-shipments-logo{height:3rem;width:3rem;flex-shrink:0;border-radius:9999px;object-fit:cover}.s-order-shipments-info{display:flex;flex-wrap:wrap;align-items:center;column-gap:0.75rem;row-gap:0.5rem;font-size:13px;color:var(--color-text-secondary)}.s-order-shipments-tracking{display:inline-flex;align-items:center;gap:0.25rem}.s-order-shipments-placeholder{color:var(--color-text-secondary)}.s-order-shipments-copy{display:inline-flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;padding:0px;color:currentColor}.s-order-shipments-copy svg{height:0.875rem;width:0.875rem;fill:currentColor}.s-order-shipments-items{display:flex;gap:0.5rem;overflow-x:auto}.s-order-shipments-item{display:inline-flex;height:4.5rem;width:4.5rem;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:0.75rem;border-width:1px;border-color:var(--color-border);padding:0.375rem}.s-order-shipments-item img{display:block;height:100%;width:100%;object-fit:contain}.s-order-shipments-item-name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;padding-left:0.25rem;padding-right:0.25rem;text-align:center;font-size:10px;line-height:1.25;color:var(--color-text-secondary)}";
39
39
 
40
40
  const SallaOrderShipments = class {
41
41
  constructor(hostRef) {
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
  var swapStroke = require('./swap-stroke-CYGxjKIS.js');
8
- var check = require('./check-BnVBPQNp.js');
8
+ var check = require('./check-x3w3-gpj.js');
9
9
 
10
10
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
11
11
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -28,7 +28,7 @@ var iconCreditCard = `<!-- Generated by IcoMoon.io -->
28
28
  </svg>
29
29
  `;
30
30
 
31
- const sallaOrderSummaryCss = ":host{display:block}";
31
+ const sallaOrderSummaryCss = "/*!twlt*/:host{display:block}.s-order-summary-wrapper{display:grid;gap:0.625rem}.s-order-summary-item{border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));padding:1.25rem;text-align:start}.s-order-summary-item-title{font-weight:bold;margin-bottom:1.25rem;unicode-bidi:plaintext}.s-order-summary-item-download{font-size:0.875rem;line-height:1.25rem;font-weight:700;color:var(--color-primary)}.s-order-summary-code-item-wrapper{margin-bottom:0.5rem;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-border-opacity:1;border-bottom-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-bottom:0.5rem}.s-order-summary-code-item-wrapper:last-child{margin-bottom:0px;border-width:0px;padding-bottom:0px}@media (min-width: 768px){.s-order-summary-code-item-wrapper{display:flex}}.s-order-summary-code-item-wrapper p{display:flex;align-items:center;font-size:1rem;line-height:1.5rem;line-height:1}.s-order-summary-digital-item-wrapper{display:flex;justify-content:space-between;padding-top:1rem;padding-bottom:1rem}.s-order-summary-digital-item-wrapper:last-child{padding-bottom:0px}.s-order-summary-item-copy-button span svg{pointer-events:none;display:inline;height:12px;width:12px;vertical-align:baseline}.s-order-summary-item-copy-button span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-item-copy-button span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-code-item-wrapper p span svg{display:inline;height:1.25rem;width:1.25rem;fill:#6b7280;vertical-align:baseline}.s-order-summary-code-item-wrapper p span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-code-item-wrapper p span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-digital-item-wrapper div span:last-of-type{display:inline-block}.s-order-summary-digital-item-wrapper span svg{display:inline-block;height:14px;width:14px;vertical-align:baseline}.s-order-summary-digital-item-wrapper span svg:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-order-summary-digital-item-wrapper span svg:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-order-summary-item-copy-button.copied .s-button-text{--tw-text-opacity:1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.s-order-summary-digital-item-wrapper .s-order-summary-item-download span{position:relative;top:1px}.s-order-summary-digital-item-wrapper .s-order-summary-item-download span svg{margin-left:0px;margin-right:0px;height:18px;width:18px;--tw-translate-y:2px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:var(--color-primary)}";
32
32
 
33
33
  const SallaOrderSummary = class {
34
34
  constructor(hostRef) {
@@ -87,7 +87,7 @@ const SallaOrderSummary = class {
87
87
  }
88
88
  render() {
89
89
  return (index.h("ul", { key: 'd699111d423dbb47469d813f64e5f956f5860522', class: "s-order-summary-wrapper" }, this.noItemFound ? index.h("salla-placeholder", { alignment: "center" }, index.h("span", { slot: "title" })) :
90
- this.order_items.map((item) => (this.isDigitalCard(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (index.h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, index.h("p", null, index.h("span", { innerHTML: iconCreditCard }), index.h("span", null, code.code)), index.h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, index.h("span", { innerHTML: this.codeCopied === code.code ? check.SICheck : swapStroke.iconCopy }), index.h("span", null, this.copy_text))))))) :
90
+ this.order_items.map((item) => (this.isDigitalCard(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (index.h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, index.h("p", null, index.h("span", { innerHTML: iconCreditCard }), index.h("span", null, code.code)), index.h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, index.h("span", { innerHTML: this.codeCopied === code.code ? check.iconCheck : swapStroke.iconCopy }), index.h("span", null, this.copy_text))))))) :
91
91
  this.isDigitalProduct(item) ? (index.h("li", { key: item.product.id, class: "s-order-summary-item" }, index.h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), index.h("ul", null, item.files.map((file) => (index.h("li", { class: "s-order-summary-digital-item-wrapper" }, index.h("div", null, index.h("span", { innerHTML: iconFileArchive }), index.h("span", null, file.name)), index.h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, index.h("span", { innerHTML: iconDownload }), index.h("span", null, this.download_text)))))))) : null))));
92
92
  }
93
93
  };
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
 
8
- const sallaOrderTotalsCardCss = ":host{display:block}";
8
+ const sallaOrderTotalsCardCss = "/*!twlt*/:host{display:block}.s-order-totals-card-wrapper{display:block}.s-order-totals-card-panel{border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.s-order-totals-card-flow{display:flow-root}.s-order-totals-card-list{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-order-totals-card-list>.s-order-totals-card-row{border-bottom-width:1px}.s-order-totals-card-list>.s-order-totals-card-row:last-child{border-bottom-width:0px}.s-order-totals-card-row{display:block}.s-order-totals-card-row-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1.25rem;padding-bottom:1.25rem}.s-order-totals-card-label{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-order-totals-card-value{font-weight:500}.s-order-totals-card-discount{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-order-totals-card-tax-value{font-weight:500;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-order-totals-card-total{margin-left:-1.5rem;margin-right:-1.5rem;border-radius:0.375rem;background-color:var(--color-border);padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-total-label{font-size:1rem;line-height:1.5rem;font-weight:500}.s-order-totals-card-total-value{font-size:1rem;line-height:1.5rem;font-weight:500}.s-order-totals-card-refund{margin-left:-1.5rem;margin-right:-1.5rem;border-left-width:4px;--tw-border-opacity:1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));padding-left:1.5rem;padding-right:1.5rem}.s-order-totals-card-refund:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-left-width:0px;border-right-width:4px}.s-order-totals-card-refund-label{display:flex;align-items:center;gap:0.5rem;--tw-text-opacity:1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.s-order-totals-card-refund-icon{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-order-totals-card-refund-value{font-weight:500;--tw-text-opacity:1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}";
9
9
 
10
10
  const SallaOrderTotalsCard = class {
11
11
  constructor(hostRef) {
@@ -3,11 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
  var Helper = require('./Helper-6RI07gZo.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
10
- const sallaOrdersCss = ":host{display:block}";
10
+ const sallaOrdersCss = "/*!twlt*/:host{display:block}.relative{position:relative}.table{display:table}.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-orders-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-orders-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-orders-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-orders-mobile-title{display:none}}.s-orders-reference-id{display:none}@media (min-width: 768px){.s-orders-reference-id{display:inline-block}}.s-orders-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-orders-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-orders-copy-to-clipboard-button{display:none}}.s-orders-copy-to-clipboard-button salla-button{position:relative}.s-orders-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-orders-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-orders-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-orders-status-container{margin-left:0px;margin-right:0px}}.s-orders-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-orders-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-orders-status-container i{margin-top:0.25rem}.s-orders-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-orders-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-orders-status-rated{font-size:1.125rem;line-height:1.75rem}.s-orders-status-rated:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:1rem}.s-orders-status-rated:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:1rem}.s-orders-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-orders-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-orders-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-orders-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-orders-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-orders-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-orders-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-orders-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-orders-table-head{display:table-header-group}}.s-orders-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-orders-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-orders-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-orders-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-orders-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-orders-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-orders-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-orders-table-tbody-tr-shadow:hover{box-shadow:5px 10px 30px #2b2d340d}.s-orders-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-orders-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-orders-table-tbody-tr-td{height:5rem;width:auto}.s-orders-table-tbody-tr-td:last-child{text-align:end}.s-orders-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-orders-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-orders-table-tbody-tr-td:first-child{font-weight:700}.s-orders-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem}@media (min-width: 768px){.s-orders-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-orders-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-orders-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-orders-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}";
11
+
12
+ const sallaInfiniteScrollCss = "/*!twlt*/.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-infinite-scroll-wrapper{margin-top:1rem;text-align:center}.s-infinite-scroll-last{margin:0px;text-align:center}.s-infinite-scroll-error{margin:0px;text-align:center}";
11
13
 
12
14
  const SallaOrder = class {
13
15
  constructor(hostRef) {
@@ -232,6 +234,6 @@ const SallaOrder = class {
232
234
  }
233
235
  get host() { return index.getElement(this); }
234
236
  };
235
- SallaOrder.style = sallaOrdersCss;
237
+ SallaOrder.style = sallaOrdersCss + sallaInfiniteScrollCss;
236
238
 
237
239
  exports.salla_orders = SallaOrder;
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
 
8
- const sallaPaymentsCss = ":host{display:block}";
8
+ const sallaPaymentsCss = "/*!twlt*/:host{display:block}.static{position:static}.s-payments-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:0.5rem}.s-payments-list:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-payments-list-item{display:flex;height:2rem;width:3rem;align-items:center;justify-content:center;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.25rem}.s-payments-list-item img{max-height:100%;object-fit:contain}.s-payments-sbc-image{height:1.5rem;border-radius:0.125rem;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-payments-sbc-image:hover{opacity:0.8}";
9
9
 
10
10
  const SallaPayments = class {
11
11
  constructor(hostRef) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
 
8
8
  var Inbox = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -12,7 +12,7 @@ var Inbox = `<!-- Generated by IcoMoon.io -->
12
12
  </svg>
13
13
  `;
14
14
 
15
- const sallaPlaceholderCss = "";
15
+ const sallaPlaceholderCss = "/*!twlt*/.inline{display:inline}.contents{display:contents}.s-bullet-delivery-placeholder.s-placeholder-wrapper{margin-top:1rem !important;margin-bottom:1rem !important}.s-loyalty-confirmation-modal-content .s-placeholder-title{margin-bottom:0.75rem}.s-loyalty-confirmation-modal-content .s-placeholder-icon svg b{--tw-text-opacity:1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.s-loyalty-confirmation-modal-content .s-placeholder-description{padding-left:1.25rem;padding-right:1.25rem}.s-placeholder-title{margin-bottom:0.25rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-placeholder-description{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-placeholder-icon{margin-bottom:1rem;fill:#e5e7eb}.s-placeholder-align-left{text-align:left}.s-placeholder-align-center{text-align:center}.s-placeholder-align-right{text-align:right}.s-placeholder-align-right>.s-placeholder-icon{display:flex;align-items:center;justify-content:flex-end}.s-placeholder-align-right>.s-placeholder-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){justify-content:flex-start}.s-placeholder-align-center>.s-placeholder-icon{display:flex;align-items:center;justify-content:center}.s-placeholder-icon-xs>svg{height:1.5rem;width:1.5rem}.s-placeholder-icon-sm>svg{height:2.5rem;width:2.5rem}.s-placeholder-icon-md>svg{height:3.5rem;width:3.5rem}.s-placeholder-icon-lg>svg{height:4rem;width:4rem}.s-placeholder-icon-xl>svg{height:5rem;width:5rem}.s-placeholder-icon-xxl>svg{height:6rem;width:6rem}.s-placeholder-icon-xxxl>svg{height:7rem;width:7rem}.s-placeholder-icon-xs>i{font-size:20px}.s-placeholder-icon-sm>i{font-size:35px}.s-placeholder-icon-md>i{font-size:45px}.s-placeholder-icon-lg>i{font-size:58px}.s-placeholder-icon-xl>i{font-size:75px}.s-placeholder-icon-xxl>i{font-size:85px}.s-placeholder-icon-xxxl>i{font-size:100px}.s-placeholder-wrapper{margin-top:3rem;margin-bottom:3rem;display:block}.s-scopes-wrap .s-placeholder-wrapper{display:flex;height:12rem;flex-direction:column;align-items:center;justify-content:center}";
16
16
 
17
17
  const SallaPlaceholder = class {
18
18
  constructor(hostRef) {
@@ -3,11 +3,11 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
  var arrowRight = require('./arrow-right-Cd6JoegH.js');
9
9
 
10
- const sallaPriceRangeCss = ":host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}";
10
+ const sallaPriceRangeCss = "/*!twlt*/:host{display:block}.rtl .rtl-range-slider,[dir=rtl] .rtl-range-slider{transform:rotateY(180deg)}.rtl .rtl-range-numbers,[dir=rtl] .rtl-range-numbers{flex-direction:row-reverse}.rtl .form-select,.rtl select,[dir=rtl] .form-select,[dir=rtl] select{background-position:left 0.5rem center;padding-right:12px}.rtl .menu-divide li:not(:last-child):after,[dir=rtl] .menu-divide li:not(:last-child):after{left:0;right:auto}input[type=range]::-webkit-slider-thumb{pointer-events:all;width:24px;height:24px;-webkit-appearance:none}[type=checkbox]:checked{background-size:80%}.relative{position:relative}.flex{display:flex}.w-full{width:100%}.max-w-xl{max-width:36rem}.items-center{align-items:center}.justify-center{justify-content:center}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-price-range-input{pointer-events:none;position:absolute;z-index:20;height:0.5rem;width:100%;cursor:pointer;appearance:none;opacity:0}.s-price-range-bar{position:absolute;left:0px;right:0px;bottom:0px;top:0px;z-index:10;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-price-range-bar-container{position:relative;z-index:10;height:0.5rem}.s-price-range-active-bar{position:absolute;top:0px;bottom:0px;z-index:20;border-radius:0.375rem;background-color:var(--color-primary)}.s-price-range-left-handle{position:absolute;top:0px;left:0px;z-index:30;margin-top:-0.25rem;margin-left:-0px;height:1rem;width:1rem;cursor:pointer;border-radius:9999px;background-color:var(--color-primary);--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-price-range-right-handle{position:absolute;top:0px;right:0px;z-index:30;margin-top:-0.25rem;margin-right:-0px;height:1rem;width:1rem;cursor:pointer;border-radius:9999px;background-color:var(--color-primary);--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-price-range-inputs{display:flex;align-items:center;justify-content:flex-start;gap:0.5rem;padding-top:1rem}.s-price-range-number-input{width:6rem;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:2.25rem;text-align:center;font-size:0.875rem;line-height:1.25rem}.s-price-range-number-input:focus{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.s-price-range-gray-text{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-price-range-currency{pointer-events:none;position:absolute;top:0px;bottom:0px;left:0px;display:flex;align-items:center;padding-left:0.5rem;padding-right:0.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.s-price-range-currency{font-size:0.875rem;line-height:1.25rem}}.s-price-range-relative{position:relative}";
11
11
 
12
12
  const SallaPriceRange = class {
13
13
  constructor(hostRef) {
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-esb3M_d6.js');
6
+ var index = require('./index-CS4z8Mi_.js');
7
7
 
8
- const sallaProductCardEmbedCss = "@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{display:block}";
8
+ const sallaProductCardEmbedCss = "/*!twlt*/@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{display:block}.visible{visibility:visible}.block{display:block}.flow-root{display:flow-root}.s-product-card-embed-card{display:block;max-width:12rem;shape-outside:margin-box}.s-product-card-embed-card custom-salla-product-card{--tw-shadow:0 0 28px 0px rgba(0 0 0 / .1);--tw-shadow-colored:0 0 28px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-product-card-embed-card-align-center{margin-left:auto;margin-right:auto}.s-product-card-embed-card-align-left{float:left;margin-right:1ch}.s-product-card-embed-card-align-right{float:right;margin-left:1ch}.s-product-card-embed-fallback{display:block}article:has(salla-product-card-embed)::after{clear:both;display:block;--tw-content:'';content:var(--tw-content)}";
9
9
 
10
10
  const SallaProductCardEmbed = class {
11
11
  constructor(hostRef) {