@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,299 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DchFLJee.js';
5
- import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-DT-Pfrtc.js';
6
- import { S as SIGift } from './gift-CXRKXFgT.js';
7
- import { S as SITag } from './tag-cgSL_BIo.js';
8
- import { S as SICheck } from './check-BZp0rKEO.js';
9
- import { S as SICancel } from './cancel-8Tsmrwno.js';
10
- import { T as TrackedPromise } from './tracked-promise-CtjtFrfZ.js';
11
-
12
- const sallaLoyaltyProgramCss$4 = "@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}";
13
-
14
- const SallaLoyaltyExchangeProductCard = class {
15
- constructor(hostRef) {
16
- registerInstance(this, hostRef);
17
- this.loyaltyProductExchange = createEvent(this, "loyaltyProductExchange");
18
- }
19
- componentWillLoad() {
20
- this.hasCustomCard = !!customElements.get('custom-salla-product-card');
21
- }
22
- render() {
23
- const product = typeof this.product === 'string' ? JSON.parse(this.product) : this.product;
24
- return (h("div", { key: '1a430e79a1b3099353f4e9905930f083ff889def', class: "s-loyalty-exchange-card" }, this.hasCustomCard
25
- ? h("custom-salla-product-card", { product: product, hideAddBtn: true })
26
- : h("salla-product-card", { "hide-add-btn": true, product: product }), h("div", { key: '8b75d06c112af988c149b374fdd3592cd27cb490', class: "s-loyalty-exchange-card-btn" }, h("salla-button", { key: 'b04dc80d5af75461a5d1f938c45bf156e4592e1e', fill: "outline", width: "wide", onClick: () => this.loyaltyProductExchange.emit({ productId: product.id }) }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
27
- }
28
- };
29
- SallaLoyaltyExchangeProductCard.style = sallaLoyaltyProgramCss$4;
30
-
31
- const sallaLoyaltyProgramCss$3 = "@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}";
32
-
33
- const SallaRewardAction = class {
34
- constructor(hostRef) {
35
- registerInstance(this, hostRef);
36
- this.actionClick = createEvent(this, "actionClick");
37
- this.isClickable = (_prize) => {
38
- return true;
39
- };
40
- this.isShopNow = (prize) => {
41
- if (!(salla.config.get('store.features') || []).includes('loyalty-system-v2')) {
42
- return false;
43
- }
44
- return prize.key?.toLowerCase() === 'free_product';
45
- };
46
- this.handleClick = (e) => {
47
- if (salla.config.isGuest()) {
48
- closeModals(() => salla.event.dispatch('login::open'));
49
- return;
50
- }
51
- this.actionClick.emit(e);
52
- };
53
- }
54
- render() {
55
- if (!this.isClickable(this.prize)) {
56
- return null;
57
- }
58
- return (h("div", { class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("salla-button", { fill: "outline", color: "light", class: "s-loyalty-program-rewards-action-base", onClick: () => closeModals() }, salla.lang.get('common.elements.cancel'))) : (h("button", { onClick: this.handleClick, class: {
59
- 's-loyalty-program-rewards-action-base': true,
60
- 's-loyalty-program-rewards-action-on': true,
61
- } }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
62
- }
63
- };
64
- SallaRewardAction.style = sallaLoyaltyProgramCss$3;
65
-
66
- const sallaLoyaltyProgramCss$2 = "@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}";
67
-
68
- const SallaRewardCard = class {
69
- constructor(hostRef) {
70
- registerInstance(this, hostRef);
71
- this.areaClick = createEvent(this, "areaClick");
72
- this.actionClick = createEvent(this, "actionClick");
73
- }
74
- render() {
75
- return (h(Host, { key: 'b63690e8c960ef4c33cd2510775e80fa06a39b82', class: "s-loyalty-program-reward-host" }, h("div", { key: '1b5b2a02f13b30e70c38323328cf8862f0f4ba8f', class: "s-loyalty-program-reward-container" }, h("div", { key: '0a35ac9e2d87f2d6c228fbb547e1842bd2243512', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: 'aa2e1b5ce4e4fd186df5ad3fc25dc3fa3ccbb0fd', class: "s-loyalty-program-reward-img" }, h("img", { key: 'ecff4f5c86db5742910eaf402768422b93c001c3', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '39216ef7e75a83770ba883e03aa26b39912292f6', class: "s-loyalty-program-reward-content" }, h("div", { key: '047544aeaac2ac45e8782d11e6f08691f10864da', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '9564bdd0494ccb1812d30518384ede3b914edce4', size: "xs" }, h("span", { key: '2a3ecf06e9475b0a2d6bff174b46ee15646312d5', innerHTML: SIGift }), h("span", { key: '776d694e330d57366c084aa321845e964825cfe9', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '05e322f1a272ca223d431905c9566cc57af9e8b4', class: "s-loyalty-program-reward-title" }, h("span", { key: 'b3699e555190bb1c45c14a46c2c16a620ebcd9af' }, this.prize.group_title)), h("div", { key: 'fbdac88e90edf90ee1c6d7c66add35d28141ad36', class: "s-loyalty-program-reward-name" }, h("div", { key: '5f2b92831df7628b390921098cd84849b9f13a4d', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: 'f0f23a84cd12ba830212df2bee319f1e05bc5752', class: "p-4" }, h("slot", { key: '33e3a2e4fe99e3db9300b69b14cba240e1c9b4de', name: "action" }, h("button", { key: '70f128d1ebaba775b9cd5848f043abf9f5f8163f', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
76
- }
77
- };
78
- SallaRewardCard.style = sallaLoyaltyProgramCss$2;
79
-
80
- const sallaLoyaltyProgramCss$1 = "@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}";
81
-
82
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
83
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
84
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
85
- r = Reflect.decorate(decorators, target, key, desc);
86
- else
87
- for (var i = decorators.length - 1; i >= 0; i--)
88
- if (d = decorators[i])
89
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
90
- return c > 3 && r && Object.defineProperty(target, key, r), r;
91
- };
92
- const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
93
- const SallaRewardDetails = class {
94
- constructor(hostRef) {
95
- registerInstance(this, hostRef);
96
- this.actionClick = createEvent(this, "actionClick");
97
- this.productActionClick = createEvent(this, "productActionClick");
98
- this.refreshKey = Date.now();
99
- this.includedProductsData = [];
100
- }
101
- handleProductExchange(e) {
102
- this.productActionClick.emit({ productId: e.detail.productId });
103
- }
104
- handlePrizeChange() {
105
- this.refreshKey = Date.now();
106
- this.fetchIncludedProducts();
107
- }
108
- componentWillLoad() {
109
- if (this.category.status === 'idle') {
110
- this.category();
111
- }
112
- if (this.brand.status === 'idle') {
113
- this.brand();
114
- }
115
- this.fetchIncludedProducts();
116
- }
117
- async fetchIncludedProducts() {
118
- this.includedProductsData = [];
119
- const ids = this.prize?.included_product_ids;
120
- if (!ids?.length)
121
- return;
122
- const requestedPrize = this.prize;
123
- try {
124
- const response = await salla.api.withoutNotifier(() => salla.product.api.fetch({ source: 'selected', source_value: ids }));
125
- if (this.prize === requestedPrize) {
126
- this.includedProductsData = response.data || [];
127
- }
128
- }
129
- catch {
130
- this.includedProductsData = [];
131
- }
132
- }
133
- getTermsAndConditions() {
134
- const minimumAmount = Number((this.prize.order_minimum_amount || '0').split('.')[0]) || 0;
135
- const maximumAmount = Number((this.prize.coupon_maximum_amount || '0').split('.')[0]) || 0;
136
- const termsAndConditions = [];
137
- if (minimumAmount) {
138
- termsAndConditions.push([
139
- salla.lang.get('pages.loyalty_program.order_minimum_amount'),
140
- `${minimumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
141
- ]);
142
- }
143
- if (maximumAmount) {
144
- termsAndConditions.push([
145
- salla.lang.get('pages.loyalty_program.coupon_maximum_amount'),
146
- `${maximumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
147
- ]);
148
- }
149
- return termsAndConditions;
150
- }
151
- findItems(ids) {
152
- if (!ids?.length)
153
- return [];
154
- const brands = this.brand.data;
155
- const categories = this.category.data;
156
- // id_ is the numeric ID from the API (e.g. 740744759); id is a string hash (e.g. "zEVZGx"). included_category_ids/included_brand_ids are number[], so id_ is correct here.
157
- return brands.concat(categories).filter(i => ids.includes(i.id_));
158
- }
159
- getIncludedItems(items, ids) {
160
- if (items?.length) {
161
- return items;
162
- }
163
- if (ids?.length) {
164
- return this.findItems(ids);
165
- }
166
- return [];
167
- }
168
- getProductIds(ids) {
169
- return ids || [];
170
- }
171
- getItemsMarkers(key) {
172
- if (key === 'both') {
173
- return this.getItemsMarkers('included') + this.getItemsMarkers('excluded');
174
- }
175
- return [
176
- this.prize[`${key}_product_ids`]?.length || 0,
177
- this.prize[`${key}_brand_ids`]?.length || 0,
178
- this.prize[`${key}_category_ids`]?.length || 0,
179
- ].map(Boolean).map(Number).join('');
180
- }
181
- getItemsMarkersText() {
182
- // Check if prize type is free_shipping
183
- if (this.prize.key === 'FREE_SHIPPING') {
184
- return salla.lang.get('pages.loyalty_program.redeem_for_free_shipping');
185
- }
186
- switch (this.getItemsMarkers('included')) {
187
- case '001':
188
- return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
189
- case '010':
190
- return salla.lang.get('pages.loyalty_program.redeem_on_specific_brands');
191
- case '100':
192
- return salla.lang.get('pages.loyalty_program.redeem_on_specific_categories');
193
- case '000':
194
- return salla.lang.get('pages.loyalty_program.redeem_on_all_products');
195
- default:
196
- return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
197
- }
198
- }
199
- getCategoriesJsx(items, title) {
200
- return !items.length ? '' : h("div", { class: c('reward-details-categories-wrapper') }, h("div", { class: c('reward-details-categories') }, h("h2", { class: c('reward-details-categories-heading') }, title), h("ul", { class: c('reward-details-categories-list') }, items.map((category) => {
201
- return (h("li", null, h("a", { href: category.urls?.customer || category.url || category.lingual_urls?.[0], class: c('reward-details-categories-item') }, h("span", { innerHTML: SITag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))));
202
- }))));
203
- }
204
- getBrandsJsx(items, title) {
205
- return !items.length ? '' : h("div", { class: c('reward-details-items-brands', 'slider-arrows-edges') }, h("div", null, h("h2", null, title), h("salla-slider", { id: `brands-${items.map(({ id }) => id).join('-')}`, "slider-config": '{"loop":false,"slidesPerView":"auto","spaceBetween":10}' }, h("div", { slot: "items" }, items.map((brand) => (h("a", { href: salla.url.get(brand_path(brand)), class: c('reward-brand-item') }, h("img", { src: brand.logo || salla.url.cdn('images/s-empty.png'), alt: "" }))))))));
206
- }
207
- getProductsJsx(items, title) {
208
- return !items?.length ? '' : h("div", { class: "s-loyalty-program-reward-details-items-products s-loyalty-program-slider-arrows-edges" }, h("h2", null, title), h("salla-products-slider", { source: "selected", sourceValue: JSON.stringify(items), "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":0,"breakpoints":{"768":{"slidesPerView":3,"freeMode":false,"speed":300}}}' }));
209
- }
210
- getIncludedProductsJsx(title) {
211
- const products = this.includedProductsData;
212
- if (!products?.length)
213
- return '';
214
- return (h("div", { class: c('reward-details-items-products') }, h("h2", null, title), h("div", { class: c('reward-details-products-grid') }, products.map(product => h("salla-loyalty-exchange-product-card", { product: product })))));
215
- }
216
- render() {
217
- const termsAndConditions = this.getTermsAndConditions();
218
- return (h("div", { key: '08f402196aa5268a8bbf1dba1e037c45c33ae8a5', class: "s-loyalty-program-reward-modal" }, h("div", { key: '75ae87a6055125371003a6bfd4e3f94c4a462c08', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '4296046ef1409ec92c95e37fbea65506fb37929c', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
219
- : h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
220
- 'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
221
- 'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
222
- } })), this.prize.name)), h("div", { key: 'b6fd9d5a010059e928321acf5b6e904044b20513', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'ed9572e46bb3d0ebd71a7b8eeb363433024cefbd', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '016fa0be4fd911293dc5a9f9f239398eae863c3f', class: "s-loyalty-program-aspect-container" }, h("img", { key: '365a070a815b146dd92e2f6ca163d240c48ea862', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '510102d16996e3e0da9daaf6da2ab219c05e3978', size: "sm", bg: "light" }, h("span", { key: '2179f7c46fadf1b5f0c030439347714a689781a4', innerHTML: SIGift }), h("span", { key: '99a756bc4f7c6e03207a1c0d3364814c036e284b', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'a4e7a863b7b7f9fad0c98a0ed0882bd5db4081c3', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: 'ef8b9e64808bdf59f8bedf74f912ef07a92c3318', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '8777469b48d9c65b33d73d3dc510397f7255641e', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
223
- h("salla-tab-header", { slot: "header", name: "included", style: {
224
- display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
225
- } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICheck }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
226
- h("salla-tab-content", { slot: "content", name: "included" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.categories, this.prize.included_category_ids), salla.lang.get('pages.loyalty_program.included_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.brands, this.prize.included_brand_ids), salla.lang.get('pages.loyalty_program.included_brands')), this.getIncludedProductsJsx(salla.lang.get('pages.loyalty_program.included_products')))),
227
- ], this.getItemsMarkers('excluded') === '000' ? '' : [
228
- h("salla-tab-header", { slot: "header", name: "excluded", style: {
229
- display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
230
- } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
231
- h("salla-tab-content", { slot: "content", name: "excluded" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
232
- ]))), h("salla-reward-action", { key: 'aaad339124dd3e8fcac568540d627d6105712d2f', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
233
- }
234
- static get watchers() { return {
235
- "prize": ["handlePrizeChange"]
236
- }; }
237
- };
238
- __decorate$1([
239
- TrackedPromise(async () => {
240
- return (await salla.product.api.categories()).data;
241
- }, { initialData: [] })
242
- ], SallaRewardDetails.prototype, "category", void 0);
243
- __decorate$1([
244
- TrackedPromise(async () => {
245
- return (await salla.api.request('/brands')).data;
246
- }, { initialData: [] })
247
- ], SallaRewardDetails.prototype, "brand", void 0);
248
- SallaRewardDetails.style = sallaLoyaltyProgramCss$1;
249
-
250
- const sallaLoyaltyProgramCss = "@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}";
251
-
252
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
253
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
254
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
255
- r = Reflect.decorate(decorators, target, key, desc);
256
- else
257
- for (var i = decorators.length - 1; i >= 0; i--)
258
- if (d = decorators[i])
259
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
260
- return c > 3 && r && Object.defineProperty(target, key, r), r;
261
- };
262
- const SallaRewardExchange = class {
263
- constructor(hostRef) {
264
- registerInstance(this, hostRef);
265
- this.productId = null;
266
- }
267
- reset(timeout = 0) {
268
- setTimeout(() => {
269
- closeModals();
270
- }, timeout);
271
- }
272
- getApiErrorMessage(error) {
273
- return error?.response?.data?.error?.message
274
- || error?.response?.data?.message
275
- || (typeof error === 'string' ? error : null)
276
- || salla.lang.get('common.errors.error_occurred');
277
- }
278
- async handleConfirm() {
279
- try {
280
- await this.exchange(this.prize.id, null, this.productId);
281
- this.reset(300);
282
- }
283
- catch (error) {
284
- salla.notify.error(this.getApiErrorMessage(error));
285
- }
286
- }
287
- handleCancel() {
288
- this.reset(0);
289
- }
290
- render() {
291
- return (h(Host, { key: '98f0ce7506f94fc6c9c5dd881791d7298daa0e0b' }, h("div", { key: '72661d140a8dd7b6fe8b68a120ba00f951aeb6e4', class: "s-loyalty-program-exchange-heading" }, h("div", { key: 'dfad67d7df6e3fde30c463791eb45ae5b356fc96', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '04d0832e50209a87605cf016d0a462640d6379ed', innerHTML: SIGift })), h("h2", { key: 'bf7282fbb2cfb9675c0c219d65c090a95e0177f3' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '551233696f0b1a5b8d233bcbd618e8c6f65e9bf6' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '780e095949141888f02d165c44a648d6569ee56a' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: 'fac6c243a373833091bbd276d7f416c04f89abb7' }, "(", this.prize.name, ")"))), h("div", { key: 'f806352839b2914570ee4331d3412224533cc1ca', class: "s-loyalty-program-exchange-btns" }, h("salla-button", { key: '12a4c1d19a6f1ad7ac5acf09a4861b708f25fa42', width: "wide", loading: this.exchange.status === 'pending', onClick: () => this.handleConfirm() }, salla.lang.get('common.elements.confirm')), h("salla-button", { key: '5caa8e6cec4b4fc8f4968742d7de26282cb26c35', width: "wide", fill: "outline", color: "danger", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
292
- }
293
- };
294
- __decorate([
295
- TrackedPromise(async (...args) => await salla.loyalty.exchange(...args))
296
- ], SallaRewardExchange.prototype, "exchange", void 0);
297
- SallaRewardExchange.style = sallaLoyaltyProgramCss;
298
-
299
- export { SallaLoyaltyExchangeProductCard as salla_loyalty_exchange_product_card, SallaRewardAction as salla_reward_action, SallaRewardCard as salla_reward_card, SallaRewardDetails as salla_reward_details, SallaRewardExchange as salla_reward_exchange };
@@ -1,252 +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 { c as closeModals, f as formattedPointsJsx, i as isUnitOrder } from './functions-DT-Pfrtc.js';
6
- import { S as SIGift } from './gift-CXRKXFgT.js';
7
- import { S as SICart2 } from './cart2-D1s2kXqL.js';
8
- import { S as SIUserAdd } from './user-add-QpH8MU22.js';
9
- import { S as SITag } from './tag-cgSL_BIo.js';
10
- import { e as email } from './mail-DzAIgzdz.js';
11
- import { S as SICalendar } from './calendar-BkmanTR_.js';
12
- import { S as SIiPhoneX } from './iphone-x-CciN5Q_x.js';
13
- import { L as Location } from './location-BO5AoBAP.js';
14
- import { S as SIShipping } from './shipping-CZRcMGA9.js';
15
-
16
- const sallaLoyaltyProgramCss$1 = "@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}";
17
-
18
- const SallaLoyaltyHero = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- }
22
- render() {
23
- return (h(Host, { key: '19347b04f3e2fc0cb836d9ecd6ebc398826aca95' }, h("section", { key: 'd992b7e5c6f8ccd14690b63f12de75791751d3b6', class: "s-loyalty-program-hero-container" }, h("div", { key: 'cf825f4b816979494f33c08383d10ad3b702db81', class: "s-loyalty-program-hero-background", style: {
24
- backgroundImage: `url(${this.image})`,
25
- } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '5343c2d5b4924c75594143390624fb68c2f4e94f', class: {
26
- 's-loyalty-program-hero-content': true,
27
- 's-loyalty-program-hero-white': !!this.image,
28
- 's-loyalty-program-hero-gray': !this.image,
29
- } }, h("div", { key: 'd0e05e9d51c05583ac8a12fa1ad53b328c3eeca7' }, h("h1", { key: '05a1b89d759a8391af6c46b4e54df00d2238091f', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: 'fc0d510acceccf3995c91b0d4dd920ea7d111e72', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '41cb521612af4f4a0b3d6fedbcc9bced4f8014f6', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '498075813fc055f742211520ab75961892ef8bc1', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: '44c09c20dd161053f77773ee1ca550df2acb3ad6', name: "action" }))), h("div", { key: '9e0b48babcdb5c36bdadbdfeb8d03008069c2cc6', class: "s-loyalty-program-hero-footer" }, h("div", { key: '82659f4658331af320986e78a54222dd4c199281', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '4565ba9bd31891fc806418ee4440117f2fdb7c56', name: "crosspoint" }))))));
30
- }
31
- };
32
- SallaLoyaltyHero.style = sallaLoyaltyProgramCss$1;
33
-
34
- var SIStore = `<!-- Generated by IcoMoon.io -->
35
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
36
- <title>store</title>
37
- <path d="M27.25 16c-1.539-0.010-2.899-0.765-3.741-1.921l-0.009-0.013c-0.844 1.178-2.209 1.936-3.75 1.936s-2.906-0.758-3.741-1.922l-0.009-0.014c-0.844 1.178-2.209 1.936-3.75 1.936s-2.906-0.758-3.741-1.922l-0.009-0.014c-0.851 1.169-2.211 1.924-3.748 1.934h-0.002c-2.64-0.075-4.751-2.233-4.751-4.884 0-0.041 0.001-0.081 0.002-0.122l-0 0.006c0-0.086 0.011-0.169 0.032-0.249l-0.002 0.007 2-8c0.112-0.439 0.504-0.758 0.97-0.758h26c0.466 0 0.858 0.319 0.968 0.751l0.002 0.007 2 8c0.019 0.073 0.030 0.156 0.030 0.242v0c0.001 0.034 0.001 0.075 0.001 0.116 0 2.651-2.111 4.809-4.744 4.884l-0.007 0zM23.5 10c0.552 0 1 0.448 1 1v0c-0.006 0.069-0.010 0.149-0.010 0.23 0 1.522 1.234 2.756 2.756 2.756s2.756-1.234 2.756-2.756c0-0.040-0.001-0.080-0.003-0.12l0 0.006-1.782-7.116h-24.436l-1.782 7.116c0 0.003-0 0.007-0 0.011 0 1.544 1.217 2.804 2.744 2.873l0.006 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1s1 0.448 1 1v0c-0.002 0.035-0.002 0.076-0.002 0.117 0 1.547 1.217 2.81 2.746 2.883l0.007 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1s1 0.448 1 1v0c-0.002 0.035-0.002 0.076-0.002 0.117 0 1.547 1.217 2.81 2.746 2.883l0.007 0c1.535-0.073 2.752-1.336 2.752-2.883 0-0.041-0.001-0.082-0.003-0.123l0 0.006c0-0.552 0.448-1 1-1v0zM13 30h-10c-0.552 0-1-0.448-1-1v0-14.46c0-0.552 0.448-1 1-1s1 0.448 1 1v0 13.46h9c0.552 0 1 0.448 1 1s-0.448 1-1 1v0zM29 30h-10c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h9v-13.46c0-0.552 0.448-1 1-1s1 0.448 1 1v0 14.46c0 0.552-0.448 1-1 1v0zM19 30c-0.552 0-1-0.448-1-1v0-7h-4v7c0 0.552-0.448 1-1 1s-1-0.448-1-1v0-8c0-0.552 0.448-1 1-1v0h6c0.552 0 1 0.448 1 1v0 8c0 0.552-0.448 1-1 1v0z"></path>
38
- </svg>
39
- `;
40
-
41
- var SIChatConversationAlt = `<!-- Generated by IcoMoon.io -->
42
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
43
- <title>chat-conversation-alt</title>
44
- <path d="M17.333 14.667h-8c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h8c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM22.667 8h-13.333c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h13.333c0.737 0 1.333-0.597 1.333-1.333s-0.596-1.333-1.333-1.333zM28 0h-24c-2.205 0-4 1.795-4 4v17.333c0 2.205 1.795 4 4 4h6.027l4.932 6.167c0.253 0.316 0.636 0.5 1.041 0.5s0.788-0.184 1.041-0.5l4.932-6.167h6.027c2.205 0 4-1.795 4-4v-17.333c0-2.205-1.795-4-4-4zM29.333 21.333c0 0.735-0.597 1.333-1.333 1.333h-6.667c-0.405 0-0.788 0.184-1.041 0.5l-4.292 5.365-4.292-5.365c-0.253-0.316-0.636-0.5-1.041-0.5h-6.667c-0.736 0-1.333-0.599-1.333-1.333v-17.333c0-0.735 0.597-1.333 1.333-1.333h24c0.736 0 1.333 0.599 1.333 1.333z"></path>
45
- </svg>
46
- `;
47
-
48
- var SILink1 = `<!-- Generated by IcoMoon.io -->
49
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
50
- <title>link1</title>
51
- <path d="M16.541 19.873c-0.489 0.205-0.825 0.68-0.825 1.233 0 0.184 0.037 0.359 0.105 0.519l-0.003-0.009c0.064 0.151 0.101 0.326 0.101 0.51 0 0.368-0.149 0.702-0.391 0.943v0l-3.771 3.772c-0.483 0.482-1.149 0.781-1.885 0.781s-1.403-0.298-1.885-0.781l-2.829-2.828c-0.483-0.483-0.781-1.149-0.781-1.886s0.299-1.403 0.781-1.886l3.776-3.771c0.244-0.24 0.578-0.388 0.948-0.388 0.183 0 0.357 0.036 0.516 0.102l-0.009-0.003c0.15 0.064 0.325 0.101 0.509 0.101 0.736 0 1.334-0.597 1.334-1.334 0-0.553-0.337-1.027-0.816-1.229l-0.009-0.003c-0.449-0.187-0.97-0.295-1.517-0.295-1.107 0-2.11 0.445-2.841 1.165l0-0-3.776 3.771c-0.963 0.966-1.559 2.299-1.559 3.771s0.596 2.805 1.559 3.771l2.829 2.828c0.965 0.965 2.298 1.562 3.771 1.562s2.806-0.597 3.771-1.562l3.772-3.771c0.723-0.725 1.171-1.726 1.171-2.832 0-0.551-0.111-1.076-0.312-1.555l0.010 0.026c-0.206-0.488-0.68-0.824-1.232-0.824-0.184 0-0.359 0.037-0.518 0.104l0.009-0.003z"></path>
52
- <path d="M10.343 21.655c0.243 0.238 0.576 0.384 0.943 0.384s0.7-0.147 0.943-0.385l-0 0 10.372-10.371c0.232-0.24 0.374-0.566 0.374-0.926 0-0.736-0.597-1.333-1.333-1.333-0.36 0-0.687 0.143-0.927 0.375l-10.372 10.37c-0.241 0.241-0.39 0.575-0.39 0.943s0.149 0.701 0.39 0.943v0z"></path>
53
- <path d="M28.728 6.099l-2.828-2.828c-0.966-0.963-2.299-1.559-3.771-1.559s-2.805 0.596-3.771 1.559l-3.772 3.771c-0.723 0.725-1.171 1.726-1.171 2.831 0 0.551 0.111 1.076 0.313 1.554l-0.010-0.026c0.206 0.488 0.68 0.824 1.233 0.824 0.737 0 1.334-0.597 1.334-1.334 0-0.184-0.037-0.359-0.104-0.518l0.003 0.009c-0.063-0.15-0.1-0.324-0.1-0.506 0-0.368 0.149-0.7 0.389-0.942l3.771-3.771c0.483-0.483 1.149-0.781 1.886-0.781s1.403 0.299 1.886 0.781l2.828 2.828c0.483 0.483 0.781 1.149 0.781 1.886s-0.299 1.403-0.781 1.886v0l-3.776 3.764c-0.244 0.24-0.579 0.388-0.948 0.388-0.183 0-0.357-0.036-0.515-0.102l0.009 0.003c-0.151-0.064-0.326-0.101-0.51-0.101-0.737 0-1.334 0.597-1.334 1.334 0 0.553 0.336 1.027 0.815 1.229l0.009 0.003c0.45 0.189 0.974 0.298 1.523 0.298 1.106 0 2.109-0.445 2.838-1.167l3.77-3.77c0.965-0.966 1.562-2.301 1.562-3.775 0-1.471-0.595-2.803-1.557-3.769l0 0z"></path>
54
- </svg>
55
- `;
56
-
57
- var SIUser = `<!-- Generated by IcoMoon.io -->
58
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
59
- <title>user</title>
60
- <path d="M16 16c4.412 0 8-3.588 8-8s-3.588-8-8-8-8 3.588-8 8 3.588 8 8 8zM16 2.667c2.941 0 5.333 2.392 5.333 5.333s-2.392 5.333-5.333 5.333-5.333-2.392-5.333-5.333 2.392-5.333 5.333-5.333zM16 18.667c-7.476 0-13.333 3.66-13.333 8.333v3.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-3.667c0-3.019 4.984-5.667 10.667-5.667s10.667 2.648 10.667 5.667v3.667c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-3.667c0-4.673-5.857-8.333-13.333-8.333z"></path>
61
- </svg>
62
- `;
63
-
64
- var SIMapLocation = `<!-- Generated by IcoMoon.io -->
65
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
66
- <title>map-location</title>
67
- <path d="M24.667 8.013v-0.013c0-0.736-0.597-1.327-1.333-1.327s-1.333 0.604-1.333 1.34 0.597 1.333 1.333 1.333 1.333-0.597 1.333-1.333zM30.667 18.667c-0.736 0-1.333 0.596-1.333 1.333v8.701l-7.879-3.135c-0.308-0.127-0.651-0.127-0.961-0.011l-9.817 3.684-8.009-3.121v-20.351l7.633 2.181c0.708 0.205 1.447-0.209 1.648-0.916 0.203-0.708-0.207-1.447-0.915-1.648l-9.333-2.667c-0.403-0.115-0.836-0.035-1.169 0.217-0.335 0.252-0.531 0.645-0.531 1.064v23.029c0 0.549 0.337 1.043 0.849 1.243l9.333 3.637c0.305 0.12 0.645 0.12 0.952 0.007l9.812-3.68 9.227 3.669c0.16 0.064 0.327 0.095 0.493 0.095 0.263 0 0.525-0.079 0.749-0.231 0.365-0.247 0.584-0.661 0.584-1.103v-10.667c0-0.737-0.597-1.333-1.333-1.333zM23.333 22.667c0.395 0 0.769-0.175 1.023-0.476 0.783-0.935 7.644-9.241 7.644-13.357 0-4.389-2.976-8.833-8.667-8.833-5.689 0-8.667 4.444-8.667 8.833 0 4.116 6.863 12.423 7.645 13.357 0.253 0.301 0.628 0.476 1.021 0.476zM23.333 2.667c4.145 0 6 3.097 6 6.167 0 2.095-3.347 7.027-6 10.385-2.653-3.36-6-8.291-6-10.385 0-3.069 1.856-6.167 6-6.167z"></path>
68
- </svg>
69
- `;
70
-
71
- const sallaLoyaltyProgramCss = "@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}";
72
-
73
- /**
74
- * Dashboard sicons:
75
- * share - sicon-share-alt
76
- * order from store - sicon-shopping-basket
77
- * rate order - sicon-chat-conversation-alt
78
- * order from app - sicon-iphone-x
79
- * first order - sicon-add-to-cart
80
- * pos - sicon-store
81
- * fill profile - sicon-user-add
82
- */
83
- const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
84
- const sicons = {
85
- 'FIRST_ORDER_STORE_FOR_UNIT': h("span", { innerHTML: SICart2 }),
86
- 'FIRST_ORDER_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
87
- 'FIRST_ORDER_STORE_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
88
- 'FIRST_ORDER_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
89
- 'ORDER_FROM_APP_FOR_UNIT': h("span", { innerHTML: SICart2 }),
90
- 'ORDER_FROM_APP_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
91
- 'ORDER_FROM_APP_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
92
- 'ORDER_FROM_APP_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
93
- 'CONDITION_RATING_SHIPPING_STORE': h("span", { innerHTML: SIStore }),
94
- 'CONDITION_RATING_PRODUCT': h("span", { innerHTML: SIChatConversationAlt }),
95
- 'CONDITION_RATING_SHIPPING_COMPANY': h("span", { innerHTML: SIShipping }),
96
- 'CONDITION_COMPLETE_PERSONAL_INFORMATION_BIRTHDAY': h("span", { innerHTML: SICalendar }),
97
- 'CONDITION_COMPLETE_PERSONAL_INFORMATION_EMAIL': h("span", { innerHTML: email }),
98
- 'CONDITION_COMPLETE_PERSONAL_INFORMATION_MOBILE': h("span", { innerHTML: SIiPhoneX }),
99
- 'CONDITION_COMPLETE_PERSONAL_INFORMATION_GENDER': h("span", { innerHTML: SIUser }),
100
- 'CONDITION_BUY_FROM_STORE_FOR_UNIT': h("span", { innerHTML: SICart2 }),
101
- 'CONDITION_BUY_FROM_STORE_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
102
- 'CONDITION_BUY_FROM_STORE_FIX_AMOUNT': h("span", { innerHTML: SICart2 }),
103
- 'CONDITION_BUY_FROM_STORE_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SICart2 }),
104
- 'order_from_pos_1': h("span", { innerHTML: SIiPhoneX }),
105
- 'order_from_pos_2': h("span", { innerHTML: Location }),
106
- 'buy_from_pos_1': h("span", { innerHTML: SIMapLocation }),
107
- 'buy_from_pos_2': h("span", { innerHTML: SIiPhoneX }),
108
- 'CONDITION_BUY_FROM_POS_FOR_UNIT': h("span", { innerHTML: SIiPhoneX }),
109
- 'CONDITION_BUY_FROM_POS_FOR_UNIT_BY_CATEGORIES': h("span", { innerHTML: SIiPhoneX }),
110
- 'CONDITION_BUY_FROM_POS_FIX_AMOUNT': h("span", { innerHTML: SIiPhoneX }),
111
- 'CONDITION_BUY_FROM_POS_FIX_AMOUNT_BY_CATEGORIES': h("span", { innerHTML: SIiPhoneX }),
112
- 'affiliate_link_1': h("span", { innerHTML: SILink1 }),
113
- 'affiliate_link_2': h("span", { innerHTML: SIUserAdd }),
114
- 'affiliate_link_3': h("span", { innerHTML: SICart2 }),
115
- 'CONDITION_AFFILIATE_LINK': h("span", { innerHTML: SILink1 }),
116
- };
117
- const SallaLoyaltyPoint = class {
118
- constructor(hostRef) {
119
- registerInstance(this, hostRef);
120
- }
121
- async handleShareAction(e, point, successText) {
122
- const isDesktop = window.matchMedia('(min-width: 1024px)').matches;
123
- // only on mobile/tablet devices
124
- if ('share' in navigator && !isDesktop) {
125
- try {
126
- await navigator.share({
127
- title: document.title,
128
- url: point.url,
129
- });
130
- return;
131
- }
132
- catch (error) { }
133
- }
134
- const el = e.target;
135
- const oldTextContent = el.textContent;
136
- const temporaryTextContent = successText;
137
- // fallback to clipboard
138
- if ('clipboard' in navigator) {
139
- try {
140
- await navigator.clipboard.writeText(point.url);
141
- el.textContent = temporaryTextContent;
142
- setTimeout(() => {
143
- el.textContent = oldTextContent;
144
- }, 5000);
145
- return;
146
- }
147
- catch (error) { }
148
- }
149
- // fallback to textarea
150
- const textarea = document.createElement('textarea');
151
- textarea.value = point.url;
152
- textarea.style.opacity = '0';
153
- this.host.appendChild(textarea);
154
- textarea.focus();
155
- textarea.select();
156
- try {
157
- const success = document.execCommand('copy');
158
- if (!success) {
159
- throw new Error('Failed to copy URL to clipboard');
160
- }
161
- el.textContent = temporaryTextContent;
162
- setTimeout(() => {
163
- el.textContent = oldTextContent;
164
- }, 5000);
165
- }
166
- catch (error) { }
167
- this.host.removeChild(textarea);
168
- }
169
- handleAction(e, point) {
170
- e.stopPropagation();
171
- if (point.is_completed) {
172
- e.preventDefault();
173
- return;
174
- }
175
- switch (point.type) {
176
- case 'profile':
177
- case 'rating': {
178
- if (!salla.config.isUser()) {
179
- e.preventDefault();
180
- closeModals(() => salla.event.dispatch('login::open'));
181
- return;
182
- }
183
- return;
184
- }
185
- case 'share': {
186
- if (!salla.config.isUser()) {
187
- e.preventDefault();
188
- closeModals(() => salla.event.dispatch('login::open'));
189
- return;
190
- }
191
- e.preventDefault();
192
- this.handleShareAction(e, point, salla.lang.get('pages.loyalty_program.copied'));
193
- return;
194
- }
195
- }
196
- }
197
- getSubHeading(point) {
198
- switch (point.type) {
199
- case 'share':
200
- return (h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_start')), h("p", null, salla.lang.get('pages.loyalty_program.three_simple_steps'))));
201
- case 'pos':
202
- return (h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_start')), h("p", null, salla.lang.get('pages.loyalty_program.two_simple_steps'))));
203
- default:
204
- return '';
205
- }
206
- }
207
- getDetails(point) {
208
- if (point.conditions.filter(c => c.key.endsWith('_BY_CATEGORIES')).length > 0) {
209
- return (h("div", null, h("div", { class: "s-loyalty-program-point-subheading" }, h("h2", null, salla.lang.get('pages.loyalty_program.how_to_use')), h("p", null, salla.lang.get('pages.loyalty_program.how_to_use_steps'))), h("div", { class: "s-loyalty-program-points-modal-details" }, point.conditions.map((condition) => h("div", { class: "s-loyalty-program-points-chains-wrapper mt-5 mb-5" }, h("div", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key])), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points, isUnitOrder(point))), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name), h("div", null, this.getCategoriesJsx(condition.value)))))))));
210
- }
211
- return (h("div", { class: "s-loyalty-program-points-modal-details" }, h("div", { class: "s-loyalty-program-points-chains-wrapper mt-5 mb-5" }, h("ul", { class: "s-loyalty-program-points-chain-list" }, this.point.conditions.map((condition) => h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key]), h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points, isUnitOrder(point), condition.value != null)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))))))));
212
- }
213
- getCategoriesJsx(categories) {
214
- return !categories.length ? '' :
215
- h("ul", { class: c('reward-details-categories-list') }, categories.map((category) => (h("li", null, h("a", { href: category.url, class: c('reward-details-categories-item') }, h("span", { innerHTML: SITag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))))));
216
- }
217
- getTrailingContent(point) {
218
- switch (point.type) {
219
- case 'first_order':
220
- case 'profile':
221
- return h("p", { class: "s-loyalty-program-points-completed-note" }, salla.lang.get('pages.loyalty_program.one_time_points'));
222
- default:
223
- return point.is_completed ? h("p", { class: "s-loyalty-program-points-completed-note" }, salla.lang.get('pages.loyalty_program.one_time_points')) : '';
224
- }
225
- }
226
- render() {
227
- return (h("div", { key: '70b7b8ad88f89903726e70b795c2eca98366f601' }, h("div", { key: '32a7d28c05a72d1e2901775ff2148553d70b9c87', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'bc8e79fdf21fb641766b3463e792005decf58fd9', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '75e18d5d494d5b97ee12827230641103e934709c', class: this.point.icon })), h("div", { key: '54e40ceeb2cca3248aaa716b85c9ce8d4a41f8ce', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: 'c6d9718b0a2813cba6f59f2ad019f168ec1cc376', size: "xs", bg: "transparent" }, h("span", { key: '33ac630c37139af3dbae295c56c4a5c7aa74d309', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '3d66b854b326090357f2e8320d8a8ab55cbad146', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'bf1b37473fa7f04ca76b66be840e918c74ae44ed', size: "sm", bg: "transparent" }, h("span", { key: '47f6c81b0e4805606bba918f23a2b94fe535e18e', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: '8cfacb01351d035968e5886bcc18086ef6c52ec5', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
228
- h("a", { class: {
229
- 's-loyalty-program-points-action': true,
230
- 's-loyalty-program-points-action-completed': this.point.is_completed,
231
- 's-loyalty-program-points-action-incomplete': !this.point.is_completed,
232
- } }, salla.lang.get('pages.loyalty_program.completed'))
233
- : h("a", { href: this.point.url, onClick: e => this.handleAction(e, this.point), class: {
234
- 's-loyalty-program-points-action': true,
235
- 's-loyalty-program-points-action-completed': this.point.is_completed,
236
- 's-loyalty-program-points-action-incomplete': !this.point.is_completed,
237
- } }, this.point.description)), h("salla-modal", { key: 'bf3a0db144b8a71c7de03bffa871c83432645cca', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: '9e1c30640a2b21d83648a9829cb3d77694d40f43', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'd27cf7911ca8e895d04b82dc786be5d70549b2e9', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '3b32920aee9989499c97e284a8b2689519a531c9', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '65f13ad9b7d9de8f5e5057f4b168e4276ec752de', class: "s-loyalty-program-points-modal-main" }, h("div", { key: 'b52d6b39659ad570321ed464cbd28679572e349f', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '18fcd876ee08265964fabd469ea2c0f62ee6e87b', class: this.point.icon })), h("salla-badge", { key: 'ce5e68c6e7b93b4b972b912db7a8027a0d7bb719', size: "sm", bg: "light" }, h("span", { key: '6325ab966bfc6abb67f08b6f727b41704328ae5a', innerHTML: SIGift }), h("span", { key: '3278b4faf5a0c51ca2a4d55f544b756827f8592f', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
238
- h("div", { key: '37a98c643851f1c772584c738c98902e0e960a52', class: "s-loyalty-program-points-modal-details" }, h("div", { key: 'e558373c2726934c68bd1f50a427984756afd0d1', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '018fb529e90d9adc1fd186e06120b175975e0ae3', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
239
- const stepsArray = Object.values(this.point.steps);
240
- const isLastItem = idx === stepsArray.length - 1;
241
- return (h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[step.key]), !isLastItem && h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", null, salla.lang.get(`pages.loyalty_program.step_${idx + 1}`))), h("p", { class: "s-loyalty-program-points-chain-description" }, step.title || step.name))));
242
- })))), this.getDetails(this.point), h("div", { key: 'dea38fc445b304630d0b4baa122a5a95f35f0d2c', class: "s-loyalty-program-points-modal-details" }, this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: 'a8fbe3f878510dd27ccbe91c0d0253ed17f77fee', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '74e883a658f22fd3f26291efeba30ccc59f52baa', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
243
- 's-loyalty-program-points-action': true,
244
- 's-loyalty-program-points-action-completed': this.point.is_completed,
245
- 's-loyalty-program-points-action-incomplete': !this.point.is_completed,
246
- } }, this.point.is_completed ? salla.lang.get('pages.loyalty_program.completed') : this.point.description)))));
247
- }
248
- get host() { return getElement(this); }
249
- };
250
- SallaLoyaltyPoint.style = sallaLoyaltyProgramCss;
251
-
252
- export { SallaLoyaltyHero as salla_loyalty_hero, SallaLoyaltyPoint as salla_loyalty_point };