@salla.sa/twilight-components 2.14.506 → 2.14.507

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 (329) hide show
  1. package/dist/cjs/{filepond-CQFqhIgb.js → filepond-CvJ5cEog.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CTDc0IDu.js → filepond-plugin-file-poster-BaTGVcva.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DeXqfYrx.js → filepond-plugin-file-validate-size-DLrFHUWL.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DoefblL8.js → filepond-plugin-file-validate-type-BU1HIA61.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-C99AhKIk.js → filepond-plugin-image-edit-CF5DJ9dM.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BTZtq0LO.js → filepond-plugin-image-exif-orientation-DLrU2VJ-.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CU543Avx.js → filepond-plugin-image-preview-D_3BTg6j.js} +1 -1
  8. package/dist/cjs/{functions-Brh5XeCA.js → functions-Chjqknfu.js} +1 -1
  9. package/dist/cjs/{index-9k1NC_jh.js → index-D4085yXe.js} +1 -1
  10. package/dist/cjs/{index-Bo4N7lyD.js → index-DDEOCBF1.js} +2 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  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-basket-gap.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
  48. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  54. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wallet.cjs.entry.js +20 -5
  105. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  106. package/dist/cjs/{tracked-promise-D50-kn8O.js → tracked-promise-C69FwhCX.js} +1 -1
  107. package/dist/cjs/twilight.cjs.js +1 -1
  108. package/dist/cjs/{vanilla-picker-Bd-sUQLP.js → vanilla-picker-BDDWkkNu.js} +1 -1
  109. package/dist/collection/components/salla-wallet/salla-wallet.js +19 -4
  110. package/dist/components/index.js +2 -2
  111. package/dist/components/salla-wallet.js +19 -4
  112. package/dist/esm/{filepond-DJlkJWaI.js → filepond-BfxOWgeR.js} +1 -1
  113. package/dist/esm/{filepond-plugin-file-poster-Cxg1C-ZT.js → filepond-plugin-file-poster-Dt5Vnuk4.js} +1 -1
  114. package/dist/esm/{filepond-plugin-file-validate-size-D7U4TtzO.js → filepond-plugin-file-validate-size-D5WrsM0T.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-validate-type-Bc55hyvc.js → filepond-plugin-file-validate-type-CjaeW32q.js} +1 -1
  116. package/dist/esm/{filepond-plugin-image-edit-BSZHdCO-.js → filepond-plugin-image-edit-BTzFile_.js} +1 -1
  117. package/dist/esm/{filepond-plugin-image-exif-orientation-DEVx9XUq.js → filepond-plugin-image-exif-orientation-DSNjqS_v.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-preview-B55MpdBs.js → filepond-plugin-image-preview-CCGiOVLr.js} +1 -1
  119. package/dist/esm/{functions-3aFA0yP9.js → functions-D05iBLQe.js} +1 -1
  120. package/dist/esm/{index-B5uQvRDw.js → index-BTUirq4N.js} +1 -1
  121. package/dist/esm/{index-DpB3UAAA.js → index-DpTbeb50.js} +2 -2
  122. package/dist/esm/loader.js +2 -2
  123. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  124. package/dist/esm/salla-accordion_6.entry.js +1 -1
  125. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  126. package/dist/esm/salla-advertisement.entry.js +1 -1
  127. package/dist/esm/salla-alert_2.entry.js +1 -1
  128. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  129. package/dist/esm/salla-apps-icons.entry.js +1 -1
  130. package/dist/esm/salla-badge.entry.js +1 -1
  131. package/dist/esm/salla-basket-gap.entry.js +1 -1
  132. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  133. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  134. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  135. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  136. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  137. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  138. package/dist/esm/salla-comment-factors.entry.js +1 -1
  139. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  140. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  141. package/dist/esm/salla-contacts.entry.js +1 -1
  142. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  143. package/dist/esm/salla-count-down_2.entry.js +1 -1
  144. package/dist/esm/salla-custom-fields.entry.js +1 -1
  145. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  146. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  147. package/dist/esm/salla-filters-widget.entry.js +1 -1
  148. package/dist/esm/salla-filters.entry.js +1 -1
  149. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  150. package/dist/esm/salla-gifting.entry.js +1 -1
  151. package/dist/esm/salla-hook.entry.js +1 -1
  152. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  153. package/dist/esm/salla-installment.entry.js +1 -1
  154. package/dist/esm/salla-list-tile.entry.js +1 -1
  155. package/dist/esm/salla-localization-modal.entry.js +1 -1
  156. package/dist/esm/salla-login-modal.entry.js +1 -1
  157. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  158. package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
  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-points-history.entry.js +1 -1
  163. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  164. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  165. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  166. package/dist/esm/salla-loyalty.entry.js +1 -1
  167. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  168. package/dist/esm/salla-map_2.entry.js +1 -1
  169. package/dist/esm/salla-menu.entry.js +1 -1
  170. package/dist/esm/salla-metadata.entry.js +1 -1
  171. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  172. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  173. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  174. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  175. package/dist/esm/salla-notification-item.entry.js +1 -1
  176. package/dist/esm/salla-notifications.entry.js +1 -1
  177. package/dist/esm/salla-offer-modal.entry.js +1 -1
  178. package/dist/esm/salla-offer.entry.js +1 -1
  179. package/dist/esm/salla-order-branch.entry.js +1 -1
  180. package/dist/esm/salla-order-cancel.entry.js +1 -1
  181. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  182. package/dist/esm/salla-order-details-options.entry.js +1 -1
  183. package/dist/esm/salla-order-details.entry.js +1 -1
  184. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  185. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  186. package/dist/esm/salla-order-edit.entry.js +1 -1
  187. package/dist/esm/salla-order-summary.entry.js +1 -1
  188. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  189. package/dist/esm/salla-orders.entry.js +1 -1
  190. package/dist/esm/salla-payments.entry.js +1 -1
  191. package/dist/esm/salla-placeholder.entry.js +1 -1
  192. package/dist/esm/salla-price-range.entry.js +1 -1
  193. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  194. package/dist/esm/salla-product-card_2.entry.js +1 -1
  195. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  196. package/dist/esm/salla-products-list.entry.js +1 -1
  197. package/dist/esm/salla-quick-order.entry.js +1 -1
  198. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  199. package/dist/esm/salla-rating-modal.entry.js +1 -1
  200. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  201. package/dist/esm/salla-scopes.entry.js +1 -1
  202. package/dist/esm/salla-search.entry.js +1 -1
  203. package/dist/esm/salla-skeleton.entry.js +1 -1
  204. package/dist/esm/salla-slider.entry.js +1 -1
  205. package/dist/esm/salla-social-share.entry.js +1 -1
  206. package/dist/esm/salla-social.entry.js +1 -1
  207. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  208. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  209. package/dist/esm/salla-tooltip.entry.js +1 -1
  210. package/dist/esm/salla-trust-badges.entry.js +1 -1
  211. package/dist/esm/salla-user-menu.entry.js +1 -1
  212. package/dist/esm/salla-user-profile.entry.js +1 -1
  213. package/dist/esm/salla-user-settings.entry.js +1 -1
  214. package/dist/esm/salla-verify.entry.js +1 -1
  215. package/dist/esm/salla-wallet.entry.js +20 -5
  216. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  217. package/dist/esm/{tracked-promise-DIZYgNBp.js → tracked-promise-DBueMSK5.js} +1 -1
  218. package/dist/esm/twilight.js +2 -2
  219. package/dist/esm/{vanilla-picker-DxRdT8WJ.js → vanilla-picker-CWFpeA2O.js} +1 -1
  220. package/dist/twilight/{p-d6d1f072.entry.js → p-036bacea.entry.js} +1 -1
  221. package/dist/twilight/{p-0de7fca3.entry.js → p-059447b5.entry.js} +1 -1
  222. package/dist/twilight/{p-9f90b7d2.entry.js → p-0d391a95.entry.js} +1 -1
  223. package/dist/twilight/{p-d22cfff8.entry.js → p-1208db60.entry.js} +1 -1
  224. package/dist/twilight/{p-0e5abc9e.entry.js → p-163f862d.entry.js} +1 -1
  225. package/dist/twilight/{p-c10ff742.entry.js → p-17682453.entry.js} +1 -1
  226. package/dist/twilight/{p-322c22ec.entry.js → p-1c0a22fc.entry.js} +1 -1
  227. package/dist/twilight/{p-b37d2e41.entry.js → p-1cac053d.entry.js} +1 -1
  228. package/dist/twilight/{p-52086d78.entry.js → p-1cb73a8f.entry.js} +1 -1
  229. package/dist/twilight/{p-d0849886.entry.js → p-21fe599c.entry.js} +1 -1
  230. package/dist/twilight/{p-68b0e437.entry.js → p-2426ecc1.entry.js} +1 -1
  231. package/dist/twilight/{p-f00c30a1.entry.js → p-249db53c.entry.js} +1 -1
  232. package/dist/twilight/{p-5e2920de.entry.js → p-24c84285.entry.js} +1 -1
  233. package/dist/twilight/{p-7d5a3995.entry.js → p-2e16cb11.entry.js} +1 -1
  234. package/dist/twilight/{p-8961c821.entry.js → p-2edbc237.entry.js} +1 -1
  235. package/dist/twilight/{p-250d3b32.entry.js → p-374bbf0c.entry.js} +1 -1
  236. package/dist/twilight/{p-d004e1bb.entry.js → p-3a18c5f0.entry.js} +1 -1
  237. package/dist/twilight/{p-7271d781.entry.js → p-3a41ac1c.entry.js} +1 -1
  238. package/dist/twilight/{p-f879b71d.entry.js → p-3c8e7fa5.entry.js} +1 -1
  239. package/dist/twilight/{p-4a041952.entry.js → p-429fc3c7.entry.js} +1 -1
  240. package/dist/twilight/{p-568dcceb.entry.js → p-43a205c5.entry.js} +1 -1
  241. package/dist/twilight/{p-ea84a210.entry.js → p-4402fa6e.entry.js} +1 -1
  242. package/dist/twilight/{p-b7c129de.entry.js → p-4448d43a.entry.js} +1 -1
  243. package/dist/twilight/{p-ba7f4e42.entry.js → p-4a367dba.entry.js} +1 -1
  244. package/dist/twilight/{p-e55c0663.entry.js → p-4bf27bdf.entry.js} +1 -1
  245. package/dist/twilight/{p-304c100d.entry.js → p-4e82cbd2.entry.js} +1 -1
  246. package/dist/twilight/{p-5ef6af67.entry.js → p-4f78e05a.entry.js} +1 -1
  247. package/dist/twilight/{p-0c23685b.entry.js → p-518a0343.entry.js} +1 -1
  248. package/dist/twilight/{p-b3dfff70.entry.js → p-537127ba.entry.js} +1 -1
  249. package/dist/twilight/{p-74c99ff0.entry.js → p-59377e23.entry.js} +1 -1
  250. package/dist/twilight/{p-246f44ed.entry.js → p-5adb2573.entry.js} +1 -1
  251. package/dist/twilight/{p-dae97b2d.entry.js → p-5b2a71b6.entry.js} +1 -1
  252. package/dist/twilight/{p-d7a160a7.entry.js → p-5d8a987d.entry.js} +1 -1
  253. package/dist/twilight/{p-ed9919cd.entry.js → p-5e85ab72.entry.js} +1 -1
  254. package/dist/twilight/{p-591b2f9d.entry.js → p-5fa56bf3.entry.js} +1 -1
  255. package/dist/twilight/{p-5aefa966.entry.js → p-604317c4.entry.js} +1 -1
  256. package/dist/twilight/{p-47314e12.entry.js → p-609e9adc.entry.js} +1 -1
  257. package/dist/twilight/{p-31396c77.entry.js → p-61c2bd59.entry.js} +1 -1
  258. package/dist/twilight/{p-224d0232.entry.js → p-61cac25a.entry.js} +1 -1
  259. package/dist/twilight/{p-3541ed02.entry.js → p-629ce572.entry.js} +1 -1
  260. package/dist/twilight/{p-127fd5c4.entry.js → p-65c395b2.entry.js} +1 -1
  261. package/dist/twilight/{p-c61cf7ef.entry.js → p-69850e8b.entry.js} +1 -1
  262. package/dist/twilight/{p-4ee5d25f.entry.js → p-69df3f0f.entry.js} +1 -1
  263. package/dist/twilight/{p-0b7cba6e.entry.js → p-6d6faf9e.entry.js} +1 -1
  264. package/dist/twilight/{p-0916141f.entry.js → p-6e88b2ee.entry.js} +1 -1
  265. package/dist/twilight/{p-eb8ccf1d.entry.js → p-6f74c650.entry.js} +1 -1
  266. package/dist/twilight/{p-34166195.entry.js → p-70bad7c7.entry.js} +1 -1
  267. package/dist/twilight/{p-7776af70.entry.js → p-7272b850.entry.js} +1 -1
  268. package/dist/twilight/{p-7c347d49.entry.js → p-743c3869.entry.js} +1 -1
  269. package/dist/twilight/{p-f5905f20.entry.js → p-77e452bb.entry.js} +1 -1
  270. package/dist/twilight/{p-3cfb3db1.entry.js → p-789b3fd9.entry.js} +1 -1
  271. package/dist/twilight/{p-afc29ef5.entry.js → p-7a4c9484.entry.js} +1 -1
  272. package/dist/twilight/{p-a75fab7d.entry.js → p-7c0ffbd5.entry.js} +1 -1
  273. package/dist/twilight/{p-01061d2b.entry.js → p-7c286ef2.entry.js} +1 -1
  274. package/dist/twilight/{p-c3db8509.entry.js → p-818c83b3.entry.js} +1 -1
  275. package/dist/twilight/{p-7d197b66.entry.js → p-85df37ed.entry.js} +1 -1
  276. package/dist/twilight/{p-98e25f3a.entry.js → p-8dd123f2.entry.js} +1 -1
  277. package/dist/twilight/{p-b8ecee79.entry.js → p-8e820727.entry.js} +1 -1
  278. package/dist/twilight/{p-ba11a528.entry.js → p-9029c370.entry.js} +1 -1
  279. package/dist/twilight/{p-b394d2ff.entry.js → p-91969734.entry.js} +1 -1
  280. package/dist/twilight/{p-d493d768.entry.js → p-92f654cd.entry.js} +1 -1
  281. package/dist/twilight/{p-89a74a55.entry.js → p-948fb25a.entry.js} +1 -1
  282. package/dist/twilight/{p-bedece0c.entry.js → p-950cd62e.entry.js} +1 -1
  283. package/dist/twilight/{p-f13e8759.entry.js → p-9c2c481e.entry.js} +1 -1
  284. package/dist/twilight/{p-64bf5054.entry.js → p-9d4f612c.entry.js} +1 -1
  285. package/dist/twilight/{p-c6a4bb6b.entry.js → p-9f8b8f9b.entry.js} +1 -1
  286. package/dist/twilight/{p-416f536b.entry.js → p-9fed2cae.entry.js} +1 -1
  287. package/dist/twilight/{p-CUT8CVCo.js → p-Bo_bRDhK.js} +1 -1
  288. package/dist/twilight/{p-tEBqC22E.js → p-C3eic20c.js} +1 -1
  289. package/dist/twilight/{p-Di2RDF2Q.js → p-C4y1c3K3.js} +2 -2
  290. package/dist/twilight/{p-0sBrxdoA.js → p-COmDVrcC.js} +1 -1
  291. package/dist/twilight/{p-B7nGGDcs.js → p-CnfHXyEu.js} +1 -1
  292. package/dist/twilight/{p-DshtSdt6.js → p-DjsKwETU.js} +1 -1
  293. package/dist/twilight/{p-DpB3UAAA.js → p-DpTbeb50.js} +1 -1
  294. package/dist/twilight/{p-INkBE6fU.js → p-M4ZqgDjz.js} +1 -1
  295. package/dist/twilight/{p-DVsQiYvE.js → p-RkvdV-0f.js} +1 -1
  296. package/dist/twilight/{p-86f0ba20.entry.js → p-a00bc904.entry.js} +1 -1
  297. package/dist/twilight/{p-16d19553.entry.js → p-a67f9586.entry.js} +1 -1
  298. package/dist/twilight/{p-7f699be4.entry.js → p-a7f2a74c.entry.js} +1 -1
  299. package/dist/twilight/{p-612ba607.entry.js → p-a877a3df.entry.js} +1 -1
  300. package/dist/twilight/{p-e1be7398.entry.js → p-a882a9df.entry.js} +1 -1
  301. package/dist/twilight/{p-3fddbb1a.entry.js → p-a9259c2c.entry.js} +1 -1
  302. package/dist/twilight/{p-4dc6b621.entry.js → p-abc06135.entry.js} +1 -1
  303. package/dist/twilight/{p-f8f07022.entry.js → p-ac4fffc8.entry.js} +1 -1
  304. package/dist/twilight/{p-5db94199.entry.js → p-ae778949.entry.js} +1 -1
  305. package/dist/twilight/{p-94fb9d40.entry.js → p-af2f5e14.entry.js} +1 -1
  306. package/dist/twilight/{p-4ec9995f.entry.js → p-b25dc971.entry.js} +1 -1
  307. package/dist/twilight/{p-Cv5nxveF.js → p-b3EkK54S.js} +1 -1
  308. package/dist/twilight/{p-75b51510.entry.js → p-bf15f029.entry.js} +1 -1
  309. package/dist/twilight/{p-fcba9566.entry.js → p-c7a42493.entry.js} +1 -1
  310. package/dist/twilight/{p-f870575b.entry.js → p-c7dd7c0b.entry.js} +1 -1
  311. package/dist/twilight/{p-ec9a05e6.entry.js → p-c88bacf7.entry.js} +1 -1
  312. package/dist/twilight/{p-16ce4fef.entry.js → p-d243c5c6.entry.js} +1 -1
  313. package/dist/twilight/{p-6c4504dc.entry.js → p-d2698f9a.entry.js} +1 -1
  314. package/dist/twilight/{p-dd4f363e.entry.js → p-d4338ca5.entry.js} +1 -1
  315. package/dist/twilight/{p-f7177061.entry.js → p-d5811dab.entry.js} +1 -1
  316. package/dist/twilight/{p-c8f1b2b7.entry.js → p-d5d143f8.entry.js} +1 -1
  317. package/dist/twilight/{p-e76c8fa2.entry.js → p-d9cb76fa.entry.js} +1 -1
  318. package/dist/twilight/{p-6e21cd17.entry.js → p-dced08eb.entry.js} +1 -1
  319. package/dist/twilight/{p-25535800.entry.js → p-e94e2b10.entry.js} +1 -1
  320. package/dist/twilight/{p-daeeea6d.entry.js → p-ed7de02d.entry.js} +1 -1
  321. package/dist/twilight/{p-a82e0f9b.entry.js → p-ee32d269.entry.js} +1 -1
  322. package/dist/twilight/p-f624f871.entry.js +4 -0
  323. package/dist/twilight/{p-aca94595.entry.js → p-fd208d08.entry.js} +1 -1
  324. package/dist/twilight/{p-CSZ-P877.js → p-ucgX82B7.js} +1 -1
  325. package/dist/twilight/{p-qtv65mC4.js → p-yMm9FfsL.js} +1 -1
  326. package/dist/twilight/twilight.esm.js +1 -1
  327. package/dist/types/components/salla-wallet/salla-wallet.d.ts +1 -0
  328. package/package.json +5 -5
  329. package/dist/twilight/p-0a9a252a.entry.js +0 -4
@@ -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, F as Fragment } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaMultipleBundleProductCartCss = "";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DpTbeb50.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}";
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.js';
5
5
  import { H as Helper } from './Helper-BQ9mvrt9.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.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, F as Fragment } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, F as Fragment } from './index-DpTbeb50.js';
5
5
 
6
6
  function parseMaybeJson(value, fallback) {
7
7
  if (typeof value !== 'string') {
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaOrderCancelCss = ".s-order-cancel-reason .s-order-cancel-radio::before,.s-order-cancel-reason .s-radio::before{content:\"\";width:10px;height:10px;border-radius:50%;transform:scale(0);transition:120ms transform ease-in-out;background-color:#fff;box-shadow:inset 1em 1em #fff}.s-order-cancel-reason .s-order-cancel-radio:checked::before,.s-order-cancel-reason .s-radio:checked::before{transform:scale(1);background-color:var(--color-primary);box-shadow:inset 1em 1em var(--color-primary)}";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.js';
5
5
  import { H as Helper } from './Helper-BQ9mvrt9.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DpTbeb50.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaProductCardEmbedCss = "@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{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, a as getElement } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { H as Helper } from './Helper-BQ9mvrt9.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DpTbeb50.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-BQ9mvrt9.js';
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { S as SIiPhoneX } from './iphone-x-CciN5Q_x.js';
6
6
  import { e as email } from './mail-DzAIgzdz.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, f as forceUpdate, h, H as Host, a as getElement } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { S as Star } from './star-CeFAfcTv.js';
6
6
  import { S as ShippingFast } from './shipping-fast-lMgMt31Q.js';
7
7
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
7
  import { I as ImageIcon } from './image-C-tzSDxw.js';
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
 
7
7
  const CACHE_TTL = 5 * 60 * 1000;
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { H as Helper } from './Helper-BQ9mvrt9.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, H as Host } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaSkeletonCss = ":host{display:block}";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
7
7
  import { e as email } from './mail-DzAIgzdz.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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, c as createEvent, a as getElement } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaTabContentCss = "";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaTrustBadgesCss = "";
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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
6
6
  import { B as BellRing } from './bell-ring-D3mWkc-3.js';
7
7
  import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h } from './index-DpTbeb50.js';
5
5
  import { G as Genders } from './interfaces-OF8QcbMM.js';
6
6
 
7
7
  const sallaUserProfileCss = ":host{display:block}";
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
 
6
6
  var Bullhorn = `<!-- 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-DpB3UAAA.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
  import { e as email } from './mail-DzAIgzdz.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -1,13 +1,14 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
7
7
 
8
8
  const SallaWalletTable = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
+ this.transactionsArray = [];
11
12
  this.isLoading = false;
12
13
  this.nextPageUrl = '';
13
14
  this.handleClick = () => {
@@ -17,13 +18,26 @@ const SallaWalletTable = class {
17
18
  componentWillLoad() {
18
19
  return salla.onReady().then(() => this.loadTransactions());
19
20
  }
21
+ // transactions is a plain array (web) or a Laravel paginator object (mobile/webview)
22
+ normalizeTransactions(transactions) {
23
+ if (Array.isArray(transactions)) {
24
+ return { list: transactions, nextPageUrl: '' };
25
+ }
26
+ const currentPage = transactions?.current_page ?? 1;
27
+ const lastPage = transactions?.last_page ?? currentPage;
28
+ const perPage = transactions?.per_page ?? 10;
29
+ // build a relative next-page path; the backend's absolute next_page_url points to salla.sa and fails in the webview
30
+ const nextPageUrl = currentPage < lastPage ? `/balance/wallet?per_page=${perPage}&page=${currentPage + 1}` : '';
31
+ return { list: transactions?.data ?? [], nextPageUrl };
32
+ }
20
33
  async loadTransactions() {
21
34
  this.isLoading = true;
22
35
  try {
23
36
  let url = `/balance/wallet?per_page=10&page=1`;
24
37
  let resp = await salla.api.request(url);
25
- this.nextPageUrl = resp.data.transactions.next_page_url;
26
- this.transactionsArray = resp.data.transactions;
38
+ const { list, nextPageUrl } = this.normalizeTransactions(resp.data.transactions);
39
+ this.nextPageUrl = nextPageUrl;
40
+ this.transactionsArray = list;
27
41
  this.balance = resp.data.balance;
28
42
  }
29
43
  catch (error) {
@@ -38,8 +52,9 @@ const SallaWalletTable = class {
38
52
  try {
39
53
  let url = this.nextPageUrl || '/balance/wallet?page=2&per_page=10';
40
54
  let resp = await salla.api.request(url);
41
- this.nextPageUrl = resp.data.transactions.next_page_url;
42
- this.transactionsArray.push(...resp.data.transactions.data);
55
+ const { list, nextPageUrl } = this.normalizeTransactions(resp.data.transactions);
56
+ this.nextPageUrl = nextPageUrl;
57
+ this.transactionsArray = [...this.transactionsArray, ...list];
43
58
  this.balance = resp.data.balance;
44
59
  }
45
60
  catch (error) {
@@ -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-DpB3UAAA.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DpTbeb50.js';
5
5
 
6
6
  const sallaWishlistActionsCss = ":host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { f as forceUpdate } from './index-DpB3UAAA.js';
4
+ import { f as forceUpdate } from './index-DpTbeb50.js';
5
5
 
6
6
  function TrackedPromise(fn, options = {}) {
7
7
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DpB3UAAA.js';
5
- export { s as setNonce } from './index-DpB3UAAA.js';
4
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DpTbeb50.js';
5
+ export { s as setNonce } from './index-DpTbeb50.js';
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v4.35.1 | MIT Licensed | https://stenciljs.com
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-DpB3UAAA.js';
4
+ import { d as getDefaultExportFromCjs } from './index-DpTbeb50.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as t,h as s,H as a}from"./p-DpB3UAAA.js";const l=class{constructor(s){t(this,s),this.order=null,this.loading=!0}async componentWillLoad(){await salla.onReady(),await this.loadOrder()}async onOrderIdChange(){this.loading=!0,this.order=null,await this.loadOrder()}get paymentUrl(){return this.order?.customer_editing?.payment_url}async loadOrder(){const t=this.orderId||salla.config.get("page.id");if(t)try{const s=await salla.order.api.getDetails(t);this.order=s?.data??s??null}catch(t){salla.logger?.warn?.("[salla-edit-order-button] failed to fetch order details",t),this.order=null}finally{this.loading=!1}else this.loading=!1}renderEditButton(){return s("salla-count-down",{prefixText:salla.lang.getWithDefault("pages.orders.edit_within","يمكنك التعديل خلال"),buttonHref:this.order?.edit_url,buttonText:salla.lang.getWithDefault("pages.orders.edit_order","تعديل الطلب"),buttonIcon:"sicon-edit",date:this.order?.editable_until,horizontal:!0,autoSegments:!0,withButton:!0,labeled:!1,size:"sm",color:"primary"})}render(){return this.loading||!this.order?null:this.order?.is_editable?s(a,null,this.renderEditButton()):this.paymentUrl?s(a,null,s("salla-button",{href:this.paymentUrl,color:"primary",size:"small"},s("i",{class:"sicon-wallet"}),salla.lang.getWithDefault("pages.orders.pay_difference","دفع فارق المبلغ"))):null}static get watchers(){return{orderId:["onOrderIdChange"]}}};l.style=":host{display:block}";export{l as salla_edit_order_button}
4
+ import{r as t,h as s,H as a}from"./p-DpTbeb50.js";const l=class{constructor(s){t(this,s),this.order=null,this.loading=!0}async componentWillLoad(){await salla.onReady(),await this.loadOrder()}async onOrderIdChange(){this.loading=!0,this.order=null,await this.loadOrder()}get paymentUrl(){return this.order?.customer_editing?.payment_url}async loadOrder(){const t=this.orderId||salla.config.get("page.id");if(t)try{const s=await salla.order.api.getDetails(t);this.order=s?.data??s??null}catch(t){salla.logger?.warn?.("[salla-edit-order-button] failed to fetch order details",t),this.order=null}finally{this.loading=!1}else this.loading=!1}renderEditButton(){return s("salla-count-down",{prefixText:salla.lang.getWithDefault("pages.orders.edit_within","يمكنك التعديل خلال"),buttonHref:this.order?.edit_url,buttonText:salla.lang.getWithDefault("pages.orders.edit_order","تعديل الطلب"),buttonIcon:"sicon-edit",date:this.order?.editable_until,horizontal:!0,autoSegments:!0,withButton:!0,labeled:!1,size:"sm",color:"primary"})}render(){return this.loading||!this.order?null:this.order?.is_editable?s(a,null,this.renderEditButton()):this.paymentUrl?s(a,null,s("salla-button",{href:this.paymentUrl,color:"primary",size:"small"},s("i",{class:"sicon-wallet"}),salla.lang.getWithDefault("pages.orders.pay_difference","دفع فارق المبلغ"))):null}static get watchers(){return{orderId:["onOrderIdChange"]}}};l.style=":host{display:block}";export{l as salla_edit_order_button}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import{r as t,h as i,H as e}from"./p-DpB3UAAA.js";var s,a;!function(t){t.PERCENTAGE="percentage",t.FIXED="fixed",t.FREE_PRODUCT="free_product"}(s||(s={})),function(t){t.PRODUCT_COUNT="products_count",t.PRODUCT_PURCHASE="order_amount"}(a||(a={}));const l=class{constructor(i){t(this,i),this.offer=null,this.products={},this.isLoading=!1,this.canRender=!0}componentWillLoad(){salla.onReady().then((()=>{if(!salla.config.get("store.features")?.includes("conditional-offer")||""!==salla.storage.get("cart")&&!salla.storage.get("cart")?.summary?.count)throw new Error("feature or cart object does not existed")})).then((()=>salla.api.cart.offers())).then((({data:t})=>{if(this.offer=t.find((t=>"conditional"===t.type)),this.offer)return this.isLoading=!0,this.offer.details.discounts.unshift({value:0,min_spend:0}),this.updateInitialOfferValue();this.canRender=!1})).then((()=>{if(this.offer)return this.getProducts()})).then((()=>{this.offer&&salla.event.on("cart::updated",(t=>this.updateOfferValues(t)))})).catch((t=>{this.canRender=!1,salla.logger.warn("salla-conditional-offer:: ",t)})).finally((()=>{this.isLoading=!1}))}getProducts(){const t=this.offer.details.discounts.filter((({type:t})=>t===s.FREE_PRODUCT)).map((({value:t})=>t)).filter(Boolean);if(t.length>0)return salla.product.fetch({source:"selected",source_value:t}).then((t=>{const i=t?.data;if(i&&Array.isArray(i)){const t={...this.products};i.forEach((({id:i,url:e,image:s,name:a,price:l})=>{i&&a&&s?.url&&e&&void 0!==l&&(t[i]={url:e,image:s,name:a,price:l})})),this.products=t}}))}updateInitialOfferValue(){return salla.api.cart.details().then((({data:{cart:t}})=>this.updateOfferValues(t)))}updateOfferValues({items:t,sub_total:i}){const e=this.offer.details.based_on===a.PRODUCT_COUNT?t?.reduce(((t,{quantity:i})=>t+i),0)??0:i;return this.offer={...this.offer,details:{...this.offer?.details,current_value:e}},this.offer}renderTooltip(t){const e=t.value,s=this.products[e];return s?i("salla-tooltip",{class:"absolute left-0 -top-2",targetId:`avatar-product-${e}`,theme:"dark"},i("div",{class:"flex gap-3 text-start"},s?.image?.url&&i("img",{src:s.image.url,alt:s?.image?.alt||s.name||"",class:"w-12 h-12 object-cover rounded-lg flex-shrink-0",loading:"lazy",decoding:"async"}),i("div",{class:"flex-1"},i("div",{class:"leading-tight mb-1"},s.name),i("div",{class:"text-xs text-gray-300",innerHTML:salla.money(s.price)})))):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),null)}getCheckpointContent(t){if(t.type===s.PERCENTAGE)return`${t.value}%`;if(t.type===s.FIXED)return i("span",{innerHTML:salla.money(t.value)});if(t.type!==s.FREE_PRODUCT)return salla.logger.error(`salla-conditional-offer:: unexpected type (${t.type})!`),"";const e=this.products[t.value];return e?i("a",{class:"s-conditional-offer-product-link",href:e.url},i("img",{class:"s-conditional-offer-checkpoint-image-content",loading:"lazy",decoding:"async",alt:e?.image?.alt||"",src:e?.image?.url})):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),"")}getOfferType(t){const i=this.offer.details?.based_on;if(i===a.PRODUCT_COUNT)try{return salla.lang.choice("blocks.header.products_count",t.min_spend)}catch(i){return salla.logger.warn("salla-conditional-offer:: invalid products_count interval",i),`${t.min_spend}`}return i===a.PRODUCT_PURCHASE?salla.money(t.min_spend):(salla.logger.warn(`salla-conditional-offer:: Unexpected offer detail's based_on value: ${i}`),`${t.min_spend}`)}clamp(t,i,e){return Math.max(i,Math.min(t,e))}mapValueRanges(t,i,e,s,a){const l=(t-i)*(a-s)/(e-i)+s;return l===Number.POSITIVE_INFINITY?100:l===Number.NEGATIVE_INFINITY?0:this.clamp(l,0,100)}getCheckPointView(t,e){const a=this.offer.details.discounts.findIndex((({min_spend:i})=>i===t.min_spend)),l=this.mapValueRanges(this.offer.details.current_value,this.offer.details.discounts[a-1]?.min_spend??0,t.min_spend,0,100),n=t.min_spend<=this.offer.details.current_value;return i("div",{class:"s-conditional-offer-checkpoint-container"},e>0?[i("div",{key:"progress-line",class:"s-conditional-offer-progress-line-container"},i("div",{class:"s-conditional-offer-progress-line-inactive"}),i("div",{class:"s-conditional-offer-progress-line-active",style:{width:`${l}%`}})),i("div",{key:"checkpoint",class:"s-conditional-offer-checkpoint "+(n?"s-conditional-offer-active-checkpoint":"")},i("div",{class:"s-conditional-offer-item-avatar-content "+(n?"active":""),id:t.type===s.FREE_PRODUCT?`avatar-product-${t.value}`:`avatar-${t.value??e}`},this.products&&this.getCheckpointContent(t)),this.products&&t.type===s.FREE_PRODUCT&&this.renderTooltip(t),i("div",{class:"s-conditional-offer-checkpoint-label "+(n?"active":""),innerHTML:this.getOfferType(t)}))]:i("div",{key:"label",class:{"s-conditional-offer-checkpoint-label":!0,"first-checkpoint":0===e,active:n,hidden:0===e,"sm:block":0===e},innerHTML:this.getOfferType(t)}))}getLoadingSkeletonView(){return i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-skeleton-inner-container"},i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"30%"})),i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"35%"})),i("div",{class:"s-conditional-offer-skeleton-checkpoints-wrapper"},Array(3).fill(null).map((()=>[i("salla-skeleton",{key:"checkpoint-line",height:"8px"}),i("div",{key:"checkpoint"},i("salla-skeleton",{height:"60px",width:"60px",type:"circle"}))])))))}render(){return this.canRender?this.isLoading?this.getLoadingSkeletonView():this.offer?i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-title-wrapper"},i("div",{class:"s-conditional-offer-title"},this.offer.title),this.offer.description?i("div",{class:"s-conditional-offer-subtitle"},this.offer.description," ",i("i",{class:"sicon-information"})):null),i("div",{class:"s-conditional-offer-progress-container"},this.offer.details.discounts.map(((t,e)=>i("div",{class:{"flex-1":e>0},key:t.min_spend},this.getCheckPointView(t,e)))))):null:null}};l.style=":host{display:block}";export{l as salla_conditional_offer}
4
+ import{r as t,h as i,H as e}from"./p-DpTbeb50.js";var s,a;!function(t){t.PERCENTAGE="percentage",t.FIXED="fixed",t.FREE_PRODUCT="free_product"}(s||(s={})),function(t){t.PRODUCT_COUNT="products_count",t.PRODUCT_PURCHASE="order_amount"}(a||(a={}));const l=class{constructor(i){t(this,i),this.offer=null,this.products={},this.isLoading=!1,this.canRender=!0}componentWillLoad(){salla.onReady().then((()=>{if(!salla.config.get("store.features")?.includes("conditional-offer")||""!==salla.storage.get("cart")&&!salla.storage.get("cart")?.summary?.count)throw new Error("feature or cart object does not existed")})).then((()=>salla.api.cart.offers())).then((({data:t})=>{if(this.offer=t.find((t=>"conditional"===t.type)),this.offer)return this.isLoading=!0,this.offer.details.discounts.unshift({value:0,min_spend:0}),this.updateInitialOfferValue();this.canRender=!1})).then((()=>{if(this.offer)return this.getProducts()})).then((()=>{this.offer&&salla.event.on("cart::updated",(t=>this.updateOfferValues(t)))})).catch((t=>{this.canRender=!1,salla.logger.warn("salla-conditional-offer:: ",t)})).finally((()=>{this.isLoading=!1}))}getProducts(){const t=this.offer.details.discounts.filter((({type:t})=>t===s.FREE_PRODUCT)).map((({value:t})=>t)).filter(Boolean);if(t.length>0)return salla.product.fetch({source:"selected",source_value:t}).then((t=>{const i=t?.data;if(i&&Array.isArray(i)){const t={...this.products};i.forEach((({id:i,url:e,image:s,name:a,price:l})=>{i&&a&&s?.url&&e&&void 0!==l&&(t[i]={url:e,image:s,name:a,price:l})})),this.products=t}}))}updateInitialOfferValue(){return salla.api.cart.details().then((({data:{cart:t}})=>this.updateOfferValues(t)))}updateOfferValues({items:t,sub_total:i}){const e=this.offer.details.based_on===a.PRODUCT_COUNT?t?.reduce(((t,{quantity:i})=>t+i),0)??0:i;return this.offer={...this.offer,details:{...this.offer?.details,current_value:e}},this.offer}renderTooltip(t){const e=t.value,s=this.products[e];return s?i("salla-tooltip",{class:"absolute left-0 -top-2",targetId:`avatar-product-${e}`,theme:"dark"},i("div",{class:"flex gap-3 text-start"},s?.image?.url&&i("img",{src:s.image.url,alt:s?.image?.alt||s.name||"",class:"w-12 h-12 object-cover rounded-lg flex-shrink-0",loading:"lazy",decoding:"async"}),i("div",{class:"flex-1"},i("div",{class:"leading-tight mb-1"},s.name),i("div",{class:"text-xs text-gray-300",innerHTML:salla.money(s.price)})))):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),null)}getCheckpointContent(t){if(t.type===s.PERCENTAGE)return`${t.value}%`;if(t.type===s.FIXED)return i("span",{innerHTML:salla.money(t.value)});if(t.type!==s.FREE_PRODUCT)return salla.logger.error(`salla-conditional-offer:: unexpected type (${t.type})!`),"";const e=this.products[t.value];return e?i("a",{class:"s-conditional-offer-product-link",href:e.url},i("img",{class:"s-conditional-offer-checkpoint-image-content",loading:"lazy",decoding:"async",alt:e?.image?.alt||"",src:e?.image?.url})):(salla.logger.error(`salla-conditional-offer:: there is no product with id (${t.value})!`),"")}getOfferType(t){const i=this.offer.details?.based_on;if(i===a.PRODUCT_COUNT)try{return salla.lang.choice("blocks.header.products_count",t.min_spend)}catch(i){return salla.logger.warn("salla-conditional-offer:: invalid products_count interval",i),`${t.min_spend}`}return i===a.PRODUCT_PURCHASE?salla.money(t.min_spend):(salla.logger.warn(`salla-conditional-offer:: Unexpected offer detail's based_on value: ${i}`),`${t.min_spend}`)}clamp(t,i,e){return Math.max(i,Math.min(t,e))}mapValueRanges(t,i,e,s,a){const l=(t-i)*(a-s)/(e-i)+s;return l===Number.POSITIVE_INFINITY?100:l===Number.NEGATIVE_INFINITY?0:this.clamp(l,0,100)}getCheckPointView(t,e){const a=this.offer.details.discounts.findIndex((({min_spend:i})=>i===t.min_spend)),l=this.mapValueRanges(this.offer.details.current_value,this.offer.details.discounts[a-1]?.min_spend??0,t.min_spend,0,100),n=t.min_spend<=this.offer.details.current_value;return i("div",{class:"s-conditional-offer-checkpoint-container"},e>0?[i("div",{key:"progress-line",class:"s-conditional-offer-progress-line-container"},i("div",{class:"s-conditional-offer-progress-line-inactive"}),i("div",{class:"s-conditional-offer-progress-line-active",style:{width:`${l}%`}})),i("div",{key:"checkpoint",class:"s-conditional-offer-checkpoint "+(n?"s-conditional-offer-active-checkpoint":"")},i("div",{class:"s-conditional-offer-item-avatar-content "+(n?"active":""),id:t.type===s.FREE_PRODUCT?`avatar-product-${t.value}`:`avatar-${t.value??e}`},this.products&&this.getCheckpointContent(t)),this.products&&t.type===s.FREE_PRODUCT&&this.renderTooltip(t),i("div",{class:"s-conditional-offer-checkpoint-label "+(n?"active":""),innerHTML:this.getOfferType(t)}))]:i("div",{key:"label",class:{"s-conditional-offer-checkpoint-label":!0,"first-checkpoint":0===e,active:n,hidden:0===e,"sm:block":0===e},innerHTML:this.getOfferType(t)}))}getLoadingSkeletonView(){return i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-skeleton-inner-container"},i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"30%"})),i("div",{class:"s-conditional-offer-skeleton-subtitle"},i("salla-skeleton",{height:"16px",width:"35%"})),i("div",{class:"s-conditional-offer-skeleton-checkpoints-wrapper"},Array(3).fill(null).map((()=>[i("salla-skeleton",{key:"checkpoint-line",height:"8px"}),i("div",{key:"checkpoint"},i("salla-skeleton",{height:"60px",width:"60px",type:"circle"}))])))))}render(){return this.canRender?this.isLoading?this.getLoadingSkeletonView():this.offer?i(e,{class:"s-conditional-offer-container"},i("div",{class:"s-conditional-offer-title-wrapper"},i("div",{class:"s-conditional-offer-title"},this.offer.title),this.offer.description?i("div",{class:"s-conditional-offer-subtitle"},this.offer.description," ",i("i",{class:"sicon-information"})):null),i("div",{class:"s-conditional-offer-progress-container"},this.offer.details.discounts.map(((t,e)=>i("div",{class:{"flex-1":e>0},key:t.min_spend},this.getCheckPointView(t,e)))))):null:null}};l.style=":host{display:block}";export{l as salla_conditional_offer}