@salla.sa/twilight-components 2.14.446 → 2.14.448

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 (311) hide show
  1. package/dist/cjs/{filepond-plugin-file-poster-DXUkwq91.js → filepond-plugin-file-poster-eC1dn4xl.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-validate-size-CmWT-l1o.js → filepond-plugin-file-validate-size-_2IuCCff.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-type-CI-SRLe5.js → filepond-plugin-file-validate-type-BL0DbAnh.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-image-edit-D0ccVwFm.js → filepond-plugin-image-edit-CgKir2xD.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-exif-orientation-CC7CmDIV.js → filepond-plugin-image-exif-orientation-syoj1Juw.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-preview-DOMTJIsr.js → filepond-plugin-image-preview-B3kAVSrA.js} +1 -1
  7. package/dist/cjs/{filepond-rDr-05NK.js → filepond-xdMsJQmk.js} +1 -1
  8. package/dist/cjs/{functions-BrD7nRK2.js → functions-B2luUM6v.js} +1 -1
  9. package/dist/cjs/{index-BBFmWakU.js → index-BMR8pPXK.js} +1 -1
  10. package/dist/cjs/{index-DA8jhZqT.js → index-uoA36zqH.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 +1 -1
  42. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  44. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  46. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +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-details-multiple-bundle-product.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +33 -32
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  83. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-tiered-offer.cjs.entry.js +48 -31
  91. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  98. package/dist/cjs/{tracked-promise-vD81wqoM.js → tracked-promise-CVeKKQ0b.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +1 -1
  100. package/dist/cjs/{vanilla-picker-Dc4-oPc4.js → vanilla-picker-jTWa07cO.js} +1 -1
  101. package/dist/collection/components/salla-products-list/salla-products-list.js +32 -31
  102. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +47 -30
  103. package/dist/components/index.js +2 -2
  104. package/dist/components/salla-products-list2.js +32 -31
  105. package/dist/components/salla-tiered-offer.js +47 -30
  106. package/dist/esm/{filepond-CpYF7JQY.js → filepond-BbuLIuP0.js} +1 -1
  107. package/dist/esm/{filepond-plugin-file-poster-ob6i92P3.js → filepond-plugin-file-poster-DlDdJpXD.js} +1 -1
  108. package/dist/esm/{filepond-plugin-file-validate-size-h8AHfyQH.js → filepond-plugin-file-validate-size-BYkUUSGJ.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-validate-type-BPLx-hfr.js → filepond-plugin-file-validate-type-Cz9XrV5V.js} +1 -1
  110. package/dist/esm/{filepond-plugin-image-edit-B7wPe8-3.js → filepond-plugin-image-edit-CpEK0C8_.js} +1 -1
  111. package/dist/esm/{filepond-plugin-image-exif-orientation-e7W60Y2D.js → filepond-plugin-image-exif-orientation-D6RHOJuD.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-preview-DOov9hTx.js → filepond-plugin-image-preview-D6ZgXCUp.js} +1 -1
  113. package/dist/esm/{functions-BRfvCQ-R.js → functions-BwIeBNND.js} +1 -1
  114. package/dist/esm/{index-DryPCgN9.js → index-BHYtfMwX.js} +2 -2
  115. package/dist/esm/{index-nKWbBz_d.js → index-CETV5IHH.js} +1 -1
  116. package/dist/esm/loader.js +2 -2
  117. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  118. package/dist/esm/salla-accordion_6.entry.js +1 -1
  119. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  120. package/dist/esm/salla-advertisement.entry.js +1 -1
  121. package/dist/esm/salla-alert_2.entry.js +1 -1
  122. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  123. package/dist/esm/salla-apps-icons.entry.js +1 -1
  124. package/dist/esm/salla-badge.entry.js +1 -1
  125. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  126. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  127. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  128. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  129. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  130. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  131. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  132. package/dist/esm/salla-contacts.entry.js +1 -1
  133. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  134. package/dist/esm/salla-count-down.entry.js +1 -1
  135. package/dist/esm/salla-custom-fields.entry.js +1 -1
  136. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  137. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  138. package/dist/esm/salla-filters-widget.entry.js +1 -1
  139. package/dist/esm/salla-filters.entry.js +1 -1
  140. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  141. package/dist/esm/salla-gifting.entry.js +1 -1
  142. package/dist/esm/salla-hook.entry.js +1 -1
  143. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  144. package/dist/esm/salla-installment.entry.js +1 -1
  145. package/dist/esm/salla-list-tile.entry.js +1 -1
  146. package/dist/esm/salla-localization-modal.entry.js +1 -1
  147. package/dist/esm/salla-login-modal.entry.js +1 -1
  148. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  149. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  150. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  151. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  152. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  153. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  154. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  155. package/dist/esm/salla-loyalty.entry.js +1 -1
  156. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  157. package/dist/esm/salla-map.entry.js +1 -1
  158. package/dist/esm/salla-menu.entry.js +1 -1
  159. package/dist/esm/salla-metadata.entry.js +1 -1
  160. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  161. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  162. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  163. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  164. package/dist/esm/salla-notification-item.entry.js +1 -1
  165. package/dist/esm/salla-notifications.entry.js +1 -1
  166. package/dist/esm/salla-offer-modal.entry.js +1 -1
  167. package/dist/esm/salla-offer.entry.js +1 -1
  168. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  169. package/dist/esm/salla-order-details-options.entry.js +1 -1
  170. package/dist/esm/salla-order-details.entry.js +1 -1
  171. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  172. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  173. package/dist/esm/salla-order-edit.entry.js +1 -1
  174. package/dist/esm/salla-order-summary.entry.js +1 -1
  175. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  176. package/dist/esm/salla-orders.entry.js +1 -1
  177. package/dist/esm/salla-payments.entry.js +1 -1
  178. package/dist/esm/salla-placeholder.entry.js +1 -1
  179. package/dist/esm/salla-price-range.entry.js +1 -1
  180. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  181. package/dist/esm/salla-product-card_2.entry.js +1 -1
  182. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  183. package/dist/esm/salla-products-list.entry.js +33 -32
  184. package/dist/esm/salla-progress-bar.entry.js +1 -1
  185. package/dist/esm/salla-quick-order.entry.js +1 -1
  186. package/dist/esm/salla-rating-modal.entry.js +1 -1
  187. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  188. package/dist/esm/salla-scopes.entry.js +1 -1
  189. package/dist/esm/salla-search.entry.js +1 -1
  190. package/dist/esm/salla-skeleton.entry.js +1 -1
  191. package/dist/esm/salla-slider.entry.js +1 -1
  192. package/dist/esm/salla-social-share.entry.js +1 -1
  193. package/dist/esm/salla-social.entry.js +1 -1
  194. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  195. package/dist/esm/salla-tiered-offer.entry.js +48 -31
  196. package/dist/esm/salla-tooltip.entry.js +1 -1
  197. package/dist/esm/salla-trust-badges.entry.js +1 -1
  198. package/dist/esm/salla-user-menu.entry.js +1 -1
  199. package/dist/esm/salla-user-profile.entry.js +1 -1
  200. package/dist/esm/salla-user-settings.entry.js +1 -1
  201. package/dist/esm/salla-verify.entry.js +1 -1
  202. package/dist/esm/salla-wallet.entry.js +1 -1
  203. package/dist/esm/{tracked-promise-x7FFO6oF.js → tracked-promise-p8K_AJAQ.js} +1 -1
  204. package/dist/esm/twilight.js +2 -2
  205. package/dist/esm/{vanilla-picker-WM2eU5Jq.js → vanilla-picker-CwN-g5m_.js} +1 -1
  206. package/dist/twilight/{p-740ccc8e.entry.js → p-002505b9.entry.js} +1 -1
  207. package/dist/twilight/{p-43e5cb00.entry.js → p-017e3198.entry.js} +1 -1
  208. package/dist/twilight/{p-02be2d0d.entry.js → p-02af1d80.entry.js} +1 -1
  209. package/dist/twilight/{p-86e3a8fc.entry.js → p-02de8869.entry.js} +1 -1
  210. package/dist/twilight/{p-db288463.entry.js → p-06642c76.entry.js} +1 -1
  211. package/dist/twilight/{p-04bf282e.entry.js → p-0a1a41e9.entry.js} +1 -1
  212. package/dist/twilight/{p-752c4d55.entry.js → p-0ad04ca2.entry.js} +1 -1
  213. package/dist/twilight/{p-acef8c7b.entry.js → p-0b271cf4.entry.js} +1 -1
  214. package/dist/twilight/{p-f974d986.entry.js → p-0b3ca129.entry.js} +1 -1
  215. package/dist/twilight/{p-c312d0db.entry.js → p-0b8706e7.entry.js} +1 -1
  216. package/dist/twilight/{p-e20e9fcc.entry.js → p-0f70ef8d.entry.js} +1 -1
  217. package/dist/twilight/{p-56f5aac9.entry.js → p-10b11447.entry.js} +1 -1
  218. package/dist/twilight/{p-ffe84d46.entry.js → p-1276ce95.entry.js} +1 -1
  219. package/dist/twilight/{p-0fbc1adc.entry.js → p-13168745.entry.js} +1 -1
  220. package/dist/twilight/{p-cc65c26b.entry.js → p-131ffbcc.entry.js} +1 -1
  221. package/dist/twilight/{p-25b0ee17.entry.js → p-1786ed83.entry.js} +1 -1
  222. package/dist/twilight/{p-426a869c.entry.js → p-1d25ae1c.entry.js} +1 -1
  223. package/dist/twilight/{p-a09118de.entry.js → p-1d5459db.entry.js} +1 -1
  224. package/dist/twilight/{p-38334780.entry.js → p-202fcfc6.entry.js} +1 -1
  225. package/dist/twilight/{p-e1176fed.entry.js → p-20e1f5b9.entry.js} +1 -1
  226. package/dist/twilight/p-23aabd1c.entry.js +4 -0
  227. package/dist/twilight/{p-43420d4d.entry.js → p-2503c3ac.entry.js} +1 -1
  228. package/dist/twilight/{p-6e33dad3.entry.js → p-2ccb281b.entry.js} +1 -1
  229. package/dist/twilight/{p-B09zahHa.js → p-2x5YwExe.js} +1 -1
  230. package/dist/twilight/{p-46b2f44a.entry.js → p-3c19f975.entry.js} +1 -1
  231. package/dist/twilight/{p-d6ceeb02.entry.js → p-3ce5738a.entry.js} +1 -1
  232. package/dist/twilight/{p-385277f9.entry.js → p-3eab400d.entry.js} +1 -1
  233. package/dist/twilight/{p-b607e474.entry.js → p-404ac2a7.entry.js} +1 -1
  234. package/dist/twilight/{p-f2563e2b.entry.js → p-44215d1e.entry.js} +1 -1
  235. package/dist/twilight/{p-96ce2dbc.entry.js → p-47b4f13c.entry.js} +1 -1
  236. package/dist/twilight/{p-4b0747a1.entry.js → p-4bca0fab.entry.js} +1 -1
  237. package/dist/twilight/{p-63dd5a3c.entry.js → p-4cf98844.entry.js} +1 -1
  238. package/dist/twilight/{p-56af742e.entry.js → p-5031ae92.entry.js} +1 -1
  239. package/dist/twilight/{p-65421b04.entry.js → p-56916095.entry.js} +1 -1
  240. package/dist/twilight/{p-691abee2.entry.js → p-5c009bd1.entry.js} +1 -1
  241. package/dist/twilight/{p-47ac0d89.entry.js → p-6346f1bd.entry.js} +1 -1
  242. package/dist/twilight/{p-41b5d22c.entry.js → p-64cc4267.entry.js} +1 -1
  243. package/dist/twilight/{p-f7b7ea3d.entry.js → p-6d000a1b.entry.js} +1 -1
  244. package/dist/twilight/{p-c81c589b.entry.js → p-6f3cce79.entry.js} +1 -1
  245. package/dist/twilight/{p-3158d2a9.entry.js → p-727b2a97.entry.js} +1 -1
  246. package/dist/twilight/{p-06254080.entry.js → p-734ff28a.entry.js} +1 -1
  247. package/dist/twilight/{p-891d0baa.entry.js → p-752a8211.entry.js} +1 -1
  248. package/dist/twilight/{p-362d1920.entry.js → p-76cf66ad.entry.js} +1 -1
  249. package/dist/twilight/{p-e450e794.entry.js → p-788d2dea.entry.js} +1 -1
  250. package/dist/twilight/{p-306017cc.entry.js → p-79371f48.entry.js} +1 -1
  251. package/dist/twilight/{p-3c8531fd.entry.js → p-7b448d5b.entry.js} +1 -1
  252. package/dist/twilight/{p-dc0d3911.entry.js → p-7c348484.entry.js} +1 -1
  253. package/dist/twilight/{p-66b9efc0.entry.js → p-7cfef393.entry.js} +1 -1
  254. package/dist/twilight/{p-e5cfb673.entry.js → p-8581c249.entry.js} +1 -1
  255. package/dist/twilight/{p-f38b7948.entry.js → p-86dd66bc.entry.js} +1 -1
  256. package/dist/twilight/{p-d520bdb9.entry.js → p-87063cf0.entry.js} +1 -1
  257. package/dist/twilight/{p-f2f152fc.entry.js → p-8eaa609b.entry.js} +1 -1
  258. package/dist/twilight/{p-6c25d9f0.entry.js → p-8ece10ce.entry.js} +1 -1
  259. package/dist/twilight/{p-6b2d84be.entry.js → p-96c5dcd0.entry.js} +1 -1
  260. package/dist/twilight/{p-38c40f88.entry.js → p-9fc822b7.entry.js} +1 -1
  261. package/dist/twilight/{p-DryPCgN9.js → p-BHYtfMwX.js} +1 -1
  262. package/dist/twilight/{p-_2O7LkzU.js → p-BNaQSz6t.js} +1 -1
  263. package/dist/twilight/{p-CW4u-F7Z.js → p-BW6_yrjl.js} +2 -2
  264. package/dist/twilight/{p-W3jneIaI.js → p-BvqPxWPn.js} +1 -1
  265. package/dist/twilight/{p-DnhZebll.js → p-Bvw0Axx9.js} +1 -1
  266. package/dist/twilight/{p-k4lInm67.js → p-CTAPbMR3.js} +1 -1
  267. package/dist/twilight/{p-D0NjtBeS.js → p-Cl7SIRPD.js} +1 -1
  268. package/dist/twilight/{p-DfQlAXmu.js → p-D8Vw7Lrc.js} +1 -1
  269. package/dist/twilight/{p-DkfNyQIQ.js → p-DZivnLbg.js} +1 -1
  270. package/dist/twilight/p-Dvaa0hYf.js +4 -0
  271. package/dist/twilight/{p-f196f804.entry.js → p-a1c7f1b1.entry.js} +1 -1
  272. package/dist/twilight/{p-1a8ffb6a.entry.js → p-a52dd6b4.entry.js} +1 -1
  273. package/dist/twilight/{p-392bac91.entry.js → p-a8ce09a0.entry.js} +1 -1
  274. package/dist/twilight/{p-d9adeaf2.entry.js → p-acc76fc8.entry.js} +1 -1
  275. package/dist/twilight/{p-70e5fcb0.entry.js → p-adebf2ac.entry.js} +1 -1
  276. package/dist/twilight/{p-da8058f3.entry.js → p-aeaad4b5.entry.js} +1 -1
  277. package/dist/twilight/{p-39e59627.entry.js → p-b678e909.entry.js} +1 -1
  278. package/dist/twilight/{p-5f08f47d.entry.js → p-b6f3083c.entry.js} +1 -1
  279. package/dist/twilight/{p-b51a70cc.entry.js → p-b9126729.entry.js} +1 -1
  280. package/dist/twilight/{p-eb3ef9e4.entry.js → p-ba28e996.entry.js} +1 -1
  281. package/dist/twilight/{p-372ff04c.entry.js → p-bcab43fc.entry.js} +1 -1
  282. package/dist/twilight/{p-7447b19b.entry.js → p-be186489.entry.js} +1 -1
  283. package/dist/twilight/{p-4e8a8906.entry.js → p-be8ac1a3.entry.js} +1 -1
  284. package/dist/twilight/{p-e00cbb9e.entry.js → p-c1fa4ddb.entry.js} +1 -1
  285. package/dist/twilight/{p-c22a3b11.entry.js → p-c3466964.entry.js} +1 -1
  286. package/dist/twilight/{p-e114505e.entry.js → p-c3703ca3.entry.js} +1 -1
  287. package/dist/twilight/{p-ec145c3d.entry.js → p-c651f264.entry.js} +1 -1
  288. package/dist/twilight/{p-e84c62f7.entry.js → p-c6fe271a.entry.js} +1 -1
  289. package/dist/twilight/{p-57e63e76.entry.js → p-cc618f38.entry.js} +1 -1
  290. package/dist/twilight/{p-f6d9edd5.entry.js → p-cd2c961c.entry.js} +1 -1
  291. package/dist/twilight/{p-4139872a.entry.js → p-cd48d7aa.entry.js} +1 -1
  292. package/dist/twilight/{p-cfa852cf.entry.js → p-d03f8ab0.entry.js} +1 -1
  293. package/dist/twilight/{p-3ea0a5bb.entry.js → p-d25cd2ed.entry.js} +1 -1
  294. package/dist/twilight/{p-7b91245f.entry.js → p-d26e0eae.entry.js} +1 -1
  295. package/dist/twilight/{p-85911960.entry.js → p-d2a76aa4.entry.js} +1 -1
  296. package/dist/twilight/{p-d72ac224.entry.js → p-df48debf.entry.js} +1 -1
  297. package/dist/twilight/{p-02281f9b.entry.js → p-e4d102f5.entry.js} +1 -1
  298. package/dist/twilight/{p-4eb51d3e.entry.js → p-ed91eae0.entry.js} +1 -1
  299. package/dist/twilight/{p-e290b5c5.entry.js → p-f06bd0b0.entry.js} +1 -1
  300. package/dist/twilight/{p-27954727.entry.js → p-f67dd591.entry.js} +1 -1
  301. package/dist/twilight/p-f8369073.entry.js +4 -0
  302. package/dist/twilight/{p-be360c44.entry.js → p-fb6fea7a.entry.js} +1 -1
  303. package/dist/twilight/{p-Cqvb5bEk.js → p-lbjqzRH2.js} +1 -1
  304. package/dist/twilight/twilight.esm.js +1 -1
  305. package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -0
  306. package/dist/types/components/salla-tiered-offer/interfaces.d.ts +1 -0
  307. package/dist/types/components/salla-tiered-offer/salla-tiered-offer.d.ts +3 -0
  308. package/package.json +5 -5
  309. package/dist/twilight/p-Dv6JHEwK.js +0 -4
  310. package/dist/twilight/p-a35822f5.entry.js +0 -4
  311. package/dist/twilight/p-c1b9517f.entry.js +0 -4
@@ -432,6 +432,34 @@ export class SallaProductsList {
432
432
  getSourceValue() {
433
433
  return this.currentCategoryIdFilter ? this.currentCategoryIdFilter : Helper.getProductsSourceValue(this.source, this.sourceValue);
434
434
  }
435
+ logFetchError(errorPhase, error, fetchPath, http, response) {
436
+ try {
437
+ const body = response && typeof response === 'object' ? response : null;
438
+ const sourceValue = this.getSourceValue();
439
+ salla.analytics?.log('salla::products.list.fetch.error', {
440
+ errorPhase,
441
+ source: this.getSource(),
442
+ sourceValue: typeof sourceValue === 'string' && sourceValue.length > 200
443
+ ? `${sourceValue.slice(0, 200)}…`
444
+ : Array.isArray(sourceValue) ? { length: sourceValue.length } : sourceValue,
445
+ pageIndex: this.infiniteScroll?.pageIndex,
446
+ fetchPath,
447
+ httpStatus: http?.status,
448
+ httpStatusText: http?.statusText,
449
+ responseUrl: http?.url,
450
+ ...(body && {
451
+ dataCount: Array.isArray(body.data) ? body.data.length : undefined,
452
+ responseKeys: Object.keys(body).slice(0, 15),
453
+ filtersCount: Array.isArray(body.filters) ? body.filters.length : undefined,
454
+ }),
455
+ errorMessage: error instanceof Error ? error.message : String(error),
456
+ ...(errorPhase === 'processing' && error instanceof Error && error.stack
457
+ ? { errorStack: error.stack.slice(0, 500) }
458
+ : {}),
459
+ });
460
+ }
461
+ catch { /* analytics */ }
462
+ }
435
463
  appendDataLayer(data) {
436
464
  if (typeof dataLayer !== 'object' || !Array.isArray(dataLayer)) {
437
465
  //todo:: check if we should define it here
@@ -508,47 +536,20 @@ export class SallaProductsList {
508
536
  }
509
537
  catch (error) {
510
538
  console.error('Error during load:', error);
511
- try {
512
- const res = httpResponse;
513
- salla.analytics?.log('salla::products.list.fetch.error', {
514
- source: this.getSource(),
515
- nextPage: this.nextPage,
516
- pageIndex: this.infiniteScroll?.pageIndex,
517
- fetchPath: typeof path === 'string' ? path : undefined,
518
- httpStatus: res?.status,
519
- httpStatusText: res?.statusText,
520
- responseUrl: res?.url,
521
- itemsLength: Array.isArray(response?.data) ? response.data.length : undefined,
522
- responseKeys: response && typeof response === 'object' ? Object.keys(response).slice(0, 30) : undefined,
523
- errorMessage: error instanceof Error ? error.message : String(error),
524
- });
525
- }
526
- catch { /* analytics */ }
539
+ const res = httpResponse;
540
+ this.logFetchError('processing', error, typeof path === 'string' ? path : undefined, res, response);
527
541
  }
528
542
  finally {
529
543
  this.isProcessing = false;
530
544
  }
531
545
  });
532
546
  this.infiniteScroll?.on('error', (error, path, httpResponse) => {
533
- console.log('Error occurred during request');
534
- try {
535
- const res = httpResponse;
536
- salla.analytics?.log('salla::products.list.fetch.error', {
537
- source: this.getSource(),
538
- nextPage: this.nextPage,
539
- pageIndex: this.infiniteScroll?.pageIndex,
540
- fetchPath: path,
541
- httpStatus: res?.status,
542
- httpStatusText: res?.statusText,
543
- responseUrl: res?.url,
544
- errorMessage: error instanceof Error ? error.message : String(error),
545
- });
546
- }
547
- catch { /* analytics */ }
547
+ const res = httpResponse;
548
548
  this.status.querySelector('.s-infinite-scroll-error').classList.remove('s-hidden');
549
549
  this.placeholderLoader && this.placeholderLoader.remove();
550
550
  this.loading(false);
551
551
  this.isProcessing = false;
552
+ this.logFetchError('fetch', error, path, res);
552
553
  });
553
554
  salla.onReady(() => {
554
555
  const snapshot = sessionStorage.getItem(this.infiniteScrollStateKey);
@@ -54,6 +54,15 @@ export class SallaTieredOffer {
54
54
  // If coupon is applied but offer doesn't support coupons, widget should be hidden
55
55
  return !(cartCoupon && !offerData.details?.applied_with_coupon);
56
56
  }
57
+ shouldHideForGuest() {
58
+ return salla.config.isGuest();
59
+ }
60
+ shouldHideUntilThreshold(details, tierIndex) {
61
+ return !!(details?.hide_until_threshold && tierIndex === 0);
62
+ }
63
+ resolveTierName(tiers, index) {
64
+ return TierUtils.getTierNameByIndex(tiers, index) || '';
65
+ }
57
66
  async fetchTieredOfferData() {
58
67
  try {
59
68
  const { data } = await salla.api.cart.offers();
@@ -80,14 +89,20 @@ export class SallaTieredOffer {
80
89
  // Find current tier index based on current_value from API
81
90
  const currentValue = this.apiOfferData.details?.current_value || 0;
82
91
  const currentTierIndex = this.findCurrentTierIndex(currentValue);
83
- // Only render if user has reached at least the first tier
84
- if (currentTierIndex === 0) {
92
+ // Hide entire widget for unauthenticated users
93
+ if (this.shouldHideForGuest()) {
94
+ this.canRender = false;
95
+ return;
96
+ }
97
+ // Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
98
+ if (this.shouldHideUntilThreshold(this.apiOfferData.details, currentTierIndex)) {
85
99
  this.canRender = false;
86
100
  return;
87
101
  }
88
102
  this.currentTierIndex = currentTierIndex;
89
- this.currentTier = TierUtils.getTierNameByIndex(this.tieredOfferData.tiers, currentTierIndex);
90
- this.activeTabTier = this.currentTier;
103
+ this.currentTier = this.resolveTierName(this.tieredOfferData.tiers, currentTierIndex);
104
+ // Default to first tab so tabs always have visible content
105
+ this.activeTabTier = this.currentTier || this.tieredOfferData.tiers[0]?.tier_name;
91
106
  this.canRender = true;
92
107
  }
93
108
  componentDidLoad() {
@@ -122,44 +137,46 @@ export class SallaTieredOffer {
122
137
  if (!freshOfferData || !this.tieredOfferData) {
123
138
  return;
124
139
  }
140
+ if (!freshOfferData.details?.discounts?.length) {
141
+ this.canRender = false;
142
+ return;
143
+ }
125
144
  // Check coupon compatibility
126
145
  if (!this.validateCouponCompatibility(freshOfferData, updatedCart.coupon)) {
127
146
  this.canRender = false;
128
147
  return;
129
148
  }
130
- // If no coupon conflict, show widget
131
- this.canRender = true;
132
- // Check if this offer should update with cart changes
133
- if (freshOfferData.details?.with_current_cart === false) {
149
+ // Hide entire widget for unauthenticated users
150
+ if (this.shouldHideForGuest()) {
151
+ this.canRender = false;
134
152
  return;
135
153
  }
136
- // Update current_value in API offer data
137
- // const currentValue = updatedCart.sub_total;
138
- // console.log('currentValue #####3', currentValue);
139
- // this.apiOfferData = {
140
- // ...this.apiOfferData,
141
- // details: {
142
- // ...this.apiOfferData.details,
143
- // current_value: currentValue
144
- // }
145
- // };
146
- // Use current_value from fresh API data instead of cart sub_total
154
+ // Build fresh tier map so index computation uses up-to-date thresholds
155
+ const freshTieredData = this.mapApiDataToTiers(freshOfferData);
147
156
  const currentValue = freshOfferData.details?.current_value || 0;
148
- this.apiOfferData = freshOfferData;
149
- // Update current tier based on new value
150
- const newTierIndex = this.findCurrentTierIndex(currentValue);
151
- // Check if user qualifies for any tier
152
- if (newTierIndex === 0) {
157
+ const newTierIndex = this.findCurrentTierIndex(currentValue, freshTieredData.tiers);
158
+ // Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
159
+ if (this.shouldHideUntilThreshold(freshOfferData.details, newTierIndex)) {
153
160
  this.canRender = false;
154
161
  return;
155
162
  }
156
- // user qualifies show widget
163
+ // Offer progress is based on historical purchases only — skip state update on cart changes
164
+ // Use strict === false to avoid treating an omitted flag as false
165
+ if (freshOfferData.details?.with_current_cart === false) {
166
+ this.canRender = true;
167
+ return;
168
+ }
169
+ // All guards passed — update state atomically
170
+ this.apiOfferData = freshOfferData;
171
+ this.tieredOfferData = freshTieredData;
157
172
  this.canRender = true;
158
173
  this.currentTierIndex = newTierIndex;
159
- this.currentTier = TierUtils.getTierNameByIndex(this.tieredOfferData.tiers, newTierIndex);
160
- // Update active tab if needed
161
- if (this.activeTabTier !== this.currentTier) {
162
- this.activeTabTier = this.currentTier;
174
+ // Tiers are 1-based; fall back to first tier when no tier has been reached yet
175
+ this.currentTier = this.resolveTierName(freshTieredData.tiers, newTierIndex);
176
+ // Update active tab if needed; default to first tab when no tier reached
177
+ const resolvedTab = this.currentTier || freshTieredData.tiers[0]?.tier_name;
178
+ if (this.activeTabTier !== resolvedTab) {
179
+ this.activeTabTier = resolvedTab;
163
180
  }
164
181
  }
165
182
  getLoadingSkeletonView() {
@@ -257,7 +274,7 @@ export class SallaTieredOffer {
257
274
  return null;
258
275
  }
259
276
  const currentTierData = this.getCurrentTierData();
260
- return (h(Host, null, h("div", { class: "s-tiered-offer-container" }, h("div", { class: "s-tiered-offer-header" }, h("div", { class: "s-tiered-offer-header-content" }, h("p", { class: "s-tiered-offer-program-title" }, this.loyaltyProgramText), h("div", { class: "s-tiered-offer-current-tier-name-wrapper" }, h("h2", { class: "s-tiered-offer-current-tier" }, this.currentTierText, " ", h("span", { class: "s-tiered-offer-tier-name" }, currentTierData.name)), h("span", { innerHTML: currentTierData.icon })))), this.renderProgressBar(), this.renderTabs())));
277
+ return (h(Host, null, h("div", { class: "s-tiered-offer-container" }, h("div", { class: "s-tiered-offer-header" }, h("div", { class: "s-tiered-offer-header-content" }, h("p", { class: "s-tiered-offer-program-title" }, this.loyaltyProgramText), this.currentTier && (h("div", { class: "s-tiered-offer-current-tier-name-wrapper" }, h("h2", { class: "s-tiered-offer-current-tier" }, this.currentTierText, " ", h("span", { class: "s-tiered-offer-tier-name" }, currentTierData.name)), h("span", { innerHTML: currentTierData.icon }))))), this.renderProgressBar(), this.renderTabs())));
261
278
  }
262
279
  static get is() { return "salla-tiered-offer"; }
263
280
  static get originalStyleUrls() {