@salla.sa/twilight-components 2.14.438 → 2.14.440

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 (330) hide show
  1. package/dist/cjs/{filepond-DMRIHf1C.js → filepond-DOOLwTpX.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CM9PlkkE.js → filepond-plugin-file-poster-D7nMzJ2p.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CtgoDQtd.js → filepond-plugin-file-validate-size-DpCJ71im.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DqSFCcfx.js → filepond-plugin-file-validate-type-CDZ5OaBc.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-k32QwoLh.js → filepond-plugin-image-edit-BzGZimte.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BsOFwzDp.js → filepond-plugin-image-exif-orientation-D1fPPBi_.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-Bh5GBaFR.js → filepond-plugin-image-preview-CEhIwZKp.js} +1 -1
  8. package/dist/cjs/{functions-g_kb3rFp.js → functions-CdVaIsQM.js} +1 -1
  9. package/dist/cjs/{index-BUh2wfzU.js → index-E66k07Rj.js} +1 -1
  10. package/dist/cjs/{index-BFaAWRue.js → index-oqqfD8M2.js} +2 -2
  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_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +16 -6
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +247 -42
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +86 -25
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +29 -5
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +13 -8
  83. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-hdme5g67.js → tracked-promise-DV0VuqZL.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +2 -2
  100. package/dist/cjs/{vanilla-picker-D37h-mXi.js → vanilla-picker-DvOQTQXG.js} +1 -1
  101. package/dist/collection/components/salla-loyalty/salla-loyalty.js +17 -7
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +10 -5
  103. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +278 -41
  104. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +18 -4
  105. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +107 -20
  106. package/dist/collection/components/salla-order-edit/salla-order-edit.js +47 -4
  107. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +32 -0
  108. package/dist/components/index.js +2 -2
  109. package/dist/components/salla-loyalty.js +15 -5
  110. package/dist/components/salla-multiple-bundle-product-details2.js +250 -42
  111. package/dist/components/salla-multiple-bundle-product-options-modal2.js +18 -4
  112. package/dist/components/salla-multiple-bundle-product-slider2.js +69 -20
  113. package/dist/components/salla-order-edit.js +29 -4
  114. package/dist/components/salla-product-card-embed.js +1 -1
  115. package/dist/components/salla-reward-exchange2.js +10 -5
  116. package/dist/esm/{filepond-B_eTEvbP.js → filepond-Crf00c7G.js} +1 -1
  117. package/dist/esm/{filepond-plugin-file-poster-C9WrU6X2.js → filepond-plugin-file-poster-B3uKBJe-.js} +1 -1
  118. package/dist/esm/{filepond-plugin-file-validate-size-CXza6gk6.js → filepond-plugin-file-validate-size-CWVDRdsV.js} +1 -1
  119. package/dist/esm/{filepond-plugin-file-validate-type-NwmI_I3c.js → filepond-plugin-file-validate-type-VQGNZwF9.js} +1 -1
  120. package/dist/esm/{filepond-plugin-image-edit-BkFkrboM.js → filepond-plugin-image-edit-DOhXVk8j.js} +1 -1
  121. package/dist/esm/{filepond-plugin-image-exif-orientation-q63RMohC.js → filepond-plugin-image-exif-orientation-Co8jzTVW.js} +1 -1
  122. package/dist/esm/{filepond-plugin-image-preview-DBrJFq-R.js → filepond-plugin-image-preview-gQWAQlCp.js} +1 -1
  123. package/dist/esm/{functions-BiPE31Ri.js → functions-D8zpoRMj.js} +1 -1
  124. package/dist/esm/{index-DMFHjmvU.js → index-DX6k_dv6.js} +1 -1
  125. package/dist/esm/{index-DQ335bXf.js → index-XEcnGv2r.js} +2 -2
  126. package/dist/esm/loader.js +3 -3
  127. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  128. package/dist/esm/salla-accordion_6.entry.js +1 -1
  129. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  130. package/dist/esm/salla-advertisement.entry.js +1 -1
  131. package/dist/esm/salla-alert_2.entry.js +1 -1
  132. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  133. package/dist/esm/salla-apps-icons.entry.js +1 -1
  134. package/dist/esm/salla-badge.entry.js +1 -1
  135. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  136. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  137. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  138. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  139. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  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-points-banner.entry.js +1 -1
  162. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  163. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  164. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  165. package/dist/esm/salla-loyalty.entry.js +16 -6
  166. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  167. package/dist/esm/salla-map.entry.js +1 -1
  168. package/dist/esm/salla-menu.entry.js +1 -1
  169. package/dist/esm/salla-metadata.entry.js +1 -1
  170. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +247 -42
  171. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +86 -25
  172. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  173. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  174. package/dist/esm/salla-notification-item.entry.js +1 -1
  175. package/dist/esm/salla-notifications.entry.js +1 -1
  176. package/dist/esm/salla-offer-modal.entry.js +1 -1
  177. package/dist/esm/salla-offer.entry.js +1 -1
  178. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  179. package/dist/esm/salla-order-details-options.entry.js +1 -1
  180. package/dist/esm/salla-order-details.entry.js +1 -1
  181. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  182. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  183. package/dist/esm/salla-order-edit.entry.js +29 -5
  184. package/dist/esm/salla-order-summary.entry.js +1 -1
  185. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  186. package/dist/esm/salla-orders.entry.js +1 -1
  187. package/dist/esm/salla-payments.entry.js +1 -1
  188. package/dist/esm/salla-placeholder.entry.js +1 -1
  189. package/dist/esm/salla-price-range.entry.js +1 -1
  190. package/dist/esm/salla-product-card-embed.entry.js +2 -2
  191. package/dist/esm/salla-product-card_2.entry.js +1 -1
  192. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  193. package/dist/esm/salla-products-list.entry.js +1 -1
  194. package/dist/esm/salla-progress-bar.entry.js +1 -1
  195. package/dist/esm/salla-quick-order.entry.js +1 -1
  196. package/dist/esm/salla-rating-modal.entry.js +1 -1
  197. package/dist/esm/salla-reward-action_4.entry.js +13 -8
  198. package/dist/esm/salla-scopes.entry.js +1 -1
  199. package/dist/esm/salla-search.entry.js +1 -1
  200. package/dist/esm/salla-skeleton.entry.js +1 -1
  201. package/dist/esm/salla-slider.entry.js +1 -1
  202. package/dist/esm/salla-social-share.entry.js +1 -1
  203. package/dist/esm/salla-social.entry.js +1 -1
  204. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  205. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  206. package/dist/esm/salla-tooltip.entry.js +1 -1
  207. package/dist/esm/salla-trust-badges.entry.js +1 -1
  208. package/dist/esm/salla-user-menu.entry.js +1 -1
  209. package/dist/esm/salla-user-profile.entry.js +1 -1
  210. package/dist/esm/salla-user-settings.entry.js +1 -1
  211. package/dist/esm/salla-verify.entry.js +1 -1
  212. package/dist/esm/salla-wallet.entry.js +1 -1
  213. package/dist/esm/{tracked-promise-BhtDirMQ.js → tracked-promise-DhOWivzL.js} +1 -1
  214. package/dist/esm/twilight.js +3 -3
  215. package/dist/esm/{vanilla-picker-BzZq8SzV.js → vanilla-picker-C0njJzZd.js} +1 -1
  216. package/dist/twilight/{p-d4e63cb0.entry.js → p-00b633b2.entry.js} +1 -1
  217. package/dist/twilight/{p-221134fb.entry.js → p-0238a9dd.entry.js} +1 -1
  218. package/dist/twilight/{p-6e08db14.entry.js → p-05ae76f4.entry.js} +1 -1
  219. package/dist/twilight/{p-aa36205d.entry.js → p-06f77f81.entry.js} +1 -1
  220. package/dist/twilight/{p-07be70d2.entry.js → p-07d26676.entry.js} +1 -1
  221. package/dist/twilight/{p-f1557ed0.entry.js → p-07f973b1.entry.js} +1 -1
  222. package/dist/twilight/{p-b9c8c411.entry.js → p-0c342e2d.entry.js} +1 -1
  223. package/dist/twilight/{p-369177eb.entry.js → p-11da2f39.entry.js} +1 -1
  224. package/dist/twilight/{p-6cec9d8b.entry.js → p-1d8eb252.entry.js} +1 -1
  225. package/dist/twilight/{p-5fed66db.entry.js → p-203d6ae6.entry.js} +1 -1
  226. package/dist/twilight/{p-c30d45a8.entry.js → p-2cae7b1c.entry.js} +1 -1
  227. package/dist/twilight/{p-d066ae04.entry.js → p-2dce17b0.entry.js} +1 -1
  228. package/dist/twilight/{p-5fb93465.entry.js → p-2eddcffd.entry.js} +1 -1
  229. package/dist/twilight/{p-6d38d301.entry.js → p-31b06705.entry.js} +1 -1
  230. package/dist/twilight/{p-3be9c04b.entry.js → p-33362e8b.entry.js} +1 -1
  231. package/dist/twilight/{p-3e154bc2.entry.js → p-39498902.entry.js} +1 -1
  232. package/dist/twilight/{p-e6f8fcfc.entry.js → p-3ba87443.entry.js} +1 -1
  233. package/dist/twilight/{p-daafcb01.entry.js → p-3e054be0.entry.js} +1 -1
  234. package/dist/twilight/{p-589cb52c.entry.js → p-3edb7319.entry.js} +1 -1
  235. package/dist/twilight/{p-bea852ea.entry.js → p-461cd74c.entry.js} +1 -1
  236. package/dist/twilight/{p-881a5342.entry.js → p-476c4acb.entry.js} +1 -1
  237. package/dist/twilight/{p-b4092e4a.entry.js → p-4a3b5eca.entry.js} +1 -1
  238. package/dist/twilight/p-4e52fd6c.entry.js +4 -0
  239. package/dist/twilight/{p-f8b95b7e.entry.js → p-55dfaddd.entry.js} +1 -1
  240. package/dist/twilight/{p-a0206469.entry.js → p-56bd83f4.entry.js} +1 -1
  241. package/dist/twilight/{p-eb2d7c1e.entry.js → p-57a9293b.entry.js} +1 -1
  242. package/dist/twilight/{p-4897c441.entry.js → p-5c972b65.entry.js} +1 -1
  243. package/dist/twilight/{p-33d27bc3.entry.js → p-5df17c20.entry.js} +1 -1
  244. package/dist/twilight/p-5e643edb.entry.js +4 -0
  245. package/dist/twilight/{p-2d79709b.entry.js → p-5fd650c4.entry.js} +1 -1
  246. package/dist/twilight/{p-9696f2bd.entry.js → p-60d7a5e2.entry.js} +1 -1
  247. package/dist/twilight/{p-718e1549.entry.js → p-6ab3e94b.entry.js} +1 -1
  248. package/dist/twilight/{p-ff688f7c.entry.js → p-6c63e8a6.entry.js} +1 -1
  249. package/dist/twilight/{p-2b7ee145.entry.js → p-6d35b20c.entry.js} +1 -1
  250. package/dist/twilight/{p-be37a491.entry.js → p-6fed57e8.entry.js} +1 -1
  251. package/dist/twilight/{p-ef9ca9c4.entry.js → p-6ff38910.entry.js} +1 -1
  252. package/dist/twilight/{p-d5faf3f2.entry.js → p-78be4e2c.entry.js} +1 -1
  253. package/dist/twilight/{p-8bacc84d.entry.js → p-8207fb6f.entry.js} +1 -1
  254. package/dist/twilight/{p-ebe41004.entry.js → p-854eb825.entry.js} +1 -1
  255. package/dist/twilight/{p-ed845161.entry.js → p-8a4da11a.entry.js} +1 -1
  256. package/dist/twilight/{p-d8db1e81.entry.js → p-8c34fab2.entry.js} +1 -1
  257. package/dist/twilight/{p-6202fa66.entry.js → p-924555bd.entry.js} +1 -1
  258. package/dist/twilight/p-925690e3.entry.js +4 -0
  259. package/dist/twilight/{p-297ec2ce.entry.js → p-925869b3.entry.js} +1 -1
  260. package/dist/twilight/{p-bb8c7088.entry.js → p-93e060da.entry.js} +1 -1
  261. package/dist/twilight/{p-ff876842.entry.js → p-94b31962.entry.js} +1 -1
  262. package/dist/twilight/{p-24e09615.entry.js → p-9731d50b.entry.js} +1 -1
  263. package/dist/twilight/{p-0ddfb0d5.entry.js → p-9b2ba1e6.entry.js} +1 -1
  264. package/dist/twilight/{p-7eb778b4.entry.js → p-9c2942c3.entry.js} +1 -1
  265. package/dist/twilight/{p-a346db45.entry.js → p-9c3d5fdc.entry.js} +1 -1
  266. package/dist/twilight/{p-DWu6q1tc.js → p-B2jZw8NF.js} +1 -1
  267. package/dist/twilight/{p-CTwbej6G.js → p-B5kt5KrJ.js} +1 -1
  268. package/dist/twilight/{p-DMjajnP-.js → p-CMvDceec.js} +1 -1
  269. package/dist/twilight/{p-DjXDHHNL.js → p-Cw0D47mx.js} +1 -1
  270. package/dist/twilight/{p-RIEsmIVs.js → p-DL6eUQYK.js} +1 -1
  271. package/dist/twilight/{p-BUMSWZZf.js → p-DWyUFC7G.js} +1 -1
  272. package/dist/twilight/{p-Fxr_hOjI.js → p-DXDm8GqM.js} +1 -1
  273. package/dist/twilight/{p-w0fuGkIE.js → p-Dar-Px4H.js} +1 -1
  274. package/dist/twilight/{p-DoYiSf8E.js → p-DrCHWc9_.js} +1 -1
  275. package/dist/twilight/{p-wzq5caUN.js → p-DvOajQJL.js} +1 -1
  276. package/dist/twilight/{p-DQ335bXf.js → p-XEcnGv2r.js} +1 -1
  277. package/dist/twilight/p-YUFLgZi3.js +9 -0
  278. package/dist/twilight/{p-6fa0cf74.entry.js → p-a14b7bb6.entry.js} +1 -1
  279. package/dist/twilight/{p-11eecd61.entry.js → p-a2fa4306.entry.js} +1 -1
  280. package/dist/twilight/{p-9cf93a24.entry.js → p-a49d9c6e.entry.js} +1 -1
  281. package/dist/twilight/{p-cfd727fa.entry.js → p-aaf3736b.entry.js} +1 -1
  282. package/dist/twilight/{p-d4b8eba6.entry.js → p-aeeec3d8.entry.js} +1 -1
  283. package/dist/twilight/{p-2e289f17.entry.js → p-b1f79652.entry.js} +1 -1
  284. package/dist/twilight/p-b352e237.entry.js +4 -0
  285. package/dist/twilight/{p-85716765.entry.js → p-b3859adb.entry.js} +1 -1
  286. package/dist/twilight/{p-70736834.entry.js → p-b7e4542c.entry.js} +1 -1
  287. package/dist/twilight/{p-d20aefbc.entry.js → p-bea56108.entry.js} +1 -1
  288. package/dist/twilight/{p-a0791739.entry.js → p-c0162a6e.entry.js} +1 -1
  289. package/dist/twilight/{p-b57c111f.entry.js → p-c12ff95c.entry.js} +1 -1
  290. package/dist/twilight/{p-3388bef7.entry.js → p-c3432589.entry.js} +1 -1
  291. package/dist/twilight/{p-0cff0922.entry.js → p-c5250fca.entry.js} +1 -1
  292. package/dist/twilight/{p-ae40f1ae.entry.js → p-c55b672d.entry.js} +1 -1
  293. package/dist/twilight/{p-541ff06e.entry.js → p-c612ad0b.entry.js} +1 -1
  294. package/dist/twilight/{p-07beed15.entry.js → p-c999abc3.entry.js} +1 -1
  295. package/dist/twilight/{p-d8878610.entry.js → p-cd5722c4.entry.js} +1 -1
  296. package/dist/twilight/{p-0d3c80d3.entry.js → p-cff61b58.entry.js} +1 -1
  297. package/dist/twilight/{p-c0dc55a8.entry.js → p-d0b10f8b.entry.js} +1 -1
  298. package/dist/twilight/{p-26731090.entry.js → p-d1808642.entry.js} +1 -1
  299. package/dist/twilight/{p-cbad4eaa.entry.js → p-d1bfd0bc.entry.js} +1 -1
  300. package/dist/twilight/{p-c8971552.entry.js → p-d1e67236.entry.js} +1 -1
  301. package/dist/twilight/{p-fa3ad81b.entry.js → p-d34f2a6c.entry.js} +1 -1
  302. package/dist/twilight/{p-655adc8d.entry.js → p-d473010e.entry.js} +1 -1
  303. package/dist/twilight/{p-c756f476.entry.js → p-deaebd7b.entry.js} +1 -1
  304. package/dist/twilight/{p-ca19f9fb.entry.js → p-e50b4426.entry.js} +1 -1
  305. package/dist/twilight/p-eab889dc.entry.js +4 -0
  306. package/dist/twilight/{p-037a87a1.entry.js → p-ed55bd99.entry.js} +1 -1
  307. package/dist/twilight/{p-bbcb1943.entry.js → p-ed770165.entry.js} +1 -1
  308. package/dist/twilight/{p-a17e97a0.entry.js → p-f076d705.entry.js} +1 -1
  309. package/dist/twilight/{p-4c211080.entry.js → p-f1bed530.entry.js} +1 -1
  310. package/dist/twilight/p-f34ea06b.entry.js +4 -0
  311. package/dist/twilight/{p-2f2c7468.entry.js → p-f5207897.entry.js} +1 -1
  312. package/dist/twilight/{p-0a5550c2.entry.js → p-f668e5dd.entry.js} +1 -1
  313. package/dist/twilight/{p-6e4e0af9.entry.js → p-f8d7196e.entry.js} +1 -1
  314. package/dist/twilight/twilight.esm.js +1 -1
  315. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +2 -1
  316. package/dist/types/components/salla-loyalty-program/salla-reward-exchange.d.ts +1 -0
  317. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +20 -0
  318. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.d.ts +1 -0
  319. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.d.ts +9 -0
  320. package/dist/types/components/salla-multiple-bundle-product/interfaces.d.ts +1 -0
  321. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +4 -0
  322. package/dist/types/components.d.ts +30 -1
  323. package/package.json +5 -5
  324. package/dist/twilight/p-21f83b12.entry.js +0 -4
  325. package/dist/twilight/p-23d555d3.entry.js +0 -4
  326. package/dist/twilight/p-6e4d10a8.entry.js +0 -4
  327. package/dist/twilight/p-7fbf8aef.entry.js +0 -4
  328. package/dist/twilight/p-8b0a38e7.entry.js +0 -4
  329. package/dist/twilight/p-QRBCTWM0.js +0 -9
  330. package/dist/twilight/p-a7fcca2e.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
7
7
  const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
@@ -20,6 +20,7 @@ const SallaMultipleBundleProductOptionsModal = class {
20
20
  this.isLoading = false;
21
21
  this.hasUnsavedChanges = false;
22
22
  this.validationErrors = [];
23
+ this.isProductAlreadySelected = false;
23
24
  }
24
25
  /**
25
26
  * Generate a unique cache key for selected options using section ID, product index, and product ID
@@ -81,6 +82,7 @@ const SallaMultipleBundleProductOptionsModal = class {
81
82
  this.sectionId = data.sectionId || null;
82
83
  this.sectionIndex = data.sectionIndex || 0;
83
84
  this.productIndex = data.productIndex || 0;
85
+ this.isProductAlreadySelected = !!data.isProductAlreadySelected;
84
86
  this.open();
85
87
  };
86
88
  salla.event.on('multiple-bundle-product-modal::open', this.modalOpenListener);
@@ -111,6 +113,10 @@ const SallaMultipleBundleProductOptionsModal = class {
111
113
  // Extract section info from the checkbox name: bundle[sectionId][productIndex][id]
112
114
  const nameMatch = target.name.match(/^bundle\[([^\]]+)\]\[([^\]]+)\]\[id\]$/);
113
115
  if (nameMatch && !target.checked) {
116
+ if (target.getAttribute('data-selection-locked') === 'true') {
117
+ target.checked = true;
118
+ return;
119
+ }
114
120
  const [, sectionId, productIndex] = nameMatch;
115
121
  const productId = target.value;
116
122
  const form = this.host.closest('form');
@@ -349,6 +355,14 @@ const SallaMultipleBundleProductOptionsModal = class {
349
355
  salla.notify.error(this.validationErrors.join(', '));
350
356
  return;
351
357
  }
358
+ if (!this.isProductAlreadySelected && this.sectionId != null) {
359
+ const details = this.host.closest('salla-multiple-bundle-product-details');
360
+ const canSelect = await details?.canSelectBundleProduct(this.sectionId, productId);
361
+ if (!canSelect) {
362
+ salla.notify.error(salla.lang.getWithDefault('pages.products.bundle_selection_limit_reached', 'لا يمكنك اختيار المزيد من المنتجات في هذا القسم'));
363
+ return;
364
+ }
365
+ }
352
366
  this.isLoading = true;
353
367
  try {
354
368
  // please don't change this with this.host.querySelector it will return null
@@ -465,7 +479,7 @@ const SallaMultipleBundleProductOptionsModal = class {
465
479
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
466
480
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
467
481
  const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
468
- return (h(Host, { key: 'd9dc4018798fe902048f3e3e37fcb2edf84713b0' }, h("salla-modal", { key: 'af3cc56a9c2c969dc0cbb2b4caba14fd270a11bb', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '10fcc08be35bfd4231f9cf48501614ae49a985a3', slot: "loading" }, h("salla-skeleton", { key: '1aee9616e4f05188067708506352b0d97d504696', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'a7d7a459d383c353b5ef716365ba0a0ac5d3a0b7', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
482
+ return (h(Host, { key: '6c1d1d3911867e30240676f3e2b7353e9ecf76c3' }, h("salla-modal", { key: 'b02110d80cd422d64962d78812ae0b0637c56237', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '20a52bbc732c6edfffde86577e99bbe300a1a4c8', slot: "loading" }, h("salla-skeleton", { key: '3a69fc75939d8b8f8639983d0f2f8dd8bf961152', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '185639c54f79188093df98ac1cece1958879f71d', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
469
483
  centeredSlides: true,
470
484
  centeredSlidesBounds: true,
471
485
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
@@ -473,13 +487,13 @@ const SallaMultipleBundleProductOptionsModal = class {
473
487
  watchSlidesProgress: true,
474
488
  direction: 'vertical',
475
489
  spaceBetween: 10,
476
- } }, h("div", { key: '11970032bdc37e5d20d6737e3109fcec9b4de4cb', slot: "items" }, this.product?.images &&
490
+ } }, h("div", { key: '3b6a88fe3862870d674dadc31967df6cc8fac365', slot: "items" }, this.product?.images &&
477
491
  this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
478
492
  e.target.style.display = 'none';
479
- } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: 'c7d0fd432d8449e4742f0686ddecb7e87bebf159', slot: "thumbs" }, this.product?.images &&
493
+ } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '6fce48b5b035cc61866aaf6c339866fa2314be87', slot: "thumbs" }, this.product?.images &&
480
494
  this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
481
495
  e.target.style.display = 'none';
482
- } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: 'c9b5f53696d9f8800e3a6be31ec78b51f0cb9bb1', slot: "footer" }, h("div", { key: 'e972370006feae6c17797f54c415ef0d2aaa3f57', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '7a3787936eec6c0c8a69a64799af5595f51909f9', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
496
+ } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '3d555ea40fe5d9f3685fc6dafa4b6fad16732091', slot: "footer" }, h("div", { key: '1b4c6834899efbd09f3ea1db251999f50ec655b2', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '0818a75a444cca510c7f0cfea2ec53414c12db53', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
483
497
  ? salla.lang.get('common.elements.saving')
484
498
  : salla.lang.get('common.elements.save')))))));
485
499
  }
@@ -499,39 +513,71 @@ const SallaMultipleBundleProductSlider = class {
499
513
  this.productOptionsSelected = createEvent(this, "productOptionsSelected");
500
514
  /** A dictionary tracking which product IDs are currently selected per section. */
501
515
  this.selectedProducts = {};
516
+ /** When true, the selected product cannot be deselected (single-product section with min = 1). */
517
+ this.isSelectionLocked = false;
518
+ /** Maximum selectable products for this section (empty max → all products in section). */
519
+ this.selectionLimit = 0;
502
520
  this.savedOptionsByInstance = {};
503
521
  this.handleProductClick = (product, productIndex) => {
504
- // Find the checkbox input for this product
505
- const checkboxId = this.generateEventName(this.section.id, productIndex);
506
- const checkbox = document.getElementById(checkboxId);
507
- if (!checkbox)
508
- return;
509
- if (checkbox) {
510
- const willBeChecked = !checkbox.checked;
511
- if (!willBeChecked) {
512
- this.dispatchClearOptionsEvent(product, productIndex);
513
- this.clearSavedOptionsState(this.section.id, productIndex);
522
+ const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
523
+ const checkbox = this.getCheckbox(this.section.id, productIndex);
524
+ if (isChecked && this.isSelectionLocked) {
525
+ if (checkbox) {
526
+ checkbox.checked = true;
514
527
  }
515
- // Toggle the checkbox state
516
- checkbox.checked = willBeChecked;
517
- // Dispatch a change event to trigger form validation/submission
518
- requestAnimationFrame(() => {
519
- const changeEvent = new window.Event('change', { bubbles: true });
520
- checkbox.dispatchEvent(changeEvent);
528
+ return;
529
+ }
530
+ if (!isChecked && this.isMaxSelectionReached() && this.selectionLimit !== 1) {
531
+ return;
532
+ }
533
+ // max = 1: parent replaces selection and syncs all checkboxes in the section
534
+ if (this.selectionLimit === 1 && !isChecked) {
535
+ this.productSelected.emit({
536
+ product,
537
+ sectionId: this.section.id,
521
538
  });
539
+ return;
540
+ }
541
+ if (!checkbox)
542
+ return;
543
+ const willBeChecked = !checkbox.checked;
544
+ if (!willBeChecked) {
545
+ this.dispatchClearOptionsEvent(product, productIndex);
546
+ this.clearSavedOptionsState(this.section.id, productIndex);
522
547
  }
548
+ checkbox.checked = willBeChecked;
549
+ requestAnimationFrame(() => {
550
+ const changeEvent = new window.Event('change', { bubbles: true });
551
+ checkbox.dispatchEvent(changeEvent);
552
+ });
523
553
  this.productSelected.emit({
524
554
  product,
525
555
  sectionId: this.section.id,
526
556
  });
527
557
  };
528
558
  this.handleOptionsClick = (product) => {
559
+ const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
560
+ if (!isChecked && this.isMaxSelectionReached() && this.selectionLimit !== 1) {
561
+ return;
562
+ }
529
563
  this.productOptionsSelected.emit({
530
564
  product,
531
565
  sectionId: this.section.id,
532
566
  });
533
567
  };
534
568
  }
569
+ getSelectedCount() {
570
+ return this.selectedProducts[this.section?.id]?.size ?? 0;
571
+ }
572
+ isMaxSelectionReached() {
573
+ return this.selectionLimit > 1 && this.getSelectedCount() >= this.selectionLimit;
574
+ }
575
+ isProductSelectionDisabled(product, isChecked) {
576
+ if (product.quantity === 0) {
577
+ return true;
578
+ }
579
+ return !isChecked && this.isMaxSelectionReached();
580
+ }
535
581
  getProductInstanceKey(sectionId, productIndex) {
536
582
  return `${sectionId}::${productIndex}`;
537
583
  }
@@ -577,9 +623,26 @@ const SallaMultipleBundleProductSlider = class {
577
623
  generateEventName(sectionId, productIndex) {
578
624
  return `bundle[${sectionId}][${productIndex}][id]`;
579
625
  }
626
+ getCheckbox(sectionId, productIndex) {
627
+ const name = this.generateEventName(sectionId, productIndex);
628
+ return this.host.querySelector(`input.s-multiple-bundle-product-checkbox[name="${name}"]`);
629
+ }
630
+ preventLockedDeselect(event, isChecked) {
631
+ if (!this.isSelectionLocked || !isChecked) {
632
+ return;
633
+ }
634
+ event.preventDefault();
635
+ event.stopPropagation();
636
+ const checkbox = event.target;
637
+ if (checkbox?.type === 'checkbox') {
638
+ checkbox.checked = true;
639
+ }
640
+ }
580
641
  render() {
581
- return (h(Host, { key: 'ecdac4638007d9435ec8b06f32114a0dada03b86' }, h("salla-slider", { key: 'c245e7dcfd157908063fd5ec13c6d49f8862dd18', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '17bdd6def2ff6f1d2ad22fa8b5299fc0000b1e82', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
642
+ return (h(Host, { key: 'd52eb26454606df2526fa4c086110a54f7466644' }, h("salla-slider", { key: '1aa1fce5943c3721a8e4f762171c864d9097bb28', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '9342381bc43389bae48b906a1ab23a4f3cf8d00a', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
582
643
  const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
644
+ const isLocked = isChecked && this.isSelectionLocked;
645
+ const isDisabled = this.isProductSelectionDisabled(product, isChecked);
583
646
  const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
584
647
  const optionsButtonLabel = hasSavedOptions
585
648
  ? salla.lang.getWithDefault('pages.products.edit_selected_options', 'تعديل الخيارات')
@@ -587,9 +650,7 @@ const SallaMultipleBundleProductSlider = class {
587
650
  let optionsArrowIcon = salla.config.get('theme.is_rtl', true)
588
651
  ? ArrowLeftIcon
589
652
  : ArrowRightIcon;
590
- return (h("div", { class: `s-multiple-bundle-product-slide-one-third ${product.quantity == 0
591
- ? 's-multiple-bundle-product-slide-one-third-disabled'
592
- : ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, name: this.generateEventName(this.section.id, productIndex), value: product.id }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.regular_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, optionsButtonLabel, h("span", { class: "s-multiple-bundle-product-button-icon", innerHTML: optionsArrowIcon })))))));
653
+ return (h("div", { class: `s-multiple-bundle-product-slide-one-third${isDisabled ? ' s-multiple-bundle-product-slide-one-third-disabled' : ''}`, key: product.id }, h("div", { class: "s-multiple-bundle-product-card" }, h("div", { class: "s-multiple-bundle-product-image-wrapper", onClick: () => this.handleProductClick(product, productIndex) }, h("input", { id: this.generateEventName(this.section.id, productIndex), type: "checkbox", class: "s-multiple-bundle-product-checkbox", checked: isChecked, "data-selection-locked": isLocked ? 'true' : undefined, name: this.generateEventName(this.section.id, productIndex), value: product.id, onClick: event => this.preventLockedDeselect(event, isChecked), onChange: event => this.preventLockedDeselect(event, isChecked) }), h("img", { src: product.image.url || salla.url.cdn('images/s-empty.png'), loading: "lazy", alt: product.image.alt || product.name, class: "s-multiple-bundle-product-image" })), h("div", { class: "s-multiple-bundle-product-content-wrapper" }, h("div", { class: "s-multiple-bundle-product-content" }, h("div", { class: "s-multiple-bundle-product-details" }, h("div", { class: "s-multiple-bundle-product-title-wrapper" }, h("h2", { class: "s-multiple-bundle-product-title" }, h("a", { href: product?.url || '#', target: "_blank", rel: "noopener noreferrer" }, product.name))), h("div", { class: "s-multiple-bundle-product-price-wrapper" }, h("span", { class: "s-multiple-bundle-product-price" }, h("span", { innerHTML: salla.money(product.price) })), product.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-price-discount" }, h("span", { innerHTML: salla.money(product.regular_price) }))))), product.quantity_in_group > 0 && product.quantity !== 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.pieces'), h("span", null, product.quantity_in_group))), product.quantity === 0 && (h("span", { class: "s-multiple-bundle-product-badge" }, salla.lang.get('pages.products.quantity_in_group_finished')))), product.options?.length > 0 && (h("button", { class: "s-multiple-bundle-product-button", onClick: () => this.handleOptionsClick(product), type: "button" }, optionsButtonLabel, h("span", { class: "s-multiple-bundle-product-button-icon", innerHTML: optionsArrowIcon })))))));
593
654
  })))));
594
655
  }
595
656
  get host() { return getElement(this); }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaMultipleBundleProductCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h } from './index-XEcnGv2r.js';
5
5
  import { T as TagMoneyIcon } from './tag-money-CJUR4sUM.js';
6
6
  import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
6
6
  import { S as SITag } from './tag-cgSL_BIo.js';
7
7
  import { S as SICart2 } from './cart2-D1s2kXqL.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaOrderDetailsMultipleBundleProductCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  var copyIcon = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaOrderDetailsCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-XEcnGv2r.js';
5
5
  import { a as getOrderEditProductMaxQuantity } from './helpers-DR_vlSvU.js';
6
6
  import './interfaces-CoQJOPRz.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaOrderEditProductCardCss = ":host{display:block;min-width:0}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
  import { g as getOrderItemSelectedOptions, a as getOrderEditProductMaxQuantity, c as clampOrderEditQuantity, u as updateOrderItems, r as removeOrderItems, m as mergePayloadItems, b as cloneOrderEditProduct, f as findMergeableItem, d as updateAddedPayloadList, e as upsertPayloadUpdateList, h as createAddedOrderItem, i as buildSavePayload } from './helpers-DR_vlSvU.js';
6
6
  import './interfaces-CoQJOPRz.js';
7
7
 
@@ -42,6 +42,11 @@ const SallaOrderEdit = class {
42
42
  return Array.from(new URLSearchParams(query)).some(([key, value]) => (value === 'product' &&
43
43
  /^filters\[types\](?:\[(?:\d*)\])?$/.test(key)));
44
44
  };
45
+ this.hasExcludedCategoriesFilter = (url) => {
46
+ const queryStart = url.indexOf('?');
47
+ const query = (queryStart >= 0 ? url.slice(queryStart + 1) : url).split('#')[0];
48
+ return Array.from(new URLSearchParams(query)).some(([key]) => (/^filters(?:\[|%5B)excluded_categories(?:\]|%5D)(?:\[|%5B)(?:\d*)(?:\]|%5D)$/.test(key)));
49
+ };
45
50
  this.normalizeProductsListArrayParams = (url) => {
46
51
  return url.replace(/(^|[?&])(includes|source_value|filters(?:\[|%5B)[^&=\]%]+?(?:\]|%5D))(\[|%5B)\d+(\]|%5D)(?==)/gi, (_, sep, name, open, close) => `${sep}${name}${open}${close}`);
47
52
  };
@@ -51,14 +56,33 @@ const SallaOrderEdit = class {
51
56
  return;
52
57
  }
53
58
  ctx.url = this.normalizeProductsListArrayParams(ctx.url);
54
- if (this.hasProductTypeFilter(ctx.url)) {
55
- return;
59
+ if (!this.hasProductTypeFilter(ctx.url)) {
60
+ ctx.url += `${ctx.url.includes('?') ? '&' : '?'}filters[types][]=product`;
61
+ }
62
+ const excludedIds = this.getParsedExcludedCategories();
63
+ if (excludedIds.length > 0 && !this.hasExcludedCategoriesFilter(ctx.url)) {
64
+ const params = excludedIds.map(id => `filters[excluded_categories][]=${encodeURIComponent(id)}`).join('&');
65
+ ctx.url += `${ctx.url.includes('?') ? '&' : '?'}${params}`;
56
66
  }
57
- ctx.url += `${ctx.url.includes('?') ? '&' : '?'}filters[types][]=product`;
58
67
  };
59
68
  this.defaultProductsListSource = 'latest';
60
69
  this.debouncedProductSearch = salla.helpers.debounce((query) => this.applyProductSearch(query), 500);
61
70
  }
71
+ getParsedExcludedCategories() {
72
+ if (!this.excludedCategories) {
73
+ return [];
74
+ }
75
+ try {
76
+ const parsed = typeof this.excludedCategories === 'string' ? JSON.parse(this.excludedCategories) : this.excludedCategories;
77
+ if (!Array.isArray(parsed)) {
78
+ return [];
79
+ }
80
+ return parsed.filter(id => Number.isInteger(id) && id > 0);
81
+ }
82
+ catch {
83
+ return [];
84
+ }
85
+ }
62
86
  async componentWillLoad() {
63
87
  this.setupProductsPanelViewportQuery();
64
88
  await salla.onReady();
@@ -457,7 +481,7 @@ const SallaOrderEdit = class {
457
481
  const orderItem = this.order?.items?.find(oi => oi.id == item.id);
458
482
  const imageUrl = orderItem?.product?.image?.url;
459
483
  const optionsLabel = item.options?.join('/ ');
460
- return (h("div", { class: "s-order-edit-modal-item" }, h("div", { class: "s-order-edit-modal-item-start" }, imageUrl && (h("img", { src: imageUrl, alt: item.name, class: "s-order-edit-modal-item-image" })), h("div", null, h("p", { class: "s-order-edit-modal-item-name" }, item.name), optionsLabel && (h("span", { class: "s-order-edit-modal-item-options" }, optionsLabel)))), h("div", { class: "s-order-edit-modal-item-end" }, h("span", { class: "s-order-edit-modal-item-price", innerHTML: salla.money(item.price.amount) }))));
484
+ return (h("div", { class: "s-order-edit-modal-item" }, h("div", { class: "s-order-edit-modal-item-start" }, imageUrl && (h("img", { src: imageUrl, alt: item.name, class: "s-order-edit-modal-item-image" })), h("div", null, h("p", { class: "s-order-edit-modal-item-name" }, item.name), optionsLabel && (h("span", { class: "s-order-edit-modal-item-options" }, optionsLabel)))), h("div", { class: "s-order-edit-modal-item-end" }, h("span", { class: "s-order-edit-modal-item-quantity", dir: "ltr", innerHTML: item.quantity + " x " + item.price.amount }), h("span", { class: "s-order-edit-modal-item-price", innerHTML: salla.money(item.price.amount * item.quantity) }))));
461
485
  }))), preview?.totals?.updated_products_total && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-row-label" }, salla.lang.getWithDefault('pages.orders.modified_products_total', 'مجموع المنتجات المعدلة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(preview.totals.updated_products_total.amount) }))), taxAmount > 0 && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-tax-label" }, h("i", { class: "sicon-info-circle s-order-edit-modal-tax-icon" }), salla.lang.getWithDefault('pages.orders.vat', 'ضريبة القيمة المضافة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(taxAmount) }))), preview?.totals?.total && (h("div", { class: "s-order-edit-modal-total" }, h("span", { class: "s-order-edit-modal-total-label" }, salla.lang.getWithDefault('pages.orders.order_total', 'اجمالي الطلب')), h("span", { class: "s-order-edit-modal-total-value", innerHTML: salla.money(preview.totals.total.amount) }))), hasRefundAmount && (h("div", { class: "s-order-edit-modal-refund" }, h("i", { class: "sicon-info-circle s-order-edit-modal-refund-icon" }), h("p", { class: "s-order-edit-modal-refund-text" }, salla.lang.getWithDefault('pages.orders.refund_message', 'سيتم تحويل فارق المبلغ على نفس وسيلة الدفع')))), h("div", { class: "s-order-edit-modal-btn-wrapper" }, h("salla-button", { onClick: () => this.handleConfirm() }, hasRemainingAmount
462
486
  ? salla.lang.getWithDefault('pages.orders.pay_difference', 'دفع فارق المبلغ')
463
487
  : hasRefundAmount
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h } from './index-XEcnGv2r.js';
5
5
  import { i as iconCopy } from './swap-stroke-DqDX5na4.js';
6
6
  import { S as SICheck } from './check-BZp0rKEO.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaOrderTotalsCardCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaPaymentsCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
6
  var Inbox = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-XEcnGv2r.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
 
6
- const sallaProductCardEmbedCss = "";
6
+ const sallaProductCardEmbedCss = ":host(:has(.s-product-card-embed-card-align-left)){float:inline-start;max-width:12rem;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host(:has(.s-product-card-embed-card-align-right)){float:inline-end;max-width:12rem;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host(:has(.s-product-card-embed-card-align-center)){display:block;clear:both;max-width:12rem;margin-block:1em;margin-inline:auto}:host(:has(.s-product-card-embed-card-align-left)) .s-product-card-embed-card-align-left,:host(:has(.s-product-card-embed-card-align-right)) .s-product-card-embed-card-align-right{float:none}";
7
7
 
8
8
  const SallaProductCardEmbed = class {
9
9
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
 
6
6
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
7
7
  import { H as Helper } from './Helper-DFMXF2_h.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h } from './index-XEcnGv2r.js';
5
5
 
6
6
  const sallaProgressBarCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { S as SIiPhoneX } from './iphone-x-CciN5Q_x.js';
6
6
  import { S as SIMail } from './mail-DLNIOD9t.js';
7
7
  import { S as SICancel } from './cancel-8Tsmrwno.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { W as WishListIcon } from './star-ZT7ehBBk.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
7
  import { H as Helper } from './Helper-DFMXF2_h.js';
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DQ335bXf.js';
5
- import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-BiPE31Ri.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-XEcnGv2r.js';
5
+ import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-D8zpoRMj.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
7
  import { S as SITag } from './tag-cgSL_BIo.js';
8
8
  import { S as SICheck } from './check-BZp0rKEO.js';
9
9
  import { S as SICancel } from './cancel-8Tsmrwno.js';
10
- import { T as TrackedPromise } from './tracked-promise-BhtDirMQ.js';
10
+ import { T as TrackedPromise } from './tracked-promise-DhOWivzL.js';
11
11
 
12
12
  const sallaLoyaltyProgramCss$3 = "";
13
13
 
@@ -218,25 +218,30 @@ const SallaRewardExchange = class {
218
218
  closeModals();
219
219
  }, timeout);
220
220
  }
221
+ getApiErrorMessage(error) {
222
+ return error?.response?.data?.error?.message
223
+ || error?.response?.data?.message
224
+ || (typeof error === 'string' ? error : null)
225
+ || salla.lang.get('common.errors.error_occurred');
226
+ }
221
227
  async handleConfirm() {
222
228
  try {
223
229
  await this.exchange(this.prize.id, null, this.productId);
224
230
  this.reset(300);
225
231
  }
226
232
  catch (error) {
227
- salla.logger.error(error);
228
- // Do NOT close the modal; let the error state render so the user sees feedback.
233
+ salla.notify.error(this.getApiErrorMessage(error));
229
234
  }
230
235
  }
231
236
  handleCancel() {
232
237
  this.reset(0);
233
238
  }
234
239
  render() {
235
- return (h(Host, { key: '9f9e5833308a37e4fdf6b6032e42b094544a66ee' }, h("div", { key: 'a85b810c09dc44de7ed8d6889ae00c488f49bf2e', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '50fc0bca341e0650a8fe0fdeb5d93353ea331643', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '978449d432fe380771a43dc9f99c69065889af43', innerHTML: SIGift })), h("h2", { key: 'bc271df18a64c7931cc4741f1202485f4ac158f9' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '1d6fe9a9bbedd1701a7a792e0d3641d0fe549434' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: 'a9b451ca79b31bb6446d65ce74162636ab18d9a0' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: '0ce60c117ab20043bd813f4a71f152a5e680fea5' }, "(", this.prize.name, ")"))), h("div", { key: '903aed1d96b6fb7ca76eebde9fdca90cbeae7d40', class: "s-loyalty-program-exchange-btns" }, h("button", { key: 'ce35e626628d93b949d29d5500bff5c69b9ef917', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: 'cd65c0ffc2ded6b3be8762c6a978be62247d751c', style: {
240
+ return (h(Host, { key: 'ceecba37884a11443b52b76dad69bd164b52b788' }, h("div", { key: '598f185363b917969b9de0fb6a536884d6578c95', class: "s-loyalty-program-exchange-heading" }, h("div", { key: 'a2aa6b15d97533a973f7f2fb6a2cf517c147367d', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '9745001d514643add62fe9a64df7fc2c0a694513', innerHTML: SIGift })), h("h2", { key: '4819327aacc1307c0f75014d9faef50f55115289' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: 'b39c99abcefb0f3baf609cd21049b083a115cdef' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '50852d87c9686f66beddc7b0a0a3062f0ced1a61' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: '5a4baa0f02859ced6fdcf7ce77c31bf9b27c45e6' }, "(", this.prize.name, ")"))), h("div", { key: 'b1f1067bd0f3a84231ac017f4b66a71277a5d209', class: "s-loyalty-program-exchange-btns" }, h("button", { key: '7d4ce6c08fcac58290b364a0df55f8acb715d362', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: 'ef1deb96c4bbb2843ae088b539848c15aacdb244', style: {
236
241
  opacity: this.exchange.status !== 'pending' ? '1' : '0',
237
- } }, salla.lang.get('common.elements.confirm')), h("span", { key: '7cf2af5515142b582b80ec4ad692f7d6e3475142', class: "s-loyalty-program-exchange-loading", style: {
242
+ } }, salla.lang.get('common.elements.confirm')), h("span", { key: '0f949386c85d7544f7098e2bdc8c7ce4390c4383', class: "s-loyalty-program-exchange-loading", style: {
238
243
  opacity: this.exchange.status === 'pending' ? '1' : '0',
239
- } }, h("salla-loading", { key: 'd75aaa299b326ab9b15f9e77c122d3fca090273a', color: "primary", size: 24 }))), h("button", { key: 'beadc051a5a75d34ea7a906c0ce97124bfa02596', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
244
+ } }, h("salla-loading", { key: '9cdfbfdc7ebfb2e1874f1956560dc464e4aa2a9f', color: "primary", size: 24 }))), h("button", { key: '79a2e8b44be5eb4b3ec5f1a285a8f4eba5324814', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
240
245
  }
241
246
  };
242
247
  __decorate([
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, H as Host } from './index-XEcnGv2r.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DQ335bXf.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-XEcnGv2r.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';