@salla.sa/twilight-components 2.14.458 → 2.14.460

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 (327) hide show
  1. package/dist/cjs/{Helper-CU4Xuiki.js → Helper-CgGR9Qf8.js} +12 -0
  2. package/dist/cjs/{filepond-feaMFOj_.js → filepond-CGfIHI6f.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-BZT9ukbc.js → filepond-plugin-file-poster-BogxH8wL.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size--7D0QTWS.js → filepond-plugin-file-validate-size-DSlzvO7P.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-cLz_UQvD.js → filepond-plugin-file-validate-type-QKvTiG_U.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit--i9lQj9g.js → filepond-plugin-image-edit-CdCoWANz.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-DCA1ZCDJ.js → filepond-plugin-image-exif-orientation-CJ84EvSe.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-DGipSjOn.js → filepond-plugin-image-preview-BSABZf_n.js} +1 -1
  9. package/dist/cjs/{functions-45yOAuh2.js → functions-8bJoQsbY.js} +1 -1
  10. package/dist/cjs/{index-DoKZADm3.js → index-ClIoplYB.js} +2 -2
  11. package/dist/cjs/{index-D1MNaBOd.js → index-D0dSQBmL.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +2 -2
  13. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  15. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +19 -9
  16. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  51. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  74. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-product-card_2.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  81. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  85. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-trust-badges.cjs.entry.js +11 -4
  95. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  100. package/dist/cjs/{tracked-promise-DBfKp0i-.js → tracked-promise-YbXLxnty.js} +1 -1
  101. package/dist/cjs/twilight.cjs.js +2 -2
  102. package/dist/cjs/{vanilla-picker-BlZm-f_Z.js → vanilla-picker-CQ98NxBN.js} +1 -1
  103. package/dist/collection/Helpers/Helper.js +12 -0
  104. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +5 -1
  105. package/dist/collection/components/salla-product-availability/salla-product-availability.js +13 -8
  106. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +10 -3
  107. package/dist/components/Helper.js +12 -0
  108. package/dist/components/index.js +2 -2
  109. package/dist/components/salla-add-product-button2.js +5 -1
  110. package/dist/components/salla-product-availability2.js +13 -8
  111. package/dist/components/salla-trust-badges.js +10 -3
  112. package/dist/esm/{Helper-DFMXF2_h.js → Helper-BXj4f_Qj.js} +12 -0
  113. package/dist/esm/{filepond-CffxACiY.js → filepond-C4Vtw3hu.js} +1 -1
  114. package/dist/esm/{filepond-plugin-file-poster-LzXPemRj.js → filepond-plugin-file-poster-DHC1vUJ9.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-validate-size-BBeG1YQF.js → filepond-plugin-file-validate-size-CBM0hQ0G.js} +1 -1
  116. package/dist/esm/{filepond-plugin-file-validate-type-DWCw6g0N.js → filepond-plugin-file-validate-type-BEekNkNc.js} +1 -1
  117. package/dist/esm/{filepond-plugin-image-edit-0ClTm033.js → filepond-plugin-image-edit-C9OQtxCr.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-exif-orientation-CR7WTm7O.js → filepond-plugin-image-exif-orientation-CmDE8Rj3.js} +1 -1
  119. package/dist/esm/{filepond-plugin-image-preview-CHGE8apT.js → filepond-plugin-image-preview-BZJQYto9.js} +1 -1
  120. package/dist/esm/{functions-Dd4f5cCM.js → functions-DXqv01Ta.js} +1 -1
  121. package/dist/esm/{index-DohtU8-7.js → index-COrBCyov.js} +1 -1
  122. package/dist/esm/{index-BxKt36mx.js → index-iJ5sq_zX.js} +2 -2
  123. package/dist/esm/loader.js +3 -3
  124. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  125. package/dist/esm/salla-accordion_6.entry.js +2 -2
  126. package/dist/esm/salla-add-product-button_5.entry.js +19 -9
  127. package/dist/esm/salla-advertisement.entry.js +1 -1
  128. package/dist/esm/salla-alert_2.entry.js +1 -1
  129. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  130. package/dist/esm/salla-apps-icons.entry.js +1 -1
  131. package/dist/esm/salla-badge.entry.js +1 -1
  132. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  133. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  134. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  135. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  136. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  137. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  138. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  139. package/dist/esm/salla-contacts.entry.js +1 -1
  140. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  141. package/dist/esm/salla-count-down.entry.js +1 -1
  142. package/dist/esm/salla-custom-fields.entry.js +1 -1
  143. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  144. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  145. package/dist/esm/salla-filters-widget.entry.js +2 -2
  146. package/dist/esm/salla-filters.entry.js +2 -2
  147. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  148. package/dist/esm/salla-gifting.entry.js +1 -1
  149. package/dist/esm/salla-hook.entry.js +1 -1
  150. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  151. package/dist/esm/salla-installment.entry.js +1 -1
  152. package/dist/esm/salla-list-tile.entry.js +1 -1
  153. package/dist/esm/salla-localization-modal.entry.js +1 -1
  154. package/dist/esm/salla-login-modal.entry.js +1 -1
  155. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  156. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  157. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  158. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  159. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  160. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  161. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  162. package/dist/esm/salla-loyalty.entry.js +1 -1
  163. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  164. package/dist/esm/salla-map.entry.js +1 -1
  165. package/dist/esm/salla-menu.entry.js +1 -1
  166. package/dist/esm/salla-metadata.entry.js +1 -1
  167. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  168. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  169. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  170. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  171. package/dist/esm/salla-notification-item.entry.js +1 -1
  172. package/dist/esm/salla-notifications.entry.js +2 -2
  173. package/dist/esm/salla-offer-modal.entry.js +1 -1
  174. package/dist/esm/salla-offer.entry.js +1 -1
  175. package/dist/esm/salla-order-branch.entry.js +1 -1
  176. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  177. package/dist/esm/salla-order-details-options.entry.js +1 -1
  178. package/dist/esm/salla-order-details.entry.js +1 -1
  179. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  180. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  181. package/dist/esm/salla-order-edit.entry.js +1 -1
  182. package/dist/esm/salla-order-summary.entry.js +1 -1
  183. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  184. package/dist/esm/salla-orders.entry.js +2 -2
  185. package/dist/esm/salla-payments.entry.js +1 -1
  186. package/dist/esm/salla-placeholder.entry.js +1 -1
  187. package/dist/esm/salla-price-range.entry.js +1 -1
  188. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  189. package/dist/esm/salla-product-card_2.entry.js +2 -2
  190. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  191. package/dist/esm/salla-products-list.entry.js +2 -2
  192. package/dist/esm/salla-progress-bar.entry.js +1 -1
  193. package/dist/esm/salla-quick-order.entry.js +1 -1
  194. package/dist/esm/salla-rating-modal.entry.js +2 -2
  195. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  196. package/dist/esm/salla-scopes.entry.js +1 -1
  197. package/dist/esm/salla-search.entry.js +2 -2
  198. package/dist/esm/salla-skeleton.entry.js +1 -1
  199. package/dist/esm/salla-slider.entry.js +1 -1
  200. package/dist/esm/salla-social-share.entry.js +1 -1
  201. package/dist/esm/salla-social.entry.js +1 -1
  202. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  203. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  204. package/dist/esm/salla-tooltip.entry.js +1 -1
  205. package/dist/esm/salla-trust-badges.entry.js +11 -4
  206. package/dist/esm/salla-user-menu.entry.js +1 -1
  207. package/dist/esm/salla-user-profile.entry.js +1 -1
  208. package/dist/esm/salla-user-settings.entry.js +1 -1
  209. package/dist/esm/salla-verify.entry.js +1 -1
  210. package/dist/esm/salla-wallet.entry.js +1 -1
  211. package/dist/esm/{tracked-promise-tXUCoIr3.js → tracked-promise-BqdEjVrn.js} +1 -1
  212. package/dist/esm/twilight.js +3 -3
  213. package/dist/esm/{vanilla-picker-Bn8UZjWt.js → vanilla-picker-sDHf8LOA.js} +1 -1
  214. package/dist/twilight/{p-CLJJGa4R.js → p--2LAp_Ix.js} +1 -1
  215. package/dist/twilight/{p-c32e2a71.entry.js → p-0235e63d.entry.js} +1 -1
  216. package/dist/twilight/p-075e48a4.entry.js +4 -0
  217. package/dist/twilight/{p-23353fc1.entry.js → p-07ab6222.entry.js} +1 -1
  218. package/dist/twilight/{p-7708a3e0.entry.js → p-07cfe13f.entry.js} +1 -1
  219. package/dist/twilight/{p-40f55e09.entry.js → p-099f53cb.entry.js} +1 -1
  220. package/dist/twilight/{p-2082d185.entry.js → p-1048d417.entry.js} +1 -1
  221. package/dist/twilight/{p-940f0285.entry.js → p-12e4f4b3.entry.js} +1 -1
  222. package/dist/twilight/{p-aa0a82ba.entry.js → p-12e99bf3.entry.js} +1 -1
  223. package/dist/twilight/{p-2d39c870.entry.js → p-147b1b05.entry.js} +1 -1
  224. package/dist/twilight/{p-f97149c2.entry.js → p-153ae87f.entry.js} +1 -1
  225. package/dist/twilight/{p-71ff03c7.entry.js → p-1bbdc1be.entry.js} +1 -1
  226. package/dist/twilight/p-1f2d6697.entry.js +4 -0
  227. package/dist/twilight/{p-eba31f7c.entry.js → p-234c1e5a.entry.js} +1 -1
  228. package/dist/twilight/{p-DvUuxBCy.js → p-2YeLvW5I.js} +1 -1
  229. package/dist/twilight/p-2b558991.entry.js +4 -0
  230. package/dist/twilight/{p-bfe100b5.entry.js → p-2c1eaa42.entry.js} +1 -1
  231. package/dist/twilight/{p-865541e7.entry.js → p-3478605e.entry.js} +1 -1
  232. package/dist/twilight/{p-16abcebc.entry.js → p-38669272.entry.js} +1 -1
  233. package/dist/twilight/{p-4c1cda26.entry.js → p-38c48529.entry.js} +1 -1
  234. package/dist/twilight/{p-3737a731.entry.js → p-3dd52ee6.entry.js} +1 -1
  235. package/dist/twilight/{p-c5fdba11.entry.js → p-46d2ef37.entry.js} +1 -1
  236. package/dist/twilight/{p-7720867a.entry.js → p-486eec44.entry.js} +1 -1
  237. package/dist/twilight/{p-c27fbce5.entry.js → p-4a68aa3a.entry.js} +1 -1
  238. package/dist/twilight/{p-6d99f564.entry.js → p-4bf10fda.entry.js} +1 -1
  239. package/dist/twilight/{p-d03f573b.entry.js → p-4f009520.entry.js} +1 -1
  240. package/dist/twilight/{p-3d504212.entry.js → p-53725056.entry.js} +1 -1
  241. package/dist/twilight/{p-74966aa4.entry.js → p-569c6283.entry.js} +1 -1
  242. package/dist/twilight/{p-c5acb840.entry.js → p-56f2c80b.entry.js} +1 -1
  243. package/dist/twilight/{p-67378b91.entry.js → p-570a0386.entry.js} +1 -1
  244. package/dist/twilight/{p-fb12850b.entry.js → p-59e51761.entry.js} +1 -1
  245. package/dist/twilight/p-59edb110.entry.js +4 -0
  246. package/dist/twilight/{p-1dda49a2.entry.js → p-5a502b2d.entry.js} +1 -1
  247. package/dist/twilight/{p-fd9b57a4.entry.js → p-606cf463.entry.js} +1 -1
  248. package/dist/twilight/{p-032b3143.entry.js → p-63db0087.entry.js} +1 -1
  249. package/dist/twilight/{p-4e1e74e7.entry.js → p-68cc082a.entry.js} +1 -1
  250. package/dist/twilight/{p-44e22a0b.entry.js → p-6959e50c.entry.js} +1 -1
  251. package/dist/twilight/{p-32d49832.entry.js → p-6a0592ff.entry.js} +1 -1
  252. package/dist/twilight/{p-dc9d31bd.entry.js → p-710aeaa6.entry.js} +1 -1
  253. package/dist/twilight/{p-59ce0a62.entry.js → p-77161ea1.entry.js} +1 -1
  254. package/dist/twilight/{p-23aacddd.entry.js → p-7c274900.entry.js} +1 -1
  255. package/dist/twilight/{p-b3fca774.entry.js → p-7cb9fdf3.entry.js} +1 -1
  256. package/dist/twilight/{p-85b3a22f.entry.js → p-8417e475.entry.js} +1 -1
  257. package/dist/twilight/{p-ab8d1c50.entry.js → p-8784043c.entry.js} +1 -1
  258. package/dist/twilight/{p-cf71632e.entry.js → p-8efab918.entry.js} +1 -1
  259. package/dist/twilight/{p-d2b3b6c5.entry.js → p-8fdda3f7.entry.js} +1 -1
  260. package/dist/twilight/{p-53c1d0b8.entry.js → p-9037aceb.entry.js} +1 -1
  261. package/dist/twilight/{p-73d8bada.entry.js → p-93cffd7b.entry.js} +1 -1
  262. package/dist/twilight/{p-87bfae72.entry.js → p-93e20666.entry.js} +1 -1
  263. package/dist/twilight/{p-ef58d373.entry.js → p-9b32a751.entry.js} +1 -1
  264. package/dist/twilight/{p-f89ac2c3.entry.js → p-9b6f56a4.entry.js} +1 -1
  265. package/dist/twilight/{p-e4b91ab1.entry.js → p-9e65633b.entry.js} +1 -1
  266. package/dist/twilight/{p-CHf8XdiS.js → p-BcbKK1Xp.js} +1 -1
  267. package/dist/twilight/{p-BEUsRLpS.js → p-CEojVb5V.js} +1 -1
  268. package/dist/twilight/{p-B37vFXxB.js → p-DLjvTnkG.js} +1 -1
  269. package/dist/twilight/{p-BJrHiNT7.js → p-DoHbs_Ca.js} +1 -1
  270. package/dist/twilight/{p-BF2OeDPC.js → p-Doa_Qi4D.js} +2 -2
  271. package/dist/twilight/{p-CwiIgE9I.js → p-DpeYnqu7.js} +1 -1
  272. package/dist/twilight/{p-CgUFhQLc.js → p-Mmayo-tO.js} +1 -1
  273. package/dist/twilight/{p-pXzGsRrE.js → p-YOYH8YN6.js} +1 -1
  274. package/dist/twilight/{p-1ff67f37.entry.js → p-a1189807.entry.js} +1 -1
  275. package/dist/twilight/{p-2a763bb1.entry.js → p-a3f1ce8d.entry.js} +1 -1
  276. package/dist/twilight/{p-e5494d9d.entry.js → p-a83a6645.entry.js} +1 -1
  277. package/dist/twilight/{p-e7bd71a3.entry.js → p-a89828dd.entry.js} +1 -1
  278. package/dist/twilight/p-ac7e349a.entry.js +4 -0
  279. package/dist/twilight/{p-eb970c64.entry.js → p-aec79fff.entry.js} +1 -1
  280. package/dist/twilight/{p-37b7f9a1.entry.js → p-b0912857.entry.js} +1 -1
  281. package/dist/twilight/{p-2177b796.entry.js → p-b0afc618.entry.js} +1 -1
  282. package/dist/twilight/{p-76ebb1f3.entry.js → p-b4b57fd2.entry.js} +1 -1
  283. package/dist/twilight/{p-bedfe2f1.entry.js → p-b902d2f5.entry.js} +1 -1
  284. package/dist/twilight/p-ba3fddd7.entry.js +4 -0
  285. package/dist/twilight/{p-7f6647bd.entry.js → p-bae99ba7.entry.js} +1 -1
  286. package/dist/twilight/{p-2ec44c82.entry.js → p-bb9ef23e.entry.js} +1 -1
  287. package/dist/twilight/{p-27ff5ee4.entry.js → p-bec381d0.entry.js} +1 -1
  288. package/dist/twilight/{p-13fb05be.entry.js → p-c1949223.entry.js} +1 -1
  289. package/dist/twilight/{p-1833e7f1.entry.js → p-c208e3c7.entry.js} +1 -1
  290. package/dist/twilight/{p-724f7df5.entry.js → p-c70b165a.entry.js} +1 -1
  291. package/dist/twilight/{p-c4863bf6.entry.js → p-c7f39c26.entry.js} +1 -1
  292. package/dist/twilight/{p-820ef744.entry.js → p-c9932aac.entry.js} +1 -1
  293. package/dist/twilight/{p-23e780a2.entry.js → p-cb7550d3.entry.js} +1 -1
  294. package/dist/twilight/{p-1c2a1511.entry.js → p-cdeac4d4.entry.js} +1 -1
  295. package/dist/twilight/{p-0306c8f5.entry.js → p-cf258842.entry.js} +1 -1
  296. package/dist/twilight/{p-bf991695.entry.js → p-d171d9b7.entry.js} +1 -1
  297. package/dist/twilight/{p-14818bbc.entry.js → p-d7c9b87f.entry.js} +1 -1
  298. package/dist/twilight/{p-f28a753d.entry.js → p-d8b6e962.entry.js} +1 -1
  299. package/dist/twilight/{p-17d04d37.entry.js → p-da9ca18e.entry.js} +1 -1
  300. package/dist/twilight/{p-c60cecc8.entry.js → p-dbedcb2c.entry.js} +1 -1
  301. package/dist/twilight/{p-3b627b8f.entry.js → p-dc530376.entry.js} +1 -1
  302. package/dist/twilight/{p-5ba6fa7b.entry.js → p-dd83f43e.entry.js} +1 -1
  303. package/dist/twilight/{p-213dfc6e.entry.js → p-ddaa0572.entry.js} +1 -1
  304. package/dist/twilight/p-e3871a18.entry.js +4 -0
  305. package/dist/twilight/{p-f5f84c2a.entry.js → p-e824a11d.entry.js} +1 -1
  306. package/dist/twilight/{p-6e7c61b6.entry.js → p-eec5d968.entry.js} +1 -1
  307. package/dist/twilight/{p-92a18a14.entry.js → p-f0451bd0.entry.js} +1 -1
  308. package/dist/twilight/{p-4f02bb67.entry.js → p-f194ed91.entry.js} +1 -1
  309. package/dist/twilight/{p-7069bc5a.entry.js → p-fcf26add.entry.js} +1 -1
  310. package/dist/twilight/{p-e7e7acbd.entry.js → p-fe88bea5.entry.js} +1 -1
  311. package/dist/twilight/{p-CoKgv23c.js → p-gauhE2aA.js} +1 -1
  312. package/dist/twilight/p-iJ5sq_zX.js +5 -0
  313. package/dist/twilight/{p-C-xAJPgJ.js → p-quQVhrL_.js} +2 -2
  314. package/dist/twilight/twilight.esm.js +1 -1
  315. package/dist/types/Helpers/Helper.d.ts +1 -0
  316. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +1 -0
  317. package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
  318. package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +2 -2
  319. package/package.json +5 -5
  320. package/dist/twilight/p-02eb80b8.entry.js +0 -4
  321. package/dist/twilight/p-0c4cba69.entry.js +0 -4
  322. package/dist/twilight/p-13de7f9d.entry.js +0 -4
  323. package/dist/twilight/p-1e0e3caf.entry.js +0 -4
  324. package/dist/twilight/p-55bdc159.entry.js +0 -4
  325. package/dist/twilight/p-BxKt36mx.js +0 -5
  326. package/dist/twilight/p-ae873bb3.entry.js +0 -4
  327. package/dist/twilight/p-fd54bb1a.entry.js +0 -4
@@ -145,6 +145,10 @@ const SallaAddProductButton = /*@__PURE__*/ proxyCustomElement(class SallaAddPro
145
145
  }
146
146
  return this.hostAttributes;
147
147
  }
148
+ // optional: fall back to store-configured channels, reading config directly when the SDK helper is missing
149
+ get notifyChannels() {
150
+ return this.channels || salla.api.product.getAvailabilityChannels?.() || Helper.availabilityChannels();
151
+ }
148
152
  getQuickBuyBtnAttributes() {
149
153
  return {
150
154
  ...this.getBtnAttributes(),
@@ -188,7 +192,7 @@ const SallaAddProductButton = /*@__PURE__*/ proxyCustomElement(class SallaAddPro
188
192
  if (this.hasSubscribedOptions) {
189
193
  return h(Host, null, h("salla-product-availability", { ...this.getBtnAttributes(), "is-subscribed": true }, h("span", { class: "s-hidden" }, h("slot", null))));
190
194
  }
191
- if ((this.productStatus === 'out-and-notify' && this.channels) || this.hasOutOfStockOption) {
195
+ if ((this.productStatus === 'out-and-notify' && this.notifyChannels) || this.hasOutOfStockOption) {
192
196
  return h(Host, null, h("salla-product-availability", { ...this.getBtnAttributes() }, h("span", { class: "s-hidden" }, h("slot", null))));
193
197
  }
194
198
  return h(Host, { class: {
@@ -67,11 +67,17 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
67
67
  this.channelsWatcher(this.channels);
68
68
  this.title_ = this.host.title || salla.lang.get('pages.products.notify_availability_title');
69
69
  this.host.removeAttribute('title');
70
- //todo:: fix this to cover options too
71
- this.isVisitorSubscribed = !this.notifyOptionsAvailability ? salla.storage.get(`product-${this.productId}-subscribed`) : '';
72
70
  }
73
71
  channelsWatcher(newValue) {
74
- this.channels_ = !!newValue ? newValue.split(',') : [];
72
+ // fall back to store-configured channels, reading config directly when the SDK helper is missing
73
+ let channels = newValue || salla.api.product.getAvailabilityChannels?.() || Helper.availabilityChannels();
74
+ this.channels_ = channels ? channels.split(',') : [];
75
+ }
76
+ // Subscribed via the backend prop, the SDK storage, or the legacy key (older SDK fallback).
77
+ get isSubscribedToProduct() {
78
+ return this.isSubscribed
79
+ || (!this.notifyOptionsAvailability && (!!salla.api.product.isSubscribedToAvailability?.(this.productId)
80
+ || !!salla.storage.get(`product-${this.productId}-subscribed`)));
75
81
  }
76
82
  openModel() {
77
83
  this.handleSubmitOptions().then(isSuccess => isSuccess ? this.modal.open() : null);
@@ -96,7 +102,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
96
102
  .then(() => salla.api.product.availabilitySubscribe(payload))
97
103
  .then(() => {
98
104
  if (!this.notifyOptionsAvailability) {
99
- salla.storage.set(`product-${this.productId}-subscribed`, true);
105
+ // persisted by salla.api.product.availabilitySubscribe
100
106
  this.isSubscribed = true;
101
107
  return;
102
108
  }
@@ -140,10 +146,10 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
140
146
  field.nextElementSibling['innerText'] = '* ' + errorMsg;
141
147
  }
142
148
  render() {
143
- return (h(Host, { key: 'aa627ba618b159913ad91efba99e57c14dd27832', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
149
+ return (h(Host, { key: '2da2f2466b07a0d0c1613bf331697cf4acc95004', class: "s-product-availability-wrap" }, this.isSubscribedToProduct
144
150
  ? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
145
151
  :
146
- h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
152
+ h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribedToProduct ? '' : this.renderModal()));
147
153
  }
148
154
  renderModal() {
149
155
  return (h("salla-modal", { ref: modal => this.modal = modal, "modal-title": this.title_, subTitle: salla.lang.get('pages.products.notify_availability_subtitle'), width: "sm" }, h("span", { slot: 'icon', class: "s-product-availability-header-icon", innerHTML: BellRing }), h("div", { class: "s-product-availability-body" }, this.channels_.includes('email') ? [
@@ -166,8 +172,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
166
172
  "productId": [2, "product-id"],
167
173
  "isSubscribed": [1028, "is-subscribed"],
168
174
  "translationLoaded": [32],
169
- "title_": [32],
170
- "isVisitorSubscribed": [32]
175
+ "title_": [32]
171
176
  }, undefined, {
172
177
  "channels": ["channelsWatcher"]
173
178
  }]);
@@ -50,10 +50,11 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
50
50
  componentWillLoad() {
51
51
  this.initializeTranslations();
52
52
  }
53
- connectedCallback() {
53
+ async componentDidLoad() {
54
+ await salla.onReady();
55
+ if (!this.isVisibilityEnforced())
56
+ return;
54
57
  this.setupVisibilityGuard();
55
- }
56
- componentDidLoad() {
57
58
  this.scheduleEnforce();
58
59
  }
59
60
  componentDidRender() {
@@ -67,6 +68,10 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
67
68
  this.cachedChain = [];
68
69
  this.clearEnforceTimers();
69
70
  }
71
+ // Visibility enforcement is a KSA-only legal requirement.
72
+ isVisibilityEnforced() {
73
+ return salla.config.get('store.store_country') === 'SA';
74
+ }
70
75
  getAncestorChain(host) {
71
76
  const chain = [];
72
77
  let el = host;
@@ -136,6 +141,8 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
136
141
  }
137
142
  }
138
143
  scheduleEnforce() {
144
+ if (!this.isVisibilityEnforced())
145
+ return;
139
146
  // Debounce waits for an entrance animation to settle; maxWait bounds it so endless chain mutations can't starve the repair.
140
147
  if (this.enforceTimer !== undefined)
141
148
  clearTimeout(this.enforceTimer);
@@ -429,6 +429,18 @@ class Helper {
429
429
  script.textContent = JSON.stringify(schema);
430
430
  document.head.appendChild(script);
431
431
  }
432
+ // Store-configured availability notification channels as a comma string ("email,sms").
433
+ availabilityChannels() {
434
+ let config = salla.config.get('store.settings.product.availability_notify');
435
+ if (!config) {
436
+ return '';
437
+ }
438
+ let channels = [];
439
+ config.email && channels.push('email');
440
+ // sms, mobile and whatsapp all collect a phone number via the same input
441
+ (config.sms || config.mobile || config.whatsapp) && channels.push('sms');
442
+ return channels.join(',');
443
+ }
432
444
  }
433
445
  var Helper$1 = new Helper;
434
446
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { h } from './index-BxKt36mx.js';
4
+ import { h } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
7
7
  return number < multipleOf ? number : number - (number % multipleOf);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BxKt36mx.js';
4
+ import { d as getDefaultExportFromCjs } from './index-iJ5sq_zX.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {