@salla.sa/twilight-components 2.14.595 → 2.14.597

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 (542) hide show
  1. package/dist/cjs/{filepond-BmX7bEQk.js → filepond-Dw1N5qBB.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-Cs6e85Vn.js → filepond-plugin-file-poster-C1ipzdpz.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CSk66JAo.js → filepond-plugin-file-validate-size-DbTJ1H8k.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Piu3p2Um.js → filepond-plugin-file-validate-type-CDOD2WKz.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-Ba9FBal4.js → filepond-plugin-image-edit-CP7JkpKx.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-zwtgHyrT.js → filepond-plugin-image-exif-orientation-Bm5i6zMO.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-BmGjui8n.js → filepond-plugin-image-preview-INllb63L.js} +1 -1
  8. package/dist/cjs/{index-DkrDtx6i.js → index-DIEWuq3M.js} +2 -2
  9. package/dist/cjs/{intlTelInput-Bty1-N7J.js → intlTelInput-bnpl10H7.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +10 -18
  13. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +37 -15
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +26 -20
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +7 -2
  19. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +79 -40
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +2 -2
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +12 -5
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_9.cjs.entry.js +67 -25
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +10 -3
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down.cjs.entry.js +17 -12
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +7 -4
  37. package/dist/cjs/salla-filters.cjs.entry.js +10 -5
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-gifting.cjs.entry.js +12 -7
  41. package/dist/cjs/salla-hook.cjs.entry.js +2 -2
  42. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +7 -2
  43. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-localization-modal.cjs.entry.js +14 -2
  46. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty.cjs.entry.js +12 -5
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-map_3.cjs.entry.js +39 -15
  55. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-notification-item_2.cjs.entry.js +7 -2
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +14 -7
  63. package/dist/cjs/salla-offer.cjs.entry.js +14 -9
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +42 -4
  65. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +7 -4
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +2 -2
  76. package/dist/cjs/salla-orders.cjs.entry.js +10 -6
  77. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +10 -3
  79. package/dist/cjs/salla-price-range.cjs.entry.js +7 -4
  80. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card.cjs.entry.js +14 -9
  82. package/dist/cjs/salla-product-size-guide.cjs.entry.js +9 -4
  83. package/dist/cjs/salla-products-list.cjs.entry.js +5 -4
  84. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-quick-order.cjs.entry.js +7 -2
  86. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-rating-modal.cjs.entry.js +9 -3
  88. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-scopes.cjs.entry.js +9 -2
  91. package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-skeleton.cjs.entry.js +8 -8
  94. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social.cjs.entry.js +8 -3
  96. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  97. package/dist/cjs/salla-tiered-offer.cjs.entry.js +7 -2
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +8 -4
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +7 -1
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +7 -3
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +8 -3
  102. package/dist/cjs/salla-verify.cjs.entry.js +13 -6
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
  106. package/dist/cjs/translate-Cvomt6Jh.js +58 -0
  107. package/dist/cjs/twilight.cjs.js +2 -2
  108. package/dist/cjs/{vanilla-picker-DgPfWupN.js → vanilla-picker-BaSDLxjI.js} +1 -1
  109. package/dist/collection/Helpers/translate.js +36 -0
  110. package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +7 -2
  111. package/dist/collection/components/salla-alert/salla-alert.js +5 -5
  112. package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +6 -1
  113. package/dist/collection/components/salla-booking-field/salla-booking-field.js +10 -4
  114. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +23 -17
  115. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +2 -0
  116. package/dist/collection/components/salla-button/salla-button.js +19 -27
  117. package/dist/collection/components/salla-cart-item-offers/salla-cart-item-offers.js +10 -3
  118. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +2 -2
  119. package/dist/collection/components/salla-comment-form/salla-comment-form.js +10 -5
  120. package/dist/collection/components/salla-comments/salla-comment-item.js +8 -2
  121. package/dist/collection/components/salla-comments/salla-comments.js +32 -5
  122. package/dist/collection/components/salla-contacts/salla-contacts.js +9 -2
  123. package/dist/collection/components/salla-count-down/salla-count-down.js +23 -18
  124. package/dist/collection/components/salla-custom-fields/salla-custom-fields.js +4 -0
  125. package/dist/collection/components/salla-file-upload/salla-file-upload.css +3 -0
  126. package/dist/collection/components/salla-file-upload/salla-file-upload.js +36 -7
  127. package/dist/collection/components/salla-filters/salla-filters.js +10 -5
  128. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +6 -3
  129. package/dist/collection/components/salla-gifting/salla-gifting.js +11 -6
  130. package/dist/collection/components/salla-hook/salla-hook.js +5 -1
  131. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +6 -1
  132. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +15 -2
  133. package/dist/collection/components/salla-loyalty/salla-loyalty.js +12 -5
  134. package/dist/collection/components/salla-map/salla-map.js +12 -7
  135. package/dist/collection/components/salla-notifications/salla-notifications.js +6 -1
  136. package/dist/collection/components/salla-offer/salla-offer.js +12 -7
  137. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +13 -6
  138. package/dist/collection/components/salla-order-branch/salla-order-branch.css +35 -0
  139. package/dist/collection/components/salla-order-branch/salla-order-branch.js +40 -2
  140. package/dist/collection/components/salla-order-summary/salla-order-summary.js +6 -3
  141. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +1 -1
  142. package/dist/collection/components/salla-orders/salla-orders.js +9 -5
  143. package/dist/collection/components/salla-placeholder/salla-placeholder.js +10 -3
  144. package/dist/collection/components/salla-price-range/salla-price-range.js +6 -3
  145. package/dist/collection/components/salla-product-availability/salla-product-availability.js +16 -7
  146. package/dist/collection/components/salla-product-card/salla-product-card.js +22 -17
  147. package/dist/collection/components/salla-product-options/salla-product-options.js +9 -6
  148. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +8 -3
  149. package/dist/collection/components/salla-products-list/salla-products-list.js +4 -3
  150. package/dist/collection/components/salla-progress-bar/salla-progress-bar.js +20 -4
  151. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +6 -1
  152. package/dist/collection/components/salla-quick-order/salla-quick-order.js +6 -1
  153. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +8 -2
  154. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +16 -16
  155. package/dist/collection/components/salla-review-card/salla-review-card.js +5 -1
  156. package/dist/collection/components/salla-reviews/salla-reviews.js +6 -1
  157. package/dist/collection/components/salla-scopes/salla-scopes.js +9 -2
  158. package/dist/collection/components/salla-skeleton/salla-skeleton.js +10 -10
  159. package/dist/collection/components/salla-slider/salla-slider.js +6 -3
  160. package/dist/collection/components/salla-social/salla-social.js +7 -2
  161. package/dist/collection/components/salla-tabs/salla-tab-header.js +3 -3
  162. package/dist/collection/components/salla-tel-input/salla-tel-input.js +24 -19
  163. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +6 -1
  164. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +7 -3
  165. package/dist/collection/components/salla-user-menu/salla-user-menu.js +6 -0
  166. package/dist/collection/components/salla-user-profile/salla-user-profile.js +6 -2
  167. package/dist/collection/components/salla-user-settings/salla-user-settings.js +7 -2
  168. package/dist/collection/components/salla-verify/salla-verify.js +13 -6
  169. package/dist/components/index.js +2 -2
  170. package/dist/components/salla-add-product-button2.js +7 -2
  171. package/dist/components/salla-alert.js +2 -2
  172. package/dist/components/salla-apps-icons.js +6 -1
  173. package/dist/components/salla-booking-field2.js +10 -4
  174. package/dist/components/salla-bottom-alert.js +23 -17
  175. package/dist/components/salla-bullet-delivery.js +1 -1
  176. package/dist/components/salla-button2.js +9 -17
  177. package/dist/components/salla-cart-item-offers.js +10 -3
  178. package/dist/components/salla-cart-summary.js +1 -1
  179. package/dist/components/salla-comment-form2.js +10 -5
  180. package/dist/components/salla-comment-item2.js +8 -2
  181. package/dist/components/salla-comments.js +32 -5
  182. package/dist/components/salla-contacts.js +9 -2
  183. package/dist/components/salla-count-down2.js +16 -11
  184. package/dist/components/salla-file-upload2.js +37 -8
  185. package/dist/components/salla-filters-widget2.js +6 -3
  186. package/dist/components/salla-filters.js +9 -4
  187. package/dist/components/salla-gifting.js +11 -6
  188. package/dist/components/salla-hook.js +1 -1
  189. package/dist/components/salla-infinite-scroll.js +6 -1
  190. package/dist/components/salla-localization-modal.js +15 -2
  191. package/dist/components/salla-loyalty.js +12 -5
  192. package/dist/components/salla-map2.js +12 -7
  193. package/dist/components/salla-notifications.js +6 -1
  194. package/dist/components/salla-offer-modal.js +13 -6
  195. package/dist/components/salla-offer.js +12 -7
  196. package/dist/components/salla-order-branch.js +41 -3
  197. package/dist/components/salla-order-summary.js +6 -3
  198. package/dist/components/salla-order-totals-card.js +1 -1
  199. package/dist/components/salla-orders.js +9 -5
  200. package/dist/components/salla-placeholder2.js +10 -3
  201. package/dist/components/salla-price-range2.js +6 -3
  202. package/dist/components/salla-product-availability2.js +16 -7
  203. package/dist/components/salla-product-card2.js +13 -8
  204. package/dist/components/salla-product-options2.js +9 -6
  205. package/dist/components/salla-product-size-guide.js +8 -3
  206. package/dist/components/salla-products-list2.js +4 -3
  207. package/dist/components/salla-progress-bar2.js +20 -4
  208. package/dist/components/salla-quick-buy2.js +6 -1
  209. package/dist/components/salla-quick-order.js +6 -1
  210. package/dist/components/salla-rating-modal2.js +8 -2
  211. package/dist/components/salla-rating-stars2.js +10 -10
  212. package/dist/components/salla-review-card2.js +1 -1
  213. package/dist/components/salla-reviews.js +6 -1
  214. package/dist/components/salla-scopes.js +9 -2
  215. package/dist/components/salla-skeleton2.js +7 -7
  216. package/dist/components/salla-slider2.js +6 -3
  217. package/dist/components/salla-social.js +7 -2
  218. package/dist/components/salla-tab-header2.js +3 -3
  219. package/dist/components/salla-tel-input2.js +24 -19
  220. package/dist/components/salla-tiered-offer.js +6 -1
  221. package/dist/components/salla-trust-badges.js +7 -3
  222. package/dist/components/salla-user-menu.js +6 -0
  223. package/dist/components/salla-user-profile.js +6 -2
  224. package/dist/components/salla-user-settings.js +7 -2
  225. package/dist/components/salla-verify.js +13 -6
  226. package/dist/components/translate.js +37 -1
  227. package/dist/docs.json +44 -44
  228. package/dist/esm/{filepond-DF26o67L.js → filepond-DfLkIBAw.js} +1 -1
  229. package/dist/esm/{filepond-plugin-file-poster-B4epzDDH.js → filepond-plugin-file-poster-D3ie06bz.js} +1 -1
  230. package/dist/esm/{filepond-plugin-file-validate-size-DILJc03j.js → filepond-plugin-file-validate-size-C_S_eFQe.js} +1 -1
  231. package/dist/esm/{filepond-plugin-file-validate-type-Bic7dGts.js → filepond-plugin-file-validate-type-BE7nqQRE.js} +1 -1
  232. package/dist/esm/{filepond-plugin-image-edit-DHfCLKK0.js → filepond-plugin-image-edit-C6jDcMnX.js} +1 -1
  233. package/dist/esm/{filepond-plugin-image-exif-orientation-C7y59Hrn.js → filepond-plugin-image-exif-orientation-nKXdF-ae.js} +1 -1
  234. package/dist/esm/{filepond-plugin-image-preview-C-ZqWLeC.js → filepond-plugin-image-preview-Dzl44GI1.js} +1 -1
  235. package/dist/esm/{index-HRJpfiBN.js → index-BmRQjBRH.js} +2 -2
  236. package/dist/esm/{intlTelInput-DOVRUqFb.js → intlTelInput-dGrU4Iu9.js} +1 -1
  237. package/dist/esm/loader.js +3 -3
  238. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  239. package/dist/esm/salla-accordion_6.entry.js +10 -18
  240. package/dist/esm/salla-add-product-button_5.entry.js +37 -15
  241. package/dist/esm/salla-advertisement.entry.js +1 -1
  242. package/dist/esm/salla-alert_2.entry.js +26 -20
  243. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  244. package/dist/esm/salla-applied-filters.entry.js +1 -1
  245. package/dist/esm/salla-apps-icons.entry.js +7 -2
  246. package/dist/esm/salla-attachment-view_9.entry.js +79 -40
  247. package/dist/esm/salla-badge.entry.js +1 -1
  248. package/dist/esm/salla-basket-gap.entry.js +1 -1
  249. package/dist/esm/salla-bullet-delivery_3.entry.js +2 -2
  250. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  251. package/dist/esm/salla-cart-item-offers_2.entry.js +12 -5
  252. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  253. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  254. package/dist/esm/salla-comment-factors.entry.js +1 -1
  255. package/dist/esm/salla-comment-form_9.entry.js +67 -25
  256. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  257. package/dist/esm/salla-contacts.entry.js +10 -3
  258. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  259. package/dist/esm/salla-count-down.entry.js +17 -12
  260. package/dist/esm/salla-custom-fields.entry.js +1 -1
  261. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  262. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  263. package/dist/esm/salla-filters-widget.entry.js +7 -4
  264. package/dist/esm/salla-filters.entry.js +10 -5
  265. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  266. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  267. package/dist/esm/salla-gifting.entry.js +12 -7
  268. package/dist/esm/salla-hook.entry.js +2 -2
  269. package/dist/esm/salla-infinite-scroll.entry.js +7 -2
  270. package/dist/esm/salla-installment.entry.js +1 -1
  271. package/dist/esm/salla-list-tile.entry.js +1 -1
  272. package/dist/esm/salla-localization-modal.entry.js +14 -2
  273. package/dist/esm/salla-login-modal.entry.js +1 -1
  274. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  275. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  276. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  277. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  278. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  279. package/dist/esm/salla-loyalty.entry.js +12 -5
  280. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  281. package/dist/esm/salla-map_3.entry.js +39 -15
  282. package/dist/esm/salla-menu.entry.js +1 -1
  283. package/dist/esm/salla-metadata.entry.js +1 -1
  284. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  285. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  286. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  287. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  288. package/dist/esm/salla-notification-item_2.entry.js +7 -2
  289. package/dist/esm/salla-offer-modal.entry.js +14 -7
  290. package/dist/esm/salla-offer.entry.js +14 -9
  291. package/dist/esm/salla-order-branch.entry.js +42 -4
  292. package/dist/esm/salla-order-cancel.entry.js +1 -1
  293. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  294. package/dist/esm/salla-order-details-options.entry.js +1 -1
  295. package/dist/esm/salla-order-details.entry.js +1 -1
  296. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  297. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  298. package/dist/esm/salla-order-edit.entry.js +1 -1
  299. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  300. package/dist/esm/salla-order-shipments.entry.js +1 -1
  301. package/dist/esm/salla-order-summary.entry.js +7 -4
  302. package/dist/esm/salla-order-totals-card.entry.js +2 -2
  303. package/dist/esm/salla-orders.entry.js +10 -6
  304. package/dist/esm/salla-payments.entry.js +1 -1
  305. package/dist/esm/salla-placeholder.entry.js +10 -3
  306. package/dist/esm/salla-price-range.entry.js +7 -4
  307. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  308. package/dist/esm/salla-product-card.entry.js +14 -9
  309. package/dist/esm/salla-product-size-guide.entry.js +9 -4
  310. package/dist/esm/salla-products-list.entry.js +5 -4
  311. package/dist/esm/salla-products-slider.entry.js +1 -1
  312. package/dist/esm/salla-quick-order.entry.js +7 -2
  313. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  314. package/dist/esm/salla-rating-modal.entry.js +9 -3
  315. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  316. package/dist/esm/salla-review-order-item.entry.js +1 -1
  317. package/dist/esm/salla-scopes.entry.js +9 -2
  318. package/dist/esm/salla-search-product-card.entry.js +1 -1
  319. package/dist/esm/salla-search.entry.js +1 -1
  320. package/dist/esm/salla-skeleton.entry.js +8 -8
  321. package/dist/esm/salla-social-share.entry.js +1 -1
  322. package/dist/esm/salla-social.entry.js +8 -3
  323. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  324. package/dist/esm/salla-tiered-offer.entry.js +7 -2
  325. package/dist/esm/salla-trust-badges.entry.js +8 -4
  326. package/dist/esm/salla-user-menu.entry.js +7 -1
  327. package/dist/esm/salla-user-profile.entry.js +7 -3
  328. package/dist/esm/salla-user-settings.entry.js +8 -3
  329. package/dist/esm/salla-verify.entry.js +13 -6
  330. package/dist/esm/salla-wallet.entry.js +1 -1
  331. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  332. package/dist/esm/salla-wishlist-summary.entry.js +1 -1
  333. package/dist/esm/translate-CxrJQ3Jf.js +54 -0
  334. package/dist/esm/twilight.js +3 -3
  335. package/dist/esm/{vanilla-picker-DQKehCLa.js → vanilla-picker-DRghK0RD.js} +1 -1
  336. package/dist/twilight/p-00e1f5fd.entry.js +4 -0
  337. package/dist/twilight/{p-078e5ef8.entry.js → p-12338d19.entry.js} +1 -1
  338. package/dist/twilight/p-1557d0ca.entry.js +4 -0
  339. package/dist/twilight/{p-ef09a761.entry.js → p-15ab81d6.entry.js} +1 -1
  340. package/dist/twilight/p-182d7bab.entry.js +4 -0
  341. package/dist/twilight/p-1908ab44.entry.js +4 -0
  342. package/dist/twilight/p-19592be3.entry.js +4 -0
  343. package/dist/twilight/{p-75ed7d4e.entry.js → p-1a8c7481.entry.js} +1 -1
  344. package/dist/twilight/p-1c8bf883.entry.js +4 -0
  345. package/dist/twilight/{p-119aa7c1.entry.js → p-1c8dde1a.entry.js} +1 -1
  346. package/dist/twilight/p-1f2844db.entry.js +4 -0
  347. package/dist/twilight/{p-b66c664b.entry.js → p-2cf7eb3b.entry.js} +1 -1
  348. package/dist/twilight/p-2de4c351.entry.js +4 -0
  349. package/dist/twilight/{p-7f38cf0c.entry.js → p-2de666d8.entry.js} +1 -1
  350. package/dist/twilight/p-33e769b3.entry.js +4 -0
  351. package/dist/twilight/{p-84c56f4d.entry.js → p-3745be6d.entry.js} +1 -1
  352. package/dist/twilight/p-39a16468.entry.js +4 -0
  353. package/dist/twilight/{p-76f49fd8.entry.js → p-3a996401.entry.js} +1 -1
  354. package/dist/twilight/{p-6feb378a.entry.js → p-3bf933f6.entry.js} +1 -1
  355. package/dist/twilight/p-3d1842e4.entry.js +4 -0
  356. package/dist/twilight/p-3f373f1e.entry.js +4 -0
  357. package/dist/twilight/{p-8f0b6a64.entry.js → p-3f66f717.entry.js} +1 -1
  358. package/dist/twilight/p-3fdaf198.entry.js +4 -0
  359. package/dist/twilight/p-41248f5f.entry.js +4 -0
  360. package/dist/twilight/{p-c919171b.entry.js → p-4235b3c2.entry.js} +1 -1
  361. package/dist/twilight/{p-3c0be6b1.entry.js → p-4aa07eca.entry.js} +1 -1
  362. package/dist/twilight/{p-4e74c79f.entry.js → p-4b111d7a.entry.js} +1 -1
  363. package/dist/twilight/{p-2c13b5e8.entry.js → p-51694dd2.entry.js} +1 -1
  364. package/dist/twilight/{p-c8d4b211.entry.js → p-55b5158c.entry.js} +1 -1
  365. package/dist/twilight/{p-9a4a84b8.entry.js → p-5617656f.entry.js} +1 -1
  366. package/dist/twilight/{p-25ea21a6.entry.js → p-58dcc966.entry.js} +1 -1
  367. package/dist/twilight/p-5f35b46a.entry.js +4 -0
  368. package/dist/twilight/{p-a3009d00.entry.js → p-60e1fb1a.entry.js} +1 -1
  369. package/dist/twilight/{p-5134faef.entry.js → p-61956814.entry.js} +1 -1
  370. package/dist/twilight/p-6854e982.entry.js +4 -0
  371. package/dist/twilight/{p-1a684490.entry.js → p-68919916.entry.js} +1 -1
  372. package/dist/twilight/p-6b0d6b9b.entry.js +4 -0
  373. package/dist/twilight/p-71cbf7a4.entry.js +4 -0
  374. package/dist/twilight/{p-313dbe67.entry.js → p-730101ff.entry.js} +1 -1
  375. package/dist/twilight/p-737b93c2.entry.js +4 -0
  376. package/dist/twilight/p-74ccf675.entry.js +4 -0
  377. package/dist/twilight/{p-83edd1a1.entry.js → p-7aa15258.entry.js} +1 -1
  378. package/dist/twilight/{p-5b617110.entry.js → p-7c7648d7.entry.js} +1 -1
  379. package/dist/twilight/p-7dfe99e6.entry.js +4 -0
  380. package/dist/twilight/{p-07e1822a.entry.js → p-7e724019.entry.js} +1 -1
  381. package/dist/twilight/p-8248cecd.entry.js +4 -0
  382. package/dist/twilight/p-844ebeb6.entry.js +4 -0
  383. package/dist/twilight/{p-2413d450.entry.js → p-87cedb04.entry.js} +1 -1
  384. package/dist/twilight/p-8b21158b.entry.js +4 -0
  385. package/dist/twilight/{p-1b0da3b9.entry.js → p-8c10cb85.entry.js} +1 -1
  386. package/dist/twilight/p-8e2488fe.entry.js +4 -0
  387. package/dist/twilight/{p-33a64882.entry.js → p-9108e712.entry.js} +1 -1
  388. package/dist/twilight/p-91326a74.entry.js +4 -0
  389. package/dist/twilight/{p-100260a2.entry.js → p-96f9eb1f.entry.js} +1 -1
  390. package/dist/twilight/p-99463d58.entry.js +4 -0
  391. package/dist/twilight/p-9e196eb0.entry.js +4 -0
  392. package/dist/twilight/{p-BFMu9w68.js → p-B4fbRnFh.js} +1 -1
  393. package/dist/twilight/{p-BGUXYEQf.js → p-BIToxPOg.js} +1 -1
  394. package/dist/twilight/{p-HRJpfiBN.js → p-BmRQjBRH.js} +1 -1
  395. package/dist/twilight/{p-CliIfO7G.js → p-C1XjCBHg.js} +1 -1
  396. package/dist/twilight/{p-BdaR2plD.js → p-C48Rktr4.js} +1 -1
  397. package/dist/twilight/{p-O5jKs1Zb.js → p-CWismw4I.js} +1 -1
  398. package/dist/twilight/p-CxrJQ3Jf.js +4 -0
  399. package/dist/twilight/{p-DlxVucku.js → p-DYEGhE1O.js} +1 -1
  400. package/dist/twilight/{p-CSRWBUvd.js → p-DnZfyhH5.js} +1 -1
  401. package/dist/twilight/{p-BCFB-lfz.js → p-OCGvfvVA.js} +1 -1
  402. package/dist/twilight/{p-9a723216.entry.js → p-a80acba3.entry.js} +1 -1
  403. package/dist/twilight/{p-61c8e3c6.entry.js → p-ab1d320f.entry.js} +1 -1
  404. package/dist/twilight/{p-5f0eca54.entry.js → p-ac7d45b6.entry.js} +1 -1
  405. package/dist/twilight/{p-fe72290f.entry.js → p-aeafb519.entry.js} +1 -1
  406. package/dist/twilight/p-b5499627.entry.js +4 -0
  407. package/dist/twilight/{p-f5e46494.entry.js → p-b5829615.entry.js} +1 -1
  408. package/dist/twilight/p-b6c5435e.entry.js +4 -0
  409. package/dist/twilight/{p-02d79968.entry.js → p-baaa3e72.entry.js} +1 -1
  410. package/dist/twilight/{p-7f58cf36.entry.js → p-bfdde3db.entry.js} +1 -1
  411. package/dist/twilight/p-c22ea75b.entry.js +4 -0
  412. package/dist/twilight/{p-768f5c26.entry.js → p-c3d33aee.entry.js} +1 -1
  413. package/dist/twilight/{p-943f3e5a.entry.js → p-c5d4f71c.entry.js} +1 -1
  414. package/dist/twilight/{p-ee8d13fd.entry.js → p-cc46f297.entry.js} +1 -1
  415. package/dist/twilight/p-cca10a34.entry.js +4 -0
  416. package/dist/twilight/p-cdbb6758.entry.js +4 -0
  417. package/dist/twilight/{p-96560ca2.entry.js → p-cf1cc0d1.entry.js} +1 -1
  418. package/dist/twilight/{p-73b8ed51.entry.js → p-d034a3ba.entry.js} +1 -1
  419. package/dist/twilight/{p-155f1fed.entry.js → p-d307d40a.entry.js} +1 -1
  420. package/dist/twilight/p-d37e6c2f.entry.js +4 -0
  421. package/dist/twilight/{p-eb6f86fb.entry.js → p-d3be7885.entry.js} +1 -1
  422. package/dist/twilight/{p-87d34b7c.entry.js → p-d542e647.entry.js} +1 -1
  423. package/dist/twilight/{p-c3afee2f.entry.js → p-db9994c2.entry.js} +1 -1
  424. package/dist/twilight/p-dd4bcce0.entry.js +4 -0
  425. package/dist/twilight/{p-c89d7291.entry.js → p-de3c5f91.entry.js} +1 -1
  426. package/dist/twilight/{p-df8c51c2.entry.js → p-e2d1d888.entry.js} +1 -1
  427. package/dist/twilight/{p-0e430b25.entry.js → p-e6bc3cf4.entry.js} +1 -1
  428. package/dist/twilight/{p-e4d76bce.entry.js → p-e8d94147.entry.js} +1 -1
  429. package/dist/twilight/{p-4e0dcb5c.entry.js → p-e9319448.entry.js} +1 -1
  430. package/dist/twilight/{p-ee23fbba.entry.js → p-ec1589cf.entry.js} +1 -1
  431. package/dist/twilight/{p-d8181149.entry.js → p-ece1fecd.entry.js} +1 -1
  432. package/dist/twilight/{p-231d4bf2.entry.js → p-f0180034.entry.js} +1 -1
  433. package/dist/twilight/{p-49e2f73d.entry.js → p-f348601d.entry.js} +1 -1
  434. package/dist/twilight/{p-6e8cb8fb.entry.js → p-f5afeed8.entry.js} +1 -1
  435. package/dist/twilight/p-f70fa2e9.entry.js +4 -0
  436. package/dist/twilight/{p-a2cbbc56.entry.js → p-f76349b3.entry.js} +1 -1
  437. package/dist/twilight/{p-49d6d82e.entry.js → p-fa600113.entry.js} +1 -1
  438. package/dist/twilight/p-fde4cf31.entry.js +4 -0
  439. package/dist/twilight/{p-14b78c6e.entry.js → p-fe3645b0.entry.js} +1 -1
  440. package/dist/twilight/{p-4cee6b43.entry.js → p-feb068a2.entry.js} +1 -1
  441. package/dist/twilight/{p-D1oXS6KY.js → p-imI5he7m.js} +1 -1
  442. package/dist/twilight/twilight.esm.js +1 -1
  443. package/dist/types/Helpers/translate.d.ts +17 -0
  444. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +2 -1
  445. package/dist/types/components/salla-alert/salla-alert.d.ts +3 -3
  446. package/dist/types/components/salla-apps-icons/salla-apps-icons.d.ts +3 -0
  447. package/dist/types/components/salla-booking-field/salla-booking-field.d.ts +3 -0
  448. package/dist/types/components/salla-bottom-alert/salla-bottom-alert.d.ts +3 -1
  449. package/dist/types/components/salla-button/salla-button.d.ts +10 -18
  450. package/dist/types/components/salla-cart-item-offers/salla-cart-item-offers.d.ts +3 -0
  451. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +2 -2
  452. package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +3 -0
  453. package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -1
  454. package/dist/types/components/salla-comments/salla-comments.d.ts +6 -0
  455. package/dist/types/components/salla-contacts/salla-contacts.d.ts +4 -0
  456. package/dist/types/components/salla-count-down/salla-count-down.d.ts +17 -14
  457. package/dist/types/components/salla-custom-fields/salla-custom-fields.d.ts +4 -0
  458. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +3 -0
  459. package/dist/types/components/salla-filters/salla-filters.d.ts +4 -1
  460. package/dist/types/components/salla-filters-widget/salla-filters-widget.d.ts +2 -0
  461. package/dist/types/components/salla-gifting/salla-gifting.d.ts +3 -0
  462. package/dist/types/components/salla-hook/salla-hook.d.ts +4 -0
  463. package/dist/types/components/salla-infinite-scroll/salla-infinite-scroll.d.ts +3 -0
  464. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +4 -0
  465. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +3 -0
  466. package/dist/types/components/salla-map/salla-map.d.ts +3 -0
  467. package/dist/types/components/salla-notifications/salla-notifications.d.ts +3 -1
  468. package/dist/types/components/salla-offer/salla-offer.d.ts +3 -0
  469. package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -0
  470. package/dist/types/components/salla-order-branch/interfaces.d.ts +1 -0
  471. package/dist/types/components/salla-order-branch/salla-order-branch.d.ts +10 -1
  472. package/dist/types/components/salla-order-summary/salla-order-summary.d.ts +2 -0
  473. package/dist/types/components/salla-order-totals-card/interfaces.d.ts +1 -0
  474. package/dist/types/components/salla-orders/salla-orders.d.ts +3 -1
  475. package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +3 -1
  476. package/dist/types/components/salla-price-range/salla-price-range.d.ts +2 -0
  477. package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +4 -0
  478. package/dist/types/components/salla-product-card/salla-product-card.d.ts +12 -9
  479. package/dist/types/components/salla-product-options/salla-product-options.d.ts +2 -0
  480. package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +3 -0
  481. package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -0
  482. package/dist/types/components/salla-progress-bar/salla-progress-bar.d.ts +5 -0
  483. package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +3 -1
  484. package/dist/types/components/salla-quick-order/salla-quick-order.d.ts +3 -0
  485. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -0
  486. package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +14 -14
  487. package/dist/types/components/salla-review-card/salla-review-card.d.ts +4 -0
  488. package/dist/types/components/salla-reviews/salla-reviews.d.ts +3 -0
  489. package/dist/types/components/salla-scopes/salla-scopes.d.ts +3 -0
  490. package/dist/types/components/salla-skeleton/salla-skeleton.d.ts +6 -6
  491. package/dist/types/components/salla-slider/salla-slider.d.ts +2 -0
  492. package/dist/types/components/salla-social/salla-social.d.ts +3 -0
  493. package/dist/types/components/salla-tabs/salla-tab-header.d.ts +2 -2
  494. package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -1
  495. package/dist/types/components/salla-tiered-offer/salla-tiered-offer.d.ts +3 -1
  496. package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +3 -1
  497. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +3 -0
  498. package/dist/types/components/salla-user-profile/salla-user-profile.d.ts +3 -1
  499. package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +3 -0
  500. package/dist/types/components/salla-verify/salla-verify.d.ts +3 -0
  501. package/dist/types/components.d.ts +128 -80
  502. package/package.json +5 -5
  503. package/dist/cjs/translate-BeU1QX_r.js +0 -20
  504. package/dist/esm/translate-CrSV-tno.js +0 -18
  505. package/dist/twilight/p-117c8823.entry.js +0 -4
  506. package/dist/twilight/p-16b45c19.entry.js +0 -4
  507. package/dist/twilight/p-20d5665b.entry.js +0 -4
  508. package/dist/twilight/p-235f40b0.entry.js +0 -4
  509. package/dist/twilight/p-2f96a72f.entry.js +0 -4
  510. package/dist/twilight/p-312d231b.entry.js +0 -4
  511. package/dist/twilight/p-334fc442.entry.js +0 -4
  512. package/dist/twilight/p-3e232b09.entry.js +0 -4
  513. package/dist/twilight/p-3f376a9d.entry.js +0 -4
  514. package/dist/twilight/p-46ad2b0e.entry.js +0 -4
  515. package/dist/twilight/p-4e3a3c55.entry.js +0 -4
  516. package/dist/twilight/p-4f9da81b.entry.js +0 -4
  517. package/dist/twilight/p-5bc3f956.entry.js +0 -4
  518. package/dist/twilight/p-5fae444a.entry.js +0 -4
  519. package/dist/twilight/p-70c45a90.entry.js +0 -4
  520. package/dist/twilight/p-761e273c.entry.js +0 -4
  521. package/dist/twilight/p-7960e489.entry.js +0 -4
  522. package/dist/twilight/p-845e4790.entry.js +0 -4
  523. package/dist/twilight/p-8688c21f.entry.js +0 -4
  524. package/dist/twilight/p-8be3fa1c.entry.js +0 -4
  525. package/dist/twilight/p-8dc7ae26.entry.js +0 -4
  526. package/dist/twilight/p-8e0a33dd.entry.js +0 -4
  527. package/dist/twilight/p-8eabd62f.entry.js +0 -4
  528. package/dist/twilight/p-8fc42a50.entry.js +0 -4
  529. package/dist/twilight/p-96317fc8.entry.js +0 -4
  530. package/dist/twilight/p-97b51153.entry.js +0 -4
  531. package/dist/twilight/p-9c1bf3fb.entry.js +0 -4
  532. package/dist/twilight/p-CrSV-tno.js +0 -4
  533. package/dist/twilight/p-b202c2d3.entry.js +0 -4
  534. package/dist/twilight/p-b2b896d1.entry.js +0 -4
  535. package/dist/twilight/p-c327bc95.entry.js +0 -4
  536. package/dist/twilight/p-c699207a.entry.js +0 -4
  537. package/dist/twilight/p-d565b168.entry.js +0 -4
  538. package/dist/twilight/p-d7a70a29.entry.js +0 -4
  539. package/dist/twilight/p-d8a5198b.entry.js +0 -4
  540. package/dist/twilight/p-db27df13.entry.js +0 -4
  541. package/dist/twilight/p-f9abcf4f.entry.js +0 -4
  542. package/dist/twilight/p-fd0d136d.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, f as forceUpdate, h, H as Host } from './index-BmRQjBRH.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -58,10 +58,17 @@ const SallaScopees = class {
58
58
  salla.event.on('scopes::open', ({ mode = null, product_id = null } = {}) => {
59
59
  this.open(mode, product_id);
60
60
  });
61
- salla.lang.onLoaded(() => {
61
+ }
62
+ connectedCallback() {
63
+ this.langUnsubscribe = salla.lang.subscribe(() => {
62
64
  this.translationLoaded = true;
65
+ // translationLoaded is already true on later calls, so force the render that refreshes the labels read in render()
66
+ forceUpdate(this);
63
67
  });
64
68
  }
69
+ disconnectedCallback() {
70
+ this.langUnsubscribe?.();
71
+ }
65
72
  /**
66
73
  * Whether to hand scope selection to the native app instead of rendering the web modal.
67
74
  * Delegates only inside the native SPA webview (Salla.mobile.isSpaWebview() — bridge live AND
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { C as Cart } from './cart-gFG8By9O.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { C as Cancel } from './cancel-BsLF_HK7.js';
7
7
  import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
 
6
6
  const sallaSkeletonCss = "/*!twlt*/:host{display:block}.s-loyalty-skeleton .s-loyalty-prize-item .s-skeleton-wrapper{margin-left:auto;margin-right:auto}.s-skeleton-wrapper{display:block}@keyframes pulse{50%{opacity:.5}}.s-skeleton-wrapper{animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}.s-skeleton-item{height:100%;width:100%;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-skeleton-item:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.s-skeleton-item-circular{border-radius:9999px}";
7
7
 
@@ -9,16 +9,16 @@ const SallaSkeleton = class {
9
9
  constructor(hostRef) {
10
10
  registerInstance(this, hostRef);
11
11
  /**
12
- * Set the shape type of the skeleton is it circle or normal
13
- */
12
+ * The shape type of the skeleton. 'circle' for circular skeletons (e.g., avatars), 'normal' for rectangular shapes. Default is 'normal'.
13
+ */
14
14
  this.type = 'normal';
15
15
  /**
16
- * Set the skeleton width
17
- */
16
+ * The width of the skeleton. Can be any CSS width value (e.g., '100%', '50px', '2rem'). Default is '100%'.
17
+ */
18
18
  this.width = '100%';
19
19
  /**
20
- * Set the skeleton height
21
- */
20
+ * The height of the skeleton. Can be any CSS height value (e.g., '100%', '50px', '2rem'). Default is '100%'.
21
+ */
22
22
  this.height = '100%';
23
23
  }
24
24
  render() {
@@ -26,7 +26,7 @@ const SallaSkeleton = class {
26
26
  's-skeleton-item': true,
27
27
  's-skeleton-item-circular': this.type == 'circle',
28
28
  };
29
- return (h(Host, { key: 'b6ea2f9ba293c4c5922a5abf48f05845d02a8590', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '8fa3bed8b7aa80e01742d6c2496bc0578aabe7f1', class: classes }, "\u00A0")));
29
+ return (h(Host, { key: '7a1ce16742202fd5e2e37eded505d94e03079137', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '8fb06aebef2322b52ad83f7524f42d8908c4b5b0', class: classes }, "\u00A0")));
30
30
  }
31
31
  };
32
32
  SallaSkeleton.style = sallaSkeletonCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
7
7
  import { M as MailIcon } from './mail-DmgxDvXL.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -41,10 +41,15 @@ const SallaSocial = class {
41
41
  this.iconsList = { instagram, twitter, facebook, youtube, snapchat, tiktok };
42
42
  this.socialSlot = this.host.querySelector('[slot="social-item"]')?.innerHTML ||
43
43
  `<a href={link} rel="noopener" target="_blank" title={type} aria-label={type}><span class="s-social-icon">{icon}</span></a>`;
44
- salla.lang.onLoaded(() => {
44
+ }
45
+ connectedCallback() {
46
+ this.langUnsubscribe = salla.lang.subscribe(() => {
45
47
  this.links = salla.config.get('store.social');
46
48
  });
47
49
  }
50
+ disconnectedCallback() {
51
+ this.langUnsubscribe?.();
52
+ }
48
53
  getLinksArray() {
49
54
  return this.links ? Object.entries(this.links)
50
55
  .filter(([key, value]) => !!value && key !== 'whatsapp')
@@ -55,7 +60,7 @@ const SallaSocial = class {
55
60
  }
56
61
  render() {
57
62
  const linksArray = this.getLinksArray();
58
- return (h(Host, { key: '4b8d92800f475d314d5637e290c1fa95c78335f5' }, h("ul", { key: 'b6134f221891e28484155c55d3bcf0182bcb967a', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
63
+ return (h(Host, { key: 'ce42d3f37cc3c9b9753f9431b43267e4a49153a3' }, h("ul", { key: '515e3effaf234de3b639bc5276559f05de06e755', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
64
  .replace(/\{icon\}/g, this.iconsList[link.type])
60
65
  .replace(/\{type\}/g, link.type)
61
66
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, c as createEvent, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-BmRQjBRH.js';
5
5
 
6
6
  const sallaTabContentCss = "";
7
7
 
@@ -48,8 +48,8 @@ const SallaTabHeader = class {
48
48
  this.tabSelected = createEvent(this, "tabSelected");
49
49
  this.id = generateRandomId();
50
50
  /**
51
- * The class applied to the currently active(selected) tab
52
- */
51
+ * The class applied to the currently active(selected) tab
52
+ */
53
53
  this.activeClass = undefined;
54
54
  /**
55
55
  * Set the height of the tab bar
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
90
90
  's-tabs-active': this.isSelected,
91
91
  };
92
92
  return [
93
- h("div", { key: '04bb51760a3e43aed1645cf724b90e21ee2631bf', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'c9d5fc5dbc0a45712c9aa5e03becc613590011ea' })),
93
+ h("div", { key: '1169c14eb00246f521ccb3929f7167d605d18a7e', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '33d608f80ee3ff772bae744c20caa70755334463' })),
94
94
  ];
95
95
  }
96
96
  };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -81,13 +81,18 @@ const SallaTieredOffer = class {
81
81
  this.handleTabClick = (tierName) => {
82
82
  this.activeTabTier = tierName;
83
83
  };
84
- salla.lang.onLoaded(() => {
84
+ }
85
+ connectedCallback() {
86
+ this.langUnsubscribe = salla.lang.subscribe(() => {
85
87
  this.loyaltyProgramText = salla.lang.get('blocks.tiered_offer.program_title');
86
88
  this.currentTierText = salla.lang.get('blocks.tiered_offer.current_tier');
87
89
  this.discountText = salla.lang.get('blocks.tiered_offer.discount');
88
90
  this.benefitText = salla.lang.get('blocks.tiered_offer.tier_description');
89
91
  });
90
92
  }
93
+ disconnectedCallback() {
94
+ this.langUnsubscribe?.();
95
+ }
91
96
  async componentWillLoad() {
92
97
  try {
93
98
  await salla.onReady();
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
+ import { s as setTranslationDefault } from './translate-CxrJQ3Jf.js';
5
6
 
6
7
  const sallaTrustBadgesCss = "/*!twlt*/.s-trust-badges-wrapper{display:flex;align-items:center}.s-trust-badges-wrapper>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))}.s-trust-badges-wrapper:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-trust-badges-label{margin-bottom:0.25rem;font-size:0.875rem;line-height:1.25rem}.s-trust-badges-number{font-size:0.875rem;line-height:1.25rem}";
7
8
 
@@ -15,18 +16,21 @@ const SallaTrustBadges = class {
15
16
  this.commercialRegisterLabel = '';
16
17
  this.freelanceLabel = '';
17
18
  }
18
- componentWillLoad() {
19
+ connectedCallback() {
19
20
  this.initializeTranslations();
20
21
  }
22
+ disconnectedCallback() {
23
+ this.langUnsubscribe?.();
24
+ }
21
25
  // The badge image is a KSA-only legal requirement.
22
26
  isVisibilityEnforced() {
23
27
  return salla.config.get('store.store_country') === 'SA';
24
28
  }
25
29
  initializeTranslations() {
26
- salla.lang.onLoaded(() => {
30
+ this.langUnsubscribe = salla.lang.subscribe(() => {
27
31
  // Set translations synchronously
28
32
  const setTranslation = (lang, key, value) => {
29
- salla.helpers.setNested(salla.lang.messages[lang], key, value);
33
+ setTranslationDefault(lang, key, value);
30
34
  };
31
35
  // Add missing translations
32
36
  setTranslation('ar.trans', 'blocks.footer.commercial_register', 'السجل التجاري');
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
6
6
  import { B as BellRing } from './bell-ring-D3mWkc-3.js';
7
7
  import { C as Cart } from './cart-gFG8By9O.js';
@@ -113,6 +113,12 @@ const SallaUserMenu = class {
113
113
  profile: UserCircle
114
114
  };
115
115
  }
116
+ connectedCallback() {
117
+ this.langUnsubscribe = salla.lang.subscribe(() => this.loadTranslations());
118
+ }
119
+ disconnectedCallback() {
120
+ this.langUnsubscribe?.();
121
+ }
116
122
  async componentWillLoad() {
117
123
  await salla.onReady();
118
124
  await salla.lang.onLoaded();
@@ -1,13 +1,12 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h } from './index-BmRQjBRH.js';
5
5
  import { G as Genders } from './interfaces-OF8QcbMM.js';
6
6
 
7
7
  const sallaUserProfileCss = "/*!twlt*/:host{display:block}.form-input{height:2.5rem;width:100%;border-radius:0.375rem;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.form-input:focus{border-color:var(--color-primary);--tw-ring-color:transparent}.form-input:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.form-input:focus:is(.dark *){border-color:var(--color-primary)}@media (min-width: 640px){.form-input{font-size:0.875rem;line-height:1.25rem}}.s-user-profile-wrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:1.5rem}@media (min-width: 640px){.s-user-profile-wrapper{grid-template-columns:repeat(2, minmax(0, 1fr));gap:2rem}}.s-user-profile-field-label{margin-bottom:0.5rem;display:block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-user-profile-field-error{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-user-profile-submit{margin-top:1.5rem;width:100%}.s-user-profile-filepond-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center}.s-user-profile-filepond-placeholder-icon{margin-bottom:0.25rem}.s-user-profile-filepond-placeholder-icon svg{height:1.5rem;width:1.5rem;fill:#7c8082}.s-user-profile-skeleton-wrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-rows:repeat(3, minmax(0, 1fr));gap:3rem}";
8
8
 
9
9
  const SallaUserProfile = class {
10
- // Constructor
11
10
  constructor(hostRef) {
12
11
  registerInstance(this, hostRef);
13
12
  /**
@@ -36,8 +35,10 @@ const SallaUserProfile = class {
36
35
  this.invalid_email_trans = salla.lang.get('pages.error.invalid_value', {
37
36
  attribute: 'email',
38
37
  });
38
+ }
39
+ connectedCallback() {
39
40
  // Localization setup when the language is loaded
40
- salla.lang.onLoaded(() => {
41
+ this.langUnsubscribe = salla.lang.subscribe(() => {
41
42
  // Assigning translated strings to state properties
42
43
  // These translations are fetched from the localization object
43
44
  this.first_name_trans = salla.lang.get('pages.profile.first_name');
@@ -59,6 +60,9 @@ const SallaUserProfile = class {
59
60
  });
60
61
  });
61
62
  }
63
+ disconnectedCallback() {
64
+ this.langUnsubscribe?.();
65
+ }
62
66
  // Event handler for phone number field changes
63
67
  phoneNumberFieldEventHandler(data) {
64
68
  if (!data.detail.number) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
 
6
6
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -135,11 +135,16 @@ const SallaUserSettings = class {
135
135
  });
136
136
  }
137
137
  });
138
- salla.lang.onLoaded(() => {
138
+ }
139
+ connectedCallback() {
140
+ this.langUnsubscribe = salla.lang.subscribe(() => {
139
141
  this.registerTranslationDefaults();
140
142
  this.loadTranslations();
141
143
  });
142
144
  }
145
+ disconnectedCallback() {
146
+ this.langUnsubscribe?.();
147
+ }
143
148
  getDaysUntilExecution(executionAt) {
144
149
  const executionMs = executionAt > 1e12 ? executionAt : executionAt * 1000;
145
150
  return Math.max(0, Math.ceil((executionMs - Date.now()) / 86400000));
@@ -554,7 +559,7 @@ const SallaUserSettings = class {
554
559
  return (h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeleteModal() }, this.capitalizeText(this.deleteAccount)));
555
560
  }
556
561
  render() {
557
- return (h(Host, { key: '830b118e5ceabea1a2b14298d4aba796a040ec23', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '3cf9e816c9757a8b60d6529091fe14df5ea32e4e', class: "s-user-settings-section" }, h("salla-list-tile", { key: '0ffb3e8f97d6b0af34fd57721f9430cc48cc67d2' }, h("div", { key: '702c5826f7f2fe9b4dcfe358f66cef306bafb5ab', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'e4ed4d6b03f1df675900b6a9ea6ea53b222414de', innerHTML: UserCancel })), h("div", { key: '4f6d392cdd4080ddff359381dfaf21847fdfba13', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'e786b26d5547e83bcab8df6dfa0c1697a1dc5727', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'a875a59062a1ff9e600b3b2cac9e1265467d45d6', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '450801ab871d8603fc79b05a0b5b8bc4d7ce4457', class: "s-toggle" }, h("input", { key: '9b79c1e08008b3c839ffe2492bf160b0e51c30d8', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ca0807167186af65c389afd1f6db8487c61aa7cf', class: "s-toggle-switcher" })))))), h("div", { key: '57b71f67259053faad864b1c81a496b4cb0792f6', class: "s-user-settings-section" }, h("salla-list-tile", { key: '5f59cf890492310d734e3e3de92f5866280993c1' }, h("div", { key: 'a3d39ee7bc01fb41060e8447d566a721f0638673', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'ebe6f58818f3954091ec278f7dd0d5b947e6bf01', innerHTML: Bullhorn })), h("div", { key: '68f3f48970a343238d9a221cb5581584db5695a8', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '2b3edd4333a7730eae644023a021d49a57112fb9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '0f406c80ed900ab42b5eaa4148b27e3db6222a0a', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: 'e0b42fd7b6df963de51ca8e9ddd06a1710589760', class: "s-toggle" }, h("input", { key: 'e67b1189631ea46e58fa12228b4d357a621f4cc6', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '52620a74be33301cbcb31d60d80919d99e342b2f', class: "s-toggle-switcher" }))))), this.isDeleteAccountEnabled ? (h("div", { class: "s-user-settings-section s-user-settings-section-delete-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, this.renderUserDeleteIcon()), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deleteAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.isDeletePending ? this.deleteAccountPending : this.deleteAccountDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, this.renderDeleteSectionAction())))) : (h("div", { class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, h("span", { innerHTML: UserOff })), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount)))))), this.isDeleteAccountEnabled ? (h("salla-modal", { id: "salla-user-settings-delete-modal", width: "xs", centered: true, showBack: this.currentStep === 'otp', isClosable: this.currentStep !== 'success', iconStyle: this.currentStep === 'success' ? 'success' : undefined, onModalVisibilityChanged: e => this.handleModalVisibilityChanged(e), onModalBack: () => this.goBackFromOtp(), ref: modal => (this.confirmationModal = modal) }, this.currentStep !== 'success' ? (h("span", { slot: "icon", class: "s-user-settings-delete-icon" }, this.renderUserDeleteIcon())) : null, h("div", { key: this.currentStep, class: "s-user-settings-delete-step" }, this.renderDeleteStep()))) : (h("salla-modal", { width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => (this.confirmationModal = modal) }, h("span", { slot: "icon", class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { class: "s-user-settings-confirmation" }, h("div", { class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { class: "s-user-settings-confirmation-actions" }, h("salla-button", { width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { fill: "outline", loading: this.buttonLoading, width: "wide", onClick: () => this.confirmDeactivateAccount() }, this.capitalizeText(this.deactivateAccount))))))));
562
+ return (h(Host, { key: '371350c4fcfd92a9434000b1390cb5ab01a92cc5', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '4e4ade371cc81d7e4c5750f5341f30bfcfc082a6', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'fd23340814c525c686f9c94e17bc6a3d2182ac1e' }, h("div", { key: 'd0cfc9df3a6072335133ac2817ed9afa34ea489e', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '17546bf4c7931fafdb769168c6cb1788303a6312', innerHTML: UserCancel })), h("div", { key: '09ec636514d69b741a3cd1a91d5599d0ff34cca1', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'f69abae297492ed509475590b2623745efb30f03', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '17c0191aae2401b8a1cd22942a5acecc0dfe1c62', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '6b55ddc3ec0a01767f870e279ae7bfad9f43663e', class: "s-toggle" }, h("input", { key: '18af334c71b48528543de61a9c3a71a73dc054b5', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'c90548df6ff7dc5beceeb2347545923ea4de096e', class: "s-toggle-switcher" })))))), h("div", { key: 'c471b3a73abbfbc1a894e5f2c9fcb8af4ea085f5', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'a906c43c0b227d6f757ec919047cfade9192cdc4' }, h("div", { key: '7e4c1375e64883c3465393f855a9faa987137bc1', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '5d8ee4cb69ddf765ddb6c108594c7de4cbedd078', innerHTML: Bullhorn })), h("div", { key: '4e0e5b84822e98234be621eab4150c48581e104b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'ac8521a039e4e869cb1aeea7213df8b70ce87bb7', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '6caa3b3d1fe8eadc194ad44a4e2299f9a95018ea', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '37a26623047ef4cb98f7bbdb8715b515488c5ac0', class: "s-toggle" }, h("input", { key: 'f74fbb125afb8743fc981672ffa56b129c4ed2ed', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '45b367693d63424e859d4dce5538a2ee37ff76a7', class: "s-toggle-switcher" }))))), this.isDeleteAccountEnabled ? (h("div", { class: "s-user-settings-section s-user-settings-section-delete-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, this.renderUserDeleteIcon()), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deleteAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.isDeletePending ? this.deleteAccountPending : this.deleteAccountDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, this.renderDeleteSectionAction())))) : (h("div", { class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, h("span", { innerHTML: UserOff })), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount)))))), this.isDeleteAccountEnabled ? (h("salla-modal", { id: "salla-user-settings-delete-modal", width: "xs", centered: true, showBack: this.currentStep === 'otp', isClosable: this.currentStep !== 'success', iconStyle: this.currentStep === 'success' ? 'success' : undefined, onModalVisibilityChanged: e => this.handleModalVisibilityChanged(e), onModalBack: () => this.goBackFromOtp(), ref: modal => (this.confirmationModal = modal) }, this.currentStep !== 'success' ? (h("span", { slot: "icon", class: "s-user-settings-delete-icon" }, this.renderUserDeleteIcon())) : null, h("div", { key: this.currentStep, class: "s-user-settings-delete-step" }, this.renderDeleteStep()))) : (h("salla-modal", { width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => (this.confirmationModal = modal) }, h("span", { slot: "icon", class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { class: "s-user-settings-confirmation" }, h("div", { class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { class: "s-user-settings-confirmation-actions" }, h("salla-button", { width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { fill: "outline", loading: this.buttonLoading, width: "wide", onClick: () => this.confirmDeactivateAccount() }, this.capitalizeText(this.deactivateAccount))))))));
558
563
  }
559
564
  };
560
565
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { M as MailIcon } from './mail-DmgxDvXL.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -39,11 +39,6 @@ const SallaVerify = class {
39
39
  * to use: `salla.api.auth.verify` or `salla.profile.verify`
40
40
  */
41
41
  this.isProfileVerify = false;
42
- salla.lang.onLoaded(() => {
43
- this.translationLoaded = true;
44
- this.title = salla.lang.get('pages.profile.verify_title') + salla.lang.get('common.elements.' + this.type);
45
- this.modal?.setTitle(this.title);
46
- });
47
42
  if (this.display == 'inline') {
48
43
  this.modal = { open: () => '', close: () => '', setTitle: () => '' };
49
44
  return;
@@ -69,6 +64,18 @@ const SallaVerify = class {
69
64
  this.timer.innerHTML = '30 : 00';
70
65
  });
71
66
  }
67
+ connectedCallback() {
68
+ this.langUnsubscribe = salla.lang.subscribe(() => {
69
+ this.translationLoaded = true;
70
+ this.title = salla.lang.get('pages.profile.verify_title') + salla.lang.get('common.elements.' + this.type);
71
+ this.modal?.setTitle(this.title);
72
+ // translationLoaded is already true on later calls, so force the render that refreshes the labels read in render()
73
+ forceUpdate(this);
74
+ });
75
+ }
76
+ disconnectedCallback() {
77
+ this.langUnsubscribe?.();
78
+ }
72
79
  splitNumber(e) {
73
80
  this.resetError();
74
81
  let data = e.data || e.target.value; // Chrome doesn't get the e.data, it's always empty, fallback to value then.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
 
6
6
  const sallaWalletCss = "/*!twlt*/@charset \"UTF-8\";.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}.s-wallet-summary{display:flex;align-items:stretch;gap:16px;margin-bottom:28px}.s-wallet-balance-card{flex:0 0 34%;max-width:240px;background:#fff;border-radius:12px;padding:20px;box-sizing:border-box}.s-wallet-balance-mark{width:48px;height:48px;border-radius:9999px;background:var(--color-primary-reverse, #eaf7f0);color:var(--color-primary, #2e8b57);display:inline-flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:12px}.s-wallet-balance-figure{font-size:18px;font-weight:700;color:#1c1c1c}.s-wallet-balance-label{margin-top:2px;font-size:12px;color:#9aa0a6}.s-wallet-amount{display:inline-flex;align-items:center;gap:4px;font-weight:700;white-space:nowrap}.s-wallet-amount-credit{color:#00af6c}.s-wallet-amount-debit{color:#f55157}.s-wallet-transaction-type{display:flex;align-items:center;color:#4b5563}@media screen and (min-width: 768px){.s-wallet-balance-card{display:flex;flex-direction:column;justify-content:center}}@media screen and (max-width: 767px){.s-wallet-summary{gap:12px;margin-bottom:20px}.s-wallet-balance-card{flex:0 0 38%;padding:16px;text-align:center}.s-wallet-balance-mark{margin-bottom:8px}}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.table{display:table}.hidden{display:none}.items-center{align-items:center}.p-3{padding:0.75rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-wallet-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-wallet-mobile-title{display:none}}.s-wallet-reference-id{display:none}@media (min-width: 768px){.s-wallet-reference-id{display:inline-block}}.s-wallet-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-wallet-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-wallet-copy-to-clipboard-button{display:none}}.s-wallet-copy-to-clipboard-button salla-button{position:relative}.s-wallet-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-wallet-status-container{margin-left:0px;margin-right:0px}}.s-wallet-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-wallet-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-wallet-status-container i{margin-top:0.25rem}.s-wallet-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-wallet-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-wallet-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-wallet-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-wallet-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-wallet-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-wallet-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-wallet-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-wallet-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-wallet-table-head{display:table-header-group}}.s-wallet-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-wallet-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-wallet-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-wallet-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-wallet-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-wallet-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-wallet-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-wallet-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-wallet-table-tbody-tr-td{height:5rem;width:auto}.s-wallet-table-tbody-tr-td:last-child{text-align:end}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}.s-wallet-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem}@media (min-width: 768px){.s-wallet-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-wallet-table-tbody-tr-td-content:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-right:0.5rem}.s-wallet-table-tbody-tr-td-content:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:0.5rem}.s-wallet-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-wallet-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-wallet-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}@media (min-width: 768px){.md\\:mx-0{margin-left:0px;margin-right:0px}.md\\:inline-block{display:inline-block}.md\\:hidden{display:none}}.ltr\\:ml-auto:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.ltr\\:mr-4:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:1rem}.rtl\\:ml-4:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:1rem}.rtl\\:mr-auto:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
 
6
6
  const sallaWishlistActionsCss = "/*!twlt*/:host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}.static{position:static}.absolute{position:absolute}.relative{position:relative}.z-20{z-index:20}.mb-3{margin-bottom:0.75rem}.mt-1{margin-top:0.25rem}.mt-3{margin-top:0.75rem}.flex{display:flex}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:0.5rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-HRJpfiBN.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
  import { H as Heart } from './heart-00vBRoH3.js';
6
6
  import { H as Helper } from './Helper-BQ-wOE14.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -0,0 +1,54 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ /**
5
+ * Translate with a real fallback.
6
+ *
7
+ * `salla.lang.get(key, replacements, locale)` takes a LOCALE as its third
8
+ * argument, not a fallback, and lang.js echoes the key back when it has no
9
+ * translation. Passing a fallback there silently asks for a nonsense locale and
10
+ * still renders the raw key to the customer, which is what a store shows while
11
+ * its translation bundle has not yet picked up newly added keys.
12
+ */
13
+ function translate(key, replacements, fallback) {
14
+ const value = salla.lang.get(key, replacements);
15
+ return !value || value === key ? fallback : value;
16
+ }
17
+ /**
18
+ * The value stored for `key` in one locale bucket of `salla.lang.messages` (e.g. `'en.trans'`).
19
+ * Read the bucket directly: `salla.lang.get()` falls back to English, so it can't tell which locale is missing.
20
+ */
21
+ function getLocaleTranslation(locale, key) {
22
+ return key.split('.').reduce((node, part) => node?.[part], salla.lang.messages?.[locale]);
23
+ }
24
+ /**
25
+ * Register bundled ar/en defaults only where a locale has no translation for the key yet.
26
+ *
27
+ * `salla.lang.addBulk()` overwrites, and a `salla.lang.subscribe()` callback runs again on every
28
+ * `salla.lang.setMessages()`, so adding unconditionally would replace the store's own text for these keys.
29
+ */
30
+ function addMissingTranslations(defaults) {
31
+ const missing = Object.entries(defaults).reduce((acc, [key, translations]) => {
32
+ Object.entries(translations).forEach(([locale, value]) => {
33
+ if (getLocaleTranslation(`${locale}.trans`, key) === undefined) {
34
+ (acc[key] = acc[key] || {})[locale] = value;
35
+ }
36
+ });
37
+ return acc;
38
+ }, {});
39
+ if (Object.keys(missing).length) {
40
+ salla.lang.addBulk(missing);
41
+ }
42
+ }
43
+ /**
44
+ * Set a bundled default in one locale bucket of `salla.lang.messages` (e.g. `'en.trans'`), unless that key
45
+ * already has a value there. Same reason as {@link addMissingTranslations}: `setNested()` overwrites.
46
+ */
47
+ function setTranslationDefault(locale, key, value) {
48
+ const messages = salla.lang.messages?.[locale];
49
+ if (messages && getLocaleTranslation(locale, key) === undefined) {
50
+ salla.helpers.setNested(messages, key, value);
51
+ }
52
+ }
53
+
54
+ export { addMissingTranslations as a, setTranslationDefault as s, translate as t };