@salla.sa/twilight-components 2.14.422 → 2.14.424

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 (322) hide show
  1. package/dist/cjs/{filepond-Bj2Lr664.js → filepond-DS8lFN12.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-D6zjqOTW.js → filepond-plugin-file-poster-DOlur-Zr.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DW2JtTpK.js → filepond-plugin-file-validate-size-8cdzV2Th.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Cm_dx5vR.js → filepond-plugin-file-validate-type-DlZs1kVq.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CyB1FduP.js → filepond-plugin-image-edit-SIPcIJFA.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CxcuYrF1.js → filepond-plugin-image-exif-orientation-CISQ2nhQ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CXF_Kqyu.js → filepond-plugin-image-preview-8n6MPTM9.js} +1 -1
  8. package/dist/cjs/{functions-QULFiarR.js → functions-BYHbilvv.js} +1 -1
  9. package/dist/cjs/{index-C-KeWKxB.js → index-D6qSyn6o.js} +1 -1
  10. package/dist/cjs/{index-CSI6rnkc.js → index-oFPXLGXi.js} +12 -8
  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 +4 -2
  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.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 +3 -9
  24. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  45. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-menu.cjs.entry.js +2 -1
  52. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +126 -0
  57. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-summary.cjs.entry.js +3 -9
  68. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-reward-action_4.cjs.entry.js +9 -7
  80. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  95. package/dist/cjs/swap-stroke-CYGxjKIS.js +13 -0
  96. package/dist/cjs/tag-money-Cuohw_4j.js +13 -0
  97. package/dist/cjs/{tracked-promise-DTPdQpTt.js → tracked-promise-UbTM_M6f.js} +1 -1
  98. package/dist/cjs/twilight.cjs.js +2 -2
  99. package/dist/cjs/{vanilla-picker-CmTZhXxo.js → vanilla-picker-CyHLTyvk.js} +1 -1
  100. package/dist/collection/collection-manifest.json +6 -0
  101. package/dist/collection/components/salla-bought-together/salla-bought-together.js +3 -1
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +6 -4
  103. package/dist/collection/components/salla-menu/salla-menu.js +1 -0
  104. package/dist/collection/components/salla-next-order-coupon/interfaces.js +1 -0
  105. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.css +3 -0
  106. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +142 -0
  107. package/dist/components/index.js +2 -2
  108. package/dist/components/salla-bought-together.js +3 -1
  109. package/dist/components/salla-cart-item-offers.js +1 -7
  110. package/dist/components/salla-menu.js +1 -0
  111. package/dist/components/salla-next-order-coupon.d.ts +11 -0
  112. package/dist/components/salla-next-order-coupon.js +165 -0
  113. package/dist/components/salla-order-summary.js +1 -7
  114. package/dist/components/salla-reward-details2.js +6 -4
  115. package/dist/components/swap-stroke.js +11 -0
  116. package/dist/components/tag-money.js +11 -0
  117. package/dist/esm/{filepond-CaO0jWZe.js → filepond-BKuHui9z.js} +1 -1
  118. package/dist/esm/{filepond-plugin-file-poster-x8WSmS0o.js → filepond-plugin-file-poster-Dh39_0L1.js} +1 -1
  119. package/dist/esm/{filepond-plugin-file-validate-size-CxlH6WN0.js → filepond-plugin-file-validate-size-CcS_RyRW.js} +1 -1
  120. package/dist/esm/{filepond-plugin-file-validate-type-qw3WFgZc.js → filepond-plugin-file-validate-type-DpLuBo4I.js} +1 -1
  121. package/dist/esm/{filepond-plugin-image-edit-DuhPVO0a.js → filepond-plugin-image-edit-BV3ho0c6.js} +1 -1
  122. package/dist/esm/{filepond-plugin-image-exif-orientation-BffsImgy.js → filepond-plugin-image-exif-orientation-CCciy-YF.js} +1 -1
  123. package/dist/esm/{filepond-plugin-image-preview-VZtiw7aM.js → filepond-plugin-image-preview-hfHsj8OM.js} +1 -1
  124. package/dist/esm/{functions-DQPUS1s5.js → functions-Czm5P_7C.js} +1 -1
  125. package/dist/esm/{index-DcQSprhU.js → index-BdWSh9vH.js} +12 -8
  126. package/dist/esm/{index-CDqmBYQb.js → index-C5q-9m7l.js} +1 -1
  127. package/dist/esm/loader.js +3 -3
  128. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  129. package/dist/esm/salla-accordion_6.entry.js +1 -1
  130. package/dist/esm/salla-add-product-button_5.entry.js +4 -2
  131. package/dist/esm/salla-advertisement.entry.js +1 -1
  132. package/dist/esm/salla-alert_2.entry.js +1 -1
  133. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  134. package/dist/esm/salla-apps-icons.entry.js +1 -1
  135. package/dist/esm/salla-badge.entry.js +1 -1
  136. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  137. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  138. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  139. package/dist/esm/salla-cart-item-offers_2.entry.js +2 -8
  140. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  141. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  142. package/dist/esm/salla-contacts.entry.js +1 -1
  143. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  144. package/dist/esm/salla-count-down.entry.js +1 -1
  145. package/dist/esm/salla-custom-fields.entry.js +1 -1
  146. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  147. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  148. package/dist/esm/salla-filters-widget.entry.js +1 -1
  149. package/dist/esm/salla-filters.entry.js +1 -1
  150. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  151. package/dist/esm/salla-gifting.entry.js +1 -1
  152. package/dist/esm/salla-hook.entry.js +1 -1
  153. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  154. package/dist/esm/salla-installment.entry.js +1 -1
  155. package/dist/esm/salla-list-tile.entry.js +1 -1
  156. package/dist/esm/salla-localization-modal.entry.js +1 -1
  157. package/dist/esm/salla-login-modal.entry.js +1 -1
  158. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  159. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  160. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  161. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  162. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  163. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  164. package/dist/esm/salla-loyalty.entry.js +1 -1
  165. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  166. package/dist/esm/salla-map.entry.js +1 -1
  167. package/dist/esm/salla-menu.entry.js +2 -1
  168. package/dist/esm/salla-metadata.entry.js +1 -1
  169. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  170. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  171. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  172. package/dist/esm/salla-next-order-coupon.entry.js +124 -0
  173. package/dist/esm/salla-notification-item.entry.js +1 -1
  174. package/dist/esm/salla-notifications.entry.js +1 -1
  175. package/dist/esm/salla-offer-modal.entry.js +1 -1
  176. package/dist/esm/salla-offer.entry.js +1 -1
  177. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  178. package/dist/esm/salla-order-details-options.entry.js +1 -1
  179. package/dist/esm/salla-order-details.entry.js +1 -1
  180. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  181. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  182. package/dist/esm/salla-order-edit.entry.js +1 -1
  183. package/dist/esm/salla-order-summary.entry.js +2 -8
  184. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  185. package/dist/esm/salla-orders.entry.js +1 -1
  186. package/dist/esm/salla-payments.entry.js +1 -1
  187. package/dist/esm/salla-placeholder.entry.js +1 -1
  188. package/dist/esm/salla-price-range.entry.js +1 -1
  189. package/dist/esm/salla-product-card_2.entry.js +1 -1
  190. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  191. package/dist/esm/salla-products-list.entry.js +1 -1
  192. package/dist/esm/salla-progress-bar.entry.js +1 -1
  193. package/dist/esm/salla-quick-order.entry.js +1 -1
  194. package/dist/esm/salla-rating-modal.entry.js +1 -1
  195. package/dist/esm/salla-reward-action_4.entry.js +9 -7
  196. package/dist/esm/salla-scopes.entry.js +1 -1
  197. package/dist/esm/salla-search.entry.js +1 -1
  198. package/dist/esm/salla-skeleton.entry.js +1 -1
  199. package/dist/esm/salla-slider.entry.js +1 -1
  200. package/dist/esm/salla-social-share.entry.js +1 -1
  201. package/dist/esm/salla-social.entry.js +1 -1
  202. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  203. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  204. package/dist/esm/salla-tooltip.entry.js +1 -1
  205. package/dist/esm/salla-trust-badges.entry.js +1 -1
  206. package/dist/esm/salla-user-menu.entry.js +1 -1
  207. package/dist/esm/salla-user-profile.entry.js +1 -1
  208. package/dist/esm/salla-user-settings.entry.js +1 -1
  209. package/dist/esm/salla-verify.entry.js +1 -1
  210. package/dist/esm/salla-wallet.entry.js +1 -1
  211. package/dist/esm/swap-stroke-DqDX5na4.js +11 -0
  212. package/dist/esm/tag-money-CJUR4sUM.js +11 -0
  213. package/dist/esm/{tracked-promise-CjUGdQ4e.js → tracked-promise-CGupCr4U.js} +1 -1
  214. package/dist/esm/twilight.js +3 -3
  215. package/dist/esm/{vanilla-picker-71UAczkS.js → vanilla-picker-XBpFNS7X.js} +1 -1
  216. package/dist/twilight/p-01c8a84e.entry.js +4 -0
  217. package/dist/twilight/{p-f2476ba0.entry.js → p-0705e86d.entry.js} +1 -1
  218. package/dist/twilight/{p-00031f8b.entry.js → p-077ff83c.entry.js} +1 -1
  219. package/dist/twilight/p-0c299177.entry.js +4 -0
  220. package/dist/twilight/{p-81f18d48.entry.js → p-106c5b79.entry.js} +1 -1
  221. package/dist/twilight/{p-9cb39e42.entry.js → p-1186078e.entry.js} +1 -1
  222. package/dist/twilight/{p-f161933c.entry.js → p-15836ed9.entry.js} +1 -1
  223. package/dist/twilight/{p-3f01ef83.entry.js → p-15a8c7c6.entry.js} +1 -1
  224. package/dist/twilight/{p-80865031.entry.js → p-163ebaf7.entry.js} +1 -1
  225. package/dist/twilight/{p-e08d36d6.entry.js → p-168c942e.entry.js} +1 -1
  226. package/dist/twilight/{p-062ce0be.entry.js → p-1722e759.entry.js} +1 -1
  227. package/dist/twilight/{p-DgJJBXMW.js → p-1YpyVfkq.js} +1 -1
  228. package/dist/twilight/{p-97a43989.entry.js → p-1a796e26.entry.js} +1 -1
  229. package/dist/twilight/{p-c34b5d8a.entry.js → p-1af3a167.entry.js} +1 -1
  230. package/dist/twilight/{p-e87d2534.entry.js → p-1d508c88.entry.js} +1 -1
  231. package/dist/twilight/{p-3a3dd27f.entry.js → p-23583546.entry.js} +1 -1
  232. package/dist/twilight/p-2437e4ac.entry.js +4 -0
  233. package/dist/twilight/{p-63e1b828.entry.js → p-27c6128f.entry.js} +1 -1
  234. package/dist/twilight/{p-a147d986.entry.js → p-27f90256.entry.js} +1 -1
  235. package/dist/twilight/{p-b0b2aeda.entry.js → p-29cbf744.entry.js} +1 -1
  236. package/dist/twilight/{p-cfac18e6.entry.js → p-2cb6feea.entry.js} +1 -1
  237. package/dist/twilight/{p-ea4ded2f.entry.js → p-2f530556.entry.js} +1 -1
  238. package/dist/twilight/{p-6ccbe91b.entry.js → p-34c1e701.entry.js} +1 -1
  239. package/dist/twilight/{p-6587c7d9.entry.js → p-37397917.entry.js} +1 -1
  240. package/dist/twilight/{p-3115fa6f.entry.js → p-3fb699fb.entry.js} +1 -1
  241. package/dist/twilight/{p-b3a731c1.entry.js → p-41237614.entry.js} +1 -1
  242. package/dist/twilight/{p-300dae0b.entry.js → p-4ad0ea7c.entry.js} +1 -1
  243. package/dist/twilight/{p-061c3ad0.entry.js → p-4dc5f354.entry.js} +1 -1
  244. package/dist/twilight/{p-5637acc5.entry.js → p-4f1e3ebb.entry.js} +1 -1
  245. package/dist/twilight/{p-ecb69641.entry.js → p-50002b57.entry.js} +1 -1
  246. package/dist/twilight/{p-14805623.entry.js → p-538cf743.entry.js} +1 -1
  247. package/dist/twilight/{p-c2a2158a.entry.js → p-55b5e8be.entry.js} +1 -1
  248. package/dist/twilight/{p-503f9bbf.entry.js → p-5b37732b.entry.js} +1 -1
  249. package/dist/twilight/{p-4f6bff26.entry.js → p-5ba9c7db.entry.js} +1 -1
  250. package/dist/twilight/{p-a4c32f61.entry.js → p-5bbc5ce6.entry.js} +1 -1
  251. package/dist/twilight/{p-192e2bc3.entry.js → p-61abc2ef.entry.js} +1 -1
  252. package/dist/twilight/{p-d46ab245.entry.js → p-61eb0bc8.entry.js} +1 -1
  253. package/dist/twilight/{p-f6ed04b2.entry.js → p-635738d0.entry.js} +1 -1
  254. package/dist/twilight/{p-d65db41e.entry.js → p-649268c1.entry.js} +1 -1
  255. package/dist/twilight/{p-a2fcbc1a.entry.js → p-66c85e94.entry.js} +1 -1
  256. package/dist/twilight/{p-0217da98.entry.js → p-6a2b2122.entry.js} +1 -1
  257. package/dist/twilight/{p-deffef72.entry.js → p-6bb43f9d.entry.js} +1 -1
  258. package/dist/twilight/{p-957bffb4.entry.js → p-77744cd4.entry.js} +1 -1
  259. package/dist/twilight/{p-452d8cd0.entry.js → p-7f9c18d8.entry.js} +1 -1
  260. package/dist/twilight/{p-c9b8eaa4.entry.js → p-806d31ba.entry.js} +1 -1
  261. package/dist/twilight/{p-fa5cfbbb.entry.js → p-813b762c.entry.js} +1 -1
  262. package/dist/twilight/{p-f0f5e269.entry.js → p-85267471.entry.js} +1 -1
  263. package/dist/twilight/{p-32a76526.entry.js → p-86486b65.entry.js} +1 -1
  264. package/dist/twilight/{p-c13164b8.entry.js → p-88e2d340.entry.js} +1 -1
  265. package/dist/twilight/{p-587d6230.entry.js → p-8b807210.entry.js} +1 -1
  266. package/dist/twilight/{p-f77d4659.entry.js → p-920a3f93.entry.js} +1 -1
  267. package/dist/twilight/{p-e79d468d.entry.js → p-937b1d3f.entry.js} +1 -1
  268. package/dist/twilight/{p-77d1859e.entry.js → p-93a4254f.entry.js} +1 -1
  269. package/dist/twilight/{p-acb769ec.entry.js → p-9d16c043.entry.js} +1 -1
  270. package/dist/twilight/{p-c49b9285.entry.js → p-9ec5b3ec.entry.js} +1 -1
  271. package/dist/twilight/{p-BTAUEZcN.js → p-B-CUQTrk.js} +1 -1
  272. package/dist/twilight/{p-CT3zVv2d.js → p-B8u0sgnU.js} +1 -1
  273. package/dist/twilight/{p-Cs04GLEl.js → p-BUZ_EM6t.js} +1 -1
  274. package/dist/twilight/{p-DcQSprhU.js → p-BdWSh9vH.js} +1 -1
  275. package/dist/twilight/{p-l-JdSat8.js → p-Bvagw9Eb.js} +1 -1
  276. package/dist/twilight/p-CJUR4sUM.js +4 -0
  277. package/dist/twilight/{p-CN2sY_Li.js → p-CL1NQBQS.js} +1 -1
  278. package/dist/twilight/{p-BCVUxip0.js → p-CXWkL-Nl.js} +1 -1
  279. package/dist/twilight/{p-BHk2Uou3.js → p-Co4B1BYS.js} +1 -1
  280. package/dist/twilight/p-DqDX5na4.js +4 -0
  281. package/dist/twilight/{p-Ca8b1Y6p.js → p-MdN_P6GB.js} +1 -1
  282. package/dist/twilight/{p-e8a3af2d.entry.js → p-a08bae8c.entry.js} +1 -1
  283. package/dist/twilight/{p-868e3de6.entry.js → p-a0c2d2fc.entry.js} +1 -1
  284. package/dist/twilight/{p-e4f154ee.entry.js → p-a2bf9399.entry.js} +1 -1
  285. package/dist/twilight/{p-64f577be.entry.js → p-a2cf36dd.entry.js} +1 -1
  286. package/dist/twilight/{p-8101bf16.entry.js → p-a517605b.entry.js} +1 -1
  287. package/dist/twilight/p-a6980f8f.entry.js +4 -0
  288. package/dist/twilight/p-a7292650.entry.js +4 -0
  289. package/dist/twilight/{p-a44f888a.entry.js → p-b49a7e3e.entry.js} +1 -1
  290. package/dist/twilight/{p-28cd5556.entry.js → p-b5b4582b.entry.js} +1 -1
  291. package/dist/twilight/{p-e2e790c2.entry.js → p-b9e27f4a.entry.js} +1 -1
  292. package/dist/twilight/{p-b3d565bd.entry.js → p-ba7d2b19.entry.js} +1 -1
  293. package/dist/twilight/{p-1cf5f505.entry.js → p-bb684fb5.entry.js} +1 -1
  294. package/dist/twilight/{p-013cfbf0.entry.js → p-bed2665e.entry.js} +1 -1
  295. package/dist/twilight/{p-69b6a7e6.entry.js → p-c4b60782.entry.js} +1 -1
  296. package/dist/twilight/{p-5e5ccdab.entry.js → p-c9a2317f.entry.js} +1 -1
  297. package/dist/twilight/{p-9924b574.entry.js → p-cc41c0fa.entry.js} +1 -1
  298. package/dist/twilight/{p-a6282734.entry.js → p-cda257aa.entry.js} +1 -1
  299. package/dist/twilight/{p-7282ff57.entry.js → p-cfdf044a.entry.js} +1 -1
  300. package/dist/twilight/{p-8ad13a15.entry.js → p-d1b0d5a6.entry.js} +1 -1
  301. package/dist/twilight/{p-6d5b28c5.entry.js → p-d93dda4f.entry.js} +1 -1
  302. package/dist/twilight/{p-38ce7612.entry.js → p-df0ef038.entry.js} +1 -1
  303. package/dist/twilight/{p-4a8e7f09.entry.js → p-e09f41df.entry.js} +1 -1
  304. package/dist/twilight/{p-9170fe95.entry.js → p-e14c7c23.entry.js} +1 -1
  305. package/dist/twilight/{p-63d47b05.entry.js → p-e33b5cf9.entry.js} +1 -1
  306. package/dist/twilight/p-e580c9e9.entry.js +4 -0
  307. package/dist/twilight/{p-d188ddc3.entry.js → p-ed767ba1.entry.js} +1 -1
  308. package/dist/twilight/{p-8ec0ba5b.entry.js → p-effcd169.entry.js} +1 -1
  309. package/dist/twilight/{p-8eebefe9.entry.js → p-fba1c62d.entry.js} +1 -1
  310. package/dist/twilight/{p-6c98089b.entry.js → p-ff8f343e.entry.js} +1 -1
  311. package/dist/twilight/{p-CRRWZbuL.js → p-kpU-gI-I.js} +1 -1
  312. package/dist/twilight/{p-DeBNbBwy.js → p-qPitx-1F.js} +1 -1
  313. package/dist/twilight/twilight.esm.js +1 -1
  314. package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
  315. package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
  316. package/dist/types/components.d.ts +13 -0
  317. package/package.json +5 -5
  318. package/dist/twilight/p-27cc8fc7.entry.js +0 -4
  319. package/dist/twilight/p-489cca66.entry.js +0 -4
  320. package/dist/twilight/p-497b058a.entry.js +0 -4
  321. package/dist/twilight/p-4c759f75.entry.js +0 -4
  322. package/dist/twilight/p-50b449bd.entry.js +0 -4
@@ -100,7 +100,9 @@ const SallaBoughtTogether$1 = /*@__PURE__*/ proxyCustomElement(class SallaBought
100
100
  .filter(p => this.selectedIds.has(p.id))
101
101
  // p.price is a plain float in the API response (e.g. 1150.58) — the TS type (any[]) is misleading.
102
102
  .reduce((sum, p) => sum + (p.price ?? 0), 0);
103
- return salla.money(total);
103
+ const decimals = salla.config.get('store.currency.decimals') ?? 2;
104
+ const factor = Math.pow(10, decimals);
105
+ return salla.money(Math.round(total * factor) / factor);
104
106
  }
105
107
  async addSelectedToCart() {
106
108
  if (this.isAdding || !this.selectedIds.size)
@@ -4,15 +4,9 @@
4
4
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
5
  import { S as SpecialDiscountIcon } from './special-discount.js';
6
6
  import { l as loyaltyProgramIcon } from './gift.js';
7
+ import { T as TagMoneyIcon } from './tag-money.js';
7
8
  import { A as ArrowDown } from './keyboard_arrow_down.js';
8
9
 
9
- var TagMoneyIcon = `<!-- Generated by IcoMoon.io -->
10
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
11
- <title>tag-money</title>
12
- <path d="M20.567 11.433c-0.521-0.521-1.364-0.521-1.885 0l-0.524 0.524c-1.28-0.819-3.091-0.681-4.191 0.419-0.631 0.631-0.976 1.468-0.976 2.359 0 0.889 0.347 1.727 0.976 2.357l0.943 0.943c0.171 0.171 0.195 0.368 0.195 0.472s-0.025 0.301-0.196 0.472c-0.169 0.169-0.367 0.195-0.471 0.195s-0.301-0.025-0.472-0.195l-2.357-2.357c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l0.944 0.941-0.472 0.472c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l0.519-0.519c0.54 0.359 1.173 0.553 1.837 0.553 0.892 0 1.729-0.348 2.357-0.976 0.631-0.631 0.976-1.467 0.976-2.357s-0.347-1.727-0.976-2.357l-0.943-0.943c-0.26-0.26-0.26-0.684 0-0.944 0.259-0.259 0.683-0.261 0.944 0l1.885 1.887c0.521 0.521 1.364 0.521 1.885 0 0.521-0.52 0.521-1.364 0-1.885l-0.472-0.472 0.472-0.472c0.521-0.521 0.521-1.365 0.001-1.887zM28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>
13
- </svg>
14
- `;
15
-
16
10
  var FireIcon = `<!-- Generated by IcoMoon.io -->
17
11
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
18
12
  <title>fire</title>
@@ -19,6 +19,7 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
19
19
  */
20
20
  this.useReactLink = false;
21
21
  this.menus = [];
22
+ this.displayAllText = '';
22
23
  }
23
24
  async componentWillLoad() {
24
25
  return salla.onReady(() => {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaNextOrderCoupon extends Components.SallaNextOrderCoupon, HTMLElement {}
4
+ export const SallaNextOrderCoupon: {
5
+ prototype: SallaNextOrderCoupon;
6
+ new (): SallaNextOrderCoupon;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,165 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
+ import { T as TagMoneyIcon } from './tag-money.js';
6
+ import { i as iconCopy } from './swap-stroke.js';
7
+ import { d as defineCustomElement$3 } from './salla-button2.js';
8
+ import { d as defineCustomElement$2 } from './salla-skeleton2.js';
9
+
10
+ const sallaNextOrderCouponCss = ":host{display:block}";
11
+
12
+ const SallaNextOrderCoupon$1 = /*@__PURE__*/ proxyCustomElement(class SallaNextOrderCoupon extends HTMLElement {
13
+ constructor() {
14
+ super();
15
+ this.__registerHost();
16
+ this.coupon = null;
17
+ this.isLoading = true;
18
+ this.titlePercentTpl = '';
19
+ this.titleFixedTpl = '';
20
+ this.badgeLabel = '';
21
+ this.minSpendTpl = '';
22
+ this.expiresTpl = '';
23
+ this.shopNowLabel = '';
24
+ this.copyLabel = '';
25
+ this.copiedLabel = '';
26
+ }
27
+ componentWillLoad() {
28
+ Salla.onReady()
29
+ .then(() => Salla.lang.onLoaded())
30
+ .then(() => {
31
+ this.loadTranslations();
32
+ return this.loadCoupon();
33
+ })
34
+ .catch(() => {
35
+ this.isLoading = false;
36
+ });
37
+ }
38
+ loadTranslations() {
39
+ this.titlePercentTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_percent') || '';
40
+ this.titleFixedTpl = Salla.lang.get('pages.thank_you.next_order_coupon.title_fixed') || '';
41
+ this.badgeLabel = Salla.lang.get('pages.thank_you.next_order_coupon.badge') || '';
42
+ this.minSpendTpl = Salla.lang.get('pages.thank_you.next_order_coupon.min_spend') || '';
43
+ this.expiresTpl = Salla.lang.get('pages.thank_you.next_order_coupon.expires') || '';
44
+ this.shopNowLabel = Salla.lang.get('pages.thank_you.next_order_coupon.shop_now') || '';
45
+ this.copyLabel = Salla.lang.get('common.elements.copy') || '';
46
+ this.copiedLabel = Salla.lang.get('pages.thank_you.next_order_coupon.copied') || '';
47
+ }
48
+ async loadCoupon() {
49
+ try {
50
+ const response = await salla.api.request('coupons', { type: 'thankyou' });
51
+ const raw = response?.data;
52
+ const list = Array.isArray(raw) ? raw : (Array.isArray(raw?.data) ? raw.data : []);
53
+ this.coupon = list[0] ?? null;
54
+ }
55
+ catch {
56
+ this.coupon = null;
57
+ }
58
+ finally {
59
+ this.isLoading = false;
60
+ }
61
+ }
62
+ async copyCode() {
63
+ if (!this.coupon)
64
+ return;
65
+ try {
66
+ await navigator.clipboard.writeText(this.coupon.code);
67
+ salla.notify.success(this.copiedLabel);
68
+ salla.event.dispatch('salla::next-order-coupon.code.copied', { code: this.coupon.code });
69
+ }
70
+ catch {
71
+ // clipboard write failed silently
72
+ }
73
+ }
74
+ isPercentage() {
75
+ return this.coupon?.type === 'P' || this.coupon?.type === 'percentage';
76
+ }
77
+ formatAmount() {
78
+ if (!this.coupon)
79
+ return '';
80
+ if (this.isPercentage()) {
81
+ return `${salla.helpers.number(this.coupon.amount)}%`;
82
+ }
83
+ const amt = this.coupon.amount;
84
+ if (typeof amt === 'object' && amt.amount) {
85
+ const a = amt;
86
+ return h("span", { innerHTML: salla.money(a.amount, a.currency) });
87
+ }
88
+ return h("span", { innerHTML: salla.money(amt) });
89
+ }
90
+ formatMinSpend() {
91
+ const min = this.coupon?.minimum_amount;
92
+ if (!min)
93
+ return '';
94
+ if (typeof min === 'string') {
95
+ return min.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
96
+ }
97
+ return salla.money(min.amount, min.currency);
98
+ }
99
+ formatExpiry() {
100
+ const d = this.coupon?.expiry_date;
101
+ if (!d)
102
+ return '';
103
+ return new Date(d).toLocaleDateString(Salla.lang.locale || 'en-GB');
104
+ }
105
+ renderSkeleton() {
106
+ return (h("div", { class: "s-next-order-coupon-wrapper s-next-order-coupon-skeleton" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("salla-skeleton", { type: "normal", width: "48px", height: "48px" }), h("div", { class: "s-next-order-coupon-details" }, h("salla-skeleton", { height: "14px", width: "220px" }), h("salla-skeleton", { height: "12px", width: "140px" }))), h("div", { class: "s-next-order-coupon-actions" }, h("salla-skeleton", { height: "40px", width: "140px" }), h("salla-skeleton", { height: "40px", width: "100px" })))));
107
+ }
108
+ renderTitle() {
109
+ const amount = this.formatAmount();
110
+ const tpl = this.isPercentage() ? this.titlePercentTpl : this.titleFixedTpl;
111
+ const placeholder = this.isPercentage() ? ':amount%' : ':amount';
112
+ const parts = tpl.split(placeholder);
113
+ return (h("p", { class: "s-next-order-coupon-title" }, parts[0], h("span", { class: "s-next-order-coupon-amount" }, amount), parts[1] || ''));
114
+ }
115
+ render() {
116
+ if (this.isLoading)
117
+ return this.renderSkeleton();
118
+ if (!this.coupon)
119
+ return null;
120
+ const minSpend = this.formatMinSpend();
121
+ const expiry = this.formatExpiry();
122
+ return (h("div", { class: "s-next-order-coupon-wrapper" }, h("div", { class: "s-next-order-coupon-inner" }, h("div", { class: "s-next-order-coupon-info" }, h("div", { class: "s-next-order-coupon-icon-wrap" }, h("span", { class: "s-next-order-coupon-icon-bg" }), h("span", { class: "s-next-order-coupon-icon", innerHTML: TagMoneyIcon })), h("div", { class: "s-next-order-coupon-details" }, h("div", { class: "s-next-order-coupon-title-row" }, this.renderTitle(), h("span", { class: "s-next-order-coupon-badge" }, h("span", { class: "s-next-order-coupon-badge-bg" }), h("span", { class: "s-next-order-coupon-badge-text" }, this.badgeLabel))), (minSpend || expiry) && (h("p", { class: "s-next-order-coupon-meta" }, minSpend && (h("span", { innerHTML: this.minSpendTpl.replace(':amount', minSpend) })), expiry && (h("span", null, this.expiresTpl.replace(':date', expiry))))))), h("div", { class: "s-next-order-coupon-actions" }, h("div", { class: "s-next-order-coupon-code-box" }, h("span", { class: "s-next-order-coupon-code-text" }, this.coupon.code), h("salla-button", { shape: "link", class: "s-next-order-coupon-copy-btn", title: this.copyLabel, onClick: () => this.copyCode() }, h("span", { class: "s-next-order-coupon-copy-icon", innerHTML: iconCopy }))), h("salla-button", { href: salla.url.get(''), class: "s-next-order-coupon-shop-btn" }, this.shopNowLabel)))));
123
+ }
124
+ static get style() { return sallaNextOrderCouponCss; }
125
+ }, [0, "salla-next-order-coupon", {
126
+ "coupon": [32],
127
+ "isLoading": [32],
128
+ "titlePercentTpl": [32],
129
+ "titleFixedTpl": [32],
130
+ "badgeLabel": [32],
131
+ "minSpendTpl": [32],
132
+ "expiresTpl": [32],
133
+ "shopNowLabel": [32],
134
+ "copyLabel": [32],
135
+ "copiedLabel": [32]
136
+ }]);
137
+ function defineCustomElement$1() {
138
+ if (typeof customElements === "undefined") {
139
+ return;
140
+ }
141
+ const components = ["salla-next-order-coupon", "salla-button", "salla-skeleton"];
142
+ components.forEach(tagName => { switch (tagName) {
143
+ case "salla-next-order-coupon":
144
+ if (!customElements.get(tagName)) {
145
+ customElements.define(tagName, SallaNextOrderCoupon$1);
146
+ }
147
+ break;
148
+ case "salla-button":
149
+ if (!customElements.get(tagName)) {
150
+ defineCustomElement$3();
151
+ }
152
+ break;
153
+ case "salla-skeleton":
154
+ if (!customElements.get(tagName)) {
155
+ defineCustomElement$2();
156
+ }
157
+ break;
158
+ } });
159
+ }
160
+ defineCustomElement$1();
161
+
162
+ const SallaNextOrderCoupon = SallaNextOrderCoupon$1;
163
+ const defineCustomElement = defineCustomElement$1;
164
+
165
+ export { SallaNextOrderCoupon, defineCustomElement };
@@ -2,6 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
+ import { i as iconCopy } from './swap-stroke.js';
5
6
  import { I as IconVerified } from './check.js';
6
7
  import { d as defineCustomElement$3 } from './salla-button2.js';
7
8
  import { d as defineCustomElement$2 } from './salla-placeholder2.js';
@@ -20,13 +21,6 @@ var iconDownload = `<!-- Generated by IcoMoon.io -->
20
21
  </svg>
21
22
  `;
22
23
 
23
- var iconCopy = `<!-- Generated by IcoMoon.io -->
24
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
25
- <title>swap-stroke</title>
26
- <path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>
27
- </svg>
28
- `;
29
-
30
24
  var iconCreditCard = `<!-- Generated by IcoMoon.io -->
31
25
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
32
26
  <title>debit-card-back</title>
@@ -124,7 +124,9 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
124
124
  }
125
125
  }
126
126
  getCategoriesJsx(items, title) {
127
- 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) => (h("li", null, h("a", { href: category.url || category.lingual_urls?.[0], class: c('reward-details-categories-item') }, h("span", { innerHTML: Tag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))))))));
127
+ 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) => {
128
+ 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: Tag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))));
129
+ }))));
128
130
  }
129
131
  getBrandsJsx(items, title) {
130
132
  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: "" }))))))));
@@ -134,11 +136,11 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
134
136
  }
135
137
  render() {
136
138
  const termsAndConditions = this.getTermsAndConditions();
137
- return (h("div", { key: '17b29a9098873643557786c9d9515b6245e2d773', class: "s-loyalty-program-reward-modal" }, h("div", { key: 'bd5411918a07a8e2dc1eb8ef7b1e06e82403d280', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '9e6d884e3e70c0ff3dbb005f61d48c1d1fa2ee65', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
139
+ return (h("div", { key: 'b292fed409fdc5ed8824e1d3d694ddcf5136a260', class: "s-loyalty-program-reward-modal" }, h("div", { key: '3f276606a45e99bad8fa1e99d9bb00547e3a795c', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '0eea18e23aeb1273785886aebbe067a4b3f1d638', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
138
140
  : h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
139
141
  'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
140
142
  'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
141
- } })), this.prize.name)), h("div", { key: '09d716d984701a251a3a759acbf112883fd0cf8f', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'f7e2c8d017ba4dab380d08e0c7a5f1e49416b1f4', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '369bb4e9a1b8d8dde62de1236b4d836fd3d6841f', class: "s-loyalty-program-aspect-container" }, h("img", { key: '3ed20feecdcd1c7433ec465364ae62639824ee6d', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '2bba4702e75d05622b719fa796efccda0520ce69', size: "sm", bg: "light" }, h("span", { key: '837afff2bdf9a390e8ca373f31dddbd84d7c6a91', innerHTML: loyaltyProgramIcon }), h("span", { key: 'c3631a877062d69947928b1beee2ae4932910eec', 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: '872bfd776acf67910a5cdeafdb48e2c7afd5d71c', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '253e6f58946e911ba2b74ef18ebcee0eae0bb514', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: 'ce4b30fab9f1fae89fd956ae3eb20e5750fcea09', 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' ? '' : [
143
+ } })), this.prize.name)), h("div", { key: 'a12d8ab8741e502a20f2d310e758894ade551019', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'd8f83e5683e241adc7396ae3910ca533a73930cb', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '36229ddc5eb66cbc6d6b54dc9f73f55d9830ce72', class: "s-loyalty-program-aspect-container" }, h("img", { key: '9892014560501a6da43ff38d51612aa08e4a025d', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: 'b9f20d7a8570239772e71884b735fc5eb3a8ab62', size: "sm", bg: "light" }, h("span", { key: 'ce7a4e116a8c6b91f4835f90aa28e4d091581da9', innerHTML: loyaltyProgramIcon }), h("span", { key: 'd505628411045a838fef73c124e0940e4be53329', 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: '9d6041e7093fb173cb1218356a8f23923da2c138', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '1afc5bb9e8eae3d00884363fea13fd2cd7225e20', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '63f6d2d48f0f0277acd800bb238a07724d361b65', 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' ? '' : [
142
144
  h("salla-tab-header", { slot: "header", name: "included", style: {
143
145
  display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
144
146
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: IconVerified }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
@@ -148,7 +150,7 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
148
150
  display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
149
151
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: Cancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
150
152
  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')))),
151
- ]))), h("salla-reward-action", { key: '4055a99cf9dd6a30448848544d302e929afb5f06', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
153
+ ]))), h("salla-reward-action", { key: '986205a4f41981993e5ac555fa858ec24c217be0', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
152
154
  }
153
155
  static get watchers() { return {
154
156
  "prize": ["handlePrizeChange"]
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ var iconCopy = `<!-- Generated by IcoMoon.io -->
5
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
6
+ <title>swap-stroke</title>
7
+ <path d="M6.667 18.667h-2.667c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333v2.667c0 0.737 0.596 1.333 1.333 1.333s1.333-0.596 1.333-1.333v-2.667c0-2.205-1.795-4-4-4h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h2.667c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM28 10.667h-13.333c-2.205 0-4 1.795-4 4v13.333c0 2.205 1.795 4 4 4h13.333c2.205 0 4-1.795 4-4v-13.333c0-2.205-1.795-4-4-4zM29.333 28c0 0.736-0.597 1.333-1.333 1.333h-13.333c-0.736 0-1.333-0.597-1.333-1.333v-13.333c0-0.736 0.597-1.333 1.333-1.333h13.333c0.736 0 1.333 0.597 1.333 1.333z"></path>
8
+ </svg>
9
+ `;
10
+
11
+ export { iconCopy as i };
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ var TagMoneyIcon = `<!-- Generated by IcoMoon.io -->
5
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
6
+ <title>tag-money</title>
7
+ <path d="M20.567 11.433c-0.521-0.521-1.364-0.521-1.885 0l-0.524 0.524c-1.28-0.819-3.091-0.681-4.191 0.419-0.631 0.631-0.976 1.468-0.976 2.359 0 0.889 0.347 1.727 0.976 2.357l0.943 0.943c0.171 0.171 0.195 0.368 0.195 0.472s-0.025 0.301-0.196 0.472c-0.169 0.169-0.367 0.195-0.471 0.195s-0.301-0.025-0.472-0.195l-2.357-2.357c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l0.944 0.941-0.472 0.472c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l0.519-0.519c0.54 0.359 1.173 0.553 1.837 0.553 0.892 0 1.729-0.348 2.357-0.976 0.631-0.631 0.976-1.467 0.976-2.357s-0.347-1.727-0.976-2.357l-0.943-0.943c-0.26-0.26-0.26-0.684 0-0.944 0.259-0.259 0.683-0.261 0.944 0l1.885 1.887c0.521 0.521 1.364 0.521 1.885 0 0.521-0.52 0.521-1.364 0-1.885l-0.472-0.472 0.472-0.472c0.521-0.521 0.521-1.365 0.001-1.887zM28 0h-9.344c-1.059 0-2.056 0.411-2.809 1.153l-14.673 14.456c-1.56 1.56-1.561 4.097-0.001 5.657l9.56 9.56c0.755 0.755 1.76 1.172 2.828 1.173h0.003c1.068 0 2.072-0.416 2.833-1.179l14.451-14.668c0.743-0.753 1.153-1.751 1.153-2.809v-9.344c0-2.205-1.795-4-4-4zM29.333 13.344c0 0.353-0.137 0.685-0.385 0.937l-14.444 14.661c-0.252 0.252-0.587 0.391-0.941 0.391-0.001 0-0.001 0-0.001 0-0.356-0.001-0.691-0.139-0.943-0.392l-9.561-9.56c-0.52-0.52-0.52-1.365-0.005-1.88l14.667-14.449c0.253-0.248 0.585-0.385 0.937-0.385h9.344c0.736 0 1.333 0.597 1.333 1.333zM24 6.673c-0.737 0-1.333 0.604-1.333 1.341s0.596 1.333 1.333 1.333 1.333-0.596 1.333-1.333v-0.015c0-0.737-0.596-1.327-1.333-1.327z"></path>
8
+ </svg>
9
+ `;
10
+
11
+ export { TagMoneyIcon as T };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DcQSprhU.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BdWSh9vH.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { h } from './index-DcQSprhU.js';
4
+ import { h } from './index-BdWSh9vH.js';
5
5
 
6
6
  function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
7
7
  return number < multipleOf ? number : number - (number % multipleOf);