@salla.sa/twilight-components 2.14.380 → 2.14.382

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 (292) hide show
  1. package/dist/cjs/{filepond-OhCwnn9l.js → filepond-g22JhArE.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-BjJJ863B.js → filepond-plugin-file-poster-BLHE3V1F.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-D5nJzX3z.js → filepond-plugin-file-validate-size-Cv69mp4T.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-D13Iiqqr.js → filepond-plugin-file-validate-type-UlN6zKxS.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-ClQqTYlQ.js → filepond-plugin-image-edit-V6CWtRrp.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BTOdKQOQ.js → filepond-plugin-image-exif-orientation-Bdel8-Be.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-Dsci6Rtb.js → filepond-plugin-image-preview-BbyhVd2-.js} +1 -1
  8. package/dist/cjs/{index-CHRvLWS8.js → index-CgOy8iIV.js} +2 -2
  9. package/dist/cjs/{index-DH1vX5Bt.js → index-D6_fzuPF.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +4 -2
  13. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +5 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +8 -2
  17. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  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 +1 -1
  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 +5 -1
  27. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-hook.cjs.entry.js +6 -2
  31. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  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 +144 -43
  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 +6 -4
  43. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +10 -6
  44. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  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 +2 -2
  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 +1 -1
  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 +1 -1
  60. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  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 +5 -3
  64. package/dist/cjs/salla-scopes.cjs.entry.js +5 -1
  65. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  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 +1 -1
  73. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-user-menu.cjs.entry.js +4 -4
  75. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  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-BZ7Tbldp.js → vanilla-picker-CBkQi6yD.js} +1 -1
  81. package/dist/collection/components/salla-accordion/salla-accordion.js +5 -3
  82. package/dist/collection/components/salla-advertisement/salla-advertisement.js +4 -0
  83. package/dist/collection/components/salla-app-install-alert/salla-app-install-alert.js +7 -1
  84. package/dist/collection/components/salla-custom-fields/salla-custom-fields.js +12 -8
  85. package/dist/collection/components/salla-hook/salla-hook.js +12 -5
  86. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +165 -47
  87. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +3 -2
  88. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +4 -3
  89. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +12 -9
  90. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +7 -6
  91. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +2 -2
  92. package/dist/collection/components/salla-order-details/salla-order-details.js +2 -2
  93. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +4 -2
  94. package/dist/collection/components/salla-review-card/salla-review-card.js +2 -2
  95. package/dist/collection/components/salla-scopes/salla-scopes.js +4 -0
  96. package/dist/collection/components/salla-user-menu/salla-user-menu.js +7 -7
  97. package/dist/components/index.js +2 -2
  98. package/dist/components/salla-accordion2.js +3 -1
  99. package/dist/components/salla-advertisement.js +4 -0
  100. package/dist/components/salla-app-install-alert.js +7 -1
  101. package/dist/components/salla-custom-fields.js +4 -0
  102. package/dist/components/salla-hook.js +5 -1
  103. package/dist/components/salla-localization-modal.js +144 -43
  104. package/dist/components/salla-multiple-bundle-product-cart2.js +2 -1
  105. package/dist/components/salla-multiple-bundle-product-details2.js +3 -2
  106. package/dist/components/salla-multiple-bundle-product-options-modal2.js +7 -4
  107. package/dist/components/salla-multiple-bundle-product-slider2.js +2 -1
  108. package/dist/components/salla-multiple-bundle-product.js +1 -1
  109. package/dist/components/salla-order-details.js +1 -1
  110. package/dist/components/salla-rating-modal.js +4 -2
  111. package/dist/components/salla-review-card2.js +1 -1
  112. package/dist/components/salla-scopes.js +4 -0
  113. package/dist/components/salla-user-menu.js +4 -4
  114. package/dist/esm/{filepond-BgLkbAlS.js → filepond-R6QOZ4Ng.js} +1 -1
  115. package/dist/esm/{filepond-plugin-file-poster-s4m5zTQ5.js → filepond-plugin-file-poster-CgZsOj29.js} +1 -1
  116. package/dist/esm/{filepond-plugin-file-validate-size-EfVTIVeK.js → filepond-plugin-file-validate-size-CYlCC1qn.js} +1 -1
  117. package/dist/esm/{filepond-plugin-file-validate-type-Chg0gvtx.js → filepond-plugin-file-validate-type-D-twSapC.js} +1 -1
  118. package/dist/esm/{filepond-plugin-image-edit-DvIjoDsi.js → filepond-plugin-image-edit-C0lS-TeI.js} +1 -1
  119. package/dist/esm/{filepond-plugin-image-exif-orientation-kE8T9OkA.js → filepond-plugin-image-exif-orientation-g6QLr9rh.js} +1 -1
  120. package/dist/esm/{filepond-plugin-image-preview-BJAUCA1P.js → filepond-plugin-image-preview-dugWUsPI.js} +1 -1
  121. package/dist/esm/{index-eEimxoFN.js → index-B-fHbvwg.js} +2 -2
  122. package/dist/esm/{index-BAJAa57P.js → index-CTaou2hZ.js} +1 -1
  123. package/dist/esm/loader.js +3 -3
  124. package/dist/esm/salla-accordion-body_3.entry.js +1 -1
  125. package/dist/esm/salla-accordion_6.entry.js +4 -2
  126. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  127. package/dist/esm/salla-advertisement.entry.js +5 -1
  128. package/dist/esm/salla-alert_2.entry.js +1 -1
  129. package/dist/esm/salla-app-install-alert.entry.js +8 -2
  130. package/dist/esm/salla-apps-icons.entry.js +1 -1
  131. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  132. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  133. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  134. package/dist/esm/salla-comment-form_8.entry.js +2 -2
  135. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  136. package/dist/esm/salla-contacts.entry.js +1 -1
  137. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  138. package/dist/esm/salla-count-down_2.entry.js +1 -1
  139. package/dist/esm/salla-custom-fields.entry.js +5 -1
  140. package/dist/esm/salla-filters-widget.entry.js +1 -1
  141. package/dist/esm/salla-filters.entry.js +1 -1
  142. package/dist/esm/salla-gifting.entry.js +1 -1
  143. package/dist/esm/salla-hook.entry.js +6 -2
  144. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  145. package/dist/esm/salla-installment.entry.js +1 -1
  146. package/dist/esm/salla-list-tile.entry.js +1 -1
  147. package/dist/esm/salla-localization-modal.entry.js +144 -43
  148. package/dist/esm/salla-login-modal.entry.js +1 -1
  149. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  150. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  151. package/dist/esm/salla-loyalty.entry.js +1 -1
  152. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  153. package/dist/esm/salla-menu.entry.js +1 -1
  154. package/dist/esm/salla-metadata.entry.js +1 -1
  155. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +6 -4
  156. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +10 -6
  157. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  158. package/dist/esm/salla-notification-item.entry.js +1 -1
  159. package/dist/esm/salla-notifications.entry.js +1 -1
  160. package/dist/esm/salla-offer-modal.entry.js +1 -1
  161. package/dist/esm/salla-offer.entry.js +1 -1
  162. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  163. package/dist/esm/salla-order-details-options.entry.js +1 -1
  164. package/dist/esm/salla-order-details.entry.js +2 -2
  165. package/dist/esm/salla-order-summary.entry.js +1 -1
  166. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  167. package/dist/esm/salla-orders.entry.js +1 -1
  168. package/dist/esm/salla-payments.entry.js +1 -1
  169. package/dist/esm/salla-placeholder.entry.js +1 -1
  170. package/dist/esm/salla-price-range.entry.js +1 -1
  171. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  172. package/dist/esm/salla-products-list.entry.js +1 -1
  173. package/dist/esm/salla-products-slider.entry.js +1 -1
  174. package/dist/esm/salla-progress-bar.entry.js +1 -1
  175. package/dist/esm/salla-quick-order.entry.js +1 -1
  176. package/dist/esm/salla-rating-modal.entry.js +5 -3
  177. package/dist/esm/salla-scopes.entry.js +5 -1
  178. package/dist/esm/salla-search.entry.js +1 -1
  179. package/dist/esm/salla-skeleton.entry.js +1 -1
  180. package/dist/esm/salla-slider.entry.js +1 -1
  181. package/dist/esm/salla-social-share.entry.js +1 -1
  182. package/dist/esm/salla-social.entry.js +1 -1
  183. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  184. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  185. package/dist/esm/salla-tooltip.entry.js +1 -1
  186. package/dist/esm/salla-trust-badges.entry.js +1 -1
  187. package/dist/esm/salla-user-menu.entry.js +4 -4
  188. package/dist/esm/salla-user-profile.entry.js +1 -1
  189. package/dist/esm/salla-user-settings.entry.js +1 -1
  190. package/dist/esm/salla-verify.entry.js +1 -1
  191. package/dist/esm/salla-wallet.entry.js +1 -1
  192. package/dist/esm/twilight.js +3 -3
  193. package/dist/esm/{vanilla-picker-CQfoqkgB.js → vanilla-picker-Duw3dTDS.js} +1 -1
  194. package/dist/twilight/{p-4b18c6b6.entry.js → p-06f96f06.entry.js} +1 -1
  195. package/dist/twilight/p-0c08df8f.entry.js +4 -0
  196. package/dist/twilight/{p-c4a32c32.entry.js → p-14142359.entry.js} +1 -1
  197. package/dist/twilight/{p-dd194e28.entry.js → p-19f147de.entry.js} +1 -1
  198. package/dist/twilight/{p-174f26e3.entry.js → p-1af81775.entry.js} +1 -1
  199. package/dist/twilight/{p-a5f45964.entry.js → p-1c2d5328.entry.js} +1 -1
  200. package/dist/twilight/{p-4a09432e.entry.js → p-1f52af03.entry.js} +1 -1
  201. package/dist/twilight/{p-d9ea5bc0.entry.js → p-2418ce98.entry.js} +1 -1
  202. package/dist/twilight/{p-3e3ef749.entry.js → p-2a66eb4d.entry.js} +1 -1
  203. package/dist/twilight/{p-b318a0ba.entry.js → p-2af6a330.entry.js} +1 -1
  204. package/dist/twilight/{p-b8c8437b.entry.js → p-2b2fe14f.entry.js} +1 -1
  205. package/dist/twilight/{p-8a50b0ec.entry.js → p-2bc915b6.entry.js} +1 -1
  206. package/dist/twilight/{p-4429147a.entry.js → p-365c44c2.entry.js} +1 -1
  207. package/dist/twilight/{p-34f54667.entry.js → p-389cd70d.entry.js} +1 -1
  208. package/dist/twilight/{p-7f2a4dc0.entry.js → p-3a5f3ce7.entry.js} +1 -1
  209. package/dist/twilight/{p-0eb5078d.entry.js → p-3a9331bc.entry.js} +1 -1
  210. package/dist/twilight/{p-1cc494ac.entry.js → p-421937b6.entry.js} +1 -1
  211. package/dist/twilight/{p-0af1c84b.entry.js → p-4aae95f0.entry.js} +1 -1
  212. package/dist/twilight/{p-14e34d12.entry.js → p-4b294540.entry.js} +1 -1
  213. package/dist/twilight/{p-1cc348bd.entry.js → p-53d39d70.entry.js} +1 -1
  214. package/dist/twilight/{p-6fca74f4.entry.js → p-5579022f.entry.js} +1 -1
  215. package/dist/twilight/{p-38577abd.entry.js → p-55a8aed2.entry.js} +1 -1
  216. package/dist/twilight/{p-d1d96039.entry.js → p-58a7329c.entry.js} +1 -1
  217. package/dist/twilight/{p-0edc4cd6.entry.js → p-58f7fea9.entry.js} +1 -1
  218. package/dist/twilight/{p-ca322deb.entry.js → p-5d39792e.entry.js} +1 -1
  219. package/dist/twilight/p-5e825370.entry.js +4 -0
  220. package/dist/twilight/p-5f5d4e1c.entry.js +4 -0
  221. package/dist/twilight/{p-50b948f1.entry.js → p-60aeb2ce.entry.js} +1 -1
  222. package/dist/twilight/{p-2553c102.entry.js → p-60c2abb3.entry.js} +1 -1
  223. package/dist/twilight/{p-8c083d22.entry.js → p-66831f23.entry.js} +1 -1
  224. package/dist/twilight/p-6ef9195a.entry.js +4 -0
  225. package/dist/twilight/{p-eb426d96.entry.js → p-6f81c83d.entry.js} +1 -1
  226. package/dist/twilight/{p-645edb0f.entry.js → p-723a816b.entry.js} +1 -1
  227. package/dist/twilight/{p-2169fb7d.entry.js → p-77332e8d.entry.js} +1 -1
  228. package/dist/twilight/{p-f7811b2e.entry.js → p-7c0c0b78.entry.js} +1 -1
  229. package/dist/twilight/{p-8948444e.entry.js → p-88084123.entry.js} +1 -1
  230. package/dist/twilight/{p-309b6cfe.entry.js → p-8ac939dc.entry.js} +1 -1
  231. package/dist/twilight/{p-c3015089.entry.js → p-905174a5.entry.js} +1 -1
  232. package/dist/twilight/{p-52404ae1.entry.js → p-95a539e9.entry.js} +1 -1
  233. package/dist/twilight/{p-d042041b.entry.js → p-95c952d0.entry.js} +1 -1
  234. package/dist/twilight/{p-d595175e.entry.js → p-972f9d4f.entry.js} +1 -1
  235. package/dist/twilight/{p-642dbfd9.entry.js → p-9b1f66de.entry.js} +1 -1
  236. package/dist/twilight/{p-424d54df.entry.js → p-9ec325af.entry.js} +1 -1
  237. package/dist/twilight/{p-8cdc7360.entry.js → p-9fa0db12.entry.js} +1 -1
  238. package/dist/twilight/{p-eEimxoFN.js → p-B-fHbvwg.js} +1 -1
  239. package/dist/twilight/{p-CNaIwBPC.js → p-B2Gco6bY.js} +1 -1
  240. package/dist/twilight/{p-C1cZE4BE.js → p-B7yaZRKc.js} +1 -1
  241. package/dist/twilight/{p-BA4uXDey.js → p-BX5ozk-b.js} +1 -1
  242. package/dist/twilight/p-BZ25IjRt.js +9 -0
  243. package/dist/twilight/{p-s1UoXHVX.js → p-D-4ztIM-.js} +1 -1
  244. package/dist/twilight/{p-DA2DReRj.js → p-DE1V8UWA.js} +1 -1
  245. package/dist/twilight/{p-CeE1UK0j.js → p-Dl6-KoXs.js} +1 -1
  246. package/dist/twilight/{p-_Nybob4I.js → p-_Gk6BpnQ.js} +1 -1
  247. package/dist/twilight/{p-a8be9bd2.entry.js → p-a3ad0b94.entry.js} +1 -1
  248. package/dist/twilight/{p-2ca7ed43.entry.js → p-a543b807.entry.js} +1 -1
  249. package/dist/twilight/{p-4937d0bd.entry.js → p-a5e3ef61.entry.js} +1 -1
  250. package/dist/twilight/{p-62713df9.entry.js → p-aa6f8402.entry.js} +1 -1
  251. package/dist/twilight/{p-f3b11c5e.entry.js → p-b053a827.entry.js} +1 -1
  252. package/dist/twilight/{p-1b414a65.entry.js → p-b673072d.entry.js} +1 -1
  253. package/dist/twilight/{p-1062e8b0.entry.js → p-bf17e59a.entry.js} +1 -1
  254. package/dist/twilight/{p-f65b1cc4.entry.js → p-c6282352.entry.js} +1 -1
  255. package/dist/twilight/{p-73a0f916.entry.js → p-c74196cf.entry.js} +1 -1
  256. package/dist/twilight/{p-537ea6c4.entry.js → p-c77ccff5.entry.js} +1 -1
  257. package/dist/twilight/{p-914fe9d5.entry.js → p-c7e947ae.entry.js} +1 -1
  258. package/dist/twilight/{p-1f256c22.entry.js → p-cbc1251e.entry.js} +1 -1
  259. package/dist/twilight/{p-ba843446.entry.js → p-cfaf32ba.entry.js} +1 -1
  260. package/dist/twilight/{p-e137375c.entry.js → p-d4213eae.entry.js} +1 -1
  261. package/dist/twilight/{p-f9e74b2d.entry.js → p-d761cf9b.entry.js} +1 -1
  262. package/dist/twilight/{p-0d0e9cc5.entry.js → p-db583811.entry.js} +1 -1
  263. package/dist/twilight/{p-8a40fabd.entry.js → p-dc29cded.entry.js} +1 -1
  264. package/dist/twilight/{p-6d33240d.entry.js → p-e09f5066.entry.js} +1 -1
  265. package/dist/twilight/{p-90a2dde9.entry.js → p-e1ed451f.entry.js} +1 -1
  266. package/dist/twilight/{p-6a0d5bf0.entry.js → p-e3ef352f.entry.js} +1 -1
  267. package/dist/twilight/{p-4b8f5897.entry.js → p-e936f726.entry.js} +1 -1
  268. package/dist/twilight/{p-80956964.entry.js → p-ec62577e.entry.js} +1 -1
  269. package/dist/twilight/{p-e1091287.entry.js → p-fb21368b.entry.js} +1 -1
  270. package/dist/twilight/{p-e3685dec.entry.js → p-fb9e9a71.entry.js} +1 -1
  271. package/dist/twilight/{p-CBclGOrf.js → p-vNDBdK6G.js} +1 -1
  272. package/dist/twilight/twilight.esm.js +1 -1
  273. package/dist/types/components/salla-accordion/salla-accordion.d.ts +2 -0
  274. package/dist/types/components/salla-app-install-alert/salla-app-install-alert.d.ts +1 -0
  275. package/dist/types/components/salla-custom-fields/salla-custom-fields.d.ts +8 -0
  276. package/dist/types/components/salla-hook/salla-hook.d.ts +5 -0
  277. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +14 -3
  278. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.d.ts +1 -0
  279. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.d.ts +1 -0
  280. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.d.ts +5 -0
  281. package/dist/types/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.d.ts +5 -0
  282. package/dist/types/components/salla-multiple-bundle-product/salla-multiple-bundle-product.d.ts +1 -0
  283. package/dist/types/components/salla-order-details/salla-order-details.d.ts +1 -0
  284. package/dist/types/components/salla-review-card/salla-review-card.d.ts +1 -0
  285. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +2 -2
  286. package/dist/types/components.d.ts +120 -14
  287. package/package.json +5 -5
  288. package/dist/twilight/p-7ae2abce.entry.js +0 -4
  289. package/dist/twilight/p-C0SN1Hu2.js +0 -9
  290. package/dist/twilight/p-c5b3b222.entry.js +0 -4
  291. package/dist/twilight/p-f1c55b22.entry.js +0 -4
  292. package/dist/twilight/p-f820bb24.entry.js +0 -4
@@ -11,7 +11,9 @@ const SallaAccordion = /*@__PURE__*/ proxyCustomElement(class SallaAccordion ext
11
11
  this.__registerHost();
12
12
  /** Should the accordion be collapsible or not. Default is true. */
13
13
  this.collapsible = true;
14
+ /** Whether the accordion has a border. Default is false. */
14
15
  this.bordered = false;
16
+ /** The size of the accordion elements. */
15
17
  this.size = "md";
16
18
  /** Detect if accordion collapsed or not. */
17
19
  this.collapsed = true;
@@ -40,7 +42,7 @@ const SallaAccordion = /*@__PURE__*/ proxyCustomElement(class SallaAccordion ext
40
42
  }
41
43
  }
42
44
  render() {
43
- return (h(Host, { key: 'ed8e4c0f24fa4462654e94fa46706e892c141351', class: `s-accordion-wrapper ${this.dir} ${this.bordered ? 's-accordion-wrapper-bordered' : ''} ${this.size ? `size-${this.size}` : ''}`, "data-collapsed": this.collapsed.toString() }, h("slot", { key: '1dbda01c073f3018a55ebcf5d8613a82a5dc6b27' })));
45
+ return (h(Host, { key: 'fb12197f13d8836304bfebb14400c79c8c4d31f0', class: `s-accordion-wrapper ${this.dir} ${this.bordered ? 's-accordion-wrapper-bordered' : ''} ${this.size ? `size-${this.size}` : ''}`, "data-collapsed": this.collapsed.toString() }, h("slot", { key: '460e8d7238bf9f014fe0bbb6c0da592c8cb3e15e' })));
44
46
  }
45
47
  get host() { return this; }
46
48
  static get style() { return sallaAccordionCss; }
@@ -79,6 +79,10 @@ const SallaAdvertisement$1 = /*@__PURE__*/ proxyCustomElement(class SallaAdverti
79
79
  */
80
80
  componentWillLoad() {
81
81
  const getData = async () => {
82
+ // * Note: Do not show advertisements or load data in mobile app
83
+ const isMobileApp = salla.config.isMobileApp();
84
+ if (isMobileApp)
85
+ return [];
82
86
  const isPreview = salla.config.isDebug() || salla.helpers.isPreview();
83
87
  // Wait for salla to be ready
84
88
  await new Promise(resolve => salla.onReady(resolve));
@@ -56,8 +56,14 @@ const SallaAppInstallAlert$1 = /*@__PURE__*/ proxyCustomElement(class SallaAppIn
56
56
  this.open = false;
57
57
  }, { once: true });
58
58
  }
59
+ shouldShowAlert() {
60
+ const isMobileApp = salla.config.isMobileApp();
61
+ if (isMobileApp)
62
+ return false;
63
+ return true;
64
+ }
59
65
  render() {
60
- return this.data ? (h(Host, { class: `s-app-install-alert-wrapper ${this.open ? 'open' : ''} ${this.closing ? 'closing' : ''}`, position: this.data.position }, h("div", null, h("img", { src: this.data.icon, width: "58", height: "58", alt: `${salla.config.get('store.name')}` })), h("div", { class: "s-app-install-alert-content" }, h("h2", { class: "s-app-install-alert-title" }, this.data.title), h("p", { class: "s-app-install-alert-sub-title" }, this.data.sub_title, " ", " ", h("a", { href: this.ctaLink, target: "_blank", "aria-label": "download app", class: "s-app-install-alert-cta" }, salla.lang.getWithDefault('blocks.footer.download_app_now', 'حمله الآن')))), h("button", { class: "s-app-install-alert-cancel-button", "aria-label": "close alert", onClick: () => this.closeAlert() }, h("i", { class: "sicon-cancel" })))) : null;
66
+ return this.data && this.shouldShowAlert() ? (h(Host, { class: `s-app-install-alert-wrapper ${this.open ? 'open' : ''} ${this.closing ? 'closing' : ''}`, position: this.data.position }, h("div", null, h("img", { src: this.data.icon, width: "58", height: "58", alt: `${salla.config.get('store.name')}` })), h("div", { class: "s-app-install-alert-content" }, h("h2", { class: "s-app-install-alert-title" }, this.data.title), h("p", { class: "s-app-install-alert-sub-title" }, this.data.sub_title, " ", " ", h("a", { href: this.ctaLink, target: "_blank", "aria-label": "download app", class: "s-app-install-alert-cta" }, salla.lang.getWithDefault('blocks.footer.download_app_now', 'حمله الآن')))), h("button", { class: "s-app-install-alert-cancel-button", "aria-label": "close alert", onClick: () => this.closeAlert() }, h("i", { class: "sicon-cancel" })))) : null;
61
67
  }
62
68
  get host() { return this; }
63
69
  static get style() { return sallaAppInstallAlertCss; }
@@ -15,6 +15,7 @@ const SallaCustomFields$1 = /*@__PURE__*/ proxyCustomElement(class SallaCustomFi
15
15
  this.__registerHost();
16
16
  this.fieldChanged = createEvent(this, "fieldChanged", 7);
17
17
  this.fileUploaded = createEvent(this, "fileUploaded", 7);
18
+ /** Whether the fields can be edited by the user. */
18
19
  this.isEditable = true;
19
20
  this.fieldErrors = {};
20
21
  this.isSubmitting = false;
@@ -28,15 +29,18 @@ const SallaCustomFields$1 = /*@__PURE__*/ proxyCustomElement(class SallaCustomFi
28
29
  get saveButtonText() {
29
30
  return salla.lang.get("common.elements.save");
30
31
  }
32
+ /** Update the displayed fields programmatically. */
31
33
  async setFields(fields) {
32
34
  this.parsedFields = fields;
33
35
  }
36
+ /** Gets the current values of all fields, formatted for submission. */
34
37
  async getFieldValues() {
35
38
  return this.parsedFields?.reduce((values, field) => {
36
39
  values[`custom_fields[${field.id}]`] = field.value;
37
40
  return values;
38
41
  }, {}) || {};
39
42
  }
43
+ /** Validates all required fields and updates the error state. Returns true if valid. */
40
44
  async validateFields() {
41
45
  if (!this.parsedFields)
42
46
  return true;
@@ -9,11 +9,15 @@ const SallaHook$1 = /*@__PURE__*/ proxyCustomElement(class SallaHook extends HTM
9
9
  this.__registerHost();
10
10
  this.__attachShadow();
11
11
  }
12
+ /**
13
+ * Mounts a given HTML element into the hook position.
14
+ * @param element The element to inject.
15
+ */
12
16
  async mount(element) {
13
17
  this.host.before(element);
14
18
  }
15
19
  render() {
16
- return h(Host, { key: '61a0a169011899bd7c2bcc0e1ddd1376da071d1d' });
20
+ return h(Host, { key: 'a887790b6c3fa466e88b0b1c90fda502f3aca812' });
17
21
  }
18
22
  async componentDidLoad() {
19
23
  // Register this component for hooks system, already on it logic to run componentDidLoad trigger
@@ -12,22 +12,89 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
12
12
  constructor() {
13
13
  super();
14
14
  this.__registerHost();
15
- this.translationLoaded = false;
15
+ this.languageNames = {
16
+ "ar": "العربية",
17
+ "en": "English",
18
+ "sq": "shqip",
19
+ "hy": "հայերէն",
20
+ "bg": "български",
21
+ "zh": "汉语",
22
+ "hr": "hrvatski",
23
+ "cs": "čeština",
24
+ "da": "dansk",
25
+ "nl": "dutch",
26
+ "et": "eesti keel",
27
+ "fi": "suomen kieli",
28
+ "fr": "Français",
29
+ "de": "Deutsch",
30
+ "el": "Ελληνικά",
31
+ "hi": "हिन्दी",
32
+ "hu": "magyar",
33
+ //we know it's `id` as ISO 639-1 but we are using `ind` as ISO 639-2 on our system as key to avoid conflicts with `id` attribute
34
+ "ind": "bahasa Indonesia",
35
+ "ga": "Gaeilge",
36
+ "it": "Italiano",
37
+ "ja": "日本語",
38
+ "ko": "한국어",
39
+ "lv": "latviešu",
40
+ "mt": "Maltese",
41
+ "fa": "فارسی",
42
+ "pl": "Polish",
43
+ "pt": "português",
44
+ "ro": "română",
45
+ "ru": "русский",
46
+ "sl": "slovenščina",
47
+ "es": "Español",
48
+ "sv": "svenska",
49
+ "tl": "Tagalog (Filipino)",
50
+ "tr": "Türkçe",
51
+ "uk": "украї́нська",
52
+ "ur": "اُردُو",
53
+ "ms": "Bahasa Malaysia",
54
+ };
55
+ this.currenciesList = {
56
+ SAR: { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" },
57
+ USD: { en: "US Dollar", ar: "دولار أمريكي", symbol: "$" },
58
+ EUR: { en: "Euro", ar: "يورو", symbol: "€" },
59
+ AED: { en: "UAE Dirham", ar: "درهم اماراتي", symbol: "د.إ" },
60
+ KWD: { en: "Kuwaiti Dinar", ar: "دينار كويتي", symbol: "د.ك" },
61
+ BHD: { en: "Bahraini Dinar", ar: "دينار بحريني", symbol: "د.ب" },
62
+ QAR: { en: "Qatari Riyal", ar: "ريال قطري", symbol: "ر.ق" },
63
+ OMR: { en: "Omani Rial", ar: "ريال عماني", symbol: "ر.ع" },
64
+ AUD: { en: "Australian Dollar", ar: "دولار استرالي", symbol: "$" },
65
+ CAD: { en: "Canadian Dollar", ar: "دولار كندي", symbol: "$" },
66
+ CNY: { en: "Renminbi", ar: "رنمينبي", symbol: "¥" },
67
+ EGP: { en: "Egyptian Pound", ar: "جنيه مصري", symbol: "ج.م" },
68
+ GBP: { en: "Pound Sterling", ar: "جنيه استرليني", symbol: "£" },
69
+ IDR: { en: "Indonesian Rupiah", ar: "روبية إندونيسية", symbol: "Rp" },
70
+ INR: { en: "Indian Rupee", ar: "روبية هندية", symbol: "₹" },
71
+ JPY: { en: "Japanese Yen", ar: "ين ياباني", symbol: "¥" },
72
+ MYR: { en: "Malaysian Ringgit", ar: "رينغيت ماليزي", symbol: "RM" },
73
+ PKR: { en: "Pakistani Rupee", ar: "روبية باكستانية", symbol: "Rs." },
74
+ SEK: { en: "Swedish Krona", ar: "كرونة سويدية", symbol: "kr" },
75
+ SGD: { en: "Singapore Dollar", ar: "دولار سنغافوري", symbol: "$" },
76
+ TRY: { en: "Turkish Lira", ar: "ليرة تركية", symbol: "₺" },
77
+ IQD: { en: "Iraqi Dinar", ar: "دينار عراقي", symbol: "د.ع" },
78
+ LBP: { en: "Lebanese Pound", ar: "ليرة لبنانية", symbol: "ل.ل" },
79
+ MRO: { en: "Mauritanian Ouguiya", ar: "أوقية موريتانية", symbol: "UM" },
80
+ SDG: { en: "Sudanese Pound", ar: "جنيه سوداني", symbol: "SDG" },
81
+ SYP: { en: "Syrian Pound", ar: "ليرة سورية", symbol: "ل.س" },
82
+ TND: { en: "Tunisian Dinar", ar: "دينار تونسي", symbol: "د.ت" },
83
+ JOD: { en: "Jordanian Dinar", ar: "دينار أردني", symbol: "JOD" },
84
+ DZD: { en: "Algerian Dinar", ar: "دينار جزائري", symbol: "دج" },
85
+ MAD: { en: "Moroccan Dirham", ar: "درهم مغربي", symbol: "د.م." },
86
+ LYD: { en: "Libyan Dinar", ar: "دينار ليبي", symbol: "LD" },
87
+ YER: { en: "Yemeni Riyal", ar: "ريال يمني", symbol: "ر.ي" }
88
+ };
89
+ //here we will used the currency code instead of the symbol when current language is not arabic
90
+ this.arabicCurrencies = ["SAR", "AED", "KWD", "BHD", "QAR", "OMR", "EGP", "IQD", "LBP", "SYP", "TND", "DZD", "MAD", "YER"];
16
91
  this.languages = [];
17
92
  this.currencies = [];
18
93
  this.hasError = false;
19
94
  /**
20
- * Current language (existing or newly selected)
95
+ * To show the trigger button or not
21
96
  */
22
- this.language = salla.config.get('user.language_code');
23
- /**
24
- * Current currency (existing or newly selected)
25
- */
26
- this.currency = salla.config.get('user.currency_code');
27
- salla.event.on('localization::open', () => this.open());
28
- salla.lang.onLoaded(() => {
29
- this.translationLoaded = true;
30
- });
97
+ this.showTrigger = false;
31
98
  /**
32
99
  * letting developer to insert his own slot like:
33
100
  * <salla-localization>
@@ -38,14 +105,25 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
38
105
  * we made a workaround to pass language & currency attributes, then replace names in rendering
39
106
  */
40
107
  this.languageSlot = this.host.querySelector('[slot="language"]')?.innerHTML || '<label class="s-localization-modal-label" for="lang-{code}"><span>{name}</span></label>';
41
- this.currencySlot = this.host.querySelector('[slot="currency"]')?.innerHTML || '<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{code}</small></label>';
108
+ this.currencySlot = this.host.querySelector('[slot="currency"]')?.innerHTML || '<label class="s-localization-modal-label" for="currency-{code}"><span>{name}</span><small class="s-localization-modal-currency">{symbol}</small></label>';
109
+ }
110
+ async componentWillLoad() {
111
+ await Salla.onReady();
112
+ await Salla.lang.onLoaded();
113
+ Salla.event.on('localization::open', () => this.open());
114
+ if (!this.language) {
115
+ this.language = Salla.config.get('user.language_code');
116
+ }
117
+ if (!this.currency) {
118
+ this.currency = Salla.config.get('user.currency_code');
119
+ }
42
120
  }
43
121
  /**
44
122
  * open the component
45
123
  */
46
124
  async open() {
47
125
  this.modal.open();
48
- return await salla.api.withoutNotifier(() => this.getLanguages())
126
+ return await Salla.api.withoutNotifier(() => this.getLanguages())
49
127
  .then(() => this.getCurrencies())
50
128
  .then(() => {
51
129
  if (this.languages.length < 2 && this.currencies.length < 2) {
@@ -65,13 +143,30 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
65
143
  async close() {
66
144
  return this.modal.close();
67
145
  }
146
+ getCurrency(currencyCode) {
147
+ return this.currenciesList[currencyCode || this.currency] || { en: "Saudi Riyal", ar: "ريال سعودي", symbol: "ر.س" };
148
+ }
149
+ getLanguageName() {
150
+ return this.languageNames[this.language] || this.language || '';
151
+ }
152
+ getCurrencySymbol(currencyCode) {
153
+ currencyCode = currencyCode || this.currency;
154
+ if (currencyCode === 'SAR') {
155
+ return '<i class="sicon-sar"></i>';
156
+ }
157
+ if (this.language === 'ar' || !this.arabicCurrencies.includes(currencyCode)) {
158
+ return this.getCurrency(currencyCode).symbol;
159
+ }
160
+ return currencyCode;
161
+ }
162
+ getCurrencyName(currencyCode) {
163
+ return this.language === 'ar' ? this.getCurrency(currencyCode).ar : this.getCurrency(currencyCode).en;
164
+ }
68
165
  async getLanguages() {
69
- this.language = this.language || salla.config.get('user.language_code');
70
- return this.languages.length > 1 ? null : await salla.config.languages().then(data => this.languages = data);
166
+ return this.languages.length > 1 ? null : await Salla.config.languages().then(data => this.languages = data);
71
167
  }
72
168
  async getCurrencies() {
73
- this.currency = this.currency || salla.config.get('user.currency_code');
74
- return this.currencies.length > 1 ? null : await salla.config.currencies().then(data => this.currencies = Object.values(data || {}));
169
+ return this.currencies.length > 1 ? null : await Salla.config.currencies().then(data => this.currencies = Object.values(data || {}));
75
170
  }
76
171
  onChangeCurrency(event) {
77
172
  this.currency = event.target.value;
@@ -87,50 +182,56 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
87
182
  this.btn.load()
88
183
  .then(() => {
89
184
  if (!this.currency) {
90
- salla.log('There is no currency!');
185
+ Salla.log('There is no currency!');
91
186
  return;
92
187
  }
93
- if (this.currency === salla.config.get('user.currency_code', 'SAR')) {
188
+ if (this.currency === Salla.config.get('user.currency_code', 'SAR')) {
94
189
  return;
95
190
  }
96
191
  url = window.location.href;
97
- return salla.currency.api.change(this.currency);
192
+ return Salla.currency.api.change(this.currency);
98
193
  })
99
194
  .then(() => {
100
- if (this.language !== salla.config.get('user.language_code', 'ar')) {
101
- url = salla.helpers.addParamToUrl('lang', this.language);
195
+ if (this.language !== Salla.config.get('user.language_code', 'ar')) {
196
+ url = Salla.helpers.addParamToUrl('lang', this.language);
102
197
  }
103
198
  })
104
199
  .then(() => {
105
- salla.cookie.set('s-lang', this.language);
106
- salla.cookie.set('s-curr', this.currency);
200
+ Salla.cookie.set('s-lang', this.language);
201
+ Salla.cookie.set('s-curr', this.currency);
107
202
  })
108
203
  .then(() => this.btn.stop())
109
204
  .then(() => this.close())
110
205
  .then(() => {
111
206
  if (url) {
112
- window.location.href = url.replace(`/${salla.config.get('user.language_code')}/`, `/${this.language}/`);
207
+ window.location.href = url.replace(`/${Salla.config.get('user.language_code')}/`, `/${this.language}/`);
113
208
  }
114
209
  });
115
210
  }
116
211
  render() {
117
- return (h("salla-modal", { key: 'd3a45aa4cc807e1ba549514b59ada59a2397bff0', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '1794f7c9e31a1a1b622363fa21905a73a8bbdb68', slot: 'loading' }, h("div", { key: 'd55e1b7fb36f84616dde3f19955c7e5013838080', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '7a25a0f055f401a8a63030df1ab930957668c1df', width: '25%', height: '15px' }), h("div", { key: '8e9c1aba813a5efa58dc4132a504d1612343cce6', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b3ef9e80a8dec053e9c0e6d10d1145d4057c98ad', width: '25%', height: '15px' }), h("div", { key: '1d062e516cc37994e34c0aa77634bc7a2311c4ff', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '9f7a16b0f3881882fc257ed7e1290380dea38a4c', height: '40px', width: '100%' }))), !!this.hasError ?
118
- h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
119
- h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
120
- h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
121
- this.languages.map(lang => h("div", { class: "s-localization-modal-item" }, h("input", { class: "s-localization-modal-input", type: "radio", checked: this.language == lang.iso_code, onChange: () => this.language = lang.iso_code, name: "language", id: 'lang-' + lang.code.toLowerCase(), value: lang.code }), h("div", { class: "s-localization-modal-label-slot", id: "language-slot", innerHTML: this.languageSlot
122
- .replace(/\{name\}/g, lang.name)
123
- .replace(/\{code\}/g, lang.code)
124
- .replace(/\{country_code\}/g, lang.country_code) }))) :
125
- h("select", { class: "s-localization-modal-select", name: "language", onChange: e => this.onChangeLanguage(e) }, this.languages.map(lang => h("option", { value: lang.code, selected: this.language == lang.code }, lang.name)))))
126
- : '', this.currencies.length > 1 ?
127
- h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, salla.lang.get('common.titles.currency')), h("div", { class: "s-localization-modal-section-inner" }, this.currencies.length < 6 ?
128
- this.currencies.map(currency => h("div", { class: "s-localization-modal-item" }, h("input", { class: "s-localization-modal-input", type: "radio", name: "currency", checked: this.currency == currency.code, onChange: () => this.currency = currency.code, id: 'currency-' + currency.code, value: currency.code }), h("div", { class: "s-localization-modal-label-slot", id: "currency-slot", innerHTML: this.currencySlot
129
- .replace(/\{name\}/g, currency.name)
130
- .replace(/\{code\}/g, currency.code)
131
- .replace(/\{country_code\}/g, currency.country_code) }))) :
132
- h("select", { class: "s-localization-modal-select", name: "currency", onChange: e => this.onChangeCurrency(e) }, this.currencies.map(currency => h("option", { value: currency.code, selected: this.currency == currency.code }, currency.name)))))
133
- : '', h("salla-button", { width: "wide", ref: btn => this.btn = btn, onClick: () => this.submit() }, salla.lang.get('common.elements.ok')))));
212
+ return [
213
+ this.showTrigger
214
+ ? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
215
+ : '',
216
+ h("salla-modal", { key: 'ae9553ab14e30b7e9b6466d1e959e469e544ca5b', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '84bf38810a3d1c99ee084951ef596cc33a18e4f7', slot: 'loading' }, h("div", { key: '5e808b2a7774bc1f1e1fe25cb880c45a3b97f1aa', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: 'c0000d5f4f5fb663f059822fe1a4f24a78a9dd65', width: '25%', height: '15px' }), h("div", { key: '45164d658a0ee5e8825422af35605bfd83e383ff', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '1e63980f25677892f731e6ad30eda08b8a3852e0', width: '25%', height: '15px' }), h("div", { key: 'b1263061b94885e99d540f90054244fb41fd0a68', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '6dfbe5d71475640cd41dfe3d01e9277f2b2b80c5', height: '40px', width: '100%' }))), !!this.hasError ?
217
+ h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
218
+ h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
219
+ h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
220
+ this.languages.map(lang => h("div", { class: "s-localization-modal-item" }, h("input", { class: "s-localization-modal-input", type: "radio", checked: this.language == lang.iso_code, onChange: () => this.language = lang.iso_code, name: "language", id: 'lang-' + lang.code.toLowerCase(), value: lang.code }), h("div", { class: "s-localization-modal-label-slot", id: "language-slot", innerHTML: this.languageSlot
221
+ .replace(/\{name\}/g, lang.name)
222
+ .replace(/\{code\}/g, lang.code)
223
+ .replace(/\{country_code\}/g, lang.country_code) }))) :
224
+ h("select", { class: "s-localization-modal-select", name: "language", onChange: e => this.onChangeLanguage(e) }, this.languages.map(lang => h("option", { value: lang.code, selected: this.language == lang.code }, lang.name)))))
225
+ : '', this.currencies.length > 1 ?
226
+ h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.currency')), h("div", { class: "s-localization-modal-section-inner" }, this.currencies.length < 6 ?
227
+ this.currencies.map(currency => h("div", { class: "s-localization-modal-item" }, h("input", { class: "s-localization-modal-input", type: "radio", name: "currency", checked: this.currency == currency.code, onChange: () => this.currency = currency.code, id: 'currency-' + currency.code, value: currency.code }), h("div", { class: "s-localization-modal-label-slot", id: "currency-slot", innerHTML: this.currencySlot
228
+ .replace(/\{name\}/g, this.getCurrencyName(currency.code))
229
+ .replace(/\{code\}/g, currency.code)
230
+ .replace(/\{symbol\}/g, this.getCurrencySymbol(currency.code))
231
+ .replace(/\{country_code\}/g, currency.country_code) }))) :
232
+ h("select", { class: "s-localization-modal-select", name: "currency", onChange: e => this.onChangeCurrency(e) }, this.currencies.map(currency => h("option", { value: currency.code, selected: this.currency == currency.code }, currency.name)))))
233
+ : '', h("salla-button", { width: "wide", ref: btn => this.btn = btn, onClick: () => this.submit() }, Salla.lang.get('common.elements.ok'))))
234
+ ];
134
235
  }
135
236
  /**
136
237
  * to reduce dom levels we will move slot data into the parent dom
@@ -143,7 +244,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
143
244
  }, [0, "salla-localization-modal", {
144
245
  "language": [1537],
145
246
  "currency": [1537],
146
- "translationLoaded": [32],
247
+ "showTrigger": [1540, "show-trigger"],
147
248
  "languages": [32],
148
249
  "currencies": [32],
149
250
  "hasError": [32],
@@ -23,6 +23,7 @@ const SallaMultipleBundleProductCart = /*@__PURE__*/ proxyCustomElement(class Sa
23
23
  constructor() {
24
24
  super();
25
25
  this.__registerHost();
26
+ /** The list of sections belonging to a bundle product. */
26
27
  this.sections = [];
27
28
  this.itemNumber = '';
28
29
  }
@@ -48,7 +49,7 @@ const SallaMultipleBundleProductCart = /*@__PURE__*/ proxyCustomElement(class Sa
48
49
  return (h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, h("div", { class: "s-multiple-bundle-product-cart-header-content" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, h("span", null, salla.lang.get('pages.products.number_of_pieces')), h("span", null, product?.quantity_in_group))))), !hasOptions && (h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
49
50
  }
50
51
  render() {
51
- return (h(Host, { key: '7f3424f8320337bad8af0fbb6aa5c72045e97b9c', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '6b4150c73d5296043f216f3f48f9289e2ce10aa7', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
52
+ return (h(Host, { key: '92c0fba176ee0d769f866a0ed50a1b27d43e9717', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '3184473ec9399f29fa225287d6adeea109b097ec', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
52
53
  return section.products.map(product => {
53
54
  const bundleContext = {
54
55
  sectionId: section.id,
@@ -27,6 +27,7 @@ const SallaMultipleBundleProductDetails = /*@__PURE__*/ proxyCustomElement(class
27
27
  constructor() {
28
28
  super();
29
29
  this.__registerHost();
30
+ /** The list of sections belonging to a bundle product. */
30
31
  this.sections = [];
31
32
  // store selected product IDs per section (can be string or number)
32
33
  this.selectedProducts = {};
@@ -179,10 +180,10 @@ const SallaMultipleBundleProductDetails = /*@__PURE__*/ proxyCustomElement(class
179
180
  }
180
181
  }
181
182
  render() {
182
- return (h(Host, { key: 'c6e5ac7da584c20126ed35cfd971085a95a89cbe', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'f4047046f55c4aa5b8bab84983d16a7326fae8b0', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
183
+ return (h(Host, { key: '9d632fa75f2dd987a03a8d8c417e520503b4b71d', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '05517aff0eae9141a8f1f7fa0d72044fbbd46af9', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
183
184
  const selectedCount = this.selectedProducts[section.id]?.size || 0;
184
185
  return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
185
- })), h("salla-multiple-bundle-product-options-modal", { key: '8dc76d11e8876456b11b987c512cdaaca37eb562' })));
186
+ })), h("salla-multiple-bundle-product-options-modal", { key: 'ac01f882d3e8268b41032857816ba9481918f484' })));
186
187
  }
187
188
  get host() { return this; }
188
189
  static get style() { return sallaMultipleBundleProductDetailsCss; }
@@ -53,6 +53,7 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
53
53
  this.validationErrors = [];
54
54
  this.hasUnsavedChanges = false;
55
55
  }
56
+ /** Opens the modal manually. */
56
57
  async open() {
57
58
  if (!this.modal) {
58
59
  requestAnimationFrame(() => this.open());
@@ -77,11 +78,13 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
77
78
  this.isLoading = false;
78
79
  }, 300);
79
80
  }
81
+ /** Closes the modal manually. */
80
82
  async close() {
81
83
  if (this.modal) {
82
84
  this.modal.close();
83
85
  }
84
86
  }
87
+ /** Refreshes the internal options tracking state manually. */
85
88
  async refreshOptionsState() {
86
89
  // Force re-render by updating the component state
87
90
  this.selectedOptions = { ...this.selectedOptions };
@@ -476,7 +479,7 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
476
479
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
477
480
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
478
481
  const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
479
- return (h(Host, { key: 'd5a4e884d29cd964b27042ca0d0c664cbf6bc511' }, h("salla-modal", { key: '674c32ce9a987aac09d192c10692947c16464072', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: 'ab3a01faa218da40362c75f25d051938db784e35', slot: "loading" }, h("salla-skeleton", { key: '25c625ef2090e6cdb556e494b29670091ef1fa9e', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '1d1962bba5311141a83dadd51536b7fb7bac2b70', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
482
+ return (h(Host, { key: '357005ce9302183eeeec3238ebde74b99c5f7d88' }, h("salla-modal", { key: '95e4f37061229e8359a269b031942d507a43ea25', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: 'b1525824f938c5af85a9ca043d2acf86e8773e6a', slot: "loading" }, h("salla-skeleton", { key: '7e71698646e7ec119afbed2fca9dab79c4fe2991', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'cd9042d00b0a237afd8dfe7ad4ed7032e298eb39', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
480
483
  centeredSlides: true,
481
484
  centeredSlidesBounds: true,
482
485
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
@@ -484,13 +487,13 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
484
487
  watchSlidesProgress: true,
485
488
  direction: 'vertical',
486
489
  spaceBetween: 10,
487
- } }, h("div", { key: 'e6ca00bd18b6c0a911c00dad57e0ac4fd5f0a769', slot: "items" }, this.product?.images &&
490
+ } }, h("div", { key: '81773392ee6167f0daf780637e15bef9b7b2f2c7', slot: "items" }, this.product?.images &&
488
491
  this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
489
492
  e.target.style.display = 'none';
490
- } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '08481d15b20bb0b522a619e0d223019ff9ee76ac', slot: "thumbs" }, this.product?.images &&
493
+ } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '2942ab32e0e28e6213b2a1d177e36c84136beaef', slot: "thumbs" }, this.product?.images &&
491
494
  this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
492
495
  e.target.style.display = 'none';
493
- } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '8aa9b8173e758821960f37093555227024b3190f', slot: "footer" }, h("div", { key: '7324d3b90689871d779ae0a95a8a4ce4e5c18fe7', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '2205ab886613aaa5426f117efb56b7e1ae103049', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
496
+ } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: 'e3658d39d7462e1ba8c2099625d9a659541f6b2a', slot: "footer" }, h("div", { key: '8e03e9230c55b9ac6143e37629946e66daf47835', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: 'feca5790f828f7b29de3cba4e3a54d772a7a94c5', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
494
497
  ? salla.lang.get('common.elements.saving')
495
498
  : salla.lang.get('common.elements.save')))))));
496
499
  }
@@ -13,6 +13,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
13
13
  this.__registerHost();
14
14
  this.productSelected = createEvent(this, "productSelected", 7);
15
15
  this.productOptionsSelected = createEvent(this, "productOptionsSelected", 7);
16
+ /** A dictionary tracking which product IDs are currently selected per section. */
16
17
  this.selectedProducts = {};
17
18
  this.savedOptionsByInstance = {};
18
19
  this.handleProductClick = (product, productIndex) => {
@@ -93,7 +94,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
93
94
  return `bundle[${sectionId}][${productIndex}][id]`;
94
95
  }
95
96
  render() {
96
- return (h(Host, { key: '07af0a15e38a4c00450bf132a7f91c647dc7ba04' }, h("salla-slider", { key: '6a34d8659c90d6ed485149f96ad7c706122f4949', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '2aef73459325f4be492791d045b67520d210ddf7', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
97
+ return (h(Host, { key: '336a3bcf504a178ee207b40b3b7fac5d26e00f91' }, h("salla-slider", { key: '004d1c3f644bfd015efe2ffc21a78e912c5d0647', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: 'fda4544764b9bf2eb95d408179c1abc252f50243', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
97
98
  const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
98
99
  const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
99
100
  const optionsButtonLabel = hasSavedOptions
@@ -77,7 +77,7 @@ const SallaMultipleBundleProduct$1 = /*@__PURE__*/ proxyCustomElement(class Sall
77
77
  this.parseProducts(this.bundleSections);
78
78
  }
79
79
  render() {
80
- return (h(Host, { key: '05c5e7d3b7d18f23e66f3d95a04f16ab266e99a1', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
80
+ return (h(Host, { key: '2a4510d1ccd3dc840d25a288cb0788a7dd23672c', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
81
81
  }
82
82
  static get watchers() { return {
83
83
  "bundleSections": ["parseProducts"]
@@ -47,7 +47,7 @@ const SallaOrderDetails$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderDet
47
47
  ];
48
48
  }
49
49
  render() {
50
- return h(Host, { key: '7cfbdb28ff84c96aadda4992eb99ae54cd211937', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
50
+ return h(Host, { key: 'a32d03172c884c8431e592b35b3f6560e3055555', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
51
51
  }
52
52
  static get watchers() { return {
53
53
  "orderDetails": ["parseOrderDetailsData"]
@@ -333,8 +333,10 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
333
333
  }
334
334
  data.order_id = this.orderId;
335
335
  data.type = this.currentTab.dataset.type;
336
- this.submitted.push(this.currentIndex);
337
- return salla.rating.api[this.currentTab.dataset.type](data);
336
+ return salla.rating.api[this.currentTab.dataset.type](data).then((res) => {
337
+ this.submitted.push(this.currentIndex);
338
+ return res;
339
+ });
338
340
  }
339
341
  showThankYou() {
340
342
  let seconds = 10;
@@ -172,7 +172,7 @@ const SallaReviewCard = /*@__PURE__*/ proxyCustomElement(class SallaReviewCard e
172
172
  return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
173
173
  }
174
174
  render() {
175
- return h("div", { key: 'dc04f5504270de8eec6f4f20930b5ad8b19bfa1e', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'f2c82854952afa8f1c32ca3cdc9548aa04d4920a', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '555f4e598c753d38736642e9a4c8913035552159', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
175
+ return h("div", { key: '48e1eb2b71e5ee6e66def2aac42e9b6255935a17', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '0b24ea13f1f31224fff7e73d5db6c428adef0bd9', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '44501e61b5eed711820bece91053534a2baacbde', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
176
176
  }
177
177
  get el() { return this; }
178
178
  static get style() { return sallaReviewCardCss; }
@@ -176,6 +176,10 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
176
176
  }
177
177
  async componentDidLoad() {
178
178
  await Salla.hooks.registerComponent('salla-scopes', this);
179
+ // * Note: Do not auto open scopes modal in mobile app
180
+ const isMobileApp = salla.config.isMobileApp();
181
+ if (isMobileApp)
182
+ return;
179
183
  if (!this.isOpenedBefore && this.selection == 'mandatory') {
180
184
  this.open();
181
185
  }
@@ -94,9 +94,9 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
94
94
  */
95
95
  this.relativeDropdown = false;
96
96
  /**
97
- * To auto mount the login modal or not
97
+ * To show the trigger button or not
98
98
  */
99
- this.autoMount = false;
99
+ this.showTrigger = false;
100
100
  this.onClickOutside = () => {
101
101
  this.opened = false;
102
102
  };
@@ -181,7 +181,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
181
181
  });
182
182
  }
183
183
  autoMountLoginModal() {
184
- if (!this.autoMount) {
184
+ if (!this.showTrigger) {
185
185
  return;
186
186
  }
187
187
  if (document.querySelector('salla-login-modal')) {
@@ -287,7 +287,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
287
287
  "avatarOnly": [516, "avatar-only"],
288
288
  "showHeader": [516, "show-header"],
289
289
  "relativeDropdown": [516, "relative-dropdown"],
290
- "autoMount": [516, "auto-mount"],
290
+ "showTrigger": [1540, "show-trigger"],
291
291
  "accountLoading": [32],
292
292
  "opened": [32],
293
293
  "notifications": [32],
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-eEimxoFN.js';
4
+ import { d as getDefaultExportFromCjs } from './index-B-fHbvwg.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-eEimxoFN.js';
4
+ import { d as getDefaultExportFromCjs } from './index-B-fHbvwg.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-eEimxoFN.js';
4
+ import { d as getDefaultExportFromCjs } from './index-B-fHbvwg.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {