@salla.sa/twilight-components 2.14.458 → 2.14.459

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 (319) hide show
  1. package/dist/cjs/{Helper-CU4Xuiki.js → Helper-CgGR9Qf8.js} +12 -0
  2. package/dist/cjs/{filepond-feaMFOj_.js → filepond-DGjKsL4Z.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-BZT9ukbc.js → filepond-plugin-file-poster-Q5BPSEn_.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size--7D0QTWS.js → filepond-plugin-file-validate-size-DqTmfsfu.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-cLz_UQvD.js → filepond-plugin-file-validate-type-D526i3dm.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit--i9lQj9g.js → filepond-plugin-image-edit-BDgIU9Go.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-DCA1ZCDJ.js → filepond-plugin-image-exif-orientation-Da6QG4_J.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-DGipSjOn.js → filepond-plugin-image-preview-CPb3lB8x.js} +1 -1
  9. package/dist/cjs/{functions-45yOAuh2.js → functions-DIZLPj6n.js} +1 -1
  10. package/dist/cjs/{index-D1MNaBOd.js → index-C5VZF2SB.js} +1 -1
  11. package/dist/cjs/{index-DoKZADm3.js → index-DFPCRma5.js} +2 -2
  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 +1 -1
  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-DcTnHHuS.js} +1 -1
  101. package/dist/cjs/twilight.cjs.js +2 -2
  102. package/dist/cjs/{vanilla-picker-BlZm-f_Z.js → vanilla-picker-dGiAD7ic.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/components/Helper.js +12 -0
  107. package/dist/components/index.js +2 -2
  108. package/dist/components/salla-add-product-button2.js +5 -1
  109. package/dist/components/salla-product-availability2.js +13 -8
  110. package/dist/esm/{Helper-DFMXF2_h.js → Helper-BXj4f_Qj.js} +12 -0
  111. package/dist/esm/{filepond-CffxACiY.js → filepond-DcMHeT3j.js} +1 -1
  112. package/dist/esm/{filepond-plugin-file-poster-LzXPemRj.js → filepond-plugin-file-poster-KBxuLEbb.js} +1 -1
  113. package/dist/esm/{filepond-plugin-file-validate-size-BBeG1YQF.js → filepond-plugin-file-validate-size-BK-MtfMA.js} +1 -1
  114. package/dist/esm/{filepond-plugin-file-validate-type-DWCw6g0N.js → filepond-plugin-file-validate-type-crBUzoNT.js} +1 -1
  115. package/dist/esm/{filepond-plugin-image-edit-0ClTm033.js → filepond-plugin-image-edit-BTOgfYiD.js} +1 -1
  116. package/dist/esm/{filepond-plugin-image-exif-orientation-CR7WTm7O.js → filepond-plugin-image-exif-orientation-Dooy1jA0.js} +1 -1
  117. package/dist/esm/{filepond-plugin-image-preview-CHGE8apT.js → filepond-plugin-image-preview-ln9g6gwR.js} +1 -1
  118. package/dist/esm/{functions-Dd4f5cCM.js → functions-BuD3yG-5.js} +1 -1
  119. package/dist/esm/{index-DohtU8-7.js → index-D47JMPpe.js} +1 -1
  120. package/dist/esm/{index-BxKt36mx.js → index-LFMpXt4w.js} +2 -2
  121. package/dist/esm/loader.js +3 -3
  122. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  123. package/dist/esm/salla-accordion_6.entry.js +2 -2
  124. package/dist/esm/salla-add-product-button_5.entry.js +19 -9
  125. package/dist/esm/salla-advertisement.entry.js +1 -1
  126. package/dist/esm/salla-alert_2.entry.js +1 -1
  127. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  128. package/dist/esm/salla-apps-icons.entry.js +1 -1
  129. package/dist/esm/salla-badge.entry.js +1 -1
  130. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  131. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  132. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  133. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  134. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  135. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  136. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  137. package/dist/esm/salla-contacts.entry.js +1 -1
  138. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  139. package/dist/esm/salla-count-down.entry.js +1 -1
  140. package/dist/esm/salla-custom-fields.entry.js +1 -1
  141. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  142. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  143. package/dist/esm/salla-filters-widget.entry.js +2 -2
  144. package/dist/esm/salla-filters.entry.js +2 -2
  145. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  146. package/dist/esm/salla-gifting.entry.js +1 -1
  147. package/dist/esm/salla-hook.entry.js +1 -1
  148. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  149. package/dist/esm/salla-installment.entry.js +1 -1
  150. package/dist/esm/salla-list-tile.entry.js +1 -1
  151. package/dist/esm/salla-localization-modal.entry.js +1 -1
  152. package/dist/esm/salla-login-modal.entry.js +1 -1
  153. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  154. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  155. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  156. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  157. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  158. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  159. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  160. package/dist/esm/salla-loyalty.entry.js +1 -1
  161. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  162. package/dist/esm/salla-map.entry.js +1 -1
  163. package/dist/esm/salla-menu.entry.js +1 -1
  164. package/dist/esm/salla-metadata.entry.js +1 -1
  165. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  166. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  167. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  168. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  169. package/dist/esm/salla-notification-item.entry.js +1 -1
  170. package/dist/esm/salla-notifications.entry.js +2 -2
  171. package/dist/esm/salla-offer-modal.entry.js +1 -1
  172. package/dist/esm/salla-offer.entry.js +1 -1
  173. package/dist/esm/salla-order-branch.entry.js +1 -1
  174. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  175. package/dist/esm/salla-order-details-options.entry.js +1 -1
  176. package/dist/esm/salla-order-details.entry.js +1 -1
  177. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  178. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  179. package/dist/esm/salla-order-edit.entry.js +1 -1
  180. package/dist/esm/salla-order-summary.entry.js +1 -1
  181. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  182. package/dist/esm/salla-orders.entry.js +2 -2
  183. package/dist/esm/salla-payments.entry.js +1 -1
  184. package/dist/esm/salla-placeholder.entry.js +1 -1
  185. package/dist/esm/salla-price-range.entry.js +1 -1
  186. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  187. package/dist/esm/salla-product-card_2.entry.js +2 -2
  188. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  189. package/dist/esm/salla-products-list.entry.js +2 -2
  190. package/dist/esm/salla-progress-bar.entry.js +1 -1
  191. package/dist/esm/salla-quick-order.entry.js +1 -1
  192. package/dist/esm/salla-rating-modal.entry.js +2 -2
  193. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  194. package/dist/esm/salla-scopes.entry.js +1 -1
  195. package/dist/esm/salla-search.entry.js +2 -2
  196. package/dist/esm/salla-skeleton.entry.js +1 -1
  197. package/dist/esm/salla-slider.entry.js +1 -1
  198. package/dist/esm/salla-social-share.entry.js +1 -1
  199. package/dist/esm/salla-social.entry.js +1 -1
  200. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  201. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  202. package/dist/esm/salla-tooltip.entry.js +1 -1
  203. package/dist/esm/salla-trust-badges.entry.js +1 -1
  204. package/dist/esm/salla-user-menu.entry.js +1 -1
  205. package/dist/esm/salla-user-profile.entry.js +1 -1
  206. package/dist/esm/salla-user-settings.entry.js +1 -1
  207. package/dist/esm/salla-verify.entry.js +1 -1
  208. package/dist/esm/salla-wallet.entry.js +1 -1
  209. package/dist/esm/{tracked-promise-tXUCoIr3.js → tracked-promise-DPbO0QsO.js} +1 -1
  210. package/dist/esm/twilight.js +3 -3
  211. package/dist/esm/{vanilla-picker-Bn8UZjWt.js → vanilla-picker-DAQGFAt4.js} +1 -1
  212. package/dist/twilight/{p-23353fc1.entry.js → p-01ae33ac.entry.js} +1 -1
  213. package/dist/twilight/{p-fd9b57a4.entry.js → p-01f84b1c.entry.js} +1 -1
  214. package/dist/twilight/{p-c4863bf6.entry.js → p-035ea236.entry.js} +1 -1
  215. package/dist/twilight/{p-e7bd71a3.entry.js → p-046159e7.entry.js} +1 -1
  216. package/dist/twilight/{p-fb12850b.entry.js → p-04e86cc4.entry.js} +1 -1
  217. package/dist/twilight/{p-37b7f9a1.entry.js → p-05989724.entry.js} +1 -1
  218. package/dist/twilight/{p-92a18a14.entry.js → p-068ab5b3.entry.js} +1 -1
  219. package/dist/twilight/{p-e4b91ab1.entry.js → p-11f1a28b.entry.js} +1 -1
  220. package/dist/twilight/p-17970285.entry.js +4 -0
  221. package/dist/twilight/{p-1e0e3caf.entry.js → p-289e48d4.entry.js} +1 -1
  222. package/dist/twilight/{p-87bfae72.entry.js → p-2b3591c9.entry.js} +1 -1
  223. package/dist/twilight/p-2d0bbec1.entry.js +4 -0
  224. package/dist/twilight/{p-724f7df5.entry.js → p-2e11c53e.entry.js} +1 -1
  225. package/dist/twilight/{p-3b627b8f.entry.js → p-2e7a103f.entry.js} +1 -1
  226. package/dist/twilight/{p-1833e7f1.entry.js → p-303b4348.entry.js} +1 -1
  227. package/dist/twilight/{p-865541e7.entry.js → p-34b5b7d5.entry.js} +1 -1
  228. package/dist/twilight/{p-bf991695.entry.js → p-355b31ee.entry.js} +1 -1
  229. package/dist/twilight/{p-73d8bada.entry.js → p-356bbb4f.entry.js} +1 -1
  230. package/dist/twilight/{p-40f55e09.entry.js → p-37291b15.entry.js} +1 -1
  231. package/dist/twilight/{p-55bdc159.entry.js → p-3d83750f.entry.js} +1 -1
  232. package/dist/twilight/{p-76ebb1f3.entry.js → p-40716039.entry.js} +1 -1
  233. package/dist/twilight/{p-c27fbce5.entry.js → p-426ea2e9.entry.js} +1 -1
  234. package/dist/twilight/{p-032b3143.entry.js → p-4519a7bc.entry.js} +1 -1
  235. package/dist/twilight/{p-1ff67f37.entry.js → p-4b55ed30.entry.js} +1 -1
  236. package/dist/twilight/{p-d2b3b6c5.entry.js → p-4e4dfff9.entry.js} +1 -1
  237. package/dist/twilight/{p-23e780a2.entry.js → p-525c6230.entry.js} +1 -1
  238. package/dist/twilight/{p-7f6647bd.entry.js → p-52ac44c5.entry.js} +1 -1
  239. package/dist/twilight/{p-85b3a22f.entry.js → p-53663091.entry.js} +1 -1
  240. package/dist/twilight/{p-16abcebc.entry.js → p-5834f1e5.entry.js} +1 -1
  241. package/dist/twilight/{p-c60cecc8.entry.js → p-5b197d71.entry.js} +1 -1
  242. package/dist/twilight/{p-4e1e74e7.entry.js → p-5d16469d.entry.js} +1 -1
  243. package/dist/twilight/{p-820ef744.entry.js → p-5ffdd593.entry.js} +1 -1
  244. package/dist/twilight/{p-1c2a1511.entry.js → p-619bd683.entry.js} +1 -1
  245. package/dist/twilight/{p-6d99f564.entry.js → p-627c326c.entry.js} +1 -1
  246. package/dist/twilight/{p-7069bc5a.entry.js → p-628d1673.entry.js} +1 -1
  247. package/dist/twilight/{p-53c1d0b8.entry.js → p-6ab24467.entry.js} +1 -1
  248. package/dist/twilight/{p-3d504212.entry.js → p-6b2c7fd9.entry.js} +1 -1
  249. package/dist/twilight/{p-02eb80b8.entry.js → p-6b58eb2d.entry.js} +1 -1
  250. package/dist/twilight/{p-f97149c2.entry.js → p-6e1478a1.entry.js} +1 -1
  251. package/dist/twilight/{p-d03f573b.entry.js → p-770d84fb.entry.js} +1 -1
  252. package/dist/twilight/{p-940f0285.entry.js → p-78276ba5.entry.js} +1 -1
  253. package/dist/twilight/{p-c32e2a71.entry.js → p-795f5e87.entry.js} +1 -1
  254. package/dist/twilight/{p-f5f84c2a.entry.js → p-7bd6623d.entry.js} +1 -1
  255. package/dist/twilight/{p-ef58d373.entry.js → p-7cf69f2f.entry.js} +1 -1
  256. package/dist/twilight/{p-c5acb840.entry.js → p-80141f08.entry.js} +1 -1
  257. package/dist/twilight/{p-3737a731.entry.js → p-80c8cff1.entry.js} +1 -1
  258. package/dist/twilight/{p-17d04d37.entry.js → p-84bbc5f0.entry.js} +1 -1
  259. package/dist/twilight/{p-71ff03c7.entry.js → p-85ca0b80.entry.js} +1 -1
  260. package/dist/twilight/{p-4f02bb67.entry.js → p-8ae1064c.entry.js} +1 -1
  261. package/dist/twilight/{p-1dda49a2.entry.js → p-8b37e9f6.entry.js} +1 -1
  262. package/dist/twilight/{p-aa0a82ba.entry.js → p-8c679c7b.entry.js} +1 -1
  263. package/dist/twilight/{p-eb970c64.entry.js → p-96b69cc2.entry.js} +1 -1
  264. package/dist/twilight/{p-f28a753d.entry.js → p-9774320f.entry.js} +1 -1
  265. package/dist/twilight/{p-CHf8XdiS.js → p-BcbKK1Xp.js} +1 -1
  266. package/dist/twilight/{p-BF2OeDPC.js → p-BeSwpz9O.js} +1 -1
  267. package/dist/twilight/{p-CwiIgE9I.js → p-BoSXpmeB.js} +1 -1
  268. package/dist/twilight/{p-C-xAJPgJ.js → p-C60CVu0N.js} +1 -1
  269. package/dist/twilight/{p-pXzGsRrE.js → p-CUtmSDDB.js} +1 -1
  270. package/dist/twilight/{p-CoKgv23c.js → p-CZckMsJI.js} +1 -1
  271. package/dist/twilight/{p-BJrHiNT7.js → p-CgrzPzoa.js} +1 -1
  272. package/dist/twilight/{p-BEUsRLpS.js → p-CjEmeOim.js} +1 -1
  273. package/dist/twilight/{p-DvUuxBCy.js → p-Ck4ltJzi.js} +1 -1
  274. package/dist/twilight/{p-CLJJGa4R.js → p-DILJJ674.js} +1 -1
  275. package/dist/twilight/{p-B37vFXxB.js → p-Dh7EHj7d.js} +1 -1
  276. package/dist/twilight/p-LFMpXt4w.js +5 -0
  277. package/dist/twilight/{p-b3fca774.entry.js → p-a119c0b5.entry.js} +1 -1
  278. package/dist/twilight/{p-0c4cba69.entry.js → p-a6734e3a.entry.js} +1 -1
  279. package/dist/twilight/{p-e5494d9d.entry.js → p-a70406d4.entry.js} +1 -1
  280. package/dist/twilight/{p-2082d185.entry.js → p-a76b17e2.entry.js} +1 -1
  281. package/dist/twilight/{p-32d49832.entry.js → p-a9a5c8fa.entry.js} +1 -1
  282. package/dist/twilight/{p-2177b796.entry.js → p-adab7f42.entry.js} +1 -1
  283. package/dist/twilight/{p-213dfc6e.entry.js → p-adfecc83.entry.js} +1 -1
  284. package/dist/twilight/{p-2ec44c82.entry.js → p-b5083002.entry.js} +1 -1
  285. package/dist/twilight/{p-44e22a0b.entry.js → p-b92bb0e6.entry.js} +1 -1
  286. package/dist/twilight/{p-7720867a.entry.js → p-bde5b9ac.entry.js} +1 -1
  287. package/dist/twilight/{p-dc9d31bd.entry.js → p-be894841.entry.js} +1 -1
  288. package/dist/twilight/{p-4c1cda26.entry.js → p-c1ab48f6.entry.js} +1 -1
  289. package/dist/twilight/{p-74966aa4.entry.js → p-c2ec7224.entry.js} +1 -1
  290. package/dist/twilight/{p-67378b91.entry.js → p-c7376a3d.entry.js} +1 -1
  291. package/dist/twilight/{p-ab8d1c50.entry.js → p-c74934e9.entry.js} +1 -1
  292. package/dist/twilight/{p-ae873bb3.entry.js → p-ca1140a4.entry.js} +1 -1
  293. package/dist/twilight/{p-eba31f7c.entry.js → p-cd24514a.entry.js} +1 -1
  294. package/dist/twilight/{p-14818bbc.entry.js → p-cdc6db50.entry.js} +1 -1
  295. package/dist/twilight/{p-f89ac2c3.entry.js → p-ce75d101.entry.js} +1 -1
  296. package/dist/twilight/{p-27ff5ee4.entry.js → p-d4780439.entry.js} +1 -1
  297. package/dist/twilight/{p-e7e7acbd.entry.js → p-da736b50.entry.js} +1 -1
  298. package/dist/twilight/{p-cf71632e.entry.js → p-db5c545a.entry.js} +1 -1
  299. package/dist/twilight/{p-23aacddd.entry.js → p-e2044262.entry.js} +1 -1
  300. package/dist/twilight/{p-bedfe2f1.entry.js → p-e35e0f54.entry.js} +1 -1
  301. package/dist/twilight/{p-6e7c61b6.entry.js → p-e49e893c.entry.js} +1 -1
  302. package/dist/twilight/{p-5ba6fa7b.entry.js → p-e5631806.entry.js} +1 -1
  303. package/dist/twilight/{p-c5fdba11.entry.js → p-e682012f.entry.js} +1 -1
  304. package/dist/twilight/{p-59ce0a62.entry.js → p-eea3ae1c.entry.js} +1 -1
  305. package/dist/twilight/{p-2a763bb1.entry.js → p-f32fa56d.entry.js} +1 -1
  306. package/dist/twilight/{p-13de7f9d.entry.js → p-f349772e.entry.js} +1 -1
  307. package/dist/twilight/{p-2d39c870.entry.js → p-f4ecb099.entry.js} +1 -1
  308. package/dist/twilight/{p-7708a3e0.entry.js → p-fc27afea.entry.js} +1 -1
  309. package/dist/twilight/{p-0306c8f5.entry.js → p-fc9573b3.entry.js} +1 -1
  310. package/dist/twilight/{p-bfe100b5.entry.js → p-ff0ce619.entry.js} +1 -1
  311. package/dist/twilight/{p-CgUFhQLc.js → p-wLMN58-n.js} +1 -1
  312. package/dist/twilight/twilight.esm.js +1 -1
  313. package/dist/types/Helpers/Helper.d.ts +1 -0
  314. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +1 -0
  315. package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +1 -1
  316. package/package.json +5 -5
  317. package/dist/twilight/p-13fb05be.entry.js +0 -4
  318. package/dist/twilight/p-BxKt36mx.js +0 -5
  319. 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
  }]);
@@ -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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.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-LFMpXt4w.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {