@salla.sa/twilight-components 2.14.422 → 2.14.423

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 (325) hide show
  1. package/dist/cjs/{filepond-Bj2Lr664.js → filepond-Do86Z81F.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-D6zjqOTW.js → filepond-plugin-file-poster-BltmTwcK.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DW2JtTpK.js → filepond-plugin-file-validate-size-D6qDjnWw.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Cm_dx5vR.js → filepond-plugin-file-validate-type-BTcaw3yC.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CyB1FduP.js → filepond-plugin-image-edit-BfSALTq0.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CxcuYrF1.js → filepond-plugin-image-exif-orientation-YyoN3ZPE.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CXF_Kqyu.js → filepond-plugin-image-preview-DPZhJU-S.js} +1 -1
  8. package/dist/cjs/{functions-QULFiarR.js → functions-Vqr_tH33.js} +1 -1
  9. package/dist/cjs/{index-C-KeWKxB.js → index-BKsfuSTK.js} +1 -1
  10. package/dist/cjs/{index-CSI6rnkc.js → index-B_ubSXmY.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 +1 -1
  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 +20 -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 +14 -2
  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 +10 -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-DfEtIz3d.js} +1 -1
  98. package/dist/cjs/twilight.cjs.js +2 -2
  99. package/dist/cjs/{vanilla-picker-CmTZhXxo.js → vanilla-picker-n2ZBl__a.js} +1 -1
  100. package/dist/collection/collection-manifest.json +6 -0
  101. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +40 -0
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +7 -4
  103. package/dist/collection/components/salla-menu/salla-menu.js +35 -2
  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-cart-item-offers.js +1 -7
  109. package/dist/components/salla-cookies-bar.js +21 -1
  110. package/dist/components/salla-menu.js +16 -2
  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 +7 -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-C27NJlHY.js} +1 -1
  118. package/dist/esm/{filepond-plugin-file-poster-x8WSmS0o.js → filepond-plugin-file-poster-CbA3Ow5D.js} +1 -1
  119. package/dist/esm/{filepond-plugin-file-validate-size-CxlH6WN0.js → filepond-plugin-file-validate-size-DeVDysqG.js} +1 -1
  120. package/dist/esm/{filepond-plugin-file-validate-type-qw3WFgZc.js → filepond-plugin-file-validate-type-Bk2vWN-H.js} +1 -1
  121. package/dist/esm/{filepond-plugin-image-edit-DuhPVO0a.js → filepond-plugin-image-edit-MZT3Vams.js} +1 -1
  122. package/dist/esm/{filepond-plugin-image-exif-orientation-BffsImgy.js → filepond-plugin-image-exif-orientation-CUi24gW6.js} +1 -1
  123. package/dist/esm/{filepond-plugin-image-preview-VZtiw7aM.js → filepond-plugin-image-preview-DNteLpdV.js} +1 -1
  124. package/dist/esm/{functions-DQPUS1s5.js → functions-WZTrXRSI.js} +1 -1
  125. package/dist/esm/{index-DcQSprhU.js → index-Z9TEkBrE.js} +12 -8
  126. package/dist/esm/{index-CDqmBYQb.js → index-xqn3qtN8.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 +1 -1
  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 +20 -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 +14 -2
  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 +10 -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-9ayPcQ9V.js} +1 -1
  214. package/dist/esm/twilight.js +3 -3
  215. package/dist/esm/{vanilla-picker-71UAczkS.js → vanilla-picker-DU5T_3-T.js} +1 -1
  216. package/dist/twilight/{p-32a76526.entry.js → p-10311a85.entry.js} +1 -1
  217. package/dist/twilight/{p-28cd5556.entry.js → p-132d5758.entry.js} +1 -1
  218. package/dist/twilight/{p-c13164b8.entry.js → p-1357f11f.entry.js} +1 -1
  219. package/dist/twilight/{p-97a43989.entry.js → p-15b8af3d.entry.js} +1 -1
  220. package/dist/twilight/{p-452d8cd0.entry.js → p-15d242d1.entry.js} +1 -1
  221. package/dist/twilight/{p-d188ddc3.entry.js → p-1aa4f79a.entry.js} +1 -1
  222. package/dist/twilight/{p-8eebefe9.entry.js → p-1daa9a08.entry.js} +1 -1
  223. package/dist/twilight/{p-8ec0ba5b.entry.js → p-1e6a741d.entry.js} +1 -1
  224. package/dist/twilight/{p-a2fcbc1a.entry.js → p-1f3d64f3.entry.js} +1 -1
  225. package/dist/twilight/{p-b3a731c1.entry.js → p-25a9da9c.entry.js} +1 -1
  226. package/dist/twilight/{p-868e3de6.entry.js → p-268c86dd.entry.js} +1 -1
  227. package/dist/twilight/{p-c9b8eaa4.entry.js → p-296b7778.entry.js} +1 -1
  228. package/dist/twilight/{p-e2e790c2.entry.js → p-2e69e2a7.entry.js} +1 -1
  229. package/dist/twilight/p-3175cab9.entry.js +4 -0
  230. package/dist/twilight/{p-061c3ad0.entry.js → p-31cdb580.entry.js} +1 -1
  231. package/dist/twilight/{p-3115fa6f.entry.js → p-321d4374.entry.js} +1 -1
  232. package/dist/twilight/{p-00031f8b.entry.js → p-38eb6f08.entry.js} +1 -1
  233. package/dist/twilight/{p-e8a3af2d.entry.js → p-4208c68b.entry.js} +1 -1
  234. package/dist/twilight/{p-38ce7612.entry.js → p-475bfa77.entry.js} +1 -1
  235. package/dist/twilight/{p-d65db41e.entry.js → p-51ccd249.entry.js} +1 -1
  236. package/dist/twilight/p-51eb69d7.entry.js +4 -0
  237. package/dist/twilight/{p-1cf5f505.entry.js → p-58f17ecc.entry.js} +1 -1
  238. package/dist/twilight/{p-b3d565bd.entry.js → p-598c73c9.entry.js} +1 -1
  239. package/dist/twilight/{p-7282ff57.entry.js → p-5bd92466.entry.js} +1 -1
  240. package/dist/twilight/{p-63d47b05.entry.js → p-612f2099.entry.js} +1 -1
  241. package/dist/twilight/{p-80865031.entry.js → p-61b6fac2.entry.js} +1 -1
  242. package/dist/twilight/{p-fa5cfbbb.entry.js → p-647a76d0.entry.js} +1 -1
  243. package/dist/twilight/p-69d98642.entry.js +4 -0
  244. package/dist/twilight/{p-f2476ba0.entry.js → p-6ab7c83d.entry.js} +1 -1
  245. package/dist/twilight/{p-d46ab245.entry.js → p-6d4850df.entry.js} +1 -1
  246. package/dist/twilight/{p-a147d986.entry.js → p-735e5378.entry.js} +1 -1
  247. package/dist/twilight/{p-f0f5e269.entry.js → p-74362d6a.entry.js} +1 -1
  248. package/dist/twilight/{p-0217da98.entry.js → p-75066345.entry.js} +1 -1
  249. package/dist/twilight/{p-192e2bc3.entry.js → p-75826fc3.entry.js} +1 -1
  250. package/dist/twilight/{p-6ccbe91b.entry.js → p-776a0bda.entry.js} +1 -1
  251. package/dist/twilight/{p-8101bf16.entry.js → p-777a765e.entry.js} +1 -1
  252. package/dist/twilight/{p-5e5ccdab.entry.js → p-79340697.entry.js} +1 -1
  253. package/dist/twilight/{p-e08d36d6.entry.js → p-79d9b828.entry.js} +1 -1
  254. package/dist/twilight/{p-a44f888a.entry.js → p-7d2ec078.entry.js} +1 -1
  255. package/dist/twilight/{p-6c98089b.entry.js → p-7d4c5da3.entry.js} +1 -1
  256. package/dist/twilight/{p-8ad13a15.entry.js → p-8138fe7c.entry.js} +1 -1
  257. package/dist/twilight/{p-f161933c.entry.js → p-847d884f.entry.js} +1 -1
  258. package/dist/twilight/{p-63e1b828.entry.js → p-8631c200.entry.js} +1 -1
  259. package/dist/twilight/{p-e4f154ee.entry.js → p-872b6790.entry.js} +1 -1
  260. package/dist/twilight/{p-ea4ded2f.entry.js → p-88c6e6ec.entry.js} +1 -1
  261. package/dist/twilight/{p-acb769ec.entry.js → p-8b15a7c2.entry.js} +1 -1
  262. package/dist/twilight/p-93221e58.entry.js +4 -0
  263. package/dist/twilight/{p-a6282734.entry.js → p-93715135.entry.js} +1 -1
  264. package/dist/twilight/{p-062ce0be.entry.js → p-9410f28a.entry.js} +1 -1
  265. package/dist/twilight/{p-4f6bff26.entry.js → p-97033016.entry.js} +1 -1
  266. package/dist/twilight/{p-50b449bd.entry.js → p-9b64e741.entry.js} +1 -1
  267. package/dist/twilight/{p-a4c32f61.entry.js → p-9c36f5f1.entry.js} +1 -1
  268. package/dist/twilight/{p-69b6a7e6.entry.js → p-9d30457e.entry.js} +1 -1
  269. package/dist/twilight/{p-l-JdSat8.js → p-B7NkulJ-.js} +1 -1
  270. package/dist/twilight/{p-BTAUEZcN.js → p-BDJ2Ykel.js} +1 -1
  271. package/dist/twilight/{p-BHk2Uou3.js → p-BlcvrTiO.js} +1 -1
  272. package/dist/twilight/{p-DeBNbBwy.js → p-BswrPpfs.js} +1 -1
  273. package/dist/twilight/{p-CT3zVv2d.js → p-C9yU50YT.js} +1 -1
  274. package/dist/twilight/p-CJUR4sUM.js +4 -0
  275. package/dist/twilight/{p-Ca8b1Y6p.js → p-CmoDOvZI.js} +1 -1
  276. package/dist/twilight/{p-BCVUxip0.js → p-CxlEUP15.js} +1 -1
  277. package/dist/twilight/{p-DgJJBXMW.js → p-DG0XMtHg.js} +1 -1
  278. package/dist/twilight/p-DqDX5na4.js +4 -0
  279. package/dist/twilight/{p-CN2sY_Li.js → p-DqwP0D-u.js} +1 -1
  280. package/dist/twilight/{p-CRRWZbuL.js → p-EhkdtrLx.js} +1 -1
  281. package/dist/twilight/{p-DcQSprhU.js → p-Z9TEkBrE.js} +1 -1
  282. package/dist/twilight/{p-Cs04GLEl.js → p-ZJAW9yxk.js} +1 -1
  283. package/dist/twilight/{p-77d1859e.entry.js → p-a6429df2.entry.js} +1 -1
  284. package/dist/twilight/p-a9f85080.entry.js +4 -0
  285. package/dist/twilight/{p-c34b5d8a.entry.js → p-aba22621.entry.js} +1 -1
  286. package/dist/twilight/{p-957bffb4.entry.js → p-b253d360.entry.js} +1 -1
  287. package/dist/twilight/{p-9cb39e42.entry.js → p-b5c33519.entry.js} +1 -1
  288. package/dist/twilight/{p-013cfbf0.entry.js → p-b785d75d.entry.js} +1 -1
  289. package/dist/twilight/{p-e79d468d.entry.js → p-b7aa5623.entry.js} +1 -1
  290. package/dist/twilight/{p-14805623.entry.js → p-be58b3a7.entry.js} +1 -1
  291. package/dist/twilight/{p-ecb69641.entry.js → p-c038e432.entry.js} +1 -1
  292. package/dist/twilight/{p-9924b574.entry.js → p-c19887c7.entry.js} +1 -1
  293. package/dist/twilight/{p-9170fe95.entry.js → p-c2dd5774.entry.js} +1 -1
  294. package/dist/twilight/{p-300dae0b.entry.js → p-c4a80854.entry.js} +1 -1
  295. package/dist/twilight/{p-b0b2aeda.entry.js → p-c4bb47b0.entry.js} +1 -1
  296. package/dist/twilight/{p-587d6230.entry.js → p-c763b517.entry.js} +1 -1
  297. package/dist/twilight/p-c77bcf09.entry.js +4 -0
  298. package/dist/twilight/{p-deffef72.entry.js → p-c7b15f0a.entry.js} +1 -1
  299. package/dist/twilight/{p-6d5b28c5.entry.js → p-cb476df4.entry.js} +1 -1
  300. package/dist/twilight/{p-6587c7d9.entry.js → p-d049f98a.entry.js} +1 -1
  301. package/dist/twilight/{p-5637acc5.entry.js → p-d0898538.entry.js} +1 -1
  302. package/dist/twilight/{p-3f01ef83.entry.js → p-d8d62f74.entry.js} +1 -1
  303. package/dist/twilight/{p-c49b9285.entry.js → p-dc1b4da2.entry.js} +1 -1
  304. package/dist/twilight/{p-4a8e7f09.entry.js → p-ea0b6753.entry.js} +1 -1
  305. package/dist/twilight/{p-c2a2158a.entry.js → p-eed5585b.entry.js} +1 -1
  306. package/dist/twilight/{p-cfac18e6.entry.js → p-ef60225f.entry.js} +1 -1
  307. package/dist/twilight/{p-e87d2534.entry.js → p-f087988a.entry.js} +1 -1
  308. package/dist/twilight/{p-503f9bbf.entry.js → p-f423f1cf.entry.js} +1 -1
  309. package/dist/twilight/{p-f6ed04b2.entry.js → p-f4582cc9.entry.js} +1 -1
  310. package/dist/twilight/{p-3a3dd27f.entry.js → p-f45efc0c.entry.js} +1 -1
  311. package/dist/twilight/p-f82d4a36.entry.js +4 -0
  312. package/dist/twilight/{p-64f577be.entry.js → p-fae2be1f.entry.js} +1 -1
  313. package/dist/twilight/twilight.esm.js +1 -1
  314. package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +6 -0
  315. package/dist/types/components/salla-menu/salla-menu.d.ts +6 -0
  316. package/dist/types/components/salla-next-order-coupon/interfaces.d.ts +11 -0
  317. package/dist/types/components/salla-next-order-coupon/salla-next-order-coupon.d.ts +24 -0
  318. package/dist/types/components.d.ts +27 -0
  319. package/package.json +5 -5
  320. package/dist/twilight/p-27cc8fc7.entry.js +0 -4
  321. package/dist/twilight/p-489cca66.entry.js +0 -4
  322. package/dist/twilight/p-497b058a.entry.js +0 -4
  323. package/dist/twilight/p-4c759f75.entry.js +0 -4
  324. package/dist/twilight/p-81f18d48.entry.js +0 -4
  325. package/dist/twilight/p-f77d4659.entry.js +0 -4
@@ -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>
@@ -20,6 +20,16 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
20
20
  this.isMobile = false;
21
21
  this.mobileBreakpoint = 768;
22
22
  this.mobileQueryHandler = (e) => (this.isMobile = e.matches);
23
+ this.cookiesSettingsAnchorClass = 's-cookies-settings-link';
24
+ this.onCookiesSettingsClick = (event) => {
25
+ const target = event.target;
26
+ const link = target?.closest(`a.${this.cookiesSettingsAnchorClass}`);
27
+ if (!link) {
28
+ return;
29
+ }
30
+ event.preventDefault();
31
+ this.open();
32
+ };
23
33
  }
24
34
  async componentWillLoad() {
25
35
  await Salla.onReady();
@@ -39,9 +49,11 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
39
49
  this.mobileQuery = window.matchMedia(`(max-width: ${this.mobileBreakpoint - 1}px)`);
40
50
  this.isMobile = this.mobileQuery.matches;
41
51
  this.mobileQuery.addEventListener('change', this.mobileQueryHandler);
52
+ document.addEventListener('click', this.onCookiesSettingsClick);
42
53
  }
43
54
  disconnectedCallback() {
44
55
  this.mobileQuery?.removeEventListener('change', this.mobileQueryHandler);
56
+ document.removeEventListener('click', this.onCookiesSettingsClick);
45
57
  }
46
58
  /**
47
59
  * Accept cookies consent.
@@ -63,6 +75,13 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
63
75
  Salla.storage.set('cookies-consent', 'rejected');
64
76
  return this.host;
65
77
  }
78
+ /**
79
+ * Show cookies settings bar to allow updating consent.
80
+ */
81
+ async open() {
82
+ this.isVisible = true;
83
+ return this.host;
84
+ }
66
85
  isRtl() {
67
86
  return Salla.config.get('theme.is_rtl', true);
68
87
  }
@@ -82,7 +101,8 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
82
101
  "acceptLabel": [32],
83
102
  "rejectLabel": [32],
84
103
  "accept": [64],
85
- "reject": [64]
104
+ "reject": [64],
105
+ "open": [64]
86
106
  }]);
87
107
  function defineCustomElement$1() {
88
108
  if (typeof customElements === "undefined") {
@@ -18,11 +18,19 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
18
18
  * Boolean indicating whether to use React Link elements for menu links.
19
19
  */
20
20
  this.useReactLink = false;
21
+ /**
22
+ * When true (footer menu only), appends a link to open cookie preferences.
23
+ * Use as `with-cookie-preferences` in markup.
24
+ */
25
+ this.withCookiePreferences = false;
21
26
  this.menus = [];
27
+ this.cookiePreferencesLabel = '';
28
+ this.displayAllText = '';
22
29
  }
23
30
  async componentWillLoad() {
24
31
  return salla.onReady(() => {
25
32
  this.displayAllText = salla.lang.get('blocks.home.display_all');
33
+ this.cookiePreferencesLabel = salla.lang.get('common.cookies.settings');
26
34
  if (this.sourceValue && this.source === 'json') {
27
35
  this.menus = typeof this.sourceValue === 'string' ? JSON.parse(this.sourceValue) : this.sourceValue || [];
28
36
  }
@@ -111,7 +119,11 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
111
119
  "s-menu-footer-item": !this.topnav,
112
120
  "s-menu-topnav-item topnav-link-item right-side": this.topnav
113
121
  } }, menu.title);
114
- })));
122
+ }), this.withCookiePreferences ? (h("a", { href: "#cookies-settings", class: {
123
+ "s-menu-footer-item": !this.topnav,
124
+ "s-menu-topnav-item topnav-link-item right-side": this.topnav,
125
+ "s-cookies-settings-link": true,
126
+ } }, this.cookiePreferencesLabel)) : null));
115
127
  }
116
128
  /**
117
129
  * Get the menus
@@ -140,7 +152,9 @@ const SallaMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaMenu extends HTM
140
152
  "topnav": [4],
141
153
  "useReactLink": [4, "use-react-link"],
142
154
  "limit": [2],
143
- "menus": [32]
155
+ "withCookiePreferences": [4, "with-cookie-preferences"],
156
+ "menus": [32],
157
+ "cookiePreferencesLabel": [32]
144
158
  }]);
145
159
  function defineCustomElement$1() {
146
160
  if (typeof customElements === "undefined") {
@@ -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,10 @@ 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
+ console.log("🚀 ~ SallaRewardDetails ~ getCategoriesJsx ~ category:", category);
129
+ 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))));
130
+ }))));
128
131
  }
129
132
  getBrandsJsx(items, title) {
130
133
  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 +137,11 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
134
137
  }
135
138
  render() {
136
139
  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') ? ''
140
+ return (h("div", { key: 'ef93a73728cf87285615dfe5dc9345d1a54db64a', class: "s-loyalty-program-reward-modal" }, h("div", { key: '85883b377d8ec2490cde174ea33aa08a64e84b68', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '2be1018fcdfff3966535a5e4cde4e10b99a690f6', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
138
141
  : h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
139
142
  'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
140
143
  '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' ? '' : [
144
+ } })), this.prize.name)), h("div", { key: 'eac6726dde8b8f5562fc4953ffb5c84830d185d4', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'a0ea8aca31d63016ad4890044a8f9789a4798ee2', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '9ff0ade39430845577a765f897ea50dc07ea498e', class: "s-loyalty-program-aspect-container" }, h("img", { key: '6001c3c5388611f924f22f229d879b48e7f5035e', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '4e69c07ff18b8a652ab852554ecb8a203fc34e16', size: "sm", bg: "light" }, h("span", { key: '854e73b47beeb53bda03ea3a6ac093fbe4098f16', innerHTML: loyaltyProgramIcon }), h("span", { key: 'ed3c8592176708a08016560ee0e35f57bfb3bec4', 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: 'f9b79897d68a7b9b7f35d36ef3e8bf34a58ae3c3', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '663d761572fe3961f616fd10cf98409ca31e5002', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '2756956099b574b793d3a0ea3bcc3de63fc4ab4c', 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
145
  h("salla-tab-header", { slot: "header", name: "included", style: {
143
146
  display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
144
147
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: IconVerified }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
@@ -148,7 +151,7 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
148
151
  display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
149
152
  } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: Cancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
150
153
  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 })));
154
+ ]))), h("salla-reward-action", { key: '6576910c32df5d49f33e9372e2c0a3bd758c8125', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
152
155
  }
153
156
  static get watchers() { return {
154
157
  "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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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-Z9TEkBrE.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);