@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
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  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%}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var gift = require('./gift-CJ-3Yw_x.js');
8
8
 
9
9
  const sallaLoyaltyProgramCss = "";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var star2 = require('./star2-R146a27p.js');
8
8
  var cancel = require('./cancel-De6vslRA.js');
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var cancel = require('./cancel-De6vslRA.js');
8
8
 
9
9
  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}}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaMenuCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaMetadataCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaMultipleBundleProductCartCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaMultipleBundleProductCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaNotificationsCss = "";
9
9
 
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
7
- var Helper = require('./Helper-DHRnzcFm.js');
6
+ var index = require('./index-DaB0o62I.js');
7
+ var Helper = require('./Helper-CU4Xuiki.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
10
10
  const sallaNotificationsCss = "";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var specialDiscount = require('./special-discount-DC2oXurL.js');
8
8
 
9
9
  var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -80,14 +80,27 @@ const SallaOfferModal = class {
80
80
  this.productID = product_id;
81
81
  //TODO:: make sure there is only one offer
82
82
  this.hasError = false;
83
- this.modal.open();
83
+ this.modal.loading(); // Reset loading state for subsequent opens
84
84
  return await salla.api.withoutNotifier(() => salla.product.offers(product_id))
85
- .then(response => this.showOffer(response.data[0]))
85
+ .then(response => {
86
+ // Check if there are offers before opening the modal
87
+ if (!response.data || !response.data.length) {
88
+ return; // Don't open modal if no offers
89
+ }
90
+ this.modal.open();
91
+ this.showOffer(response.data[0]);
92
+ })
86
93
  .catch(e => {
87
94
  this.hasError = true;
88
95
  this.errorMessage = e.response?.data?.error?.message || e.response?.data;
96
+ this.modal.open(); // Open modal to show error
89
97
  })
90
- .finally(() => setTimeout(() => this.modal.stopLoading(), 1000));
98
+ .finally(() => {
99
+ // Only stop loading if modal was opened (either for offers or errors)
100
+ if (this.modal.visible) {
101
+ setTimeout(() => this.modal.stopLoading(), 1000);
102
+ }
103
+ });
91
104
  }
92
105
  /**
93
106
  * Show offer details
@@ -192,7 +205,7 @@ const SallaOfferModal = class {
192
205
  // '</div>';
193
206
  // }
194
207
  render() {
195
- return index.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 : ''}` }, index.h("div", { key: 'f44a915307bdc059c937d60a79a1c22a59957928', slot: 'loading' }, index.h("div", { key: '7b4b6f9572a2893aa5353a5ba2d4d62a2a5d8742', class: "s-offer-modal-skeleton" }, index.h("div", { key: 'a6b2f782cd643dc322e3f3c29a596a44fc9b1ace', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'a745dc619995820ac3a3bb9169b8a25cbceed9ea', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '7d54b0aaa14742f4dfef0e2b26d48eb24f1661c5', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '042349f3c34308d070f36c30ac942935da5afebe', height: '10px', width: '30%' })), index.h("div", { key: '691f32282147054b2dd76d1e324ddd172214cbbd', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: Cart2 }))))), index.h("div", { key: '97cbe8b3ca1c8dde39a2c33995116a7a5d088594', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: 'c2f5d9d2e212e0383f6b4d159f1c9ce52c9064b7', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'c64ed16e51a4c9f302f915c025473a42d69d4490', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
208
+ return index.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 : ''}` }, index.h("div", { key: 'd467615c5aaefc38cec4e40e4e5a7282466937d3', slot: 'loading' }, index.h("div", { key: 'ff17d657a94dcfe8d744e1317d8f73cab6063d11', class: "s-offer-modal-skeleton" }, index.h("div", { key: '81bf28f2785c0beb1ef1d4997ce064983e2211ec', class: "s-offer-modal-skeleton-header" }, index.h("salla-skeleton", { key: 'acd8aa8be556821b4039d1b5fb6e46ef4155ac67', type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { key: '0c6855f5423a5e5bf1caf54da4f608b95b7d3f08', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: 'e313bac8052684ede353852821a51befb73f52b7', height: '10px', width: '30%' })), index.h("div", { key: '4c6a675e9c07e8e2986debd8dbecc346890ce0ca', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => index.h("div", { class: "s-offer-modal-skeleton-item" }, index.h("salla-skeleton", { height: '9rem' }), index.h("div", { class: "s-offer-modal-skeleton-item-title" }, index.h("salla-skeleton", { height: '15px', width: '100%' })), index.h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, index.h("salla-skeleton", { height: '9px', width: '50%' }), index.h("div", { innerHTML: Cart2 }))))), index.h("div", { key: '226951e15be9aede559c4d24ba6f6690fac80e13', class: "s-offer-modal-skeleton-footer" }, index.h("salla-skeleton", { key: '86ae2c54c01b3e58fd31729bc6d263dfa078f7ba', height: '15px', width: '50%' }), index.h("salla-skeleton", { key: '32f30f4f5bb11405901359267ab6311604f352ed', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
196
209
  ? [index.h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: specialDiscount.SpecialDiscountIcon }), this.getOfferContent(), index.h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
197
210
  index.h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
198
211
  : '', index.h("label", { class: "s-offer-modal-remember-label" }, index.h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var PageType;
9
9
  (function (PageType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaOrderDetailsMultipleBundleProductCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var copyIcon = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaOrderDetailsCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var check = require('./check-x3w3-gpj.js');
8
8
 
9
9
  var iconFileArchive = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaOrderTotalsCardCss = ":host{display:block}";
9
9
 
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
7
- var Helper = require('./Helper-DHRnzcFm.js');
6
+ var index = require('./index-DaB0o62I.js');
7
+ var Helper = require('./Helper-CU4Xuiki.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
10
10
  const sallaOrdersCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaPaymentsCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var Inbox = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var arrowLeft = require('./arrow-left-xSEmRpp6.js');
8
8
 
9
9
  var arrowRight = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -3,10 +3,10 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
9
- var Helper = require('./Helper-DHRnzcFm.js');
9
+ var Helper = require('./Helper-CU4Xuiki.js');
10
10
 
11
11
  const sallaProductsListCss = "";
12
12
 
@@ -224,6 +224,11 @@ const SallaProductsList = class {
224
224
  sessionStorage.setItem(this.lastViewedProductKey, product.id);
225
225
  }
226
226
  }
227
+ // Save source when add-to-cart button is clicked
228
+ const addBtn = target.closest('salla-add-product-button');
229
+ if (addBtn) {
230
+ Helper.Helper.saveAddToCartSource(this.getSource());
231
+ }
227
232
  });
228
233
  return productCard;
229
234
  }
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
7
- var Helper = require('./Helper-DHRnzcFm.js');
6
+ var index = require('./index-DaB0o62I.js');
7
+ var Helper = require('./Helper-CU4Xuiki.js');
8
8
  require('./anime.es-BqW8JHZi.js');
9
9
 
10
10
  const sallaProductsSliderCss = "";
@@ -80,7 +80,15 @@ const SallaProductsSlider = class {
80
80
  //todo:: find a better way to handle this request
81
81
  const isLandingPage = this.getSource() === 'landing-page';
82
82
  isLandingPage && (product.url = '');
83
- const handleClick = isLandingPage ? undefined : () => Helper.Helper.saveProductSource(this.getSource());
83
+ const handleClick = isLandingPage ? undefined : (event) => {
84
+ const target = event.target;
85
+ if (target.closest('salla-add-product-button')) {
86
+ Helper.Helper.saveAddToCartSource(this.getSource());
87
+ }
88
+ else {
89
+ Helper.Helper.saveProductSource(this.getSource());
90
+ }
91
+ };
84
92
  if (this.hasCustomComponent && this.productCardComponent.toLowerCase() == 'custom-salla-product-card') {
85
93
  return index.h("div", { class: "s-products-slider-card", onClick: handleClick }, index.h("custom-salla-product-card", { product: product, source: this.getSource(), "source-value": this.getSourceValue() }));
86
94
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaProgressBarCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var mail = require('./mail-CO8cFZH7.js');
8
8
  var cancel = require('./cancel-De6vslRA.js');
9
9
 
@@ -3,10 +3,10 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var star = require('./star-DGcH7Yso.js');
8
8
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
9
- var Helper = require('./Helper-DHRnzcFm.js');
9
+ var Helper = require('./Helper-CU4Xuiki.js');
10
10
  var image = require('./image-BoZ6Hums.js');
11
11
  var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
12
12
  var mail = require('./mail-CO8cFZH7.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -169,7 +169,8 @@ const SallaScopees = class {
169
169
  this.placeholderContent()
170
170
  : this.mode === ModeType.DEFAULT ? this.defaultContent() : this.availabilityContent())])));
171
171
  }
172
- componentDidLoad() {
172
+ async componentDidLoad() {
173
+ await Salla.hooks.registerComponent('salla-scopes', this);
173
174
  if (!this.isOpenedBefore && this.selection == 'mandatory') {
174
175
  this.open();
175
176
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
- var Helper = require('./Helper-DHRnzcFm.js');
8
+ var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
10
10
 
11
11
  const sallaSearchCss = "";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
9
  var mail = require('./mail-CO8cFZH7.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,13 +3,17 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
- 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%)}";
8
+ 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}";
9
9
 
10
10
  const SallaTooltip = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
+ /**
14
+ * The theme of the tooltip (default, dark)
15
+ */
16
+ this.theme = 'default';
13
17
  this.show = false;
14
18
  this.targetElement = null;
15
19
  }
@@ -28,7 +32,8 @@ const SallaTooltip = class {
28
32
  this.targetElement = document.getElementById(this.targetId);
29
33
  }
30
34
  render() {
31
- return (index.h("div", { key: 'fed457c496e7926ded53c47e1f6f7783eb9da5a0', class: "s-tooltip-container" }, index.h("slot", { key: 'd061264ee544bb9f4ca7ec3aa03f54b84c8af1fd' }), this.show && index.h("div", { key: '5d4a158dce0b562cb6e3c9bc732f47dcb96c182a', class: "s-tooltip-item" }, this.text)));
35
+ const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
36
+ return (index.h("div", { key: '2c7bc2a1100ae31bb86f278c31b540f077384376', class: "s-tooltip-container" }, index.h("div", { key: '8869153f4eea6404d5ba8666e26b6d0c23cd4e76', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
32
37
  }
33
38
  get el() { return index.getElement(this); }
34
39
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -80,7 +80,7 @@ const SallaUserSettings = class {
80
80
  await salla.profile.delete().finally(() => this.confirmationModal.close());
81
81
  }
82
82
  render() {
83
- return (index.h(index.Host, { key: '1a6622794c68aa483d9a2526d7c9568619145168', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: '4188aabfd44edb57365f5a2d1c0910f5ec3cd447', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '9f9ccbb08d666a13bf19895349a17f84fbdd3fc1' }, index.h("div", { key: '85426ad3140db951064c29c988badc23447a238d', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'd1a386387320cf907e4645240cace32ac27a1e5b', innerHTML: UserCancel })), index.h("div", { key: '1310d3547da0c2dd23e254eaf1b22f1b54956ef2', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '639ef8121549e9c119def1c8012b42647249df2c', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: 'aa8d60ad8c61d682e2114471e6168609bb4e9cb0', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '9d8d52ec4bdfb2032649ae37823070ea0902cb9d', class: "s-toggle" }, index.h("input", { key: 'f263da0f32ee2682bf442253980fe68da933cb06', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: '058e908fcb2a61a239ff5ae67adaa290553feb0a', class: "s-toggle-switcher" }))))), index.h("div", { key: '2e314b366093f06ebc8e583c17d3f2f2125cd2e7', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '5e2fb8520042ccbd4301b20046369f65fb292a49' }, index.h("div", { key: '25918c6b5402504a0683f2f6931b58e3663ba4eb', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '0d24d9ecb8f7d48d1dba9eaebaad8093210f0a57', innerHTML: Bullhorn })), index.h("div", { key: 'e212afc7b1ad19e0c4976e5686bc51a847e94d61', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: '3f4f72fe869f7cd6f4b4df870e6af8bd1cc32088', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: '6929527d156f6da1f9ca61be60b756621b7fb321', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '1f3f3c77b25f602f3a4f461da321df2bcee2a956', class: "s-toggle" }, index.h("input", { key: 'afd4616efa19cdf04e32fd785af72a6c96ef980c', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: 'ef55c0480c58c3a77b4c28980c34b89197e2c84c', class: "s-toggle-switcher" }))))), index.h("div", { key: '7fc42b2d9ee0c58fd210b6704f96de07cf58c703', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '35bc4e485e78f57cce3fa9d324578997bf5b5346' }, index.h("div", { key: 'd2643402a5f414beb388622d96352600a58e7788', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '90a634d2ff464a26f7a09df39cf0cce6f7a1ce87', innerHTML: UserOff })), index.h("div", { key: '3376df9d4baee75e502df2b8265328910f692708', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '1452beb1f275f905b7a1ecb7e76a4223700f7d03', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '28bc808fbd51274f587abee141f67242100aea03', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'c54e8db52d35e9ab62e2616a0dfb3a10417fcb80', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: 'a1d52fd66ed991f8411ca17b16e37d21893a2f06', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '9119095941bd2a579b27c18db025238ca652bd6b', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: '3194c2236470a7da32bc065218162da80ea7713c', class: "s-user-settings-confirmation" }, index.h("div", { key: '718f43edf4e6a22ed23e0edaccee07fd3fa46e13', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: 'a87fcd03f6d97afc26f8410faacfcbbbc81cd8bb', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: '366186ea98a351d1f0a1f6b3dc2eeddc18e46a33', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: 'f42dc54f7903f3e48ab8c3ac8af0d57039753cf6', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
83
+ return (index.h(index.Host, { key: '85b2fe2739f6ac3c55939d3cb9c87fc404413e7f', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: 'e46be8b9cb4898c9b676ee67f0750bb654bda953', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '48f81d5a9b511c2a8baabab2aab6ad3dcfb98370' }, index.h("div", { key: '9009c4d612aea7e7a6834b90f38d03d8c95bcc84', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '03f209e6e1e1adbdb130f9b80aed30f0618dd58c', innerHTML: UserCancel })), index.h("div", { key: 'fb02ca2387806135ac3f074f0a9f30ce4bb325ca', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '1ddbd1144a59745bf26f4650eb5d050a34d42e8f', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '0ff6163a407a53ff100c8d3235212c167dbb006a', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '03b817a0bea880c9a2e056d4d8f0fb737dc0e5da', class: "s-toggle" }, index.h("input", { key: 'fcb56427c6d1ae503abdc768358e9ecfa9139dac', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: 'ff312279ede50b86446d1305217053942d05a603', class: "s-toggle-switcher" }))))), index.h("div", { key: '08cf0045a6f96ae7046d9a7c640e53a5b2cec7dc', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '1ccbcd93cf4cef91693603b5b05dbc4f3b85dc65' }, index.h("div", { key: 'bf5270f2d2cae798463ab9516c11321e96c461ff', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '3bc3927296faa253a8b91710049eca3372fb24aa', innerHTML: Bullhorn })), index.h("div", { key: '60ddca373590545a7fd03498e4ff7306a23b05a9', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: '874e81d5e4727160a85bb3381fdfadcd65e774c0', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: '6d2aacf7a72c4d25163913eccbb0a3e94595ec75', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: 'cf58459624592b34083afe61a0afc29dea03864e', class: "s-toggle" }, index.h("input", { key: 'b854ce4ca8224c8200623aad0dea4c659d89dee1', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '785a5765e36056629a23ca53e48715f91c14ee1f', class: "s-toggle-switcher" }))))), index.h("div", { key: '9f58724a8d748809b39874efaa861643a78076eb', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '12a69027f2822b6fa1e8fb641278932fc2206335' }, index.h("div", { key: '679eec74598612167c77443e5f6977991b333fd7', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '0263f8f31ad3e4ca60f2bb4bae910c143f2d36a8', innerHTML: UserOff })), index.h("div", { key: '6c0c17dfbcbb48ae3882b07b58fb0d1245a28cdb', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '07389c3b86b3d8e821b8b9c33cf43de1ee6527db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: 'e98736162d465c0717550eb8231b120acfafc4f6', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'd29c5023b3a35f95c94a06dc87f0e2504b3a6390', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: '6f23ca61fe62de261e7d2f616a4d5bf13fba1577', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '89073dfc15d4a1349618180c776968012e843556', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'f464a56ab783c4ddd51cc40e4d4dbf2f4ae21be2', class: "s-user-settings-confirmation" }, index.h("div", { key: 'e9921faaf8718ba51937006360b11d409bde4e05', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: '4a71df323e6fa2b86cb85e77af438a51e9c1c5a9', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: '156249d17bdcc25b7c586af416001ec60e8b0f5b', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: 'acbe44c04f77f8ccdcaeb90bfb731de399f88fc7', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
84
84
  }
85
85
  };
86
86
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
  var mail = require('./mail-CO8cFZH7.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-8uU_89ND.js');
6
+ var index = require('./index-DaB0o62I.js');
7
7
 
8
8
  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}";
9
9