@salla.sa/twilight-components 2.14.460 → 2.14.462

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 (315) hide show
  1. package/dist/cjs/{filepond-CGfIHI6f.js → filepond-D7zShniv.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BogxH8wL.js → filepond-plugin-file-poster-BqO8tLqK.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DSlzvO7P.js → filepond-plugin-file-validate-size-Bdxa3s1T.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-QKvTiG_U.js → filepond-plugin-file-validate-type-B9q4YU3V.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CdCoWANz.js → filepond-plugin-image-edit-BZ8ZjH1W.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CJ84EvSe.js → filepond-plugin-image-exif-orientation-D-Ua_ckJ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BSABZf_n.js → filepond-plugin-image-preview-CrZfm9_U.js} +1 -1
  8. package/dist/cjs/{functions-8bJoQsbY.js → functions-Dnwp9wka.js} +1 -1
  9. package/dist/cjs/{index-D0dSQBmL.js → index-CLNWkNWb.js} +1 -1
  10. package/dist/cjs/{index-ClIoplYB.js → index-wTIlAVr3.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-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 +20 -4
  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 +1 -1
  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 +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  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-branch.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-products-list.cjs.entry.js +29 -12
  80. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  84. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  99. package/dist/cjs/{tracked-promise-YbXLxnty.js → tracked-promise-DqErlr1h.js} +1 -1
  100. package/dist/cjs/twilight.cjs.js +1 -1
  101. package/dist/cjs/{vanilla-picker-CQ98NxBN.js → vanilla-picker-F5duMbuq.js} +1 -1
  102. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +19 -3
  103. package/dist/collection/components/salla-products-list/salla-products-list.js +28 -11
  104. package/dist/components/index.js +2 -2
  105. package/dist/components/salla-localization-modal.js +19 -3
  106. package/dist/components/salla-products-list2.js +28 -11
  107. package/dist/esm/{filepond-C4Vtw3hu.js → filepond-m6fYB-0k.js} +1 -1
  108. package/dist/esm/{filepond-plugin-file-poster-DHC1vUJ9.js → filepond-plugin-file-poster-BjL05gZe.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-validate-size-CBM0hQ0G.js → filepond-plugin-file-validate-size-DTeNYd00.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-validate-type-BEekNkNc.js → filepond-plugin-file-validate-type-ZhqN1Gao.js} +1 -1
  111. package/dist/esm/{filepond-plugin-image-edit-C9OQtxCr.js → filepond-plugin-image-edit-P9d3w9sz.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-exif-orientation-CmDE8Rj3.js → filepond-plugin-image-exif-orientation-rmyn2Wqp.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-preview-BZJQYto9.js → filepond-plugin-image-preview-yKjApiZb.js} +1 -1
  114. package/dist/esm/{functions-DXqv01Ta.js → functions-C_YevJW-.js} +1 -1
  115. package/dist/esm/{index-iJ5sq_zX.js → index-CeYNqrm6.js} +2 -2
  116. package/dist/esm/{index-COrBCyov.js → index-D9GD5gzh.js} +1 -1
  117. package/dist/esm/loader.js +2 -2
  118. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  119. package/dist/esm/salla-accordion_6.entry.js +1 -1
  120. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  121. package/dist/esm/salla-advertisement.entry.js +1 -1
  122. package/dist/esm/salla-alert_2.entry.js +1 -1
  123. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  124. package/dist/esm/salla-apps-icons.entry.js +1 -1
  125. package/dist/esm/salla-badge.entry.js +1 -1
  126. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  127. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  128. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  129. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  130. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  131. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  132. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  133. package/dist/esm/salla-contacts.entry.js +1 -1
  134. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  135. package/dist/esm/salla-count-down.entry.js +1 -1
  136. package/dist/esm/salla-custom-fields.entry.js +1 -1
  137. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  138. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  139. package/dist/esm/salla-filters-widget.entry.js +1 -1
  140. package/dist/esm/salla-filters.entry.js +1 -1
  141. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  142. package/dist/esm/salla-gifting.entry.js +1 -1
  143. package/dist/esm/salla-hook.entry.js +1 -1
  144. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  145. package/dist/esm/salla-installment.entry.js +1 -1
  146. package/dist/esm/salla-list-tile.entry.js +1 -1
  147. package/dist/esm/salla-localization-modal.entry.js +20 -4
  148. package/dist/esm/salla-login-modal.entry.js +1 -1
  149. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  150. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  151. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  152. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  153. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  154. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  155. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  156. package/dist/esm/salla-loyalty.entry.js +1 -1
  157. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  158. package/dist/esm/salla-map.entry.js +1 -1
  159. package/dist/esm/salla-menu.entry.js +1 -1
  160. package/dist/esm/salla-metadata.entry.js +1 -1
  161. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  162. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  163. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  164. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  165. package/dist/esm/salla-notification-item.entry.js +1 -1
  166. package/dist/esm/salla-notifications.entry.js +1 -1
  167. package/dist/esm/salla-offer-modal.entry.js +1 -1
  168. package/dist/esm/salla-offer.entry.js +1 -1
  169. package/dist/esm/salla-order-branch.entry.js +1 -1
  170. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  171. package/dist/esm/salla-order-details-options.entry.js +1 -1
  172. package/dist/esm/salla-order-details.entry.js +1 -1
  173. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  174. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  175. package/dist/esm/salla-order-edit.entry.js +1 -1
  176. package/dist/esm/salla-order-summary.entry.js +1 -1
  177. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  178. package/dist/esm/salla-orders.entry.js +1 -1
  179. package/dist/esm/salla-payments.entry.js +1 -1
  180. package/dist/esm/salla-placeholder.entry.js +1 -1
  181. package/dist/esm/salla-price-range.entry.js +1 -1
  182. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  183. package/dist/esm/salla-product-card_2.entry.js +1 -1
  184. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  185. package/dist/esm/salla-products-list.entry.js +29 -12
  186. package/dist/esm/salla-progress-bar.entry.js +1 -1
  187. package/dist/esm/salla-quick-order.entry.js +1 -1
  188. package/dist/esm/salla-rating-modal.entry.js +1 -1
  189. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  190. package/dist/esm/salla-scopes.entry.js +1 -1
  191. package/dist/esm/salla-search.entry.js +1 -1
  192. package/dist/esm/salla-skeleton.entry.js +1 -1
  193. package/dist/esm/salla-slider.entry.js +1 -1
  194. package/dist/esm/salla-social-share.entry.js +1 -1
  195. package/dist/esm/salla-social.entry.js +1 -1
  196. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  197. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  198. package/dist/esm/salla-tooltip.entry.js +1 -1
  199. package/dist/esm/salla-trust-badges.entry.js +1 -1
  200. package/dist/esm/salla-user-menu.entry.js +1 -1
  201. package/dist/esm/salla-user-profile.entry.js +1 -1
  202. package/dist/esm/salla-user-settings.entry.js +1 -1
  203. package/dist/esm/salla-verify.entry.js +1 -1
  204. package/dist/esm/salla-wallet.entry.js +1 -1
  205. package/dist/esm/{tracked-promise-BqdEjVrn.js → tracked-promise-DmXpObWP.js} +1 -1
  206. package/dist/esm/twilight.js +2 -2
  207. package/dist/esm/{vanilla-picker-sDHf8LOA.js → vanilla-picker-pNOcxfir.js} +1 -1
  208. package/dist/twilight/{p-fe88bea5.entry.js → p-00b82f9e.entry.js} +1 -1
  209. package/dist/twilight/{p-2b558991.entry.js → p-016d2b24.entry.js} +1 -1
  210. package/dist/twilight/{p-c208e3c7.entry.js → p-06d466ca.entry.js} +1 -1
  211. package/dist/twilight/{p-a83a6645.entry.js → p-0777f1aa.entry.js} +1 -1
  212. package/dist/twilight/{p-c1949223.entry.js → p-07afae85.entry.js} +1 -1
  213. package/dist/twilight/{p-4a68aa3a.entry.js → p-07b5f1f0.entry.js} +1 -1
  214. package/dist/twilight/{p-9b6f56a4.entry.js → p-08080728.entry.js} +1 -1
  215. package/dist/twilight/{p-b4b57fd2.entry.js → p-0d8fac88.entry.js} +1 -1
  216. package/dist/twilight/{p-68cc082a.entry.js → p-1043d027.entry.js} +1 -1
  217. package/dist/twilight/{p-07ab6222.entry.js → p-12a64c34.entry.js} +1 -1
  218. package/dist/twilight/{p-a1189807.entry.js → p-19cef679.entry.js} +1 -1
  219. package/dist/twilight/{p-53725056.entry.js → p-22eeb058.entry.js} +1 -1
  220. package/dist/twilight/{p-153ae87f.entry.js → p-29dbcd53.entry.js} +1 -1
  221. package/dist/twilight/{p-ac7e349a.entry.js → p-2d83fd8d.entry.js} +1 -1
  222. package/dist/twilight/{p-93e20666.entry.js → p-2ecf4e6a.entry.js} +1 -1
  223. package/dist/twilight/{p-569c6283.entry.js → p-2f8a2a75.entry.js} +1 -1
  224. package/dist/twilight/{p-f0451bd0.entry.js → p-31399c5a.entry.js} +1 -1
  225. package/dist/twilight/{p-63db0087.entry.js → p-316bd85f.entry.js} +1 -1
  226. package/dist/twilight/{p-77161ea1.entry.js → p-38dcee02.entry.js} +1 -1
  227. package/dist/twilight/{p-dbedcb2c.entry.js → p-39350b98.entry.js} +1 -1
  228. package/dist/twilight/{p-cb7550d3.entry.js → p-395408d0.entry.js} +1 -1
  229. package/dist/twilight/{p-a89828dd.entry.js → p-4155b911.entry.js} +1 -1
  230. package/dist/twilight/{p-59e51761.entry.js → p-4368aeb5.entry.js} +1 -1
  231. package/dist/twilight/{p-3478605e.entry.js → p-46d2e19e.entry.js} +1 -1
  232. package/dist/twilight/{p-4bf10fda.entry.js → p-4b0fe193.entry.js} +1 -1
  233. package/dist/twilight/{p-1bbdc1be.entry.js → p-51739559.entry.js} +1 -1
  234. package/dist/twilight/{p-12e4f4b3.entry.js → p-52f0f36b.entry.js} +1 -1
  235. package/dist/twilight/{p-bec381d0.entry.js → p-570d9be5.entry.js} +1 -1
  236. package/dist/twilight/{p-7cb9fdf3.entry.js → p-5afb837d.entry.js} +1 -1
  237. package/dist/twilight/{p-d171d9b7.entry.js → p-5b416a7d.entry.js} +1 -1
  238. package/dist/twilight/p-629e05d2.entry.js +4 -0
  239. package/dist/twilight/{p-56f2c80b.entry.js → p-66189b02.entry.js} +1 -1
  240. package/dist/twilight/{p-7c274900.entry.js → p-66341808.entry.js} +1 -1
  241. package/dist/twilight/{p-fcf26add.entry.js → p-66e6f1b7.entry.js} +1 -1
  242. package/dist/twilight/{p-8784043c.entry.js → p-68a4b292.entry.js} +1 -1
  243. package/dist/twilight/{p-570a0386.entry.js → p-6ac73121.entry.js} +1 -1
  244. package/dist/twilight/p-6ad7e526.entry.js +4 -0
  245. package/dist/twilight/{p-6959e50c.entry.js → p-6e74026e.entry.js} +1 -1
  246. package/dist/twilight/{p-606cf463.entry.js → p-6e77cef2.entry.js} +1 -1
  247. package/dist/twilight/p-70bccb5a.entry.js +4 -0
  248. package/dist/twilight/{p-9037aceb.entry.js → p-744b3fae.entry.js} +1 -1
  249. package/dist/twilight/{p-8fdda3f7.entry.js → p-7469ba2c.entry.js} +1 -1
  250. package/dist/twilight/{p-ba3fddd7.entry.js → p-74810e1d.entry.js} +1 -1
  251. package/dist/twilight/{p-ddaa0572.entry.js → p-7562b6fe.entry.js} +1 -1
  252. package/dist/twilight/{p-6a0592ff.entry.js → p-75c3f81d.entry.js} +1 -1
  253. package/dist/twilight/{p-9b32a751.entry.js → p-77257ae8.entry.js} +1 -1
  254. package/dist/twilight/{p-1048d417.entry.js → p-79143f69.entry.js} +1 -1
  255. package/dist/twilight/{p-8417e475.entry.js → p-7fa53fa7.entry.js} +1 -1
  256. package/dist/twilight/{p-38c48529.entry.js → p-873b5a0b.entry.js} +1 -1
  257. package/dist/twilight/p-896c5d10.entry.js +4 -0
  258. package/dist/twilight/{p-9e65633b.entry.js → p-8f27d1fc.entry.js} +1 -1
  259. package/dist/twilight/{p-e824a11d.entry.js → p-925afa3d.entry.js} +1 -1
  260. package/dist/twilight/{p-486eec44.entry.js → p-976a7c3b.entry.js} +1 -1
  261. package/dist/twilight/{p-b0afc618.entry.js → p-97d9e879.entry.js} +1 -1
  262. package/dist/twilight/{p-c9932aac.entry.js → p-99edcd51.entry.js} +1 -1
  263. package/dist/twilight/{p-DpeYnqu7.js → p-B0byHRZ3.js} +1 -1
  264. package/dist/twilight/{p-CEojVb5V.js → p-BCTJfSEq.js} +1 -1
  265. package/dist/twilight/{p-DLjvTnkG.js → p-BJ8oGcQD.js} +1 -1
  266. package/dist/twilight/{p-2YeLvW5I.js → p-BKLK9Y6r.js} +1 -1
  267. package/dist/twilight/{p--2LAp_Ix.js → p-BRPK56r-.js} +1 -1
  268. package/dist/twilight/{p-Doa_Qi4D.js → p-BW7tTJ4q.js} +1 -1
  269. package/dist/twilight/{p-quQVhrL_.js → p-BbnE5BSS.js} +2 -2
  270. package/dist/twilight/{p-Mmayo-tO.js → p-CShDziwT.js} +1 -1
  271. package/dist/twilight/{p-DoHbs_Ca.js → p-Cc7oEzty.js} +1 -1
  272. package/dist/twilight/{p-iJ5sq_zX.js → p-CeYNqrm6.js} +1 -1
  273. package/dist/twilight/{p-YOYH8YN6.js → p-DM7C3SNh.js} +1 -1
  274. package/dist/twilight/{p-gauhE2aA.js → p-Dwy4A66P.js} +1 -1
  275. package/dist/twilight/{p-cf258842.entry.js → p-a01e3db6.entry.js} +1 -1
  276. package/dist/twilight/{p-aec79fff.entry.js → p-a52795df.entry.js} +1 -1
  277. package/dist/twilight/p-a6a6f6af.entry.js +4 -0
  278. package/dist/twilight/{p-da9ca18e.entry.js → p-a8b5376b.entry.js} +1 -1
  279. package/dist/twilight/{p-cdeac4d4.entry.js → p-aa97bce4.entry.js} +1 -1
  280. package/dist/twilight/{p-38669272.entry.js → p-b492aa80.entry.js} +1 -1
  281. package/dist/twilight/{p-bb9ef23e.entry.js → p-b5267377.entry.js} +1 -1
  282. package/dist/twilight/{p-12e99bf3.entry.js → p-b77e74a4.entry.js} +1 -1
  283. package/dist/twilight/{p-b902d2f5.entry.js → p-b8073d30.entry.js} +1 -1
  284. package/dist/twilight/{p-c70b165a.entry.js → p-baf272cf.entry.js} +1 -1
  285. package/dist/twilight/{p-d7c9b87f.entry.js → p-bb3fb45c.entry.js} +1 -1
  286. package/dist/twilight/{p-eec5d968.entry.js → p-c56ba8d5.entry.js} +1 -1
  287. package/dist/twilight/{p-147b1b05.entry.js → p-c66e2e76.entry.js} +1 -1
  288. package/dist/twilight/{p-3dd52ee6.entry.js → p-c7caa2cc.entry.js} +1 -1
  289. package/dist/twilight/{p-dd83f43e.entry.js → p-cf68db97.entry.js} +1 -1
  290. package/dist/twilight/{p-1f2d6697.entry.js → p-d0e99086.entry.js} +1 -1
  291. package/dist/twilight/{p-4f009520.entry.js → p-d78c5c6e.entry.js} +1 -1
  292. package/dist/twilight/{p-07cfe13f.entry.js → p-d84d931d.entry.js} +1 -1
  293. package/dist/twilight/{p-b0912857.entry.js → p-dbf9a7a6.entry.js} +1 -1
  294. package/dist/twilight/{p-5a502b2d.entry.js → p-ddf5c15d.entry.js} +1 -1
  295. package/dist/twilight/{p-234c1e5a.entry.js → p-dff9a1ec.entry.js} +1 -1
  296. package/dist/twilight/{p-a3f1ce8d.entry.js → p-e4c61d13.entry.js} +1 -1
  297. package/dist/twilight/{p-099f53cb.entry.js → p-e545619d.entry.js} +1 -1
  298. package/dist/twilight/{p-2c1eaa42.entry.js → p-e60bd3a0.entry.js} +1 -1
  299. package/dist/twilight/{p-c7f39c26.entry.js → p-ec46c858.entry.js} +1 -1
  300. package/dist/twilight/{p-dc530376.entry.js → p-ed92c8ab.entry.js} +1 -1
  301. package/dist/twilight/{p-710aeaa6.entry.js → p-eef72b52.entry.js} +1 -1
  302. package/dist/twilight/{p-8efab918.entry.js → p-efc3eb85.entry.js} +1 -1
  303. package/dist/twilight/{p-93cffd7b.entry.js → p-f02cb299.entry.js} +1 -1
  304. package/dist/twilight/{p-bae99ba7.entry.js → p-f3884673.entry.js} +1 -1
  305. package/dist/twilight/{p-d8b6e962.entry.js → p-fbcb84a4.entry.js} +1 -1
  306. package/dist/twilight/{p-f194ed91.entry.js → p-fd4588cc.entry.js} +1 -1
  307. package/dist/twilight/twilight.esm.js +1 -1
  308. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +1 -0
  309. package/dist/types/components/salla-products-list/salla-products-list.d.ts +2 -0
  310. package/package.json +5 -5
  311. package/dist/twilight/p-0235e63d.entry.js +0 -4
  312. package/dist/twilight/p-075e48a4.entry.js +0 -4
  313. package/dist/twilight/p-46d2ef37.entry.js +0 -4
  314. package/dist/twilight/p-59edb110.entry.js +0 -4
  315. package/dist/twilight/p-e3871a18.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaMultipleBundleProductCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var tagMoney = require('./tag-money-Cuohw_4j.js');
8
8
  var swapStroke = require('./swap-stroke-CYGxjKIS.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaNotificationsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var Helper = require('./Helper-CgGR9Qf8.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var specialDiscount = require('./special-discount-DC2oXurL.js');
8
8
  var tag = require('./tag-D-PcUR33.js');
9
9
  var cart2 = require('./cart2-B98PSAFN.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var PageType;
9
9
  (function (PageType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  function parseMaybeJson(value, fallback) {
9
9
  if (typeof value !== 'string') {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaOrderDetailsMultipleBundleProductCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var copyIcon = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaOrderDetailsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var helpers = require('./helpers-BJ2rnhxz.js');
8
8
  require('./interfaces-Bh7W0bEU.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaOrderEditProductCardCss = ":host{display:block;min-width:0}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var helpers = require('./helpers-BJ2rnhxz.js');
8
8
  require('./interfaces-Bh7W0bEU.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var swapStroke = require('./swap-stroke-CYGxjKIS.js');
8
8
  var check = require('./check-BnVBPQNp.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaOrderTotalsCardCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var Helper = require('./Helper-CgGR9Qf8.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaPaymentsCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var Inbox = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
 
9
9
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  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}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var star2 = require('./star2-R146a27p.js');
8
8
  var Helper = require('./Helper-CgGR9Qf8.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
9
9
  var Helper = require('./Helper-CgGR9Qf8.js');
@@ -85,7 +85,6 @@ const SallaProductsList = class {
85
85
  window.scrollTo({ top: 0, behavior: 'smooth' });
86
86
  // Create a deep copy of the filters object to avoid mutating the original object
87
87
  this.parsedFilters = JSON.parse(JSON.stringify(filters));
88
- this.filtersSnapshot = this.parsedFilters;
89
88
  if (this.currentPage?.slug == "product.index" && this.parsedFilters && this.parsedFilters.category_id) {
90
89
  this.currentCategoryIdFilter = [this.parsedFilters.category_id];
91
90
  }
@@ -119,6 +118,31 @@ const SallaProductsList = class {
119
118
  isFilterable() {
120
119
  return salla.config.get('store.settings.product.filters') && this.filtersResults;
121
120
  }
121
+ getCachedFilters() {
122
+ if (!Array.isArray(this.filtersSnapshot) || !this.filtersSnapshot.length) {
123
+ return null;
124
+ }
125
+ return JSON.parse(JSON.stringify(this.filtersSnapshot));
126
+ }
127
+ emitFilters(response) {
128
+ if (!this.isFilterable()) {
129
+ return;
130
+ }
131
+ if (response.filters) {
132
+ this.filtersResults = true;
133
+ this.filtersSnapshot = JSON.parse(JSON.stringify(response.filters));
134
+ salla.event.emit('filters::fetched', { filters: response.filters });
135
+ return;
136
+ }
137
+ const cachedFilters = response.cursor?.current > 1 ? this.getCachedFilters() : null;
138
+ if (cachedFilters) {
139
+ this.filtersResults = true;
140
+ salla.event.emit('filters::fetched', { filters: cachedFilters });
141
+ return;
142
+ }
143
+ this.filtersSnapshot = [];
144
+ salla.event.emit('filters::hidden');
145
+ }
122
146
  isSourceWithoutValue() {
123
147
  return ['offers', 'latest', 'sales', 'wishlist', 'top-rated', 'reorder'].includes(this.getSource());
124
148
  }
@@ -407,8 +431,9 @@ const SallaProductsList = class {
407
431
  if (storedState) {
408
432
  try {
409
433
  const { pageIndex, nextPage, currentPageData } = JSON.parse(storedState);
410
- if (filetrsState !== 'undefined') {
434
+ if (filetrsState && filetrsState !== 'undefined') {
411
435
  const filters = JSON.parse(filetrsState);
436
+ this.filtersSnapshot = JSON.parse(JSON.stringify(filters));
412
437
  salla.event.emit('filters::fetched', { filters });
413
438
  }
414
439
  this.page = pageIndex;
@@ -780,7 +805,6 @@ const SallaProductsList = class {
780
805
  let catId = this.parsedFilters.category_id || this.getSourceValue()[0];
781
806
  // get the first filter that its key is category_id, then get the value when filter.value.*.key==catId
782
807
  title = response.filters?.find(filter => filter.key === 'category_id')?.values?.find(cat => cat.key === catId)?.value ?? '';
783
- this.filtersSnapshot = response.filters;
784
808
  }
785
809
  title += (title ? ' - ' : '') + salla.lang.choice('blocks.header.products_count', response.data?.length);
786
810
  if (response.data.length === 15) {
@@ -803,14 +827,7 @@ const SallaProductsList = class {
803
827
  salla.event.emit('salla-products-list::products.fetched', response);
804
828
  this.productsFetched.emit(response);
805
829
  //💡 when source is related, cursor will not be existed
806
- if (response.filters && this.isFilterable()) {
807
- this.filtersResults = true;
808
- this.filtersSnapshot = JSON.parse(JSON.stringify(response.filters));
809
- salla.event.emit('filters::fetched', { filters: response.filters });
810
- }
811
- else if (this.isFilterable()) {
812
- salla.event.emit('filters::hidden');
813
- }
830
+ this.emitFilters(response);
814
831
  //because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
815
832
  if (shouldBuildNextPage) {
816
833
  this.nextPage = await this.resolveNextPageFromCursor(response);
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaProgressBarCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var iphoneX = require('./iphone-x-qC21wCLj.js');
8
8
  var mail = require('./mail-Bgvt2hc9.js');
9
9
  var cancel = require('./cancel-B5SbMYEk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var star = require('./star-DGcH7Yso.js');
8
8
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
9
9
  var Helper = require('./Helper-CgGR9Qf8.js');
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
7
- var functions = require('./functions-8bJoQsbY.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
+ var functions = require('./functions-Dnwp9wka.js');
8
8
  var gift = require('./gift-DbNivqYO.js');
9
9
  var tag = require('./tag-D-PcUR33.js');
10
10
  var check = require('./check-BnVBPQNp.js');
11
11
  var cancel = require('./cancel-B5SbMYEk.js');
12
- var trackedPromise = require('./tracked-promise-YbXLxnty.js');
12
+ var trackedPromise = require('./tracked-promise-DqErlr1h.js');
13
13
 
14
14
  const sallaLoyaltyProgramCss$3 = "";
15
15
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-CgGR9Qf8.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
9
  var mail = require('./mail-Bgvt2hc9.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  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}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
  var mail = require('./mail-Bgvt2hc9.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  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}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  function TrackedPromise(fn, options = {}) {
9
9
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
9
  /*
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ClIoplYB.js');
6
+ var index = require('./index-wTIlAVr3.js');
7
7
 
8
8
  function _mergeNamespaces(n, m) {
9
9
  m.forEach(function (e) {
@@ -82,7 +82,8 @@ export class SallaLocalizationModal {
82
82
  DZD: { en: "Algerian Dinar", ar: "دينار جزائري", symbol: "دج" },
83
83
  MAD: { en: "Moroccan Dirham", ar: "درهم مغربي", symbol: "د.م." },
84
84
  LYD: { en: "Libyan Dinar", ar: "دينار ليبي", symbol: "LD" },
85
- YER: { en: "Yemeni Riyal", ar: "ريال يمني", symbol: "ر.ي" }
85
+ YER: { en: "Yemeni Riyal", ar: "ريال يمني", symbol: "ر.ي" },
86
+ ILS: { en: "New Shekel", ar: "شيكل جديد", symbol: "₪" }
86
87
  };
87
88
  //here we will used the currency code instead of the symbol when current language is not arabic
88
89
  this.arabicCurrencies = ["SAR", "AED", "KWD", "BHD", "QAR", "OMR", "EGP", "IQD", "LBP", "SYP", "TND", "DZD", "MAD", "YER"];
@@ -115,6 +116,8 @@ export class SallaLocalizationModal {
115
116
  if (!this.currency) {
116
117
  this.currency = Salla.config.get('user.currency_code');
117
118
  }
119
+ // Pre-load currencies so the trigger can resolve unknown codes via API fallback before the modal opens
120
+ Salla.api.withoutNotifier(() => this.getCurrencies()).catch(() => null);
118
121
  }
119
122
  /**
120
123
  * open the component
@@ -142,7 +145,17 @@ export class SallaLocalizationModal {
142
145
  return this.modal.close();
143
146
  }
144
147
  getCurrency(currencyCode) {
145
- return this.currenciesList[currencyCode || this.currency] || { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" };
148
+ const code = currencyCode || this.currency;
149
+ if (this.currenciesList[code]) {
150
+ return this.currenciesList[code];
151
+ }
152
+ const fromApi = this.currencies.find((c) => c.code === code);
153
+ if (fromApi) {
154
+ const name = this.escapeHtml(String(fromApi.name || code));
155
+ const symbol = this.escapeHtml(String((fromApi.symbol || '').trim() || code));
156
+ return { en: name, ar: name, symbol };
157
+ }
158
+ return { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" };
146
159
  }
147
160
  getLanguageName() {
148
161
  return this.languageNames[this.language] || this.language || '';
@@ -160,6 +173,9 @@ export class SallaLocalizationModal {
160
173
  getCurrencyName(currencyCode) {
161
174
  return this.language === 'ar' ? this.getCurrency(currencyCode).ar : this.getCurrency(currencyCode).en;
162
175
  }
176
+ escapeHtml(str) {
177
+ return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
178
+ }
163
179
  async getLanguages() {
164
180
  return this.languages.length > 1 ? null : await Salla.config.languages().then(data => this.languages = data);
165
181
  }
@@ -211,7 +227,7 @@ export class SallaLocalizationModal {
211
227
  this.showTrigger
212
228
  ? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
213
229
  : '',
214
- h("salla-modal", { key: '862b768f3a0f9abe079703030bb686178d418ca7', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '96ce8b449b2c96718de083df1b39bf19d18e4543', slot: 'loading' }, h("div", { key: '44ba3efdf44d8758b9824dfbee98081549aad41f', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '66c85016f14871d05eb296691962ddf0e5b8a512', width: '25%', height: '15px' }), h("div", { key: 'e3e0a9cf51572f13456f82d9b08a14a132a01657', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '4c60b249bd54e0850471967d176a789f38f95841', width: '25%', height: '15px' }), h("div", { key: '7da8613b052a1dab1b34cf54fad755f703b68e5a', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b465504898a6861d5cce2456444cc81e7bc61376', height: '40px', width: '100%' }))), !!this.hasError ?
230
+ h("salla-modal", { key: '6a3f736912181c5305a6c3007a5c3a739dc29b17', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '1fa6da25fef6d53258fdf14be51f23681321f5f2', slot: 'loading' }, h("div", { key: '64aa0b53fe359df364c915b80b5bc26de5e57300', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '41ba7271f064fa3880a75467868da9742b236c5c', width: '25%', height: '15px' }), h("div", { key: 'fa336b997a868f2f08ae3b89933d2dc99a33ce74', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'f2a3c995ee6aa642435b9aa054bb0dd857674b61', width: '25%', height: '15px' }), h("div", { key: '4cdc8d8f3f639a161e4c8663e7bcd3425aeb3e00', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '717051872db0bafe45c8fecb5559dca19954e1f2', height: '40px', width: '100%' }))), !!this.hasError ?
215
231
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
216
232
  h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
217
233
  h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?