@salla.sa/twilight-components 2.14.363 → 2.14.365

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 (269) hide show
  1. package/dist/cjs/{Helper-DHRnzcFm.js → Helper-CU4Xuiki.js} +9 -3
  2. package/dist/cjs/{filepond-Cm0veZUa.js → filepond-5FseaYGO.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-5FfyUW85.js → filepond-plugin-file-poster-B6jRMST8.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-BZrpKzQW.js → filepond-plugin-file-validate-size-B5KYrf7Q.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-DfvlWHm3.js → filepond-plugin-file-validate-type-D6zZbyEw.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-BS6vuSMf.js → filepond-plugin-image-edit-D9sIYJpS.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-B14qHqal.js → filepond-plugin-image-exif-orientation-DCPv8T5a.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-DbPhsoe7.js → filepond-plugin-image-preview-B6ya_UMz.js} +1 -1
  9. package/dist/cjs/{index-8uU_89ND.js → index-DaB0o62I.js} +2 -2
  10. package/dist/cjs/{index-D4WVexAs.js → index-DsLCYojB.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  14. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +2 -2
  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-booking-field_7.cjs.entry.js +11 -11
  20. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
  22. package/dist/cjs/salla-conditional-offer.cjs.entry.js +25 -8
  23. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  28. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  29. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-offer-modal.cjs.entry.js +18 -5
  48. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-products-list.cjs.entry.js +7 -2
  60. package/dist/cjs/salla-products-slider.cjs.entry.js +11 -3
  61. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  64. package/dist/cjs/salla-scopes.cjs.entry.js +3 -2
  65. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-tooltip.cjs.entry.js +8 -3
  73. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  77. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  79. package/dist/cjs/twilight.cjs.js +2 -2
  80. package/dist/cjs/{vanilla-picker-IQ-oWn_E.js → vanilla-picker-DE9NaT9j.js} +1 -1
  81. package/dist/collection/Helpers/Helper.js +9 -3
  82. package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.js +24 -7
  83. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +17 -4
  84. package/dist/collection/components/salla-products-list/salla-products-list.js +5 -0
  85. package/dist/collection/components/salla-products-slider/salla-products-slider.js +9 -1
  86. package/dist/collection/components/salla-scopes/salla-scopes.js +2 -1
  87. package/dist/collection/components/salla-tooltip/salla-tooltip.css +13 -0
  88. package/dist/collection/components/salla-tooltip/salla-tooltip.js +26 -1
  89. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  90. package/dist/components/Helper.js +9 -3
  91. package/dist/components/index.js +2 -2
  92. package/dist/components/salla-conditional-offer.js +32 -9
  93. package/dist/components/salla-offer-modal.js +17 -4
  94. package/dist/components/salla-products-list2.js +5 -0
  95. package/dist/components/salla-products-slider2.js +9 -1
  96. package/dist/components/salla-scopes.js +2 -1
  97. package/dist/components/salla-tooltip2.js +8 -2
  98. package/dist/components/salla-user-settings.js +1 -1
  99. package/dist/esm/{Helper-B5RLi6Xo.js → Helper-DFMXF2_h.js} +9 -3
  100. package/dist/esm/{filepond-BxnfcWKu.js → filepond-BGPYjCAA.js} +1 -1
  101. package/dist/esm/{filepond-plugin-file-poster-CVlOWX6z.js → filepond-plugin-file-poster-sd-w_Hri.js} +1 -1
  102. package/dist/esm/{filepond-plugin-file-validate-size-DkWQTJLs.js → filepond-plugin-file-validate-size-CQkfT5sz.js} +1 -1
  103. package/dist/esm/{filepond-plugin-file-validate-type-DJ3SNo4p.js → filepond-plugin-file-validate-type-Cu8nOdXD.js} +1 -1
  104. package/dist/esm/{filepond-plugin-image-edit--sW-f_3W.js → filepond-plugin-image-edit-CWpBhgby.js} +1 -1
  105. package/dist/esm/{filepond-plugin-image-exif-orientation-BqM7-Xzy.js → filepond-plugin-image-exif-orientation-DbSLLg4E.js} +1 -1
  106. package/dist/esm/{filepond-plugin-image-preview-CEoAG6lV.js → filepond-plugin-image-preview-DXgOkLlG.js} +1 -1
  107. package/dist/esm/{index-CIDWvPVd.js → index-BNB-g4_5.js} +1 -1
  108. package/dist/esm/{index-DYymy2t0.js → index-DcD0Zbyk.js} +2 -2
  109. package/dist/esm/loader.js +3 -3
  110. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  111. package/dist/esm/salla-accordion_6.entry.js +2 -2
  112. package/dist/esm/salla-add-product-button_4.entry.js +2 -2
  113. package/dist/esm/salla-advertisement.entry.js +1 -1
  114. package/dist/esm/salla-alert_2.entry.js +1 -1
  115. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  116. package/dist/esm/salla-apps-icons.entry.js +1 -1
  117. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  118. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  119. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  120. package/dist/esm/salla-conditional-offer.entry.js +25 -8
  121. package/dist/esm/salla-contacts.entry.js +1 -1
  122. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  123. package/dist/esm/salla-count-down_2.entry.js +1 -1
  124. package/dist/esm/salla-custom-fields.entry.js +1 -1
  125. package/dist/esm/salla-filters-widget.entry.js +2 -2
  126. package/dist/esm/salla-filters.entry.js +2 -2
  127. package/dist/esm/salla-gifting.entry.js +1 -1
  128. package/dist/esm/salla-hook.entry.js +1 -1
  129. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  130. package/dist/esm/salla-installment.entry.js +1 -1
  131. package/dist/esm/salla-list-tile.entry.js +1 -1
  132. package/dist/esm/salla-localization-modal.entry.js +1 -1
  133. package/dist/esm/salla-login-modal.entry.js +1 -1
  134. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  135. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  136. package/dist/esm/salla-loyalty.entry.js +1 -1
  137. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  138. package/dist/esm/salla-menu.entry.js +1 -1
  139. package/dist/esm/salla-metadata.entry.js +1 -1
  140. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  141. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  142. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  143. package/dist/esm/salla-notification-item.entry.js +1 -1
  144. package/dist/esm/salla-notifications.entry.js +2 -2
  145. package/dist/esm/salla-offer-modal.entry.js +18 -5
  146. package/dist/esm/salla-offer.entry.js +1 -1
  147. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  148. package/dist/esm/salla-order-details-options.entry.js +1 -1
  149. package/dist/esm/salla-order-details.entry.js +1 -1
  150. package/dist/esm/salla-order-summary.entry.js +1 -1
  151. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  152. package/dist/esm/salla-orders.entry.js +2 -2
  153. package/dist/esm/salla-payments.entry.js +1 -1
  154. package/dist/esm/salla-placeholder.entry.js +1 -1
  155. package/dist/esm/salla-price-range.entry.js +1 -1
  156. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  157. package/dist/esm/salla-products-list.entry.js +7 -2
  158. package/dist/esm/salla-products-slider.entry.js +11 -3
  159. package/dist/esm/salla-progress-bar.entry.js +1 -1
  160. package/dist/esm/salla-quick-order.entry.js +1 -1
  161. package/dist/esm/salla-rating-modal.entry.js +2 -2
  162. package/dist/esm/salla-scopes.entry.js +3 -2
  163. package/dist/esm/salla-search.entry.js +2 -2
  164. package/dist/esm/salla-skeleton.entry.js +1 -1
  165. package/dist/esm/salla-slider.entry.js +1 -1
  166. package/dist/esm/salla-social-share.entry.js +1 -1
  167. package/dist/esm/salla-social.entry.js +1 -1
  168. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  169. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  170. package/dist/esm/salla-tooltip.entry.js +8 -3
  171. package/dist/esm/salla-trust-badges.entry.js +1 -1
  172. package/dist/esm/salla-user-menu.entry.js +1 -1
  173. package/dist/esm/salla-user-profile.entry.js +1 -1
  174. package/dist/esm/salla-user-settings.entry.js +2 -2
  175. package/dist/esm/salla-verify.entry.js +1 -1
  176. package/dist/esm/salla-wallet.entry.js +1 -1
  177. package/dist/esm/twilight.js +3 -3
  178. package/dist/esm/{vanilla-picker-gdoSRIwJ.js → vanilla-picker-ErWyfb2S.js} +1 -1
  179. package/dist/twilight/{p-cbf0d560.entry.js → p-049e7629.entry.js} +1 -1
  180. package/dist/twilight/{p-3f9d5f82.entry.js → p-05b3f2ba.entry.js} +1 -1
  181. package/dist/twilight/{p-48b787d5.entry.js → p-05edd1ae.entry.js} +1 -1
  182. package/dist/twilight/{p-4e20b67d.entry.js → p-0a33368c.entry.js} +1 -1
  183. package/dist/twilight/{p-4786d914.entry.js → p-0f733d50.entry.js} +1 -1
  184. package/dist/twilight/p-0f9b63f1.entry.js +4 -0
  185. package/dist/twilight/{p-47982538.entry.js → p-14d02ff1.entry.js} +1 -1
  186. package/dist/twilight/{p-d9630e7f.entry.js → p-1db6e42a.entry.js} +1 -1
  187. package/dist/twilight/{p-a5e35583.entry.js → p-1df500d5.entry.js} +1 -1
  188. package/dist/twilight/{p-5fad1660.entry.js → p-22b8f56b.entry.js} +1 -1
  189. package/dist/twilight/{p-88c066a8.entry.js → p-27198dfa.entry.js} +1 -1
  190. package/dist/twilight/{p-069081f5.entry.js → p-281ca90e.entry.js} +1 -1
  191. package/dist/twilight/p-28fa2261.entry.js +4 -0
  192. package/dist/twilight/{p-fcc4e111.entry.js → p-2a8e49ca.entry.js} +1 -1
  193. package/dist/twilight/{p-fec7f674.entry.js → p-2e1418d2.entry.js} +1 -1
  194. package/dist/twilight/{p-b49162d4.entry.js → p-31e390fc.entry.js} +1 -1
  195. package/dist/twilight/{p-701cc402.entry.js → p-34690dc4.entry.js} +1 -1
  196. package/dist/twilight/{p-b86fb433.entry.js → p-3504a127.entry.js} +1 -1
  197. package/dist/twilight/{p-3188943f.entry.js → p-37baa677.entry.js} +1 -1
  198. package/dist/twilight/{p-6d5b8938.entry.js → p-38fb50ed.entry.js} +1 -1
  199. package/dist/twilight/{p-379fd315.entry.js → p-3bd66c8c.entry.js} +1 -1
  200. package/dist/twilight/{p-c6dbc1ad.entry.js → p-3e62ea6f.entry.js} +1 -1
  201. package/dist/twilight/{p-4ca694ae.entry.js → p-3f99644a.entry.js} +1 -1
  202. package/dist/twilight/{p-2cff7601.entry.js → p-3fbb37fc.entry.js} +1 -1
  203. package/dist/twilight/{p-f1e8f262.entry.js → p-43bed278.entry.js} +1 -1
  204. package/dist/twilight/{p-3bdf10a6.entry.js → p-48b8702d.entry.js} +1 -1
  205. package/dist/twilight/{p-857967c3.entry.js → p-4afcc4e1.entry.js} +1 -1
  206. package/dist/twilight/{p-1df7fdd6.entry.js → p-4b508998.entry.js} +1 -1
  207. package/dist/twilight/{p-ff991b71.entry.js → p-4fcd9105.entry.js} +1 -1
  208. package/dist/twilight/{p-02d3c2c1.entry.js → p-50b01475.entry.js} +1 -1
  209. package/dist/twilight/{p-5b9bea1a.entry.js → p-5286e950.entry.js} +1 -1
  210. package/dist/twilight/{p-6e94fb16.entry.js → p-5463603e.entry.js} +1 -1
  211. package/dist/twilight/{p-72d2fd15.entry.js → p-5b221eda.entry.js} +1 -1
  212. package/dist/twilight/p-5ca44db4.entry.js +4 -0
  213. package/dist/twilight/{p-d5e236b8.entry.js → p-61b073fe.entry.js} +1 -1
  214. package/dist/twilight/{p-77186686.entry.js → p-62ab3466.entry.js} +1 -1
  215. package/dist/twilight/{p-e8b38c6b.entry.js → p-62eecdc3.entry.js} +1 -1
  216. package/dist/twilight/{p-02f9a65d.entry.js → p-7472ce60.entry.js} +1 -1
  217. package/dist/twilight/{p-147e15be.entry.js → p-794141e7.entry.js} +1 -1
  218. package/dist/twilight/{p-acdd9122.entry.js → p-7e971fde.entry.js} +1 -1
  219. package/dist/twilight/{p-d0e54564.entry.js → p-84920a03.entry.js} +1 -1
  220. package/dist/twilight/{p-6b7de7eb.entry.js → p-90375d86.entry.js} +1 -1
  221. package/dist/twilight/{p-bd6ea5cf.entry.js → p-9a2691e8.entry.js} +1 -1
  222. package/dist/twilight/{p-CNy-mrf-.js → p-BpwFfwom.js} +1 -1
  223. package/dist/twilight/{p-CFBwCDmK.js → p-C6smOZtR.js} +1 -1
  224. package/dist/twilight/p-CHf8XdiS.js +4 -0
  225. package/dist/twilight/{p-DxG2Dyn2.js → p-CMeOfINj.js} +1 -1
  226. package/dist/twilight/{p-cxrZ-GDo.js → p-CfS_Im-l.js} +1 -1
  227. package/dist/twilight/{p-CWpk66mj.js → p-Ctf313G7.js} +1 -1
  228. package/dist/twilight/{p-BOP72N-Z.js → p-D94qS2bu.js} +2 -2
  229. package/dist/twilight/{p-BTCaUy5J.js → p-DI8hZjwW.js} +1 -1
  230. package/dist/twilight/{p-BzWzzpbs.js → p-DaQtMKKH.js} +1 -1
  231. package/dist/twilight/{p-DYymy2t0.js → p-DcD0Zbyk.js} +2 -2
  232. package/dist/twilight/{p-3b4000a6.entry.js → p-a12e53fb.entry.js} +1 -1
  233. package/dist/twilight/{p-8553c120.entry.js → p-a3b90d18.entry.js} +1 -1
  234. package/dist/twilight/{p-0be53208.entry.js → p-a916b222.entry.js} +1 -1
  235. package/dist/twilight/{p-70afedaf.entry.js → p-ac4d4de4.entry.js} +1 -1
  236. package/dist/twilight/{p-9249501a.entry.js → p-bac8dfc6.entry.js} +1 -1
  237. package/dist/twilight/{p-147fbbd6.entry.js → p-bd15fbda.entry.js} +1 -1
  238. package/dist/twilight/{p-c50ea955.entry.js → p-ca43a3b7.entry.js} +1 -1
  239. package/dist/twilight/{p-33464e57.entry.js → p-cacb3ce1.entry.js} +1 -1
  240. package/dist/twilight/{p-46d4b3cc.entry.js → p-cad7741c.entry.js} +1 -1
  241. package/dist/twilight/{p-05d9522b.entry.js → p-cf4c8fc8.entry.js} +1 -1
  242. package/dist/twilight/{p-2fa4615b.entry.js → p-d4135be2.entry.js} +1 -1
  243. package/dist/twilight/{p-479c3288.entry.js → p-d9e1559a.entry.js} +1 -1
  244. package/dist/twilight/{p-aa067602.entry.js → p-df475039.entry.js} +1 -1
  245. package/dist/twilight/{p-cba4f8d2.entry.js → p-e53c695d.entry.js} +1 -1
  246. package/dist/twilight/p-ea2ebd0c.entry.js +4 -0
  247. package/dist/twilight/{p-ebc613c2.entry.js → p-eaf91b32.entry.js} +1 -1
  248. package/dist/twilight/{p-36a25d6d.entry.js → p-eb1ee098.entry.js} +1 -1
  249. package/dist/twilight/{p-399edf8d.entry.js → p-eb21f677.entry.js} +1 -1
  250. package/dist/twilight/{p-8f5a25a5.entry.js → p-ec61d027.entry.js} +1 -1
  251. package/dist/twilight/{p-0e2abd8d.entry.js → p-f0234135.entry.js} +1 -1
  252. package/dist/twilight/{p-15272ec6.entry.js → p-f1865223.entry.js} +1 -1
  253. package/dist/twilight/p-f94c1c9a.entry.js +4 -0
  254. package/dist/twilight/{p-b80a7503.entry.js → p-f959adcd.entry.js} +1 -1
  255. package/dist/twilight/{p-9d768dfc.entry.js → p-fbc08feb.entry.js} +1 -1
  256. package/dist/twilight/{p-DRCqKDhl.js → p-r4UR1cQJ.js} +1 -1
  257. package/dist/twilight/twilight.esm.js +1 -1
  258. package/dist/types/Helpers/Helper.d.ts +2 -0
  259. package/dist/types/components/salla-conditional-offer/salla-conditional-offer.d.ts +2 -1
  260. package/dist/types/components/salla-scopes/salla-scopes.d.ts +1 -1
  261. package/dist/types/components/salla-tooltip/salla-tooltip.d.ts +4 -0
  262. package/dist/types/components.d.ts +10 -0
  263. package/package.json +5 -5
  264. package/dist/twilight/p-1a7ef8b9.entry.js +0 -4
  265. package/dist/twilight/p-3d5d0173.entry.js +0 -4
  266. package/dist/twilight/p-8125cc1b.entry.js +0 -4
  267. package/dist/twilight/p-DgNC8L6e.js +0 -4
  268. package/dist/twilight/p-e083d504.entry.js +0 -4
  269. package/dist/twilight/p-e940067f.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, F as Fragment, a as getElement } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.js';
5
5
  import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
6
6
 
7
7
  const sallaLoyaltyProgramCss = "";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h } from './index-DcD0Zbyk.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { C as Cancel } from './cancel-BsLF_HK7.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { C as Cancel } from './cancel-BsLF_HK7.js';
6
6
 
7
7
  const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, F as Fragment } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaMenuCss = ":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, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaMetadataCss = "";
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, F as Fragment } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaMultipleBundleProductCartCss = "";
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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
7
7
  const sallaMultipleBundleProductOptionsModalCss = ":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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaMultipleBundleProductCss = ":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 } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DYymy2t0.js';
5
- import { H as Helper } from './Helper-B5RLi6Xo.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.js';
5
+ import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaNotificationsCss = "";
@@ -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-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
6
6
 
7
7
  var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -78,14 +78,27 @@ const SallaOfferModal = class {
78
78
  this.productID = product_id;
79
79
  //TODO:: make sure there is only one offer
80
80
  this.hasError = false;
81
- this.modal.open();
81
+ this.modal.loading(); // Reset loading state for subsequent opens
82
82
  return await salla.api.withoutNotifier(() => salla.product.offers(product_id))
83
- .then(response => this.showOffer(response.data[0]))
83
+ .then(response => {
84
+ // Check if there are offers before opening the modal
85
+ if (!response.data || !response.data.length) {
86
+ return; // Don't open modal if no offers
87
+ }
88
+ this.modal.open();
89
+ this.showOffer(response.data[0]);
90
+ })
84
91
  .catch(e => {
85
92
  this.hasError = true;
86
93
  this.errorMessage = e.response?.data?.error?.message || e.response?.data;
94
+ this.modal.open(); // Open modal to show error
87
95
  })
88
- .finally(() => setTimeout(() => this.modal.stopLoading(), 1000));
96
+ .finally(() => {
97
+ // Only stop loading if modal was opened (either for offers or errors)
98
+ if (this.modal.visible) {
99
+ setTimeout(() => this.modal.stopLoading(), 1000);
100
+ }
101
+ });
89
102
  }
90
103
  /**
91
104
  * Show offer details
@@ -190,7 +203,7 @@ const SallaOfferModal = class {
190
203
  // '</div>';
191
204
  // }
192
205
  render() {
193
- return h("salla-modal", { key: '2c88abbe21015431b7e70f2369284e2f93c6fd3c', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: 'f44a915307bdc059c937d60a79a1c22a59957928', slot: 'loading' }, h("div", { key: '7b4b6f9572a2893aa5353a5ba2d4d62a2a5d8742', class: "s-offer-modal-skeleton" }, h("div", { key: 'a6b2f782cd643dc322e3f3c29a596a44fc9b1ace', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'a745dc619995820ac3a3bb9169b8a25cbceed9ea', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '7d54b0aaa14742f4dfef0e2b26d48eb24f1661c5', height: '15px', width: '50%' }), h("salla-skeleton", { key: '042349f3c34308d070f36c30ac942935da5afebe', height: '10px', width: '30%' })), h("div", { key: '691f32282147054b2dd76d1e324ddd172214cbbd', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '97cbe8b3ca1c8dde39a2c33995116a7a5d088594', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: 'c2f5d9d2e212e0383f6b4d159f1c9ce52c9064b7', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'c64ed16e51a4c9f302f915c025473a42d69d4490', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
206
+ return h("salla-modal", { key: '630ede1c6ac0df4aa55bd36597eb846df901d94e', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: 'd467615c5aaefc38cec4e40e4e5a7282466937d3', slot: 'loading' }, h("div", { key: 'ff17d657a94dcfe8d744e1317d8f73cab6063d11', class: "s-offer-modal-skeleton" }, h("div", { key: '81bf28f2785c0beb1ef1d4997ce064983e2211ec', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'acd8aa8be556821b4039d1b5fb6e46ef4155ac67', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '0c6855f5423a5e5bf1caf54da4f608b95b7d3f08', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'e313bac8052684ede353852821a51befb73f52b7', height: '10px', width: '30%' })), h("div", { key: '4c6a675e9c07e8e2986debd8dbecc346890ce0ca', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '226951e15be9aede559c4d24ba6f6690fac80e13', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '86ae2c54c01b3e58fd31729bc6d263dfa078f7ba', height: '15px', width: '50%' }), h("salla-skeleton", { key: '32f30f4f5bb11405901359267ab6311604f352ed', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
194
207
  ? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
195
208
  h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
196
209
  : '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
@@ -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-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-DcD0Zbyk.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, h } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h } from './index-DcD0Zbyk.js';
5
5
  import { i as iconCheck } from './check-BsXh13x8.js';
6
6
 
7
7
  var iconFileArchive = `<!-- 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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.js';
5
5
 
6
6
  const sallaOrderTotalsCardCss = ":host{display:block}";
7
7
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DYymy2t0.js';
5
- import { H as Helper } from './Helper-B5RLi6Xo.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.js';
5
+ import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaOrdersCss = ":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, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-DcD0Zbyk.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
 
7
7
  var arrowRight = `<!-- 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-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.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,10 +1,10 @@
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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
7
- import { H as Helper } from './Helper-B5RLi6Xo.js';
7
+ import { H as Helper } from './Helper-DFMXF2_h.js';
8
8
 
9
9
  const sallaProductsListCss = "";
10
10
 
@@ -222,6 +222,11 @@ const SallaProductsList = class {
222
222
  sessionStorage.setItem(this.lastViewedProductKey, product.id);
223
223
  }
224
224
  }
225
+ // Save source when add-to-cart button is clicked
226
+ const addBtn = target.closest('salla-add-product-button');
227
+ if (addBtn) {
228
+ Helper.saveAddToCartSource(this.getSource());
229
+ }
225
230
  });
226
231
  return productCard;
227
232
  }
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DYymy2t0.js';
5
- import { H as Helper } from './Helper-B5RLi6Xo.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
+ import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
8
8
  const sallaProductsSliderCss = "";
@@ -78,7 +78,15 @@ const SallaProductsSlider = class {
78
78
  //todo:: find a better way to handle this request
79
79
  const isLandingPage = this.getSource() === 'landing-page';
80
80
  isLandingPage && (product.url = '');
81
- const handleClick = isLandingPage ? undefined : () => Helper.saveProductSource(this.getSource());
81
+ const handleClick = isLandingPage ? undefined : (event) => {
82
+ const target = event.target;
83
+ if (target.closest('salla-add-product-button')) {
84
+ Helper.saveAddToCartSource(this.getSource());
85
+ }
86
+ else {
87
+ Helper.saveProductSource(this.getSource());
88
+ }
89
+ };
82
90
  if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
83
91
  return h("div", { class: "s-products-slider-card", onClick: handleClick }, h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
84
92
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { M as MailIcon } from './mail-DmgxDvXL.js';
6
6
  import { C as Cancel } from './cancel-BsLF_HK7.js';
7
7
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { W as WishListIcon } from './star-ZT7ehBBk.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
- import { H as Helper } from './Helper-B5RLi6Xo.js';
7
+ import { H as Helper } from './Helper-DFMXF2_h.js';
8
8
  import { I as ImageIcon } from './image-C-tzSDxw.js';
9
9
  import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
10
10
  import { M as MailIcon } from './mail-DmgxDvXL.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -167,7 +167,8 @@ const SallaScopees = class {
167
167
  this.placeholderContent()
168
168
  : this.mode === ModeType.DEFAULT ? this.defaultContent() : this.availabilityContent())])));
169
169
  }
170
- componentDidLoad() {
170
+ async componentDidLoad() {
171
+ await Salla.hooks.registerComponent('salla-scopes', this);
171
172
  if (!this.isOpenedBefore && this.selection == 'mandatory') {
172
173
  this.open();
173
174
  }
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
- import { H as Helper } from './Helper-B5RLi6Xo.js';
6
+ import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
8
8
 
9
9
  const sallaSearchCss = "";
@@ -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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.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 { M as MailIcon } from './mail-DmgxDvXL.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,13 +1,17 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-DYymy2t0.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-DcD0Zbyk.js';
5
5
 
6
- const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;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:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}";
6
+ const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;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:#baf3e6 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
 
8
8
  const SallaTooltip = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
+ /**
12
+ * The theme of the tooltip (default, dark)
13
+ */
14
+ this.theme = 'default';
11
15
  this.show = false;
12
16
  this.targetElement = null;
13
17
  }
@@ -26,7 +30,8 @@ const SallaTooltip = class {
26
30
  this.targetElement = document.getElementById(this.targetId);
27
31
  }
28
32
  render() {
29
- return (h("div", { key: 'fed457c496e7926ded53c47e1f6f7783eb9da5a0', class: "s-tooltip-container" }, h("slot", { key: 'd061264ee544bb9f4ca7ec3aa03f54b84c8af1fd' }), this.show && h("div", { key: '5d4a158dce0b562cb6e3c9bc732f47dcb96c182a', class: "s-tooltip-item" }, this.text)));
33
+ const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
34
+ return (h("div", { key: '2c7bc2a1100ae31bb86f278c31b540f077384376', class: "s-tooltip-container" }, h("div", { key: '8869153f4eea6404d5ba8666e26b6d0c23cd4e76', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
30
35
  }
31
36
  get el() { return getElement(this); }
32
37
  };
@@ -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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h } from './index-DcD0Zbyk.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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">
@@ -78,7 +78,7 @@ const SallaUserSettings = class {
78
78
  await salla.profile.delete().finally(() => this.confirmationModal.close());
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: '1a6622794c68aa483d9a2526d7c9568619145168', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '4188aabfd44edb57365f5a2d1c0910f5ec3cd447', class: "s-user-settings-section" }, h("salla-list-tile", { key: '9f9ccbb08d666a13bf19895349a17f84fbdd3fc1' }, h("div", { key: '85426ad3140db951064c29c988badc23447a238d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'd1a386387320cf907e4645240cace32ac27a1e5b', innerHTML: UserCancel })), h("div", { key: '1310d3547da0c2dd23e254eaf1b22f1b54956ef2', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '639ef8121549e9c119def1c8012b42647249df2c', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'aa8d60ad8c61d682e2114471e6168609bb4e9cb0', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '9d8d52ec4bdfb2032649ae37823070ea0902cb9d', class: "s-toggle" }, h("input", { key: 'f263da0f32ee2682bf442253980fe68da933cb06', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '058e908fcb2a61a239ff5ae67adaa290553feb0a', class: "s-toggle-switcher" }))))), h("div", { key: '2e314b366093f06ebc8e583c17d3f2f2125cd2e7', class: "s-user-settings-section" }, h("salla-list-tile", { key: '5e2fb8520042ccbd4301b20046369f65fb292a49' }, h("div", { key: '25918c6b5402504a0683f2f6931b58e3663ba4eb', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '0d24d9ecb8f7d48d1dba9eaebaad8093210f0a57', innerHTML: Bullhorn })), h("div", { key: 'e212afc7b1ad19e0c4976e5686bc51a847e94d61', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '3f4f72fe869f7cd6f4b4df870e6af8bd1cc32088', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '6929527d156f6da1f9ca61be60b756621b7fb321', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '1f3f3c77b25f602f3a4f461da321df2bcee2a956', class: "s-toggle" }, h("input", { key: 'afd4616efa19cdf04e32fd785af72a6c96ef980c', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'ef55c0480c58c3a77b4c28980c34b89197e2c84c', class: "s-toggle-switcher" }))))), h("div", { key: '7fc42b2d9ee0c58fd210b6704f96de07cf58c703', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '35bc4e485e78f57cce3fa9d324578997bf5b5346' }, h("div", { key: 'd2643402a5f414beb388622d96352600a58e7788', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '90a634d2ff464a26f7a09df39cf0cce6f7a1ce87', innerHTML: UserOff })), h("div", { key: '3376df9d4baee75e502df2b8265328910f692708', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '1452beb1f275f905b7a1ecb7e76a4223700f7d03', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '28bc808fbd51274f587abee141f67242100aea03', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c54e8db52d35e9ab62e2616a0dfb3a10417fcb80', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'a1d52fd66ed991f8411ca17b16e37d21893a2f06', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '9119095941bd2a579b27c18db025238ca652bd6b', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '3194c2236470a7da32bc065218162da80ea7713c', class: "s-user-settings-confirmation" }, h("div", { key: '718f43edf4e6a22ed23e0edaccee07fd3fa46e13', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'a87fcd03f6d97afc26f8410faacfcbbbc81cd8bb', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '366186ea98a351d1f0a1f6b3dc2eeddc18e46a33', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'f42dc54f7903f3e48ab8c3ac8af0d57039753cf6', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
81
+ return (h(Host, { key: '85b2fe2739f6ac3c55939d3cb9c87fc404413e7f', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: 'e46be8b9cb4898c9b676ee67f0750bb654bda953', class: "s-user-settings-section" }, h("salla-list-tile", { key: '48f81d5a9b511c2a8baabab2aab6ad3dcfb98370' }, h("div", { key: '9009c4d612aea7e7a6834b90f38d03d8c95bcc84', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '03f209e6e1e1adbdb130f9b80aed30f0618dd58c', innerHTML: UserCancel })), h("div", { key: 'fb02ca2387806135ac3f074f0a9f30ce4bb325ca', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '1ddbd1144a59745bf26f4650eb5d050a34d42e8f', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '0ff6163a407a53ff100c8d3235212c167dbb006a', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '03b817a0bea880c9a2e056d4d8f0fb737dc0e5da', class: "s-toggle" }, h("input", { key: 'fcb56427c6d1ae503abdc768358e9ecfa9139dac', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ff312279ede50b86446d1305217053942d05a603', class: "s-toggle-switcher" }))))), h("div", { key: '08cf0045a6f96ae7046d9a7c640e53a5b2cec7dc', class: "s-user-settings-section" }, h("salla-list-tile", { key: '1ccbcd93cf4cef91693603b5b05dbc4f3b85dc65' }, h("div", { key: 'bf5270f2d2cae798463ab9516c11321e96c461ff', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '3bc3927296faa253a8b91710049eca3372fb24aa', innerHTML: Bullhorn })), h("div", { key: '60ddca373590545a7fd03498e4ff7306a23b05a9', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '874e81d5e4727160a85bb3381fdfadcd65e774c0', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '6d2aacf7a72c4d25163913eccbb0a3e94595ec75', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'cf58459624592b34083afe61a0afc29dea03864e', class: "s-toggle" }, h("input", { key: 'b854ce4ca8224c8200623aad0dea4c659d89dee1', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '785a5765e36056629a23ca53e48715f91c14ee1f', class: "s-toggle-switcher" }))))), h("div", { key: '9f58724a8d748809b39874efaa861643a78076eb', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '12a69027f2822b6fa1e8fb641278932fc2206335' }, h("div", { key: '679eec74598612167c77443e5f6977991b333fd7', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '0263f8f31ad3e4ca60f2bb4bae910c143f2d36a8', innerHTML: UserOff })), h("div", { key: '6c0c17dfbcbb48ae3882b07b58fb0d1245a28cdb', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '07389c3b86b3d8e821b8b9c33cf43de1ee6527db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: 'e98736162d465c0717550eb8231b120acfafc4f6', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'd29c5023b3a35f95c94a06dc87f0e2504b3a6390', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '6f23ca61fe62de261e7d2f616a4d5bf13fba1577', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '89073dfc15d4a1349618180c776968012e843556', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'f464a56ab783c4ddd51cc40e4d4dbf2f4ae21be2', class: "s-user-settings-confirmation" }, h("div", { key: 'e9921faaf8718ba51937006360b11d409bde4e05', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '4a71df323e6fa2b86cb85e77af438a51e9c1c5a9', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '156249d17bdcc25b7c586af416001ec60e8b0f5b', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'acbe44c04f77f8ccdcaeb90bfb731de399f88fc7', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
82
82
  }
83
83
  };
84
84
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -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-DYymy2t0.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DcD0Zbyk.js';
5
5
  import { M as MailIcon } from './mail-DmgxDvXL.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-DYymy2t0.js';
4
+ import { r as registerInstance, h, H as Host } from './index-DcD0Zbyk.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