@salla.sa/twilight-components 2.14.441 → 2.14.443

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-CR18WANU.js → filepond-DUuldyqf.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BgJLk2xE.js → filepond-plugin-file-poster-DCILZbgm.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DdhORRaG.js → filepond-plugin-file-validate-size-DGRAQ0sm.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Cub0X5ah.js → filepond-plugin-file-validate-type-DYFEU9Tu.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DgEsDjWT.js → filepond-plugin-image-edit-BfFPad0T.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BTfUfEsw.js → filepond-plugin-image-exif-orientation-OL_9sX5A.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-HZ3u1SlT.js → filepond-plugin-image-preview-CJE7WqjM.js} +1 -1
  8. package/dist/cjs/{functions-D9RJmmeE.js → functions-CPtrW5R0.js} +1 -1
  9. package/dist/cjs/{index-BTssS-W3.js → index-C39fe6Fg.js} +1 -1
  10. package/dist/cjs/{index-ChjKTah1.js → index-DTMl6O1v.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 +24 -3
  76. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-reward-action_4.cjs.entry.js +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 +31 -48
  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-kKXrk2xR.js → tracked-promise-Bxh4OHr8.js} +1 -1
  99. package/dist/cjs/twilight.cjs.js +1 -1
  100. package/dist/cjs/{vanilla-picker-DchwguNU.js → vanilla-picker-BT7MIz0v.js} +1 -1
  101. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.css +17 -11
  102. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +22 -1
  103. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +30 -47
  104. package/dist/components/index.js +2 -2
  105. package/dist/components/salla-product-card-embed.js +23 -2
  106. package/dist/components/salla-tiered-offer.js +30 -47
  107. package/dist/esm/{filepond-DKQDCbwV.js → filepond-CzVc7z2L.js} +1 -1
  108. package/dist/esm/{filepond-plugin-file-poster-SawqMYzR.js → filepond-plugin-file-poster-DCAos-M-.js} +1 -1
  109. package/dist/esm/{filepond-plugin-file-validate-size-BmxmtaD4.js → filepond-plugin-file-validate-size-QIZfch1N.js} +1 -1
  110. package/dist/esm/{filepond-plugin-file-validate-type-CCuZxfqE.js → filepond-plugin-file-validate-type-DkQ2Tjmm.js} +1 -1
  111. package/dist/esm/{filepond-plugin-image-edit-BW1mzub6.js → filepond-plugin-image-edit-BYTzgZli.js} +1 -1
  112. package/dist/esm/{filepond-plugin-image-exif-orientation-CN08NQm5.js → filepond-plugin-image-exif-orientation-BShml-fP.js} +1 -1
  113. package/dist/esm/{filepond-plugin-image-preview-HKD_HLA1.js → filepond-plugin-image-preview-BZSvWS5P.js} +1 -1
  114. package/dist/esm/{functions-hYdCF4RE.js → functions-BRYRoVDu.js} +1 -1
  115. package/dist/esm/{index-VfKYpHVb.js → index-8AfwlDks.js} +1 -1
  116. package/dist/esm/{index-DMcU-3GG.js → index-C1Q9TkIB.js} +2 -2
  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 +1 -1
  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-details-multiple-bundle-product.entry.js +1 -1
  170. package/dist/esm/salla-order-details-options.entry.js +1 -1
  171. package/dist/esm/salla-order-details.entry.js +1 -1
  172. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  173. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  174. package/dist/esm/salla-order-edit.entry.js +1 -1
  175. package/dist/esm/salla-order-summary.entry.js +1 -1
  176. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  177. package/dist/esm/salla-orders.entry.js +1 -1
  178. package/dist/esm/salla-payments.entry.js +1 -1
  179. package/dist/esm/salla-placeholder.entry.js +1 -1
  180. package/dist/esm/salla-price-range.entry.js +1 -1
  181. package/dist/esm/salla-product-card-embed.entry.js +24 -3
  182. package/dist/esm/salla-product-card_2.entry.js +1 -1
  183. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  184. package/dist/esm/salla-products-list.entry.js +1 -1
  185. package/dist/esm/salla-progress-bar.entry.js +1 -1
  186. package/dist/esm/salla-quick-order.entry.js +1 -1
  187. package/dist/esm/salla-rating-modal.entry.js +1 -1
  188. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  189. package/dist/esm/salla-scopes.entry.js +1 -1
  190. package/dist/esm/salla-search.entry.js +1 -1
  191. package/dist/esm/salla-skeleton.entry.js +1 -1
  192. package/dist/esm/salla-slider.entry.js +1 -1
  193. package/dist/esm/salla-social-share.entry.js +1 -1
  194. package/dist/esm/salla-social.entry.js +1 -1
  195. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  196. package/dist/esm/salla-tiered-offer.entry.js +31 -48
  197. package/dist/esm/salla-tooltip.entry.js +1 -1
  198. package/dist/esm/salla-trust-badges.entry.js +1 -1
  199. package/dist/esm/salla-user-menu.entry.js +1 -1
  200. package/dist/esm/salla-user-profile.entry.js +1 -1
  201. package/dist/esm/salla-user-settings.entry.js +1 -1
  202. package/dist/esm/salla-verify.entry.js +1 -1
  203. package/dist/esm/salla-wallet.entry.js +1 -1
  204. package/dist/esm/{tracked-promise-BSIJGUDO.js → tracked-promise-D1Ypxmkl.js} +1 -1
  205. package/dist/esm/twilight.js +2 -2
  206. package/dist/esm/{vanilla-picker-DKFizE1R.js → vanilla-picker-Cydv9qqB.js} +1 -1
  207. package/dist/twilight/{p-81bc0869.entry.js → p-025d82e1.entry.js} +1 -1
  208. package/dist/twilight/{p-f470779e.entry.js → p-04ba55fb.entry.js} +1 -1
  209. package/dist/twilight/{p-d65e45a0.entry.js → p-0ea66318.entry.js} +1 -1
  210. package/dist/twilight/{p-e7b5028b.entry.js → p-11c60244.entry.js} +1 -1
  211. package/dist/twilight/{p-d10bab5b.entry.js → p-122be9b9.entry.js} +1 -1
  212. package/dist/twilight/{p-1694c751.entry.js → p-13a48390.entry.js} +1 -1
  213. package/dist/twilight/{p-3f65d67b.entry.js → p-1a1430f4.entry.js} +1 -1
  214. package/dist/twilight/{p-ad3e6082.entry.js → p-1f532744.entry.js} +1 -1
  215. package/dist/twilight/{p-f5019168.entry.js → p-210fbf19.entry.js} +1 -1
  216. package/dist/twilight/{p-e3a7f1c8.entry.js → p-2161e61b.entry.js} +1 -1
  217. package/dist/twilight/{p-5ee27511.entry.js → p-21f59e1c.entry.js} +1 -1
  218. package/dist/twilight/{p-f59f94de.entry.js → p-2474d970.entry.js} +1 -1
  219. package/dist/twilight/{p-cbc8df12.entry.js → p-25ca9226.entry.js} +1 -1
  220. package/dist/twilight/{p-bd4140b1.entry.js → p-27cb91ff.entry.js} +1 -1
  221. package/dist/twilight/{p-939d986e.entry.js → p-28116325.entry.js} +1 -1
  222. package/dist/twilight/{p-b36b9c00.entry.js → p-29485f8d.entry.js} +1 -1
  223. package/dist/twilight/{p-93f4a2b4.entry.js → p-30500443.entry.js} +1 -1
  224. package/dist/twilight/{p-399f5ab8.entry.js → p-346415be.entry.js} +1 -1
  225. package/dist/twilight/{p-373ab9bb.entry.js → p-34cfcc10.entry.js} +1 -1
  226. package/dist/twilight/{p-21d225b0.entry.js → p-34d5d254.entry.js} +1 -1
  227. package/dist/twilight/{p-dc2b82cb.entry.js → p-359c71aa.entry.js} +1 -1
  228. package/dist/twilight/{p-c7389707.entry.js → p-35d5a652.entry.js} +1 -1
  229. package/dist/twilight/{p-53ff0bad.entry.js → p-35f34856.entry.js} +1 -1
  230. package/dist/twilight/{p-2da4174e.entry.js → p-37eeaeb6.entry.js} +1 -1
  231. package/dist/twilight/{p-c3c0ff5b.entry.js → p-3a4490d0.entry.js} +1 -1
  232. package/dist/twilight/{p-b0923292.entry.js → p-3b0acf67.entry.js} +1 -1
  233. package/dist/twilight/{p-f39d6efd.entry.js → p-44c8c901.entry.js} +1 -1
  234. package/dist/twilight/{p-b0882f69.entry.js → p-451c925f.entry.js} +1 -1
  235. package/dist/twilight/{p-abed2dbc.entry.js → p-46410329.entry.js} +1 -1
  236. package/dist/twilight/{p-2813f52f.entry.js → p-49f4ac59.entry.js} +1 -1
  237. package/dist/twilight/{p-37571489.entry.js → p-4af1f3ce.entry.js} +1 -1
  238. package/dist/twilight/{p-fdf306f6.entry.js → p-50d27e92.entry.js} +1 -1
  239. package/dist/twilight/{p-9581bcc7.entry.js → p-51dd8f52.entry.js} +1 -1
  240. package/dist/twilight/{p-90e5db90.entry.js → p-5345526d.entry.js} +1 -1
  241. package/dist/twilight/{p-dd21610f.entry.js → p-53ac52d4.entry.js} +1 -1
  242. package/dist/twilight/{p-180ecec6.entry.js → p-570c0f6a.entry.js} +1 -1
  243. package/dist/twilight/{p-ec8ddb7f.entry.js → p-58542677.entry.js} +1 -1
  244. package/dist/twilight/{p-37871613.entry.js → p-5c13a891.entry.js} +1 -1
  245. package/dist/twilight/{p-b9064a54.entry.js → p-5f1500d1.entry.js} +1 -1
  246. package/dist/twilight/{p-745a99a6.entry.js → p-5f46564c.entry.js} +1 -1
  247. package/dist/twilight/{p-057303fc.entry.js → p-615f0b05.entry.js} +1 -1
  248. package/dist/twilight/{p-f4a6bf88.entry.js → p-62721a71.entry.js} +1 -1
  249. package/dist/twilight/p-62c763dc.entry.js +4 -0
  250. package/dist/twilight/{p-b7aa5687.entry.js → p-6c31c5c9.entry.js} +1 -1
  251. package/dist/twilight/{p-9b3549cd.entry.js → p-6d82f2f9.entry.js} +1 -1
  252. package/dist/twilight/{p-6c3c2930.entry.js → p-746f7ce5.entry.js} +1 -1
  253. package/dist/twilight/{p-18788bb9.entry.js → p-74c7cb5c.entry.js} +1 -1
  254. package/dist/twilight/{p-c1e5b2f2.entry.js → p-75999cff.entry.js} +1 -1
  255. package/dist/twilight/{p-c1ce3f7a.entry.js → p-77aa75ab.entry.js} +1 -1
  256. package/dist/twilight/{p-ec33a2ea.entry.js → p-7aaafd56.entry.js} +1 -1
  257. package/dist/twilight/{p-aca35083.entry.js → p-7af51165.entry.js} +1 -1
  258. package/dist/twilight/{p-d7d262c3.entry.js → p-7b75d598.entry.js} +1 -1
  259. package/dist/twilight/{p-da884485.entry.js → p-7cc2c0cd.entry.js} +1 -1
  260. package/dist/twilight/{p-28312faf.entry.js → p-90a0eff7.entry.js} +1 -1
  261. package/dist/twilight/{p-0da228bd.entry.js → p-91076ee7.entry.js} +1 -1
  262. package/dist/twilight/{p-e1292b60.entry.js → p-9f06e865.entry.js} +1 -1
  263. package/dist/twilight/{p-32b4986d.entry.js → p-9fa76038.entry.js} +1 -1
  264. package/dist/twilight/{p-BmFzQ6g-.js → p-BFfL9VhE.js} +1 -1
  265. package/dist/twilight/{p-CI4TbxNl.js → p-BJfi8_pj.js} +1 -1
  266. package/dist/twilight/{p-DwT-8WBr.js → p-C0FpaBLL.js} +1 -1
  267. package/dist/twilight/{p-DMcU-3GG.js → p-C1Q9TkIB.js} +1 -1
  268. package/dist/twilight/{p-B4668CGH.js → p-CYG9gX2n.js} +1 -1
  269. package/dist/twilight/{p-BrqihLUh.js → p-CZJ4UGhE.js} +1 -1
  270. package/dist/twilight/{p-dewEo579.js → p-Cu-SiRkr.js} +1 -1
  271. package/dist/twilight/{p-BQ05LMoe.js → p-Cxg0Hl1d.js} +1 -1
  272. package/dist/twilight/{p-Dz1v02Mc.js → p-IxTdugtx.js} +2 -2
  273. package/dist/twilight/{p-CCQCS6cn.js → p-PQgQPBDL.js} +1 -1
  274. package/dist/twilight/{p-31b6ab69.entry.js → p-a01d05bb.entry.js} +1 -1
  275. package/dist/twilight/p-a145f277.entry.js +4 -0
  276. package/dist/twilight/{p-8d723a8b.entry.js → p-a4ef1f08.entry.js} +1 -1
  277. package/dist/twilight/{p-4b837a59.entry.js → p-a5938402.entry.js} +1 -1
  278. package/dist/twilight/{p-94539039.entry.js → p-a7fd1a3a.entry.js} +1 -1
  279. package/dist/twilight/{p-608cc0c1.entry.js → p-ac016389.entry.js} +1 -1
  280. package/dist/twilight/{p-255c1c94.entry.js → p-ad400441.entry.js} +1 -1
  281. package/dist/twilight/{p-2fb7fda6.entry.js → p-af72751b.entry.js} +1 -1
  282. package/dist/twilight/{p-6bc527ce.entry.js → p-afc9bc1b.entry.js} +1 -1
  283. package/dist/twilight/{p-5afc64f0.entry.js → p-afd7c751.entry.js} +1 -1
  284. package/dist/twilight/{p-8ad1aba2.entry.js → p-b3d0e539.entry.js} +1 -1
  285. package/dist/twilight/{p-52566485.entry.js → p-b3e2e0f9.entry.js} +1 -1
  286. package/dist/twilight/{p-169f09fe.entry.js → p-bc668ee7.entry.js} +1 -1
  287. package/dist/twilight/{p-797fb657.entry.js → p-bf76e5f6.entry.js} +1 -1
  288. package/dist/twilight/{p-85de11d2.entry.js → p-d0927e70.entry.js} +1 -1
  289. package/dist/twilight/{p-b9fb7536.entry.js → p-d35b5154.entry.js} +1 -1
  290. package/dist/twilight/{p-0e7eded5.entry.js → p-da208949.entry.js} +1 -1
  291. package/dist/twilight/{p-da2f8e8b.entry.js → p-de41db95.entry.js} +1 -1
  292. package/dist/twilight/{p-5f417c00.entry.js → p-de845af5.entry.js} +1 -1
  293. package/dist/twilight/{p-f0739410.entry.js → p-dec0d8c2.entry.js} +1 -1
  294. package/dist/twilight/{p-fc98c574.entry.js → p-df483458.entry.js} +1 -1
  295. package/dist/twilight/{p-bf500346.entry.js → p-e15350fe.entry.js} +1 -1
  296. package/dist/twilight/{p-ad2a24ee.entry.js → p-e9da3cc7.entry.js} +1 -1
  297. package/dist/twilight/{p-bab4e280.entry.js → p-eaa97e2d.entry.js} +1 -1
  298. package/dist/twilight/{p-329e0ccf.entry.js → p-eac567f1.entry.js} +1 -1
  299. package/dist/twilight/{p-8feebf4d.entry.js → p-ef49690b.entry.js} +1 -1
  300. package/dist/twilight/{p-ohGq8vKD.js → p-enKcXa72.js} +1 -1
  301. package/dist/twilight/{p-db394617.entry.js → p-f07ac09e.entry.js} +1 -1
  302. package/dist/twilight/{p-ad3ed8de.entry.js → p-f28c99c0.entry.js} +1 -1
  303. package/dist/twilight/{p-a30cbec7.entry.js → p-fb7e9c2d.entry.js} +1 -1
  304. package/dist/twilight/{p-ByYVb96L.js → p-puRoZ09D.js} +1 -1
  305. package/dist/twilight/twilight.esm.js +1 -1
  306. package/dist/types/components/salla-product-card-embed/salla-product-card-embed.d.ts +9 -0
  307. package/dist/types/components/salla-tiered-offer/interfaces.d.ts +0 -1
  308. package/dist/types/components/salla-tiered-offer/salla-tiered-offer.d.ts +0 -3
  309. package/package.json +5 -5
  310. package/dist/twilight/p-1344cda3.entry.js +0 -4
  311. package/dist/twilight/p-2a820928.entry.js +0 -4
@@ -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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-C1Q9TkIB.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
 
6
- const sallaProductCardEmbedCss = ":host(:has(.s-product-card-embed-card-align-left)){float:inline-start;max-width:12rem;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host(:has(.s-product-card-embed-card-align-right)){float:inline-end;max-width:12rem;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host(:has(.s-product-card-embed-card-align-center)){display:block;clear:both;max-width:12rem;margin-block:1em;margin-inline:auto}:host(:has(.s-product-card-embed-card-align-left)) .s-product-card-embed-card-align-left,:host(:has(.s-product-card-embed-card-align-right)) .s-product-card-embed-card-align-right{float:none}";
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
 
8
8
  const SallaProductCardEmbed = class {
9
9
  constructor(hostRef) {
@@ -16,9 +16,29 @@ const SallaProductCardEmbed = class {
16
16
  await salla.onReady();
17
17
  await this.fetchProduct();
18
18
  }
19
+ componentDidLoad() {
20
+ this.ensureParentContainsFloats();
21
+ }
19
22
  componentDidRender() {
20
23
  this.renderCardNode();
21
24
  }
25
+ /**
26
+ * The host floats for `align="left"|"right"`. If the parent is a plain
27
+ * block element with visible overflow it won't contain those floats,
28
+ * letting them spill into following siblings (e.g. a comments section).
29
+ * Promote such parents to a block formatting context.
30
+ */
31
+ ensureParentContainsFloats() {
32
+ if (this.align !== 'left' && this.align !== 'right')
33
+ return;
34
+ const parent = this.hostEl?.parentElement;
35
+ if (!parent)
36
+ return;
37
+ const cs = getComputedStyle(parent);
38
+ if (cs.display === 'block' && cs.overflow === 'visible' && cs.float === 'none') {
39
+ parent.style.display = 'flow-root';
40
+ }
41
+ }
22
42
  fetchProduct() {
23
43
  if (!this.productId) {
24
44
  this.productData = null;
@@ -63,10 +83,11 @@ const SallaProductCardEmbed = class {
63
83
  's-product-card-embed-card-align-right': this.align === 'right',
64
84
  's-product-card-embed-card-align-center': this.align === 'center',
65
85
  };
66
- return (h(Host, { key: '77c85dadd3d886ab94323d5676b3a8135157352e' }, this.hasError && h("span", { key: 'ee80e9375cbdbc08546ae6ad0d1020b32a3dafc8', class: "s-product-card-embed-fallback" }), h("div", { key: '50e35de032d0d66f7772a8e44b5744587307795c', class: cardClasses, ref: (el) => {
86
+ return (h(Host, { key: '4fcd0b6e5da26ac976b0f3c5c031b614dc9d04b1' }, this.hasError && h("span", { key: '55b4a2649d4912b61f6b75e3c2437bfaee7863e0', class: "s-product-card-embed-fallback" }), h("div", { key: 'ac5882e5dd36ac28cc6e5a24186156c7cadda820', class: cardClasses, ref: (el) => {
67
87
  this.cardContainer = el;
68
88
  } })));
69
89
  }
90
+ get hostEl() { return getElement(this); }
70
91
  };
71
92
  SallaProductCardEmbed.style = sallaProductCardEmbedCss;
72
93
 
@@ -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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
7
7
  import { H as Helper } from './Helper-DFMXF2_h.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h } from './index-C1Q9TkIB.js';
5
5
 
6
6
  const sallaProgressBarCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { S as SIiPhoneX } from './iphone-x-CciN5Q_x.js';
6
6
  import { S as SIMail } from './mail-DLNIOD9t.js';
7
7
  import { S as SICancel } from './cancel-8Tsmrwno.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { W as WishListIcon } from './star-ZT7ehBBk.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
7
  import { H as Helper } from './Helper-DFMXF2_h.js';
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-DMcU-3GG.js';
5
- import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-hYdCF4RE.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-C1Q9TkIB.js';
5
+ import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-BRYRoVDu.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
7
  import { S as SITag } from './tag-cgSL_BIo.js';
8
8
  import { S as SICheck } from './check-BZp0rKEO.js';
9
9
  import { S as SICancel } from './cancel-8Tsmrwno.js';
10
- import { T as TrackedPromise } from './tracked-promise-BSIJGUDO.js';
10
+ import { T as TrackedPromise } from './tracked-promise-D1Ypxmkl.js';
11
11
 
12
12
  const sallaLoyaltyProgramCss$3 = "";
13
13
 
@@ -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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.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 { S as SIMail } from './mail-DLNIOD9t.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -122,15 +122,6 @@ const SallaTieredOffer = class {
122
122
  // If coupon is applied but offer doesn't support coupons, widget should be hidden
123
123
  return !(cartCoupon && !offerData.details?.applied_with_coupon);
124
124
  }
125
- shouldHideForGuest() {
126
- return salla.config.isGuest();
127
- }
128
- shouldHideUntilThreshold(details, tierIndex) {
129
- return !!(details?.hide_until_threshold && tierIndex === 0);
130
- }
131
- resolveTierName(tiers, index) {
132
- return TierUtils.getTierNameByIndex(tiers, index) || '';
133
- }
134
125
  async fetchTieredOfferData() {
135
126
  try {
136
127
  const { data } = await salla.api.cart.offers();
@@ -157,20 +148,14 @@ const SallaTieredOffer = class {
157
148
  // Find current tier index based on current_value from API
158
149
  const currentValue = this.apiOfferData.details?.current_value || 0;
159
150
  const currentTierIndex = this.findCurrentTierIndex(currentValue);
160
- // Hide entire widget for unauthenticated users
161
- if (this.shouldHideForGuest()) {
162
- this.canRender = false;
163
- return;
164
- }
165
- // Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
166
- if (this.shouldHideUntilThreshold(this.apiOfferData.details, currentTierIndex)) {
151
+ // Only render if user has reached at least the first tier
152
+ if (currentTierIndex === 0) {
167
153
  this.canRender = false;
168
154
  return;
169
155
  }
170
156
  this.currentTierIndex = currentTierIndex;
171
- this.currentTier = this.resolveTierName(this.tieredOfferData.tiers, currentTierIndex);
172
- // Default to first tab so tabs always have visible content
173
- this.activeTabTier = this.currentTier || this.tieredOfferData.tiers[0]?.tier_name;
157
+ this.currentTier = TierUtils.getTierNameByIndex(this.tieredOfferData.tiers, currentTierIndex);
158
+ this.activeTabTier = this.currentTier;
174
159
  this.canRender = true;
175
160
  }
176
161
  componentDidLoad() {
@@ -205,46 +190,44 @@ const SallaTieredOffer = class {
205
190
  if (!freshOfferData || !this.tieredOfferData) {
206
191
  return;
207
192
  }
208
- if (!freshOfferData.details?.discounts?.length) {
209
- this.canRender = false;
210
- return;
211
- }
212
193
  // Check coupon compatibility
213
194
  if (!this.validateCouponCompatibility(freshOfferData, updatedCart.coupon)) {
214
195
  this.canRender = false;
215
196
  return;
216
197
  }
217
- // Hide entire widget for unauthenticated users
218
- if (this.shouldHideForGuest()) {
219
- this.canRender = false;
198
+ // If no coupon conflict, show widget
199
+ this.canRender = true;
200
+ // Check if this offer should update with cart changes
201
+ if (freshOfferData.details?.with_current_cart === false) {
220
202
  return;
221
203
  }
222
- // Build fresh tier map so index computation uses up-to-date thresholds
223
- const freshTieredData = this.mapApiDataToTiers(freshOfferData);
204
+ // Update current_value in API offer data
205
+ // const currentValue = updatedCart.sub_total;
206
+ // console.log('currentValue #####3', currentValue);
207
+ // this.apiOfferData = {
208
+ // ...this.apiOfferData,
209
+ // details: {
210
+ // ...this.apiOfferData.details,
211
+ // current_value: currentValue
212
+ // }
213
+ // };
214
+ // Use current_value from fresh API data instead of cart sub_total
224
215
  const currentValue = freshOfferData.details?.current_value || 0;
225
- const newTierIndex = this.findCurrentTierIndex(currentValue, freshTieredData.tiers);
226
- // Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
227
- if (this.shouldHideUntilThreshold(freshOfferData.details, newTierIndex)) {
216
+ this.apiOfferData = freshOfferData;
217
+ // Update current tier based on new value
218
+ const newTierIndex = this.findCurrentTierIndex(currentValue);
219
+ // Check if user qualifies for any tier
220
+ if (newTierIndex === 0) {
228
221
  this.canRender = false;
229
222
  return;
230
223
  }
231
- // Offer progress is based on historical purchases only — skip state update on cart changes
232
- // Use strict === false to avoid treating an omitted flag as false
233
- if (freshOfferData.details?.with_current_cart === false) {
234
- this.canRender = true;
235
- return;
236
- }
237
- // All guards passed — update state atomically
238
- this.apiOfferData = freshOfferData;
239
- this.tieredOfferData = freshTieredData;
224
+ // user qualifies show widget
240
225
  this.canRender = true;
241
226
  this.currentTierIndex = newTierIndex;
242
- // Tiers are 1-based; fall back to first tier when no tier has been reached yet
243
- this.currentTier = this.resolveTierName(freshTieredData.tiers, newTierIndex);
244
- // Update active tab if needed; default to first tab when no tier reached
245
- const resolvedTab = this.currentTier || freshTieredData.tiers[0]?.tier_name;
246
- if (this.activeTabTier !== resolvedTab) {
247
- this.activeTabTier = resolvedTab;
227
+ this.currentTier = TierUtils.getTierNameByIndex(this.tieredOfferData.tiers, newTierIndex);
228
+ // Update active tab if needed
229
+ if (this.activeTabTier !== this.currentTier) {
230
+ this.activeTabTier = this.currentTier;
248
231
  }
249
232
  }
250
233
  getLoadingSkeletonView() {
@@ -342,7 +325,7 @@ const SallaTieredOffer = class {
342
325
  return null;
343
326
  }
344
327
  const currentTierData = this.getCurrentTierData();
345
- 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())));
328
+ 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())));
346
329
  }
347
330
  };
348
331
  SallaTieredOffer.style = sallaTieredOfferCss;
@@ -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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-C1Q9TkIB.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 } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C1Q9TkIB.js';
5
5
  import { S as SIMail } from './mail-DLNIOD9t.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- 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 } from './index-DMcU-3GG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-C1Q9TkIB.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
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { f as forceUpdate } from './index-DMcU-3GG.js';
4
+ import { f as forceUpdate } from './index-C1Q9TkIB.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-DMcU-3GG.js';
5
- export { s as setNonce } from './index-DMcU-3GG.js';
4
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-C1Q9TkIB.js';
5
+ export { s as setNonce } from './index-C1Q9TkIB.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-DMcU-3GG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-C1Q9TkIB.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 s,h as t}from"./p-DMcU-3GG.js";import{T as o}from"./p-CJUR4sUM.js";import{i as n}from"./p-DqDX5na4.js";const e=class{constructor(t){s(this,t),this.coupon=null,this.isLoading=!0,this.titlePercentTpl="",this.titleFixedTpl="",this.badgeLabel="",this.minSpendTpl="",this.expiresTpl="",this.shopNowLabel="",this.copyLabel="",this.copiedLabel=""}componentWillLoad(){Salla.onReady().then((()=>Salla.lang.onLoaded())).then((()=>(this.loadTranslations(),this.loadCoupon()))).catch((()=>{this.isLoading=!1}))}loadTranslations(){this.titlePercentTpl=Salla.lang.get("pages.thank_you.next_order_coupon_title_percent")||"",this.titleFixedTpl=Salla.lang.get("pages.thank_you.next_order_coupon_title_fixed")||"",this.badgeLabel=Salla.lang.get("pages.thank_you.next_order_coupon_badge")||"",this.minSpendTpl=Salla.lang.get("pages.thank_you.next_order_coupon_min_spend")||"",this.expiresTpl=Salla.lang.get("pages.thank_you.next_order_coupon_expires")||"",this.shopNowLabel=Salla.lang.get("pages.thank_you.next_order_coupon_shop_now")||"",this.copyLabel=Salla.lang.get("common.elements.copy")||"",this.copiedLabel=Salla.lang.get("pages.thank_you.next_order_coupon_copied")||""}async loadCoupon(){try{const s=await salla.api.request("coupons",{params:{type:"thankyou"}}),t=s?.data,o=Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[];this.coupon=o[0]??null}catch{this.coupon=null}finally{this.isLoading=!1}}async copyCode(){if(this.coupon)try{await navigator.clipboard.writeText(this.coupon.code),salla.notify.success(this.copiedLabel),salla.event.dispatch("salla::next-order-coupon.code.copied",{code:this.coupon.code})}catch{}}isPercentage(){return"P"===this.coupon?.type||"percentage"===this.coupon?.type}formatAmount(){if(!this.coupon)return"";if(this.isPercentage())return`${salla.helpers.number(this.coupon.amount)}%`;const s=this.coupon.amount;return t("span","object"==typeof s&&s.amount?{innerHTML:salla.money(s.amount,s.currency)}:{innerHTML:salla.money(s)})}formatMinSpend(){const s=this.coupon?.minimum_amount;return s&&("object"!=typeof s||s.amount)?"string"==typeof s?s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):salla.money(s.amount,s.currency):""}formatExpiry(){const s=this.coupon?.expiry_date;return s?new Date(s).toLocaleDateString(Salla.lang.locale||"en-GB"):""}renderSkeleton(){return t("div",{class:"s-next-order-coupon-wrapper s-next-order-coupon-skeleton"},t("div",{class:"s-next-order-coupon-inner"},t("div",{class:"s-next-order-coupon-info"},t("salla-skeleton",{type:"normal",width:"48px",height:"48px"}),t("div",{class:"s-next-order-coupon-details"},t("salla-skeleton",{height:"14px",width:"220px"}),t("salla-skeleton",{height:"12px",width:"140px"}))),t("div",{class:"s-next-order-coupon-actions"},t("salla-skeleton",{height:"40px",width:"140px"}),t("salla-skeleton",{height:"40px",width:"100px"}))))}renderTitle(){const s=this.formatAmount(),o=this.isPercentage()?this.titlePercentTpl:this.titleFixedTpl,n=this.isPercentage()?":amount%":":amount",e=o.split(n);return t("p",{class:"s-next-order-coupon-title"},e[0],t("span",{class:"s-next-order-coupon-amount"},s),e[1]||"")}render(){if(this.isLoading)return this.renderSkeleton();if(!this.coupon)return null;const s=this.formatMinSpend(),e=this.formatExpiry();return t("div",{class:"s-next-order-coupon-wrapper"},t("div",{class:"s-next-order-coupon-inner"},t("div",{class:"s-next-order-coupon-info"},t("div",{class:"s-next-order-coupon-icon-wrap"},t("span",{class:"s-next-order-coupon-icon-bg"}),t("span",{class:"s-next-order-coupon-icon",innerHTML:o})),t("div",{class:"s-next-order-coupon-details"},t("div",{class:"s-next-order-coupon-title-row"},this.renderTitle(),t("span",{class:"s-next-order-coupon-badge"},t("span",{class:"s-next-order-coupon-badge-bg"}),t("span",{class:"s-next-order-coupon-badge-text"},this.badgeLabel))),(s||e)&&t("p",{class:"s-next-order-coupon-meta"},s&&t("span",{innerHTML:this.minSpendTpl.replace(":amount",s)}),e&&t("span",null,this.expiresTpl.replace(":date",e))))),t("div",{class:"s-next-order-coupon-actions"},t("div",{class:"s-next-order-coupon-code-box"},t("span",{class:"s-next-order-coupon-code-text"},this.coupon.code),t("salla-button",{shape:"link",class:"s-next-order-coupon-copy-btn",title:this.copyLabel,onClick:()=>this.copyCode()},t("span",{class:"s-next-order-coupon-copy-icon",innerHTML:n}))),t("salla-button",{href:salla.url.get(""),class:"s-next-order-coupon-shop-btn"},this.shopNowLabel))))}};e.style=":host{display:block}";export{e as salla_next_order_coupon}
4
+ import{r as s,h as t}from"./p-C1Q9TkIB.js";import{T as o}from"./p-CJUR4sUM.js";import{i as n}from"./p-DqDX5na4.js";const e=class{constructor(t){s(this,t),this.coupon=null,this.isLoading=!0,this.titlePercentTpl="",this.titleFixedTpl="",this.badgeLabel="",this.minSpendTpl="",this.expiresTpl="",this.shopNowLabel="",this.copyLabel="",this.copiedLabel=""}componentWillLoad(){Salla.onReady().then((()=>Salla.lang.onLoaded())).then((()=>(this.loadTranslations(),this.loadCoupon()))).catch((()=>{this.isLoading=!1}))}loadTranslations(){this.titlePercentTpl=Salla.lang.get("pages.thank_you.next_order_coupon_title_percent")||"",this.titleFixedTpl=Salla.lang.get("pages.thank_you.next_order_coupon_title_fixed")||"",this.badgeLabel=Salla.lang.get("pages.thank_you.next_order_coupon_badge")||"",this.minSpendTpl=Salla.lang.get("pages.thank_you.next_order_coupon_min_spend")||"",this.expiresTpl=Salla.lang.get("pages.thank_you.next_order_coupon_expires")||"",this.shopNowLabel=Salla.lang.get("pages.thank_you.next_order_coupon_shop_now")||"",this.copyLabel=Salla.lang.get("common.elements.copy")||"",this.copiedLabel=Salla.lang.get("pages.thank_you.next_order_coupon_copied")||""}async loadCoupon(){try{const s=await salla.api.request("coupons",{params:{type:"thankyou"}}),t=s?.data,o=Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[];this.coupon=o[0]??null}catch{this.coupon=null}finally{this.isLoading=!1}}async copyCode(){if(this.coupon)try{await navigator.clipboard.writeText(this.coupon.code),salla.notify.success(this.copiedLabel),salla.event.dispatch("salla::next-order-coupon.code.copied",{code:this.coupon.code})}catch{}}isPercentage(){return"P"===this.coupon?.type||"percentage"===this.coupon?.type}formatAmount(){if(!this.coupon)return"";if(this.isPercentage())return`${salla.helpers.number(this.coupon.amount)}%`;const s=this.coupon.amount;return t("span","object"==typeof s&&s.amount?{innerHTML:salla.money(s.amount,s.currency)}:{innerHTML:salla.money(s)})}formatMinSpend(){const s=this.coupon?.minimum_amount;return s&&("object"!=typeof s||s.amount)?"string"==typeof s?s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):salla.money(s.amount,s.currency):""}formatExpiry(){const s=this.coupon?.expiry_date;return s?new Date(s).toLocaleDateString(Salla.lang.locale||"en-GB"):""}renderSkeleton(){return t("div",{class:"s-next-order-coupon-wrapper s-next-order-coupon-skeleton"},t("div",{class:"s-next-order-coupon-inner"},t("div",{class:"s-next-order-coupon-info"},t("salla-skeleton",{type:"normal",width:"48px",height:"48px"}),t("div",{class:"s-next-order-coupon-details"},t("salla-skeleton",{height:"14px",width:"220px"}),t("salla-skeleton",{height:"12px",width:"140px"}))),t("div",{class:"s-next-order-coupon-actions"},t("salla-skeleton",{height:"40px",width:"140px"}),t("salla-skeleton",{height:"40px",width:"100px"}))))}renderTitle(){const s=this.formatAmount(),o=this.isPercentage()?this.titlePercentTpl:this.titleFixedTpl,n=this.isPercentage()?":amount%":":amount",e=o.split(n);return t("p",{class:"s-next-order-coupon-title"},e[0],t("span",{class:"s-next-order-coupon-amount"},s),e[1]||"")}render(){if(this.isLoading)return this.renderSkeleton();if(!this.coupon)return null;const s=this.formatMinSpend(),e=this.formatExpiry();return t("div",{class:"s-next-order-coupon-wrapper"},t("div",{class:"s-next-order-coupon-inner"},t("div",{class:"s-next-order-coupon-info"},t("div",{class:"s-next-order-coupon-icon-wrap"},t("span",{class:"s-next-order-coupon-icon-bg"}),t("span",{class:"s-next-order-coupon-icon",innerHTML:o})),t("div",{class:"s-next-order-coupon-details"},t("div",{class:"s-next-order-coupon-title-row"},this.renderTitle(),t("span",{class:"s-next-order-coupon-badge"},t("span",{class:"s-next-order-coupon-badge-bg"}),t("span",{class:"s-next-order-coupon-badge-text"},this.badgeLabel))),(s||e)&&t("p",{class:"s-next-order-coupon-meta"},s&&t("span",{innerHTML:this.minSpendTpl.replace(":amount",s)}),e&&t("span",null,this.expiresTpl.replace(":date",e))))),t("div",{class:"s-next-order-coupon-actions"},t("div",{class:"s-next-order-coupon-code-box"},t("span",{class:"s-next-order-coupon-code-text"},this.coupon.code),t("salla-button",{shape:"link",class:"s-next-order-coupon-copy-btn",title:this.copyLabel,onClick:()=>this.copyCode()},t("span",{class:"s-next-order-coupon-copy-icon",innerHTML:n}))),t("salla-button",{href:salla.url.get(""),class:"s-next-order-coupon-shop-btn"},this.shopNowLabel))))}};e.style=":host{display:block}";export{e as salla_next_order_coupon}