@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
@@ -1,316 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DchFLJee.js';
5
- import { S as Star } from './star2-D4oPi1Ov.js';
6
- import { H as Helper } from './Helper-CBmYxrzX.js';
7
- import './anime.es-CgtvEd63.js';
8
-
9
- var Heart = `<!-- Generated by IcoMoon.io -->
10
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
11
- <title>heart</title>
12
- <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>
13
- </svg>
14
- `;
15
-
16
- const sallaProductCardCss = ".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}";
17
-
18
- const SallaProductCard = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- // Store configs
22
- salla.onReady(() => {
23
- this.fitImageHeight = salla.config.get('store.settings.product.fit_type');
24
- salla.wishlist.event.onAdded((_res, id) => this.toggleFavoriteIcon(true, id));
25
- salla.wishlist.event.onRemoved((_res, id) => this.toggleFavoriteIcon(false, id));
26
- this.placeholder = salla.url.asset(salla.config.get('theme.settings.placeholder'));
27
- });
28
- // Language
29
- salla.lang.onLoaded(() => {
30
- this.remained = salla.lang.get('pages.products.remained');
31
- this.donationAmount = salla.lang.get('pages.products.donation_amount');
32
- this.startingPrice = salla.lang.get('pages.products.starting_price');
33
- this.addToCart = salla.lang.get('pages.cart.add_to_cart');
34
- this.outOfStock = salla.lang.get('pages.products.out_of_stock');
35
- });
36
- // Parse product data
37
- if (!this.product) {
38
- return;
39
- }
40
- try {
41
- this.productData = typeof this.product == 'object' ? this.product : JSON.parse(this.product);
42
- }
43
- catch (e) {
44
- salla.log('Bad json passed via product prop');
45
- }
46
- }
47
- // Private Methods
48
- initCircleBar() {
49
- 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;
50
- bar.style.strokeDashoffset = strokeDashOffsetValue;
51
- }
52
- toggleFavoriteIcon(isAdded = true, id = null) {
53
- if (id && id !== this.productData.id) {
54
- return;
55
- }
56
- this.wishlistBtn?.classList.toggle('s-product-card-wishlist-added', isAdded);
57
- }
58
- isInWishlist() {
59
- return salla.storage.get('salla::wishlist', []).includes(this.productData?.id);
60
- }
61
- async handleWishlistClick() {
62
- const wasInWishlist = this.isInWishlist();
63
- this.toggleFavoriteIcon(!wasInWishlist);
64
- try {
65
- await salla.wishlist.toggle(this.productData.id);
66
- }
67
- catch {
68
- this.toggleFavoriteIcon(wasInWishlist);
69
- }
70
- }
71
- formatDate(date) {
72
- let d = new Date(date);
73
- return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
74
- }
75
- getProductBadge() {
76
- if (this.productData.promotion_title) {
77
- return h("div", { class: "s-product-card-promotion-title" }, this.productData.promotion_title);
78
- }
79
- if (this.showQuantity && this.productData?.quantity) {
80
- return h("div", { class: "s-product-card-quantity" }, this.remained, " ", salla.helpers.number(this.productData?.quantity));
81
- }
82
- if (this.showQuantity && this.productData?.is_out_of_stock) {
83
- return h("div", { class: "s-product-card-out-badge" }, this.outOfStock);
84
- }
85
- return '';
86
- }
87
- getPriceFormat(price) {
88
- if (!price || price == 0) {
89
- return salla.config.get('store.settings.product.show_price_as_dash') ? '-' : '';
90
- }
91
- return salla.money(price);
92
- }
93
- getProductPrice() {
94
- if (this.productData.is_on_sale) {
95
- return h("div", { class: "s-product-card-sale-price" }, h("h4", { innerHTML: this.getPriceFormat(this.productData.sale_price) }), h("span", { innerHTML: this.getPriceFormat(this.productData?.regular_price) }));
96
- }
97
- if (this.productData.starting_price) {
98
- return h("div", { class: "s-product-card-starting-price" }, h("p", null, this.startingPrice), h("h4", { innerHTML: this.getPriceFormat(this.productData?.starting_price) }));
99
- }
100
- return h("h4", { class: "s-product-card-price", innerHTML: this.getPriceFormat(this.productData?.price) });
101
- }
102
- render() {
103
- const classes = {
104
- 's-product-card-entry': true,
105
- 's-product-card-vertical': !this.horizontal && !this.fullImage && !this.minimal,
106
- 's-product-card-horizontal': this.horizontal && !this.fullImage && !this.minimal,
107
- 's-product-card-fit-height': this.fitImageHeight && !this.isSpecial && !this.fullImage && !this.minimal,
108
- 's-product-card-special': this.isSpecial,
109
- 's-product-card-full-image': this.fullImage,
110
- 's-product-card-minimal': this.minimal,
111
- 's-product-card-compact': this.compact,
112
- 's-product-card-donation': this.productData?.donation,
113
- 's-product-card-shadow': this.shadowOnHover,
114
- 's-product-card-out-of-stock': this.productData?.is_out_of_stock,
115
- };
116
- const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
117
- return (h(Host, { key: 'c5a6d2bc2fcf23da1a41ab8b19b2e981fb111e30', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: 'e8d5105e4dbe367c612d62ef1dd6c95d04f440b0', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '8714997fcb48ef0eaabdf0a52cb775514e53db56', ...hrefProp }, h("img", { key: 'eebd3c1dde0894037a7723c46e2f07f6a5aef939', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
118
- ? 'contain'
119
- : this.fitImageHeight
120
- ? this.fitImageHeight
121
- : '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 && h("a", { key: '72e240315320e976dcad8d3f027711b9c1d7bcf1', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
122
- 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() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '2f0186ffc102488824cd7c346f4e07439474fc26', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
123
- h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
124
- : '', h("div", { key: 'd50ea0726d25bf3b551050e906fc615bc682e694', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: 'e4f39676d661a01d1aa6352cac7be6e764fa8687', class: "s-product-card-content-title" }, h("a", { key: '0aacc2e00a0db730d1e803da34336085082df75d', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
125
- h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
126
- : ''), this.productData?.donation && !this.minimal && !this.fullImage ?
127
- [h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
128
- [h("label", { htmlFor: "donation-amount" }, this.donationAmount, " ", h("span", null, "*")), h("input", { type: "text", onInput: e => {
129
- salla.helpers.inputDigitsOnly(e.target);
130
- this.addBtn.donatingAmount = e.target.value;
131
- }, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
132
- : '')]
133
- : '', 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 ?
134
- h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
135
- : ''), this.isSpecial && this.productData.discount_ends
136
- ? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
137
- : '', !this.hideAddBtn && !this.compact ?
138
- h("div", { class: "s-product-card-content-footer" }, 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 }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)), this.horizontal || this.fullImage ?
139
- 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 }}" }, h("span", { class: "text-xl", innerHTML: Heart }))
140
- : '')
141
- : ''), !this.hideAddBtn && this.compact ?
142
- h("div", { class: "s-product-card-content-footer" }, 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" }, h("slot", { name: "add-to-cart-label" }, this.productData.add_to_cart_label)))
143
- : ''));
144
- }
145
- componentDidLoad() {
146
- document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
147
- if (this.productData?.quantity && this.isSpecial) {
148
- this.initCircleBar();
149
- }
150
- if (!salla.config.isGuest() && salla.storage.get('salla::wishlist', []).includes(this.productData?.id)) {
151
- this.toggleFavoriteIcon();
152
- }
153
- }
154
- static get assetsDirs() { return ["assets"]; }
155
- get host() { return getElement(this); }
156
- };
157
- SallaProductCard.style = sallaProductCardCss;
158
-
159
- const sallaProductsSliderCss = "";
160
-
161
- const SallaProductsSlider = class {
162
- constructor(hostRef) {
163
- registerInstance(this, hostRef);
164
- /**
165
- * Custom Card Component for the Salla Products Slider.
166
- *
167
- * This component allows you to customize the appearance of individual product cards within a Salla Products Slider.
168
- *
169
- * @example
170
- * <salla-products-slider product-card-component="my-custom-card-style1" ...
171
- * <salla-products-slider product-card-component="my-custom-card-style2" ...
172
- */
173
- this.productCardComponent = 'custom-salla-product-card';
174
- this.apiUrl = '';
175
- this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.host, `${this.productCardComponent}, salla-product-card`);
176
- }
177
- componentWillLoad() {
178
- return salla.onReady()
179
- .then(async () => {
180
- //TODO:: check why `this.includes` not working!!
181
- this.includes = Helper.parseJson(this.includes || this.host.getAttribute('includes'));
182
- if (!Array.isArray(this.includes)) {
183
- this.includes = null;
184
- }
185
- Helper.setIncludes(this.includes);
186
- this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
187
- if (!this.sourceValueIsValid) {
188
- salla.logger.warn(`source-value prop is required for source [${this.getSource()}]`);
189
- return;
190
- }
191
- this.hasCustomComponent = !!customElements.get(this.productCardComponent);
192
- if (this.source === 'json') {
193
- this.productsData = await this.applyBeforeAppendItems(this.getSourceValue());
194
- this.isReady = true;
195
- return;
196
- }
197
- if ((this.getSource() == 'related' && !salla.config.get('store.settings.product.related_products_enabled'))) {
198
- this.isReady = false;
199
- return;
200
- }
201
- if (this.getSource() === 'related' &&
202
- salla.config.get('store.settings.product.related_products_enabled') &&
203
- salla.config.get('store.settings.product.product-recommendation-type') === 'random' &&
204
- salla.config.get('store.features')?.includes('ai-driven-personalized-product')) {
205
- this.sourceValue = await salla.recommendations.similarProducts(this.sourceValue, { limit: this.limit || 12 }).extractProductIds();
206
- this.source = 'selected';
207
- }
208
- return salla.api.withoutNotifier(() => salla.product.api.fetch({
209
- source: Helper.getApiSource(this.getSource()),
210
- source_value: this.getSourceValue(),
211
- limit: this.limit
212
- }))
213
- .then(response => Helper.injectExtraFieldsToResponse(response))
214
- .then(async (response) => {
215
- this.productsData = await this.applyBeforeAppendItems(response.data);
216
- this.isReady = true;
217
- response.source = this.getSource();
218
- response.sourceValue = this.getSourceValue();
219
- salla.event.emit('salla-products-slider::products.fetched', this.productsData);
220
- });
221
- });
222
- }
223
- componentDidRender() {
224
- let processedCount = 0;
225
- const intervalId = setInterval(() => {
226
- this.host.querySelectorAll('[loading="lazy"]')?.forEach(img => img.removeAttribute('loading'));
227
- processedCount++;
228
- if (processedCount >= 10) {
229
- clearInterval(intervalId);
230
- }
231
- }, 1000);
232
- }
233
- connectedCallback() {
234
- salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
235
- }
236
- disconnectedCallback() {
237
- salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
238
- }
239
- async componentDidLoad() {
240
- await Salla.hooks.registerComponent('salla-products-slider', this);
241
- }
242
- onReadyChanged(isReady) {
243
- if (!isReady)
244
- return;
245
- void salla.wishlist.api.syncStorageFromServer();
246
- }
247
- isSourceWithoutValue() {
248
- return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
249
- }
250
- getItemHTML(product) {
251
- //as a request they don't want to let the user to open the product details
252
- //todo:: find a better way to handle this request
253
- const isLandingPage = this.getSource() === 'landing-page';
254
- isLandingPage && (product.url = '');
255
- const handleClick = isLandingPage ? undefined : () => {
256
- Helper.saveProductSource(this.getSource());
257
- Helper.saveProductPosition(product.position);
258
- };
259
- if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
260
- return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
261
- }
262
- if (this.hasCustomComponent) {
263
- const customElem = document.createElement(this.productCardComponent);
264
- customElem.setAttribute('product', JSON.stringify(product));
265
- customElem.setAttribute('source', this.getSource());
266
- customElem.setAttribute('source-value', this.getSourceValue());
267
- return h("div", { class: "s-products-slider-card", onClick: handleClick, innerHTML: customElem.outerHTML });
268
- }
269
- return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("salla-product-card", { "show-quantity": isLandingPage, "hide-add-btn": isLandingPage, "shadow-on-hover": true, product: product }));
270
- }
271
- canRender() {
272
- return this.sourceValueIsValid && this.isReady;
273
- }
274
- getSource() {
275
- return Helper.getProductsSource(this.source);
276
- }
277
- getSourceValue() {
278
- return Helper.getProductsSourceValue(this.source, this.sourceValue);
279
- }
280
- /**
281
- * Allows bundles to modify or replace products before they are rendered.
282
- *
283
- * @example
284
- * salla.hooks.registerHook(
285
- * 'salla-products-slider',
286
- * 'beforeAppendItems',
287
- * async (ctx) => {
288
- * ctx.items = ctx.items.filter((item) => item.is_available);
289
- * },
290
- * );
291
- */
292
- async applyBeforeAppendItems(items) {
293
- const originalItems = Array.isArray(items) ? items : [];
294
- const ctx = { component: this, items: originalItems };
295
- try {
296
- await salla.hooks.call('salla-products-slider', 'beforeAppendItems', ctx);
297
- return Array.isArray(ctx.items) ? ctx.items : originalItems;
298
- }
299
- catch {
300
- return originalItems;
301
- }
302
- }
303
- render() {
304
- if (!this.canRender()) {
305
- return;
306
- }
307
- return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, ...(this.sliderProps || {}), "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
308
- }
309
- get host() { return getElement(this); }
310
- static get watchers() { return {
311
- "isReady": ["onReadyChanged"]
312
- }; }
313
- };
314
- SallaProductsSlider.style = sallaProductsSliderCss;
315
-
316
- export { SallaProductCard as salla_product_card, SallaProductsSlider as salla_products_slider };
@@ -1,11 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- var SIShipping = `<!-- Generated by IcoMoon.io -->
5
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
6
- <title>shipping</title>
7
- <path d="M31.124 13.104l-3.148-3.935c-1.273-1.591-3.171-2.503-5.207-2.503h-1.436c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v17.333c0 0.737 0.596 1.333 1.333 1.333h2.856c0.596 2.295 2.665 4 5.144 4 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333c-2.479 0-4.548 1.705-5.144 4h-1.523v-16c0-0.735 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.599 1.333 1.333v1.333c0 0.248 0.087 0.468 0.204 0.667-0.117 0.199-0.204 0.419-0.204 0.667v5.333c0 0.736 0.596 1.333 1.333 1.333h9.333v6.667h-1.333c-0.063 0-0.117 0.028-0.179 0.036-0.583-2.313-2.663-4.036-5.155-4.036-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c2.492 0 4.572-1.723 5.155-4.036 0.061 0.008 0.116 0.036 0.179 0.036h2.667c0.737 0 1.333-0.596 1.333-1.333v-8.397c0-0.907-0.311-1.795-0.876-2.499zM9.333 21.333c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM21.333 13.333v-4h1.436c1.221 0 2.361 0.548 3.124 1.501l1.999 2.499zM22.667 26.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>
8
- </svg>
9
- `;
10
-
11
- export { SIShipping as S };
@@ -1,10 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- var SITag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
5
- <title>tag</title>
6
- <path d="M28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>
7
- </svg>
8
- `;
9
-
10
- export { SITag as S };
@@ -1,29 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { f as forceUpdate } from './index-DchFLJee.js';
5
-
6
- function TrackedPromise(fn, options = {}) {
7
- options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);
8
- return (target, propertyKey) => {
9
- const trackedPromise = Object.assign(function (...args) {
10
- const update = (newState) => {
11
- Object.assign(this[propertyKey], newState);
12
- forceUpdate(this);
13
- };
14
- update({ status: 'pending', error: undefined });
15
- return fn.call(this, ...args).then((data) => {
16
- update({ status: 'success', data, error: undefined });
17
- return data;
18
- }, (error) => {
19
- update({ status: 'error', error });
20
- return Promise.reject(error);
21
- });
22
- }, { status: options.initialStatus, data: options.initialData, error: undefined });
23
- Object.defineProperty(target, propertyKey, {
24
- value: trackedPromise,
25
- });
26
- };
27
- }
28
-
29
- export { TrackedPromise as T };
@@ -1,11 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- var SIUserAdd = `<!-- Generated by IcoMoon.io -->
5
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
6
- <title>user-add</title>
7
- <path d="M10.667 16c4.044 0 7.333-3.289 7.333-7.333s-3.289-7.333-7.333-7.333-7.333 3.289-7.333 7.333 3.289 7.333 7.333 7.333zM10.667 4c2.573 0 4.667 2.093 4.667 4.667s-2.093 4.667-4.667 4.667-4.667-2.093-4.667-4.667 2.093-4.667 4.667-4.667zM30.667 14.667h-2.667v-2.667c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v2.667h-2.667c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h2.667v2.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.667h2.667c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333zM10.667 18.667c-5.881 0-10.667 3.813-10.667 8.5v2.167c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-3.217 3.588-5.833 8-5.833s8 2.616 8 5.833v2.167c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-2.167c0-4.687-4.785-8.5-10.667-8.5z"></path>
8
- </svg>
9
- `;
10
-
11
- export { SIUserAdd as S };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,c as t,h as i,H as e,a as r}from"./p-DchFLJee.js";import{S as a}from"./p-CciN5Q_x.js";import{e as l}from"./p-DzAIgzdz.js";import{S as h}from"./p-8Tsmrwno.js";const o=class{constructor(i){s(this,i),this.quickOrderSubmited=t(this,"quickOrderSubmited"),this.quickOrderTitle="ليش تنتظر؟",this.subTitle="احصل على المنتج مباشرة الآن",this.payButtonTitle="اطلب المنتج",this.confirmPayButtonTitle="اشتر الآن",this.agreementText=salla.lang.get("pages.checkout.show_full_agreement"),this.isEmailRequired=!1,this.quickOrderStyle="default",this.isAvailable=!1,this.oneClick=!1,this.expanded=!1,this.isTermsRequired=!1,this.countryCode=salla.config.get("user.country_code","SA")||"SA",this.submitSucess=!1,this.placeHolderEmail=salla.lang.get("common.elements.email"),this.emailOptional=salla.lang.get("common.elements.optional"),this.agreementShowText=salla.lang.get("pages.checkout.show_full_agreement"),this.agreementModalHead=salla.lang.get("pages.checkout.full_agreement"),this.userNameLabel=salla.lang.get("pages.products.your_name"),this.termsChecked=!1,salla.onReady((()=>{this.productId=this.productId||salla.config.get("page.id")})),salla.lang.onLoaded((()=>{this.placeHolderEmail=salla.lang.get("common.elements.email"),this.emailOptional=salla.lang.get("common.elements.optional"),this.agreementShowText=salla.lang.get("pages.checkout.show_full_agreement"),this.agreementModalHead=salla.lang.get("pages.checkout.full_agreement"),this.userNameLabel=salla.lang.get("pages.products.your_name")}))}getBtnColor(){return"default"===this.quickOrderStyle?"light":"primary"}getErrorMessage(s,t){return"terms"==t?salla.lang.get("pages.checkout.check_agreement"):salla.lang.get(`common.errors.${s}`,{attribute:"name"==t?this.userNameLabel:this.placeHolderEmail})}handleInvalidInput(s){let t,i=s.target,e=i.validity;e.valueMissing?(t=this.getErrorMessage("field_required",i.name),console.log(this.getErrorMessage("field_required",i.name))):e.typeMismatch&&(t=this.getErrorMessage("invalid_value",i.name)),i.setCustomValidity(t)}async setWrapperHeight(){let s=this.host.querySelector(".s-quick-order-expandable");setTimeout((()=>{s.style.maxHeight=s.style.maxHeight||this.oneClick?null:s.scrollHeight+"px"}),50)}getDarkOrLight(){return"default"===this.quickOrderStyle&&salla.config.get("theme.color.is_dark")?"dark":"light"}getStyleColor(){return{gray:"#f3f3f3",white:"#ffffff",default:salla.config.get("theme.color.primary")}[this.quickOrderStyle]||"#f3f3f3"}async submit(s,t=!1){return s.preventDefault(),t&&!this.oneClick?(this.expanded=!this.expanded,void this.setWrapperHeight()):this.submitBtn.load().then((()=>this.getPayload())).then((s=>salla.api.cart.createQuickOrder(s))).then((()=>{setTimeout((()=>{this.submitBtn.stop(),this.submitSucess=!0,this.quickOrderSubmited.emit()}),200)})).catch((s=>s&&(console.error(s),this.submitBtn.stop())))}async getPayload(){return this.oneClick?{product_ids:[this.productId],agreement:!0}:{product_ids:[this.productId],email:this.emailInput?.value,phone:Number((await(this.phoneInput?.getValues()))?.phone),country_code:(await(this.phoneInput?.getValues()))?.countryCode||this.countryCode,name:this.nameInput?.value,agreement:this.termsChecked}}formatAgreementText(s,t=150){return s?s.length<=t?s:(new DOMParser).parseFromString(s,"text/html").documentElement.innerText.substring(0,t)+"...":""}loadQuickOrderSettings(){let s=salla.config.get("store.settings.quick_order");return s?(this.user=salla.config.get("user")||salla.storage.get("user")||{},this.countryCode=this.user?.country_code||this.countryCode,this.isEmailRequired=!this.user?.email&&this.isEmailRequired,this.oneClick=this.user?.email,this.initComponentData(s),Promise.resolve()):Promise.resolve()}initComponentData(s){this.quickOrderTitle=s.title,this.subTitle=s.sub_title,this.payButtonTitle=s.order_now_button,this.isEmailRequired=s.is_email_required,this.isTermsRequired=s.show_agreement,this.agreementText=s.agreement,this.confirmPayButtonTitle=s.confirm_button,this.thanksMessage=s.thanks_message,this.quickOrderStyle=s.style,this.isAvailable=!0,this.oneClick=this.oneClick&&!this.isTermsRequired}componentWillLoad(){return new Promise((s=>salla.onReady((()=>this.loadQuickOrderSettings().then(s)))))}render(){if(this.isAvailable)return this.submitSucess?i(e,{class:"s-quick-order"},i("div",{class:"s-quick-order-confirm",style:{backgroundColor:salla.config.get("theme.color.primary")+"10",borderColor:salla.config.get("theme.color.primary")+"10",color:salla.config.get("theme.color.primary")}},i("i",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>party-horn</title>\n<path fill="currentColor" d="M5.333 4.013c0.736 0 1.333-0.596 1.333-1.333v-0.013c0-0.737-0.597-1.327-1.333-1.327s-1.333 0.603-1.333 1.34 0.597 1.333 1.333 1.333zM11.333 10c0.341 0 0.683-0.131 0.943-0.391 1.541-1.54 2.391-3.589 2.391-5.771v-2.505c0-0.737-0.597-1.333-1.333-1.333s-1.333 0.596-1.333 1.333v2.505c0 1.468-0.572 2.848-1.609 3.885-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391zM18.667 9.993c0.319 0 0.639-0.115 0.895-0.345 0.383-0.347 0.684-0.325 1.497-0.22 0.923 0.124 2.319 0.307 3.636-0.887 1.293-1.172 1.303-2.54 1.308-3.539 0.005-0.887 0.043-1.228 0.432-1.581 0.361-0.327 0.621-0.335 1.493-0.216 0.923 0.12 2.317 0.307 3.635-0.884 0.545-0.495 0.587-1.337 0.093-1.883-0.493-0.547-1.336-0.589-1.884-0.093-0.361 0.325-0.621 0.333-1.493 0.216-0.921-0.119-2.317-0.305-3.635 0.884-1.293 1.173-1.303 2.541-1.308 3.54-0.005 0.885-0.043 1.227-0.432 1.58-0.383 0.348-0.683 0.327-1.497 0.22-0.924-0.124-2.32-0.305-3.636 0.887-0.545 0.495-0.587 1.339-0.092 1.884 0.264 0.291 0.625 0.437 0.988 0.437zM18.667 16.013c0.736 0 1.333-0.596 1.333-1.333v-0.013c0-0.737-0.597-1.327-1.333-1.327s-1.333 0.603-1.333 1.34 0.597 1.333 1.333 1.333zM30.667 17.333h-2.505c-2.179 0-4.228 0.849-5.771 2.391-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.603 0.391 0.944 0.391s0.683-0.131 0.943-0.391c1.023-1.023 2.439-1.609 3.884-1.609h2.505c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333zM30.667 10.66c-0.736 0-1.333 0.603-1.333 1.34s0.597 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.013c0-0.736-0.597-1.327-1.333-1.327zM29.333 26.66c-0.736 0-1.333 0.603-1.333 1.34s0.597 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.013c0-0.736-0.597-1.327-1.333-1.327zM7.456 11.057c-0.327-0.327-0.799-0.46-1.249-0.356-0.449 0.107-0.812 0.439-0.959 0.876l-5.036 15.113c-0.487 1.457-0.113 3.037 0.973 4.125 0.772 0.771 1.792 1.183 2.84 1.183 0.428 0 0.861-0.068 1.284-0.209l15.112-5.037c0.439-0.145 0.769-0.508 0.876-0.959 0.107-0.449-0.028-0.921-0.355-1.249zM4.467 29.259c-0.503 0.163-1.023 0.043-1.395-0.329-0.373-0.373-0.497-0.896-0.329-1.396l4.355-13.065 10.436 10.435z"></path>\n</svg>\n'}),i("span",null,this.thanksMessage))):i(e,{class:`s-quick-order s-quick-order-${this.getDarkOrLight()}`},i("div",{class:`s-quick-order-container s-quick-order-${this.quickOrderStyle}`,style:{backgroundColor:this.getStyleColor()}},i("div",{class:"s-quick-order-button-cont"},i("div",null,i("h3",null,this.quickOrderTitle),i("p",null,this.subTitle)),i("salla-button",{class:this.expanded?"s-quick-order-btn-close":"",onClick:s=>this.submit(s,!0),color:this.getBtnColor()},this.oneClick?this.confirmPayButtonTitle:this.expanded?i("i",{innerHTML:h}):this.confirmPayButtonTitle)),i("form",{onSubmit:s=>this.submit(s),class:"s-quick-order-expandable "+(this.expanded?"s-quick-order-shown":"")},Salla.config.isGuest()&&[i("div",{class:"s-form-group"},i("span",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>portrait</title>\n<path d="M24 1.333h-16c-3.676 0-6.667 2.991-6.667 6.667v16c0 3.028 2.041 5.561 4.811 6.371 0.004 0.001 0.008 0.003 0.012 0.004 0.591 0.172 1.2 0.292 1.844 0.292h16c0.644 0 1.253-0.12 1.843-0.292 0.004-0.001 0.008-0.003 0.012-0.004 2.771-0.809 4.812-3.343 4.812-6.371v-16c0-3.676-2.991-6.667-6.667-6.667zM8.012 28c0.121-1.915 3.363-4 7.988-4s7.868 2.085 7.988 4zM28 24c0 1.24-0.579 2.335-1.467 3.069-0.768-3.288-5.112-5.736-10.533-5.736s-9.765 2.448-10.533 5.736c-0.888-0.735-1.467-1.829-1.467-3.069v-16c0-2.205 1.795-4 4-4h16c2.205 0 4 1.795 4 4zM16 6.667c-3.308 0-6 2.692-6 6s2.692 6 6 6 6-2.692 6-6-2.692-6-6-6zM16 16c-1.839 0-3.333-1.495-3.333-3.333s1.495-3.333 3.333-3.333 3.333 1.495 3.333 3.333-1.495 3.333-3.333 3.333z"></path>\n</svg>\n'}),i("input",{type:"text",required:!0,class:"s-form-control s-quick-order-phone-field",name:"name",placeholder:this.userNameLabel,ref:s=>this.nameInput=s})),i("div",{class:"s-quick-order-flex-input"},i("div",{class:"s-form-group"},i("span",{innerHTML:a}),i("salla-tel-input",{ref:s=>this.phoneInput=s})),i("div",{class:"s-form-group"},i("span",{innerHTML:l}),i("input",{type:"email",class:"s-form-control s-quick-order-email-field",name:"email",required:this.isEmailRequired,placeholder:this.placeHolderEmail+" "+(this.isEmailRequired?"":this.emailOptional),ref:s=>this.emailInput=s})))],this.isTermsRequired&&i("label",{htmlFor:"terms",class:"s-quick-order-terms"},i("input",{type:"checkbox",required:!0,name:"terms",id:"terms",ref:s=>this.termsInput=s,onChange:()=>this.termsChecked=this.termsInput.checked,class:"s-checkbox"}),i("span",{class:"s-form-label"}," ",i("div",{innerHTML:this.formatAgreementText(this.agreementText,150)},this.agreementText.length>150&&i("salla-button",{shape:"link",onClick:()=>this.agreementModal.open()},this.agreementShowText))," ")),i("salla-button",{type:"submit",color:this.getBtnColor(),width:"wide",ref:s=>this.submitBtn=s},this.payButtonTitle)),i("salla-modal",{"modal-title":this.agreementModalHead,ref:s=>this.agreementModal=s},i("article",{innerHTML:this.agreementText}))))}componentDidLoad(){this.host.querySelectorAll("input").forEach((s=>{s.addEventListener("invalid",(s=>{this.handleInvalidInput(s)})),s.addEventListener("input",(()=>{s.setCustomValidity(""),s.reportValidity()}))}))}get host(){return r(this)}};o.style=".s-quick-order-expandable:not(.s-quick-order-shown){overflow:hidden}";export{o as salla_quick_order}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{h as a,r as s}from"./p-DchFLJee.js";import{n as l,a as t,c as o}from"./p-oBaFuItA.js";import{S as r,a as e}from"./p-Bs6JxDkg.js";import{S as i}from"./p-CZRcMGA9.js";import{S as p}from"./p-D1s2kXqL.js";import{S as n}from"./p-QpH8MU22.js";import{S as c}from"./p-0-eTJXSD.js";import{T as y}from"./p-Doz5w8Ln.js";import{a as d}from"./p-CgtvEd63.js";var m=function(a,s,l,t){var o,r=arguments.length,e=r<3?s:null===t?t=Object.getOwnPropertyDescriptor(s,l):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(a,s,l,t);else for(var i=a.length-1;i>=0;i--)(o=a[i])&&(e=(r<3?o(e):r>3?o(s,l,e):o(s,l))||e);return r>3&&e&&Object.defineProperty(s,l,e),e};const g={all:a("span",{class:"s-loyalty-program-rewards-tab-icon",innerHTML:e}),free_shipping:a("span",{class:"s-loyalty-program-rewards-tab-icon",innerHTML:i}),coupon_discount:a("span",{class:"s-loyalty-program-rewards-tab-icon",innerHTML:r}),free_product:a("span",{class:"s-loyalty-program-rewards-tab-icon",innerHTML:p})},h=class{constructor(a){s(this,a),this.currentPrize=null,this.currentProductId=null,this.collapsed=!0,this.animatedPoints=0,this.handleExchangeSucceeded=()=>{this.points(),this.program()}}componentWillLoad(){return salla.onReady().then((()=>salla.lang.onLoaded())).then((()=>{this.program(),this.points(),salla.event.on("loyalty::exchange.succeeded",this.handleExchangeSucceeded)})).catch((a=>salla.logger.error(a)))}disconnectedCallback(){salla.event.off("loyalty::exchange.succeeded",this.handleExchangeSucceeded)}getOutlineItem(s,l,t){const o={1:a("span",{innerHTML:n}),2:a("span",{innerHTML:c}),3:a("span",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>cart-upload</title>\n<path d="M14.545 7.669l3.121-2.732v9.729c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-9.728l3.121 2.732c0.253 0.22 0.567 0.329 0.879 0.329 0.371 0 0.74-0.155 1.004-0.455 0.485-0.555 0.429-1.396-0.125-1.881l-5.333-4.667c-0.503-0.44-1.253-0.44-1.756 0l-5.333 4.667c-0.555 0.484-0.611 1.327-0.125 1.881 0.484 0.552 1.325 0.609 1.881 0.124zM30.647 5.371c-0.713-0.171-1.436 0.267-1.609 0.983l-2.744 11.363c-0.171 0.568-0.684 0.951-1.277 0.951h-12.136c-0.563 0-1.067-0.356-1.256-0.885l-6.035-16.896c-0.189-0.531-0.692-0.885-1.256-0.885h-2.667c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h1.727l5.719 16.012c0.567 1.588 2.081 2.655 3.768 2.655h12.136c1.78 0 3.32-1.145 3.851-2.92l2.763-11.433c0.173-0.716-0.267-1.436-0.983-1.609zM13.667 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM13.667 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333zM24.333 24c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM24.333 29.333c-0.735 0-1.333-0.599-1.333-1.333s0.599-1.333 1.333-1.333 1.333 0.599 1.333 1.333-0.599 1.333-1.333 1.333z"></path>\n</svg>\n'})};return a("li",{class:"s-loyalty-program-item"},a("div",{class:"s-loyalty-program-content"},a("span",{class:"s-loyalty-program-icon-container"},a("span",{class:"s-loyalty-program-text-gradient"},s),a("span",{class:"s-loyalty-program-icon"},o[s])),a("div",{class:"s-loyalty-program-title"},l),a("div",{class:"s-loyalty-program-description"},t)))}render(){if("error"===this.program.status)return a("p",null,salla.lang.get("common.errors.error_occured"));const s=this.program.data.points.slice(0,this.collapsed?t(this.program.data.points.length):this.program.data.points.length),l=this.program.data.prizes,r=this.program.data.prizes_count;return a("div",{class:"s-loyalty-program-container"},a("salla-loyalty-hero",{name:this.program.data.name,description:this.program.data.description,image:this.program.data.image},salla.config.isUser()?a("div",{slot:"crosspoint",class:"s-loyalty-program-profile-wrapper"},a("div",{class:"s-loyalty-program-profile-container"},a("div",{class:"s-loyalty-program-profile-points-section"},a("h2",{class:"s-loyalty-program-profile-label"},salla.lang.get("pages.loyalty_program.your_points")),a("p",{class:"s-loyalty-program-profile-points"},a("span",{class:"s-loyalty-program-profile-points-value"},this.animatedPoints?this.animatedPoints:this.points.data)," ",salla.lang.get("pages.loyalty_program.point"))),a("salla-button",{href:salla.url.get("loyalty_points"),fill:"outline",color:"primary"},salla.lang.get("pages.loyalty_program.view_points_log")))):a("button",{slot:"action",onClick:()=>salla.event.dispatch("login::open"),class:{"s-loyalty-program-login-action":!0,"s-loyalty-program-login-action-dark":!this.program.data.image,"s-loyalty-program-login-action-light":!!this.program.data.image}},salla.lang.get("blocks.header.login"))),a("div",{class:"s-loyalty-program-outline-section"},a("section",{class:"s-loyalty-program-section"},a("header",{class:"s-loyalty-program-header"},a("h1",{class:"s-loyalty-program-main-title"},salla.lang.get("pages.loyalty_program.how_to_start")),a("p",{class:"s-loyalty-program-subtitle"},salla.lang.get("pages.loyalty_program.three_simple_steps"))),a("ol",{class:"s-loyalty-program-list"},this.getOutlineItem(1,salla.lang.get("pages.loyalty_program.register"),salla.lang.get("pages.loyalty_program.create_account")),this.getOutlineItem(2,salla.lang.get("pages.loyalty_program.earn_points"),salla.lang.get("pages.loyalty_program.complete_tasks")),this.getOutlineItem(3,salla.lang.get("pages.loyalty_program.redeem_rewards"),salla.lang.get("pages.loyalty_program.enjoy_rewards"))))),a("div",{class:"s-loyalty-program-points-wrapper"},a("section",{class:"s-loyalty-program-points-section"},a("header",{class:"s-loyalty-program-points-header"},a("h1",{class:"s-loyalty-program-points-title"},this.program.data.promotion_title),a("p",{class:"s-loyalty-program-points-description"},this.program.data.promotion_description)),a("div",{class:"s-loyalty-program-points-spacer"}),a("ul",{class:{"s-loyalty-program-points-list-one":1===this.program.data.points.length,"s-loyalty-program-points-list-two":2===this.program.data.points.length,"s-loyalty-program-points-list-multi":this.program.data.points.length>2}},s.map((s=>a("li",null,a("salla-loyalty-point",{point:s}))))),a("div",{class:"s-loyalty-program-points-spacer"}),t(this.program.data.points.length)!==this.program.data.points.length&&a("button",{class:"s-loyalty-program-points-more-button",onClick:()=>this.collapsed=!this.collapsed},this.collapsed?a("span",null,salla.lang.get("pages.loyalty_program.show_more"),"  ",a("span",{style:{fontSize:"1.2rem",fontWeight:"300"}},"+")):a("span",null,salla.lang.get("pages.loyalty_program.show_less"),"  ",a("span",{style:{fontSize:"1.2rem",fontWeight:"300"}},"-"))))),"success"!==this.program.status?"":a("div",{class:"s-loyalty-program-rewards-container s-loyalty-program-slider-arrows-edges"},a("section",{class:{"s-loyalty-program-tabs-hider":l.length<=2||r<=4}},a("h1",{class:"s-loyalty-program-rewards-heading-mobile"},salla.lang.get("pages.loyalty_program.rewards")),a("salla-tabs",null,a("div",{slot:"header",class:"s-loyalty-program-rewards-tab-items"},l.map((s=>a("salla-tab-header",{slot:"header",name:s.type},g[s.type],a("span",null,s.title))))),a("h1",{slot:"header",class:"s-loyalty-program-rewards-heading-desktop"},salla.lang.get("pages.loyalty_program.rewards")),l.map((s=>a("salla-tab-content",{slot:"content",name:s.type},a("salla-slider",{id:s.type,type:"default","slider-config":'{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":4,"spaceBetween":24,"freeMode":false,"speed":300}}}'},a("div",{slot:"items"},s.items.map((s=>a("salla-reward-card",{prize:s,onAreaClick:()=>{this.currentPrize=s,o((()=>this.detailsModal.open()))},onActionClick:()=>{this.currentPrize=s,o((()=>this.detailsModal.open()))}}))))))))),a("salla-modal",{ref:a=>this.detailsModal=a,class:"s-loyalty-program-modal",width:"md",noPadding:!0},this.currentPrize?a("salla-reward-details",{onActionClick:()=>{this.currentProductId=null,o((()=>this.exchangeModal.open()))},onProductActionClick:a=>{this.currentProductId=a.detail.productId,o((()=>this.exchangeModal.open()))},prize:this.currentPrize}):""),a("salla-modal",{ref:a=>this.exchangeModal=a,class:"s-loyalty-program-modal",width:"sm"},this.currentPrize?a("salla-reward-exchange",{prize:this.currentPrize,productId:this.currentProductId}):""))))}};m([y((async function(){const{data:a}=await salla.loyalty.getProgram();return l(a)}),{initialData:{points:[],prizes:[],prizes_count:0}})],h.prototype,"program",void 0),m([y((async function(){const{data:a}=await salla.loyalty.getPoints();return d({targets:{value:0},value:a.points??0,round:1,easing:"easeOutQuad",duration:2e3,update:a=>{this.animatedPoints=a.animations[0].currentValue}}),a.points}))],h.prototype,"points",void 0),h.style="@media (max-width: 639px){.s-loyalty-program-modal .s-modal-body{position:relative !important;left:unset !important;bottom:unset !important;max-height:100dvh;overflow-y:auto !important}}.s-loyalty-exchange-card salla-product-card .s-product-card-image,.s-loyalty-exchange-card custom-salla-product-card .s-product-card-image{flex:none;aspect-ratio:1;overflow:hidden}.s-loyalty-exchange-card-btn{padding:0 1.25rem 1.25rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid{display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.75rem}.s-loyalty-program-reward-details-products-grid>*{flex:1 1 100%;min-width:0;touch-action:pan-y}@media (min-width: 640px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 1rem) / 2)}}@media (min-width: 768px){.s-loyalty-program-reward-details-products-grid>*{flex-basis:calc((100% - 2rem) / 3)}}.s-loyalty-program-reward-details-products-grid>*:only-child{max-width:320px;margin-inline:auto}.s-loyalty-program-reward-details-products-grid:has(>*:nth-child(3))>*{flex-grow:0}";export{h as salla_loyalty_program}