@salla.sa/twilight-components 2.14.492 → 2.14.494

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 (367) hide show
  1. package/dist/cjs/{filepond-CMzI_Zn9.js → filepond-CYww4tEC.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-ChvDhRiZ.js → filepond-plugin-file-poster-DPW9mW_l.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BM0ckfFB.js → filepond-plugin-file-validate-size-CK2KIHil.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CgTEjruH.js → filepond-plugin-file-validate-type-CPvzHnlO.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BEAVKR6v.js → filepond-plugin-image-edit-DfYj0utx.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CSPPm2wZ.js → filepond-plugin-image-exif-orientation-BPH4xTYe.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DfOg_WnI.js → filepond-plugin-image-preview-BbB7wI4M.js} +1 -1
  8. package/dist/cjs/{functions-NX0FxE-j.js → functions-C3W0O3Qh.js} +1 -1
  9. package/dist/cjs/{index-BLRU4abB.js → index-BQKhP5JS.js} +14 -14
  10. package/dist/cjs/{index-A4KCMRpm.js → index-CQRzEmek.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +23 -11
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/{salla-count-down.cjs.entry.js → salla-count-down_2.cjs.entry.js} +204 -1
  32. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +3 -3
  46. package/dist/cjs/{salla-reward-action_4.cjs.entry.js → salla-loyalty-exchange-product-card_5.cjs.entry.js} +63 -21
  47. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +11 -11
  48. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +6 -5
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-program.cjs.entry.js +6 -5
  53. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +5 -5
  54. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  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 +1 -1
  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 +1 -1
  75. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  82. package/dist/cjs/{salla-order-options-modal_3.cjs.entry.js → salla-product-card_2.cjs.entry.js} +1 -204
  83. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/{tracked-promise-g2hwsJdv.js → tracked-promise-DYGNjn0V.js} +1 -1
  106. package/dist/cjs/twilight.cjs.js +2 -2
  107. package/dist/cjs/{vanilla-picker-ETt83j-1.js → vanilla-picker-CVraU_Ic.js} +1 -1
  108. package/dist/collection/collection-manifest.json +1 -0
  109. package/dist/collection/components/salla-loyalty-program/salla-loyalty-exchange-product-card.js +72 -0
  110. package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
  111. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +4 -2
  112. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -4
  113. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.css +48 -0
  114. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +3 -1
  115. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
  116. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +1 -4
  117. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
  118. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +58 -5
  119. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +1 -5
  120. package/dist/collection/components/salla-product-options/salla-product-options.js +22 -10
  121. package/dist/components/index.js +2 -2
  122. package/dist/components/salla-loyalty-banner.js +8 -2
  123. package/dist/components/salla-loyalty-exchange-product-card.d.ts +11 -0
  124. package/dist/components/salla-loyalty-exchange-product-card.js +9 -0
  125. package/dist/components/salla-loyalty-exchange-product-card2.js +151 -0
  126. package/dist/components/salla-loyalty-hero2.js +4 -4
  127. package/dist/components/salla-loyalty-panel.js +33 -25
  128. package/dist/components/salla-loyalty-point2.js +5 -5
  129. package/dist/components/salla-loyalty-program.js +30 -22
  130. package/dist/components/salla-loyalty-reward.js +3 -3
  131. package/dist/components/salla-product-options2.js +22 -10
  132. package/dist/components/salla-reward-action2.js +9 -6
  133. package/dist/components/salla-reward-card2.js +2 -2
  134. package/dist/components/salla-reward-details2.js +63 -27
  135. package/dist/components/salla-reward-exchange2.js +5 -9
  136. package/dist/esm/{filepond-DpAz9cLe.js → filepond-V-9YwoVf.js} +1 -1
  137. package/dist/esm/{filepond-plugin-file-poster-CG1OGxGU.js → filepond-plugin-file-poster-BBE8fAHq.js} +1 -1
  138. package/dist/esm/{filepond-plugin-file-validate-size-D19g-XYh.js → filepond-plugin-file-validate-size-CR9iK259.js} +1 -1
  139. package/dist/esm/{filepond-plugin-file-validate-type-CXHLmRma.js → filepond-plugin-file-validate-type-B4eStrHv.js} +1 -1
  140. package/dist/esm/{filepond-plugin-image-edit-Ba-AftT1.js → filepond-plugin-image-edit-B84jjo8b.js} +1 -1
  141. package/dist/esm/{filepond-plugin-image-exif-orientation-BRkxatOj.js → filepond-plugin-image-exif-orientation-BAaD5wJD.js} +1 -1
  142. package/dist/esm/{filepond-plugin-image-preview-BXud5dzw.js → filepond-plugin-image-preview-Bn4GgIpr.js} +1 -1
  143. package/dist/esm/{functions-cqVnlaVs.js → functions-Btrtoght.js} +1 -1
  144. package/dist/esm/{index-BpMToHtv.js → index-3omad4sF.js} +14 -14
  145. package/dist/esm/{index-CNDZOGrc.js → index-Co4ZrgLC.js} +1 -1
  146. package/dist/esm/loader.js +3 -3
  147. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  148. package/dist/esm/salla-accordion_6.entry.js +1 -1
  149. package/dist/esm/salla-add-product-button_5.entry.js +23 -11
  150. package/dist/esm/salla-advertisement.entry.js +1 -1
  151. package/dist/esm/salla-alert_2.entry.js +1 -1
  152. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  153. package/dist/esm/salla-apps-icons.entry.js +1 -1
  154. package/dist/esm/salla-badge.entry.js +1 -1
  155. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  156. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  157. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  158. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  159. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  160. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  161. package/dist/esm/salla-comment-factors.entry.js +1 -1
  162. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  163. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  164. package/dist/esm/salla-contacts.entry.js +1 -1
  165. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  166. package/dist/esm/{salla-count-down.entry.js → salla-count-down_2.entry.js} +204 -2
  167. package/dist/esm/salla-custom-fields.entry.js +1 -1
  168. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  169. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  170. package/dist/esm/salla-filters-widget.entry.js +1 -1
  171. package/dist/esm/salla-filters.entry.js +1 -1
  172. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  173. package/dist/esm/salla-gifting.entry.js +1 -1
  174. package/dist/esm/salla-hook.entry.js +1 -1
  175. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  176. package/dist/esm/salla-installment.entry.js +1 -1
  177. package/dist/esm/salla-list-tile.entry.js +1 -1
  178. package/dist/esm/salla-localization-modal.entry.js +1 -1
  179. package/dist/esm/salla-login-modal.entry.js +1 -1
  180. package/dist/esm/salla-loyalty-banner.entry.js +3 -3
  181. package/dist/esm/{salla-reward-action_4.entry.js → salla-loyalty-exchange-product-card_5.entry.js} +63 -22
  182. package/dist/esm/salla-loyalty-hero_2.entry.js +11 -11
  183. package/dist/esm/salla-loyalty-panel.entry.js +6 -5
  184. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  185. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  186. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  187. package/dist/esm/salla-loyalty-program.entry.js +6 -5
  188. package/dist/esm/salla-loyalty-reward.entry.js +5 -5
  189. package/dist/esm/salla-loyalty.entry.js +1 -1
  190. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  191. package/dist/esm/salla-map_2.entry.js +1 -1
  192. package/dist/esm/salla-menu.entry.js +1 -1
  193. package/dist/esm/salla-metadata.entry.js +1 -1
  194. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  195. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  196. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  197. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  198. package/dist/esm/salla-notification-item.entry.js +1 -1
  199. package/dist/esm/salla-notifications.entry.js +1 -1
  200. package/dist/esm/salla-offer-modal.entry.js +1 -1
  201. package/dist/esm/salla-offer.entry.js +1 -1
  202. package/dist/esm/salla-order-branch.entry.js +1 -1
  203. package/dist/esm/salla-order-cancel.entry.js +1 -1
  204. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  205. package/dist/esm/salla-order-details-options.entry.js +1 -1
  206. package/dist/esm/salla-order-details.entry.js +1 -1
  207. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  208. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  209. package/dist/esm/salla-order-edit.entry.js +1 -1
  210. package/dist/esm/salla-order-summary.entry.js +1 -1
  211. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  212. package/dist/esm/salla-orders.entry.js +1 -1
  213. package/dist/esm/salla-payments.entry.js +1 -1
  214. package/dist/esm/salla-placeholder.entry.js +1 -1
  215. package/dist/esm/salla-price-range.entry.js +1 -1
  216. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  217. package/dist/esm/{salla-order-options-modal_3.entry.js → salla-product-card_2.entry.js} +2 -204
  218. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  219. package/dist/esm/salla-products-list.entry.js +1 -1
  220. package/dist/esm/salla-quick-order.entry.js +1 -1
  221. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  222. package/dist/esm/salla-rating-modal.entry.js +1 -1
  223. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  224. package/dist/esm/salla-scopes.entry.js +1 -1
  225. package/dist/esm/salla-search.entry.js +1 -1
  226. package/dist/esm/salla-skeleton.entry.js +1 -1
  227. package/dist/esm/salla-slider.entry.js +1 -1
  228. package/dist/esm/salla-social-share.entry.js +1 -1
  229. package/dist/esm/salla-social.entry.js +1 -1
  230. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  231. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  232. package/dist/esm/salla-tooltip.entry.js +1 -1
  233. package/dist/esm/salla-trust-badges.entry.js +1 -1
  234. package/dist/esm/salla-user-menu.entry.js +1 -1
  235. package/dist/esm/salla-user-profile.entry.js +1 -1
  236. package/dist/esm/salla-user-settings.entry.js +1 -1
  237. package/dist/esm/salla-verify.entry.js +1 -1
  238. package/dist/esm/salla-wallet.entry.js +1 -1
  239. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  240. package/dist/esm/{tracked-promise-DOcrdjBg.js → tracked-promise-BPB6hr9g.js} +1 -1
  241. package/dist/esm/twilight.js +3 -3
  242. package/dist/esm/{vanilla-picker-BkRDjm_J.js → vanilla-picker-CN8ge6Yh.js} +1 -1
  243. package/dist/twilight/p-03d231a1.entry.js +4 -0
  244. package/dist/twilight/p-07b25f79.entry.js +4 -0
  245. package/dist/twilight/{p-2720c2b7.entry.js → p-07cd3153.entry.js} +1 -1
  246. package/dist/twilight/{p-1d5f98eb.entry.js → p-07feb752.entry.js} +1 -1
  247. package/dist/twilight/p-0838e0cc.entry.js +4 -0
  248. package/dist/twilight/{p-749b88a6.entry.js → p-08a065d6.entry.js} +1 -1
  249. package/dist/twilight/{p-0251d899.entry.js → p-0a0f2340.entry.js} +1 -1
  250. package/dist/twilight/{p-cc394677.entry.js → p-0c55c5ed.entry.js} +1 -1
  251. package/dist/twilight/{p-12cf0042.entry.js → p-1072161d.entry.js} +1 -1
  252. package/dist/twilight/{p-269711db.entry.js → p-12d180be.entry.js} +1 -1
  253. package/dist/twilight/{p-461bc0b5.entry.js → p-13e1c331.entry.js} +1 -1
  254. package/dist/twilight/{p-7cf65f99.entry.js → p-16d6ee9b.entry.js} +1 -1
  255. package/dist/twilight/{p-67ff151d.entry.js → p-18005312.entry.js} +1 -1
  256. package/dist/twilight/{p-824ca27d.entry.js → p-185a97f2.entry.js} +1 -1
  257. package/dist/twilight/{p-17337fed.entry.js → p-19c8a5d5.entry.js} +1 -1
  258. package/dist/twilight/{p-d0941265.entry.js → p-1beb481d.entry.js} +1 -1
  259. package/dist/twilight/{p-CDfz5a3h.js → p-1qlEgGio.js} +1 -1
  260. package/dist/twilight/{p-bf21567e.entry.js → p-2c86bd20.entry.js} +1 -1
  261. package/dist/twilight/{p-d1877684.entry.js → p-30b7deca.entry.js} +1 -1
  262. package/dist/twilight/{p-962596fd.entry.js → p-3157e3dd.entry.js} +1 -1
  263. package/dist/twilight/{p-3c4cbc49.entry.js → p-32467a9d.entry.js} +1 -1
  264. package/dist/twilight/{p-9fc02a58.entry.js → p-342dad15.entry.js} +1 -1
  265. package/dist/twilight/{p-2704b823.entry.js → p-34741bf4.entry.js} +1 -1
  266. package/dist/twilight/{p-b0ec4004.entry.js → p-3a54d785.entry.js} +1 -1
  267. package/dist/twilight/{p-4c5afcea.entry.js → p-3ae98980.entry.js} +1 -1
  268. package/dist/twilight/{p-5e3fa632.entry.js → p-3d005581.entry.js} +1 -1
  269. package/dist/twilight/{p-eeb9b7ec.entry.js → p-3e01a221.entry.js} +1 -1
  270. package/dist/twilight/{p-BpMToHtv.js → p-3omad4sF.js} +1 -1
  271. package/dist/twilight/{p-b0bb526f.entry.js → p-44d95774.entry.js} +1 -1
  272. package/dist/twilight/{p-6c3654f7.entry.js → p-52556f85.entry.js} +1 -1
  273. package/dist/twilight/p-56a74d0a.entry.js +4 -0
  274. package/dist/twilight/{p-4f330750.entry.js → p-574c57c6.entry.js} +1 -1
  275. package/dist/twilight/{p-14ee219d.entry.js → p-57ace49d.entry.js} +1 -1
  276. package/dist/twilight/{p-d76e3af1.entry.js → p-57b87240.entry.js} +1 -1
  277. package/dist/twilight/p-5877797d.entry.js +4 -0
  278. package/dist/twilight/{p-64181bed.entry.js → p-59cf3d1c.entry.js} +1 -1
  279. package/dist/twilight/{p-c8778468.entry.js → p-59cf6efb.entry.js} +1 -1
  280. package/dist/twilight/{p-376f5734.entry.js → p-5acaee73.entry.js} +1 -1
  281. package/dist/twilight/{p-5d1b5a04.entry.js → p-6740cfb1.entry.js} +1 -1
  282. package/dist/twilight/{p-c77a657b.entry.js → p-67a304d4.entry.js} +1 -1
  283. package/dist/twilight/{p-5b474463.entry.js → p-6a7d7c6f.entry.js} +1 -1
  284. package/dist/twilight/{p-2d009c5d.entry.js → p-6aad9abe.entry.js} +1 -1
  285. package/dist/twilight/{p-bc9d30a6.entry.js → p-6c4d7933.entry.js} +1 -1
  286. package/dist/twilight/{p-97045b36.entry.js → p-6e9b255e.entry.js} +1 -1
  287. package/dist/twilight/p-729e2abe.entry.js +4 -0
  288. package/dist/twilight/{p-c6fcc9f5.entry.js → p-754d042b.entry.js} +1 -1
  289. package/dist/twilight/p-77676a5d.entry.js +4 -0
  290. package/dist/twilight/p-783d1a70.entry.js +4 -0
  291. package/dist/twilight/{p-5e2e12a0.entry.js → p-7971bc45.entry.js} +1 -1
  292. package/dist/twilight/{p-9ef89918.entry.js → p-7bb21315.entry.js} +1 -1
  293. package/dist/twilight/{p-36330e95.entry.js → p-7bb28f60.entry.js} +1 -1
  294. package/dist/twilight/{p-37e5f516.entry.js → p-7fae4a20.entry.js} +1 -1
  295. package/dist/twilight/{p-398f5f2d.entry.js → p-82b38a08.entry.js} +1 -1
  296. package/dist/twilight/{p-85f447f3.entry.js → p-842e61d7.entry.js} +1 -1
  297. package/dist/twilight/{p-0d945324.entry.js → p-85f9d064.entry.js} +1 -1
  298. package/dist/twilight/{p-59133a6d.entry.js → p-927448a3.entry.js} +1 -1
  299. package/dist/twilight/{p-e171f81f.entry.js → p-92d68ba1.entry.js} +1 -1
  300. package/dist/twilight/{p-e3625ea8.entry.js → p-94af7c15.entry.js} +1 -1
  301. package/dist/twilight/{p-1daddc57.entry.js → p-9a862593.entry.js} +1 -1
  302. package/dist/twilight/p-9c302701.entry.js +4 -0
  303. package/dist/twilight/{p-8571999e.entry.js → p-9d734c16.entry.js} +1 -1
  304. package/dist/twilight/{p-1db56957.entry.js → p-9d745f77.entry.js} +1 -1
  305. package/dist/twilight/{p-52c9ccff.entry.js → p-9f1c78ac.entry.js} +1 -1
  306. package/dist/twilight/{p-ed7486a5.entry.js → p-9f6081d4.entry.js} +1 -1
  307. package/dist/twilight/{p-BVzq9WqP.js → p-B1S798Uj.js} +1 -1
  308. package/dist/twilight/{p-BVeQloEV.js → p-BlJJbPc3.js} +2 -2
  309. package/dist/twilight/{p-BziVRCve.js → p-CAqUTN8N.js} +1 -1
  310. package/dist/twilight/{p-BUS6LvNX.js → p-CXp5fcIv.js} +1 -1
  311. package/dist/twilight/{p-GW15OFUZ.js → p-CwlNfhff.js} +1 -1
  312. package/dist/twilight/{p-C0DMTlx5.js → p-DnsL3smj.js} +1 -1
  313. package/dist/twilight/{p-D4AyNYj-.js → p-DzgGIUvs.js} +1 -1
  314. package/dist/twilight/{p-CizzR_38.js → p-MT8XYsK6.js} +2 -2
  315. package/dist/twilight/{p-BpU_apUf.js → p-RH6Ze2WQ.js} +1 -1
  316. package/dist/twilight/{p-BcEAswfu.js → p-YpsE7YiS.js} +1 -1
  317. package/dist/twilight/{p-e320738a.entry.js → p-a65a1d76.entry.js} +1 -1
  318. package/dist/twilight/p-b25643cf.entry.js +4 -0
  319. package/dist/twilight/{p-4cc5a4d9.entry.js → p-bddef859.entry.js} +1 -1
  320. package/dist/twilight/{p-55ae56af.entry.js → p-bdef80a3.entry.js} +1 -1
  321. package/dist/twilight/{p-56484fe4.entry.js → p-c2ab62c6.entry.js} +1 -1
  322. package/dist/twilight/{p-5a0ea7fd.entry.js → p-c6e28a21.entry.js} +1 -1
  323. package/dist/twilight/{p-f20ed887.entry.js → p-c842401c.entry.js} +1 -1
  324. package/dist/twilight/{p-8b61f79a.entry.js → p-c850756e.entry.js} +1 -1
  325. package/dist/twilight/{p-123a4b64.entry.js → p-d00c74c3.entry.js} +1 -1
  326. package/dist/twilight/{p-2cfd0c46.entry.js → p-d20eb5fe.entry.js} +1 -1
  327. package/dist/twilight/{p-6696f1fd.entry.js → p-d30dc29a.entry.js} +1 -1
  328. package/dist/twilight/{p-ec1dc1a4.entry.js → p-d5f7fc7c.entry.js} +1 -1
  329. package/dist/twilight/{p-0c21cbb0.entry.js → p-d5ffbaa7.entry.js} +1 -1
  330. package/dist/twilight/{p-44286c9c.entry.js → p-d63d41cc.entry.js} +1 -1
  331. package/dist/twilight/{p-b9492720.entry.js → p-d71e3ca9.entry.js} +1 -1
  332. package/dist/twilight/{p-c8dfa6d9.entry.js → p-d7c3072b.entry.js} +1 -1
  333. package/dist/twilight/{p-9f0fe98b.entry.js → p-d9685d52.entry.js} +1 -1
  334. package/dist/twilight/{p-b2847d8f.entry.js → p-dda98c7a.entry.js} +1 -1
  335. package/dist/twilight/{p-fa7577e6.entry.js → p-df605d75.entry.js} +1 -1
  336. package/dist/twilight/{p-292767bc.entry.js → p-e03e1c15.entry.js} +1 -1
  337. package/dist/twilight/{p-5b207505.entry.js → p-e260af73.entry.js} +1 -1
  338. package/dist/twilight/{p-fac12fc6.entry.js → p-e58f50ac.entry.js} +1 -1
  339. package/dist/twilight/{p-fd842648.entry.js → p-ec7b9c48.entry.js} +1 -1
  340. package/dist/twilight/{p-28dd3b59.entry.js → p-ef15918c.entry.js} +1 -1
  341. package/dist/twilight/p-f06c0fe7.entry.js +4 -0
  342. package/dist/twilight/{p-6926ae7c.entry.js → p-f2ba00a7.entry.js} +1 -1
  343. package/dist/twilight/{p-13f968e6.entry.js → p-fb94ea64.entry.js} +1 -1
  344. package/dist/twilight/{p-573c54b0.entry.js → p-fdc41755.entry.js} +1 -1
  345. package/dist/twilight/{p-9f7d6e66.entry.js → p-fdd6cba3.entry.js} +1 -1
  346. package/dist/twilight/{p-bf321bdd.entry.js → p-feebbd16.entry.js} +1 -1
  347. package/dist/twilight/{p-ad5b0b69.entry.js → p-ff5240b5.entry.js} +1 -1
  348. package/dist/twilight/twilight.esm.js +1 -1
  349. package/dist/types/components/salla-loyalty-program/salla-loyalty-exchange-product-card.d.ts +10 -0
  350. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +1 -0
  351. package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +1 -0
  352. package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +9 -0
  353. package/dist/types/components/salla-product-options/interfaces.d.ts +1 -0
  354. package/dist/types/components/salla-product-options/salla-product-options.d.ts +1 -1
  355. package/dist/types/components.d.ts +33 -0
  356. package/package.json +5 -5
  357. package/dist/twilight/p-15630397.entry.js +0 -4
  358. package/dist/twilight/p-31218883.entry.js +0 -4
  359. package/dist/twilight/p-6e464d52.entry.js +0 -4
  360. package/dist/twilight/p-718d6984.entry.js +0 -4
  361. package/dist/twilight/p-7c18a647.entry.js +0 -4
  362. package/dist/twilight/p-886db7dd.entry.js +0 -4
  363. package/dist/twilight/p-9dab82e9.entry.js +0 -4
  364. package/dist/twilight/p-ac1a08b3.entry.js +0 -4
  365. package/dist/twilight/p-b27551b5.entry.js +0 -4
  366. package/dist/twilight/p-cb17f82a.entry.js +0 -4
  367. package/dist/twilight/p-f3b98523.entry.js +0 -4
@@ -4,11 +4,12 @@
4
4
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
5
  import { l as loyaltyProgramIcon } from './gift.js';
6
6
  import { T as TrackedPromise } from './tracked-promise.js';
7
+ import { d as defineCustomElement$5 } from './salla-button2.js';
7
8
  import { d as defineCustomElement$4 } from './salla-loading2.js';
8
9
  import { d as defineCustomElement$3 } from './salla-modal2.js';
9
10
  import { d as defineCustomElement$2 } from './salla-reward-exchange2.js';
10
11
 
11
- const sallaLoyaltyProgramCss = "";
12
+ 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}";
12
13
 
13
14
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
14
15
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -69,13 +70,18 @@ function defineCustomElement$1() {
69
70
  if (typeof customElements === "undefined") {
70
71
  return;
71
72
  }
72
- const components = ["salla-loyalty-banner", "salla-loading", "salla-modal", "salla-reward-exchange"];
73
+ const components = ["salla-loyalty-banner", "salla-button", "salla-loading", "salla-modal", "salla-reward-exchange"];
73
74
  components.forEach(tagName => { switch (tagName) {
74
75
  case "salla-loyalty-banner":
75
76
  if (!customElements.get(tagName)) {
76
77
  customElements.define(tagName, SallaLoyaltyBanner$1);
77
78
  }
78
79
  break;
80
+ case "salla-button":
81
+ if (!customElements.get(tagName)) {
82
+ defineCustomElement$5();
83
+ }
84
+ break;
79
85
  case "salla-loading":
80
86
  if (!customElements.get(tagName)) {
81
87
  defineCustomElement$4();
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaLoyaltyExchangeProductCard extends Components.SallaLoyaltyExchangeProductCard, HTMLElement {}
4
+ export const SallaLoyaltyExchangeProductCard: {
5
+ prototype: SallaLoyaltyExchangeProductCard;
6
+ new (): SallaLoyaltyExchangeProductCard;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { S as SallaLoyaltyExchangeProductCard$1, d as defineCustomElement$1 } from './salla-loyalty-exchange-product-card2.js';
5
+
6
+ const SallaLoyaltyExchangeProductCard = SallaLoyaltyExchangeProductCard$1;
7
+ const defineCustomElement = defineCustomElement$1;
8
+
9
+ export { SallaLoyaltyExchangeProductCard, defineCustomElement };
@@ -0,0 +1,151 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
5
+ import { d as defineCustomElement$i } from './salla-add-product-button2.js';
6
+ import { d as defineCustomElement$h } from './salla-booking-field2.js';
7
+ import { d as defineCustomElement$g } from './salla-button2.js';
8
+ import { d as defineCustomElement$f } from './salla-color-picker2.js';
9
+ import { d as defineCustomElement$e } from './salla-conditional-fields2.js';
10
+ import { d as defineCustomElement$d } from './salla-count-down2.js';
11
+ import { d as defineCustomElement$c } from './salla-datetime-picker2.js';
12
+ import { d as defineCustomElement$b } from './salla-file-upload2.js';
13
+ import { d as defineCustomElement$a } from './salla-loading2.js';
14
+ import { d as defineCustomElement$9 } from './salla-map2.js';
15
+ import { d as defineCustomElement$8 } from './salla-modal2.js';
16
+ import { d as defineCustomElement$7 } from './salla-order-options-modal2.js';
17
+ import { d as defineCustomElement$6 } from './salla-product-availability2.js';
18
+ import { d as defineCustomElement$5 } from './salla-product-card2.js';
19
+ import { d as defineCustomElement$4 } from './salla-product-options2.js';
20
+ import { d as defineCustomElement$3 } from './salla-progress-bar2.js';
21
+ import { d as defineCustomElement$2 } from './salla-quick-buy2.js';
22
+ import { d as defineCustomElement$1 } from './salla-tel-input2.js';
23
+
24
+ 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}";
25
+
26
+ const SallaLoyaltyExchangeProductCard = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyExchangeProductCard extends HTMLElement {
27
+ constructor() {
28
+ super();
29
+ this.__registerHost();
30
+ this.loyaltyProductExchange = createEvent(this, "loyaltyProductExchange", 7);
31
+ }
32
+ componentWillLoad() {
33
+ this.hasCustomCard = !!customElements.get('custom-salla-product-card');
34
+ }
35
+ render() {
36
+ const product = typeof this.product === 'string' ? JSON.parse(this.product) : this.product;
37
+ return (h("div", { key: 'a60d337ebcf226318d449a4319906a71a9ab1e92', class: "s-loyalty-exchange-card" }, this.hasCustomCard
38
+ ? h("custom-salla-product-card", { product: product, hideAddBtn: true })
39
+ : h("salla-product-card", { "hide-add-btn": true, product: product }), h("div", { key: '77a0cff2bf5fce5c017493a0769e266eeeaaa01c', class: "s-loyalty-exchange-card-btn" }, h("salla-button", { key: '941c82bb35bfd116a13292ddf5425645c3d61ad7', fill: "outline", width: "wide", onClick: () => this.loyaltyProductExchange.emit({ productId: product.id }) }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
40
+ }
41
+ static get style() { return sallaLoyaltyProgramCss; }
42
+ }, [0, "salla-loyalty-exchange-product-card", {
43
+ "product": [8],
44
+ "hasCustomCard": [32]
45
+ }]);
46
+ function defineCustomElement() {
47
+ if (typeof customElements === "undefined") {
48
+ return;
49
+ }
50
+ const components = ["salla-loyalty-exchange-product-card", "salla-add-product-button", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-count-down", "salla-datetime-picker", "salla-file-upload", "salla-loading", "salla-map", "salla-modal", "salla-order-options-modal", "salla-product-availability", "salla-product-card", "salla-product-options", "salla-progress-bar", "salla-quick-buy", "salla-tel-input"];
51
+ components.forEach(tagName => { switch (tagName) {
52
+ case "salla-loyalty-exchange-product-card":
53
+ if (!customElements.get(tagName)) {
54
+ customElements.define(tagName, SallaLoyaltyExchangeProductCard);
55
+ }
56
+ break;
57
+ case "salla-add-product-button":
58
+ if (!customElements.get(tagName)) {
59
+ defineCustomElement$i();
60
+ }
61
+ break;
62
+ case "salla-booking-field":
63
+ if (!customElements.get(tagName)) {
64
+ defineCustomElement$h();
65
+ }
66
+ break;
67
+ case "salla-button":
68
+ if (!customElements.get(tagName)) {
69
+ defineCustomElement$g();
70
+ }
71
+ break;
72
+ case "salla-color-picker":
73
+ if (!customElements.get(tagName)) {
74
+ defineCustomElement$f();
75
+ }
76
+ break;
77
+ case "salla-conditional-fields":
78
+ if (!customElements.get(tagName)) {
79
+ defineCustomElement$e();
80
+ }
81
+ break;
82
+ case "salla-count-down":
83
+ if (!customElements.get(tagName)) {
84
+ defineCustomElement$d();
85
+ }
86
+ break;
87
+ case "salla-datetime-picker":
88
+ if (!customElements.get(tagName)) {
89
+ defineCustomElement$c();
90
+ }
91
+ break;
92
+ case "salla-file-upload":
93
+ if (!customElements.get(tagName)) {
94
+ defineCustomElement$b();
95
+ }
96
+ break;
97
+ case "salla-loading":
98
+ if (!customElements.get(tagName)) {
99
+ defineCustomElement$a();
100
+ }
101
+ break;
102
+ case "salla-map":
103
+ if (!customElements.get(tagName)) {
104
+ defineCustomElement$9();
105
+ }
106
+ break;
107
+ case "salla-modal":
108
+ if (!customElements.get(tagName)) {
109
+ defineCustomElement$8();
110
+ }
111
+ break;
112
+ case "salla-order-options-modal":
113
+ if (!customElements.get(tagName)) {
114
+ defineCustomElement$7();
115
+ }
116
+ break;
117
+ case "salla-product-availability":
118
+ if (!customElements.get(tagName)) {
119
+ defineCustomElement$6();
120
+ }
121
+ break;
122
+ case "salla-product-card":
123
+ if (!customElements.get(tagName)) {
124
+ defineCustomElement$5();
125
+ }
126
+ break;
127
+ case "salla-product-options":
128
+ if (!customElements.get(tagName)) {
129
+ defineCustomElement$4();
130
+ }
131
+ break;
132
+ case "salla-progress-bar":
133
+ if (!customElements.get(tagName)) {
134
+ defineCustomElement$3();
135
+ }
136
+ break;
137
+ case "salla-quick-buy":
138
+ if (!customElements.get(tagName)) {
139
+ defineCustomElement$2();
140
+ }
141
+ break;
142
+ case "salla-tel-input":
143
+ if (!customElements.get(tagName)) {
144
+ defineCustomElement$1();
145
+ }
146
+ break;
147
+ } });
148
+ }
149
+ defineCustomElement();
150
+
151
+ export { SallaLoyaltyExchangeProductCard as S, defineCustomElement as d };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
5
 
6
- const sallaLoyaltyProgramCss = "";
6
+ 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}";
7
7
 
8
8
  const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero extends HTMLElement {
9
9
  constructor() {
@@ -11,13 +11,13 @@ const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero
11
11
  this.__registerHost();
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'c0060bac9958abfd0fe8e60a9b24c48d3a44f808' }, h("section", { key: '23529c848e4b44e10aef943457926d7fb4053e42', class: "s-loyalty-program-hero-container" }, h("div", { key: 'd2a7042e02f8a6a7a40f34f445fac4bed07c26e7', class: "s-loyalty-program-hero-background", style: {
14
+ return (h(Host, { key: '881c4dca4b0088ac6be4f0ffd619b3fd3850a151' }, h("section", { key: '9351457856d5830f7ec46f74583bbcbb2f4f4a9e', class: "s-loyalty-program-hero-container" }, h("div", { key: 'b2a7dd45788cb928d176ce3ed6376afcb0dc7830', class: "s-loyalty-program-hero-background", style: {
15
15
  backgroundImage: `url(${this.image})`,
16
- } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: 'd8b5459d499161ee6c79e5c67dc7c50f4be241ff', class: {
16
+ } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '2a9ee6e7475009d075e4296c5de86fc4d0449cdb', class: {
17
17
  's-loyalty-program-hero-content': true,
18
18
  's-loyalty-program-hero-white': !!this.image,
19
19
  's-loyalty-program-hero-gray': !this.image,
20
- } }, h("div", { key: '26ef4c09f27d93b96c0e12f7998484fa73837b6c' }, h("h1", { key: '2930af83fa736285c220fca7c241e08f7f67267a', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: 'c6a170b91e43f8321a350c95c85c4f0bf24e0d2d', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '2558c1947c3cb1e78ddd396b596d72a9e62f408d', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '363b97050db887cd8c05db1feec3fb834d7f48bb', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: '27ca29dfcd2cd5d176f22a7cf43ef26343ccf2e8', name: "action" }))), h("div", { key: 'a39534b8f093ff4e2373367a1e10bf2d9a986f37', class: "s-loyalty-program-hero-footer" }, h("div", { key: '10ccbf09e4e643255df236cc0d2ad55894a420ea', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '33973737797d6f5303f0e1435768816eea7450c5', name: "crosspoint" }))))));
20
+ } }, h("div", { key: 'a33e4bbd22ebdb76a714035addd04b64193dcd61' }, h("h1", { key: 'baa0b1a7dc2a76bd69015bfc71a58fef85ee8b5d', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: '29ef7f98496e8a7d6fb25ca03f377c6f67ee305c', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '3f5756fade604d55a2fad9670a2814e02cfd9521', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: 'e2cd101bf83e7704b05767db16757ebffddfff2f', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: '9372dc3a963bd08f3808ab3587c0d1140dfc16b7', name: "action" }))), h("div", { key: 'b1d4d0134aa73cd95d0283e0efd96e112c212aed', class: "s-loyalty-program-hero-footer" }, h("div", { key: '27061a96319400b58d13a79691b7b47588e27544', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '87dad7cf9262a2e56f5a9f918bf3d9353ffb8c45', name: "crosspoint" }))))));
21
21
  }
22
22
  static get style() { return sallaLoyaltyProgramCss; }
23
23
  }, [4, "salla-loyalty-hero", {
@@ -9,17 +9,18 @@ import { S as SIPercentage, a as SILayoutGrid } from './percentage.js';
9
9
  import { S as SIShipping } from './shipping.js';
10
10
  import { C as Cart2 } from './cart2.js';
11
11
  import { T as TrackedPromise } from './tracked-promise.js';
12
- import { d as defineCustomElement$u } from './salla-add-product-button2.js';
13
- import { d as defineCustomElement$t } from './salla-badge2.js';
14
- import { d as defineCustomElement$s } from './salla-booking-field2.js';
15
- import { d as defineCustomElement$r } from './salla-button2.js';
16
- import { d as defineCustomElement$q } from './salla-color-picker2.js';
17
- import { d as defineCustomElement$p } from './salla-conditional-fields2.js';
18
- import { d as defineCustomElement$o } from './salla-count-down2.js';
19
- import { d as defineCustomElement$n } from './salla-datetime-picker2.js';
20
- import { d as defineCustomElement$m } from './salla-file-upload2.js';
21
- import { d as defineCustomElement$l } from './salla-list-tile2.js';
22
- import { d as defineCustomElement$k } from './salla-loading2.js';
12
+ import { d as defineCustomElement$v } from './salla-add-product-button2.js';
13
+ import { d as defineCustomElement$u } from './salla-badge2.js';
14
+ import { d as defineCustomElement$t } from './salla-booking-field2.js';
15
+ import { d as defineCustomElement$s } from './salla-button2.js';
16
+ import { d as defineCustomElement$r } from './salla-color-picker2.js';
17
+ import { d as defineCustomElement$q } from './salla-conditional-fields2.js';
18
+ import { d as defineCustomElement$p } from './salla-count-down2.js';
19
+ import { d as defineCustomElement$o } from './salla-datetime-picker2.js';
20
+ import { d as defineCustomElement$n } from './salla-file-upload2.js';
21
+ import { d as defineCustomElement$m } from './salla-list-tile2.js';
22
+ import { d as defineCustomElement$l } from './salla-loading2.js';
23
+ import { d as defineCustomElement$k } from './salla-loyalty-exchange-product-card2.js';
23
24
  import { d as defineCustomElement$j } from './salla-map2.js';
24
25
  import { d as defineCustomElement$i } from './salla-modal2.js';
25
26
  import { d as defineCustomElement$h } from './salla-order-options-modal2.js';
@@ -41,7 +42,7 @@ import { d as defineCustomElement$2 } from './salla-tel-input2.js';
41
42
 
42
43
  var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
43
44
 
44
- const sallaLoyaltyProgramCss = "";
45
+ 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}";
45
46
 
46
47
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
47
48
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -67,6 +68,7 @@ const SallaLoyaltyPanel$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyP
67
68
  * prize to show in details or exchange modals
68
69
  */
69
70
  this.currentPrize = null;
71
+ this.currentProductId = null;
70
72
  this.handleExchangeSucceeded = () => window.location.reload();
71
73
  this.handleResetSucceeded = () => window.location.reload();
72
74
  }
@@ -111,14 +113,15 @@ const SallaLoyaltyPanel$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyP
111
113
  }, onActionClick: () => {
112
114
  this.currentPrize = prize;
113
115
  closeModals(() => this.detailsModal.open());
114
- } })))))))))) : ''), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize }))));
116
+ } })))))))))) : ''), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => { this.currentProductId = null; closeModals(() => this.exchangeModal.open()); }, onProductActionClick: (e) => { this.currentProductId = e.detail.productId; closeModals(() => this.exchangeModal.open()); }, prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize, productId: this.currentProductId }))));
115
117
  }
116
118
  static get style() { return sallaLoyaltyProgramCss; }
117
119
  }, [0, "salla-loyalty-panel", {
118
120
  "prizePoints": [1537, "prize-points"],
119
121
  "customerPoints": [1538, "customer-points"],
120
122
  "prizeTitle": [1537, "prize-title"],
121
- "currentPrize": [32]
123
+ "currentPrize": [32],
124
+ "currentProductId": [32]
122
125
  }]);
123
126
  __decorate([
124
127
  TrackedPromise(async () => {
@@ -136,7 +139,7 @@ function defineCustomElement$1() {
136
139
  if (typeof customElements === "undefined") {
137
140
  return;
138
141
  }
139
- const components = ["salla-loyalty-panel", "salla-add-product-button", "salla-badge", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-count-down", "salla-datetime-picker", "salla-file-upload", "salla-list-tile", "salla-loading", "salla-map", "salla-modal", "salla-order-options-modal", "salla-product-availability", "salla-product-card", "salla-product-options", "salla-products-slider", "salla-progress-bar", "salla-quick-buy", "salla-reward-action", "salla-reward-card", "salla-reward-details", "salla-reward-exchange", "salla-slider", "salla-tab-content", "salla-tab-header", "salla-tabs", "salla-tel-input"];
142
+ const components = ["salla-loyalty-panel", "salla-add-product-button", "salla-badge", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-count-down", "salla-datetime-picker", "salla-file-upload", "salla-list-tile", "salla-loading", "salla-loyalty-exchange-product-card", "salla-map", "salla-modal", "salla-order-options-modal", "salla-product-availability", "salla-product-card", "salla-product-options", "salla-products-slider", "salla-progress-bar", "salla-quick-buy", "salla-reward-action", "salla-reward-card", "salla-reward-details", "salla-reward-exchange", "salla-slider", "salla-tab-content", "salla-tab-header", "salla-tabs", "salla-tel-input"];
140
143
  components.forEach(tagName => { switch (tagName) {
141
144
  case "salla-loyalty-panel":
142
145
  if (!customElements.get(tagName)) {
@@ -145,55 +148,60 @@ function defineCustomElement$1() {
145
148
  break;
146
149
  case "salla-add-product-button":
147
150
  if (!customElements.get(tagName)) {
148
- defineCustomElement$u();
151
+ defineCustomElement$v();
149
152
  }
150
153
  break;
151
154
  case "salla-badge":
152
155
  if (!customElements.get(tagName)) {
153
- defineCustomElement$t();
156
+ defineCustomElement$u();
154
157
  }
155
158
  break;
156
159
  case "salla-booking-field":
157
160
  if (!customElements.get(tagName)) {
158
- defineCustomElement$s();
161
+ defineCustomElement$t();
159
162
  }
160
163
  break;
161
164
  case "salla-button":
162
165
  if (!customElements.get(tagName)) {
163
- defineCustomElement$r();
166
+ defineCustomElement$s();
164
167
  }
165
168
  break;
166
169
  case "salla-color-picker":
167
170
  if (!customElements.get(tagName)) {
168
- defineCustomElement$q();
171
+ defineCustomElement$r();
169
172
  }
170
173
  break;
171
174
  case "salla-conditional-fields":
172
175
  if (!customElements.get(tagName)) {
173
- defineCustomElement$p();
176
+ defineCustomElement$q();
174
177
  }
175
178
  break;
176
179
  case "salla-count-down":
177
180
  if (!customElements.get(tagName)) {
178
- defineCustomElement$o();
181
+ defineCustomElement$p();
179
182
  }
180
183
  break;
181
184
  case "salla-datetime-picker":
182
185
  if (!customElements.get(tagName)) {
183
- defineCustomElement$n();
186
+ defineCustomElement$o();
184
187
  }
185
188
  break;
186
189
  case "salla-file-upload":
187
190
  if (!customElements.get(tagName)) {
188
- defineCustomElement$m();
191
+ defineCustomElement$n();
189
192
  }
190
193
  break;
191
194
  case "salla-list-tile":
192
195
  if (!customElements.get(tagName)) {
193
- defineCustomElement$l();
196
+ defineCustomElement$m();
194
197
  }
195
198
  break;
196
199
  case "salla-loading":
200
+ if (!customElements.get(tagName)) {
201
+ defineCustomElement$l();
202
+ }
203
+ break;
204
+ case "salla-loyalty-exchange-product-card":
197
205
  if (!customElements.get(tagName)) {
198
206
  defineCustomElement$k();
199
207
  }
@@ -59,7 +59,7 @@ var SIMapLocation = `<!-- Generated by IcoMoon.io -->
59
59
  </svg>
60
60
  `;
61
61
 
62
- const sallaLoyaltyProgramCss = "";
62
+ 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}";
63
63
 
64
64
  /**
65
65
  * Dashboard sicons:
@@ -216,7 +216,7 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
216
216
  }
217
217
  }
218
218
  render() {
219
- return (h("div", { key: 'ddfb0e0ffb4c23f7cab43dd994e25ba7c599a931' }, h("div", { key: 'a2fe514f59b0e01fc6e22011b6734d7ba97e951e', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: '486b61a56b739a881de4ff0581a19ef91fbfc2e8', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '15f77554d8af1f65a66bf788cae341fe9f8f0fa3', class: this.point.icon })), h("div", { key: '2921be35f4d122e1a4580ed625832e4f33d69276', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: 'c809f65f9c93553e595fc995b76070a6a065e9d8', size: "xs", bg: "transparent" }, h("span", { key: 'd76ddeb873ac19f91b3cfe8af5837feb096cd7ca', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("div", { key: '18674b523984b6ca91afcee873e219571f867fcf', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: '7ebbee57d2858f1ba372fd4b0b42771e394e330f', size: "sm", bg: "transparent" }, h("span", { key: '41a93def0e2e54b4e6e036222e212703fe9ef88f', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("p", { key: 'acfa0ed98f398b591cb22e828ca677d37007e4e6', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
219
+ return (h("div", { key: '4f7a191b41435d2ea0c603e4454af4307362f5bf' }, h("div", { key: 'ef68b5b9f8606e2aa54ed97eddaecd5f9c191d1c', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'b14f2d1f94daf0674b076db69af9427b23d35e08', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '4d7ee556fde10c0039f035b1310711f2ddb6b6ab', class: this.point.icon })), h("div", { key: '5bf70bb463de4c340a71286d7b9b1a1412842762', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '53a1ac2b950144b78104ffbc9824642865d2b03e', size: "xs", bg: "transparent" }, h("span", { key: 'bb45f6133544718e5296ca5635f5d72c4ff6e86b', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("div", { key: '92f4eed2567bcad8e4e8d65e5d36cd12829862ef', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'ee188fec0149cb900af5e7a3467defd8302c66b0', size: "sm", bg: "transparent" }, h("span", { key: 'b196131e3c3f4d78e11384ee9663373dcfc6f76d', innerHTML: loyaltyProgramIcon }), formattedPointsJsx(this.point))), h("p", { key: 'b759840a68a867310bf0be0ebe6bbef038c48284', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
220
220
  h("a", { class: {
221
221
  's-loyalty-program-points-action': true,
222
222
  's-loyalty-program-points-action-completed': this.point.is_completed,
@@ -226,12 +226,12 @@ const SallaLoyaltyPoint = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPoi
226
226
  's-loyalty-program-points-action': true,
227
227
  's-loyalty-program-points-action-completed': this.point.is_completed,
228
228
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
229
- } }, this.point.description)), h("salla-modal", { key: '7c9f4dce935ba3e1f841aab57de04013e2fb983f', 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: '5e1dbd60526ae8450ce6453c04ea244ef1a96697', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'b43153fe19ffa308d5bd4126c9bd0fd43f1379ea', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '5d8f1cad86fd916f984f5baa07ff7fb18afeda68', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '69c4e3f2d513ec6c52caaa31ab3e7c886c0827a0', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '539a7713a22f64e9e4157dcd288ceca49910a449', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '5249f670969022167be8b11bff3ec8c75b4f0a5b', class: this.point.icon })), h("salla-badge", { key: 'e19decc72866ca36e3cc52c9822fc4677816bbda', size: "sm", bg: "light" }, h("span", { key: 'f2ed0ef699b63ce091c2b7dc5d30341bb0dcf713', innerHTML: loyaltyProgramIcon }), h("span", { key: '54275a2ec227c9415e77f88051bbf4e36d10489e', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
230
- h("div", { key: '7b8d4168a96586efa2855f169536a0577750cabe', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '102274da4418a7119e65c6a5c44630315e348c98', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '9a87e3fcb31ab6a0b984fe3fd43b9b57678b4600', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
229
+ } }, this.point.description)), h("salla-modal", { key: '90d851469e4f1ce77c4f509bfecd96abb2425dda', 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: '795d0984a4b7bca115500a9c3850cce6c6e6a7f0', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '0124a924ddde8516b6d27e9d9b36f44b14d5f13a', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '3ff4ec01ffe1e16ac53a170e04c8ca7b4c065d36', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'a56d5201a53a4e56bd5d04b51d1ce9a3151f0375', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '5b1b1ed27359d2f6b31a86a58ca8a7388f61b6e3', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'c73db6477ad88cc4b8467623fbf4a2d623b2f66f', class: this.point.icon })), h("salla-badge", { key: '432dde709ab1ea8d346104cee2e2d230fe9e5060', size: "sm", bg: "light" }, h("span", { key: '53134910bad559f02782092d47bfe56d4a56decb', innerHTML: loyaltyProgramIcon }), h("span", { key: 'e374ac7a30fc529b4a32833dfa7af90f76ae4c34', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), !!this.point.steps && Object.keys(this.point.steps).length > 0 &&
230
+ h("div", { key: '885c021210ceb4c6410deb811515b58489db76fa', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '9d4a907cf6ab0fd59f85cbcfe111fd2dd1031cee', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '8653fe18c6fe5f4708d91159db40c54bc44deeda', class: "s-loyalty-program-points-chain-list" }, Object.values(this.point.steps).map((step, idx) => {
231
231
  const stepsArray = Object.values(this.point.steps);
232
232
  const isLastItem = idx === stepsArray.length - 1;
233
233
  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))));
234
- })))), this.getDetails(this.point), h("div", { key: '7c96d9b4014f2b531cf85f0f4dd9c797f6b4e352', 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: loyaltyProgramIcon }), 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: '79a6d37b6af82a40b5b88f1a7e03034c3ac9fe90', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '6498d88e64af28621281b8c12b28c1a22473001d', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
234
+ })))), this.getDetails(this.point), h("div", { key: 'fed15aa3a7c7ecfe9818a87264e660c045d2658a', 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: loyaltyProgramIcon }), 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: 'c4b5a24d78cf70dad65ea9b4d606c338bba7912e', class: "s-loyalty-program-points-modal-action" }, h("a", { key: 'f9718774e2fc3a1def69b8fa8d7ebfdfb9086197', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
235
235
  's-loyalty-program-points-action': true,
236
236
  's-loyalty-program-points-action-completed': this.point.is_completed,
237
237
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
@@ -10,16 +10,17 @@ import { a as SIUserAdd, d as defineCustomElement$k } from './salla-loyalty-poin
10
10
  import { S as SIGiftSharing } from './gift-sharing.js';
11
11
  import { T as TrackedPromise } from './tracked-promise.js';
12
12
  import { a as anime } from './anime.es.js';
13
- import { d as defineCustomElement$v } from './salla-add-product-button2.js';
14
- import { d as defineCustomElement$u } from './salla-badge2.js';
15
- import { d as defineCustomElement$t } from './salla-booking-field2.js';
16
- import { d as defineCustomElement$s } from './salla-button2.js';
17
- import { d as defineCustomElement$r } from './salla-color-picker2.js';
18
- import { d as defineCustomElement$q } from './salla-conditional-fields2.js';
19
- import { d as defineCustomElement$p } from './salla-count-down2.js';
20
- import { d as defineCustomElement$o } from './salla-datetime-picker2.js';
21
- import { d as defineCustomElement$n } from './salla-file-upload2.js';
22
- import { d as defineCustomElement$m } from './salla-loading2.js';
13
+ import { d as defineCustomElement$w } from './salla-add-product-button2.js';
14
+ import { d as defineCustomElement$v } from './salla-badge2.js';
15
+ import { d as defineCustomElement$u } from './salla-booking-field2.js';
16
+ import { d as defineCustomElement$t } from './salla-button2.js';
17
+ import { d as defineCustomElement$s } from './salla-color-picker2.js';
18
+ import { d as defineCustomElement$r } from './salla-conditional-fields2.js';
19
+ import { d as defineCustomElement$q } from './salla-count-down2.js';
20
+ import { d as defineCustomElement$p } from './salla-datetime-picker2.js';
21
+ import { d as defineCustomElement$o } from './salla-file-upload2.js';
22
+ import { d as defineCustomElement$n } from './salla-loading2.js';
23
+ import { d as defineCustomElement$m } from './salla-loyalty-exchange-product-card2.js';
23
24
  import { d as defineCustomElement$l } from './salla-loyalty-hero2.js';
24
25
  import { d as defineCustomElement$j } from './salla-map2.js';
25
26
  import { d as defineCustomElement$i } from './salla-modal2.js';
@@ -47,7 +48,7 @@ var SICartUpload = `<!-- Generated by IcoMoon.io -->
47
48
  </svg>
48
49
  `;
49
50
 
50
- const sallaLoyaltyProgramCss = "";
51
+ 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}";
51
52
 
52
53
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
53
54
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -73,6 +74,7 @@ const SallaLoyaltyProgram$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalt
73
74
  * prize to show in details or exchange modals
74
75
  */
75
76
  this.currentPrize = null;
77
+ this.currentProductId = null;
76
78
  /**
77
79
  * collapsed state of points list
78
80
  */
@@ -131,11 +133,12 @@ const SallaLoyaltyProgram$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalt
131
133
  }, onActionClick: () => {
132
134
  this.currentPrize = prize;
133
135
  closeModals(() => this.detailsModal.open());
134
- } })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize }))))));
136
+ } })))))))), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => { this.currentProductId = null; closeModals(() => this.exchangeModal.open()); }, onProductActionClick: (e) => { this.currentProductId = e.detail.productId; closeModals(() => this.exchangeModal.open()); }, prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize, productId: this.currentProductId }))))));
135
137
  }
136
138
  static get style() { return sallaLoyaltyProgramCss; }
137
139
  }, [0, "salla-loyalty-program", {
138
140
  "currentPrize": [32],
141
+ "currentProductId": [32],
139
142
  "collapsed": [32],
140
143
  "animatedPoints": [32]
141
144
  }]);
@@ -165,7 +168,7 @@ function defineCustomElement$1() {
165
168
  if (typeof customElements === "undefined") {
166
169
  return;
167
170
  }
168
- const components = ["salla-loyalty-program", "salla-add-product-button", "salla-badge", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-count-down", "salla-datetime-picker", "salla-file-upload", "salla-loading", "salla-loyalty-hero", "salla-loyalty-point", "salla-map", "salla-modal", "salla-order-options-modal", "salla-product-availability", "salla-product-card", "salla-product-options", "salla-products-slider", "salla-progress-bar", "salla-quick-buy", "salla-reward-action", "salla-reward-card", "salla-reward-details", "salla-reward-exchange", "salla-slider", "salla-tab-content", "salla-tab-header", "salla-tabs", "salla-tel-input"];
171
+ const components = ["salla-loyalty-program", "salla-add-product-button", "salla-badge", "salla-booking-field", "salla-button", "salla-color-picker", "salla-conditional-fields", "salla-count-down", "salla-datetime-picker", "salla-file-upload", "salla-loading", "salla-loyalty-exchange-product-card", "salla-loyalty-hero", "salla-loyalty-point", "salla-map", "salla-modal", "salla-order-options-modal", "salla-product-availability", "salla-product-card", "salla-product-options", "salla-products-slider", "salla-progress-bar", "salla-quick-buy", "salla-reward-action", "salla-reward-card", "salla-reward-details", "salla-reward-exchange", "salla-slider", "salla-tab-content", "salla-tab-header", "salla-tabs", "salla-tel-input"];
169
172
  components.forEach(tagName => { switch (tagName) {
170
173
  case "salla-loyalty-program":
171
174
  if (!customElements.get(tagName)) {
@@ -174,50 +177,55 @@ function defineCustomElement$1() {
174
177
  break;
175
178
  case "salla-add-product-button":
176
179
  if (!customElements.get(tagName)) {
177
- defineCustomElement$v();
180
+ defineCustomElement$w();
178
181
  }
179
182
  break;
180
183
  case "salla-badge":
181
184
  if (!customElements.get(tagName)) {
182
- defineCustomElement$u();
185
+ defineCustomElement$v();
183
186
  }
184
187
  break;
185
188
  case "salla-booking-field":
186
189
  if (!customElements.get(tagName)) {
187
- defineCustomElement$t();
190
+ defineCustomElement$u();
188
191
  }
189
192
  break;
190
193
  case "salla-button":
191
194
  if (!customElements.get(tagName)) {
192
- defineCustomElement$s();
195
+ defineCustomElement$t();
193
196
  }
194
197
  break;
195
198
  case "salla-color-picker":
196
199
  if (!customElements.get(tagName)) {
197
- defineCustomElement$r();
200
+ defineCustomElement$s();
198
201
  }
199
202
  break;
200
203
  case "salla-conditional-fields":
201
204
  if (!customElements.get(tagName)) {
202
- defineCustomElement$q();
205
+ defineCustomElement$r();
203
206
  }
204
207
  break;
205
208
  case "salla-count-down":
206
209
  if (!customElements.get(tagName)) {
207
- defineCustomElement$p();
210
+ defineCustomElement$q();
208
211
  }
209
212
  break;
210
213
  case "salla-datetime-picker":
211
214
  if (!customElements.get(tagName)) {
212
- defineCustomElement$o();
215
+ defineCustomElement$p();
213
216
  }
214
217
  break;
215
218
  case "salla-file-upload":
216
219
  if (!customElements.get(tagName)) {
217
- defineCustomElement$n();
220
+ defineCustomElement$o();
218
221
  }
219
222
  break;
220
223
  case "salla-loading":
224
+ if (!customElements.get(tagName)) {
225
+ defineCustomElement$n();
226
+ }
227
+ break;
228
+ case "salla-loyalty-exchange-product-card":
221
229
  if (!customElements.get(tagName)) {
222
230
  defineCustomElement$m();
223
231
  }
@@ -6,7 +6,7 @@ import { c as closeModals } from './functions.js';
6
6
  import { l as loyaltyProgramIcon } from './gift.js';
7
7
  import { d as defineCustomElement$2 } from './salla-badge2.js';
8
8
 
9
- const sallaLoyaltyProgramCss = "";
9
+ 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}";
10
10
 
11
11
  const SallaLoyaltyReward$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyReward extends HTMLElement {
12
12
  constructor() {
@@ -39,10 +39,10 @@ const SallaLoyaltyReward$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyalty
39
39
  };
40
40
  }
41
41
  render() {
42
- return (h("div", { key: '46da4cdcfee8e04307722a89c94ab7c3d867aec4', class: {
42
+ return (h("div", { key: '0e3735d77de3b13948ba8cf473986185c52b9b1f', class: {
43
43
  's-loyalty-program-reward-container': true,
44
44
  's-loyalty-program-reward-xs': this.size === 'xs',
45
- } }, h("div", { key: '3d4d1b1adada717d2c248e1a2287b80b370accc8', onClick: this.handleActionArea, role: "button" }, h("div", { key: '2f699dcc9098adbbdec2ab1522bdb49977440663', class: "s-loyalty-program-reward-img" }, h("img", { key: '9fcc993f9f010ebd5663d02849714db897321357', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'd66d0be909c1f1c239a4aeb2152cd6f3850f25d4', class: "s-loyalty-program-reward-content" }, h("div", { key: '10968623d1fe8815a547e7b404f58b8401eed98b', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'd677e3be9ed036091f523b51d06d64635e1426d9', size: "xs" }, h("span", { key: '8b67c0112a61c5a9f224f308193dd933db6811df', innerHTML: loyaltyProgramIcon }), h("span", { key: '0b53d61ca1b07318a19d00c5948045385be2c877', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '5c88b91c602ddb8d81bd2537ebe32afaa13dabd7', class: "s-loyalty-program-reward-title" }, h("span", { key: '9f070612c7b381cdfc11cb794a29dd3d4fad78e3' }, this.group)), h("div", { key: 'd2ed88971fb88f4c857970a15b08b87681225ad4', class: "s-loyalty-program-reward-name" }, h("div", { key: '0818181909194a5a9d7bd8b0b0f421ee1c33cac9', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '61a792efce0cb44e5d676a2d10fbf466fdc9926a', class: "p-4" }, h("button", { key: 'b2f469e2206892914e14e542fc9acf6ccc289f59', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
45
+ } }, h("div", { key: '3988af25528bed3ff027405a1b84a4ded0b4fce8', onClick: this.handleActionArea, role: "button" }, h("div", { key: '3b6c3b7a35aa41a792f5ac05ff58f904ff850194', class: "s-loyalty-program-reward-img" }, h("img", { key: '2c8b14fcfd5b8db52c82033cdc797cc819e117eb', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'a0c7699c3a84adac9040ed2132e631795b041784', class: "s-loyalty-program-reward-content" }, h("div", { key: '5072ad6dae99ea1dec7bb4eef97a7c4fcca4f554', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '8e75004f0ac06e6ff29f5f5dc0fa0915392078bc', size: "xs" }, h("span", { key: 'eda3bd13b60467b5c3b6342ea1688e880913aaf4', innerHTML: loyaltyProgramIcon }), h("span", { key: '3be615346ec1d55f312fd22d6a324366a181abdf', class: "s-loyalty-program-rewards-points", innerHTML: salla.lang.choice('pages.loyalty_program.points', this.prize.cost_points) }))), h("div", { key: '611821580eb3216ad71b22634bdb40eec78adabf', class: "s-loyalty-program-reward-title" }, h("span", { key: 'dfa2d90b84aad0fd83e7add9bfdf72e26b14751b' }, this.group)), h("div", { key: '0401936cd2f3fd7d534ebe8ffe69ccb4149f38a4', class: "s-loyalty-program-reward-name" }, h("div", { key: '3275b7e29eec246fb9b7983c4160338613e31c13', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '4051723d3c48dd0c967b28d231f8a4dc09530a8f', class: "p-4" }, h("button", { key: 'e74ea5eb83e50f3be56e75904c5a961b63b2445d', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
46
46
  's-loyalty-program-rewards-action-base': true,
47
47
  's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
48
48
  's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),